@ray-js/t-agent-ui-ray 0.2.7-beta.3 → 0.2.7-beta.5
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.
|
@@ -77,7 +77,8 @@ export default function ChatContainer(props) {
|
|
|
77
77
|
} = _ref;
|
|
78
78
|
setMessages(messages);
|
|
79
79
|
emitEvent('scrollToBottom', {
|
|
80
|
-
animation: false
|
|
80
|
+
animation: false,
|
|
81
|
+
scene: 'message-list-init'
|
|
81
82
|
});
|
|
82
83
|
});
|
|
83
84
|
const offMessageChange = onEvent('messageChange', async _ref2 => {
|
|
@@ -90,7 +91,8 @@ export default function ChatContainer(props) {
|
|
|
90
91
|
{
|
|
91
92
|
setMessages(prev => [...prev, message]);
|
|
92
93
|
emitEvent('scrollToBottom', {
|
|
93
|
-
animation: false
|
|
94
|
+
animation: false,
|
|
95
|
+
scene: 'message-show'
|
|
94
96
|
});
|
|
95
97
|
break;
|
|
96
98
|
}
|
|
@@ -113,7 +115,8 @@ export default function ChatContainer(props) {
|
|
|
113
115
|
});
|
|
114
116
|
emitEvent('scrollToBottom', {
|
|
115
117
|
animation: false,
|
|
116
|
-
follow: true
|
|
118
|
+
follow: true,
|
|
119
|
+
scene: 'message-remove'
|
|
117
120
|
});
|
|
118
121
|
break;
|
|
119
122
|
}
|
|
@@ -191,7 +191,8 @@ export default function MessageInputAIStream(props) {
|
|
|
191
191
|
setMoreOpen(!moreOpen);
|
|
192
192
|
if (!moreOpen) {
|
|
193
193
|
emitEvent('scrollToBottom', {
|
|
194
|
-
animation: true
|
|
194
|
+
animation: true,
|
|
195
|
+
scene: 'message-input-expand'
|
|
195
196
|
});
|
|
196
197
|
}
|
|
197
198
|
};
|
|
@@ -225,13 +226,15 @@ export default function MessageInputAIStream(props) {
|
|
|
225
226
|
onFocus: () => {
|
|
226
227
|
setMoreOpen(false);
|
|
227
228
|
emitEvent('scrollToBottom', {
|
|
228
|
-
animation: true
|
|
229
|
+
animation: true,
|
|
230
|
+
scene: 'message-input-focus'
|
|
229
231
|
});
|
|
230
232
|
},
|
|
231
233
|
onBlur: () => {
|
|
232
234
|
sleep(200).then(() => {
|
|
233
235
|
emitEvent('scrollToBottom', {
|
|
234
|
-
follow: true
|
|
236
|
+
follow: true,
|
|
237
|
+
scene: 'message-input-blur'
|
|
235
238
|
});
|
|
236
239
|
});
|
|
237
240
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ray-js/t-agent-ui-ray",
|
|
3
|
-
"version": "0.2.7-beta.
|
|
3
|
+
"version": "0.2.7-beta.5",
|
|
4
4
|
"author": "Tuya.inc",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"@types/echarts": "^4.9.22",
|
|
41
41
|
"@types/markdown-it": "^14.1.1"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "187f13a29e7d42568102e551fdb6751a0e488134"
|
|
44
44
|
}
|