UNPKG

@hadyfayed/filament-workflow-canvas

Version:

Visual workflow builder and canvas component for Filament applications

14 lines 514 B
import { Node } from 'reactflow'; import { NodeData } from '../types'; export declare function useNodeState(node: Node<NodeData>, onNodeUpdate: (node: Node) => void): { nodeData: { label: string; description: any; config: Record<string, any>; position: import('reactflow').XYPosition; }; updateField: (path: string, value: any) => void; updateConfig: (configPath: string, value: any) => void; clearState: () => void; }; //# sourceMappingURL=useNodeState.d.ts.map