artifactuse 0.2.2 → 0.2.4
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/README.md +1 -0
- package/dist/core/index.d.ts +5 -14
- package/dist/core/state.d.ts +2 -0
- package/dist/{index-INYOxlcg.js → index-C_15PkcN.js} +1215 -1202
- package/dist/index.js +1 -1
- package/dist/react/index.js +392 -389
- package/dist/svelte/index.d.ts +21 -84
- package/dist/svelte/index.js +1436 -1415
- package/dist/vue/index.d.ts +16 -56
- package/dist/vue/index.js +1143 -1129
- package/dist/vue2/composables.d.ts +16 -56
- package/dist/vue2/index.js +289 -166
- package/package.json +1 -1
package/dist/svelte/index.d.ts
CHANGED
|
@@ -42,6 +42,7 @@ export function createArtifactuseStores(config?: {
|
|
|
42
42
|
isFullscreen: boolean;
|
|
43
43
|
openTabs: any[];
|
|
44
44
|
tabViewModes: {};
|
|
45
|
+
forceEmptyView: boolean;
|
|
45
46
|
};
|
|
46
47
|
subscribe: (callback: any) => () => void;
|
|
47
48
|
addArtifact: (artifact: any) => void;
|
|
@@ -57,6 +58,7 @@ export function createArtifactuseStores(config?: {
|
|
|
57
58
|
setPanelOpen: (isOpen: any) => void;
|
|
58
59
|
setViewMode: (mode: any) => void;
|
|
59
60
|
setFullscreen: (isFullscreen: any) => void;
|
|
61
|
+
setForceEmptyView: (value: any) => void;
|
|
60
62
|
openTab: (artifactId: any) => void;
|
|
61
63
|
closeTab: (artifactId: any) => void;
|
|
62
64
|
closeOtherTabs: (keepArtifactId: any) => void;
|
|
@@ -72,6 +74,7 @@ export function createArtifactuseStores(config?: {
|
|
|
72
74
|
isFullscreen: boolean;
|
|
73
75
|
openTabs: any[];
|
|
74
76
|
tabViewModes: {};
|
|
77
|
+
forceEmptyView: boolean;
|
|
75
78
|
};
|
|
76
79
|
subscribe: (callback: any) => () => void;
|
|
77
80
|
processMessage: (content: any, messageId: any, overrides?: {}) => {
|
|
@@ -80,20 +83,7 @@ export function createArtifactuseStores(config?: {
|
|
|
80
83
|
};
|
|
81
84
|
initializeContent: (container?: Document) => Promise<void>;
|
|
82
85
|
openArtifact: (artifact: any) => void;
|
|
83
|
-
openFile: (filename: any, code: any, options?: {}) =>
|
|
84
|
-
id: string;
|
|
85
|
-
messageId: string;
|
|
86
|
-
type: string;
|
|
87
|
-
language: string;
|
|
88
|
-
title: any;
|
|
89
|
-
code: string;
|
|
90
|
-
isInline: boolean;
|
|
91
|
-
isPreviewable: boolean;
|
|
92
|
-
isPanelArtifact: boolean;
|
|
93
|
-
size: number;
|
|
94
|
-
lineCount: number;
|
|
95
|
-
createdAt: string;
|
|
96
|
-
};
|
|
86
|
+
openFile: (filename: any, code: any, options?: {}) => any;
|
|
97
87
|
openCode: (code: any, language: any, options?: {}) => {
|
|
98
88
|
id: string;
|
|
99
89
|
messageId: string;
|
|
@@ -109,6 +99,7 @@ export function createArtifactuseStores(config?: {
|
|
|
109
99
|
createdAt: string;
|
|
110
100
|
};
|
|
111
101
|
updateFile: (artifactOrId: any, code: any, options?: {}) => any;
|
|
102
|
+
openPanel: () => void;
|
|
112
103
|
closePanel: () => void;
|
|
113
104
|
togglePanel: () => void;
|
|
114
105
|
toggleFullscreen: () => void;
|
|
@@ -198,20 +189,7 @@ export function createArtifactuseStores(config?: {
|
|
|
198
189
|
};
|
|
199
190
|
initializeContent: (container?: Document) => Promise<void>;
|
|
200
191
|
openArtifact: (artifact: any) => void;
|
|
201
|
-
openFile: (filename: any, code: any, options?: {}) =>
|
|
202
|
-
id: string;
|
|
203
|
-
messageId: string;
|
|
204
|
-
type: string;
|
|
205
|
-
language: string;
|
|
206
|
-
title: any;
|
|
207
|
-
code: string;
|
|
208
|
-
isInline: boolean;
|
|
209
|
-
isPreviewable: boolean;
|
|
210
|
-
isPanelArtifact: boolean;
|
|
211
|
-
size: number;
|
|
212
|
-
lineCount: number;
|
|
213
|
-
createdAt: string;
|
|
214
|
-
};
|
|
192
|
+
openFile: (filename: any, code: any, options?: {}) => any;
|
|
215
193
|
openCode: (code: any, language: any, options?: {}) => {
|
|
216
194
|
id: string;
|
|
217
195
|
messageId: string;
|
|
@@ -227,6 +205,7 @@ export function createArtifactuseStores(config?: {
|
|
|
227
205
|
createdAt: string;
|
|
228
206
|
};
|
|
229
207
|
updateFile: (artifactOrId: any, code: any, options?: {}) => any;
|
|
208
|
+
openPanel: () => void;
|
|
230
209
|
closePanel: () => void;
|
|
231
210
|
togglePanel: () => void;
|
|
232
211
|
toggleFullscreen: () => void;
|
|
@@ -274,6 +253,7 @@ export function setArtifactuseContext(config?: {}): {
|
|
|
274
253
|
isFullscreen: boolean;
|
|
275
254
|
openTabs: any[];
|
|
276
255
|
tabViewModes: {};
|
|
256
|
+
forceEmptyView: boolean;
|
|
277
257
|
};
|
|
278
258
|
subscribe: (callback: any) => () => void;
|
|
279
259
|
addArtifact: (artifact: any) => void;
|
|
@@ -289,6 +269,7 @@ export function setArtifactuseContext(config?: {}): {
|
|
|
289
269
|
setPanelOpen: (isOpen: any) => void;
|
|
290
270
|
setViewMode: (mode: any) => void;
|
|
291
271
|
setFullscreen: (isFullscreen: any) => void;
|
|
272
|
+
setForceEmptyView: (value: any) => void;
|
|
292
273
|
openTab: (artifactId: any) => void;
|
|
293
274
|
closeTab: (artifactId: any) => void;
|
|
294
275
|
closeOtherTabs: (keepArtifactId: any) => void;
|
|
@@ -304,6 +285,7 @@ export function setArtifactuseContext(config?: {}): {
|
|
|
304
285
|
isFullscreen: boolean;
|
|
305
286
|
openTabs: any[];
|
|
306
287
|
tabViewModes: {};
|
|
288
|
+
forceEmptyView: boolean;
|
|
307
289
|
};
|
|
308
290
|
subscribe: (callback: any) => () => void;
|
|
309
291
|
processMessage: (content: any, messageId: any, overrides?: {}) => {
|
|
@@ -312,20 +294,7 @@ export function setArtifactuseContext(config?: {}): {
|
|
|
312
294
|
};
|
|
313
295
|
initializeContent: (container?: Document) => Promise<void>;
|
|
314
296
|
openArtifact: (artifact: any) => void;
|
|
315
|
-
openFile: (filename: any, code: any, options?: {}) =>
|
|
316
|
-
id: string;
|
|
317
|
-
messageId: string;
|
|
318
|
-
type: string;
|
|
319
|
-
language: string;
|
|
320
|
-
title: any;
|
|
321
|
-
code: string;
|
|
322
|
-
isInline: boolean;
|
|
323
|
-
isPreviewable: boolean;
|
|
324
|
-
isPanelArtifact: boolean;
|
|
325
|
-
size: number;
|
|
326
|
-
lineCount: number;
|
|
327
|
-
createdAt: string;
|
|
328
|
-
};
|
|
297
|
+
openFile: (filename: any, code: any, options?: {}) => any;
|
|
329
298
|
openCode: (code: any, language: any, options?: {}) => {
|
|
330
299
|
id: string;
|
|
331
300
|
messageId: string;
|
|
@@ -341,6 +310,7 @@ export function setArtifactuseContext(config?: {}): {
|
|
|
341
310
|
createdAt: string;
|
|
342
311
|
};
|
|
343
312
|
updateFile: (artifactOrId: any, code: any, options?: {}) => any;
|
|
313
|
+
openPanel: () => void;
|
|
344
314
|
closePanel: () => void;
|
|
345
315
|
togglePanel: () => void;
|
|
346
316
|
toggleFullscreen: () => void;
|
|
@@ -430,20 +400,7 @@ export function setArtifactuseContext(config?: {}): {
|
|
|
430
400
|
};
|
|
431
401
|
initializeContent: (container?: Document) => Promise<void>;
|
|
432
402
|
openArtifact: (artifact: any) => void;
|
|
433
|
-
openFile: (filename: any, code: any, options?: {}) =>
|
|
434
|
-
id: string;
|
|
435
|
-
messageId: string;
|
|
436
|
-
type: string;
|
|
437
|
-
language: string;
|
|
438
|
-
title: any;
|
|
439
|
-
code: string;
|
|
440
|
-
isInline: boolean;
|
|
441
|
-
isPreviewable: boolean;
|
|
442
|
-
isPanelArtifact: boolean;
|
|
443
|
-
size: number;
|
|
444
|
-
lineCount: number;
|
|
445
|
-
createdAt: string;
|
|
446
|
-
};
|
|
403
|
+
openFile: (filename: any, code: any, options?: {}) => any;
|
|
447
404
|
openCode: (code: any, language: any, options?: {}) => {
|
|
448
405
|
id: string;
|
|
449
406
|
messageId: string;
|
|
@@ -459,6 +416,7 @@ export function setArtifactuseContext(config?: {}): {
|
|
|
459
416
|
createdAt: string;
|
|
460
417
|
};
|
|
461
418
|
updateFile: (artifactOrId: any, code: any, options?: {}) => any;
|
|
419
|
+
openPanel: () => void;
|
|
462
420
|
closePanel: () => void;
|
|
463
421
|
togglePanel: () => void;
|
|
464
422
|
toggleFullscreen: () => void;
|
|
@@ -499,6 +457,7 @@ export function useArtifactuse(config?: {}): {
|
|
|
499
457
|
isFullscreen: boolean;
|
|
500
458
|
openTabs: any[];
|
|
501
459
|
tabViewModes: {};
|
|
460
|
+
forceEmptyView: boolean;
|
|
502
461
|
};
|
|
503
462
|
subscribe: (callback: any) => () => void;
|
|
504
463
|
addArtifact: (artifact: any) => void;
|
|
@@ -514,6 +473,7 @@ export function useArtifactuse(config?: {}): {
|
|
|
514
473
|
setPanelOpen: (isOpen: any) => void;
|
|
515
474
|
setViewMode: (mode: any) => void;
|
|
516
475
|
setFullscreen: (isFullscreen: any) => void;
|
|
476
|
+
setForceEmptyView: (value: any) => void;
|
|
517
477
|
openTab: (artifactId: any) => void;
|
|
518
478
|
closeTab: (artifactId: any) => void;
|
|
519
479
|
closeOtherTabs: (keepArtifactId: any) => void;
|
|
@@ -529,6 +489,7 @@ export function useArtifactuse(config?: {}): {
|
|
|
529
489
|
isFullscreen: boolean;
|
|
530
490
|
openTabs: any[];
|
|
531
491
|
tabViewModes: {};
|
|
492
|
+
forceEmptyView: boolean;
|
|
532
493
|
};
|
|
533
494
|
subscribe: (callback: any) => () => void;
|
|
534
495
|
processMessage: (content: any, messageId: any, overrides?: {}) => {
|
|
@@ -537,20 +498,7 @@ export function useArtifactuse(config?: {}): {
|
|
|
537
498
|
};
|
|
538
499
|
initializeContent: (container?: Document) => Promise<void>;
|
|
539
500
|
openArtifact: (artifact: any) => void;
|
|
540
|
-
openFile: (filename: any, code: any, options?: {}) =>
|
|
541
|
-
id: string;
|
|
542
|
-
messageId: string;
|
|
543
|
-
type: string;
|
|
544
|
-
language: string;
|
|
545
|
-
title: any;
|
|
546
|
-
code: string;
|
|
547
|
-
isInline: boolean;
|
|
548
|
-
isPreviewable: boolean;
|
|
549
|
-
isPanelArtifact: boolean;
|
|
550
|
-
size: number;
|
|
551
|
-
lineCount: number;
|
|
552
|
-
createdAt: string;
|
|
553
|
-
};
|
|
501
|
+
openFile: (filename: any, code: any, options?: {}) => any;
|
|
554
502
|
openCode: (code: any, language: any, options?: {}) => {
|
|
555
503
|
id: string;
|
|
556
504
|
messageId: string;
|
|
@@ -566,6 +514,7 @@ export function useArtifactuse(config?: {}): {
|
|
|
566
514
|
createdAt: string;
|
|
567
515
|
};
|
|
568
516
|
updateFile: (artifactOrId: any, code: any, options?: {}) => any;
|
|
517
|
+
openPanel: () => void;
|
|
569
518
|
closePanel: () => void;
|
|
570
519
|
togglePanel: () => void;
|
|
571
520
|
toggleFullscreen: () => void;
|
|
@@ -655,20 +604,7 @@ export function useArtifactuse(config?: {}): {
|
|
|
655
604
|
};
|
|
656
605
|
initializeContent: (container?: Document) => Promise<void>;
|
|
657
606
|
openArtifact: (artifact: any) => void;
|
|
658
|
-
openFile: (filename: any, code: any, options?: {}) =>
|
|
659
|
-
id: string;
|
|
660
|
-
messageId: string;
|
|
661
|
-
type: string;
|
|
662
|
-
language: string;
|
|
663
|
-
title: any;
|
|
664
|
-
code: string;
|
|
665
|
-
isInline: boolean;
|
|
666
|
-
isPreviewable: boolean;
|
|
667
|
-
isPanelArtifact: boolean;
|
|
668
|
-
size: number;
|
|
669
|
-
lineCount: number;
|
|
670
|
-
createdAt: string;
|
|
671
|
-
};
|
|
607
|
+
openFile: (filename: any, code: any, options?: {}) => any;
|
|
672
608
|
openCode: (code: any, language: any, options?: {}) => {
|
|
673
609
|
id: string;
|
|
674
610
|
messageId: string;
|
|
@@ -684,6 +620,7 @@ export function useArtifactuse(config?: {}): {
|
|
|
684
620
|
createdAt: string;
|
|
685
621
|
};
|
|
686
622
|
updateFile: (artifactOrId: any, code: any, options?: {}) => any;
|
|
623
|
+
openPanel: () => void;
|
|
687
624
|
closePanel: () => void;
|
|
688
625
|
togglePanel: () => void;
|
|
689
626
|
toggleFullscreen: () => void;
|