@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,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
|
-
};
|