@zsviczian/excalidraw 0.18.0-23 → 0.18.0-25

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 (68) hide show
  1. package/dist/excalidraw.development.js +25 -25
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/package.json +1 -1
  4. package/types/common/src/constants.d.ts +1 -1
  5. package/types/common/src/points.d.ts +1 -1
  6. package/types/common/src/utils.d.ts +2 -2
  7. package/types/element/src/Scene.d.ts +1 -1
  8. package/types/element/src/binding.d.ts +4 -0
  9. package/types/element/src/bounds.d.ts +3 -1
  10. package/types/element/src/elbowArrow.d.ts +1 -1
  11. package/types/element/src/frame.d.ts +2 -2
  12. package/types/element/src/heading.d.ts +2 -2
  13. package/types/element/src/linearElementEditor.d.ts +1 -4
  14. package/types/element/src/resizeTest.d.ts +2 -2
  15. package/types/element/src/selection.d.ts +1 -1
  16. package/types/element/src/shape.d.ts +2 -2
  17. package/types/element/src/store.d.ts +1 -1
  18. package/types/element/src/transformHandles.d.ts +4 -4
  19. package/types/element/src/utils.d.ts +11 -5
  20. package/types/excalidraw/actions/actionAddToLibrary.d.ts +6 -6
  21. package/types/excalidraw/actions/actionAlign.d.ts +8 -8
  22. package/types/excalidraw/actions/actionBoundText.d.ts +4 -4
  23. package/types/excalidraw/actions/actionCanvas.d.ts +137 -137
  24. package/types/excalidraw/actions/actionClipboard.d.ts +17 -17
  25. package/types/excalidraw/actions/actionCropEditor.d.ts +2 -2
  26. package/types/excalidraw/actions/actionDeleteSelected.d.ts +9 -9
  27. package/types/excalidraw/actions/actionDistribute.d.ts +4 -4
  28. package/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  29. package/types/excalidraw/actions/actionElementLink.d.ts +2 -2
  30. package/types/excalidraw/actions/actionElementLock.d.ts +6 -6
  31. package/types/excalidraw/actions/actionEmbeddable.d.ts +2 -2
  32. package/types/excalidraw/actions/actionExport.d.ts +121 -121
  33. package/types/excalidraw/actions/actionFinalize.d.ts +8 -8
  34. package/types/excalidraw/actions/actionFlip.d.ts +4 -4
  35. package/types/excalidraw/actions/actionFrame.d.ts +61 -61
  36. package/types/excalidraw/actions/actionGroup.d.ts +10 -10
  37. package/types/excalidraw/actions/actionLinearEditor.d.ts +53 -53
  38. package/types/excalidraw/actions/actionLink.d.ts +3 -3
  39. package/types/excalidraw/actions/actionMenu.d.ts +8 -8
  40. package/types/excalidraw/actions/actionNavigate.d.ts +4 -4
  41. package/types/excalidraw/actions/actionProperties.d.ts +33 -33
  42. package/types/excalidraw/actions/actionSelectAll.d.ts +5 -5
  43. package/types/excalidraw/actions/actionStyles.d.ts +6 -6
  44. package/types/excalidraw/actions/actionToggleGridMode.d.ts +4 -4
  45. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +4 -4
  46. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +4 -4
  47. package/types/excalidraw/actions/actionToggleStats.d.ts +4 -4
  48. package/types/excalidraw/actions/actionToggleViewMode.d.ts +4 -4
  49. package/types/excalidraw/actions/actionToggleZenMode.d.ts +4 -4
  50. package/types/excalidraw/actions/actionZindex.d.ts +8 -8
  51. package/types/excalidraw/appState.d.ts +21 -21
  52. package/types/excalidraw/components/App.d.ts +8 -4
  53. package/types/excalidraw/components/Stats/DragInput.d.ts +11 -1
  54. package/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
  55. package/types/excalidraw/components/shapes.d.ts +1 -1
  56. package/types/excalidraw/data/blob.d.ts +1 -1
  57. package/types/excalidraw/data/library.d.ts +1 -1
  58. package/types/excalidraw/index.d.ts +1 -0
  59. package/types/math/src/angle.d.ts +1 -1
  60. package/types/math/src/curve.d.ts +1 -1
  61. package/types/math/src/ellipse.d.ts +3 -3
  62. package/types/math/src/point.d.ts +2 -2
  63. package/types/math/src/polygon.d.ts +2 -2
  64. package/types/math/src/rectangle.d.ts +2 -0
  65. package/types/math/src/segment.d.ts +5 -5
  66. package/types/math/src/utils.d.ts +0 -2
  67. package/types/utils/src/shape.d.ts +12 -12
  68. package/types/excalidraw/visualdebug.d.ts +0 -41
