@yiyi_zhang/reactflow-ui 0.1.0 → 0.2.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/README.md CHANGED
@@ -6,7 +6,8 @@
6
6
 
7
7
  ## ✨ 特性
8
8
 
9
- - **从零创建**: 无需预先提供 JSON,通过空状态引导面板即可新建空白工作流或 AI 一键生成。
9
+ - **从零创建**: 无需预先提供 JSON,通过空状态引导面板即可新建空白工作流,配合中心 [+] 引导按钮快速开始建模。
10
+ - **极简设计**: 移除了冗余的开始 (START)、结束 (END) 及虚拟合并 (JOIN) 节点,工作流视图更加简洁直观。
10
11
  - **可视化建模**: 支持 DAG 工作流的拖拽式设计,连接线默认使用清晰的折线样式。
11
12
  - **智能布局**: 支持复杂图表的自动布局 (TB/LR),包括针对超大流程优化的"蛇形布局"。
12
13
  - **运行态监控**: 实时可视化执行状态,支持路径高亮和任务详情查看。
@@ -3,5 +3,5 @@ interface ConfirmDialogProps {
3
3
  onConfirm: () => void;
4
4
  onCancel: () => void;
5
5
  }
6
- declare const ConfirmDialog: ({ message, onConfirm, onCancel }: ConfirmDialogProps) => import("react/jsx-runtime").JSX.Element;
6
+ declare const ConfirmDialog: ({ message, onConfirm, onCancel }: ConfirmDialogProps) => import("react").ReactPortal;
7
7
  export default ConfirmDialog;
@@ -0,0 +1,5 @@
1
+ import { NodeProps } from 'reactflow';
2
+ import { WorkflowNodeData } from '../../types/workflow';
3
+ type DynamicPlaceholderNodeProps = NodeProps<WorkflowNodeData>;
4
+ declare const _default: import("react").MemoExoticComponent<({ data }: DynamicPlaceholderNodeProps) => import("react/jsx-runtime").JSX.Element>;
5
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { NodeProps } from 'reactflow';
2
+ declare const _default: import("react").MemoExoticComponent<({ data }: NodeProps) => import("react/jsx-runtime").JSX.Element>;
3
+ export default _default;
@@ -5,7 +5,7 @@ export interface TaskTypeConfig {
5
5
  description: string;
6
6
  category: TaskCategory;
7
7
  icon: any;
8
- defaultData?: any;
8
+ hidden?: boolean;
9
9
  }
10
10
  export declare const TASK_TYPES: TaskTypeConfig[];
11
11
  export declare const TASK_CATEGORIES: {
@@ -1,8 +1,9 @@
1
1
  /**
2
- * 获取节点的运行态信息(mode 和 executionData)
2
+ * 获取节点的运行态信息(mode、executionData、retryCount)
3
3
  */
4
4
  export declare const useNodeExecution: (taskReferenceName: string) => {
5
5
  mode: import("../types/workflow").EditorMode;
6
6
  execution: import("../types/workflow").TaskExecutionData | null | undefined;
7
7
  isRunning: boolean;
8
+ retryCount: number;
8
9
  };
@@ -11,6 +11,14 @@ export declare function findTaskByRef(tasks: TaskDef[] | undefined, taskRef: str
11
11
  * 从任务列表中删除指定任务
12
12
  */
13
13
  export declare function removeTaskFromDef(tasks: TaskDef[] | undefined, taskRef: string): boolean;
14
+ /**
15
+ * 递归搜索包含 taskRef 的平铺 tasks 层,返回该层列表
16
+ */
17
+ export declare function findContainerList(tasks: TaskDef[] | undefined, taskRef: string): TaskDef[] | null;
18
+ /** 在同一 tasks 层中,找 forkRef 之后最近的 JOIN/EXCLUSIVE_JOIN */
19
+ export declare function findJoinForFork(tasks: TaskDef[], forkRef: string): string | null;
20
+ /** 在同一 tasks 层中,找 joinRef 之前最近的 FORK_JOIN/FORK_JOIN_DYNAMIC */
21
+ export declare function findForkForJoin(tasks: TaskDef[], joinRef: string): string | null;
14
22
  /**
15
23
  * 在指定的 sourceRef 之后插入一个新任务
16
24
  */