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

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 (167) 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-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-SURZSZNX.js} +3 -3
  8. package/dist/dev/index.css +100 -22
  9. package/dist/dev/index.css.map +3 -3
  10. package/dist/dev/index.js +8406 -9312
  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-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 +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 +20 -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 +3 -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} +63 -38
  37. package/dist/types/element/src/distance.d.ts +2 -2
  38. package/dist/types/element/src/dragElements.d.ts +3 -2
  39. package/dist/types/element/src/duplicate.d.ts +10 -13
  40. package/dist/types/element/src/elbowArrow.d.ts +1 -1
  41. package/dist/types/element/src/flowchart.d.ts +3 -2
  42. package/dist/types/element/src/fractionalIndex.d.ts +9 -3
  43. package/dist/types/element/src/frame.d.ts +5 -4
  44. package/dist/types/element/src/index.d.ts +43 -2
  45. package/dist/types/element/src/linearElementEditor.d.ts +22 -36
  46. package/dist/types/element/src/mutateElement.d.ts +11 -3
  47. package/dist/types/element/src/newElement.d.ts +4 -3
  48. package/dist/types/element/src/resizeElements.d.ts +5 -4
  49. package/dist/types/element/src/selection.d.ts +11 -5
  50. package/dist/types/element/src/shape.d.ts +42 -0
  51. package/dist/types/element/src/sizeHelpers.d.ts +2 -2
  52. package/dist/types/element/src/store.d.ts +232 -0
  53. package/dist/types/element/src/textElement.d.ts +4 -3
  54. package/dist/types/element/src/typeChecks.d.ts +19 -1
  55. package/dist/types/element/src/types.d.ts +15 -2
  56. package/dist/types/element/src/utils.d.ts +16 -6
  57. package/dist/types/element/src/zindex.d.ts +1 -1
  58. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +42 -51
  59. package/dist/types/excalidraw/actions/actionBoundText.d.ts +28 -34
  60. package/dist/types/excalidraw/actions/actionCanvas.d.ts +188 -227
  61. package/dist/types/excalidraw/actions/actionClipboard.d.ts +81 -98
  62. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +14 -17
  63. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +37 -45
  64. package/dist/types/excalidraw/actions/actionElementLink.d.ts +13 -16
  65. package/dist/types/excalidraw/actions/actionElementLock.d.ts +43 -50
  66. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +14 -17
  67. package/dist/types/excalidraw/actions/actionExport.d.ts +136 -163
  68. package/dist/types/excalidraw/actions/actionFinalize.d.ts +71 -37
  69. package/dist/types/excalidraw/actions/actionFrame.d.ts +103 -115
  70. package/dist/types/excalidraw/actions/actionGroup.d.ts +28 -34
  71. package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -2
  72. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +506 -16
  73. package/dist/types/excalidraw/actions/actionLink.d.ts +13 -16
  74. package/dist/types/excalidraw/actions/actionMenu.d.ts +39 -48
  75. package/dist/types/excalidraw/actions/actionNavigate.d.ts +27 -33
  76. package/dist/types/excalidraw/actions/actionProperties.d.ts +203 -240
  77. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +13 -16
  78. package/dist/types/excalidraw/actions/actionStyles.d.ts +14 -17
  79. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +14 -17
  80. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +14 -17
  81. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +13 -189
  82. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  83. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +14 -17
  84. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +14 -17
  85. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +14 -17
  86. package/dist/types/excalidraw/actions/types.d.ts +4 -3
  87. package/dist/types/excalidraw/appState.d.ts +19 -10
  88. package/dist/types/excalidraw/components/App.d.ts +30 -19
  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 +23 -0
  100. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +4 -3
  101. package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  102. package/dist/types/excalidraw/components/Range.d.ts +3 -3
  103. package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  104. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  105. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  106. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  107. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +12 -2
  108. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  109. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  110. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
  111. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  112. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
  113. package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -1
  114. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -11
  115. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  116. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +1 -0
  117. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  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/editor-jotai.d.ts +6 -6
  123. package/dist/types/excalidraw/eraser/index.d.ts +0 -2
  124. package/dist/types/excalidraw/fonts/Fonts.d.ts +1 -1
  125. package/dist/types/excalidraw/history.d.ts +30 -22
  126. package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  127. package/dist/types/excalidraw/index.d.ts +9 -9
  128. package/dist/types/excalidraw/lasso/index.d.ts +1 -0
  129. package/dist/types/excalidraw/lasso/utils.d.ts +2 -1
  130. package/dist/types/excalidraw/renderer/helpers.d.ts +7 -2
  131. package/dist/types/excalidraw/scene/Renderer.d.ts +1 -2
  132. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  133. package/dist/types/excalidraw/scene/scrollbars.d.ts +2 -3
  134. package/dist/types/excalidraw/scene/types.d.ts +2 -0
  135. package/dist/types/excalidraw/snapping.d.ts +2 -2
  136. package/dist/types/excalidraw/types.d.ts +30 -10
  137. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
  138. package/dist/types/math/src/angle.d.ts +2 -0
  139. package/dist/types/math/src/constants.d.ts +3 -0
  140. package/dist/types/math/src/curve.d.ts +34 -0
  141. package/dist/types/math/src/index.d.ts +1 -0
  142. package/dist/types/math/src/point.d.ts +1 -1
  143. package/dist/types/math/src/rectangle.d.ts +2 -0
  144. package/dist/types/math/src/vector.d.ts +8 -2
  145. package/dist/types/utils/src/bbox.d.ts +1 -1
  146. package/dist/types/utils/src/index.d.ts +1 -1
  147. package/dist/types/utils/src/withinBounds.d.ts +1 -1
  148. package/history.ts +147 -110
  149. package/package.json +12 -9
  150. package/dist/dev/chunk-KKJLIRJU.js +0 -7
  151. package/dist/dev/chunk-KKJLIRJU.js.map +0 -7
  152. package/dist/dev/chunk-LEJJ2YZY.js +0 -18711
  153. package/dist/dev/chunk-LEJJ2YZY.js.map +0 -7
  154. package/dist/dev/chunk-X3RYHLJU.js.map +0 -7
  155. package/dist/prod/chunk-IUH5AXLB.js +0 -12
  156. package/dist/prod/chunk-QUX7WTVH.js +0 -7
  157. package/dist/prod/chunk-RQK6WG4F.js +0 -33
  158. package/dist/prod/data/image-UQDATCXC.js +0 -1
  159. package/dist/types/element/src/Shape.d.ts +0 -17
  160. package/dist/types/element/src/ShapeCache.d.ts +0 -25
  161. package/dist/types/element/src/shapes.d.ts +0 -23
  162. package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  163. package/dist/types/excalidraw/store.d.ts +0 -129
  164. package/dist/types/excalidraw/visualdebug.d.ts +0 -41
  165. package/dist/types/utils/src/collision.d.ts +0 -8
  166. /package/dist/dev/data/{image-U2IPNUKJ.js.map → image-SURZSZNX.js.map} +0 -0
  167. /package/dist/dev/locales/{en-CKWC2GMK.js.map → en-SMAPCEOQ.js.map} +0 -0
