@agentscope-ai/flow 0.0.5 → 0.0.6

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;
@@ -16,6 +16,7 @@ export interface ICustomInputsControlProps {
16
16
  defaultType?: IValueType;
17
17
  hideAdd?: boolean;
18
18
  hideDelete?: boolean;
19
+ noValidate?: boolean;
19
20
  }
20
21
  export interface IVariableFormCompProps {
21
22
  data: Omit<INodeDataInputParamItem, 'key'>;
@@ -358,7 +358,7 @@ export default /*#__PURE__*/memo(function CustomInputsControl(props) {
358
358
  flexShrink: 0
359
359
  },
360
360
  validateTrigger: ['onChange', 'onBlur'],
361
- rules: createVariableNameRules(value, index)
361
+ rules: props.noValidate ? [] : createVariableNameRules(value, index)
362
362
  }, /*#__PURE__*/React.createElement(Input, {
363
363
  placeholder: $i18n.get({
364
364
  id: 'spark-flow.components.CustomInputsControl.index.enterVariableName',
@@ -3,10 +3,6 @@
3
3
  display: flex;
4
4
  align-items: stretch;
5
5
 
6
- .@{ant-prefix}-cascader {
7
- height: auto;
8
- }
9
-
10
6
  .variable-type-select .@{ant-prefix}-select-selector {
11
7
  background-color: e('var(--@{ant-prefix}-color-bg-layout)');
12
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentscope-ai/flow",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
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",