@haklex/rich-ext-excalidraw 0.27.0 → 0.29.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/ExcalidrawEditNode.d.ts +3 -3
- package/dist/ExcalidrawEditNode.d.ts.map +1 -1
- package/dist/ExcalidrawNode.d.ts +1 -1
- package/dist/ExcalidrawNode.d.ts.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/static.mjs +1 -1
- package/dist/{transformer-DXq3gJFT.js → transformer-ovEGLn0R.js} +6 -6
- package/package.json +17 -17
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { CommandItemConfig } from '@haklex/rich-editor/commands';
|
|
2
|
-
import { EditorConfig, LexicalEditor, LexicalNode, NodeKey } from 'lexical';
|
|
2
|
+
import { EditorConfig, LexicalEditor, LexicalNode, NodeKey, SerializedLexicalNode } from 'lexical';
|
|
3
3
|
import { ReactElement } from 'react';
|
|
4
|
-
import { ExcalidrawNode
|
|
4
|
+
import { ExcalidrawNode } from './ExcalidrawNode';
|
|
5
5
|
export declare class ExcalidrawEditNode extends ExcalidrawNode {
|
|
6
6
|
static commandItems: CommandItemConfig[];
|
|
7
7
|
static clone(node: ExcalidrawEditNode): ExcalidrawEditNode;
|
|
8
8
|
constructor(snapshot: string, key?: NodeKey);
|
|
9
|
-
static importJSON(
|
|
9
|
+
static importJSON(_serializedNode: SerializedLexicalNode & Record<string, unknown>): ExcalidrawEditNode;
|
|
10
10
|
decorate(editor: LexicalEditor, config: EditorConfig): ReactElement;
|
|
11
11
|
}
|
|
12
12
|
export declare function $createExcalidrawEditNode(snapshot: string): ExcalidrawEditNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExcalidrawEditNode.d.ts","sourceRoot":"","sources":["../src/ExcalidrawEditNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"ExcalidrawEditNode.d.ts","sourceRoot":"","sources":["../src/ExcalidrawEditNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,OAAO,KAAK,EACV,YAAY,EACZ,aAAa,EACb,WAAW,EACX,OAAO,EACP,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAGjB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1C,OAAO,EAAE,cAAc,EAAiC,MAAM,kBAAkB,CAAC;AAUjF,qBAAa,kBAAmB,SAAQ,cAAc;IACpD,MAAM,CAAC,YAAY,EAAE,iBAAiB,EAAE,CAetC;IAEF,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,kBAAkB,GAAG,kBAAkB;gBAI9C,QAAQ,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,OAAO;IAI3C,MAAM,CAAC,UAAU,CACf,eAAe,EAAE,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC/D,kBAAkB;IAKrB,QAAQ,CAAC,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,YAAY,GAAG,YAAY;CAqCpE;AAED,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,MAAM,GAAG,kBAAkB,CAE9E;AAED,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GACnC,IAAI,IAAI,kBAAkB,CAE5B"}
|
package/dist/ExcalidrawNode.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare class ExcalidrawNode extends DecoratorNode<ReactElement> {
|
|
|
11
11
|
createDOM(_config: EditorConfig): HTMLElement;
|
|
12
12
|
updateDOM(): boolean;
|
|
13
13
|
isInline(): boolean;
|
|
14
|
-
static importJSON(
|
|
14
|
+
static importJSON(_serializedNode: SerializedLexicalNode & Record<string, unknown>): ExcalidrawNode;
|
|
15
15
|
exportJSON(): SerializedExcalidrawNode;
|
|
16
16
|
getSnapshot(): string;
|
|
17
17
|
setSnapshot(snapshot: string): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExcalidrawNode.d.ts","sourceRoot":"","sources":["../src/ExcalidrawNode.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,YAAY,EACZ,aAAa,EACb,WAAW,EACX,OAAO,EACP,qBAAqB,EACrB,MAAM,EACP,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAK1C,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,EAAE,qBAAqB,CAAC,CAAC;AAE3F,qBAAa,cAAe,SAAQ,aAAa,CAAC,YAAY,CAAC;IAC7D,UAAU,EAAE,MAAM,CAAC;IAEnB,MAAM,CAAC,OAAO,IAAI,MAAM;IAIxB,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,cAAc,GAAG,cAAc;gBAItC,QAAQ,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,OAAO;IAK3C,SAAS,CAAC,OAAO,EAAE,YAAY,GAAG,WAAW;IAM7C,SAAS,IAAI,OAAO;IAIpB,QAAQ,IAAI,OAAO;IAInB,MAAM,CAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"ExcalidrawNode.d.ts","sourceRoot":"","sources":["../src/ExcalidrawNode.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,YAAY,EACZ,aAAa,EACb,WAAW,EACX,OAAO,EACP,qBAAqB,EACrB,MAAM,EACP,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAK1C,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,EAAE,qBAAqB,CAAC,CAAC;AAE3F,qBAAa,cAAe,SAAQ,aAAa,CAAC,YAAY,CAAC;IAC7D,UAAU,EAAE,MAAM,CAAC;IAEnB,MAAM,CAAC,OAAO,IAAI,MAAM;IAIxB,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,cAAc,GAAG,cAAc;gBAItC,QAAQ,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,OAAO;IAK3C,SAAS,CAAC,OAAO,EAAE,YAAY,GAAG,WAAW;IAM7C,SAAS,IAAI,OAAO;IAIpB,QAAQ,IAAI,OAAO;IAInB,MAAM,CAAC,UAAU,CACf,eAAe,EAAE,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC/D,cAAc;IAKjB,UAAU,IAAI,wBAAwB;IAStC,WAAW,IAAI,MAAM;IAIrB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAKnC,QAAQ,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,YAAY,GAAG,YAAY;CAKtE;AAED,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,cAAc,CAEtE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,IAAI,cAAc,CAE9F"}
|
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-
|
|
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-ovEGLn0R.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-j7oXPRlF.js";
|
|
3
3
|
import { Suspense, createElement, lazy, useCallback, useEffect, useRef, useState } from "react";
|
|
4
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -17,8 +17,8 @@ var ExcalidrawEditNode = class ExcalidrawEditNode extends ExcalidrawNode {
|
|
|
17
17
|
constructor(snapshot, key) {
|
|
18
18
|
super(snapshot, key);
|
|
19
19
|
}
|
|
20
|
-
static importJSON(
|
|
21
|
-
return new ExcalidrawEditNode(
|
|
20
|
+
static importJSON(_serializedNode) {
|
|
21
|
+
return new ExcalidrawEditNode(_serializedNode.snapshot);
|
|
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-
|
|
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-ovEGLn0R.js";
|
|
2
2
|
import { A as ExcalidrawConfigProvider, S as excalidrawFullscreenPopup, j as useExcalidrawConfig } from "./useExcalidrawData-j7oXPRlF.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.
|
|
21
|
+
//#region \0@oxc-project+runtime@0.137.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.137.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.137.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.137.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,
|
|
@@ -259,8 +259,8 @@ var ExcalidrawNode = class ExcalidrawNode extends DecoratorNode {
|
|
|
259
259
|
isInline() {
|
|
260
260
|
return false;
|
|
261
261
|
}
|
|
262
|
-
static importJSON(
|
|
263
|
-
return $createExcalidrawNode(
|
|
262
|
+
static importJSON(_serializedNode) {
|
|
263
|
+
return $createExcalidrawNode(_serializedNode.snapshot);
|
|
264
264
|
}
|
|
265
265
|
exportJSON() {
|
|
266
266
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haklex/rich-ext-excalidraw",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.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.
|
|
29
|
+
"@haklex/rich-headless": "0.29.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@excalidraw/excalidraw": "^0.18.1",
|
|
33
|
-
"@lexical/react": "^0.
|
|
33
|
+
"@lexical/react": "^0.46.0",
|
|
34
34
|
"@types/react": "^19.2.17",
|
|
35
35
|
"@types/react-dom": "^19.2.3",
|
|
36
|
-
"@vanilla-extract/css": "^1.
|
|
37
|
-
"@vanilla-extract/vite-plugin": "^5.2.
|
|
38
|
-
"lexical": "^0.
|
|
39
|
-
"lucide-react": "^1.
|
|
40
|
-
"react": "19.2.
|
|
41
|
-
"react-dom": "19.2.
|
|
42
|
-
"typescript": "^
|
|
43
|
-
"unplugin-dts": "^1.0.
|
|
44
|
-
"vite": "^8.0
|
|
36
|
+
"@vanilla-extract/css": "^1.21.0",
|
|
37
|
+
"@vanilla-extract/vite-plugin": "^5.2.3",
|
|
38
|
+
"lexical": "^0.46.0",
|
|
39
|
+
"lucide-react": "^1.21.0",
|
|
40
|
+
"react": "^19.2.7",
|
|
41
|
+
"react-dom": "^19.2.7",
|
|
42
|
+
"typescript": "^6.0.3",
|
|
43
|
+
"unplugin-dts": "^1.0.3",
|
|
44
|
+
"vite": "^8.1.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@excalidraw/excalidraw": ">=0.18.0",
|
|
48
|
-
"@lexical/react": "^0.
|
|
49
|
-
"lexical": "^0.
|
|
48
|
+
"@lexical/react": "^0.46.0",
|
|
49
|
+
"lexical": "^0.46.0",
|
|
50
50
|
"lucide-react": "^1.0.0",
|
|
51
51
|
"react": ">=19",
|
|
52
52
|
"react-dom": ">=19",
|
|
53
|
-
"@haklex/rich-
|
|
54
|
-
"@haklex/rich-editor-ui": "^0.
|
|
55
|
-
"@haklex/rich-
|
|
53
|
+
"@haklex/rich-style-token": "^0.29.0",
|
|
54
|
+
"@haklex/rich-editor-ui": "^0.29.0",
|
|
55
|
+
"@haklex/rich-editor": "^0.29.0"
|
|
56
56
|
},
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|