Releases: steven-tey/novel
[email protected]
Breaking Changes
EditorCommandList
has to directly wrap theEditorCommandItems
(this is because of cmdk).
<EditorCommandList>
{suggestionItems.map((item) => (
<EditorCommandItem>
....
</EditorCommandItem>
))}
</EditorCommandList>
This change was made to support wrapping of EditorCommandList with custom components.
What's Changed
- Fix typo in development.mdx by @dongree in #338
- feat: expose editor command list by @andrewdoro in #342
New Contributors
Full Changelog: https://github.com/steven-tey/novel/compare/[email protected]@0.2.12
[email protected]
Full Changelog: https://github.com/steven-tey/novel/compare/[email protected]@0.2.11
What's Changed
- feat: add ai features example by @andrewdoro in #297
- Novel now exports a couple of utilities for dealing with AI cases:
//this extension is used for highlighting text for the AI
import { AIHighlight } from "novel/extensions";
//call this function when entering in AI mode to highlight current selection
import { addAIHighlight } from "novel/extensions";
//call this function when AI mode is no longer used
import { removeAIHighlight } from "novel/extensions";
//this function returns the current selection in Markdown
import { getPrevText } from "novel/extensions";
Implementation
You can see an example implementation
https://github.com/steven-tey/novel/tree/main/apps/web/components/tailwind/generative
Full Changelog: https://github.com/steven-tey/novel/compare/[email protected]@0.2.11
[email protected]
## Update to 0.2.10, this version is missing type definitions
Breaking Changes
defaultEditorProps
was removed from the library
It was broken into multiple functions that have to be passed in the editorProps
.
handleImageDrop
,handleImagePaste
require a custom uploadFn for uploading images (See guide here)
import { handleImageDrop, handleImagePaste } from "novel/plugins";
import { handleCommandNavigation } from "novel/extensions";
<EditorContent
editorProps={{
handleDOMEvents: {
keydown: (_view, event) => handleCommandNavigation(event),
},
handlePaste: (view, event) =>
handleImagePaste(view, event, uploadFn),
handleDrop: (view, event, _slice, moved) =>
handleImageDrop(view, event, moved, uploadFn),
}}
What's Changed
- Show grabbing cursor when grabbing drag handle by @haydenbleasel in #334
- feat: add custom upload config by @andrewdoro in #335
Full Changelog: https://github.com/steven-tey/novel/compare/[email protected]@0.2.9
[email protected]
- Fixes missing types.
Full Changelog: https://github.com/steven-tey/novel/compare/[email protected]@0.2.10
[email protected]
What's Changed
- fix: rename updated image type by @bouceka in #315
- feat: clear nodes on node selector by @brunocroh in #322
- Miscellaneous fixes by @haydenbleasel in #321
- fix: remove drag-handle on drop by @brunocroh in #323
- fix: dont trigger slash-command on codeBlock nodes by @brunocroh in #326
New Contributors
- @bouceka made their first contribution in #315
- @haydenbleasel made their first contribution in #321
Full Changelog: https://github.com/steven-tey/novel/compare/[email protected]@0.2.8
[email protected]
What's Changed
- fix: update docs & rename type to EditorInstance by @andrewdoro in #310
- feat: configure changesets for release by @andrewdoro in #311
- fix: update packge docs by @andrewdoro in #314
Full Changelog: https://github.com/steven-tey/novel/compare/[email protected]
0.2.6
0.2.4
0.2.3
Full Changelog: 0.2.1...0.2.3
0.2.1
What's Changed
(Minor): Updated Placeholder without or '++' for AI autocomplete...
until AI features are available
Full Changelog: v0.1.0...0.2.1