Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@udecode/[email protected]
Major Changes
#3861 by @zbeyens –
useDndBlock
,useDragBlock
, anduseDropBlock
hooks in favor ofuseDndNode
,useDragNode
, anduseDropNode
.DndProvider
anduseDraggableStore
. Drop line state is now managed byDndPlugin
as a single state objectdropTarget
containing bothid
andline
.useDropNode
: removedonChangeDropLine
anddropLine
optionsMigration steps:
DndProvider
from your draggable component (e.g.draggable.tsx
)useDraggableStore
withuseEditorPlugin(DndPlugin).useOption
Minor Changes
useDndNode
now supports horizontal orientation. New option isorientation?: 'horizontal' | 'vertical'
. Default isvertical
.useDraggableState
,useDndNode
: addcanDropNode
callback option to query if a dragged node can be dropped onto a hovered node.useDropLine
:id
option to show dropline only for hovered element. Default isuseElement().id
.orientation
option to filter droplines by orientation ('horizontal' | 'vertical'
). Default isvertical
.Patch Changes
findNodePath
withfindPath
@udecode/[email protected]
Major Changes
render.belowNodes
fromIndentListPlugin
toBaseIndentListPlugin
. Props type forlistStyleTypes.liComponent
andlistStyleTypes.markerComponent
options is nowSlateRenderElementProps
instead ofPlateRenderElementProps
someIndentList
,someIndentTodo
from@udecode/plate-indent-list/react
to@udecode/plate-indent-list
Patch Changes
#3830 by @felixfeng33 – Replace
findNodePath
withfindPath
#3868 by @zbeyens – Fix todo list: insert break should inherit format
@udecode/[email protected]
Major Changes
#3830 by @felixfeng33 – Rename
findNodePath
tofindPath
since the addition offindNodePath
in the headless lib.We recommend using
findPath
mostly when subscribing to its value (e.g. in a React component) as it has O(path.length) complexity, compared to O(n) for the traversal-basedfindNodePath
. This optimization is particularly important in:findNodePath
would increase the initial render time by O(n²)findNodePath
would increase the handling time by O(n)where n is the number of nodes in the editor.
Patch Changes
TRenderElementProps
,TRenderLeafProps
types@udecode/[email protected]
Major Changes
#3830 by @felixfeng33 – Move from
@udecode/plate-table/react
to@udecode/plate-table
:deleteColumn
deleteColumnWhenExpanded
deleteRow
deleteRowWhenExpanded
getTableColumn
getTableGridAbove
getTableGridByRange
getTableRow
insertTable
mergeTableCells
moveSelectionFromCell
overrideSelectionFromCell
unmergeTableCells
withDeleteTable
withGetFragmentlable
withInsertFragmentTable
withInsertTextTable
withMarkTable
withSelectionTable
withSetFragmentDataTable
withTable
Patch Changes
#3830 by @felixfeng33 – Move
node.props
plugin attributes from/react
to/
#3830 by @felixfeng33 – Replace
findNodePath
withfindPath
@udecode/[email protected]
Minor Changes
api.aiChat.replaceSelection()
– new optionformat: 'none' | 'single' | 'all'
'single'
(default):'all'
: Forces first block's formatting on all inserted blocks'none'
: Preserves source formatting completely@udecode/[email protected]
Minor Changes
#3830 by @felixfeng33 – ## @udecode/[email protected]
Minor Changes
PlateStatic
,SlateElement
,SlateLeaf
components for static rendering and server-side HTML serializationserializeHtml
function to serialize editor content to HTML. Deprecating@udecode/plate-html
in favor of core serialization.PlatePlugin
(/react
) toBasePlugin
(/
):node.component
,render.aboveEditable
,render.aboveSlate
,render.node
SlatePlugin
:node.props
,render.aboveNodes
,render.belowNodes
,render.afterEditable
,render.beforeEditable
,render.node
@udecode/[email protected]
Minor Changes
#3830 by @felixfeng33 – Add
findNodePath
- a traversal-based node path finder with O(n) complexity. This is the headless alternative tofindPath
from@udecode/slate-react
, recommended for:Patch Changes
@udecode/[email protected]
Patch Changes
findNodePath
withfindPath
@udecode/[email protected]
Patch Changes
findNodePath
withfindPath
@udecode/[email protected]
Patch Changes
findNodePath
withfindPath
@udecode/[email protected]
Patch Changes
findNodePath
withfindPath
@udecode/[email protected]
Patch Changes
#3830 by @felixfeng33 – Move
node.props
plugin attributes from/react
to/
#3830 by @felixfeng33 –
@udecode/[email protected]
Patch Changes
findNodePath
withfindPath
@udecode/[email protected]
Patch Changes
findNodePath
withfindPath
@udecode/[email protected]
Patch Changes
findNodePath
withfindPath
@udecode/[email protected]
Patch Changes
findNodePath
withfindPath
@udecode/[email protected]
Patch Changes
getFirstNodeText
@udecode/[email protected]
Patch Changes
findNodePath
withfindPath
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]