@haklex/rich-ext-excalidraw 0.31.1 → 0.33.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 { 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-C0B88YLZ.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-lc2SgJ-m.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";
@@ -553,7 +553,8 @@ function ExcalidrawPlugin() {
553
553
  const [editor] = useLexicalComposerContext();
554
554
  useEffect(() => {
555
555
  return editor.registerCommand(INSERT_EXCALIDRAW_COMMAND, (snapshot) => {
556
- $insertNodes([$createExcalidrawEditNode(snapshot)]);
556
+ const node = $createExcalidrawEditNode(snapshot);
557
+ $insertNodes([node]);
557
558
  return true;
558
559
  }, COMMAND_PRIORITY_EDITOR);
559
560
  }, [editor]);
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-C0B88YLZ.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-lc2SgJ-m.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 };
@@ -18,7 +18,7 @@ var __exportAll = (all, no_symbols) => {
18
18
  return target;
19
19
  };
20
20
  //#endregion
21
- //#region \0@oxc-project+runtime@0.139.0/helpers/esm/typeof.js
21
+ //#region \0@oxc-project+runtime@0.142.0/helpers/esm/typeof.js
22
22
  function _typeof(o) {
23
23
  "@babel/helpers - typeof";
24
24
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -28,7 +28,7 @@ function _typeof(o) {
28
28
  }, _typeof(o);
29
29
  }
30
30
  //#endregion
31
- //#region \0@oxc-project+runtime@0.139.0/helpers/esm/toPrimitive.js
31
+ //#region \0@oxc-project+runtime@0.142.0/helpers/esm/toPrimitive.js
32
32
  function toPrimitive(t, r) {
33
33
  if ("object" != _typeof(t) || !t) return t;
34
34
  var e = t[Symbol.toPrimitive];
@@ -40,13 +40,13 @@ function toPrimitive(t, r) {
40
40
  return ("string" === r ? String : Number)(t);
41
41
  }
42
42
  //#endregion
43
- //#region \0@oxc-project+runtime@0.139.0/helpers/esm/toPropertyKey.js
43
+ //#region \0@oxc-project+runtime@0.142.0/helpers/esm/toPropertyKey.js
44
44
  function toPropertyKey(t) {
45
45
  var i = toPrimitive(t, "string");
46
46
  return "symbol" == _typeof(i) ? i : i + "";
47
47
  }
48
48
  //#endregion
49
- //#region \0@oxc-project+runtime@0.139.0/helpers/esm/defineProperty.js
49
+ //#region \0@oxc-project+runtime@0.142.0/helpers/esm/defineProperty.js
50
50
  function _defineProperty(e, r, t) {
51
51
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
52
52
  value: t,
@@ -59,9 +59,10 @@ function _defineProperty(e, r, t) {
59
59
  //#region src/ExcalidrawDisplayRenderer.tsx
60
60
  var ExcalidrawDisplayRenderer_exports = /* @__PURE__ */ __exportAll({ ExcalidrawDisplayRenderer: () => ExcalidrawDisplayRenderer });
61
61
  var ExcalidrawDisplayRenderer = ({ onExpand, snapshot }) => {
62
+ const theme = useColorScheme();
62
63
  return /* @__PURE__ */ jsx(ExcalidrawStaticCanvas, {
63
64
  snapshot,
64
- theme: useColorScheme(),
65
+ theme,
65
66
  onExpand
66
67
  });
67
68
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haklex/rich-ext-excalidraw",
3
- "version": "0.31.1",
3
+ "version": "0.33.0",
4
4
  "description": "Excalidraw whiteboard extension",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,33 +26,33 @@
26
26
  ],
27
27
  "dependencies": {
28
28
  "jsondiffpatch": "^0.7.6",
29
- "@haklex/rich-headless": "0.31.1"
29
+ "@haklex/rich-headless": "0.33.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@excalidraw/excalidraw": "^0.18.1",
33
- "@lexical/react": "^0.48.0",
34
- "@types/react": "^19.2.17",
35
- "@types/react-dom": "^19.2.3",
36
- "@vanilla-extract/css": "^1.21.1",
37
- "@vanilla-extract/vite-plugin": "^5.2.5",
38
- "lexical": "^0.48.0",
39
- "lucide-react": "^1.25.0",
40
- "react": "^19.2.7",
41
- "react-dom": "^19.2.7",
42
- "typescript": "^6.0.3",
33
+ "@lexical/react": "^0.49.0",
34
+ "@types/react": "^19.2.18",
35
+ "@types/react-dom": "^19.2.4",
36
+ "@vanilla-extract/css": "^1.21.2",
37
+ "@vanilla-extract/vite-plugin": "^5.2.6",
38
+ "lexical": "^0.49.0",
39
+ "lucide-react": "^1.28.0",
40
+ "react": "^19.2.8",
41
+ "react-dom": "^19.2.8",
42
+ "typescript": "^7.0.2",
43
43
  "unplugin-dts": "^1.0.3",
44
- "vite": "^8.1.5"
44
+ "vite": "^8.2.0"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@excalidraw/excalidraw": ">=0.18.0",
48
- "@lexical/react": "^0.47.0",
49
- "lexical": "^0.47.0",
48
+ "@lexical/react": "^0.49.0",
49
+ "lexical": "^0.49.0",
50
50
  "lucide-react": "^1.0.0",
51
51
  "react": ">=19",
52
52
  "react-dom": ">=19",
53
- "@haklex/rich-editor-ui": "^0.31.1",
54
- "@haklex/rich-editor": "^0.31.1",
55
- "@haklex/rich-style-token": "^0.31.1"
53
+ "@haklex/rich-editor": "^0.33.0",
54
+ "@haklex/rich-editor-ui": "^0.33.0",
55
+ "@haklex/rich-style-token": "^0.33.0"
56
56
  },
57
57
  "publishConfig": {
58
58
  "access": "public"