@excalidraw/common 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 +91 -25
  2. package/dist/dev/index.js.map +2 -2
  3. package/dist/prod/index.js +3 -3
  4. package/dist/types/common/src/constants.d.ts +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 +1 -1
@@ -9,7 +9,7 @@ export declare const actionChangeStrokeColor: {
9
9
  label: string;
10
10
  trackEvent: false;
11
11
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
12
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
12
+ PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
13
13
  } & {
14
14
  keyTest?: undefined;
15
15
  };
@@ -26,7 +26,7 @@ export declare const actionChangeBackgroundColor: {
26
26
  appState: any;
27
27
  captureUpdate: "IMMEDIATELY";
28
28
  };
29
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
29
+ PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
30
30
  } & {
31
31
  keyTest?: undefined;
32
32
  };
@@ -67,12 +67,15 @@ export declare const actionChangeFillStyle: {
67
67
  editingFrame: string | null;
68
68
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
69
69
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
70
- editingLinearElement: LinearElementEditor | null;
71
70
  activeTool: {
72
71
  lastActiveTool: import("../types").ActiveTool | null;
73
72
  locked: boolean;
74
73
  fromSelection: boolean;
75
74
  } & import("../types").ActiveTool;
75
+ preferredSelectionTool: {
76
+ type: "selection" | "lasso";
77
+ initialized: boolean;
78
+ };
76
79
  penMode: boolean;
77
80
  penDetected: boolean;
78
81
  exportBackground: boolean;
@@ -104,8 +107,8 @@ export declare const actionChangeFillStyle: {
104
107
  zoom: Readonly<{
105
108
  value: import("../types").NormalizedZoomValue;
106
109
  }>;
107
- openMenu: "canvas" | "shape" | null;
108
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
110
+ openMenu: "canvas" | null;
111
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
109
112
  openSidebar: {
110
113
  name: string;
111
114
  tab?: string | undefined;
@@ -206,6 +209,7 @@ export declare const actionChangeFillStyle: {
206
209
  lockedMultiSelections: {
207
210
  [groupId: string]: true;
208
211
  };
212
+ stylesPanelMode: "compact" | "full" | "mobile";
209
213
  };
210
214
  captureUpdate: "IMMEDIATELY";
211
215
  };
@@ -250,12 +254,15 @@ export declare const actionChangeStrokeWidth: {
250
254
  editingFrame: string | null;
251
255
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
252
256
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
253
- editingLinearElement: LinearElementEditor | null;
254
257
  activeTool: {
255
258
  lastActiveTool: import("../types").ActiveTool | null;
256
259
  locked: boolean;
257
260
  fromSelection: boolean;
258
261
  } & import("../types").ActiveTool;
262
+ preferredSelectionTool: {
263
+ type: "selection" | "lasso";
264
+ initialized: boolean;
265
+ };
259
266
  penMode: boolean;
260
267
  penDetected: boolean;
261
268
  exportBackground: boolean;
@@ -287,8 +294,8 @@ export declare const actionChangeStrokeWidth: {
287
294
  zoom: Readonly<{
288
295
  value: import("../types").NormalizedZoomValue;
289
296
  }>;
290
- openMenu: "canvas" | "shape" | null;
291
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
297
+ openMenu: "canvas" | null;
298
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
292
299
  openSidebar: {
293
300
  name: string;
294
301
  tab?: string | undefined;
@@ -389,10 +396,11 @@ export declare const actionChangeStrokeWidth: {
389
396
  lockedMultiSelections: {
390
397
  [groupId: string]: true;
391
398
  };
399
+ stylesPanelMode: "compact" | "full" | "mobile";
392
400
  };
393
401
  captureUpdate: "IMMEDIATELY";
394
402
  };
395
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
403
+ PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
396
404
  } & {
397
405
  keyTest?: undefined;
398
406
  };
@@ -433,12 +441,15 @@ export declare const actionChangeSloppiness: {
433
441
  editingFrame: string | null;
434
442
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
435
443
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
436
- editingLinearElement: LinearElementEditor | null;
437
444
  activeTool: {
438
445
  lastActiveTool: import("../types").ActiveTool | null;
439
446
  locked: boolean;
440
447
  fromSelection: boolean;
441
448
  } & import("../types").ActiveTool;
449
+ preferredSelectionTool: {
450
+ type: "selection" | "lasso";
451
+ initialized: boolean;
452
+ };
442
453
  penMode: boolean;
443
454
  penDetected: boolean;
444
455
  exportBackground: boolean;
@@ -470,8 +481,8 @@ export declare const actionChangeSloppiness: {
470
481
  zoom: Readonly<{
471
482
  value: import("../types").NormalizedZoomValue;
472
483
  }>;
473
- openMenu: "canvas" | "shape" | null;
474
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
484
+ openMenu: "canvas" | null;
485
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
475
486
  openSidebar: {
476
487
  name: string;
477
488
  tab?: string | undefined;
@@ -572,10 +583,11 @@ export declare const actionChangeSloppiness: {
572
583
  lockedMultiSelections: {
573
584
  [groupId: string]: true;
574
585
  };
586
+ stylesPanelMode: "compact" | "full" | "mobile";
575
587
  };
576
588
  captureUpdate: "IMMEDIATELY";
577
589
  };
578
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
590
+ PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
579
591
  } & {
580
592
  keyTest?: undefined;
581
593
  };
@@ -616,12 +628,15 @@ export declare const actionChangeStrokeStyle: {
616
628
  editingFrame: string | null;
617
629
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
618
630
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
619
- editingLinearElement: LinearElementEditor | null;
620
631
  activeTool: {
621
632
  lastActiveTool: import("../types").ActiveTool | null;
622
633
  locked: boolean;
623
634
  fromSelection: boolean;
624
635
  } & import("../types").ActiveTool;
636
+ preferredSelectionTool: {
637
+ type: "selection" | "lasso";
638
+ initialized: boolean;
639
+ };
625
640
  penMode: boolean;
626
641
  penDetected: boolean;
627
642
  exportBackground: boolean;
@@ -653,8 +668,8 @@ export declare const actionChangeStrokeStyle: {
653
668
  zoom: Readonly<{
654
669
  value: import("../types").NormalizedZoomValue;
655
670
  }>;
656
- openMenu: "canvas" | "shape" | null;
657
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
671
+ openMenu: "canvas" | null;
672
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
658
673
  openSidebar: {
659
674
  name: string;
660
675
  tab?: string | undefined;
@@ -755,10 +770,11 @@ export declare const actionChangeStrokeStyle: {
755
770
  lockedMultiSelections: {
756
771
  [groupId: string]: true;
757
772
  };
773
+ stylesPanelMode: "compact" | "full" | "mobile";
758
774
  };
759
775
  captureUpdate: "IMMEDIATELY";
760
776
  };
761
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
777
+ PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
762
778
  } & {
763
779
  keyTest?: undefined;
764
780
  };
@@ -799,12 +815,15 @@ export declare const actionChangeOpacity: {
799
815
  editingFrame: string | null;
800
816
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
801
817
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
802
- editingLinearElement: LinearElementEditor | null;
803
818
  activeTool: {
804
819
  lastActiveTool: import("../types").ActiveTool | null;
805
820
  locked: boolean;
806
821
  fromSelection: boolean;
807
822
  } & import("../types").ActiveTool;
823
+ preferredSelectionTool: {
824
+ type: "selection" | "lasso";
825
+ initialized: boolean;
826
+ };
808
827
  penMode: boolean;
809
828
  penDetected: boolean;
810
829
  exportBackground: boolean;
@@ -836,8 +855,8 @@ export declare const actionChangeOpacity: {
836
855
  zoom: Readonly<{
837
856
  value: import("../types").NormalizedZoomValue;
838
857
  }>;
839
- openMenu: "canvas" | "shape" | null;
840
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
858
+ openMenu: "canvas" | null;
859
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
841
860
  openSidebar: {
842
861
  name: string;
843
862
  tab?: string | undefined;
@@ -938,6 +957,7 @@ export declare const actionChangeOpacity: {
938
957
  lockedMultiSelections: {
939
958
  [groupId: string]: true;
940
959
  };
960
+ stylesPanelMode: "compact" | "full" | "mobile";
941
961
  };
942
962
  captureUpdate: "IMMEDIATELY";
943
963
  };
@@ -982,12 +1002,15 @@ export declare const actionChangeFontSize: {
982
1002
  editingFrame: string | null;
983
1003
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
984
1004
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
985
- editingLinearElement: LinearElementEditor | null;
986
1005
  activeTool: {
987
1006
  lastActiveTool: import("../types").ActiveTool | null;
988
1007
  locked: boolean;
989
1008
  fromSelection: boolean;
990
1009
  } & import("../types").ActiveTool;
1010
+ preferredSelectionTool: {
1011
+ type: "selection" | "lasso";
1012
+ initialized: boolean;
1013
+ };
991
1014
  penMode: boolean;
992
1015
  penDetected: boolean;
993
1016
  exportBackground: boolean;
@@ -1019,8 +1042,8 @@ export declare const actionChangeFontSize: {
1019
1042
  zoom: Readonly<{
1020
1043
  value: import("../types").NormalizedZoomValue;
1021
1044
  }>;
1022
- openMenu: "canvas" | "shape" | null;
1023
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1045
+ openMenu: "canvas" | null;
1046
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1024
1047
  openSidebar: {
1025
1048
  name: string;
1026
1049
  tab?: string | undefined;
@@ -1121,10 +1144,11 @@ export declare const actionChangeFontSize: {
1121
1144
  lockedMultiSelections: {
1122
1145
  [groupId: string]: true;
1123
1146
  };
1147
+ stylesPanelMode: "compact" | "full" | "mobile";
1124
1148
  };
1125
1149
  captureUpdate: "IMMEDIATELY";
1126
1150
  };
1127
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
1151
+ PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
1128
1152
  } & {
1129
1153
  keyTest?: undefined;
1130
1154
  };
@@ -1166,12 +1190,15 @@ export declare const actionDecreaseFontSize: {
1166
1190
  editingFrame: string | null;
1167
1191
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1168
1192
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1169
- editingLinearElement: LinearElementEditor | null;
1170
1193
  activeTool: {
1171
1194
  lastActiveTool: import("../types").ActiveTool | null;
1172
1195
  locked: boolean;
1173
1196
  fromSelection: boolean;
1174
1197
  } & import("../types").ActiveTool;
1198
+ preferredSelectionTool: {
1199
+ type: "selection" | "lasso";
1200
+ initialized: boolean;
1201
+ };
1175
1202
  penMode: boolean;
1176
1203
  penDetected: boolean;
1177
1204
  exportBackground: boolean;
@@ -1203,8 +1230,8 @@ export declare const actionDecreaseFontSize: {
1203
1230
  zoom: Readonly<{
1204
1231
  value: import("../types").NormalizedZoomValue;
1205
1232
  }>;
1206
- openMenu: "canvas" | "shape" | null;
1207
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1233
+ openMenu: "canvas" | null;
1234
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1208
1235
  openSidebar: {
1209
1236
  name: string;
1210
1237
  tab?: string | undefined;
@@ -1305,6 +1332,7 @@ export declare const actionDecreaseFontSize: {
1305
1332
  lockedMultiSelections: {
1306
1333
  [groupId: string]: true;
1307
1334
  };
1335
+ stylesPanelMode: "compact" | "full" | "mobile";
1308
1336
  };
1309
1337
  captureUpdate: "IMMEDIATELY";
1310
1338
  };
@@ -1350,12 +1378,15 @@ export declare const actionIncreaseFontSize: {
1350
1378
  editingFrame: string | null;
1351
1379
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1352
1380
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1353
- editingLinearElement: LinearElementEditor | null;
1354
1381
  activeTool: {
1355
1382
  lastActiveTool: import("../types").ActiveTool | null;
1356
1383
  locked: boolean;
1357
1384
  fromSelection: boolean;
1358
1385
  } & import("../types").ActiveTool;
1386
+ preferredSelectionTool: {
1387
+ type: "selection" | "lasso";
1388
+ initialized: boolean;
1389
+ };
1359
1390
  penMode: boolean;
1360
1391
  penDetected: boolean;
1361
1392
  exportBackground: boolean;
@@ -1387,8 +1418,8 @@ export declare const actionIncreaseFontSize: {
1387
1418
  zoom: Readonly<{
1388
1419
  value: import("../types").NormalizedZoomValue;
1389
1420
  }>;
1390
- openMenu: "canvas" | "shape" | null;
1391
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1421
+ openMenu: "canvas" | null;
1422
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1392
1423
  openSidebar: {
1393
1424
  name: string;
1394
1425
  tab?: string | undefined;
@@ -1489,6 +1520,7 @@ export declare const actionIncreaseFontSize: {
1489
1520
  lockedMultiSelections: {
1490
1521
  [groupId: string]: true;
1491
1522
  };
1523
+ stylesPanelMode: "compact" | "full" | "mobile";
1492
1524
  };
1493
1525
  captureUpdate: "IMMEDIATELY";
1494
1526
  };
@@ -1504,7 +1536,7 @@ export declare const actionChangeFontFamily: {
1504
1536
  appState: {
1505
1537
  currentItemFontFamily: number;
1506
1538
  currentHoveredFontFamily: number | null;
1507
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1539
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1508
1540
  contextMenu: {
1509
1541
  items: import("../components/ContextMenu").ContextMenuItems;
1510
1542
  top: number;
@@ -1534,12 +1566,15 @@ export declare const actionChangeFontFamily: {
1534
1566
  editingFrame: string | null;
1535
1567
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1536
1568
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1537
- editingLinearElement: LinearElementEditor | null;
1538
1569
  activeTool: {
1539
1570
  lastActiveTool: import("../types").ActiveTool | null;
1540
1571
  locked: boolean;
1541
1572
  fromSelection: boolean;
1542
1573
  } & import("../types").ActiveTool;
1574
+ preferredSelectionTool: {
1575
+ type: "selection" | "lasso";
1576
+ initialized: boolean;
1577
+ };
1543
1578
  penMode: boolean;
1544
1579
  penDetected: boolean;
1545
1580
  exportBackground: boolean;
@@ -1570,7 +1605,7 @@ export declare const actionChangeFontFamily: {
1570
1605
  zoom: Readonly<{
1571
1606
  value: import("../types").NormalizedZoomValue;
1572
1607
  }>;
1573
- openMenu: "canvas" | "shape" | null;
1608
+ openMenu: "canvas" | null;
1574
1609
  openSidebar: {
1575
1610
  name: string;
1576
1611
  tab?: string | undefined;
@@ -1671,6 +1706,7 @@ export declare const actionChangeFontFamily: {
1671
1706
  lockedMultiSelections: {
1672
1707
  [groupId: string]: true;
1673
1708
  };
1709
+ stylesPanelMode: "compact" | "full" | "mobile";
1674
1710
  };
1675
1711
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
1676
1712
  } | {
@@ -1678,7 +1714,7 @@ export declare const actionChangeFontFamily: {
1678
1714
  appState: {
1679
1715
  currentItemFontFamily: number;
1680
1716
  currentHoveredFontFamily: number | null;
1681
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1717
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1682
1718
  contextMenu: {
1683
1719
  items: import("../components/ContextMenu").ContextMenuItems;
1684
1720
  top: number;
@@ -1708,12 +1744,15 @@ export declare const actionChangeFontFamily: {
1708
1744
  editingFrame: string | null;
1709
1745
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1710
1746
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1711
- editingLinearElement: LinearElementEditor | null;
1712
1747
  activeTool: {
1713
1748
  lastActiveTool: import("../types").ActiveTool | null;
1714
1749
  locked: boolean;
1715
1750
  fromSelection: boolean;
1716
1751
  } & import("../types").ActiveTool;
1752
+ preferredSelectionTool: {
1753
+ type: "selection" | "lasso";
1754
+ initialized: boolean;
1755
+ };
1717
1756
  penMode: boolean;
1718
1757
  penDetected: boolean;
1719
1758
  exportBackground: boolean;
@@ -1744,7 +1783,7 @@ export declare const actionChangeFontFamily: {
1744
1783
  zoom: Readonly<{
1745
1784
  value: import("../types").NormalizedZoomValue;
1746
1785
  }>;
1747
- openMenu: "canvas" | "shape" | null;
1786
+ openMenu: "canvas" | null;
1748
1787
  openSidebar: {
1749
1788
  name: string;
1750
1789
  tab?: string | undefined;
@@ -1845,6 +1884,7 @@ export declare const actionChangeFontFamily: {
1845
1884
  lockedMultiSelections: {
1846
1885
  [groupId: string]: true;
1847
1886
  };
1887
+ stylesPanelMode: "compact" | "full" | "mobile";
1848
1888
  };
1849
1889
  captureUpdate: "NEVER";
1850
1890
  };
@@ -1889,12 +1929,15 @@ export declare const actionChangeTextAlign: {
1889
1929
  editingFrame: string | null;
1890
1930
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1891
1931
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1892
- editingLinearElement: LinearElementEditor | null;
1893
1932
  activeTool: {
1894
1933
  lastActiveTool: import("../types").ActiveTool | null;
1895
1934
  locked: boolean;
1896
1935
  fromSelection: boolean;
1897
1936
  } & import("../types").ActiveTool;
1937
+ preferredSelectionTool: {
1938
+ type: "selection" | "lasso";
1939
+ initialized: boolean;
1940
+ };
1898
1941
  penMode: boolean;
1899
1942
  penDetected: boolean;
1900
1943
  exportBackground: boolean;
@@ -1926,8 +1969,8 @@ export declare const actionChangeTextAlign: {
1926
1969
  zoom: Readonly<{
1927
1970
  value: import("../types").NormalizedZoomValue;
1928
1971
  }>;
1929
- openMenu: "canvas" | "shape" | null;
1930
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1972
+ openMenu: "canvas" | null;
1973
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1931
1974
  openSidebar: {
1932
1975
  name: string;
1933
1976
  tab?: string | undefined;
@@ -2028,10 +2071,11 @@ export declare const actionChangeTextAlign: {
2028
2071
  lockedMultiSelections: {
2029
2072
  [groupId: string]: true;
2030
2073
  };
2074
+ stylesPanelMode: "compact" | "full" | "mobile";
2031
2075
  };
2032
2076
  captureUpdate: "IMMEDIATELY";
2033
2077
  };
2034
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2078
+ PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2035
2079
  } & {
2036
2080
  keyTest?: undefined;
2037
2081
  };
@@ -2073,12 +2117,15 @@ export declare const actionChangeVerticalAlign: {
2073
2117
  editingFrame: string | null;
2074
2118
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2075
2119
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2076
- editingLinearElement: LinearElementEditor | null;
2077
2120
  activeTool: {
2078
2121
  lastActiveTool: import("../types").ActiveTool | null;
2079
2122
  locked: boolean;
2080
2123
  fromSelection: boolean;
2081
2124
  } & import("../types").ActiveTool;
2125
+ preferredSelectionTool: {
2126
+ type: "selection" | "lasso";
2127
+ initialized: boolean;
2128
+ };
2082
2129
  penMode: boolean;
2083
2130
  penDetected: boolean;
2084
2131
  exportBackground: boolean;
@@ -2111,8 +2158,8 @@ export declare const actionChangeVerticalAlign: {
2111
2158
  zoom: Readonly<{
2112
2159
  value: import("../types").NormalizedZoomValue;
2113
2160
  }>;
2114
- openMenu: "canvas" | "shape" | null;
2115
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2161
+ openMenu: "canvas" | null;
2162
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2116
2163
  openSidebar: {
2117
2164
  name: string;
2118
2165
  tab?: string | undefined;
@@ -2213,10 +2260,11 @@ export declare const actionChangeVerticalAlign: {
2213
2260
  lockedMultiSelections: {
2214
2261
  [groupId: string]: true;
2215
2262
  };
2263
+ stylesPanelMode: "compact" | "full" | "mobile";
2216
2264
  };
2217
2265
  captureUpdate: "IMMEDIATELY";
2218
2266
  };
2219
- PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2267
+ PanelComponent: ({ elements, appState, updateData, app, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2220
2268
  } & {
2221
2269
  keyTest?: undefined;
2222
2270
  };
@@ -2257,12 +2305,15 @@ export declare const actionChangeRoundness: {
2257
2305
  editingFrame: string | null;
2258
2306
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2259
2307
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2260
- editingLinearElement: LinearElementEditor | null;
2261
2308
  activeTool: {
2262
2309
  lastActiveTool: import("../types").ActiveTool | null;
2263
2310
  locked: boolean;
2264
2311
  fromSelection: boolean;
2265
2312
  } & import("../types").ActiveTool;
2313
+ preferredSelectionTool: {
2314
+ type: "selection" | "lasso";
2315
+ initialized: boolean;
2316
+ };
2266
2317
  penMode: boolean;
2267
2318
  penDetected: boolean;
2268
2319
  exportBackground: boolean;
@@ -2294,8 +2345,8 @@ export declare const actionChangeRoundness: {
2294
2345
  zoom: Readonly<{
2295
2346
  value: import("../types").NormalizedZoomValue;
2296
2347
  }>;
2297
- openMenu: "canvas" | "shape" | null;
2298
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2348
+ openMenu: "canvas" | null;
2349
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2299
2350
  openSidebar: {
2300
2351
  name: string;
2301
2352
  tab?: string | undefined;
@@ -2396,6 +2447,7 @@ export declare const actionChangeRoundness: {
2396
2447
  lockedMultiSelections: {
2397
2448
  [groupId: string]: true;
2398
2449
  };
2450
+ stylesPanelMode: "compact" | "full" | "mobile";
2399
2451
  };
2400
2452
  captureUpdate: "IMMEDIATELY";
2401
2453
  };
@@ -2442,12 +2494,15 @@ export declare const actionChangeArrowhead: {
2442
2494
  editingFrame: string | null;
2443
2495
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2444
2496
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2445
- editingLinearElement: LinearElementEditor | null;
2446
2497
  activeTool: {
2447
2498
  lastActiveTool: import("../types").ActiveTool | null;
2448
2499
  locked: boolean;
2449
2500
  fromSelection: boolean;
2450
2501
  } & import("../types").ActiveTool;
2502
+ preferredSelectionTool: {
2503
+ type: "selection" | "lasso";
2504
+ initialized: boolean;
2505
+ };
2451
2506
  penMode: boolean;
2452
2507
  penDetected: boolean;
2453
2508
  exportBackground: boolean;
@@ -2480,8 +2535,8 @@ export declare const actionChangeArrowhead: {
2480
2535
  zoom: Readonly<{
2481
2536
  value: import("../types").NormalizedZoomValue;
2482
2537
  }>;
2483
- openMenu: "canvas" | "shape" | null;
2484
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2538
+ openMenu: "canvas" | null;
2539
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2485
2540
  openSidebar: {
2486
2541
  name: string;
2487
2542
  tab?: string | undefined;
@@ -2582,6 +2637,7 @@ export declare const actionChangeArrowhead: {
2582
2637
  lockedMultiSelections: {
2583
2638
  [groupId: string]: true;
2584
2639
  };
2640
+ stylesPanelMode: "compact" | "full" | "mobile";
2585
2641
  };
2586
2642
  captureUpdate: "IMMEDIATELY";
2587
2643
  };
@@ -2589,6 +2645,15 @@ export declare const actionChangeArrowhead: {
2589
2645
  } & {
2590
2646
  keyTest?: undefined;
2591
2647
  };
2648
+ export declare const actionChangeArrowProperties: {
2649
+ name: "changeArrowProperties";
2650
+ label: string;
2651
+ trackEvent: false;
2652
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => false;
2653
+ PanelComponent: ({ elements, appState, updateData, app, renderAction }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
2654
+ } & {
2655
+ keyTest?: undefined;
2656
+ };
2592
2657
  export declare const actionChangeArrowType: {
2593
2658
  name: "changeArrowType";
2594
2659
  label: string;
@@ -2626,12 +2691,15 @@ export declare const actionChangeArrowType: {
2626
2691
  editingFrame: string | null;
2627
2692
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2628
2693
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2629
- editingLinearElement: LinearElementEditor | null;
2630
2694
  activeTool: {
2631
2695
  lastActiveTool: import("../types").ActiveTool | null;
2632
2696
  locked: boolean;
2633
2697
  fromSelection: boolean;
2634
2698
  } & import("../types").ActiveTool;
2699
+ preferredSelectionTool: {
2700
+ type: "selection" | "lasso";
2701
+ initialized: boolean;
2702
+ };
2635
2703
  penMode: boolean;
2636
2704
  penDetected: boolean;
2637
2705
  exportBackground: boolean;
@@ -2663,8 +2731,8 @@ export declare const actionChangeArrowType: {
2663
2731
  zoom: Readonly<{
2664
2732
  value: import("../types").NormalizedZoomValue;
2665
2733
  }>;
2666
- openMenu: "canvas" | "shape" | null;
2667
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
2734
+ openMenu: "canvas" | null;
2735
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2668
2736
  openSidebar: {
2669
2737
  name: string;
2670
2738
  tab?: string | undefined;
@@ -2765,6 +2833,7 @@ export declare const actionChangeArrowType: {
2765
2833
  lockedMultiSelections: {
2766
2834
  [groupId: string]: true;
2767
2835
  };
2836
+ stylesPanelMode: "compact" | "full" | "mobile";
2768
2837
  };
2769
2838
  captureUpdate: "IMMEDIATELY";
2770
2839
  };
@@ -48,12 +48,15 @@ export declare const actionSelectAll: {
48
48
  editingFrame: string | null;
49
49
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
50
50
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
51
- editingLinearElement: LinearElementEditor | null;
52
51
  activeTool: {
53
52
  lastActiveTool: import("../types").ActiveTool | null;
54
53
  locked: boolean;
55
54
  fromSelection: boolean;
56
55
  } & import("../types").ActiveTool;
56
+ preferredSelectionTool: {
57
+ type: "selection" | "lasso";
58
+ initialized: boolean;
59
+ };
57
60
  penMode: boolean;
58
61
  penDetected: boolean;
59
62
  exportBackground: boolean;
@@ -86,8 +89,8 @@ export declare const actionSelectAll: {
86
89
  zoom: Readonly<{
87
90
  value: import("../types").NormalizedZoomValue;
88
91
  }>;
89
- openMenu: "canvas" | "shape" | null;
90
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
92
+ openMenu: "canvas" | null;
93
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
91
94
  openSidebar: {
92
95
  name: string;
93
96
  tab?: string | undefined;
@@ -180,6 +183,7 @@ export declare const actionSelectAll: {
180
183
  lockedMultiSelections: {
181
184
  [groupId: string]: true;
182
185
  };
186
+ stylesPanelMode: "compact" | "full" | "mobile";
183
187
  };
184
188
  captureUpdate: "IMMEDIATELY";
185
189
  };