@tencentcloud/chat-uikit-react 3.4.8 → 4.5.3

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 (66) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/components/Chat/Chat.js +13 -13
  3. package/dist/components/ChatHeader/AudioCallPicker/AudioCallPicker.js +12 -12
  4. package/dist/components/ChatHeader/ChatHeader.d.ts +1 -1
  5. package/dist/components/ChatHeader/ChatHeader.js +7 -7
  6. package/dist/components/ChatHeader/ChatHeaderUI/ChatHeaderUI.d.ts +1 -1
  7. package/dist/components/ChatHeader/ChatHeaderUI/ChatHeaderUI.js +1 -1
  8. package/dist/components/ChatHeader/VideoCallPicker/VideoCallPicker.js +18 -18
  9. package/dist/components/Checkbox/index.js +1 -1
  10. package/dist/components/Input/Input.js +6 -6
  11. package/dist/components/Modal/Modal.js +13 -13
  12. package/dist/components/Model/index.js +1 -1
  13. package/dist/components/Plugins/index.js +1 -1
  14. package/dist/components/Popup/index.js +1 -1
  15. package/dist/components/PopupNew/Popup.js +11 -11
  16. package/dist/components/Profile/Profile.js +5 -5
  17. package/dist/components/Profile/ProfileDefault.d.ts +1 -1
  18. package/dist/components/Profile/ProfileDefault.js +25 -25
  19. package/dist/components/Profile/myProfile/MyProfile.js +5 -5
  20. package/dist/context/ContactContext.js +2 -2
  21. package/dist/external_modules/{react-vendors-3raCpd-g.js → react-vendors-x_iUMC12.js} +69 -70
  22. package/dist/hooks/useChatHeader.d.ts +1 -1
  23. package/dist/hooks/useChatHeader.js +1 -1
  24. package/dist/index.d.ts +1 -2
  25. package/dist/index.js +49 -114
  26. package/dist/locales/en-US/TUIConversation.d.ts +2 -0
  27. package/dist/locales/en-US/TUIConversation.js +3 -1
  28. package/dist/locales/en-US/index.d.ts +2 -0
  29. package/dist/locales/ja-JP/TUIConversation.d.ts +2 -0
  30. package/dist/locales/ja-JP/TUIConversation.js +3 -1
  31. package/dist/locales/ja-JP/index.d.ts +2 -0
  32. package/dist/locales/ko-KR/TUIConversation.d.ts +2 -0
  33. package/dist/locales/ko-KR/TUIConversation.js +3 -1
  34. package/dist/locales/ko-KR/index.d.ts +2 -0
  35. package/dist/locales/zh-CN/TUIConversation.d.ts +2 -0
  36. package/dist/locales/zh-CN/TUIConversation.js +3 -1
  37. package/dist/locales/zh-CN/index.d.ts +2 -0
  38. package/dist/locales/zh-TW/TUIConversation.d.ts +2 -0
  39. package/dist/locales/zh-TW/TUIConversation.js +3 -1
  40. package/dist/locales/zh-TW/index.d.ts +2 -0
  41. package/dist/states/UIManagerState.js +7 -6
  42. package/dist/styles/index.css +1 -1
  43. package/dist/styles/index2.css +1 -1
  44. package/dist/styles/index3.css +1 -1
  45. package/dist/styles/index4.css +1 -1
  46. package/dist/styles/index5.css +1 -1
  47. package/package.json +3 -3
  48. package/src/components/Chat/Chat.tsx +1 -1
  49. package/src/components/ChatHeader/AudioCallPicker/AudioCallPicker.tsx +2 -2
  50. package/src/components/ChatHeader/ChatHeader.tsx +2 -2
  51. package/src/components/ChatHeader/ChatHeaderUI/ChatHeaderUI.tsx +2 -2
  52. package/src/components/ChatHeader/VideoCallPicker/VideoCallPicker.tsx +2 -2
  53. package/src/components/Profile/ProfileDefault.tsx +2 -2
  54. package/src/components/Profile/myProfile/MyProfile.tsx +3 -3
  55. package/src/hooks/useChatHeader.ts +2 -2
  56. package/src/index.ts +11 -2
  57. package/src/locales/en-US/TUIConversation.ts +2 -0
  58. package/src/locales/ja-JP/TUIConversation.ts +2 -0
  59. package/src/locales/ko-KR/TUIConversation.ts +2 -0
  60. package/src/locales/zh-CN/TUIConversation.ts +2 -0
  61. package/src/locales/zh-TW/TUIConversation.ts +2 -0
  62. package/vite.config.ts +32 -18
  63. package/dist/external_modules/mui-BhvHeL5-.js +0 -2253
  64. package/dist/external_modules/zustand-CDmQR4co.js +0 -24
  65. package/dist/index-BLFl-K0_-DzfAZFZt.js +0 -32905
  66. package/dist/styles/index-BLFl-K0_.css +0 -1
@@ -1,15 +1,15 @@
1
1
  import { jsxs as o, jsx as a } from "react/jsx-runtime";
