@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
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Edge } from '@xyflow/react';
|
|
2
|
-
/**
|
|
3
|
-
* 连接对象类型定义
|
|
4
|
-
* main属性存储默认连接信息,可以有其他自定义属性
|
|
5
|
-
*/
|
|
6
|
-
export interface ConnectionsObject {
|
|
7
|
-
[edgeId: string]: {
|
|
8
|
-
main: {
|
|
9
|
-
source: string;
|
|
10
|
-
target: string;
|
|
11
|
-
sourceHandle?: string;
|
|
12
|
-
targetHandle?: string;
|
|
13
|
-
type?: string;
|
|
14
|
-
[key: string]: any;
|
|
15
|
-
};
|
|
16
|
-
[key: string]: any;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* 将边数组转换为连接对象
|
|
21
|
-
* @param edges 边数组
|
|
22
|
-
* @returns 连接对象,以边ID为键
|
|
23
|
-
*/
|
|
24
|
-
export declare function edgesToConnections(edges: Edge[]): ConnectionsObject;
|
|
25
|
-
/**
|
|
26
|
-
* 将连接对象转换为边数组
|
|
27
|
-
* @param connections 连接对象
|
|
28
|
-
* @returns 边数组
|
|
29
|
-
*/
|
|
30
|
-
export declare function connectionsToEdges(connections: ConnectionsObject): Edge[];
|
|
@@ -1,13 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
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,42 +0,0 @@
|
|
|
1
|
-
import { FieldEventHandlers } from '../types/events';
|
|
2
|
-
/**
|
|
3
|
-
* EventEngine Context 类型
|
|
4
|
-
*/
|
|
5
|
-
export interface EventEngineContextValue {
|
|
6
|
-
/** 字段事件处理器,供自定义组件调用 */
|
|
7
|
-
eventHandlers?: FieldEventHandlers;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* EventEngine Context
|
|
11
|
-
* 用于向子组件提供事件处理器
|
|
12
|
-
*/
|
|
13
|
-
export declare const EventEngineContext: import('react').Context<EventEngineContextValue>;
|
|
14
|
-
/**
|
|
15
|
-
* EventEngine Provider 属性
|
|
16
|
-
*/
|
|
17
|
-
export interface EventEngineProviderProps {
|
|
18
|
-
eventHandlers?: FieldEventHandlers;
|
|
19
|
-
children: React.ReactNode;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* EventEngine Provider
|
|
23
|
-
*/
|
|
24
|
-
export declare function EventEngineProvider({ eventHandlers, children }: EventEngineProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
/**
|
|
26
|
-
* 使用 EventEngine Context 的 Hook
|
|
27
|
-
* 自定义组件可以通过这个 Hook 获取事件处理器
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* const CustomField = () => {
|
|
31
|
-
* const { eventHandlers } = useEventEngineContext()
|
|
32
|
-
*
|
|
33
|
-
* useEffect(() => {
|
|
34
|
-
* fetch('/api/data').then(res => {
|
|
35
|
-
* eventHandlers?.dispatch('dataLoaded', { data: res.data })
|
|
36
|
-
* })
|
|
37
|
-
* }, [])
|
|
38
|
-
*
|
|
39
|
-
* return <div>...</div>
|
|
40
|
-
* }
|
|
41
|
-
*/
|
|
42
|
-
export declare function useEventEngineContext(): EventEngineContextValue;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { createFieldComponent, createSimpleFieldComponent, } from './createFieldComponent';
|
|
2
|
-
export { createFieldRegistry, defaultFieldRegistry, } from './FieldRegistry';
|
|
3
|
-
export { type AdditionalRegistration, FieldRegistryProvider, type FieldRegistryProviderProps, useFieldRegistry, } from './FieldRegistryContext';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/index-CNiN54LX.mjs
DELETED
|
@@ -1,288 +0,0 @@
|
|
|
1
|
-
import { jsx as t, jsxs as _ } from "react/jsx-runtime";
|
|
2
|
-
import { D as L, V as T, e as E, i as P, t as l, f as R, d as O } from "./index-DpaoO6Cc.mjs";
|
|
3
|
-
import { useEventEmitter as B, useReactive as A, useSize as W } from "ahooks";
|
|
4
|
-
import { FormattedMessage as b } from "react-intl";
|
|
5
|
-
import { CloseCircleFilled as H, CheckCircleFilled as G } from "@ant-design/icons";
|
|
6
|
-
import { Button as D } from "antd";
|
|
7
|
-
import * as K from "monaco-editor";
|
|
8
|
-
import { useRef as I, useEffect as M } from "react";
|
|
9
|
-
import { createPortal as z } from "react-dom";
|
|
10
|
-
import q from "react-monaco-editor";
|
|
11
|
-
const U = "_modalContainer_1ajlo_5", J = "_editorContainer_1ajlo_16", Q = "_sider_1ajlo_25", X = "_main_1ajlo_34", Y = "_header_1ajlo_40", Z = "_editor_1ajlo_16", w = {
|
|
12
|
-
modalContainer: U,
|
|
13
|
-
editorContainer: J,
|
|
14
|
-
sider: Q,
|
|
15
|
-
main: X,
|
|
16
|
-
header: Y,
|
|
17
|
-
editor: Z
|
|
18
|
-
}, ee = "_ideWrapper_sfar6_1", ne = {
|
|
19
|
-
ideWrapper: ee
|
|
20
|
-
}, te = (e) => {
|
|
21
|
-
const { nodeId: i, onInsert: o, open: c } = e, s = B();
|
|
22
|
-
return s.useSubscription((a) => {
|
|
23
|
-
a.type === "insert" && o(a.expression);
|
|
24
|
-
}), /* @__PURE__ */ t(L.Provider, { value: { event$: s }, children: /* @__PURE__ */ t("div", { className: ne.ideWrapper, children: /* @__PURE__ */ t(T, { nodeId: i, onInsert: o, open: c }) }) });
|
|
25
|
-
}, ie = "_siderContainer_fhkbn_1", oe = {
|
|
26
|
-
siderContainer: ie
|
|
27
|
-
};
|
|
28
|
-
function re(e) {
|
|
29
|
-
return /* @__PURE__ */ t("div", { className: oe.siderContainer, children: /* @__PURE__ */ t(te, { open: e.open, nodeId: e.nodeId, onInsert: e.onInsert }) });
|
|
30
|
-
}
|
|
31
|
-
const se = {
|
|
32
|
-
javascript: "link.flow.code_editor_language_javascript",
|
|
33
|
-
json: "link.flow.code_editor_language_json"
|
|
34
|
-
};
|
|
35
|
-
function ae({ language: e = "javascript" }) {
|
|
36
|
-
return /* @__PURE__ */ _("h2", { id: "workflow-online-ide-title", className: "workflow-online-ide-title", children: [
|
|
37
|
-
/* @__PURE__ */ t(b, { id: "link.flow.code_editor" }),
|
|
38
|
-
" (",
|
|
39
|
-
/* @__PURE__ */ t(b, { id: se[e] }),
|
|
40
|
-
")"
|
|
41
|
-
] });
|
|
42
|
-
}
|
|
43
|
-
function le(e) {
|
|
44
|
-
return /* @__PURE__ */ _("div", { className: "workflow-online-ide-toolbar", children: [
|
|
45
|
-
/* @__PURE__ */ t(D, { size: "small", onClick: e.onCancel, icon: /* @__PURE__ */ t(H, {}), children: /* @__PURE__ */ t(b, { id: "app.common.word.cancel" }) }),
|
|
46
|
-
/* @__PURE__ */ t(D, { type: "primary", size: "small", onClick: e.onFinish, icon: /* @__PURE__ */ t(G, {}), children: /* @__PURE__ */ t(b, { id: "app.common.word.finish" }) })
|
|
47
|
-
] });
|
|
48
|
-
}
|
|
49
|
-
const de = [{ trigger: "log", content: "console.log('$1');$2", desc: "输出日志" }, { trigger: "imp", content: "import $1 from '$2';$3" }, { trigger: "loop", content: `for (let $1=0; i< $2.length;i++) {
|
|
50
|
-
|
|
51
|
-
}`, desc: "循环操作" }], ce = {
|
|
52
|
-
snippets: de
|
|
53
|
-
}, ue = {
|
|
54
|
-
selectOnLineNumbers: !0,
|
|
55
|
-
automaticLayout: !0,
|
|
56
|
-
padding: {
|
|
57
|
-
top: 10
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
function ge(e) {
|
|
61
|
-
if (e.type === "global")
|
|
62
|
-
return [
|
|
63
|
-
`**${l("link.flow.variable_type_global")}**`,
|
|
64
|
-
`${l("link.flow.variable_path")}:\`${e.value}\``,
|
|
65
|
-
`${l("link.flow.variable_name")}:\`${e.path}\``
|
|
66
|
-
].filter(Boolean).join(`
|
|
67
|
-
|
|
68
|
-
`);
|
|
69
|
-
if (e.type === "builtin") {
|
|
70
|
-
const i = R.getBuiltinVariableTips(e.firstPart);
|
|
71
|
-
return [
|
|
72
|
-
`**${l("link.flow.variable_type_builtin")}**`,
|
|
73
|
-
`${l("link.flow.variable_path")}:\`${e.value}\``,
|
|
74
|
-
i
|
|
75
|
-
].filter(Boolean).join(`
|
|
76
|
-
|
|
77
|
-
`);
|
|
78
|
-
}
|
|
79
|
-
return e.type === "node" ? [
|
|
80
|
-
`**${l("link.flow.variable_type_node")}**`,
|
|
81
|
-
`${l("link.flow.variable_path")}:\`${e.value}\``,
|
|
82
|
-
e.path ? `${l("link.flow.variable_field")}:\`${e.path}\`` : ""
|
|
83
|
-
].filter(Boolean).join(`
|
|
84
|
-
|
|
85
|
-
`) : [
|
|
86
|
-
`**${l("link.flow.variable_type_platform")}**`,
|
|
87
|
-
`${l("link.flow.variable_path")}:\`${e.value}\``
|
|
88
|
-
].join(`
|
|
89
|
-
|
|
90
|
-
`);
|
|
91
|
-
}
|
|
92
|
-
const fe = (e) => ({
|
|
93
|
-
code: e.code,
|
|
94
|
-
severity: e.severity,
|
|
95
|
-
message: e.message,
|
|
96
|
-
source: e.source,
|
|
97
|
-
startLineNumber: e.startLineNumber,
|
|
98
|
-
startColumn: e.startColumn,
|
|
99
|
-
endLineNumber: e.endLineNumber,
|
|
100
|
-
endColumn: e.endColumn,
|
|
101
|
-
modelVersionId: e.modelVersionId,
|
|
102
|
-
relatedInformation: e.relatedInformation,
|
|
103
|
-
tags: e.tags
|
|
104
|
-
});
|
|
105
|
-
function N(e, i) {
|
|
106
|
-
const o = E(i.getValue());
|
|
107
|
-
if (!o.length)
|
|
108
|
-
return;
|
|
109
|
-
const c = e.editor.getModelMarkers({ resource: i.uri }), s = /* @__PURE__ */ new Map();
|
|
110
|
-
c.forEach((a) => {
|
|
111
|
-
const d = s.get(a.owner) ?? [];
|
|
112
|
-
d.push(a), s.set(a.owner, d);
|
|
113
|
-
}), s.forEach((a, d) => {
|
|
114
|
-
const u = a.filter(
|
|
115
|
-
(g) => !o.some((y) => O(y, g))
|
|
116
|
-
);
|
|
117
|
-
u.length !== a.length && e.editor.setModelMarkers(i, d, u.map(fe));
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
function pe(e, i) {
|
|
121
|
-
const o = [].map((c) => ({
|
|
122
|
-
insertText: c,
|
|
123
|
-
kind: e.languages.CompletionItemKind.Function,
|
|
124
|
-
// 对应提示图标的不同
|
|
125
|
-
label: c
|
|
126
|
-
}));
|
|
127
|
-
return e.languages.registerCompletionItemProvider(i, {
|
|
128
|
-
provideCompletionItems() {
|
|
129
|
-
return {
|
|
130
|
-
suggestions: o
|
|
131
|
-
};
|
|
132
|
-
},
|
|
133
|
-
quickSuggestions: !0,
|
|
134
|
-
// 默认提示关闭
|
|
135
|
-
triggerCharacters: ["{", ".", "=", ":"]
|
|
136
|
-
// 触发提示的字符 可以定义多个
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
function me(e) {
|
|
140
|
-
return e.languages.typescript.javascriptDefaults.setDiagnosticsOptions({
|
|
141
|
-
noSemanticValidation: !0,
|
|
142
|
-
noSyntaxValidation: !1
|
|
143
|
-
}), e.languages.typescript.javascriptDefaults.setCompilerOptions({
|
|
144
|
-
target: e.languages.typescript.ScriptTarget.ES2015,
|
|
145
|
-
allowNonTsExtensions: !0
|
|
146
|
-
}), e.languages.registerCompletionItemProvider("javascript", {
|
|
147
|
-
provideCompletionItems: () => ({
|
|
148
|
-
suggestions: ce.snippets.map((o) => ({
|
|
149
|
-
label: o.trigger,
|
|
150
|
-
kind: e.languages.CompletionItemKind.Method,
|
|
151
|
-
detail: o.desc ?? "",
|
|
152
|
-
insertText: o.content,
|
|
153
|
-
insertTextRules: e.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
154
|
-
}))
|
|
155
|
-
})
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
function $e(e) {
|
|
159
|
-
const { open: i, nodeId: o, initialValue: c, language: s = "javascript", showVariableSidebar: a = !0 } = e, d = I(null), u = I([]), g = A({
|
|
160
|
-
code: "",
|
|
161
|
-
range: new K.Range(1, 1, 1, 1)
|
|
162
|
-
}), y = (n, r) => {
|
|
163
|
-
n.onDidChangeCursorPosition((f) => {
|
|
164
|
-
const m = f.position, { lineNumber: p = 0, column: C = 0 } = m;
|
|
165
|
-
g.range = new r.Range(p, C, p, C);
|
|
166
|
-
}), d.current = n, n.focus(), g.code = n.getValue();
|
|
167
|
-
const x = r.languages.registerHoverProvider(s, {
|
|
168
|
-
provideHover: (f, m) => new Promise((p) => {
|
|
169
|
-
const h = E(f.getValue()).find(
|
|
170
|
-
(F) => P(F, m.lineNumber, m.column)
|
|
171
|
-
);
|
|
172
|
-
if (!h) {
|
|
173
|
-
p(null);
|
|
174
|
-
return;
|
|
175
|
-
}
|
|
176
|
-
p({
|
|
177
|
-
range: new r.Range(
|
|
178
|
-
h.startLine,
|
|
179
|
-
h.startColumn,
|
|
180
|
-
h.endLine,
|
|
181
|
-
h.endColumn
|
|
182
|
-
),
|
|
183
|
-
contents: [{ value: ge(h) }]
|
|
184
|
-
});
|
|
185
|
-
})
|
|
186
|
-
}), v = n.getModel();
|
|
187
|
-
if (v) {
|
|
188
|
-
let f = !1;
|
|
189
|
-
const m = r.editor.onDidChangeMarkers((p) => {
|
|
190
|
-
f || !p.some((C) => C.toString() === v.uri.toString()) || (f = !0, window.setTimeout(() => {
|
|
191
|
-
try {
|
|
192
|
-
N(r, v);
|
|
193
|
-
} finally {
|
|
194
|
-
f = !1;
|
|
195
|
-
}
|
|
196
|
-
}, 0));
|
|
197
|
-
});
|
|
198
|
-
N(r, v), n.onDidDispose(() => m.dispose());
|
|
199
|
-
}
|
|
200
|
-
n.onDidDispose(() => x.dispose());
|
|
201
|
-
}, V = (n) => {
|
|
202
|
-
u.current.forEach((r) => {
|
|
203
|
-
r.dispose();
|
|
204
|
-
}), u.current = [pe(n, s)], s === "javascript" && u.current.push(me(n));
|
|
205
|
-
};
|
|
206
|
-
M(
|
|
207
|
-
() => () => {
|
|
208
|
-
u.current.forEach((n) => {
|
|
209
|
-
n.dispose();
|
|
210
|
-
}), u.current = [];
|
|
211
|
-
},
|
|
212
|
-
[]
|
|
213
|
-
), M(() => {
|
|
214
|
-
if (!i)
|
|
215
|
-
return;
|
|
216
|
-
const n = (r) => {
|
|
217
|
-
r.key === "Escape" && (r.preventDefault(), e.onCancel());
|
|
218
|
-
};
|
|
219
|
-
return window.addEventListener("keydown", n), () => window.removeEventListener("keydown", n);
|
|
220
|
-
}, [i, e.onCancel]);
|
|
221
|
-
const S = (n) => {
|
|
222
|
-
const r = [
|
|
223
|
-
{
|
|
224
|
-
range: g.range,
|
|
225
|
-
text: n,
|
|
226
|
-
forceMoveMarkers: !0
|
|
227
|
-
}
|
|
228
|
-
];
|
|
229
|
-
d.current && g.range && d.current.executeEdits("my-source", r);
|
|
230
|
-
}, $ = () => {
|
|
231
|
-
var n;
|
|
232
|
-
(n = e.onFinish) == null || n.call(e, g.code);
|
|
233
|
-
}, j = I(null), k = W(j);
|
|
234
|
-
return z(
|
|
235
|
-
/* @__PURE__ */ t(
|
|
236
|
-
"div",
|
|
237
|
-
{
|
|
238
|
-
className: w.modalContainer,
|
|
239
|
-
ref: j,
|
|
240
|
-
style: { display: i ? "flex" : "none" },
|
|
241
|
-
role: "dialog",
|
|
242
|
-
"aria-modal": "true",
|
|
243
|
-
"aria-labelledby": "workflow-online-ide-title",
|
|
244
|
-
children: /* @__PURE__ */ _("div", { className: w.editorContainer, id: "javascript-code-editor", children: [
|
|
245
|
-
a ? /* @__PURE__ */ t("div", { className: w.sider, style: { maxWidth: "20%", padding: 0 }, children: /* @__PURE__ */ t(
|
|
246
|
-
re,
|
|
247
|
-
{
|
|
248
|
-
onCancel: e.onCancel,
|
|
249
|
-
onFinish: $,
|
|
250
|
-
editor: d.current,
|
|
251
|
-
nodeId: o,
|
|
252
|
-
open: i,
|
|
253
|
-
onInsert: S
|
|
254
|
-
}
|
|
255
|
-
) }) : null,
|
|
256
|
-
/* @__PURE__ */ _("div", { className: w.main, children: [
|
|
257
|
-
/* @__PURE__ */ _("div", { className: w.header, children: [
|
|
258
|
-
/* @__PURE__ */ t(ae, { language: s }),
|
|
259
|
-
/* @__PURE__ */ t(le, { onCancel: e.onCancel, onFinish: $ })
|
|
260
|
-
] }),
|
|
261
|
-
/* @__PURE__ */ t("div", { className: w.editor, children: /* @__PURE__ */ t(
|
|
262
|
-
q,
|
|
263
|
-
{
|
|
264
|
-
width: "100%",
|
|
265
|
-
height: ((k == null ? void 0 : k.height) ?? 0) - 40,
|
|
266
|
-
language: s,
|
|
267
|
-
theme: "vs-dark",
|
|
268
|
-
value: c,
|
|
269
|
-
options: ue,
|
|
270
|
-
onChange: (n) => {
|
|
271
|
-
g.code = n;
|
|
272
|
-
},
|
|
273
|
-
editorWillMount: V,
|
|
274
|
-
editorDidMount: y
|
|
275
|
-
},
|
|
276
|
-
o
|
|
277
|
-
) })
|
|
278
|
-
] })
|
|
279
|
-
] })
|
|
280
|
-
}
|
|
281
|
-
),
|
|
282
|
-
document.body
|
|
283
|
-
);
|
|
284
|
-
}
|
|
285
|
-
export {
|
|
286
|
-
$e as default
|
|
287
|
-
};
|
|
288
|
-
//# sourceMappingURL=index-CNiN54LX.mjs.map
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
'link.component.component-list': string;
|
|
3
|
-
'link.component.component-id': string;
|
|
4
|
-
'link.component.new-component': string;
|
|
5
|
-
'link.component.edit-component': string;
|
|
6
|
-
'link.component.related-flows': string;
|
|
7
|
-
'link.component.enabled-status': string;
|
|
8
|
-
'link.component.create-success': string;
|
|
9
|
-
'link.component.create-failed': string;
|
|
10
|
-
'link.component.update-success': string;
|
|
11
|
-
'link.component.update-failed': string;
|
|
12
|
-
'link.component.status-update-success': string;
|
|
13
|
-
'link.component.status-update-failed': string;
|
|
14
|
-
'link.component.component-type': string;
|
|
15
|
-
'link.component.component-type-required': string;
|
|
16
|
-
'link.component.component-type-placeholder': string;
|
|
17
|
-
'link.component.initial-config': string;
|
|
18
|
-
'link.component.initial-config-placeholder': string;
|
|
19
|
-
'link.component.component-config': string;
|
|
20
|
-
'link.component.config-placeholder': string;
|
|
21
|
-
'link.component.component-name-required': string;
|
|
22
|
-
'link.component.component-name-placeholder': string;
|
|
23
|
-
'link.component.description-required': string;
|
|
24
|
-
'link.component.description-placeholder': string;
|
|
25
|
-
'link.component.category-required': string;
|
|
26
|
-
'link.component.category-placeholder': string;
|
|
27
|
-
'link.component.version-required': string;
|
|
28
|
-
'link.component.version-placeholder': string;
|
|
29
|
-
'link.component.component-file': string;
|
|
30
|
-
'link.component.please-upload-file': string;
|
|
31
|
-
'link.component.upload-text': string;
|
|
32
|
-
'link.component.upload-hint': string;
|
|
33
|
-
'link.component.invalid-file-type': string;
|
|
34
|
-
'link.component.file-size-limit': string;
|
|
35
|
-
'link.component.upload-success': string;
|
|
36
|
-
'link.component.upload-failed': string;
|
|
37
|
-
'link.component.downloading': string;
|
|
38
|
-
'link.component.config-update-success': string;
|
|
39
|
-
'link.component.config-update-failed': string;
|
|
40
|
-
'link.component.category.general': string;
|
|
41
|
-
'link.component.category.data': string;
|
|
42
|
-
'link.component.category.transform': string;
|
|
43
|
-
'link.component.category.workflow': string;
|
|
44
|
-
'link.component.category.integration': string;
|
|
45
|
-
'link.component.type.input': string;
|
|
46
|
-
'link.component.type.process': string;
|
|
47
|
-
'link.component.type.output': string;
|
|
48
|
-
'link.component.type.transform': string;
|
|
49
|
-
'link.component.basic-config': string;
|
|
50
|
-
'link.component.advanced-config': string;
|
|
51
|
-
'link.component.security-config': string;
|
|
52
|
-
'link.component.enabled': string;
|
|
53
|
-
'link.component.priority': string;
|
|
54
|
-
'link.component.timeout': string;
|
|
55
|
-
'link.component.timeout-placeholder': string;
|
|
56
|
-
'link.component.retry-count': string;
|
|
57
|
-
'link.component.batch-size': string;
|
|
58
|
-
'link.component.error-handling': string;
|
|
59
|
-
'link.component.error-handling-placeholder': string;
|
|
60
|
-
'link.component.error-handling.continue': string;
|
|
61
|
-
'link.component.error-handling.stop': string;
|
|
62
|
-
'link.component.error-handling.retry': string;
|
|
63
|
-
'link.component.custom-params': string;
|
|
64
|
-
'link.component.custom-params-placeholder': string;
|
|
65
|
-
'link.component.enable-auth': string;
|
|
66
|
-
'link.component.auth-type': string;
|
|
67
|
-
'link.component.auth-type-placeholder': string;
|
|
68
|
-
'link.component.auth-type.none': string;
|
|
69
|
-
'link.component.auth-type.basic': string;
|
|
70
|
-
'link.component.auth-type.bearer': string;
|
|
71
|
-
'link.component.auth-type.oauth': string;
|
|
72
|
-
'link.component.encrypt-data': string;
|
|
73
|
-
'link.component.allowed-hosts': string;
|
|
74
|
-
'link.component.allowed-hosts-placeholder': string;
|
|
75
|
-
};
|
|
76
|
-
export default _default;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
'log.flow.run_id': string;
|
|
3
|
-
'log.flow.retry': string;
|
|
4
|
-
'log.flow.log_details': string;
|
|
5
|
-
'log.flow.error_message': string;
|
|
6
|
-
'log.flow.execution_node': string;
|
|
7
|
-
'log.flow.node_status': string;
|
|
8
|
-
'log.flow.request_data': string;
|
|
9
|
-
'log.flow.return_result': string;
|
|
10
|
-
'log.flow.detail': string;
|
|
11
|
-
'log.flow.collapse': string;
|
|
12
|
-
'log.flow.process-id': string;
|
|
13
|
-
'log.flow.run_duration': string;
|
|
14
|
-
'log.flow.error_count': string;
|
|
15
|
-
'log.flow.warning': string;
|
|
16
|
-
'log.flow.stop_running': string;
|
|
17
|
-
'log.flow.execution_steps': string;
|
|
18
|
-
'log.flow.branch.result.true': string;
|
|
19
|
-
'log.flow.branch.result.false': string;
|
|
20
|
-
'log.flow.branch.result.unknown': string;
|
|
21
|
-
'log.flow.status_skipped': string;
|
|
22
|
-
'log.flow.status_unknown': string;
|
|
23
|
-
'log.flow.select_node_hint': string;
|
|
24
|
-
'log.flow.no_nodes': string;
|
|
25
|
-
'log.flow.load_more_steps': string;
|
|
26
|
-
'log.flow.loop_iteration_current': string;
|
|
27
|
-
'log.flow.loop_iteration_suffix': string;
|
|
28
|
-
'log.flow.loop_iteration_label': string;
|
|
29
|
-
'log.flow.loop_overview_title': string;
|
|
30
|
-
'log.flow.loop_view_detail': string;
|
|
31
|
-
'log.flow.no_loop_data': string;
|
|
32
|
-
'log.flow.loop_child_count': string;
|
|
33
|
-
'log.flow.branch_child_count': string;
|
|
34
|
-
'log.flow.branch_overview_tips': string;
|
|
35
|
-
'log.flow.back_to_parent': string;
|
|
36
|
-
'log.flow.back_to_home': string;
|
|
37
|
-
'log.flow.agent_sub_steps': string;
|
|
38
|
-
'log.flow.agent_sub_step_prefix': string;
|
|
39
|
-
};
|
|
40
|
-
export default _default;
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
'link.component.component-list': string;
|
|
3
|
-
'link.component.component-name': string;
|
|
4
|
-
'link.component.component-id': string;
|
|
5
|
-
'link.component.new-component': string;
|
|
6
|
-
'link.component.edit-component': string;
|
|
7
|
-
'link.component.related-flows': string;
|
|
8
|
-
'link.component.enabled-status': string;
|
|
9
|
-
'link.component.create-success': string;
|
|
10
|
-
'link.component.create-failed': string;
|
|
11
|
-
'link.component.update-success': string;
|
|
12
|
-
'link.component.update-failed': string;
|
|
13
|
-
'link.component.status-update-success': string;
|
|
14
|
-
'link.component.status-update-failed': string;
|
|
15
|
-
'link.component.component-type': string;
|
|
16
|
-
'link.component.component-type-required': string;
|
|
17
|
-
'link.component.component-type-placeholder': string;
|
|
18
|
-
'link.component.initial-config': string;
|
|
19
|
-
'link.component.initial-config-placeholder': string;
|
|
20
|
-
'link.component.component-config': string;
|
|
21
|
-
'link.component.config-placeholder': string;
|
|
22
|
-
'link.component.component-name-required': string;
|
|
23
|
-
'link.component.component-name-placeholder': string;
|
|
24
|
-
'link.component.description-required': string;
|
|
25
|
-
'link.component.description-placeholder': string;
|
|
26
|
-
'link.component.category-required': string;
|
|
27
|
-
'link.component.category-placeholder': string;
|
|
28
|
-
'link.component.version-required': string;
|
|
29
|
-
'link.component.version-placeholder': string;
|
|
30
|
-
'link.component.component-file': string;
|
|
31
|
-
'link.component.please-upload-file': string;
|
|
32
|
-
'link.component.upload-text': string;
|
|
33
|
-
'link.component.upload-hint': string;
|
|
34
|
-
'link.component.invalid-file-type': string;
|
|
35
|
-
'link.component.file-size-limit': string;
|
|
36
|
-
'link.component.upload-success': string;
|
|
37
|
-
'link.component.upload-failed': string;
|
|
38
|
-
'link.component.downloading': string;
|
|
39
|
-
'link.component.config-update-success': string;
|
|
40
|
-
'link.component.config-update-failed': string;
|
|
41
|
-
'link.component.category.general': string;
|
|
42
|
-
'link.component.category.data': string;
|
|
43
|
-
'link.component.category.transform': string;
|
|
44
|
-
'link.component.category.workflow': string;
|
|
45
|
-
'link.component.category.integration': string;
|
|
46
|
-
'link.component.type.input': string;
|
|
47
|
-
'link.component.type.process': string;
|
|
48
|
-
'link.component.type.output': string;
|
|
49
|
-
'link.component.type.transform': string;
|
|
50
|
-
'link.component.basic-config': string;
|
|
51
|
-
'link.component.advanced-config': string;
|
|
52
|
-
'link.component.security-config': string;
|
|
53
|
-
'link.component.enabled': string;
|
|
54
|
-
'link.component.priority': string;
|
|
55
|
-
'link.component.timeout': string;
|
|
56
|
-
'link.component.timeout-placeholder': string;
|
|
57
|
-
'link.component.retry-count': string;
|
|
58
|
-
'link.component.batch-size': string;
|
|
59
|
-
'link.component.error-handling': string;
|
|
60
|
-
'link.component.error-handling-placeholder': string;
|
|
61
|
-
'link.component.error-handling.continue': string;
|
|
62
|
-
'link.component.error-handling.stop': string;
|
|
63
|
-
'link.component.error-handling.retry': string;
|
|
64
|
-
'link.component.custom-params': string;
|
|
65
|
-
'link.component.custom-params-placeholder': string;
|
|
66
|
-
'link.component.enable-auth': string;
|
|
67
|
-
'link.component.auth-type': string;
|
|
68
|
-
'link.component.auth-type-placeholder': string;
|
|
69
|
-
'link.component.auth-type.none': string;
|
|
70
|
-
'link.component.auth-type.basic': string;
|
|
71
|
-
'link.component.auth-type.bearer': string;
|
|
72
|
-
'link.component.auth-type.oauth': string;
|
|
73
|
-
'link.component.encrypt-data': string;
|
|
74
|
-
'link.component.allowed-hosts': string;
|
|
75
|
-
'link.component.allowed-hosts-placeholder': string;
|
|
76
|
-
};
|
|
77
|
-
export default _default;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
'log.flow.run_id': string;
|
|
3
|
-
'log.flow.retry': string;
|
|
4
|
-
'log.flow.log_details': string;
|
|
5
|
-
'log.flow.error_message': string;
|
|
6
|
-
'log.flow.execution_node': string;
|
|
7
|
-
'log.flow.node_status': string;
|
|
8
|
-
'log.flow.request_data': string;
|
|
9
|
-
'log.flow.return_result': string;
|
|
10
|
-
'log.flow.detail': string;
|
|
11
|
-
'log.flow.collapse': string;
|
|
12
|
-
'log.flow.process-id': string;
|
|
13
|
-
'log.flow.run_duration': string;
|
|
14
|
-
'log.flow.error_count': string;
|
|
15
|
-
'log.flow.warning': string;
|
|
16
|
-
'log.flow.overview': string;
|
|
17
|
-
'log.flow.stop_running': string;
|
|
18
|
-
'log.flow.execution_steps': string;
|
|
19
|
-
'log.flow.branch.result.true': string;
|
|
20
|
-
'log.flow.branch.result.false': string;
|
|
21
|
-
'log.flow.branch.result.unknown': string;
|
|
22
|
-
'log.flow.status_skipped': string;
|
|
23
|
-
'log.flow.status_unknown': string;
|
|
24
|
-
'log.flow.select_node_hint': string;
|
|
25
|
-
'log.flow.no_nodes': string;
|
|
26
|
-
'log.flow.load_more_steps': string;
|
|
27
|
-
'log.flow.loop_iteration_current': string;
|
|
28
|
-
'log.flow.loop_iteration_suffix': string;
|
|
29
|
-
'log.flow.loop_iteration_label': string;
|
|
30
|
-
'log.flow.loop_overview_title': string;
|
|
31
|
-
'log.flow.loop_view_detail': string;
|
|
32
|
-
'log.flow.no_loop_data': string;
|
|
33
|
-
'log.flow.loop_child_count': string;
|
|
34
|
-
'log.flow.branch_child_count': string;
|
|
35
|
-
'log.flow.branch_overview_tips': string;
|
|
36
|
-
'log.flow.back_to_parent': string;
|
|
37
|
-
'log.flow.back_to_home': string;
|
|
38
|
-
'log.flow.agent_sub_steps': string;
|
|
39
|
-
'log.flow.agent_sub_step_prefix': string;
|
|
40
|
-
};
|
|
41
|
-
export default _default;
|