@zsviczian/excalidraw 0.13.0-obsidian → 0.13.0-obsidian-1

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 (83) hide show
  1. package/dist/excalidraw.development.js +1103 -142
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/dist/excalidraw.production.min.js.LICENSE.txt +104 -0
  4. package/package.json +1 -1
  5. package/types/actions/actionAddToLibrary.d.ts +6 -3
  6. package/types/actions/actionAlign.d.ts +18 -6
  7. package/types/actions/actionBoundText.d.ts +2 -1
  8. package/types/actions/actionCanvas.d.ts +41 -18
  9. package/types/actions/actionClipboard.d.ts +10 -5
  10. package/types/actions/actionDeleteSelected.d.ts +9 -4
  11. package/types/actions/actionDistribute.d.ts +6 -2
  12. package/types/actions/actionDuplicateSelection.d.ts +3 -1
  13. package/types/actions/actionExport.d.ts +44 -19
  14. package/types/actions/actionFinalize.d.ts +7 -3
  15. package/types/actions/actionGroup.d.ts +6 -2
  16. package/types/actions/actionLinearEditor.d.ts +2 -1
  17. package/types/actions/actionMenu.d.ts +15 -6
  18. package/types/actions/actionNavigate.d.ts +3 -1
  19. package/types/actions/actionProperties.d.ts +65 -26
  20. package/types/actions/actionStyles.d.ts +2 -1
  21. package/types/actions/actionToggleGridMode.d.ts +2 -1
  22. package/types/actions/actionToggleLock.d.ts +2 -1
  23. package/types/actions/actionToggleStats.d.ts +2 -1
  24. package/types/actions/actionToggleViewMode.d.ts +2 -1
  25. package/types/actions/actionToggleZenMode.d.ts +2 -1
  26. package/types/actions/actionZindex.d.ts +12 -4
  27. package/types/actions/manager.d.ts +1 -1
  28. package/types/actions/shortcuts.d.ts +1 -1
  29. package/types/actions/types.d.ts +3 -1
  30. package/types/appState.d.ts +3 -2
  31. package/types/bug-issue-template.d.ts +2 -0
  32. package/types/clients.d.ts +1 -1
  33. package/types/components/Actions.d.ts +1 -0
  34. package/types/components/App.d.ts +46 -0
  35. package/types/components/Avatar.d.ts +1 -1
  36. package/types/components/CollabButton.d.ts +2 -1
  37. package/types/components/DialogActionButton.d.ts +10 -0
  38. package/types/components/EncryptedIcon.d.ts +2 -0
  39. package/types/components/Footer.d.ts +2 -1
  40. package/types/components/HelpButton.d.ts +8 -0
  41. package/types/components/ImageExportDialog.d.ts +3 -1
  42. package/types/components/LayerUI.d.ts +2 -1
  43. package/types/components/LibraryButton.d.ts +1 -0
  44. package/types/components/LibraryMenuBrowseButton.d.ts +7 -0
  45. package/types/components/LibraryMenuItems.d.ts +5 -2
  46. package/types/components/MenuItem.d.ts +11 -0
  47. package/types/components/MenuUtils.d.ts +2 -0
  48. package/types/components/MobileMenu.d.ts +2 -1
  49. package/types/components/Sidebar/Sidebar.d.ts +1 -1
  50. package/types/components/Sidebar/common.d.ts +1 -0
  51. package/types/components/TopErrorBoundary.d.ts +15 -0
  52. package/types/components/WelcomeScreen.d.ts +8 -0
  53. package/types/components/WelcomeScreenDecor.d.ts +6 -0
  54. package/types/components/icons.d.ts +83 -124
  55. package/types/constants.d.ts +1 -0
  56. package/types/element/Hyperlink.d.ts +5 -2
  57. package/types/element/linearElementEditor.d.ts +2 -1
  58. package/types/element/transformHandles.d.ts +1 -1
  59. package/types/excalidraw-app/CustomStats.d.ts +9 -0
  60. package/types/excalidraw-app/app_constants.d.ts +32 -0
  61. package/types/excalidraw-app/collab/Collab.d.ts +163 -0
  62. package/types/excalidraw-app/collab/Portal.d.ts +28 -0
  63. package/types/excalidraw-app/collab/RoomDialog.d.ts +13 -0
  64. package/types/excalidraw-app/collab/reconciliation.d.ts +10 -0
  65. package/types/excalidraw-app/components/ExportToExcalidrawPlus.d.ts +9 -0
  66. package/types/excalidraw-app/components/LanguageList.d.ts +4 -0
  67. package/types/excalidraw-app/components/icons.d.ts +1 -0
  68. package/types/excalidraw-app/data/FileManager.d.ts +66 -0
  69. package/types/excalidraw-app/data/LocalData.d.ts +32 -0
  70. package/types/excalidraw-app/data/Locker.d.ts +8 -0
  71. package/types/excalidraw-app/data/firebase.d.ts +25 -0
  72. package/types/excalidraw-app/data/index.d.ts +186 -0
  73. package/types/excalidraw-app/data/localStorage.d.ts +112 -0
  74. package/types/excalidraw-app/data/tabSync.d.ts +9 -0
  75. package/types/excalidraw-app/index.d.ts +26 -0
  76. package/types/hooks/useOutsideClick.d.ts +2 -0
  77. package/types/keys.d.ts +10 -0
  78. package/types/packages/excalidraw/index.d.ts +3 -0
  79. package/types/packages/utils.d.ts +3 -1
  80. package/types/renderer/renderScene.d.ts +1 -1
  81. package/types/scene/types.d.ts +1 -0
  82. package/types/shapes.d.ts +27 -3
  83. package/types/types.d.ts +13 -1
