@tencentcloud/chat-uikit-react 2.2.5 → 2.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +16 -12
- package/.lintstagedrc.json +1 -1
- package/CHANGELOG.md +18 -0
- package/dist/cjs/assets/fonts/iconfont.ttf +0 -0
- package/dist/cjs/assets/fonts/iconfont.woff +0 -0
- package/dist/cjs/assets/fonts/iconfont.woff2 +0 -0
- package/dist/cjs/components/Avatar/Avatar.d.ts +4 -4
- package/dist/cjs/components/Checkbox/index.d.ts +2 -2
- package/dist/cjs/components/ConversationCreate/ConversationCreatGroupDetail.js +1 -1
- package/dist/cjs/components/ConversationCreate/ConversationCreate.js +1 -1
- package/dist/cjs/components/ConversationCreate/ConversationCreateUserSelectList.js +1 -1
- package/dist/cjs/components/ConversationCreate/hooks/useConversationCreate.js +1 -1
- package/dist/cjs/components/ConversationPreview/ConversationListContainer.d.ts +2 -2
- package/dist/cjs/components/ConversationPreview/ConversationPreview.d.ts +8 -8
- package/dist/cjs/components/ConversationPreview/ConversationPreview.js +1 -1
- package/dist/cjs/components/ConversationPreview/ConversationPreviewContent.d.ts +2 -2
- package/dist/cjs/components/ConversationPreview/ConversationPreviewContent.js +1 -1
- package/dist/cjs/components/ConversationPreview/utils.js +1 -1
- package/dist/cjs/components/ConversationSearch/ConversationSearchResult.d.ts +3 -3
- package/dist/cjs/components/ConversationSearch/ConversationSearchResult.js +1 -1
- package/dist/cjs/components/Icon/Icon.d.ts +3 -3
- package/dist/cjs/components/Icon/config.js +1 -1
- package/dist/cjs/components/Icon/images/video-call.svg.js +1 -0
- package/dist/cjs/components/Icon/images/voice-call.svg.js +1 -0
- package/dist/cjs/components/Icon/type.d.ts +3 -1
- package/dist/cjs/components/Icon/type.js +1 -1
- package/dist/cjs/components/InfiniteScrollPaginator/InfiniteScroll.d.ts +4 -4
- package/dist/cjs/components/Input/Input.d.ts +4 -4
- package/dist/cjs/components/Model/index.d.ts +2 -2
- package/dist/cjs/components/Plugins/index.d.ts +4 -4
- package/dist/cjs/components/Popup/index.d.ts +2 -2
- package/dist/cjs/components/Switch/Switch.d.ts +2 -2
- package/dist/cjs/components/TUIChat/TUIChat.d.ts +15 -14
- package/dist/cjs/components/TUIChat/TUIChat.js +1 -1
- package/dist/cjs/components/TUIChat/TUIChatState.js +1 -1
- package/dist/cjs/components/TUIChat/index.js +1 -0
- package/dist/cjs/components/TUIChat/server.js +1 -0
- package/dist/cjs/components/TUIChat/utils.js +1 -0
- package/dist/cjs/components/TUIChatHeader/TUIChatHeader.d.ts +6 -5
- package/dist/cjs/components/TUIChatHeader/TUIChatHeader.js +1 -1
- package/dist/cjs/components/TUIChatHeader/TUIChatHeaderDefault.d.ts +6 -5
- package/dist/cjs/components/TUIChatHeader/TUIChatHeaderDefault.js +1 -1
- package/dist/cjs/components/TUIContact/TUIContact.d.ts +3 -3
- package/dist/cjs/components/TUIContact/TUIContact.js +1 -1
- package/dist/cjs/components/TUIContact/TUIContactInfo/TUIContactInfo.d.ts +3 -3
- package/dist/cjs/components/TUIContact/TUIContactInfo/TUIContactInfo.js +1 -1
- package/dist/cjs/components/TUIContact/TUIContactInfo/basicInfo.js +1 -1
- package/dist/cjs/components/TUIContact/TUIContactInfo/blockInfo.js +1 -1
- package/dist/cjs/components/TUIContact/TUIContactInfo/friendApplication.js +1 -1
- package/dist/cjs/components/TUIContact/TUIContactInfo/friendInfo.js +1 -1
- package/dist/cjs/components/TUIContact/TUIContactInfo/groupInfo.js +1 -1
- package/dist/cjs/components/TUIContact/TUIContactInfo/hooks/useContactInfo.js +1 -1
- package/dist/cjs/components/TUIContact/TUIContactList/TUIContactList.d.ts +3 -3
- package/dist/cjs/components/TUIContact/TUIContactList/TUIContactList.js +1 -1
- package/dist/cjs/components/TUIContact/hooks/useTUIContact.js +1 -1
- package/dist/cjs/components/TUIContactSearch/TUIContactSearch.js +1 -1
- package/dist/cjs/components/TUIContactSearch/hooks/useContactSearch.js +1 -1
- package/dist/cjs/components/TUIConversation/TUIConversation.d.ts +2 -2
- package/dist/cjs/components/TUIConversationList/TUIConversationList.d.ts +6 -6
- package/dist/cjs/components/TUIConversationList/TUIConversationList.js +1 -1
- package/dist/cjs/components/TUIConversationList/hooks/useConversationUpdate.js +1 -1
- package/dist/cjs/components/TUIManage/TUIManage.d.ts +2 -2
- package/dist/cjs/components/TUIManage/TUIManage.js +1 -1
- package/dist/cjs/components/TUIMessage/MessageAudio.js +1 -1
- package/dist/cjs/components/TUIMessage/MessageAvatar.js +1 -1
- package/dist/cjs/components/TUIMessage/MessageBubble.js +1 -1
- package/dist/cjs/components/TUIMessage/MessageContext.d.ts +2 -2
- package/dist/cjs/components/TUIMessage/MessageContext.js +1 -1
- package/dist/cjs/components/TUIMessage/MessageCustom.js +1 -1
- package/dist/cjs/components/TUIMessage/MessageName.js +1 -1
- package/dist/cjs/components/TUIMessage/MessagePlugins.d.ts +4 -4
- package/dist/cjs/components/TUIMessage/MessagePlugins.js +1 -1
- package/dist/cjs/components/TUIMessage/MessageProgress.js +1 -1
- package/dist/cjs/components/TUIMessage/MessageRevoke.js +1 -1
- package/dist/cjs/components/TUIMessage/MessageStatus.js +1 -1
- package/dist/cjs/components/TUIMessage/MessageSystem.js +1 -1
- package/dist/cjs/components/TUIMessage/MessageText.js +1 -1
- package/dist/cjs/components/TUIMessage/MessageTip.js +1 -1
- package/dist/cjs/components/TUIMessage/TUIMessage.d.ts +19 -19
- package/dist/cjs/components/TUIMessage/TUIMessage.js +1 -1
- package/dist/cjs/components/TUIMessage/TUIMessageDefault.js +1 -1
- package/dist/cjs/components/TUIMessage/hooks/useMessageHandler.js +1 -1
- package/dist/cjs/components/TUIMessage/hooks/useMessageReply.js +1 -1
- package/dist/cjs/components/TUIMessage/utils/index.js +1 -1
- package/dist/cjs/components/TUIMessageInput/InputPluginsDefalut.d.ts +2 -2
- package/dist/cjs/components/TUIMessageInput/InputPluginsDefalut.js +1 -1
- package/dist/cjs/components/TUIMessageInput/InputQuoteDefalut.js +1 -1
- package/dist/cjs/components/TUIMessageInput/TUIForward.js +1 -1
- package/dist/cjs/components/TUIMessageInput/TUIMessageInput.d.ts +7 -7
- package/dist/cjs/components/TUIMessageInput/TUIMessageInput.js +1 -1
- package/dist/cjs/components/TUIMessageInput/TUIMessageInputDefault.d.ts +2 -2
- package/dist/cjs/components/TUIMessageInput/TUIMessageInputDefault.js +1 -1
- package/dist/cjs/components/TUIMessageInput/hooks/useHandleForwardMessage.js +1 -1
- package/dist/cjs/components/TUIMessageInput/hooks/useHandleQuoteMessage.js +1 -1
- package/dist/cjs/components/TUIMessageInput/hooks/useMessageInputText.js +1 -1
- package/dist/cjs/components/TUIMessageInput/hooks/useUploadPicker.js +1 -1
- package/dist/cjs/components/TUIMessageList/TUIMessageList.d.ts +2 -2
- package/dist/cjs/components/TUIMessageList/TUIMessageList.js +1 -1
- package/dist/cjs/components/TUIMessageList/hooks/useMessageListElement.js +1 -1
- package/dist/cjs/components/TUIProfile/TUIProfile.d.ts +3 -3
- package/dist/cjs/components/TUIProfile/TUIProfile.js +1 -1
- package/dist/cjs/components/TUIProfile/TUIProfileDefault.d.ts +2 -2
- package/dist/cjs/components/TUIProfile/TUIProfileDefault.js +1 -1
- package/dist/cjs/components/Toast/index.d.ts +2 -2
- package/dist/cjs/components/{untils.js → utils.js} +1 -1
- package/dist/cjs/context/ComponentContext.d.ts +12 -12
- package/dist/cjs/context/LanguageContext.js +1 -0
- package/dist/cjs/context/TUIChatActionContext.d.ts +5 -4
- package/dist/cjs/context/TUIChatStateContext.d.ts +5 -5
- package/dist/cjs/context/TUIContactContext.d.ts +4 -4
- package/dist/cjs/context/TUIConversationContext.js +1 -1
- package/dist/cjs/context/TUIMessageContext.d.ts +17 -17
- package/dist/cjs/context/TUIMessageInputContext.d.ts +4 -4
- package/dist/cjs/context/ThemeContext.js +1 -0
- package/dist/cjs/context/UIKitContext.d.ts +25 -0
- package/dist/cjs/context/UIKitContext.js +1 -0
- package/dist/cjs/context/UIManagerContext.d.ts +46 -0
- package/dist/cjs/context/UIManagerContext.js +1 -0
- package/dist/cjs/hooks/useConversation.d.ts +2 -2
- package/dist/cjs/index.css +1 -2
- package/dist/cjs/index.d.css +1345 -1547
- package/dist/cjs/index.d.ts +2 -4
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/locales/en-US/index.js +1 -1
- package/dist/cjs/locales/index.js +1 -1
- package/dist/cjs/locales/zh-CN/index.js +1 -1
- package/dist/cjs/locales/zh-TW/TUIChat.js +1 -0
- package/dist/cjs/locales/zh-TW/TUIContact.js +1 -0
- package/dist/cjs/locales/zh-TW/TUIConversation.js +1 -0
- package/dist/cjs/locales/zh-TW/TUIProfile.js +1 -0
- package/dist/cjs/locales/zh-TW/index.js +1 -0
- package/dist/esm/assets/fonts/iconfont.ttf +0 -0
- package/dist/esm/assets/fonts/iconfont.woff +0 -0
- package/dist/esm/assets/fonts/iconfont.woff2 +0 -0
- package/dist/esm/components/Avatar/Avatar.d.ts +4 -4
- package/dist/esm/components/Checkbox/index.d.ts +2 -2
- package/dist/esm/components/ConversationCreate/ConversationCreatGroupDetail.js +1 -1
- package/dist/esm/components/ConversationCreate/ConversationCreate.js +1 -1
- package/dist/esm/components/ConversationCreate/ConversationCreateUserSelectList.js +1 -1
- package/dist/esm/components/ConversationCreate/hooks/useConversationCreate.js +1 -1
- package/dist/esm/components/ConversationPreview/ConversationListContainer.d.ts +2 -2
- package/dist/esm/components/ConversationPreview/ConversationPreview.d.ts +8 -8
- package/dist/esm/components/ConversationPreview/ConversationPreview.js +1 -1
- package/dist/esm/components/ConversationPreview/ConversationPreviewContent.d.ts +2 -2
- package/dist/esm/components/ConversationPreview/ConversationPreviewContent.js +1 -1
- package/dist/esm/components/ConversationPreview/utils.js +1 -1
- package/dist/esm/components/ConversationSearch/ConversationSearchResult.d.ts +3 -3
- package/dist/esm/components/ConversationSearch/ConversationSearchResult.js +1 -1
- package/dist/esm/components/Icon/Icon.d.ts +3 -3
- package/dist/esm/components/Icon/config.js +1 -1
- package/dist/esm/components/Icon/images/video-call.svg.js +1 -0
- package/dist/esm/components/Icon/images/voice-call.svg.js +1 -0
- package/dist/esm/components/Icon/type.d.ts +3 -1
- package/dist/esm/components/Icon/type.js +1 -1
- package/dist/esm/components/InfiniteScrollPaginator/InfiniteScroll.d.ts +4 -4
- package/dist/esm/components/Input/Input.d.ts +4 -4
- package/dist/esm/components/Model/index.d.ts +2 -2
- package/dist/esm/components/Plugins/index.d.ts +4 -4
- package/dist/esm/components/Popup/index.d.ts +2 -2
- package/dist/esm/components/Switch/Switch.d.ts +2 -2
- package/dist/esm/components/TUIChat/TUIChat.d.ts +15 -14
- package/dist/esm/components/TUIChat/TUIChat.js +1 -1
- package/dist/esm/components/TUIChat/TUIChatState.js +1 -1
- package/dist/esm/components/TUIChat/index.js +1 -0
- package/dist/esm/components/TUIChat/server.js +1 -0
- package/dist/esm/components/TUIChat/utils.js +1 -0
- package/dist/esm/components/TUIChatHeader/TUIChatHeader.d.ts +6 -5
- package/dist/esm/components/TUIChatHeader/TUIChatHeader.js +1 -1
- package/dist/esm/components/TUIChatHeader/TUIChatHeaderDefault.d.ts +6 -5
- package/dist/esm/components/TUIChatHeader/TUIChatHeaderDefault.js +1 -1
- package/dist/esm/components/TUIContact/TUIContact.d.ts +3 -3
- package/dist/esm/components/TUIContact/TUIContact.js +1 -1
- package/dist/esm/components/TUIContact/TUIContactInfo/TUIContactInfo.d.ts +3 -3
- package/dist/esm/components/TUIContact/TUIContactInfo/TUIContactInfo.js +1 -1
- package/dist/esm/components/TUIContact/TUIContactInfo/basicInfo.js +1 -1
- package/dist/esm/components/TUIContact/TUIContactInfo/blockInfo.js +1 -1
- package/dist/esm/components/TUIContact/TUIContactInfo/friendApplication.js +1 -1
- package/dist/esm/components/TUIContact/TUIContactInfo/friendInfo.js +1 -1
- package/dist/esm/components/TUIContact/TUIContactInfo/groupInfo.js +1 -1
- package/dist/esm/components/TUIContact/TUIContactInfo/hooks/useContactInfo.js +1 -1
- package/dist/esm/components/TUIContact/TUIContactList/TUIContactList.d.ts +3 -3
- package/dist/esm/components/TUIContact/TUIContactList/TUIContactList.js +1 -1
- package/dist/esm/components/TUIContact/hooks/useTUIContact.js +1 -1
- package/dist/esm/components/TUIContactSearch/TUIContactSearch.js +1 -1
- package/dist/esm/components/TUIContactSearch/hooks/useContactSearch.js +1 -1
- package/dist/esm/components/TUIConversation/TUIConversation.d.ts +2 -2
- package/dist/esm/components/TUIConversationList/TUIConversationList.d.ts +6 -6
- package/dist/esm/components/TUIConversationList/TUIConversationList.js +1 -1
- package/dist/esm/components/TUIConversationList/hooks/useConversationUpdate.js +1 -1
- package/dist/esm/components/TUIManage/TUIManage.d.ts +2 -2
- package/dist/esm/components/TUIManage/TUIManage.js +1 -1
- package/dist/esm/components/TUIMessage/MessageAudio.js +1 -1
- package/dist/esm/components/TUIMessage/MessageAvatar.js +1 -1
- package/dist/esm/components/TUIMessage/MessageBubble.js +1 -1
- package/dist/esm/components/TUIMessage/MessageContext.d.ts +2 -2
- package/dist/esm/components/TUIMessage/MessageContext.js +1 -1
- package/dist/esm/components/TUIMessage/MessageCustom.js +1 -1
- package/dist/esm/components/TUIMessage/MessageName.js +1 -1
- package/dist/esm/components/TUIMessage/MessagePlugins.d.ts +4 -4
- package/dist/esm/components/TUIMessage/MessagePlugins.js +1 -1
- package/dist/esm/components/TUIMessage/MessageProgress.js +1 -1
- package/dist/esm/components/TUIMessage/MessageRevoke.js +1 -1
- package/dist/esm/components/TUIMessage/MessageStatus.js +1 -1
- package/dist/esm/components/TUIMessage/MessageSystem.js +1 -1
- package/dist/esm/components/TUIMessage/MessageText.js +1 -1
- package/dist/esm/components/TUIMessage/MessageTip.js +1 -1
- package/dist/esm/components/TUIMessage/TUIMessage.d.ts +19 -19
- package/dist/esm/components/TUIMessage/TUIMessage.js +1 -1
- package/dist/esm/components/TUIMessage/TUIMessageDefault.js +1 -1
- package/dist/esm/components/TUIMessage/hooks/useMessageHandler.js +1 -1
- package/dist/esm/components/TUIMessage/hooks/useMessageReply.js +1 -1
- package/dist/esm/components/TUIMessage/utils/index.js +1 -1
- package/dist/esm/components/TUIMessageInput/InputPluginsDefalut.d.ts +2 -2
- package/dist/esm/components/TUIMessageInput/InputPluginsDefalut.js +1 -1
- package/dist/esm/components/TUIMessageInput/InputQuoteDefalut.js +1 -1
- package/dist/esm/components/TUIMessageInput/TUIForward.js +1 -1
- package/dist/esm/components/TUIMessageInput/TUIMessageInput.d.ts +7 -7
- package/dist/esm/components/TUIMessageInput/TUIMessageInput.js +1 -1
- package/dist/esm/components/TUIMessageInput/TUIMessageInputDefault.d.ts +2 -2
- package/dist/esm/components/TUIMessageInput/TUIMessageInputDefault.js +1 -1
- package/dist/esm/components/TUIMessageInput/hooks/useHandleForwardMessage.js +1 -1
- package/dist/esm/components/TUIMessageInput/hooks/useHandleQuoteMessage.js +1 -1
- package/dist/esm/components/TUIMessageInput/hooks/useMessageInputText.js +1 -1
- package/dist/esm/components/TUIMessageInput/hooks/useUploadPicker.js +1 -1
- package/dist/esm/components/TUIMessageList/TUIMessageList.d.ts +2 -2
- package/dist/esm/components/TUIMessageList/TUIMessageList.js +1 -1
- package/dist/esm/components/TUIMessageList/hooks/useMessageListElement.js +1 -1
- package/dist/esm/components/TUIProfile/TUIProfile.d.ts +3 -3
- package/dist/esm/components/TUIProfile/TUIProfile.js +1 -1
- package/dist/esm/components/TUIProfile/TUIProfileDefault.d.ts +2 -2
- package/dist/esm/components/TUIProfile/TUIProfileDefault.js +1 -1
- package/dist/esm/components/Toast/index.d.ts +2 -2
- package/dist/esm/components/utils.js +1 -0
- package/dist/esm/context/ComponentContext.d.ts +12 -12
- package/dist/esm/context/LanguageContext.js +1 -0
- package/dist/esm/context/TUIChatActionContext.d.ts +5 -4
- package/dist/esm/context/TUIChatStateContext.d.ts +5 -5
- package/dist/esm/context/TUIContactContext.d.ts +4 -4
- package/dist/esm/context/TUIConversationContext.js +1 -1
- package/dist/esm/context/TUIMessageContext.d.ts +17 -17
- package/dist/esm/context/TUIMessageInputContext.d.ts +4 -4
- package/dist/esm/context/ThemeContext.js +1 -0
- package/dist/esm/context/UIKitContext.d.ts +25 -0
- package/dist/esm/context/UIKitContext.js +1 -0
- package/dist/esm/context/UIManagerContext.d.ts +46 -0
- package/dist/esm/context/UIManagerContext.js +1 -0
- package/dist/esm/hooks/useConversation.d.ts +2 -2
- package/dist/esm/index.css +1 -2
- package/dist/esm/index.d.css +1345 -1547
- package/dist/esm/index.d.ts +2 -4
- package/dist/esm/index.js +1 -1
- package/dist/esm/locales/en-US/index.js +1 -1
- package/dist/esm/locales/index.js +1 -1
- package/dist/esm/locales/zh-CN/index.js +1 -1
- package/dist/esm/locales/zh-TW/TUIChat.js +1 -0
- package/dist/esm/locales/zh-TW/TUIContact.js +1 -0
- package/dist/esm/locales/zh-TW/TUIConversation.js +1 -0
- package/dist/esm/locales/zh-TW/TUIProfile.js +1 -0
- package/dist/esm/locales/zh-TW/index.js +1 -0
- package/package.json +5 -3
- package/rollup.config.js +1 -1
- package/src/assets/fonts/iconfont.ttf +0 -0
- package/src/assets/fonts/iconfont.woff +0 -0
- package/src/assets/fonts/iconfont.woff2 +0 -0
- package/src/components/Avatar/styles/index.scss +11 -4
- package/src/components/Checkbox/styles/color.scss +17 -6
- package/src/components/ConversationCreate/ConversationCreatGroupDetail.tsx +4 -4
- package/src/components/ConversationCreate/ConversationCreate.tsx +2 -2
- package/src/components/ConversationCreate/ConversationCreateUserSelectList.tsx +3 -2
- package/src/components/ConversationCreate/hooks/useConversationCreate.tsx +5 -5
- package/src/components/ConversationCreate/styles/ConversationCreatGroupDetail.scss +7 -16
- package/src/components/ConversationCreate/styles/conversationCreateSelectView.scss +13 -8
- package/src/components/ConversationCreate/styles/conversationGroupTypeInfo.scss +20 -21
- package/src/components/ConversationCreate/styles/index.scss +30 -17
- package/src/components/ConversationPreview/ConversationPreview.tsx +21 -21
- package/src/components/ConversationPreview/ConversationPreviewContent.tsx +4 -2
- package/src/components/ConversationPreview/styles/index.scss +20 -20
- package/src/components/ConversationPreview/utils.tsx +3 -2
- package/src/components/DivWithEdit/styles/index.scss +30 -10
- package/src/components/Icon/config.ts +14 -4
- package/src/components/Icon/images/video-call.svg +3 -0
- package/src/components/Icon/images/voice-call.svg +3 -0
- package/src/components/Icon/type.ts +2 -0
- package/src/components/Input/styles/index.scss +22 -6
- package/src/components/Plugins/styles/color.scss +3 -11
- package/src/components/Profile/styles/index.scss +12 -3
- package/src/components/TUIChat/TUIChat.tsx +40 -35
- package/src/components/TUIChat/TUIChatState.tsx +41 -41
- package/src/components/TUIChat/index.ts +3 -0
- package/src/components/TUIChat/server.ts +44 -0
- package/src/components/TUIChat/styles/layout.scss +7 -2
- package/src/components/TUIChat/utils.ts +72 -0
- package/src/components/TUIChatHeader/TUIChatHeader.tsx +10 -7
- package/src/components/TUIChatHeader/TUIChatHeaderDefault.tsx +74 -31
- package/src/components/TUIChatHeader/styles/layout.scss +16 -9
- package/src/components/TUIContact/TUIContact.tsx +2 -2
- package/src/components/TUIContact/TUIContactInfo/TUIContactInfo.tsx +2 -2
- package/src/components/TUIContact/TUIContactInfo/basicInfo.tsx +2 -2
- package/src/components/TUIContact/TUIContactInfo/blockInfo.tsx +2 -2
- package/src/components/TUIContact/TUIContactInfo/friendApplication.tsx +2 -2
- package/src/components/TUIContact/TUIContactInfo/friendInfo.tsx +4 -3
- package/src/components/TUIContact/TUIContactInfo/groupInfo.tsx +3 -3
- package/src/components/TUIContact/TUIContactInfo/hooks/useContactInfo.tsx +2 -2
- package/src/components/TUIContact/TUIContactInfo/index.scss +44 -21
- package/src/components/TUIContact/TUIContactList/TUIContactList.tsx +80 -76
- package/src/components/TUIContact/TUIContactList/index.scss +40 -20
- package/src/components/TUIContact/hooks/useTUIContact.tsx +5 -5
- package/src/components/TUIContact/index.scss +30 -11
- package/src/components/TUIContactSearch/TUIContactSearch.tsx +2 -2
- package/src/components/TUIContactSearch/hooks/useContactSearch.tsx +2 -2
- package/src/components/TUIContactSearch/index.scss +12 -3
- package/src/components/TUIConversationList/TUIConversationList.tsx +3 -4
- package/src/components/TUIConversationList/hooks/useConversationUpdate.tsx +2 -2
- package/src/components/TUIConversationList/index.scss +3 -4
- package/src/components/TUIManage/TUIManage.tsx +3 -3
- package/src/components/TUIManage/styles/index.scss +20 -14
- package/src/components/TUIMessage/MessageAvatar.tsx +7 -7
- package/src/components/TUIMessage/MessageBubble.tsx +22 -21
- package/src/components/TUIMessage/MessageCustom.tsx +26 -5
- package/src/components/TUIMessage/MessageStatus.tsx +7 -7
- package/src/components/TUIMessage/MessageText.tsx +16 -15
- package/src/components/TUIMessage/hooks/useMessageHandler.ts +8 -8
- package/src/components/TUIMessage/hooks/useMessageReply.ts +8 -7
- package/src/components/TUIMessage/styles/color.scss +6 -5
- package/src/components/TUIMessage/styles/layout.scss +111 -42
- package/src/components/TUIMessage/utils/index.ts +23 -12
- package/src/components/TUIMessageInput/InputPluginsDefalut.tsx +12 -12
- package/src/components/TUIMessageInput/TUIMessageInput.tsx +1 -1
- package/src/components/TUIMessageInput/hooks/useHandleForwardMessage.tsx +7 -6
- package/src/components/TUIMessageInput/hooks/useMessageInputText.tsx +14 -14
- package/src/components/TUIMessageInput/hooks/useUploadPicker.tsx +4 -4
- package/src/components/TUIMessageInput/styles/color.scss +15 -11
- package/src/components/TUIMessageInput/styles/layout.scss +33 -17
- package/src/components/TUIMessageList/hooks/useMessageListElement.tsx +15 -11
- package/src/components/TUIMessageList/styles/layout.scss +16 -9
- package/src/components/TUIProfile/TUIProfile.tsx +3 -3
- package/src/components/TUIProfile/TUIProfileDefault.tsx +14 -13
- package/src/components/TUIProfile/styles/color.scss +6 -5
- package/src/components/TUIProfile/styles/layout.scss +16 -14
- package/src/components/index.ts +0 -1
- package/src/components/{untils.ts → utils.ts} +5 -4
- package/src/context/LanguageContext.tsx +60 -0
- package/src/context/TUIChatActionContext.tsx +14 -13
- package/src/context/ThemeContext.tsx +68 -0
- package/src/context/UIKitContext.tsx +76 -0
- package/src/context/UIManagerContext.tsx +163 -0
- package/src/context/index.ts +3 -2
- package/src/locales/en-US/index.ts +0 -3
- package/src/locales/index.ts +6 -2
- package/src/locales/zh-CN/index.ts +0 -2
- package/src/locales/zh-TW/TUIChat.ts +27 -0
- package/src/locales/zh-TW/TUIContact.ts +29 -0
- package/src/locales/zh-TW/TUIConversation.ts +32 -0
- package/src/locales/zh-TW/TUIProfile.ts +15 -0
- package/src/locales/zh-TW/index.ts +11 -0
- package/src/styles/colors/_color-dark.scss +31 -21
- package/src/styles/colors/_color-light.scss +31 -21
- package/src/styles/colors/_color-theme.scss +33 -22
- package/src/styles/normalize.scss +6 -0
- package/dist/cjs/components/Icon/images/chats-selected.svg.js +0 -1
- package/dist/cjs/components/Icon/images/chats.svg.js +0 -1
- package/dist/cjs/components/Icon/images/contacts-selected.svg.js +0 -1
- package/dist/cjs/components/Icon/images/contacts.svg.js +0 -1
- package/dist/cjs/components/Icon/images/down-arrow.png.js +0 -1
- package/dist/cjs/components/Icon/images/right-arrow.svg.js +0 -1
- package/dist/cjs/components/TUIChat/unitls.js +0 -1
- package/dist/cjs/components/TUIKit/TUIKit.d.ts +0 -12
- package/dist/cjs/components/TUIKit/TUIKit.js +0 -1
- package/dist/cjs/components/TUIKit/hooks/useCreateTUIKitContext.d.ts +0 -21
- package/dist/cjs/components/TUIKit/hooks/useCreateTUIKitContext.js +0 -1
- package/dist/cjs/components/TUIKit/hooks/useTUIKit.d.ts +0 -43
- package/dist/cjs/components/TUIKit/hooks/useTUIKit.js +0 -1
- package/dist/cjs/context/TUIKitContext.d.ts +0 -25
- package/dist/cjs/context/TUIKitContext.js +0 -1
- package/dist/esm/components/Icon/images/chats-selected.svg.js +0 -1
- package/dist/esm/components/Icon/images/chats.svg.js +0 -1
- package/dist/esm/components/Icon/images/contacts-selected.svg.js +0 -1
- package/dist/esm/components/Icon/images/contacts.svg.js +0 -1
- package/dist/esm/components/Icon/images/down-arrow.png.js +0 -1
- package/dist/esm/components/Icon/images/right-arrow.svg.js +0 -1
- package/dist/esm/components/TUIChat/unitls.js +0 -1
- package/dist/esm/components/TUIKit/TUIKit.d.ts +0 -12
- package/dist/esm/components/TUIKit/TUIKit.js +0 -1
- package/dist/esm/components/TUIKit/hooks/useCreateTUIKitContext.d.ts +0 -21
- package/dist/esm/components/TUIKit/hooks/useCreateTUIKitContext.js +0 -1
- package/dist/esm/components/TUIKit/hooks/useTUIKit.d.ts +0 -43
- package/dist/esm/components/TUIKit/hooks/useTUIKit.js +0 -1
- package/dist/esm/components/untils.js +0 -1
- package/dist/esm/context/TUIKitContext.d.ts +0 -25
- package/dist/esm/context/TUIKitContext.js +0 -1
- package/scripts/publish-github.js +0 -60
- package/scripts/publish-intl-demo.js +0 -14
- package/scripts/publish-intl-experience-demo.js +0 -14
- package/src/components/TUIChat/unitls.ts +0 -39
- package/src/components/TUIKit/TUIKit.tsx +0 -229
- package/src/components/TUIKit/hooks/useCreateTUIKitContext.tsx +0 -48
- package/src/components/TUIKit/hooks/useTUIKit.tsx +0 -99
- package/src/components/TUIKit/index.ts +0 -3
- package/src/components/TUIKit/styles/h5.scss +0 -34
- package/src/components/TUIKit/styles/index.scss +0 -132
- package/src/context/TUIKitContext.tsx +0 -44
- package/src/locales/en-US/TUIGlobal.ts +0 -6
- package/src/locales/ja-JP/TUIGlobal.ts +0 -6
- package/src/locales/ko-KR/TUIGlobal.ts +0 -6
- package/src/locales/zh-CN/TUIGlobal.ts +0 -6
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
export { ChatProps, TUIKit } from './components/TUIKit/TUIKit.js';
|
|
2
|
-
export { UseChatParams, UseContactParams, useTUIKit } from './components/TUIKit/hooks/useTUIKit.js';
|
|
3
|
-
export { useCreateTUIKitContext } from './components/TUIKit/hooks/useCreateTUIKitContext.js';
|
|
4
1
|
export { TUIConversation, UnMemoizedTUIConversation } from './components/TUIConversation/TUIConversation.js';
|
|
5
2
|
export { TUIConversationList, UnMemoTUIConversationList } from './components/TUIConversationList/TUIConversationList.js';
|
|
6
3
|
export { TUIChat } from './components/TUIChat/TUIChat.js';
|
|
7
|
-
export {
|
|
4
|
+
export { UIKitProvider, useUIKit } from './context/UIKitContext.js';
|
|
5
|
+
export { UIManagerContextType, UIManagerProvider, useUIManager } from './context/UIManagerContext.js';
|
|
8
6
|
export { TUIChatStateContext, TUIChatStateContextProvider, TUIChatStateContextValue, useTUIChatStateContext } from './context/TUIChatStateContext.js';
|
|
9
7
|
export { TUIChatActionContext, TUIChatActionContextValue, TUIChatActionProvider, useTUIChatActionContext } from './context/TUIChatActionContext.js';
|
|
10
8
|
export { TUIMessageContext, TUIMessageContextProvider, TUIMessageContextValue, messageShowType, useTUIMessageContext } from './context/TUIMessageContext.js';
|
package/dist/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./server.js"),t=require("./components/
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./server.js"),t=require("./components/TUIConversation/TUIConversation.js"),o=require("./components/TUIConversationList/TUIConversationList.js");require("react"),require("@tencentcloud/chat"),require("@tencentcloud/chat-uikit-engine"),require("./components/TUIChat/index.js");var n=require("./components/ConversationPreview/ConversationPreview.js"),r=require("./components/ConversationPreview/ConversationPreviewContent.js"),s=require("./components/TUIChatHeader/TUIChatHeader.js"),a=require("./components/TUIChatHeader/TUIChatHeaderDefault.js"),i=require("./components/TUIMessageList/TUIMessageList.js"),u=require("./components/TUIMessage/TUIMessage.js"),p=require("./components/TUIMessage/MessagePlugins.js"),I=require("./components/TUIMessage/MessageContext.js"),C=require("./components/TUIMessageInput/TUIMessageInput.js"),x=require("./components/TUIMessageInput/TUIMessageInputDefault.js"),c=require("./components/TUIMessageInput/InputPluginsDefalut.js"),U=require("./components/TUIProfile/TUIProfile.js"),T=require("./components/TUIProfile/TUIProfileDefault.js"),v=require("./components/Avatar/Avatar.js"),d=require("./components/Avatar/default.js"),l=require("./components/ConversationSearch/ConversationSearchInput.js"),m=require("./components/ConversationSearch/ConversationSearchResult.js"),g=require("./components/TUIManage/TUIManage.js"),M=require("./components/Popup/index.js"),P=require("./components/Checkbox/index.js"),f=require("./components/DivWithEdit/DivWithEdit.js"),h=require("./components/Icon/Icon.js"),j=require("./components/Icon/type.js"),q=require("./components/EmptyStateIndicator/EmptyStateIndicator.js"),S=require("./components/Input/Input.js"),A=require("./components/Model/index.js"),y=require("./components/Plugins/index.js"),b=require("./components/Switch/Switch.js"),w=require("./components/Toast/index.js"),D=require("./components/TUIContact/TUIContactList/TUIContactList.js"),L=require("./components/TUIContact/TUIContactInfo/TUIContactInfo.js"),H=require("./components/TUIContact/TUIContact.js"),k=require("./context/UIKitContext.js"),E=require("./context/UIManagerContext.js"),G=require("./context/TUIChatStateContext.js"),z=require("./context/TUIChatActionContext.js"),O=require("./context/TUIMessageContext.js"),W=require("./context/ComponentContext.js"),K=require("./context/TUIMessageInputContext.js"),R=require("./context/TUIContactContext.js"),N=require("./hooks/useConversation.js"),V=require("./hooks/useProfile.js"),_=require("./locales/index.js"),B=require("./utils/env.js"),F=require("./components/TUIChat/TUIChat.js");function J(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var Q=J(require("i18next"));new e,exports.TUIConversation=t.TUIConversation,exports.UnMemoizedTUIConversation=t.UnMemoizedTUIConversation,exports.TUIConversationList=o.TUIConversationList,exports.UnMemoTUIConversationList=o.UnMemoTUIConversationList,exports.ConversationPreview=n.ConversationPreview,exports.ConversationPreviewContent=r.ConversationPreviewContent,exports.unMemoConversationPreviewContent=r.unMemoConversationPreviewContent,exports.TUIChatHeader=s.TUIChatHeader,exports.TUIChatHeaderDefault=a.TUIChatHeaderDefault,exports.TUIMessageList=i.TUIMessageList,exports.TUIMessage=u.TUIMessage,exports.MessagePlugins=p.MessagePlugins,exports.MessageContext=I.MessageContext,exports.TUIMessageInput=C.TUIMessageInput,exports.TUIMessageInputDefault=x.TUIMessageInputDefault,exports.InputPluginsDefalut=c.InputPluginsDefalut,exports.TUIProfile=U.TUIProfile,exports.TUIProfileDefault=T.TUIProfileDefault,exports.Avatar=v.Avatar,exports.defaultGroupAvatarAVChatRoom=d.defaultGroupAvatarAVChatRoom,exports.defaultGroupAvatarMeeting=d.defaultGroupAvatarMeeting,exports.defaultGroupAvatarPublic=d.defaultGroupAvatarPublic,exports.defaultGroupAvatarWork=d.defaultGroupAvatarWork,exports.defaultUserAvatar=d.defaultUserAvatar,exports.ConversationSearchInput=l.ConversationSearchInput,exports.ConversationSearchResult=m.ConversationSearchResult,exports.TUIManage=g.TUIManage,exports.Popup=M.Popup,exports.Checkbox=P.Checkbox,exports.DivWithEdit=f.DivWithEdit,exports.Icon=h.Icon,exports.changeTypeToIconClassName=h.changeTypeToIconClassName,Object.defineProperty(exports,"IconTypes",{enumerable:!0,get:function(){return j.IconTypes}}),exports.EmptyStateIndicator=q.EmptyStateIndicator,exports.Input=S.Input,exports.Model=A.Model,exports.Plugins=y.Plugins,exports.Switch=b.Switch,exports.Toast=w.Toast,exports.TUIContactList=D.TUIContactList,exports.TUIContactInfo=L.TUIContactInfo,exports.UnMemoizedTUIContactInfo=L.UnMemoizedTUIContactInfo,exports.TUIContact=H.TUIContact,exports.UnMemoizedTUIContact=H.UnMemoizedTUIContact,exports.UIKitProvider=k.UIKitProvider,exports.useUIKit=k.useUIKit,exports.UIManagerProvider=E.UIManagerProvider,exports.useUIManager=E.useUIManager,exports.TUIChatStateContext=G.TUIChatStateContext,exports.TUIChatStateContextProvider=G.TUIChatStateContextProvider,exports.useTUIChatStateContext=G.useTUIChatStateContext,exports.TUIChatActionContext=z.TUIChatActionContext,exports.TUIChatActionProvider=z.TUIChatActionProvider,exports.useTUIChatActionContext=z.useTUIChatActionContext,exports.TUIMessageContext=O.TUIMessageContext,exports.TUIMessageContextProvider=O.TUIMessageContextProvider,Object.defineProperty(exports,"messageShowType",{enumerable:!0,get:function(){return O.messageShowType}}),exports.useTUIMessageContext=O.useTUIMessageContext,exports.ComponentContext=W.ComponentContext,exports.ComponentProvider=W.ComponentProvider,exports.useComponentContext=W.useComponentContext,exports.TUIMessageInputContext=K.TUIMessageInputContext,exports.TUIMessageInputContextProvider=K.TUIMessageInputContextProvider,exports.useTUIMessageInputContext=K.useTUIMessageInputContext,exports.TUIContactContext=R.TUIContactContext,exports.TUIContactContextProvider=R.TUIContactContextProvider,exports.useTUIContactContext=R.useTUIContactContext,exports.useConversation=N.useConversation,exports.useProfile=V.useProfile,exports.t=_.t,Object.defineProperty(exports,"isH5",{enumerable:!0,get:function(){return B.isH5}}),Object.defineProperty(exports,"isPC",{enumerable:!0,get:function(){return B.isPC}}),exports.setPlatform=B.setPlatform,exports.TUIChat=F.TUIChat,Object.defineProperty(exports,"i18next",{enumerable:!0,get:function(){return Q.default}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./TUIChat.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={TUIChat:require("./TUIChat.js"),TUIConversation:require("./TUIConversation.js"),TUIContact:require("./TUIContact.js"),TUIProfile:require("./TUIProfile.js")};exports.message=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("i18next"),t=require("react-i18next"),r=require("./en-US/index.js"),n=require("./zh-CN/index.js"),a=require("./ja-JP/index.js"),i=require("./ko-KR/index.js");function
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("i18next"),t=require("react-i18next"),r=require("./en-US/index.js"),n=require("./zh-CN/index.js"),a=require("./ja-JP/index.js"),i=require("./ko-KR/index.js"),s=require("./zh-TW/index.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=u(e),l={"en-US":{translation:r.message},"zh-CN":{translation:n.message},"ja-JP":{translation:a.message},"ko-KR":{translation:i.message},"zh-TW":{translation:s.message}};o.default.use(t.initReactI18next).init({resources:l,lng:"en-US",interpolation:{escapeValue:!1}});var d=o.default.t;Object.defineProperty(exports,"i18next",{enumerable:!0,get:function(){return o.default}}),exports.t=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={TUIChat:require("./TUIChat.js"),TUIConversation:require("./TUIConversation.js"),TUIContact:require("./TUIContact.js"),TUIProfile:require("./TUIProfile.js")};exports.message=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";module.exports={Recall:"撤回",Reference:"引用",Forward:"轉發",Copy:"複製",Delete:"刪除","Forward to":"轉發給","recalled a message":"撤回了一條消息","Re-edit":"重新編輯",Resend:"重新發送",You:"您","Recent Chats":"會話紀錄","Frequently Contacted":"頻繁聯繫","No Result":"無結果","Search Result":"搜尋結果",Image:"圖片",Video:"影片",File:"檔案","Enter a message":"請輸入訊息","No More":"沒有了","Error deleting message":"刪除訊息失敗","The message recall exceeded the time limit (default 2 minutes)":"訊息撤回超時(預設 2 分鐘)","Error revoke Message":"訊息撤回失敗","Custom message":"自訂訊息"};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";module.exports={"Enter a userID":"請輸入用戶 ID,回車搜索","Enter the verification info":"請填寫驗證信息","Request to join":"申請加入",Requested:"已申請",Accept:"接受",Refuse:"拒絕",Handled:"已處理",Friends:"我的好友","Send Message":"發送消息",Signature:"個性簽名","Successful application, waiting for the administrator to agree to join the group application":"等待管理員同意","New Contacts":"新的聯繫人","Blocked List":"黑名單","Group List":"我的群聊","No Result":"無搜索結果",ID:"ID",User:"聯繫人","Add Friend":"添加好友",remark:"備註",block:"加入黑名單","Delete friend":"刪除好友","waiting for verification":"等待驗證","verification info":"驗證信息","Send application":"發送申請",Agree:"同意"};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";module.exports={"Start chat":"發起會話","New one-to-one chat":"發起單聊","New group chat":"發起群聊",Delete:"刪除會話",Pin:"置頂會話",Unpin:"取消置頂","Conversation Information":"會話資訊",Search:"搜尋","Add Participants":"創建群聊","No conversation":"無會話",Next:"下一步","Group Name":"群組名稱","Group ID":"群組 ID","Group Type":"群組類型",Participants:"成員",Create:"創建",Details:"詳情",Work:"好友工作群(Work)",Public:"陌生人社交群(Public)",Meeting:"臨時會議群(Meeting)",AVChatRoom:"直播群(AVChatroom)",Community:"社群(Community)","Users can join the group only via invitation by existing members. The invitation does not need to be agreed by the invitee or approved by the group owner. See the documentation for details.":"類似普通微信群,創建後僅支持已在群內的好友邀請加群,且無需被邀請方同意或群主同意。","After a public group is created, the group owner can designate group admins. To join the group, a user needs to search the group ID and send a request, which needs to be approved by the group owner or an admin before the user can join the基礎設施。See the documentation for details.":"類似 QQ 群,創建後群主可以指定群管理員,用戶搜索群 ID 發起加群申請後,需要群主或管理員審批通過才能入群。","After the group is created, a user can join and quit the group freely and can view the messages sent before joining the group. It is suitable for scenarios that integrate Tencent Real-Time Communication (TRTC), such as audio and video conferences and online education. See the documentation for details.":"創建後可以隨意進出,且支持查看入群前消息;適合用於音視頻會議場景、在線教育場景等與即時音視頻產品結合的場景。","After a group is created, a user can join and quit the group freely. The group can have an unlimited number of members, but it does not store message history. It can be combined with Live Video Broadcasting (LVB) to support on-screen comment scenarios. See the documentation for details.":"創建後可以隨意進出,沒有群成員數量上限,但不支持歷史消息存儲;適合與直播產品結合,用於彈幕聊天場景。","After creation, you can enter and leave at will, support up to 100,000 people, support historical message storage, and after users search for group ID and initiate a group application, they can join the group without administrator approval. See product documentation for details.":"創建後可以隨意進出,最多支持100000人,支持歷史消息存儲,用戶搜索群 ID 發起加群申請後,無需管理員審批即可進群。","Participant cannot be empty":"不能為空"};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";module.exports={"Personal information":"個人信息",Signature:"個性簽名",Gender:"性別",Male:"男",Female:"女",AllowType:"加好友驗證方式",NeedConfirm:"需要驗證",AllowAny:"同意任何用戶加好友",DenyAny:"拒絕任何用戶加「好友」",Birthday:"生日",Unknown:"未設置"};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={TUIChat:require("./TUIChat.js"),TUIConversation:require("./TUIConversation.js"),TUIContact:require("./TUIContact.js"),TUIProfile:require("./TUIProfile.js")};exports.message=e;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
|
|
3
3
|
interface AvatarProps {
|
|
4
4
|
image?: string | null;
|
|
5
5
|
/** click event handler */
|
|
6
|
-
onClick?: (event:
|
|
6
|
+
onClick?: (event: React__default.BaseSyntheticEvent) => void;
|
|
7
7
|
/** mouseOver event handler */
|
|
8
|
-
onMouseOver?: (event:
|
|
8
|
+
onMouseOver?: (event: React__default.BaseSyntheticEvent) => void;
|
|
9
9
|
/** Size in pixels
|
|
10
10
|
* @default 32px
|
|
11
11
|
*/
|
|
@@ -17,6 +17,6 @@ interface AvatarProps {
|
|
|
17
17
|
update?: (url: string) => void;
|
|
18
18
|
list?: Array<string>;
|
|
19
19
|
}
|
|
20
|
-
declare function Avatar<T extends AvatarProps>(props: T):
|
|
20
|
+
declare function Avatar<T extends AvatarProps>(props: T): React__default.ReactElement;
|
|
21
21
|
|
|
22
22
|
export { Avatar, AvatarProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import React__default from 'react';
|
|
3
3
|
|
|
4
4
|
interface onChangeParams {
|
|
5
5
|
checked?: boolean;
|
|
@@ -12,6 +12,6 @@ interface SelectProps {
|
|
|
12
12
|
value?: any;
|
|
13
13
|
id?: string;
|
|
14
14
|
}
|
|
15
|
-
declare function Checkbox<T extends SelectProps>(props:
|
|
15
|
+
declare function Checkbox<T extends SelectProps>(props: React__default.PropsWithChildren<T>): react_jsx_runtime.JSX.Element;
|
|
16
16
|
|
|
17
17
|
export { Checkbox };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__spreadArray as e,__assign as t,__awaiter as r,__generator as o}from"tslib";import{jsxs as
|
|
1
|
+
import{__spreadArray as e,__assign as t,__awaiter as r,__generator as o}from"tslib";import{jsxs as n,Fragment as a,jsx as i}from"react/jsx-runtime";import{useState as c}from"react";import{useTranslation as s}from"react-i18next";import{TUIConversationService as u}from"@tencentcloud/chat-uikit-engine";import{Input as p}from"../Input/Input.js";import{Icon as l}from"../Icon/Icon.js";import{IconTypes as m}from"../Icon/type.js";import{Avatar as d}from"../Avatar/Avatar.js";import{defaultUserAvatar as v,defaultGroupAvatarAVChatRoom as f,defaultGroupAvatarMeeting as g,defaultGroupAvatarPublic as h,defaultGroupAvatarWork as C}from"../Avatar/default.js";import{PageStateTypes as I}from"./ConversationCreate.js";import{ConversationGroupTypeInfo as x,typeInfoList as N,GroupType as b}from"./ConversationGroupTypeInfo.js";import"@tencentcloud/tui-core";import{useUIManager as T}from"../../context/UIManagerContext.js";import"../../context/TUIMessageContext.js";function y(y){var k=this,U=y.profileList,j=y.pageState,P=y.setPageState,G=y.createConversation,D=y.setConversationCreated,A=s().t,R=T(),w=R.setActiveConversation,O=R.myProfile,S=e([],U,!0);O&&S.unshift(O);var L=S.map((function(e){return e.nick||e.userID})).toString(),M=c(L.length>=15?"".concat(L.slice(0,12),"..."):L),W=M[0],_=M[1],E=c(""),Y=E[0],q=E[1],z=c("Work"),H=z[0],V=z[1],B=function(e,t){var r=e.target.value;switch(t){case"name":_(r);break;case"id":q(r);break;case"type":V(r)}},F=function(){P(I.GROUP_TYPE)};return j!==I.GROUP_TYPE?n(a,{children:[n("div",t({className:"tui-conversation-create-group-detail"},{children:[i("div",t({className:"create-group-box create-group-name"},{children:i(p,{maxLength:15,value:W,onChange:function(e){B(e,"name")},border:"bottom",customClassName:"input-group-name",clearable:!0,prefix:i("div",t({className:"input-group-title"},{children:A("TUIConversation.Group Name")}))})})),i("div",t({className:"create-group-box create-group-id"},{children:i(p,{border:"bottom",customClassName:"input-group-text",clearable:!0,value:Y,onChange:function(e){B(e,"id")},prefix:i("div",t({className:"input-group-title"},{children:A("TUIConversation.Group ID")}))})})),i("div",t({className:"create-group-box create-group-type",onClick:F},{children:i(p,{readOnly:!0,border:"bottom",customClassName:"input-group-text",prefix:i("div",t({className:"input-group-title"},{children:A("TUIConversation.Group Type")})),suffix:i(l,{onClick:F,type:m.ARROW_RIGHT,width:7,height:12}),value:A("TUIConversation.".concat(H)),onChange:function(e){B(e,"type")}})})),i("div",t({className:"create-group-illustrate"},{children:A("TUIConversation.".concat(null==N?void 0:N.find((function(e){return e.type===H})).des))})),n("div",t({className:"create-group-portrait"},{children:[i("div",t({className:"create-group-portrait-title"},{children:A("TUIConversation.Participants")})),i("div",t({className:"create-group-portrait-info-container"},{children:U.map((function(e){var r=e.avatar,o=e.userID,a=e.nick;return n("div",t({className:"create-group-portrait-info"},{children:[i(d,{shape:"square",size:50,image:r||v}),i("div",t({className:"create-group-portrait-info-nick"},{children:a}))]}),o)}))}))]}))]})),i("div",t({className:"tui-conversation-create-next-container"},{children:i("div",t({role:"presentation",className:"tui-conversation-create-next",onClick:function(){return r(k,void 0,void 0,(function(){var e,t,r;return o(this,(function(o){switch(o.label){case 0:return e=U.map((function(e){return{userID:e.userID}})),t=function(e){switch(e){case"Work":return C;case"Public":return h;case"Meeting":return g;case"AVChatRoom":return f;default:return""}}(H),[4,G({name:W,type:b[H],groupID:Y,avatar:t,memberList:e})];case 1:return r=o.sent(),w(r),u.switchConversation(null==r?void 0:r.conversationID),D(!1),[2]}}))}))}},{children:A("TUIConversation.Create")}))}))]}):i(x,{groupType:H,setGroupType:V,setPageState:P})}export{y as ConversationCreatGroupDetail};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as t}from"tslib";import{jsxs as e,Fragment as
|
|
1
|
+
import{__assign as t}from"tslib";import{jsxs as e,Fragment as o,jsx as r}from"react/jsx-runtime";import{useState as i,useMemo as a}from"react";import{useTranslation as n}from"react-i18next";import{Icon as s}from"../Icon/Icon.js";import{IconTypes as c}from"../Icon/type.js";import{ConversationCreateUserSelectList as C}from"./ConversationCreateUserSelectList.js";import{ConversationCreatGroupDetail as m}from"./ConversationCreatGroupDetail.js";import{useUIKit as E}from"../../context/UIKitContext.js";import"@tencentcloud/chat-uikit-engine";import"../../context/TUIMessageContext.js";import{useConversation as p}from"../../hooks/useConversation.js";var l;function v(v){var f=v.className,u=void 0===f?"":f,T=v.setConversationCreated,d=v.conversationList,S=void 0===d?[]:d,L=n().t,h=i(!1),U=h[0],I=h[1],R=i(l.USER_SELECT),_=R[0],j=R[1],x=i([]),A=x[0],P=x[1],g=E().chat,G=p(g).createConversation,k=function(){if(U)switch(_){case l.USER_SELECT:I(!1);break;case l.CREATE_DETAIL:j(l.USER_SELECT),P([]);break;case l.GROUP_TYPE:j(l.CREATE_DETAIL)}else T(!1)};return a((function(){return e(o,{children:[e("div",t({className:"tui-conversation-create-header"},{children:[r(s,{onClick:k,type:c.BACK,width:9,height:16}),r("div",t({className:"title"},{children:L(U?"TUIConversation.Add Participants":"TUIConversation.Start chat")}))]})),_===l.USER_SELECT?r(C,{isCreateGroup:U,setIsCreateGroup:I,className:u,selectList:A,setSelectList:P,conversationList:S,setConversationCreated:T,setPageState:j}):r(m,{pageState:_,setPageState:j,profileList:A.map((function(t){return null==t?void 0:t.profile})),createConversation:G,setConversationCreated:T})]})}),[U,A,_])}!function(t){t.USER_SELECT="Next",t.CREATE_DETAIL="Create",t.GROUP_TYPE="GroupType"}(l||(l={}));export{v as ConversationCreate,l as PageStateTypes};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e,__awaiter as t,__generator as r,__spreadArray as n}from"tslib";import{jsxs as
|
|
1
|
+
import{__assign as e,__awaiter as t,__generator as r,__spreadArray as n}from"tslib";import{jsxs as o,Fragment as i,jsx as c}from"react/jsx-runtime";import{useState as a,useRef as s}from"react";import{useTranslation as u}from"react-i18next";import{TUIConversationService as l}from"@tencentcloud/chat-uikit-engine";import{Input as m}from"../Input/Input.js";import{Icon as p}from"../Icon/Icon.js";import{IconTypes as v}from"../Icon/type.js";import{ConversationCreateSelectView as h}from"./ConversationCreateSelectView.js";import{Avatar as d}from"../Avatar/Avatar.js";import{defaultUserAvatar as f}from"../Avatar/default.js";import{useConversationCreate as C}from"./hooks/useConversationCreate.js";import{useUIKit as x}from"../../context/UIKitContext.js";import{useUIManager as I}from"../../context/UIManagerContext.js";import"../../context/TUIMessageContext.js";import{PageStateTypes as g}from"./ConversationCreate.js";import{useConversation as N}from"../../hooks/useConversation.js";import{Toast as j}from"../Toast/index.js";function k(k){var b=this,y=k.isCreateGroup,A=k.selectList,D=k.setSelectList,L=k.className,S=k.conversationList,T=k.setIsCreateGroup,w=k.setConversationCreated,U=k.setPageState,E=u().t,M=a(""),R=M[0],F=M[1],G=x().chat,P=I().setActiveConversation,z=a({}),H=z[0],K=z[1],O=C(G,S,(function(e){K(e)})).getFriendListSortSearchResult,V=N(G).createConversation,_=s(new Map);return o(i,{children:[c(m,{className:"tui-conversation-create-search-input",placeholder:E("TUIConversation.Search"),clearable:!0,value:R,onChange:function(e){return t(b,void 0,void 0,(function(){var t,n;return r(this,(function(r){switch(r.label){case 0:return t=e.target.value,F(t),n=K,[4,O(t)];case 1:return n.apply(void 0,[r.sent()]),[2]}}))}))},prefix:c(p,{type:v.SEARCH,height:16,width:16})}),y&&c(h,{selectList:A,setSelectList:D}),!y&&o("div",e({role:"presentation",className:"tui-user",onClick:function(){T(!0),_.current.clear(),D([])}},{children:[c(p,{type:v.ADD}),c("div",e({className:"tui-user-name active"},{children:E("TUIConversation.New group chat")}))]})),c("div",e({className:"tui-conversation-create ".concat(L)},{children:c("div",e({className:"tui-conversation-create-container"},{children:c("div",e({className:"tui-group-container"},{children:Object.keys(H).map((function(i){return 0!==H[i].length&&o("div",e({className:"tui-group-box"},{children:[c("div",e({className:"title"},{children:i})),H[i].map((function(a,s){var u=a.userID,m=a.nick,p=a.avatar;return o("label",e({role:"presentation",className:"tui-user tui-user-checkbox-label",htmlFor:"userChecked-".concat(i,"-").concat(u),onClick:function(e){!function(e){t(b,void 0,void 0,(function(){var t,n;return r(this,(function(r){switch(r.label){case 0:return y?[2]:(t=e.userID,[4,V("C2C".concat(t))]);case 1:return n=r.sent(),w(!1),P(n),l.switchConversation(null==n?void 0:n.conversationID),[2]}}))}))}(a)}},{children:[c(d,{size:30,image:p||f}),c("div",e({className:"tui-user-name text-ellipsis"},{children:m||"".concat(u)})),y&&c("input",{onChange:function(e){!function(e,t,r){void 0===r&&(r=[]);var o=t.userID,i=e.target.checked;r.forEach((function(e){e.checked=i})),i?A.push({profile:t,domList:r}):A.splice(A.findIndex((function(e){return e.profile.userID===o})),1),D(n([],A,!0))}(e,a,_.current.get(u))},type:"checkbox",ref:function(e){!function(e,t){if(t){_.current.has(e)||_.current.set(e,[]);var r=_.current.get(e);0!==r.length&&r.some((function(e){return e.id===t.id}))||r.push(t)}}(u,e)},id:"userChecked-".concat(i,"-").concat(u),className:"tui-user-checkbox"})]}),u)}))]}),i)}))}))}))})),y&&c("div",e({className:"tui-conversation-create-next-container"},{children:c("div",e({role:"presentation",className:"tui-conversation-create-next",onClick:function(){A&&0===A.length?j({text:E("TUIConversation.Participant cannot be empty"),type:"error"}):U(g.CREATE_DETAIL)}},{children:E("TUIConversation.Next")}))}))]})}export{k as ConversationCreateUserSelectList};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as t}from"tslib";import{useState as r,useEffect as o}from"react";import n from"@tencentcloud/chat";import{strChineseFirstPy as i}from"../static/word.js";import"react/jsx-runtime";import"
|
|
1
|
+
import{__awaiter as e,__generator as t}from"tslib";import{useState as r,useEffect as o}from"react";import n from"@tencentcloud/chat";import{strChineseFirstPy as i}from"../static/word.js";import"react/jsx-runtime";import"react-i18next";import"@tencentcloud/tui-core";import"@tencentcloud/chat-uikit-engine";import"../../../context/TUIMessageContext.js";import"../../../utils/env.js";import"../../Icon/config.js";import"../../Icon/type.js";import"date-fns";import"date-fns/locale";import"../ConversationCreate.js";import"../ConversationGroupTypeInfo.js";import"../../TUIChat/index.js";import"../../../constants.js";import"../../TUIMessage/hooks/useMessageReply.js";import"../../TUIMessage/MessagePlugins.js";import"../../TUIMessage/MessageContext.js";import"../../TUIMessageInput/hooks/useHandleQuoteMessage.js";import"../../TUIProfile/TUIProfileDefault.js";import{useProfile as s}from"../../../hooks/useProfile.js";var u=function(u,c,a){var l=r(),f=l[0],p=l[1],m=function(e){var t=e.trim(),r=t.charCodeAt(0);return r>40869||r<19968?t.charAt(0):i.charAt(r-19968)},d=function(){return e(void 0,void 0,void 0,(function(){var e,r,o,i;return t(this,(function(t){switch(t.label){case 0:return c.filter((function(e){return(null==e?void 0:e.type)===n.TYPES.CONV_C2C})).slice(0,5).map((function(e){return null==e?void 0:e.userProfile})),[4,null==u?void 0:u.getFriendList()];case 1:return e=t.sent()||{},r=e.code,o=e.data,0===r&&(i=v(o.map((function(e){return e.profile}))),p(i),a&&a(i,p)),[2]}}))}))},v=function(e,t){for(var r={"#":[]},o=65;o<=90;o+=1)r[String.fromCharCode(o)]=[];return e.forEach((function(e){var t=e.nick,o=e.userID,n=m(t||o);n>="a"&&n<="z"?r[n.toLocaleUpperCase()].push(e):n<"A"||n>"z"?r["#"].push(e):r[n].push(e)})),Object.keys(r).forEach((function(e){r[e].sort((function(e,t){var r=e.nick,o=e.userID,n=t.nick,i=t.userID;return r||o<n||i||r||o===n||i?1:-1}))})),r},h=s(u).getUserProfile;return o((function(){d()}),[u]),{getFirstLetter:m,queryFriendList:d,getFriendListSortSearchResult:function(r){return e(void 0,void 0,void 0,(function(){var e,o,n,i;return t(this,(function(t){switch(t.label){case 0:return r?[4,h([r])]:[2,f];case 1:return e=t.sent().data,o={},n=!1,Object.keys(f).forEach((function(e){o[e]=f[e].filter((function(e){var t,o,i=e.nick,s=e.userID,u=null==i?void 0:i.toLocaleLowerCase(),c=r.toLocaleLowerCase(),a=s.toLocaleLowerCase();return o="TencentCloudDemo"===(null===(t=process.env)||void 0===t?void 0:t.REACT_APP_ONLINE)?u?u.includes(c):a.includes(c):a===c,n=n||o,o}))})),"TencentCloudDemo"===(null===(i=process.env)||void 0===i?void 0:i.REACT_APP_ONLINE)?[2,o]:[2,n?o:v(e)]}}))}))},friendListSortResult:f}};export{u as useConversationCreate};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import { Conversation } from '@tencentcloud/chat';
|
|
3
3
|
|
|
4
4
|
interface ConversationListContainerProps {
|
|
5
5
|
error?: Error | null;
|
|
6
6
|
loading?: boolean;
|
|
7
|
-
setConversationList?:
|
|
7
|
+
setConversationList?: React__default.Dispatch<React__default.SetStateAction<Array<Conversation>>>;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export { ConversationListContainerProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
2
3
|
import { Conversation } from '@tencentcloud/chat';
|
|
3
|
-
import { TUIKitContextValue } from '../../context/TUIKitContext.js';
|
|
4
4
|
import { AvatarProps } from '../Avatar/Avatar.js';
|
|
5
5
|
|
|
6
6
|
interface ConversationPreviewUIComponentProps extends ConversationPreviewProps {
|
|
@@ -9,9 +9,9 @@ interface ConversationPreviewUIComponentProps extends ConversationPreviewProps {
|
|
|
9
9
|
/** Image of Conversation to display */
|
|
10
10
|
displayImage?: string;
|
|
11
11
|
/** Title of Conversation to display */
|
|
12
|
-
displayTitle?: string |
|
|
12
|
+
displayTitle?: string | React__default.ReactElement;
|
|
13
13
|
/** Message of Conversation to display */
|
|
14
|
-
displayMessage?: string |
|
|
14
|
+
displayMessage?: string | React__default.ReactElement;
|
|
15
15
|
/** Time of Conversation to display */
|
|
16
16
|
displayTime?: string;
|
|
17
17
|
/** Number of unread Messages */
|
|
@@ -20,14 +20,14 @@ interface ConversationPreviewUIComponentProps extends ConversationPreviewProps {
|
|
|
20
20
|
interface ConversationPreviewProps {
|
|
21
21
|
conversation: Conversation;
|
|
22
22
|
activeConversation?: Conversation;
|
|
23
|
-
Preview?:
|
|
24
|
-
Avatar?:
|
|
25
|
-
setActiveConversation?:
|
|
23
|
+
Preview?: React__default.ComponentType<ConversationPreviewUIComponentProps>;
|
|
24
|
+
Avatar?: React__default.ComponentType<AvatarProps>;
|
|
25
|
+
setActiveConversation?: (conversation: Conversation | undefined) => void;
|
|
26
26
|
searchValue?: string;
|
|
27
27
|
conversationUpdateCount?: number;
|
|
28
28
|
activeConversationID?: string;
|
|
29
29
|
setActiveConversationID?: (conversationID: string) => void;
|
|
30
30
|
}
|
|
31
|
-
declare function ConversationPreview<T extends ConversationPreviewProps>(props: T):
|
|
31
|
+
declare function ConversationPreview<T extends ConversationPreviewProps>(props: T): react_jsx_runtime.JSX.Element;
|
|
32
32
|
|
|
33
33
|
export { ConversationPreview, ConversationPreviewProps, ConversationPreviewUIComponentProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as
|
|
1
|
+
import{__assign as t}from"tslib";import{jsx as o,Fragment as e}from"react/jsx-runtime";import{useState as n,useEffect as i}from"react";import{useUIKit as r}from"../../context/UIKitContext.js";import{useUIManager as a}from"../../context/UIManagerContext.js";import"../../context/TUIMessageContext.js";import{ConversationPreviewContent as s}from"./ConversationPreviewContent.js";import{getDisplayImage as m,getDisplayTitle as v,getDisplayMessage as c,getDisplayTime as u}from"./utils.js";function l(l){var p=l.activeConversation,d=l.conversation,C=l.Preview,f=void 0===C?s:C,x=l.searchValue,g=l.conversationUpdateCount,j=r().language,I=a(),y=I.setActiveConversation,U=I.myProfile,M=n(m(d)),P=M[0],T=M[1],w=n(v(d,x)),A=w[0],D=w[1],b=n(U&&c(d,U)),h=b[0],K=b[1],V=n(u(d,j)),k=V[0],q=V[1],z=n(d.unreadCount),B=z[0],E=z[1],F=(null==p?void 0:p.conversationID)===(null==d?void 0:d.conversationID);return f?(i((function(){D(v(d,x)),U&&K(c(d,U)),T(m(d)),q(u(d,j)),E(d.unreadCount)}),[d,x,g,j]),o(f,t({},l,{active:F,displayImage:P,displayTitle:A,displayMessage:h,displayTime:k,unread:B,setActiveConversation:y}))):o(e,{})}export{l as ConversationPreview};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import { ConversationPreviewUIComponentProps } from './ConversationPreview.js';
|
|
3
3
|
|
|
4
4
|
interface IPluginsRef {
|
|
5
5
|
closeMore?: () => void;
|
|
6
6
|
}
|
|
7
|
-
declare function unMemoConversationPreviewContent<T extends ConversationPreviewUIComponentProps>(props: T):
|
|
7
|
+
declare function unMemoConversationPreviewContent<T extends ConversationPreviewUIComponentProps>(props: T): React__default.ReactElement;
|
|
8
8
|
declare const ConversationPreviewContent: typeof unMemoConversationPreviewContent;
|
|
9
9
|
|
|
10
10
|
export { ConversationPreviewContent, IPluginsRef, unMemoConversationPreviewContent };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsxs as n,jsx as o}from"react/jsx-runtime";import t,{useRef as i,useState as r,useEffect as a}from"react";import{useTranslation as c}from"react-i18next";import{TUIConversationService as s}from"@tencentcloud/chat-uikit-engine";import{isPC as l}from"../../utils/env.js";import{Avatar as
|
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as n,jsx as o}from"react/jsx-runtime";import t,{useRef as i,useState as r,useEffect as a}from"react";import{useTranslation as c}from"react-i18next";import{TUIConversationService as s}from"@tencentcloud/chat-uikit-engine";import{isPC as l}from"../../utils/env.js";import{Avatar as m}from"../Avatar/Avatar.js";import{Icon as v}from"../Icon/Icon.js";import{IconTypes as d}from"../Icon/type.js";import{Plugins as u}from"../Plugins/index.js";import{useConversation as p}from"../../hooks/useConversation.js";import{useUIKit as h}from"../../context/UIKitContext.js";import{useUIManager as f}from"../../context/UIManagerContext.js";import"../../context/TUIMessageContext.js";function I(t){var I,C=t.conversation,N=t.Avatar,x=void 0===N?m:N,T=t.displayImage,g=t.displayTitle,j=t.displayMessage,D=t.displayTime,w=t.unread,M=t.active,b=t.activeConversationID,k=t.setActiveConversationID,y=t.setActiveConversation,P=c().t,U=i(null),A=h().chat,E=f().conversation,z=p(A),K=z.pinConversation,L=z.deleteConversation,O=M?"conversation-preview-content--active":"",R=w&&w>=1?"conversation-preview-content--unread":"",S=C.isPinned?"conversation-preview-content--pin":"",q=r(!1),B=q[0],F=q[1],G=i(null);a((function(){b!==C.conversationID&&F(!1)}),[b]);var H=function(e){if(!l){var n=C.conversationID;switch(k&&k(n),e){case"touchstart":I=setTimeout(o,500);break;case"touchend":clearTimeout(I),setTimeout((function(){}),200)}}function o(){clearTimeout(I),F(!0)}},J=function(e,n){var o,t=C.conversationID,i=C.isPinned;switch(e.stopPropagation(),F(!1),(null===(o=null==G?void 0:G.current)||void 0===o?void 0:o.closeMore)&&G.current.closeMore(),n){case"pin":K({conversationID:t,isPinned:!i});break;case"delete":L(t),y&&t===(null==E?void 0:E.conversationID)&&y(void 0)}};return n("button",e({type:"button","aria-selected":M,role:"option",className:"conversation-preview-container ".concat(O," ").concat(R," ").concat(S),onClick:function(){s.switchConversation(null==C?void 0:C.conversationID),y&&y(C),(null==U?void 0:U.current)&&U.current.blur()},onMouseEnter:function(){F(!0)},onMouseLeave:function(){F(!1)},onTouchStart:function(){return H("touchstart")},onTouchEnd:function(){return H("touchend")},ref:U,id:C.conversationID},{children:[o("div",e({className:"avatar"},{children:o(x,{image:T,name:g,size:40})})),n("div",e({className:"content"},{children:[o("div",e({className:"title text-ellipsis"},{children:g})),o("div",e({className:"message"},{children:j}))]})),n("div",e({className:"external"},{children:[o("div",w?e({className:"unread"},{children:w<=99?w:"99+"}):{className:"unread"}),o("div",B?e({className:"".concat(B?"more--hover":"more")},{children:o(u,{customClass:"more-handle-box",ref:G,plugins:[o("div",e({role:"presentation",className:"more-handle-item",onClick:function(e){J(e,"pin")}},{children:P(C.isPinned?"TUIConversation.Unpin":"TUIConversation.Pin")})),o("div",e({className:"more-handle-item delete",onClick:function(e){J(e,"delete")},role:"presentation"},{children:P("TUIConversation.Delete")}))],showNumber:0,MoreIcon:o(v,{className:"icon-more",width:16,height:16,type:d.MORE})})}):e({className:"time"},{children:D}))]}))]}))}var C=t.memo(I);export{C as ConversationPreviewContent,I as unMemoConversationPreviewContent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsxs as r,jsx as o,Fragment as a}from"react/jsx-runtime";import t from"@tencentcloud/chat";import"react";import"../Icon/config.js";import"../Icon/type.js";import{defaultGroupAvatarWork as i,defaultUserAvatar as n}from"../Avatar/default.js";import{formatEmojiString as s}from"../TUIMessage/utils/emojiMap.js";import{getTimeStamp as c}from"../
|
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as r,jsx as o,Fragment as a}from"react/jsx-runtime";import t from"@tencentcloud/chat";import"react";import"../Icon/config.js";import"../Icon/type.js";import{defaultGroupAvatarWork as i,defaultUserAvatar as n}from"../Avatar/default.js";import{formatEmojiString as s}from"../TUIMessage/utils/emojiMap.js";import{getTimeStamp as c}from"../utils.js";var l=function(e){if(!e)return null;var r={},o=e.type,a=e.groupProfile,i=e.userProfile;switch(o){case t.TYPES.CONV_C2C:r=i;break;case t.TYPES.CONV_GROUP:r=a;case t.TYPES.CONV_SYSTEM:}return r},p=function(i,n,s){void 0===s&&(s="#147AFF");var c=l(i),p=c.name,u=c.nick,d=c.groupID,m=c.userID,f=i.type,C=i.remark,v="";switch(f){case t.TYPES.CONV_C2C:v=C||u||m;break;case t.TYPES.CONV_GROUP:v=p||d;break;default:v=""}var O,P,S,h;return n?(P=(O=v).toLocaleLowerCase(),S=n&&P.indexOf(n.toLocaleLowerCase()),h=O.split(new RegExp("(".concat(n,")"),"gi")),""===S?o(a,{}):r("div",{children:[n&&h.map((function(r,a){return r.toLowerCase()===n.toLowerCase()?o("span",e({style:{color:s}},{children:r}),a):o("span",{children:r},a)})),";"]})):v},u=function(e){var r=e.type,o=l(e).avatar,a=o;if(!o)switch(r){case t.TYPES.CONV_C2C:a=n;break;case t.TYPES.CONV_GROUP:default:a=i}return a},d=function(a,i,n){var c,l=a.lastMessage,p=a.type,u=l.fromAccount,d=l.nick,m=l.nameCard,f=l.isRevoked,C=l.messageForShow;l.type===t.TYPES.MSG_CUSTOM&&(null===(c=l.payload)||void 0===c?void 0:c.description)&&(C=l.payload.description);var v="";switch(p){case t.TYPES.CONV_GROUP:v=(null==l?void 0:l.fromAccount)===(null==i?void 0:i.userID)?"You":"".concat(m||d||u||""),v="".concat(v?"".concat(v,":"):"");break;case t.TYPES.CONV_C2C:v=f?"you ":""}return r("div",e({style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{children:[o("span",{children:v}),o("span",{children:l.isRevoked?"recalled a message":s(C,1)})]}))},m=function(e,r){var o=e.lastMessage;return c(1e3*o.lastTime,r)};export{u as getDisplayImage,d as getDisplayMessage,m as getDisplayTime,p as getDisplayTitle,l as getMessageProfile};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import { Conversation } from '@tencentcloud/chat';
|
|
3
3
|
import { ConversationPreviewUIComponentProps } from '../ConversationPreview/ConversationPreview.js';
|
|
4
4
|
|
|
5
5
|
interface ConversationSearchResultProps {
|
|
6
6
|
result: Array<Conversation>;
|
|
7
7
|
searchValue?: string;
|
|
8
|
-
Preview?:
|
|
8
|
+
Preview?: React__default.ComponentType<ConversationPreviewUIComponentProps>;
|
|
9
9
|
}
|
|
10
|
-
declare function ConversationSearchResult(props: ConversationSearchResultProps):
|
|
10
|
+
declare function ConversationSearchResult(props: ConversationSearchResultProps): React__default.ReactElement;
|
|
11
11
|
|
|
12
12
|
export { ConversationSearchResult, ConversationSearchResultProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsx as t,jsxs as o}from"react/jsx-runtime";import{ConversationPreview as s}from"../ConversationPreview/ConversationPreview.js";import"react";import"react-i18next";import"@tencentcloud/chat-uikit-engine";import"../../utils/env.js";import{Icon as r}from"../Icon/Icon.js";import{IconTypes as
|
|
1
|
+
import{__assign as e}from"tslib";import{jsx as t,jsxs as o}from"react/jsx-runtime";import{ConversationPreview as s}from"../ConversationPreview/ConversationPreview.js";import"react";import"react-i18next";import"@tencentcloud/chat-uikit-engine";import"../../utils/env.js";import{Icon as r}from"../Icon/Icon.js";import{IconTypes as n}from"../Icon/type.js";import"@tencentcloud/chat";import"@tencentcloud/tui-core";import"../../context/TUIMessageContext.js";import"../ConversationCreate/ConversationCreate.js";import"../ConversationCreate/ConversationGroupTypeInfo.js";import"date-fns";import"date-fns/locale";import"../TUIChat/index.js";import"../../constants.js";import"../TUIMessage/hooks/useMessageReply.js";import"../TUIMessage/MessagePlugins.js";import"../TUIMessage/MessageContext.js";import"../TUIMessageInput/hooks/useHandleQuoteMessage.js";import"../TUIProfile/TUIProfileDefault.js";function i(i){var a=i.result,c=i.searchValue,m=i.Preview;return t("div",{children:0===(null==a?void 0:a.length)?o("div",e({className:"conversation-search-result no-result"},{children:[t(r,{className:"no-result-icon",type:n.CRY,width:42,height:42}),t("span",e({className:"no-result-message"},{children:'No results for "'.concat(c,'"')}))]})):a.map((function(o){return t(s,e({searchValue:c},{conversation:o,Preview:m}),o.conversationID)}))})}export{i as ConversationSearchResult};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import React__default from 'react';
|
|
3
3
|
import { IconTypes } from './type.js';
|
|
4
4
|
|
|
5
5
|
declare const changeTypeToIconClassName: (type: IconTypes) => string;
|
|
@@ -7,9 +7,9 @@ interface IconProps {
|
|
|
7
7
|
type?: IconTypes;
|
|
8
8
|
height?: number;
|
|
9
9
|
width?: number;
|
|
10
|
-
onClick?: (event:
|
|
10
|
+
onClick?: (event: React__default.BaseSyntheticEvent) => void;
|
|
11
11
|
className?: string;
|
|
12
12
|
}
|
|
13
|
-
declare function Icon(props:
|
|
13
|
+
declare function Icon(props: React__default.PropsWithChildren<IconProps>): react_jsx_runtime.JSX.Element;
|
|
14
14
|
|
|
15
15
|
export { Icon, IconProps, changeTypeToIconClassName };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import i from"./images/more.png.js";import s from"./images/clear.png.js";import m from"./images/search.png.js";import r from"./images/back.png.js";import o from"./images/emoji.png.js";import a from"./images/progress.png.js";import e from"./images/file.png.js";import t from"./images/add.png.js";import
|
|
1
|
+
import i from"./images/more.png.js";import s from"./images/clear.png.js";import m from"./images/search.png.js";import r from"./images/back.png.js";import o from"./images/emoji.png.js";import a from"./images/progress.png.js";import e from"./images/file.png.js";import t from"./images/add.png.js";import c from"./images/image.png.js";import l from"./images/video.png.js";import n from"./images/files.png.js";import u from"./images/star.png.js";import g from"./images/copy.png.js";import p from"./images/del.png.js";import N from"./images/forward.png.js";import f from"./images/reply.png.js";import k from"./images/close.png.js";import j from"./images/arrow-right.png.js";import E from"./images/right.png.js";import d from"./images/ellipse.png.js";import R from"./images/cancel.png.js";import O from"./images/arrow-down.png.js";import I from"./images/edit.png.js";import v from"./images/confirm.png.js";import C from"./images/camera.png.js";import A from"./images/quote.png.js";import L from"./images/revocation.png.js";import D from"./images/effort.png.js";import T from"./images/cry.png.js";import w from"./images/send.png.js";import M from"./images/owner.png.js";import U from"./images/living.png.js";import V from"./images/member.png.js";import y from"./images/like.png.js";import S from"./images/unlike.png.js";import h from"./images/liked.png.js";import F from"./images/unliked.png.js";import G from"./images/union.png.js";import K from"./images/ununion.png.js";import W from"./images/vector.png.js";import b from"./images/unvector.png.js";import P from"./images/voice.png.js";import H from"./images/add-friend.svg.js";import Y from"./images/video-call.svg.js";import q from"./images/voice-call.svg.js";import{IconTypes as B}from"./type.js";var _,x=((_={})[B.MORE]={url:i,className:"tui-kit-icon-more"},_[B.CREATE]={url:H,className:"tui-kit-icon-create"},_[B.CLEAR]={url:s,className:"tui-kit-icon-clear"},_[B.SEARCH]={url:m,className:"tui-kit-icon-search"},_[B.BACK]={url:r,className:"tui-kit-icon-back"},_[B.EMOJI]={url:o,className:"tui-kit-icon-emoji"},_[B.PROGRESS]={url:a,className:"tui-kit-icon-progress"},_[B.FILE]={url:e,className:"tui-kit-icon-file"},_[B.ADD]={url:t,className:"tui-kit-icon-add"},_[B.IMAGE]={url:c,className:"tui-kit-icon-image"},_[B.VIDEO]={url:l,className:"tui-kit-icon-video"},_[B.DOCUMENT]={url:n,className:"tui-kit-icon-document"},_[B.STAR]={url:u,className:"tui-kit-icon-star"},_[B.COPY]={url:g,className:"tui-kit-icon-copy"},_[B.DEL]={url:p,className:"tui-kit-icon-del"},_[B.FORWARD]={url:N,className:"tui-kit-icon-forward"},_[B.REPLY]={url:f,className:"tui-kit-icon-reply"},_[B.CLOSE]={url:k,className:"tui-kit-icon-close"},_[B.ARROW_RIGHT]={url:j,className:"tui-kit-icon-arrow-right"},_[B.RIGHT]={url:E,className:"tui-kit-icon-right"},_[B.ELLIPSE]={url:d,className:"tui-kit-icon-ellipse"},_[B.CANCEL]={url:R,className:"tui-kit-icon-cancel"},_[B.ARROW_DOWN]={url:O,className:"tui-kit-icon-arrow-down"},_[B.EDIT]={url:I,className:"tui-kit-icon-edit"},_[B.CONFIRM]={url:v,className:"tui-kit-icon-confirm"},_[B.CAMERA]={url:C,className:"tui-kit-icon-camera"},_[B.QUOTE]={url:A,className:"tui-kit-icon-quote"},_[B.REVOCATION]={url:L,className:"tui-kit-icon-revocation"},_[B.EFFORT]={url:D,className:"tui-kit-icon-effort"},_[B.CRY]={url:T,className:"tui-kit-icon-cry"},_[B.OWNER]={url:M,className:"tui-kit-icon-owner"},_[B.SEND]={url:w,className:"tui-kit-icon-send"},_[B.LIVING]={url:U,className:"tui-kit-icon-living"},_[B.MEMBER]={url:V,className:"tui-kit-icon-member"},_[B.LIKE]={url:y,className:"tui-kit-icon-like"},_[B.UNLIKE]={url:S,className:"tui-kit-icon-unlike"},_[B.LIKED]={url:h,className:"tui-kit-icon-liked"},_[B.UNLIKED]={url:F,className:"tui-kit-icon-unliked"},_[B.UNION]={url:G,className:"tui-kit-icon-union"},_[B.UNUNION]={url:K,className:"tui-kit-icon-ununion"},_[B.VECTOR]={url:W,className:"tui-kit-icon-vector"},_[B.UNVECTOR]={url:b,className:"tui-kit-icon-unvector"},_[B.VOICE]={url:P,className:"tui-kit-icon-voice"},_[B.ADDFRIEND]={url:H,className:"tui-kit-icon-add-friend"},_[B.VIDEOCALL]={url:Y,className:"tui-kit-icon-video-call"},_[B.VOICECALL]={url:q,className:"tui-kit-icon-voice-call"},_);export{x as ICON_CONFIG};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var C="data:image/svg+xml,%3Csvg%20width%3D%2218%22%20height%3D%2212%22%20viewBox%3D%220%200%2018%2012%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12.7133%203.78811C12.7133%203.84528%2012.654%203.94533%2012.5353%204.08826C12.4166%204.23119%2012.2894%204.39985%2012.1537%204.59424C12.0181%204.78862%2011.8909%205.00016%2011.7722%205.22885C11.6535%205.45754%2011.5942%205.69194%2011.5942%205.93207C11.5942%206.17219%2011.6535%206.40374%2011.7722%206.62671C11.8909%206.84968%2012.0181%207.05264%2012.1537%207.2356C12.2894%207.41855%2012.4166%207.57005%2012.5353%207.69011C12.654%207.81018%2012.7133%207.88736%2012.7133%207.92166V9.72259C12.7133%209.91697%2012.6427%2010.1371%2012.5014%2010.3829C12.3601%2010.6288%2012.1848%2010.8603%2011.9757%2011.0776C11.7666%2011.2948%2011.5348%2011.4749%2011.2805%2011.6178C11.0261%2011.7608%2010.7859%2011.8322%2010.5598%2011.8322H2.13229C1.82707%2011.8322%201.54728%2011.7779%201.29293%2011.6693C1.03858%2011.5607%200.815315%2011.4092%200.623139%2011.2148C0.430963%2011.0204%200.281177%2010.7917%200.173785%2010.5287C0.0663918%2010.2657%200.0126953%209.97986%200.0126953%209.67113V2.27876C0.0126953%202.05007%200.0635656%201.81281%200.165306%201.56697C0.267047%201.32113%200.411179%201.0953%200.597704%200.889476C0.784228%200.683656%201.00467%200.512139%201.25902%200.374926C1.51337%200.237712%201.79316%200.169106%202.09838%200.169106H10.5259C10.8311%200.169106%2011.1166%200.223419%2011.3822%200.332046C11.6479%200.440674%2011.8796%200.589322%2012.0774%200.77799C12.2753%200.966658%2012.4307%201.19249%2012.5437%201.45548C12.6568%201.71847%2012.7133%201.99862%2012.7133%202.29591V3.78811ZM17.9869%202.17585V10.0142C17.9869%2010.2657%2017.9219%2010.4887%2017.7919%2010.6831C17.6619%2010.8775%2017.4669%2010.9747%2017.2069%2010.9747C17.1164%2010.9747%2017.0006%2010.9404%2016.8592%2010.8718C16.7179%2010.8031%2016.5766%2010.7231%2016.4353%2010.6316C16.294%2010.5402%2016.1612%2010.4487%2016.0368%2010.3572C15.9125%2010.2657%2015.8221%2010.1914%2015.7655%2010.1342C15.6186%2010.0084%2015.3953%209.79119%2015.0957%209.48246C14.7962%209.17373%2014.4938%208.82498%2014.1886%208.43621C13.8833%208.04744%2013.6149%207.64724%2013.3831%207.2356C13.1514%206.82396%2013.0355%206.44662%2013.0355%206.10358C13.0355%205.76055%2013.1598%205.36892%2013.4085%204.9287C13.6572%204.48847%2013.9568%204.05682%2014.3073%203.63374C14.6577%203.21067%2015.0251%202.81904%2015.4094%202.45885C15.7938%202.09867%2016.116%201.8271%2016.376%201.64415C16.4777%201.57554%2016.6162%201.49264%2016.7914%201.39545C16.9666%201.29826%2017.1221%201.24966%2017.2577%201.24966C17.563%201.24966%2017.7608%201.33542%2017.8512%201.50694C17.9417%201.67845%2017.9869%201.88999%2017.9869%202.14155V2.17585Z%22%20fill%3D%22%23147AFF%22%20style%3D%22fill%3A%23147AFF%3Bfill%3Acolor%28display-p3%200.0784%200.4784%201.0000%29%3Bfill-opacity%3A1%3B%22%2F%3E%3C%2Fsvg%3E";export{C as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var l="data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M0.820502%201.908L2.4211%200.335447C2.84833%20-0.110789%203.54101%20-0.110788%203.96825%200.335448L6.55252%203.03465C6.97975%203.48089%206.97975%204.20438%206.55252%204.65061L5.40756%205.84649C5.89906%206.92709%206.58667%207.90985%207.44288%208.73564C8.3911%209.65016%209.50662%2010.3341%2010.7098%2010.7549L11.7569%209.66126C12.1841%209.21502%2012.8768%209.21502%2013.304%209.66126L15.6796%2012.1424C16.1068%2012.5887%2016.1068%2013.3122%2015.6796%2013.7584L13.9485%2015.6199C13.9389%2015.6199%2013.9581%2015.6199%2013.9485%2015.6199C13.7709%2015.8055%2013.5385%2015.9293%2013.2854%2015.9734L13.128%2016.0008C9.75381%2015.9708%206.84954%2014.6061%204.36844%2012.2132C1.859%209.79292%200.271627%206.98782%200%203.43154C0%202.94579%200.202278%202.48197%200.558263%202.15147L0.820502%201.908Z%22%20fill%3D%22%23147AFF%22%20style%3D%22fill%3A%23147AFF%3Bfill%3Acolor%28display-p3%200.0784%200.4784%201.0000%29%3Bfill-opacity%3A1%3B%22%2F%3E%3C%2Fsvg%3E";export{l as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e;!function(e){e.MORE="more",e.CREATE="create",e.CLEAR="clear",e.SEARCH="search",e.BACK="back",e.EMOJI="emoji",e.PROGRESS="progress",e.FILE="file",e.CLOSE="close",e.CANCEL="cancel",e.ADD="plus",e.IMAGE="image",e.VIDEO="video",e.DOCUMENT="document",e.STAR="star",e.COPY="copy",e.DEL="del",e.FORWARD="forward",e.REPLY="reply",e.RIGHT="right",e.ARROW_RIGHT="arrow-right",e.ELLIPSE="ellipse",e.ARROW_DOWN="arrow-down",e.EDIT="edit",e.CONFIRM="confirm",e.CAMERA="camera",e.QUOTE="quote",e.REVOCATION="revocation",e.EFFORT="effort",e.CRY="cry",e.SEND="send",e.OWNER="owner",e.LIVING="living",e.MEMBER="member",e.LIKE="like",e.UNLIKE="unlike",e.LIKED="liked",e.UNLIKED="unliked",e.UNION="union",e.UNUNION="ununion",e.VECTOR="vector",e.UNVECTOR="unvector",e.VOICE="voice",e.ADDFRIEND="addFriend"}(e||(e={}));export{e as IconTypes};
|
|
1
|
+
var e;!function(e){e.MORE="more",e.CREATE="create",e.CLEAR="clear",e.SEARCH="search",e.BACK="back",e.EMOJI="emoji",e.PROGRESS="progress",e.FILE="file",e.CLOSE="close",e.CANCEL="cancel",e.ADD="plus",e.IMAGE="image",e.VIDEO="video",e.DOCUMENT="document",e.STAR="star",e.COPY="copy",e.DEL="del",e.FORWARD="forward",e.REPLY="reply",e.RIGHT="right",e.ARROW_RIGHT="arrow-right",e.ELLIPSE="ellipse",e.ARROW_DOWN="arrow-down",e.EDIT="edit",e.CONFIRM="confirm",e.CAMERA="camera",e.QUOTE="quote",e.REVOCATION="revocation",e.EFFORT="effort",e.CRY="cry",e.SEND="send",e.OWNER="owner",e.LIVING="living",e.MEMBER="member",e.LIKE="like",e.UNLIKE="unlike",e.LIKED="liked",e.UNLIKED="unliked",e.UNION="union",e.UNUNION="ununion",e.VECTOR="vector",e.UNVECTOR="unvector",e.VOICE="voice",e.ADDFRIEND="addFriend",e.VIDEOCALL="videoCall",e.VOICECALL="voiceCall"}(e||(e={}));export{e as IconTypes};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
|
|
3
3
|
interface InfiniteScrollProps {
|
|
4
4
|
className?: string;
|
|
5
|
-
element?:
|
|
5
|
+
element?: React__default.ElementType;
|
|
6
6
|
hasMore?: boolean;
|
|
7
7
|
hasMoreNewer?: boolean;
|
|
8
8
|
initialLoad?: boolean;
|
|
9
9
|
isLoading?: boolean;
|
|
10
10
|
listenToScroll?: (offset: number, reverseOffset: number, threshold: number) => void;
|
|
11
|
-
loader?:
|
|
12
|
-
loading?:
|
|
11
|
+
loader?: React__default.ReactNode;
|
|
12
|
+
loading?: React__default.ReactNode;
|
|
13
13
|
loadMore?: () => void;
|
|
14
14
|
loadMoreNewer?: () => void;
|
|
15
15
|
pageStart?: number;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default, { InputHTMLAttributes } from 'react';
|
|
2
2
|
|
|
3
3
|
interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'prefix' | 'type'> {
|
|
4
4
|
className?: string;
|
|
5
5
|
customClassName?: string;
|
|
6
6
|
placeholder?: string;
|
|
7
7
|
clearable?: boolean;
|
|
8
|
-
prefix?:
|
|
9
|
-
suffix?:
|
|
8
|
+
prefix?: React__default.ReactNode;
|
|
9
|
+
suffix?: React__default.ReactNode;
|
|
10
10
|
value?: InputHTMLAttributes<HTMLInputElement>['value'];
|
|
11
11
|
border?: '' | 'bottom';
|
|
12
12
|
disabled?: boolean;
|
|
@@ -18,6 +18,6 @@ interface InputRef {
|
|
|
18
18
|
blur: () => void;
|
|
19
19
|
input: HTMLInputElement | null;
|
|
20
20
|
}
|
|
21
|
-
declare const Input:
|
|
21
|
+
declare const Input: React__default.ForwardRefExoticComponent<InputProps & React__default.RefAttributes<InputRef>>;
|
|
22
22
|
|
|
23
23
|
export { Input, InputProps, InputRef };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
|
|
3
3
|
interface PopupProps {
|
|
4
4
|
className?: string;
|
|
5
5
|
onClick?: (e: Event) => void;
|
|
6
6
|
}
|
|
7
|
-
declare function Model<T extends PopupProps>(props:
|
|
7
|
+
declare function Model<T extends PopupProps>(props: React__default.PropsWithChildren<T>): React__default.ReactElement;
|
|
8
8
|
|
|
9
9
|
export { Model };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
|
|
3
3
|
interface PluginsProps {
|
|
4
4
|
plugins?: Array<any>;
|
|
@@ -11,8 +11,8 @@ interface PluginsProps {
|
|
|
11
11
|
handleVisible?: (isVisible: any) => void;
|
|
12
12
|
showMore?: boolean;
|
|
13
13
|
}
|
|
14
|
-
declare const Plugins:
|
|
15
|
-
children?:
|
|
16
|
-
} &
|
|
14
|
+
declare const Plugins: React__default.ForwardRefExoticComponent<PluginsProps & {
|
|
15
|
+
children?: React__default.ReactNode;
|
|
16
|
+
} & React__default.RefAttributes<unknown>>;
|
|
17
17
|
|
|
18
18
|
export { Plugins, PluginsProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
|
|
3
3
|
interface PopupProps {
|
|
4
4
|
className?: string;
|
|
@@ -8,6 +8,6 @@ interface PopupProps {
|
|
|
8
8
|
root?: any;
|
|
9
9
|
handleVisible?: (isVisible: any) => void;
|
|
10
10
|
}
|
|
11
|
-
declare function Popup<T extends PopupProps>(props:
|
|
11
|
+
declare function Popup<T extends PopupProps>(props: React__default.PropsWithChildren<T>): React__default.ReactElement;
|
|
12
12
|
|
|
13
13
|
export { Popup };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import React__default from 'react';
|
|
3
3
|
|
|
4
4
|
interface Props {
|
|
5
5
|
checked: boolean;
|
|
6
|
-
onChange: (e:
|
|
6
|
+
onChange: (e: React__default.ChangeEvent) => void;
|
|
7
7
|
checkedColor?: string;
|
|
8
8
|
className?: string;
|
|
9
9
|
}
|