@fluxo-dev/shell-workflow 26.2.4 → 26.2.5
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/index.esm.css +84 -16
- package/index.esm.js +8421 -7792
- package/package.json +4 -4
- package/src/lib/etl/components/edges/EtlCustomEdge.d.ts +3 -0
- package/src/lib/workflow/designer-v2/components/debug-mode/DebugOutputPanel.d.ts +13 -0
- package/src/lib/workflow/designer-v2/hooks/index.d.ts +1 -0
- package/src/lib/workflow/designer-v2/hooks/useWorkflowDebug.d.ts +23 -0
- package/src/lib/workflow/designer-v2/types/node-data.types.d.ts +17 -0
- package/src/lib/workflow/designer-v2/types/workflow-state.types.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluxo-dev/shell-workflow",
|
|
3
|
-
"version": "26.2.
|
|
3
|
+
"version": "26.2.5",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": "^18.3.1",
|
|
6
6
|
"@mantine/core": "^7.12.2",
|
|
7
7
|
"react-router-dom": "^6.11.2",
|
|
8
8
|
"react-redux": "^8.0.5",
|
|
9
9
|
"@reduxjs/toolkit": "^1.9.1",
|
|
10
|
-
"@fluxo-dev/api-client-base": "^26.2.
|
|
11
|
-
"@fluxo-dev/state": "^26.2.
|
|
12
|
-
"@fluxo-dev/ui-components": "^26.2.
|
|
10
|
+
"@fluxo-dev/api-client-base": "^26.2.5",
|
|
11
|
+
"@fluxo-dev/state": "^26.2.5",
|
|
12
|
+
"@fluxo-dev/ui-components": "^26.2.5"
|
|
13
13
|
},
|
|
14
14
|
"module": "./index.esm.js",
|
|
15
15
|
"type": "module",
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { EdgeProps } from '@xyflow/react';
|
|
3
|
+
export declare const EtlCustomEdge: React.MemoExoticComponent<({ id, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, style, markerEnd, selected, animated, }: EdgeProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Node } from '@xyflow/react';
|
|
3
|
+
import { NodeData } from '../../types';
|
|
4
|
+
import { NodeDebugOutput, NodeDebugState } from '../../types/node-data.types';
|
|
5
|
+
interface DebugOutputPanelProps {
|
|
6
|
+
opened: boolean;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
node: Node<NodeData> | null;
|
|
9
|
+
debugState?: NodeDebugState;
|
|
10
|
+
debugOutput?: NodeDebugOutput;
|
|
11
|
+
}
|
|
12
|
+
export declare const DebugOutputPanel: React.MemoExoticComponent<({ opened, onClose, node, debugState, debugOutput }: DebugOutputPanelProps) => import("react/jsx-runtime").JSX.Element | null>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Node, Edge } from '@xyflow/react';
|
|
2
|
+
import { ActionInputDescriptor, ActionInput } from '@fluxo-dev/api-client-base';
|
|
3
|
+
import { NodeData } from '../types';
|
|
4
|
+
import { NodeDebugState, NodeDebugOutput } from '../types/node-data.types';
|
|
5
|
+
export type DebugSessionState = 'idle' | 'running' | 'completed' | 'failed';
|
|
6
|
+
export interface UseWorkflowDebugReturn {
|
|
7
|
+
debugState: DebugSessionState;
|
|
8
|
+
nodeDebugStates: Record<string, NodeDebugState>;
|
|
9
|
+
nodeDebugOutputs: Record<string, NodeDebugOutput>;
|
|
10
|
+
showInputModal: boolean;
|
|
11
|
+
setShowInputModal: (open: boolean) => void;
|
|
12
|
+
triggerInputs: ActionInputDescriptor[];
|
|
13
|
+
triggerNode: Node<NodeData> | undefined;
|
|
14
|
+
requestDebug: () => void;
|
|
15
|
+
startDebug: (inputs: Record<string, ActionInput>) => Promise<void>;
|
|
16
|
+
stopDebug: () => Promise<void>;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Hook che gestisce la modalità debug del workflow designer.
|
|
20
|
+
* Avvia il workflow tramite il backend, si connette a SignalR e aggiorna
|
|
21
|
+
* lo stato visivo di ogni nodo in tempo reale.
|
|
22
|
+
*/
|
|
23
|
+
export declare function useWorkflowDebug(nodes: Node<NodeData>[], edges: Edge[]): UseWorkflowDebugReturn;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
import { NodeType, NodeHandles, ActionInput } from '@fluxo-dev/api-client-base';
|
|
2
|
+
/**
|
|
3
|
+
* Debug state for a node during debug execution
|
|
4
|
+
*/
|
|
5
|
+
export type NodeDebugState = 'running' | 'success' | 'error';
|
|
6
|
+
/**
|
|
7
|
+
* Debug output data for a node
|
|
8
|
+
*/
|
|
9
|
+
export interface NodeDebugOutput {
|
|
10
|
+
inputs?: Record<string, unknown>;
|
|
11
|
+
outputs?: Record<string, unknown>;
|
|
12
|
+
durationMs?: number;
|
|
13
|
+
error?: string;
|
|
14
|
+
startTime?: string;
|
|
15
|
+
endTime?: string;
|
|
16
|
+
}
|
|
2
17
|
/**
|
|
3
18
|
* Extended NodeData for ReactFlow nodes
|
|
4
19
|
* Includes all properties needed for UI + backend compatibility
|
|
@@ -17,6 +32,8 @@ export interface NodeData {
|
|
|
17
32
|
eventName?: string;
|
|
18
33
|
eventKey?: string;
|
|
19
34
|
branches?: number;
|
|
35
|
+
debugState?: NodeDebugState;
|
|
36
|
+
debugOutput?: NodeDebugOutput;
|
|
20
37
|
[key: string]: unknown;
|
|
21
38
|
}
|
|
22
39
|
/**
|