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/vue/index.d.ts
CHANGED
|
@@ -42,6 +42,7 @@ export function provideArtifactuse(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 provideArtifactuse(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 provideArtifactuse(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 provideArtifactuse(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 provideArtifactuse(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;
|
|
@@ -190,6 +181,7 @@ export function provideArtifactuse(config?: {
|
|
|
190
181
|
isFullscreen: boolean;
|
|
191
182
|
openTabs: any[];
|
|
192
183
|
tabViewModes: {};
|
|
184
|
+
forceEmptyView: boolean;
|
|
193
185
|
};
|
|
194
186
|
activeArtifact: import("vue").ComputedRef<any>;
|
|
195
187
|
artifactCount: import("vue").ComputedRef<number>;
|
|
@@ -202,20 +194,7 @@ export function provideArtifactuse(config?: {
|
|
|
202
194
|
};
|
|
203
195
|
initializeContent: (container?: Document) => Promise<void>;
|
|
204
196
|
openArtifact: (artifact: any) => void;
|
|
205
|
-
openFile: (filename: any, code: any, options?: {}) =>
|
|
206
|
-
id: string;
|
|
207
|
-
messageId: string;
|
|
208
|
-
type: string;
|
|
209
|
-
language: string;
|
|
210
|
-
title: any;
|
|
211
|
-
code: string;
|
|
212
|
-
isInline: boolean;
|
|
213
|
-
isPreviewable: boolean;
|
|
214
|
-
isPanelArtifact: boolean;
|
|
215
|
-
size: number;
|
|
216
|
-
lineCount: number;
|
|
217
|
-
createdAt: string;
|
|
218
|
-
};
|
|
197
|
+
openFile: (filename: any, code: any, options?: {}) => any;
|
|
219
198
|
openCode: (code: any, language: any, options?: {}) => {
|
|
220
199
|
id: string;
|
|
221
200
|
messageId: string;
|
|
@@ -231,6 +210,7 @@ export function provideArtifactuse(config?: {
|
|
|
231
210
|
createdAt: string;
|
|
232
211
|
};
|
|
233
212
|
updateFile: (artifactOrId: any, code: any, options?: {}) => any;
|
|
213
|
+
openPanel: () => void;
|
|
234
214
|
closePanel: () => void;
|
|
235
215
|
togglePanel: () => void;
|
|
236
216
|
toggleFullscreen: () => void;
|
|
@@ -270,6 +250,7 @@ export function createArtifactuseComposable(config?: {}): {
|
|
|
270
250
|
isFullscreen: boolean;
|
|
271
251
|
openTabs: any[];
|
|
272
252
|
tabViewModes: {};
|
|
253
|
+
forceEmptyView: boolean;
|
|
273
254
|
};
|
|
274
255
|
subscribe: (callback: any) => () => void;
|
|
275
256
|
addArtifact: (artifact: any) => void;
|
|
@@ -285,6 +266,7 @@ export function createArtifactuseComposable(config?: {}): {
|
|
|
285
266
|
setPanelOpen: (isOpen: any) => void;
|
|
286
267
|
setViewMode: (mode: any) => void;
|
|
287
268
|
setFullscreen: (isFullscreen: any) => void;
|
|
269
|
+
setForceEmptyView: (value: any) => void;
|
|
288
270
|
openTab: (artifactId: any) => void;
|
|
289
271
|
closeTab: (artifactId: any) => void;
|
|
290
272
|
closeOtherTabs: (keepArtifactId: any) => void;
|
|
@@ -300,6 +282,7 @@ export function createArtifactuseComposable(config?: {}): {
|
|
|
300
282
|
isFullscreen: boolean;
|
|
301
283
|
openTabs: any[];
|
|
302
284
|
tabViewModes: {};
|
|
285
|
+
forceEmptyView: boolean;
|
|
303
286
|
};
|
|
304
287
|
subscribe: (callback: any) => () => void;
|
|
305
288
|
processMessage: (content: any, messageId: any, overrides?: {}) => {
|
|
@@ -308,20 +291,7 @@ export function createArtifactuseComposable(config?: {}): {
|
|
|
308
291
|
};
|
|
309
292
|
initializeContent: (container?: Document) => Promise<void>;
|
|
310
293
|
openArtifact: (artifact: any) => void;
|
|
311
|
-
openFile: (filename: any, code: any, options?: {}) =>
|
|
312
|
-
id: string;
|
|
313
|
-
messageId: string;
|
|
314
|
-
type: string;
|
|
315
|
-
language: string;
|
|
316
|
-
title: any;
|
|
317
|
-
code: string;
|
|
318
|
-
isInline: boolean;
|
|
319
|
-
isPreviewable: boolean;
|
|
320
|
-
isPanelArtifact: boolean;
|
|
321
|
-
size: number;
|
|
322
|
-
lineCount: number;
|
|
323
|
-
createdAt: string;
|
|
324
|
-
};
|
|
294
|
+
openFile: (filename: any, code: any, options?: {}) => any;
|
|
325
295
|
openCode: (code: any, language: any, options?: {}) => {
|
|
326
296
|
id: string;
|
|
327
297
|
messageId: string;
|
|
@@ -337,6 +307,7 @@ export function createArtifactuseComposable(config?: {}): {
|
|
|
337
307
|
createdAt: string;
|
|
338
308
|
};
|
|
339
309
|
updateFile: (artifactOrId: any, code: any, options?: {}) => any;
|
|
310
|
+
openPanel: () => void;
|
|
340
311
|
closePanel: () => void;
|
|
341
312
|
togglePanel: () => void;
|
|
342
313
|
toggleFullscreen: () => void;
|
|
@@ -418,6 +389,7 @@ export function createArtifactuseComposable(config?: {}): {
|
|
|
418
389
|
isFullscreen: boolean;
|
|
419
390
|
openTabs: any[];
|
|
420
391
|
tabViewModes: {};
|
|
392
|
+
forceEmptyView: boolean;
|
|
421
393
|
};
|
|
422
394
|
activeArtifact: import("vue").ComputedRef<any>;
|
|
423
395
|
artifactCount: import("vue").ComputedRef<number>;
|
|
@@ -430,20 +402,7 @@ export function createArtifactuseComposable(config?: {}): {
|
|
|
430
402
|
};
|
|
431
403
|
initializeContent: (container?: Document) => Promise<void>;
|
|
432
404
|
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
|
-
};
|
|
405
|
+
openFile: (filename: any, code: any, options?: {}) => any;
|
|
447
406
|
openCode: (code: any, language: any, options?: {}) => {
|
|
448
407
|
id: string;
|
|
449
408
|
messageId: string;
|
|
@@ -459,6 +418,7 @@ export function createArtifactuseComposable(config?: {}): {
|
|
|
459
418
|
createdAt: string;
|
|
460
419
|
};
|
|
461
420
|
updateFile: (artifactOrId: any, code: any, options?: {}) => any;
|
|
421
|
+
openPanel: () => void;
|
|
462
422
|
closePanel: () => void;
|
|
463
423
|
togglePanel: () => void;
|
|
464
424
|
toggleFullscreen: () => void;
|