@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
@@ -7,6 +7,7 @@ export declare const actionToggleCanvasMenu: {
7
7
  perform: (_: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
8
8
  appState: {
9
9
  openMenu: "canvas" | null;
10
+ showWelcomeScreen: boolean;
10
11
  isLoading: boolean;
11
12
  errorMessage: string | null;
12
13
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -61,6 +62,9 @@ export declare const actionToggleCanvasMenu: {
61
62
  value: import("../types").NormalizedZoomValue;
62
63
  }>;
63
64
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
65
+ openSidebar: "library" | "customSidebar" | null;
66
+ openDialog: "imageExport" | "help" | null;
67
+ isSidebarDocked: boolean;
64
68
  lastPointerDownWith: import("../element/types").PointerType;
65
69
  selectedElementIds: {
66
70
  [id: string]: boolean;
@@ -69,7 +73,6 @@ export declare const actionToggleCanvasMenu: {
69
73
  [id: string]: boolean;
70
74
  };
71
75
  shouldCacheIgnoreZoom: boolean;
72
- showHelpDialog: boolean;
73
76
  toast: {
74
77
  message: string;
75
78
  closable?: boolean | undefined;
@@ -87,8 +90,6 @@ export declare const actionToggleCanvasMenu: {
87
90
  height: number;
88
91
  offsetTop: number;
89
92
  offsetLeft: number;
90
- isLibraryOpen: boolean;
91
- isLibraryMenuDocked: boolean;
92
93
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
93
94
  collaborators: Map<string, import("../types").Collaborator>;
94
95
  showStats: boolean;
@@ -113,7 +114,9 @@ export declare const actionToggleCanvasMenu: {
113
114
  };
114
115
  commitToHistory: false;
115
116
  };
116
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
117
+ PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps & {
118
+ isInHamburgerMenu: boolean;
119
+ }) => JSX.Element;
117
120
  } & {
118
121
  keyTest?: undefined;
119
122
  };
@@ -125,6 +128,7 @@ export declare const actionToggleEditMenu: {
125
128
  perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
126
129
  appState: {
127
130
  openMenu: "shape" | null;
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 actionToggleEditMenu: {
179
183
  value: import("../types").NormalizedZoomValue;
180
184
  }>;
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 actionToggleEditMenu: {
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 actionToggleEditMenu: {
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 actionToggleEditMenu: {
231
235
  };
232
236
  commitToHistory: false;
233
237
  };
234
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
238
+ PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
239
+ isInHamburgerMenu: boolean;
240
+ }) => JSX.Element;
235
241
  } & {
236
242
  keyTest?: undefined;
237
243
  };
@@ -256,7 +262,8 @@ export declare const actionShortcuts: {
256
262
  };
257
263
  perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, { focusContainer }: import("../types").AppClassProperties) => {
258
264
  appState: {
259
- showHelpDialog: boolean;
265
+ openDialog: "help" | null;
266
+ showWelcomeScreen: boolean;
260
267
  isLoading: boolean;
261
268
  errorMessage: string | null;
262
269
  draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
@@ -312,6 +319,8 @@ export declare const actionShortcuts: {
312
319
  }>;
313
320
  openMenu: "canvas" | "shape" | null;
314
321
  openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
322
+ openSidebar: "library" | "customSidebar" | null;
323
+ isSidebarDocked: boolean;
315
324
  lastPointerDownWith: import("../element/types").PointerType;
316
325
  selectedElementIds: {
317
326
  [id: string]: boolean;
@@ -337,8 +346,6 @@ export declare const actionShortcuts: {
337
346
  height: number;
338
347
  offsetTop: number;
339
348
  offsetLeft: number;
340
- isLibraryOpen: boolean;
341
- isLibraryMenuDocked: boolean;
342
349
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
343
350
  collaborators: Map<string, import("../types").Collaborator>;
344
351
  showStats: boolean;
@@ -363,7 +370,9 @@ export declare const actionShortcuts: {
363
370
  };
364
371
  commitToHistory: false;
365
372
  };
366
- PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
373
+ PanelComponent: ({ updateData, isInHamburgerMenu }: import("./types").PanelComponentProps & {
374
+ isInHamburgerMenu: boolean;
375
+ }) => JSX.Element;
367
376
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
368
377
  } & {
369
378
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
@@ -7,7 +7,9 @@ export declare const actionGoToCollaborator: {
7
7
  appState: Readonly<import("../types").AppState>;
8
8
  commitToHistory: false;
9
9
  };
10
- PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps) => JSX.Element;
10
+ PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps & {
11
+ isInHamburgerMenu: boolean;
12
+ }) => JSX.Element;
11
13
  } & {
12
14
  keyTest?: undefined;
13
15
  };