artifactuse 0.2.0 → 0.2.3
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 +15 -0
- package/dist/core/state.d.ts +8 -0
- package/dist/{index-llShix6s.js → index-B4BEvWtI.js} +1202 -962
- package/dist/index.js +1 -1
- package/dist/react/index.js +533 -511
- package/dist/styles/components/panel.css +106 -0
- package/dist/svelte/index.d.ts +57 -0
- package/dist/svelte/index.js +1897 -1836
- package/dist/vue/index.d.ts +44 -0
- package/dist/vue/index.js +1450 -1369
- package/dist/vue2/composables.d.ts +44 -0
- package/dist/vue2/index.js +653 -86
- package/package.json +1 -1
package/dist/vue/index.d.ts
CHANGED
|
@@ -40,6 +40,9 @@ export function provideArtifactuse(config?: {
|
|
|
40
40
|
isPanelOpen: boolean;
|
|
41
41
|
viewMode: string;
|
|
42
42
|
isFullscreen: boolean;
|
|
43
|
+
openTabs: any[];
|
|
44
|
+
tabViewModes: {};
|
|
45
|
+
forceEmptyView: boolean;
|
|
43
46
|
};
|
|
44
47
|
subscribe: (callback: any) => () => void;
|
|
45
48
|
addArtifact: (artifact: any) => void;
|
|
@@ -55,6 +58,11 @@ export function provideArtifactuse(config?: {
|
|
|
55
58
|
setPanelOpen: (isOpen: any) => void;
|
|
56
59
|
setViewMode: (mode: any) => void;
|
|
57
60
|
setFullscreen: (isFullscreen: any) => void;
|
|
61
|
+
setForceEmptyView: (value: any) => void;
|
|
62
|
+
openTab: (artifactId: any) => void;
|
|
63
|
+
closeTab: (artifactId: any) => void;
|
|
64
|
+
closeOtherTabs: (keepArtifactId: any) => void;
|
|
65
|
+
closeAllTabs: () => void;
|
|
58
66
|
clear: () => void;
|
|
59
67
|
batch: (updateFn: any) => void;
|
|
60
68
|
};
|
|
@@ -64,6 +72,9 @@ export function provideArtifactuse(config?: {
|
|
|
64
72
|
isPanelOpen: boolean;
|
|
65
73
|
viewMode: string;
|
|
66
74
|
isFullscreen: boolean;
|
|
75
|
+
openTabs: any[];
|
|
76
|
+
tabViewModes: {};
|
|
77
|
+
forceEmptyView: boolean;
|
|
67
78
|
};
|
|
68
79
|
subscribe: (callback: any) => () => void;
|
|
69
80
|
processMessage: (content: any, messageId: any, overrides?: {}) => {
|
|
@@ -101,12 +112,16 @@ export function provideArtifactuse(config?: {
|
|
|
101
112
|
createdAt: string;
|
|
102
113
|
};
|
|
103
114
|
updateFile: (artifactOrId: any, code: any, options?: {}) => any;
|
|
115
|
+
openPanel: () => void;
|
|
104
116
|
closePanel: () => void;
|
|
105
117
|
togglePanel: () => void;
|
|
106
118
|
toggleFullscreen: () => void;
|
|
107
119
|
setViewMode: (mode: any) => void;
|
|
108
120
|
getPanelUrl: (artifact: any, options?: {}) => any;
|
|
109
121
|
sendToPanel: (action: any, data: any) => void;
|
|
122
|
+
closeTab: (artifactId: any) => void;
|
|
123
|
+
closeOtherTabs: (artifactId: any) => void;
|
|
124
|
+
closeAllTabs: () => void;
|
|
110
125
|
hasPanel: (artifact: any) => any;
|
|
111
126
|
registerPanel: (typesOrLang: string | string[], panel: string | object) => void;
|
|
112
127
|
unregisterPanel: (typesOrLang: string | string[]) => void;
|
|
@@ -177,6 +192,9 @@ export function provideArtifactuse(config?: {
|
|
|
177
192
|
isPanelOpen: boolean;
|
|
178
193
|
viewMode: string;
|
|
179
194
|
isFullscreen: boolean;
|
|
195
|
+
openTabs: any[];
|
|
196
|
+
tabViewModes: {};
|
|
197
|
+
forceEmptyView: boolean;
|
|
180
198
|
};
|
|
181
199
|
activeArtifact: import("vue").ComputedRef<any>;
|
|
182
200
|
artifactCount: import("vue").ComputedRef<number>;
|
|
@@ -218,6 +236,7 @@ export function provideArtifactuse(config?: {
|
|
|
218
236
|
createdAt: string;
|
|
219
237
|
};
|
|
220
238
|
updateFile: (artifactOrId: any, code: any, options?: {}) => any;
|
|
239
|
+
openPanel: () => void;
|
|
221
240
|
closePanel: () => void;
|
|
222
241
|
togglePanel: () => void;
|
|
223
242
|
toggleFullscreen: () => void;
|
|
@@ -228,6 +247,9 @@ export function provideArtifactuse(config?: {
|
|
|
228
247
|
registerPanel: (typesOrLang: string | string[], panel: string | object) => void;
|
|
229
248
|
unregisterPanel: (typesOrLang: string | string[]) => void;
|
|
230
249
|
getPanelTypes: () => any;
|
|
250
|
+
closeTab: (artifactId: any) => void;
|
|
251
|
+
closeOtherTabs: (artifactId: any) => void;
|
|
252
|
+
closeAllTabs: () => void;
|
|
231
253
|
on: (event: any, callback: any) => () => void;
|
|
232
254
|
off: (event: any, callback: any) => void;
|
|
233
255
|
clearArtifacts: () => void;
|
|
@@ -252,6 +274,9 @@ export function createArtifactuseComposable(config?: {}): {
|
|
|
252
274
|
isPanelOpen: boolean;
|
|
253
275
|
viewMode: string;
|
|
254
276
|
isFullscreen: boolean;
|
|
277
|
+
openTabs: any[];
|
|
278
|
+
tabViewModes: {};
|
|
279
|
+
forceEmptyView: boolean;
|
|
255
280
|
};
|
|
256
281
|
subscribe: (callback: any) => () => void;
|
|
257
282
|
addArtifact: (artifact: any) => void;
|
|
@@ -267,6 +292,11 @@ export function createArtifactuseComposable(config?: {}): {
|
|
|
267
292
|
setPanelOpen: (isOpen: any) => void;
|
|
268
293
|
setViewMode: (mode: any) => void;
|
|
269
294
|
setFullscreen: (isFullscreen: any) => void;
|
|
295
|
+
setForceEmptyView: (value: any) => void;
|
|
296
|
+
openTab: (artifactId: any) => void;
|
|
297
|
+
closeTab: (artifactId: any) => void;
|
|
298
|
+
closeOtherTabs: (keepArtifactId: any) => void;
|
|
299
|
+
closeAllTabs: () => void;
|
|
270
300
|
clear: () => void;
|
|
271
301
|
batch: (updateFn: any) => void;
|
|
272
302
|
};
|
|
@@ -276,6 +306,9 @@ export function createArtifactuseComposable(config?: {}): {
|
|
|
276
306
|
isPanelOpen: boolean;
|
|
277
307
|
viewMode: string;
|
|
278
308
|
isFullscreen: boolean;
|
|
309
|
+
openTabs: any[];
|
|
310
|
+
tabViewModes: {};
|
|
311
|
+
forceEmptyView: boolean;
|
|
279
312
|
};
|
|
280
313
|
subscribe: (callback: any) => () => void;
|
|
281
314
|
processMessage: (content: any, messageId: any, overrides?: {}) => {
|
|
@@ -313,12 +346,16 @@ export function createArtifactuseComposable(config?: {}): {
|
|
|
313
346
|
createdAt: string;
|
|
314
347
|
};
|
|
315
348
|
updateFile: (artifactOrId: any, code: any, options?: {}) => any;
|
|
349
|
+
openPanel: () => void;
|
|
316
350
|
closePanel: () => void;
|
|
317
351
|
togglePanel: () => void;
|
|
318
352
|
toggleFullscreen: () => void;
|
|
319
353
|
setViewMode: (mode: any) => void;
|
|
320
354
|
getPanelUrl: (artifact: any, options?: {}) => any;
|
|
321
355
|
sendToPanel: (action: any, data: any) => void;
|
|
356
|
+
closeTab: (artifactId: any) => void;
|
|
357
|
+
closeOtherTabs: (artifactId: any) => void;
|
|
358
|
+
closeAllTabs: () => void;
|
|
322
359
|
hasPanel: (artifact: any) => any;
|
|
323
360
|
registerPanel: (typesOrLang: string | string[], panel: string | object) => void;
|
|
324
361
|
unregisterPanel: (typesOrLang: string | string[]) => void;
|
|
@@ -389,6 +426,9 @@ export function createArtifactuseComposable(config?: {}): {
|
|
|
389
426
|
isPanelOpen: boolean;
|
|
390
427
|
viewMode: string;
|
|
391
428
|
isFullscreen: boolean;
|
|
429
|
+
openTabs: any[];
|
|
430
|
+
tabViewModes: {};
|
|
431
|
+
forceEmptyView: boolean;
|
|
392
432
|
};
|
|
393
433
|
activeArtifact: import("vue").ComputedRef<any>;
|
|
394
434
|
artifactCount: import("vue").ComputedRef<number>;
|
|
@@ -430,6 +470,7 @@ export function createArtifactuseComposable(config?: {}): {
|
|
|
430
470
|
createdAt: string;
|
|
431
471
|
};
|
|
432
472
|
updateFile: (artifactOrId: any, code: any, options?: {}) => any;
|
|
473
|
+
openPanel: () => void;
|
|
433
474
|
closePanel: () => void;
|
|
434
475
|
togglePanel: () => void;
|
|
435
476
|
toggleFullscreen: () => void;
|
|
@@ -440,6 +481,9 @@ export function createArtifactuseComposable(config?: {}): {
|
|
|
440
481
|
registerPanel: (typesOrLang: string | string[], panel: string | object) => void;
|
|
441
482
|
unregisterPanel: (typesOrLang: string | string[]) => void;
|
|
442
483
|
getPanelTypes: () => any;
|
|
484
|
+
closeTab: (artifactId: any) => void;
|
|
485
|
+
closeOtherTabs: (artifactId: any) => void;
|
|
486
|
+
closeAllTabs: () => void;
|
|
443
487
|
on: (event: any, callback: any) => () => void;
|
|
444
488
|
off: (event: any, callback: any) => void;
|
|
445
489
|
clearArtifacts: () => void;
|