Skip to content

Commit 0432113

Browse files
authored
Merge pull request #4462 from udecode/changeset-release/main
[Release] Version packages
2 parents f669704 + 15627b4 commit 0432113

File tree

46 files changed

+96
-89
lines changed

Some content is hidden

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

46 files changed

+96
-89
lines changed

.changeset/core-node-id-normalize.md

Lines changed: 0 additions & 44 deletions
This file was deleted.

packages/autoformat/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"platejs": "workspace:^"
5151
},
5252
"peerDependencies": {
53-
"platejs": ">=49.1.2",
53+
"platejs": ">=49.1.3",
5454
"react": ">=18.0.0",
5555
"react-dom": ">=18.0.0"
5656
},

packages/basic-nodes/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"platejs": "workspace:^"
5454
},
5555
"peerDependencies": {
56-
"platejs": ">=49.1.2",
56+
"platejs": ">=49.1.3",
5757
"react": ">=18.0.0",
5858
"react-dom": ">=18.0.0"
5959
},

packages/basic-styles/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"platejs": "workspace:^"
5454
},
5555
"peerDependencies": {
56-
"platejs": ">=49.1.2",
56+
"platejs": ">=49.1.3",
5757
"react": ">=18.0.0",
5858
"react-dom": ">=18.0.0"
5959
},

packages/callout/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"platejs": "workspace:^"
5454
},
5555
"peerDependencies": {
56-
"platejs": ">=49.1.2",
56+
"platejs": ">=49.1.3",
5757
"react": ">=18.0.0",
5858
"react-dom": ">=18.0.0"
5959
},

packages/caption/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"platejs": "workspace:^"
5656
},
5757
"peerDependencies": {
58-
"platejs": ">=49.1.2",
58+
"platejs": ">=49.1.3",
5959
"react": ">=18.0.0",
6060
"react-dom": ">=18.0.0"
6161
},

packages/code-block/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"platejs": "workspace:^"
5555
},
5656
"peerDependencies": {
57-
"platejs": ">=49.1.2",
57+
"platejs": ">=49.1.3",
5858
"react": ">=18.0.0",
5959
"react-dom": ">=18.0.0"
6060
},

packages/combobox/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"platejs": "workspace:^"
5454
},
5555
"peerDependencies": {
56-
"platejs": ">=49.1.2",
56+
"platejs": ">=49.1.3",
5757
"react": ">=18.0.0",
5858
"react-dom": ">=18.0.0"
5959
},

packages/comment/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"platejs": "workspace:^"
5757
},
5858
"peerDependencies": {
59-
"platejs": ">=49.1.2",
59+
"platejs": ">=49.1.3",
6060
"react": ">=18.0.0",
6161
"react-dom": ">=18.0.0"
6262
},

packages/core/CHANGELOG.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,52 @@
11
# @platejs/core
22

3+
## 49.1.3
4+
5+
### Patch Changes
6+
7+
- [#4454](https://github.com/udecode/plate/pull/4454) by [@felixfeng33](https://github.com/felixfeng33) –
8+
9+
- Added `editor.tf.nodeId.normalize()` API to manually normalize node IDs in the document.
10+
11+
```ts
12+
// Normalize all nodes in the document to ensure they have IDs
13+
editor.tf.nodeId.normalize();
14+
```
15+
16+
- Added `normalizeNodeId` pure function to normalize node IDs in a value without using editor operations.
17+
18+
```ts
19+
import { normalizeNodeId } from '@platejs/core';
20+
21+
// Normalize a value without editor operations
22+
const normalizedValue = normalizeNodeId(value, {
23+
idKey: 'id',
24+
idCreator: () => nanoid(10),
25+
filterInline: true,
26+
filterText: true,
27+
});
28+
```
29+
30+
This is useful when the value is passed from server to client-side editor.
31+
32+
- Added `getFragment()` API method to **ViewPlugin** for accessing the selected DOM fragment.
33+
34+
**usePlateViewEditor**:
35+
36+
- Added `onReady` handler support for async rendering with automatic re-render when `isAsync` is true
37+
38+
```typescript
39+
// New API usage
40+
const fragment = editor.getApi(ViewPlugin).getFragment();
41+
42+
// Async rendering support
43+
const editor = usePlateViewEditor({
44+
onReady: (ctx) => {
45+
// Called when editor is ready, supports async rendering
46+
},
47+
});
48+
```
49+
350
## 49.1.2
451

552
### Patch Changes

0 commit comments

Comments
 (0)