@agentscope-ai/flow 0.0.20 → 0.0.22
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) => "
|
|
5
|
+
export declare const operatorLabelRender: (val: string) => "=" | "≠" | ">" | "≥" | "<" | "≤" | "∋" | "∌" | undefined;
|
|
6
6
|
export interface IConditionItemProps {
|
|
7
7
|
value: IConditionItem;
|
|
8
8
|
onChange: (value: Partial<IConditionItem>) => void;
|
|
@@ -185,7 +185,7 @@ export var VariableFormComp = /*#__PURE__*/memo(function (props) {
|
|
|
185
185
|
if (props.data.valueFrom === 'input') {
|
|
186
186
|
if (props.typeSwitchDisabled) {
|
|
187
187
|
return /*#__PURE__*/React.createElement("div", {
|
|
188
|
-
className: "flex-1"
|
|
188
|
+
className: "flex-1 h-full"
|
|
189
189
|
}, /*#__PURE__*/React.createElement(VariableBaseInput, {
|
|
190
190
|
isCompact: props.isCompact,
|
|
191
191
|
disabled: props.disabled,
|
|
@@ -236,6 +236,7 @@ export var CustomOutputsForm = /*#__PURE__*/memo(function (_ref) {
|
|
|
236
236
|
className: "spark-flow-inputs-form-item flex gap-[8px] align-center"
|
|
237
237
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
238
238
|
name: "var_".concat(index),
|
|
239
|
+
className: "spark-flow-variable-name-item",
|
|
239
240
|
style: {
|
|
240
241
|
flex: 1,
|
|
241
242
|
marginBottom: 0
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.spark-flow-inputs-form-item {
|
|
36
|
-
height: 32px;
|
|
36
|
+
min-height: 32px;
|
|
37
37
|
.ant-select-sm .ant-select-selector,
|
|
38
38
|
.ant-input-sm {
|
|
39
39
|
font-size: 12px;
|
|
@@ -41,6 +41,28 @@
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
+
.spark-flow-variable-name-item {
|
|
45
|
+
min-width: 0;
|
|
46
|
+
|
|
47
|
+
.@{ant-prefix}-form-item-control,
|
|
48
|
+
.@{ant-prefix}-form-item-control-input,
|
|
49
|
+
.@{ant-prefix}-form-item-control-input-content {
|
|
50
|
+
min-width: 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.@{ant-prefix}-form-item-explain {
|
|
54
|
+
width: 100%;
|
|
55
|
+
max-width: 100%;
|
|
56
|
+
margin: 0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.@{ant-prefix}-form-item-explain-error {
|
|
60
|
+
white-space: normal;
|
|
61
|
+
word-break: break-word;
|
|
62
|
+
line-height: 1.4;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
44
66
|
.spark-flow-variable-type-select {
|
|
45
67
|
.@{ant-prefix}-cascader-dropdown .@{ant-prefix}-cascader-menu {
|
|
46
68
|
height: auto;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentscope-ai/flow",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.22",
|
|
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",
|