@zero-library/chat-agent 2.2.10 → 2.2.11

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.esm.js CHANGED
@@ -1788,7 +1788,7 @@ var ChatSender_default = forwardRef(
1788
1788
  }, ref) => {
1789
1789
  const senderRef = useRef(null);
1790
1790
  const { inputValue, setInputValue } = useSyncInput(content || "", onContentChange);
1791
- const attachmentsNode = (fileUpload?.config?.length ?? 0 > 0) && /* @__PURE__ */ jsx(Badge, { dot: !!fileList?.length && !headerOpen, children: /* @__PURE__ */ jsx(Button, { type: "text", icon: /* @__PURE__ */ jsx(PaperClipOutlined, {}), onClick: () => onHeaderOpenChange(!headerOpen) }) });
1791
+ const attachmentsNode = (fileUpload?.config?.length ?? 0) > 0 && /* @__PURE__ */ jsx(Badge, { dot: !!fileList?.length && !headerOpen, children: /* @__PURE__ */ jsx(Button, { type: "text", icon: /* @__PURE__ */ jsx(PaperClipOutlined, {}), onClick: () => onHeaderOpenChange(!headerOpen) }) });
1792
1792
  const attachmentsRef = useRef();
1793
1793
  const senderHeader = /* @__PURE__ */ jsxs(Fragment, { children: [
1794
1794
  /* @__PURE__ */ jsx(Sender.Header, { title: "\u9009\u62E9\u6587\u4EF6", open: headerOpen, onOpenChange: onHeaderOpenChange, children: /* @__PURE__ */ jsx(