@ray-js/t-agent-ui-ray 0.1.0 → 0.1.1-beta-2

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.
@@ -141,10 +141,12 @@ export default function MessageInput(props) {
141
141
  "data-testid": "t-agent-message-input-text-inner",
142
142
  className: "t-agent-message-input-text-inner",
143
143
  onConfirm: () => {
144
- send([...attachmentInput.blocks, {
145
- type: 'text',
146
- text
147
- }]);
144
+ if (text.trim().length) {
145
+ send([...attachmentInput.blocks, {
146
+ type: 'text',
147
+ text
148
+ }]);
149
+ }
148
150
  },
149
151
  maxLength: 200,
150
152
  placeholderStyle: "color: var(--app-B1-N4)",
@@ -185,7 +187,7 @@ export default function MessageInput(props) {
185
187
  }
186
188
  } else if (isMore) {
187
189
  openMoreClick();
188
- } else if (text) {
190
+ } else if (text.trim().length) {
189
191
  await send([...attachmentInput.blocks, {
190
192
  type: 'text',
191
193
  text
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/t-agent-ui-ray",
3
- "version": "0.1.0",
3
+ "version": "0.1.1-beta-2",
4
4
  "author": "Tuya.inc",
5
5
  "license": "MIT",
6
6
  "private": false,
@@ -41,5 +41,5 @@
41
41
  "@types/echarts": "^4.9.22",
42
42
  "@types/markdown-it": "^14.1.1"
43
43
  },
44
- "gitHead": "80ca2c156cdc14a2fd880454f3b934add239f3a7"
44
+ "gitHead": "b8aa1c3c5045aaba27ee36c930faa03d4c4717f6"
45
45
  }