@excalidraw/excalidraw 0.17.0-a528769 → 0.17.0-dd220bc

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/CHANGELOG.md +6 -0
  2. package/dist/excalidraw-assets-dev/{vendor-18203854dd3b1fb2cc41.js → vendor-0aa6bd65c58be7c84e9c.js} +2 -2
  3. package/dist/excalidraw-with-preact.development.js +372 -75
  4. package/dist/excalidraw-with-preact.production.min.js +1 -1
  5. package/dist/excalidraw.development.js +372 -75
  6. package/dist/excalidraw.production.min.js +1 -1
  7. package/package.json +1 -1
  8. package/types/actions/actionAddToLibrary.d.ts +33 -6
  9. package/types/actions/actionBoundText.d.ts +22 -4
  10. package/types/actions/actionCanvas.d.ts +121 -22
  11. package/types/actions/actionClipboard.d.ts +77 -14
  12. package/types/actions/actionDeleteSelected.d.ts +33 -6
  13. package/types/actions/actionElementLock.d.ts +22 -4
  14. package/types/actions/actionExport.d.ts +94 -22
  15. package/types/actions/actionFinalize.d.ts +22 -4
  16. package/types/actions/actionFrame.d.ts +33 -6
  17. package/types/actions/actionGroup.d.ts +22 -4
  18. package/types/actions/actionLinearEditor.d.ts +11 -2
  19. package/types/actions/actionMenu.d.ts +26 -6
  20. package/types/actions/actionProperties.d.ts +143 -26
  21. package/types/actions/actionSelectAll.d.ts +11 -2
  22. package/types/actions/actionStyles.d.ts +11 -2
  23. package/types/actions/actionToggleGridMode.d.ts +11 -2
  24. package/types/actions/actionToggleObjectsSnapMode.d.ts +11 -2
  25. package/types/actions/actionToggleStats.d.ts +11 -2
  26. package/types/actions/actionToggleViewMode.d.ts +11 -2
  27. package/types/actions/actionToggleZenMode.d.ts +11 -2
  28. package/types/appState.d.ts +2 -2
  29. package/types/components/App.d.ts +27 -6
  30. package/types/components/Button.d.ts +1 -1
  31. package/types/components/InlineIcon.d.ts +3 -0
  32. package/types/components/LayerUI.d.ts +5 -1
  33. package/types/components/MagicButton.d.ts +9 -0
  34. package/types/components/MagicSettings.d.ts +8 -0
  35. package/types/components/Paragraph.d.ts +4 -0
  36. package/types/components/TTDDialog/MermaidToExcalidraw.d.ts +6 -0
  37. package/types/components/TTDDialog/TTDDialog.d.ts +29 -0
  38. package/types/components/TTDDialog/TTDDialogInput.d.ts +9 -0
  39. package/types/components/TTDDialog/TTDDialogOutput.d.ts +7 -0
  40. package/types/components/TTDDialog/TTDDialogPanel.d.ts +16 -0
  41. package/types/components/TTDDialog/TTDDialogPanels.d.ts +4 -0
  42. package/types/components/TTDDialog/TTDDialogTab.d.ts +7 -0
  43. package/types/components/TTDDialog/TTDDialogTabTrigger.d.ts +8 -0
  44. package/types/components/TTDDialog/TTDDialogTabTriggers.d.ts +6 -0
  45. package/types/components/TTDDialog/TTDDialogTabs.d.ts +14 -0
  46. package/types/components/TTDDialog/TTDDialogTrigger.d.ts +8 -0
  47. package/types/components/TTDDialog/common.d.ts +33 -0
  48. package/types/components/TextField.d.ts +16 -0
  49. package/types/components/dropdownMenu/DropdownMenu.d.ts +6 -0
  50. package/types/components/dropdownMenu/DropdownMenuItem.d.ts +12 -0
  51. package/types/components/icons.d.ts +6 -0
  52. package/types/components/main-menu/MainMenu.d.ts +6 -0
  53. package/types/constants.d.ts +24 -2
  54. package/types/context/tunnels.d.ts +1 -0
  55. package/types/data/EditorLocalStorage.d.ts +8 -0
  56. package/types/data/ai/types.d.ts +242 -0
  57. package/types/data/index.d.ts +3 -3
  58. package/types/data/magic.d.ts +23 -0
  59. package/types/data/transform.d.ts +11 -7
  60. package/types/element/ElementCanvasButtons.d.ts +6 -0
  61. package/types/element/Hyperlink.d.ts +11 -2
  62. package/types/element/collision.d.ts +2 -2
  63. package/types/element/embeddable.d.ts +17 -21
  64. package/types/element/index.d.ts +3 -4
  65. package/types/element/linearElementEditor.d.ts +12 -3
  66. package/types/element/newElement.d.ts +7 -1
  67. package/types/element/textElement.d.ts +2 -2
  68. package/types/element/typeChecks.d.ts +9 -6
  69. package/types/element/types.d.ts +29 -2
  70. package/types/frame.d.ts +21 -20
  71. package/types/packages/excalidraw/index.d.ts +2 -0
  72. package/types/packages/utils.d.ts +2 -2
  73. package/types/scene/Scene.d.ts +4 -4
  74. package/types/scene/ShapeCache.d.ts +1 -1
  75. package/types/scene/comparisons.d.ts +7 -6
  76. package/types/scene/export.d.ts +3 -3
  77. package/types/scene/types.d.ts +2 -0
  78. package/types/shapes.d.ts +1 -1
  79. package/types/types.d.ts +25 -10
  80. package/types/utils.d.ts +2 -2
  81. package/types/components/MermaidToExcalidraw.d.ts +0 -3
  82. /package/types/packages/excalidraw/dist/excalidraw-assets-dev/{vendor-18203854dd3b1fb2cc41.d.ts → vendor-0aa6bd65c58be7c84e9c.d.ts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@excalidraw/excalidraw",
3
- "version": "0.17.0-a528769",
3
+ "version": "0.17.0-dd220bc",
4
4
  "main": "main.js",
5
5
  "types": "types/packages/excalidraw/index.d.ts",
6
6
  "files": [
@@ -28,7 +28,7 @@ export declare const actionAddToLibrary: {
28
28
  isBindingEnabled: boolean;
29
29
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
30
30
  suggestedBindings: import("../element/binding").SuggestedBinding[];
31
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
31
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
32
32
  frameRendering: {
33
33
  enabled: boolean;
34
34
  name: boolean;
@@ -79,7 +79,16 @@ export declare const actionAddToLibrary: {
79
79
  name: string;
80
80
  tab?: string | undefined;
81
81
  } | null;
82
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
82
+ openDialog: {
83
+ name: "imageExport" | "help" | "jsonExport";
84
+ } | {
85
+ name: "settings";
86
+ source: "settings" | "tool" | "generation";
87
+ tab: "text-to-diagram" | "diagram-to-code";
88
+ } | {
89
+ name: "ttd";
90
+ tab: "mermaid" | "text-to-diagram";
91
+ } | null;
83
92
  defaultSidebarDockedPreference: boolean;
84
93
  lastPointerDownWith: import("../element/types").PointerType;
85
94
  selectedElementIds: Readonly<{
@@ -145,7 +154,7 @@ export declare const actionAddToLibrary: {
145
154
  isBindingEnabled: boolean;
146
155
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
147
156
  suggestedBindings: import("../element/binding").SuggestedBinding[];
148
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
157
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
149
158
  frameRendering: {
150
159
  enabled: boolean;
151
160
  name: boolean;
@@ -196,7 +205,16 @@ export declare const actionAddToLibrary: {
196
205
  name: string;
197
206
  tab?: string | undefined;
198
207
  } | null;
199
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
208
+ openDialog: {
209
+ name: "imageExport" | "help" | "jsonExport";
210
+ } | {
211
+ name: "settings";
212
+ source: "settings" | "tool" | "generation";
213
+ tab: "text-to-diagram" | "diagram-to-code";
214
+ } | {
215
+ name: "ttd";
216
+ tab: "mermaid" | "text-to-diagram";
217
+ } | null;
200
218
  defaultSidebarDockedPreference: boolean;
201
219
  lastPointerDownWith: import("../element/types").PointerType;
202
220
  selectedElementIds: Readonly<{
@@ -267,7 +285,7 @@ export declare const actionAddToLibrary: {
267
285
  isBindingEnabled: boolean;
268
286
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
269
287
  suggestedBindings: import("../element/binding").SuggestedBinding[];
270
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
288
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
271
289
  frameRendering: {
272
290
  enabled: boolean;
273
291
  name: boolean;
@@ -318,7 +336,16 @@ export declare const actionAddToLibrary: {
318
336
  name: string;
319
337
  tab?: string | undefined;
320
338
  } | null;
321
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
339
+ openDialog: {
340
+ name: "imageExport" | "help" | "jsonExport";
341
+ } | {
342
+ name: "settings";
343
+ source: "settings" | "tool" | "generation";
344
+ tab: "text-to-diagram" | "diagram-to-code";
345
+ } | {
346
+ name: "ttd";
347
+ tab: "mermaid" | "text-to-diagram";
348
+ } | null;
322
349
  defaultSidebarDockedPreference: boolean;
323
350
  lastPointerDownWith: import("../element/types").PointerType;
324
351
  selectedElementIds: Readonly<{
@@ -48,7 +48,7 @@ export declare const actionBindText: {
48
48
  isBindingEnabled: boolean;
49
49
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
50
50
  suggestedBindings: import("../element/binding").SuggestedBinding[];
51
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
51
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
52
52
  frameRendering: {
53
53
  enabled: boolean;
54
54
  name: boolean;
@@ -99,7 +99,16 @@ export declare const actionBindText: {
99
99
  name: string;
100
100
  tab?: string | undefined;
101
101
  } | null;
102
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
102
+ openDialog: {
103
+ name: "imageExport" | "help" | "jsonExport";
104
+ } | {
105
+ name: "settings";
106
+ source: "settings" | "tool" | "generation";
107
+ tab: "text-to-diagram" | "diagram-to-code";
108
+ } | {
109
+ name: "ttd";
110
+ tab: "mermaid" | "text-to-diagram";
111
+ } | null;
103
112
  defaultSidebarDockedPreference: boolean;
104
113
  lastPointerDownWith: import("../element/types").PointerType;
105
114
  previousSelectedElementIds: {
@@ -182,7 +191,7 @@ export declare const actionWrapTextInContainer: {
182
191
  isBindingEnabled: boolean;
183
192
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
184
193
  suggestedBindings: import("../element/binding").SuggestedBinding[];
185
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
194
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
186
195
  frameRendering: {
187
196
  enabled: boolean;
188
197
  name: boolean;
@@ -233,7 +242,16 @@ export declare const actionWrapTextInContainer: {
233
242
  name: string;
234
243
  tab?: string | undefined;
235
244
  } | null;
236
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
245
+ openDialog: {
246
+ name: "imageExport" | "help" | "jsonExport";
247
+ } | {
248
+ name: "settings";
249
+ source: "settings" | "tool" | "generation";
250
+ tab: "text-to-diagram" | "diagram-to-code";
251
+ } | {
252
+ name: "ttd";
253
+ tab: "mermaid" | "text-to-diagram";
254
+ } | null;
237
255
  defaultSidebarDockedPreference: boolean;
238
256
  lastPointerDownWith: import("../element/types").PointerType;
239
257
  previousSelectedElementIds: {
@@ -59,7 +59,7 @@ export declare const actionClearCanvas: {
59
59
  isBindingEnabled: boolean;
60
60
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
61
61
  suggestedBindings: import("../element/binding").SuggestedBinding[];
62
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
62
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
63
63
  frameRendering: {
64
64
  enabled: boolean;
65
65
  name: boolean;
@@ -102,7 +102,16 @@ export declare const actionClearCanvas: {
102
102
  name: string;
103
103
  tab?: string | undefined;
104
104
  } | null;
105
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
105
+ openDialog: {
106
+ name: "imageExport" | "help" | "jsonExport";
107
+ } | {
108
+ name: "settings";
109
+ source: "settings" | "tool" | "generation";
110
+ tab: "text-to-diagram" | "diagram-to-code";
111
+ } | {
112
+ name: "ttd";
113
+ tab: "mermaid" | "text-to-diagram";
114
+ } | null;
106
115
  defaultSidebarDockedPreference: boolean;
107
116
  lastPointerDownWith: import("../element/types").PointerType;
108
117
  selectedElementIds: Readonly<{
@@ -174,7 +183,7 @@ export declare const actionZoomIn: {
174
183
  isBindingEnabled: boolean;
175
184
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
176
185
  suggestedBindings: import("../element/binding").SuggestedBinding[];
177
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
186
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
178
187
  frameRendering: {
179
188
  enabled: boolean;
180
189
  name: boolean;
@@ -220,7 +229,16 @@ export declare const actionZoomIn: {
220
229
  name: string;
221
230
  tab?: string | undefined;
222
231
  } | null;
223
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
232
+ openDialog: {
233
+ name: "imageExport" | "help" | "jsonExport";
234
+ } | {
235
+ name: "settings";
236
+ source: "settings" | "tool" | "generation";
237
+ tab: "text-to-diagram" | "diagram-to-code";
238
+ } | {
239
+ name: "ttd";
240
+ tab: "mermaid" | "text-to-diagram";
241
+ } | null;
224
242
  defaultSidebarDockedPreference: boolean;
225
243
  lastPointerDownWith: import("../element/types").PointerType;
226
244
  selectedElementIds: Readonly<{
@@ -308,7 +326,7 @@ export declare const actionZoomOut: {
308
326
  isBindingEnabled: boolean;
309
327
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
310
328
  suggestedBindings: import("../element/binding").SuggestedBinding[];
311
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
329
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
312
330
  frameRendering: {
313
331
  enabled: boolean;
314
332
  name: boolean;
@@ -354,7 +372,16 @@ export declare const actionZoomOut: {
354
372
  name: string;
355
373
  tab?: string | undefined;
356
374
  } | null;
357
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
375
+ openDialog: {
376
+ name: "imageExport" | "help" | "jsonExport";
377
+ } | {
378
+ name: "settings";
379
+ source: "settings" | "tool" | "generation";
380
+ tab: "text-to-diagram" | "diagram-to-code";
381
+ } | {
382
+ name: "ttd";
383
+ tab: "mermaid" | "text-to-diagram";
384
+ } | null;
358
385
  defaultSidebarDockedPreference: boolean;
359
386
  lastPointerDownWith: import("../element/types").PointerType;
360
387
  selectedElementIds: Readonly<{
@@ -442,7 +469,7 @@ export declare const actionResetZoom: {
442
469
  isBindingEnabled: boolean;
443
470
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
444
471
  suggestedBindings: import("../element/binding").SuggestedBinding[];
445
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
472
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
446
473
  frameRendering: {
447
474
  enabled: boolean;
448
475
  name: boolean;
@@ -488,7 +515,16 @@ export declare const actionResetZoom: {
488
515
  name: string;
489
516
  tab?: string | undefined;
490
517
  } | null;
491
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
518
+ openDialog: {
519
+ name: "imageExport" | "help" | "jsonExport";
520
+ } | {
521
+ name: "settings";
522
+ source: "settings" | "tool" | "generation";
523
+ tab: "text-to-diagram" | "diagram-to-code";
524
+ } | {
525
+ name: "ttd";
526
+ tab: "mermaid" | "text-to-diagram";
527
+ } | null;
492
528
  defaultSidebarDockedPreference: boolean;
493
529
  lastPointerDownWith: import("../element/types").PointerType;
494
530
  selectedElementIds: Readonly<{
@@ -577,7 +613,7 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
577
613
  isBindingEnabled: boolean;
578
614
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
579
615
  suggestedBindings: import("../element/binding").SuggestedBinding[];
580
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
616
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
581
617
  frameRendering: {
582
618
  enabled: boolean;
583
619
  name: boolean;
@@ -623,7 +659,16 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
623
659
  name: string;
624
660
  tab?: string | undefined;
625
661
  } | null;
626
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
662
+ openDialog: {
663
+ name: "imageExport" | "help" | "jsonExport";
664
+ } | {
665
+ name: "settings";
666
+ source: "settings" | "tool" | "generation";
667
+ tab: "text-to-diagram" | "diagram-to-code";
668
+ } | {
669
+ name: "ttd";
670
+ tab: "mermaid" | "text-to-diagram";
671
+ } | null;
627
672
  defaultSidebarDockedPreference: boolean;
628
673
  lastPointerDownWith: import("../element/types").PointerType;
629
674
  selectedElementIds: Readonly<{
@@ -705,7 +750,7 @@ export declare const actionZoomToFitSelectionInViewport: {
705
750
  isBindingEnabled: boolean;
706
751
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
707
752
  suggestedBindings: import("../element/binding").SuggestedBinding[];
708
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
753
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
709
754
  frameRendering: {
710
755
  enabled: boolean;
711
756
  name: boolean;
@@ -751,7 +796,16 @@ export declare const actionZoomToFitSelectionInViewport: {
751
796
  name: string;
752
797
  tab?: string | undefined;
753
798
  } | null;
754
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
799
+ openDialog: {
800
+ name: "imageExport" | "help" | "jsonExport";
801
+ } | {
802
+ name: "settings";
803
+ source: "settings" | "tool" | "generation";
804
+ tab: "text-to-diagram" | "diagram-to-code";
805
+ } | {
806
+ name: "ttd";
807
+ tab: "mermaid" | "text-to-diagram";
808
+ } | null;
755
809
  defaultSidebarDockedPreference: boolean;
756
810
  lastPointerDownWith: import("../element/types").PointerType;
757
811
  selectedElementIds: Readonly<{
@@ -837,7 +891,7 @@ export declare const actionZoomToFitSelection: {
837
891
  isBindingEnabled: boolean;
838
892
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
839
893
  suggestedBindings: import("../element/binding").SuggestedBinding[];
840
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
894
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
841
895
  frameRendering: {
842
896
  enabled: boolean;
843
897
  name: boolean;
@@ -883,7 +937,16 @@ export declare const actionZoomToFitSelection: {
883
937
  name: string;
884
938
  tab?: string | undefined;
885
939
  } | null;
886
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
940
+ openDialog: {
941
+ name: "imageExport" | "help" | "jsonExport";
942
+ } | {
943
+ name: "settings";
944
+ source: "settings" | "tool" | "generation";
945
+ tab: "text-to-diagram" | "diagram-to-code";
946
+ } | {
947
+ name: "ttd";
948
+ tab: "mermaid" | "text-to-diagram";
949
+ } | null;
887
950
  defaultSidebarDockedPreference: boolean;
888
951
  lastPointerDownWith: import("../element/types").PointerType;
889
952
  selectedElementIds: Readonly<{
@@ -970,7 +1033,7 @@ export declare const actionZoomToFit: {
970
1033
  isBindingEnabled: boolean;
971
1034
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
972
1035
  suggestedBindings: import("../element/binding").SuggestedBinding[];
973
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1036
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
974
1037
  frameRendering: {
975
1038
  enabled: boolean;
976
1039
  name: boolean;
@@ -1016,7 +1079,16 @@ export declare const actionZoomToFit: {
1016
1079
  name: string;
1017
1080
  tab?: string | undefined;
1018
1081
  } | null;
1019
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
1082
+ openDialog: {
1083
+ name: "imageExport" | "help" | "jsonExport";
1084
+ } | {
1085
+ name: "settings";
1086
+ source: "settings" | "tool" | "generation";
1087
+ tab: "text-to-diagram" | "diagram-to-code";
1088
+ } | {
1089
+ name: "ttd";
1090
+ tab: "mermaid" | "text-to-diagram";
1091
+ } | null;
1020
1092
  defaultSidebarDockedPreference: boolean;
1021
1093
  lastPointerDownWith: import("../element/types").PointerType;
1022
1094
  selectedElementIds: Readonly<{
@@ -1099,7 +1171,7 @@ export declare const actionToggleTheme: {
1099
1171
  isBindingEnabled: boolean;
1100
1172
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1101
1173
  suggestedBindings: import("../element/binding").SuggestedBinding[];
1102
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1174
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1103
1175
  frameRendering: {
1104
1176
  enabled: boolean;
1105
1177
  name: boolean;
@@ -1150,7 +1222,16 @@ export declare const actionToggleTheme: {
1150
1222
  name: string;
1151
1223
  tab?: string | undefined;
1152
1224
  } | null;
1153
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
1225
+ openDialog: {
1226
+ name: "imageExport" | "help" | "jsonExport";
1227
+ } | {
1228
+ name: "settings";
1229
+ source: "settings" | "tool" | "generation";
1230
+ tab: "text-to-diagram" | "diagram-to-code";
1231
+ } | {
1232
+ name: "ttd";
1233
+ tab: "mermaid" | "text-to-diagram";
1234
+ } | null;
1154
1235
  defaultSidebarDockedPreference: boolean;
1155
1236
  lastPointerDownWith: import("../element/types").PointerType;
1156
1237
  selectedElementIds: Readonly<{
@@ -1234,7 +1315,7 @@ export declare const actionToggleEraserTool: {
1234
1315
  isBindingEnabled: boolean;
1235
1316
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1236
1317
  suggestedBindings: import("../element/binding").SuggestedBinding[];
1237
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1318
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1238
1319
  frameRendering: {
1239
1320
  enabled: boolean;
1240
1321
  name: boolean;
@@ -1281,7 +1362,16 @@ export declare const actionToggleEraserTool: {
1281
1362
  name: string;
1282
1363
  tab?: string | undefined;
1283
1364
  } | null;
1284
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
1365
+ openDialog: {
1366
+ name: "imageExport" | "help" | "jsonExport";
1367
+ } | {
1368
+ name: "settings";
1369
+ source: "settings" | "tool" | "generation";
1370
+ tab: "text-to-diagram" | "diagram-to-code";
1371
+ } | {
1372
+ name: "ttd";
1373
+ tab: "mermaid" | "text-to-diagram";
1374
+ } | null;
1285
1375
  defaultSidebarDockedPreference: boolean;
1286
1376
  lastPointerDownWith: import("../element/types").PointerType;
1287
1377
  previousSelectedElementIds: {
@@ -1359,7 +1449,7 @@ export declare const actionToggleHandTool: {
1359
1449
  isBindingEnabled: boolean;
1360
1450
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1361
1451
  suggestedBindings: import("../element/binding").SuggestedBinding[];
1362
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1452
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1363
1453
  frameRendering: {
1364
1454
  enabled: boolean;
1365
1455
  name: boolean;
@@ -1406,7 +1496,16 @@ export declare const actionToggleHandTool: {
1406
1496
  name: string;
1407
1497
  tab?: string | undefined;
1408
1498
  } | null;
1409
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
1499
+ openDialog: {
1500
+ name: "imageExport" | "help" | "jsonExport";
1501
+ } | {
1502
+ name: "settings";
1503
+ source: "settings" | "tool" | "generation";
1504
+ tab: "text-to-diagram" | "diagram-to-code";
1505
+ } | {
1506
+ name: "ttd";
1507
+ tab: "mermaid" | "text-to-diagram";
1508
+ } | null;
1410
1509
  defaultSidebarDockedPreference: boolean;
1411
1510
  lastPointerDownWith: import("../element/types").PointerType;
1412
1511
  previousSelectedElementIds: {
@@ -25,7 +25,7 @@ export declare const actionCopy: {
25
25
  isBindingEnabled: boolean;
26
26
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
27
27
  suggestedBindings: import("../element/binding").SuggestedBinding[];
28
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
28
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
29
29
  frameRendering: {
30
30
  enabled: boolean;
31
31
  name: boolean;
@@ -76,7 +76,16 @@ export declare const actionCopy: {
76
76
  name: string;
77
77
  tab?: string | undefined;
78
78
  } | null;
79
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
79
+ openDialog: {
80
+ name: "imageExport" | "help" | "jsonExport";
81
+ } | {
82
+ name: "settings";
83
+ source: "settings" | "tool" | "generation";
84
+ tab: "text-to-diagram" | "diagram-to-code";
85
+ } | {
86
+ name: "ttd";
87
+ tab: "mermaid" | "text-to-diagram";
88
+ } | null;
80
89
  defaultSidebarDockedPreference: boolean;
81
90
  lastPointerDownWith: import("../element/types").PointerType;
82
91
  selectedElementIds: Readonly<{
@@ -161,7 +170,7 @@ export declare const actionPaste: {
161
170
  isBindingEnabled: boolean;
162
171
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
163
172
  suggestedBindings: import("../element/binding").SuggestedBinding[];
164
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
173
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
165
174
  frameRendering: {
166
175
  enabled: boolean;
167
176
  name: boolean;
@@ -212,7 +221,16 @@ export declare const actionPaste: {
212
221
  name: string;
213
222
  tab?: string | undefined;
214
223
  } | null;
215
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
224
+ openDialog: {
225
+ name: "imageExport" | "help" | "jsonExport";
226
+ } | {
227
+ name: "settings";
228
+ source: "settings" | "tool" | "generation";
229
+ tab: "text-to-diagram" | "diagram-to-code";
230
+ } | {
231
+ name: "ttd";
232
+ tab: "mermaid" | "text-to-diagram";
233
+ } | null;
216
234
  defaultSidebarDockedPreference: boolean;
217
235
  lastPointerDownWith: import("../element/types").PointerType;
218
236
  selectedElementIds: Readonly<{
@@ -298,7 +316,7 @@ export declare const actionCut: {
298
316
  isBindingEnabled: boolean;
299
317
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
300
318
  suggestedBindings: import("../element/binding").SuggestedBinding[];
301
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
319
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
302
320
  frameRendering: {
303
321
  enabled: boolean;
304
322
  name: boolean;
@@ -348,7 +366,16 @@ export declare const actionCut: {
348
366
  name: string;
349
367
  tab?: string | undefined;
350
368
  } | null;
351
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
369
+ openDialog: {
370
+ name: "imageExport" | "help" | "jsonExport";
371
+ } | {
372
+ name: "settings";
373
+ source: "settings" | "tool" | "generation";
374
+ tab: "text-to-diagram" | "diagram-to-code";
375
+ } | {
376
+ name: "ttd";
377
+ tab: "mermaid" | "text-to-diagram";
378
+ } | null;
352
379
  defaultSidebarDockedPreference: boolean;
353
380
  lastPointerDownWith: import("../element/types").PointerType;
354
381
  selectedElementIds: Readonly<{
@@ -449,7 +476,7 @@ export declare const actionCut: {
449
476
  isBindingEnabled: boolean;
450
477
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
451
478
  suggestedBindings: import("../element/binding").SuggestedBinding[];
452
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
479
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
453
480
  frameRendering: {
454
481
  enabled: boolean;
455
482
  name: boolean;
@@ -499,7 +526,16 @@ export declare const actionCut: {
499
526
  name: string;
500
527
  tab?: string | undefined;
501
528
  } | null;
502
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
529
+ openDialog: {
530
+ name: "imageExport" | "help" | "jsonExport";
531
+ } | {
532
+ name: "settings";
533
+ source: "settings" | "tool" | "generation";
534
+ tab: "text-to-diagram" | "diagram-to-code";
535
+ } | {
536
+ name: "ttd";
537
+ tab: "mermaid" | "text-to-diagram";
538
+ } | null;
503
539
  defaultSidebarDockedPreference: boolean;
504
540
  lastPointerDownWith: import("../element/types").PointerType;
505
541
  selectedElementIds: Readonly<{
@@ -574,7 +610,7 @@ export declare const actionCut: {
574
610
  isBindingEnabled: boolean;
575
611
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
576
612
  suggestedBindings: import("../element/binding").SuggestedBinding[];
577
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
613
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
578
614
  frameRendering: {
579
615
  enabled: boolean;
580
616
  name: boolean;
@@ -621,7 +657,16 @@ export declare const actionCut: {
621
657
  name: string;
622
658
  tab?: string | undefined;
623
659
  } | null;
624
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
660
+ openDialog: {
661
+ name: "imageExport" | "help" | "jsonExport";
662
+ } | {
663
+ name: "settings";
664
+ source: "settings" | "tool" | "generation";
665
+ tab: "text-to-diagram" | "diagram-to-code";
666
+ } | {
667
+ name: "ttd";
668
+ tab: "mermaid" | "text-to-diagram";
669
+ } | null;
625
670
  defaultSidebarDockedPreference: boolean;
626
671
  lastPointerDownWith: import("../element/types").PointerType;
627
672
  previousSelectedElementIds: {
@@ -700,7 +745,7 @@ export declare const actionCopyAsSvg: {
700
745
  isBindingEnabled: boolean;
701
746
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
702
747
  suggestedBindings: import("../element/binding").SuggestedBinding[];
703
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
748
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
704
749
  frameRendering: {
705
750
  enabled: boolean;
706
751
  name: boolean;
@@ -751,7 +796,16 @@ export declare const actionCopyAsSvg: {
751
796
  name: string;
752
797
  tab?: string | undefined;
753
798
  } | null;
754
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
799
+ openDialog: {
800
+ name: "imageExport" | "help" | "jsonExport";
801
+ } | {
802
+ name: "settings";
803
+ source: "settings" | "tool" | "generation";
804
+ tab: "text-to-diagram" | "diagram-to-code";
805
+ } | {
806
+ name: "ttd";
807
+ tab: "mermaid" | "text-to-diagram";
808
+ } | null;
755
809
  defaultSidebarDockedPreference: boolean;
756
810
  lastPointerDownWith: import("../element/types").PointerType;
757
811
  selectedElementIds: Readonly<{
@@ -836,7 +890,7 @@ export declare const actionCopyAsPng: {
836
890
  isBindingEnabled: boolean;
837
891
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
838
892
  suggestedBindings: import("../element/binding").SuggestedBinding[];
839
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
893
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
840
894
  frameRendering: {
841
895
  enabled: boolean;
842
896
  name: boolean;
@@ -887,7 +941,16 @@ export declare const actionCopyAsPng: {
887
941
  name: string;
888
942
  tab?: string | undefined;
889
943
  } | null;
890
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
944
+ openDialog: {
945
+ name: "imageExport" | "help" | "jsonExport";
946
+ } | {
947
+ name: "settings";
948
+ source: "settings" | "tool" | "generation";
949
+ tab: "text-to-diagram" | "diagram-to-code";
950
+ } | {
951
+ name: "ttd";
952
+ tab: "mermaid" | "text-to-diagram";
953
+ } | null;
891
954
  defaultSidebarDockedPreference: boolean;
892
955
  lastPointerDownWith: import("../element/types").PointerType;
893
956
  selectedElementIds: Readonly<{