@digitalsee-ai/rcs 1.1.5 → 1.1.6
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/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/hooks/useNodeActionState.d.ts +1 -3
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/hooks/useNodeActionState.test.d.ts +1 -0
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/utils/connectableQuery.d.ts +2 -0
- package/dist/components/digitalsee/workflow/api/connectable.types.d.ts +3 -0
- package/dist/components/digitalsee/workflow/hooks/useWorkflow.d.ts +1 -1
- package/dist/components/digitalsee/workflow/utils/queuedNodeConfigOpen.d.ts +12 -0
- package/dist/components/digitalsee/workflow/utils/queuedNodeConfigOpen.test.d.ts +1 -0
- package/dist/{index-C8aUQi22.mjs → index-7gRAatVW.mjs} +9108 -9060
- package/dist/index-7gRAatVW.mjs.map +1 -0
- package/dist/{index-CTWDrXXQ.mjs → index-DZBm1v7J.mjs} +2 -2
- package/dist/{index-CTWDrXXQ.mjs.map → index-DZBm1v7J.mjs.map} +1 -1
- package/dist/rcs.es.js +1 -1
- package/dist/rcs.umd.js +56 -56
- package/dist/rcs.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/index-C8aUQi22.mjs.map +0 -1
|
@@ -12,14 +12,12 @@ interface UseNodeActionStateProps {
|
|
|
12
12
|
}) => Promise<ActionItem[]>;
|
|
13
13
|
isMcpServerEntryMode: boolean;
|
|
14
14
|
visibleNodes: NodeTypeItem[];
|
|
15
|
-
searchResults: NodeTypeItem[];
|
|
16
15
|
searchText: string;
|
|
17
|
-
activeCategoryId?: string;
|
|
18
16
|
}
|
|
19
17
|
/**
|
|
20
18
|
* @description 管理连接器的展开状态、动作缓存,以及异步动作请求的竞态保护。
|
|
21
19
|
*/
|
|
22
|
-
export declare function useNodeActionState({ actionRequestContextKey, contextMode, fetchNodeActions, isMcpServerEntryMode, visibleNodes,
|
|
20
|
+
export declare function useNodeActionState({ actionRequestContextKey, contextMode, fetchNodeActions, isMcpServerEntryMode, visibleNodes, searchText, }: UseNodeActionStateProps): {
|
|
23
21
|
expandedNodeIds: string[];
|
|
24
22
|
nodeActionsMap: Record<string, NodeActionMeta>;
|
|
25
23
|
handleNodeToggle: (node: NodeTypeItem) => Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -14,6 +14,8 @@ export interface ConnectableNodePackageQueryBase {
|
|
|
14
14
|
categoryName?: string;
|
|
15
15
|
linkId?: string;
|
|
16
16
|
keyword?: string;
|
|
17
|
+
/** 当前工作流 ID,对应请求体 flow_id */
|
|
18
|
+
flowId?: string;
|
|
17
19
|
page?: number;
|
|
18
20
|
size?: number;
|
|
19
21
|
}
|
|
@@ -50,6 +52,7 @@ interface ConnectableNodePackageRequestBase {
|
|
|
50
52
|
category_name?: string;
|
|
51
53
|
link_id?: string;
|
|
52
54
|
keyword?: string;
|
|
55
|
+
flow_id?: string;
|
|
53
56
|
page?: number;
|
|
54
57
|
size?: number;
|
|
55
58
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Connection, Edge, Node, OnConnect, OnEdgesChange, OnNodesChange } from '@xyflow/react';
|
|
2
|
+
import { FlowStatus } from '../NodesConfig/define/flow';
|
|
2
3
|
import { EdgeData } from '../types/Edge';
|
|
3
4
|
import { NodeData } from '../types/Node';
|
|
4
|
-
import { FlowStatus } from '../NodesConfig/define/flow';
|
|
5
5
|
export interface UseWorkflowOptions {
|
|
6
6
|
initialNodes?: Node<NodeData>[];
|
|
7
7
|
initialEdges?: Edge<EdgeData>[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 新增节点后「保存完成再打开配置弹窗」的排队状态。
|
|
3
|
+
*
|
|
4
|
+
* 历史实现挂在 window 上,保存成功时由 updateSaveStatus 消费。
|
|
5
|
+
* 若用户在保存完成前关闭弹窗,必须取消排队,否则会偶现再次自动打开。
|
|
6
|
+
*/
|
|
7
|
+
/** 排队:保存成功后打开指定节点配置 */
|
|
8
|
+
export declare function queueNodeConfigOpen(nodeId: string | null | undefined): void;
|
|
9
|
+
/** 取消排队(用户关闭配置弹窗时调用) */
|
|
10
|
+
export declare function cancelQueuedNodeConfigOpen(): void;
|
|
11
|
+
/** 消费排队并清空,返回待打开的节点 ID(无则空串) */
|
|
12
|
+
export declare function consumeQueuedNodeConfigOpen(): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|