@tencentcloud/chat-uikit-react 3.4.6 → 3.4.7
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 +6 -1
- package/dist/components/Chat/Chat.js +1 -1
- package/dist/components/ChatHeader/AudioCallPicker/AudioCallPicker.js +33 -33
- package/dist/components/ChatHeader/ChatHeader.js +1 -1
- package/dist/components/ChatHeader/ChatHeaderUI/ChatHeaderUI.js +1 -1
- package/dist/components/ChatHeader/VideoCallPicker/VideoCallPicker.js +9 -9
- package/dist/components/Checkbox/index.js +1 -1
- 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/Profile/ProfileDefault.js +1 -1
- package/dist/components/Profile/myProfile/MyProfile.js +1 -1
- package/dist/hooks/useChatHeader.js +1 -1
- package/dist/{index-Bdq5g_zL-D-10MRRF.js → index-J-xtCKzN-BPkGsnbF.js} +29735 -28443
- package/dist/index.js +114 -93
- package/dist/styles/AudioCallPicker.css +1 -1
- package/dist/styles/VideoCallPicker.css +1 -1
- package/dist/styles/index-J-xtCKzN.css +1 -0
- 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 +4 -4
- package/src/components/ChatHeader/AudioCallPicker/AudioCallPicker.module.scss +4 -1
- package/src/components/ChatHeader/AudioCallPicker/AudioCallPicker.tsx +1 -1
- package/src/components/ChatHeader/VideoCallPicker/VideoCallPicker.module.scss +4 -0
- package/dist/styles/index-Bdq5g_zL.css +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [3.4.7] (2025-12-02)
|
|
2
|
+
|
|
3
|
+
#### fix
|
|
4
|
+
* Chat: Fixed unnecessary rounded corners on video media information
|
|
5
|
+
* Chat: Fixed issue where voice call peer does not update when switching conversations
|
|
6
|
+
|
|
1
7
|
## [3.4.6] (2025-11-18)
|
|
2
8
|
|
|
3
9
|
#### fix
|
|
@@ -5,7 +11,6 @@
|
|
|
5
11
|
* Fix the problem of missing call message text parameters
|
|
6
12
|
* Optimize the placeholder content and disabled logic of the text editor
|
|
7
13
|
|
|
8
|
-
|
|
9
14
|
## [3.4.5] (2025-11-18)
|
|
10
15
|
|
|
11
16
|
#### chore
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { a as i, V as n } from "../../index-
|
|
2
|
+
import { a as i, V as n } from "../../index-J-xtCKzN-BPkGsnbF.js";
|
|
3
3
|
import { c as m } from "../../external_modules/classnames-HRMVOjAa.js";
|
|
4
4
|
import { ChatProvider as l } from "../../context/ChatContext.js";
|
|
5
5
|
import '../../styles/Chat.css';const h = "uikit-chat", p = {
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as s, Fragment as V, jsxs as B } from "react/jsx-runtime";
|
|
2
2
|
import { useState as j, useRef as z, useMemo as n, useCallback as r } from "react";
|
|
3
3
|
import { useUIKit as K, IconCallFilled as X, Dialog as Y } from "@tencentcloud/uikit-base-component-react";
|
|
4
4
|
import { c as Z } from "../../../external_modules/classnames-HRMVOjAa.js";
|
|
5
|
-
import { b as $, a as q,
|
|
5
|
+
import { b as $, a as q, c as H, C as h, s as y, V as J, U as Q } from "../../../index-J-xtCKzN-BPkGsnbF.js";
|
|
6
6
|
import '../../../styles/AudioCallPicker.css';const u = {
|
|
7
7
|
"audio-call-picker__button": "uikit-audio-call-picker__button",
|
|
8
8
|
"audio-call-picker__button--disabled": "uikit-audio-call-picker__button--disabled",
|
|
9
9
|
"audio-call-picker__icon": "uikit-audio-call-picker__icon",
|
|
10
10
|
"group-call-dialog": "uikit-group-call-dialog"
|
|
11
|
-
},
|
|
11
|
+
}, D = 1, W = 80, v = 8, ee = 1, ae = (G) => {
|
|
12
12
|
const {
|
|
13
13
|
label: S = "",
|
|
14
14
|
iconSize: A = 20,
|
|
15
|
-
disabled:
|
|
15
|
+
disabled: a = !1,
|
|
16
16
|
className: L,
|
|
17
17
|
style: P,
|
|
18
18
|
children: E
|
|
19
|
-
} =
|
|
19
|
+
} = G, { t: p } = K(), { loginUserInfo: c } = $(), { activeConversation: e } = q(), { allMembers: t, getGroupMemberList: _, memberCount: g } = H(), [U, b] = j(!1), d = z(null), k = n(() => c == null ? void 0 : c.userId, [c]), R = n(() => (e == null ? void 0 : e.type) === h.C2C, [e]), x = n(() => (t == null ? void 0 : t.map((o) => ({
|
|
20
20
|
key: o.userID,
|
|
21
21
|
label: o.nick || o.userID,
|
|
22
22
|
avatarUrl: o.avatar
|
|
23
|
-
}))) ?? [], [t]), N = n(() => !(!e ||
|
|
23
|
+
}))) ?? [], [t]), N = n(() => !(!e || a), [e, a]), w = r(() => {
|
|
24
24
|
var l;
|
|
25
25
|
const o = (l = e == null ? void 0 : e.userProfile) == null ? void 0 : l.userID;
|
|
26
26
|
if (!o) {
|
|
@@ -28,15 +28,15 @@ import '../../../styles/AudioCallPicker.css';const u = {
|
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
30
|
try {
|
|
31
|
-
|
|
31
|
+
y({
|
|
32
32
|
userIDList: [o],
|
|
33
|
-
type:
|
|
33
|
+
type: D
|
|
34
34
|
});
|
|
35
|
-
} catch (
|
|
36
|
-
console.error("Failed to start private audio call:",
|
|
35
|
+
} catch (C) {
|
|
36
|
+
console.error("Failed to start private audio call:", C);
|
|
37
37
|
}
|
|
38
|
-
}, []),
|
|
39
|
-
if ((e == null ? void 0 : e.type) !==
|
|
38
|
+
}, [e == null ? void 0 : e.conversationID]), f = r(() => {
|
|
39
|
+
if ((e == null ? void 0 : e.type) !== h.GROUP)
|
|
40
40
|
return;
|
|
41
41
|
const o = (t == null ? void 0 : t.length) || 0;
|
|
42
42
|
o < (g || 0) && _({
|
|
@@ -44,8 +44,8 @@ import '../../../styles/AudioCallPicker.css';const u = {
|
|
|
44
44
|
offset: o
|
|
45
45
|
});
|
|
46
46
|
}, [e, t, g, _]), O = r(() => {
|
|
47
|
-
|
|
48
|
-
}, [
|
|
47
|
+
f(), b(!0);
|
|
48
|
+
}, [f]), i = r(() => {
|
|
49
49
|
b(!1);
|
|
50
50
|
}, []), I = r(() => {
|
|
51
51
|
var M;
|
|
@@ -59,42 +59,42 @@ import '../../../styles/AudioCallPicker.css';const u = {
|
|
|
59
59
|
console.warn("No members selected for group call");
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
|
-
const
|
|
62
|
+
const C = l.map((m) => m.key);
|
|
63
63
|
try {
|
|
64
|
-
|
|
65
|
-
userIDList:
|
|
64
|
+
y({
|
|
65
|
+
userIDList: C,
|
|
66
66
|
chatGroupID: o,
|
|
67
|
-
type:
|
|
68
|
-
}),
|
|
67
|
+
type: D
|
|
68
|
+
}), i();
|
|
69
69
|
} catch (m) {
|
|
70
70
|
console.error("Failed to start group audio call:", m);
|
|
71
71
|
}
|
|
72
|
-
}, [
|
|
72
|
+
}, [i]), F = r(() => {
|
|
73
73
|
if (!N) {
|
|
74
74
|
console.warn("Cannot start audio call");
|
|
75
75
|
return;
|
|
76
76
|
}
|
|
77
|
-
|
|
77
|
+
R ? w() : O();
|
|
78
78
|
}, []), T = r(() => {
|
|
79
79
|
I();
|
|
80
80
|
}, [I]);
|
|
81
|
-
return /* @__PURE__ */
|
|
82
|
-
/* @__PURE__ */
|
|
81
|
+
return /* @__PURE__ */ s(V, { children: /* @__PURE__ */ B(J, { children: [
|
|
82
|
+
/* @__PURE__ */ s(
|
|
83
83
|
"button",
|
|
84
84
|
{
|
|
85
85
|
type: "button",
|
|
86
86
|
className: Z(
|
|
87
87
|
u["audio-call-picker__button"],
|
|
88
88
|
{
|
|
89
|
-
[u["audio-call-picker__button--disabled"]]:
|
|
89
|
+
[u["audio-call-picker__button--disabled"]]: a
|
|
90
90
|
},
|
|
91
91
|
L
|
|
92
92
|
),
|
|
93
93
|
style: P,
|
|
94
94
|
onClick: F,
|
|
95
|
-
disabled:
|
|
95
|
+
disabled: a,
|
|
96
96
|
"aria-label": S || "Audio Call",
|
|
97
|
-
children: E || /* @__PURE__ */
|
|
97
|
+
children: E || /* @__PURE__ */ s(
|
|
98
98
|
X,
|
|
99
99
|
{
|
|
100
100
|
className: u["audio-call-picker__icon"],
|
|
@@ -103,18 +103,18 @@ import '../../../styles/AudioCallPicker.css';const u = {
|
|
|
103
103
|
)
|
|
104
104
|
}
|
|
105
105
|
),
|
|
106
|
-
/* @__PURE__ */
|
|
106
|
+
/* @__PURE__ */ s(
|
|
107
107
|
Y,
|
|
108
108
|
{
|
|
109
|
-
visible:
|
|
109
|
+
visible: U,
|
|
110
110
|
title: p("MessageInput.select_call_members"),
|
|
111
111
|
cancelText: p("MessageInput.cancel"),
|
|
112
|
-
onCancel:
|
|
113
|
-
onClose:
|
|
112
|
+
onCancel: i,
|
|
113
|
+
onClose: i,
|
|
114
114
|
confirmText: p("MessageInput.initiate_call"),
|
|
115
115
|
onConfirm: T,
|
|
116
116
|
className: u["group-call-dialog"],
|
|
117
|
-
children: /* @__PURE__ */
|
|
117
|
+
children: /* @__PURE__ */ s(
|
|
118
118
|
Q,
|
|
119
119
|
{
|
|
120
120
|
ref: d,
|
|
@@ -123,7 +123,7 @@ import '../../../styles/AudioCallPicker.css';const u = {
|
|
|
123
123
|
lockedItems: k ? [{ key: k }] : [],
|
|
124
124
|
maxCount: v,
|
|
125
125
|
minCount: ee,
|
|
126
|
-
onReachEnd:
|
|
126
|
+
onReachEnd: f
|
|
127
127
|
}
|
|
128
128
|
)
|
|
129
129
|
}
|
|
@@ -131,5 +131,5 @@ import '../../../styles/AudioCallPicker.css';const u = {
|
|
|
131
131
|
] }) });
|
|
132
132
|
};
|
|
133
133
|
export {
|
|
134
|
-
|
|
134
|
+
ae as AudioCallPicker
|
|
135
135
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as v } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect as H } from "react";
|
|
3
3
|
import { TUIUserService as U } from "@tencentcloud/chat-uikit-engine-lite";
|
|
4
|
-
import { u as x } from "../../index-
|
|
4
|
+
import { u as x } from "../../index-J-xtCKzN-BPkGsnbF.js";
|
|
5
5
|
import { useChatHeader as y } from "../../hooks/useChatHeader.js";
|
|
6
6
|
import g from "./ChatHeaderUI/ChatHeaderUI.js";
|
|
7
7
|
const w = (t) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as t, jsxs as r } from "react/jsx-runtime";
|
|
2
2
|
import { useUIKit as C } from "@tencentcloud/uikit-base-component-react";
|
|
3
3
|
import { c as m } from "../../../external_modules/classnames-HRMVOjAa.js";
|
|
4
|
-
import { V as a, A as v } from "../../../index-
|
|
4
|
+
import { V as a, A as v } from "../../../index-J-xtCKzN-BPkGsnbF.js";
|
|
5
5
|
import { AudioCallPicker as g } from "../AudioCallPicker/AudioCallPicker.js";
|
|
6
6
|
import { VideoCallPicker as T } from "../VideoCallPicker/VideoCallPicker.js";
|
|
7
7
|
import '../../../styles/ChatHeaderUI.css';const e = {
|
|
@@ -2,7 +2,7 @@ import { jsx as s, Fragment as F, jsxs as T } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as B, useRef as j, useMemo as n, useCallback as l } from "react";
|
|
3
3
|
import { useUIKit as z, IconVideoFilled as K, Dialog as X } from "@tencentcloud/uikit-base-component-react";
|
|
4
4
|
import { c as Y } from "../../../external_modules/classnames-HRMVOjAa.js";
|
|
5
|
-
import { b as Z, a as $,
|
|
5
|
+
import { b as Z, a as $, c as q, C as P, s as S, V as H, U as J } from "../../../index-J-xtCKzN-BPkGsnbF.js";
|
|
6
6
|
import '../../../styles/VideoCallPicker.css';const u = {
|
|
7
7
|
"video-call-picker__button": "uikit-video-call-picker__button",
|
|
8
8
|
"video-call-picker__button--disabled": "uikit-video-call-picker__button--disabled",
|
|
@@ -11,16 +11,16 @@ import '../../../styles/VideoCallPicker.css';const u = {
|
|
|
11
11
|
}, E = 2, Q = 80, W = 8, ee = 1, ae = (L) => {
|
|
12
12
|
const {
|
|
13
13
|
label: R = "",
|
|
14
|
-
iconSize:
|
|
14
|
+
iconSize: U = 20,
|
|
15
15
|
disabled: a = !1,
|
|
16
|
-
className:
|
|
16
|
+
className: V,
|
|
17
17
|
style: v,
|
|
18
18
|
children: x
|
|
19
19
|
} = L, { t: d } = z(), { loginUserInfo: i } = Z(), { activeConversation: e } = $(), { allMembers: t, getGroupMemberList: _, memberCount: g } = q(), [A, b] = B(!1), p = j(null), k = n(() => i == null ? void 0 : i.userId, [i]), I = n(() => (e == null ? void 0 : e.type) === P.C2C, [e]), N = n(() => (t == null ? void 0 : t.map((o) => ({
|
|
20
20
|
key: o.userID,
|
|
21
21
|
label: o.nick || o.userID,
|
|
22
22
|
avatarUrl: o.avatar
|
|
23
|
-
}))) ?? [], [t]), M = n(() => !(!e || a), [e, a]),
|
|
23
|
+
}))) ?? [], [t]), M = n(() => !(!e || a), [e, a]), h = l(() => {
|
|
24
24
|
var r;
|
|
25
25
|
const o = (r = e == null ? void 0 : e.userProfile) == null ? void 0 : r.userID;
|
|
26
26
|
if (!o) {
|
|
@@ -43,7 +43,7 @@ import '../../../styles/VideoCallPicker.css';const u = {
|
|
|
43
43
|
count: Q,
|
|
44
44
|
offset: o
|
|
45
45
|
});
|
|
46
|
-
}, [e, t, g, _]),
|
|
46
|
+
}, [e, t, g, _]), y = l(() => {
|
|
47
47
|
f(), b(!0);
|
|
48
48
|
}, [f]), c = l(() => {
|
|
49
49
|
b(!1);
|
|
@@ -74,8 +74,8 @@ import '../../../styles/VideoCallPicker.css';const u = {
|
|
|
74
74
|
console.warn("Cannot start video call");
|
|
75
75
|
return;
|
|
76
76
|
}
|
|
77
|
-
I ?
|
|
78
|
-
}, [M, I,
|
|
77
|
+
I ? h() : y();
|
|
78
|
+
}, [M, I, h, y]), O = l(() => {
|
|
79
79
|
G();
|
|
80
80
|
}, [G]);
|
|
81
81
|
return /* @__PURE__ */ s(F, { children: /* @__PURE__ */ T(H, { children: [
|
|
@@ -88,7 +88,7 @@ import '../../../styles/VideoCallPicker.css';const u = {
|
|
|
88
88
|
{
|
|
89
89
|
[u["video-call-picker__button--disabled"]]: a
|
|
90
90
|
},
|
|
91
|
-
|
|
91
|
+
V
|
|
92
92
|
),
|
|
93
93
|
style: v,
|
|
94
94
|
onClick: w,
|
|
@@ -98,7 +98,7 @@ import '../../../styles/VideoCallPicker.css';const u = {
|
|
|
98
98
|
K,
|
|
99
99
|
{
|
|
100
100
|
className: u["video-call-picker__icon"],
|
|
101
|
-
size: `${
|
|
101
|
+
size: `${U}px`
|
|
102
102
|
}
|
|
103
103
|
)
|
|
104
104
|
}
|
|
@@ -2,7 +2,7 @@ import { jsxs as m, jsx as c } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as k } from "react";
|
|
3
3
|
import { Icon as p } from "../Icon/Icon.js";
|
|
4
4
|
import { IconTypes as l } from "../Icon/type.js";
|
|
5
|
-
import '../../styles/
|
|
5
|
+
import '../../styles/index.css';function g(a) {
|
|
6
6
|
const {
|
|
7
7
|
checked: n = !1,
|
|
8
8
|
className: s,
|
|
@@ -4,7 +4,7 @@ import { Icon as B } from "../Icon/Icon.js";
|
|
|
4
4
|
import { IconTypes as D } from "../Icon/type.js";
|
|
5
5
|
import { Popup as H } from "../Popup/index.js";
|
|
6
6
|
import { usePluginsElement as L } from "./hooks/usePluginsElement.js";
|
|
7
|
-
import '../../styles/
|
|
7
|
+
import '../../styles/index3.css';function M(g, f) {
|
|
8
8
|
const {
|
|
9
9
|
plugins: N = [],
|
|
10
10
|
showNumber: x,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as f, Fragment as P } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as I, useState as x, useLayoutEffect as h } from "react";
|
|
3
|
-
import '../../styles/
|
|
3
|
+
import '../../styles/index4.css';function N(g) {
|
|
4
4
|
const {
|
|
5
5
|
show: o,
|
|
6
6
|
close: c,
|
|
@@ -2,7 +2,7 @@ import { jsx as i, jsxs as s } from "react/jsx-runtime";
|
|
|
2
2
|
import W, { useState as x } from "react";
|
|
3
3
|
import a from "@tencentcloud/chat-uikit-engine-lite";
|
|
4
4
|
import { useUIKit as R, IconChevronLeft as F } from "@tencentcloud/uikit-base-component-react";
|
|
5
|
-
import { A as G } from "../../index-
|
|
5
|
+
import { A as G } from "../../index-J-xtCKzN-BPkGsnbF.js";
|
|
6
6
|
import { DivWithEdit as S } from "../DivWithEdit/DivWithEdit.js";
|
|
7
7
|
import { DatePicker as B } from "./DatePicker/DatePicker.js";
|
|
8
8
|
const c = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as o, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { defaultUserAvatar as c } from "../../../constant/avatar.js";
|
|
3
|
-
import { A as n } from "../../../index-
|
|
3
|
+
import { A as n } from "../../../index-J-xtCKzN-BPkGsnbF.js";
|
|
4
4
|
import { IconHorizontalMoreTwo as l } from "@tencentcloud/uikit-base-component-react";
|
|
5
5
|
import '../../../styles/MyProfile.css';function v(i) {
|
|
6
6
|
const { profile: r, className: s = "", handleAvatar: e } = i;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMemo as o } from "react";
|
|
2
|
-
import { a as p, C as s } from "../index-
|
|
2
|
+
import { a as p, C as s } from "../index-J-xtCKzN-BPkGsnbF.js";
|
|
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(() => {
|