@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
@@ -43,6 +43,10 @@ export declare const actionCopy: {
43
43
  locked: boolean;
44
44
  fromSelection: boolean;
45
45
  } & import("../types").ActiveTool;
46
+ preferredSelectionTool: {
47
+ type: "selection" | "lasso";
48
+ initialized: boolean;
49
+ };
46
50
  penMode: boolean;
47
51
  penDetected: boolean;
48
52
  exportBackground: boolean;
@@ -75,8 +79,8 @@ export declare const actionCopy: {
75
79
  zoom: Readonly<{
76
80
  value: import("../types").NormalizedZoomValue;
77
81
  }>;
78
- openMenu: "canvas" | "shape" | null;
79
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
82
+ openMenu: "canvas" | null;
83
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
80
84
  openSidebar: {
81
85
  name: string;
82
86
  tab?: string | undefined;
@@ -157,7 +161,7 @@ export declare const actionCopy: {
157
161
  shown: true;
158
162
  data: import("../charts").Spreadsheet;
159
163
  };
160
- showHyperlinkPopup: false | "editor" | "info";
164
+ showHyperlinkPopup: false | "info" | "editor";
161
165
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
162
166
  snapLines: readonly import("../snapping").SnapLine[];
163
167
  originSnapOffset: {
@@ -229,6 +233,10 @@ export declare const actionPaste: {
229
233
  locked: boolean;
230
234
  fromSelection: boolean;
231
235
  } & import("../types").ActiveTool;
236
+ preferredSelectionTool: {
237
+ type: "selection" | "lasso";
238
+ initialized: boolean;
239
+ };
232
240
  penMode: boolean;
233
241
  penDetected: boolean;
234
242
  exportBackground: boolean;
@@ -261,8 +269,8 @@ export declare const actionPaste: {
261
269
  zoom: Readonly<{
262
270
  value: import("../types").NormalizedZoomValue;
263
271
  }>;
264
- openMenu: "canvas" | "shape" | null;
265
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
272
+ openMenu: "canvas" | null;
273
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
266
274
  openSidebar: {
267
275
  name: string;
268
276
  tab?: string | undefined;
@@ -343,7 +351,7 @@ export declare const actionPaste: {
343
351
  shown: true;
344
352
  data: import("../charts").Spreadsheet;
345
353
  };
346
- showHyperlinkPopup: false | "editor" | "info";
354
+ showHyperlinkPopup: false | "info" | "editor";
347
355
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
348
356
  snapLines: readonly import("../snapping").SnapLine[];
349
357
  originSnapOffset: {
@@ -417,6 +425,10 @@ export declare const actionCut: {
417
425
  locked: boolean;
418
426
  fromSelection: boolean;
419
427
  } & import("../types").ActiveTool;
428
+ preferredSelectionTool: {
429
+ type: "selection" | "lasso";
430
+ initialized: boolean;
431
+ };
420
432
  penMode: boolean;
421
433
  penDetected: boolean;
422
434
  exportBackground: boolean;
@@ -449,8 +461,8 @@ export declare const actionCut: {
449
461
  zoom: Readonly<{
450
462
  value: import("../types").NormalizedZoomValue;
451
463
  }>;
452
- openMenu: "canvas" | "shape" | null;
453
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
464
+ openMenu: "canvas" | null;
465
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
454
466
  openSidebar: {
455
467
  name: string;
456
468
  tab?: string | undefined;
@@ -531,7 +543,7 @@ export declare const actionCut: {
531
543
  shown: true;
532
544
  data: import("../charts").Spreadsheet;
533
545
  };
534
- showHyperlinkPopup: false | "editor" | "info";
546
+ showHyperlinkPopup: false | "info" | "editor";
535
547
  snapLines: readonly import("../snapping").SnapLine[];
536
548
  originSnapOffset: {
537
549
  x: number;
@@ -622,6 +634,10 @@ export declare const actionCut: {
622
634
  locked: boolean;
623
635
  fromSelection: boolean;
624
636
  } & import("../types").ActiveTool;
637
+ preferredSelectionTool: {
638
+ type: "selection" | "lasso";
639
+ initialized: boolean;
640
+ };
625
641
  penMode: boolean;
626
642
  penDetected: boolean;
627
643
  exportBackground: boolean;
@@ -654,8 +670,8 @@ export declare const actionCut: {
654
670
  zoom: Readonly<{
655
671
  value: import("../types").NormalizedZoomValue;
656
672
  }>;
657
- openMenu: "canvas" | "shape" | null;
658
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
673
+ openMenu: "canvas" | null;
674
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
659
675
  openSidebar: {
660
676
  name: string;
661
677
  tab?: string | undefined;
@@ -736,7 +752,7 @@ export declare const actionCut: {
736
752
  shown: true;
737
753
  data: import("../charts").Spreadsheet;
738
754
  };
739
- showHyperlinkPopup: false | "editor" | "info";
755
+ showHyperlinkPopup: false | "info" | "editor";
740
756
  snapLines: readonly import("../snapping").SnapLine[];
741
757
  originSnapOffset: {
742
758
  x: number;
@@ -799,6 +815,10 @@ export declare const actionCut: {
799
815
  editingFrame: string | null;
800
816
  elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
801
817
  editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
818
+ preferredSelectionTool: {
819
+ type: "selection" | "lasso";
820
+ initialized: boolean;
821
+ };
802
822
  penMode: boolean;
803
823
  penDetected: boolean;
804
824
  exportBackground: boolean;
@@ -831,8 +851,8 @@ export declare const actionCut: {
831
851
  zoom: Readonly<{
832
852
  value: import("../types").NormalizedZoomValue;
833
853
  }>;
834
- openMenu: "canvas" | "shape" | null;
835
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
854
+ openMenu: "canvas" | null;
855
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
836
856
  openSidebar: {
837
857
  name: string;
838
858
  tab?: string | undefined;
@@ -906,7 +926,7 @@ export declare const actionCut: {
906
926
  shown: true;
907
927
  data: import("../charts").Spreadsheet;
908
928
  };
909
- showHyperlinkPopup: false | "editor" | "info";
929
+ showHyperlinkPopup: false | "info" | "editor";
910
930
  snapLines: readonly import("../snapping").SnapLine[];
911
931
  originSnapOffset: {
912
932
  x: number;
@@ -1008,6 +1028,10 @@ export declare const actionCopyAsPng: {
1008
1028
  locked: boolean;
1009
1029
  fromSelection: boolean;
1010
1030
  } & import("../types").ActiveTool;
1031
+ preferredSelectionTool: {
1032
+ type: "selection" | "lasso";
1033
+ initialized: boolean;
1034
+ };
1011
1035
  penMode: boolean;
1012
1036
  penDetected: boolean;
1013
1037
  exportBackground: boolean;
@@ -1040,8 +1064,8 @@ export declare const actionCopyAsPng: {
1040
1064
  zoom: Readonly<{
1041
1065
  value: import("../types").NormalizedZoomValue;
1042
1066
  }>;
1043
- openMenu: "canvas" | "shape" | null;
1044
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1067
+ openMenu: "canvas" | null;
1068
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1045
1069
  openSidebar: {
1046
1070
  name: string;
1047
1071
  tab?: string | undefined;
@@ -1122,7 +1146,7 @@ export declare const actionCopyAsPng: {
1122
1146
  shown: true;
1123
1147
  data: import("../charts").Spreadsheet;
1124
1148
  };
1125
- showHyperlinkPopup: false | "editor" | "info";
1149
+ showHyperlinkPopup: false | "info" | "editor";
1126
1150
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1127
1151
  snapLines: readonly import("../snapping").SnapLine[];
1128
1152
  originSnapOffset: {
@@ -46,6 +46,10 @@ export declare const actionToggleCropEditor: {
46
46
  locked: boolean;
47
47
  fromSelection: boolean;
48
48
  } & import("../types").ActiveTool;
49
+ preferredSelectionTool: {
50
+ type: "selection" | "lasso";
51
+ initialized: boolean;
52
+ };
49
53
  penMode: boolean;
50
54
  penDetected: boolean;
51
55
  exportBackground: boolean;
@@ -78,8 +82,8 @@ export declare const actionToggleCropEditor: {
78
82
  zoom: Readonly<{
79
83
  value: import("../types").NormalizedZoomValue;
80
84
  }>;
81
- openMenu: "canvas" | "shape" | null;
82
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
85
+ openMenu: "canvas" | null;
86
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
83
87
  openSidebar: {
84
88
  name: string;
85
89
  tab?: string | undefined;
@@ -160,7 +164,7 @@ export declare const actionToggleCropEditor: {
160
164
  shown: true;
161
165
  data: import("../charts").Spreadsheet;
162
166
  };
163
- showHyperlinkPopup: false | "editor" | "info";
167
+ showHyperlinkPopup: false | "info" | "editor";
164
168
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
165
169
  snapLines: readonly import("../snapping").SnapLine[];
166
170
  originSnapOffset: {
@@ -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;
@@ -79,8 +83,8 @@ export declare const actionDeleteSelected: {
79
83
  zoom: Readonly<{
80
84
  value: import("../types").NormalizedZoomValue;
81
85
  }>;
82
- openMenu: "canvas" | "shape" | null;
83
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
86
+ openMenu: "canvas" | null;
87
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
84
88
  openSidebar: {
85
89
  name: string;
86
90
  tab?: string | undefined;
@@ -161,7 +165,7 @@ export declare const actionDeleteSelected: {
161
165
  shown: true;
162
166
  data: import("../charts").Spreadsheet;
163
167
  };
164
- showHyperlinkPopup: false | "editor" | "info";
168
+ showHyperlinkPopup: false | "info" | "editor";
165
169
  snapLines: readonly import("../snapping").SnapLine[];
166
170
  originSnapOffset: {
167
171
  x: number;
@@ -252,6 +256,10 @@ export declare const actionDeleteSelected: {
252
256
  locked: boolean;
253
257
  fromSelection: boolean;
254
258
  } & import("../types").ActiveTool;
259
+ preferredSelectionTool: {
260
+ type: "selection" | "lasso";
261
+ initialized: boolean;
262
+ };
255
263
  penMode: boolean;
256
264
  penDetected: boolean;
257
265
  exportBackground: boolean;
@@ -284,8 +292,8 @@ export declare const actionDeleteSelected: {
284
292
  zoom: Readonly<{
285
293
  value: import("../types").NormalizedZoomValue;
286
294
  }>;
287
- openMenu: "canvas" | "shape" | null;
288
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
295
+ openMenu: "canvas" | null;
296
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
289
297
  openSidebar: {
290
298
  name: string;
291
299
  tab?: string | undefined;
@@ -366,7 +374,7 @@ export declare const actionDeleteSelected: {
366
374
  shown: true;
367
375
  data: import("../charts").Spreadsheet;
368
376
  };
369
- showHyperlinkPopup: false | "editor" | "info";
377
+ showHyperlinkPopup: false | "info" | "editor";
370
378
  snapLines: readonly import("../snapping").SnapLine[];
371
379
  originSnapOffset: {
372
380
  x: number;
@@ -429,6 +437,10 @@ export declare const actionDeleteSelected: {
429
437
  editingFrame: string | null;
430
438
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
431
439
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
440
+ preferredSelectionTool: {
441
+ type: "selection" | "lasso";
442
+ initialized: boolean;
443
+ };
432
444
  penMode: boolean;
433
445
  penDetected: boolean;
434
446
  exportBackground: boolean;
@@ -461,8 +473,8 @@ export declare const actionDeleteSelected: {
461
473
  zoom: Readonly<{
462
474
  value: import("../types").NormalizedZoomValue;
463
475
  }>;
464
- openMenu: "canvas" | "shape" | null;
465
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
476
+ openMenu: "canvas" | null;
477
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
466
478
  openSidebar: {
467
479
  name: string;
468
480
  tab?: string | undefined;
@@ -536,7 +548,7 @@ export declare const actionDeleteSelected: {
536
548
  shown: true;
537
549
  data: import("../charts").Spreadsheet;
538
550
  };
539
- showHyperlinkPopup: false | "editor" | "info";
551
+ showHyperlinkPopup: false | "info" | "editor";
540
552
  snapLines: readonly import("../snapping").SnapLine[];
541
553
  originSnapOffset: {
542
554
  x: number;
@@ -559,7 +571,7 @@ export declare const actionDeleteSelected: {
559
571
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
560
572
  };
561
573
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean;
562
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
574
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
563
575
  } & {
564
576
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean) | undefined;
565
577
  };
@@ -12,7 +12,7 @@ export declare const actionDuplicateSelection: {
12
12
  captureUpdate: "IMMEDIATELY";
13
13
  };
14
14
  keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
15
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
15
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
16
16
  } & {
17
17
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
18
18
  };
@@ -75,6 +75,10 @@ export declare const actionLinkToElement: {
75
75
  locked: boolean;
76
76
  fromSelection: boolean;
77
77
  } & import("../types").ActiveTool;
78
+ preferredSelectionTool: {
79
+ type: "selection" | "lasso";
80
+ initialized: boolean;
81
+ };
78
82
  penMode: boolean;
79
83
  penDetected: boolean;
80
84
  exportBackground: boolean;
@@ -107,8 +111,8 @@ export declare const actionLinkToElement: {
107
111
  zoom: Readonly<{
108
112
  value: import("../types").NormalizedZoomValue;
109
113
  }>;
110
- openMenu: "canvas" | "shape" | null;
111
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
114
+ openMenu: "canvas" | null;
115
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
112
116
  openSidebar: {
113
117
  name: string;
114
118
  tab?: string | undefined;
@@ -178,7 +182,7 @@ export declare const actionLinkToElement: {
178
182
  shown: true;
179
183
  data: import("../charts").Spreadsheet;
180
184
  };
181
- showHyperlinkPopup: false | "editor" | "info";
185
+ showHyperlinkPopup: false | "info" | "editor";
182
186
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
183
187
  snapLines: readonly import("../snapping").SnapLine[];
184
188
  originSnapOffset: {
@@ -57,6 +57,10 @@ export declare const actionToggleElementLock: {
57
57
  locked: boolean;
58
58
  fromSelection: boolean;
59
59
  } & import("../types").ActiveTool;
60
+ preferredSelectionTool: {
61
+ type: "selection" | "lasso";
62
+ initialized: boolean;
63
+ };
60
64
  penMode: boolean;
61
65
  penDetected: boolean;
62
66
  exportBackground: boolean;
@@ -89,8 +93,8 @@ export declare const actionToggleElementLock: {
89
93
  zoom: Readonly<{
90
94
  value: import("../types").NormalizedZoomValue;
91
95
  }>;
92
- openMenu: "canvas" | "shape" | null;
93
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
96
+ openMenu: "canvas" | null;
97
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
94
98
  openSidebar: {
95
99
  name: string;
96
100
  tab?: string | undefined;
@@ -165,7 +169,7 @@ export declare const actionToggleElementLock: {
165
169
  shown: true;
166
170
  data: import("../charts").Spreadsheet;
167
171
  };
168
- showHyperlinkPopup: false | "editor" | "info";
172
+ showHyperlinkPopup: false | "info" | "editor";
169
173
  snapLines: readonly import("../snapping").SnapLine[];
170
174
  originSnapOffset: {
171
175
  x: number;
@@ -240,6 +244,10 @@ export declare const actionUnlockAllElements: {
240
244
  locked: boolean;
241
245
  fromSelection: boolean;
242
246
  } & import("../types").ActiveTool;
247
+ preferredSelectionTool: {
248
+ type: "selection" | "lasso";
249
+ initialized: boolean;
250
+ };
243
251
  penMode: boolean;
244
252
  penDetected: boolean;
245
253
  exportBackground: boolean;
@@ -272,8 +280,8 @@ export declare const actionUnlockAllElements: {
272
280
  zoom: Readonly<{
273
281
  value: import("../types").NormalizedZoomValue;
274
282
  }>;
275
- openMenu: "canvas" | "shape" | null;
276
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
283
+ openMenu: "canvas" | null;
284
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
277
285
  openSidebar: {
278
286
  name: string;
279
287
  tab?: string | undefined;
@@ -348,7 +356,7 @@ export declare const actionUnlockAllElements: {
348
356
  shown: true;
349
357
  data: import("../charts").Spreadsheet;
350
358
  };
351
- showHyperlinkPopup: false | "editor" | "info";
359
+ showHyperlinkPopup: false | "info" | "editor";
352
360
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
353
361
  snapLines: readonly import("../snapping").SnapLine[];
354
362
  originSnapOffset: {
@@ -43,6 +43,10 @@ export declare const actionSetEmbeddableAsActiveTool: {
43
43
  editingFrame: string | null;
44
44
  elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
45
45
  editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
46
+ preferredSelectionTool: {
47
+ type: "selection" | "lasso";
48
+ initialized: boolean;
49
+ };
46
50
  penMode: boolean;
47
51
  penDetected: boolean;
48
52
  exportBackground: boolean;
@@ -75,8 +79,8 @@ export declare const actionSetEmbeddableAsActiveTool: {
75
79
  zoom: Readonly<{
76
80
  value: import("../types").NormalizedZoomValue;
77
81
  }>;
78
- openMenu: "canvas" | "shape" | null;
79
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
82
+ openMenu: "canvas" | null;
83
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
80
84
  openSidebar: {
81
85
  name: string;
82
86
  tab?: string | undefined;
@@ -157,7 +161,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
157
161
  shown: true;
158
162
  data: import("../charts").Spreadsheet;
159
163
  };
160
- showHyperlinkPopup: false | "editor" | "info";
164
+ showHyperlinkPopup: false | "info" | "editor";
161
165
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
162
166
  snapLines: readonly import("../snapping").SnapLine[];
163
167
  originSnapOffset: {