@zsviczian/excalidraw 0.18.0-13 → 0.18.0-15

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 (116) hide show
  1. package/dist/excalidraw.development.js +153 -153
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/dist/styles.development.css +38 -2
  4. package/dist/styles.production.css +2 -2
  5. package/package.json +1 -1
  6. package/types/common/src/constants.d.ts +1 -0
  7. package/types/{excalidraw → common/src}/emitter.d.ts +1 -1
  8. package/types/common/src/font-metadata.d.ts +4 -2
  9. package/types/common/src/index.d.ts +1 -0
  10. package/types/common/src/utility-types.d.ts +5 -0
  11. package/types/common/src/utils.d.ts +16 -4
  12. package/types/element/src/Scene.d.ts +4 -4
  13. package/types/element/src/ShapeCache.d.ts +1 -1
  14. package/types/element/src/align.d.ts +1 -1
  15. package/types/element/src/binding.d.ts +1 -1
  16. package/types/element/src/bounds.d.ts +1 -1
  17. package/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +40 -35
  18. package/types/element/src/dragElements.d.ts +1 -1
  19. package/types/element/src/flowchart.d.ts +1 -1
  20. package/types/element/src/frame.d.ts +3 -2
  21. package/types/element/src/index.d.ts +45 -2
  22. package/types/element/src/linearElementEditor.d.ts +4 -8
  23. package/types/element/src/newElement.d.ts +1 -1
  24. package/types/element/src/resizeElements.d.ts +1 -1
  25. package/types/element/src/selection.d.ts +1 -6
  26. package/types/element/src/store.d.ts +227 -0
  27. package/types/element/src/textElement.d.ts +1 -1
  28. package/types/element/src/transformHandles.d.ts +4 -4
  29. package/types/element/src/typeChecks.d.ts +2 -1
  30. package/types/element/src/types.d.ts +6 -1
  31. package/types/element/src/zindex.d.ts +3 -3
  32. package/types/excalidraw/actions/actionAddToLibrary.d.ts +24 -42
  33. package/types/excalidraw/actions/actionAlign.d.ts +8 -8
  34. package/types/excalidraw/actions/actionBoundText.d.ts +16 -28
  35. package/types/excalidraw/actions/actionCanvas.d.ts +238 -328
  36. package/types/excalidraw/actions/actionClipboard.d.ts +50 -86
  37. package/types/excalidraw/actions/actionCropEditor.d.ts +8 -14
  38. package/types/excalidraw/actions/actionDeleteSelected.d.ts +22 -40
  39. package/types/excalidraw/actions/actionDistribute.d.ts +4 -4
  40. package/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  41. package/types/excalidraw/actions/actionElementLink.d.ts +8 -14
  42. package/types/excalidraw/actions/actionElementLock.d.ts +18 -30
  43. package/types/excalidraw/actions/actionEmbeddable.d.ts +8 -14
  44. package/types/excalidraw/actions/actionExport.d.ts +173 -227
  45. package/types/excalidraw/actions/actionFinalize.d.ts +14 -26
  46. package/types/excalidraw/actions/actionFlip.d.ts +4 -4
  47. package/types/excalidraw/actions/actionFrame.d.ts +81 -105
  48. package/types/excalidraw/actions/actionGroup.d.ts +22 -34
  49. package/types/excalidraw/actions/actionHistory.d.ts +1 -2
  50. package/types/excalidraw/actions/actionLinearEditor.d.ts +7 -13
  51. package/types/excalidraw/actions/actionLink.d.ts +9 -15
  52. package/types/excalidraw/actions/actionMenu.d.ts +26 -44
  53. package/types/excalidraw/actions/actionNavigate.d.ts +16 -28
  54. package/types/excalidraw/actions/actionProperties.d.ts +106 -196
  55. package/types/excalidraw/actions/actionSelectAll.d.ts +10 -16
  56. package/types/excalidraw/actions/actionStyles.d.ts +12 -18
  57. package/types/excalidraw/actions/actionToggleGridMode.d.ts +10 -16
  58. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +10 -16
  59. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +10 -225
  60. package/types/excalidraw/actions/actionToggleStats.d.ts +10 -16
  61. package/types/excalidraw/actions/actionToggleViewMode.d.ts +10 -16
  62. package/types/excalidraw/actions/actionToggleZenMode.d.ts +10 -16
  63. package/types/excalidraw/actions/actionZindex.d.ts +10 -10
  64. package/types/excalidraw/actions/types.d.ts +1 -1
  65. package/types/excalidraw/appState.d.ts +23 -23
  66. package/types/excalidraw/clipboard.d.ts +4 -4
  67. package/types/excalidraw/components/App.d.ts +8 -8
  68. package/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
  69. package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
  70. package/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
  71. package/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -3
  72. package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -3
  73. package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -2
  74. package/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
  75. package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
  76. package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  77. package/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -28
  78. package/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  79. package/types/excalidraw/components/Range.d.ts +3 -3
  80. package/types/excalidraw/components/Stats/Angle.d.ts +1 -1
  81. package/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  82. package/types/excalidraw/components/Stats/CanvasGridSize.d.ts +1 -1
  83. package/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  84. package/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
  85. package/types/excalidraw/components/Stats/DragInput.d.ts +1 -1
  86. package/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
  87. package/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
  88. package/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
  89. package/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
  90. package/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
  91. package/types/excalidraw/components/Stats/Position.d.ts +1 -1
  92. package/types/excalidraw/components/Stats/utils.d.ts +1 -1
  93. package/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
  94. package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +1 -1
  95. package/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
  96. package/types/excalidraw/components/icons.d.ts +1 -0
  97. package/types/excalidraw/components/shapes.d.ts +1 -1
  98. package/types/excalidraw/data/blob.d.ts +1 -1
  99. package/types/excalidraw/data/library.d.ts +1 -1
  100. package/types/excalidraw/data/transform.d.ts +1 -1
  101. package/types/excalidraw/fonts/Fonts.d.ts +1 -1
  102. package/types/excalidraw/history.d.ts +14 -22
  103. package/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  104. package/types/excalidraw/index.d.ts +9 -9
  105. package/types/excalidraw/renderer/helpers.d.ts +6 -1
  106. package/types/excalidraw/scene/Renderer.d.ts +1 -1
  107. package/types/excalidraw/scene/index.d.ts +2 -2
  108. package/types/excalidraw/snapping.d.ts +2 -2
  109. package/types/excalidraw/types.d.ts +13 -6
  110. package/types/excalidraw/visualdebug.d.ts +1 -1
  111. package/types/math/src/curve.d.ts +2 -0
  112. package/types/math/src/vector.d.ts +4 -0
  113. package/types/utils/src/bbox.d.ts +1 -1
  114. package/types/utils/src/index.d.ts +1 -1
  115. package/types/utils/src/withinBounds.d.ts +1 -1
  116. package/types/excalidraw/store.d.ts +0 -129
