@excalidraw/excalidraw 0.17.0-fe75f29 → 0.17.1-4bdeaf9

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 (45) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/excalidraw-assets/{vendor-0452b0f95a04b9622103.js → vendor-94b72f67bbf2d6c0da4f.js} +2 -2
  3. package/dist/excalidraw-assets-dev/{vendor-2466bf62a35e940e8f28.js → vendor-4b7e1a9df5f218d0a300.js} +2 -2
  4. package/dist/excalidraw-with-preact.development.js +30 -19
  5. package/dist/excalidraw-with-preact.production.min.js +1 -1
  6. package/dist/excalidraw.development.js +178 -156
  7. package/dist/excalidraw.production.min.js +1 -1
  8. package/dist/excalidraw.production.min.js.LICENSE.txt +10 -0
  9. package/package.json +1 -1
  10. package/types/actions/actionAddToLibrary.d.ts +12 -9
  11. package/types/actions/actionBoundText.d.ts +8 -6
  12. package/types/actions/actionCanvas.d.ts +44 -33
  13. package/types/actions/actionClipboard.d.ts +28 -21
  14. package/types/actions/actionDeleteSelected.d.ts +12 -9
  15. package/types/actions/actionElementLock.d.ts +8 -6
  16. package/types/actions/actionExport.d.ts +32 -24
  17. package/types/actions/actionFinalize.d.ts +8 -6
  18. package/types/actions/actionFrame.d.ts +12 -9
  19. package/types/actions/actionGroup.d.ts +8 -6
  20. package/types/actions/actionLinearEditor.d.ts +4 -3
  21. package/types/actions/actionMenu.d.ts +8 -6
  22. package/types/actions/actionProperties.d.ts +52 -39
  23. package/types/actions/actionSelectAll.d.ts +4 -3
  24. package/types/actions/actionStyles.d.ts +4 -3
  25. package/types/actions/actionToggleGridMode.d.ts +4 -3
  26. package/types/actions/actionToggleObjectsSnapMode.d.ts +4 -3
  27. package/types/actions/actionToggleStats.d.ts +4 -3
  28. package/types/actions/actionToggleViewMode.d.ts +4 -3
  29. package/types/actions/actionToggleZenMode.d.ts +4 -3
  30. package/types/components/MagicSettings.d.ts +1 -1
  31. package/types/components/TTDDialog/TTDDialog.d.ts +1 -1
  32. package/types/components/TTDDialog/TTDDialogPanel.d.ts +2 -1
  33. package/types/components/TTDDialog/TTDDialogSubmitShortcut.d.ts +1 -0
  34. package/types/components/TTDDialog/TTDDialogTabs.d.ts +8 -3
  35. package/types/components/TTDDialog/common.d.ts +3 -4
  36. package/types/constants.d.ts +1 -0
  37. package/types/element/Hyperlink.d.ts +4 -3
  38. package/types/element/embeddable.d.ts +4 -3
  39. package/types/element/linearElementEditor.d.ts +4 -3
  40. package/types/packages/excalidraw/dist/excalidraw.development.d.ts +2 -2
  41. package/types/packages/excalidraw/webpack.preact.config.d.ts +127 -23
  42. package/types/types.d.ts +3 -2
  43. /package/dist/excalidraw-assets/{vendor-0452b0f95a04b9622103.js.LICENSE.txt → vendor-94b72f67bbf2d6c0da4f.js.LICENSE.txt} +0 -0
  44. /package/types/packages/excalidraw/dist/excalidraw-assets/{vendor-0452b0f95a04b9622103.d.ts → vendor-94b72f67bbf2d6c0da4f.d.ts} +0 -0
  45. /package/types/packages/excalidraw/dist/excalidraw-assets-dev/{vendor-2466bf62a35e940e8f28.d.ts → vendor-4b7e1a9df5f218d0a300.d.ts} +0 -0
