@glodon-aiot/agent-cli-ui 3.0.5 → 3.0.7-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.
Files changed (70) hide show
  1. package/dist/es/Dialog/AgentChat/index.mjs +371 -353
  2. package/dist/es/_virtual/lib.mjs +4 -0
  3. package/dist/es/_virtual/ua-parser.min.mjs +4 -0
  4. package/dist/es/components/Markdown/ATag/index.mjs +47 -0
  5. package/dist/es/components/Markdown/Image/index.mjs +56 -22
  6. package/dist/es/components/Markdown/Video/index.mjs +22 -0
  7. package/dist/es/components/Markdown/index.mjs +41 -37
  8. package/dist/es/index.mjs +15 -15
  9. package/dist/es/node_modules/@react-spring/animated/dist/react-spring-animated.esm.mjs +201 -0
  10. package/dist/es/node_modules/@react-spring/core/dist/react-spring-core.esm.mjs +1087 -0
  11. package/dist/es/node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.mjs +104 -0
  12. package/dist/es/node_modules/@react-spring/shared/dist/react-spring-shared.esm.mjs +568 -0
  13. package/dist/es/node_modules/@react-spring/web/dist/react-spring-web.esm.mjs +158 -0
  14. package/dist/es/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.mjs +847 -0
  15. package/dist/es/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.mjs +35 -0
  16. package/dist/es/node_modules/@use-gesture/core/dist/use-gesture-core.esm.mjs +226 -0
  17. package/dist/es/node_modules/@use-gesture/react/dist/use-gesture-react.esm.mjs +33 -0
  18. package/dist/es/node_modules/ahooks/es/useRafState/index.mjs +16 -0
  19. package/dist/es/node_modules/ahooks/es/useSize/index.mjs +34 -0
  20. package/dist/es/node_modules/ahooks/es/useUnmountedRef/index.mjs +13 -0
  21. package/dist/es/node_modules/ahooks/es/utils/useIsomorphicLayoutEffectWithTarget.mjs +8 -0
  22. package/dist/es/node_modules/ahooks/es/utils/useLayoutEffectWithTarget.mjs +7 -0
  23. package/dist/es/node_modules/antd-mobile/es/components/config-provider/config-provider.mjs +20 -0
  24. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.css.mjs +4 -0
  25. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.mjs +76 -0
  26. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/index.mjs +14 -0
  27. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/methods.mjs +34 -0
  28. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slide.mjs +172 -0
  29. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slides.mjs +81 -0
  30. package/dist/es/node_modules/antd-mobile/es/components/mask/index.mjs +5 -0
  31. package/dist/es/node_modules/antd-mobile/es/components/mask/mask.css.mjs +4 -0
  32. package/dist/es/node_modules/antd-mobile/es/components/mask/mask.mjs +84 -0
  33. package/dist/es/node_modules/antd-mobile/es/components/safe-area/index.mjs +5 -0
  34. package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.css.mjs +4 -0
  35. package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.mjs +9 -0
  36. package/dist/es/node_modules/antd-mobile/es/global/global.css.mjs +4 -0
  37. package/dist/es/node_modules/antd-mobile/es/global/index.mjs +4 -0
  38. package/dist/es/node_modules/antd-mobile/es/locales/zh-CN.mjs +141 -0
  39. package/dist/es/node_modules/antd-mobile/es/utils/attach-properties-to-component.mjs +9 -0
  40. package/dist/es/node_modules/antd-mobile/es/utils/bound.mjs +7 -0
  41. package/dist/es/node_modules/antd-mobile/es/utils/can-use-dom.mjs +4 -0
  42. package/dist/es/node_modules/antd-mobile/es/utils/convert-px.mjs +9 -0
  43. package/dist/es/node_modules/antd-mobile/es/utils/get-container.mjs +6 -0
  44. package/dist/es/node_modules/antd-mobile/es/utils/get-scroll-parent.mjs +22 -0
  45. package/dist/es/node_modules/antd-mobile/es/utils/matrix.mjs +11 -0
  46. package/dist/es/node_modules/antd-mobile/es/utils/native-props.mjs +12 -0
  47. package/dist/es/node_modules/antd-mobile/es/utils/render-imperatively.mjs +46 -0
  48. package/dist/es/node_modules/antd-mobile/es/utils/render-to-body.mjs +12 -0
  49. package/dist/es/node_modules/antd-mobile/es/utils/render-to-container.mjs +13 -0
  50. package/dist/es/node_modules/antd-mobile/es/utils/render.mjs +52 -0
  51. package/dist/es/node_modules/antd-mobile/es/utils/rubberband.mjs +11 -0
  52. package/dist/es/node_modules/antd-mobile/es/utils/should-render.mjs +10 -0
  53. package/dist/es/node_modules/antd-mobile/es/utils/supports-passive.mjs +15 -0
  54. package/dist/es/node_modules/antd-mobile/es/utils/use-drag-and-pinch.mjs +6 -0
  55. package/dist/es/node_modules/antd-mobile/es/utils/use-initialized.mjs +8 -0
  56. package/dist/es/node_modules/antd-mobile/es/utils/use-lock-scroll.mjs +54 -0
  57. package/dist/es/node_modules/antd-mobile/es/utils/use-touch.mjs +32 -0
  58. package/dist/es/node_modules/antd-mobile/es/utils/with-default-props.mjs +11 -0
  59. package/dist/es/node_modules/antd-mobile/es/utils/with-stop-propagation.mjs +19 -0
  60. package/dist/es/node_modules/react/cjs/react-jsx-runtime.production.min.mjs +11 -11
  61. package/dist/es/node_modules/react-device-detect/dist/lib.mjs +723 -0
  62. package/dist/es/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.mjs +294 -0
  63. package/dist/es/node_modules/tslib/tslib.es6.mjs +56 -7
  64. package/dist/es/node_modules/ua-parser-js/dist/ua-parser.min.mjs +120 -0
  65. package/dist/es/utils/index.mjs +37 -23
  66. package/dist/lib/index.js +50 -48
  67. package/dist/src/components/Markdown/ATag/index.d.ts +3 -0
  68. package/dist/src/components/Markdown/Video/index.d.ts +3 -0
  69. package/dist/src/utils/index.d.ts +1 -0
  70. package/package.json +3 -3
