@zsviczian/excalidraw 0.14.2-1-obsidian → 0.14.2-obsidian-3

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 (40) hide show
  1. package/dist/excalidraw.development.js +54 -43
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/package.json +2 -2
  4. package/types/actions/actionAddToLibrary.d.ts +5 -1
  5. package/types/actions/actionBoundText.d.ts +26 -8
  6. package/types/actions/actionCanvas.d.ts +20 -10
  7. package/types/actions/actionClipboard.d.ts +8 -3
  8. package/types/actions/actionDeleteSelected.d.ts +6 -3
  9. package/types/actions/actionDuplicateSelection.d.ts +1 -1
  10. package/types/actions/actionExport.d.ts +17 -8
  11. package/types/actions/actionFinalize.d.ts +4 -2
  12. package/types/actions/actionLinearEditor.d.ts +3 -1
  13. package/types/actions/actionMenu.d.ts +6 -3
  14. package/types/actions/actionProperties.d.ts +26 -13
  15. package/types/actions/actionStyles.d.ts +2 -1
  16. package/types/actions/actionToggleGridMode.d.ts +2 -1
  17. package/types/actions/actionToggleLock.d.ts +2 -1
  18. package/types/actions/actionToggleStats.d.ts +2 -1
  19. package/types/actions/actionToggleViewMode.d.ts +2 -1
  20. package/types/actions/actionToggleZenMode.d.ts +2 -1
  21. package/types/actions/shortcuts.d.ts +1 -0
  22. package/types/actions/types.d.ts +2 -1
  23. package/types/components/App.d.ts +12 -1
  24. package/types/components/BraveMeasureTextError.d.ts +2 -0
  25. package/types/components/ErrorDialog.d.ts +3 -2
  26. package/types/components/HelpButton.d.ts +0 -1
  27. package/types/constants.d.ts +1 -0
  28. package/types/data/blob.d.ts +1 -0
  29. package/types/element/Hyperlink.d.ts +2 -1
  30. package/types/element/linearElementEditor.d.ts +6 -3
  31. package/types/element/mutateElement.d.ts +1 -0
  32. package/types/element/newElement.d.ts +2 -0
  33. package/types/element/textElement.d.ts +27 -7
  34. package/types/element/typeChecks.d.ts +1 -0
  35. package/types/element/types.d.ts +8 -0
  36. package/types/packages/excalidraw/index.d.ts +1 -0
  37. package/types/packages/utils.d.ts +1 -1
  38. package/types/types.d.ts +4 -2
  39. package/types/utility-types.d.ts +22 -0
  40. package/types/utils.d.ts +20 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zsviczian/excalidraw",
3
- "version": "0.14.2-1-obsidian",
3
+ "version": "0.14.2-obsidian-3",
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;
@@ -118,6 +119,7 @@ export declare const actionAddToLibrary: {
118
119
  customPens?: any[] | undefined;
119
120
  currentStrokeOptions?: any;
120
121
  resetCustomPen?: any;
122
+ gridColor: string;
121
123
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
122
124
  };
123
125
  } | {
@@ -237,6 +239,7 @@ export declare const actionAddToLibrary: {
237
239
  customPens?: any[] | undefined;
238
240
  currentStrokeOptions?: any;
239
241
  resetCustomPen?: any;
242
+ gridColor: string;
240
243
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
241
244
  };
242
245
  }> | {
@@ -356,6 +359,7 @@ export declare const actionAddToLibrary: {
356
359
  customPens?: any[] | undefined;
357
360
  currentStrokeOptions?: any;
358
361
  resetCustomPen?: any;
362
+ gridColor: string;
359
363
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
360
364
  };
361
365
  };
@@ -1,12 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { ExcalidrawElement, ExcalidrawLinearElement } from "../element/types";
1
3
  export declare const actionUnbindText: {
2
4
  name: "unbindText";
3
5
  contextItemLabel: string;
4
6
  trackEvent: {
5
7
  category: "element";
6
8
  };
7
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState) => boolean;
8
- perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
9
- elements: readonly import("../element/types").ExcalidrawElement[];
9
+ predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState) => boolean;
10
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
11
+ elements: readonly ExcalidrawElement[];
10
12
  appState: Readonly<import("../types").AppState>;
