@teamflojo/floimg-studio-ui 0.1.7 → 0.2.1
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/LICENSE +1 -1
- package/dist/api/client.d.ts +12 -1
- package/dist/components/AIChat.d.ts +9 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2020 -1188
- package/dist/index.js.map +1 -1
- package/dist/stores/settingsStore.d.ts +4 -0
- package/dist/stores/workflowStore.d.ts +7 -1
- package/package.json +1 -1
package/LICENSE
CHANGED
package/dist/api/client.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { NodeDefinition, StudioNode, StudioEdge, ImageMetadata } from '@teamflojo/floimg-studio-shared';
|
|
1
|
+
import { NodeDefinition, StudioNode, StudioEdge, ImageMetadata, GenerateWorkflowRequest, GenerateWorkflowResponse } from '@teamflojo/floimg-studio-shared';
|
|
2
2
|
|
|
3
3
|
export declare function getGenerators(): Promise<NodeDefinition[]>;
|
|
4
4
|
export declare function getTransforms(): Promise<NodeDefinition[]>;
|
|
5
|
+
export declare function getTextProviders(): Promise<NodeDefinition[]>;
|
|
6
|
+
export declare function getVisionProviders(): Promise<NodeDefinition[]>;
|
|
5
7
|
export interface AIProviderConfig {
|
|
6
8
|
openai?: {
|
|
7
9
|
apiKey: string;
|
|
@@ -12,6 +14,9 @@ export interface AIProviderConfig {
|
|
|
12
14
|
gemini?: {
|
|
13
15
|
apiKey: string;
|
|
14
16
|
};
|
|
17
|
+
grok?: {
|
|
18
|
+
apiKey: string;
|
|
19
|
+
};
|
|
15
20
|
openrouter?: {
|
|
16
21
|
apiKey: string;
|
|
17
22
|
};
|
|
@@ -81,3 +86,9 @@ export interface ImportValidationResult {
|
|
|
81
86
|
}
|
|
82
87
|
export declare function importYaml(yaml: string): Promise<ImportResult>;
|
|
83
88
|
export declare function validateYaml(yaml: string): Promise<ImportValidationResult>;
|
|
89
|
+
export declare function generateWorkflow(request: GenerateWorkflowRequest): Promise<GenerateWorkflowResponse>;
|
|
90
|
+
export declare function getGenerateStatus(): Promise<{
|
|
91
|
+
available: boolean;
|
|
92
|
+
model: string;
|
|
93
|
+
message: string;
|
|
94
|
+
}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { GeneratedWorkflowData } from '@teamflojo/floimg-studio-shared';
|
|
2
|
+
|
|
3
|
+
interface AIChatProps {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
onApplyWorkflow: (workflow: GeneratedWorkflowData) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function AIChat({ isOpen, onClose, onApplyWorkflow }: AIChatProps): import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export { Gallery } from './components/Gallery';
|
|
|
15
15
|
export { TemplateGallery } from './components/TemplateGallery';
|
|
16
16
|
export { WorkflowLibrary } from './components/WorkflowLibrary';
|
|
17
17
|
export { AISettings } from './components/AISettings';
|
|
18
|
+
export { AIChat } from './components/AIChat';
|
|
18
19
|
export { UploadGallery } from './components/UploadGallery';
|
|
19
20
|
export { useWorkflowStore } from './stores/workflowStore';
|
|
20
21
|
export { templates, getCategories, getTemplatesByCategory, getTemplateById, searchTemplates, } from './templates';
|