@myoc/excalidraw 0.18.16 → 0.18.17

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 (152) hide show
  1. package/dist/dev/{chunk-3HLOFB5F.js → chunk-FQEIAL75.js} +14723 -9831
  2. package/dist/dev/chunk-FQEIAL75.js.map +7 -0
  3. package/dist/dev/{chunk-PEI7EPYO.js → chunk-KJKC5BJI.js} +10 -4
  4. package/dist/dev/chunk-KJKC5BJI.js.map +7 -0
  5. package/dist/dev/{chunk-QQGTICP4.js → chunk-XL2I4W52.js} +2 -2
  6. package/dist/dev/data/{image-XPEIZ6XQ.js → image-WMF622SS.js} +3 -3
  7. package/dist/dev/index.css +69 -22
  8. package/dist/dev/index.css.map +3 -3
  9. package/dist/dev/index.js +3099 -6535
  10. package/dist/dev/index.js.map +4 -4
  11. package/dist/dev/locales/{en-R455UJTM.js → en-UQFCZXHO.js} +2 -2
  12. package/dist/dev/subset-shared.chunk.js +1 -1
  13. package/dist/dev/subset-worker.chunk.js +1 -1
  14. package/dist/prod/{chunk-7HNFGNL7.js → chunk-5JAQX5EH.js} +1 -1
  15. package/dist/prod/{chunk-KZWZ7WHC.js → chunk-EJLAYNAE.js} +4 -4
  16. package/dist/prod/chunk-LSNMPGNI.js +33 -0
  17. package/dist/prod/data/image-Z433FUMH.js +1 -0
  18. package/dist/prod/index.css +1 -1
  19. package/dist/prod/index.js +17 -16
  20. package/dist/prod/locales/{en-YWERZJD6.js → en-7EHYHCIL.js} +1 -1
  21. package/dist/prod/subset-shared.chunk.js +1 -1
  22. package/dist/prod/subset-worker.chunk.js +1 -1
  23. package/dist/types/common/src/constants.d.ts +3 -1
  24. package/dist/types/{excalidraw → common/src}/emitter.d.ts +1 -1
  25. package/dist/types/common/src/font-metadata.d.ts +4 -2
  26. package/dist/types/common/src/index.d.ts +1 -0
  27. package/dist/types/common/src/utility-types.d.ts +5 -0
  28. package/dist/types/common/src/utils.d.ts +16 -4
  29. package/dist/types/{excalidraw/scene → element/src}/Scene.d.ts +11 -14
  30. package/dist/types/element/src/ShapeCache.d.ts +1 -1
  31. package/dist/types/element/src/align.d.ts +3 -3
  32. package/dist/types/element/src/arrange.d.ts +2 -1
  33. package/dist/types/element/src/binding.d.ts +18 -10
  34. package/dist/types/element/src/bounds.d.ts +1 -1
  35. package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +40 -35
  36. package/dist/types/element/src/dragElements.d.ts +3 -2
  37. package/dist/types/element/src/elbowArrow.d.ts +1 -1
  38. package/dist/types/element/src/flowchart.d.ts +3 -2
  39. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  40. package/dist/types/element/src/frame.d.ts +4 -3
  41. package/dist/types/element/src/index.d.ts +45 -2
  42. package/dist/types/element/src/linearElementEditor.d.ts +14 -18
  43. package/dist/types/element/src/mutateElement.d.ts +10 -2
  44. package/dist/types/element/src/newElement.d.ts +3 -3
  45. package/dist/types/element/src/resizeElements.d.ts +4 -4
  46. package/dist/types/element/src/selection.d.ts +1 -6
  47. package/dist/types/element/src/shapes.d.ts +1 -1
  48. package/dist/types/element/src/sizeHelpers.d.ts +0 -1
  49. package/dist/types/element/src/store.d.ts +227 -0
  50. package/dist/types/element/src/textElement.d.ts +4 -3
  51. package/dist/types/element/src/typeChecks.d.ts +5 -1
  52. package/dist/types/element/src/types.d.ts +8 -0
  53. package/dist/types/element/src/zindex.d.ts +1 -1
  54. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +27 -45
  55. package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
  56. package/dist/types/excalidraw/actions/actionArrange.d.ts +2 -2
  57. package/dist/types/excalidraw/actions/actionBoundText.d.ts +18 -30
  58. package/dist/types/excalidraw/actions/actionCanvas.d.ts +127 -199
  59. package/dist/types/excalidraw/actions/actionClipboard.d.ts +56 -92
  60. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +9 -15
  61. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +25 -43
  62. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
  63. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  64. package/dist/types/excalidraw/actions/actionElementLink.d.ts +9 -15
  65. package/dist/types/excalidraw/actions/actionElementLock.d.ts +20 -32
  66. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +9 -15
  67. package/dist/types/excalidraw/actions/actionExport.d.ts +175 -229
  68. package/dist/types/excalidraw/actions/actionFinalize.d.ts +16 -28
  69. package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
  70. package/dist/types/excalidraw/actions/actionFrame.d.ts +80 -104
  71. package/dist/types/excalidraw/actions/actionGroup.d.ts +24 -36
  72. package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -2
  73. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +8 -14
  74. package/dist/types/excalidraw/actions/actionLink.d.ts +9 -15
  75. package/dist/types/excalidraw/actions/actionMenu.d.ts +27 -45
  76. package/dist/types/excalidraw/actions/actionNavigate.d.ts +17 -29
  77. package/dist/types/excalidraw/actions/actionProperties.d.ts +123 -213
  78. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +11 -17
  79. package/dist/types/excalidraw/actions/actionSmartZoom.d.ts +2 -2
  80. package/dist/types/excalidraw/actions/actionStyles.d.ts +13 -19
  81. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +11 -17
  82. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +11 -17
  83. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +11 -198
  84. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  85. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +11 -17
  86. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +11 -17
  87. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +11 -17
  88. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  89. package/dist/types/excalidraw/actions/types.d.ts +3 -3
  90. package/dist/types/excalidraw/appState.d.ts +30 -30
  91. package/dist/types/excalidraw/components/App.d.ts +13 -8
  92. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  93. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
  94. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  95. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -3
  96. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -3
  97. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -2
  98. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  99. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  100. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  101. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  102. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +4 -3
  103. package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  104. package/dist/types/excalidraw/components/Range.d.ts +3 -3
  105. package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  106. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  107. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  108. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  109. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +1 -1
  110. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  111. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  112. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
  113. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  114. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
  115. package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -1
  116. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -11
  117. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
  118. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  119. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
  120. package/dist/types/excalidraw/components/icons.d.ts +1 -0
  121. package/dist/types/excalidraw/components/shapes.d.ts +1 -1
  122. package/dist/types/excalidraw/data/blob.d.ts +1 -1
  123. package/dist/types/excalidraw/data/transform.d.ts +1 -1
  124. package/dist/types/excalidraw/editor-jotai.d.ts +6 -6
  125. package/dist/types/excalidraw/fonts/Fonts.d.ts +1 -1
  126. package/dist/types/excalidraw/history.d.ts +14 -22
  127. package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  128. package/dist/types/excalidraw/index.d.ts +9 -9
  129. package/dist/types/excalidraw/lasso/index.d.ts +1 -0
  130. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -1
  131. package/dist/types/excalidraw/scene/Renderer.d.ts +1 -1
  132. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  133. package/dist/types/excalidraw/snapping.d.ts +2 -2
  134. package/dist/types/excalidraw/types.d.ts +15 -6
  135. package/dist/types/excalidraw/visualdebug.d.ts +1 -1
  136. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
  137. package/dist/types/math/src/curve.d.ts +2 -0
  138. package/dist/types/math/src/vector.d.ts +4 -0
  139. package/dist/types/utils/src/bbox.d.ts +1 -1
  140. package/dist/types/utils/src/index.d.ts +1 -1
  141. package/dist/types/utils/src/withinBounds.d.ts +1 -1
  142. package/history.ts +68 -94
  143. package/package.json +4 -4
  144. package/dist/dev/chunk-3HLOFB5F.js.map +0 -7
  145. package/dist/dev/chunk-PEI7EPYO.js.map +0 -7
  146. package/dist/prod/chunk-KKQVTSHB.js +0 -33
  147. package/dist/prod/data/image-QD7FUQED.js +0 -1
  148. package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  149. package/dist/types/excalidraw/store.d.ts +0 -129
  150. /package/dist/dev/{chunk-QQGTICP4.js.map → chunk-XL2I4W52.js.map} +0 -0
  151. /package/dist/dev/data/{image-XPEIZ6XQ.js.map → image-WMF622SS.js.map} +0 -0
  152. /package/dist/dev/locales/{en-R455UJTM.js.map → en-UQFCZXHO.js.map} +0 -0
