@tencentcloud/chat-uikit-react 3.0.2 → 3.4.2

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 (115) hide show
  1. package/.eslintrc.cjs +5 -4
  2. package/CHANGELOG.md +9 -0
  3. package/debug/GenerateTestUserSig-es.js +26 -0
  4. package/debug/lib-generate-test-usersig-es.min.js +2 -0
  5. package/dist/components/Chat/Chat.d.ts +1 -1
  6. package/dist/components/Chat/Chat.js +18 -23
  7. package/dist/components/ChatHeader/AudioCallPicker/AudioCallPicker.d.ts +30 -0
  8. package/dist/components/ChatHeader/AudioCallPicker/AudioCallPicker.js +135 -0
  9. package/dist/components/ChatHeader/AudioCallPicker/index.d.ts +1 -0
  10. package/dist/components/ChatHeader/AudioCallPicker/index.js +4 -0
  11. package/dist/components/ChatHeader/ChatHeader.d.ts +6 -0
  12. package/dist/components/ChatHeader/ChatHeader.js +43 -41
  13. package/dist/components/ChatHeader/ChatHeaderUI/ChatHeaderUI.d.ts +14 -9
  14. package/dist/components/ChatHeader/ChatHeaderUI/ChatHeaderUI.js +47 -65
  15. package/dist/components/ChatHeader/VideoCallPicker/VideoCallPicker.d.ts +30 -0
  16. package/dist/components/ChatHeader/VideoCallPicker/VideoCallPicker.js +135 -0
  17. package/dist/components/ChatHeader/VideoCallPicker/index.d.ts +1 -0
  18. package/dist/components/ChatHeader/VideoCallPicker/index.js +4 -0
  19. package/dist/components/ChatHeader/index.d.ts +2 -1
  20. package/dist/components/ChatHeader/index.js +4 -2
  21. package/dist/components/Checkbox/index.js +1 -1
  22. package/dist/components/Modal/Modal.js +1 -1
  23. package/dist/components/Model/index.js +1 -1
  24. package/dist/components/Plugins/index.js +1 -1
  25. package/dist/components/Popup/index.js +1 -1
  26. package/dist/components/PopupNew/Popup.js +1 -1
  27. package/dist/components/Profile/Profile.js +20 -22
  28. package/dist/components/Profile/ProfileDefault.d.ts +3 -2
  29. package/dist/components/Profile/ProfileDefault.js +55 -56
  30. package/dist/components/Profile/hooks/useMyProfile.d.ts +2 -3
  31. package/dist/components/Profile/hooks/useMyProfile.js +1 -1
  32. package/dist/components/Profile/myProfile/MyProfile.d.ts +1 -1
  33. package/dist/components/Profile/myProfile/MyProfile.js +12 -16
  34. package/dist/components/index.js +27 -25
  35. package/dist/context/ChatContext.d.ts +1 -1
  36. package/dist/context/ChatContext.js +11 -16
  37. package/dist/context/ContactContext.d.ts +1 -1
  38. package/dist/external_modules/mui-BhvHeL5-.js +2253 -0
  39. package/dist/hooks/index.d.ts +2 -2
  40. package/dist/hooks/index.js +2 -2
  41. package/dist/{states/ChatHeaderState.d.ts → hooks/useChatHeader.d.ts} +6 -6
  42. package/dist/hooks/useChatHeader.js +41 -0
  43. package/dist/index-UBuvRM8r-DTXQB6zV.js +34000 -0
  44. package/dist/index.d.ts +3 -1
  45. package/dist/index.js +93 -4129
  46. package/dist/server/mainServer.js +2 -2
  47. package/dist/states/UIManagerState.d.ts +5 -5
  48. package/dist/states/UIManagerState.js +2 -2
  49. package/dist/states/index.d.ts +0 -1
  50. package/dist/states/index.js +2 -4
  51. package/dist/styles/AudioCallPicker.css +1 -0
  52. package/dist/styles/ChatHeaderUI.css +1 -1
  53. package/dist/styles/VideoCallPicker.css +1 -0
  54. package/dist/styles/index-UBuvRM8r.css +1 -0
  55. package/dist/styles/index.css +1 -1
  56. package/dist/styles/index2.css +1 -1
  57. package/dist/styles/index3.css +1 -1
  58. package/dist/styles/index4.css +1 -1
  59. package/dist/styles/index5.css +1 -1
  60. package/dist/types/message.d.ts +1 -1
  61. package/dist/types/user.d.ts +4 -4
  62. package/package.json +12 -20
  63. package/src/components/ChatHeader/AudioCallPicker/AudioCallPicker.module.scss +57 -0
  64. package/src/components/ChatHeader/AudioCallPicker/AudioCallPicker.tsx +234 -0
  65. package/src/components/ChatHeader/AudioCallPicker/index.ts +1 -0
  66. package/src/components/ChatHeader/ChatHeader.tsx +15 -3
  67. package/src/components/ChatHeader/ChatHeaderUI/ChatHeaderUI.tsx +33 -40
  68. package/src/components/ChatHeader/VideoCallPicker/VideoCallPicker.module.scss +57 -0
  69. package/src/components/ChatHeader/VideoCallPicker/VideoCallPicker.tsx +233 -0
  70. package/src/components/ChatHeader/VideoCallPicker/index.ts +1 -0
  71. package/src/components/ChatHeader/index.ts +2 -1
  72. package/src/components/Profile/Profile.tsx +7 -6
  73. package/src/components/Profile/ProfileDefault.tsx +8 -8
  74. package/src/components/Profile/hooks/useMyProfile.tsx +2 -3
  75. package/src/components/Profile/myProfile/MyProfile.tsx +1 -1
  76. package/src/context/ChatContext.tsx +1 -1
  77. package/src/context/ContactContext.tsx +1 -1
  78. package/src/hooks/index.ts +2 -2
  79. package/src/{states/ChatHeaderState.ts → hooks/useChatHeader.ts} +19 -22
  80. package/src/index.ts +3 -5
  81. package/src/server/mainServer.ts +2 -2
  82. package/src/states/UIManagerState.ts +9 -9
  83. package/src/states/index.ts +0 -2
  84. package/src/styles/index.scss +0 -1
  85. package/src/types/message.ts +1 -1
  86. package/src/types/user.ts +4 -4
  87. package/vite.config.ts +4 -25
  88. package/dist/ChatSetting-BtQwjHr0.js +0 -28525
  89. package/dist/assets/fonts/iconfont.ttf +0 -0
  90. package/dist/assets/fonts/iconfont.woff +0 -0
  91. package/dist/assets/fonts/iconfont.woff2 +0 -0
  92. package/dist/components/ChatHeader/ChatHeaderActions/ChatHeaderActions.d.ts +0 -11
  93. package/dist/components/ChatHeader/ChatHeaderActions/ChatHeaderActions.js +0 -79
  94. package/dist/components/ChatHeader/ChatHeaderActions/index.d.ts +0 -1
  95. package/dist/components/ChatHeader/ChatHeaderActions/index.js +0 -4
  96. package/dist/components/IconFont/Icon.d.ts +0 -21
  97. package/dist/components/IconFont/Icon.js +0 -47
  98. package/dist/components/IconFont/index.d.ts +0 -2
  99. package/dist/components/IconFont/index.js +0 -4
  100. package/dist/external_modules/lodash-vwDjcXxQ.js +0 -0
  101. package/dist/external_modules/mui-BcA3SBHM.js +0 -2473
  102. package/dist/states/ChatHeaderState.js +0 -48
  103. package/dist/styles/ChatHeaderActions.css +0 -1
  104. package/dist/styles/ChatSetting.css +0 -1
  105. package/dist/styles/Icon2.css +0 -1
  106. package/src/assets/fonts/iconfont.ttf +0 -0
  107. package/src/assets/fonts/iconfont.woff +0 -0
  108. package/src/assets/fonts/iconfont.woff2 +0 -0
  109. package/src/components/ChatHeader/ChatHeaderActions/ChatHeaderActions.module.scss +0 -44
  110. package/src/components/ChatHeader/ChatHeaderActions/ChatHeaderActions.tsx +0 -105
  111. package/src/components/ChatHeader/ChatHeaderActions/index.ts +0 -1
  112. package/src/components/IconFont/Icon.module.scss +0 -42
  113. package/src/components/IconFont/Icon.tsx +0 -68
  114. package/src/components/IconFont/index.ts +0 -3
  115. package/src/styles/fonts/icon-font.scss +0 -18
