@excalidraw/common 0.18.0-c65b684e9 → 0.18.0-d1f3982

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 (88) hide show
  1. package/dist/dev/index.js +178 -44
  2. package/dist/dev/index.js.map +3 -3
  3. package/dist/prod/index.js +3 -3
  4. package/dist/types/common/src/constants.d.ts +18 -15
  5. package/dist/types/common/src/editorInterface.d.ts +34 -0
  6. package/dist/types/common/src/index.d.ts +1 -0
  7. package/dist/types/common/src/utils.d.ts +2 -1
  8. package/dist/types/element/src/Scene.d.ts +6 -2
  9. package/dist/types/element/src/bounds.d.ts +1 -1
  10. package/dist/types/element/src/delta.d.ts +6 -4
  11. package/dist/types/element/src/index.d.ts +1 -0
  12. package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
  13. package/dist/types/element/src/renderElement.d.ts +4 -1
  14. package/dist/types/element/src/resizeTest.d.ts +5 -4
  15. package/dist/types/element/src/store.d.ts +6 -1
  16. package/dist/types/element/src/textElement.d.ts +1 -1
  17. package/dist/types/element/src/transformHandles.d.ts +5 -4
  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 -54
  21. package/dist/types/excalidraw/actions/actionClipboard.d.ts +42 -18
  22. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +7 -3
  23. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +22 -10
  24. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +1 -1
  25. package/dist/types/excalidraw/actions/actionElementLink.d.ts +7 -3
  26. package/dist/types/excalidraw/actions/actionElementLock.d.ts +14 -6
  27. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +7 -3
  28. package/dist/types/excalidraw/actions/actionExport.d.ts +63 -27
  29. package/dist/types/excalidraw/actions/actionFinalize.d.ts +14 -6
  30. package/dist/types/excalidraw/actions/actionFrame.d.ts +28 -12
  31. package/dist/types/excalidraw/actions/actionGroup.d.ts +14 -6
  32. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +8 -4
  33. package/dist/types/excalidraw/actions/actionLink.d.ts +5 -1
  34. package/dist/types/excalidraw/actions/actionMenu.d.ts +7 -369
  35. package/dist/types/excalidraw/actions/actionNavigate.d.ts +14 -6
  36. package/dist/types/excalidraw/actions/actionProperties.d.ts +122 -53
  37. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +7 -3
  38. package/dist/types/excalidraw/actions/actionStyles.d.ts +7 -3
  39. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +7 -3
  40. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +7 -3
  41. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +7 -3
  42. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +7 -3
  43. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +7 -3
  44. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +7 -3
  45. package/dist/types/excalidraw/actions/index.d.ts +2 -2
  46. package/dist/types/excalidraw/actions/types.d.ts +1 -1
  47. package/dist/types/excalidraw/appState.d.ts +5 -1
  48. package/dist/types/excalidraw/clipboard.d.ts +64 -1
  49. package/dist/types/excalidraw/components/Actions.d.ts +17 -3
  50. package/dist/types/excalidraw/components/App.d.ts +28 -23
  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/ExcalidrawLogo.d.ts +1 -1
  56. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  57. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
  58. package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
  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/Popover.d.ts +2 -1
  65. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
  66. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
  67. package/dist/types/excalidraw/components/TextField.d.ts +1 -0
  68. package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
  69. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +3 -2
  70. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +4 -2
  71. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
  72. package/dist/types/excalidraw/components/icons.d.ts +5 -0
  73. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +13 -1
  74. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +0 -3
  75. package/dist/types/excalidraw/components/shapes.d.ts +129 -1
  76. package/dist/types/excalidraw/data/blob.d.ts +3 -7
  77. package/dist/types/excalidraw/data/reconcile.d.ts +1 -0
  78. package/dist/types/excalidraw/data/restore.d.ts +6 -1
  79. package/dist/types/excalidraw/data/types.d.ts +4 -1
  80. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  81. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  82. package/dist/types/excalidraw/index.d.ts +3 -4
  83. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +1 -1
  84. package/dist/types/excalidraw/scene/types.d.ts +3 -3
  85. package/dist/types/excalidraw/shortcut.d.ts +1 -0
  86. package/dist/types/excalidraw/types.d.ts +23 -17
  87. package/dist/types/math/src/segment.d.ts +1 -0
  88. package/package.json +1 -1
