forked from udecode/plate
-
Notifications
You must be signed in to change notification settings - Fork 0
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
839 changed files
with
2,892 additions
and
3,178 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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
"@udecode/slate-plugins-list": patch | ||
"@udecode/plate-list": patch | ||
--- | ||
|
||
fix: | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
"@udecode/slate-plugins-md-serializer": patch | ||
"@udecode/plate-md-serializer": patch | ||
--- | ||
|
||
Make markdown deserializer more consistent in approach with html and ast deserializers |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
"@udecode/slate-plugins-html-serializer": patch | ||
"@udecode/plate-html-serializer": patch | ||
--- | ||
|
||
fix: calling leaf serializers with preceding serialization result |
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 |
---|---|---|
@@ -1,59 +1,56 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
"changelog": [ | ||
"@changesets/changelog-github", | ||
{ "repo": "udecode/slate-plugins" } | ||
], | ||
"changelog": ["@changesets/changelog-github", { "repo": "udecode/plate" }], | ||
"commit": false, | ||
"linked": [ | ||
[ | ||
"@udecode/slate-plugins", | ||
"@udecode/slate-plugins-alignment", | ||
"@udecode/slate-plugins-alignment-ui", | ||
"@udecode/slate-plugins-ast-serializer", | ||
"@udecode/slate-plugins-autoformat", | ||
"@udecode/slate-plugins-basic-elements", | ||
"@udecode/slate-plugins-basic-marks", | ||
"@udecode/slate-plugins-block-quote", | ||
"@udecode/slate-plugins-block-quote-ui", | ||
"@udecode/slate-plugins-break", | ||
"@udecode/slate-plugins-code-block", | ||
"@udecode/slate-plugins-code-block-ui", | ||
"@udecode/slate-plugins-font", | ||
"@udecode/slate-plugins-font-ui", | ||
"@udecode/slate-plugins-common", | ||
"@udecode/slate-plugins-core", | ||
"@udecode/slate-plugins-csv-serializer", | ||
"@udecode/slate-plugins-dnd", | ||
"@udecode/slate-plugins-excalidraw", | ||
"@udecode/slate-plugins-find-replace", | ||
"@udecode/slate-plugins-find-replace-ui", | ||
"@udecode/slate-plugins-heading", | ||
"@udecode/slate-plugins-highlight", | ||
"@udecode/slate-plugins-html-serializer", | ||
"@udecode/slate-plugins-image", | ||
"@udecode/slate-plugins-image-ui", | ||
"@udecode/slate-plugins-kbd", | ||
"@udecode/slate-plugins-link", | ||
"@udecode/slate-plugins-link-ui", | ||
"@udecode/slate-plugins-list", | ||
"@udecode/slate-plugins-list-ui", | ||
"@udecode/slate-plugins-md-serializer", | ||
"@udecode/slate-plugins-media-embed", | ||
"@udecode/slate-plugins-media-embed-ui", | ||
"@udecode/slate-plugins-mention", | ||
"@udecode/slate-plugins-mention-ui", | ||
"@udecode/slate-plugins-node-id", | ||
"@udecode/slate-plugins-normalizers", | ||
"@udecode/slate-plugins-paragraph", | ||
"@udecode/slate-plugins-placeholder", | ||
"@udecode/slate-plugins-reset-node", | ||
"@udecode/slate-plugins-select", | ||
"@udecode/slate-plugins-styled-components", | ||
"@udecode/slate-plugins-table", | ||
"@udecode/slate-plugins-table-ui", | ||
"@udecode/slate-plugins-toolbar", | ||
"@udecode/slate-plugins-trailing-block" | ||
"@udecode/plate", | ||
"@udecode/plate-alignment", | ||
"@udecode/plate-alignment-ui", | ||
"@udecode/plate-ast-serializer", | ||
"@udecode/plate-autoformat", | ||
"@udecode/plate-basic-elements", | ||
"@udecode/plate-basic-marks", | ||
"@udecode/plate-block-quote", | ||
"@udecode/plate-block-quote-ui", | ||
"@udecode/plate-break", | ||
"@udecode/plate-code-block", | ||
"@udecode/plate-code-block-ui", | ||
"@udecode/plate-font", | ||
"@udecode/plate-font-ui", | ||
"@udecode/plate-common", | ||
"@udecode/plate-core", | ||
"@udecode/plate-csv-serializer", | ||
"@udecode/plate-dnd", | ||
"@udecode/plate-excalidraw", | ||
"@udecode/plate-find-replace", | ||
"@udecode/plate-find-replace-ui", | ||
"@udecode/plate-heading", | ||
"@udecode/plate-highlight", | ||
"@udecode/plate-html-serializer", | ||
"@udecode/plate-image", | ||
"@udecode/plate-image-ui", | ||
"@udecode/plate-kbd", | ||
"@udecode/plate-link", | ||
"@udecode/plate-link-ui", | ||
"@udecode/plate-list", | ||
"@udecode/plate-list-ui", | ||
"@udecode/plate-md-serializer", | ||
"@udecode/plate-media-embed", | ||
"@udecode/plate-media-embed-ui", | ||
"@udecode/plate-mention", | ||
"@udecode/plate-mention-ui", | ||
"@udecode/plate-node-id", | ||
"@udecode/plate-normalizers", | ||
"@udecode/plate-paragraph", | ||
"@udecode/plate-placeholder", | ||
"@udecode/plate-reset-node", | ||
"@udecode/plate-select", | ||
"@udecode/plate-styled-components", | ||
"@udecode/plate-table", | ||
"@udecode/plate-table-ui", | ||
"@udecode/plate-toolbar", | ||
"@udecode/plate-trailing-block" | ||
] | ||
], | ||
"access": "public", | ||
|
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 |
---|---|---|
@@ -1,22 +1,22 @@ | ||
--- | ||
"@udecode/slate-plugins-core": minor | ||
"@udecode/plate-core": minor | ||
--- | ||
|
||
changes: | ||
- `useEditableProps` (used by `SlatePlugins`): | ||
- `useEditableProps` (used by `Plate`): | ||
- new fields returned: all handler props from the plugins (if defined) | ||
- new core plugins with the following fields: | ||
- `onFocus: setEventEditorId('focus', id)` | ||
- `onBlur: setEventEditorId('blur', id)` | ||
- You can add your own handlers in a plugin | ||
- `EditorStateEffect`: a new component used by `SlatePlugins` to update the editor state. | ||
- `EditorStateEffect`: a new component used by `Plate` to update the editor state. | ||
- `setEventEditorId`: a new action. Set an editor id by event key. | ||
- `eventEditorStore`, `useEventEditorStore`: a new store. Store where the keys are event names and the values are editor ids. | ||
- `useEventEditorId`: a new selector. Get the editor id by `event` key. | ||
- `useStoreEditorSelection`: a new selector. Get the editor selection which is updated on editor change. | ||
- `useStoreEditorState`: a new selector. Get editor state which is updated on editor change. Similar to `useSlate`. | ||
- `SlatePlugin`: the previous plugin could implement the following handlers: `onChange`, `onDOMBeforeInput` and `onKeyDown`. The plugins now implement all DOM handlers: clipboard, composition, focus, form, image, keyboard, media, mouse, selection, touch, pointer, ui, wheel animation and transition events. | ||
- `SlatePluginsState` (store interface): | ||
- a new field `keyChange` incremented by `SlatePlugins` on `useSlate` update. | ||
- `PlatePlugin`: the previous plugin could implement the following handlers: `onChange`, `onDOMBeforeInput` and `onKeyDown`. The plugins now implement all DOM handlers: clipboard, composition, focus, form, image, keyboard, media, mouse, selection, touch, pointer, ui, wheel animation and transition events. | ||
- `PlateState` (store interface): | ||
- a new field `keyChange` incremented by `Plate` on `useSlate` update. | ||
- a new field `selection = editor.selection` updated on `useSlate` update. | ||
- `pipeHandler`: a new function. Generic pipe for handlers. |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
"@udecode/slate-plugins-ast-serializer": minor | ||
"@udecode/slate-plugins": minor | ||
"@udecode/plate-ast-serializer": minor | ||
"@udecode/plate": minor | ||
--- | ||
|
||
Add ast decode+fix for paste from slate ast format |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
"@udecode/slate-plugins-common": minor | ||
"@udecode/plate-common": minor | ||
--- | ||
|
||
`selectEditor`: Select an editor at a target or an edge (start, end). |
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 |
---|---|---|
@@ -1,25 +1,25 @@ | ||
--- | ||
"@udecode/slate-plugins-alignment-ui": patch | ||
"@udecode/slate-plugins-alignment": patch | ||
"@udecode/slate-plugins-basic-elements": patch | ||
"@udecode/slate-plugins-block-quote-ui": patch | ||
"@udecode/slate-plugins-block-quote": patch | ||
"@udecode/slate-plugins-code-block-ui": patch | ||
"@udecode/slate-plugins-code-block": patch | ||
"@udecode/slate-plugins-image-ui": patch | ||
"@udecode/slate-plugins-image": patch | ||
"@udecode/slate-plugins-link-ui": patch | ||
"@udecode/slate-plugins-link": patch | ||
"@udecode/slate-plugins-list-ui": patch | ||
"@udecode/slate-plugins-list": patch | ||
"@udecode/slate-plugins-media-embed-ui": patch | ||
"@udecode/slate-plugins-media-embed": patch | ||
"@udecode/slate-plugins-mention-ui": patch | ||
"@udecode/slate-plugins-mention": patch | ||
"@udecode/slate-plugins-table-ui": patch | ||
"@udecode/slate-plugins-table": patch | ||
"@udecode/slate-plugins-find-replace-ui": patch | ||
"@udecode/slate-plugins-find-replace": patch | ||
"@udecode/plate-alignment-ui": patch | ||
"@udecode/plate-alignment": patch | ||
"@udecode/plate-basic-elements": patch | ||
"@udecode/plate-block-quote-ui": patch | ||
"@udecode/plate-block-quote": patch | ||
"@udecode/plate-code-block-ui": patch | ||
"@udecode/plate-code-block": patch | ||
"@udecode/plate-image-ui": patch | ||
"@udecode/plate-image": patch | ||
"@udecode/plate-link-ui": patch | ||
"@udecode/plate-link": patch | ||
"@udecode/plate-list-ui": patch | ||
"@udecode/plate-list": patch | ||
"@udecode/plate-media-embed-ui": patch | ||
"@udecode/plate-media-embed": patch | ||
"@udecode/plate-mention-ui": patch | ||
"@udecode/plate-mention": patch | ||
"@udecode/plate-table-ui": patch | ||
"@udecode/plate-table": patch | ||
"@udecode/plate-find-replace-ui": patch | ||
"@udecode/plate-find-replace": patch | ||
--- | ||
|
||
fix: added the core dep to avoid duplicated stores in the build |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
"@udecode/slate-plugins-excalidraw": minor | ||
"@udecode/plate-excalidraw": minor | ||
--- | ||
|
||
New plugin to render [excalidraw](https://www.npmjs.com/package/@excalidraw/excalidraw) as a void element |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
"@udecode/slate-plugins-ast-serializer": minor | ||
"@udecode/slate-plugins-html-serializer": minor | ||
"@udecode/slate-plugins-md-serializer": minor | ||
"@udecode/plate-ast-serializer": minor | ||
"@udecode/plate-html-serializer": minor | ||
"@udecode/plate-md-serializer": minor | ||
--- | ||
|
||
Fix ast-deserialize insert, minor cleanup to html/md deserializer |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
"@udecode/slate-plugins-list": minor | ||
"@udecode/slate-plugins-reset-node": minor | ||
"@udecode/plate-list": minor | ||
"@udecode/plate-reset-node": minor | ||
--- | ||
|
||
Allow `li` elements to be deleted, even when they are the first 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
"@udecode/slate-plugins-styled-components": major | ||
"@udecode/plate-styled-components": major | ||
--- | ||
|
||
Replace fluent-ui by styled-components + twin.macro |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
"@udecode/slate-plugins-ast-serializer": minor | ||
"@udecode/slate-plugins-html-serializer": minor | ||
"@udecode/slate-plugins-md-serializer": minor | ||
"@udecode/plate-ast-serializer": minor | ||
"@udecode/plate-html-serializer": minor | ||
"@udecode/plate-md-serializer": minor | ||
--- | ||
|
||
If empty fragment, eject from deserializer |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
"@udecode/slate-plugins-common": patch | ||
"@udecode/plate-common": patch | ||
--- | ||
|
||
fix: `getLastNode` returns undefined when the editor has no children |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
"@udecode/slate-plugins-trailing-block": patch | ||
"@udecode/plate-trailing-block": patch | ||
--- | ||
|
||
fix: insert a trailing block when the editor has 0 child |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
"@udecode/slate-plugins-core": patch | ||
"@udecode/plate-core": patch | ||
--- | ||
|
||
fix: before, store setValue was called at the start of `onChange` pipeline. Now, it's called at the end of the pipeline so we can make use of this value as the "previous value" in plugins `onChange`. |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
"@udecode/slate-plugins-list": patch | ||
"@udecode/plate-list": patch | ||
--- | ||
|
||
add deserializer for `ELEMENT_LIC` |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
"@udecode/slate-plugins-excalidraw": minor | ||
"@udecode/plate-excalidraw": minor | ||
--- | ||
|
||
fix: prevent excalidraw from stealing scroll/focus |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
"@udecode/slate-plugins-list": patch | ||
"@udecode/plate-list": patch | ||
--- | ||
|
||
fix: | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
"@udecode/slate-plugins-reset-node": patch | ||
"@udecode/plate-reset-node": patch | ||
--- | ||
|
||
fix: `getResetNodeOnKeyDown` should not return `false`, otherwise the plugins pipeline stops (e.g. the list plugin onKeyDown handler). So it now returns void or true. |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
"@udecode/slate-plugins": patch | ||
"@udecode/plate": patch | ||
--- | ||
|
||
fix: export csv-serializer |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
"@udecode/slate-plugins-list": minor | ||
"@udecode/plate-list": minor | ||
--- | ||
|
||
Decouple changing of list-item depth from event handler |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
"@udecode/slate-plugins-list": patch | ||
"@udecode/plate-list": patch | ||
--- | ||
|
||
fix: list range deletion |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
"@udecode/slate-plugins-list": patch | ||
"@udecode/plate-list": patch | ||
--- | ||
|
||
fix: improve lic (list-item-content) normalization |
Oops, something went wrong.