11
13
  commitToHistory: true;
12
14
  };
@@ -19,9 +21,9 @@ export declare const actionBindText: {
19
21
  trackEvent: {
20
22
  category: "element";
21
23
  };
22
- predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState) => boolean;
23
- perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
24
- elements: import("../element/types").ExcalidrawElement[];
24
+ predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState) => boolean;
25
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
26
+ elements: ExcalidrawElement[];
25
27
  appState: {
26
28
  selectedElementIds: {
27
29
  [x: string]: true;
@@ -33,10 +35,10 @@ export declare const actionBindText: {
33
35
  } | null;
34
36
  showWelcomeScreen: boolean;
35
37
  isLoading: boolean;
36
- errorMessage: string | null;
38
+ errorMessage: import("react").ReactNode;
37
39
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
38
40
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
39
- multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
41
+ multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
40
42
  selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
41
43
  isBindingEnabled: boolean;
42
44
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
@@ -137,6 +139,7 @@ export declare const actionBindText: {
137
139
  customPens?: any[] | undefined;
138
140
  currentStrokeOptions?: any;
139
141
  resetCustomPen?: any;
142
+ gridColor: string;
140
143
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
141
144
  };
142
145
  commitToHistory: true;
@@ -144,3 +147,18 @@ export declare const actionBindText: {
144
147
  } & {
145
148
  keyTest?: undefined;
146
149
  };
150
+ export declare const actionCreateContainerFromText: {
151
+ name: "createContainerFromText";
152
+ contextItemLabel: string;
153
+ trackEvent: {
154
+ category: "element";
155
+ };
156
+ predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState) => boolean;
157
+ perform: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
158
+ elements: ExcalidrawElement[];
159
+ appState: Readonly<import("../types").AppState>;
160
+ commitToHistory: true;
161
+ };
162
+ } & {
163
+ keyTest?: undefined;
164
+ };
@@ -65,7 +65,7 @@ export declare const actionClearCanvas: {
65
65
  } | null;
66
66
  showWelcomeScreen: boolean;
67
67
  isLoading: boolean;
68
- errorMessage: string | null;
68
+ errorMessage: import("react").ReactNode;
69
69
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
70
70
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
71
71
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -133,6 +133,7 @@ export declare const actionClearCanvas: {
133
133
  linkOpacity: number;
134
134
  currentStrokeOptions?: any;
135
135
  resetCustomPen?: any;
136
+ gridColor: string;
136
137
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
137
138
  };
138
139
  commitToHistory: true;
@@ -160,7 +161,7 @@ export declare const actionZoomIn: {
160
161
  } | null;
161
162
  showWelcomeScreen: boolean;
162
163
  isLoading: boolean;
163
- errorMessage: string | null;
164
+ errorMessage: import("react").ReactNode;
164
165
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
165
166
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
166
167
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -262,6 +263,7 @@ export declare const actionZoomIn: {
262
263
  customPens?: any[] | undefined;
263
264
  currentStrokeOptions?: any;
264
265
  resetCustomPen?: any;
266
+ gridColor: string;
265
267
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
266
268
  };
267
269
  commitToHistory: false;
@@ -291,7 +293,7 @@ export declare const actionZoomOut: {
291
293
  } | null;
292
294
  showWelcomeScreen: boolean;
293
295
  isLoading: boolean;
294
- errorMessage: string | null;
296
+ errorMessage: import("react").ReactNode;
295
297
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
296
298
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
297
299
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -393,6 +395,7 @@ export declare const actionZoomOut: {
393
395
  customPens?: any[] | undefined;
394
396
  currentStrokeOptions?: any;
395
397
  resetCustomPen?: any;
398
+ gridColor: string;
396
399
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
397
400
  };
