@teamflojo/floimg-studio-ui 0.9.2 → 0.10.0
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/components/AIChat.d.ts +22 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +922 -892
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
import { GeneratedWorkflowData } from '@teamflojo/floimg-studio-shared';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Analytics data for successful workflow generation
|
|
5
|
+
*/
|
|
6
|
+
export interface GenerationSuccessData {
|
|
7
|
+
nodeCount: number;
|
|
8
|
+
hasAINodes: boolean;
|
|
9
|
+
promptLength: number;
|
|
10
|
+
isConversation: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Analytics data for failed workflow generation
|
|
14
|
+
*/
|
|
15
|
+
export interface GenerationFailedData {
|
|
16
|
+
errorType: "invalid_node_type" | "generation_error" | "rate_limit" | "network" | "unknown";
|
|
17
|
+
promptLength: number;
|
|
18
|
+
isConversation: boolean;
|
|
19
|
+
}
|
|
3
20
|
interface AIChatProps {
|
|
4
21
|
isOpen: boolean;
|
|
5
22
|
onClose: () => void;
|
|
6
23
|
onApplyWorkflow: (workflow: GeneratedWorkflowData) => void;
|
|
24
|
+
/** Called when workflow generation succeeds (for analytics) */
|
|
25
|
+
onGenerationSuccess?: (data: GenerationSuccessData) => void;
|
|
26
|
+
/** Called when workflow generation fails (for analytics) */
|
|
27
|
+
onGenerationFailed?: (data: GenerationFailedData) => void;
|
|
7
28
|
}
|
|
8
|
-
export declare function AIChat({ isOpen, onClose, onApplyWorkflow }: AIChatProps): import("react/jsx-runtime").JSX.Element | null;
|
|
29
|
+
export declare function AIChat({ isOpen, onClose, onApplyWorkflow, onGenerationSuccess, onGenerationFailed, }: AIChatProps): import("react/jsx-runtime").JSX.Element | null;
|
|
9
30
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export { ExecutionResultsModal } from './components/ExecutionResultsModal';
|
|
|
10
10
|
export { TemplateGallery } from './components/TemplateGallery';
|
|
11
11
|
export { WorkflowLibrary } from './components/WorkflowLibrary';
|
|
12
12
|
export { AISettings } from './components/AISettings';
|
|
13
|
-
export { AIChat } from './components/AIChat';
|
|
13
|
+
export { AIChat, type GenerationSuccessData, type GenerationFailedData } from './components/AIChat';
|
|
14
14
|
export { UploadGallery } from './components/UploadGallery';
|
|
15
15
|
export { CommandPalette } from './components/CommandPalette';
|
|
16
16
|
export { KeyboardShortcutsModal } from './components/KeyboardShortcutsModal';
|