-
-
Notifications
You must be signed in to change notification settings - Fork 742
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 #3744 from udecode/feat/scroll-id
Cursor Overlay plugin
- Loading branch information
Showing
408 changed files
with
3,535 additions
and
2,065 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-ai': patch | ||
--- | ||
|
||
- `CopilotPlugin`: reset on mouse down | ||
- `CopilotPlugin`: auto trigger only on selection change |
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,10 @@ | ||
--- | ||
'@udecode/plate-layout': minor | ||
--- | ||
|
||
- `ColumnPlugin`: | ||
- unwrap columns when there is only one column | ||
- remove column group when it has no column children | ||
- remove column when it has no children | ||
- Add `insertColumnGroup` | ||
- Add `toggleColumnGroup` |
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-slate-react': major | ||
--- | ||
|
||
- Add `slate-dom` as a peer dependency | ||
- Update `slate-react` peer dependency to `>=0.111.0` |
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,19 @@ | ||
--- | ||
'@udecode/plate-core': patch | ||
--- | ||
|
||
- `Plate` store: add `containerRef`. This is used by some plugins like `CursorOverlay`. | ||
- Add `useEditorContainerRef` selector hook. You can pass the returned ref to your editor scroll container. | ||
- `usePlateEditor` options: `value` can now be a callback function to get the value from the editor | ||
- `editor.key` is now using `nanoid()` | ||
- `editor.uid`: new property added by `Plate` to uniquely identify the editor. The difference with `editor.key` is that `uid` supports SSR hydration. This can be passed to the editor container as `id` prop. | ||
- `Plate` now warns if multiple instances of `@udecode/plate-core` are detected. Use `suppressInstanceWarning` to suppress the warning. | ||
- `render.aboveNodes` and `render.belowNodes` now support `useElement` | ||
- `PlatePlugin.inject` new properties: | ||
- `excludePlugins?: string[]` | ||
- `excludeBelowPlugins?: string[]` | ||
- `maxLevel?: number` | ||
- `isLeaf?: boolean` | ||
- `isBlock?: boolean` | ||
- `isElement?: boolean` | ||
- Add `getInjectMatch(editor, plugin)` to get a plugin inject match function. |
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-cursor': patch | ||
--- | ||
|
||
Deprecated, use `@udecode/plate-selection` instead. |
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-selection': minor | ||
--- | ||
|
||
- New plugin `CursorOverlayPlugin` | ||
- `useCursorOverlay` now supports collapsed selection using `minSelectionWidth = 1` | ||
- selectable depends now on `data-block-id` instead of `data-key` | ||
- Fix a bug when deleting selected blocks without id | ||
- Fix `useBlockSelected`: use `id` parameter if defined |
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-dnd': minor | ||
--- | ||
|
||
- Dragging `dropEffect` is now `move` instead of `copy` | ||
- Fix drag bug when dragging an element without id |
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-heading': major | ||
'@udecode/plate-ai': major | ||
--- | ||
|
||
- Remove `scrollContainerSelector` option in favor of `useEditorContainerRef` |
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-html': patch | ||
--- | ||
|
||
Sync with `@udecode/plate-core` |
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-test-utils': patch | ||
--- | ||
|
||
- Strip (potentially injected by the compiler) attributes starting with `__`. | ||
- Remove internal functions from exports. |
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,11 @@ | ||
--- | ||
'@udecode/plate-node-id': minor | ||
--- | ||
|
||
- `idCreator` default is now `nanoid(10)` | ||
- New option `filterInline` to filter inline elements. Default is `true`. | ||
- `NodeIdPlugin`: | ||
- add `normalizeInitialValue` that set node ids when missing, called before mount | ||
- default behavior will normalize only the first and last node if missing id to avoid traversing the entire document | ||
- you can disable it with `NodeIdPlugin.configure({ normalizeInitialValue: null })` | ||
- you can force check all nodes with `NodeIdPlugin.configure({ options: { normalizeInitialValue: 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@udecode/plate-layout': major | ||
--- | ||
|
||
- Remove `toggleColumns` in favor of `toggleColumnGroup` | ||
- Remove `insertEmptyColumn` in favor of `insertColumn` |
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-markdown': minor | ||
--- | ||
|
||
- `api.markdown.deserialize`: add second argument option: `processor?: (processor: Processor) => Processor`. You could use this to add other remark plugins like `remark-gfm`. | ||
- Add `delete` text rule. This does not add support for strikethrough yet. |
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,7 @@ | ||
--- | ||
'@udecode/plate-line-height': patch | ||
'@udecode/plate-alignment': patch | ||
'@udecode/plate-indent': patch | ||
--- | ||
|
||
Use `getInjectMatch(editor, plugin)` |
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-table': patch | ||
--- | ||
|
||
Fix: remove tables without any rows |
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-utils': patch | ||
--- | ||
|
||
- `PlateElement` add `data-block-id` if `element.id` is defined, after editor mount to support SSR hydration. |
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
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
Oops, something went wrong.