@digitalsee-ai/rcs 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +237 -0
- package/dist/components/digitalsee/JsonRenderer/index.d.ts +22 -0
- package/dist/components/digitalsee/JsonRenderer/locales/en.d.ts +7 -0
- package/dist/components/digitalsee/JsonRenderer/locales/zh.d.ts +7 -0
- package/dist/components/digitalsee/index.d.ts +1 -0
- package/dist/components/digitalsee/workflow/Canvas/FastOperationButtons.d.ts +44 -0
- package/dist/components/digitalsee/workflow/Canvas/FullscreenLoading.d.ts +3 -0
- package/dist/components/digitalsee/workflow/Canvas/GlobalSvg.d.ts +1 -0
- package/dist/components/digitalsee/workflow/Canvas/HelperLines.d.ts +8 -0
- package/dist/components/digitalsee/workflow/Canvas/MiniMap.d.ts +3 -0
- package/dist/components/digitalsee/workflow/Canvas/WorkflowCanvas.d.ts +15 -0
- package/dist/components/digitalsee/workflow/Canvas/WorkflowCanvasHeader.d.ts +15 -0
- package/dist/components/digitalsee/workflow/Canvas/WorkflowDebugPanel.d.ts +28 -0
- package/dist/components/digitalsee/workflow/Canvas/color.d.ts +1 -0
- package/dist/components/digitalsee/workflow/Canvas/utils.d.ts +8 -0
- package/dist/components/digitalsee/workflow/Edges/BaseEdge.d.ts +30 -0
- package/dist/components/digitalsee/workflow/Handles/CustomHandle.d.ts +30 -0
- package/dist/components/digitalsee/workflow/Handles/HandleFactory.d.ts +35 -0
- package/dist/components/digitalsee/workflow/Handles/InputHandle.d.ts +12 -0
- package/dist/components/digitalsee/workflow/Handles/OutputHandle.d.ts +12 -0
- package/dist/components/digitalsee/workflow/Handles/OutputHandleWithButton.d.ts +15 -0
- package/dist/components/digitalsee/workflow/Nodes/AISubNode.d.ts +9 -0
- package/dist/components/digitalsee/workflow/Nodes/ActionNode.d.ts +13 -0
- package/dist/components/digitalsee/workflow/Nodes/AgentNode.d.ts +10 -0
- package/dist/components/digitalsee/workflow/Nodes/BrowserNode.d.ts +10 -0
- package/dist/components/digitalsee/workflow/Nodes/BuiltinMCPNode.d.ts +9 -0
- package/dist/components/digitalsee/workflow/Nodes/ConditionNode.d.ts +13 -0
- package/dist/components/digitalsee/workflow/Nodes/CustomNode.d.ts +15 -0
- package/dist/components/digitalsee/workflow/Nodes/LoopNode.d.ts +4 -0
- package/dist/components/digitalsee/workflow/Nodes/MCPServerNode.d.ts +9 -0
- package/dist/components/digitalsee/workflow/Nodes/MCPToolNode.d.ts +9 -0
- package/dist/components/digitalsee/workflow/Nodes/NodeFactory.d.ts +33 -0
- package/dist/components/digitalsee/workflow/Nodes/NodeStatusDemo.d.ts +7 -0
- package/dist/components/digitalsee/workflow/Nodes/SelfLoopNode.d.ts +4 -0
- package/dist/components/digitalsee/workflow/Nodes/StartNode.d.ts +1 -0
- package/dist/components/digitalsee/workflow/Nodes/StickyNoteNode.d.ts +33 -0
- package/dist/components/digitalsee/workflow/Nodes/SuperBaseNode.d.ts +45 -0
- package/dist/components/digitalsee/workflow/Nodes/SwitchNode.d.ts +13 -0
- package/dist/components/digitalsee/workflow/Nodes/TriggerNode.d.ts +9 -0
- package/dist/components/digitalsee/workflow/Nodes/components/NodeDescription.d.ts +17 -0
- package/dist/components/digitalsee/workflow/Nodes/components/NodeDescriptionExample.d.ts +0 -0
- package/dist/components/digitalsee/workflow/Nodes/components/NodeOperations.d.ts +14 -0
- package/dist/components/digitalsee/workflow/Nodes/components/UnlinkThunder/index.d.ts +4 -0
- package/dist/components/digitalsee/workflow/NodesConfig/ActionNodeConfig/index.d.ts +1 -0
- package/dist/components/digitalsee/workflow/NodesConfig/ConditionNodeConfig/index.d.ts +6 -0
- package/dist/components/digitalsee/workflow/NodesConfig/ErrorHandler.d.ts +8 -0
- package/dist/components/digitalsee/workflow/NodesConfig/LoopNodeConfig/index.d.ts +8 -0
- package/dist/components/digitalsee/workflow/NodesConfig/McpToolNodeConfig/index.d.ts +1 -0
- package/dist/components/digitalsee/workflow/NodesConfig/SwitchNodeConfig/index.d.ts +13 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/CreateAccountModal/index.d.ts +13 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/DateField/index.d.ts +5 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/DateTimeField/index.d.ts +5 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/ExtendObjectField/index.d.ts +10 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/FixedObjectField/index.d.ts +5 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/HiddenField/index.d.ts +5 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/JsonField/index.d.ts +5 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/LabelField/index.d.ts +5 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/PasswordField/index.d.ts +4 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/SelectField/index.d.ts +10 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/TextAreaField/index.d.ts +5 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/TextField/index.d.ts +5 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/TimeField/index.d.ts +5 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/super.d.ts +6 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/index.d.ts +13 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/middlewares/extend-obj.d.ts +10 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/ModifyAccountModal/index.d.ts +14 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/index.d.ts +12 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/EditInOnlineIDE/index.d.ts +11 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/components/AIFormField.d.ts +8 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/ApiSelectField/index.d.ts +9 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/DateField/index.d.ts +5 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/DateTimeField/index.d.ts +5 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/DynamicSelectListField/index.d.ts +11 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/ExtendObjectField/index.d.ts +11 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/FixedObjectField/index.d.ts +11 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/HiddenField/index.d.ts +5 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/HourMiniuteField/index.d.ts +5 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JavscriptTagEditorField/common-placeholder-theme.d.ts +57 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JavscriptTagEditorField/editor.d.ts +1 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JavscriptTagEditorField/extensions.d.ts +11 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JavscriptTagEditorField/index.d.ts +3 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JavscriptTagEditorField/interface.d.ts +29 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JavscriptTagEditorField/plugin/base-theme.d.ts +1 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JavscriptTagEditorField/plugin/custom-completions.d.ts +5 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JavscriptTagEditorField/plugin/functions.d.ts +3 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JavscriptTagEditorField/plugin/hint.d.ts +11 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JavscriptTagEditorField/plugin/keywords.d.ts +2 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JavscriptTagEditorField/plugin/placeholders.d.ts +3 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonField/index.d.ts +5 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/common-placeholder-theme.d.ts +57 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/editor.d.ts +1 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/extensions.d.ts +11 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/index.d.ts +3 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/interface.d.ts +29 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/plugin/base-theme.d.ts +1 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/plugin/custom-completions.d.ts +5 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/plugin/functions.d.ts +3 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/plugin/hint.d.ts +11 -0
- 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/placeholders.d.ts +3 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/LabelField/index.d.ts +5 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/MutilRowAIExtractConfigField/index.d.ts +13 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/PasswordField/index.d.ts +6 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/RichTagInput/help.d.ts +3 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/RichTagInput/index.d.ts +4 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/SelectField/index.d.ts +10 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/TextAreaField/index.d.ts +6 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/TextField/index.d.ts +14 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/TimeField/index.d.ts +5 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/WebhookLabelField/index.d.ts +15 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/super.d.ts +6 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/index.d.ts +21 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/middlewares/extend-obj.d.ts +10 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/NodeTest.d.ts +6 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/ProxyGroupSelect/index.d.ts +5 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/RShow/index.d.ts +7 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/VariableModal/index.d.ts +7 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/VariableModal/tree-help.d.ts +49 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/online-ide/components/IDEVariableModal/index.d.ts +7 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/online-ide/components/IDEVariableModal/tree-help.d.ts +49 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/online-ide/components/sider/index.d.ts +10 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/online-ide/components/title/index.d.ts +1 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/online-ide/components/toolbar/index.d.ts +6 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/online-ide/helper/matchVar.d.ts +7 -0
- package/dist/components/digitalsee/workflow/NodesConfig/components/online-ide/index.d.ts +9 -0
- package/dist/components/digitalsee/workflow/NodesConfig/define/actions.d.ts +51 -0
- package/dist/components/digitalsee/workflow/NodesConfig/define/condition.d.ts +78 -0
- package/dist/components/digitalsee/workflow/NodesConfig/define/config-form-item.d.ts +34 -0
- package/dist/components/digitalsee/workflow/NodesConfig/define/flow.d.ts +26 -0
- package/dist/components/digitalsee/workflow/NodesConfig/define/links.d.ts +17 -0
- package/dist/components/digitalsee/workflow/NodesConfig/index.d.ts +16 -0
- package/dist/components/digitalsee/workflow/Panels/CanvasConfigDebugger.d.ts +37 -0
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/ActionItem.d.ts +14 -0
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/ActionList.d.ts +15 -0
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/CategoryContent.d.ts +17 -0
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/CategoryItem.d.ts +13 -0
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/CategoryList.d.ts +14 -0
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/CategoryTabs.d.ts +15 -0
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/NodeCard.d.ts +19 -0
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/NodeItem.d.ts +13 -0
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/PanelHeader.d.ts +19 -0
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/SearchResults.d.ts +14 -0
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/defaultData.d.ts +3 -0
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/hooks/useActions.d.ts +16 -0
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/hooks/useCategories.d.ts +14 -0
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/hooks/useNavigation.d.ts +30 -0
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/hooks/useSearch.d.ts +24 -0
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/index.d.ts +9 -0
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/types.d.ts +144 -0
- package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/utils/dataTransformers.d.ts +11 -0
- package/dist/components/digitalsee/workflow/api/index.d.ts +123 -0
- package/dist/components/digitalsee/workflow/config/defaultCanvasEngineConfig.d.ts +26 -0
- package/dist/components/digitalsee/workflow/config/globalConfig.d.ts +35 -0
- package/dist/components/digitalsee/workflow/config/themeConfig.d.ts +172 -0
- package/dist/components/digitalsee/workflow/context/canvasApiContext.d.ts +48 -0
- package/dist/components/digitalsee/workflow/context/canvasConfig.d.ts +3 -0
- package/dist/components/digitalsee/workflow/de.d.ts +1 -0
- package/dist/components/digitalsee/workflow/events/eventBus.d.ts +22 -0
- package/dist/components/digitalsee/workflow/examples/global-config-example.d.ts +12 -0
- package/dist/components/digitalsee/workflow/hooks/state.hooks.d.ts +2 -0
- package/dist/components/digitalsee/workflow/hooks/use-before-unload.d.ts +4 -0
- package/dist/components/digitalsee/workflow/hooks/use-edges-interaction.d.ts +9 -0
- package/dist/components/digitalsee/workflow/hooks/use-flow-data-operation.d.ts +7 -0
- package/dist/components/digitalsee/workflow/hooks/use-node-data-update.d.ts +9 -0
- package/dist/components/digitalsee/workflow/hooks/use-nodes-interaction.d.ts +9 -0
- package/dist/components/digitalsee/workflow/hooks/use-wokflow-id.d.ts +1 -0
- package/dist/components/digitalsee/workflow/hooks/useCanvasLayout.d.ts +6 -0
- package/dist/components/digitalsee/workflow/hooks/useHandleConnections.d.ts +5 -0
- package/dist/components/digitalsee/workflow/hooks/useUndo.d.ts +13 -0
- package/dist/components/digitalsee/workflow/hooks/useWorkflow.d.ts +34 -0
- package/dist/components/digitalsee/workflow/index.d.ts +107 -0
- package/dist/components/digitalsee/workflow/migration/umi.d.ts +7 -0
- package/dist/components/digitalsee/workflow/store/panelSlice.d.ts +89 -0
- package/dist/components/digitalsee/workflow/store/types.d.ts +11 -0
- package/dist/components/digitalsee/workflow/types/Edge.d.ts +20 -0
- package/dist/components/digitalsee/workflow/types/Handle.d.ts +44 -0
- package/dist/components/digitalsee/workflow/types/Node.d.ts +102 -0
- package/dist/components/digitalsee/workflow/types/NodeProtocol.d.ts +12 -0
- package/dist/components/digitalsee/workflow/types/SaveStatus.d.ts +1 -0
- package/dist/components/digitalsee/workflow/types/Workflow.d.ts +58 -0
- package/dist/components/digitalsee/workflow/types/engine.d.ts +244 -0
- package/dist/components/digitalsee/workflow/utils/calculateNodePosition.d.ts +10 -0
- package/dist/components/digitalsee/workflow/utils/common.d.ts +87 -0
- package/dist/components/digitalsee/workflow/utils/edgeConverters.d.ts +30 -0
- package/dist/components/digitalsee/workflow/utils/flowDataAdapter.d.ts +72 -0
- package/dist/components/digitalsee/workflow/utils/glob.d.ts +15 -0
- package/dist/components/digitalsee/workflow/utils/layoutUtils.d.ts +43 -0
- package/dist/components/digitalsee/workflow/utils/mergeConfig.d.ts +22 -0
- package/dist/components/digitalsee/workflow/utils/nodeDataFormatter.d.ts +32 -0
- package/dist/components/digitalsee/workflow/utils/optionValues.d.ts +13 -0
- package/dist/components/digitalsee/workflow/utils/time.d.ts +1 -0
- package/dist/components/digitalsee/workflow/utils/uuid.d.ts +2 -0
- package/dist/components/dynamic-form/AntdProvider.d.ts +13 -0
- package/dist/components/dynamic-form/DynamicForm.d.ts +52 -0
- package/dist/components/dynamic-form/DynamicFormContext.d.ts +22 -0
- package/dist/components/dynamic-form/FieldRenderer.d.ts +45 -0
- package/dist/components/dynamic-form/components/AIFieldWrapper/index.d.ts +11 -0
- package/dist/components/dynamic-form/components/SelectWithExpression/index.d.ts +25 -0
- package/dist/components/dynamic-form/components/ValueModeWrapper/index.d.ts +44 -0
- package/dist/components/dynamic-form/components/VariableInput/index.d.ts +24 -0
- package/dist/components/dynamic-form/components/VariableInput/utils.d.ts +38 -0
- package/dist/components/dynamic-form/components/VariableTextarea/index.d.ts +10 -0
- package/dist/components/dynamic-form/context/EventEngineContext.d.ts +42 -0
- package/dist/components/dynamic-form/context/VariableSelectorContext.d.ts +67 -0
- package/dist/components/dynamic-form/core/ActionExecutor.d.ts +9 -0
- package/dist/components/dynamic-form/core/EventEngine.d.ts +30 -0
- package/dist/components/dynamic-form/fields/base/NumberField.d.ts +1 -0
- package/dist/components/dynamic-form/fields/base/PasswordField.d.ts +1 -0
- package/dist/components/dynamic-form/fields/base/TextField.d.ts +1 -0
- package/dist/components/dynamic-form/fields/base/TextareaField.d.ts +1 -0
- package/dist/components/dynamic-form/fields/base/index.d.ts +4 -0
- package/dist/components/dynamic-form/fields/complex/ArrayField.d.ts +1 -0
- package/dist/components/dynamic-form/fields/complex/ArrayObjectField.d.ts +1 -0
- package/dist/components/dynamic-form/fields/complex/KeyValueField.d.ts +1 -0
- package/dist/components/dynamic-form/fields/complex/ObjectField.d.ts +1 -0
- package/dist/components/dynamic-form/fields/complex/index.d.ts +4 -0
- package/dist/components/dynamic-form/fields/datetime/DateField.d.ts +1 -0
- package/dist/components/dynamic-form/fields/datetime/DateRangeField.d.ts +1 -0
- package/dist/components/dynamic-form/fields/datetime/DateTimeField.d.ts +1 -0
- package/dist/components/dynamic-form/fields/datetime/TimeField.d.ts +1 -0
- package/dist/components/dynamic-form/fields/datetime/TimeRangeField.d.ts +1 -0
- package/dist/components/dynamic-form/fields/datetime/index.d.ts +5 -0
- package/dist/components/dynamic-form/fields/display/DividerField.d.ts +1 -0
- package/dist/components/dynamic-form/fields/display/HiddenField.d.ts +1 -0
- package/dist/components/dynamic-form/fields/display/InfoCardField.d.ts +1 -0
- package/dist/components/dynamic-form/fields/display/JsonField.d.ts +1 -0
- package/dist/components/dynamic-form/fields/display/LabelField.d.ts +1 -0
- package/dist/components/dynamic-form/fields/display/index.d.ts +5 -0
- package/dist/components/dynamic-form/fields/select/CascaderField.d.ts +1 -0
- package/dist/components/dynamic-form/fields/select/CheckboxField.d.ts +1 -0
- package/dist/components/dynamic-form/fields/select/CheckboxGroupField.d.ts +1 -0
- package/dist/components/dynamic-form/fields/select/RadioField.d.ts +1 -0
- package/dist/components/dynamic-form/fields/select/SelectField.d.ts +1 -0
- package/dist/components/dynamic-form/fields/select/SwitchField.d.ts +1 -0
- package/dist/components/dynamic-form/fields/select/TreeSelectField.d.ts +1 -0
- package/dist/components/dynamic-form/fields/select/index.d.ts +7 -0
- package/dist/components/dynamic-form/fields/special/AutoCompleteField.d.ts +1 -0
- package/dist/components/dynamic-form/fields/special/ColorPickerField.d.ts +1 -0
- package/dist/components/dynamic-form/fields/special/MentionsField.d.ts +1 -0
- package/dist/components/dynamic-form/fields/special/RateField.d.ts +1 -0
- package/dist/components/dynamic-form/fields/special/SliderField.d.ts +1 -0
- package/dist/components/dynamic-form/fields/special/UploadField.d.ts +1 -0
- package/dist/components/dynamic-form/fields/special/index.d.ts +6 -0
- package/dist/components/dynamic-form/index.d.ts +21 -0
- package/dist/components/dynamic-form/registry/FieldRegistry.d.ts +26 -0
- package/dist/components/dynamic-form/registry/FieldRegistryContext.d.ts +53 -0
- package/dist/components/dynamic-form/registry/createFieldComponent.d.ts +56 -0
- package/dist/components/dynamic-form/registry/index.d.ts +3 -0
- package/dist/components/dynamic-form/types/data-loader.d.ts +144 -0
- package/dist/components/dynamic-form/types/events.d.ts +203 -0
- package/dist/components/dynamic-form/types/field-component.d.ts +156 -0
- package/dist/components/dynamic-form/types/form-schema.d.ts +297 -0
- package/dist/components/dynamic-form/types/index.d.ts +4 -0
- package/dist/components/dynamic-form/types/validation.d.ts +53 -0
- package/dist/components/dynamic-form/utils/__tests__/path-get.test.d.ts +1 -0
- package/dist/components/dynamic-form/utils/conditions.d.ts +4 -0
- package/dist/components/dynamic-form/utils/generateEvents.d.ts +84 -0
- package/dist/components/dynamic-form/utils/path-get.d.ts +21 -0
- package/dist/components/dynamic-form/utils/useDataLoader.d.ts +47 -0
- package/dist/components/dynamic-form/utils/validation.d.ts +7 -0
- package/dist/components/dynamic-form/utils/visible.d.ts +7 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/locales/en-US/common.d.ts +571 -0
- package/dist/locales/en-US/link/component.d.ts +76 -0
- package/dist/locales/en-US/link/flow.d.ts +152 -0
- package/dist/locales/en-US/link/log.d.ts +40 -0
- package/dist/locales/en-US/link/template.d.ts +6 -0
- package/dist/locales/en-US.d.ts +720 -0
- package/dist/locales/index.d.ts +722 -0
- package/dist/locales/zh-CN/common.d.ts +571 -0
- package/dist/locales/zh-CN/link/component.d.ts +77 -0
- package/dist/locales/zh-CN/link/flow.d.ts +152 -0
- package/dist/locales/zh-CN/link/log.d.ts +41 -0
- package/dist/locales/zh-CN/link/template.d.ts +6 -0
- package/dist/locales/zh-CN.d.ts +720 -0
- package/dist/locales/zh-TW/common.d.ts +567 -0
- package/dist/locales/zh-TW/link/component.d.ts +76 -0
- package/dist/locales/zh-TW/link/flow.d.ts +151 -0
- package/dist/locales/zh-TW/link/log.d.ts +37 -0
- package/dist/locales/zh-TW/link/template.d.ts +6 -0
- package/dist/locales/zh-TW.d.ts +715 -0
- package/dist/rcs.css +1 -0
- package/dist/rcs.es.js +49858 -0
- package/dist/rcs.umd.js +98 -0
- package/dist/storybook-utils.d.ts +4 -0
- package/dist/utils.d.ts +2 -0
- package/package.json +147 -0
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { LinkSearchParams, LinkSearchResponse } from '../Panels/ModernNodeSelectorPanel/types';
|
|
2
|
+
export interface WorkflowRequestOptions {
|
|
3
|
+
method?: string;
|
|
4
|
+
headers?: Record<string, string>;
|
|
5
|
+
params?: Record<string, any>;
|
|
6
|
+
data?: any;
|
|
7
|
+
transformResponse?: (data: any) => any;
|
|
8
|
+
}
|
|
9
|
+
export type WorkflowHttpClient = <T = any>(url: string, options?: WorkflowRequestOptions) => Promise<T>;
|
|
10
|
+
export interface WorkflowApiEndpoints {
|
|
11
|
+
nodeCategory: string;
|
|
12
|
+
nodesList: string;
|
|
13
|
+
searchLinks: string;
|
|
14
|
+
actions: string;
|
|
15
|
+
createNode: string;
|
|
16
|
+
updateNode: string;
|
|
17
|
+
updateEdges: string;
|
|
18
|
+
copyFlow: string;
|
|
19
|
+
proxyGroup: string;
|
|
20
|
+
createFlow: string;
|
|
21
|
+
flowDetail: string;
|
|
22
|
+
testRunNode: string;
|
|
23
|
+
listenWebhook: string;
|
|
24
|
+
connectors: string;
|
|
25
|
+
connectorDetail: string;
|
|
26
|
+
nodeDetail: string;
|
|
27
|
+
cancelDebug: string;
|
|
28
|
+
deleteNode: string;
|
|
29
|
+
checkFlow: string;
|
|
30
|
+
templateFlow: string;
|
|
31
|
+
flowOutput: string;
|
|
32
|
+
flowOutputTree: string;
|
|
33
|
+
accountModel: string;
|
|
34
|
+
accountInstanceCollection: string;
|
|
35
|
+
accountInstanceDetail: string;
|
|
36
|
+
accountInstanceTest: string;
|
|
37
|
+
moveNode: string;
|
|
38
|
+
copyNode: string;
|
|
39
|
+
updateNodeNote: string;
|
|
40
|
+
nodeStatus: string;
|
|
41
|
+
exportNode: string;
|
|
42
|
+
importNode: string;
|
|
43
|
+
stopFlow: string;
|
|
44
|
+
runFlow: string;
|
|
45
|
+
removeEdges: string;
|
|
46
|
+
selectOptions: string;
|
|
47
|
+
flowOpStatus: string;
|
|
48
|
+
}
|
|
49
|
+
export interface WorkflowApiConfig {
|
|
50
|
+
endpoints: WorkflowApiEndpoints;
|
|
51
|
+
httpClient: WorkflowHttpClient;
|
|
52
|
+
baseUrl?: string;
|
|
53
|
+
token?: string;
|
|
54
|
+
}
|
|
55
|
+
export type WorkflowApiConfigUpdate = Partial<Pick<WorkflowApiConfig, 'httpClient' | 'baseUrl' | 'token'>> & {
|
|
56
|
+
endpoints?: Partial<WorkflowApiEndpoints>;
|
|
57
|
+
};
|
|
58
|
+
export declare const configureWorkflowApi: (config: WorkflowApiConfigUpdate) => void;
|
|
59
|
+
export declare const resetWorkflowApiConfig: () => void;
|
|
60
|
+
export declare const getWorkflowApiConfig: () => WorkflowApiConfig;
|
|
61
|
+
export declare function apiGetNodeCategory(params: any): Promise<unknown>;
|
|
62
|
+
export declare function apiGetNodesList(params: {
|
|
63
|
+
app_domain_category: string;
|
|
64
|
+
name?: string;
|
|
65
|
+
}): Promise<unknown>;
|
|
66
|
+
export declare function apiSearchLinks(params: LinkSearchParams): Promise<LinkSearchResponse>;
|
|
67
|
+
export declare const apiGetActions: (params: {
|
|
68
|
+
linkId?: string;
|
|
69
|
+
name?: string;
|
|
70
|
+
actionType?: string;
|
|
71
|
+
trigger?: boolean;
|
|
72
|
+
protocol?: string;
|
|
73
|
+
flowId: string;
|
|
74
|
+
}) => Promise<unknown>;
|
|
75
|
+
export declare function apiCreateNode(data: any): Promise<unknown>;
|
|
76
|
+
export declare function apiUpdateNode(id: string, data: any): Promise<unknown>;
|
|
77
|
+
export declare function apiUpdateEdges(flowId: string, data: any): Promise<unknown>;
|
|
78
|
+
export declare function apiCopyFlow(id: string): Promise<unknown>;
|
|
79
|
+
export declare function apiGetProxyGroup(): Promise<unknown>;
|
|
80
|
+
declare const defaultFlowParams: {
|
|
81
|
+
nodes: any[];
|
|
82
|
+
connections: any[];
|
|
83
|
+
name: string;
|
|
84
|
+
};
|
|
85
|
+
export declare function apiCreateFlow(data?: typeof defaultFlowParams): Promise<unknown>;
|
|
86
|
+
export declare function apiGetFlow(flowId: string): Promise<unknown>;
|
|
87
|
+
export declare function apiUpdateFlow(flowId: string, data: any): Promise<unknown>;
|
|
88
|
+
export declare function apiTestRunNode(id: string): Promise<unknown>;
|
|
89
|
+
export declare function apiListenWebhook(flowId: string, params?: {
|
|
90
|
+
timeout_seconds?: number;
|
|
91
|
+
}): Promise<unknown>;
|
|
92
|
+
export declare function apiGetConnectors(trigger?: boolean, protocol?: string): Promise<unknown>;
|
|
93
|
+
export declare function apiGetConnecter(connectorId: string): Promise<unknown>;
|
|
94
|
+
export declare function apiGetNode(id: string): Promise<unknown>;
|
|
95
|
+
export declare function apiCancelDebug(id: string, connectorId: string, actionId: string | null, account_id: string | null, properties: any, output: string, proxyId?: string): Promise<unknown>;
|
|
96
|
+
export declare function apiDeleteNode(id: string): Promise<unknown>;
|
|
97
|
+
export declare function apiCheckFlow(id: string): Promise<unknown>;
|
|
98
|
+
export declare function apiGetTemplateFlow(id: string): Promise<unknown>;
|
|
99
|
+
export declare function apiGetFlowOutput(id: string): Promise<unknown>;
|
|
100
|
+
export declare function apiGetFlowOutputTree(flowId: string, nodeId: string): Promise<unknown>;
|
|
101
|
+
export declare function apiGetAcountModel(id: string): Promise<unknown>;
|
|
102
|
+
export declare function apiGetAcountInstance(linkId: string): Promise<unknown>;
|
|
103
|
+
export declare function apiGetAcountInstanceDetail(id: string): Promise<unknown>;
|
|
104
|
+
export declare function apiCreateAcountInstance(connector_id: string | null, account_schema_id: string, auth_type: string, name: string, config: any, proxy_id?: string): Promise<unknown>;
|
|
105
|
+
export declare function apiTestAcountInstanceValid(connector_id: string, account_schema_id: string, auth_type: string, name: string, config: any, id: string, proxy_id?: string): Promise<unknown>;
|
|
106
|
+
export declare function apiUpdateAcountInstance(id: string, connector_id: string | null, account_schema_id: string | null, auth_type: string | null, name: string | null, config: any, proxy_id?: string): Promise<unknown>;
|
|
107
|
+
export declare function apiUpdateAcountInstanceName(id: string, name: string): Promise<unknown>;
|
|
108
|
+
export declare function apiDeleteAcountInstance(id: string): Promise<unknown>;
|
|
109
|
+
export declare function apiMoveNode(node_id: string, prev_id: string, parent_id: string): Promise<unknown>;
|
|
110
|
+
export declare function apiCopyNode(prevNodeId: string): Promise<unknown>;
|
|
111
|
+
export declare function apiUpdateNodeNote(id: string, note: string): Promise<unknown>;
|
|
112
|
+
export declare function apiUpdateNodeStatus(nodeId: string, status: 'on' | 'off'): Promise<unknown>;
|
|
113
|
+
export declare function apiExportNode(flow_id: string, nodes: {
|
|
114
|
+
id: string;
|
|
115
|
+
}[]): Promise<unknown>;
|
|
116
|
+
export declare function apiImportNode(data: FormData): Promise<unknown>;
|
|
117
|
+
export declare function apiStopFlow(id: string): Promise<unknown>;
|
|
118
|
+
export declare function apiRunFlow(id: string): Promise<unknown>;
|
|
119
|
+
export declare function apiRemoveEdges(flowId: string, edges: string[]): Promise<unknown>;
|
|
120
|
+
export declare function apiGetSelectOptions(type: string): Promise<unknown>;
|
|
121
|
+
export declare function updateFlowOpStatus(paramsId: any, opStatus: any): Promise<unknown>;
|
|
122
|
+
export declare const apiGetAcountInstanceV2: (linkId: string, actionAccountSchemaId?: string) => Promise<unknown>;
|
|
123
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { CanvasCoreConfig, CanvasEngineConfig, EdgeRulesConfig, NodeConfigPanelConfig, NodeTypesRegistryConfig, ToolbarConfig } from '../types/engine';
|
|
2
|
+
/*******************************************************
|
|
3
|
+
* 1. Canvas 核心配置默认值
|
|
4
|
+
*******************************************************/
|
|
5
|
+
export declare const defaultCanvasCoreConfig: CanvasCoreConfig;
|
|
6
|
+
/*******************************************************
|
|
7
|
+
* 2. 节点体系默认值
|
|
8
|
+
*******************************************************/
|
|
9
|
+
export declare const defaultNodeTypesConfig: NodeTypesRegistryConfig;
|
|
10
|
+
/*******************************************************
|
|
11
|
+
* 3. 顶部工具栏默认值
|
|
12
|
+
*******************************************************/
|
|
13
|
+
export declare const defaultToolbarConfig: ToolbarConfig;
|
|
14
|
+
/*******************************************************
|
|
15
|
+
* 4. 连线规则默认值
|
|
16
|
+
*******************************************************/
|
|
17
|
+
export declare const defaultEdgeRulesConfig: EdgeRulesConfig;
|
|
18
|
+
/*******************************************************
|
|
19
|
+
* 5. 节点配置面板默认值
|
|
20
|
+
*******************************************************/
|
|
21
|
+
export declare const defaultNodeConfigPanelConfig: NodeConfigPanelConfig;
|
|
22
|
+
/*******************************************************
|
|
23
|
+
* 6. 顶层 DefaultConfig
|
|
24
|
+
*******************************************************/
|
|
25
|
+
export declare const defaultCanvasEngineConfig: CanvasEngineConfig;
|
|
26
|
+
export default defaultCanvasEngineConfig;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { WorkflowHttpClient } from '../api';
|
|
2
|
+
import { HistoryNavigator, HttpClient } from '../types/engine';
|
|
3
|
+
interface GlobalWorkflowConfig {
|
|
4
|
+
httpClient?: HttpClient | WorkflowHttpClient;
|
|
5
|
+
history?: HistoryNavigator;
|
|
6
|
+
baseUrl?: string;
|
|
7
|
+
token?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* 配置工作流全局设置
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import { configureWorkflow } from 'digitalsee-rcs';
|
|
15
|
+
* import axios from 'axios';
|
|
16
|
+
* import { useHistory } from 'react-router-dom';
|
|
17
|
+
*
|
|
18
|
+
* // 在应用启动时配置一次
|
|
19
|
+
* configureWorkflow({
|
|
20
|
+
* httpClient: axios.create({ baseURL: 'https://api.example.com' }),
|
|
21
|
+
* baseUrl: 'https://api.example.com',
|
|
22
|
+
* token: 'your-token'
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare const configureWorkflow: (config: GlobalWorkflowConfig) => void;
|
|
27
|
+
/**
|
|
28
|
+
* 获取全局配置
|
|
29
|
+
*/
|
|
30
|
+
export declare const getGlobalWorkflowConfig: () => GlobalWorkflowConfig;
|
|
31
|
+
/**
|
|
32
|
+
* 重置全局配置
|
|
33
|
+
*/
|
|
34
|
+
export declare const resetGlobalWorkflowConfig: () => void;
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { NodeType } from '../types/Node';
|
|
2
|
+
import { NodeProtocol } from '../types/NodeProtocol';
|
|
3
|
+
export declare const nodeTypeColors: {
|
|
4
|
+
default: string;
|
|
5
|
+
selected: string;
|
|
6
|
+
hovered: string;
|
|
7
|
+
disabled: string;
|
|
8
|
+
IDLE: string;
|
|
9
|
+
INVALID: string;
|
|
10
|
+
RUNNING: string;
|
|
11
|
+
FAILED: string;
|
|
12
|
+
SUCCESS: string;
|
|
13
|
+
RUNNABLE: string;
|
|
14
|
+
aiProtocol: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const aiProtocolTypes: NodeProtocol[];
|
|
17
|
+
export declare const AI_TOOL_NODE_TYPES: NodeType[];
|
|
18
|
+
export declare const edgeStyles: {
|
|
19
|
+
default: {
|
|
20
|
+
stroke: string;
|
|
21
|
+
strokeWidth: number;
|
|
22
|
+
fill: string;
|
|
23
|
+
};
|
|
24
|
+
hovered: {
|
|
25
|
+
stroke: string;
|
|
26
|
+
fill: string;
|
|
27
|
+
};
|
|
28
|
+
selected: {
|
|
29
|
+
stroke: string;
|
|
30
|
+
fill: string;
|
|
31
|
+
};
|
|
32
|
+
aiProtocol: {
|
|
33
|
+
stroke: string;
|
|
34
|
+
strokeWidth: number;
|
|
35
|
+
fill: string;
|
|
36
|
+
strokeDasharray: string;
|
|
37
|
+
};
|
|
38
|
+
loop: {
|
|
39
|
+
stroke: string;
|
|
40
|
+
strokeWidth: number;
|
|
41
|
+
strokeDasharray: string;
|
|
42
|
+
fill: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export declare const arrowStyles: {
|
|
46
|
+
default: {
|
|
47
|
+
color: string;
|
|
48
|
+
size: number;
|
|
49
|
+
};
|
|
50
|
+
aiProtocol: {
|
|
51
|
+
color: string;
|
|
52
|
+
size: number;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export declare const handleStyles: {
|
|
56
|
+
default: {
|
|
57
|
+
color: string;
|
|
58
|
+
};
|
|
59
|
+
main: {
|
|
60
|
+
color: string;
|
|
61
|
+
};
|
|
62
|
+
connected: {
|
|
63
|
+
color: string;
|
|
64
|
+
};
|
|
65
|
+
connecting: {
|
|
66
|
+
color: string;
|
|
67
|
+
};
|
|
68
|
+
error: {
|
|
69
|
+
color: string;
|
|
70
|
+
};
|
|
71
|
+
full: {
|
|
72
|
+
opacity: number;
|
|
73
|
+
cursor: string;
|
|
74
|
+
};
|
|
75
|
+
nodeStatus: {
|
|
76
|
+
IDLE: {
|
|
77
|
+
color: string;
|
|
78
|
+
};
|
|
79
|
+
INVALID: {
|
|
80
|
+
color: string;
|
|
81
|
+
};
|
|
82
|
+
RUNNING: {
|
|
83
|
+
color: string;
|
|
84
|
+
};
|
|
85
|
+
FAILED: {
|
|
86
|
+
color: string;
|
|
87
|
+
};
|
|
88
|
+
SUCCESS: {
|
|
89
|
+
color: string;
|
|
90
|
+
};
|
|
91
|
+
RUNNABLE: {
|
|
92
|
+
color: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
export declare const extenderStyles: {
|
|
97
|
+
line: {
|
|
98
|
+
backgroundColor: string;
|
|
99
|
+
height: string;
|
|
100
|
+
};
|
|
101
|
+
horizontal: {
|
|
102
|
+
width: string;
|
|
103
|
+
height: string;
|
|
104
|
+
};
|
|
105
|
+
vertical: {
|
|
106
|
+
width: string;
|
|
107
|
+
height: string;
|
|
108
|
+
left: number;
|
|
109
|
+
};
|
|
110
|
+
button: {
|
|
111
|
+
fontSize: string;
|
|
112
|
+
borderRadius: string;
|
|
113
|
+
cursor: string;
|
|
114
|
+
color: string;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
export declare const labelStyles: {
|
|
118
|
+
default: {
|
|
119
|
+
fontSize: string;
|
|
120
|
+
fontWeight: string;
|
|
121
|
+
color: string;
|
|
122
|
+
};
|
|
123
|
+
edge: {
|
|
124
|
+
background: string;
|
|
125
|
+
padding: string;
|
|
126
|
+
borderRadius: string;
|
|
127
|
+
fontSize: string;
|
|
128
|
+
fontWeight: string;
|
|
129
|
+
pointerEvents: "none";
|
|
130
|
+
};
|
|
131
|
+
loop: {
|
|
132
|
+
background: string;
|
|
133
|
+
color: string;
|
|
134
|
+
border: string;
|
|
135
|
+
padding: string;
|
|
136
|
+
borderRadius: string;
|
|
137
|
+
fontSize: string;
|
|
138
|
+
fontWeight: string;
|
|
139
|
+
boxShadow: string;
|
|
140
|
+
pointerEvents: "none";
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
export declare const edgeButtonStyles: {
|
|
144
|
+
default: {
|
|
145
|
+
border: string;
|
|
146
|
+
cursor: string;
|
|
147
|
+
padding: string;
|
|
148
|
+
borderRadius: string;
|
|
149
|
+
display: string;
|
|
150
|
+
alignItems: string;
|
|
151
|
+
justifyContent: string;
|
|
152
|
+
backgroundColor: string;
|
|
153
|
+
boxShadow: string;
|
|
154
|
+
};
|
|
155
|
+
add: {
|
|
156
|
+
color: string;
|
|
157
|
+
fontSize: string;
|
|
158
|
+
};
|
|
159
|
+
delete: {
|
|
160
|
+
color: string;
|
|
161
|
+
fontSize: string;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
export declare const canvasGeometry: {
|
|
165
|
+
EDGE_PADDING_BOTTOM: number;
|
|
166
|
+
EDGE_BORDER_RADIUS: number;
|
|
167
|
+
HANDLE_SIZE: number;
|
|
168
|
+
};
|
|
169
|
+
export declare const connectionRules: {
|
|
170
|
+
undeletableEdgeTargetTypes: NodeType[];
|
|
171
|
+
unAddableTargetTypes: NodeType[];
|
|
172
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { CanvasAPI } from '../types/engine';
|
|
2
|
+
/**
|
|
3
|
+
* Canvas API Provider 属性接口
|
|
4
|
+
*/
|
|
5
|
+
interface CanvasApiProviderProps {
|
|
6
|
+
/** canvasApi 实例 */
|
|
7
|
+
api: CanvasAPI;
|
|
8
|
+
/** 子组件 */
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Canvas API Provider 组件
|
|
13
|
+
*
|
|
14
|
+
* @param props 组件属性
|
|
15
|
+
* @returns Provider 组件
|
|
16
|
+
*/
|
|
17
|
+
export declare const CanvasApiProvider: React.FC<CanvasApiProviderProps>;
|
|
18
|
+
/**
|
|
19
|
+
* 使用 Canvas API 的 Hook
|
|
20
|
+
*
|
|
21
|
+
* @returns canvasApi 实例
|
|
22
|
+
* @throws 如果在 Provider 外部使用会抛出错误
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```tsx
|
|
26
|
+
* function MyComponent() {
|
|
27
|
+
* const canvasApi = useCanvasApi();
|
|
28
|
+
*
|
|
29
|
+
* useEffect(() => {
|
|
30
|
+
* // 监听自定义事件
|
|
31
|
+
* const unsubscribe = canvasApi.on('custom:openMappingDrawer', (data) => {
|
|
32
|
+
* console.log('打开映射管理', data);
|
|
33
|
+
* });
|
|
34
|
+
*
|
|
35
|
+
* return unsubscribe;
|
|
36
|
+
* }, [canvasApi]);
|
|
37
|
+
*
|
|
38
|
+
* // 触发事件
|
|
39
|
+
* const handleClick = () => {
|
|
40
|
+
* canvasApi.emit('custom:openMappingDrawer', { nodeId: '123' });
|
|
41
|
+
* };
|
|
42
|
+
*
|
|
43
|
+
* return <button onClick={handleClick}>打开映射管理</button>;
|
|
44
|
+
* }
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
export declare const useCanvasApi: () => CanvasAPI;
|
|
48
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function DE(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { NodeTypeItem } from '../Panels/ModernNodeSelectorPanel/types';
|
|
2
|
+
export interface NodeAddInfo {
|
|
3
|
+
sourceNodeId?: string;
|
|
4
|
+
sourceHandle?: string;
|
|
5
|
+
targetNodeId?: string;
|
|
6
|
+
targetHandle?: string;
|
|
7
|
+
position: {
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
};
|
|
11
|
+
trigger?: boolean;
|
|
12
|
+
edge?: any;
|
|
13
|
+
}
|
|
14
|
+
export type NodeAddEvent = {
|
|
15
|
+
info: NodeAddInfo;
|
|
16
|
+
nodeType: NodeTypeItem;
|
|
17
|
+
};
|
|
18
|
+
export declare const nodeAddEventBus: any;
|
|
19
|
+
export declare const canvasEventBus: {
|
|
20
|
+
nodeAdd: any;
|
|
21
|
+
};
|
|
22
|
+
export default canvasEventBus;
|
|
@@ -0,0 +1,12 @@
|
|
|
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;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Connection, EdgeMouseHandler, OnEdgesChange } from '@xyflow/react';
|
|
2
|
+
export declare const useEdgesInteraction: () => {
|
|
3
|
+
onEdgeMouseEnter: EdgeMouseHandler;
|
|
4
|
+
removeEdges: (edgeIds: string[]) => void;
|
|
5
|
+
onConnect: (params: Connection) => void;
|
|
6
|
+
setEdges: (edges: import('@xyflow/react').Edge[]) => void;
|
|
7
|
+
onEdgeMouseLeave: EdgeMouseHandler;
|
|
8
|
+
handleEdgesChange: OnEdgesChange;
|
|
9
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const useFlowDataOperation: () => {
|
|
2
|
+
getNodes: () => import('@xyflow/react').Node[];
|
|
3
|
+
removeNodes: (nids: string[]) => void;
|
|
4
|
+
removeEdges: (edgeIds: string[]) => void;
|
|
5
|
+
addEdges: (newEdges: any[]) => void;
|
|
6
|
+
addNodes: (newNodes: any[]) => void;
|
|
7
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { NodeMouseHandler, OnNodesChange } from '@xyflow/react';
|
|
2
|
+
import { NodeType } from '../types/Node';
|
|
3
|
+
export declare const useNodesInteraction: () => {
|
|
4
|
+
autoSaveNum: number;
|
|
5
|
+
onNodeMouseEnter: NodeMouseHandler;
|
|
6
|
+
onNodeMouseLeave: NodeMouseHandler;
|
|
7
|
+
handleNodesChange: OnNodesChange;
|
|
8
|
+
handleNodesDelete: (nodeIds: string[], nodeType: NodeType) => void;
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useWorkflowId: () => string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CanvasLayoutResult, CanvasLayoutTarget } from '../utils/layoutUtils';
|
|
2
|
+
export declare const useCanvasLayout: (id?: string) => {
|
|
3
|
+
layout: (target?: CanvasLayoutTarget, shouldFitView?: boolean) => CanvasLayoutResult;
|
|
4
|
+
autoLayout: (shouldFitView?: boolean) => CanvasLayoutResult;
|
|
5
|
+
layoutSelection: (shouldFitView?: boolean) => CanvasLayoutResult;
|
|
6
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { HandleDirection } from '../types/Handle';
|
|
2
|
+
export declare function useHandleConnections(): {
|
|
3
|
+
getHandleConnections: (nodeId: string, handleId: string, handleType: HandleDirection) => import('@xyflow/react').Edge[];
|
|
4
|
+
handleStatus: (nodeId: string, handleId: string) => "default" | "connected";
|
|
5
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface UndoHistoryItem {
|
|
2
|
+
nodes: any[];
|
|
3
|
+
edges: any[];
|
|
4
|
+
}
|
|
5
|
+
export declare const useUndo: (limit?: number) => {
|
|
6
|
+
undo: () => void;
|
|
7
|
+
redo: () => void;
|
|
8
|
+
canUndo: boolean;
|
|
9
|
+
canRedo: boolean;
|
|
10
|
+
history: UndoHistoryItem[];
|
|
11
|
+
future: UndoHistoryItem[];
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Connection, Edge, Node, OnConnect, OnEdgesChange, OnNodesChange } from '@xyflow/react';
|
|
2
|
+
import { EdgeData } from '../types/Edge';
|
|
3
|
+
import { NodeData } from '../types/Node';
|
|
4
|
+
import { WorkflowOpStatus } from '../types/Workflow';
|
|
5
|
+
export interface UseWorkflowOptions {
|
|
6
|
+
initialNodes?: Node<NodeData>[];
|
|
7
|
+
initialEdges?: Edge<EdgeData>[];
|
|
8
|
+
}
|
|
9
|
+
export declare function useWorkflow(id?: string): {
|
|
10
|
+
nodes: Node<NodeData>[];
|
|
11
|
+
edges: Edge<EdgeData>[];
|
|
12
|
+
op_status: import('../NodesConfig/define/flow').FlowStatus;
|
|
13
|
+
selectedNodes: Node<NodeData>[];
|
|
14
|
+
selectedEdges: Edge<EdgeData>[];
|
|
15
|
+
currentNodeConfigVisibleId: string;
|
|
16
|
+
onNodesChange: OnNodesChange;
|
|
17
|
+
onEdgesChange: OnEdgesChange;
|
|
18
|
+
onConnect: OnConnect;
|
|
19
|
+
onEdgeUpdate: (oldEdge: Edge<EdgeData>, newConnection: Connection) => void;
|
|
20
|
+
addNodes: (newNodes: Node[]) => void;
|
|
21
|
+
addEdges: (newEdges: Edge[]) => void;
|
|
22
|
+
removeNodes: (nodeIds: string[]) => void;
|
|
23
|
+
removeEdges: (edgeIds: string[]) => void;
|
|
24
|
+
setNodes: (newNodes: Node[]) => void;
|
|
25
|
+
setEdges: (newEdges: Edge[]) => void;
|
|
26
|
+
updateNode: (nodeId: string, nodeData: Partial<NodeData>) => void;
|
|
27
|
+
refreshFlow: () => void;
|
|
28
|
+
setFlowOpStatusAction: (opStatus: WorkflowOpStatus) => void;
|
|
29
|
+
workflowId: string;
|
|
30
|
+
setNodeConfigVisible: (nodeId: string | null) => void;
|
|
31
|
+
isLocked: boolean;
|
|
32
|
+
setLocked: (locked: boolean) => void;
|
|
33
|
+
autoSaveFlow: () => void;
|
|
34
|
+
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { default as defaultCanvasEngineConfig } from './config/defaultCanvasEngineConfig';
|
|
3
|
+
import { CanvasEngineConfig, HistoryNavigator, HttpClient } from './types/engine';
|
|
4
|
+
import { mergeConfig } from './utils/mergeConfig';
|
|
5
|
+
import { LocaleType } from '../../../locales';
|
|
6
|
+
/**
|
|
7
|
+
* DigitalseeWorkFlow 组件对外暴露的属性定义
|
|
8
|
+
*
|
|
9
|
+
* @description 封装工作流画布,对外统一入口
|
|
10
|
+
*/
|
|
11
|
+
export interface DigitalseeWorkFlowProps {
|
|
12
|
+
/**
|
|
13
|
+
* 工作流 ID
|
|
14
|
+
*
|
|
15
|
+
* @description 如果传入则会根据 ID 加载、保存工作流
|
|
16
|
+
*/
|
|
17
|
+
workflowId?: string;
|
|
18
|
+
/**
|
|
19
|
+
* 是否只读模式
|
|
20
|
+
*
|
|
21
|
+
* @description 只读模式下禁用所有编辑能力
|
|
22
|
+
*/
|
|
23
|
+
readOnly?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* 是否预览模式
|
|
26
|
+
*
|
|
27
|
+
* @description 预览模式下仅展示,不允许交互
|
|
28
|
+
*/
|
|
29
|
+
preview?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* 预览使用的工作流 ID
|
|
32
|
+
*/
|
|
33
|
+
previewId?: string;
|
|
34
|
+
/**
|
|
35
|
+
* 是否应用流模式
|
|
36
|
+
*/
|
|
37
|
+
appFlowMode?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* 是否链接模式
|
|
40
|
+
*/
|
|
41
|
+
linkMode?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* 保存回调
|
|
44
|
+
*
|
|
45
|
+
* @param workflow 当前工作流数据
|
|
46
|
+
*/
|
|
47
|
+
onSave?: (workflow: any) => void;
|
|
48
|
+
/**
|
|
49
|
+
* 画布配置
|
|
50
|
+
*
|
|
51
|
+
* @description 支持传入局部配置,内部会与默认配置做深度合并
|
|
52
|
+
*/
|
|
53
|
+
config?: Partial<CanvasEngineConfig>;
|
|
54
|
+
/**
|
|
55
|
+
* Locale override for workflow translations
|
|
56
|
+
*
|
|
57
|
+
* @description Defaults to zh-CN when omitted
|
|
58
|
+
*/
|
|
59
|
+
locale?: LocaleType;
|
|
60
|
+
/**
|
|
61
|
+
* Base URL for workflow service APIs
|
|
62
|
+
*
|
|
63
|
+
* @description When provided, all internal API calls will prepend this URL
|
|
64
|
+
*/
|
|
65
|
+
apiBaseUrl?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Authorization token for workflow service APIs
|
|
68
|
+
*
|
|
69
|
+
* @description Injected as the Authorization header for every API call
|
|
70
|
+
*/
|
|
71
|
+
apiToken?: string;
|
|
72
|
+
/**
|
|
73
|
+
* HTTP 客户端实例
|
|
74
|
+
*
|
|
75
|
+
* @description 用于执行所有 HTTP 请求,可传入自定义的 HTTP 客户端(如 axios 实例)
|
|
76
|
+
*/
|
|
77
|
+
httpClient?: HttpClient;
|
|
78
|
+
/**
|
|
79
|
+
* 路由历史对象
|
|
80
|
+
*
|
|
81
|
+
* @description 用于处理页面导航,可传入 React Router 的 history 对象
|
|
82
|
+
*/
|
|
83
|
+
history?: HistoryNavigator;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* DigitalseeWorkFlow 工作流画布组件
|
|
87
|
+
*
|
|
88
|
+
* @param props 组件参数
|
|
89
|
+
*/
|
|
90
|
+
declare const DigitalseeWorkFlow: React.FC<DigitalseeWorkFlowProps>;
|
|
91
|
+
export { DigitalseeWorkFlow };
|
|
92
|
+
export type { WorkflowHttpClient } from './api';
|
|
93
|
+
export type { CanvasEngineConfig, HistoryNavigator, HttpClient } from './types/engine';
|
|
94
|
+
export { defaultCanvasEngineConfig, mergeConfig };
|
|
95
|
+
export type { LocaleType as WorkflowLocale, TranslateFn as WorkflowTranslateFn } from '../../../locales';
|
|
96
|
+
export { createTranslator } from '../../../locales';
|
|
97
|
+
export { configureWorkflow, getGlobalWorkflowConfig, resetGlobalWorkflowConfig, } from './config/globalConfig';
|
|
98
|
+
export * from './config/themeConfig';
|
|
99
|
+
export { default as EdgeFactory } from './Edges/EdgeFactory';
|
|
100
|
+
export { default as HandleFactory } from './Handles/HandleFactory';
|
|
101
|
+
export { useCanvasLayout } from './hooks/useCanvasLayout';
|
|
102
|
+
export { useUndo } from './hooks/useUndo';
|
|
103
|
+
export { useWorkflow } from './hooks/useWorkflow';
|
|
104
|
+
export { default as NodeFactory } from './Nodes/NodeFactory';
|
|
105
|
+
export * from './types/Edge';
|
|
106
|
+
export * from './types/Node';
|
|
107
|
+
export * from './types/Workflow';
|