@excalidraw/excalidraw 0.18.0-195a743 → 0.18.0-298812e

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 (139) hide show
  1. package/dist/dev/{chunk-T3M44BFV.js → chunk-JCUIYZXF.js} +7 -3
  2. package/dist/dev/chunk-JCUIYZXF.js.map +7 -0
  3. package/dist/dev/{chunk-WMGEUIQQ.js → chunk-RQWTCZLD.js} +2 -2
  4. package/dist/dev/{chunk-H3EW23X2.js → chunk-ZPGIVNNG.js} +14840 -9652
  5. package/dist/dev/chunk-ZPGIVNNG.js.map +7 -0
  6. package/dist/dev/data/{image-TTQKTTOH.js → image-CB4ZYE3A.js} +3 -3
  7. package/dist/dev/index.css +38 -2
  8. package/dist/dev/index.css.map +2 -2
  9. package/dist/dev/index.js +857 -5250
  10. package/dist/dev/index.js.map +4 -4
  11. package/dist/dev/locales/{en-I23TB6DJ.js → en-ZDTPSZNL.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-GK4XUKZB.js → chunk-7TMLMBQX.js} +1 -1
  15. package/dist/prod/{chunk-2Z7RPVPO.js → chunk-GCFVWREF.js} +3 -3
  16. package/dist/prod/chunk-WFJFO6F4.js +33 -0
  17. package/dist/prod/data/image-XJI4SWH2.js +1 -0
  18. package/dist/prod/index.css +1 -1
  19. package/dist/prod/index.js +18 -18
  20. package/dist/prod/locales/{en-TC3OFDA6.js → en-MHZ26NAR.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 +1 -0
  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/element/src/Scene.d.ts +4 -4
  30. package/dist/types/element/src/ShapeCache.d.ts +1 -1
  31. package/dist/types/element/src/align.d.ts +1 -1
  32. package/dist/types/element/src/binding.d.ts +1 -1
  33. package/dist/types/element/src/bounds.d.ts +1 -1
  34. package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +40 -35
  35. package/dist/types/element/src/dragElements.d.ts +1 -1
  36. package/dist/types/element/src/flowchart.d.ts +1 -1
  37. package/dist/types/element/src/frame.d.ts +3 -2
  38. package/dist/types/element/src/index.d.ts +45 -2
  39. package/dist/types/element/src/linearElementEditor.d.ts +4 -8
  40. package/dist/types/element/src/newElement.d.ts +1 -1
  41. package/dist/types/element/src/resizeElements.d.ts +1 -1
  42. package/dist/types/element/src/selection.d.ts +1 -6
  43. package/dist/types/element/src/store.d.ts +227 -0
  44. package/dist/types/element/src/textElement.d.ts +1 -1
  45. package/dist/types/element/src/transformHandles.d.ts +4 -4
  46. package/dist/types/element/src/typeChecks.d.ts +2 -1
  47. package/dist/types/element/src/types.d.ts +6 -1
  48. package/dist/types/element/src/zindex.d.ts +3 -3
  49. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +24 -42
  50. package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
  51. package/dist/types/excalidraw/actions/actionBoundText.d.ts +16 -28
  52. package/dist/types/excalidraw/actions/actionCanvas.d.ts +194 -272
  53. package/dist/types/excalidraw/actions/actionClipboard.d.ts +50 -86
  54. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +8 -14
  55. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +22 -40
  56. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
  57. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  58. package/dist/types/excalidraw/actions/actionElementLink.d.ts +8 -14
  59. package/dist/types/excalidraw/actions/actionElementLock.d.ts +18 -30
  60. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +8 -14
  61. package/dist/types/excalidraw/actions/actionExport.d.ts +159 -213
  62. package/dist/types/excalidraw/actions/actionFinalize.d.ts +14 -26
  63. package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
  64. package/dist/types/excalidraw/actions/actionFrame.d.ts +76 -100
  65. package/dist/types/excalidraw/actions/actionGroup.d.ts +22 -34
  66. package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -2
  67. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +7 -13
  68. package/dist/types/excalidraw/actions/actionLink.d.ts +9 -15
  69. package/dist/types/excalidraw/actions/actionMenu.d.ts +26 -44
  70. package/dist/types/excalidraw/actions/actionNavigate.d.ts +16 -28
  71. package/dist/types/excalidraw/actions/actionProperties.d.ts +106 -196
  72. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +10 -16
  73. package/dist/types/excalidraw/actions/actionStyles.d.ts +12 -18
  74. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +10 -16
  75. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +10 -16
  76. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +10 -189
  77. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +10 -16
  78. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +10 -16
  79. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +10 -16
  80. package/dist/types/excalidraw/actions/actionZindex.d.ts +10 -10
  81. package/dist/types/excalidraw/actions/types.d.ts +1 -1
  82. package/dist/types/excalidraw/appState.d.ts +23 -23
  83. package/dist/types/excalidraw/components/App.d.ts +9 -9
  84. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  85. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
  86. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  87. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -3
  88. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -3
  89. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -2
  90. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  91. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  92. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  93. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -28
  94. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  95. package/dist/types/excalidraw/components/Range.d.ts +3 -3
  96. package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  97. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  98. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  99. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  100. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +1 -1
  101. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  102. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  103. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
  104. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  105. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
  106. package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -1
  107. package/dist/types/excalidraw/components/Stats/utils.d.ts +2 -1
  108. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +1 -1
  109. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
  110. package/dist/types/excalidraw/components/icons.d.ts +1 -0
  111. package/dist/types/excalidraw/components/shapes.d.ts +1 -1
  112. package/dist/types/excalidraw/data/blob.d.ts +1 -1
  113. package/dist/types/excalidraw/data/transform.d.ts +1 -1
  114. package/dist/types/excalidraw/fonts/Fonts.d.ts +1 -1
  115. package/dist/types/excalidraw/history.d.ts +14 -22
  116. package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  117. package/dist/types/excalidraw/index.d.ts +9 -9
  118. package/dist/types/excalidraw/lasso/index.d.ts +1 -0
  119. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -1
  120. package/dist/types/excalidraw/scene/Renderer.d.ts +1 -1
  121. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  122. package/dist/types/excalidraw/snapping.d.ts +2 -2
  123. package/dist/types/excalidraw/types.d.ts +13 -6
  124. package/dist/types/excalidraw/visualdebug.d.ts +1 -1
  125. package/dist/types/math/src/curve.d.ts +2 -0
  126. package/dist/types/math/src/vector.d.ts +4 -0
  127. package/dist/types/utils/src/bbox.d.ts +1 -1
  128. package/dist/types/utils/src/index.d.ts +1 -1
  129. package/dist/types/utils/src/withinBounds.d.ts +1 -1
  130. package/history.ts +68 -94
  131. package/package.json +3 -3
  132. package/dist/dev/chunk-H3EW23X2.js.map +0 -7
  133. package/dist/dev/chunk-T3M44BFV.js.map +0 -7
  134. package/dist/prod/chunk-7M43VNIB.js +0 -33
  135. package/dist/prod/data/image-7YYIWLVQ.js +0 -1
  136. package/dist/types/excalidraw/store.d.ts +0 -129
  137. /package/dist/dev/{chunk-WMGEUIQQ.js.map → chunk-RQWTCZLD.js.map} +0 -0
  138. /package/dist/dev/data/{image-TTQKTTOH.js.map → image-CB4ZYE3A.js.map} +0 -0
  139. /package/dist/dev/locales/{en-I23TB6DJ.js.map → en-ZDTPSZNL.js.map} +0 -0
@@ -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 { AppState } from "../types";
4
4
  export declare const actionFinalize: {
5
5
  name: "finalize";
@@ -28,7 +28,7 @@ export declare const actionFinalize: {
28
28
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
29
29
  isBindingEnabled: boolean;
30
30
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
31
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
31
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
32
32
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
33
33
  frameRendering: {
34
34
  enabled: boolean;
@@ -158,7 +158,7 @@ export declare const actionFinalize: {
158
158
  data: import("../charts").Spreadsheet;
159
159
  };
160
160
  pendingImageElementId: string | null;
161
- showHyperlinkPopup: false | "editor" | "info";
161
+ showHyperlinkPopup: false | "info" | "editor";
162
162
  selectedLinearElement: LinearElementEditor | null;
163
163
  snapLines: readonly import("../snapping").SnapLine[];
164
164
  originSnapOffset: {
@@ -170,16 +170,10 @@ export declare const actionFinalize: {
170
170
  followedBy: Set<import("../types").SocketId>;
171
171
  isCropping: boolean;
172
172
  croppingElementId: string | null;
173
- searchMatches: readonly {
174
- id: string;
175
- focus: boolean;
176
- matchedLines: {
177
- offsetX: number;
178
- offsetY: number;
179
- width: number;
180
- height: number;
181
- }[];
182
- }[];
173
+ searchMatches: Readonly<{
174
+ focusedId: string | null;
175
+ matches: readonly import("../types").SearchMatch[];
176
+ }> | null;
183
177
  };
184
178
  captureUpdate: "IMMEDIATELY";
185
179
  } | {
@@ -333,7 +327,7 @@ export declare const actionFinalize: {
333
327
  shown: true;
334
328
  data: import("../charts").Spreadsheet;
335
329
  };
336
- showHyperlinkPopup: false | "editor" | "info";
330
+ showHyperlinkPopup: false | "info" | "editor";
337
331
  snapLines: readonly import("../snapping").SnapLine[];
338
332
  originSnapOffset: {
339
333
  x: number;
@@ -344,21 +338,15 @@ export declare const actionFinalize: {
344
338
  followedBy: Set<import("../types").SocketId>;
345
339
  isCropping: boolean;
346
340
  croppingElementId: string | null;
347
- searchMatches: readonly {
348
- id: string;
349
- focus: boolean;
350
- matchedLines: {
351
- offsetX: number;
352
- offsetY: number;
353
- width: number;
354
- height: number;
355
- }[];
356
- }[];
341
+ searchMatches: Readonly<{
342
+ focusedId: string | null;
343
+ matches: readonly import("../types").SearchMatch[];
344
+ }> | null;
357
345
  };
358
346
  captureUpdate: "IMMEDIATELY";
359
347
  };
360
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean;
348
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState) => boolean;
361
349
  PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
362
350
  } & {
363
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean) | undefined;
351
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState) => boolean) | undefined;
364
352
  };
