@tencentcloud/chat-uikit-react 2.3.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.cjs +49 -0
- package/.stylelintrc.cjs +19 -0
- package/CHANGELOG.md +15 -1
- package/README.md +3 -0
- package/ci/install-nvm-node18.sh +117 -0
- package/dist/ChatSetting-C7QlwAiq.js +28449 -0
- package/dist/assets/fonts/iconfont.ttf +0 -0
- package/dist/assets/fonts/iconfont.woff +0 -0
- package/dist/assets/fonts/iconfont.woff2 +0 -0
- package/dist/components/Chat/Chat.d.ts +11 -0
- package/dist/components/Chat/Chat.js +29 -0
- package/dist/components/Chat/index.d.ts +1 -0
- package/dist/components/Chat/index.js +4 -0
- package/dist/components/ChatHeader/ChatHeader.d.ts +22 -0
- package/dist/components/ChatHeader/ChatHeader.js +50 -0
- package/dist/components/ChatHeader/ChatHeaderActions/ChatHeaderActions.d.ts +11 -0
- package/dist/components/ChatHeader/ChatHeaderActions/ChatHeaderActions.js +78 -0
- package/dist/components/ChatHeader/ChatHeaderActions/index.d.ts +1 -0
- package/dist/components/ChatHeader/ChatHeaderActions/index.js +4 -0
- package/dist/components/ChatHeader/ChatHeaderUI/ChatHeaderUI.d.ts +34 -0
- package/dist/components/ChatHeader/ChatHeaderUI/ChatHeaderUI.js +86 -0
- package/dist/components/ChatHeader/ChatHeaderUI/index.d.ts +2 -0
- package/dist/components/ChatHeader/ChatHeaderUI/index.js +4 -0
- package/dist/components/ChatHeader/index.d.ts +2 -0
- package/dist/components/ChatHeader/index.js +6 -0
- package/dist/components/Checkbox/index.d.ts +14 -0
- package/dist/components/Checkbox/index.js +34 -0
- package/dist/components/Contact/Contact.d.ts +3 -0
- package/dist/components/Contact/Contact.js +81 -0
- package/dist/components/Contact/ContactInfo/ContactInfo.d.ts +8 -0
- package/dist/components/Contact/ContactInfo/ContactInfo.js +27 -0
- package/dist/components/Contact/ContactInfo/addFriendInfo.d.ts +8 -0
- package/dist/components/Contact/ContactInfo/addFriendInfo.js +61 -0
- package/dist/components/Contact/ContactInfo/basicInfo.d.ts +8 -0
- package/dist/components/Contact/ContactInfo/basicInfo.js +48 -0
- package/dist/components/Contact/ContactInfo/blockInfo.d.ts +8 -0
- package/dist/components/Contact/ContactInfo/blockInfo.js +33 -0
- package/dist/components/Contact/ContactInfo/friendApplication.d.ts +8 -0
- package/dist/components/Contact/ContactInfo/friendApplication.js +47 -0
- package/dist/components/Contact/ContactInfo/friendInfo.d.ts +9 -0
- package/dist/components/Contact/ContactInfo/friendInfo.js +83 -0
- package/dist/components/Contact/ContactInfo/groupInfo.d.ts +9 -0
- package/dist/components/Contact/ContactInfo/groupInfo.js +45 -0
- package/dist/components/Contact/ContactInfo/hooks/useContactInfo.d.ts +11 -0
- package/dist/components/Contact/ContactInfo/hooks/useContactInfo.js +84 -0
- package/dist/components/Contact/ContactList/ContactList.d.ts +4 -0
- package/dist/components/Contact/ContactList/ContactList.js +152 -0
- package/dist/components/Contact/hooks/useTUIContact.d.ts +12 -0
- package/dist/components/Contact/hooks/useTUIContact.js +58 -0
- package/dist/components/Contact/index.d.ts +3 -0
- package/dist/components/Contact/index.js +10 -0
- package/dist/components/ContactSearch/ContactSearch.d.ts +3 -0
- package/dist/components/ContactSearch/ContactSearch.js +85 -0
- package/dist/components/ContactSearch/hooks/useContactSearch.d.ts +6 -0
- package/dist/components/ContactSearch/hooks/useContactSearch.js +28 -0
- package/dist/components/DivWithEdit/DivWithEdit.d.ts +14 -0
- package/dist/components/DivWithEdit/DivWithEdit.js +69 -0
- package/dist/components/DivWithEdit/WithSelect.d.ts +7 -0
- package/dist/components/DivWithEdit/WithSelect.js +21 -0
- package/dist/components/DivWithEdit/WithText.d.ts +9 -0
- package/dist/components/DivWithEdit/WithText.js +28 -0
- package/dist/components/DivWithEdit/index.d.ts +1 -0
- package/dist/components/DivWithEdit/index.js +4 -0
- package/dist/components/EmptyStateIndicator/EmptyStateIndicator.d.ts +8 -0
- package/dist/components/EmptyStateIndicator/EmptyStateIndicator.js +12 -0
- package/dist/components/EmptyStateIndicator/index.d.ts +1 -0
- package/dist/components/EmptyStateIndicator/index.js +4 -0
- package/dist/components/Icon/Icon.d.ts +11 -0
- package/dist/components/Icon/Icon.js +39 -0
- package/dist/components/Icon/config.d.ts +9 -0
- package/dist/components/Icon/config.js +198 -0
- package/dist/components/Icon/index.d.ts +2 -0
- package/dist/components/Icon/index.js +7 -0
- package/dist/components/Icon/type.d.ts +50 -0
- package/dist/components/Icon/type.js +4 -0
- package/dist/components/IconFont/Icon.d.ts +21 -0
- package/dist/components/IconFont/Icon.js +47 -0
- package/dist/components/IconFont/index.d.ts +2 -0
- package/dist/components/IconFont/index.js +4 -0
- package/dist/components/Input/Input.d.ts +23 -0
- package/dist/components/Input/Input.js +86 -0
- package/dist/components/Input/index.d.ts +1 -0
- package/dist/components/Input/index.js +4 -0
- package/dist/components/Modal/Modal.d.ts +7 -0
- package/dist/components/Modal/Modal.js +89 -0
- package/dist/components/Modal/index.d.ts +1 -0
- package/dist/components/Modal/index.js +4 -0
- package/dist/components/Model/index.d.ts +7 -0
- package/dist/components/Model/index.js +12 -0
- package/dist/components/Plugins/hooks/index.d.ts +1 -0
- package/dist/components/Plugins/hooks/index.js +4 -0
- package/dist/components/Plugins/hooks/usePluginsElement.d.ts +10 -0
- package/dist/components/Plugins/hooks/usePluginsElement.js +11 -0
- package/dist/components/Plugins/index.d.ts +19 -0
- package/dist/components/Plugins/index.js +73 -0
- package/dist/components/Popup/index.d.ts +11 -0
- package/dist/components/Popup/index.js +56 -0
- package/dist/components/PopupNew/Popup.d.ts +13 -0
- package/dist/components/PopupNew/Popup.js +30 -0
- package/dist/components/PopupNew/index.d.ts +2 -0
- package/dist/components/PopupNew/index.js +4 -0
- package/dist/components/Profile/DatePicker/DatePicker.d.ts +11 -0
- package/dist/components/Profile/DatePicker/DatePicker.js +104 -0
- package/dist/components/Profile/DatePicker/index.d.ts +1 -0
- package/dist/components/Profile/DatePicker/index.js +4 -0
- package/dist/components/Profile/Profile.d.ts +8 -0
- package/dist/components/Profile/Profile.js +36 -0
- package/dist/components/Profile/ProfileDefault.d.ts +9 -0
- package/dist/components/Profile/ProfileDefault.js +246 -0
- package/dist/components/Profile/hooks/index.d.ts +1 -0
- package/dist/components/Profile/hooks/index.js +4 -0
- package/dist/components/Profile/hooks/useMyProfile.d.ts +21 -0
- package/dist/components/Profile/hooks/useMyProfile.js +22 -0
- package/dist/components/Profile/index.d.ts +2 -0
- package/dist/components/Profile/index.js +6 -0
- package/dist/components/Profile/myProfile/MyProfile.d.ts +7 -0
- package/dist/components/Profile/myProfile/MyProfile.js +20 -0
- package/dist/components/Profile/myProfile/index.d.ts +1 -0
- package/dist/components/Profile/myProfile/index.js +4 -0
- package/dist/components/Switch/Switch.d.ts +9 -0
- package/dist/components/Switch/Switch.js +35 -0
- package/dist/components/Switch/index.d.ts +1 -0
- package/dist/components/Switch/index.js +4 -0
- package/dist/components/Switch/utils/newId.d.ts +2 -0
- package/dist/components/Switch/utils/newId.js +5 -0
- package/dist/components/index.d.ts +12 -0
- package/dist/components/index.js +39 -0
- package/dist/constant/avatar.d.ts +5 -0
- package/dist/constant/avatar.js +8 -0
- package/dist/constant/emoji.d.ts +12 -0
- package/dist/constant/emoji.js +137 -0
- package/dist/constant/index.d.ts +2 -0
- package/dist/constant/index.js +13 -0
- package/dist/context/ChatContext.d.ts +11 -0
- package/dist/context/ChatContext.js +26 -0
- package/dist/context/ContactContext.d.ts +15 -0
- package/dist/context/ContactContext.js +15 -0
- package/dist/context/index.d.ts +2 -0
- package/dist/context/index.js +9 -0
- package/dist/external_modules/classnames-HRMVOjAa.js +45 -0
- package/dist/external_modules/mui-CbGEJVT2.js +2473 -0
- package/dist/external_modules/react-vendors-3raCpd-g.js +1238 -0
- package/dist/external_modules/zustand-Dvydplxp.js +24 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.js +5 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +2712 -0
- package/dist/locales/en-US/ChatSetting.d.ts +95 -0
- package/dist/locales/en-US/ChatSetting.js +107 -0
- package/dist/locales/en-US/DateRangePicker.d.ts +30 -0
- package/dist/locales/en-US/DateRangePicker.js +32 -0
- package/dist/locales/en-US/GroupTip.d.ts +19 -0
- package/dist/locales/en-US/GroupTip.js +21 -0
- package/dist/locales/en-US/Search.d.ts +48 -0
- package/dist/locales/en-US/Search.js +50 -0
- package/dist/locales/en-US/TUIChat.d.ts +56 -0
- package/dist/locales/en-US/TUIChat.js +58 -0
- package/dist/locales/en-US/TUIContact.d.ts +27 -0
- package/dist/locales/en-US/TUIContact.js +29 -0
- package/dist/locales/en-US/TUIConversation.d.ts +44 -0
- package/dist/locales/en-US/TUIConversation.js +46 -0
- package/dist/locales/en-US/TUIProfile.d.ts +14 -0
- package/dist/locales/en-US/TUIProfile.js +16 -0
- package/dist/locales/en-US/emoji.d.ts +65 -0
- package/dist/locales/en-US/emoji.js +67 -0
- package/dist/locales/en-US/index.d.ts +391 -0
- package/dist/locales/en-US/index.js +23 -0
- package/dist/locales/index.d.ts +1 -0
- package/dist/locales/index.js +26 -0
- package/dist/locales/ja-JP/ChatSetting.d.ts +96 -0
- package/dist/locales/ja-JP/ChatSetting.js +108 -0
- package/dist/locales/ja-JP/DateRangePicker.d.ts +30 -0
- package/dist/locales/ja-JP/DateRangePicker.js +32 -0
- package/dist/locales/ja-JP/GroupTip.d.ts +19 -0
- package/dist/locales/ja-JP/GroupTip.js +21 -0
- package/dist/locales/ja-JP/Search.d.ts +48 -0
- package/dist/locales/ja-JP/Search.js +50 -0
- package/dist/locales/ja-JP/TUIChat.d.ts +55 -0
- package/dist/locales/ja-JP/TUIChat.js +57 -0
- package/dist/locales/ja-JP/TUIContact.d.ts +28 -0
- package/dist/locales/ja-JP/TUIContact.js +30 -0
- package/dist/locales/ja-JP/TUIConversation.d.ts +43 -0
- package/dist/locales/ja-JP/TUIConversation.js +45 -0
- package/dist/locales/ja-JP/TUIProfile.d.ts +14 -0
- package/dist/locales/ja-JP/TUIProfile.js +16 -0
- package/dist/locales/ja-JP/emoji.d.ts +65 -0
- package/dist/locales/ja-JP/emoji.js +67 -0
- package/dist/locales/ja-JP/index.d.ts +391 -0
- package/dist/locales/ja-JP/index.js +23 -0
- package/dist/locales/ko-KR/ChatSetting.d.ts +96 -0
- package/dist/locales/ko-KR/ChatSetting.js +108 -0
- package/dist/locales/ko-KR/DateRangePicker.d.ts +30 -0
- package/dist/locales/ko-KR/DateRangePicker.js +32 -0
- package/dist/locales/ko-KR/GroupTip.d.ts +19 -0
- package/dist/locales/ko-KR/GroupTip.js +21 -0
- package/dist/locales/ko-KR/Search.d.ts +48 -0
- package/dist/locales/ko-KR/Search.js +50 -0
- package/dist/locales/ko-KR/TUIChat.d.ts +55 -0
- package/dist/locales/ko-KR/TUIChat.js +57 -0
- package/dist/locales/ko-KR/TUIContact.d.ts +28 -0
- package/dist/locales/ko-KR/TUIContact.js +30 -0
- package/dist/locales/ko-KR/TUIConversation.d.ts +43 -0
- package/dist/locales/ko-KR/TUIConversation.js +45 -0
- package/dist/locales/ko-KR/TUIProfile.d.ts +14 -0
- package/dist/locales/ko-KR/TUIProfile.js +16 -0
- package/dist/locales/ko-KR/emoji.d.ts +65 -0
- package/dist/locales/ko-KR/emoji.js +67 -0
- package/dist/locales/ko-KR/index.d.ts +391 -0
- package/dist/locales/ko-KR/index.js +23 -0
- package/dist/locales/zh-CN/ChatSetting.d.ts +95 -0
- package/dist/locales/zh-CN/ChatSetting.js +107 -0
- package/dist/locales/zh-CN/DateRangePicker.d.ts +30 -0
- package/dist/locales/zh-CN/DateRangePicker.js +32 -0
- package/dist/locales/zh-CN/GroupTip.d.ts +19 -0
- package/dist/locales/zh-CN/GroupTip.js +21 -0
- package/dist/locales/zh-CN/Search.d.ts +48 -0
- package/dist/locales/zh-CN/Search.js +50 -0
- package/dist/locales/zh-CN/TUIChat.d.ts +55 -0
- package/dist/locales/zh-CN/TUIChat.js +57 -0
- package/dist/locales/zh-CN/TUIContact.d.ts +28 -0
- package/dist/locales/zh-CN/TUIContact.js +30 -0
- package/dist/locales/zh-CN/TUIConversation.d.ts +43 -0
- package/dist/locales/zh-CN/TUIConversation.js +45 -0
- package/dist/locales/zh-CN/TUIProfile.d.ts +14 -0
- package/dist/locales/zh-CN/TUIProfile.js +16 -0
- package/dist/locales/zh-CN/emoji.d.ts +65 -0
- package/dist/locales/zh-CN/emoji.js +67 -0
- package/dist/locales/zh-CN/index.d.ts +390 -0
- package/dist/locales/zh-CN/index.js +23 -0
- package/dist/locales/zh-TW/ChatSetting.d.ts +96 -0
- package/dist/locales/zh-TW/ChatSetting.js +108 -0
- package/dist/locales/zh-TW/DateRangePicker.d.ts +30 -0
- package/dist/locales/zh-TW/DateRangePicker.js +32 -0
- package/dist/locales/zh-TW/GroupTip.d.ts +19 -0
- package/dist/locales/zh-TW/GroupTip.js +21 -0
- package/dist/locales/zh-TW/Search.d.ts +48 -0
- package/dist/locales/zh-TW/Search.js +50 -0
- package/dist/locales/zh-TW/TUIChat.d.ts +55 -0
- package/dist/locales/zh-TW/TUIChat.js +57 -0
- package/dist/locales/zh-TW/TUIContact.d.ts +28 -0
- package/dist/locales/zh-TW/TUIContact.js +30 -0
- package/dist/locales/zh-TW/TUIConversation.d.ts +43 -0
- package/dist/locales/zh-TW/TUIConversation.js +45 -0
- package/dist/locales/zh-TW/TUIProfile.d.ts +14 -0
- package/dist/locales/zh-TW/TUIProfile.js +16 -0
- package/dist/locales/zh-TW/emoji.d.ts +64 -0
- package/dist/locales/zh-TW/emoji.js +66 -0
- package/dist/locales/zh-TW/index.d.ts +390 -0
- package/dist/locales/zh-TW/index.js +23 -0
- package/dist/server/mainServer.d.ts +8 -0
- package/dist/server/mainServer.js +40 -0
- package/dist/states/ChatHeaderState.d.ts +18 -0
- package/dist/states/ChatHeaderState.js +47 -0
- package/dist/states/UIManagerState.d.ts +89 -0
- package/dist/states/UIManagerState.js +76 -0
- package/dist/states/index.d.ts +2 -0
- package/dist/states/index.js +6 -0
- package/dist/styles/Chat.css +1 -0
- package/dist/styles/ChatHeaderActions.css +1 -0
- package/dist/styles/ChatHeaderUI.css +1 -0
- package/dist/styles/ChatSetting.css +1 -0
- package/dist/styles/ContactInfo.css +1 -0
- package/dist/styles/ContactList.css +1 -0
- package/dist/styles/ContactSearch.css +1 -0
- package/dist/styles/DatePicker.css +1 -0
- package/dist/styles/Icon.css +1 -0
- package/dist/styles/Icon2.css +1 -0
- package/dist/styles/Input.css +1 -0
- package/dist/styles/Modal.css +1 -0
- package/dist/styles/MyProfile.css +1 -0
- package/dist/styles/Profile.css +1 -0
- package/dist/styles/Switch.css +1 -0
- package/dist/styles/WithSelect.css +1 -0
- package/dist/styles/index.css +1 -0
- package/dist/styles/index2.css +1 -0
- package/dist/styles/index3.css +1 -0
- package/dist/styles/index4.css +1 -0
- package/dist/styles/index5.css +1 -0
- package/dist/styles/index6.css +1 -0
- package/dist/types/message.d.ts +39 -0
- package/dist/types/user.d.ts +18 -0
- package/dist/types/user.js +0 -0
- package/package.json +82 -59
- package/src/assets/fonts/iconfont.ttf +0 -0
- package/src/assets/fonts/iconfont.woff +0 -0
- package/src/assets/fonts/iconfont.woff2 +0 -0
- package/src/components/Chat/Chat.mdx +271 -0
- package/src/components/Chat/Chat.module.scss +11 -0
- package/src/components/Chat/Chat.stories.tsx +215 -0
- package/src/components/Chat/Chat.tsx +30 -283
- package/src/components/Chat/Chat.zh-CN.mdx +275 -0
- package/src/components/Chat/index.ts +0 -4
- package/src/components/ChatHeader/ChatHeader.stories.tsx +129 -0
- package/src/components/ChatHeader/ChatHeader.tsx +62 -36
- package/src/components/ChatHeader/ChatHeader.zh-CN.mdx +159 -0
- package/src/components/ChatHeader/ChatHeaderActions/ChatHeaderActions.module.scss +44 -0
- package/src/components/ChatHeader/ChatHeaderActions/ChatHeaderActions.tsx +105 -0
- package/src/components/ChatHeader/ChatHeaderActions/index.ts +1 -0
- package/src/components/ChatHeader/ChatHeaderUI/ChatHeaderUI.module.scss +111 -0
- package/src/components/ChatHeader/ChatHeaderUI/ChatHeaderUI.tsx +127 -0
- package/src/components/ChatHeader/ChatHeaderUI/index.ts +3 -0
- package/src/components/ChatHeader/index.ts +1 -1
- package/src/components/Checkbox/index.tsx +1 -1
- package/src/components/Checkbox/styles/color.scss +1 -1
- package/src/components/Checkbox/styles/index.scss +2 -2
- package/src/components/Contact/Contact.tsx +3 -3
- package/src/components/Contact/ContactInfo/ContactInfo.tsx +9 -8
- package/src/components/Contact/ContactInfo/basicInfo.tsx +7 -7
- package/src/components/Contact/ContactInfo/blockInfo.tsx +4 -4
- package/src/components/Contact/ContactInfo/friendApplication.tsx +8 -6
- package/src/components/Contact/ContactInfo/friendInfo.tsx +10 -15
- package/src/components/Contact/ContactInfo/groupInfo.tsx +9 -12
- package/src/components/Contact/ContactInfo/hooks/useContactInfo.tsx +12 -13
- package/src/components/Contact/ContactInfo/index.scss +1 -1
- package/src/components/Contact/ContactList/ContactList.tsx +46 -48
- package/src/components/Contact/ContactList/index.scss +1 -5
- package/src/components/Contact/hooks/useTUIContact.tsx +6 -7
- package/src/components/Contact/index.scss +1 -1
- package/src/components/ContactSearch/ContactSearch.tsx +11 -10
- package/src/components/ContactSearch/hooks/useContactSearch.tsx +5 -5
- package/src/components/ContactSearch/index.scss +1 -1
- package/src/components/DivWithEdit/DivWithEdit.tsx +43 -37
- package/src/components/DivWithEdit/WithSelect.tsx +9 -4
- package/src/components/DivWithEdit/WithText.tsx +4 -1
- package/src/components/DivWithEdit/styles/index.scss +15 -7
- package/src/components/Icon/Icon.tsx +4 -4
- package/src/components/Icon/styles/index.scss +3 -3
- package/src/components/IconFont/Icon.module.scss +42 -0
- package/src/components/IconFont/Icon.tsx +68 -0
- package/src/components/IconFont/index.ts +3 -0
- package/src/components/Input/Input.tsx +34 -24
- package/src/components/Input/index.scss +64 -0
- package/src/components/Modal/Modal.module.scss +55 -0
- package/src/components/Modal/Modal.tsx +110 -0
- package/src/components/Modal/index.ts +1 -0
- package/src/components/Model/styles/index.scss +2 -2
- package/src/components/Plugins/hooks/usePluginsElement.tsx +6 -5
- package/src/components/Plugins/index.tsx +12 -10
- package/src/components/Plugins/styles/color.scss +2 -2
- package/src/components/Plugins/styles/index.scss +2 -2
- package/src/components/Plugins/styles/layout.scss +2 -1
- package/src/components/Popup/styles/index.scss +2 -2
- package/src/components/PopupNew/Popup.module.scss +0 -0
- package/src/components/PopupNew/Popup.tsx +47 -0
- package/src/components/PopupNew/index.ts +3 -0
- package/src/components/Profile/DatePicker/DatePicker.scss +175 -0
- package/src/components/Profile/DatePicker/DatePicker.tsx +184 -0
- package/src/components/Profile/DatePicker/index.ts +1 -0
- package/src/components/Profile/Profile.tsx +11 -12
- package/src/components/Profile/ProfileDefault.tsx +101 -106
- package/src/components/Profile/myProfile/MyProfile.tsx +10 -9
- package/src/components/Profile/myProfile/styles/index.scss +7 -1
- package/src/components/Profile/styles/color.scss +1 -1
- package/src/components/Profile/styles/index.scss +2 -2
- package/src/components/Profile/styles/layout.scss +11 -13
- package/src/components/Switch/Switch.tsx +8 -7
- package/src/components/index.ts +6 -19
- package/src/constant/emoji.ts +97 -0
- package/src/constant/index.ts +13 -0
- package/src/context/ChatContext.tsx +40 -0
- package/src/context/index.ts +4 -7
- package/src/hooks/index.ts +6 -5
- package/src/index.ts +14 -4
- package/src/locales/en-US/ChatSetting.ts +116 -0
- package/src/locales/en-US/DateRangePicker.ts +32 -0
- package/src/locales/en-US/GroupTip.ts +21 -0
- package/src/locales/en-US/Search.ts +50 -0
- package/src/locales/en-US/TUIChat.ts +30 -1
- package/src/locales/en-US/TUIConversation.ts +8 -0
- package/src/locales/en-US/TUIProfile.ts +1 -1
- package/src/locales/en-US/emoji.ts +1 -1
- package/src/locales/en-US/index.ts +10 -2
- package/src/locales/index.ts +3 -3
- package/src/locales/ja-JP/ChatSetting.ts +117 -0
- package/src/locales/ja-JP/DateRangePicker.ts +32 -0
- package/src/locales/ja-JP/GroupTip.ts +21 -0
- package/src/locales/ja-JP/Search.ts +50 -0
- package/src/locales/ja-JP/TUIChat.ts +30 -1
- package/src/locales/ja-JP/TUIConversation.ts +8 -0
- package/src/locales/ja-JP/index.ts +10 -2
- package/src/locales/ko-KR/ChatSetting.ts +117 -0
- package/src/locales/ko-KR/DateRangePicker.ts +32 -0
- package/src/locales/ko-KR/GroupTip.ts +21 -0
- package/src/locales/ko-KR/Search.ts +50 -0
- package/src/locales/ko-KR/TUIChat.ts +30 -1
- package/src/locales/ko-KR/TUIConversation.ts +8 -0
- package/src/locales/ko-KR/index.ts +10 -2
- package/src/locales/zh-CN/ChatSetting.ts +116 -0
- package/src/locales/zh-CN/DateRangePicker.ts +32 -0
- package/src/locales/zh-CN/GroupTip.ts +21 -0
- package/src/locales/zh-CN/Search.ts +50 -0
- package/src/locales/zh-CN/TUIChat.ts +30 -1
- package/src/locales/zh-CN/TUIConversation.ts +8 -0
- package/src/locales/zh-CN/index.ts +10 -2
- package/src/locales/zh-TW/ChatSetting.ts +117 -0
- package/src/locales/zh-TW/DateRangePicker.ts +32 -0
- package/src/locales/zh-TW/GroupTip.ts +21 -0
- package/src/locales/zh-TW/Search.ts +50 -0
- package/src/locales/zh-TW/TUIChat.ts +30 -1
- package/src/locales/zh-TW/TUIConversation.ts +8 -0
- package/src/locales/zh-TW/index.ts +10 -2
- package/src/server/mainServer.ts +45 -0
- package/src/states/ChatHeaderState.ts +121 -0
- package/src/states/UIManagerState.ts +201 -0
- package/src/states/index.ts +3 -0
- package/src/states/useChatHeaderStore.mdx +182 -0
- package/src/stories/GettingStarted.mdx +89 -0
- package/src/styles/fonts/icon-font.scss +3 -3
- package/src/styles/index.scss +2 -4
- package/src/styles/mixins/_scrollbar.scss +62 -0
- package/src/styles/mixins/_text.scss +25 -0
- package/src/styles/mixins/index.scss +2 -0
- package/src/styles/normalize.scss +45 -1
- package/src/types/message.ts +51 -0
- package/src/types/user.ts +20 -0
- package/src/vite-env.d.ts +1 -0
- package/tsconfig.app.json +39 -0
- package/tsconfig.json +4 -13
- package/tsconfig.node.json +24 -0
- package/vite.config.playground.ts +48 -0
- package/vite.config.ts +144 -0
- package/.eslintrc.js +0 -251
- package/dist/cjs/assets/fonts/iconfont.ttf +0 -0
- package/dist/cjs/assets/fonts/iconfont.woff +0 -0
- package/dist/cjs/assets/fonts/iconfont.woff2 +0 -0
- package/dist/cjs/components/Avatar/Avatar.d.ts +0 -22
- package/dist/cjs/components/Avatar/Avatar.js +0 -1
- package/dist/cjs/components/Avatar/default.d.ts +0 -7
- package/dist/cjs/components/Avatar/default.js +0 -1
- package/dist/cjs/components/Chat/Chat.d.ts +0 -39
- package/dist/cjs/components/Chat/Chat.js +0 -1
- package/dist/cjs/components/Chat/ChatState.js +0 -1
- package/dist/cjs/components/Chat/hooks/useCreateTUIChatStateContext.js +0 -1
- package/dist/cjs/components/Chat/hooks/useHandleMessage.d.ts +0 -7
- package/dist/cjs/components/Chat/hooks/useHandleMessage.js +0 -1
- package/dist/cjs/components/Chat/hooks/useHandleMessageList.js +0 -1
- package/dist/cjs/components/Chat/index.js +0 -1
- package/dist/cjs/components/Chat/server.js +0 -1
- package/dist/cjs/components/Chat/utils.js +0 -1
- package/dist/cjs/components/ChatHeader/ChatHeader.d.ts +0 -16
- package/dist/cjs/components/ChatHeader/ChatHeader.js +0 -1
- package/dist/cjs/components/ChatHeader/ChatHeaderDefault.d.ts +0 -18
- package/dist/cjs/components/ChatHeader/ChatHeaderDefault.js +0 -1
- package/dist/cjs/components/ChatSetting/ChatSetting.d.ts +0 -6
- package/dist/cjs/components/ChatSetting/ChatSetting.js +0 -1
- package/dist/cjs/components/Checkbox/index.d.ts +0 -17
- package/dist/cjs/components/Checkbox/index.js +0 -1
- package/dist/cjs/components/Contact/Contact.d.ts +0 -6
- package/dist/cjs/components/Contact/Contact.js +0 -1
- package/dist/cjs/components/Contact/ContactInfo/ContactInfo.d.ts +0 -10
- package/dist/cjs/components/Contact/ContactInfo/ContactInfo.js +0 -1
- package/dist/cjs/components/Contact/ContactInfo/addFriendInfo.js +0 -1
- package/dist/cjs/components/Contact/ContactInfo/basicInfo.js +0 -1
- package/dist/cjs/components/Contact/ContactInfo/blockInfo.js +0 -1
- package/dist/cjs/components/Contact/ContactInfo/friendApplication.js +0 -1
- package/dist/cjs/components/Contact/ContactInfo/friendInfo.js +0 -1
- package/dist/cjs/components/Contact/ContactInfo/groupInfo.js +0 -1
- package/dist/cjs/components/Contact/ContactInfo/hooks/useContactInfo.js +0 -1
- package/dist/cjs/components/Contact/ContactList/ContactList.d.ts +0 -6
- package/dist/cjs/components/Contact/ContactList/ContactList.js +0 -1
- package/dist/cjs/components/Contact/hooks/useTUIContact.js +0 -1
- package/dist/cjs/components/ContactSearch/ContactSearch.js +0 -1
- package/dist/cjs/components/ContactSearch/hooks/useContactSearch.js +0 -1
- package/dist/cjs/components/ConversationActions/ConversationActions.d.ts +0 -52
- package/dist/cjs/components/ConversationActions/ConversationActions.js +0 -1
- package/dist/cjs/components/ConversationCreate/ConversationCreate.d.ts +0 -21
- package/dist/cjs/components/ConversationCreate/ConversationCreate.js +0 -1
- package/dist/cjs/components/ConversationCreate/ConversationCreateButton.d.ts +0 -13
- package/dist/cjs/components/ConversationCreate/ConversationCreateButton.js +0 -1
- package/dist/cjs/components/ConversationCreate/ConversationCreateGroupDetail.d.ts +0 -16
- package/dist/cjs/components/ConversationCreate/ConversationCreateGroupDetail.js +0 -1
- package/dist/cjs/components/ConversationCreate/ConversationCreateSelectView.d.ts +0 -15
- package/dist/cjs/components/ConversationCreate/ConversationCreateSelectView.js +0 -1
- package/dist/cjs/components/ConversationCreate/ConversationCreateUserSelectList.d.ts +0 -18
- package/dist/cjs/components/ConversationCreate/ConversationCreateUserSelectList.js +0 -1
- package/dist/cjs/components/ConversationCreate/ConversationGroupTypeInfo.d.ts +0 -24
- package/dist/cjs/components/ConversationCreate/ConversationGroupTypeInfo.js +0 -1
- package/dist/cjs/components/ConversationCreate/hooks/useConversationCreate.d.ts +0 -14
- package/dist/cjs/components/ConversationCreate/hooks/useConversationCreate.js +0 -1
- package/dist/cjs/components/ConversationCreate/static/word.js +0 -1
- package/dist/cjs/components/ConversationList/ConversationList.d.ts +0 -57
- package/dist/cjs/components/ConversationList/ConversationList.js +0 -1
- package/dist/cjs/components/ConversationList/ConversationListContent/ConversationListContent.d.ts +0 -23
- package/dist/cjs/components/ConversationList/ConversationListContent/ConversationListContent.js +0 -1
- package/dist/cjs/components/ConversationList/ConversationListHeader/ConversationListHeader.d.ts +0 -15
- package/dist/cjs/components/ConversationList/ConversationListHeader/ConversationListHeader.js +0 -1
- package/dist/cjs/components/ConversationPreview/ConversationPreview.d.ts +0 -45
- package/dist/cjs/components/ConversationPreview/ConversationPreview.js +0 -1
- package/dist/cjs/components/ConversationPreview/utils.js +0 -1
- package/dist/cjs/components/ConversationSearch/ConversationSearch.d.ts +0 -39
- package/dist/cjs/components/ConversationSearch/ConversationSearch.js +0 -1
- package/dist/cjs/components/ConversationSearch/ConversationSearchInput/ConversationSearchInput.d.ts +0 -7
- package/dist/cjs/components/ConversationSearch/ConversationSearchInput/ConversationSearchInput.js +0 -1
- package/dist/cjs/components/ConversationSearch/ConversationSearchResult/ConversationSearchResult.d.ts +0 -29
- package/dist/cjs/components/ConversationSearch/ConversationSearchResult/ConversationSearchResult.js +0 -1
- package/dist/cjs/components/DivWithEdit/DivWithEdit.d.ts +0 -17
- package/dist/cjs/components/DivWithEdit/DivWithEdit.js +0 -1
- package/dist/cjs/components/DivWithEdit/WithSelect.js +0 -1
- package/dist/cjs/components/DivWithEdit/WithText.js +0 -1
- package/dist/cjs/components/EmptyStateIndicator/EmptyStateIndicator.d.ts +0 -11
- package/dist/cjs/components/EmptyStateIndicator/EmptyStateIndicator.js +0 -1
- package/dist/cjs/components/Icon/Icon.d.ts +0 -15
- package/dist/cjs/components/Icon/Icon.js +0 -1
- package/dist/cjs/components/Icon/config.js +0 -1
- package/dist/cjs/components/Icon/images/add-friend.svg.js +0 -1
- package/dist/cjs/components/Icon/images/add.png.js +0 -1
- package/dist/cjs/components/Icon/images/arrow-down.png.js +0 -1
- package/dist/cjs/components/Icon/images/arrow-right.png.js +0 -1
- package/dist/cjs/components/Icon/images/back.png.js +0 -1
- package/dist/cjs/components/Icon/images/camera.png.js +0 -1
- package/dist/cjs/components/Icon/images/cancel.png.js +0 -1
- package/dist/cjs/components/Icon/images/clear.png.js +0 -1
- package/dist/cjs/components/Icon/images/close.png.js +0 -1
- package/dist/cjs/components/Icon/images/confirm.png.js +0 -1
- package/dist/cjs/components/Icon/images/copy.png.js +0 -1
- package/dist/cjs/components/Icon/images/cry.png.js +0 -1
- package/dist/cjs/components/Icon/images/del.png.js +0 -1
- package/dist/cjs/components/Icon/images/edit.png.js +0 -1
- package/dist/cjs/components/Icon/images/effort.png.js +0 -1
- package/dist/cjs/components/Icon/images/ellipse.png.js +0 -1
- package/dist/cjs/components/Icon/images/emoji.png.js +0 -1
- package/dist/cjs/components/Icon/images/file.png.js +0 -1
- package/dist/cjs/components/Icon/images/files.png.js +0 -1
- package/dist/cjs/components/Icon/images/forward.png.js +0 -1
- package/dist/cjs/components/Icon/images/image.png.js +0 -1
- package/dist/cjs/components/Icon/images/like.png.js +0 -1
- package/dist/cjs/components/Icon/images/liked.png.js +0 -1
- package/dist/cjs/components/Icon/images/living.png.js +0 -1
- package/dist/cjs/components/Icon/images/member.png.js +0 -1
- package/dist/cjs/components/Icon/images/more.png.js +0 -1
- package/dist/cjs/components/Icon/images/mute.svg.js +0 -1
- package/dist/cjs/components/Icon/images/owner.png.js +0 -1
- package/dist/cjs/components/Icon/images/progress.png.js +0 -1
- package/dist/cjs/components/Icon/images/quote.png.js +0 -1
- package/dist/cjs/components/Icon/images/reply.png.js +0 -1
- package/dist/cjs/components/Icon/images/revocation.png.js +0 -1
- package/dist/cjs/components/Icon/images/right.png.js +0 -1
- package/dist/cjs/components/Icon/images/search.png.js +0 -1
- package/dist/cjs/components/Icon/images/send.png.js +0 -1
- package/dist/cjs/components/Icon/images/star.png.js +0 -1
- package/dist/cjs/components/Icon/images/union.png.js +0 -1
- package/dist/cjs/components/Icon/images/unlike.png.js +0 -1
- package/dist/cjs/components/Icon/images/unliked.png.js +0 -1
- package/dist/cjs/components/Icon/images/ununion.png.js +0 -1
- package/dist/cjs/components/Icon/images/unvector.png.js +0 -1
- package/dist/cjs/components/Icon/images/vector.png.js +0 -1
- package/dist/cjs/components/Icon/images/video-call.svg.js +0 -1
- package/dist/cjs/components/Icon/images/video.png.js +0 -1
- package/dist/cjs/components/Icon/images/voice-call.svg.js +0 -1
- package/dist/cjs/components/Icon/images/voice.png.js +0 -1
- package/dist/cjs/components/Icon/type.d.ts +0 -52
- package/dist/cjs/components/Icon/type.js +0 -1
- package/dist/cjs/components/InfiniteScrollPaginator/InfiniteScroll.d.ts +0 -20
- package/dist/cjs/components/InfiniteScrollPaginator/InfiniteScroll.js +0 -1
- package/dist/cjs/components/Input/Input.d.ts +0 -26
- package/dist/cjs/components/Input/Input.js +0 -1
- package/dist/cjs/components/MessageElement/Message.d.ts +0 -61
- package/dist/cjs/components/MessageElement/Message.js +0 -1
- package/dist/cjs/components/MessageElement/MessageAudio.js +0 -1
- package/dist/cjs/components/MessageElement/MessageAvatar.js +0 -1
- package/dist/cjs/components/MessageElement/MessageBubble.js +0 -1
- package/dist/cjs/components/MessageElement/MessageContext.d.ts +0 -9
- package/dist/cjs/components/MessageElement/MessageContext.js +0 -1
- package/dist/cjs/components/MessageElement/MessageCustom.js +0 -1
- package/dist/cjs/components/MessageElement/MessageDefault.js +0 -1
- package/dist/cjs/components/MessageElement/MessageFace.js +0 -1
- package/dist/cjs/components/MessageElement/MessageFile.js +0 -1
- package/dist/cjs/components/MessageElement/MessageImage.js +0 -1
- package/dist/cjs/components/MessageElement/MessageLocation.js +0 -1
- package/dist/cjs/components/MessageElement/MessageMerger.js +0 -1
- package/dist/cjs/components/MessageElement/MessageName.js +0 -1
- package/dist/cjs/components/MessageElement/MessagePlugins.d.ts +0 -24
- package/dist/cjs/components/MessageElement/MessagePlugins.js +0 -1
- package/dist/cjs/components/MessageElement/MessageProgress.js +0 -1
- package/dist/cjs/components/MessageElement/MessageRevoke.js +0 -1
- package/dist/cjs/components/MessageElement/MessageStatus.js +0 -1
- package/dist/cjs/components/MessageElement/MessageSystem.js +0 -1
- package/dist/cjs/components/MessageElement/MessageText.js +0 -1
- package/dist/cjs/components/MessageElement/MessageTip.js +0 -1
- package/dist/cjs/components/MessageElement/MessageVideo.js +0 -1
- package/dist/cjs/components/MessageElement/hooks/useMessageContextHandler.js +0 -1
- package/dist/cjs/components/MessageElement/hooks/useMessageHandler.js +0 -1
- package/dist/cjs/components/MessageElement/hooks/useMessagePluginElement.js +0 -1
- package/dist/cjs/components/MessageElement/hooks/useMessageReply.js +0 -1
- package/dist/cjs/components/MessageElement/utils/decodeText.js +0 -1
- package/dist/cjs/components/MessageElement/utils/emojiMap.js +0 -1
- package/dist/cjs/components/MessageElement/utils/index.js +0 -1
- package/dist/cjs/components/MessageInput/EmojiPicker.js +0 -1
- package/dist/cjs/components/MessageInput/Forward.js +0 -1
- package/dist/cjs/components/MessageInput/InputPluginsDefalut.d.ts +0 -5
- package/dist/cjs/components/MessageInput/InputPluginsDefalut.js +0 -1
- package/dist/cjs/components/MessageInput/InputQuoteDefalut.js +0 -1
- package/dist/cjs/components/MessageInput/MessageInput.d.ts +0 -29
- package/dist/cjs/components/MessageInput/MessageInput.js +0 -1
- package/dist/cjs/components/MessageInput/MessageInputDefault.d.ts +0 -5
- package/dist/cjs/components/MessageInput/MessageInputDefault.js +0 -1
- package/dist/cjs/components/MessageInput/Transmitter.js +0 -1
- package/dist/cjs/components/MessageInput/hooks/useCreateMessageInputContext.js +0 -1
- package/dist/cjs/components/MessageInput/hooks/useEmojiPicker.d.ts +0 -6
- package/dist/cjs/components/MessageInput/hooks/useEmojiPicker.js +0 -1
- package/dist/cjs/components/MessageInput/hooks/useHandleForwardMessage.js +0 -1
- package/dist/cjs/components/MessageInput/hooks/useHandleQuoteMessage.js +0 -1
- package/dist/cjs/components/MessageInput/hooks/useMessageInputState.d.ts +0 -6
- package/dist/cjs/components/MessageInput/hooks/useMessageInputState.js +0 -1
- package/dist/cjs/components/MessageInput/hooks/useMessageInputText.js +0 -1
- package/dist/cjs/components/MessageInput/hooks/useUploadElement.js +0 -1
- package/dist/cjs/components/MessageInput/hooks/useUploadPicker.d.ts +0 -5
- package/dist/cjs/components/MessageInput/hooks/useUploadPicker.js +0 -1
- package/dist/cjs/components/MessageList/MessageList.d.ts +0 -13
- package/dist/cjs/components/MessageList/MessageList.js +0 -1
- package/dist/cjs/components/MessageList/hooks/useMessageListElement.js +0 -1
- package/dist/cjs/components/Model/index.d.ts +0 -9
- package/dist/cjs/components/Model/index.js +0 -1
- package/dist/cjs/components/PlaceHolder/index.d.ts +0 -34
- package/dist/cjs/components/PlaceHolder/index.js +0 -1
- package/dist/cjs/components/Plugins/hooks/usePluginsElement.js +0 -1
- package/dist/cjs/components/Plugins/index.d.ts +0 -21
- package/dist/cjs/components/Plugins/index.js +0 -1
- package/dist/cjs/components/Popup/index.d.ts +0 -13
- package/dist/cjs/components/Popup/index.js +0 -1
- package/dist/cjs/components/Profile/Profile.d.ts +0 -10
- package/dist/cjs/components/Profile/Profile.js +0 -1
- package/dist/cjs/components/Profile/ProfileDefault.d.ts +0 -12
- package/dist/cjs/components/Profile/ProfileDefault.js +0 -1
- package/dist/cjs/components/Profile/hooks/useMyProfile.js +0 -1
- package/dist/cjs/components/Profile/myProfile/MyProfile.js +0 -1
- package/dist/cjs/components/Switch/Switch.d.ts +0 -12
- package/dist/cjs/components/Switch/Switch.js +0 -1
- package/dist/cjs/components/Switch/utils/newId.js +0 -1
- package/dist/cjs/components/Toast/index.d.ts +0 -11
- package/dist/cjs/components/Toast/index.js +0 -1
- package/dist/cjs/components/utils.js +0 -1
- package/dist/cjs/constants.d.ts +0 -11
- package/dist/cjs/constants.js +0 -1
- package/dist/cjs/context/ChatActionContext.d.ts +0 -26
- package/dist/cjs/context/ChatActionContext.js +0 -1
- package/dist/cjs/context/ChatStateContext.d.ts +0 -37
- package/dist/cjs/context/ChatStateContext.js +0 -1
- package/dist/cjs/context/ComponentContext.d.ts +0 -29
- package/dist/cjs/context/ComponentContext.js +0 -1
- package/dist/cjs/context/ContactContext.d.ts +0 -18
- package/dist/cjs/context/ContactContext.js +0 -1
- package/dist/cjs/context/ConversationListContext.d.ts +0 -22
- package/dist/cjs/context/ConversationListContext.js +0 -1
- package/dist/cjs/context/LanguageContext.js +0 -1
- package/dist/cjs/context/MessageContext.d.ts +0 -62
- package/dist/cjs/context/MessageContext.js +0 -1
- package/dist/cjs/context/MessageInputContext.d.ts +0 -36
- package/dist/cjs/context/MessageInputContext.js +0 -1
- package/dist/cjs/context/ThemeContext.js +0 -1
- package/dist/cjs/context/UIKitContext.d.ts +0 -25
- package/dist/cjs/context/UIKitContext.js +0 -1
- package/dist/cjs/hooks/index.js +0 -1
- package/dist/cjs/hooks/useConversation.d.ts +0 -6
- package/dist/cjs/hooks/useConversation.js +0 -1
- package/dist/cjs/hooks/useLongPress.d.ts +0 -3
- package/dist/cjs/hooks/useLongPress.js +0 -1
- package/dist/cjs/hooks/useMouseHover.js +0 -1
- package/dist/cjs/hooks/useProfile.d.ts +0 -5
- package/dist/cjs/hooks/useProfile.js +0 -1
- package/dist/cjs/index.css +0 -2
- package/dist/cjs/index.d.css +0 -2887
- package/dist/cjs/index.d.ts +0 -57
- package/dist/cjs/index.js +0 -1
- package/dist/cjs/locales/en-US/TUIChat.js +0 -1
- package/dist/cjs/locales/en-US/TUIContact.js +0 -1
- package/dist/cjs/locales/en-US/TUIConversation.js +0 -1
- package/dist/cjs/locales/en-US/TUIProfile.js +0 -1
- package/dist/cjs/locales/en-US/emoji.js +0 -1
- package/dist/cjs/locales/en-US/index.js +0 -1
- package/dist/cjs/locales/index.js +0 -1
- package/dist/cjs/locales/ja-JP/TUIChat.js +0 -1
- package/dist/cjs/locales/ja-JP/TUIContact.js +0 -1
- package/dist/cjs/locales/ja-JP/TUIConversation.js +0 -1
- package/dist/cjs/locales/ja-JP/TUIProfile.js +0 -1
- package/dist/cjs/locales/ja-JP/emoji.js +0 -1
- package/dist/cjs/locales/ja-JP/index.js +0 -1
- package/dist/cjs/locales/ko-KR/TUIChat.js +0 -1
- package/dist/cjs/locales/ko-KR/TUIContact.js +0 -1
- package/dist/cjs/locales/ko-KR/TUIConversation.js +0 -1
- package/dist/cjs/locales/ko-KR/TUIProfile.js +0 -1
- package/dist/cjs/locales/ko-KR/emoji.js +0 -1
- package/dist/cjs/locales/ko-KR/index.js +0 -1
- package/dist/cjs/locales/zh-CN/TUIChat.js +0 -1
- package/dist/cjs/locales/zh-CN/TUIContact.js +0 -1
- package/dist/cjs/locales/zh-CN/TUIConversation.js +0 -1
- package/dist/cjs/locales/zh-CN/TUIProfile.js +0 -1
- package/dist/cjs/locales/zh-CN/emoji.js +0 -1
- package/dist/cjs/locales/zh-CN/index.js +0 -1
- package/dist/cjs/locales/zh-TW/TUIChat.js +0 -1
- package/dist/cjs/locales/zh-TW/TUIContact.js +0 -1
- package/dist/cjs/locales/zh-TW/TUIConversation.js +0 -1
- package/dist/cjs/locales/zh-TW/TUIProfile.js +0 -1
- package/dist/cjs/locales/zh-TW/emoji.js +0 -1
- package/dist/cjs/locales/zh-TW/index.js +0 -1
- package/dist/cjs/node_modules/zustand/esm/react.mjs.js +0 -1
- package/dist/cjs/node_modules/zustand/esm/vanilla.mjs.js +0 -1
- package/dist/cjs/server.js +0 -1
- package/dist/cjs/store/UIManagerStore.js +0 -1
- package/dist/cjs/utils/env.d.ts +0 -5
- package/dist/cjs/utils/env.js +0 -1
- package/dist/esm/assets/fonts/iconfont.ttf +0 -0
- package/dist/esm/assets/fonts/iconfont.woff +0 -0
- package/dist/esm/assets/fonts/iconfont.woff2 +0 -0
- package/dist/esm/components/Avatar/Avatar.d.ts +0 -22
- package/dist/esm/components/Avatar/Avatar.js +0 -1
- package/dist/esm/components/Avatar/default.d.ts +0 -7
- package/dist/esm/components/Avatar/default.js +0 -1
- package/dist/esm/components/Chat/Chat.d.ts +0 -39
- package/dist/esm/components/Chat/Chat.js +0 -1
- package/dist/esm/components/Chat/ChatState.js +0 -1
- package/dist/esm/components/Chat/hooks/useCreateTUIChatStateContext.js +0 -1
- package/dist/esm/components/Chat/hooks/useHandleMessage.d.ts +0 -7
- package/dist/esm/components/Chat/hooks/useHandleMessage.js +0 -1
- package/dist/esm/components/Chat/hooks/useHandleMessageList.js +0 -1
- package/dist/esm/components/Chat/index.js +0 -1
- package/dist/esm/components/Chat/server.js +0 -1
- package/dist/esm/components/Chat/utils.js +0 -1
- package/dist/esm/components/ChatHeader/ChatHeader.d.ts +0 -16
- package/dist/esm/components/ChatHeader/ChatHeader.js +0 -1
- package/dist/esm/components/ChatHeader/ChatHeaderDefault.d.ts +0 -18
- package/dist/esm/components/ChatHeader/ChatHeaderDefault.js +0 -1
- package/dist/esm/components/ChatSetting/ChatSetting.d.ts +0 -6
- package/dist/esm/components/ChatSetting/ChatSetting.js +0 -1
- package/dist/esm/components/Checkbox/index.d.ts +0 -17
- package/dist/esm/components/Checkbox/index.js +0 -1
- package/dist/esm/components/Contact/Contact.d.ts +0 -6
- package/dist/esm/components/Contact/Contact.js +0 -1
- package/dist/esm/components/Contact/ContactInfo/ContactInfo.d.ts +0 -10
- package/dist/esm/components/Contact/ContactInfo/ContactInfo.js +0 -1
- package/dist/esm/components/Contact/ContactInfo/addFriendInfo.js +0 -1
- package/dist/esm/components/Contact/ContactInfo/basicInfo.js +0 -1
- package/dist/esm/components/Contact/ContactInfo/blockInfo.js +0 -1
- package/dist/esm/components/Contact/ContactInfo/friendApplication.js +0 -1
- package/dist/esm/components/Contact/ContactInfo/friendInfo.js +0 -1
- package/dist/esm/components/Contact/ContactInfo/groupInfo.js +0 -1
- package/dist/esm/components/Contact/ContactInfo/hooks/useContactInfo.js +0 -1
- package/dist/esm/components/Contact/ContactList/ContactList.d.ts +0 -6
- package/dist/esm/components/Contact/ContactList/ContactList.js +0 -1
- package/dist/esm/components/Contact/hooks/useTUIContact.js +0 -1
- package/dist/esm/components/ContactSearch/ContactSearch.js +0 -1
- package/dist/esm/components/ContactSearch/hooks/useContactSearch.js +0 -1
- package/dist/esm/components/ConversationActions/ConversationActions.d.ts +0 -52
- package/dist/esm/components/ConversationActions/ConversationActions.js +0 -1
- package/dist/esm/components/ConversationCreate/ConversationCreate.d.ts +0 -21
- package/dist/esm/components/ConversationCreate/ConversationCreate.js +0 -1
- package/dist/esm/components/ConversationCreate/ConversationCreateButton.d.ts +0 -13
- package/dist/esm/components/ConversationCreate/ConversationCreateButton.js +0 -1
- package/dist/esm/components/ConversationCreate/ConversationCreateGroupDetail.d.ts +0 -16
- package/dist/esm/components/ConversationCreate/ConversationCreateGroupDetail.js +0 -1
- package/dist/esm/components/ConversationCreate/ConversationCreateSelectView.d.ts +0 -15
- package/dist/esm/components/ConversationCreate/ConversationCreateSelectView.js +0 -1
- package/dist/esm/components/ConversationCreate/ConversationCreateUserSelectList.d.ts +0 -18
- package/dist/esm/components/ConversationCreate/ConversationCreateUserSelectList.js +0 -1
- package/dist/esm/components/ConversationCreate/ConversationGroupTypeInfo.d.ts +0 -24
- package/dist/esm/components/ConversationCreate/ConversationGroupTypeInfo.js +0 -1
- package/dist/esm/components/ConversationCreate/hooks/useConversationCreate.d.ts +0 -14
- package/dist/esm/components/ConversationCreate/hooks/useConversationCreate.js +0 -1
- package/dist/esm/components/ConversationCreate/static/word.js +0 -1
- package/dist/esm/components/ConversationList/ConversationList.d.ts +0 -57
- package/dist/esm/components/ConversationList/ConversationList.js +0 -1
- package/dist/esm/components/ConversationList/ConversationListContent/ConversationListContent.d.ts +0 -23
- package/dist/esm/components/ConversationList/ConversationListContent/ConversationListContent.js +0 -1
- package/dist/esm/components/ConversationList/ConversationListHeader/ConversationListHeader.d.ts +0 -15
- package/dist/esm/components/ConversationList/ConversationListHeader/ConversationListHeader.js +0 -1
- package/dist/esm/components/ConversationPreview/ConversationPreview.d.ts +0 -45
- package/dist/esm/components/ConversationPreview/ConversationPreview.js +0 -1
- package/dist/esm/components/ConversationPreview/utils.js +0 -1
- package/dist/esm/components/ConversationSearch/ConversationSearch.d.ts +0 -39
- package/dist/esm/components/ConversationSearch/ConversationSearch.js +0 -1
- package/dist/esm/components/ConversationSearch/ConversationSearchInput/ConversationSearchInput.d.ts +0 -7
- package/dist/esm/components/ConversationSearch/ConversationSearchInput/ConversationSearchInput.js +0 -1
- package/dist/esm/components/ConversationSearch/ConversationSearchResult/ConversationSearchResult.d.ts +0 -29
- package/dist/esm/components/ConversationSearch/ConversationSearchResult/ConversationSearchResult.js +0 -1
- package/dist/esm/components/DivWithEdit/DivWithEdit.d.ts +0 -17
- package/dist/esm/components/DivWithEdit/DivWithEdit.js +0 -1
- package/dist/esm/components/DivWithEdit/WithSelect.js +0 -1
- package/dist/esm/components/DivWithEdit/WithText.js +0 -1
- package/dist/esm/components/EmptyStateIndicator/EmptyStateIndicator.d.ts +0 -11
- package/dist/esm/components/EmptyStateIndicator/EmptyStateIndicator.js +0 -1
- package/dist/esm/components/Icon/Icon.d.ts +0 -15
- package/dist/esm/components/Icon/Icon.js +0 -1
- package/dist/esm/components/Icon/config.js +0 -1
- package/dist/esm/components/Icon/images/add-friend.svg.js +0 -1
- package/dist/esm/components/Icon/images/add.png.js +0 -1
- package/dist/esm/components/Icon/images/arrow-down.png.js +0 -1
- package/dist/esm/components/Icon/images/arrow-right.png.js +0 -1
- package/dist/esm/components/Icon/images/back.png.js +0 -1
- package/dist/esm/components/Icon/images/camera.png.js +0 -1
- package/dist/esm/components/Icon/images/cancel.png.js +0 -1
- package/dist/esm/components/Icon/images/clear.png.js +0 -1
- package/dist/esm/components/Icon/images/close.png.js +0 -1
- package/dist/esm/components/Icon/images/confirm.png.js +0 -1
- package/dist/esm/components/Icon/images/copy.png.js +0 -1
- package/dist/esm/components/Icon/images/cry.png.js +0 -1
- package/dist/esm/components/Icon/images/del.png.js +0 -1
- package/dist/esm/components/Icon/images/edit.png.js +0 -1
- package/dist/esm/components/Icon/images/effort.png.js +0 -1
- package/dist/esm/components/Icon/images/ellipse.png.js +0 -1
- package/dist/esm/components/Icon/images/emoji.png.js +0 -1
- package/dist/esm/components/Icon/images/file.png.js +0 -1
- package/dist/esm/components/Icon/images/files.png.js +0 -1
- package/dist/esm/components/Icon/images/forward.png.js +0 -1
- package/dist/esm/components/Icon/images/image.png.js +0 -1
- package/dist/esm/components/Icon/images/like.png.js +0 -1
- package/dist/esm/components/Icon/images/liked.png.js +0 -1
- package/dist/esm/components/Icon/images/living.png.js +0 -1
- package/dist/esm/components/Icon/images/member.png.js +0 -1
- package/dist/esm/components/Icon/images/more.png.js +0 -1
- package/dist/esm/components/Icon/images/mute.svg.js +0 -1
- package/dist/esm/components/Icon/images/owner.png.js +0 -1
- package/dist/esm/components/Icon/images/progress.png.js +0 -1
- package/dist/esm/components/Icon/images/quote.png.js +0 -1
- package/dist/esm/components/Icon/images/reply.png.js +0 -1
- package/dist/esm/components/Icon/images/revocation.png.js +0 -1
- package/dist/esm/components/Icon/images/right.png.js +0 -1
- package/dist/esm/components/Icon/images/search.png.js +0 -1
- package/dist/esm/components/Icon/images/send.png.js +0 -1
- package/dist/esm/components/Icon/images/star.png.js +0 -1
- package/dist/esm/components/Icon/images/union.png.js +0 -1
- package/dist/esm/components/Icon/images/unlike.png.js +0 -1
- package/dist/esm/components/Icon/images/unliked.png.js +0 -1
- package/dist/esm/components/Icon/images/ununion.png.js +0 -1
- package/dist/esm/components/Icon/images/unvector.png.js +0 -1
- package/dist/esm/components/Icon/images/vector.png.js +0 -1
- package/dist/esm/components/Icon/images/video-call.svg.js +0 -1
- package/dist/esm/components/Icon/images/video.png.js +0 -1
- package/dist/esm/components/Icon/images/voice-call.svg.js +0 -1
- package/dist/esm/components/Icon/images/voice.png.js +0 -1
- package/dist/esm/components/Icon/type.d.ts +0 -52
- package/dist/esm/components/Icon/type.js +0 -1
- package/dist/esm/components/InfiniteScrollPaginator/InfiniteScroll.d.ts +0 -20
- package/dist/esm/components/InfiniteScrollPaginator/InfiniteScroll.js +0 -1
- package/dist/esm/components/Input/Input.d.ts +0 -26
- package/dist/esm/components/Input/Input.js +0 -1
- package/dist/esm/components/MessageElement/Message.d.ts +0 -61
- package/dist/esm/components/MessageElement/Message.js +0 -1
- package/dist/esm/components/MessageElement/MessageAudio.js +0 -1
- package/dist/esm/components/MessageElement/MessageAvatar.js +0 -1
- package/dist/esm/components/MessageElement/MessageBubble.js +0 -1
- package/dist/esm/components/MessageElement/MessageContext.d.ts +0 -9
- package/dist/esm/components/MessageElement/MessageContext.js +0 -1
- package/dist/esm/components/MessageElement/MessageCustom.js +0 -1
- package/dist/esm/components/MessageElement/MessageDefault.js +0 -1
- package/dist/esm/components/MessageElement/MessageFace.js +0 -1
- package/dist/esm/components/MessageElement/MessageFile.js +0 -1
- package/dist/esm/components/MessageElement/MessageImage.js +0 -1
- package/dist/esm/components/MessageElement/MessageLocation.js +0 -1
- package/dist/esm/components/MessageElement/MessageMerger.js +0 -1
- package/dist/esm/components/MessageElement/MessageName.js +0 -1
- package/dist/esm/components/MessageElement/MessagePlugins.d.ts +0 -24
- package/dist/esm/components/MessageElement/MessagePlugins.js +0 -1
- package/dist/esm/components/MessageElement/MessageProgress.js +0 -1
- package/dist/esm/components/MessageElement/MessageRevoke.js +0 -1
- package/dist/esm/components/MessageElement/MessageStatus.js +0 -1
- package/dist/esm/components/MessageElement/MessageSystem.js +0 -1
- package/dist/esm/components/MessageElement/MessageText.js +0 -1
- package/dist/esm/components/MessageElement/MessageTip.js +0 -1
- package/dist/esm/components/MessageElement/MessageVideo.js +0 -1
- package/dist/esm/components/MessageElement/hooks/useMessageContextHandler.js +0 -1
- package/dist/esm/components/MessageElement/hooks/useMessageHandler.js +0 -1
- package/dist/esm/components/MessageElement/hooks/useMessagePluginElement.js +0 -1
- package/dist/esm/components/MessageElement/hooks/useMessageReply.js +0 -1
- package/dist/esm/components/MessageElement/utils/decodeText.js +0 -1
- package/dist/esm/components/MessageElement/utils/emojiMap.js +0 -1
- package/dist/esm/components/MessageElement/utils/index.js +0 -1
- package/dist/esm/components/MessageInput/EmojiPicker.js +0 -1
- package/dist/esm/components/MessageInput/Forward.js +0 -1
- package/dist/esm/components/MessageInput/InputPluginsDefalut.d.ts +0 -5
- package/dist/esm/components/MessageInput/InputPluginsDefalut.js +0 -1
- package/dist/esm/components/MessageInput/InputQuoteDefalut.js +0 -1
- package/dist/esm/components/MessageInput/MessageInput.d.ts +0 -29
- package/dist/esm/components/MessageInput/MessageInput.js +0 -1
- package/dist/esm/components/MessageInput/MessageInputDefault.d.ts +0 -5
- package/dist/esm/components/MessageInput/MessageInputDefault.js +0 -1
- package/dist/esm/components/MessageInput/Transmitter.js +0 -1
- package/dist/esm/components/MessageInput/hooks/useCreateMessageInputContext.js +0 -1
- package/dist/esm/components/MessageInput/hooks/useEmojiPicker.d.ts +0 -6
- package/dist/esm/components/MessageInput/hooks/useEmojiPicker.js +0 -1
- package/dist/esm/components/MessageInput/hooks/useHandleForwardMessage.js +0 -1
- package/dist/esm/components/MessageInput/hooks/useHandleQuoteMessage.js +0 -1
- package/dist/esm/components/MessageInput/hooks/useMessageInputState.d.ts +0 -6
- package/dist/esm/components/MessageInput/hooks/useMessageInputState.js +0 -1
- package/dist/esm/components/MessageInput/hooks/useMessageInputText.js +0 -1
- package/dist/esm/components/MessageInput/hooks/useUploadElement.js +0 -1
- package/dist/esm/components/MessageInput/hooks/useUploadPicker.d.ts +0 -5
- package/dist/esm/components/MessageInput/hooks/useUploadPicker.js +0 -1
- package/dist/esm/components/MessageList/MessageList.d.ts +0 -13
- package/dist/esm/components/MessageList/MessageList.js +0 -1
- package/dist/esm/components/MessageList/hooks/useMessageListElement.js +0 -1
- package/dist/esm/components/Model/index.d.ts +0 -9
- package/dist/esm/components/Model/index.js +0 -1
- package/dist/esm/components/PlaceHolder/index.d.ts +0 -34
- package/dist/esm/components/PlaceHolder/index.js +0 -1
- package/dist/esm/components/Plugins/hooks/usePluginsElement.js +0 -1
- package/dist/esm/components/Plugins/index.d.ts +0 -21
- package/dist/esm/components/Plugins/index.js +0 -1
- package/dist/esm/components/Popup/index.d.ts +0 -13
- package/dist/esm/components/Popup/index.js +0 -1
- package/dist/esm/components/Profile/Profile.d.ts +0 -10
- package/dist/esm/components/Profile/Profile.js +0 -1
- package/dist/esm/components/Profile/ProfileDefault.d.ts +0 -12
- package/dist/esm/components/Profile/ProfileDefault.js +0 -1
- package/dist/esm/components/Profile/hooks/useMyProfile.js +0 -1
- package/dist/esm/components/Profile/myProfile/MyProfile.js +0 -1
- package/dist/esm/components/Switch/Switch.d.ts +0 -12
- package/dist/esm/components/Switch/Switch.js +0 -1
- package/dist/esm/components/Switch/utils/newId.js +0 -1
- package/dist/esm/components/Toast/index.d.ts +0 -11
- package/dist/esm/components/Toast/index.js +0 -1
- package/dist/esm/components/utils.js +0 -1
- package/dist/esm/constants.d.ts +0 -11
- package/dist/esm/constants.js +0 -1
- package/dist/esm/context/ChatActionContext.d.ts +0 -26
- package/dist/esm/context/ChatActionContext.js +0 -1
- package/dist/esm/context/ChatStateContext.d.ts +0 -37
- package/dist/esm/context/ChatStateContext.js +0 -1
- package/dist/esm/context/ComponentContext.d.ts +0 -29
- package/dist/esm/context/ComponentContext.js +0 -1
- package/dist/esm/context/ContactContext.d.ts +0 -18
- package/dist/esm/context/ContactContext.js +0 -1
- package/dist/esm/context/ConversationListContext.d.ts +0 -22
- package/dist/esm/context/ConversationListContext.js +0 -1
- package/dist/esm/context/LanguageContext.js +0 -1
- package/dist/esm/context/MessageContext.d.ts +0 -62
- package/dist/esm/context/MessageContext.js +0 -1
- package/dist/esm/context/MessageInputContext.d.ts +0 -36
- package/dist/esm/context/MessageInputContext.js +0 -1
- package/dist/esm/context/ThemeContext.js +0 -1
- package/dist/esm/context/UIKitContext.d.ts +0 -25
- package/dist/esm/context/UIKitContext.js +0 -1
- package/dist/esm/hooks/index.js +0 -1
- package/dist/esm/hooks/useConversation.d.ts +0 -6
- package/dist/esm/hooks/useConversation.js +0 -1
- package/dist/esm/hooks/useLongPress.d.ts +0 -3
- package/dist/esm/hooks/useLongPress.js +0 -1
- package/dist/esm/hooks/useMouseHover.js +0 -1
- package/dist/esm/hooks/useProfile.d.ts +0 -5
- package/dist/esm/hooks/useProfile.js +0 -1
- package/dist/esm/index.css +0 -2
- package/dist/esm/index.d.css +0 -2887
- package/dist/esm/index.d.ts +0 -57
- package/dist/esm/index.js +0 -1
- package/dist/esm/locales/en-US/TUIChat.js +0 -1
- package/dist/esm/locales/en-US/TUIContact.js +0 -1
- package/dist/esm/locales/en-US/TUIConversation.js +0 -1
- package/dist/esm/locales/en-US/TUIProfile.js +0 -1
- package/dist/esm/locales/en-US/emoji.js +0 -1
- package/dist/esm/locales/en-US/index.js +0 -1
- package/dist/esm/locales/index.js +0 -1
- package/dist/esm/locales/ja-JP/TUIChat.js +0 -1
- package/dist/esm/locales/ja-JP/TUIContact.js +0 -1
- package/dist/esm/locales/ja-JP/TUIConversation.js +0 -1
- package/dist/esm/locales/ja-JP/TUIProfile.js +0 -1
- package/dist/esm/locales/ja-JP/emoji.js +0 -1
- package/dist/esm/locales/ja-JP/index.js +0 -1
- package/dist/esm/locales/ko-KR/TUIChat.js +0 -1
- package/dist/esm/locales/ko-KR/TUIContact.js +0 -1
- package/dist/esm/locales/ko-KR/TUIConversation.js +0 -1
- package/dist/esm/locales/ko-KR/TUIProfile.js +0 -1
- package/dist/esm/locales/ko-KR/emoji.js +0 -1
- package/dist/esm/locales/ko-KR/index.js +0 -1
- package/dist/esm/locales/zh-CN/TUIChat.js +0 -1
- package/dist/esm/locales/zh-CN/TUIContact.js +0 -1
- package/dist/esm/locales/zh-CN/TUIConversation.js +0 -1
- package/dist/esm/locales/zh-CN/TUIProfile.js +0 -1
- package/dist/esm/locales/zh-CN/emoji.js +0 -1
- package/dist/esm/locales/zh-CN/index.js +0 -1
- package/dist/esm/locales/zh-TW/TUIChat.js +0 -1
- package/dist/esm/locales/zh-TW/TUIContact.js +0 -1
- package/dist/esm/locales/zh-TW/TUIConversation.js +0 -1
- package/dist/esm/locales/zh-TW/TUIProfile.js +0 -1
- package/dist/esm/locales/zh-TW/emoji.js +0 -1
- package/dist/esm/locales/zh-TW/index.js +0 -1
- package/dist/esm/node_modules/zustand/esm/react.mjs.js +0 -1
- package/dist/esm/node_modules/zustand/esm/vanilla.mjs.js +0 -1
- package/dist/esm/server.js +0 -1
- package/dist/esm/store/UIManagerStore.js +0 -1
- package/dist/esm/utils/env.d.ts +0 -5
- package/dist/esm/utils/env.js +0 -1
- package/index.ts +0 -1
- package/src/@types/images.d.ts +0 -7
- package/src/components/Avatar/Avatar.tsx +0 -157
- package/src/components/Avatar/index.ts +0 -2
- package/src/components/Avatar/styles/index.scss +0 -63
- package/src/components/Chat/ChatState.tsx +0 -129
- package/src/components/Chat/hooks/useCreateTUIChatStateContext.tsx +0 -46
- package/src/components/Chat/hooks/useHandleMessage.tsx +0 -65
- package/src/components/Chat/hooks/useHandleMessageList.tsx +0 -47
- package/src/components/Chat/hooks/useIsMounted.ts +0 -14
- package/src/components/Chat/server.ts +0 -44
- package/src/components/Chat/styles/index.scss +0 -1
- package/src/components/Chat/styles/layout.scss +0 -15
- package/src/components/Chat/utils.ts +0 -72
- package/src/components/ChatHeader/ChatHeaderDefault.tsx +0 -167
- package/src/components/ChatHeader/styles/index.scss +0 -2
- package/src/components/ChatHeader/styles/layout.scss +0 -46
- package/src/components/ChatSetting/ChatSetting.tsx +0 -117
- package/src/components/ChatSetting/index.ts +0 -1
- package/src/components/ChatSetting/styles/index.scss +0 -104
- package/src/components/ConversationActions/ConversationActions.scss +0 -45
- package/src/components/ConversationActions/ConversationActions.tsx +0 -172
- package/src/components/ConversationActions/index.ts +0 -1
- package/src/components/ConversationCreate/ConversationCreate.tsx +0 -136
- package/src/components/ConversationCreate/ConversationCreateButton.tsx +0 -46
- package/src/components/ConversationCreate/ConversationCreateGroupDetail.tsx +0 -179
- package/src/components/ConversationCreate/ConversationCreateSelectView.tsx +0 -46
- package/src/components/ConversationCreate/ConversationCreateUserSelectList.tsx +0 -168
- package/src/components/ConversationCreate/ConversationGroupTypeInfo.tsx +0 -54
- package/src/components/ConversationCreate/hooks/useConversationCreate.tsx +0 -118
- package/src/components/ConversationCreate/index.ts +0 -7
- package/src/components/ConversationCreate/static/word.ts +0 -300
- package/src/components/ConversationCreate/styles/ConversationCreateGroupDetail.scss +0 -68
- package/src/components/ConversationCreate/styles/conversationCreateButton.scss +0 -5
- package/src/components/ConversationCreate/styles/conversationCreateSelectView.scss +0 -38
- package/src/components/ConversationCreate/styles/conversationGroupTypeInfo.scss +0 -64
- package/src/components/ConversationCreate/styles/index.scss +0 -149
- package/src/components/ConversationList/ConversationList.scss +0 -29
- package/src/components/ConversationList/ConversationList.tsx +0 -155
- package/src/components/ConversationList/ConversationListContent/ConversationListContent.scss +0 -16
- package/src/components/ConversationList/ConversationListContent/ConversationListContent.tsx +0 -63
- package/src/components/ConversationList/ConversationListContent/index.ts +0 -1
- package/src/components/ConversationList/ConversationListHeader/ConversationListHeader.scss +0 -28
- package/src/components/ConversationList/ConversationListHeader/ConversationListHeader.tsx +0 -43
- package/src/components/ConversationList/ConversationListHeader/index.ts +0 -1
- package/src/components/ConversationList/index.ts +0 -3
- package/src/components/ConversationPreview/ConversationPreview.scss +0 -137
- package/src/components/ConversationPreview/ConversationPreview.tsx +0 -260
- package/src/components/ConversationPreview/index.ts +0 -1
- package/src/components/ConversationPreview/utils.tsx +0 -145
- package/src/components/ConversationSearch/ConversationSearch.scss +0 -22
- package/src/components/ConversationSearch/ConversationSearch.tsx +0 -125
- package/src/components/ConversationSearch/ConversationSearchInput/ConversationSearchInput.scss +0 -13
- package/src/components/ConversationSearch/ConversationSearchInput/ConversationSearchInput.tsx +0 -42
- package/src/components/ConversationSearch/ConversationSearchInput/index.ts +0 -1
- package/src/components/ConversationSearch/ConversationSearchResult/ConversationSearchResult.scss +0 -15
- package/src/components/ConversationSearch/ConversationSearchResult/ConversationSearchResult.tsx +0 -72
- package/src/components/ConversationSearch/ConversationSearchResult/index.ts +0 -1
- package/src/components/ConversationSearch/index.ts +0 -3
- package/src/components/InfiniteScrollPaginator/InfiniteScroll.tsx +0 -115
- package/src/components/InfiniteScrollPaginator/index.ts +0 -1
- package/src/components/Input/styles/index.scss +0 -62
- package/src/components/MessageElement/Message.tsx +0 -150
- package/src/components/MessageElement/MessageAudio.tsx +0 -89
- package/src/components/MessageElement/MessageAvatar.tsx +0 -38
- package/src/components/MessageElement/MessageBubble.tsx +0 -137
- package/src/components/MessageElement/MessageContext.tsx +0 -84
- package/src/components/MessageElement/MessageCustom.tsx +0 -85
- package/src/components/MessageElement/MessageDefault.tsx +0 -104
- package/src/components/MessageElement/MessageFace.tsx +0 -28
- package/src/components/MessageElement/MessageFile.tsx +0 -41
- package/src/components/MessageElement/MessageImage.tsx +0 -46
- package/src/components/MessageElement/MessageLocation.tsx +0 -29
- package/src/components/MessageElement/MessageMerger.tsx +0 -38
- package/src/components/MessageElement/MessageName.tsx +0 -41
- package/src/components/MessageElement/MessagePlugins.tsx +0 -230
- package/src/components/MessageElement/MessageProgress.tsx +0 -89
- package/src/components/MessageElement/MessageRevoke.tsx +0 -48
- package/src/components/MessageElement/MessageStatus.tsx +0 -40
- package/src/components/MessageElement/MessageSystem.tsx +0 -30
- package/src/components/MessageElement/MessageText.tsx +0 -66
- package/src/components/MessageElement/MessageTip.tsx +0 -28
- package/src/components/MessageElement/MessageVideo.tsx +0 -45
- package/src/components/MessageElement/hooks/index.ts +0 -3
- package/src/components/MessageElement/hooks/useMessageContextHandler.ts +0 -70
- package/src/components/MessageElement/hooks/useMessageHandler.ts +0 -127
- package/src/components/MessageElement/hooks/useMessagePluginElement.tsx +0 -31
- package/src/components/MessageElement/hooks/useMessageReply.ts +0 -69
- package/src/components/MessageElement/index.ts +0 -3
- package/src/components/MessageElement/styles/color.scss +0 -45
- package/src/components/MessageElement/styles/index.scss +0 -2
- package/src/components/MessageElement/styles/layout.scss +0 -609
- package/src/components/MessageElement/utils/decodeText.ts +0 -110
- package/src/components/MessageElement/utils/emojiMap.ts +0 -95
- package/src/components/MessageElement/utils/index.ts +0 -472
- package/src/components/MessageInput/EmojiPicker.tsx +0 -80
- package/src/components/MessageInput/Forward.tsx +0 -187
- package/src/components/MessageInput/InputPluginsDefalut.tsx +0 -114
- package/src/components/MessageInput/InputQuoteDefalut.tsx +0 -44
- package/src/components/MessageInput/MessageInput.tsx +0 -116
- package/src/components/MessageInput/MessageInputDefault.tsx +0 -86
- package/src/components/MessageInput/Transmitter.tsx +0 -15
- package/src/components/MessageInput/hooks/index.ts +0 -6
- package/src/components/MessageInput/hooks/useCreateMessageInputContext.ts +0 -45
- package/src/components/MessageInput/hooks/useEmojiPicker.tsx +0 -40
- package/src/components/MessageInput/hooks/useHandleForwardMessage.tsx +0 -42
- package/src/components/MessageInput/hooks/useHandleQuoteMessage.tsx +0 -64
- package/src/components/MessageInput/hooks/useMessageInputState.tsx +0 -102
- package/src/components/MessageInput/hooks/useMessageInputText.tsx +0 -193
- package/src/components/MessageInput/hooks/usePluginsElement.tsx +0 -24
- package/src/components/MessageInput/hooks/useUploadElement.tsx +0 -35
- package/src/components/MessageInput/hooks/useUploadPicker.tsx +0 -38
- package/src/components/MessageInput/index.ts +0 -3
- package/src/components/MessageInput/styles/color.scss +0 -40
- package/src/components/MessageInput/styles/index.scss +0 -2
- package/src/components/MessageInput/styles/layout.scss +0 -360
- package/src/components/MessageList/MessageList.tsx +0 -133
- package/src/components/MessageList/hooks/useMessageListElement.tsx +0 -50
- package/src/components/MessageList/index.ts +0 -1
- package/src/components/MessageList/styles/index.scss +0 -2
- package/src/components/MessageList/styles/layout.scss +0 -61
- package/src/components/PlaceHolder/index.tsx +0 -79
- package/src/components/PlaceHolder/styles/index.scss +0 -36
- package/src/components/Toast/index.tsx +0 -44
- package/src/components/Toast/styles/color.scss +0 -11
- package/src/components/Toast/styles/index.scss +0 -2
- package/src/components/Toast/styles/layout.scss +0 -11
- package/src/components/utils.ts +0 -96
- package/src/constants.ts +0 -95
- package/src/context/ChatActionContext.tsx +0 -51
- package/src/context/ChatStateContext.tsx +0 -49
- package/src/context/ComponentContext.tsx +0 -48
- package/src/context/ConversationListContext.tsx +0 -113
- package/src/context/LanguageContext.tsx +0 -61
- package/src/context/MessageContext.tsx +0 -55
- package/src/context/MessageInputContext.tsx +0 -54
- package/src/context/ThemeContext.tsx +0 -68
- package/src/context/UIKitContext.tsx +0 -70
- package/src/context/UIManagerContext.tsx +0 -163
- package/src/hooks/useConversation.tsx +0 -30
- package/src/hooks/useLongPress.tsx +0 -117
- package/src/hooks/useMouseHover.tsx +0 -21
- package/src/hooks/useProfile.tsx +0 -8
- package/src/server.ts +0 -43
- package/src/store/UIManagerStore.ts +0 -108
- package/src/store/index.ts +0 -5
- package/src/styles/colors/_color-dark.scss +0 -45
- package/src/styles/colors/_color-light.scss +0 -45
- package/src/styles/colors/_color-theme.scss +0 -65
- package/src/utils/env.ts +0 -10
- /package/{src/components/ChatHeader/styles/color.scss → dist/external_modules/lodash-vwDjcXxQ.js} +0 -0
- /package/{src/components/MessageList/styles/color.scss → dist/types/message.js} +0 -0
- /package/src/{components/Avatar/default.ts → constant/avatar.ts} +0 -0
|
@@ -1 +0,0 @@
|
|
|
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,10 +0,0 @@
|
|
|
1
|
-
import React__default, { PropsWithChildren } from 'react';
|
|
2
|
-
|
|
3
|
-
interface TUIContactInfoProps {
|
|
4
|
-
className?: string;
|
|
5
|
-
showChats?: () => void;
|
|
6
|
-
}
|
|
7
|
-
declare function UnMemoizedContactInfo<T extends TUIContactInfoProps>(props: PropsWithChildren<T>): React__default.ReactElement;
|
|
8
|
-
declare const ContactInfo: React__default.MemoExoticComponent<typeof UnMemoizedContactInfo>;
|
|
9
|
-
|
|
10
|
-
export { ContactInfo, UnMemoizedContactInfo };
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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,52 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import React__default from 'react';
|
|
3
|
-
import { IConversationModel } from '@tencentcloud/chat-uikit-engine';
|
|
4
|
-
|
|
5
|
-
interface IConversationActionsConfig {
|
|
6
|
-
/** Determines whether the pin button appears on the conversation actions list view. (Default: True) */
|
|
7
|
-
enablePin?: boolean;
|
|
8
|
-
/** Determines whether the mute button appears on the conversation actions list view. (Default: True) */
|
|
9
|
-
enableMute?: boolean;
|
|
10
|
-
/** Determines whether the delete button appears on the conversation actions list view. (Default: True) */
|
|
11
|
-
enableDelete?: boolean;
|
|
12
|
-
/** Function to override the default behavior when user pin or unpin a conversation. */
|
|
13
|
-
onConversationPin?: (conversation: IConversationModel, e?: React__default.MouseEvent) => void;
|
|
14
|
-
/** Function to override the default behavior when user mute or unmute a conversation. */
|
|
15
|
-
onConversationMute?: (conversation: IConversationModel, e?: React__default.MouseEvent) => void;
|
|
16
|
-
/** Function to override the default behavior when user delete a conversation. */
|
|
17
|
-
onConversationDelete?: (conversation: IConversationModel, e?: React__default.MouseEvent) => void;
|
|
18
|
-
/**
|
|
19
|
-
* An object containing custom conversation actions (key) and object (value).
|
|
20
|
-
* Each value is an object with the following properties:
|
|
21
|
-
* enable: Determines whether the custom action is enabled. (Default: True)
|
|
22
|
-
* label: The label of the custom action.
|
|
23
|
-
* onClick: The function to be called when the custom action is clicked.
|
|
24
|
-
* Note: The key of the custom action must be unique.
|
|
25
|
-
*/
|
|
26
|
-
customConversationActions?: Record<string, IConversationActionItem>;
|
|
27
|
-
/** The icon react element to be displayed in the action popup. */
|
|
28
|
-
PopupIcon?: React__default.ReactElement;
|
|
29
|
-
/** An array of react elements to be displayed in the action popup. */
|
|
30
|
-
PopupElements?: React__default.ReactElement[];
|
|
31
|
-
/** The function to be called when the action popup is clicked. */
|
|
32
|
-
onClick?: (e: React__default.MouseEvent, key?: string, conversation?: IConversationModel) => void;
|
|
33
|
-
}
|
|
34
|
-
interface IConversationActionsProps extends IConversationActionsConfig {
|
|
35
|
-
/** The conversation model. */
|
|
36
|
-
conversation: IConversationModel;
|
|
37
|
-
/** The class name of the root element. */
|
|
38
|
-
className?: string;
|
|
39
|
-
/** The style of the root element. */
|
|
40
|
-
style?: React__default.CSSProperties;
|
|
41
|
-
}
|
|
42
|
-
interface IConversationActionItem {
|
|
43
|
-
/** Determines whether the custom action is enabled. (Default: True) */
|
|
44
|
-
enable?: boolean;
|
|
45
|
-
/** label: The label of the custom action. */
|
|
46
|
-
label: string;
|
|
47
|
-
/** onClick: The function to be called when the custom action is clicked. */
|
|
48
|
-
onClick: (conversation: IConversationModel, e?: React__default.MouseEvent) => void;
|
|
49
|
-
}
|
|
50
|
-
declare const ConversationActions: (props: IConversationActionsProps) => react_jsx_runtime.JSX.Element;
|
|
51
|
-
|
|
52
|
-
export { ConversationActions, IConversationActionItem, IConversationActionsConfig, IConversationActionsProps };
|
|
@@ -1 +0,0 @@
|
|
|
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,21 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import React__default from 'react';
|
|
3
|
-
import { CreateGroupParams, IConversationModel } from '@tencentcloud/chat-uikit-engine';
|
|
4
|
-
|
|
5
|
-
interface IConversationCreateProps {
|
|
6
|
-
visible?: boolean;
|
|
7
|
-
className?: string;
|
|
8
|
-
style?: React__default.CSSProperties;
|
|
9
|
-
onBeforeCreateConversation?: (params: string | CreateGroupParams) => string | CreateGroupParams;
|
|
10
|
-
onConversationCreated?: (conversation: IConversationModel) => void;
|
|
11
|
-
onChangeCreateModelVisible: (visible: boolean) => void;
|
|
12
|
-
conversationList?: IConversationModel[];
|
|
13
|
-
}
|
|
14
|
-
declare enum PageStateTypes {
|
|
15
|
-
USER_SELECT = "Next",
|
|
16
|
-
CREATE_DETAIL = "Create",
|
|
17
|
-
GROUP_TYPE = "GroupType"
|
|
18
|
-
}
|
|
19
|
-
declare function ConversationCreate<T extends IConversationCreateProps>(props: T): react_jsx_runtime.JSX.Element | null;
|
|
20
|
-
|
|
21
|
-
export { ConversationCreate, IConversationCreateProps, PageStateTypes };
|
|
@@ -1 +0,0 @@
|
|
|
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,13 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import React__default from 'react';
|
|
3
|
-
|
|
4
|
-
interface IConversationCreateButtonProps {
|
|
5
|
-
visible?: boolean;
|
|
6
|
-
onClick?: (event: React__default.BaseSyntheticEvent) => void;
|
|
7
|
-
height?: number;
|
|
8
|
-
width?: number;
|
|
9
|
-
className?: string;
|
|
10
|
-
}
|
|
11
|
-
declare const ConversationCreateButton: (props: IConversationCreateButtonProps) => react_jsx_runtime.JSX.Element | null;
|
|
12
|
-
|
|
13
|
-
export { ConversationCreateButton, IConversationCreateButtonProps };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__assign as i}from"tslib";import{jsx as o}from"react/jsx-runtime";import t from"classnames";import{Icon as r}from"../Icon/Icon.js";import{IconTypes as e}from"../Icon/type.js";var n=function(n){var m=n.visible,c=void 0===m||m,s=n.className,a=n.onClick,l=n.height,p=void 0===l?24:l,v=n.width,d=void 0===v?24:v;return c?o("div",i({className:t("tui-conversation-create-button",s)},{children:o(r,{onClick:a,type:e.CREATE,height:p,width:d})})):null};export{n as ConversationCreateButton};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import React__default from 'react';
|
|
3
|
-
import { Profile } from '@tencentcloud/chat';
|
|
4
|
-
import { CreateGroupParams, IConversationModel } from '@tencentcloud/chat-uikit-engine';
|
|
5
|
-
import { PageStateTypes } from './ConversationCreate.js';
|
|
6
|
-
|
|
7
|
-
interface ConversationCreateGroupDetailProps {
|
|
8
|
-
profileList: Profile[];
|
|
9
|
-
pageState: PageStateTypes;
|
|
10
|
-
setPageState: React__default.Dispatch<React__default.SetStateAction<PageStateTypes>>;
|
|
11
|
-
onBeforeCreateConversation?: (params: CreateGroupParams) => void;
|
|
12
|
-
onConversationCreated?: (conversation: IConversationModel) => void;
|
|
13
|
-
}
|
|
14
|
-
declare function ConversationCreateGroupDetail(props: ConversationCreateGroupDetailProps): react_jsx_runtime.JSX.Element;
|
|
15
|
-
|
|
16
|
-
export { ConversationCreateGroupDetail, ConversationCreateGroupDetailProps };
|
|
@@ -1 +0,0 @@
|
|
|
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,15 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import React__default from 'react';
|
|
3
|
-
import { Profile } from '@tencentcloud/chat';
|
|
4
|
-
|
|
5
|
-
interface ValueProps {
|
|
6
|
-
profile: Profile;
|
|
7
|
-
domList: HTMLInputElement[];
|
|
8
|
-
}
|
|
9
|
-
interface ConversationCreateSelectViewProps {
|
|
10
|
-
selectList: ValueProps[];
|
|
11
|
-
setSelectList: React__default.Dispatch<React__default.SetStateAction<ValueProps[]>>;
|
|
12
|
-
}
|
|
13
|
-
declare function ConversationCreateSelectView(props: ConversationCreateSelectViewProps): react_jsx_runtime.JSX.Element;
|
|
14
|
-
|
|
15
|
-
export { ConversationCreateSelectView, ConversationCreateSelectViewProps };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__assign as e,__spreadArray as i}from"tslib";import{jsx as t,jsxs as r}from"react/jsx-runtime";import{Avatar as c}from"../Avatar/Avatar.js";import{defaultUserAvatar as o}from"../Avatar/default.js";import{Icon as s}from"../Icon/Icon.js";import{IconTypes as n}from"../Icon/type.js";function a(a){var m=a.selectList,l=a.setSelectList;return t("div",e({className:"conversation-create-select-view"},{children:m.map((function(a,f){var v=a.profile,p=a.domList,d=v.nick,u=v.userID,h=v.avatar;return r("div",e({className:"select-view-info"},{children:[t(s,{height:12,width:12,type:n.CLOSE,className:"select-view-info-close",onClick:function(){!function(e,t){e.forEach((function(e){e.checked=!1})),m.splice(t,1),l(i([],m,!0))}(p,f)}}),t(c,{image:h||o,size:40}),t("div",e({className:"select-view-info-nick"},{children:d||u}))]}),u)}))}))}export{a as ConversationCreateSelectView};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import React__default from 'react';
|
|
3
|
-
import { ConversationCreateSelectViewProps } from './ConversationCreateSelectView.js';
|
|
4
|
-
import { PageStateTypes } from './ConversationCreate.js';
|
|
5
|
-
import { IConversationModel } from '@tencentcloud/chat-uikit-engine';
|
|
6
|
-
|
|
7
|
-
interface ConversationCreateUserSelectListProps extends ConversationCreateSelectViewProps {
|
|
8
|
-
isCreateGroup: boolean;
|
|
9
|
-
setIsCreateGroup: React__default.Dispatch<React__default.SetStateAction<boolean>>;
|
|
10
|
-
className?: string;
|
|
11
|
-
conversationList: IConversationModel[];
|
|
12
|
-
setPageState: React__default.Dispatch<React__default.SetStateAction<PageStateTypes>>;
|
|
13
|
-
onBeforeCreateConversation?: (userID: string) => void;
|
|
14
|
-
onConversationCreated?: (conversation: IConversationModel) => void;
|
|
15
|
-
}
|
|
16
|
-
declare function ConversationCreateUserSelectList(props: ConversationCreateUserSelectListProps): react_jsx_runtime.JSX.Element;
|
|
17
|
-
|
|
18
|
-
export { ConversationCreateUserSelectList, ConversationCreateUserSelectListProps };
|
|
@@ -1 +0,0 @@
|
|
|
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,24 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import React__default from 'react';
|
|
3
|
-
import { PageStateTypes } from './ConversationCreate.js';
|
|
4
|
-
|
|
5
|
-
declare enum GroupType {
|
|
6
|
-
Work,
|
|
7
|
-
Public,
|
|
8
|
-
Meeting,
|
|
9
|
-
AVChatRoom,
|
|
10
|
-
Community
|
|
11
|
-
}
|
|
12
|
-
interface ConversationGroupTypeInfoProps {
|
|
13
|
-
groupType: GroupType;
|
|
14
|
-
setGroupType: React__default.Dispatch<React__default.SetStateAction<GroupType>>;
|
|
15
|
-
setPageState: React__default.Dispatch<React__default.SetStateAction<PageStateTypes>>;
|
|
16
|
-
}
|
|
17
|
-
declare const typeInfoList: Array<{
|
|
18
|
-
type: GroupType;
|
|
19
|
-
name: string;
|
|
20
|
-
des: string;
|
|
21
|
-
}>;
|
|
22
|
-
declare function ConversationGroupTypeInfo(props: ConversationGroupTypeInfoProps): react_jsx_runtime.JSX.Element;
|
|
23
|
-
|
|
24
|
-
export { ConversationGroupTypeInfo, ConversationGroupTypeInfoProps, GroupType, typeInfoList };
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
|
-
import { IConversationModel } from '@tencentcloud/chat-uikit-engine';
|
|
3
|
-
import { Friend } from '@tencentcloud/chat';
|
|
4
|
-
|
|
5
|
-
declare const useConversationCreate: (conversationList: IConversationModel[], setFriendListResultHandler?: ((newFriendListResult: object, setFriendListResult: React__default.Dispatch<React__default.SetStateAction<{
|
|
6
|
-
string: object[];
|
|
7
|
-
}>>) => void) | undefined) => {
|
|
8
|
-
getFirstLetter: (str: string) => string;
|
|
9
|
-
queryFriendList: (friendList: Friend[]) => Promise<void>;
|
|
10
|
-
getFriendListSortSearchResult: (searchValue: string) => Promise<any>;
|
|
11
|
-
friendListSortResult: any;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export { useConversationCreate };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__awaiter as r,__generator as t}from"tslib";import{useState as n,useEffect as e}from"react";import{TUIStore as o,StoreName as i,TUIUserService as u}from"@tencentcloud/chat-uikit-engine";import c from"@tencentcloud/chat";import{strChineseFirstPy as s}from"../static/word.js";var a=function(a,f){var l=n(),d=l[0],v=l[1],h=function(r){var t=r.trim(),n=t.charCodeAt(0);return n>40869||n<19968?t.charAt(0):s.charAt(n-19968)},p=function(n){return r(void 0,void 0,void 0,(function(){var r;return t(this,(function(t){return a.filter((function(r){return(null==r?void 0:r.type)===c.TYPES.CONV_C2C})).slice(0,5).map((function(r){return null==r?void 0:r.userProfile})),r=m(null==n?void 0:n.map((function(r){return r.profile}))),v(r),f&&f(r,v),[2]}))}))};function m(r,t){for(var n={"#":[]},e=65;e<=90;e+=1)n[String.fromCharCode(e)]=[];return null==r||r.forEach((function(r){var t=r.nick,e=r.userID,o=h(t||e);o>="a"&&o<="z"?n[o.toLocaleUpperCase()].push(r):o<"A"||o>"z"?n["#"].push(r):n[o].push(r)})),Object.keys(n).forEach((function(r){n[r].sort((function(r,t){var n=r.nick,e=r.userID,o=t.nick,i=t.userID;return n||e<=o||i?1:-1}))})),n}function L(r){p(r)}return e((function(){return o.watch(i.FRIEND,{friendList:L}),function(){o.unwatch(i.FRIEND,{friendList:L})}}),[]),{getFirstLetter:h,queryFriendList:p,getFriendListSortSearchResult:function(n){return r(void 0,void 0,void 0,(function(){var r,e,o,i;return t(this,(function(t){switch(t.label){case 0:return n?[4,u.getUserProfile({userIDList:[n]})]:[2,d];case 1:return r=t.sent().data,e={},o=!1,Object.keys(d).forEach((function(r){e[r]=d[r].filter((function(r){var t,e,i=r.nick,u=r.userID,c=null==i?void 0:i.toLocaleLowerCase(),s=n.toLocaleLowerCase(),a=u.toLocaleLowerCase();return e="TencentCloudDemo"===(null===(t=process.env)||void 0===t?void 0:t.REACT_APP_ONLINE)?c?c.includes(s):a.includes(s):a===s,o=o||e,e}))})),"TencentCloudDemo"===(null===(i=process.env)||void 0===i?void 0:i.REACT_APP_ONLINE)?[2,e]:[2,o?e:m(r)]}}))}))},friendListSortResult:d}};export{a as useConversationCreate};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var Y="YDY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JYLHZYHMGSLJLJXCJJYCLYCJPCPZJZJMMYLCQLNQLJQJSXYJMLSZLJQLYCMMHCFMMFPQQMFYLQMCFFQMMMMHMZNFHHJGTTHHKHSLNCHHYQDXTMMQDCYZYXYQMYQYLTDCYYYZAZZCYMZYDLZFFFMMYCQZWZZMABTBYZTDMNZZGGDFTYPCGQYTTSSFFWFDTZQSSYSTWXJHXYTSXXYLBYQHWWKXHZXWZNNZZJZJJQJCCCHYYXBZXZCYZTLLCQXYNJYCYYCYNZZQYYYEWYCZDCJYCCHYJLBTZYYCQWMPWPYMLGKDLDLGKQQBGYCHJXY";export{Y as strChineseFirstPy};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import React__default, { PropsWithChildren } from 'react';
|
|
2
|
-
import { IConversationModel, CreateGroupParams } from '@tencentcloud/chat-uikit-engine';
|
|
3
|
-
import { IConversationListHeaderProps } from './ConversationListHeader/ConversationListHeader.js';
|
|
4
|
-
import { IConversationListContentProps } from './ConversationListContent/ConversationListContent.js';
|
|
5
|
-
import { IConversationPreviewUIProps } from '../ConversationPreview/ConversationPreview.js';
|
|
6
|
-
import { AvatarProps } from '../Avatar/Avatar.js';
|
|
7
|
-
import { IConversationSearchProps } from '../ConversationSearch/ConversationSearch.js';
|
|
8
|
-
import { IConversationCreateProps } from '../ConversationCreate/ConversationCreate.js';
|
|
9
|
-
import { IConversationActionsConfig, IConversationActionsProps } from '../ConversationActions/ConversationActions.js';
|
|
10
|
-
|
|
11
|
-
interface IConversationListProps {
|
|
12
|
-
/** Determines whether the conversation search input appears on the conversation list view. (Default: True) */
|
|
13
|
-
enableSearch?: boolean;
|
|
14
|
-
/** Determines whether the conversation creation button appears on the conversation list view. (Default: True) */
|
|
15
|
-
enableCreate?: boolean;
|
|
16
|
-
/** Determines whether the conversation action button appears on the conversation list view. (Default: True) */
|
|
17
|
-
enableActions?: boolean;
|
|
18
|
-
/** Specifies the prop to customize action on the conversation list item. */
|
|
19
|
-
actionsConfig?: IConversationActionsConfig;
|
|
20
|
-
/** Specifies a react component to customize the header of the conversation list. */
|
|
21
|
-
Header?: React__default.ComponentType<IConversationListHeaderProps>;
|
|
22
|
-
/** Specifies a react component to customize the conversation list component. */
|
|
23
|
-
List?: React__default.ComponentType<IConversationListContentProps>;
|
|
24
|
-
/** Specifies a react component to customize the conversation preview. */
|
|
25
|
-
Preview?: React__default.ComponentType<IConversationPreviewUIProps>;
|
|
26
|
-
/** Specifies a react component to customize the conversation create component. */
|
|
27
|
-
ConversationCreate?: React__default.ComponentType<IConversationCreateProps>;
|
|
28
|
-
/** Specifies a react component to customize the conversation search. */
|
|
29
|
-
ConversationSearch?: React__default.ComponentType<IConversationSearchProps>;
|
|
30
|
-
/** Specifies a react component to customize the conversation actions in conversation preview. */
|
|
31
|
-
ConversationActions?: React__default.ComponentType<IConversationActionsProps>;
|
|
32
|
-
/** Specifies a react component to customize the placeholder when the conversation list is empty. */
|
|
33
|
-
PlaceholderEmptyList?: React__default.ReactNode;
|
|
34
|
-
/** Specifies a react component to customize the placeholder when the conversation list is loading. */
|
|
35
|
-
PlaceholderLoading?: React__default.ReactNode;
|
|
36
|
-
/** Specifies a react component to customize the placeholder when the conversation list loaded error. */
|
|
37
|
-
PlaceholderLoadError?: React__default.ReactNode;
|
|
38
|
-
/** Specifies a react component to customize the avatar in list. */
|
|
39
|
-
Avatar?: React__default.ComponentType<AvatarProps>;
|
|
40
|
-
/** Specifies a function to filter conversations in the conversation list. */
|
|
41
|
-
filter?: (conversationList: IConversationModel[]) => IConversationModel[];
|
|
42
|
-
/** Specifies a function to sort conversations in the conversation list. */
|
|
43
|
-
sort?: (conversationList: IConversationModel[]) => IConversationModel[];
|
|
44
|
-
/** Specifies the prop to receive callback when a user clicks a conversation in the conversation list. */
|
|
45
|
-
onSelectConversation?: (conversation: IConversationModel) => void;
|
|
46
|
-
/** Specifies the prop to execute custom operations before creating a channel. */
|
|
47
|
-
onBeforeCreateConversation?: (params: string | CreateGroupParams) => string | CreateGroupParams;
|
|
48
|
-
/** Specifies the prop to receive callback when a conversation is created. */
|
|
49
|
-
onConversationCreated?: (conversation: IConversationModel) => void;
|
|
50
|
-
/** The custom class name */
|
|
51
|
-
className?: string;
|
|
52
|
-
/** The custom css style */
|
|
53
|
-
style?: React__default.CSSProperties;
|
|
54
|
-
}
|
|
55
|
-
declare function ConversationList<T extends IConversationListProps>(props: PropsWithChildren<T>): React__default.ReactElement;
|
|
56
|
-
|
|
57
|
-
export { ConversationList, IConversationListProps };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__assign as o}from"tslib";import{jsx as e,jsxs as t}from"react/jsx-runtime";import{useState as r}from"react";import{ConversationListProvider as i,useConversationList as n}from"../../context/ConversationListContext.js";import{ConversationListHeader as a}from"./ConversationListHeader/ConversationListHeader.js";import{ConversationListContent as s}from"./ConversationListContent/ConversationListContent.js";import"@tencentcloud/uikit-base-component-react";import"../Icon/config.js";import"../Icon/type.js";import v from"classnames";import{ConversationPreview as c,ConversationPreviewUI as l}from"../ConversationPreview/ConversationPreview.js";import{Avatar as d}from"../Avatar/Avatar.js";import{PlaceHolder as m,PlaceHolderTypes as C}from"../PlaceHolder/index.js";import{ConversationSearch as p}from"../ConversationSearch/ConversationSearch.js";import{ConversationCreate as f}from"../ConversationCreate/ConversationCreate.js";import"../ConversationCreate/ConversationGroupTypeInfo.js";import"../../store/UIManagerStore.js";import"@tencentcloud/chat-uikit-engine";import"@tencentcloud/chat";import{ConversationActions as h}from"../ConversationActions/ConversationActions.js";import{isH5 as u}from"../../utils/env.js";function L(i){var L=i.enableSearch,j=void 0===L||L,A=i.enableCreate,g=void 0===A||A,P=i.enableActions,b=void 0===P||P,y=i.actionsConfig,S=i.Header,N=void 0===S?a:S,I=i.List,E=void 0===I?s:I,k=i.Preview,w=void 0===k?l:k,x=i.ConversationCreate,O=void 0===x?f:x,H=i.ConversationSearch,G=void 0===H?p:H,R=i.ConversationActions,_=void 0===R?h:R,B=i.PlaceholderEmptyList,D=void 0===B?e(m,{type:C.NO_CONVERSATIONS}):B,M=i.PlaceholderLoading,T=void 0===M?e(m,{type:C.LOADING}):M,V=i.PlaceholderLoadError,U=void 0===V?e(m,{type:C.WRONG}):V,W=i.Avatar,q=void 0===W?d:W,z=i.onSelectConversation,F=i.onBeforeCreateConversation,J=i.onConversationCreated,K=i.className,Q=i.style,X=n(),Y=X.conversationList,Z=X.filteredAndSortedConversationList,$=X.isLoading,oo=X.isLoadError,eo=r(!1),to=eo[0],ro=eo[1];return t("div",o({className:v(K,"uikit-chat-list",{"uikit-chat-list--mobile":u}),style:Q},{children:[t(N,{children:[e(G,{visible:j,conversationList:Y,Avatar:q,ResultPreview:c}),e(O,{className:v({"uikit-chat-list__header--creating":to}),visible:g,onChangeCreateModelVisible:function(o){return ro(o)},onBeforeCreateConversation:F,onConversationCreated:J})]}),e(E,o({empty:0===Z.length,loading:$,error:oo,PlaceholderEmptyList:D,PlaceholderLoadError:U,PlaceholderLoading:T},{children:Z.map((function(o){return e(c,{conversation:o,enableActions:b,Preview:w,Avatar:q,ConversationActions:_,onSelectConversation:z,actionsConfig:y},o.conversationID)}))}))]}))}function j(t){return e(i,o({filter:t.filter,sort:t.sort},{children:e(L,o({},t))}))}export{j as ConversationList};
|
package/dist/esm/components/ConversationList/ConversationListContent/ConversationListContent.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
interface IConversationListContentProps {
|
|
2
|
-
/** Renders a customized component in the conversation list main. */
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
/** Indicates whether the chat list is empty */
|
|
5
|
-
empty?: boolean;
|
|
6
|
-
/** Indicates whether the chat list is currently loading */
|
|
7
|
-
loading?: boolean;
|
|
8
|
-
/** Indicates whether there was an error loading the chat list */
|
|
9
|
-
error?: boolean;
|
|
10
|
-
/** A custom component to display when the chat list is empty */
|
|
11
|
-
PlaceholderEmptyList?: React.ReactNode;
|
|
12
|
-
/** A custom component to display while the chat list is loading */
|
|
13
|
-
PlaceholderLoading?: React.ReactNode;
|
|
14
|
-
/** A custom component to display when there is an error loading the chat list */
|
|
15
|
-
PlaceholderLoadError?: React.ReactNode;
|
|
16
|
-
/** The custom class name */
|
|
17
|
-
className?: string;
|
|
18
|
-
/** The custom css style */
|
|
19
|
-
style?: React.CSSProperties;
|
|
20
|
-
}
|
|
21
|
-
declare function ConversationListContent<T extends IConversationListContentProps>(props: T): React.ReactElement;
|
|
22
|
-
|
|
23
|
-
export { ConversationListContent, IConversationListContentProps };
|
package/dist/esm/components/ConversationList/ConversationListContent/ConversationListContent.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__assign as r}from"tslib";import{jsx as e}from"react/jsx-runtime";import o from"classnames";import{PlaceHolder as i,PlaceHolderTypes as t}from"../../PlaceHolder/index.js";function l(l){var a,d=l.children,m=l.empty,s=void 0!==m&&m,c=l.loading,n=void 0!==c&&c,p=l.error,v=void 0!==p&&p,y=l.PlaceholderEmptyList,N=void 0===y?e(i,{type:t.NO_CONVERSATIONS}):y,h=l.PlaceholderLoading,f=void 0===h?e(i,{type:t.LOADING}):h,O=l.PlaceholderLoadError,u=void 0===O?e(i,{type:t.WRONG}):O,L=l.className,P=l.style;return a=v?u:n?f:s?N:d,e("div",r({className:o("uikit-chat-list__container",L),style:P},{children:a}))}export{l as ConversationListContent};
|
package/dist/esm/components/ConversationList/ConversationListHeader/ConversationListHeader.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
interface IConversationListHeaderProps {
|
|
2
|
-
/** The main of the conversation list header */
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
/** A custom component to display in the left area of header */
|
|
5
|
-
left?: React.ReactNode;
|
|
6
|
-
/** A custom component to display in the right area of header */
|
|
7
|
-
right?: React.ReactNode;
|
|
8
|
-
/** The custom class name */
|
|
9
|
-
className?: string;
|
|
10
|
-
/** The custom css style */
|
|
11
|
-
style?: React.CSSProperties;
|
|
12
|
-
}
|
|
13
|
-
declare function ConversationListHeader<T extends IConversationListHeaderProps>(props: T): React.ReactElement;
|
|
14
|
-
|
|
15
|
-
export { ConversationListHeader, IConversationListHeaderProps };
|
package/dist/esm/components/ConversationList/ConversationListHeader/ConversationListHeader.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__assign as i}from"tslib";import{jsxs as t,jsx as e}from"react/jsx-runtime";import r from"classnames";function a(a){var s=a.children,l=a.left,c=a.right,h=a.className,m=a.style;return t("div",i({className:r("uikit-chat-list__header",h),style:m},{children:[e("div",i({className:"uikit-chat-list__header__left"},{children:l})),s,e("div",i({className:"uikit-chat-list__header__right"},{children:c}))]}))}export{a as ConversationListHeader};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import React__default, { CSSProperties } from 'react';
|
|
2
|
-
import { IConversationModel } from '@tencentcloud/chat-uikit-engine';
|
|
3
|
-
import { AvatarProps } from '../Avatar/Avatar.js';
|
|
4
|
-
import { IConversationActionsProps, IConversationActionsConfig } from '../ConversationActions/ConversationActions.js';
|
|
5
|
-
|
|
6
|
-
interface IConversationPreviewUIProps {
|
|
7
|
-
/** The conversation to be displayed */
|
|
8
|
-
conversation: IConversationModel;
|
|
9
|
-
/** If the component's Conversation is the active (selected) Conversation */
|
|
10
|
-
isSelected?: boolean;
|
|
11
|
-
/** Whether to show the ConversationActions */
|
|
12
|
-
enableActions?: boolean;
|
|
13
|
-
/** The string to be highlighted in the title */
|
|
14
|
-
highlightMatchString?: string;
|
|
15
|
-
/** The custom Avatar component */
|
|
16
|
-
Avatar?: React__default.ComponentType<AvatarProps>;
|
|
17
|
-
/** The custom Title component */
|
|
18
|
-
Title?: string | JSX.Element;
|
|
19
|
-
/** The custom last message abstract component */
|
|
20
|
-
LastMessageAbstract?: string | JSX.Element;
|
|
21
|
-
/** The custom last message abstract component */
|
|
22
|
-
LastMessageTimestamp?: string | JSX.Element;
|
|
23
|
-
/** The custom Unread component */
|
|
24
|
-
Unread?: string | JSX.Element;
|
|
25
|
-
/** The custom ConversationActions component */
|
|
26
|
-
ConversationActions?: React__default.ComponentType<IConversationActionsProps>;
|
|
27
|
-
/** Callback when the user click a conversation from conversation list */
|
|
28
|
-
onSelectConversation?: (conversation: IConversationModel) => void;
|
|
29
|
-
/** The custom ConversationActions config */
|
|
30
|
-
actionsConfig?: IConversationActionsConfig;
|
|
31
|
-
/** The custom class name */
|
|
32
|
-
className?: string;
|
|
33
|
-
/** The custom class style */
|
|
34
|
-
style?: CSSProperties;
|
|
35
|
-
/** The custom children node to override UI */
|
|
36
|
-
children?: React__default.ReactNode;
|
|
37
|
-
}
|
|
38
|
-
interface IConversationPreviewProps extends IConversationPreviewUIProps {
|
|
39
|
-
/** The custom Preview UI component */
|
|
40
|
-
Preview?: React__default.ComponentType<IConversationPreviewUIProps>;
|
|
41
|
-
}
|
|
42
|
-
declare function ConversationPreview<T extends IConversationPreviewProps>(props: T): React__default.ReactElement;
|
|
43
|
-
declare function ConversationPreviewUI<T extends IConversationPreviewUIProps>(props: T): React__default.ReactElement;
|
|
44
|
-
|
|
45
|
-
export { ConversationPreview, ConversationPreviewUI, IConversationPreviewProps, IConversationPreviewUIProps };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__assign as i}from"tslib";import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import{useRef as o,useState as r,useEffect as s}from"react";import a from"classnames";import{useUIKit as c}from"@tencentcloud/uikit-base-component-react";import{Icon as v}from"../Icon/Icon.js";import{IconTypes as l}from"../Icon/type.js";import{Avatar as u}from"../Avatar/Avatar.js";import{ConversationActions as m}from"../ConversationActions/ConversationActions.js";import{useConversationList as d}from"../../context/ConversationListContext.js";import{useUIManagerStore as h}from"../../store/UIManagerStore.js";import p from"../../hooks/useLongPress.js";import g from"../../hooks/useMouseHover.js";import{generateHighlightTitle as f,getLatestMessagePreview as C}from"./utils.js";import{getTimeStamp as k}from"../utils.js";import{isH5 as _}from"../../utils/env.js";function w(t){var n=t.conversation,o=t.isSelected,r=void 0!==o&&o,s=t.enableActions,p=void 0===s||s,g=t.highlightMatchString,_=t.Preview,w=void 0===_?A:_,M=t.Avatar,j=void 0===M?u:M,N=t.ConversationActions,S=void 0===N?m:N,b=t.Title,L=void 0===b?function(t){var n=t.conversation,o=t.highlightMatchString;return e("div",i({className:"uikit-conversation-preview__title text-ellipsis"},{children:f(n,o).map((function(t,n){return e("span",i({className:a({"uikit-conversation-preview__title--highlight":t.isHighlight,"uikit-conversation-preview__title--normal":!t.isHighlight})},{children:t.text}),n)}))}))}({conversation:n,highlightMatchString:g}):b,y=t.LastMessageTimestamp,T=void 0===y?function(t){var n,o=t.conversation,r=c().language;return e("div",i({className:"uikit-conversation-preview__time"},{children:k(1e3*+((null===(n=o.lastMessage)||void 0===n?void 0:n.lastTime)||0),r)}))}({conversation:n}):y,x=t.LastMessageAbstract,I=void 0===x?function(t){var n=t.conversation,o=h().myProfile;return e("div",i({className:"uikit-conversation-preview__abstract"},{children:C(n,o)}))}({conversation:n}):x,P=t.Unread,U=void 0===P?function(t){var n,o=t.conversation;return n=o.isMuted?e(v,{type:l.MUTE,width:16,height:16}):o.unreadCount>99?"99+":0===o.unreadCount?null:o.unreadCount,e("div",i({className:"uikit-conversation-preview__unread"},{children:n}))}({conversation:n}):P,D=t.onSelectConversation,H=t.actionsConfig,z=t.className,E=t.style,q=t.children;return d().setCurrentConversation,e(w,{conversation:n,isSelected:r,enableActions:p,highlightMatchString:g,Avatar:j,ConversationActions:S,Title:L,LastMessageTimestamp:T,LastMessageAbstract:I,Unread:U,onSelectConversation:D,actionsConfig:H,className:z,style:E,children:q})}function A(c){var v=c.conversation,l=c.isSelected,h=c.enableActions,f=c.Avatar,C=void 0===f?u:f,k=c.ConversationActions,w=void 0===k?m:k,A=c.Title,M=c.LastMessageTimestamp,j=c.LastMessageAbstract,N=c.Unread,S=c.onSelectConversation,b=c.actionsConfig,L=c.className,y=c.style,T=c.children,x=d(),I=x.currentConversation,P=x.setCurrentConversation,U=o(null),D=r(!1),H=D[0],z=D[1],E=g(U),q=p({},{delay:500,shouldPreventDefault:!0}).isLongPressing;s((function(){z(E||q)}),[E,q]);return e("div",i({ref:U,className:a("uikit-conversation-preview",L,{"uikit-conversation-preview--mobile":_,"uikit-conversation-preview--active":l||v.conversationID===(null==I?void 0:I.conversationID),"uikit-conversation-preview--unread":!v.isMuted&&v.unreadCount>0,"uikit-conversation-preview--pin":v.isPinned,"uikit-conversation-preview--mute":v.isMuted}),style:y,onClick:function(){null==S||S(v),P(v)}},{children:T||t(n,{children:[e("div",i({className:"uikit-conversation-preview__avatar"},{children:e(C,{image:v.getAvatar(),size:40})})),t("div",i({className:"uikit-conversation-preview__content"},{children:[A,j]})),t("div",i({className:"uikit-conversation-preview__external"},{children:[N,h&&H?e(w,i({conversation:v},b)):M]}))]})}))}export{w as ConversationPreview,A as ConversationPreviewUI};
|