@tencentcloud/chat-uikit-react 3.0.1 → 3.0.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/CHANGELOG.md +11 -0
- package/dist/{ChatSetting-79tDbXT3.js → ChatSetting-BtQwjHr0.js} +3211 -3198
- package/dist/components/Chat/Chat.js +1 -1
- package/dist/components/ChatHeader/ChatHeader.js +1 -1
- package/dist/components/ChatHeader/ChatHeaderActions/ChatHeaderActions.js +1 -1
- package/dist/components/ChatHeader/ChatHeaderUI/ChatHeaderUI.js +1 -1
- package/dist/components/IconFont/Icon.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/PopupNew/Popup.js +1 -1
- package/dist/components/Profile/Profile.js +1 -1
- package/dist/components/Profile/ProfileDefault.js +1 -1
- package/dist/components/Profile/myProfile/MyProfile.js +1 -1
- package/dist/constant/avatar.d.ts +2 -1
- package/dist/constant/avatar.js +2 -1
- package/dist/context/ChatContext.js +1 -1
- package/dist/external_modules/{mui-CbGEJVT2.js → mui-BcA3SBHM.js} +1 -1
- package/dist/external_modules/{zustand-Dvydplxp.js → zustand-CDmQR4co.js} +7 -7
- package/dist/index.js +1039 -1027
- package/dist/states/ChatHeaderState.js +19 -19
- package/dist/states/UIManagerState.js +1 -1
- package/dist/styles/ChatSetting.css +1 -1
- package/package.json +2 -2
- package/src/constant/avatar.ts +2 -1
- package/src/states/ChatHeaderState.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tencentcloud/chat-uikit-react",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@tencentcloud/chat-uikit-engine": "~2.5.1",
|
|
45
45
|
"@tencentcloud/tui-core": "latest",
|
|
46
46
|
"@tencentcloud/uikit-base-component-react": "0.1.0",
|
|
47
|
-
"tuikit-atomicx-react": "0.1.
|
|
47
|
+
"tuikit-atomicx-react": "0.1.2",
|
|
48
48
|
"@tencentcloud/universal-api": "^2.4.0",
|
|
49
49
|
"@tiptap/extension-image": "2.0.0-beta.220",
|
|
50
50
|
"@tiptap/extension-placeholder": "2.0.0-beta.220",
|
package/src/constant/avatar.ts
CHANGED
|
@@ -2,4 +2,5 @@ export const defaultGroupAvatarWork = 'https://web.sdk.qcloud.com/im/demo/TUIkit
|
|
|
2
2
|
export const defaultGroupAvatarPublic = 'https://web.sdk.qcloud.com/im/demo/TUIkit/react-static/images/group_avatar_public.png';
|
|
3
3
|
export const defaultGroupAvatarMeeting = 'https://web.sdk.qcloud.com/im/demo/TUIkit/react-static/images/group_avatar_meeting.png';
|
|
4
4
|
export const defaultGroupAvatarAVChatRoom = 'https://web.sdk.qcloud.com/im/demo/TUIkit/react-static/images/group_avatar_AVChatRoom.png';
|
|
5
|
-
export const defaultUserAvatar = 'https://web.sdk.qcloud.com/component/TUIKit/assets/
|
|
5
|
+
export const defaultUserAvatar = 'https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_16.png';
|
|
6
|
+
export const DEFAULT_GROUP_COMMON_AVATAR = 'https://web.sdk.qcloud.com/im/demo/TUIkit/web/img/constomer.png';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
2
|
import { TUIChatEngine } from '@tencentcloud/chat-uikit-engine';
|
|
3
3
|
import { useConversationListState } from 'tuikit-atomicx-react';
|
|
4
|
-
import { defaultUserAvatar,
|
|
4
|
+
import { defaultUserAvatar, DEFAULT_GROUP_COMMON_AVATAR } from '../constant/avatar';
|
|
5
5
|
import { useUIManagerState } from './UIManagerState';
|
|
6
6
|
import type { IUserStatus } from '../types/user';
|
|
7
7
|
import type { IConversationModel } from '@tencentcloud/chat-uikit-engine';
|
|
@@ -77,7 +77,7 @@ function useChatHeaderState(): UseChatHeaderStoreReturn {
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
if (type === TUIChatEngine.TYPES.CONV_GROUP) {
|
|
80
|
-
return groupProfile?.avatar ||
|
|
80
|
+
return groupProfile?.avatar || DEFAULT_GROUP_COMMON_AVATAR;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
return '';
|