@excalidraw/excalidraw 0.18.0-508de2f3a → 0.18.0-5fffc47

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 (99) hide show
  1. package/dist/dev/{chunk-BVDPDK7J.js → chunk-CP5DND7P.js} +2 -2
  2. package/dist/dev/{chunk-BVDPDK7J.js.map → chunk-CP5DND7P.js.map} +1 -1
  3. package/dist/dev/{chunk-QF5FRM6O.js → chunk-PWQMCSHA.js} +12 -4
  4. package/dist/dev/chunk-PWQMCSHA.js.map +7 -0
  5. package/dist/dev/{chunk-3JWCK6AW.js → chunk-YMRX7R7U.js} +55 -61
  6. package/dist/dev/chunk-YMRX7R7U.js.map +7 -0
  7. package/dist/dev/data/{image-CNYZRAWA.js → image-L23D26XS.js} +3 -3
  8. package/dist/dev/index.css +965 -584
  9. package/dist/dev/index.css.map +3 -3
  10. package/dist/dev/index.js +4721 -2778
  11. package/dist/dev/index.js.map +4 -4
  12. package/dist/dev/locales/{en-SMAPCEOQ.js → en-V3NQTBPG.js} +2 -2
  13. package/dist/dev/subset-shared.chunk.js +1 -1
  14. package/dist/dev/subset-worker.chunk.js +1 -1
  15. package/dist/prod/{chunk-XRPJNYI4.js → chunk-A66AFZZU.js} +1 -1
  16. package/dist/prod/{chunk-I4UNSFV6.js → chunk-GF46JCB3.js} +2 -2
  17. package/dist/prod/chunk-HT4FKTIQ.js +4 -0
  18. package/dist/prod/data/image-NWF7UX55.js +1 -0
  19. package/dist/prod/index.css +1 -1
  20. package/dist/prod/index.js +18 -18
  21. package/dist/prod/locales/{en-TYY6KWIJ.js → en-LQE6K457.js} +1 -1
  22. package/dist/prod/subset-shared.chunk.js +1 -1
  23. package/dist/prod/subset-worker.chunk.js +1 -1
  24. package/dist/types/common/src/constants.d.ts +23 -4
  25. package/dist/types/common/src/utils.d.ts +3 -0
  26. package/dist/types/element/src/bounds.d.ts +1 -1
  27. package/dist/types/element/src/delta.d.ts +4 -5
  28. package/dist/types/element/src/index.d.ts +1 -0
  29. package/dist/types/element/src/mutateElement.d.ts +0 -1
  30. package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
  31. package/dist/types/element/src/renderElement.d.ts +4 -1
  32. package/dist/types/element/src/store.d.ts +5 -0
  33. package/dist/types/element/src/textElement.d.ts +1 -1
  34. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +21 -6
  35. package/dist/types/excalidraw/actions/actionBoundText.d.ts +14 -4
  36. package/dist/types/excalidraw/actions/actionCanvas.d.ts +94 -28
  37. package/dist/types/excalidraw/actions/actionClipboard.d.ts +42 -12
  38. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +7 -2
  39. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +21 -6
  40. package/dist/types/excalidraw/actions/actionElementLink.d.ts +7 -2
  41. package/dist/types/excalidraw/actions/actionElementLock.d.ts +14 -4
  42. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +7 -2
  43. package/dist/types/excalidraw/actions/actionExport.d.ts +63 -18
  44. package/dist/types/excalidraw/actions/actionFinalize.d.ts +14 -4
  45. package/dist/types/excalidraw/actions/actionFrame.d.ts +28 -8
  46. package/dist/types/excalidraw/actions/actionGroup.d.ts +14 -4
  47. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +8 -3
  48. package/dist/types/excalidraw/actions/actionLink.d.ts +6 -1
  49. package/dist/types/excalidraw/actions/actionMenu.d.ts +7 -368
  50. package/dist/types/excalidraw/actions/actionNavigate.d.ts +14 -4
  51. package/dist/types/excalidraw/actions/actionProperties.d.ts +122 -38
  52. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +7 -2
  53. package/dist/types/excalidraw/actions/actionStyles.d.ts +7 -2
  54. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +7 -2
  55. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +7 -2
  56. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +7 -2
  57. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +7 -2
  58. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +7 -2
  59. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +7 -2
  60. package/dist/types/excalidraw/actions/index.d.ts +2 -2
  61. package/dist/types/excalidraw/actions/types.d.ts +1 -1
  62. package/dist/types/excalidraw/appState.d.ts +5 -1
  63. package/dist/types/excalidraw/clipboard.d.ts +64 -1
  64. package/dist/types/excalidraw/components/Actions.d.ts +17 -3
  65. package/dist/types/excalidraw/components/App.d.ts +12 -11
  66. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +1 -0
  67. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
  68. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
  69. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
  70. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  71. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
  72. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  73. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
  74. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
  75. package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
  76. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  77. package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -5
  78. package/dist/types/excalidraw/components/MobileToolBar.d.ts +11 -0
  79. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
  80. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
  81. package/dist/types/excalidraw/components/TextField.d.ts +1 -0
  82. package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
  83. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +4 -2
  84. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
  85. package/dist/types/excalidraw/components/icons.d.ts +5 -0
  86. package/dist/types/excalidraw/components/shapes.d.ts +129 -1
  87. package/dist/types/excalidraw/data/blob.d.ts +3 -7
  88. package/dist/types/excalidraw/data/types.d.ts +4 -1
  89. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  90. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  91. package/dist/types/excalidraw/types.d.ts +12 -4
  92. package/dist/types/math/src/segment.d.ts +1 -0
  93. package/package.json +5 -5
  94. package/dist/dev/chunk-3JWCK6AW.js.map +0 -7
  95. package/dist/dev/chunk-QF5FRM6O.js.map +0 -7
  96. package/dist/prod/chunk-2HQY2INW.js +0 -4
  97. package/dist/prod/data/image-DYRE7ZKS.js +0 -1
  98. /package/dist/dev/data/{image-CNYZRAWA.js.map → image-L23D26XS.js.map} +0 -0
  99. /package/dist/dev/locales/{en-SMAPCEOQ.js.map → en-V3NQTBPG.js.map} +0 -0
