@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
@@ -1,370 +1,4 @@
1
1
  /// <reference types="react" />
2
- export declare const actionToggleCanvasMenu: {
3
- name: "toggleCanvasMenu";
4
- label: string;
5
- trackEvent: {
6
- category: "menu";
7
- };
8
- perform: (_: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
9
- appState: {
10
- openMenu: "canvas" | null;
11
- contextMenu: {
12
- items: import("../components/ContextMenu").ContextMenuItems;
13
- top: number;
14
- left: number;
15
- } | null;
16
- showWelcomeScreen: boolean;
17
- isLoading: boolean;
18
- errorMessage: import("react").ReactNode;
19
- activeEmbeddable: {
20
- element: import("../../element/src/types").NonDeletedExcalidrawElement;
21
- state: "active" | "hover";
22
- } | null;
23
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
24
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
25
- multiElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawLinearElement> | null;
26
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
27
- isBindingEnabled: boolean;
28
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
29
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
30
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
31
- frameRendering: {
32
- enabled: boolean;
33
- name: boolean;
34
- outline: boolean;
35
- clip: boolean;
36
- };
37
- editingFrame: string | null;
38
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
39
- editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
40
- activeTool: {
41
- lastActiveTool: import("../types").ActiveTool | null;
42
- locked: boolean;
43
- fromSelection: boolean;
44
- } & import("../types").ActiveTool;
45
- penMode: boolean;
46
- penDetected: boolean;
47
- exportBackground: boolean;
48
- exportEmbedScene: boolean;
49
- exportWithDarkMode: boolean;
50
- exportScale: number;
51
- currentItemStrokeColor: string;
52
- currentItemBackgroundColor: string;
53
- currentItemFillStyle: import("../../element/src/types").FillStyle;
54
- currentItemStrokeWidth: number;
55
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
56
- currentItemRoughness: number;
57
- currentItemOpacity: number;
58
- currentItemFontFamily: number;
59
- currentItemFontSize: number;
60
- currentItemTextAlign: string;
61
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
62
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
63
- currentHoveredFontFamily: number | null;
64
- currentItemRoundness: import("../../element/src/types").StrokeRoundness;
65
- currentItemArrowType: "round" | "sharp" | "elbow";
66
- viewBackgroundColor: string;
67
- scrollX: number;
68
- scrollY: number;
69
- cursorButton: "up" | "down";
70
- scrolledOutside: boolean;
71
- name: string | null;
72
- isResizing: boolean;
73
- isRotating: boolean;
74
- zoom: Readonly<{
75
- value: import("../types").NormalizedZoomValue;
76
- }>;
77
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
78
- openSidebar: {
79
- name: string;
80
- tab?: string | undefined;
81
- } | null;
82
- openDialog: {
83
- name: "imageExport" | "help" | "jsonExport";
84
- } | {
85
- name: "ttd";
86
- tab: "mermaid" | "text-to-diagram";
87
- } | {
88
- name: "commandPalette";
89
- } | {
90
- name: "elementLinkSelector";
91
- sourceElementId: string;
92
- } | null;
93
- defaultSidebarDockedPreference: boolean;
94
- lastPointerDownWith: import("../../element/src/types").PointerType;
95
- selectedElementIds: Readonly<{
96
- [id: string]: true;
97
- }>;
98
- hoveredElementIds: Readonly<{
99
- [id: string]: true;
100
- }>;
101
- previousSelectedElementIds: {
102
- [id: string]: true;
103
- };
104
- selectedElementsAreBeingDragged: boolean;
105
- shouldCacheIgnoreZoom: boolean;
106
- toast: {
107
- message: string;
108
- closable?: boolean | undefined;
109
- duration?: number | undefined;
110
- } | null;
111
- zenModeEnabled: boolean;
112
- theme: import("../../element/src/types").Theme;
113
- gridSize: number;
114
- gridStep: number;
115
- gridModeEnabled: boolean;
116
- viewModeEnabled: boolean;
117
- selectedGroupIds: {
118
- [groupId: string]: boolean;
119
- };
120
- editingGroupId: string | null;
121
- width: number;
122
- height: number;
123
- offsetTop: number;
124
- offsetLeft: number;
125
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
126
- collaborators: Map<import("../types").SocketId, Readonly<{
127
- pointer?: import("../types").CollaboratorPointer | undefined;
128
- button?: "up" | "down" | undefined;
129
- selectedElementIds?: Readonly<{
130
- [id: string]: true;
131
- }> | undefined;
132
- username?: string | null | undefined;
133
- userState?: import("@excalidraw/common").UserIdleState | undefined;
134
- color?: {
135
- background: string;
136
- stroke: string;
137
- } | undefined;
138
- avatarUrl?: string | undefined;
139
- id?: string | undefined;
140
- socketId?: import("../types").SocketId | undefined;
141
- isCurrentUser?: boolean | undefined;
142
- isInCall?: boolean | undefined;
143
- isSpeaking?: boolean | undefined;
144
- isMuted?: boolean | undefined;
145
- }>>;
146
- stats: {
147
- open: boolean;
148
- panels: number;
149
- };
150
- currentChartType: import("../../element/src/types").ChartType;
151
- pasteDialog: {
152
- shown: false;
153
- data: null;
154
- } | {
155
- shown: true;
156
- data: import("../charts").Spreadsheet;
157
- };
158
- showHyperlinkPopup: false | "editor" | "info";
159
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
160
- snapLines: readonly import("../snapping").SnapLine[];
161
- originSnapOffset: {
162
- x: number;
163
- y: number;
164
- } | null;
165
- objectsSnapModeEnabled: boolean;
166
- userToFollow: import("../types").UserToFollow | null;
167
- followedBy: Set<import("../types").SocketId>;
168
- isCropping: boolean;
169
- croppingElementId: string | null;
170
- searchMatches: Readonly<{
171
- focusedId: string | null;
172
- matches: readonly import("../types").SearchMatch[];
173
- }> | null;
174
- activeLockedId: string | null;
175
- lockedMultiSelections: {
176
- [groupId: string]: true;
177
- };
178
- };
179
- captureUpdate: "EVENTUALLY";
180
- };
181
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
182
- } & {
183
- keyTest?: undefined;
184
- };
185
- export declare const actionToggleEditMenu: {
186
- name: "toggleEditMenu";
187
- label: string;
188
- trackEvent: {
189
- category: "menu";
190
- };
191
- perform: (_elements: readonly import("../../element/src/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
192
- appState: {
193
- openMenu: "shape" | null;
194
- contextMenu: {
195
- items: import("../components/ContextMenu").ContextMenuItems;
196
- top: number;
197
- left: number;
198
- } | null;
199
- showWelcomeScreen: boolean;
200
- isLoading: boolean;
201
- errorMessage: import("react").ReactNode;
202
- activeEmbeddable: {
203
- element: import("../../element/src/types").NonDeletedExcalidrawElement;
204
- state: "active" | "hover";
205
- } | null;
206
- newElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawNonSelectionElement> | null;
207
- resizingElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
208
- multiElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawLinearElement> | null;
209
- selectionElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
210
- isBindingEnabled: boolean;
211
- startBoundElement: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawBindableElement> | null;
212
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
213
- frameToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawFrameLikeElement> | null;
214
- frameRendering: {
215
- enabled: boolean;
216
- name: boolean;
217
- outline: boolean;
218
- clip: boolean;
219
- };
220
- editingFrame: string | null;
221
- elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
222
- editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
223
- activeTool: {
224
- lastActiveTool: import("../types").ActiveTool | null;
225
- locked: boolean;
226
- fromSelection: boolean;
227
- } & import("../types").ActiveTool;
228
- penMode: boolean;
229
- penDetected: boolean;
230
- exportBackground: boolean;
231
- exportEmbedScene: boolean;
232
- exportWithDarkMode: boolean;
233
- exportScale: number;
234
- currentItemStrokeColor: string;
235
- currentItemBackgroundColor: string;
236
- currentItemFillStyle: import("../../element/src/types").FillStyle;
237
- currentItemStrokeWidth: number;
238
- currentItemStrokeStyle: import("../../element/src/types").StrokeStyle;
239
- currentItemRoughness: number;
240
- currentItemOpacity: number;
241
- currentItemFontFamily: number;
242
- currentItemFontSize: number;
243
- currentItemTextAlign: string;
244
- currentItemStartArrowhead: import("../../element/src/types").Arrowhead | null;
245
- currentItemEndArrowhead: import("../../element/src/types").Arrowhead | null;
246
- currentHoveredFontFamily: number | null;
247
- currentItemRoundness: import("../../element/src/types").StrokeRoundness;
248
- currentItemArrowType: "round" | "sharp" | "elbow";
249
- viewBackgroundColor: string;
250
- scrollX: number;
251
- scrollY: number;
252
- cursorButton: "up" | "down";
253
- scrolledOutside: boolean;
254
- name: string | null;
255
- isResizing: boolean;
256
- isRotating: boolean;
257
- zoom: Readonly<{
258
- value: import("../types").NormalizedZoomValue;
259
- }>;
260
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
261
- openSidebar: {
262
- name: string;
263
- tab?: string | undefined;
264
- } | null;
265
- openDialog: {
266
- name: "imageExport" | "help" | "jsonExport";
267
- } | {
268
- name: "ttd";
269
- tab: "mermaid" | "text-to-diagram";
270
- } | {
271
- name: "commandPalette";
272
- } | {
273
- name: "elementLinkSelector";
274
- sourceElementId: string;
275
- } | null;
276
- defaultSidebarDockedPreference: boolean;
277
- lastPointerDownWith: import("../../element/src/types").PointerType;
278
- selectedElementIds: Readonly<{
279
- [id: string]: true;
280
- }>;
281
- hoveredElementIds: Readonly<{
282
- [id: string]: true;
283
- }>;
284
- previousSelectedElementIds: {
285
- [id: string]: true;
286
- };
287
- selectedElementsAreBeingDragged: boolean;
288
- shouldCacheIgnoreZoom: boolean;
289
- toast: {
290
- message: string;
291
- closable?: boolean | undefined;
292
- duration?: number | undefined;
293
- } | null;
294
- zenModeEnabled: boolean;
295
- theme: import("../../element/src/types").Theme;
296
- gridSize: number;
297
- gridStep: number;
298
- gridModeEnabled: boolean;
299
- viewModeEnabled: boolean;
300
- selectedGroupIds: {
301
- [groupId: string]: boolean;
302
- };
303
- editingGroupId: string | null;
304
- width: number;
305
- height: number;
306
- offsetTop: number;
307
- offsetLeft: number;
308
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
309
- collaborators: Map<import("../types").SocketId, Readonly<{
310
- pointer?: import("../types").CollaboratorPointer | undefined;
311
- button?: "up" | "down" | undefined;
312
- selectedElementIds?: Readonly<{
313
- [id: string]: true;
314
- }> | undefined;
315
- username?: string | null | undefined;
316
- userState?: import("@excalidraw/common").UserIdleState | undefined;
317
- color?: {
318
- background: string;
319
- stroke: string;
320
- } | undefined;
321
- avatarUrl?: string | undefined;
322
- id?: string | undefined;
323
- socketId?: import("../types").SocketId | undefined;
324
- isCurrentUser?: boolean | undefined;
325
- isInCall?: boolean | undefined;
326
- isSpeaking?: boolean | undefined;
327
- isMuted?: boolean | undefined;
328
- }>>;
329
- stats: {
330
- open: boolean;
331
- panels: number;
332
- };
333
- currentChartType: import("../../element/src/types").ChartType;
334
- pasteDialog: {
335
- shown: false;
336
- data: null;
337
- } | {
338
- shown: true;
339
- data: import("../charts").Spreadsheet;
340
- };
341
- showHyperlinkPopup: false | "editor" | "info";
342
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
343
- snapLines: readonly import("../snapping").SnapLine[];
344
- originSnapOffset: {
345
- x: number;
346
- y: number;
347
- } | null;
348
- objectsSnapModeEnabled: boolean;
349
- userToFollow: import("../types").UserToFollow | null;
350
- followedBy: Set<import("../types").SocketId>;
351
- isCropping: boolean;
352
- croppingElementId: string | null;
353
- searchMatches: Readonly<{
354
- focusedId: string | null;
355
- matches: readonly import("../types").SearchMatch[];
356
- }> | null;
357
- activeLockedId: string | null;
358
- lockedMultiSelections: {
359
- [groupId: string]: true;
360
- };
361
- };
362
- captureUpdate: "EVENTUALLY";
363
- };
364
- PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
365
- } & {
366
- keyTest?: undefined;
367
- };
368
2
  export declare const actionShortcuts: {
369
3
  name: "toggleShortcuts";
370
4
  label: string;
@@ -379,6 +13,8 @@ export declare const actionShortcuts: {
379
13
  openDialog: {
380
14
  name: "help";
381
15
  } | null;
16
+ openMenu: null;
17
+ openPopup: null;
382
18
  contextMenu: {
383
19
  items: import("../components/ContextMenu").ContextMenuItems;
384
20
  top: number;
@@ -413,6 +49,10 @@ export declare const actionShortcuts: {
413
49
  locked: boolean;
414
50
  fromSelection: boolean;
415
51
  } & import("../types").ActiveTool;
52
+ preferredSelectionTool: {
53
+ type: "selection" | "lasso";
54
+ initialized: boolean;
55
+ };
416
56
  penMode: boolean;
417
57
  penDetected: boolean;
418
58
  exportBackground: boolean;
@@ -445,8 +85,6 @@ export declare const actionShortcuts: {
445
85
  zoom: Readonly<{
446
86
  value: import("../types").NormalizedZoomValue;
447
87
  }>;
448
- openMenu: "canvas" | "shape" | null;
449
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
450
88
  openSidebar: {
451
89
  name: string;
452
90
  tab?: string | undefined;
@@ -516,7 +154,7 @@ export declare const actionShortcuts: {
516
154
  shown: true;
517
155
  data: import("../charts").Spreadsheet;
518
156
  };
519
- showHyperlinkPopup: false | "editor" | "info";
157
+ showHyperlinkPopup: false | "info" | "editor";
520
158
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
521
159
  snapLines: readonly import("../snapping").SnapLine[];
522
160
  originSnapOffset: {
@@ -44,6 +44,10 @@ export declare const actionGoToCollaborator: {
44
44
  locked: boolean;
45
45
  fromSelection: boolean;
46
46
  } & import("../types").ActiveTool;
47
+ preferredSelectionTool: {
48
+ type: "selection" | "lasso";
49
+ initialized: boolean;
50
+ };
47
51
  penMode: boolean;
48
52
  penDetected: boolean;
49
53
  exportBackground: boolean;
@@ -76,8 +80,8 @@ export declare const actionGoToCollaborator: {
76
80
  zoom: Readonly<{
77
81
  value: import("../types").NormalizedZoomValue;
78
82
  }>;
79
- openMenu: "canvas" | "shape" | null;
80
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
83
+ openMenu: "canvas" | null;
84
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
81
85
  openSidebar: {
82
86
  name: string;
83
87
  tab?: string | undefined;
@@ -158,7 +162,7 @@ export declare const actionGoToCollaborator: {
158
162
  shown: true;
159
163
  data: import("../charts").Spreadsheet;
160
164
  };
161
- showHyperlinkPopup: false | "editor" | "info";
165
+ showHyperlinkPopup: false | "info" | "editor";
162
166
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
163
167
  snapLines: readonly import("../snapping").SnapLine[];
164
168
  originSnapOffset: {
@@ -185,7 +189,7 @@ export declare const actionGoToCollaborator: {
185
189
  socketId: import("../types").SocketId;
186
190
  username: string;
187
191
  };
188
- openMenu: "shape" | null;
192
+ openMenu: null;
189
193
  contextMenu: {
190
194
  items: import("../components/ContextMenu").ContextMenuItems;
191
195
  top: number;
@@ -220,6 +224,10 @@ export declare const actionGoToCollaborator: {
220
224
  locked: boolean;
221
225
  fromSelection: boolean;
222
226
  } & import("../types").ActiveTool;
227
+ preferredSelectionTool: {
228
+ type: "selection" | "lasso";
229
+ initialized: boolean;
230
+ };
223
231
  penMode: boolean;
224
232
  penDetected: boolean;
225
233
  exportBackground: boolean;
@@ -252,7 +260,7 @@ export declare const actionGoToCollaborator: {
252
260
  zoom: Readonly<{
253
261
  value: import("../types").NormalizedZoomValue;
254
262
  }>;
255
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
263
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
256
264
  openSidebar: {
257
265
  name: string;
258
266
  tab?: string | undefined;
@@ -333,7 +341,7 @@ export declare const actionGoToCollaborator: {
333
341
  shown: true;
334
342
  data: import("../charts").Spreadsheet;
335
343
  };
336
- showHyperlinkPopup: false | "editor" | "info";
344
+ showHyperlinkPopup: false | "info" | "editor";
337
345
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
338
346
  snapLines: readonly import("../snapping").SnapLine[];
339
347
  originSnapOffset: {