@ray-js/t-agent-ui-ray 0.1.0 → 0.1.1-beta-1
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
|
-
|
|
145
|
-
|
|
146
|
-
|
|
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.
|
|
3
|
+
"version": "0.1.1-beta-1",
|
|
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": "
|
|
44
|
+
"gitHead": "17dc9635001607533f5ec2b6c28ec01b43e5ec62"
|
|
45
45
|
}
|