yt-chat-components 1.6.0 → 1.6.2

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.6.0",
3
+ "version": "1.6.2",
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",
package/public/index.html CHANGED
@@ -109,48 +109,48 @@
109
109
  <!--/>-->
110
110
  <!--</body>-->
111
111
 
112
- <!--<body style="width: 100vw; height: 100vh; margin:0;">-->
113
- <!--<yt-page-chat-v2-->
114
- <!-- host-url="https://ai-api.yuntu.cn"-->
115
- <!-- sign-url="https://trans-from-yuntu-resourse.oss-cn-beijing.aliyuncs.com/smartSchool/appCreator/school/bcyz/user/ai/logo.png"-->
116
- <!-- app-id="5f48c683-38d8-430e-8479-17730a605821"-->
117
- <!-- box-style='{"height":"100%","minWidth": "1380px","background":"url(https://trans-from-yuntu-resourse.oss-cn-beijing.aliyuncs.com/smartSchool/appCreator/school/bcyz/system/portal_bg_blue.png) center top / 100% 100% no-repeat"}'-->
118
- <!-- is-show-side-right=true-->
119
- <!-- is-show-side-left=true-->
120
- <!-- dialog-index="999999999"-->
121
- <!-- agent-url="https://trans-from-yuntu-resourse.oss-cn-beijing.aliyuncs.com/kai_yuan/byz/xinge.png"-->
122
- <!-- agent-name="白城医学高等专科学校招生咨询平台"-->
123
- <!-- logo-width="27px"-->
124
- <!-- logo-font-size="20px"-->
125
- <!-- is-title-side-icon=true-->
126
- <!-- is-show-upload-button=false-->
127
- <!-- is-show-read-icon=true-->
128
- <!-- drop-man-url="https://trans-from-yuntu-resourse.oss-cn-beijing.aliyuncs.com/smartSchool/appCreator/ai/ai_man01.png"-->
129
- <!-- asset-map='{"sendMessageUrl":"https://trans-from-yuntu-resourse.oss-cn-beijing.aliyuncs.com/smartSchool/appCreator/school/bcyz/user/ai/sendMessage.png","stopMessageUrl":"https://trans-from-yuntu-resourse.oss-cn-beijing.aliyuncs.com/smartSchool/appCreator/school/bcyz/user/ai/stopMessage.png","speakUrl":"https://trans-from-yuntu-resourse.oss-cn-beijing.aliyuncs.com/smartSchool/appCreator/school/bcyz/user/ai/speak.png"}'-->
130
- <!--/>-->
131
- <!--</body>-->
132
-
133
- <body style="width: 100vw; height: 100vh; margin:0 ">
134
- <yt-page-chat-mobile-v2
135
- host-url="http://192.168.110.135:7860"
112
+ <body style="width: 100vw; height: 100vh; margin:0;">
113
+ <yt-page-chat-v2
114
+ host-url="https://ai-api.yuntu.cn"
136
115
  sign-url="https://trans-from-yuntu-resourse.oss-cn-beijing.aliyuncs.com/smartSchool/appCreator/school/bcyz/user/ai/logo.png"
137
116
  app-id="5f48c683-38d8-430e-8479-17730a605821"
138
- agent-url="https://trans-from-yuntu-resourse.oss-cn-beijing.aliyuncs.com/kai_yuan/byz/xinge.png"
139
- box-style='{"height":"100%"}'
117
+ box-style='{"height":"100%","minWidth": "1380px","background":"url(https://trans-from-yuntu-resourse.oss-cn-beijing.aliyuncs.com/smartSchool/appCreator/school/bcyz/system/portal_bg_blue.png) center top / 100% 100% no-repeat"}'
140
118
  is-show-side-right=true
141
119
  is-show-side-left=true
142
120
  dialog-index="999999999"
121
+ agent-url="https://trans-from-yuntu-resourse.oss-cn-beijing.aliyuncs.com/kai_yuan/byz/xinge.png"
143
122
  agent-name="白城医学高等专科学校招生咨询平台"
144
- agent-url="https://trans-from-yuntu-resourse.oss-cn-beijing.aliyuncs.com/smartSchool/appCreator/school/ccit/user/xc//image/ebfaf4da-c1d9-46fb-a0b1-f159e95cffc2_AI招生咨询小助手.png"
145
- logo-width="42px"
146
- logo-font-size="26px"
123
+ logo-width="27px"
124
+ logo-font-size="20px"
147
125
  is-title-side-icon=true
148
126
  is-show-upload-button=false
149
127
  is-show-read-icon=true
150
128
  drop-man-url="https://trans-from-yuntu-resourse.oss-cn-beijing.aliyuncs.com/smartSchool/appCreator/ai/ai_man01.png"
