@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.
package/dist/client/core/chat.js
CHANGED
|
@@ -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) || '';
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED