@zsviczian/excalidraw 0.18.0-52 → 0.18.0-54

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 (69) hide show
  1. package/dist/excalidraw.development.js +81 -59
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/package.json +2 -2
  4. package/types/common/src/commonObsidianUtils.d.ts +6 -0
  5. package/types/common/src/constants.d.ts +2 -0
  6. package/types/common/src/editorInterface.d.ts +1 -1
  7. package/types/common/src/index.d.ts +2 -0
  8. package/types/common/src/utils.d.ts +7 -2
  9. package/types/common/src/visualdebug.d.ts +41 -0
  10. package/types/element/src/binding.d.ts +55 -44
  11. package/types/element/src/collision.d.ts +6 -2
  12. package/types/element/src/index.d.ts +0 -3
  13. package/types/element/src/linearElementEditor.d.ts +15 -18
  14. package/types/element/src/renderElement.d.ts +1 -1
  15. package/types/element/src/typeChecks.d.ts +2 -3
  16. package/types/element/src/types.d.ts +7 -11
  17. package/types/element/src/utils.d.ts +2 -1
  18. package/types/element/src/zindex.d.ts +7 -1
  19. package/types/excalidraw/actions/actionAddToLibrary.d.ts +16 -7
  20. package/types/excalidraw/actions/actionAlign.d.ts +6 -6
  21. package/types/excalidraw/actions/actionBoundText.d.ts +13 -7
  22. package/types/excalidraw/actions/actionCanvas.d.ts +91 -286
  23. package/types/excalidraw/actions/actionClipboard.d.ts +34 -941
  24. package/types/excalidraw/actions/actionCropEditor.d.ts +6 -3
  25. package/types/excalidraw/actions/actionDeleteSelected.d.ts +23 -16
  26. package/types/excalidraw/actions/actionDistribute.d.ts +2 -2
  27. package/types/excalidraw/actions/actionDuplicateSelection.d.ts +1 -1
  28. package/types/excalidraw/actions/actionElementLink.d.ts +4 -3
  29. package/types/excalidraw/actions/actionElementLock.d.ts +11 -5
  30. package/types/excalidraw/actions/actionEmbeddable.d.ts +6 -3
  31. package/types/excalidraw/actions/actionExport.d.ts +43 -1149
  32. package/types/excalidraw/actions/actionFinalize.d.ts +10 -688
  33. package/types/excalidraw/actions/actionFlip.d.ts +2 -2
  34. package/types/excalidraw/actions/actionFrame.d.ts +26 -16
  35. package/types/excalidraw/actions/actionGroup.d.ts +12 -6
  36. package/types/excalidraw/actions/actionLinearEditor.d.ts +15 -16
  37. package/types/excalidraw/actions/actionLink.d.ts +5 -2
  38. package/types/excalidraw/actions/actionMenu.d.ts +3 -2
  39. package/types/excalidraw/actions/actionNavigate.d.ts +21 -445
  40. package/types/excalidraw/actions/actionProperties.d.ts +79 -2968
  41. package/types/excalidraw/actions/actionSelectAll.d.ts +6 -3
  42. package/types/excalidraw/actions/actionStyles.d.ts +7 -4
  43. package/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
  44. package/types/excalidraw/actions/actionToggleGridMode.d.ts +5 -2
  45. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +5 -2
  46. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +3 -2
  47. package/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  48. package/types/excalidraw/actions/actionToggleStats.d.ts +5 -2
  49. package/types/excalidraw/actions/actionToggleViewMode.d.ts +6 -3
  50. package/types/excalidraw/actions/actionToggleZenMode.d.ts +5 -2
  51. package/types/excalidraw/actions/actionTrayMenu.d.ts +5 -2
  52. package/types/excalidraw/actions/actionZindex.d.ts +2 -2
  53. package/types/excalidraw/actions/manager.d.ts +1 -1
  54. package/types/excalidraw/actions/register.d.ts +1 -1
  55. package/types/excalidraw/actions/types.d.ts +3 -3
  56. package/types/excalidraw/appState.d.ts +4 -3
  57. package/types/excalidraw/components/App.d.ts +7 -3
  58. package/types/excalidraw/components/CommandPalette/types.d.ts +1 -2
  59. package/types/excalidraw/components/Stats/utils.d.ts +1 -1
  60. package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +4 -2
  61. package/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +1 -1
  62. package/types/excalidraw/data/restore.d.ts +3 -3
  63. package/types/excalidraw/index.d.ts +3 -3
  64. package/types/excalidraw/obsidianUtils.d.ts +0 -5
  65. package/types/excalidraw/renderer/animation.d.ts +12 -0
  66. package/types/excalidraw/renderer/helpers.d.ts +1 -5
  67. package/types/excalidraw/renderer/interactiveScene.d.ts +5 -13
  68. package/types/excalidraw/scene/types.d.ts +12 -0
  69. package/types/excalidraw/types.d.ts +15 -5
