@tencentcloud/chat-uikit-react 5.3.1 → 5.5.1

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 CHANGED
@@ -1,12 +1,12 @@
1
- ## [5.3.1] (2025-2-26)
2
-
1
+ ## [5.5.1] (2026-03-11)
3
2
  ### feat
4
- * support quick send and customize CustomMessage
5
- * support offlinePushInfo
3
+ * Adjust the dependency on the base library to peerDependencies.
6
4
 
7
- #### fix
8
5
 
9
- * fix some exist problems.
6
+ ## [5.5.0] (2026-03-10)
7
+ ### feat
8
+ * upgrade engine、sdk、core to lite version
9
+
10
10
 
11
11
  ## [5.3.0] (2026-02-05)
12
12
  ### feat
@@ -2,25 +2,25 @@ import { jsx as s, Fragment as B, jsxs as V } 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-YINwPh9B.js";
5
- import { useLoginState as $, useConversationListState as q, useGroupSettingState as H, ConversationType as h, startCall as y, View as J, UserPicker as Q } from "tuikit-atomicx-react/chat";
5
+ import { useLoginState as $, useConversationListState as q, useGroupSettingState as H, ConversationType as S, startCall as A, View as J, UserPicker as Q } from "tuikit-atomicx-react/chat";
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
- }, D = 1, W = 80, v = 8, ee = 1, ae = (G) => {
11
+ }, L = 1, W = 80, v = 8, ee = 1, ae = (P) => {
12
12
  const {
13
- label: S = "",
14
- iconSize: A = 20,
13
+ label: E = "",
14
+ iconSize: R = 20,
15
15
  disabled: a = !1,
16
- className: L,
17
- style: P,
18
- children: E
19
- } = G, { t: p } = K(), { loginUserInfo: c } = $(), { activeConversation: e } = q(), { allMembers: t, getGroupMemberList: _, memberCount: g } = H(), [R, b] = j(!1), d = z(null), k = n(() => c == null ? void 0 : c.userId, [c]), U = n(() => (e == null ? void 0 : e.type) === h.C2C, [e]), x = n(() => (t == null ? void 0 : t.map((o) => ({
16
+ className: U,
17
+ style: x,
18
+ children: N
19
+ } = P, { t: p } = K(), { loginUserInfo: c } = $(), { activeConversation: e } = q(), { allMembers: t, getGroupMemberList: _, memberCount: g } = H(), [w, b] = j(!1), d = z(null), k = n(() => c == null ? void 0 : c.userId, [c]), I = n(() => (e == null ? void 0 : e.type) === S.C2C, [e]), O = 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 || a), [e, a]), w = r(() => {
23
+ }))) ?? [], [t]), M = n(() => !(!e || a), [e, a]), h = 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,28 +28,28 @@ import '../../../styles/AudioCallPicker.css';const u = {
28
28
  return;
29
29
  }
