@excalidraw/excalidraw 0.18.0-a18b139 → 0.18.0-a30e1b2

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/dist/dev/{chunk-X3RYHLJU.js → chunk-CARD3WJZ.js} +9 -4
  2. package/dist/dev/chunk-CARD3WJZ.js.map +7 -0
  3. package/dist/dev/{chunk-U3G3LY5D.js → chunk-ETWEPOFC.js} +7284 -6864
  4. package/dist/dev/chunk-ETWEPOFC.js.map +7 -0
  5. package/dist/dev/{chunk-MJMGTOVG.js → chunk-RS23HYC4.js} +2 -2
  6. package/dist/dev/data/{image-Y366K5SN.js → image-AYLHSOBV.js} +3 -3
  7. package/dist/dev/index.css +43 -2
  8. package/dist/dev/index.css.map +3 -3
  9. package/dist/dev/index.js +2959 -1807
  10. package/dist/dev/index.js.map +4 -4
  11. package/dist/dev/locales/{en-CKWC2GMK.js → en-E3O5XSXJ.js} +2 -2
  12. package/dist/dev/subset-shared.chunk.js +1 -1
  13. package/dist/dev/subset-worker.chunk.js +1 -1
  14. package/dist/prod/chunk-6BSJPDKJ.js +33 -0
  15. package/dist/prod/{chunk-IUH5AXLB.js → chunk-FGHASORR.js} +4 -4
  16. package/dist/prod/{chunk-VQA74LVG.js → chunk-SBKTMZM7.js} +1 -1
  17. package/dist/prod/data/image-VAYKYPXV.js +1 -0
  18. package/dist/prod/index.css +1 -1
  19. package/dist/prod/index.js +19 -18
  20. package/dist/prod/locales/{en-SBO6ZHT2.js → en-44IKVKYT.js} +1 -1
  21. package/dist/prod/subset-shared.chunk.js +1 -1
  22. package/dist/prod/subset-worker.chunk.js +1 -1
  23. package/dist/types/common/src/constants.d.ts +2 -0
  24. package/dist/types/{excalidraw → common/src}/emitter.d.ts +1 -1
  25. package/dist/types/common/src/font-metadata.d.ts +4 -2
  26. package/dist/types/common/src/index.d.ts +1 -0
  27. package/dist/types/common/src/utility-types.d.ts +5 -0
  28. package/dist/types/common/src/utils.d.ts +9 -0
  29. package/dist/types/element/src/binding.d.ts +10 -2
  30. package/dist/types/element/src/bounds.d.ts +1 -1
  31. package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +40 -35
  32. package/dist/types/element/src/frame.d.ts +1 -0
  33. package/dist/types/element/src/index.d.ts +2 -2
  34. package/dist/types/element/src/linearElementEditor.d.ts +3 -7
  35. package/dist/types/element/src/newElement.d.ts +2 -2
  36. package/dist/types/element/src/store.d.ts +227 -0
  37. package/dist/types/element/src/transformHandles.d.ts +2 -2
  38. package/dist/types/element/src/typeChecks.d.ts +3 -0
  39. package/dist/types/element/src/types.d.ts +7 -0
  40. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +18 -36
  41. package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
  42. package/dist/types/excalidraw/actions/actionBoundText.d.ts +12 -24
  43. package/dist/types/excalidraw/actions/actionCanvas.d.ts +107 -185
  44. package/dist/types/excalidraw/actions/actionClipboard.d.ts +39 -75
  45. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +6 -12
  46. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +19 -37
  47. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
  48. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  49. package/dist/types/excalidraw/actions/actionElementLink.d.ts +5 -11
  50. package/dist/types/excalidraw/actions/actionElementLock.d.ts +14 -26
  51. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +6 -12
  52. package/dist/types/excalidraw/actions/actionExport.d.ts +81 -135
  53. package/dist/types/excalidraw/actions/actionFinalize.d.ts +13 -25
  54. package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
  55. package/dist/types/excalidraw/actions/actionFrame.d.ts +26 -50
  56. package/dist/types/excalidraw/actions/actionGroup.d.ts +16 -28
  57. package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -2
  58. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +6 -12
  59. package/dist/types/excalidraw/actions/actionLink.d.ts +8 -14
  60. package/dist/types/excalidraw/actions/actionMenu.d.ts +19 -37
  61. package/dist/types/excalidraw/actions/actionNavigate.d.ts +12 -24
  62. package/dist/types/excalidraw/actions/actionProperties.d.ts +96 -186
  63. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +8 -14
  64. package/dist/types/excalidraw/actions/actionStyles.d.ts +10 -16
  65. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +8 -14
  66. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +8 -14
  67. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +7 -186
  68. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  69. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +8 -14
  70. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +8 -14
  71. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +8 -14
  72. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  73. package/dist/types/excalidraw/actions/types.d.ts +3 -3
  74. package/dist/types/excalidraw/appState.d.ts +14 -14
  75. package/dist/types/excalidraw/components/App.d.ts +5 -3
  76. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +49 -0
  77. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  78. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -8
  79. package/dist/types/excalidraw/editor-jotai.d.ts +6 -6
  80. package/dist/types/excalidraw/history.d.ts +14 -22
  81. package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  82. package/dist/types/excalidraw/index.d.ts +1 -1
  83. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -1
  84. package/dist/types/excalidraw/types.d.ts +11 -3
  85. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
  86. package/dist/types/math/src/curve.d.ts +2 -0
  87. package/dist/types/math/src/vector.d.ts +4 -0
  88. package/history.ts +68 -94
  89. package/package.json +3 -3
  90. package/dist/dev/chunk-U3G3LY5D.js.map +0 -7
  91. package/dist/dev/chunk-X3RYHLJU.js.map +0 -7
  92. package/dist/prod/chunk-PUQLEN73.js +0 -33
  93. package/dist/prod/data/image-WY2VMQLG.js +0 -1
  94. package/dist/types/excalidraw/store.d.ts +0 -129
  95. /package/dist/dev/{chunk-MJMGTOVG.js.map → chunk-RS23HYC4.js.map} +0 -0
  96. /package/dist/dev/data/{image-Y366K5SN.js.map → image-AYLHSOBV.js.map} +0 -0
  97. /package/dist/dev/locales/{en-CKWC2GMK.js.map → en-E3O5XSXJ.js.map} +0 -0
