@zero-library/chat-copilot 3.1.1 → 3.1.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 +19 -14
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +57 -47
- package/dist/index.css.map +1 -1
- package/dist/index.esm.js +19 -14
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -3776,38 +3776,43 @@ var FilesNode = React7__default.default.memo(({ item }) => {
|
|
|
3776
3776
|
}, [item.files]);
|
|
3777
3777
|
return /* @__PURE__ */ jsxRuntime.jsx(xV2.FileCard.List, { items: fileItems });
|
|
3778
3778
|
});
|
|
3779
|
+
|
|
3780
|
+
// src/components/CustomComponents/MessageNode/style.module.less
|
|
3781
|
+
var style_module_default2 = {
|
|
3782
|
+
runStartedNode: "style_module_runStartedNode"};
|
|
3779
3783
|
var QuoteMsgNode = React7__default.default.memo(({ quoteMsg, role }) => {
|
|
3780
3784
|
if (!quoteMsg || !quoteMsg.messageContent) return null;
|
|
3781
3785
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3782
3786
|
xV2.Bubble,
|
|
3783
3787
|
{
|
|
3788
|
+
className: style_module_default2.quoteMsgNode,
|
|
3784
3789
|
placement: role.placement,
|
|
3785
3790
|
variant: "borderless",
|
|
3786
|
-
content: /* @__PURE__ */ jsxRuntime.jsx(antd.Flex, { vertical: true, gap: 8, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
/* @__PURE__ */ jsxRuntime.jsx(antd.Flex, { flex: 1, className: "text-ellipsis-2", style: {
|
|
3791
|
+
content: /* @__PURE__ */ jsxRuntime.jsx(antd.Flex, { vertical: true, gap: 8, children: /* @__PURE__ */ jsxRuntime.jsx(antd.Tooltip, { arrow: false, title: /* @__PURE__ */ jsxRuntime.jsx(XMarkdown_default, { content: quoteMsg.messageContent }), getPopupContainer: (node) => node, children: /* @__PURE__ */ jsxRuntime.jsxs(antd.Flex, { children: [
|
|
3792
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "\u3010\u5F15\u7528\u6D88\u606F\u3011\uFF1A" }),
|
|
3793
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3794
|
+
antd.Flex,
|
|
3795
|
+
{
|
|
3796
|
+
flex: 1,
|
|
3797
|
+
className: "text-ellipsis-2",
|
|
3798
|
+
style: {
|
|
3795
3799
|
color: "#666",
|
|
3796
3800
|
background: "rgba(0,0,0,0.04)",
|
|
3797
3801
|
padding: "2px 8px",
|
|
3798
3802
|
borderRadius: "4px",
|
|
3799
3803
|
fontSize: "12px",
|
|
3800
3804
|
cursor: "pointer"
|
|
3801
|
-
},
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
+
},
|
|
3806
|
+
children: quoteMsg.messageContent
|
|
3807
|
+
}
|
|
3808
|
+
)
|
|
3809
|
+
] }) }) })
|
|
3805
3810
|
}
|
|
3806
3811
|
);
|
|
3807
3812
|
});
|
|
3808
3813
|
var RunStartedNode = React7__default.default.memo(({ loading }) => {
|
|
3809
3814
|
if (!loading) return null;
|
|
3810
|
-
return /* @__PURE__ */ jsxRuntime.jsx(antd.Flex, { gap: 8, align: "center",
|
|
3815
|
+
return /* @__PURE__ */ jsxRuntime.jsx(antd.Flex, { gap: 8, align: "center", className: style_module_default2.runStartedNode, children: /* @__PURE__ */ jsxRuntime.jsx(icons.LoadingOutlined, { style: { color: "#1677ff" } }) });
|
|
3811
3816
|
});
|
|
3812
3817
|
function QuestionSummary({ content }) {
|
|
3813
3818
|
const answer = content.replace(/^Question:\s*/, "").trim() || "\u5DF2\u56DE\u7B54";
|