@zsviczian/excalidraw 0.17.0-obsidian-1 → 0.17.0-obsidian-3

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 (76) hide show
  1. package/dist/excalidraw.development.js +372 -75
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/package.json +1 -1
  4. package/types/actions/actionAddToLibrary.d.ts +30 -6
  5. package/types/actions/actionBoundText.d.ts +20 -4
  6. package/types/actions/actionCanvas.d.ts +130 -26
  7. package/types/actions/actionClipboard.d.ts +70 -14
  8. package/types/actions/actionDeleteSelected.d.ts +30 -6
  9. package/types/actions/actionElementLock.d.ts +20 -4
  10. package/types/actions/actionExport.d.ts +86 -22
  11. package/types/actions/actionFinalize.d.ts +20 -4
  12. package/types/actions/actionFrame.d.ts +30 -6
  13. package/types/actions/actionGroup.d.ts +20 -4
  14. package/types/actions/actionLinearEditor.d.ts +10 -2
  15. package/types/actions/actionMenu.d.ts +24 -6
  16. package/types/actions/actionProperties.d.ts +130 -26
  17. package/types/actions/actionSelectAll.d.ts +10 -2
  18. package/types/actions/actionStyles.d.ts +10 -2
  19. package/types/actions/actionToggleGridMode.d.ts +10 -2
  20. package/types/actions/actionToggleObjectsSnapMode.d.ts +10 -2
  21. package/types/actions/actionToggleStats.d.ts +10 -2
  22. package/types/actions/actionToggleViewMode.d.ts +10 -2
  23. package/types/actions/actionToggleZenMode.d.ts +10 -2
  24. package/types/appState.d.ts +2 -2
  25. package/types/components/App.d.ts +28 -6
  26. package/types/components/Button.d.ts +1 -1
  27. package/types/components/InlineIcon.d.ts +3 -0
  28. package/types/components/LayerUI.d.ts +5 -1
  29. package/types/components/MagicButton.d.ts +9 -0
  30. package/types/components/MagicSettings.d.ts +8 -0
  31. package/types/components/Paragraph.d.ts +4 -0
  32. package/types/components/TTDDialog/MermaidToExcalidraw.d.ts +13 -0
  33. package/types/components/TTDDialog/TTDDialog.d.ts +29 -0
  34. package/types/components/TTDDialog/TTDDialogInput.d.ts +9 -0
  35. package/types/components/TTDDialog/TTDDialogOutput.d.ts +7 -0
  36. package/types/components/TTDDialog/TTDDialogPanel.d.ts +16 -0
  37. package/types/components/TTDDialog/TTDDialogPanels.d.ts +4 -0
  38. package/types/components/TTDDialog/TTDDialogTab.d.ts +7 -0
  39. package/types/components/TTDDialog/TTDDialogTabTrigger.d.ts +8 -0
  40. package/types/components/TTDDialog/TTDDialogTabTriggers.d.ts +6 -0
  41. package/types/components/TTDDialog/TTDDialogTabs.d.ts +9 -0
  42. package/types/components/TTDDialog/TTDDialogTrigger.d.ts +8 -0
  43. package/types/components/TTDDialog/common.d.ts +33 -0
  44. package/types/components/TextField.d.ts +16 -0
  45. package/types/components/dropdownMenu/DropdownMenu.d.ts +6 -0
  46. package/types/components/dropdownMenu/DropdownMenuItem.d.ts +12 -0
  47. package/types/components/icons.d.ts +6 -0
  48. package/types/components/main-menu/MainMenu.d.ts +6 -0
  49. package/types/constants.d.ts +24 -2
  50. package/types/context/tunnels.d.ts +1 -0
  51. package/types/data/EditorLocalStorage.d.ts +8 -0
  52. package/types/data/ai/types.d.ts +242 -0
  53. package/types/data/index.d.ts +3 -3
  54. package/types/data/magic.d.ts +23 -0
  55. package/types/data/transform.d.ts +11 -7
  56. package/types/element/ElementCanvasButtons.d.ts +6 -0
  57. package/types/element/Hyperlink.d.ts +10 -2
  58. package/types/element/collision.d.ts +2 -2
  59. package/types/element/embeddable.d.ts +16 -21
  60. package/types/element/index.d.ts +3 -4
  61. package/types/element/linearElementEditor.d.ts +10 -2
  62. package/types/element/newElement.d.ts +7 -1
  63. package/types/element/textElement.d.ts +4 -4
  64. package/types/element/typeChecks.d.ts +9 -6
  65. package/types/element/types.d.ts +30 -2
  66. package/types/frame.d.ts +21 -20
  67. package/types/packages/excalidraw/index.d.ts +2 -0
  68. package/types/packages/utils.d.ts +3 -3
  69. package/types/scene/Scene.d.ts +4 -4
  70. package/types/scene/ShapeCache.d.ts +1 -1
  71. package/types/scene/comparisons.d.ts +7 -6
  72. package/types/scene/export.d.ts +3 -3
  73. package/types/scene/types.d.ts +2 -0
  74. package/types/shapes.d.ts +1 -1
  75. package/types/types.d.ts +25 -10
  76. package/types/utils.d.ts +2 -2
