@dwelle/excalidraw 0.5.0-ff7b5f2db → 0.5.0-ffade30

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 (171) hide show
  1. package/CHANGELOG.md +2385 -0
  2. package/dist/dev/{chunk-56C7N44U.js → chunk-CB6O5JO7.js} +16177 -10984
  3. package/dist/dev/chunk-CB6O5JO7.js.map +7 -0
  4. package/dist/dev/{chunk-DGCWVQGA.js → chunk-JB4JDZ66.js} +15 -4
  5. package/dist/dev/chunk-JB4JDZ66.js.map +7 -0
  6. package/dist/dev/chunk-QXVP5PAI.js +7 -0
  7. package/dist/dev/chunk-QXVP5PAI.js.map +7 -0
  8. package/dist/dev/data/{image-BLSI3C2P.js → image-JTJWA4BG.js} +3 -3
  9. package/dist/dev/index.css +143 -68
  10. package/dist/dev/index.css.map +3 -3
  11. package/dist/dev/index.js +3978 -6519
  12. package/dist/dev/index.js.map +4 -4
  13. package/dist/dev/locales/{en-AAITTNRF.js → en-PIB5PD3P.js} +2 -2
  14. package/dist/dev/subset-shared.chunk.js +1 -1
  15. package/dist/dev/subset-worker.chunk.js +1 -1
  16. package/dist/prod/chunk-JEM5OQGK.js +33 -0
  17. package/dist/prod/chunk-JH36RZFS.js +7 -0
  18. package/dist/prod/{chunk-OV23WS6X.js → chunk-KC3NX2DX.js} +4 -4
  19. package/dist/prod/data/image-UJJWHTZ6.js +1 -0
  20. package/dist/prod/index.css +1 -1
  21. package/dist/prod/index.js +22 -21
  22. package/dist/prod/locales/{en-YOZMX4VX.js → en-RKTHI3YA.js} +1 -1
  23. package/dist/prod/subset-shared.chunk.js +1 -1
  24. package/dist/prod/subset-worker.chunk.js +1 -1
  25. package/dist/types/common/src/colors.d.ts +1 -0
  26. package/dist/types/common/src/constants.d.ts +11 -1
  27. package/dist/types/{excalidraw → common/src}/emitter.d.ts +1 -1
  28. package/dist/types/common/src/font-metadata.d.ts +4 -2
  29. package/dist/types/common/src/index.d.ts +1 -0
  30. package/dist/types/common/src/utility-types.d.ts +5 -0
  31. package/dist/types/common/src/utils.d.ts +22 -5
  32. package/dist/types/{excalidraw/scene → element/src}/Scene.d.ts +11 -14
  33. package/dist/types/element/src/ShapeCache.d.ts +1 -1
  34. package/dist/types/element/src/align.d.ts +3 -3
  35. package/dist/types/element/src/binding.d.ts +19 -11
  36. package/dist/types/element/src/bounds.d.ts +7 -2
  37. package/dist/types/element/src/collision.d.ts +1 -1
  38. package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +40 -35
  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 +2 -2
  44. package/dist/types/element/src/frame.d.ts +5 -4
  45. package/dist/types/element/src/heading.d.ts +0 -1
  46. package/dist/types/element/src/index.d.ts +45 -2
  47. package/dist/types/element/src/linearElementEditor.d.ts +19 -31
  48. package/dist/types/element/src/mutateElement.d.ts +10 -2
  49. package/dist/types/element/src/newElement.d.ts +4 -3
  50. package/dist/types/element/src/resizeElements.d.ts +4 -4
  51. package/dist/types/element/src/selection.d.ts +11 -5
  52. package/dist/types/element/src/shapes.d.ts +5 -1
  53. package/dist/types/element/src/sizeHelpers.d.ts +1 -1
  54. package/dist/types/element/src/store.d.ts +227 -0
  55. package/dist/types/element/src/textElement.d.ts +5 -3
  56. package/dist/types/element/src/transformHandles.d.ts +4 -4
  57. package/dist/types/element/src/typeChecks.d.ts +15 -1
  58. package/dist/types/element/src/types.d.ts +14 -1
  59. package/dist/types/element/src/zindex.d.ts +1 -1
  60. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +42 -45
  61. package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
  62. package/dist/types/excalidraw/actions/actionBoundText.d.ts +28 -30
  63. package/dist/types/excalidraw/actions/actionCanvas.d.ts +438 -275
  64. package/dist/types/excalidraw/actions/actionClipboard.d.ts +86 -92
  65. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +14 -15
  66. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +40 -43
  67. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
  68. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  69. package/dist/types/excalidraw/actions/actionElementLink.d.ts +14 -15
  70. package/dist/types/excalidraw/actions/actionElementLock.d.ts +43 -47
  71. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +14 -15
  72. package/dist/types/excalidraw/actions/actionExport.d.ts +219 -228
  73. package/dist/types/excalidraw/actions/actionFinalize.d.ts +73 -36
  74. package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
  75. package/dist/types/excalidraw/actions/actionFrame.d.ts +100 -104
  76. package/dist/types/excalidraw/actions/actionGroup.d.ts +34 -36
  77. package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -2
  78. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +506 -14
  79. package/dist/types/excalidraw/actions/actionLink.d.ts +14 -15
  80. package/dist/types/excalidraw/actions/actionMenu.d.ts +42 -45
  81. package/dist/types/excalidraw/actions/actionNavigate.d.ts +27 -29
  82. package/dist/types/excalidraw/actions/actionProperties.d.ts +207 -214
  83. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +16 -17
  84. package/dist/types/excalidraw/actions/actionStyles.d.ts +18 -19
  85. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +16 -17
  86. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +16 -17
  87. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +16 -189
  88. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  89. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +16 -18
  90. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +16 -18
  91. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +16 -18
  92. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  93. package/dist/types/excalidraw/actions/types.d.ts +4 -3
  94. package/dist/types/excalidraw/animated-trail.d.ts +7 -1
  95. package/dist/types/excalidraw/appState.d.ts +40 -30
  96. package/dist/types/excalidraw/components/App.d.ts +30 -12
  97. package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -0
  98. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  99. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
  100. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  101. package/dist/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +1 -2
  102. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -3
  103. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -3
  104. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -2
  105. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  106. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +2 -2
  107. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  108. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  109. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +4 -3
  110. package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  111. package/dist/types/excalidraw/components/Range.d.ts +3 -3
  112. package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  113. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  114. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  115. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  116. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +1 -1
  117. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  118. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  119. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
  120. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  121. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
  122. package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -1
  123. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -11
  124. package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
  125. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +1 -0
  126. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  127. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
  128. package/dist/types/excalidraw/components/icons.d.ts +4 -0
  129. package/dist/types/excalidraw/components/shapes.d.ts +1 -1
  130. package/dist/types/excalidraw/data/blob.d.ts +1 -1
  131. package/dist/types/excalidraw/data/transform.d.ts +1 -1
  132. package/dist/types/excalidraw/editor-jotai.d.ts +6 -6
  133. package/dist/types/excalidraw/eraser/index.d.ts +14 -0
  134. package/dist/types/excalidraw/fonts/Fonts.d.ts +1 -1
  135. package/dist/types/excalidraw/history.d.ts +14 -22
  136. package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  137. package/dist/types/excalidraw/index.d.ts +9 -9
  138. package/dist/types/excalidraw/lasso/index.d.ts +16 -0
  139. package/dist/types/excalidraw/lasso/utils.d.ts +12 -0
  140. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -1
  141. package/dist/types/excalidraw/scene/Renderer.d.ts +1 -1
  142. package/dist/types/excalidraw/scene/export.d.ts +1 -1
  143. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  144. package/dist/types/excalidraw/scene/scrollbars.d.ts +2 -3
  145. package/dist/types/excalidraw/scene/types.d.ts +2 -0
  146. package/dist/types/excalidraw/snapping.d.ts +2 -2
  147. package/dist/types/excalidraw/types.d.ts +30 -7
  148. package/dist/types/excalidraw/visualdebug.d.ts +1 -1
  149. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
  150. package/dist/types/math/src/curve.d.ts +2 -0
  151. package/dist/types/math/src/point.d.ts +1 -1
  152. package/dist/types/math/src/polygon.d.ts +1 -0
  153. package/dist/types/math/src/segment.d.ts +1 -1
  154. package/dist/types/math/src/types.d.ts +1 -0
  155. package/dist/types/math/src/vector.d.ts +4 -0
  156. package/dist/types/utils/src/bbox.d.ts +1 -1
  157. package/dist/types/utils/src/index.d.ts +1 -1
  158. package/dist/types/utils/src/withinBounds.d.ts +1 -1
  159. package/history.ts +186 -0
  160. package/package.json +9 -4
  161. package/dist/dev/chunk-56C7N44U.js.map +0 -7
  162. package/dist/dev/chunk-DGCWVQGA.js.map +0 -7
  163. package/dist/dev/chunk-HQHB2BE4.js +0 -7
  164. package/dist/dev/chunk-HQHB2BE4.js.map +0 -7
  165. package/dist/prod/chunk-BUJ2ENHZ.js +0 -31
  166. package/dist/prod/chunk-C3FOHAIA.js +0 -7
  167. package/dist/prod/data/image-MI7OQWUS.js +0 -1
  168. package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  169. package/dist/types/excalidraw/store.d.ts +0 -129
  170. /package/dist/dev/data/{image-BLSI3C2P.js.map → image-JTJWA4BG.js.map} +0 -0
  171. /package/dist/dev/locales/{en-AAITTNRF.js.map → en-PIB5PD3P.js.map} +0 -0