@@ -13,13 +13,13 @@ export declare const actionGroup: {
13
13
  captureUpdate: "EVENTUALLY";
14
14
  } | {
15
15
  appState: {
16
- editingGroupId: string | null;
17
16
  selectedElementIds: Readonly<{
18
17
  [id: string]: true;
19
18
  }>;
20
19
  selectedGroupIds: {
21
20
  [groupId: string]: boolean;
22
21
  };
22
+ editingGroupId: string | null;
23
23
  contextMenu: {
24
24
  items: import("../components/ContextMenu").ContextMenuItems;
25
25
  top: number;
@@ -38,7 +38,7 @@ export declare const actionGroup: {
38
38
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
39
39
  isBindingEnabled: boolean;
40
40
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
41
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
41
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
42
42
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
43
43
  frameRendering: {
44
44
  enabled: boolean;
@@ -49,7 +49,7 @@ export declare const actionGroup: {
49
49
  editingFrame: string | null;
50
50
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
51
51
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
52
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
52
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
53
53
  activeTool: {
54
54
  lastActiveTool: import("../types").ActiveTool | null;
55
55
  locked: boolean;
@@ -163,7 +163,7 @@ export declare const actionGroup: {
163
163
  data: import("../charts").Spreadsheet;
164
164
  };
165
165
  pendingImageElementId: string | null;
166
- showHyperlinkPopup: false | "editor" | "info";
166
+ showHyperlinkPopup: false | "info" | "editor";
167
167
  linkOpacity: number;
168
168
  trayModeEnabled: boolean;
169
169
  colorPalette?: {
@@ -200,7 +200,7 @@ export declare const actionGroup: {
200
200
  nameColor: string;
201
201
  };
202
202
  invertBindingBehaviour: boolean;
203
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
203
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
204
204
  snapLines: readonly import("../snapping").SnapLine[];
205
205
  originSnapOffset: {
206
206
  x: number;
@@ -211,25 +211,19 @@ export declare const actionGroup: {
211
211
  followedBy: Set<import("../types").SocketId>;
212
212
  isCropping: boolean;
213
213
  croppingElementId: string | null;
214
- searchMatches: readonly {
215
- id: string;
216
- focus: boolean;
217
- matchedLines: {
218
- offsetX: number;
219
- offsetY: number;
220
- width: number;
221
- height: number;
222
- }[];
223
- }[];
214
+ searchMatches: Readonly<{
215
+ focusedId: string | null;
216
+ matches: readonly import("../types").SearchMatch[];
217
+ }> | null;
224
218
  };
225
219
  elements: OrderedExcalidrawElement[];
226
220
  captureUpdate: "IMMEDIATELY";
227
221
  };
228
222
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
229
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
223
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
230
224
  PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
231
225
  } & {
232
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
226
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
233
227
  };
234
228
  export declare const actionUngroup: {
235
229
  name: "ungroup";
@@ -244,13 +238,13 @@ export declare const actionUngroup: {
244
238
  captureUpdate: "EVENTUALLY";
245
239
  } | {
246
240
  appState: {
247
- editingGroupId: string | null;
248
241
  selectedElementIds: Readonly<{
249
242
  [id: string]: true;
250
243
  }>;
251
244
  selectedGroupIds: {
252
245
  [groupId: string]: boolean;
253
246
  };
247
+ editingGroupId: string | null;
254
248
  contextMenu: {
255
249
  items: import("../components/ContextMenu").ContextMenuItems;
256
250
  top: number;
@@ -269,7 +263,7 @@ export declare const actionUngroup: {
269
263
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
270
264
  isBindingEnabled: boolean;
271
265
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
272
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
266
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
273
267
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
274
268
  frameRendering: {
275
269
  enabled: boolean;
@@ -280,7 +274,7 @@ export declare const actionUngroup: {
280
274
  editingFrame: string | null;
281
275
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
282
276
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
283
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
277
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
284
278
  activeTool: {
285
279
  lastActiveTool: import("../types").ActiveTool | null;
286
280
  locked: boolean;
@@ -394,7 +388,7 @@ export declare const actionUngroup: {
394
388
  data: import("../charts").Spreadsheet;
395
389
  };
396
390
  pendingImageElementId: string | null;
397
- showHyperlinkPopup: false | "editor" | "info";
391
+ showHyperlinkPopup: false | "info" | "editor";
398
392
  linkOpacity: number;
399
393
  trayModeEnabled: boolean;
400
394
  colorPalette?: {
@@ -431,7 +425,7 @@ export declare const actionUngroup: {
431
425
  nameColor: string;
432
426
  };
433
427
  invertBindingBehaviour: boolean;
434
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
428
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
435
429
  snapLines: readonly import("../snapping").SnapLine[];
436
430
  originSnapOffset: {
437
431
  x: number;
@@ -442,23 +436,17 @@ export declare const actionUngroup: {
442
436
  followedBy: Set<import("../types").SocketId>;
443
437
  isCropping: boolean;
444
438
  croppingElementId: string | null;
445
- searchMatches: readonly {
446
- id: string;
447
- focus: boolean;
448
- matchedLines: {
449
- offsetX: number;
450
- offsetY: number;
451
- width: number;
452
- height: number;
453
- }[];
454
- }[];
439
+ searchMatches: Readonly<{
440
+ focusedId: string | null;
441
+ matches: readonly import("../types").SearchMatch[];
442
+ }> | null;
455
443
  };
456
444
  elements: OrderedExcalidrawElement[];
457
445
  captureUpdate: "IMMEDIATELY";
458
446
  };
459
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
447
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
460
448
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
461
449
  PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
462
450
  } & {
463
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
451
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
464
452
  };
@@ -1,7 +1,6 @@
1
1
  import type { History } from "../history";
2
- import type { Store } from "../store";
3
2
  import type { Action } from "./types";
4
- type ActionCreator = (history: History, store: Store) => Action;
3
+ type ActionCreator = (history: History) => Action;
5
4
  export declare const createUndoAction: ActionCreator;
6
5
  export declare const createRedoAction: ActionCreator;
7
6
  export {};
@@ -1,4 +1,4 @@
1
- import { LinearElementEditor } from "@excalidraw/element/linearElementEditor";
1
+ import { LinearElementEditor } from "@excalidraw/element";
2
2
  import type { ExcalidrawLinearElement } from "@excalidraw/element/types";
3
3
  export declare const actionToggleLinearEditor: {
4
4
  name: "toggleLinearEditor";
@@ -30,7 +30,7 @@ export declare const actionToggleLinearEditor: {
30
30
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
31
31
  isBindingEnabled: boolean;
32
32
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
33
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
33
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
34
34
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
35
35
  frameRendering: {
36
36
  enabled: boolean;
@@ -161,7 +161,7 @@ export declare const actionToggleLinearEditor: {
161
161
  data: import("../charts").Spreadsheet;
162
162
  };
163
163
  pendingImageElementId: string | null;
164
- showHyperlinkPopup: false | "editor" | "info";
164
+ showHyperlinkPopup: false | "info" | "editor";
165
165
  linkOpacity: number;
166
166
  trayModeEnabled: boolean;
167
167
  colorPalette?: {
@@ -209,16 +209,10 @@ export declare const actionToggleLinearEditor: {
209
209
  followedBy: Set<import("../types").SocketId>;
210
210
  isCropping: boolean;
211
211
  croppingElementId: string | null;
212
- searchMatches: readonly {
213
- id: string;
214
- focus: boolean;
215
- matchedLines: {
216
- offsetX: number;
217
- offsetY: number;
218
- width: number;
219
- height: number;
220
- }[];
221
- }[];
212
+ searchMatches: Readonly<{
213
+ focusedId: string | null;
214
+ matches: readonly import("../types").SearchMatch[];
215
+ }> | null;
222
216
  };
223
217
  captureUpdate: "IMMEDIATELY";
224
218
  };
@@ -25,7 +25,7 @@ export declare const actionLink: {
25
25
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
26
26
  isBindingEnabled: boolean;
27
27
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
28
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
28
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
29
29
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
30
30
  frameRendering: {
31
31
  enabled: boolean;
@@ -36,7 +36,7 @@ export declare const actionLink: {
36
36
  editingFrame: string | null;
37
37
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
38
38
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
39
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
39
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
40
40
  activeTool: {
41
41
  lastActiveTool: import("../types").ActiveTool | null;
42
42
  locked: boolean;
@@ -192,7 +192,7 @@ export declare const actionLink: {
192
192
  nameColor: string;
193
193
  };
194
194
  invertBindingBehaviour: boolean;
195
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
195
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
196
196
  snapLines: readonly import("../snapping").SnapLine[];
197
197
  originSnapOffset: {
198
198
  x: number;
@@ -203,16 +203,10 @@ export declare const actionLink: {
203
203
  followedBy: Set<import("../types").SocketId>;
204
204
  isCropping: boolean;
205
205
  croppingElementId: string | null;
206
- searchMatches: readonly {
207
- id: string;
208
- focus: boolean;
209
- matchedLines: {
210
- offsetX: number;
211
- offsetY: number;
212
- width: number;
213
- height: number;
214
- }[];
215
- }[];
206
+ searchMatches: Readonly<{
207
+ focusedId: string | null;
208
+ matches: readonly import("../types").SearchMatch[];
209
+ }> | null;
216
210
  };
217
211
  captureUpdate: "IMMEDIATELY";
218
212
  };
@@ -220,9 +214,9 @@ export declare const actionLink: {
220
214
  category: "hyperlink";
221
215
  action: string;
222
216
  };
223
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
217
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
224
218
  predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState) => boolean;
225
219
  PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
226
220
  } & {
227
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
221
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
228
222
  };
@@ -25,7 +25,7 @@ export declare const actionToggleCanvasMenu: {
25
25
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
26
26
  isBindingEnabled: boolean;
27
27
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
28
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
28
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
29
29
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
30
30
  frameRendering: {
31
31
  enabled: boolean;
@@ -36,7 +36,7 @@ export declare const actionToggleCanvasMenu: {
36
36
  editingFrame: string | null;
37
37
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
38
38
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
39
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
39
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
40
40
  activeTool: {
41
41
  lastActiveTool: import("../types").ActiveTool | null;
42
42
  locked: boolean;
@@ -156,7 +156,7 @@ export declare const actionToggleCanvasMenu: {
156
156
  data: import("../charts").Spreadsheet;
157
157
  };
158
158
  pendingImageElementId: string | null;
159
- showHyperlinkPopup: false | "editor" | "info";
159
+ showHyperlinkPopup: false | "info" | "editor";
160
160
  linkOpacity: number;
161
161
  trayModeEnabled: boolean;
162
162
  colorPalette?: {
@@ -193,7 +193,7 @@ export declare const actionToggleCanvasMenu: {
193
193
  nameColor: string;
194
194
  };
195
195
  invertBindingBehaviour: boolean;
196
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
196
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
197
197
  snapLines: readonly import("../snapping").SnapLine[];
198
198
  originSnapOffset: {
199
199
  x: number;
@@ -204,16 +204,10 @@ export declare const actionToggleCanvasMenu: {
204
204
  followedBy: Set<import("../types").SocketId>;
205
205
  isCropping: boolean;
206
206
  croppingElementId: string | null;
207
- searchMatches: readonly {
208
- id: string;
209
- focus: boolean;
210
- matchedLines: {
211
- offsetX: number;
212
- offsetY: number;
213
- width: number;
214
- height: number;
215
- }[];
216
- }[];
207
+ searchMatches: Readonly<{
208
+ focusedId: string | null;
209
+ matches: readonly import("../types").SearchMatch[];
210
+ }> | null;
217
211
  };
218
212
  captureUpdate: "EVENTUALLY";
219
213
  };
@@ -248,7 +242,7 @@ export declare const actionToggleEditMenu: {
248
242
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
249
243
  isBindingEnabled: boolean;
250
244
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
251
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
245
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
252
246
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
253
247
  frameRendering: {
254
248
  enabled: boolean;
@@ -259,7 +253,7 @@ export declare const actionToggleEditMenu: {
259
253
  editingFrame: string | null;
260
254
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
261
255
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
262
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
256
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
263
257
  activeTool: {
264
258
  lastActiveTool: import("../types").ActiveTool | null;
265
259
  locked: boolean;
@@ -379,7 +373,7 @@ export declare const actionToggleEditMenu: {
379
373
  data: import("../charts").Spreadsheet;
380
374
  };
381
375
  pendingImageElementId: string | null;
382
- showHyperlinkPopup: false | "editor" | "info";
376
+ showHyperlinkPopup: false | "info" | "editor";
383
377
  linkOpacity: number;
384
378
  trayModeEnabled: boolean;
385
379
  colorPalette?: {
@@ -416,7 +410,7 @@ export declare const actionToggleEditMenu: {
416
410
  nameColor: string;
417
411
  };
418
412
  invertBindingBehaviour: boolean;
419
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
413
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
420
414
  snapLines: readonly import("../snapping").SnapLine[];
421
415
  originSnapOffset: {
422
416
  x: number;
@@ -427,16 +421,10 @@ export declare const actionToggleEditMenu: {
427
421
  followedBy: Set<import("../types").SocketId>;
428
422
  isCropping: boolean;
429
423
  croppingElementId: string | null;
430
- searchMatches: readonly {
431
- id: string;
432
- focus: boolean;
433
- matchedLines: {
434
- offsetX: number;
435
- offsetY: number;
436
- width: number;
437
- height: number;
438
- }[];
439
- }[];
424
+ searchMatches: Readonly<{
425
+ focusedId: string | null;
426
+ matches: readonly import("../types").SearchMatch[];
427
+ }> | null;
440
428
  };
441
429
  captureUpdate: "EVENTUALLY";
442
430
  };
@@ -476,7 +464,7 @@ export declare const actionShortcuts: {
476
464
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
477
465
  isBindingEnabled: boolean;
478
466
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
479
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
467
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
480
468
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
481
469
  frameRendering: {
482
470
  enabled: boolean;
@@ -487,7 +475,7 @@ export declare const actionShortcuts: {
487
475
  editingFrame: string | null;
488
476
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
489
477
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
490
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
478
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
491
479
  activeTool: {
492
480
  lastActiveTool: import("../types").ActiveTool | null;
493
481
  locked: boolean;
@@ -597,7 +585,7 @@ export declare const actionShortcuts: {
597
585
  data: import("../charts").Spreadsheet;
598
586
  };
599
587
  pendingImageElementId: string | null;
600
- showHyperlinkPopup: false | "editor" | "info";
588
+ showHyperlinkPopup: false | "info" | "editor";
601
589
  linkOpacity: number;
602
590
  trayModeEnabled: boolean;
603
591
  colorPalette?: {
@@ -634,7 +622,7 @@ export declare const actionShortcuts: {
634
622
  nameColor: string;
635
623
  };
636
624
  invertBindingBehaviour: boolean;
637
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
625
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
638
626
  snapLines: readonly import("../snapping").SnapLine[];
639
627
  originSnapOffset: {
640
628
  x: number;
@@ -645,20 +633,14 @@ export declare const actionShortcuts: {
645
633
  followedBy: Set<import("../types").SocketId>;
646
634
  isCropping: boolean;
647
635
  croppingElementId: string | null;
648
- searchMatches: readonly {
649
- id: string;
650
- focus: boolean;
651
- matchedLines: {
652
- offsetX: number;
653
- offsetY: number;
654
- width: number;
655
- height: number;
656
- }[];
657
- }[];
636
+ searchMatches: Readonly<{
637
+ focusedId: string | null;
638
+ matches: readonly import("../types").SearchMatch[];
639
+ }> | null;
658
640
  };
659
641
  captureUpdate: "EVENTUALLY";
660
642
  };
661
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
643
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
662
644
  } & {
663
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
645
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
664
646
  };
@@ -27,7 +27,7 @@ export declare const actionGoToCollaborator: {
27
27
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
28
28
  isBindingEnabled: boolean;
29
29
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
30
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
30
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
31
31
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
32
32
  frameRendering: {
33
33
  enabled: boolean;
@@ -38,7 +38,7 @@ export declare const actionGoToCollaborator: {
38
38
  editingFrame: string | null;
39
39
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
40
40
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
41
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
41
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
42
42
  activeTool: {
43
43
  lastActiveTool: import("../types").ActiveTool | null;
44
44
  locked: boolean;
@@ -159,7 +159,7 @@ export declare const actionGoToCollaborator: {
159
159
  data: import("../charts").Spreadsheet;
160
160
  };
161
161
  pendingImageElementId: string | null;
162
- showHyperlinkPopup: false | "editor" | "info";
162
+ showHyperlinkPopup: false | "info" | "editor";
163
163
  linkOpacity: number;
164
164
  trayModeEnabled: boolean;
165
165
  colorPalette?: {
@@ -196,7 +196,7 @@ export declare const actionGoToCollaborator: {
196
196
  nameColor: string;
197
197
  };
198
198
  invertBindingBehaviour: boolean;
199
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
199
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
200
200
  snapLines: readonly import("../snapping").SnapLine[];
201
201
  originSnapOffset: {
202
202
  x: number;
@@ -206,16 +206,10 @@ export declare const actionGoToCollaborator: {
206
206
  followedBy: Set<import("../types").SocketId>;
207
207
  isCropping: boolean;
208
208
  croppingElementId: string | null;
209
- searchMatches: readonly {
210
- id: string;
211
- focus: boolean;
212
- matchedLines: {
213
- offsetX: number;
214
- offsetY: number;
215
- width: number;
216
- height: number;
217
- }[];
218
- }[];
209
+ searchMatches: Readonly<{
210
+ focusedId: string | null;
211
+ matches: readonly import("../types").SearchMatch[];
212
+ }> | null;
219
213
  };
220
214
  captureUpdate: "EVENTUALLY";
221
215
  } | {
@@ -243,7 +237,7 @@ export declare const actionGoToCollaborator: {
243
237
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
244
238
  isBindingEnabled: boolean;
245
239
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
246
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
240
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
247
241
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
248
242
  frameRendering: {
249
243
  enabled: boolean;
@@ -254,7 +248,7 @@ export declare const actionGoToCollaborator: {
254
248
  editingFrame: string | null;
255
249
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
256
250
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
257
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
251
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
258
252
  activeTool: {
259
253
  lastActiveTool: import("../types").ActiveTool | null;
260
254
  locked: boolean;
@@ -374,7 +368,7 @@ export declare const actionGoToCollaborator: {
374
368
  data: import("../charts").Spreadsheet;
375
369
  };
376
370
  pendingImageElementId: string | null;
377
- showHyperlinkPopup: false | "editor" | "info";
371
+ showHyperlinkPopup: false | "info" | "editor";
378
372
  linkOpacity: number;
379
373
  trayModeEnabled: boolean;
380
374
  colorPalette?: {
@@ -411,7 +405,7 @@ export declare const actionGoToCollaborator: {
411
405
  nameColor: string;
412
406
  };
413
407
  invertBindingBehaviour: boolean;
414
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
408
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
415
409
  snapLines: readonly import("../snapping").SnapLine[];
416
410
  originSnapOffset: {
417
411
  x: number;
@@ -421,16 +415,10 @@ export declare const actionGoToCollaborator: {
421
415
  followedBy: Set<import("../types").SocketId>;
422
416
  isCropping: boolean;
423
417
  croppingElementId: string | null;
424
- searchMatches: readonly {
425
- id: string;
426
- focus: boolean;
427
- matchedLines: {
428
- offsetX: number;
429
- offsetY: number;
430
- width: number;
431
- height: number;
432
- }[];
433
- }[];
418
+ searchMatches: Readonly<{
419
+ focusedId: string | null;
420
+ matches: readonly import("../types").SearchMatch[];
421
+ }> | null;
434
422
  };
435
423
  captureUpdate: "EVENTUALLY";
436
424
  };