@agentscope-ai/flow 0.0.8 → 0.0.9

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.
@@ -170,7 +170,7 @@ export var CustomOutputsForm = /*#__PURE__*/memo(function (_ref) {
170
170
  _ref$tier = _ref.tier,
171
171
  tier = _ref$tier === void 0 ? 0 : _ref$tier,
172
172
  _ref$maxTier = _ref.maxTier,
173
- maxTier = _ref$maxTier === void 0 ? undefined : _ref$maxTier;
173
+ maxTier = _ref$maxTier === void 0 ? -1 : _ref$maxTier;
174
174
  var _Form$useForm = Form.useForm(),
175
175
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
176
176
  form = _Form$useForm2[0];
@@ -297,7 +297,7 @@ export var CustomOutputsForm = /*#__PURE__*/memo(function (_ref) {
297
297
  maxTier: maxTier
298
298
  }))));
299
299
  }), readyOnly !== true && /*#__PURE__*/React.createElement(Tooltip, {
300
- title: maxTier !== undefined && tier >= maxTier ? $i18n.get({
300
+ title: maxTier !== -1 && tier >= maxTier ? $i18n.get({
301
301
  id: 'spark-flow.components.CustomOutputsForm.index.maxTierReached',
302
302
  dm: '最大层级已达到,无法添加子变量'
303
303
  }) : null
@@ -307,7 +307,7 @@ export var CustomOutputsForm = /*#__PURE__*/memo(function (_ref) {
307
307
  size: "small",
308
308
  className: "self-start spark-flow-text-btn",
309
309
  icon: /*#__PURE__*/React.createElement(SparkPlusLine, null),
310
- disabled: maxTier !== undefined && tier >= maxTier
310
+ disabled: maxTier !== -1 && tier >= maxTier
311
311
  }, isRoot ? $i18n.get({
312
312
  id: 'spark-flow.components.CustomOutputsForm.index.addVariable',
313
313
  dm: '添加变量'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentscope-ai/flow",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
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",