@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.
Files changed (289) hide show
  1. package/README.md +237 -0
  2. package/dist/components/digitalsee/JsonRenderer/index.d.ts +22 -0
  3. package/dist/components/digitalsee/JsonRenderer/locales/en.d.ts +7 -0
  4. package/dist/components/digitalsee/JsonRenderer/locales/zh.d.ts +7 -0
  5. package/dist/components/digitalsee/index.d.ts +1 -0
  6. package/dist/components/digitalsee/workflow/Canvas/FastOperationButtons.d.ts +44 -0
  7. package/dist/components/digitalsee/workflow/Canvas/FullscreenLoading.d.ts +3 -0
  8. package/dist/components/digitalsee/workflow/Canvas/GlobalSvg.d.ts +1 -0
  9. package/dist/components/digitalsee/workflow/Canvas/HelperLines.d.ts +8 -0
  10. package/dist/components/digitalsee/workflow/Canvas/MiniMap.d.ts +3 -0
  11. package/dist/components/digitalsee/workflow/Canvas/WorkflowCanvas.d.ts +15 -0
  12. package/dist/components/digitalsee/workflow/Canvas/WorkflowCanvasHeader.d.ts +15 -0
  13. package/dist/components/digitalsee/workflow/Canvas/WorkflowDebugPanel.d.ts +28 -0
  14. package/dist/components/digitalsee/workflow/Canvas/color.d.ts +1 -0
  15. package/dist/components/digitalsee/workflow/Canvas/utils.d.ts +8 -0
  16. package/dist/components/digitalsee/workflow/Edges/BaseEdge.d.ts +30 -0
  17. package/dist/components/digitalsee/workflow/Handles/CustomHandle.d.ts +30 -0
  18. package/dist/components/digitalsee/workflow/Handles/HandleFactory.d.ts +35 -0
  19. package/dist/components/digitalsee/workflow/Handles/InputHandle.d.ts +12 -0
  20. package/dist/components/digitalsee/workflow/Handles/OutputHandle.d.ts +12 -0
  21. package/dist/components/digitalsee/workflow/Handles/OutputHandleWithButton.d.ts +15 -0
  22. package/dist/components/digitalsee/workflow/Nodes/AISubNode.d.ts +9 -0
  23. package/dist/components/digitalsee/workflow/Nodes/ActionNode.d.ts +13 -0
  24. package/dist/components/digitalsee/workflow/Nodes/AgentNode.d.ts +10 -0
  25. package/dist/components/digitalsee/workflow/Nodes/BrowserNode.d.ts +10 -0
  26. package/dist/components/digitalsee/workflow/Nodes/BuiltinMCPNode.d.ts +9 -0
  27. package/dist/components/digitalsee/workflow/Nodes/ConditionNode.d.ts +13 -0
  28. package/dist/components/digitalsee/workflow/Nodes/CustomNode.d.ts +15 -0
  29. package/dist/components/digitalsee/workflow/Nodes/LoopNode.d.ts +4 -0
  30. package/dist/components/digitalsee/workflow/Nodes/MCPServerNode.d.ts +9 -0
  31. package/dist/components/digitalsee/workflow/Nodes/MCPToolNode.d.ts +9 -0
  32. package/dist/components/digitalsee/workflow/Nodes/NodeFactory.d.ts +33 -0
  33. package/dist/components/digitalsee/workflow/Nodes/NodeStatusDemo.d.ts +7 -0
  34. package/dist/components/digitalsee/workflow/Nodes/SelfLoopNode.d.ts +4 -0
  35. package/dist/components/digitalsee/workflow/Nodes/StartNode.d.ts +1 -0
  36. package/dist/components/digitalsee/workflow/Nodes/StickyNoteNode.d.ts +33 -0
  37. package/dist/components/digitalsee/workflow/Nodes/SuperBaseNode.d.ts +45 -0
  38. package/dist/components/digitalsee/workflow/Nodes/SwitchNode.d.ts +13 -0
  39. package/dist/components/digitalsee/workflow/Nodes/TriggerNode.d.ts +9 -0
  40. package/dist/components/digitalsee/workflow/Nodes/components/NodeDescription.d.ts +17 -0
  41. package/dist/components/digitalsee/workflow/Nodes/components/NodeDescriptionExample.d.ts +0 -0
  42. package/dist/components/digitalsee/workflow/Nodes/components/NodeOperations.d.ts +14 -0
  43. package/dist/components/digitalsee/workflow/Nodes/components/UnlinkThunder/index.d.ts +4 -0
  44. package/dist/components/digitalsee/workflow/NodesConfig/ActionNodeConfig/index.d.ts +1 -0
  45. package/dist/components/digitalsee/workflow/NodesConfig/ConditionNodeConfig/index.d.ts +6 -0
  46. package/dist/components/digitalsee/workflow/NodesConfig/ErrorHandler.d.ts +8 -0
  47. package/dist/components/digitalsee/workflow/NodesConfig/LoopNodeConfig/index.d.ts +8 -0
  48. package/dist/components/digitalsee/workflow/NodesConfig/McpToolNodeConfig/index.d.ts +1 -0
  49. package/dist/components/digitalsee/workflow/NodesConfig/SwitchNodeConfig/index.d.ts +13 -0
  50. package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/CreateAccountModal/index.d.ts +13 -0
  51. package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/DateField/index.d.ts +5 -0
  52. package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/DateTimeField/index.d.ts +5 -0
  53. package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/ExtendObjectField/index.d.ts +10 -0
  54. package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/FixedObjectField/index.d.ts +5 -0
  55. package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/HiddenField/index.d.ts +5 -0
  56. package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/JsonField/index.d.ts +5 -0
  57. package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/LabelField/index.d.ts +5 -0
  58. package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/PasswordField/index.d.ts +4 -0
  59. package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/SelectField/index.d.ts +10 -0
  60. package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/TextAreaField/index.d.ts +5 -0
  61. package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/TextField/index.d.ts +5 -0
  62. package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/TimeField/index.d.ts +5 -0
  63. package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/fields/super.d.ts +6 -0
  64. package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/index.d.ts +13 -0
  65. package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/DynamicAccountForm/middlewares/extend-obj.d.ts +10 -0
  66. package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/components/ModifyAccountModal/index.d.ts +14 -0
  67. package/dist/components/digitalsee/workflow/NodesConfig/components/AccountSelect/index.d.ts +12 -0
  68. package/dist/components/digitalsee/workflow/NodesConfig/components/EditInOnlineIDE/index.d.ts +11 -0
  69. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/components/AIFormField.d.ts +8 -0
  70. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/ApiSelectField/index.d.ts +9 -0
  71. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/DateField/index.d.ts +5 -0
  72. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/DateTimeField/index.d.ts +5 -0
  73. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/DynamicSelectListField/index.d.ts +11 -0
  74. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/ExtendObjectField/index.d.ts +11 -0
  75. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/FixedObjectField/index.d.ts +11 -0
  76. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/HiddenField/index.d.ts +5 -0
  77. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/HourMiniuteField/index.d.ts +5 -0
  78. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JavscriptTagEditorField/common-placeholder-theme.d.ts +57 -0
  79. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JavscriptTagEditorField/editor.d.ts +1 -0
  80. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JavscriptTagEditorField/extensions.d.ts +11 -0
  81. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JavscriptTagEditorField/index.d.ts +3 -0
  82. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JavscriptTagEditorField/interface.d.ts +29 -0
  83. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JavscriptTagEditorField/plugin/base-theme.d.ts +1 -0
  84. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JavscriptTagEditorField/plugin/custom-completions.d.ts +5 -0
  85. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JavscriptTagEditorField/plugin/functions.d.ts +3 -0
  86. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JavscriptTagEditorField/plugin/hint.d.ts +11 -0
  87. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JavscriptTagEditorField/plugin/keywords.d.ts +2 -0
  88. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JavscriptTagEditorField/plugin/placeholders.d.ts +3 -0
  89. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonField/index.d.ts +5 -0
  90. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/common-placeholder-theme.d.ts +57 -0
  91. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/editor.d.ts +1 -0
  92. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/extensions.d.ts +11 -0
  93. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/index.d.ts +3 -0
  94. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/interface.d.ts +29 -0
  95. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/plugin/base-theme.d.ts +1 -0
  96. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/plugin/custom-completions.d.ts +5 -0
  97. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/plugin/functions.d.ts +3 -0
  98. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/plugin/hint.d.ts +11 -0
  99. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/plugin/keywords.d.ts +2 -0
  100. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/JsonTagField/plugin/placeholders.d.ts +3 -0
  101. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/LabelField/index.d.ts +5 -0
  102. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/MutilRowAIExtractConfigField/index.d.ts +13 -0
  103. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/PasswordField/index.d.ts +6 -0
  104. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/RichTagInput/help.d.ts +3 -0
  105. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/RichTagInput/index.d.ts +4 -0
  106. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/SelectField/index.d.ts +10 -0
  107. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/TextAreaField/index.d.ts +6 -0
  108. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/TextField/index.d.ts +14 -0
  109. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/TimeField/index.d.ts +5 -0
  110. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/WebhookLabelField/index.d.ts +15 -0
  111. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/fields/super.d.ts +6 -0
  112. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/index.d.ts +21 -0
  113. package/dist/components/digitalsee/workflow/NodesConfig/components/FormFieldRenderer/middlewares/extend-obj.d.ts +10 -0
  114. package/dist/components/digitalsee/workflow/NodesConfig/components/NodeTest.d.ts +6 -0
  115. package/dist/components/digitalsee/workflow/NodesConfig/components/ProxyGroupSelect/index.d.ts +5 -0
  116. package/dist/components/digitalsee/workflow/NodesConfig/components/RShow/index.d.ts +7 -0
  117. package/dist/components/digitalsee/workflow/NodesConfig/components/VariableModal/index.d.ts +7 -0
  118. package/dist/components/digitalsee/workflow/NodesConfig/components/VariableModal/tree-help.d.ts +49 -0
  119. package/dist/components/digitalsee/workflow/NodesConfig/components/online-ide/components/IDEVariableModal/index.d.ts +7 -0
  120. package/dist/components/digitalsee/workflow/NodesConfig/components/online-ide/components/IDEVariableModal/tree-help.d.ts +49 -0
  121. package/dist/components/digitalsee/workflow/NodesConfig/components/online-ide/components/sider/index.d.ts +10 -0
  122. package/dist/components/digitalsee/workflow/NodesConfig/components/online-ide/components/title/index.d.ts +1 -0
  123. package/dist/components/digitalsee/workflow/NodesConfig/components/online-ide/components/toolbar/index.d.ts +6 -0
  124. package/dist/components/digitalsee/workflow/NodesConfig/components/online-ide/helper/matchVar.d.ts +7 -0
  125. package/dist/components/digitalsee/workflow/NodesConfig/components/online-ide/index.d.ts +9 -0
  126. package/dist/components/digitalsee/workflow/NodesConfig/define/actions.d.ts +51 -0
  127. package/dist/components/digitalsee/workflow/NodesConfig/define/condition.d.ts +78 -0
  128. package/dist/components/digitalsee/workflow/NodesConfig/define/config-form-item.d.ts +34 -0
  129. package/dist/components/digitalsee/workflow/NodesConfig/define/flow.d.ts +26 -0
  130. package/dist/components/digitalsee/workflow/NodesConfig/define/links.d.ts +17 -0
  131. package/dist/components/digitalsee/workflow/NodesConfig/index.d.ts +16 -0
  132. package/dist/components/digitalsee/workflow/Panels/CanvasConfigDebugger.d.ts +37 -0
  133. package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/ActionItem.d.ts +14 -0
  134. package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/ActionList.d.ts +15 -0
  135. package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/CategoryContent.d.ts +17 -0
  136. package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/CategoryItem.d.ts +13 -0
  137. package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/CategoryList.d.ts +14 -0
  138. package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/CategoryTabs.d.ts +15 -0
  139. package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/NodeCard.d.ts +19 -0
  140. package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/NodeItem.d.ts +13 -0
  141. package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/PanelHeader.d.ts +19 -0
  142. package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/components/SearchResults.d.ts +14 -0
  143. package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/defaultData.d.ts +3 -0
  144. package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/hooks/useActions.d.ts +16 -0
  145. package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/hooks/useCategories.d.ts +14 -0
  146. package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/hooks/useNavigation.d.ts +30 -0
  147. package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/hooks/useSearch.d.ts +24 -0
  148. package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/index.d.ts +9 -0
  149. package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/types.d.ts +144 -0
  150. package/dist/components/digitalsee/workflow/Panels/ModernNodeSelectorPanel/utils/dataTransformers.d.ts +11 -0
  151. package/dist/components/digitalsee/workflow/api/index.d.ts +123 -0
  152. package/dist/components/digitalsee/workflow/config/defaultCanvasEngineConfig.d.ts +26 -0
  153. package/dist/components/digitalsee/workflow/config/globalConfig.d.ts +35 -0
  154. package/dist/components/digitalsee/workflow/config/themeConfig.d.ts +172 -0
  155. package/dist/components/digitalsee/workflow/context/canvasApiContext.d.ts +48 -0
  156. package/dist/components/digitalsee/workflow/context/canvasConfig.d.ts +3 -0
  157. package/dist/components/digitalsee/workflow/de.d.ts +1 -0
  158. package/dist/components/digitalsee/workflow/events/eventBus.d.ts +22 -0
  159. package/dist/components/digitalsee/workflow/examples/global-config-example.d.ts +12 -0
  160. package/dist/components/digitalsee/workflow/hooks/state.hooks.d.ts +2 -0
  161. package/dist/components/digitalsee/workflow/hooks/use-before-unload.d.ts +4 -0
  162. package/dist/components/digitalsee/workflow/hooks/use-edges-interaction.d.ts +9 -0
  163. package/dist/components/digitalsee/workflow/hooks/use-flow-data-operation.d.ts +7 -0
  164. package/dist/components/digitalsee/workflow/hooks/use-node-data-update.d.ts +9 -0
  165. package/dist/components/digitalsee/workflow/hooks/use-nodes-interaction.d.ts +9 -0
  166. package/dist/components/digitalsee/workflow/hooks/use-wokflow-id.d.ts +1 -0
  167. package/dist/components/digitalsee/workflow/hooks/useCanvasLayout.d.ts +6 -0
  168. package/dist/components/digitalsee/workflow/hooks/useHandleConnections.d.ts +5 -0
  169. package/dist/components/digitalsee/workflow/hooks/useUndo.d.ts +13 -0
  170. package/dist/components/digitalsee/workflow/hooks/useWorkflow.d.ts +34 -0
  171. package/dist/components/digitalsee/workflow/index.d.ts +107 -0
  172. package/dist/components/digitalsee/workflow/migration/umi.d.ts +7 -0
  173. package/dist/components/digitalsee/workflow/store/panelSlice.d.ts +89 -0
  174. package/dist/components/digitalsee/workflow/store/types.d.ts +11 -0
  175. package/dist/components/digitalsee/workflow/types/Edge.d.ts +20 -0
  176. package/dist/components/digitalsee/workflow/types/Handle.d.ts +44 -0
  177. package/dist/components/digitalsee/workflow/types/Node.d.ts +102 -0
  178. package/dist/components/digitalsee/workflow/types/NodeProtocol.d.ts +12 -0
  179. package/dist/components/digitalsee/workflow/types/SaveStatus.d.ts +1 -0
  180. package/dist/components/digitalsee/workflow/types/Workflow.d.ts +58 -0
  181. package/dist/components/digitalsee/workflow/types/engine.d.ts +244 -0
  182. package/dist/components/digitalsee/workflow/utils/calculateNodePosition.d.ts +10 -0
  183. package/dist/components/digitalsee/workflow/utils/common.d.ts +87 -0
  184. package/dist/components/digitalsee/workflow/utils/edgeConverters.d.ts +30 -0
  185. package/dist/components/digitalsee/workflow/utils/flowDataAdapter.d.ts +72 -0
  186. package/dist/components/digitalsee/workflow/utils/glob.d.ts +15 -0
  187. package/dist/components/digitalsee/workflow/utils/layoutUtils.d.ts +43 -0
  188. package/dist/components/digitalsee/workflow/utils/mergeConfig.d.ts +22 -0
  189. package/dist/components/digitalsee/workflow/utils/nodeDataFormatter.d.ts +32 -0
  190. package/dist/components/digitalsee/workflow/utils/optionValues.d.ts +13 -0
  191. package/dist/components/digitalsee/workflow/utils/time.d.ts +1 -0
  192. package/dist/components/digitalsee/workflow/utils/uuid.d.ts +2 -0
  193. package/dist/components/dynamic-form/AntdProvider.d.ts +13 -0
  194. package/dist/components/dynamic-form/DynamicForm.d.ts +52 -0
  195. package/dist/components/dynamic-form/DynamicFormContext.d.ts +22 -0
  196. package/dist/components/dynamic-form/FieldRenderer.d.ts +45 -0
  197. package/dist/components/dynamic-form/components/AIFieldWrapper/index.d.ts +11 -0
  198. package/dist/components/dynamic-form/components/SelectWithExpression/index.d.ts +25 -0
  199. package/dist/components/dynamic-form/components/ValueModeWrapper/index.d.ts +44 -0
  200. package/dist/components/dynamic-form/components/VariableInput/index.d.ts +24 -0
  201. package/dist/components/dynamic-form/components/VariableInput/utils.d.ts +38 -0
  202. package/dist/components/dynamic-form/components/VariableTextarea/index.d.ts +10 -0
  203. package/dist/components/dynamic-form/context/EventEngineContext.d.ts +42 -0
  204. package/dist/components/dynamic-form/context/VariableSelectorContext.d.ts +67 -0
  205. package/dist/components/dynamic-form/core/ActionExecutor.d.ts +9 -0
  206. package/dist/components/dynamic-form/core/EventEngine.d.ts +30 -0
  207. package/dist/components/dynamic-form/fields/base/NumberField.d.ts +1 -0
  208. package/dist/components/dynamic-form/fields/base/PasswordField.d.ts +1 -0
  209. package/dist/components/dynamic-form/fields/base/TextField.d.ts +1 -0
  210. package/dist/components/dynamic-form/fields/base/TextareaField.d.ts +1 -0
  211. package/dist/components/dynamic-form/fields/base/index.d.ts +4 -0
  212. package/dist/components/dynamic-form/fields/complex/ArrayField.d.ts +1 -0
  213. package/dist/components/dynamic-form/fields/complex/ArrayObjectField.d.ts +1 -0
  214. package/dist/components/dynamic-form/fields/complex/KeyValueField.d.ts +1 -0
  215. package/dist/components/dynamic-form/fields/complex/ObjectField.d.ts +1 -0
  216. package/dist/components/dynamic-form/fields/complex/index.d.ts +4 -0
  217. package/dist/components/dynamic-form/fields/datetime/DateField.d.ts +1 -0
  218. package/dist/components/dynamic-form/fields/datetime/DateRangeField.d.ts +1 -0
  219. package/dist/components/dynamic-form/fields/datetime/DateTimeField.d.ts +1 -0
  220. package/dist/components/dynamic-form/fields/datetime/TimeField.d.ts +1 -0
  221. package/dist/components/dynamic-form/fields/datetime/TimeRangeField.d.ts +1 -0
  222. package/dist/components/dynamic-form/fields/datetime/index.d.ts +5 -0
  223. package/dist/components/dynamic-form/fields/display/DividerField.d.ts +1 -0
  224. package/dist/components/dynamic-form/fields/display/HiddenField.d.ts +1 -0
  225. package/dist/components/dynamic-form/fields/display/InfoCardField.d.ts +1 -0
  226. package/dist/components/dynamic-form/fields/display/JsonField.d.ts +1 -0
  227. package/dist/components/dynamic-form/fields/display/LabelField.d.ts +1 -0
  228. package/dist/components/dynamic-form/fields/display/index.d.ts +5 -0
  229. package/dist/components/dynamic-form/fields/select/CascaderField.d.ts +1 -0
  230. package/dist/components/dynamic-form/fields/select/CheckboxField.d.ts +1 -0
  231. package/dist/components/dynamic-form/fields/select/CheckboxGroupField.d.ts +1 -0
  232. package/dist/components/dynamic-form/fields/select/RadioField.d.ts +1 -0
  233. package/dist/components/dynamic-form/fields/select/SelectField.d.ts +1 -0
  234. package/dist/components/dynamic-form/fields/select/SwitchField.d.ts +1 -0
  235. package/dist/components/dynamic-form/fields/select/TreeSelectField.d.ts +1 -0
  236. package/dist/components/dynamic-form/fields/select/index.d.ts +7 -0
  237. package/dist/components/dynamic-form/fields/special/AutoCompleteField.d.ts +1 -0
  238. package/dist/components/dynamic-form/fields/special/ColorPickerField.d.ts +1 -0
  239. package/dist/components/dynamic-form/fields/special/MentionsField.d.ts +1 -0
  240. package/dist/components/dynamic-form/fields/special/RateField.d.ts +1 -0
  241. package/dist/components/dynamic-form/fields/special/SliderField.d.ts +1 -0
  242. package/dist/components/dynamic-form/fields/special/UploadField.d.ts +1 -0
  243. package/dist/components/dynamic-form/fields/special/index.d.ts +6 -0
  244. package/dist/components/dynamic-form/index.d.ts +21 -0
  245. package/dist/components/dynamic-form/registry/FieldRegistry.d.ts +26 -0
  246. package/dist/components/dynamic-form/registry/FieldRegistryContext.d.ts +53 -0
  247. package/dist/components/dynamic-form/registry/createFieldComponent.d.ts +56 -0
  248. package/dist/components/dynamic-form/registry/index.d.ts +3 -0
  249. package/dist/components/dynamic-form/types/data-loader.d.ts +144 -0
  250. package/dist/components/dynamic-form/types/events.d.ts +203 -0
  251. package/dist/components/dynamic-form/types/field-component.d.ts +156 -0
  252. package/dist/components/dynamic-form/types/form-schema.d.ts +297 -0
  253. package/dist/components/dynamic-form/types/index.d.ts +4 -0
  254. package/dist/components/dynamic-form/types/validation.d.ts +53 -0
  255. package/dist/components/dynamic-form/utils/__tests__/path-get.test.d.ts +1 -0
  256. package/dist/components/dynamic-form/utils/conditions.d.ts +4 -0
  257. package/dist/components/dynamic-form/utils/generateEvents.d.ts +84 -0
  258. package/dist/components/dynamic-form/utils/path-get.d.ts +21 -0
  259. package/dist/components/dynamic-form/utils/useDataLoader.d.ts +47 -0
  260. package/dist/components/dynamic-form/utils/validation.d.ts +7 -0
  261. package/dist/components/dynamic-form/utils/visible.d.ts +7 -0
  262. package/dist/components/index.d.ts +3 -0
  263. package/dist/components/ui/index.d.ts +1 -0
  264. package/dist/index.d.ts +1 -0
  265. package/dist/locales/en-US/common.d.ts +571 -0
  266. package/dist/locales/en-US/link/component.d.ts +76 -0
  267. package/dist/locales/en-US/link/flow.d.ts +152 -0
  268. package/dist/locales/en-US/link/log.d.ts +40 -0
  269. package/dist/locales/en-US/link/template.d.ts +6 -0
  270. package/dist/locales/en-US.d.ts +720 -0
  271. package/dist/locales/index.d.ts +722 -0
  272. package/dist/locales/zh-CN/common.d.ts +571 -0
  273. package/dist/locales/zh-CN/link/component.d.ts +77 -0
  274. package/dist/locales/zh-CN/link/flow.d.ts +152 -0
  275. package/dist/locales/zh-CN/link/log.d.ts +41 -0
  276. package/dist/locales/zh-CN/link/template.d.ts +6 -0
  277. package/dist/locales/zh-CN.d.ts +720 -0
  278. package/dist/locales/zh-TW/common.d.ts +567 -0
  279. package/dist/locales/zh-TW/link/component.d.ts +76 -0
  280. package/dist/locales/zh-TW/link/flow.d.ts +151 -0
  281. package/dist/locales/zh-TW/link/log.d.ts +37 -0
  282. package/dist/locales/zh-TW/link/template.d.ts +6 -0
  283. package/dist/locales/zh-TW.d.ts +715 -0
  284. package/dist/rcs.css +1 -0
  285. package/dist/rcs.es.js +49858 -0
  286. package/dist/rcs.umd.js +98 -0
  287. package/dist/storybook-utils.d.ts +4 -0
  288. package/dist/utils.d.ts +2 -0
  289. package/package.json +147 -0