398
401
  commitToHistory: false;
@@ -422,7 +425,7 @@ export declare const actionResetZoom: {
422
425
  } | null;
423
426
  showWelcomeScreen: boolean;
424
427
  isLoading: boolean;
425
- errorMessage: string | null;
428
+ errorMessage: import("react").ReactNode;
426
429
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
427
430
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
428
431
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -524,6 +527,7 @@ export declare const actionResetZoom: {
524
527
  customPens?: any[] | undefined;
525
528
  currentStrokeOptions?: any;
526
529
  resetCustomPen?: any;
530
+ gridColor: string;
527
531
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
528
532
  };
529
533
  commitToHistory: false;
@@ -547,7 +551,7 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
547
551
  } | null;
548
552
  showWelcomeScreen: boolean;
549
553
  isLoading: boolean;
550
- errorMessage: string | null;
554
+ errorMessage: import("react").ReactNode;
551
555
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
552
556
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
553
557
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -649,6 +653,7 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
649
653
  customPens?: any[] | undefined;
650
654
  currentStrokeOptions?: any;
651
655
  resetCustomPen?: any;
656
+ gridColor: string;
652
657
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
653
658
  };
654
659
  commitToHistory: boolean;
@@ -672,7 +677,7 @@ export declare const actionZoomToSelected: {
672
677
  } | null;
673
678
  showWelcomeScreen: boolean;
674
679
  isLoading: boolean;
675
- errorMessage: string | null;
680
+ errorMessage: import("react").ReactNode;
676
681
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
677
682
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
678
683
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -774,6 +779,7 @@ export declare const actionZoomToSelected: {
774
779
  customPens?: any[] | undefined;
775
780
  currentStrokeOptions?: any;
776
781
  resetCustomPen?: any;
782
+ gridColor: string;
777
783
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
778
784
  };
779
785
  commitToHistory: boolean;
@@ -802,7 +808,7 @@ export declare const actionZoomToFit: {
802
808
  } | null;
803
809
  showWelcomeScreen: boolean;
804
810
  isLoading: boolean;
805
- errorMessage: string | null;
811
+ errorMessage: import("react").ReactNode;
806
812
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
807
813
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
808
814
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -904,6 +910,7 @@ export declare const actionZoomToFit: {
904
910
  customPens?: any[] | undefined;
905
911
  currentStrokeOptions?: any;
906
912
  resetCustomPen?: any;
913
+ gridColor: string;
907
914
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
908
915
  };
909
916
  commitToHistory: boolean;
@@ -928,7 +935,7 @@ export declare const actionToggleTheme: {
928
935
  } | null;
929
936
  showWelcomeScreen: boolean;
930
937
  isLoading: boolean;
931
- errorMessage: string | null;
938
+ errorMessage: import("react").ReactNode;
932
939
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
933
940
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
934
941
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -1034,6 +1041,7 @@ export declare const actionToggleTheme: {
1034
1041
  customPens?: any[] | undefined;
1035
1042
  currentStrokeOptions?: any;
1036
1043
  resetCustomPen?: any;
1044
+ gridColor: string;
1037
1045
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1038
1046
  };
1039
1047
  commitToHistory: false;
@@ -1069,7 +1077,7 @@ export declare const actionToggleEraserTool: {
1069
1077
  } | null;
1070
1078
  showWelcomeScreen: boolean;
1071
1079
  isLoading: boolean;
1072
- errorMessage: string | null;
1080
+ errorMessage: import("react").ReactNode;
1073
1081
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1074
1082
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1075
1083
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -1160,6 +1168,7 @@ export declare const actionToggleEraserTool: {
1160
1168
  customPens?: any[] | undefined;
1161
1169
  currentStrokeOptions?: any;
1162
1170
  resetCustomPen?: any;
1171
+ gridColor: string;
1163
1172
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1164
1173
  };
1165
1174
  commitToHistory: true;
@@ -1194,7 +1203,7 @@ export declare const actionToggleHandTool: {
1194
1203
  } | null;