30
30
  try {
31
- y({
31
+ A({
32
32
  userIDList: [o],
33
- type: D
33
+ type: L
34
34
  });
35
35
  } catch (m) {
36
36
  console.error("Failed to start private audio call:", m);
37
37
  }
38
38
  }, [e == null ? void 0 : e.conversationID]), f = r(() => {
39
- if ((e == null ? void 0 : e.type) !== h.GROUP)
39
+ if ((e == null ? void 0 : e.type) !== S.GROUP)
40
40
  return;
41
41
  const o = (t == null ? void 0 : t.length) || 0;
42
42
  o < (g || 0) && _({
43
43
  count: W,
44
44
  offset: o
45
45
  });
46
- }, [e, t, g, _]), O = r(() => {
46
+ }, [e, t, g, _]), y = r(() => {
47
47
  f(), b(!0);
48
48
  }, [f]), i = r(() => {
49
49
  b(!1);
50
- }, []), I = r(() => {
51
- var M;
52
- const o = (M = e == null ? void 0 : e.groupProfile) == null ? void 0 : M.groupID;
50
+ }, []), D = r(() => {
51
+ var G;
52
+ const o = (G = e == null ? void 0 : e.groupProfile) == null ? void 0 : G.groupID;
53
53
  if (!d.current || !o) {
54
54
  console.warn("Missing group information for group call");
55
55
  return;
@@ -61,23 +61,23 @@ import '../../../styles/AudioCallPicker.css';const u = {
61
61
  }
62
62
  const m = l.map((C) => C.key);
63
63
  try {
64
- y({
64
+ A({
65
65
  userIDList: m,
66
66
  chatGroupID: o,
67
- type: D
67
+ type: L
68
68
  }), i();
69
69
  } catch (C) {
70
70
  console.error("Failed to start group audio call:", C);
71
71
  }
72
72
  }, [i]), F = r(() => {
73
- if (!N) {
73
+ if (!M) {
74
74
  console.warn("Cannot start audio call");
75
75
  return;
76
76
  }
77
- U ? w() : O();
78
- }, []), T = r(() => {
79
- I();
80
- }, [I]);
77
+ I ? h() : y();
78
+ }, [M, I, h, y]), T = r(() => {
79
+ D();
80
+ }, [D]);
81
81
  return /* @__PURE__ */ s(B, { children: /* @__PURE__ */ V(J, { children: [
82
82
  /* @__PURE__ */ s(
83
83
  "button",
@@ -88,17 +88,17 @@ import '../../../styles/AudioCallPicker.css';const u = {
88
88
  {
89
89
  [u["audio-call-picker__button--disabled"]]: a
90
90
  },
91
- L
91
+ U
92
92
  ),
93
- style: P,
93
+ style: x,
94
94
  onClick: F,
95
95
  disabled: a,
96
- "aria-label": S || "Audio Call",
97
- children: E || /* @__PURE__ */ s(
96
+ "aria-label": E || "Audio Call",
97
+ children: N || /* @__PURE__ */ s(
98
98
  X,
99
99
  {
100
100
  className: u["audio-call-picker__icon"],
101
- size: `${A}px`
101
+ size: `${R}px`
102
102
  }
103
103
  )
104
104
  }
@@ -106,7 +106,7 @@ import '../../../styles/AudioCallPicker.css';const u = {
106
106
  /* @__PURE__ */ s(
107
107
  Y,
108
108
  {
109
- visible: R,
109
+ visible: w,
110
110
  title: p("MessageInput.select_call_members"),
111
111
  cancelText: p("MessageInput.cancel"),
112
112
  onCancel: i,
@@ -119,7 +119,7 @@ import '../../../styles/AudioCallPicker.css';const u = {
119
119
  {
120
120
  ref: d,
121
121
  displayMode: "list",
122
- dataSource: x,
122
+ dataSource: O,
123
123
  lockedItems: k ? [{ key: k }] : [],
124
124
  maxCount: v,
125
125
  minCount: ee,
package/dist/index.js CHANGED
@@ -20,8 +20,8 @@ import { ChatProvider as q, useChatContext as z } from "./context/ChatContext.js
20
20
  import { useChatHeader as F } from "./hooks/useChatHeader.js";
21
21
  import { useUIManagerState as J } from "./states/UIManagerState.js";
22
22
  import './styles/index.css';export * from "tuikit-atomicx-react/chat";
23
- const e = "5.3.1";
24
- typeof window < "u" && (window.__CHAT_UIKIT_REACT__ = { name: "@tencentcloud/chat-uikit-react", version: "5.3.1" }, console.log("[@tencentcloud/chat-uikit-react] v5.3.1"));
23
+ const e = "5.5.1";
24
+ typeof window < "u" && (window.__CHAT_UIKIT_REACT__ = { name: "@tencentcloud/chat-uikit-react", version: "5.5.1" }, console.log("[@tencentcloud/chat-uikit-react] v5.5.1"));
25
25
  export {
26
26
  a as AudioCallPicker,
27
27
  d as Chat,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tencentcloud/chat-uikit-react",
3
- "version": "5.3.1",
3
+ "version": "5.5.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -43,7 +43,6 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@mui/base": "5.0.0-beta.66",
46
- "tuikit-atomicx-react": "^5.3.1",
47
46
  "classnames": "^2.5.1",
48
47
  "react-transition-group": "^4.4.5",
49
48
  "zustand": "^5.0.0"
@@ -93,7 +92,7 @@
93
92
  "vite-plugin-dts": "^4.2.2",
94
93
  "vite-plugin-lib-inject-css": "^2.1.1",
95
94
  "vite-plugin-static-copy": "^1.0.6",
96
- "@trtc/calls-uikit-react": "~4.4.2"
95
+ "@trtc/calls-uikit-react": "~4.4.5"
97
96
  },
98
97
  "peerDependencies": {
99
98
  "i18next": "^23.7.11",
@@ -102,7 +101,8 @@
102
101
  "@tencentcloud/lite-chat": "^1.6.3",
103
102
  "@tencentcloud/tui-core-lite": "~1.0.0",
104
103
  "@tencentcloud/chat-uikit-engine-lite": "~1.0.4",
104
+ "tuikit-atomicx-react": "^5.5.0",
105
105
  "@tencentcloud/uikit-base-component-react": "^1.1.7",
106
- "@tencentcloud/universal-api": "^2.4.0"
106
+ "@tencentcloud/universal-api": "^2.4.1"
107
107
  }
108
108
  }
@@ -173,7 +173,7 @@ const AudioCallPicker = (props: AudioCallPickerProps) => {
173
173
  } else {
174
174
  showGroupCallDialog();
175
175
  }
176
- }, []);
176
+ }, [canStartCall, isC2CConversation, initiatePrivateCall, showGroupCallDialog]);
177
177
 
178
178
  const handleConfirmGroupCall = useCallback(() => {
179
179
  initiateGroupCall();