@glodon-aiot/agent-cli-ui 3.0.6 → 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 -22
  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,201 @@
1
+ import { eachProp as g, defineHidden as H, hasFluidValue as S, getFluidValue as $, each as c, is as o, isAnimatedString as F, createInterpolator as O, useForceUpdate as B, useIsomorphicLayoutEffect as D, addFluidObserver as K, removeFluidObserver as w, useOnce as L } from "../../shared/dist/react-spring-shared.esm.mjs";
2
+ import * as M from "react";
3
+ import { forwardRef as k, useRef as T, useCallback as q, useEffect as z } from "react";
4
+ import { raf as j } from "../../rafz/dist/react-spring-rafz.esm.mjs";
5
+ const h = Symbol.for("Animated:node"), G = (e) => !!e && e[h] === e, J = (e) => e && e[h], Q = (e, t) => H(e, h, t), W = (e) => e && e[h] && e[h].getPayload();
6
+ class U {
7
+ constructor() {
8
+ this.payload = void 0, Q(this, this);
9
+ }
10
+ getPayload() {
11
+ return this.payload || [];
12
+ }
13
+ }
14
+ class f extends U {
15
+ constructor(t) {
16
+ super(), this.done = !0, this.elapsedTime = void 0, this.lastPosition = void 0, this.lastVelocity = void 0, this.v0 = void 0, this.durationProgress = 0, this._value = t, o.num(this._value) && (this.lastPosition = this._value);
17
+ }
18
+ static create(t) {
19
+ return new f(t);
20
+ }
21
+ getPayload() {
22
+ return [this];
23
+ }
24
+ getValue() {
25
+ return this._value;
26
+ }
27
+ setValue(t, s) {
28
+ return o.num(t) && (this.lastPosition = t, s && (t = Math.round(t / s) * s, this.done && (this.lastPosition = t))), this._value === t ? !1 : (this._value = t, !0);
29
+ }
30
+ reset() {
31
+ const {
32
+ done: t
33
+ } = this;
34
+ this.done = !1, o.num(this._value) && (this.elapsedTime = 0, this.durationProgress = 0, this.lastPosition = this._value, t && (this.lastVelocity = null), this.v0 = null);
35
+ }
36
+ }
37
+ class y extends f {
38
+ constructor(t) {
39
+ super(0), this._string = null, this._toString = void 0, this._toString = O({
40
+ output: [t, t]
41
+ });
42
+ }
43
+ static create(t) {
44
+ return new y(t);
45
+ }
46
+ getValue() {
47
+ let t = this._string;
48
+ return t == null ? this._string = this._toString(this._value) : t;
49
+ }
50
+ setValue(t) {
51
+ if (o.str(t)) {
52
+ if (t == this._string)
53
+ return !1;
54
+ this._string = t, this._value = 1;
55
+ } else if (super.setValue(t))
56
+ this._string = null;
57
+ else
58
+ return !1;
59
+ return !0;
60
+ }
61
+ reset(t) {
62
+ t && (this._toString = O({
63
+ output: [this.getValue(), t]
64
+ })), this._value = 0, super.reset();
65
+ }
66
+ }
67
+ const p = {
68
+ dependencies: null
69
+ };
70
+ class V extends U {
71
+ constructor(t) {
72
+ super(), this.source = t, this.setValue(t);
73
+ }
74
+ getValue(t) {
75
+ const s = {};
76
+ return g(this.source, (i, r) => {
77
+ G(i) ? s[r] = i.getValue(t) : S(i) ? s[r] = $(i) : t || (s[r] = i);
78
+ }), s;
79
+ }
80
+ setValue(t) {
81
+ this.source = t, this.payload = this._makePayload(t);
82
+ }
83
+ reset() {
84
+ this.payload && c(this.payload, (t) => t.reset());
85
+ }
86
+ _makePayload(t) {
87
+ if (t) {
88
+ const s = /* @__PURE__ */ new Set();
89
+ return g(t, this._addToPayload, s), Array.from(s);
90
+ }
91
+ }
92
+ _addToPayload(t) {
93
+ p.dependencies && S(t) && p.dependencies.add(t);
94
+ const s = W(t);
95
+ s && c(s, (i) => this.add(i));
96
+ }
97
+ }
98
+ class P extends V {
99
+ constructor(t) {
100
+ super(t);
101
+ }
102
+ static create(t) {
103
+ return new P(t);
104
+ }
105
+ getValue() {
106
+ return this.source.map((t) => t.getValue());
107
+ }
108
+ setValue(t) {
109
+ const s = this.getPayload();
110
+ return t.length == s.length ? s.map((i, r) => i.setValue(t[r])).some(Boolean) : (super.setValue(t.map(X)), !0);
111
+ }
112
+ }
113
+ function X(e) {
114
+ return (F(e) ? y : f).create(e);
115
+ }
116
+ function it(e) {
117
+ const t = J(e);
118
+ return t ? t.constructor : o.arr(e) ? P : F(e) ? y : f;
119
+ }
120
+ function m() {
121
+ return m = Object.assign ? Object.assign.bind() : function(e) {
122
+ for (var t = 1; t < arguments.length; t++) {
123
+ var s = arguments[t];
124
+ for (var i in s)
125
+ Object.prototype.hasOwnProperty.call(s, i) && (e[i] = s[i]);
126
+ }
127
+ return e;
128
+ }, m.apply(this, arguments);
129
+ }
130
+ const x = (e, t) => {
131
+ const s = !o.fun(e) || e.prototype && e.prototype.isReactComponent;
132
+ return k((i, r) => {
133
+ const l = T(null), n = s && q((a) => {
134
+ l.current = C(r, a);
135
+ }, [r]), [d, _] = Z(i, t), E = B(), A = () => {
136
+ const a = l.current;
137
+ if (s && !a)
138
+ return;
139
+ (a ? t.applyAnimatedValues(a, d.getValue(!0)) : !1) === !1 && E();
140
+ }, b = new Y(A, _), u = T();
141
+ D(() => (u.current = b, c(_, (a) => K(a, b)), () => {
142
+ u.current && (c(u.current.deps, (a) => w(a, u.current)), j.cancel(u.current.update));
143
+ })), z(A, []), L(() => () => {
144
+ const a = u.current;
145
+ c(a.deps, (v) => w(v, a));
146
+ });
147
+ const I = t.getComponentProps(d.getValue());
148
+ return M.createElement(e, m({}, I, {
149
+ ref: n
150
+ }));
151
+ });
152
+ };
153
+ class Y {
154
+ constructor(t, s) {
155
+ this.update = t, this.deps = s;
156
+ }
157
+ eventObserved(t) {
158
+ t.type == "change" && j.write(this.update);
159
+ }
160
+ }
161
+ function Z(e, t) {
162
+ const s = /* @__PURE__ */ new Set();
163
+ return p.dependencies = s, e.style && (e = m({}, e, {
164
+ style: t.createAnimatedStyle(e.style)
165
+ })), e = new V(e), p.dependencies = null, [e, s];
166
+ }
167
+ function C(e, t) {
168
+ return e && (o.fun(e) ? e(t) : e.current = t), t;
169
+ }
170
+ const N = Symbol.for("AnimatedComponent"), nt = (e, {
171
+ applyAnimatedValues: t = () => !1,
172
+ createAnimatedStyle: s = (r) => new V(r),
173
+ getComponentProps: i = (r) => r
174
+ } = {}) => {
175
+ const r = {
176
+ applyAnimatedValues: t,
177
+ createAnimatedStyle: s,
178
+ getComponentProps: i
179
+ }, l = (n) => {
180
+ const d = R(n) || "Anonymous";
181
+ return o.str(n) ? n = l[n] || (l[n] = x(n, r)) : n = n[N] || (n[N] = x(n, r)), n.displayName = `Animated(${d})`, n;
182
+ };
183
+ return g(e, (n, d) => {
184
+ o.arr(e) && (d = R(n)), l[d] = l(n);
185
+ }), {
186
+ animated: l
187
+ };
188
+ }, R = (e) => o.str(e) ? e : e && o.str(e.displayName) ? e.displayName : o.fun(e) && e.name || null;
189
+ export {
190
+ U as Animated,
191
+ P as AnimatedArray,
192
+ V as AnimatedObject,
193
+ y as AnimatedString,
194
+ f as AnimatedValue,
195
+ nt as createHost,
196
+ J as getAnimated,
197
+ it as getAnimatedType,
198
+ W as getPayload,
199
+ G as isAnimated,
200
+ Q as setAnimated
201
+ };