@excalidraw/excalidraw 0.14.2-dd4c333 → 0.14.2-e4d8ba2

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.
Files changed (34) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/dist/excalidraw.development.js +40 -30
  3. package/dist/excalidraw.production.min.js +1 -1
  4. package/package.json +2 -2
  5. package/types/actions/actionAddToLibrary.d.ts +2 -1
  6. package/types/actions/actionBoundText.d.ts +114 -10
  7. package/types/actions/actionCanvas.d.ts +115 -9
  8. package/types/actions/actionClipboard.d.ts +3 -3
  9. package/types/actions/actionDeleteSelected.d.ts +3 -3
  10. package/types/actions/actionExport.d.ts +8 -8
  11. package/types/actions/actionFinalize.d.ts +2 -2
  12. package/types/actions/actionLinearEditor.d.ts +2 -1
  13. package/types/actions/actionMenu.d.ts +3 -3
  14. package/types/actions/actionProperties.d.ts +14 -14
  15. package/types/actions/actionStyles.d.ts +1 -1
  16. package/types/actions/actionToggleGridMode.d.ts +1 -1
  17. package/types/actions/actionToggleLock.d.ts +1 -1
  18. package/types/actions/actionToggleStats.d.ts +1 -1
  19. package/types/actions/actionToggleViewMode.d.ts +1 -1
  20. package/types/actions/actionToggleZenMode.d.ts +1 -1
  21. package/types/components/App.d.ts +12 -1
  22. package/types/components/BraveMeasureTextError.d.ts +2 -0
  23. package/types/components/ButtonIconSelect.d.ts +11 -3
  24. package/types/components/ErrorDialog.d.ts +3 -2
  25. package/types/components/icons.d.ts +1 -0
  26. package/types/constants.d.ts +1 -0
  27. package/types/element/Hyperlink.d.ts +1 -1
  28. package/types/element/linearElementEditor.d.ts +1 -1
  29. package/types/element/newElement.d.ts +3 -1
  30. package/types/element/textElement.d.ts +25 -6
  31. package/types/element/types.d.ts +9 -1
  32. package/types/renderer/renderElement.d.ts +2 -2
  33. package/types/types.d.ts +2 -2
  34. package/types/utils.d.ts +20 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@excalidraw/excalidraw",
3
- "version": "0.14.2-dd4c333",
3
+ "version": "0.14.2-e4d8ba2",
4
4
  "main": "main.js",
5
5
  "types": "types/packages/excalidraw/index.d.ts",