1195
1204
  showWelcomeScreen: boolean;
1196
1205
  isLoading: boolean;
1197
- errorMessage: string | null;
1206
+ errorMessage: import("react").ReactNode;
1198
1207
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1199
1208
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1200
1209
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -1285,6 +1294,7 @@ export declare const actionToggleHandTool: {
1285
1294
  customPens?: any[] | undefined;
1286
1295
  currentStrokeOptions?: any;
1287
1296
  resetCustomPen?: any;
1297
+ gridColor: string;
1288
1298
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1289
1299
  };
1290
1300
  commitToHistory: true;
@@ -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;
@@ -149,6 +149,7 @@ export declare const actionCut: {
149
149
  customPens?: any[] | undefined;
150
150
  currentStrokeOptions?: any;
151
151
  resetCustomPen?: any;
152
+ gridColor: string;
152
153
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
153
154
  };
154
155
  commitToHistory: false;
@@ -191,7 +192,7 @@ export declare const actionCut: {
191
192
  } | null;
192
193
  showWelcomeScreen: boolean;
193
194
  isLoading: boolean;
194
- errorMessage: string | null;
195
+ errorMessage: import("react").ReactNode;
195
196
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
196
197
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
197
198
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -297,6 +298,7 @@ export declare const actionCut: {
297
298
  customPens?: any[] | undefined;
298
299
  currentStrokeOptions?: any;
299
300
  resetCustomPen?: any;
301
+ gridColor: string;
300
302
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
301
303
  };
302
304
  commitToHistory: true;
@@ -322,7 +324,7 @@ export declare const actionCut: {
322
324
  } | null;
323
325
  showWelcomeScreen: boolean;
324
326
  isLoading: boolean;
325
- errorMessage: string | null;
327
+ errorMessage: import("react").ReactNode;
326
328
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
327
329
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
328
330
  selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -415,6 +417,7 @@ export declare const actionCut: {
415
417
  customPens?: any[] | undefined;
416
418
  currentStrokeOptions?: any;
417
419
  resetCustomPen?: any;
420
+ gridColor: string;
418
421
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
419
422
  };
420
423
  commitToHistory: boolean;
@@ -549,6 +552,7 @@ export declare const actionCopyAsSvg: {
549
552
  customPens?: any[] | undefined;
550
553
  currentStrokeOptions?: any;
551
554
  resetCustomPen?: any;
555
+ gridColor: string;
552
556
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
553
557
  };
554
558
  commitToHistory: false;
@@ -682,6 +686,7 @@ export declare const actionCopyAsPng: {
682
686
  customPens?: any[] | undefined;
683
687
  currentStrokeOptions?: any;
684
688
  resetCustomPen?: any;
689
+ gridColor: string;
685
690
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
686
691
  };
687
692
  commitToHistory: false;
@@ -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;
@@ -125,6 +125,7 @@ export declare const actionDeleteSelected: {
125
125
  customPens?: any[] | undefined;
126
126
  currentStrokeOptions?: any;
127
127
  resetCustomPen?: any;
128
+ gridColor: string;
128
129
  selectedLinearElement: LinearElementEditor | null;
129
130
  };
130
131
  commitToHistory: false;
@@ -167,7 +168,7 @@ export declare const actionDeleteSelected: {
167
168
  } | null;
168
169
  showWelcomeScreen: boolean;
169
170
  isLoading: boolean;
170
- errorMessage: string | null;
171
+ errorMessage: import("react").ReactNode;
171
172
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
172
173
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
173
174
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -273,6 +274,7 @@ export declare const actionDeleteSelected: {
273
274
  customPens?: any[] | undefined;
274
275
  currentStrokeOptions?: any;
275
276
  resetCustomPen?: any;
277
+ gridColor: string;
276
278
  selectedLinearElement: LinearElementEditor | null;
277
279
  };
278
280
  commitToHistory: true;
@@ -298,7 +300,7 @@ export declare const actionDeleteSelected: {
298
300
  } | null;
299
301
  showWelcomeScreen: boolean;