@@ -14,13 +14,13 @@ export declare const actionGroup: {
14
14
  captureUpdate: "EVENTUALLY";
15
15
  } | {
16
16
  appState: {
17
- editingGroupId: string | null;
18
17
  selectedElementIds: Readonly<{
19
18
  [id: string]: true;
20
19
  }>;
21
20
  selectedGroupIds: {
22
21
  [groupId: string]: boolean;
23
22
  };
23
+ editingGroupId: string | null;
24
24
  contextMenu: {
25
25
  items: import("../components/ContextMenu").ContextMenuItems;
26
26
  top: number;
@@ -47,7 +47,7 @@ export declare const actionGroup: {
47
47
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
48
48
  isBindingEnabled: boolean;
49
49
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
50
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
50
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
51
51
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
52
52
  frameRendering: {
53
53
  enabled: boolean;
@@ -58,7 +58,7 @@ export declare const actionGroup: {
58
58
  editingFrame: string | null;
59
59
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
60
60
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
61
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
61
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
62
62
  activeTool: {
63
63
  lastActiveTool: import("../types").ActiveTool | null;
64
64
  locked: boolean;
@@ -96,7 +96,7 @@ export declare const actionGroup: {
96
96
  zoom: Readonly<{
97
97
  value: import("../types").NormalizedZoomValue;
98
98
  }>;
99
- openMenu: "shape" | "canvas" | null;
99
+ openMenu: "canvas" | "shape" | null;
100
100
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
101
101
  openSidebar: {
102
102
  name: string;
@@ -172,8 +172,8 @@ export declare const actionGroup: {
172
172
  data: import("../charts").Spreadsheet;
173
173
  };
174
174
  pendingImageElementId: string | null;
175
- showHyperlinkPopup: false | "editor" | "info";
176
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
175
+ showHyperlinkPopup: false | "info" | "editor";
176
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
177
177
  snapLines: readonly import("../snapping").SnapLine[];
178
178
  originSnapOffset: {
179
179
  x: number;
@@ -184,25 +184,19 @@ export declare const actionGroup: {
184
184
  followedBy: Set<import("../types").SocketId>;
185
185
  isCropping: boolean;
186
186
  croppingElementId: string | null;
187
- searchMatches: readonly {
188
- id: string;
189
- focus: boolean;
190
- matchedLines: {
191
- offsetX: number;
192
- offsetY: number;
193
- width: number;
194
- height: number;
195
- }[];
196
- }[];
187
+ searchMatches: Readonly<{
188
+ focusedId: string | null;
189
+ matches: readonly import("../types").SearchMatch[];
190
+ }> | null;
197
191
  };
198
192
  elements: OrderedExcalidrawElement[];
199
193
  captureUpdate: "IMMEDIATELY";
200
194
  };
201
195
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
202
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
196
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
203
197
  PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
204
198
  } & {
205
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
199
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
206
200
  };
207
201
  export declare const actionUngroup: {
208
202
  name: "ungroup";
@@ -217,13 +211,13 @@ export declare const actionUngroup: {
217
211
  captureUpdate: "EVENTUALLY";
218
212
  } | {
219
213
  appState: {
220
- editingGroupId: string | null;
221
214
  selectedElementIds: Readonly<{
222
215
  [id: string]: true;
223
216
  }>;
224
217
  selectedGroupIds: {
225
218
  [groupId: string]: boolean;
226
219
  };
220
+ editingGroupId: string | null;
227
221
  contextMenu: {
228
222
  items: import("../components/ContextMenu").ContextMenuItems;
229
223
  top: number;
@@ -250,7 +244,7 @@ export declare const actionUngroup: {
250
244
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
251
245
  isBindingEnabled: boolean;
252
246
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
253
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
247
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
254
248
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
255
249
  frameRendering: {
256
250
  enabled: boolean;
@@ -261,7 +255,7 @@ export declare const actionUngroup: {
261
255
  editingFrame: string | null;
262
256
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
263
257
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
264
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
258
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
265
259
  activeTool: {
266
260
  lastActiveTool: import("../types").ActiveTool | null;
267
261
  locked: boolean;
@@ -299,7 +293,7 @@ export declare const actionUngroup: {
299
293
  zoom: Readonly<{
300
294
  value: import("../types").NormalizedZoomValue;
301
295
  }>;
302
- openMenu: "shape" | "canvas" | null;
296
+ openMenu: "canvas" | "shape" | null;
303
297
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
304
298
  openSidebar: {
305
299
  name: string;
@@ -375,8 +369,8 @@ export declare const actionUngroup: {
375
369
  data: import("../charts").Spreadsheet;
376
370
  };
377
371
  pendingImageElementId: string | null;
378
- showHyperlinkPopup: false | "editor" | "info";
379
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
372
+ showHyperlinkPopup: false | "info" | "editor";
373
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
380
374
  snapLines: readonly import("../snapping").SnapLine[];
381
375
  originSnapOffset: {
382
376
  x: number;
@@ -387,23 +381,17 @@ export declare const actionUngroup: {
387
381
  followedBy: Set<import("../types").SocketId>;
388
382
  isCropping: boolean;
389
383
  croppingElementId: string | null;
390
- searchMatches: readonly {
391
- id: string;
392
- focus: boolean;
393
- matchedLines: {
394
- offsetX: number;
395
- offsetY: number;
396
- width: number;
397
- height: number;
398
- }[];
399
- }[];
384
+ searchMatches: Readonly<{
385
+ focusedId: string | null;
386
+ matches: readonly import("../types").SearchMatch[];
387
+ }> | null;
400
388
  };
401
389
  elements: OrderedExcalidrawElement[];
402
390
  captureUpdate: "IMMEDIATELY";
403
391
  };
404
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
392
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
405
393
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
406
394
  PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
407
395
  } & {
408
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
396
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
409
397
  };
@@ -1,7 +1,6 @@
1
1
  import type { History } from "../history";
2
- import type { Store } from "../store";
3
2
  import type { Action } from "./types";
4
- type ActionCreator = (history: History, store: Store) => Action;
3
+ type ActionCreator = (history: History) => Action;
5
4
  export declare const createUndoAction: ActionCreator;
6
5
  export declare const createRedoAction: ActionCreator;
7
6
  export {};
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { LinearElementEditor } from "@excalidraw/element/linearElementEditor";
2
+ import { LinearElementEditor } from "@excalidraw/element";
3
3
  import type { ExcalidrawLinearElement } from "@excalidraw/element/types";
4
4
  export declare const actionToggleLinearEditor: {
5
5
  name: "toggleLinearEditor";
@@ -39,7 +39,7 @@ export declare const actionToggleLinearEditor: {
39
39
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
40
40
  isBindingEnabled: boolean;
41
41
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
42
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
42
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
43
43
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
44
44
  frameRendering: {
45
45
  enabled: boolean;
@@ -87,7 +87,7 @@ export declare const actionToggleLinearEditor: {
87
87
  zoom: Readonly<{
88
88
  value: import("../types").NormalizedZoomValue;
89
89
  }>;
90
- openMenu: "shape" | "canvas" | null;
90
+ openMenu: "canvas" | "shape" | null;
91
91
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
92
92
  openSidebar: {
93
93
  name: string;
@@ -170,7 +170,7 @@ export declare const actionToggleLinearEditor: {
170
170
  data: import("../charts").Spreadsheet;
171
171
  };
172
172
  pendingImageElementId: string | null;
173
- showHyperlinkPopup: false | "editor" | "info";
173
+ showHyperlinkPopup: false | "info" | "editor";
174
174
  selectedLinearElement: LinearElementEditor | null;
175
175
  snapLines: readonly import("../snapping").SnapLine[];
176
176
  originSnapOffset: {
@@ -182,16 +182,10 @@ export declare const actionToggleLinearEditor: {
182
182
  followedBy: Set<import("../types").SocketId>;
183
183
  isCropping: boolean;
184
184
  croppingElementId: string | null;
185
- searchMatches: readonly {
186
- id: string;
187
- focus: boolean;
188
- matchedLines: {
189
- offsetX: number;
190
- offsetY: number;
191
- width: number;
192
- height: number;
193
- }[];
194
- }[];
185
+ searchMatches: Readonly<{
186
+ focusedId: string | null;
187
+ matches: readonly import("../types").SearchMatch[];
188
+ }> | null;
195
189
  };
196
190
  captureUpdate: "IMMEDIATELY";
197
191
  };
@@ -34,7 +34,7 @@ export declare const actionLink: {
34
34
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
35
35
  isBindingEnabled: boolean;
36
36
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
37
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
37
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
38
38
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
39
39
  frameRendering: {
40
40
  enabled: boolean;
@@ -45,7 +45,7 @@ export declare const actionLink: {
45
45
  editingFrame: string | null;
46
46
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
47
47
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
48
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
48
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
49
49
  activeTool: {
50
50
  lastActiveTool: import("../types").ActiveTool | null;
51
51
  locked: boolean;
@@ -165,7 +165,7 @@ export declare const actionLink: {
165
165
  data: import("../charts").Spreadsheet;
166
166
  };
167
167
  pendingImageElementId: string | null;
168
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
168
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
169
169
  snapLines: readonly import("../snapping").SnapLine[];
170
170
  originSnapOffset: {
171
171
  x: number;
@@ -176,16 +176,10 @@ export declare const actionLink: {
176
176
  followedBy: Set<import("../types").SocketId>;
177
177
  isCropping: boolean;
178
178
  croppingElementId: string | null;
179
- searchMatches: readonly {
180
- id: string;
181
- focus: boolean;
182
- matchedLines: {
183
- offsetX: number;
184
- offsetY: number;
185
- width: number;
186
- height: number;
187
- }[];
188
- }[];
179
+ searchMatches: Readonly<{
180
+ focusedId: string | null;
181
+ matches: readonly import("../types").SearchMatch[];
182
+ }> | null;
189
183
  };
190
184
  captureUpdate: "IMMEDIATELY";
191
185
  };
@@ -193,9 +187,9 @@ export declare const actionLink: {
193
187
  category: "hyperlink";
194
188
  action: string;
195
189
  };
196
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
190
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
197
191
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState) => boolean;
198
192
  PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
199
193
  } & {
200
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
194
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
201
195
  };
@@ -34,7 +34,7 @@ export declare const actionToggleCanvasMenu: {
34
34
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
35
35
  isBindingEnabled: boolean;
36
36
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
37
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
37
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
38
38
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
39
39
  frameRendering: {
40
40
  enabled: boolean;
@@ -45,7 +45,7 @@ export declare const actionToggleCanvasMenu: {
45
45
  editingFrame: string | null;
46
46
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
47
47
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
48
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
48
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
49
49
  activeTool: {
50
50
  lastActiveTool: import("../types").ActiveTool | null;
51
51
  locked: boolean;
@@ -165,8 +165,8 @@ export declare const actionToggleCanvasMenu: {
165
165
  data: import("../charts").Spreadsheet;
166
166
  };
167
167
  pendingImageElementId: string | null;
168
- showHyperlinkPopup: false | "editor" | "info";
169
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
168
+ showHyperlinkPopup: false | "info" | "editor";
169
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
170
170
  snapLines: readonly import("../snapping").SnapLine[];
171
171
  originSnapOffset: {
172
172
  x: number;
@@ -177,16 +177,10 @@ export declare const actionToggleCanvasMenu: {
177
177
  followedBy: Set<import("../types").SocketId>;
178
178
  isCropping: boolean;
179
179
  croppingElementId: string | null;
180
- searchMatches: readonly {
181
- id: string;
182
- focus: boolean;
183
- matchedLines: {
184
- offsetX: number;
185
- offsetY: number;
186
- width: number;
187
- height: number;
188
- }[];
189
- }[];
180
+ searchMatches: Readonly<{
181
+ focusedId: string | null;
182
+ matches: readonly import("../types").SearchMatch[];
183
+ }> | null;
190
184
  };
191
185
  captureUpdate: "EVENTUALLY";
192
186
  };
@@ -229,7 +223,7 @@ export declare const actionToggleEditMenu: {
229
223
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
230
224
  isBindingEnabled: boolean;
231
225
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
232
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
226
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
233
227
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
234
228
  frameRendering: {
235
229
  enabled: boolean;
@@ -240,7 +234,7 @@ export declare const actionToggleEditMenu: {
240
234
  editingFrame: string | null;
241
235
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
242
236
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
243
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
237
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
244
238
  activeTool: {
245
239
  lastActiveTool: import("../types").ActiveTool | null;
246
240
  locked: boolean;
@@ -360,8 +354,8 @@ export declare const actionToggleEditMenu: {
360
354
  data: import("../charts").Spreadsheet;
361
355
  };
362
356
  pendingImageElementId: string | null;
363
- showHyperlinkPopup: false | "editor" | "info";
364
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
357
+ showHyperlinkPopup: false | "info" | "editor";
358
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
365
359
  snapLines: readonly import("../snapping").SnapLine[];
366
360
  originSnapOffset: {
367
361
  x: number;
@@ -372,16 +366,10 @@ export declare const actionToggleEditMenu: {
372
366
  followedBy: Set<import("../types").SocketId>;
373
367
  isCropping: boolean;
374
368
  croppingElementId: string | null;
375
- searchMatches: readonly {
376
- id: string;
377
- focus: boolean;
378
- matchedLines: {
379
- offsetX: number;
380
- offsetY: number;
381
- width: number;
382
- height: number;
383
- }[];
384
- }[];
369
+ searchMatches: Readonly<{
370
+ focusedId: string | null;
371
+ matches: readonly import("../types").SearchMatch[];
372
+ }> | null;
385
373
  };
386
374
  captureUpdate: "EVENTUALLY";
387
375
  };
@@ -429,7 +417,7 @@ export declare const actionShortcuts: {
429
417
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
430
418
  isBindingEnabled: boolean;
431
419
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
432
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
420
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
433
421
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
434
422
  frameRendering: {
435
423
  enabled: boolean;
@@ -440,7 +428,7 @@ export declare const actionShortcuts: {
440
428
  editingFrame: string | null;
441
429
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
442
430
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
443
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
431
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
444
432
  activeTool: {
445
433
  lastActiveTool: import("../types").ActiveTool | null;
446
434
  locked: boolean;
@@ -478,7 +466,7 @@ export declare const actionShortcuts: {
478
466
  zoom: Readonly<{
479
467
  value: import("../types").NormalizedZoomValue;
480
468
  }>;
481
- openMenu: "shape" | "canvas" | null;
469
+ openMenu: "canvas" | "shape" | null;
482
470
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
483
471
  openSidebar: {
484
472
  name: string;
@@ -550,8 +538,8 @@ export declare const actionShortcuts: {
550
538
  data: import("../charts").Spreadsheet;
551
539
  };
552
540
  pendingImageElementId: string | null;
553
- showHyperlinkPopup: false | "editor" | "info";
554
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
541
+ showHyperlinkPopup: false | "info" | "editor";
542
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
555
543
  snapLines: readonly import("../snapping").SnapLine[];
556
544
  originSnapOffset: {
557
545
  x: number;
@@ -562,20 +550,14 @@ export declare const actionShortcuts: {
562
550
  followedBy: Set<import("../types").SocketId>;
563
551
  isCropping: boolean;
564
552
  croppingElementId: string | null;
565
- searchMatches: readonly {
566
- id: string;
567
- focus: boolean;
568
- matchedLines: {
569
- offsetX: number;
570
- offsetY: number;
571
- width: number;
572
- height: number;
573
- }[];
574
- }[];
553
+ searchMatches: Readonly<{
554
+ focusedId: string | null;
555
+ matches: readonly import("../types").SearchMatch[];
556
+ }> | null;
575
557
  };
576
558
  captureUpdate: "EVENTUALLY";
577
559
  };
578
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
560
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
579
561
  } & {
580
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
562
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
581
563
  };
@@ -36,7 +36,7 @@ export declare const actionGoToCollaborator: {
36
36
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
37
37
  isBindingEnabled: boolean;
38
38
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
39
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
39
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
40
40
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
41
41
  frameRendering: {
42
42
  enabled: boolean;
@@ -47,7 +47,7 @@ export declare const actionGoToCollaborator: {
47
47
  editingFrame: string | null;
48
48
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
49
49
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
50
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
50
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
51
51
  activeTool: {
52
52
  lastActiveTool: import("../types").ActiveTool | null;
53
53
  locked: boolean;
@@ -85,7 +85,7 @@ export declare const actionGoToCollaborator: {
85
85
  zoom: Readonly<{
86
86
  value: import("../types").NormalizedZoomValue;
87
87
  }>;
88
- openMenu: "shape" | "canvas" | null;
88
+ openMenu: "canvas" | "shape" | null;
89
89
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
90
90
  openSidebar: {
91
91
  name: string;
@@ -168,8 +168,8 @@ export declare const actionGoToCollaborator: {
168
168
  data: import("../charts").Spreadsheet;
169
169
  };
170
170
  pendingImageElementId: string | null;
171
- showHyperlinkPopup: false | "editor" | "info";
172
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
171
+ showHyperlinkPopup: false | "info" | "editor";
172
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
173
173
  snapLines: readonly import("../snapping").SnapLine[];
174
174
  originSnapOffset: {
175
175
  x: number;
@@ -179,16 +179,10 @@ export declare const actionGoToCollaborator: {
179
179
  followedBy: Set<import("../types").SocketId>;
180
180
  isCropping: boolean;
181
181
  croppingElementId: string | null;
182
- searchMatches: readonly {
183
- id: string;
184
- focus: boolean;
185
- matchedLines: {
186
- offsetX: number;
187
- offsetY: number;
188
- width: number;
189
- height: number;
190
- }[];
191
- }[];
182
+ searchMatches: Readonly<{
183
+ focusedId: string | null;
184
+ matches: readonly import("../types").SearchMatch[];
185
+ }> | null;
192
186
  };
193
187
  captureUpdate: "EVENTUALLY";
194
188
  } | {
@@ -224,7 +218,7 @@ export declare const actionGoToCollaborator: {
224
218
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
225
219
  isBindingEnabled: boolean;
226
220
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
227
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
221
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
228
222
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
229
223
  frameRendering: {
230
224
  enabled: boolean;
@@ -235,7 +229,7 @@ export declare const actionGoToCollaborator: {
235
229
  editingFrame: string | null;
236
230
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
237
231
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
238
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
232
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
239
233
  activeTool: {
240
234
  lastActiveTool: import("../types").ActiveTool | null;
241
235
  locked: boolean;
@@ -355,8 +349,8 @@ export declare const actionGoToCollaborator: {
355
349
  data: import("../charts").Spreadsheet;
356
350
  };
357
351
  pendingImageElementId: string | null;
358
- showHyperlinkPopup: false | "editor" | "info";
359
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
352
+ showHyperlinkPopup: false | "info" | "editor";
353
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
360
354
  snapLines: readonly import("../snapping").SnapLine[];
361
355
  originSnapOffset: {
362
356
  x: number;
@@ -366,16 +360,10 @@ export declare const actionGoToCollaborator: {
366
360
  followedBy: Set<import("../types").SocketId>;
367
361
  isCropping: boolean;
368
362
  croppingElementId: string | null;
369
- searchMatches: readonly {
370
- id: string;
371
- focus: boolean;
372
- matchedLines: {
373
- offsetX: number;
374
- offsetY: number;
375
- width: number;
376
- height: number;
377
- }[];
378
- }[];
363
+ searchMatches: Readonly<{
364
+ focusedId: string | null;
365
+ matches: readonly import("../types").SearchMatch[];
366
+ }> | null;
379
367
  };
380
368
  captureUpdate: "EVENTUALLY";
381
369
  };