@glodon-aiot/agent-cli-ui 3.5.1-beta.1 → 3.5.2-beta.0
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/SessionListDrawer/HistorySessionList/index.mjs +12 -12
- package/dist/es/Dialog/AgentChat/index.mjs +414 -410
- package/dist/es/QuillEditor/index.mjs +154 -107
- package/dist/es/packages/agent-cli-ui/package.json.mjs +9 -8
- package/dist/es/packages/react-components/dist/es/index.mjs +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/style25.css +1 -1
- package/dist/es/src/style27.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 +53 -53
- package/dist/src/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/index.d.ts +1 -1
- package/dist/src/Dialog/AgentChat/Tools/SessionListDrawer/index.d.ts +1 -1
- package/dist/src/QuillEditor/index.d.ts +1 -1
- package/package.json +5 -4
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
var b = (C, a, n) => new Promise((x, e) => {
|
|
2
2
|
var r = (i) => {
|
|
3
3
|
try {
|
|
4
|
-
|
|
4
|
+
u(n.next(i));
|
|
5
5
|
} catch (f) {
|
|
6
6
|
e(f);
|
|
7
7
|
}
|
|
8
8
|
}, h = (i) => {
|
|
9
9
|
try {
|
|
10
|
-
|
|
10
|
+
u(n.throw(i));
|
|
11
11
|
} catch (f) {
|
|
12
12
|
e(f);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
14
|
+
}, u = (i) => i.done ? x(i.value) : Promise.resolve(i.value).then(r, h);
|
|
15
|
+
u((n = n.apply(C, a)).next());
|
|
16
16
|
});
|
|
17
17
|
import { jsx as p } from "react/jsx-runtime";
|
|
18
18
|
import { useContext as D, useState as I, useRef as N, useEffect as E } from "react";
|
|
@@ -28,10 +28,10 @@ const K = (C) => {
|
|
|
28
28
|
} = C, {
|
|
29
29
|
agentClient: e,
|
|
30
30
|
popupContainer: r
|
|
31
|
-
} = D(H), [h,
|
|
31
|
+
} = D(H), [h, u] = I(!1), [i, f] = I(!1), [L, v] = I(""), [g, l] = I([]), o = N(g);
|
|
32
32
|
E(() => {
|
|
33
|
-
o.current = [], l(o.current),
|
|
34
|
-
|
|
33
|
+
o.current = [], l(o.current), u(!0), e == null || e.getSessions().then((t) => b(void 0, null, function* () {
|
|
34
|
+
u(!1), o.current = [...t], l(o.current);
|
|
35
35
|
}));
|
|
36
36
|
}, []), E(() => {
|
|
37
37
|
g.length && a && setTimeout(() => {
|
|
@@ -41,11 +41,11 @@ const K = (C) => {
|
|
|
41
41
|
}, [g]);
|
|
42
42
|
const w = (t, s) => {
|
|
43
43
|
e == null || e.removeSession(t, !0).then(() => b(void 0, null, function* () {
|
|
44
|
-
const c = g.filter((
|
|
44
|
+
const c = g.filter((m) => {
|
|
45
45
|
var S, y;
|
|
46
|
-
return ((S =
|
|
46
|
+
return ((S = m.data) == null ? void 0 : S.id) !== ((y = t.data) == null ? void 0 : y.id);
|
|
47
47
|
});
|
|
48
|
-
t.data.id === a && n && n(""), d.config({
|
|
48
|
+
t.data.id === a && n && n("", null), d.config({
|
|
49
49
|
getContainer: () => (r == null ? void 0 : r.current) || document.body,
|
|
50
50
|
prefixCls: "gbot-message"
|
|
51
51
|
}), d.success("删除成功"), d.config({
|
|
@@ -80,9 +80,9 @@ const K = (C) => {
|
|
|
80
80
|
}));
|
|
81
81
|
}), $ = (t, s) => {
|
|
82
82
|
s && (t.rename(s), t == null || t.addEventListener("data:updated", () => {
|
|
83
|
-
const c = o.current.map((
|
|
83
|
+
const c = o.current.map((m) => {
|
|
84
84
|
var S, y;
|
|
85
|
-
return ((S =
|
|
85
|
+
return ((S = m.data) == null ? void 0 : S.id) === ((y = m.data) == null ? void 0 : y.id), m;
|
|
86
86
|
});
|
|
87
87
|
o.current = [...c], l(o.current);
|
|
88
88
|
}));
|