@@ -51,12 +51,6 @@ export declare const actionClearCanvas: {
51
51
  locked: boolean;
52
52
  fromSelection: boolean;
53
53
  } & import("../types").ActiveTool;
54
- name: string | null;
55
- zoom: Readonly<{
56
- value: import("../types").NormalizedZoomValue;
57
- }>;
58
- scrollX: number;
59
- scrollY: number;
60
54
  viewBackgroundColor: string;
61
55
  frameRendering: {
62
56
  enabled: boolean;
@@ -64,12 +58,18 @@ export declare const actionClearCanvas: {
64
58
  outline: boolean;
65
59
  clip: boolean;
66
60
  };
61
+ name: string | null;
62
+ zoom: Readonly<{
63
+ value: import("../types").NormalizedZoomValue;
64
+ }>;
65
+ scrollX: number;
66
+ scrollY: number;
67
67
  viewModeEnabled: boolean;
68
68
  openDialog: {
69
69
  name: "imageExport" | "help" | "jsonExport";
70
70
  } | {
71
71
  name: "ttd";
72
- tab: "text-to-diagram" | "mermaid";
72
+ tab: "mermaid" | "text-to-diagram";
73
73
  } | {
74
74
  name: "commandPalette";
75
75
  } | {
@@ -84,7 +84,7 @@ export declare const actionClearCanvas: {
84
84
  pendingImageElementId: string | null;
85
85
  activeEmbeddable: {
86
86
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
87
- state: "hover" | "active";
87
+ state: "active" | "hover";
88
88
  } | null;
89
89
  editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
90
90
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -122,16 +122,18 @@ export declare const actionClearCanvas: {
122
122
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
123
123
  isCropping: boolean;
124
124
  croppingElementId: string | null;
125
- searchMatches: readonly {
126
- id: string;
127
- focus: boolean;
128
- matchedLines: {
129
- offsetX: number;
130
- offsetY: number;
131
- width: number;
132
- height: number;
133
- }[];
134
- }[];
125
+ searchMatches: Readonly<{
126
+ focusedId: string | null;
127
+ matches: readonly import("../types").SearchMatch[];
128
+ }> | null;
129
+ objectsSnapModeEnabled: boolean;
130
+ shouldCacheIgnoreZoom: boolean;
131
+ exportScale: number;
132
+ selectedElementsAreBeingDragged: boolean;
133
+ currentHoveredFontFamily: number | null;
134
+ hoveredElementIds: Readonly<{
135
+ [id: string]: true;
136
+ }>;
135
137
  contextMenu: {
136
138
  items: import("../components/ContextMenu").ContextMenuItems;
137
139
  top: number;
@@ -145,7 +147,6 @@ export declare const actionClearCanvas: {
145
147
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
146
148
  editingFrame: string | null;
147
149
  exportWithDarkMode: boolean;
148
- exportScale: number;
149
150
  currentItemStrokeColor: string;
150
151
  currentItemBackgroundColor: string;
151
152
  currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
@@ -158,7 +159,6 @@ export declare const actionClearCanvas: {
158
159
  currentItemTextAlign: string;
159
160
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
160
161
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
161
- currentHoveredFontFamily: number | null;
162
162
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
163
163
  currentItemArrowType: "round" | "sharp" | "elbow";
164
164
  cursorButton: "up" | "down";
@@ -172,14 +172,9 @@ export declare const actionClearCanvas: {
172
172
  } | null;
173
173
  defaultSidebarDockedPreference: boolean;
174
174
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
175
- hoveredElementIds: Readonly<{
176
- [id: string]: true;
177
- }>;
178
175
  previousSelectedElementIds: {
179
176
  [id: string]: true;
180
177
  };
181
- selectedElementsAreBeingDragged: boolean;
182
- shouldCacheIgnoreZoom: boolean;
183
178
  toast: {
184
179
  message: string;
185
180
  closable?: boolean | undefined;
@@ -192,7 +187,6 @@ export declare const actionClearCanvas: {
192
187
  x: number;
193
188
  y: number;
194
189
  } | null;
195
- objectsSnapModeEnabled: boolean;
196
190
  userToFollow: import("../types").UserToFollow | null;
197
191
  followedBy: Set<import("../types").SocketId>;
198
192
  };
@@ -227,7 +221,7 @@ export declare const actionZoomIn: {
227
221
  errorMessage: import("react").ReactNode;
228
222
  activeEmbeddable: {
229
223
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
230
- state: "hover" | "active";
224
+ state: "active" | "hover";
231
225
  } | null;
232
226
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
233
227
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -289,7 +283,7 @@ export declare const actionZoomIn: {
289
283
  name: "imageExport" | "help" | "jsonExport";
290
284
  } | {
291
285
  name: "ttd";
292
- tab: "text-to-diagram" | "mermaid";
286
+ tab: "mermaid" | "text-to-diagram";
293
287
  } | {
294
288
  name: "commandPalette";
295
289
  } | {
@@ -373,23 +367,17 @@ export declare const actionZoomIn: {
373
367
  followedBy: Set<import("../types").SocketId>;
374
368
  isCropping: boolean;
375
369
  croppingElementId: string | null;
376
- searchMatches: readonly {
377
- id: string;
378
- focus: boolean;
379
- matchedLines: {
380
- offsetX: number;
381
- offsetY: number;
382
- width: number;
383
- height: number;
384
- }[];
385
- }[];
370
+ searchMatches: Readonly<{
371
+ focusedId: string | null;
372
+ matches: readonly import("../types").SearchMatch[];
373
+ }> | null;
386
374
  };
387
375
  captureUpdate: "EVENTUALLY";
388
376
  };
389
377
  PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
390
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
378
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
391
379
  } & {
392
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
380
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
393
381
  };
394
382
  export declare const actionZoomOut: {
395
383
  name: "zoomOut";
@@ -417,7 +405,7 @@ export declare const actionZoomOut: {
417
405
  errorMessage: import("react").ReactNode;
418
406
  activeEmbeddable: {
419
407
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
420
- state: "hover" | "active";
408
+ state: "active" | "hover";
421
409
  } | null;
422
410
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
423
411
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -479,7 +467,7 @@ export declare const actionZoomOut: {
479
467
  name: "imageExport" | "help" | "jsonExport";
480
468
  } | {
481
469
  name: "ttd";
482
- tab: "text-to-diagram" | "mermaid";
470
+ tab: "mermaid" | "text-to-diagram";
483
471
  } | {
484
472
  name: "commandPalette";
485
473
  } | {
@@ -563,23 +551,17 @@ export declare const actionZoomOut: {
563
551
  followedBy: Set<import("../types").SocketId>;
564
552
  isCropping: boolean;
565
553
  croppingElementId: string | null;
566
- searchMatches: readonly {
567
- id: string;
568
- focus: boolean;
569
- matchedLines: {
570
- offsetX: number;
571
- offsetY: number;
572
- width: number;
573
- height: number;
574
- }[];
575
- }[];
554
+ searchMatches: Readonly<{
555
+ focusedId: string | null;
556
+ matches: readonly import("../types").SearchMatch[];
557
+ }> | null;
576
558
  };
577
559
  captureUpdate: "EVENTUALLY";
578
560
  };
579
561
  PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
580
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
562
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
581
563
  } & {
582
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
564
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
583
565
  };
584
566
  export declare const actionResetZoom: {
585
567
  name: "resetZoom";
@@ -607,7 +589,7 @@ export declare const actionResetZoom: {
607
589
  errorMessage: import("react").ReactNode;
608
590
  activeEmbeddable: {
609
591
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
610
- state: "hover" | "active";
592
+ state: "active" | "hover";
611
593
  } | null;
612
594
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
613
595
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -669,7 +651,7 @@ export declare const actionResetZoom: {
669
651
  name: "imageExport" | "help" | "jsonExport";
670
652
  } | {
671
653
  name: "ttd";
672
- tab: "text-to-diagram" | "mermaid";
654
+ tab: "mermaid" | "text-to-diagram";
673
655
  } | {
674
656
  name: "commandPalette";
675
657
  } | {
@@ -753,23 +735,17 @@ export declare const actionResetZoom: {
753
735
  followedBy: Set<import("../types").SocketId>;
754
736
  isCropping: boolean;
755
737
  croppingElementId: string | null;
756
- searchMatches: readonly {
757
- id: string;
758
- focus: boolean;
759
- matchedLines: {
760
- offsetX: number;
761
- offsetY: number;
762
- width: number;
763
- height: number;
764
- }[];
765
- }[];
738
+ searchMatches: Readonly<{
739
+ focusedId: string | null;
740
+ matches: readonly import("../types").SearchMatch[];
741
+ }> | null;
766
742
  };
767
743
  captureUpdate: "EVENTUALLY";
768
744
  };
769
745
  PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
770
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
746
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
771
747
  } & {
772
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
748
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
773
749
  };
774
750
  export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToViewport, viewportZoomFactor, minZoom, maxZoom, }: {
775
751
  bounds: SceneBounds;
@@ -803,7 +779,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
803
779
  errorMessage: import("react").ReactNode;
804
780
  activeEmbeddable: {
805
781
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
806
- state: "hover" | "active";
782
+ state: "active" | "hover";
807
783
  } | null;
808
784
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
809
785
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -865,7 +841,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
865
841
  name: "imageExport" | "help" | "jsonExport";
866
842
  } | {
867
843
  name: "ttd";
868
- tab: "text-to-diagram" | "mermaid";
844
+ tab: "mermaid" | "text-to-diagram";
869
845
  } | {
870
846
  name: "commandPalette";
871
847
  } | {
@@ -950,16 +926,10 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
950
926
  followedBy: Set<import("../types").SocketId>;
951
927
  isCropping: boolean;
952
928
  croppingElementId: string | null;
953
- searchMatches: readonly {
954
- id: string;
955
- focus: boolean;
956
- matchedLines: {
957
- offsetX: number;
958
- offsetY: number;
959
- width: number;
960
- height: number;
961
- }[];
962
- }[];
929
+ searchMatches: Readonly<{
930
+ focusedId: string | null;
931
+ matches: readonly import("../types").SearchMatch[];
932
+ }> | null;
963
933
  };
964
934
  captureUpdate: "EVENTUALLY";
965
935
  };
@@ -995,7 +965,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
995
965
  errorMessage: import("react").ReactNode;
996
966
  activeEmbeddable: {
997
967
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
998
- state: "hover" | "active";
968
+ state: "active" | "hover";
999
969
  } | null;
1000
970
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1001
971
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1057,7 +1027,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1057
1027
  name: "imageExport" | "help" | "jsonExport";
1058
1028
  } | {
1059
1029
  name: "ttd";
1060
- tab: "text-to-diagram" | "mermaid";
1030
+ tab: "mermaid" | "text-to-diagram";
1061
1031
  } | {
1062
1032
  name: "commandPalette";
1063
1033
  } | {
@@ -1142,16 +1112,10 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1142
1112
  followedBy: Set<import("../types").SocketId>;
1143
1113
  isCropping: boolean;
1144
1114
  croppingElementId: string | null;
1145
- searchMatches: readonly {
1146
- id: string;
1147
- focus: boolean;
1148
- matchedLines: {
1149
- offsetX: number;
1150
- offsetY: number;
1151
- width: number;
1152
- height: number;
1153
- }[];
1154
- }[];
1115
+ searchMatches: Readonly<{
1116
+ focusedId: string | null;
1117
+ matches: readonly import("../types").SearchMatch[];
1118
+ }> | null;
1155
1119
  };
1156
1120
  captureUpdate: "EVENTUALLY";
1157
1121
  };
@@ -1179,7 +1143,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1179
1143
  errorMessage: import("react").ReactNode;
1180
1144
  activeEmbeddable: {
1181
1145
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1182
- state: "hover" | "active";
1146
+ state: "active" | "hover";
1183
1147
  } | null;
1184
1148
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1185
1149
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1241,7 +1205,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1241
1205
  name: "imageExport" | "help" | "jsonExport";
1242
1206
  } | {
1243
1207
  name: "ttd";
1244
- tab: "text-to-diagram" | "mermaid";
1208
+ tab: "mermaid" | "text-to-diagram";
1245
1209
  } | {
1246
1210
  name: "commandPalette";
1247
1211
  } | {
@@ -1326,22 +1290,16 @@ export declare const actionZoomToFitSelectionInViewport: {
1326
1290
  followedBy: Set<import("../types").SocketId>;
1327
1291
  isCropping: boolean;
1328
1292
  croppingElementId: string | null;
1329
- searchMatches: readonly {
1330
- id: string;
1331
- focus: boolean;
1332
- matchedLines: {
1333
- offsetX: number;
1334
- offsetY: number;
1335
- width: number;
1336
- height: number;
1337
- }[];
1338
- }[];
1293
+ searchMatches: Readonly<{
1294
+ focusedId: string | null;
1295
+ matches: readonly import("../types").SearchMatch[];
1296
+ }> | null;
1339
1297
  };
1340
1298
  captureUpdate: "EVENTUALLY";
1341
1299
  };
1342
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1300
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1343
1301
  } & {
1344
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1302
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1345
1303
  };
1346
1304
  export declare const actionZoomToFitSelection: {
1347
1305
  name: "zoomToFitSelection";
@@ -1367,7 +1325,7 @@ export declare const actionZoomToFitSelection: {
1367
1325
  errorMessage: import("react").ReactNode;
1368
1326
  activeEmbeddable: {
1369
1327
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1370
- state: "hover" | "active";
1328
+ state: "active" | "hover";
1371
1329
  } | null;
1372
1330
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1373
1331
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1429,7 +1387,7 @@ export declare const actionZoomToFitSelection: {
1429
1387
  name: "imageExport" | "help" | "jsonExport";
1430
1388
  } | {
1431
1389
  name: "ttd";
1432
- tab: "text-to-diagram" | "mermaid";
1390
+ tab: "mermaid" | "text-to-diagram";
1433
1391
  } | {
1434
1392
  name: "commandPalette";
1435
1393
  } | {
@@ -1514,22 +1472,16 @@ export declare const actionZoomToFitSelection: {
1514
1472
  followedBy: Set<import("../types").SocketId>;
1515
1473
  isCropping: boolean;
1516
1474
  croppingElementId: string | null;
1517
- searchMatches: readonly {
1518
- id: string;
1519
- focus: boolean;
1520
- matchedLines: {
1521
- offsetX: number;
1522
- offsetY: number;
1523
- width: number;
1524
- height: number;
1525
- }[];
1526
- }[];
1475
+ searchMatches: Readonly<{
1476
+ focusedId: string | null;
1477
+ matches: readonly import("../types").SearchMatch[];
1478
+ }> | null;
1527
1479
  };
1528
1480
  captureUpdate: "EVENTUALLY";
1529
1481
  };
1530
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1482
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1531
1483
  } & {
1532
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1484
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1533
1485
  };
1534
1486
  export declare const actionZoomToFit: {
1535
1487
  name: "zoomToFit";
@@ -1556,7 +1508,7 @@ export declare const actionZoomToFit: {
1556
1508
  errorMessage: import("react").ReactNode;
1557
1509
  activeEmbeddable: {
1558
1510
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1559
- state: "hover" | "active";
1511
+ state: "active" | "hover";
1560
1512
  } | null;
1561
1513
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1562
1514
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1618,7 +1570,7 @@ export declare const actionZoomToFit: {
1618
1570
  name: "imageExport" | "help" | "jsonExport";
1619
1571
  } | {
1620
1572
  name: "ttd";
1621
- tab: "text-to-diagram" | "mermaid";
1573
+ tab: "mermaid" | "text-to-diagram";
1622
1574
  } | {
1623
1575
  name: "commandPalette";
1624
1576
  } | {
@@ -1703,22 +1655,16 @@ export declare const actionZoomToFit: {
1703
1655
  followedBy: Set<import("../types").SocketId>;
1704
1656
  isCropping: boolean;
1705
1657
  croppingElementId: string | null;
1706
- searchMatches: readonly {
1707
- id: string;
1708
- focus: boolean;
1709
- matchedLines: {
1710
- offsetX: number;
1711
- offsetY: number;
1712
- width: number;
1713
- height: number;
1714
- }[];
1715
- }[];
1658
+ searchMatches: Readonly<{
1659
+ focusedId: string | null;
1660
+ matches: readonly import("../types").SearchMatch[];
1661
+ }> | null;
1716
1662
  };
1717
1663
  captureUpdate: "EVENTUALLY";
1718
1664
  };
1719
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1665
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1720
1666
  } & {
1721
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1667
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1722
1668
  };
1723
1669
  export declare const actionToggleTheme: {
1724
1670
  name: "toggleTheme";
@@ -1742,7 +1688,7 @@ export declare const actionToggleTheme: {
1742
1688
  errorMessage: import("react").ReactNode;
1743
1689
  activeEmbeddable: {
1744
1690
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1745
- state: "hover" | "active";
1691
+ state: "active" | "hover";
1746
1692
  } | null;
1747
1693
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1748
1694
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1809,7 +1755,7 @@ export declare const actionToggleTheme: {
1809
1755
  name: "imageExport" | "help" | "jsonExport";
1810
1756
  } | {
1811
1757
  name: "ttd";
1812
- tab: "text-to-diagram" | "mermaid";
1758
+ tab: "mermaid" | "text-to-diagram";
1813
1759
  } | {
1814
1760
  name: "commandPalette";
1815
1761
  } | {
@@ -1893,23 +1839,17 @@ export declare const actionToggleTheme: {
1893
1839
  followedBy: Set<import("../types").SocketId>;
1894
1840
  isCropping: boolean;
1895
1841
  croppingElementId: string | null;
1896
- searchMatches: readonly {
1897
- id: string;
1898
- focus: boolean;
1899
- matchedLines: {
1900
- offsetX: number;
1901
- offsetY: number;
1902
- width: number;
1903
- height: number;
1904
- }[];
1905
- }[];
1842
+ searchMatches: Readonly<{
1843
+ focusedId: string | null;
1844
+ matches: readonly import("../types").SearchMatch[];
1845
+ }> | null;
1906
1846
  };
1907
1847
  captureUpdate: "EVENTUALLY";
1908
1848
  };
1909
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1849
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1910
1850
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1911
1851
  } & {
1912
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1852
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1913
1853
  };
1914
1854
  export declare const actionToggleEraserTool: {
1915
1855
  name: "toggleEraserTool";
@@ -1995,7 +1935,7 @@ export declare const actionToggleEraserTool: {
1995
1935
  name: "imageExport" | "help" | "jsonExport";
1996
1936
  } | {
1997
1937
  name: "ttd";
1998
- tab: "text-to-diagram" | "mermaid";
1938
+ tab: "mermaid" | "text-to-diagram";
1999
1939
  } | {
2000
1940
  name: "commandPalette";
2001
1941
  } | {
@@ -2074,22 +2014,16 @@ export declare const actionToggleEraserTool: {
2074
2014
  followedBy: Set<import("../types").SocketId>;
2075
2015
  isCropping: boolean;
2076
2016
  croppingElementId: string | null;
2077
- searchMatches: readonly {
2078
- id: string;
2079
- focus: boolean;
2080
- matchedLines: {
2081
- offsetX: number;
2082
- offsetY: number;
2083
- width: number;
2084
- height: number;
2085
- }[];
2086
- }[];
2017
+ searchMatches: Readonly<{
2018
+ focusedId: string | null;
2019
+ matches: readonly import("../types").SearchMatch[];
2020
+ }> | null;
2087
2021
  };
2088
2022
  captureUpdate: "IMMEDIATELY";
2089
2023
  };
2090
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
2024
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
2091
2025
  } & {
2092
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
2026
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
2093
2027
  };
2094
2028
  export declare const actionToggleLassoTool: {
2095
2029
  name: "toggleLassoTool";
@@ -2176,7 +2110,7 @@ export declare const actionToggleLassoTool: {
2176
2110
  name: "imageExport" | "help" | "jsonExport";
2177
2111
  } | {
2178
2112
  name: "ttd";
2179
- tab: "text-to-diagram" | "mermaid";
2113
+ tab: "mermaid" | "text-to-diagram";
2180
2114
  } | {
2181
2115
  name: "commandPalette";
2182
2116
  } | {
@@ -2255,16 +2189,10 @@ export declare const actionToggleLassoTool: {
2255
2189
  followedBy: Set<import("../types").SocketId>;
2256
2190
  isCropping: boolean;
2257
2191
  croppingElementId: string | null;
2258
- searchMatches: readonly {
2259
- id: string;
2260
- focus: boolean;
2261
- matchedLines: {
2262
- offsetX: number;
2263
- offsetY: number;
2264
- width: number;
2265
- height: number;
2266
- }[];
2267
- }[];
2192
+ searchMatches: Readonly<{
2193
+ focusedId: string | null;
2194
+ matches: readonly import("../types").SearchMatch[];
2195
+ }> | null;
2268
2196
  };
2269
2197
  captureUpdate: "NEVER";
2270
2198
  };
@@ -2357,7 +2285,7 @@ export declare const actionToggleHandTool: {
2357
2285
  name: "imageExport" | "help" | "jsonExport";
2358
2286
  } | {
2359
2287
  name: "ttd";
2360
- tab: "text-to-diagram" | "mermaid";
2288
+ tab: "mermaid" | "text-to-diagram";
2361
2289
  } | {
2362
2290
  name: "commandPalette";
2363
2291
  } | {
@@ -2436,20 +2364,14 @@ export declare const actionToggleHandTool: {
2436
2364
  followedBy: Set<import("../types").SocketId>;
2437
2365
  isCropping: boolean;
2438
2366
  croppingElementId: string | null;
2439
- searchMatches: readonly {
2440
- id: string;
2441
- focus: boolean;
2442
- matchedLines: {
2443
- offsetX: number;
2444
- offsetY: number;
2445
- width: number;
2446
- height: number;
2447
- }[];
2448
- }[];
2367
+ searchMatches: Readonly<{
2368
+ focusedId: string | null;
2369
+ matches: readonly import("../types").SearchMatch[];
2370
+ }> | null;
2449
2371
  };
2450
2372
  captureUpdate: "IMMEDIATELY";
2451
2373
  };
2452
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
2374
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
2453
2375
  } & {
2454
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
2376
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
2455
2377
  };