@excalidraw/common 0.18.0-4e758db → 0.18.0-4f68076

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 (80) hide show
  1. package/dist/dev/index.js +15 -0
  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 +10 -0
  5. package/dist/types/common/src/utils.d.ts +5 -0
  6. package/dist/types/element/src/binding.d.ts +13 -7
  7. package/dist/types/element/src/collision.d.ts +14 -5
  8. package/dist/types/element/src/duplicate.d.ts +60 -0
  9. package/dist/types/element/src/index.d.ts +1 -0
  10. package/dist/types/element/src/listMarker.d.ts +34 -0
  11. package/dist/types/element/src/newElement.d.ts +15 -1
  12. package/dist/types/element/src/renderElement.d.ts +21 -4
  13. package/dist/types/element/src/shape.d.ts +15 -1
  14. package/dist/types/element/src/textElement.d.ts +7 -0
  15. package/dist/types/element/src/utils.d.ts +8 -1
  16. package/dist/types/element/src/zindex.d.ts +1 -1
  17. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +30 -3
  18. package/dist/types/excalidraw/actions/actionBoundText.d.ts +20 -2
  19. package/dist/types/excalidraw/actions/actionCanvas.d.ts +77 -14
  20. package/dist/types/excalidraw/actions/actionClipboard.d.ts +20 -2
  21. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +10 -1
  22. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +30 -3
  23. package/dist/types/excalidraw/actions/actionDeselect.d.ts +13 -1
  24. package/dist/types/excalidraw/actions/actionElementLink.d.ts +10 -1
  25. package/dist/types/excalidraw/actions/actionElementLock.d.ts +20 -2
  26. package/dist/types/excalidraw/actions/actionExport.d.ts +21 -3
  27. package/dist/types/excalidraw/actions/actionFrame.d.ts +30 -3
  28. package/dist/types/excalidraw/actions/actionGroup.d.ts +20 -2
  29. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +10 -1
  30. package/dist/types/excalidraw/actions/actionLink.d.ts +10 -1
  31. package/dist/types/excalidraw/actions/actionMenu.d.ts +10 -1
  32. package/dist/types/excalidraw/actions/actionProperties.d.ts +20 -2
  33. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +10 -1
  34. package/dist/types/excalidraw/actions/actionStyles.d.ts +10 -1
  35. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +10 -1
  36. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +10 -1
  37. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +10 -1
  38. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +10 -1
  39. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +10 -1
  40. package/dist/types/excalidraw/actions/actionToggleShowHints.d.ts +197 -0
  41. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +10 -1
  42. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +10 -1
  43. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +10 -1
  44. package/dist/types/excalidraw/actions/index.d.ts +1 -0
  45. package/dist/types/excalidraw/actions/types.d.ts +1 -1
  46. package/dist/types/excalidraw/appState.d.ts +5 -3
  47. package/dist/types/excalidraw/components/App.arrowText.d.ts +5 -39
  48. package/dist/types/excalidraw/components/App.clipboard.d.ts +31 -0
  49. package/dist/types/excalidraw/components/App.d.ts +82 -262
  50. package/dist/types/excalidraw/components/App.duplicate.d.ts +101 -0
  51. package/dist/types/excalidraw/components/App.modifiers.d.ts +38 -0
  52. package/dist/types/excalidraw/components/App.pan.d.ts +62 -0
  53. package/dist/types/excalidraw/components/App.selectionTool.d.ts +57 -0
  54. package/dist/types/excalidraw/components/App.text.d.ts +146 -0
  55. package/dist/types/excalidraw/components/App.textTool.d.ts +140 -0
  56. package/dist/types/excalidraw/components/App.viewport.d.ts +41 -1
  57. package/dist/types/excalidraw/components/App.wheel.d.ts +3 -10
  58. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
  59. package/dist/types/excalidraw/components/ColorPicker/colorTopPicksDnD.d.ts +11 -0
  60. package/dist/types/excalidraw/components/FileDropOverlay.d.ts +2 -0
  61. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +4 -1
  62. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +6 -1
  63. package/dist/types/excalidraw/components/FontPicker/fontTopPicksDnD.d.ts +12 -0
  64. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +6 -2
  65. package/dist/types/excalidraw/components/LibraryUnit.d.ts +7 -2
  66. package/dist/types/excalidraw/components/Tooltip.d.ts +15 -1
  67. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksContextMenu.d.ts +14 -0
  68. package/dist/types/excalidraw/components/TopPicksDnD/TopPicksTip.d.ts +11 -0
  69. package/dist/types/excalidraw/components/TopPicksDnD/topPicksDnD.d.ts +58 -0
  70. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -0
  71. package/dist/types/excalidraw/data/blob.d.ts +22 -4
  72. package/dist/types/excalidraw/data/json.d.ts +11 -2
  73. package/dist/types/excalidraw/renderOverrides.d.ts +9 -0
  74. package/dist/types/excalidraw/scene/Renderer.d.ts +14 -1
  75. package/dist/types/excalidraw/scene/types.d.ts +2 -1
  76. package/dist/types/excalidraw/types.d.ts +92 -19
  77. package/dist/types/excalidraw/viewport.d.ts +23 -1
  78. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +12 -1
  79. package/package.json +1 -1
  80. package/dist/types/excalidraw/components/ColorPicker/topPicksDnD.d.ts +0 -31
