@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.
- package/README.md +68 -14
- package/dist/excalidraw.development.js +1192 -154
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/excalidraw.production.min.js.LICENSE.txt +104 -0
- package/package.json +1 -1
- package/types/actions/actionAddToLibrary.d.ts +12 -9
- package/types/actions/actionAlign.d.ts +18 -6
- package/types/actions/actionBoundText.d.ts +4 -3
- package/types/actions/actionCanvas.d.ts +59 -36
- package/types/actions/actionClipboard.d.ts +20 -15
- package/types/actions/actionDeleteSelected.d.ts +15 -10
- package/types/actions/actionDistribute.d.ts +6 -2
- package/types/actions/actionDuplicateSelection.d.ts +3 -1
- package/types/actions/actionExport.d.ts +62 -37
- package/types/actions/actionFinalize.d.ts +11 -7
- package/types/actions/actionGroup.d.ts +6 -2
- package/types/actions/actionLinearEditor.d.ts +4 -3
- package/types/actions/actionMenu.d.ts +21 -12
- package/types/actions/actionNavigate.d.ts +3 -1
- package/types/actions/actionProperties.d.ts +91 -52
- package/types/actions/actionStyles.d.ts +4 -3
- package/types/actions/actionToggleGridMode.d.ts +4 -3
- package/types/actions/actionToggleLock.d.ts +4 -3
- package/types/actions/actionToggleStats.d.ts +4 -3
- package/types/actions/actionToggleViewMode.d.ts +4 -3
- package/types/actions/actionToggleZenMode.d.ts +4 -3
- package/types/actions/actionZindex.d.ts +12 -4
- package/types/actions/manager.d.ts +1 -1
- package/types/actions/shortcuts.d.ts +1 -1
- package/types/actions/types.d.ts +3 -1
- package/types/appState.d.ts +5 -4
- package/types/bug-issue-template.d.ts +2 -0
- package/types/clients.d.ts +1 -1
- package/types/components/Actions.d.ts +1 -0
- package/types/components/App.d.ts +52 -1
- package/types/components/Avatar.d.ts +1 -1
- package/types/components/CollabButton.d.ts +2 -1
- package/types/components/DialogActionButton.d.ts +10 -0
- package/types/components/EncryptedIcon.d.ts +2 -0
- package/types/components/Footer.d.ts +2 -1
- package/types/components/HelpButton.d.ts +8 -0
- package/types/components/HintViewer.d.ts +3 -2
- package/types/components/ImageExportDialog.d.ts +3 -1
- package/types/components/LayerUI.d.ts +3 -1
- package/types/components/LibraryButton.d.ts +1 -0
- package/types/components/LibraryMenu.d.ts +14 -5
- package/types/components/LibraryMenuBrowseButton.d.ts +7 -0
- package/types/components/LibraryMenuHeaderContent.d.ts +12 -0
- package/types/components/LibraryMenuItems.d.ts +5 -14
- package/types/components/LibraryUnit.d.ts +2 -3
- package/types/components/MenuItem.d.ts +11 -0
- package/types/components/MenuUtils.d.ts +2 -0
- package/types/components/MobileMenu.d.ts +5 -3
- package/types/components/Sidebar/Sidebar.d.ts +73 -0
- package/types/components/Sidebar/SidebarHeader.d.ts +20 -0
- package/types/components/Sidebar/common.d.ts +16 -0
- package/types/components/TopErrorBoundary.d.ts +15 -0
- package/types/components/WelcomeScreen.d.ts +8 -0
- package/types/components/WelcomeScreenDecor.d.ts +6 -0
- package/types/components/hoc/withUpstreamOverride.d.ts +10 -0
- package/types/components/icons.d.ts +83 -124
- package/types/constants.d.ts +1 -0
- package/types/data/restore.d.ts +1 -1
- package/types/data/types.d.ts +16 -1
- package/types/element/Hyperlink.d.ts +7 -4
- package/types/element/index.d.ts +1 -1
- package/types/element/linearElementEditor.d.ts +4 -3
- package/types/element/newElement.d.ts +8 -0
- package/types/element/transformHandles.d.ts +1 -1
- package/types/excalidraw-app/CustomStats.d.ts +9 -0
- package/types/excalidraw-app/app_constants.d.ts +32 -0
- package/types/excalidraw-app/collab/Collab.d.ts +163 -0
- package/types/excalidraw-app/collab/Portal.d.ts +28 -0
- package/types/excalidraw-app/collab/RoomDialog.d.ts +13 -0
- package/types/excalidraw-app/collab/reconciliation.d.ts +10 -0
- package/types/excalidraw-app/components/ExportToExcalidrawPlus.d.ts +9 -0
- package/types/excalidraw-app/components/LanguageList.d.ts +4 -0
- package/types/excalidraw-app/components/icons.d.ts +1 -0
- package/types/excalidraw-app/data/FileManager.d.ts +66 -0
- package/types/excalidraw-app/data/LocalData.d.ts +32 -0
- package/types/excalidraw-app/data/Locker.d.ts +8 -0
- package/types/excalidraw-app/data/firebase.d.ts +25 -0
- package/types/excalidraw-app/data/index.d.ts +186 -0
- package/types/excalidraw-app/data/localStorage.d.ts +112 -0
- package/types/excalidraw-app/data/tabSync.d.ts +9 -0
- package/types/excalidraw-app/index.d.ts +26 -0
- package/types/hooks/useOutsideClick.d.ts +2 -0
- package/types/keys.d.ts +13 -3
- package/types/packages/excalidraw/example/App.d.ts +2 -1
- package/types/packages/excalidraw/example/sidebar/ExampleSidebar.d.ts +5 -0
- package/types/packages/excalidraw/index.d.ts +4 -0
- package/types/packages/utils.d.ts +3 -1
- package/types/renderer/renderScene.d.ts +1 -1
- package/types/scene/scrollbars.d.ts +1 -1
- package/types/scene/types.d.ts +1 -0
- package/types/shapes.d.ts +27 -3
- 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
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
|
10
|
+
PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps & {
|
|
11
|
+
isInHamburgerMenu: boolean;
|
|
12
|
+
}) => JSX.Element;
|
|
11
13
|
} & {
|
|
12
14
|
keyTest?: undefined;
|
|
13
15
|
};
|