@agentscope-ai/flow 0.0.15 → 0.0.16

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.
@@ -2,7 +2,7 @@ import { IConditionItem } from "../../types/work-flow";
2
2
  import React from 'react';
3
3
  import { IVarTreeItem } from '../variable-tree-select';
4
4
  import './index.less';
5
- export declare const operatorLabelRender: (val: string) => "<" | ">" | "=" | "" | "" | "≤" | "∋" | "∌" | undefined;
5
+ export declare const operatorLabelRender: (val: string) => "=" | "" | ">" | "" | "<" | "≤" | "∋" | "∌" | undefined;
6
6
  export interface IConditionItemProps {
7
7
  value: IConditionItem;
8
8
  onChange: (value: Partial<IConditionItem>) => void;
@@ -198,7 +198,7 @@ export var ConfigPanel = /*#__PURE__*/memo(function (_ref) {
198
198
  className: "size-[32px] flex-shrink-0",
199
199
  type: "text",
200
200
  icon: /*#__PURE__*/React.createElement(SparkFalseLine, null)
201
- })) : /*#__PURE__*/React.createElement(Typography.Text, {
201
+ })) : typeof (nodeInfo === null || nodeInfo === void 0 ? void 0 : nodeInfo.titleRenderer) === 'function' ? nodeInfo === null || nodeInfo === void 0 ? void 0 : nodeInfo.titleRenderer(selectedNodeData.data) : /*#__PURE__*/React.createElement(Typography.Text, {
202
202
  ellipsis: {
203
203
  tooltip: true
204
204
  },
@@ -29,5 +29,5 @@ export declare const VariableTreeNodeItem: React.MemoExoticComponent<(props: IVa
29
29
  value?: string | undefined;
30
30
  onChange?: ((value: Pick<IVarItem, 'type' | 'value'>) => void) | undefined;
31
31
  }) => React.JSX.Element>;
32
- declare const VariableTreeSelect: React.MemoExoticComponent<(props: IVariableTreeSelectProps) => string | number | boolean | React.JSX.Element | Iterable<React.ReactNode> | null | undefined>;
32
+ declare const VariableTreeSelect: React.MemoExoticComponent<(props: IVariableTreeSelectProps) => string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined>;
33
33
  export default VariableTreeSelect;
@@ -10,6 +10,8 @@ export interface INodeSchema {
10
10
  type: string;
11
11
  iconType: (props: SparkIconProps) => ReactNode;
12
12
  title: string;
13
+ /** Node title Renderer */
14
+ titleRenderer?: (data: IWorkFlowNodeData) => ReactNode;
13
15
  desc: string;
14
16
  defaultParams: Omit<IWorkFlowNodeData, 'label'>;
15
17
  isSystem?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentscope-ai/flow",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "description": "A powerful and flexible flow canvas rendering engine designed for AI applications. Provides comprehensive workflow visualization and interaction capabilities for platforms like Bailian and AgentScope, enabling seamless creation and management of complex AI agent workflows with an intuitive drag-and-drop interface.",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",