@teamflojo/floimg-studio-ui 0.3.3 → 0.4.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/api/sse.d.ts +21 -0
- package/dist/components/OutputInspector.d.ts +14 -0
- package/dist/index.js +2053 -1477
- package/dist/index.js.map +1 -1
- package/dist/stores/workflowStore.d.ts +5 -1
- package/package.json +3 -3
|
@@ -3,7 +3,7 @@ import { GeneratorNodeData, TransformNodeData, SaveNodeData, InputNodeData, Visi
|
|
|
3
3
|
import { Template } from '@teamflojo/floimg-templates';
|
|
4
4
|
|
|
5
5
|
type NodeData = GeneratorNodeData | TransformNodeData | SaveNodeData | InputNodeData | VisionNodeData | TextNodeData;
|
|
6
|
-
type NodeExecutionStatus = "idle" | "running" | "completed" | "error";
|
|
6
|
+
type NodeExecutionStatus = "idle" | "pending" | "running" | "completed" | "error";
|
|
7
7
|
interface DataOutput {
|
|
8
8
|
dataType: "text" | "json";
|
|
9
9
|
content: string;
|
|
@@ -72,9 +72,13 @@ interface WorkflowStore {
|
|
|
72
72
|
setSelectedNode: (id: string | null) => void;
|
|
73
73
|
execution: ExecutionState;
|
|
74
74
|
execute: () => Promise<void>;
|
|
75
|
+
cancelExecution: () => void;
|
|
75
76
|
exportToYaml: () => Promise<string>;
|
|
76
77
|
importFromYaml: (nodes: StudioNode[], edges: StudioEdge[], name?: string) => void;
|
|
77
78
|
loadGeneratedWorkflow: (workflow: GeneratedWorkflowData) => void;
|
|
79
|
+
inspectedNodeId: string | null;
|
|
80
|
+
openOutputInspector: (nodeId: string) => void;
|
|
81
|
+
closeOutputInspector: () => void;
|
|
78
82
|
}
|
|
79
83
|
export declare const useWorkflowStore: import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<WorkflowStore>, "setState" | "persist"> & {
|
|
80
84
|
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.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "FloImg Studio React components for building visual workflow editors",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"zustand": "^4.0.0 || ^5.0.0"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@teamflojo/floimg-
|
|
52
|
-
"@teamflojo/floimg-
|
|
51
|
+
"@teamflojo/floimg-studio-shared": "0.4.0",
|
|
52
|
+
"@teamflojo/floimg-templates": "0.2.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@tanstack/react-query": "^5.90.12",
|