300
302
  isLoading: boolean;
301
- errorMessage: string | null;
303
+ errorMessage: import("react").ReactNode;
302
304
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
303
305
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
304
306
  selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -391,6 +393,7 @@ export declare const actionDeleteSelected: {
391
393
  customPens?: any[] | undefined;
392
394
  currentStrokeOptions?: any;
393
395
  resetCustomPen?: any;
396
+ gridColor: string;
394
397
  selectedLinearElement: LinearElementEditor | null;
395
398
  };
396
399
  commitToHistory: boolean;
@@ -9,7 +9,7 @@ export declare const actionDuplicateSelection: {
9
9
  perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => false | {
10
10
  commitToHistory: true;
11
11
  elements?: readonly ExcalidrawElement[] | null | undefined;
12
- appState?: MarkOptional<AppState, "width" | "height" | "offsetTop" | "offsetLeft"> | null | undefined;
12
+ appState?: import("../utility-types").MarkOptional<AppState, "width" | "height" | "offsetTop" | "offsetLeft"> | null | undefined;
13
13
  files?: import("../types").BinaryFiles | null | undefined;
14
14
  syncHistory?: boolean | undefined;
15
15
  replaceFiles?: boolean | undefined;
@@ -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;
@@ -119,6 +119,7 @@ export declare const actionChangeProjectName: {
119
119
  customPens?: any[] | undefined;
120
120
  currentStrokeOptions?: any;
121
121
  resetCustomPen?: any;
122
+ gridColor: string;
122
123
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
123
124
  };
124
125
  commitToHistory: false;
@@ -143,7 +144,7 @@ export declare const actionChangeExportScale: {
143
144
  } | null;
144
145
  showWelcomeScreen: boolean;
145
146
  isLoading: boolean;
146
- errorMessage: string | null;
147
+ errorMessage: import("react").ReactNode;
147
148
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
148
149
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
149
150
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -249,6 +250,7 @@ export declare const actionChangeExportScale: {
249
250
  customPens?: any[] | undefined;
250
251
  currentStrokeOptions?: any;
251
252
  resetCustomPen?: any;
253
+ gridColor: string;
252
254
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
253
255
  };
254
256
  commitToHistory: false;
@@ -273,7 +275,7 @@ export declare const actionChangeExportBackground: {
273
275
  } | null;
274
276
  showWelcomeScreen: boolean;
275
277
  isLoading: boolean;
276
- errorMessage: string | null;
278
+ errorMessage: import("react").ReactNode;
277
279
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
278
280
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
279
281
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -379,6 +381,7 @@ export declare const actionChangeExportBackground: {
379
381
  customPens?: any[] | undefined;
380
382
  currentStrokeOptions?: any;
381
383
  resetCustomPen?: any;
384
+ gridColor: string;
382
385
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
383
386
  };
384
387
  commitToHistory: false;
@@ -403,7 +406,7 @@ export declare const actionChangeExportEmbedScene: {
403
406
  } | null;
404
407
  showWelcomeScreen: boolean;
405
408
  isLoading: boolean;
406
- errorMessage: string | null;
409
+ errorMessage: import("react").ReactNode;
407
410
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
408
411
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
409
412
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -509,6 +512,7 @@ export declare const actionChangeExportEmbedScene: {
509
512
  customPens?: any[] | undefined;
510
513
  currentStrokeOptions?: any;
511
514
  resetCustomPen?: any;
515
+ gridColor: string;
512
516
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
513
517
  };
514
518
  commitToHistory: false;
@@ -537,7 +541,7 @@ export declare const actionSaveToActiveFile: {
537
541
  } | null;
538
542
  showWelcomeScreen: boolean;
539
543
  isLoading: boolean;
540
- errorMessage: string | null;
544
+ errorMessage: import("react").ReactNode;
541
545
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
542
546
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
543
547
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -638,6 +642,7 @@ export declare const actionSaveToActiveFile: {
638
642
  customPens?: any[] | undefined;
639
643
  currentStrokeOptions?: any;
640
644
  resetCustomPen?: any;
645
+ gridColor: string;
641
646
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
642
647
  };
643
648
  } | {
@@ -665,7 +670,7 @@ export declare const actionSaveFileToDisk: {
665
670
  } | null;
666
671
  showWelcomeScreen: boolean;
667
672
  isLoading: boolean;
668
- errorMessage: string | null;
673
+ errorMessage: import("react").ReactNode;
669
674
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
670
675
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
671
676
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -771,6 +776,7 @@ export declare const actionSaveFileToDisk: {
771
776
  customPens?: any[] | undefined;
772
777
  currentStrokeOptions?: any;
773
778
  resetCustomPen?: any;
779
+ gridColor: string;
774
780
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
775
781
  };
776
782
  } | {
@@ -810,7 +816,7 @@ export declare const actionLoadScene: {
810
816
  } | null;
811
817
  showWelcomeScreen: boolean;
812
818
  isLoading: boolean;
813
- errorMessage: string | null;
819
+ errorMessage: import("react").ReactNode;
814
820
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
815
821
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
816
822
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -901,6 +907,7 @@ export declare const actionLoadScene: {
901
907
  customPens?: any[] | undefined;
902
908
  currentStrokeOptions?: any;
903
909
  resetCustomPen?: any;
910
+ gridColor: string;
904
911
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
905
912
  };
906
913
  files: import("../types").BinaryFiles;
@@ -1022,6 +1029,7 @@ export declare const actionLoadScene: {
1022
1029
  customPens?: any[] | undefined;
1023
1030
  currentStrokeOptions?: any;
1024
1031
  resetCustomPen?: any;
1032
+ gridColor: string;
1025
1033
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1026
1034
  };
1027
1035
  files: import("../types").BinaryFiles;
@@ -1047,7 +1055,7 @@ export declare const actionExportWithDarkMode: {
1047
1055
  } | null;
1048
1056
  showWelcomeScreen: boolean;
1049
1057
  isLoading: boolean;
1050
- errorMessage: string | null;
1058
+ errorMessage: import("react").ReactNode;
1051
1059
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1052
1060
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
1053
1061
  multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
@@ -1153,6 +1161,7 @@ export declare const actionExportWithDarkMode: {
1153
1161
  customPens?: any[] | undefined;
1154
1162
  currentStrokeOptions?: any;
1155
1163
  resetCustomPen?: any;
1164
+ gridColor: string;
1156
1165
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1157
1166
  };
1158
1167
  commitToHistory: false;
@@ -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;
@@ -121,6 +121,7 @@ export declare const actionFinalize: {
121
121
  customPens?: any[] | undefined;
122
122
  currentStrokeOptions?: any;
123
123
  resetCustomPen?: any;
124
+ gridColor: string;
124
125
  selectedLinearElement: LinearElementEditor | null;
125
126
  };
126
127
  commitToHistory: true;
@@ -155,7 +156,7 @@ export declare const actionFinalize: {
155
156
  } | null;
156
157
  showWelcomeScreen: boolean;
157
158
  isLoading: boolean;
158
- errorMessage: string | null;
159
+ errorMessage: import("react").ReactNode;
159
160
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
160
161
  selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
161
162
  isBindingEnabled: boolean;
@@ -242,6 +243,7 @@ export declare const actionFinalize: {
242
243
  customPens?: any[] | undefined;
243
244
  currentStrokeOptions?: any;
244
245
  resetCustomPen?: any;
246
+ gridColor: string;
245
247
  };
246
248
  commitToHistory: boolean;
247
249
  };
@@ -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;
@@ -122,6 +123,7 @@ export declare const actionToggleLinearEditor: {
122
123
  customPens?: any[] | undefined;
123
124
  currentStrokeOptions?: any;
124
125
  resetCustomPen?: any;
126
+ gridColor: string;
125
127
  selectedLinearElement: LinearElementEditor | null;
126
128
  };
127
129
  commitToHistory: false;