@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,24 +0,0 @@
1
- import o from "react";
2
- const f = (e) => {
3
- let t;
4
- const n = /* @__PURE__ */ new Set(), a = (s, r) => {
5
- const c = typeof s == "function" ? s(t) : s;
6
- if (!Object.is(c, t)) {
7
- const l = t;
8
- t = r ?? (typeof c != "object" || c === null) ? c : Object.assign({}, t, c), n.forEach((b) => b(t, l));
9
- }
10
- }, u = () => t, i = { setState: a, getState: u, getInitialState: () => S, subscribe: (s) => (n.add(s), () => n.delete(s)) }, S = t = e(a, u, i);
11
- return i;
12
- }, j = (e) => f, g = (e) => e;
13
- function m(e, t = g) {
14
- const n = o.useSyncExternalStore(
15
- e.subscribe,
16
- o.useCallback(() => t(e.getState()), [e, t]),
17
- o.useCallback(() => t(e.getInitialState()), [e, t])
18
- );
19
- return o.useDebugValue(n), n;
20
- }
21
- export {
22
- j as c,
23
- m as u
24
- };