@@ -3,7 +3,7 @@ export declare const actionAddToLibrary: {
3
3
  trackEvent: {
4
4
  category: "element";
5
5
  };
6
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<{
6
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => Promise<{
7
7
  captureUpdate: "EVENTUALLY";
8
8
  appState: {
9
9
  toast: {
@@ -27,7 +27,7 @@ export declare const actionAddToLibrary: {
27
27
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
28
28
  isBindingEnabled: boolean;
29
29
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
30
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
30
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
31
31
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
32
32
  frameRendering: {
33
33
  enabled: boolean;
@@ -89,12 +89,14 @@ export declare const actionAddToLibrary: {
89
89
  tab?: string | undefined;
90
90
  } | null;
91
91
  openDialog: {
92
- name: "help" | "imageExport" | "jsonExport";
92
+ name: "imageExport" | "help" | "jsonExport";
93
93
  } | {
94
94
  name: "ttd";
95
95
  tab: "mermaid" | "text-to-diagram";
96
96
  } | {
97
97
  name: "commandPalette";
98
+ } | {
99
+ name: "settings";
98
100
  } | {
99
101
  name: "elementLinkSelector";
100
102
  sourceElementId: string;
@@ -215,6 +217,7 @@ export declare const actionAddToLibrary: {
215
217
  lockedMultiSelections: {
216
218
  [groupId: string]: true;
217
219
  };
220
+ bindMode: import("@excalidraw/element/types").BindMode;
218
221
  };
219
222
  } | {
220
223
  captureUpdate: "EVENTUALLY";
@@ -237,7 +240,7 @@ export declare const actionAddToLibrary: {
237
240
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
238
241
  isBindingEnabled: boolean;
239
242
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
240
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
243
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
241
244
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
242
245
  frameRendering: {
243
246
  enabled: boolean;
@@ -299,12 +302,14 @@ export declare const actionAddToLibrary: {
299
302
  tab?: string | undefined;
300
303
  } | null;
301
304
  openDialog: {
302
- name: "help" | "imageExport" | "jsonExport";
305
+ name: "imageExport" | "help" | "jsonExport";
303
306
  } | {
304
307
  name: "ttd";
305
308
  tab: "mermaid" | "text-to-diagram";
306
309
  } | {
307
310
  name: "commandPalette";
311
+ } | {
312
+ name: "settings";
308
313
  } | {
309
314
  name: "elementLinkSelector";
310
315
  sourceElementId: string;
@@ -430,6 +435,7 @@ export declare const actionAddToLibrary: {
430
435
  lockedMultiSelections: {
431
436
  [groupId: string]: true;
432
437
  };
438
+ bindMode: import("@excalidraw/element/types").BindMode;
433
439
  };
434
440
  }> | {
435
441
  captureUpdate: "EVENTUALLY";
@@ -452,7 +458,7 @@ export declare const actionAddToLibrary: {
452
458
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
453
459
  isBindingEnabled: boolean;
454
460
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
455
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
461
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
456
462
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
457
463
  frameRendering: {
458
464
  enabled: boolean;
@@ -514,12 +520,14 @@ export declare const actionAddToLibrary: {
514
520
  tab?: string | undefined;
515
521
  } | null;
516
522
  openDialog: {
517
- name: "help" | "imageExport" | "jsonExport";
523
+ name: "imageExport" | "help" | "jsonExport";
518
524
  } | {
519
525
  name: "ttd";
520
526
  tab: "mermaid" | "text-to-diagram";
521
527
  } | {
522
528
  name: "commandPalette";
529
+ } | {
530
+ name: "settings";
523
531
  } | {
524
532
  name: "elementLinkSelector";
525
533
  sourceElementId: string;
@@ -645,6 +653,7 @@ export declare const actionAddToLibrary: {
645
653
  lockedMultiSelections: {
646
654
  [groupId: string]: true;
647
655
  };
656
+ bindMode: import("@excalidraw/element/types").BindMode;
648
657
  };
649
658
  };
650
659
  label: string;
@@ -9,7 +9,7 @@ export declare const actionAlignTop: {
9
9
  category: "element";
10
10
  };
11
11
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
12
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
12
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
13
13
  appState: Readonly<AppState>;
14
14
  elements: ExcalidrawElement[];
15
15
  captureUpdate: "IMMEDIATELY";
@@ -27,7 +27,7 @@ export declare const actionAlignBottom: {
27
27
  category: "element";
28
28
  };
29
29
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
30
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
30
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
31
31
  appState: Readonly<AppState>;
32
32
  elements: ExcalidrawElement[];
33
33
  captureUpdate: "IMMEDIATELY";
@@ -45,7 +45,7 @@ export declare const actionAlignLeft: {
45
45
  category: "element";
46
46
  };
47
47
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
48
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
48
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
49
49
  appState: Readonly<AppState>;
50
50
  elements: ExcalidrawElement[];
51
51
  captureUpdate: "IMMEDIATELY";
@@ -63,7 +63,7 @@ export declare const actionAlignRight: {
63
63
  category: "element";
64
64
  };
65
65
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
66
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
66
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
67
67
  appState: Readonly<AppState>;
68
68
  elements: ExcalidrawElement[];
69
69
  captureUpdate: "IMMEDIATELY";
@@ -81,7 +81,7 @@ export declare const actionAlignVerticallyCentered: {
81
81
  category: "element";
82
82
  };
83
83
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
84
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
84
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
85
85
  appState: Readonly<AppState>;
86
86
  elements: ExcalidrawElement[];
87
87
  captureUpdate: "IMMEDIATELY";
@@ -98,7 +98,7 @@ export declare const actionAlignHorizontallyCentered: {
98
98
  category: "element";
99
99
  };
100
100
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
101
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
101
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
102
102
  appState: Readonly<AppState>;
103
103
  elements: ExcalidrawElement[];
104
104
  captureUpdate: "IMMEDIATELY";
@@ -8,7 +8,7 @@ export declare const actionUnbindText: {
8
8
  category: "element";
9
9
  };
10
10
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
11
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
11
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
12
12
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
13
13
  appState: Readonly<AppState>;
14
14
  captureUpdate: "IMMEDIATELY";
@@ -23,7 +23,7 @@ export declare const actionBindText: {
23
23
  category: "element";
24
24
  };
25
25
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
26
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
26
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
27
27
  elements: ExcalidrawElement[];
28
28
  appState: {
29
29
  selectedElementIds: {
@@ -47,7 +47,7 @@ export declare const actionBindText: {
47
47
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
48
48
  isBindingEnabled: boolean;
49
49
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
50
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
50
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
51
51
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
52
52
  frameRendering: {
53
53
  enabled: boolean;
@@ -109,12 +109,14 @@ export declare const actionBindText: {
109
109
  tab?: string | undefined;
110
110
  } | null;
111
111
  openDialog: {
112
- name: "help" | "imageExport" | "jsonExport";
112
+ name: "imageExport" | "help" | "jsonExport";
113
113
  } | {
114
114
  name: "ttd";
115
115
  tab: "mermaid" | "text-to-diagram";
116
116
  } | {
117
117
  name: "commandPalette";
118
+ } | {
119
+ name: "settings";
118
120
  } | {
119
121
  name: "elementLinkSelector";
120
122
  sourceElementId: string;
@@ -237,6 +239,7 @@ export declare const actionBindText: {
237
239
  lockedMultiSelections: {
238
240
  [groupId: string]: true;
239
241
  };
242
+ bindMode: import("@excalidraw/element/types").BindMode;
240
243
  };
241
244
  captureUpdate: "IMMEDIATELY";
242
245
  };
@@ -250,7 +253,7 @@ export declare const actionWrapTextInContainer: {
250
253
  category: "element";
251
254
  };
252
255
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
253
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
256
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
254
257
  elements: readonly ExcalidrawElement[];
255
258
  appState: {
256
259
  selectedElementIds: Mutable<Readonly<{
@@ -274,7 +277,7 @@ export declare const actionWrapTextInContainer: {
274
277
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
275
278
  isBindingEnabled: boolean;
276
279
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
277
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
280
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
278
281
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
279
282
  frameRendering: {
280
283
  enabled: boolean;
@@ -336,12 +339,14 @@ export declare const actionWrapTextInContainer: {
336
339
  tab?: string | undefined;
337
340
  } | null;
338
341
  openDialog: {
339
- name: "help" | "imageExport" | "jsonExport";
342
+ name: "imageExport" | "help" | "jsonExport";
340
343
  } | {
341
344
  name: "ttd";
342
345
  tab: "mermaid" | "text-to-diagram";
343
346
  } | {
344
347
  name: "commandPalette";
348
+ } | {
349
+ name: "settings";
345
350
  } | {
346
351
  name: "elementLinkSelector";
347
352
  sourceElementId: string;
@@ -464,6 +469,7 @@ export declare const actionWrapTextInContainer: {
464
469
  lockedMultiSelections: {
465
470
  [groupId: string]: true;
466
471
  };
472
+ bindMode: import("@excalidraw/element/types").BindMode;
467
473
  };
468
474
  captureUpdate: "IMMEDIATELY";
469
475
  };