2
- import { defaultUserAvatar as c } from "../../../constant/avatar.js";
3
- import { A as n } from "../../../index-BLFl-K0_-DzfAZFZt.js";
4
- import { IconHorizontalMoreTwo as l } from "@tencentcloud/uikit-base-component-react";
2
+ import { IconHorizontalMoreTwo as c } from "@tencentcloud/uikit-base-component-react";
3
+ import { Avatar as n } from "tuikit-atomicx-react/chat";
4
+ import { defaultUserAvatar as l } from "../../../constant/avatar.js";
5
5
  import '../../../styles/MyProfile.css';function v(i) {
6
6
  const { profile: r, className: s = "", handleAvatar: e } = i;
7
7
  return ((r == null ? void 0 : r.nick) || (r == null ? void 0 : r.userID)) && /* @__PURE__ */ o("div", { className: `profile ${s}`, children: [
8
8
  /* @__PURE__ */ o("div", { className: "profile-content", onClick: e, children: [
9
- /* @__PURE__ */ a(n, { src: r.avatar || c }),
9
+ /* @__PURE__ */ a(n, { src: r.avatar || l }),
10
10
  /* @__PURE__ */ a("div", { className: "profile-name", children: r.nick || r.userID })
11
11
  ] }),
12
- /* @__PURE__ */ a("div", { className: "profile-more", onClick: e, children: /* @__PURE__ */ a(l, { size: "24px" }) })
12
+ /* @__PURE__ */ a("div", { className: "profile-more", onClick: e, children: /* @__PURE__ */ a(c, { size: "24px" }) })
13
13
  ] });
14
14
  }
