@glodon-aiot/agent-cli-ui 3.7.0-alpha.3 → 3.8.0-alpha.5
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/Dialog/AgentChat/index.mjs +274 -265
- package/dist/es/Dialog/SessionList/index.mjs +216 -193
- package/dist/es/components/KnowledgeList/index.mjs +54 -48
- package/dist/es/constant.mjs +4 -3
- package/dist/es/packages/agent-cli-ui/package.json.mjs +3 -3
- package/dist/es/packages/react-components/dist/es/index.mjs +1 -1
- package/dist/es/src/style10.css +1 -1
- package/dist/es/src/style11.css +1 -1
- package/dist/es/src/style12.css +1 -1
- package/dist/es/src/style14.css +1 -1
- package/dist/es/src/style15.css +1 -1
- package/dist/es/src/style16.css +1 -1
- package/dist/es/src/style17.css +1 -1
- package/dist/es/src/style19.css +1 -1
- package/dist/es/src/style20.css +1 -1
- 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/style30.css +1 -1
- package/dist/es/src/style31.css +1 -1
- package/dist/es/src/style32.css +1 -1
- package/dist/es/src/style4.css +1 -1
- package/dist/es/src/style5.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/es/utils/index.mjs +30 -22
- package/dist/lib/index.js +54 -54
- package/dist/src/constant.d.ts +1 -0
- package/dist/src/utils/index.d.ts +2 -0
- package/package.json +3 -3
package/dist/es/src/style7.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.gbot-dialog-modal .
|
|
1
|
+
.gbot-dialog-modal .agent-chat{width:100%;height:100%;display:flex;flex-direction:column;max-width:824px;margin:0 auto;overflow:hidden}.gbot-dialog-modal .agent-chat .chat-main{flex:1;padding:16px;overflow:hidden;width:100%;transition:all 1s;position:relative}.gbot-dialog-modal .agent-chat .chat-main .chat-main-wrapper{width:100%;height:100%;overflow-y:auto;overflow-x:hidden}.gbot-dialog-modal .agent-chat .chat-main .session-stop{display:flex;align-items:center;justify-content:center;position:absolute;left:0;right:0;bottom:4px}.gbot-dialog-modal .agent-chat .chat-main .back-bottom{transition:all 3.3s;position:absolute;background:white;box-shadow:0 0 5px #ddd;font-size:0;border-radius:50%;width:26px;height:26px;right:4px;bottom:0;display:flex;justify-content:center;align-content:center}.gbot-dialog-modal .agent-chat .chat-main .main-empty{width:100%;height:100%;overflow-y:auto}.gbot-dialog-modal .agent-chat .chat-footer{position:relative;flex:0;padding:0 16px 8px;display:flex}.gbot-dialog-modal .agent-chat .chat-footer .camera-out-btn:hover,.gbot-dialog-modal .agent-chat .chat-footer .camera-out-btn:active,.gbot-dialog-modal .agent-chat .chat-footer .camera-out-btn.active{color:#9c24f2}.gbot-dialog-modal .agent-chat .chat-footer .chat-footer-input{flex:1;position:relative;width:100%}.gbot-dialog-modal .agent-chat .chat-footer .chat-footer-input .gbot-upload.gbot-upload-select-picture-card{width:20px;height:20px;border:none;margin:0}.gbot-dialog-modal .agent-chat .chat-footer .chat-footer-input .upload-wrapper{height:20px;width:20px;font-size:16px;border:1px solid #9c24f2;color:#9c24f2;border-radius:2px;display:flex;justify-content:center;align-items:center;cursor:pointer}.gbot-dialog-modal .agent-chat .chat-footer .chat-footer-input .upload-wrapper.upload-wrapper__disabled{border:1px solid #b8babf;color:#b8babf;cursor:not-allowed}.gbot-dialog-modal .agent-chat .chat-footer .chat-footer-input .input-files{margin-bottom:8px}.gbot-dialog-modal .agent-chat .chat-footer .footer-upload-action{width:100%;height:28px;display:flex;justify-content:space-between;align-items:center}.gbot-dialog-modal .agent-chat .chat-footer .footer-upload-action .footer-upload-picture{display:inline-block;width:20px}.gbot-dialog-modal .agent-chat .chat-footer .footer-upload-action .add-btn{width:70px;height:24px;padding:0;font-size:12px;border-radius:10px 10px 10px 2px}.gbot-dialog-modal .agent-chat .chat-footer .footer-upload-action .add-btn:disabled,.gbot-dialog-modal .agent-chat .chat-footer .footer-upload-action .add-btn:disabled:hover{background:#b8babf;color:#fff}.gbot-dialog-modal .agent-chat .chat-footer .footer-upload-action .session-history-drawer-component .history-overlay-action:hover{color:#9c24f2}.gbot-dialog-modal .agent-chat .chat-footer .footer-upload-action .session-history-overlay .gbot-popover-inner-content{padding:8px 10px}.gbot-dialog-modal .agent-chat .session-loading{width:100%;height:100%;display:flex;justify-content:center;align-items:center}
|
package/dist/es/src/style8.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.gbot-dialog-modal .
|
|
1
|
+
.gbot-dialog-modal .bot-session-container{height:100%}.gbot-dialog-modal .bot-session-container .agent-sessions{height:100%;width:310px;display:flex;flex-direction:column;overflow:hidden;background:white}.gbot-dialog-modal .bot-session-container .agent-sessions .sessions-header{height:56px;padding:0 16px;border-right:1px solid #e8e9eb;border-bottom:1px solid #e8e9eb;display:flex;justify-content:space-between;align-items:center}.gbot-dialog-modal .bot-session-container .agent-sessions .sessions-header .session-header-title{color:#151b26;font-size:18px;font-weight:700;line-height:24px}.gbot-dialog-modal .bot-session-container .agent-sessions .sessions-main{flex:1;border-right:1px solid #e8e9eb;overflow-y:auto}.gbot-dialog-modal .bot-session-container .agent-sessions .sessions-main .session-header-btn-wrapper{position:sticky;top:0;z-index:2;background-color:#fff;width:100%;height:48px}.gbot-dialog-modal .bot-session-container .agent-sessions .sessions-main .session-header-btn-wrapper .session-header-btn{width:70px;height:24px;padding:0;font-size:12px;border-radius:10px 10px 10px 2px;margin:16px 0 0 16px}.gbot-dialog-modal .bot-session-container .agent-sessions .sessions-main .session-group .group-header{padding:16px;font-size:14px;font-weight:700;background-color:#fff;position:sticky;z-index:1}.gbot-dialog-modal .bot-session-container .agent-sessions .sessions-main .session-item{width:100%;padding:8px 0;cursor:pointer;margin-bottom:4px}.gbot-dialog-modal .bot-session-container .agent-sessions .sessions-main .session-item .session-item-wrapper{width:100%;height:100%;padding:0 16px;height:26px;border-left:3px solid #f9f2ff}.gbot-dialog-modal .bot-session-container .agent-sessions .sessions-main .session-item .session-item-wrapper .session-item-top{font-size:14px;font-weight:700;line-height:22px;height:22px;width:100%;margin-bottom:4px;display:flex;justify-content:space-between}.gbot-dialog-modal .bot-session-container .agent-sessions .sessions-main .session-item .session-item-wrapper .session-item-top .item-top-title{max-width:calc(100% - 100px);margin-right:4px;color:#5c5f66}.gbot-dialog-modal .bot-session-container .agent-sessions .sessions-main .session-item .session-item-wrapper .session-item-top .item-top-time{display:flex;width:100px;color:#84868c;font-size:12px;line-height:22px;justify-content:flex-end}.gbot-dialog-modal .bot-session-container .agent-sessions .sessions-main .session-item .session-item-wrapper .session-item-top .item-top-action{display:none;font-size:12px;align-items:center}.gbot-dialog-modal .bot-session-container .agent-sessions .sessions-main .session-item .session-item-wrapper .session-item-top .item-top-action .icon-action{color:#9c24f2}.gbot-dialog-modal .bot-session-container .agent-sessions .sessions-main .session-item .session-item-wrapper .session-item-top .item-top-action .icon-action:hover{color:#b452ff}.gbot-dialog-modal .bot-session-container .agent-sessions .sessions-main .session-item__active{border-radius:4px;background:#f9f2ff}.gbot-dialog-modal .bot-session-container .agent-sessions .sessions-main .session-item__active .session-item-wrapper{border-left:3px solid #9c24f2}.gbot-dialog-modal .bot-session-container .agent-sessions .sessions-main .session-item:hover{border-radius:4px;background:#f9f2ff}.gbot-dialog-modal .bot-session-container .agent-sessions .sessions-main .session-item:hover .session-item-top .item-top-action{display:flex}
|
package/dist/es/src/style9.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.gbot-dialog-modal .
|
|
1
|
+
.gbot-dialog-modal .knowledge-select{width:204px;height:28px;border-radius:10px;border:1px solid}.gbot-dialog-modal .knowledge-select .select-popover{cursor:pointer;width:100%;height:100%;padding:0 8px;display:flex;align-items:center;justify-content:space-between;font-size:14px;font-weight:400}.gbot-dialog-modal .knowledge-select .select-popover .select-icon{color:#84868c}.gbot-dialog-modal .knowledge-select .select-popover .title{line-height:22px;color:#84868c}.gbot-dialog-modal .knowledge-select .select-popover .content{padding:2px 8px;border-radius:4px;background:#f7f7f9;line-height:18px;color:#84868c}.gbot-dialog-modal .knowledge-select .gbot-popover-placement-bottomRight{padding-top:5px!important}.gbot-dialog-modal .knowledge-select .gbot-popover-placement-bottomRight .gbot-popover-arrow{display:none}.gbot-dialog-modal .knowledge-select .gbot-popover-placement-bottomRight .gbot-popover-inner .gbot-popover-inner-content{height:200px;overflow-y:auto;font-size:14px;font-weight:400;line-height:21px;color:#84868c}
|
package/dist/es/utils/index.mjs
CHANGED
|
@@ -1,33 +1,41 @@
|
|
|
1
|
-
import { KB as
|
|
2
|
-
const
|
|
1
|
+
import { KB as s, MB as a, GB as p } from "../constant.mjs";
|
|
2
|
+
const d = (e) => {
|
|
3
3
|
if (e)
|
|
4
4
|
return e.split(".").pop();
|
|
5
|
-
},
|
|
6
|
-
var
|
|
7
|
-
return
|
|
8
|
-
},
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
}),
|
|
12
|
-
const
|
|
13
|
-
return (/* @__PURE__ */ new Date()).valueOf() / 1e3 >=
|
|
5
|
+
}, m = (e) => {
|
|
6
|
+
var n = e.match(/^.*\.(jpg|jpeg|png|bmp|JPG|JPEG|PNG|BMP)$/);
|
|
7
|
+
return n ? n[1] : null;
|
|
8
|
+
}, g = (e) => e < s ? e + " B" : e < a ? (e / s).toFixed(1) + " KB" : e < p ? (e / a).toFixed(1) + " MB" : (e / p).toFixed(1) + " GB", x = (e) => e == null ? void 0 : e.replace(/[\r\n]+/gm, ""), f = (e) => new Promise((n, r) => {
|
|
9
|
+
const t = new FileReader();
|
|
10
|
+
t.readAsDataURL(e), t.onload = () => n(t.result), t.onerror = (o) => r(o);
|
|
11
|
+
}), i = (e) => JSON.parse(window.atob(e.split(".")[1])), w = (e) => {
|
|
12
|
+
const n = i(e).exp;
|
|
13
|
+
return (/* @__PURE__ */ new Date()).valueOf() / 1e3 >= n;
|
|
14
14
|
};
|
|
15
|
-
var
|
|
16
|
-
const B = 100, E = (e) => /^https?:\/\/.*?\..+$/.test(e),
|
|
17
|
-
function
|
|
15
|
+
var u = /* @__PURE__ */ ((e) => (e.NETWORK = "请你优先从网络中搜索", e.DOCUMENT = "请你优先从以上文件中搜索", e))(u || {});
|
|
16
|
+
const B = 100, E = (e) => /^https?:\/\/.*?\..+$/.test(e), T = ["application/pdf", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/msword", "application/wps-office.docx"];
|
|
17
|
+
function F(e) {
|
|
18
18
|
return e.replace(/([\\])/g, "\\$1");
|
|
19
19
|
}
|
|
20
|
+
function N(e) {
|
|
21
|
+
return e.reduce((n, r) => {
|
|
22
|
+
var o, c;
|
|
23
|
+
const t = (c = (o = r.fileIds) == null ? void 0 : o.length) != null ? c : 0;
|
|
24
|
+
return n + (t > 0 ? t : 1);
|
|
25
|
+
}, 0);
|
|
26
|
+
}
|
|
20
27
|
export {
|
|
21
28
|
B as FILE_NAME_MAX_LENGTH,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
g as
|
|
27
|
-
|
|
28
|
-
d as
|
|
29
|
+
i as JWT,
|
|
30
|
+
N as calcKnowledgesLeafCount,
|
|
31
|
+
F as escapeSlash,
|
|
32
|
+
T as fileTypes,
|
|
33
|
+
g as formatFileSize,
|
|
34
|
+
f as getBase64,
|
|
35
|
+
d as getFileExtension,
|
|
36
|
+
m as getImageExtension,
|
|
29
37
|
w as isExpired,
|
|
30
38
|
E as isValidImageUrlWithAnyExtension,
|
|
31
39
|
x as removeNewlines,
|
|
32
|
-
|
|
40
|
+
u as shortCutEnum
|
|
33
41
|
};
|