Releases: udecode/plate
Releases · udecode/plate
@udecode/plate@45.0.1
@udecode/plate@45.0.1
@udecode/plate-utils@45.0.1
@udecode/plate-utils@45.0.1
@udecode/plate-table@45.0.0
Minor Changes
- #4047 by @patrick-hertling – Ability to set background color of table cells
@udecode/plate-suggestion@45.0.0
Major Changes
-
#4064 by @felixfeng33 – Note: This plugin is currently in an experimental phase and breaking changes may be introduced without a major version bump.
- Add Suggestion UI
- Remove:
findSuggestionNode
usefindSuggestionProps.ts
instead - Remove
addSuggestionMark.ts
- Remove
useHooksSuggestion.ts
as we've updated the activeId logic to no longer depend on useEditorSelector
@udecode/plate-docx@45.0.0
@udecode/plate-docx@45.0.0
@udecode/plate-csv@45.0.0
@udecode/plate-csv@45.0.0
@udecode/plate-core@45.0.1
Patch Changes
8b06248
by @felixfeng33 – AddisSlateEditor
to check if the HTML element is a plate editor
@udecode/plate-comments@45.0.0
Major Changes
-
#4064 by @felixfeng33 – This is a rewrite of the comments plugin removing UI logic (headless).
Plugin Options
- Removed configuration options from plugin options in favor of component-level control:
options.comments
options.myUserId
options.users
Components
- Removed legacy components:
CommentDeleteButton
CommentEditActions
CommentEditButton
CommentEditCancelButton
CommentEditSaveButton
CommentEditTextarea
CommentNewSubmitButton
CommentNewTextarea
CommentResolveButton
CommentsPositioner
CommentUserName
API
- Removed functions in favor of new API methods:
findCommentNode
→api.comment.node()
findCommentNodeById
→api.comment.node({ id })
getCommentNodeEntries
→api.comment.nodes()
getCommentNodesById
→api.comment.nodes({ id })
removeCommentMark
→tf.comment.remove()
unsetCommentNodesById
→tf.comment.unsetMark({ id })
- Removed unused functions:
getCommentFragment
getCommentUrl
getElementAbsolutePosition
getCommentPosition
- Updated
getCommentCount
to exclude draft comments
State Management
- Removed
CommentProvider
- users should implement their own state management –block-discussion.tsx
- Moved
useHooksComments
to UI registry –comments-plugin.tsx
- Removed hooks no longer needed with new UI:
useActiveCommentNode
useCommentsResolved
useCommentAddButton
useCommentItemContent
useCommentLeaf
useCommentsShowResolvedButton
useFloatingCommentsContentState
useFloatingCommentsState
Types
- Removed
CommentUser
- Moved
TComment
to UI registry –comment.tsx
- Removed configuration options from plugin options in favor of component-level control:
@udecode/plate-basic-marks@45.0.0
Patch Changes
- #4064 by @felixfeng33 – Add new plugin
SkipMarkPlugin
@udecode/plate@44.0.7
@udecode/plate@44.0.7