@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
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { LinearElementEditor } from "@excalidraw/element/linearElementEditor";
3
2
  import type { ExcalidrawElement } from "@excalidraw/element/types";
4
3
  import type { AppClassProperties, AppState } from "../types";
5
4
  export declare const actionDeleteSelected: {
@@ -13,7 +12,7 @@ export declare const actionDeleteSelected: {
13
12
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, formData: any, app: AppClassProperties) => false | {
14
13
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
15
14
  appState: {
16
- editingLinearElement: null;
15
+ selectedLinearElement: null;
17
16
  contextMenu: {
18
17
  items: import("../components/ContextMenu").ContextMenuItems;
19
18
  top: number;
@@ -24,7 +23,7 @@ export declare const actionDeleteSelected: {
24
23
  errorMessage: import("react").ReactNode;
25
24
  activeEmbeddable: {
26
25
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
27
- state: "hover" | "active";
26
+ state: "active" | "hover";
28
27
  } | null;
29
28
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
30
29
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -32,7 +31,7 @@ export declare const actionDeleteSelected: {
32
31
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
33
32
  isBindingEnabled: boolean;
34
33
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
35
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
34
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
36
35
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
37
36
  frameRendering: {
38
37
  enabled: boolean;
@@ -48,6 +47,10 @@ export declare const actionDeleteSelected: {
48
47
  locked: boolean;
49
48
  fromSelection: boolean;
50
49
  } & import("../types").ActiveTool;
50
+ preferredSelectionTool: {
51
+ type: "selection" | "lasso";
52
+ initialized: boolean;
53
+ };
51
54
  penMode: boolean;
52
55
  penDetected: boolean;
53
56
  exportBackground: boolean;
@@ -80,8 +83,8 @@ export declare const actionDeleteSelected: {
80
83
  zoom: Readonly<{
81
84
  value: import("../types").NormalizedZoomValue;
82
85
  }>;
83
- openMenu: "shape" | "canvas" | null;
84
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
86
+ openMenu: "canvas" | null;
87
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
85
88
  openSidebar: {
86
89
  name: string;
87
90
  tab?: string | undefined;
@@ -90,7 +93,7 @@ export declare const actionDeleteSelected: {
90
93
  name: "imageExport" | "help" | "jsonExport";
91
94
  } | {
92
95
  name: "ttd";
93
- tab: "text-to-diagram" | "mermaid";
96
+ tab: "mermaid" | "text-to-diagram";
94
97
  } | {
95
98
  name: "commandPalette";
96
99
  } | {
@@ -162,9 +165,7 @@ export declare const actionDeleteSelected: {
162
165
  shown: true;
163
166
  data: import("../charts").Spreadsheet;
164
167
  };
165
- pendingImageElementId: string | null;
166
168
  showHyperlinkPopup: false | "editor" | "info";
167
- selectedLinearElement: LinearElementEditor | null;
168
169
  snapLines: readonly import("../snapping").SnapLine[];
169
170
  originSnapOffset: {
170
171
  x: number;
@@ -175,22 +176,21 @@ export declare const actionDeleteSelected: {
175
176
  followedBy: Set<import("../types").SocketId>;
176
177
  isCropping: boolean;
177
178
  croppingElementId: string | null;
178
- searchMatches: readonly {
179
- id: string;
180
- focus: boolean;
181
- matchedLines: {
182
- offsetX: number;
183
- offsetY: number;
184
- width: number;
185
- height: number;
186
- }[];
187
- }[];
179
+ searchMatches: Readonly<{
180
+ focusedId: string | null;
181
+ matches: readonly import("../types").SearchMatch[];
182
+ }> | null;
183
+ activeLockedId: string | null;
184
+ lockedMultiSelections: {
185
+ [groupId: string]: true;
186
+ };
187
+ stylesPanelMode: "compact" | "full" | "mobile";
188
188
  };
189
189
  captureUpdate: "IMMEDIATELY";
190
190
  } | {
191
191
  elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
192
192
  appState: {
193
- editingLinearElement: {
193
+ selectedLinearElement: {
194
194
  selectedPointsIndices: number[];
195
195
  startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
196
196
  endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
@@ -220,6 +220,8 @@ export declare const actionDeleteSelected: {
220
220
  hoverPointIndex: number;
221
221
  segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
222
222
  elbowed: boolean;
223
+ customLineAngle: number | null;
224
+ isEditing: boolean;
223
225
  };
224
226
  contextMenu: {
225
227
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -231,7 +233,7 @@ export declare const actionDeleteSelected: {
231
233
  errorMessage: import("react").ReactNode;
232
234
  activeEmbeddable: {
233
235
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
234
- state: "hover" | "active";
236
+ state: "active" | "hover";
235
237
  } | null;
236
238
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
237
239
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -239,7 +241,7 @@ export declare const actionDeleteSelected: {
239
241
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
240
242
  isBindingEnabled: boolean;
241
243
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
242
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
244
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
243
245
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
244
246
  frameRendering: {
245
247
  enabled: boolean;
@@ -255,6 +257,10 @@ export declare const actionDeleteSelected: {
255
257
  locked: boolean;
256
258
  fromSelection: boolean;
257
259
  } & import("../types").ActiveTool;
260
+ preferredSelectionTool: {
261
+ type: "selection" | "lasso";
262
+ initialized: boolean;
263
+ };
258
264
  penMode: boolean;
259
265
  penDetected: boolean;
260
266
  exportBackground: boolean;
@@ -287,8 +293,8 @@ export declare const actionDeleteSelected: {
287
293
  zoom: Readonly<{
288
294
  value: import("../types").NormalizedZoomValue;
289
295
  }>;
290
- openMenu: "shape" | "canvas" | null;
291
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
296
+ openMenu: "canvas" | null;
297
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
292
298
  openSidebar: {
293
299
  name: string;
294
300
  tab?: string | undefined;
@@ -297,7 +303,7 @@ export declare const actionDeleteSelected: {
297
303
  name: "imageExport" | "help" | "jsonExport";
298
304
  } | {
299
305
  name: "ttd";
300
- tab: "text-to-diagram" | "mermaid";
306
+ tab: "mermaid" | "text-to-diagram";
301
307
  } | {
302
308
  name: "commandPalette";
303
309
  } | {
@@ -369,9 +375,7 @@ export declare const actionDeleteSelected: {
369
375
  shown: true;
370
376
  data: import("../charts").Spreadsheet;
371
377
  };
372
- pendingImageElementId: string | null;
373
378
  showHyperlinkPopup: false | "editor" | "info";
374
- selectedLinearElement: LinearElementEditor | null;
375
379
  snapLines: readonly import("../snapping").SnapLine[];
376
380
  originSnapOffset: {
377
381
  x: number;
@@ -382,16 +386,15 @@ export declare const actionDeleteSelected: {
382
386
  followedBy: Set<import("../types").SocketId>;
383
387
  isCropping: boolean;
384
388
  croppingElementId: string | null;
385
- searchMatches: readonly {
386
- id: string;
387
- focus: boolean;
388
- matchedLines: {
389
- offsetX: number;
390
- offsetY: number;
391
- width: number;
392
- height: number;
393
- }[];
394
- }[];
389
+ searchMatches: Readonly<{
390
+ focusedId: string | null;
391
+ matches: readonly import("../types").SearchMatch[];
392
+ }> | null;
393
+ activeLockedId: string | null;
394
+ lockedMultiSelections: {
395
+ [groupId: string]: true;
396
+ };
397
+ stylesPanelMode: "compact" | "full" | "mobile";
395
398
  };
396
399
  captureUpdate: "IMMEDIATELY";
397
400
  } | {
@@ -425,7 +428,7 @@ export declare const actionDeleteSelected: {
425
428
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
426
429
  isBindingEnabled: boolean;
427
430
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
428
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
431
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
429
432
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
430
433
  frameRendering: {
431
434
  enabled: boolean;
@@ -436,7 +439,10 @@ export declare const actionDeleteSelected: {
436
439
  editingFrame: string | null;
437
440
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
438
441
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
439
- editingLinearElement: LinearElementEditor | null;
442
+ preferredSelectionTool: {
443
+ type: "selection" | "lasso";
444
+ initialized: boolean;
445
+ };
440
446
  penMode: boolean;
441
447
  penDetected: boolean;
442
448
  exportBackground: boolean;
@@ -469,8 +475,8 @@ export declare const actionDeleteSelected: {
469
475
  zoom: Readonly<{
470
476
  value: import("../types").NormalizedZoomValue;
471
477
  }>;
472
- openMenu: "shape" | "canvas" | null;
473
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
478
+ openMenu: "canvas" | null;
479
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
474
480
  openSidebar: {
475
481
  name: string;
476
482
  tab?: string | undefined;
@@ -479,7 +485,7 @@ export declare const actionDeleteSelected: {
479
485
  name: "imageExport" | "help" | "jsonExport";
480
486
  } | {
481
487
  name: "ttd";
482
- tab: "text-to-diagram" | "mermaid";
488
+ tab: "mermaid" | "text-to-diagram";
483
489
  } | {
484
490
  name: "commandPalette";
485
491
  } | {
@@ -544,7 +550,6 @@ export declare const actionDeleteSelected: {
544
550
  shown: true;
545
551
  data: import("../charts").Spreadsheet;
546
552
  };
547
- pendingImageElementId: string | null;
548
553
  showHyperlinkPopup: false | "editor" | "info";
549
554
  snapLines: readonly import("../snapping").SnapLine[];
550
555
  originSnapOffset: {
@@ -556,16 +561,15 @@ export declare const actionDeleteSelected: {
556
561
  followedBy: Set<import("../types").SocketId>;
557
562
  isCropping: boolean;
558
563
  croppingElementId: string | null;
559
- searchMatches: readonly {
560
- id: string;
561
- focus: boolean;
562
- matchedLines: {
563
- offsetX: number;
564
- offsetY: number;
565
- width: number;
566
- height: number;
567
- }[];
568
- }[];
564
+ searchMatches: Readonly<{
565
+ focusedId: string | null;
566
+ matches: readonly import("../types").SearchMatch[];
567
+ }> | null;
568
+ activeLockedId: string | null;
569
+ lockedMultiSelections: {
570
+ [groupId: string]: true;
571
+ };
572
+ stylesPanelMode: "compact" | "full" | "mobile";
569
573
  };
570
574
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
571
575
  };
@@ -51,7 +51,7 @@ export declare const actionLinkToElement: {
51
51
  errorMessage: import("react").ReactNode;
52
52
  activeEmbeddable: {
53
53
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
54
- state: "hover" | "active";
54
+ state: "active" | "hover";
55
55
  } | null;
56
56
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
57
57
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -59,7 +59,7 @@ export declare const actionLinkToElement: {
59
59
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
60
60
  isBindingEnabled: boolean;
61
61
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
62
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
62
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
63
63
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
64
64
  frameRendering: {
65
65
  enabled: boolean;
@@ -70,12 +70,15 @@ export declare const actionLinkToElement: {
70
70
  editingFrame: string | null;
71
71
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
72
72
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
73
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
74
73
  activeTool: {
75
74
  lastActiveTool: import("../types").ActiveTool | null;
76
75
  locked: boolean;
77
76
  fromSelection: boolean;
78
77
  } & import("../types").ActiveTool;
78
+ preferredSelectionTool: {
79
+ type: "selection" | "lasso";
80
+ initialized: boolean;
81
+ };
79
82
  penMode: boolean;
80
83
  penDetected: boolean;
81
84
  exportBackground: boolean;
@@ -108,8 +111,8 @@ export declare const actionLinkToElement: {
108
111
  zoom: Readonly<{
109
112
  value: import("../types").NormalizedZoomValue;
110
113
  }>;
111
- openMenu: "shape" | "canvas" | null;
112
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
114
+ openMenu: "canvas" | null;
115
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
113
116
  openSidebar: {
114
117
  name: string;
115
118
  tab?: string | undefined;
@@ -179,9 +182,8 @@ export declare const actionLinkToElement: {
179
182
  shown: true;
180
183
  data: import("../charts").Spreadsheet;
181
184
  };
182
- pendingImageElementId: string | null;
183
185
  showHyperlinkPopup: false | "editor" | "info";
184
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
186
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
185
187
  snapLines: readonly import("../snapping").SnapLine[];
186
188
  originSnapOffset: {
187
189
  x: number;
@@ -192,16 +194,15 @@ export declare const actionLinkToElement: {
192
194
  followedBy: Set<import("../types").SocketId>;
193
195
  isCropping: boolean;
194
196
  croppingElementId: string | null;
195
- searchMatches: readonly {
196
- id: string;
197
- focus: boolean;
198
- matchedLines: {
199
- offsetX: number;
200
- offsetY: number;
201
- width: number;
202
- height: number;
203
- }[];
204
- }[];
197
+ searchMatches: Readonly<{
198
+ focusedId: string | null;
199
+ matches: readonly import("../types").SearchMatch[];
200
+ }> | null;
201
+ activeLockedId: string | null;
202
+ lockedMultiSelections: {
203
+ [groupId: string]: true;
204
+ };
205
+ stylesPanelMode: "compact" | "full" | "mobile";
205
206
  };
206
207
  captureUpdate: "IMMEDIATELY";
207
208
  elements?: undefined;
@@ -1,17 +1,28 @@
1
1
  /// <reference types="react" />
2
2
  import type { ExcalidrawElement } from "@excalidraw/element/types";
3
+ import type { AppState } from "../types";
3
4
  export declare const actionToggleElementLock: {
4
5
  name: "toggleElementLock";
5
- label: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.elementLock.unlock" | "labels.elementLock.lock" | "labels.elementLock.lockAll" | "labels.elementLock.unlockAll";
6
+ label: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, app: import("../types").AppClassProperties) => "labels.elementLock.lock" | "labels.elementLock.unlock";
6
7
  icon: (appState: import("../types").UIAppState, elements: readonly ExcalidrawElement[]) => import("react/jsx-runtime").JSX.Element;
7
8
  trackEvent: {
8
9
  category: "element";
9
10
  };
10
- predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
11
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => false | {
11
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
12
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => false | {
12
13
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
13
14
  appState: {
14
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
15
+ selectedElementIds: Readonly<{
16
+ [id: string]: true;
17
+ }>;
18
+ selectedGroupIds: {
19
+ [groupId: string]: boolean;
20
+ };
21
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
22
+ lockedMultiSelections: {
23
+ [x: string]: true;
24
+ };
25
+ activeLockedId: string | null;
15
26
  contextMenu: {
16
27
  items: import("../components/ContextMenu").ContextMenuItems;
17
28
  top: number;
@@ -22,7 +33,7 @@ export declare const actionToggleElementLock: {
22
33
  errorMessage: import("react").ReactNode;
23
34
  activeEmbeddable: {
24
35
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
25
- state: "hover" | "active";
36
+ state: "active" | "hover";
26
37
  } | null;
27
38
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
28
39
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -30,7 +41,7 @@ export declare const actionToggleElementLock: {
30
41
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
31
42
  isBindingEnabled: boolean;
32
43
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
33
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
44
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
34
45
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
35
46
  frameRendering: {
36
47
  enabled: boolean;
@@ -41,12 +52,15 @@ export declare const actionToggleElementLock: {
41
52
  editingFrame: string | null;
42
53
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
43
54
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
44
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
45
55
  activeTool: {
46
56
  lastActiveTool: import("../types").ActiveTool | null;
47
57
  locked: boolean;
48
58
  fromSelection: boolean;
49
59
  } & import("../types").ActiveTool;
60
+ preferredSelectionTool: {
61
+ type: "selection" | "lasso";
62
+ initialized: boolean;
63
+ };
50
64
  penMode: boolean;
51
65
  penDetected: boolean;
52
66
  exportBackground: boolean;
@@ -79,8 +93,8 @@ export declare const actionToggleElementLock: {
79
93
  zoom: Readonly<{
80
94
  value: import("../types").NormalizedZoomValue;
81
95
  }>;
82
- openMenu: "shape" | "canvas" | null;
83
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
96
+ openMenu: "canvas" | null;
97
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
84
98
  openSidebar: {
85
99
  name: string;
86
100
  tab?: string | undefined;
@@ -89,7 +103,7 @@ export declare const actionToggleElementLock: {
89
103
  name: "imageExport" | "help" | "jsonExport";
90
104
  } | {
91
105
  name: "ttd";
92
- tab: "text-to-diagram" | "mermaid";
106
+ tab: "mermaid" | "text-to-diagram";
93
107
  } | {
94
108
  name: "commandPalette";
95
109
  } | {
@@ -98,9 +112,6 @@ export declare const actionToggleElementLock: {
98
112
  } | null;
99
113
  defaultSidebarDockedPreference: boolean;
100
114
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
101
- selectedElementIds: Readonly<{
102
- [id: string]: true;
103
- }>;
104
115
  hoveredElementIds: Readonly<{
105
116
  [id: string]: true;
106
117
  }>;
@@ -120,9 +131,6 @@ export declare const actionToggleElementLock: {
120
131
  gridStep: number;
121
132
  gridModeEnabled: boolean;
122
133
  viewModeEnabled: boolean;
123
- selectedGroupIds: {
124
- [groupId: string]: boolean;
125
- };
126
134
  editingGroupId: string | null;
127
135
  width: number;
128
136
  height: number;
@@ -161,7 +169,6 @@ export declare const actionToggleElementLock: {
161
169
  shown: true;
162
170
  data: import("../charts").Spreadsheet;
163
171
  };
164
- pendingImageElementId: string | null;
165
172
  showHyperlinkPopup: false | "editor" | "info";
166
173
  snapLines: readonly import("../snapping").SnapLine[];
167
174
  originSnapOffset: {
@@ -173,22 +180,17 @@ export declare const actionToggleElementLock: {
173
180
  followedBy: Set<import("../types").SocketId>;
174
181
  isCropping: boolean;
175
182
  croppingElementId: string | null;
176
- searchMatches: readonly {
177
- id: string;
178
- focus: boolean;
179
- matchedLines: {
180
- offsetX: number;
181
- offsetY: number;
182
- width: number;
183
- height: number;
184
- }[];
185
- }[];
183
+ searchMatches: Readonly<{
184
+ focusedId: string | null;
185
+ matches: readonly import("../types").SearchMatch[];
186
+ }> | null;
187
+ stylesPanelMode: "compact" | "full" | "mobile";
186
188
  };
187
189
  captureUpdate: "IMMEDIATELY";
188
190
  };
189
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean;
191
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean;
190
192
  } & {
191
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
193
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
192
194
  };
193
195
  export declare const actionUnlockAllElements: {
194
196
  name: "unlockAllElements";
@@ -197,13 +199,18 @@ export declare const actionUnlockAllElements: {
197
199
  };
198
200
  viewMode: false;
199
201
  icon: import("react/jsx-runtime").JSX.Element;
200
- predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState) => boolean;
201
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
202
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
203
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
202
204
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
203
205
  appState: {
204
206
  selectedElementIds: {
205
207
  [k: string]: true;
206
208
  };
209
+ selectedGroupIds: {
210
+ [groupId: string]: boolean;
211
+ };
212
+ lockedMultiSelections: {};
213
+ activeLockedId: null;
207
214
  contextMenu: {
208
215
  items: import("../components/ContextMenu").ContextMenuItems;
209
216
  top: number;
@@ -214,7 +221,7 @@ export declare const actionUnlockAllElements: {
214
221
  errorMessage: import("react").ReactNode;
215
222
  activeEmbeddable: {
216
223
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
217
- state: "hover" | "active";
224
+ state: "active" | "hover";
218
225
  } | null;
219
226
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
220
227
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -222,7 +229,7 @@ export declare const actionUnlockAllElements: {
222
229
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
223
230
  isBindingEnabled: boolean;
224
231
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
225
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
232
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
226
233
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
227
234
  frameRendering: {
228
235
  enabled: boolean;
@@ -233,12 +240,15 @@ export declare const actionUnlockAllElements: {
233
240
  editingFrame: string | null;
234
241
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
235
242
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
236
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
237
243
  activeTool: {
238
244
  lastActiveTool: import("../types").ActiveTool | null;
239
245
  locked: boolean;
240
246
  fromSelection: boolean;
241
247
  } & import("../types").ActiveTool;
248
+ preferredSelectionTool: {
249
+ type: "selection" | "lasso";
250
+ initialized: boolean;
251
+ };
242
252
  penMode: boolean;
243
253
  penDetected: boolean;
244
254
  exportBackground: boolean;
@@ -271,8 +281,8 @@ export declare const actionUnlockAllElements: {
271
281
  zoom: Readonly<{
272
282
  value: import("../types").NormalizedZoomValue;
273
283
  }>;
274
- openMenu: "shape" | "canvas" | null;
275
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
284
+ openMenu: "canvas" | null;
285
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
276
286
  openSidebar: {
277
287
  name: string;
278
288
  tab?: string | undefined;
@@ -281,7 +291,7 @@ export declare const actionUnlockAllElements: {
281
291
  name: "imageExport" | "help" | "jsonExport";
282
292
  } | {
283
293
  name: "ttd";
284
- tab: "text-to-diagram" | "mermaid";
294
+ tab: "mermaid" | "text-to-diagram";
285
295
  } | {
286
296
  name: "commandPalette";
287
297
  } | {
@@ -309,9 +319,6 @@ export declare const actionUnlockAllElements: {
309
319
  gridStep: number;
310
320
  gridModeEnabled: boolean;
311
321
  viewModeEnabled: boolean;
312
- selectedGroupIds: {
313
- [groupId: string]: boolean;
314
- };
315
322
  editingGroupId: string | null;
316
323
  width: number;
317
324
  height: number;
@@ -350,9 +357,8 @@ export declare const actionUnlockAllElements: {
350
357
  shown: true;
351
358
  data: import("../charts").Spreadsheet;
352
359
  };
353
- pendingImageElementId: string | null;
354
360
  showHyperlinkPopup: false | "editor" | "info";
355
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
361
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
356
362
  snapLines: readonly import("../snapping").SnapLine[];
357
363
  originSnapOffset: {
358
364
  x: number;
@@ -363,16 +369,11 @@ export declare const actionUnlockAllElements: {
363
369
  followedBy: Set<import("../types").SocketId>;
364
370
  isCropping: boolean;
365
371
  croppingElementId: string | null;
366
- searchMatches: readonly {
367
- id: string;
368
- focus: boolean;
369
- matchedLines: {
370
- offsetX: number;
371
- offsetY: number;
372
- width: number;
373
- height: number;
374
- }[];
375
- }[];
372
+ searchMatches: Readonly<{
373
+ focusedId: string | null;
374
+ matches: readonly import("../types").SearchMatch[];
375
+ }> | null;
376
+ stylesPanelMode: "compact" | "full" | "mobile";
376
377
  };
377
378
  captureUpdate: "IMMEDIATELY";
378
379
  };