@zsviczian/excalidraw 0.17.1-obsidian-23 → 0.17.1-obsidian-25

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 (35) hide show
  1. package/dist/excalidraw.development.js +21 -21
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/package.json +1 -1
  4. package/types/excalidraw/actions/actionAddToLibrary.d.ts +3 -3
  5. package/types/excalidraw/actions/actionAlign.d.ts +6 -6
  6. package/types/excalidraw/actions/actionBoundText.d.ts +3 -3
  7. package/types/excalidraw/actions/actionCanvas.d.ts +14 -14
  8. package/types/excalidraw/actions/actionClipboard.d.ts +12 -12
  9. package/types/excalidraw/actions/actionDeleteSelected.d.ts +3 -3
  10. package/types/excalidraw/actions/actionDistribute.d.ts +2 -2
  11. package/types/excalidraw/actions/actionDuplicateSelection.d.ts +1 -1
  12. package/types/excalidraw/actions/actionElementLock.d.ts +2 -2
  13. package/types/excalidraw/actions/actionExport.d.ts +11 -11
  14. package/types/excalidraw/actions/actionFinalize.d.ts +2 -2
  15. package/types/excalidraw/actions/actionFlip.d.ts +2 -2
  16. package/types/excalidraw/actions/actionFrame.d.ts +378 -4
  17. package/types/excalidraw/actions/actionGroup.d.ts +378 -2
  18. package/types/excalidraw/actions/actionLinearEditor.d.ts +1 -1
  19. package/types/excalidraw/actions/actionLink.d.ts +1 -1
  20. package/types/excalidraw/actions/actionMenu.d.ts +3 -3
  21. package/types/excalidraw/actions/actionNavigate.d.ts +2 -2
  22. package/types/excalidraw/actions/actionProperties.d.ts +13 -13
  23. package/types/excalidraw/actions/actionSelectAll.d.ts +1 -1
  24. package/types/excalidraw/actions/actionStyles.d.ts +5 -2
  25. package/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
  26. package/types/excalidraw/actions/actionToggleGridMode.d.ts +1 -1
  27. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +1 -1
  28. package/types/excalidraw/actions/actionToggleStats.d.ts +1 -1
  29. package/types/excalidraw/actions/actionToggleViewMode.d.ts +1 -1
  30. package/types/excalidraw/actions/actionToggleZenMode.d.ts +1 -1
  31. package/types/excalidraw/actions/actionZindex.d.ts +4 -4
  32. package/types/excalidraw/components/App.d.ts +2 -1
  33. package/types/excalidraw/element/embeddable.d.ts +1 -1
  34. package/types/excalidraw/element/newElement.d.ts +2 -0
  35. package/types/excalidraw/store.d.ts +32 -2
@@ -7,9 +7,195 @@ export declare const actionSelectAllElementsInFrame: {
7
7
  category: "canvas";
8
8
  };
9
9
  perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
