@dwelle/excalidraw 0.4.0-cfd6fb7 → 0.4.0-e7ba198
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/CHANGELOG.md +100 -756
- package/README.md +85 -25
- package/dist/excalidraw-assets/Assistant-Bold.woff2 +0 -0
- package/dist/excalidraw-assets/Assistant-Medium.woff2 +0 -0
- package/dist/excalidraw-assets/Assistant-Regular.woff2 +0 -0
- package/dist/excalidraw-assets/Assistant-SemiBold.woff2 +0 -0
- package/dist/excalidraw-assets/vendor-2002fe1b8862917b36c1.js +2 -0
- package/dist/excalidraw-assets/{vendor-52b1f3361986b6c6a4fe.js.LICENSE.txt → vendor-2002fe1b8862917b36c1.js.LICENSE.txt} +0 -0
- package/dist/excalidraw-assets-dev/Assistant-Bold.woff2 +0 -0
- package/dist/excalidraw-assets-dev/Assistant-Medium.woff2 +0 -0
- package/dist/excalidraw-assets-dev/Assistant-Regular.woff2 +0 -0
- package/dist/excalidraw-assets-dev/Assistant-SemiBold.woff2 +0 -0
- package/dist/excalidraw-assets-dev/{vendor-c0592035c3911af79359.js → vendor-e6df8519da951026ff69.js} +1 -1
- package/dist/excalidraw.development.js +441 -203
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/excalidraw.production.min.js.LICENSE.txt +1 -8
- package/package.json +1 -1
- package/types/actions/actionAddToLibrary.d.ts +15 -12
- package/types/actions/actionAlign.d.ts +18 -6
- package/types/actions/actionBoundText.d.ts +5 -4
- package/types/actions/actionCanvas.d.ts +62 -40
- package/types/actions/actionClipboard.d.ts +26 -21
- package/types/actions/actionDeleteSelected.d.ts +19 -14
- package/types/actions/actionDistribute.d.ts +6 -2
- package/types/actions/actionDuplicateSelection.d.ts +3 -1
- package/types/actions/actionExport.d.ts +71 -46
- package/types/actions/actionFinalize.d.ts +13 -9
- package/types/actions/actionGroup.d.ts +6 -2
- package/types/actions/actionLinearEditor.d.ts +115 -0
- package/types/actions/actionMenu.d.ts +24 -15
- package/types/actions/actionNavigate.d.ts +3 -1
- package/types/actions/actionProperties.d.ts +104 -65
- package/types/actions/actionStyles.d.ts +5 -4
- package/types/actions/actionToggleGridMode.d.ts +5 -4
- package/types/actions/actionToggleLock.d.ts +5 -4
- package/types/actions/actionToggleStats.d.ts +5 -4
- package/types/actions/actionToggleViewMode.d.ts +5 -4
- package/types/actions/actionToggleZenMode.d.ts +5 -4
- package/types/actions/actionZindex.d.ts +12 -4
- package/types/actions/index.d.ts +1 -0
- package/types/actions/manager.d.ts +1 -1
- package/types/actions/shortcuts.d.ts +1 -1
- package/types/actions/types.d.ts +4 -2
- package/types/appState.d.ts +6 -5
- package/types/clients.d.ts +1 -1
- package/types/components/Actions.d.ts +13 -0
- package/types/components/App.d.ts +52 -1
- package/types/components/Avatar.d.ts +1 -1
- package/types/components/CollabButton.d.ts +2 -3
- package/types/components/DialogActionButton.d.ts +10 -0
- package/types/components/Footer.d.ts +10 -0
- package/types/components/HelpButton.d.ts +8 -0
- package/types/components/HintViewer.d.ts +3 -2
- package/types/components/HomeButton.d.ts +5 -0
- package/types/components/ImageExportDialog.d.ts +3 -1
- package/types/components/InitializeApp.d.ts +2 -0
- package/types/components/JSONExportDialog.d.ts +2 -2
- package/types/components/LayerUI.d.ts +6 -4
- 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/LoadingMessage.d.ts +2 -0
- package/types/components/MenuItem.d.ts +11 -0
- package/types/components/MenuUtils.d.ts +1 -0
- package/types/components/MobileMenu.d.ts +10 -9
- 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/Stats.d.ts +1 -1
- package/types/components/UserList.d.ts +0 -1
- package/types/components/WelcomeScreen.d.ts +10 -0
- package/types/components/WelcomeScreenDecor.d.ts +6 -0
- package/types/components/hoc/withUpstreamOverride.d.ts +10 -0
- package/types/components/icons.d.ts +81 -122
- package/types/constants.d.ts +15 -7
- package/types/data/blob.d.ts +1 -1
- package/types/data/restore.d.ts +1 -1
- package/types/data/types.d.ts +16 -1
- package/types/element/Hyperlink.d.ts +8 -5
- package/types/element/image.d.ts +1 -1
- package/types/element/index.d.ts +1 -1
- package/types/element/linearElementEditor.d.ts +24 -11
- package/types/element/newElement.d.ts +14 -1
- package/types/element/textElement.d.ts +6 -2
- package/types/element/transformHandles.d.ts +1 -1
- package/types/element/types.d.ts +2 -2
- package/types/hooks/useOutsideClick.d.ts +2 -0
- package/types/keys.d.ts +13 -3
- package/types/math.d.ts +8 -1
- package/types/packages/excalidraw/dist/excalidraw-assets/{vendor-52b1f3361986b6c6a4fe.d.ts → vendor-2002fe1b8862917b36c1.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/{vendor-c0592035c3911af79359.d.ts → vendor-e6df8519da951026ff69.d.ts} +0 -0
- package/types/packages/excalidraw/example/App.d.ts +2 -1
- package/types/packages/excalidraw/example/sidebar/{Sidebar.d.ts → ExampleSidebar.d.ts} +1 -1
- package/types/packages/excalidraw/index.d.ts +2 -1
- package/types/packages/utils.d.ts +4 -1
- package/types/renderer/renderScene.d.ts +1 -1
- package/types/scene/types.d.ts +1 -0
- package/types/shapes.d.ts +27 -3
- package/types/types.d.ts +32 -14
- package/dist/excalidraw-assets/vendor-52b1f3361986b6c6a4fe.js +0 -2
- package/types/components/BackgroundPickerAndDarkModeToggle.d.ts +0 -9
- package/types/components/Card.d.ts +0 -7
- package/types/components/HelpIcon.d.ts +0 -8
- package/types/components/SidebarLockButton.d.ts +0 -8
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @license
|
|
3
|
-
* Lodash <https://lodash.com/>
|
|
4
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
5
|
-
* Released under MIT license <https://lodash.com/license>
|
|
6
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
7
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
8
|
-
*/
|
|
1
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
9
2
|
|
|
10
3
|
/**
|
|
11
4
|
* @license React
|
package/package.json
CHANGED
|
@@ -9,6 +9,7 @@ export declare const actionAddToLibrary: {
|
|
|
9
9
|
toast: {
|
|
10
10
|
message: string;
|
|
11
11
|
};
|
|
12
|
+
showWelcomeScreen: boolean;
|
|
12
13
|
isLoading: boolean;
|
|
13
14
|
errorMessage: string | null;
|
|
14
15
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -46,7 +47,7 @@ export declare const actionAddToLibrary: {
|
|
|
46
47
|
currentItemOpacity: number;
|
|
47
48
|
currentItemFontFamily: number;
|
|
48
49
|
currentItemFontSize: number;
|
|
49
|
-
currentItemTextAlign:
|
|
50
|
+
currentItemTextAlign: string;
|
|
50
51
|
currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
|
|
51
52
|
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
52
53
|
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
@@ -64,6 +65,9 @@ export declare const actionAddToLibrary: {
|
|
|
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 actionAddToLibrary: {
|
|
|
72
76
|
[id: string]: boolean;
|
|
73
77
|
};
|
|
74
78
|
shouldCacheIgnoreZoom: boolean;
|
|
75
|
-
showHelpDialog: boolean;
|
|
76
79
|
zenModeEnabled: boolean;
|
|
77
80
|
theme: string;
|
|
78
81
|
gridSize: number | null;
|
|
@@ -85,8 +88,6 @@ export declare const actionAddToLibrary: {
|
|
|
85
88
|
height: number;
|
|
86
89
|
offsetTop: number;
|
|
87
90
|
offsetLeft: number;
|
|
88
|
-
isLibraryOpen: boolean;
|
|
89
|
-
isLibraryMenuDocked: boolean;
|
|
90
91
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
91
92
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
92
93
|
showStats: boolean;
|
|
@@ -106,6 +107,7 @@ export declare const actionAddToLibrary: {
|
|
|
106
107
|
commitToHistory: false;
|
|
107
108
|
appState: {
|
|
108
109
|
errorMessage: any;
|
|
110
|
+
showWelcomeScreen: boolean;
|
|
109
111
|
isLoading: boolean;
|
|
110
112
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
111
113
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -142,7 +144,7 @@ export declare const actionAddToLibrary: {
|
|
|
142
144
|
currentItemOpacity: number;
|
|
143
145
|
currentItemFontFamily: number;
|
|
144
146
|
currentItemFontSize: number;
|
|
145
|
-
currentItemTextAlign:
|
|
147
|
+
currentItemTextAlign: string;
|
|
146
148
|
currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
|
|
147
149
|
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
148
150
|
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
@@ -160,6 +162,9 @@ export declare const actionAddToLibrary: {
|
|
|
160
162
|
}>;
|
|
161
163
|
openMenu: "canvas" | "shape" | null;
|
|
162
164
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
165
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
166
|
+
openDialog: "imageExport" | "help" | null;
|
|
167
|
+
isSidebarDocked: boolean;
|
|
163
168
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
164
169
|
selectedElementIds: {
|
|
165
170
|
[id: string]: boolean;
|
|
@@ -168,7 +173,6 @@ export declare const actionAddToLibrary: {
|
|
|
168
173
|
[id: string]: boolean;
|
|
169
174
|
};
|
|
170
175
|
shouldCacheIgnoreZoom: boolean;
|
|
171
|
-
showHelpDialog: boolean;
|
|
172
176
|
toast: {
|
|
173
177
|
message: string;
|
|
174
178
|
closable?: boolean | undefined;
|
|
@@ -186,8 +190,6 @@ export declare const actionAddToLibrary: {
|
|
|
186
190
|
height: number;
|
|
187
191
|
offsetTop: number;
|
|
188
192
|
offsetLeft: number;
|
|
189
|
-
isLibraryOpen: boolean;
|
|
190
|
-
isLibraryMenuDocked: boolean;
|
|
191
193
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
192
194
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
193
195
|
showStats: boolean;
|
|
@@ -207,6 +209,7 @@ export declare const actionAddToLibrary: {
|
|
|
207
209
|
commitToHistory: false;
|
|
208
210
|
appState: {
|
|
209
211
|
errorMessage: string;
|
|
212
|
+
showWelcomeScreen: boolean;
|
|
210
213
|
isLoading: boolean;
|
|
211
214
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
212
215
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -243,7 +246,7 @@ export declare const actionAddToLibrary: {
|
|
|
243
246
|
currentItemOpacity: number;
|
|
244
247
|
currentItemFontFamily: number;
|
|
245
248
|
currentItemFontSize: number;
|
|
246
|
-
currentItemTextAlign:
|
|
249
|
+
currentItemTextAlign: string;
|
|
247
250
|
currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
|
|
248
251
|
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
249
252
|
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
@@ -261,6 +264,9 @@ export declare const actionAddToLibrary: {
|
|
|
261
264
|
}>;
|
|
262
265
|
openMenu: "canvas" | "shape" | null;
|
|
263
266
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
267
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
268
|
+
openDialog: "imageExport" | "help" | null;
|
|
269
|
+
isSidebarDocked: boolean;
|
|
264
270
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
265
271
|
selectedElementIds: {
|
|
266
272
|
[id: string]: boolean;
|
|
@@ -269,7 +275,6 @@ export declare const actionAddToLibrary: {
|
|
|
269
275
|
[id: string]: boolean;
|
|
270
276
|
};
|
|
271
277
|
shouldCacheIgnoreZoom: boolean;
|
|
272
|
-
showHelpDialog: boolean;
|
|
273
278
|
toast: {
|
|
274
279
|
message: string;
|
|
275
280
|
closable?: boolean | undefined;
|
|
@@ -287,8 +292,6 @@ export declare const actionAddToLibrary: {
|
|
|
287
292
|
height: number;
|
|
288
293
|
offsetTop: number;
|
|
289
294
|
offsetLeft: number;
|
|
290
|
-
isLibraryOpen: boolean;
|
|
291
|
-
isLibraryMenuDocked: boolean;
|
|
292
295
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
293
296
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
294
297
|
showStats: boolean;
|
|
@@ -12,7 +12,9 @@ export declare const actionAlignTop: {
|
|
|
12
12
|
commitToHistory: true;
|
|
13
13
|
};
|
|
14
14
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
15
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
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 actionAlignBottom: {
|
|
|
27
29
|
commitToHistory: true;
|
|
28
30
|
};
|
|
29
31
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
30
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
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
|
};
|
|
@@ -42,7 +46,9 @@ export declare const actionAlignLeft: {
|
|
|
42
46
|
commitToHistory: true;
|
|
43
47
|
};
|
|
44
48
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
45
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
49
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
|
|
50
|
+
isInHamburgerMenu: boolean;
|
|
51
|
+
}) => JSX.Element;
|
|
46
52
|
} & {
|
|
47
53
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
48
54
|
};
|
|
@@ -57,7 +63,9 @@ export declare const actionAlignRight: {
|
|
|
57
63
|
commitToHistory: true;
|
|
58
64
|
};
|
|
59
65
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
60
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
66
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
|
|
67
|
+
isInHamburgerMenu: boolean;
|
|
68
|
+
}) => JSX.Element;
|
|
61
69
|
} & {
|
|
62
70
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
63
71
|
};
|
|
@@ -71,7 +79,9 @@ export declare const actionAlignVerticallyCentered: {
|
|
|
71
79
|
elements: ExcalidrawElement[];
|
|
72
80
|
commitToHistory: true;
|
|
73
81
|
};
|
|
74
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
82
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
|
|
83
|
+
isInHamburgerMenu: boolean;
|
|
84
|
+
}) => JSX.Element;
|
|
75
85
|
} & {
|
|
76
86
|
keyTest?: undefined;
|
|
77
87
|
};
|
|
@@ -85,7 +95,9 @@ export declare const actionAlignHorizontallyCentered: {
|
|
|
85
95
|
elements: ExcalidrawElement[];
|
|
86
96
|
commitToHistory: true;
|
|
87
97
|
};
|
|
88
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps
|
|
98
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps & {
|
|
99
|
+
isInHamburgerMenu: boolean;
|
|
100
|
+
}) => JSX.Element;
|
|
89
101
|
} & {
|
|
90
102
|
keyTest?: undefined;
|
|
91
103
|
};
|
|
@@ -26,6 +26,7 @@ export declare const actionBindText: {
|
|
|
26
26
|
selectedElementIds: {
|
|
27
27
|
[x: string]: true;
|
|
28
28
|
};
|
|
29
|
+
showWelcomeScreen: boolean;
|
|
29
30
|
isLoading: boolean;
|
|
30
31
|
errorMessage: string | null;
|
|
31
32
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -63,7 +64,7 @@ export declare const actionBindText: {
|
|
|
63
64
|
currentItemOpacity: number;
|
|
64
65
|
currentItemFontFamily: number;
|
|
65
66
|
currentItemFontSize: number;
|
|
66
|
-
currentItemTextAlign:
|
|
67
|
+
currentItemTextAlign: string;
|
|
67
68
|
currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
|
|
68
69
|
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
69
70
|
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
@@ -81,12 +82,14 @@ export declare const actionBindText: {
|
|
|
81
82
|
}>;
|
|
82
83
|
openMenu: "canvas" | "shape" | null;
|
|
83
84
|
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
85
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
86
|
+
openDialog: "imageExport" | "help" | null;
|
|
87
|
+
isSidebarDocked: boolean;
|
|
84
88
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
85
89
|
previousSelectedElementIds: {
|
|
86
90
|
[id: string]: boolean;
|
|
87
91
|
};
|
|
88
92
|
shouldCacheIgnoreZoom: boolean;
|
|
89
|
-
showHelpDialog: boolean;
|
|
90
93
|
toast: {
|
|
91
94
|
message: string;
|
|
92
95
|
closable?: boolean | undefined;
|
|
@@ -104,8 +107,6 @@ export declare const actionBindText: {
|
|
|
104
107
|
height: number;
|
|
105
108
|
offsetTop: number;
|
|
106
109
|
offsetLeft: number;
|
|
107
|
-
isLibraryOpen: boolean;
|
|
108
|
-
isLibraryMenuDocked: boolean;
|
|
109
110
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
110
111
|
collaborators: Map<string, import("../types").Collaborator>;
|
|
111
112
|
showStats: boolean;
|