@myoc/excalidraw 0.18.16 → 0.18.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/dist/dev/{chunk-3HLOFB5F.js → chunk-FQEIAL75.js} +14723 -9831
  2. package/dist/dev/chunk-FQEIAL75.js.map +7 -0
  3. package/dist/dev/{chunk-PEI7EPYO.js → chunk-KJKC5BJI.js} +10 -4
  4. package/dist/dev/chunk-KJKC5BJI.js.map +7 -0
  5. package/dist/dev/{chunk-QQGTICP4.js → chunk-XL2I4W52.js} +2 -2
  6. package/dist/dev/data/{image-XPEIZ6XQ.js → image-WMF622SS.js} +3 -3
  7. package/dist/dev/index.css +69 -22
  8. package/dist/dev/index.css.map +3 -3
  9. package/dist/dev/index.js +3099 -6535
  10. package/dist/dev/index.js.map +4 -4
  11. package/dist/dev/locales/{en-R455UJTM.js → en-UQFCZXHO.js} +2 -2
  12. package/dist/dev/subset-shared.chunk.js +1 -1
  13. package/dist/dev/subset-worker.chunk.js +1 -1
  14. package/dist/prod/{chunk-7HNFGNL7.js → chunk-5JAQX5EH.js} +1 -1
  15. package/dist/prod/{chunk-KZWZ7WHC.js → chunk-EJLAYNAE.js} +4 -4
  16. package/dist/prod/chunk-LSNMPGNI.js +33 -0
  17. package/dist/prod/data/image-Z433FUMH.js +1 -0
  18. package/dist/prod/index.css +1 -1
  19. package/dist/prod/index.js +17 -16
  20. package/dist/prod/locales/{en-YWERZJD6.js → en-7EHYHCIL.js} +1 -1
  21. package/dist/prod/subset-shared.chunk.js +1 -1
  22. package/dist/prod/subset-worker.chunk.js +1 -1
  23. package/dist/types/common/src/constants.d.ts +3 -1
  24. package/dist/types/{excalidraw → common/src}/emitter.d.ts +1 -1
  25. package/dist/types/common/src/font-metadata.d.ts +4 -2
  26. package/dist/types/common/src/index.d.ts +1 -0
  27. package/dist/types/common/src/utility-types.d.ts +5 -0
  28. package/dist/types/common/src/utils.d.ts +16 -4
  29. package/dist/types/{excalidraw/scene → element/src}/Scene.d.ts +11 -14
  30. package/dist/types/element/src/ShapeCache.d.ts +1 -1
  31. package/dist/types/element/src/align.d.ts +3 -3
  32. package/dist/types/element/src/arrange.d.ts +2 -1
  33. package/dist/types/element/src/binding.d.ts +18 -10
  34. package/dist/types/element/src/bounds.d.ts +1 -1
  35. package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +40 -35
  36. package/dist/types/element/src/dragElements.d.ts +3 -2
  37. package/dist/types/element/src/elbowArrow.d.ts +1 -1
  38. package/dist/types/element/src/flowchart.d.ts +3 -2
  39. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  40. package/dist/types/element/src/frame.d.ts +4 -3
  41. package/dist/types/element/src/index.d.ts +45 -2
  42. package/dist/types/element/src/linearElementEditor.d.ts +14 -18
  43. package/dist/types/element/src/mutateElement.d.ts +10 -2
  44. package/dist/types/element/src/newElement.d.ts +3 -3
  45. package/dist/types/element/src/resizeElements.d.ts +4 -4
  46. package/dist/types/element/src/selection.d.ts +1 -6
  47. package/dist/types/element/src/shapes.d.ts +1 -1
  48. package/dist/types/element/src/sizeHelpers.d.ts +0 -1
  49. package/dist/types/element/src/store.d.ts +227 -0
  50. package/dist/types/element/src/textElement.d.ts +4 -3
  51. package/dist/types/element/src/typeChecks.d.ts +5 -1
  52. package/dist/types/element/src/types.d.ts +8 -0
  53. package/dist/types/element/src/zindex.d.ts +1 -1
  54. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +27 -45
  55. package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
  56. package/dist/types/excalidraw/actions/actionArrange.d.ts +2 -2
  57. package/dist/types/excalidraw/actions/actionBoundText.d.ts +18 -30
  58. package/dist/types/excalidraw/actions/actionCanvas.d.ts +127 -199
  59. package/dist/types/excalidraw/actions/actionClipboard.d.ts +56 -92
  60. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +9 -15
  61. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +25 -43
  62. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
  63. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  64. package/dist/types/excalidraw/actions/actionElementLink.d.ts +9 -15
  65. package/dist/types/excalidraw/actions/actionElementLock.d.ts +20 -32
  66. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +9 -15
  67. package/dist/types/excalidraw/actions/actionExport.d.ts +175 -229
  68. package/dist/types/excalidraw/actions/actionFinalize.d.ts +16 -28
  69. package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
  70. package/dist/types/excalidraw/actions/actionFrame.d.ts +80 -104
  71. package/dist/types/excalidraw/actions/actionGroup.d.ts +24 -36
  72. package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -2
  73. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +8 -14
  74. package/dist/types/excalidraw/actions/actionLink.d.ts +9 -15
  75. package/dist/types/excalidraw/actions/actionMenu.d.ts +27 -45
  76. package/dist/types/excalidraw/actions/actionNavigate.d.ts +17 -29
  77. package/dist/types/excalidraw/actions/actionProperties.d.ts +123 -213
  78. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +11 -17
  79. package/dist/types/excalidraw/actions/actionSmartZoom.d.ts +2 -2
  80. package/dist/types/excalidraw/actions/actionStyles.d.ts +13 -19
  81. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +11 -17
  82. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +11 -17
  83. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +11 -198
  84. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  85. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +11 -17
  86. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +11 -17
  87. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +11 -17
  88. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  89. package/dist/types/excalidraw/actions/types.d.ts +3 -3
  90. package/dist/types/excalidraw/appState.d.ts +30 -30
  91. package/dist/types/excalidraw/components/App.d.ts +13 -8
  92. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  93. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
  94. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  95. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -3
  96. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -3
  97. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -2
  98. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  99. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  100. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  101. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
  102. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +4 -3
  103. package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
  104. package/dist/types/excalidraw/components/Range.d.ts +3 -3
  105. package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  106. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  107. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  108. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  109. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +1 -1
  110. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  111. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  112. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
  113. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  114. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
  115. package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -1
  116. package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -11
  117. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
  118. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
  119. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
  120. package/dist/types/excalidraw/components/icons.d.ts +1 -0
  121. package/dist/types/excalidraw/components/shapes.d.ts +1 -1
  122. package/dist/types/excalidraw/data/blob.d.ts +1 -1
  123. package/dist/types/excalidraw/data/transform.d.ts +1 -1
  124. package/dist/types/excalidraw/editor-jotai.d.ts +6 -6
  125. package/dist/types/excalidraw/fonts/Fonts.d.ts +1 -1
  126. package/dist/types/excalidraw/history.d.ts +14 -22
  127. package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  128. package/dist/types/excalidraw/index.d.ts +9 -9
  129. package/dist/types/excalidraw/lasso/index.d.ts +1 -0
  130. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -1
  131. package/dist/types/excalidraw/scene/Renderer.d.ts +1 -1
  132. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  133. package/dist/types/excalidraw/snapping.d.ts +2 -2
  134. package/dist/types/excalidraw/types.d.ts +15 -6
  135. package/dist/types/excalidraw/visualdebug.d.ts +1 -1
  136. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
  137. package/dist/types/math/src/curve.d.ts +2 -0
  138. package/dist/types/math/src/vector.d.ts +4 -0
  139. package/dist/types/utils/src/bbox.d.ts +1 -1
  140. package/dist/types/utils/src/index.d.ts +1 -1
  141. package/dist/types/utils/src/withinBounds.d.ts +1 -1
  142. package/history.ts +68 -94
  143. package/package.json +4 -4
  144. package/dist/dev/chunk-3HLOFB5F.js.map +0 -7
  145. package/dist/dev/chunk-PEI7EPYO.js.map +0 -7
  146. package/dist/prod/chunk-KKQVTSHB.js +0 -33
  147. package/dist/prod/data/image-QD7FUQED.js +0 -1
  148. package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
  149. package/dist/types/excalidraw/store.d.ts +0 -129
  150. /package/dist/dev/{chunk-QQGTICP4.js.map → chunk-XL2I4W52.js.map} +0 -0
  151. /package/dist/dev/data/{image-XPEIZ6XQ.js.map → image-WMF622SS.js.map} +0 -0
  152. /package/dist/dev/locales/{en-R455UJTM.js.map → en-UQFCZXHO.js.map} +0 -0
