@glodon-aiot/agent-cli-ui 3.9.0-beta.9 → 3.11.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.
Files changed (54) hide show
  1. package/dist/es/Dialog/AgentChat/HistoryItem/FileItem/index.mjs +12 -12
  2. package/dist/es/Dialog/AgentChat/HistoryItem/SessionRefer/index.mjs +3 -3
  3. package/dist/es/Dialog/AgentChat/HistoryItem/SessionRelated/index.mjs +2 -2
  4. package/dist/es/Dialog/AgentChat/HistoryItem/index.mjs +119 -134
  5. package/dist/es/Dialog/AgentChat/Tools/UploadKnowledgeFiles/index.mjs +1 -1
  6. package/dist/es/Dialog/AgentChat/index.mjs +573 -604
  7. package/dist/es/Dialog/SessionList/index.mjs +218 -271
  8. package/dist/es/ReactTextGenerationUI/components/TextSiders/index.mjs +2 -2
  9. package/dist/es/components/FilePreview/index.mjs +6 -6
  10. package/dist/es/components/Iconfont/index.mjs +3 -3
  11. package/dist/es/constant.mjs +4 -4
  12. package/dist/es/{packages → node_modules/@glodon-aiot}/react-components/dist/es/components/Markdown/Code/index.mjs +1 -1
  13. package/dist/es/{packages → node_modules/@glodon-aiot}/react-components/dist/es/components/Markdown/Image/index.mjs +3 -3
  14. package/dist/es/{packages → node_modules/@glodon-aiot}/react-components/dist/es/components/Markdown/index.mjs +7 -7
  15. package/dist/es/node_modules/@glodon-aiot/react-components/dist/es/index.mjs +10 -0
  16. package/dist/es/packages/agent-cli-ui/package.json.mjs +3 -3
  17. package/dist/es/src/style11.css +1 -1
  18. package/dist/es/src/style12.css +1 -1
  19. package/dist/es/src/style13.css +1 -1
  20. package/dist/es/src/style14.css +1 -1
  21. package/dist/es/src/style15.css +1 -1
  22. package/dist/es/src/style16.css +1 -1
  23. package/dist/es/src/style17.css +1 -1
  24. package/dist/es/src/style18.css +1 -1
  25. package/dist/es/src/style19.css +1 -1
  26. package/dist/es/src/style20.css +1 -1
  27. package/dist/es/src/style21.css +1 -1
  28. package/dist/es/src/style22.css +1 -1
  29. package/dist/es/src/style23.css +1 -1
  30. package/dist/es/src/style26.css +1 -1
  31. package/dist/es/src/style27.css +1 -1
  32. package/dist/es/src/style28.css +1 -1
  33. package/dist/es/src/style29.css +1 -1
  34. package/dist/es/src/style30.css +1 -1
  35. package/dist/es/src/style32.css +1 -1
  36. package/dist/es/src/style6.css +1 -1
  37. package/dist/es/src/style8.css +1 -1
  38. package/dist/es/src/style9.css +1 -1
  39. package/dist/lib/index.css +1 -1
  40. package/dist/lib/index.js +56 -58
  41. package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/fetch.d.ts +44 -0
  42. package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/index.d.ts +1 -0
  43. package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/parse.d.ts +36 -0
  44. package/dist/src/constant.d.ts +2 -2
  45. package/dist/src/utils/reactCompatibility.d.ts +27 -0
  46. package/dist/src/utils/testAntdPrefix.d.ts +3 -0
  47. package/package.json +3 -3
  48. package/dist/es/packages/react-components/dist/es/index.mjs +0 -10
  49. /package/dist/es/{packages → node_modules/@glodon-aiot}/react-components/dist/es/Iconfont/index.mjs +0 -0
  50. /package/dist/es/{packages → node_modules/@glodon-aiot}/react-components/dist/es/components/Copy/index.mjs +0 -0
  51. /package/dist/es/{packages → node_modules/@glodon-aiot}/react-components/dist/es/components/Markdown/ATag/index.mjs +0 -0
  52. /package/dist/es/{packages → node_modules/@glodon-aiot}/react-components/dist/es/components/Markdown/Video/index.mjs +0 -0
  53. /package/dist/es/{packages → node_modules/@glodon-aiot}/react-components/dist/es/utils/clipboard.mjs +0 -0
  54. /package/dist/es/{packages → node_modules/@glodon-aiot}/react-components/dist/es/utils/markdown/index.mjs +0 -0
