@zsviczian/excalidraw 0.11.0-obsidian-25 → 0.12.0-obsidian-2

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 (81) hide show
  1. package/README.md +352 -42
  2. package/dist/excalidraw.development.js +117 -112
  3. package/dist/excalidraw.production.min.js +1 -1
  4. package/dist/excalidraw.production.min.js.LICENSE.txt +2 -1
  5. package/package.json +22 -24
  6. package/types/actions/actionAddToLibrary.d.ts +13 -3
  7. package/types/actions/actionAlign.d.ts +6 -6
  8. package/types/actions/actionBoundText.d.ts +5 -1
  9. package/types/actions/actionCanvas.d.ts +52 -16
  10. package/types/actions/actionClipboard.d.ts +25 -5
  11. package/types/actions/actionDeleteSelected.d.ts +16 -4
  12. package/types/actions/actionDistribute.d.ts +2 -2
  13. package/types/actions/actionDuplicateSelection.d.ts +1 -1
  14. package/types/actions/actionExport.d.ts +51 -17
  15. package/types/actions/actionFinalize.d.ts +11 -3
  16. package/types/actions/actionGroup.d.ts +2 -2
  17. package/types/actions/actionMenu.d.ts +18 -6
  18. package/types/actions/actionNavigate.d.ts +1 -2
  19. package/types/actions/actionProperties.d.ts +78 -26
  20. package/types/actions/actionSelectAll.d.ts +2 -1
  21. package/types/actions/actionStyles.d.ts +3 -1
  22. package/types/actions/actionToggleGridMode.d.ts +5 -1
  23. package/types/actions/actionToggleStats.d.ts +5 -1
  24. package/types/actions/actionToggleViewMode.d.ts +5 -1
  25. package/types/actions/actionToggleZenMode.d.ts +5 -1
  26. package/types/actions/actionZindex.d.ts +4 -4
  27. package/types/analytics.d.ts +1 -1
  28. package/types/appState.d.ts +1 -0
  29. package/types/clients.d.ts +1 -1
  30. package/types/components/ActiveFile.d.ts +0 -1
  31. package/types/components/App.d.ts +6 -3
  32. package/types/components/ButtonIconSelect.d.ts +0 -1
  33. package/types/components/Card.d.ts +1 -0
  34. package/types/components/CheckboxItem.d.ts +1 -0
  35. package/types/components/ClearCanvas.d.ts +0 -1
  36. package/types/components/CollabButton.d.ts +0 -1
  37. package/types/components/ColorPicker.d.ts +0 -1
  38. package/types/components/ConfirmDialog.d.ts +0 -1
  39. package/types/components/DarkModeToggle.d.ts +0 -1
  40. package/types/components/ErrorDialog.d.ts +0 -1
  41. package/types/components/HelpDialog.d.ts +0 -1
  42. package/types/components/HelpIcon.d.ts +0 -1
  43. package/types/components/HintViewer.d.ts +0 -1
  44. package/types/components/IconPicker.d.ts +0 -1
  45. package/types/components/ImageExportDialog.d.ts +0 -1
  46. package/types/components/JSONExportDialog.d.ts +0 -1
  47. package/types/components/LayerUI.d.ts +1 -4
  48. package/types/components/LibraryMenu.d.ts +0 -1
  49. package/types/components/LibraryUnit.d.ts +0 -1
  50. package/types/components/LockButton.d.ts +0 -1
  51. package/types/components/MobileMenu.d.ts +1 -2
  52. package/types/components/Modal.d.ts +2 -2
  53. package/types/components/PenModeButton.d.ts +0 -1
  54. package/types/components/ProjectName.d.ts +0 -1
  55. package/types/components/PublishLibrary.d.ts +0 -1
  56. package/types/components/Section.d.ts +4 -5
  57. package/types/components/SidebarLockButton.d.ts +0 -1
  58. package/types/components/SingleLibraryItem.d.ts +0 -1
  59. package/types/components/Spinner.d.ts +0 -1
  60. package/types/components/Toast.d.ts +4 -3
  61. package/types/constants.d.ts +0 -1
  62. package/types/data/blob.d.ts +4 -4
  63. package/types/data/filesystem.d.ts +2 -2
  64. package/types/data/json.d.ts +1 -1
  65. package/types/element/Hyperlink.d.ts +6 -2
  66. package/types/element/binding.d.ts +3 -3
  67. package/types/element/dragElements.d.ts +1 -1
  68. package/types/element/index.d.ts +1 -1
  69. package/types/element/linearElementEditor.d.ts +5 -1
  70. package/types/element/mutateElement.d.ts +1 -1
  71. package/types/element/sizeHelpers.d.ts +4 -0
  72. package/types/element/textElement.d.ts +1 -1
  73. package/types/element/typeChecks.d.ts +3 -3
  74. package/types/jotai.d.ts +5 -3
  75. package/types/keys.d.ts +1 -1
  76. package/types/packages/excalidraw/example/App.d.ts +0 -1
  77. package/types/renderer/renderElement.d.ts +1 -1
  78. package/types/renderer/renderScene.d.ts +9 -1
  79. package/types/shapes.d.ts +0 -1
  80. package/types/types.d.ts +7 -2
  81. package/types/utils.d.ts +7 -5
