@zero-library/chat-agent 2.2.10 → 2.2.12
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 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +12 -8
- package/dist/index.d.ts +12 -8
- package/dist/index.esm.js +5 -6
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -852,8 +852,8 @@ function createChatStore() {
|
|
|
852
852
|
msgContent = message2;
|
|
853
853
|
msgFiles = files;
|
|
854
854
|
} else {
|
|
855
|
-
if (references?.type === 1 && references?.content?.
|
|
856
|
-
msgContent = references.content.
|
|
855
|
+
if (references?.type === 1 && references?.content?.msgContent) {
|
|
856
|
+
msgContent = references.content.msgContent + "\n";
|
|
857
857
|
}
|
|
858
858
|
msgContent = msgContent + conversation.messages[conversationId].content;
|
|
859
859
|
msgFiles = conversation.messages[conversationId].files;
|
|
@@ -1796,7 +1796,7 @@ var ChatSender_default = react.forwardRef(
|
|
|
1796
1796
|
}, ref) => {
|
|
1797
1797
|
const senderRef = react.useRef(null);
|
|
1798
1798
|
const { inputValue, setInputValue } = common.useSyncInput(content || "", onContentChange);
|
|
1799
|
-
const attachmentsNode = (fileUpload?.config?.length ?? 0 > 0
|
|
1799
|
+
const attachmentsNode = (fileUpload?.config?.length ?? 0) > 0 && /* @__PURE__ */ jsxRuntime.jsx(antd.Badge, { dot: !!fileList?.length && !headerOpen, children: /* @__PURE__ */ jsxRuntime.jsx(antd.Button, { type: "text", icon: /* @__PURE__ */ jsxRuntime.jsx(icons.PaperClipOutlined, {}), onClick: () => onHeaderOpenChange(!headerOpen) }) });
|
|
1800
1800
|
const attachmentsRef = react.useRef();
|
|
1801
1801
|
const senderHeader = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1802
1802
|
/* @__PURE__ */ jsxRuntime.jsx(x.Sender.Header, { title: "\u9009\u62E9\u6587\u4EF6", open: headerOpen, onOpenChange: onHeaderOpenChange, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2129,7 +2129,7 @@ var layouts_default = react.forwardRef(({ theme, params, userInfo, hooks, layout
|
|
|
2129
2129
|
/* @__PURE__ */ jsxRuntime.jsx(antd.Splitter.Panel, { collapsible: false, min: 600, size: sizes[0], children: hasPreView && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2130
2130
|
configState.preview.file.fileUrl && /* @__PURE__ */ jsxRuntime.jsxs(antd.Flex, { vertical: true, className: "height-full", children: [
|
|
2131
2131
|
/* @__PURE__ */ jsxRuntime.jsxs(antd.Flex, { justify: "space-between", align: "center", gap: 16, className: styles_module_default4.nsPreviewHeader, children: [
|
|
2132
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles_module_default4.nsPreviewHeaderTitle, children: configState.preview.file.fileName }),
|
|
2132
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames9__default.default(styles_module_default4.nsPreviewHeaderTitle, "text-ellipsis"), title: configState.preview.file.fileName, children: configState.preview.file.fileName }),
|
|
2133
2133
|
/* @__PURE__ */ jsxRuntime.jsxs(antd.Flex, { gap: 8, justify: "center", align: "center", children: [
|
|
2134
2134
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2135
2135
|
antd.Button,
|
|
@@ -2161,8 +2161,7 @@ var layouts_default = react.forwardRef(({ theme, params, userInfo, hooks, layout
|
|
|
2161
2161
|
chatStore.setReferences({
|
|
2162
2162
|
type: 2,
|
|
2163
2163
|
content: {
|
|
2164
|
-
name: text
|
|
2165
|
-
markdown: text
|
|
2164
|
+
name: text
|
|
2166
2165
|
},
|
|
2167
2166
|
params: {
|
|
2168
2167
|
citation: text
|