@@ -29,7 +29,7 @@ export declare const actionSelectAllElementsInFrame: {
29
29
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
30
30
  isBindingEnabled: boolean;
31
31
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
32
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
32
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
33
33
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
34
34
  frameRendering: {
35
35
  enabled: boolean;
@@ -40,10 +40,11 @@ export declare const actionSelectAllElementsInFrame: {
40
40
  editingFrame: string | null;
41
41
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
42
42
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
43
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
43
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
44
44
  activeTool: {
45
45
  lastActiveTool: import("../types").ActiveTool | null;
46
46
  locked: boolean;
47
+ fromSelection: boolean;
47
48
  } & import("../types").ActiveTool;
48
49
  penMode: boolean;
49
50
  penDetected: boolean;
@@ -77,7 +78,7 @@ export declare const actionSelectAllElementsInFrame: {
77
78
  zoom: Readonly<{
78
79
  value: import("../types").NormalizedZoomValue;
79
80
  }>;
80
- openMenu: "shape" | "canvas" | null;
81
+ openMenu: "canvas" | "shape" | null;
81
82
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
82
83
  openSidebar: {
83
84
  name: string;
@@ -157,8 +158,8 @@ export declare const actionSelectAllElementsInFrame: {
157
158
  data: import("../charts").Spreadsheet;
158
159
  };
159
160
  pendingImageElementId: string | null;
160
- showHyperlinkPopup: false | "editor" | "info";
161
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
161
+ showHyperlinkPopup: false | "info" | "editor";
162
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
162
163
  snapLines: readonly import("../snapping").SnapLine[];
163
164
  originSnapOffset: {
164
165
  x: number;
@@ -169,16 +170,14 @@ export declare const actionSelectAllElementsInFrame: {
169
170
  followedBy: Set<import("../types").SocketId>;
170
171
  isCropping: boolean;
171
172
  croppingElementId: string | null;
172
- searchMatches: readonly {
173
- id: string;
174
- focus: boolean;
175
- matchedLines: {
176
- offsetX: number;
177
- offsetY: number;
178
- width: number;
179
- height: number;
180
- }[];
181
- }[];
173
+ searchMatches: Readonly<{
174
+ focusedId: string | null;
175
+ matches: readonly import("../types").SearchMatch[];
176
+ }> | null;
177
+ activeLockedId: string | null;
178
+ lockedMultiSelections: {
179
+ [groupId: string]: true;
180
+ };
182
181
  };
183
182
  captureUpdate: "IMMEDIATELY";
184
183
  } | {
@@ -220,7 +219,7 @@ export declare const actionRemoveAllElementsFromFrame: {
220
219
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
221
220
  isBindingEnabled: boolean;
222
221
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
223
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
222
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
224
223
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
225
224
  frameRendering: {
226
225
  enabled: boolean;
@@ -231,10 +230,11 @@ export declare const actionRemoveAllElementsFromFrame: {
231
230
  editingFrame: string | null;
232
231
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
233
232
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
234
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
233
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
235
234
  activeTool: {
236
235
  lastActiveTool: import("../types").ActiveTool | null;
237
236
  locked: boolean;
237
+ fromSelection: boolean;
238
238
  } & import("../types").ActiveTool;
239
239
  penMode: boolean;
240
240
  penDetected: boolean;
@@ -268,7 +268,7 @@ export declare const actionRemoveAllElementsFromFrame: {
268
268
  zoom: Readonly<{
269
269
  value: import("../types").NormalizedZoomValue;
270
270
  }>;
271
- openMenu: "shape" | "canvas" | null;
271
+ openMenu: "canvas" | "shape" | null;
272
272
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
273
273
  openSidebar: {
274
274
  name: string;
@@ -348,8 +348,8 @@ export declare const actionRemoveAllElementsFromFrame: {
348
348
  data: import("../charts").Spreadsheet;
349
349
  };
350
350
  pendingImageElementId: string | null;
351
- showHyperlinkPopup: false | "editor" | "info";
352
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
351
+ showHyperlinkPopup: false | "info" | "editor";
352
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
353
353
  snapLines: readonly import("../snapping").SnapLine[];
354
354
  originSnapOffset: {
355
355
  x: number;
@@ -360,16 +360,14 @@ export declare const actionRemoveAllElementsFromFrame: {
360
360
  followedBy: Set<import("../types").SocketId>;
361
361
  isCropping: boolean;
362
362
  croppingElementId: string | null;
363
- searchMatches: readonly {
364
- id: string;
365
- focus: boolean;
366
- matchedLines: {
367
- offsetX: number;
368
- offsetY: number;
369
- width: number;
370
- height: number;
371
- }[];
372
- }[];
363
+ searchMatches: Readonly<{
364
+ focusedId: string | null;
365
+ matches: readonly import("../types").SearchMatch[];
366
+ }> | null;
367
+ activeLockedId: string | null;
368
+ lockedMultiSelections: {
369
+ [groupId: string]: true;
370
+ };
373
371
  };
374
372
  captureUpdate: "IMMEDIATELY";
375
373
  } | {
@@ -415,15 +413,16 @@ export declare const actionupdateFrameRendering: {
415
413
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
416
414
  isBindingEnabled: boolean;
417
415
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
418
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
416
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
419
417
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
420
418
  editingFrame: string | null;
421
419
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
422
420
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
423
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
421
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
424
422
  activeTool: {
425
423
  lastActiveTool: import("../types").ActiveTool | null;
426
424
  locked: boolean;
425
+ fromSelection: boolean;
427
426
  } & import("../types").ActiveTool;
428
427
  penMode: boolean;
429
428
  penDetected: boolean;
@@ -457,7 +456,7 @@ export declare const actionupdateFrameRendering: {
457
456
  zoom: Readonly<{
458
457
  value: import("../types").NormalizedZoomValue;
459
458
  }>;
460
- openMenu: "shape" | "canvas" | null;
459
+ openMenu: "canvas" | "shape" | null;
461
460
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
462
461
  openSidebar: {
463
462
  name: string;
@@ -540,8 +539,8 @@ export declare const actionupdateFrameRendering: {
540
539
  data: import("../charts").Spreadsheet;
541
540
  };
542
541
  pendingImageElementId: string | null;
543
- showHyperlinkPopup: false | "editor" | "info";
544
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
542
+ showHyperlinkPopup: false | "info" | "editor";
543
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
545
544
  snapLines: readonly import("../snapping").SnapLine[];
546
545
  originSnapOffset: {
547
546
  x: number;
@@ -552,16 +551,14 @@ export declare const actionupdateFrameRendering: {
552
551
  followedBy: Set<import("../types").SocketId>;
553
552
  isCropping: boolean;
554
553
  croppingElementId: string | null;
555
- searchMatches: readonly {
556
- id: string;
557
- focus: boolean;
558
- matchedLines: {
559
- offsetX: number;
560
- offsetY: number;
561
- width: number;
562
- height: number;
563
- }[];
564
- }[];
554
+ searchMatches: Readonly<{
555
+ focusedId: string | null;
556
+ matches: readonly import("../types").SearchMatch[];
557
+ }> | null;
558
+ activeLockedId: string | null;
559
+ lockedMultiSelections: {
560
+ [groupId: string]: true;
561
+ };
565
562
  };
566
563
  captureUpdate: "EVENTUALLY";
567
564
  };
@@ -583,6 +580,7 @@ export declare const actionSetFrameAsActiveTool: {
583
580
  activeTool: {
584
581
  lastActiveTool: import("../types").ActiveTool | null;
585
582
  locked: boolean;
583
+ fromSelection: boolean;
586
584
  } & import("../types").ActiveTool;
587
585
  contextMenu: {
588
586
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -602,7 +600,7 @@ export declare const actionSetFrameAsActiveTool: {
602
600
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
603
601
  isBindingEnabled: boolean;
604
602
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
605
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
603
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
606
604
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
607
605
  frameRendering: {
608
606
  enabled: boolean;
@@ -613,7 +611,7 @@ export declare const actionSetFrameAsActiveTool: {
613
611
  editingFrame: string | null;
614
612
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
615
613
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
616
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
614
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
617
615
  penMode: boolean;
618
616
  penDetected: boolean;
619
617
  exportBackground: boolean;
@@ -646,7 +644,7 @@ export declare const actionSetFrameAsActiveTool: {
646
644
  zoom: Readonly<{
647
645
  value: import("../types").NormalizedZoomValue;
648
646
  }>;
649
- openMenu: "shape" | "canvas" | null;
647
+ openMenu: "canvas" | "shape" | null;
650
648
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
651
649
  openSidebar: {
652
650
  name: string;
@@ -729,8 +727,8 @@ export declare const actionSetFrameAsActiveTool: {
729
727
  data: import("../charts").Spreadsheet;
730
728
  };
731
729
  pendingImageElementId: string | null;
732
- showHyperlinkPopup: false | "editor" | "info";
733
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
730
+ showHyperlinkPopup: false | "info" | "editor";
731
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
734
732
  snapLines: readonly import("../snapping").SnapLine[];
735
733
  originSnapOffset: {
736
734
  x: number;
@@ -741,22 +739,20 @@ export declare const actionSetFrameAsActiveTool: {
741
739
  followedBy: Set<import("../types").SocketId>;
742
740
  isCropping: boolean;
743
741
  croppingElementId: string | null;
744
- searchMatches: readonly {
745
- id: string;
746
- focus: boolean;
747
- matchedLines: {
748
- offsetX: number;
749
- offsetY: number;
750
- width: number;
751
- height: number;
752
- }[];
753
- }[];
742
+ searchMatches: Readonly<{
743
+ focusedId: string | null;
744
+ matches: readonly import("../types").SearchMatch[];
745
+ }> | null;
746
+ activeLockedId: string | null;
747
+ lockedMultiSelections: {
748
+ [groupId: string]: true;
749
+ };
754
750
  };
755
751
  captureUpdate: "EVENTUALLY";
756
752
  };
757
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
753
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
758
754
  } & {
759
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
755
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
760
756
  };
761
757
  export declare const actionWrapSelectionInFrame: {
762
758
  name: "wrapSelectionInFrame";
@@ -800,7 +796,7 @@ export declare const actionWrapSelectionInFrame: {
800
796
  locked: boolean;
801
797
  customData?: Record<string, any> | undefined;
802
798
  }> & {
803
- type: "rectangle";
799
+ type: "selection";
804
800
  } & {
805
801
  index: import("@excalidraw/element/types").FractionalIndex;
806
802
  }) | (Readonly<{
@@ -837,7 +833,7 @@ export declare const actionWrapSelectionInFrame: {
837
833
  locked: boolean;
838
834
  customData?: Record<string, any> | undefined;
839
835
  }> & {
840
- type: "diamond";
836
+ type: "rectangle";
841
837
  } & {
842
838
  index: import("@excalidraw/element/types").FractionalIndex;
843
839
  }) | (Readonly<{
@@ -874,8 +870,7 @@ export declare const actionWrapSelectionInFrame: {
874
870
  locked: boolean;
875
871
  customData?: Record<string, any> | undefined;
876
872
  }> & {
877
- type: "frame";
878
- name: string | null;
873
+ type: "diamond";
879
874
  } & {
880
875
  index: import("@excalidraw/element/types").FractionalIndex;
881
876
  }) | (Readonly<{
@@ -912,8 +907,7 @@ export declare const actionWrapSelectionInFrame: {
912
907
  locked: boolean;
913
908
  customData?: Record<string, any> | undefined;
914
909
  }> & {
915
- type: "magicframe";
916
- name: string | null;
910
+ type: "ellipse";
917
911
  } & {
918
912
  index: import("@excalidraw/element/types").FractionalIndex;
919
913
  }) | (Readonly<{
@@ -950,7 +944,18 @@ export declare const actionWrapSelectionInFrame: {
950
944
  locked: boolean;
951
945
  customData?: Record<string, any> | undefined;
952
946
  }> & Readonly<{
953
- type: "embeddable";
947
+ type: "text";
948
+ fontSize: number;
949
+ fontFamily: number;
950
+ text: string;
951
+ textAlign: string;
952
+ verticalAlign: string;
953
+ containerId: string | null;
954
+ originalText: string;
955
+ autoResize: boolean;
956
+ lineHeight: number & {
957
+ _brand: "unitlessLineHeight";
958
+ };
954
959
  }> & {
955
960
  index: import("@excalidraw/element/types").FractionalIndex;
956
961
  }) | (Readonly<{
@@ -987,11 +992,13 @@ export declare const actionWrapSelectionInFrame: {
987
992
  locked: boolean;
988
993
  customData?: Record<string, any> | undefined;
989
994
  }> & Readonly<{
990
- type: "image";
991
- fileId: import("@excalidraw/element/types").FileId | null;
992
- status: "pending" | "saved" | "error";
993
- scale: [number, number];
994
- crop: import("@excalidraw/element/types").ImageCrop | null;
995
+ type: "line" | "arrow";
996
+ points: readonly import("@excalidraw/math").LocalPoint[];
997
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
998
+ startBinding: import("@excalidraw/element/types").PointBinding | null;
999
+ endBinding: import("@excalidraw/element/types").PointBinding | null;
1000
+ startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1001
+ endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
995
1002
  }> & {
996
1003
  index: import("@excalidraw/element/types").FractionalIndex;
997
1004
  }) | (Readonly<{
@@ -1028,10 +1035,11 @@ export declare const actionWrapSelectionInFrame: {
1028
1035
  locked: boolean;
1029
1036
  customData?: Record<string, any> | undefined;
1030
1037
  }> & Readonly<{
1031
- type: "iframe";
1032
- customData?: {
1033
- generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
1034
- } | undefined;
1038
+ type: "freedraw";
1039
+ points: readonly import("@excalidraw/math").LocalPoint[];
1040
+ pressures: readonly number[];
1041
+ simulatePressure: boolean;
1042
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1035
1043
  }> & {
1036
1044
  index: import("@excalidraw/element/types").FractionalIndex;
1037
1045
  }) | (Readonly<{
@@ -1068,18 +1076,11 @@ export declare const actionWrapSelectionInFrame: {
1068
1076
  locked: boolean;
1069
1077
  customData?: Record<string, any> | undefined;
1070
1078
  }> & Readonly<{
1071
- type: "text";
1072
- fontSize: number;
1073
- fontFamily: number;
1074
- text: string;
1075
- textAlign: string;
1076
- verticalAlign: string;
1077
- containerId: string | null;
1078
- originalText: string;
1079
- autoResize: boolean;
1080
- lineHeight: number & {
1081
- _brand: "unitlessLineHeight";
1082
- };
1079
+ type: "image";
1080
+ fileId: import("@excalidraw/element/types").FileId | null;
1081
+ status: "error" | "pending" | "saved";
1082
+ scale: [number, number];
1083
+ crop: import("@excalidraw/element/types").ImageCrop | null;
1083
1084
  }> & {
1084
1085
  index: import("@excalidraw/element/types").FractionalIndex;
1085
1086
  }) | (Readonly<{
@@ -1116,7 +1117,8 @@ export declare const actionWrapSelectionInFrame: {
1116
1117
  locked: boolean;
1117
1118
  customData?: Record<string, any> | undefined;
1118
1119
  }> & {
1119
- type: "selection";
1120
+ type: "frame";
1121
+ name: string | null;
1120
1122
  } & {
1121
1123
  index: import("@excalidraw/element/types").FractionalIndex;
1122
1124
  }) | (Readonly<{
@@ -1153,7 +1155,8 @@ export declare const actionWrapSelectionInFrame: {
1153
1155
  locked: boolean;
1154
1156
  customData?: Record<string, any> | undefined;
1155
1157
  }> & {
1156
- type: "ellipse";
1158
+ type: "magicframe";
1159
+ name: string | null;
1157
1160
  } & {
1158
1161
  index: import("@excalidraw/element/types").FractionalIndex;
1159
1162
  }) | (Readonly<{
@@ -1190,13 +1193,10 @@ export declare const actionWrapSelectionInFrame: {
1190
1193
  locked: boolean;
1191
1194
  customData?: Record<string, any> | undefined;
1192
1195
  }> & Readonly<{
1193
- type: "line" | "arrow";
1194
- points: readonly import("@excalidraw/math").LocalPoint[];
1195
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1196
- startBinding: import("@excalidraw/element/types").PointBinding | null;
1197
- endBinding: import("@excalidraw/element/types").PointBinding | null;
1198
- startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1199
- endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1196
+ type: "iframe";
1197
+ customData?: {
1198
+ generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
1199
+ } | undefined;
1200
1200
  }> & {
1201
1201
  index: import("@excalidraw/element/types").FractionalIndex;
1202
1202
  }) | (Readonly<{
@@ -1233,11 +1233,7 @@ export declare const actionWrapSelectionInFrame: {
1233
1233
  locked: boolean;
1234
1234
  customData?: Record<string, any> | undefined;
1235
1235
  }> & Readonly<{
1236
- type: "freedraw";
1237
- points: readonly import("@excalidraw/math").LocalPoint[];
1238
- pressures: readonly number[];
1239
- simulatePressure: boolean;
1240
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1236
+ type: "embeddable";
1241
1237
  }> & {
1242
1238
  index: import("@excalidraw/element/types").FractionalIndex;
1243
1239
  }) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];
@@ -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;
@@ -39,7 +39,7 @@ export declare const actionGroup: {
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;
@@ -50,10 +50,11 @@ export declare const actionGroup: {
50
50
  editingFrame: string | null;
51
51
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
52
52
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
53
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
53
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
54
54
  activeTool: {
55
55
  lastActiveTool: import("../types").ActiveTool | null;
56
56
  locked: boolean;
57
+ fromSelection: boolean;
57
58
  } & import("../types").ActiveTool;
58
59
  penMode: boolean;
59
60
  penDetected: boolean;
@@ -87,7 +88,7 @@ export declare const actionGroup: {
87
88
  zoom: Readonly<{
88
89
  value: import("../types").NormalizedZoomValue;
89
90
  }>;
90
- openMenu: "shape" | "canvas" | null;
91
+ openMenu: "canvas" | "shape" | null;
91
92
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
92
93
  openSidebar: {
93
94
  name: string;
@@ -163,8 +164,8 @@ export declare const actionGroup: {
163
164
  data: import("../charts").Spreadsheet;
164
165
  };
165
166
  pendingImageElementId: string | null;
166
- showHyperlinkPopup: false | "editor" | "info";
167
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
167
+ showHyperlinkPopup: false | "info" | "editor";
168
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
168
169
  snapLines: readonly import("../snapping").SnapLine[];
169
170
  originSnapOffset: {
170
171
  x: number;
@@ -175,25 +176,23 @@ export declare const actionGroup: {
175
176
  followedBy: Set<import("../types").SocketId>;
176
177
  isCropping: boolean;
177
178
  croppingElementId: string | null;
178
- searchMatches: readonly {
179
- id: string;
180
- focus: boolean;
181
- matchedLines: {
182
- offsetX: number;
183
- offsetY: number;
184
- width: number;
185
- height: number;
186
- }[];
187
- }[];
179
+ searchMatches: Readonly<{
180
+ focusedId: string | null;
181
+ matches: readonly import("../types").SearchMatch[];
182
+ }> | null;
183
+ activeLockedId: string | null;
184
+ lockedMultiSelections: {
185
+ [groupId: string]: true;
186
+ };
188
187
  };
189
188
  elements: OrderedExcalidrawElement[];
190
189
  captureUpdate: "IMMEDIATELY";
191
190
  };
192
191
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
193
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
192
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
194
193
  PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
195
194
  } & {
196
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
195
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
197
196
  };
198
197
  export declare const actionUngroup: {
199
198
  name: "ungroup";
@@ -208,13 +207,13 @@ export declare const actionUngroup: {
208
207
  captureUpdate: "EVENTUALLY";
209
208
  } | {
210
209
  appState: {
211
- editingGroupId: string | null;
212
210
  selectedElementIds: Readonly<{
213
211
  [id: string]: true;
214
212
  }>;
215
213
  selectedGroupIds: {
216
214
  [groupId: string]: boolean;
217
215
  };
216
+ editingGroupId: string | null;
218
217
  contextMenu: {
219
218
  items: import("../components/ContextMenu").ContextMenuItems;
220
219
  top: number;
@@ -233,7 +232,7 @@ export declare const actionUngroup: {
233
232
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
234
233
  isBindingEnabled: boolean;
235
234
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
236
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
235
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
237
236
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
238
237
  frameRendering: {
239
238
  enabled: boolean;
@@ -244,10 +243,11 @@ export declare const actionUngroup: {
244
243
  editingFrame: string | null;
245
244
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
246
245
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
247
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
246
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
248
247
  activeTool: {
249
248
  lastActiveTool: import("../types").ActiveTool | null;
250
249
  locked: boolean;
250
+ fromSelection: boolean;
251
251
  } & import("../types").ActiveTool;
252
252
  penMode: boolean;
253
253
  penDetected: boolean;
@@ -281,7 +281,7 @@ export declare const actionUngroup: {
281
281
  zoom: Readonly<{
282
282
  value: import("../types").NormalizedZoomValue;
283
283
  }>;
284
- openMenu: "shape" | "canvas" | null;
284
+ openMenu: "canvas" | "shape" | null;
285
285
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
286
286
  openSidebar: {
287
287
  name: string;
@@ -357,8 +357,8 @@ export declare const actionUngroup: {
357
357
  data: import("../charts").Spreadsheet;
358
358
  };
359
359
  pendingImageElementId: string | null;
360
- showHyperlinkPopup: false | "editor" | "info";
361
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
360
+ showHyperlinkPopup: false | "info" | "editor";
361
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
362
362
  snapLines: readonly import("../snapping").SnapLine[];
363
363
  originSnapOffset: {
364
364
  x: number;
@@ -369,23 +369,21 @@ export declare const actionUngroup: {
369
369
  followedBy: Set<import("../types").SocketId>;
370
370
  isCropping: boolean;
371
371
  croppingElementId: string | null;
372
- searchMatches: readonly {
373
- id: string;
374
- focus: boolean;
375
- matchedLines: {
376
- offsetX: number;
377
- offsetY: number;
378
- width: number;
379
- height: number;
380
- }[];
381
- }[];
372
+ searchMatches: Readonly<{
373
+ focusedId: string | null;
374
+ matches: readonly import("../types").SearchMatch[];
375
+ }> | null;
376
+ activeLockedId: string | null;
377
+ lockedMultiSelections: {
378
+ [groupId: string]: true;
379
+ };
382
380
  };
383
381
  elements: OrderedExcalidrawElement[];
384
382
  captureUpdate: "IMMEDIATELY";
385
383
  };
386
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
384
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
387
385
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
388
386
  PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
389
387
  } & {
390
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
388
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
391
389
  };
@@ -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 {};