@@ -0,0 +1,158 @@
1
+ import { BailSignal as ot, Controller as st, FrameValue as it, Interpolation as at, SpringContext as nt, SpringRef as lt, SpringValue as ut, config as dt, inferTo as pt, useSpring as ct, useSprings as ft } from "../../core/dist/react-spring-core.esm.mjs";
2
+ import { unstable_batchedUpdates as k } from "react-dom";
3
+ import { Globals as A, createStringInterpolator as F, colors as _, eachProp as j, is as b, FluidValue as I, each as m, getFluidValue as v, hasFluidValue as w, addFluidObserver as T, removeFluidObserver as P, callFluidObservers as $, toArray as V } from "../../shared/dist/react-spring-shared.esm.mjs";
4
+ import { createInterpolator as ht, easings as bt, useIsomorphicLayoutEffect as gt } from "../../shared/dist/react-spring-shared.esm.mjs";
5
+ import { createHost as E, AnimatedObject as G } from "../../animated/dist/react-spring-animated.esm.mjs";
6
+ function y(t, e) {
7
+ if (t == null)
8
+ return {};
9
+ var r = {}, s = Object.keys(t), a, i;
10
+ for (i = 0; i < s.length; i++)
11
+ a = s[i], !(e.indexOf(a) >= 0) && (r[a] = t[a]);
12
+ return r;
13
+ }
14
+ const L = ["style", "children", "scrollTop", "scrollLeft", "viewBox"], C = /^--/;
15
+ function R(t, e) {
16
+ return e == null || typeof e == "boolean" || e === "" ? "" : typeof e == "number" && e !== 0 && !C.test(t) && !(h.hasOwnProperty(t) && h[t]) ? e + "px" : ("" + e).trim();
17
+ }
18
+ const S = {};
19
+ function N(t, e) {
20
+ if (!t.nodeType || !t.setAttribute)
21
+ return !1;
22
+ const r = t.nodeName === "filter" || t.parentNode && t.parentNode.nodeName === "filter", s = e, {
23
+ style: a,
24
+ children: i,
25
+ scrollTop: l,
26
+ scrollLeft: u,
27
+ viewBox: d
28
+ } = s, n = y(s, L), c = Object.values(n), f = Object.keys(n).map((o) => r || t.hasAttribute(o) ? o : S[o] || (S[o] = o.replace(/([A-Z])/g, (p) => "-" + p.toLowerCase())));
29
+ i !== void 0 && (t.textContent = i);
30
+ for (let o in a)
31
+ if (a.hasOwnProperty(o)) {
32
+ const p = R(o, a[o]);
33
+ C.test(o) ? t.style.setProperty(o, p) : t.style[o] = p;
34
+ }
35
+ f.forEach((o, p) => {
36
+ t.setAttribute(o, c[p]);
37
+ }), l !== void 0 && (t.scrollTop = l), u !== void 0 && (t.scrollLeft = u), d !== void 0 && t.setAttribute("viewBox", d);
38
+ }
39
+ let h = {
40
+ animationIterationCount: !0,
41
+ borderImageOutset: !0,
42
+ borderImageSlice: !0,
43
+ borderImageWidth: !0,
44
+ boxFlex: !0,
45
+ boxFlexGroup: !0,
46
+ boxOrdinalGroup: !0,
47
+ columnCount: !0,
48
+ columns: !0,
49
+ flex: !0,
50
+ flexGrow: !0,
51
+ flexPositive: !0,
52
+ flexShrink: !0,
53
+ flexNegative: !0,
54
+ flexOrder: !0,
55
+ gridRow: !0,
56
+ gridRowEnd: !0,
57
+ gridRowSpan: !0,
58
+ gridRowStart: !0,
59
+ gridColumn: !0,
60
+ gridColumnEnd: !0,
61
+ gridColumnSpan: !0,
62
+ gridColumnStart: !0,
63
+ fontWeight: !0,
64
+ lineClamp: !0,
65
+ lineHeight: !0,
66
+ opacity: !0,
67
+ order: !0,
68
+ orphans: !0,
69
+ tabSize: !0,
70
+ widows: !0,
71
+ zIndex: !0,
72
+ zoom: !0,
73
+ fillOpacity: !0,
74
+ floodOpacity: !0,
75
+ stopOpacity: !0,
76
+ strokeDasharray: !0,
77
+ strokeDashoffset: !0,
78
+ strokeMiterlimit: !0,
79
+ strokeOpacity: !0,
80
+ strokeWidth: !0
81
+ };
82
+ const W = (t, e) => t + e.charAt(0).toUpperCase() + e.substring(1), z = ["Webkit", "Ms", "Moz", "O"];
83
+ h = Object.keys(h).reduce((t, e) => (z.forEach((r) => t[W(r, e)] = t[e]), t), h);
84
+ const U = ["x", "y", "z"], B = /^(matrix|translate|scale|rotate|skew)/, M = /^(translate)/, q = /^(rotate|skew)/, x = (t, e) => b.num(t) && t !== 0 ? t + e : t, g = (t, e) => b.arr(t) ? t.every((r) => g(r, e)) : b.num(t) ? t === e : parseFloat(t) === e;
85
+ class D extends G {
86
+ constructor(e) {
87
+ let {
88
+ x: r,
89
+ y: s,
90
+ z: a
91
+ } = e, i = y(e, U);
92
+ const l = [], u = [];
93
+ (r || s || a) && (l.push([r || 0, s || 0, a || 0]), u.push((d) => [`translate3d(${d.map((n) => x(n, "px")).join(",")})`, g(d, 0)])), j(i, (d, n) => {
94
+ if (n === "transform")
95
+ l.push([d || ""]), u.push((c) => [c, c === ""]);
96
+ else if (B.test(n)) {
97
+ if (delete i[n], b.und(d))
98
+ return;
99
+ const c = M.test(n) ? "px" : q.test(n) ? "deg" : "";
100
+ l.push(V(d)), u.push(n === "rotate3d" ? ([f, o, p, O]) => [`rotate3d(${f},${o},${p},${x(O, c)})`, g(O, 0)] : (f) => [`${n}(${f.map((o) => x(o, c)).join(",")})`, g(f, n.startsWith("scale") ? 1 : 0)]);
101
+ }
102
+ }), l.length && (i.transform = new H(l, u)), super(i);
103
+ }
104
+ }
105
+ class H extends I {
106
+ constructor(e, r) {
107
+ super(), this._value = null, this.inputs = e, this.transforms = r;
108
+ }
109
+ get() {
110
+ return this._value || (this._value = this._get());
111
+ }
112
+ _get() {
113
+ let e = "", r = !0;
114
+ return m(this.inputs, (s, a) => {
115
+ const i = v(s[0]), [l, u] = this.transforms[a](b.arr(i) ? i : s.map(v));
116
+ e += " " + l, r = r && u;
117
+ }), r ? "none" : e;
118
+ }
119
+ observerAdded(e) {
120
+ e == 1 && m(this.inputs, (r) => m(r, (s) => w(s) && T(s, this)));
121
+ }
122
+ observerRemoved(e) {
123
+ e == 0 && m(this.inputs, (r) => m(r, (s) => w(s) && P(s, this)));
124
+ }
125
+ eventObserved(e) {
126
+ e.type == "change" && (this._value = null), $(this, e);
127
+ }
128
+ }
129
+ const K = ["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"], Z = ["scrollTop", "scrollLeft"];
130
+ A.assign({
131
+ batchedUpdates: k,
132
+ createStringInterpolator: F,
133
+ colors: _
134
+ });
135
+ const J = E(K, {
136
+ applyAnimatedValues: N,
137
+ createAnimatedStyle: (t) => new D(t),
138
+ getComponentProps: (t) => y(t, Z)
139
+ }), tt = J.animated;
140
+ export {
141
+ ot as BailSignal,
142
+ st as Controller,
143
+ it as FrameValue,
144
+ A as Globals,
145
+ at as Interpolation,
146
+ nt as SpringContext,
147
+ lt as SpringRef,
148
+ ut as SpringValue,
149
+ tt as a,
150
+ tt as animated,
151
+ dt as config,
152
+ ht as createInterpolator,
153
+ bt as easings,
154
+ pt as inferTo,
155
+ gt as useIsomorphicLayoutEffect,
156
+ ct as useSpring,
157
+ ft as useSprings
158
+ };