@@ -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";
@@ -36,7 +36,7 @@ export declare const actionFinalize: {
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;
@@ -83,7 +83,7 @@ export declare const actionFinalize: {
83
83
  zoom: Readonly<{
84
84
  value: import("../types").NormalizedZoomValue;
85
85
  }>;
86
- openMenu: "shape" | "canvas" | null;
86
+ openMenu: "canvas" | "shape" | null;
87
87
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
88
88
  openSidebar: {
89
89
  name: string;
@@ -166,7 +166,7 @@ export declare const actionFinalize: {
166
166
  data: import("../charts").Spreadsheet;
167
167
  };
168
168
  pendingImageElementId: string | null;
169
- showHyperlinkPopup: false | "editor" | "info";
169
+ showHyperlinkPopup: false | "info" | "editor";
170
170
  selectedLinearElement: LinearElementEditor | null;
171
171
  snapLines: readonly import("../snapping").SnapLine[];
172
172
  originSnapOffset: {
@@ -178,16 +178,10 @@ export declare const actionFinalize: {
178
178
  followedBy: Set<import("../types").SocketId>;
179
179
  isCropping: boolean;
180
180
  croppingElementId: string | null;
181
- searchMatches: readonly {
182
- id: string;
183
- focus: boolean;
184
- matchedLines: {
185
- offsetX: number;
186
- offsetY: number;
187
- width: number;
188
- height: number;
189
- }[];
190
- }[];
181
+ searchMatches: Readonly<{
182
+ focusedId: string | null;
183
+ matches: readonly import("../types").SearchMatch[];
184
+ }> | null;
191
185
  };
192
186
  captureUpdate: "IMMEDIATELY";
193
187
  } | {
@@ -270,7 +264,7 @@ export declare const actionFinalize: {
270
264
  zoom: Readonly<{
271
265
  value: import("../types").NormalizedZoomValue;
272
266
  }>;
273
- openMenu: "shape" | "canvas" | null;
267
+ openMenu: "canvas" | "shape" | null;
274
268
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
275
269
  openSidebar: {
276
270
  name: string;
@@ -349,7 +343,7 @@ export declare const actionFinalize: {
349
343
  shown: true;
350
344
  data: import("../charts").Spreadsheet;
351
345
  };
352
- showHyperlinkPopup: false | "editor" | "info";
346
+ showHyperlinkPopup: false | "info" | "editor";
353
347
  snapLines: readonly import("../snapping").SnapLine[];
354
348
  originSnapOffset: {
355
349
  x: number;
@@ -360,21 +354,15 @@ export declare const actionFinalize: {
360
354
  followedBy: Set<import("../types").SocketId>;
361
355
  isCropping: boolean;
362
356
  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
- }[];
357
+ searchMatches: Readonly<{
358
+ focusedId: string | null;
359
+ matches: readonly import("../types").SearchMatch[];
360
+ }> | null;
373
361
  };
374
362
  captureUpdate: "IMMEDIATELY";
375
363
  };
376
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean;
364
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState) => boolean;
377
365
  PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
378
366
  } & {
379
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean) | undefined;
367
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState) => boolean) | undefined;
380
368
  };
