artifactuse 0.1.30 → 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.
- package/README.md +2 -0
- package/dist/core/index.d.ts +13 -0
- package/dist/core/state.d.ts +6 -0
- package/dist/{index-BH35XKmt.js → index-INYOxlcg.js} +1168 -922
- package/dist/index.js +1 -1
- package/dist/react/ArtifactusePanel.d.ts +3 -1
- package/dist/react/index.d.ts +2 -0
- package/dist/react/index.js +904 -867
- package/dist/styles/components/panel.css +106 -0
- package/dist/svelte/index.d.ts +42 -0
- package/dist/svelte/index.js +1910 -1865
- package/dist/vue/index.d.ts +32 -0
- package/dist/vue/index.js +1454 -1374
- package/dist/vue2/composables.d.ts +32 -0
- package/dist/vue2/index.js +591 -64
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
Artifactuse is a lightweight SDK that transforms AI-generated content into rich, interactive artifacts. Support for code previews, video editors, canvas/whiteboards, forms, social media previews, and more.
|
|
6
6
|
|
|
7
|
+
**[Live Demo](https://demo.artifactuse.com)**
|
|
8
|
+
|
|
7
9
|
## Features
|
|
8
10
|
|
|
9
11
|
- 🎨 **Rich Content Detection** - Automatically detect and render code blocks, images, videos, maps, embeds, and more
|
package/dist/core/index.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ export function createArtifactuse(userConfig?: {}): {
|
|
|
10
10
|
isPanelOpen: boolean;
|
|
11
11
|
viewMode: string;
|
|
12
12
|
isFullscreen: boolean;
|
|
13
|
+
openTabs: any[];
|
|
14
|
+
tabViewModes: {};
|
|
13
15
|
};
|
|
14
16
|
subscribe: (callback: any) => () => void;
|
|
15
17
|
addArtifact: (artifact: any) => void;
|
|
@@ -25,6 +27,10 @@ export function createArtifactuse(userConfig?: {}): {
|
|
|
25
27
|
setPanelOpen: (isOpen: any) => void;
|
|
26
28
|
setViewMode: (mode: any) => void;
|
|
27
29
|
setFullscreen: (isFullscreen: any) => void;
|
|
30
|
+
openTab: (artifactId: any) => void;
|
|
31
|
+
closeTab: (artifactId: any) => void;
|
|
32
|
+
closeOtherTabs: (keepArtifactId: any) => void;
|
|
33
|
+
closeAllTabs: () => void;
|
|
28
34
|
clear: () => void;
|
|
29
35
|
batch: (updateFn: any) => void;
|
|
30
36
|
};
|
|
@@ -34,6 +40,8 @@ export function createArtifactuse(userConfig?: {}): {
|
|
|
34
40
|
isPanelOpen: boolean;
|
|
35
41
|
viewMode: string;
|
|
36
42
|
isFullscreen: boolean;
|
|
43
|
+
openTabs: any[];
|
|
44
|
+
tabViewModes: {};
|
|
37
45
|
};
|
|
38
46
|
subscribe: (callback: any) => () => void;
|
|
39
47
|
processMessage: (content: any, messageId: any, overrides?: {}) => {
|
|
@@ -77,6 +85,9 @@ export function createArtifactuse(userConfig?: {}): {
|
|
|
77
85
|
setViewMode: (mode: any) => void;
|
|
78
86
|
getPanelUrl: (artifact: any, options?: {}) => any;
|
|
79
87
|
sendToPanel: (action: any, data: any) => void;
|
|
88
|
+
closeTab: (artifactId: any) => void;
|
|
89
|
+
closeOtherTabs: (artifactId: any) => void;
|
|
90
|
+
closeAllTabs: () => void;
|
|
80
91
|
hasPanel: (artifact: any) => any;
|
|
81
92
|
registerPanel: (typesOrLang: string | string[], panel: string | object) => void;
|
|
82
93
|
unregisterPanel: (typesOrLang: string | string[]) => void;
|
|
@@ -157,6 +168,8 @@ export namespace DEFAULT_PANELS {
|
|
|
157
168
|
let whiteboard: string;
|
|
158
169
|
let drawing: string;
|
|
159
170
|
let json: string;
|
|
171
|
+
let csv: string;
|
|
172
|
+
let tsv: string;
|
|
160
173
|
let svg: string;
|
|
161
174
|
let diff: string;
|
|
162
175
|
let patch: string;
|
package/dist/core/state.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ export function createState(): {
|
|
|
8
8
|
isPanelOpen: boolean;
|
|
9
9
|
viewMode: string;
|
|
10
10
|
isFullscreen: boolean;
|
|
11
|
+
openTabs: any[];
|
|
12
|
+
tabViewModes: {};
|
|
11
13
|
};
|
|
12
14
|
subscribe: (callback: any) => () => void;
|
|
13
15
|
addArtifact: (artifact: any) => void;
|
|
@@ -23,6 +25,10 @@ export function createState(): {
|
|
|
23
25
|
setPanelOpen: (isOpen: any) => void;
|
|
24
26
|
setViewMode: (mode: any) => void;
|
|
25
27
|
setFullscreen: (isFullscreen: any) => void;
|
|
28
|
+
openTab: (artifactId: any) => void;
|
|
29
|
+
closeTab: (artifactId: any) => void;
|
|
30
|
+
closeOtherTabs: (keepArtifactId: any) => void;
|
|
31
|
+
closeAllTabs: () => void;
|
|
26
32
|
clear: () => void;
|
|
27
33
|
batch: (updateFn: any) => void;
|
|
28
34
|
};
|