@zero-library/chat-copilot 3.1.19 → 3.1.20

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 CHANGED
@@ -863,7 +863,7 @@ var ChatInput = React10__namespace.forwardRef(
863
863
  }
864
864
  }
865
865
  ),
866
- placeholder: !stringValue ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: index_module_default.promptEditorPlaceholder, children: placeholder || "\u4ECA\u5929\u5E2E\u4F60\u505A\u4E9B\u4EC0\u4E48\uFF1F\u8F93\u5165 '/' \u8C03\u7528\u6280\u80FD\u4E0E\u77E5\u8BC6\u5E93" }) : null,
866
+ placeholder: !stringValue ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: index_module_default.promptEditorPlaceholder, children: placeholder || "\u4ECA\u5929\u5E2E\u4F60\u505A\u4E9B\u4EC0\u4E48\uFF1F" }) : null,
867
867
  ErrorBoundary: LexicalErrorBoundary.LexicalErrorBoundary
868
868
  }
869
869
  ),
@@ -1347,6 +1347,7 @@ function createChatStore() {
1347
1347
  id: data || "",
1348
1348
  title: "",
1349
1349
  agentId: agent.agentInfo?.id || "",
1350
+ isFavorite: false,
1350
1351
  updatedAt: (/* @__PURE__ */ new Date()).toISOString(),
1351
1352
  spec: newSpec
1352
1353
  });
@@ -2266,7 +2267,7 @@ var ConversationFavoritesBtn_default = ({ icon, ...rest }) => {
2266
2267
  const activeConversation = React10.useMemo(() => {
2267
2268
  return conversationsState.list.items.find((item) => item.id === conversationState.active.id);
2268
2269
  }, [conversationsState.list.items, conversationState.active.id]);
2269
- const isFavorite = activeConversation?.isFavorite === true;
2270
+ const isFavorite = activeConversation?.isFavorite;
2270
2271
  const handleToggleFavorite = () => {
2271
2272
  if (!conversationState.active.id) return;
2272
2273
  chatStore.collectConversation(conversationState.active.id, !isFavorite);
@@ -2321,6 +2322,7 @@ var styles_module_default2 = {
2321
2322
  chatHeaderBtnGroup: "styles_module_chatHeaderBtnGroup",
2322
2323
  conversationListPanel: "styles_module_conversationListPanel",
2323
2324
  createConversationButton: "styles_module_createConversationButton",
2325
+ conversationListContent: "styles_module_conversationListContent",
2324
2326
  conversations: "styles_module_conversations",
2325
2327
  conversationTabs: "styles_module_conversationTabs",
2326
2328
  conversationTabPane: "styles_module_conversationTabPane",
@@ -2617,9 +2619,9 @@ var ConversationListHeader_default = ({ title = true, avatar = true, newConversa
2617
2619
  ] });
2618
2620
  };
2619
2621
  var ConversationListPanel = ({ header }) => {
2620
- return /* @__PURE__ */ jsxRuntime.jsxs(antd.Flex, { vertical: true, className: classNames2__default.default("height-full", "zero-chat-conversations", styles_module_default2.conversationListPanel), children: [
2622
+ return /* @__PURE__ */ jsxRuntime.jsxs(antd.Flex, { vertical: true, className: classNames2__default.default("zero-chat-conversations", styles_module_default2.conversationListPanel), children: [
2621
2623
  /* @__PURE__ */ jsxRuntime.jsx(common.RenderWrapper, { control: header, DefaultComponent: ConversationListHeader_default }),
2622
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "full-scroll", children: /* @__PURE__ */ jsxRuntime.jsx(ConversationList_default, {}) })
2624
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles_module_default2.conversationListContent, children: /* @__PURE__ */ jsxRuntime.jsx(ConversationList_default, {}) })
2623
2625
  ] });
2624
2626
  };
2625
2627
  var ConversationListPanel_default = ConversationListPanel;
@@ -6077,7 +6079,8 @@ var ChatSender_default2 = React10.forwardRef(
6077
6079
  skillsBtn = false,
6078
6080
  knowledgeBtn = false,
6079
6081
  modelSelect = false,
6080
- commandConfig = {}
6082
+ commandConfig,
6083
+ uploadConfig
6081
6084
  }, ref) => {
6082
6085
  const chatStore = useChatStore();
6083
6086
  const configState = valtio.useSnapshot(chatStore.config);
@@ -6124,7 +6127,7 @@ var ChatSender_default2 = React10.forwardRef(
6124
6127
  onFocus: chatStore.config.hooks?.onSenderFocus,
6125
6128
  fileUpload: {
6126
6129
  request: fileUploadRequest,
6127
- config: agentState.agentInfo.config?.options?.fileUpload
6130
+ config: uploadConfig || agentState.agentInfo.config?.options?.fileUpload
6128
6131
  },
6129
6132
  sendBtnProps: common.isFunction(sendBtnProps) ? sendBtnProps() : {},
6130
6133
  extraFooterBelow: /* @__PURE__ */ jsxRuntime.jsx(common.RenderWrapper, { control: footerBelow }),