artifactuse 0.1.21 → 0.1.22

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.
@@ -72,6 +72,34 @@ export function provideArtifactuse(config?: {
72
72
  };
73
73
  initializeContent: (container?: Document) => Promise<void>;
74
74
  openArtifact: (artifact: any) => void;
75
+ openFile: (filename: any, code: any, options?: {}) => {
76
+ id: string;
77
+ messageId: string;
78
+ type: string;
79
+ language: string;
80
+ title: any;
81
+ code: string;
82
+ isInline: boolean;
83
+ isPreviewable: boolean;
84
+ isPanelArtifact: boolean;
85
+ size: number;
86
+ lineCount: number;
87
+ createdAt: string;
88
+ };
89
+ openCode: (code: any, language: any, options?: {}) => {
90
+ id: string;
91
+ messageId: string;
92
+ type: string;
93
+ language: string;
94
+ title: any;
95
+ code: string;
96
+ isInline: boolean;
97
+ isPreviewable: boolean;
98
+ isPanelArtifact: boolean;
99
+ size: number;
100
+ lineCount: number;
101
+ createdAt: string;
102
+ };
75
103
  closePanel: () => void;
76
104
  togglePanel: () => void;
77
105
  toggleFullscreen: () => void;
@@ -103,6 +131,7 @@ export function provideArtifactuse(config?: {
103
131
  on: (event: any, callback: any) => () => void;
104
132
  off: (event: any, callback: any) => void;
105
133
  emit: (event: any, data: any) => void;
134
+ editor: any;
106
135
  bridge: {
107
136
  setIframe: (iframe: any) => void;
108
137
  send: (action: string, data: any, requestId?: string, targetOrigin?: string) => string;
@@ -159,6 +188,34 @@ export function provideArtifactuse(config?: {
159
188
  };
160
189
  initializeContent: (container?: Document) => Promise<void>;
161
190
  openArtifact: (artifact: any) => void;
191
+ openFile: (filename: any, code: any, options?: {}) => {
192
+ id: string;
193
+ messageId: string;
194
+ type: string;
195
+ language: string;
196
+ title: any;
197
+ code: string;
198
+ isInline: boolean;
199
+ isPreviewable: boolean;
200
+ isPanelArtifact: boolean;
201
+ size: number;
202
+ lineCount: number;
203
+ createdAt: string;
204
+ };
205
+ openCode: (code: any, language: 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
+ };
162
219
  closePanel: () => void;
163
220
  togglePanel: () => void;
164
221
  toggleFullscreen: () => void;
@@ -225,6 +282,34 @@ export function createArtifactuseComposable(config?: {}): {
225
282
  };
226
283
  initializeContent: (container?: Document) => Promise<void>;
227
284
  openArtifact: (artifact: any) => void;
285
+ openFile: (filename: any, code: any, options?: {}) => {
286
+ id: string;
287
+ messageId: string;
288
+ type: string;
289
+ language: string;
290
+ title: any;
291
+ code: string;
292
+ isInline: boolean;
293
+ isPreviewable: boolean;
294
+ isPanelArtifact: boolean;
295
+ size: number;
296
+ lineCount: number;
297
+ createdAt: string;
298
+ };
299
+ openCode: (code: any, language: any, options?: {}) => {
300
+ id: string;
301
+ messageId: string;
302
+ type: string;
303
+ language: string;
304
+ title: any;
305
+ code: string;
306
+ isInline: boolean;
307
+ isPreviewable: boolean;
308
+ isPanelArtifact: boolean;
309
+ size: number;
310
+ lineCount: number;
311
+ createdAt: string;
312
+ };
228
313
  closePanel: () => void;
229
314
  togglePanel: () => void;
230
315
  toggleFullscreen: () => void;
@@ -256,6 +341,7 @@ export function createArtifactuseComposable(config?: {}): {
256
341
  on: (event: any, callback: any) => () => void;
257
342
  off: (event: any, callback: any) => void;
258
343
  emit: (event: any, data: any) => void;
344
+ editor: any;
259
345
  bridge: {
260
346
  setIframe: (iframe: any) => void;
261
347
  send: (action: string, data: any, requestId?: string, targetOrigin?: string) => string;
@@ -312,6 +398,34 @@ export function createArtifactuseComposable(config?: {}): {
312
398
  };
313
399
  initializeContent: (container?: Document) => Promise<void>;
314
400
  openArtifact: (artifact: any) => void;
401
+ openFile: (filename: any, code: any, options?: {}) => {
402
+ id: string;
403
+ messageId: string;
404
+ type: string;
405
+ language: string;
406
+ title: any;
407
+ code: string;
408
+ isInline: boolean;
409
+ isPreviewable: boolean;
410
+ isPanelArtifact: boolean;
411
+ size: number;
412
+ lineCount: number;
413
+ createdAt: string;
414
+ };
415
+ openCode: (code: any, language: any, options?: {}) => {
416
+ id: string;
417
+ messageId: string;
418
+ type: string;
419
+ language: string;
420
+ title: any;
421
+ code: string;
422
+ isInline: boolean;
423
+ isPreviewable: boolean;
424
+ isPanelArtifact: boolean;
425
+ size: number;
426
+ lineCount: number;
427
+ createdAt: string;
428
+ };
315
429
  closePanel: () => void;
316
430
  togglePanel: () => void;
317
431
  toggleFullscreen: () => void;