@glodon-aiot/agent-cli-ui 3.9.0-alpha.7 → 3.9.0-beta.10

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 (89) hide show
  1. package/dist/es/Dialog/AgentChat/HistoryItem/SessionRefer/index.mjs +8 -8
  2. package/dist/es/Dialog/AgentChat/HistoryItem/index.mjs +4 -4
  3. package/dist/es/Dialog/SessionList/index.mjs +178 -166
  4. package/dist/es/ReactTextGenerationUI/components/TextSiders/index.mjs +51 -51
  5. package/dist/es/packages/agent-cli-ui/package.json.mjs +11 -11
  6. package/dist/es/packages/react-components/dist/es/components/Markdown/index.mjs +22 -23
  7. package/dist/es/packages/react-components/dist/es/index.mjs +1 -1
  8. package/dist/es/src/style13.css +1 -1
  9. package/dist/es/src/style14.css +1 -1
  10. package/dist/es/src/style15.css +1 -1
  11. package/dist/es/src/style16.css +1 -1
  12. package/dist/es/src/style17.css +1 -1
  13. package/dist/es/src/style18.css +1 -1
  14. package/dist/es/src/style20.css +1 -1
  15. package/dist/es/src/style21.css +1 -1
  16. package/dist/es/src/style22.css +1 -1
  17. package/dist/es/src/style24.css +1 -1
  18. package/dist/es/src/style25.css +1 -1
  19. package/dist/es/src/style27.css +1 -1
  20. package/dist/es/src/style28.css +1 -1
  21. package/dist/es/src/style7.css +1 -1
  22. package/dist/es/src/style9.css +1 -1
  23. package/dist/lib/index.js +69 -70
  24. package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/fetch.d.ts +44 -0
  25. package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/index.d.ts +1 -0
  26. package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/parse.d.ts +36 -0
  27. package/dist/src/utils/reactCompatibility.d.ts +27 -0
  28. package/dist/src/utils/testAntdPrefix.d.ts +3 -0
  29. package/package.json +3 -3
  30. package/dist/es/node_modules/hast-util-from-parse5/lib/index.mjs +0 -162
  31. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/index.mjs +0 -12
  32. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/aria.mjs +0 -61
  33. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/find.mjs +0 -33
  34. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/html.mjs +0 -368
  35. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/normalize.mjs +0 -6
  36. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/svg.mjs +0 -566
  37. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/case-insensitive-transform.mjs +0 -7
  38. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/case-sensitive-transform.mjs +0 -6
  39. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/create.mjs +0 -14
  40. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/defined-info.mjs +0 -36
  41. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/info.mjs +0 -28
  42. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/merge.mjs +0 -10
  43. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/schema.mjs +0 -21
  44. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/types.mjs +0 -15
  45. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/xlink.mjs +0 -19
  46. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/xml.mjs +0 -15
  47. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/xmlns.mjs +0 -16
  48. package/dist/es/node_modules/hast-util-from-parse5/node_modules/vfile-location/lib/index.mjs +0 -47
  49. package/dist/es/node_modules/hast-util-from-parse5/node_modules/web-namespaces/index.mjs +0 -11
  50. package/dist/es/node_modules/rehype-raw/lib/index.mjs +0 -26
  51. package/dist/es/node_modules/rehype-raw/node_modules/entities/dist/esm/decode-codepoint.mjs +0 -38
  52. package/dist/es/node_modules/rehype-raw/node_modules/entities/dist/esm/decode.mjs +0 -251
  53. package/dist/es/node_modules/rehype-raw/node_modules/entities/dist/esm/generated/decode-data-html.mjs +0 -7
  54. package/dist/es/node_modules/rehype-raw/node_modules/hast-util-raw/lib/index.mjs +0 -249
  55. package/dist/es/node_modules/rehype-raw/node_modules/hast-util-to-parse5/lib/index.mjs +0 -125
  56. package/dist/es/node_modules/rehype-raw/node_modules/html-void-elements/index.mjs +0 -4
  57. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/doctype.mjs +0 -34
  58. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/error-codes.mjs +0 -7
  59. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/foreign-content.mjs +0 -103
  60. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/html.mjs +0 -44
  61. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/token.mjs +0 -14
  62. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/unicode.mjs +0 -38
  63. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/parser/formatting-element-list.mjs +0 -91
  64. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/parser/index.mjs +0 -2308
  65. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/parser/open-element-stack.mjs +0 -220
  66. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/serializer/index.mjs +0 -2
  67. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/tokenizer/index.mjs +0 -1948
  68. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/tokenizer/preprocessor.mjs +0 -92
  69. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/tree-adapters/default.mjs +0 -173
  70. package/dist/es/node_modules/rehype-raw/node_modules/property-information/index.mjs +0 -12
  71. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/aria.mjs +0 -61
  72. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/find.mjs +0 -33
  73. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/html.mjs +0 -368
  74. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/normalize.mjs +0 -6
  75. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/svg.mjs +0 -566
  76. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/case-insensitive-transform.mjs +0 -7
  77. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/case-sensitive-transform.mjs +0 -6
  78. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/create.mjs +0 -17
  79. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/defined-info.mjs +0 -27
  80. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/info.mjs +0 -23
  81. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/merge.mjs +0 -11
  82. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/schema.mjs +0 -17
  83. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/types.mjs +0 -15
  84. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/xlink.mjs +0 -19
  85. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/xml.mjs +0 -15
  86. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/xmlns.mjs +0 -16
  87. package/dist/es/node_modules/rehype-raw/node_modules/unist-util-visit/lib/index.mjs +0 -16
  88. package/dist/es/node_modules/rehype-raw/node_modules/web-namespaces/index.mjs +0 -11
  89. package/dist/es/node_modules/zwitch/index.mjs +0 -18