@@ -21,7 +21,7 @@ export declare const actionSelectAllElementsInFrame: {
21
21
  errorMessage: import("react").ReactNode;
22
22
  activeEmbeddable: {
23
23
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
24
- state: "hover" | "active";
24
+ state: "active" | "hover";
25
25
  } | null;
26
26
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
27
27
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -29,7 +29,7 @@ export declare const actionSelectAllElementsInFrame: {
29
29
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
30
30
  isBindingEnabled: boolean;
31
31
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
32
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
32
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
33
33
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
34
34
  frameRendering: {
35
35
  enabled: boolean;
@@ -40,7 +40,7 @@ export declare const actionSelectAllElementsInFrame: {
40
40
  editingFrame: string | null;
41
41
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
42
42
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
43
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
43
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
44
44
  activeTool: {
45
45
  lastActiveTool: import("../types").ActiveTool | null;
46
46
  locked: boolean;
@@ -78,7 +78,7 @@ export declare const actionSelectAllElementsInFrame: {
78
78
  zoom: Readonly<{
79
79
  value: import("../types").NormalizedZoomValue;
80
80
  }>;
81
- openMenu: "shape" | "canvas" | null;
81
+ openMenu: "canvas" | "shape" | null;
82
82
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
83
83
  openSidebar: {
84
84
  name: string;
@@ -88,7 +88,7 @@ export declare const actionSelectAllElementsInFrame: {
88
88
  name: "imageExport" | "help" | "jsonExport";
89
89
  } | {
90
90
  name: "ttd";
91
- tab: "text-to-diagram" | "mermaid";
91
+ tab: "mermaid" | "text-to-diagram";
92
92
  } | {
93
93
  name: "commandPalette";
94
94
  } | {
@@ -157,9 +157,8 @@ export declare const actionSelectAllElementsInFrame: {
157
157
  shown: true;
158
158
  data: import("../charts").Spreadsheet;
159
159
  };
160
- pendingImageElementId: string | null;
161
160
  showHyperlinkPopup: false | "editor" | "info";
162
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
161
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
163
162
  snapLines: readonly import("../snapping").SnapLine[];
164
163
  originSnapOffset: {
165
164
  x: number;
@@ -170,16 +169,14 @@ export declare const actionSelectAllElementsInFrame: {
170
169
  followedBy: Set<import("../types").SocketId>;
171
170
  isCropping: boolean;
172
171
  croppingElementId: string | null;
173
- searchMatches: readonly {
174
- id: string;
175
- focus: boolean;
176
- matchedLines: {
177
- offsetX: number;
178
- offsetY: number;
179
- width: number;
180
- height: number;
181
- }[];
182
- }[];
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
+ };
183
180
  };
184
181
  captureUpdate: "IMMEDIATELY";
185
182
  } | {
@@ -213,7 +210,7 @@ export declare const actionRemoveAllElementsFromFrame: {
213
210
  errorMessage: import("react").ReactNode;
214
211
  activeEmbeddable: {
215
212
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
216
- state: "hover" | "active";
213
+ state: "active" | "hover";
217
214
  } | null;
218
215
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
219
216
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -221,7 +218,7 @@ export declare const actionRemoveAllElementsFromFrame: {
221
218
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
222
219
  isBindingEnabled: boolean;
223
220
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
224
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
221
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
225
222
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
226
223
  frameRendering: {
227
224
  enabled: boolean;
@@ -232,7 +229,7 @@ export declare const actionRemoveAllElementsFromFrame: {
232
229
  editingFrame: string | null;
233
230
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
234
231
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
235
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
232
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
236
233
  activeTool: {
237
234
  lastActiveTool: import("../types").ActiveTool | null;
238
235
  locked: boolean;
@@ -270,7 +267,7 @@ export declare const actionRemoveAllElementsFromFrame: {
270
267
  zoom: Readonly<{
271
268
  value: import("../types").NormalizedZoomValue;
272
269
  }>;
273
- openMenu: "shape" | "canvas" | null;
270
+ openMenu: "canvas" | "shape" | null;
274
271
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
275
272
  openSidebar: {
276
273
  name: string;
@@ -280,7 +277,7 @@ export declare const actionRemoveAllElementsFromFrame: {
280
277
  name: "imageExport" | "help" | "jsonExport";
281
278
  } | {
282
279
  name: "ttd";
283
- tab: "text-to-diagram" | "mermaid";
280
+ tab: "mermaid" | "text-to-diagram";
284
281
  } | {
285
282
  name: "commandPalette";
286
283
  } | {
@@ -349,9 +346,8 @@ export declare const actionRemoveAllElementsFromFrame: {
349
346
  shown: true;
350
347
  data: import("../charts").Spreadsheet;
351
348
  };
352
- pendingImageElementId: string | null;
353
349
  showHyperlinkPopup: false | "editor" | "info";
354
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
350
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
355
351
  snapLines: readonly import("../snapping").SnapLine[];
356
352
  originSnapOffset: {
357
353
  x: number;
@@ -362,16 +358,14 @@ export declare const actionRemoveAllElementsFromFrame: {
362
358
  followedBy: Set<import("../types").SocketId>;
363
359
  isCropping: boolean;
364
360
  croppingElementId: string | null;
365
- searchMatches: readonly {
366
- id: string;
367
- focus: boolean;
368
- matchedLines: {
369
- offsetX: number;
370
- offsetY: number;
371
- width: number;
372
- height: number;
373
- }[];
374
- }[];
361
+ searchMatches: Readonly<{
362
+ focusedId: string | null;
363
+ matches: readonly import("../types").SearchMatch[];
364
+ }> | null;
365
+ activeLockedId: string | null;
366
+ lockedMultiSelections: {
367
+ [groupId: string]: true;
368
+ };
375
369
  };
376
370
  captureUpdate: "IMMEDIATELY";
377
371
  } | {
@@ -409,7 +403,7 @@ export declare const actionupdateFrameRendering: {
409
403
  errorMessage: import("react").ReactNode;
410
404
  activeEmbeddable: {
411
405
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
412
- state: "hover" | "active";
406
+ state: "active" | "hover";
413
407
  } | null;
414
408
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
415
409
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -417,12 +411,12 @@ export declare const actionupdateFrameRendering: {
417
411
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
418
412
  isBindingEnabled: boolean;
419
413
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
420
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
414
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
421
415
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
422
416
  editingFrame: string | null;
423
417
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
424
418
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
425
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
419
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
426
420
  activeTool: {
427
421
  lastActiveTool: import("../types").ActiveTool | null;
428
422
  locked: boolean;
@@ -460,7 +454,7 @@ export declare const actionupdateFrameRendering: {
460
454
  zoom: Readonly<{
461
455
  value: import("../types").NormalizedZoomValue;
462
456
  }>;
463
- openMenu: "shape" | "canvas" | null;
457
+ openMenu: "canvas" | "shape" | null;
464
458
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
465
459
  openSidebar: {
466
460
  name: string;
@@ -470,7 +464,7 @@ export declare const actionupdateFrameRendering: {
470
464
  name: "imageExport" | "help" | "jsonExport";
471
465
  } | {
472
466
  name: "ttd";
473
- tab: "text-to-diagram" | "mermaid";
467
+ tab: "mermaid" | "text-to-diagram";
474
468
  } | {
475
469
  name: "commandPalette";
476
470
  } | {
@@ -542,9 +536,8 @@ export declare const actionupdateFrameRendering: {
542
536
  shown: true;
543
537
  data: import("../charts").Spreadsheet;
544
538
  };
545
- pendingImageElementId: string | null;
546
539
  showHyperlinkPopup: false | "editor" | "info";
547
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
540
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
548
541
  snapLines: readonly import("../snapping").SnapLine[];
549
542
  originSnapOffset: {
550
543
  x: number;
@@ -555,16 +548,14 @@ export declare const actionupdateFrameRendering: {
555
548
  followedBy: Set<import("../types").SocketId>;
556
549
  isCropping: boolean;
557
550
  croppingElementId: string | null;
558
- searchMatches: readonly {
559
- id: string;
560
- focus: boolean;
561
- matchedLines: {
562
- offsetX: number;
563
- offsetY: number;
564
- width: number;
565
- height: number;
566
- }[];
567
- }[];
551
+ searchMatches: Readonly<{
552
+ focusedId: string | null;
553
+ matches: readonly import("../types").SearchMatch[];
554
+ }> | null;
555
+ activeLockedId: string | null;
556
+ lockedMultiSelections: {
557
+ [groupId: string]: true;
558
+ };
568
559
  };
569
560
  captureUpdate: "EVENTUALLY";
570
561
  };
@@ -598,7 +589,7 @@ export declare const actionSetFrameAsActiveTool: {
598
589
  errorMessage: import("react").ReactNode;
599
590
  activeEmbeddable: {
600
591
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
601
- state: "hover" | "active";
592
+ state: "active" | "hover";
602
593
  } | null;
603
594
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
604
595
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -606,7 +597,7 @@ export declare const actionSetFrameAsActiveTool: {
606
597
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
607
598
  isBindingEnabled: boolean;
608
599
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
609
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
600
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
610
601
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
611
602
  frameRendering: {
612
603
  enabled: boolean;
@@ -617,7 +608,7 @@ export declare const actionSetFrameAsActiveTool: {
617
608
  editingFrame: string | null;
618
609
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
619
610
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
620
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
611
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
621
612
  penMode: boolean;
622
613
  penDetected: boolean;
623
614
  exportBackground: boolean;
@@ -650,7 +641,7 @@ export declare const actionSetFrameAsActiveTool: {
650
641
  zoom: Readonly<{
651
642
  value: import("../types").NormalizedZoomValue;
652
643
  }>;
653
- openMenu: "shape" | "canvas" | null;
644
+ openMenu: "canvas" | "shape" | null;
654
645
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
655
646
  openSidebar: {
656
647
  name: string;
@@ -660,7 +651,7 @@ export declare const actionSetFrameAsActiveTool: {
660
651
  name: "imageExport" | "help" | "jsonExport";
661
652
  } | {
662
653
  name: "ttd";
663
- tab: "text-to-diagram" | "mermaid";
654
+ tab: "mermaid" | "text-to-diagram";
664
655
  } | {
665
656
  name: "commandPalette";
666
657
  } | {
@@ -732,9 +723,8 @@ export declare const actionSetFrameAsActiveTool: {
732
723
  shown: true;
733
724
  data: import("../charts").Spreadsheet;
734
725
  };
735
- pendingImageElementId: string | null;
736
726
  showHyperlinkPopup: false | "editor" | "info";
737
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
727
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
738
728
  snapLines: readonly import("../snapping").SnapLine[];
739
729
  originSnapOffset: {
740
730
  x: number;
@@ -745,16 +735,14 @@ export declare const actionSetFrameAsActiveTool: {
745
735
  followedBy: Set<import("../types").SocketId>;
746
736
  isCropping: boolean;
747
737
  croppingElementId: string | null;
748
- searchMatches: readonly {
749
- id: string;
750
- focus: boolean;
751
- matchedLines: {
752
- offsetX: number;
753
- offsetY: number;
754
- width: number;
755
- height: number;
756
- }[];
757
- }[];
738
+ searchMatches: Readonly<{
739
+ focusedId: string | null;
740
+ matches: readonly import("../types").SearchMatch[];
741
+ }> | null;
742
+ activeLockedId: string | null;
743
+ lockedMultiSelections: {
744
+ [groupId: string]: true;
745
+ };
758
746
  };
759
747
  captureUpdate: "EVENTUALLY";
760
748
  };
@@ -797,15 +785,21 @@ export declare const actionWrapSelectionInFrame: {
797
785
  frameId: string | null;
798
786
  boundElements: readonly Readonly<{
799
787
  id: string;
800
- type: "text" | "arrow";
788
+ type: "arrow" | "text";
801
789
  }>[] | null;
802
790
  updated: number;
803
791
  link: string | null;
804
792
  locked: boolean;
805
793
  customData?: Record<string, any> | undefined;
794
+ }> & Readonly<{
795
+ type: "line" | "arrow";
796
+ points: readonly import("@excalidraw/math").LocalPoint[];
797
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
798
+ startBinding: import("@excalidraw/element/types").PointBinding | null;
799
+ endBinding: import("@excalidraw/element/types").PointBinding | null;
800
+ startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
801
+ endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
806
802
  }> & {
807
- type: "rectangle";
808
- } & {
809
803
  index: import("@excalidraw/element/types").FractionalIndex;
810
804
  }) | (Readonly<{
811
805
  id: string;
@@ -834,14 +828,14 @@ export declare const actionWrapSelectionInFrame: {
834
828
  frameId: string | null;
835
829
  boundElements: readonly Readonly<{
836
830
  id: string;
837
- type: "text" | "arrow";
831
+ type: "arrow" | "text";
838
832
  }>[] | null;
839
833
  updated: number;
840
834
  link: string | null;
841
835
  locked: boolean;
842
836
  customData?: Record<string, any> | undefined;
843
837
  }> & {
844
- type: "diamond";
838
+ type: "selection";
845
839
  } & {
846
840
  index: import("@excalidraw/element/types").FractionalIndex;
847
841
  }) | (Readonly<{
@@ -871,15 +865,14 @@ export declare const actionWrapSelectionInFrame: {
871
865
  frameId: string | null;
872
866
  boundElements: readonly Readonly<{
873
867
  id: string;
874
- type: "text" | "arrow";
868
+ type: "arrow" | "text";
875
869
  }>[] | null;
876
870
  updated: number;
877
871
  link: string | null;
878
872
  locked: boolean;
879
873
  customData?: Record<string, any> | undefined;
880
874
  }> & {
881
- type: "frame";
882
- name: string | null;
875
+ type: "rectangle";
883
876
  } & {
884
877
  index: import("@excalidraw/element/types").FractionalIndex;
885
878
  }) | (Readonly<{
@@ -909,15 +902,14 @@ export declare const actionWrapSelectionInFrame: {
909
902
  frameId: string | null;
910
903
  boundElements: readonly Readonly<{
911
904
  id: string;
912
- type: "text" | "arrow";
905
+ type: "arrow" | "text";
913
906
  }>[] | null;
914
907
  updated: number;
915
908
  link: string | null;
916
909
  locked: boolean;
917
910
  customData?: Record<string, any> | undefined;
918
911
  }> & {
919
- type: "magicframe";
920
- name: string | null;
912
+ type: "diamond";
921
913
  } & {
922
914
  index: import("@excalidraw/element/types").FractionalIndex;
923
915
  }) | (Readonly<{
@@ -947,15 +939,15 @@ export declare const actionWrapSelectionInFrame: {
947
939
  frameId: string | null;
948
940
  boundElements: readonly Readonly<{
949
941
  id: string;
950
- type: "text" | "arrow";
942
+ type: "arrow" | "text";
951
943
  }>[] | null;
952
944
  updated: number;
953
945
  link: string | null;
954
946
  locked: boolean;
955
947
  customData?: Record<string, any> | undefined;
956
- }> & Readonly<{
957
- type: "embeddable";
958
948
  }> & {
949
+ type: "ellipse";
950
+ } & {
959
951
  index: import("@excalidraw/element/types").FractionalIndex;
960
952
  }) | (Readonly<{
961
953
  id: string;
@@ -984,18 +976,14 @@ export declare const actionWrapSelectionInFrame: {
984
976
  frameId: string | null;
985
977
  boundElements: readonly Readonly<{
986
978
  id: string;
987
- type: "text" | "arrow";
979
+ type: "arrow" | "text";
988
980
  }>[] | null;
989
981
  updated: number;
990
982
  link: string | null;
991
983
  locked: boolean;
992
984
  customData?: Record<string, any> | undefined;
993
985
  }> & Readonly<{
994
- type: "image";
995
- fileId: import("@excalidraw/element/types").FileId | null;
996
- status: "pending" | "saved" | "error";
997
- scale: [number, number];
998
- crop: import("@excalidraw/element/types").ImageCrop | null;
986
+ type: "embeddable";
999
987
  }> & {
1000
988
  index: import("@excalidraw/element/types").FractionalIndex;
1001
989
  }) | (Readonly<{
@@ -1025,7 +1013,7 @@ export declare const actionWrapSelectionInFrame: {
1025
1013
  frameId: string | null;
1026
1014
  boundElements: readonly Readonly<{
1027
1015
  id: string;
1028
- type: "text" | "arrow";
1016
+ type: "arrow" | "text";
1029
1017
  }>[] | null;
1030
1018
  updated: number;
1031
1019
  link: string | null;
@@ -1065,25 +1053,18 @@ export declare const actionWrapSelectionInFrame: {
1065
1053
  frameId: string | null;
1066
1054
  boundElements: readonly Readonly<{
1067
1055
  id: string;
1068
- type: "text" | "arrow";
1056
+ type: "arrow" | "text";
1069
1057
  }>[] | null;
1070
1058
  updated: number;
1071
1059
  link: string | null;
1072
1060
  locked: boolean;
1073
1061
  customData?: Record<string, any> | undefined;
1074
1062
  }> & Readonly<{
1075
- type: "text";
1076
- fontSize: number;
1077
- fontFamily: number;
1078
- text: string;
1079
- textAlign: string;
1080
- verticalAlign: string;
1081
- containerId: string | null;
1082
- originalText: string;
1083
- autoResize: boolean;
1084
- lineHeight: number & {
1085
- _brand: "unitlessLineHeight";
1086
- };
1063
+ type: "image";
1064
+ fileId: import("@excalidraw/element/types").FileId | null;
1065
+ status: "pending" | "error" | "saved";
1066
+ scale: [number, number];
1067
+ crop: import("@excalidraw/element/types").ImageCrop | null;
1087
1068
  }> & {
1088
1069
  index: import("@excalidraw/element/types").FractionalIndex;
1089
1070
  }) | (Readonly<{
@@ -1113,14 +1094,15 @@ export declare const actionWrapSelectionInFrame: {
1113
1094
  frameId: string | null;
1114
1095
  boundElements: readonly Readonly<{
1115
1096
  id: string;
1116
- type: "text" | "arrow";
1097
+ type: "arrow" | "text";
1117
1098
  }>[] | null;
1118
1099
  updated: number;
1119
1100
  link: string | null;
1120
1101
  locked: boolean;
1121
1102
  customData?: Record<string, any> | undefined;
1122
1103
  }> & {
1123
- type: "selection";
1104
+ type: "frame";
1105
+ name: string | null;
1124
1106
  } & {
1125
1107
  index: import("@excalidraw/element/types").FractionalIndex;
1126
1108
  }) | (Readonly<{
@@ -1150,14 +1132,15 @@ export declare const actionWrapSelectionInFrame: {
1150
1132
  frameId: string | null;
1151
1133
  boundElements: readonly Readonly<{
1152
1134
  id: string;
1153
- type: "text" | "arrow";
1135
+ type: "arrow" | "text";
1154
1136
  }>[] | null;
1155
1137
  updated: number;
1156
1138
  link: string | null;
1157
1139
  locked: boolean;
1158
1140
  customData?: Record<string, any> | undefined;
1159
1141
  }> & {
1160
- type: "ellipse";
1142
+ type: "magicframe";
1143
+ name: string | null;
1161
1144
  } & {
1162
1145
  index: import("@excalidraw/element/types").FractionalIndex;
1163
1146
  }) | (Readonly<{
@@ -1187,20 +1170,25 @@ export declare const actionWrapSelectionInFrame: {
1187
1170
  frameId: string | null;
1188
1171
  boundElements: readonly Readonly<{
1189
1172
  id: string;
1190
- type: "text" | "arrow";
1173
+ type: "arrow" | "text";
1191
1174
  }>[] | null;
1192
1175
  updated: number;
1193
1176
  link: string | null;
1194
1177
  locked: boolean;
1195
1178
  customData?: Record<string, any> | undefined;
1196
1179
  }> & Readonly<{
1197
- type: "line" | "arrow";
1198
- points: readonly import("@excalidraw/math").LocalPoint[];
1199
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1200
- startBinding: import("@excalidraw/element/types").PointBinding | null;
1201
- endBinding: import("@excalidraw/element/types").PointBinding | null;
1202
- startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1203
- endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1180
+ type: "text";
1181
+ fontSize: number;
1182
+ fontFamily: number;
1183
+ text: string;
1184
+ textAlign: string;
1185
+ verticalAlign: string;
1186
+ containerId: string | null;
1187
+ originalText: string;
1188
+ autoResize: boolean;
1189
+ lineHeight: number & {
1190
+ _brand: "unitlessLineHeight";
1191
+ };
1204
1192
  }> & {
1205
1193
  index: import("@excalidraw/element/types").FractionalIndex;
1206
1194
  }) | (Readonly<{
@@ -1230,7 +1218,7 @@ export declare const actionWrapSelectionInFrame: {
1230
1218
  frameId: string | null;
1231
1219
  boundElements: readonly Readonly<{
1232
1220
  id: string;
1233
- type: "text" | "arrow";
1221
+ type: "arrow" | "text";
1234
1222
  }>[] | null;
1235
1223
  updated: number;
1236
1224
  link: string | null;