@haklex/rich-ext-excalidraw 0.40.0 → 0.41.1

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 { a as ExcalidrawNode, c as ExcalidrawDisplayRenderer, i as $isExcalidrawNode, l as _defineProperty, n as ExcalidrawExpandShell, o as EXCALIDRAW_NODE_KEY, r as $createExcalidrawNode, s as ExcalidrawSSRRenderer, t as EXCALIDRAW_BLOCK_TRANSFORMER, u as __exportAll } from "./transformer-BqXhW-_q.js";
1
+ import { a as ExcalidrawNode, c as ExcalidrawDisplayRenderer, i as $isExcalidrawNode, l as _defineProperty, n as ExcalidrawExpandShell, o as EXCALIDRAW_NODE_KEY, r as $createExcalidrawNode, s as ExcalidrawSSRRenderer, t as EXCALIDRAW_BLOCK_TRANSFORMER, u as __exportAll } from "./transformer-CS7y7oCa.js";
2
2
  import { A as ExcalidrawConfigProvider, C as excalidrawHeaderActions, O as excalidrawStatusDot, S as excalidrawFullscreenPopup, T as excalidrawLoading, _ as excalidrawDialogTitle, b as excalidrawEditorContainer, d as excalidrawConfirmBtnDanger, f as excalidrawConfirmBtnPrimary, g as excalidrawDialogMeta, i as excalidrawActionBarBtn, j as useExcalidrawConfig, k as readonlyUIOptions, l as excalidrawConfirmActions, m as excalidrawDialogHeader, n as parseSnapshot, p as excalidrawDialogCanvas, r as serializeSnapshot, t as useExcalidrawData, u as excalidrawConfirmBtn, v as excalidrawEditLabel, w as excalidrawHeaderClose, x as excalidrawError, y as excalidrawEditOverlay } from "./useExcalidrawData-DAgaOBLz.js";
3
3
  import { Suspense, createElement, lazy, useCallback, useEffect, useRef, useState } from "react";
4
4
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -18,7 +18,7 @@ var ExcalidrawEditNode = class ExcalidrawEditNode extends ExcalidrawNode {
18
18
  super(snapshot, key);
19
19
  }
20
20
  static importJSON(_serializedNode) {
21
- return new ExcalidrawEditNode(_serializedNode.snapshot);
21
+ return new ExcalidrawEditNode(_serializedNode.snapshot).updateFromJSON(_serializedNode);
22
22
  }
23
23
  decorate(editor, config) {
24
24
  if (!editor.isEditable()) return super.decorate(editor, config);
package/dist/static.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { a as ExcalidrawNode, c as ExcalidrawDisplayRenderer, i as $isExcalidrawNode, n as ExcalidrawExpandShell, o as EXCALIDRAW_NODE_KEY, r as $createExcalidrawNode, s as ExcalidrawSSRRenderer, t as EXCALIDRAW_BLOCK_TRANSFORMER } from "./transformer-BqXhW-_q.js";
1
+ import { a as ExcalidrawNode, c as ExcalidrawDisplayRenderer, i as $isExcalidrawNode, n as ExcalidrawExpandShell, o as EXCALIDRAW_NODE_KEY, r as $createExcalidrawNode, s as ExcalidrawSSRRenderer, t as EXCALIDRAW_BLOCK_TRANSFORMER } from "./transformer-CS7y7oCa.js";
2
2
  import { A as ExcalidrawConfigProvider, S as excalidrawFullscreenPopup, j as useExcalidrawConfig } from "./useExcalidrawData-DAgaOBLz.js";
3
3
  export { $createExcalidrawNode, $isExcalidrawNode, EXCALIDRAW_BLOCK_TRANSFORMER, EXCALIDRAW_NODE_KEY, ExcalidrawConfigProvider, ExcalidrawDisplayRenderer, ExcalidrawDisplayRenderer as ExcalidrawRenderer, ExcalidrawDisplayRenderer as ExcalidrawStaticRenderer, ExcalidrawExpandShell, ExcalidrawNode, ExcalidrawSSRRenderer, excalidrawFullscreenPopup, useExcalidrawConfig };
@@ -261,7 +261,7 @@ var ExcalidrawNode = class ExcalidrawNode extends DecoratorNode {
261
261
  return false;
262
262
  }
263
263
  static importJSON(_serializedNode) {
264
- return $createExcalidrawNode(_serializedNode.snapshot);
264
+ return $createExcalidrawNode(_serializedNode.snapshot).updateFromJSON(_serializedNode);
265
265
  }
266
266
  exportJSON() {
267
267
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haklex/rich-ext-excalidraw",
3
- "version": "0.40.0",
3
+ "version": "0.41.1",
4
4
  "description": "Excalidraw whiteboard extension",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,7 +26,7 @@
26
26
  ],
27
27
  "dependencies": {
28
28
  "jsondiffpatch": "^0.7.6",
29
- "@haklex/rich-headless": "0.40.0"
29
+ "@haklex/rich-headless": "0.41.1"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@excalidraw/excalidraw": "^0.18.1",
@@ -50,9 +50,9 @@
50
50
  "lucide-react": "^1.0.0",
51
51
  "react": ">=19",
52
52
  "react-dom": ">=19",
53
- "@haklex/rich-editor": "^0.40.0",
54
- "@haklex/rich-editor-ui": "^0.40.0",
55
- "@haklex/rich-style-token": "^0.40.0"
53
+ "@haklex/rich-editor": "^0.41.1",
54
+ "@haklex/rich-style-token": "^0.41.1",
55
+ "@haklex/rich-editor-ui": "^0.41.1"
56
56
  },
57
57
  "publishConfig": {
58
58
  "access": "public"