@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
@@ -1,14 +1,14 @@
1
- import { LinearElementEditor } from "@excalidraw/element/linearElementEditor";
1
+ import { LinearElementEditor } from "@excalidraw/element";
2
2
  import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement } from "@excalidraw/element/types";
3
3
  import type { AppClassProperties, AppState, Primitive } from "../types";
4
4
  export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: ExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
5
- 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;
5
+ 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;
6
6
  export declare const actionChangeStrokeColor: {
7
7
  name: "changeStrokeColor";
8
8
  label: string;
9
9
  trackEvent: false;
10
10
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => any;
11
- PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
11
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
12
12
  } & {
13
13
  keyTest?: undefined;
14
14
  };
@@ -17,7 +17,7 @@ export declare const actionChangeBackgroundColor: {
17
17
  label: string;
18
18
  trackEvent: false;
19
19
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
20
- PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
20
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
21
21
  } & {
22
22
  keyTest?: undefined;
23
23
  };
@@ -47,7 +47,7 @@ export declare const actionChangeFillStyle: {
47
47
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
48
48
  isBindingEnabled: boolean;
49
49
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
50
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
50
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
51
51
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
52
52
  frameRendering: {
53
53
  enabled: boolean;
@@ -178,7 +178,7 @@ export declare const actionChangeFillStyle: {
178
178
  data: import("../charts").Spreadsheet;
179
179
  };
180
180
  pendingImageElementId: string | null;
181
- showHyperlinkPopup: false | "editor" | "info";
181
+ showHyperlinkPopup: false | "info" | "editor";
182
182
  linkOpacity: number;
183
183
  trayModeEnabled: boolean;
184
184
  colorPalette?: {
@@ -226,20 +226,14 @@ export declare const actionChangeFillStyle: {
226
226
  followedBy: Set<import("../types").SocketId>;
227
227
  isCropping: boolean;
228
228
  croppingElementId: string | null;
229
- searchMatches: readonly {
230
- id: string;
231
- focus: boolean;
232
- matchedLines: {
233
- offsetX: number;
234
- offsetY: number;
235
- width: number;
236
- height: number;
237
- }[];
238
- }[];
229
+ searchMatches: Readonly<{
230
+ focusedId: string | null;
231
+ matches: readonly import("../types").SearchMatch[];
232
+ }> | null;
239
233
  };
240
234
  captureUpdate: "IMMEDIATELY";
241
235
  };
242
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
236
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
243
237
  } & {
244
238
  keyTest?: undefined;
245
239
  };
@@ -269,7 +263,7 @@ export declare const actionChangeStrokeWidth: {
269
263
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
270
264
  isBindingEnabled: boolean;
271
265
  startBoundElement: import("@excalidraw/element/types").NonDeleted<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;
@@ -400,7 +394,7 @@ export declare const actionChangeStrokeWidth: {
400
394
  data: import("../charts").Spreadsheet;
401
395
  };
402
396
  pendingImageElementId: string | null;
403
- showHyperlinkPopup: false | "editor" | "info";
397
+ showHyperlinkPopup: false | "info" | "editor";
404
398
  linkOpacity: number;
405
399
  trayModeEnabled: boolean;
406
400
  colorPalette?: {
@@ -448,20 +442,14 @@ export declare const actionChangeStrokeWidth: {
448
442
  followedBy: Set<import("../types").SocketId>;
449
443
  isCropping: boolean;
450
444
  croppingElementId: string | null;
451
- searchMatches: readonly {
452
- id: string;
453
- focus: boolean;
454
- matchedLines: {
455
- offsetX: number;
456
- offsetY: number;
457
- width: number;
458
- height: number;
459
- }[];
460
- }[];
445
+ searchMatches: Readonly<{
446
+ focusedId: string | null;
447
+ matches: readonly import("../types").SearchMatch[];
448
+ }> | null;
461
449
  };
462
450
  captureUpdate: "IMMEDIATELY";
463
451
  };
464
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
452
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
465
453
  } & {
466
454
  keyTest?: undefined;
467
455
  };
@@ -491,7 +479,7 @@ export declare const actionChangeSloppiness: {
491
479
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
492
480
  isBindingEnabled: boolean;
493
481
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
494
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
482
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
495
483
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
496
484
  frameRendering: {
497
485
  enabled: boolean;
@@ -622,7 +610,7 @@ export declare const actionChangeSloppiness: {
622
610
  data: import("../charts").Spreadsheet;
623
611
  };
624
612
  pendingImageElementId: string | null;
625
- showHyperlinkPopup: false | "editor" | "info";
613
+ showHyperlinkPopup: false | "info" | "editor";
626
614
  linkOpacity: number;
627
615
  trayModeEnabled: boolean;
628
616
  colorPalette?: {
@@ -670,20 +658,14 @@ export declare const actionChangeSloppiness: {
670
658
  followedBy: Set<import("../types").SocketId>;
671
659
  isCropping: boolean;
672
660
  croppingElementId: string | null;
673
- searchMatches: readonly {
674
- id: string;
675
- focus: boolean;
676
- matchedLines: {
677
- offsetX: number;
678
- offsetY: number;
679
- width: number;
680
- height: number;
681
- }[];
682
- }[];
661
+ searchMatches: Readonly<{
662
+ focusedId: string | null;
663
+ matches: readonly import("../types").SearchMatch[];
664
+ }> | null;
683
665
  };
684
666
  captureUpdate: "IMMEDIATELY";
685
667
  };
686
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
668
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
687
669
  } & {
688
670
  keyTest?: undefined;
689
671
  };
@@ -713,7 +695,7 @@ export declare const actionChangeStrokeStyle: {
713
695
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
714
696
  isBindingEnabled: boolean;
715
697
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
716
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
698
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
717
699
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
718
700
  frameRendering: {
719
701
  enabled: boolean;
@@ -844,7 +826,7 @@ export declare const actionChangeStrokeStyle: {
844
826
  data: import("../charts").Spreadsheet;
845
827
  };
846
828
  pendingImageElementId: string | null;
847
- showHyperlinkPopup: false | "editor" | "info";
829
+ showHyperlinkPopup: false | "info" | "editor";
848
830
  linkOpacity: number;
849
831
  trayModeEnabled: boolean;
850
832
  colorPalette?: {
@@ -892,20 +874,14 @@ export declare const actionChangeStrokeStyle: {
892
874
  followedBy: Set<import("../types").SocketId>;
893
875
  isCropping: boolean;
894
876
  croppingElementId: string | null;
895
- searchMatches: readonly {
896
- id: string;
897
- focus: boolean;
898
- matchedLines: {
899
- offsetX: number;
900
- offsetY: number;
901
- width: number;
902
- height: number;
903
- }[];
904
- }[];
877
+ searchMatches: Readonly<{
878
+ focusedId: string | null;
879
+ matches: readonly import("../types").SearchMatch[];
880
+ }> | null;
905
881
  };
906
882
  captureUpdate: "IMMEDIATELY";
907
883
  };
908
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
884
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
909
885
  } & {
910
886
  keyTest?: undefined;
911
887
  };
@@ -935,7 +911,7 @@ export declare const actionChangeOpacity: {
935
911
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
936
912
  isBindingEnabled: boolean;
937
913
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
938
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
914
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
939
915
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
940
916
  frameRendering: {
941
917
  enabled: boolean;
@@ -1066,7 +1042,7 @@ export declare const actionChangeOpacity: {
1066
1042
  data: import("../charts").Spreadsheet;
1067
1043
  };
1068
1044
  pendingImageElementId: string | null;
1069
- showHyperlinkPopup: false | "editor" | "info";
1045
+ showHyperlinkPopup: false | "info" | "editor";
1070
1046
  linkOpacity: number;
1071
1047
  trayModeEnabled: boolean;
1072
1048
  colorPalette?: {
@@ -1114,20 +1090,14 @@ export declare const actionChangeOpacity: {
1114
1090
  followedBy: Set<import("../types").SocketId>;
1115
1091
  isCropping: boolean;
1116
1092
  croppingElementId: string | null;
1117
- searchMatches: readonly {
1118
- id: string;
1119
- focus: boolean;
1120
- matchedLines: {
1121
- offsetX: number;
1122
- offsetY: number;
1123
- width: number;
1124
- height: number;
1125
- }[];
1126
- }[];
1093
+ searchMatches: Readonly<{
1094
+ focusedId: string | null;
1095
+ matches: readonly import("../types").SearchMatch[];
1096
+ }> | null;
1127
1097
  };
1128
1098
  captureUpdate: "IMMEDIATELY";
1129
1099
  };
1130
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
1100
+ PanelComponent: ({ app, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
1131
1101
  } & {
1132
1102
  keyTest?: undefined;
1133
1103
  };
@@ -1158,7 +1128,7 @@ export declare const actionChangeFontSize: {
1158
1128
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1159
1129
  isBindingEnabled: boolean;
1160
1130
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1161
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1131
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1162
1132
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1163
1133
  frameRendering: {
1164
1134
  enabled: boolean;
@@ -1289,7 +1259,7 @@ export declare const actionChangeFontSize: {
1289
1259
  data: import("../charts").Spreadsheet;
1290
1260
  };
1291
1261
  pendingImageElementId: string | null;
1292
- showHyperlinkPopup: false | "editor" | "info";
1262
+ showHyperlinkPopup: false | "info" | "editor";
1293
1263
  linkOpacity: number;
1294
1264
  trayModeEnabled: boolean;
1295
1265
  colorPalette?: {
@@ -1337,16 +1307,10 @@ export declare const actionChangeFontSize: {
1337
1307
  followedBy: Set<import("../types").SocketId>;
1338
1308
  isCropping: boolean;
1339
1309
  croppingElementId: string | null;
1340
- searchMatches: readonly {
1341
- id: string;
1342
- focus: boolean;
1343
- matchedLines: {
1344
- offsetX: number;
1345
- offsetY: number;
1346
- width: number;
1347
- height: number;
1348
- }[];
1349
- }[];
1310
+ searchMatches: Readonly<{
1311
+ focusedId: string | null;
1312
+ matches: readonly import("../types").SearchMatch[];
1313
+ }> | null;
1350
1314
  };
1351
1315
  captureUpdate: "IMMEDIATELY";
1352
1316
  };
@@ -1381,7 +1345,7 @@ export declare const actionDecreaseFontSize: {
1381
1345
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1382
1346
  isBindingEnabled: boolean;
1383
1347
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1384
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1348
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1385
1349
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1386
1350
  frameRendering: {
1387
1351
  enabled: boolean;
@@ -1512,7 +1476,7 @@ export declare const actionDecreaseFontSize: {
1512
1476
  data: import("../charts").Spreadsheet;
1513
1477
  };
1514
1478
  pendingImageElementId: string | null;
1515
- showHyperlinkPopup: false | "editor" | "info";
1479
+ showHyperlinkPopup: false | "info" | "editor";
1516
1480
  linkOpacity: number;
1517
1481
  trayModeEnabled: boolean;
1518
1482
  colorPalette?: {
@@ -1560,22 +1524,16 @@ export declare const actionDecreaseFontSize: {
1560
1524
  followedBy: Set<import("../types").SocketId>;
1561
1525
  isCropping: boolean;
1562
1526
  croppingElementId: string | null;
1563
- searchMatches: readonly {
1564
- id: string;
1565
- focus: boolean;
1566
- matchedLines: {
1567
- offsetX: number;
1568
- offsetY: number;
1569
- width: number;
1570
- height: number;
1571
- }[];
1572
- }[];
1527
+ searchMatches: Readonly<{
1528
+ focusedId: string | null;
1529
+ matches: readonly import("../types").SearchMatch[];
1530
+ }> | null;
1573
1531
  };
1574
1532
  captureUpdate: "IMMEDIATELY";
1575
1533
  };
1576
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1534
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1577
1535
  } & {
1578
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1536
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1579
1537
  };
1580
1538
  export declare const actionIncreaseFontSize: {
1581
1539
  name: "increaseFontSize";
@@ -1604,7 +1562,7 @@ export declare const actionIncreaseFontSize: {
1604
1562
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1605
1563
  isBindingEnabled: boolean;
1606
1564
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1607
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1565
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1608
1566
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1609
1567
  frameRendering: {
1610
1568
  enabled: boolean;
@@ -1735,7 +1693,7 @@ export declare const actionIncreaseFontSize: {
1735
1693
  data: import("../charts").Spreadsheet;
1736
1694
  };
1737
1695
  pendingImageElementId: string | null;
1738
- showHyperlinkPopup: false | "editor" | "info";
1696
+ showHyperlinkPopup: false | "info" | "editor";
1739
1697
  linkOpacity: number;
1740
1698
  trayModeEnabled: boolean;
1741
1699
  colorPalette?: {
@@ -1783,22 +1741,16 @@ export declare const actionIncreaseFontSize: {
1783
1741
  followedBy: Set<import("../types").SocketId>;
1784
1742
  isCropping: boolean;
1785
1743
  croppingElementId: string | null;
1786
- searchMatches: readonly {
1787
- id: string;
1788
- focus: boolean;
1789
- matchedLines: {
1790
- offsetX: number;
1791
- offsetY: number;
1792
- width: number;
1793
- height: number;
1794
- }[];
1795
- }[];
1744
+ searchMatches: Readonly<{
1745
+ focusedId: string | null;
1746
+ matches: readonly import("../types").SearchMatch[];
1747
+ }> | null;
1796
1748
  };
1797
1749
  captureUpdate: "IMMEDIATELY";
1798
1750
  };
1799
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1751
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1800
1752
  } & {
1801
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1753
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1802
1754
  };
1803
1755
  export declare const actionChangeFontFamily: {
1804
1756
  name: "changeFontFamily";
@@ -1827,7 +1779,7 @@ export declare const actionChangeFontFamily: {
1827
1779
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1828
1780
  isBindingEnabled: boolean;
1829
1781
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
1830
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1782
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1831
1783
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1832
1784
  frameRendering: {
1833
1785
  enabled: boolean;
@@ -1956,7 +1908,7 @@ export declare const actionChangeFontFamily: {
1956
1908
  data: import("../charts").Spreadsheet;
1957
1909
  };
1958
1910
  pendingImageElementId: string | null;
1959
- showHyperlinkPopup: false | "editor" | "info";
1911
+ showHyperlinkPopup: false | "info" | "editor";
1960
1912
  linkOpacity: number;
1961
1913
  trayModeEnabled: boolean;
1962
1914
  colorPalette?: {
@@ -2004,16 +1956,10 @@ export declare const actionChangeFontFamily: {
2004
1956
  followedBy: Set<import("../types").SocketId>;
2005
1957
  isCropping: boolean;
2006
1958
  croppingElementId: string | null;
2007
- searchMatches: readonly {
2008
- id: string;
2009
- focus: boolean;
2010
- matchedLines: {
2011
- offsetX: number;
2012
- offsetY: number;
2013
- width: number;
2014
- height: number;
2015
- }[];
2016
- }[];
1959
+ searchMatches: Readonly<{
1960
+ focusedId: string | null;
1961
+ matches: readonly import("../types").SearchMatch[];
1962
+ }> | null;
2017
1963
  };
2018
1964
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
2019
1965
  } | {
@@ -2040,7 +1986,7 @@ export declare const actionChangeFontFamily: {
2040
1986
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2041
1987
  isBindingEnabled: boolean;
2042
1988
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2043
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
1989
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2044
1990
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2045
1991
  frameRendering: {
2046
1992
  enabled: boolean;
@@ -2169,7 +2115,7 @@ export declare const actionChangeFontFamily: {
2169
2115
  data: import("../charts").Spreadsheet;
2170
2116
  };
2171
2117
  pendingImageElementId: string | null;
2172
- showHyperlinkPopup: false | "editor" | "info";
2118
+ showHyperlinkPopup: false | "info" | "editor";
2173
2119
  linkOpacity: number;
2174
2120
  trayModeEnabled: boolean;
2175
2121
  colorPalette?: {
@@ -2217,16 +2163,10 @@ export declare const actionChangeFontFamily: {
2217
2163
  followedBy: Set<import("../types").SocketId>;
2218
2164
  isCropping: boolean;
2219
2165
  croppingElementId: string | null;
2220
- searchMatches: readonly {
2221
- id: string;
2222
- focus: boolean;
2223
- matchedLines: {
2224
- offsetX: number;
2225
- offsetY: number;
2226
- width: number;
2227
- height: number;
2228
- }[];
2229
- }[];
2166
+ searchMatches: Readonly<{
2167
+ focusedId: string | null;
2168
+ matches: readonly import("../types").SearchMatch[];
2169
+ }> | null;
2230
2170
  };
2231
2171
  captureUpdate: "NEVER";
2232
2172
  };
@@ -2260,7 +2200,7 @@ export declare const actionChangeTextAlign: {
2260
2200
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2261
2201
  isBindingEnabled: boolean;
2262
2202
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2263
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
2203
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2264
2204
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2265
2205
  frameRendering: {
2266
2206
  enabled: boolean;
@@ -2391,7 +2331,7 @@ export declare const actionChangeTextAlign: {
2391
2331
  data: import("../charts").Spreadsheet;
2392
2332
  };
2393
2333
  pendingImageElementId: string | null;
2394
- showHyperlinkPopup: false | "editor" | "info";
2334
+ showHyperlinkPopup: false | "info" | "editor";
2395
2335
  linkOpacity: number;
2396
2336
  trayModeEnabled: boolean;
2397
2337
  colorPalette?: {
@@ -2439,16 +2379,10 @@ export declare const actionChangeTextAlign: {
2439
2379
  followedBy: Set<import("../types").SocketId>;
2440
2380
  isCropping: boolean;
2441
2381
  croppingElementId: string | null;
2442
- searchMatches: readonly {
2443
- id: string;
2444
- focus: boolean;
2445
- matchedLines: {
2446
- offsetX: number;
2447
- offsetY: number;
2448
- width: number;
2449
- height: number;
2450
- }[];
2451
- }[];
2382
+ searchMatches: Readonly<{
2383
+ focusedId: string | null;
2384
+ matches: readonly import("../types").SearchMatch[];
2385
+ }> | null;
2452
2386
  };
2453
2387
  captureUpdate: "IMMEDIATELY";
2454
2388
  };
@@ -2483,7 +2417,7 @@ export declare const actionChangeVerticalAlign: {
2483
2417
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2484
2418
  isBindingEnabled: boolean;
2485
2419
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2486
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
2420
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2487
2421
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2488
2422
  frameRendering: {
2489
2423
  enabled: boolean;
@@ -2615,7 +2549,7 @@ export declare const actionChangeVerticalAlign: {
2615
2549
  data: import("../charts").Spreadsheet;
2616
2550
  };
2617
2551
  pendingImageElementId: string | null;
2618
- showHyperlinkPopup: false | "editor" | "info";
2552
+ showHyperlinkPopup: false | "info" | "editor";
2619
2553
  linkOpacity: number;
2620
2554
  trayModeEnabled: boolean;
2621
2555
  colorPalette?: {
@@ -2663,16 +2597,10 @@ export declare const actionChangeVerticalAlign: {
2663
2597
  followedBy: Set<import("../types").SocketId>;
2664
2598
  isCropping: boolean;
2665
2599
  croppingElementId: string | null;
2666
- searchMatches: readonly {
2667
- id: string;
2668
- focus: boolean;
2669
- matchedLines: {
2670
- offsetX: number;
2671
- offsetY: number;
2672
- width: number;
2673
- height: number;
2674
- }[];
2675
- }[];
2600
+ searchMatches: Readonly<{
2601
+ focusedId: string | null;
2602
+ matches: readonly import("../types").SearchMatch[];
2603
+ }> | null;
2676
2604
  };
2677
2605
  captureUpdate: "IMMEDIATELY";
2678
2606
  };
@@ -2706,7 +2634,7 @@ export declare const actionChangeRoundness: {
2706
2634
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2707
2635
  isBindingEnabled: boolean;
2708
2636
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2709
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
2637
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2710
2638
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2711
2639
  frameRendering: {
2712
2640
  enabled: boolean;
@@ -2837,7 +2765,7 @@ export declare const actionChangeRoundness: {
2837
2765
  data: import("../charts").Spreadsheet;
2838
2766
  };
2839
2767
  pendingImageElementId: string | null;
2840
- showHyperlinkPopup: false | "editor" | "info";
2768
+ showHyperlinkPopup: false | "info" | "editor";
2841
2769
  linkOpacity: number;
2842
2770
  trayModeEnabled: boolean;
2843
2771
  colorPalette?: {
@@ -2885,20 +2813,14 @@ export declare const actionChangeRoundness: {
2885
2813
  followedBy: Set<import("../types").SocketId>;
2886
2814
  isCropping: boolean;
2887
2815
  croppingElementId: string | null;
2888
- searchMatches: readonly {
2889
- id: string;
2890
- focus: boolean;
2891
- matchedLines: {
2892
- offsetX: number;
2893
- offsetY: number;
2894
- width: number;
2895
- height: number;
2896
- }[];
2897
- }[];
2816
+ searchMatches: Readonly<{
2817
+ focusedId: string | null;
2818
+ matches: readonly import("../types").SearchMatch[];
2819
+ }> | null;
2898
2820
  };
2899
2821
  captureUpdate: "IMMEDIATELY";
2900
2822
  };
2901
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2823
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2902
2824
  } & {
2903
2825
  keyTest?: undefined;
2904
2826
  };
@@ -2930,7 +2852,7 @@ export declare const actionChangeArrowhead: {
2930
2852
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2931
2853
  isBindingEnabled: boolean;
2932
2854
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
2933
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
2855
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
2934
2856
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2935
2857
  frameRendering: {
2936
2858
  enabled: boolean;
@@ -3062,7 +2984,7 @@ export declare const actionChangeArrowhead: {
3062
2984
  data: import("../charts").Spreadsheet;
3063
2985
  };
3064
2986
  pendingImageElementId: string | null;
3065
- showHyperlinkPopup: false | "editor" | "info";
2987
+ showHyperlinkPopup: false | "info" | "editor";
3066
2988
  linkOpacity: number;
3067
2989
  trayModeEnabled: boolean;
3068
2990
  colorPalette?: {
@@ -3110,20 +3032,14 @@ export declare const actionChangeArrowhead: {
3110
3032
  followedBy: Set<import("../types").SocketId>;
3111
3033
  isCropping: boolean;
3112
3034
  croppingElementId: string | null;
3113
- searchMatches: readonly {
3114
- id: string;
3115
- focus: boolean;
3116
- matchedLines: {
3117
- offsetX: number;
3118
- offsetY: number;
3119
- width: number;
3120
- height: number;
3121
- }[];
3122
- }[];
3035
+ searchMatches: Readonly<{
3036
+ focusedId: string | null;
3037
+ matches: readonly import("../types").SearchMatch[];
3038
+ }> | null;
3123
3039
  };
3124
3040
  captureUpdate: "IMMEDIATELY";
3125
3041
  };
3126
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
3042
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
3127
3043
  } & {
3128
3044
  keyTest?: undefined;
3129
3045
  };
@@ -3153,7 +3069,7 @@ export declare const actionChangeArrowType: {
3153
3069
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
3154
3070
  isBindingEnabled: boolean;
3155
3071
  startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
3156
- suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
3072
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
3157
3073
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
3158
3074
  frameRendering: {
3159
3075
  enabled: boolean;
@@ -3284,7 +3200,7 @@ export declare const actionChangeArrowType: {
3284
3200
  data: import("../charts").Spreadsheet;
3285
3201
  };
3286
3202
  pendingImageElementId: string | null;
3287
- showHyperlinkPopup: false | "editor" | "info";
3203
+ showHyperlinkPopup: false | "info" | "editor";
3288
3204
  linkOpacity: number;
3289
3205
  trayModeEnabled: boolean;
3290
3206
  colorPalette?: {
@@ -3332,20 +3248,14 @@ export declare const actionChangeArrowType: {
3332
3248
  followedBy: Set<import("../types").SocketId>;
3333
3249
  isCropping: boolean;
3334
3250
  croppingElementId: string | null;
3335
- searchMatches: readonly {
3336
- id: string;
3337
- focus: boolean;
3338
- matchedLines: {
3339
- offsetX: number;
3340
- offsetY: number;
3341
- width: number;
3342
- height: number;
3343
- }[];
3344
- }[];
3251
+ searchMatches: Readonly<{
3252
+ focusedId: string | null;
3253
+ matches: readonly import("../types").SearchMatch[];
3254
+ }> | null;
3345
3255
  };
3346
3256
  captureUpdate: "IMMEDIATELY";
3347
3257
  };
3348
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
3258
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
3349
3259
  } & {
3350
3260
  keyTest?: undefined;
3351
3261
  };