Skip to content

Commit f2591b1

Browse files
authored
Merge pull request #3744 from udecode/feat/scroll-id
Cursor Overlay plugin
2 parents 0d54c83 + 7cf8b9f commit f2591b1

File tree

408 files changed

+3535
-2065
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

408 files changed

+3535
-2065
lines changed

.changeset/ai.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@udecode/plate-ai': patch
3+
---
4+
5+
- `CopilotPlugin`: reset on mouse down
6+
- `CopilotPlugin`: auto trigger only on selection change

.changeset/column.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@udecode/plate-layout': minor
3+
---
4+
5+
- `ColumnPlugin`:
6+
- unwrap columns when there is only one column
7+
- remove column group when it has no column children
8+
- remove column when it has no children
9+
- Add `insertColumnGroup`
10+
- Add `toggleColumnGroup`

.changeset/core-major.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@udecode/plate-slate-react': major
3+
---
4+
5+
- Add `slate-dom` as a peer dependency
6+
- Update `slate-react` peer dependency to `>=0.111.0`

.changeset/core.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
'@udecode/plate-core': patch
3+
---
4+
5+
- `Plate` store: add `containerRef`. This is used by some plugins like `CursorOverlay`.
6+
- Add `useEditorContainerRef` selector hook. You can pass the returned ref to your editor scroll container.
7+
- `usePlateEditor` options: `value` can now be a callback function to get the value from the editor
8+
- `editor.key` is now using `nanoid()`
9+
- `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.
10+
- `Plate` now warns if multiple instances of `@udecode/plate-core` are detected. Use `suppressInstanceWarning` to suppress the warning.
11+
- `render.aboveNodes` and `render.belowNodes` now support `useElement`
12+
- `PlatePlugin.inject` new properties:
13+
- `excludePlugins?: string[]`
14+
- `excludeBelowPlugins?: string[]`
15+
- `maxLevel?: number`
16+
- `isLeaf?: boolean`
17+
- `isBlock?: boolean`
18+
- `isElement?: boolean`
19+
- Add `getInjectMatch(editor, plugin)` to get a plugin inject match function.

.changeset/cursor copy.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@udecode/plate-cursor': patch
3+
---
4+
5+
Deprecated, use `@udecode/plate-selection` instead.

.changeset/cursor.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'@udecode/plate-selection': minor
3+
---
4+
5+
- New plugin `CursorOverlayPlugin`
6+
- `useCursorOverlay` now supports collapsed selection using `minSelectionWidth = 1`
7+
- selectable depends now on `data-block-id` instead of `data-key`
8+
- Fix a bug when deleting selected blocks without id
9+
- Fix `useBlockSelected`: use `id` parameter if defined

.changeset/dnd.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@udecode/plate-dnd': minor
3+
---
4+
5+
- Dragging `dropEffect` is now `move` instead of `copy`
6+
- Fix drag bug when dragging an element without id

.changeset/heading.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@udecode/plate-heading': major
3+
'@udecode/plate-ai': major
4+
---
5+
6+
- Remove `scrollContainerSelector` option in favor of `useEditorContainerRef`

.changeset/html.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@udecode/plate-html': patch
3+
---
4+
5+
Sync with `@udecode/plate-core`

.changeset/hyper.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@udecode/plate-test-utils': patch
3+
---
4+
5+
- Strip (potentially injected by the compiler) attributes starting with `__`.
6+
- Remove internal functions from exports.

0 commit comments

Comments
 (0)