@agentscope-ai/design 1.0.27-beta.1769678521654 → 1.0.27-beta.1769680455227

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.
@@ -9,7 +9,7 @@ export interface PromptsEditorProps {
9
9
  * @description 输入的内容
10
10
  * @descriptionEn Input content value
11
11
  */
12
- value: string;
12
+ value?: string;
13
13
  /**
14
14
  * @description 输入内容的类名
15
15
  * @descriptionEn CSS class name for the input content
@@ -69,6 +69,7 @@ export var langExtensionsMap = {
69
69
  };
70
70
  var empty = [];
71
71
  var Editor = function Editor(props) {
72
+ var _props$value;
72
73
  var _useStyles = useStyles(),
73
74
  styles = _useStyles.styles;
74
75
  var variables = props.variables || empty;
@@ -133,7 +134,7 @@ var Editor = function Editor(props) {
133
134
  }, getTheme), /*#__PURE__*/_jsxs("div", {
134
135
  className: styles.footer,
135
136
  children: [tips, props.maxLength ? /*#__PURE__*/_jsxs("div", {
136
- children: [props.value.length, "/", props.maxLength]
137
+ children: [((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.length) || 0, "/", props.maxLength]
137
138
  }) : null]
138
139
  })]
139
140
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentscope-ai/design",
3
- "version": "1.0.27-beta.1769678521654",
3
+ "version": "1.0.27-beta.1769680455227",
4
4
  "description": "AgentScope Spark Design - UI Library for AgentScope AI",
5
5
  "repository": {
6
6
  "type": "git",