@excalidraw/excalidraw 0.17.0-c7ee46e → 0.17.0-fe75f29

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 (60) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/excalidraw-assets/locales/{gl-ES-json-95041caf90ef2a7e8a53.js → gl-ES-json-d11c7966c3c2f95756e0.js} +1 -1
  3. package/dist/excalidraw-assets-dev/{vendor-37ba5d021227533892ee.js → vendor-2466bf62a35e940e8f28.js} +2 -2
  4. package/dist/excalidraw-with-preact.development.js +221 -56
  5. package/dist/excalidraw-with-preact.production.min.js +1 -1
  6. package/dist/excalidraw.development.js +221 -56
  7. package/dist/excalidraw.production.min.js +1 -1
  8. package/package.json +1 -1
  9. package/types/actions/actionAddToLibrary.d.ts +27 -3
  10. package/types/actions/actionBoundText.d.ts +18 -2
  11. package/types/actions/actionCanvas.d.ts +99 -11
  12. package/types/actions/actionClipboard.d.ts +63 -7
  13. package/types/actions/actionDeleteSelected.d.ts +27 -3
  14. package/types/actions/actionElementLock.d.ts +18 -2
  15. package/types/actions/actionExport.d.ts +72 -8
  16. package/types/actions/actionFinalize.d.ts +18 -2
  17. package/types/actions/actionFrame.d.ts +27 -3
  18. package/types/actions/actionGroup.d.ts +18 -2
  19. package/types/actions/actionLinearEditor.d.ts +9 -1
  20. package/types/actions/actionMenu.d.ts +21 -3
  21. package/types/actions/actionProperties.d.ts +117 -13
  22. package/types/actions/actionSelectAll.d.ts +9 -1
  23. package/types/actions/actionStyles.d.ts +9 -1
  24. package/types/actions/actionToggleGridMode.d.ts +9 -1
  25. package/types/actions/actionToggleObjectsSnapMode.d.ts +9 -1
  26. package/types/actions/actionToggleStats.d.ts +9 -1
  27. package/types/actions/actionToggleViewMode.d.ts +9 -1
  28. package/types/actions/actionToggleZenMode.d.ts +9 -1
  29. package/types/components/App.d.ts +1 -1
  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 +1 -1
  33. package/types/components/Paragraph.d.ts +4 -0
  34. package/types/components/TTDDialog/MermaidToExcalidraw.d.ts +6 -0
  35. package/types/components/TTDDialog/TTDDialog.d.ts +29 -0
  36. package/types/components/TTDDialog/TTDDialogInput.d.ts +9 -0
  37. package/types/components/TTDDialog/TTDDialogOutput.d.ts +7 -0
  38. package/types/components/TTDDialog/TTDDialogPanel.d.ts +16 -0
  39. package/types/components/TTDDialog/TTDDialogPanels.d.ts +4 -0
  40. package/types/components/TTDDialog/TTDDialogTab.d.ts +7 -0
  41. package/types/components/TTDDialog/TTDDialogTabTrigger.d.ts +8 -0
  42. package/types/components/TTDDialog/TTDDialogTabTriggers.d.ts +6 -0
  43. package/types/components/TTDDialog/TTDDialogTabs.d.ts +9 -0
  44. package/types/components/TTDDialog/TTDDialogTrigger.d.ts +8 -0
  45. package/types/components/TTDDialog/common.d.ts +33 -0
  46. package/types/components/TextField.d.ts +1 -1
  47. package/types/components/dropdownMenu/DropdownMenu.d.ts +6 -0
  48. package/types/components/dropdownMenu/DropdownMenuItem.d.ts +12 -0
  49. package/types/components/icons.d.ts +1 -0
  50. package/types/components/main-menu/MainMenu.d.ts +6 -0
  51. package/types/context/tunnels.d.ts +1 -0
  52. package/types/element/Hyperlink.d.ts +9 -1
  53. package/types/element/embeddable.d.ts +9 -1
  54. package/types/element/linearElementEditor.d.ts +9 -1
  55. package/types/packages/excalidraw/index.d.ts +2 -0
  56. package/types/types.d.ts +10 -2
  57. package/types/utils.d.ts +1 -0
  58. package/types/components/MermaidToExcalidraw.d.ts +0 -3
  59. /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{gl-ES-json-95041caf90ef2a7e8a53.d.ts → gl-ES-json-d11c7966c3c2f95756e0.d.ts} +0 -0
  60. /package/types/packages/excalidraw/dist/excalidraw-assets-dev/{vendor-37ba5d021227533892ee.d.ts → vendor-2466bf62a35e940e8f28.d.ts} +0 -0
