@myun/gimi-chat 0.2.2 → 0.2.3

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.
@@ -99,14 +99,6 @@ var Chat = function Chat(props) {
99
99
  enableFileUpload: true,
100
100
  enableVoiceChat: true,
101
101
  enableVoiceRecord: true,
102
- onConversationCreated: function onConversationCreated() {
103
- dispatch({
104
- type: 'gimiMenu/setInitMsg',
105
- payload: {
106
- initMsg: ''
107
- }
108
- });
109
- },
110
102
  onFirstSendSuccess: function onFirstSendSuccess() {
111
103
  dispatch(updateParams({
112
104
  pageIndex: 1,
@@ -155,12 +155,6 @@ var CommonChat = /*#__PURE__*/React.forwardRef(function (props, ref) {
155
155
  handleSend(val, agent, isSystemAuto);
156
156
  }, [handleSend, startConversationAndChat]);
157
157
 
158
- // React.useEffect(() => {
159
- // if (initMsg) {
160
- // handleInputSend(initMsg)
161
- // }
162
- // }, [initMsg]);
163
-
164
158
  // 输入框开头Agent名称
165
159
  var showTitleSlot = React.useMemo(function () {
166
160
  return messageList.length > 0 || (agentObj === null || agentObj === void 0 ? void 0 : agentObj.showNameStatus) !== 1 ? '' : (agentObj === null || agentObj === void 0 ? void 0 : agentObj.showName) || '';
@@ -54,7 +54,7 @@
54
54
  .backBottomBtn {
55
55
  position: absolute;
56
56
  bottom: 20px;
57
- right: 20px;
57
+ right: max(20px, (100% - 800px) / 2);
58
58
  width: 40px;
59
59
  height: 40px;
60
60
  background: #fff;
package/dist/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  import { GimiChatComponent } from './components';
2
+ export { default as GimiChatSdk } from './client';
2
3
  export default GimiChatComponent;
package/dist/index.js CHANGED
@@ -1,2 +1,3 @@
1
1
  import { GimiChatComponent } from "./components";
2
+ export { default as GimiChatSdk } from "./client";
2
3
  export default GimiChatComponent;