@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,15 +1,15 @@
1
1
  /// <reference types="react" />
2
- import { LinearElementEditor } from "@excalidraw/element/linearElementEditor";
2
+ import { LinearElementEditor } from "@excalidraw/element";
3
3
  import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement } from "@excalidraw/element/types";
4
4
  import type { AppClassProperties, AppState, Primitive } from "../types";
5
5
  export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: ExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
6
- export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], appState: AppState, getAttribute: (element: ExcalidrawElement) => T, isRelevantElement: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
6
+ export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], app: AppClassProperties, getAttribute: (element: ExcalidrawElement) => T, isRelevantElement: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
7
7
  export declare const actionChangeStrokeColor: {
8
8
  name: "changeStrokeColor";
9
9
  label: string;
10
10
  trackEvent: false;
11
11
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
12
- PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
12
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
13
13
  } & {
14
14
  keyTest?: undefined;
15
15
  };
@@ -18,7 +18,7 @@ export declare const actionChangeBackgroundColor: {
18
18
  label: string;
19
19
  trackEvent: false;
20
20
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
21
- PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
21
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
22
22
  } & {
23
23
  keyTest?: undefined;
24
24
  };
@@ -56,7 +56,7 @@ export declare const actionChangeFillStyle: {
56
56
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
57
57
  isBindingEnabled: boolean;
58
58
  startBoundElement: import("@excalidraw/element/types").NonDeleted<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;
@@ -104,7 +104,7 @@ export declare const actionChangeFillStyle: {
104
104
  zoom: Readonly<{
105
105
  value: import("../types").NormalizedZoomValue;
106
106
  }>;
107
- openMenu: "shape" | "canvas" | null;
107
+ openMenu: "canvas" | "shape" | null;
108
108
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
109
109
  openSidebar: {
110
110
  name: string;
@@ -187,7 +187,7 @@ export declare const actionChangeFillStyle: {
187
187
  data: import("../charts").Spreadsheet;
188
188
  };
189
189
  pendingImageElementId: string | null;
190
- showHyperlinkPopup: false | "editor" | "info";
190
+ showHyperlinkPopup: false | "info" | "editor";
191
191
  selectedLinearElement: LinearElementEditor | null;
192
192
  snapLines: readonly import("../snapping").SnapLine[];
193
193
  originSnapOffset: {
@@ -199,20 +199,14 @@ export declare const actionChangeFillStyle: {
199
199
  followedBy: Set<import("../types").SocketId>;
200
200
  isCropping: boolean;
201
201
  croppingElementId: string | null;
202
- searchMatches: readonly {
203
- id: string;
204
- focus: boolean;
205
- matchedLines: {
206
- offsetX: number;
207
- offsetY: number;
208
- width: number;
209
- height: number;
210
- }[];
211
- }[];
202
+ searchMatches: Readonly<{
203
+ focusedId: string | null;
204
+ matches: readonly import("../types").SearchMatch[];
205
+ }> | null;
212
206
  };
213
207
  captureUpdate: "IMMEDIATELY";
214
208
  };
215
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
209
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
216
210
  } & {
217
211
  keyTest?: undefined;
218
212
  };
@@ -250,7 +244,7 @@ export declare const actionChangeStrokeWidth: {
250
244
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
251
245
  isBindingEnabled: boolean;
252
246
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
253
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
247
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
254
248
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
255
249
  frameRendering: {
256
250
  enabled: boolean;
@@ -298,7 +292,7 @@ export declare const actionChangeStrokeWidth: {
298
292
  zoom: Readonly<{
299
293
  value: import("../types").NormalizedZoomValue;
300
294
  }>;
301
- openMenu: "shape" | "canvas" | null;
295
+ openMenu: "canvas" | "shape" | null;
302
296
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
303
297
  openSidebar: {
304
298
  name: string;
@@ -381,7 +375,7 @@ export declare const actionChangeStrokeWidth: {
381
375
  data: import("../charts").Spreadsheet;
382
376
  };
383
377
  pendingImageElementId: string | null;
384
- showHyperlinkPopup: false | "editor" | "info";
378
+ showHyperlinkPopup: false | "info" | "editor";
385
379
  selectedLinearElement: LinearElementEditor | null;
386
380
  snapLines: readonly import("../snapping").SnapLine[];
387
381
  originSnapOffset: {
@@ -393,20 +387,14 @@ export declare const actionChangeStrokeWidth: {
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
  };
409
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
397
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
410
398
  } & {
411
399
  keyTest?: undefined;
412
400
  };
@@ -444,7 +432,7 @@ export declare const actionChangeSloppiness: {
444
432
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
445
433
  isBindingEnabled: boolean;
446
434
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
447
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
435
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
448
436
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
449
437
  frameRendering: {
450
438
  enabled: boolean;
@@ -492,7 +480,7 @@ export declare const actionChangeSloppiness: {
492
480
  zoom: Readonly<{
493
481
  value: import("../types").NormalizedZoomValue;
494
482
  }>;
495
- openMenu: "shape" | "canvas" | null;
483
+ openMenu: "canvas" | "shape" | null;
496
484
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
497
485
  openSidebar: {
498
486
  name: string;
@@ -575,7 +563,7 @@ export declare const actionChangeSloppiness: {
575
563
  data: import("../charts").Spreadsheet;
576
564
  };
577
565
  pendingImageElementId: string | null;
578
- showHyperlinkPopup: false | "editor" | "info";
566
+ showHyperlinkPopup: false | "info" | "editor";
579
567
  selectedLinearElement: LinearElementEditor | null;
580
568
  snapLines: readonly import("../snapping").SnapLine[];
581
569
  originSnapOffset: {
@@ -587,20 +575,14 @@ export declare const actionChangeSloppiness: {
587
575
  followedBy: Set<import("../types").SocketId>;
588
576
  isCropping: boolean;
589
577
  croppingElementId: string | null;
590
- searchMatches: readonly {
591
- id: string;
592
- focus: boolean;
593
- matchedLines: {
594
- offsetX: number;
595
- offsetY: number;
596
- width: number;
597
- height: number;
598
- }[];
599
- }[];
578
+ searchMatches: Readonly<{
579
+ focusedId: string | null;
580
+ matches: readonly import("../types").SearchMatch[];
581
+ }> | null;
600
582
  };
601
583
  captureUpdate: "IMMEDIATELY";
602
584
  };
603
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
585
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
604
586
  } & {
605
587
  keyTest?: undefined;
606
588
  };
@@ -638,7 +620,7 @@ export declare const actionChangeStrokeStyle: {
638
620
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
639
621
  isBindingEnabled: boolean;
640
622
  startBoundElement: import("@excalidraw/element/types").NonDeleted<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;
@@ -686,7 +668,7 @@ export declare const actionChangeStrokeStyle: {
686
668
  zoom: Readonly<{
687
669
  value: import("../types").NormalizedZoomValue;
688
670
  }>;
689
- openMenu: "shape" | "canvas" | null;
671
+ openMenu: "canvas" | "shape" | null;
690
672
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
691
673
  openSidebar: {
692
674
  name: string;
@@ -769,7 +751,7 @@ export declare const actionChangeStrokeStyle: {
769
751
  data: import("../charts").Spreadsheet;
770
752
  };
771
753
  pendingImageElementId: string | null;
772
- showHyperlinkPopup: false | "editor" | "info";
754
+ showHyperlinkPopup: false | "info" | "editor";
773
755
  selectedLinearElement: LinearElementEditor | null;
774
756
  snapLines: readonly import("../snapping").SnapLine[];
775
757
  originSnapOffset: {
@@ -781,20 +763,14 @@ export declare const actionChangeStrokeStyle: {
781
763
  followedBy: Set<import("../types").SocketId>;
782
764
  isCropping: boolean;
783
765
  croppingElementId: string | null;
784
- searchMatches: readonly {
785
- id: string;
786
- focus: boolean;
787
- matchedLines: {
788
- offsetX: number;
789
- offsetY: number;
790
- width: number;
791
- height: number;
792
- }[];
793
- }[];
766
+ searchMatches: Readonly<{
767
+ focusedId: string | null;
768
+ matches: readonly import("../types").SearchMatch[];
769
+ }> | null;
794
770
  };
795
771
  captureUpdate: "IMMEDIATELY";
796
772
  };
797
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
773
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
798
774
  } & {
799
775
  keyTest?: undefined;
800
776
  };
@@ -832,7 +808,7 @@ export declare const actionChangeOpacity: {
832
808
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
833
809
  isBindingEnabled: boolean;
834
810
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
835
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
811
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
836
812
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
837
813
  frameRendering: {
838
814
  enabled: boolean;
@@ -880,7 +856,7 @@ export declare const actionChangeOpacity: {
880
856
  zoom: Readonly<{
881
857
  value: import("../types").NormalizedZoomValue;
882
858
  }>;
883
- openMenu: "shape" | "canvas" | null;
859
+ openMenu: "canvas" | "shape" | null;
884
860
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
885
861
  openSidebar: {
886
862
  name: string;
@@ -963,7 +939,7 @@ export declare const actionChangeOpacity: {
963
939
  data: import("../charts").Spreadsheet;
964
940
  };
965
941
  pendingImageElementId: string | null;
966
- showHyperlinkPopup: false | "editor" | "info";
942
+ showHyperlinkPopup: false | "info" | "editor";
967
943
  selectedLinearElement: LinearElementEditor | null;
968
944
  snapLines: readonly import("../snapping").SnapLine[];
969
945
  originSnapOffset: {
@@ -975,20 +951,14 @@ export declare const actionChangeOpacity: {
975
951
  followedBy: Set<import("../types").SocketId>;
976
952
  isCropping: boolean;
977
953
  croppingElementId: string | null;
978
- searchMatches: readonly {
979
- id: string;
980
- focus: boolean;
981
- matchedLines: {
982
- offsetX: number;
983
- offsetY: number;
984
- width: number;
985
- height: number;
986
- }[];
987
- }[];
954
+ searchMatches: Readonly<{
955
+ focusedId: string | null;
956
+ matches: readonly import("../types").SearchMatch[];
957
+ }> | null;
988
958
  };
989
959
  captureUpdate: "IMMEDIATELY";
990
960
  };
991
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
961
+ PanelComponent: ({ app, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
992
962
  } & {
993
963
  keyTest?: undefined;
994
964
  };
@@ -1026,7 +996,7 @@ export declare const actionChangeFontSize: {
1026
996
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1027
997
  isBindingEnabled: boolean;
1028
998
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1029
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
999
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1030
1000
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1031
1001
  frameRendering: {
1032
1002
  enabled: boolean;
@@ -1074,7 +1044,7 @@ export declare const actionChangeFontSize: {
1074
1044
  zoom: Readonly<{
1075
1045
  value: import("../types").NormalizedZoomValue;
1076
1046
  }>;
1077
- openMenu: "shape" | "canvas" | null;
1047
+ openMenu: "canvas" | "shape" | null;
1078
1048
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1079
1049
  openSidebar: {
1080
1050
  name: string;
@@ -1157,7 +1127,7 @@ export declare const actionChangeFontSize: {
1157
1127
  data: import("../charts").Spreadsheet;
1158
1128
  };
1159
1129
  pendingImageElementId: string | null;
1160
- showHyperlinkPopup: false | "editor" | "info";
1130
+ showHyperlinkPopup: false | "info" | "editor";
1161
1131
  selectedLinearElement: LinearElementEditor | null;
1162
1132
  snapLines: readonly import("../snapping").SnapLine[];
1163
1133
  originSnapOffset: {
@@ -1169,16 +1139,10 @@ export declare const actionChangeFontSize: {
1169
1139
  followedBy: Set<import("../types").SocketId>;
1170
1140
  isCropping: boolean;
1171
1141
  croppingElementId: string | null;
1172
- searchMatches: readonly {
1173
- id: string;
1174
- focus: boolean;
1175
- matchedLines: {
1176
- offsetX: number;
1177
- offsetY: number;
1178
- width: number;
1179
- height: number;
1180
- }[];
1181
- }[];
1142
+ searchMatches: Readonly<{
1143
+ focusedId: string | null;
1144
+ matches: readonly import("../types").SearchMatch[];
1145
+ }> | null;
1182
1146
  };
1183
1147
  captureUpdate: "IMMEDIATELY";
1184
1148
  };
@@ -1221,7 +1185,7 @@ export declare const actionDecreaseFontSize: {
1221
1185
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1222
1186
  isBindingEnabled: boolean;
1223
1187
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1224
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1188
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1225
1189
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1226
1190
  frameRendering: {
1227
1191
  enabled: boolean;
@@ -1269,7 +1233,7 @@ export declare const actionDecreaseFontSize: {
1269
1233
  zoom: Readonly<{
1270
1234
  value: import("../types").NormalizedZoomValue;
1271
1235
  }>;
1272
- openMenu: "shape" | "canvas" | null;
1236
+ openMenu: "canvas" | "shape" | null;
1273
1237
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1274
1238
  openSidebar: {
1275
1239
  name: string;
@@ -1352,7 +1316,7 @@ export declare const actionDecreaseFontSize: {
1352
1316
  data: import("../charts").Spreadsheet;
1353
1317
  };
1354
1318
  pendingImageElementId: string | null;
1355
- showHyperlinkPopup: false | "editor" | "info";
1319
+ showHyperlinkPopup: false | "info" | "editor";
1356
1320
  selectedLinearElement: LinearElementEditor | null;
1357
1321
  snapLines: readonly import("../snapping").SnapLine[];
1358
1322
  originSnapOffset: {
@@ -1364,22 +1328,16 @@ export declare const actionDecreaseFontSize: {
1364
1328
  followedBy: Set<import("../types").SocketId>;
1365
1329
  isCropping: boolean;
1366
1330
  croppingElementId: string | null;
1367
- searchMatches: readonly {
1368
- id: string;
1369
- focus: boolean;
1370
- matchedLines: {
1371
- offsetX: number;
1372
- offsetY: number;
1373
- width: number;
1374
- height: number;
1375
- }[];
1376
- }[];
1331
+ searchMatches: Readonly<{
1332
+ focusedId: string | null;
1333
+ matches: readonly import("../types").SearchMatch[];
1334
+ }> | null;
1377
1335
  };
1378
1336
  captureUpdate: "IMMEDIATELY";
1379
1337
  };
1380
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1338
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1381
1339
  } & {
1382
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1340
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1383
1341
  };
1384
1342
  export declare const actionIncreaseFontSize: {
1385
1343
  name: "increaseFontSize";
@@ -1416,7 +1374,7 @@ export declare const actionIncreaseFontSize: {
1416
1374
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1417
1375
  isBindingEnabled: boolean;
1418
1376
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1419
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1377
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1420
1378
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1421
1379
  frameRendering: {
1422
1380
  enabled: boolean;
@@ -1464,7 +1422,7 @@ export declare const actionIncreaseFontSize: {
1464
1422
  zoom: Readonly<{
1465
1423
  value: import("../types").NormalizedZoomValue;
1466
1424
  }>;
1467
- openMenu: "shape" | "canvas" | null;
1425
+ openMenu: "canvas" | "shape" | null;
1468
1426
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1469
1427
  openSidebar: {
1470
1428
  name: string;
@@ -1547,7 +1505,7 @@ export declare const actionIncreaseFontSize: {
1547
1505
  data: import("../charts").Spreadsheet;
1548
1506
  };
1549
1507
  pendingImageElementId: string | null;
1550
- showHyperlinkPopup: false | "editor" | "info";
1508
+ showHyperlinkPopup: false | "info" | "editor";
1551
1509
  selectedLinearElement: LinearElementEditor | null;
1552
1510
  snapLines: readonly import("../snapping").SnapLine[];
1553
1511
  originSnapOffset: {
@@ -1559,22 +1517,16 @@ export declare const actionIncreaseFontSize: {
1559
1517
  followedBy: Set<import("../types").SocketId>;
1560
1518
  isCropping: boolean;
1561
1519
  croppingElementId: string | null;
1562
- searchMatches: readonly {
1563
- id: string;
1564
- focus: boolean;
1565
- matchedLines: {
1566
- offsetX: number;
1567
- offsetY: number;
1568
- width: number;
1569
- height: number;
1570
- }[];
1571
- }[];
1520
+ searchMatches: Readonly<{
1521
+ focusedId: string | null;
1522
+ matches: readonly import("../types").SearchMatch[];
1523
+ }> | null;
1572
1524
  };
1573
1525
  captureUpdate: "IMMEDIATELY";
1574
1526
  };
1575
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1527
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1576
1528
  } & {
1577
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1529
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1578
1530
  };
1579
1531
  export declare const actionChangeFontFamily: {
1580
1532
  name: "changeFontFamily";
@@ -1582,8 +1534,8 @@ export declare const actionChangeFontFamily: {
1582
1534
  trackEvent: false;
1583
1535
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1584
1536
  appState: {
1585
- currentHoveredFontFamily: number | null;
1586
1537
  currentItemFontFamily: number;
1538
+ currentHoveredFontFamily: number | null;
1587
1539
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1588
1540
  contextMenu: {
1589
1541
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -1611,7 +1563,7 @@ export declare const actionChangeFontFamily: {
1611
1563
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1612
1564
  isBindingEnabled: boolean;
1613
1565
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1614
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1566
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1615
1567
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1616
1568
  frameRendering: {
1617
1569
  enabled: boolean;
@@ -1658,7 +1610,7 @@ export declare const actionChangeFontFamily: {
1658
1610
  zoom: Readonly<{
1659
1611
  value: import("../types").NormalizedZoomValue;
1660
1612
  }>;
1661
- openMenu: "shape" | "canvas" | null;
1613
+ openMenu: "canvas" | "shape" | null;
1662
1614
  openSidebar: {
1663
1615
  name: string;
1664
1616
  tab?: string | undefined;
@@ -1740,7 +1692,7 @@ export declare const actionChangeFontFamily: {
1740
1692
  data: import("../charts").Spreadsheet;
1741
1693
  };
1742
1694
  pendingImageElementId: string | null;
1743
- showHyperlinkPopup: false | "editor" | "info";
1695
+ showHyperlinkPopup: false | "info" | "editor";
1744
1696
  selectedLinearElement: LinearElementEditor | null;
1745
1697
  snapLines: readonly import("../snapping").SnapLine[];
1746
1698
  originSnapOffset: {
@@ -1752,23 +1704,17 @@ export declare const actionChangeFontFamily: {
1752
1704
  followedBy: Set<import("../types").SocketId>;
1753
1705
  isCropping: boolean;
1754
1706
  croppingElementId: string | null;
1755
- searchMatches: readonly {
1756
- id: string;
1757
- focus: boolean;
1758
- matchedLines: {
1759
- offsetX: number;
1760
- offsetY: number;
1761
- width: number;
1762
- height: number;
1763
- }[];
1764
- }[];
1707
+ searchMatches: Readonly<{
1708
+ focusedId: string | null;
1709
+ matches: readonly import("../types").SearchMatch[];
1710
+ }> | null;
1765
1711
  };
1766
1712
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
1767
1713
  } | {
1768
1714
  elements: ExcalidrawElement[];
1769
1715
  appState: {
1770
- currentHoveredFontFamily: number | null;
1771
1716
  currentItemFontFamily: number;
1717
+ currentHoveredFontFamily: number | null;
1772
1718
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1773
1719
  contextMenu: {
1774
1720
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -1796,7 +1742,7 @@ export declare const actionChangeFontFamily: {
1796
1742
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1797
1743
  isBindingEnabled: boolean;
1798
1744
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1799
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1745
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1800
1746
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1801
1747
  frameRendering: {
1802
1748
  enabled: boolean;
@@ -1843,7 +1789,7 @@ export declare const actionChangeFontFamily: {
1843
1789
  zoom: Readonly<{
1844
1790
  value: import("../types").NormalizedZoomValue;
1845
1791
  }>;
1846
- openMenu: "shape" | "canvas" | null;
1792
+ openMenu: "canvas" | "shape" | null;
1847
1793
  openSidebar: {
1848
1794
  name: string;
1849
1795
  tab?: string | undefined;
@@ -1925,7 +1871,7 @@ export declare const actionChangeFontFamily: {
1925
1871
  data: import("../charts").Spreadsheet;
1926
1872
  };
1927
1873
  pendingImageElementId: string | null;
1928
- showHyperlinkPopup: false | "editor" | "info";
1874
+ showHyperlinkPopup: false | "info" | "editor";
1929
1875
  selectedLinearElement: LinearElementEditor | null;
1930
1876
  snapLines: readonly import("../snapping").SnapLine[];
1931
1877
  originSnapOffset: {
@@ -1937,16 +1883,10 @@ export declare const actionChangeFontFamily: {
1937
1883
  followedBy: Set<import("../types").SocketId>;
1938
1884
  isCropping: boolean;
1939
1885
  croppingElementId: string | null;
1940
- searchMatches: readonly {
1941
- id: string;
1942
- focus: boolean;
1943
- matchedLines: {
1944
- offsetX: number;
1945
- offsetY: number;
1946
- width: number;
1947
- height: number;
1948
- }[];
1949
- }[];
1886
+ searchMatches: Readonly<{
1887
+ focusedId: string | null;
1888
+ matches: readonly import("../types").SearchMatch[];
1889
+ }> | null;
1950
1890
  };
1951
1891
  captureUpdate: "NEVER";
1952
1892
  };
@@ -1988,7 +1928,7 @@ export declare const actionChangeTextAlign: {
1988
1928
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1989
1929
  isBindingEnabled: boolean;
1990
1930
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1991
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1931
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1992
1932
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1993
1933
  frameRendering: {
1994
1934
  enabled: boolean;
@@ -2036,7 +1976,7 @@ export declare const actionChangeTextAlign: {
2036
1976
  zoom: Readonly<{
2037
1977
  value: import("../types").NormalizedZoomValue;
2038
1978
  }>;
2039
- openMenu: "shape" | "canvas" | null;
1979
+ openMenu: "canvas" | "shape" | null;
2040
1980
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2041
1981
  openSidebar: {
2042
1982
  name: string;
@@ -2119,7 +2059,7 @@ export declare const actionChangeTextAlign: {
2119
2059
  data: import("../charts").Spreadsheet;
2120
2060
  };
2121
2061
  pendingImageElementId: string | null;
2122
- showHyperlinkPopup: false | "editor" | "info";
2062
+ showHyperlinkPopup: false | "info" | "editor";
2123
2063
  selectedLinearElement: LinearElementEditor | null;
2124
2064
  snapLines: readonly import("../snapping").SnapLine[];
2125
2065
  originSnapOffset: {
@@ -2131,16 +2071,10 @@ export declare const actionChangeTextAlign: {
2131
2071
  followedBy: Set<import("../types").SocketId>;
2132
2072
  isCropping: boolean;
2133
2073
  croppingElementId: string | null;
2134
- searchMatches: readonly {
2135
- id: string;
2136
- focus: boolean;
2137
- matchedLines: {
2138
- offsetX: number;
2139
- offsetY: number;
2140
- width: number;
2141
- height: number;
2142
- }[];
2143
- }[];
2074
+ searchMatches: Readonly<{
2075
+ focusedId: string | null;
2076
+ matches: readonly import("../types").SearchMatch[];
2077
+ }> | null;
2144
2078
  };
2145
2079
  captureUpdate: "IMMEDIATELY";
2146
2080
  };
@@ -2183,7 +2117,7 @@ export declare const actionChangeVerticalAlign: {
2183
2117
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2184
2118
  isBindingEnabled: boolean;
2185
2119
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2186
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
2120
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2187
2121
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2188
2122
  frameRendering: {
2189
2123
  enabled: boolean;
@@ -2232,7 +2166,7 @@ export declare const actionChangeVerticalAlign: {
2232
2166
  zoom: Readonly<{
2233
2167
  value: import("../types").NormalizedZoomValue;
2234
2168
  }>;
2235
- openMenu: "shape" | "canvas" | null;
2169
+ openMenu: "canvas" | "shape" | null;
2236
2170
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2237
2171
  openSidebar: {
2238
2172
  name: string;
@@ -2315,7 +2249,7 @@ export declare const actionChangeVerticalAlign: {
2315
2249
  data: import("../charts").Spreadsheet;
2316
2250
  };
2317
2251
  pendingImageElementId: string | null;
2318
- showHyperlinkPopup: false | "editor" | "info";
2252
+ showHyperlinkPopup: false | "info" | "editor";
2319
2253
  selectedLinearElement: LinearElementEditor | null;
2320
2254
  snapLines: readonly import("../snapping").SnapLine[];
2321
2255
  originSnapOffset: {
@@ -2327,16 +2261,10 @@ export declare const actionChangeVerticalAlign: {
2327
2261
  followedBy: Set<import("../types").SocketId>;
2328
2262
  isCropping: boolean;
2329
2263
  croppingElementId: string | null;
2330
- searchMatches: readonly {
2331
- id: string;
2332
- focus: boolean;
2333
- matchedLines: {
2334
- offsetX: number;
2335
- offsetY: number;
2336
- width: number;
2337
- height: number;
2338
- }[];
2339
- }[];
2264
+ searchMatches: Readonly<{
2265
+ focusedId: string | null;
2266
+ matches: readonly import("../types").SearchMatch[];
2267
+ }> | null;
2340
2268
  };
2341
2269
  captureUpdate: "IMMEDIATELY";
2342
2270
  };
@@ -2378,7 +2306,7 @@ export declare const actionChangeRoundness: {
2378
2306
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2379
2307
  isBindingEnabled: boolean;
2380
2308
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2381
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
2309
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2382
2310
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2383
2311
  frameRendering: {
2384
2312
  enabled: boolean;
@@ -2426,7 +2354,7 @@ export declare const actionChangeRoundness: {
2426
2354
  zoom: Readonly<{
2427
2355
  value: import("../types").NormalizedZoomValue;
2428
2356
  }>;
2429
- openMenu: "shape" | "canvas" | null;
2357
+ openMenu: "canvas" | "shape" | null;
2430
2358
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2431
2359
  openSidebar: {
2432
2360
  name: string;
@@ -2509,7 +2437,7 @@ export declare const actionChangeRoundness: {
2509
2437
  data: import("../charts").Spreadsheet;
2510
2438
  };
2511
2439
  pendingImageElementId: string | null;
2512
- showHyperlinkPopup: false | "editor" | "info";
2440
+ showHyperlinkPopup: false | "info" | "editor";
2513
2441
  selectedLinearElement: LinearElementEditor | null;
2514
2442
  snapLines: readonly import("../snapping").SnapLine[];
2515
2443
  originSnapOffset: {
@@ -2521,20 +2449,14 @@ export declare const actionChangeRoundness: {
2521
2449
  followedBy: Set<import("../types").SocketId>;
2522
2450
  isCropping: boolean;
2523
2451
  croppingElementId: string | null;
2524
- searchMatches: readonly {
2525
- id: string;
2526
- focus: boolean;
2527
- matchedLines: {
2528
- offsetX: number;
2529
- offsetY: number;
2530
- width: number;
2531
- height: number;
2532
- }[];
2533
- }[];
2452
+ searchMatches: Readonly<{
2453
+ focusedId: string | null;
2454
+ matches: readonly import("../types").SearchMatch[];
2455
+ }> | null;
2534
2456
  };
2535
2457
  captureUpdate: "IMMEDIATELY";
2536
2458
  };
2537
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2459
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2538
2460
  } & {
2539
2461
  keyTest?: undefined;
2540
2462
  };
@@ -2574,7 +2496,7 @@ export declare const actionChangeArrowhead: {
2574
2496
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2575
2497
  isBindingEnabled: boolean;
2576
2498
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2577
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
2499
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2578
2500
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2579
2501
  frameRendering: {
2580
2502
  enabled: boolean;
@@ -2623,7 +2545,7 @@ export declare const actionChangeArrowhead: {
2623
2545
  zoom: Readonly<{
2624
2546
  value: import("../types").NormalizedZoomValue;
2625
2547
  }>;
2626
- openMenu: "shape" | "canvas" | null;
2548
+ openMenu: "canvas" | "shape" | null;
2627
2549
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2628
2550
  openSidebar: {
2629
2551
  name: string;
@@ -2706,7 +2628,7 @@ export declare const actionChangeArrowhead: {
2706
2628
  data: import("../charts").Spreadsheet;
2707
2629
  };
2708
2630
  pendingImageElementId: string | null;
2709
- showHyperlinkPopup: false | "editor" | "info";
2631
+ showHyperlinkPopup: false | "info" | "editor";
2710
2632
  selectedLinearElement: LinearElementEditor | null;
2711
2633
  snapLines: readonly import("../snapping").SnapLine[];
2712
2634
  originSnapOffset: {
@@ -2718,20 +2640,14 @@ export declare const actionChangeArrowhead: {
2718
2640
  followedBy: Set<import("../types").SocketId>;
2719
2641
  isCropping: boolean;
2720
2642
  croppingElementId: string | null;
2721
- searchMatches: readonly {
2722
- id: string;
2723
- focus: boolean;
2724
- matchedLines: {
2725
- offsetX: number;
2726
- offsetY: number;
2727
- width: number;
2728
- height: number;
2729
- }[];
2730
- }[];
2643
+ searchMatches: Readonly<{
2644
+ focusedId: string | null;
2645
+ matches: readonly import("../types").SearchMatch[];
2646
+ }> | null;
2731
2647
  };
2732
2648
  captureUpdate: "IMMEDIATELY";
2733
2649
  };
2734
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2650
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2735
2651
  } & {
2736
2652
  keyTest?: undefined;
2737
2653
  };
@@ -2769,7 +2685,7 @@ export declare const actionChangeArrowType: {
2769
2685
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2770
2686
  isBindingEnabled: boolean;
2771
2687
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2772
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
2688
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2773
2689
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2774
2690
  frameRendering: {
2775
2691
  enabled: boolean;
@@ -2817,7 +2733,7 @@ export declare const actionChangeArrowType: {
2817
2733
  zoom: Readonly<{
2818
2734
  value: import("../types").NormalizedZoomValue;
2819
2735
  }>;
2820
- openMenu: "shape" | "canvas" | null;
2736
+ openMenu: "canvas" | "shape" | null;
2821
2737
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2822
2738
  openSidebar: {
2823
2739
  name: string;
@@ -2900,7 +2816,7 @@ export declare const actionChangeArrowType: {
2900
2816
  data: import("../charts").Spreadsheet;
2901
2817
  };
2902
2818
  pendingImageElementId: string | null;
2903
- showHyperlinkPopup: false | "editor" | "info";
2819
+ showHyperlinkPopup: false | "info" | "editor";
2904
2820
  selectedLinearElement: LinearElementEditor | null;
2905
2821
  snapLines: readonly import("../snapping").SnapLine[];
2906
2822
  originSnapOffset: {
@@ -2912,20 +2828,14 @@ export declare const actionChangeArrowType: {
2912
2828
  followedBy: Set<import("../types").SocketId>;
2913
2829
  isCropping: boolean;
2914
2830
  croppingElementId: string | null;
2915
- searchMatches: readonly {
2916
- id: string;
2917
- focus: boolean;
2918
- matchedLines: {
2919
- offsetX: number;
2920
- offsetY: number;
2921
- width: number;
2922
- height: number;
2923
- }[];
2924
- }[];
2831
+ searchMatches: Readonly<{
2832
+ focusedId: string | null;
2833
+ matches: readonly import("../types").SearchMatch[];
2834
+ }> | null;
2925
2835
  };
2926
2836
  captureUpdate: "IMMEDIATELY";
2927
2837
  };
2928
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2838
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2929
2839
  } & {
2930
2840
  keyTest?: undefined;
2931
2841
  };