@excalidraw/excalidraw 0.18.0-195a743 → 0.18.0-1b287a8ba

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 (163) hide show
  1. package/dist/dev/chunk-CBGOW5JB.js +5669 -0
  2. package/dist/dev/chunk-CBGOW5JB.js.map +7 -0
  3. package/dist/dev/chunk-CP5DND7P.js +7 -0
  4. package/dist/dev/chunk-CP5DND7P.js.map +7 -0
  5. package/dist/dev/{chunk-T3M44BFV.js → chunk-QF5FRM6O.js} +12 -4
  6. package/dist/dev/chunk-QF5FRM6O.js.map +7 -0
  7. package/dist/dev/data/{image-TTQKTTOH.js → image-SURZSZNX.js} +3 -3
  8. package/dist/dev/index.css +89 -22
  9. package/dist/dev/index.css.map +3 -3
  10. package/dist/dev/index.js +7516 -9372
  11. package/dist/dev/index.js.map +4 -4
  12. package/dist/dev/locales/{en-I23TB6DJ.js → en-SMAPCEOQ.js} +2 -2
  13. package/dist/dev/subset-shared.chunk.js +1 -1
  14. package/dist/dev/subset-worker.chunk.js +1 -1
  15. package/dist/prod/chunk-A66AFZZU.js +7 -0
  16. package/dist/prod/chunk-I4UNSFV6.js +12 -0
  17. package/dist/prod/chunk-IRHK23LL.js +4 -0
  18. package/dist/prod/data/image-HXEZYJPQ.js +1 -0
  19. package/dist/prod/index.css +1 -1
  20. package/dist/prod/index.js +26 -19
  21. package/dist/prod/locales/{en-TC3OFDA6.js → en-TYY6KWIJ.js} +1 -1
  22. package/dist/prod/subset-shared.chunk.js +1 -1
  23. package/dist/prod/subset-worker.chunk.js +1 -1
  24. package/dist/types/common/src/constants.d.ts +19 -3
  25. package/dist/types/{excalidraw → common/src}/emitter.d.ts +1 -1
  26. package/dist/types/common/src/font-metadata.d.ts +4 -2
  27. package/dist/types/common/src/index.d.ts +1 -0
  28. package/dist/types/common/src/utility-types.d.ts +5 -0
  29. package/dist/types/common/src/utils.d.ts +15 -5
  30. package/dist/types/element/src/Scene.d.ts +4 -4
  31. package/dist/types/element/src/align.d.ts +3 -2
  32. package/dist/types/element/src/binding.d.ts +11 -8
  33. package/dist/types/element/src/bounds.d.ts +12 -4
  34. package/dist/types/element/src/collision.d.ts +18 -12
  35. package/dist/types/element/src/cropElement.d.ts +1 -1
  36. package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +63 -38
  37. package/dist/types/element/src/distance.d.ts +2 -2
  38. package/dist/types/element/src/distribute.d.ts +2 -1
  39. package/dist/types/element/src/dragElements.d.ts +1 -1
  40. package/dist/types/element/src/flowchart.d.ts +1 -1
  41. package/dist/types/element/src/fractionalIndex.d.ts +8 -2
  42. package/dist/types/element/src/frame.d.ts +3 -2
  43. package/dist/types/element/src/groups.d.ts +1 -0
  44. package/dist/types/element/src/index.d.ts +43 -2
  45. package/dist/types/element/src/linearElementEditor.d.ts +15 -29
  46. package/dist/types/element/src/mutateElement.d.ts +1 -1
  47. package/dist/types/element/src/newElement.d.ts +3 -2
  48. package/dist/types/element/src/resizeElements.d.ts +2 -1
  49. package/dist/types/element/src/selection.d.ts +0 -5
  50. package/dist/types/element/src/shape.d.ts +42 -0
  51. package/dist/types/element/src/sizeHelpers.d.ts +2 -1
  52. package/dist/types/element/src/store.d.ts +232 -0
  53. package/dist/types/element/src/textElement.d.ts +1 -1
  54. package/dist/types/element/src/typeChecks.d.ts +16 -1
  55. package/dist/types/element/src/types.d.ts +13 -3
  56. package/dist/types/element/src/utils.d.ts +16 -6
  57. package/dist/types/element/src/zindex.d.ts +3 -3
  58. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +39 -48
  59. package/dist/types/excalidraw/actions/actionBoundText.d.ts +26 -32
  60. package/dist/types/excalidraw/actions/actionCanvas.d.ts +173 -212
  61. package/dist/types/excalidraw/actions/actionClipboard.d.ts +75 -92
  62. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +13 -16
  63. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +34 -42
  64. package/dist/types/excalidraw/actions/actionElementLink.d.ts +12 -15
  65. package/dist/types/excalidraw/actions/actionElementLock.d.ts +41 -48
  66. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +13 -16
  67. package/dist/types/excalidraw/actions/actionExport.d.ts +127 -154
  68. package/dist/types/excalidraw/actions/actionFinalize.d.ts +69 -35
  69. package/dist/types/excalidraw/actions/actionFrame.d.ts +99 -111
  70. package/dist/types/excalidraw/actions/actionGroup.d.ts +26 -32
  71. package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -2
  72. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +505 -15
  73. package/dist/types/excalidraw/actions/actionLink.d.ts +13 -16
  74. package/dist/types/excalidraw/actions/actionMenu.d.ts +38 -47
  75. package/dist/types/excalidraw/actions/actionNavigate.d.ts +26 -32
  76. package/dist/types/excalidraw/actions/actionProperties.d.ts +186 -223
  77. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +12 -15
  78. package/dist/types/excalidraw/actions/actionStyles.d.ts +13 -16
  79. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +13 -16
  80. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +13 -16
  81. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +12 -188
  82. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +13 -16
  83. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +13 -16
  84. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +13 -16
  85. package/dist/types/excalidraw/actions/actionZindex.d.ts +2 -2
  86. package/dist/types/excalidraw/actions/types.d.ts +3 -2
  87. package/dist/types/excalidraw/appState.d.ts +16 -7
  88. package/dist/types/excalidraw/components/App.d.ts +18 -20
  89. package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -0
  90. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  91. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
  92. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  93. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -3
  94. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -3
  95. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -2
  96. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  97. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  98. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  99. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -28
  100. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  101. package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
  102. package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  103. package/dist/types/excalidraw/components/Range.d.ts +3 -3
  104. package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  105. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  106. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  107. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  108. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +12 -2
  109. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  110. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  111. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
  112. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  113. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
  114. package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -1
  115. package/dist/types/excalidraw/components/Stats/utils.d.ts +2 -1
  116. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  117. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +1 -1
  118. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
  119. package/dist/types/excalidraw/components/icons.d.ts +3 -0
  120. package/dist/types/excalidraw/components/shapes.d.ts +1 -1
  121. package/dist/types/excalidraw/data/transform.d.ts +1 -1
  122. package/dist/types/excalidraw/eraser/index.d.ts +0 -2
  123. package/dist/types/excalidraw/fonts/Fonts.d.ts +1 -1
  124. package/dist/types/excalidraw/history.d.ts +30 -22
  125. package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  126. package/dist/types/excalidraw/index.d.ts +10 -9
  127. package/dist/types/excalidraw/lasso/index.d.ts +1 -0
  128. package/dist/types/excalidraw/lasso/utils.d.ts +2 -1
  129. package/dist/types/excalidraw/renderer/helpers.d.ts +7 -2
  130. package/dist/types/excalidraw/scene/Renderer.d.ts +1 -2
  131. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  132. package/dist/types/excalidraw/snapping.d.ts +2 -2
  133. package/dist/types/excalidraw/types.d.ts +23 -10
  134. package/dist/types/math/src/angle.d.ts +2 -0
  135. package/dist/types/math/src/constants.d.ts +3 -0
  136. package/dist/types/math/src/curve.d.ts +34 -0
  137. package/dist/types/math/src/index.d.ts +1 -0
  138. package/dist/types/math/src/point.d.ts +1 -1
  139. package/dist/types/math/src/rectangle.d.ts +2 -0
  140. package/dist/types/math/src/vector.d.ts +8 -2
  141. package/dist/types/utils/src/bbox.d.ts +1 -1
  142. package/dist/types/utils/src/index.d.ts +1 -1
  143. package/dist/types/utils/src/withinBounds.d.ts +1 -1
  144. package/history.ts +147 -110
  145. package/package.json +12 -9
  146. package/dist/dev/chunk-H3EW23X2.js +0 -18294
  147. package/dist/dev/chunk-H3EW23X2.js.map +0 -7
  148. package/dist/dev/chunk-T3M44BFV.js.map +0 -7
  149. package/dist/dev/chunk-WMGEUIQQ.js +0 -7
  150. package/dist/dev/chunk-WMGEUIQQ.js.map +0 -7
  151. package/dist/prod/chunk-2Z7RPVPO.js +0 -12
  152. package/dist/prod/chunk-7M43VNIB.js +0 -33
  153. package/dist/prod/chunk-GK4XUKZB.js +0 -7
  154. package/dist/prod/data/image-7YYIWLVQ.js +0 -1
  155. package/dist/types/element/src/Shape.d.ts +0 -17
  156. package/dist/types/element/src/ShapeCache.d.ts +0 -25
  157. package/dist/types/element/src/shapes.d.ts +0 -23
  158. package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  159. package/dist/types/excalidraw/store.d.ts +0 -129
  160. package/dist/types/excalidraw/visualdebug.d.ts +0 -41
  161. package/dist/types/utils/src/collision.d.ts +0 -8
  162. /package/dist/dev/data/{image-TTQKTTOH.js.map → image-SURZSZNX.js.map} +0 -0
  163. /package/dist/dev/locales/{en-I23TB6DJ.js.map → en-SMAPCEOQ.js.map} +0 -0
