@excalidraw/common 0.18.0-7b8a5f54c → 0.18.0-8608d7b

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 (72) hide show
  1. package/dist/dev/index.js +89 -25
  2. package/dist/dev/index.js.map +2 -2
  3. package/dist/prod/index.js +3 -3
  4. package/dist/types/common/src/constants.d.ts +23 -4
  5. package/dist/types/common/src/utils.d.ts +3 -0
  6. package/dist/types/element/src/bounds.d.ts +1 -1
  7. package/dist/types/element/src/delta.d.ts +4 -4
  8. package/dist/types/element/src/index.d.ts +1 -0
  9. package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
  10. package/dist/types/element/src/renderElement.d.ts +4 -1
  11. package/dist/types/element/src/store.d.ts +3 -2
  12. package/dist/types/element/src/textElement.d.ts +1 -1
  13. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +18 -3
  14. package/dist/types/excalidraw/actions/actionBoundText.d.ts +12 -2
  15. package/dist/types/excalidraw/actions/actionCanvas.d.ts +81 -15
  16. package/dist/types/excalidraw/actions/actionClipboard.d.ts +36 -6
  17. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +6 -1
  18. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +18 -3
  19. package/dist/types/excalidraw/actions/actionElementLink.d.ts +6 -1
  20. package/dist/types/excalidraw/actions/actionElementLock.d.ts +12 -2
  21. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +6 -1
  22. package/dist/types/excalidraw/actions/actionExport.d.ts +54 -9
  23. package/dist/types/excalidraw/actions/actionFinalize.d.ts +12 -2
  24. package/dist/types/excalidraw/actions/actionFrame.d.ts +24 -4
  25. package/dist/types/excalidraw/actions/actionGroup.d.ts +12 -2
  26. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +7 -2
  27. package/dist/types/excalidraw/actions/actionLink.d.ts +6 -1
  28. package/dist/types/excalidraw/actions/actionMenu.d.ts +18 -3
  29. package/dist/types/excalidraw/actions/actionNavigate.d.ts +12 -2
  30. package/dist/types/excalidraw/actions/actionProperties.d.ts +107 -23
  31. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +6 -1
  32. package/dist/types/excalidraw/actions/actionStyles.d.ts +6 -1
  33. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +6 -1
  34. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +6 -1
  35. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +6 -1
  36. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +6 -1
  37. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +6 -1
  38. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +6 -1
  39. package/dist/types/excalidraw/actions/index.d.ts +1 -1
  40. package/dist/types/excalidraw/actions/types.d.ts +1 -1
  41. package/dist/types/excalidraw/appState.d.ts +4 -0
  42. package/dist/types/excalidraw/clipboard.d.ts +64 -1
  43. package/dist/types/excalidraw/components/Actions.d.ts +17 -3
  44. package/dist/types/excalidraw/components/App.d.ts +18 -11
  45. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +1 -0
  46. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
  47. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
  48. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
  49. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  50. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
  51. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  52. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
  53. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
  54. package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
  55. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  56. package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -5
  57. package/dist/types/excalidraw/components/MobileToolBar.d.ts +11 -0
  58. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
  59. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
  60. package/dist/types/excalidraw/components/TextField.d.ts +1 -0
  61. package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
  62. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +4 -2
  63. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
  64. package/dist/types/excalidraw/components/icons.d.ts +5 -0
  65. package/dist/types/excalidraw/components/shapes.d.ts +129 -1
  66. package/dist/types/excalidraw/data/blob.d.ts +3 -7
  67. package/dist/types/excalidraw/data/types.d.ts +4 -1
  68. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  69. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  70. package/dist/types/excalidraw/types.d.ts +10 -1
  71. package/dist/types/math/src/segment.d.ts +1 -0
  72. package/package.json +1 -1