@@ -96,7 +96,15 @@ export declare const actionRemoveAllElementsFromFrame: {
96
96
  name: string;
97
97
  tab?: string | undefined;
98
98
  } | null;
99
- openDialog: "mermaid" | "magicSettings" | "imageExport" | "help" | "jsonExport" | null;
99
+ openDialog: {
100
+ name: "imageExport" | "help" | "jsonExport";
101
+ } | {
102
+ name: "magicSettings";
103
+ source: "tool" | "generation" | "settings";
104
+ } | {
105
+ name: "ttd";
106
+ tab: string;
107
+ } | null;
100
108
  defaultSidebarDockedPreference: boolean;
101
109
  lastPointerDownWith: import("../element/types").PointerType;
102
110
  previousSelectedElementIds: {
@@ -232,7 +240,15 @@ export declare const actionupdateFrameRendering: {
232
240
  name: string;
233
241
  tab?: string | undefined;
234
242
  } | null;
235
- openDialog: "mermaid" | "magicSettings" | "imageExport" | "help" | "jsonExport" | null;
243
+ openDialog: {
244
+ name: "imageExport" | "help" | "jsonExport";
245
+ } | {
246
+ name: "magicSettings";
247
+ source: "tool" | "generation" | "settings";
248
+ } | {
249
+ name: "ttd";
250
+ tab: string;
251
+ } | null;
236
252
  defaultSidebarDockedPreference: boolean;
237
253
  lastPointerDownWith: import("../element/types").PointerType;
238
254
  selectedElementIds: Readonly<{
@@ -366,7 +382,15 @@ export declare const actionSetFrameAsActiveTool: {
366
382
  name: string;
367
383
  tab?: string | undefined;
368
384
  } | null;
369
- openDialog: "mermaid" | "magicSettings" | "imageExport" | "help" | "jsonExport" | null;
385
+ openDialog: {
386
+ name: "imageExport" | "help" | "jsonExport";
387
+ } | {
388
+ name: "magicSettings";
389
+ source: "tool" | "generation" | "settings";
390
+ } | {
391
+ name: "ttd";
392
+ tab: string;
393
+ } | null;
370
394
  defaultSidebarDockedPreference: boolean;
371
395
  lastPointerDownWith: import("../element/types").PointerType;
372
396
  selectedElementIds: Readonly<{
@@ -88,7 +88,15 @@ export declare const actionGroup: {
88
88
  name: string;
89
89
  tab?: string | undefined;
90
90
  } | null;
91
- openDialog: "mermaid" | "magicSettings" | "imageExport" | "help" | "jsonExport" | null;
91
+ openDialog: {
92
+ name: "imageExport" | "help" | "jsonExport";
93
+ } | {
94
+ name: "magicSettings";
95
+ source: "tool" | "generation" | "settings";
96
+ } | {
97
+ name: "ttd";
98
+ tab: string;
99
+ } | null;
92
100
  defaultSidebarDockedPreference: boolean;
93
101
  lastPointerDownWith: import("../element/types").PointerType;
94
102
  previousSelectedElementIds: {
@@ -228,7 +236,15 @@ export declare const actionUngroup: {
228
236
  name: string;
229
237
  tab?: string | undefined;
230
238
  } | null;
231
- openDialog: "mermaid" | "magicSettings" | "imageExport" | "help" | "jsonExport" | null;
239
+ openDialog: {
240
+ name: "imageExport" | "help" | "jsonExport";
241
+ } | {
242
+ name: "magicSettings";
243
+ source: "tool" | "generation" | "settings";
244
+ } | {
245
+ name: "ttd";
246
+ tab: string;
247
+ } | null;
232
248
  defaultSidebarDockedPreference: boolean;
233
249
  lastPointerDownWith: import("../element/types").PointerType;
234
250
  previousSelectedElementIds: {
@@ -78,7 +78,15 @@ export declare const actionToggleLinearEditor: {
78
78
  name: string;
79
79
  tab?: string | undefined;
80
80
  } | null;
81
- openDialog: "mermaid" | "magicSettings" | "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<{
@@ -75,7 +75,15 @@ export declare const actionToggleCanvasMenu: {
75
75
  name: string;
76
76
  tab?: string | undefined;
77
77
  } | null;
78
- openDialog: "mermaid" | "magicSettings" | "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<{
@@ -207,7 +215,15 @@ export declare const actionToggleEditMenu: {
207
215
  name: string;
208
216
  tab?: string | undefined;
209
217
  } | null;
210
- openDialog: "mermaid" | "magicSettings" | "imageExport" | "help" | "jsonExport" | null;
218
+ openDialog: {
219
+ name: "imageExport" | "help" | "jsonExport";
220
+ } | {
221
+ name: "magicSettings";
222
+ source: "tool" | "generation" | "settings";
223
+ } | {
224
+ name: "ttd";
225
+ tab: string;
226
+ } | null;
211
227
  defaultSidebarDockedPreference: boolean;
212
228
  lastPointerDownWith: import("../element/types").PointerType;
213
229
  selectedElementIds: Readonly<{
@@ -271,7 +287,9 @@ export declare const actionShortcuts: {
271
287
  };
272
288
  perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, { focusContainer }: import("../types").AppClassProperties) => {
273
289
  appState: {
274
- openDialog: "help" | null;
290
+ openDialog: {
291
+ name: "help";
292
+ } | null;
275
293
  contextMenu: {
276
294
  items: import("../components/ContextMenu").ContextMenuItems;
277
295
  top: number;
@@ -94,7 +94,15 @@ export declare const actionChangeFillStyle: {
94
94
  name: string;
95
95
  tab?: string | undefined;
96
96
  } | null;
97
- openDialog: "mermaid" | "magicSettings" | "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<{
@@ -225,7 +233,15 @@ export declare const actionChangeStrokeWidth: {
225
233
  name: string;
226
234
  tab?: string | undefined;
227
235
  } | null;
228
- openDialog: "mermaid" | "magicSettings" | "imageExport" | "help" | "jsonExport" | null;
236
+ openDialog: {
237
+ name: "imageExport" | "help" | "jsonExport";
238
+ } | {
239
+ name: "magicSettings";
240
+ source: "tool" | "generation" | "settings";
241
+ } | {
242
+ name: "ttd";
243
+ tab: string;
244
+ } | null;
229
245
  defaultSidebarDockedPreference: boolean;
230
246
  lastPointerDownWith: import("../element/types").PointerType;
231
247
  selectedElementIds: Readonly<{
@@ -356,7 +372,15 @@ export declare const actionChangeSloppiness: {
356
372
  name: string;
357
373
  tab?: string | undefined;
358
374
  } | null;
359
- openDialog: "mermaid" | "magicSettings" | "imageExport" | "help" | "jsonExport" | null;
375
+ openDialog: {
376
+ name: "imageExport" | "help" | "jsonExport";
377
+ } | {
378
+ name: "magicSettings";
379
+ source: "tool" | "generation" | "settings";
380
+ } | {
381
+ name: "ttd";
382
+ tab: string;
383
+ } | null;
360
384
  defaultSidebarDockedPreference: boolean;
361
385
  lastPointerDownWith: import("../element/types").PointerType;
362
386
  selectedElementIds: Readonly<{
@@ -487,7 +511,15 @@ export declare const actionChangeStrokeStyle: {
487
511
  name: string;
488
512
  tab?: string | undefined;
489
513
  } | null;
490
- openDialog: "mermaid" | "magicSettings" | "imageExport" | "help" | "jsonExport" | null;
514
+ openDialog: {
515
+ name: "imageExport" | "help" | "jsonExport";
516
+ } | {
517
+ name: "magicSettings";
518
+ source: "tool" | "generation" | "settings";
519
+ } | {
520
+ name: "ttd";
521
+ tab: string;
522
+ } | null;
491
523
  defaultSidebarDockedPreference: boolean;
492
524
  lastPointerDownWith: import("../element/types").PointerType;
493
525
  selectedElementIds: Readonly<{
@@ -618,7 +650,15 @@ export declare const actionChangeOpacity: {
618
650
  name: string;
619
651
  tab?: string | undefined;
620
652
  } | null;
621
- openDialog: "mermaid" | "magicSettings" | "imageExport" | "help" | "jsonExport" | null;
653
+ openDialog: {
654
+ name: "imageExport" | "help" | "jsonExport";
655
+ } | {
656
+ name: "magicSettings";
657
+ source: "tool" | "generation" | "settings";
658
+ } | {
659
+ name: "ttd";
660
+ tab: string;
661
+ } | null;
622
662
  defaultSidebarDockedPreference: boolean;
623
663
  lastPointerDownWith: import("../element/types").PointerType;
624
664
  selectedElementIds: Readonly<{
@@ -749,7 +789,15 @@ export declare const actionChangeFontSize: {
749
789
  name: string;
750
790
  tab?: string | undefined;
751
791
  } | null;
752
- openDialog: "mermaid" | "magicSettings" | "imageExport" | "help" | "jsonExport" | null;
792
+ openDialog: {
793
+ name: "imageExport" | "help" | "jsonExport";
794
+ } | {
795
+ name: "magicSettings";
796
+ source: "tool" | "generation" | "settings";
797
+ } | {
798
+ name: "ttd";
799
+ tab: string;
800
+ } | null;
753
801
  defaultSidebarDockedPreference: boolean;
754
802
  lastPointerDownWith: import("../element/types").PointerType;
755
803
  selectedElementIds: Readonly<{
@@ -880,7 +928,15 @@ export declare const actionDecreaseFontSize: {
880
928
  name: string;
881
929
  tab?: string | undefined;
882
930
  } | null;
883
- openDialog: "mermaid" | "magicSettings" | "imageExport" | "help" | "jsonExport" | null;
931
+ openDialog: {
932
+ name: "imageExport" | "help" | "jsonExport";
933
+ } | {
934
+ name: "magicSettings";
935
+ source: "tool" | "generation" | "settings";
936
+ } | {
937
+ name: "ttd";
938
+ tab: string;
939
+ } | null;
884
940
  defaultSidebarDockedPreference: boolean;
885
941
  lastPointerDownWith: import("../element/types").PointerType;
886
942
  selectedElementIds: Readonly<{
@@ -1011,7 +1067,15 @@ export declare const actionIncreaseFontSize: {
1011
1067
  name: string;
1012
1068
  tab?: string | undefined;
1013
1069
  } | null;
1014
- openDialog: "mermaid" | "magicSettings" | "imageExport" | "help" | "jsonExport" | null;
1070
+ openDialog: {
1071
+ name: "imageExport" | "help" | "jsonExport";
1072
+ } | {
1073
+ name: "magicSettings";
1074
+ source: "tool" | "generation" | "settings";
1075
+ } | {
1076
+ name: "ttd";
1077
+ tab: string;
1078
+ } | null;
1015
1079
  defaultSidebarDockedPreference: boolean;
1016
1080
  lastPointerDownWith: import("../element/types").PointerType;
1017
1081
  selectedElementIds: Readonly<{
@@ -1142,7 +1206,15 @@ export declare const actionChangeFontFamily: {
1142
1206
  name: string;
1143
1207
  tab?: string | undefined;
1144
1208
  } | null;
1145
- openDialog: "mermaid" | "magicSettings" | "imageExport" | "help" | "jsonExport" | null;
1209
+ openDialog: {
1210
+ name: "imageExport" | "help" | "jsonExport";
1211
+ } | {
1212
+ name: "magicSettings";
1213
+ source: "tool" | "generation" | "settings";
1214
+ } | {
1215
+ name: "ttd";
1216
+ tab: string;
1217
+ } | null;
1146
1218
  defaultSidebarDockedPreference: boolean;
1147
1219
  lastPointerDownWith: import("../element/types").PointerType;
1148
1220
  selectedElementIds: Readonly<{
@@ -1273,7 +1345,15 @@ export declare const actionChangeTextAlign: {
1273
1345
  name: string;
1274
1346
  tab?: string | undefined;
1275
1347
  } | null;
1276
- openDialog: "mermaid" | "magicSettings" | "imageExport" | "help" | "jsonExport" | null;
1348
+ openDialog: {
1349
+ name: "imageExport" | "help" | "jsonExport";
1350
+ } | {
1351
+ name: "magicSettings";
1352
+ source: "tool" | "generation" | "settings";
1353
+ } | {
1354
+ name: "ttd";
1355
+ tab: string;
1356
+ } | null;
1277
1357
  defaultSidebarDockedPreference: boolean;
1278
1358
  lastPointerDownWith: import("../element/types").PointerType;
1279
1359
  selectedElementIds: Readonly<{
@@ -1406,7 +1486,15 @@ export declare const actionChangeVerticalAlign: {
1406
1486
  name: string;
1407
1487
  tab?: string | undefined;
1408
1488
  } | null;
1409
- openDialog: "mermaid" | "magicSettings" | "imageExport" | "help" | "jsonExport" | null;
1489
+ openDialog: {
1490
+ name: "imageExport" | "help" | "jsonExport";
1491
+ } | {
1492
+ name: "magicSettings";
1493
+ source: "tool" | "generation" | "settings";
1494
+ } | {
1495
+ name: "ttd";
1496
+ tab: string;
1497
+ } | null;
1410
1498
  defaultSidebarDockedPreference: boolean;
1411
1499
  lastPointerDownWith: import("../element/types").PointerType;
1412
1500
  selectedElementIds: Readonly<{
@@ -1537,7 +1625,15 @@ export declare const actionChangeRoundness: {
1537
1625
  name: string;
1538
1626
  tab?: string | undefined;
1539
1627
  } | null;
1540
- openDialog: "mermaid" | "magicSettings" | "imageExport" | "help" | "jsonExport" | null;
1628
+ openDialog: {
1629
+ name: "imageExport" | "help" | "jsonExport";
1630
+ } | {
1631
+ name: "magicSettings";
1632
+ source: "tool" | "generation" | "settings";
1633
+ } | {
1634
+ name: "ttd";
1635
+ tab: string;
1636
+ } | null;
1541
1637
  defaultSidebarDockedPreference: boolean;
1542
1638
  lastPointerDownWith: import("../element/types").PointerType;
1543
1639
  selectedElementIds: Readonly<{
@@ -1671,7 +1767,15 @@ export declare const actionChangeArrowhead: {
1671
1767
  name: string;
1672
1768
  tab?: string | undefined;
1673
1769
  } | null;
1674
- openDialog: "mermaid" | "magicSettings" | "imageExport" | "help" | "jsonExport" | null;
1770
+ openDialog: {
1771
+ name: "imageExport" | "help" | "jsonExport";
1772
+ } | {
1773
+ name: "magicSettings";
1774
+ source: "tool" | "generation" | "settings";
1775
+ } | {
1776
+ name: "ttd";
1777
+ tab: string;
1778
+ } | null;
1675
1779
  defaultSidebarDockedPreference: boolean;
1676
1780
  lastPointerDownWith: import("../element/types").PointerType;
1677
1781
  selectedElementIds: Readonly<{
@@ -85,7 +85,15 @@ export declare const actionSelectAll: {
85
85
  name: string;
86
86
  tab?: string | undefined;
87
87
  } | null;
88
- openDialog: "mermaid" | "magicSettings" | "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: {
@@ -79,7 +79,15 @@ export declare const actionCopyStyles: {
79
79
  name: string;
80
80
  tab?: string | undefined;
81
81
  } | null;
82
- openDialog: "mermaid" | "magicSettings" | "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<{
@@ -80,7 +80,15 @@ export declare const actionToggleGridMode: {
80
80
  name: string;
81
81
  tab?: string | undefined;
82
82
  } | null;
83
- openDialog: "mermaid" | "magicSettings" | "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<{
@@ -79,7 +79,15 @@ export declare const actionToggleObjectsSnapMode: {
79
79
  name: string;
80
80
  tab?: string | undefined;
81
81
  } | null;
82
- openDialog: "mermaid" | "magicSettings" | "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<{
@@ -77,7 +77,15 @@ export declare const actionToggleStats: {
77
77
  name: string;
78
78
  tab?: string | undefined;
79
79
  } | null;
80
- openDialog: "mermaid" | "magicSettings" | "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<{
@@ -78,7 +78,15 @@ export declare const actionToggleViewMode: {
78
78
  name: string;
79
79
  tab?: string | undefined;
80
80
  } | null;
81
- openDialog: "mermaid" | "magicSettings" | "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<{
@@ -78,7 +78,15 @@ export declare const actionToggleZenMode: {
78
78
  name: string;
79
79
  tab?: string | undefined;
80
80
  } | null;
81
- openDialog: "mermaid" | "magicSettings" | "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<{
@@ -235,7 +235,7 @@ declare class App extends React.Component<AppProps, AppState> {
235
235
  private OPENAI_KEY_IS_PERSISTED;
236
236
  private onOpenAIKeyChange;
237
237
  private onMagicSettingsConfirm;
238
- onMagicButtonSelect: () => void;
238
+ onMagicframeToolSelect: () => void;
239
239
  private openEyeDropper;
240
240
  private syncActionResult;
241
241
  private onBlur;
@@ -1,5 +1,5 @@
1
1
  import "./Button.scss";
2
- interface ButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
2
+ interface ButtonProps extends React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
3
3
  type?: "button" | "submit" | "reset";
4
4
  onSelect: () => any;
5
5
  /** whether button is in active state */
@@ -0,0 +1,3 @@
1
+ export declare const InlineIcon: ({ icon }: {
2
+ icon: JSX.Element;
3
+ }) => JSX.Element;
@@ -28,7 +28,7 @@ interface LayerUIProps {
28
28
  openAIKey: string | null;
29
29
  isOpenAIKeyPersisted: boolean;
30
30
  onOpenAIAPIKeyChange: (apiKey: string, shouldPersist: boolean) => void;
31
- onMagicSettingsConfirm: (apiKey: string, shouldPersist: boolean) => void;
31
+ onMagicSettingsConfirm: (apiKey: string, shouldPersist: boolean, source: "tool" | "generation" | "settings") => void;
32
32
  }
33
33
  declare const _default: React.MemoExoticComponent<({ actionManager, appState, files, setAppState, elements, canvas, onLockToggle, onHandToolToggle, onPenModeToggle, showExitZenModeBtn, renderTopRightUI, renderCustomStats, UIOptions, onExportImage, renderWelcomeScreen, children, app, isCollaborating, openAIKey, isOpenAIKeyPersisted, onOpenAIAPIKeyChange, onMagicSettingsConfirm, }: LayerUIProps) => JSX.Element>;
34
34
  export default _default;
@@ -0,0 +1,4 @@
1
+ export declare const Paragraph: (props: {
2
+ children: React.ReactNode;
3
+ style?: React.CSSProperties;
4
+ }) => JSX.Element;
@@ -0,0 +1,6 @@
1
+ import "./MermaidToExcalidraw.scss";
2
+ import { MermaidToExcalidrawLibProps } from "./common";
3
+ declare const MermaidToExcalidraw: ({ mermaidToExcalidrawLib, }: {
4
+ mermaidToExcalidrawLib: MermaidToExcalidrawLibProps;
5
+ }) => JSX.Element;
6
+ export default MermaidToExcalidraw;
@@ -0,0 +1,29 @@
1
+ import "./TTDDialog.scss";
2
+ type OnTestSubmitRetValue = {
3
+ rateLimit?: number | null;
4
+ rateLimitRemaining?: number | null;
5
+ } & ({
6
+ generatedResponse: string | undefined;
7
+ error?: null | undefined;
8
+ } | {
9
+ error: Error;
10
+ generatedResponse?: null | undefined;
11
+ });
12
+ export declare const TTDDialog: (props: {
13
+ onTextSubmit(value: string): Promise<OnTestSubmitRetValue>;
14
+ } | {
15
+ __fallback: true;
16
+ }) => JSX.Element | null;
17
+ /**
18
+ * Text to diagram (TTD) dialog
19
+ */
20
+ export declare const TTDDialogBase: import("react").FC<({
21
+ tab: string;
22
+ } & ({
23
+ onTextSubmit(value: string): Promise<OnTestSubmitRetValue>;
24
+ } | {
25
+ __fallback: true;
26
+ })) & {
27
+ __fallback?: boolean | undefined;
28
+ }>;
29
+ export {};
@@ -0,0 +1,9 @@
1
+ import { ChangeEventHandler } from "react";
2
+ interface TTDDialogInputProps {
3
+ input: string;
4
+ placeholder: string;
5
+ onChange: ChangeEventHandler<HTMLTextAreaElement>;
6
+ onKeyboardSubmit?: () => void;
7
+ }
8
+ export declare const TTDDialogInput: ({ input, placeholder, onChange, onKeyboardSubmit, }: TTDDialogInputProps) => JSX.Element;
9
+ export {};
@@ -0,0 +1,7 @@
1
+ interface TTDDialogOutputProps {
2
+ error: Error | null;
3
+ canvasRef: React.RefObject<HTMLDivElement>;
4
+ loaded: boolean;
5
+ }
6
+ export declare const TTDDialogOutput: ({ error, canvasRef, loaded, }: TTDDialogOutputProps) => JSX.Element;
7
+ export {};
@@ -0,0 +1,16 @@
1
+ import { ReactNode } from "react";
2
+ interface TTDDialogPanelProps {
3
+ label: string;
4
+ children: ReactNode;
5
+ panelAction?: {
6
+ label: string;
7
+ action: () => void;
8
+ icon?: ReactNode;
9
+ };
10
+ panelActionDisabled?: boolean;
11
+ onTextSubmitInProgess?: boolean;
12
+ renderTopRight?: () => ReactNode;
13
+ renderBottomRight?: () => ReactNode;
14
+ }
15
+ export declare const TTDDialogPanel: ({ label, children, panelAction, panelActionDisabled, onTextSubmitInProgess, renderTopRight, renderBottomRight, }: TTDDialogPanelProps) => JSX.Element;
16
+ export {};
@@ -0,0 +1,4 @@
1
+ import { ReactNode } from "react";
2
+ export declare const TTDDialogPanels: ({ children }: {
3
+ children: ReactNode;
4
+ }) => JSX.Element;
@@ -0,0 +1,7 @@
1
+ export declare const TTDDialogTab: {
2
+ ({ tab, children, ...rest }: {
3
+ tab: string;
4
+ children: React.ReactNode;
5
+ } & import("react").HTMLAttributes<HTMLDivElement>): JSX.Element;
6
+ displayName: string;
7
+ };
@@ -0,0 +1,8 @@
1
+ export declare const TTDDialogTabTrigger: {
2
+ ({ children, tab, onSelect, ...rest }: {
3
+ children: React.ReactNode;
4
+ tab: string;
5
+ onSelect?: React.ReactEventHandler<HTMLButtonElement> | undefined;
6
+ } & Omit<import("react").HTMLAttributes<HTMLButtonElement>, "onSelect">): JSX.Element;
7
+ displayName: string;
8
+ };
@@ -0,0 +1,6 @@
1
+ export declare const TTDDialogTabTriggers: {
2
+ ({ children, ...rest }: {
3
+ children: React.ReactNode;
4
+ } & import("react").HTMLAttributes<HTMLDivElement>): JSX.Element;
5
+ displayName: string;
6
+ };
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from "react";
2
+ declare const TTDDialogTabs: {
3
+ ({ children, tab, ...rest }: {
4
+ children: ReactNode;
5
+ tab: string;
6
+ }): JSX.Element;
7
+ displayName: string;
8
+ };
9
+ export default TTDDialogTabs;