yt-chat-components 0.9.8 → 0.9.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yt-chat-components",
3
- "version": "0.9.8",
3
+ "version": "0.9.9",
4
4
  "main": "build/static/js/bundle.min.js",
5
5
  "module": "build/static/js/bundle.min.js",
6
6
  "types": "build/static/js/index.d.ts",
@@ -160,7 +160,7 @@ export default function ChatWindow({
160
160
  } else if (event == 'token') {
161
161
  setNowAIContent((prevState) => prevState + data['chunk']);
162
162
  if (lastMessage.current) lastMessage.current.scrollIntoView({ behavior: 'smooth' });
163
- } else if (false && event == 'end') {// 移除end事件的响应
163
+ } else if (event == 'end') {
164
164
  const res = {
165
165
  data: data['result'],
166
166
  };