6
6
  "files": [
@@ -64,7 +64,7 @@
64
64
  "terser-webpack-plugin": "5.3.3",
65
65
  "ts-loader": "9.3.1",
66
66
  "typescript": "4.7.4",
67
- "webpack": "5.73.0",
67
+ "webpack": "5.76.0",
68
68
  "webpack-bundle-analyzer": "4.5.0",
69
69
  "webpack-cli": "4.10.0",
70
70
  "webpack-dev-server": "4.9.3",
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const actionAddToLibrary: {
2
3
  name: "addToLibrary";
3
4
  trackEvent: {
@@ -16,7 +17,7 @@ export declare const actionAddToLibrary: {
16
17
  } | null;
17
18
  showWelcomeScreen: boolean;
18
19
  isLoading: boolean;
19
- errorMessage: string | null;
20
+ errorMessage: import("react").ReactNode;
20
21
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
21
22
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
22
23
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -1,14 +1,16 @@
1
+ /// <reference types="react" />
1
2
  import { ExcalidrawElement, ExcalidrawLinearElement } from "../element/types";
3
+ import { AppState } from "../types";
2
4
  export declare const actionUnbindText: {
3
5
  name: "unbindText";
4
6
  contextItemLabel: string;
5
7
  trackEvent: {
6
8
  category: "element";
7
9
  };
8
- predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState) => boolean;
9
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
10
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
11
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
10
12
  elements: readonly ExcalidrawElement[];
11
- appState: Readonly<import("../types").AppState>;
13
+ appState: Readonly<AppState>;
12
14
  commitToHistory: true;
13
15
  };
14
16
  } & {
@@ -20,8 +22,8 @@ export declare const actionBindText: {
20
22
  trackEvent: {
21
23
  category: "element";
22
24
  };
23
- predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState) => boolean;
24
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
25
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
26
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
25
27
  elements: ExcalidrawElement[];
26
28
  appState: {
27
29
  selectedElementIds: {
@@ -34,7 +36,7 @@ export declare const actionBindText: {
34
36
  } | null;
35
37
  showWelcomeScreen: boolean;
36
38
  isLoading: boolean;
37
- errorMessage: string | null;
39
+ errorMessage: import("react").ReactNode;
38
40
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
39
41
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
40
42
  multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
@@ -137,10 +139,112 @@ export declare const actionCreateContainerFromText: {
137
139
  trackEvent: {
138
140
  category: "element";
139
141
  };
140
- predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState) => boolean;
141
- perform: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
142
- elements: ExcalidrawElement[];
143
- appState: Readonly<import("../types").AppState>;
142
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
143
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
144
+ elements: readonly ExcalidrawElement[];
145
+ appState: {
146
+ selectedElementIds: {
147
+ [id: string]: boolean;
148
+ };
149
+ contextMenu: {
150
+ items: import("../components/ContextMenu").ContextMenuItems;
151
+ top: number;
152
+ left: number;
153
+ } | null;
154
+ showWelcomeScreen: boolean;
155
+ isLoading: boolean;
156
+ errorMessage: import("react").ReactNode;
157
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
158
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
159
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
160
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
161
+ isBindingEnabled: boolean;
162
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
163
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
164
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
165
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
166
+ activeTool: {
167
+ lastActiveTool: import("../types").LastActiveTool;
168
+ locked: boolean;
169
+ } & ({
170
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
171
+ customType: null;
172
+ } | {
173
+ type: "custom";
174
+ customType: string;
175
+ });
176
+ penMode: boolean;
177
+ penDetected: boolean;
178
+ exportBackground: boolean;
179
+ exportEmbedScene: boolean;
180
+ exportWithDarkMode: boolean;
181
+ exportScale: number;
182
+ currentItemStrokeColor: string;
183
+ currentItemBackgroundColor: string;
184
+ currentItemFillStyle: import("../element/types").FillStyle;
185
+ currentItemStrokeWidth: number;
186
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
187
+ currentItemRoughness: number;
188
+ currentItemOpacity: number;
189
+ currentItemFontFamily: number;
190
+ currentItemFontSize: number;
191
+ currentItemTextAlign: string;
192
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
193
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
194
+ currentItemRoundness: import("../element/types").StrokeRoundness;
195
+ viewBackgroundColor: string;
196
+ scrollX: number;
197
+ scrollY: number;
198
+ cursorButton: "up" | "down";
199
+ scrolledOutside: boolean;
200
+ name: string;
201
+ isResizing: boolean;
202
+ isRotating: boolean;
203
+ zoom: Readonly<{
204
+ value: import("../types").NormalizedZoomValue;
205
+ }>;
206
+ openMenu: "canvas" | "shape" | null;
207
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
208
+ openSidebar: "library" | "customSidebar" | null;
209
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
210
+ isSidebarDocked: boolean;
211
+ lastPointerDownWith: import("../element/types").PointerType;
212
+ previousSelectedElementIds: {
213
+ [id: string]: boolean;
214
+ };
215
+ shouldCacheIgnoreZoom: boolean;
216
+ toast: {
217
+ message: string;
218
+ closable?: boolean | undefined;
219
+ duration?: number | undefined;
220
+ } | null;
221
+ zenModeEnabled: boolean;
222
+ theme: string;
223
+ gridSize: number | null;
224
+ viewModeEnabled: boolean;
225
+ selectedGroupIds: {
226
+ [groupId: string]: boolean;
227
+ };
228
+ editingGroupId: string | null;
229
+ width: number;
230
+ height: number;
231
+ offsetTop: number;
232
+ offsetLeft: number;
233
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
234
+ collaborators: Map<string, import("../types").Collaborator>;
235
+ showStats: boolean;
236
+ currentChartType: import("../element/types").ChartType;
237
+ pasteDialog: {
238
+ shown: false;
239
+ data: null;
240
+ } | {
241
+ shown: true;
242
+ data: import("../charts").Spreadsheet;
243
+ };
244
+ pendingImageElementId: string | null;
245
+ showHyperlinkPopup: false | "info" | "editor";
246
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
247
+ };
144
248
  commitToHistory: true;
145
249
  };
146
250
  } & {
@@ -55,7 +55,7 @@ export declare const actionClearCanvas: {
55
55
  } | null;
56
56
  showWelcomeScreen: boolean;
57
57
  isLoading: boolean;
58
- errorMessage: string | null;
58
+ errorMessage: import("react").ReactNode;
59
59
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
60
60
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
61
61
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -146,7 +146,7 @@ export declare const actionZoomIn: {
146
146
  } | null;
147
147
  showWelcomeScreen: boolean;
148
148
  isLoading: boolean;
149
- errorMessage: string | null;
149
+ errorMessage: import("react").ReactNode;
150
150
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
151
151
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
152
152
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -263,7 +263,7 @@ export declare const actionZoomOut: {
263
263
  } | null;
264
264
  showWelcomeScreen: boolean;
265
265
  isLoading: boolean;
266
- errorMessage: string | null;
266
+ errorMessage: import("react").ReactNode;
267
267
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
268
268
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
269
269
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -380,7 +380,7 @@ export declare const actionResetZoom: {
380
380
  } | null;
381
381
  showWelcomeScreen: boolean;
382
382
  isLoading: boolean;
383
- errorMessage: string | null;
383
+ errorMessage: import("react").ReactNode;
384
384
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
385
385
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
386
386
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -477,6 +477,112 @@ export declare const actionResetZoom: {
477
477
  } & {
478
478
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
479
479
  };
480
+ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, zoomToSelection: boolean) => {
481
+ appState: {
482
+ zoom: {
483
+ value: NormalizedZoomValue;
484
+ };
485
+ scrollX: number;
486
+ scrollY: number;
487
+ contextMenu: {
488
+ items: import("../components/ContextMenu").ContextMenuItems;
489
+ top: number;
490
+ left: number;
491
+ } | null;
492
+ showWelcomeScreen: boolean;
493
+ isLoading: boolean;
494
+ errorMessage: import("react").ReactNode;
495
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
496
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
497
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
498
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
499
+ isBindingEnabled: boolean;
500
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
501
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
502
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
503
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
504
+ activeTool: {
505
+ lastActiveTool: import("../types").LastActiveTool;
506
+ locked: boolean;
507
+ } & ({
508
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
509
+ customType: null;
510
+ } | {
511
+ type: "custom";
512
+ customType: string;
513
+ });
514
+ penMode: boolean;
515
+ penDetected: boolean;
516
+ exportBackground: boolean;
517
+ exportEmbedScene: boolean;
518
+ exportWithDarkMode: boolean;
519
+ exportScale: number;
520
+ currentItemStrokeColor: string;
521
+ currentItemBackgroundColor: string;
522
+ currentItemFillStyle: import("../element/types").FillStyle;
523
+ currentItemStrokeWidth: number;
524
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
525
+ currentItemRoughness: number;
526
+ currentItemOpacity: number;
527
+ currentItemFontFamily: number;
528
+ currentItemFontSize: number;
529
+ currentItemTextAlign: string;
530
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
531
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
532
+ currentItemRoundness: import("../element/types").StrokeRoundness;
533
+ viewBackgroundColor: string;
534
+ cursorButton: "up" | "down";
535
+ scrolledOutside: boolean;
536
+ name: string;
537
+ isResizing: boolean;
538
+ isRotating: boolean;
539
+ openMenu: "canvas" | "shape" | null;
540
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
541
+ openSidebar: "library" | "customSidebar" | null;
542
+ openDialog: "imageExport" | "help" | "jsonExport" | null;
543
+ isSidebarDocked: boolean;
544
+ lastPointerDownWith: import("../element/types").PointerType;
545
+ selectedElementIds: {
546
+ [id: string]: boolean;
547
+ };
548
+ previousSelectedElementIds: {
549
+ [id: string]: boolean;
550
+ };
551
+ shouldCacheIgnoreZoom: boolean;
552
+ toast: {
553
+ message: string;
554
+ closable?: boolean | undefined;
555
+ duration?: number | undefined;
556
+ } | null;
557
+ zenModeEnabled: boolean;
558
+ theme: string;
559
+ gridSize: number | null;
560
+ viewModeEnabled: boolean;
561
+ selectedGroupIds: {
562
+ [groupId: string]: boolean;
563
+ };
564
+ editingGroupId: string | null;
565
+ width: number;
566
+ height: number;
567
+ offsetTop: number;
568
+ offsetLeft: number;
569
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
570
+ collaborators: Map<string, import("../types").Collaborator>;
571
+ showStats: boolean;
572
+ currentChartType: import("../element/types").ChartType;
573
+ pasteDialog: {
574
+ shown: false;
575
+ data: null;
576
+ } | {
577
+ shown: true;
578
+ data: import("../charts").Spreadsheet;
579
+ };
580
+ pendingImageElementId: string | null;
581
+ showHyperlinkPopup: false | "info" | "editor";
582
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
583
+ };
584
+ commitToHistory: boolean;
585
+ };
480
586
  export declare const actionZoomToSelected: {
481
587
  name: "zoomToSelection";
482
588
  trackEvent: {
@@ -496,7 +602,7 @@ export declare const actionZoomToSelected: {
496
602
  } | null;
497
603
  showWelcomeScreen: boolean;
498
604
  isLoading: boolean;
499
- errorMessage: string | null;
605
+ errorMessage: import("react").ReactNode;
500
606
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
501
607
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
502
608
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -612,7 +718,7 @@ export declare const actionZoomToFit: {
612
718
  } | null;
613
719
  showWelcomeScreen: boolean;
614
720
  isLoading: boolean;
615
- errorMessage: string | null;
721
+ errorMessage: import("react").ReactNode;
616
722
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
617
723
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
618
724
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -724,7 +830,7 @@ export declare const actionToggleTheme: {
724
830
  } | null;
725
831
  showWelcomeScreen: boolean;
726
832
  isLoading: boolean;
727
- errorMessage: string | null;
833
+ errorMessage: import("react").ReactNode;
728
834
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
729
835
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
730
836
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -851,7 +957,7 @@ export declare const actionToggleEraserTool: {
851
957
  } | null;
852
958
  showWelcomeScreen: boolean;
853
959
  isLoading: boolean;
854
- errorMessage: string | null;
960
+ errorMessage: import("react").ReactNode;
855
961
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
856
962
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
857
963
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -962,7 +1068,7 @@ export declare const actionToggleHandTool: {
962
1068
  } | null;
963
1069
  showWelcomeScreen: boolean;
964
1070
  isLoading: boolean;
965
- errorMessage: string | null;
1071
+ errorMessage: import("react").ReactNode;
966
1072
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
967
1073
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
968
1074
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -43,7 +43,7 @@ export declare const actionCut: {
43
43
  } | null;
44
44
  showWelcomeScreen: boolean;
45
45
  isLoading: boolean;
46
- errorMessage: string | null;
46
+ errorMessage: import("react").ReactNode;
47
47
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
48
48
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
49
49
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -177,7 +177,7 @@ export declare const actionCut: {
177
177
  } | null;
178
178
  showWelcomeScreen: boolean;
179
179
  isLoading: boolean;
180
- errorMessage: string | null;
180
+ errorMessage: import("react").ReactNode;
181
181
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
182
182
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
183
183
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -294,7 +294,7 @@ export declare const actionCut: {
294
294
  } | null;
295
295
  showWelcomeScreen: boolean;
296
296
  isLoading: boolean;
297
- errorMessage: string | null;
297
+ errorMessage: import("react").ReactNode;
298
298
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
299
299
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
300
300
  selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -19,7 +19,7 @@ export declare const actionDeleteSelected: {
19
19
  } | null;
20
20
  showWelcomeScreen: boolean;
21
21
  isLoading: boolean;
22
- errorMessage: string | null;
22
+ errorMessage: import("react").ReactNode;
23
23
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
24
24
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
25
25
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -153,7 +153,7 @@ export declare const actionDeleteSelected: {
153
153
  } | null;
154
154
  showWelcomeScreen: boolean;
155
155
  isLoading: boolean;
156
- errorMessage: string | null;
156
+ errorMessage: import("react").ReactNode;
157
157
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
158
158
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
159
159
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -270,7 +270,7 @@ export declare const actionDeleteSelected: {
270
270
  } | null;
271
271
  showWelcomeScreen: boolean;
272
272
  isLoading: boolean;
273
- errorMessage: string | null;
273
+ errorMessage: import("react").ReactNode;
274
274
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
275
275
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
276
276
  selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -13,7 +13,7 @@ export declare const actionChangeProjectName: {
13
13
  } | null;
14
14
  showWelcomeScreen: boolean;
15
15
  isLoading: boolean;
16
- errorMessage: string | null;
16
+ errorMessage: import("react").ReactNode;
17
17
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
18
18
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
19
19
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -129,7 +129,7 @@ export declare const actionChangeExportScale: {
129
129
  } | null;
130
130
  showWelcomeScreen: boolean;
131
131
  isLoading: boolean;
132
- errorMessage: string | null;
132
+ errorMessage: import("react").ReactNode;
133
133
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
134
134
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
135
135
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -245,7 +245,7 @@ export declare const actionChangeExportBackground: {
245
245
  } | null;
246
246
  showWelcomeScreen: boolean;
247
247
  isLoading: boolean;
248
- errorMessage: string | null;
248
+ errorMessage: import("react").ReactNode;
249
249
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
250
250
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
251
251
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -361,7 +361,7 @@ export declare const actionChangeExportEmbedScene: {
361
361
  } | null;
362
362
  showWelcomeScreen: boolean;
363
363
  isLoading: boolean;
364
- errorMessage: string | null;
364
+ errorMessage: import("react").ReactNode;
365
365
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
366
366
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
367
367
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -481,7 +481,7 @@ export declare const actionSaveToActiveFile: {
481
481
  } | null;
482
482
  showWelcomeScreen: boolean;
483
483
  isLoading: boolean;
484
- errorMessage: string | null;
484
+ errorMessage: import("react").ReactNode;
485
485
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
486
486
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
487
487
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -595,7 +595,7 @@ export declare const actionSaveFileToDisk: {
595
595
  } | null;
596
596
  showWelcomeScreen: boolean;
597
597
  isLoading: boolean;
598
- errorMessage: string | null;
598
+ errorMessage: import("react").ReactNode;
599
599
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
600
600
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
601
601
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -726,7 +726,7 @@ export declare const actionLoadScene: {
726
726
  } | null;
727
727
  showWelcomeScreen: boolean;
728
728
  isLoading: boolean;
729
- errorMessage: string | null;
729
+ errorMessage: import("react").ReactNode;
730
730
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
731
731
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
732
732
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -935,7 +935,7 @@ export declare const actionExportWithDarkMode: {
935
935
  } | null;
936
936
  showWelcomeScreen: boolean;
937
937
  isLoading: boolean;
938
- errorMessage: string | null;
938
+ errorMessage: import("react").ReactNode;
939
939
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
940
940
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
941
941
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -16,7 +16,7 @@ export declare const actionFinalize: {
16
16
  } | null;
17
17
  showWelcomeScreen: boolean;
18
18
  isLoading: boolean;
19
- errorMessage: string | null;
19
+ errorMessage: import("react").ReactNode;
20
20
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
21
21
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
22
22
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -141,7 +141,7 @@ export declare const actionFinalize: {
141
141
  } | null;
142
142
  showWelcomeScreen: boolean;
143
143
  isLoading: boolean;
144
- errorMessage: string | null;
144
+ errorMessage: import("react").ReactNode;
145
145
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
146
146
  selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
147
147
  isBindingEnabled: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { LinearElementEditor } from "../element/linearElementEditor";
2
3
  import { ExcalidrawLinearElement } from "../element/types";
3
4
  export declare const actionToggleLinearEditor: {
@@ -16,7 +17,7 @@ export declare const actionToggleLinearEditor: {
16
17
  } | null;
17
18
  showWelcomeScreen: boolean;
18
19
  isLoading: boolean;
19
- errorMessage: string | null;
20
+ errorMessage: import("react").ReactNode;
20
21
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
21
22
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
22
23
  multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
@@ -14,7 +14,7 @@ export declare const actionToggleCanvasMenu: {
14
14
  } | null;
15
15
  showWelcomeScreen: boolean;
16
16
  isLoading: boolean;
17
- errorMessage: string | null;
17
+ errorMessage: import("react").ReactNode;
18
18
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
19
19
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
20
20
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -129,7 +129,7 @@ export declare const actionToggleEditMenu: {
129
129
  } | null;
130
130
  showWelcomeScreen: boolean;
131
131
  isLoading: boolean;
132
- errorMessage: string | null;
132
+ errorMessage: import("react").ReactNode;
133
133
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
134
134
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
135
135
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -260,7 +260,7 @@ export declare const actionShortcuts: {
260
260
  } | null;
261
261
  showWelcomeScreen: boolean;
262
262
  isLoading: boolean;
263
- errorMessage: string | null;
263
+ errorMessage: import("react").ReactNode;
264
264
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
265
265
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
266
266
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;