@@ -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;
@@ -158,7 +162,7 @@ export declare const actionClearCanvas: {
158
162
  scrolledOutside: boolean;
159
163
  isResizing: boolean;
160
164
  openMenu: "canvas" | "shape" | null;
161
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | 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;
@@ -275,7 +284,7 @@ export declare const actionZoomIn: {
275
284
  isResizing: boolean;
276
285
  isRotating: boolean;
277
286
  openMenu: "canvas" | "shape" | null;
278
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | 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;
@@ -461,7 +475,7 @@ export declare const actionZoomOut: {
461
475
  isResizing: boolean;
462
476
  isRotating: boolean;
463
477
  openMenu: "canvas" | "shape" | null;
464
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | 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;
@@ -647,7 +666,7 @@ export declare const actionResetZoom: {
647
666
  isResizing: boolean;
648
667
  isRotating: boolean;
649
668
  openMenu: "canvas" | "shape" | null;
650
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | 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;
@@ -839,7 +863,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
839
863
  isResizing: boolean;
840
864
  isRotating: boolean;
841
865
  openMenu: "canvas" | "shape" | null;
842
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | 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;
@@ -1027,7 +1056,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1027
1056
  isResizing: boolean;
1028
1057
  isRotating: boolean;
1029
1058
  openMenu: "canvas" | "shape" | null;
1030
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | 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;
@@ -1207,7 +1241,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1207
1241
  isResizing: boolean;
1208
1242
  isRotating: boolean;
1209
1243
  openMenu: "canvas" | "shape" | null;
1210
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | 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;
@@ -1391,7 +1430,7 @@ export declare const actionZoomToFitSelection: {
1391
1430
  isResizing: boolean;
1392
1431
  isRotating: boolean;
1393
1432
  openMenu: "canvas" | "shape" | null;
1394
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | 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;
@@ -1576,7 +1620,7 @@ export declare const actionZoomToFit: {
1576
1620
  isResizing: boolean;
1577
1621
  isRotating: boolean;
1578
1622
  openMenu: "canvas" | "shape" | null;
1579
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | 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;
@@ -1763,7 +1812,7 @@ export declare const actionToggleTheme: {
1763
1812
  value: import("../types").NormalizedZoomValue;
1764
1813
  }>;
1765
1814
  openMenu: "canvas" | "shape" | null;
1766
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | 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;
@@ -1945,7 +1999,7 @@ export declare const actionToggleEraserTool: {
1945
1999
  value: import("../types").NormalizedZoomValue;
1946
2000
  }>;
1947
2001
  openMenu: "canvas" | "shape" | null;
1948
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | 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;
@@ -2122,7 +2182,7 @@ export declare const actionToggleLassoTool: {
2122
2182
  value: import("../types").NormalizedZoomValue;
2123
2183
  }>;
2124
2184
  openMenu: "canvas" | "shape" | null;
2125
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | 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;
@@ -2299,7 +2364,7 @@ export declare const actionToggleHandTool: {
2299
2364
  value: import("../types").NormalizedZoomValue;
2300
2365
  }>;
2301
2366
  openMenu: "canvas" | "shape" | null;
2302
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | 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;
@@ -76,7 +80,7 @@ export declare const actionCopy: {
76
80
  value: import("../types").NormalizedZoomValue;
77
81
  }>;
78
82
  openMenu: "canvas" | "shape" | null;
79
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | 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;
@@ -262,7 +271,7 @@ export declare const actionPaste: {
262
271
  value: import("../types").NormalizedZoomValue;
263
272
  }>;
264
273
  openMenu: "canvas" | "shape" | null;
265
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | 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;
@@ -450,7 +464,7 @@ export declare const actionCut: {
450
464
  value: import("../types").NormalizedZoomValue;
451
465
  }>;
452
466
  openMenu: "canvas" | "shape" | null;
453
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | 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;
@@ -655,7 +674,7 @@ export declare const actionCut: {
655
674
  value: import("../types").NormalizedZoomValue;
656
675
  }>;
657
676
  openMenu: "canvas" | "shape" | null;
658
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | 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("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
801
821
  editingTextElement: import("../../element/src/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;
@@ -832,7 +856,7 @@ export declare const actionCut: {
832
856
  value: import("../types").NormalizedZoomValue;
833
857
  }>;
834
858
  openMenu: "canvas" | "shape" | null;
835
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | 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;
@@ -1041,7 +1070,7 @@ export declare const actionCopyAsPng: {
1041
1070
  value: import("../types").NormalizedZoomValue;
1042
1071
  }>;
1043
1072
  openMenu: "canvas" | "shape" | null;
1044
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | 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;
@@ -79,7 +83,7 @@ export declare const actionToggleCropEditor: {
79
83
  value: import("../types").NormalizedZoomValue;
80
84
  }>;
81
85
  openMenu: "canvas" | "shape" | null;
82
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | 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
  };
@@ -47,6 +47,10 @@ export declare const actionDeleteSelected: {
47
47
  locked: boolean;
48
48
  fromSelection: boolean;
49
49
  } & import("../types").ActiveTool;
50
+ preferredSelectionTool: {
51
+ type: "selection" | "lasso";
52
+ initialized: boolean;
53
+ };
50
54
  penMode: boolean;
51
55
  penDetected: boolean;
52
56
  exportBackground: boolean;
@@ -80,7 +84,7 @@ export declare const actionDeleteSelected: {
80
84
  value: import("../types").NormalizedZoomValue;
81
85
  }>;
82
86
  openMenu: "canvas" | "shape" | null;
83
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
87
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
84
88
  openSidebar: {
85
89
  name: string;
86
90
  tab?: string | undefined;
@@ -180,6 +184,7 @@ export declare const actionDeleteSelected: {
180
184
  lockedMultiSelections: {
181
185
  [groupId: string]: true;
182
186
  };
187
+ stylesPanelMode: "compact" | "full" | "mobile";
183
188
  };
184
189
  captureUpdate: "IMMEDIATELY";
185
190
  } | {
@@ -252,6 +257,10 @@ export declare const actionDeleteSelected: {
252
257
  locked: boolean;
253
258
  fromSelection: boolean;
254
259
  } & import("../types").ActiveTool;
260
+ preferredSelectionTool: {
261
+ type: "selection" | "lasso";
262
+ initialized: boolean;
263
+ };
255
264
  penMode: boolean;
256
265
  penDetected: boolean;
257
266
  exportBackground: boolean;
@@ -285,7 +294,7 @@ export declare const actionDeleteSelected: {
285
294
  value: import("../types").NormalizedZoomValue;
286
295
  }>;
287
296
  openMenu: "canvas" | "shape" | null;
288
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
297
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
289
298
  openSidebar: {
290
299
  name: string;
291
300
  tab?: string | undefined;
@@ -385,6 +394,7 @@ export declare const actionDeleteSelected: {
385
394
  lockedMultiSelections: {
386
395
  [groupId: string]: true;
387
396
  };
397
+ stylesPanelMode: "compact" | "full" | "mobile";
388
398
  };
389
399
  captureUpdate: "IMMEDIATELY";
390
400
  } | {
@@ -429,6 +439,10 @@ export declare const actionDeleteSelected: {
429
439
  editingFrame: string | null;
430
440
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
431
441
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
442
+ preferredSelectionTool: {
443
+ type: "selection" | "lasso";
444
+ initialized: boolean;
445
+ };
432
446
  penMode: boolean;
433
447
  penDetected: boolean;
434
448
  exportBackground: boolean;
@@ -462,7 +476,7 @@ export declare const actionDeleteSelected: {
462
476
  value: import("../types").NormalizedZoomValue;
463
477
  }>;
464
478
  openMenu: "canvas" | "shape" | null;
465
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
479
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
466
480
  openSidebar: {
467
481
  name: string;
468
482
  tab?: string | undefined;
@@ -555,6 +569,7 @@ export declare const actionDeleteSelected: {
555
569
  lockedMultiSelections: {
556
570
  [groupId: string]: true;
557
571
  };
572
+ stylesPanelMode: "compact" | "full" | "mobile";
558
573
  };
559
574
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
560
575
  };