yt-chat-components 1.2.6 → 1.2.8

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": "1.2.6",
3
+ "version": "1.2.8",
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",
@@ -9,7 +9,7 @@ import { v4 as uuidv4 } from 'uuid';
9
9
  import historyListEmptyPng from '../../assets/aicenter/history-list-empty.png';
10
10
  import addPng from '../../assets/aicenter/add.png';
11
11
  import {isEmpty, isFunction} from "lodash";
12
- import { Button, message as messageTip, Progress, Skeleton } from 'antd'
12
+ import { Button, message as messageTip, Progress, Skeleton, Tooltip } from 'antd'
13
13
  import { CloseOutlined } from "@ant-design/icons";
14
14
  import moreAi from '../../assets/aicenter/moreAi.png';
15
15
  import moreBg from '../../assets/aicenter/moreBg.png';
@@ -512,7 +512,7 @@ export class ToolDialog extends React.Component {
512
512
  dropDownList={this.state.dropDownList}
513
513
  baseConfig={{ isTitleSideIcon, logoWidth, agentUrl }}
514
514
  isShowUploadButton={isShowUploadButton}
515
- dropManUrl={character || dropManUrl}
515
+ dropManUrl={character || currentFlow.character || dropManUrl}
516
516
  modalWidth={modalWidth}
517
517
  />
518
518
  </div>
@@ -536,20 +536,22 @@ export class ToolDialog extends React.Component {
536
536
  <div className={"rightSkillContainer"}>
537
537
  <div className={"rightSkillList"}>
538
538
  {flows.slice(0, 12).map((item) => (
539
- <div className={"rightSkillItem"} key={item.id} onClick={() => {
540
- // 右侧点击一个技能,更新sessionId,切换当前flow信息,重新查询历史记录
541
- this.setState({
542
- sessionId: uuidv4(),
543
- currentFlow: item,
544
- dropDownList: this.getDropDownList(item?.welcome_words||[])
545
- });
546
- this.getCurrentFlowHistory(item.id);
547
- }}>
548
- <img
549
- src={item.icon}
550
- alt={item.name}/>
551
- <p>{item.name}</p>
552
- </div>
539
+ <Tooltip title={item.name}>
540
+ <div className={"rightSkillItem"} key={item.id} onClick={() => {
541
+ // 右侧点击一个技能,更新sessionId,切换当前flow信息,重新查询历史记录
542
+ this.setState({
543
+ sessionId: uuidv4(),
544
+ currentFlow: item,
545
+ dropDownList: this.getDropDownList(item?.welcome_words || [])
546
+ });
547
+ this.getCurrentFlowHistory(item.id);
548
+ }}>
549
+ <img
550
+ src={item.icon}
551
+ alt={item.name}/>
552
+ <p>{item.name}</p>
553
+ </div>
554
+ </Tooltip>
553
555
  ))}
554
556
  </div>
555
557
  </div>