@dwelle/excalidraw 0.3.76-react18 → 0.3.78
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/excalidraw-assets/vendor-b9b3a25c026c138e55b2.js +2 -0
- package/dist/excalidraw-assets/vendor-b9b3a25c026c138e55b2.js.LICENSE.txt +6 -0
- package/dist/excalidraw-assets-dev/{vendor-4534d6e506404cef7a9e.js → vendor-33bd21df77fc9cda16d2.js} +66 -0
- package/dist/excalidraw.development.js +154 -160
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/excalidraw.production.min.js.LICENSE.txt +1 -17
- package/package.json +20 -22
- package/types/actions/actionAddToLibrary.d.ts +3 -0
- package/types/actions/actionAlign.d.ts +6 -6
- package/types/actions/actionBoundText.d.ts +1 -0
- package/types/actions/actionCanvas.d.ts +15 -7
- package/types/actions/actionClipboard.d.ts +6 -0
- package/types/actions/actionDeleteSelected.d.ts +5 -1
- package/types/actions/actionDistribute.d.ts +2 -2
- package/types/actions/actionDuplicateSelection.d.ts +1 -1
- package/types/actions/actionExport.d.ts +17 -8
- package/types/actions/actionFinalize.d.ts +3 -1
- package/types/actions/actionGroup.d.ts +2 -2
- package/types/actions/actionMenu.d.ts +6 -3
- package/types/actions/actionNavigate.d.ts +1 -2
- package/types/actions/actionProperties.d.ts +26 -13
- package/types/actions/actionSelectAll.d.ts +2 -1
- package/types/actions/actionStyles.d.ts +1 -0
- package/types/actions/actionToggleGridMode.d.ts +1 -0
- package/types/actions/actionToggleLock.d.ts +99 -1
- package/types/actions/actionToggleStats.d.ts +1 -0
- package/types/actions/actionToggleViewMode.d.ts +1 -0
- package/types/actions/actionToggleZenMode.d.ts +1 -0
- package/types/actions/actionZindex.d.ts +4 -4
- package/types/analytics.d.ts +1 -1
- package/types/appState.d.ts +1 -0
- package/types/clients.d.ts +1 -1
- package/types/components/ActiveFile.d.ts +0 -1
- package/types/components/App.d.ts +2 -1
- package/types/components/ButtonIconSelect.d.ts +0 -1
- package/types/components/ClearCanvas.d.ts +0 -1
- package/types/components/CollabButton.d.ts +0 -1
- package/types/components/ColorPicker.d.ts +0 -1
- package/types/components/ConfirmDialog.d.ts +0 -1
- package/types/components/DarkModeToggle.d.ts +0 -1
- package/types/components/ErrorDialog.d.ts +0 -1
- package/types/components/HelpDialog.d.ts +0 -1
- package/types/components/HelpIcon.d.ts +0 -1
- package/types/components/HintViewer.d.ts +0 -1
- package/types/components/IconPicker.d.ts +0 -1
- package/types/components/ImageExportDialog.d.ts +0 -1
- package/types/components/JSONExportDialog.d.ts +0 -1
- package/types/components/LibraryMenu.d.ts +0 -1
- package/types/components/LibraryUnit.d.ts +0 -1
- package/types/components/LockButton.d.ts +0 -1
- package/types/components/Modal.d.ts +2 -2
- package/types/components/PenModeButton.d.ts +0 -1
- package/types/components/ProjectName.d.ts +0 -1
- package/types/components/PublishLibrary.d.ts +0 -1
- package/types/components/SidebarLockButton.d.ts +0 -1
- package/types/components/SingleLibraryItem.d.ts +0 -1
- package/types/components/Spinner.d.ts +0 -1
- package/types/components/Toast.d.ts +0 -1
- package/types/data/blob.d.ts +4 -4
- package/types/data/json.d.ts +1 -1
- package/types/element/Hyperlink.d.ts +2 -1
- package/types/element/binding.d.ts +3 -3
- package/types/element/dragElements.d.ts +1 -1
- package/types/element/index.d.ts +1 -1
- package/types/element/linearElementEditor.d.ts +9 -5
- package/types/element/mutateElement.d.ts +1 -1
- package/types/element/sizeHelpers.d.ts +4 -0
- package/types/element/textElement.d.ts +1 -1
- package/types/element/typeChecks.d.ts +3 -3
- package/types/keys.d.ts +1 -1
- package/types/packages/excalidraw/dist/excalidraw-assets/vendor-6644c8f79d52085cf653.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/vendor-b9b3a25c026c138e55b2.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-33bd21df77fc9cda16d2.d.ts +0 -0
- package/types/packages/excalidraw/dist/excalidraw.production.min.d.ts +5 -1
- package/types/packages/excalidraw/example/App.d.ts +0 -1
- package/types/packages/excalidraw/webpack.prod.config.d.ts +2 -1
- package/types/renderer/renderElement.d.ts +1 -1
- package/types/shapes.d.ts +0 -1
- package/types/types.d.ts +1 -0
- package/types/utils.d.ts +6 -6
- package/dist/excalidraw-assets/vendor-aed19b6e017f9f736254.js +0 -2
- package/dist/excalidraw-assets/vendor-aed19b6e017f9f736254.js.LICENSE.txt +0 -12
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
/*
|
|
2
|
-
object-assign
|
|
3
|
-
(c) Sindre Sorhus
|
|
4
|
-
@license MIT
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
1
|
/**
|
|
8
|
-
* @license
|
|
9
|
-
* Lodash <https://lodash.com/>
|
|
10
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
11
|
-
* Released under MIT license <https://lodash.com/license>
|
|
12
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
13
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
/** @license React v17.0.2
|
|
2
|
+
* @license React
|
|
17
3
|
* react-jsx-runtime.production.min.js
|
|
18
4
|
*
|
|
19
5
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -21,5 +7,3 @@ object-assign
|
|
|
21
7
|
* This source code is licensed under the MIT license found in the
|
|
22
8
|
* LICENSE file in the root directory of this source tree.
|
|
23
9
|
*/
|
|
24
|
-
|
|
25
|
-
// @license © 2020 Google LLC. Licensed under the Apache License, Version 2.0.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dwelle/excalidraw",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.78",
|
|
4
4
|
"main": "main.js",
|
|
5
5
|
"types": "types/packages/excalidraw/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -33,32 +33,33 @@
|
|
|
33
33
|
]
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"react": "^17.0.2",
|
|
37
|
-
"react-dom": "^17.0.2"
|
|
36
|
+
"react": "^17.0.2 || ^18.2.0",
|
|
37
|
+
"react-dom": "^17.0.2 || ^18.2.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@babel/core": "7.
|
|
41
|
-
"@babel/plugin-transform-arrow-functions": "7.
|
|
42
|
-
"@babel/plugin-transform-async-to-generator": "7.
|
|
43
|
-
"@babel/plugin-transform-runtime": "7.
|
|
44
|
-
"@babel/plugin-transform-typescript": "7.
|
|
40
|
+
"@babel/core": "7.18.9",
|
|
41
|
+
"@babel/plugin-transform-arrow-functions": "7.18.6",
|
|
42
|
+
"@babel/plugin-transform-async-to-generator": "7.18.6",
|
|
43
|
+
"@babel/plugin-transform-runtime": "7.18.9",
|
|
44
|
+
"@babel/plugin-transform-typescript": "7.18.8",
|
|
45
45
|
"@babel/preset-env": "7.18.6",
|
|
46
|
-
"@babel/preset-react": "7.
|
|
47
|
-
"@babel/preset-typescript": "7.
|
|
46
|
+
"@babel/preset-react": "7.18.6",
|
|
47
|
+
"@babel/preset-typescript": "7.18.6",
|
|
48
48
|
"autoprefixer": "10.4.7",
|
|
49
49
|
"babel-loader": "8.2.5",
|
|
50
50
|
"babel-plugin-transform-class-properties": "6.24.1",
|
|
51
51
|
"cross-env": "7.0.3",
|
|
52
52
|
"css-loader": "6.7.1",
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
53
|
+
"dotenv": "16.0.1",
|
|
54
|
+
"mini-css-extract-plugin": "2.6.1",
|
|
55
|
+
"postcss-loader": "7.0.1",
|
|
56
|
+
"sass-loader": "13.0.2",
|
|
57
|
+
"terser-webpack-plugin": "5.3.3",
|
|
58
|
+
"ts-loader": "9.3.1",
|
|
59
|
+
"typescript": "4.7.4",
|
|
60
|
+
"webpack": "5.73.0",
|
|
60
61
|
"webpack-bundle-analyzer": "4.5.0",
|
|
61
|
-
"webpack-cli": "4.
|
|
62
|
+
"webpack-cli": "4.10.0",
|
|
62
63
|
"webpack-dev-server": "4.9.3",
|
|
63
64
|
"webpack-merge": "5.8.0"
|
|
64
65
|
},
|
|
@@ -71,9 +72,6 @@
|
|
|
71
72
|
"pack": "yarn build:umd && yarn pack",
|
|
72
73
|
"start": "webpack serve --config webpack.dev-server.config.js",
|
|
73
74
|
"install:deps": "yarn install --frozen-lockfile && yarn --cwd ../../../",
|
|
74
|
-
"build:example": "EXAMPLE=true webpack --config webpack.dev-server.config.js"
|
|
75
|
-
},
|
|
76
|
-
"dependencies": {
|
|
77
|
-
"dotenv": "10.0.0"
|
|
75
|
+
"build:example": "EXAMPLE=true webpack --config webpack.dev-server.config.js && yarn gen:types"
|
|
78
76
|
}
|
|
79
77
|
}
|
|
@@ -100,6 +100,7 @@ export declare const actionAddToLibrary: {
|
|
|
100
100
|
};
|
|
101
101
|
pendingImageElementId: string | null;
|
|
102
102
|
showHyperlinkPopup: false | "info" | "editor";
|
|
103
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
103
104
|
};
|
|
104
105
|
} | {
|
|
105
106
|
commitToHistory: false;
|
|
@@ -200,6 +201,7 @@ export declare const actionAddToLibrary: {
|
|
|
200
201
|
};
|
|
201
202
|
pendingImageElementId: string | null;
|
|
202
203
|
showHyperlinkPopup: false | "info" | "editor";
|
|
204
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
203
205
|
};
|
|
204
206
|
}> | {
|
|
205
207
|
commitToHistory: false;
|
|
@@ -300,6 +302,7 @@ export declare const actionAddToLibrary: {
|
|
|
300
302
|
};
|
|
301
303
|
pendingImageElementId: string | null;
|
|
302
304
|
showHyperlinkPopup: false | "info" | "editor";
|
|
305
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
303
306
|
};
|
|
304
307
|
};
|
|
305
308
|
contextItemLabel: string;
|
|
@@ -12,7 +12,7 @@ export declare const actionAlignTop: {
|
|
|
12
12
|
commitToHistory: true;
|
|
13
13
|
};
|
|
14
14
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
15
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
15
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
16
16
|
} & {
|
|
17
17
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
18
18
|
};
|
|
@@ -27,7 +27,7 @@ export declare const actionAlignBottom: {
|
|
|
27
27
|
commitToHistory: true;
|
|
28
28
|
};
|
|
29
29
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
30
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
30
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
31
31
|
} & {
|
|
32
32
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
33
33
|
};
|
|
@@ -42,7 +42,7 @@ export declare const actionAlignLeft: {
|
|
|
42
42
|
commitToHistory: true;
|
|
43
43
|
};
|
|
44
44
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
45
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
45
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
46
46
|
} & {
|
|
47
47
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
48
48
|
};
|
|
@@ -57,7 +57,7 @@ export declare const actionAlignRight: {
|
|
|
57
57
|
commitToHistory: true;
|
|
58
58
|
};
|
|
59
59
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
60
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
60
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
61
61
|
} & {
|
|
62
62
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
63
63
|
};
|
|
@@ -71,7 +71,7 @@ export declare const actionAlignVerticallyCentered: {
|
|
|
71
71
|
elements: ExcalidrawElement[];
|
|
72
72
|
commitToHistory: true;
|
|
73
73
|
};
|
|
74
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
74
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
75
75
|
} & {
|
|
76
76
|
keyTest?: undefined;
|
|
77
77
|
};
|
|
@@ -85,7 +85,7 @@ export declare const actionAlignHorizontallyCentered: {
|
|
|
85
85
|
elements: ExcalidrawElement[];
|
|
86
86
|
commitToHistory: true;
|
|
87
87
|
};
|
|
88
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
88
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
89
89
|
} & {
|
|
90
90
|
keyTest?: undefined;
|
|
91
91
|
};
|
|
@@ -119,6 +119,7 @@ export declare const actionBindText: {
|
|
|
119
119
|
};
|
|
120
120
|
pendingImageElementId: string | null;
|
|
121
121
|
showHyperlinkPopup: false | "info" | "editor";
|
|
122
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
122
123
|
};
|
|
123
124
|
commitToHistory: true;
|
|
124
125
|
};
|
|
@@ -8,7 +8,7 @@ export declare const actionChangeViewBackgroundColor: {
|
|
|
8
8
|
appState: any;
|
|
9
9
|
commitToHistory: boolean;
|
|
10
10
|
};
|
|
11
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
11
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
12
12
|
} & {
|
|
13
13
|
keyTest?: undefined;
|
|
14
14
|
};
|
|
@@ -113,10 +113,11 @@ export declare const actionClearCanvas: {
|
|
|
113
113
|
currentChartType: import("../element/types").ChartType;
|
|
114
114
|
pendingImageElementId: string | null;
|
|
115
115
|
showHyperlinkPopup: false | "info" | "editor";
|
|
116
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
116
117
|
};
|
|
117
118
|
commitToHistory: true;
|
|
118
119
|
};
|
|
119
|
-
PanelComponent: ({ updateData }: import("
|
|
120
|
+
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
120
121
|
} & {
|
|
121
122
|
keyTest?: undefined;
|
|
122
123
|
};
|
|
@@ -223,10 +224,11 @@ export declare const actionZoomIn: {
|
|
|
223
224
|
};
|
|
224
225
|
pendingImageElementId: string | null;
|
|
225
226
|
showHyperlinkPopup: false | "info" | "editor";
|
|
227
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
226
228
|
};
|
|
227
229
|
commitToHistory: false;
|
|
228
230
|
};
|
|
229
|
-
PanelComponent: ({ updateData }: import("
|
|
231
|
+
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
230
232
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
231
233
|
} & {
|
|
232
234
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -334,10 +336,11 @@ export declare const actionZoomOut: {
|
|
|
334
336
|
};
|
|
335
337
|
pendingImageElementId: string | null;
|
|
336
338
|
showHyperlinkPopup: false | "info" | "editor";
|
|
339
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
337
340
|
};
|
|
338
341
|
commitToHistory: false;
|
|
339
342
|
};
|
|
340
|
-
PanelComponent: ({ updateData }: import("
|
|
343
|
+
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
341
344
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
342
345
|
} & {
|
|
343
346
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -445,10 +448,11 @@ export declare const actionResetZoom: {
|
|
|
445
448
|
};
|
|
446
449
|
pendingImageElementId: string | null;
|
|
447
450
|
showHyperlinkPopup: false | "info" | "editor";
|
|
451
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
448
452
|
};
|
|
449
453
|
commitToHistory: false;
|
|
450
454
|
};
|
|
451
|
-
PanelComponent: ({ updateData, appState }: import("
|
|
455
|
+
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
|
|
452
456
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
453
457
|
} & {
|
|
454
458
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -556,6 +560,7 @@ export declare const actionZoomToSelected: {
|
|
|
556
560
|
};
|
|
557
561
|
pendingImageElementId: string | null;
|
|
558
562
|
showHyperlinkPopup: false | "info" | "editor";
|
|
563
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
559
564
|
};
|
|
560
565
|
commitToHistory: boolean;
|
|
561
566
|
};
|
|
@@ -666,6 +671,7 @@ export declare const actionZoomToFit: {
|
|
|
666
671
|
};
|
|
667
672
|
pendingImageElementId: string | null;
|
|
668
673
|
showHyperlinkPopup: false | "info" | "editor";
|
|
674
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
669
675
|
};
|
|
670
676
|
commitToHistory: boolean;
|
|
671
677
|
};
|
|
@@ -776,10 +782,11 @@ export declare const actionToggleTheme: {
|
|
|
776
782
|
};
|
|
777
783
|
pendingImageElementId: string | null;
|
|
778
784
|
showHyperlinkPopup: false | "info" | "editor";
|
|
785
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
779
786
|
};
|
|
780
787
|
commitToHistory: false;
|
|
781
788
|
};
|
|
782
|
-
PanelComponent: ({ appState, updateData }: import("
|
|
789
|
+
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
783
790
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
784
791
|
} & {
|
|
785
792
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -883,11 +890,12 @@ export declare const actionErase: {
|
|
|
883
890
|
};
|
|
884
891
|
pendingImageElementId: string | null;
|
|
885
892
|
showHyperlinkPopup: false | "info" | "editor";
|
|
893
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
886
894
|
};
|
|
887
895
|
commitToHistory: true;
|
|
888
896
|
};
|
|
889
897
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
890
|
-
PanelComponent: ({ elements, appState, updateData, data }: import("
|
|
898
|
+
PanelComponent: ({ elements, appState, updateData, data }: import("./types").PanelComponentProps) => JSX.Element;
|
|
891
899
|
} & {
|
|
892
900
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
893
901
|
};
|
|
@@ -116,6 +116,7 @@ export declare const actionCut: {
|
|
|
116
116
|
};
|
|
117
117
|
pendingImageElementId: string | null;
|
|
118
118
|
showHyperlinkPopup: false | "info" | "editor";
|
|
119
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
119
120
|
};
|
|
120
121
|
commitToHistory: false;
|
|
121
122
|
} | {
|
|
@@ -138,6 +139,7 @@ export declare const actionCut: {
|
|
|
138
139
|
x: number;
|
|
139
140
|
y: number;
|
|
140
141
|
}>;
|
|
142
|
+
hoverPointIndex: number;
|
|
141
143
|
};
|
|
142
144
|
isLoading: boolean;
|
|
143
145
|
errorMessage: string | null;
|
|
@@ -234,6 +236,7 @@ export declare const actionCut: {
|
|
|
234
236
|
};
|
|
235
237
|
pendingImageElementId: string | null;
|
|
236
238
|
showHyperlinkPopup: false | "info" | "editor";
|
|
239
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
237
240
|
};
|
|
238
241
|
commitToHistory: true;
|
|
239
242
|
} | {
|
|
@@ -333,6 +336,7 @@ export declare const actionCut: {
|
|
|
333
336
|
};
|
|
334
337
|
pendingImageElementId: string | null;
|
|
335
338
|
showHyperlinkPopup: false | "info" | "editor";
|
|
339
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
336
340
|
};
|
|
337
341
|
commitToHistory: boolean;
|
|
338
342
|
};
|
|
@@ -447,6 +451,7 @@ export declare const actionCopyAsSvg: {
|
|
|
447
451
|
};
|
|
448
452
|
pendingImageElementId: string | null;
|
|
449
453
|
showHyperlinkPopup: false | "info" | "editor";
|
|
454
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
450
455
|
};
|
|
451
456
|
commitToHistory: false;
|
|
452
457
|
}>;
|
|
@@ -560,6 +565,7 @@ export declare const actionCopyAsPng: {
|
|
|
560
565
|
};
|
|
561
566
|
pendingImageElementId: string | null;
|
|
562
567
|
showHyperlinkPopup: false | "info" | "editor";
|
|
568
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
563
569
|
};
|
|
564
570
|
commitToHistory: false;
|
|
565
571
|
}>;
|
|
@@ -107,6 +107,7 @@ export declare const actionDeleteSelected: {
|
|
|
107
107
|
};
|
|
108
108
|
pendingImageElementId: string | null;
|
|
109
109
|
showHyperlinkPopup: false | "info" | "editor";
|
|
110
|
+
selectedLinearElement: LinearElementEditor | null;
|
|
110
111
|
};
|
|
111
112
|
commitToHistory: false;
|
|
112
113
|
} | {
|
|
@@ -129,6 +130,7 @@ export declare const actionDeleteSelected: {
|
|
|
129
130
|
x: number;
|
|
130
131
|
y: number;
|
|
131
132
|
}>;
|
|
133
|
+
hoverPointIndex: number;
|
|
132
134
|
};
|
|
133
135
|
isLoading: boolean;
|
|
134
136
|
errorMessage: string | null;
|
|
@@ -225,6 +227,7 @@ export declare const actionDeleteSelected: {
|
|
|
225
227
|
};
|
|
226
228
|
pendingImageElementId: string | null;
|
|
227
229
|
showHyperlinkPopup: false | "info" | "editor";
|
|
230
|
+
selectedLinearElement: LinearElementEditor | null;
|
|
228
231
|
};
|
|
229
232
|
commitToHistory: true;
|
|
230
233
|
} | {
|
|
@@ -324,12 +327,13 @@ export declare const actionDeleteSelected: {
|
|
|
324
327
|
};
|
|
325
328
|
pendingImageElementId: string | null;
|
|
326
329
|
showHyperlinkPopup: false | "info" | "editor";
|
|
330
|
+
selectedLinearElement: LinearElementEditor | null;
|
|
327
331
|
};
|
|
328
332
|
commitToHistory: boolean;
|
|
329
333
|
};
|
|
330
334
|
contextItemLabel: string;
|
|
331
335
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
332
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
336
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
333
337
|
} & {
|
|
334
338
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
335
339
|
};
|
|
@@ -12,7 +12,7 @@ export declare const distributeHorizontally: {
|
|
|
12
12
|
commitToHistory: true;
|
|
13
13
|
};
|
|
14
14
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
15
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
15
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
16
16
|
} & {
|
|
17
17
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
18
18
|
};
|
|
@@ -27,7 +27,7 @@ export declare const distributeVertically: {
|
|
|
27
27
|
commitToHistory: true;
|
|
28
28
|
};
|
|
29
29
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
30
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
30
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
31
31
|
} & {
|
|
32
32
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
33
33
|
};
|
|
@@ -16,7 +16,7 @@ export declare const actionDuplicateSelection: {
|
|
|
16
16
|
};
|
|
17
17
|
contextItemLabel: string;
|
|
18
18
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
19
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
19
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
20
20
|
} & {
|
|
21
21
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
22
22
|
};
|
|
@@ -101,10 +101,11 @@ export declare const actionChangeProjectName: {
|
|
|
101
101
|
};
|
|
102
102
|
pendingImageElementId: string | null;
|
|
103
103
|
showHyperlinkPopup: false | "info" | "editor";
|
|
104
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
104
105
|
};
|
|
105
106
|
commitToHistory: false;
|
|
106
107
|
};
|
|
107
|
-
PanelComponent: ({ appState, updateData, appProps }: import("
|
|
108
|
+
PanelComponent: ({ appState, updateData, appProps }: import("./types").PanelComponentProps) => JSX.Element;
|
|
108
109
|
} & {
|
|
109
110
|
keyTest?: undefined;
|
|
110
111
|
};
|
|
@@ -212,10 +213,11 @@ export declare const actionChangeExportScale: {
|
|
|
212
213
|
};
|
|
213
214
|
pendingImageElementId: string | null;
|
|
214
215
|
showHyperlinkPopup: false | "info" | "editor";
|
|
216
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
215
217
|
};
|
|
216
218
|
commitToHistory: false;
|
|
217
219
|
};
|
|
218
|
-
PanelComponent: ({ elements: allElements, appState, updateData }: import("
|
|
220
|
+
PanelComponent: ({ elements: allElements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
219
221
|
} & {
|
|
220
222
|
keyTest?: undefined;
|
|
221
223
|
};
|
|
@@ -323,10 +325,11 @@ export declare const actionChangeExportBackground: {
|
|
|
323
325
|
};
|
|
324
326
|
pendingImageElementId: string | null;
|
|
325
327
|
showHyperlinkPopup: false | "info" | "editor";
|
|
328
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
326
329
|
};
|
|
327
330
|
commitToHistory: false;
|
|
328
331
|
};
|
|
329
|
-
PanelComponent: ({ appState, updateData }: import("
|
|
332
|
+
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
330
333
|
} & {
|
|
331
334
|
keyTest?: undefined;
|
|
332
335
|
};
|
|
@@ -434,10 +437,11 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
434
437
|
};
|
|
435
438
|
pendingImageElementId: string | null;
|
|
436
439
|
showHyperlinkPopup: false | "info" | "editor";
|
|
440
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
437
441
|
};
|
|
438
442
|
commitToHistory: false;
|
|
439
443
|
};
|
|
440
|
-
PanelComponent: ({ appState, updateData }: import("
|
|
444
|
+
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
441
445
|
} & {
|
|
442
446
|
keyTest?: undefined;
|
|
443
447
|
};
|
|
@@ -543,13 +547,14 @@ export declare const actionSaveToActiveFile: {
|
|
|
543
547
|
};
|
|
544
548
|
pendingImageElementId: string | null;
|
|
545
549
|
showHyperlinkPopup: false | "info" | "editor";
|
|
550
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
546
551
|
};
|
|
547
552
|
} | {
|
|
548
553
|
commitToHistory: false;
|
|
549
554
|
appState?: undefined;
|
|
550
555
|
}>;
|
|
551
556
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
552
|
-
PanelComponent: ({ updateData, appState }: import("
|
|
557
|
+
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
|
|
553
558
|
} & {
|
|
554
559
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
555
560
|
};
|
|
@@ -657,13 +662,14 @@ export declare const actionSaveFileToDisk: {
|
|
|
657
662
|
};
|
|
658
663
|
pendingImageElementId: string | null;
|
|
659
664
|
showHyperlinkPopup: false | "info" | "editor";
|
|
665
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
660
666
|
};
|
|
661
667
|
} | {
|
|
662
668
|
commitToHistory: false;
|
|
663
669
|
appState?: undefined;
|
|
664
670
|
}>;
|
|
665
671
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
666
|
-
PanelComponent: ({ updateData }: import("
|
|
672
|
+
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
667
673
|
} & {
|
|
668
674
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
669
675
|
};
|
|
@@ -767,6 +773,7 @@ export declare const actionLoadScene: {
|
|
|
767
773
|
};
|
|
768
774
|
pendingImageElementId: string | null;
|
|
769
775
|
showHyperlinkPopup: false | "info" | "editor";
|
|
776
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
770
777
|
};
|
|
771
778
|
files: import("../types").BinaryFiles;
|
|
772
779
|
commitToHistory: true;
|
|
@@ -869,12 +876,13 @@ export declare const actionLoadScene: {
|
|
|
869
876
|
};
|
|
870
877
|
pendingImageElementId: string | null;
|
|
871
878
|
showHyperlinkPopup: false | "info" | "editor";
|
|
879
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
872
880
|
};
|
|
873
881
|
files: import("../types").BinaryFiles;
|
|
874
882
|
commitToHistory: false;
|
|
875
883
|
}>;
|
|
876
884
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
877
|
-
PanelComponent: ({ updateData, appState }: import("
|
|
885
|
+
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
|
|
878
886
|
} & {
|
|
879
887
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
880
888
|
};
|
|
@@ -982,10 +990,11 @@ export declare const actionExportWithDarkMode: {
|
|
|
982
990
|
};
|
|
983
991
|
pendingImageElementId: string | null;
|
|
984
992
|
showHyperlinkPopup: false | "info" | "editor";
|
|
993
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
985
994
|
};
|
|
986
995
|
commitToHistory: false;
|
|
987
996
|
};
|
|
988
|
-
PanelComponent: ({ appState, updateData }: import("
|
|
997
|
+
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
989
998
|
} & {
|
|
990
999
|
keyTest?: undefined;
|
|
991
1000
|
};
|
|
@@ -103,6 +103,7 @@ export declare const actionFinalize: {
|
|
|
103
103
|
};
|
|
104
104
|
pendingImageElementId: string | null;
|
|
105
105
|
showHyperlinkPopup: false | "info" | "editor";
|
|
106
|
+
selectedLinearElement: LinearElementEditor | null;
|
|
106
107
|
};
|
|
107
108
|
commitToHistory: true;
|
|
108
109
|
} | {
|
|
@@ -128,6 +129,7 @@ export declare const actionFinalize: {
|
|
|
128
129
|
selectedElementIds: {
|
|
129
130
|
[id: string]: boolean;
|
|
130
131
|
};
|
|
132
|
+
selectedLinearElement: LinearElementEditor | null;
|
|
131
133
|
pendingImageElementId: null;
|
|
132
134
|
isLoading: boolean;
|
|
133
135
|
errorMessage: string | null;
|
|
@@ -208,7 +210,7 @@ export declare const actionFinalize: {
|
|
|
208
210
|
commitToHistory: boolean;
|
|
209
211
|
};
|
|
210
212
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean;
|
|
211
|
-
PanelComponent: ({ appState, updateData, data }: import("
|
|
213
|
+
PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps) => JSX.Element;
|
|
212
214
|
} & {
|
|
213
215
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean) | undefined;
|
|
214
216
|
};
|
|
@@ -18,7 +18,7 @@ export declare const actionGroup: {
|
|
|
18
18
|
contextItemLabel: string;
|
|
19
19
|
contextItemPredicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
20
20
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
21
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
21
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
22
22
|
} & {
|
|
23
23
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
24
24
|
};
|
|
@@ -39,7 +39,7 @@ export declare const actionUngroup: {
|
|
|
39
39
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
40
40
|
contextItemLabel: string;
|
|
41
41
|
contextItemPredicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
42
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
42
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
43
43
|
} & {
|
|
44
44
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
45
45
|
};
|
|
@@ -102,10 +102,11 @@ export declare const actionToggleCanvasMenu: {
|
|
|
102
102
|
};
|
|
103
103
|
pendingImageElementId: string | null;
|
|
104
104
|
showHyperlinkPopup: false | "info" | "editor";
|
|
105
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
105
106
|
};
|
|
106
107
|
commitToHistory: false;
|
|
107
108
|
};
|
|
108
|
-
PanelComponent: ({ appState, updateData }: import("
|
|
109
|
+
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
109
110
|
} & {
|
|
110
111
|
keyTest?: undefined;
|
|
111
112
|
};
|
|
@@ -212,10 +213,11 @@ export declare const actionToggleEditMenu: {
|
|
|
212
213
|
};
|
|
213
214
|
pendingImageElementId: string | null;
|
|
214
215
|
showHyperlinkPopup: false | "info" | "editor";
|
|
216
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
215
217
|
};
|
|
216
218
|
commitToHistory: false;
|
|
217
219
|
};
|
|
218
|
-
PanelComponent: ({ elements, appState, updateData }: import("
|
|
220
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
219
221
|
} & {
|
|
220
222
|
keyTest?: undefined;
|
|
221
223
|
};
|
|
@@ -336,10 +338,11 @@ export declare const actionShortcuts: {
|
|
|
336
338
|
};
|
|
337
339
|
pendingImageElementId: string | null;
|
|
338
340
|
showHyperlinkPopup: false | "info" | "editor";
|
|
341
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
339
342
|
};
|
|
340
343
|
commitToHistory: false;
|
|
341
344
|
};
|
|
342
|
-
PanelComponent: ({ updateData }: import("
|
|
345
|
+
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
343
346
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
344
347
|
} & {
|
|
345
348
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const actionGoToCollaborator: {
|
|
3
2
|
name: "goToCollaborator";
|
|
4
3
|
trackEvent: {
|
|
@@ -8,7 +7,7 @@ export declare const actionGoToCollaborator: {
|
|
|
8
7
|
appState: Readonly<import("../types").AppState>;
|
|
9
8
|
commitToHistory: false;
|
|
10
9
|
};
|
|
11
|
-
PanelComponent: ({ appState, updateData, data }: import("
|
|
10
|
+
PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps) => JSX.Element;
|
|
12
11
|
} & {
|
|
13
12
|
keyTest?: undefined;
|
|
14
13
|
};
|