@teamflojo/floimg-studio-ui 0.1.5 → 0.1.7
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 +21 -0
- package/dist/api/client.d.ts +20 -0
- package/dist/components/ImportModal.d.ts +9 -0
- package/dist/index.js +1363 -1045
- package/dist/index.js.map +1 -1
- package/dist/stores/workflowStore.d.ts +3 -1
- package/package.json +9 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Node, Edge, Connection } from 'reactflow';
|
|
2
|
-
import { GeneratorNodeData, TransformNodeData, SaveNodeData, InputNodeData, VisionNodeData, TextNodeData, NodeDefinition, GalleryTemplate } from '@teamflojo/floimg-studio-shared';
|
|
2
|
+
import { GeneratorNodeData, TransformNodeData, SaveNodeData, InputNodeData, VisionNodeData, TextNodeData, NodeDefinition, GalleryTemplate, StudioNode, StudioEdge } from '@teamflojo/floimg-studio-shared';
|
|
3
3
|
|
|
4
4
|
type NodeData = GeneratorNodeData | TransformNodeData | SaveNodeData | InputNodeData | VisionNodeData | TextNodeData;
|
|
5
5
|
type NodeExecutionStatus = "idle" | "running" | "completed" | "error";
|
|
@@ -20,6 +20,7 @@ export interface SavedWorkflow {
|
|
|
20
20
|
interface ExecutionState {
|
|
21
21
|
status: "idle" | "running" | "completed" | "error";
|
|
22
22
|
imageIds: string[];
|
|
23
|
+
imageUrls: string[];
|
|
23
24
|
previews: Record<string, string>;
|
|
24
25
|
dataOutputs: Record<string, DataOutput>;
|
|
25
26
|
nodeStatus: Record<string, NodeExecutionStatus>;
|
|
@@ -66,6 +67,7 @@ interface WorkflowStore {
|
|
|
66
67
|
execution: ExecutionState;
|
|
67
68
|
execute: () => Promise<void>;
|
|
68
69
|
exportToYaml: () => Promise<string>;
|
|
70
|
+
importFromYaml: (nodes: StudioNode[], edges: StudioEdge[], name?: string) => void;
|
|
69
71
|
}
|
|
70
72
|
export declare const useWorkflowStore: import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<WorkflowStore>, "setState" | "persist"> & {
|
|
71
73
|
setState(partial: WorkflowStore | Partial<WorkflowStore> | ((state: WorkflowStore) => WorkflowStore | Partial<WorkflowStore>), replace?: false | undefined): unknown;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teamflojo/floimg-studio-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "FloImg Studio React components for building visual workflow editors",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,13 +40,6 @@
|
|
|
40
40
|
"sideEffects": [
|
|
41
41
|
"*.css"
|
|
42
42
|
],
|
|
43
|
-
"scripts": {
|
|
44
|
-
"dev": "vite 2>&1 | tee ../../logs/frontend.log",
|
|
45
|
-
"build": "vite build --mode lib",
|
|
46
|
-
"build:app": "tsc && vite build",
|
|
47
|
-
"preview": "vite preview",
|
|
48
|
-
"typecheck": "tsc --noEmit"
|
|
49
|
-
},
|
|
50
43
|
"peerDependencies": {
|
|
51
44
|
"react": "^18.0.0 || ^19.0.0",
|
|
52
45
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
@@ -70,5 +63,12 @@
|
|
|
70
63
|
"vite": "^5.1.6",
|
|
71
64
|
"vite-plugin-dts": "^3.7.3",
|
|
72
65
|
"zustand": "^5.0.9"
|
|
66
|
+
},
|
|
67
|
+
"scripts": {
|
|
68
|
+
"dev": "vite 2>&1 | tee ../../logs/frontend.log",
|
|
69
|
+
"build": "vite build --mode lib",
|
|
70
|
+
"build:app": "tsc && vite build",
|
|
71
|
+
"preview": "vite preview",
|
|
72
|
+
"typecheck": "tsc --noEmit"
|
|
73
73
|
}
|
|
74
|
-
}
|
|
74
|
+
}
|