@@ -20,7 +20,8 @@ https://github.com/nodeca/pica
20
20
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
21
21
  */
22
22
 
23
- /** @license React v17.0.2
23
+ /**
24
+ * @license React
24
25
  * react-jsx-runtime.production.min.js
25
26
  *
26
27
  * Copyright (c) Facebook, Inc. and its affiliates.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zsviczian/excalidraw",
3
- "version": "0.11.0-obsidian-25",
3
+ "version": "0.12.0-obsidian-2",
4
4
  "main": "main.js",
5
5
  "types": "types/packages/excalidraw/index.d.ts",
6
6
  "files": [
@@ -40,33 +40,34 @@
40
40
  ]
41
41
  },
42
42
  "peerDependencies": {
43
- "react": "^17.0.2",
44
- "react-dom": "^17.0.2"
43
+ "react": "^17.0.2 || ^18.2.0",
44
+ "react-dom": "^17.0.2 || ^18.2.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@babel/core": "7.17.0",
48
- "@babel/plugin-transform-arrow-functions": "7.16.7",
49
- "@babel/plugin-transform-async-to-generator": "7.16.0",
50
- "@babel/plugin-transform-runtime": "7.17.10",
51
- "@babel/plugin-transform-typescript": "7.16.1",
52
- "@babel/preset-env": "7.17.10",
53
- "@babel/preset-react": "7.16.7",
54
- "@babel/preset-typescript": "7.16.7",
47
+ "@babel/core": "7.18.9",
48
+ "@babel/plugin-transform-arrow-functions": "7.18.6",
49
+ "@babel/plugin-transform-async-to-generator": "7.18.6",
50
+ "@babel/plugin-transform-runtime": "7.18.9",
51
+ "@babel/plugin-transform-typescript": "7.18.8",
52
+ "@babel/preset-env": "7.18.6",
53
+ "@babel/preset-react": "7.18.6",
54
+ "@babel/preset-typescript": "7.18.6",
55
55
  "autoprefixer": "10.4.7",
56
56
  "babel-loader": "8.2.5",
57
57
  "babel-plugin-transform-class-properties": "6.24.1",
58
58
  "cross-env": "7.0.3",
59
59
  "css-loader": "6.7.1",
60
- "mini-css-extract-plugin": "2.6.0",
61
- "postcss-loader": "6.2.1",
62
- "sass-loader": "12.4.0",
63
- "terser-webpack-plugin": "5.3.1",
64
- "ts-loader": "9.3.0",
65
- "typescript": "4.6.4",
66
- "webpack": "5.72.0",
60
+ "dotenv": "16.0.1",
61
+ "mini-css-extract-plugin": "2.6.1",
62
+ "postcss-loader": "7.0.1",
63
+ "sass-loader": "13.0.2",
64
+ "terser-webpack-plugin": "5.3.3",
65
+ "ts-loader": "9.3.1",
66
+ "typescript": "4.7.4",
67
+ "webpack": "5.73.0",
67
68
  "webpack-bundle-analyzer": "4.5.0",
68
- "webpack-cli": "4.9.2",
69
- "webpack-dev-server": "4.9.0",
69
+ "webpack-cli": "4.10.0",
70
+ "webpack-dev-server": "4.9.3",
70
71
  "webpack-merge": "5.8.0"
71
72
  },
72
73
  "bugs": "https://github.com/excalidraw/excalidraw/issues",
@@ -78,9 +79,6 @@
78
79
  "pack": "yarn build:umd && yarn pack",
79
80
  "start": "webpack serve --config webpack.dev-server.config.js",
80
81
  "install:deps": "yarn install --frozen-lockfile && yarn --cwd ../../../",
81
- "build:example": "EXAMPLE=true webpack --config webpack.dev-server.config.js"
82
- },
83
- "dependencies": {
84
- "dotenv": "10.0.0"
82
+ "build:example": "EXAMPLE=true webpack --config webpack.dev-server.config.js && yarn gen:types"
85
83
  }
86
84
  }
@@ -6,7 +6,9 @@ export declare const actionAddToLibrary: {
6
6
  perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<{
7
7
  commitToHistory: boolean;
8
8
  appState: {
9
- toastMessage: string;
9
+ toast: {
10
+ message: string;
11
+ };
10
12
  isLoading: boolean;
11
13
  errorMessage: string | null;
12
14
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -173,7 +175,11 @@ export declare const actionAddToLibrary: {
173
175
  };
174
176
  shouldCacheIgnoreZoom: boolean;
175
177
  showHelpDialog: boolean;
176
- toastMessage: string | null;
178
+ toast: {
179
+ message: string;
180
+ closable?: boolean | undefined;
181
+ duration?: number | undefined;
182
+ } | null;
177
183
  zenModeEnabled: boolean;
178
184
  theme: string;
179
185
  gridSize: number | null;
@@ -276,7 +282,11 @@ export declare const actionAddToLibrary: {
276
282
  };
277
283
  shouldCacheIgnoreZoom: boolean;
278
284
  showHelpDialog: boolean;
279
- toastMessage: string | null;
285
+ toast: {
286
+ message: string;
287
+ closable?: boolean | undefined;
288
+ duration?: number | undefined;
289
+ } | null;
280
290
  zenModeEnabled: boolean;
281
291
  theme: string;
282
292
  gridSize: number | null;
@@ -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("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
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("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
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("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
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("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
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("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
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("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
88
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
89
89
  } & {
90
90
  keyTest?: undefined;
91
91
  };
@@ -87,7 +87,11 @@ export declare const actionBindText: {
87
87
  };
88
88
  shouldCacheIgnoreZoom: boolean;
89
89
  showHelpDialog: boolean;
90
- toastMessage: string | null;
90
+ toast: {
91
+ message: string;
92
+ closable?: boolean | undefined;
93
+ duration?: number | undefined;
94
+ } | null;
91
95
  zenModeEnabled: boolean;
92
96
  theme: string;
93
97
  gridSize: number | null;
@@ -8,7 +8,7 @@ export declare const actionChangeViewBackgroundColor: {
8
8
  appState: any;
9
9
  commitToHistory: boolean;
10
10
  };
11
- PanelComponent: ({ elements, appState, updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
11
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
12
12
  } & {
13
13
  keyTest?: undefined;
14
14
  };
@@ -95,7 +95,11 @@ export declare const actionClearCanvas: {
95
95
  [id: string]: boolean;
96
96
  };
97
97
  showHelpDialog: boolean;
98
- toastMessage: string | null;
98
+ toast: {
99
+ message: string;
100
+ closable?: boolean | undefined;
101
+ duration?: number | undefined;
102
+ } | null;
99
103
  zenModeEnabled: boolean;
100
104
  viewModeEnabled: boolean;
101
105
  selectedGroupIds: {
@@ -119,7 +123,7 @@ export declare const actionClearCanvas: {
119
123
  };
120
124
  commitToHistory: true;
121
125
  };
122
- PanelComponent: ({ updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
126
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
123
127
  } & {
124
128
  keyTest?: undefined;
125
129
  };
@@ -194,7 +198,11 @@ export declare const actionZoomIn: {
194
198
  };
195
199
  shouldCacheIgnoreZoom: boolean;
196
200
  showHelpDialog: boolean;
197
- toastMessage: string | null;
201
+ toast: {
202
+ message: string;
203
+ closable?: boolean | undefined;
204
+ duration?: number | undefined;
205
+ } | null;
198
206
  zenModeEnabled: boolean;
199
207
  theme: string;
200
208
  gridSize: number | null;
@@ -232,7 +240,7 @@ export declare const actionZoomIn: {
232
240
  };
233
241
  commitToHistory: false;
234
242
  };
235
- PanelComponent: ({ updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
243
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
236
244
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
237
245
  } & {
238
246
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
@@ -308,7 +316,11 @@ export declare const actionZoomOut: {
308
316
  };
309
317
  shouldCacheIgnoreZoom: boolean;
310
318
  showHelpDialog: boolean;
311
- toastMessage: string | null;
319
+ toast: {
320
+ message: string;
321
+ closable?: boolean | undefined;
322
+ duration?: number | undefined;
323
+ } | null;
312
324
  zenModeEnabled: boolean;
313
325
  theme: string;
314
326
  gridSize: number | null;
@@ -346,7 +358,7 @@ export declare const actionZoomOut: {
346
358
  };
347
359
  commitToHistory: false;
348
360
  };
349
- PanelComponent: ({ updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
361
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
350
362
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
351
363
  } & {
352
364
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
@@ -422,7 +434,11 @@ export declare const actionResetZoom: {
422
434
  };
423
435
  shouldCacheIgnoreZoom: boolean;
424
436
  showHelpDialog: boolean;
425
- toastMessage: string | null;
437
+ toast: {
438
+ message: string;
439
+ closable?: boolean | undefined;
440
+ duration?: number | undefined;
441
+ } | null;
426
442
  zenModeEnabled: boolean;
427
443
  theme: string;
428
444
  gridSize: number | null;
@@ -460,7 +476,7 @@ export declare const actionResetZoom: {
460
476
  };
461
477
  commitToHistory: false;
462
478
  };
463
- PanelComponent: ({ updateData, appState }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
479
+ PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
464
480
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
465
481
  } & {
466
482
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
@@ -531,7 +547,11 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
531
547
  };
532
548
  shouldCacheIgnoreZoom: boolean;
533
549
  showHelpDialog: boolean;
534
- toastMessage: string | null;
550
+ toast: {
551
+ message: string;
552
+ closable?: boolean | undefined;
553
+ duration?: number | undefined;
554
+ } | null;
535
555
  zenModeEnabled: boolean;
536
556
  theme: string;
537
557
  gridSize: number | null;
@@ -640,7 +660,11 @@ export declare const actionZoomToSelected: {
640
660
  };
641
661
  shouldCacheIgnoreZoom: boolean;
642
662
  showHelpDialog: boolean;
643
- toastMessage: string | null;
663
+ toast: {
664
+ message: string;
665
+ closable?: boolean | undefined;
666
+ duration?: number | undefined;
667
+ } | null;
644
668
  zenModeEnabled: boolean;
645
669
  theme: string;
646
670
  gridSize: number | null;
@@ -753,7 +777,11 @@ export declare const actionZoomToFit: {
753
777
  };
754
778
  shouldCacheIgnoreZoom: boolean;
755
779
  showHelpDialog: boolean;
756
- toastMessage: string | null;
780
+ toast: {
781
+ message: string;
782
+ closable?: boolean | undefined;
783
+ duration?: number | undefined;
784
+ } | null;
757
785
  zenModeEnabled: boolean;
758
786
  theme: string;
759
787
  gridSize: number | null;
@@ -867,7 +895,11 @@ export declare const actionToggleTheme: {
867
895
  };
868
896
  shouldCacheIgnoreZoom: boolean;
869
897
  showHelpDialog: boolean;
870
- toastMessage: string | null;
898
+ toast: {
899
+ message: string;
900
+ closable?: boolean | undefined;
901
+ duration?: number | undefined;
902
+ } | null;
871
903
  zenModeEnabled: boolean;
872
904
  gridSize: number | null;
873
905
  viewModeEnabled: boolean;
@@ -904,7 +936,7 @@ export declare const actionToggleTheme: {
904
936
  };
905
937
  commitToHistory: false;
906
938
  };
907
- PanelComponent: ({ appState, updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
939
+ PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
908
940
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
909
941
  } & {
910
942
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
@@ -979,7 +1011,11 @@ export declare const actionErase: {
979
1011
  };
980
1012
  shouldCacheIgnoreZoom: boolean;
981
1013
  showHelpDialog: boolean;
982
- toastMessage: string | null;
1014
+ toast: {
1015
+ message: string;
1016
+ closable?: boolean | undefined;
1017
+ duration?: number | undefined;
1018
+ } | null;
983
1019
  zenModeEnabled: boolean;
984
1020
  theme: string;
985
1021
  gridSize: number | null;
@@ -1015,7 +1051,7 @@ export declare const actionErase: {
1015
1051
  commitToHistory: true;
1016
1052
  };
1017
1053
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1018
- PanelComponent: ({ elements, appState, updateData, data }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
1054
+ PanelComponent: ({ elements, appState, updateData, data }: import("./types").PanelComponentProps) => JSX.Element;
1019
1055
  } & {
1020
1056
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1021
1057
  };
@@ -84,7 +84,11 @@ export declare const actionCut: {
84
84
  };
85
85
  shouldCacheIgnoreZoom: boolean;
86
86
  showHelpDialog: boolean;
87
- toastMessage: string | null;
87
+ toast: {
88
+ message: string;
89
+ closable?: boolean | undefined;
90
+ duration?: number | undefined;
91
+ } | null;
88
92
  zenModeEnabled: boolean;
89
93
  theme: string;
90
94
  gridSize: number | null;
@@ -205,7 +209,11 @@ export declare const actionCut: {
205
209
  };
206
210
  shouldCacheIgnoreZoom: boolean;
207
211
  showHelpDialog: boolean;
208
- toastMessage: string | null;
212
+ toast: {
213
+ message: string;
214
+ closable?: boolean | undefined;
215
+ duration?: number | undefined;
216
+ } | null;
209
217
  zenModeEnabled: boolean;
210
218
  theme: string;
211
219
  gridSize: number | null;
@@ -307,7 +315,11 @@ export declare const actionCut: {
307
315
  };
308
316
  shouldCacheIgnoreZoom: boolean;
309
317
  showHelpDialog: boolean;
310
- toastMessage: string | null;
318
+ toast: {
319
+ message: string;
320
+ closable?: boolean | undefined;
321
+ duration?: number | undefined;
322
+ } | null;
311
323
  zenModeEnabled: boolean;
312
324
  theme: string;
313
325
  gridSize: number | null;
@@ -424,7 +436,11 @@ export declare const actionCopyAsSvg: {
424
436
  };
425
437
  shouldCacheIgnoreZoom: boolean;
426
438
  showHelpDialog: boolean;
427
- toastMessage: string | null;
439
+ toast: {
440
+ message: string;
441
+ closable?: boolean | undefined;
442
+ duration?: number | undefined;
443
+ } | null;
428
444
  zenModeEnabled: boolean;
429
445
  theme: string;
430
446
  gridSize: number | null;
@@ -540,7 +556,11 @@ export declare const actionCopyAsPng: {
540
556
  };
541
557
  shouldCacheIgnoreZoom: boolean;
542
558
  showHelpDialog: boolean;
543
- toastMessage: string | null;
559
+ toast: {
560
+ message: string;
561
+ closable?: boolean | undefined;
562
+ duration?: number | undefined;
563
+ } | null;
544
564
  zenModeEnabled: boolean;
545
565
  theme: string;
546
566
  gridSize: number | null;
@@ -75,7 +75,11 @@ export declare const actionDeleteSelected: {
75
75
  };
76
76
  shouldCacheIgnoreZoom: boolean;
77
77
  showHelpDialog: boolean;
78
- toastMessage: string | null;
78
+ toast: {
79
+ message: string;
80
+ closable?: boolean | undefined;
81
+ duration?: number | undefined;
82
+ } | null;
79
83
  zenModeEnabled: boolean;
80
84
  theme: string;
81
85
  gridSize: number | null;
@@ -196,7 +200,11 @@ export declare const actionDeleteSelected: {
196
200
  };
197
201
  shouldCacheIgnoreZoom: boolean;
198
202
  showHelpDialog: boolean;
199
- toastMessage: string | null;
203
+ toast: {
204
+ message: string;
205
+ closable?: boolean | undefined;
206
+ duration?: number | undefined;
207
+ } | null;
200
208
  zenModeEnabled: boolean;
201
209
  theme: string;
202
210
  gridSize: number | null;
@@ -298,7 +306,11 @@ export declare const actionDeleteSelected: {
298
306
  };
299
307
  shouldCacheIgnoreZoom: boolean;
300
308
  showHelpDialog: boolean;
301
- toastMessage: string | null;
309
+ toast: {
310
+ message: string;
311
+ closable?: boolean | undefined;
312
+ duration?: number | undefined;
313
+ } | null;
302
314
  zenModeEnabled: boolean;
303
315
  theme: string;
304
316
  gridSize: number | null;
@@ -338,7 +350,7 @@ export declare const actionDeleteSelected: {
338
350
  };
339
351
  contextItemLabel: string;
340
352
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
341
- PanelComponent: ({ elements, appState, updateData }: import("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
353
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
342
354
  } & {
343
355
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
344
356
  };
@@ -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("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
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("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
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("react").PropsWithChildren<import("./types").PanelComponentProps>) => JSX.Element;
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
  };