@excalidraw/excalidraw 0.17.0-c7ee46e → 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.
- package/CHANGELOG.md +6 -0
- package/dist/excalidraw-assets/locales/{gl-ES-json-95041caf90ef2a7e8a53.js → gl-ES-json-d11c7966c3c2f95756e0.js} +1 -1
- package/dist/excalidraw-assets-dev/{vendor-37ba5d021227533892ee.js → vendor-0aa6bd65c58be7c84e9c.js} +2 -2
- package/dist/excalidraw-with-preact.development.js +223 -58
- package/dist/excalidraw-with-preact.production.min.js +1 -1
- package/dist/excalidraw.development.js +223 -58
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +1 -1
- package/types/actions/actionAddToLibrary.d.ts +30 -3
- package/types/actions/actionBoundText.d.ts +20 -2
- package/types/actions/actionCanvas.d.ts +110 -11
- package/types/actions/actionClipboard.d.ts +70 -7
- package/types/actions/actionDeleteSelected.d.ts +30 -3
- package/types/actions/actionElementLock.d.ts +20 -2
- package/types/actions/actionExport.d.ts +80 -8
- package/types/actions/actionFinalize.d.ts +20 -2
- package/types/actions/actionFrame.d.ts +30 -3
- package/types/actions/actionGroup.d.ts +20 -2
- package/types/actions/actionLinearEditor.d.ts +10 -1
- package/types/actions/actionMenu.d.ts +23 -3
- package/types/actions/actionProperties.d.ts +130 -13
- package/types/actions/actionSelectAll.d.ts +10 -1
- package/types/actions/actionStyles.d.ts +10 -1
- package/types/actions/actionToggleGridMode.d.ts +10 -1
- package/types/actions/actionToggleObjectsSnapMode.d.ts +10 -1
- package/types/actions/actionToggleStats.d.ts +10 -1
- package/types/actions/actionToggleViewMode.d.ts +10 -1
- package/types/actions/actionToggleZenMode.d.ts +10 -1
- package/types/components/App.d.ts +1 -1
- package/types/components/Button.d.ts +1 -1
- package/types/components/InlineIcon.d.ts +3 -0
- package/types/components/LayerUI.d.ts +1 -1
- package/types/components/MagicSettings.d.ts +1 -1
- package/types/components/Paragraph.d.ts +4 -0
- package/types/components/TTDDialog/MermaidToExcalidraw.d.ts +6 -0
- package/types/components/TTDDialog/TTDDialog.d.ts +29 -0
- package/types/components/TTDDialog/TTDDialogInput.d.ts +9 -0
- package/types/components/TTDDialog/TTDDialogOutput.d.ts +7 -0
- package/types/components/TTDDialog/TTDDialogPanel.d.ts +16 -0
- package/types/components/TTDDialog/TTDDialogPanels.d.ts +4 -0
- package/types/components/TTDDialog/TTDDialogTab.d.ts +7 -0
- package/types/components/TTDDialog/TTDDialogTabTrigger.d.ts +8 -0
- package/types/components/TTDDialog/TTDDialogTabTriggers.d.ts +6 -0
- package/types/components/TTDDialog/TTDDialogTabs.d.ts +14 -0
- package/types/components/TTDDialog/TTDDialogTrigger.d.ts +8 -0
- package/types/components/TTDDialog/common.d.ts +33 -0
- package/types/components/TextField.d.ts +1 -1
- package/types/components/dropdownMenu/DropdownMenu.d.ts +6 -0
- package/types/components/dropdownMenu/DropdownMenuItem.d.ts +12 -0
- package/types/components/icons.d.ts +1 -0
- package/types/components/main-menu/MainMenu.d.ts +6 -0
- package/types/context/tunnels.d.ts +1 -0
- package/types/element/Hyperlink.d.ts +10 -1
- package/types/element/embeddable.d.ts +10 -1
- package/types/element/linearElementEditor.d.ts +10 -1
- package/types/packages/excalidraw/index.d.ts +2 -0
- package/types/types.d.ts +11 -2
- package/types/utils.d.ts +1 -0
- package/types/components/MermaidToExcalidraw.d.ts +0 -3
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{gl-ES-json-95041caf90ef2a7e8a53.d.ts → gl-ES-json-d11c7966c3c2f95756e0.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/{vendor-37ba5d021227533892ee.d.ts → vendor-0aa6bd65c58be7c84e9c.d.ts} +0 -0
|
@@ -76,7 +76,16 @@ export declare const actionFinalize: {
|
|
|
76
76
|
name: string;
|
|
77
77
|
tab?: string | undefined;
|
|
78
78
|
} | null;
|
|
79
|
-
openDialog:
|
|
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<{
|
|
@@ -201,7 +210,16 @@ export declare const actionFinalize: {
|
|
|
201
210
|
name: string;
|
|
202
211
|
tab?: string | undefined;
|
|
203
212
|
} | null;
|
|
204
|
-
openDialog:
|
|
213
|
+
openDialog: {
|
|
214
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
215
|
+
} | {
|
|
216
|
+
name: "settings";
|
|
217
|
+
source: "settings" | "tool" | "generation";
|
|
218
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
219
|
+
} | {
|
|
220
|
+
name: "ttd";
|
|
221
|
+
tab: "mermaid" | "text-to-diagram";
|
|
222
|
+
} | null;
|
|
205
223
|
defaultSidebarDockedPreference: boolean;
|
|
206
224
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
207
225
|
previousSelectedElementIds: {
|
|
@@ -96,7 +96,16 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
96
96
|
name: string;
|
|
97
97
|
tab?: string | undefined;
|
|
98
98
|
} | null;
|
|
99
|
-
openDialog:
|
|
99
|
+
openDialog: {
|
|
100
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
101
|
+
} | {
|
|
102
|
+
name: "settings";
|
|
103
|
+
source: "settings" | "tool" | "generation";
|
|
104
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
105
|
+
} | {
|
|
106
|
+
name: "ttd";
|
|
107
|
+
tab: "mermaid" | "text-to-diagram";
|
|
108
|
+
} | null;
|
|
100
109
|
defaultSidebarDockedPreference: boolean;
|
|
101
110
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
102
111
|
previousSelectedElementIds: {
|
|
@@ -232,7 +241,16 @@ export declare const actionupdateFrameRendering: {
|
|
|
232
241
|
name: string;
|
|
233
242
|
tab?: string | undefined;
|
|
234
243
|
} | null;
|
|
235
|
-
openDialog:
|
|
244
|
+
openDialog: {
|
|
245
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
246
|
+
} | {
|
|
247
|
+
name: "settings";
|
|
248
|
+
source: "settings" | "tool" | "generation";
|
|
249
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
250
|
+
} | {
|
|
251
|
+
name: "ttd";
|
|
252
|
+
tab: "mermaid" | "text-to-diagram";
|
|
253
|
+
} | null;
|
|
236
254
|
defaultSidebarDockedPreference: boolean;
|
|
237
255
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
238
256
|
selectedElementIds: Readonly<{
|
|
@@ -366,7 +384,16 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
366
384
|
name: string;
|
|
367
385
|
tab?: string | undefined;
|
|
368
386
|
} | null;
|
|
369
|
-
openDialog:
|
|
387
|
+
openDialog: {
|
|
388
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
389
|
+
} | {
|
|
390
|
+
name: "settings";
|
|
391
|
+
source: "settings" | "tool" | "generation";
|
|
392
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
393
|
+
} | {
|
|
394
|
+
name: "ttd";
|
|
395
|
+
tab: "mermaid" | "text-to-diagram";
|
|
396
|
+
} | null;
|
|
370
397
|
defaultSidebarDockedPreference: boolean;
|
|
371
398
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
372
399
|
selectedElementIds: Readonly<{
|
|
@@ -88,7 +88,16 @@ export declare const actionGroup: {
|
|
|
88
88
|
name: string;
|
|
89
89
|
tab?: string | undefined;
|
|
90
90
|
} | null;
|
|
91
|
-
openDialog:
|
|
91
|
+
openDialog: {
|
|
92
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
93
|
+
} | {
|
|
94
|
+
name: "settings";
|
|
95
|
+
source: "settings" | "tool" | "generation";
|
|
96
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
97
|
+
} | {
|
|
98
|
+
name: "ttd";
|
|
99
|
+
tab: "mermaid" | "text-to-diagram";
|
|
100
|
+
} | null;
|
|
92
101
|
defaultSidebarDockedPreference: boolean;
|
|
93
102
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
94
103
|
previousSelectedElementIds: {
|
|
@@ -228,7 +237,16 @@ export declare const actionUngroup: {
|
|
|
228
237
|
name: string;
|
|
229
238
|
tab?: string | undefined;
|
|
230
239
|
} | null;
|
|
231
|
-
openDialog:
|
|
240
|
+
openDialog: {
|
|
241
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
242
|
+
} | {
|
|
243
|
+
name: "settings";
|
|
244
|
+
source: "settings" | "tool" | "generation";
|
|
245
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
246
|
+
} | {
|
|
247
|
+
name: "ttd";
|
|
248
|
+
tab: "mermaid" | "text-to-diagram";
|
|
249
|
+
} | null;
|
|
232
250
|
defaultSidebarDockedPreference: boolean;
|
|
233
251
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
234
252
|
previousSelectedElementIds: {
|
|
@@ -78,7 +78,16 @@ export declare const actionToggleLinearEditor: {
|
|
|
78
78
|
name: string;
|
|
79
79
|
tab?: string | undefined;
|
|
80
80
|
} | null;
|
|
81
|
-
openDialog:
|
|
81
|
+
openDialog: {
|
|
82
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
83
|
+
} | {
|
|
84
|
+
name: "settings";
|
|
85
|
+
source: "settings" | "tool" | "generation";
|
|
86
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
87
|
+
} | {
|
|
88
|
+
name: "ttd";
|
|
89
|
+
tab: "mermaid" | "text-to-diagram";
|
|
90
|
+
} | null;
|
|
82
91
|
defaultSidebarDockedPreference: boolean;
|
|
83
92
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
84
93
|
selectedElementIds: Readonly<{
|
|
@@ -75,7 +75,16 @@ export declare const actionToggleCanvasMenu: {
|
|
|
75
75
|
name: string;
|
|
76
76
|
tab?: string | undefined;
|
|
77
77
|
} | null;
|
|
78
|
-
openDialog:
|
|
78
|
+
openDialog: {
|
|
79
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
80
|
+
} | {
|
|
81
|
+
name: "settings";
|
|
82
|
+
source: "settings" | "tool" | "generation";
|
|
83
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
84
|
+
} | {
|
|
85
|
+
name: "ttd";
|
|
86
|
+
tab: "mermaid" | "text-to-diagram";
|
|
87
|
+
} | null;
|
|
79
88
|
defaultSidebarDockedPreference: boolean;
|
|
80
89
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
81
90
|
selectedElementIds: Readonly<{
|
|
@@ -207,7 +216,16 @@ export declare const actionToggleEditMenu: {
|
|
|
207
216
|
name: string;
|
|
208
217
|
tab?: string | undefined;
|
|
209
218
|
} | null;
|
|
210
|
-
openDialog:
|
|
219
|
+
openDialog: {
|
|
220
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
221
|
+
} | {
|
|
222
|
+
name: "settings";
|
|
223
|
+
source: "settings" | "tool" | "generation";
|
|
224
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
225
|
+
} | {
|
|
226
|
+
name: "ttd";
|
|
227
|
+
tab: "mermaid" | "text-to-diagram";
|
|
228
|
+
} | null;
|
|
211
229
|
defaultSidebarDockedPreference: boolean;
|
|
212
230
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
213
231
|
selectedElementIds: Readonly<{
|
|
@@ -271,7 +289,9 @@ export declare const actionShortcuts: {
|
|
|
271
289
|
};
|
|
272
290
|
perform: (_elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, { focusContainer }: import("../types").AppClassProperties) => {
|
|
273
291
|
appState: {
|
|
274
|
-
openDialog:
|
|
292
|
+
openDialog: {
|
|
293
|
+
name: "help";
|
|
294
|
+
} | null;
|
|
275
295
|
contextMenu: {
|
|
276
296
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
277
297
|
top: number;
|
|
@@ -94,7 +94,16 @@ export declare const actionChangeFillStyle: {
|
|
|
94
94
|
name: string;
|
|
95
95
|
tab?: string | undefined;
|
|
96
96
|
} | null;
|
|
97
|
-
openDialog:
|
|
97
|
+
openDialog: {
|
|
98
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
99
|
+
} | {
|
|
100
|
+
name: "settings";
|
|
101
|
+
source: "settings" | "tool" | "generation";
|
|
102
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
103
|
+
} | {
|
|
104
|
+
name: "ttd";
|
|
105
|
+
tab: "mermaid" | "text-to-diagram";
|
|
106
|
+
} | null;
|
|
98
107
|
defaultSidebarDockedPreference: boolean;
|
|
99
108
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
100
109
|
selectedElementIds: Readonly<{
|
|
@@ -225,7 +234,16 @@ export declare const actionChangeStrokeWidth: {
|
|
|
225
234
|
name: string;
|
|
226
235
|
tab?: string | undefined;
|
|
227
236
|
} | null;
|
|
228
|
-
openDialog:
|
|
237
|
+
openDialog: {
|
|
238
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
239
|
+
} | {
|
|
240
|
+
name: "settings";
|
|
241
|
+
source: "settings" | "tool" | "generation";
|
|
242
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
243
|
+
} | {
|
|
244
|
+
name: "ttd";
|
|
245
|
+
tab: "mermaid" | "text-to-diagram";
|
|
246
|
+
} | null;
|
|
229
247
|
defaultSidebarDockedPreference: boolean;
|
|
230
248
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
231
249
|
selectedElementIds: Readonly<{
|
|
@@ -356,7 +374,16 @@ export declare const actionChangeSloppiness: {
|
|
|
356
374
|
name: string;
|
|
357
375
|
tab?: string | undefined;
|
|
358
376
|
} | null;
|
|
359
|
-
openDialog:
|
|
377
|
+
openDialog: {
|
|
378
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
379
|
+
} | {
|
|
380
|
+
name: "settings";
|
|
381
|
+
source: "settings" | "tool" | "generation";
|
|
382
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
383
|
+
} | {
|
|
384
|
+
name: "ttd";
|
|
385
|
+
tab: "mermaid" | "text-to-diagram";
|
|
386
|
+
} | null;
|
|
360
387
|
defaultSidebarDockedPreference: boolean;
|
|
361
388
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
362
389
|
selectedElementIds: Readonly<{
|
|
@@ -487,7 +514,16 @@ export declare const actionChangeStrokeStyle: {
|
|
|
487
514
|
name: string;
|
|
488
515
|
tab?: string | undefined;
|
|
489
516
|
} | null;
|
|
490
|
-
openDialog:
|
|
517
|
+
openDialog: {
|
|
518
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
519
|
+
} | {
|
|
520
|
+
name: "settings";
|
|
521
|
+
source: "settings" | "tool" | "generation";
|
|
522
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
523
|
+
} | {
|
|
524
|
+
name: "ttd";
|
|
525
|
+
tab: "mermaid" | "text-to-diagram";
|
|
526
|
+
} | null;
|
|
491
527
|
defaultSidebarDockedPreference: boolean;
|
|
492
528
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
493
529
|
selectedElementIds: Readonly<{
|
|
@@ -618,7 +654,16 @@ export declare const actionChangeOpacity: {
|
|
|
618
654
|
name: string;
|
|
619
655
|
tab?: string | undefined;
|
|
620
656
|
} | null;
|
|
621
|
-
openDialog:
|
|
657
|
+
openDialog: {
|
|
658
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
659
|
+
} | {
|
|
660
|
+
name: "settings";
|
|
661
|
+
source: "settings" | "tool" | "generation";
|
|
662
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
663
|
+
} | {
|
|
664
|
+
name: "ttd";
|
|
665
|
+
tab: "mermaid" | "text-to-diagram";
|
|
666
|
+
} | null;
|
|
622
667
|
defaultSidebarDockedPreference: boolean;
|
|
623
668
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
624
669
|
selectedElementIds: Readonly<{
|
|
@@ -749,7 +794,16 @@ export declare const actionChangeFontSize: {
|
|
|
749
794
|
name: string;
|
|
750
795
|
tab?: string | undefined;
|
|
751
796
|
} | null;
|
|
752
|
-
openDialog:
|
|
797
|
+
openDialog: {
|
|
798
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
799
|
+
} | {
|
|
800
|
+
name: "settings";
|
|
801
|
+
source: "settings" | "tool" | "generation";
|
|
802
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
803
|
+
} | {
|
|
804
|
+
name: "ttd";
|
|
805
|
+
tab: "mermaid" | "text-to-diagram";
|
|
806
|
+
} | null;
|
|
753
807
|
defaultSidebarDockedPreference: boolean;
|
|
754
808
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
755
809
|
selectedElementIds: Readonly<{
|
|
@@ -880,7 +934,16 @@ export declare const actionDecreaseFontSize: {
|
|
|
880
934
|
name: string;
|
|
881
935
|
tab?: string | undefined;
|
|
882
936
|
} | null;
|
|
883
|
-
openDialog:
|
|
937
|
+
openDialog: {
|
|
938
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
939
|
+
} | {
|
|
940
|
+
name: "settings";
|
|
941
|
+
source: "settings" | "tool" | "generation";
|
|
942
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
943
|
+
} | {
|
|
944
|
+
name: "ttd";
|
|
945
|
+
tab: "mermaid" | "text-to-diagram";
|
|
946
|
+
} | null;
|
|
884
947
|
defaultSidebarDockedPreference: boolean;
|
|
885
948
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
886
949
|
selectedElementIds: Readonly<{
|
|
@@ -1011,7 +1074,16 @@ export declare const actionIncreaseFontSize: {
|
|
|
1011
1074
|
name: string;
|
|
1012
1075
|
tab?: string | undefined;
|
|
1013
1076
|
} | null;
|
|
1014
|
-
openDialog:
|
|
1077
|
+
openDialog: {
|
|
1078
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
1079
|
+
} | {
|
|
1080
|
+
name: "settings";
|
|
1081
|
+
source: "settings" | "tool" | "generation";
|
|
1082
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
1083
|
+
} | {
|
|
1084
|
+
name: "ttd";
|
|
1085
|
+
tab: "mermaid" | "text-to-diagram";
|
|
1086
|
+
} | null;
|
|
1015
1087
|
defaultSidebarDockedPreference: boolean;
|
|
1016
1088
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1017
1089
|
selectedElementIds: Readonly<{
|
|
@@ -1142,7 +1214,16 @@ export declare const actionChangeFontFamily: {
|
|
|
1142
1214
|
name: string;
|
|
1143
1215
|
tab?: string | undefined;
|
|
1144
1216
|
} | null;
|
|
1145
|
-
openDialog:
|
|
1217
|
+
openDialog: {
|
|
1218
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
1219
|
+
} | {
|
|
1220
|
+
name: "settings";
|
|
1221
|
+
source: "settings" | "tool" | "generation";
|
|
1222
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
1223
|
+
} | {
|
|
1224
|
+
name: "ttd";
|
|
1225
|
+
tab: "mermaid" | "text-to-diagram";
|
|
1226
|
+
} | null;
|
|
1146
1227
|
defaultSidebarDockedPreference: boolean;
|
|
1147
1228
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1148
1229
|
selectedElementIds: Readonly<{
|
|
@@ -1273,7 +1354,16 @@ export declare const actionChangeTextAlign: {
|
|
|
1273
1354
|
name: string;
|
|
1274
1355
|
tab?: string | undefined;
|
|
1275
1356
|
} | null;
|
|
1276
|
-
openDialog:
|
|
1357
|
+
openDialog: {
|
|
1358
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
1359
|
+
} | {
|
|
1360
|
+
name: "settings";
|
|
1361
|
+
source: "settings" | "tool" | "generation";
|
|
1362
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
1363
|
+
} | {
|
|
1364
|
+
name: "ttd";
|
|
1365
|
+
tab: "mermaid" | "text-to-diagram";
|
|
1366
|
+
} | null;
|
|
1277
1367
|
defaultSidebarDockedPreference: boolean;
|
|
1278
1368
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1279
1369
|
selectedElementIds: Readonly<{
|
|
@@ -1406,7 +1496,16 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1406
1496
|
name: string;
|
|
1407
1497
|
tab?: string | undefined;
|
|
1408
1498
|
} | null;
|
|
1409
|
-
openDialog:
|
|
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
|
selectedElementIds: Readonly<{
|
|
@@ -1537,7 +1636,16 @@ export declare const actionChangeRoundness: {
|
|
|
1537
1636
|
name: string;
|
|
1538
1637
|
tab?: string | undefined;
|
|
1539
1638
|
} | null;
|
|
1540
|
-
openDialog:
|
|
1639
|
+
openDialog: {
|
|
1640
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
1641
|
+
} | {
|
|
1642
|
+
name: "settings";
|
|
1643
|
+
source: "settings" | "tool" | "generation";
|
|
1644
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
1645
|
+
} | {
|
|
1646
|
+
name: "ttd";
|
|
1647
|
+
tab: "mermaid" | "text-to-diagram";
|
|
1648
|
+
} | null;
|
|
1541
1649
|
defaultSidebarDockedPreference: boolean;
|
|
1542
1650
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1543
1651
|
selectedElementIds: Readonly<{
|
|
@@ -1671,7 +1779,16 @@ export declare const actionChangeArrowhead: {
|
|
|
1671
1779
|
name: string;
|
|
1672
1780
|
tab?: string | undefined;
|
|
1673
1781
|
} | null;
|
|
1674
|
-
openDialog:
|
|
1782
|
+
openDialog: {
|
|
1783
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
1784
|
+
} | {
|
|
1785
|
+
name: "settings";
|
|
1786
|
+
source: "settings" | "tool" | "generation";
|
|
1787
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
1788
|
+
} | {
|
|
1789
|
+
name: "ttd";
|
|
1790
|
+
tab: "mermaid" | "text-to-diagram";
|
|
1791
|
+
} | null;
|
|
1675
1792
|
defaultSidebarDockedPreference: boolean;
|
|
1676
1793
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1677
1794
|
selectedElementIds: Readonly<{
|
|
@@ -85,7 +85,16 @@ export declare const actionSelectAll: {
|
|
|
85
85
|
name: string;
|
|
86
86
|
tab?: string | undefined;
|
|
87
87
|
} | null;
|
|
88
|
-
openDialog:
|
|
88
|
+
openDialog: {
|
|
89
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
90
|
+
} | {
|
|
91
|
+
name: "settings";
|
|
92
|
+
source: "settings" | "tool" | "generation";
|
|
93
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
94
|
+
} | {
|
|
95
|
+
name: "ttd";
|
|
96
|
+
tab: "mermaid" | "text-to-diagram";
|
|
97
|
+
} | null;
|
|
89
98
|
defaultSidebarDockedPreference: boolean;
|
|
90
99
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
91
100
|
previousSelectedElementIds: {
|
|
@@ -79,7 +79,16 @@ export declare const actionCopyStyles: {
|
|
|
79
79
|
name: string;
|
|
80
80
|
tab?: string | undefined;
|
|
81
81
|
} | null;
|
|
82
|
-
openDialog:
|
|
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<{
|
|
@@ -80,7 +80,16 @@ export declare const actionToggleGridMode: {
|
|
|
80
80
|
name: string;
|
|
81
81
|
tab?: string | undefined;
|
|
82
82
|
} | null;
|
|
83
|
-
openDialog:
|
|
83
|
+
openDialog: {
|
|
84
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
85
|
+
} | {
|
|
86
|
+
name: "settings";
|
|
87
|
+
source: "settings" | "tool" | "generation";
|
|
88
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
89
|
+
} | {
|
|
90
|
+
name: "ttd";
|
|
91
|
+
tab: "mermaid" | "text-to-diagram";
|
|
92
|
+
} | null;
|
|
84
93
|
defaultSidebarDockedPreference: boolean;
|
|
85
94
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
86
95
|
selectedElementIds: Readonly<{
|
|
@@ -79,7 +79,16 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
79
79
|
name: string;
|
|
80
80
|
tab?: string | undefined;
|
|
81
81
|
} | null;
|
|
82
|
-
openDialog:
|
|
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<{
|
|
@@ -77,7 +77,16 @@ export declare const actionToggleStats: {
|
|
|
77
77
|
name: string;
|
|
78
78
|
tab?: string | undefined;
|
|
79
79
|
} | null;
|
|
80
|
-
openDialog:
|
|
80
|
+
openDialog: {
|
|
81
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
82
|
+
} | {
|
|
83
|
+
name: "settings";
|
|
84
|
+
source: "settings" | "tool" | "generation";
|
|
85
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
86
|
+
} | {
|
|
87
|
+
name: "ttd";
|
|
88
|
+
tab: "mermaid" | "text-to-diagram";
|
|
89
|
+
} | null;
|
|
81
90
|
defaultSidebarDockedPreference: boolean;
|
|
82
91
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
83
92
|
selectedElementIds: Readonly<{
|
|
@@ -78,7 +78,16 @@ export declare const actionToggleViewMode: {
|
|
|
78
78
|
name: string;
|
|
79
79
|
tab?: string | undefined;
|
|
80
80
|
} | null;
|
|
81
|
-
openDialog:
|
|
81
|
+
openDialog: {
|
|
82
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
83
|
+
} | {
|
|
84
|
+
name: "settings";
|
|
85
|
+
source: "settings" | "tool" | "generation";
|
|
86
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
87
|
+
} | {
|
|
88
|
+
name: "ttd";
|
|
89
|
+
tab: "mermaid" | "text-to-diagram";
|
|
90
|
+
} | null;
|
|
82
91
|
defaultSidebarDockedPreference: boolean;
|
|
83
92
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
84
93
|
selectedElementIds: Readonly<{
|
|
@@ -78,7 +78,16 @@ export declare const actionToggleZenMode: {
|
|
|
78
78
|
name: string;
|
|
79
79
|
tab?: string | undefined;
|
|
80
80
|
} | null;
|
|
81
|
-
openDialog:
|
|
81
|
+
openDialog: {
|
|
82
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
83
|
+
} | {
|
|
84
|
+
name: "settings";
|
|
85
|
+
source: "settings" | "tool" | "generation";
|
|
86
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
87
|
+
} | {
|
|
88
|
+
name: "ttd";
|
|
89
|
+
tab: "mermaid" | "text-to-diagram";
|
|
90
|
+
} | null;
|
|
82
91
|
defaultSidebarDockedPreference: boolean;
|
|
83
92
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
84
93
|
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
|
-
|
|
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.
|
|
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 */
|
|
@@ -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,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: "text-to-diagram" | "mermaid";
|
|
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 {};
|