@@ -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/index3.css';function M(g, f) {
7
+ import '../../styles/index4.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/index4.css';function N(g) {
3
+ import '../../styles/index5.css';function N(g) {
4
4
  const {
5
5
  show: o,
6
6
  close: c,
@@ -1,5 +1,5 @@
1
1
  import { jsx as f } from "react/jsx-runtime";
2
- import { P as u } from "../../external_modules/mui-BcA3SBHM.js";
2
+ import { P as u } from "../../external_modules/mui-BhvHeL5-.js";
3
3
  function m(t) {
4
4
  const {
5
5
  anchor: o,
@@ -1,36 +1,34 @@
1
- import { jsx as o, Fragment as n } from "react/jsx-runtime";
2
- import p from "react";
1
+ import { jsx as o, Fragment as m } from "react/jsx-runtime";
2
+ import s, { useState as a } from "react";
3
+ import { useMyProfile as p } from "./hooks/useMyProfile.js";
3
4
  import { MyProfile as P } from "./myProfile/MyProfile.js";
4
- import { useMyProfile as s } from "./hooks/useMyProfile.js";
5
- import { TUIProfileDefault as a } from "./ProfileDefault.js";
6
- import { i as c } from "../../ChatSetting-BtQwjHr0.js";
7
- import "@tencentcloud/uikit-base-component-react";
8
- import "@tencentcloud/chat-uikit-engine";
9
- import "@tencentcloud/tui-core";
10
- import "@tencentcloud/chat";
11
- import '../../styles/Profile.css';function u(i) {
5
+ import { TUIProfileDefault as c } from "./ProfileDefault.js";
6
+ import '../../styles/Profile.css';function u(t) {
12
7
  const {
13
- className: t,
14
- TUIProfile: f
15
- } = i, { myProfile: r, updateMyProfile: m } = s(), { setProfileOpen: l, isProfileOpen: e } = c();
16
- return /* @__PURE__ */ o(n, { children: e ? /* @__PURE__ */ o(
17
- f || a,
8
+ className: i,
9
+ TUIProfile: l
10
+ } = t, { myProfile: e, updateMyProfile: n } = p(), [r, f] = a(!1);
11
+ return /* @__PURE__ */ o(m, { children: r ? /* @__PURE__ */ o(
12
+ l || c,
18
13
  {
19
- className: t,
20
- userInfo: r,
21
- update: m
14
+ className: i,
15
+ userInfo: e,
16
+ update: n,
17
+ onClose: () => {
18
+ f(!1);
19
+ }
22
20
  }
23
21
  ) : /* @__PURE__ */ o(
24
22
  P,
25
23
  {
26
- profile: r,
24
+ profile: e,
27
25
  handleAvatar: () => {
28
- l(!e);
26
+ f(!r);
29
27
  }
30
28
  }
31
29
  ) });
32
30
  }
33
- const g = p.memo(u);
31
+ const C = s.memo(u);
34
32
  export {
35
- g as Profile
33
+ C as Profile
36
34
  };
@@ -1,9 +1,10 @@
1
1
  import { default as React } from 'react';
2
- import { Profile } from '@tencentcloud/chat';
3
- import { UpdateMyProfileParams } from '@tencentcloud/chat-uikit-engine';
2
+ import { Profile } from '@tencentcloud/lite-chat';
3
+ import { UpdateMyProfileParams } from '@tencentcloud/chat-uikit-engine-lite';
4
4
  export interface TUIProfileDefaultProps {
5
5
  userInfo?: Profile | undefined;
6
6
  update?: ((option: UpdateMyProfileParams) => void) | undefined;
7
+ onClose?: () => void;
7
8
  className?: string | undefined;
8
9
  }
9
10
  export declare function TUIProfileDefault(props: TUIProfileDefaultProps): React.ReactElement;
@@ -1,21 +1,19 @@
1
1
  import { jsx as i, jsxs as s } from "react/jsx-runtime";
2
2
  import W, { useState as x } from "react";
3
- import a from "@tencentcloud/chat-uikit-engine";
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 { i as G, V as B } from "../../ChatSetting-BtQwjHr0.js";
6
- import "@tencentcloud/tui-core";
7
- import "@tencentcloud/chat";
8
- import { DivWithEdit as L } from "../DivWithEdit/DivWithEdit.js";
9
- import { DatePicker as z } from "./DatePicker/DatePicker.js";
5
+ import { A as G } from "../../index-UBuvRM8r-DTXQB6zV.js";
6
+ import { DivWithEdit as S } from "../DivWithEdit/DivWithEdit.js";
7
+ import { DatePicker as B } from "./DatePicker/DatePicker.js";
10
8
  const c = {
11
9
  [a.TYPES.GENDER_UNKNOWN]: "Unknown",
12
10
  [a.TYPES.GENDER_MALE]: "male",
13
11
  [a.TYPES.GENDER_FEMALE]: "female"
14
- }, h = {
12
+ }, E = {
15
13
  [a.TYPES.ALLOW_TYPE_ALLOW_ANY]: "allowAny",
16
14
  [a.TYPES.ALLOW_TYPE_NEED_CONFIRM]: "needConfirm",
17
15
  [a.TYPES.ALLOW_TYPE_DENY_ANY]: "denyAny"
18
- }, E = [
16
+ }, N = [
19
17
  {
20
18
  label: "Unknown",
21
19
  value: a.TYPES.GENDER_UNKNOWN
@@ -28,7 +26,7 @@ const c = {
28
26
  label: "Female",
29
27
  value: a.TYPES.GENDER_FEMALE
30
28
  }
31
- ], N = [
29
+ ], y = [
32
30
  {
33
31
  label: "AllowAny",
34
32
  value: a.TYPES.ALLOW_TYPE_ALLOW_ANY
@@ -42,43 +40,44 @@ const c = {
42
40
  value: a.TYPES.ALLOW_TYPE_DENY_ANY
43
41
  }
44
42
  ];
45
- function K(p) {
46
- var P, _, D, Y, b, A;
43
+ function z(h) {
44
+ var _, A, D, Y, b, L;
47
45
  const {
48
46
  userInfo: e,
49
- className: S,
50
- update: y
51
- } = p, { t: r } = R(), { setProfileOpen: f } = G(), [T, o] = x(""), $ = (t) => {
47
+ update: T,
48
+ onClose: p,
49
+ className: v
50
+ } = h, { t: r } = R(), [u, o] = x(""), $ = (t) => {
52
51
  const l = String(t);
53
52
  if (l.length === 8) {
54
- const n = l.substring(0, 4), d = l.substring(4, 6), O = l.substring(6, 8);
55
- return `${n}/${d}/${O}`;
53
+ const n = l.substring(0, 4), m = l.substring(4, 6), O = l.substring(6, 8);
54
+ return `${n}/${m}/${O}`;
56
55
  }
57
56
  return `${t}`;
58
- }, v = (t) => {
57
+ }, f = (t) => {
59
58
  if ((t == null ? void 0 : t.length) === 8) {
60
- const l = Number(t.slice(0, 4)), n = Number(t.slice(4, 6)), d = Number(t.slice(-2));
61
- return new Date(l, n - 1, d);
59
+ const l = Number(t.slice(0, 4)), n = Number(t.slice(4, 6)), m = Number(t.slice(-2));
60
+ return new Date(l, n - 1, m);
62
61
  }
63
62
  return /* @__PURE__ */ new Date();
64
63
  }, k = (t) => {
65
64
  const l = t.getDate() > 9 ? t.getDate() : `0${t.getDate()}`, n = t.getMonth() > 8 ? t.getMonth() + 1 : `0${t.getMonth() + 1}`;
66
65
  return `${t.getFullYear()}${n}${l}`;
67
- }, u = (t) => {
66
+ }, g = (t) => {
68
67
  o(t);
69
- }, m = (t) => {
70
- y && y(t), o("");
68
+ }, d = (t) => {
69
+ T && T(t), o("");
71
70
  }, U = (t) => {
72
- m({ gender: t.value });
71
+ d({ gender: t.value });
73
72
  }, w = (t) => {
74
- m({ allowType: t.value });
73
+ d({ allowType: t.value });
75
74
  };
76
- function C(t) {
77
- m({
75
+ function M(t) {
76
+ d({
78
77
  birthday: Number(k(t))
79
78
  });
80
79
  }
81
- const g = (t) => {
80
+ const P = (t) => {
82
81
  let l = "";
83
82
  switch (t == null ? void 0 : t.name) {
84
83
  case "nick":
@@ -94,8 +93,8 @@ function K(p) {
94
93
  const n = {
95
94
  [l]: t.value
96
95
  };
97
- m(n);
98
- }, M = [
96
+ d(n);
97
+ }, C = [
99
98
  {
100
99
  name: "Signature",
101
100
  value: e == null ? void 0 : e.selfSignature,
@@ -104,15 +103,15 @@ function K(p) {
104
103
  },
105
104
  {
106
105
  name: "Gender",
107
- value: r(e != null && e.gender && ((_ = c[e == null ? void 0 : e.gender]) != null && _.replace(
106
+ value: r(e != null && e.gender && ((A = c[e == null ? void 0 : e.gender]) != null && A.replace(
108
107
  c[e == null ? void 0 : e.gender][0],
109
- (P = c[e == null ? void 0 : e.gender][0]) == null ? void 0 : P.toLocaleUpperCase()
108
+ (_ = c[e == null ? void 0 : e.gender][0]) == null ? void 0 : _.toLocaleUpperCase()
110
109
  )) ? `TUIProfile.${(Y = c[e == null ? void 0 : e.gender]) == null ? void 0 : Y.replace(
111
110
  c[e == null ? void 0 : e.gender][0],
112
111
  (D = c[e == null ? void 0 : e.gender][0]) == null ? void 0 : D.toLocaleUpperCase()
113
112
  )}` : ""),
114
113
  type: "select",
115
- children: /* @__PURE__ */ i("ul", { className: "select-list", children: E == null ? void 0 : E.map((t, l) => {
114
+ children: /* @__PURE__ */ i("ul", { className: "select-list", children: N == null ? void 0 : N.map((t, l) => {
116
115
  const n = `${t.value}${l}`;
117
116
  return /* @__PURE__ */ i(
118
117
  "li",
@@ -131,12 +130,12 @@ function K(p) {
131
130
  },
132
131
  {
133
132
  name: "AllowType",
134
- value: r(`TUIProfile.${(A = h[(e == null ? void 0 : e.allowType) || ""]) == null ? void 0 : A.replace(
135
- e && h[e == null ? void 0 : e.allowType][0],
136
- e && ((b = h[e == null ? void 0 : e.allowType][0]) == null ? void 0 : b.toLocaleUpperCase())
133
+ value: r(`TUIProfile.${(L = E[(e == null ? void 0 : e.allowType) || ""]) == null ? void 0 : L.replace(
134
+ e && E[e == null ? void 0 : e.allowType][0],
135
+ e && ((b = E[e == null ? void 0 : e.allowType][0]) == null ? void 0 : b.toLocaleUpperCase())
137
136
  )}`),
138
137
  type: "select",
139
- children: /* @__PURE__ */ i("ul", { className: "select-list", children: N == null ? void 0 : N.map((t, l) => {
138
+ children: /* @__PURE__ */ i("ul", { className: "select-list", children: y == null ? void 0 : y.map((t, l) => {
140
139
  const n = `${t.value}${l}`;
141
140
  return /* @__PURE__ */ i(
142
141
  "li",
@@ -158,24 +157,24 @@ function K(p) {
158
157
  value: e != null && e.birthday ? $(e.birthday) : "",
159
158
  type: "select",
160
159
  children: /* @__PURE__ */ i(
161
- z,
160
+ B,
162
161
  {
163
162
  className: "tui-profile-birthday",
164
163
  isOpen: !0,
165
164
  format: "y-MM-dd",
166
- onChange: C,
167
- value: v(`${e == null ? void 0 : e.birthday}`)
165
+ onChange: M,
166
+ value: f(`${e == null ? void 0 : e.birthday}`)
168
167
  }
169
168
  )
170
169
  }
171
170
  ];
172
- return /* @__PURE__ */ s("div", { className: `${S} tui-profile`, children: [
171
+ return /* @__PURE__ */ s("div", { className: `${v} tui-profile`, children: [
173
172
  /* @__PURE__ */ s(
174
173
  "header",
175
174
  {
176
175
  className: "tui-profile-header",
177
176
  onClick: () => {
178
- f(!1);
177
+ p == null || p();
179
178
  },
180
179
  children: [
181
180
  /* @__PURE__ */ i(F, { size: "24px" }),
@@ -185,22 +184,22 @@ function K(p) {
185
184
  ),
186
185
  /* @__PURE__ */ s("main", { className: "tui-profile-main", children: [
187
186
  /* @__PURE__ */ i("div", { className: "tui-profile-avatar", children: /* @__PURE__ */ i(
188
- B,
187
+ G,
189
188
  {
190
189
  src: (e == null ? void 0 : e.avatar) || "",
191
190
  size: "xl"
192
191
  }
193
192
  ) }),
194
193
  /* @__PURE__ */ i(
195
- L,
194
+ S,
196
195
  {
197
196
  name: "nick",
198
197
  className: "tui-profile-nick",
199
198
  value: e == null ? void 0 : e.nick,
200
199
  type: "text",
201
- toggle: u,
202
- isEdit: T === "nick",
203
- confirm: g,
200
+ toggle: g,
201
+ isEdit: u === "nick",
202
+ confirm: P,
204
203
  close: () => {
205
204
  o("");
206
205
  }
@@ -211,21 +210,21 @@ function K(p) {
211
210
  /* @__PURE__ */ i("span", { children: e == null ? void 0 : e.userID })
212
211
  ] })
213
212
  ] }),
214
- /* @__PURE__ */ i("ul", { className: "tui-profile-list", children: M.map((t) => {
213
+ /* @__PURE__ */ i("ul", { className: "tui-profile-list", children: C.map((t) => {
215
214
  const l = `${t.name}`;
216
215
  return /* @__PURE__ */ s("li", { className: "tui-profile-list-item", children: [
217
216
  /* @__PURE__ */ i("h4", { children: r(`TUIProfile.${t.name}`) }),
218
217
  /* @__PURE__ */ i(
219
- L,
218
+ S,
220
219
  {
221
220
  className: "tui-profile-div-with-edit",
222
221
  classEditName: "tui-profile-edit",
223
222
  name: t.name,
224
223
  value: t.value,
225
224
  type: t.type,
226
- toggle: u,
227
- isEdit: T === t.name,
228
- confirm: g,
225
+ toggle: g,
226
+ isEdit: u === t.name,
227
+ confirm: P,
229
228
  close: () => {
230
229
  o("");
231
230
  },
@@ -236,11 +235,11 @@ function K(p) {
236
235
  }) })
237
236
  ] });
238
237
  }
239
- const j = W.memo(K);
240
- function te(p) {
241
- const e = { ...p };
242
- return /* @__PURE__ */ i(j, { ...e });
238
+ const K = W.memo(z);
239
+ function Z(h) {
240
+ const e = { ...h };
241
+ return /* @__PURE__ */ i(K, { ...e });
243
242
  }
244
243
  export {
245
- te as TUIProfileDefault
244
+ Z as TUIProfileDefault
246
245
  };
@@ -1,5 +1,4 @@
1
- import { Profile } from '@tencentcloud/chat';
2
- import { UpdateMyProfileParams } from '@tencentcloud/chat-uikit-engine';
1
+ import { UpdateMyProfileParams } from '@tencentcloud/chat-uikit-engine-lite';
3
2
  export interface ProfileParams {
4
3
  nick?: string;
5
4
  avatar?: string;
@@ -16,6 +15,6 @@ export interface ProfileParams {
16
15
  profileCustomField?: Array<any>;
17
16
  }
18
17
  export declare function useMyProfile(): {
19
- myProfile: Profile | undefined;
18
+ myProfile: any;
20
19
  updateMyProfile: (options: UpdateMyProfileParams) => void;
21
20
  };
@@ -1,5 +1,5 @@
1
1
  import { useState as i, useEffect as s } from "react";
2
- import { TUIStore as u, StoreName as c, TUIUserService as n } from "@tencentcloud/chat-uikit-engine";
2
+ import { TUIStore as u, StoreName as c, TUIUserService as n } from "@tencentcloud/chat-uikit-engine-lite";
3
3
  function P() {
4
4
  const [r, o] = i(), t = (e) => {
5
5
  n.updateMyProfile(e);
@@ -1,4 +1,4 @@
1
- import { Profile as TProfile } from '@tencentcloud/chat';
1
+ import { Profile as TProfile } from '@tencentcloud/lite-chat';
2
2
  export interface ProfileProps {
3
3
  profile?: TProfile | undefined;
4
4
  className?: string | undefined;
@@ -1,21 +1,17 @@
1
- import { jsxs as e, jsx as o } from "react/jsx-runtime";
2
- import { defaultUserAvatar as s } from "../../../constant/avatar.js";
3
- import { V as t } from "../../../ChatSetting-BtQwjHr0.js";
4
- import { IconHorizontalMoreTwo as c } from "@tencentcloud/uikit-base-component-react";
5
- import "@tencentcloud/chat-uikit-engine";
6
- import "@tencentcloud/tui-core";
7
- import "react";
8
- import "@tencentcloud/chat";
9
- import '../../../styles/MyProfile.css';function N(a) {
10
- const { profile: r, className: m = "", handleAvatar: i } = a;
11
- return ((r == null ? void 0 : r.nick) || (r == null ? void 0 : r.userID)) && /* @__PURE__ */ e("div", { className: `profile ${m}`, children: [
12
- /* @__PURE__ */ e("div", { className: "profile-content", onClick: i, children: [
13
- /* @__PURE__ */ o(t, { src: r.avatar || s }),
14
- /* @__PURE__ */ o("div", { className: "profile-name", children: r.nick || r.userID })
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-UBuvRM8r-DTXQB6zV.js";
4
+ import { IconHorizontalMoreTwo as l } from "@tencentcloud/uikit-base-component-react";
5
+ import '../../../styles/MyProfile.css';function v(i) {
6
+ const { profile: r, className: s = "", handleAvatar: e } = i;
7
+ return ((r == null ? void 0 : r.nick) || (r == null ? void 0 : r.userID)) && /* @__PURE__ */ o("div", { className: `profile ${s}`, children: [
8
+ /* @__PURE__ */ o("div", { className: "profile-content", onClick: e, children: [
9
+ /* @__PURE__ */ a(n, { src: r.avatar || c }),
10
+ /* @__PURE__ */ a("div", { className: "profile-name", children: r.nick || r.userID })
15
11
  ] }),
16
- /* @__PURE__ */ o("div", { className: "profile-more", onClick: i, children: /* @__PURE__ */ o(c, { size: "24px" }) })
12
+ /* @__PURE__ */ a("div", { className: "profile-more", onClick: e, children: /* @__PURE__ */ a(l, { size: "24px" }) })
17
13
  ] });
18
14
  }
19
15
  export {
20
- N as MyProfile
16
+ v as MyProfile
21
17
  };
@@ -1,31 +1,33 @@
1
1
  import { ChatHeader as e } from "./ChatHeader/ChatHeader.js";
2
- import { ChatHeaderActions as p } from "./ChatHeader/ChatHeaderActions/ChatHeaderActions.js";
3
- import { Chat as m } from "./Chat/Chat.js";
4
- import { Checkbox as a } from "./Checkbox/index.js";
5
- import { DivWithEdit as c } from "./DivWithEdit/DivWithEdit.js";
2
+ import { AudioCallPicker as p } from "./ChatHeader/AudioCallPicker/AudioCallPicker.js";
3
+ import { VideoCallPicker as m } from "./ChatHeader/VideoCallPicker/VideoCallPicker.js";
4
+ import { Chat as i } from "./Chat/Chat.js";
5
+ import { Checkbox as l } from "./Checkbox/index.js";
6
+ import { DivWithEdit as d } from "./DivWithEdit/DivWithEdit.js";
6
7
  import { EmptyStateIndicator as n } from "./EmptyStateIndicator/EmptyStateIndicator.js";
7
- import { Icon as d, changeTypeToIconClassName as s } from "./Icon/Icon.js";
8
- import { IconTypes as I } from "./Icon/type.js";
9
- import { Model as T } from "./Model/index.js";
10
- import { Plugins as y } from "./Plugins/index.js";
11
- import { Popup as D } from "./Popup/index.js";
12
- import { Profile as H } from "./Profile/Profile.js";
13
- import { TUIProfileDefault as b } from "./Profile/ProfileDefault.js";
14
- import { Switch as v } from "./Switch/Switch.js";
8
+ import { Icon as P, changeTypeToIconClassName as I } from "./Icon/Icon.js";
9
+ import { IconTypes as u } from "./Icon/type.js";
10
+ import { Model as k } from "./Model/index.js";
11
+ import { Plugins as g } from "./Plugins/index.js";
12
+ import { Popup as E } from "./Popup/index.js";
13
+ import { Profile as b } from "./Profile/Profile.js";
14
+ import { TUIProfileDefault as w } from "./Profile/ProfileDefault.js";
15
+ import { Switch as H } from "./Switch/Switch.js";
15
16
  export {
16
- m as Chat,
17
+ p as AudioCallPicker,
18
+ i as Chat,
17
19
  e as ChatHeader,
18
- p as ChatHeaderActions,
19
- a as Checkbox,
20
- c as DivWithEdit,
20
+ l as Checkbox,
21
+ d as DivWithEdit,
21
22
  n as EmptyStateIndicator,
22
- d as Icon,
23
- I as IconTypes,
24
- T as Model,
25
- y as Plugins,
26
- D as Popup,
27
- H as Profile,
28
- v as Switch,
29
- b as TUIProfileDefault,
30
- s as changeTypeToIconClassName
23
+ P as Icon,
24
+ u as IconTypes,
25
+ k as Model,
26
+ g as Plugins,
27
+ E as Popup,
28
+ b as Profile,
29
+ H as Switch,
30
+ w as TUIProfileDefault,
31
+ m as VideoCallPicker,
32
+ I as changeTypeToIconClassName
31
33
  };
@@ -1,4 +1,4 @@
1
- import { IConversationModel } from '@tencentcloud/chat-uikit-engine';
1
+ import { IConversationModel } from '@tencentcloud/chat-uikit-engine-lite';
2
2
  interface IChatProps {
3
3
  children?: React.ReactNode;
4
4
  }
@@ -1,27 +1,22 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
2
  import { createContext as i, useMemo as s, useContext as u } from "react";
3
3
  import { useUIManagerState as a } from "../states/UIManagerState.js";
4
- import "@tencentcloud/chat-uikit-engine";
5
- import "../ChatSetting-BtQwjHr0.js";
6
- import "@tencentcloud/uikit-base-component-react";
7
- import "@tencentcloud/tui-core";
8
- import "@tencentcloud/chat";
9
- const r = i(null);
10
- function v(t) {
4
+ const o = i(null);
5
+ function m(t) {
11
6
  const {
12
- conversation: o
13
- } = a(), e = s(() => ({
14
- currentConversation: o
15
- }), [o]);
16
- return /* @__PURE__ */ n(r.Provider, { value: e, children: t.children });
7
+ conversation: e
8
+ } = a(), r = s(() => ({
9
+ currentConversation: e
10
+ }), [e]);
11
+ return /* @__PURE__ */ n(o.Provider, { value: r, children: t.children });
17
12
  }
18
- function l() {
19
- const t = u(r);
13
+ function x() {
14
+ const t = u(o);
20
15
  if (!t)
21
16
  throw new Error("useChatContext must be used within a ChatProvider");
22
17
  return t;
23
18
  }
24
19
  export {
25
- v as ChatProvider,
26
- l as useChatContext
20
+ m as ChatProvider,
21
+ x as useChatContext
27
22
  };
@@ -1,5 +1,5 @@
1
1
  import { default as React, PropsWithChildren } from 'react';
2
- import { Friend, Profile, FriendApplication } from '@tencentcloud/chat';
2
+ import { Friend, Profile, FriendApplication } from '@tencentcloud/lite-chat';
3
3
  export interface TUIContactContextValue {
4
4
  friendList?: Friend[];
5
5
  blocklistProfile?: Profile[];