151
129
  asset-map='{"sendMessageUrl":"https://trans-from-yuntu-resourse.oss-cn-beijing.aliyuncs.com/smartSchool/appCreator/school/bcyz/user/ai/sendMessage.png","stopMessageUrl":"https://trans-from-yuntu-resourse.oss-cn-beijing.aliyuncs.com/smartSchool/appCreator/school/bcyz/user/ai/stopMessage.png","speakUrl":"https://trans-from-yuntu-resourse.oss-cn-beijing.aliyuncs.com/smartSchool/appCreator/school/bcyz/user/ai/speak.png"}'
152
- header-name="白城医学高等专科学校招生咨询平台"
153
- is-show-mobile-input-area=true
154
130
  />
155
131
  </body>
132
+
133
+ <!--<body style="width: 100vw; height: 100vh; margin:0 ">-->
134
+ <!--<yt-page-chat-mobile-v2-->
135
+ <!-- host-url="http://192.168.110.135:7860"-->
136
+ <!-- sign-url="https://trans-from-yuntu-resourse.oss-cn-beijing.aliyuncs.com/smartSchool/appCreator/school/bcyz/user/ai/logo.png"-->
137
+ <!-- app-id="5f48c683-38d8-430e-8479-17730a605821"-->
138
+ <!-- agent-url="https://trans-from-yuntu-resourse.oss-cn-beijing.aliyuncs.com/kai_yuan/byz/xinge.png"-->
139
+ <!-- box-style='{"height":"100%"}'-->
140
+ <!-- is-show-side-right=true-->
141
+ <!-- is-show-side-left=true-->
142
+ <!-- dialog-index="999999999"-->
143
+ <!-- agent-name="白城医学高等专科学校招生咨询平台"-->
144
+ <!-- agent-url="https://trans-from-yuntu-resourse.oss-cn-beijing.aliyuncs.com/smartSchool/appCreator/school/ccit/user/xc//image/ebfaf4da-c1d9-46fb-a0b1-f159e95cffc2_AI招生咨询小助手.png"-->
145
+ <!-- logo-width="42px"-->
146
+ <!-- logo-font-size="26px"-->
147
+ <!-- is-title-side-icon=true-->
148
+ <!-- is-show-upload-button=false-->
149
+ <!-- is-show-read-icon=true-->
150
+ <!-- drop-man-url="https://trans-from-yuntu-resourse.oss-cn-beijing.aliyuncs.com/smartSchool/appCreator/ai/ai_man01.png"-->
151
+ <!-- asset-map='{"sendMessageUrl":"https://trans-from-yuntu-resourse.oss-cn-beijing.aliyuncs.com/smartSchool/appCreator/school/bcyz/user/ai/sendMessage.png","stopMessageUrl":"https://trans-from-yuntu-resourse.oss-cn-beijing.aliyuncs.com/smartSchool/appCreator/school/bcyz/user/ai/stopMessage.png","speakUrl":"https://trans-from-yuntu-resourse.oss-cn-beijing.aliyuncs.com/smartSchool/appCreator/school/bcyz/user/ai/speak.png"}'-->
152
+ <!-- header-name="白城医学高等专科学校招生咨询平台"-->
153
+ <!-- is-show-mobile-input-area=true-->
154
+ <!--/>-->
155
+ <!--</body>-->
156
156
  </html>
@@ -104,7 +104,6 @@ export default function ChatWidget({
104
104
  isTagsHidden: boolean;
105
105
  isEnableForV1: boolean;
106
106
  questions: any[];
107
- isTagsHidden: boolean,
108
107
  voice?: string;
109
108
  onSmartRobotClick?: Function;
110
109
  isShowMobileInputArea?: boolean;
@@ -503,6 +503,7 @@ export class MobileChatPageV2 extends React.Component {
503
503
  signUrl,
504
504
  headerName,
505
505
  isShowMobileInputArea,
506
+ inputContainerStyle = {}
506
507
  } = this.props;
507
508
  const { currentFlow = {} } = this.state;
508
509
  return (
@@ -670,7 +671,7 @@ export class MobileChatPageV2 extends React.Component {
670
671
  window_title={currentFlow?.name || title}
671
672
  flow_id={currentFlow?.id || flowId}
672
673
  tags={currentFlow?.keywords || tags}
673
- input_container_style={{zIndex: 2}}
674
+ input_container_style={{ zIndex: 2, ...inputContainerStyle }}
674
675
  is_enable_call={currentFlow?.is_enable_call || false}
675
676
  host_url={hostUrl}
676
677
  api_key={api_key}