@glodon-aiot/agent-cli-ui 3.4.0 β 3.4.1-beta.1
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/Tools/SessionHistoryDrawer/index.mjs +33 -32
- package/dist/es/Dialog/AgentChat/index.mjs +243 -236
- 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/style11.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/style16.css +1 -1
- package/dist/es/src/style17.css +1 -1
- package/dist/es/src/style18.css +1 -1
- package/dist/es/src/style19.css +1 -1
- package/dist/es/src/style20.css +1 -1
- package/dist/es/src/style21.css +1 -1
- package/dist/es/src/style23.css +1 -1
- package/dist/es/src/style24.css +1 -1
- package/dist/es/src/style25.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/style33.css +1 -1
- package/dist/es/src/style7.css +1 -1
- package/dist/es/src/style8.css +1 -1
- package/dist/lib/index.js +55 -55
- package/dist/src/Dialog/AgentChat/Tools/SessionHistoryDrawer/index.d.ts +1 -0
- package/package.json +3 -3
|
@@ -1,53 +1,54 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Drawer as
|
|
3
|
-
import { useContext as
|
|
4
|
-
/* empty css */import
|
|
5
|
-
import
|
|
6
|
-
const
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { Drawer as u } from "antd";
|
|
3
|
+
import { useContext as C } from "react";
|
|
4
|
+
/* empty css */import S from "../../../../context.mjs";
|
|
5
|
+
import y from "../../../../components/Sider/index.mjs";
|
|
6
|
+
const z = (l) => {
|
|
7
7
|
const {
|
|
8
|
-
currentSession:
|
|
9
|
-
disabled:
|
|
10
|
-
application:
|
|
11
|
-
networkStatus:
|
|
12
|
-
setCurrentSession:
|
|
13
|
-
sessions:
|
|
8
|
+
currentSession: e,
|
|
9
|
+
disabled: b = !1,
|
|
10
|
+
application: m,
|
|
11
|
+
networkStatus: d,
|
|
12
|
+
setCurrentSession: f,
|
|
13
|
+
sessions: c,
|
|
14
14
|
// π ζ°ε’
|
|
15
|
-
setSessions:
|
|
15
|
+
setSessions: p,
|
|
16
16
|
// π ζ°ε’
|
|
17
|
-
isSessionHistoryVisible:
|
|
18
|
-
setIsSessionHistoryVisible:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
isSessionHistoryVisible: w,
|
|
18
|
+
setIsSessionHistoryVisible: o,
|
|
19
|
+
onSessionChange: s
|
|
20
|
+
} = l, {
|
|
21
|
+
popupContainer: t
|
|
22
|
+
} = C(S);
|
|
23
|
+
return /* @__PURE__ */ a(u, {
|
|
23
24
|
title: "δΌθ―εε²",
|
|
24
25
|
open: !0,
|
|
25
26
|
placement: "bottom",
|
|
26
27
|
onClose: () => {
|
|
27
|
-
|
|
28
|
+
o(!1);
|
|
28
29
|
},
|
|
29
30
|
className: "session-history-drawer",
|
|
30
31
|
size: "large",
|
|
31
|
-
getContainer: () => (
|
|
32
|
+
getContainer: () => (t == null ? void 0 : t.current) || document.body,
|
|
32
33
|
destroyOnClose: !0,
|
|
33
34
|
style: {
|
|
34
35
|
position: "absolute"
|
|
35
36
|
},
|
|
36
|
-
children: /* @__PURE__ */
|
|
37
|
+
children: /* @__PURE__ */ a(y, {
|
|
37
38
|
isShowHeader: !1,
|
|
38
|
-
application:
|
|
39
|
-
networkStatus:
|
|
40
|
-
currentSession:
|
|
41
|
-
setCurrentSession:
|
|
42
|
-
sessions:
|
|
43
|
-
setSessions:
|
|
44
|
-
afterSessionClick: (
|
|
45
|
-
var
|
|
46
|
-
((
|
|
39
|
+
application: m,
|
|
40
|
+
networkStatus: d,
|
|
41
|
+
currentSession: e,
|
|
42
|
+
setCurrentSession: f,
|
|
43
|
+
sessions: c,
|
|
44
|
+
setSessions: p,
|
|
45
|
+
afterSessionClick: (r) => {
|
|
46
|
+
var i, n;
|
|
47
|
+
((i = r.data) == null ? void 0 : i.id) !== ((n = e == null ? void 0 : e.data) == null ? void 0 : n.id) && (o(!1), s == null || s(r));
|
|
47
48
|
}
|
|
48
49
|
})
|
|
49
50
|
});
|
|
50
51
|
};
|
|
51
52
|
export {
|
|
52
|
-
|
|
53
|
+
z as default
|
|
53
54
|
};
|