@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.
@@ -1290,9 +1290,12 @@ function $syncPropertiesFromYjs(binding, sharedType, lexicalNode, keysChanged) {
1290
1290
  if (writableNode === undefined) {
1291
1291
  writableNode = lexicalNode.getWritable();
1292
1292
  }
1293
- writableNode[property] =
1294
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1295
- nextValue;
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
  }
@@ -1288,9 +1288,12 @@ function $syncPropertiesFromYjs(binding, sharedType, lexicalNode, keysChanged) {
1288
1288
  if (writableNode === undefined) {
1289
1289
  writableNode = lexicalNode.getWritable();
1290
1290
  }
1291
- writableNode[property] =
1292
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1293
- nextValue;
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
- writableNode[property as string & keyof typeof writableNode] =
557
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
558
- nextValue as any;
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
  }