@myoc/excalidraw 0.18.16 → 0.18.18

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 (179) hide show
  1. package/dist/dev/{chunk-3HLOFB5F.js → chunk-MAGRVBVM.js} +13453 -10629
  2. package/dist/dev/chunk-MAGRVBVM.js.map +7 -0
  3. package/dist/dev/{chunk-PEI7EPYO.js → chunk-QO4EFL6B.js} +15 -5
  4. package/dist/dev/chunk-QO4EFL6B.js.map +7 -0
  5. package/dist/dev/chunk-WUH7JFG4.js +7 -0
  6. package/dist/dev/chunk-WUH7JFG4.js.map +7 -0
  7. package/dist/dev/data/{image-XPEIZ6XQ.js → image-BBHDGXQ3.js} +3 -3
  8. package/dist/dev/index.css +101 -24
  9. package/dist/dev/index.css.map +3 -3
  10. package/dist/dev/index.js +6587 -7610
  11. package/dist/dev/index.js.map +4 -4
  12. package/dist/dev/locales/{en-R455UJTM.js → en-2WXBKZE2.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-4Z2WWUCC.js +7 -0
  16. package/dist/prod/chunk-KZXLT4YB.js +12 -0
  17. package/dist/prod/chunk-YBT3HBS6.js +33 -0
  18. package/dist/prod/data/image-JFILZTP3.js +1 -0
  19. package/dist/prod/index.css +1 -1
  20. package/dist/prod/index.js +18 -17
  21. package/dist/prod/locales/{en-YWERZJD6.js → en-XFR6MADM.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 +19 -2
  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/points.d.ts +1 -1
  29. package/dist/types/common/src/utility-types.d.ts +5 -0
  30. package/dist/types/common/src/utils.d.ts +17 -7
  31. package/dist/types/{excalidraw/scene → element/src}/Scene.d.ts +11 -14
  32. package/dist/types/element/src/align.d.ts +3 -3
  33. package/dist/types/element/src/arrange.d.ts +2 -1
  34. package/dist/types/element/src/binding.d.ts +21 -14
  35. package/dist/types/element/src/bounds.d.ts +11 -5
  36. package/dist/types/element/src/collision.d.ts +18 -12
  37. package/dist/types/element/src/cropElement.d.ts +1 -1
  38. package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +63 -38
  39. package/dist/types/element/src/distance.d.ts +2 -2
  40. package/dist/types/element/src/dragElements.d.ts +3 -2
  41. package/dist/types/element/src/elbowArrow.d.ts +2 -2
  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 +4 -3
  45. package/dist/types/element/src/heading.d.ts +2 -2
  46. package/dist/types/element/src/index.d.ts +43 -2
  47. package/dist/types/element/src/linearElementEditor.d.ts +21 -32
  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/resizeElements.d.ts +5 -4
  51. package/dist/types/element/src/resizeTest.d.ts +2 -2
  52. package/dist/types/element/src/selection.d.ts +1 -6
  53. package/dist/types/element/src/shape.d.ts +42 -0
  54. package/dist/types/element/src/shapes.d.ts +10 -10
  55. package/dist/types/element/src/sizeHelpers.d.ts +2 -2
  56. package/dist/types/element/src/store.d.ts +231 -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 +5 -1
  61. package/dist/types/element/src/zindex.d.ts +1 -1
  62. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +42 -51
  63. package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
  64. package/dist/types/excalidraw/actions/actionArrange.d.ts +2 -2
  65. package/dist/types/excalidraw/actions/actionBoundText.d.ts +28 -34
  66. package/dist/types/excalidraw/actions/actionCanvas.d.ts +187 -223
  67. package/dist/types/excalidraw/actions/actionClipboard.d.ts +87 -104
  68. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +14 -17
  69. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +41 -49
  70. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
  71. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  72. package/dist/types/excalidraw/actions/actionElementLink.d.ts +14 -17
  73. package/dist/types/excalidraw/actions/actionElementLock.d.ts +43 -50
  74. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +14 -17
  75. package/dist/types/excalidraw/actions/actionExport.d.ts +219 -246
  76. package/dist/types/excalidraw/actions/actionFinalize.d.ts +74 -40
  77. package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
  78. package/dist/types/excalidraw/actions/actionFrame.d.ts +100 -112
  79. package/dist/types/excalidraw/actions/actionGroup.d.ts +34 -40
  80. package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -2
  81. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +506 -16
  82. package/dist/types/excalidraw/actions/actionLink.d.ts +14 -17
  83. package/dist/types/excalidraw/actions/actionMenu.d.ts +42 -51
  84. package/dist/types/excalidraw/actions/actionNavigate.d.ts +27 -33
  85. package/dist/types/excalidraw/actions/actionProperties.d.ts +206 -243
  86. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +16 -19
  87. package/dist/types/excalidraw/actions/actionSmartZoom.d.ts +2 -2
  88. package/dist/types/excalidraw/actions/actionStyles.d.ts +18 -21
  89. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +16 -19
  90. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +16 -19
  91. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +16 -200
  92. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  93. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +16 -19
  94. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +16 -19
  95. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +16 -19
  96. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  97. package/dist/types/excalidraw/actions/types.d.ts +4 -3
  98. package/dist/types/excalidraw/appState.d.ts +40 -31
  99. package/dist/types/excalidraw/components/App.d.ts +15 -17
  100. package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -0
  101. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  102. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
  103. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  104. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -3
  105. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -3
  106. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -2
  107. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  108. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  109. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  110. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  111. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +4 -3
  112. package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  113. package/dist/types/excalidraw/components/Range.d.ts +3 -3
  114. package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  115. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  116. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  117. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  118. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +1 -1
  119. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  120. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  121. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
  122. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  123. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
  124. package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -1
  125. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -11
  126. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  127. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
  128. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  129. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
  130. package/dist/types/excalidraw/components/icons.d.ts +3 -0
  131. package/dist/types/excalidraw/components/shapes.d.ts +1 -1
  132. package/dist/types/excalidraw/data/blob.d.ts +1 -1
  133. package/dist/types/excalidraw/data/transform.d.ts +1 -1
  134. package/dist/types/excalidraw/editor-jotai.d.ts +6 -6
  135. package/dist/types/excalidraw/eraser/index.d.ts +0 -2
  136. package/dist/types/excalidraw/fonts/Fonts.d.ts +1 -1
  137. package/dist/types/excalidraw/history.d.ts +30 -22
  138. package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  139. package/dist/types/excalidraw/index.d.ts +9 -9
  140. package/dist/types/excalidraw/lasso/index.d.ts +1 -0
  141. package/dist/types/excalidraw/lasso/utils.d.ts +2 -1
  142. package/dist/types/excalidraw/renderer/helpers.d.ts +7 -2
  143. package/dist/types/excalidraw/scene/Renderer.d.ts +1 -2
  144. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  145. package/dist/types/excalidraw/snapping.d.ts +2 -2
  146. package/dist/types/excalidraw/types.d.ts +25 -10
  147. package/dist/types/excalidraw/visualdebug.d.ts +1 -1
  148. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
  149. package/dist/types/math/src/angle.d.ts +3 -1
  150. package/dist/types/math/src/constants.d.ts +3 -0
  151. package/dist/types/math/src/curve.d.ts +34 -0
  152. package/dist/types/math/src/ellipse.d.ts +3 -3
  153. package/dist/types/math/src/index.d.ts +1 -0
  154. package/dist/types/math/src/point.d.ts +3 -3
  155. package/dist/types/math/src/polygon.d.ts +2 -2
  156. package/dist/types/math/src/segment.d.ts +5 -5
  157. package/dist/types/math/src/utils.d.ts +2 -0
  158. package/dist/types/math/src/vector.d.ts +8 -2
  159. package/dist/types/utils/src/bbox.d.ts +1 -1
  160. package/dist/types/utils/src/index.d.ts +1 -1
  161. package/dist/types/utils/src/shape.d.ts +12 -12
  162. package/dist/types/utils/src/withinBounds.d.ts +1 -1
  163. package/history.ts +147 -110
  164. package/package.json +4 -4
  165. package/dist/dev/chunk-3HLOFB5F.js.map +0 -7
  166. package/dist/dev/chunk-PEI7EPYO.js.map +0 -7
  167. package/dist/dev/chunk-QQGTICP4.js +0 -7
  168. package/dist/dev/chunk-QQGTICP4.js.map +0 -7
  169. package/dist/prod/chunk-7HNFGNL7.js +0 -7
  170. package/dist/prod/chunk-KKQVTSHB.js +0 -33
  171. package/dist/prod/chunk-KZWZ7WHC.js +0 -12
  172. package/dist/prod/data/image-QD7FUQED.js +0 -1
  173. package/dist/types/element/src/Shape.d.ts +0 -17
  174. package/dist/types/element/src/ShapeCache.d.ts +0 -25
  175. package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  176. package/dist/types/excalidraw/store.d.ts +0 -129
  177. package/dist/types/utils/src/collision.d.ts +0 -8
  178. /package/dist/dev/data/{image-XPEIZ6XQ.js.map → image-BBHDGXQ3.js.map} +0 -0
  179. /package/dist/dev/locales/{en-R455UJTM.js.map → en-2WXBKZE2.js.map} +0 -0
@@ -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;
@@ -71,7 +71,7 @@ export declare const actionToggleCanvasMenu: {
71
71
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
72
72
  currentHoveredFontFamily: number | null;
73
73
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
74
- currentItemArrowType: "round" | "sharp" | "elbow";
74
+ currentItemArrowType: "sharp" | "round" | "elbow";
75
75
  viewBackgroundColor: string;
76
76
  scrollX: number;
77
77
  scrollY: number;
@@ -164,9 +164,8 @@ export declare const actionToggleCanvasMenu: {
164
164
  shown: true;
165
165
  data: import("../charts").Spreadsheet;
166
166
  };
167
- pendingImageElementId: string | null;
168
- showHyperlinkPopup: false | "editor" | "info";
169
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
167
+ showHyperlinkPopup: false | "info" | "editor";
168
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
170
169
  snapLines: readonly import("../snapping").SnapLine[];
171
170
  originSnapOffset: {
172
171
  x: number;
@@ -177,16 +176,14 @@ export declare const actionToggleCanvasMenu: {
177
176
  followedBy: Set<import("../types").SocketId>;
178
177
  isCropping: boolean;
179
178
  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
- }[];
179
+ searchMatches: Readonly<{
180
+ focusedId: string | null;
181
+ matches: readonly import("../types").SearchMatch[];
182
+ }> | null;
183
+ activeLockedId: string | null;
184
+ lockedMultiSelections: {
185
+ [groupId: string]: true;
186
+ };
190
187
  };
191
188
  captureUpdate: "EVENTUALLY";
192
189
  };
@@ -229,7 +226,7 @@ export declare const actionToggleEditMenu: {
229
226
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
230
227
  isBindingEnabled: boolean;
231
228
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
232
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
229
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
233
230
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
234
231
  frameRendering: {
235
232
  enabled: boolean;
@@ -240,7 +237,7 @@ export declare const actionToggleEditMenu: {
240
237
  editingFrame: string | null;
241
238
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
242
239
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
243
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
240
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
244
241
  activeTool: {
245
242
  lastActiveTool: import("../types").ActiveTool | null;
246
243
  locked: boolean;
@@ -266,7 +263,7 @@ export declare const actionToggleEditMenu: {
266
263
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
267
264
  currentHoveredFontFamily: number | null;
268
265
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
269
- currentItemArrowType: "round" | "sharp" | "elbow";
266
+ currentItemArrowType: "sharp" | "round" | "elbow";
270
267
  viewBackgroundColor: string;
271
268
  scrollX: number;
272
269
  scrollY: number;
@@ -359,9 +356,8 @@ export declare const actionToggleEditMenu: {
359
356
  shown: true;
360
357
  data: import("../charts").Spreadsheet;
361
358
  };
362
- pendingImageElementId: string | null;
363
- showHyperlinkPopup: false | "editor" | "info";
364
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
359
+ showHyperlinkPopup: false | "info" | "editor";
360
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
365
361
  snapLines: readonly import("../snapping").SnapLine[];
366
362
  originSnapOffset: {
367
363
  x: number;
@@ -372,16 +368,14 @@ export declare const actionToggleEditMenu: {
372
368
  followedBy: Set<import("../types").SocketId>;
373
369
  isCropping: boolean;
374
370
  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
- }[];
371
+ searchMatches: Readonly<{
372
+ focusedId: string | null;
373
+ matches: readonly import("../types").SearchMatch[];
374
+ }> | null;
375
+ activeLockedId: string | null;
376
+ lockedMultiSelections: {
377
+ [groupId: string]: true;
378
+ };
385
379
  };
386
380
  captureUpdate: "EVENTUALLY";
387
381
  };
@@ -429,7 +423,7 @@ export declare const actionShortcuts: {
429
423
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
430
424
  isBindingEnabled: boolean;
431
425
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
432
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
426
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
433
427
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
434
428
  frameRendering: {
435
429
  enabled: boolean;
@@ -440,7 +434,7 @@ export declare const actionShortcuts: {
440
434
  editingFrame: string | null;
441
435
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
442
436
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
443
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
437
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
444
438
  activeTool: {
445
439
  lastActiveTool: import("../types").ActiveTool | null;
446
440
  locked: boolean;
@@ -466,7 +460,7 @@ export declare const actionShortcuts: {
466
460
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
467
461
  currentHoveredFontFamily: number | null;
468
462
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
469
- currentItemArrowType: "round" | "sharp" | "elbow";
463
+ currentItemArrowType: "sharp" | "round" | "elbow";
470
464
  viewBackgroundColor: string;
471
465
  scrollX: number;
472
466
  scrollY: number;
@@ -478,7 +472,7 @@ export declare const actionShortcuts: {
478
472
  zoom: Readonly<{
479
473
  value: import("../types").NormalizedZoomValue;
480
474
  }>;
481
- openMenu: "shape" | "canvas" | null;
475
+ openMenu: "canvas" | "shape" | null;
482
476
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
483
477
  openSidebar: {
484
478
  name: string;
@@ -549,9 +543,8 @@ export declare const actionShortcuts: {
549
543
  shown: true;
550
544
  data: import("../charts").Spreadsheet;
551
545
  };
552
- pendingImageElementId: string | null;
553
- showHyperlinkPopup: false | "editor" | "info";
554
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
546
+ showHyperlinkPopup: false | "info" | "editor";
547
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
555
548
  snapLines: readonly import("../snapping").SnapLine[];
556
549
  originSnapOffset: {
557
550
  x: number;
@@ -562,20 +555,18 @@ export declare const actionShortcuts: {
562
555
  followedBy: Set<import("../types").SocketId>;
563
556
  isCropping: boolean;
564
557
  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
- }[];
558
+ searchMatches: Readonly<{
559
+ focusedId: string | null;
560
+ matches: readonly import("../types").SearchMatch[];
561
+ }> | null;
562
+ activeLockedId: string | null;
563
+ lockedMultiSelections: {
564
+ [groupId: string]: true;
565
+ };
575
566
  };
576
567
  captureUpdate: "EVENTUALLY";
577
568
  };
578
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
569
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
579
570
  } & {
580
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
571
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
581
572
  };
@@ -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;
@@ -73,7 +73,7 @@ export declare const actionGoToCollaborator: {
73
73
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
74
74
  currentHoveredFontFamily: number | null;
75
75
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
76
- currentItemArrowType: "round" | "sharp" | "elbow";
76
+ currentItemArrowType: "sharp" | "round" | "elbow";
77
77
  viewBackgroundColor: string;
78
78
  scrollX: number;
79
79
  scrollY: number;
@@ -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;
@@ -167,9 +167,8 @@ export declare const actionGoToCollaborator: {
167
167
  shown: true;
168
168
  data: import("../charts").Spreadsheet;
169
169
  };
170
- pendingImageElementId: string | null;
171
- showHyperlinkPopup: false | "editor" | "info";
172
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
170
+ showHyperlinkPopup: false | "info" | "editor";
171
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
173
172
  snapLines: readonly import("../snapping").SnapLine[];
174
173
  originSnapOffset: {
175
174
  x: number;
@@ -179,16 +178,14 @@ export declare const actionGoToCollaborator: {
179
178
  followedBy: Set<import("../types").SocketId>;
180
179
  isCropping: boolean;
181
180
  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
- }[];
181
+ searchMatches: Readonly<{
182
+ focusedId: string | null;
183
+ matches: readonly import("../types").SearchMatch[];
184
+ }> | null;
185
+ activeLockedId: string | null;
186
+ lockedMultiSelections: {
187
+ [groupId: string]: true;
188
+ };
192
189
  };
193
190
  captureUpdate: "EVENTUALLY";
194
191
  } | {
@@ -224,7 +221,7 @@ export declare const actionGoToCollaborator: {
224
221
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
225
222
  isBindingEnabled: boolean;
226
223
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
227
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
224
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
228
225
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
229
226
  frameRendering: {
230
227
  enabled: boolean;
@@ -235,7 +232,7 @@ export declare const actionGoToCollaborator: {
235
232
  editingFrame: string | null;
236
233
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
237
234
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
238
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
235
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
239
236
  activeTool: {
240
237
  lastActiveTool: import("../types").ActiveTool | null;
241
238
  locked: boolean;
@@ -261,7 +258,7 @@ export declare const actionGoToCollaborator: {
261
258
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
262
259
  currentHoveredFontFamily: number | null;
263
260
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
264
- currentItemArrowType: "round" | "sharp" | "elbow";
261
+ currentItemArrowType: "sharp" | "round" | "elbow";
265
262
  viewBackgroundColor: string;
266
263
  scrollX: number;
267
264
  scrollY: number;
@@ -354,9 +351,8 @@ export declare const actionGoToCollaborator: {
354
351
  shown: true;
355
352
  data: import("../charts").Spreadsheet;
356
353
  };
357
- pendingImageElementId: string | null;
358
- showHyperlinkPopup: false | "editor" | "info";
359
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
354
+ showHyperlinkPopup: false | "info" | "editor";
355
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
360
356
  snapLines: readonly import("../snapping").SnapLine[];
361
357
  originSnapOffset: {
362
358
  x: number;
@@ -366,16 +362,14 @@ export declare const actionGoToCollaborator: {
366
362
  followedBy: Set<import("../types").SocketId>;
367
363
  isCropping: boolean;
368
364
  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
- }[];
365
+ searchMatches: Readonly<{
366
+ focusedId: string | null;
367
+ matches: readonly import("../types").SearchMatch[];
368
+ }> | null;
369
+ activeLockedId: string | null;
370
+ lockedMultiSelections: {
371
+ [groupId: string]: true;
372
+ };
379
373
  };
380
374
  captureUpdate: "EVENTUALLY";
381
375
  };