@@ -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
  };
@@ -37,7 +37,7 @@ export declare const actionSelectAllElementsInFrame: {
37
37
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
38
38
  isBindingEnabled: boolean;
39
39
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
40
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
40
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
41
41
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
42
42
  frameRendering: {
43
43
  enabled: boolean;
@@ -48,7 +48,7 @@ export declare const actionSelectAllElementsInFrame: {
48
48
  editingFrame: string | null;
49
49
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
50
50
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
51
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
51
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
52
52
  activeTool: {
53
53
  lastActiveTool: import("../types").ActiveTool | null;
54
54
  locked: boolean;
@@ -86,7 +86,7 @@ export declare const actionSelectAllElementsInFrame: {
86
86
  zoom: Readonly<{
87
87
  value: import("../types").NormalizedZoomValue;
88
88
  }>;
89
- openMenu: "shape" | "canvas" | null;
89
+ openMenu: "canvas" | "shape" | null;
90
90
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
91
91
  openSidebar: {
92
92
  name: string;
@@ -166,8 +166,8 @@ export declare const actionSelectAllElementsInFrame: {
166
166
  data: import("../charts").Spreadsheet;
167
167
  };
168
168
  pendingImageElementId: string | null;
169
- showHyperlinkPopup: false | "editor" | "info";
170
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
169
+ showHyperlinkPopup: false | "info" | "editor";
170
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
171
171
  snapLines: readonly import("../snapping").SnapLine[];
172
172
  originSnapOffset: {
173
173
  x: number;
@@ -178,16 +178,10 @@ export declare const actionSelectAllElementsInFrame: {
178
178
  followedBy: Set<import("../types").SocketId>;
179
179
  isCropping: boolean;
180
180
  croppingElementId: string | null;
181
- searchMatches: readonly {
182
- id: string;
183
- focus: boolean;
184
- matchedLines: {
185
- offsetX: number;
186
- offsetY: number;
187
- width: number;
188
- height: number;
189
- }[];
190
- }[];
181
+ searchMatches: Readonly<{
182
+ focusedId: string | null;
183
+ matches: readonly import("../types").SearchMatch[];
184
+ }> | null;
191
185
  };
192
186
  captureUpdate: "IMMEDIATELY";
193
187
  } | {
@@ -237,7 +231,7 @@ export declare const actionRemoveAllElementsFromFrame: {
237
231
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
238
232
  isBindingEnabled: boolean;
239
233
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
240
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
234
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
241
235
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
242
236
  frameRendering: {
243
237
  enabled: boolean;
@@ -248,7 +242,7 @@ export declare const actionRemoveAllElementsFromFrame: {
248
242
  editingFrame: string | null;
249
243
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
250
244
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
251
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
245
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
252
246
  activeTool: {
253
247
  lastActiveTool: import("../types").ActiveTool | null;
254
248
  locked: boolean;
@@ -286,7 +280,7 @@ export declare const actionRemoveAllElementsFromFrame: {
286
280
  zoom: Readonly<{
287
281
  value: import("../types").NormalizedZoomValue;
288
282
  }>;
289
- openMenu: "shape" | "canvas" | null;
283
+ openMenu: "canvas" | "shape" | null;
290
284
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
291
285
  openSidebar: {
292
286
  name: string;
@@ -366,8 +360,8 @@ export declare const actionRemoveAllElementsFromFrame: {
366
360
  data: import("../charts").Spreadsheet;
367
361
  };
368
362
  pendingImageElementId: string | null;
369
- showHyperlinkPopup: false | "editor" | "info";
370
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
363
+ showHyperlinkPopup: false | "info" | "editor";
364
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
371
365
  snapLines: readonly import("../snapping").SnapLine[];
372
366
  originSnapOffset: {
373
367
  x: number;
@@ -378,16 +372,10 @@ export declare const actionRemoveAllElementsFromFrame: {
378
372
  followedBy: Set<import("../types").SocketId>;
379
373
  isCropping: boolean;
380
374
  croppingElementId: string | null;
381
- searchMatches: readonly {
382
- id: string;
383
- focus: boolean;
384
- matchedLines: {
385
- offsetX: number;
386
- offsetY: number;
387
- width: number;
388
- height: number;
389
- }[];
390
- }[];
375
+ searchMatches: Readonly<{
376
+ focusedId: string | null;
377
+ matches: readonly import("../types").SearchMatch[];
378
+ }> | null;
391
379
  };
392
380
  captureUpdate: "IMMEDIATELY";
393
381
  } | {
@@ -441,12 +429,12 @@ export declare const actionupdateFrameRendering: {
441
429
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
442
430
  isBindingEnabled: boolean;
443
431
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
444
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
432
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
445
433
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
446
434
  editingFrame: string | null;
447
435
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
448
436
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
449
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
437
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
450
438
  activeTool: {
451
439
  lastActiveTool: import("../types").ActiveTool | null;
452
440
  locked: boolean;
@@ -484,7 +472,7 @@ export declare const actionupdateFrameRendering: {
484
472
  zoom: Readonly<{
485
473
  value: import("../types").NormalizedZoomValue;
486
474
  }>;
487
- openMenu: "shape" | "canvas" | null;
475
+ openMenu: "canvas" | "shape" | null;
488
476
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
489
477
  openSidebar: {
490
478
  name: string;
@@ -567,8 +555,8 @@ export declare const actionupdateFrameRendering: {
567
555
  data: import("../charts").Spreadsheet;
568
556
  };
569
557
  pendingImageElementId: string | null;
570
- showHyperlinkPopup: false | "editor" | "info";
571
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
558
+ showHyperlinkPopup: false | "info" | "editor";
559
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
572
560
  snapLines: readonly import("../snapping").SnapLine[];
573
561
  originSnapOffset: {
574
562
  x: number;
@@ -579,16 +567,10 @@ export declare const actionupdateFrameRendering: {
579
567
  followedBy: Set<import("../types").SocketId>;
580
568
  isCropping: boolean;
581
569
  croppingElementId: string | null;
582
- searchMatches: readonly {
583
- id: string;
584
- focus: boolean;
585
- matchedLines: {
586
- offsetX: number;
587
- offsetY: number;
588
- width: number;
589
- height: number;
590
- }[];
591
- }[];
570
+ searchMatches: Readonly<{
571
+ focusedId: string | null;
572
+ matches: readonly import("../types").SearchMatch[];
573
+ }> | null;
592
574
  };
593
575
  captureUpdate: "EVENTUALLY";
594
576
  };
@@ -638,7 +620,7 @@ export declare const actionSetFrameAsActiveTool: {
638
620
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
639
621
  isBindingEnabled: boolean;
640
622
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
641
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
623
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
642
624
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
643
625
  frameRendering: {
644
626
  enabled: boolean;
@@ -649,7 +631,7 @@ export declare const actionSetFrameAsActiveTool: {
649
631
  editingFrame: string | null;
650
632
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
651
633
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
652
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
634
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
653
635
  penMode: boolean;
654
636
  penDetected: boolean;
655
637
  exportBackground: boolean;
@@ -682,7 +664,7 @@ export declare const actionSetFrameAsActiveTool: {
682
664
  zoom: Readonly<{
683
665
  value: import("../types").NormalizedZoomValue;
684
666
  }>;
685
- openMenu: "shape" | "canvas" | null;
667
+ openMenu: "canvas" | "shape" | null;
686
668
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
687
669
  openSidebar: {
688
670
  name: string;
@@ -765,8 +747,8 @@ export declare const actionSetFrameAsActiveTool: {
765
747
  data: import("../charts").Spreadsheet;
766
748
  };
767
749
  pendingImageElementId: string | null;
768
- showHyperlinkPopup: false | "editor" | "info";
769
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
750
+ showHyperlinkPopup: false | "info" | "editor";
751
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
770
752
  snapLines: readonly import("../snapping").SnapLine[];
771
753
  originSnapOffset: {
772
754
  x: number;
@@ -777,22 +759,16 @@ export declare const actionSetFrameAsActiveTool: {
777
759
  followedBy: Set<import("../types").SocketId>;
778
760
  isCropping: boolean;
779
761
  croppingElementId: string | null;
780
- searchMatches: readonly {
781
- id: string;
782
- focus: boolean;
783
- matchedLines: {
784
- offsetX: number;
785
- offsetY: number;
786
- width: number;
787
- height: number;
788
- }[];
789
- }[];
762
+ searchMatches: Readonly<{
763
+ focusedId: string | null;
764
+ matches: readonly import("../types").SearchMatch[];
765
+ }> | null;
790
766
  };
791
767
  captureUpdate: "EVENTUALLY";
792
768
  };
793
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => false;
769
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => false;
794
770
  } & {
795
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => false) | undefined;
771
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => false) | undefined;
796
772
  };
797
773
  export declare const actionWrapSelectionInFrame: {
798
774
  name: "wrapSelectionInFrame";
@@ -836,7 +812,7 @@ export declare const actionWrapSelectionInFrame: {
836
812
  locked: boolean;
837
813
  customData?: Record<string, any> | undefined;
838
814
  }> & {
839
- type: "rectangle";
815
+ type: "selection";
840
816
  } & {
841
817
  index: import("@excalidraw/element/types").FractionalIndex;
842
818
  }) | (Readonly<{
@@ -873,7 +849,7 @@ export declare const actionWrapSelectionInFrame: {
873
849
  locked: boolean;
874
850
  customData?: Record<string, any> | undefined;
875
851
  }> & {
876
- type: "diamond";
852
+ type: "rectangle";
877
853
  } & {
878
854
  index: import("@excalidraw/element/types").FractionalIndex;
879
855
  }) | (Readonly<{
@@ -910,8 +886,7 @@ export declare const actionWrapSelectionInFrame: {
910
886
  locked: boolean;
911
887
  customData?: Record<string, any> | undefined;
912
888
  }> & {
913
- type: "frame";
914
- name: string | null;
889
+ type: "diamond";
915
890
  } & {
916
891
  index: import("@excalidraw/element/types").FractionalIndex;
917
892
  }) | (Readonly<{
@@ -948,8 +923,7 @@ export declare const actionWrapSelectionInFrame: {
948
923
  locked: boolean;
949
924
  customData?: Record<string, any> | undefined;
950
925
  }> & {
951
- type: "magicframe";
952
- name: string | null;
926
+ type: "ellipse";
953
927
  } & {
954
928
  index: import("@excalidraw/element/types").FractionalIndex;
955
929
  }) | (Readonly<{
@@ -986,7 +960,18 @@ export declare const actionWrapSelectionInFrame: {
986
960
  locked: boolean;
987
961
  customData?: Record<string, any> | undefined;
988
962
  }> & Readonly<{
989
- type: "embeddable";
963
+ type: "text";
964
+ fontSize: number;
965
+ fontFamily: number;
966
+ text: string;
967
+ textAlign: string;
968
+ verticalAlign: string;
969
+ containerId: string | null;
970
+ originalText: string;
971
+ autoResize: boolean;
972
+ lineHeight: number & {
973
+ _brand: "unitlessLineHeight";
974
+ };
990
975
  }> & {
991
976
  index: import("@excalidraw/element/types").FractionalIndex;
992
977
  }) | (Readonly<{
@@ -1023,11 +1008,13 @@ export declare const actionWrapSelectionInFrame: {
1023
1008
  locked: boolean;
1024
1009
  customData?: Record<string, any> | undefined;
1025
1010
  }> & Readonly<{
1026
- type: "image";
1027
- fileId: import("@excalidraw/element/types").FileId | null;
1028
- status: "pending" | "saved" | "error";
1029
- scale: [number, number];
1030
- crop: import("@excalidraw/element/types").ImageCrop | null;
1011
+ type: "line" | "arrow";
1012
+ points: readonly import("@excalidraw/math").LocalPoint[];
1013
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1014
+ startBinding: import("@excalidraw/element/types").PointBinding | null;
1015
+ endBinding: import("@excalidraw/element/types").PointBinding | null;
1016
+ startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1017
+ endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1031
1018
  }> & {
1032
1019
  index: import("@excalidraw/element/types").FractionalIndex;
1033
1020
  }) | (Readonly<{
@@ -1064,10 +1051,11 @@ export declare const actionWrapSelectionInFrame: {
1064
1051
  locked: boolean;
1065
1052
  customData?: Record<string, any> | undefined;
1066
1053
  }> & Readonly<{
1067
- type: "iframe";
1068
- customData?: {
1069
- generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
1070
- } | undefined;
1054
+ type: "freedraw";
1055
+ points: readonly import("@excalidraw/math").LocalPoint[];
1056
+ pressures: readonly number[];
1057
+ simulatePressure: boolean;
1058
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1071
1059
  }> & {
1072
1060
  index: import("@excalidraw/element/types").FractionalIndex;
1073
1061
  }) | (Readonly<{
@@ -1104,18 +1092,11 @@ export declare const actionWrapSelectionInFrame: {
1104
1092
  locked: boolean;
1105
1093
  customData?: Record<string, any> | undefined;
1106
1094
  }> & Readonly<{
1107
- type: "text";
1108
- fontSize: number;
1109
- fontFamily: number;
1110
- text: string;
1111
- textAlign: string;
1112
- verticalAlign: string;
1113
- containerId: string | null;
1114
- originalText: string;
1115
- autoResize: boolean;
1116
- lineHeight: number & {
1117
- _brand: "unitlessLineHeight";
1118
- };
1095
+ type: "image";
1096
+ fileId: import("@excalidraw/element/types").FileId | null;
1097
+ status: "error" | "pending" | "saved";
1098
+ scale: [number, number];
1099
+ crop: import("@excalidraw/element/types").ImageCrop | null;
1119
1100
  }> & {
1120
1101
  index: import("@excalidraw/element/types").FractionalIndex;
1121
1102
  }) | (Readonly<{
@@ -1152,7 +1133,8 @@ export declare const actionWrapSelectionInFrame: {
1152
1133
  locked: boolean;
1153
1134
  customData?: Record<string, any> | undefined;
1154
1135
  }> & {
1155
- type: "selection";
1136
+ type: "frame";
1137
+ name: string | null;
1156
1138
  } & {
1157
1139
  index: import("@excalidraw/element/types").FractionalIndex;
1158
1140
  }) | (Readonly<{
@@ -1189,7 +1171,8 @@ export declare const actionWrapSelectionInFrame: {
1189
1171
  locked: boolean;
1190
1172
  customData?: Record<string, any> | undefined;
1191
1173
  }> & {
1192
- type: "ellipse";
1174
+ type: "magicframe";
1175
+ name: string | null;
1193
1176
  } & {
1194
1177
  index: import("@excalidraw/element/types").FractionalIndex;
1195
1178
  }) | (Readonly<{
@@ -1226,13 +1209,10 @@ export declare const actionWrapSelectionInFrame: {
1226
1209
  locked: boolean;
1227
1210
  customData?: Record<string, any> | undefined;
1228
1211
  }> & Readonly<{
1229
- type: "line" | "arrow";
1230
- points: readonly import("@excalidraw/math").LocalPoint[];
1231
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1232
- startBinding: import("@excalidraw/element/types").PointBinding | null;
1233
- endBinding: import("@excalidraw/element/types").PointBinding | null;
1234
- startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1235
- endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1212
+ type: "iframe";
1213
+ customData?: {
1214
+ generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
1215
+ } | undefined;
1236
1216
  }> & {
1237
1217
  index: import("@excalidraw/element/types").FractionalIndex;
1238
1218
  }) | (Readonly<{
@@ -1269,11 +1249,7 @@ export declare const actionWrapSelectionInFrame: {
1269
1249
  locked: boolean;
1270
1250
  customData?: Record<string, any> | undefined;
1271
1251
  }> & Readonly<{
1272
- type: "freedraw";
1273
- points: readonly import("@excalidraw/math").LocalPoint[];
1274
- pressures: readonly number[];
1275
- simulatePressure: boolean;
1276
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1252
+ type: "embeddable";
1277
1253
  }> & {
1278
1254
  index: import("@excalidraw/element/types").FractionalIndex;
1279
1255
  }) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];