@haklex/rich-ext-nested-doc 0.41.0 → 0.42.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/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { C as previewEmpty, S as editorArea, T as rendererContent, _ as dialogPopup, a as _defineProperty, b as editOverlay, c as hasRenderableEditorState, d as NestedDocRenderer, f as dialogFooter, g as dialogHeaderRight, h as dialogHeaderLeft, i as NestedDocNode, l as truncateEditorState, m as dialogHeaderCloseBtn, n as $createNestedDocNode, o as NestedDocPreviewCard, p as dialogHeader, r as $isNestedDocNode, s as NestedDocStaticDecorator, t as NESTED_DOC_BLOCK_TRANSFORMER, u as NESTED_DOC_NODE_KEY, v as dialogShell, w as previewSurface, x as editOverlayRoot, y as dialogTitle } from "./transformer-CPVDJXMA.js";
1
+ import { C as previewEmpty, S as editorArea, T as rendererContent, _ as dialogPopup, a as _defineProperty, b as editOverlay, c as hasRenderableEditorState, d as NestedDocRenderer, f as dialogFooter, g as dialogHeaderRight, h as dialogHeaderLeft, i as NestedDocNode, l as truncateEditorState, m as dialogHeaderCloseBtn, n as $createNestedDocNode, o as NestedDocPreviewCard, p as dialogHeader, r as $isNestedDocNode, s as NestedDocStaticDecorator, t as NESTED_DOC_BLOCK_TRANSFORMER, u as NESTED_DOC_NODE_KEY, v as dialogShell, w as previewSurface, x as editOverlayRoot, y as dialogTitle } from "./transformer-BGeNze3k.js";
2
2
  import { getResolvedEditNodes } from "@haklex/rich-editor/nodes";
3
3
  import { editorTheme, useColorScheme } from "@haklex/rich-editor/static";
4
4
  import { $getNodeByKey, $insertNodes, COMMAND_PRIORITY_EDITOR, createCommand, createEditor } from "lexical";
@@ -209,7 +209,7 @@ var NestedDocEditNode = class NestedDocEditNode extends NestedDocNode {
209
209
  return this.__contentEditor;
210
210
  }
211
211
  static importJSON(_serializedNode) {
212
- return new NestedDocEditNode(_serializedNode.content);
212
+ return new NestedDocEditNode(_serializedNode.content).updateFromJSON(_serializedNode);
213
213
  }
214
214
  exportJSON() {
215
215
  return {
package/dist/static.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { c as hasRenderableEditorState, d as NestedDocRenderer, i as NestedDocNode, l as truncateEditorState, n as $createNestedDocNode, o as NestedDocPreviewCard, r as $isNestedDocNode, s as NestedDocStaticDecorator, t as NESTED_DOC_BLOCK_TRANSFORMER, u as NESTED_DOC_NODE_KEY } from "./transformer-CPVDJXMA.js";
1
+ import { c as hasRenderableEditorState, d as NestedDocRenderer, i as NestedDocNode, l as truncateEditorState, n as $createNestedDocNode, o as NestedDocPreviewCard, r as $isNestedDocNode, s as NestedDocStaticDecorator, t as NESTED_DOC_BLOCK_TRANSFORMER, u as NESTED_DOC_NODE_KEY } from "./transformer-BGeNze3k.js";
2
2
  //#region src/static.ts
3
3
  var nestedDocNodes = [NestedDocNode];
4
4
  //#endregion
@@ -195,7 +195,7 @@ var NestedDocNode = class NestedDocNode extends DecoratorNode {
195
195
  return extractTextContent(this.__contentState);
196
196
  }
197
197
  static importJSON(_serializedNode) {
198
- return new NestedDocNode(_serializedNode.content);
198
+ return new NestedDocNode(_serializedNode.content).updateFromJSON(_serializedNode);
199
199
  }
200
200
  exportJSON() {
201
201
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haklex/rich-ext-nested-doc",
3
- "version": "0.41.0",
3
+ "version": "0.42.0",
4
4
  "description": "Nested document extension for haklex rich editor",
5
5
  "repository": {
6
6
  "type": "git",
@@ -46,9 +46,9 @@
46
46
  "lucide-react": "^1.0.0",
47
47
  "react": ">=19",
48
48
  "react-dom": ">=19",
49
- "@haklex/rich-editor": "^0.41.0",
50
- "@haklex/rich-style-token": "^0.41.0",
51
- "@haklex/rich-editor-ui": "^0.41.0"
49
+ "@haklex/rich-editor": "^0.42.0",
50
+ "@haklex/rich-editor-ui": "^0.42.0",
51
+ "@haklex/rich-style-token": "^0.42.0"
52
52
  },
53
53
  "publishConfig": {
54
54
  "access": "public"