@haklex/rich-compose 0.54.1 → 0.54.3
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.
|
@@ -118465,8 +118465,12 @@ ${g}`, r = e.length;
|
|
|
118465
118465
|
//#region ../rich-editor/src/utils/nested-editor-sync.ts
|
|
118466
118466
|
init_Lexical_prod();
|
|
118467
118467
|
function registerNestedEditorSync(parentEditor, nestedEditor, ownerKey) {
|
|
118468
|
-
|
|
118468
|
+
let synced = JSON.stringify(nestedEditor.getEditorState().toJSON());
|
|
118469
|
+
return nestedEditor.registerUpdateListener(({ dirtyElements, dirtyLeaves, editorState }) => {
|
|
118469
118470
|
if (dirtyElements.size === 0 && dirtyLeaves.size === 0) return;
|
|
118471
|
+
const content = JSON.stringify(editorState.toJSON());
|
|
118472
|
+
if (content === synced) return;
|
|
118473
|
+
synced = content;
|
|
118470
118474
|
parentEditor.update(() => {
|
|
118471
118475
|
const owner = Xc$1(ownerKey);
|
|
118472
118476
|
if (!owner) return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haklex/rich-compose",
|
|
3
|
-
"version": "0.54.
|
|
3
|
+
"version": "0.54.3",
|
|
4
4
|
"description": "Compose primitives for haklex rich content renderers — Gundam-style assembly of Lexical nodes, sync/lazy renderers, and Provider stacks.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -328,34 +328,34 @@
|
|
|
328
328
|
"dist"
|
|
329
329
|
],
|
|
330
330
|
"dependencies": {
|
|
331
|
-
"@haklex/rich-ext-chart": "0.54.
|
|
332
|
-
"@haklex/rich-ext-chat": "0.54.
|
|
333
|
-
"@haklex/rich-ext-code-snippet": "0.54.
|
|
334
|
-
"@haklex/rich-ext-embed": "0.54.
|
|
335
|
-
"@haklex/rich-ext-excalidraw": "0.54.
|
|
336
|
-
"@haklex/rich-ext-gallery": "0.54.
|
|
337
|
-
"@haklex/rich-ext-nested-doc": "0.54.
|
|
338
|
-
"@haklex/rich-ext-poll": "0.54.
|
|
339
|
-
"@haklex/rich-ext-steps": "0.54.
|
|
340
|
-
"@haklex/rich-litexml": "0.54.
|
|
341
|
-
"@haklex/rich-plugin-slash-menu": "0.54.
|
|
342
|
-
"@haklex/rich-renderer-alert": "0.54.
|
|
343
|
-
"@haklex/rich-renderer-banner": "0.54.
|
|
344
|
-
"@haklex/rich-renderer-codeblock": "0.54.
|
|
345
|
-
"@haklex/rich-renderer-file": "0.54.
|
|
346
|
-
"@haklex/rich-renderer-image": "0.54.
|
|
347
|
-
"@haklex/rich-renderer-katex": "0.54.
|
|
348
|
-
"@haklex/rich-renderer-linkcard": "0.54.
|
|
349
|
-
"@haklex/rich-renderer-mention": "0.54.
|
|
350
|
-
"@haklex/rich-renderer-mermaid": "0.54.
|
|
351
|
-
"@haklex/rich-renderer-ruby": "0.54.
|
|
352
|
-
"@haklex/rich-renderer-video": "0.54.
|
|
353
|
-
"@haklex/rich-style-token": "0.54.
|
|
331
|
+
"@haklex/rich-ext-chart": "0.54.3",
|
|
332
|
+
"@haklex/rich-ext-chat": "0.54.3",
|
|
333
|
+
"@haklex/rich-ext-code-snippet": "0.54.3",
|
|
334
|
+
"@haklex/rich-ext-embed": "0.54.3",
|
|
335
|
+
"@haklex/rich-ext-excalidraw": "0.54.3",
|
|
336
|
+
"@haklex/rich-ext-gallery": "0.54.3",
|
|
337
|
+
"@haklex/rich-ext-nested-doc": "0.54.3",
|
|
338
|
+
"@haklex/rich-ext-poll": "0.54.3",
|
|
339
|
+
"@haklex/rich-ext-steps": "0.54.3",
|
|
340
|
+
"@haklex/rich-litexml": "0.54.3",
|
|
341
|
+
"@haklex/rich-plugin-slash-menu": "0.54.3",
|
|
342
|
+
"@haklex/rich-renderer-alert": "0.54.3",
|
|
343
|
+
"@haklex/rich-renderer-banner": "0.54.3",
|
|
344
|
+
"@haklex/rich-renderer-codeblock": "0.54.3",
|
|
345
|
+
"@haklex/rich-renderer-file": "0.54.3",
|
|
346
|
+
"@haklex/rich-renderer-image": "0.54.3",
|
|
347
|
+
"@haklex/rich-renderer-katex": "0.54.3",
|
|
348
|
+
"@haklex/rich-renderer-linkcard": "0.54.3",
|
|
349
|
+
"@haklex/rich-renderer-mention": "0.54.3",
|
|
350
|
+
"@haklex/rich-renderer-mermaid": "0.54.3",
|
|
351
|
+
"@haklex/rich-renderer-ruby": "0.54.3",
|
|
352
|
+
"@haklex/rich-renderer-video": "0.54.3",
|
|
353
|
+
"@haklex/rich-style-token": "0.54.3",
|
|
354
354
|
"@lexical/headless": "^0.52.0"
|
|
355
355
|
},
|
|
356
356
|
"devDependencies": {
|
|
357
|
-
"@haklex/rich-editor": "0.54.
|
|
358
|
-
"@haklex/rich-ext-dynamic": "0.54.
|
|
357
|
+
"@haklex/rich-editor": "0.54.3",
|
|
358
|
+
"@haklex/rich-ext-dynamic": "0.54.3",
|
|
359
359
|
"@lexical/react": "^0.52.0",
|
|
360
360
|
"@types/react": "^19.3.0",
|
|
361
361
|
"@types/react-dom": "^19.3.0",
|
|
@@ -371,8 +371,8 @@
|
|
|
371
371
|
"vitest": "^5.0.5"
|
|
372
372
|
},
|
|
373
373
|
"peerDependencies": {
|
|
374
|
-
"@haklex/rich-editor": "^0.54.
|
|
375
|
-
"@haklex/rich-ext-dynamic": "^0.54.
|
|
374
|
+
"@haklex/rich-editor": "^0.54.3",
|
|
375
|
+
"@haklex/rich-ext-dynamic": "^0.54.3",
|
|
376
376
|
"@lexical/react": "^0.52.0",
|
|
377
377
|
"lexical": "^0.52.0",
|
|
378
378
|
"lucide-react": "^1.0.0",
|