package/README.md ADDED
@@ -0,0 +1,237 @@
1
+ ![logo](https://www.digitalsee.cn/_next/static/media/logo_purple.a1d68599.svg)
2
+
3
+ # @digitalsee/rcs
4
+
5
+ **数犀 React 组件库**
6
+
7
+
8
+ 为数犀内部提供跨工程运行的React组件服务
9
+
10
+
11
+ ---
12
+
13
+ ## 📦 安装
14
+
15
+ 使用 pnpm(推荐):
16
+ ```bash
17
+ pnpm add @digitalsee/rcs
18
+ ```
19
+
20
+ 使用 npm:
21
+ ```bash
22
+ npm install @digitalsee/rcs
23
+ ```
24
+
25
+ 使用 yarn:
26
+ ```bash
27
+ yarn add @digitalsee/rcs
28
+ ```
29
+
30
+ ## ✨ 特性
31
+
32
+ - 🎨 **工作流编辑器** - 基于 ReactFlow 的强大可视化工作流编辑器
33
+ - 📊 **数据可视化** - 内置 JSON 渲染器和数据展示组件
34
+ - 🌍 **国际化支持** - 内置中文(简体/繁体)和英文支持
35
+ - 🎯 **TypeScript** - 完整的 TypeScript 类型支持
36
+ - 🔧 **可定制** - 灵活的配置和主题定制
37
+ - ⚡ **高性能** - 优化的渲染性能和内存使用
38
+ - 📱 **响应式** - 适配各种屏幕尺寸
39
+
40
+ ## 🚀 快速开始
41
+
42
+ ### 基础使用
43
+
44
+ ```tsx
45
+ import { Workflow } from '@digitalsee/rcs';
46
+ import '@digitalsee/rcs/styles.css';
47
+
48
+ function App() {
49
+ return (
50
+ <Workflow
51
+ workflowId="my-workflow"
52
+ // 更多配置项...
53
+ />
54
+ );
55
+ }
56
+ ```
57
+
58
+ ### 使用 JsonRenderer
59
+
60
+ ```tsx
61
+ import { JsonRenderer } from '@digitalsee/rcs';
62
+ import '@digitalsee/rcs/styles.css';
63
+
64
+ function App() {
65
+ const data = {
66
+ name: "示例数据",
67
+ value: 123
68
+ };
69
+
70
+ return <JsonRenderer data={data} />;
71
+ }
72
+ ```
73
+
74
+ ## 📚 主要组件
75
+
76
+ ### 🔄 Workflow(工作流)
77
+
78
+ 完整的可视化工作流编辑器,支持:
79
+
80
+ - ✅ 节点的拖拽和连接
81
+ - ✅ 自定义节点类型
82
+ - ✅ 边的样式和交互
83
+ - ✅ 撤销/重做功能
84
+ - ✅ 小地图导航
85
+ - ✅ 自动布局
86
+ - ✅ 调试面板
87
+ - ✅ 数据持久化
88
+
89
+ **主要特性:**
90
+ - 支持多种节点类型(触发器、动作、条件等)
91
+ - 灵活的节点配置面板
92
+ - 实时数据流调试
93
+ - 节点搜索和筛选
94
+ - 快捷键支持
95
+
96
+ ### 📋 JsonRenderer
97
+
98
+ 强大的 JSON 数据渲染组件:
99
+ - 语法高亮
100
+ - 可折叠/展开
101
+ - 搜索功能
102
+ - 复制功能
103
+
104
+ ## 🔨 开发
105
+
106
+ ### 环境要求
107
+
108
+ - Node.js >= 22
109
+ - pnpm >= 10.12.1
110
+
111
+ ### 开发命令
112
+
113
+ ```bash
114
+ # 安装依赖
115
+ pnpm install
116
+
117
+ # 启动 Storybook 开发环境
118
+ pnpm dev
119
+
120
+ # 构建组件库
121
+ pnpm build:vite
122
+
123
+ # 运行测试
124
+ pnpm test
125
+
126
+ # 代码格式化
127
+ pnpm format
128
+
129
+ # 代码检查
130
+ pnpm lint
131
+ ```
132
+
133
+ ### 构建输出
134
+
135
+ ```bash
136
+ # 构建并发布新版本
137
+ pnpm update:version
138
+ ```
139
+
140
+ 构建产物包括:
141
+ - `dist/rcs.es.js` - ES Module 格式
142
+ - `dist/rcs.umd.js` - UMD 格式
143
+ - `dist/rcs.css` - 样式文件
144
+ - `dist/index.d.ts` - TypeScript 类型定义
145
+
146
+ ## 🎨 技术栈
147
+
148
+ - **核心框架**: React 19+
149
+ - **状态管理**: Redux Toolkit
150
+ - **流程图**: @xyflow/react
151
+ - **UI 组件**: Ant Design 5+ / Ant Design Pro Components
152
+ - **样式方案**: Tailwind CSS + Less
153
+ - **代码编辑器**: Monaco Editor / CodeMirror
154
+ - **富文本**: Slate.js
155
+ - **构建工具**: Vite
156
+ - **文档工具**: Storybook
157
+ - **代码质量**: Biome
158
+ - **测试框架**: Vitest
159
+
160
+ ## 📖 依赖要求
161
+
162
+ ### Peer Dependencies
163
+
164
+ 确保你的项目中已安装以下依赖:
165
+
166
+ - `react` >= 18.0.0
167
+ - `react-dom` >= 18.0.0
168
+ - `antd` >= 5.0.0
169
+ - `@ant-design/icons` >= 5.0.0
170
+ - `@ant-design/pro-components` >= 2.0.0
171
+ - `@reduxjs/toolkit` >= 2.0.0
172
+ - `react-redux` >= 9.0.0
173
+ - `@xyflow/react` >= 12.0.0
174
+ - `ahooks` >= 3.0.0
175
+ - `lodash-es` >= 4.17.0
176
+
177
+ ## 🌐 国际化
178
+
179
+ 组件库内置多语言支持:
180
+
181
+ ```tsx
182
+ import { IntlProvider } from 'react-intl';
183
+ import zhCN from '@digitalsee/rcs/locales/zh-CN';
184
+
185
+ <IntlProvider locale="zh-CN" messages={zhCN}>
186
+ <Workflow />
187
+ </IntlProvider>
188
+ ```
189
+
190
+ 支持的语言:
191
+ - 🇨🇳 简体中文 (zh-CN)
192
+ - 🇹🇼 繁体中文 (zh-TW)
193
+ - 🇺🇸 英文 (en-US)
194
+
195
+ ## 📝 版本管理
196
+
197
+ ```bash
198
+ # 补丁版本 (0.0.x)
199
+ pnpm bump
200
+
201
+ # 次要版本 (0.x.0)
202
+ pnpm bump:minor
203
+
204
+ # 主要版本 (x.0.0)
205
+ pnpm bump:major
206
+ ```
207
+
208
+ ## 🤝 贡献
209
+
210
+ 欢迎提交 Issue 和 Pull Request!
211
+
212
+ ### 开发流程
213
+
214
+ 1. Fork 本仓库
215
+ 2. 创建你的特性分支 (`git checkout -b feature/AmazingFeature`)
216
+ 3. 提交你的改动 (`git commit -m 'Add some AmazingFeature'`)
217
+ 4. 推送到分支 (`git push origin feature/AmazingFeature`)
218
+ 5. 提交 Pull Request
219
+
220
+ ### 代码规范
221
+
222
+ 项目使用 Biome 进行代码检查和格式化:
223
+ ```bash
224
+ pnpm format # 自动格式化代码
225
+ pnpm lint # 检查代码问题
226
+ ```
227
+
228
+
229
+ ## 🔗 相关链接
230
+
231
+ - [数犀官网](https://www.digitalsee.cn)
232
+
233
+ ---
234
+
235
+ <div align="center">
236
+ Made with ❤️ by <a href="https://www.digitalsee.cn">数犀 DigitalSee</a>
237
+ </div>
@@ -0,0 +1,22 @@
1
+ import { default as React } from 'react';
2
+ export interface JsonNode {
3
+ key: string;
4
+ value: any;
5
+ type: 'object' | 'array' | 'string' | 'number' | 'boolean' | 'null';
6
+ path: string[];
7
+ level: number;
8
+ isCollapsed?: boolean;
9
+ parent?: JsonNode;
10
+ children?: JsonNode[];
11
+ }
12
+ export interface JsonRendererProps {
13
+ data?: string | object;
14
+ height?: number;
15
+ enableCopy?: boolean;
16
+ theme?: 'light' | 'dark';
17
+ className?: string;
18
+ locale?: 'zh' | 'en';
19
+ maxHeight?: number;
20
+ }
21
+ declare const JsonRenderer: React.FC<JsonRendererProps>;
22
+ export default JsonRenderer;
@@ -0,0 +1,7 @@
1
+ declare const _default: {
2
+ copy: string;
3
+ copySuccess: string;
4
+ download: string;
5
+ invalidJson: string;
6
+ };
7
+ export default _default;
@@ -0,0 +1,7 @@
1
+ declare const _default: {
2
+ copy: string;
3
+ copySuccess: string;
4
+ download: string;
5
+ invalidJson: string;
6
+ };
7
+ export default _default;
@@ -0,0 +1 @@
1
+ export * from './workflow';
@@ -0,0 +1,44 @@
1
+ import { default as React, ReactEventHandler } from 'react';
2
+ export interface ToolbarPanelProps {
3
+ /**
4
+ * 打开节点选择面板的回调
5
+ */
6
+ onOpenNodeSelector?: (e: ReactEventHandler) => void;
7
+ /**
8
+ * 添加便签节点的回调
9
+ */
10
+ onAddNoteNode?: () => void;
11
+ /**
12
+ * 整理画布的回调
13
+ */
14
+ onTidyCanvas?: () => void;
15
+ /**
16
+ * Panel 组件的样式
17
+ */
18
+ panelStyle?: React.CSSProperties;
19
+ /**
20
+ * 按钮的样式
21
+ */
22
+ buttonStyle?: React.CSSProperties;
23
+ /**
24
+ * 危险按钮的样式(整理按钮)
25
+ */
26
+ dangerButtonStyle?: React.CSSProperties;
27
+ /**
28
+ * 是否显示整理按钮
29
+ */
30
+ showTidyButton?: boolean;
31
+ /**
32
+ * 自定义按钮配置
33
+ */
34
+ buttons?: Array<{
35
+ key: string;
36
+ title: string;
37
+ icon: React.ReactNode;
38
+ onClick: () => void;
39
+ danger?: boolean;
40
+ visible?: boolean;
41
+ }>;
42
+ }
43
+ declare const FastOperationButtons: React.FC<ToolbarPanelProps>;
44
+ export default FastOperationButtons;
@@ -0,0 +1,3 @@
1
+ export declare const FullscreenLoading: import('react').MemoExoticComponent<({ loading }: {
2
+ loading: boolean;
3
+ }) => import("react/jsx-runtime").JSX.Element>;
@@ -0,0 +1 @@
1
+ export declare const GlobalSvg: import('react').MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
@@ -0,0 +1,8 @@
1
+ export type HelperLinesProps = {
2
+ horizontal?: number;
3
+ vertical?: number;
4
+ };
5
+ export declare const useHelperLines: () => void;
6
+ declare function HelperLinesRenderer({ horizontal, vertical }: HelperLinesProps): import("react/jsx-runtime").JSX.Element;
7
+ declare const _default: import('react').MemoExoticComponent<typeof HelperLinesRenderer>;
8
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { MiniMap as NativeMiniMap } from '@xyflow/react';
2
+ import { ComponentProps } from 'react';
3
+ export default function MiniMap<T extends ComponentProps<typeof NativeMiniMap> = any>(props: T): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { default as React } from 'react';
2
+ import { WorkflowCanvasProps } from './constants';
3
+ /**
4
+ * 工作流画布组件:负责渲染 ReactFlow 画布、加载/保存流程、处理节点/连线交互与未保存提示。
5
+ *
6
+ * @param props 组件属性
7
+ * @param props.workflowId 流程 ID
8
+ * @param props.readOnly 是否只读
9
+ * @param props.preview 是否预览模式
10
+ * @param props.previewId 预览 ID(存在则视为预览)
11
+ * @param props.appFlowMode 是否为应用流程模式
12
+ * @param props.linkMode 是否为嵌入(Link)模式
13
+ */
14
+ declare const WorkflowCanvas: React.FC<WorkflowCanvasProps>;
15
+ export default WorkflowCanvas;
@@ -0,0 +1,15 @@
1
+ import { default as React } from 'react';
2
+ import { CanvasAPI } from '../types/engine';
3
+ interface WorkflowCanvasHeaderProps {
4
+ onSave?: () => void;
5
+ readOnly?: boolean;
6
+ unSave?: boolean;
7
+ preview?: boolean;
8
+ appFlowMode?: boolean;
9
+ autoSaveStatus?: 'idle' | 'saving' | 'saved' | 'error';
10
+ lastSavedTime?: string;
11
+ /** 画布对外 API,用于工具栏按钮回调 */
12
+ canvasApi?: CanvasAPI;
13
+ }
14
+ declare const WorkflowCanvasHeader: React.FC<WorkflowCanvasHeaderProps>;
15
+ export default WorkflowCanvasHeader;
@@ -0,0 +1,28 @@
1
+ import { Edge, Node } from '@xyflow/react';
2
+ import { default as React } from 'react';
3
+ /**
4
+ * 调试面板属性
5
+ */
6
+ export interface WorkflowDebugPanelProps {
7
+ /**
8
+ * 是否可见
9
+ */
10
+ visible: boolean;
11
+ /**
12
+ * 当前节点列表
13
+ */
14
+ nodes: Node[];
15
+ /**
16
+ * 当前连线列表
17
+ */
18
+ edges: Edge[];
19
+ /**
20
+ * 关闭面板回调
21
+ */
22
+ onClose: () => void;
23
+ }
24
+ /**
25
+ * 画布节点/连线调试面板
26
+ */
27
+ declare const WorkflowDebugPanel: React.FC<WorkflowDebugPanelProps>;
28
+ export default WorkflowDebugPanel;
@@ -0,0 +1 @@
1
+ export declare const getStatusColor: (node: any, colorType?: "normal" | "lighter") => "rgba(0,0,0,.5)" | "rgb(206, 226, 164)" | "#F2C000" | "#FDF6D5" | "#FA170A" | "#FF918B" | "#2EC04F" | "#8CDF3A" | "#007AFF" | "#D9EBFF" | "#51A4F6" | "#00c3ff";
@@ -0,0 +1,8 @@
1
+ import { Node, NodePositionChange, XYPosition } from '@xyflow/react';
2
+ type GetHelperLinesResult = {
3
+ horizontal?: number;
4
+ vertical?: number;
5
+ snapPosition: Partial<XYPosition>;
6
+ };
7
+ export declare function getHelperLines(change: NodePositionChange, nodes: Node[], distance?: number): GetHelperLinesResult;
8
+ export {};
@@ -0,0 +1,30 @@
1
+ import { EdgeProps } from '@xyflow/react';
2
+ import { default as React, ReactNode } from 'react';
3
+ declare enum ConnectionType {
4
+ Main = "main",
5
+ NonMain = "nonMain"
6
+ }
7
+ interface CustomEdgeProps extends EdgeProps {
8
+ color?: string;
9
+ labelBgColor?: string;
10
+ animated?: boolean;
11
+ className?: string;
12
+ data?: {
13
+ label?: ReactNode;
14
+ connectionType?: ConnectionType;
15
+ isHovered?: boolean;
16
+ isLoopEdge?: boolean;
17
+ undeletable?: boolean;
18
+ onAddNode?: (position: {
19
+ x: number;
20
+ y: number;
21
+ }, edge?: any) => void;
22
+ onDelete?: (id: string) => void;
23
+ onMouseEnter?: (id: string) => void;
24
+ onMouseLeave?: (id: string) => void;
25
+ };
26
+ target: string;
27
+ targetHandle: string;
28
+ }
29
+ declare const BaseEdge: React.FC<CustomEdgeProps>;
30
+ export default BaseEdge;
@@ -0,0 +1,30 @@
1
+ import { Connection, HandleType as FlowHandleType, Position, IsValidConnection as ReactFlowIsValidConnection } from '@xyflow/react';
2
+ import { default as React } from 'react';
3
+ import { NodeStatus } from '../types/Node';
4
+ type HandleStatus = 'default' | 'connected' | 'connecting' | 'error';
5
+ type HandleCategory = 'main' | 'secondary' | 'slave';
6
+ interface CustomHandleProps {
7
+ type: FlowHandleType;
8
+ id: string;
9
+ nodeId: string;
10
+ position?: Position;
11
+ style?: React.CSSProperties;
12
+ isValidConnection?: ReactFlowIsValidConnection;
13
+ onConnect?: (params: Connection) => void;
14
+ label?: string | React.ReactNode;
15
+ status?: HandleStatus;
16
+ nodeStatus?: NodeStatus;
17
+ category?: HandleCategory;
18
+ connectionLimit?: number;
19
+ showConnectionCount?: boolean;
20
+ square?: boolean;
21
+ shape?: 'square' | 'circle' | 'rhombus';
22
+ protocol?: string;
23
+ }
24
+ /**
25
+ * @description 自定义连接桩组件,统一输出 11×11px 菱形桩点并同步节点状态色。
26
+ * @param {CustomHandleProps} props 连接桩配置参数,包含节点信息、协议限制及标签等。
27
+ * @returns {JSX.Element} 渲染后的连接桩 JSX。
28
+ */
29
+ declare const CustomHandle: React.FC<CustomHandleProps>;
30
+ export default CustomHandle;
@@ -0,0 +1,35 @@
1
+ import { Position } from '@xyflow/react';
2
+ /**
3
+ * 连接点工厂类,用于创建输入和输出连接点
4
+ */
5
+ declare class HandleFactory {
6
+ /**
7
+ * 创建输入连接点
8
+ * @param id 连接点ID
9
+ * @param position 连接点位置
10
+ * @param props 其他属性
11
+ */
12
+ static createInputHandle(id: string, position?: Position, props?: {}): import("react/jsx-runtime").JSX.Element;
13
+ /**
14
+ * 创建输出连接点
15
+ * @param id 连接点ID
16
+ * @param position 连接点位置
17
+ * @param props 其他属性
18
+ */
19
+ static createOutputHandle(id: string, position?: Position, props?: {}): import("react/jsx-runtime").JSX.Element;
20
+ /**
21
+ * 创建多个输入连接点
22
+ * @param count 连接点数量
23
+ * @param position 连接点位置
24
+ * @param props 其他属性
25
+ */
26
+ static createInputHandles(count: number, position?: Position, props?: {}): import("react/jsx-runtime").JSX.Element[];
27
+ /**
28
+ * 创建多个输出连接点
29
+ * @param count 连接点数量
30
+ * @param position 连接点位置
31
+ * @param props 其他属性
32
+ */
33
+ static createOutputHandles(count: number, position?: Position, props?: {}): import("react/jsx-runtime").JSX.Element[];
34
+ }
35
+ export default HandleFactory;
@@ -0,0 +1,12 @@
1
+ import { Position } from '@xyflow/react';
2
+ import { default as React } from 'react';
3
+ interface InputHandleProps {
4
+ id?: string;
5
+ position?: Position;
6
+ style?: React.CSSProperties;
7
+ isConnectable?: boolean;
8
+ isValidConnection?: (connection: any) => boolean;
9
+ onConnect?: (params: any) => void;
10
+ }
11
+ declare const InputHandle: React.FC<InputHandleProps>;
12
+ export default InputHandle;
@@ -0,0 +1,12 @@
1
+ import { Position } from '@xyflow/react';
2
+ import { default as React } from 'react';
3
+ interface OutputHandleProps {
4
+ id?: string;
5
+ position?: Position;
6
+ style?: React.CSSProperties;
7
+ isConnectable?: boolean;
8
+ isValidConnection?: (connection: any) => boolean;
9
+ onConnect?: (params: any) => void;
10
+ }
11
+ declare const OutputHandle: React.FC<OutputHandleProps>;
12
+ export default OutputHandle;
@@ -0,0 +1,15 @@
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;
@@ -0,0 +1,9 @@
1
+ import { NodeProps } from '@xyflow/react';
2
+ import { default as React } from 'react';
3
+ /**
4
+ * @description AI 子节点,渲染垂直布局下的 300×72px 卡片样式。
5
+ * @param {NodeProps} props React Flow 传入的节点参数。
6
+ * @returns {JSX.Element} 渲染后的节点。
7
+ */
8
+ declare const AISubNode: React.FC<NodeProps>;
9
+ export default AISubNode;
@@ -0,0 +1,13 @@
1
+ import { NodeProps } from '@xyflow/react';
2
+ import { default as React } from 'react';
3
+ import { NodeStatus } from '../types/Node';
4
+ interface ActionNodeProps extends NodeProps {
5
+ status?: NodeStatus;
6
+ }
7
+ /**
8
+ * @description 动作节点,呈现普通执行节点的卡片布局与状态色。
9
+ * @param {ActionNodeProps} props React Flow 节点与状态属性。
10
+ * @returns {JSX.Element} 渲染后的动作节点。
11
+ */
12
+ declare const ActionNode: React.FC<ActionNodeProps>;
13
+ export default ActionNode;
@@ -0,0 +1,10 @@
1
+ import { NodeProps } from '@xyflow/react';
2
+ import { default as React } from 'react';
3
+ import { NodeData } from '../types/Node';
4
+ /**
5
+ * @description Agent 节点,包含底部三个菱形子插槽与主输出。
6
+ * @param {NodeProps<NodeData>} props React Flow 代理节点参数。
7
+ * @returns {JSX.Element} 渲染后的 Agent 节点。
8
+ */
9
+ declare const AgentNode: React.FC<NodeProps<NodeData>>;
10
+ export default AgentNode;
@@ -0,0 +1,10 @@
1
+ import { NodeProps } from '@xyflow/react';
2
+ import { default as React } from 'react';
3
+ import { NodeData } from '../types/Node';
4
+ /**
5
+ * @description 浏览器节点,提供模型接入与右侧主输出的卡片布局。
6
+ * @param {NodeProps<NodeData>} props React Flow 浏览器节点参数。
7
+ * @returns {JSX.Element} 渲染后的浏览器节点。
8
+ */
9
+ declare const BrowserNode: React.FC<NodeProps<NodeData>>;
10
+ export default BrowserNode;
@@ -0,0 +1,9 @@
1
+ import { NodeProps } from '@xyflow/react';
2
+ import { default as React } from 'react';
3
+ /**
4
+ * @description 内置 MCP 节点,显示自定义协议输出的子节点卡片。
5
+ * @param {NodeProps} props React Flow 节点参数。
6
+ * @returns {JSX.Element} 渲染后的 MCP 子节点。
7
+ */
8
+ declare const AISubNode: React.FC<NodeProps>;
9
+ export default AISubNode;
@@ -0,0 +1,13 @@
1
+ import { NodeProps } from '@xyflow/react';
2
+ import { default as React } from 'react';
3
+ import { NodeStatus } from '../types/Node';
4
+ interface ConditionNodeProps extends NodeProps {
5
+ status?: NodeStatus;
6
+ }
7
+ /**
8
+ * @description 条件节点,左入右出两路,使用统一卡片视觉呈现条件分支。
9
+ * @param {ConditionNodeProps} props React Flow 条件节点参数。
10
+ * @returns {JSX.Element} 渲染后的条件节点。
11
+ */
12
+ declare const ConditionNode: React.FC<ConditionNodeProps>;
13
+ export default ConditionNode;
@@ -0,0 +1,15 @@
1
+ import { NodeProps } from '@xyflow/react';
2
+ import { default as React } from 'react';
3
+ import { NodeData } from '../types/Node';
4
+ /**
5
+ * 自定义节点组件
6
+ *
7
+ * 该组件演示了如何使用isHovered属性来改变节点的外观
8
+ */
9
+ /**
10
+ * @description 自定义示例节点,通过悬停与选中状态演示样式覆盖。
11
+ * @param {NodeProps<NodeData>} props React Flow 节点与数据。
12
+ * @returns {JSX.Element} 自定义节点 JSX。
13
+ */
14
+ declare const CustomNode: React.MemoExoticComponent<({ data, id, selected }: NodeProps<NodeData>) => import("react/jsx-runtime").JSX.Element>;
15
+ export default CustomNode;
@@ -0,0 +1,4 @@
1
+ import { NodeProps } from '@xyflow/react';
2
+ import { default as React } from 'react';
3
+ declare const _default: React.NamedExoticComponent<NodeProps>;
4
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import { NodeProps } from '@xyflow/react';
2
+ import { default as React } from 'react';
3
+ /**
4
+ * @description MCP Server 节点,承载顶部输入的服务节点卡片。
5
+ * @param {NodeProps} props React Flow 节点参数。
6
+ * @returns {JSX.Element} 渲染后的 MCP Server 节点。
7
+ */
8
+ declare const AISubNode: React.FC<NodeProps>;
9
+ export default AISubNode;