@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
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IChatProps as IChatContextProps } from '../../context/ChatContext';
|
|
3
|
+
interface IChatProps extends IChatContextProps {
|
|
4
|
+
className?: string | undefined;
|
|
5
|
+
style?: React.CSSProperties | undefined;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
PlaceholderEmpty?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
declare const Chat: (props: IChatProps) => string | number | boolean | import("react/jsx-runtime").JSX.Element | Iterable<React.ReactNode> | null;
|
|
10
|
+
export { Chat };
|
|
11
|
+
export type { IChatProps };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { E as a, m as e } from "../../ChatSetting-C7QlwAiq.js";
|
|
3
|
+
import "@tencentcloud/uikit-base-component-react";
|
|
4
|
+
import "@tencentcloud/chat-uikit-engine";
|
|
5
|
+
import "@tencentcloud/tui-core";
|
|
6
|
+
import "react";
|
|
7
|
+
import { c as l } from "../../external_modules/classnames-HRMVOjAa.js";
|
|
8
|
+
import { ChatProvider as n } from "../../context/ChatContext.js";
|
|
9
|
+
import '../../styles/Chat.css';const p = "uikit-chat", h = {
|
|
10
|
+
chat: p
|
|
11
|
+
}, j = (o) => {
|
|
12
|
+
const {
|
|
13
|
+
PlaceholderEmpty: c = null,
|
|
14
|
+
className: m,
|
|
15
|
+
style: s,
|
|
16
|
+
children: i
|
|
17
|
+
} = o, { activeConversation: t } = a();
|
|
18
|
+
return t != null && t.conversationID ? /* @__PURE__ */ r(n, { children: /* @__PURE__ */ r(
|
|
19
|
+
e,
|
|
20
|
+
{
|
|
21
|
+
className: l(h.chat, m),
|
|
22
|
+
style: s,
|
|
23
|
+
children: i
|
|
24
|
+
}
|
|
25
|
+
) }) : c;
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
j as Chat
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Chat';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { AvatarProps } from 'tuikit-atomicx-react';
|
|
3
|
+
interface ChatHeaderProps {
|
|
4
|
+
/** Custom title, if not provided, will use conversation info */
|
|
5
|
+
title?: string | undefined;
|
|
6
|
+
/** Custom avatar image URL */
|
|
7
|
+
avatar?: string | undefined;
|
|
8
|
+
/** Whether to show user status */
|
|
9
|
+
enableUserStatus?: boolean | undefined;
|
|
10
|
+
/** Whether to enable chat setting */
|
|
11
|
+
chatHeaderActions?: Array<'videoCall' | 'audioCall' | 'chatSetting' | 'search'> | undefined;
|
|
12
|
+
/** Custom avatar component */
|
|
13
|
+
Avatar?: React.ComponentType<AvatarProps> | undefined;
|
|
14
|
+
/** Additional class names */
|
|
15
|
+
className?: string | undefined;
|
|
16
|
+
/** Additional style */
|
|
17
|
+
style?: React.CSSProperties | undefined;
|
|
18
|
+
onSearchClick?: (() => void) | undefined;
|
|
19
|
+
}
|
|
20
|
+
declare const ChatHeader: (props: ChatHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export { ChatHeader, };
|
|
22
|
+
export type { ChatHeaderProps };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect as h } from "react";
|
|
3
|
+
import { TUIUserService as v } from "@tencentcloud/chat-uikit-engine";
|
|
4
|
+
import { j as C } from "../../ChatSetting-C7QlwAiq.js";
|
|
5
|
+
import "@tencentcloud/uikit-base-component-react";
|
|
6
|
+
import "@tencentcloud/tui-core";
|
|
7
|
+
import "../../states/UIManagerState.js";
|
|
8
|
+
import { useChatHeaderState as U } from "../../states/ChatHeaderState.js";
|
|
9
|
+
import x from "./ChatHeaderUI/ChatHeaderUI.js";
|
|
10
|
+
const w = (e) => {
|
|
11
|
+
const {
|
|
12
|
+
title: r,
|
|
13
|
+
avatar: a,
|
|
14
|
+
enableUserStatus: t = !1,
|
|
15
|
+
chatHeaderActions: s,
|
|
16
|
+
Avatar: o,
|
|
17
|
+
className: i,
|
|
18
|
+
style: c
|
|
19
|
+
} = e, {
|
|
20
|
+
system: m,
|
|
21
|
+
conversation: n,
|
|
22
|
+
isGroup: p,
|
|
23
|
+
title: l,
|
|
24
|
+
avatar: f,
|
|
25
|
+
userStatus: u
|
|
26
|
+
} = U(), { isPeerTyping: S } = C();
|
|
27
|
+
return h(() => {
|
|
28
|
+
v.switchUserStatus({ displayOnlineStatus: t });
|
|
29
|
+
}, [t]), /* @__PURE__ */ d(
|
|
30
|
+
x,
|
|
31
|
+
{
|
|
32
|
+
isGroup: p,
|
|
33
|
+
title: r || l || "",
|
|
34
|
+
avatar: a || f,
|
|
35
|
+
userStatus: u,
|
|
36
|
+
conversation: n,
|
|
37
|
+
isPeerTyping: S,
|
|
38
|
+
system: m,
|
|
39
|
+
enableUserStatus: t,
|
|
40
|
+
chatHeaderActions: s,
|
|
41
|
+
Avatar: o,
|
|
42
|
+
style: c,
|
|
43
|
+
className: i,
|
|
44
|
+
onSearchClick: e.onSearchClick
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
};
|
|
48
|
+
export {
|
|
49
|
+
w as ChatHeader
|
|
50
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface IChatHeaderActionsProps {
|
|
2
|
+
/** Whether to enable call features */
|
|
3
|
+
chatHeaderActions?: Array<'videoCall' | 'audioCall' | 'chatSetting' | 'search'> | undefined;
|
|
4
|
+
/** Additional class names */
|
|
5
|
+
className?: string | undefined;
|
|
6
|
+
/** Additional style */
|
|
7
|
+
style?: React.CSSProperties | undefined;
|
|
8
|
+
}
|
|
9
|
+
declare const ChatHeaderActions: (props: IChatHeaderActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { ChatHeaderActions };
|
|
11
|
+
export type { IChatHeaderActionsProps };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as u, useCallback as k } from "react";
|
|
3
|
+
import { CallMediaType as m } from "@tencentcloud/call-uikit-react";
|
|
4
|
+
import w from "@tencentcloud/chat-uikit-engine";
|
|
5
|
+
import E, { TUIConstants as T } from "@tencentcloud/tui-core";
|
|
6
|
+
import { useUIKit as U, IconHorizontalMoreTwo as b, IconSearch as D, IconCall1 as x, IconVideoDefault as y } from "@tencentcloud/uikit-base-component-react";
|
|
7
|
+
import { h as z, E as N, p as A, m as M } from "../../../ChatSetting-C7QlwAiq.js";
|
|
8
|
+
import { c as p } from "../../../external_modules/classnames-HRMVOjAa.js";
|
|
9
|
+
import '../../../styles/ChatHeaderActions.css';const C = {
|
|
10
|
+
"chat-header-actions": "uikit-chat-header-actions",
|
|
11
|
+
"icon-button": "uikit-icon-button"
|
|
12
|
+
}, K = (I) => {
|
|
13
|
+
const {
|
|
14
|
+
chatHeaderActions: l = ["videoCall", "audioCall", "search", "chatSetting"],
|
|
15
|
+
className: f,
|
|
16
|
+
style: d
|
|
17
|
+
} = I, { searchConfig: r } = U(), { toggleChatSetting: h, toggleChatSearch: g } = z(), { activeConversation: o } = N(), i = u(() => !!E.getService(T.TUICalling.SERVICE.NAME), []), s = (o == null ? void 0 : o.type) === w.TYPES.CONV_GROUP, a = k((c) => {
|
|
18
|
+
var t;
|
|
19
|
+
if (i) {
|
|
20
|
+
if (!((t = o == null ? void 0 : o.userProfile) != null && t.userID))
|
|
21
|
+
throw new Error("User ID is not available in Call.");
|
|
22
|
+
A({
|
|
23
|
+
callType: o.type,
|
|
24
|
+
callMediaType: c,
|
|
25
|
+
userIDList: [o.userProfile.userID]
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}, [o, i]), S = u(() => {
|
|
29
|
+
const c = {
|
|
30
|
+
videoCall: {
|
|
31
|
+
icon: /* @__PURE__ */ e(y, { size: "28px" }),
|
|
32
|
+
onClick: () => a(m.VIDEO),
|
|
33
|
+
show: i && !s
|
|
34
|
+
},
|
|
35
|
+
audioCall: {
|
|
36
|
+
icon: /* @__PURE__ */ e(x, { size: "28px" }),
|
|
37
|
+
onClick: () => a(m.AUDIO),
|
|
38
|
+
show: i && !s
|
|
39
|
+
},
|
|
40
|
+
search: {
|
|
41
|
+
icon: /* @__PURE__ */ e(D, { size: "28px" }),
|
|
42
|
+
onClick: g,
|
|
43
|
+
show: !(r != null && r.hideSearch)
|
|
44
|
+
},
|
|
45
|
+
chatSetting: {
|
|
46
|
+
icon: /* @__PURE__ */ e(b, { size: "28px" }),
|
|
47
|
+
onClick: h,
|
|
48
|
+
show: !0
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
return l.filter((t) => {
|
|
52
|
+
var n;
|
|
53
|
+
return !!((n = c[t]) != null && n.show);
|
|
54
|
+
}).map((t) => {
|
|
55
|
+
const n = c[t];
|
|
56
|
+
return /* @__PURE__ */ e(
|
|
57
|
+
"button",
|
|
58
|
+
{
|
|
59
|
+
className: p(C["icon-button"]),
|
|
60
|
+
onClick: n.onClick,
|
|
61
|
+
children: n.icon
|
|
62
|
+
},
|
|
63
|
+
t
|
|
64
|
+
);
|
|
65
|
+
});
|
|
66
|
+
}, [l, i, a, s, h]);
|
|
67
|
+
return /* @__PURE__ */ e(
|
|
68
|
+
M,
|
|
69
|
+
{
|
|
70
|
+
className: p(C["chat-header-actions"], f),
|
|
71
|
+
style: d,
|
|
72
|
+
children: S
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
};
|
|
76
|
+
export {
|
|
77
|
+
K as ChatHeaderActions
|
|
78
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ChatHeaderActions';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IUserStatus } from '../../../types/user';
|
|
3
|
+
import { IConversationModel } from '@tencentcloud/chat-uikit-engine';
|
|
4
|
+
import { AvatarProps } from 'tuikit-atomicx-react';
|
|
5
|
+
interface IChatHeaderUIProps {
|
|
6
|
+
/** Custom title, if not provided, will use conversation info */
|
|
7
|
+
title: string;
|
|
8
|
+
/** Whether it's a group conversation */
|
|
9
|
+
isGroup: boolean;
|
|
10
|
+
/** Custom avatar image URL */
|
|
11
|
+
avatar?: string;
|
|
12
|
+
/** Whether the peer is typing */
|
|
13
|
+
isPeerTyping?: boolean;
|
|
14
|
+
/** user status */
|
|
15
|
+
userStatus?: IUserStatus | undefined;
|
|
16
|
+
/** Whether to show user status */
|
|
17
|
+
enableUserStatus?: boolean;
|
|
18
|
+
/** Whether it's a system conversation */
|
|
19
|
+
system?: boolean | undefined;
|
|
20
|
+
/** IM conversation model */
|
|
21
|
+
conversation?: IConversationModel | undefined;
|
|
22
|
+
/** Whether to show call features */
|
|
23
|
+
chatHeaderActions?: Array<'videoCall' | 'audioCall' | 'chatSetting' | 'search'> | undefined;
|
|
24
|
+
/** Custom avatar component */
|
|
25
|
+
Avatar?: React.ComponentType<AvatarProps> | undefined;
|
|
26
|
+
/** Additional class names */
|
|
27
|
+
className?: string | undefined;
|
|
28
|
+
/** Additional style */
|
|
29
|
+
style?: React.CSSProperties | undefined;
|
|
30
|
+
/** Search click callback */
|
|
31
|
+
onSearchClick?: (() => void) | undefined;
|
|
32
|
+
}
|
|
33
|
+
declare const ChatHeaderUI: (props: IChatHeaderUIProps) => import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
export default ChatHeaderUI;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { jsx as t, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { useUIKit as O, IconChevronLeft as U } from "@tencentcloud/uikit-base-component-react";
|
|
3
|
+
import { h as g, E as I, m as a, P as T } from "../../../ChatSetting-C7QlwAiq.js";
|
|
4
|
+
import "@tencentcloud/chat-uikit-engine";
|
|
5
|
+
import "@tencentcloud/tui-core";
|
|
6
|
+
import "react";
|
|
7
|
+
import { c as h } from "../../../external_modules/classnames-HRMVOjAa.js";
|
|
8
|
+
import { ChatHeaderActions as x } from "../ChatHeaderActions/ChatHeaderActions.js";
|
|
9
|
+
import '../../../styles/ChatHeaderUI.css';const e = {
|
|
10
|
+
"chat-header": "uikit-chat-header",
|
|
11
|
+
"chat-header__container": "uikit-chat-header__container",
|
|
12
|
+
"chat-header__left": "uikit-chat-header__left",
|
|
13
|
+
"chat-header__back-icon": "uikit-chat-header__back-icon",
|
|
14
|
+
"chat-header__info": "uikit-chat-header__info",
|
|
15
|
+
"chat-header__title": "uikit-chat-header__title",
|
|
16
|
+
"chat-header__typing-indicator": "uikit-chat-header__typing-indicator",
|
|
17
|
+
"chat-header__live": "uikit-chat-header__live",
|
|
18
|
+
"icon-button": "uikit-icon-button"
|
|
19
|
+
}, m = {
|
|
20
|
+
Online: "Online",
|
|
21
|
+
Offline: "Offline"
|
|
22
|
+
}, G = (f) => {
|
|
23
|
+
const {
|
|
24
|
+
title: u,
|
|
25
|
+
avatar: n,
|
|
26
|
+
isPeerTyping: p = !1,
|
|
27
|
+
system: k = !1,
|
|
28
|
+
userStatus: c,
|
|
29
|
+
enableUserStatus: C = !0,
|
|
30
|
+
chatHeaderActions: N,
|
|
31
|
+
Avatar: s,
|
|
32
|
+
isGroup: o,
|
|
33
|
+
className: l,
|
|
34
|
+
style: _
|
|
35
|
+
} = f, { t: r } = O(), { setChatSettingOpen: v, setChatSearchOpen: y } = g(), { setActiveConversation: b } = I();
|
|
36
|
+
if (k)
|
|
37
|
+
return /* @__PURE__ */ t(
|
|
38
|
+
a,
|
|
39
|
+
{
|
|
40
|
+
className: h(e["chat-header"], l),
|
|
41
|
+
style: _,
|
|
42
|
+
children: "System Notice"
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
function d() {
|
|
46
|
+
b(""), v(!1), y(!1);
|
|
47
|
+
}
|
|
48
|
+
return /* @__PURE__ */ t(
|
|
49
|
+
a,
|
|
50
|
+
{
|
|
51
|
+
className: h(e["chat-header"], l),
|
|
52
|
+
style: _,
|
|
53
|
+
children: /* @__PURE__ */ i(a, { className: e["chat-header__container"], children: [
|
|
54
|
+
/* @__PURE__ */ i(a, { className: e["chat-header__left"], children: [
|
|
55
|
+
/* @__PURE__ */ t("button", { className: h(e["icon-button"], e["chat-header__back-icon"]), onClick: d, children: /* @__PURE__ */ t(
|
|
56
|
+
U,
|
|
57
|
+
{
|
|
58
|
+
onClick: d,
|
|
59
|
+
size: "28px"
|
|
60
|
+
}
|
|
61
|
+
) }),
|
|
62
|
+
s ? /* @__PURE__ */ t(s, { src: n || "" }) : /* @__PURE__ */ t(T, { src: n || "" }),
|
|
63
|
+
/* @__PURE__ */ i(a, { className: e["chat-header__info"], children: [
|
|
64
|
+
/* @__PURE__ */ i(a, { className: e["chat-header__title"], children: [
|
|
65
|
+
u,
|
|
66
|
+
!o && p && /* @__PURE__ */ i("span", { className: e["chat-header__typing-indicator"], children: [
|
|
67
|
+
" ",
|
|
68
|
+
r("TUIChat.Typing")
|
|
69
|
+
] })
|
|
70
|
+
] }),
|
|
71
|
+
!o && C && ((c == null ? void 0 : c.statusType) === 1 ? /* @__PURE__ */ t(a, { className: e["chat-header__live"], children: r(`TUIChat.${m.Online}`) }) : /* @__PURE__ */ t(a, { className: e["chat-header__live"], children: r(`TUIChat.${m.Offline}`) }))
|
|
72
|
+
] })
|
|
73
|
+
] }),
|
|
74
|
+
/* @__PURE__ */ t(
|
|
75
|
+
x,
|
|
76
|
+
{
|
|
77
|
+
chatHeaderActions: N
|
|
78
|
+
}
|
|
79
|
+
)
|
|
80
|
+
] })
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
};
|
|
84
|
+
export {
|
|
85
|
+
G as default
|
|
86
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface onChangeParams {
|
|
3
|
+
checked?: boolean;
|
|
4
|
+
value?: any;
|
|
5
|
+
}
|
|
6
|
+
interface SelectProps {
|
|
7
|
+
checked?: boolean;
|
|
8
|
+
className?: string | undefined;
|
|
9
|
+
onChange?: (data?: onChangeParams) => void;
|
|
10
|
+
value?: any;
|
|
11
|
+
id?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function Checkbox<T extends SelectProps>(props: React.PropsWithChildren<T>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsxs as m, jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { useState as k } from "react";
|
|
3
|
+
import { Icon as p } from "../Icon/Icon.js";
|
|
4
|
+
import { IconTypes as l } from "../Icon/type.js";
|
|
5
|
+
import '../../styles/index2.css';function g(a) {
|
|
6
|
+
const {
|
|
7
|
+
checked: n = !1,
|
|
8
|
+
className: s,
|
|
9
|
+
onChange: t,
|
|
10
|
+
value: o = "",
|
|
11
|
+
id: r
|
|
12
|
+
} = a, [e, i] = k(n), d = (h) => {
|
|
13
|
+
i(h.target.checked), t && t({
|
|
14
|
+
value: o,
|
|
15
|
+
checked: h.target.checked
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
return /* @__PURE__ */ m(
|
|
19
|
+
"div",
|
|
20
|
+
{
|
|
21
|
+
className: `${s} checkbox`,
|
|
22
|
+
role: "menuitem",
|
|
23
|
+
tabIndex: 0,
|
|
24
|
+
children: [
|
|
25
|
+
/* @__PURE__ */ c("input", { id: r, className: "checkbox-input", onChange: d, type: "checkbox", checked: e, value: o }),
|
|
26
|
+
!e && /* @__PURE__ */ c("i", { className: "checkbox-default" }),
|
|
27
|
+
e && /* @__PURE__ */ c(p, { type: l.RIGHT, width: 14, height: 14 })
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
g as Checkbox
|
|
34
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { jsx as t, jsxs as o, Fragment as m } from "react/jsx-runtime";
|
|
2
|
+
import F, { useState as S, useMemo as w } from "react";
|
|
3
|
+
import { useUIKit as L } from "@tencentcloud/uikit-base-component-react";
|
|
4
|
+
import { TUIContactContextProvider as N } from "../../context/ContactContext.js";
|
|
5
|
+
import { s as T } from "../../ChatSetting-C7QlwAiq.js";
|
|
6
|
+
import "@tencentcloud/chat-uikit-engine";
|
|
7
|
+
import "@tencentcloud/tui-core";
|
|
8
|
+
import { useUIManagerState as k } from "../../states/UIManagerState.js";
|
|
9
|
+
import g from "./hooks/useTUIContact.js";
|
|
10
|
+
import { ContactList as x } from "./ContactList/ContactList.js";
|
|
11
|
+
import { ContactSearch as l } from "../ContactSearch/ContactSearch.js";
|
|
12
|
+
import { Icon as h } from "../Icon/Icon.js";
|
|
13
|
+
import { IconTypes as p } from "../Icon/type.js";
|
|
14
|
+
import '../../styles/index.css';/* empty css */
|
|
15
|
+
function y(f) {
|
|
16
|
+
const { children: u } = f, { t: C } = L(), { setActiveContact: i } = k("TUIContact"), [e, c] = S(!1), I = () => {
|
|
17
|
+
i(), c(!0);
|
|
18
|
+
}, v = () => {
|
|
19
|
+
i(), c(!1);
|
|
20
|
+
}, {
|
|
21
|
+
friendList: n,
|
|
22
|
+
blockList: U,
|
|
23
|
+
blocklistProfile: r,
|
|
24
|
+
friendApplicationList: a,
|
|
25
|
+
isShowContactList: s,
|
|
26
|
+
setShowContactList: d
|
|
27
|
+
} = g(), A = w(
|
|
28
|
+
() => ({
|
|
29
|
+
friendList: n,
|
|
30
|
+
blockList: U,
|
|
31
|
+
blocklistProfile: r,
|
|
32
|
+
friendApplicationList: a,
|
|
33
|
+
isShowContactList: s,
|
|
34
|
+
setShowContactList: d
|
|
35
|
+
}),
|
|
36
|
+
[
|
|
37
|
+
n,
|
|
38
|
+
r,
|
|
39
|
+
a,
|
|
40
|
+
s,
|
|
41
|
+
d
|
|
42
|
+
]
|
|
43
|
+
);
|
|
44
|
+
return /* @__PURE__ */ t(N, { value: A, children: u || /* @__PURE__ */ o("div", { className: `tui-contacts ${T ? "tui-contacts-h5" : ""} `, children: [
|
|
45
|
+
!e && /* @__PURE__ */ o(m, { children: [
|
|
46
|
+
/* @__PURE__ */ o("div", { className: "tui-contacts-header", children: [
|
|
47
|
+
/* @__PURE__ */ t("div", { className: "tui-contact-input", children: /* @__PURE__ */ t(l, {}) }),
|
|
48
|
+
/* @__PURE__ */ t(
|
|
49
|
+
h,
|
|
50
|
+
{
|
|
51
|
+
onClick: I,
|
|
52
|
+
type: p.ADDFRIEND,
|
|
53
|
+
width: 24,
|
|
54
|
+
height: 24
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
] }),
|
|
58
|
+
/* @__PURE__ */ t(x, {})
|
|
59
|
+
] }),
|
|
60
|
+
e && /* @__PURE__ */ o(m, { children: [
|
|
61
|
+
/* @__PURE__ */ o("div", { className: "tui-contacts-add-header", children: [
|
|
62
|
+
/* @__PURE__ */ t(
|
|
63
|
+
h,
|
|
64
|
+
{
|
|
65
|
+
onClick: v,
|
|
66
|
+
type: p.BACK,
|
|
67
|
+
width: 9,
|
|
68
|
+
height: 16
|
|
69
|
+
}
|
|
70
|
+
),
|
|
71
|
+
/* @__PURE__ */ t("div", { className: "tui-contacts-add-header-title", children: C("TUIContact.Add Friend") })
|
|
72
|
+
] }),
|
|
73
|
+
/* @__PURE__ */ t(l, {})
|
|
74
|
+
] })
|
|
75
|
+
] }) });
|
|
76
|
+
}
|
|
77
|
+
const G = F.memo(y);
|
|
78
|
+
export {
|
|
79
|
+
G as Contact,
|
|
80
|
+
y as UnMemoizedContact
|
|
81
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PropsWithChildren, default as React } from 'react';
|
|
2
|
+
interface TUIContactInfoProps {
|
|
3
|
+
className?: string | undefined;
|
|
4
|
+
showChats?: () => void;
|
|
5
|
+
}
|
|
6
|
+
export declare function UnMemoizedContactInfo<T extends TUIContactInfoProps>(props: PropsWithChildren<T>): React.ReactElement;
|
|
7
|
+
export declare const ContactInfo: React.MemoExoticComponent<typeof UnMemoizedContactInfo>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as i, Fragment as p, jsxs as f } from "react/jsx-runtime";
|
|
2
|
+
import m from "react";
|
|
3
|
+
import { useUIManagerState as d } from "../../../states/UIManagerState.js";
|
|
4
|
+
import "@tencentcloud/chat-uikit-engine";
|
|
5
|
+
import { s as n } from "../../../ChatSetting-C7QlwAiq.js";
|
|
6
|
+
import "@tencentcloud/uikit-base-component-react";
|
|
7
|
+
import "@tencentcloud/tui-core";
|
|
8
|
+
import { AddFriendInfo as s } from "./addFriendInfo.js";
|
|
9
|
+
import { BlockInfo as l } from "./blockInfo.js";
|
|
10
|
+
import { FriendApplicationInfo as u } from "./friendApplication.js";
|
|
11
|
+
import { FriendInfo as I } from "./friendInfo.js";
|
|
12
|
+
import { GroupInfo as y } from "./groupInfo.js";
|
|
13
|
+
import '../../../styles/ContactInfo.css';function h(e) {
|
|
14
|
+
const { showChats: o } = e, { contactData: r } = d("TUIContact");
|
|
15
|
+
return r != null && r.type ? /* @__PURE__ */ f("div", { className: `tui-contact-info ${n ? "tui-contact-info-h5" : ""} `, children: [
|
|
16
|
+
(r == null ? void 0 : r.type) === "addFriend" && /* @__PURE__ */ i(s, { profile: r == null ? void 0 : r.data }),
|
|
17
|
+
(r == null ? void 0 : r.type) === "friend" && /* @__PURE__ */ i(I, { showChats: o, friend: r == null ? void 0 : r.data }),
|
|
18
|
+
(r == null ? void 0 : r.type) === "block" && /* @__PURE__ */ i(l, { profile: r == null ? void 0 : r.data }),
|
|
19
|
+
(r == null ? void 0 : r.type) === "group" && /* @__PURE__ */ i(y, { showChats: o, group: r == null ? void 0 : r.data }),
|
|
20
|
+
(r == null ? void 0 : r.type) === "friendApplication" && /* @__PURE__ */ i(u, { application: r == null ? void 0 : r.data })
|
|
21
|
+
] }) : /* @__PURE__ */ i(p, { children: " " });
|
|
22
|
+
}
|
|
23
|
+
const w = m.memo(h);
|
|
24
|
+
export {
|
|
25
|
+
w as ContactInfo,
|
|
26
|
+
h as UnMemoizedContactInfo
|
|
27
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Profile } from '@tencentcloud/chat';
|
|
3
|
+
interface Props {
|
|
4
|
+
profile: Profile;
|
|
5
|
+
}
|
|
6
|
+
export declare function UnMemoizedAddFriendInfo<T extends Props>(props: T): React.ReactElement;
|
|
7
|
+
export declare const AddFriendInfo: React.MemoExoticComponent<typeof UnMemoizedAddFriendInfo>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { jsxs as n, Fragment as k, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import b, { useState as o } from "react";
|
|
3
|
+
import { useUIKit as C } from "@tencentcloud/uikit-base-component-react";
|
|
4
|
+
import E from "./hooks/useContactInfo.js";
|
|
5
|
+
import { BasicInfo as F } from "./basicInfo.js";
|
|
6
|
+
import { DivWithEdit as U } from "../../DivWithEdit/DivWithEdit.js";
|
|
7
|
+
function S(d) {
|
|
8
|
+
const { profile: r } = d, { userID: m } = r, { t: i } = C(), [l, c] = o(""), [s, f] = o(""), [a, h] = o(""), [p, u] = o(!1), {
|
|
9
|
+
addFriend: v
|
|
10
|
+
} = E(), N = () => {
|
|
11
|
+
c("remark");
|
|
12
|
+
}, I = async () => {
|
|
13
|
+
await v({
|
|
14
|
+
userID: m,
|
|
15
|
+
remark: s,
|
|
16
|
+
wording: a
|
|
17
|
+
}), u(!0);
|
|
18
|
+
}, g = (e) => {
|
|
19
|
+
f(e == null ? void 0 : e.value), c("");
|
|
20
|
+
}, x = (e) => {
|
|
21
|
+
h(e.target.value);
|
|
22
|
+
};
|
|
23
|
+
return /* @__PURE__ */ n(k, { children: [
|
|
24
|
+
/* @__PURE__ */ t(F, { profile: r }),
|
|
25
|
+
p ? /* @__PURE__ */ t("div", { className: "tui-contact-info-content", children: /* @__PURE__ */ n("div", { className: "content-item", children: [
|
|
26
|
+
/* @__PURE__ */ t("p", { className: "content-item-label", children: i("TUIContact.verification info") }),
|
|
27
|
+
/* @__PURE__ */ t("p", { className: "content-item-text", children: a })
|
|
28
|
+
] }) }) : /* @__PURE__ */ n("div", { className: "tui-contact-info-content", children: [
|
|
29
|
+
/* @__PURE__ */ n("div", { className: "content-item-wording", children: [
|
|
30
|
+
/* @__PURE__ */ t("p", { className: "content-item-label", children: i("TUIContact.Enter the verification info") }),
|
|
31
|
+
/* @__PURE__ */ t("textarea", { className: "content-item-wording-text", value: a, onChange: (e) => {
|
|
32
|
+
x(e);
|
|
33
|
+
} })
|
|
34
|
+
] }),
|
|
35
|
+
/* @__PURE__ */ n("div", { className: "content-item", children: [
|
|
36
|
+
/* @__PURE__ */ t("p", { className: "content-item-label", children: i("TUIContact.remark") }),
|
|
37
|
+
/* @__PURE__ */ t(
|
|
38
|
+
U,
|
|
39
|
+
{
|
|
40
|
+
name: "remark",
|
|
41
|
+
className: "content-item-text",
|
|
42
|
+
value: s,
|
|
43
|
+
type: "text",
|
|
44
|
+
toggle: N,
|
|
45
|
+
isEdit: l === "remark",
|
|
46
|
+
confirm: g,
|
|
47
|
+
close: () => {
|
|
48
|
+
c("");
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
] }),
|
|
53
|
+
/* @__PURE__ */ t("div", { className: "content-btn-container", children: /* @__PURE__ */ t("div", { className: "content-item-btn confirm-btn", role: "button", tabIndex: 0, onClick: I, children: i("TUIContact.Send application") }) })
|
|
54
|
+
] })
|
|
55
|
+
] });
|
|
56
|
+
}
|
|
57
|
+
const D = b.memo(S);
|
|
58
|
+
export {
|
|
59
|
+
D as AddFriendInfo,
|
|
60
|
+
S as UnMemoizedAddFriendInfo
|
|
61
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Profile } from '@tencentcloud/chat';
|
|
3
|
+
interface Props {
|
|
4
|
+
profile: Profile;
|
|
5
|
+
}
|
|
6
|
+
export declare function UnMemoizedBasicInfo<T extends Props>(props: T): React.ReactElement;
|
|
7
|
+
export declare const BasicInfo: React.MemoExoticComponent<typeof UnMemoizedBasicInfo>;
|
|
8
|
+
export {};
|