@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,15 +1,15 @@
1
1
  /// <reference types="react" />
2
- import { LinearElementEditor } from "@excalidraw/element/linearElementEditor";
2
+ import { LinearElementEditor } from "@excalidraw/element";
3
3
  import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement } from "@excalidraw/element/types";
4
4
  import type { AppClassProperties, AppState, Primitive } from "../types";
5
5
  export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: ExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
6
- export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], appState: AppState, getAttribute: (element: ExcalidrawElement) => T, isRelevantElement: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
6
+ export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], app: AppClassProperties, getAttribute: (element: ExcalidrawElement) => T, isRelevantElement: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
7
7
  export declare const actionChangeStrokeColor: {
8
8
  name: "changeStrokeColor";
9
9
  label: string;
10
10
  trackEvent: false;
11
11
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
12
- PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
12
+ PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
13
13
  } & {
14
14
  keyTest?: undefined;
15
15
  };
@@ -17,8 +17,16 @@ export declare const actionChangeBackgroundColor: {
17
17
  name: "changeBackgroundColor";
18
18
  label: string;
19
19
  trackEvent: false;
20
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
21
- PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
20
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
21
+ appState: any;
22
+ captureUpdate: "EVENTUALLY";
23
+ elements?: undefined;
24
+ } | {
25
+ elements: ExcalidrawElement[];
26
+ appState: any;
27
+ captureUpdate: "IMMEDIATELY";
28
+ };
29
+ PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
22
30
  } & {
23
31
  keyTest?: undefined;
24
32
  };
