@tencentcloud/chat-uikit-react 2.2.6 → 2.2.7
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 +10 -0
- package/dist/cjs/assets/fonts/iconfont.ttf +0 -0
- package/dist/cjs/assets/fonts/iconfont.woff +0 -0
- package/dist/cjs/assets/fonts/iconfont.woff2 +0 -0
- package/dist/cjs/components/ConversationCreate/hooks/useConversationCreate.js +1 -1
- package/dist/cjs/components/ConversationPreview/ConversationPreviewContent.js +1 -1
- package/dist/cjs/components/ConversationPreview/utils.js +1 -1
- package/dist/cjs/components/ConversationSearch/ConversationSearchResult.js +1 -1
- package/dist/cjs/components/Icon/config.js +1 -1
- package/dist/cjs/components/Icon/images/video-call.svg.js +1 -0
- package/dist/cjs/components/Icon/images/voice-call.svg.js +1 -0
- package/dist/cjs/components/Icon/type.d.ts +3 -1
- package/dist/cjs/components/Icon/type.js +1 -1
- package/dist/cjs/components/TUIChat/TUIChat.d.ts +3 -2
- package/dist/cjs/components/TUIChat/TUIChat.js +1 -1
- package/dist/cjs/components/TUIChat/TUIChatState.js +1 -1
- package/dist/cjs/components/TUIChat/index.js +1 -0
- package/dist/cjs/components/TUIChat/server.js +1 -0
- package/dist/cjs/components/TUIChat/utils.js +1 -0
- package/dist/cjs/components/TUIChatHeader/TUIChatHeader.d.ts +1 -0
- package/dist/cjs/components/TUIChatHeader/TUIChatHeader.js +1 -1
- package/dist/cjs/components/TUIChatHeader/TUIChatHeaderDefault.d.ts +2 -1
- package/dist/cjs/components/TUIChatHeader/TUIChatHeaderDefault.js +1 -1
- package/dist/cjs/components/TUIContact/TUIContactList/TUIContactList.js +1 -1
- package/dist/cjs/components/TUIContact/hooks/useTUIContact.js +1 -1
- package/dist/cjs/components/TUIMessage/MessageAvatar.js +1 -1
- package/dist/cjs/components/TUIMessage/MessageCustom.js +1 -1
- package/dist/cjs/components/TUIMessage/MessageStatus.js +1 -1
- package/dist/cjs/components/TUIMessage/hooks/useMessageHandler.js +1 -1
- package/dist/cjs/components/TUIMessage/hooks/useMessageReply.js +1 -1
- package/dist/cjs/components/TUIMessage/utils/index.js +1 -1
- package/dist/cjs/components/TUIMessageInput/InputPluginsDefalut.js +1 -1
- package/dist/cjs/components/TUIMessageInput/hooks/useHandleForwardMessage.js +1 -1
- package/dist/cjs/components/TUIMessageInput/hooks/useMessageInputText.js +1 -1
- package/dist/cjs/components/TUIMessageInput/hooks/useUploadPicker.js +1 -1
- package/dist/cjs/components/TUIMessageList/hooks/useMessageListElement.js +1 -1
- package/dist/cjs/components/TUIProfile/TUIProfileDefault.js +1 -1
- package/dist/cjs/components/{untils.js → utils.js} +1 -1
- package/dist/cjs/context/LanguageContext.js +1 -1
- package/dist/cjs/context/TUIChatActionContext.d.ts +2 -1
- package/dist/cjs/context/TUIConversationContext.js +1 -1
- package/dist/cjs/context/ThemeContext.js +1 -1
- package/dist/cjs/context/UIKitContext.d.ts +2 -2
- package/dist/cjs/context/UIKitContext.js +1 -1
- package/dist/cjs/index.css +1 -1
- package/dist/cjs/index.d.css +589 -259
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/locales/en-US/index.js +1 -1
- package/dist/cjs/locales/index.js +1 -1
- package/dist/cjs/locales/ja-JP/index.js +1 -1
- package/dist/cjs/locales/ko-KR/index.js +1 -1
- package/dist/cjs/locales/zh-CN/index.js +1 -1
- package/dist/cjs/locales/zh-TW/TUIChat.js +1 -0
- package/dist/cjs/locales/zh-TW/TUIContact.js +1 -0
- package/dist/cjs/locales/zh-TW/TUIConversation.js +1 -0
- package/dist/cjs/locales/zh-TW/TUIProfile.js +1 -0
- package/dist/cjs/locales/zh-TW/index.js +1 -0
- package/dist/esm/assets/fonts/iconfont.ttf +0 -0
- package/dist/esm/assets/fonts/iconfont.woff +0 -0
- package/dist/esm/assets/fonts/iconfont.woff2 +0 -0
- package/dist/esm/components/ConversationCreate/hooks/useConversationCreate.js +1 -1
- package/dist/esm/components/ConversationPreview/ConversationPreviewContent.js +1 -1
- package/dist/esm/components/ConversationPreview/utils.js +1 -1
- package/dist/esm/components/ConversationSearch/ConversationSearchResult.js +1 -1
- package/dist/esm/components/Icon/config.js +1 -1
- package/dist/esm/components/Icon/images/video-call.svg.js +1 -0
- package/dist/esm/components/Icon/images/voice-call.svg.js +1 -0
- package/dist/esm/components/Icon/type.d.ts +3 -1
- package/dist/esm/components/Icon/type.js +1 -1
- package/dist/esm/components/TUIChat/TUIChat.d.ts +3 -2
- package/dist/esm/components/TUIChat/TUIChat.js +1 -1
- package/dist/esm/components/TUIChat/TUIChatState.js +1 -1
- package/dist/esm/components/TUIChat/index.js +1 -0
- package/dist/esm/components/TUIChat/server.js +1 -0
- package/dist/esm/components/TUIChat/utils.js +1 -0
- package/dist/esm/components/TUIChatHeader/TUIChatHeader.d.ts +1 -0
- package/dist/esm/components/TUIChatHeader/TUIChatHeader.js +1 -1
- package/dist/esm/components/TUIChatHeader/TUIChatHeaderDefault.d.ts +2 -1
- package/dist/esm/components/TUIChatHeader/TUIChatHeaderDefault.js +1 -1
- package/dist/esm/components/TUIContact/TUIContactList/TUIContactList.js +1 -1
- package/dist/esm/components/TUIContact/hooks/useTUIContact.js +1 -1
- package/dist/esm/components/TUIMessage/MessageAvatar.js +1 -1
- package/dist/esm/components/TUIMessage/MessageCustom.js +1 -1
- package/dist/esm/components/TUIMessage/MessageStatus.js +1 -1
- package/dist/esm/components/TUIMessage/hooks/useMessageHandler.js +1 -1
- package/dist/esm/components/TUIMessage/hooks/useMessageReply.js +1 -1
- package/dist/esm/components/TUIMessage/utils/index.js +1 -1
- package/dist/esm/components/TUIMessageInput/InputPluginsDefalut.js +1 -1
- package/dist/esm/components/TUIMessageInput/hooks/useHandleForwardMessage.js +1 -1
- package/dist/esm/components/TUIMessageInput/hooks/useMessageInputText.js +1 -1
- package/dist/esm/components/TUIMessageInput/hooks/useUploadPicker.js +1 -1
- package/dist/esm/components/TUIMessageList/hooks/useMessageListElement.js +1 -1
- package/dist/esm/components/TUIProfile/TUIProfileDefault.js +1 -1
- package/dist/esm/components/utils.js +1 -0
- package/dist/esm/context/LanguageContext.js +1 -1
- package/dist/esm/context/TUIChatActionContext.d.ts +2 -1
- package/dist/esm/context/TUIConversationContext.js +1 -1
- package/dist/esm/context/ThemeContext.js +1 -1
- package/dist/esm/context/UIKitContext.d.ts +2 -2
- package/dist/esm/context/UIKitContext.js +1 -1
- package/dist/esm/index.css +1 -1
- package/dist/esm/index.d.css +589 -259
- package/dist/esm/index.js +1 -1
- package/dist/esm/locales/en-US/index.js +1 -1
- package/dist/esm/locales/index.js +1 -1
- package/dist/esm/locales/ja-JP/index.js +1 -1
- package/dist/esm/locales/ko-KR/index.js +1 -1
- package/dist/esm/locales/zh-CN/index.js +1 -1
- package/dist/esm/locales/zh-TW/TUIChat.js +1 -0
- package/dist/esm/locales/zh-TW/TUIContact.js +1 -0
- package/dist/esm/locales/zh-TW/TUIConversation.js +1 -0
- package/dist/esm/locales/zh-TW/TUIProfile.js +1 -0
- package/dist/esm/locales/zh-TW/index.js +1 -0
- package/package.json +2 -1
- package/rollup.config.js +1 -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/Avatar/styles/index.scss +11 -4
- package/src/components/Checkbox/styles/color.scss +17 -6
- package/src/components/ConversationCreate/hooks/useConversationCreate.tsx +5 -5
- package/src/components/ConversationCreate/styles/ConversationCreatGroupDetail.scss +7 -16
- package/src/components/ConversationCreate/styles/conversationCreateSelectView.scss +13 -8
- package/src/components/ConversationCreate/styles/conversationGroupTypeInfo.scss +20 -21
- package/src/components/ConversationCreate/styles/index.scss +30 -17
- package/src/components/ConversationPreview/ConversationPreviewContent.tsx +1 -0
- package/src/components/ConversationPreview/styles/index.scss +20 -20
- package/src/components/ConversationPreview/utils.tsx +3 -2
- package/src/components/DivWithEdit/styles/index.scss +30 -10
- package/src/components/Icon/config.ts +14 -4
- package/src/components/Icon/images/video-call.svg +3 -0
- package/src/components/Icon/images/voice-call.svg +3 -0
- package/src/components/Icon/type.ts +2 -0
- package/src/components/Input/styles/index.scss +22 -6
- package/src/components/Plugins/styles/color.scss +3 -11
- package/src/components/Profile/styles/index.scss +12 -3
- package/src/components/TUIChat/TUIChat.tsx +36 -32
- package/src/components/TUIChat/TUIChatState.tsx +41 -41
- package/src/components/TUIChat/index.ts +3 -0
- package/src/components/TUIChat/server.ts +44 -0
- package/src/components/TUIChat/styles/layout.scss +7 -2
- package/src/components/TUIChat/utils.ts +72 -0
- package/src/components/TUIChatHeader/TUIChatHeader.tsx +10 -7
- package/src/components/TUIChatHeader/TUIChatHeaderDefault.tsx +72 -29
- package/src/components/TUIChatHeader/styles/layout.scss +16 -9
- package/src/components/TUIContact/TUIContactInfo/index.scss +44 -21
- package/src/components/TUIContact/TUIContactList/TUIContactList.tsx +75 -71
- package/src/components/TUIContact/TUIContactList/index.scss +40 -20
- package/src/components/TUIContact/hooks/useTUIContact.tsx +3 -3
- package/src/components/TUIContact/index.scss +30 -11
- package/src/components/TUIContactSearch/index.scss +12 -3
- package/src/components/TUIConversationList/index.scss +3 -4
- package/src/components/TUIManage/styles/index.scss +20 -14
- package/src/components/TUIMessage/MessageAvatar.tsx +7 -7
- package/src/components/TUIMessage/MessageBubble.tsx +22 -21
- package/src/components/TUIMessage/MessageCustom.tsx +26 -5
- package/src/components/TUIMessage/MessageStatus.tsx +5 -5
- package/src/components/TUIMessage/hooks/useMessageHandler.ts +6 -6
- package/src/components/TUIMessage/hooks/useMessageReply.ts +6 -5
- package/src/components/TUIMessage/styles/color.scss +6 -5
- package/src/components/TUIMessage/styles/layout.scss +111 -42
- package/src/components/TUIMessage/utils/index.ts +23 -12
- package/src/components/TUIMessageInput/InputPluginsDefalut.tsx +12 -12
- package/src/components/TUIMessageInput/hooks/useHandleForwardMessage.tsx +5 -4
- package/src/components/TUIMessageInput/hooks/useMessageInputText.tsx +12 -12
- package/src/components/TUIMessageInput/hooks/useUploadPicker.tsx +4 -4
- package/src/components/TUIMessageInput/styles/color.scss +15 -11
- package/src/components/TUIMessageInput/styles/layout.scss +33 -17
- package/src/components/TUIMessageList/hooks/useMessageListElement.tsx +13 -9
- package/src/components/TUIMessageList/styles/layout.scss +16 -9
- package/src/components/TUIProfile/TUIProfileDefault.tsx +12 -11
- package/src/components/TUIProfile/styles/color.scss +6 -5
- package/src/components/TUIProfile/styles/layout.scss +16 -14
- package/src/components/{untils.ts → utils.ts} +5 -4
- package/src/context/LanguageContext.tsx +5 -4
- package/src/context/TUIChatActionContext.tsx +14 -13
- package/src/context/ThemeContext.tsx +12 -5
- package/src/context/UIKitContext.tsx +11 -2
- package/src/locales/en-US/index.ts +0 -3
- package/src/locales/index.ts +6 -2
- package/src/locales/ja-JP/index.ts +0 -2
- package/src/locales/ko-KR/index.ts +0 -2
- package/src/locales/zh-CN/index.ts +0 -2
- package/src/locales/zh-TW/TUIChat.ts +27 -0
- package/src/locales/zh-TW/TUIContact.ts +29 -0
- package/src/locales/zh-TW/TUIConversation.ts +32 -0
- package/src/locales/zh-TW/TUIProfile.ts +15 -0
- package/src/locales/zh-TW/index.ts +11 -0
- package/src/styles/colors/_color-dark.scss +31 -21
- package/src/styles/colors/_color-light.scss +31 -21
- package/src/styles/colors/_color-theme.scss +32 -21
- package/src/styles/normalize.scss +6 -0
- package/dist/cjs/components/Icon/images/down-arrow.png.js +0 -1
- package/dist/cjs/components/Icon/images/right-arrow.svg.js +0 -1
- package/dist/cjs/components/TUIChat/unitls.js +0 -1
- package/dist/cjs/locales/en-US/TUIGlobal.js +0 -1
- package/dist/cjs/locales/ja-JP/TUIGlobal.js +0 -1
- package/dist/cjs/locales/ko-KR/TUIGlobal.js +0 -1
- package/dist/cjs/locales/zh-CN/TUIGlobal.js +0 -1
- package/dist/esm/components/Icon/images/down-arrow.png.js +0 -1
- package/dist/esm/components/Icon/images/right-arrow.svg.js +0 -1
- package/dist/esm/components/TUIChat/unitls.js +0 -1
- package/dist/esm/components/untils.js +0 -1
- package/dist/esm/locales/en-US/TUIGlobal.js +0 -1
- package/dist/esm/locales/ja-JP/TUIGlobal.js +0 -1
- package/dist/esm/locales/ko-KR/TUIGlobal.js +0 -1
- package/dist/esm/locales/zh-CN/TUIGlobal.js +0 -1
- package/scripts/publish-github.js +0 -60
- package/scripts/publish-intl-demo.js +0 -14
- package/scripts/publish-intl-experience-demo.js +0 -14
- package/src/components/TUIChat/unitls.ts +0 -39
- package/src/locales/en-US/TUIGlobal.ts +0 -6
- package/src/locales/ja-JP/TUIGlobal.ts +0 -6
- package/src/locales/ko-KR/TUIGlobal.ts +0 -6
- package/src/locales/zh-CN/TUIGlobal.ts +0 -6
|
@@ -4,17 +4,18 @@ import { IMessageModel } from '@tencentcloud/chat-uikit-engine';
|
|
|
4
4
|
import { OperateMessageParams } from '../components/TUIChat/hooks/useHandleMessage';
|
|
5
5
|
|
|
6
6
|
export interface TUIChatActionContextValue {
|
|
7
|
-
updateMessage?: (messages:
|
|
8
|
-
setFirstSendMessage?: (message: IMessageModel) => void
|
|
9
|
-
editLocalMessage?: (message: Message) => void
|
|
10
|
-
operateMessage?: (data?: OperateMessageParams) => void
|
|
11
|
-
loadMore?: () => Promise<void
|
|
12
|
-
revokeMessage?: (message:Message) => Promise<Message
|
|
13
|
-
setAudioSource?: (source: HTMLAudioElement | null) => void
|
|
14
|
-
setVideoSource?: (source: HTMLVideoElement | null) => void
|
|
15
|
-
setHighlightedMessageId?: (highlightedMessageId: string) => void
|
|
16
|
-
updateUploadPendingMessageList?: (message?:Message) => void
|
|
17
|
-
setActiveMessageID?: (messageID: string) => void
|
|
7
|
+
updateMessage?: (messages: Message[]) => void;
|
|
8
|
+
setFirstSendMessage?: (message: IMessageModel) => void;
|
|
9
|
+
editLocalMessage?: (message: Message) => void;
|
|
10
|
+
operateMessage?: (data?: OperateMessageParams) => void;
|
|
11
|
+
loadMore?: () => Promise<void>;
|
|
12
|
+
revokeMessage?: (message: Message) => Promise<Message>;
|
|
13
|
+
setAudioSource?: (source: HTMLAudioElement | null) => void;
|
|
14
|
+
setVideoSource?: (source: HTMLVideoElement | null) => void;
|
|
15
|
+
setHighlightedMessageId?: (highlightedMessageId: string) => void;
|
|
16
|
+
updateUploadPendingMessageList?: (message?: Message) => void;
|
|
17
|
+
setActiveMessageID?: (messageID: string) => void;
|
|
18
|
+
callButtonClicked?: (callMediaType?: number, callType?: any) => void;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
export const TUIChatActionContext = React.createContext<
|
|
@@ -26,8 +27,8 @@ export function TUIChatActionProvider({
|
|
|
26
27
|
children,
|
|
27
28
|
value,
|
|
28
29
|
}: PropsWithChildren<{
|
|
29
|
-
value: TUIChatActionContextValue
|
|
30
|
-
}>):React.ReactElement {
|
|
30
|
+
value: TUIChatActionContextValue;
|
|
31
|
+
}>): React.ReactElement {
|
|
31
32
|
return (
|
|
32
33
|
<TUIChatActionContext.Provider
|
|
33
34
|
value={(value as unknown) as TUIChatActionContextValue}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import React, {
|
|
2
2
|
useState,
|
|
3
3
|
useContext,
|
|
4
4
|
createContext,
|
|
@@ -11,8 +11,8 @@ import '../styles/index.scss';
|
|
|
11
11
|
interface ThemeContextType {
|
|
12
12
|
theme: string;
|
|
13
13
|
colors: Record<string, string> | undefined;
|
|
14
|
-
setTheme:
|
|
15
|
-
setColors:
|
|
14
|
+
setTheme: React.Dispatch<React.SetStateAction<string>>;
|
|
15
|
+
setColors: React.Dispatch<React.SetStateAction<Record<string, string> | undefined>>;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
interface ThemeProviderProps {
|
|
@@ -22,6 +22,8 @@ interface ThemeProviderProps {
|
|
|
22
22
|
|
|
23
23
|
const ThemeContext = createContext<ThemeContextType | null>(null);
|
|
24
24
|
|
|
25
|
+
const supportedThemes = ['light', 'dark'];
|
|
26
|
+
|
|
25
27
|
function ThemeProvider(props: PropsWithChildren<Partial<ThemeProviderProps>>) {
|
|
26
28
|
const {
|
|
27
29
|
theme: _theme = 'light',
|
|
@@ -29,12 +31,17 @@ function ThemeProvider(props: PropsWithChildren<Partial<ThemeProviderProps>>) {
|
|
|
29
31
|
children,
|
|
30
32
|
} = props;
|
|
31
33
|
|
|
34
|
+
if (supportedThemes.indexOf(_theme) === -1) {
|
|
35
|
+
throw new Error(`Theme ${_theme} is not supported, please check the supported themes list: [${supportedThemes.join(', ')}]`);
|
|
36
|
+
}
|
|
37
|
+
|
|
32
38
|
const [theme, setTheme] = useState(_theme);
|
|
33
39
|
const [colors, setColors] = useState(_colors);
|
|
34
40
|
|
|
35
41
|
useLayoutEffect(() => {
|
|
36
|
-
document.documentElement.dataset.uikitTheme =
|
|
37
|
-
|
|
42
|
+
document.documentElement.dataset.uikitTheme = _theme;
|
|
43
|
+
setTheme(_theme);
|
|
44
|
+
}, [_theme]);
|
|
38
45
|
|
|
39
46
|
const value = {
|
|
40
47
|
theme,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropsWithChildren, useContext, createContext } from 'react';
|
|
1
|
+
import { PropsWithChildren, useState, useContext, createContext, useEffect } from 'react';
|
|
2
2
|
import type {
|
|
3
3
|
ChatSDK,
|
|
4
4
|
Conversation,
|
|
@@ -34,10 +34,19 @@ function UIKitProvider(props: PropsWithChildren<UIKitProviderProps>) {
|
|
|
34
34
|
children,
|
|
35
35
|
} = props;
|
|
36
36
|
|
|
37
|
+
const [chatSDK, setChatSDK] = useState<ChatSDK>(chat);
|
|
38
|
+
|
|
39
|
+
useEffect(() => {
|
|
40
|
+
if (!chatSDK) {
|
|
41
|
+
setChatSDK(chat);
|
|
42
|
+
}
|
|
43
|
+
}, [chat]);
|
|
44
|
+
|
|
45
|
+
const value = { chat: chatSDK };
|
|
37
46
|
return (
|
|
38
47
|
<LanguageProvider language={language}>
|
|
39
48
|
<ThemeProvider theme={theme} colors={colors}>
|
|
40
|
-
<UIKitContext.Provider value={
|
|
49
|
+
<UIKitContext.Provider value={value}>
|
|
41
50
|
<UIManagerProvider activeConversation={activeConversation} customClasses={customClasses}>
|
|
42
51
|
{children}
|
|
43
52
|
</UIManagerProvider>
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import TUIGlobal from './TUIGlobal';
|
|
2
1
|
import TUIChat from './TUIChat';
|
|
3
2
|
import TUIConversation from './TUIConversation';
|
|
4
3
|
import TUIContact from './TUIContact';
|
|
5
4
|
import TUIProfile from './TUIProfile';
|
|
6
5
|
|
|
7
|
-
|
|
8
6
|
export const message = {
|
|
9
|
-
TUIGlobal,
|
|
10
7
|
TUIChat,
|
|
11
8
|
TUIConversation,
|
|
12
9
|
TUIContact,
|
package/src/locales/index.ts
CHANGED
|
@@ -4,8 +4,9 @@ import { message as enMessage } from './en-US/index';
|
|
|
4
4
|
import { message as zhMessage } from './zh-CN/index';
|
|
5
5
|
import { message as jaMessage } from './ja-JP/index';
|
|
6
6
|
import { message as koMessage } from './ko-KR/index';
|
|
7
|
+
import { message as twMessage } from './zh-TW/index';
|
|
7
8
|
|
|
8
|
-
const resources = {
|
|
9
|
+
const resources: Record<string, any> = {
|
|
9
10
|
'en-US': {
|
|
10
11
|
translation: enMessage,
|
|
11
12
|
},
|
|
@@ -17,7 +18,10 @@ const resources = {
|
|
|
17
18
|
},
|
|
18
19
|
'ko-KR': {
|
|
19
20
|
translation: koMessage,
|
|
20
|
-
}
|
|
21
|
+
},
|
|
22
|
+
'zh-TW': {
|
|
23
|
+
translation: twMessage,
|
|
24
|
+
},
|
|
21
25
|
};
|
|
22
26
|
|
|
23
27
|
i18next.use(initReactI18next).init({
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import TUIGlobal from './TUIGlobal';
|
|
2
1
|
import TUIChat from './TUIChat';
|
|
3
2
|
import TUIConversation from './TUIConversation';
|
|
4
3
|
import TUIContact from './TUIContact';
|
|
5
4
|
import TUIProfile from './TUIProfile';
|
|
6
5
|
|
|
7
6
|
export const message = {
|
|
8
|
-
TUIGlobal,
|
|
9
7
|
TUIChat,
|
|
10
8
|
TUIConversation,
|
|
11
9
|
TUIContact,
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import TUIGlobal from './TUIGlobal';
|
|
2
1
|
import TUIChat from './TUIChat';
|
|
3
2
|
import TUIConversation from './TUIConversation';
|
|
4
3
|
import TUIContact from './TUIContact';
|
|
5
4
|
import TUIProfile from './TUIProfile';
|
|
6
5
|
|
|
7
6
|
export const message = {
|
|
8
|
-
TUIGlobal,
|
|
9
7
|
TUIChat,
|
|
10
8
|
TUIConversation,
|
|
11
9
|
TUIContact,
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import TUIGlobal from './TUIGlobal';
|
|
2
1
|
import TUIChat from './TUIChat';
|
|
3
2
|
import TUIConversation from './TUIConversation';
|
|
4
3
|
import TUIContact from './TUIContact';
|
|
5
4
|
import TUIProfile from './TUIProfile';
|
|
6
5
|
|
|
7
6
|
export const message = {
|
|
8
|
-
TUIGlobal,
|
|
9
7
|
TUIChat,
|
|
10
8
|
TUIConversation,
|
|
11
9
|
TUIContact,
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/* eslint-disable quote-props */
|
|
2
|
+
const TUIChat = {
|
|
3
|
+
'Recall': '撤回',
|
|
4
|
+
'Reference': '引用',
|
|
5
|
+
'Forward': '轉發',
|
|
6
|
+
'Copy': '複製',
|
|
7
|
+
'Delete': '刪除',
|
|
8
|
+
'Forward to': '轉發給',
|
|
9
|
+
'recalled a message': '撤回了一條消息',
|
|
10
|
+
'Re-edit': '重新編輯',
|
|
11
|
+
'Resend': '重新發送',
|
|
12
|
+
'You': '您',
|
|
13
|
+
'Recent Chats': '會話紀錄',
|
|
14
|
+
'Frequently Contacted': '頻繁聯繫',
|
|
15
|
+
'No Result': '無結果',
|
|
16
|
+
'Search Result': '搜尋結果',
|
|
17
|
+
'Image': '圖片',
|
|
18
|
+
'Video': '影片',
|
|
19
|
+
'File': '檔案',
|
|
20
|
+
'Enter a message': '請輸入訊息',
|
|
21
|
+
'No More': '沒有了',
|
|
22
|
+
'Error deleting message': '刪除訊息失敗',
|
|
23
|
+
'The message recall exceeded the time limit (default 2 minutes)': '訊息撤回超時(預設 2 分鐘)',
|
|
24
|
+
'Error revoke Message': '訊息撤回失敗',
|
|
25
|
+
'Custom message': '自訂訊息',
|
|
26
|
+
};
|
|
27
|
+
export default TUIChat;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* eslint-disable quote-props */
|
|
2
|
+
const TUIContact = {
|
|
3
|
+
'Enter a userID': '請輸入用戶 ID,回車搜索',
|
|
4
|
+
'Enter the verification info': '請填寫驗證信息',
|
|
5
|
+
'Request to join': '申請加入',
|
|
6
|
+
'Requested': '已申請',
|
|
7
|
+
'Accept': '接受',
|
|
8
|
+
'Refuse': '拒絕',
|
|
9
|
+
'Handled': '已處理',
|
|
10
|
+
'Friends': '我的好友',
|
|
11
|
+
'Send Message': '發送消息',
|
|
12
|
+
'Signature': '個性簽名',
|
|
13
|
+
'Successful application, waiting for the administrator to agree to join the group application': '等待管理員同意',
|
|
14
|
+
'New Contacts': '新的聯繫人',
|
|
15
|
+
'Blocked List': '黑名單',
|
|
16
|
+
'Group List': '我的群聊',
|
|
17
|
+
'No Result': '無搜索結果',
|
|
18
|
+
'ID': 'ID',
|
|
19
|
+
'User': '聯繫人',
|
|
20
|
+
'Add Friend': '添加好友',
|
|
21
|
+
'remark': '備註',
|
|
22
|
+
'block': '加入黑名單',
|
|
23
|
+
'Delete friend': '刪除好友',
|
|
24
|
+
'waiting for verification': '等待驗證',
|
|
25
|
+
'verification info': '驗證信息',
|
|
26
|
+
'Send application': '發送申請',
|
|
27
|
+
'Agree': '同意',
|
|
28
|
+
};
|
|
29
|
+
export default TUIContact;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* eslint-disable quote-props */
|
|
2
|
+
const TUIConversation = {
|
|
3
|
+
'Start chat': '發起會話',
|
|
4
|
+
'New one-to-one chat': '發起單聊',
|
|
5
|
+
'New group chat': '發起群聊',
|
|
6
|
+
'Delete': '刪除會話',
|
|
7
|
+
'Pin': '置頂會話',
|
|
8
|
+
'Unpin': '取消置頂',
|
|
9
|
+
'Conversation Information': '會話資訊',
|
|
10
|
+
'Search': '搜尋',
|
|
11
|
+
'Add Participants': '創建群聊',
|
|
12
|
+
'No conversation': '無會話',
|
|
13
|
+
'Next': '下一步',
|
|
14
|
+
'Group Name': '群組名稱',
|
|
15
|
+
'Group ID': '群組 ID',
|
|
16
|
+
'Group Type': '群組類型',
|
|
17
|
+
'Participants': '成員',
|
|
18
|
+
'Create': '創建',
|
|
19
|
+
'Details': '詳情',
|
|
20
|
+
'Work': '好友工作群(Work)',
|
|
21
|
+
'Public': '陌生人社交群(Public)',
|
|
22
|
+
'Meeting': '臨時會議群(Meeting)',
|
|
23
|
+
'AVChatRoom': '直播群(AVChatroom)',
|
|
24
|
+
'Community': '社群(Community)',
|
|
25
|
+
'Users can join the group only via invitation by existing members. The invitation does not need to be agreed by the invitee or approved by the group owner. See the documentation for details.': '類似普通微信群,創建後僅支持已在群內的好友邀請加群,且無需被邀請方同意或群主同意。',
|
|
26
|
+
'After a public group is created, the group owner can designate group admins. To join the group, a user needs to search the group ID and send a request, which needs to be approved by the group owner or an admin before the user can join the基礎設施。See the documentation for details.': '類似 QQ 群,創建後群主可以指定群管理員,用戶搜索群 ID 發起加群申請後,需要群主或管理員審批通過才能入群。',
|
|
27
|
+
'After the group is created, a user can join and quit the group freely and can view the messages sent before joining the group. It is suitable for scenarios that integrate Tencent Real-Time Communication (TRTC), such as audio and video conferences and online education. See the documentation for details.': '創建後可以隨意進出,且支持查看入群前消息;適合用於音視頻會議場景、在線教育場景等與即時音視頻產品結合的場景。',
|
|
28
|
+
'After a group is created, a user can join and quit the group freely. The group can have an unlimited number of members, but it does not store message history. It can be combined with Live Video Broadcasting (LVB) to support on-screen comment scenarios. See the documentation for details.': '創建後可以隨意進出,沒有群成員數量上限,但不支持歷史消息存儲;適合與直播產品結合,用於彈幕聊天場景。',
|
|
29
|
+
'After creation, you can enter and leave at will, support up to 100,000 people, support historical message storage, and after users search for group ID and initiate a group application, they can join the group without administrator approval. See product documentation for details.': '創建後可以隨意進出,最多支持100000人,支持歷史消息存儲,用戶搜索群 ID 發起加群申請後,無需管理員審批即可進群。',
|
|
30
|
+
'Participant cannot be empty': '不能為空',
|
|
31
|
+
};
|
|
32
|
+
export default TUIConversation;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* eslint-disable quote-props */
|
|
2
|
+
const TUIProfile = {
|
|
3
|
+
'Personal information': '個人信息',
|
|
4
|
+
'Signature': '個性簽名',
|
|
5
|
+
'Gender': '性別',
|
|
6
|
+
'Male': '男',
|
|
7
|
+
'Female': '女',
|
|
8
|
+
'AllowType': '加好友驗證方式',
|
|
9
|
+
'NeedConfirm': '需要驗證',
|
|
10
|
+
'AllowAny': '同意任何用戶加好友',
|
|
11
|
+
'DenyAny': '拒絕任何用戶加「好友」',
|
|
12
|
+
'Birthday': '生日',
|
|
13
|
+
'Unknown': '未設置',
|
|
14
|
+
};
|
|
15
|
+
export default TUIProfile;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import TUIChat from './TUIChat';
|
|
2
|
+
import TUIConversation from './TUIConversation';
|
|
3
|
+
import TUIContact from './TUIContact';
|
|
4
|
+
import TUIProfile from './TUIProfile';
|
|
5
|
+
|
|
6
|
+
export const message = {
|
|
7
|
+
TUIChat,
|
|
8
|
+
TUIConversation,
|
|
9
|
+
TUIContact,
|
|
10
|
+
TUIProfile,
|
|
11
|
+
};
|
|
@@ -1,29 +1,39 @@
|
|
|
1
1
|
$dark-colors: (
|
|
2
2
|
// bg
|
|
3
|
-
--
|
|
4
|
-
--
|
|
5
|
-
--
|
|
6
|
-
--
|
|
7
|
-
--
|
|
8
|
-
--
|
|
9
|
-
--
|
|
10
|
-
--
|
|
3
|
+
--uikit-theme-dark-bg-color-topbar: #16171a,
|
|
4
|
+
--uikit-theme-dark-bg-color-operate: #1f2024,
|
|
5
|
+
--uikit-theme-dark-bg-color-input: #2b2c30,
|
|
6
|
+
--uikit-theme-dark-bg-color-bubble-reciprocal: #2b2c30,
|
|
7
|
+
--uikit-theme-dark-bg-color-bubble-own: #5c9dff,
|
|
8
|
+
--uikit-theme-dark-bg-color-default: #16171a,
|
|
9
|
+
--uikit-theme-dark-bg-color-tag-mask: rgba(0, 0, 0, 55%),
|
|
10
|
+
--uikit-theme-dark-bg-color-mask: rgba(0, 0, 0, 55%),
|
|
11
11
|
// text
|
|
12
|
-
--
|
|
13
|
-
--
|
|
14
|
-
--
|
|
15
|
-
--
|
|
16
|
-
--
|
|
17
|
-
--
|
|
18
|
-
--
|
|
19
|
-
|
|
20
|
-
--
|
|
21
|
-
--
|
|
22
|
-
--
|
|
12
|
+
--uikit-theme-dark-text-color-primary: rgba(255, 255, 255, 93%),
|
|
13
|
+
--uikit-theme-dark-text-color-secondary: rgba(255, 255, 255, 66%),
|
|
14
|
+
--uikit-theme-dark-text-color-tertiary: rgba(255, 255, 255, 40%),
|
|
15
|
+
--uikit-theme-dark-text-color-disable: rgba(255, 255, 255, 28%),
|
|
16
|
+
--uikit-theme-dark-text-color-link: #4086ff,
|
|
17
|
+
--uikit-theme-dark-text-color-link-hover: #2b6ad6,
|
|
18
|
+
--uikit-theme-dark-text-color-link-disabled: #243047,
|
|
19
|
+
--uikit-theme-dark-text-color-anti-primary: rgba(0, 0, 0, 90%),
|
|
20
|
+
--uikit-theme-dark-text-color-anti-secondary: rgba(0, 0, 0, 55%),
|
|
21
|
+
--uikit-theme-dark-text-color-warning: #e37f32,
|
|
22
|
+
--uikit-theme-dark-text-color-success: #38a673,
|
|
23
|
+
--uikit-theme-dark-text-color-error: #e6594c,
|
|
24
|
+
// dropdown
|
|
25
|
+
--uikit-theme-dark-dropdown-color-default: #2b2c30,
|
|
26
|
+
--uikit-theme-dark-dropdown-color-hover: #3a3c42,
|
|
27
|
+
--uikit-theme-dark-dropdown-color-active: #1f2024,
|
|
28
|
+
// list
|
|
29
|
+
--uikit-theme-dark-list-color-default: #1f2024,
|
|
30
|
+
--uikit-theme-dark-list-color-hover: #2b2c30,
|
|
31
|
+
--uikit-theme-dark-list-color-active: #243047,
|
|
23
32
|
// border
|
|
24
|
-
--
|
|
33
|
+
--uikit-theme-dark-stroke-color-primary: #3a3c42,
|
|
34
|
+
--uikit-theme-dark-stroke-color-secondary: #2b2c30,
|
|
25
35
|
// box-shadow
|
|
26
|
-
--
|
|
36
|
+
--uikit-theme-dark-shadow-color: rgba(0, 0, 0, 6%),
|
|
27
37
|
);
|
|
28
38
|
|
|
29
39
|
:root {
|
|
@@ -1,29 +1,39 @@
|
|
|
1
1
|
$light-colors: (
|
|
2
2
|
// bg
|
|
3
|
-
--
|
|
4
|
-
--
|
|
5
|
-
--
|
|
6
|
-
--
|
|
7
|
-
--
|
|
8
|
-
--
|
|
9
|
-
--
|
|
10
|
-
--
|
|
3
|
+
--uikit-theme-light-bg-color-topbar: #f9fafc,
|
|
4
|
+
--uikit-theme-light-bg-color-operate: #fff,
|
|
5
|
+
--uikit-theme-light-bg-color-input: #f0f2f7,
|
|
6
|
+
--uikit-theme-light-bg-color-bubble-reciprocal: #f0f2f7,
|
|
7
|
+
--uikit-theme-light-bg-color-bubble-own: #cce2ff,
|
|
8
|
+
--uikit-theme-light-bg-color-default: #f0f2f7,
|
|
9
|
+
--uikit-theme-light-bg-color-tag-mask: rgba(255, 255, 255, 55%),
|
|
10
|
+
--uikit-theme-light-bg-color-mask: rgba(0, 0, 0, 55%),
|
|
11
11
|
// text
|
|
12
|
-
--
|
|
13
|
-
--
|
|
14
|
-
--
|
|
15
|
-
--
|
|
16
|
-
--
|
|
17
|
-
--
|
|
18
|
-
--
|
|
19
|
-
|
|
20
|
-
--
|
|
21
|
-
--
|
|
22
|
-
--
|
|
12
|
+
--uikit-theme-light-text-color-primary: rgba(0, 0, 0, 93%),
|
|
13
|
+
--uikit-theme-light-text-color-secondary: rgba(0, 0, 0, 66%),
|
|
14
|
+
--uikit-theme-light-text-color-tertiary: rgba(0, 0, 0, 40%),
|
|
15
|
+
--uikit-theme-light-text-color-disable: rgba(0, 0, 0, 28%),
|
|
16
|
+
--uikit-theme-light-text-color-link: #1c66e5,
|
|
17
|
+
--uikit-theme-light-text-color-link-hover: #4588f5,
|
|
18
|
+
--uikit-theme-light-text-color-link-disabled: #cce2ff,
|
|
19
|
+
--uikit-theme-light-text-color-anti-primary: rgba(0, 0, 0, 90%),
|
|
20
|
+
--uikit-theme-light-text-color-anti-secondary: rgba(0, 0, 0, 55%),
|
|
21
|
+
--uikit-theme-light-text-color-warning: #ff7200,
|
|
22
|
+
--uikit-theme-light-text-color-success: #0abf77,
|
|
23
|
+
--uikit-theme-light-text-color-error: #e54545,
|
|
24
|
+
// dropdown
|
|
25
|
+
--uikit-theme-light-dropdown-color-default: #fff,
|
|
26
|
+
--uikit-theme-light-dropdown-color-hover: #f9fafc,
|
|
27
|
+
--uikit-theme-light-dropdown-color-active: #ebf3ff,
|
|
28
|
+
// list
|
|
29
|
+
--uikit-theme-light-list-color-default: #fff,
|
|
30
|
+
--uikit-theme-light-list-color-hover: #f9fafc,
|
|
31
|
+
--uikit-theme-light-list-color-active: #ebf3ff,
|
|
23
32
|
// border
|
|
24
|
-
--
|
|
33
|
+
--uikit-theme-light-stroke-color-primary: #f9fafc,
|
|
34
|
+
--uikit-theme-light-stroke-color-secondary: rgba(0, 0, 0, 55%),
|
|
25
35
|
// box-shadow
|
|
26
|
-
--
|
|
36
|
+
--uikit-theme-light-shadow-color: rgba(0, 0, 0, 6%),
|
|
27
37
|
);
|
|
28
38
|
|
|
29
39
|
:root {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@use "sass:map";
|
|
2
2
|
@use "sass:list";
|
|
3
3
|
|
|
4
|
-
$prefix: "--
|
|
4
|
+
$prefix: "--uikit-theme";
|
|
5
5
|
|
|
6
6
|
$themes: (
|
|
7
7
|
"light",
|
|
@@ -9,26 +9,35 @@ $themes: (
|
|
|
9
9
|
);
|
|
10
10
|
|
|
11
11
|
$colors: (
|
|
12
|
-
"bg-
|
|
13
|
-
"bg-
|
|
14
|
-
"bg-
|
|
15
|
-
"bg-
|
|
16
|
-
"bg-
|
|
17
|
-
"bg-
|
|
18
|
-
"bg-
|
|
19
|
-
"bg-
|
|
20
|
-
"text-
|
|
21
|
-
"text-
|
|
22
|
-
"text-
|
|
23
|
-
"text-
|
|
24
|
-
"text-
|
|
25
|
-
"text-
|
|
26
|
-
"text-
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
12
|
+
"bg-color-topbar",
|
|
13
|
+
"bg-color-operate",
|
|
14
|
+
"bg-color-input",
|
|
15
|
+
"bg-color-bubble-reciprocal",
|
|
16
|
+
"bg-color-bubble-own",
|
|
17
|
+
"bg-color-default",
|
|
18
|
+
"bg-color-tag-mask",
|
|
19
|
+
"bg-color-mask",
|
|
20
|
+
"text-color-primary",
|
|
21
|
+
"text-color-secondary",
|
|
22
|
+
"text-color-tertiary",
|
|
23
|
+
"text-color-disable",
|
|
24
|
+
"text-color-link",
|
|
25
|
+
"text-color-link-hover",
|
|
26
|
+
"text-color-link-disabled",
|
|
27
|
+
"text-color-anti-primary",
|
|
28
|
+
"text-color-anti-secondary",
|
|
29
|
+
"text-color-warning",
|
|
30
|
+
"text-color-success",
|
|
31
|
+
"text-color-error",
|
|
32
|
+
"dropdown-color-default",
|
|
33
|
+
"dropdown-color-hover",
|
|
34
|
+
"dropdown-color-active",
|
|
35
|
+
"list-color-default",
|
|
36
|
+
"list-color-hover",
|
|
37
|
+
"list-color-active",
|
|
38
|
+
"stroke-color-primary",
|
|
39
|
+
"stroke-color-secondary",
|
|
40
|
+
"shadow-color",
|
|
32
41
|
);
|
|
33
42
|
|
|
34
43
|
$color-map: ();
|
|
@@ -45,6 +54,8 @@ $color-map: ();
|
|
|
45
54
|
}
|
|
46
55
|
|
|
47
56
|
@content;
|
|
57
|
+
|
|
58
|
+
transition: background-color 0.3s ease-in-out;
|
|
48
59
|
}
|
|
49
60
|
}
|
|
50
61
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";module.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAGCAYAAAD68A/GAAAACXBIWXMAAAsTAAALEwEAmpwYAAABZWlDQ1BEaXNwbGF5IFAzAAB4nHWQvUvDUBTFT6tS0DqIDh0cMolD1NIKdnFoKxRFMFQFq1OafgltfCQpUnETVyn4H1jBWXCwiFRwcXAQRAcR3Zw6KbhoeN6XVNoi3sfl/Ticc7lcwBtQGSv2AijplpFMxKS11Lrke4OHnlOqZrKooiwK/v276/PR9d5PiFlNu3YQ2U9cl84ul3aeAlN//V3Vn8maGv3f1EGNGRbgkYmVbYsJ3iUeMWgp4qrgvMvHgtMunzuelWSc+JZY0gpqhrhJLKc79HwHl4plrbWD2N6f1VeXxRzqUcxhEyYYilBRgQQF4X/8044/ji1yV2BQLo8CLMpESRETssTz0KFhEjJxCEHqkLhz634PrfvJbW3vFZhtcM4v2tpCAzidoZPV29p4BBgaAG7qTDVUR+qh9uZywPsJMJgChu8os2HmwiF3e38M6Hvh/GMM8B0CdpXzryPO7RqFn4Er/QfBIQM2AAAAUUlEQVR4AYWOAQkAIQxFP5fgIlyEi2oEGxjBCNpAbGAD/YrCkImDt8Hfgw0APuLm1GrsH7Yi5FeRPMkySCQIeWVWO7Hk/yTtciURl+qywfZvAwveD9g2Kx/SAAAAAElFTkSuQmCC";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";module.exports="data:image/svg+xml,%3Csvg%20width%3D%226%22%20height%3D%2210%22%20viewBox%3D%220%200%206%2010%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M1.69071%200.283877C1.5751%200.169695%201.42795%200.107415%201.25453%200.107415C0.907683%200.107415%200.629156%200.377298%200.629156%200.719841C0.629156%200.891113%200.702729%201.04681%200.823599%201.16619L4.50226%204.71618L0.8236%208.2558C0.70273%208.37518%200.629157%208.53607%200.629157%208.70215C0.629157%209.04469%200.907684%209.31458%201.25453%209.31458C1.42795%209.31458%201.5751%209.25229%201.69071%209.13811L5.77928%205.19367C5.92643%205.05873%205.99474%204.89265%206%204.71099C6%204.52934%205.92643%204.37364%205.77928%204.23351L1.69071%200.283877Z%22%20fill%3D%22black%22%20style%3D%22fill%3Ablack%3Bfill%3Ablack%3Bfill-opacity%3A1%3B%22%2F%3E%3C%2Fsvg%3E";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib");require("@tencentcloud/chat"),require("../../constants.js"),require("date-fns"),require("date-fns/locale"),require("@tencentcloud/chat-uikit-engine"),require("react/jsx-runtime"),require("react"),require("../Icon/config.js"),require("../Icon/type.js");exports.handleEditMessage=function(r,n){var t=e.__spreadArray([],r,!0),u=t.findIndex((function(e){return(null==e?void 0:e.ID)===(null==n?void 0:n.ID)}));return t[u]=n,t},exports.handleUploadPendingMessage=function(r,n){var t=e.__spreadArray([],r,!0);t.some((function(e){return e.ID===(null==n?void 0:n.ID)}))||t.push(n);var u=t.findIndex((function(e){return(null==e?void 0:e.ID)===(null==n?void 0:n.ID)}));return t[u]=n,t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";module.exports={chats:"Messages",contacts:"Contacts"};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={chats:"メッセージ",contacts:"連絡先"};exports.TUIGlobal=e,exports.default=e;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={chats:"채팅",contacts:"연락처"};exports.TUIGlobal=e,exports.default=e;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={chats:"消息",contacts:"通讯录"};exports.TUIGlobal=e,exports.default=e;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var A="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAGCAYAAAD68A/GAAAACXBIWXMAAAsTAAALEwEAmpwYAAABZWlDQ1BEaXNwbGF5IFAzAAB4nHWQvUvDUBTFT6tS0DqIDh0cMolD1NIKdnFoKxRFMFQFq1OafgltfCQpUnETVyn4H1jBWXCwiFRwcXAQRAcR3Zw6KbhoeN6XVNoi3sfl/Ticc7lcwBtQGSv2AijplpFMxKS11Lrke4OHnlOqZrKooiwK/v276/PR9d5PiFlNu3YQ2U9cl84ul3aeAlN//V3Vn8maGv3f1EGNGRbgkYmVbYsJ3iUeMWgp4qrgvMvHgtMunzuelWSc+JZY0gpqhrhJLKc79HwHl4plrbWD2N6f1VeXxRzqUcxhEyYYilBRgQQF4X/8044/ji1yV2BQLo8CLMpESRETssTz0KFhEjJxCEHqkLhz634PrfvJbW3vFZhtcM4v2tpCAzidoZPV29p4BBgaAG7qTDVUR+qh9uZywPsJMJgChu8os2HmwiF3e38M6Hvh/GMM8B0CdpXzryPO7RqFn4Er/QfBIQM2AAAAUUlEQVR4AYWOAQkAIQxFP5fgIlyEi2oEGxjBCNpAbGAD/YrCkImDt8Hfgw0APuLm1GrsH7Yi5FeRPMkySCQIeWVWO7Hk/yTtciURl+qywfZvAwveD9g2Kx/SAAAAAElFTkSuQmCC";export{A as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var l="data:image/svg+xml,%3Csvg%20width%3D%226%22%20height%3D%2210%22%20viewBox%3D%220%200%206%2010%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M1.69071%200.283877C1.5751%200.169695%201.42795%200.107415%201.25453%200.107415C0.907683%200.107415%200.629156%200.377298%200.629156%200.719841C0.629156%200.891113%200.702729%201.04681%200.823599%201.16619L4.50226%204.71618L0.8236%208.2558C0.70273%208.37518%200.629157%208.53607%200.629157%208.70215C0.629157%209.04469%200.907684%209.31458%201.25453%209.31458C1.42795%209.31458%201.5751%209.25229%201.69071%209.13811L5.77928%205.19367C5.92643%205.05873%205.99474%204.89265%206%204.71099C6%204.52934%205.92643%204.37364%205.77928%204.23351L1.69071%200.283877Z%22%20fill%3D%22black%22%20style%3D%22fill%3Ablack%3Bfill%3Ablack%3Bfill-opacity%3A1%3B%22%2F%3E%3C%2Fsvg%3E";export{l as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__spreadArray as n}from"tslib";import"@tencentcloud/chat";import"../../constants.js";import"date-fns";import"date-fns/locale";import"@tencentcloud/chat-uikit-engine";import"react/jsx-runtime";import"react";import"../Icon/config.js";import"../Icon/type.js";var t=function(t,o){var r=n([],t,!0),i=r.findIndex((function(n){return(null==n?void 0:n.ID)===(null==o?void 0:o.ID)}));return r[i]=o,r},o=function(t,o){var r=n([],t,!0);r.some((function(n){return n.ID===(null==o?void 0:o.ID)}))||r.push(o);var i=r.findIndex((function(n){return(null==n?void 0:n.ID)===(null==o?void 0:o.ID)}));return r[i]=o,r};export{t as handleEditMessage,o as handleUploadPendingMessage};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{isThisYear as t,format as e,isToday as r,isYesterday as o,formatDistance as a,isThisWeek as n}from"date-fns";import{zhCN as i,enGB as c,ja as f,ko as u}from"date-fns/locale";import l from"@tencentcloud/chat";import{TUIStore as p,StoreName as s}from"@tencentcloud/chat-uikit-engine";import"tslib";import"react/jsx-runtime";import"react";import"./Icon/config.js";import"./Icon/type.js";import{defaultGroupAvatarWork as m,defaultUserAvatar as d}from"./Avatar/default.js";function P(t){if("string"==typeof t)try{return!!JSON.parse(t)}catch(t){return!1}return!1}function C(t){return P(t)?JSON.parse(t):t}var v=function(t,e){void 0===e&&(e=l.TYPES.CONV_C2C);var r=t;if(!t)switch(e){case l.TYPES.CONV_C2C:r=d;break;case l.TYPES.CONV_GROUP:default:r=m}return r},y=function(l,p){void 0===p&&(p="en-US");var s={"zh-CN":i,"en-US":c,"ja-JP":f,"ko-KR":u};return l?t(l)?r(l)?e(l,"p",{locale:s[p]}):o(l)?a(l,new Date,{locale:s[p]}):n(l)?e(l,"eeee",{locale:s[p]}):e(l,"MMM dd",{locale:s[p]}):e(l,"yyyy MMM dd",{locale:s[p]}):""};function S(t){var e=p.getData(s.APP,"tasks");t in e&&!e[t]&&(e[t]=!0,p.update(s.APP,"tasks",e))}export{C as JSONStringToParse,S as enableSampleTaskStatus,y as getTimeStamp,v as handleDisplayAvatar,P as isJSON};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var a={chats:"Messages",contacts:"Contacts"};export{a as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var a={chats:"メッセージ",contacts:"連絡先"};export{a as TUIGlobal,a as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var a={chats:"채팅",contacts:"연락처"};export{a as TUIGlobal,a as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var a={chats:"消息",contacts:"通讯录"};export{a as TUIGlobal,a as default};
|