@@ -1,91 +0,0 @@
1
- var s;
2
- (function(a) {
3
- a[a.Marker = 0] = "Marker", a[a.Element = 1] = "Element";
4
- })(s || (s = {}));
5
- const c = {
6
- type: s.Marker
7
- };
8
- class m {
9
- constructor(e) {
10
- this.treeAdapter = e, this.entries = [], this.bookmark = null;
11
- }
12
- //Noah Ark's condition
13
- //OPTIMIZATION: at first we try to find possible candidates for exclusion using
14
- //lightweight heuristics without thorough attributes check.
15
- _getNoahArkConditionCandidates(e, t) {
16
- const n = [], l = t.length, h = this.treeAdapter.getTagName(e), i = this.treeAdapter.getNamespaceURI(e);
17
- for (let r = 0; r < this.entries.length; r++) {
18
- const o = this.entries[r];
19
- if (o.type === s.Marker)
20
- break;
21
- const {
22
- element: d
23
- } = o;
24
- if (this.treeAdapter.getTagName(d) === h && this.treeAdapter.getNamespaceURI(d) === i) {
25
- const A = this.treeAdapter.getAttrList(d);
26
- A.length === l && n.push({
27
- idx: r,
28
- attrs: A
29
- });
30
- }
31
- }
32
- return n;
33
- }
34
- _ensureNoahArkCondition(e) {
35
- if (this.entries.length < 3)
36
- return;
37
- const t = this.treeAdapter.getAttrList(e), n = this._getNoahArkConditionCandidates(e, t);
38
- if (n.length < 3)
39
- return;
40
- const l = new Map(t.map((i) => [i.name, i.value]));
41
- let h = 0;
42
- for (let i = 0; i < n.length; i++) {
43
- const r = n[i];
44
- r.attrs.every((o) => l.get(o.name) === o.value) && (h += 1, h >= 3 && this.entries.splice(r.idx, 1));
45
- }
46
- }
47
- //Mutations
48
- insertMarker() {
49
- this.entries.unshift(c);
50
- }
51
- pushElement(e, t) {
52
- this._ensureNoahArkCondition(e), this.entries.unshift({
53
- type: s.Element,
54
- element: e,
55
- token: t
56
- });
57
- }
58
- insertElementAfterBookmark(e, t) {
59
- const n = this.entries.indexOf(this.bookmark);
60
- this.entries.splice(n, 0, {
61
- type: s.Element,
62
- element: e,
63
- token: t
64
- });
65
- }
66
- removeEntry(e) {
67
- const t = this.entries.indexOf(e);
68
- t !== -1 && this.entries.splice(t, 1);
69
- }
70
- /**
71
- * Clears the list of formatting elements up to the last marker.
72
- *
73
- * @see https://html.spec.whatwg.org/multipage/parsing.html#clear-the-list-of-active-formatting-elements-up-to-the-last-marker
74
- */
75
- clearToLastMarker() {
76
- const e = this.entries.indexOf(c);
77
- e === -1 ? this.entries.length = 0 : this.entries.splice(0, e + 1);
78
- }
79
- //Search
80
- getElementEntryInScopeWithTagName(e) {
81
- const t = this.entries.find((n) => n.type === s.Marker || this.treeAdapter.getTagName(n.element) === e);
82
- return t && t.type === s.Element ? t : null;
83
- }
84
- getElementEntry(e) {
85
- return this.entries.find((t) => t.type === s.Element && t.element === e);
86
- }
87
- }
88
- export {
89
- s as EntryType,
90
- m as FormattingElementList
91
- };