-
-
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.
Merge pull request #3830 from udecode/plate/view
Plate Static
- Loading branch information
Showing
339 changed files
with
5,539 additions
and
3,251 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,6 @@ | ||
--- | ||
'@udecode/plate-table': patch | ||
'@udecode/plate-link': patch | ||
--- | ||
|
||
Move `node.props` plugin attributes from `/react` to `/` |
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,13 @@ | ||
--- | ||
'@udecode/plate-core': minor | ||
--- | ||
|
||
## @udecode/plate-core@40.1.0 | ||
|
||
### Minor Changes | ||
|
||
- [#3744](https://github.com/udecode/plate/pull/3744) by [@zbeyens](https://github.com/zbeyens) – | ||
- Add `PlateStatic`, `SlateElement`, `SlateLeaf` components for static rendering and server-side HTML serialization | ||
- Add `serializeHtml` function to serialize editor content to HTML. Deprecating `@udecode/plate-html` in favor of core serialization. | ||
- Move from `PlatePlugin` (`/react`) to `BasePlugin` (`/`): `node.component`, `render.aboveEditable`, `render.aboveSlate`, `render.node` | ||
- Add to `SlatePlugin`: `node.props`, `render.aboveNodes`, `render.belowNodes`, `render.afterEditable`, `render.beforeEditable`, `render.node` |
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,16 @@ | ||
--- | ||
'@udecode/plate-indent-list': patch | ||
'@udecode/plate-utils': patch | ||
'@udecode/plate-code-block': patch | ||
'@udecode/plate-resizable': patch | ||
'@udecode/plate-selection': patch | ||
'@udecode/plate-combobox': patch | ||
'@udecode/plate-tabbable': patch | ||
'@udecode/plate-caption': patch | ||
'@udecode/plate-layout': patch | ||
'@udecode/plate-table': patch | ||
'@udecode/plate-list': patch | ||
'@udecode/plate-dnd': patch | ||
--- | ||
|
||
Replace `findNodePath` with `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-link': patch | ||
--- | ||
|
||
- Fix floating link url input being focused when focusing the placeholder input |
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,6 @@ | ||
--- | ||
'@udecode/plate-indent-list': major | ||
--- | ||
|
||
- Move `render.belowNodes` from `IndentListPlugin` to `BaseIndentListPlugin`. Props type for `listStyleTypes.liComponent` and `listStyleTypes.markerComponent` options is now `SlateRenderElementProps` instead of `PlateRenderElementProps` | ||
- Move `someIndentList`, `someIndentTodo` from `@udecode/plate-indent-list/react` to `@udecode/plate-indent-list` |
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,12 @@ | ||
--- | ||
'@udecode/slate-react': major | ||
--- | ||
|
||
Rename `findNodePath` to `findPath` since the addition of `findNodePath` 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-based `findNodePath`. 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. |
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/slate-react': patch | ||
--- | ||
|
||
Update `TRenderElementProps`, `TRenderLeafProps` types |
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/slate': minor | ||
--- | ||
|
||
Add `findNodePath` - a traversal-based node path finder with O(n) complexity. This is the headless alternative to `findPath` 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 |
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,27 @@ | ||
--- | ||
'@udecode/plate-table': major | ||
--- | ||
|
||
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` |
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 |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
!.yarn/releases | ||
!.yarn/sdks | ||
!.yarn/versions | ||
.repo_ignore | ||
|
||
**/traceDir | ||
|
||
|
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.