artifactuse 0.2.0 → 0.2.2

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.
@@ -40,6 +40,8 @@ export function provideArtifactuse(config?: {
40
40
  isPanelOpen: boolean;
41
41
  viewMode: string;
42
42
  isFullscreen: boolean;
43
+ openTabs: any[];
44
+ tabViewModes: {};
43
45
  };
44
46
  subscribe: (callback: any) => () => void;
45
47
  addArtifact: (artifact: any) => void;
@@ -55,6 +57,10 @@ export function provideArtifactuse(config?: {
55
57
  setPanelOpen: (isOpen: any) => void;
56
58
  setViewMode: (mode: any) => void;
57
59
  setFullscreen: (isFullscreen: any) => void;
60
+ openTab: (artifactId: any) => void;
61
+ closeTab: (artifactId: any) => void;
62
+ closeOtherTabs: (keepArtifactId: any) => void;
63
+ closeAllTabs: () => void;
58
64
  clear: () => void;
59
65
  batch: (updateFn: any) => void;
60
66
  };
@@ -64,6 +70,8 @@ export function provideArtifactuse(config?: {
64
70
  isPanelOpen: boolean;
65
71
  viewMode: string;
66
72
  isFullscreen: boolean;
73
+ openTabs: any[];
74
+ tabViewModes: {};
67
75
  };
68
76
  subscribe: (callback: any) => () => void;
69
77
  processMessage: (content: any, messageId: any, overrides?: {}) => {
@@ -107,6 +115,9 @@ export function provideArtifactuse(config?: {
107
115
  setViewMode: (mode: any) => void;
108
116
  getPanelUrl: (artifact: any, options?: {}) => any;
109
117
  sendToPanel: (action: any, data: any) => void;
118
+ closeTab: (artifactId: any) => void;
119
+ closeOtherTabs: (artifactId: any) => void;
120
+ closeAllTabs: () => void;
110
121
  hasPanel: (artifact: any) => any;
111
122
  registerPanel: (typesOrLang: string | string[], panel: string | object) => void;
112
123
  unregisterPanel: (typesOrLang: string | string[]) => void;
@@ -177,6 +188,8 @@ export function provideArtifactuse(config?: {
177
188
  isPanelOpen: boolean;
178
189
  viewMode: string;
179
190
  isFullscreen: boolean;
191
+ openTabs: any[];
192
+ tabViewModes: {};
180
193
  };
181
194
  activeArtifact: import("vue").ComputedRef<any>;
182
195
  artifactCount: import("vue").ComputedRef<number>;
@@ -228,6 +241,9 @@ export function provideArtifactuse(config?: {
228
241
  registerPanel: (typesOrLang: string | string[], panel: string | object) => void;
229
242
  unregisterPanel: (typesOrLang: string | string[]) => void;
230
243
  getPanelTypes: () => any;
244
+ closeTab: (artifactId: any) => void;
245
+ closeOtherTabs: (artifactId: any) => void;
246
+ closeAllTabs: () => void;
231
247
  on: (event: any, callback: any) => () => void;
232
248
  off: (event: any, callback: any) => void;
233
249
  clearArtifacts: () => void;
@@ -252,6 +268,8 @@ export function createArtifactuseComposable(config?: {}): {
252
268
  isPanelOpen: boolean;
253
269
  viewMode: string;
254
270
  isFullscreen: boolean;
271
+ openTabs: any[];
272
+ tabViewModes: {};
255
273
  };
256
274
  subscribe: (callback: any) => () => void;
257
275
  addArtifact: (artifact: any) => void;
@@ -267,6 +285,10 @@ export function createArtifactuseComposable(config?: {}): {
267
285
  setPanelOpen: (isOpen: any) => void;
268
286
  setViewMode: (mode: any) => void;
269
287
  setFullscreen: (isFullscreen: any) => void;
288
+ openTab: (artifactId: any) => void;
289
+ closeTab: (artifactId: any) => void;
290
+ closeOtherTabs: (keepArtifactId: any) => void;
291
+ closeAllTabs: () => void;
270
292
  clear: () => void;
271
293
  batch: (updateFn: any) => void;
272
294
  };
@@ -276,6 +298,8 @@ export function createArtifactuseComposable(config?: {}): {
276
298
  isPanelOpen: boolean;
277
299
  viewMode: string;
278
300
  isFullscreen: boolean;
301
+ openTabs: any[];
302
+ tabViewModes: {};
279
303
  };
280
304
  subscribe: (callback: any) => () => void;
281
305
  processMessage: (content: any, messageId: any, overrides?: {}) => {
@@ -319,6 +343,9 @@ export function createArtifactuseComposable(config?: {}): {
319
343
  setViewMode: (mode: any) => void;
320
344
  getPanelUrl: (artifact: any, options?: {}) => any;
321
345
  sendToPanel: (action: any, data: any) => void;
346
+ closeTab: (artifactId: any) => void;
347
+ closeOtherTabs: (artifactId: any) => void;
348
+ closeAllTabs: () => void;
322
349
  hasPanel: (artifact: any) => any;
323
350
  registerPanel: (typesOrLang: string | string[], panel: string | object) => void;
324
351
  unregisterPanel: (typesOrLang: string | string[]) => void;
@@ -389,6 +416,8 @@ export function createArtifactuseComposable(config?: {}): {
389
416
  isPanelOpen: boolean;
390
417
  viewMode: string;
391
418
  isFullscreen: boolean;
419
+ openTabs: any[];
420
+ tabViewModes: {};
392
421
  };
393
422
  activeArtifact: import("vue").ComputedRef<any>;
394
423
  artifactCount: import("vue").ComputedRef<number>;
@@ -440,6 +469,9 @@ export function createArtifactuseComposable(config?: {}): {
440
469
  registerPanel: (typesOrLang: string | string[], panel: string | object) => void;
441
470
  unregisterPanel: (typesOrLang: string | string[]) => void;
442
471
  getPanelTypes: () => any;
472
+ closeTab: (artifactId: any) => void;
473
+ closeOtherTabs: (artifactId: any) => void;
474
+ closeAllTabs: () => void;
443
475
  on: (event: any, callback: any) => () => void;
444
476
  off: (event: any, callback: any) => void;
445
477
  clearArtifacts: () => void;