Releases: udecode/plate
@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:- Non-React contexts
- Plugin logic that doesn't require React dependencies
- Non-performance-critical paths where O(n) traversal is acceptable
Patch Changes
@udecode/[email protected]
@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:- Render functions of Plate components where using
findNodePath
would increase the initial render time by O(n²) - Key press handlers where using
findNodePath
would increase the handling time by O(n)
where n is the number of nodes in the editor.
- Render functions of Plate components where using
Patch Changes
- #3830 by @felixfeng33 – Update
TRenderElementProps
,TRenderLeafProps
types
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
Patch Changes
- #3830 by @felixfeng33 – Replace
findNodePath
withfindPath
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@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