10
+ elements: readonly import("../element/types").OrderedExcalidrawElement[];
11
+ appState: {
12
+ selectedElementIds: Record<string, true>;
13
+ contextMenu: {
14
+ items: import("../components/ContextMenu").ContextMenuItems;
15
+ top: number;
16
+ left: number;
17
+ } | null;
18
+ showWelcomeScreen: boolean;
19
+ isLoading: boolean;
20
+ errorMessage: import("react").ReactNode;
21
+ activeEmbeddable: {
22
+ element: import("../element/types").NonDeletedExcalidrawElement;
23
+ state: "active" | "hover";
24
+ } | null;
25
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
26
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
27
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
28
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
29
+ isBindingEnabled: boolean;
30
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
31
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
32
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
33
+ frameRendering: {
34
+ enabled: boolean;
35
+ name: boolean;
36
+ outline: boolean;
37
+ clip: boolean;
38
+ };
39
+ editingFrame: string | null;
40
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
41
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
42
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
43
+ activeTool: {
44
+ lastActiveTool: import("../types").ActiveTool | null;
45
+ locked: boolean;
46
+ } & import("../types").ActiveTool;
47
+ penMode: boolean;
48
+ penDetected: boolean;
49
+ exportBackground: boolean;
50
+ exportEmbedScene: boolean;
51
+ exportWithDarkMode: boolean;
52
+ exportScale: number;
53
+ currentItemStrokeColor: string;
54
+ currentItemBackgroundColor: string;
55
+ currentItemFillStyle: import("../element/types").FillStyle;
56
+ currentItemStrokeWidth: number;
57
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
58
+ currentItemRoughness: number;
59
+ currentItemOpacity: number;
60
+ currentItemFontFamily: number;
61
+ currentItemFontSize: number;
62
+ currentItemTextAlign: string;
63
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
64
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
65
+ currentItemRoundness: import("../element/types").StrokeRoundness;
66
+ viewBackgroundColor: string;
67
+ scrollX: number;
68
+ scrollY: number;
69
+ cursorButton: "up" | "down";
70
+ scrolledOutside: boolean;
71
+ name: string | null;
72
+ isResizing: boolean;
73
+ isRotating: boolean;
74
+ zoom: Readonly<{
75
+ value: import("../types").NormalizedZoomValue;
76
+ }>;
77
+ openMenu: "canvas" | "shape" | null;
78
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
79
+ openSidebar: {
80
+ name: string;
81
+ tab?: string | undefined;
82
+ } | null;
83
+ openDialog: {
84
+ name: "imageExport" | "help" | "jsonExport";
85
+ } | {
86
+ name: "settings";
87
+ source: "settings" | "tool" | "generation";
88
+ tab: "text-to-diagram" | "diagram-to-code";
89
+ } | {
90
+ name: "ttd";
91
+ tab: "mermaid" | "text-to-diagram";
92
+ } | {
93
+ name: "commandPalette";
94
+ } | null;
95
+ defaultSidebarDockedPreference: boolean;
96
+ lastPointerDownWith: import("../element/types").PointerType;
97
+ previousSelectedElementIds: {
98
+ [id: string]: true;
99
+ };
100
+ selectedElementsAreBeingDragged: boolean;
101
+ shouldCacheIgnoreZoom: boolean;
102
+ toast: {
103
+ message: string;
104
+ closable?: boolean | undefined;
105
+ duration?: number | undefined;
106
+ } | null;
107
+ zenModeEnabled: boolean;
108
+ theme: import("../element/types").Theme;
109
+ gridSize: number | null;
110
+ previousGridSize: number | null;
111
+ viewModeEnabled: boolean;
112
+ selectedGroupIds: {
113
+ [groupId: string]: boolean;
114
+ };
115
+ editingGroupId: string | null;
116
+ width: number;
117
+ height: number;
118
+ offsetTop: number;
119
+ offsetLeft: number;
120
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
121
+ collaborators: Map<import("../types").SocketId, Readonly<{
122
+ pointer?: import("../types").CollaboratorPointer | undefined;
123
+ button?: "up" | "down" | undefined;
124
+ selectedElementIds?: Readonly<{
125
+ [id: string]: true;
126
+ }> | undefined;
127
+ username?: string | null | undefined;
128
+ userState?: import("../types").UserIdleState | undefined;
129
+ color?: {
130
+ background: string;
131
+ stroke: string;
132
+ } | undefined;
133
+ avatarUrl?: string | undefined;
134
+ id?: string | undefined;
135
+ socketId?: import("../types").SocketId | undefined;
136
+ isCurrentUser?: boolean | undefined;
137
+ isInCall?: boolean | undefined;
138
+ isSpeaking?: boolean | undefined;
139
+ isMuted?: boolean | undefined;
140
+ }>>;
141
+ showStats: boolean;
142
+ currentChartType: import("../element/types").ChartType;
143
+ pasteDialog: {
144
+ shown: false;
145
+ data: null;
146
+ } | {
147
+ shown: true;
148
+ data: import("../charts").Spreadsheet;
149
+ };
150
+ pendingImageElementId: string | null;
151
+ showHyperlinkPopup: false | "info" | "editor";
152
+ linkOpacity: number;
153
+ trayModeEnabled: boolean;
154
+ colorPalette?: {
155
+ canvasBackground: import("../colors").ColorPaletteCustom;
156
+ elementBackground: import("../colors").ColorPaletteCustom;
157
+ elementStroke: import("../colors").ColorPaletteCustom;
158
+ topPicks: {
159
+ canvasBackground: [string, string, string, string, string];
160
+ elementStroke: [string, string, string, string, string];
161
+ elementBackground: [string, string, string, string, string];
162
+ };
163
+ } | undefined;
164
+ allowWheelZoom?: boolean | undefined;
165
+ allowPinchZoom?: boolean | undefined;
166
+ pinnedScripts?: string[] | undefined;
167
+ customPens?: any[] | undefined;
168
+ currentStrokeOptions?: any;
169
+ resetCustomPen?: any;
170
+ gridColor: {
171
+ Bold: string;
172
+ Regular: string;
173
+ MajorGridFrequency?: number | undefined;
174
+ };
175
+ dynamicStyle: {
176
+ [x: string]: string;
177
+ };
178
+ frameColor: {
179
+ stroke: string;
180
+ fill: string;
181
+ nameColor: string;
182
+ };
183
+ invertBindingBehaviour: boolean;
184
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
185
+ snapLines: readonly import("../snapping").SnapLine[];
186
+ originSnapOffset: {
187
+ x: number;
188
+ y: number;
189
+ } | null;
190
+ objectsSnapModeEnabled: boolean;
191
+ userToFollow: import("../types").UserToFollow | null;
192
+ followedBy: Set<import("../types").SocketId>;
193
+ };
194
+ storeAction: "capture";
195
+ } | {
10
196
  elements: readonly import("../element/types").OrderedExcalidrawElement[];
11
197
  appState: Readonly<AppState>;
12
- storeAction: import("../store").StoreActionType;
198
+ storeAction: "none";
13
199
  };
