@excalidraw/excalidraw 0.18.0-a18b139 → 0.18.0-a30e1b2

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 (97) hide show
  1. package/dist/dev/{chunk-X3RYHLJU.js → chunk-CARD3WJZ.js} +9 -4
  2. package/dist/dev/chunk-CARD3WJZ.js.map +7 -0
  3. package/dist/dev/{chunk-U3G3LY5D.js → chunk-ETWEPOFC.js} +7284 -6864
  4. package/dist/dev/chunk-ETWEPOFC.js.map +7 -0
  5. package/dist/dev/{chunk-MJMGTOVG.js → chunk-RS23HYC4.js} +2 -2
  6. package/dist/dev/data/{image-Y366K5SN.js → image-AYLHSOBV.js} +3 -3
  7. package/dist/dev/index.css +43 -2
  8. package/dist/dev/index.css.map +3 -3
  9. package/dist/dev/index.js +2959 -1807
  10. package/dist/dev/index.js.map +4 -4
  11. package/dist/dev/locales/{en-CKWC2GMK.js → en-E3O5XSXJ.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-6BSJPDKJ.js +33 -0
  15. package/dist/prod/{chunk-IUH5AXLB.js → chunk-FGHASORR.js} +4 -4
  16. package/dist/prod/{chunk-VQA74LVG.js → chunk-SBKTMZM7.js} +1 -1
  17. package/dist/prod/data/image-VAYKYPXV.js +1 -0
  18. package/dist/prod/index.css +1 -1
  19. package/dist/prod/index.js +19 -18
  20. package/dist/prod/locales/{en-SBO6ZHT2.js → en-44IKVKYT.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 +2 -0
  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 +9 -0
  29. package/dist/types/element/src/binding.d.ts +10 -2
  30. package/dist/types/element/src/bounds.d.ts +1 -1
  31. package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +40 -35
  32. package/dist/types/element/src/frame.d.ts +1 -0
  33. package/dist/types/element/src/index.d.ts +2 -2
  34. package/dist/types/element/src/linearElementEditor.d.ts +3 -7
  35. package/dist/types/element/src/newElement.d.ts +2 -2
  36. package/dist/types/element/src/store.d.ts +227 -0
  37. package/dist/types/element/src/transformHandles.d.ts +2 -2
  38. package/dist/types/element/src/typeChecks.d.ts +3 -0
  39. package/dist/types/element/src/types.d.ts +7 -0
  40. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +18 -36
  41. package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
  42. package/dist/types/excalidraw/actions/actionBoundText.d.ts +12 -24
  43. package/dist/types/excalidraw/actions/actionCanvas.d.ts +107 -185
  44. package/dist/types/excalidraw/actions/actionClipboard.d.ts +39 -75
  45. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +6 -12
  46. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +19 -37
  47. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
  48. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  49. package/dist/types/excalidraw/actions/actionElementLink.d.ts +5 -11
  50. package/dist/types/excalidraw/actions/actionElementLock.d.ts +14 -26
  51. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +6 -12
  52. package/dist/types/excalidraw/actions/actionExport.d.ts +81 -135
  53. package/dist/types/excalidraw/actions/actionFinalize.d.ts +13 -25
  54. package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
  55. package/dist/types/excalidraw/actions/actionFrame.d.ts +26 -50
  56. package/dist/types/excalidraw/actions/actionGroup.d.ts +16 -28
  57. package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -2
  58. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +6 -12
  59. package/dist/types/excalidraw/actions/actionLink.d.ts +8 -14
  60. package/dist/types/excalidraw/actions/actionMenu.d.ts +19 -37
  61. package/dist/types/excalidraw/actions/actionNavigate.d.ts +12 -24
  62. package/dist/types/excalidraw/actions/actionProperties.d.ts +96 -186
  63. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +8 -14
  64. package/dist/types/excalidraw/actions/actionStyles.d.ts +10 -16
  65. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +8 -14
  66. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +8 -14
  67. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +7 -186
  68. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
  69. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +8 -14
  70. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +8 -14
  71. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +8 -14
  72. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  73. package/dist/types/excalidraw/actions/types.d.ts +3 -3
  74. package/dist/types/excalidraw/appState.d.ts +14 -14
  75. package/dist/types/excalidraw/components/App.d.ts +5 -3
  76. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +49 -0
  77. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
  78. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -8
  79. package/dist/types/excalidraw/editor-jotai.d.ts +6 -6
  80. package/dist/types/excalidraw/history.d.ts +14 -22
  81. package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  82. package/dist/types/excalidraw/index.d.ts +1 -1
  83. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -1
  84. package/dist/types/excalidraw/types.d.ts +11 -3
  85. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
  86. package/dist/types/math/src/curve.d.ts +2 -0
  87. package/dist/types/math/src/vector.d.ts +4 -0
  88. package/history.ts +68 -94
  89. package/package.json +3 -3
  90. package/dist/dev/chunk-U3G3LY5D.js.map +0 -7
  91. package/dist/dev/chunk-X3RYHLJU.js.map +0 -7
  92. package/dist/prod/chunk-PUQLEN73.js +0 -33
  93. package/dist/prod/data/image-WY2VMQLG.js +0 -1
  94. package/dist/types/excalidraw/store.d.ts +0 -129
  95. /package/dist/dev/{chunk-MJMGTOVG.js.map → chunk-RS23HYC4.js.map} +0 -0
  96. /package/dist/dev/data/{image-Y366K5SN.js.map → image-AYLHSOBV.js.map} +0 -0
  97. /package/dist/dev/locales/{en-CKWC2GMK.js.map → en-E3O5XSXJ.js.map} +0 -0
@@ -40,7 +40,7 @@ export declare const actionChangeFillStyle: {
40
40
  errorMessage: import("react").ReactNode;
41
41
  activeEmbeddable: {
42
42
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
43
- state: "hover" | "active";
43
+ state: "active" | "hover";
44
44
  } | null;
45
45
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
46
46
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -106,7 +106,7 @@ export declare const actionChangeFillStyle: {
106
106
  name: "imageExport" | "help" | "jsonExport";
107
107
  } | {
108
108
  name: "ttd";
109
- tab: "text-to-diagram" | "mermaid";
109
+ tab: "mermaid" | "text-to-diagram";
110
110
  } | {
111
111
  name: "commandPalette";
112
112
  } | {
@@ -191,16 +191,10 @@ export declare const actionChangeFillStyle: {
191
191
  followedBy: Set<import("../types").SocketId>;
192
192
  isCropping: boolean;
193
193
  croppingElementId: string | null;
194
- searchMatches: readonly {
195
- id: string;
196
- focus: boolean;
197
- matchedLines: {
198
- offsetX: number;
199
- offsetY: number;
200
- width: number;
201
- height: number;
202
- }[];
203
- }[];
194
+ searchMatches: Readonly<{
195
+ focusedId: string | null;
196
+ matches: readonly import("../types").SearchMatch[];
197
+ }> | null;
204
198
  };
205
199
  captureUpdate: "IMMEDIATELY";
206
200
  };
@@ -226,7 +220,7 @@ export declare const actionChangeStrokeWidth: {
226
220
  errorMessage: import("react").ReactNode;
227
221
  activeEmbeddable: {
228
222
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
229
- state: "hover" | "active";
223
+ state: "active" | "hover";
230
224
  } | null;
231
225
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
232
226
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -292,7 +286,7 @@ export declare const actionChangeStrokeWidth: {
292
286
  name: "imageExport" | "help" | "jsonExport";
293
287
  } | {
294
288
  name: "ttd";
295
- tab: "text-to-diagram" | "mermaid";
289
+ tab: "mermaid" | "text-to-diagram";
296
290
  } | {
297
291
  name: "commandPalette";
298
292
  } | {
@@ -377,16 +371,10 @@ export declare const actionChangeStrokeWidth: {
377
371
  followedBy: Set<import("../types").SocketId>;
378
372
  isCropping: boolean;
379
373
  croppingElementId: string | null;
380
- searchMatches: readonly {
381
- id: string;
382
- focus: boolean;
383
- matchedLines: {
384
- offsetX: number;
385
- offsetY: number;
386
- width: number;
387
- height: number;
388
- }[];
389
- }[];
374
+ searchMatches: Readonly<{
375
+ focusedId: string | null;
376
+ matches: readonly import("../types").SearchMatch[];
377
+ }> | null;
390
378
  };
391
379
  captureUpdate: "IMMEDIATELY";
392
380
  };
@@ -412,7 +400,7 @@ export declare const actionChangeSloppiness: {
412
400
  errorMessage: import("react").ReactNode;
413
401
  activeEmbeddable: {
414
402
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
415
- state: "hover" | "active";
403
+ state: "active" | "hover";
416
404
  } | null;
417
405
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
418
406
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -478,7 +466,7 @@ export declare const actionChangeSloppiness: {
478
466
  name: "imageExport" | "help" | "jsonExport";
479
467
  } | {
480
468
  name: "ttd";
481
- tab: "text-to-diagram" | "mermaid";
469
+ tab: "mermaid" | "text-to-diagram";
482
470
  } | {
483
471
  name: "commandPalette";
484
472
  } | {
@@ -563,16 +551,10 @@ export declare const actionChangeSloppiness: {
563
551
  followedBy: Set<import("../types").SocketId>;
564
552
  isCropping: boolean;
565
553
  croppingElementId: string | null;
566
- searchMatches: readonly {
567
- id: string;
568
- focus: boolean;
569
- matchedLines: {
570
- offsetX: number;
571
- offsetY: number;
572
- width: number;
573
- height: number;
574
- }[];
575
- }[];
554
+ searchMatches: Readonly<{
555
+ focusedId: string | null;
556
+ matches: readonly import("../types").SearchMatch[];
557
+ }> | null;
576
558
  };
577
559
  captureUpdate: "IMMEDIATELY";
578
560
  };
@@ -598,7 +580,7 @@ export declare const actionChangeStrokeStyle: {
598
580
  errorMessage: import("react").ReactNode;
599
581
  activeEmbeddable: {
600
582
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
601
- state: "hover" | "active";
583
+ state: "active" | "hover";
602
584
  } | null;
603
585
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
604
586
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -664,7 +646,7 @@ export declare const actionChangeStrokeStyle: {
664
646
  name: "imageExport" | "help" | "jsonExport";
665
647
  } | {
666
648
  name: "ttd";
667
- tab: "text-to-diagram" | "mermaid";
649
+ tab: "mermaid" | "text-to-diagram";
668
650
  } | {
669
651
  name: "commandPalette";
670
652
  } | {
@@ -749,16 +731,10 @@ export declare const actionChangeStrokeStyle: {
749
731
  followedBy: Set<import("../types").SocketId>;
750
732
  isCropping: boolean;
751
733
  croppingElementId: string | null;
752
- searchMatches: readonly {
753
- id: string;
754
- focus: boolean;
755
- matchedLines: {
756
- offsetX: number;
757
- offsetY: number;
758
- width: number;
759
- height: number;
760
- }[];
761
- }[];
734
+ searchMatches: Readonly<{
735
+ focusedId: string | null;
736
+ matches: readonly import("../types").SearchMatch[];
737
+ }> | null;
762
738
  };
763
739
  captureUpdate: "IMMEDIATELY";
764
740
  };
@@ -784,7 +760,7 @@ export declare const actionChangeOpacity: {
784
760
  errorMessage: import("react").ReactNode;
785
761
  activeEmbeddable: {
786
762
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
787
- state: "hover" | "active";
763
+ state: "active" | "hover";
788
764
  } | null;
789
765
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
790
766
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -850,7 +826,7 @@ export declare const actionChangeOpacity: {
850
826
  name: "imageExport" | "help" | "jsonExport";
851
827
  } | {
852
828
  name: "ttd";
853
- tab: "text-to-diagram" | "mermaid";
829
+ tab: "mermaid" | "text-to-diagram";
854
830
  } | {
855
831
  name: "commandPalette";
856
832
  } | {
@@ -935,16 +911,10 @@ export declare const actionChangeOpacity: {
935
911
  followedBy: Set<import("../types").SocketId>;
936
912
  isCropping: boolean;
937
913
  croppingElementId: string | null;
938
- searchMatches: readonly {
939
- id: string;
940
- focus: boolean;
941
- matchedLines: {
942
- offsetX: number;
943
- offsetY: number;
944
- width: number;
945
- height: number;
946
- }[];
947
- }[];
914
+ searchMatches: Readonly<{
915
+ focusedId: string | null;
916
+ matches: readonly import("../types").SearchMatch[];
917
+ }> | null;
948
918
  };
949
919
  captureUpdate: "IMMEDIATELY";
950
920
  };
@@ -970,7 +940,7 @@ export declare const actionChangeFontSize: {
970
940
  errorMessage: import("react").ReactNode;
971
941
  activeEmbeddable: {
972
942
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
973
- state: "hover" | "active";
943
+ state: "active" | "hover";
974
944
  } | null;
975
945
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
976
946
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1036,7 +1006,7 @@ export declare const actionChangeFontSize: {
1036
1006
  name: "imageExport" | "help" | "jsonExport";
1037
1007
  } | {
1038
1008
  name: "ttd";
1039
- tab: "text-to-diagram" | "mermaid";
1009
+ tab: "mermaid" | "text-to-diagram";
1040
1010
  } | {
1041
1011
  name: "commandPalette";
1042
1012
  } | {
@@ -1121,16 +1091,10 @@ export declare const actionChangeFontSize: {
1121
1091
  followedBy: Set<import("../types").SocketId>;
1122
1092
  isCropping: boolean;
1123
1093
  croppingElementId: string | null;
1124
- searchMatches: readonly {
1125
- id: string;
1126
- focus: boolean;
1127
- matchedLines: {
1128
- offsetX: number;
1129
- offsetY: number;
1130
- width: number;
1131
- height: number;
1132
- }[];
1133
- }[];
1094
+ searchMatches: Readonly<{
1095
+ focusedId: string | null;
1096
+ matches: readonly import("../types").SearchMatch[];
1097
+ }> | null;
1134
1098
  };
1135
1099
  captureUpdate: "IMMEDIATELY";
1136
1100
  };
@@ -1157,7 +1121,7 @@ export declare const actionDecreaseFontSize: {
1157
1121
  errorMessage: import("react").ReactNode;
1158
1122
  activeEmbeddable: {
1159
1123
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1160
- state: "hover" | "active";
1124
+ state: "active" | "hover";
1161
1125
  } | null;
1162
1126
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1163
1127
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1223,7 +1187,7 @@ export declare const actionDecreaseFontSize: {
1223
1187
  name: "imageExport" | "help" | "jsonExport";
1224
1188
  } | {
1225
1189
  name: "ttd";
1226
- tab: "text-to-diagram" | "mermaid";
1190
+ tab: "mermaid" | "text-to-diagram";
1227
1191
  } | {
1228
1192
  name: "commandPalette";
1229
1193
  } | {
@@ -1308,22 +1272,16 @@ export declare const actionDecreaseFontSize: {
1308
1272
  followedBy: Set<import("../types").SocketId>;
1309
1273
  isCropping: boolean;
1310
1274
  croppingElementId: string | null;
1311
- searchMatches: readonly {
1312
- id: string;
1313
- focus: boolean;
1314
- matchedLines: {
1315
- offsetX: number;
1316
- offsetY: number;
1317
- width: number;
1318
- height: number;
1319
- }[];
1320
- }[];
1275
+ searchMatches: Readonly<{
1276
+ focusedId: string | null;
1277
+ matches: readonly import("../types").SearchMatch[];
1278
+ }> | null;
1321
1279
  };
1322
1280
  captureUpdate: "IMMEDIATELY";
1323
1281
  };
1324
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1282
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1325
1283
  } & {
1326
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1284
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1327
1285
  };
1328
1286
  export declare const actionIncreaseFontSize: {
1329
1287
  name: "increaseFontSize";
@@ -1344,7 +1302,7 @@ export declare const actionIncreaseFontSize: {
1344
1302
  errorMessage: import("react").ReactNode;
1345
1303
  activeEmbeddable: {
1346
1304
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1347
- state: "hover" | "active";
1305
+ state: "active" | "hover";
1348
1306
  } | null;
1349
1307
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1350
1308
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1410,7 +1368,7 @@ export declare const actionIncreaseFontSize: {
1410
1368
  name: "imageExport" | "help" | "jsonExport";
1411
1369
  } | {
1412
1370
  name: "ttd";
1413
- tab: "text-to-diagram" | "mermaid";
1371
+ tab: "mermaid" | "text-to-diagram";
1414
1372
  } | {
1415
1373
  name: "commandPalette";
1416
1374
  } | {
@@ -1495,22 +1453,16 @@ export declare const actionIncreaseFontSize: {
1495
1453
  followedBy: Set<import("../types").SocketId>;
1496
1454
  isCropping: boolean;
1497
1455
  croppingElementId: string | null;
1498
- searchMatches: readonly {
1499
- id: string;
1500
- focus: boolean;
1501
- matchedLines: {
1502
- offsetX: number;
1503
- offsetY: number;
1504
- width: number;
1505
- height: number;
1506
- }[];
1507
- }[];
1456
+ searchMatches: Readonly<{
1457
+ focusedId: string | null;
1458
+ matches: readonly import("../types").SearchMatch[];
1459
+ }> | null;
1508
1460
  };
1509
1461
  captureUpdate: "IMMEDIATELY";
1510
1462
  };
1511
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1463
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1512
1464
  } & {
1513
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1465
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1514
1466
  };
1515
1467
  export declare const actionChangeFontFamily: {
1516
1468
  name: "changeFontFamily";
@@ -1518,8 +1470,8 @@ export declare const actionChangeFontFamily: {
1518
1470
  trackEvent: false;
1519
1471
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
1520
1472
  appState: {
1521
- currentItemFontFamily: number;
1522
1473
  currentHoveredFontFamily: number | null;
1474
+ currentItemFontFamily: number;
1523
1475
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1524
1476
  contextMenu: {
1525
1477
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -1531,7 +1483,7 @@ export declare const actionChangeFontFamily: {
1531
1483
  errorMessage: import("react").ReactNode;
1532
1484
  activeEmbeddable: {
1533
1485
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1534
- state: "hover" | "active";
1486
+ state: "active" | "hover";
1535
1487
  } | null;
1536
1488
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1537
1489
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1595,7 +1547,7 @@ export declare const actionChangeFontFamily: {
1595
1547
  name: "imageExport" | "help" | "jsonExport";
1596
1548
  } | {
1597
1549
  name: "ttd";
1598
- tab: "text-to-diagram" | "mermaid";
1550
+ tab: "mermaid" | "text-to-diagram";
1599
1551
  } | {
1600
1552
  name: "commandPalette";
1601
1553
  } | {
@@ -1680,23 +1632,17 @@ export declare const actionChangeFontFamily: {
1680
1632
  followedBy: Set<import("../types").SocketId>;
1681
1633
  isCropping: boolean;
1682
1634
  croppingElementId: string | null;
1683
- searchMatches: readonly {
1684
- id: string;
1685
- focus: boolean;
1686
- matchedLines: {
1687
- offsetX: number;
1688
- offsetY: number;
1689
- width: number;
1690
- height: number;
1691
- }[];
1692
- }[];
1635
+ searchMatches: Readonly<{
1636
+ focusedId: string | null;
1637
+ matches: readonly import("../types").SearchMatch[];
1638
+ }> | null;
1693
1639
  };
1694
1640
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
1695
1641
  } | {
1696
1642
  elements: ExcalidrawElement[];
1697
1643
  appState: {
1698
- currentItemFontFamily: number;
1699
1644
  currentHoveredFontFamily: number | null;
1645
+ currentItemFontFamily: number;
1700
1646
  openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1701
1647
  contextMenu: {
1702
1648
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -1708,7 +1654,7 @@ export declare const actionChangeFontFamily: {
1708
1654
  errorMessage: import("react").ReactNode;
1709
1655
  activeEmbeddable: {
1710
1656
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1711
- state: "hover" | "active";
1657
+ state: "active" | "hover";
1712
1658
  } | null;
1713
1659
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1714
1660
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1772,7 +1718,7 @@ export declare const actionChangeFontFamily: {
1772
1718
  name: "imageExport" | "help" | "jsonExport";
1773
1719
  } | {
1774
1720
  name: "ttd";
1775
- tab: "text-to-diagram" | "mermaid";
1721
+ tab: "mermaid" | "text-to-diagram";
1776
1722
  } | {
1777
1723
  name: "commandPalette";
1778
1724
  } | {
@@ -1857,16 +1803,10 @@ export declare const actionChangeFontFamily: {
1857
1803
  followedBy: Set<import("../types").SocketId>;
1858
1804
  isCropping: boolean;
1859
1805
  croppingElementId: string | null;
1860
- searchMatches: readonly {
1861
- id: string;
1862
- focus: boolean;
1863
- matchedLines: {
1864
- offsetX: number;
1865
- offsetY: number;
1866
- width: number;
1867
- height: number;
1868
- }[];
1869
- }[];
1806
+ searchMatches: Readonly<{
1807
+ focusedId: string | null;
1808
+ matches: readonly import("../types").SearchMatch[];
1809
+ }> | null;
1870
1810
  };
1871
1811
  captureUpdate: "NEVER";
1872
1812
  };
@@ -1892,7 +1832,7 @@ export declare const actionChangeTextAlign: {
1892
1832
  errorMessage: import("react").ReactNode;
1893
1833
  activeEmbeddable: {
1894
1834
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1895
- state: "hover" | "active";
1835
+ state: "active" | "hover";
1896
1836
  } | null;
1897
1837
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1898
1838
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1958,7 +1898,7 @@ export declare const actionChangeTextAlign: {
1958
1898
  name: "imageExport" | "help" | "jsonExport";
1959
1899
  } | {
1960
1900
  name: "ttd";
1961
- tab: "text-to-diagram" | "mermaid";
1901
+ tab: "mermaid" | "text-to-diagram";
1962
1902
  } | {
1963
1903
  name: "commandPalette";
1964
1904
  } | {
@@ -2043,16 +1983,10 @@ export declare const actionChangeTextAlign: {
2043
1983
  followedBy: Set<import("../types").SocketId>;
2044
1984
  isCropping: boolean;
2045
1985
  croppingElementId: string | null;
2046
- searchMatches: readonly {
2047
- id: string;
2048
- focus: boolean;
2049
- matchedLines: {
2050
- offsetX: number;
2051
- offsetY: number;
2052
- width: number;
2053
- height: number;
2054
- }[];
2055
- }[];
1986
+ searchMatches: Readonly<{
1987
+ focusedId: string | null;
1988
+ matches: readonly import("../types").SearchMatch[];
1989
+ }> | null;
2056
1990
  };
2057
1991
  captureUpdate: "IMMEDIATELY";
2058
1992
  };
@@ -2079,7 +2013,7 @@ export declare const actionChangeVerticalAlign: {
2079
2013
  errorMessage: import("react").ReactNode;
2080
2014
  activeEmbeddable: {
2081
2015
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2082
- state: "hover" | "active";
2016
+ state: "active" | "hover";
2083
2017
  } | null;
2084
2018
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2085
2019
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -2146,7 +2080,7 @@ export declare const actionChangeVerticalAlign: {
2146
2080
  name: "imageExport" | "help" | "jsonExport";
2147
2081
  } | {
2148
2082
  name: "ttd";
2149
- tab: "text-to-diagram" | "mermaid";
2083
+ tab: "mermaid" | "text-to-diagram";
2150
2084
  } | {
2151
2085
  name: "commandPalette";
2152
2086
  } | {
@@ -2231,16 +2165,10 @@ export declare const actionChangeVerticalAlign: {
2231
2165
  followedBy: Set<import("../types").SocketId>;
2232
2166
  isCropping: boolean;
2233
2167
  croppingElementId: string | null;
2234
- searchMatches: readonly {
2235
- id: string;
2236
- focus: boolean;
2237
- matchedLines: {
2238
- offsetX: number;
2239
- offsetY: number;
2240
- width: number;
2241
- height: number;
2242
- }[];
2243
- }[];
2168
+ searchMatches: Readonly<{
2169
+ focusedId: string | null;
2170
+ matches: readonly import("../types").SearchMatch[];
2171
+ }> | null;
2244
2172
  };
2245
2173
  captureUpdate: "IMMEDIATELY";
2246
2174
  };
@@ -2266,7 +2194,7 @@ export declare const actionChangeRoundness: {
2266
2194
  errorMessage: import("react").ReactNode;
2267
2195
  activeEmbeddable: {
2268
2196
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2269
- state: "hover" | "active";
2197
+ state: "active" | "hover";
2270
2198
  } | null;
2271
2199
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2272
2200
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -2332,7 +2260,7 @@ export declare const actionChangeRoundness: {
2332
2260
  name: "imageExport" | "help" | "jsonExport";
2333
2261
  } | {
2334
2262
  name: "ttd";
2335
- tab: "text-to-diagram" | "mermaid";
2263
+ tab: "mermaid" | "text-to-diagram";
2336
2264
  } | {
2337
2265
  name: "commandPalette";
2338
2266
  } | {
@@ -2417,16 +2345,10 @@ export declare const actionChangeRoundness: {
2417
2345
  followedBy: Set<import("../types").SocketId>;
2418
2346
  isCropping: boolean;
2419
2347
  croppingElementId: string | null;
2420
- searchMatches: readonly {
2421
- id: string;
2422
- focus: boolean;
2423
- matchedLines: {
2424
- offsetX: number;
2425
- offsetY: number;
2426
- width: number;
2427
- height: number;
2428
- }[];
2429
- }[];
2348
+ searchMatches: Readonly<{
2349
+ focusedId: string | null;
2350
+ matches: readonly import("../types").SearchMatch[];
2351
+ }> | null;
2430
2352
  };
2431
2353
  captureUpdate: "IMMEDIATELY";
2432
2354
  };
@@ -2454,7 +2376,7 @@ export declare const actionChangeArrowhead: {
2454
2376
  errorMessage: import("react").ReactNode;
2455
2377
  activeEmbeddable: {
2456
2378
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2457
- state: "hover" | "active";
2379
+ state: "active" | "hover";
2458
2380
  } | null;
2459
2381
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2460
2382
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -2521,7 +2443,7 @@ export declare const actionChangeArrowhead: {
2521
2443
  name: "imageExport" | "help" | "jsonExport";
2522
2444
  } | {
2523
2445
  name: "ttd";
2524
- tab: "text-to-diagram" | "mermaid";
2446
+ tab: "mermaid" | "text-to-diagram";
2525
2447
  } | {
2526
2448
  name: "commandPalette";
2527
2449
  } | {
@@ -2606,16 +2528,10 @@ export declare const actionChangeArrowhead: {
2606
2528
  followedBy: Set<import("../types").SocketId>;
2607
2529
  isCropping: boolean;
2608
2530
  croppingElementId: string | null;
2609
- searchMatches: readonly {
2610
- id: string;
2611
- focus: boolean;
2612
- matchedLines: {
2613
- offsetX: number;
2614
- offsetY: number;
2615
- width: number;
2616
- height: number;
2617
- }[];
2618
- }[];
2531
+ searchMatches: Readonly<{
2532
+ focusedId: string | null;
2533
+ matches: readonly import("../types").SearchMatch[];
2534
+ }> | null;
2619
2535
  };
2620
2536
  captureUpdate: "IMMEDIATELY";
2621
2537
  };
@@ -2641,7 +2557,7 @@ export declare const actionChangeArrowType: {
2641
2557
  errorMessage: import("react").ReactNode;
2642
2558
  activeEmbeddable: {
2643
2559
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
2644
- state: "hover" | "active";
2560
+ state: "active" | "hover";
2645
2561
  } | null;
2646
2562
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2647
2563
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -2707,7 +2623,7 @@ export declare const actionChangeArrowType: {
2707
2623
  name: "imageExport" | "help" | "jsonExport";
2708
2624
  } | {
2709
2625
  name: "ttd";
2710
- tab: "text-to-diagram" | "mermaid";
2626
+ tab: "mermaid" | "text-to-diagram";
2711
2627
  } | {
2712
2628
  name: "commandPalette";
2713
2629
  } | {
@@ -2792,16 +2708,10 @@ export declare const actionChangeArrowType: {
2792
2708
  followedBy: Set<import("../types").SocketId>;
2793
2709
  isCropping: boolean;
2794
2710
  croppingElementId: string | null;
2795
- searchMatches: readonly {
2796
- id: string;
2797
- focus: boolean;
2798
- matchedLines: {
2799
- offsetX: number;
2800
- offsetY: number;
2801
- width: number;
2802
- height: number;
2803
- }[];
2804
- }[];
2711
+ searchMatches: Readonly<{
2712
+ focusedId: string | null;
2713
+ matches: readonly import("../types").SearchMatch[];
2714
+ }> | null;
2805
2715
  };
2806
2716
  captureUpdate: "IMMEDIATELY";
2807
2717
  };
@@ -29,7 +29,7 @@ export declare const actionSelectAll: {
29
29
  errorMessage: import("react").ReactNode;
30
30
  activeEmbeddable: {
31
31
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
32
- state: "hover" | "active";
32
+ state: "active" | "hover";
33
33
  } | null;
34
34
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
35
35
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -96,7 +96,7 @@ export declare const actionSelectAll: {
96
96
  name: "imageExport" | "help" | "jsonExport";
97
97
  } | {
98
98
  name: "ttd";
99
- tab: "text-to-diagram" | "mermaid";
99
+ tab: "mermaid" | "text-to-diagram";
100
100
  } | {
101
101
  name: "commandPalette";
102
102
  } | {
@@ -173,20 +173,14 @@ export declare const actionSelectAll: {
173
173
  followedBy: Set<import("../types").SocketId>;
174
174
  isCropping: boolean;
175
175
  croppingElementId: string | null;
176
- searchMatches: readonly {
177
- id: string;
178
- focus: boolean;
179
- matchedLines: {
180
- offsetX: number;
181
- offsetY: number;
182
- width: number;
183
- height: number;
184
- }[];
185
- }[];
176
+ searchMatches: Readonly<{
177
+ focusedId: string | null;
178
+ matches: readonly import("../types").SearchMatch[];
179
+ }> | null;
186
180
  };
187
181
  captureUpdate: "IMMEDIATELY";
188
182
  };
189
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
183
+ keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
190
184
  } & {
191
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
185
+ keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
192
186
  };