@haklex/rich-ext-excalidraw 0.31.0 → 0.31.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,5 +1,5 @@
|
|
|
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-
|
|
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-
|
|
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";
|
|
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";
|
|
5
5
|
import { useColorScheme } from "@haklex/rich-editor/static";
|
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-
|
|
2
|
-
import { A as ExcalidrawConfigProvider, S as excalidrawFullscreenPopup, j as useExcalidrawConfig } from "./useExcalidrawData-
|
|
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";
|
|
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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as excalidrawStaticContainer, E as excalidrawPlaceholder, T as excalidrawLoading, _ as excalidrawDialogTitle, c as excalidrawActionGroup, h as excalidrawDialogHeaderTitle, k as readonlyUIOptions, m as excalidrawDialogHeader, p as excalidrawDialogCanvas, s as excalidrawActionButton, t as useExcalidrawData, w as excalidrawHeaderClose, x as excalidrawError } from "./useExcalidrawData-
|
|
1
|
+
import { D as excalidrawStaticContainer, E as excalidrawPlaceholder, T as excalidrawLoading, _ as excalidrawDialogTitle, c as excalidrawActionGroup, h as excalidrawDialogHeaderTitle, k as readonlyUIOptions, m as excalidrawDialogHeader, p as excalidrawDialogCanvas, s as excalidrawActionButton, t as useExcalidrawData, w as excalidrawHeaderClose, x as excalidrawError } from "./useExcalidrawData-DAgaOBLz.js";
|
|
2
2
|
import { Component, Suspense, lazy, useCallback, useEffect, useRef, useState } from "react";
|
|
3
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { createRendererDecoration, useColorScheme } from "@haklex/rich-editor/static";
|
|
@@ -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.
|
|
21
|
+
//#region \0@oxc-project+runtime@0.139.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.
|
|
31
|
+
//#region \0@oxc-project+runtime@0.139.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.
|
|
43
|
+
//#region \0@oxc-project+runtime@0.139.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.
|
|
49
|
+
//#region \0@oxc-project+runtime@0.139.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,
|
|
@@ -165,7 +165,8 @@ function useExcalidrawData(data) {
|
|
|
165
165
|
if ((delta ? Object.keys(delta) : []).length > 0) {
|
|
166
166
|
const { patch } = await import("jsondiffpatch");
|
|
167
167
|
if (cancelled) return;
|
|
168
|
-
|
|
168
|
+
const patched = patch(structuredClone(json), delta);
|
|
169
|
+
setRemoteSnapshot(patched);
|
|
169
170
|
} else setRemoteSnapshot(json);
|
|
170
171
|
setLoading(false);
|
|
171
172
|
}).catch((err) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haklex/rich-ext-excalidraw",
|
|
3
|
-
"version": "0.31.
|
|
3
|
+
"version": "0.31.1",
|
|
4
4
|
"description": "Excalidraw whiteboard extension",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,22 +26,22 @@
|
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"jsondiffpatch": "^0.7.6",
|
|
29
|
-
"@haklex/rich-headless": "0.31.
|
|
29
|
+
"@haklex/rich-headless": "0.31.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@excalidraw/excalidraw": "^0.18.1",
|
|
33
|
-
"@lexical/react": "^0.
|
|
33
|
+
"@lexical/react": "^0.48.0",
|
|
34
34
|
"@types/react": "^19.2.17",
|
|
35
35
|
"@types/react-dom": "^19.2.3",
|
|
36
|
-
"@vanilla-extract/css": "^1.21.
|
|
37
|
-
"@vanilla-extract/vite-plugin": "^5.2.
|
|
38
|
-
"lexical": "^0.
|
|
39
|
-
"lucide-react": "^1.
|
|
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
40
|
"react": "^19.2.7",
|
|
41
41
|
"react-dom": "^19.2.7",
|
|
42
42
|
"typescript": "^6.0.3",
|
|
43
43
|
"unplugin-dts": "^1.0.3",
|
|
44
|
-
"vite": "^8.1.
|
|
44
|
+
"vite": "^8.1.5"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@excalidraw/excalidraw": ">=0.18.0",
|
|
@@ -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.31.
|
|
54
|
-
"@haklex/rich-editor
|
|
55
|
-
"@haklex/rich-style-token": "^0.31.
|
|
53
|
+
"@haklex/rich-editor-ui": "^0.31.1",
|
|
54
|
+
"@haklex/rich-editor": "^0.31.1",
|
|
55
|
+
"@haklex/rich-style-token": "^0.31.1"
|
|
56
56
|
},
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|