@@ -65,7 +65,7 @@ export declare const actionSelectAllElementsInFrame: {
65
65
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
66
66
  currentHoveredFontFamily: number | null;
67
67
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
68
- currentItemArrowType: "sharp" | "round" | "elbow";
68
+ currentItemArrowType: "round" | "sharp" | "elbow";
69
69
  viewBackgroundColor: string;
70
70
  scrollX: number;
71
71
  scrollY: number;
@@ -156,7 +156,7 @@ export declare const actionSelectAllElementsInFrame: {
156
156
  shown: true;
157
157
  data: import("../charts").Spreadsheet;
158
158
  };
159
- showHyperlinkPopup: false | "info" | "editor";
159
+ showHyperlinkPopup: false | "editor" | "info";
160
160
  linkOpacity: number;
161
161
  trayModeEnabled: boolean;
162
162
  colorPalette?: {
@@ -290,7 +290,7 @@ export declare const actionRemoveAllElementsFromFrame: {
290
290
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
291
291
  currentHoveredFontFamily: number | null;
292
292
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
293
- currentItemArrowType: "sharp" | "round" | "elbow";
293
+ currentItemArrowType: "round" | "sharp" | "elbow";
294
294
  viewBackgroundColor: string;
295
295
  scrollX: number;
296
296
  scrollY: number;
@@ -381,7 +381,7 @@ export declare const actionRemoveAllElementsFromFrame: {
381
381
  shown: true;
382
382
  data: import("../charts").Spreadsheet;
383
383
  };
384
- showHyperlinkPopup: false | "info" | "editor";
384
+ showHyperlinkPopup: false | "editor" | "info";
385
385
  linkOpacity: number;
386
386
  trayModeEnabled: boolean;
387
387
  colorPalette?: {
@@ -513,7 +513,7 @@ export declare const actionupdateFrameRendering: {
513
513
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
514
514
  currentHoveredFontFamily: number | null;
515
515
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
516
- currentItemArrowType: "sharp" | "round" | "elbow";
516
+ currentItemArrowType: "round" | "sharp" | "elbow";
517
517
  viewBackgroundColor: string;
518
518
  scrollX: number;
519
519
  scrollY: number;
@@ -607,7 +607,7 @@ export declare const actionupdateFrameRendering: {
607
607
  shown: true;
608
608
  data: import("../charts").Spreadsheet;
609
609
  };
610
- showHyperlinkPopup: false | "info" | "editor";
610
+ showHyperlinkPopup: false | "editor" | "info";
611
611
  linkOpacity: number;
612
612
  trayModeEnabled: boolean;
613
613
  colorPalette?: {
@@ -736,7 +736,7 @@ export declare const actionSetFrameAsActiveTool: {
736
736
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
737
737
  currentHoveredFontFamily: number | null;
738
738
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
739
- currentItemArrowType: "sharp" | "round" | "elbow";
739
+ currentItemArrowType: "round" | "sharp" | "elbow";
740
740
  viewBackgroundColor: string;
741
741
  scrollX: number;
742
742
  scrollY: number;
@@ -830,7 +830,7 @@ export declare const actionSetFrameAsActiveTool: {
830
830
  shown: true;
831
831
  data: import("../charts").Spreadsheet;
832
832
  };
833
- showHyperlinkPopup: false | "info" | "editor";
833
+ showHyperlinkPopup: false | "editor" | "info";
834
834
  linkOpacity: number;
835
835
  trayModeEnabled: boolean;
836
836
  colorPalette?: {
@@ -889,9 +889,9 @@ export declare const actionSetFrameAsActiveTool: {
889
889
  };
890
890
  captureUpdate: "EVENTUALLY";
891
891
  };
892
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
892
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
893
893
  } & {
894
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
894
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
895
895
  };
896
896
  export declare const actionWrapSelectionInFrame: {
897
897
  name: "wrapSelectionInFrame";
@@ -928,15 +928,21 @@ export declare const actionWrapSelectionInFrame: {
928
928
  frameId: string | null;
929
929
  boundElements: readonly Readonly<{
930
930
  id: string;
931
- type: "text" | "arrow";
931
+ type: "arrow" | "text";
932
932
  }>[] | null;
933
933
  updated: number;
934
934
  link: string | null;
935
935
  locked: boolean;
936
936
  customData?: Record<string, any> | undefined;
937
+ }> & Readonly<{
938
+ type: "line" | "arrow";
939
+ points: readonly import("@excalidraw/math").LocalPoint[];
940
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
941
+ startBinding: import("@excalidraw/element/types").PointBinding | null;
942
+ endBinding: import("@excalidraw/element/types").PointBinding | null;
943
+ startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
944
+ endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
937
945
  }> & {
938
- type: "selection";
939
- } & {
940
946
  index: import("@excalidraw/element/types").FractionalIndex;
941
947
  }) | (Readonly<{
942
948
  id: string;
@@ -965,14 +971,14 @@ export declare const actionWrapSelectionInFrame: {
965
971
  frameId: string | null;
966
972
  boundElements: readonly Readonly<{
967
973
  id: string;
968
- type: "text" | "arrow";
974
+ type: "arrow" | "text";
969
975
  }>[] | null;
970
976
  updated: number;
971
977
  link: string | null;
972
978
  locked: boolean;
973
979
  customData?: Record<string, any> | undefined;
974
980
  }> & {
975
- type: "rectangle";
981
+ type: "selection";
976
982
  } & {
977
983
  index: import("@excalidraw/element/types").FractionalIndex;
978
984
  }) | (Readonly<{
@@ -1002,14 +1008,14 @@ export declare const actionWrapSelectionInFrame: {
1002
1008
  frameId: string | null;
1003
1009
  boundElements: readonly Readonly<{
1004
1010
  id: string;
1005
- type: "text" | "arrow";
1011
+ type: "arrow" | "text";
1006
1012
  }>[] | null;
1007
1013
  updated: number;
1008
1014
  link: string | null;
1009
1015
  locked: boolean;
1010
1016
  customData?: Record<string, any> | undefined;
1011
1017
  }> & {
1012
- type: "diamond";
1018
+ type: "rectangle";
1013
1019
  } & {
1014
1020
  index: import("@excalidraw/element/types").FractionalIndex;
1015
1021
  }) | (Readonly<{
@@ -1039,14 +1045,14 @@ export declare const actionWrapSelectionInFrame: {
1039
1045
  frameId: string | null;
1040
1046
  boundElements: readonly Readonly<{
1041
1047
  id: string;
1042
- type: "text" | "arrow";
1048
+ type: "arrow" | "text";
1043
1049
  }>[] | null;
1044
1050
  updated: number;
1045
1051
  link: string | null;
1046
1052
  locked: boolean;
1047
1053
  customData?: Record<string, any> | undefined;
1048
1054
  }> & {
1049
- type: "ellipse";
1055
+ type: "diamond";
1050
1056
  } & {
1051
1057
  index: import("@excalidraw/element/types").FractionalIndex;
1052
1058
  }) | (Readonly<{
@@ -1076,27 +1082,15 @@ export declare const actionWrapSelectionInFrame: {
1076
1082
  frameId: string | null;
1077
1083
  boundElements: readonly Readonly<{
1078
1084
  id: string;
1079
- type: "text" | "arrow";
1085
+ type: "arrow" | "text";
1080
1086
  }>[] | null;
1081
1087
  updated: number;
1082
1088
  link: string | null;
1083
1089
  locked: boolean;
1084
1090
  customData?: Record<string, any> | undefined;
1085
- }> & Readonly<{
1086
- type: "text";
1087
- fontSize: number;
1088
- fontFamily: number;
1089
- text: string;
1090
- rawText: string;
1091
- textAlign: string;
1092
- verticalAlign: string;
1093
- containerId: string | null;
1094
- originalText: string;
1095
- autoResize: boolean;
1096
- lineHeight: number & {
1097
- _brand: "unitlessLineHeight";
1098
- };
1099
1091
  }> & {
1092
+ type: "ellipse";
1093
+ } & {
1100
1094
  index: import("@excalidraw/element/types").FractionalIndex;
1101
1095
  }) | (Readonly<{
1102
1096
  id: string;
@@ -1125,20 +1119,15 @@ export declare const actionWrapSelectionInFrame: {
1125
1119
  frameId: string | null;
1126
1120
  boundElements: readonly Readonly<{
1127
1121
  id: string;
1128
- type: "text" | "arrow";
1122
+ type: "arrow" | "text";
1129
1123
  }>[] | null;
1130
1124
  updated: number;
1131
1125
  link: string | null;
1132
1126
  locked: boolean;
1133
1127
  customData?: Record<string, any> | undefined;
1134
1128
  }> & Readonly<{
1135
- type: "line" | "arrow";
1136
- points: readonly import("@excalidraw/math").LocalPoint[];
1137
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1138
- startBinding: import("@excalidraw/element/types").PointBinding | null;
1139
- endBinding: import("@excalidraw/element/types").PointBinding | null;
1140
- startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1141
- endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1129
+ type: "embeddable";
1130
+ scale: [number, number];
1142
1131
  }> & {
1143
1132
  index: import("@excalidraw/element/types").FractionalIndex;
1144
1133
  }) | (Readonly<{
@@ -1168,18 +1157,18 @@ export declare const actionWrapSelectionInFrame: {
1168
1157
  frameId: string | null;
1169
1158
  boundElements: readonly Readonly<{
1170
1159
  id: string;
1171
- type: "text" | "arrow";
1160
+ type: "arrow" | "text";
1172
1161
  }>[] | null;
1173
1162
  updated: number;
1174
1163
  link: string | null;
1175
1164
  locked: boolean;
1176
1165
  customData?: Record<string, any> | undefined;
1177
1166
  }> & Readonly<{
1178
- type: "freedraw";
1179
- points: readonly import("@excalidraw/math").LocalPoint[];
1180
- pressures: readonly number[];
1181
- simulatePressure: boolean;
1182
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1167
+ type: "iframe";
1168
+ customData?: {
1169
+ generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
1170
+ } | undefined;
1171
+ scale: [number, number];
1183
1172
  }> & {
1184
1173
  index: import("@excalidraw/element/types").FractionalIndex;
1185
1174
  }) | (Readonly<{
@@ -1209,7 +1198,7 @@ export declare const actionWrapSelectionInFrame: {
1209
1198
  frameId: string | null;
1210
1199
  boundElements: readonly Readonly<{
1211
1200
  id: string;
1212
- type: "text" | "arrow";
1201
+ type: "arrow" | "text";
1213
1202
  }>[] | null;
1214
1203
  updated: number;
1215
1204
  link: string | null;
@@ -1218,7 +1207,7 @@ export declare const actionWrapSelectionInFrame: {
1218
1207
  }> & Readonly<{
1219
1208
  type: "image";
1220
1209
  fileId: import("@excalidraw/element/types").FileId | null;
1221
- status: "error" | "pending" | "saved";
1210
+ status: "pending" | "error" | "saved";
1222
1211
  scale: [number, number];
1223
1212
  crop: import("@excalidraw/element/types").ImageCrop | null;
1224
1213
  }> & {
@@ -1250,7 +1239,7 @@ export declare const actionWrapSelectionInFrame: {
1250
1239
  frameId: string | null;
1251
1240
  boundElements: readonly Readonly<{
1252
1241
  id: string;
1253
- type: "text" | "arrow";
1242
+ type: "arrow" | "text";
1254
1243
  }>[] | null;
1255
1244
  updated: number;
1256
1245
  link: string | null;
@@ -1288,7 +1277,7 @@ export declare const actionWrapSelectionInFrame: {
1288
1277
  frameId: string | null;
1289
1278
  boundElements: readonly Readonly<{
1290
1279
  id: string;
1291
- type: "text" | "arrow";
1280
+ type: "arrow" | "text";
1292
1281
  }>[] | null;
1293
1282
  updated: number;
1294
1283
  link: string | null;
@@ -1326,18 +1315,26 @@ export declare const actionWrapSelectionInFrame: {
1326
1315
  frameId: string | null;
1327
1316
  boundElements: readonly Readonly<{
1328
1317
  id: string;
1329
- type: "text" | "arrow";
1318
+ type: "arrow" | "text";
1330
1319
  }>[] | null;
1331
1320
  updated: number;
1332
1321
  link: string | null;
1333
1322
  locked: boolean;
1334
1323
  customData?: Record<string, any> | undefined;
1335
1324
  }> & Readonly<{
1336
- type: "iframe";
1337
- customData?: {
1338
- generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
1339
- } | undefined;
1340
- scale: [number, number];
1325
+ type: "text";
1326
+ fontSize: number;
1327
+ fontFamily: number;
1328
+ text: string;
1329
+ rawText: string;
1330
+ textAlign: string;
1331
+ verticalAlign: string;
1332
+ containerId: string | null;
1333
+ originalText: string;
1334
+ autoResize: boolean;
1335
+ lineHeight: number & {
1336
+ _brand: "unitlessLineHeight";
1337
+ };
1341
1338
  }> & {
1342
1339
  index: import("@excalidraw/element/types").FractionalIndex;
1343
1340
  }) | (Readonly<{
@@ -1367,15 +1364,18 @@ export declare const actionWrapSelectionInFrame: {
1367
1364
  frameId: string | null;
1368
1365
  boundElements: readonly Readonly<{
1369
1366
  id: string;
1370
- type: "text" | "arrow";
1367
+ type: "arrow" | "text";
1371
1368
  }>[] | null;
1372
1369
  updated: number;
1373
1370
  link: string | null;
1374
1371
  locked: boolean;
1375
1372
  customData?: Record<string, any> | undefined;
1376
1373
  }> & Readonly<{
1377
- type: "embeddable";
1378
- scale: [number, number];
1374
+ type: "freedraw";
1375
+ points: readonly import("@excalidraw/math").LocalPoint[];
1376
+ pressures: readonly number[];
1377
+ simulatePressure: boolean;
1378
+ lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
1379
1379
  }> & {
1380
1380
  index: import("@excalidraw/element/types").FractionalIndex;
1381
1381
  }) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];
@@ -13,13 +13,13 @@ export declare const actionGroup: {
13
13
  captureUpdate: "EVENTUALLY";
14
14
  } | {
15
15
  appState: {
16
+ editingGroupId: string | null;
16
17
  selectedElementIds: Readonly<{
17
18
  [id: string]: true;
18
19
  }>;
19
20
  selectedGroupIds: {
20
21
  [groupId: string]: boolean;
21
22
  };
22
- editingGroupId: string | null;
23
23
  contextMenu: {
24
24
  items: import("../components/ContextMenu").ContextMenuItems;
25
25
  top: number;
@@ -75,7 +75,7 @@ export declare const actionGroup: {
75
75
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
76
76
  currentHoveredFontFamily: number | null;
77
77
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
78
- currentItemArrowType: "sharp" | "round" | "elbow";
78
+ currentItemArrowType: "round" | "sharp" | "elbow";
79
79
  viewBackgroundColor: string;
80
80
  scrollX: number;
81
81
  scrollY: number;
@@ -162,7 +162,7 @@ export declare const actionGroup: {
162
162
  shown: true;
163
163
  data: import("../charts").Spreadsheet;
164
164
  };
165
- showHyperlinkPopup: false | "info" | "editor";
165
+ showHyperlinkPopup: false | "editor" | "info";
166
166
  linkOpacity: number;
167
167
  trayModeEnabled: boolean;
168
168
  colorPalette?: {
@@ -223,10 +223,10 @@ export declare const actionGroup: {
223
223
  captureUpdate: "IMMEDIATELY";
224
224
  };
225
225
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
226
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
226
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
227
227
  PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
228
228
  } & {
229
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
229
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
230
230
  };
231
231
  export declare const actionUngroup: {
232
232
  name: "ungroup";
@@ -241,13 +241,13 @@ export declare const actionUngroup: {
241
241
  captureUpdate: "EVENTUALLY";
242
242
  } | {
243
243
  appState: {
244
+ editingGroupId: string | null;
244
245
  selectedElementIds: Readonly<{
245
246
  [id: string]: true;
246
247
  }>;
247
248
  selectedGroupIds: {
248
249
  [groupId: string]: boolean;
249
250
  };
250
- editingGroupId: string | null;
251
251
  contextMenu: {
252
252
  items: import("../components/ContextMenu").ContextMenuItems;
253
253
  top: number;
@@ -303,7 +303,7 @@ export declare const actionUngroup: {
303
303
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
304
304
  currentHoveredFontFamily: number | null;
305
305
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
306
- currentItemArrowType: "sharp" | "round" | "elbow";
306
+ currentItemArrowType: "round" | "sharp" | "elbow";
307
307
  viewBackgroundColor: string;
308
308
  scrollX: number;
309
309
  scrollY: number;
@@ -390,7 +390,7 @@ export declare const actionUngroup: {
390
390
  shown: true;
391
391
  data: import("../charts").Spreadsheet;
392
392
  };
393
- showHyperlinkPopup: false | "info" | "editor";
393
+ showHyperlinkPopup: false | "editor" | "info";
394
394
  linkOpacity: number;
395
395
  trayModeEnabled: boolean;
396
396
  colorPalette?: {
@@ -450,9 +450,9 @@ export declare const actionUngroup: {
450
450
  elements: OrderedExcalidrawElement[];
451
451
  captureUpdate: "IMMEDIATELY";
452
452
  };
453
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
453
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
454
454
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
455
455
  PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
456
456
  } & {
457
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
457
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
458
458
  };