@@ -33,11 +33,11 @@ import { PromptVariableType as y } from "@glodon-aiot/apis";
33
33
  import { v4 as Pe } from "uuid";
34
34
  import pe from "../../../context.mjs";
35
35
  import we from "../../../components/KnowledgeList/KnowledgeSelect/index.mjs";
36
- import "../../../packages/react-components/dist/es/index.mjs";
36
+ import "../../../node_modules/@glodon-aiot/react-components/dist/es/index.mjs";
37
37
  import Ne from "../../../Dialog/AgentChat/HistoryItem/SessionRefer/index.mjs";
38
38
  import Te from "../../../node_modules/moment/dist/moment.mjs";
39
39
  /* empty css */import { fetchEventSource as Ae } from "../fetchEventSource/fetch.mjs";
40
- import { Markdown as Ve } from "../../../packages/react-components/dist/es/components/Markdown/index.mjs";
40
+ import { Markdown as Ve } from "../../../node_modules/@glodon-aiot/react-components/dist/es/components/Markdown/index.mjs";
41
41
  const {
42
42
  Panel: _
43
43
  } = ee, Ee = ({
@@ -2,12 +2,12 @@ import { jsxs as x, jsx as o, Fragment as U } from "react/jsx-runtime";
2
2
  import { useState as s, useEffect as n } from "react";
3
3
  import { Image as k, Spin as E, Tooltip as P, Button as j } from "antd";
4
4
  import { LoadingOutlined as z } from "@ant-design/icons";
5
- import { AecKnowledgeFileStatus as N } from "@glodon-aiot/apis";
5
+ import { AecKnowledgeFileStatus as F } from "@glodon-aiot/apis";
6
6
  import B from "../Iconfont/index.mjs";
7
7
  import { getBase64 as I } from "../../utils/index.mjs";
8
8
  /* empty css */const D = (i) => {
9
9
  const {
10
- className: F,
10
+ className: N,
11
11
  style: y,
12
12
  id: r,
13
13
  file: e,
@@ -35,9 +35,9 @@ import { getBase64 as I } from "../../utils/index.mjs";
35
35
  p(e instanceof File || e == null ? void 0 : e.status);
36
36
  }, [e]);
37
37
  const C = () => {
38
- r && c && a === N.Processing && c(r).then((t) => {
38
+ r && c && a === F.Processing && c(r).then((t) => {
39
39
  t !== a && (a !== void 0 && v && v(t), p(t));
40
- }).catch((t) => p(N.Failed));
40
+ }).catch((t) => p(F.Failed));
41
41
  };
42
42
  return n(() => {
43
43
  C();
@@ -46,7 +46,7 @@ import { getBase64 as I } from "../../utils/index.mjs";
46
46
  d(t);
47
47
  });
48
48
  }, [e]), e ? /* @__PURE__ */ x("div", {
49
- className: `file-preview ${F}`,
49
+ className: `file-preview ${N}`,
50
50
  style: y,
51
51
  children: [/* @__PURE__ */ o(k, {
52
52
  src: m,
@@ -62,7 +62,7 @@ import { getBase64 as I } from "../../utils/index.mjs";
62
62
  }), !f && g && /* @__PURE__ */ o(P, {
63
63
  overlayClassName: "file-remove-tooltip",
64
64
  title: "删除文件",
65
- getPopupContainer: (t) => t.parentNode.parentNode,
65
+ getPopupContainer: (t) => t.parentNode,
66
66
  children: /* @__PURE__ */ o(j, {
67
67
  className: "file-action file-remove",
68
68
  icon: /* @__PURE__ */ o(B, {