@@ -42,6 +42,10 @@ export declare const actionChangeProjectName: {
42
42
  locked: boolean;
43
43
  fromSelection: boolean;
44
44
  } & import("../types").ActiveTool;
45
+ preferredSelectionTool: {
46
+ type: "selection" | "lasso";
47
+ initialized: boolean;
48
+ };
45
49
  penMode: boolean;
46
50
  penDetected: boolean;
47
51
  exportBackground: boolean;
@@ -73,8 +77,8 @@ export declare const actionChangeProjectName: {
73
77
  zoom: Readonly<{
74
78
  value: import("../types").NormalizedZoomValue;
75
79
  }>;
76
- openMenu: "canvas" | "shape" | null;
77
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
80
+ openMenu: "canvas" | null;
81
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
78
82
  openSidebar: {
79
83
  name: string;
80
84
  tab?: string | undefined;
@@ -155,7 +159,7 @@ export declare const actionChangeProjectName: {
155
159
  shown: true;
156
160
  data: import("../charts").Spreadsheet;
157
161
  };
158
- showHyperlinkPopup: false | "editor" | "info";
162
+ showHyperlinkPopup: false | "info" | "editor";
159
163
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
160
164
  snapLines: readonly import("../snapping").SnapLine[];
161
165
  originSnapOffset: {
@@ -226,6 +230,10 @@ export declare const actionChangeExportScale: {
226
230
  locked: boolean;
227
231
  fromSelection: boolean;
228
232
  } & import("../types").ActiveTool;
233
+ preferredSelectionTool: {
234
+ type: "selection" | "lasso";
235
+ initialized: boolean;
236
+ };
229
237
  penMode: boolean;
230
238
  penDetected: boolean;
231
239
  exportBackground: boolean;
@@ -257,8 +265,8 @@ export declare const actionChangeExportScale: {
257
265
  zoom: Readonly<{
258
266
  value: import("../types").NormalizedZoomValue;
259
267
  }>;
260
- openMenu: "canvas" | "shape" | null;
261
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
268
+ openMenu: "canvas" | null;
269
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
262
270
  openSidebar: {
263
271
  name: string;
264
272
  tab?: string | undefined;
@@ -339,7 +347,7 @@ export declare const actionChangeExportScale: {
339
347
  shown: true;
340
348
  data: import("../charts").Spreadsheet;
341
349
  };
342
- showHyperlinkPopup: false | "editor" | "info";
350
+ showHyperlinkPopup: false | "info" | "editor";
343
351
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
344
352
  snapLines: readonly import("../snapping").SnapLine[];
345
353
  originSnapOffset: {
@@ -410,6 +418,10 @@ export declare const actionChangeExportBackground: {
410
418
  locked: boolean;
411
419
  fromSelection: boolean;
412
420
  } & import("../types").ActiveTool;
421
+ preferredSelectionTool: {
422
+ type: "selection" | "lasso";
423
+ initialized: boolean;
424
+ };
413
425
  penMode: boolean;
414
426
  penDetected: boolean;
415
427
  exportEmbedScene: boolean;
@@ -441,8 +453,8 @@ export declare const actionChangeExportBackground: {
441
453
  zoom: Readonly<{
442
454
  value: import("../types").NormalizedZoomValue;
443
455
  }>;
444
- openMenu: "canvas" | "shape" | null;
445
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
456
+ openMenu: "canvas" | null;
457
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
446
458
  openSidebar: {
447
459
  name: string;
448
460
  tab?: string | undefined;
@@ -523,7 +535,7 @@ export declare const actionChangeExportBackground: {
523
535
  shown: true;
524
536
  data: import("../charts").Spreadsheet;
525
537
  };
526
- showHyperlinkPopup: false | "editor" | "info";
538
+ showHyperlinkPopup: false | "info" | "editor";
527
539
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
528
540
  snapLines: readonly import("../snapping").SnapLine[];
529
541
  originSnapOffset: {
@@ -594,6 +606,10 @@ export declare const actionChangeExportEmbedScene: {
594
606
  locked: boolean;
595
607
  fromSelection: boolean;
596
608
  } & import("../types").ActiveTool;
609
+ preferredSelectionTool: {
610
+ type: "selection" | "lasso";
611
+ initialized: boolean;
612
+ };
597
613
  penMode: boolean;
598
614
  penDetected: boolean;
599
615
  exportBackground: boolean;
@@ -625,8 +641,8 @@ export declare const actionChangeExportEmbedScene: {
625
641
  zoom: Readonly<{
626
642
  value: import("../types").NormalizedZoomValue;
627
643
  }>;
628
- openMenu: "canvas" | "shape" | null;
629
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
644
+ openMenu: "canvas" | null;
645
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
630
646
  openSidebar: {
631
647
  name: string;
632
648
  tab?: string | undefined;
@@ -707,7 +723,7 @@ export declare const actionChangeExportEmbedScene: {
707
723
  shown: true;
708
724
  data: import("../charts").Spreadsheet;
709
725
  };
710
- showHyperlinkPopup: false | "editor" | "info";
726
+ showHyperlinkPopup: false | "info" | "editor";
711
727
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
712
728
  snapLines: readonly import("../snapping").SnapLine[];
713
729
  originSnapOffset: {
@@ -783,6 +799,10 @@ export declare const actionSaveToActiveFile: {
783
799
  locked: boolean;
784
800
  fromSelection: boolean;
785
801
  } & import("../types").ActiveTool;
802
+ preferredSelectionTool: {
803
+ type: "selection" | "lasso";
804
+ initialized: boolean;
805
+ };
786
806
  penMode: boolean;
787
807
  penDetected: boolean;
788
808
  exportBackground: boolean;
@@ -815,8 +835,8 @@ export declare const actionSaveToActiveFile: {
815
835
  zoom: Readonly<{
816
836
  value: import("../types").NormalizedZoomValue;
817
837
  }>;
818
- openMenu: "canvas" | "shape" | null;
819
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
838
+ openMenu: "canvas" | null;
839
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
820
840
  openSidebar: {
821
841
  name: string;
822
842
  tab?: string | undefined;
@@ -891,7 +911,7 @@ export declare const actionSaveToActiveFile: {
891
911
  shown: true;
892
912
  data: import("../charts").Spreadsheet;
893
913
  };
894
- showHyperlinkPopup: false | "editor" | "info";
914
+ showHyperlinkPopup: false | "info" | "editor";
895
915
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
896
916
  snapLines: readonly import("../snapping").SnapLine[];
897
917
  originSnapOffset: {
@@ -970,6 +990,10 @@ export declare const actionSaveFileToDisk: {
970
990
  locked: boolean;
971
991
  fromSelection: boolean;
972
992
  } & import("../types").ActiveTool;
993
+ preferredSelectionTool: {
994
+ type: "selection" | "lasso";
995
+ initialized: boolean;
996
+ };
973
997
  penMode: boolean;
974
998
  penDetected: boolean;
975
999
  exportBackground: boolean;
@@ -1002,8 +1026,8 @@ export declare const actionSaveFileToDisk: {
1002
1026
  zoom: Readonly<{
1003
1027
  value: import("../types").NormalizedZoomValue;
1004
1028
  }>;
1005
- openMenu: "canvas" | "shape" | null;
1006
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1029
+ openMenu: "canvas" | null;
1030
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1007
1031
  openSidebar: {
1008
1032
  name: string;
1009
1033
  tab?: string | undefined;
@@ -1067,7 +1091,7 @@ export declare const actionSaveFileToDisk: {
1067
1091
  shown: true;
1068
1092
  data: import("../charts").Spreadsheet;
1069
1093
  };
1070
- showHyperlinkPopup: false | "editor" | "info";
1094
+ showHyperlinkPopup: false | "info" | "editor";
1071
1095
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1072
1096
  snapLines: readonly import("../snapping").SnapLine[];
1073
1097
  originSnapOffset: {
@@ -1199,6 +1223,10 @@ export declare const actionLoadScene: {
1199
1223
  locked: boolean;
1200
1224
  fromSelection: boolean;
1201
1225
  } & import("../types").ActiveTool;
1226
+ preferredSelectionTool: {
1227
+ type: "selection" | "lasso";
1228
+ initialized: boolean;
1229
+ };
1202
1230
  penMode: boolean;
1203
1231
  penDetected: boolean;
1204
1232
  exportBackground: boolean;
@@ -1223,8 +1251,8 @@ export declare const actionLoadScene: {
1223
1251
  cursorButton: "up" | "down";
1224
1252
  scrolledOutside: boolean;
1225
1253
  isResizing: boolean;
1226
- openMenu: "canvas" | "shape" | null;
1227
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1254
+ openMenu: "canvas" | null;
1255
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1228
1256
  openSidebar: {
1229
1257
  name: string;
1230
1258
  tab?: string | undefined;
@@ -1260,7 +1288,7 @@ export declare const actionLoadScene: {
1260
1288
  shown: true;
1261
1289
  data: import("../charts").Spreadsheet;
1262
1290
  };
1263
- showHyperlinkPopup: false | "editor" | "info";
1291
+ showHyperlinkPopup: false | "info" | "editor";
1264
1292
  originSnapOffset: {
1265
1293
  x: number;
1266
1294
  y: number;
@@ -1311,6 +1339,10 @@ export declare const actionLoadScene: {
1311
1339
  locked: boolean;
1312
1340
  fromSelection: boolean;
1313
1341
  } & import("../types").ActiveTool;
1342
+ preferredSelectionTool: {
1343
+ type: "selection" | "lasso";
1344
+ initialized: boolean;
1345
+ };
1314
1346
  penMode: boolean;
1315
1347
  penDetected: boolean;
1316
1348
  exportBackground: boolean;
@@ -1343,8 +1375,8 @@ export declare const actionLoadScene: {
1343
1375
  zoom: Readonly<{
1344
1376
  value: import("../types").NormalizedZoomValue;
1345
1377
  }>;
1346
- openMenu: "canvas" | "shape" | null;
1347
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1378
+ openMenu: "canvas" | null;
1379
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1348
1380
  openSidebar: {
1349
1381
  name: string;
1350
1382
  tab?: string | undefined;
@@ -1425,7 +1457,7 @@ export declare const actionLoadScene: {
1425
1457
  shown: true;
1426
1458
  data: import("../charts").Spreadsheet;
1427
1459
  };
1428
- showHyperlinkPopup: false | "editor" | "info";
1460
+ showHyperlinkPopup: false | "info" | "editor";
1429
1461
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1430
1462
  snapLines: readonly import("../snapping").SnapLine[];
1431
1463
  originSnapOffset: {
@@ -1497,6 +1529,10 @@ export declare const actionExportWithDarkMode: {
1497
1529
  locked: boolean;
1498
1530
  fromSelection: boolean;
1499
1531
  } & import("../types").ActiveTool;
1532
+ preferredSelectionTool: {
1533
+ type: "selection" | "lasso";
1534
+ initialized: boolean;
1535
+ };
1500
1536
  penMode: boolean;
1501
1537
  penDetected: boolean;
1502
1538
  exportBackground: boolean;
@@ -1528,8 +1564,8 @@ export declare const actionExportWithDarkMode: {
1528
1564
  zoom: Readonly<{
1529
1565
  value: import("../types").NormalizedZoomValue;
1530
1566
  }>;
1531
- openMenu: "canvas" | "shape" | null;
1532
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1567
+ openMenu: "canvas" | null;
1568
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1533
1569
  openSidebar: {
1534
1570
  name: string;
1535
1571
  tab?: string | undefined;
@@ -1610,7 +1646,7 @@ export declare const actionExportWithDarkMode: {
1610
1646
  shown: true;
1611
1647
  data: import("../charts").Spreadsheet;
1612
1648
  };
1613
- showHyperlinkPopup: false | "editor" | "info";
1649
+ showHyperlinkPopup: false | "info" | "editor";
1614
1650
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1615
1651
  snapLines: readonly import("../snapping").SnapLine[];
1616
1652
  originSnapOffset: {
@@ -85,6 +85,10 @@ export declare const actionFinalize: {
85
85
  locked: boolean;
86
86
  fromSelection: boolean;
87
87
  } & import("../types").ActiveTool;
88
+ preferredSelectionTool: {
89
+ type: "selection" | "lasso";
90
+ initialized: boolean;
91
+ };
88
92
  penMode: boolean;
89
93
  penDetected: boolean;
90
94
  exportBackground: boolean;
@@ -116,8 +120,8 @@ export declare const actionFinalize: {
116
120
  zoom: Readonly<{
117
121
  value: import("../types").NormalizedZoomValue;
118
122
  }>;
119
- openMenu: "canvas" | "shape" | null;
120
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
123
+ openMenu: "canvas" | null;
124
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
121
125
  openSidebar: {
122
126
  name: string;
123
127
  tab?: string | undefined;
@@ -198,7 +202,7 @@ export declare const actionFinalize: {
198
202
  shown: true;
199
203
  data: import("../charts").Spreadsheet;
200
204
  };
201
- showHyperlinkPopup: false | "editor" | "info";
205
+ showHyperlinkPopup: false | "info" | "editor";
202
206
  snapLines: readonly import("../snapping").SnapLine[];
203
207
  originSnapOffset: {
204
208
  x: number;
@@ -258,6 +262,10 @@ export declare const actionFinalize: {
258
262
  };
259
263
  editingFrame: string | null;
260
264
  elementsToHighlight: NonDeleted<ExcalidrawElement>[] | null;
265
+ preferredSelectionTool: {
266
+ type: "selection" | "lasso";
267
+ initialized: boolean;
268
+ };
261
269
  penMode: boolean;
262
270
  penDetected: boolean;
263
271
  exportBackground: boolean;
@@ -289,8 +297,8 @@ export declare const actionFinalize: {
289
297
  zoom: Readonly<{
290
298
  value: import("../types").NormalizedZoomValue;
291
299
  }>;
292
- openMenu: "canvas" | "shape" | null;
293
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
300
+ openMenu: "canvas" | null;
301
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
294
302
  openSidebar: {
295
303
  name: string;
296
304
  tab?: string | undefined;
@@ -368,7 +376,7 @@ export declare const actionFinalize: {
368
376
  shown: true;
369
377
  data: import("../charts").Spreadsheet;
370
378
  };
371
- showHyperlinkPopup: false | "editor" | "info";
379
+ showHyperlinkPopup: false | "info" | "editor";
372
380
  snapLines: readonly import("../snapping").SnapLine[];
373
381
  originSnapOffset: {
374
382
  x: number;
@@ -45,6 +45,10 @@ export declare const actionSelectAllElementsInFrame: {
45
45
  locked: boolean;
46
46
  fromSelection: boolean;
47
47
  } & import("../types").ActiveTool;
48
+ preferredSelectionTool: {
49
+ type: "selection" | "lasso";
50
+ initialized: boolean;
51
+ };
48
52
  penMode: boolean;
49
53
  penDetected: boolean;
50
54
  exportBackground: boolean;
@@ -77,8 +81,8 @@ export declare const actionSelectAllElementsInFrame: {
77
81
  zoom: Readonly<{
78
82
  value: import("../types").NormalizedZoomValue;
79
83
  }>;
80
- openMenu: "canvas" | "shape" | null;
81
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
84
+ openMenu: "canvas" | null;
85
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
82
86
  openSidebar: {
83
87
  name: string;
84
88
  tab?: string | undefined;
@@ -156,7 +160,7 @@ export declare const actionSelectAllElementsInFrame: {
156
160
  shown: true;
157
161
  data: import("../charts").Spreadsheet;
158
162
  };
159
- showHyperlinkPopup: false | "editor" | "info";
163
+ showHyperlinkPopup: false | "info" | "editor";
160
164
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
161
165
  snapLines: readonly import("../snapping").SnapLine[];
162
166
  originSnapOffset: {
@@ -233,6 +237,10 @@ export declare const actionRemoveAllElementsFromFrame: {
233
237
  locked: boolean;
234
238
  fromSelection: boolean;
235
239
  } & import("../types").ActiveTool;
240
+ preferredSelectionTool: {
241
+ type: "selection" | "lasso";
242
+ initialized: boolean;
243
+ };
236
244
  penMode: boolean;
237
245
  penDetected: boolean;
238
246
  exportBackground: boolean;
@@ -265,8 +273,8 @@ export declare const actionRemoveAllElementsFromFrame: {
265
273
  zoom: Readonly<{
266
274
  value: import("../types").NormalizedZoomValue;
267
275
  }>;
268
- openMenu: "canvas" | "shape" | null;
269
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
276
+ openMenu: "canvas" | null;
277
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
270
278
  openSidebar: {
271
279
  name: string;
272
280
  tab?: string | undefined;
@@ -344,7 +352,7 @@ export declare const actionRemoveAllElementsFromFrame: {
344
352
  shown: true;
345
353
  data: import("../charts").Spreadsheet;
346
354
  };
347
- showHyperlinkPopup: false | "editor" | "info";
355
+ showHyperlinkPopup: false | "info" | "editor";
348
356
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
349
357
  snapLines: readonly import("../snapping").SnapLine[];
350
358
  originSnapOffset: {
@@ -419,6 +427,10 @@ export declare const actionupdateFrameRendering: {
419
427
  locked: boolean;
420
428
  fromSelection: boolean;
421
429
  } & import("../types").ActiveTool;
430
+ preferredSelectionTool: {
431
+ type: "selection" | "lasso";
432
+ initialized: boolean;
433
+ };
422
434
  penMode: boolean;
423
435
  penDetected: boolean;
424
436
  exportBackground: boolean;
@@ -451,8 +463,8 @@ export declare const actionupdateFrameRendering: {
451
463
  zoom: Readonly<{
452
464
  value: import("../types").NormalizedZoomValue;
453
465
  }>;
454
- openMenu: "canvas" | "shape" | null;
455
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
466
+ openMenu: "canvas" | null;
467
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
456
468
  openSidebar: {
457
469
  name: string;
458
470
  tab?: string | undefined;
@@ -533,7 +545,7 @@ export declare const actionupdateFrameRendering: {
533
545
  shown: true;
534
546
  data: import("../charts").Spreadsheet;
535
547
  };
536
- showHyperlinkPopup: false | "editor" | "info";
548
+ showHyperlinkPopup: false | "info" | "editor";
537
549
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
538
550
  snapLines: readonly import("../snapping").SnapLine[];
539
551
  originSnapOffset: {
@@ -605,6 +617,10 @@ export declare const actionSetFrameAsActiveTool: {
605
617
  editingFrame: string | null;
606
618
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
607
619
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
620
+ preferredSelectionTool: {
621
+ type: "selection" | "lasso";
622
+ initialized: boolean;
623
+ };
608
624
  penMode: boolean;
609
625
  penDetected: boolean;
610
626
  exportBackground: boolean;
@@ -637,8 +653,8 @@ export declare const actionSetFrameAsActiveTool: {
637
653
  zoom: Readonly<{
638
654
  value: import("../types").NormalizedZoomValue;
639
655
  }>;
640
- openMenu: "canvas" | "shape" | null;
641
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
656
+ openMenu: "canvas" | null;
657
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
642
658
  openSidebar: {
643
659
  name: string;
644
660
  tab?: string | undefined;
@@ -719,7 +735,7 @@ export declare const actionSetFrameAsActiveTool: {
719
735
  shown: true;
720
736
  data: import("../charts").Spreadsheet;
721
737
  };
722
- showHyperlinkPopup: false | "editor" | "info";
738
+ showHyperlinkPopup: false | "info" | "editor";
723
739
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
724
740
  snapLines: readonly import("../snapping").SnapLine[];
725
741
  originSnapOffset: {
@@ -55,6 +55,10 @@ export declare const actionGroup: {
55
55
  locked: boolean;
56
56
  fromSelection: boolean;
57
57
  } & import("../types").ActiveTool;
58
+ preferredSelectionTool: {
59
+ type: "selection" | "lasso";
60
+ initialized: boolean;
61
+ };
58
62
  penMode: boolean;
59
63
  penDetected: boolean;
60
64
  exportBackground: boolean;
@@ -87,8 +91,8 @@ export declare const actionGroup: {
87
91
  zoom: Readonly<{
88
92
  value: import("../types").NormalizedZoomValue;
89
93
  }>;
90
- openMenu: "canvas" | "shape" | null;
91
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
94
+ openMenu: "canvas" | null;
95
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
92
96
  openSidebar: {
93
97
  name: string;
94
98
  tab?: string | undefined;
@@ -162,7 +166,7 @@ export declare const actionGroup: {
162
166
  shown: true;
163
167
  data: import("../charts").Spreadsheet;
164
168
  };
165
- showHyperlinkPopup: false | "editor" | "info";
169
+ showHyperlinkPopup: false | "info" | "editor";
166
170
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
167
171
  snapLines: readonly import("../snapping").SnapLine[];
168
172
  originSnapOffset: {
@@ -246,6 +250,10 @@ export declare const actionUngroup: {
246
250
  locked: boolean;
247
251
  fromSelection: boolean;
248
252
  } & import("../types").ActiveTool;
253
+ preferredSelectionTool: {
254
+ type: "selection" | "lasso";
255
+ initialized: boolean;
256
+ };
249
257
  penMode: boolean;
250
258
  penDetected: boolean;
251
259
  exportBackground: boolean;
@@ -278,8 +286,8 @@ export declare const actionUngroup: {
278
286
  zoom: Readonly<{
279
287
  value: import("../types").NormalizedZoomValue;
280
288
  }>;
281
- openMenu: "canvas" | "shape" | null;
282
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
289
+ openMenu: "canvas" | null;
290
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
283
291
  openSidebar: {
284
292
  name: string;
285
293
  tab?: string | undefined;
@@ -353,7 +361,7 @@ export declare const actionUngroup: {
353
361
  shown: true;
354
362
  data: import("../charts").Spreadsheet;
355
363
  };
356
- showHyperlinkPopup: false | "editor" | "info";
364
+ showHyperlinkPopup: false | "info" | "editor";
357
365
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
358
366
  snapLines: readonly import("../snapping").SnapLine[];
359
367
  originSnapOffset: {
@@ -78,6 +78,10 @@ export declare const actionToggleLinearEditor: {
78
78
  locked: boolean;
79
79
  fromSelection: boolean;
80
80
  } & import("../types").ActiveTool;
81
+ preferredSelectionTool: {
82
+ type: "selection" | "lasso";
83
+ initialized: boolean;
84
+ };
81
85
  penMode: boolean;
82
86
  penDetected: boolean;
83
87
  exportBackground: boolean;
@@ -110,8 +114,8 @@ export declare const actionToggleLinearEditor: {
110
114
  zoom: Readonly<{
111
115
  value: import("../types").NormalizedZoomValue;
112
116
  }>;
113
- openMenu: "canvas" | "shape" | null;
114
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
117
+ openMenu: "canvas" | null;
118
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
115
119
  openSidebar: {
116
120
  name: string;
117
121
  tab?: string | undefined;
@@ -192,7 +196,7 @@ export declare const actionToggleLinearEditor: {
192
196
  shown: true;
193
197
  data: import("../charts").Spreadsheet;
194
198
  };
195
- showHyperlinkPopup: false | "editor" | "info";
199
+ showHyperlinkPopup: false | "info" | "editor";
196
200
  snapLines: readonly import("../snapping").SnapLine[];
197
201
  originSnapOffset: {
198
202
  x: number;
@@ -214,7 +218,7 @@ export declare const actionToggleLinearEditor: {
214
218
  };
215
219
  captureUpdate: "IMMEDIATELY";
216
220
  };
217
- PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
221
+ PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element | null;
218
222
  } & {
219
223
  keyTest?: undefined;
220
224
  };
@@ -42,6 +42,10 @@ export declare const actionLink: {
42
42
  locked: boolean;
43
43
  fromSelection: boolean;
44
44
  } & import("../types").ActiveTool;
45
+ preferredSelectionTool: {
46
+ type: "selection" | "lasso";
47
+ initialized: boolean;
48
+ };
45
49
  penMode: boolean;
46
50
  penDetected: boolean;
47
51
  exportBackground: boolean;
@@ -74,7 +78,7 @@ export declare const actionLink: {
74
78
  zoom: Readonly<{
75
79
  value: import("../types").NormalizedZoomValue;
76
80
  }>;
77
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
81
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
78
82
  openSidebar: {
79
83
  name: string;
80
84
  tab?: string | undefined;