@digitalsee-ai/rcs 0.0.14 → 1.0.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/dist/components/digitalsee/workflow/Canvas/NextConfigModalWrapper.d.ts +9 -0
- package/dist/components/digitalsee/workflow/Canvas/NextWorkflowCanvas.d.ts +4 -0
- package/dist/components/digitalsee/workflow/Canvas/NextWorkflowCanvasHeader.d.ts +15 -0
- package/dist/components/digitalsee/workflow/Canvas/WorkflowCanvas.d.ts +1 -12
- package/dist/components/digitalsee/workflow/Canvas/WorkflowCanvasBase.d.ts +4 -0
- package/dist/components/digitalsee/workflow/Canvas/WorkflowCanvasHeader.d.ts +2 -1
- package/dist/components/digitalsee/workflow/Canvas/color.d.ts +1 -1
- package/dist/components/digitalsee/workflow/Canvas/constants.d.ts +75 -0
- package/dist/components/digitalsee/workflow/Canvas/hooks/createNodeAddHandlerNext.d.ts +49 -0
- package/dist/components/digitalsee/workflow/Canvas/hooks/useCanvasApi.d.ts +22 -0
- package/dist/components/digitalsee/workflow/Canvas/hooks/useDataLoading.d.ts +21 -0
- package/dist/components/digitalsee/workflow/Canvas/hooks/useNodeAddCallback.d.ts +44 -0
- package/dist/components/digitalsee/workflow/Canvas/hooks/useNodeFormDraftCache.d.ts +14 -0
- package/dist/components/digitalsee/workflow/Canvas/hooks/useWorkflowCanvasState.d.ts +78 -0
- package/dist/components/digitalsee/workflow/Canvas/types.d.ts +91 -0
- package/dist/components/digitalsee/workflow/Edges/BaseEdge.d.ts +3 -2
- package/dist/components/digitalsee/workflow/Edges/EdgeFactory.d.ts +43 -0
- package/dist/components/digitalsee/workflow/NextNodesConfigModal/index.d.ts +13 -0
- package/dist/components/digitalsee/workflow/Nodes/ActionNode.d.ts +3 -3
- package/dist/components/digitalsee/workflow/Nodes/AgentNode.d.ts +2 -2
- package/dist/components/digitalsee/workflow/Nodes/BrowserNode.d.ts +2 -2
- package/dist/components/digitalsee/workflow/Nodes/CustomNode.d.ts +2 -2
- package/dist/components/digitalsee/workflow/Nodes/NextNodeFactory.d.ts +11 -0
- package/dist/components/digitalsee/workflow/Nodes/NextNodes/NextActionNode.d.ts +9 -0
- package/dist/components/digitalsee/workflow/Nodes/NextNodes/NextBaseNode.d.ts +15 -0
- package/dist/components/digitalsee/workflow/Nodes/NextNodes/NextConditionNode.d.ts +10 -0
- package/dist/components/digitalsee/workflow/Nodes/NextNodes/NextLoopNode.d.ts +10 -0
- package/dist/components/digitalsee/workflow/Nodes/NextNodes/NextSwitchNode.d.ts +10 -0
- package/dist/components/digitalsee/workflow/Nodes/NextNodes/NextTriggerNode.d.ts +9 -0
- package/dist/components/digitalsee/workflow/Nodes/NodeFactory.d.ts +3 -12
- package/dist/components/digitalsee/workflow/Nodes/StickyNoteNode.d.ts +2 -2
- package/dist/components/digitalsee/workflow/Nodes/SuperBaseNode.d.ts +1 -1
- package/dist/components/digitalsee/workflow/Nodes/components/NextNodeDescription.d.ts +16 -0
- package/dist/components/digitalsee/workflow/Nodes/components/NextNodeOperations.d.ts +11 -0
- package/dist/components/digitalsee/workflow/Nodes/components/NodeOperations.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/ActionNodeConfig/index.d.ts +7 -1
- package/dist/components/digitalsee/workflow/NodesConfig/ConditionNodeConfig/index.d.ts +5 -4
- package/dist/components/digitalsee/workflow/NodesConfig/ErrorHandler.d.ts +17 -2
- package/dist/components/digitalsee/workflow/NodesConfig/LoopNodeConfig/index.d.ts +2 -3
- package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/CreateCredentialModal.d.ts +13 -0
- package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/CredentialSelect.d.ts +17 -0
- package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/ModifyCredentialModal.d.ts +17 -0
- package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/fieldSchemaAdapter.d.ts +10 -0
- package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/fieldSchemaAdapter.test.d.ts +1 -0
- package/dist/components/digitalsee/workflow/NodesConfig/NextNodeConfig/index.d.ts +15 -0
- package/dist/components/digitalsee/workflow/NodesConfig/SwitchNodeConfig/index.d.ts +6 -5
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/CreateAccountModal/index.d.ts +2 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/CredentialAccountForm.d.ts +10 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/DateField/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/DateTimeField/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/ExtendObjectField/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/FixedObjectField/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/PasswordField/index.d.ts +2 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/TextAreaField/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/TextField/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/TimeField/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/ModifyAccountModal/index.d.ts +3 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/index.d.ts +5 -3
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/components/AIFormField.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/DateField/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/DateTimeField/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/FixedObjectField/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/HourMinuteField/index.d.ts +5 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/common-placeholder-theme.d.ts +11 -11
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JavascriptTagEditorField/editor.d.ts +1 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/interface.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/plugin/keywords.d.ts +2 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/common-placeholder-theme.d.ts +11 -11
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/interface.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/plugin/keywords.d.ts +2 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/plugin/keywords.test.d.ts +1 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{MutilRowAIExtractConfigField → MultiRowAIExtractConfigField}/index.d.ts +2 -2
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/RichTagInput/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/RichTagInput/useVariableInfo.d.ts +13 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/TextField/index.d.ts +2 -2
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/TimeField/index.d.ts +1 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/index.d.ts +3 -3
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/next-compatible.d.ts +2 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/next-compatible.test.d.ts +1 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/NextNodeSettings.d.ts +6 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/NextNodeTest.d.ts +6 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/NextVariableModal/index.d.ts +6 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/NextVariableModal/variable-tree-next.d.ts +49 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/NextVariableModal/variable-tree-next.test.d.ts +1 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/VariableModal/index.d.ts +2 -1
- package/dist/components/digitalsee/workflow/NodesConfig/context.d.ts +4 -0
- package/dist/components/digitalsee/workflow/NodesConfig/define/actions.d.ts +3 -3
- package/dist/components/digitalsee/workflow/NodesConfig/define/condition.d.ts +5 -58
- package/dist/components/digitalsee/workflow/NodesConfig/define/condition.test.d.ts +1 -0
- package/dist/components/digitalsee/workflow/NodesConfig/define/flow.d.ts +1 -26
- package/dist/components/digitalsee/workflow/NodesConfig/index.d.ts +3 -6
- package/dist/components/digitalsee/workflow/NodesConfig/utils/credentialRequirement.d.ts +17 -0
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/CategoryTabs.d.ts +1 -1
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/types.d.ts +17 -1
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/utils/dataTransformers.d.ts +2 -1
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/utils/dataTransformers.test.d.ts +1 -0
- package/dist/components/digitalsee/workflow/Panels/SimpleNodeSelectorPanel/components/NodeListItem.d.ts +8 -0
- package/dist/components/digitalsee/workflow/Panels/SimpleNodeSelectorPanel/hooks/useNodeList.d.ts +14 -0
- package/dist/components/digitalsee/workflow/Panels/SimpleNodeSelectorPanel/index.d.ts +9 -0
- package/dist/components/digitalsee/workflow/api/dip.d.ts +311 -0
- package/dist/components/digitalsee/workflow/api/dip.types.d.ts +996 -0
- package/dist/components/digitalsee/workflow/api/index.d.ts +42 -13
- package/dist/components/digitalsee/workflow/api/index.test.d.ts +1 -0
- package/dist/components/digitalsee/workflow/builtin/controls/AuthTokenField/index.d.ts +11 -0
- package/dist/components/digitalsee/workflow/builtin/controls/ConfigSubflow/index.d.ts +10 -0
- package/dist/components/digitalsee/workflow/builtin/controls/ConfigSubflow/types.d.ts +81 -0
- package/dist/components/digitalsee/workflow/builtin/controls/MultiRowGuard/index.d.ts +13 -0
- package/dist/components/digitalsee/workflow/builtin/controls/MultiRowGuard/types.d.ts +98 -0
- package/dist/components/digitalsee/workflow/builtin/controls/MutilRowGuard/index.d.ts +13 -0
- package/dist/components/digitalsee/workflow/builtin/controls/SecretKeyField/index.d.ts +11 -0
- package/dist/components/digitalsee/workflow/builtin/controls/SelectOAuth2ClientField/index.d.ts +11 -0
- package/dist/components/digitalsee/workflow/builtin/globalConfig/index.d.ts +1 -0
- package/dist/components/digitalsee/workflow/builtin/globalConfig/service.d.ts +8 -0
- package/dist/components/digitalsee/workflow/builtin/globalConfig/service.test.d.ts +1 -0
- package/dist/components/digitalsee/workflow/builtin/globalConfig/types.d.ts +17 -0
- package/dist/components/digitalsee/workflow/constants/nextHandles.d.ts +1 -0
- package/dist/components/digitalsee/workflow/enums/canvas.d.ts +63 -0
- package/dist/components/digitalsee/workflow/enums/edge.d.ts +10 -0
- package/dist/components/digitalsee/workflow/enums/handle.d.ts +42 -0
- package/dist/components/digitalsee/workflow/enums/index.d.ts +5 -0
- package/dist/components/digitalsee/workflow/enums/node.d.ts +199 -0
- package/dist/components/digitalsee/workflow/enums/workflow.d.ts +90 -0
- package/dist/components/digitalsee/workflow/events/eventBus.d.ts +8 -2
- package/dist/components/digitalsee/workflow/hooks/use-before-unload.d.ts +1 -1
- package/dist/components/digitalsee/workflow/hooks/useCanvasLayout.d.ts +2 -1
- package/dist/components/digitalsee/workflow/hooks/useHandleConnections.d.ts +1 -1
- package/dist/components/digitalsee/workflow/hooks/usePanel.d.ts +26 -0
- package/dist/components/digitalsee/workflow/hooks/useVariables.d.ts +52 -0
- package/dist/components/digitalsee/workflow/hooks/useWorkflow.d.ts +3 -3
- package/dist/components/digitalsee/workflow/index.d.ts +11 -2
- package/dist/components/digitalsee/workflow/store/index.d.ts +17 -0
- package/dist/components/digitalsee/workflow/store/panelSlice.d.ts +5 -5
- package/dist/components/digitalsee/workflow/store/workflowSlice.d.ts +44 -0
- package/dist/components/digitalsee/workflow/store/workflowSlice.test.d.ts +1 -0
- package/dist/components/digitalsee/workflow/types/Edge.d.ts +1 -3
- package/dist/components/digitalsee/workflow/types/Handle.d.ts +3 -29
- package/dist/components/digitalsee/workflow/types/Node.d.ts +25 -63
- package/dist/components/digitalsee/workflow/types/NodeProtocol.d.ts +1 -12
- package/dist/components/digitalsee/workflow/types/Workflow.d.ts +4 -26
- package/dist/components/digitalsee/workflow/types/engine.d.ts +4 -0
- package/dist/components/digitalsee/workflow/utils/common.d.ts +1 -0
- package/dist/components/digitalsee/workflow/utils/flowDataAdapterNext.d.ts +13 -0
- package/dist/components/digitalsee/workflow/utils/glob.d.ts +1 -1
- package/dist/components/digitalsee/workflow/utils/layoutUtils.d.ts +2 -3
- package/dist/components/digitalsee/workflow/utils/nextNodeSchemaCache.d.ts +6 -0
- package/dist/components/digitalsee/workflow/utils/nextNodeSchemaCache.test.d.ts +1 -0
- package/dist/components/digitalsee/workflow/utils/nodeDataFormatter.d.ts +1 -1
- package/dist/components/digitalsee/workflow/utils/nodeDataFormatterNext.d.ts +11 -0
- package/dist/components/digitalsee/workflow/utils/nodeSummaryAdapter.d.ts +15 -0
- package/dist/components/dynamic-form/DynamicForm.d.ts +8 -3
- package/dist/components/dynamic-form/DynamicForm.test.d.ts +1 -0
- package/dist/components/dynamic-form/DynamicFormContext.d.ts +4 -0
- package/dist/components/dynamic-form/FieldRenderer.d.ts +6 -2
- package/dist/components/dynamic-form/components/ValueModeWrapper/index.d.ts +7 -1
- package/dist/components/dynamic-form/components/VariableInput/index.d.ts +1 -0
- package/dist/components/dynamic-form/fields/complex/KeyValueField.test.d.ts +1 -0
- package/dist/components/dynamic-form/fields/index.d.ts +12 -0
- package/dist/components/dynamic-form/index.d.ts +6 -6
- package/dist/components/dynamic-form/registry/createFieldComponent.test.d.ts +1 -0
- package/dist/components/dynamic-form/registry/index.d.ts +2 -2
- package/dist/components/dynamic-form/types/field-component.d.ts +12 -3
- package/dist/locales/en-US/common.d.ts +8 -17
- package/dist/locales/en-US/components.d.ts +28 -0
- package/dist/locales/en-US/link/flow.d.ts +9 -5
- package/dist/locales/en-US.d.ts +42 -22
- package/dist/locales/index.d.ts +2 -714
- package/dist/locales/zh-CN/common.d.ts +8 -17
- package/dist/locales/zh-CN/components.d.ts +28 -0
- package/dist/locales/zh-CN/link/flow.d.ts +9 -5
- package/dist/locales/zh-CN.d.ts +42 -22
- package/dist/locales/zh-TW/common.d.ts +8 -17
- package/dist/locales/zh-TW/components.d.ts +28 -0
- package/dist/locales/zh-TW/link/flow.d.ts +9 -5
- package/dist/locales/zh-TW.d.ts +42 -22
- package/dist/postcss.config.js +1 -0
- package/dist/rcs.css +1 -1
- package/dist/rcs.es.js +48332 -39258
- package/dist/rcs.es.js.map +1 -0
- package/dist/rcs.umd.js +71 -66
- package/dist/rcs.umd.js.map +1 -0
- package/package.json +36 -37
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/HourMiniuteField/index.d.ts +0 -5
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JavscriptTagEditorField/editor.d.ts +0 -1
- package/dist/components/digitalsee/workflow/NodesConfig/define/config-form-item.d.ts +0 -34
- package/dist/components/digitalsee/workflow/de.d.ts +0 -1
- package/dist/components/digitalsee/workflow/types/SaveStatus.d.ts +0 -1
- /package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/extensions.d.ts +0 -0
- /package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/index.d.ts +0 -0
- /package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/plugin/base-theme.d.ts +0 -0
- /package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/plugin/custom-completions.d.ts +0 -0
- /package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/plugin/functions.d.ts +0 -0
- /package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/plugin/hint.d.ts +0 -0
- /package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/{JavscriptTagEditorField → JavascriptTagEditorField}/plugin/placeholders.d.ts +0 -0
- /package/dist/components/digitalsee/workflow/hooks/{use-wokflow-id.d.ts → use-workflow-id.d.ts} +0 -0
|
@@ -1,23 +1,7 @@
|
|
|
1
1
|
import { Node as ReactFlowNode } from '@xyflow/react';
|
|
2
2
|
import { ActionItem } from '../Panels/ModernNodeSelectorPanel/types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
TRIGGER = "StartEventNode",
|
|
6
|
-
ACTION = "ActionNode",
|
|
7
|
-
CONDITION = "ConditionNode",
|
|
8
|
-
LOOP = "LoopNode",
|
|
9
|
-
SELFLOOP = "SelfLoopNode",
|
|
10
|
-
MCPServer = "MCPServerNode",
|
|
11
|
-
BuiltinMCP = "BuiltinMCPNode",
|
|
12
|
-
VECTORSTORE = "VectorStoreNode",
|
|
13
|
-
AGENT = "AgentNode",
|
|
14
|
-
BROWSER = "BrowserNode",
|
|
15
|
-
AISUBNODE = "AISubNode",
|
|
16
|
-
MCPTOOL = "MCPToolNode",
|
|
17
|
-
ENDNODE = "EndNode",
|
|
18
|
-
SWITCH = "SwitchNode",
|
|
19
|
-
STICKY = "StickyNoteNode"
|
|
20
|
-
}
|
|
3
|
+
import { NodeStatus } from '../enums/node';
|
|
4
|
+
export { NodeType, NodeStatus } from '../enums/node';
|
|
21
5
|
export type NodeData = ActionItem & {
|
|
22
6
|
connector_name: string;
|
|
23
7
|
description: string;
|
|
@@ -25,6 +9,28 @@ export type NodeData = ActionItem & {
|
|
|
25
9
|
closed: '0' | '1';
|
|
26
10
|
note: string | null;
|
|
27
11
|
status: NodeStatus;
|
|
12
|
+
/** 节点显示标签 */
|
|
13
|
+
label?: string;
|
|
14
|
+
/** 是否悬停 */
|
|
15
|
+
isHovered?: boolean;
|
|
16
|
+
/** 后端返回的原始数据 */
|
|
17
|
+
backendData?: Record<string, any>;
|
|
18
|
+
/** 节点配置 schema */
|
|
19
|
+
config_schema?: any;
|
|
20
|
+
/** 后端节点类型标识 */
|
|
21
|
+
node_type?: string;
|
|
22
|
+
/** 动作 ID */
|
|
23
|
+
action_id?: string;
|
|
24
|
+
/** 连接器 ID */
|
|
25
|
+
connector_id?: string;
|
|
26
|
+
/** 后端节点 ID */
|
|
27
|
+
n_id?: string;
|
|
28
|
+
/** 账号 ID */
|
|
29
|
+
account_id?: string | null;
|
|
30
|
+
/** 节点协议类型(AI_LANGUAGE_MODEL / MCP 等) */
|
|
31
|
+
protocol?: string;
|
|
32
|
+
/** index signature — 满足 ReactFlow v12 的 Record<string, unknown> 约束 */
|
|
33
|
+
[key: string]: unknown;
|
|
28
34
|
};
|
|
29
35
|
export interface WorkflowNode extends ReactFlowNode<NodeData> {
|
|
30
36
|
type: string;
|
|
@@ -47,7 +53,7 @@ export interface NodeParameter {
|
|
|
47
53
|
}>;
|
|
48
54
|
}
|
|
49
55
|
export interface NodeDefinition {
|
|
50
|
-
type:
|
|
56
|
+
type: string;
|
|
51
57
|
name: string;
|
|
52
58
|
description: string;
|
|
53
59
|
icon: string;
|
|
@@ -56,47 +62,3 @@ export interface NodeDefinition {
|
|
|
56
62
|
outputs: number;
|
|
57
63
|
parameters: NodeParameter[];
|
|
58
64
|
}
|
|
59
|
-
export declare enum NodeStatus {
|
|
60
|
-
/**
|
|
61
|
-
* 未发布 该节点配置不完整
|
|
62
|
-
*
|
|
63
|
-
* @type {string}
|
|
64
|
-
* @memberof NodeStatus
|
|
65
|
-
*/
|
|
66
|
-
INVALID = "INVALID",
|
|
67
|
-
/**
|
|
68
|
-
* 空闲状态
|
|
69
|
-
*
|
|
70
|
-
* @type {string}
|
|
71
|
-
* @memberof NodeStatus
|
|
72
|
-
*/
|
|
73
|
-
IDLE = "IDLE",
|
|
74
|
-
/**
|
|
75
|
-
* 运行中
|
|
76
|
-
*
|
|
77
|
-
* @type {string}
|
|
78
|
-
* @memberof NodeStatus
|
|
79
|
-
*/
|
|
80
|
-
RUNNING = "RUNNING",
|
|
81
|
-
/**
|
|
82
|
-
* 最近一次执行失败
|
|
83
|
-
*
|
|
84
|
-
* @type {string}
|
|
85
|
-
* @memberof NodeStatus
|
|
86
|
-
*/
|
|
87
|
-
FAILED = "FAILED",
|
|
88
|
-
/**
|
|
89
|
-
* 最近一次执行成功
|
|
90
|
-
*
|
|
91
|
-
* @type {string}
|
|
92
|
-
* @memberof NodeStatus
|
|
93
|
-
*/
|
|
94
|
-
SUCCESS = "SUCCESS",
|
|
95
|
-
/**
|
|
96
|
-
* 线上运行
|
|
97
|
-
*
|
|
98
|
-
* @type {string}
|
|
99
|
-
* @memberof NodeStatus
|
|
100
|
-
*/
|
|
101
|
-
RUNNABLE = "RUNNABLE"
|
|
102
|
-
}
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
AI_LANGUAGE_MODEL = "AI_LANGUAGE_MODEL",
|
|
3
|
-
AI_VECTOR_STORE = "AI_VECTORSTORE",
|
|
4
|
-
AI_MEMORY = "AI_MEMORY",
|
|
5
|
-
AI_DOCUMENT = "AI_DOCUMENT",
|
|
6
|
-
AI_TEXT_SPLITTER = "AI_TEXTSPLITTER",
|
|
7
|
-
AI_EMBEDDING = "AI_EMBEDDING",
|
|
8
|
-
AI_TOOL = "AI_TOOL",
|
|
9
|
-
MCP = "MCP",
|
|
10
|
-
BUILTIN_MCP = "BUILTIN_MCP",
|
|
11
|
-
MCP_SERVER = "MCP_SERVER"
|
|
12
|
-
}
|
|
1
|
+
export { NodeProtocol } from '../enums/node';
|
|
@@ -1,31 +1,9 @@
|
|
|
1
1
|
import { WorkflowEdge } from './Edge';
|
|
2
2
|
import { WorkflowNode } from './Node';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
UNPUBLISHED = "UNPUBLISHED",
|
|
8
|
-
/**
|
|
9
|
-
* 已上线
|
|
10
|
-
*/
|
|
11
|
-
ONLINE = "ONLINE",
|
|
12
|
-
/**
|
|
13
|
-
* 已下线
|
|
14
|
-
*/
|
|
15
|
-
OFFLINE = "OFFLINE",
|
|
16
|
-
/**
|
|
17
|
-
* 未发布
|
|
18
|
-
*/
|
|
19
|
-
ON_WARN = "ON_WARN",
|
|
20
|
-
/**
|
|
21
|
-
* 未发布
|
|
22
|
-
*/
|
|
23
|
-
OFF_WARN = "OFF_WARN",
|
|
24
|
-
/**
|
|
25
|
-
* 上线中
|
|
26
|
-
*/
|
|
27
|
-
ONLINE_ING = "ONLINE_ING"
|
|
28
|
-
}
|
|
3
|
+
import { WorkflowOpStatus } from '../enums/workflow';
|
|
4
|
+
/**
|
|
5
|
+
* 工作流定义
|
|
6
|
+
*/
|
|
29
7
|
export interface Workflow {
|
|
30
8
|
id: string;
|
|
31
9
|
name: string;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { ReactFlow } from '@xyflow/react';
|
|
2
2
|
import { ComponentProps, ReactNode } from 'react';
|
|
3
|
+
import { Rule } from 'antd/es/form';
|
|
4
|
+
import { EngineMode } from '../enums/workflow';
|
|
3
5
|
export type HttpClient = <T = any>(url: string, config: any) => Promise<T>;
|
|
4
6
|
export interface HistoryNavigator {
|
|
5
7
|
push(path: string, state?: any): void;
|
|
@@ -11,6 +13,7 @@ export interface HistoryNavigator {
|
|
|
11
13
|
}
|
|
12
14
|
export interface CanvasEngineConfig {
|
|
13
15
|
flowId: string;
|
|
16
|
+
engineMode?: EngineMode;
|
|
14
17
|
canvas: CanvasCoreConfig;
|
|
15
18
|
nodeTypes: NodeTypesRegistryConfig;
|
|
16
19
|
edgeRules: EdgeRulesConfig;
|
|
@@ -24,6 +27,7 @@ export interface RegisterComponents {
|
|
|
24
27
|
form: {
|
|
25
28
|
name: string;
|
|
26
29
|
component: React.ComponentType<any>;
|
|
30
|
+
additionalRules?: (config: any) => Rule[];
|
|
27
31
|
}[];
|
|
28
32
|
}
|
|
29
33
|
export interface CanvasCoreConfig {
|
|
@@ -42,6 +42,7 @@ export declare function objectToBase64(obj: any): string;
|
|
|
42
42
|
* @example
|
|
43
43
|
* ```typescript
|
|
44
44
|
* const requestConfig = objectToBase64RequestBody({ name: '张三', age: 25 });
|
|
45
|
+
* cspell: disable-next-line
|
|
45
46
|
* // 返回: { data: "eyJuYW1lIjoi5byg5LiJIiwiYWdlIjoyNX0=", headers: { 'Content-Type': 'text/plain' } }
|
|
46
47
|
*
|
|
47
48
|
* // 使用方式:
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DipWorkflowDefinitionEntity } from '../api/dip';
|
|
2
|
+
import { Edge, Node } from '@xyflow/react';
|
|
3
|
+
/**
|
|
4
|
+
* 将 DIP WorkflowDefinitionEntity 转换为 ReactFlow 画布数据
|
|
5
|
+
* 直接使用 DIP 端口名,无需适配层
|
|
6
|
+
*/
|
|
7
|
+
export declare function adaptDipFlowData(data: DipWorkflowDefinitionEntity): {
|
|
8
|
+
workflowId: string;
|
|
9
|
+
workflowName: string;
|
|
10
|
+
nodes: Node[];
|
|
11
|
+
edges: Edge[];
|
|
12
|
+
active: boolean;
|
|
13
|
+
};
|
|
@@ -7,7 +7,7 @@ export declare class FlowDesignerDAO {
|
|
|
7
7
|
getNodeIcon(node_id: string): any;
|
|
8
8
|
addNodeTips(seriesNo: number, tips: string): void;
|
|
9
9
|
getNodeTips(seriesNo: number): any;
|
|
10
|
-
|
|
10
|
+
getBuiltinVariableTips(variable: string): any;
|
|
11
11
|
getToolTipColor(seriesNo: number): "red" | "#2db7f5";
|
|
12
12
|
getConnectorIcon(connector_id?: string): string | null;
|
|
13
13
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Edge, Node } from '@xyflow/react';
|
|
2
1
|
import { EdgeData } from '../types/Edge';
|
|
3
2
|
import { NodeData } from '../types/Node';
|
|
3
|
+
import { Edge, Node } from '@xyflow/react';
|
|
4
|
+
import { CanvasLayoutSource, CanvasLayoutTarget } from '../enums/workflow';
|
|
4
5
|
export declare const GRID_SIZE = 20;
|
|
5
6
|
export declare const NODE_SIZE = 300;
|
|
6
7
|
export declare const NODE_X_SPACING: number;
|
|
@@ -27,8 +28,6 @@ export type CanvasLayoutResult = {
|
|
|
27
28
|
boundingBox: BoundingBox;
|
|
28
29
|
nodes: NodeLayoutResult[];
|
|
29
30
|
};
|
|
30
|
-
export type CanvasLayoutTarget = 'selection' | 'all';
|
|
31
|
-
export type CanvasLayoutSource = 'keyboard-shortcut' | 'canvas-button' | 'context-menu';
|
|
32
31
|
export type CanvasLayoutEvent = {
|
|
33
32
|
result: CanvasLayoutResult;
|
|
34
33
|
source: CanvasLayoutSource;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DipNodeSchema } from '../api/dip';
|
|
2
|
+
export declare function clearNextNodeSchemaCache(): void;
|
|
3
|
+
export declare function setCachedNextNodeSchema(nodeKey: string, nodeVersion: number | undefined, schema: DipNodeSchema): void;
|
|
4
|
+
export declare function setCachedClassicNextNodeSchema(nodeKey: string, nodeVersion: number | undefined, schema: DipNodeSchema): void;
|
|
5
|
+
export declare function getCachedClassicNextNodeSchema(nodeKey: string, nodeVersion?: number): Promise<DipNodeSchema | null>;
|
|
6
|
+
export declare function getCachedNextNodeSchema(nodeKey: string, nodeVersion?: number): Promise<DipNodeSchema | null>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DipWorkflowDefinition } from '../api/dip';
|
|
2
|
+
import { Edge, Node } from '@xyflow/react';
|
|
3
|
+
/**
|
|
4
|
+
* 生成前端节点 ID(UUID v4 简化版)
|
|
5
|
+
*/
|
|
6
|
+
export declare function generateNodeId(): string;
|
|
7
|
+
/**
|
|
8
|
+
* 将 ReactFlow 画布数据转换为 DIP WorkflowDefinition
|
|
9
|
+
* 直接使用 DIP 端口名,无需适配层
|
|
10
|
+
*/
|
|
11
|
+
export declare function formatWorkflowForDip(nodes: Node[], edges: Edge[], name?: string): DipWorkflowDefinition;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DipNodeSummary } from '../api/dip';
|
|
2
|
+
import { ActionItem, CategoryItem, NodeTypeItem } from '../Panels/ModernNodeSelectorPanel/types';
|
|
3
|
+
/**
|
|
4
|
+
* 将 DIP NodeSummary 转换为 ActionItem(用于节点选择器面板)
|
|
5
|
+
*/
|
|
6
|
+
export declare function convertNodeSummaryToActionItem(summary: DipNodeSummary): ActionItem;
|
|
7
|
+
/**
|
|
8
|
+
* 将 DIP NodeSummary 数组转换为 NodeTypeItem 数组
|
|
9
|
+
*/
|
|
10
|
+
export declare function convertNodeSummariesToNodeTypeItems(summaries: DipNodeSummary[]): NodeTypeItem[];
|
|
11
|
+
/**
|
|
12
|
+
* 将 DIP NodeSummary 数组按前缀分组为 CategoryItem 列表
|
|
13
|
+
* 约定 nodeKey 格式为 "pluginId.actionName"
|
|
14
|
+
*/
|
|
15
|
+
export declare function groupNodeSummariesByPlugin(summaries: DipNodeSummary[]): CategoryItem[];
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { FormInstance, ThemeConfig } from 'antd';
|
|
2
|
-
import { Locale } from 'antd/lib/locale';
|
|
3
1
|
import { OptionsLoader } from './FieldRenderer';
|
|
4
2
|
import { ActionContext, EventConfig } from './types/events';
|
|
5
3
|
import { FormSchema } from './types/form-schema';
|
|
4
|
+
import { FormInstance, ThemeConfig } from 'antd';
|
|
5
|
+
import { Locale } from 'antd/lib/locale';
|
|
6
|
+
import * as React from 'react';
|
|
6
7
|
/** 预设主题类型 */
|
|
7
8
|
export type PresetTheme = 'default' | 'apple' | 'google' | 'preline';
|
|
8
9
|
export type DynamicFormProps<T = Record<string, unknown>> = {
|
|
@@ -26,6 +27,10 @@ export type DynamicFormProps<T = Record<string, unknown>> = {
|
|
|
26
27
|
mcpMode?: boolean;
|
|
27
28
|
/** 变量验证函数 */
|
|
28
29
|
validateVariable?: (variable: string) => boolean | Promise<boolean>;
|
|
30
|
+
/** 自定义变量标签渲染 */
|
|
31
|
+
renderVariableTag?: (variable: string, isValid: boolean) => React.ReactNode;
|
|
32
|
+
/** 自定义变量标签 tooltip */
|
|
33
|
+
renderVariableTooltip?: (variable: string) => React.ReactNode;
|
|
29
34
|
/** 可用变量列表 */
|
|
30
35
|
availableVariables?: Array<{
|
|
31
36
|
path: string;
|
|
@@ -49,4 +54,4 @@ export type DynamicFormProps<T = Record<string, unknown>> = {
|
|
|
49
54
|
/** 是否启用事件系统调试日志(默认 false) */
|
|
50
55
|
debugEvents?: boolean;
|
|
51
56
|
};
|
|
52
|
-
export declare function DynamicForm<T extends Record<string, unknown>>({ schema, initialValues, onSubmit, onChange, submitLabel, showReset, resetLabel, onReset, form: externalForm, showSubmit, optionsLoader, nodeId, mcpMode, validateVariable, availableVariables, theme, customTheme, locale, prefixCls, events, customHandlers, maxExecutionDepth, debugEvents, }: DynamicFormProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
57
|
+
export declare function DynamicForm<T extends Record<string, unknown>>({ schema, initialValues, onSubmit, onChange, submitLabel, showReset, resetLabel, onReset, form: externalForm, showSubmit, optionsLoader, nodeId, mcpMode, validateVariable, renderVariableTag, renderVariableTooltip, availableVariables, theme, customTheme, locale, prefixCls, events, customHandlers, maxExecutionDepth, debugEvents, }: DynamicFormProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -6,6 +6,10 @@ export interface DynamicFormContextValue {
|
|
|
6
6
|
mcpMode?: boolean;
|
|
7
7
|
/** 变量验证函数 */
|
|
8
8
|
validateVariable?: (variable: string) => boolean | Promise<boolean>;
|
|
9
|
+
/** 自定义变量标签渲染 */
|
|
10
|
+
renderVariableTag?: (variable: string, isValid: boolean) => React.ReactNode;
|
|
11
|
+
/** 自定义变量标签 tooltip */
|
|
12
|
+
renderVariableTooltip?: (variable: string) => React.ReactNode;
|
|
9
13
|
/** 可用变量列表(用于变量选择器) */
|
|
10
14
|
availableVariables?: Array<{
|
|
11
15
|
path: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FieldEventHandlers } from './types/events';
|
|
2
2
|
import { OptionsLoader } from './types/field-component';
|
|
3
3
|
import { FieldDef } from './types/form-schema';
|
|
4
|
-
import {
|
|
4
|
+
import { Rule } from 'antd/es/form';
|
|
5
5
|
import type * as React from 'react';
|
|
6
6
|
export type { OptionsLoader } from './types/field-component';
|
|
7
7
|
/**
|
|
@@ -24,6 +24,10 @@ export type FieldRendererProps = {
|
|
|
24
24
|
optionsLoader?: OptionsLoader;
|
|
25
25
|
/** 变量验证函数 */
|
|
26
26
|
validateVariable?: (variable: string) => boolean | Promise<boolean>;
|
|
27
|
+
/** 自定义变量标签渲染 */
|
|
28
|
+
renderVariableTag?: (variable: string, isValid: boolean) => React.ReactNode;
|
|
29
|
+
/** 自定义变量标签 tooltip */
|
|
30
|
+
renderVariableTooltip?: (variable: string) => React.ReactNode;
|
|
27
31
|
/** 字段事件处理器 */
|
|
28
32
|
eventHandlers?: FieldEventHandlers;
|
|
29
33
|
};
|
|
@@ -25,6 +25,10 @@ export interface ValueModeWrapperProps {
|
|
|
25
25
|
rows?: number;
|
|
26
26
|
/** 变量验证函数 */
|
|
27
27
|
validateVariable?: (variable: string) => boolean | Promise<boolean>;
|
|
28
|
+
/** 自定义变量标签渲染 */
|
|
29
|
+
renderVariableTag?: (variable: string, isValid: boolean) => React.ReactNode;
|
|
30
|
+
/** 自定义变量标签 tooltip */
|
|
31
|
+
renderVariableTooltip?: (variable: string) => React.ReactNode;
|
|
28
32
|
/** 自定义渲染普通模式的组件 */
|
|
29
33
|
renderNormalMode?: (props: {
|
|
30
34
|
value?: string;
|
|
@@ -34,11 +38,13 @@ export interface ValueModeWrapperProps {
|
|
|
34
38
|
placeholder?: string;
|
|
35
39
|
}) => React.ReactNode;
|
|
36
40
|
/** 普通模式下要渲染的子组件(会通过 cloneElement 传递 value/onChange) */
|
|
37
|
-
children?: React.ReactElement
|
|
41
|
+
children?: React.ReactElement<any>;
|
|
38
42
|
/** 隐藏模式切换器 */
|
|
39
43
|
hideModeSwitch?: boolean;
|
|
40
44
|
/** 模式切换器位置 */
|
|
41
45
|
modeSwitchPosition?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
|
46
|
+
/** 紧凑布局:模式切换器参与文档流,用于表格/键值对等单行容器 */
|
|
47
|
+
compact?: boolean;
|
|
42
48
|
}
|
|
43
49
|
export declare const ValueModeWrapper: React.FC<ValueModeWrapperProps>;
|
|
44
50
|
export default ValueModeWrapper;
|
|
@@ -14,6 +14,7 @@ export interface VariableInputProps {
|
|
|
14
14
|
onVariableClick?: (variable: string) => void;
|
|
15
15
|
validateVariable?: (variable: string) => boolean | Promise<boolean>;
|
|
16
16
|
renderVariableTag?: (variable: string, isValid: boolean) => React.ReactNode;
|
|
17
|
+
renderVariableTooltip?: (variable: string) => React.ReactNode;
|
|
17
18
|
showRemoveButton?: boolean;
|
|
18
19
|
/** 获得焦点时的回调 */
|
|
19
20
|
onFocus?: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IFieldRegistry } from '../types/field-component';
|
|
2
|
+
/**
|
|
3
|
+
* 注册所有内置字段组件到指定注册表
|
|
4
|
+
* @param registry 目标注册表,默认使用全局注册表
|
|
5
|
+
*/
|
|
6
|
+
export declare function registerBuiltinFields(registry?: IFieldRegistry): void;
|
|
7
|
+
export * from './base';
|
|
8
|
+
export * from './complex';
|
|
9
|
+
export * from './datetime';
|
|
10
|
+
export * from './display';
|
|
11
|
+
export * from './select';
|
|
12
|
+
export * from './special';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export * from './AntdProvider';
|
|
2
|
-
export { AI_FILL_VALUE, AIFieldWrapper, type AIFieldWrapperProps } from './components/AIFieldWrapper';
|
|
2
|
+
export { AI_FILL_VALUE, AIFieldWrapper, type AIFieldWrapperProps, } from './components/AIFieldWrapper';
|
|
3
3
|
export { type SelectValueMode, SelectWithExpression, type SelectWithExpressionProps, } from './components/SelectWithExpression';
|
|
4
|
-
export { type ValueMode, ValueModeWrapper, type ValueModeWrapperProps } from './components/ValueModeWrapper';
|
|
5
|
-
export { VariableInput, type VariableInputProps } from './components/VariableInput';
|
|
6
|
-
export { VariableTextarea, type VariableTextareaProps } from './components/VariableTextarea';
|
|
4
|
+
export { type ValueMode, ValueModeWrapper, type ValueModeWrapperProps, } from './components/ValueModeWrapper';
|
|
5
|
+
export { VariableInput, type VariableInputProps, } from './components/VariableInput';
|
|
6
|
+
export { VariableTextarea, type VariableTextareaProps, } from './components/VariableTextarea';
|
|
7
7
|
export { useRegisterVariableField, useVariableSelector, useVariableSelectorOptional, type VariableInfo, type VariableSelectorContextValue, VariableSelectorProvider, type VariableSelectorProviderProps, } from './context/VariableSelectorContext';
|
|
8
8
|
export * from './DynamicForm';
|
|
9
9
|
export * from './DynamicFormContext';
|
|
10
10
|
export * from './FieldRenderer';
|
|
11
11
|
export { registerBuiltinFields } from './fields';
|
|
12
|
-
export { createFieldComponent, createSimpleFieldComponent } from './registry/createFieldComponent';
|
|
13
|
-
export { createFieldRegistry, defaultFieldRegistry } from './registry/FieldRegistry';
|
|
12
|
+
export { createFieldComponent, createSimpleFieldComponent, } from './registry/createFieldComponent';
|
|
13
|
+
export { createFieldRegistry, defaultFieldRegistry, } from './registry/FieldRegistry';
|
|
14
14
|
export { type AdditionalRegistration, FieldRegistryProvider, type FieldRegistryProviderProps, useFieldRegistry, } from './registry/FieldRegistryContext';
|
|
15
15
|
export * from './types';
|
|
16
16
|
export type { DataLoader, DataLoaderContext, DataLoaderRegistry, DataSource, DynamicDataSource, StaticDataSource, UseDataLoaderOptions, UseDataLoaderResult, } from './types/data-loader';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { createFieldComponent, createSimpleFieldComponent } from './createFieldComponent';
|
|
2
|
-
export { createFieldRegistry, defaultFieldRegistry } from './FieldRegistry';
|
|
1
|
+
export { createFieldComponent, createSimpleFieldComponent, } from './createFieldComponent';
|
|
2
|
+
export { createFieldRegistry, defaultFieldRegistry, } from './FieldRegistry';
|
|
3
3
|
export { type AdditionalRegistration, FieldRegistryProvider, type FieldRegistryProviderProps, useFieldRegistry, } from './FieldRegistryContext';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DynamicFormField, FieldDef, Option } from './form-schema';
|
|
2
1
|
import { FieldEventHandlers } from './events';
|
|
2
|
+
import { DynamicFormField, FieldDef, Option } from './form-schema';
|
|
3
3
|
import type * as React from 'react';
|
|
4
4
|
/**
|
|
5
5
|
* Options 加载器函数类型
|
|
@@ -27,6 +27,10 @@ export interface FieldRenderContext {
|
|
|
27
27
|
optionsLoader?: OptionsLoader;
|
|
28
28
|
/** 变量验证函数 */
|
|
29
29
|
validateVariable?: (variable: string) => boolean | Promise<boolean>;
|
|
30
|
+
/** 自定义变量标签渲染 */
|
|
31
|
+
renderVariableTag?: (variable: string, isValid: boolean) => React.ReactNode;
|
|
32
|
+
/** 自定义变量标签 tooltip */
|
|
33
|
+
renderVariableTooltip?: (variable: string) => React.ReactNode;
|
|
30
34
|
/** 节点 ID(workflow 场景) */
|
|
31
35
|
nodeId?: string;
|
|
32
36
|
/** MCP 模式(启用 AI 填充) */
|
|
@@ -47,7 +51,7 @@ export interface FieldRenderContext {
|
|
|
47
51
|
*
|
|
48
52
|
* 字段组件必须接收这些 props 并转发给内部的 Ant Design 组件
|
|
49
53
|
*/
|
|
50
|
-
export interface FieldComponentProps<T extends FieldDef = FieldDef> {
|
|
54
|
+
export interface FieldComponentProps<T extends FieldDef = FieldDef, K = unknown> {
|
|
51
55
|
/** 字段定义 */
|
|
52
56
|
field: T;
|
|
53
57
|
/** 是否禁用 */
|
|
@@ -57,7 +61,7 @@ export interface FieldComponentProps<T extends FieldDef = FieldDef> {
|
|
|
57
61
|
/** 渲染上下文 */
|
|
58
62
|
context: FieldRenderContext;
|
|
59
63
|
/** 表单字段值(由 Form.Item 注入) */
|
|
60
|
-
value?:
|
|
64
|
+
value?: K;
|
|
61
65
|
/** 值变化回调(由 Form.Item 注入) */
|
|
62
66
|
onChange?: (value: unknown) => void;
|
|
63
67
|
/** 字段 ID(由 Form.Item 注入) */
|
|
@@ -99,6 +103,11 @@ export interface FieldComponentMeta {
|
|
|
99
103
|
* 展示字段(DIVIDER/INFO_CARD)不需要 Form.Item 包装
|
|
100
104
|
*/
|
|
101
105
|
isDisplayOnly?: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* 是否隐藏整个 Form.Item
|
|
108
|
+
* 隐藏字段仍由 Form.Item 收集值,但不渲染 label/tooltip/extra 等可见表单项内容
|
|
109
|
+
*/
|
|
110
|
+
isHidden?: boolean;
|
|
102
111
|
}
|
|
103
112
|
/**
|
|
104
113
|
* 字段组件定义
|
|
@@ -21,7 +21,7 @@ declare const _default: {
|
|
|
21
21
|
'common.revoke': string;
|
|
22
22
|
'common.export': string;
|
|
23
23
|
'common.account': string;
|
|
24
|
-
'app.common.word.
|
|
24
|
+
'app.common.word.account': string;
|
|
25
25
|
'app.common.word.name': string;
|
|
26
26
|
'common.placeholder.search': string;
|
|
27
27
|
'common.name': string;
|
|
@@ -138,7 +138,7 @@ declare const _default: {
|
|
|
138
138
|
'app.common.word.pending': string;
|
|
139
139
|
'app.common.word.customer-management': string;
|
|
140
140
|
'app.common.word.collaboration': string;
|
|
141
|
-
'app.common.word.
|
|
141
|
+
'app.common.word.hr': string;
|
|
142
142
|
'app.common.word.device-model': string;
|
|
143
143
|
'app.common.word.device-status': string;
|
|
144
144
|
'app.common.word.last-online-time': string;
|
|
@@ -171,11 +171,6 @@ declare const _default: {
|
|
|
171
171
|
'app.common.word.login-page-support': string;
|
|
172
172
|
'app.common.word.identity_verify_attrs': string;
|
|
173
173
|
'app.common.word.identity_verify_attrs_tooltip': string;
|
|
174
|
-
'app.common.word.identity_verify_attrs_tooltip_new': {
|
|
175
|
-
title: string;
|
|
176
|
-
paragraph1: string;
|
|
177
|
-
paragraph2: string;
|
|
178
|
-
};
|
|
179
174
|
'app.common.word.show-content': string;
|
|
180
175
|
'app.common.word.login-page-settings': string;
|
|
181
176
|
'app.common.word.platform-name': string;
|
|
@@ -207,11 +202,6 @@ declare const _default: {
|
|
|
207
202
|
'common.contains-lowercase-letters': string;
|
|
208
203
|
'common.contains-special-characters': string;
|
|
209
204
|
'common.reset_pwd_related_attr': string;
|
|
210
|
-
'common.reset_pwd_related_attr_tooltip': {
|
|
211
|
-
title: string;
|
|
212
|
-
paragraph1: string;
|
|
213
|
-
paragraph2: string;
|
|
214
|
-
};
|
|
215
205
|
'common.administrator-reset-password': string;
|
|
216
206
|
'common.change_password_after_first_login': string;
|
|
217
207
|
'common.account-locked-continuous-invalid-login': string;
|
|
@@ -304,6 +294,8 @@ declare const _default: {
|
|
|
304
294
|
'common.nco': string;
|
|
305
295
|
'common.in': string;
|
|
306
296
|
'common.nin': string;
|
|
297
|
+
'common.is_null': string;
|
|
298
|
+
'common.is_not_null': string;
|
|
307
299
|
'common.length_max': string;
|
|
308
300
|
'common.special': string;
|
|
309
301
|
'common.device': string;
|
|
@@ -368,7 +360,6 @@ declare const _default: {
|
|
|
368
360
|
'app.common.word.send-record': string;
|
|
369
361
|
'app.common.word.distribution-application-name': string;
|
|
370
362
|
'app.common.word.sms-content': string;
|
|
371
|
-
'app.common.word.jieshouzhe': string;
|
|
372
363
|
'app.common.word.send-message': string;
|
|
373
364
|
'app.common.word.inviter': string;
|
|
374
365
|
'app.common.word.send-time': string;
|
|
@@ -416,8 +407,7 @@ declare const _default: {
|
|
|
416
407
|
'app.common.word.blacklist': string;
|
|
417
408
|
'app.common.word.condition': string;
|
|
418
409
|
'app.common.word.partial-exception': string;
|
|
419
|
-
'app.common.word.
|
|
420
|
-
'app.common.word.fuzhi': string;
|
|
410
|
+
'app.common.word.putOnline': string;
|
|
421
411
|
'app.common.word.release': string;
|
|
422
412
|
'app.common.word.trigger-event': string;
|
|
423
413
|
'app.common.word.revise': string;
|
|
@@ -536,8 +526,8 @@ declare const _default: {
|
|
|
536
526
|
'app.common.word.social-authentication-source': string;
|
|
537
527
|
'app.common.word.built_in_authentication_source': string;
|
|
538
528
|
'app.common.word.are-you-sure-you-want-to-delete-it': string;
|
|
539
|
-
'app.common.word.you-
|
|
540
|
-
'app.common.word.you-
|
|
529
|
+
'app.common.word.you-have-not-uploaded-the-token-yet': string;
|
|
530
|
+
'app.common.word.you-have-not-uploaded-any-apps-yet': string;
|
|
541
531
|
'app.common.word.application-basic-information': string;
|
|
542
532
|
'app.common.word.single-point-configuration': string;
|
|
543
533
|
'common.authorization-scope': string;
|
|
@@ -567,5 +557,6 @@ declare const _default: {
|
|
|
567
557
|
'app.common.word.current-page': string;
|
|
568
558
|
'app.common.word.new-window': string;
|
|
569
559
|
'app.common.word.customOpen': string;
|
|
560
|
+
'user.common.operation_title': string;
|
|
570
561
|
};
|
|
571
562
|
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
'components.authTokenField.placeholder': string;
|
|
3
|
+
'components.authTokenField.copy': string;
|
|
4
|
+
'components.authTokenField.showToken': string;
|
|
5
|
+
'components.authTokenField.hideToken': string;
|
|
6
|
+
'components.authTokenField.generate': string;
|
|
7
|
+
'components.authTokenField.regenerate': string;
|
|
8
|
+
'components.authTokenField.emptyTokenWarning': string;
|
|
9
|
+
'components.authTokenField.copySuccess': string;
|
|
10
|
+
'components.authTokenField.copyFailed': string;
|
|
11
|
+
'components.authTokenField.regenerateConfirm': string;
|
|
12
|
+
'components.selectOAuth2ClientField.placeholder': string;
|
|
13
|
+
'components.selectOAuth2ClientField.fetchFailed': string;
|
|
14
|
+
'components.selectOAuth2ClientField.copy': string;
|
|
15
|
+
'components.selectOAuth2ClientField.copySuccess': string;
|
|
16
|
+
'components.selectOAuth2ClientField.copyFailed': string;
|
|
17
|
+
'components.selectOAuth2ClientField.emptyTitle': string;
|
|
18
|
+
'components.selectOAuth2ClientField.emptyDescription': string;
|
|
19
|
+
'components.selectOAuth2ClientField.goToAppManage': string;
|
|
20
|
+
'components.selectOAuth2ClientField.loadMore': string;
|
|
21
|
+
'components.selectOAuth2ClientField.loadedAll': string;
|
|
22
|
+
'components.selectOAuth2ClientField.selectDescriptionPrefix': string;
|
|
23
|
+
'components.selectOAuth2ClientField.selectDescriptionSuffix': string;
|
|
24
|
+
'components.selectOAuth2ClientField.tokenEndpoint': string;
|
|
25
|
+
'components.selectOAuth2ClientField.tokenDescriptionPrefix': string;
|
|
26
|
+
'components.selectOAuth2ClientField.documentation': string;
|
|
27
|
+
};
|
|
28
|
+
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
'link.flow.start_node': string;
|
|
3
3
|
'link.flow.end_node': string;
|
|
4
|
-
'link.flow.
|
|
4
|
+
'link.flow.unConfig_action_node': string;
|
|
5
5
|
'link.flow.select_location_node': string;
|
|
6
6
|
'link.flow.forced_online_warn': string;
|
|
7
7
|
'link.flow.online_forced_tip1': string;
|
|
@@ -104,7 +104,7 @@ declare const _default: {
|
|
|
104
104
|
'link.flow.modification_time': string;
|
|
105
105
|
'link.flow.edit_account': string;
|
|
106
106
|
'link.flow.please_select': string;
|
|
107
|
-
'link.flow.
|
|
107
|
+
'link.flow.cipherText': string;
|
|
108
108
|
'link.flow.text': string;
|
|
109
109
|
'link.flow.enter_keyword_to_search_action': string;
|
|
110
110
|
'link.flow.please_enter': string;
|
|
@@ -130,10 +130,14 @@ declare const _default: {
|
|
|
130
130
|
'link.flow.no_apps': string;
|
|
131
131
|
'link.flow.back': string;
|
|
132
132
|
'link.flow.node_data_yaml': string;
|
|
133
|
-
'link.flow.
|
|
134
|
-
'link.flow.
|
|
135
|
-
'link.flow.
|
|
133
|
+
'link.flow.execute_immediately': string;
|
|
134
|
+
'link.flow.execute_immediately_tip': string;
|
|
135
|
+
'link.flow.execute_immediately_success': string;
|
|
136
136
|
'link.flow.stop_running': string;
|
|
137
|
+
'link.flow.confirm_online': string;
|
|
138
|
+
'link.flow.force_online_confirm': string;
|
|
139
|
+
'link.flow.offline_success': string;
|
|
140
|
+
'link.flow.operation_title': string;
|
|
137
141
|
'link.flow.switch.condition_one': string;
|
|
138
142
|
'link.flow.switch.condition_two': string;
|
|
139
143
|
'link.flow.switch.condition_n': string;
|