@@ -40,7 +48,7 @@ export declare const actionChangeFillStyle: {
40
48
  errorMessage: import("react").ReactNode;
41
49
  activeEmbeddable: {
42
50
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
43
- state: "hover" | "active";
51
+ state: "active" | "hover";
44
52
  } | null;
45
53
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
46
54
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -48,7 +56,7 @@ export declare const actionChangeFillStyle: {
48
56
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
49
57
  isBindingEnabled: boolean;
50
58
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
51
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
59
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
52
60
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
53
61
  frameRendering: {
54
62
  enabled: boolean;
@@ -59,12 +67,15 @@ export declare const actionChangeFillStyle: {
59
67
  editingFrame: string | null;
60
68
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
61
69
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
62
- editingLinearElement: LinearElementEditor | null;
63
70
  activeTool: {
64
71
  lastActiveTool: import("../types").ActiveTool | null;
65
72
  locked: boolean;
66
73
  fromSelection: boolean;
67
74
  } & import("../types").ActiveTool;
75
+ preferredSelectionTool: {
76
+ type: "selection" | "lasso";
77
+ initialized: boolean;
78
+ };
68
79
  penMode: boolean;
69
80
  penDetected: boolean;
70
81
  exportBackground: boolean;
@@ -96,8 +107,8 @@ export declare const actionChangeFillStyle: {
96
107
  zoom: Readonly<{
97
108
  value: import("../types").NormalizedZoomValue;
98
109
  }>;
99
- openMenu: "shape" | "canvas" | null;
100
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
110
+ openMenu: "canvas" | null;
111
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
101
112
  openSidebar: {
102
113
  name: string;
103
114
  tab?: string | undefined;
@@ -106,7 +117,7 @@ export declare const actionChangeFillStyle: {
106
117
  name: "imageExport" | "help" | "jsonExport";
107
118
  } | {
108
119
  name: "ttd";
109
- tab: "text-to-diagram" | "mermaid";
120
+ tab: "mermaid" | "text-to-diagram";
110
121
  } | {
111
122
  name: "commandPalette";
112
123
  } | {
@@ -178,7 +189,6 @@ export declare const actionChangeFillStyle: {
178
189
  shown: true;
179
190
  data: import("../charts").Spreadsheet;
180
191
  };
181
- pendingImageElementId: string | null;
182
192
  showHyperlinkPopup: false | "editor" | "info";
183
193
  selectedLinearElement: LinearElementEditor | null;
184
194
  snapLines: readonly import("../snapping").SnapLine[];
@@ -191,20 +201,19 @@ export declare const actionChangeFillStyle: {
191
201
  followedBy: Set<import("../types").SocketId>;
192
202
  isCropping: boolean;
193
203
  croppingElementId: string | null;
194
- searchMatches: readonly {
195
- id: string;
196
- focus: boolean;
197
- matchedLines: {
198
- offsetX: number;
199
- offsetY: number;
200
- width: number;
201
- height: number;
202
- }[];
203
- }[];
204
+ searchMatches: Readonly<{
205
+ focusedId: string | null;
206
+ matches: readonly import("../types").SearchMatch[];
207
+ }> | null;
208
+ activeLockedId: string | null;
209
+ lockedMultiSelections: {
210
+ [groupId: string]: true;
211
+ };
212
+ stylesPanelMode: "compact" | "full" | "mobile";
204
213
  };
205
214
  captureUpdate: "IMMEDIATELY";
206
215
  };
207
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
216
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
208
217
  } & {
209
218
  keyTest?: undefined;
210
219
  };
@@ -226,7 +235,7 @@ export declare const actionChangeStrokeWidth: {
226
235
  errorMessage: import("react").ReactNode;
227
236
  activeEmbeddable: {
228
237
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
229
- state: "hover" | "active";
238
+ state: "active" | "hover";
230
239
  } | null;
231
240
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
232
241
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -234,7 +243,7 @@ export declare const actionChangeStrokeWidth: {
234
243
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
235
244
  isBindingEnabled: boolean;
236
245
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
237
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
246
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
238
247
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
239
248
  frameRendering: {
240
249
  enabled: boolean;
@@ -245,12 +254,15 @@ export declare const actionChangeStrokeWidth: {
245
254
  editingFrame: string | null;
246
255
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
247
256
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
248
- editingLinearElement: LinearElementEditor | null;
249
257
  activeTool: {
250
258
  lastActiveTool: import("../types").ActiveTool | null;
251
259
  locked: boolean;
252
260
  fromSelection: boolean;
253
261
  } & import("../types").ActiveTool;
262
+ preferredSelectionTool: {
263
+ type: "selection" | "lasso";
264
+ initialized: boolean;
265
+ };
254
266
  penMode: boolean;
255
267
  penDetected: boolean;
256
268
  exportBackground: boolean;
@@ -282,8 +294,8 @@ export declare const actionChangeStrokeWidth: {
282
294
  zoom: Readonly<{
283
295
  value: import("../types").NormalizedZoomValue;
284
296
  }>;
285
- openMenu: "shape" | "canvas" | null;
286
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
297
+ openMenu: "canvas" | null;
298
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
287
299
  openSidebar: {
288
300
  name: string;
289
301
  tab?: string | undefined;
@@ -292,7 +304,7 @@ export declare const actionChangeStrokeWidth: {
292
304
  name: "imageExport" | "help" | "jsonExport";
293
305
  } | {
294
306
  name: "ttd";
295
- tab: "text-to-diagram" | "mermaid";
307
+ tab: "mermaid" | "text-to-diagram";
296
308
  } | {
297
309
  name: "commandPalette";
298
310
  } | {
@@ -364,7 +376,6 @@ export declare const actionChangeStrokeWidth: {
364
376
  shown: true;
365
377
  data: import("../charts").Spreadsheet;
366
378
  };
367
- pendingImageElementId: string | null;
368
379
  showHyperlinkPopup: false | "editor" | "info";
369
380
  selectedLinearElement: LinearElementEditor | null;
370
381
  snapLines: readonly import("../snapping").SnapLine[];
@@ -377,20 +388,19 @@ export declare const actionChangeStrokeWidth: {
377
388
  followedBy: Set<import("../types").SocketId>;
378
389
  isCropping: boolean;
379
390
  croppingElementId: string | null;
380
- searchMatches: readonly {
381
- id: string;
382
- focus: boolean;
383
- matchedLines: {
384
- offsetX: number;
385
- offsetY: number;
386
- width: number;
387
- height: number;
388
- }[];
389
- }[];
391
+ searchMatches: Readonly<{
392
+ focusedId: string | null;
393
+ matches: readonly import("../types").SearchMatch[];
394
+ }> | null;
395
+ activeLockedId: string | null;
396
+ lockedMultiSelections: {
397
+ [groupId: string]: true;
398
+ };
399
+ stylesPanelMode: "compact" | "full" | "mobile";
390
400
  };
391
401
  captureUpdate: "IMMEDIATELY";
392
402
  };
393
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
403
+ PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
394
404
  } & {
395
405
  keyTest?: undefined;
396
406
  };
@@ -412,7 +422,7 @@ export declare const actionChangeSloppiness: {
412
422
  errorMessage: import("react").ReactNode;
413
423
  activeEmbeddable: {
414
424
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
415
- state: "hover" | "active";
425
+ state: "active" | "hover";
416
426
  } | null;
417
427
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
418
428
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -420,7 +430,7 @@ export declare const actionChangeSloppiness: {
420
430
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
421
431
  isBindingEnabled: boolean;
422
432
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
423
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
433
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
424
434
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
425
435
  frameRendering: {
426
436
  enabled: boolean;
@@ -431,12 +441,15 @@ export declare const actionChangeSloppiness: {
431
441
  editingFrame: string | null;
432
442
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
433
443
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
434
- editingLinearElement: LinearElementEditor | null;
435
444
  activeTool: {
436
445
  lastActiveTool: import("../types").ActiveTool | null;
437
446
  locked: boolean;
438
447
  fromSelection: boolean;
439
448
  } & import("../types").ActiveTool;
449
+ preferredSelectionTool: {
450
+ type: "selection" | "lasso";
451
+ initialized: boolean;
452
+ };
440
453
  penMode: boolean;
441
454
  penDetected: boolean;
442
455
  exportBackground: boolean;
@@ -468,8 +481,8 @@ export declare const actionChangeSloppiness: {
468
481
  zoom: Readonly<{
469
482
  value: import("../types").NormalizedZoomValue;
470
483
  }>;
471
- openMenu: "shape" | "canvas" | null;
472
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
484
+ openMenu: "canvas" | null;
485
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
473
486
  openSidebar: {
474
487
  name: string;
475
488
  tab?: string | undefined;
@@ -478,7 +491,7 @@ export declare const actionChangeSloppiness: {
478
491
  name: "imageExport" | "help" | "jsonExport";
479
492
  } | {
480
493
  name: "ttd";
481
- tab: "text-to-diagram" | "mermaid";
494
+ tab: "mermaid" | "text-to-diagram";
482
495
  } | {
483
496
  name: "commandPalette";
484
497
  } | {
@@ -550,7 +563,6 @@ export declare const actionChangeSloppiness: {
550
563
  shown: true;
551
564
  data: import("../charts").Spreadsheet;
552
565
  };
553
- pendingImageElementId: string | null;
554
566
  showHyperlinkPopup: false | "editor" | "info";
555
567
  selectedLinearElement: LinearElementEditor | null;
556
568
  snapLines: readonly import("../snapping").SnapLine[];
@@ -563,20 +575,19 @@ export declare const actionChangeSloppiness: {
563
575
  followedBy: Set<import("../types").SocketId>;
564
576
  isCropping: boolean;
565
577
  croppingElementId: string | null;
566
- searchMatches: readonly {
567
- id: string;
568
- focus: boolean;
569
- matchedLines: {
570
- offsetX: number;
571
- offsetY: number;
572
- width: number;
573
- height: number;
574
- }[];
575
- }[];
578
+ searchMatches: Readonly<{
579
+ focusedId: string | null;
580
+ matches: readonly import("../types").SearchMatch[];
581
+ }> | null;
582
+ activeLockedId: string | null;
583
+ lockedMultiSelections: {
584
+ [groupId: string]: true;
585
+ };
586
+ stylesPanelMode: "compact" | "full" | "mobile";
576
587
  };
577
588
  captureUpdate: "IMMEDIATELY";
578
589
  };
579
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
590
+ PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
580
591
  } & {
581
592
  keyTest?: undefined;
582
593
  };
@@ -598,7 +609,7 @@ export declare const actionChangeStrokeStyle: {
598
609
  errorMessage: import("react").ReactNode;
599
610
  activeEmbeddable: {
600
611
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
601
- state: "hover" | "active";
612
+ state: "active" | "hover";
602
613
  } | null;
603
614
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
604
615
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -606,7 +617,7 @@ export declare const actionChangeStrokeStyle: {
606
617
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
607
618
  isBindingEnabled: boolean;
608
619
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
609
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
620
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
610
621
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
611
622
  frameRendering: {
612
623
  enabled: boolean;
@@ -617,12 +628,15 @@ export declare const actionChangeStrokeStyle: {
617
628
  editingFrame: string | null;
618
629
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
619
630
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
620
- editingLinearElement: LinearElementEditor | null;
621
631
  activeTool: {
622
632
  lastActiveTool: import("../types").ActiveTool | null;
623
633
  locked: boolean;
624
634
  fromSelection: boolean;
625
635
  } & import("../types").ActiveTool;
636
+ preferredSelectionTool: {
637
+ type: "selection" | "lasso";
638
+ initialized: boolean;
639
+ };
626
640
  penMode: boolean;
627
641
  penDetected: boolean;
628
642
  exportBackground: boolean;
@@ -654,8 +668,8 @@ export declare const actionChangeStrokeStyle: {
654
668
  zoom: Readonly<{
655
669
  value: import("../types").NormalizedZoomValue;
656
670
  }>;
657
- openMenu: "shape" | "canvas" | null;
658
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
671
+ openMenu: "canvas" | null;
672
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
659
673
  openSidebar: {
660
674
  name: string;
661
675
  tab?: string | undefined;
@@ -664,7 +678,7 @@ export declare const actionChangeStrokeStyle: {
664
678
  name: "imageExport" | "help" | "jsonExport";
665
679
  } | {
666
680
  name: "ttd";
667
- tab: "text-to-diagram" | "mermaid";
681
+ tab: "mermaid" | "text-to-diagram";
668
682
  } | {
669
683
  name: "commandPalette";
670
684
  } | {
@@ -736,7 +750,6 @@ export declare const actionChangeStrokeStyle: {
736
750
  shown: true;
737
751
  data: import("../charts").Spreadsheet;
738
752
  };
739
- pendingImageElementId: string | null;
740
753
  showHyperlinkPopup: false | "editor" | "info";
741
754
  selectedLinearElement: LinearElementEditor | null;
742
755
  snapLines: readonly import("../snapping").SnapLine[];
@@ -749,20 +762,19 @@ export declare const actionChangeStrokeStyle: {
749
762
  followedBy: Set<import("../types").SocketId>;
750
763
  isCropping: boolean;
751
764
  croppingElementId: string | null;
752
- searchMatches: readonly {
753
- id: string;
754
- focus: boolean;
755
- matchedLines: {
756
- offsetX: number;
757
- offsetY: number;
758
- width: number;
759
- height: number;
760
- }[];
761
- }[];
765
+ searchMatches: Readonly<{
766
+ focusedId: string | null;
767
+ matches: readonly import("../types").SearchMatch[];
768
+ }> | null;
769
+ activeLockedId: string | null;
770
+ lockedMultiSelections: {
771
+ [groupId: string]: true;
772
+ };
773
+ stylesPanelMode: "compact" | "full" | "mobile";
762
774
  };
763
775
  captureUpdate: "IMMEDIATELY";
764
776
  };
765
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
777
+ PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
766
778
  } & {
767
779
  keyTest?: undefined;
768
780
  };
@@ -784,7 +796,7 @@ export declare const actionChangeOpacity: {
784
796
  errorMessage: import("react").ReactNode;
785
797
  activeEmbeddable: {
786
798
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
787
- state: "hover" | "active";
799
+ state: "active" | "hover";
788
800
  } | null;
789
801
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
790
802
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -792,7 +804,7 @@ export declare const actionChangeOpacity: {
792
804
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
793
805
  isBindingEnabled: boolean;
794
806
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
795
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
807
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
796
808
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
797
809
  frameRendering: {
798
810
  enabled: boolean;
@@ -803,12 +815,15 @@ export declare const actionChangeOpacity: {
803
815
  editingFrame: string | null;
804
816
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
805
817
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
806
- editingLinearElement: LinearElementEditor | null;
807
818
  activeTool: {
808
819
  lastActiveTool: import("../types").ActiveTool | null;
809
820
  locked: boolean;
810
821
  fromSelection: boolean;
811
822
  } & import("../types").ActiveTool;
823
+ preferredSelectionTool: {
824
+ type: "selection" | "lasso";
825
+ initialized: boolean;
826
+ };
812
827
  penMode: boolean;
813
828
  penDetected: boolean;
814
829
  exportBackground: boolean;
@@ -840,8 +855,8 @@ export declare const actionChangeOpacity: {
840
855
  zoom: Readonly<{
841
856
  value: import("../types").NormalizedZoomValue;
842
857
  }>;
843
- openMenu: "shape" | "canvas" | null;
844
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
858
+ openMenu: "canvas" | null;
859
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
845
860
  openSidebar: {
846
861
  name: string;
847
862
  tab?: string | undefined;
@@ -850,7 +865,7 @@ export declare const actionChangeOpacity: {
850
865
  name: "imageExport" | "help" | "jsonExport";
851
866
  } | {
852
867
  name: "ttd";
853
- tab: "text-to-diagram" | "mermaid";
868
+ tab: "mermaid" | "text-to-diagram";
854
869
  } | {
855
870
  name: "commandPalette";
856
871
  } | {
@@ -922,7 +937,6 @@ export declare const actionChangeOpacity: {
922
937
  shown: true;
923
938
  data: import("../charts").Spreadsheet;
924
939
  };
925
- pendingImageElementId: string | null;
926
940
  showHyperlinkPopup: false | "editor" | "info";
927
941
  selectedLinearElement: LinearElementEditor | null;
928
942
  snapLines: readonly import("../snapping").SnapLine[];
@@ -935,20 +949,19 @@ export declare const actionChangeOpacity: {
935
949
  followedBy: Set<import("../types").SocketId>;
936
950
  isCropping: boolean;
937
951
  croppingElementId: string | null;
938
- searchMatches: readonly {
939
- id: string;
940
- focus: boolean;
941
- matchedLines: {
942
- offsetX: number;
943
- offsetY: number;
944
- width: number;
945
- height: number;
946
- }[];
947
- }[];
952
+ searchMatches: Readonly<{
953
+ focusedId: string | null;
954
+ matches: readonly import("../types").SearchMatch[];
955
+ }> | null;
956
+ activeLockedId: string | null;
957
+ lockedMultiSelections: {
958
+ [groupId: string]: true;
959
+ };
960
+ stylesPanelMode: "compact" | "full" | "mobile";
948
961
  };
949
962
  captureUpdate: "IMMEDIATELY";
950
963
  };
951
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
964
+ PanelComponent: ({ app, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
952
965
  } & {
953
966
  keyTest?: undefined;
954
967
  };
@@ -970,7 +983,7 @@ export declare const actionChangeFontSize: {
970
983
  errorMessage: import("react").ReactNode;
971
984
  activeEmbeddable: {
972
985
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
973
- state: "hover" | "active";
986
+ state: "active" | "hover";
974
987
  } | null;
975
988
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
976
989
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -978,7 +991,7 @@ export declare const actionChangeFontSize: {
978
991
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
979
992
  isBindingEnabled: boolean;
980
993
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
981
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
994
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
982
995
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
983
996
  frameRendering: {
984
997
  enabled: boolean;
@@ -989,12 +1002,15 @@ export declare const actionChangeFontSize: {
989
1002
  editingFrame: string | null;
990
1003
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
991
1004
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
992
- editingLinearElement: LinearElementEditor | null;
993
1005
  activeTool: {
994
1006
  lastActiveTool: import("../types").ActiveTool | null;
995
1007
  locked: boolean;
996
1008
  fromSelection: boolean;
997
1009
  } & import("../types").ActiveTool;
1010
+ preferredSelectionTool: {
1011
+ type: "selection" | "lasso";
1012
+ initialized: boolean;
1013
+ };
998
1014
  penMode: boolean;
999
1015
  penDetected: boolean;
1000
1016
  exportBackground: boolean;
@@ -1026,8 +1042,8 @@ export declare const actionChangeFontSize: {
1026
1042
  zoom: Readonly<{
1027
1043
  value: import("../types").NormalizedZoomValue;
1028
1044
  }>;
1029
- openMenu: "shape" | "canvas" | null;
1030
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1045
+ openMenu: "canvas" | null;
1046
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1031
1047
  openSidebar: {
1032
1048
  name: string;
1033
1049
  tab?: string | undefined;
@@ -1036,7 +1052,7 @@ export declare const actionChangeFontSize: {
1036
1052
  name: "imageExport" | "help" | "jsonExport";
1037
1053
  } | {
1038
1054
  name: "ttd";
1039
- tab: "text-to-diagram" | "mermaid";
1055
+ tab: "mermaid" | "text-to-diagram";
1040
1056
  } | {
1041
1057
  name: "commandPalette";
1042
1058
  } | {
@@ -1108,7 +1124,6 @@ export declare const actionChangeFontSize: {
1108
1124
  shown: true;
1109
1125
  data: import("../charts").Spreadsheet;
1110
1126
  };
1111
- pendingImageElementId: string | null;
1112
1127
  showHyperlinkPopup: false | "editor" | "info";
1113
1128
  selectedLinearElement: LinearElementEditor | null;
1114
1129
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1121,20 +1136,19 @@ export declare const actionChangeFontSize: {
1121
1136
  followedBy: Set<import("../types").SocketId>;
1122
1137
  isCropping: boolean;
1123
1138
  croppingElementId: string | null;
1124
- searchMatches: readonly {
1125
- id: string;
1126
- focus: boolean;
1127
- matchedLines: {
1128
- offsetX: number;
1129
- offsetY: number;
1130
- width: number;
1131
- height: number;
1132
- }[];
1133
- }[];
1139
+ searchMatches: Readonly<{
1140
+ focusedId: string | null;
1141
+ matches: readonly import("../types").SearchMatch[];
1142
+ }> | null;
1143
+ activeLockedId: string | null;
1144
+ lockedMultiSelections: {
1145
+ [groupId: string]: true;
1146
+ };
1147
+ stylesPanelMode: "compact" | "full" | "mobile";
1134
1148
  };
1135
1149
  captureUpdate: "IMMEDIATELY";
1136
1150
  };
1137
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
1151
+ PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
1138
1152
  } & {
1139
1153
  keyTest?: undefined;
1140
1154
  };
@@ -1157,7 +1171,7 @@ export declare const actionDecreaseFontSize: {
1157
1171
  errorMessage: import("react").ReactNode;
1158
1172
  activeEmbeddable: {
1159
1173
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1160
- state: "hover" | "active";
1174
+ state: "active" | "hover";
1161
1175
  } | null;
1162
1176
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1163
1177
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1165,7 +1179,7 @@ export declare const actionDecreaseFontSize: {
1165
1179
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1166
1180
  isBindingEnabled: boolean;
1167
1181
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1168
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1182
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1169
1183
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1170
1184
  frameRendering: {
1171
1185
  enabled: boolean;
@@ -1176,12 +1190,15 @@ export declare const actionDecreaseFontSize: {
1176
1190
  editingFrame: string | null;
1177
1191
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1178
1192
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1179
- editingLinearElement: LinearElementEditor | null;
1180
1193
  activeTool: {
1181
1194
  lastActiveTool: import("../types").ActiveTool | null;
1182
1195
  locked: boolean;
1183
1196
  fromSelection: boolean;
1184
1197
  } & import("../types").ActiveTool;
1198
+ preferredSelectionTool: {
1199
+ type: "selection" | "lasso";
1200
+ initialized: boolean;
1201
+ };
1185
1202
  penMode: boolean;
1186
1203
  penDetected: boolean;
1187
1204
  exportBackground: boolean;
@@ -1213,8 +1230,8 @@ export declare const actionDecreaseFontSize: {
1213
1230
  zoom: Readonly<{
1214
1231
  value: import("../types").NormalizedZoomValue;
1215
1232
  }>;
1216
- openMenu: "shape" | "canvas" | null;
1217
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1233
+ openMenu: "canvas" | null;
1234
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1218
1235
  openSidebar: {
1219
1236
  name: string;
1220
1237
  tab?: string | undefined;
@@ -1223,7 +1240,7 @@ export declare const actionDecreaseFontSize: {
1223
1240
  name: "imageExport" | "help" | "jsonExport";
1224
1241
  } | {
1225
1242
  name: "ttd";
1226
- tab: "text-to-diagram" | "mermaid";
1243
+ tab: "mermaid" | "text-to-diagram";
1227
1244
  } | {
1228
1245
  name: "commandPalette";
1229
1246
  } | {
@@ -1295,7 +1312,6 @@ export declare const actionDecreaseFontSize: {
1295
1312
  shown: true;
1296
1313
  data: import("../charts").Spreadsheet;
1297
1314
  };
1298
- pendingImageElementId: string | null;
1299
1315
  showHyperlinkPopup: false | "editor" | "info";
1300
1316
  selectedLinearElement: LinearElementEditor | null;
1301
1317
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1308,16 +1324,15 @@ export declare const actionDecreaseFontSize: {
1308
1324
  followedBy: Set<import("../types").SocketId>;
1309
1325
  isCropping: boolean;
1310
1326
  croppingElementId: string | null;
1311
- searchMatches: readonly {
1312
- id: string;
1313
- focus: boolean;
1314
- matchedLines: {
1315
- offsetX: number;
1316
- offsetY: number;
1317
- width: number;
1318
- height: number;
1319
- }[];
1320
- }[];
1327
+ searchMatches: Readonly<{
1328
+ focusedId: string | null;
1329
+ matches: readonly import("../types").SearchMatch[];
1330
+ }> | null;
1331
+ activeLockedId: string | null;
1332
+ lockedMultiSelections: {
1333
+ [groupId: string]: true;
1334
+ };
1335
+ stylesPanelMode: "compact" | "full" | "mobile";
1321
1336
  };
1322
1337
  captureUpdate: "IMMEDIATELY";
1323
1338
  };
@@ -1344,7 +1359,7 @@ export declare const actionIncreaseFontSize: {
1344
1359
  errorMessage: import("react").ReactNode;
1345
1360
  activeEmbeddable: {
1346
1361
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1347
- state: "hover" | "active";
1362
+ state: "active" | "hover";
1348
1363
  } | null;
1349
1364
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1350
1365
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1352,7 +1367,7 @@ export declare const actionIncreaseFontSize: {
1352
1367
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1353
1368
  isBindingEnabled: boolean;
1354
1369
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1355
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1370
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1356
1371
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1357
1372
  frameRendering: {
1358
1373
  enabled: boolean;
@@ -1363,12 +1378,15 @@ export declare const actionIncreaseFontSize: {
1363
1378
  editingFrame: string | null;
1364
1379
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1365
1380
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1366
- editingLinearElement: LinearElementEditor | null;
1367
1381
  activeTool: {
1368
1382
  lastActiveTool: import("../types").ActiveTool | null;
1369
1383
  locked: boolean;
1370
1384
  fromSelection: boolean;
1371
1385
  } & import("../types").ActiveTool;
1386
+ preferredSelectionTool: {
1387
+ type: "selection" | "lasso";
1388
+ initialized: boolean;
1389
+ };
1372
1390
  penMode: boolean;
1373
1391
  penDetected: boolean;
1374
1392
  exportBackground: boolean;
@@ -1400,8 +1418,8 @@ export declare const actionIncreaseFontSize: {
1400
1418
  zoom: Readonly<{
1401
1419
  value: import("../types").NormalizedZoomValue;
1402
1420
  }>;
1403
- openMenu: "shape" | "canvas" | null;
1404
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1421
+ openMenu: "canvas" | null;
1422
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1405
1423
  openSidebar: {
1406
1424
  name: string;
1407
1425
  tab?: string | undefined;
@@ -1410,7 +1428,7 @@ export declare const actionIncreaseFontSize: {
1410
1428
  name: "imageExport" | "help" | "jsonExport";
1411
1429
  } | {
1412
1430
  name: "ttd";
1413
- tab: "text-to-diagram" | "mermaid";
1431
+ tab: "mermaid" | "text-to-diagram";
1414
1432
  } | {
1415
1433
  name: "commandPalette";
1416
1434
  } | {
@@ -1482,7 +1500,6 @@ export declare const actionIncreaseFontSize: {
1482
1500
  shown: true;
1483
1501
  data: import("../charts").Spreadsheet;
1484
1502
  };
1485
- pendingImageElementId: string | null;
1486
1503
  showHyperlinkPopup: false | "editor" | "info";
1487
1504
  selectedLinearElement: LinearElementEditor | null;
1488
1505
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1495,16 +1512,15 @@ export declare const actionIncreaseFontSize: {
1495
1512
  followedBy: Set<import("../types").SocketId>;
1496
1513
  isCropping: boolean;
1497
1514
  croppingElementId: string | null;
1498
- searchMatches: readonly {
1499
- id: string;
1500
- focus: boolean;
1501
- matchedLines: {
1502
- offsetX: number;
1503
- offsetY: number;
1504
- width: number;
1505
- height: number;
1506
- }[];
1507
- }[];
1515
+ searchMatches: Readonly<{
1516
+ focusedId: string | null;
1517
+ matches: readonly import("../types").SearchMatch[];
1518
+ }> | null;
1519
+ activeLockedId: string | null;
1520
+ lockedMultiSelections: {
1521
+ [groupId: string]: true;
1522
+ };
1523
+ stylesPanelMode: "compact" | "full" | "mobile";
1508
1524
  };
1509
1525
  captureUpdate: "IMMEDIATELY";
1510
1526
  };
@@ -1518,9 +1534,9 @@ export declare const actionChangeFontFamily: {
1518
1534
  trackEvent: false;
1519
1535
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1520
1536
  appState: {
1521
- currentHoveredFontFamily: number | null;
1522
1537
  currentItemFontFamily: number;
1523
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1538
+ currentHoveredFontFamily: number | null;
1539
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1524
1540
  contextMenu: {
1525
1541
  items: import("../components/ContextMenu").ContextMenuItems;
1526
1542
  top: number;
@@ -1531,7 +1547,7 @@ export declare const actionChangeFontFamily: {
1531
1547
  errorMessage: import("react").ReactNode;
1532
1548
  activeEmbeddable: {
1533
1549
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1534
- state: "hover" | "active";
1550
+ state: "active" | "hover";
1535
1551
  } | null;
1536
1552
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1537
1553
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1539,7 +1555,7 @@ export declare const actionChangeFontFamily: {
1539
1555
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1540
1556
  isBindingEnabled: boolean;
1541
1557
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1542
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1558
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1543
1559
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1544
1560
  frameRendering: {
1545
1561
  enabled: boolean;
@@ -1550,12 +1566,15 @@ export declare const actionChangeFontFamily: {
1550
1566
  editingFrame: string | null;
1551
1567
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1552
1568
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1553
- editingLinearElement: LinearElementEditor | null;
1554
1569
  activeTool: {
1555
1570
  lastActiveTool: import("../types").ActiveTool | null;
1556
1571
  locked: boolean;
1557
1572
  fromSelection: boolean;
1558
1573
  } & import("../types").ActiveTool;
1574
+ preferredSelectionTool: {
1575
+ type: "selection" | "lasso";
1576
+ initialized: boolean;
1577
+ };
1559
1578
  penMode: boolean;
1560
1579
  penDetected: boolean;
1561
1580
  exportBackground: boolean;
@@ -1586,7 +1605,7 @@ export declare const actionChangeFontFamily: {
1586
1605
  zoom: Readonly<{
1587
1606
  value: import("../types").NormalizedZoomValue;
1588
1607
  }>;
1589
- openMenu: "shape" | "canvas" | null;
1608
+ openMenu: "canvas" | null;
1590
1609
  openSidebar: {
1591
1610
  name: string;
1592
1611
  tab?: string | undefined;
@@ -1595,7 +1614,7 @@ export declare const actionChangeFontFamily: {
1595
1614
  name: "imageExport" | "help" | "jsonExport";
1596
1615
  } | {
1597
1616
  name: "ttd";
1598
- tab: "text-to-diagram" | "mermaid";
1617
+ tab: "mermaid" | "text-to-diagram";
1599
1618
  } | {
1600
1619
  name: "commandPalette";
1601
1620
  } | {
@@ -1667,7 +1686,6 @@ export declare const actionChangeFontFamily: {
1667
1686
  shown: true;
1668
1687
  data: import("../charts").Spreadsheet;
1669
1688
  };
1670
- pendingImageElementId: string | null;
1671
1689
  showHyperlinkPopup: false | "editor" | "info";
1672
1690
  selectedLinearElement: LinearElementEditor | null;
1673
1691
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1680,24 +1698,23 @@ export declare const actionChangeFontFamily: {
1680
1698
  followedBy: Set<import("../types").SocketId>;
1681
1699
  isCropping: boolean;
1682
1700
  croppingElementId: string | null;
1683
- searchMatches: readonly {
1684
- id: string;
1685
- focus: boolean;
1686
- matchedLines: {
1687
- offsetX: number;
1688
- offsetY: number;
1689
- width: number;
1690
- height: number;
1691
- }[];
1692
- }[];
1701
+ searchMatches: Readonly<{
1702
+ focusedId: string | null;
1703
+ matches: readonly import("../types").SearchMatch[];
1704
+ }> | null;
1705
+ activeLockedId: string | null;
1706
+ lockedMultiSelections: {
1707
+ [groupId: string]: true;
1708
+ };
1709
+ stylesPanelMode: "compact" | "full" | "mobile";
1693
1710
  };
1694
1711
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
1695
1712
  } | {
1696
1713
  elements: ExcalidrawElement[];
1697
1714
  appState: {
1698
- currentHoveredFontFamily: number | null;
1699
1715
  currentItemFontFamily: number;
1700
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1716
+ currentHoveredFontFamily: number | null;
1717
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1701
1718
  contextMenu: {
1702
1719
  items: import("../components/ContextMenu").ContextMenuItems;
1703
1720
  top: number;
@@ -1708,7 +1725,7 @@ export declare const actionChangeFontFamily: {
1708
1725
  errorMessage: import("react").ReactNode;
1709
1726
  activeEmbeddable: {
1710
1727
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1711
- state: "hover" | "active";
1728
+ state: "active" | "hover";
1712
1729
  } | null;
1713
1730
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1714
1731
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1716,7 +1733,7 @@ export declare const actionChangeFontFamily: {
1716
1733
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1717
1734
  isBindingEnabled: boolean;
1718
1735
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1719
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1736
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1720
1737
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1721
1738
  frameRendering: {
1722
1739
  enabled: boolean;
@@ -1727,12 +1744,15 @@ export declare const actionChangeFontFamily: {
1727
1744
  editingFrame: string | null;
1728
1745
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1729
1746
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1730
- editingLinearElement: LinearElementEditor | null;
1731
1747
  activeTool: {
1732
1748
  lastActiveTool: import("../types").ActiveTool | null;
1733
1749
  locked: boolean;
1734
1750
  fromSelection: boolean;
1735
1751
  } & import("../types").ActiveTool;
1752
+ preferredSelectionTool: {
1753
+ type: "selection" | "lasso";
1754
+ initialized: boolean;
1755
+ };
1736
1756
  penMode: boolean;
1737
1757
  penDetected: boolean;
1738
1758
  exportBackground: boolean;
@@ -1763,7 +1783,7 @@ export declare const actionChangeFontFamily: {
1763
1783
  zoom: Readonly<{
1764
1784
  value: import("../types").NormalizedZoomValue;
1765
1785
  }>;
1766
- openMenu: "shape" | "canvas" | null;
1786
+ openMenu: "canvas" | null;
1767
1787
  openSidebar: {
1768
1788
  name: string;
1769
1789
  tab?: string | undefined;
@@ -1772,7 +1792,7 @@ export declare const actionChangeFontFamily: {
1772
1792
  name: "imageExport" | "help" | "jsonExport";
1773
1793
  } | {
1774
1794
  name: "ttd";
1775
- tab: "text-to-diagram" | "mermaid";
1795
+ tab: "mermaid" | "text-to-diagram";
1776
1796
  } | {
1777
1797
  name: "commandPalette";
1778
1798
  } | {
@@ -1844,7 +1864,6 @@ export declare const actionChangeFontFamily: {
1844
1864
  shown: true;
1845
1865
  data: import("../charts").Spreadsheet;
1846
1866
  };
1847
- pendingImageElementId: string | null;
1848
1867
  showHyperlinkPopup: false | "editor" | "info";
1849
1868
  selectedLinearElement: LinearElementEditor | null;
1850
1869
  snapLines: readonly import("../snapping").SnapLine[];
@@ -1857,16 +1876,15 @@ export declare const actionChangeFontFamily: {
1857
1876
  followedBy: Set<import("../types").SocketId>;
1858
1877
  isCropping: boolean;
1859
1878
  croppingElementId: string | null;
1860
- searchMatches: readonly {
1861
- id: string;
1862
- focus: boolean;
1863
- matchedLines: {
1864
- offsetX: number;
1865
- offsetY: number;
1866
- width: number;
1867
- height: number;
1868
- }[];
1869
- }[];
1879
+ searchMatches: Readonly<{
1880
+ focusedId: string | null;
1881
+ matches: readonly import("../types").SearchMatch[];
1882
+ }> | null;
1883
+ activeLockedId: string | null;
1884
+ lockedMultiSelections: {
1885
+ [groupId: string]: true;
1886
+ };
1887
+ stylesPanelMode: "compact" | "full" | "mobile";
1870
1888
  };
1871
1889
  captureUpdate: "NEVER";
1872
1890
  };
@@ -1892,7 +1910,7 @@ export declare const actionChangeTextAlign: {
1892
1910
  errorMessage: import("react").ReactNode;
1893
1911
  activeEmbeddable: {
1894
1912
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1895
- state: "hover" | "active";
1913
+ state: "active" | "hover";
1896
1914
  } | null;
1897
1915
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1898
1916
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1900,7 +1918,7 @@ export declare const actionChangeTextAlign: {
1900
1918
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1901
1919
  isBindingEnabled: boolean;
1902
1920
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1903
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1921
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1904
1922
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1905
1923
  frameRendering: {
1906
1924
  enabled: boolean;
@@ -1911,12 +1929,15 @@ export declare const actionChangeTextAlign: {
1911
1929
  editingFrame: string | null;
1912
1930
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1913
1931
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1914
- editingLinearElement: LinearElementEditor | null;
1915
1932
  activeTool: {
1916
1933
  lastActiveTool: import("../types").ActiveTool | null;
1917
1934
  locked: boolean;
1918
1935
  fromSelection: boolean;
1919
1936
  } & import("../types").ActiveTool;
1937
+ preferredSelectionTool: {
1938
+ type: "selection" | "lasso";
1939
+ initialized: boolean;
1940
+ };
1920
1941
  penMode: boolean;
1921
1942
  penDetected: boolean;
1922
1943
  exportBackground: boolean;
@@ -1948,8 +1969,8 @@ export declare const actionChangeTextAlign: {
1948
1969
  zoom: Readonly<{
1949
1970
  value: import("../types").NormalizedZoomValue;
1950
1971
  }>;
1951
- openMenu: "shape" | "canvas" | null;
1952
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1972
+ openMenu: "canvas" | null;
1973
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1953
1974
  openSidebar: {
1954
1975
  name: string;
1955
1976
  tab?: string | undefined;
@@ -1958,7 +1979,7 @@ export declare const actionChangeTextAlign: {
1958
1979
  name: "imageExport" | "help" | "jsonExport";
1959
1980
  } | {
1960
1981
  name: "ttd";
1961
- tab: "text-to-diagram" | "mermaid";
1982
+ tab: "mermaid" | "text-to-diagram";
1962
1983
  } | {
1963
1984
  name: "commandPalette";
1964
1985
  } | {
@@ -2030,7 +2051,6 @@ export declare const actionChangeTextAlign: {
2030
2051
  shown: true;
2031
2052
  data: import("../charts").Spreadsheet;
2032
2053
  };
2033
- pendingImageElementId: string | null;
2034
2054
  showHyperlinkPopup: false | "editor" | "info";
2035
2055
  selectedLinearElement: LinearElementEditor | null;
2036
2056
  snapLines: readonly import("../snapping").SnapLine[];
@@ -2043,20 +2063,19 @@ export declare const actionChangeTextAlign: {
2043
2063
  followedBy: Set<import("../types").SocketId>;
2044
2064
  isCropping: boolean;
2045
2065
  croppingElementId: string | null;
2046
- searchMatches: readonly {
2047
- id: string;
2048
- focus: boolean;
2049
- matchedLines: {
2050
- offsetX: number;
2051
- offsetY: number;
2052
- width: number;
2053
- height: number;
2054
- }[];
2055
- }[];
2066
+ searchMatches: Readonly<{
2067
+ focusedId: string | null;
2068
+ matches: readonly import("../types").SearchMatch[];
2069
+ }> | null;
2070
+ activeLockedId: string | null;
2071
+ lockedMultiSelections: {
2072
+ [groupId: string]: true;
2073
+ };
2074
+ stylesPanelMode: "compact" | "full" | "mobile";
2056
2075
  };
2057
2076
  captureUpdate: "IMMEDIATELY";
2058
2077
  };
2059
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2078
+ PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2060
2079
  } & {
2061
2080
  keyTest?: undefined;
2062
2081
  };
@@ -2079,7 +2098,7 @@ export declare const actionChangeVerticalAlign: {
2079
2098
  errorMessage: import("react").ReactNode;
2080
2099
  activeEmbeddable: {
2081
2100
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2082
- state: "hover" | "active";
2101
+ state: "active" | "hover";
2083
2102
  } | null;
2084
2103
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2085
2104
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -2087,7 +2106,7 @@ export declare const actionChangeVerticalAlign: {
2087
2106
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2088
2107
  isBindingEnabled: boolean;
2089
2108
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2090
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
2109
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2091
2110
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2092
2111
  frameRendering: {
2093
2112
  enabled: boolean;
@@ -2098,12 +2117,15 @@ export declare const actionChangeVerticalAlign: {
2098
2117
  editingFrame: string | null;
2099
2118
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2100
2119
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2101
- editingLinearElement: LinearElementEditor | null;
2102
2120
  activeTool: {
2103
2121
  lastActiveTool: import("../types").ActiveTool | null;
2104
2122
  locked: boolean;
2105
2123
  fromSelection: boolean;
2106
2124
  } & import("../types").ActiveTool;
2125
+ preferredSelectionTool: {
2126
+ type: "selection" | "lasso";
2127
+ initialized: boolean;
2128
+ };
2107
2129
  penMode: boolean;
2108
2130
  penDetected: boolean;
2109
2131
  exportBackground: boolean;
@@ -2136,8 +2158,8 @@ export declare const actionChangeVerticalAlign: {
2136
2158
  zoom: Readonly<{
2137
2159
  value: import("../types").NormalizedZoomValue;
2138
2160
  }>;
2139
- openMenu: "shape" | "canvas" | null;
2140
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2161
+ openMenu: "canvas" | null;
2162
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2141
2163
  openSidebar: {
2142
2164
  name: string;
2143
2165
  tab?: string | undefined;
@@ -2146,7 +2168,7 @@ export declare const actionChangeVerticalAlign: {
2146
2168
  name: "imageExport" | "help" | "jsonExport";
2147
2169
  } | {
2148
2170
  name: "ttd";
2149
- tab: "text-to-diagram" | "mermaid";
2171
+ tab: "mermaid" | "text-to-diagram";
2150
2172
  } | {
2151
2173
  name: "commandPalette";
2152
2174
  } | {
@@ -2218,7 +2240,6 @@ export declare const actionChangeVerticalAlign: {
2218
2240
  shown: true;
2219
2241
  data: import("../charts").Spreadsheet;
2220
2242
  };
2221
- pendingImageElementId: string | null;
2222
2243
  showHyperlinkPopup: false | "editor" | "info";
2223
2244
  selectedLinearElement: LinearElementEditor | null;
2224
2245
  snapLines: readonly import("../snapping").SnapLine[];
@@ -2231,20 +2252,19 @@ export declare const actionChangeVerticalAlign: {
2231
2252
  followedBy: Set<import("../types").SocketId>;
2232
2253
  isCropping: boolean;
2233
2254
  croppingElementId: string | null;
2234
- searchMatches: readonly {
2235
- id: string;
2236
- focus: boolean;
2237
- matchedLines: {
2238
- offsetX: number;
2239
- offsetY: number;
2240
- width: number;
2241
- height: number;
2242
- }[];
2243
- }[];
2255
+ searchMatches: Readonly<{
2256
+ focusedId: string | null;
2257
+ matches: readonly import("../types").SearchMatch[];
2258
+ }> | null;
2259
+ activeLockedId: string | null;
2260
+ lockedMultiSelections: {
2261
+ [groupId: string]: true;
2262
+ };
2263
+ stylesPanelMode: "compact" | "full" | "mobile";
2244
2264
  };
2245
2265
  captureUpdate: "IMMEDIATELY";
2246
2266
  };
2247
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2267
+ PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2248
2268
  } & {
2249
2269
  keyTest?: undefined;
2250
2270
  };
@@ -2266,7 +2286,7 @@ export declare const actionChangeRoundness: {
2266
2286
  errorMessage: import("react").ReactNode;
2267
2287
  activeEmbeddable: {
2268
2288
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2269
- state: "hover" | "active";
2289
+ state: "active" | "hover";
2270
2290
  } | null;
2271
2291
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2272
2292
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -2274,7 +2294,7 @@ export declare const actionChangeRoundness: {
2274
2294
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2275
2295
  isBindingEnabled: boolean;
2276
2296
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2277
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
2297
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2278
2298
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2279
2299
  frameRendering: {
2280
2300
  enabled: boolean;
@@ -2285,12 +2305,15 @@ export declare const actionChangeRoundness: {
2285
2305
  editingFrame: string | null;
2286
2306
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2287
2307
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2288
- editingLinearElement: LinearElementEditor | null;
2289
2308
  activeTool: {
2290
2309
  lastActiveTool: import("../types").ActiveTool | null;
2291
2310
  locked: boolean;
2292
2311
  fromSelection: boolean;
2293
2312
  } & import("../types").ActiveTool;
2313
+ preferredSelectionTool: {
2314
+ type: "selection" | "lasso";
2315
+ initialized: boolean;
2316
+ };
2294
2317
  penMode: boolean;
2295
2318
  penDetected: boolean;
2296
2319
  exportBackground: boolean;
@@ -2322,8 +2345,8 @@ export declare const actionChangeRoundness: {
2322
2345
  zoom: Readonly<{
2323
2346
  value: import("../types").NormalizedZoomValue;
2324
2347
  }>;
2325
- openMenu: "shape" | "canvas" | null;
2326
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2348
+ openMenu: "canvas" | null;
2349
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2327
2350
  openSidebar: {
2328
2351
  name: string;
2329
2352
  tab?: string | undefined;
@@ -2332,7 +2355,7 @@ export declare const actionChangeRoundness: {
2332
2355
  name: "imageExport" | "help" | "jsonExport";
2333
2356
  } | {
2334
2357
  name: "ttd";
2335
- tab: "text-to-diagram" | "mermaid";
2358
+ tab: "mermaid" | "text-to-diagram";
2336
2359
  } | {
2337
2360
  name: "commandPalette";
2338
2361
  } | {
@@ -2404,7 +2427,6 @@ export declare const actionChangeRoundness: {
2404
2427
  shown: true;
2405
2428
  data: import("../charts").Spreadsheet;
2406
2429
  };
2407
- pendingImageElementId: string | null;
2408
2430
  showHyperlinkPopup: false | "editor" | "info";
2409
2431
  selectedLinearElement: LinearElementEditor | null;
2410
2432
  snapLines: readonly import("../snapping").SnapLine[];
@@ -2417,20 +2439,19 @@ export declare const actionChangeRoundness: {
2417
2439
  followedBy: Set<import("../types").SocketId>;
2418
2440
  isCropping: boolean;
2419
2441
  croppingElementId: string | null;
2420
- searchMatches: readonly {
2421
- id: string;
2422
- focus: boolean;
2423
- matchedLines: {
2424
- offsetX: number;
2425
- offsetY: number;
2426
- width: number;
2427
- height: number;
2428
- }[];
2429
- }[];
2442
+ searchMatches: Readonly<{
2443
+ focusedId: string | null;
2444
+ matches: readonly import("../types").SearchMatch[];
2445
+ }> | null;
2446
+ activeLockedId: string | null;
2447
+ lockedMultiSelections: {
2448
+ [groupId: string]: true;
2449
+ };
2450
+ stylesPanelMode: "compact" | "full" | "mobile";
2430
2451
  };
2431
2452
  captureUpdate: "IMMEDIATELY";
2432
2453
  };
2433
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2454
+ PanelComponent: ({ elements, appState, updateData, app, renderAction }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2434
2455
  } & {
2435
2456
  keyTest?: undefined;
2436
2457
  };
@@ -2454,7 +2475,7 @@ export declare const actionChangeArrowhead: {
2454
2475
  errorMessage: import("react").ReactNode;
2455
2476
  activeEmbeddable: {
2456
2477
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2457
- state: "hover" | "active";
2478
+ state: "active" | "hover";
2458
2479
  } | null;
2459
2480
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2460
2481
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -2462,7 +2483,7 @@ export declare const actionChangeArrowhead: {
2462
2483
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2463
2484
  isBindingEnabled: boolean;
2464
2485
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2465
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
2486
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2466
2487
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2467
2488
  frameRendering: {
2468
2489
  enabled: boolean;
@@ -2473,12 +2494,15 @@ export declare const actionChangeArrowhead: {
2473
2494
  editingFrame: string | null;
2474
2495
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2475
2496
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2476
- editingLinearElement: LinearElementEditor | null;
2477
2497
  activeTool: {
2478
2498
  lastActiveTool: import("../types").ActiveTool | null;
2479
2499
  locked: boolean;
2480
2500
  fromSelection: boolean;
2481
2501
  } & import("../types").ActiveTool;
2502
+ preferredSelectionTool: {
2503
+ type: "selection" | "lasso";
2504
+ initialized: boolean;
2505
+ };
2482
2506
  penMode: boolean;
2483
2507
  penDetected: boolean;
2484
2508
  exportBackground: boolean;
@@ -2511,8 +2535,8 @@ export declare const actionChangeArrowhead: {
2511
2535
  zoom: Readonly<{
2512
2536
  value: import("../types").NormalizedZoomValue;
2513
2537
  }>;
2514
- openMenu: "shape" | "canvas" | null;
2515
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2538
+ openMenu: "canvas" | null;
2539
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2516
2540
  openSidebar: {
2517
2541
  name: string;
2518
2542
  tab?: string | undefined;
@@ -2521,7 +2545,7 @@ export declare const actionChangeArrowhead: {
2521
2545
  name: "imageExport" | "help" | "jsonExport";
2522
2546
  } | {
2523
2547
  name: "ttd";
2524
- tab: "text-to-diagram" | "mermaid";
2548
+ tab: "mermaid" | "text-to-diagram";
2525
2549
  } | {
2526
2550
  name: "commandPalette";
2527
2551
  } | {
@@ -2593,7 +2617,6 @@ export declare const actionChangeArrowhead: {
2593
2617
  shown: true;
2594
2618
  data: import("../charts").Spreadsheet;
2595
2619
  };
2596
- pendingImageElementId: string | null;
2597
2620
  showHyperlinkPopup: false | "editor" | "info";
2598
2621
  selectedLinearElement: LinearElementEditor | null;
2599
2622
  snapLines: readonly import("../snapping").SnapLine[];
@@ -2606,20 +2629,28 @@ export declare const actionChangeArrowhead: {
2606
2629
  followedBy: Set<import("../types").SocketId>;
2607
2630
  isCropping: boolean;
2608
2631
  croppingElementId: string | null;
2609
- searchMatches: readonly {
2610
- id: string;
2611
- focus: boolean;
2612
- matchedLines: {
2613
- offsetX: number;
2614
- offsetY: number;
2615
- width: number;
2616
- height: number;
2617
- }[];
2618
- }[];
2632
+ searchMatches: Readonly<{
2633
+ focusedId: string | null;
2634
+ matches: readonly import("../types").SearchMatch[];
2635
+ }> | null;
2636
+ activeLockedId: string | null;
2637
+ lockedMultiSelections: {
2638
+ [groupId: string]: true;
2639
+ };
2640
+ stylesPanelMode: "compact" | "full" | "mobile";
2619
2641
  };
2620
2642
  captureUpdate: "IMMEDIATELY";
2621
2643
  };
2622
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2644
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2645
+ } & {
2646
+ keyTest?: undefined;
2647
+ };
2648
+ export declare const actionChangeArrowProperties: {
2649
+ name: "changeArrowProperties";
2650
+ label: string;
2651
+ trackEvent: false;
2652
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => false;
2653
+ PanelComponent: ({ elements, appState, updateData, app, renderAction }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2623
2654
  } & {
2624
2655
  keyTest?: undefined;
2625
2656
  };
@@ -2641,7 +2672,7 @@ export declare const actionChangeArrowType: {
2641
2672
  errorMessage: import("react").ReactNode;
2642
2673
  activeEmbeddable: {
2643
2674
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2644
- state: "hover" | "active";
2675
+ state: "active" | "hover";
2645
2676
  } | null;
2646
2677
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2647
2678
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -2649,7 +2680,7 @@ export declare const actionChangeArrowType: {
2649
2680
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2650
2681
  isBindingEnabled: boolean;
2651
2682
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2652
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
2683
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2653
2684
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2654
2685
  frameRendering: {
2655
2686
  enabled: boolean;
@@ -2660,12 +2691,15 @@ export declare const actionChangeArrowType: {
2660
2691
  editingFrame: string | null;
2661
2692
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2662
2693
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2663
- editingLinearElement: LinearElementEditor | null;
2664
2694
  activeTool: {
2665
2695
  lastActiveTool: import("../types").ActiveTool | null;
2666
2696
  locked: boolean;
2667
2697
  fromSelection: boolean;
2668
2698
  } & import("../types").ActiveTool;
2699
+ preferredSelectionTool: {
2700
+ type: "selection" | "lasso";
2701
+ initialized: boolean;
2702
+ };
2669
2703
  penMode: boolean;
2670
2704
  penDetected: boolean;
2671
2705
  exportBackground: boolean;
@@ -2697,8 +2731,8 @@ export declare const actionChangeArrowType: {
2697
2731
  zoom: Readonly<{
2698
2732
  value: import("../types").NormalizedZoomValue;
2699
2733
  }>;
2700
- openMenu: "shape" | "canvas" | null;
2701
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2734
+ openMenu: "canvas" | null;
2735
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2702
2736
  openSidebar: {
2703
2737
  name: string;
2704
2738
  tab?: string | undefined;
@@ -2707,7 +2741,7 @@ export declare const actionChangeArrowType: {
2707
2741
  name: "imageExport" | "help" | "jsonExport";
2708
2742
  } | {
2709
2743
  name: "ttd";
2710
- tab: "text-to-diagram" | "mermaid";
2744
+ tab: "mermaid" | "text-to-diagram";
2711
2745
  } | {
2712
2746
  name: "commandPalette";
2713
2747
  } | {
@@ -2779,7 +2813,6 @@ export declare const actionChangeArrowType: {
2779
2813
  shown: true;
2780
2814
  data: import("../charts").Spreadsheet;
2781
2815
  };
2782
- pendingImageElementId: string | null;
2783
2816
  showHyperlinkPopup: false | "editor" | "info";
2784
2817
  selectedLinearElement: LinearElementEditor | null;
2785
2818
  snapLines: readonly import("../snapping").SnapLine[];
@@ -2792,20 +2825,19 @@ export declare const actionChangeArrowType: {
2792
2825
  followedBy: Set<import("../types").SocketId>;
2793
2826
  isCropping: boolean;
2794
2827
  croppingElementId: string | null;
2795
- searchMatches: readonly {
2796
- id: string;
2797
- focus: boolean;
2798
- matchedLines: {
2799
- offsetX: number;
2800
- offsetY: number;
2801
- width: number;
2802
- height: number;
2803
- }[];
2804
- }[];
2828
+ searchMatches: Readonly<{
2829
+ focusedId: string | null;
2830
+ matches: readonly import("../types").SearchMatch[];
2831
+ }> | null;
2832
+ activeLockedId: string | null;
2833
+ lockedMultiSelections: {
2834
+ [groupId: string]: true;
2835
+ };
2836
+ stylesPanelMode: "compact" | "full" | "mobile";
2805
2837
  };
2806
2838
  captureUpdate: "IMMEDIATELY";
2807
2839
  };
2808
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2840
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2809
2841
  } & {
2810
2842
  keyTest?: undefined;
2811
2843
  };