@@ -25,7 +25,7 @@ export declare const actionToggleCanvasMenu: {
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;
@@ -75,7 +75,15 @@ export declare const actionToggleCanvasMenu: {
75
75
  name: string;
76
76
  tab?: string | undefined;
77
77
  } | null;
78
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
78
+ openDialog: {
79
+ name: "imageExport" | "help" | "jsonExport";
80
+ } | {
81
+ name: "magicSettings";
82
+ source: "tool" | "generation" | "settings";
83
+ } | {
84
+ name: "ttd";
85
+ tab: string;
86
+ } | null;
79
87
  defaultSidebarDockedPreference: boolean;
80
88
  lastPointerDownWith: import("../element/types").PointerType;
81
89
  selectedElementIds: Readonly<{
@@ -190,7 +198,7 @@ export declare const actionToggleEditMenu: {
190
198
  isBindingEnabled: boolean;
191
199
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
192
200
  suggestedBindings: import("../element/binding").SuggestedBinding[];
193
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
201
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
194
202
  frameRendering: {
195
203
  enabled: boolean;
196
204
  name: boolean;
@@ -240,7 +248,15 @@ export declare const actionToggleEditMenu: {
240
248
  name: string;
241
249
  tab?: string | undefined;
242
250
  } | null;
243
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
251
+ openDialog: {
252
+ name: "imageExport" | "help" | "jsonExport";
253
+ } | {
254
+ name: "magicSettings";
255
+ source: "tool" | "generation" | "settings";
256
+ } | {
257
+ name: "ttd";
258
+ tab: string;
259
+ } | null;
244
260
  defaultSidebarDockedPreference: boolean;
245
261
  lastPointerDownWith: import("../element/types").PointerType;
246
262
  selectedElementIds: Readonly<{
@@ -337,7 +353,9 @@ export declare const actionShortcuts: {
337
353
  };
338
354
  perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, { focusContainer }: import("../types").AppClassProperties) => {
339
355
  appState: {
340
- openDialog: "help" | null;
356
+ openDialog: {
357
+ name: "help";
358
+ } | null;
341
359
  contextMenu: {
342
360
  items: import("../components/ContextMenu").ContextMenuItems;
343
361
  top: number;
@@ -357,7 +375,7 @@ export declare const actionShortcuts: {
357
375
  isBindingEnabled: boolean;
358
376
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
359
377
  suggestedBindings: import("../element/binding").SuggestedBinding[];
360
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
378
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
361
379
  frameRendering: {
362
380
  enabled: boolean;
363
381
  name: boolean;
@@ -44,7 +44,7 @@ export declare const actionChangeFillStyle: {
44
44
  isBindingEnabled: boolean;
45
45
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
46
46
  suggestedBindings: import("../element/binding").SuggestedBinding[];
47
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
47
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
48
48
  frameRendering: {
49
49
  enabled: boolean;
50
50
  name: boolean;
@@ -94,7 +94,15 @@ export declare const actionChangeFillStyle: {
94
94
  name: string;
95
95
  tab?: string | undefined;
96
96
  } | null;
97
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
97
+ openDialog: {
98
+ name: "imageExport" | "help" | "jsonExport";
99
+ } | {
100
+ name: "magicSettings";
101
+ source: "tool" | "generation" | "settings";
102
+ } | {
103
+ name: "ttd";
104
+ tab: string;
105
+ } | null;
98
106
  defaultSidebarDockedPreference: boolean;
99
107
  lastPointerDownWith: import("../element/types").PointerType;
100
108
  selectedElementIds: Readonly<{
@@ -208,7 +216,7 @@ export declare const actionChangeStrokeWidth: {
208
216
  isBindingEnabled: boolean;
209
217
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
210
218
  suggestedBindings: import("../element/binding").SuggestedBinding[];
211
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
219
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
212
220
  frameRendering: {
213
221
  enabled: boolean;
214
222
  name: boolean;
@@ -258,7 +266,15 @@ export declare const actionChangeStrokeWidth: {
258
266
  name: string;
259
267
  tab?: string | undefined;
260
268
  } | null;
261
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
269
+ openDialog: {
270
+ name: "imageExport" | "help" | "jsonExport";
271
+ } | {
272
+ name: "magicSettings";
273
+ source: "tool" | "generation" | "settings";
274
+ } | {
275
+ name: "ttd";
276
+ tab: string;
277
+ } | null;
262
278
  defaultSidebarDockedPreference: boolean;
263
279
  lastPointerDownWith: import("../element/types").PointerType;
264
280
  selectedElementIds: Readonly<{
@@ -372,7 +388,7 @@ export declare const actionChangeSloppiness: {
372
388
  isBindingEnabled: boolean;
373
389
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
374
390
  suggestedBindings: import("../element/binding").SuggestedBinding[];
375
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
391
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
376
392
  frameRendering: {
377
393
  enabled: boolean;
378
394
  name: boolean;
@@ -422,7 +438,15 @@ export declare const actionChangeSloppiness: {
422
438
  name: string;
423
439
  tab?: string | undefined;
424
440
  } | null;
425
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
441
+ openDialog: {
442
+ name: "imageExport" | "help" | "jsonExport";
443
+ } | {
444
+ name: "magicSettings";
445
+ source: "tool" | "generation" | "settings";
446
+ } | {
447
+ name: "ttd";
448
+ tab: string;
449
+ } | null;
426
450
  defaultSidebarDockedPreference: boolean;
427
451
  lastPointerDownWith: import("../element/types").PointerType;
428
452
  selectedElementIds: Readonly<{
@@ -536,7 +560,7 @@ export declare const actionChangeStrokeStyle: {
536
560
  isBindingEnabled: boolean;
537
561
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
538
562
  suggestedBindings: import("../element/binding").SuggestedBinding[];
539
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
563
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
540
564
  frameRendering: {
541
565
  enabled: boolean;
542
566
  name: boolean;
@@ -586,7 +610,15 @@ export declare const actionChangeStrokeStyle: {
586
610
  name: string;
587
611
  tab?: string | undefined;
588
612
  } | null;
589
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
613
+ openDialog: {
614
+ name: "imageExport" | "help" | "jsonExport";
615
+ } | {
616
+ name: "magicSettings";
617
+ source: "tool" | "generation" | "settings";
618
+ } | {
619
+ name: "ttd";
620
+ tab: string;
621
+ } | null;
590
622
  defaultSidebarDockedPreference: boolean;
591
623
  lastPointerDownWith: import("../element/types").PointerType;
592
624
  selectedElementIds: Readonly<{
@@ -700,7 +732,7 @@ export declare const actionChangeOpacity: {
700
732
  isBindingEnabled: boolean;
701
733
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
702
734
  suggestedBindings: import("../element/binding").SuggestedBinding[];
703
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
735
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
704
736
  frameRendering: {
705
737
  enabled: boolean;
706
738
  name: boolean;
@@ -750,7 +782,15 @@ export declare const actionChangeOpacity: {
750
782
  name: string;
751
783
  tab?: string | undefined;
752
784
  } | null;
753
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
785
+ openDialog: {
786
+ name: "imageExport" | "help" | "jsonExport";
787
+ } | {
788
+ name: "magicSettings";
789
+ source: "tool" | "generation" | "settings";
790
+ } | {
791
+ name: "ttd";
792
+ tab: string;
793
+ } | null;
754
794
  defaultSidebarDockedPreference: boolean;
755
795
  lastPointerDownWith: import("../element/types").PointerType;
756
796
  selectedElementIds: Readonly<{
@@ -864,7 +904,7 @@ export declare const actionChangeFontSize: {
864
904
  isBindingEnabled: boolean;
865
905
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
866
906
  suggestedBindings: import("../element/binding").SuggestedBinding[];
867
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
907
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
868
908
  frameRendering: {
869
909
  enabled: boolean;
870
910
  name: boolean;
@@ -914,7 +954,15 @@ export declare const actionChangeFontSize: {
914
954
  name: string;
915
955
  tab?: string | undefined;
916
956
  } | null;
917
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
957
+ openDialog: {
958
+ name: "imageExport" | "help" | "jsonExport";
959
+ } | {
960
+ name: "magicSettings";
961
+ source: "tool" | "generation" | "settings";
962
+ } | {
963
+ name: "ttd";
964
+ tab: string;
965
+ } | null;
918
966
  defaultSidebarDockedPreference: boolean;
919
967
  lastPointerDownWith: import("../element/types").PointerType;
920
968
  selectedElementIds: Readonly<{
@@ -1028,7 +1076,7 @@ export declare const actionDecreaseFontSize: {
1028
1076
  isBindingEnabled: boolean;
1029
1077
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1030
1078
  suggestedBindings: import("../element/binding").SuggestedBinding[];
1031
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1079
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1032
1080
  frameRendering: {
1033
1081
  enabled: boolean;
1034
1082
  name: boolean;
@@ -1078,7 +1126,15 @@ export declare const actionDecreaseFontSize: {
1078
1126
  name: string;
1079
1127
  tab?: string | undefined;
1080
1128
  } | null;
1081
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
1129
+ openDialog: {
1130
+ name: "imageExport" | "help" | "jsonExport";
1131
+ } | {
1132
+ name: "magicSettings";
1133
+ source: "tool" | "generation" | "settings";
1134
+ } | {
1135
+ name: "ttd";
1136
+ tab: string;
1137
+ } | null;
1082
1138
  defaultSidebarDockedPreference: boolean;
1083
1139
  lastPointerDownWith: import("../element/types").PointerType;
1084
1140
  selectedElementIds: Readonly<{
@@ -1192,7 +1248,7 @@ export declare const actionIncreaseFontSize: {
1192
1248
  isBindingEnabled: boolean;
1193
1249
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1194
1250
  suggestedBindings: import("../element/binding").SuggestedBinding[];
1195
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1251
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1196
1252
  frameRendering: {
1197
1253
  enabled: boolean;
1198
1254
  name: boolean;
@@ -1242,7 +1298,15 @@ export declare const actionIncreaseFontSize: {
1242
1298
  name: string;
1243
1299
  tab?: string | undefined;
1244
1300
  } | null;
1245
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
1301
+ openDialog: {
1302
+ name: "imageExport" | "help" | "jsonExport";
1303
+ } | {
1304
+ name: "magicSettings";
1305
+ source: "tool" | "generation" | "settings";
1306
+ } | {
1307
+ name: "ttd";
1308
+ tab: string;
1309
+ } | null;
1246
1310
  defaultSidebarDockedPreference: boolean;
1247
1311
  lastPointerDownWith: import("../element/types").PointerType;
1248
1312
  selectedElementIds: Readonly<{
@@ -1356,7 +1420,7 @@ export declare const actionChangeFontFamily: {
1356
1420
  isBindingEnabled: boolean;
1357
1421
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1358
1422
  suggestedBindings: import("../element/binding").SuggestedBinding[];
1359
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1423
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1360
1424
  frameRendering: {
1361
1425
  enabled: boolean;
1362
1426
  name: boolean;
@@ -1406,7 +1470,15 @@ export declare const actionChangeFontFamily: {
1406
1470
  name: string;
1407
1471
  tab?: string | undefined;
1408
1472
  } | null;
1409
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
1473
+ openDialog: {
1474
+ name: "imageExport" | "help" | "jsonExport";
1475
+ } | {
1476
+ name: "magicSettings";
1477
+ source: "tool" | "generation" | "settings";
1478
+ } | {
1479
+ name: "ttd";
1480
+ tab: string;
1481
+ } | null;
1410
1482
  defaultSidebarDockedPreference: boolean;
1411
1483
  lastPointerDownWith: import("../element/types").PointerType;
1412
1484
  selectedElementIds: Readonly<{
@@ -1520,7 +1592,7 @@ export declare const actionChangeTextAlign: {
1520
1592
  isBindingEnabled: boolean;
1521
1593
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1522
1594
  suggestedBindings: import("../element/binding").SuggestedBinding[];
1523
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1595
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1524
1596
  frameRendering: {
1525
1597
  enabled: boolean;
1526
1598
  name: boolean;
@@ -1570,7 +1642,15 @@ export declare const actionChangeTextAlign: {
1570
1642
  name: string;
1571
1643
  tab?: string | undefined;
1572
1644
  } | null;
1573
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
1645
+ openDialog: {
1646
+ name: "imageExport" | "help" | "jsonExport";
1647
+ } | {
1648
+ name: "magicSettings";
1649
+ source: "tool" | "generation" | "settings";
1650
+ } | {
1651
+ name: "ttd";
1652
+ tab: string;
1653
+ } | null;
1574
1654
  defaultSidebarDockedPreference: boolean;
1575
1655
  lastPointerDownWith: import("../element/types").PointerType;
1576
1656
  selectedElementIds: Readonly<{
@@ -1685,7 +1765,7 @@ export declare const actionChangeVerticalAlign: {
1685
1765
  isBindingEnabled: boolean;
1686
1766
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1687
1767
  suggestedBindings: import("../element/binding").SuggestedBinding[];
1688
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1768
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1689
1769
  frameRendering: {
1690
1770
  enabled: boolean;
1691
1771
  name: boolean;
@@ -1736,7 +1816,15 @@ export declare const actionChangeVerticalAlign: {
1736
1816
  name: string;
1737
1817
  tab?: string | undefined;
1738
1818
  } | null;
1739
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
1819
+ openDialog: {
1820
+ name: "imageExport" | "help" | "jsonExport";
1821
+ } | {
1822
+ name: "magicSettings";
1823
+ source: "tool" | "generation" | "settings";
1824
+ } | {
1825
+ name: "ttd";
1826
+ tab: string;
1827
+ } | null;
1740
1828
  defaultSidebarDockedPreference: boolean;
1741
1829
  lastPointerDownWith: import("../element/types").PointerType;
1742
1830
  selectedElementIds: Readonly<{
@@ -1850,7 +1938,7 @@ export declare const actionChangeRoundness: {
1850
1938
  isBindingEnabled: boolean;
1851
1939
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1852
1940
  suggestedBindings: import("../element/binding").SuggestedBinding[];
1853
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1941
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1854
1942
  frameRendering: {
1855
1943
  enabled: boolean;
1856
1944
  name: boolean;
@@ -1900,7 +1988,15 @@ export declare const actionChangeRoundness: {
1900
1988
  name: string;
1901
1989
  tab?: string | undefined;
1902
1990
  } | null;
1903
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
1991
+ openDialog: {
1992
+ name: "imageExport" | "help" | "jsonExport";
1993
+ } | {
1994
+ name: "magicSettings";
1995
+ source: "tool" | "generation" | "settings";
1996
+ } | {
1997
+ name: "ttd";
1998
+ tab: string;
1999
+ } | null;
1904
2000
  defaultSidebarDockedPreference: boolean;
1905
2001
  lastPointerDownWith: import("../element/types").PointerType;
1906
2002
  selectedElementIds: Readonly<{
@@ -2016,7 +2112,7 @@ export declare const actionChangeArrowhead: {
2016
2112
  isBindingEnabled: boolean;
2017
2113
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
2018
2114
  suggestedBindings: import("../element/binding").SuggestedBinding[];
2019
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
2115
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
2020
2116
  frameRendering: {
2021
2117
  enabled: boolean;
2022
2118
  name: boolean;
@@ -2067,7 +2163,15 @@ export declare const actionChangeArrowhead: {
2067
2163
  name: string;
2068
2164
  tab?: string | undefined;
2069
2165
  } | null;
2070
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
2166
+ openDialog: {
2167
+ name: "imageExport" | "help" | "jsonExport";
2168
+ } | {
2169
+ name: "magicSettings";
2170
+ source: "tool" | "generation" | "settings";
2171
+ } | {
2172
+ name: "ttd";
2173
+ tab: string;
2174
+ } | null;
2071
2175
  defaultSidebarDockedPreference: boolean;
2072
2176
  lastPointerDownWith: import("../element/types").PointerType;
2073
2177
  selectedElementIds: Readonly<{
@@ -34,7 +34,7 @@ export declare const actionSelectAll: {
34
34
  isBindingEnabled: boolean;
35
35
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
36
36
  suggestedBindings: import("../element/binding").SuggestedBinding[];
37
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
37
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
38
38
  frameRendering: {
39
39
  enabled: boolean;
40
40
  name: boolean;
@@ -85,7 +85,15 @@ export declare const actionSelectAll: {
85
85
  name: string;
86
86
  tab?: string | undefined;
87
87
  } | null;
88
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
88
+ openDialog: {
89
+ name: "imageExport" | "help" | "jsonExport";
90
+ } | {
91
+ name: "magicSettings";
92
+ source: "tool" | "generation" | "settings";
93
+ } | {
94
+ name: "ttd";
95
+ tab: string;
96
+ } | null;
89
97
  defaultSidebarDockedPreference: boolean;
90
98
  lastPointerDownWith: import("../element/types").PointerType;
91
99
  previousSelectedElementIds: {
@@ -28,7 +28,7 @@ export declare const actionCopyStyles: {
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,15 @@ export declare const actionCopyStyles: {
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: "magicSettings";
86
+ source: "tool" | "generation" | "settings";
87
+ } | {
88
+ name: "ttd";
89
+ tab: string;
90
+ } | null;
83
91
  defaultSidebarDockedPreference: boolean;
84
92
  lastPointerDownWith: import("../element/types").PointerType;
85
93
  selectedElementIds: Readonly<{
@@ -29,7 +29,7 @@ export declare const actionToggleGridMode: {
29
29
  isBindingEnabled: boolean;
30
30
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
31
31
  suggestedBindings: import("../element/binding").SuggestedBinding[];
32
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
32
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
33
33
  frameRendering: {
34
34
  enabled: boolean;
35
35
  name: boolean;
@@ -80,7 +80,15 @@ export declare const actionToggleGridMode: {
80
80
  name: string;
81
81
  tab?: string | undefined;
82
82
  } | null;
83
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
83
+ openDialog: {
84
+ name: "imageExport" | "help" | "jsonExport";
85
+ } | {
86
+ name: "magicSettings";
87
+ source: "tool" | "generation" | "settings";
88
+ } | {
89
+ name: "ttd";
90
+ tab: string;
91
+ } | null;
84
92
  defaultSidebarDockedPreference: boolean;
85
93
  lastPointerDownWith: import("../element/types").PointerType;
86
94
  selectedElementIds: Readonly<{
@@ -28,7 +28,7 @@ export declare const actionToggleObjectsSnapMode: {
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,15 @@ export declare const actionToggleObjectsSnapMode: {
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: "magicSettings";
86
+ source: "tool" | "generation" | "settings";
87
+ } | {
88
+ name: "ttd";
89
+ tab: string;
90
+ } | null;
83
91
  defaultSidebarDockedPreference: boolean;
84
92
  lastPointerDownWith: import("../element/types").PointerType;
85
93
  selectedElementIds: Readonly<{
@@ -26,7 +26,7 @@ export declare const actionToggleStats: {
26
26
  isBindingEnabled: boolean;
27
27
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
28
28
  suggestedBindings: import("../element/binding").SuggestedBinding[];
29
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
29
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
30
30
  frameRendering: {
31
31
  enabled: boolean;
32
32
  name: boolean;
@@ -77,7 +77,15 @@ export declare const actionToggleStats: {
77
77
  name: string;
78
78
  tab?: string | undefined;
79
79
  } | null;
80
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
80
+ openDialog: {
81
+ name: "imageExport" | "help" | "jsonExport";
82
+ } | {
83
+ name: "magicSettings";
84
+ source: "tool" | "generation" | "settings";
85
+ } | {
86
+ name: "ttd";
87
+ tab: string;
88
+ } | null;
81
89
  defaultSidebarDockedPreference: boolean;
82
90
  lastPointerDownWith: import("../element/types").PointerType;
83
91
  selectedElementIds: Readonly<{
@@ -27,7 +27,7 @@ export declare const actionToggleViewMode: {
27
27
  isBindingEnabled: boolean;
28
28
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
29
29
  suggestedBindings: import("../element/binding").SuggestedBinding[];
30
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
30
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
31
31
  frameRendering: {
32
32
  enabled: boolean;
33
33
  name: boolean;
@@ -78,7 +78,15 @@ export declare const actionToggleViewMode: {
78
78
  name: string;
79
79
  tab?: string | undefined;
80
80
  } | null;
81
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
81
+ openDialog: {
82
+ name: "imageExport" | "help" | "jsonExport";
83
+ } | {
84
+ name: "magicSettings";
85
+ source: "tool" | "generation" | "settings";
86
+ } | {
87
+ name: "ttd";
88
+ tab: string;
89
+ } | null;
82
90
  defaultSidebarDockedPreference: boolean;
83
91
  lastPointerDownWith: import("../element/types").PointerType;
84
92
  selectedElementIds: Readonly<{
@@ -27,7 +27,7 @@ export declare const actionToggleZenMode: {
27
27
  isBindingEnabled: boolean;
28
28
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
29
29
  suggestedBindings: import("../element/binding").SuggestedBinding[];
30
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
30
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
31
31
  frameRendering: {
32
32
  enabled: boolean;
33
33
  name: boolean;
@@ -78,7 +78,15 @@ export declare const actionToggleZenMode: {
78
78
  name: string;
79
79
  tab?: string | undefined;
80
80
  } | null;
81
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
81
+ openDialog: {
82
+ name: "imageExport" | "help" | "jsonExport";
83
+ } | {
84
+ name: "magicSettings";
85
+ source: "tool" | "generation" | "settings";
86
+ } | {
87
+ name: "ttd";
88
+ tab: string;
89
+ } | null;
82
90
  defaultSidebarDockedPreference: boolean;
83
91
  lastPointerDownWith: import("../element/types").PointerType;
84
92
  selectedElementIds: Readonly<{
@@ -1,11 +1,12 @@
1
1
  import { AppState, NormalizedZoomValue } from "./types";
2
2
  export declare const getDefaultAppState: () => Omit<AppState, "offsetTop" | "offsetLeft" | "width" | "height">;
3
3
  export declare const clearAppStateForLocalStorage: (appState: Partial<AppState>) => {
4
+ theme?: import("./element/types").Theme | undefined;
5
+ showWelcomeScreen?: boolean | undefined;
4
6
  activeTool?: ({
5
7
  lastActiveTool: import("./types").ActiveTool | null;
6
8
  locked: boolean;
7
9
  } & import("./types").ActiveTool) | undefined;
8
- showWelcomeScreen?: boolean | undefined;
9
10
  penMode?: boolean | undefined;
10
11
  penDetected?: boolean | undefined;
11
12
  exportBackground?: boolean | undefined;
@@ -49,7 +50,6 @@ export declare const clearAppStateForLocalStorage: (appState: Partial<AppState>)
49
50
  } | undefined;
50
51
  shouldCacheIgnoreZoom?: boolean | undefined;
51
52
  zenModeEnabled?: boolean | undefined;
52
- theme?: import("./element/types").Theme | undefined;
53
53
  gridSize?: number | null | undefined;
54
54
  selectedGroupIds?: {
55
55
  [groupId: string]: boolean;