@zsviczian/excalidraw 0.12.0-obsidian-11 → 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 (97) hide show
  1. package/README.md +68 -14
  2. package/dist/excalidraw.development.js +1192 -154
  3. package/dist/excalidraw.production.min.js +1 -1
  4. package/dist/excalidraw.production.min.js.LICENSE.txt +104 -0
  5. package/package.json +1 -1
  6. package/types/actions/actionAddToLibrary.d.ts +12 -9
  7. package/types/actions/actionAlign.d.ts +18 -6
  8. package/types/actions/actionBoundText.d.ts +4 -3
  9. package/types/actions/actionCanvas.d.ts +59 -36
  10. package/types/actions/actionClipboard.d.ts +20 -15
  11. package/types/actions/actionDeleteSelected.d.ts +15 -10
  12. package/types/actions/actionDistribute.d.ts +6 -2
  13. package/types/actions/actionDuplicateSelection.d.ts +3 -1
  14. package/types/actions/actionExport.d.ts +62 -37
  15. package/types/actions/actionFinalize.d.ts +11 -7
  16. package/types/actions/actionGroup.d.ts +6 -2
  17. package/types/actions/actionLinearEditor.d.ts +4 -3
  18. package/types/actions/actionMenu.d.ts +21 -12
  19. package/types/actions/actionNavigate.d.ts +3 -1
  20. package/types/actions/actionProperties.d.ts +91 -52
  21. package/types/actions/actionStyles.d.ts +4 -3
  22. package/types/actions/actionToggleGridMode.d.ts +4 -3
  23. package/types/actions/actionToggleLock.d.ts +4 -3
  24. package/types/actions/actionToggleStats.d.ts +4 -3
  25. package/types/actions/actionToggleViewMode.d.ts +4 -3
  26. package/types/actions/actionToggleZenMode.d.ts +4 -3
  27. package/types/actions/actionZindex.d.ts +12 -4
  28. package/types/actions/manager.d.ts +1 -1
  29. package/types/actions/shortcuts.d.ts +1 -1
  30. package/types/actions/types.d.ts +3 -1
  31. package/types/appState.d.ts +5 -4
  32. package/types/bug-issue-template.d.ts +2 -0
  33. package/types/clients.d.ts +1 -1
  34. package/types/components/Actions.d.ts +1 -0
  35. package/types/components/App.d.ts +52 -1
  36. package/types/components/Avatar.d.ts +1 -1
  37. package/types/components/CollabButton.d.ts +2 -1
  38. package/types/components/DialogActionButton.d.ts +10 -0
  39. package/types/components/EncryptedIcon.d.ts +2 -0
  40. package/types/components/Footer.d.ts +2 -1
  41. package/types/components/HelpButton.d.ts +8 -0
  42. package/types/components/HintViewer.d.ts +3 -2
  43. package/types/components/ImageExportDialog.d.ts +3 -1
  44. package/types/components/LayerUI.d.ts +3 -1
  45. package/types/components/LibraryButton.d.ts +1 -0
  46. package/types/components/LibraryMenu.d.ts +14 -5
  47. package/types/components/LibraryMenuBrowseButton.d.ts +7 -0
  48. package/types/components/LibraryMenuHeaderContent.d.ts +12 -0
  49. package/types/components/LibraryMenuItems.d.ts +5 -14
  50. package/types/components/LibraryUnit.d.ts +2 -3
  51. package/types/components/MenuItem.d.ts +11 -0
  52. package/types/components/MenuUtils.d.ts +2 -0
  53. package/types/components/MobileMenu.d.ts +5 -3
  54. package/types/components/Sidebar/Sidebar.d.ts +73 -0
  55. package/types/components/Sidebar/SidebarHeader.d.ts +20 -0
  56. package/types/components/Sidebar/common.d.ts +16 -0
  57. package/types/components/TopErrorBoundary.d.ts +15 -0
  58. package/types/components/WelcomeScreen.d.ts +8 -0
  59. package/types/components/WelcomeScreenDecor.d.ts +6 -0
  60. package/types/components/hoc/withUpstreamOverride.d.ts +10 -0
  61. package/types/components/icons.d.ts +83 -124
  62. package/types/constants.d.ts +1 -0
  63. package/types/data/restore.d.ts +1 -1
  64. package/types/data/types.d.ts +16 -1
  65. package/types/element/Hyperlink.d.ts +7 -4
  66. package/types/element/index.d.ts +1 -1
  67. package/types/element/linearElementEditor.d.ts +4 -3
  68. package/types/element/newElement.d.ts +8 -0
  69. package/types/element/transformHandles.d.ts +1 -1
  70. package/types/excalidraw-app/CustomStats.d.ts +9 -0
  71. package/types/excalidraw-app/app_constants.d.ts +32 -0
  72. package/types/excalidraw-app/collab/Collab.d.ts +163 -0
  73. package/types/excalidraw-app/collab/Portal.d.ts +28 -0
  74. package/types/excalidraw-app/collab/RoomDialog.d.ts +13 -0
  75. package/types/excalidraw-app/collab/reconciliation.d.ts +10 -0
  76. package/types/excalidraw-app/components/ExportToExcalidrawPlus.d.ts +9 -0
  77. package/types/excalidraw-app/components/LanguageList.d.ts +4 -0
  78. package/types/excalidraw-app/components/icons.d.ts +1 -0
  79. package/types/excalidraw-app/data/FileManager.d.ts +66 -0
  80. package/types/excalidraw-app/data/LocalData.d.ts +32 -0
  81. package/types/excalidraw-app/data/Locker.d.ts +8 -0
  82. package/types/excalidraw-app/data/firebase.d.ts +25 -0
  83. package/types/excalidraw-app/data/index.d.ts +186 -0
  84. package/types/excalidraw-app/data/localStorage.d.ts +112 -0
  85. package/types/excalidraw-app/data/tabSync.d.ts +9 -0
  86. package/types/excalidraw-app/index.d.ts +26 -0
  87. package/types/hooks/useOutsideClick.d.ts +2 -0
  88. package/types/keys.d.ts +13 -3
  89. package/types/packages/excalidraw/example/App.d.ts +2 -1
  90. package/types/packages/excalidraw/example/sidebar/ExampleSidebar.d.ts +5 -0
  91. package/types/packages/excalidraw/index.d.ts +4 -0
  92. package/types/packages/utils.d.ts +3 -1
  93. package/types/renderer/renderScene.d.ts +1 -1
  94. package/types/scene/scrollbars.d.ts +1 -1
  95. package/types/scene/types.d.ts +1 -0
  96. package/types/shapes.d.ts +27 -3
  97. package/types/types.d.ts +21 -3
