@digitalsee-ai/rcs 2.0.5-beta1 → 2.0.5-beta3
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/hooks/useWorkflowCanvasState.d.ts +2 -7
- package/dist/components/digitalsee/workflow/Edges/BaseEdge.d.ts +0 -1
- package/dist/components/digitalsee/workflow/Handles/customHandleConnectable.d.ts +2 -0
- package/dist/components/digitalsee/workflow/NodesConfig/NodePackageConfig/fields/plugin/variableHighlight.d.ts +26 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JavascriptTagEditorField/plugin/placeholders.d.ts +1 -0
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/ActionRow.d.ts +20 -0
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/AppDetailOverlay.d.ts +32 -0
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/CategorySearchEmptyState.d.ts +12 -0
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/CategoryTabs.d.ts +2 -2
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/HighlightText.d.ts +31 -0
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/NodeCard.d.ts +6 -3
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/PanelHeader.d.ts +7 -10
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/constants.d.ts +9 -0
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/hooks/useConnectableNodeSelector.d.ts +2 -3
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/hooks/useNavigation.d.ts +8 -1
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/hooks/useSearch.d.ts +12 -5
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/messages.d.ts +47 -0
- package/dist/components/digitalsee/workflow/hooks/use-nodes-interaction.d.ts +3 -14
- package/dist/components/digitalsee/workflow/hooks/usePanel.d.ts +1 -0
- package/dist/components/digitalsee/workflow/hooks/useWorkflow.d.ts +8 -0
- package/dist/components/digitalsee/workflow/store/panelSlice.d.ts +14 -0
- package/dist/components/digitalsee/workflow/store/workflowSlice.d.ts +7 -1
- package/dist/components/digitalsee/workflow/types/Edge.d.ts +1 -2
- package/dist/components/digitalsee/workflow/types/Node.d.ts +0 -2
- package/dist/components/digitalsee/workflow/types/NodeAddContext.d.ts +2 -0
- package/dist/components/digitalsee/workflow/utils/mcpCanvas.d.ts +6 -1
- package/dist/components/digitalsee/workflow/utils/nodeDataFormatter.d.ts +5 -0
- package/dist/components/digitalsee/workflow/utils/portConnectionValidationMessages.d.ts +2 -0
- package/dist/components/digitalsee/workflow/utils/triggerNode.d.ts +15 -1
- package/dist/components/dynamic-form/FieldRenderer.d.ts +3 -0
- package/dist/components/dynamic-form/components/ValueModeWrapper/index.d.ts +2 -0
- package/dist/components/dynamic-form/context/FieldRendererContext.d.ts +23 -0
- package/dist/components/dynamic-form/index.d.ts +1 -0
- package/dist/components/index.d.ts +0 -1
- package/dist/{index-DpaoO6Cc.mjs → index-D1vpJi7z.mjs} +22944 -22378
- package/dist/index-nWANt9PP.mjs +167 -0
- package/dist/locales/en-US/link/flow.d.ts +2 -0
- package/dist/locales/en-US/link/nodeSelector.d.ts +41 -0
- package/dist/locales/en-US.d.ts +40 -0
- package/dist/locales/zh-CN/link/flow.d.ts +2 -0
- package/dist/locales/zh-CN/link/nodeSelector.d.ts +41 -0
- package/dist/locales/zh-CN.d.ts +40 -0
- package/dist/locales/zh-TW/link/flow.d.ts +2 -0
- package/dist/locales/zh-TW/link/nodeSelector.d.ts +41 -0
- package/dist/locales/zh-TW.d.ts +40 -0
- package/dist/rcs.css +1 -1
- package/dist/rcs.es.js +25 -24
- package/dist/rcs.umd.js +137 -118
- package/package.json +5 -24
- package/dist/components/digitalsee/workflow/Canvas/hooks/useNodeFormDraftCache.d.ts +0 -14
- package/dist/components/digitalsee/workflow/Handles/OutputHandleWithButton.d.ts +0 -15
- package/dist/components/digitalsee/workflow/Nodes/NodeStatusDemo.d.ts +0 -7
- package/dist/components/digitalsee/workflow/Nodes/components/NodeDescriptionExample.d.ts +0 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/FixedObjectField/index.d.ts +0 -5
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/FixedObjectField/index.d.ts +0 -11
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonField/index.d.ts +0 -5
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/common-placeholder-theme.d.ts +0 -57
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/editor.d.ts +0 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/extensions.d.ts +0 -11
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/index.d.ts +0 -3
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/interface.d.ts +0 -29
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/plugin/base-theme.d.ts +0 -1
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/plugin/custom-completions.d.ts +0 -5
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/plugin/functions.d.ts +0 -3
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/plugin/hint.d.ts +0 -11
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/plugin/keywords.d.ts +0 -4
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/plugin/placeholders.d.ts +0 -3
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/TextAreaField/index.d.ts +0 -6
- package/dist/components/digitalsee/workflow/NodesConfig/components/online-ide/components/IDEVariableModal/tree-help.d.ts +0 -49
- package/dist/components/digitalsee/workflow/NodesConfig/components/online-ide/helper/matchVar.d.ts +0 -7
- package/dist/components/digitalsee/workflow/Panels/CanvasConfigDebugger.d.ts +0 -37
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/ActionList.d.ts +0 -15
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/CategoryContent.d.ts +0 -17
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/CategoryItem.d.ts +0 -13
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/CategoryList.d.ts +0 -14
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/NodeItem.d.ts +0 -13
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/SearchResults.d.ts +0 -14
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/hooks/useActions.d.ts +0 -18
- package/dist/components/digitalsee/workflow/Panels/SimpleNodeSelectorPanel/components/NodeListItem.d.ts +0 -8
- package/dist/components/digitalsee/workflow/Panels/SimpleNodeSelectorPanel/hooks/useNodeList.d.ts +0 -14
- package/dist/components/digitalsee/workflow/Panels/SimpleNodeSelectorPanel/index.d.ts +0 -10
- package/dist/components/digitalsee/workflow/builtin/controls/MutilRowGuard/index.d.ts +0 -13
- package/dist/components/digitalsee/workflow/constants/nodePackageHandles.d.ts +0 -10
- package/dist/components/digitalsee/workflow/events/eventBus.d.ts +0 -18
- package/dist/components/digitalsee/workflow/examples/global-config-example.d.ts +0 -12
- package/dist/components/digitalsee/workflow/store/types.d.ts +0 -11
- package/dist/components/digitalsee/workflow/utils/edgeConverters.d.ts +0 -30
- package/dist/components/digitalsee/workflow/utils/flowDataAdapterNext.d.ts +0 -13
- package/dist/components/digitalsee/workflow/utils/nodeSummaryAdapter.d.ts +0 -15
- package/dist/components/dynamic-form/context/EventEngineContext.d.ts +0 -42
- package/dist/components/dynamic-form/registry/index.d.ts +0 -3
- package/dist/components/ui/index.d.ts +0 -1
- package/dist/index-CNiN54LX.mjs +0 -288
- package/dist/locales/en-US/link/component.d.ts +0 -76
- package/dist/locales/en-US/link/log.d.ts +0 -40
- package/dist/locales/en-US/link/template.d.ts +0 -6
- package/dist/locales/zh-CN/link/component.d.ts +0 -77
- package/dist/locales/zh-CN/link/log.d.ts +0 -41
- package/dist/locales/zh-CN/link/template.d.ts +0 -6
- package/dist/locales/zh-TW/link/component.d.ts +0 -76
- package/dist/locales/zh-TW/link/log.d.ts +0 -37
- package/dist/locales/zh-TW/link/template.d.ts +0 -6
- package/dist/storybook-utils.d.ts +0 -4
- package/dist/utils.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digitalsee-ai/rcs",
|
|
3
|
-
"version": "2.0.5-
|
|
3
|
+
"version": "2.0.5-beta3",
|
|
4
4
|
"packageManager": "pnpm@10.12.1",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git"
|
|
@@ -32,7 +32,8 @@
|
|
|
32
32
|
"acceptance:visual": "playwright test -c acceptance/playwright.config.ts visual.spec.ts",
|
|
33
33
|
"acceptance:build": "vite build --config vite.acceptance.config.mts",
|
|
34
34
|
"dev": "storybook dev -p 8888",
|
|
35
|
-
"build": "
|
|
35
|
+
"build": "pnpm clean && node scripts/build-library.mjs --no-sourcemap",
|
|
36
|
+
"build:storybook": "storybook build",
|
|
36
37
|
"clean": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
|
|
37
38
|
"build:lib": "pnpm clean && tsc && node scripts/build-library.mjs",
|
|
38
39
|
"build:vite": "pnpm clean && node scripts/build-library.mjs",
|
|
@@ -63,12 +64,10 @@
|
|
|
63
64
|
"ahooks": ">=3.0.0",
|
|
64
65
|
"antd": ">=5.0.0",
|
|
65
66
|
"lodash-es": ">=4.17.0",
|
|
66
|
-
"monaco-editor": "*",
|
|
67
67
|
"react": ">=18.0.0",
|
|
68
68
|
"react-dom": ">=18.0.0",
|
|
69
69
|
"react-intl": "7.1.14",
|
|
70
70
|
"react-markdown": "10.0.1",
|
|
71
|
-
"react-monaco-editor": "*",
|
|
72
71
|
"react-redux": ">=8.0.0"
|
|
73
72
|
},
|
|
74
73
|
"files": [
|
|
@@ -86,32 +85,22 @@
|
|
|
86
85
|
"@dnd-kit/modifiers": "^9.0.0",
|
|
87
86
|
"@dnd-kit/sortable": "^10.0.0",
|
|
88
87
|
"@dnd-kit/utilities": "^3.2.2",
|
|
89
|
-
"@hookform/resolvers": "^5.2.1",
|
|
90
88
|
"@uiw/react-json-view": "1.12.2",
|
|
91
|
-
"class-variance-authority": "^0.7.1",
|
|
92
89
|
"classnames": "^2.5.1",
|
|
93
|
-
"clsx": "^2.1.1",
|
|
94
90
|
"dayjs": "^1.11.19",
|
|
95
91
|
"history": "^5.3.0",
|
|
96
92
|
"immer": "^11.1.3",
|
|
97
93
|
"lucide-react": "^0.562.0",
|
|
98
|
-
"react-hook-form": "^7.56.4",
|
|
99
94
|
"remark-gfm": "^4.0.1",
|
|
100
|
-
"tailwind-merge": "^2.5.2",
|
|
101
95
|
"tailwindcss-animate": "^1.0.7",
|
|
102
96
|
"tw-animate-css": "^1.3.9",
|
|
103
|
-
"uuid": "^13.0.2"
|
|
104
|
-
"zod": "^4.6.6"
|
|
97
|
+
"uuid": "^13.0.2"
|
|
105
98
|
},
|
|
106
99
|
"devDependencies": {
|
|
107
100
|
"@ant-design/icons": "^6.1.0",
|
|
108
101
|
"@ant-design/pro-components": "^2.8.10",
|
|
109
|
-
"@babel/core": "7.29.7",
|
|
110
102
|
"@biomejs/biome": "2.4.15",
|
|
111
103
|
"@playwright/test": "^1.61.1",
|
|
112
|
-
"@radix-ui/react-checkbox": "^1.3.2",
|
|
113
|
-
"@radix-ui/react-icons": "^1.3.2",
|
|
114
|
-
"@radix-ui/react-select": "^2.2.6",
|
|
115
104
|
"@reduxjs/toolkit": "^2.11.2",
|
|
116
105
|
"@storybook/addon-docs": "9.1.20",
|
|
117
106
|
"@storybook/addon-links": "9.1.20",
|
|
@@ -133,32 +122,24 @@
|
|
|
133
122
|
"antd": "^5.19.0",
|
|
134
123
|
"autoprefixer": "10.4.21",
|
|
135
124
|
"axios": "^1.20.0",
|
|
136
|
-
"babel-loader": "10.0.0",
|
|
137
125
|
"cspell": "8.19.4",
|
|
138
126
|
"husky": "9.1.7",
|
|
139
127
|
"jsdom": "26.1.0",
|
|
140
|
-
"json": "11.0.0",
|
|
141
128
|
"less": "^4.9.1",
|
|
142
|
-
"less-loader": "^12.3.0",
|
|
143
129
|
"lint-staged": "16.1.2",
|
|
144
130
|
"lodash-es": "^4.18.1",
|
|
145
|
-
"monaco-editor": "^0.55.1",
|
|
146
131
|
"postcss": "8.5.26",
|
|
147
|
-
"prop-types": "15.8.1",
|
|
148
132
|
"react": "18.3.1",
|
|
149
133
|
"react-dom": "18.3.1",
|
|
150
|
-
"react-icons": "^5.5.0",
|
|
151
134
|
"react-intl": "7.1.14",
|
|
152
135
|
"react-markdown": "^10.1.0",
|
|
153
|
-
"react-monaco-editor": "^0.59.0",
|
|
154
136
|
"react-redux": "^9.2.0",
|
|
155
137
|
"slate": "^0.120.0",
|
|
156
|
-
"slate-history": "^0.113.1",
|
|
157
138
|
"slate-react": "^0.120.0",
|
|
158
139
|
"storybook": "9.1.21",
|
|
159
140
|
"tailwindcss": "4.1.10",
|
|
160
141
|
"typescript": "5.8.3",
|
|
161
|
-
"vite": "6.4.
|
|
142
|
+
"vite": "6.4.5",
|
|
162
143
|
"vite-plugin-dts": "4.5.4",
|
|
163
144
|
"vitest": "5.0.5"
|
|
164
145
|
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 节点表单草稿缓存 Hook
|
|
3
|
-
*
|
|
4
|
-
* 用于在画布层维护节点配置表单的草稿数据,支持:
|
|
5
|
-
* - 用户填写部分表单后切换节点,草稿保留
|
|
6
|
-
* - 回到原节点时自动回填草稿
|
|
7
|
-
* - 保存成功后清除草稿
|
|
8
|
-
*
|
|
9
|
-
* @returns {Object} 缓存操作方法
|
|
10
|
-
*/
|
|
11
|
-
export declare function useNodeFormDraftCache(): {
|
|
12
|
-
getCachedValues: (nodeId: string) => any;
|
|
13
|
-
handleValuesChange: (nodeId: string, values: any) => void;
|
|
14
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Connection, Position } from '@xyflow/react';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
|
-
interface OutputHandleWithButtonProps {
|
|
4
|
-
id: string;
|
|
5
|
-
nodeId: string;
|
|
6
|
-
position?: Position;
|
|
7
|
-
style?: React.CSSProperties;
|
|
8
|
-
isConnectable?: boolean;
|
|
9
|
-
className?: string;
|
|
10
|
-
isValidConnection?: (connection: Connection) => boolean;
|
|
11
|
-
onConnect?: (params: Connection) => void;
|
|
12
|
-
onButtonClick?: (nodeId: string, handleId: string) => void;
|
|
13
|
-
}
|
|
14
|
-
declare const OutputHandleWithButton: React.FC<OutputHandleWithButtonProps>;
|
|
15
|
-
export default OutputHandleWithButton;
|
|
File without changes
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IFieldSuperProps } from '../super';
|
|
2
|
-
interface KeyValue {
|
|
3
|
-
key: string;
|
|
4
|
-
value: string;
|
|
5
|
-
id: string;
|
|
6
|
-
}
|
|
7
|
-
interface FixedObjectFieldProps extends IFieldSuperProps<KeyValue[]> {
|
|
8
|
-
valueType: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const FixedObjectField: React.FC<FixedObjectFieldProps>;
|
|
11
|
-
export {};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
export declare const CommonPlaceholderThemes: {
|
|
2
|
-
magenta: {
|
|
3
|
-
textColor: string;
|
|
4
|
-
backgroundColor: string;
|
|
5
|
-
borderColor: string;
|
|
6
|
-
};
|
|
7
|
-
red: {
|
|
8
|
-
textColor: string;
|
|
9
|
-
backgroundColor: string;
|
|
10
|
-
borderColor: string;
|
|
11
|
-
};
|
|
12
|
-
volcano: {
|
|
13
|
-
textColor: string;
|
|
14
|
-
backgroundColor: string;
|
|
15
|
-
borderColor: string;
|
|
16
|
-
};
|
|
17
|
-
orange: {
|
|
18
|
-
textColor: string;
|
|
19
|
-
backgroundColor: string;
|
|
20
|
-
borderColor: string;
|
|
21
|
-
};
|
|
22
|
-
gold: {
|
|
23
|
-
textColor: string;
|
|
24
|
-
backgroundColor: string;
|
|
25
|
-
borderColor: string;
|
|
26
|
-
};
|
|
27
|
-
lime: {
|
|
28
|
-
textColor: string;
|
|
29
|
-
backgroundColor: string;
|
|
30
|
-
borderColor: string;
|
|
31
|
-
};
|
|
32
|
-
green: {
|
|
33
|
-
textColor: string;
|
|
34
|
-
backgroundColor: string;
|
|
35
|
-
borderColor: string;
|
|
36
|
-
};
|
|
37
|
-
cyan: {
|
|
38
|
-
textColor: string;
|
|
39
|
-
backgroundColor: string;
|
|
40
|
-
borderColor: string;
|
|
41
|
-
};
|
|
42
|
-
blue: {
|
|
43
|
-
textColor: string;
|
|
44
|
-
backgroundColor: string;
|
|
45
|
-
borderColor: string;
|
|
46
|
-
};
|
|
47
|
-
geekblue: {
|
|
48
|
-
textColor: string;
|
|
49
|
-
backgroundColor: string;
|
|
50
|
-
borderColor: string;
|
|
51
|
-
};
|
|
52
|
-
purple: {
|
|
53
|
-
textColor: string;
|
|
54
|
-
backgroundColor: string;
|
|
55
|
-
borderColor: string;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function JsonTagField(props: any): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CompletionsType, FunctionType, HintPathType, PlaceholderThemesType } from './interface';
|
|
2
|
-
export declare const extensions: ({ completions, keywords, placeholderThemes, mode, functions, keywordsColor, keywordsClassName, hintPaths, }: {
|
|
3
|
-
keywords?: string[];
|
|
4
|
-
completions: CompletionsType[];
|
|
5
|
-
placeholderThemes: PlaceholderThemesType;
|
|
6
|
-
mode: string;
|
|
7
|
-
functions: FunctionType[];
|
|
8
|
-
keywordsColor?: string;
|
|
9
|
-
keywordsClassName?: string;
|
|
10
|
-
hintPaths?: HintPathType[];
|
|
11
|
-
}) => any[];
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export interface CompletionsType {
|
|
2
|
-
template: string;
|
|
3
|
-
label: string;
|
|
4
|
-
detail: string;
|
|
5
|
-
type: string;
|
|
6
|
-
}
|
|
7
|
-
export interface PlaceholderThemesType {
|
|
8
|
-
[K: string]: CommonPlaceholderTheme;
|
|
9
|
-
}
|
|
10
|
-
export interface FunctionType extends CompletionsType {
|
|
11
|
-
handle: any;
|
|
12
|
-
}
|
|
13
|
-
export interface CommonPlaceholderTheme {
|
|
14
|
-
textColor: string;
|
|
15
|
-
backgroundColor: string;
|
|
16
|
-
borderColor: string;
|
|
17
|
-
}
|
|
18
|
-
export interface ScriptEditorRef {
|
|
19
|
-
insertText?: (text: string, isTemplate: boolean) => void;
|
|
20
|
-
clearText?: () => void;
|
|
21
|
-
setText?: (text: string) => void;
|
|
22
|
-
}
|
|
23
|
-
export interface HintPathType {
|
|
24
|
-
label: string;
|
|
25
|
-
detail: string;
|
|
26
|
-
type: 'function' | 'keyword' | 'variable' | 'text' | 'property';
|
|
27
|
-
template: string;
|
|
28
|
-
children?: HintPathType[];
|
|
29
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const baseTheme: any;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CompletionContext } from '@codemirror/autocomplete';
|
|
2
|
-
import { HintPathType } from '../interface';
|
|
3
|
-
export declare const hintPlugin: (hintPaths: HintPathType[]) => (context: CompletionContext) => {
|
|
4
|
-
from: number;
|
|
5
|
-
options: import('@codemirror/autocomplete').Completion[];
|
|
6
|
-
to?: undefined;
|
|
7
|
-
} | {
|
|
8
|
-
from: number;
|
|
9
|
-
to: number;
|
|
10
|
-
options: any;
|
|
11
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ViewPlugin } from '@codemirror/view';
|
|
2
|
-
export declare const escapeRegExp: (value: string) => string;
|
|
3
|
-
export declare const buildKeywordsRegExp: (keywords?: string[]) => RegExp;
|
|
4
|
-
export declare const keywordsPlugin: (keywords?: string[], keywordsColor?: string, keywordsClassName?: string) => ViewPlugin<any, undefined>;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
export interface VarDatum {
|
|
2
|
-
output: Output;
|
|
3
|
-
seq: string;
|
|
4
|
-
label?: string;
|
|
5
|
-
action_name: string;
|
|
6
|
-
connector_id: string;
|
|
7
|
-
connector_name: string;
|
|
8
|
-
node_id: string;
|
|
9
|
-
sub_params: Output[] | null;
|
|
10
|
-
note?: string;
|
|
11
|
-
}
|
|
12
|
-
interface Output {
|
|
13
|
-
name: string;
|
|
14
|
-
type: Type;
|
|
15
|
-
label?: string;
|
|
16
|
-
multi_valued: boolean;
|
|
17
|
-
sub_params: Output[] | null;
|
|
18
|
-
value: null | string;
|
|
19
|
-
}
|
|
20
|
-
export declare enum Type {
|
|
21
|
-
Boolean = "BOOLEAN",
|
|
22
|
-
Number = "NUMBER",
|
|
23
|
-
Object = "OBJECT",
|
|
24
|
-
String = "STRING"
|
|
25
|
-
}
|
|
26
|
-
export declare const ColorMap: {
|
|
27
|
-
BOOLEAN: string;
|
|
28
|
-
NUMBER: string;
|
|
29
|
-
OBJECT: string;
|
|
30
|
-
STRING: string;
|
|
31
|
-
};
|
|
32
|
-
export declare const TypeTagMap: {
|
|
33
|
-
BOOLEAN: string;
|
|
34
|
-
NUMBER: string;
|
|
35
|
-
OBJECT: string;
|
|
36
|
-
STRING: string;
|
|
37
|
-
};
|
|
38
|
-
export declare const transformServerTree2Local: (serverData: VarDatum[]) => {
|
|
39
|
-
label: string;
|
|
40
|
-
sub_params: Output[];
|
|
41
|
-
output: Output;
|
|
42
|
-
seq: string;
|
|
43
|
-
action_name: string;
|
|
44
|
-
connector_id: string;
|
|
45
|
-
connector_name: string;
|
|
46
|
-
node_id: string;
|
|
47
|
-
note?: string;
|
|
48
|
-
}[];
|
|
49
|
-
export {};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { CanvasEngineConfig } from '../types/engine';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
|
-
export interface CanvasConfigDebuggerProps {
|
|
4
|
-
/**
|
|
5
|
-
* 当前画布配置(部分配置即可)
|
|
6
|
-
*
|
|
7
|
-
* @description 通常直接传给 DigitalseeWorkFlow 的 config,同步给调试面板使用
|
|
8
|
-
*/
|
|
9
|
-
value?: Partial<CanvasEngineConfig>;
|
|
10
|
-
/**
|
|
11
|
-
* 配置变更回调
|
|
12
|
-
*
|
|
13
|
-
* @param nextConfig 最新配置(部分配置)
|
|
14
|
-
*/
|
|
15
|
-
onChange?: (nextConfig: Partial<CanvasEngineConfig>) => void;
|
|
16
|
-
/**
|
|
17
|
-
* 是否可见(受控模式)
|
|
18
|
-
*/
|
|
19
|
-
visible?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* 可见性变更回调(受控模式)
|
|
22
|
-
*/
|
|
23
|
-
onVisibleChange?: (visible: boolean) => void;
|
|
24
|
-
/**
|
|
25
|
-
* 是否展示合并后的完整配置预览
|
|
26
|
-
*
|
|
27
|
-
* @default true
|
|
28
|
-
*/
|
|
29
|
-
showMergedPreview?: boolean;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* 画布配置调试面板
|
|
33
|
-
*
|
|
34
|
-
* @description 基于 CanvasEngineConfig 封装的开发期调试工具,支持在运行时快速修改模式、网格、连线规则等配置
|
|
35
|
-
*/
|
|
36
|
-
declare const CanvasConfigDebugger: React.FC<CanvasConfigDebuggerProps>;
|
|
37
|
-
export default CanvasConfigDebugger;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { ActionItem as ActionItemType, NodeTypeItem } from '../types';
|
|
3
|
-
interface ActionListProps {
|
|
4
|
-
actions: ActionItemType[];
|
|
5
|
-
selectedNode: NodeTypeItem;
|
|
6
|
-
isLoading: boolean;
|
|
7
|
-
onActionSelect: (node: NodeTypeItem, action: ActionItemType) => void;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* 动作列表组件
|
|
11
|
-
*
|
|
12
|
-
* 显示所选节点下的所有可用动作
|
|
13
|
-
*/
|
|
14
|
-
declare const ActionList: React.FC<ActionListProps>;
|
|
15
|
-
export default ActionList;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { CategoryItem as CategoryItemType, NodeTypeItem } from '../types';
|
|
3
|
-
interface CategoryContentProps {
|
|
4
|
-
currentCategory: CategoryItemType;
|
|
5
|
-
categoryNodes: NodeTypeItem[];
|
|
6
|
-
isLoadingSubCategories: boolean;
|
|
7
|
-
isLoadingNodes: boolean;
|
|
8
|
-
onCategoryClick: (category: CategoryItemType) => void;
|
|
9
|
-
onNodeClick: (node: NodeTypeItem) => void;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* 分类内容组件
|
|
13
|
-
*
|
|
14
|
-
* 显示当前分类下的子分类和节点列表
|
|
15
|
-
*/
|
|
16
|
-
declare const CategoryContent: React.FC<CategoryContentProps>;
|
|
17
|
-
export default CategoryContent;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { CategoryItem as CategoryItemType } from '../types';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
|
-
interface CategoryItemProps {
|
|
4
|
-
category: CategoryItemType;
|
|
5
|
-
onClick: (category: CategoryItemType) => void;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* 分类项组件
|
|
9
|
-
*
|
|
10
|
-
* 显示单个分类项,包含图标、名称、描述和箭头
|
|
11
|
-
*/
|
|
12
|
-
declare const CategoryItem: React.FC<CategoryItemProps>;
|
|
13
|
-
export default CategoryItem;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { CategoryItem as CategoryItemType } from '../types';
|
|
3
|
-
interface CategoryListProps {
|
|
4
|
-
categories: CategoryItemType[];
|
|
5
|
-
isLoadingCategories: boolean;
|
|
6
|
-
onCategoryClick: (category: CategoryItemType) => void;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* 分类列表组件
|
|
10
|
-
*
|
|
11
|
-
* 显示根级别的所有分类列表
|
|
12
|
-
*/
|
|
13
|
-
declare const CategoryList: React.FC<CategoryListProps>;
|
|
14
|
-
export default CategoryList;
|
package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/NodeItem.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { NodeTypeItem } from '../types';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
|
-
interface NodeItemProps {
|
|
4
|
-
node: NodeTypeItem;
|
|
5
|
-
onClick: (node: NodeTypeItem) => void;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* 节点项组件
|
|
9
|
-
*
|
|
10
|
-
* 显示单个节点项,包含图标、名称、描述和箭头
|
|
11
|
-
*/
|
|
12
|
-
declare const NodeItem: React.FC<NodeItemProps>;
|
|
13
|
-
export default NodeItem;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { NodeTypeItem } from '../types';
|
|
3
|
-
interface SearchResultsProps {
|
|
4
|
-
searchResults: NodeTypeItem[];
|
|
5
|
-
isSearching: boolean;
|
|
6
|
-
onNodeClick: (node: NodeTypeItem) => void;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* 搜索结果组件
|
|
10
|
-
*
|
|
11
|
-
* 根据搜索关键词显示分类和节点结果
|
|
12
|
-
*/
|
|
13
|
-
declare const SearchResults: React.FC<SearchResultsProps>;
|
|
14
|
-
export default SearchResults;
|
package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/hooks/useActions.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ActionItem, NodeTypeItem } from '../types';
|
|
2
|
-
interface UseActionsProps {
|
|
3
|
-
nodeSelectorVisible: boolean;
|
|
4
|
-
nodeAddInfo?: any;
|
|
5
|
-
}
|
|
6
|
-
interface FetchNodeActionOptions {
|
|
7
|
-
suppressLoading?: boolean;
|
|
8
|
-
page?: number;
|
|
9
|
-
size?: number;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* @description 节点动作获取相关能力,返回动作加载状态与查询方法。
|
|
13
|
-
*/
|
|
14
|
-
export declare const useActions: ({ nodeSelectorVisible, nodeAddInfo }: UseActionsProps) => {
|
|
15
|
-
isLoadingActions: boolean;
|
|
16
|
-
fetchNodeActions: (node: NodeTypeItem, options?: FetchNodeActionOptions) => Promise<ActionItem[]>;
|
|
17
|
-
};
|
|
18
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { DipNodeSummary } from '../../../api/dip';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
|
-
interface NodeListItemProps {
|
|
4
|
-
node: DipNodeSummary;
|
|
5
|
-
onSelect: (node: DipNodeSummary) => void;
|
|
6
|
-
}
|
|
7
|
-
declare const NodeListItem: React.FC<NodeListItemProps>;
|
|
8
|
-
export default NodeListItem;
|
package/dist/components/digitalsee/workflow/Panels/SimpleNodeSelectorPanel/hooks/useNodeList.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { DipNodeSummary } from '../../../api/dip';
|
|
2
|
-
interface NodeGroup {
|
|
3
|
-
pluginId: string;
|
|
4
|
-
nodes: DipNodeSummary[];
|
|
5
|
-
}
|
|
6
|
-
export declare function useNodeList(visible: boolean): {
|
|
7
|
-
allNodes: DipNodeSummary[];
|
|
8
|
-
filteredNodes: DipNodeSummary[];
|
|
9
|
-
groupedNodes: NodeGroup[];
|
|
10
|
-
loading: boolean;
|
|
11
|
-
searchText: string;
|
|
12
|
-
setSearchText: import('react').Dispatch<import('react').SetStateAction<string>>;
|
|
13
|
-
};
|
|
14
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* 简化版节点选择面板(暂废的 DIP Next 模式专用)
|
|
4
|
-
*
|
|
5
|
-
* 仅依赖 GET /dip/api/nodes 获取全部节点列表
|
|
6
|
-
* 支持客户端搜索和按 pluginId 分组显示
|
|
7
|
-
* 当前 nodepackage 节点仍通过 Classic 的 ModernNodeSelectorPanel 获取 ACM actions。
|
|
8
|
-
*/
|
|
9
|
-
declare const SimpleNodeSelectorPanel: React.FC;
|
|
10
|
-
export default SimpleNodeSelectorPanel;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { MultiRowGuardProps, MultiRowGuardRef } from '../MultiRowGuard/types';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
|
-
/**
|
|
4
|
-
* MultiRowGuard 数据校验规则配置组件
|
|
5
|
-
* @description 支持多行规则配置和拖拽排序的表单控件
|
|
6
|
-
* @param {MultiRowGuardProps} props 组件属性
|
|
7
|
-
* @param {React.Ref<MultiRowGuardRef>} ref 组件 ref
|
|
8
|
-
*/
|
|
9
|
-
declare const MultiRowGuard: React.ForwardRefExoticComponent<MultiRowGuardProps & React.RefAttributes<MultiRowGuardRef>>;
|
|
10
|
-
export default MultiRowGuard;
|
|
11
|
-
export type { GuardRule, GuardRuleError, MultiRowGuardProps, MultiRowGuardRef, MultiRowGuardValue, } from '../MultiRowGuard/types';
|
|
12
|
-
export { multiRowGuardRequiredValidator, multiRowGuardValidator, } from '../MultiRowGuard/types';
|
|
13
|
-
export { MultiRowGuard };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { NodeTypeItem } from '../Panels/ModernNodeSelectorPanel/types';
|
|
2
|
-
import { NodeAddInfo } from '../types/NodeAddContext';
|
|
3
|
-
export type { NodeAddInfo } from '../types/NodeAddContext';
|
|
4
|
-
export type NodeAddEvent = {
|
|
5
|
-
info: NodeAddInfo;
|
|
6
|
-
nodeType: NodeTypeItem;
|
|
7
|
-
};
|
|
8
|
-
/** 简易事件发射器 */
|
|
9
|
-
interface SimpleEventEmitter<T> {
|
|
10
|
-
emit: (val: T) => void;
|
|
11
|
-
useSubscription: (callback: (val: T) => void) => void;
|
|
12
|
-
listeners: Set<(val: T) => void>;
|
|
13
|
-
}
|
|
14
|
-
export declare const nodeAddEventBus: SimpleEventEmitter<NodeAddEvent>;
|
|
15
|
-
export declare const canvasEventBus: {
|
|
16
|
-
nodeAdd: SimpleEventEmitter<NodeAddEvent>;
|
|
17
|
-
};
|
|
18
|
-
export default canvasEventBus;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 全局配置示例
|
|
3
|
-
*
|
|
4
|
-
* 展示如何在应用入口配置工作流,然后在组件中直接使用
|
|
5
|
-
*/
|
|
6
|
-
export declare function WorkflowPageExample(): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export declare const setupCustomClient: () => void;
|
|
8
|
-
export declare function useWorkflowAuth(): {
|
|
9
|
-
updateToken: (_token: string) => void;
|
|
10
|
-
clearToken: () => void;
|
|
11
|
-
};
|
|
12
|
-
export declare function LoginExample(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Edge, Node, OnConnect, OnEdgesChange, OnNodesChange } from '@xyflow/react';
|
|
2
|
-
export type AppNode = Node;
|
|
3
|
-
export type AppState = {
|
|
4
|
-
nodes: AppNode[];
|
|
5
|
-
edges: Edge[];
|
|
6
|
-
onNodesChange: OnNodesChange<AppNode>;
|
|
7
|
-
onEdgesChange: OnEdgesChange;
|
|
8
|
-
onConnect: OnConnect;
|
|
9
|
-
setNodes: (nodes: AppNode[]) => void;
|
|
10
|
-
setEdges: (edges: Edge[]) => void;
|
|
11
|
-
};
|