14
200
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
15
201
  } & {
@@ -22,9 +208,197 @@ export declare const actionRemoveAllElementsFromFrame: {
22
208
  category: "history";
23
209
  };
24
210
  perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
211
+ elements: readonly import("../element/types").OrderedExcalidrawElement[];
212
+ appState: {
213
+ selectedElementIds: {
214
+ [x: string]: true;
215
+ };
216
+ contextMenu: {
217
+ items: import("../components/ContextMenu").ContextMenuItems;
218
+ top: number;
219
+ left: number;
220
+ } | null;
221
+ showWelcomeScreen: boolean;
222
+ isLoading: boolean;
223
+ errorMessage: import("react").ReactNode;
224
+ activeEmbeddable: {
225
+ element: import("../element/types").NonDeletedExcalidrawElement;
226
+ state: "active" | "hover";
227
+ } | null;
228
+ draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
229
+ resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
230
+ multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
231
+ selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
232
+ isBindingEnabled: boolean;
233
+ startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
234
+ suggestedBindings: import("../element/binding").SuggestedBinding[];
235
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
236
+ frameRendering: {
237
+ enabled: boolean;
238
+ name: boolean;
239
+ outline: boolean;
240
+ clip: boolean;
241
+ };
242
+ editingFrame: string | null;
243
+ elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
244
+ editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
245
+ editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
246
+ activeTool: {
247
+ lastActiveTool: import("../types").ActiveTool | null;
248
+ locked: boolean;
249
+ } & import("../types").ActiveTool;
250
+ penMode: boolean;
251
+ penDetected: boolean;
252
+ exportBackground: boolean;
253
+ exportEmbedScene: boolean;
254
+ exportWithDarkMode: boolean;
255
+ exportScale: number;
256
+ currentItemStrokeColor: string;
257
+ currentItemBackgroundColor: string;
258
+ currentItemFillStyle: import("../element/types").FillStyle;
259
+ currentItemStrokeWidth: number;
260
+ currentItemStrokeStyle: import("../element/types").StrokeStyle;
261
+ currentItemRoughness: number;
262
+ currentItemOpacity: number;
263
+ currentItemFontFamily: number;
264
+ currentItemFontSize: number;
265
+ currentItemTextAlign: string;
266
+ currentItemStartArrowhead: import("../element/types").Arrowhead | null;
267
+ currentItemEndArrowhead: import("../element/types").Arrowhead | null;
268
+ currentItemRoundness: import("../element/types").StrokeRoundness;
269
+ viewBackgroundColor: string;
270
+ scrollX: number;
271
+ scrollY: number;
272
+ cursorButton: "up" | "down";
273
+ scrolledOutside: boolean;
274
+ name: string | null;
275
+ isResizing: boolean;
276
+ isRotating: boolean;
277
+ zoom: Readonly<{
278
+ value: import("../types").NormalizedZoomValue;
279
+ }>;
280
+ openMenu: "canvas" | "shape" | null;
281
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
282
+ openSidebar: {
283
+ name: string;
284
+ tab?: string | undefined;
285
+ } | null;
286
+ openDialog: {
287
+ name: "imageExport" | "help" | "jsonExport";
288
+ } | {
289
+ name: "settings";
290
+ source: "settings" | "tool" | "generation";
291
+ tab: "text-to-diagram" | "diagram-to-code";
292
+ } | {
293
+ name: "ttd";
294
+ tab: "mermaid" | "text-to-diagram";
295
+ } | {
296
+ name: "commandPalette";
297
+ } | null;
298
+ defaultSidebarDockedPreference: boolean;
299
+ lastPointerDownWith: import("../element/types").PointerType;
300
+ previousSelectedElementIds: {
301
+ [id: string]: true;
302
+ };
303
+ selectedElementsAreBeingDragged: boolean;
304
+ shouldCacheIgnoreZoom: boolean;
305
+ toast: {
306
+ message: string;
307
+ closable?: boolean | undefined;
308
+ duration?: number | undefined;
309
+ } | null;
310
+ zenModeEnabled: boolean;
311
+ theme: import("../element/types").Theme;
312
+ gridSize: number | null;
313
+ previousGridSize: number | null;
314
+ viewModeEnabled: boolean;
315
+ selectedGroupIds: {
316
+ [groupId: string]: boolean;
317
+ };
318
+ editingGroupId: string | null;
319
+ width: number;
320
+ height: number;
321
+ offsetTop: number;
322
+ offsetLeft: number;
323
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
324
+ collaborators: Map<import("../types").SocketId, Readonly<{
325
+ pointer?: import("../types").CollaboratorPointer | undefined;
326
+ button?: "up" | "down" | undefined;
327
+ selectedElementIds?: Readonly<{
328
+ [id: string]: true;
329
+ }> | undefined;
330
+ username?: string | null | undefined;
331
+ userState?: import("../types").UserIdleState | undefined;
332
+ color?: {
333
+ background: string;
334
+ stroke: string;
335
+ } | undefined;
336
+ avatarUrl?: string | undefined;
337
+ id?: string | undefined;
338
+ socketId?: import("../types").SocketId | undefined;
339
+ isCurrentUser?: boolean | undefined;
340
+ isInCall?: boolean | undefined;
341
+ isSpeaking?: boolean | undefined;
342
+ isMuted?: boolean | undefined;
343
+ }>>;
344
+ showStats: boolean;
345
+ currentChartType: import("../element/types").ChartType;
346
+ pasteDialog: {
347
+ shown: false;
348
+ data: null;
349
+ } | {
350
+ shown: true;
351
+ data: import("../charts").Spreadsheet;
352
+ };
353
+ pendingImageElementId: string | null;
354
+ showHyperlinkPopup: false | "info" | "editor";
355
+ linkOpacity: number;
356
+ trayModeEnabled: boolean;
357
+ colorPalette?: {
358
+ canvasBackground: import("../colors").ColorPaletteCustom;
359
+ elementBackground: import("../colors").ColorPaletteCustom;
360
+ elementStroke: import("../colors").ColorPaletteCustom;
361
+ topPicks: {
362
+ canvasBackground: [string, string, string, string, string];
363
+ elementStroke: [string, string, string, string, string];
364
+ elementBackground: [string, string, string, string, string];
365
+ };
366
+ } | undefined;
367
+ allowWheelZoom?: boolean | undefined;
368
+ allowPinchZoom?: boolean | undefined;
369
+ pinnedScripts?: string[] | undefined;
370
+ customPens?: any[] | undefined;
371
+ currentStrokeOptions?: any;
372
+ resetCustomPen?: any;
373
+ gridColor: {
374
+ Bold: string;
375
+ Regular: string;
376
+ MajorGridFrequency?: number | undefined;
377
+ };
378
+ dynamicStyle: {
379
+ [x: string]: string;
380
+ };
381
+ frameColor: {
382
+ stroke: string;
383
+ fill: string;
384
+ nameColor: string;
385
+ };
386
+ invertBindingBehaviour: boolean;
387
+ selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
388
+ snapLines: readonly import("../snapping").SnapLine[];
389
+ originSnapOffset: {
390
+ x: number;
391
+ y: number;
392
+ } | null;
393
+ objectsSnapModeEnabled: boolean;
394
+ userToFollow: import("../types").UserToFollow | null;
395
+ followedBy: Set<import("../types").SocketId>;
396
+ };
397
+ storeAction: "capture";
398
+ } | {
25
399
  elements: readonly import("../element/types").OrderedExcalidrawElement[];
26
400
  appState: Readonly<AppState>;
27
- storeAction: import("../store").StoreActionType;
401
+ storeAction: "none";
28
402
  };
29
403
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
30
404
  } & {
@@ -224,7 +598,7 @@ export declare const actionupdateFrameRendering: {
224
598
  userToFollow: import("../types").UserToFollow | null;
225
599
  followedBy: Set<import("../types").SocketId>;
226
600
  };
227
- storeAction: import("../store").StoreActionType;
601
+ storeAction: "none";
228
602
  };
229
603
  checked: (appState: AppState) => boolean;
230
604
  } & {
@@ -425,7 +799,7 @@ export declare const actionSetFrameAsActiveTool: {
425
799
  userToFollow: import("../types").UserToFollow | null;
426
800
  followedBy: Set<import("../types").SocketId>;
427
801
  };
428
- storeAction: import("../store").StoreActionType;
802
+ storeAction: "none";
429
803
  };
430
804
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
431
805
  } & {