@@ -13,9 +13,9 @@ export declare const actionFlipHorizontal: {
13
13
  appState: Readonly<AppState>;
14
14
  captureUpdate: "IMMEDIATELY";
15
15
  };
16
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
16
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
17
17
  } & {
18
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
18
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
19
19
  };
20
20
  export declare const actionFlipVertical: {
21
21
  name: "flipVertical";
@@ -29,7 +29,7 @@ export declare const actionFlipVertical: {
29
29
  appState: Readonly<AppState>;
30
30
  captureUpdate: "IMMEDIATELY";
31
31
  };
32
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
32
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
33
33
  } & {
34
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
34
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
35
35
  };
@@ -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,7 +40,7 @@ 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;
@@ -158,8 +158,8 @@ export declare const actionSelectAllElementsInFrame: {
158
158
  data: import("../charts").Spreadsheet;
159
159
  };
160
160
  pendingImageElementId: string | null;
161
- showHyperlinkPopup: false | "editor" | "info";
162
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
161
+ showHyperlinkPopup: false | "info" | "editor";
162
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
163
163
  snapLines: readonly import("../snapping").SnapLine[];
164
164
  originSnapOffset: {
165
165
  x: number;
@@ -170,16 +170,10 @@ export declare const actionSelectAllElementsInFrame: {
170
170
  followedBy: Set<import("../types").SocketId>;
171
171
  isCropping: boolean;
172
172
  croppingElementId: string | null;
173
- searchMatches: readonly {
174
- id: string;
175
- focus: boolean;
176
- matchedLines: {
177
- offsetX: number;
178
- offsetY: number;
179
- width: number;
180
- height: number;
181
- }[];
182
- }[];
173
+ searchMatches: Readonly<{
174
+ focusedId: string | null;
175
+ matches: readonly import("../types").SearchMatch[];
176
+ }> | null;
183
177
  };
184
178
  captureUpdate: "IMMEDIATELY";
185
179
  } | {
@@ -221,7 +215,7 @@ export declare const actionRemoveAllElementsFromFrame: {
221
215
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
222
216
  isBindingEnabled: boolean;
223
217
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
224
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
218
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
225
219
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
226
220
  frameRendering: {
227
221
  enabled: boolean;
@@ -232,7 +226,7 @@ export declare const actionRemoveAllElementsFromFrame: {
232
226
  editingFrame: string | null;
233
227
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
234
228
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
235
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
229
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
236
230
  activeTool: {
237
231
  lastActiveTool: import("../types").ActiveTool | null;
238
232
  locked: boolean;
@@ -350,8 +344,8 @@ export declare const actionRemoveAllElementsFromFrame: {
350
344
  data: import("../charts").Spreadsheet;
351
345
  };
352
346
  pendingImageElementId: string | null;
353
- showHyperlinkPopup: false | "editor" | "info";
354
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
347
+ showHyperlinkPopup: false | "info" | "editor";
348
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
355
349
  snapLines: readonly import("../snapping").SnapLine[];
356
350
  originSnapOffset: {
357
351
  x: number;
@@ -362,16 +356,10 @@ export declare const actionRemoveAllElementsFromFrame: {
362
356
  followedBy: Set<import("../types").SocketId>;
363
357
  isCropping: boolean;
364
358
  croppingElementId: string | null;
365
- searchMatches: readonly {
366
- id: string;
367
- focus: boolean;
368
- matchedLines: {
369
- offsetX: number;
370
- offsetY: number;
371
- width: number;
372
- height: number;
373
- }[];
374
- }[];
359
+ searchMatches: Readonly<{
360
+ focusedId: string | null;
361
+ matches: readonly import("../types").SearchMatch[];
362
+ }> | null;
375
363
  };
376
364
  captureUpdate: "IMMEDIATELY";
377
365
  } | {
@@ -417,12 +405,12 @@ export declare const actionupdateFrameRendering: {
417
405
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
418
406
  isBindingEnabled: boolean;
419
407
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
420
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
408
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
421
409
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
422
410
  editingFrame: string | null;
423
411
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
424
412
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
425
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
413
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
426
414
  activeTool: {
427
415
  lastActiveTool: import("../types").ActiveTool | null;
428
416
  locked: boolean;
@@ -543,8 +531,8 @@ export declare const actionupdateFrameRendering: {
543
531
  data: import("../charts").Spreadsheet;
544
532
  };
545
533
  pendingImageElementId: string | null;
546
- showHyperlinkPopup: false | "editor" | "info";
547
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
534
+ showHyperlinkPopup: false | "info" | "editor";
535
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
548
536
  snapLines: readonly import("../snapping").SnapLine[];
549
537
  originSnapOffset: {
550
538
  x: number;
@@ -555,16 +543,10 @@ export declare const actionupdateFrameRendering: {
555
543
  followedBy: Set<import("../types").SocketId>;
556
544
  isCropping: boolean;
557
545
  croppingElementId: string | null;
558
- searchMatches: readonly {
559
- id: string;
560
- focus: boolean;
561
- matchedLines: {
562
- offsetX: number;
563
- offsetY: number;
564
- width: number;
565
- height: number;
566
- }[];
567
- }[];
546
+ searchMatches: Readonly<{
547
+ focusedId: string | null;
548
+ matches: readonly import("../types").SearchMatch[];
549
+ }> | null;
568
550
  };
569
551
  captureUpdate: "EVENTUALLY";
570
552
  };
@@ -606,7 +588,7 @@ export declare const actionSetFrameAsActiveTool: {
606
588
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
607
589
  isBindingEnabled: boolean;
608
590
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
609
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
591
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
610
592
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
611
593
  frameRendering: {
612
594
  enabled: boolean;
@@ -617,7 +599,7 @@ export declare const actionSetFrameAsActiveTool: {
617
599
  editingFrame: string | null;
618
600
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
619
601
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
620
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
602
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
621
603
  penMode: boolean;
622
604
  penDetected: boolean;
623
605
  exportBackground: boolean;
@@ -733,8 +715,8 @@ export declare const actionSetFrameAsActiveTool: {
733
715
  data: import("../charts").Spreadsheet;
734
716
  };
735
717
  pendingImageElementId: string | null;
736
- showHyperlinkPopup: false | "editor" | "info";
737
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
718
+ showHyperlinkPopup: false | "info" | "editor";
719
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
738
720
  snapLines: readonly import("../snapping").SnapLine[];
739
721
  originSnapOffset: {
740
722
  x: number;
@@ -745,22 +727,16 @@ export declare const actionSetFrameAsActiveTool: {
745
727
  followedBy: Set<import("../types").SocketId>;
746
728
  isCropping: boolean;
747
729
  croppingElementId: string | null;
748
- searchMatches: readonly {
749
- id: string;
750
- focus: boolean;
751
- matchedLines: {
752
- offsetX: number;
753
- offsetY: number;
754
- width: number;
755
- height: number;
756
- }[];
757
- }[];
730
+ searchMatches: Readonly<{
731
+ focusedId: string | null;
732
+ matches: readonly import("../types").SearchMatch[];
733
+ }> | null;
758
734
  };
759
735
  captureUpdate: "EVENTUALLY";
760
736
  };
761
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
737
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
762
738
  } & {
763
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
739
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
764
740
  };
765
741
  export declare const actionWrapSelectionInFrame: {
766
742
  name: "wrapSelectionInFrame";
@@ -804,7 +780,7 @@ export declare const actionWrapSelectionInFrame: {
804
780
  locked: boolean;
805
781
  customData?: Record<string, any> | undefined;
806
782
  }> & {
807
- type: "rectangle";
783
+ type: "selection";
808
784
  } & {
809
785
  index: import("@excalidraw/element/types").FractionalIndex;
810
786
  }) | (Readonly<{
@@ -841,7 +817,7 @@ export declare const actionWrapSelectionInFrame: {
841
817
  locked: boolean;
842
818
  customData?: Record<string, any> | undefined;
843
819
  }> & {
844
- type: "diamond";
820
+ type: "rectangle";
845
821
  } & {
846
822
  index: import("@excalidraw/element/types").FractionalIndex;
847
823
  }) | (Readonly<{
@@ -878,8 +854,7 @@ export declare const actionWrapSelectionInFrame: {
878
854
  locked: boolean;
879
855
  customData?: Record<string, any> | undefined;
880
856
  }> & {
881
- type: "frame";
882
- name: string | null;
857
+ type: "diamond";
883
858
  } & {
884
859
  index: import("@excalidraw/element/types").FractionalIndex;
885
860
  }) | (Readonly<{
@@ -916,8 +891,7 @@ export declare const actionWrapSelectionInFrame: {
916
891
  locked: boolean;
917
892
  customData?: Record<string, any> | undefined;
918
893
  }> & {
919
- type: "magicframe";
920
- name: string | null;
894
+ type: "ellipse";
921
895
  } & {
922
896
  index: import("@excalidraw/element/types").FractionalIndex;
923
897
  }) | (Readonly<{
@@ -954,7 +928,18 @@ export declare const actionWrapSelectionInFrame: {
954
928
  locked: boolean;
955
929
  customData?: Record<string, any> | undefined;
956
930
  }> & Readonly<{
957
- type: "embeddable";
931
+ type: "text";
932
+ fontSize: number;
933
+ fontFamily: number;
934
+ text: string;
935
+ textAlign: string;
936
+ verticalAlign: string;
937
+ containerId: string | null;
938
+ originalText: string;
939
+ autoResize: boolean;
940
+ lineHeight: number & {
941
+ _brand: "unitlessLineHeight";
942
+ };
958
943
  }> & {
959
944
  index: import("@excalidraw/element/types").FractionalIndex;
960
945
  }) | (Readonly<{
@@ -991,11 +976,13 @@ export declare const actionWrapSelectionInFrame: {
991
976
  locked: boolean;
992
977
  customData?: Record<string, any> | undefined;
993
978
  }> & Readonly<{
994
- type: "image";
995
- fileId: import("@excalidraw/element/types").FileId | null;
996
- status: "pending" | "saved" | "error";
997
- scale: [number, number];
998
- crop: import("@excalidraw/element/types").ImageCrop | null;
979
+ type: "line" | "arrow";
980
+ points: readonly import("@excalidraw/math").LocalPoint[];
981
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
982
+ startBinding: import("@excalidraw/element/types").PointBinding | null;
983
+ endBinding: import("@excalidraw/element/types").PointBinding | null;
984
+ startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
985
+ endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
999
986
  }> & {
1000
987
  index: import("@excalidraw/element/types").FractionalIndex;
1001
988
  }) | (Readonly<{
@@ -1032,10 +1019,11 @@ export declare const actionWrapSelectionInFrame: {
1032
1019
  locked: boolean;
1033
1020
  customData?: Record<string, any> | undefined;
1034
1021
  }> & Readonly<{
1035
- type: "iframe";
1036
- customData?: {
1037
- generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
1038
- } | undefined;
1022
+ type: "freedraw";
1023
+ points: readonly import("@excalidraw/math").LocalPoint[];
1024
+ pressures: readonly number[];
1025
+ simulatePressure: boolean;
1026
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1039
1027
  }> & {
1040
1028
  index: import("@excalidraw/element/types").FractionalIndex;
1041
1029
  }) | (Readonly<{
@@ -1072,18 +1060,11 @@ export declare const actionWrapSelectionInFrame: {
1072
1060
  locked: boolean;
1073
1061
  customData?: Record<string, any> | undefined;
1074
1062
  }> & Readonly<{
1075
- type: "text";
1076
- fontSize: number;
1077
- fontFamily: number;
1078
- text: string;
1079
- textAlign: string;
1080
- verticalAlign: string;
1081
- containerId: string | null;
1082
- originalText: string;
1083
- autoResize: boolean;
1084
- lineHeight: number & {
1085
- _brand: "unitlessLineHeight";
1086
- };
1063
+ type: "image";
1064
+ fileId: import("@excalidraw/element/types").FileId | null;
1065
+ status: "error" | "pending" | "saved";
1066
+ scale: [number, number];
1067
+ crop: import("@excalidraw/element/types").ImageCrop | null;
1087
1068
  }> & {
1088
1069
  index: import("@excalidraw/element/types").FractionalIndex;
1089
1070
  }) | (Readonly<{
@@ -1120,7 +1101,8 @@ export declare const actionWrapSelectionInFrame: {
1120
1101
  locked: boolean;
1121
1102
  customData?: Record<string, any> | undefined;
1122
1103
  }> & {
1123
- type: "selection";
1104
+ type: "frame";
1105
+ name: string | null;
1124
1106
  } & {
1125
1107
  index: import("@excalidraw/element/types").FractionalIndex;
1126
1108
  }) | (Readonly<{
@@ -1157,7 +1139,8 @@ export declare const actionWrapSelectionInFrame: {
1157
1139
  locked: boolean;
1158
1140
  customData?: Record<string, any> | undefined;
1159
1141
  }> & {
1160
- type: "ellipse";
1142
+ type: "magicframe";
1143
+ name: string | null;
1161
1144
  } & {
1162
1145
  index: import("@excalidraw/element/types").FractionalIndex;
1163
1146
  }) | (Readonly<{
@@ -1194,13 +1177,10 @@ export declare const actionWrapSelectionInFrame: {
1194
1177
  locked: boolean;
1195
1178
  customData?: Record<string, any> | undefined;
1196
1179
  }> & Readonly<{
1197
- type: "line" | "arrow";
1198
- points: readonly import("@excalidraw/math").LocalPoint[];
1199
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1200
- startBinding: import("@excalidraw/element/types").PointBinding | null;
1201
- endBinding: import("@excalidraw/element/types").PointBinding | null;
1202
- startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1203
- endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1180
+ type: "iframe";
1181
+ customData?: {
1182
+ generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
1183
+ } | undefined;
1204
1184
  }> & {
1205
1185
  index: import("@excalidraw/element/types").FractionalIndex;
1206
1186
  }) | (Readonly<{
@@ -1237,11 +1217,7 @@ export declare const actionWrapSelectionInFrame: {
1237
1217
  locked: boolean;
1238
1218
  customData?: Record<string, any> | undefined;
1239
1219
  }> & Readonly<{
1240
- type: "freedraw";
1241
- points: readonly import("@excalidraw/math").LocalPoint[];
1242
- pressures: readonly number[];
1243
- simulatePressure: boolean;
1244
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1220
+ type: "embeddable";
1245
1221
  }> & {
1246
1222
  index: import("@excalidraw/element/types").FractionalIndex;
1247
1223
  }) | 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,7 +50,7 @@ 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;
@@ -164,8 +164,8 @@ export declare const actionGroup: {
164
164
  data: import("../charts").Spreadsheet;
165
165
  };
166
166
  pendingImageElementId: string | null;
167
- showHyperlinkPopup: false | "editor" | "info";
168
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
167
+ showHyperlinkPopup: false | "info" | "editor";
168
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
169
169
  snapLines: readonly import("../snapping").SnapLine[];
170
170
  originSnapOffset: {
171
171
  x: number;
@@ -176,25 +176,19 @@ export declare const actionGroup: {
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
  elements: OrderedExcalidrawElement[];
191
185
  captureUpdate: "IMMEDIATELY";
192
186
  };
193
187
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
194
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
188
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
195
189
  PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
196
190
  } & {
197
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
191
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
198
192
  };
199
193
  export declare const actionUngroup: {
200
194
  name: "ungroup";
@@ -209,13 +203,13 @@ export declare const actionUngroup: {
209
203
  captureUpdate: "EVENTUALLY";
210
204
  } | {
211
205
  appState: {
212
- editingGroupId: string | null;
213
206
  selectedElementIds: Readonly<{
214
207
  [id: string]: true;
215
208
  }>;
216
209
  selectedGroupIds: {
217
210
  [groupId: string]: boolean;
218
211
  };
212
+ editingGroupId: string | null;
219
213
  contextMenu: {
220
214
  items: import("../components/ContextMenu").ContextMenuItems;
221
215
  top: number;
@@ -234,7 +228,7 @@ export declare const actionUngroup: {
234
228
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
235
229
  isBindingEnabled: boolean;
236
230
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
237
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
231
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
238
232
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
239
233
  frameRendering: {
240
234
  enabled: boolean;
@@ -245,7 +239,7 @@ export declare const actionUngroup: {
245
239
  editingFrame: string | null;
246
240
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
247
241
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
248
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
242
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
249
243
  activeTool: {
250
244
  lastActiveTool: import("../types").ActiveTool | null;
251
245
  locked: boolean;
@@ -359,8 +353,8 @@ export declare const actionUngroup: {
359
353
  data: import("../charts").Spreadsheet;
360
354
  };
361
355
  pendingImageElementId: string | null;
362
- showHyperlinkPopup: false | "editor" | "info";
363
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
356
+ showHyperlinkPopup: false | "info" | "editor";
357
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
364
358
  snapLines: readonly import("../snapping").SnapLine[];
365
359
  originSnapOffset: {
366
360
  x: number;
@@ -371,23 +365,17 @@ export declare const actionUngroup: {
371
365
  followedBy: Set<import("../types").SocketId>;
372
366
  isCropping: boolean;
373
367
  croppingElementId: string | null;
374
- searchMatches: readonly {
375
- id: string;
376
- focus: boolean;
377
- matchedLines: {
378
- offsetX: number;
379
- offsetY: number;
380
- width: number;
381
- height: number;
382
- }[];
383
- }[];
368
+ searchMatches: Readonly<{
369
+ focusedId: string | null;
370
+ matches: readonly import("../types").SearchMatch[];
371
+ }> | null;
384
372
  };
385
373
  elements: OrderedExcalidrawElement[];
386
374
  captureUpdate: "IMMEDIATELY";
387
375
  };
388
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
376
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
389
377
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
390
378
  PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
391
379
  } & {
392
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
380
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
393
381
  };
@@ -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 {};