@tencentcloud/chat-uikit-react 3.0.3 → 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.
- package/.eslintrc.cjs +5 -4
- package/CHANGELOG.md +9 -0
- package/dist/components/Chat/Chat.d.ts +1 -1
- package/dist/components/Chat/Chat.js +18 -23
- package/dist/components/ChatHeader/AudioCallPicker/AudioCallPicker.d.ts +30 -0
- package/dist/components/ChatHeader/AudioCallPicker/AudioCallPicker.js +135 -0
- package/dist/components/ChatHeader/AudioCallPicker/index.d.ts +1 -0
- package/dist/components/ChatHeader/AudioCallPicker/index.js +4 -0
- package/dist/components/ChatHeader/ChatHeader.d.ts +6 -0
- package/dist/components/ChatHeader/ChatHeader.js +43 -41
- package/dist/components/ChatHeader/ChatHeaderUI/ChatHeaderUI.d.ts +12 -7
- package/dist/components/ChatHeader/ChatHeaderUI/ChatHeaderUI.js +47 -65
- package/dist/components/ChatHeader/VideoCallPicker/VideoCallPicker.d.ts +30 -0
- package/dist/components/ChatHeader/VideoCallPicker/VideoCallPicker.js +135 -0
- package/dist/components/ChatHeader/VideoCallPicker/index.d.ts +1 -0
- package/dist/components/ChatHeader/VideoCallPicker/index.js +4 -0
- package/dist/components/ChatHeader/index.d.ts +2 -1
- package/dist/components/ChatHeader/index.js +4 -2
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/Modal/Modal.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/PopupNew/Popup.js +1 -1
- package/dist/components/Profile/Profile.js +20 -22
- package/dist/components/Profile/ProfileDefault.d.ts +3 -2
- package/dist/components/Profile/ProfileDefault.js +55 -56
- package/dist/components/Profile/hooks/useMyProfile.d.ts +2 -3
- package/dist/components/Profile/hooks/useMyProfile.js +1 -1
- package/dist/components/Profile/myProfile/MyProfile.d.ts +1 -1
- package/dist/components/Profile/myProfile/MyProfile.js +12 -16
- package/dist/components/index.js +27 -25
- package/dist/context/ChatContext.d.ts +1 -1
- package/dist/context/ChatContext.js +11 -16
- package/dist/context/ContactContext.d.ts +1 -1
- package/dist/external_modules/mui-BhvHeL5-.js +2253 -0
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +2 -2
- package/dist/{states/ChatHeaderState.d.ts → hooks/useChatHeader.d.ts} +6 -6
- package/dist/hooks/useChatHeader.js +41 -0
- package/dist/index-UBuvRM8r-DTXQB6zV.js +34000 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +93 -4133
- package/dist/server/mainServer.js +2 -2
- package/dist/states/UIManagerState.d.ts +5 -5
- package/dist/states/UIManagerState.js +2 -2
- package/dist/states/index.d.ts +0 -1
- package/dist/states/index.js +2 -4
- package/dist/styles/AudioCallPicker.css +1 -0
- package/dist/styles/ChatHeaderUI.css +1 -1
- package/dist/styles/VideoCallPicker.css +1 -0
- package/dist/styles/index-UBuvRM8r.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/dist/types/message.d.ts +1 -1
- package/dist/types/user.d.ts +4 -4
- package/package.json +12 -20
- package/src/components/ChatHeader/AudioCallPicker/AudioCallPicker.module.scss +57 -0
- package/src/components/ChatHeader/AudioCallPicker/AudioCallPicker.tsx +234 -0
- package/src/components/ChatHeader/AudioCallPicker/index.ts +1 -0
- package/src/components/ChatHeader/ChatHeader.tsx +15 -3
- package/src/components/ChatHeader/ChatHeaderUI/ChatHeaderUI.tsx +29 -36
- package/src/components/ChatHeader/VideoCallPicker/VideoCallPicker.module.scss +57 -0
- package/src/components/ChatHeader/VideoCallPicker/VideoCallPicker.tsx +233 -0
- package/src/components/ChatHeader/VideoCallPicker/index.ts +1 -0
- package/src/components/ChatHeader/index.ts +2 -1
- package/src/components/Profile/Profile.tsx +7 -6
- package/src/components/Profile/ProfileDefault.tsx +8 -8
- package/src/components/Profile/hooks/useMyProfile.tsx +2 -3
- package/src/components/Profile/myProfile/MyProfile.tsx +1 -1
- package/src/context/ChatContext.tsx +1 -1
- package/src/context/ContactContext.tsx +1 -1
- package/src/hooks/index.ts +2 -2
- package/src/{states/ChatHeaderState.ts → hooks/useChatHeader.ts} +15 -17
- package/src/index.ts +3 -5
- package/src/server/mainServer.ts +2 -2
- package/src/states/UIManagerState.ts +9 -9
- package/src/states/index.ts +0 -2
- package/src/styles/index.scss +0 -1
- package/src/types/message.ts +1 -1
- package/src/types/user.ts +4 -4
- package/vite.config.ts +4 -25
- package/dist/ChatSetting-LYkP2NWu.js +0 -29890
- package/dist/assets/fonts/iconfont.ttf +0 -0
- package/dist/assets/fonts/iconfont.woff +0 -0
- package/dist/assets/fonts/iconfont.woff2 +0 -0
- package/dist/components/ChatHeader/ChatHeaderActions/ChatHeaderActions.d.ts +0 -11
- package/dist/components/ChatHeader/ChatHeaderActions/ChatHeaderActions.js +0 -79
- package/dist/components/ChatHeader/ChatHeaderActions/index.d.ts +0 -1
- package/dist/components/ChatHeader/ChatHeaderActions/index.js +0 -4
- package/dist/components/IconFont/Icon.d.ts +0 -21
- package/dist/components/IconFont/Icon.js +0 -47
- package/dist/components/IconFont/index.d.ts +0 -2
- package/dist/components/IconFont/index.js +0 -4
- package/dist/external_modules/lodash-vwDjcXxQ.js +0 -0
- package/dist/external_modules/mui-BcA3SBHM.js +0 -2473
- package/dist/states/ChatHeaderState.js +0 -46
- package/dist/styles/ChatHeaderActions.css +0 -1
- package/dist/styles/ChatSetting.css +0 -1
- package/dist/styles/Icon2.css +0 -1
- package/src/assets/fonts/iconfont.ttf +0 -0
- package/src/assets/fonts/iconfont.woff +0 -0
- package/src/assets/fonts/iconfont.woff2 +0 -0
- package/src/components/ChatHeader/ChatHeaderActions/ChatHeaderActions.module.scss +0 -44
- package/src/components/ChatHeader/ChatHeaderActions/ChatHeaderActions.tsx +0 -105
- package/src/components/ChatHeader/ChatHeaderActions/index.ts +0 -1
- package/src/components/IconFont/Icon.module.scss +0 -42
- package/src/components/IconFont/Icon.tsx +0 -68
- package/src/components/IconFont/index.ts +0 -3
- package/src/styles/fonts/icon-font.scss +0 -18
package/dist/components/index.js
CHANGED
|
@@ -1,31 +1,33 @@
|
|
|
1
1
|
import { ChatHeader as e } from "./ChatHeader/ChatHeader.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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
|
|
8
|
-
import { IconTypes as
|
|
9
|
-
import { Model as
|
|
10
|
-
import { Plugins as
|
|
11
|
-
import { Popup as
|
|
12
|
-
import { Profile as
|
|
13
|
-
import { TUIProfileDefault as
|
|
14
|
-
import { Switch as
|
|
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
|
-
|
|
17
|
+
p as AudioCallPicker,
|
|
18
|
+
i as Chat,
|
|
17
19
|
e as ChatHeader,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
c as DivWithEdit,
|
|
20
|
+
l as Checkbox,
|
|
21
|
+
d as DivWithEdit,
|
|
21
22
|
n as EmptyStateIndicator,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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,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
|
-
|
|
5
|
-
|
|
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:
|
|
13
|
-
} = a(),
|
|
14
|
-
currentConversation:
|
|
15
|
-
}), [
|
|
16
|
-
return /* @__PURE__ */ n(
|
|
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
|
|
19
|
-
const t = u(
|
|
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
|
-
|
|
26
|
-
|
|
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[];
|