@glodon-aiot/agent-cli-ui 3.3.0-beta.13 → 3.3.0-beta.14
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/es/AgentClientUI.mjs +17 -17
- package/dist/es/{FileItem → Dialog/AgentChat/HistoryItem/FileItem}/index.mjs +34 -40
- package/dist/es/Dialog/{SearchReference → AgentChat/HistoryItem/SearchReference}/index.mjs +7 -7
- package/dist/es/Dialog/{SessionAction → AgentChat/HistoryItem/SessionAction}/index.mjs +11 -12
- package/dist/es/Dialog/{SessionRefer → AgentChat/HistoryItem/SessionRefer}/ReferItem/index.mjs +19 -19
- package/dist/es/Dialog/{SessionRefer → AgentChat/HistoryItem/SessionRefer}/index.mjs +3 -3
- package/dist/es/Dialog/{SessionRelated → AgentChat/HistoryItem/SessionRelated}/index.mjs +3 -3
- package/dist/es/Dialog/{HistoryItem → AgentChat/HistoryItem}/index.mjs +56 -62
- package/dist/es/Dialog/{PromptSetting → AgentChat/PromptSetting}/index.mjs +2 -2
- package/dist/es/Dialog/{ConnectToNetwork → AgentChat/Tools/ConnectToNetwork}/index.mjs +1 -1
- package/dist/es/Dialog/{PromptManager → AgentChat/Tools/PromptManager}/PromptList/PromptListItem.mjs +2 -2
- package/dist/es/Dialog/{PromptManager → AgentChat/Tools/PromptManager}/index.mjs +4 -4
- package/dist/es/Dialog/{SessionListDrawer → AgentChat/Tools/SessionListDrawer}/HistorySessionList/SessionItem.mjs +24 -30
- package/dist/es/Dialog/{SessionListDrawer → AgentChat/Tools/SessionListDrawer}/HistorySessionList/index.mjs +1 -1
- package/dist/es/Dialog/{SessionListDrawer → AgentChat/Tools/SessionListDrawer}/index.mjs +1 -1
- package/dist/es/Dialog/AgentChat/Tools/UploadKnowledgeFiles/FileCard/index.mjs +128 -0
- package/dist/es/Dialog/{UploadKnowledgeFiles → AgentChat/Tools/UploadKnowledgeFiles}/index.mjs +5 -5
- package/dist/es/Dialog/AgentChat/index.mjs +24 -24
- package/dist/es/Dialog/SessionList/index.mjs +1 -1
- package/dist/es/Dialog/index.mjs +109 -118
- package/dist/es/Footer/FooterWarning.mjs +3 -3
- package/dist/es/Footer/index.mjs +3 -3
- package/dist/es/QuillEditor/index.mjs +11 -11
- package/dist/es/components/Copy/index.mjs +1 -1
- package/dist/es/{Dialog → components}/FilePreview/index.mjs +16 -16
- package/dist/es/{Dialog → components}/KnowledgeList/KnowledgeSelect/index.mjs +1 -1
- package/dist/es/{Dialog → components}/KnowledgeList/index.mjs +21 -23
- package/dist/es/{Dialog → components}/Recommend/RecommendItem.mjs +31 -37
- package/dist/es/{Dialog → components}/Recommend/index.mjs +0 -1
- package/dist/es/constant.mjs +16 -8
- package/dist/es/index.mjs +26 -33
- package/dist/es/src/style10.css +1 -1
- package/dist/es/src/style12.css +1 -1
- package/dist/es/src/style13.css +1 -1
- package/dist/es/src/style14.css +1 -1
- package/dist/es/src/style15.css +1 -1
- package/dist/es/src/style17.css +1 -1
- package/dist/es/src/style18.css +1 -1
- package/dist/es/src/style20.css +1 -1
- package/dist/es/src/style21.css +1 -1
- package/dist/es/src/style22.css +1 -1
- package/dist/es/src/style23.css +1 -0
- package/dist/es/src/style24.css +1 -1
- package/dist/es/src/style25.css +1 -1
- package/dist/es/src/style26.css +1 -1
- package/dist/es/src/style27.css +1 -1
- package/dist/es/src/style28.css +1 -1
- package/dist/es/src/style29.css +1 -1
- package/dist/es/src/style30.css +1 -1
- package/dist/es/src/style31.css +1 -1
- package/dist/es/src/style4.css +1 -1
- package/dist/es/src/style6.css +1 -1
- package/dist/es/src/style7.css +1 -1
- package/dist/es/src/style8.css +1 -1
- package/dist/es/src/style9.css +1 -1
- package/dist/lib/index.css +1 -1
- package/dist/lib/index.js +5 -5
- package/dist/src/ConnectToNetwork_bac/index.d.ts +13 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/FileItem/index.d.ts +11 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/InputProgress/index.d.ts +7 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/SearchReference/index.d.ts +10 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/SessionAction/index.d.ts +13 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/SessionRefer/ReferItem/index.d.ts +9 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/SessionRefer/index.d.ts +8 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/SessionRelated/index.d.ts +9 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/index.d.ts +18 -0
- package/dist/src/Dialog/AgentChat/PromptSetting/index.d.ts +15 -0
- package/dist/src/Dialog/AgentChat/Tools/ConnectToNetwork/index.d.ts +14 -0
- package/dist/src/Dialog/AgentChat/Tools/PromptManager/PromptList/EditPromptModal/index.d.ts +11 -0
- package/dist/src/Dialog/AgentChat/Tools/PromptManager/PromptList/PrivatePromptList.d.ts +12 -0
- package/dist/src/Dialog/AgentChat/Tools/PromptManager/PromptList/PromptListItem.d.ts +13 -0
- package/dist/src/Dialog/AgentChat/Tools/PromptManager/PromptList/PublicPromptList.d.ts +12 -0
- package/dist/src/Dialog/AgentChat/Tools/PromptManager/index.d.ts +13 -0
- package/dist/src/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/NameEditPanel.d.ts +9 -0
- package/dist/src/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/SessionItem.d.ts +16 -0
- package/dist/src/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/index.d.ts +9 -0
- package/dist/src/Dialog/AgentChat/Tools/SessionListDrawer/index.d.ts +9 -0
- package/dist/src/Dialog/AgentChat/Tools/UploadKnowledgeFiles/ClearModal/index.d.ts +7 -0
- package/dist/src/Dialog/AgentChat/Tools/UploadKnowledgeFiles/FileCard/index.d.ts +22 -0
- package/dist/src/Dialog/AgentChat/Tools/UploadKnowledgeFiles/index.d.ts +22 -0
- package/dist/src/Dialog/AgentChat/index.d.ts +1 -1
- package/dist/src/Dialog/FileItem/index.d.ts +11 -0
- package/dist/src/Dialog/HistoryItem/FileItem/index.d.ts +11 -0
- package/dist/src/Dialog/HistoryItem/InputProgress/index.d.ts +7 -0
- package/dist/src/Dialog/HistoryItem/ReferCollapse/index.d.ts +8 -0
- package/dist/src/Dialog/HistoryItem/ReferCollapsea/index.d.ts +8 -0
- package/dist/src/Dialog/HistoryItem/SearchReference/index.d.ts +10 -0
- package/dist/src/Dialog/HistoryItem/SessionAction/index.d.ts +13 -0
- package/dist/src/Dialog/HistoryItem/SessionRefer/ReferItem/index.d.ts +9 -0
- package/dist/src/Dialog/HistoryItem/SessionRefer/index.d.ts +8 -0
- package/dist/src/Dialog/HistoryItem/SessionRelated/index.d.ts +9 -0
- package/dist/src/Dialog/InputProgress/index.d.ts +7 -0
- package/dist/src/Dialog/SessionList/index.d.ts +1 -1
- package/dist/src/Dialog/Tools/ConnectToNetwork/index.d.ts +14 -0
- package/dist/src/Dialog/Tools/PromptManager/PromptList/EditPromptModal/index.d.ts +11 -0
- package/dist/src/Dialog/Tools/PromptManager/PromptList/PrivatePromptList.d.ts +12 -0
- package/dist/src/Dialog/Tools/PromptManager/PromptList/PromptListItem.d.ts +13 -0
- package/dist/src/Dialog/Tools/PromptManager/PromptList/PublicPromptList.d.ts +12 -0
- package/dist/src/Dialog/Tools/PromptManager/index.d.ts +13 -0
- package/dist/src/Dialog/Tools/SessionListDrawer/HistorySessionList/NameEditPanel.d.ts +9 -0
- package/dist/src/Dialog/Tools/SessionListDrawer/HistorySessionList/SessionItem.d.ts +16 -0
- package/dist/src/Dialog/Tools/SessionListDrawer/HistorySessionList/index.d.ts +9 -0
- package/dist/src/Dialog/Tools/SessionListDrawer/index.d.ts +9 -0
- package/dist/src/Dialog/Tools/UploadKnowledgeFiles/ClearModal/index.d.ts +7 -0
- package/dist/src/Dialog/Tools/UploadKnowledgeFiles/FileCard/index.d.ts +22 -0
- package/dist/src/Dialog/Tools/UploadKnowledgeFiles/index.d.ts +22 -0
- package/dist/src/Dialog/UploadFilesa/ClearModal/index.d.ts +7 -0
- package/dist/src/Dialog/UploadFilesa/index.d.ts +21 -0
- package/dist/src/FileCard-bac/index.d.ts +21 -0
- package/dist/src/Footer/FooterWarning.d.ts +2 -2
- package/dist/src/Greeting-bac/index.d.ts +7 -0
- package/dist/src/components/FilePreview/index.d.ts +20 -0
- package/dist/src/components/Greeting/index.d.ts +7 -0
- package/dist/src/components/Iconfont/font_4108228_z72fskklg2.d.ts +0 -0
- package/dist/src/components/Iconfont/font_4439177_7rytwlvbmjj.d.ts +0 -0
- package/dist/src/components/Iconfont/index.d.ts +2 -0
- package/dist/src/components/KnowledgeDoc/index.d.ts +9 -0
- package/dist/src/components/KnowledgeList/KnowledgeSelect/index.d.ts +12 -0
- package/dist/src/components/KnowledgeList/index.d.ts +10 -0
- package/dist/src/components/Recommend/RecommendItem.d.ts +12 -0
- package/dist/src/components/Recommend/index.d.ts +14 -0
- package/dist/src/constant.d.ts +7 -1
- package/dist/src/index.d.ts +3 -3
- package/dist/src/types.d.ts +4 -4
- package/dist/src/utils/index.d.ts +0 -6
- package/package.json +3 -3
- package/dist/es/Dialog/FileCard/index.mjs +0 -134
- package/dist/es/Dialog/HistoryContent/index.mjs +0 -13
- package/dist/es/Dialog/KnowledgeDoc/index.mjs +0 -45
- package/dist/es/Dialog/ReferCollapse/index.mjs +0 -64
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/doc-icons/doc.svg.mjs +0 -4
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/doc-icons/docx.svg.mjs +0 -4
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/doc-icons/pdf.svg.mjs +0 -4
- package/dist/es/FileCard/doc-icons/doc.svg.mjs +0 -4
- package/dist/es/FileCard/doc-icons/docx.svg.mjs +0 -4
- package/dist/es/FileCard/doc-icons/pdf.svg.mjs +0 -4
- package/dist/es/src/style32.css +0 -1
- package/dist/es/src/style33.css +0 -1
- /package/dist/es/{InputProgress → Dialog/AgentChat/HistoryItem/InputProgress}/index.mjs +0 -0
- /package/dist/es/Dialog/{PromptManager → AgentChat/Tools/PromptManager}/PromptList/PublicPromptList.mjs +0 -0
- /package/dist/es/Dialog/{PromptManager → AgentChat/Tools/PromptManager}/PromptList/access/empty.svg.mjs +0 -0
- /package/dist/es/Dialog/{SessionListDrawer → AgentChat/Tools/SessionListDrawer}/HistorySessionList/NameEditPanel.mjs +0 -0
- /package/dist/es/Dialog/{UploadKnowledgeFiles → AgentChat/Tools/UploadKnowledgeFiles}/ClearModal/index.mjs +0 -0
- /package/dist/es/{Dialog/FileCard → assets}/doc-icons/doc.svg.mjs +0 -0
- /package/dist/es/{Dialog/FileCard → assets}/doc-icons/docx.svg.mjs +0 -0
- /package/dist/es/{Dialog/FileCard → assets}/doc-icons/pdf.svg.mjs +0 -0
- /package/dist/es/{Dialog → components}/Greeting/index.mjs +0 -0
- /package/dist/es/{Iconfont → components/Iconfont}/index.mjs +0 -0
- /package/dist/es/{Dialog → components}/Recommend/tip.svg.mjs +0 -0
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useContext as H, useState as
|
|
1
|
+
import { jsxs as u, jsx as A } from "react/jsx-runtime";
|
|
2
|
+
import { useContext as H, useState as r, useEffect as v } from "react";
|
|
3
3
|
/* empty css */import K from "../../context.mjs";
|
|
4
4
|
import { Space as q } from "antd";
|
|
5
5
|
import z from "./KnowledgeSelect/index.mjs";
|
|
6
|
-
const
|
|
7
|
-
var j,
|
|
6
|
+
const M = (y) => {
|
|
7
|
+
var j, x;
|
|
8
8
|
const {
|
|
9
9
|
currentSession: t,
|
|
10
10
|
application: o,
|
|
11
|
-
setCurrentSession: B,
|
|
12
|
-
reload: D,
|
|
13
11
|
setCheckKnowledges: g
|
|
14
12
|
} = y, {
|
|
15
|
-
mode:
|
|
13
|
+
mode: h,
|
|
16
14
|
transform: w,
|
|
17
15
|
features: n
|
|
18
|
-
} = H(K), [d, k] =
|
|
16
|
+
} = H(K), [d, k] = r([]), [f, p] = r(typeof (n == null ? void 0 : n.knowledges) == "object" ? ((j = n.knowledges.default) == null ? void 0 : j.map((e) => e.id)) || [] : []), [E, c] = r(0), [C, b] = r(!1);
|
|
19
17
|
v(() => {
|
|
20
18
|
if (!(o != null && o.id))
|
|
21
19
|
return;
|
|
@@ -26,29 +24,29 @@ const P = (y) => {
|
|
|
26
24
|
k(s);
|
|
27
25
|
const l = typeof (n == null ? void 0 : n.knowledges) == "object" && n.knowledges.default || s;
|
|
28
26
|
if (!t) {
|
|
29
|
-
p(l.map((
|
|
27
|
+
p(l.map((i) => i.id)), c(l.length), g == null || g(l);
|
|
30
28
|
return;
|
|
31
29
|
}
|
|
32
30
|
const a = () => {
|
|
33
|
-
const
|
|
34
|
-
c(
|
|
35
|
-
const
|
|
36
|
-
p(
|
|
31
|
+
const i = t.knowledges || l;
|
|
32
|
+
c(i.length);
|
|
33
|
+
const N = i.map((S) => S.id);
|
|
34
|
+
p(N);
|
|
37
35
|
};
|
|
38
36
|
return a(), t.addEventListener("data:updated", a), () => {
|
|
39
37
|
t == null || t.removeEventListener("data:updated", a);
|
|
40
38
|
};
|
|
41
39
|
}, [o, t]), v(() => {
|
|
42
40
|
var m;
|
|
43
|
-
if (!
|
|
41
|
+
if (!C || (b(!1), !(o != null && o.id)))
|
|
44
42
|
return;
|
|
45
43
|
const e = [];
|
|
46
|
-
|
|
44
|
+
f == null || f.map((s) => {
|
|
47
45
|
const l = d == null ? void 0 : d.find((a) => a.id === s);
|
|
48
46
|
e.push(l);
|
|
49
47
|
}), (m = t == null ? void 0 : t.data) != null && m.id && t.setKnowledges(e);
|
|
50
|
-
}, [
|
|
51
|
-
const
|
|
48
|
+
}, [C]);
|
|
49
|
+
const F = (e) => {
|
|
52
50
|
b(!0), p(e);
|
|
53
51
|
const m = [];
|
|
54
52
|
e == null || e.map((s) => {
|
|
@@ -56,20 +54,20 @@ const P = (y) => {
|
|
|
56
54
|
m.push(l);
|
|
57
55
|
}), g == null || g(m), c(e.length);
|
|
58
56
|
};
|
|
59
|
-
return /* @__PURE__ */
|
|
57
|
+
return /* @__PURE__ */ u("div", {
|
|
60
58
|
className: "chat-header",
|
|
61
|
-
children: [/* @__PURE__ */
|
|
59
|
+
children: [/* @__PURE__ */ u(q, {
|
|
62
60
|
className: "header-title",
|
|
63
|
-
children: [
|
|
61
|
+
children: [h === "inlay" && ((x = t == null ? void 0 : t.data) == null ? void 0 : x.name), h === "float" && (o == null ? void 0 : o.name)]
|
|
64
62
|
}), (w == null ? void 0 : w.knowledges) && d.length !== 0 && /* @__PURE__ */ A(z, {
|
|
65
63
|
disabled: typeof (n == null ? void 0 : n.knowledges) == "object" && (n == null ? void 0 : n.knowledges.diabled) || !1,
|
|
66
|
-
checkedValues:
|
|
64
|
+
checkedValues: f,
|
|
67
65
|
currKnowledgeList: d,
|
|
68
66
|
selectCount: E,
|
|
69
|
-
onSelectChange:
|
|
67
|
+
onSelectChange: F
|
|
70
68
|
})]
|
|
71
69
|
});
|
|
72
70
|
};
|
|
73
71
|
export {
|
|
74
|
-
|
|
72
|
+
M as default
|
|
75
73
|
};
|
|
@@ -1,37 +1,31 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as d, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useState as h, useContext as v, useEffect as y } from "react";
|
|
3
3
|
/* empty css */import { Space as N, message as a, Typography as p } from "antd";
|
|
4
|
-
import q from "../FileCard/doc-icons/pdf.svg.mjs";
|
|
5
|
-
import x from "../FileCard/doc-icons/doc.svg.mjs";
|
|
6
|
-
import w from "../FileCard/doc-icons/docx.svg.mjs";
|
|
7
4
|
import r from "classnames";
|
|
8
|
-
import { getFileExtension as
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
pdf: q
|
|
14
|
-
}, T = (f) => {
|
|
15
|
-
var d;
|
|
5
|
+
import { getFileExtension as q } from "../../utils/index.mjs";
|
|
6
|
+
import x from "../../context.mjs";
|
|
7
|
+
import { FILE_ICONS as C } from "../../constant.mjs";
|
|
8
|
+
const j = (f) => {
|
|
9
|
+
var u;
|
|
16
10
|
const {
|
|
17
11
|
item: e,
|
|
18
12
|
isRecommendClearing: g,
|
|
19
|
-
isOnlyQuestion:
|
|
20
|
-
question:
|
|
13
|
+
isOnlyQuestion: i,
|
|
14
|
+
question: o,
|
|
21
15
|
setQuestion: c,
|
|
22
|
-
onItemClick:
|
|
23
|
-
} = f, [
|
|
16
|
+
onItemClick: s
|
|
17
|
+
} = f, [n, m] = h(!1), {
|
|
24
18
|
popupContainer: l
|
|
25
|
-
} = v(
|
|
19
|
+
} = v(x);
|
|
26
20
|
return y(() => {
|
|
27
21
|
e && (!e.icon && !e.file.url && !e.name ? m(!0) : m(!1));
|
|
28
|
-
}, [e]), /* @__PURE__ */
|
|
22
|
+
}, [e]), /* @__PURE__ */ d(N, {
|
|
29
23
|
direction: "vertical",
|
|
30
|
-
size:
|
|
24
|
+
size: i || !i && n ? 0 : 4,
|
|
31
25
|
className: r({
|
|
32
26
|
"question-pannel": !0,
|
|
33
|
-
"question-pannel__active": (
|
|
34
|
-
"multiline-question-pannel": !
|
|
27
|
+
"question-pannel__active": (o == null ? void 0 : o.id) === e.id,
|
|
28
|
+
"multiline-question-pannel": !i && n
|
|
35
29
|
}),
|
|
36
30
|
onClick: () => {
|
|
37
31
|
if (g) {
|
|
@@ -42,22 +36,22 @@ const P = {
|
|
|
42
36
|
});
|
|
43
37
|
return;
|
|
44
38
|
}
|
|
45
|
-
(
|
|
39
|
+
(o == null ? void 0 : o.id) === e.id ? (c(void 0), s == null || s(void 0)) : (c(e), s == null || s(e));
|
|
46
40
|
},
|
|
47
|
-
children: [/* @__PURE__ */
|
|
41
|
+
children: [/* @__PURE__ */ d("div", {
|
|
48
42
|
className: r({
|
|
49
43
|
"question-top": !0,
|
|
50
|
-
"not-have-top":
|
|
44
|
+
"not-have-top": i || !i && n
|
|
51
45
|
}),
|
|
52
|
-
children: [!!(e != null && e.icon) && /* @__PURE__ */
|
|
46
|
+
children: [!!(e != null && e.icon) && /* @__PURE__ */ t("div", {
|
|
53
47
|
className: "question-top-tip",
|
|
54
|
-
children: /* @__PURE__ */
|
|
48
|
+
children: /* @__PURE__ */ t("img", {
|
|
55
49
|
src: e.icon,
|
|
56
50
|
alt: ""
|
|
57
51
|
})
|
|
58
|
-
}), /* @__PURE__ */
|
|
52
|
+
}), /* @__PURE__ */ t("div", {
|
|
59
53
|
className: "question-top-title",
|
|
60
|
-
children: /* @__PURE__ */
|
|
54
|
+
children: /* @__PURE__ */ t(p.Paragraph, {
|
|
61
55
|
style: {
|
|
62
56
|
margin: 0,
|
|
63
57
|
width: "100%"
|
|
@@ -68,28 +62,28 @@ const P = {
|
|
|
68
62
|
},
|
|
69
63
|
children: e.name
|
|
70
64
|
})
|
|
71
|
-
}), /* @__PURE__ */
|
|
65
|
+
}), /* @__PURE__ */ t("div", {
|
|
72
66
|
className: r({
|
|
73
67
|
"question-top-type": !0,
|
|
74
|
-
"question-only-plus-file": !
|
|
68
|
+
"question-only-plus-file": !i && !e.icon && !e.name
|
|
75
69
|
}),
|
|
76
|
-
children: !!((
|
|
70
|
+
children: !!((u = e.file) != null && u.url) && /* @__PURE__ */ t("img", {
|
|
77
71
|
className: "file-icon",
|
|
78
|
-
src:
|
|
72
|
+
src: C[q(e.file.url) || ""]
|
|
79
73
|
})
|
|
80
74
|
})]
|
|
81
|
-
}), /* @__PURE__ */
|
|
75
|
+
}), /* @__PURE__ */ t("div", {
|
|
82
76
|
className: r({
|
|
83
77
|
"question-bottom": !0,
|
|
84
|
-
"multiline-question": !
|
|
78
|
+
"multiline-question": !i && n
|
|
85
79
|
}),
|
|
86
|
-
children: /* @__PURE__ */
|
|
80
|
+
children: /* @__PURE__ */ t(p.Paragraph, {
|
|
87
81
|
style: {
|
|
88
82
|
margin: 0,
|
|
89
83
|
width: "100%"
|
|
90
84
|
},
|
|
91
85
|
ellipsis: {
|
|
92
|
-
rows: !
|
|
86
|
+
rows: !i && n ? 3 : 1,
|
|
93
87
|
tooltip: {
|
|
94
88
|
overlayClassName: "recommend-tooltip-overlay"
|
|
95
89
|
}
|
|
@@ -100,5 +94,5 @@ const P = {
|
|
|
100
94
|
});
|
|
101
95
|
};
|
|
102
96
|
export {
|
|
103
|
-
|
|
97
|
+
j as default
|
|
104
98
|
};
|
package/dist/es/constant.mjs
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import e from "./assets/icon.svg.mjs";
|
|
2
2
|
import t from "./assets/brand.svg.mjs";
|
|
3
|
-
|
|
3
|
+
import o from "./assets/doc-icons/pdf.svg.mjs";
|
|
4
|
+
import r from "./assets/doc-icons/doc.svg.mjs";
|
|
5
|
+
import n from "./assets/doc-icons/docx.svg.mjs";
|
|
6
|
+
const u = {
|
|
4
7
|
triggerButton: {
|
|
5
8
|
visible: !0
|
|
6
9
|
},
|
|
@@ -92,14 +95,19 @@ const s = {
|
|
|
92
95
|
defaultInput: {
|
|
93
96
|
text: ""
|
|
94
97
|
}
|
|
95
|
-
},
|
|
98
|
+
}, c = "https://copilot.glodon.com/api/cvforcepd", f = "https://copilot.glodon.com/portal/_/aecpilot/fe/", m = 1024, d = 1024 * 1024, g = 1024 * 1024 * 1024, h = {
|
|
99
|
+
doc: r,
|
|
100
|
+
docx: n,
|
|
101
|
+
pdf: o
|
|
102
|
+
};
|
|
96
103
|
export {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
104
|
+
h as FILE_ICONS,
|
|
105
|
+
g as GB,
|
|
106
|
+
m as KB,
|
|
107
|
+
d as MB,
|
|
100
108
|
t as brand,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
109
|
+
c as defaultApiUrl,
|
|
110
|
+
f as defaultDovViewerUrl,
|
|
111
|
+
u as defaultUIConfig,
|
|
104
112
|
e as icon
|
|
105
113
|
};
|
package/dist/es/index.mjs
CHANGED
|
@@ -2,24 +2,24 @@ var Q = Object.defineProperty, G = Object.defineProperties;
|
|
|
2
2
|
var K = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var $ = Object.getOwnPropertySymbols;
|
|
4
4
|
var X = Object.prototype.hasOwnProperty, Y = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var w = (
|
|
5
|
+
var w = (l, i, s) => i in l ? Q(l, i, { enumerable: !0, configurable: !0, writable: !0, value: s }) : l[i] = s, o = (l, i) => {
|
|
6
6
|
for (var s in i || (i = {}))
|
|
7
|
-
X.call(i, s) && w(
|
|
7
|
+
X.call(i, s) && w(l, s, i[s]);
|
|
8
8
|
if ($)
|
|
9
9
|
for (var s of $(i))
|
|
10
|
-
Y.call(i, s) && w(
|
|
11
|
-
return
|
|
12
|
-
}, C = (
|
|
13
|
-
var h = (
|
|
10
|
+
Y.call(i, s) && w(l, s, i[s]);
|
|
11
|
+
return l;
|
|
12
|
+
}, C = (l, i) => G(l, K(i));
|
|
13
|
+
var h = (l, i, s) => (w(l, typeof i != "symbol" ? i + "" : i, s), s);
|
|
14
14
|
import { jsx as O, Fragment as Z } from "react/jsx-runtime";
|
|
15
|
-
import
|
|
15
|
+
import g from "lodash/merge";
|
|
16
16
|
import P from "react-dom";
|
|
17
17
|
import q from "./AgentClientUI.mjs";
|
|
18
18
|
import { notification as J } from "antd";
|
|
19
19
|
import ee from "axios";
|
|
20
20
|
import { defaultUIConfig as ie, defaultApiUrl as te, defaultDovViewerUrl as oe } from "./constant.mjs";
|
|
21
21
|
import { ApiUrl as se } from "./types.mjs";
|
|
22
|
-
/* empty css */import {
|
|
22
|
+
/* empty css */import { BotClientApi as re } from "@glodon-aiot/apis";
|
|
23
23
|
import { JWT as ne, isExpired as ae } from "./utils/index.mjs";
|
|
24
24
|
const b = {};
|
|
25
25
|
class we {
|
|
@@ -39,7 +39,7 @@ class we {
|
|
|
39
39
|
h(this, "uiConfig", ie);
|
|
40
40
|
h(this, "errorHandlers", {});
|
|
41
41
|
h(this, "wrapper", document.createElement("div"));
|
|
42
|
-
var _, y,
|
|
42
|
+
var _, y, x, U, S, B, H, z, L, M, V, A, N, E, F, D, T, j, R, W;
|
|
43
43
|
const {
|
|
44
44
|
env: s,
|
|
45
45
|
token: d,
|
|
@@ -56,8 +56,8 @@ class we {
|
|
|
56
56
|
const k = {
|
|
57
57
|
sessionOpen: c === "float",
|
|
58
58
|
sessionList: c === "float"
|
|
59
|
-
}, I = (
|
|
60
|
-
(B = (S = (
|
|
59
|
+
}, I = (x = (y = (_ = e == null ? void 0 : e.botMessageBox) == null ? void 0 : _.footer) == null ? void 0 : y.items) == null ? void 0 : x.find((f) => f.componentName === "AnswerAgain");
|
|
60
|
+
(B = (S = (U = e == null ? void 0 : e.botMessageBox) == null ? void 0 : U.footer) == null ? void 0 : S.items) == null || B.find((f) => f.componentName === "Copy");
|
|
61
61
|
const u = {
|
|
62
62
|
sessionList: e == null ? void 0 : e.sessionList,
|
|
63
63
|
sessionOpen: e == null ? void 0 : e.newSession,
|
|
@@ -66,11 +66,11 @@ class we {
|
|
|
66
66
|
userEdit: (z = e == null ? void 0 : e.userMessageBox) == null ? void 0 : z.editAgain,
|
|
67
67
|
userPrompt: e == null ? void 0 : e.fileUpload,
|
|
68
68
|
prompt: e == null ? void 0 : e.prompts,
|
|
69
|
-
relate: (
|
|
69
|
+
relate: (L = e == null ? void 0 : e.botMessageBox) == null ? void 0 : L.relatedQuesions,
|
|
70
70
|
again: !(I && I.visible === !1),
|
|
71
71
|
reference: {
|
|
72
|
-
iconVisible: (
|
|
73
|
-
referenceFirst: (
|
|
72
|
+
iconVisible: (V = (M = e == null ? void 0 : e.botMessageBox) == null ? void 0 : M.reference) == null ? void 0 : V.file,
|
|
73
|
+
referenceFirst: (A = e == null ? void 0 : e.botMessageBox) == null ? void 0 : A.referenceFirst,
|
|
74
74
|
isExpand: (E = (N = e == null ? void 0 : e.botMessageBox) == null ? void 0 : N.reference) == null ? void 0 : E.itemExpanded
|
|
75
75
|
},
|
|
76
76
|
searchReference: (F = e == null ? void 0 : e.botMessageBox) == null ? void 0 : F.searchReference,
|
|
@@ -78,7 +78,6 @@ class we {
|
|
|
78
78
|
metadata: e == null ? void 0 : e.metadata,
|
|
79
79
|
greet: e == null ? void 0 : e.greeting,
|
|
80
80
|
imageUpload: e == null ? void 0 : e.imageUpload,
|
|
81
|
-
// connectNetwork: features?.connectNetwork ? true : false,
|
|
82
81
|
promptVariables: (e == null ? void 0 : e.promptVariables) === void 0 ? (D = this.uiConfig.transform) == null ? void 0 : D.promptVariables : (e == null ? void 0 : e.promptVariables) === !0 || typeof (e == null ? void 0 : e.promptVariables) == "object" && ((T = e == null ? void 0 : e.promptVariables) == null ? void 0 : T.visible) !== !1 ? (j = this.uiConfig.transform) == null ? void 0 : j.promptVariables : !1,
|
|
83
82
|
connectNetwork: (e == null ? void 0 : e.connectNetwork) === void 0 ? (R = this.uiConfig.transform) == null ? void 0 : R.connectNetwork : (e == null ? void 0 : e.connectNetwork) === !0 || (typeof (e == null ? void 0 : e.connectNetwork) == "object" && typeof (e == null ? void 0 : e.connectNetwork.visible) == "boolean" ? e == null ? void 0 : e.connectNetwork.visible : (W = this.uiConfig.transform) == null ? void 0 : W.connectNetwork)
|
|
84
83
|
}, v = {
|
|
@@ -88,19 +87,19 @@ class we {
|
|
|
88
87
|
u[f] === void 0 && delete u[f];
|
|
89
88
|
}), c === "inlay") {
|
|
90
89
|
const f = {
|
|
91
|
-
triggerButton:
|
|
90
|
+
triggerButton: g({
|
|
92
91
|
visible: !1
|
|
93
92
|
}, m),
|
|
94
93
|
open: !0,
|
|
95
94
|
resizable: !1,
|
|
96
|
-
size:
|
|
95
|
+
size: g({
|
|
97
96
|
width: "100%",
|
|
98
97
|
height: "100%",
|
|
99
98
|
maxWidth: "100%",
|
|
100
99
|
maxHeight: "100%",
|
|
101
100
|
minWidth: "100%"
|
|
102
101
|
}, a),
|
|
103
|
-
theme:
|
|
102
|
+
theme: g(this.uiConfig.theme, b),
|
|
104
103
|
history: !0
|
|
105
104
|
};
|
|
106
105
|
this.uiConfig = C(o(o(o(o({}, this.uiConfig), i), f), v), {
|
|
@@ -108,9 +107,9 @@ class we {
|
|
|
108
107
|
}), this.wrapper = this.uiConfig.getContainer();
|
|
109
108
|
} else {
|
|
110
109
|
const f = {
|
|
111
|
-
triggerButton:
|
|
112
|
-
size:
|
|
113
|
-
theme:
|
|
110
|
+
triggerButton: g(this.uiConfig.triggerButton, m),
|
|
111
|
+
size: g(this.uiConfig.size, o({}, a)),
|
|
112
|
+
theme: g(this.uiConfig.theme, b)
|
|
114
113
|
};
|
|
115
114
|
this.uiConfig = C(o(o(o(o(o({}, this.uiConfig), i), f), v), u), {
|
|
116
115
|
transform: o(o(o(o({}, this.uiConfig.transform), k), i.transform), u)
|
|
@@ -130,27 +129,27 @@ class we {
|
|
|
130
129
|
set mode(i) {
|
|
131
130
|
if (i === "inlay") {
|
|
132
131
|
const s = {
|
|
133
|
-
triggerButton:
|
|
132
|
+
triggerButton: g({
|
|
134
133
|
visible: !1
|
|
135
134
|
}, this.uiConfig.triggerButton),
|
|
136
135
|
open: !0,
|
|
137
136
|
resizable: !1,
|
|
138
|
-
size:
|
|
137
|
+
size: g({
|
|
139
138
|
width: "100%",
|
|
140
139
|
height: "100%",
|
|
141
140
|
maxWidth: "100%",
|
|
142
141
|
maxHeight: "100%",
|
|
143
142
|
minWidth: "100%"
|
|
144
143
|
}, this.uiConfig.size),
|
|
145
|
-
theme:
|
|
144
|
+
theme: g(this.uiConfig.theme, b),
|
|
146
145
|
history: !0
|
|
147
146
|
};
|
|
148
147
|
this.uiConfig = o(o({}, this.uiConfig), s), this.wrapper = this.uiConfig.getContainer();
|
|
149
148
|
} else {
|
|
150
149
|
const s = {
|
|
151
|
-
triggerButton:
|
|
152
|
-
size:
|
|
153
|
-
theme:
|
|
150
|
+
triggerButton: g(this.uiConfig.triggerButton, this.uiConfig.triggerButton),
|
|
151
|
+
size: g(this.uiConfig.size, o({}, this.uiConfig.size)),
|
|
152
|
+
theme: g(this.uiConfig.theme, b)
|
|
154
153
|
};
|
|
155
154
|
this.uiConfig = o(o({}, this.uiConfig), s), this._mode === "inlay" && this.wrapper.remove(), this.uiConfig.getContainer().append(this.wrapper);
|
|
156
155
|
}
|
|
@@ -263,12 +262,6 @@ class we {
|
|
|
263
262
|
mcp: this.uiConfig.mcp,
|
|
264
263
|
transform: C(o({}, this.uiConfig.transform), {
|
|
265
264
|
knowledges: ((s = this.uiConfig.features) == null ? void 0 : s.knowledges) === !0 || typeof ((d = this.uiConfig.features) == null ? void 0 : d.knowledges) == "object" && ((m = (c = this.uiConfig.features) == null ? void 0 : c.knowledges) == null ? void 0 : m.visible) !== !1
|
|
266
|
-
// promptVariables:
|
|
267
|
-
// this.uiConfig.features?.promptVariables === true ||
|
|
268
|
-
// (typeof this.uiConfig.features?.promptVariables === 'object' &&
|
|
269
|
-
// this.uiConfig.features?.promptVariables?.visible !== false)
|
|
270
|
-
// ? true
|
|
271
|
-
// : false,
|
|
272
265
|
}),
|
|
273
266
|
features: this.uiConfig.features,
|
|
274
267
|
disabled: this._inputDisabled,
|
package/dist/es/src/style10.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.inlay .questions,.float .questions{width:100%}.questions .question-tip{display:flex;align-items:center;margin-bottom:10px;height:24px;color:#84868c}.questions .question-tip img{width:24px;height:24px}.questions .question-row{max-height:260px;overflow-y:auto}.questions .question-pannel{background:white;padding:12px;border-radius:8px;width:100%;cursor:pointer;border:1px solid transparent}.questions .question-pannel .question-top{font-size:16px;height:32px;color:#070c14;font-weight:700;display:flex;width:100%}.questions .question-pannel .question-top .question-top-tip{flex:0 0 24px;margin-right:8px}.questions .question-pannel .question-top .question-top-title{flex:0 0 1;overflow:hidden;display:flex;align-items:center}.questions .question-pannel .question-top .question-top-type{margin-left:8px;flex:0 0 24px}.questions .question-pannel .question-top .question-only-plus-file{margin-left:0}.questions .question-pannel .question-top img{width:24px}.questions .question-pannel .not-have-top{display:none}.questions .question-pannel .question-bottom{font-size:14px;color:#070c14;line-height:21px}.questions .question-pannel .multiline-question{height:56px;margin-top:-7px}.questions .question-pannel__active{border:1px solid #b452ff;transition:all .25s}.questions .multiline-question-pannel{padding:16px 12px}.recommend-tooltip-overlay .ant-tooltip-inner{max-width:400px;max-height:300px;overflow-y:auto}
|
package/dist/es/src/style12.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.prompt-
|
|
1
|
+
.prompt-modal .title{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:500;text-align:left;color:#161616}.prompt-modal .content{font-size:14px;font-weight:400;line-height:22px;text-align:justified;color:#393939}
|
package/dist/es/src/style13.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.prompt-setting-panel{display:flex;align-items:center;justify-content:center}.agent-prompt{margin:12px 12px 0;padding:12px;border-radius:4px;border:1px solid #e8e9eb;background:#fff;flex:1;max-width:824px}.agent-prompt .prompt-header{font-size:16px;line-height:24px;font-weight:600;color:#84868c}.agent-prompt .prompt-header .prompt-btn{color:#84868c}.agent-prompt .prompt-header .prompt-title{color:#5c5f66;font-style:normal;line-height:150%}.agent-prompt .prompt-form{max-height:160px;overflow-y:auto;margin-top:12px}.agent-prompt .prompt-form .ant-form-item{margin-left:15px}.agent-prompt .icon-prompt-question{cursor:pointer}
|
package/dist/es/src/style14.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.footer
|
|
1
|
+
.home-footer{background:#f5f5f5;width:100%;max-width:824px;margin:0 auto}.home-footer .footer-textarea{position:relative;background:white}.home-footer .footer-textarea .input-textview{min-height:134px;max-height:344px;resize:none;font-size:14px;border:1px solid transparent}.home-footer .footer-textarea .input-textview:focus,.home-footer .footer-textarea .input-textview:active,.home-footer .footer-textarea .input-textview.ant-input-focused{border:1px solid #b452ff;outline:0;box-shadow:none}.home-footer .footer-textarea .input-textview:hover{border:1px solid #b452ff;outline:0;box-shadow:0 0 0 2px #9c24f233}.home-footer .footer-textarea .footer-send{position:absolute;right:0;bottom:0;width:40px;height:130px}.home-footer .footer-textarea .footer-send .send-wrapper{height:16px;width:16px;font-size:16px;border-radius:6px;display:flex;justify-content:center;align-items:center;position:absolute;bottom:8px;right:12px;cursor:pointer;color:#b452ff}.home-footer .footer-textarea .footer-send .send-wrapper__disabled{height:16px;width:16px;font-size:16px;color:#b8babf;background:transparent}.home-footer .footer-warning{display:flex;justify-content:center;align-items:center;font-size:12px;font-weight:400;line-height:18px;text-align:left;color:#999}.inlay .home-footer .footer-textarea .input-textview{min-height:134px;max-height:344px}.float .home-footer .footer-textarea .input-textview{min-height:134px;max-height:200px}
|
package/dist/es/src/style15.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.connect{position:relative}.connect .net-tip{position:absolute;top:-45px;left:50%;transform:translate(-88%);white-space:nowrap;background:#ffffff;padding:8px;border-radius:4px;box-shadow:0 2px 8px #00000026;z-index:10}
|
package/dist/es/src/style17.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.footer-upload{display:flex;justify-content:center;align-items:center}.footer-upload .upload-enter{padding:0;height:24px;width:24px;display:flex;justify-content:center;align-items:center;cursor:pointer}.footer-upload .upload-enter.disabled{color:#b8babf;cursor:not-allowed}.footer-upload .upload-enter:hover{background:#ebebeb;border-radius:4px}.file-upload{width:100%;display:flex;flex-direction:column}.file-upload .ant-upload-drag{background-color:#fff;border:unset}.file-upload .ant-upload-drag .ant-upload-btn{padding:0}.file-upload .file-upload-icon{font-size:35px;color:#d3d3d3}.file-upload .file-upload-action{display:flex;justify-content:center;align-items:center;margin-bottom:12px}.file-upload .file-upload-desc{text-align:left;display:flex;flex-direction:column;font-weight:400;font-size:12px;margin:0 auto;color:#84868c;width:232px;line-height:18px;padding-left:20px}.file-upload .file-upload-desc .item-upload-desc{line-height:150%}.file-upload .file-upload-desc .item-upload-desc__1{display:flex;align-items:center}.file-upload .upload-wrapper{height:300px;overflow-y:auto;overflow-x:hidden}.file-upload .upload-wrapper .upload-main{flex:1;width:100%;overflow-y:auto;margin-bottom:16px}.file-upload .upload-wrapper .upload-main .upload-pannel{width:100%}.file-upload .upload-wrapper .upload-main .upload-empty{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.file-upload .upload-wrapper .upload-main .upload-item{cursor:pointer}.file-upload .upload-wrapper .upload-main .upload-item .upload-item-file-icon{display:inline-block;width:10px}.file-upload .upload-wrapper .upload-main .upload-item .upload-item-name{margin-left:10px;display:inline-block;max-width:230px;word-break:break-all}.file-upload .upload-wrapper .upload-main .upload-item .upload-item-upload-delete{display:inline-block;width:10px;color:#9c24f2;display:none}.file-upload .upload-wrapper .upload-main .upload-item:hover{background:rgba(0,0,0,.04)}.file-upload .upload-wrapper .upload-main .upload-item:hover .upload-item-upload-delete{display:inline-block}.card-title{display:flex;justify-content:space-between;align-items:center;color:#393939;font-size:14px}.card-title .name{font-weight:500}.card-title .actions{font-weight:400;display:flex;gap:12px}.card-title .actions .action{padding:4px 2px;cursor:pointer}.card-title .actions .action .detail{display:flex;gap:6px;align-items:center}.split-line{width:100%;height:1px;border:.5px solid #e8e9eb}.upload-popover{z-index:1}
|
package/dist/es/src/style18.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.prompt-btn:hover,.prompt-btn:active,.prompt-btn.active{color:#9c24f2}.propmt-manage-popover .ant-popover-title{display:flex;align-items:center;font-size:16px;border:none}.propmt-manage-popover .ant-popover-title .prompt-popover-title{width:100%;display:flex;justify-content:space-between}.propmt-manage-popover .ant-popover-inner-content{padding:0;width:100%}.propmt-manage-popover .ant-popover-arrow{display:none}.propmt-manage-popover .ant-tabs-nav:before{border:0}
|
package/dist/es/src/style20.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.file-item{height:64px;border-radius:6px;overflow:hidden;padding:12px;display:flex;background:white;cursor:pointer}.file-item .item-left{flex:0 0 40px;margin-right:8px}.file-item .item-left .file-icon{width:100%}.file-item .item-main{flex:1;overflow:hidden}.file-item .item-main .file-name{width:100%;font-size:14px;color:#070c14;font-weight:700;line-height:18px;margin-bottom:4px}.file-item .item-main .file-desc{font-size:12px;height:15px;color:#84868c}
|
package/dist/es/src/style21.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.session-refer{padding:12px 0;border-top:1px solid #e8e9eb}.session-refer .session-refer-header{color:#070c14;margin-bottom:12px;height:18px;display:flex;align-items:center}.session-refer .session-refer-header .refer-header-title{font-style:normal;font-weight:400;line-height:150%}.session-refer .session-refer-content .refer-markdown p{color:#84868c;line-height:150%}.session-refer .ant-collapse-header{padding:4px 0!important}.session-refer .ant-collapse-content-box{padding:4px 10px 4px 24px!important}
|
package/dist/es/src/style22.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.session-
|
|
1
|
+
.session-action{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #e8e9eb;color:#84868c}.session-action .session-action-again{cursor:pointer;user-select:none}.session-action .session-action-again:hover{color:#b452ff}.session-action .session-action-comment{border-radius:4px;padding:4px}.session-action .session-action-comment .action-comment-feedback{font-size:16px}.session-action .session-action-comment .action-comment-feedback .comment-feedback-item{display:inline-block;width:100%;height:100%;cursor:pointer}.session-action .session-action-comment .action-comment-feedback .comment-feedback-item:hover{color:#b452ff}.session-action .session-action-comment .action-comment-feedback .comment-feedback-item__active{color:#9c24f2}.cai-pannel{width:260px;overflow:hidden}.cai-pannel .cai-error{color:#f33e3e;margin-bottom:12px}.cai-pannel .cai-title{margin-bottom:12px}.cai-pannel .cai-title .cai-require{color:#f33e3e}.cai-pannel .cai-title .cai-question{color:#070c14;text-align:center;font-size:14px}.cai-pannel .cai-list{display:flex;flex-wrap:wrap}.cai-pannel .cai-list .cai-item{padding:6px 8px;border-radius:4px;border:1px solid #e8e9eb;margin-bottom:12px;margin-right:12px;cursor:pointer}.cai-pannel .cai-list .cai-item:hover{color:#b452ff;border:1px solid #b452ff}.cai-pannel .cai-list .cai-item__active{color:#8614cc;border:1px solid #8614cc}.chat-item:last-child{margin-bottom:0}
|
package/dist/es/src/style23.css
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.markdown{word-break:break-all}.markdown :last-child{margin-bottom:0}.markdown div,.markdown hr,.markdown h1,.markdown h2,.markdown h3,.markdown h4,.markdown h5,.markdown h6,.markdown p,.markdown table,.markdown code,.markdown img,.markdown address,.markdown blockquote,.markdown dir,.markdown menu,.markdown pre,.markdown ul,.markdown ol,.markdown li,.markdown dl{margin-bottom:12px;line-height:150%;white-space:pre-wrap}.markdown div:last-child,.markdown hr:last-child,.markdown h1:last-child,.markdown h2:last-child,.markdown h3:last-child,.markdown h4:last-child,.markdown h5:last-child,.markdown h6:last-child,.markdown p:last-child,.markdown table:last-child,.markdown code:last-child,.markdown img:last-child,.markdown address:last-child,.markdown blockquote:last-child,.markdown dir:last-child,.markdown menu:last-child,.markdown pre:last-child,.markdown ul:last-child,.markdown ol:last-child,.markdown li:last-child,.markdown dl:last-child{margin-bottom:0}.markdown ul,.markdown ol{padding-inline-start:20px}.markdown ul{list-style-type:disc}.markdown ol{list-style-type:decimal}.markdown ul,.markdown li{white-space:normal;margin-bottom:8px}.markdown table{display:block;border-collapse:collapse;border-radius:4px;max-width:100%;overflow:auto;width:max-content}.markdown td,.markdown th{border:1px solid #e8e9eb;padding:6px 13px;text-align:left}.markdown tr{color:#151b26;background-color:#fff}.markdown th{background-color:#f9f2ff;color:#000}.markdown tr:hover td{background-color:#fff}.markdown p code{background:#f9f2ff;border-radius:4px;padding:4px;display:inline;font-size:12px;color:#070c14}.markdown .markdown-code-title{margin:0;padding:0 16px;height:36px;border-radius:8px 8px 0 0;background:#f9f2ff;display:flex;align-items:center;justify-content:space-between;line-height:21px;font-weight:500;color:#070c14}.markdown .markdown-code-context{padding:16px;background:rgba(249,242,255,.3)!important;margin:0!important;border-radius:0 0 8px 8px}.markdown .markdown-code-context code{margin:0;font-size:85%;background:none;font-size:14px}.markdown .markdown-code-context code>span{flex-wrap:wrap}.markdown p{white-space:pre-line}.markdown pre code.hljs{display:block;overflow-x:auto;padding:1em}.markdown p{line-height:150%;height:auto!important}.markdown img{max-width:100%}.markdown a,.markdown a:hover{color:#0f64ff}.markdown code.hljs{padding:3px 5px}.markdown .hljs{background:rgba(249,242,255,.3);color:#000}.markdown .hljs-comment{color:#697070}.markdown .hljs-tag,.markdown .hljs-punctuation{color:#000a}.markdown .hljs-tag .hljs-name,.markdown .hljs-tag .hljs-attr{color:#000}.markdown .hljs-keyword,.markdown .hljs-attribute,.markdown .hljs-selector-tag,.markdown .hljs-meta .hljs-keyword,.markdown .hljs-doctag,.markdown .hljs-name{font-weight:700}.markdown .hljs-type,.markdown .hljs-string,.markdown .hljs-number,.markdown .hljs-selector-id,.markdown .hljs-selector-class,.markdown .hljs-quote,.markdown .hljs-template-tag,.markdown .hljs-deletion{color:#800}.markdown .hljs-title,.markdown .hljs-section{color:#800;font-weight:700}.markdown .hljs-regexp,.markdown .hljs-symbol,.markdown .hljs-variable,.markdown .hljs-template-variable,.markdown .hljs-link,.markdown .hljs-selector-attr,.markdown .hljs-operator,.markdown .hljs-selector-pseudo{color:#ab5656}.markdown .hljs-literal{color:#695}.markdown .hljs-built_in,.markdown .hljs-bullet,.markdown .hljs-code,.markdown .hljs-addition{color:#397300}.markdown .hljs-meta{color:#1f7199}.markdown .hljs-meta .hljs-string{color:#38a}.markdown .hljs-emphasis{font-style:italic}.markdown .hljs-strong{font-weight:700}.markdown .ant-image{margin-bottom:6px!important}.markdown .ant-image .ant-image-img{margin-bottom:0!important}
|
package/dist/es/src/style24.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.json-display{margin:0;padding:4px}
|
package/dist/es/src/style25.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.search-reference .bot-net-panel{user-select:none;margin-bottom:10px;width:180px;height:32px;background:white;line-height:32px;display:flex;justify-content:space-between;padding:0 12px;cursor:pointer}.search-reference .bot-net-main{background:white;padding:12px;line-height:22px}.search-reference .bot-net-main .text .link{cursor:pointer;color:#0f64ff}.search-reference .think-top{font-size:14px;line-height:24px;color:#070c14;display:flex;align-items:center;margin-bottom:12px;cursor:pointer}.search-reference .think-top img{width:24px;margin-right:4px}.search-reference .think-top .think-action{margin-left:8px}.search-reference .thinking{width:12px;height:12px;background:#b752ea;border-radius:50%;margin:6px}.search-reference .thinked{width:12px;height:12px;background:#04d68d;border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center;font-size:8px;margin:6px}.search-reference .thinked.error{background:#f33e3e}.search-reference .item-bot-plugin{line-height:24px}.search-reference .item-bot-plugin .bot-plugin-status .icon-search{font-size:24px}.search-reference .item-bot-plugin .bot-plugin-status .plugin-status-success{display:inline-block;width:14px;height:14px;color:#fff;background:#47d1cb;border-radius:50%;font-size:10px;display:flex;align-items:center;justify-content:center}.search-reference .item-bot-plugin .bot-plugin-status .plugin-status-error{display:inline-block;width:14px;height:14px;color:#fff;background:#f95b81;border-radius:50%;font-size:10px;display:flex;align-items:center;justify-content:center}.search-reference .item-bot-plugin .bot-plugin-status .plugin-status-loading{display:inline-block;width:14px;height:14px;color:#477bff;border-radius:50%;font-size:10px;display:flex;align-items:center;justify-content:center}.search-reference .item-bot-plugin .bot-plugin-title{font-weight:700;color:#000000a6}.search-reference .item-bot-plugin .bot-plugin-action{border:1px solid #00000026;border-radius:4px;color:#000000e0;padding:1px 8px}.search-reference .item-bot-plugin .ant-collapse-header{padding:0;height:38px;display:flex;align-items:center}.search-reference .item-bot-plugin .ant-collapse-content-box{padding:0}.search-reference .item-bot-plugin .bot-plugin-content{height:32px;line-height:32px;font-weight:700}.search-reference .item-bot-plugin .bot-plugin-json{background:white}.search-reference .ant-collapse-item{padding:0 8px}.search-reference-list{margin-right:8px;border-radius:6px}.search-reference-list-item{display:flex;flex-direction:column;padding:12px 8px 8px;gap:0px 10px;flex-wrap:wrap;align-content:flex-start;border-radius:6px;background:#FFFFFF;box-sizing:border-box;border:1px solid #E5E7EB;margin-bottom:8px}.search-reference-list-item :last-child{margin-bottom:0}.search-reference-list-item :hover{cursor:pointer}.search-reference-list-item-footer{display:flex;justify-content:space-between;padding:0;row-gap:0px;flex-wrap:wrap;align-content:flex-start;z-index:0;line-height:24px;align-items:center}.search-reference-list-item-footer .logo{width:24px;height:24px}.search-reference-list-item-footer .name{font-family:Roboto;font-size:12x;font-weight:400;line-height:24px;letter-spacing:normal;color:#4b5563}.search-reference-list-item-footer .time{font-family:Roboto;font-size:12x;font-weight:400;line-height:24px;letter-spacing:normal;color:#9ca3af}.search-reference-list-item-title{font-family:Roboto;font-size:16px;font-weight:600;line-height:28px;letter-spacing:normal;color:#000}.search-reference-list-item-title .number{margin-right:4px}.search-reference-list-item-content{font-family:Roboto;font-size:14px;font-weight:400;line-height:24px;letter-spacing:normal;color:#4b5563;padding:0 8px;display:inline-block}
|
package/dist/es/src/style26.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.session-related{padding-bottom:12px}.session-related .session-related-header{height:18px;padding:0}.session-related .session-related-main .question-main-item{color:#0f64ff;display:flex;align-items:center;cursor:pointer}.session-related .session-related-main .question-main-item:before{content:"";display:block;background:#0f64ff;width:4px;height:4px;border-radius:50%;margin:0 8px;cursor:pointer}
|
package/dist/es/src/style27.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.ant-drawer-content-wrapper{height:calc(100% - 54px)!important;border-radius:12px 12px 0 0}.ant-drawer-content-wrapper .ant-drawer-header{padding:12px 16px;border-bottom:none}.ant-drawer-content-wrapper .ant-drawer-header .ant-drawer-header-title{justify-content:space-between;flex-direction:row-reverse;font-size:16px;color:#393939}.ant-drawer-content-wrapper .ant-drawer-header .ant-drawer-header-title .ant-drawer-close{margin:0;padding:0}.ant-drawer-content-wrapper .ant-drawer-body{padding:0 16px 26px}.ant-drawer-content-wrapper .ant-drawer-body .session-item-panel{max-height:124px;width:100%;padding:2px 0;border-bottom:1px solid #e8e9eb}.ant-drawer-content-wrapper .ant-drawer-body .session-item-panel .session-item-space{padding:10px 0;overflow:hidden}.ant-drawer-content-wrapper .ant-drawer-body .session-item-panel:hover{cursor:pointer}.ant-drawer-content-wrapper .ant-drawer-body .session-item-panel .ant-space{width:100%}.ant-drawer-content-wrapper .ant-drawer-body .session-item-panel .item-question{font-size:14px;font-weight:700;line-height:21px;color:#070c14;width:100%;display:flex;align-items:center;justify-content:space-between}.ant-drawer-content-wrapper .ant-drawer-body .session-item-panel .item-question .ant-tag{width:58px;height:24px;padding:1px 8px;border-radius:4px;font-size:14px;font-weight:400;background-color:#9c24f2;color:#fff}.ant-drawer-content-wrapper .ant-drawer-body .session-item-panel .item-question .session-item-name{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ant-drawer-content-wrapper .ant-drawer-body .session-item-panel .item-question .icons-bar{display:flex}.ant-drawer-content-wrapper .ant-drawer-body .session-item-panel .item-question .icons-bar .ant-btn{margin:0 3px}.ant-drawer-content-wrapper .ant-drawer-body .session-item-panel .item-question .ant-btn{width:20px;height:20px;padding:0;font-size:12px;color:#000}.ant-drawer-content-wrapper .ant-drawer-body .session-item-panel .item-question .name-edit-panel{width:100%;position:relative}.ant-drawer-content-wrapper .ant-drawer-body .session-item-panel .item-question .name-edit-panel .name-edit-input{width:100%}.ant-drawer-content-wrapper .ant-drawer-body .session-item-panel .item-question .name-edit-panel .name-edit-input .ant-input-show-count-suffix{font-size:12px;font-weight:400;color:#e0e0e0;margin-right:60px}.ant-drawer-content-wrapper .ant-drawer-body .session-item-panel .item-question .name-edit-panel .ant-btn{position:absolute;right:12px;top:7px;z-index:999}.ant-drawer-content-wrapper .ant-drawer-body .session-item-panel .item-question .name-edit-panel .ant-btn .anticon{font-size:14px}.ant-drawer-content-wrapper .ant-drawer-body .session-item-panel .item-answer{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#84868c}.ant-drawer-content-wrapper .ant-drawer-body .session-item-panel .item-file{font-size:12px;color:#84868c}.ant-drawer-content-wrapper .ant-drawer-body .session-item-panel .item-file .file-icon{width:16px;height:16px}.ant-drawer-content-wrapper .ant-drawer-body .session-item-panel .item-file .file-name{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ant-drawer-content-wrapper .ant-drawer-body .session-item-panel .item-file .ant-tag{font-size:10px;border:1px solid #84868c;background-color:transparent;color:#84868c}.ant-drawer-content-wrapper .ant-drawer-body .session-item-panel .item-file .file-status-icon{position:absolute;left:6px;top:-2px;border-radius:10px;border:1px solid #fff}.ant-drawer-content-wrapper .ant-drawer-body .session-item-panel .item-file .success-file-icon{color:#45cc27}.ant-drawer-content-wrapper .ant-drawer-body .session-item-panel .item-file .failed-file-icon{color:#dc4446}.ant-drawer-content-wrapper .ant-drawer-body .session-item-panel .item-file .loading-file-icon{height:12px;width:12px;font-size:10px;background-color:#fff}.ant-drawer-content-wrapper .ant-drawer-body .current-item{margin:2px 0}.ant-drawer-content-wrapper .ant-drawer-body .current-item .session-item-space{border-radius:8px;background-color:#f9f2ff;padding:8px}.loading-panel .ant-drawer-body{display:flex;justify-content:center;align-items:center}
|