@@ -21,6 +21,7 @@ export declare const actionCut: {
21
21
  elements: import("../element/types").ExcalidrawElement[];
22
22
  appState: {
23
23
  editingLinearElement: null;
24
+ showWelcomeScreen: boolean;
24
25
  isLoading: boolean;
25
26
  errorMessage: string | null;
26
27
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -76,6 +77,7 @@ export declare const actionCut: {
76
77
  openMenu: "canvas" | "shape" | null;
77
78
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
78
79
  openSidebar: "library" | "customSidebar" | null;
80
+ openDialog: "imageExport" | "help" | null;
79
81
  isSidebarDocked: boolean;
80
82
  lastPointerDownWith: import("../element/types").PointerType;
81
83
  selectedElementIds: {
@@ -85,7 +87,6 @@ export declare const actionCut: {
85
87
  [id: string]: boolean;
86
88
  };
87
89
  shouldCacheIgnoreZoom: boolean;
88
- showHelpDialog: boolean;
89
90
  toast: {
90
91
  message: string;
91
92
  closable?: boolean | undefined;
@@ -149,6 +150,7 @@ export declare const actionCut: {
149
150
  hoverPointIndex: number;
150
151
  segmentMidPointHoveredCoords: readonly [number, number] | null;
151
152
  };
153
+ showWelcomeScreen: boolean;
152
154
  isLoading: boolean;
153
155
  errorMessage: string | null;
154
156
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -204,6 +206,7 @@ export declare const actionCut: {
204
206
  openMenu: "canvas" | "shape" | null;
205
207
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
206
208
  openSidebar: "library" | "customSidebar" | null;
209
+ openDialog: "imageExport" | "help" | null;
207
210
  isSidebarDocked: boolean;
208
211
  lastPointerDownWith: import("../element/types").PointerType;
209
212
  selectedElementIds: {
@@ -213,7 +216,6 @@ export declare const actionCut: {
213
216
  [id: string]: boolean;
214
217
  };
215
218
  shouldCacheIgnoreZoom: boolean;
216
- showHelpDialog: boolean;
217
219
  toast: {
218
220
  message: string;
219
221
  closable?: boolean | undefined;
@@ -270,6 +272,7 @@ export declare const actionCut: {
270
272
  };
271
273
  multiElement: null;
272
274
  selectedElementIds: {};
275
+ showWelcomeScreen: boolean;
273
276
  isLoading: boolean;
274
277
  errorMessage: string | null;
275
278
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -314,13 +317,13 @@ export declare const actionCut: {
314
317
  openMenu: "canvas" | "shape" | null;
315
318
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
316
319
  openSidebar: "library" | "customSidebar" | null;
320
+ openDialog: "imageExport" | "help" | null;
317
321
  isSidebarDocked: boolean;
318
322
  lastPointerDownWith: import("../element/types").PointerType;
319
323
  previousSelectedElementIds: {
320
324
  [id: string]: boolean;
321
325
  };
322
326
  shouldCacheIgnoreZoom: boolean;
323
- showHelpDialog: boolean;
324
327
  toast: {
325
328
  message: string;
326
329
  closable?: boolean | undefined;
@@ -378,6 +381,7 @@ export declare const actionCopyAsSvg: {
378
381
  } | {
379
382
  appState: {
380
383
  errorMessage: any;
384
+ showWelcomeScreen: boolean;
381
385
  isLoading: boolean;
382
386
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
383
387
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -433,6 +437,7 @@ export declare const actionCopyAsSvg: {
433
437
  openMenu: "canvas" | "shape" | null;
434
438
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
435
439
  openSidebar: "library" | "customSidebar" | null;
440
+ openDialog: "imageExport" | "help" | null;
436
441
  isSidebarDocked: boolean;
437
442
  lastPointerDownWith: import("../element/types").PointerType;
438
443
  selectedElementIds: {
@@ -442,7 +447,6 @@ export declare const actionCopyAsSvg: {
442
447
  [id: string]: boolean;
443
448
  };
444
449
  shouldCacheIgnoreZoom: boolean;
445
- showHelpDialog: boolean;
446
450
  toast: {
447
451
  message: string;
448
452
  closable?: boolean | undefined;
@@ -499,6 +503,7 @@ export declare const actionCopyAsPng: {
499
503
  } | {
500
504
  appState: {
501
505
  errorMessage: any;
506
+ showWelcomeScreen: boolean;
502
507
  isLoading: boolean;
503
508
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
504
509
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -554,6 +559,7 @@ export declare const actionCopyAsPng: {
554
559
  openMenu: "canvas" | "shape" | null;
555
560
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
556
561
  openSidebar: "library" | "customSidebar" | null;
562
+ openDialog: "imageExport" | "help" | null;
557
563
  isSidebarDocked: boolean;
558
564
  lastPointerDownWith: import("../element/types").PointerType;
559
565
  selectedElementIds: {
@@ -563,7 +569,6 @@ export declare const actionCopyAsPng: {
563
569
  [id: string]: boolean;
564
570
  };
565
571
  shouldCacheIgnoreZoom: boolean;
566
- showHelpDialog: boolean;
567
572
  toast: {
568
573
  message: string;
569
574
  closable?: boolean | undefined;
@@ -12,6 +12,7 @@ export declare const actionDeleteSelected: {
12
12
  elements: ExcalidrawElement[];
13
13
  appState: {
14
14
  editingLinearElement: null;
15
+ showWelcomeScreen: boolean;
15
16
  isLoading: boolean;
16
17
  errorMessage: string | null;
17
18
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -67,6 +68,7 @@ export declare const actionDeleteSelected: {
67
68
  openMenu: "canvas" | "shape" | null;
68
69
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
69
70
  openSidebar: "library" | "customSidebar" | null;
71
+ openDialog: "imageExport" | "help" | null;
70
72
  isSidebarDocked: boolean;
71
73
  lastPointerDownWith: import("../element/types").PointerType;
72
74
  selectedElementIds: {
@@ -76,7 +78,6 @@ export declare const actionDeleteSelected: {
76
78
  [id: string]: boolean;
77
79
  };
78
80
  shouldCacheIgnoreZoom: boolean;
79
- showHelpDialog: boolean;
80
81
  toast: {
81
82
  message: string;
82
83
  closable?: boolean | undefined;
@@ -140,6 +141,7 @@ export declare const actionDeleteSelected: {
140
141
  hoverPointIndex: number;
141
142
  segmentMidPointHoveredCoords: readonly [number, number] | null;
142
143
  };
144
+ showWelcomeScreen: boolean;
143
145
  isLoading: boolean;
144
146
  errorMessage: string | null;
145
147
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -195,6 +197,7 @@ export declare const actionDeleteSelected: {
195
197
  openMenu: "canvas" | "shape" | null;
196
198
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
197
199
  openSidebar: "library" | "customSidebar" | null;
200
+ openDialog: "imageExport" | "help" | null;
198
201
  isSidebarDocked: boolean;
199
202
  lastPointerDownWith: import("../element/types").PointerType;
200
203
  selectedElementIds: {
@@ -204,7 +207,6 @@ export declare const actionDeleteSelected: {
204
207
  [id: string]: boolean;
205
208
  };
206
209
  shouldCacheIgnoreZoom: boolean;
207
- showHelpDialog: boolean;
208
210
  toast: {
209
211
  message: string;
210
212
  closable?: boolean | undefined;
@@ -261,6 +263,7 @@ export declare const actionDeleteSelected: {
261
263
  };
262
264
  multiElement: null;
263
265
  selectedElementIds: {};
266
+ showWelcomeScreen: boolean;
264
267
  isLoading: boolean;
265
268
  errorMessage: string | null;
266
269
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -305,13 +308,13 @@ export declare const actionDeleteSelected: {
305
308
  openMenu: "canvas" | "shape" | null;
306
309
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
307
310
  openSidebar: "library" | "customSidebar" | null;
311
+ openDialog: "imageExport" | "help" | null;
308
312
  isSidebarDocked: boolean;
309
313
  lastPointerDownWith: import("../element/types").PointerType;
310
314
  previousSelectedElementIds: {
311
315
  [id: string]: boolean;
312
316
  };
313
317
  shouldCacheIgnoreZoom: boolean;
314
- showHelpDialog: boolean;
315
318
  toast: {
316
319
  message: string;
317
320
  closable?: boolean | undefined;
@@ -355,7 +358,9 @@ export declare const actionDeleteSelected: {
355
358
  };
356
359
  contextItemLabel: string;
357
360
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
358
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
361
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
362
+ isInHamburgerMenu: boolean;
363
+ }) => JSX.Element;
359
364
  } & {
360
365
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
361
366
  };
@@ -12,7 +12,9 @@ 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("./types").PanelComponentProps) => JSX.Element;
15
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
16
+ isInHamburgerMenu: boolean;
17
+ }) => JSX.Element;
16
18
  } & {
17
19
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
18
20
  };
@@ -27,7 +29,9 @@ export declare const distributeVertically: {
27
29
  commitToHistory: true;
28
30
  };
29
31
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
30
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
32
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
33
+ isInHamburgerMenu: boolean;
34
+ }) => JSX.Element;
31
35
  } & {
32
36
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
33
37
  };
@@ -16,7 +16,9 @@ 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("./types").PanelComponentProps) => JSX.Element;
19
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
20
+ isInHamburgerMenu: boolean;
21
+ }) => JSX.Element;
20
22
  } & {
21
23
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
22
24
  };
@@ -6,6 +6,7 @@ export declare const actionChangeProjectName: {
6
6
  perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
7
7
  appState: {
8
8
  name: any;
9
+ showWelcomeScreen: boolean;
9
10
  isLoading: boolean;
10
11
  errorMessage: string | null;
11
12
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -61,6 +62,7 @@ export declare const actionChangeProjectName: {
61
62
  openMenu: "canvas" | "shape" | null;
62
63
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
63
64
  openSidebar: "library" | "customSidebar" | null;
65
+ openDialog: "imageExport" | "help" | null;
64
66
  isSidebarDocked: boolean;
65
67
  lastPointerDownWith: import("../element/types").PointerType;
66
68
  selectedElementIds: {
@@ -70,7 +72,6 @@ export declare const actionChangeProjectName: {
70
72
  [id: string]: boolean;
71
73
  };
72
74
  shouldCacheIgnoreZoom: boolean;
73
- showHelpDialog: boolean;
74
75
  toast: {
75
76
  message: string;
76
77
  closable?: boolean | undefined;
@@ -112,7 +113,9 @@ export declare const actionChangeProjectName: {
112
113
  };
113
114
  commitToHistory: false;
114
115
  };
115
- PanelComponent: ({ appState, updateData, appProps }: import("./types").PanelComponentProps) => JSX.Element;
116
+ PanelComponent: ({ appState, updateData, appProps }: import("./types").PanelComponentProps & {
117
+ isInHamburgerMenu: boolean;
118
+ }) => JSX.Element;
116
119
  } & {
117
120
  keyTest?: undefined;
118
121
  };
@@ -125,6 +128,7 @@ export declare const actionChangeExportScale: {
125
128
  perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
126
129
  appState: {
127
130
  exportScale: any;
131
+ showWelcomeScreen: boolean;
128
132
  isLoading: boolean;
129
133
  errorMessage: string | null;
130
134
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -180,6 +184,7 @@ export declare const actionChangeExportScale: {
180
184
  openMenu: "canvas" | "shape" | null;
181
185
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
182
186
  openSidebar: "library" | "customSidebar" | null;
187
+ openDialog: "imageExport" | "help" | null;
183
188
  isSidebarDocked: boolean;
184
189
  lastPointerDownWith: import("../element/types").PointerType;
185
190
  selectedElementIds: {
@@ -189,7 +194,6 @@ export declare const actionChangeExportScale: {
189
194
  [id: string]: boolean;
190
195
  };
191
196
  shouldCacheIgnoreZoom: boolean;
192
- showHelpDialog: boolean;
193
197
  toast: {
194
198
  message: string;
195
199
  closable?: boolean | undefined;
@@ -231,7 +235,9 @@ export declare const actionChangeExportScale: {
231
235
  };
232
236
  commitToHistory: false;
233
237
  };
234
- PanelComponent: ({ elements: allElements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
238
+ PanelComponent: ({ elements: allElements, appState, updateData }: import("./types").PanelComponentProps & {
239
+ isInHamburgerMenu: boolean;
240
+ }) => JSX.Element;
235
241
  } & {
236
242
  keyTest?: undefined;
237
243
  };
@@ -244,6 +250,7 @@ export declare const actionChangeExportBackground: {
244
250
  perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
245
251
  appState: {
246
252
  exportBackground: any;
253
+ showWelcomeScreen: boolean;
247
254
  isLoading: boolean;
248
255
  errorMessage: string | null;
249
256
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -299,6 +306,7 @@ export declare const actionChangeExportBackground: {
299
306
  openMenu: "canvas" | "shape" | null;
300
307
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
301
308
  openSidebar: "library" | "customSidebar" | null;
309
+ openDialog: "imageExport" | "help" | null;
302
310
  isSidebarDocked: boolean;
303
311
  lastPointerDownWith: import("../element/types").PointerType;
304
312
  selectedElementIds: {
@@ -308,7 +316,6 @@ export declare const actionChangeExportBackground: {
308
316
  [id: string]: boolean;
309
317
  };
310
318
  shouldCacheIgnoreZoom: boolean;
311
- showHelpDialog: boolean;
312
319
  toast: {
313
320
  message: string;
314
321
  closable?: boolean | undefined;
@@ -350,7 +357,9 @@ export declare const actionChangeExportBackground: {
350
357
  };
351
358
  commitToHistory: false;
352
359
  };
353
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
360
+ PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps & {
361
+ isInHamburgerMenu: boolean;
362
+ }) => JSX.Element;
354
363
  } & {
355
364
  keyTest?: undefined;
356
365
  };
@@ -363,6 +372,7 @@ export declare const actionChangeExportEmbedScene: {
363
372
  perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
364
373
  appState: {
365
374
  exportEmbedScene: any;
375
+ showWelcomeScreen: boolean;
366
376
  isLoading: boolean;
367
377
  errorMessage: string | null;
368
378
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -418,6 +428,7 @@ export declare const actionChangeExportEmbedScene: {
418
428
  openMenu: "canvas" | "shape" | null;
419
429
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
420
430
  openSidebar: "library" | "customSidebar" | null;
431
+ openDialog: "imageExport" | "help" | null;
421
432
  isSidebarDocked: boolean;
422
433
  lastPointerDownWith: import("../element/types").PointerType;
423
434
  selectedElementIds: {
@@ -427,7 +438,6 @@ export declare const actionChangeExportEmbedScene: {
427
438
  [id: string]: boolean;
428
439
  };
429
440
  shouldCacheIgnoreZoom: boolean;
430
- showHelpDialog: boolean;
431
441
  toast: {
432
442
  message: string;
433
443
  closable?: boolean | undefined;
@@ -469,7 +479,9 @@ export declare const actionChangeExportEmbedScene: {
469
479
  };
470
480
  commitToHistory: false;
471
481
  };
472
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
482
+ PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps & {
483
+ isInHamburgerMenu: boolean;
484
+ }) => JSX.Element;
473
485
  } & {
474
486
  keyTest?: undefined;
475
487
  };
@@ -485,6 +497,7 @@ export declare const actionSaveToActiveFile: {
485
497
  toast: {
486
498
  message: string;
487
499
  } | null;
500
+ showWelcomeScreen: boolean;
488
501
  isLoading: boolean;
489
502
  errorMessage: string | null;
490
503
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -541,6 +554,7 @@ export declare const actionSaveToActiveFile: {
541
554
  openMenu: "canvas" | "shape" | null;
542
555
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
543
556
  openSidebar: "library" | "customSidebar" | null;
557
+ openDialog: "imageExport" | "help" | null;
544
558
  isSidebarDocked: boolean;
545
559
  lastPointerDownWith: import("../element/types").PointerType;
546
560
  selectedElementIds: {
@@ -550,7 +564,6 @@ export declare const actionSaveToActiveFile: {
550
564
  [id: string]: boolean;
551
565
  };
552
566
  shouldCacheIgnoreZoom: boolean;
553
- showHelpDialog: boolean;
554
567
  zenModeEnabled: boolean;
555
568
  theme: string;
556
569
  gridSize: number | null;
@@ -589,7 +602,9 @@ export declare const actionSaveToActiveFile: {
589
602
  appState?: undefined;
590
603
  }>;
591
604
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
592
- PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
605
+ PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps & {
606
+ isInHamburgerMenu: boolean;
607
+ }) => JSX.Element;
593
608
  } & {
594
609
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
595
610
  };
@@ -602,6 +617,7 @@ export declare const actionSaveFileToDisk: {
602
617
  commitToHistory: false;
603
618
  appState: {
604
619
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
620
+ showWelcomeScreen: boolean;
605
621
  isLoading: boolean;
606
622
  errorMessage: string | null;
607
623
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -658,6 +674,7 @@ export declare const actionSaveFileToDisk: {
658
674
  openMenu: "canvas" | "shape" | null;
659
675
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
660
676
  openSidebar: "library" | "customSidebar" | null;
677
+ openDialog: "imageExport" | "help" | null;
661
678
  isSidebarDocked: boolean;
662
679
  lastPointerDownWith: import("../element/types").PointerType;
663
680
  selectedElementIds: {
@@ -667,7 +684,6 @@ export declare const actionSaveFileToDisk: {
667
684
  [id: string]: boolean;
668
685
  };
669
686
  shouldCacheIgnoreZoom: boolean;
670
- showHelpDialog: boolean;
671
687
  toast: {
672
688
  message: string;
673
689
  closable?: boolean | undefined;
@@ -711,7 +727,9 @@ export declare const actionSaveFileToDisk: {
711
727
  appState?: undefined;
712
728
  }>;
713
729
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
714
- PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
730
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps & {
731
+ isInHamburgerMenu: boolean;
732
+ }) => JSX.Element;
715
733
  } & {
716
734
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
717
735
  };
@@ -723,6 +741,8 @@ export declare const actionLoadScene: {
723
741
  perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
724
742
  elements: import("../element/types").ExcalidrawElement[];
725
743
  appState: {
744
+ theme: string;
745
+ name: string;
726
746
  activeTool: {
727
747
  type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
728
748
  lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
@@ -741,7 +761,7 @@ export declare const actionLoadScene: {
741
761
  value: import("../types").NormalizedZoomValue;
742
762
  }>;
743
763
  shouldCacheIgnoreZoom: boolean;
744
- theme: string;
764
+ showWelcomeScreen: boolean;
745
765
  isLoading: boolean;
746
766
  errorMessage: string | null;
747
767
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -775,12 +795,12 @@ export declare const actionLoadScene: {
775
795
  currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
776
796
  cursorButton: "up" | "down";
777
797
  scrolledOutside: boolean;
778
- name: string;
779
798
  isResizing: boolean;
780
799
  isRotating: boolean;
781
800
  openMenu: "canvas" | "shape" | null;
782
801
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
783
802
  openSidebar: "library" | "customSidebar" | null;
803
+ openDialog: "imageExport" | "help" | null;
784
804
  isSidebarDocked: boolean;
785
805
  lastPointerDownWith: import("../element/types").PointerType;
786
806
  selectedElementIds: {
@@ -789,7 +809,6 @@ export declare const actionLoadScene: {
789
809
  previousSelectedElementIds: {
790
810
  [id: string]: boolean;
791
811
  };
792
- showHelpDialog: boolean;
793
812
  toast: {
794
813
  message: string;
795
814
  closable?: boolean | undefined;
@@ -830,6 +849,7 @@ export declare const actionLoadScene: {
830
849
  elements: readonly import("../element/types").ExcalidrawElement[];
831
850
  appState: {
832
851
  errorMessage: any;
852
+ showWelcomeScreen: boolean;
833
853
  isLoading: boolean;
834
854
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
835
855
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -885,6 +905,7 @@ export declare const actionLoadScene: {
885
905
  openMenu: "canvas" | "shape" | null;
886
906
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
887
907
  openSidebar: "library" | "customSidebar" | null;
908
+ openDialog: "imageExport" | "help" | null;
888
909
  isSidebarDocked: boolean;
889
910
  lastPointerDownWith: import("../element/types").PointerType;
890
911
  selectedElementIds: {
@@ -894,7 +915,6 @@ export declare const actionLoadScene: {
894
915
  [id: string]: boolean;
895
916
  };
896
917
  shouldCacheIgnoreZoom: boolean;
897
- showHelpDialog: boolean;
898
918
  toast: {
899
919
  message: string;
900
920
  closable?: boolean | undefined;
@@ -938,7 +958,9 @@ export declare const actionLoadScene: {
938
958
  commitToHistory: false;
939
959
  }>;
940
960
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
941
- PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
961
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps & {
962
+ isInHamburgerMenu: boolean;
963
+ }) => JSX.Element;
942
964
  } & {
943
965
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
944
966
  };
@@ -951,6 +973,7 @@ export declare const actionExportWithDarkMode: {
951
973
  perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
952
974
  appState: {
953
975
  exportWithDarkMode: any;
976
+ showWelcomeScreen: boolean;
954
977
  isLoading: boolean;
955
978
  errorMessage: string | null;
956
979
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -1006,6 +1029,7 @@ export declare const actionExportWithDarkMode: {
1006
1029
  openMenu: "canvas" | "shape" | null;
1007
1030
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
1008
1031
  openSidebar: "library" | "customSidebar" | null;
1032
+ openDialog: "imageExport" | "help" | null;
1009
1033
  isSidebarDocked: boolean;
1010
1034
  lastPointerDownWith: import("../element/types").PointerType;
1011
1035
  selectedElementIds: {
@@ -1015,7 +1039,6 @@ export declare const actionExportWithDarkMode: {
1015
1039
  [id: string]: boolean;
1016
1040
  };
1017
1041
  shouldCacheIgnoreZoom: boolean;
1018
- showHelpDialog: boolean;
1019
1042
  toast: {
1020
1043
  message: string;
1021
1044
  closable?: boolean | undefined;
@@ -1057,7 +1080,9 @@ export declare const actionExportWithDarkMode: {
1057
1080
  };
1058
1081
  commitToHistory: false;
1059
1082
  };
1060
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1083
+ PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps & {
1084
+ isInHamburgerMenu: boolean;
1085
+ }) => JSX.Element;
1061
1086
  } & {
1062
1087
  keyTest?: undefined;
1063
1088
  };
@@ -9,6 +9,7 @@ export declare const actionFinalize: {
9
9
  appState: {
10
10
  cursorButton: "up";
11
11
  editingLinearElement: null;
12
+ showWelcomeScreen: boolean;
12
13
  isLoading: boolean;
13
14
  errorMessage: string | null;
14
15
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -63,6 +64,7 @@ export declare const actionFinalize: {
63
64
  openMenu: "canvas" | "shape" | null;
64
65
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
65
66
  openSidebar: "library" | "customSidebar" | null;
67
+ openDialog: "imageExport" | "help" | null;
66
68
  isSidebarDocked: boolean;
67
69
  lastPointerDownWith: import("../element/types").PointerType;
68
70
  selectedElementIds: {
@@ -72,7 +74,6 @@ export declare const actionFinalize: {
72
74
  [id: string]: boolean;
73
75
  };
74
76
  shouldCacheIgnoreZoom: boolean;
75
- showHelpDialog: boolean;
76
77
  toast: {
77
78
  message: string;
78
79
  closable?: boolean | undefined;
@@ -138,6 +139,7 @@ export declare const actionFinalize: {
138
139
  };
139
140
  selectedLinearElement: LinearElementEditor | null;
140
141
  pendingImageElementId: null;
142
+ showWelcomeScreen: boolean;
141
143
  isLoading: boolean;
142
144
  errorMessage: string | null;
143
145
  resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -177,13 +179,13 @@ export declare const actionFinalize: {
177
179
  openMenu: "canvas" | "shape" | null;
178
180
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
179
181
  openSidebar: "library" | "customSidebar" | null;
182
+ openDialog: "imageExport" | "help" | null;
180
183
  isSidebarDocked: boolean;
181
184
  lastPointerDownWith: import("../element/types").PointerType;
182
185
  previousSelectedElementIds: {
183
186
  [id: string]: boolean;
184
187
  };
185
188
  shouldCacheIgnoreZoom: boolean;
186
- showHelpDialog: boolean;
187
189
  toast: {
188
190
  message: string;
189
191
  closable?: boolean | undefined;
@@ -224,7 +226,9 @@ export declare const actionFinalize: {
224
226
  commitToHistory: boolean;
225
227
  };
226
228
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean;
227
- PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps) => JSX.Element;
229
+ PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps & {
230
+ isInHamburgerMenu: boolean;
231
+ }) => JSX.Element;
228
232
  } & {
229
233
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean) | undefined;
230
234
  };
@@ -18,7 +18,9 @@ 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("./types").PanelComponentProps) => JSX.Element;
21
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
22
+ isInHamburgerMenu: boolean;
23
+ }) => JSX.Element;
22
24
  } & {
23
25
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
24
26
  };
@@ -39,7 +41,9 @@ export declare const actionUngroup: {
39
41
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
40
42
  contextItemLabel: string;
41
43
  contextItemPredicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
42
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
44
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
45
+ isInHamburgerMenu: boolean;
46
+ }) => JSX.Element;
43
47
  } & {
44
48
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
45
49
  };
@@ -9,6 +9,7 @@ export declare const actionToggleLinearEditor: {
9
9
  perform(elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties): {
10
10
  appState: {
11
11
  editingLinearElement: LinearElementEditor | null;
12
+ showWelcomeScreen: boolean;
12
13
  isLoading: boolean;
13
14
  errorMessage: string | null;
14
15
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -64,6 +65,7 @@ export declare const actionToggleLinearEditor: {
64
65
  openMenu: "canvas" | "shape" | null;
65
66
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
66
67
  openSidebar: "library" | "customSidebar" | null;
68
+ openDialog: "imageExport" | "help" | null;
67
69
  isSidebarDocked: boolean;
68
70
  lastPointerDownWith: import("../element/types").PointerType;
69
71
  selectedElementIds: {
@@ -73,7 +75,6 @@ export declare const actionToggleLinearEditor: {
73
75
  [id: string]: boolean;
74
76
  };
75
77
  shouldCacheIgnoreZoom: boolean;
76
- showHelpDialog: boolean;
77
78
  toast: {
78
79
  message: string;
79
80
  closable?: boolean | undefined;