@glodon-aiot/agent-cli-ui 3.3.5-beta.34 → 3.3.6-alpha.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.
Files changed (38) hide show
  1. package/dist/es/Dialog/AgentChat/Tools/SessionHistoryDrawer/index.mjs +74 -0
  2. package/dist/es/Dialog/AgentChat/index.mjs +362 -347
  3. package/dist/es/Dialog/SessionList/index.mjs +252 -172
  4. package/dist/es/Dialog/index.mjs +83 -76
  5. package/dist/es/components/Sider/index.mjs +24 -0
  6. package/dist/es/packages/agent-cli-ui/package.json.mjs +3 -3
  7. package/dist/es/packages/react-components/dist/es/index.mjs +1 -1
  8. package/dist/es/src/style10.css +1 -1
  9. package/dist/es/src/style11.css +1 -1
  10. package/dist/es/src/style12.css +1 -1
  11. package/dist/es/src/style14.css +1 -1
  12. package/dist/es/src/style15.css +1 -1
  13. package/dist/es/src/style16.css +1 -1
  14. package/dist/es/src/style17.css +1 -1
  15. package/dist/es/src/style18.css +1 -1
  16. package/dist/es/src/style19.css +1 -1
  17. package/dist/es/src/style20.css +1 -1
  18. package/dist/es/src/style21.css +1 -1
  19. package/dist/es/src/style22.css +1 -1
  20. package/dist/es/src/style23.css +1 -1
  21. package/dist/es/src/style24.css +1 -1
  22. package/dist/es/src/style25.css +1 -1
  23. package/dist/es/src/style26.css +1 -1
  24. package/dist/es/src/style27.css +1 -1
  25. package/dist/es/src/style28.css +1 -1
  26. package/dist/es/src/style29.css +1 -1
  27. package/dist/es/src/style31.css +1 -1
  28. package/dist/es/src/style32.css +1 -0
  29. package/dist/es/src/style33.css +1 -0
  30. package/dist/es/src/style6.css +1 -1
  31. package/dist/es/src/style7.css +1 -1
  32. package/dist/lib/index.css +1 -1
  33. package/dist/lib/index.js +56 -56
  34. package/dist/src/Dialog/AgentChat/Tools/SessionHistoryDrawer/index.d.ts +14 -0
  35. package/dist/src/Dialog/AgentChat/index.d.ts +2 -0
  36. package/dist/src/Dialog/SessionList/index.d.ts +6 -3
  37. package/dist/src/components/Sider/index.d.ts +8 -0
  38. package/package.json +3 -3
@@ -0,0 +1,74 @@
1
+ import { jsxs as u, jsx as e } from "react/jsx-runtime";
2
+ import { Popover as S, Button as h, Drawer as C } from "antd";
3
+ import { useState as w, useContext as x } from "react";
4
+ /* empty css */import b from "../../../../components/Iconfont/index.mjs";
5
+ import g from "../../../../context.mjs";
6
+ import v from "../../../../components/Sider/index.mjs";
7
+ const V = (a) => {
8
+ const {
9
+ currentSession: s,
10
+ disabled: l = !1,
11
+ application: c,
12
+ networkStatus: m,
13
+ setCurrentSession: d,
14
+ sessions: p,
15
+ // 👈 新增
16
+ setSessions: f
17
+ // 👈 新增
18
+ } = a, [y, t] = w(!1), {
19
+ popupContainer: o
20
+ } = x(g);
21
+ return /* @__PURE__ */ u("div", {
22
+ className: "session-history-drawer-component",
23
+ children: [/* @__PURE__ */ e(S, {
24
+ placement: "topRight",
25
+ showArrow: !1,
26
+ overlayClassName: "session-history-overlay",
27
+ overlayStyle: {
28
+ padding: "4px"
29
+ },
30
+ getPopupContainer: (i) => i.parentNode,
31
+ content: "会话历史记录",
32
+ children: /* @__PURE__ */ e(h, {
33
+ className: "history-overlay-action",
34
+ disabled: l,
35
+ type: "text",
36
+ icon: /* @__PURE__ */ e(b, {
37
+ type: "icon-lishijilu",
38
+ style: {
39
+ fontSize: 24
40
+ }
41
+ }),
42
+ onClick: () => t(!0)
43
+ })
44
+ }), y && /* @__PURE__ */ e(C, {
45
+ title: "分组会话列表",
46
+ open: !0,
47
+ placement: "bottom",
48
+ onClose: () => t(!1),
49
+ className: "session-history-drawer",
50
+ size: "large",
51
+ getContainer: () => (o == null ? void 0 : o.current) || document.body,
52
+ destroyOnClose: !0,
53
+ style: {
54
+ position: "absolute"
55
+ },
56
+ children: /* @__PURE__ */ e(v, {
57
+ isShowHeader: !1,
58
+ application: c,
59
+ networkStatus: m,
60
+ currentSession: s,
61
+ setCurrentSession: d,
62
+ sessions: p,
63
+ setSessions: f,
64
+ afterSessionClick: (i) => {
65
+ var r, n;
66
+ ((r = i.data) == null ? void 0 : r.id) !== ((n = s == null ? void 0 : s.data) == null ? void 0 : n.id) && t(!1);
67
+ }
68
+ })
69
+ })]
70
+ });
71
+ };
72
+ export {
73
+ V as default
74
+ };