yt-chat-components 1.8.9 → 1.9.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yt-chat-components",
3
- "version": "1.8.9",
3
+ "version": "1.9.0",
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",
@@ -1048,7 +1048,6 @@ const ChatWindow = forwardRef<ChatWindowRef, ChatWindowProps>(({
1048
1048
  keyShowSize={4}
1049
1049
  agentName={window_title}
1050
1050
  agentUrl={agentUrl}
1051
- customUrl={cnxwBottomUrl}
1052
1051
  welcomeWords={welcomeWords || '很高兴认识您,您有什么问题尽可咨询我!'}
1053
1052
  handleRowClick={(word) => {
1054
1053
  if (!receivingMessageRef.current) {
@@ -1059,7 +1058,7 @@ const ChatWindow = forwardRef<ChatWindowRef, ChatWindowProps>(({
1059
1058
  }
1060
1059
  }}
1061
1060
  dataList={questions}
1062
- customUrl={wonderBoyUrl}
1061
+ customUrl={cnxwBottomUrl || wonderBoyUrl}
1063
1062
  isHideTabSelector={isHideTabSelector}
1064
1063
  />
1065
1064
  </div>,
@@ -18,6 +18,7 @@ const TabSelector = ({
18
18
  isShowByPages = true,
19
19
  agentName = '杏鸽',
20
20
  agentUrl = '',
21
+ isHideTabSelector = false,
21
22
  }) => {
22
23
  const [activeKey, setActiveKey] = useState();
23
24
  const [valuePage, setValuePage] = useState(0);
@@ -162,7 +163,11 @@ const TabSelector = ({
162
163
  }
163
164
  <div
164
165
  className={styles.tabSelector}
165
- style={{ width: isSimple ? "auto" : '550px', height: isSimple ? '100%' : 'auto' }}
166
+ style={{
167
+ width: isSimple ? "auto" : '550px',
168
+ height: isSimple ? '100%' : 'auto',
169
+ display: isHideTabSelector ? 'none' : 'flex'
170
+ }}
166
171
  >
167
172
  {
168
173
  !isSimple && <div className={styles.leftPanel}>