@myun/gimi-chat 0.1.7 → 0.1.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.
|
@@ -138,7 +138,7 @@ var AnswerItem = function AnswerItem(_ref) {
|
|
|
138
138
|
onFailure: onFailure
|
|
139
139
|
}), item.stop === 1 && /*#__PURE__*/React.createElement("div", {
|
|
140
140
|
className: styles.stop
|
|
141
|
-
},
|
|
141
|
+
}, "\u5DF2\u505C\u6B62"), showOperation && /*#__PURE__*/React.createElement("div", {
|
|
142
142
|
className: styles.opera
|
|
143
143
|
}, (showOpera === null || showOpera === void 0 ? void 0 : showOpera(item.id)) && !item.loading && /*#__PURE__*/React.createElement("div", {
|
|
144
144
|
className: styles.opera_item
|
|
@@ -155,6 +155,11 @@ var CommonChat = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
155
155
|
}
|
|
156
156
|
handleSend(val, agent, isSystemAuto);
|
|
157
157
|
}, [handleSend, startConversationAndChat]);
|
|
158
|
+
|
|
159
|
+
// 输入框开头Agent名称
|
|
160
|
+
var showTitleSlot = React.useMemo(function () {
|
|
161
|
+
return messageList.length > 0 || (agentObj === null || agentObj === void 0 ? void 0 : agentObj.showNameStatus) !== 1 ? '' : (agentObj === null || agentObj === void 0 ? void 0 : agentObj.showName) || '';
|
|
162
|
+
}, [messageList, agentObj]);
|
|
158
163
|
return /*#__PURE__*/React.createElement("div", {
|
|
159
164
|
className: styles.main,
|
|
160
165
|
id: "myun_gimi_design_chat"
|
|
@@ -203,7 +208,7 @@ var CommonChat = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
203
208
|
disabled: disableSend || isMoreLoading,
|
|
204
209
|
placeholder: (agentObj === null || agentObj === void 0 ? void 0 : agentObj.inputPrompt) || '',
|
|
205
210
|
defaultPrompt: messageList.length > 0 ? '' : (agentObj === null || agentObj === void 0 ? void 0 : agentObj.defaultPrompt) || '',
|
|
206
|
-
titleSlot:
|
|
211
|
+
titleSlot: showTitleSlot,
|
|
207
212
|
showDefaultPrompt: messageList.length === 0
|
|
208
213
|
// onContentChange={onInputValueChange}
|
|
209
214
|
,
|