artifactuse 0.2.2 → 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 +4 -0
- package/dist/core/state.d.ts +2 -0
- package/dist/{index-INYOxlcg.js → index-B4BEvWtI.js} +520 -504
- package/dist/index.js +1 -1
- package/dist/react/index.js +392 -389
- package/dist/svelte/index.d.ts +15 -0
- package/dist/svelte/index.js +1436 -1415
- package/dist/vue/index.d.ts +12 -0
- package/dist/vue/index.js +1143 -1129
- package/dist/vue2/composables.d.ts +12 -0
- package/dist/vue2/index.js +118 -29
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -570,6 +570,7 @@ const {
|
|
|
570
570
|
|
|
571
571
|
processMessage, // Process AI content
|
|
572
572
|
openArtifact, // Open artifact in panel
|
|
573
|
+
openPanel, // Open panel in empty viewer state
|
|
573
574
|
closePanel, // Close panel
|
|
574
575
|
togglePanel, // Toggle panel visibility
|
|
575
576
|
toggleFullscreen, // Toggle fullscreen mode
|
package/dist/core/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export function createArtifactuse(userConfig?: {}): {
|
|
|
12
12
|
isFullscreen: boolean;
|
|
13
13
|
openTabs: any[];
|
|
14
14
|
tabViewModes: {};
|
|
15
|
+
forceEmptyView: boolean;
|
|
15
16
|
};
|
|
16
17
|
subscribe: (callback: any) => () => void;
|
|
17
18
|
addArtifact: (artifact: any) => void;
|
|
@@ -27,6 +28,7 @@ export function createArtifactuse(userConfig?: {}): {
|
|
|
27
28
|
setPanelOpen: (isOpen: any) => void;
|
|
28
29
|
setViewMode: (mode: any) => void;
|
|
29
30
|
setFullscreen: (isFullscreen: any) => void;
|
|
31
|
+
setForceEmptyView: (value: any) => void;
|
|
30
32
|
openTab: (artifactId: any) => void;
|
|
31
33
|
closeTab: (artifactId: any) => void;
|
|
32
34
|
closeOtherTabs: (keepArtifactId: any) => void;
|
|
@@ -42,6 +44,7 @@ export function createArtifactuse(userConfig?: {}): {
|
|
|
42
44
|
isFullscreen: boolean;
|
|
43
45
|
openTabs: any[];
|
|
44
46
|
tabViewModes: {};
|
|
47
|
+
forceEmptyView: boolean;
|
|
45
48
|
};
|
|
46
49
|
subscribe: (callback: any) => () => void;
|
|
47
50
|
processMessage: (content: any, messageId: any, overrides?: {}) => {
|
|
@@ -79,6 +82,7 @@ export function createArtifactuse(userConfig?: {}): {
|
|
|
79
82
|
createdAt: string;
|
|
80
83
|
};
|
|
81
84
|
updateFile: (artifactOrId: any, code: any, options?: {}) => any;
|
|
85
|
+
openPanel: () => void;
|
|
82
86
|
closePanel: () => void;
|
|
83
87
|
togglePanel: () => void;
|
|
84
88
|
toggleFullscreen: () => void;
|
package/dist/core/state.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export function createState(): {
|
|
|
10
10
|
isFullscreen: boolean;
|
|
11
11
|
openTabs: any[];
|
|
12
12
|
tabViewModes: {};
|
|
13
|
+
forceEmptyView: boolean;
|
|
13
14
|
};
|
|
14
15
|
subscribe: (callback: any) => () => void;
|
|
15
16
|
addArtifact: (artifact: any) => void;
|
|
@@ -25,6 +26,7 @@ export function createState(): {
|
|
|
25
26
|
setPanelOpen: (isOpen: any) => void;
|
|
26
27
|
setViewMode: (mode: any) => void;
|
|
27
28
|
setFullscreen: (isFullscreen: any) => void;
|
|
29
|
+
setForceEmptyView: (value: any) => void;
|
|
28
30
|
openTab: (artifactId: any) => void;
|
|
29
31
|
closeTab: (artifactId: any) => void;
|
|
30
32
|
closeOtherTabs: (keepArtifactId: any) => void;
|