@@ -11,7 +11,7 @@ export declare const actionChangeViewBackgroundColor: {
11
11
  appState: any;
12
12
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
13
13
  };
14
- PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
14
+ PanelComponent: ({ elements, appState, updateData, appProps, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
15
15
  } & {
16
16
  keyTest?: undefined;
17
17
  };
@@ -137,6 +137,10 @@ export declare const actionClearCanvas: {
137
137
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
138
138
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
139
139
  editingFrame: string | null;
140
+ preferredSelectionTool: {
141
+ type: "selection" | "lasso";
142
+ initialized: boolean;
143
+ };
140
144
  exportWithDarkMode: boolean;
141
145
  exportScale: number;
142
146
  currentItemStrokeColor: string;
@@ -157,8 +161,8 @@ export declare const actionClearCanvas: {
157
161
  cursorButton: "up" | "down";
158
162
  scrolledOutside: boolean;
159
163
  isResizing: boolean;
160
- openMenu: "canvas" | "shape" | null;
161
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
164
+ openMenu: "canvas" | null;
165
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
162
166
  openSidebar: {
163
167
  name: string;
164
168
  tab?: string | undefined;
@@ -191,6 +195,7 @@ export declare const actionClearCanvas: {
191
195
  lockedMultiSelections: {
192
196
  [groupId: string]: true;
193
197
  };
198
+ stylesPanelMode: "compact" | "full" | "mobile";
194
199
  };
195
200
  captureUpdate: "IMMEDIATELY";
196
201
  };
@@ -247,6 +252,10 @@ export declare const actionZoomIn: {
247
252
  locked: boolean;
248
253
  fromSelection: boolean;
249
254
  } & import("../types").ActiveTool;
255
+ preferredSelectionTool: {
256
+ type: "selection" | "lasso";
257
+ initialized: boolean;
258
+ };
250
259
  penMode: boolean;
251
260
  penDetected: boolean;
252
261
  exportBackground: boolean;
@@ -274,8 +283,8 @@ export declare const actionZoomIn: {
274
283
  name: string | null;
275
284
  isResizing: boolean;
276
285
  isRotating: boolean;
277
- openMenu: "canvas" | "shape" | null;
278
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
286
+ openMenu: "canvas" | null;
287
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
279
288
  openSidebar: {
280
289
  name: string;
281
290
  tab?: string | undefined;
@@ -375,6 +384,7 @@ export declare const actionZoomIn: {
375
384
  lockedMultiSelections: {
376
385
  [groupId: string]: true;
377
386
  };
387
+ stylesPanelMode: "compact" | "full" | "mobile";
378
388
  };
379
389
  captureUpdate: "EVENTUALLY";
380
390
  };
@@ -433,6 +443,10 @@ export declare const actionZoomOut: {
433
443
  locked: boolean;
434
444
  fromSelection: boolean;
435
445
  } & import("../types").ActiveTool;
446
+ preferredSelectionTool: {
447
+ type: "selection" | "lasso";
448
+ initialized: boolean;
449
+ };
436
450
  penMode: boolean;
437
451
  penDetected: boolean;
438
452
  exportBackground: boolean;
@@ -460,8 +474,8 @@ export declare const actionZoomOut: {
460
474
  name: string | null;
461
475
  isResizing: boolean;
462
476
  isRotating: boolean;
463
- openMenu: "canvas" | "shape" | null;
464
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
477
+ openMenu: "canvas" | null;
478
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
465
479
  openSidebar: {
466
480
  name: string;
467
481
  tab?: string | undefined;
@@ -561,6 +575,7 @@ export declare const actionZoomOut: {
561
575
  lockedMultiSelections: {
562
576
  [groupId: string]: true;
563
577
  };
578
+ stylesPanelMode: "compact" | "full" | "mobile";
564
579
  };
565
580
  captureUpdate: "EVENTUALLY";
566
581
  };
@@ -619,6 +634,10 @@ export declare const actionResetZoom: {
619
634
  locked: boolean;
620
635
  fromSelection: boolean;
621
636
  } & import("../types").ActiveTool;
637
+ preferredSelectionTool: {
638
+ type: "selection" | "lasso";
639
+ initialized: boolean;
640
+ };
622
641
  penMode: boolean;
623
642
  penDetected: boolean;
624
643
  exportBackground: boolean;
@@ -646,8 +665,8 @@ export declare const actionResetZoom: {
646
665
  name: string | null;
647
666
  isResizing: boolean;
648
667
  isRotating: boolean;
649
- openMenu: "canvas" | "shape" | null;
650
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
668
+ openMenu: "canvas" | null;
669
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
651
670
  openSidebar: {
652
671
  name: string;
653
672
  tab?: string | undefined;
@@ -747,6 +766,7 @@ export declare const actionResetZoom: {
747
766
  lockedMultiSelections: {
748
767
  [groupId: string]: true;
749
768
  };
769
+ stylesPanelMode: "compact" | "full" | "mobile";
750
770
  };
751
771
  captureUpdate: "EVENTUALLY";
752
772
  };
@@ -811,6 +831,10 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
811
831
  locked: boolean;
812
832
  fromSelection: boolean;
813
833
  } & import("../types").ActiveTool;
834
+ preferredSelectionTool: {
835
+ type: "selection" | "lasso";
836
+ initialized: boolean;
837
+ };
814
838
  penMode: boolean;
815
839
  penDetected: boolean;
816
840
  exportBackground: boolean;
@@ -838,8 +862,8 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
838
862
  name: string | null;
839
863
  isResizing: boolean;
840
864
  isRotating: boolean;
841
- openMenu: "canvas" | "shape" | null;
842
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
865
+ openMenu: "canvas" | null;
866
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
843
867
  openSidebar: {
844
868
  name: string;
845
869
  tab?: string | undefined;
@@ -940,6 +964,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
940
964
  lockedMultiSelections: {
941
965
  [groupId: string]: true;
942
966
  };
967
+ stylesPanelMode: "compact" | "full" | "mobile";
943
968
  };
944
969
  captureUpdate: "EVENTUALLY";
945
970
  };
@@ -999,6 +1024,10 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
999
1024
  locked: boolean;
1000
1025
  fromSelection: boolean;
1001
1026
  } & import("../types").ActiveTool;
1027
+ preferredSelectionTool: {
1028
+ type: "selection" | "lasso";
1029
+ initialized: boolean;
1030
+ };
1002
1031
  penMode: boolean;
1003
1032
  penDetected: boolean;
1004
1033
  exportBackground: boolean;
@@ -1026,8 +1055,8 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1026
1055
  name: string | null;
1027
1056
  isResizing: boolean;
1028
1057
  isRotating: boolean;
1029
- openMenu: "canvas" | "shape" | null;
1030
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1058
+ openMenu: "canvas" | null;
1059
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1031
1060
  openSidebar: {
1032
1061
  name: string;
1033
1062
  tab?: string | undefined;
@@ -1128,6 +1157,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1128
1157
  lockedMultiSelections: {
1129
1158
  [groupId: string]: true;
1130
1159
  };
1160
+ stylesPanelMode: "compact" | "full" | "mobile";
1131
1161
  };
1132
1162
  captureUpdate: "EVENTUALLY";
1133
1163
  };
@@ -1179,6 +1209,10 @@ export declare const actionZoomToFitSelectionInViewport: {
1179
1209
  locked: boolean;
1180
1210
  fromSelection: boolean;
1181
1211
  } & import("../types").ActiveTool;
1212
+ preferredSelectionTool: {
1213
+ type: "selection" | "lasso";
1214
+ initialized: boolean;
1215
+ };
1182
1216
  penMode: boolean;
1183
1217
  penDetected: boolean;
1184
1218
  exportBackground: boolean;
@@ -1206,8 +1240,8 @@ export declare const actionZoomToFitSelectionInViewport: {
1206
1240
  name: string | null;
1207
1241
  isResizing: boolean;
1208
1242
  isRotating: boolean;
1209
- openMenu: "canvas" | "shape" | null;
1210
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1243
+ openMenu: "canvas" | null;
1244
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1211
1245
  openSidebar: {
1212
1246
  name: string;
1213
1247
  tab?: string | undefined;
@@ -1308,6 +1342,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1308
1342
  lockedMultiSelections: {
1309
1343
  [groupId: string]: true;
1310
1344
  };
1345
+ stylesPanelMode: "compact" | "full" | "mobile";
1311
1346
  };
1312
1347
  captureUpdate: "EVENTUALLY";
1313
1348
  };
@@ -1363,6 +1398,10 @@ export declare const actionZoomToFitSelection: {
1363
1398
  locked: boolean;
1364
1399
  fromSelection: boolean;
1365
1400
  } & import("../types").ActiveTool;
1401
+ preferredSelectionTool: {
1402
+ type: "selection" | "lasso";
1403
+ initialized: boolean;
1404
+ };
1366
1405
  penMode: boolean;
1367
1406
  penDetected: boolean;
1368
1407
  exportBackground: boolean;
@@ -1390,8 +1429,8 @@ export declare const actionZoomToFitSelection: {
1390
1429
  name: string | null;
1391
1430
  isResizing: boolean;
1392
1431
  isRotating: boolean;
1393
- openMenu: "canvas" | "shape" | null;
1394
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1432
+ openMenu: "canvas" | null;
1433
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1395
1434
  openSidebar: {
1396
1435
  name: string;
1397
1436
  tab?: string | undefined;
@@ -1492,6 +1531,7 @@ export declare const actionZoomToFitSelection: {
1492
1531
  lockedMultiSelections: {
1493
1532
  [groupId: string]: true;
1494
1533
  };
1534
+ stylesPanelMode: "compact" | "full" | "mobile";
1495
1535
  };
1496
1536
  captureUpdate: "EVENTUALLY";
1497
1537
  };
@@ -1548,6 +1588,10 @@ export declare const actionZoomToFit: {
1548
1588
  locked: boolean;
1549
1589
  fromSelection: boolean;
1550
1590
  } & import("../types").ActiveTool;
1591
+ preferredSelectionTool: {
1592
+ type: "selection" | "lasso";
1593
+ initialized: boolean;
1594
+ };
1551
1595
  penMode: boolean;
1552
1596
  penDetected: boolean;
1553
1597
  exportBackground: boolean;
@@ -1575,8 +1619,8 @@ export declare const actionZoomToFit: {
1575
1619
  name: string | null;
1576
1620
  isResizing: boolean;
1577
1621
  isRotating: boolean;
1578
- openMenu: "canvas" | "shape" | null;
1579
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1622
+ openMenu: "canvas" | null;
1623
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1580
1624
  openSidebar: {
1581
1625
  name: string;
1582
1626
  tab?: string | undefined;
@@ -1677,6 +1721,7 @@ export declare const actionZoomToFit: {
1677
1721
  lockedMultiSelections: {
1678
1722
  [groupId: string]: true;
1679
1723
  };
1724
+ stylesPanelMode: "compact" | "full" | "mobile";
1680
1725
  };
1681
1726
  captureUpdate: "EVENTUALLY";
1682
1727
  };
@@ -1730,6 +1775,10 @@ export declare const actionToggleTheme: {
1730
1775
  locked: boolean;
1731
1776
  fromSelection: boolean;
1732
1777
  } & import("../types").ActiveTool;
1778
+ preferredSelectionTool: {
1779
+ type: "selection" | "lasso";
1780
+ initialized: boolean;
1781
+ };
1733
1782
  penMode: boolean;
1734
1783
  penDetected: boolean;
1735
1784
  exportBackground: boolean;
@@ -1762,8 +1811,8 @@ export declare const actionToggleTheme: {
1762
1811
  zoom: Readonly<{
1763
1812
  value: import("../types").NormalizedZoomValue;
1764
1813
  }>;
1765
- openMenu: "canvas" | "shape" | null;
1766
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1814
+ openMenu: "canvas" | null;
1815
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1767
1816
  openSidebar: {
1768
1817
  name: string;
1769
1818
  tab?: string | undefined;
@@ -1863,6 +1912,7 @@ export declare const actionToggleTheme: {
1863
1912
  lockedMultiSelections: {
1864
1913
  [groupId: string]: true;
1865
1914
  };
1915
+ stylesPanelMode: "compact" | "full" | "mobile";
1866
1916
  };
1867
1917
  captureUpdate: "EVENTUALLY";
1868
1918
  };
@@ -1877,7 +1927,7 @@ export declare const actionToggleEraserTool: {
1877
1927
  trackEvent: {
1878
1928
  category: "toolbar";
1879
1929
  };
1880
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
1930
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1881
1931
  appState: {
1882
1932
  selectedElementIds: {};
1883
1933
  selectedGroupIds: {};
@@ -1912,6 +1962,10 @@ export declare const actionToggleEraserTool: {
1912
1962
  editingFrame: string | null;
1913
1963
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1914
1964
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1965
+ preferredSelectionTool: {
1966
+ type: "selection" | "lasso";
1967
+ initialized: boolean;
1968
+ };
1915
1969
  penMode: boolean;
1916
1970
  penDetected: boolean;
1917
1971
  exportBackground: boolean;
@@ -1944,8 +1998,8 @@ export declare const actionToggleEraserTool: {
1944
1998
  zoom: Readonly<{
1945
1999
  value: import("../types").NormalizedZoomValue;
1946
2000
  }>;
1947
- openMenu: "canvas" | "shape" | null;
1948
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2001
+ openMenu: "canvas" | null;
2002
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1949
2003
  openSidebar: {
1950
2004
  name: string;
1951
2005
  tab?: string | undefined;
@@ -2040,6 +2094,7 @@ export declare const actionToggleEraserTool: {
2040
2094
  lockedMultiSelections: {
2041
2095
  [groupId: string]: true;
2042
2096
  };
2097
+ stylesPanelMode: "compact" | "full" | "mobile";
2043
2098
  };
2044
2099
  captureUpdate: "IMMEDIATELY";
2045
2100
  };
@@ -2054,6 +2109,7 @@ export declare const actionToggleLassoTool: {
2054
2109
  trackEvent: {
2055
2110
  category: "toolbar";
2056
2111
  };
2112
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
2057
2113
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
2058
2114
  appState: {
2059
2115
  selectedElementIds: {};
@@ -2089,6 +2145,10 @@ export declare const actionToggleLassoTool: {
2089
2145
  editingFrame: string | null;
2090
2146
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2091
2147
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2148
+ preferredSelectionTool: {
2149
+ type: "selection" | "lasso";
2150
+ initialized: boolean;
2151
+ };
2092
2152
  penMode: boolean;
2093
2153
  penDetected: boolean;
2094
2154
  exportBackground: boolean;
@@ -2121,8 +2181,8 @@ export declare const actionToggleLassoTool: {
2121
2181
  zoom: Readonly<{
2122
2182
  value: import("../types").NormalizedZoomValue;
2123
2183
  }>;
2124
- openMenu: "canvas" | "shape" | null;
2125
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2184
+ openMenu: "canvas" | null;
2185
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2126
2186
  openSidebar: {
2127
2187
  name: string;
2128
2188
  tab?: string | undefined;
@@ -2217,6 +2277,7 @@ export declare const actionToggleLassoTool: {
2217
2277
  lockedMultiSelections: {
2218
2278
  [groupId: string]: true;
2219
2279
  };
2280
+ stylesPanelMode: "compact" | "full" | "mobile";
2220
2281
  };
2221
2282
  captureUpdate: "NEVER";
2222
2283
  };
@@ -2266,6 +2327,10 @@ export declare const actionToggleHandTool: {
2266
2327
  editingFrame: string | null;
2267
2328
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2268
2329
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2330
+ preferredSelectionTool: {
2331
+ type: "selection" | "lasso";
2332
+ initialized: boolean;
2333
+ };
2269
2334
  penMode: boolean;
2270
2335
  penDetected: boolean;
2271
2336
  exportBackground: boolean;
@@ -2298,8 +2363,8 @@ export declare const actionToggleHandTool: {
2298
2363
  zoom: Readonly<{
2299
2364
  value: import("../types").NormalizedZoomValue;
2300
2365
  }>;
2301
- openMenu: "canvas" | "shape" | null;
2302
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2366
+ openMenu: "canvas" | null;
2367
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2303
2368
  openSidebar: {
2304
2369
  name: string;
2305
2370
  tab?: string | undefined;
@@ -2394,6 +2459,7 @@ export declare const actionToggleHandTool: {
2394
2459
  lockedMultiSelections: {
2395
2460
  [groupId: string]: true;
2396
2461
  };
2462
+ stylesPanelMode: "compact" | "full" | "mobile";
2397
2463
  };
2398
2464
  captureUpdate: "IMMEDIATELY";
2399
2465
  };
@@ -43,6 +43,10 @@ export declare const actionCopy: {
43
43
  locked: boolean;
44
44
  fromSelection: boolean;
45
45
  } & import("../types").ActiveTool;
46
+ preferredSelectionTool: {
47
+ type: "selection" | "lasso";
48
+ initialized: boolean;
49
+ };
46
50
  penMode: boolean;
47
51
  penDetected: boolean;
48
52
  exportBackground: boolean;
@@ -75,8 +79,8 @@ export declare const actionCopy: {
75
79
  zoom: Readonly<{
76
80
  value: import("../types").NormalizedZoomValue;
77
81
  }>;
78
- openMenu: "canvas" | "shape" | null;
79
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
82
+ openMenu: "canvas" | null;
83
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
80
84
  openSidebar: {
81
85
  name: string;
82
86
  tab?: string | undefined;
@@ -177,6 +181,7 @@ export declare const actionCopy: {
177
181
  lockedMultiSelections: {
178
182
  [groupId: string]: true;
179
183
  };
184
+ stylesPanelMode: "compact" | "full" | "mobile";
180
185
  };
181
186
  } | {
182
187
  captureUpdate: "EVENTUALLY";
@@ -229,6 +234,10 @@ export declare const actionPaste: {
229
234
  locked: boolean;
230
235
  fromSelection: boolean;
231
236
  } & import("../types").ActiveTool;
237
+ preferredSelectionTool: {
238
+ type: "selection" | "lasso";
239
+ initialized: boolean;
240
+ };
232
241
  penMode: boolean;
233
242
  penDetected: boolean;
234
243
  exportBackground: boolean;
@@ -261,8 +270,8 @@ export declare const actionPaste: {
261
270
  zoom: Readonly<{
262
271
  value: import("../types").NormalizedZoomValue;
263
272
  }>;
264
- openMenu: "canvas" | "shape" | null;
265
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
273
+ openMenu: "canvas" | null;
274
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
266
275
  openSidebar: {
267
276
  name: string;
268
277
  tab?: string | undefined;
@@ -363,6 +372,7 @@ export declare const actionPaste: {
363
372
  lockedMultiSelections: {
364
373
  [groupId: string]: true;
365
374
  };
375
+ stylesPanelMode: "compact" | "full" | "mobile";
366
376
  };
367
377
  } | {
368
378
  captureUpdate: "EVENTUALLY";
@@ -417,6 +427,10 @@ export declare const actionCut: {
417
427
  locked: boolean;
418
428
  fromSelection: boolean;
419
429
  } & import("../types").ActiveTool;
430
+ preferredSelectionTool: {
431
+ type: "selection" | "lasso";
432
+ initialized: boolean;
433
+ };
420
434
  penMode: boolean;
421
435
  penDetected: boolean;
422
436
  exportBackground: boolean;
@@ -449,8 +463,8 @@ export declare const actionCut: {
449
463
  zoom: Readonly<{
450
464
  value: import("../types").NormalizedZoomValue;
451
465
  }>;
452
- openMenu: "canvas" | "shape" | null;
453
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
466
+ openMenu: "canvas" | null;
467
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
454
468
  openSidebar: {
455
469
  name: string;
456
470
  tab?: string | undefined;
@@ -550,6 +564,7 @@ export declare const actionCut: {
550
564
  lockedMultiSelections: {
551
565
  [groupId: string]: true;
552
566
  };
567
+ stylesPanelMode: "compact" | "full" | "mobile";
553
568
  };
554
569
  captureUpdate: "IMMEDIATELY";
555
570
  } | {
@@ -622,6 +637,10 @@ export declare const actionCut: {
622
637
  locked: boolean;
623
638
  fromSelection: boolean;
624
639
  } & import("../types").ActiveTool;
640
+ preferredSelectionTool: {
641
+ type: "selection" | "lasso";
642
+ initialized: boolean;
643
+ };
625
644
  penMode: boolean;
626
645
  penDetected: boolean;
627
646
  exportBackground: boolean;
@@ -654,8 +673,8 @@ export declare const actionCut: {
654
673
  zoom: Readonly<{
655
674
  value: import("../types").NormalizedZoomValue;
656
675
  }>;
657
- openMenu: "canvas" | "shape" | null;
658
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
676
+ openMenu: "canvas" | null;
677
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
659
678
  openSidebar: {
660
679
  name: string;
661
680
  tab?: string | undefined;
@@ -755,6 +774,7 @@ export declare const actionCut: {
755
774
  lockedMultiSelections: {
756
775
  [groupId: string]: true;
757
776
  };
777
+ stylesPanelMode: "compact" | "full" | "mobile";
758
778
  };
759
779
  captureUpdate: "IMMEDIATELY";
760
780
  } | {
@@ -799,6 +819,10 @@ export declare const actionCut: {
799
819
  editingFrame: string | null;
800
820
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
801
821
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
822
+ preferredSelectionTool: {
823
+ type: "selection" | "lasso";
824
+ initialized: boolean;
825
+ };
802
826
  penMode: boolean;
803
827
  penDetected: boolean;
804
828
  exportBackground: boolean;
@@ -831,8 +855,8 @@ export declare const actionCut: {
831
855
  zoom: Readonly<{
832
856
  value: import("../types").NormalizedZoomValue;
833
857
  }>;
834
- openMenu: "canvas" | "shape" | null;
835
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
858
+ openMenu: "canvas" | null;
859
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
836
860
  openSidebar: {
837
861
  name: string;
838
862
  tab?: string | undefined;
@@ -925,6 +949,7 @@ export declare const actionCut: {
925
949
  lockedMultiSelections: {
926
950
  [groupId: string]: true;
927
951
  };
952
+ stylesPanelMode: "compact" | "full" | "mobile";
928
953
  };
929
954
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
930
955
  };
@@ -1008,6 +1033,10 @@ export declare const actionCopyAsPng: {
1008
1033
  locked: boolean;
1009
1034
  fromSelection: boolean;
1010
1035
  } & import("../types").ActiveTool;
1036
+ preferredSelectionTool: {
1037
+ type: "selection" | "lasso";
1038
+ initialized: boolean;
1039
+ };
1011
1040
  penMode: boolean;
1012
1041
  penDetected: boolean;
1013
1042
  exportBackground: boolean;
@@ -1040,8 +1069,8 @@ export declare const actionCopyAsPng: {
1040
1069
  zoom: Readonly<{
1041
1070
  value: import("../types").NormalizedZoomValue;
1042
1071
  }>;
1043
- openMenu: "canvas" | "shape" | null;
1044
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1072
+ openMenu: "canvas" | null;
1073
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1045
1074
  openSidebar: {
1046
1075
  name: string;
1047
1076
  tab?: string | undefined;
@@ -1142,6 +1171,7 @@ export declare const actionCopyAsPng: {
1142
1171
  lockedMultiSelections: {
1143
1172
  [groupId: string]: true;
1144
1173
  };
1174
+ stylesPanelMode: "compact" | "full" | "mobile";
1145
1175
  };
1146
1176
  captureUpdate: "EVENTUALLY";
1147
1177
  }>;
@@ -46,6 +46,10 @@ export declare const actionToggleCropEditor: {
46
46
  locked: boolean;
47
47
  fromSelection: boolean;
48
48
  } & import("../types").ActiveTool;
49
+ preferredSelectionTool: {
50
+ type: "selection" | "lasso";
51
+ initialized: boolean;
52
+ };
49
53
  penMode: boolean;
50
54
  penDetected: boolean;
51
55
  exportBackground: boolean;
@@ -78,8 +82,8 @@ export declare const actionToggleCropEditor: {
78
82
  zoom: Readonly<{
79
83
  value: import("../types").NormalizedZoomValue;
80
84
  }>;
81
- openMenu: "canvas" | "shape" | null;
82
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
85
+ openMenu: "canvas" | null;
86
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
83
87
  openSidebar: {
84
88
  name: string;
85
89
  tab?: string | undefined;
@@ -178,6 +182,7 @@ export declare const actionToggleCropEditor: {
178
182
  lockedMultiSelections: {
179
183
  [groupId: string]: true;
180
184
  };
185
+ stylesPanelMode: "compact" | "full" | "mobile";
181
186
  };
182
187
  captureUpdate: "IMMEDIATELY";
183
188
  };