@myoc/excalidraw 0.18.15 → 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-O7OUZ7ZJ.js → chunk-FQEIAL75.js} +14874 -9982
  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-DJKQZ4KD.js → chunk-XL2I4W52.js} +2 -2
  6. package/dist/dev/data/{image-NJWLICAS.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 +3104 -6547
  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-NJOW7IOK.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 +30 -48
  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 +20 -32
  58. package/dist/types/excalidraw/actions/actionCanvas.d.ts +139 -211
  59. package/dist/types/excalidraw/actions/actionClipboard.d.ts +62 -98
  60. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +10 -16
  61. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +28 -46
  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 +10 -16
  65. package/dist/types/excalidraw/actions/actionElementLock.d.ts +22 -34
  66. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +10 -16
  67. package/dist/types/excalidraw/actions/actionExport.d.ts +184 -238
  68. package/dist/types/excalidraw/actions/actionFinalize.d.ts +18 -30
  69. package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
  70. package/dist/types/excalidraw/actions/actionFrame.d.ts +84 -108
  71. package/dist/types/excalidraw/actions/actionGroup.d.ts +26 -38
  72. package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -2
  73. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +9 -15
  74. package/dist/types/excalidraw/actions/actionLink.d.ts +10 -16
  75. package/dist/types/excalidraw/actions/actionMenu.d.ts +30 -48
  76. package/dist/types/excalidraw/actions/actionNavigate.d.ts +19 -31
  77. package/dist/types/excalidraw/actions/actionProperties.d.ts +138 -228
  78. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +12 -18
  79. package/dist/types/excalidraw/actions/actionSmartZoom.d.ts +2 -2
  80. package/dist/types/excalidraw/actions/actionStyles.d.ts +14 -20
  81. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +12 -18
  82. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +12 -18
  83. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +12 -199
  84. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  85. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +12 -18
  86. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +12 -18
  87. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +12 -18
  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 +31 -31
  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 +16 -9
  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 +5 -4
  144. package/dist/dev/chunk-O7OUZ7ZJ.js.map +0 -7
  145. package/dist/dev/chunk-PEI7EPYO.js.map +0 -7
  146. package/dist/prod/chunk-WGXUBJ4X.js +0 -33
  147. package/dist/prod/data/image-EKW6RBW7.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-DJKQZ4KD.js.map → chunk-XL2I4W52.js.map} +0 -0
  151. /package/dist/dev/data/{image-NJWLICAS.js.map → image-WMF622SS.js.map} +0 -0
  152. /package/dist/dev/locales/{en-R455UJTM.js.map → en-UQFCZXHO.js.map} +0 -0
