@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.
- package/CHANGELOG.md +15 -0
- package/dist/components/Chat/Chat.js +13 -13
- package/dist/components/ChatHeader/AudioCallPicker/AudioCallPicker.js +12 -12
- package/dist/components/ChatHeader/ChatHeader.d.ts +1 -1
- package/dist/components/ChatHeader/ChatHeader.js +7 -7
- package/dist/components/ChatHeader/ChatHeaderUI/ChatHeaderUI.d.ts +1 -1
- package/dist/components/ChatHeader/ChatHeaderUI/ChatHeaderUI.js +1 -1
- package/dist/components/ChatHeader/VideoCallPicker/VideoCallPicker.js +18 -18
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/Input/Input.js +6 -6
- package/dist/components/Modal/Modal.js +13 -13
- package/dist/components/Model/index.js +1 -1
- package/dist/components/Plugins/index.js +1 -1
- package/dist/components/Popup/index.js +1 -1
- package/dist/components/PopupNew/Popup.js +11 -11
- package/dist/components/Profile/Profile.js +5 -5
- package/dist/components/Profile/ProfileDefault.d.ts +1 -1
- package/dist/components/Profile/ProfileDefault.js +25 -25
- package/dist/components/Profile/myProfile/MyProfile.js +5 -5
- package/dist/context/ContactContext.js +2 -2
- package/dist/external_modules/{react-vendors-3raCpd-g.js → react-vendors-x_iUMC12.js} +69 -70
- package/dist/hooks/useChatHeader.d.ts +1 -1
- package/dist/hooks/useChatHeader.js +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.js +49 -114
- package/dist/locales/en-US/TUIConversation.d.ts +2 -0
- package/dist/locales/en-US/TUIConversation.js +3 -1
- package/dist/locales/en-US/index.d.ts +2 -0
- package/dist/locales/ja-JP/TUIConversation.d.ts +2 -0
- package/dist/locales/ja-JP/TUIConversation.js +3 -1
- package/dist/locales/ja-JP/index.d.ts +2 -0
- package/dist/locales/ko-KR/TUIConversation.d.ts +2 -0
- package/dist/locales/ko-KR/TUIConversation.js +3 -1
- package/dist/locales/ko-KR/index.d.ts +2 -0
- package/dist/locales/zh-CN/TUIConversation.d.ts +2 -0
- package/dist/locales/zh-CN/TUIConversation.js +3 -1
- package/dist/locales/zh-CN/index.d.ts +2 -0
- package/dist/locales/zh-TW/TUIConversation.d.ts +2 -0
- package/dist/locales/zh-TW/TUIConversation.js +3 -1
- package/dist/locales/zh-TW/index.d.ts +2 -0
- package/dist/states/UIManagerState.js +7 -6
- package/dist/styles/index.css +1 -1
- package/dist/styles/index2.css +1 -1
- package/dist/styles/index3.css +1 -1
- package/dist/styles/index4.css +1 -1
- package/dist/styles/index5.css +1 -1
- package/package.json +3 -3
- package/src/components/Chat/Chat.tsx +1 -1
- package/src/components/ChatHeader/AudioCallPicker/AudioCallPicker.tsx +2 -2
- package/src/components/ChatHeader/ChatHeader.tsx +2 -2
- package/src/components/ChatHeader/ChatHeaderUI/ChatHeaderUI.tsx +2 -2
- package/src/components/ChatHeader/VideoCallPicker/VideoCallPicker.tsx +2 -2
- package/src/components/Profile/ProfileDefault.tsx +2 -2
- package/src/components/Profile/myProfile/MyProfile.tsx +3 -3
- package/src/hooks/useChatHeader.ts +2 -2
- package/src/index.ts +11 -2
- package/src/locales/en-US/TUIConversation.ts +2 -0
- package/src/locales/ja-JP/TUIConversation.ts +2 -0
- package/src/locales/ko-KR/TUIConversation.ts +2 -0
- package/src/locales/zh-CN/TUIConversation.ts +2 -0
- package/src/locales/zh-TW/TUIConversation.ts +2 -0
- package/vite.config.ts +32 -18
- package/dist/external_modules/mui-BhvHeL5-.js +0 -2253
- package/dist/external_modules/zustand-CDmQR4co.js +0 -24
- package/dist/index-BLFl-K0_-DzfAZFZt.js +0 -32905
- 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 {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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 ||
|
|
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(
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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,
|
|
252
|
+
var le, Re;
|
|
227
253
|
function be() {
|
|
228
|
-
if (
|
|
229
|
-
|
|
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,
|
|
234
|
-
function
|
|
235
|
-
return
|
|
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 =
|
|
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 =
|
|
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,
|
|
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 " +
|
|
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],
|
|
364
|
-
if (
|
|
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
|
|
388
|
-
var O = o(b,
|
|
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
|
|
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 " +
|
|
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
|
|
453
|
-
if (e(b,
|
|
454
|
-
var O = o(b,
|
|
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
|
|
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") &&
|
|
503
|
+
s.data && e(s.data, "expectedType") && _.push(s.data.expectedType);
|
|
478
504
|
}
|
|
479
|
-
var L =
|
|
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
|
|
501
|
-
var O = o[
|
|
526
|
+
for (var _ in o) {
|
|
527
|
+
var O = o[_];
|
|
502
528
|
if (typeof O != "function")
|
|
503
|
-
return J(h, T, m,
|
|
504
|
-
var j = O(b,
|
|
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
|
|
518
|
-
for (var O in
|
|
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 =
|
|
657
|
-
|
|
682
|
+
var Xe = Me(), Be = !0;
|
|
683
|
+
me.exports = ze()(Xe.isElement, Be);
|
|
658
684
|
} else
|
|
659
|
-
|
|
660
|
-
var He =
|
|
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
|
-
|
|
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 =
|
|
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
|
-
|
|
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 =
|
|
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 { useMemo as o } from "react";
|
|
2
|
-
import {
|
|
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
|
|
1
|
+
import { UIKitProvider as p, useUIKit as i } from "@tencentcloud/uikit-base-component-react";
|
|
2
2
|
import "./locales/index.js";
|
|
3
|
-
import { ChatHeader as
|
|
4
|
-
import { AudioCallPicker as
|
|
5
|
-
import { VideoCallPicker as
|
|
6
|
-
import { Chat as
|
|
7
|
-
import { Checkbox as
|
|
8
|
-
import { DivWithEdit as
|
|
9
|
-
import { EmptyStateIndicator as
|
|
10
|
-
import { Icon as
|
|
11
|
-
import { IconTypes as
|
|
12
|
-
import { Model as
|
|
13
|
-
import { Plugins as
|
|
14
|
-
import { Popup as
|
|
15
|
-
import { Profile as
|
|
16
|
-
import { TUIProfileDefault as
|
|
17
|
-
import { Switch as
|
|
18
|
-
import { TUIContactContext as
|
|
19
|
-
import { ChatProvider as
|
|
20
|
-
import { useChatHeader as
|
|
21
|
-
import { useUIManagerState as
|
|
22
|
-
import
|
|
23
|
-
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
};
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|