@@ -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;
@@ -60,6 +61,9 @@ export declare const actionChangeProjectName: {
60
61
  }>;
61
62
  openMenu: "canvas" | "shape" | null;
62
63
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
64
+ openSidebar: "library" | "customSidebar" | null;
65
+ openDialog: "imageExport" | "help" | null;
66
+ isSidebarDocked: boolean;
63
67
  lastPointerDownWith: import("../element/types").PointerType;
64
68
  selectedElementIds: {
65
69
  [id: string]: boolean;
@@ -68,7 +72,6 @@ export declare const actionChangeProjectName: {
68
72
  [id: string]: boolean;
69
73
  };
70
74
  shouldCacheIgnoreZoom: boolean;
71
- showHelpDialog: boolean;
72
75
  toast: {
73
76
  message: string;
74
77
  closable?: boolean | undefined;
@@ -86,8 +89,6 @@ export declare const actionChangeProjectName: {
86
89
  height: number;
87
90
  offsetTop: number;
88
91
  offsetLeft: number;
89
- isLibraryOpen: boolean;
90
- isLibraryMenuDocked: boolean;
91
92
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
92
93
  collaborators: Map<string, import("../types").Collaborator>;
93
94
  showStats: boolean;
@@ -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;
@@ -179,6 +183,9 @@ export declare const actionChangeExportScale: {
179
183
  }>;
180
184
  openMenu: "canvas" | "shape" | null;
181
185
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
186
+ openSidebar: "library" | "customSidebar" | null;
187
+ openDialog: "imageExport" | "help" | null;
188
+ isSidebarDocked: boolean;
182
189
  lastPointerDownWith: import("../element/types").PointerType;
183
190
  selectedElementIds: {
184
191
  [id: string]: boolean;
@@ -187,7 +194,6 @@ export declare const actionChangeExportScale: {
187
194
  [id: string]: boolean;
188
195
  };
189
196
  shouldCacheIgnoreZoom: boolean;
190
- showHelpDialog: boolean;
191
197
  toast: {
192
198
  message: string;
193
199
  closable?: boolean | undefined;
@@ -205,8 +211,6 @@ export declare const actionChangeExportScale: {
205
211
  height: number;
206
212
  offsetTop: number;
207
213
  offsetLeft: number;
208
- isLibraryOpen: boolean;
209
- isLibraryMenuDocked: boolean;
210
214
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
211
215
  collaborators: Map<string, import("../types").Collaborator>;
212
216
  showStats: boolean;
@@ -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;
@@ -298,6 +305,9 @@ export declare const actionChangeExportBackground: {
298
305
  }>;
299
306
  openMenu: "canvas" | "shape" | null;
300
307
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
308
+ openSidebar: "library" | "customSidebar" | null;
309
+ openDialog: "imageExport" | "help" | null;
310
+ isSidebarDocked: boolean;
301
311
  lastPointerDownWith: import("../element/types").PointerType;
302
312
  selectedElementIds: {
303
313
  [id: string]: boolean;
@@ -306,7 +316,6 @@ export declare const actionChangeExportBackground: {
306
316
  [id: string]: boolean;
307
317
  };
308
318
  shouldCacheIgnoreZoom: boolean;
309
- showHelpDialog: boolean;
310
319
  toast: {
311
320
  message: string;
312
321
  closable?: boolean | undefined;
@@ -324,8 +333,6 @@ export declare const actionChangeExportBackground: {
324
333
  height: number;
325
334
  offsetTop: number;
326
335
  offsetLeft: number;
327
- isLibraryOpen: boolean;
328
- isLibraryMenuDocked: boolean;
329
336
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
330
337
  collaborators: Map<string, import("../types").Collaborator>;
331
338
  showStats: boolean;
@@ -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;
@@ -417,6 +427,9 @@ export declare const actionChangeExportEmbedScene: {
417
427
  }>;
418
428
  openMenu: "canvas" | "shape" | null;
419
429
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
430
+ openSidebar: "library" | "customSidebar" | null;
431
+ openDialog: "imageExport" | "help" | null;
432
+ isSidebarDocked: boolean;
420
433
  lastPointerDownWith: import("../element/types").PointerType;
421
434
  selectedElementIds: {
422
435
  [id: string]: boolean;
@@ -425,7 +438,6 @@ export declare const actionChangeExportEmbedScene: {
425
438
  [id: string]: boolean;
426
439
  };
427
440
  shouldCacheIgnoreZoom: boolean;
428
- showHelpDialog: boolean;
429
441
  toast: {
430
442
  message: string;
431
443
  closable?: boolean | undefined;
@@ -443,8 +455,6 @@ export declare const actionChangeExportEmbedScene: {
443
455
  height: number;
444
456
  offsetTop: number;
445
457
  offsetLeft: number;
446
- isLibraryOpen: boolean;
447
- isLibraryMenuDocked: boolean;
448
458
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
449
459
  collaborators: Map<string, import("../types").Collaborator>;
450
460
  showStats: boolean;
@@ -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;
@@ -540,6 +553,9 @@ export declare const actionSaveToActiveFile: {
540
553
  }>;
541
554
  openMenu: "canvas" | "shape" | null;
542
555
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
556
+ openSidebar: "library" | "customSidebar" | null;
557
+ openDialog: "imageExport" | "help" | null;
558
+ isSidebarDocked: boolean;
543
559
  lastPointerDownWith: import("../element/types").PointerType;
544
560
  selectedElementIds: {
545
561
  [id: string]: boolean;
@@ -548,7 +564,6 @@ export declare const actionSaveToActiveFile: {
548
564
  [id: string]: boolean;
549
565
  };
550
566
  shouldCacheIgnoreZoom: boolean;
551
- showHelpDialog: boolean;
552
567
  zenModeEnabled: boolean;
553
568
  theme: string;
554
569
  gridSize: number | null;
@@ -561,8 +576,6 @@ export declare const actionSaveToActiveFile: {
561
576
  height: number;
562
577
  offsetTop: number;
563
578
  offsetLeft: number;
564
- isLibraryOpen: boolean;
565
- isLibraryMenuDocked: boolean;
566
579
  collaborators: Map<string, import("../types").Collaborator>;
567
580
  showStats: boolean;
568
581
  currentChartType: import("../element/types").ChartType;
@@ -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;
@@ -657,6 +673,9 @@ export declare const actionSaveFileToDisk: {
657
673
  }>;
658
674
  openMenu: "canvas" | "shape" | null;
659
675
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
676
+ openSidebar: "library" | "customSidebar" | null;
677
+ openDialog: "imageExport" | "help" | null;
678
+ isSidebarDocked: boolean;
660
679
  lastPointerDownWith: import("../element/types").PointerType;
661
680
  selectedElementIds: {
662
681
  [id: string]: boolean;
@@ -665,7 +684,6 @@ export declare const actionSaveFileToDisk: {
665
684
  [id: string]: boolean;
666
685
  };
667
686
  shouldCacheIgnoreZoom: boolean;
668
- showHelpDialog: boolean;
669
687
  toast: {
670
688
  message: string;
671
689
  closable?: boolean | undefined;
@@ -683,8 +701,6 @@ export declare const actionSaveFileToDisk: {
683
701
  height: number;
684
702
  offsetTop: number;
685
703
  offsetLeft: number;
686
- isLibraryOpen: boolean;
687
- isLibraryMenuDocked: boolean;
688
704
  collaborators: Map<string, import("../types").Collaborator>;
689
705
  showStats: boolean;
690
706
  currentChartType: import("../element/types").ChartType;
@@ -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,11 +795,13 @@ 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;
802
+ openSidebar: "library" | "customSidebar" | null;
803
+ openDialog: "imageExport" | "help" | null;
804
+ isSidebarDocked: boolean;
783
805
  lastPointerDownWith: import("../element/types").PointerType;
784
806
  selectedElementIds: {
785
807
  [id: string]: boolean;
@@ -787,7 +809,6 @@ export declare const actionLoadScene: {
787
809
  previousSelectedElementIds: {
788
810
  [id: string]: boolean;
789
811
  };
790
- showHelpDialog: boolean;
791
812
  toast: {
792
813
  message: string;
793
814
  closable?: boolean | undefined;
@@ -800,8 +821,6 @@ export declare const actionLoadScene: {
800
821
  [groupId: string]: boolean;
801
822
  };
802
823
  editingGroupId: string | null;
803
- isLibraryOpen: boolean;
804
- isLibraryMenuDocked: boolean;
805
824
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
806
825
  collaborators: Map<string, import("../types").Collaborator>;
807
826
  showStats: boolean;
@@ -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;
@@ -884,6 +904,9 @@ export declare const actionLoadScene: {
884
904
  }>;
885
905
  openMenu: "canvas" | "shape" | null;
886
906
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
907
+ openSidebar: "library" | "customSidebar" | null;
908
+ openDialog: "imageExport" | "help" | null;
909
+ isSidebarDocked: boolean;
887
910
  lastPointerDownWith: import("../element/types").PointerType;
888
911
  selectedElementIds: {
889
912
  [id: string]: boolean;
@@ -892,7 +915,6 @@ export declare const actionLoadScene: {
892
915
  [id: string]: boolean;
893
916
  };
894
917
  shouldCacheIgnoreZoom: boolean;
895
- showHelpDialog: boolean;
896
918
  toast: {
897
919
  message: string;
898
920
  closable?: boolean | undefined;
@@ -910,8 +932,6 @@ export declare const actionLoadScene: {
910
932
  height: number;
911
933
  offsetTop: number;
912
934
  offsetLeft: number;
913
- isLibraryOpen: boolean;
914
- isLibraryMenuDocked: boolean;
915
935
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
916
936
  collaborators: Map<string, import("../types").Collaborator>;
917
937
  showStats: boolean;
@@ -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;
@@ -1005,6 +1028,9 @@ export declare const actionExportWithDarkMode: {
1005
1028
  }>;
1006
1029
  openMenu: "canvas" | "shape" | null;
1007
1030
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
1031
+ openSidebar: "library" | "customSidebar" | null;
1032
+ openDialog: "imageExport" | "help" | null;
1033
+ isSidebarDocked: boolean;
1008
1034
  lastPointerDownWith: import("../element/types").PointerType;
1009
1035
  selectedElementIds: {
1010
1036
  [id: string]: boolean;
@@ -1013,7 +1039,6 @@ export declare const actionExportWithDarkMode: {
1013
1039
  [id: string]: boolean;
1014
1040
  };
1015
1041
  shouldCacheIgnoreZoom: boolean;
1016
- showHelpDialog: boolean;
1017
1042
  toast: {
1018
1043
  message: string;
1019
1044
  closable?: boolean | undefined;
@@ -1031,8 +1056,6 @@ export declare const actionExportWithDarkMode: {
1031
1056
  height: number;
1032
1057
  offsetTop: number;
1033
1058
  offsetLeft: number;
1034
- isLibraryOpen: boolean;
1035
- isLibraryMenuDocked: boolean;
1036
1059
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
1037
1060
  collaborators: Map<string, import("../types").Collaborator>;
1038
1061
  showStats: boolean;
@@ -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;
@@ -62,6 +63,9 @@ export declare const actionFinalize: {
62
63
  }>;
63
64
  openMenu: "canvas" | "shape" | null;
64
65
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
66
+ openSidebar: "library" | "customSidebar" | null;
67
+ openDialog: "imageExport" | "help" | null;
68
+ isSidebarDocked: boolean;
65
69
  lastPointerDownWith: import("../element/types").PointerType;
66
70
  selectedElementIds: {
67
71
  [id: string]: boolean;
@@ -70,7 +74,6 @@ export declare const actionFinalize: {
70
74
  [id: string]: boolean;
71
75
  };
72
76
  shouldCacheIgnoreZoom: boolean;
73
- showHelpDialog: boolean;
74
77
  toast: {
75
78
  message: string;
76
79
  closable?: boolean | undefined;
@@ -88,8 +91,6 @@ export declare const actionFinalize: {
88
91
  height: number;
89
92
  offsetTop: number;
90
93
  offsetLeft: number;
91
- isLibraryOpen: boolean;
92
- isLibraryMenuDocked: boolean;
93
94
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
94
95
  collaborators: Map<string, import("../types").Collaborator>;
95
96
  showStats: boolean;
@@ -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;
@@ -176,12 +178,14 @@ export declare const actionFinalize: {
176
178
  }>;
177
179
  openMenu: "canvas" | "shape" | null;
178
180
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
181
+ openSidebar: "library" | "customSidebar" | null;
182
+ openDialog: "imageExport" | "help" | null;
183
+ isSidebarDocked: boolean;
179
184
  lastPointerDownWith: import("../element/types").PointerType;
180
185
  previousSelectedElementIds: {
181
186
  [id: string]: boolean;
182
187
  };
183
188
  shouldCacheIgnoreZoom: boolean;
184
- showHelpDialog: boolean;
185
189
  toast: {
186
190
  message: string;
187
191
  closable?: boolean | undefined;
@@ -199,8 +203,6 @@ export declare const actionFinalize: {
199
203
  height: number;
200
204
  offsetTop: number;
201
205
  offsetLeft: number;
202
- isLibraryOpen: boolean;
203
- isLibraryMenuDocked: boolean;
204
206
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
205
207
  collaborators: Map<string, import("../types").Collaborator>;
206
208
  showStats: boolean;
@@ -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;
@@ -63,6 +64,9 @@ export declare const actionToggleLinearEditor: {
63
64
  }>;
64
65
  openMenu: "canvas" | "shape" | null;
65
66
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
67
+ openSidebar: "library" | "customSidebar" | null;
68
+ openDialog: "imageExport" | "help" | null;
69
+ isSidebarDocked: boolean;
66
70
  lastPointerDownWith: import("../element/types").PointerType;
67
71
  selectedElementIds: {
68
72
  [id: string]: boolean;
@@ -71,7 +75,6 @@ export declare const actionToggleLinearEditor: {
71
75
  [id: string]: boolean;
72
76
  };
73
77
  shouldCacheIgnoreZoom: boolean;
74
- showHelpDialog: boolean;
75
78
  toast: {
76
79
  message: string;
77
80
  closable?: boolean | undefined;
@@ -89,8 +92,6 @@ export declare const actionToggleLinearEditor: {
89
92
  height: number;
90
93
  offsetTop: number;
91
94
  offsetLeft: number;
92
- isLibraryOpen: boolean;
93
- isLibraryMenuDocked: boolean;
94
95
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
95
96
  collaborators: Map<string, import("../types").Collaborator>;
96
97
  showStats: boolean;