@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
@@ -5,7 +5,9 @@ export declare const actionChangeStrokeColor: {
5
5
  name: "changeStrokeColor";
6
6
  trackEvent: false;
7
7
  perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
8
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
8
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
9
+ isInHamburgerMenu: boolean;
10
+ }) => JSX.Element;
9
11
  } & {
10
12
  keyTest?: undefined;
11
13
  };
@@ -13,7 +15,9 @@ export declare const actionChangeBackgroundColor: {
13
15
  name: "changeBackgroundColor";
14
16
  trackEvent: false;
15
17
  perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
16
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
18
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
19
+ isInHamburgerMenu: boolean;
20
+ }) => JSX.Element;
17
21
  } & {
18
22
  keyTest?: undefined;
19
23
  };
@@ -24,6 +28,7 @@ export declare const actionChangeFillStyle: {
24
28
  elements: ExcalidrawElement[];
25
29
  appState: {
26
30
  currentItemFillStyle: any;
31
+ showWelcomeScreen: boolean;
27
32
  isLoading: boolean;
28
33
  errorMessage: string | null;
29
34
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -78,6 +83,9 @@ export declare const actionChangeFillStyle: {
78
83
  }>;
79
84
  openMenu: "canvas" | "shape" | null;
80
85
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
86
+ openSidebar: "library" | "customSidebar" | null;
87
+ openDialog: "imageExport" | "help" | null;
88
+ isSidebarDocked: boolean;
81
89
  lastPointerDownWith: import("../element/types").PointerType;
82
90
  selectedElementIds: {
83
91
  [id: string]: boolean;
@@ -86,7 +94,6 @@ export declare const actionChangeFillStyle: {
86
94
  [id: string]: boolean;
87
95
  };
88
96
  shouldCacheIgnoreZoom: boolean;
89
- showHelpDialog: boolean;
90
97
  toast: {
91
98
  message: string;
92
99
  closable?: boolean | undefined;
@@ -104,8 +111,6 @@ export declare const actionChangeFillStyle: {
104
111
  height: number;
105
112
  offsetTop: number;
106
113
  offsetLeft: number;
107
- isLibraryOpen: boolean;
108
- isLibraryMenuDocked: boolean;
109
114
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
110
115
  collaborators: Map<string, import("../../src/types").Collaborator>;
111
116
  showStats: boolean;
@@ -130,7 +135,9 @@ export declare const actionChangeFillStyle: {
130
135
  };
131
136
  commitToHistory: true;
132
137
  };
133
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
138
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
139
+ isInHamburgerMenu: boolean;
140
+ }) => JSX.Element;
134
141
  } & {
135
142
  keyTest?: undefined;
136
143
  };
@@ -141,6 +148,7 @@ export declare const actionChangeStrokeWidth: {
141
148
  elements: ExcalidrawElement[];
142
149
  appState: {
143
150
  currentItemStrokeWidth: any;
151
+ showWelcomeScreen: boolean;
144
152
  isLoading: boolean;
145
153
  errorMessage: string | null;
146
154
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -195,6 +203,9 @@ export declare const actionChangeStrokeWidth: {
195
203
  }>;
196
204
  openMenu: "canvas" | "shape" | null;
197
205
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
206
+ openSidebar: "library" | "customSidebar" | null;
207
+ openDialog: "imageExport" | "help" | null;
208
+ isSidebarDocked: boolean;
198
209
  lastPointerDownWith: import("../element/types").PointerType;
199
210
  selectedElementIds: {
200
211
  [id: string]: boolean;
@@ -203,7 +214,6 @@ export declare const actionChangeStrokeWidth: {
203
214
  [id: string]: boolean;
204
215
  };
205
216
  shouldCacheIgnoreZoom: boolean;
206
- showHelpDialog: boolean;
207
217
  toast: {
208
218
  message: string;
209
219
  closable?: boolean | undefined;
@@ -221,8 +231,6 @@ export declare const actionChangeStrokeWidth: {
221
231
  height: number;
222
232
  offsetTop: number;
223
233
  offsetLeft: number;
224
- isLibraryOpen: boolean;
225
- isLibraryMenuDocked: boolean;
226
234
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
227
235
  collaborators: Map<string, import("../../src/types").Collaborator>;
228
236
  showStats: boolean;
@@ -247,7 +255,9 @@ export declare const actionChangeStrokeWidth: {
247
255
  };
248
256
  commitToHistory: true;
249
257
  };
250
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
258
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
259
+ isInHamburgerMenu: boolean;
260
+ }) => JSX.Element;
251
261
  } & {
252
262
  keyTest?: undefined;
253
263
  };
@@ -258,6 +268,7 @@ export declare const actionChangeSloppiness: {
258
268
  elements: ExcalidrawElement[];
259
269
  appState: {
260
270
  currentItemRoughness: any;
271
+ showWelcomeScreen: boolean;
261
272
  isLoading: boolean;
262
273
  errorMessage: string | null;
263
274
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -312,6 +323,9 @@ export declare const actionChangeSloppiness: {
312
323
  }>;
313
324
  openMenu: "canvas" | "shape" | null;
314
325
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
326
+ openSidebar: "library" | "customSidebar" | null;
327
+ openDialog: "imageExport" | "help" | null;
328
+ isSidebarDocked: boolean;
315
329
  lastPointerDownWith: import("../element/types").PointerType;
316
330
  selectedElementIds: {
317
331
  [id: string]: boolean;
@@ -320,7 +334,6 @@ export declare const actionChangeSloppiness: {
320
334
  [id: string]: boolean;
321
335
  };
322
336
  shouldCacheIgnoreZoom: boolean;
323
- showHelpDialog: boolean;
324
337
  toast: {
325
338
  message: string;
326
339
  closable?: boolean | undefined;
@@ -338,8 +351,6 @@ export declare const actionChangeSloppiness: {
338
351
  height: number;
339
352
  offsetTop: number;
340
353
  offsetLeft: number;
341
- isLibraryOpen: boolean;
342
- isLibraryMenuDocked: boolean;
343
354
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
344
355
  collaborators: Map<string, import("../../src/types").Collaborator>;
345
356
  showStats: boolean;
@@ -364,7 +375,9 @@ export declare const actionChangeSloppiness: {
364
375
  };
365
376
  commitToHistory: true;
366
377
  };
367
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
378
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
379
+ isInHamburgerMenu: boolean;
380
+ }) => JSX.Element;
368
381
  } & {
369
382
  keyTest?: undefined;
370
383
  };
@@ -375,6 +388,7 @@ export declare const actionChangeStrokeStyle: {
375
388
  elements: ExcalidrawElement[];
376
389
  appState: {
377
390
  currentItemStrokeStyle: any;
391
+ showWelcomeScreen: boolean;
378
392
  isLoading: boolean;
379
393
  errorMessage: string | null;
380
394
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -429,6 +443,9 @@ export declare const actionChangeStrokeStyle: {
429
443
  }>;
430
444
  openMenu: "canvas" | "shape" | null;
431
445
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
446
+ openSidebar: "library" | "customSidebar" | null;
447
+ openDialog: "imageExport" | "help" | null;
448
+ isSidebarDocked: boolean;
432
449
  lastPointerDownWith: import("../element/types").PointerType;
433
450
  selectedElementIds: {
434
451
  [id: string]: boolean;
@@ -437,7 +454,6 @@ export declare const actionChangeStrokeStyle: {
437
454
  [id: string]: boolean;
438
455
  };
439
456
  shouldCacheIgnoreZoom: boolean;
440
- showHelpDialog: boolean;
441
457
  toast: {
442
458
  message: string;
443
459
  closable?: boolean | undefined;
@@ -455,8 +471,6 @@ export declare const actionChangeStrokeStyle: {
455
471
  height: number;
456
472
  offsetTop: number;
457
473
  offsetLeft: number;
458
- isLibraryOpen: boolean;
459
- isLibraryMenuDocked: boolean;
460
474
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
461
475
  collaborators: Map<string, import("../../src/types").Collaborator>;
462
476
  showStats: boolean;
@@ -481,7 +495,9 @@ export declare const actionChangeStrokeStyle: {
481
495
  };
482
496
  commitToHistory: true;
483
497
  };
484
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
498
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
499
+ isInHamburgerMenu: boolean;
500
+ }) => JSX.Element;
485
501
  } & {
486
502
  keyTest?: undefined;
487
503
  };
@@ -492,6 +508,7 @@ export declare const actionChangeOpacity: {
492
508
  elements: ExcalidrawElement[];
493
509
  appState: {
494
510
  currentItemOpacity: any;
511
+ showWelcomeScreen: boolean;
495
512
  isLoading: boolean;
496
513
  errorMessage: string | null;
497
514
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -546,6 +563,9 @@ export declare const actionChangeOpacity: {
546
563
  }>;
547
564
  openMenu: "canvas" | "shape" | null;
548
565
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
566
+ openSidebar: "library" | "customSidebar" | null;
567
+ openDialog: "imageExport" | "help" | null;
568
+ isSidebarDocked: boolean;
549
569
  lastPointerDownWith: import("../element/types").PointerType;
550
570
  selectedElementIds: {
551
571
  [id: string]: boolean;
@@ -554,7 +574,6 @@ export declare const actionChangeOpacity: {
554
574
  [id: string]: boolean;
555
575
  };
556
576
  shouldCacheIgnoreZoom: boolean;
557
- showHelpDialog: boolean;
558
577
  toast: {
559
578
  message: string;
560
579
  closable?: boolean | undefined;
@@ -572,8 +591,6 @@ export declare const actionChangeOpacity: {
572
591
  height: number;
573
592
  offsetTop: number;
574
593
  offsetLeft: number;
575
- isLibraryOpen: boolean;
576
- isLibraryMenuDocked: boolean;
577
594
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
578
595
  collaborators: Map<string, import("../../src/types").Collaborator>;
579
596
  showStats: boolean;
@@ -598,7 +615,9 @@ export declare const actionChangeOpacity: {
598
615
  };
599
616
  commitToHistory: true;
600
617
  };
601
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
618
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
619
+ isInHamburgerMenu: boolean;
620
+ }) => JSX.Element;
602
621
  } & {
603
622
  keyTest?: undefined;
604
623
  };
@@ -609,6 +628,7 @@ export declare const actionChangeFontSize: {
609
628
  elements: ExcalidrawElement[];
610
629
  appState: {
611
630
  currentItemFontSize: number;
631
+ showWelcomeScreen: boolean;
612
632
  isLoading: boolean;
613
633
  errorMessage: string | null;
614
634
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -663,6 +683,9 @@ export declare const actionChangeFontSize: {
663
683
  }>;
664
684
  openMenu: "canvas" | "shape" | null;
665
685
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
686
+ openSidebar: "library" | "customSidebar" | null;
687
+ openDialog: "imageExport" | "help" | null;
688
+ isSidebarDocked: boolean;
666
689
  lastPointerDownWith: import("../element/types").PointerType;
667
690
  selectedElementIds: {
668
691
  [id: string]: boolean;
@@ -671,7 +694,6 @@ export declare const actionChangeFontSize: {
671
694
  [id: string]: boolean;
672
695
  };
673
696
  shouldCacheIgnoreZoom: boolean;
674
- showHelpDialog: boolean;
675
697
  toast: {
676
698
  message: string;
677
699
  closable?: boolean | undefined;
@@ -689,8 +711,6 @@ export declare const actionChangeFontSize: {
689
711
  height: number;
690
712
  offsetTop: number;
691
713
  offsetLeft: number;
692
- isLibraryOpen: boolean;
693
- isLibraryMenuDocked: boolean;
694
714
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
695
715
  collaborators: Map<string, import("../../src/types").Collaborator>;
696
716
  showStats: boolean;
@@ -715,7 +735,9 @@ export declare const actionChangeFontSize: {
715
735
  };
716
736
  commitToHistory: boolean;
717
737
  };
718
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
738
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
739
+ isInHamburgerMenu: boolean;
740
+ }) => JSX.Element;
719
741
  } & {
720
742
  keyTest?: undefined;
721
743
  };
@@ -726,6 +748,7 @@ export declare const actionDecreaseFontSize: {
726
748
  elements: ExcalidrawElement[];
727
749
  appState: {
728
750
  currentItemFontSize: number;
751
+ showWelcomeScreen: boolean;
729
752
  isLoading: boolean;
730
753
  errorMessage: string | null;
731
754
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -780,6 +803,9 @@ export declare const actionDecreaseFontSize: {
780
803
  }>;
781
804
  openMenu: "canvas" | "shape" | null;
782
805
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
806
+ openSidebar: "library" | "customSidebar" | null;
807
+ openDialog: "imageExport" | "help" | null;
808
+ isSidebarDocked: boolean;
783
809
  lastPointerDownWith: import("../element/types").PointerType;
784
810
  selectedElementIds: {
785
811
  [id: string]: boolean;
@@ -788,7 +814,6 @@ export declare const actionDecreaseFontSize: {
788
814
  [id: string]: boolean;
789
815
  };
790
816
  shouldCacheIgnoreZoom: boolean;
791
- showHelpDialog: boolean;
792
817
  toast: {
793
818
  message: string;
794
819
  closable?: boolean | undefined;
@@ -806,8 +831,6 @@ export declare const actionDecreaseFontSize: {
806
831
  height: number;
807
832
  offsetTop: number;
808
833
  offsetLeft: number;
809
- isLibraryOpen: boolean;
810
- isLibraryMenuDocked: boolean;
811
834
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
812
835
  collaborators: Map<string, import("../../src/types").Collaborator>;
813
836
  showStats: boolean;
@@ -843,6 +866,7 @@ export declare const actionIncreaseFontSize: {
843
866
  elements: ExcalidrawElement[];
844
867
  appState: {
845
868
  currentItemFontSize: number;
869
+ showWelcomeScreen: boolean;
846
870
  isLoading: boolean;
847
871
  errorMessage: string | null;
848
872
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -897,6 +921,9 @@ export declare const actionIncreaseFontSize: {
897
921
  }>;
898
922
  openMenu: "canvas" | "shape" | null;
899
923
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
924
+ openSidebar: "library" | "customSidebar" | null;
925
+ openDialog: "imageExport" | "help" | null;
926
+ isSidebarDocked: boolean;
900
927
  lastPointerDownWith: import("../element/types").PointerType;
901
928
  selectedElementIds: {
902
929
  [id: string]: boolean;
@@ -905,7 +932,6 @@ export declare const actionIncreaseFontSize: {
905
932
  [id: string]: boolean;
906
933
  };
907
934
  shouldCacheIgnoreZoom: boolean;
908
- showHelpDialog: boolean;
909
935
  toast: {
910
936
  message: string;
911
937
  closable?: boolean | undefined;
@@ -923,8 +949,6 @@ export declare const actionIncreaseFontSize: {
923
949
  height: number;
924
950
  offsetTop: number;
925
951
  offsetLeft: number;
926
- isLibraryOpen: boolean;
927
- isLibraryMenuDocked: boolean;
928
952
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
929
953
  collaborators: Map<string, import("../../src/types").Collaborator>;
930
954
  showStats: boolean;
@@ -960,6 +984,7 @@ export declare const actionChangeFontFamily: {
960
984
  elements: ExcalidrawElement[];
961
985
  appState: {
962
986
  currentItemFontFamily: any;
987
+ showWelcomeScreen: boolean;
963
988
  isLoading: boolean;
964
989
  errorMessage: string | null;
965
990
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -1014,6 +1039,9 @@ export declare const actionChangeFontFamily: {
1014
1039
  }>;
1015
1040
  openMenu: "canvas" | "shape" | null;
1016
1041
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
1042
+ openSidebar: "library" | "customSidebar" | null;
1043
+ openDialog: "imageExport" | "help" | null;
1044
+ isSidebarDocked: boolean;
1017
1045
  lastPointerDownWith: import("../element/types").PointerType;
1018
1046
  selectedElementIds: {
1019
1047
  [id: string]: boolean;
@@ -1022,7 +1050,6 @@ export declare const actionChangeFontFamily: {
1022
1050
  [id: string]: boolean;
1023
1051
  };
1024
1052
  shouldCacheIgnoreZoom: boolean;
1025
- showHelpDialog: boolean;
1026
1053
  toast: {
1027
1054
  message: string;
1028
1055
  closable?: boolean | undefined;
@@ -1040,8 +1067,6 @@ export declare const actionChangeFontFamily: {
1040
1067
  height: number;
1041
1068
  offsetTop: number;
1042
1069
  offsetLeft: number;
1043
- isLibraryOpen: boolean;
1044
- isLibraryMenuDocked: boolean;
1045
1070
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
1046
1071
  collaborators: Map<string, import("../../src/types").Collaborator>;
1047
1072
  showStats: boolean;
@@ -1066,7 +1091,9 @@ export declare const actionChangeFontFamily: {
1066
1091
  };
1067
1092
  commitToHistory: true;
1068
1093
  };
1069
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1094
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
1095
+ isInHamburgerMenu: boolean;
1096
+ }) => JSX.Element;
1070
1097
  } & {
1071
1098
  keyTest?: undefined;
1072
1099
  };
@@ -1077,6 +1104,7 @@ export declare const actionChangeTextAlign: {
1077
1104
  elements: ExcalidrawElement[];
1078
1105
  appState: {
1079
1106
  currentItemTextAlign: any;
1107
+ showWelcomeScreen: boolean;
1080
1108
  isLoading: boolean;
1081
1109
  errorMessage: string | null;
1082
1110
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -1131,6 +1159,9 @@ export declare const actionChangeTextAlign: {
1131
1159
  }>;
1132
1160
  openMenu: "canvas" | "shape" | null;
1133
1161
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
1162
+ openSidebar: "library" | "customSidebar" | null;
1163
+ openDialog: "imageExport" | "help" | null;
1164
+ isSidebarDocked: boolean;
1134
1165
  lastPointerDownWith: import("../element/types").PointerType;
1135
1166
  selectedElementIds: {
1136
1167
  [id: string]: boolean;
@@ -1139,7 +1170,6 @@ export declare const actionChangeTextAlign: {
1139
1170
  [id: string]: boolean;
1140
1171
  };
1141
1172
  shouldCacheIgnoreZoom: boolean;
1142
- showHelpDialog: boolean;
1143
1173
  toast: {
1144
1174
  message: string;
1145
1175
  closable?: boolean | undefined;
@@ -1157,8 +1187,6 @@ export declare const actionChangeTextAlign: {
1157
1187
  height: number;
1158
1188
  offsetTop: number;
1159
1189
  offsetLeft: number;
1160
- isLibraryOpen: boolean;
1161
- isLibraryMenuDocked: boolean;
1162
1190
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
1163
1191
  collaborators: Map<string, import("../../src/types").Collaborator>;
1164
1192
  showStats: boolean;
@@ -1183,7 +1211,9 @@ export declare const actionChangeTextAlign: {
1183
1211
  };
1184
1212
  commitToHistory: true;
1185
1213
  };
1186
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1214
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
1215
+ isInHamburgerMenu: boolean;
1216
+ }) => JSX.Element;
1187
1217
  } & {
1188
1218
  keyTest?: undefined;
1189
1219
  };
@@ -1195,6 +1225,7 @@ export declare const actionChangeVerticalAlign: {
1195
1225
  perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1196
1226
  elements: ExcalidrawElement[];
1197
1227
  appState: {
1228
+ showWelcomeScreen: boolean;
1198
1229
  isLoading: boolean;
1199
1230
  errorMessage: string | null;
1200
1231
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -1250,6 +1281,9 @@ export declare const actionChangeVerticalAlign: {
1250
1281
  }>;
1251
1282
  openMenu: "canvas" | "shape" | null;
1252
1283
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
1284
+ openSidebar: "library" | "customSidebar" | null;
1285
+ openDialog: "imageExport" | "help" | null;
1286
+ isSidebarDocked: boolean;
1253
1287
  lastPointerDownWith: import("../element/types").PointerType;
1254
1288
  selectedElementIds: {
1255
1289
  [id: string]: boolean;
@@ -1258,7 +1292,6 @@ export declare const actionChangeVerticalAlign: {
1258
1292
  [id: string]: boolean;
1259
1293
  };
1260
1294
  shouldCacheIgnoreZoom: boolean;
1261
- showHelpDialog: boolean;
1262
1295
  toast: {
1263
1296
  message: string;
1264
1297
  closable?: boolean | undefined;
@@ -1276,8 +1309,6 @@ export declare const actionChangeVerticalAlign: {
1276
1309
  height: number;
1277
1310
  offsetTop: number;
1278
1311
  offsetLeft: number;
1279
- isLibraryOpen: boolean;
1280
- isLibraryMenuDocked: boolean;
1281
1312
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
1282
1313
  collaborators: Map<string, import("../../src/types").Collaborator>;
1283
1314
  showStats: boolean;
@@ -1302,7 +1333,9 @@ export declare const actionChangeVerticalAlign: {
1302
1333
  };
1303
1334
  commitToHistory: true;
1304
1335
  };
1305
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1336
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
1337
+ isInHamburgerMenu: boolean;
1338
+ }) => JSX.Element;
1306
1339
  } & {
1307
1340
  keyTest?: undefined;
1308
1341
  };
@@ -1314,6 +1347,7 @@ export declare const actionChangeSharpness: {
1314
1347
  appState: {
1315
1348
  currentItemStrokeSharpness: any;
1316
1349
  currentItemLinearStrokeSharpness: any;
1350
+ showWelcomeScreen: boolean;
1317
1351
  isLoading: boolean;
1318
1352
  errorMessage: string | null;
1319
1353
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -1367,6 +1401,9 @@ export declare const actionChangeSharpness: {
1367
1401
  }>;
1368
1402
  openMenu: "canvas" | "shape" | null;
1369
1403
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
1404
+ openSidebar: "library" | "customSidebar" | null;
1405
+ openDialog: "imageExport" | "help" | null;
1406
+ isSidebarDocked: boolean;
1370
1407
  lastPointerDownWith: import("../element/types").PointerType;
1371
1408
  selectedElementIds: {
1372
1409
  [id: string]: boolean;
@@ -1375,7 +1412,6 @@ export declare const actionChangeSharpness: {
1375
1412
  [id: string]: boolean;
1376
1413
  };
1377
1414
  shouldCacheIgnoreZoom: boolean;
1378
- showHelpDialog: boolean;
1379
1415
  toast: {
1380
1416
  message: string;
1381
1417
  closable?: boolean | undefined;
@@ -1393,8 +1429,6 @@ export declare const actionChangeSharpness: {
1393
1429
  height: number;
1394
1430
  offsetTop: number;
1395
1431
  offsetLeft: number;
1396
- isLibraryOpen: boolean;
1397
- isLibraryMenuDocked: boolean;
1398
1432
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
1399
1433
  collaborators: Map<string, import("../../src/types").Collaborator>;
1400
1434
  showStats: boolean;
@@ -1419,7 +1453,9 @@ export declare const actionChangeSharpness: {
1419
1453
  };
1420
1454
  commitToHistory: true;
1421
1455
  };
1422
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1456
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
1457
+ isInHamburgerMenu: boolean;
1458
+ }) => JSX.Element;
1423
1459
  } & {
1424
1460
  keyTest?: undefined;
1425
1461
  };
@@ -1432,6 +1468,7 @@ export declare const actionChangeArrowhead: {
1432
1468
  }) => {
1433
1469
  elements: ExcalidrawElement[];
1434
1470
  appState: {
1471
+ showWelcomeScreen: boolean;
1435
1472
  isLoading: boolean;
1436
1473
  errorMessage: string | null;
1437
1474
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -1487,6 +1524,9 @@ export declare const actionChangeArrowhead: {
1487
1524
  }>;
1488
1525
  openMenu: "canvas" | "shape" | null;
1489
1526
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
1527
+ openSidebar: "library" | "customSidebar" | null;
1528
+ openDialog: "imageExport" | "help" | null;
1529
+ isSidebarDocked: boolean;
1490
1530
  lastPointerDownWith: import("../element/types").PointerType;
1491
1531
  selectedElementIds: {
1492
1532
  [id: string]: boolean;
@@ -1495,7 +1535,6 @@ export declare const actionChangeArrowhead: {
1495
1535
  [id: string]: boolean;
1496
1536
  };
1497
1537
  shouldCacheIgnoreZoom: boolean;
1498
- showHelpDialog: boolean;
1499
1538
  toast: {
1500
1539
  message: string;
1501
1540
  closable?: boolean | undefined;
@@ -1513,8 +1552,6 @@ export declare const actionChangeArrowhead: {
1513
1552
  height: number;
1514
1553
  offsetTop: number;
1515
1554
  offsetLeft: number;
1516
- isLibraryOpen: boolean;
1517
- isLibraryMenuDocked: boolean;
1518
1555
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
1519
1556
  collaborators: Map<string, import("../../src/types").Collaborator>;
1520
1557
  showStats: boolean;
@@ -1539,7 +1576,9 @@ export declare const actionChangeArrowhead: {
1539
1576
  };
1540
1577
  commitToHistory: true;
1541
1578
  };
1542
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
1579
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
1580
+ isInHamburgerMenu: boolean;
1581
+ }) => JSX.Element;
1543
1582
  } & {
1544
1583
  keyTest?: undefined;
1545
1584
  };
@@ -10,6 +10,7 @@ export declare const actionCopyStyles: {
10
10
  toast: {
11
11
  message: string;
12
12
  };
13
+ showWelcomeScreen: boolean;
13
14
  isLoading: boolean;
14
15
  errorMessage: string | null;
15
16
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -65,6 +66,9 @@ export declare const actionCopyStyles: {
65
66
  }>;
66
67
  openMenu: "canvas" | "shape" | null;
67
68
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
69
+ openSidebar: "library" | "customSidebar" | null;
70
+ openDialog: "imageExport" | "help" | null;
71
+ isSidebarDocked: boolean;
68
72
  lastPointerDownWith: import("../element/types").PointerType;
69
73
  selectedElementIds: {
70
74
  [id: string]: boolean;
@@ -73,7 +77,6 @@ export declare const actionCopyStyles: {
73
77
  [id: string]: boolean;
74
78
  };
75
79
  shouldCacheIgnoreZoom: boolean;
76
- showHelpDialog: boolean;
77
80
  zenModeEnabled: boolean;
78
81
  theme: string;
79
82
  gridSize: number | null;
@@ -86,8 +89,6 @@ export declare const actionCopyStyles: {
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;
@@ -9,6 +9,7 @@ export declare const actionToggleGridMode: {
9
9
  perform(elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<AppState>): {
10
10
  appState: {
11
11
  gridSize: number | null;
12
+ showWelcomeScreen: boolean;
12
13
  isLoading: boolean;
13
14
  errorMessage: string | null;
14
15
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -64,6 +65,9 @@ export declare const actionToggleGridMode: {
64
65
  }>;
65
66
  openMenu: "canvas" | "shape" | null;
66
67
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
68
+ openSidebar: "library" | "customSidebar" | null;
69
+ openDialog: "imageExport" | "help" | null;
70
+ isSidebarDocked: boolean;
67
71
  lastPointerDownWith: import("../element/types").PointerType;
68
72
  selectedElementIds: {
69
73
  [id: string]: boolean;
@@ -72,7 +76,6 @@ export declare const actionToggleGridMode: {
72
76
  [id: string]: boolean;
73
77
  };
74
78
  shouldCacheIgnoreZoom: boolean;
75
- showHelpDialog: boolean;
76
79
  toast: {
77
80
  message: string;
78
81
  closable?: boolean | undefined;
@@ -89,8 +92,6 @@ export declare const actionToggleGridMode: {
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;
@@ -9,6 +9,7 @@ export declare const actionToggleLock: {
9
9
  elements: ExcalidrawElement[];
10
10
  appState: {
11
11
  selectedLinearElement: import("../element/linearElementEditor").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,9 @@ export declare const actionToggleLock: {
64
65
  }>;
65
66
  openMenu: "canvas" | "shape" | null;
66
67
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
68
+ openSidebar: "library" | "customSidebar" | null;
69
+ openDialog: "imageExport" | "help" | null;
70
+ isSidebarDocked: boolean;
67
71
  lastPointerDownWith: import("../element/types").PointerType;
68
72
  selectedElementIds: {
69
73
  [id: string]: boolean;
@@ -72,7 +76,6 @@ export declare const actionToggleLock: {
72
76
  [id: string]: boolean;
73
77
  };
74
78
  shouldCacheIgnoreZoom: boolean;
75
- showHelpDialog: boolean;
76
79
  toast: {
77
80
  message: string;
78
81
  closable?: boolean | undefined;
@@ -90,8 +93,6 @@ export declare const actionToggleLock: {
90
93
  height: number;
91
94
  offsetTop: number;
92
95
  offsetLeft: number;
93
- isLibraryOpen: boolean;
94
- isLibraryMenuDocked: boolean;
95
96
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
96
97
  collaborators: Map<string, import("../types").Collaborator>;
97
98
  showStats: boolean;