@lexical/yjs 0.48.0 → 0.48.1-nightly.20260720.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/LexicalYjs.dev.js +6 -3
- package/dist/LexicalYjs.dev.mjs +6 -3
- package/package.json +4 -4
- package/src/Utils.ts +6 -3
package/dist/LexicalYjs.dev.js
CHANGED
|
@@ -1290,9 +1290,12 @@ function $syncPropertiesFromYjs(binding, sharedType, lexicalNode, keysChanged) {
|
|
|
1290
1290
|
if (writableNode === undefined) {
|
|
1291
1291
|
writableNode = lexicalNode.getWritable();
|
|
1292
1292
|
}
|
|
1293
|
-
|
|
1294
|
-
//
|
|
1295
|
-
|
|
1293
|
+
|
|
1294
|
+
// Generic property writer. `property` is never a read-only node field
|
|
1295
|
+
// here (e.g. `__type` is intrinsic and, being equal on both sides, is
|
|
1296
|
+
// filtered out by the `prevValue !== nextValue` guard above), so cast
|
|
1297
|
+
// through a mutable record to write it.
|
|
1298
|
+
writableNode[property] = nextValue;
|
|
1296
1299
|
}
|
|
1297
1300
|
}
|
|
1298
1301
|
}
|
package/dist/LexicalYjs.dev.mjs
CHANGED
|
@@ -1288,9 +1288,12 @@ function $syncPropertiesFromYjs(binding, sharedType, lexicalNode, keysChanged) {
|
|
|
1288
1288
|
if (writableNode === undefined) {
|
|
1289
1289
|
writableNode = lexicalNode.getWritable();
|
|
1290
1290
|
}
|
|
1291
|
-
|
|
1292
|
-
//
|
|
1293
|
-
|
|
1291
|
+
|
|
1292
|
+
// Generic property writer. `property` is never a read-only node field
|
|
1293
|
+
// here (e.g. `__type` is intrinsic and, being equal on both sides, is
|
|
1294
|
+
// filtered out by the `prevValue !== nextValue` guard above), so cast
|
|
1295
|
+
// through a mutable record to write it.
|
|
1296
|
+
writableNode[property] = nextValue;
|
|
1294
1297
|
}
|
|
1295
1298
|
}
|
|
1296
1299
|
}
|
package/package.json
CHANGED
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
"crdt"
|
|
12
12
|
],
|
|
13
13
|
"license": "MIT",
|
|
14
|
-
"version": "0.48.0",
|
|
14
|
+
"version": "0.48.1-nightly.20260720.0",
|
|
15
15
|
"main": "./dist/LexicalYjs.js",
|
|
16
16
|
"types": "./dist/typescript-too-old.d.ts",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@lexical/internal": "0.48.0",
|
|
19
|
-
"lexical": "0.48.0",
|
|
20
|
-
"@lexical/selection": "0.48.0"
|
|
18
|
+
"@lexical/internal": "0.48.1-nightly.20260720.0",
|
|
19
|
+
"lexical": "0.48.1-nightly.20260720.0",
|
|
20
|
+
"@lexical/selection": "0.48.1-nightly.20260720.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"yjs": "^13.6.31"
|
package/src/Utils.ts
CHANGED
|
@@ -553,9 +553,12 @@ export function $syncPropertiesFromYjs(
|
|
|
553
553
|
writableNode = lexicalNode.getWritable();
|
|
554
554
|
}
|
|
555
555
|
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
556
|
+
// Generic property writer. `property` is never a read-only node field
|
|
557
|
+
// here (e.g. `__type` is intrinsic and, being equal on both sides, is
|
|
558
|
+
// filtered out by the `prevValue !== nextValue` guard above), so cast
|
|
559
|
+
// through a mutable record to write it.
|
|
560
|
+
(writableNode as unknown as Record<string, unknown>)[property] =
|
|
561
|
+
nextValue;
|
|
559
562
|
}
|
|
560
563
|
}
|
|
561
564
|
}
|