@@ -18,7 +18,7 @@ export declare const actionToggleCanvasMenu: {
18
18
  errorMessage: import("react").ReactNode;
19
19
  activeEmbeddable: {
20
20
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
21
- state: "hover" | "active";
21
+ state: "active" | "hover";
22
22
  } | null;
23
23
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
24
24
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -26,7 +26,7 @@ export declare const actionToggleCanvasMenu: {
26
26
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
27
27
  isBindingEnabled: boolean;
28
28
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
29
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
29
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
30
30
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
31
31
  frameRendering: {
32
32
  enabled: boolean;
@@ -37,7 +37,7 @@ export declare const actionToggleCanvasMenu: {
37
37
  editingFrame: string | null;
38
38
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
39
39
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
40
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
40
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
41
41
  activeTool: {
42
42
  lastActiveTool: import("../types").ActiveTool | null;
43
43
  locked: boolean;
@@ -84,7 +84,7 @@ export declare const actionToggleCanvasMenu: {
84
84
  name: "imageExport" | "help" | "jsonExport";
85
85
  } | {
86
86
  name: "ttd";
87
- tab: "text-to-diagram" | "mermaid";
87
+ tab: "mermaid" | "text-to-diagram";
88
88
  } | {
89
89
  name: "commandPalette";
90
90
  } | {
@@ -156,9 +156,8 @@ export declare const actionToggleCanvasMenu: {
156
156
  shown: true;
157
157
  data: import("../charts").Spreadsheet;
158
158
  };
159
- pendingImageElementId: string | null;
160
159
  showHyperlinkPopup: false | "editor" | "info";
161
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
160
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
162
161
  snapLines: readonly import("../snapping").SnapLine[];
163
162
  originSnapOffset: {
164
163
  x: number;
@@ -169,16 +168,14 @@ export declare const actionToggleCanvasMenu: {
169
168
  followedBy: Set<import("../types").SocketId>;
170
169
  isCropping: boolean;
171
170
  croppingElementId: string | null;
172
- searchMatches: readonly {
173
- id: string;
174
- focus: boolean;
175
- matchedLines: {
176
- offsetX: number;
177
- offsetY: number;
178
- width: number;
179
- height: number;
180
- }[];
181
- }[];
171
+ searchMatches: Readonly<{
172
+ focusedId: string | null;
173
+ matches: readonly import("../types").SearchMatch[];
174
+ }> | null;
175
+ activeLockedId: string | null;
176
+ lockedMultiSelections: {
177
+ [groupId: string]: true;
178
+ };
182
179
  };
183
180
  captureUpdate: "EVENTUALLY";
184
181
  };
@@ -205,7 +202,7 @@ export declare const actionToggleEditMenu: {
205
202
  errorMessage: import("react").ReactNode;
206
203
  activeEmbeddable: {
207
204
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
208
- state: "hover" | "active";
205
+ state: "active" | "hover";
209
206
  } | null;
210
207
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
211
208
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -213,7 +210,7 @@ export declare const actionToggleEditMenu: {
213
210
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
214
211
  isBindingEnabled: boolean;
215
212
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
216
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
213
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
217
214
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
218
215
  frameRendering: {
219
216
  enabled: boolean;
@@ -224,7 +221,7 @@ export declare const actionToggleEditMenu: {
224
221
  editingFrame: string | null;
225
222
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
226
223
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
227
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
224
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
228
225
  activeTool: {
229
226
  lastActiveTool: import("../types").ActiveTool | null;
230
227
  locked: boolean;
@@ -271,7 +268,7 @@ export declare const actionToggleEditMenu: {
271
268
  name: "imageExport" | "help" | "jsonExport";
272
269
  } | {
273
270
  name: "ttd";
274
- tab: "text-to-diagram" | "mermaid";
271
+ tab: "mermaid" | "text-to-diagram";
275
272
  } | {
276
273
  name: "commandPalette";
277
274
  } | {
@@ -343,9 +340,8 @@ export declare const actionToggleEditMenu: {
343
340
  shown: true;
344
341
  data: import("../charts").Spreadsheet;
345
342
  };
346
- pendingImageElementId: string | null;
347
343
  showHyperlinkPopup: false | "editor" | "info";
348
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
344
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
349
345
  snapLines: readonly import("../snapping").SnapLine[];
350
346
  originSnapOffset: {
351
347
  x: number;
@@ -356,16 +352,14 @@ export declare const actionToggleEditMenu: {
356
352
  followedBy: Set<import("../types").SocketId>;
357
353
  isCropping: boolean;
358
354
  croppingElementId: string | null;
359
- searchMatches: readonly {
360
- id: string;
361
- focus: boolean;
362
- matchedLines: {
363
- offsetX: number;
364
- offsetY: number;
365
- width: number;
366
- height: number;
367
- }[];
368
- }[];
355
+ searchMatches: Readonly<{
356
+ focusedId: string | null;
357
+ matches: readonly import("../types").SearchMatch[];
358
+ }> | null;
359
+ activeLockedId: string | null;
360
+ lockedMultiSelections: {
361
+ [groupId: string]: true;
362
+ };
369
363
  };
370
364
  captureUpdate: "EVENTUALLY";
371
365
  };
@@ -397,7 +391,7 @@ export declare const actionShortcuts: {
397
391
  errorMessage: import("react").ReactNode;
398
392
  activeEmbeddable: {
399
393
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
400
- state: "hover" | "active";
394
+ state: "active" | "hover";
401
395
  } | null;
402
396
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
403
397
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -405,7 +399,7 @@ export declare const actionShortcuts: {
405
399
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
406
400
  isBindingEnabled: boolean;
407
401
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
408
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
402
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
409
403
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
410
404
  frameRendering: {
411
405
  enabled: boolean;
@@ -416,7 +410,7 @@ export declare const actionShortcuts: {
416
410
  editingFrame: string | null;
417
411
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
418
412
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
419
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
413
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
420
414
  activeTool: {
421
415
  lastActiveTool: import("../types").ActiveTool | null;
422
416
  locked: boolean;
@@ -525,9 +519,8 @@ export declare const actionShortcuts: {
525
519
  shown: true;
526
520
  data: import("../charts").Spreadsheet;
527
521
  };
528
- pendingImageElementId: string | null;
529
522
  showHyperlinkPopup: false | "editor" | "info";
530
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
523
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
531
524
  snapLines: readonly import("../snapping").SnapLine[];
532
525
  originSnapOffset: {
533
526
  x: number;
@@ -538,16 +531,14 @@ export declare const actionShortcuts: {
538
531
  followedBy: Set<import("../types").SocketId>;
539
532
  isCropping: boolean;
540
533
  croppingElementId: string | null;
541
- searchMatches: readonly {
542
- id: string;
543
- focus: boolean;
544
- matchedLines: {
545
- offsetX: number;
546
- offsetY: number;
547
- width: number;
548
- height: number;
549
- }[];
550
- }[];
534
+ searchMatches: Readonly<{
535
+ focusedId: string | null;
536
+ matches: readonly import("../types").SearchMatch[];
537
+ }> | null;
538
+ activeLockedId: string | null;
539
+ lockedMultiSelections: {
540
+ [groupId: string]: true;
541
+ };
551
542
  };
552
543
  captureUpdate: "EVENTUALLY";
553
544
  };
@@ -20,7 +20,7 @@ export declare const actionGoToCollaborator: {
20
20
  errorMessage: import("react").ReactNode;
21
21
  activeEmbeddable: {
22
22
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
23
- state: "hover" | "active";
23
+ state: "active" | "hover";
24
24
  } | null;
25
25
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
26
26
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -28,7 +28,7 @@ export declare const actionGoToCollaborator: {
28
28
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
29
29
  isBindingEnabled: boolean;
30
30
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
31
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
31
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
32
32
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
33
33
  frameRendering: {
34
34
  enabled: boolean;
@@ -39,7 +39,7 @@ export declare const actionGoToCollaborator: {
39
39
  editingFrame: string | null;
40
40
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
41
41
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
42
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
42
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
43
43
  activeTool: {
44
44
  lastActiveTool: import("../types").ActiveTool | null;
45
45
  locked: boolean;
@@ -87,7 +87,7 @@ export declare const actionGoToCollaborator: {
87
87
  name: "imageExport" | "help" | "jsonExport";
88
88
  } | {
89
89
  name: "ttd";
90
- tab: "text-to-diagram" | "mermaid";
90
+ tab: "mermaid" | "text-to-diagram";
91
91
  } | {
92
92
  name: "commandPalette";
93
93
  } | {
@@ -159,9 +159,8 @@ export declare const actionGoToCollaborator: {
159
159
  shown: true;
160
160
  data: import("../charts").Spreadsheet;
161
161
  };
162
- pendingImageElementId: string | null;
163
162
  showHyperlinkPopup: false | "editor" | "info";
164
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
163
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
165
164
  snapLines: readonly import("../snapping").SnapLine[];
166
165
  originSnapOffset: {
167
166
  x: number;
@@ -171,16 +170,14 @@ export declare const actionGoToCollaborator: {
171
170
  followedBy: Set<import("../types").SocketId>;
172
171
  isCropping: boolean;
173
172
  croppingElementId: string | null;
174
- searchMatches: readonly {
175
- id: string;
176
- focus: boolean;
177
- matchedLines: {
178
- offsetX: number;
179
- offsetY: number;
180
- width: number;
181
- height: number;
182
- }[];
183
- }[];
173
+ searchMatches: Readonly<{
174
+ focusedId: string | null;
175
+ matches: readonly import("../types").SearchMatch[];
176
+ }> | null;
177
+ activeLockedId: string | null;
178
+ lockedMultiSelections: {
179
+ [groupId: string]: true;
180
+ };
184
181
  };
185
182
  captureUpdate: "EVENTUALLY";
186
183
  } | {
@@ -200,7 +197,7 @@ export declare const actionGoToCollaborator: {
200
197
  errorMessage: import("react").ReactNode;
201
198
  activeEmbeddable: {
202
199
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
203
- state: "hover" | "active";
200
+ state: "active" | "hover";
204
201
  } | null;
205
202
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
206
203
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -208,7 +205,7 @@ export declare const actionGoToCollaborator: {
208
205
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
209
206
  isBindingEnabled: boolean;
210
207
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
211
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
208
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
212
209
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
213
210
  frameRendering: {
214
211
  enabled: boolean;
@@ -219,7 +216,7 @@ export declare const actionGoToCollaborator: {
219
216
  editingFrame: string | null;
220
217
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
221
218
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
222
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
219
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
223
220
  activeTool: {
224
221
  lastActiveTool: import("../types").ActiveTool | null;
225
222
  locked: boolean;
@@ -266,7 +263,7 @@ export declare const actionGoToCollaborator: {
266
263
  name: "imageExport" | "help" | "jsonExport";
267
264
  } | {
268
265
  name: "ttd";
269
- tab: "text-to-diagram" | "mermaid";
266
+ tab: "mermaid" | "text-to-diagram";
270
267
  } | {
271
268
  name: "commandPalette";
272
269
  } | {
@@ -338,9 +335,8 @@ export declare const actionGoToCollaborator: {
338
335
  shown: true;
339
336
  data: import("../charts").Spreadsheet;
340
337
  };
341
- pendingImageElementId: string | null;
342
338
  showHyperlinkPopup: false | "editor" | "info";
343
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
339
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
344
340
  snapLines: readonly import("../snapping").SnapLine[];
345
341
  originSnapOffset: {
346
342
  x: number;
@@ -350,16 +346,14 @@ export declare const actionGoToCollaborator: {
350
346
  followedBy: Set<import("../types").SocketId>;
351
347
  isCropping: boolean;
352
348
  croppingElementId: string | null;
353
- searchMatches: readonly {
354
- id: string;
355
- focus: boolean;
356
- matchedLines: {
357
- offsetX: number;
358
- offsetY: number;
359
- width: number;
360
- height: number;
361
- }[];
362
- }[];
349
+ searchMatches: Readonly<{
350
+ focusedId: string | null;
351
+ matches: readonly import("../types").SearchMatch[];
352
+ }> | null;
353
+ activeLockedId: string | null;
354
+ lockedMultiSelections: {
355
+ [groupId: string]: true;
356
+ };
363
357
  };
364
358
  captureUpdate: "EVENTUALLY";
365
359
  };