@tencentcloud/chat-uikit-react 2.3.0 → 2.3.1
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 +5 -0
- package/dist/cjs/components/Chat/Chat.js +1 -1
- package/dist/cjs/components/Chat/index.js +1 -1
- package/dist/cjs/components/ChatHeader/ChatHeader.js +1 -1
- package/dist/cjs/components/ChatHeader/ChatHeaderDefault.js +1 -1
- package/dist/cjs/components/ChatSetting/ChatSetting.js +1 -1
- package/dist/cjs/components/Contact/Contact.js +1 -1
- package/dist/cjs/components/Contact/ContactInfo/ContactInfo.js +1 -1
- package/dist/cjs/components/Contact/ContactInfo/addFriendInfo.js +1 -1
- package/dist/cjs/components/Contact/ContactInfo/basicInfo.js +1 -1
- package/dist/cjs/components/Contact/ContactInfo/blockInfo.js +1 -1
- package/dist/cjs/components/Contact/ContactInfo/friendApplication.js +1 -1
- package/dist/cjs/components/Contact/ContactInfo/friendInfo.js +1 -1
- package/dist/cjs/components/Contact/ContactInfo/groupInfo.js +1 -1
- package/dist/cjs/components/Contact/ContactInfo/hooks/useContactInfo.js +1 -1
- package/dist/cjs/components/Contact/ContactList/ContactList.js +1 -1
- package/dist/cjs/components/Contact/hooks/useTUIContact.js +1 -1
- package/dist/cjs/components/ContactSearch/ContactSearch.js +1 -1
- package/dist/cjs/components/ContactSearch/hooks/useContactSearch.js +1 -1
- package/dist/cjs/components/ConversationActions/ConversationActions.js +1 -1
- package/dist/cjs/components/ConversationCreate/ConversationCreate.js +1 -1
- package/dist/cjs/components/ConversationCreate/ConversationCreateGroupDetail.js +1 -1
- package/dist/cjs/components/ConversationCreate/ConversationCreateUserSelectList.js +1 -1
- package/dist/cjs/components/ConversationCreate/ConversationGroupTypeInfo.js +1 -1
- package/dist/cjs/components/ConversationList/ConversationList.js +1 -1
- package/dist/cjs/components/ConversationPreview/ConversationPreview.js +1 -1
- package/dist/cjs/components/ConversationPreview/utils.js +1 -1
- package/dist/cjs/components/ConversationSearch/ConversationSearchInput/ConversationSearchInput.js +1 -1
- package/dist/cjs/components/MessageElement/Message.js +1 -1
- package/dist/cjs/components/MessageElement/MessageAudio.js +1 -1
- package/dist/cjs/components/MessageElement/MessageAvatar.js +1 -1
- package/dist/cjs/components/MessageElement/MessageBubble.js +1 -1
- package/dist/cjs/components/MessageElement/MessageContext.js +1 -1
- package/dist/cjs/components/MessageElement/MessageCustom.js +1 -1
- package/dist/cjs/components/MessageElement/MessageDefault.js +1 -1
- package/dist/cjs/components/MessageElement/MessageName.js +1 -1
- package/dist/cjs/components/MessageElement/MessagePlugins.js +1 -1
- package/dist/cjs/components/MessageElement/MessageProgress.js +1 -1
- package/dist/cjs/components/MessageElement/MessageRevoke.js +1 -1
- package/dist/cjs/components/MessageElement/MessageStatus.js +1 -1
- package/dist/cjs/components/MessageElement/MessageSystem.js +1 -1
- package/dist/cjs/components/MessageElement/MessageText.js +1 -1
- package/dist/cjs/components/MessageElement/MessageTip.js +1 -1
- package/dist/cjs/components/MessageElement/hooks/useMessageHandler.js +1 -1
- package/dist/cjs/components/MessageElement/hooks/useMessageReply.js +1 -1
- package/dist/cjs/components/MessageElement/utils/decodeText.js +1 -1
- package/dist/cjs/components/MessageElement/utils/emojiMap.js +1 -1
- package/dist/cjs/components/MessageElement/utils/index.js +1 -1
- package/dist/cjs/components/MessageInput/EmojiPicker.js +1 -1
- package/dist/cjs/components/MessageInput/Forward.js +1 -1
- package/dist/cjs/components/MessageInput/InputPluginsDefalut.js +1 -1
- package/dist/cjs/components/MessageInput/InputQuoteDefalut.js +1 -1
- package/dist/cjs/components/MessageInput/MessageInput.js +1 -1
- package/dist/cjs/components/MessageInput/MessageInputDefault.js +1 -1
- package/dist/cjs/components/MessageInput/hooks/useEmojiPicker.js +1 -1
- package/dist/cjs/components/MessageInput/hooks/useHandleForwardMessage.js +1 -1
- package/dist/cjs/components/MessageInput/hooks/useHandleQuoteMessage.js +1 -1
- package/dist/cjs/components/MessageInput/hooks/useMessageInputText.js +1 -1
- package/dist/cjs/components/MessageList/MessageList.js +1 -1
- package/dist/cjs/components/MessageList/hooks/useMessageListElement.js +1 -1
- package/dist/cjs/components/Profile/Profile.js +1 -1
- package/dist/cjs/components/Profile/ProfileDefault.js +1 -1
- package/dist/cjs/context/UIKitContext.js +1 -1
- package/dist/cjs/index.css +2 -2
- package/dist/cjs/index.d.css +213 -207
- package/dist/cjs/index.d.ts +0 -3
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/locales/en-US/emoji.js +1 -0
- package/dist/cjs/locales/en-US/index.js +1 -1
- package/dist/cjs/locales/index.js +1 -1
- package/dist/cjs/locales/ja-JP/emoji.js +1 -0
- package/dist/cjs/locales/ja-JP/index.js +1 -1
- package/dist/cjs/locales/ko-KR/emoji.js +1 -0
- package/dist/cjs/locales/ko-KR/index.js +1 -1
- package/dist/cjs/locales/zh-CN/emoji.js +1 -0
- package/dist/cjs/locales/zh-CN/index.js +1 -1
- package/dist/cjs/locales/zh-TW/emoji.js +1 -0
- package/dist/cjs/locales/zh-TW/index.js +1 -1
- package/dist/cjs/node_modules/zustand/esm/react.mjs.js +1 -0
- package/dist/cjs/node_modules/zustand/esm/vanilla.mjs.js +1 -0
- package/dist/cjs/store/UIManagerStore.js +1 -0
- package/dist/esm/components/Chat/Chat.js +1 -1
- package/dist/esm/components/Chat/index.js +1 -1
- package/dist/esm/components/ChatHeader/ChatHeader.js +1 -1
- package/dist/esm/components/ChatHeader/ChatHeaderDefault.js +1 -1
- package/dist/esm/components/ChatSetting/ChatSetting.js +1 -1
- package/dist/esm/components/Contact/Contact.js +1 -1
- package/dist/esm/components/Contact/ContactInfo/ContactInfo.js +1 -1
- package/dist/esm/components/Contact/ContactInfo/addFriendInfo.js +1 -1
- package/dist/esm/components/Contact/ContactInfo/basicInfo.js +1 -1
- package/dist/esm/components/Contact/ContactInfo/blockInfo.js +1 -1
- package/dist/esm/components/Contact/ContactInfo/friendApplication.js +1 -1
- package/dist/esm/components/Contact/ContactInfo/friendInfo.js +1 -1
- package/dist/esm/components/Contact/ContactInfo/groupInfo.js +1 -1
- package/dist/esm/components/Contact/ContactInfo/hooks/useContactInfo.js +1 -1
- package/dist/esm/components/Contact/ContactList/ContactList.js +1 -1
- package/dist/esm/components/Contact/hooks/useTUIContact.js +1 -1
- package/dist/esm/components/ContactSearch/ContactSearch.js +1 -1
- package/dist/esm/components/ContactSearch/hooks/useContactSearch.js +1 -1
- package/dist/esm/components/ConversationActions/ConversationActions.js +1 -1
- package/dist/esm/components/ConversationCreate/ConversationCreate.js +1 -1
- package/dist/esm/components/ConversationCreate/ConversationCreateGroupDetail.js +1 -1
- package/dist/esm/components/ConversationCreate/ConversationCreateUserSelectList.js +1 -1
- package/dist/esm/components/ConversationCreate/ConversationGroupTypeInfo.js +1 -1
- package/dist/esm/components/ConversationList/ConversationList.js +1 -1
- package/dist/esm/components/ConversationPreview/ConversationPreview.js +1 -1
- package/dist/esm/components/ConversationPreview/utils.js +1 -1
- package/dist/esm/components/ConversationSearch/ConversationSearchInput/ConversationSearchInput.js +1 -1
- package/dist/esm/components/MessageElement/Message.js +1 -1
- package/dist/esm/components/MessageElement/MessageAudio.js +1 -1
- package/dist/esm/components/MessageElement/MessageAvatar.js +1 -1
- package/dist/esm/components/MessageElement/MessageBubble.js +1 -1
- package/dist/esm/components/MessageElement/MessageContext.js +1 -1
- package/dist/esm/components/MessageElement/MessageCustom.js +1 -1
- package/dist/esm/components/MessageElement/MessageDefault.js +1 -1
- package/dist/esm/components/MessageElement/MessageName.js +1 -1
- package/dist/esm/components/MessageElement/MessagePlugins.js +1 -1
- package/dist/esm/components/MessageElement/MessageProgress.js +1 -1
- package/dist/esm/components/MessageElement/MessageRevoke.js +1 -1
- package/dist/esm/components/MessageElement/MessageStatus.js +1 -1
- package/dist/esm/components/MessageElement/MessageSystem.js +1 -1
- package/dist/esm/components/MessageElement/MessageText.js +1 -1
- package/dist/esm/components/MessageElement/MessageTip.js +1 -1
- package/dist/esm/components/MessageElement/hooks/useMessageHandler.js +1 -1
- package/dist/esm/components/MessageElement/hooks/useMessageReply.js +1 -1
- package/dist/esm/components/MessageElement/utils/decodeText.js +1 -1
- package/dist/esm/components/MessageElement/utils/emojiMap.js +1 -1
- package/dist/esm/components/MessageElement/utils/index.js +1 -1
- package/dist/esm/components/MessageInput/EmojiPicker.js +1 -1
- package/dist/esm/components/MessageInput/Forward.js +1 -1
- package/dist/esm/components/MessageInput/InputPluginsDefalut.js +1 -1
- package/dist/esm/components/MessageInput/InputQuoteDefalut.js +1 -1
- package/dist/esm/components/MessageInput/MessageInput.js +1 -1
- package/dist/esm/components/MessageInput/MessageInputDefault.js +1 -1
- package/dist/esm/components/MessageInput/hooks/useEmojiPicker.js +1 -1
- package/dist/esm/components/MessageInput/hooks/useHandleForwardMessage.js +1 -1
- package/dist/esm/components/MessageInput/hooks/useHandleQuoteMessage.js +1 -1
- package/dist/esm/components/MessageInput/hooks/useMessageInputText.js +1 -1
- package/dist/esm/components/MessageList/MessageList.js +1 -1
- package/dist/esm/components/MessageList/hooks/useMessageListElement.js +1 -1
- package/dist/esm/components/Profile/Profile.js +1 -1
- package/dist/esm/components/Profile/ProfileDefault.js +1 -1
- package/dist/esm/context/UIKitContext.js +1 -1
- package/dist/esm/index.css +2 -2
- package/dist/esm/index.d.css +213 -207
- package/dist/esm/index.d.ts +0 -3
- package/dist/esm/index.js +1 -1
- package/dist/esm/locales/en-US/emoji.js +1 -0
- package/dist/esm/locales/en-US/index.js +1 -1
- package/dist/esm/locales/index.js +1 -1
- package/dist/esm/locales/ja-JP/emoji.js +1 -0
- package/dist/esm/locales/ja-JP/index.js +1 -1
- package/dist/esm/locales/ko-KR/emoji.js +1 -0
- package/dist/esm/locales/ko-KR/index.js +1 -1
- package/dist/esm/locales/zh-CN/emoji.js +1 -0
- package/dist/esm/locales/zh-CN/index.js +1 -1
- package/dist/esm/locales/zh-TW/emoji.js +1 -0
- package/dist/esm/locales/zh-TW/index.js +1 -1
- package/dist/esm/node_modules/zustand/esm/react.mjs.js +1 -0
- package/dist/esm/node_modules/zustand/esm/vanilla.mjs.js +1 -0
- package/dist/esm/store/UIManagerStore.js +1 -0
- package/package.json +5 -3
- package/src/components/Chat/Chat.tsx +3 -3
- package/src/components/Chat/styles/layout.scss +1 -1
- package/src/components/ChatHeader/ChatHeaderDefault.tsx +4 -3
- package/src/components/ChatHeader/styles/layout.scss +1 -1
- package/src/components/ChatSetting/ChatSetting.tsx +8 -7
- package/src/components/ChatSetting/styles/index.scss +2 -1
- package/src/components/Checkbox/styles/color.scss +1 -1
- package/src/components/Contact/Contact.tsx +4 -4
- package/src/components/Contact/ContactInfo/ContactInfo.tsx +2 -2
- package/src/components/Contact/ContactInfo/addFriendInfo.tsx +38 -36
- package/src/components/Contact/ContactInfo/basicInfo.tsx +10 -10
- package/src/components/Contact/ContactInfo/blockInfo.tsx +4 -4
- package/src/components/Contact/ContactInfo/friendApplication.tsx +4 -4
- package/src/components/Contact/ContactInfo/friendInfo.tsx +7 -7
- package/src/components/Contact/ContactInfo/groupInfo.tsx +23 -23
- package/src/components/Contact/ContactInfo/hooks/useContactInfo.tsx +2 -2
- package/src/components/Contact/ContactInfo/index.scss +1 -1
- package/src/components/Contact/ContactList/ContactList.tsx +5 -4
- package/src/components/Contact/ContactList/index.scss +1 -1
- package/src/components/Contact/hooks/useTUIContact.tsx +2 -2
- package/src/components/Contact/index.scss +1 -1
- package/src/components/ContactSearch/ContactSearch.tsx +5 -4
- package/src/components/ContactSearch/hooks/useContactSearch.tsx +4 -3
- package/src/components/ContactSearch/index.scss +1 -1
- package/src/components/ConversationActions/ConversationActions.scss +1 -1
- package/src/components/ConversationActions/ConversationActions.tsx +2 -2
- package/src/components/ConversationCreate/ConversationCreate.tsx +2 -2
- package/src/components/ConversationCreate/ConversationCreateGroupDetail.tsx +4 -4
- package/src/components/ConversationCreate/ConversationCreateUserSelectList.tsx +4 -4
- package/src/components/ConversationCreate/ConversationGroupTypeInfo.tsx +2 -2
- package/src/components/ConversationCreate/styles/ConversationCreateGroupDetail.scss +1 -1
- package/src/components/ConversationCreate/styles/conversationCreateSelectView.scss +1 -1
- package/src/components/ConversationCreate/styles/conversationGroupTypeInfo.scss +1 -1
- package/src/components/ConversationCreate/styles/index.scss +1 -1
- package/src/components/ConversationList/ConversationList.scss +1 -1
- package/src/components/ConversationList/ConversationListContent/ConversationListContent.scss +1 -1
- package/src/components/ConversationList/ConversationListHeader/ConversationListHeader.scss +1 -1
- package/src/components/ConversationPreview/ConversationPreview.scss +1 -1
- package/src/components/ConversationPreview/ConversationPreview.tsx +3 -3
- package/src/components/ConversationPreview/utils.tsx +2 -2
- package/src/components/ConversationSearch/ConversationSearch.scss +1 -1
- package/src/components/ConversationSearch/ConversationSearchInput/ConversationSearchInput.scss +1 -1
- package/src/components/ConversationSearch/ConversationSearchInput/ConversationSearchInput.tsx +2 -2
- package/src/components/ConversationSearch/ConversationSearchResult/ConversationSearchResult.scss +1 -1
- package/src/components/DivWithEdit/styles/index.scss +1 -1
- package/src/components/Icon/styles/index.scss +1 -1
- package/src/components/Input/styles/index.scss +2 -2
- package/src/components/MessageElement/MessageCustom.tsx +4 -4
- package/src/components/MessageElement/MessagePlugins.tsx +3 -3
- package/src/components/MessageElement/MessageRevoke.tsx +5 -5
- package/src/components/MessageElement/MessageStatus.tsx +2 -1
- package/src/components/MessageElement/hooks/useMessageHandler.ts +9 -6
- package/src/components/MessageElement/hooks/useMessageReply.ts +3 -2
- package/src/components/MessageElement/styles/color.scss +1 -1
- package/src/components/MessageElement/styles/layout.scss +2 -2
- package/src/components/MessageElement/utils/decodeText.ts +59 -9
- package/src/components/MessageElement/utils/emojiMap.ts +73 -474
- package/src/components/MessageElement/utils/index.ts +1 -5
- package/src/components/MessageInput/EmojiPicker.tsx +10 -8
- package/src/components/MessageInput/Forward.tsx +2 -2
- package/src/components/MessageInput/InputPluginsDefalut.tsx +2 -2
- package/src/components/MessageInput/InputQuoteDefalut.tsx +6 -6
- package/src/components/MessageInput/MessageInput.tsx +0 -1
- package/src/components/MessageInput/MessageInputDefault.tsx +5 -5
- package/src/components/MessageInput/hooks/useEmojiPicker.tsx +11 -16
- package/src/components/MessageInput/hooks/useHandleForwardMessage.tsx +3 -4
- package/src/components/MessageInput/hooks/useMessageInputText.tsx +17 -11
- package/src/components/MessageInput/styles/color.scss +1 -1
- package/src/components/MessageInput/styles/layout.scss +2 -2
- package/src/components/MessageList/MessageList.tsx +2 -2
- package/src/components/MessageList/hooks/useMessageListElement.tsx +3 -2
- package/src/components/MessageList/styles/layout.scss +1 -1
- package/src/components/Plugins/styles/color.scss +1 -1
- package/src/components/Profile/Profile.tsx +2 -2
- package/src/components/Profile/ProfileDefault.tsx +4 -4
- package/src/components/Profile/myProfile/styles/index.scss +1 -1
- package/src/components/Profile/styles/color.scss +1 -1
- package/src/components/Profile/styles/layout.scss +1 -1
- package/src/context/UIKitContext.tsx +2 -8
- package/src/context/UIManagerContext.tsx +5 -5
- package/src/context/index.ts +0 -1
- package/src/locales/en-US/emoji.ts +66 -0
- package/src/locales/en-US/index.ts +2 -0
- package/src/locales/index.ts +4 -22
- package/src/locales/ja-JP/emoji.ts +66 -0
- package/src/locales/ja-JP/index.ts +2 -0
- package/src/locales/ko-KR/emoji.ts +66 -0
- package/src/locales/ko-KR/index.ts +2 -0
- package/src/locales/zh-CN/emoji.ts +66 -0
- package/src/locales/zh-CN/index.ts +2 -0
- package/src/locales/zh-TW/emoji.ts +65 -0
- package/src/locales/zh-TW/index.ts +2 -0
- package/src/store/UIManagerStore.ts +108 -0
- package/src/store/index.ts +5 -0
- package/.babelrc +0 -7
- package/.editorconfig +0 -16
- package/.husky/pre-commit +0 -4
- package/.lintstagedrc.json +0 -6
- package/.stylelintrc.js +0 -40
- package/dist/cjs/context/UIManagerContext.d.ts +0 -46
- package/dist/cjs/context/UIManagerContext.js +0 -1
- package/dist/cjs/locales/index.d.ts +0 -6
- package/dist/esm/context/UIManagerContext.d.ts +0 -46
- package/dist/esm/context/UIManagerContext.js +0 -1
- package/dist/esm/locales/index.d.ts +0 -6
- package/rollup.config.js +0 -81
- package/scripts/publish-npm.js +0 -22
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { Chat } from './components/Chat/Chat.js';
|
|
2
2
|
export { UIKitProvider, useUIKit } from './context/UIKitContext.js';
|
|
3
|
-
export { UIManagerContextType, UIManagerProvider, useUIManager } from './context/UIManagerContext.js';
|
|
4
3
|
export { TUIChatStateContext, TUIChatStateContextProvider, TUIChatStateContextValue, useTUIChatStateContext } from './context/ChatStateContext.js';
|
|
5
4
|
export { TUIChatActionContext, TUIChatActionContextValue, TUIChatActionProvider, useTUIChatActionContext } from './context/ChatActionContext.js';
|
|
6
5
|
export { TUIMessageContext, TUIMessageContextProvider, TUIMessageContextValue, messageShowType, useTUIMessageContext } from './context/MessageContext.js';
|
|
@@ -55,6 +54,4 @@ export { Contact, UnMemoizedContact } from './components/Contact/Contact.js';
|
|
|
55
54
|
export { createC2CConversation, createGroupConversation } from './hooks/useConversation.js';
|
|
56
55
|
export { useProfile } from './hooks/useProfile.js';
|
|
57
56
|
export { isTouchEvent } from './hooks/useLongPress.js';
|
|
58
|
-
export { t } from './locales/index.js';
|
|
59
57
|
export { isH5, isPC, setPlatform } from './utils/env.js';
|
|
60
|
-
export { default as i18next } from 'i18next';
|
package/dist/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./server.js");require("./components/Chat/index.js");var t=require("./components/ConversationList/ConversationList.js"),o=require("./components/ConversationList/ConversationListHeader/ConversationListHeader.js"),r=require("./components/ConversationList/ConversationListContent/ConversationListContent.js"),n=require("./components/ConversationActions/ConversationActions.js"),s=require("./components/ConversationPreview/ConversationPreview.js"),a=require("./components/ConversationSearch/ConversationSearchInput/ConversationSearchInput.js"),i=require("./components/ConversationSearch/ConversationSearchResult/ConversationSearchResult.js"),p=require("./components/ConversationSearch/ConversationSearch.js"),C=require("./components/ConversationCreate/ConversationCreate.js"),u=require("./components/ConversationCreate/ConversationCreateSelectView.js"),c=require("./components/ConversationCreate/ConversationCreateGroupDetail.js"),x=require("./components/ConversationCreate/ConversationCreateUserSelectList.js"),v=require("./components/ConversationCreate/hooks/useConversationCreate.js"),l=require("./components/ConversationCreate/ConversationGroupTypeInfo.js"),I=require("./components/ConversationCreate/ConversationCreateButton.js"),d=require("./components/ChatHeader/ChatHeader.js"),m=require("./components/ChatHeader/ChatHeaderDefault.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./server.js");require("./components/Chat/index.js");var t=require("./components/ConversationList/ConversationList.js"),o=require("./components/ConversationList/ConversationListHeader/ConversationListHeader.js"),r=require("./components/ConversationList/ConversationListContent/ConversationListContent.js"),n=require("./components/ConversationActions/ConversationActions.js"),s=require("./components/ConversationPreview/ConversationPreview.js"),a=require("./components/ConversationSearch/ConversationSearchInput/ConversationSearchInput.js"),i=require("./components/ConversationSearch/ConversationSearchResult/ConversationSearchResult.js"),p=require("./components/ConversationSearch/ConversationSearch.js"),C=require("./components/ConversationCreate/ConversationCreate.js"),u=require("./components/ConversationCreate/ConversationCreateSelectView.js"),c=require("./components/ConversationCreate/ConversationCreateGroupDetail.js"),x=require("./components/ConversationCreate/ConversationCreateUserSelectList.js"),v=require("./components/ConversationCreate/hooks/useConversationCreate.js"),l=require("./components/ConversationCreate/ConversationGroupTypeInfo.js"),I=require("./components/ConversationCreate/ConversationCreateButton.js"),d=require("./components/ChatHeader/ChatHeader.js"),m=require("./components/ChatHeader/ChatHeaderDefault.js"),h=require("./components/MessageList/MessageList.js"),P=require("./components/MessageElement/Message.js"),g=require("./components/MessageElement/MessagePlugins.js"),j=require("./components/MessageElement/MessageContext.js"),f=require("./components/MessageInput/MessageInput.js"),T=require("./components/MessageInput/MessageInputDefault.js"),q=require("./components/MessageInput/InputPluginsDefalut.js"),U=require("./components/Profile/Profile.js"),M=require("./components/Profile/ProfileDefault.js"),S=require("./components/Avatar/Avatar.js"),y=require("./components/Avatar/default.js"),L=require("./components/ChatSetting/ChatSetting.js"),A=require("./components/Popup/index.js"),H=require("./components/Checkbox/index.js"),D=require("./components/DivWithEdit/DivWithEdit.js"),b=require("./components/Icon/Icon.js"),G=require("./components/Icon/type.js"),w=require("./components/PlaceHolder/index.js"),E=require("./components/EmptyStateIndicator/EmptyStateIndicator.js"),k=require("./components/Input/Input.js"),O=require("./components/Model/index.js"),R=require("./components/Plugins/index.js"),W=require("./components/Switch/Switch.js"),K=require("./components/Toast/index.js"),V=require("./components/Contact/ContactList/ContactList.js"),z=require("./components/Contact/ContactInfo/ContactInfo.js"),B=require("./components/Contact/Contact.js"),F=require("./context/UIKitContext.js"),N=require("./context/ChatStateContext.js"),_=require("./context/ChatActionContext.js"),J=require("./context/MessageContext.js"),Q=require("./context/ComponentContext.js"),X=require("./context/MessageInputContext.js"),Y=require("./context/ContactContext.js"),Z=require("./context/ConversationListContext.js");require("./hooks/index.js"),require("./locales/index.js");var $=require("./utils/env.js"),ee=require("./components/Chat/Chat.js"),te=require("./hooks/useConversation.js"),oe=require("./hooks/useProfile.js"),re=require("./hooks/useLongPress.js");new e,exports.ConversationList=t.ConversationList,exports.ConversationListHeader=o.ConversationListHeader,exports.ConversationListContent=r.ConversationListContent,exports.ConversationActions=n.ConversationActions,exports.ConversationPreview=s.ConversationPreview,exports.ConversationPreviewUI=s.ConversationPreviewUI,exports.ConversationSearchInput=a.ConversationSearchInput,exports.ConversationSearchResult=i.ConversationSearchResult,exports.ConversationSearch=p.ConversationSearch,exports.defaultSearchFn=p.defaultSearchFn,exports.ConversationCreate=C.ConversationCreate,Object.defineProperty(exports,"PageStateTypes",{enumerable:!0,get:function(){return C.PageStateTypes}}),exports.ConversationCreateSelectView=u.ConversationCreateSelectView,exports.ConversationCreateGroupDetail=c.ConversationCreateGroupDetail,exports.ConversationCreateUserSelectList=x.ConversationCreateUserSelectList,exports.useConversationCreate=v.useConversationCreate,exports.ConversationGroupTypeInfo=l.ConversationGroupTypeInfo,Object.defineProperty(exports,"GroupType",{enumerable:!0,get:function(){return l.GroupType}}),exports.typeInfoList=l.typeInfoList,exports.ConversationCreateButton=I.ConversationCreateButton,exports.ChatHeader=d.ChatHeader,exports.ChatHeaderDefault=m.ChatHeaderDefault,exports.MessageList=h.MessageList,exports.TUIMessage=P.TUIMessage,exports.MessagePlugins=g.MessagePlugins,exports.MessageContext=j.MessageContext,exports.MessageInput=f.MessageInput,exports.TUIMessageInputDefault=T.TUIMessageInputDefault,exports.InputPluginsDefalut=q.InputPluginsDefalut,exports.Profile=U.Profile,exports.TUIProfileDefault=M.TUIProfileDefault,exports.Avatar=S.Avatar,exports.defaultGroupAvatarAVChatRoom=y.defaultGroupAvatarAVChatRoom,exports.defaultGroupAvatarMeeting=y.defaultGroupAvatarMeeting,exports.defaultGroupAvatarPublic=y.defaultGroupAvatarPublic,exports.defaultGroupAvatarWork=y.defaultGroupAvatarWork,exports.defaultUserAvatar=y.defaultUserAvatar,exports.ChatSetting=L.ChatSetting,exports.Popup=A.Popup,exports.Checkbox=H.Checkbox,exports.DivWithEdit=D.DivWithEdit,exports.Icon=b.Icon,exports.changeTypeToIconClassName=b.changeTypeToIconClassName,Object.defineProperty(exports,"IconTypes",{enumerable:!0,get:function(){return G.IconTypes}}),exports.PlaceHolder=w.PlaceHolder,exports.PlaceHolderIconTypes=w.PlaceHolderIconTypes,exports.PlaceHolderStringTypes=w.PlaceHolderStringTypes,exports.PlaceHolderTypes=w.PlaceHolderTypes,exports.EmptyStateIndicator=E.EmptyStateIndicator,exports.Input=k.Input,exports.Model=O.Model,exports.Plugins=R.Plugins,exports.Switch=W.Switch,exports.Toast=K.Toast,exports.ContactList=V.ContactList,exports.ContactInfo=z.ContactInfo,exports.UnMemoizedContactInfo=z.UnMemoizedContactInfo,exports.Contact=B.Contact,exports.UnMemoizedContact=B.UnMemoizedContact,exports.UIKitProvider=F.UIKitProvider,exports.useUIKit=F.useUIKit,exports.TUIChatStateContext=N.TUIChatStateContext,exports.TUIChatStateContextProvider=N.TUIChatStateContextProvider,exports.useTUIChatStateContext=N.useTUIChatStateContext,exports.TUIChatActionContext=_.TUIChatActionContext,exports.TUIChatActionProvider=_.TUIChatActionProvider,exports.useTUIChatActionContext=_.useTUIChatActionContext,exports.TUIMessageContext=J.TUIMessageContext,exports.TUIMessageContextProvider=J.TUIMessageContextProvider,Object.defineProperty(exports,"messageShowType",{enumerable:!0,get:function(){return J.messageShowType}}),exports.useTUIMessageContext=J.useTUIMessageContext,exports.ComponentContext=Q.ComponentContext,exports.ComponentProvider=Q.ComponentProvider,exports.useComponentContext=Q.useComponentContext,exports.TUIMessageInputContext=X.TUIMessageInputContext,exports.TUIMessageInputContextProvider=X.TUIMessageInputContextProvider,exports.useTUIMessageInputContext=X.useTUIMessageInputContext,exports.TUIContactContext=Y.TUIContactContext,exports.TUIContactContextProvider=Y.TUIContactContextProvider,exports.useTUIContactContext=Y.useTUIContactContext,exports.ConversationListProvider=Z.ConversationListProvider,exports.useConversationList=Z.useConversationList,Object.defineProperty(exports,"isH5",{enumerable:!0,get:function(){return $.isH5}}),Object.defineProperty(exports,"isPC",{enumerable:!0,get:function(){return $.isPC}}),exports.setPlatform=$.setPlatform,exports.Chat=ee.Chat,exports.createC2CConversation=te.createC2CConversation,exports.createGroupConversation=te.createGroupConversation,exports.useProfile=oe.useProfile,exports.isTouchEvent=re.isTouchEvent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";module.exports={"[TUIEmoji_Smile]":"[Smile]","[TUIEmoji_Expect]":"[Expect]","[TUIEmoji_Blink]":"[Blink]","[TUIEmoji_Guffaw]":"[Guffaw]","[TUIEmoji_KindSmile]":"[KindSmile]","[TUIEmoji_Haha]":"[Haha]","[TUIEmoji_Cheerful]":"[Cheerful]","[TUIEmoji_Speechless]":"[Speechless]","[TUIEmoji_Amazed]":"[Amazed]","[TUIEmoji_Sorrow]":"[Sorrow]","[TUIEmoji_Complacent]":"[Complacent]","[TUIEmoji_Silly]":"[Silly]","[TUIEmoji_Lustful]":"[Lustful]","[TUIEmoji_Giggle]":"[Giggle]","[TUIEmoji_Kiss]":"[Kiss]","[TUIEmoji_Wail]":"[Wail]","[TUIEmoji_TearsLaugh]":"[TearsLaugh]","[TUIEmoji_Trapped]":"[Trapped]","[TUIEmoji_Mask]":"[Mask]","[TUIEmoji_Fear]":"[Fear]","[TUIEmoji_BareTeeth]":"[BareTeeth]","[TUIEmoji_FlareUp]":"[FlareUp]","[TUIEmoji_Yawn]":"[Yawn]","[TUIEmoji_Tact]":"[Tact]","[TUIEmoji_Stareyes]":"[StarEyes]","[TUIEmoji_ShutUp]":"[ShutUp]","[TUIEmoji_Sigh]":"[Sigh]","[TUIEmoji_Hehe]":"[Hehe]","[TUIEmoji_Silent]":"[Silent]","[TUIEmoji_Surprised]":"[Surprised]","[TUIEmoji_Askance]":"[Askance]]","[TUIEmoji_Ok]":"[OK]","[TUIEmoji_Shit]":"[Shit]","[TUIEmoji_Monster]":"[Monster]","[TUIEmoji_Daemon]":"[Daemon]","[TUIEmoji_Rage]":"[Rage]","[TUIEmoji_Fool]":"[Fool]","[TUIEmoji_Pig]":"[Pig]","[TUIEmoji_Cow]":"[Cow]","[TUIEmoji_Ai]":"[AI]","[TUIEmoji_Skull]":"[Skull]","[TUIEmoji_Bombs]":"[Bombs]","[TUIEmoji_Coffee]":"[Coffee]","[TUIEmoji_Cake]":"[Cake]","[TUIEmoji_Beer]":"[Beer]","[TUIEmoji_Flower]":"[Flower]","[TUIEmoji_Watermelon]":"[Watermelon]","[TUIEmoji_Rich]":"[Rich]","[TUIEmoji_Heart]":"[Heart]","[TUIEmoji_Moon]":"[Moon]","[TUIEmoji_Sun]":"[Sun]","[TUIEmoji_Star]":"[Star]","[TUIEmoji_RedPacket]":"[RedPacket]","[TUIEmoji_Celebrate]":"[Celebrate]","[TUIEmoji_Bless]":"[Bless]","[TUIEmoji_Fortune]":"[Fortune]","[TUIEmoji_Convinced]":"[Convinced]","[TUIEmoji_Prohibit]":"[Prohibit]","[TUIEmoji_666]":"[666]","[TUIEmoji_857]":"[857]","[TUIEmoji_Knife]":"[Knife]","[TUIEmoji_Like]":"[Like]"};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={TUIChat:require("./TUIChat.js"),TUIConversation:require("./TUIConversation.js"),TUIContact:require("./TUIContact.js"),TUIProfile:require("./TUIProfile.js")};exports.message=e;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={TUIChat:require("./TUIChat.js"),Emoji:require("./emoji.js"),TUIConversation:require("./TUIConversation.js"),TUIContact:require("./TUIContact.js"),TUIProfile:require("./TUIProfile.js")};exports.message=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";for(var e=require("@tencentcloud/uikit-base-component-react"),n=require("./en-US/index.js"),s=require("./zh-CN/index.js"),a=require("./ja-JP/index.js"),r=require("./ko-KR/index.js"),t=require("./zh-TW/index.js"),i={"en-US":{translation:n.message},"zh-CN":{translation:s.message},"ja-JP":{translation:a.message},"ko-KR":{translation:r.message},"zh-TW":{translation:t.message}},o=0,u=Object.entries(i);o<u.length;o++){var l=u[o],d=l[0],j=l[1];e.i18next.addResourceBundle(d,"translation",j.translation,!0,!1)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";module.exports={"[TUIEmoji_Smile]":"[微笑]","[TUIEmoji_Expect]":"[期待]","[TUIEmoji_Blink]":"[瞬き]","[TUIEmoji_Guffaw]":"[大笑]","[TUIEmoji_KindSmile]":"[親しみ]","[TUIEmoji_Haha]":"[笑い]","[TUIEmoji_Cheerful]":"[愉快]","[TUIEmoji_Speechless]":"[言葉無し]","[TUIEmoji_Amazed]":"[驚き]","[TUIEmoji_Sorrow]":"[悲しみ]","[TUIEmoji_Complacent]":"[満足]","[TUIEmoji_Silly]":"[ばか]","[TUIEmoji_Lustful]":"[欲望]","[TUIEmoji_Giggle]":"[笑い]","[TUIEmoji_Kiss]":"[キス]","[TUIEmoji_Wail]":"[泣き]","[TUIEmoji_TearsLaugh]":"[泣き笑い]","[TUIEmoji_Trapped]":"[困り]","[TUIEmoji_Mask]":"[マスク]","[TUIEmoji_Fear]":"[恐怖]","[TUIEmoji_BareTeeth]":"[歯見せ]","[TUIEmoji_FlareUp]":"[怒り]","[TUIEmoji_Yawn]":"[あくび]","[TUIEmoji_Tact]":"[機知]","[TUIEmoji_Stareyes]":"[星目]","[TUIEmoji_ShutUp]":"[黙れ]","[TUIEmoji_Sigh]":"[ため息]","[TUIEmoji_Hehe]":"[へへ]","[TUIEmoji_Silent]":"[沈黙]","[TUIEmoji_Surprised]":"[驚き]","[TUIEmoji_Askance]":"[白目]","[TUIEmoji_Ok]":"[OK]","[TUIEmoji_Shit]":"[便便]","[TUIEmoji_Monster]":"[モンスター]","[TUIEmoji_Daemon]":"[悪魔]","[TUIEmoji_Rage]":"[激怒]","[TUIEmoji_Fool]":"[バカ]","[TUIEmoji_Pig]":"[豚]","[TUIEmoji_Cow]":"[牛]","[TUIEmoji_Ai]":"[AI]","[TUIEmoji_Skull]":"[骸骨]","[TUIEmoji_Bombs]":"[爆弾]","[TUIEmoji_Coffee]":"[コーヒー]","[TUIEmoji_Cake]":"[ケーキ]","[TUIEmoji_Beer]":"[ビール]","[TUIEmoji_Flower]":"[花]","[TUIEmoji_Watermelon]":"[スイカ]","[TUIEmoji_Rich]":"[金持ち]","[TUIEmoji_Heart]":"[ハート]","[TUIEmoji_Moon]":"[月]","[TUIEmoji_Sun]":"[太陽]","[TUIEmoji_Star]":"[星]","[TUIEmoji_RedPacket]":"[紅包]","[TUIEmoji_Celebrate]":"[祝い]","[TUIEmoji_Bless]":"[祝福]","[TUIEmoji_Fortune]":"[幸運]","[TUIEmoji_Convinced]":"[納得]","[TUIEmoji_Prohibit]":"[禁止]","[TUIEmoji_666]":"[666]","[TUIEmoji_857]":"[857]","[TUIEmoji_Knife]":"[ナイフ]","[TUIEmoji_Like]":"[いいね]"};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={TUIChat:require("./TUIChat.js"),TUIConversation:require("./TUIConversation.js"),TUIContact:require("./TUIContact.js"),TUIProfile:require("./TUIProfile.js")};exports.message=e;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={TUIChat:require("./TUIChat.js"),Emoji:require("./emoji.js"),TUIConversation:require("./TUIConversation.js"),TUIContact:require("./TUIContact.js"),TUIProfile:require("./TUIProfile.js")};exports.message=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";module.exports={"[TUIEmoji_Smile]":"[미소]","[TUIEmoji_Expect]":"[기대]","[TUIEmoji_Blink]":"[눈길림]","[TUIEmoji_Guffaw]":"[대소]","[TUIEmoji_KindSmile]":"[친절]","[TUIEmoji_Haha]":"[하하]","[TUIEmoji_Cheerful]":"[기쁨]","[TUIEmoji_Speechless]":"[무언]","[TUIEmoji_Amazed]":"[놀람]","[TUIEmoji_Sorrow]":"[슬픔]","[TUIEmoji_Complacent]":"[만족]","[TUIEmoji_Silly]":"[바보]","[TUIEmoji_Lustful]":"[욕망]","[TUIEmoji_Giggle]":"[kichigae]","[TUIEmoji_Kiss]":"[키스]","[TUIEmoji_Wail]":"[울음]","[TUIEmoji_TearsLaugh]":"[울먹임]","[TUIEmoji_Trapped]":"[갇힘]","[TUIEmoji_Mask]":"[마스크]","[TUIEmoji_Fear]":"[공포]","[TUIEmoji_BareTeeth]":"[이빨보임]","[TUIEmoji_FlareUp]":"[화남]","[TUIEmoji_Yawn]":"[하품]","[TUIEmoji_Tact]":"[기지]","[TUIEmoji_Stareyes]":"[별눈]","[TUIEmoji_ShutUp]":"[조용히]","[TUIEmoji_Sigh]":"[한숨]","[TUIEmoji_Hehe]":"[헤헤]","[TUIEmoji_Silent]":"[침묵]","[TUIEmoji_Surprised]":"[놀람]","[TUIEmoji_Askance]":"[백안]","[TUIEmoji_Ok]":"[OK]","[TUIEmoji_Shit]":"[똥]","[TUIEmoji_Monster]":"[몬스터]","[TUIEmoji_Daemon]":"[악마]","[TUIEmoji_Rage]":"[분노]","[TUIEmoji_Fool]":"[바보]","[TUIEmoji_Pig]":"[돼지]","[TUIEmoji_Cow]":"[소]","[TUIEmoji_Ai]":"[AI]","[TUIEmoji_Skull]":"[해골]","[TUIEmoji_Bombs]":"[폭탄]","[TUIEmoji_Coffee]":"[커피]","[TUIEmoji_Cake]":"[케이크]","[TUIEmoji_Beer]":"[맥주]","[TUIEmoji_Flower]":"[꽃]","[TUIEmoji_Watermelon]":"[수박]","[TUIEmoji_Rich]":"[부자]","[TUIEmoji_Heart]":"[사랑]","[TUIEmoji_Moon]":"[달]","[TUIEmoji_Sun]":"[태양]","[TUIEmoji_Star]":"[별]","[TUIEmoji_RedPacket]":"[레드패킷]","[TUIEmoji_Celebrate]":"[축하]","[TUIEmoji_Bless]":"[복]","[TUIEmoji_Fortune]":"[운]","[TUIEmoji_Convinced]":"[복종]","[TUIEmoji_Prohibit]":"[금지]","[TUIEmoji_666]":"[666]","[TUIEmoji_857]":"[857]","[TUIEmoji_Knife]":"[칼]","[TUIEmoji_Like]":"[좋아요]"};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={TUIChat:require("./TUIChat.js"),TUIConversation:require("./TUIConversation.js"),TUIContact:require("./TUIContact.js"),TUIProfile:require("./TUIProfile.js")};exports.message=e;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={TUIChat:require("./TUIChat.js"),Emoji:require("./emoji.js"),TUIConversation:require("./TUIConversation.js"),TUIContact:require("./TUIContact.js"),TUIProfile:require("./TUIProfile.js")};exports.message=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";module.exports={"[TUIEmoji_Smile]":"[微笑]","[TUIEmoji_Expect]":"[期待]","[TUIEmoji_Blink]":"[眨眼]","[TUIEmoji_Guffaw]":"[大笑]","[TUIEmoji_KindSmile]":"[姨母笑]","[TUIEmoji_Haha]":"[哈哈哈]","[TUIEmoji_Cheerful]":"[愉快]","[TUIEmoji_Speechless]":"[无语]","[TUIEmoji_Amazed]":"[惊讶]","[TUIEmoji_Sorrow]":"[悲伤]","[TUIEmoji_Complacent]":"[得意]","[TUIEmoji_Silly]":"[傻了]","[TUIEmoji_Lustful]":"[色]","[TUIEmoji_Giggle]":"[憨笑]","[TUIEmoji_Kiss]":"[亲亲]","[TUIEmoji_Wail]":"[大哭]","[TUIEmoji_TearsLaugh]":"[哭笑]","[TUIEmoji_Trapped]":"[困]","[TUIEmoji_Mask]":"[口罩]","[TUIEmoji_Fear]":"[恐惧]","[TUIEmoji_BareTeeth]":"[龇牙]","[TUIEmoji_FlareUp]":"[发怒]","[TUIEmoji_Yawn]":"[打哈欠]","[TUIEmoji_Tact]":"[机智]","[TUIEmoji_Stareyes]":"[星星眼]","[TUIEmoji_ShutUp]":"[闭嘴]","[TUIEmoji_Sigh]":"[叹气]","[TUIEmoji_Hehe]":"[呵呵]","[TUIEmoji_Silent]":"[收声]","[TUIEmoji_Surprised]":"[惊喜]","[TUIEmoji_Askance]":"[白眼]","[TUIEmoji_Ok]":"[OK]","[TUIEmoji_Shit]":"[便便]","[TUIEmoji_Monster]":"[怪兽]","[TUIEmoji_Daemon]":"[恶魔]","[TUIEmoji_Rage]":"[恶魔怒]","[TUIEmoji_Fool]":"[衰]","[TUIEmoji_Pig]":"[猪]","[TUIEmoji_Cow]":"[牛]","[TUIEmoji_Ai]":"[AI]","[TUIEmoji_Skull]":"[骷髅]","[TUIEmoji_Bombs]":"[炸弹]","[TUIEmoji_Coffee]":"[咖啡]","[TUIEmoji_Cake]":"[蛋糕]","[TUIEmoji_Beer]":"[啤酒]","[TUIEmoji_Flower]":"[花]","[TUIEmoji_Watermelon]":"[瓜]","[TUIEmoji_Rich]":"[壕]","[TUIEmoji_Heart]":"[爱心]","[TUIEmoji_Moon]":"[月亮]","[TUIEmoji_Sun]":"[太阳]","[TUIEmoji_Star]":"[星星]","[TUIEmoji_RedPacket]":"[红包]","[TUIEmoji_Celebrate]":"[庆祝]","[TUIEmoji_Bless]":"[福]","[TUIEmoji_Fortune]":"[发]","[TUIEmoji_Convinced]":"[服]","[TUIEmoji_Prohibit]":"[禁]","[TUIEmoji_666]":"[666]","[TUIEmoji_857]":"[857]","[TUIEmoji_Knife]":"[刀]","[TUIEmoji_Like]":"[赞]"};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={TUIChat:require("./TUIChat.js"),TUIConversation:require("./TUIConversation.js"),TUIContact:require("./TUIContact.js"),TUIProfile:require("./TUIProfile.js")};exports.message=e;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={TUIChat:require("./TUIChat.js"),Emoji:require("./emoji.js"),TUIConversation:require("./TUIConversation.js"),TUIContact:require("./TUIContact.js"),TUIProfile:require("./TUIProfile.js")};exports.message=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";module.exports={"[TUIEmoji_Smile]":"[微笑]","[TUIEmoji_Expect]":"[期待]","[TUIEmoji_Blink]":"[眨眼]","[TUIEmoji_Guffaw]":"[大笑]","[TUIEmoji_KindSmile]":"[姨母笑]","[TUIEmoji_Haha]":"[哈哈哈]","[TUIEmoji_Cheerful]":"[愉快]","[TUIEmoji_Speechless]":"[無語]","[TUIEmoji_Amazed]":"[驚訝]","[TUIEmoji_Sorrow]":"[悲傷]","[TUIEmoji_Complacent]":"[得意]","[TUIEmoji_Silly]":"[傻了]","[TUIEmoji_Lustful]":"[色]","[TUIEmoji_Giggle]":"[憨笑]","[TUIEmoji_Kiss]":"[親親]","[TUIEmoji_Wail]":"[大哭]","[TUIEmoji_TearsLaugh]":"[哭笑]","[TUIEmoji_Trapped]":"[困]","[TUIEmoji_Mask]":"[口罩]","[TUIEmoji_Fear]":"[恐懼]","[TUIEmoji_BareTeeth]":"[齜牙]","[TUIEmoji_FlareUp]":"[發怒]","[TUIEmoji_Yawn]":"[打哈欠]","[TUIEmoji_Tact]":"[機智]","[TUIEmoji_Stareyes]":"[星星眼]","[TUIEmoji_ShutUp]":"[閉嘴]","[TUIEmoji_Sigh]":"[嘆氣]","[TUIEmoji_Hehe]":"[呵呵]","[TUIEmoji_Silent]":"[收聲]","[TUIEmoji_Surprised]":"[驚喜]","[TUIEmoji_Askance]":"[白眼]","[TUIEmoji_Ok]":"[OK]","[TUIEmoji_Shit]":"[便便]","[TUIEmoji_Monster]":"[怪獸]","[TUIEmoji_Daemon]":"[惡魔]","[TUIEmoji_Rage]":"[惡魔怒]","[TUIEmoji_Fool]":"[衰]","[TUIEmoji_Pig]":"[豬]","[TUIEmoji_Cow]":"[牛]","[TUIEmoji_Ai]":"[AI]","[TUIEmoji_Skull]":"[骷髏]","[TUIEmoji_Bombs]":"[炸彈]","[TUIEmoji_Coffee]":"[咖啡]","[TUIEmoji_Cake]":"[蛋糕]","[TUIEmoji_Flower]":"[花]","[TUIEmoji_Watermelon]":"[瓜]","[TUIEmoji_Rich]":"[壕]","[TUIEmoji_Heart]":"[愛心]","[TUIEmoji_Moon]":"[月亮]","[TUIEmoji_Sun]":"[太陽]","[TUIEmoji_Star]":"[星星]","[TUIEmoji_RedPacket]":"[紅包]","[TUIEmoji_Celebrate]":"[慶祝]","[TUIEmoji_Bless]":"[福]","[TUIEmoji_Fortune]":"[發]","[TUIEmoji_Convinced]":"[服]","[TUIEmoji_Prohibit]":"[禁]","[TUIEmoji_666]":"[666]","[TUIEmoji_857]":"[857]","[TUIEmoji_Knife]":"[刀]","[TUIEmoji_Like]":"[讚]"};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={TUIChat:require("./TUIChat.js"),TUIConversation:require("./TUIConversation.js"),TUIContact:require("./TUIContact.js"),TUIProfile:require("./TUIProfile.js")};exports.message=e;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={TUIChat:require("./TUIChat.js"),Emoji:require("./emoji.js"),TUIConversation:require("./TUIConversation.js"),TUIContact:require("./TUIContact.js"),TUIProfile:require("./TUIProfile.js")};exports.message=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("react"));const u=e=>e;exports.useStore=function(e,r=u){const n=t.default.useSyncExternalStore(e.subscribe,(()=>r(e.getState())),(()=>r(e.getInitialState())));return t.default.useDebugValue(n),n};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=e=>{let t;const s=new Set,o=(e,o)=>{const c="function"==typeof e?e(t):e;if(!Object.is(c,t)){const e=t;t=(null!=o?o:"object"!=typeof c||null===c)?c:Object.assign({},t,c),s.forEach((s=>s(t,e)))}},c=()=>t,n={setState:o,getState:c,getInitialState:()=>r,subscribe:e=>(s.add(e),()=>s.delete(e))},r=t=e(o,c,n);return n};exports.createStore=t=>t?e(t):e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../node_modules/zustand/esm/vanilla.mjs.js"),t=require("@tencentcloud/tui-core"),n=require("@tencentcloud/chat-uikit-engine"),o=require("../node_modules/zustand/esm/react.mjs.js"),r=e.createStore()((function(e){return{chat:null,myProfile:void 0,contactData:void 0,conversation:void 0,TUIProfileShow:!1,TUIManageShow:!1,setMyProfile:function(t){return e((function(){return{myProfile:t}}))},setActiveContact:function(t){return e((function(){return{contactData:t}}))},setActiveConversation:function(t){return e((function(){return{conversation:t}}))},setTUIProfileShow:function(t){return e((function(){return{TUIProfileShow:t}}))},setTUIManageShow:function(t){return e((function(){return{TUIManageShow:t}}))}}}));n.TUIStore.watch(n.StoreName.USER,{userProfile:function(e){r.getState().setMyProfile(e)}}),n.TUIStore.watch(n.StoreName.CONV,{currentConversation:function(e){var t;(null==e?void 0:e.conversationID)!==(null===(t=r.getState().conversation)||void 0===t?void 0:t.conversationID)&&r.getState().setTUIManageShow(!1);r.getState().setActiveConversation(e)}}),exports.default=r,exports.useUIManagerStore=function(){return{chat:t.TUILogin.getContext().chat,myProfile:o.useStore(r,(function(e){return e.myProfile})),contactData:o.useStore(r,(function(e){return e.contactData})),conversation:o.useStore(r,(function(e){return e.conversation})),TUIProfileShow:o.useStore(r,(function(e){return e.TUIProfileShow})),TUIManageShow:o.useStore(r,(function(e){return e.TUIManageShow})),setActiveContact:o.useStore(r,(function(e){return e.setActiveContact})),setActiveConversation:o.useStore(r,(function(e){return e.setActiveConversation})),setTUIProfileShow:o.useStore(r,(function(e){return e.setTUIProfileShow})),setTUIManageShow:o.useStore(r,(function(e){return e.setTUIManageShow}))}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e,__awaiter as t,__generator as s}from"tslib";import o,{createElement as n,useReducer as a,useRef as i,useEffect as r,useMemo as c}from"react";import{jsx as u,jsxs as g,Fragment as m}from"react/jsx-runtime";import{TUIStore as l,StoreName as p,TUIChatService as d}from"@tencentcloud/chat-uikit-engine";import{JSONStringToParse as M}from"../utils.js";import{
|
|
1
|
+
import{__assign as e,__awaiter as t,__generator as s}from"tslib";import o,{createElement as n,useReducer as a,useRef as i,useEffect as r,useMemo as c}from"react";import{jsx as u,jsxs as g,Fragment as m}from"react/jsx-runtime";import{TUIStore as l,StoreName as p,TUIChatService as d}from"@tencentcloud/chat-uikit-engine";import{JSONStringToParse as M}from"../utils.js";import{useUIManagerStore as f}from"../../store/UIManagerStore.js";import{TUIChatStateContextProvider as v}from"../../context/ChatStateContext.js";import{TUIChatActionProvider as h}from"../../context/ChatActionContext.js";import{ComponentProvider as C}from"../../context/ComponentContext.js";import I from"./hooks/useCreateTUIChatStateContext.js";import{TUIMessage as j}from"../MessageElement/Message.js";import"../MessageElement/MessagePlugins.js";import"../MessageElement/MessageContext.js";import{CONSTANT_DISPATCH_TYPE as S}from"../../constants.js";import{chatReducer as T,initialState as x}from"./ChatState.js";import{useHandleMessageList as E}from"./hooks/useHandleMessageList.js";import{useHandleMessage as L}from"./hooks/useHandleMessage.js";import{ChatHeader as U}from"../ChatHeader/ChatHeader.js";import"@tencentcloud/tui-core";import"@tencentcloud/chat";import"../Icon/config.js";import"../Icon/type.js";import"../../utils/env.js";import"react-i18next";import"../../context/MessageContext.js";import{MessageList as P}from"../MessageList/MessageList.js";import{MessageInput as y}from"../MessageInput/MessageInput.js";import"@tencentcloud/uikit-base-component-react";import{EmptyStateIndicator as k}from"../EmptyStateIndicator/EmptyStateIndicator.js";function H(t){var s=t.conversation,o=t.EmptyPlaceholder,a=void 0===o?u(k,{listType:"chat"}):o,i=f().chat,r=f().conversation,c=s||r;return(null==c?void 0:c.conversationID)?n(A,e({chat:i},t,{conversation:c,key:c.conversationID})):a}function A(o){var n=this,f=o.chat,k=o.conversation,H=o.className,A=o.children,D=o.TUIMessage,_=o.TUIChatHeader,R=o.TUIMessageInput,N=o.InputPlugins,b=o.MessagePlugins,w=o.MessageContext,B=o.MessageCustomPlugins,F=o.MessageTextPlugins,G=o.InputQuote;o.onMessageRecevied,o.sendMessage;var O=o.revokeMessage;o.selectedConversation;var Q=o.filterMessage,V=o.messageConfig,q=o.cloudCustomData,z=o.TUIMessageInputConfig,J=o.TUIMessageListConfig,K=o.callButtonClicked,W=a(T,e(e({},x),{conversation:k})),X=W[0],Y=W[1],Z=i(null),$=i(),ee=X&&I(e({chat:f,conversation:k,messageListRef:Z,textareaRef:$,messageConfig:V,cloudCustomData:q,TUIMessageInputConfig:z,TUIMessageListConfig:J},X)),te=E({chat:f,conversation:k,state:X,dispatch:Y,filterMessage:Q}),se=te.editLocalMessage,oe=te.updateUploadPendingMessageList,ne=L({state:X,dispatch:Y}),ae=ne.operateMessage,ie=ne.setAudioSource,re=ne.setVideoSource,ce=ne.setHighlightedMessageId,ue=ne.setActiveMessageID;r((function(){return l.watch(p.CHAT,{messageList:ge,isCompleted:me}),function(){l.unwatch(p.CHAT,{messageList:ge,isCompleted:me})}}),[]);var ge=function(e){var t=e.filter((function(e){return!e.isDeleted}));Y({type:S.SET_MESSAGELIST,value:Q?Q(t):t})},me=function(e){e&&Y({type:S.SET_NO_MORE,value:e})},le=function(){return t(n,void 0,void 0,(function(){return s(this,(function(e){return d.getMessageList(),[2]}))}))},pe=function(e){return t(n,void 0,void 0,(function(){var t;return s(this,(function(s){return"TIMCustomElem"===e.type&&7===(null===(t=M(e.payload.data))||void 0===t?void 0:t.src)||X.firstSendMessage||Y({type:S.SET_FIRST_SEND_MESSAGE,value:e}),[2]}))}))},de=c((function(){return{editLocalMessage:se,operateMessage:ae,loadMore:le,revokeMessage:O,setAudioSource:ie,setVideoSource:re,setHighlightedMessageId:ce,setActiveMessageID:ue,updateUploadPendingMessageList:oe,setFirstSendMessage:pe,callButtonClicked:K}}),[se,ae,le,O,ie,re,ce,ue,oe,pe,K]),Me=c((function(){return{TUIMessage:D||j,MessageContext:w,InputPlugins:N,MessagePlugins:b,MessageCustomPlugins:B,MessageTextPlugins:F,TUIChatHeader:_,TUIMessageInput:R,InputQuote:G}}),[]);return u("div",e({className:"chat ".concat(H)},{children:u(v,e({value:ee},{children:u(h,e({value:de},{children:u(C,e({value:Me},{children:A||g(m,{children:[u(U,{}),u(P,{}),u(y,{})]})}))}))}))}))}var D=o.memo(H);export{D as Chat};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"./server.js";import"tslib";import"react";import"react/jsx-runtime";import"@tencentcloud/chat-uikit-engine";import"date-fns";import"date-fns/locale";import"@tencentcloud/chat";import"../Icon/config.js";import"../Icon/type.js";import"@tencentcloud/tui-core";import"react-i18next";import"../../context/MessageContext.js";import"../../constants.js";import"../MessageElement/hooks/useMessageReply.js";import"../MessageElement/MessagePlugins.js";import"../MessageElement/MessageContext.js";import"../../utils/env.js";import"../MessageInput/hooks/useHandleQuoteMessage.js";new e;
|
|
1
|
+
import e from"./server.js";import"tslib";import"react";import"react/jsx-runtime";import"@tencentcloud/chat-uikit-engine";import"date-fns";import"date-fns/locale";import"@tencentcloud/chat";import"../Icon/config.js";import"../Icon/type.js";import"../../store/UIManagerStore.js";import"@tencentcloud/tui-core";import"react-i18next";import"../../context/MessageContext.js";import"@tencentcloud/uikit-base-component-react";import"../../constants.js";import"../MessageElement/hooks/useMessageReply.js";import"../MessageElement/MessagePlugins.js";import"../MessageElement/MessageContext.js";import"../../utils/env.js";import"../MessageInput/hooks/useHandleQuoteMessage.js";new e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import e from"react";import{useTUIChatStateContext as o}from"../../context/ChatStateContext.js";import{ChatHeaderDefault as r}from"./ChatHeaderDefault.js";import"tslib";import"@tencentcloud/tui-core";import"react-i18next";import"
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import e from"react";import{useTUIChatStateContext as o}from"../../context/ChatStateContext.js";import{ChatHeaderDefault as r}from"./ChatHeaderDefault.js";import"tslib";import"@tencentcloud/tui-core";import"react-i18next";import"../../context/MessageContext.js";import{useComponentContext as a}from"../../context/ComponentContext.js";import"@tencentcloud/chat-uikit-engine";function n(e){var n=e.title,i=e.conversation,m=e.TUIChatHeader,c=e.avatar,p=e.headerOpateIcon,l=e.enableCall,s=o("TUIChatHeader").conversation,C=a().TUIChatHeader;return t(m||C||r,{title:n,conversation:i||s,avatar:c,opateIcon:p,enableCall:l})}var i=e.memo(n);export{i as ChatHeader};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as
|
|
1
|
+
import{__assign as e}from"tslib";import{jsx as t,jsxs as i}from"react/jsx-runtime";import o,{useState as a,useEffect as n}from"react";import r,{TUIConstants as l}from"@tencentcloud/tui-core";import c from"@tencentcloud/chat";import{TUIConversationService as s}from"@tencentcloud/chat-uikit-engine";import{Avatar as d}from"../Avatar/Avatar.js";import{handleDisplayAvatar as m}from"../utils.js";import{isH5 as u}from"../../utils/env.js";import{Icon as v}from"../Icon/Icon.js";import{IconTypes as h}from"../Icon/type.js";import"react-i18next";import{useTUIChatActionContext as p}from"../../context/ChatActionContext.js";import"../../context/MessageContext.js";import{useUIManagerStore as C}from"../../store/UIManagerStore.js";import{startCall as f}from"../Chat/utils.js";function N(o){var N=o.title,S=void 0===N?"":N,E=o.avatar;o.isOnline;var I=o.conversation,g=o.isLive,y=o.opateIcon,T=o.enableCall,P=void 0!==T&&T,k=p().callButtonClicked,O=C().setActiveContact,j=a(S),V=j[0],Y=j[1],b=a(""),x=b[0],A=b[1],L=a(!1),M=L[0],w=L[1];n((function(){switch(Y(S),E&&A(E),null==I?void 0:I.type){case c.TYPES.CONV_C2C:!function(e,i){V||Y(i||(null==e?void 0:e.nick)||(null==e?void 0:e.userID));E||A(t(d,{size:32,image:m(e.avatar)}))}(I.userProfile,null==I?void 0:I.remark);var e=!!r.getService(l.TUICalling.SERVICE.NAME);w(e&&P);break;case c.TYPES.CONV_GROUP:!function(e){V||Y((null==e?void 0:e.name)||(null==e?void 0:e.groupID));E||A(t(d,{size:32,image:m(e.avatar,c.TYPES.CONV_GROUP)}))}(I.groupProfile);break;case c.TYPES.CONV_SYSTEM:Y("System Notice");break;default:Y("")}}),[I]);var _=C().setTUIManageShow,D=function(e){var t,i=(null===(t=null==I?void 0:I.userProfile)||void 0===t?void 0:t.userID)||"",o=(null==I?void 0:I.type)||c.TYPES.CONV_C2C;f({callType:o,callMediaType:e,userIDList:[i],callButtonClicked:k})};return i("header",e({className:"tui-chat-header ".concat(g?"tui-chat-live-header":"")},{children:[u&&t("div",e({style:{paddingRight:"10px"}},{children:t(v,{onClick:function(){s.switchConversation(""),O()},type:h.BACK,width:9,height:16})})),t("div",e({className:"tui-chat-header-left ".concat((null==I?void 0:I.type)===c.TYPES.CONV_SYSTEM?"system":"")},{children:(null==I?void 0:I.type)!==c.TYPES.CONV_SYSTEM&&x})),t("div",e({className:"header-content"},{children:t("h3",e({className:"title"},{children:V}))})),M&&i("div",e({className:"call-btn-container"},{children:[t(v,{className:"call-btn",onClick:function(){return D(2)},type:h.VIDEOCALL,width:24}),t(v,{className:"call-btn",onClick:function(){return D(1)},type:h.VOICECALL,width:20})]})),t("div",e({className:"tui-chat-header-right"},{children:t("div",e({className:"header-handle"},{children:y||t(v,{className:"header-handle-more",onClick:function(){_&&_(!0)},type:h.ELLIPSE,width:18,height:5})}))}))]}),null==I?void 0:I.conversationID)}var S=o.memo(N);function E(i){var o=e({},i);return t(S,e({},o))}export{E as ChatHeaderDefault};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as n}from"tslib";import{jsxs as e,jsx as i}from"react/jsx-runtime";import o,{useState as
|
|
1
|
+
import{__assign as n}from"tslib";import{jsxs as e,jsx as i}from"react/jsx-runtime";import o,{useState as a,useEffect as t}from"react";import{TUIStore as r}from"@tencentcloud/chat-uikit-engine";import{useUIKit as l}from"@tencentcloud/uikit-base-component-react";import{Icon as c}from"../Icon/Icon.js";import{IconTypes as s}from"../Icon/type.js";import{Avatar as m}from"../Avatar/Avatar.js";import{defaultGroupAvatarWork as d,defaultUserAvatar as v}from"../Avatar/default.js";import{Switch as u}from"../Switch/Switch.js";import{useUIManagerStore as h}from"../../store/UIManagerStore.js";import{isH5 as f,isPC as g}from"../../utils/env.js";import{getMessageProfile as p}from"../ConversationPreview/utils.js";function I(){var o=l().t,I=a(),C=I[0],N=I[1],j=a(),D=j[0],k=j[1],w=a(!1),A=w[0],U=w[1],x=a(0),M=x[0];x[1];var S=h(),T=S.conversation,b=S.setActiveConversation,y=S.TUIManageShow,P=S.setTUIManageShow,L=function(){P&&P(!1)};return t((function(){N(T),T&&k(p(T)),U(!!T&&T.isPinned)}),[T,M]),y&&T&&e("div",n({className:"tui-manage ".concat(f?"tui-h5-manage":"")},{children:[e("div",n({className:"tui-manage-title"},{children:[g&&i(c,{onClick:L,type:s.CANCEL,width:9,height:16}),f&&i(c,{onClick:L,type:s.BACK,width:9,height:16}),i("span",n({style:{marginLeft:"10px"}},{children:o("TUIConversation.Conversation Information")}))]})),e("div",n({className:"tui-manage-container"},{children:[e("div",n({className:"tui-manage-info"},{children:[i("div",n({className:"info-avatar"},{children:i(m,{size:64,image:(null==D?void 0:D.avatar)||((null==D?void 0:D.groupID)?d:v)})})),i("div",n({className:"info-name"},{children:(null==D?void 0:D.nick)||(null==D?void 0:D.name)})),e("div",n({className:"info-id"},{children:["ID:",(null==D?void 0:D.userID)||(null==D?void 0:D.groupID)]}))]})),e("div",n({className:"tui-manage-handle"},{children:[e("div",n({className:"manage-handle-box"},{children:[i("div",n({className:"manage-handle-title"},{children:o("TUIConversation.Pin")})),i(u,{onChange:function(n){!function(n){if(U(n.target.checked),null==C?void 0:C.conversationID){var e=r.getConversationModel(null==C?void 0:C.conversationID);e&&e.pinConversation()}}(n)},checked:A})]})),g&&i("div",n({className:"manage-handle-box",role:"presentation",onClick:function(){if(null==C?void 0:C.conversationID){var n=r.getConversationModel(null==C?void 0:C.conversationID);n&&n.deleteConversation()}b(void 0)}},{children:i("div",n({className:"manage-handle-title red"},{children:o("TUIConversation.Delete")}))}))]}))]}))]}))}var C=o.memo(I);export{C as ChatSetting};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as t}from"tslib";import{jsx as i,jsxs as o,Fragment as c}from"react/jsx-runtime";import
|
|
1
|
+
import{__assign as t}from"tslib";import{jsx as i,jsxs as o,Fragment as c}from"react/jsx-runtime";import n,{useState as e,useMemo as r}from"react";import{useUIKit as s}from"@tencentcloud/uikit-base-component-react";import{TUIContactContextProvider as a}from"../../context/ContactContext.js";import{isH5 as m}from"../../utils/env.js";import{useUIManagerStore as d}from"../../store/UIManagerStore.js";import l from"./hooks/useTUIContact.js";import{ContactList as h}from"./ContactList/ContactList.js";import{ContactSearch as f}from"../ContactSearch/ContactSearch.js";import{Icon as p}from"../Icon/Icon.js";import{IconTypes as u}from"../Icon/type.js";function C(n){var C=n.children,L=s().t,v=d().setActiveContact,j=e(!1),k=j[0],I=j[1],S=l(),b=S.friendList,w=S.blockList,A=S.blocklistProfile,N=S.friendApplicationList,x=S.isShowContactList,g=S.setShowContactList,y=r((function(){return{friendList:b,blockList:w,blocklistProfile:A,friendApplicationList:N,isShowContactList:x,setShowContactList:g}}),[b,A,N,x,g]);return i(a,t({value:y},{children:C||o("div",t({className:"tui-contacts ".concat(m?"tui-contacts-h5":""," ")},{children:[!k&&o(c,{children:[o("div",t({className:"tui-contacts-header"},{children:[i("div",t({className:"tui-contact-input"},{children:i(f,{})})),i(p,{onClick:function(){v(),I(!0)},type:u.ADDFRIEND,width:24,height:24})]})),i(h,{})]}),k&&o(c,{children:[o("div",t({className:"tui-contacts-add-header"},{children:[i(p,{onClick:function(){v(),I(!1)},type:u.BACK,width:9,height:16}),i("div",t({className:"tui-contacts-add-header-title"},{children:L("TUIContact.Add Friend")}))]})),i(f,{})]})]}))}))}var L=n.memo(C);export{L as Contact,C as UnMemoizedContact};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as o}from"tslib";import{jsx as
|
|
1
|
+
import{__assign as o}from"tslib";import{jsx as i,Fragment as t,jsxs as r}from"react/jsx-runtime";import n from"react";import{useUIManagerStore as l}from"../../../store/UIManagerStore.js";import{isH5 as a}from"../../../utils/env.js";import{FriendInfo as d}from"./friendInfo.js";import{BlockInfo as e}from"./blockInfo.js";import{AddFriendInfo as p}from"./addFriendInfo.js";import{GroupInfo as f}from"./groupInfo.js";import{FriendApplicationInfo as m}from"./friendApplication.js";function u(n){var u=n.showChats,c=l().contactData;return(null==c?void 0:c.type)?r("div",o({className:"tui-contact-info ".concat(a?"tui-contact-info-h5":""," ")},{children:["addFriend"===(null==c?void 0:c.type)&&i(p,{profile:null==c?void 0:c.data}),"friend"===(null==c?void 0:c.type)&&i(d,{showChats:u,friend:null==c?void 0:c.data}),"block"===(null==c?void 0:c.type)&&i(e,{profile:null==c?void 0:c.data}),"group"===(null==c?void 0:c.type)&&i(f,{showChats:u,group:null==c?void 0:c.data}),"friendApplication"===(null==c?void 0:c.type)&&i(m,{application:null==c?void 0:c.data})]})):i(t,{children:" "})}var c=n.memo(u);export{c as ContactInfo,u as UnMemoizedContactInfo};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as t,__awaiter as e,__generator as n}from"tslib";import{jsxs as i,Fragment as o,jsx as c}from"react/jsx-runtime";import r,{useState as a}from"react";import{
|
|
1
|
+
import{__assign as t,__awaiter as e,__generator as n}from"tslib";import{jsxs as i,Fragment as o,jsx as c}from"react/jsx-runtime";import r,{useState as a}from"react";import{useUIKit as m}from"@tencentcloud/uikit-base-component-react";import l from"./hooks/useContactInfo.js";import{BasicInfo as s}from"./basicInfo.js";import{DivWithEdit as d}from"../../DivWithEdit/DivWithEdit.js";function f(r){var f=this,u=r.profile,h=u.userID,v=m().t,p=a(""),N=p[0],b=p[1],I=a(""),k=I[0],x=I[1],g=a(""),C=g[0],j=g[1],w=a(!1),D=w[0],E=w[1],T=l().addFriend;return i(o,{children:[c(s,{profile:u}),D?c("div",t({className:"tui-contact-info-content"},{children:i("div",t({className:"content-item"},{children:[c("p",t({className:"content-item-label"},{children:v("TUIContact.verification info")})),c("p",t({className:"content-item-text"},{children:C}))]}))})):i("div",t({className:"tui-contact-info-content"},{children:[i("div",t({className:"content-item-wording"},{children:[c("p",t({className:"content-item-label"},{children:v("TUIContact.Enter the verification info")})),c("textarea",{className:"content-item-wording-text",value:C,onChange:function(t){!function(t){j(t.target.value)}(t)}})]})),i("div",t({className:"content-item"},{children:[c("p",t({className:"content-item-label"},{children:v("TUIContact.remark")})),c(d,{name:"remark",className:"content-item-text",value:k,type:"text",toggle:function(){b("remark")},isEdit:"remark"===N,confirm:function(t){x(null==t?void 0:t.value),b("")},close:function(){b("")}})]})),c("div",t({className:"content-btn-container"},{children:c("div",t({className:"content-item-btn confirm-btn",role:"button",tabIndex:0,onClick:function(){return e(f,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,T({userID:h,remark:k,wording:C})];case 1:return t.sent(),E(!0),[2]}}))}))}},{children:v("TUIContact.Send application")}))}))]}))]})}var u=r.memo(f);export{u as AddFriendInfo,f as UnMemoizedAddFriendInfo};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as
|
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as t,jsx as r}from"react/jsx-runtime";import a from"react";import{useUIKit as i}from"@tencentcloud/uikit-base-component-react";import{TUIConversationService as o}from"@tencentcloud/chat-uikit-engine";import{useUIManagerStore as n}from"../../../store/UIManagerStore.js";import{Icon as c}from"../../Icon/Icon.js";import{IconTypes as m}from"../../Icon/type.js";import{isH5 as s}from"../../../utils/env.js";import{Avatar as d}from"../../Avatar/Avatar.js";import{defaultUserAvatar as l}from"../../Avatar/default.js";function f(a){var f=a.profile,h=i().t,p=f.userID,v=f.nick,u=f.selfSignature,j=f.avatar,I=n().setActiveContact;return t("div",e({className:"tui-contact-info-header"},{children:[s&&r(c,{width:9,height:16,type:m.BACK,onClick:function(){o.switchConversation(""),I()}}),t("div",e({className:"header-container"},{children:[t("div",e({className:"header-container-avatar"},{children:[r(d,{size:60,image:j||l}),r("div",e({className:"header-container-name"},{children:v||p}))]})),r("div",e({className:"header-container-text"},{children:"ID:".concat(p)})),t("div",e({className:"header-container-text"},{children:[h("TUIContact.Signature"),":",u||""]}))]}))]}))}var h=a.memo(f);export{h as BasicInfo,f as UnMemoizedBasicInfo};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as t,__awaiter as
|
|
1
|
+
import{__assign as t,__awaiter as o,__generator as e}from"tslib";import{jsxs as r,Fragment as n,jsx as c}from"react/jsx-runtime";import i,{useState as a,useEffect as m}from"react";import{useUIKit as s}from"@tencentcloud/uikit-base-component-react";import{BasicInfo as l}from"./basicInfo.js";import{Switch as f}from"../../Switch/Switch.js";import{useUIManagerStore as u}from"../../../store/UIManagerStore.js";import p from"./hooks/useContactInfo.js";function h(i){var h=this,d=i.profile,v=u(),b=v.contactData,j=v.setActiveContact,k=s().t,I=a(!1),C=I[0],N=I[1],w=p().removeFromBlocklist;m((function(){N(!0)}),[b]);return r(n,{children:[c(l,{profile:d}),c("div",t({className:"tui-contact-info-content"},{children:r("div",t({className:"content-item"},{children:[c("p",t({className:"content-item-label"},{children:k("TUIContact.block")})),c(f,{className:"content-item-text",onChange:function(){return o(h,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,w(d.userID)];case 1:return t.sent(),N(!1),j(),[2]}}))}))},checked:C})]}))}))]})}var d=i.memo(h);export{d as BlockInfo,h as UnMemoizedBlockInfo};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as t}from"tslib";import{jsxs as e,Fragment as n,jsx as
|
|
1
|
+
import{__assign as t}from"tslib";import{jsxs as e,Fragment as n,jsx as a}from"react/jsx-runtime";import i from"react";import c from"@tencentcloud/chat";import{useUIKit as o}from"@tencentcloud/uikit-base-component-react";import{useUIManagerStore as r}from"../../../store/UIManagerStore.js";import{Avatar as m}from"../../Avatar/Avatar.js";import{defaultUserAvatar as l}from"../../Avatar/default.js";import s from"./hooks/useContactInfo.js";function d(i){var d=r().setActiveContact,f=o().t,h=i.application,p=h.userID,v=h.nick,u=h.avatar,N=h.type,b=h.wording,I=s(),A=I.acceptFriendApplication,C=I.refuseFriendApplication;return e(n,{children:[a("div",t({className:"tui-contact-info-header"},{children:e("div",t({className:"header-container"},{children:[e("div",t({className:"header-container-avatar"},{children:[a(m,{size:60,image:u||l}),a("div",t({className:"header-container-name"},{children:v||p}))]})),a("div",t({className:"header-container-text"},{children:"ID:".concat(p)}))]}))})),a("div",t({className:"tui-contact-info-content"},{children:e("div",t({className:"content-item"},{children:[a("p",t({className:"content-item-label"},{children:f("TUIContact.verification info")})),a("p",t({className:"content-item-text"},{children:b}))]}))})),N===c.TYPES.SNS_APPLICATION_SENT_TO_ME&&a("div",t({className:"tui-contact-info-content"},{children:e("div",t({className:"content-btn-container"},{children:[a("div",t({className:"content-item-btn delete-btn",role:"button",tabIndex:0,onClick:function(){d(),C(p)}},{children:f("TUIContact.Refuse")})),a("div",t({className:"content-item-btn confirm-btn",role:"button",tabIndex:0,onClick:function(){d(),A(p)}},{children:f("TUIContact.Agree")}))]}))}))]})}var f=i.memo(d);export{f as FriendApplicationInfo,d as UnMemoizedFriendApplication};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as t,__awaiter as e,__generator as n}from"tslib";import{jsxs as
|
|
1
|
+
import{__assign as t,__awaiter as e,__generator as n}from"tslib";import{jsxs as i,Fragment as o,jsx as c}from"react/jsx-runtime";import r,{useState as a,useEffect as s}from"react";import{useUIKit as l}from"@tencentcloud/uikit-base-component-react";import{TUIConversationService as m}from"@tencentcloud/chat-uikit-engine";import{useUIManagerStore as d}from"../../../store/UIManagerStore.js";import{BasicInfo as u}from"./basicInfo.js";import{Switch as f}from"../../Switch/Switch.js";import h from"./hooks/useContactInfo.js";import{DivWithEdit as v}from"../../DivWithEdit/DivWithEdit.js";function p(r){var p=this,b=d().chat,C=d(),k=C.contactData,I=C.setActiveContact,N=C.setActiveConversation,g=l().t,x=r.friend,j=r.showChats,w=x.userID,D=x.profile,T=x.remark,U=a(""),S=U[0],E=U[1],A=a(""),F=A[0],M=A[1],W=a(!1),y=W[0],B=W[1],q=h(),z=q.addToBlocklist,G=q.deleteFriend;s((function(){B(!1),M(T)}),[k,T]);return i(o,{children:[c(u,{profile:D}),i("div",t({className:"tui-contact-info-content"},{children:[i("div",t({className:"content-item"},{children:[c("p",t({className:"content-item-label"},{children:g("TUIContact.remark")})),c(v,{name:"remark",className:"content-item-text",value:F,type:"text",toggle:function(){E("remark")},isEdit:"remark"===S,confirm:function(t){b.updateFriend({userID:w,remark:null==t?void 0:t.value}),M(null==t?void 0:t.value),E("")},close:function(){E("")}})]})),i("div",t({className:"content-item"},{children:[c("p",t({className:"content-item-label"},{children:g("TUIContact.block")})),c(f,{className:"content-item-text",onChange:function(){return e(p,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,z(w)];case 1:return t.sent(),B(!0),I(),[2]}}))}))},checked:y})]})),i("div",t({className:"content-btn-container"},{children:[c("div",t({className:"content-item-btn delete-btn",role:"button",tabIndex:0,onClick:function(){return e(p,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,G(w)];case 1:return t.sent(),I(),[2]}}))}))}},{children:g("TUIContact.Delete friend")})),c("div",t({className:"content-item-btn confirm-btn",role:"button",tabIndex:0,onClick:function(){var t="C2C".concat(w);j&&j(),m.switchConversation(t).then((function(t){N(t.getConversation())}))}},{children:g("TUIContact.Send Message")}))]}))]}))]})}var b=r.memo(p);export{b as FriendInfo,p as UnMemoizedFriendInfo};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as t}from"tslib";import{jsxs as e,Fragment as n,jsx as o}from"react/jsx-runtime";import r from"react";import{
|
|
1
|
+
import{__assign as t}from"tslib";import{jsxs as e,Fragment as n,jsx as o}from"react/jsx-runtime";import r from"react";import{useUIKit as a}from"@tencentcloud/uikit-base-component-react";import{TUIConversationService as i}from"@tencentcloud/chat-uikit-engine";import{useUIManagerStore as c}from"../../../store/UIManagerStore.js";import{Icon as s}from"../../Icon/Icon.js";import{IconTypes as m}from"../../Icon/type.js";import{isH5 as d}from"../../../utils/env.js";import{Avatar as l}from"../../Avatar/Avatar.js";import{defaultUserAvatar as h}from"../../Avatar/default.js";function v(r){var v=r.group,f=r.showChats,p=c(),u=p.setActiveContact,C=p.setActiveConversation,g=a().t,I=v.groupID,N=v.name,b=v.avatar;return e(n,{children:[e("div",t({className:"tui-contact-info-header"},{children:[d&&o(s,{width:9,height:16,type:m.BACK,onClick:function(){i.switchConversation(""),u()}}),e("div",t({className:"header-container"},{children:[e("div",t({className:"header-container-avatar"},{children:[o(l,{size:60,image:b||h}),o("div",t({className:"header-container-name"},{children:N||I}))]})),o("div",t({className:"header-container-text"},{children:"groupID:".concat(I)}))]}))]})),o("div",t({className:"tui-contact-info-content"},{children:o("div",t({className:"content-btn-container"},{children:o("div",t({className:"content-item-btn confirm-btn",role:"button",tabIndex:0,onClick:function(){var t="GROUP".concat(I);f&&f(),i.switchConversation(t).then((function(t){C(t.getConversation())}))}},{children:g("TUIContact.Send Message")}))}))}))]})}var f=r.memo(v);export{f as GroupInfo,v as UnMemoizedGroupInfo};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as
|
|
1
|
+
import{__awaiter as e,__generator as r}from"tslib";import{useCallback as i}from"react";import t from"@tencentcloud/chat";import{Toast as n}from"../../../Toast/index.js";import{useUIManagerStore as o}from"../../../../store/UIManagerStore.js";function c(){var c=this,s=o().chat,d=i((function(e){s.removeFromBlacklist({userIDList:[e]})}),[s]),a=i((function(e){s.addFriend({to:null==e?void 0:e.userID,source:"AddSource_Type_Web",remark:null==e?void 0:e.remark,wording:null==e?void 0:e.wording}).catch((function(e){console.warn("delete friend failed:",e),n({text:e,type:"error"})}))}),[s]),u=i((function(e){s.deleteFriend({userIDList:[e]})}),[s]);return{addToBlocklist:i((function(e){s.addToBlacklist({userIDList:[e]})}),[s]),removeFromBlocklist:d,isFriend:function(e){return new Promise((function(r,i){s.checkFriend({userIDList:[null==e?void 0:e.userID],type:t.TYPES.SNS_CHECK_TYPE_BOTH}).then((function(e){var i,n;switch(null===(n=null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.successUserIDList[0])||void 0===n?void 0:n.relation){case t.TYPES.SNS_TYPE_NO_RELATION:case t.TYPES.SNS_TYPE_A_WITH_B:case t.TYPES.SNS_TYPE_B_WITH_A:r(!1);break;case t.TYPES.SNS_TYPE_BOTH_WAY:r(!0);break;default:r(!1)}})).catch((function(e){console.warn("checkFriend error",e),i(e)}))}))},isBlock:function(i){return e(c,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return[4,s.getBlacklist()];case 1:return[2,e.sent().data.includes(i)]}}))}))},addFriend:a,deleteFriend:u,acceptFriendApplication:i((function(e){s.acceptFriendApplication({userID:e,type:t.TYPES.SNS_APPLICATION_AGREE_AND_ADD})}),[s]),refuseFriendApplication:i((function(e){s.refuseFriendApplication({userID:e})}),[s])}}export{c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as t}from"tslib";import{jsxs as i,jsx as n,Fragment as e}from"react/jsx-runtime";import o,{useState as c}from"react";import{
|
|
1
|
+
import{__assign as t}from"tslib";import{jsxs as i,jsx as n,Fragment as e}from"react/jsx-runtime";import o,{useState as c}from"react";import{useUIKit as a}from"@tencentcloud/uikit-base-component-react";import s from"@tencentcloud/chat";import{isH5 as r}from"../../../utils/env.js";import"@tencentcloud/tui-core";import"react-i18next";import"../../../context/MessageContext.js";import{useTUIContactContext as l}from"../../../context/ContactContext.js";import"@tencentcloud/chat-uikit-engine";import{useUIManagerStore as m}from"../../../store/UIManagerStore.js";import d from"../ContactInfo/hooks/useContactInfo.js";import u from"../hooks/useTUIContact.js";import{Avatar as p}from"../../Avatar/Avatar.js";import{defaultUserAvatar as h}from"../../Avatar/default.js";function f(){var o=m().setActiveContact,f=a().t,v=l("TUIContactList"),N=v.isShowContactList,C=v.friendList,I=v.blocklistProfile,S=v.friendApplicationList,x=d().acceptFriendApplication,b=u().groupList,k=c(!1),T=k[0],g=k[1],w=c(!1),A=w[0],j=w[1],L=c(!1),P=L[0],U=L[1],_=c(!1),y=_[0],E=_[1],M=function(c){var a=c.type,s=c.isShow,r=c.setShow,l=c.list,m=c.title;return i(e,{children:[i("div",t({className:"tui-contacts-title",role:"button",tabIndex:0,onClick:function(){return r(!s)}},{children:[n("div",t({className:"tui-contacts-list-title"},{children:m})),n("div",t({className:"tui-contacts-list-icon"},{children:n("i",t({className:"iconfont contacts-list-icon"},s?{children:""}:{children:""}))}))]})),s&&(null==l?void 0:l.map((function(e){var c=e.profile||e,s=c.userID,r=c.groupID,l=c.avatar,m=c.name,d=c.nick,u=e.remark||d||s||m||r;return i("div",t({role:"button",tabIndex:0,className:"tui-contacts-list-item",onClick:function(){o({type:a,data:e})}},{children:[n(p,{size:30,image:l||h}),n("div",t({className:"tui-contacts-list-item-container"},{children:n("p",t({className:"tui-contacts-list-item-name"},{children:u}))}))]}),s||r)})))]})};return N&&i("div",t({className:"tui-contacts-list ".concat(r?"tui-contacts-list-h5":""," ")},{children:[i("div",t({className:"tui-contacts-title",role:"button",tabIndex:0,onClick:function(){return g(!T)}},{children:[n("p",t({className:"tui-contacts-list-title"},{children:f("TUIContact.New Contacts")})),n("div",t({className:"tui-contacts-list-icon"},{children:n("i",t({className:"iconfont contacts-list-icon"},T?{children:""}:{children:""}))}))]})),T&&(null==S?void 0:S.map((function(e,c){var a=e.userID,r=e.avatar,l=e.nick,m=e.wording,d=e.type;return i("div",t({role:"button",tabIndex:0,className:"tui-contacts-list-item",onClick:function(t){t.stopPropagation(),o({type:"friendApplication",data:e})}},{children:[n(p,{size:30,image:r||h}),i("div",t({className:"tui-contacts-list-item-card"},{children:[i("div",{children:[n("p",t({className:"tui-contacts-list-item-name text-ellipsis"},{children:l||a})),""!==m&&n("p",t({className:"tui-contacts-list-item-text text-ellipsis"},{children:m}))]}),d===s.TYPES.SNS_APPLICATION_SENT_BY_ME&&n("p",t({className:"tui-contacts-list-btn-text text-ellipsis"},{children:f("TUIContact.waiting for verification")})),d===s.TYPES.SNS_APPLICATION_SENT_TO_ME&&n("div",t({className:"application-btn",role:"button",tabIndex:0,onClick:function(t){!function(t,i){t.stopPropagation(),x(i),o()}(t,a)}},{children:f("TUIContact.Agree")}))]}))]}),a)}))),n(M,{type:"block",title:f("TUIContact.Blocked List"),isShow:P,setShow:U,list:I}),n(M,{type:"group",title:f("TUIContact.Group List"),setShow:E,isShow:y,list:b}),n(M,{type:"friend",title:f("TUIContact.Friends"),setShow:j,isShow:A,list:C})]}))}var v=o.memo(f);export{v as ContactList};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as n}from"tslib";import{useState as i,useEffect as
|
|
1
|
+
import{__awaiter as t,__generator as n}from"tslib";import{useState as i,useEffect as r}from"react";import o from"@tencentcloud/chat";import{TUIStore as e,StoreName as a}from"@tencentcloud/chat-uikit-engine";import{useUIManagerStore as u}from"../../../store/UIManagerStore.js";function c(){var c=this,s=u().chat,l=i([]),d=l[0],f=l[1],v=i([]),L=v[0],h=v[1],p=i([]),E=p[0],m=p[1],A=i([]),T=A[0],g=A[1],D=i(),I=D[0],P=D[1],b=i(!0),w=b[0],N=b[1];r((function(){e.watch(a.GRP,{groupList:S}),U(),k(),_()}),[s]);var S=function(t){P(t)};r((function(){null==s||s.on(o.EVENT.BLACKLIST_UPDATED,R),null==s||s.on(o.EVENT.FRIEND_LIST_UPDATED,V),null==s||s.on(o.EVENT.FRIEND_APPLICATION_LIST_UPDATED,F)}),[s]);var _=function(){return t(c,void 0,void 0,(function(){var t;return n(this,(function(n){switch(n.label){case 0:return[4,s.getFriendApplicationList()];case 1:return t=n.sent().data,m(null==t?void 0:t.friendApplicationList),[2]}}))}))},U=function(){return t(c,void 0,void 0,(function(){var t,i,r;return n(this,(function(n){switch(n.label){case 0:return[4,null==s?void 0:s.getFriendList()];case 1:return t=n.sent(),i=t.code,r=t.data,0===i&&f(r),[2]}}))}))},k=function(){return t(c,void 0,void 0,(function(){var t;return n(this,(function(n){switch(n.label){case 0:return[4,null==s?void 0:s.getBlacklist()];case 1:return 0===(t=n.sent().data).length||(h(t),C(t)),[2]}}))}))},C=function(i){return t(c,void 0,void 0,(function(){var t;return n(this,(function(n){switch(n.label){case 0:return[4,s.getUserProfile({userIDList:i})];case 1:return t=n.sent().data,g(t),[2]}}))}))},F=function(t){var n;m(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.friendApplicationList)},R=function(t){h(t.data),C(t.data)},V=function(t){f(t.data)};return{friendList:d,groupList:I,blocklistProfile:T,friendApplicationList:E,blockList:L,isShowContactList:w,setShowContactList:N}}export{c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as t,__awaiter as e,__generator as
|
|
1
|
+
import{__assign as t,__awaiter as e,__generator as r}from"tslib";import{jsxs as n,jsx as o}from"react/jsx-runtime";import i,{useState as a}from"react";import{useUIKit as c}from"@tencentcloud/uikit-base-component-react";import"@tencentcloud/tui-core";import"react-i18next";import"../../context/MessageContext.js";import{useTUIContactContext as u}from"../../context/ContactContext.js";import"@tencentcloud/chat-uikit-engine";import{useUIManagerStore as s}from"../../store/UIManagerStore.js";import m from"./hooks/useContactSearch.js";import{Icon as l}from"../Icon/Icon.js";import{IconTypes as d}from"../Icon/type.js";import{Avatar as v}from"../Avatar/Avatar.js";import{defaultUserAvatar as f}from"../Avatar/default.js";import{Input as p}from"../Input/Input.js";function h(){var i=this,h=s().setActiveContact,I=c().t,C=u("TUIContactList"),g=C.friendList,j=C.setShowContactList,x=a(!1),k=x[0],b=x[1],y=m(),N=y.checkFriend,A=y.isBlock,D=y.getUserProfile,U=a(""),w=U[0],S=U[1],F=a([]),L=F[0],T=F[1];return n("div",t({className:"tui-contact-search"},{children:[o(p,{className:"tui-contact-search-input",placeholder:I("TUIContact.Enter a userID"),clearable:!0,value:w,onBlur:function(t){var e;S(null===(e=t.target)||void 0===e?void 0:e.value)},onFocus:function(){h()},onChange:function(t){var e,r;if(""===(null===(e=t.target)||void 0===e?void 0:e.value))return j&&j(!0),b(!1),void T([]);b(!0),S(null===(r=t.target)||void 0===r?void 0:r.value),j&&j(!1)},onKeyDown:function(){return e(i,void 0,void 0,(function(){return r(this,(function(t){return w&&D(w).then((function(t){var e=t.data;T(e)})),[2]}))}))},prefix:o(l,{type:d.SEARCH,height:16,width:16})}),k&&0===L.length?o("div",t({className:"tui-contact-search-item"},{children:I("TUIContact.No Result")})):L.map((function(a,c){var u=a.userID,s=a.avatar,m=a.nick;return n("div",t({className:"tui-contact-search-item",role:"button",tabIndex:0,onClick:function(){var t;t=a,e(i,void 0,void 0,(function(){var e;return r(this,(function(r){switch(r.label){case 0:return[4,N(t)];case 1:return r.sent()?((e=null==g?void 0:g.find((function(t){return t.userID===w})))&&h({type:"friend",data:e}),[2]):A(t.userID)?(h({type:"block",data:t}),[2]):(h({type:"addFriend",data:t}),[2])}}))}))}},{children:[o(v,{size:30,image:s||f}),o("div",t({className:"search-item-name"},{children:m||u}))]}),u)}))]}))}var I=i.memo(h);export{I as ContactSearch,h as UnMemoizedContactSearch};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@tencentcloud/chat";import
|
|
1
|
+
import t from"@tencentcloud/chat";import"tslib";import"react/jsx-runtime";import"react";import"@tencentcloud/tui-core";import"react-i18next";import"../../../context/MessageContext.js";import{useTUIContactContext as e}from"../../../context/ContactContext.js";import"@tencentcloud/chat-uikit-engine";import{useUIManagerStore as r}from"../../../store/UIManagerStore.js";function o(){var o=e("TUIContactList").blockList,n=r().chat;return{checkFriend:function(e){return n.checkFriend({userIDList:[null==e?void 0:e.userID],type:t.TYPES.SNS_CHECK_TYPE_BOTH}).then((function(e){var r,o;return(null===(o=null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.successUserIDList[0])||void 0===o?void 0:o.relation)===t.TYPES.SNS_TYPE_BOTH_WAY}))},isBlock:function(t){return null==o?void 0:o.includes(t)},getUserProfile:function(t){return n.getUserProfile({userIDList:[t]})}}}export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as n}from"tslib";import{jsx as o}from"react/jsx-runtime";import e,{useRef as i,useEffect as t}from"react";import{
|
|
1
|
+
import{__assign as n}from"tslib";import{jsx as o}from"react/jsx-runtime";import e,{useRef as i,useEffect as t}from"react";import{useUIKit as r}from"@tencentcloud/uikit-base-component-react";import a from"classnames";import{Plugins as s}from"../Plugins/index.js";import{Icon as c}from"../Icon/Icon.js";import{IconTypes as l}from"../Icon/type.js";var u=function(u){var m=u.conversation,v=u.PopupIcon,p=u.enablePin,C=void 0===p||p,d=u.enableMute,f=void 0===d||d,b=u.enableDelete,k=void 0===b||b,I=u.onConversationPin,M=u.onConversationMute,P=u.onConversationDelete,_=u.customConversationActions,U=u.PopupElements,h=u.onClick,N=u.className,j=u.style,y=r().t,T=i(null),g=e.useState({}),x=g[0],D=g[1],w={delete:{enable:k,label:y("TUIConversation.Delete"),onClick:P||function(n){n.deleteConversation()}},pin:{enable:C,label:y(m.isPinned?"TUIConversation.Unpin":"TUIConversation.Pin"),onClick:I||function(n){n.pinConversation()}},mute:{enable:f,label:y(m.isMuted?"TUIConversation.Unmute":"TUIConversation.Mute"),onClick:M||function(n){n.muteConversation()}}};t((function(){D(n(n({},w),_))}),[m,_]);var E=function(n,o){var e,i;(null===(e=null==T?void 0:T.current)||void 0===e?void 0:e.closeMore)&&T.current.closeMore(),null==h||h(n,o,m),null===(i=x[o])||void 0===i||i.onClick(m,n)};return o("div",n({className:a({"uikit-conversation-actions":!0,className:N}),style:j,onClick:function(n){n.stopPropagation()}},{children:o(s,{customClass:"uikit-conversation-actions__container",ref:T,plugins:U||Object.keys(x).map((function(e){return!1===x[e].enable?null:o("div",n({className:a("uikit-conversation-actions__item",["uikit-conversation-actions__item--".concat(e)]),onClick:function(n){return E(n,e)}},{children:x[e].label}),e)})),showNumber:0,MoreIcon:v||o(c,{className:"uikit-conversation-actions__popup-icon",width:16,height:16,type:l.MORE})})}))};export{u as ConversationActions};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsxs as t,jsx as o}from"react/jsx-runtime";import{useState as
|
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as t,jsx as o}from"react/jsx-runtime";import{useState as n,useEffect as r,useMemo as i}from"react";import{useUIKit as a}from"@tencentcloud/uikit-base-component-react";import{TUIConversationService as s}from"@tencentcloud/chat-uikit-engine";import c from"classnames";import{Icon as C}from"../Icon/Icon.js";import{IconTypes as l}from"../Icon/type.js";import{ConversationCreateButton as m}from"./ConversationCreateButton.js";import{ConversationCreateUserSelectList as u}from"./ConversationCreateUserSelectList.js";import{ConversationCreateGroupDetail as v}from"./ConversationCreateGroupDetail.js";var E;function f(f){var p=f.visible,d=void 0===p||p,S=f.className,T=f.style,L=f.onChangeCreateModelVisible,h=f.conversationList,R=void 0===h?[]:h,U=f.onBeforeCreateConversation,_=f.onConversationCreated,I=a().t,A=n(!1),k=A[0],P=A[1],b=n(!1),g=b[0],j=b[1],G=n(E.USER_SELECT),N=G[0],y=G[1],B=n([]),D=B[0],w=B[1],x=function(e){P(!1),Y(),s.switchConversation(e.conversationID),null==_||_(e)};r((function(){L(k)}),[L,k]);var O=function(){if(g)switch(N){case E.USER_SELECT:j(!1);break;case E.CREATE_DETAIL:y(E.USER_SELECT),w([]);break;case E.GROUP_TYPE:y(E.CREATE_DETAIL)}else P(!1),Y()};function Y(){j(!1),y(E.USER_SELECT),w([])}return i((function(){return d?t("div",e({className:c("uikit-conversation-create-container",S),style:T},{children:[!k&&o(m,{onClick:function(){return P(!0)}}),k&&t("div",e({className:"tui-conversation-create"},{children:[t("div",e({className:"tui-conversation-create-header"},{children:[o(C,{onClick:O,type:l.BACK,width:9,height:16}),o("div",e({className:"title"},{children:I(g?"TUIConversation.Add Participants":"TUIConversation.Start chat")}))]})),N===E.USER_SELECT?o(u,{isCreateGroup:g,setIsCreateGroup:j,selectList:D,setSelectList:w,conversationList:R,onBeforeCreateConversation:U,onConversationCreated:x,setPageState:y}):o(v,{pageState:N,setPageState:y,profileList:D.map((function(e){return null==e?void 0:e.profile})),onBeforeCreateConversation:U,onConversationCreated:x})]}))]})):null}),[d,S,k,g,N,D,R,U])}!function(e){e.USER_SELECT="Next",e.CREATE_DETAIL="Create",e.GROUP_TYPE="GroupType"}(E||(E={}));export{f as ConversationCreate,E as PageStateTypes};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__spreadArray as e,__assign as
|
|
1
|
+
import{__spreadArray as e,__assign as r,__awaiter as t,__generator as o}from"tslib";import{jsxs as n,Fragment as a,jsx as i}from"react/jsx-runtime";import{useState as c}from"react";import{useUIKit as s}from"@tencentcloud/uikit-base-component-react";import{Input as u}from"../Input/Input.js";import{Icon as p}from"../Icon/Icon.js";import{IconTypes as l}from"../Icon/type.js";import{Toast as m}from"../Toast/index.js";import{Avatar as d}from"../Avatar/Avatar.js";import{defaultUserAvatar as v,defaultGroupAvatarAVChatRoom as f,defaultGroupAvatarMeeting as g,defaultGroupAvatarPublic as h,defaultGroupAvatarWork as C}from"../Avatar/default.js";import{PageStateTypes as I}from"./ConversationCreate.js";import{GroupType as N,ConversationGroupTypeInfo as b,typeInfoList as x}from"./ConversationGroupTypeInfo.js";import{useUIManagerStore as T}from"../../store/UIManagerStore.js";import{createGroupConversation as y}from"../../hooks/useConversation.js";function k(k){var j=this,U=k.profileList,P=k.pageState,G=k.setPageState,D=k.onBeforeCreateConversation,R=k.onConversationCreated,A=s().t,S=T().myProfile,O=e([],U,!0);S&&O.unshift(S);var w=O.map((function(e){return e.nick||e.userID})).toString(),L=c(w.length>=15?"".concat(w.slice(0,12),"..."):w),W=L[0],_=L[1],E=c(""),M=E[0],Y=E[1],q=c(N.Work),z=q[0],B=q[1],H=function(e,r){var t=e.target.value;switch(r){case"name":_(t);break;case"id":Y(t);break;case"type":B(t)}},V=function(){G(I.GROUP_TYPE)};return P!==I.GROUP_TYPE?n(a,{children:[n("div",r({className:"tui-conversation-create-group-detail"},{children:[i("div",r({className:"create-group-box create-group-name"},{children:i(u,{maxLength:15,value:W,onChange:function(e){H(e,"name")},border:"bottom",inputClassName:"input-group-name",clearable:!0,prefix:i("div",r({className:"input-group-title"},{children:A("TUIConversation.Group Name")}))})})),i("div",r({className:"create-group-box create-group-id"},{children:i(u,{border:"bottom",inputClassName:"input-group-text",clearable:!0,value:M,onChange:function(e){H(e,"id")},prefix:i("div",r({className:"input-group-title"},{children:A("TUIConversation.Group ID")}))})})),i("div",r({className:"create-group-box create-group-type",onClick:V},{children:i(u,{readOnly:!0,border:"bottom",inputClassName:"input-group-text",prefix:i("div",r({className:"input-group-title"},{children:A("TUIConversation.Group Type")})),suffix:i(p,{onClick:V,type:l.ARROW_RIGHT,width:7,height:12}),value:A("TUIConversation.".concat(z)),onChange:function(e){H(e,"type")}})})),i("div",r({className:"create-group-illustrate"},{children:A("TUIConversation.".concat(null==x?void 0:x.find((function(e){return e.type===z})).des))})),n("div",r({className:"create-group-portrait"},{children:[i("div",r({className:"create-group-portrait-title"},{children:A("TUIConversation.Participants")})),i("div",r({className:"create-group-portrait-info-container"},{children:U.map((function(e){var t=e.avatar,o=e.userID,a=e.nick;return n("div",r({className:"create-group-portrait-info"},{children:[i(d,{shape:"square",size:50,image:t||v}),i("div",r({className:"create-group-portrait-info-nick"},{children:a}))]}),o)}))}))]}))]})),i("div",r({className:"tui-conversation-create-next-container"},{children:i("div",r({role:"presentation",className:"tui-conversation-create-next",onClick:function(){return t(j,void 0,void 0,(function(){var e,r,t,n;return o(this,(function(o){return e=U.map((function(e){return{userID:e.userID}})),r=function(e){switch(e){case N.Work:return C;case N.Public:return h;case N.Meeting:return g;case N.AVChatRoom:return f;default:return""}}(z),t={name:W,type:z,groupID:M,avatar:r,memberList:e},n=(null==D?void 0:D(t))||t,y(n).then((function(e){null==R||R(e)})).catch((function(e){m({text:e.message,type:"error"})})),[2]}))}))}},{children:A("TUIConversation.Create")}))}))]}):i(b,{groupType:z,setGroupType:B,setPageState:G})}export{k as ConversationCreateGroupDetail};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e,__awaiter as t,__generator as r,__spreadArray as n}from"tslib";import{jsxs as
|
|
1
|
+
import{__assign as e,__awaiter as t,__generator as r,__spreadArray as n}from"tslib";import{jsxs as o,Fragment as i,jsx as c}from"react/jsx-runtime";import{useState as a,useRef as s}from"react";import{useUIKit as u}from"@tencentcloud/uikit-base-component-react";import{Input as l}from"../Input/Input.js";import{Icon as m}from"../Icon/Icon.js";import{IconTypes as p}from"../Icon/type.js";import{ConversationCreateSelectView as f}from"./ConversationCreateSelectView.js";import{Avatar as h}from"../Avatar/Avatar.js";import{defaultUserAvatar as v}from"../Avatar/default.js";import{useConversationCreate as d}from"./hooks/useConversationCreate.js";import{createC2CConversation as C}from"../../hooks/useConversation.js";import{useUIManagerStore as g}from"../../store/UIManagerStore.js";import{PageStateTypes as I}from"./ConversationCreate.js";import{Toast as N}from"../Toast/index.js";function k(k){var x=this,j=k.isCreateGroup,b=k.selectList,y=k.setSelectList,S=k.className,L=k.conversationList,A=k.setIsCreateGroup,D=k.setPageState,T=k.onBeforeCreateConversation,w=k.onConversationCreated,E=u().t,U=a(""),R=U[0],F=U[1];g().chat;var G=a({}),M=G[0],P=G[1],z=d(L,(function(e){P(e)})).getFriendListSortSearchResult,B=s(new Map);return o(i,{children:[c(l,{className:"tui-conversation-create-search-input",placeholder:E("TUIConversation.Search"),clearable:!0,value:R,onChange:function(e){return t(x,void 0,void 0,(function(){var t,n;return r(this,(function(r){switch(r.label){case 0:return t=e.target.value,F(t),n=P,[4,z(t)];case 1:return n.apply(void 0,[r.sent()]),[2]}}))}))},prefix:c(m,{type:p.SEARCH,height:16,width:16})}),j&&c(f,{selectList:b,setSelectList:y}),!j&&o("div",e({role:"presentation",className:"tui-user",onClick:function(){A(!0),B.current.clear(),y([])}},{children:[c(m,{type:p.ADD}),c("div",e({className:"tui-user-name active"},{children:E("TUIConversation.New group chat")}))]})),c("div",e({className:"tui-conversation-create-select-list-container ".concat(S)},{children:c("div",e({className:"tui-conversation-create-select-list"},{children:c("div",e({className:"tui-group-container"},{children:Object.keys(M).map((function(i){return 0!==M[i].length&&o("div",e({className:"tui-group-box"},{children:[c("div",e({className:"title"},{children:i})),M[i].map((function(a,s){var u=a.userID,l=a.nick,m=a.avatar;return o("label",e({role:"presentation",className:"tui-user tui-user-checkbox-label",htmlFor:"userChecked-".concat(i,"-").concat(u),onClick:function(){!function(e){t(x,void 0,void 0,(function(){var t;return r(this,(function(r){return j||(t=e.userID,null==T||T(t),C(t).then((function(e){null==w||w(e)})).catch((function(e){N({text:e.message,type:"error"})}))),[2]}))}))}(a)}},{children:[c(h,{size:30,image:m||v}),c("div",e({className:"tui-user-name text-ellipsis"},{children:l||"".concat(u)})),j&&c("input",{onChange:function(e){!function(e,t,r){void 0===r&&(r=[]);var o=t.userID,i=e.target.checked;r.forEach((function(e){e.checked=i})),i?b.push({profile:t,domList:r}):b.splice(b.findIndex((function(e){return e.profile.userID===o})),1),y(n([],b,!0))}(e,a,B.current.get(u))},type:"checkbox",ref:function(e){!function(e,t){if(t){B.current.has(e)||B.current.set(e,[]);var r=B.current.get(e);0!==r.length&&r.some((function(e){return e.id===t.id}))||r.push(t)}}(u,e)},id:"userChecked-".concat(i,"-").concat(u),className:"tui-user-checkbox"})]}),u)}))]}),i)}))}))}))})),j&&c("div",e({className:"tui-conversation-create-next-container"},{children:c("div",e({role:"presentation",className:"tui-conversation-create-next",onClick:function(){b&&0===b.length?N({text:E("TUIConversation.Participant cannot be empty"),type:"error"}):D(I.CREATE_DETAIL)}},{children:E("TUIConversation.Next")}))}))]})}export{k as ConversationCreateUserSelectList};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsxs as t,jsx as o}from"react/jsx-runtime";import{
|
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as t,jsx as o}from"react/jsx-runtime";import{useUIKit as n}from"@tencentcloud/uikit-base-component-react";import{TUIChatEngine as r}from"@tencentcloud/chat-uikit-engine";import{PageStateTypes as i}from"./ConversationCreate.js";import{Icon as a}from"../Icon/Icon.js";import{IconTypes as s}from"../Icon/type.js";var c;!function(e){e[e.Work=r.TYPES.GRP_WORK]="Work",e[e.Public=r.TYPES.GRP_PUBLIC]="Public",e[e.Meeting=r.TYPES.GRP_MEETING]="Meeting",e[e.AVChatRoom=r.TYPES.GRP_AVCHATROOM]="AVChatRoom",e[e.Community=r.TYPES.GRP_COMMUNITY]="Community"}(c||(c={}));var u=[{type:c.Work,name:"Work",des:"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."},{type:c.Public,name:"Public",des:"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 group. See the documentation for details."},{type:c.Meeting,name:"Meeting",des:"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."},{type:c.AVChatRoom,name:"AVChatRoom",des:"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."},{type:c.Community,name:"Community",des:"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."}];function p(r){var c=r.groupType,p=r.setGroupType,m=r.setPageState,d=n().t;return t("div",e({className:"tui-conversation-group-type-info"},{children:[u.map((function(n){var r=n.type,u=n.name,h=n.des;return t("div",e({role:"presentation",className:"group-type-info-box ".concat(r===c?"group-type-info-box--active":""," "),onClick:function(){!function(e){p(e),m(i.CREATE_DETAIL)}(r)}},{children:[t("div",e({className:"group-type-info-title"},{children:[r===c&&o(a,{className:"box-active-icon",type:s.RIGHT,width:16,height:16}),d("TUIConversation.".concat(u))]})),o("div",e({className:"group-type-info-description"},{children:d("TUIConversation.".concat(h))}))]}),r)})),o("a",e({className:"group-type-info-document",target:"_blank",href:"https://trtc.io/document/33529?platform=web&product=chat&menulabel=uikit#group-types",rel:"bookmark noreferrer"},{children:d("TUIConversation.Details")}))]}))}export{p as ConversationGroupTypeInfo,c as GroupType,u as typeInfoList};
|