@teamflojo/floimg-studio-ui 0.2.3 → 0.3.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.
@@ -1,5 +1,6 @@
1
1
  import { Node, Edge, Connection } from 'reactflow';
2
- import { GeneratorNodeData, TransformNodeData, SaveNodeData, InputNodeData, VisionNodeData, TextNodeData, NodeDefinition, GalleryTemplate, GeneratedWorkflowData, StudioNode, StudioEdge } from '@teamflojo/floimg-studio-shared';
2
+ import { GeneratorNodeData, TransformNodeData, SaveNodeData, InputNodeData, VisionNodeData, TextNodeData, NodeDefinition, GeneratedWorkflowData, StudioNode, StudioEdge } from '@teamflojo/floimg-studio-shared';
3
+ import { Template } from '@teamflojo/floimg-templates';
3
4
 
4
5
  type NodeData = GeneratorNodeData | TransformNodeData | SaveNodeData | InputNodeData | VisionNodeData | TextNodeData;
5
6
  type NodeExecutionStatus = "idle" | "running" | "completed" | "error";
@@ -31,7 +32,7 @@ interface WorkflowStore {
31
32
  edges: Edge[];
32
33
  selectedNodeId: string | null;
33
34
  currentTemplateId: string | null;
34
- loadTemplate: (template: GalleryTemplate) => void;
35
+ loadTemplate: (template: Template) => void;
35
36
  clearWorkflow: () => void;
36
37
  savedWorkflows: SavedWorkflow[];
37
38
  activeWorkflowId: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamflojo/floimg-studio-ui",
3
- "version": "0.2.3",
3
+ "version": "0.3.1",
4
4
  "description": "FloImg Studio React components for building visual workflow editors",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -48,7 +48,8 @@
48
48
  "zustand": "^4.0.0 || ^5.0.0"
49
49
  },
50
50
  "dependencies": {
51
- "@teamflojo/floimg-studio-shared": "^0.1.0"
51
+ "@teamflojo/floimg-studio-shared": "^0.1.0",
52
+ "@teamflojo/floimg-templates": "0.1.0"
52
53
  },
53
54
  "devDependencies": {
54
55
  "@tanstack/react-query": "^5.90.12",
@@ -1,31 +0,0 @@
1
- import { GalleryTemplate } from '@teamflojo/floimg-studio-shared';
2
-
3
- export declare const salesDashboard: GalleryTemplate;
4
- export declare const userGrowth: GalleryTemplate;
5
- export declare const apiFlowDiagram: GalleryTemplate;
6
- export declare const systemArchitecture: GalleryTemplate;
7
- export declare const gitWorkflow: GalleryTemplate;
8
- export declare const websiteQR: GalleryTemplate;
9
- export declare const wifiQR: GalleryTemplate;
10
- export declare const chartWithWatermark: GalleryTemplate;
11
- export declare const diagramToWebP: GalleryTemplate;
12
- /**
13
- * All available templates, organized by category
14
- */
15
- export declare const templates: GalleryTemplate[];
16
- /**
17
- * Get all unique categories
18
- */
19
- export declare function getCategories(): string[];
20
- /**
21
- * Get templates by category
22
- */
23
- export declare function getTemplatesByCategory(category: string): GalleryTemplate[];
24
- /**
25
- * Get a template by ID
26
- */
27
- export declare function getTemplateById(id: string): GalleryTemplate | undefined;
28
- /**
29
- * Search templates by query
30
- */
31
- export declare function searchTemplates(query: string): GalleryTemplate[];