@@ -32,12 +32,20 @@ export declare const actionDeleteSelected: {
32
32
  boxSelectionMode: import("../types").BoxSelectionMode;
33
33
  bindingPreference: "enabled" | "disabled";
34
34
  isMidpointSnappingEnabled: boolean;
35
+ showHints: boolean;
35
36
  inputDevice: import("../types").InputDevice;
36
37
  suggestedBinding: {
37
38
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
38
39
  midPoint?: import("@excalidraw/math").GlobalPoint;
39
40
  } | null;
40
- hoveredArrowTextAnchor: {
41
+ textToolHover: {
42
+ type: "text";
43
+ elementId: ExcalidrawElement["id"];
44
+ } | {
45
+ type: "container";
46
+ elementId: ExcalidrawElement["id"];
47
+ } | {
48
+ type: "arrow";
41
49
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
42
50
  anchor: "start" | "end" | "label";
43
51
  } | null;
@@ -180,6 +188,7 @@ export declare const actionDeleteSelected: {
180
188
  stickyNoteStroke: readonly string[] | null;
181
189
  stickyNoteBackground: readonly string[] | null;
182
190
  };
191
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
183
192
  };
184
193
  captureUpdate: "IMMEDIATELY";
185
194
  } | {
@@ -239,12 +248,20 @@ export declare const actionDeleteSelected: {
239
248
  boxSelectionMode: import("../types").BoxSelectionMode;
240
249
  bindingPreference: "enabled" | "disabled";
241
250
  isMidpointSnappingEnabled: boolean;
251
+ showHints: boolean;
242
252
  inputDevice: import("../types").InputDevice;
243
253
  suggestedBinding: {
244
254
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
245
255
  midPoint?: import("@excalidraw/math").GlobalPoint;
246
256
  } | null;
247
- hoveredArrowTextAnchor: {
257
+ textToolHover: {
258
+ type: "text";
259
+ elementId: ExcalidrawElement["id"];
260
+ } | {
261
+ type: "container";
262
+ elementId: ExcalidrawElement["id"];
263
+ } | {
264
+ type: "arrow";
248
265
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
249
266
  anchor: "start" | "end" | "label";
250
267
  } | null;
@@ -387,6 +404,7 @@ export declare const actionDeleteSelected: {
387
404
  stickyNoteStroke: readonly string[] | null;
388
405
  stickyNoteBackground: readonly string[] | null;
389
406
  };
407
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
390
408
  };
391
409
  captureUpdate: "IMMEDIATELY";
392
410
  } | {
@@ -418,12 +436,20 @@ export declare const actionDeleteSelected: {
418
436
  boxSelectionMode: import("../types").BoxSelectionMode;
419
437
  bindingPreference: "enabled" | "disabled";
420
438
  isMidpointSnappingEnabled: boolean;
439
+ showHints: boolean;
421
440
  inputDevice: import("../types").InputDevice;
422
441
  suggestedBinding: {
423
442
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
424
443
  midPoint?: import("@excalidraw/math").GlobalPoint;
425
444
  } | null;
426
- hoveredArrowTextAnchor: {
445
+ textToolHover: {
446
+ type: "text";
447
+ elementId: ExcalidrawElement["id"];
448
+ } | {
449
+ type: "container";
450
+ elementId: ExcalidrawElement["id"];
451
+ } | {
452
+ type: "arrow";
427
453
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
428
454
  anchor: "start" | "end" | "label";
429
455
  } | null;
@@ -554,6 +580,7 @@ export declare const actionDeleteSelected: {
554
580
  stickyNoteStroke: readonly string[] | null;
555
581
  stickyNoteBackground: readonly string[] | null;
556
582
  };
583
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
557
584
  };
558
585
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
559
586
  };
@@ -15,7 +15,6 @@ export declare const actionDeselect: {
15
15
  selectionElement: null;
16
16
  showHyperlinkPopup: false;
17
17
  suggestedBinding: null;
18
- hoveredArrowTextAnchor: null;
19
18
  frameToHighlight: null;
20
19
  selectedElementIds: AppState["selectedElementIds"];
21
20
  selectedGroupIds: AppState["selectedGroupIds"];
@@ -35,7 +34,19 @@ export declare const actionDeselect: {
35
34
  boxSelectionMode: import("../types").BoxSelectionMode;
36
35
  bindingPreference: "enabled" | "disabled";
37
36
  isMidpointSnappingEnabled: boolean;
37
+ showHints: boolean;
38
38
  inputDevice: import("../types").InputDevice;
39
+ textToolHover: {
40
+ type: "text";
41
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
42
+ } | {
43
+ type: "container";
44
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
45
+ } | {
46
+ type: "arrow";
47
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
48
+ anchor: "start" | "end" | "label";
49
+ } | null;
39
50
  frameRendering: {
40
51
  enabled: boolean;
41
52
  name: boolean;
@@ -161,6 +172,7 @@ export declare const actionDeselect: {
161
172
  stickyNoteStroke: readonly string[] | null;
162
173
  stickyNoteBackground: readonly string[] | null;
163
174
  };
175
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
164
176
  };
165
177
  captureUpdate: "IMMEDIATELY";
166
178
  };
@@ -60,12 +60,20 @@ export declare const actionLinkToElement: {
60
60
  boxSelectionMode: import("../types").BoxSelectionMode;
61
61
  bindingPreference: "enabled" | "disabled";
62
62
  isMidpointSnappingEnabled: boolean;
63
+ showHints: boolean;
63
64
  inputDevice: import("../types").InputDevice;
64
65
  suggestedBinding: {
65
66
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
66
67
  midPoint?: import("@excalidraw/math").GlobalPoint;
67
68
  } | null;
68
- hoveredArrowTextAnchor: {
69
+ textToolHover: {
70
+ type: "text";
71
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
72
+ } | {
73
+ type: "container";
74
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
75
+ } | {
76
+ type: "arrow";
69
77
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
70
78
  anchor: "start" | "end" | "label";
71
79
  } | null;
@@ -192,6 +200,7 @@ export declare const actionLinkToElement: {
192
200
  stickyNoteStroke: readonly string[] | null;
193
201
  stickyNoteBackground: readonly string[] | null;
194
202
  };
203
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
195
204
  };
196
205
  captureUpdate: "IMMEDIATELY";
197
206
  elements?: undefined;
@@ -42,12 +42,20 @@ export declare const actionToggleElementLock: {
42
42
  boxSelectionMode: import("../types").BoxSelectionMode;
43
43
  bindingPreference: "enabled" | "disabled";
44
44
  isMidpointSnappingEnabled: boolean;
45
+ showHints: boolean;
45
46
  inputDevice: import("../types").InputDevice;
46
47
  suggestedBinding: {
47
48
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
48
49
  midPoint?: import("@excalidraw/math").GlobalPoint;
49
50
  } | null;
50
- hoveredArrowTextAnchor: {
51
+ textToolHover: {
52
+ type: "text";
53
+ elementId: ExcalidrawElement["id"];
54
+ } | {
55
+ type: "container";
56
+ elementId: ExcalidrawElement["id"];
57
+ } | {
58
+ type: "arrow";
51
59
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
52
60
  anchor: "start" | "end" | "label";
53
61
  } | null;
@@ -180,6 +188,7 @@ export declare const actionToggleElementLock: {
180
188
  stickyNoteStroke: readonly string[] | null;
181
189
  stickyNoteBackground: readonly string[] | null;
182
190
  };
191
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
183
192
  };
184
193
  captureUpdate: "IMMEDIATELY";
185
194
  };
@@ -226,12 +235,20 @@ export declare const actionUnlockAllElements: {
226
235
  boxSelectionMode: import("../types").BoxSelectionMode;
227
236
  bindingPreference: "enabled" | "disabled";
228
237
  isMidpointSnappingEnabled: boolean;
238
+ showHints: boolean;
229
239
  inputDevice: import("../types").InputDevice;
230
240
  suggestedBinding: {
231
241
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
232
242
  midPoint?: import("@excalidraw/math").GlobalPoint;
233
243
  } | null;
234
- hoveredArrowTextAnchor: {
244
+ textToolHover: {
245
+ type: "text";
246
+ elementId: ExcalidrawElement["id"];
247
+ } | {
248
+ type: "container";
249
+ elementId: ExcalidrawElement["id"];
250
+ } | {
251
+ type: "arrow";
235
252
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
236
253
  anchor: "start" | "end" | "label";
237
254
  } | null;
@@ -365,6 +382,7 @@ export declare const actionUnlockAllElements: {
365
382
  stickyNoteStroke: readonly string[] | null;
366
383
  stickyNoteBackground: readonly string[] | null;
367
384
  };
385
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
368
386
  };
369
387
  captureUpdate: "IMMEDIATELY";
370
388
  };
@@ -82,6 +82,7 @@ export declare const actionLoadScene: {
82
82
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => Promise<false | {
83
83
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
84
84
  appState: {
85
+ zoom: import("../types").Zoom;
85
86
  viewModeEnabled: boolean;
86
87
  activeTool: {
87
88
  lastActiveTool: import("../types").ActiveTool | null;
@@ -115,12 +116,20 @@ export declare const actionLoadScene: {
115
116
  boxSelectionMode: import("../types").BoxSelectionMode;
116
117
  bindingPreference: "enabled" | "disabled";
117
118
  isMidpointSnappingEnabled: boolean;
119
+ showHints: boolean;
118
120
  inputDevice: import("../types").InputDevice;
119
121
  suggestedBinding: {
120
122
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
121
123
  midPoint?: import("@excalidraw/math").GlobalPoint;
122
124
  } | null;
123
- hoveredArrowTextAnchor: {
125
+ textToolHover: {
126
+ type: "text";
127
+ elementId: ExcalidrawElement["id"];
128
+ } | {
129
+ type: "container";
130
+ elementId: ExcalidrawElement["id"];
131
+ } | {
132
+ type: "arrow";
124
133
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
125
134
  anchor: "start" | "end" | "label";
126
135
  } | null;
@@ -169,7 +178,6 @@ export declare const actionLoadScene: {
169
178
  scrolledOutside: boolean;
170
179
  isResizing: boolean;
171
180
  isRotating: boolean;
172
- zoom: import("../types").Zoom;
173
181
  openMenu: "canvas" | null;
174
182
  openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
175
183
  openSidebar: {
@@ -247,6 +255,7 @@ export declare const actionLoadScene: {
247
255
  stickyNoteStroke: readonly string[] | null;
248
256
  stickyNoteBackground: readonly string[] | null;
249
257
  };
258
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
250
259
  };
251
260
  files: BinaryFiles;
252
261
  captureUpdate: "IMMEDIATELY";
@@ -273,12 +282,20 @@ export declare const actionLoadScene: {
273
282
  boxSelectionMode: import("../types").BoxSelectionMode;
274
283
  bindingPreference: "enabled" | "disabled";
275
284
  isMidpointSnappingEnabled: boolean;
285
+ showHints: boolean;
276
286
  inputDevice: import("../types").InputDevice;
277
287
  suggestedBinding: {
278
288
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
279
289
  midPoint?: import("@excalidraw/math").GlobalPoint;
280
290
  } | null;
281
- hoveredArrowTextAnchor: {
291
+ textToolHover: {
292
+ type: "text";
293
+ elementId: ExcalidrawElement["id"];
294
+ } | {
295
+ type: "container";
296
+ elementId: ExcalidrawElement["id"];
297
+ } | {
298
+ type: "arrow";
282
299
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
283
300
  anchor: "start" | "end" | "label";
284
301
  } | null;
@@ -422,6 +439,7 @@ export declare const actionLoadScene: {
422
439
  stickyNoteStroke: readonly string[] | null;
423
440
  stickyNoteBackground: readonly string[] | null;
424
441
  };
442
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
425
443
  };
426
444
  files: BinaryFiles;
427
445
  captureUpdate: "EVENTUALLY";
@@ -30,12 +30,20 @@ export declare const actionSelectAllElementsInFrame: {
30
30
  boxSelectionMode: import("../types").BoxSelectionMode;
31
31
  bindingPreference: "enabled" | "disabled";
32
32
  isMidpointSnappingEnabled: boolean;
33
+ showHints: boolean;
33
34
  inputDevice: import("../types").InputDevice;
34
35
  suggestedBinding: {
35
36
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
36
37
  midPoint?: import("@excalidraw/math").GlobalPoint;
37
38
  } | null;
38
- hoveredArrowTextAnchor: {
39
+ textToolHover: {
40
+ type: "text";
41
+ elementId: ExcalidrawElement["id"];
42
+ } | {
43
+ type: "container";
44
+ elementId: ExcalidrawElement["id"];
45
+ } | {
46
+ type: "arrow";
39
47
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
40
48
  anchor: "start" | "end" | "label";
41
49
  } | null;
@@ -176,6 +184,7 @@ export declare const actionSelectAllElementsInFrame: {
176
184
  stickyNoteStroke: readonly string[] | null;
177
185
  stickyNoteBackground: readonly string[] | null;
178
186
  };
187
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
179
188
  };
180
189
  captureUpdate: "IMMEDIATELY";
181
190
  } | {
@@ -219,12 +228,20 @@ export declare const actionRemoveAllElementsFromFrame: {
219
228
  boxSelectionMode: import("../types").BoxSelectionMode;
220
229
  bindingPreference: "enabled" | "disabled";
221
230
  isMidpointSnappingEnabled: boolean;
231
+ showHints: boolean;
222
232
  inputDevice: import("../types").InputDevice;
223
233
  suggestedBinding: {
224
234
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
225
235
  midPoint?: import("@excalidraw/math").GlobalPoint;
226
236
  } | null;
227
- hoveredArrowTextAnchor: {
237
+ textToolHover: {
238
+ type: "text";
239
+ elementId: ExcalidrawElement["id"];
240
+ } | {
241
+ type: "container";
242
+ elementId: ExcalidrawElement["id"];
243
+ } | {
244
+ type: "arrow";
228
245
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
229
246
  anchor: "start" | "end" | "label";
230
247
  } | null;
@@ -365,6 +382,7 @@ export declare const actionRemoveAllElementsFromFrame: {
365
382
  stickyNoteStroke: readonly string[] | null;
366
383
  stickyNoteBackground: readonly string[] | null;
367
384
  };
385
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
368
386
  };
369
387
  captureUpdate: "IMMEDIATELY";
370
388
  } | {
@@ -412,12 +430,20 @@ export declare const actionupdateFrameRendering: {
412
430
  boxSelectionMode: import("../types").BoxSelectionMode;
413
431
  bindingPreference: "enabled" | "disabled";
414
432
  isMidpointSnappingEnabled: boolean;
433
+ showHints: boolean;
415
434
  inputDevice: import("../types").InputDevice;
416
435
  suggestedBinding: {
417
436
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
418
437
  midPoint?: import("@excalidraw/math").GlobalPoint;
419
438
  } | null;
420
- hoveredArrowTextAnchor: {
439
+ textToolHover: {
440
+ type: "text";
441
+ elementId: ExcalidrawElement["id"];
442
+ } | {
443
+ type: "container";
444
+ elementId: ExcalidrawElement["id"];
445
+ } | {
446
+ type: "arrow";
421
447
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
422
448
  anchor: "start" | "end" | "label";
423
449
  } | null;
@@ -555,6 +581,7 @@ export declare const actionupdateFrameRendering: {
555
581
  stickyNoteStroke: readonly string[] | null;
556
582
  stickyNoteBackground: readonly string[] | null;
557
583
  };
584
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
558
585
  };
559
586
  captureUpdate: "EVENTUALLY";
560
587
  };
@@ -36,12 +36,20 @@ export declare const actionGroup: {
36
36
  boxSelectionMode: import("../types").BoxSelectionMode;
37
37
  bindingPreference: "enabled" | "disabled";
38
38
  isMidpointSnappingEnabled: boolean;
39
+ showHints: boolean;
39
40
  inputDevice: import("../types").InputDevice;
40
41
  suggestedBinding: {
41
42
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
42
43
  midPoint?: import("@excalidraw/math").GlobalPoint;
43
44
  } | null;
44
- hoveredArrowTextAnchor: {
45
+ textToolHover: {
46
+ type: "text";
47
+ elementId: ExcalidrawElement["id"];
48
+ } | {
49
+ type: "container";
50
+ elementId: ExcalidrawElement["id"];
51
+ } | {
52
+ type: "arrow";
45
53
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
46
54
  anchor: "start" | "end" | "label";
47
55
  } | null;
@@ -178,6 +186,7 @@ export declare const actionGroup: {
178
186
  stickyNoteStroke: readonly string[] | null;
179
187
  stickyNoteBackground: readonly string[] | null;
180
188
  };
189
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
181
190
  };
182
191
  elements: OrderedExcalidrawElement[];
183
192
  captureUpdate: "IMMEDIATELY";
@@ -224,12 +233,20 @@ export declare const actionUngroup: {
224
233
  boxSelectionMode: import("../types").BoxSelectionMode;
225
234
  bindingPreference: "enabled" | "disabled";
226
235
  isMidpointSnappingEnabled: boolean;
236
+ showHints: boolean;
227
237
  inputDevice: import("../types").InputDevice;
228
238
  suggestedBinding: {
229
239
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
230
240
  midPoint?: import("@excalidraw/math").GlobalPoint;
231
241
  } | null;
232
- hoveredArrowTextAnchor: {
242
+ textToolHover: {
243
+ type: "text";
244
+ elementId: ExcalidrawElement["id"];
245
+ } | {
246
+ type: "container";
247
+ elementId: ExcalidrawElement["id"];
248
+ } | {
249
+ type: "arrow";
233
250
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
234
251
  anchor: "start" | "end" | "label";
235
252
  } | null;
@@ -366,6 +383,7 @@ export declare const actionUngroup: {
366
383
  stickyNoteStroke: readonly string[] | null;
367
384
  stickyNoteBackground: readonly string[] | null;
368
385
  };
386
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
369
387
  };
370
388
  elements: OrderedExcalidrawElement[];
371
389
  captureUpdate: "IMMEDIATELY";
@@ -64,12 +64,20 @@ export declare const actionToggleLinearEditor: {
64
64
  boxSelectionMode: import("../types").BoxSelectionMode;
65
65
  bindingPreference: "enabled" | "disabled";
66
66
  isMidpointSnappingEnabled: boolean;
67
+ showHints: boolean;
67
68
  inputDevice: import("../types").InputDevice;
68
69
  suggestedBinding: {
69
70
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
70
71
  midPoint?: import("@excalidraw/math").GlobalPoint;
71
72
  } | null;
72
- hoveredArrowTextAnchor: {
73
+ textToolHover: {
74
+ type: "text";
75
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
76
+ } | {
77
+ type: "container";
78
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
79
+ } | {
80
+ type: "arrow";
73
81
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
74
82
  anchor: "start" | "end" | "label";
75
83
  } | null;
@@ -212,6 +220,7 @@ export declare const actionToggleLinearEditor: {
212
220
  stickyNoteStroke: readonly string[] | null;
213
221
  stickyNoteBackground: readonly string[] | null;
214
222
  };
223
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
215
224
  };
216
225
  captureUpdate: "IMMEDIATELY";
217
226
  };
@@ -27,12 +27,20 @@ export declare const actionLink: {
27
27
  boxSelectionMode: import("../types").BoxSelectionMode;
28
28
  bindingPreference: "enabled" | "disabled";
29
29
  isMidpointSnappingEnabled: boolean;
30
+ showHints: boolean;
30
31
  inputDevice: import("../types").InputDevice;
31
32
  suggestedBinding: {
32
33
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
33
34
  midPoint?: import("@excalidraw/math").GlobalPoint;
34
35
  } | null;
35
- hoveredArrowTextAnchor: {
36
+ textToolHover: {
37
+ type: "text";
38
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
39
+ } | {
40
+ type: "container";
41
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
42
+ } | {
43
+ type: "arrow";
36
44
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
37
45
  anchor: "start" | "end" | "label";
38
46
  } | null;
@@ -174,6 +182,7 @@ export declare const actionLink: {
174
182
  stickyNoteStroke: readonly string[] | null;
175
183
  stickyNoteBackground: readonly string[] | null;
176
184
  };
185
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
177
186
  };
178
187
  captureUpdate: "IMMEDIATELY";
179
188
  };
@@ -34,12 +34,20 @@ export declare const actionShortcuts: {
34
34
  boxSelectionMode: import("../types").BoxSelectionMode;
35
35
  bindingPreference: "enabled" | "disabled";
36
36
  isMidpointSnappingEnabled: boolean;
37
+ showHints: boolean;
37
38
  inputDevice: import("../types").InputDevice;
38
39
  suggestedBinding: {
39
40
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
40
41
  midPoint?: import("@excalidraw/math").GlobalPoint;
41
42
  } | null;
42
- hoveredArrowTextAnchor: {
43
+ textToolHover: {
44
+ type: "text";
45
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
46
+ } | {
47
+ type: "container";
48
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
49
+ } | {
50
+ type: "arrow";
43
51
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
44
52
  anchor: "start" | "end" | "label";
45
53
  } | null;
@@ -164,6 +172,7 @@ export declare const actionShortcuts: {
164
172
  stickyNoteStroke: readonly string[] | null;
165
173
  stickyNoteBackground: readonly string[] | null;
166
174
  };
175
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
167
176
  };
168
177
  captureUpdate: "EVENTUALLY";
169
178
  };
@@ -72,12 +72,20 @@ export declare const actionDecreaseFontSize: {
72
72
  boxSelectionMode: import("../types").BoxSelectionMode;
73
73
  bindingPreference: "enabled" | "disabled";
74
74
  isMidpointSnappingEnabled: boolean;
75
+ showHints: boolean;
75
76
  inputDevice: import("../types").InputDevice;
76
77
  suggestedBinding: {
77
78
  element: NonDeleted<ExcalidrawBindableElement>;
78
79
  midPoint?: import("@excalidraw/math").GlobalPoint;
79
80
  } | null;
80
- hoveredArrowTextAnchor: {
81
+ textToolHover: {
82
+ type: "text";
83
+ elementId: ExcalidrawElement["id"];
84
+ } | {
85
+ type: "container";
86
+ elementId: ExcalidrawElement["id"];
87
+ } | {
88
+ type: "arrow";
81
89
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
82
90
  anchor: "start" | "end" | "label";
83
91
  } | null;
@@ -220,6 +228,7 @@ export declare const actionDecreaseFontSize: {
220
228
  stickyNoteStroke: readonly string[] | null;
221
229
  stickyNoteBackground: readonly string[] | null;
222
230
  };
231
+ fontTopPicks: readonly FontFamilyValues[] | null;
223
232
  };
224
233
  captureUpdate: "IMMEDIATELY";
225
234
  };
@@ -256,12 +265,20 @@ export declare const actionIncreaseFontSize: {
256
265
  boxSelectionMode: import("../types").BoxSelectionMode;
257
266
  bindingPreference: "enabled" | "disabled";
258
267
  isMidpointSnappingEnabled: boolean;
268
+ showHints: boolean;
259
269
  inputDevice: import("../types").InputDevice;
260
270
  suggestedBinding: {
261
271
  element: NonDeleted<ExcalidrawBindableElement>;
262
272
  midPoint?: import("@excalidraw/math").GlobalPoint;
263
273
  } | null;
264
- hoveredArrowTextAnchor: {
274
+ textToolHover: {
275
+ type: "text";
276
+ elementId: ExcalidrawElement["id"];
277
+ } | {
278
+ type: "container";
279
+ elementId: ExcalidrawElement["id"];
280
+ } | {
281
+ type: "arrow";
265
282
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
266
283
  anchor: "start" | "end" | "label";
267
284
  } | null;
@@ -404,6 +421,7 @@ export declare const actionIncreaseFontSize: {
404
421
  stickyNoteStroke: readonly string[] | null;
405
422
  stickyNoteBackground: readonly string[] | null;
406
423
  };
424
+ fontTopPicks: readonly FontFamilyValues[] | null;
407
425
  };
408
426
  captureUpdate: "IMMEDIATELY";
409
427
  };
@@ -34,12 +34,20 @@ export declare const actionSelectAll: {
34
34
  boxSelectionMode: import("../types").BoxSelectionMode;
35
35
  bindingPreference: "enabled" | "disabled";
36
36
  isMidpointSnappingEnabled: boolean;
37
+ showHints: boolean;
37
38
  inputDevice: import("../types").InputDevice;
38
39
  suggestedBinding: {
39
40
  element: NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
40
41
  midPoint?: import("@excalidraw/math").GlobalPoint;
41
42
  } | null;
42
- hoveredArrowTextAnchor: {
43
+ textToolHover: {
44
+ type: "text";
45
+ elementId: ExcalidrawElement["id"];
46
+ } | {
47
+ type: "container";
48
+ elementId: ExcalidrawElement["id"];
49
+ } | {
50
+ type: "arrow";
43
51
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
44
52
  anchor: "start" | "end" | "label";
45
53
  } | null;
@@ -175,6 +183,7 @@ export declare const actionSelectAll: {
175
183
  stickyNoteStroke: readonly string[] | null;
176
184
  stickyNoteBackground: readonly string[] | null;
177
185
  };
186
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
178
187
  };
179
188
  captureUpdate: "IMMEDIATELY";
180
189
  };
@@ -32,12 +32,20 @@ export declare const actionCopyStyles: {
32
32
  boxSelectionMode: import("../types").BoxSelectionMode;
33
33
  bindingPreference: "enabled" | "disabled";
34
34
  isMidpointSnappingEnabled: boolean;
35
+ showHints: boolean;
35
36
  inputDevice: import("../types").InputDevice;
36
37
  suggestedBinding: {
37
38
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
38
39
  midPoint?: import("@excalidraw/math").GlobalPoint;
39
40
  } | null;
40
- hoveredArrowTextAnchor: {
41
+ textToolHover: {
42
+ type: "text";
43
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
44
+ } | {
45
+ type: "container";
46
+ elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
47
+ } | {
48
+ type: "arrow";
41
49
  elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
42
50
  anchor: "start" | "end" | "label";
43
51
  } | null;
@@ -176,6 +184,7 @@ export declare const actionCopyStyles: {
176
184
  stickyNoteStroke: readonly string[] | null;
177
185
  stickyNoteBackground: readonly string[] | null;
178
186
  };
187
+ fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
179
188
  };
180
189
  captureUpdate: "EVENTUALLY";
181
190
  };