yt-chat-components 0.5.0 → 0.6.0
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/.idea/sonarlint/issuestore/2/7/27e69cb561aeea20c1afbdd32d260dd60b89a81b +0 -0
- package/.idea/sonarlint/issuestore/2/e/2e9f70bf32b414323ca1647e2b6f26e1533ee2fc +0 -0
- package/.idea/sonarlint/issuestore/3/6/364385cedcce4c06de1901392ffeeac0caef0f3c +0 -0
- package/.idea/sonarlint/issuestore/4/b/4b015aa5428c4d4c3d672893ec23f5fe3969f9be +0 -0
- package/.idea/sonarlint/issuestore/5/a/5ab44fe33ca96299f51ad4778a73e425b92bf439 +0 -0
- package/.idea/sonarlint/issuestore/6/1/61ebb9fd6e8cf9082658121d5d81e297791dacd0 +0 -0
- package/.idea/sonarlint/issuestore/6/c/6c024c1d0ad64656b9d4b0695ec3c49c0454addf +0 -0
- package/.idea/sonarlint/issuestore/6/e/6e75fc1c07c3a427a86fc213ca9479caaaff00ea +0 -0
- package/.idea/sonarlint/issuestore/c/c/cc2352788140b6778ac06df4b33f50b390d2d8be +0 -0
- package/.idea/sonarlint/issuestore/d/5/d5595158cc48f9bf3e51b06f6e6805a8fd2d6262 +0 -0
- package/.idea/sonarlint/issuestore/d/7/d747cbed4201192dfa83a1a51345b020a050b647 +0 -0
- package/.idea/sonarlint/issuestore/index.pb +23 -1
- package/package.json +1 -1
- package/src/YtChatView/previewDialog/index.jsx +8 -6
- package/yt-chat-components-0.4.0.tgz +0 -0
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -14,4 +14,26 @@ F
|
|
|
14
14
|
H
|
|
15
15
|
src/controllers/index.ts,4/a/4a2f33951ce07c1ff7184f91877aa13db05d3785
|
|
16
16
|
]
|
|
17
|
-
-src/YtChatView/previewDialog/index.module.css,0/f/0f8c0c92cf798431ebb931ff6e997b1af86ecee5
|
|
17
|
+
-src/YtChatView/previewDialog/index.module.css,0/f/0f8c0c92cf798431ebb931ff6e997b1af86ecee5
|
|
18
|
+
H
|
|
19
|
+
src/chatWidget/index.tsx,3/6/364385cedcce4c06de1901392ffeeac0caef0f3c
|
|
20
|
+
=
|
|
21
|
+
|
|
22
|
+
j
|
|
23
|
+
:src/YtChatView/chatWidget/chatWindow/chatMessage/index.tsx,2/e/2e9f70bf32b414323ca1647e2b6f26e1533ee2fc
|
|
24
|
+
e
|
|
25
|
+
5src/YtChatView/chatWidget/chatWindow/index.module.css,d/7/d747cbed4201192dfa83a1a51345b020a050b647
|
|
26
|
+
U
|
|
27
|
+
%src/YtChatView/logoSplitBtn/index.css,6/e/6e75fc1c07c3a427a86fc213ca9479caaaff00ea
|
|
28
|
+
P
|
|
29
|
+
src/YtChatView/logoBtn/index.css,c/c/cc2352788140b6778ac06df4b33f50b390d2d8be
|
|
30
|
+
P
|
|
31
|
+
src/YtChatView/logoBtn/index.jsx,2/7/27e69cb561aeea20c1afbdd32d260dd60b89a81b
|
|
32
|
+
U
|
|
33
|
+
%src/YtChatView/logoSplitBtn/index.jsx,4/b/4b015aa5428c4d4c3d672893ec23f5fe3969f9be
|
|
34
|
+
A
|
|
35
|
+
webpack.config.js,d/5/d5595158cc48f9bf3e51b06f6e6805a8fd2d6262
|
|
36
|
+
S
|
|
37
|
+
#src/chatWidget/chatWindow/index.tsx,6/c/6c024c1d0ad64656b9d4b0695ec3c49c0454addf
|
|
38
|
+
=
|
|
39
|
+
|
package/package.json
CHANGED
|
@@ -324,13 +324,13 @@ export class ToolDialog extends React.Component {
|
|
|
324
324
|
async componentDidMount() {
|
|
325
325
|
if(isEmpty(this.props.sceneId)){
|
|
326
326
|
// 兼容非场景打开的情况
|
|
327
|
-
this.getHistoryList();
|
|
327
|
+
this.getHistoryList({},true);
|
|
328
328
|
}else{
|
|
329
329
|
const sceneData = await this.getSceneInfo();
|
|
330
330
|
if(isEmpty(sceneData)) {
|
|
331
|
-
this.getHistoryList();
|
|
331
|
+
this.getHistoryList({},true);
|
|
332
332
|
} else {
|
|
333
|
-
this.getHistoryList(sceneData);
|
|
333
|
+
this.getHistoryList(sceneData,true);
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
336
|
}
|
|
@@ -345,13 +345,15 @@ export class ToolDialog extends React.Component {
|
|
|
345
345
|
}
|
|
346
346
|
|
|
347
347
|
// 获取历史对话列表
|
|
348
|
-
getHistoryList = (sceneData) => {
|
|
348
|
+
getHistoryList = (sceneData, isRefreshWords) => {
|
|
349
349
|
const { sceneId, flowId } = this.props;
|
|
350
350
|
if(isEmpty(sceneId)){
|
|
351
|
+
console.log("dropDownList",this.state.dropDownList)
|
|
351
352
|
// 单独组件情况
|
|
352
|
-
|
|
353
|
+
if(isRefreshWords){
|
|
354
|
+
this.setState({ dropDownList: defaultList })
|
|
355
|
+
}
|
|
353
356
|
this.getCurrentFlowHistory(flowId)
|
|
354
|
-
|
|
355
357
|
}else{
|
|
356
358
|
const currentScene = sceneData||this.state.sceneInfo;
|
|
357
359
|
const currentFlow = currentScene.flows[0];
|
|
Binary file
|