-
-
Notifications
You must be signed in to change notification settings - Fork 755
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
76 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
'@udecode/plate-caption': patch | ||
'@udecode/plate-utils': patch | ||
'@udecode/plate-resizable': patch | ||
'@udecode/plate-selection': patch | ||
'@udecode/plate-tabbable': patch | ||
--- | ||
|
||
Use `editor.findPath` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@udecode/plate-core': patch | ||
--- | ||
|
||
- `withPlate` overrides `editor.findPath` with `ReactEditor.findPath` (memo). We now **recommend to always use** `editor.findPath` over `findNodePath` / `findPath`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
'@udecode/plate-table': minor | ||
--- | ||
|
||
- `TablePlugin` new api and transforms: | ||
|
||
```ts | ||
type TableApi = { | ||
create: { | ||
table: OmitFirst<typeof getEmptyTableNode>; | ||
/** Cell node factory used each time a cell is created. */ | ||
tableCell: OmitFirst<typeof getEmptyCellNode>; | ||
tableRow: OmitFirst<typeof getEmptyRowNode>; | ||
}; | ||
table: { | ||
getCellBorders: OmitFirst<typeof getTableCellBorders>; | ||
getCellSize: OmitFirst<typeof getTableCellSize>; | ||
getColSpan: typeof getColSpan; | ||
getRowSpan: typeof getRowSpan; | ||
}; | ||
}; | ||
|
||
type TableTransforms = { | ||
insert: { | ||
table: OmitFirst<typeof insertTable>; | ||
}; | ||
remove: { | ||
table: OmitFirst<typeof deleteTable>; | ||
tableColumn: OmitFirst<typeof deleteColumn>; | ||
tableRow: OmitFirst<typeof deleteRow>; | ||
}; | ||
table: { | ||
merge: OmitFirst<typeof mergeTableCells>; | ||
split: OmitFirst<typeof splitTableCell>; | ||
}; | ||
}; | ||
``` | ||
|
||
- `insertTableColumn` add `before` option to insert a column before the current column. | ||
- `insertTableRow` add `before` option to insert a row before the current row. | ||
- `insertTable` now supports inserting a table after the current table. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.