@excalidraw/excalidraw 0.18.0-58f7d33 → 0.18.0-6d870b1c8

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