@@ -18,9 +18,9 @@ export declare const actionAddToLibrary: {
18
18
  showWelcomeScreen: boolean;
19
19
  isLoading: boolean;
20
20
  myocSimplifiedMode: boolean;
21
+ dontResizeLimitMBs: number;
21
22
  hideMainMenus: boolean;
22
23
  wheelZoomsOnDefault?: boolean | undefined;
23
- dontResizeLimitMBs: number;
24
24
  arrangeConfiguration: {
25
25
  algorithm: "bin-packing";
26
26
  gap: number;
@@ -36,7 +36,7 @@ export declare const actionAddToLibrary: {
36
36
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
37
37
  isBindingEnabled: boolean;
38
38
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
39
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
39
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
40
40
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
41
41
  frameRendering: {
42
42
  enabled: boolean;
@@ -47,7 +47,7 @@ export declare const actionAddToLibrary: {
47
47
  editingFrame: string | null;
48
48
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
49
49
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
50
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
50
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
51
51
  activeTool: {
52
52
  lastActiveTool: import("../types").ActiveTool | null;
53
53
  locked: boolean;
@@ -85,7 +85,7 @@ export declare const actionAddToLibrary: {
85
85
  zoom: Readonly<{
86
86
  value: import("../types").NormalizedZoomValue;
87
87
  }>;
88
- openMenu: "shape" | "canvas" | null;
88
+ openMenu: "canvas" | "shape" | null;
89
89
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
90
90
  openSidebar: {
91
91
  name: string;
@@ -163,8 +163,8 @@ export declare const actionAddToLibrary: {
163
163
  data: import("../charts").Spreadsheet;
164
164
  };
165
165
  pendingImageElementId: string | null;
166
- showHyperlinkPopup: false | "editor" | "info";
167
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
166
+ showHyperlinkPopup: false | "info" | "editor";
167
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
168
168
  snapLines: readonly import("../snapping").SnapLine[];
169
169
  originSnapOffset: {
170
170
  x: number;
@@ -175,16 +175,10 @@ export declare const actionAddToLibrary: {
175
175
  followedBy: Set<import("../types").SocketId>;
176
176
  isCropping: boolean;
177
177
  croppingElementId: string | null;
178
- searchMatches: readonly {
179
- id: string;
180
- focus: boolean;
181
- matchedLines: {
182
- offsetX: number;
183
- offsetY: number;
184
- width: number;
185
- height: number;
186
- }[];
187
- }[];
178
+ searchMatches: Readonly<{
179
+ focusedId: string | null;
180
+ matches: readonly import("../types").SearchMatch[];
181
+ }> | null;
188
182
  };
189
183
  } | {
190
184
  captureUpdate: "EVENTUALLY";
@@ -198,9 +192,9 @@ export declare const actionAddToLibrary: {
198
192
  showWelcomeScreen: boolean;
199
193
  isLoading: boolean;
200
194
  myocSimplifiedMode: boolean;
195
+ dontResizeLimitMBs: number;
201
196
  hideMainMenus: boolean;
202
197
  wheelZoomsOnDefault?: boolean | undefined;
203
- dontResizeLimitMBs: number;
204
198
  arrangeConfiguration: {
205
199
  algorithm: "bin-packing";
206
200
  gap: number;
@@ -215,7 +209,7 @@ export declare const actionAddToLibrary: {
215
209
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
216
210
  isBindingEnabled: boolean;
217
211
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
218
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
212
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
219
213
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
220
214
  frameRendering: {
221
215
  enabled: boolean;
@@ -226,7 +220,7 @@ export declare const actionAddToLibrary: {
226
220
  editingFrame: string | null;
227
221
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
228
222
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
229
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
223
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
230
224
  activeTool: {
231
225
  lastActiveTool: import("../types").ActiveTool | null;
232
226
  locked: boolean;
@@ -264,7 +258,7 @@ export declare const actionAddToLibrary: {
264
258
  zoom: Readonly<{
265
259
  value: import("../types").NormalizedZoomValue;
266
260
  }>;
267
- openMenu: "shape" | "canvas" | null;
261
+ openMenu: "canvas" | "shape" | null;
268
262
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
269
263
  openSidebar: {
270
264
  name: string;
@@ -347,8 +341,8 @@ export declare const actionAddToLibrary: {
347
341
  data: import("../charts").Spreadsheet;
348
342
  };
349
343
  pendingImageElementId: string | null;
350
- showHyperlinkPopup: false | "editor" | "info";
351
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
344
+ showHyperlinkPopup: false | "info" | "editor";
345
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
352
346
  snapLines: readonly import("../snapping").SnapLine[];
353
347
  originSnapOffset: {
354
348
  x: number;
@@ -359,16 +353,10 @@ export declare const actionAddToLibrary: {
359
353
  followedBy: Set<import("../types").SocketId>;
360
354
  isCropping: boolean;
361
355
  croppingElementId: string | null;
362
- searchMatches: readonly {
363
- id: string;
364
- focus: boolean;
365
- matchedLines: {
366
- offsetX: number;
367
- offsetY: number;
368
- width: number;
369
- height: number;
370
- }[];
371
- }[];
356
+ searchMatches: Readonly<{
357
+ focusedId: string | null;
358
+ matches: readonly import("../types").SearchMatch[];
359
+ }> | null;
372
360
  };
373
361
  }> | {
374
362
  captureUpdate: "EVENTUALLY";
@@ -382,9 +370,9 @@ export declare const actionAddToLibrary: {
382
370
  showWelcomeScreen: boolean;
383
371
  isLoading: boolean;
384
372
  myocSimplifiedMode: boolean;
373
+ dontResizeLimitMBs: number;
385
374
  hideMainMenus: boolean;
386
375
  wheelZoomsOnDefault?: boolean | undefined;
387
- dontResizeLimitMBs: number;
388
376
  arrangeConfiguration: {
389
377
  algorithm: "bin-packing";
390
378
  gap: number;
@@ -399,7 +387,7 @@ export declare const actionAddToLibrary: {
399
387
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
400
388
  isBindingEnabled: boolean;
401
389
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
402
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
390
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
403
391
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
404
392
  frameRendering: {
405
393
  enabled: boolean;
@@ -410,7 +398,7 @@ export declare const actionAddToLibrary: {
410
398
  editingFrame: string | null;
411
399
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
412
400
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
413
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
401
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
414
402
  activeTool: {
415
403
  lastActiveTool: import("../types").ActiveTool | null;
416
404
  locked: boolean;
@@ -448,7 +436,7 @@ export declare const actionAddToLibrary: {
448
436
  zoom: Readonly<{
449
437
  value: import("../types").NormalizedZoomValue;
450
438
  }>;
451
- openMenu: "shape" | "canvas" | null;
439
+ openMenu: "canvas" | "shape" | null;
452
440
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
453
441
  openSidebar: {
454
442
  name: string;
@@ -531,8 +519,8 @@ export declare const actionAddToLibrary: {
531
519
  data: import("../charts").Spreadsheet;
532
520
  };
533
521
  pendingImageElementId: string | null;
534
- showHyperlinkPopup: false | "editor" | "info";
535
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
522
+ showHyperlinkPopup: false | "info" | "editor";
523
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
536
524
  snapLines: readonly import("../snapping").SnapLine[];
537
525
  originSnapOffset: {
538
526
  x: number;
@@ -543,16 +531,10 @@ export declare const actionAddToLibrary: {
543
531
  followedBy: Set<import("../types").SocketId>;
544
532
  isCropping: boolean;
545
533
  croppingElementId: string | null;
546
- searchMatches: readonly {
547
- id: string;
548
- focus: boolean;
549
- matchedLines: {
550
- offsetX: number;
551
- offsetY: number;
552
- width: number;
553
- height: number;
554
- }[];
555
- }[];
534
+ searchMatches: Readonly<{
535
+ focusedId: string | null;
536
+ matches: readonly import("../types").SearchMatch[];
537
+ }> | null;
556
538
  };
557
539
  };
558
540
  label: string;
@@ -15,10 +15,10 @@ export declare const actionAlignTop: {
15
15
  elements: ExcalidrawElement[];
16
16
  captureUpdate: "IMMEDIATELY";
17
17
  };
18
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
18
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
19
19
  PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
20
20
  } & {
21
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
21
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
22
22
  };
23
23
  export declare const actionAlignBottom: {
24
24
  name: "alignBottom";
@@ -33,10 +33,10 @@ export declare const actionAlignBottom: {
33
33
  elements: ExcalidrawElement[];
34
34
  captureUpdate: "IMMEDIATELY";
35
35
  };
36
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
36
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
37
37
  PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
38
38
  } & {
39
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
39
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
40
40
  };
41
41
  export declare const actionAlignLeft: {
42
42
  name: "alignLeft";
@@ -51,10 +51,10 @@ export declare const actionAlignLeft: {
51
51
  elements: ExcalidrawElement[];
52
52
  captureUpdate: "IMMEDIATELY";
53
53
  };
54
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
54
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
55
55
  PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
56
56
  } & {
57
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
57
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
58
58
  };
59
59
  export declare const actionAlignRight: {
60
60
  name: "alignRight";
@@ -69,10 +69,10 @@ export declare const actionAlignRight: {
69
69
  elements: ExcalidrawElement[];
70
70
  captureUpdate: "IMMEDIATELY";
71
71
  };
72
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
72
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
73
73
  PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
74
74
  } & {
75
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
75
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
76
76
  };
77
77
  export declare const actionAlignVerticallyCentered: {
78
78
  name: "alignVerticallyCentered";
@@ -23,8 +23,8 @@ export declare const actionArrangeElements: {
23
23
  elements: ExcalidrawElement[];
24
24
  captureUpdate: "IMMEDIATELY";
25
25
  };
26
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
26
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
27
27
  PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
28
28
  } & {
29
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
29
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
30
30
  };
@@ -38,9 +38,9 @@ export declare const actionBindText: {
38
38
  showWelcomeScreen: boolean;
39
39
  isLoading: boolean;
40
40
  myocSimplifiedMode: boolean;
41
+ dontResizeLimitMBs: number;
41
42
  hideMainMenus: boolean;
42
43
  wheelZoomsOnDefault?: boolean | undefined;
43
- dontResizeLimitMBs: number;
44
44
  arrangeConfiguration: {
45
45
  algorithm: "bin-packing";
46
46
  gap: number;
@@ -56,7 +56,7 @@ export declare const actionBindText: {
56
56
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
57
57
  isBindingEnabled: boolean;
58
58
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
59
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
59
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
60
60
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
61
61
  frameRendering: {
62
62
  enabled: boolean;
@@ -67,7 +67,7 @@ export declare const actionBindText: {
67
67
  editingFrame: string | null;
68
68
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
69
69
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
70
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
70
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
71
71
  activeTool: {
72
72
  lastActiveTool: import("../types").ActiveTool | null;
73
73
  locked: boolean;
@@ -105,7 +105,7 @@ export declare const actionBindText: {
105
105
  zoom: Readonly<{
106
106
  value: import("../types").NormalizedZoomValue;
107
107
  }>;
108
- openMenu: "shape" | "canvas" | null;
108
+ openMenu: "canvas" | "shape" | null;
109
109
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
110
110
  openSidebar: {
111
111
  name: string;
@@ -185,8 +185,8 @@ export declare const actionBindText: {
185
185
  data: import("../charts").Spreadsheet;
186
186
  };
187
187
  pendingImageElementId: string | null;
188
- showHyperlinkPopup: false | "editor" | "info";
189
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
188
+ showHyperlinkPopup: false | "info" | "editor";
189
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
190
190
  snapLines: readonly import("../snapping").SnapLine[];
191
191
  originSnapOffset: {
192
192
  x: number;
@@ -197,16 +197,10 @@ export declare const actionBindText: {
197
197
  followedBy: Set<import("../types").SocketId>;
198
198
  isCropping: boolean;
199
199
  croppingElementId: string | null;
200
- searchMatches: readonly {
201
- id: string;
202
- focus: boolean;
203
- matchedLines: {
204
- offsetX: number;
205
- offsetY: number;
206
- width: number;
207
- height: number;
208
- }[];
209
- }[];
200
+ searchMatches: Readonly<{
201
+ focusedId: string | null;
202
+ matches: readonly import("../types").SearchMatch[];
203
+ }> | null;
210
204
  };
211
205
  captureUpdate: "IMMEDIATELY";
212
206
  };
@@ -234,9 +228,9 @@ export declare const actionWrapTextInContainer: {
234
228
  showWelcomeScreen: boolean;
235
229
  isLoading: boolean;
236
230
  myocSimplifiedMode: boolean;
231
+ dontResizeLimitMBs: number;
237
232
  hideMainMenus: boolean;
238
233
  wheelZoomsOnDefault?: boolean | undefined;
239
- dontResizeLimitMBs: number;
240
234
  arrangeConfiguration: {
241
235
  algorithm: "bin-packing";
242
236
  gap: number;
@@ -252,7 +246,7 @@ export declare const actionWrapTextInContainer: {
252
246
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
253
247
  isBindingEnabled: boolean;
254
248
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
255
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
249
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
256
250
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
257
251
  frameRendering: {
258
252
  enabled: boolean;
@@ -263,7 +257,7 @@ export declare const actionWrapTextInContainer: {
263
257
  editingFrame: string | null;
264
258
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
265
259
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
266
- editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
260
+ editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
267
261
  activeTool: {
268
262
  lastActiveTool: import("../types").ActiveTool | null;
269
263
  locked: boolean;
@@ -301,7 +295,7 @@ export declare const actionWrapTextInContainer: {
301
295
  zoom: Readonly<{
302
296
  value: import("../types").NormalizedZoomValue;
303
297
  }>;
304
- openMenu: "shape" | "canvas" | null;
298
+ openMenu: "canvas" | "shape" | null;
305
299
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
306
300
  openSidebar: {
307
301
  name: string;
@@ -381,8 +375,8 @@ export declare const actionWrapTextInContainer: {
381
375
  data: import("../charts").Spreadsheet;
382
376
  };
383
377
  pendingImageElementId: string | null;
384
- showHyperlinkPopup: false | "editor" | "info";
385
- selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
378
+ showHyperlinkPopup: false | "info" | "editor";
379
+ selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
386
380
  snapLines: readonly import("../snapping").SnapLine[];
387
381
  originSnapOffset: {
388
382
  x: number;
@@ -393,16 +387,10 @@ export declare const actionWrapTextInContainer: {
393
387
  followedBy: Set<import("../types").SocketId>;
394
388
  isCropping: boolean;
395
389
  croppingElementId: string | null;
396
- searchMatches: readonly {
397
- id: string;
398
- focus: boolean;
399
- matchedLines: {
400
- offsetX: number;
401
- offsetY: number;
402
- width: number;
403
- height: number;
404
- }[];
405
- }[];
390
+ searchMatches: Readonly<{
391
+ focusedId: string | null;
392
+ matches: readonly import("../types").SearchMatch[];
393
+ }> | null;
406
394
  };
407
395
  captureUpdate: "IMMEDIATELY";
408
396
  };