@excalidraw/excalidraw 0.18.0-58f7d33 → 0.18.0-5fffc47

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 (198) 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-X3RYHLJU.js → chunk-PWQMCSHA.js} +26 -8
  4. package/dist/dev/chunk-PWQMCSHA.js.map +7 -0
  5. package/dist/dev/chunk-YMRX7R7U.js +5671 -0
  6. package/dist/dev/chunk-YMRX7R7U.js.map +7 -0
  7. package/dist/dev/data/{image-U2IPNUKJ.js → image-L23D26XS.js} +3 -3
  8. package/dist/dev/index.css +964 -501
  9. package/dist/dev/index.css.map +3 -3
  10. package/dist/dev/index.js +11915 -10771
  11. package/dist/dev/index.js.map +4 -4
  12. package/dist/dev/locales/{en-CKWC2GMK.js → en-V3NQTBPG.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-GF46JCB3.js +12 -0
  17. package/dist/prod/chunk-HT4FKTIQ.js +4 -0
  18. package/dist/prod/data/image-NWF7UX55.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-LQE6K457.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 +44 -7
  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 +20 -4
  30. package/dist/types/{excalidraw/scene → element/src}/Scene.d.ts +16 -15
  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 +14 -6
  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} +77 -40
  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 +44 -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/positionElementsOnGrid.d.ts +2 -0
  51. package/dist/types/element/src/renderElement.d.ts +4 -1
  52. package/dist/types/element/src/resizeElements.d.ts +5 -4
  53. package/dist/types/element/src/selection.d.ts +11 -5
  54. package/dist/types/element/src/shape.d.ts +42 -0
  55. package/dist/types/element/src/sizeHelpers.d.ts +2 -2
  56. package/dist/types/element/src/store.d.ts +237 -0
  57. package/dist/types/element/src/textElement.d.ts +4 -3
  58. package/dist/types/element/src/typeChecks.d.ts +19 -1
  59. package/dist/types/element/src/types.d.ts +15 -2
  60. package/dist/types/element/src/utils.d.ts +16 -6
  61. package/dist/types/element/src/zindex.d.ts +1 -1
  62. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +57 -54
  63. package/dist/types/excalidraw/actions/actionBoundText.d.ts +38 -36
  64. package/dist/types/excalidraw/actions/actionCanvas.d.ts +256 -242
  65. package/dist/types/excalidraw/actions/actionClipboard.d.ts +114 -106
  66. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +19 -18
  67. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +57 -53
  68. package/dist/types/excalidraw/actions/actionElementLink.d.ts +18 -17
  69. package/dist/types/excalidraw/actions/actionElementLock.d.ts +53 -52
  70. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +19 -18
  71. package/dist/types/excalidraw/actions/actionExport.d.ts +181 -172
  72. package/dist/types/excalidraw/actions/actionFinalize.d.ts +85 -42
  73. package/dist/types/excalidraw/actions/actionFrame.d.ts +123 -119
  74. package/dist/types/excalidraw/actions/actionGroup.d.ts +38 -36
  75. package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -2
  76. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +545 -20
  77. package/dist/types/excalidraw/actions/actionLink.d.ts +18 -17
  78. package/dist/types/excalidraw/actions/actionMenu.d.ts +18 -391
  79. package/dist/types/excalidraw/actions/actionNavigate.d.ts +38 -36
  80. package/dist/types/excalidraw/actions/actionProperties.d.ts +305 -273
  81. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +19 -18
  82. package/dist/types/excalidraw/actions/actionStyles.d.ts +19 -18
  83. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +19 -18
  84. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +19 -18
  85. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +18 -190
  86. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  87. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +19 -18
  88. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +19 -18
  89. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +19 -18
  90. package/dist/types/excalidraw/actions/index.d.ts +2 -2
  91. package/dist/types/excalidraw/actions/types.d.ts +4 -3
  92. package/dist/types/excalidraw/appState.d.ts +23 -10
  93. package/dist/types/excalidraw/clipboard.d.ts +64 -1
  94. package/dist/types/excalidraw/components/Actions.d.ts +17 -7
  95. package/dist/types/excalidraw/components/App.d.ts +35 -22
  96. package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -0
  97. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  98. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +6 -1
  99. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  100. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +4 -3
  101. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +3 -3
  102. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +3 -2
  103. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  104. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  105. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  106. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  107. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  108. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +4 -3
  109. package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
  110. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
  111. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  112. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
  113. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
  114. package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
  115. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  116. package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -5
  117. package/dist/types/excalidraw/components/MobileToolBar.d.ts +11 -0
  118. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
  119. package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  120. package/dist/types/excalidraw/components/Range.d.ts +3 -3
  121. package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  122. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  123. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  124. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  125. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +12 -2
  126. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  127. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  128. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
  129. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  130. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
  131. package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -1
  132. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -11
  133. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
  134. package/dist/types/excalidraw/components/TextField.d.ts +1 -0
  135. package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
  136. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  137. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +1 -0
  138. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +4 -2
  139. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
  140. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  141. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
  142. package/dist/types/excalidraw/components/icons.d.ts +8 -0
  143. package/dist/types/excalidraw/components/shapes.d.ts +129 -1
  144. package/dist/types/excalidraw/data/blob.d.ts +3 -7
  145. package/dist/types/excalidraw/data/reconcile.d.ts +1 -0
  146. package/dist/types/excalidraw/data/restore.d.ts +6 -1
  147. package/dist/types/excalidraw/data/transform.d.ts +1 -1
  148. package/dist/types/excalidraw/data/types.d.ts +4 -1
  149. package/dist/types/excalidraw/editor-jotai.d.ts +6 -6
  150. package/dist/types/excalidraw/eraser/index.d.ts +0 -2
  151. package/dist/types/excalidraw/fonts/Fonts.d.ts +1 -1
  152. package/dist/types/excalidraw/history.d.ts +30 -22
  153. package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  154. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  155. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  156. package/dist/types/excalidraw/index.d.ts +11 -10
  157. package/dist/types/excalidraw/lasso/index.d.ts +1 -0
  158. package/dist/types/excalidraw/lasso/utils.d.ts +2 -1
  159. package/dist/types/excalidraw/renderer/helpers.d.ts +7 -2
  160. package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
  161. package/dist/types/excalidraw/scene/Renderer.d.ts +1 -2
  162. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  163. package/dist/types/excalidraw/scene/scrollbars.d.ts +2 -3
  164. package/dist/types/excalidraw/scene/types.d.ts +2 -0
  165. package/dist/types/excalidraw/snapping.d.ts +2 -2
  166. package/dist/types/excalidraw/types.d.ts +46 -16
  167. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
  168. package/dist/types/math/src/angle.d.ts +2 -0
  169. package/dist/types/math/src/constants.d.ts +3 -0
  170. package/dist/types/math/src/curve.d.ts +34 -0
  171. package/dist/types/math/src/index.d.ts +1 -0
  172. package/dist/types/math/src/point.d.ts +1 -1
  173. package/dist/types/math/src/rectangle.d.ts +2 -0
  174. package/dist/types/math/src/segment.d.ts +1 -0
  175. package/dist/types/math/src/vector.d.ts +8 -2
  176. package/dist/types/utils/src/bbox.d.ts +1 -1
  177. package/dist/types/utils/src/index.d.ts +1 -1
  178. package/dist/types/utils/src/withinBounds.d.ts +1 -1
  179. package/history.ts +146 -109
  180. package/package.json +13 -10
  181. package/dist/dev/chunk-KKJLIRJU.js +0 -7
  182. package/dist/dev/chunk-KKJLIRJU.js.map +0 -7
  183. package/dist/dev/chunk-LEJJ2YZY.js +0 -18711
  184. package/dist/dev/chunk-LEJJ2YZY.js.map +0 -7
  185. package/dist/dev/chunk-X3RYHLJU.js.map +0 -7
  186. package/dist/prod/chunk-IUH5AXLB.js +0 -12
  187. package/dist/prod/chunk-QUX7WTVH.js +0 -7
  188. package/dist/prod/chunk-RQK6WG4F.js +0 -33
  189. package/dist/prod/data/image-UQDATCXC.js +0 -1
  190. package/dist/types/element/src/Shape.d.ts +0 -17
  191. package/dist/types/element/src/ShapeCache.d.ts +0 -25
  192. package/dist/types/element/src/shapes.d.ts +0 -23
  193. package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  194. package/dist/types/excalidraw/store.d.ts +0 -129
  195. package/dist/types/excalidraw/visualdebug.d.ts +0 -41
  196. package/dist/types/utils/src/collision.d.ts +0 -8
  197. /package/dist/dev/data/{image-U2IPNUKJ.js.map → image-L23D26XS.js.map} +0 -0
  198. /package/dist/dev/locales/{en-CKWC2GMK.js.map → en-V3NQTBPG.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,12 +40,15 @@ 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;
44
43
  activeTool: {
45
44
  lastActiveTool: import("../types").ActiveTool | null;
46
45
  locked: boolean;
47
46
  fromSelection: boolean;
48
47
  } & import("../types").ActiveTool;
48
+ preferredSelectionTool: {
49
+ type: "selection" | "lasso";
50
+ initialized: boolean;
51
+ };
49
52
  penMode: boolean;
50
53
  penDetected: boolean;
51
54
  exportBackground: boolean;
@@ -78,8 +81,8 @@ export declare const actionSelectAllElementsInFrame: {
78
81
  zoom: Readonly<{
79
82
  value: import("../types").NormalizedZoomValue;
80
83
  }>;
81
- openMenu: "shape" | "canvas" | null;
82
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
84
+ openMenu: "canvas" | null;
85
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
83
86
  openSidebar: {
84
87
  name: string;
85
88
  tab?: string | undefined;
@@ -88,7 +91,7 @@ export declare const actionSelectAllElementsInFrame: {
88
91
  name: "imageExport" | "help" | "jsonExport";
89
92
  } | {
90
93
  name: "ttd";
91
- tab: "text-to-diagram" | "mermaid";
94
+ tab: "mermaid" | "text-to-diagram";
92
95
  } | {
93
96
  name: "commandPalette";
94
97
  } | {
@@ -157,9 +160,8 @@ export declare const actionSelectAllElementsInFrame: {
157
160
  shown: true;
158
161
  data: import("../charts").Spreadsheet;
159
162
  };
160
- pendingImageElementId: string | null;
161
163
  showHyperlinkPopup: false | "editor" | "info";
162
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
164
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
163
165
  snapLines: readonly import("../snapping").SnapLine[];
164
166
  originSnapOffset: {
165
167
  x: number;
@@ -170,16 +172,15 @@ export declare const actionSelectAllElementsInFrame: {
170
172
  followedBy: Set<import("../types").SocketId>;
171
173
  isCropping: boolean;
172
174
  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
- }[];
175
+ searchMatches: Readonly<{
176
+ focusedId: string | null;
177
+ matches: readonly import("../types").SearchMatch[];
178
+ }> | null;
179
+ activeLockedId: string | null;
180
+ lockedMultiSelections: {
181
+ [groupId: string]: true;
182
+ };
183
+ stylesPanelMode: "compact" | "full" | "mobile";
183
184
  };
184
185
  captureUpdate: "IMMEDIATELY";
185
186
  } | {
@@ -213,7 +214,7 @@ export declare const actionRemoveAllElementsFromFrame: {
213
214
  errorMessage: import("react").ReactNode;
214
215
  activeEmbeddable: {
215
216
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
216
- state: "hover" | "active";
217
+ state: "active" | "hover";
217
218
  } | null;
218
219
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
219
220
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -221,7 +222,7 @@ export declare const actionRemoveAllElementsFromFrame: {
221
222
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
222
223
  isBindingEnabled: boolean;
223
224
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
224
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
225
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
225
226
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
226
227
  frameRendering: {
227
228
  enabled: boolean;
@@ -232,12 +233,15 @@ export declare const actionRemoveAllElementsFromFrame: {
232
233
  editingFrame: string | null;
233
234
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
234
235
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
235
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
236
236
  activeTool: {
237
237
  lastActiveTool: import("../types").ActiveTool | null;
238
238
  locked: boolean;
239
239
  fromSelection: boolean;
240
240
  } & import("../types").ActiveTool;
241
+ preferredSelectionTool: {
242
+ type: "selection" | "lasso";
243
+ initialized: boolean;
244
+ };
241
245
  penMode: boolean;
242
246
  penDetected: boolean;
243
247
  exportBackground: boolean;
@@ -270,8 +274,8 @@ export declare const actionRemoveAllElementsFromFrame: {
270
274
  zoom: Readonly<{
271
275
  value: import("../types").NormalizedZoomValue;
272
276
  }>;
273
- openMenu: "shape" | "canvas" | null;
274
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
277
+ openMenu: "canvas" | null;
278
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
275
279
  openSidebar: {
276
280
  name: string;
277
281
  tab?: string | undefined;
@@ -280,7 +284,7 @@ export declare const actionRemoveAllElementsFromFrame: {
280
284
  name: "imageExport" | "help" | "jsonExport";
281
285
  } | {
282
286
  name: "ttd";
283
- tab: "text-to-diagram" | "mermaid";
287
+ tab: "mermaid" | "text-to-diagram";
284
288
  } | {
285
289
  name: "commandPalette";
286
290
  } | {
@@ -349,9 +353,8 @@ export declare const actionRemoveAllElementsFromFrame: {
349
353
  shown: true;
350
354
  data: import("../charts").Spreadsheet;
351
355
  };
352
- pendingImageElementId: string | null;
353
356
  showHyperlinkPopup: false | "editor" | "info";
354
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
357
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
355
358
  snapLines: readonly import("../snapping").SnapLine[];
356
359
  originSnapOffset: {
357
360
  x: number;
@@ -362,16 +365,15 @@ export declare const actionRemoveAllElementsFromFrame: {
362
365
  followedBy: Set<import("../types").SocketId>;
363
366
  isCropping: boolean;
364
367
  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
- }[];
368
+ searchMatches: Readonly<{
369
+ focusedId: string | null;
370
+ matches: readonly import("../types").SearchMatch[];
371
+ }> | null;
372
+ activeLockedId: string | null;
373
+ lockedMultiSelections: {
374
+ [groupId: string]: true;
375
+ };
376
+ stylesPanelMode: "compact" | "full" | "mobile";
375
377
  };
376
378
  captureUpdate: "IMMEDIATELY";
377
379
  } | {
@@ -409,7 +411,7 @@ export declare const actionupdateFrameRendering: {
409
411
  errorMessage: import("react").ReactNode;
410
412
  activeEmbeddable: {
411
413
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
412
- state: "hover" | "active";
414
+ state: "active" | "hover";
413
415
  } | null;
414
416
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
415
417
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -417,17 +419,20 @@ export declare const actionupdateFrameRendering: {
417
419
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
418
420
  isBindingEnabled: boolean;
419
421
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
420
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
422
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
421
423
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
422
424
  editingFrame: string | null;
423
425
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
424
426
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
425
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
426
427
  activeTool: {
427
428
  lastActiveTool: import("../types").ActiveTool | null;
428
429
  locked: boolean;
429
430
  fromSelection: boolean;
430
431
  } & import("../types").ActiveTool;
432
+ preferredSelectionTool: {
433
+ type: "selection" | "lasso";
434
+ initialized: boolean;
435
+ };
431
436
  penMode: boolean;
432
437
  penDetected: boolean;
433
438
  exportBackground: boolean;
@@ -460,8 +465,8 @@ export declare const actionupdateFrameRendering: {
460
465
  zoom: Readonly<{
461
466
  value: import("../types").NormalizedZoomValue;
462
467
  }>;
463
- openMenu: "shape" | "canvas" | null;
464
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
468
+ openMenu: "canvas" | null;
469
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
465
470
  openSidebar: {
466
471
  name: string;
467
472
  tab?: string | undefined;
@@ -470,7 +475,7 @@ export declare const actionupdateFrameRendering: {
470
475
  name: "imageExport" | "help" | "jsonExport";
471
476
  } | {
472
477
  name: "ttd";
473
- tab: "text-to-diagram" | "mermaid";
478
+ tab: "mermaid" | "text-to-diagram";
474
479
  } | {
475
480
  name: "commandPalette";
476
481
  } | {
@@ -542,9 +547,8 @@ export declare const actionupdateFrameRendering: {
542
547
  shown: true;
543
548
  data: import("../charts").Spreadsheet;
544
549
  };
545
- pendingImageElementId: string | null;
546
550
  showHyperlinkPopup: false | "editor" | "info";
547
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
551
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
548
552
  snapLines: readonly import("../snapping").SnapLine[];
549
553
  originSnapOffset: {
550
554
  x: number;
@@ -555,16 +559,15 @@ export declare const actionupdateFrameRendering: {
555
559
  followedBy: Set<import("../types").SocketId>;
556
560
  isCropping: boolean;
557
561
  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
- }[];
562
+ searchMatches: Readonly<{
563
+ focusedId: string | null;
564
+ matches: readonly import("../types").SearchMatch[];
565
+ }> | null;
566
+ activeLockedId: string | null;
567
+ lockedMultiSelections: {
568
+ [groupId: string]: true;
569
+ };
570
+ stylesPanelMode: "compact" | "full" | "mobile";
568
571
  };
569
572
  captureUpdate: "EVENTUALLY";
570
573
  };
@@ -598,7 +601,7 @@ export declare const actionSetFrameAsActiveTool: {
598
601
  errorMessage: import("react").ReactNode;
599
602
  activeEmbeddable: {
600
603
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
601
- state: "hover" | "active";
604
+ state: "active" | "hover";
602
605
  } | null;
603
606
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
604
607
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -606,7 +609,7 @@ export declare const actionSetFrameAsActiveTool: {
606
609
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
607
610
  isBindingEnabled: boolean;
608
611
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
609
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
612
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
610
613
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
611
614
  frameRendering: {
612
615
  enabled: boolean;
@@ -617,7 +620,10 @@ export declare const actionSetFrameAsActiveTool: {
617
620
  editingFrame: string | null;
618
621
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
619
622
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
620
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
623
+ preferredSelectionTool: {
624
+ type: "selection" | "lasso";
625
+ initialized: boolean;
626
+ };
621
627
  penMode: boolean;
622
628
  penDetected: boolean;
623
629
  exportBackground: boolean;
@@ -650,8 +656,8 @@ export declare const actionSetFrameAsActiveTool: {
650
656
  zoom: Readonly<{
651
657
  value: import("../types").NormalizedZoomValue;
652
658
  }>;
653
- openMenu: "shape" | "canvas" | null;
654
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
659
+ openMenu: "canvas" | null;
660
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
655
661
  openSidebar: {
656
662
  name: string;
657
663
  tab?: string | undefined;
@@ -660,7 +666,7 @@ export declare const actionSetFrameAsActiveTool: {
660
666
  name: "imageExport" | "help" | "jsonExport";
661
667
  } | {
662
668
  name: "ttd";
663
- tab: "text-to-diagram" | "mermaid";
669
+ tab: "mermaid" | "text-to-diagram";
664
670
  } | {
665
671
  name: "commandPalette";
666
672
  } | {
@@ -732,9 +738,8 @@ export declare const actionSetFrameAsActiveTool: {
732
738
  shown: true;
733
739
  data: import("../charts").Spreadsheet;
734
740
  };
735
- pendingImageElementId: string | null;
736
741
  showHyperlinkPopup: false | "editor" | "info";
737
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
742
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
738
743
  snapLines: readonly import("../snapping").SnapLine[];
739
744
  originSnapOffset: {
740
745
  x: number;
@@ -745,16 +750,15 @@ export declare const actionSetFrameAsActiveTool: {
745
750
  followedBy: Set<import("../types").SocketId>;
746
751
  isCropping: boolean;
747
752
  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
- }[];
753
+ searchMatches: Readonly<{
754
+ focusedId: string | null;
755
+ matches: readonly import("../types").SearchMatch[];
756
+ }> | null;
757
+ activeLockedId: string | null;
758
+ lockedMultiSelections: {
759
+ [groupId: string]: true;
760
+ };
761
+ stylesPanelMode: "compact" | "full" | "mobile";
758
762
  };
759
763
  captureUpdate: "EVENTUALLY";
760
764
  };
@@ -797,15 +801,21 @@ export declare const actionWrapSelectionInFrame: {
797
801
  frameId: string | null;
798
802
  boundElements: readonly Readonly<{
799
803
  id: string;
800
- type: "text" | "arrow";
804
+ type: "arrow" | "text";
801
805
  }>[] | null;
802
806
  updated: number;
803
807
  link: string | null;
804
808
  locked: boolean;
805
809
  customData?: Record<string, any> | undefined;
810
+ }> & Readonly<{
811
+ type: "line" | "arrow";
812
+ points: readonly import("@excalidraw/math").LocalPoint[];
813
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
814
+ startBinding: import("@excalidraw/element/types").PointBinding | null;
815
+ endBinding: import("@excalidraw/element/types").PointBinding | null;
816
+ startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
817
+ endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
806
818
  }> & {
807
- type: "rectangle";
808
- } & {
809
819
  index: import("@excalidraw/element/types").FractionalIndex;
810
820
  }) | (Readonly<{
811
821
  id: string;
@@ -834,14 +844,14 @@ export declare const actionWrapSelectionInFrame: {
834
844
  frameId: string | null;
835
845
  boundElements: readonly Readonly<{
836
846
  id: string;
837
- type: "text" | "arrow";
847
+ type: "arrow" | "text";
838
848
  }>[] | null;
839
849
  updated: number;
840
850
  link: string | null;
841
851
  locked: boolean;
842
852
  customData?: Record<string, any> | undefined;
843
853
  }> & {
844
- type: "diamond";
854
+ type: "selection";
845
855
  } & {
846
856
  index: import("@excalidraw/element/types").FractionalIndex;
847
857
  }) | (Readonly<{
@@ -871,15 +881,14 @@ export declare const actionWrapSelectionInFrame: {
871
881
  frameId: string | null;
872
882
  boundElements: readonly Readonly<{
873
883
  id: string;
874
- type: "text" | "arrow";
884
+ type: "arrow" | "text";
875
885
  }>[] | null;
876
886
  updated: number;
877
887
  link: string | null;
878
888
  locked: boolean;
879
889
  customData?: Record<string, any> | undefined;
880
890
  }> & {
881
- type: "frame";
882
- name: string | null;
891
+ type: "rectangle";
883
892
  } & {
884
893
  index: import("@excalidraw/element/types").FractionalIndex;
885
894
  }) | (Readonly<{
@@ -909,15 +918,14 @@ export declare const actionWrapSelectionInFrame: {
909
918
  frameId: string | null;
910
919
  boundElements: readonly Readonly<{
911
920
  id: string;
912
- type: "text" | "arrow";
921
+ type: "arrow" | "text";
913
922
  }>[] | null;
914
923
  updated: number;
915
924
  link: string | null;
916
925
  locked: boolean;
917
926
  customData?: Record<string, any> | undefined;
918
927
  }> & {
919
- type: "magicframe";
920
- name: string | null;
928
+ type: "diamond";
921
929
  } & {
922
930
  index: import("@excalidraw/element/types").FractionalIndex;
923
931
  }) | (Readonly<{
@@ -947,15 +955,15 @@ export declare const actionWrapSelectionInFrame: {
947
955
  frameId: string | null;
948
956
  boundElements: readonly Readonly<{
949
957
  id: string;
950
- type: "text" | "arrow";
958
+ type: "arrow" | "text";
951
959
  }>[] | null;
952
960
  updated: number;
953
961
  link: string | null;
954
962
  locked: boolean;
955
963
  customData?: Record<string, any> | undefined;
956
- }> & Readonly<{
957
- type: "embeddable";
958
964
  }> & {
965
+ type: "ellipse";
966
+ } & {
959
967
  index: import("@excalidraw/element/types").FractionalIndex;
960
968
  }) | (Readonly<{
961
969
  id: string;
@@ -984,18 +992,14 @@ export declare const actionWrapSelectionInFrame: {
984
992
  frameId: string | null;
985
993
  boundElements: readonly Readonly<{
986
994
  id: string;
987
- type: "text" | "arrow";
995
+ type: "arrow" | "text";
988
996
  }>[] | null;
989
997
  updated: number;
990
998
  link: string | null;
991
999
  locked: boolean;
992
1000
  customData?: Record<string, any> | undefined;
993
1001
  }> & 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;
1002
+ type: "embeddable";
999
1003
  }> & {
1000
1004
  index: import("@excalidraw/element/types").FractionalIndex;
1001
1005
  }) | (Readonly<{
@@ -1025,7 +1029,7 @@ export declare const actionWrapSelectionInFrame: {
1025
1029
  frameId: string | null;
1026
1030
  boundElements: readonly Readonly<{
1027
1031
  id: string;
1028
- type: "text" | "arrow";
1032
+ type: "arrow" | "text";
1029
1033
  }>[] | null;
1030
1034
  updated: number;
1031
1035
  link: string | null;
@@ -1065,25 +1069,18 @@ export declare const actionWrapSelectionInFrame: {
1065
1069
  frameId: string | null;
1066
1070
  boundElements: readonly Readonly<{
1067
1071
  id: string;
1068
- type: "text" | "arrow";
1072
+ type: "arrow" | "text";
1069
1073
  }>[] | null;
1070
1074
  updated: number;
1071
1075
  link: string | null;
1072
1076
  locked: boolean;
1073
1077
  customData?: Record<string, any> | undefined;
1074
1078
  }> & 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
- };
1079
+ type: "image";
1080
+ fileId: import("@excalidraw/element/types").FileId | null;
1081
+ status: "pending" | "error" | "saved";
1082
+ scale: [number, number];
1083
+ crop: import("@excalidraw/element/types").ImageCrop | null;
1087
1084
  }> & {
1088
1085
  index: import("@excalidraw/element/types").FractionalIndex;
1089
1086
  }) | (Readonly<{
@@ -1113,14 +1110,15 @@ export declare const actionWrapSelectionInFrame: {
1113
1110
  frameId: string | null;
1114
1111
  boundElements: readonly Readonly<{
1115
1112
  id: string;
1116
- type: "text" | "arrow";
1113
+ type: "arrow" | "text";
1117
1114
  }>[] | null;
1118
1115
  updated: number;
1119
1116
  link: string | null;
1120
1117
  locked: boolean;
1121
1118
  customData?: Record<string, any> | undefined;
1122
1119
  }> & {
1123
- type: "selection";
1120
+ type: "frame";
1121
+ name: string | null;
1124
1122
  } & {
1125
1123
  index: import("@excalidraw/element/types").FractionalIndex;
1126
1124
  }) | (Readonly<{
@@ -1150,14 +1148,15 @@ export declare const actionWrapSelectionInFrame: {
1150
1148
  frameId: string | null;
1151
1149
  boundElements: readonly Readonly<{
1152
1150
  id: string;
1153
- type: "text" | "arrow";
1151
+ type: "arrow" | "text";
1154
1152
  }>[] | null;
1155
1153
  updated: number;
1156
1154
  link: string | null;
1157
1155
  locked: boolean;
1158
1156
  customData?: Record<string, any> | undefined;
1159
1157
  }> & {
1160
- type: "ellipse";
1158
+ type: "magicframe";
1159
+ name: string | null;
1161
1160
  } & {
1162
1161
  index: import("@excalidraw/element/types").FractionalIndex;
1163
1162
  }) | (Readonly<{
@@ -1187,20 +1186,25 @@ export declare const actionWrapSelectionInFrame: {
1187
1186
  frameId: string | null;
1188
1187
  boundElements: readonly Readonly<{
1189
1188
  id: string;
1190
- type: "text" | "arrow";
1189
+ type: "arrow" | "text";
1191
1190
  }>[] | null;
1192
1191
  updated: number;
1193
1192
  link: string | null;
1194
1193
  locked: boolean;
1195
1194
  customData?: Record<string, any> | undefined;
1196
1195
  }> & 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;
1196
+ type: "text";
1197
+ fontSize: number;
1198
+ fontFamily: number;
1199
+ text: string;
1200
+ textAlign: string;
1201
+ verticalAlign: string;
1202
+ containerId: string | null;
1203
+ originalText: string;
1204
+ autoResize: boolean;
1205
+ lineHeight: number & {
1206
+ _brand: "unitlessLineHeight";
1207
+ };
1204
1208
  }> & {
1205
1209
  index: import("@excalidraw/element/types").FractionalIndex;
1206
1210
  }) | (Readonly<{
@@ -1230,7 +1234,7 @@ export declare const actionWrapSelectionInFrame: {
1230
1234
  frameId: string | null;
1231
1235
  boundElements: readonly Readonly<{
1232
1236
  id: string;
1233
- type: "text" | "arrow";
1237
+ type: "arrow" | "text";
1234
1238
  }>[] | null;
1235
1239
  updated: number;
1236
1240
  link: string | null;