@excalidraw/element 0.18.0-4e471c107 → 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 (82) hide show
  1. package/dist/dev/index.js +1048 -613
  2. package/dist/dev/index.js.map +4 -4
  3. package/dist/prod/index.js +14 -14
  4. package/dist/types/common/src/constants.d.ts +24 -4
  5. package/dist/types/common/src/utils.d.ts +3 -0
  6. package/dist/types/element/src/Scene.d.ts +6 -2
  7. package/dist/types/element/src/align.d.ts +2 -1
  8. package/dist/types/element/src/bounds.d.ts +1 -1
  9. package/dist/types/element/src/delta.d.ts +16 -4
  10. package/dist/types/element/src/distribute.d.ts +2 -1
  11. package/dist/types/element/src/groups.d.ts +1 -0
  12. package/dist/types/element/src/index.d.ts +1 -0
  13. package/dist/types/element/src/linearElementEditor.d.ts +2 -1
  14. package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
  15. package/dist/types/element/src/renderElement.d.ts +4 -1
  16. package/dist/types/element/src/store.d.ts +6 -1
  17. package/dist/types/element/src/textElement.d.ts +1 -1
  18. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +21 -9
  19. package/dist/types/excalidraw/actions/actionBoundText.d.ts +14 -6
  20. package/dist/types/excalidraw/actions/actionCanvas.d.ts +94 -41
  21. package/dist/types/excalidraw/actions/actionClipboard.d.ts +45 -20
  22. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +7 -3
  23. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +24 -12
  24. package/dist/types/excalidraw/actions/actionElementLink.d.ts +7 -3
  25. package/dist/types/excalidraw/actions/actionElementLock.d.ts +14 -6
  26. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +7 -3
  27. package/dist/types/excalidraw/actions/actionExport.d.ts +63 -27
  28. package/dist/types/excalidraw/actions/actionFinalize.d.ts +16 -7
  29. package/dist/types/excalidraw/actions/actionFrame.d.ts +28 -12
  30. package/dist/types/excalidraw/actions/actionGroup.d.ts +14 -6
  31. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +41 -6
  32. package/dist/types/excalidraw/actions/actionLink.d.ts +6 -2
  33. package/dist/types/excalidraw/actions/actionMenu.d.ts +7 -371
  34. package/dist/types/excalidraw/actions/actionNavigate.d.ts +14 -6
  35. package/dist/types/excalidraw/actions/actionProperties.d.ts +122 -53
  36. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +7 -3
  37. package/dist/types/excalidraw/actions/actionStyles.d.ts +7 -3
  38. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +7 -3
  39. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +7 -3
  40. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +7 -3
  41. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +7 -3
  42. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +7 -3
  43. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +7 -3
  44. package/dist/types/excalidraw/actions/index.d.ts +2 -2
  45. package/dist/types/excalidraw/actions/types.d.ts +1 -1
  46. package/dist/types/excalidraw/appState.d.ts +5 -1
  47. package/dist/types/excalidraw/clipboard.d.ts +64 -1
  48. package/dist/types/excalidraw/components/Actions.d.ts +17 -7
  49. package/dist/types/excalidraw/components/App.d.ts +10 -8
  50. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +1 -0
  51. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
  52. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
  53. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
  54. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  55. package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
  56. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
  57. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  58. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
  59. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
  60. package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
  61. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  62. package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -5
  63. package/dist/types/excalidraw/components/MobileToolBar.d.ts +11 -0
  64. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
  65. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
  66. package/dist/types/excalidraw/components/TextField.d.ts +1 -0
  67. package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
  68. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +4 -2
  69. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
  70. package/dist/types/excalidraw/components/icons.d.ts +5 -0
  71. package/dist/types/excalidraw/components/shapes.d.ts +129 -1
  72. package/dist/types/excalidraw/data/blob.d.ts +3 -7
  73. package/dist/types/excalidraw/data/reconcile.d.ts +1 -0
  74. package/dist/types/excalidraw/data/restore.d.ts +6 -1
  75. package/dist/types/excalidraw/data/types.d.ts +4 -1
  76. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  77. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  78. package/dist/types/excalidraw/index.d.ts +2 -1
  79. package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
  80. package/dist/types/excalidraw/types.d.ts +16 -6
  81. package/dist/types/math/src/segment.d.ts +1 -0
  82. package/package.json +3 -3