@@ -99,11 +99,12 @@ export declare const actionRemoveAllElementsFromFrame: {
99
99
  openDialog: {
100
100
  name: "imageExport" | "help" | "jsonExport";
101
101
  } | {
102
- name: "magicSettings";
103
- source: "tool" | "generation" | "settings";
102
+ name: "settings";
103
+ source: "settings" | "tool" | "generation";
104
+ tab: "text-to-diagram" | "diagram-to-code";
104
105
  } | {
105
106
  name: "ttd";
106
- tab: string;
107
+ tab: "mermaid" | "text-to-diagram";
107
108
  } | null;
108
109
  defaultSidebarDockedPreference: boolean;
109
110
  lastPointerDownWith: import("../element/types").PointerType;
@@ -243,11 +244,12 @@ export declare const actionupdateFrameRendering: {
243
244
  openDialog: {
244
245
  name: "imageExport" | "help" | "jsonExport";
245
246
  } | {
246
- name: "magicSettings";
247
- source: "tool" | "generation" | "settings";
247
+ name: "settings";
248
+ source: "settings" | "tool" | "generation";
249
+ tab: "text-to-diagram" | "diagram-to-code";
248
250
  } | {
249
251
  name: "ttd";
250
- tab: string;
252
+ tab: "mermaid" | "text-to-diagram";
251
253
  } | null;
252
254
  defaultSidebarDockedPreference: boolean;
253
255
  lastPointerDownWith: import("../element/types").PointerType;
@@ -385,11 +387,12 @@ export declare const actionSetFrameAsActiveTool: {
385
387
  openDialog: {
386
388
  name: "imageExport" | "help" | "jsonExport";
387
389
  } | {
388
- name: "magicSettings";
389
- source: "tool" | "generation" | "settings";
390
+ name: "settings";
391
+ source: "settings" | "tool" | "generation";
392
+ tab: "text-to-diagram" | "diagram-to-code";
390
393
  } | {
391
394
  name: "ttd";
392
- tab: string;
395
+ tab: "mermaid" | "text-to-diagram";
393
396
  } | null;
394
397
  defaultSidebarDockedPreference: boolean;
395
398
  lastPointerDownWith: import("../element/types").PointerType;
@@ -91,11 +91,12 @@ export declare const actionGroup: {
91
91
  openDialog: {
92
92
  name: "imageExport" | "help" | "jsonExport";
93
93
  } | {
94
- name: "magicSettings";
95
- source: "tool" | "generation" | "settings";
94
+ name: "settings";
95
+ source: "settings" | "tool" | "generation";
96
+ tab: "text-to-diagram" | "diagram-to-code";
96
97
  } | {
97
98
  name: "ttd";
98
- tab: string;
99
+ tab: "mermaid" | "text-to-diagram";
99
100
  } | null;
100
101
  defaultSidebarDockedPreference: boolean;
101
102
  lastPointerDownWith: import("../element/types").PointerType;
@@ -239,11 +240,12 @@ export declare const actionUngroup: {
239
240
  openDialog: {
240
241
  name: "imageExport" | "help" | "jsonExport";
241
242
  } | {
242
- name: "magicSettings";
243
- source: "tool" | "generation" | "settings";
243
+ name: "settings";
244
+ source: "settings" | "tool" | "generation";
245
+ tab: "text-to-diagram" | "diagram-to-code";
244
246
  } | {
245
247
  name: "ttd";
246
- tab: string;
248
+ tab: "mermaid" | "text-to-diagram";
247
249
  } | null;
248
250
  defaultSidebarDockedPreference: boolean;
249
251
  lastPointerDownWith: import("../element/types").PointerType;
@@ -81,11 +81,12 @@ export declare const actionToggleLinearEditor: {
81
81
  openDialog: {
82
82
  name: "imageExport" | "help" | "jsonExport";
83
83
  } | {
84
- name: "magicSettings";
85
- source: "tool" | "generation" | "settings";
84
+ name: "settings";
85
+ source: "settings" | "tool" | "generation";
86
+ tab: "text-to-diagram" | "diagram-to-code";
86
87
  } | {
87
88
  name: "ttd";
88
- tab: string;
89
+ tab: "mermaid" | "text-to-diagram";
89
90
  } | null;
90
91
  defaultSidebarDockedPreference: boolean;
91
92
  lastPointerDownWith: import("../element/types").PointerType;
@@ -78,11 +78,12 @@ export declare const actionToggleCanvasMenu: {
78
78
  openDialog: {
79
79
  name: "imageExport" | "help" | "jsonExport";
80
80
  } | {
81
- name: "magicSettings";
82
- source: "tool" | "generation" | "settings";
81
+ name: "settings";
82
+ source: "settings" | "tool" | "generation";
83
+ tab: "text-to-diagram" | "diagram-to-code";
83
84
  } | {
84
85
  name: "ttd";
85
- tab: string;
86
+ tab: "mermaid" | "text-to-diagram";
86
87
  } | null;
87
88
  defaultSidebarDockedPreference: boolean;
88
89
  lastPointerDownWith: import("../element/types").PointerType;
@@ -218,11 +219,12 @@ export declare const actionToggleEditMenu: {
218
219
  openDialog: {
219
220
  name: "imageExport" | "help" | "jsonExport";
220
221
  } | {
221
- name: "magicSettings";
222
- source: "tool" | "generation" | "settings";
222
+ name: "settings";
223
+ source: "settings" | "tool" | "generation";
224
+ tab: "text-to-diagram" | "diagram-to-code";
223
225
  } | {
224
226
  name: "ttd";
225
- tab: string;
227
+ tab: "mermaid" | "text-to-diagram";
226
228
  } | null;
227
229
  defaultSidebarDockedPreference: boolean;
228
230
  lastPointerDownWith: import("../element/types").PointerType;
@@ -97,11 +97,12 @@ export declare const actionChangeFillStyle: {
97
97
  openDialog: {
98
98
  name: "imageExport" | "help" | "jsonExport";
99
99
  } | {
100
- name: "magicSettings";
101
- source: "tool" | "generation" | "settings";
100
+ name: "settings";
101
+ source: "settings" | "tool" | "generation";
102
+ tab: "text-to-diagram" | "diagram-to-code";
102
103
  } | {
103
104
  name: "ttd";
104
- tab: string;
105
+ tab: "mermaid" | "text-to-diagram";
105
106
  } | null;
106
107
  defaultSidebarDockedPreference: boolean;
107
108
  lastPointerDownWith: import("../element/types").PointerType;
@@ -236,11 +237,12 @@ export declare const actionChangeStrokeWidth: {
236
237
  openDialog: {
237
238
  name: "imageExport" | "help" | "jsonExport";
238
239
  } | {
239
- name: "magicSettings";
240
- source: "tool" | "generation" | "settings";
240
+ name: "settings";
241
+ source: "settings" | "tool" | "generation";
242
+ tab: "text-to-diagram" | "diagram-to-code";
241
243
  } | {
242
244
  name: "ttd";
243
- tab: string;
245
+ tab: "mermaid" | "text-to-diagram";
244
246
  } | null;
245
247
  defaultSidebarDockedPreference: boolean;
246
248
  lastPointerDownWith: import("../element/types").PointerType;
@@ -375,11 +377,12 @@ export declare const actionChangeSloppiness: {
375
377
  openDialog: {
376
378
  name: "imageExport" | "help" | "jsonExport";
377
379
  } | {
378
- name: "magicSettings";
379
- source: "tool" | "generation" | "settings";
380
+ name: "settings";
381
+ source: "settings" | "tool" | "generation";
382
+ tab: "text-to-diagram" | "diagram-to-code";
380
383
  } | {
381
384
  name: "ttd";
382
- tab: string;
385
+ tab: "mermaid" | "text-to-diagram";
383
386
  } | null;
384
387
  defaultSidebarDockedPreference: boolean;
385
388
  lastPointerDownWith: import("../element/types").PointerType;
@@ -514,11 +517,12 @@ export declare const actionChangeStrokeStyle: {
514
517
  openDialog: {
515
518
  name: "imageExport" | "help" | "jsonExport";
516
519
  } | {
517
- name: "magicSettings";
518
- source: "tool" | "generation" | "settings";
520
+ name: "settings";
521
+ source: "settings" | "tool" | "generation";
522
+ tab: "text-to-diagram" | "diagram-to-code";
519
523
  } | {
520
524
  name: "ttd";
521
- tab: string;
525
+ tab: "mermaid" | "text-to-diagram";
522
526
  } | null;
523
527
  defaultSidebarDockedPreference: boolean;
524
528
  lastPointerDownWith: import("../element/types").PointerType;
@@ -653,11 +657,12 @@ export declare const actionChangeOpacity: {
653
657
  openDialog: {
654
658
  name: "imageExport" | "help" | "jsonExport";
655
659
  } | {
656
- name: "magicSettings";
657
- source: "tool" | "generation" | "settings";
660
+ name: "settings";
661
+ source: "settings" | "tool" | "generation";
662
+ tab: "text-to-diagram" | "diagram-to-code";
658
663
  } | {
659
664
  name: "ttd";
660
- tab: string;
665
+ tab: "mermaid" | "text-to-diagram";
661
666
  } | null;
662
667
  defaultSidebarDockedPreference: boolean;
663
668
  lastPointerDownWith: import("../element/types").PointerType;
@@ -792,11 +797,12 @@ export declare const actionChangeFontSize: {
792
797
  openDialog: {
793
798
  name: "imageExport" | "help" | "jsonExport";
794
799
  } | {
795
- name: "magicSettings";
796
- source: "tool" | "generation" | "settings";
800
+ name: "settings";
801
+ source: "settings" | "tool" | "generation";
802
+ tab: "text-to-diagram" | "diagram-to-code";
797
803
  } | {
798
804
  name: "ttd";
799
- tab: string;
805
+ tab: "mermaid" | "text-to-diagram";
800
806
  } | null;
801
807
  defaultSidebarDockedPreference: boolean;
802
808
  lastPointerDownWith: import("../element/types").PointerType;
@@ -931,11 +937,12 @@ export declare const actionDecreaseFontSize: {
931
937
  openDialog: {
932
938
  name: "imageExport" | "help" | "jsonExport";
933
939
  } | {
934
- name: "magicSettings";
935
- source: "tool" | "generation" | "settings";
940
+ name: "settings";
941
+ source: "settings" | "tool" | "generation";
942
+ tab: "text-to-diagram" | "diagram-to-code";
936
943
  } | {
937
944
  name: "ttd";
938
- tab: string;
945
+ tab: "mermaid" | "text-to-diagram";
939
946
  } | null;
940
947
  defaultSidebarDockedPreference: boolean;
941
948
  lastPointerDownWith: import("../element/types").PointerType;
@@ -1070,11 +1077,12 @@ export declare const actionIncreaseFontSize: {
1070
1077
  openDialog: {
1071
1078
  name: "imageExport" | "help" | "jsonExport";
1072
1079
  } | {
1073
- name: "magicSettings";
1074
- source: "tool" | "generation" | "settings";
1080
+ name: "settings";
1081
+ source: "settings" | "tool" | "generation";
1082
+ tab: "text-to-diagram" | "diagram-to-code";
1075
1083
  } | {
1076
1084
  name: "ttd";
1077
- tab: string;
1085
+ tab: "mermaid" | "text-to-diagram";
1078
1086
  } | null;
1079
1087
  defaultSidebarDockedPreference: boolean;
1080
1088
  lastPointerDownWith: import("../element/types").PointerType;
@@ -1209,11 +1217,12 @@ export declare const actionChangeFontFamily: {
1209
1217
  openDialog: {
1210
1218
  name: "imageExport" | "help" | "jsonExport";
1211
1219
  } | {
1212
- name: "magicSettings";
1213
- source: "tool" | "generation" | "settings";
1220
+ name: "settings";
1221
+ source: "settings" | "tool" | "generation";
1222
+ tab: "text-to-diagram" | "diagram-to-code";
1214
1223
  } | {
1215
1224
  name: "ttd";
1216
- tab: string;
1225
+ tab: "mermaid" | "text-to-diagram";
1217
1226
  } | null;
1218
1227
  defaultSidebarDockedPreference: boolean;
1219
1228
  lastPointerDownWith: import("../element/types").PointerType;
@@ -1348,11 +1357,12 @@ export declare const actionChangeTextAlign: {
1348
1357
  openDialog: {
1349
1358
  name: "imageExport" | "help" | "jsonExport";
1350
1359
  } | {
1351
- name: "magicSettings";
1352
- source: "tool" | "generation" | "settings";
1360
+ name: "settings";
1361
+ source: "settings" | "tool" | "generation";
1362
+ tab: "text-to-diagram" | "diagram-to-code";
1353
1363
  } | {
1354
1364
  name: "ttd";
1355
- tab: string;
1365
+ tab: "mermaid" | "text-to-diagram";
1356
1366
  } | null;
1357
1367
  defaultSidebarDockedPreference: boolean;
1358
1368
  lastPointerDownWith: import("../element/types").PointerType;
@@ -1489,11 +1499,12 @@ export declare const actionChangeVerticalAlign: {
1489
1499
  openDialog: {
1490
1500
  name: "imageExport" | "help" | "jsonExport";
1491
1501
  } | {
1492
- name: "magicSettings";
1493
- source: "tool" | "generation" | "settings";
1502
+ name: "settings";
1503
+ source: "settings" | "tool" | "generation";
1504
+ tab: "text-to-diagram" | "diagram-to-code";
1494
1505
  } | {
1495
1506
  name: "ttd";
1496
- tab: string;
1507
+ tab: "mermaid" | "text-to-diagram";
1497
1508
  } | null;
1498
1509
  defaultSidebarDockedPreference: boolean;
1499
1510
  lastPointerDownWith: import("../element/types").PointerType;
@@ -1628,11 +1639,12 @@ export declare const actionChangeRoundness: {
1628
1639
  openDialog: {
1629
1640
  name: "imageExport" | "help" | "jsonExport";
1630
1641
  } | {
1631
- name: "magicSettings";
1632
- source: "tool" | "generation" | "settings";
1642
+ name: "settings";
1643
+ source: "settings" | "tool" | "generation";
1644
+ tab: "text-to-diagram" | "diagram-to-code";
1633
1645
  } | {
1634
1646
  name: "ttd";
1635
- tab: string;
1647
+ tab: "mermaid" | "text-to-diagram";
1636
1648
  } | null;
1637
1649
  defaultSidebarDockedPreference: boolean;
1638
1650
  lastPointerDownWith: import("../element/types").PointerType;
@@ -1770,11 +1782,12 @@ export declare const actionChangeArrowhead: {
1770
1782
  openDialog: {
1771
1783
  name: "imageExport" | "help" | "jsonExport";
1772
1784
  } | {
1773
- name: "magicSettings";
1774
- source: "tool" | "generation" | "settings";
1785
+ name: "settings";
1786
+ source: "settings" | "tool" | "generation";
1787
+ tab: "text-to-diagram" | "diagram-to-code";
1775
1788
  } | {
1776
1789
  name: "ttd";
1777
- tab: string;
1790
+ tab: "mermaid" | "text-to-diagram";
1778
1791
  } | null;
1779
1792
  defaultSidebarDockedPreference: boolean;
1780
1793
  lastPointerDownWith: import("../element/types").PointerType;
@@ -88,11 +88,12 @@ export declare const actionSelectAll: {
88
88
  openDialog: {
89
89
  name: "imageExport" | "help" | "jsonExport";
90
90
  } | {
91
- name: "magicSettings";
92
- source: "tool" | "generation" | "settings";
91
+ name: "settings";
92
+ source: "settings" | "tool" | "generation";
93
+ tab: "text-to-diagram" | "diagram-to-code";
93
94
  } | {
94
95
  name: "ttd";
95
- tab: string;
96
+ tab: "mermaid" | "text-to-diagram";
96
97
  } | null;
97
98
  defaultSidebarDockedPreference: boolean;
98
99
  lastPointerDownWith: import("../element/types").PointerType;
@@ -82,11 +82,12 @@ export declare const actionCopyStyles: {
82
82
  openDialog: {
83
83
  name: "imageExport" | "help" | "jsonExport";
84
84
  } | {
85
- name: "magicSettings";
86
- source: "tool" | "generation" | "settings";
85
+ name: "settings";
86
+ source: "settings" | "tool" | "generation";
87
+ tab: "text-to-diagram" | "diagram-to-code";
87
88
  } | {
88
89
  name: "ttd";
89
- tab: string;
90
+ tab: "mermaid" | "text-to-diagram";
90
91
  } | null;
91
92
  defaultSidebarDockedPreference: boolean;
92
93
  lastPointerDownWith: import("../element/types").PointerType;
@@ -83,11 +83,12 @@ export declare const actionToggleGridMode: {
83
83
  openDialog: {
84
84
  name: "imageExport" | "help" | "jsonExport";
85
85
  } | {
86
- name: "magicSettings";
87
- source: "tool" | "generation" | "settings";
86
+ name: "settings";
87
+ source: "settings" | "tool" | "generation";
88
+ tab: "text-to-diagram" | "diagram-to-code";
88
89
  } | {
89
90
  name: "ttd";
90
- tab: string;
91
+ tab: "mermaid" | "text-to-diagram";
91
92
  } | null;
92
93
  defaultSidebarDockedPreference: boolean;
93
94
  lastPointerDownWith: import("../element/types").PointerType;
@@ -82,11 +82,12 @@ export declare const actionToggleObjectsSnapMode: {
82
82
  openDialog: {
83
83
  name: "imageExport" | "help" | "jsonExport";
84
84
  } | {
85
- name: "magicSettings";
86
- source: "tool" | "generation" | "settings";
85
+ name: "settings";
86
+ source: "settings" | "tool" | "generation";
87
+ tab: "text-to-diagram" | "diagram-to-code";
87
88
  } | {
88
89
  name: "ttd";
89
- tab: string;
90
+ tab: "mermaid" | "text-to-diagram";
90
91
  } | null;
91
92
  defaultSidebarDockedPreference: boolean;
92
93
  lastPointerDownWith: import("../element/types").PointerType;
@@ -80,11 +80,12 @@ export declare const actionToggleStats: {
80
80
  openDialog: {
81
81
  name: "imageExport" | "help" | "jsonExport";
82
82
  } | {
83
- name: "magicSettings";
84
- source: "tool" | "generation" | "settings";
83
+ name: "settings";
84
+ source: "settings" | "tool" | "generation";
85
+ tab: "text-to-diagram" | "diagram-to-code";
85
86
  } | {
86
87
  name: "ttd";
87
- tab: string;
88
+ tab: "mermaid" | "text-to-diagram";
88
89
  } | null;
89
90
  defaultSidebarDockedPreference: boolean;
90
91
  lastPointerDownWith: import("../element/types").PointerType;
@@ -81,11 +81,12 @@ export declare const actionToggleViewMode: {
81
81
  openDialog: {
82
82
  name: "imageExport" | "help" | "jsonExport";
83
83
  } | {
84
- name: "magicSettings";
85
- source: "tool" | "generation" | "settings";
84
+ name: "settings";
85
+ source: "settings" | "tool" | "generation";
86
+ tab: "text-to-diagram" | "diagram-to-code";
86
87
  } | {
87
88
  name: "ttd";
88
- tab: string;
89
+ tab: "mermaid" | "text-to-diagram";
89
90
  } | null;
90
91
  defaultSidebarDockedPreference: boolean;
91
92
  lastPointerDownWith: import("../element/types").PointerType;
@@ -81,11 +81,12 @@ export declare const actionToggleZenMode: {
81
81
  openDialog: {
82
82
  name: "imageExport" | "help" | "jsonExport";
83
83
  } | {
84
- name: "magicSettings";
85
- source: "tool" | "generation" | "settings";
84
+ name: "settings";
85
+ source: "settings" | "tool" | "generation";
86
+ tab: "text-to-diagram" | "diagram-to-code";
86
87
  } | {
87
88
  name: "ttd";
88
- tab: string;
89
+ tab: "mermaid" | "text-to-diagram";
89
90
  } | null;
90
91
  defaultSidebarDockedPreference: boolean;
91
92
  lastPointerDownWith: import("../element/types").PointerType;
@@ -5,4 +5,4 @@ export declare const MagicSettings: (props: {
5
5
  onChange: (key: string, shouldPersist: boolean) => void;
6
6
  onConfirm: (key: string, shouldPersist: boolean) => void;
7
7
  onClose: () => void;
8
- }) => JSX.Element;
8
+ }) => JSX.Element | null;
@@ -18,7 +18,7 @@ export declare const TTDDialog: (props: {
18
18
  * Text to diagram (TTD) dialog
19
19
  */
20
20
  export declare const TTDDialogBase: import("react").FC<({
21
- tab: string;
21
+ tab: "text-to-diagram" | "mermaid";
22
22
  } & ({
23
23
  onTextSubmit(value: string): Promise<OnTestSubmitRetValue>;
24
24
  } | {
@@ -10,7 +10,8 @@ interface TTDDialogPanelProps {
10
10
  panelActionDisabled?: boolean;
11
11
  onTextSubmitInProgess?: boolean;
12
12
  renderTopRight?: () => ReactNode;
13
+ renderSubmitShortcut?: () => ReactNode;
13
14
  renderBottomRight?: () => ReactNode;
14
15
  }
15
- export declare const TTDDialogPanel: ({ label, children, panelAction, panelActionDisabled, onTextSubmitInProgess, renderTopRight, renderBottomRight, }: TTDDialogPanelProps) => JSX.Element;
16
+ export declare const TTDDialogPanel: ({ label, children, panelAction, panelActionDisabled, onTextSubmitInProgess, renderTopRight, renderSubmitShortcut, renderBottomRight, }: TTDDialogPanelProps) => JSX.Element;
16
17
  export {};
@@ -0,0 +1 @@
1
+ export declare const TTDDialogSubmitShortcut: () => JSX.Element;
@@ -1,9 +1,14 @@
1
1
  import { ReactNode } from "react";
2
2
  declare const TTDDialogTabs: {
3
- ({ children, tab, ...rest }: {
3
+ (props: {
4
4
  children: ReactNode;
5
- tab: string;
6
- }): JSX.Element;
5
+ } & ({
6
+ dialog: "ttd";
7
+ tab: "text-to-diagram" | "mermaid";
8
+ } | {
9
+ dialog: "settings";
10
+ tab: "text-to-diagram" | "diagram-to-code";
11
+ })): JSX.Element;
7
12
  displayName: string;
8
13
  };
9
14
  export default TTDDialogTabs;
@@ -11,16 +11,15 @@ export interface MermaidToExcalidrawLibProps {
11
11
  interface ConvertMermaidToExcalidrawFormatProps {
12
12
  canvasRef: React.RefObject<HTMLDivElement>;
13
13
  mermaidToExcalidrawLib: MermaidToExcalidrawLibProps;
14
- text: string;
14
+ mermaidDefinition: string;
15
15
  setError: (error: Error | null) => void;
16
16
  data: React.MutableRefObject<{
17
17
  elements: readonly NonDeletedExcalidrawElement[];
18
18
  files: BinaryFiles | null;
19
19
  }>;
20
20
  }
21
- export declare const convertMermaidToExcalidraw: ({ canvasRef, mermaidToExcalidrawLib, text, setError, data, }: ConvertMermaidToExcalidrawFormatProps) => Promise<void>;
22
- export declare const LOCAL_STORAGE_KEY_MERMAID_TO_EXCALIDRAW = "mermaid-to-excalidraw";
23
- export declare const saveMermaidDataToStorage: (data: string) => void;
21
+ export declare const convertMermaidToExcalidraw: ({ canvasRef, mermaidToExcalidrawLib, mermaidDefinition, setError, data, }: ConvertMermaidToExcalidrawFormatProps) => Promise<void>;
22
+ export declare const saveMermaidDataToStorage: (mermaidDefinition: string) => void;
24
23
  export declare const insertToEditor: ({ app, data, text, shouldSaveMermaidDataToStorage, }: {
25
24
  app: AppClassProperties;
26
25
  data: React.MutableRefObject<{
@@ -263,5 +263,6 @@ export declare const TOOL_TYPE: {
263
263
  };
264
264
  export declare const EDITOR_LS_KEYS: {
265
265
  readonly OAI_API_KEY: "excalidraw-oai-api-key";
266
+ readonly MERMAID_TO_EXCALIDRAW: "mermaid-to-excalidraw";
266
267
  readonly PUBLISH_LIBRARY: "publish-library-data";
267
268
  };
@@ -92,11 +92,12 @@ export declare const actionLink: {
92
92
  openDialog: {
93
93
  name: "imageExport" | "help" | "jsonExport";
94
94
  } | {
95
- name: "magicSettings";
96
- source: "tool" | "generation" | "settings";
95
+ name: "settings";
96
+ source: "settings" | "tool" | "generation";
97
+ tab: "text-to-diagram" | "diagram-to-code";
97
98
  } | {
98
99
  name: "ttd";
99
- tab: string;
100
+ tab: "mermaid" | "text-to-diagram";
100
101
  } | null;
101
102
  defaultSidebarDockedPreference: boolean;
102
103
  lastPointerDownWith: import("./types").PointerType;
@@ -85,11 +85,12 @@ export declare const actionSetEmbeddableAsActiveTool: {
85
85
  openDialog: {
86
86
  name: "imageExport" | "help" | "jsonExport";
87
87
  } | {
88
- name: "magicSettings";
89
- source: "tool" | "generation" | "settings";
88
+ name: "settings";
89
+ source: "settings" | "tool" | "generation";
90
+ tab: "text-to-diagram" | "diagram-to-code";
90
91
  } | {
91
92
  name: "ttd";
92
- tab: string;
93
+ tab: "mermaid" | "text-to-diagram";
93
94
  } | null;
94
95
  defaultSidebarDockedPreference: boolean;
95
96
  lastPointerDownWith: import("./types").PointerType;
@@ -195,11 +195,12 @@ export declare class LinearElementEditor {
195
195
  openDialog: {
196
196
  name: "imageExport" | "help" | "jsonExport";
197
197
  } | {
198
- name: "magicSettings";
199
- source: "tool" | "generation" | "settings";
198
+ name: "settings";
199
+ source: "settings" | "tool" | "generation";
200
+ tab: "text-to-diagram" | "diagram-to-code";
200
201
  } | {
201
202
  name: "ttd";
202
- tab: string;
203
+ tab: "mermaid" | "text-to-diagram";
203
204
  } | null;
204
205
  defaultSidebarDockedPreference: boolean;
205
206
  lastPointerDownWith: import("./types").PointerType;
@@ -1,2 +1,2 @@
1
- export = __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__;
2
- export = __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__;
1
+ export = __WEBPACK_EXTERNAL_MODULE_react_dom__;
2
+ export = __WEBPACK_EXTERNAL_MODULE_react_dom__;