artifactuse 0.2.3 → 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/dist/core/index.d.ts +1 -14
- package/dist/{index-B4BEvWtI.js → index-C_15PkcN.js} +1103 -1106
- package/dist/index.js +1 -1
- package/dist/react/index.js +1 -1
- package/dist/svelte/index.d.ts +6 -84
- package/dist/svelte/index.js +1 -1
- package/dist/vue/index.d.ts +4 -56
- package/dist/vue/index.js +1 -1
- package/dist/vue2/composables.d.ts +4 -56
- package/dist/vue2/index.js +171 -137
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as s, aJ as r, at as t, J as d, d as c, G as o, a_ as i, am as m, k as l, ar as b, ap as E, ak as n, a6 as p, a7 as g, E as h, ae as M, al as T, m as u, aG as A, X as f, ai as S, aj as C, ad as y, a5 as P, aq as I, a0 as G, a1 as L, N as V, O as D, s as k, af as F, S as z, T as v, a8 as B, V as w, C as K, aO as X, aw as x, au as H, as as O, P as R, a3 as N, _ as U, Y as J, W, aa as Y, ah as _, H as j, I as q, a9 as Q, j as Z, ac as $, l as aa, U as ea, R as sa, ao as ra, y as ta, w as da, z as ca, B as oa, A as ia, L as ma, aZ as la, aI as ba, e as Ea, aL as na, a$ as pa, aT as ga, aB as ha, aW as Ma, aY as Ta, aX as ua, K as Aa, aP as fa, ax as Sa, aM as Ca, h as ya, aS as Pa, aA as Ia, i as Ga, u as La, aQ as Va, ay as Da, aV as ka, n as Fa, p as za, ag as va, F as Ba, a4 as wa, ab as Ka, $ as Xa, q as xa, o as Ha, an as Oa, M as Ra, aN as Na, aU as Ua, av as Ja, aC as Wa, a2 as Ya, Z as _a, Q as ja, aF as qa, x as Qa, t as Za, r as $a, v as ae, aD as ee, aR as se, az as re, aK as te, aH as de, aE as ce } from "./index-
|
|
1
|
+
import { D as s, aJ as r, at as t, J as d, d as c, G as o, a_ as i, am as m, k as l, ar as b, ap as E, ak as n, a6 as p, a7 as g, E as h, ae as M, al as T, m as u, aG as A, X as f, ai as S, aj as C, ad as y, a5 as P, aq as I, a0 as G, a1 as L, N as V, O as D, s as k, af as F, S as z, T as v, a8 as B, V as w, C as K, aO as X, aw as x, au as H, as as O, P as R, a3 as N, _ as U, Y as J, W, aa as Y, ah as _, H as j, I as q, a9 as Q, j as Z, ac as $, l as aa, U as ea, R as sa, ao as ra, y as ta, w as da, z as ca, B as oa, A as ia, L as ma, aZ as la, aI as ba, e as Ea, aL as na, a$ as pa, aT as ga, aB as ha, aW as Ma, aY as Ta, aX as ua, K as Aa, aP as fa, ax as Sa, aM as Ca, h as ya, aS as Pa, aA as Ia, i as Ga, u as La, aQ as Va, ay as Da, aV as ka, n as Fa, p as za, ag as va, F as Ba, a4 as wa, ab as Ka, $ as Xa, q as xa, o as Ha, an as Oa, M as Ra, aN as Na, aU as Ua, av as Ja, aC as Wa, a2 as Ya, Z as _a, Q as ja, aF as qa, x as Qa, t as Za, r as $a, v as ae, aD as ee, aR as se, az as re, aK as te, aH as de, aE as ce } from "./index-C_15PkcN.js";
|
|
2
2
|
export {
|
|
3
3
|
s as DEFAULT_PANELS,
|
|
4
4
|
r as copyTableToClipboard,
|
package/dist/react/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import e, { useState as w, useMemo as C, useCallback as p, useRef as B, useEffect as z, createContext as Wt, useContext as zt } from "react";
|
|
2
|
-
import { g as Ue, f as ht, a as at, b as rt, n as Rt, i as pt, c as qt, D as gt, d as Dt } from "../index-
|
|
2
|
+
import { g as Ue, f as ht, a as at, b as rt, n as Rt, i as pt, c as qt, D as gt, d as Dt } from "../index-C_15PkcN.js";
|
|
3
3
|
import { J as Ut } from "../jszip.min-CdmYyw5L.js";
|
|
4
4
|
import { createPortal as jt } from "react-dom";
|
|
5
5
|
function Ot({
|
package/dist/svelte/index.d.ts
CHANGED
|
@@ -83,20 +83,7 @@ export function createArtifactuseStores(config?: {
|
|
|
83
83
|
};
|
|
84
84
|
initializeContent: (container?: Document) => Promise<void>;
|
|
85
85
|
openArtifact: (artifact: any) => void;
|
|
86
|
-
openFile: (filename: any, code: any, options?: {}) =>
|
|
87
|
-
id: string;
|
|
88
|
-
messageId: string;
|
|
89
|
-
type: string;
|
|
90
|
-
language: string;
|
|
91
|
-
title: any;
|
|
92
|
-
code: string;
|
|
93
|
-
isInline: boolean;
|
|
94
|
-
isPreviewable: boolean;
|
|
95
|
-
isPanelArtifact: boolean;
|
|
96
|
-
size: number;
|
|
97
|
-
lineCount: number;
|
|
98
|
-
createdAt: string;
|
|
99
|
-
};
|
|
86
|
+
openFile: (filename: any, code: any, options?: {}) => any;
|
|
100
87
|
openCode: (code: any, language: any, options?: {}) => {
|
|
101
88
|
id: string;
|
|
102
89
|
messageId: string;
|
|
@@ -202,20 +189,7 @@ export function createArtifactuseStores(config?: {
|
|
|
202
189
|
};
|
|
203
190
|
initializeContent: (container?: Document) => Promise<void>;
|
|
204
191
|
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
|
-
};
|
|
192
|
+
openFile: (filename: any, code: any, options?: {}) => any;
|
|
219
193
|
openCode: (code: any, language: any, options?: {}) => {
|
|
220
194
|
id: string;
|
|
221
195
|
messageId: string;
|
|
@@ -320,20 +294,7 @@ export function setArtifactuseContext(config?: {}): {
|
|
|
320
294
|
};
|
|
321
295
|
initializeContent: (container?: Document) => Promise<void>;
|
|
322
296
|
openArtifact: (artifact: any) => void;
|
|
323
|
-
openFile: (filename: any, code: any, options?: {}) =>
|
|
324
|
-
id: string;
|
|
325
|
-
messageId: string;
|
|
326
|
-
type: string;
|
|
327
|
-
language: string;
|
|
328
|
-
title: any;
|
|
329
|
-
code: string;
|
|
330
|
-
isInline: boolean;
|
|
331
|
-
isPreviewable: boolean;
|
|
332
|
-
isPanelArtifact: boolean;
|
|
333
|
-
size: number;
|
|
334
|
-
lineCount: number;
|
|
335
|
-
createdAt: string;
|
|
336
|
-
};
|
|
297
|
+
openFile: (filename: any, code: any, options?: {}) => any;
|
|
337
298
|
openCode: (code: any, language: any, options?: {}) => {
|
|
338
299
|
id: string;
|
|
339
300
|
messageId: string;
|
|
@@ -439,20 +400,7 @@ export function setArtifactuseContext(config?: {}): {
|
|
|
439
400
|
};
|
|
440
401
|
initializeContent: (container?: Document) => Promise<void>;
|
|
441
402
|
openArtifact: (artifact: any) => void;
|
|
442
|
-
openFile: (filename: any, code: any, options?: {}) =>
|
|
443
|
-
id: string;
|
|
444
|
-
messageId: string;
|
|
445
|
-
type: string;
|
|
446
|
-
language: string;
|
|
447
|
-
title: any;
|
|
448
|
-
code: string;
|
|
449
|
-
isInline: boolean;
|
|
450
|
-
isPreviewable: boolean;
|
|
451
|
-
isPanelArtifact: boolean;
|
|
452
|
-
size: number;
|
|
453
|
-
lineCount: number;
|
|
454
|
-
createdAt: string;
|
|
455
|
-
};
|
|
403
|
+
openFile: (filename: any, code: any, options?: {}) => any;
|
|
456
404
|
openCode: (code: any, language: any, options?: {}) => {
|
|
457
405
|
id: string;
|
|
458
406
|
messageId: string;
|
|
@@ -550,20 +498,7 @@ export function useArtifactuse(config?: {}): {
|
|
|
550
498
|
};
|
|
551
499
|
initializeContent: (container?: Document) => Promise<void>;
|
|
552
500
|
openArtifact: (artifact: any) => void;
|
|
553
|
-
openFile: (filename: any, code: any, options?: {}) =>
|
|
554
|
-
id: string;
|
|
555
|
-
messageId: string;
|
|
556
|
-
type: string;
|
|
557
|
-
language: string;
|
|
558
|
-
title: any;
|
|
559
|
-
code: string;
|
|
560
|
-
isInline: boolean;
|
|
561
|
-
isPreviewable: boolean;
|
|
562
|
-
isPanelArtifact: boolean;
|
|
563
|
-
size: number;
|
|
564
|
-
lineCount: number;
|
|
565
|
-
createdAt: string;
|
|
566
|
-
};
|
|
501
|
+
openFile: (filename: any, code: any, options?: {}) => any;
|
|
567
502
|
openCode: (code: any, language: any, options?: {}) => {
|
|
568
503
|
id: string;
|
|
569
504
|
messageId: string;
|
|
@@ -669,20 +604,7 @@ export function useArtifactuse(config?: {}): {
|
|
|
669
604
|
};
|
|
670
605
|
initializeContent: (container?: Document) => Promise<void>;
|
|
671
606
|
openArtifact: (artifact: any) => void;
|
|
672
|
-
openFile: (filename: any, code: any, options?: {}) =>
|
|
673
|
-
id: string;
|
|
674
|
-
messageId: string;
|
|
675
|
-
type: string;
|
|
676
|
-
language: string;
|
|
677
|
-
title: any;
|
|
678
|
-
code: string;
|
|
679
|
-
isInline: boolean;
|
|
680
|
-
isPreviewable: boolean;
|
|
681
|
-
isPanelArtifact: boolean;
|
|
682
|
-
size: number;
|
|
683
|
-
lineCount: number;
|
|
684
|
-
createdAt: string;
|
|
685
|
-
};
|
|
607
|
+
openFile: (filename: any, code: any, options?: {}) => any;
|
|
686
608
|
openCode: (code: any, language: any, options?: {}) => {
|
|
687
609
|
id: string;
|
|
688
610
|
messageId: string;
|
package/dist/svelte/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { writable as ha, derived as Ua } from "svelte/store";
|
|
2
2
|
import { createEventDispatcher as ba, onMount as ka, onDestroy as La, tick as sa, setContext as Yr, getContext as Qr } from "svelte";
|
|
3
|
-
import { g as ia, f as cr, a as Na, b as or, n as Tr, i as Lr, c as Gr, D as es, d as ts } from "../index-
|
|
3
|
+
import { g as ia, f as cr, a as Na, b as or, n as Tr, i as Lr, c as Gr, D as es, d as ts } from "../index-C_15PkcN.js";
|
|
4
4
|
import "svelte/internal/disclose-version";
|
|
5
5
|
import "svelte/internal/flags/legacy";
|
|
6
6
|
import * as e from "svelte/internal/client";
|
package/dist/vue/index.d.ts
CHANGED
|
@@ -83,20 +83,7 @@ export function provideArtifactuse(config?: {
|
|
|
83
83
|
};
|
|
84
84
|
initializeContent: (container?: Document) => Promise<void>;
|
|
85
85
|
openArtifact: (artifact: any) => void;
|
|
86
|
-
openFile: (filename: any, code: any, options?: {}) =>
|
|
87
|
-
id: string;
|
|
88
|
-
messageId: string;
|
|
89
|
-
type: string;
|
|
90
|
-
language: string;
|
|
91
|
-
title: any;
|
|
92
|
-
code: string;
|
|
93
|
-
isInline: boolean;
|
|
94
|
-
isPreviewable: boolean;
|
|
95
|
-
isPanelArtifact: boolean;
|
|
96
|
-
size: number;
|
|
97
|
-
lineCount: number;
|
|
98
|
-
createdAt: string;
|
|
99
|
-
};
|
|
86
|
+
openFile: (filename: any, code: any, options?: {}) => any;
|
|
100
87
|
openCode: (code: any, language: any, options?: {}) => {
|
|
101
88
|
id: string;
|
|
102
89
|
messageId: string;
|
|
@@ -207,20 +194,7 @@ export function provideArtifactuse(config?: {
|
|
|
207
194
|
};
|
|
208
195
|
initializeContent: (container?: Document) => Promise<void>;
|
|
209
196
|
openArtifact: (artifact: any) => void;
|
|
210
|
-
openFile: (filename: any, code: any, options?: {}) =>
|
|
211
|
-
id: string;
|
|
212
|
-
messageId: string;
|
|
213
|
-
type: string;
|
|
214
|
-
language: string;
|
|
215
|
-
title: any;
|
|
216
|
-
code: string;
|
|
217
|
-
isInline: boolean;
|
|
218
|
-
isPreviewable: boolean;
|
|
219
|
-
isPanelArtifact: boolean;
|
|
220
|
-
size: number;
|
|
221
|
-
lineCount: number;
|
|
222
|
-
createdAt: string;
|
|
223
|
-
};
|
|
197
|
+
openFile: (filename: any, code: any, options?: {}) => any;
|
|
224
198
|
openCode: (code: any, language: any, options?: {}) => {
|
|
225
199
|
id: string;
|
|
226
200
|
messageId: string;
|
|
@@ -317,20 +291,7 @@ export function createArtifactuseComposable(config?: {}): {
|
|
|
317
291
|
};
|
|
318
292
|
initializeContent: (container?: Document) => Promise<void>;
|
|
319
293
|
openArtifact: (artifact: any) => void;
|
|
320
|
-
openFile: (filename: any, code: any, options?: {}) =>
|
|
321
|
-
id: string;
|
|
322
|
-
messageId: string;
|
|
323
|
-
type: string;
|
|
324
|
-
language: string;
|
|
325
|
-
title: any;
|
|
326
|
-
code: string;
|
|
327
|
-
isInline: boolean;
|
|
328
|
-
isPreviewable: boolean;
|
|
329
|
-
isPanelArtifact: boolean;
|
|
330
|
-
size: number;
|
|
331
|
-
lineCount: number;
|
|
332
|
-
createdAt: string;
|
|
333
|
-
};
|
|
294
|
+
openFile: (filename: any, code: any, options?: {}) => any;
|
|
334
295
|
openCode: (code: any, language: any, options?: {}) => {
|
|
335
296
|
id: string;
|
|
336
297
|
messageId: string;
|
|
@@ -441,20 +402,7 @@ export function createArtifactuseComposable(config?: {}): {
|
|
|
441
402
|
};
|
|
442
403
|
initializeContent: (container?: Document) => Promise<void>;
|
|
443
404
|
openArtifact: (artifact: any) => void;
|
|
444
|
-
openFile: (filename: any, code: any, options?: {}) =>
|
|
445
|
-
id: string;
|
|
446
|
-
messageId: string;
|
|
447
|
-
type: string;
|
|
448
|
-
language: string;
|
|
449
|
-
title: any;
|
|
450
|
-
code: string;
|
|
451
|
-
isInline: boolean;
|
|
452
|
-
isPreviewable: boolean;
|
|
453
|
-
isPanelArtifact: boolean;
|
|
454
|
-
size: number;
|
|
455
|
-
lineCount: number;
|
|
456
|
-
createdAt: string;
|
|
457
|
-
};
|
|
405
|
+
openFile: (filename: any, code: any, options?: {}) => any;
|
|
458
406
|
openCode: (code: any, language: any, options?: {}) => {
|
|
459
407
|
id: string;
|
|
460
408
|
messageId: string;
|
package/dist/vue/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as M, computed as C, createElementBlock as s, openBlock as a, normalizeClass as j, createElementVNode as e, toDisplayString as l, withModifiers as he, onMounted as Me, watch as de, Fragment as R, createCommentVNode as v, renderList as ve, createTextVNode as K, h as se, normalizeStyle as He, createStaticVNode as Ot, createBlock as $e, resolveDynamicComponent as Ut, nextTick as xe, onUnmounted as We, Teleport as Dt, createVNode as ze, Transition as Ee, withCtx as Be, withKeys as Nt, onBeforeUnmount as jt, unref as y, withDirectives as lt, vShow as nt, reactive as rt, provide as Wt, inject as Jt } from "vue";
|
|
2
|
-
import { g as Se, f as ct, a as Ne, b as je, n as Xt, i as ot, c as Zt, D as Kt, d as ut } from "../index-
|
|
2
|
+
import { g as Se, f as ct, a as Ne, b as je, n as Xt, i as ot, c as Zt, D as Kt, d as ut } from "../index-C_15PkcN.js";
|
|
3
3
|
import { J as Yt } from "../jszip.min-CdmYyw5L.js";
|
|
4
4
|
const Qt = { class: "artifactuse-card__icon" }, Gt = ["innerHTML"], ea = { class: "artifactuse-card__content" }, ta = { class: "artifactuse-card__title" }, aa = { class: "artifactuse-card__meta" }, sa = { class: "artifactuse-card__type" }, ia = { class: "artifactuse-card__size" }, la = { class: "artifactuse-card__actions" }, na = ["title"], oa = {
|
|
5
5
|
key: 0,
|
|
@@ -83,20 +83,7 @@ export function provideArtifactuse(config?: {
|
|
|
83
83
|
};
|
|
84
84
|
initializeContent: (container?: Document) => Promise<void>;
|
|
85
85
|
openArtifact: (artifact: any) => void;
|
|
86
|
-
openFile: (filename: any, code: any, options?: {}) =>
|
|
87
|
-
id: string;
|
|
88
|
-
messageId: string;
|
|
89
|
-
type: string;
|
|
90
|
-
language: string;
|
|
91
|
-
title: any;
|
|
92
|
-
code: string;
|
|
93
|
-
isInline: boolean;
|
|
94
|
-
isPreviewable: boolean;
|
|
95
|
-
isPanelArtifact: boolean;
|
|
96
|
-
size: number;
|
|
97
|
-
lineCount: number;
|
|
98
|
-
createdAt: string;
|
|
99
|
-
};
|
|
86
|
+
openFile: (filename: any, code: any, options?: {}) => any;
|
|
100
87
|
openCode: (code: any, language: any, options?: {}) => {
|
|
101
88
|
id: string;
|
|
102
89
|
messageId: string;
|
|
@@ -207,20 +194,7 @@ export function provideArtifactuse(config?: {
|
|
|
207
194
|
};
|
|
208
195
|
initializeContent: (container?: Document) => Promise<void>;
|
|
209
196
|
openArtifact: (artifact: any) => void;
|
|
210
|
-
openFile: (filename: any, code: any, options?: {}) =>
|
|
211
|
-
id: string;
|
|
212
|
-
messageId: string;
|
|
213
|
-
type: string;
|
|
214
|
-
language: string;
|
|
215
|
-
title: any;
|
|
216
|
-
code: string;
|
|
217
|
-
isInline: boolean;
|
|
218
|
-
isPreviewable: boolean;
|
|
219
|
-
isPanelArtifact: boolean;
|
|
220
|
-
size: number;
|
|
221
|
-
lineCount: number;
|
|
222
|
-
createdAt: string;
|
|
223
|
-
};
|
|
197
|
+
openFile: (filename: any, code: any, options?: {}) => any;
|
|
224
198
|
openCode: (code: any, language: any, options?: {}) => {
|
|
225
199
|
id: string;
|
|
226
200
|
messageId: string;
|
|
@@ -317,20 +291,7 @@ export function createArtifactuseComposable(config?: {}): {
|
|
|
317
291
|
};
|
|
318
292
|
initializeContent: (container?: Document) => Promise<void>;
|
|
319
293
|
openArtifact: (artifact: any) => void;
|
|
320
|
-
openFile: (filename: any, code: any, options?: {}) =>
|
|
321
|
-
id: string;
|
|
322
|
-
messageId: string;
|
|
323
|
-
type: string;
|
|
324
|
-
language: string;
|
|
325
|
-
title: any;
|
|
326
|
-
code: string;
|
|
327
|
-
isInline: boolean;
|
|
328
|
-
isPreviewable: boolean;
|
|
329
|
-
isPanelArtifact: boolean;
|
|
330
|
-
size: number;
|
|
331
|
-
lineCount: number;
|
|
332
|
-
createdAt: string;
|
|
333
|
-
};
|
|
294
|
+
openFile: (filename: any, code: any, options?: {}) => any;
|
|
334
295
|
openCode: (code: any, language: any, options?: {}) => {
|
|
335
296
|
id: string;
|
|
336
297
|
messageId: string;
|
|
@@ -441,20 +402,7 @@ export function createArtifactuseComposable(config?: {}): {
|
|
|
441
402
|
};
|
|
442
403
|
initializeContent: (container?: Document) => Promise<void>;
|
|
443
404
|
openArtifact: (artifact: any) => void;
|
|
444
|
-
openFile: (filename: any, code: any, options?: {}) =>
|
|
445
|
-
id: string;
|
|
446
|
-
messageId: string;
|
|
447
|
-
type: string;
|
|
448
|
-
language: string;
|
|
449
|
-
title: any;
|
|
450
|
-
code: string;
|
|
451
|
-
isInline: boolean;
|
|
452
|
-
isPreviewable: boolean;
|
|
453
|
-
isPanelArtifact: boolean;
|
|
454
|
-
size: number;
|
|
455
|
-
lineCount: number;
|
|
456
|
-
createdAt: string;
|
|
457
|
-
};
|
|
405
|
+
openFile: (filename: any, code: any, options?: {}) => any;
|
|
458
406
|
openCode: (code: any, language: any, options?: {}) => {
|
|
459
407
|
id: string;
|
|
460
408
|
messageId: string;
|