15
15
  export {
@@ -4,12 +4,12 @@ const e = r.createContext({});
4
4
  function C({ children: o, value: t }) {
5
5
  return /* @__PURE__ */ n(e.Provider, { value: t, children: o });
6
6
  }
7
- function a(o) {
7
+ function i(o) {
8
8
  const t = c(e);
9
9
  return !t && o ? {} : t;
10
10
  }
11
11
  export {
12
12
  e as TUIContactContext,
13
13
  C as TUIContactContextProvider,
14
- a as useTUIContactContext
14
+ i as useTUIContactContext
15
15
  };
@@ -1,7 +1,33 @@
1
1
  import { g as Ye } from "./classnames-HRMVOjAa.js";
2
2
  import V from "react";
3
3
  import Q from "react-dom";
4
- var he = { exports: {} }, ee = { exports: {} }, S = {};
4
+ function te() {
5
+ return te = Object.assign ? Object.assign.bind() : function(r) {
6
+ for (var u = 1; u < arguments.length; u++) {
7
+ var l = arguments[u];
8
+ for (var e in l) ({}).hasOwnProperty.call(l, e) && (r[e] = l[e]);
9
+ }
10
+ return r;
11
+ }, te.apply(null, arguments);
12
+ }
13
+ function Ie(r, u) {
14
+ if (r == null) return {};
15
+ var l = {};
16
+ for (var e in r) if ({}.hasOwnProperty.call(r, e)) {
17
+ if (u.indexOf(e) !== -1) continue;
18
+ l[e] = r[e];
19
+ }
20
+ return l;
21
+ }
22
+ function he(r, u) {
23
+ return he = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(l, e) {
24
+ return l.__proto__ = e, l;
25
+ }, he(r, u);
26
+ }
27
+ function je(r, u) {
28
+ r.prototype = Object.create(u.prototype), r.prototype.constructor = r, he(r, u);
29
+ }
30
+ var me = { exports: {} }, ee = { exports: {} }, S = {};
5
31
  /** @license React v16.13.1
6
32
  * react-is.production.min.js
7
33
  *
@@ -76,7 +102,7 @@ function We() {
76
102
  return typeof c == "string" || typeof c == "function" || c === e || c === p || c === t || c === i || c === E || c === P || typeof c == "object" && c !== null && (c.$$typeof === M || c.$$typeof === A || c.$$typeof === a || c.$$typeof === n || c.$$typeof === v || c.$$typeof === I || c.$$typeof === D || c.$$typeof === B || c.$$typeof === w);
77
103
  }, S.typeOf = $, S;
78
104
  }
79
- var _ = {};
105
+ var R = {};
80
106
  /** @license React v16.13.1
81
107
  * react-is.development.js
82
108
  *
@@ -156,7 +182,7 @@ function Ue() {
156
182
  function C(s) {
157
183
  return N(s) === l;
158
184
  }
159
- function R(s) {
185
+ function _(s) {
160
186
  return N(s) === t;
161
187
  }
162
188
  function O(s) {
@@ -165,11 +191,11 @@ function Ue() {
165
191
  function j(s) {
166
192
  return N(s) === E;
167
193
  }
168
- _.AsyncMode = c, _.ConcurrentMode = Y, _.ContextConsumer = re, _.ContextProvider = ne, _.Element = oe, _.ForwardRef = ie, _.Fragment = J, _.Lazy = ae, _.Memo = se, _.Portal = z, _.Profiler = ue, _.StrictMode = k, _.Suspense = W, _.isAsyncMode = ce, _.isConcurrentMode = o, _.isContextConsumer = d, _.isContextProvider = x, _.isElement = g, _.isForwardRef = h, _.isFragment = T, _.isLazy = m, _.isMemo = b, _.isPortal = C, _.isProfiler = R, _.isStrictMode = O, _.isSuspense = j, _.isValidElementType = $, _.typeOf = N;
169
- }()), _;
194
+ R.AsyncMode = c, R.ConcurrentMode = Y, R.ContextConsumer = re, R.ContextProvider = ne, R.Element = oe, R.ForwardRef = ie, R.Fragment = J, R.Lazy = ae, R.Memo = se, R.Portal = z, R.Profiler = ue, R.StrictMode = k, R.Suspense = W, R.isAsyncMode = ce, R.isConcurrentMode = o, R.isContextConsumer = d, R.isContextProvider = x, R.isElement = g, R.isForwardRef = h, R.isFragment = T, R.isLazy = m, R.isMemo = b, R.isPortal = C, R.isProfiler = _, R.isStrictMode = O, R.isSuspense = j, R.isValidElementType = $, R.typeOf = N;
195
+ }()), R;
170
196
  }
171
197
  var Oe;
172
- function Ie() {
198
+ function Me() {
173
199
  return Oe || (Oe = 1, process.env.NODE_ENV === "production" ? ee.exports = We() : ee.exports = Ue()), ee.exports;
174
200
  }
175
201
  /*
@@ -223,16 +249,16 @@ function Fe() {
223
249
  return f;
224
250
  }, fe;
225
251
  }
226
- var le, _e;
252
+ var le, Re;
227
253
  function be() {
228
- if (_e) return le;
229
- _e = 1;
254
+ if (Re) return le;
255
+ Re = 1;
230
256
  var r = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
231
257
  return le = r, le;
232
258
  }
233
- var pe, Re;
234
- function je() {
235
- return Re || (Re = 1, pe = Function.call.bind(Object.prototype.hasOwnProperty)), pe;
259
+ var pe, _e;
260
+ function De() {
261
+ return _e || (_e = 1, pe = Function.call.bind(Object.prototype.hasOwnProperty)), pe;
236
262
  }
237
263
  var de, Pe;
238
264
  function Ve() {
@@ -241,7 +267,7 @@ function Ve() {
241
267
  var r = function() {
242
268
  };
243
269
  if (process.env.NODE_ENV !== "production") {
244
- var u = be(), l = {}, e = je();
270
+ var u = be(), l = {}, e = De();
245
271
  r = function(t) {
246
272
  var a = "Warning: " + t;
247
273
  typeof console < "u" && console.error(a);
@@ -287,7 +313,7 @@ var ve, we;
287
313
  function ze() {
288
314
  if (we) return ve;
289
315
  we = 1;
290
- var r = Ie(), u = Fe(), l = be(), e = je(), i = Ve(), t = function() {
316
+ var r = Me(), u = Fe(), l = be(), e = De(), i = Ve(), t = function() {
291
317
  };
292
318
  process.env.NODE_ENV !== "production" && (t = function(n) {
293
319
  var f = "Warning: " + n;
@@ -338,7 +364,7 @@ function ze() {
338
364
  function I(o) {
339
365
  if (process.env.NODE_ENV !== "production")
340
366
  var d = {}, x = 0;
341
- function g(T, m, b, C, R, O, j) {
367
+ function g(T, m, b, C, _, O, j) {
342
368
  if (C = C || P, O = O || b, j !== l) {
343
369
  if (f) {
344
370
  var s = new Error(
@@ -353,15 +379,15 @@ function ze() {
353
379
  ), d[L] = !0, x++);
354
380
  }
355
381
  }
356
- return m[b] == null ? T ? m[b] === null ? new w("The " + R + " `" + O + "` is marked as required " + ("in `" + C + "`, but its value is `null`.")) : new w("The " + R + " `" + O + "` is marked as required in " + ("`" + C + "`, but its value is `undefined`.")) : null : o(m, b, C, R, O);
382
+ return m[b] == null ? T ? m[b] === null ? new w("The " + _ + " `" + O + "` is marked as required " + ("in `" + C + "`, but its value is `null`.")) : new w("The " + _ + " `" + O + "` is marked as required in " + ("`" + C + "`, but its value is `undefined`.")) : null : o(m, b, C, _, O);
357
383
  }
358
384
  var h = g.bind(null, !1);
359
385
  return h.isRequired = g.bind(null, !0), h;
360
386
  }
361
387
  function D(o) {
362
388
  function d(x, g, h, T, m, b) {
363
- var C = x[g], R = k(C);
364
- if (R !== o) {
389
+ var C = x[g], _ = k(C);
390
+ if (_ !== o) {
365
391
  var O = W(C);
366
392
  return new w(
367
393
  "Invalid " + T + " `" + m + "` of type " + ("`" + O + "` supplied to `" + h + "`, expected ") + ("`" + o + "`."),
@@ -384,8 +410,8 @@ function ze() {
384
410
  var C = k(b);
385
411
  return new w("Invalid " + T + " `" + m + "` of type " + ("`" + C + "` supplied to `" + h + "`, expected an array."));
386
412
  }
387
- for (var R = 0; R < b.length; R++) {
388
- var O = o(b, R, h, T, m + "[" + R + "]", l);
413
+ for (var _ = 0; _ < b.length; _++) {
414
+ var O = o(b, _, h, T, m + "[" + _ + "]", l);
389
415
  if (O instanceof Error)
390
416
  return O;
391
417
  }
@@ -434,11 +460,11 @@ function ze() {
434
460
  for (var b = x[g], C = 0; C < o.length; C++)
435
461
  if (M(b, o[C]))
436
462
  return null;
437
- var R = JSON.stringify(o, function(j, s) {
463
+ var _ = JSON.stringify(o, function(j, s) {
438
464
  var L = W(s);
439
465
  return L === "symbol" ? String(s) : s;
440
466
  });
441
- return new w("Invalid " + T + " `" + m + "` of value `" + String(b) + "` " + ("supplied to `" + h + "`, expected one of " + R + "."));
467
+ return new w("Invalid " + T + " `" + m + "` of value `" + String(b) + "` " + ("supplied to `" + h + "`, expected one of " + _ + "."));
442
468
  }
443
469
  return I(d);
444
470
  }
@@ -449,9 +475,9 @@ function ze() {
449
475
  var b = x[g], C = k(b);
450
476
  if (C !== "object")
451
477
  return new w("Invalid " + T + " `" + m + "` of type " + ("`" + C + "` supplied to `" + h + "`, expected an object."));
452
- for (var R in b)
453
- if (e(b, R)) {
454
- var O = o(b, R, h, T, m + "." + R, l);
478
+ for (var _ in b)
479
+ if (e(b, _)) {
480
+ var O = o(b, _, h, T, m + "." + _, l);
455
481
  if (O instanceof Error)
456
482
  return O;
457
483
  }
@@ -470,13 +496,13 @@ function ze() {
470
496
  ), a;
471
497
  }
472
498
  function g(h, T, m, b, C) {
473
- for (var R = [], O = 0; O < o.length; O++) {
499
+ for (var _ = [], O = 0; O < o.length; O++) {
474
500
  var j = o[O], s = j(h, T, m, b, C, l);
475
501
  if (s == null)
476
502
  return null;
477
- s.data && e(s.data, "expectedType") && R.push(s.data.expectedType);
503
+ s.data && e(s.data, "expectedType") && _.push(s.data.expectedType);
478
504
  }
479
- var L = R.length > 0 ? ", expected one of type [" + R.join(", ") + "]" : "";
505
+ var L = _.length > 0 ? ", expected one of type [" + _.join(", ") + "]" : "";
480
506
  return new w("Invalid " + b + " `" + C + "` supplied to " + ("`" + m + "`" + L + "."));
481
507
  }
482
508
  return I(g);
@@ -497,11 +523,11 @@ function ze() {
497
523
  var b = x[g], C = k(b);
498
524
  if (C !== "object")
499
525
  return new w("Invalid " + T + " `" + m + "` of type `" + C + "` " + ("supplied to `" + h + "`, expected `object`."));
500
- for (var R in o) {
501
- var O = o[R];
526
+ for (var _ in o) {
527
+ var O = o[_];
502
528
  if (typeof O != "function")
503
- return J(h, T, m, R, W(O));
504
- var j = O(b, R, h, T, m + "." + R, l);
529
+ return J(h, T, m, _, W(O));
530
+ var j = O(b, _, h, T, m + "." + _, l);
505
531
  if (j)
506
532
  return j;
507
533
  }
@@ -514,8 +540,8 @@ function ze() {
514
540
  var b = x[g], C = k(b);
515
541
  if (C !== "object")
516
542
  return new w("Invalid " + T + " `" + m + "` of type `" + C + "` " + ("supplied to `" + h + "`, expected `object`."));
517
- var R = u({}, x[g], o);
518
- for (var O in R) {
543
+ var _ = u({}, x[g], o);
544
+ for (var O in _) {
519
545
  var j = o[O];
520
546
  if (e(o, O) && typeof j != "function")
521
547
  return J(h, T, m, O, W(j));
@@ -653,38 +679,12 @@ function Ge() {
653
679
  }, ye;
654
680
  }
655
681
  if (process.env.NODE_ENV !== "production") {
656
- var Xe = Ie(), Be = !0;
657
- he.exports = ze()(Xe.isElement, Be);
682
+ var Xe = Me(), Be = !0;
683
+ me.exports = ze()(Xe.isElement, Be);
658
684
  } else
659
- he.exports = Ge()();
660
- var He = he.exports;
685
+ me.exports = Ge()();
686
+ var He = me.exports;
661
687
  const y = /* @__PURE__ */ Ye(He);
662
- function te() {
663
- return te = Object.assign ? Object.assign.bind() : function(r) {
664
- for (var u = 1; u < arguments.length; u++) {
665
- var l = arguments[u];
666
- for (var e in l) ({}).hasOwnProperty.call(l, e) && (r[e] = l[e]);
667
- }
668
- return r;
669
- }, te.apply(null, arguments);
670
- }
671
- function Me(r, u) {
672
- if (r == null) return {};
673
- var l = {};
674
- for (var e in r) if ({}.hasOwnProperty.call(r, e)) {
675
- if (u.indexOf(e) !== -1) continue;
676
- l[e] = r[e];
677
- }
678
- return l;
679
- }
680
- function me(r, u) {
681
- return me = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(l, e) {
682
- return l.__proto__ = e, l;
683
- }, me(r, u);
684
- }
685
- function De(r, u) {
686
- r.prototype = Object.create(u.prototype), r.prototype.constructor = r, me(r, u);
687
- }
688
688
  function Je(r, u) {
689
689
  return r.classList ? !!u && r.classList.contains(u) : (" " + (r.className.baseVal || r.className) + " ").indexOf(" " + u + " ") !== -1;
690
690
  }
@@ -720,7 +720,7 @@ const ke = V.createContext(null);
720
720
  var Le = function(u) {
721
721
  return u.scrollTop;
722
722
  }, H = "unmounted", U = "exited", F = "entering", X = "entered", ge = "exiting", q = /* @__PURE__ */ function(r) {
723
- De(u, r);
723
+ je(u, r);
724
724
  function u(e, i) {
725
725
  var t;
726
726
  t = r.call(this, e, i) || this;
@@ -838,7 +838,7 @@ var Le = function(u) {
838
838
  return null;
839
839
  var t = this.props, a = t.children;
840
840
  t.in, t.mountOnEnter, t.unmountOnExit, t.appear, t.enter, t.exit, t.timeout, t.addEndListener, t.onEnter, t.onEntering, t.onEntered, t.onExit, t.onExiting, t.onExited, t.nodeRef;
841
- var n = Me(t, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
841
+ var n = Ie(t, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
842
842
  return (
843
843
  // allows for nested Transitions
844
844
  /* @__PURE__ */ V.createElement(ke.Provider, {
@@ -1047,7 +1047,7 @@ var tt = function(u, l) {
1047
1047
  return Ze(u, e);
1048
1048
  });
1049
1049
  }, qe = /* @__PURE__ */ function(r) {
1050
- De(u, r);
1050
+ je(u, r);
1051
1051
  function u() {
1052
1052
  for (var e, i = arguments.length, t = new Array(i), a = 0; a < i; a++)
1053
1053
  t[a] = arguments[a];
@@ -1094,7 +1094,7 @@ var tt = function(u, l) {
1094
1094
  }, l.render = function() {
1095
1095
  var i = this.props;
1096
1096
  i.classNames;
1097
- var t = Me(i, ["classNames"]);
1097
+ var t = Ie(i, ["classNames"]);
1098
1098
  return /* @__PURE__ */ V.createElement(q, te({}, t, {
1099
1099
  onEnter: this.onEnter,
1100
1100
  onEntered: this.onEntered,
@@ -1233,6 +1233,5 @@ qe.propTypes = process.env.NODE_ENV !== "production" ? te({}, q.propTypes, {
1233
1233
  onExited: y.func
1234
1234
  }) : {};
1235
1235
  export {
1236
- qe as C,
1237
- y as P
1236
+ qe as C
1238
1237
  };
@@ -1,5 +1,5 @@
1
1
  import { UserStatus } from '../types/user';
2
- import { ConversationModel } from 'tuikit-atomicx-react';
2
+ import { ConversationModel } from 'tuikit-atomicx-react/chat';
3
3
  interface UseChatHeaderStoreReturn {
4
4
  /** im avatar can't be undefined */
5
5
  avatar: string;
@@ -1,5 +1,5 @@
1
1
  import { useMemo as o } from "react";
2
- import { a as p, C as s } from "../index-BLFl-K0_-DzfAZFZt.js";
2
+ import { useConversationListState as p, ConversationType as s } from "tuikit-atomicx-react/chat";
3
3
  import { useUIManagerState as d } from "../states/UIManagerState.js";
4
4
  function G() {
5
5
  const { userStatusMap: i } = d(), { activeConversation: t } = p(), n = t ? t.type === s.SYSTEM : void 0, a = o(() => {
package/dist/index.d.ts CHANGED
@@ -1,9 +1,8 @@
1
1
  import { UIKitProvider, useUIKit } from '@tencentcloud/uikit-base-component-react';
2
+ export declare const version: string;
2
3
  export * from './components';
3
4
  export * from './context';
4
5
  export * from './hooks';
5
6
  export * from './states';
6
7
  export * from 'tuikit-atomicx-react/chat';
7
- export * from 'tuikit-atomicx-react/types';
8
- export { Avatar, useLoginState, LoginStatus, startCall } from 'tuikit-atomicx-react';
9
8
  export { UIKitProvider, useUIKit, };
package/dist/index.js CHANGED
@@ -1,117 +1,52 @@
1
- import { UIKitProvider as f, useUIKit as h } from "@tencentcloud/uikit-base-component-react";
1
+ import { UIKitProvider as p, useUIKit as i } from "@tencentcloud/uikit-base-component-react";
2
2
  import "./locales/index.js";
3
- import { ChatHeader as G } from "./components/ChatHeader/ChatHeader.js";
4
- import { AudioCallPicker as K } from "./components/ChatHeader/AudioCallPicker/AudioCallPicker.js";
5
- import { VideoCallPicker as V } from "./components/ChatHeader/VideoCallPicker/VideoCallPicker.js";
6
- import { Chat as c } from "./components/Chat/Chat.js";
7
- import { Checkbox as b } from "./components/Checkbox/index.js";
8
- import { DivWithEdit as X } from "./components/DivWithEdit/DivWithEdit.js";
9
- import { EmptyStateIndicator as q } from "./components/EmptyStateIndicator/EmptyStateIndicator.js";
10
- import { Icon as Z, changeTypeToIconClassName as $ } from "./components/Icon/Icon.js";
11
- import { IconTypes as v } from "./components/Icon/type.js";
12
- import { Model as Q } from "./components/Model/index.js";
13
- import { Plugins as k } from "./components/Plugins/index.js";
14
- import { Popup as i } from "./components/Popup/index.js";
15
- import { Profile as _E } from "./components/Profile/Profile.js";
16
- import { TUIProfileDefault as NE } from "./components/Profile/ProfileDefault.js";
17
- import { Switch as IE } from "./components/Switch/Switch.js";
18
- import { TUIContactContext as aE, TUIContactContextProvider as rE, useTUIContactContext as sE } from "./context/ContactContext.js";
19
- import { ChatProvider as tE, useChatContext as SE } from "./context/ChatContext.js";
20
- import { useChatHeader as TE } from "./hooks/useChatHeader.js";
21
- import { useUIManagerState as LE } from "./states/UIManagerState.js";
22
- import { A as UE, d as oE, e as ME, H as BE, f as mE, g as pE, h as xE, i as FE, j as YE, k as fE, l as hE, m as HE, n as GE, C as WE, E as KE, I as gE, L as VE, M as uE, o as cE, p as eE, q as bE, J as JE, P as XE, S as jE, r as qE, t as zE, v as ZE, w as $E, K as dE, x as vE, N as wE, V as QE, O as lE, s as kE, y as yE, z as iE, a as E_, c as __, b as O_, B as N_, D as C_, u as I_, F as A_, G as a_ } from "./index-BLFl-K0_-DzfAZFZt.js";
23
- import './styles/index5.css';var _ = /* @__PURE__ */ ((E) => (E[E.OWNER = 0] = "OWNER", E[E.ADMINISTRATOR = 1] = "ADMINISTRATOR", E[E.GENERAL_USER = 2] = "GENERAL_USER", E))(_ || {}), O = /* @__PURE__ */ ((E) => (E[E.ABORT_WHEN_OCCUPIED = 0] = "ABORT_WHEN_OCCUPIED", E[E.FORCE_REPLACE = 1] = "FORCE_REPLACE", E[E.SWAP_POSITION = 2] = "SWAP_POSITION", E))(O || {}), N = /* @__PURE__ */ ((E) => (E[E.UNLOCK_ONLY = 1] = "UNLOCK_ONLY", E))(N || {}), C = /* @__PURE__ */ ((E) => (E.ON_LOCAL_CAMERA_OPENED_BY_ADMIN = "onLocalCameraOpenedByAdmin", E.ON_LOCAL_CAMERA_CLOSED_BY_ADMIN = "onLocalCameraClosedByAdmin", E.ON_LOCAL_MICROPHONE_OPENED_BY_ADMIN = "onLocalMicrophoneOpenedByAdmin", E.ON_LOCAL_MICROPHONE_CLOSED_BY_ADMIN = "onLocalMicrophoneClosedByAdmin", E))(C || {}), I = /* @__PURE__ */ ((E) => (E[E.NO_ERROR = 0] = "NO_ERROR", E[E.NO_DEVICE_DETECTED = 1] = "NO_DEVICE_DETECTED", E[E.NO_SYSTEM_PERMISSION = 2] = "NO_SYSTEM_PERMISSION", E[E.NOT_SUPPORT_CAPTURE = 3] = "NOT_SUPPORT_CAPTURE", E[E.OCCUPIED_ERROR = 4] = "OCCUPIED_ERROR", E[E.UNKNOWN_ERROR = 5] = "UNKNOWN_ERROR", E))(I || {}), A = /* @__PURE__ */ ((E) => (E[E.SPEAKERPHONE = 0] = "SPEAKERPHONE", E[E.EARPIECE = 1] = "EARPIECE", E))(A || {}), a = /* @__PURE__ */ ((E) => (E[E.AUTO = 0] = "AUTO", E[E.ENABLE = 1] = "ENABLE", E[E.DISABLE = 2] = "DISABLE", E))(a || {}), r = /* @__PURE__ */ ((E) => (E.MICROPHONE = "Microphone", E.CAMERA = "Camera", E.SCREEN_SHARE = "ScreenShare", E))(r || {}), s = /* @__PURE__ */ ((E) => (E[E.QUALITY_360P = 1] = "QUALITY_360P", E[E.QUALITY_540P = 2] = "QUALITY_540P", E[E.QUALITY_720P = 3] = "QUALITY_720P", E[E.QUALITY_1080P = 4] = "QUALITY_1080P", E))(s || {}), R = /* @__PURE__ */ ((E) => (E.PUBLISH_AUDIO = "PublishAudio", E.PUBLISH_VIDEO = "PublishVideo", E.SCREEN_SHARE = "ScreenShare", E))(R || {}), t = /* @__PURE__ */ ((E) => (E.ICON = "Icon", E.ICON_WITH_PANEL = "IconWithPanel", E.PANEL = "Panel", E))(t || {}), S = /* @__PURE__ */ ((E) => (E[E.OFF = 0] = "OFF", E[E.ON = 1] = "ON", E))(S || {}), n = /* @__PURE__ */ ((E) => (E[E.UNKNOWN = 0] = "UNKNOWN", E[E.EXCELLENT = 1] = "EXCELLENT", E[E.GOOD = 2] = "GOOD", E[E.POOR = 3] = "POOR", E[E.BAD = 4] = "BAD", E[E.VERY_BAD = 5] = "VERY_BAD", E[E.DOWN = 6] = "DOWN", E))(n || {}), T = /* @__PURE__ */ ((E) => (E[E.K_CAMERA_STREAM = 0] = "K_CAMERA_STREAM", E[E.K_SCREEN_STREAM = 1] = "K_SCREEN_STREAM", E[E.K_CAMERA_STREAM_LOW = 2] = "K_CAMERA_STREAM_LOW", E))(T || {}), P = /* @__PURE__ */ ((E) => (E[E.K_LIVE = 0] = "K_LIVE", E[E.K_CHAT_ROOM = 1] = "K_CHAT_ROOM", E))(P || {}), L = /* @__PURE__ */ ((E) => (E.LANDSCAPE = "landscape", E.PORTRAIT = "portrait", E))(L || {}), D = /* @__PURE__ */ ((E) => (E.ON_LIVE_ENDED = "onLiveEnded", E.ON_KICKED_OUT_OF_LIVE = "onKickedOutOfLive", E))(D || {}), U = /* @__PURE__ */ ((E) => (E[E.ENDED_BY_HOST = 1] = "ENDED_BY_HOST", E[E.ENDED_BY_SERVER = 2] = "ENDED_BY_SERVER", E))(U || {}), o = /* @__PURE__ */ ((E) => (E[E.BY_ADMIN = 0] = "BY_ADMIN", E[E.BY_LOGGED_ON_OTHER_DEVICE = 1] = "BY_LOGGED_ON_OTHER_DEVICE", E[E.BY_SERVER = 2] = "BY_SERVER", E[E.FOR_NETWORK_DISCONNECTED = 3] = "FOR_NETWORK_DISCONNECTED", E[E.FOR_JOIN_ROOM_STATUS_INVALID_DURING_OFFLINE = 4] = "FOR_JOIN_ROOM_STATUS_INVALID_DURING_OFFLINE", E[E.FOR_COUNT_OF_JOINED_ROOMS_EXCEED_LIMIT = 5] = "FOR_COUNT_OF_JOINED_ROOMS_EXCEED_LIMIT", E))(o || {}), M = /* @__PURE__ */ ((E) => (E.ON_RECEIVE_GIFT_MESSAGE = "ON_RECEIVE_GIFT_MESSAGE", E.ON_GIFT_COUNT_CHANGED = "ON_GIFT_COUNT_CHANGED", E))(M || {}), B = /* @__PURE__ */ ((E) => (E.ON_RECEIVE_LIKES_MESSAGE = "ON_RECEIVE_LIKES_MESSAGE", E))(B || {}), m = /* @__PURE__ */ ((E) => (E[E.UNKNOWN = 0] = "UNKNOWN", E[E.AUDIO = 1] = "AUDIO", E[E.VIDEO = 2] = "VIDEO", E))(m || {}), p = /* @__PURE__ */ ((E) => (E.ON = "ON", E.OFF = "OFF", E))(p || {});
3
+ import { ChatHeader as n } from "./components/ChatHeader/ChatHeader.js";
4
+ import { AudioCallPicker as a } from "./components/ChatHeader/AudioCallPicker/AudioCallPicker.js";
5
+ import { VideoCallPicker as c } from "./components/ChatHeader/VideoCallPicker/VideoCallPicker.js";
6
+ import { Chat as d } from "./components/Chat/Chat.js";
7
+ import { Checkbox as u } from "./components/Checkbox/index.js";
8
+ import { DivWithEdit as I } from "./components/DivWithEdit/DivWithEdit.js";
9
+ import { EmptyStateIndicator as T } from "./components/EmptyStateIndicator/EmptyStateIndicator.js";
10
+ import { Icon as U, changeTypeToIconClassName as v } from "./components/Icon/Icon.js";
11
+ import { IconTypes as k } from "./components/Icon/type.js";
12
+ import { Model as g } from "./components/Model/index.js";
13
+ import { Plugins as A } from "./components/Plugins/index.js";
14
+ import { Popup as H } from "./components/Popup/index.js";
15
+ import { Profile as S } from "./components/Profile/Profile.js";
16
+ import { TUIProfileDefault as M } from "./components/Profile/ProfileDefault.js";
17
+ import { Switch as b } from "./components/Switch/Switch.js";
18
+ import { TUIContactContext as R, TUIContactContextProvider as V, useTUIContactContext as W } from "./context/ContactContext.js";
19
+ import { ChatProvider as q, useChatContext as z } from "./context/ChatContext.js";
20
+ import { useChatHeader as F } from "./hooks/useChatHeader.js";
21
+ import { useUIManagerState as J } from "./states/UIManagerState.js";
22
+ import './styles/index.css';export * from "tuikit-atomicx-react/chat";
23
+ const e = "4.5.3";
24
+ typeof window < "u" && (window.__CHAT_UIKIT_REACT__ = { name: "@tencentcloud/chat-uikit-react", version: "4.5.3" }, console.log("[@tencentcloud/chat-uikit-react] v4.5.3"));
24
25
  export {
25
- K as AudioCallPicker,
26
- A as AudioRoute,
27
- UE as Avatar,
28
- m as CallMediaType,
29
- c as Chat,
30
- G as ChatHeader,
31
- tE as ChatProvider,
32
- oE as ChatSetting,
33
- b as Checkbox,
34
- ME as ContactInfo,
35
- BE as ContactItemType,
36
- mE as ContactList,
37
- pE as ContactListItem,
38
- xE as ConversationActions,
39
- FE as ConversationList,
40
- YE as ConversationListContent,
41
- fE as ConversationListHeader,
42
- hE as ConversationPreview,
43
- HE as ConversationPreviewUI,
44
- GE as ConversationSearch,
45
- WE as ConversationType,
46
- N as DeviceControlPolicy,
47
- I as DeviceError,
48
- R as DevicePermission,
49
- S as DeviceStatus,
50
- r as DeviceType,
51
- X as DivWithEdit,
52
- KE as EmojiPicker,
53
- q as EmptyStateIndicator,
54
- gE as GroupApplicationType,
55
- Z as Icon,
56
- v as IconTypes,
57
- U as LiveEndedReason,
58
- M as LiveGiftEvents,
59
- o as LiveKickedOutReason,
60
- B as LiveLikeEvents,
61
- D as LiveListEvent,
62
- L as LiveOrientation,
63
- C as LiveSeatEvent,
64
- P as LiveType,
65
- VE as LoginStatus,
66
- t as MediaSettingDisplayMode,
67
- uE as Message,
68
- cE as MessageAdvanced,
69
- eE as MessageInput,
70
- bE as MessageList,
71
- JE as MessageType,
72
- a as MirrorType,
73
- Q as Model,
74
- p as MonitorDeviceStatus,
75
- O as MoveSeatPolicy,
76
- n as NetworkQuality,
77
- XE as PageStateTypes,
78
- k as Plugins,
79
- i as Popup,
80
- _E as Profile,
81
- _ as Role,
82
- jE as Search,
83
- qE as SearchAdvanced,
84
- zE as SearchBar,
85
- ZE as SearchResultItem,
86
- $E as SearchResults,
87
- dE as SearchType,
88
- IE as Switch,
89
- aE as TUIContactContext,
90
- rE as TUIContactContextProvider,
91
- NE as TUIProfileDefault,
92
- T as TUIVideoStreamType,
93
- f as UIKitProvider,
94
- vE as UserAdvanced,
95
- wE as VariantType,
96
- V as VideoCallPicker,
97
- s as VideoQuality,
98
- QE as View,
99
- $ as changeTypeToIconClassName,
100
- lE as defaultTypeLabels,
101
- kE as startCall,
102
- yE as useC2CSettingState,
103
- SE as useChatContext,
104
- TE as useChatHeader,
105
- iE as useContactListState,
106
- E_ as useConversationListState,
107
- __ as useGroupSettingState,
108
- O_ as useLoginState,
109
- N_ as useMessageActionState,
110
- C_ as useMessageActions,
111
- I_ as useMessageInputState,
112
- A_ as useMessageListState,
113
- a_ as useSearchState,
114
- sE as useTUIContactContext,
115
- h as useUIKit,
116
- LE as useUIManagerState
26
+ a as AudioCallPicker,
27
+ d as Chat,
28
+ n as ChatHeader,
29
+ q as ChatProvider,
30
+ u as Checkbox,
31
+ I as DivWithEdit,
32
+ T as EmptyStateIndicator,
33
+ U as Icon,
34
+ k as IconTypes,
35
+ g as Model,
36
+ A as Plugins,
37
+ H as Popup,
38
+ S as Profile,
39
+ b as Switch,
40
+ R as TUIContactContext,
41
+ V as TUIContactContextProvider,
42
+ M as TUIProfileDefault,
43
+ p as UIKitProvider,
44
+ c as VideoCallPicker,
45
+ v as changeTypeToIconClassName,
46
+ z as useChatContext,
47
+ F as useChatHeader,
48
+ W as useTUIContactContext,
49
+ i as useUIKit,
50
+ J as useUIManagerState,
51
+ e as version
117
52
  };
@@ -40,5 +40,7 @@ declare const TUIConversation: {
40
40
  'The group chat has been disbanded': string;
41
41
  'You have left the group chat': string;
42
42
  Me: string;
43
+ someone_at_me: string;
44
+ at_all: string;
43
45
  };
44
46
  export default TUIConversation;
@@ -39,7 +39,9 @@ const e = {
39
39
  "You have been removed from the group by the group administrator": "You have been removed from the group by the group administrator",
40
40
  "The group chat has been disbanded": "The group chat has been disbanded",
41
41
  "You have left the group chat": "You have left the group chat",
42
- Me: "Me"
42
+ Me: "Me",
43
+ someone_at_me: "You were mentioned",
44
+ at_all: "@All"
43
45
  };
44
46
  export {
45
47
  e as default
@@ -160,6 +160,8 @@ export declare const message: {
160
160
  'The group chat has been disbanded': string;
161
161
  'You have left the group chat': string;
162
162
  Me: string;
163
+ someone_at_me: string;
164
+ at_all: string;
163
165
  };
164
166
  TUIContact: {
165
167
  'Enter a userID': string;
@@ -39,5 +39,7 @@ declare const TUIConversation: {
39
39
  'The group chat has been disbanded': string;
40
40
  'You have left the group chat': string;
41
41
  Me: string;
42
+ someone_at_me: string;
43
+ at_all: string;
42
44
  };
43
45
  export default TUIConversation;
@@ -38,7 +38,9 @@ const e = {
38
38
  "You have been removed from the group by the group administrator": "グループ管理者によってグループから削除されました",
39
39
  "The group chat has been disbanded": "グループチャットは解散されました",
40
40
  "You have left the group chat": "グループチャットから退出しました",
41
- Me: "私"
41
+ Me: "私",
42
+ someone_at_me: "あなたが@されました",
43
+ at_all: "@全員"
42
44
  };
43
45
  export {
44
46
  e as default
@@ -158,6 +158,8 @@ export declare const message: {
158
158
  'The group chat has been disbanded': string;
159
159
  'You have left the group chat': string;
160
160
  Me: string;
161
+ someone_at_me: string;
162
+ at_all: string;
161
163
  };
162
164
  TUIContact: {
163
165
  'Enter a userID': string;
@@ -39,5 +39,7 @@ declare const TUIConversation: {
39
39
  'The group chat has been disbanded': string;
40
40
  'You have left the group chat': string;
41
41
  Me: string;
42
+ someone_at_me: string;
43
+ at_all: string;
42
44
  };
43
45
  export default TUIConversation;
@@ -38,7 +38,9 @@ const e = {
38
38
  "You have been removed from the group by the group administrator": "그룹 관리자가 그룹에서 나가셨습니다",
39
39
  "The group chat has been disbanded": "그룹 채팅이 해체되었습니다",
40
40
  "You have left the group chat": "그룹 채팅을 나갔습니다",
41
- Me: "나"
41
+ Me: "나",
42
+ someone_at_me: "당신이 @되었습니다",
43
+ at_all: "@모두"
42
44
  };
43
45
  export {
44
46
  e as default
@@ -158,6 +158,8 @@ export declare const message: {
158
158
  'The group chat has been disbanded': string;
159
159
  'You have left the group chat': string;
160
160
  Me: string;
161
+ someone_at_me: string;
162
+ at_all: string;
161
163
  };
162
164
  TUIContact: {
163
165
  'Enter a userID': string;
@@ -39,5 +39,7 @@ declare const TUIConversation: {
39
39
  'The group chat has been disbanded': string;
40
40
  'You have left the group chat': string;
41
41
  Me: string;
42
+ someone_at_me: string;
43
+ at_all: string;
42
44
  };
43
45
  export default TUIConversation;