@zero-library/chat-agent 2.3.0 → 2.3.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/dist/index.cjs.js +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +5 -5
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -827,9 +827,9 @@ function createChatStore() {
|
|
|
827
827
|
conversation.messages[conversationId].questionList = data;
|
|
828
828
|
};
|
|
829
829
|
const getRecommendQuestions = async (conversationId) => {
|
|
830
|
-
if (conversationId === conversation.active.id && conversation.active.member.agent?.
|
|
830
|
+
if (conversationId === conversation.active.id && conversation.active.member.agent?.memberId && !conversation.messages[conversationId].message.length) {
|
|
831
831
|
try {
|
|
832
|
-
const { data } = await config.services.request.recommendQuestionsQuery(conversation.active.member.agent.
|
|
832
|
+
const { data } = await config.services.request.recommendQuestionsQuery(conversation.active.member.agent.memberId, conversationId);
|
|
833
833
|
if (conversationId === conversation.active.id) {
|
|
834
834
|
receiver.recommendQuestions = data;
|
|
835
835
|
}
|
|
@@ -1588,7 +1588,7 @@ var BubbleListItems_default = ({
|
|
|
1588
1588
|
...args
|
|
1589
1589
|
};
|
|
1590
1590
|
});
|
|
1591
|
-
}, [firstMessages]);
|
|
1591
|
+
}, [firstMessages, conversationRoles]);
|
|
1592
1592
|
const bubbleListItems = react.useMemo(() => {
|
|
1593
1593
|
const list = [];
|
|
1594
1594
|
list.push(...firstMessagesRecord);
|
|
@@ -2207,7 +2207,7 @@ var QuickAskPanel_default = () => {
|
|
|
2207
2207
|
try {
|
|
2208
2208
|
await configState.services.request?.labelItemTop?.({
|
|
2209
2209
|
id: item.id,
|
|
2210
|
-
isTop:
|
|
2210
|
+
isTop: item.isTop ? 0 : 1
|
|
2211
2211
|
});
|
|
2212
2212
|
message2.success(item.isTop ? "\u53D6\u6D88\u7F6E\u9876\u6210\u529F" : "\u7F6E\u9876\u6210\u529F");
|
|
2213
2213
|
fetchItems();
|
|
@@ -2407,7 +2407,7 @@ var FeaturesRenderer_default = () => {
|
|
|
2407
2407
|
children: "\u5411\u4E13\u5BB6\u54A8\u8BE2"
|
|
2408
2408
|
}
|
|
2409
2409
|
),
|
|
2410
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2410
|
+
receiverState.active.feature?.quickAsk && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2411
2411
|
antd.Popover,
|
|
2412
2412
|
{
|
|
2413
2413
|
trigger: "click",
|