@@ -37,12 +37,15 @@ export declare const actionChangeProjectName: {
37
37
  editingFrame: string | null;
38
38
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
39
39
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
40
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
41
40
  activeTool: {
42
41
  lastActiveTool: import("../types").ActiveTool | null;
43
42
  locked: boolean;
44
43
  fromSelection: boolean;
45
44
  } & import("../types").ActiveTool;
45
+ preferredSelectionTool: {
46
+ type: "selection" | "lasso";
47
+ initialized: boolean;
48
+ };
46
49
  penMode: boolean;
47
50
  penDetected: boolean;
48
51
  exportBackground: boolean;
@@ -74,8 +77,8 @@ export declare const actionChangeProjectName: {
74
77
  zoom: Readonly<{
75
78
  value: import("../types").NormalizedZoomValue;
76
79
  }>;
77
- openMenu: "canvas" | "shape" | null;
78
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
80
+ openMenu: "canvas" | null;
81
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
79
82
  openSidebar: {
80
83
  name: string;
81
84
  tab?: string | undefined;
@@ -176,6 +179,7 @@ export declare const actionChangeProjectName: {
176
179
  lockedMultiSelections: {
177
180
  [groupId: string]: true;
178
181
  };
182
+ stylesPanelMode: "compact" | "full" | "mobile";
179
183
  };
180
184
  captureUpdate: "EVENTUALLY";
181
185
  };
@@ -222,12 +226,15 @@ export declare const actionChangeExportScale: {
222
226
  editingFrame: string | null;
223
227
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
224
228
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
225
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
226
229
  activeTool: {
227
230
  lastActiveTool: import("../types").ActiveTool | null;
228
231
  locked: boolean;
229
232
  fromSelection: boolean;
230
233
  } & import("../types").ActiveTool;
234
+ preferredSelectionTool: {
235
+ type: "selection" | "lasso";
236
+ initialized: boolean;
237
+ };
231
238
  penMode: boolean;
232
239
  penDetected: boolean;
233
240
  exportBackground: boolean;
@@ -259,8 +266,8 @@ export declare const actionChangeExportScale: {
259
266
  zoom: Readonly<{
260
267
  value: import("../types").NormalizedZoomValue;
261
268
  }>;
262
- openMenu: "canvas" | "shape" | null;
263
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
269
+ openMenu: "canvas" | null;
270
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
264
271
  openSidebar: {
265
272
  name: string;
266
273
  tab?: string | undefined;
@@ -361,6 +368,7 @@ export declare const actionChangeExportScale: {
361
368
  lockedMultiSelections: {
362
369
  [groupId: string]: true;
363
370
  };
371
+ stylesPanelMode: "compact" | "full" | "mobile";
364
372
  };
365
373
  captureUpdate: "EVENTUALLY";
366
374
  };
@@ -407,12 +415,15 @@ export declare const actionChangeExportBackground: {
407
415
  editingFrame: string | null;
408
416
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
409
417
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
410
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
411
418
  activeTool: {
412
419
  lastActiveTool: import("../types").ActiveTool | null;
413
420
  locked: boolean;
414
421
  fromSelection: boolean;
415
422
  } & import("../types").ActiveTool;
423
+ preferredSelectionTool: {
424
+ type: "selection" | "lasso";
425
+ initialized: boolean;
426
+ };
416
427
  penMode: boolean;
417
428
  penDetected: boolean;
418
429
  exportEmbedScene: boolean;
@@ -444,8 +455,8 @@ export declare const actionChangeExportBackground: {
444
455
  zoom: Readonly<{
445
456
  value: import("../types").NormalizedZoomValue;
446
457
  }>;
447
- openMenu: "canvas" | "shape" | null;
448
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
458
+ openMenu: "canvas" | null;
459
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
449
460
  openSidebar: {
450
461
  name: string;
451
462
  tab?: string | undefined;
@@ -546,6 +557,7 @@ export declare const actionChangeExportBackground: {
546
557
  lockedMultiSelections: {
547
558
  [groupId: string]: true;
548
559
  };
560
+ stylesPanelMode: "compact" | "full" | "mobile";
549
561
  };
550
562
  captureUpdate: "EVENTUALLY";
551
563
  };
@@ -592,12 +604,15 @@ export declare const actionChangeExportEmbedScene: {
592
604
  editingFrame: string | null;
593
605
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
594
606
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
595
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
596
607
  activeTool: {
597
608
  lastActiveTool: import("../types").ActiveTool | null;
598
609
  locked: boolean;
599
610
  fromSelection: boolean;
600
611
  } & import("../types").ActiveTool;
612
+ preferredSelectionTool: {
613
+ type: "selection" | "lasso";
614
+ initialized: boolean;
615
+ };
601
616
  penMode: boolean;
602
617
  penDetected: boolean;
603
618
  exportBackground: boolean;
@@ -629,8 +644,8 @@ export declare const actionChangeExportEmbedScene: {
629
644
  zoom: Readonly<{
630
645
  value: import("../types").NormalizedZoomValue;
631
646
  }>;
632
- openMenu: "canvas" | "shape" | null;
633
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
647
+ openMenu: "canvas" | null;
648
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
634
649
  openSidebar: {
635
650
  name: string;
636
651
  tab?: string | undefined;
@@ -731,6 +746,7 @@ export declare const actionChangeExportEmbedScene: {
731
746
  lockedMultiSelections: {
732
747
  [groupId: string]: true;
733
748
  };
749
+ stylesPanelMode: "compact" | "full" | "mobile";
734
750
  };
735
751
  captureUpdate: "EVENTUALLY";
736
752
  };
@@ -782,12 +798,15 @@ export declare const actionSaveToActiveFile: {
782
798
  editingFrame: string | null;
783
799
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
784
800
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
785
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
786
801
  activeTool: {
787
802
  lastActiveTool: import("../types").ActiveTool | null;
788
803
  locked: boolean;
789
804
  fromSelection: boolean;
790
805
  } & import("../types").ActiveTool;
806
+ preferredSelectionTool: {
807
+ type: "selection" | "lasso";
808
+ initialized: boolean;
809
+ };
791
810
  penMode: boolean;
792
811
  penDetected: boolean;
793
812
  exportBackground: boolean;
@@ -820,8 +839,8 @@ export declare const actionSaveToActiveFile: {
820
839
  zoom: Readonly<{
821
840
  value: import("../types").NormalizedZoomValue;
822
841
  }>;
823
- openMenu: "canvas" | "shape" | null;
824
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
842
+ openMenu: "canvas" | null;
843
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
825
844
  openSidebar: {
826
845
  name: string;
827
846
  tab?: string | undefined;
@@ -916,6 +935,7 @@ export declare const actionSaveToActiveFile: {
916
935
  lockedMultiSelections: {
917
936
  [groupId: string]: true;
918
937
  };
938
+ stylesPanelMode: "compact" | "full" | "mobile";
919
939
  };
920
940
  } | {
921
941
  captureUpdate: "EVENTUALLY";
@@ -970,12 +990,15 @@ export declare const actionSaveFileToDisk: {
970
990
  editingFrame: string | null;
971
991
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
972
992
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
973
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
974
993
  activeTool: {
975
994
  lastActiveTool: import("../types").ActiveTool | null;
976
995
  locked: boolean;
977
996
  fromSelection: boolean;
978
997
  } & import("../types").ActiveTool;
998
+ preferredSelectionTool: {
999
+ type: "selection" | "lasso";
1000
+ initialized: boolean;
1001
+ };
979
1002
  penMode: boolean;
980
1003
  penDetected: boolean;
981
1004
  exportBackground: boolean;
@@ -1008,8 +1031,8 @@ export declare const actionSaveFileToDisk: {
1008
1031
  zoom: Readonly<{
1009
1032
  value: import("../types").NormalizedZoomValue;
1010
1033
  }>;
1011
- openMenu: "canvas" | "shape" | null;
1012
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1034
+ openMenu: "canvas" | null;
1035
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1013
1036
  openSidebar: {
1014
1037
  name: string;
1015
1038
  tab?: string | undefined;
@@ -1093,6 +1116,7 @@ export declare const actionSaveFileToDisk: {
1093
1116
  lockedMultiSelections: {
1094
1117
  [groupId: string]: true;
1095
1118
  };
1119
+ stylesPanelMode: "compact" | "full" | "mobile";
1096
1120
  };
1097
1121
  } | {
1098
1122
  captureUpdate: "EVENTUALLY";
@@ -1148,7 +1172,6 @@ export declare const actionLoadScene: {
1148
1172
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1149
1173
  state: "active" | "hover";
1150
1174
  } | null;
1151
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1152
1175
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1153
1176
  selectedGroupIds: {
1154
1177
  [groupId: string]: boolean;
@@ -1206,6 +1229,10 @@ export declare const actionLoadScene: {
1206
1229
  locked: boolean;
1207
1230
  fromSelection: boolean;
1208
1231
  } & import("../types").ActiveTool;
1232
+ preferredSelectionTool: {
1233
+ type: "selection" | "lasso";
1234
+ initialized: boolean;
1235
+ };
1209
1236
  penMode: boolean;
1210
1237
  penDetected: boolean;
1211
1238
  exportBackground: boolean;
@@ -1230,8 +1257,8 @@ export declare const actionLoadScene: {
1230
1257
  cursorButton: "up" | "down";
1231
1258
  scrolledOutside: boolean;
1232
1259
  isResizing: boolean;
1233
- openMenu: "canvas" | "shape" | null;
1234
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1260
+ openMenu: "canvas" | null;
1261
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1235
1262
  openSidebar: {
1236
1263
  name: string;
1237
1264
  tab?: string | undefined;
@@ -1278,6 +1305,7 @@ export declare const actionLoadScene: {
1278
1305
  lockedMultiSelections: {
1279
1306
  [groupId: string]: true;
1280
1307
  };
1308
+ stylesPanelMode: "compact" | "full" | "mobile";
1281
1309
  };
1282
1310
  files: import("../types").BinaryFiles;
1283
1311
  captureUpdate: "IMMEDIATELY";
@@ -1313,12 +1341,15 @@ export declare const actionLoadScene: {
1313
1341
  editingFrame: string | null;
1314
1342
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1315
1343
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1316
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1317
1344
  activeTool: {
1318
1345
  lastActiveTool: import("../types").ActiveTool | null;
1319
1346
  locked: boolean;
1320
1347
  fromSelection: boolean;
1321
1348
  } & import("../types").ActiveTool;
1349
+ preferredSelectionTool: {
1350
+ type: "selection" | "lasso";
1351
+ initialized: boolean;
1352
+ };
1322
1353
  penMode: boolean;
1323
1354
  penDetected: boolean;
1324
1355
  exportBackground: boolean;
@@ -1351,8 +1382,8 @@ export declare const actionLoadScene: {
1351
1382
  zoom: Readonly<{
1352
1383
  value: import("../types").NormalizedZoomValue;
1353
1384
  }>;
1354
- openMenu: "canvas" | "shape" | null;
1355
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1385
+ openMenu: "canvas" | null;
1386
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1356
1387
  openSidebar: {
1357
1388
  name: string;
1358
1389
  tab?: string | undefined;
@@ -1453,6 +1484,7 @@ export declare const actionLoadScene: {
1453
1484
  lockedMultiSelections: {
1454
1485
  [groupId: string]: true;
1455
1486
  };
1487
+ stylesPanelMode: "compact" | "full" | "mobile";
1456
1488
  };
1457
1489
  files: import("../types").BinaryFiles;
1458
1490
  captureUpdate: "EVENTUALLY";
@@ -1500,12 +1532,15 @@ export declare const actionExportWithDarkMode: {
1500
1532
  editingFrame: string | null;
1501
1533
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1502
1534
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1503
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1504
1535
  activeTool: {
1505
1536
  lastActiveTool: import("../types").ActiveTool | null;
1506
1537
  locked: boolean;
1507
1538
  fromSelection: boolean;
1508
1539
  } & import("../types").ActiveTool;
1540
+ preferredSelectionTool: {
1541
+ type: "selection" | "lasso";
1542
+ initialized: boolean;
1543
+ };
1509
1544
  penMode: boolean;
1510
1545
  penDetected: boolean;
1511
1546
  exportBackground: boolean;
@@ -1537,8 +1572,8 @@ export declare const actionExportWithDarkMode: {
1537
1572
  zoom: Readonly<{
1538
1573
  value: import("../types").NormalizedZoomValue;
1539
1574
  }>;
1540
- openMenu: "canvas" | "shape" | null;
1541
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1575
+ openMenu: "canvas" | null;
1576
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1542
1577
  openSidebar: {
1543
1578
  name: string;
1544
1579
  tab?: string | undefined;
@@ -1639,6 +1674,7 @@ export declare const actionExportWithDarkMode: {
1639
1674
  lockedMultiSelections: {
1640
1675
  [groupId: string]: true;
1641
1676
  };
1677
+ stylesPanelMode: "compact" | "full" | "mobile";
1642
1678
  };
1643
1679
  captureUpdate: "EVENTUALLY";
1644
1680
  };
@@ -41,6 +41,7 @@ export declare const actionFinalize: {
41
41
  segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
42
42
  elbowed: boolean;
43
43
  customLineAngle: number | null;
44
+ isEditing: boolean;
44
45
  };
45
46
  suggestedBindings: never[];
46
47
  };
@@ -49,7 +50,7 @@ export declare const actionFinalize: {
49
50
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[] | undefined;
50
51
  appState: {
51
52
  cursorButton: "up";
52
- editingLinearElement: null;
53
+ selectedLinearElement: LinearElementEditor;
53
54
  contextMenu: {
54
55
  items: import("../components/ContextMenu").ContextMenuItems;
55
56
  top: number;
@@ -84,6 +85,10 @@ export declare const actionFinalize: {
84
85
  locked: boolean;
85
86
  fromSelection: boolean;
86
87
  } & import("../types").ActiveTool;
88
+ preferredSelectionTool: {
89
+ type: "selection" | "lasso";
90
+ initialized: boolean;
91
+ };
87
92
  penMode: boolean;
88
93
  penDetected: boolean;
89
94
  exportBackground: boolean;
@@ -115,8 +120,8 @@ export declare const actionFinalize: {
115
120
  zoom: Readonly<{
116
121
  value: import("../types").NormalizedZoomValue;
117
122
  }>;
118
- openMenu: "canvas" | "shape" | null;
119
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
123
+ openMenu: "canvas" | null;
124
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
120
125
  openSidebar: {
121
126
  name: string;
122
127
  tab?: string | undefined;
@@ -198,7 +203,6 @@ export declare const actionFinalize: {
198
203
  data: import("../charts").Spreadsheet;
199
204
  };
200
205
  showHyperlinkPopup: false | "editor" | "info";
201
- selectedLinearElement: LinearElementEditor | null;
202
206
  snapLines: readonly import("../snapping").SnapLine[];
203
207
  originSnapOffset: {
204
208
  x: number;
@@ -217,6 +221,7 @@ export declare const actionFinalize: {
217
221
  lockedMultiSelections: {
218
222
  [groupId: string]: true;
219
223
  };
224
+ stylesPanelMode: "compact" | "full" | "mobile";
220
225
  };
221
226
  captureUpdate: "IMMEDIATELY";
222
227
  } | {
@@ -258,7 +263,10 @@ export declare const actionFinalize: {
258
263
  };
259
264
  editingFrame: string | null;
260
265
  elementsToHighlight: NonDeleted<ExcalidrawElement>[] | null;
261
- editingLinearElement: LinearElementEditor | null;
266
+ preferredSelectionTool: {
267
+ type: "selection" | "lasso";
268
+ initialized: boolean;
269
+ };
262
270
  penMode: boolean;
263
271
  penDetected: boolean;
264
272
  exportBackground: boolean;
@@ -290,8 +298,8 @@ export declare const actionFinalize: {
290
298
  zoom: Readonly<{
291
299
  value: import("../types").NormalizedZoomValue;
292
300
  }>;
293
- openMenu: "canvas" | "shape" | null;
294
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
301
+ openMenu: "canvas" | null;
302
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
295
303
  openSidebar: {
296
304
  name: string;
297
305
  tab?: string | undefined;
@@ -388,6 +396,7 @@ export declare const actionFinalize: {
388
396
  lockedMultiSelections: {
389
397
  [groupId: string]: true;
390
398
  };
399
+ stylesPanelMode: "compact" | "full" | "mobile";
391
400
  };
392
401
  captureUpdate: "IMMEDIATELY";
393
402
  };
@@ -40,12 +40,15 @@ export declare const actionSelectAllElementsInFrame: {
40
40
  editingFrame: string | null;
41
41
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
42
42
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
43
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
44
43
  activeTool: {
45
44
  lastActiveTool: import("../types").ActiveTool | null;
46
45
  locked: boolean;
47
46
  fromSelection: boolean;
48
47
  } & import("../types").ActiveTool;
48
+ preferredSelectionTool: {
49
+ type: "selection" | "lasso";
50
+ initialized: boolean;
51
+ };
49
52
  penMode: boolean;
50
53
  penDetected: boolean;
51
54
  exportBackground: boolean;
@@ -78,8 +81,8 @@ export declare const actionSelectAllElementsInFrame: {
78
81
  zoom: Readonly<{
79
82
  value: import("../types").NormalizedZoomValue;
80
83
  }>;
81
- openMenu: "canvas" | "shape" | null;
82
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
84
+ openMenu: "canvas" | null;
85
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
83
86
  openSidebar: {
84
87
  name: string;
85
88
  tab?: string | undefined;
@@ -177,6 +180,7 @@ export declare const actionSelectAllElementsInFrame: {
177
180
  lockedMultiSelections: {
178
181
  [groupId: string]: true;
179
182
  };
183
+ stylesPanelMode: "compact" | "full" | "mobile";
180
184
  };
181
185
  captureUpdate: "IMMEDIATELY";
182
186
  } | {
@@ -229,12 +233,15 @@ export declare const actionRemoveAllElementsFromFrame: {
229
233
  editingFrame: string | null;
230
234
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
231
235
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
232
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
233
236
  activeTool: {
234
237
  lastActiveTool: import("../types").ActiveTool | null;
235
238
  locked: boolean;
236
239
  fromSelection: boolean;
237
240
  } & import("../types").ActiveTool;
241
+ preferredSelectionTool: {
242
+ type: "selection" | "lasso";
243
+ initialized: boolean;
244
+ };
238
245
  penMode: boolean;
239
246
  penDetected: boolean;
240
247
  exportBackground: boolean;
@@ -267,8 +274,8 @@ export declare const actionRemoveAllElementsFromFrame: {
267
274
  zoom: Readonly<{
268
275
  value: import("../types").NormalizedZoomValue;
269
276
  }>;
270
- openMenu: "canvas" | "shape" | null;
271
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
277
+ openMenu: "canvas" | null;
278
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
272
279
  openSidebar: {
273
280
  name: string;
274
281
  tab?: string | undefined;
@@ -366,6 +373,7 @@ export declare const actionRemoveAllElementsFromFrame: {
366
373
  lockedMultiSelections: {
367
374
  [groupId: string]: true;
368
375
  };
376
+ stylesPanelMode: "compact" | "full" | "mobile";
369
377
  };
370
378
  captureUpdate: "IMMEDIATELY";
371
379
  } | {
@@ -416,12 +424,15 @@ export declare const actionupdateFrameRendering: {
416
424
  editingFrame: string | null;
417
425
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
418
426
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
419
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
420
427
  activeTool: {
421
428
  lastActiveTool: import("../types").ActiveTool | null;
422
429
  locked: boolean;
423
430
  fromSelection: boolean;
424
431
  } & import("../types").ActiveTool;
432
+ preferredSelectionTool: {
433
+ type: "selection" | "lasso";
434
+ initialized: boolean;
435
+ };
425
436
  penMode: boolean;
426
437
  penDetected: boolean;
427
438
  exportBackground: boolean;
@@ -454,8 +465,8 @@ export declare const actionupdateFrameRendering: {
454
465
  zoom: Readonly<{
455
466
  value: import("../types").NormalizedZoomValue;
456
467
  }>;
457
- openMenu: "canvas" | "shape" | null;
458
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
468
+ openMenu: "canvas" | null;
469
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
459
470
  openSidebar: {
460
471
  name: string;
461
472
  tab?: string | undefined;
@@ -556,6 +567,7 @@ export declare const actionupdateFrameRendering: {
556
567
  lockedMultiSelections: {
557
568
  [groupId: string]: true;
558
569
  };
570
+ stylesPanelMode: "compact" | "full" | "mobile";
559
571
  };
560
572
  captureUpdate: "EVENTUALLY";
561
573
  };
@@ -608,7 +620,10 @@ export declare const actionSetFrameAsActiveTool: {
608
620
  editingFrame: string | null;
609
621
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
610
622
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
611
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
623
+ preferredSelectionTool: {
624
+ type: "selection" | "lasso";
625
+ initialized: boolean;
626
+ };
612
627
  penMode: boolean;
613
628
  penDetected: boolean;
614
629
  exportBackground: boolean;
@@ -641,8 +656,8 @@ export declare const actionSetFrameAsActiveTool: {
641
656
  zoom: Readonly<{
642
657
  value: import("../types").NormalizedZoomValue;
643
658
  }>;
644
- openMenu: "canvas" | "shape" | null;
645
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
659
+ openMenu: "canvas" | null;
660
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
646
661
  openSidebar: {
647
662
  name: string;
648
663
  tab?: string | undefined;
@@ -743,6 +758,7 @@ export declare const actionSetFrameAsActiveTool: {
743
758
  lockedMultiSelections: {
744
759
  [groupId: string]: true;
745
760
  };
761
+ stylesPanelMode: "compact" | "full" | "mobile";
746
762
  };
747
763
  captureUpdate: "EVENTUALLY";
748
764
  };
@@ -50,12 +50,15 @@ export declare const actionGroup: {
50
50
  editingFrame: string | null;
51
51
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
52
52
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
53
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
54
53
  activeTool: {
55
54
  lastActiveTool: import("../types").ActiveTool | null;
56
55
  locked: boolean;
57
56
  fromSelection: boolean;
58
57
  } & import("../types").ActiveTool;
58
+ preferredSelectionTool: {
59
+ type: "selection" | "lasso";
60
+ initialized: boolean;
61
+ };
59
62
  penMode: boolean;
60
63
  penDetected: boolean;
61
64
  exportBackground: boolean;
@@ -88,8 +91,8 @@ export declare const actionGroup: {
88
91
  zoom: Readonly<{
89
92
  value: import("../types").NormalizedZoomValue;
90
93
  }>;
91
- openMenu: "canvas" | "shape" | null;
92
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
94
+ openMenu: "canvas" | null;
95
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
93
96
  openSidebar: {
94
97
  name: string;
95
98
  tab?: string | undefined;
@@ -183,6 +186,7 @@ export declare const actionGroup: {
183
186
  lockedMultiSelections: {
184
187
  [groupId: string]: true;
185
188
  };
189
+ stylesPanelMode: "compact" | "full" | "mobile";
186
190
  };
187
191
  elements: OrderedExcalidrawElement[];
188
192
  captureUpdate: "IMMEDIATELY";
@@ -242,12 +246,15 @@ export declare const actionUngroup: {
242
246
  editingFrame: string | null;
243
247
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
244
248
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
245
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
246
249
  activeTool: {
247
250
  lastActiveTool: import("../types").ActiveTool | null;
248
251
  locked: boolean;
249
252
  fromSelection: boolean;
250
253
  } & import("../types").ActiveTool;
254
+ preferredSelectionTool: {
255
+ type: "selection" | "lasso";
256
+ initialized: boolean;
257
+ };
251
258
  penMode: boolean;
252
259
  penDetected: boolean;
253
260
  exportBackground: boolean;
@@ -280,8 +287,8 @@ export declare const actionUngroup: {
280
287
  zoom: Readonly<{
281
288
  value: import("../types").NormalizedZoomValue;
282
289
  }>;
283
- openMenu: "canvas" | "shape" | null;
284
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
290
+ openMenu: "canvas" | null;
291
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
285
292
  openSidebar: {
286
293
  name: string;
287
294
  tab?: string | undefined;
@@ -375,6 +382,7 @@ export declare const actionUngroup: {
375
382
  lockedMultiSelections: {
376
383
  [groupId: string]: true;
377
384
  };
385
+ stylesPanelMode: "compact" | "full" | "mobile";
378
386
  };
379
387
  elements: OrderedExcalidrawElement[];
380
388
  captureUpdate: "IMMEDIATELY";