artifactuse 0.2.2 → 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/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
@@ -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?: {}) => {
@@ -50,20 +53,7 @@ export function createArtifactuse(userConfig?: {}): {
50
53
  };
51
54
  initializeContent: (container?: Document) => Promise<void>;
52
55
  openArtifact: (artifact: any) => void;
53
- openFile: (filename: any, code: any, options?: {}) => {
54
- id: string;
55
- messageId: string;
56
- type: string;
57
- language: string;
58
- title: any;
59
- code: string;
60
- isInline: boolean;
61
- isPreviewable: boolean;
62
- isPanelArtifact: boolean;
63
- size: number;
64
- lineCount: number;
65
- createdAt: string;
66
- };
56
+ openFile: (filename: any, code: any, options?: {}) => any;
67
57
  openCode: (code: any, language: any, options?: {}) => {
68
58
  id: string;
69
59
  messageId: string;
@@ -79,6 +69,7 @@ export function createArtifactuse(userConfig?: {}): {
79
69
  createdAt: string;
80
70
  };
81
71
  updateFile: (artifactOrId: any, code: any, options?: {}) => any;
72
+ openPanel: () => void;
82
73
  closePanel: () => void;
83
74
  togglePanel: () => void;
84
75
  toggleFullscreen: () => void;
@@ -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;