tuikit-atomicx-vue3 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{DialogPortal-8bLejP4P.js → DialogPortal-DWeT-J6v.js} +3 -3
- package/dist/{FilePicker.vue_vue_type_script_setup_true_lang-D0cP-aFi.js → FilePicker.vue_vue_type_script_setup_true_lang-CaSj3Gh_.js} +2 -1
- package/dist/{ImagePicker.vue_vue_type_script_setup_true_lang-DzBHwcSi.js → ImagePicker.vue_vue_type_script_setup_true_lang-CrzGMmrh.js} +2 -1
- package/dist/{MaterialRenameDialog.vue_vue_type_script_setup_true_lang-Cmhf2QX4.js → MaterialRenameDialog.vue_vue_type_script_setup_true_lang-CVh4Regz.js} +1 -1
- package/dist/{PopoverTrigger-BhQt39dx.js → PopoverTrigger-ByOI-vdB.js} +3 -3
- package/dist/{PopperContent-C59duB_H.js → PopperContent-BaiCn-CA.js} +1 -1
- package/dist/{Teleport-BnT1MTUO.js → Teleport-CMvGsENT.js} +4 -5
- package/dist/{VideoPicker.vue_vue_type_script_setup_true_lang-DAv8_NWh.js → VideoPicker.vue_vue_type_script_setup_true_lang-DTv6TJKr.js} +2 -1
- package/dist/baseComp/AudioIcon.js +1 -1
- package/dist/baseComp/Modal/Modal.js +1 -1
- package/dist/baseComp/Popup/Popup.js +132 -0
- package/dist/baseComp/Popup/Popup.vue.d.ts +54 -0
- package/dist/baseComp/Popup/index.d.ts +2 -0
- package/dist/baseComp/Popup/index.js +4 -0
- package/dist/baseComp/View/View.js +2 -40
- package/dist/baseComp/View/View.vue.d.ts +4 -10
- package/dist/baseComp/View/index.js +37 -2
- package/dist/baseComp/index.d.ts +2 -0
- package/dist/baseComp/index.js +6 -0
- package/dist/chat/index.d.ts +17354 -0
- package/dist/chat/index.js +66 -0
- package/dist/chat/server.d.ts +19 -0
- package/dist/chat/server.js +108 -0
- package/dist/components/AudioSetting/AudioMediaControl.js +1 -1
- package/dist/components/AudioSetting/index.js +1 -33
- package/dist/components/AudioSettingPanel/index.js +19 -5
- package/dist/components/Avatar/Avatar.js +3 -3
- package/dist/components/Avatar/constants/avatar.d.ts +7 -0
- package/dist/components/Avatar/constants/avatar.js +14 -0
- package/dist/components/Avatar/index.d.ts +2 -1
- package/dist/components/Avatar/index.js +8 -1
- package/dist/components/BarrageInput/BarrageInput.js +13 -7
- package/dist/components/BarrageInput/BarrageInput.vue.d.ts +7 -2
- package/dist/components/BarrageInput/BarrageInputH5.js +13 -5
- package/dist/components/BarrageInput/BarrageInputH5.vue.d.ts +15 -4
- package/dist/components/BarrageInput/EmojiPicker/EmojiPicker.js +9 -8
- package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.d.ts +18 -0
- package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +93 -0
- package/dist/components/BarrageInput/TextEditor/EditorCore.d.ts +4 -3
- package/dist/components/BarrageInput/TextEditor/EditorCore.js +8 -2
- package/dist/components/BarrageInput/TextEditor/TextEditor.js +1 -1
- package/dist/components/BarrageInput/TextEditor/TextEditor.vue.d.ts +1 -0
- package/dist/components/BarrageInput/TextEditor/index.js +125 -2
- package/dist/components/BarrageInput/index.d.ts +23 -80
- package/dist/components/BarrageList/BarrageList.js +2 -2
- package/dist/components/BarrageList/BarrageListH5.js +2 -2
- package/dist/components/BarrageList/Message/CustomMessage/CustomMessage.js +1 -1
- package/dist/components/BarrageList/Message/CustomMessage/index.js +10 -2
- package/dist/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.js +1 -1
- package/dist/components/BarrageList/Message/GroupTipMessage/index.js +28 -2
- package/dist/components/BarrageList/Message/Message.js +1 -1
- package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.js +3 -3
- package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.js +11 -11
- package/dist/components/BarrageList/Message/RecalledMessage/RecalledMessage.js +2 -2
- package/dist/components/BarrageList/Message/TextMessage/TextMessage.js +1 -1
- package/dist/components/BarrageList/Message/index.js +21 -2
- package/dist/components/BarrageList/MessageForward/MessageForward.js +4 -4
- package/dist/components/CameraButton/index.js +48 -2
- package/dist/components/ChatSetting/C2CChatSetting/C2CChatSetting.js +123 -0
- package/dist/components/ChatSetting/C2CChatSetting/C2CChatSetting.vue.d.ts +2 -0
- package/dist/components/ChatSetting/C2CChatSetting/index.d.ts +4 -0
- package/dist/components/ChatSetting/C2CChatSetting/index.js +5 -0
- package/dist/components/ChatSetting/ChatSetting.js +33 -0
- package/dist/components/ChatSetting/ChatSetting.vue.d.ts +2 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupActions/GroupActions.js +181 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupActions/GroupActions.vue.d.ts +2 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupActions/index.d.ts +3 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupActions/index.js +4 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupChatSetting.js +261 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupChatSetting.vue.d.ts +2 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupInfo/GroupInfo.js +193 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupInfo/GroupInfo.vue.d.ts +2 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupInfo/index.d.ts +3 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupInfo/index.js +4 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupManagement/GroupManagement.js +284 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupManagement/GroupManagement.vue.d.ts +6 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupManagement/index.d.ts +3 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupManagement/index.js +4 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupManagementEntry/GroupManagementEntry.js +38 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupManagementEntry/GroupManagementEntry.vue.d.ts +6 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupManagementEntry/index.d.ts +3 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupManagementEntry/index.js +4 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupMembers/GroupMembers.js +250 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupMembers/GroupMembers.vue.d.ts +66 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupMembers/index.d.ts +3 -0
- package/dist/components/ChatSetting/GroupChatSetting/GroupMembers/index.js +4 -0
- package/dist/components/ChatSetting/GroupChatSetting/PersonalSettings/PersonalSettings.js +46 -0
- package/dist/components/ChatSetting/GroupChatSetting/PersonalSettings/PersonalSettings.vue.d.ts +2 -0
- package/dist/components/ChatSetting/GroupChatSetting/PersonalSettings/index.d.ts +3 -0
- package/dist/components/ChatSetting/GroupChatSetting/PersonalSettings/index.js +4 -0
- package/dist/components/ChatSetting/GroupChatSetting/index.d.ts +3 -0
- package/dist/components/ChatSetting/GroupChatSetting/index.js +4 -0
- package/dist/components/ChatSetting/SettingItem/SettingItem.js +268 -0
- package/dist/components/ChatSetting/SettingItem/SettingItem.vue.d.ts +26 -0
- package/dist/components/ChatSetting/SettingItem/index.d.ts +3 -0
- package/dist/components/ChatSetting/SettingItem/index.js +4 -0
- package/dist/components/ChatSetting/i18n/en-US.d.ts +95 -0
- package/dist/components/ChatSetting/i18n/en-US.js +107 -0
- package/dist/components/ChatSetting/i18n/index.d.ts +1 -0
- package/dist/components/ChatSetting/i18n/index.js +10 -0
- package/dist/components/ChatSetting/i18n/zh-CN.d.ts +95 -0
- package/dist/components/ChatSetting/i18n/zh-CN.js +107 -0
- package/dist/components/ChatSetting/index.d.ts +5 -0
- package/dist/components/ChatSetting/index.js +8 -0
- package/dist/components/CoGuestPanel/CoGuestPanel.js +38 -113
- package/dist/components/CoGuestPanel/constants.d.ts +4 -0
- package/dist/components/CoGuestPanel/constants.js +7 -0
- package/dist/components/CoGuestPanel/i18n/en-US/index.d.ts +5 -0
- package/dist/components/CoGuestPanel/i18n/en-US/index.js +12 -7
- package/dist/components/CoGuestPanel/i18n/zh-CN/index.d.ts +5 -0
- package/dist/components/CoGuestPanel/i18n/zh-CN/index.js +12 -7
- package/dist/components/CoGuestPanel/index.d.ts +1 -2
- package/dist/components/CoGuestPanel/index.js +3 -2
- package/dist/components/ConversationList/ConversationActions/ConversationActions.js +207 -0
- package/dist/components/ConversationList/ConversationActions/ConversationActions.vue.d.ts +59 -0
- package/dist/components/ConversationList/ConversationActions/index.d.ts +1 -0
- package/dist/components/ConversationList/ConversationActions/index.js +4 -0
- package/dist/components/ConversationList/ConversationCreate/ConversationCreate.js +157 -0
- package/dist/components/ConversationList/ConversationCreate/ConversationCreate.vue.d.ts +38 -0
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateButton/ConversationCreateButton.js +41 -0
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateButton/ConversationCreateButton.vue.d.ts +37 -0
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.js +226 -0
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.vue.d.ts +22 -0
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateSelectView/ConversationCreateSelectView.js +65 -0
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateSelectView/ConversationCreateSelectView.vue.d.ts +17 -0
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateSelectView/index.d.ts +1 -0
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateSelectView/index.js +4 -0
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.js +238 -0
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.vue.d.ts +25 -0
- package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.js +79 -0
- package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.vue.d.ts +22 -0
- package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/index.d.ts +5 -0
- package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/index.js +7 -0
- package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/type.d.ts +13 -0
- package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/type.js +19 -0
- package/dist/components/ConversationList/ConversationCreate/hooks/useConversationCreate.d.ts +9 -0
- package/dist/components/ConversationList/ConversationCreate/hooks/useConversationCreate.js +96 -0
- package/dist/components/ConversationList/ConversationCreate/index.d.ts +8 -0
- package/dist/components/ConversationList/ConversationCreate/index.js +18 -0
- package/dist/components/ConversationList/ConversationCreate/static/word.d.ts +6 -0
- package/dist/components/ConversationList/ConversationCreate/static/word.js +4 -0
- package/dist/components/ConversationList/ConversationList.js +182 -26
- package/dist/components/ConversationList/ConversationList.vue.d.ts +9449 -1
- package/dist/components/ConversationList/ConversationListContent/ConversationListContent.js +51 -0
- package/dist/components/ConversationList/ConversationListContent/ConversationListContent.vue.d.ts +381 -0
- package/dist/components/ConversationList/ConversationListContent/index.d.ts +1 -0
- package/dist/components/ConversationList/ConversationListContent/index.js +4 -0
- package/dist/components/ConversationList/ConversationListHeader/ConversationListHeader.js +51 -0
- package/dist/components/ConversationList/ConversationListHeader/ConversationListHeader.vue.d.ts +47 -0
- package/dist/components/ConversationList/ConversationListHeader/index.d.ts +1 -0
- package/dist/components/ConversationList/ConversationListHeader/index.js +4 -0
- package/dist/components/ConversationList/ConversationPlaceHolder/ConversationPlaceHolder.js +103 -0
- package/dist/components/ConversationList/ConversationPlaceHolder/ConversationPlaceHolder.vue.d.ts +39 -0
- package/dist/components/ConversationList/ConversationPlaceHolder/index.d.ts +4 -0
- package/dist/components/ConversationList/ConversationPlaceHolder/index.js +4 -0
- package/dist/components/ConversationList/ConversationPreview/ConversationPreview.js +4 -0
- package/dist/components/ConversationList/ConversationPreview/ConversationPreview.vue.d.ts +3356 -0
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.js +69 -0
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.vue.d.ts +17 -0
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.js +58 -0
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.vue.d.ts +17 -0
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.js +63 -0
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue.d.ts +19 -0
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.js +166 -0
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue.d.ts +801 -0
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUnread.js +68 -0
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUnread.vue.d.ts +17 -0
- package/dist/components/ConversationList/ConversationPreview/index.d.ts +7 -0
- package/dist/components/ConversationList/ConversationPreview/index.js +86 -0
- package/dist/components/ConversationList/ConversationPreview/utils.d.ts +7 -0
- package/dist/components/ConversationList/ConversationPreview/utils.js +49 -0
- package/dist/components/ConversationList/ConversationSearch/ConversationSearch.js +197 -0
- package/dist/components/ConversationList/ConversationSearch/ConversationSearch.vue.d.ts +2006 -0
- package/dist/components/ConversationList/ConversationSearch/index.d.ts +1 -0
- package/dist/components/ConversationList/ConversationSearch/index.js +4 -0
- package/dist/components/ConversationList/i18n/en-US.d.ts +38 -0
- package/dist/components/ConversationList/i18n/en-US.js +47 -0
- package/dist/components/ConversationList/i18n/index.d.ts +4 -0
- package/dist/components/ConversationList/i18n/index.js +6 -0
- package/dist/components/ConversationList/i18n/zh-CN.d.ts +38 -0
- package/dist/components/ConversationList/i18n/zh-CN.js +47 -0
- package/dist/components/ConversationList/index.d.ts +19213 -3
- package/dist/components/ConversationList/index.js +32 -2
- package/dist/components/LiveAudienceList/LiveAudienceList.js +3 -3
- package/dist/components/LiveAudienceList/UserActionMenu.js +4 -37
- package/dist/components/LiveList/LiveList.js +24 -11
- package/dist/components/LiveList/LiveListH5.js +26 -13
- package/dist/components/LiveMonitorView/LiveMonitorView.js +63 -53
- package/dist/components/LiveScenePanel/MaterialRenameDialog.js +1 -1
- package/dist/components/LiveScenePanel/i18n/en-US/index.d.ts +2 -0
- package/dist/components/LiveScenePanel/i18n/en-US/index.js +3 -1
- package/dist/components/LiveScenePanel/i18n/zh-CN/index.d.ts +2 -0
- package/dist/components/LiveScenePanel/i18n/zh-CN/index.js +3 -1
- package/dist/components/LiveScenePanel/index.js +14 -6
- package/dist/components/LiveStreamView/DefaultStreamViewUI.js +118 -31
- package/dist/components/LiveStreamView/DefaultStreamViewUI.vue.d.ts +13 -38
- package/dist/components/LiveStreamView/index.js +5 -5
- package/dist/components/LiveStreamView/index.vue.d.ts +3 -1
- package/dist/components/MessageInput/AttachmentPicker/AttachmentPicker.js +1 -1
- package/dist/components/MessageInput/AttachmentPicker/FilePicker.js +1 -1
- package/dist/components/MessageInput/AttachmentPicker/ImagePicker.js +1 -1
- package/dist/components/MessageInput/AttachmentPicker/VideoPicker.js +1 -1
- package/dist/components/MessageInput/AttachmentPicker/index.js +90 -8
- package/dist/components/MessageInput/EmojiPicker/EmojiPicker.js +5 -4
- package/dist/components/MessageInput/MessageInput.js +1 -1
- package/dist/components/MessageInput/QuotedMessagePreview/QuotedMessagePreview.js +1 -1
- package/dist/components/MessageInput/QuotedMessagePreview/index.js +89 -2
- package/dist/components/MessageInput/SendButton/SendButton.js +1 -1
- package/dist/components/MessageInput/SendButton/SendButton.vue.d.ts +3 -3
- package/dist/components/MessageInput/SendButton/index.js +33 -2
- package/dist/components/MessageInput/TextEditor/EditorCore.d.ts +2 -2
- package/dist/components/MessageInput/TextEditor/EditorCore.js +3 -2
- package/dist/components/MessageInput/TextEditor/TextEditor.js +1 -1
- package/dist/components/MessageInput/TextEditor/TextEditor.vue.d.ts +3 -3
- package/dist/components/MessageInput/TextEditor/index.js +96 -2
- package/dist/components/MessageInput/i18n/en-US.d.ts +12 -0
- package/dist/components/MessageInput/i18n/en-US.js +14 -0
- package/dist/components/MessageInput/i18n/index.d.ts +1 -0
- package/dist/components/MessageInput/i18n/index.js +10 -0
- package/dist/components/MessageInput/i18n/zh-CN.d.ts +12 -0
- package/dist/components/MessageInput/i18n/zh-CN.js +14 -0
- package/dist/components/MessageInput/index.d.ts +1 -1
- package/dist/components/MessageInput/index.js +127 -14
- package/dist/components/MessageList/Message/AudioMessage/AudioMessage.js +4 -4
- package/dist/components/MessageList/Message/CustomMessage/CustomMessage.js +1 -1
- package/dist/components/MessageList/Message/CustomMessage/index.js +10 -2
- package/dist/components/MessageList/Message/FileMessage/FileMessage.js +9 -9
- package/dist/components/MessageList/Message/GroupTipMessage/GroupTipMessage.js +1 -1
- package/dist/components/MessageList/Message/GroupTipMessage/GroupTipMessage.vue.d.ts +4 -4
- package/dist/components/MessageList/Message/GroupTipMessage/index.js +29 -2
- package/dist/components/MessageList/Message/GroupTipMessage/resolveGroupTipMessage.d.ts +6 -0
- package/dist/components/MessageList/Message/GroupTipMessage/resolveGroupTipMessage.js +85 -0
- package/dist/components/MessageList/Message/Message.js +1 -1
- package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.js +3 -3
- package/dist/components/MessageList/Message/MessageLayout/MessageBubble/MessageBubble.js +4 -4
- package/dist/components/MessageList/Message/MessageLayout/MessageLayout.js +21 -20
- package/dist/components/MessageList/Message/MessageLayout/MessageMeta/MessageMeta.js +9 -8
- package/dist/components/MessageList/Message/MessageLayout/MessageMeta/MessageMeta.vue.d.ts +4 -0
- package/dist/components/MessageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.js +2 -2
- package/dist/components/MessageList/Message/RecalledMessage/RecalledMessage.js +9 -9
- package/dist/components/MessageList/Message/TextMessage/TextMessage.js +10 -10
- package/dist/components/MessageList/Message/VideoMessage/VideoMessage.js +2 -2
- package/dist/components/MessageList/Message/index.js +30 -2
- package/dist/components/MessageList/MessageForward/ForwardListItem.js +5 -5
- package/dist/components/MessageList/MessageForward/MessageForward.js +11 -11
- package/dist/components/MessageList/MessageList.js +8 -7
- package/dist/components/MessageList/ReadReceiptInfo/ReadReceiptInfo.js +37 -37
- package/dist/components/MessageList/i18n/en-US.d.ts +37 -0
- package/dist/components/MessageList/i18n/en-US.js +41 -0
- package/dist/components/MessageList/i18n/index.d.ts +1 -0
- package/dist/components/MessageList/i18n/index.js +10 -0
- package/dist/components/MessageList/i18n/zh-CN.d.ts +37 -0
- package/dist/components/MessageList/i18n/zh-CN.js +41 -0
- package/dist/components/MessageList/index.js +2 -2
- package/dist/components/MicButton/index.js +56 -2
- package/dist/components/Search/Search.js +191 -0
- package/dist/components/Search/Search.vue.d.ts +809 -0
- package/dist/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.js +564 -0
- package/dist/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.vue.d.ts +16 -0
- package/dist/components/Search/SearchAdvanced/DateRangePicker/index.d.ts +2 -0
- package/dist/components/Search/SearchAdvanced/DateRangePicker/index.js +4 -0
- package/dist/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.js +262 -0
- package/dist/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.vue.d.ts +17 -0
- package/dist/components/Search/SearchAdvanced/MessageAdvanced/index.d.ts +2 -0
- package/dist/components/Search/SearchAdvanced/MessageAdvanced/index.js +4 -0
- package/dist/components/Search/SearchAdvanced/SearchAdvanced.js +76 -0
- package/dist/components/Search/SearchAdvanced/SearchAdvanced.vue.d.ts +30 -0
- package/dist/components/Search/SearchAdvanced/SearchTab/SearchTab.js +59 -0
- package/dist/components/Search/SearchAdvanced/SearchTab/SearchTab.vue.d.ts +20 -0
- package/dist/components/Search/SearchAdvanced/SearchTab/index.d.ts +2 -0
- package/dist/components/Search/SearchAdvanced/SearchTab/index.js +4 -0
- package/dist/components/Search/SearchAdvanced/Slider/Slider.js +97 -0
- package/dist/components/Search/SearchAdvanced/Slider/Slider.vue.d.ts +34 -0
- package/dist/components/Search/SearchAdvanced/Slider/index.d.ts +2 -0
- package/dist/components/Search/SearchAdvanced/Slider/index.js +4 -0
- package/dist/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.js +449 -0
- package/dist/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.vue.d.ts +17 -0
- package/dist/components/Search/SearchAdvanced/UserAdvanced/index.d.ts +2 -0
- package/dist/components/Search/SearchAdvanced/UserAdvanced/index.js +4 -0
- package/dist/components/Search/SearchAdvanced/index.d.ts +8 -0
- package/dist/components/Search/SearchAdvanced/index.js +14 -0
- package/dist/components/Search/SearchBar/SearchBar.js +154 -0
- package/dist/components/Search/SearchBar/SearchBar.vue.d.ts +39 -0
- package/dist/components/Search/SearchBar/index.d.ts +4 -0
- package/dist/components/Search/SearchBar/index.js +4 -0
- package/dist/components/Search/SearchResults/EmptyResult/EmptyResult.js +47 -0
- package/dist/components/Search/SearchResults/EmptyResult/EmptyResult.vue.d.ts +28 -0
- package/dist/components/Search/SearchResults/EmptyResult/index.d.ts +2 -0
- package/dist/components/Search/SearchResults/EmptyResult/index.js +4 -0
- package/dist/components/Search/SearchResults/Loading/Loading.js +29 -0
- package/dist/components/Search/SearchResults/Loading/Loading.vue.d.ts +14 -0
- package/dist/components/Search/SearchResults/Loading/index.d.ts +2 -0
- package/dist/components/Search/SearchResults/Loading/index.js +4 -0
- package/dist/components/Search/SearchResults/SearchResults.js +416 -0
- package/dist/components/Search/SearchResults/SearchResults.vue.d.ts +173 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.js +107 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.vue.d.ts +14 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/Conversation/index.d.ts +2 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/Conversation/index.js +4 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/Group/Group.js +76 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/Group/Group.vue.d.ts +14 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/Group/index.d.ts +2 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/Group/index.js +4 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/Message/Message.js +311 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/Message/Message.vue.d.ts +14 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/Message/index.d.ts +2 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/Message/index.js +4 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/SearchResultsItem.js +59 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/SearchResultsItem.vue.d.ts +34 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/User/User.js +102 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/User/User.vue.d.ts +14 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/User/index.d.ts +2 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/User/index.js +4 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/index.d.ts +9 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/index.js +13 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/utils/highlightText.d.ts +10 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/utils/highlightText.js +43 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/utils/index.d.ts +1 -0
- package/dist/components/Search/SearchResults/SearchResultsItem/utils/index.js +4 -0
- package/dist/components/Search/SearchResults/index.d.ts +6 -0
- package/dist/components/Search/SearchResults/index.js +18 -0
- package/dist/components/Search/i18n/en-US/DateRangePicker.d.ts +23 -0
- package/dist/components/Search/i18n/en-US/DateRangePicker.js +26 -0
- package/dist/components/Search/i18n/en-US/Search.d.ts +42 -0
- package/dist/components/Search/i18n/en-US/Search.js +54 -0
- package/dist/components/Search/i18n/en-US/index.d.ts +66 -0
- package/dist/components/Search/i18n/en-US/index.js +10 -0
- package/dist/components/Search/i18n/index.d.ts +4 -0
- package/dist/components/Search/i18n/index.js +6 -0
- package/dist/components/Search/i18n/zh-CN/DateRangePicker.d.ts +23 -0
- package/dist/components/Search/i18n/zh-CN/DateRangePicker.js +26 -0
- package/dist/components/Search/i18n/zh-CN/Search.d.ts +42 -0
- package/dist/components/Search/i18n/zh-CN/Search.js +54 -0
- package/dist/components/Search/i18n/zh-CN/index.d.ts +66 -0
- package/dist/components/Search/i18n/zh-CN/index.js +10 -0
- package/dist/components/Search/index.d.ts +1335 -0
- package/dist/components/Search/index.js +28 -0
- package/dist/components/StreamMixer/LocalMixer/index.js +2 -2
- package/dist/components/StreamMixer/index.js +3 -3
- package/dist/components/StreamView/Layout/FloatLayout.js +4 -4
- package/dist/components/StreamView/Layout/GridLayout.js +1 -1
- package/dist/components/StreamView/Layout/MeetingLayout.js +2 -2
- package/dist/components/StreamView/common/StreamPlay/index.js +1 -1
- package/dist/components/StreamView/manager/mediaManager.js +2 -4
- package/dist/components/UserList/UserItem/UserAction/indexPC.js +1 -1
- package/dist/components/UserList/UserItem/UserInfo/index.js +2 -2
- package/dist/components/UserList/UserItem/indexPC.js +1 -1
- package/dist/components/UserPicker/UserPicker.js +2 -2
- package/dist/components/UserPicker/components/ListMode/ListMode.js +1 -1
- package/dist/components/UserPicker/components/ListMode/ListMode.vue.d.ts +1 -1
- package/dist/components/UserPicker/components/SelectedPanel/SelectedPanel.js +1 -1
- package/dist/components/UserPicker/i18n/en-US.d.ts +7 -0
- package/dist/components/UserPicker/i18n/en-US.js +9 -0
- package/dist/components/UserPicker/i18n/index.d.ts +1 -0
- package/dist/components/UserPicker/i18n/index.js +10 -0
- package/dist/components/UserPicker/i18n/zh-CN.d.ts +7 -0
- package/dist/components/UserPicker/i18n/zh-CN.js +9 -0
- package/dist/components/VideoSetting/VideoMediaControl.js +1 -1
- package/dist/components/VideoSetting/index.js +3 -37
- package/dist/components/VideoSettingPanel/index.d.ts +31 -2
- package/dist/components/VideoSettingPanel/index.js +3 -2
- package/dist/constants/avatar.d.ts +0 -0
- package/dist/constants/avatar.js +1 -0
- package/dist/handler/translator.js +2 -2
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/index.js +6 -0
- package/dist/hooks/useLongPress.d.ts +18 -0
- package/dist/hooks/useLongPress.js +82 -0
- package/dist/hooks/useMessageActions.js +3 -3
- package/dist/hooks/useMouseHover.d.ts +9 -0
- package/dist/hooks/useMouseHover.js +29 -0
- package/dist/hooks/useRoomActions/useRoomAudioAction.js +1 -1
- package/dist/hooks/useRoomActions/useRoomScreenAction.js +1 -1
- package/dist/hooks/useRoomActions/useRoomVideoAction.js +1 -1
- package/dist/hooks/useUserActions/index.js +2 -2
- package/dist/hooks/useUserActions/useAdminAction.js +2 -2
- package/dist/hooks/useUserActions/useAudioAction.js +2 -2
- package/dist/hooks/useUserActions/useChangeNameCardAction/index.js +1 -1
- package/dist/hooks/useUserActions/useKickUserAction.js +1 -1
- package/dist/hooks/useUserActions/useMemberInviteAction.js +1 -1
- package/dist/hooks/useUserActions/useSeatAction.js +1 -1
- package/dist/hooks/useUserActions/useTransferOwnerAction.js +3 -8
- package/dist/hooks/useUserActions/useVideoAction.js +2 -2
- package/dist/{index-BREVQgBq.js → index-CX1Zs9En.js} +3 -5
- package/dist/index-DRcLhqhU.js +38 -0
- package/dist/index-ex2Jv3Tj.js +7655 -0
- package/dist/{index-oR-rgHxX.js → index-t9cbWbGG.js} +1027 -6459
- package/dist/index.d.ts +5 -34
- package/dist/index.js +51 -69
- package/dist/index.vue_vue_type_script_setup_true_lang-EcKm3pYY.js +36 -0
- package/dist/rtc/index.d.ts +533 -0
- package/dist/rtc/index.js +86 -0
- package/dist/rtc/server.d.ts +19 -0
- package/dist/rtc/server.js +115 -0
- package/dist/states/BarrageListState/BarrageListState.js +0 -2
- package/dist/states/C2CSettingState/C2CSettingState.d.ts +19 -0
- package/dist/states/C2CSettingState/C2CSettingState.js +112 -0
- package/dist/states/C2CSettingState/index.d.ts +1 -0
- package/dist/states/C2CSettingState/index.js +4 -0
- package/dist/states/CoGuestState.js +2 -2
- package/dist/states/CoHostState.js +1 -1
- package/dist/states/ContactListState/ContactListState.d.ts +40 -0
- package/dist/states/ContactListState/ContactListState.js +321 -0
- package/dist/states/ContactListState/index.d.ts +1 -0
- package/dist/states/ContactListState/index.js +4 -0
- package/dist/states/ConversationListState/ConversationListState.d.ts +21 -7
- package/dist/states/ConversationListState/ConversationListState.js +105 -21
- package/dist/states/DeviceState.js +21 -14
- package/dist/states/GroupSettingState/GroupSettingState.d.ts +20 -0
- package/dist/states/GroupSettingState/GroupSettingState.js +456 -0
- package/dist/states/GroupSettingState/index.d.ts +2 -0
- package/dist/states/GroupSettingState/index.js +9 -0
- package/dist/states/GroupSettingState/permissions.d.ts +3 -0
- package/dist/states/GroupSettingState/permissions.js +305 -0
- package/dist/states/GroupSettingState/types.d.ts +126 -0
- package/dist/states/GroupSettingState/types.js +43 -0
- package/dist/states/LiveAudienceState.js +3 -4
- package/dist/states/LiveMonitorState/api/http.js +91 -109
- package/dist/states/LiveMonitorState/index.d.ts +1 -0
- package/dist/states/LiveMonitorState/index.js +4 -3
- package/dist/states/LiveMonitorState/player/adapters/trtc.js +8 -16
- package/dist/states/LiveMonitorState/player/manager/playerManager.js +2 -0
- package/dist/states/LiveSeatState/seatEventManager.js +4 -4
- package/dist/states/LiveSeatState/store.js +1 -1
- package/dist/states/LiveSeatState/usePlayStream/RTCStreamManager.js +1 -1
- package/dist/states/LiveSeatState/usePlayStream/RTCStreamPlayer.js +1 -1
- package/dist/states/LiveSeatState/usePlayStream/index.d.ts +7 -4
- package/dist/states/LiveSeatState/usePlayStream/index.js +81 -93
- package/dist/states/LiveState/index.d.ts +5 -11
- package/dist/states/LiveState/index.js +38 -62
- package/dist/states/LoginState.d.ts +6 -15
- package/dist/states/LoginState.js +51 -39
- package/dist/states/MessageActionState/MessageActionState.js +1 -2
- package/dist/states/MessageInputState/MessageInputState.d.ts +11 -28
- package/dist/states/MessageInputState/MessageInputState.js +115 -165
- package/dist/states/MessageInputState/index.js +2 -1
- package/dist/states/MessageInputState/type.d.ts +21 -0
- package/dist/states/MessageInputState/type.js +12 -0
- package/dist/states/MessageInputState/utils.d.ts +30 -0
- package/dist/states/MessageInputState/utils.js +42 -0
- package/dist/states/RoomState.js +5 -3
- package/dist/states/SearchState.d.ts +267 -0
- package/dist/states/SearchState.js +437 -0
- package/dist/states/SeatStore.js +3 -3
- package/dist/states/UIOpenControlState/UIOpenControlState.d.ts +15 -0
- package/dist/states/UIOpenControlState/UIOpenControlState.js +28 -0
- package/dist/states/UIOpenControlState/index.d.ts +1 -0
- package/dist/states/UIOpenControlState/index.js +4 -0
- package/dist/states/UserState/index.js +1 -1
- package/dist/states/UserState/store.js +2 -2
- package/dist/states/UserState/userEventManager.js +2 -2
- package/dist/states/UserState/userManager.js +2 -2
- package/dist/states/VideoMixerState.js +15 -5
- package/dist/styles/index.css +12138 -4535
- package/dist/types/contact.d.ts +111 -0
- package/dist/types/contact.js +19 -0
- package/dist/types/conversation.d.ts +227 -0
- package/dist/types/conversation.js +16 -0
- package/dist/types/device.d.ts +3 -1
- package/dist/types/device.js +2 -0
- package/dist/types/engine.d.ts +7 -0
- package/dist/types/engine.js +10 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.js +14 -2
- package/dist/types/live.d.ts +2 -1
- package/dist/types/login.d.ts +23 -0
- package/dist/types/login.js +1 -0
- package/dist/types/monitor.d.ts +1 -0
- package/dist/types/search.d.ts +90 -0
- package/dist/types/search.js +18 -0
- package/dist/types/types.d.ts +8 -0
- package/dist/types/types.js +10 -0
- package/dist/{useId-DlA8vN1W.js → useId-CsgLY8y3.js} +1 -1
- package/dist/utils/env.js +1 -1
- package/dist/utils/environment.js +1 -1
- package/dist/utils/index.js +6 -2
- package/dist/utils/json.d.ts +23 -2
- package/dist/utils/json.js +48 -1
- package/dist/utils/lodash.d.ts +8 -6
- package/dist/utils/lodash.js +26 -2
- package/dist/utils/riseInput.js +1 -1
- package/dist/utils/time.js +1 -1
- package/dist/{utils-CnPWv_hZ.js → utils-KP1QpeUS.js} +1 -5
- package/package.json +23 -1
- package/src/baseComp/AudioIcon.vue +1 -1
- package/src/baseComp/Popup/Popup.vue +156 -0
- package/src/baseComp/Popup/index.ts +2 -0
- package/src/baseComp/View/View.vue +11 -15
- package/src/baseComp/index.ts +2 -0
- package/src/chat/index.ts +98 -0
- package/src/chat/server.ts +113 -0
- package/src/components/AudioSettingPanel/index.vue +53 -16
- package/src/components/Avatar/Avatar.vue +4 -5
- package/src/components/Avatar/constants/avatar.ts +15 -0
- package/src/components/Avatar/index.ts +17 -1
- package/src/components/BarrageInput/BarrageInput.vue +15 -4
- package/src/components/BarrageInput/BarrageInputH5.vue +13 -1
- package/src/components/BarrageInput/EmojiPicker/EmojiPicker.module.scss +2 -2
- package/src/components/BarrageInput/EmojiPicker/EmojiPicker.vue +1 -1
- package/src/components/BarrageInput/TextEditor/CharacterCountExtension.ts +129 -0
- package/src/components/BarrageInput/TextEditor/EditorCore.ts +9 -3
- package/src/components/BarrageInput/TextEditor/TextEditor.vue +24 -13
- package/src/components/ChatSetting/C2CChatSetting/C2CChatSetting.vue +223 -0
- package/src/components/ChatSetting/C2CChatSetting/index.ts +3 -0
- package/src/components/ChatSetting/ChatSetting.vue +43 -0
- package/src/components/ChatSetting/GroupChatSetting/GroupActions/GroupActions.vue +204 -0
- package/src/components/ChatSetting/GroupChatSetting/GroupActions/index.ts +5 -0
- package/src/components/ChatSetting/GroupChatSetting/GroupChatSetting.vue +295 -0
- package/src/components/ChatSetting/GroupChatSetting/GroupInfo/GroupInfo.vue +227 -0
- package/src/components/ChatSetting/GroupChatSetting/GroupInfo/index.ts +5 -0
- package/src/components/ChatSetting/GroupChatSetting/GroupManagement/GroupManagement.vue +364 -0
- package/src/components/ChatSetting/GroupChatSetting/GroupManagement/index.ts +5 -0
- package/src/components/ChatSetting/GroupChatSetting/GroupManagementEntry/GroupManagementEntry.vue +69 -0
- package/src/components/ChatSetting/GroupChatSetting/GroupManagementEntry/index.ts +5 -0
- package/src/components/ChatSetting/GroupChatSetting/GroupMembers/GroupMembers.vue +515 -0
- package/src/components/ChatSetting/GroupChatSetting/GroupMembers/index.ts +5 -0
- package/src/components/ChatSetting/GroupChatSetting/PersonalSettings/PersonalSettings.vue +50 -0
- package/src/components/ChatSetting/GroupChatSetting/PersonalSettings/index.ts +5 -0
- package/src/components/ChatSetting/GroupChatSetting/index.ts +5 -0
- package/src/components/ChatSetting/SettingItem/SettingItem.vue +524 -0
- package/src/components/ChatSetting/SettingItem/index.ts +3 -0
- package/src/components/ChatSetting/i18n/en-US.ts +115 -0
- package/src/components/ChatSetting/i18n/index.ts +13 -0
- package/src/components/ChatSetting/i18n/zh-CN.ts +115 -0
- package/src/components/ChatSetting/index.ts +6 -0
- package/src/components/CoGuestPanel/CoGuestPanel.vue +52 -13
- package/src/components/CoGuestPanel/constants.ts +4 -0
- package/src/components/CoGuestPanel/i18n/en-US/index.ts +12 -7
- package/src/components/CoGuestPanel/i18n/zh-CN/index.ts +12 -7
- package/src/components/CoGuestPanel/index.ts +2 -2
- package/src/components/ConversationList/ConversationActions/ConversationActions.scss +73 -0
- package/src/components/ConversationList/ConversationActions/ConversationActions.vue +196 -0
- package/src/components/ConversationList/ConversationActions/index.ts +1 -0
- package/src/components/ConversationList/ConversationCreate/ConversationCreate.scss +47 -0
- package/src/components/ConversationList/ConversationCreate/ConversationCreate.vue +149 -0
- package/src/components/ConversationList/ConversationCreate/ConversationCreateButton/ConversationCreateButton.scss +7 -0
- package/src/components/ConversationList/ConversationCreate/ConversationCreateButton/ConversationCreateButton.vue +32 -0
- package/src/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.scss +102 -0
- package/src/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.vue +191 -0
- package/src/components/ConversationList/ConversationCreate/ConversationCreateSelectView/ConversationCreateSelectView.scss +36 -0
- package/src/components/ConversationList/ConversationCreate/ConversationCreateSelectView/ConversationCreateSelectView.vue +44 -0
- package/src/components/ConversationList/ConversationCreate/ConversationCreateSelectView/index.ts +1 -0
- package/src/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.scss +135 -0
- package/src/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.vue +206 -0
- package/src/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.scss +63 -0
- package/src/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.vue +56 -0
- package/src/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/index.ts +5 -0
- package/src/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/type.ts +21 -0
- package/src/components/ConversationList/ConversationCreate/hooks/useConversationCreate.ts +132 -0
- package/src/components/ConversationList/ConversationCreate/index.ts +8 -0
- package/src/components/ConversationList/ConversationCreate/static/word.ts +300 -0
- package/src/components/ConversationList/ConversationList.scss +18 -0
- package/src/components/ConversationList/ConversationList.vue +188 -37
- package/src/components/ConversationList/ConversationListContent/ConversationListContent.scss +24 -0
- package/src/components/ConversationList/ConversationListContent/ConversationListContent.vue +55 -0
- package/src/components/ConversationList/ConversationListContent/index.ts +1 -0
- package/src/components/ConversationList/ConversationListHeader/ConversationListHeader.scss +25 -0
- package/src/components/ConversationList/ConversationListHeader/ConversationListHeader.vue +51 -0
- package/src/components/ConversationList/ConversationListHeader/index.ts +1 -0
- package/src/components/ConversationList/ConversationPlaceHolder/ConversationPlaceHolder.scss +51 -0
- package/src/components/ConversationList/ConversationPlaceHolder/ConversationPlaceHolder.vue +78 -0
- package/src/components/ConversationList/ConversationPlaceHolder/images/cry.png +0 -0
- package/src/components/ConversationList/ConversationPlaceHolder/images/effort.png +0 -0
- package/src/components/ConversationList/ConversationPlaceHolder/index.ts +4 -0
- package/src/components/ConversationList/ConversationPreview/ConversationPreview.scss +116 -0
- package/src/components/ConversationList/ConversationPreview/ConversationPreview.vue +72 -0
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.vue +37 -0
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.vue +27 -0
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue +31 -0
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue +147 -0
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewUnread.vue +34 -0
- package/src/components/ConversationList/ConversationPreview/index.ts +7 -0
- package/src/components/ConversationList/ConversationPreview/utils.ts +55 -0
- package/src/components/ConversationList/ConversationSearch/ConversationSearch.scss +51 -0
- package/src/components/ConversationList/ConversationSearch/ConversationSearch.vue +191 -0
- package/src/components/ConversationList/ConversationSearch/index.ts +1 -0
- package/src/components/ConversationList/i18n/en-US.ts +50 -0
- package/src/components/ConversationList/i18n/index.ts +4 -0
- package/src/components/ConversationList/i18n/zh-CN.ts +50 -0
- package/src/components/ConversationList/index.ts +32 -1
- package/src/components/LiveAudienceList/LiveAudienceList.vue +1 -1
- package/src/components/LiveAudienceList/UserActionMenu.vue +30 -30
- package/src/components/LiveList/LiveList.vue +27 -13
- package/src/components/LiveList/LiveListH5.vue +29 -9
- package/src/components/LiveMonitorView/LiveMonitorView.vue +117 -93
- package/src/components/LiveScenePanel/MaterialRenameDialog.vue +1 -1
- package/src/components/LiveScenePanel/i18n/en-US/index.ts +2 -0
- package/src/components/LiveScenePanel/i18n/zh-CN/index.ts +2 -0
- package/src/components/LiveScenePanel/index.vue +7 -1
- package/src/components/LiveStreamView/DefaultStreamViewUI.vue +133 -34
- package/src/components/LiveStreamView/index.vue +3 -2
- package/src/components/MessageInput/AttachmentPicker/AttachmentPicker.vue +4 -4
- package/src/components/MessageInput/QuotedMessagePreview/QuotedMessagePreview.vue +7 -7
- package/src/components/MessageInput/SendButton/SendButton.vue +7 -5
- package/src/components/MessageInput/TextEditor/EditorCore.ts +3 -3
- package/src/components/MessageInput/TextEditor/TextEditor.vue +13 -10
- package/src/components/MessageInput/i18n/en-US.ts +13 -0
- package/src/components/MessageInput/i18n/index.ts +13 -0
- package/src/components/MessageInput/i18n/zh-CN.ts +13 -0
- package/src/components/MessageInput/index.ts +3 -1
- package/src/components/MessageList/Message/FileMessage/FileMessage.vue +1 -1
- package/src/components/MessageList/Message/GroupTipMessage/GroupTipMessage.vue +10 -10
- package/src/components/MessageList/Message/GroupTipMessage/resolveGroupTipMessage.ts +97 -0
- package/src/components/MessageList/Message/MessageLayout/MessageLayout.vue +1 -0
- package/src/components/MessageList/Message/MessageLayout/MessageMeta/MessageMeta.vue +11 -7
- package/src/components/MessageList/Message/RecalledMessage/RecalledMessage.vue +3 -3
- package/src/components/MessageList/Message/TextMessage/TextMessage.vue +4 -11
- package/src/components/MessageList/MessageForward/MessageForward.vue +5 -5
- package/src/components/MessageList/ReadReceiptInfo/ReadReceiptInfo.vue +11 -11
- package/src/components/MessageList/i18n/en-US.ts +42 -0
- package/src/components/MessageList/i18n/index.ts +13 -0
- package/src/components/MessageList/i18n/zh-CN.ts +41 -0
- package/src/components/MessageList/index.ts +2 -0
- package/src/components/Search/Search.scss +12 -0
- package/src/components/Search/Search.vue +196 -0
- package/src/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.scss +308 -0
- package/src/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.vue +471 -0
- package/src/components/Search/SearchAdvanced/DateRangePicker/index.ts +2 -0
- package/src/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.scss +84 -0
- package/src/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.vue +255 -0
- package/src/components/Search/SearchAdvanced/MessageAdvanced/index.ts +2 -0
- package/src/components/Search/SearchAdvanced/SearchAdvanced.scss +56 -0
- package/src/components/Search/SearchAdvanced/SearchAdvanced.vue +60 -0
- package/src/components/Search/SearchAdvanced/SearchTab/SearchTab.scss +40 -0
- package/src/components/Search/SearchAdvanced/SearchTab/SearchTab.vue +56 -0
- package/src/components/Search/SearchAdvanced/SearchTab/index.ts +2 -0
- package/src/components/Search/SearchAdvanced/Slider/Slider.scss +47 -0
- package/src/components/Search/SearchAdvanced/Slider/Slider.vue +82 -0
- package/src/components/Search/SearchAdvanced/Slider/index.ts +2 -0
- package/src/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.scss +310 -0
- package/src/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.vue +348 -0
- package/src/components/Search/SearchAdvanced/UserAdvanced/index.ts +2 -0
- package/src/components/Search/SearchAdvanced/index.ts +9 -0
- package/src/components/Search/SearchBar/SearchBar.scss +122 -0
- package/src/components/Search/SearchBar/SearchBar.vue +130 -0
- package/src/components/Search/SearchBar/index.ts +5 -0
- package/src/components/Search/SearchResults/EmptyResult/EmptyResult.scss +27 -0
- package/src/components/Search/SearchResults/EmptyResult/EmptyResult.vue +30 -0
- package/src/components/Search/SearchResults/EmptyResult/index.ts +2 -0
- package/src/components/Search/SearchResults/Loading/Loading.scss +29 -0
- package/src/components/Search/SearchResults/Loading/Loading.vue +17 -0
- package/src/components/Search/SearchResults/Loading/index.ts +2 -0
- package/src/components/Search/SearchResults/SearchResults.scss +197 -0
- package/src/components/Search/SearchResults/SearchResults.vue +404 -0
- package/src/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.scss +55 -0
- package/src/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.vue +58 -0
- package/src/components/Search/SearchResults/SearchResultsItem/Conversation/index.ts +2 -0
- package/src/components/Search/SearchResults/SearchResultsItem/Group/Group.scss +54 -0
- package/src/components/Search/SearchResults/SearchResultsItem/Group/Group.vue +39 -0
- package/src/components/Search/SearchResults/SearchResultsItem/Group/index.ts +2 -0
- package/src/components/Search/SearchResults/SearchResultsItem/Message/Message.scss +169 -0
- package/src/components/Search/SearchResults/SearchResultsItem/Message/Message.vue +263 -0
- package/src/components/Search/SearchResults/SearchResultsItem/Message/index.ts +2 -0
- package/src/components/Search/SearchResults/SearchResultsItem/SearchResultsItem.scss +17 -0
- package/src/components/Search/SearchResults/SearchResultsItem/SearchResultsItem.vue +63 -0
- package/src/components/Search/SearchResults/SearchResultsItem/User/User.scss +53 -0
- package/src/components/Search/SearchResults/SearchResultsItem/User/User.vue +72 -0
- package/src/components/Search/SearchResults/SearchResultsItem/User/index.ts +2 -0
- package/src/components/Search/SearchResults/SearchResultsItem/index.ts +10 -0
- package/src/components/Search/SearchResults/SearchResultsItem/utils/highlightText.ts +76 -0
- package/src/components/Search/SearchResults/SearchResultsItem/utils/index.ts +1 -0
- package/src/components/Search/SearchResults/index.ts +7 -0
- package/src/components/Search/i18n/en-US/DateRangePicker.ts +24 -0
- package/src/components/Search/i18n/en-US/Search.ts +60 -0
- package/src/components/Search/i18n/en-US/index.ts +9 -0
- package/src/components/Search/i18n/index.ts +4 -0
- package/src/components/Search/i18n/zh-CN/DateRangePicker.ts +24 -0
- package/src/components/Search/i18n/zh-CN/Search.ts +60 -0
- package/src/components/Search/i18n/zh-CN/index.ts +9 -0
- package/src/components/Search/index.ts +34 -0
- package/src/components/UserPicker/UserPicker.vue +5 -5
- package/src/components/UserPicker/components/ListMode/ListMode.vue +2 -2
- package/src/components/UserPicker/components/SelectedPanel/SelectedPanel.vue +1 -1
- package/src/components/UserPicker/i18n/en-US.ts +8 -0
- package/src/components/UserPicker/i18n/index.ts +13 -0
- package/src/components/UserPicker/i18n/zh-CN.ts +8 -0
- package/src/components/UserPicker/index.ts +2 -0
- package/src/components/VideoSettingPanel/index.ts +3 -1
- package/src/constants/avatar.ts +0 -0
- package/src/hooks/index.ts +4 -0
- package/src/hooks/useLongPress.ts +124 -0
- package/src/hooks/useMouseHover.ts +40 -0
- package/src/index.ts +6 -69
- package/src/rtc/index.ts +94 -0
- package/src/rtc/server.ts +119 -0
- package/src/types/contact.ts +146 -0
- package/src/types/conversation.ts +249 -0
- package/src/types/device.ts +2 -0
- package/src/types/engine.ts +18 -0
- package/src/types/index.ts +5 -0
- package/src/types/live.ts +2 -1
- package/src/types/login.ts +26 -0
- package/src/types/monitor.ts +5 -4
- package/src/types/search.ts +126 -0
- package/src/types/types.ts +28 -0
- package/src/utils/json.ts +67 -4
- package/src/utils/lodash.ts +38 -21
- package/dist/AttachmentPicker.vue_vue_type_script_setup_true_lang-B9tVChd9.js +0 -89
- package/dist/CustomMessage.vue_vue_type_script_setup_true_lang-By3MsAd0.js +0 -12
- package/dist/CustomMessage.vue_vue_type_script_setup_true_lang-CoK94Qxs.js +0 -12
- package/dist/GroupTipMessage.vue_vue_type_style_index_0_lang-BqyPcZln.js +0 -30
- package/dist/GroupTipMessage.vue_vue_type_style_index_0_lang-Dw2-5Ner.js +0 -30
- package/dist/Message.vue_vue_type_script_setup_true_lang-BV0PxtjX.js +0 -32
- package/dist/Message.vue_vue_type_script_setup_true_lang-mEw2syBo.js +0 -23
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-Ca6-JH93.js +0 -123
- package/dist/QuotedMessagePreview.vue_vue_type_script_setup_true_lang-C8lXN2Qm.js +0 -91
- package/dist/SendButton.vue_vue_type_script_setup_true_lang-BqIeqUyN.js +0 -35
- package/dist/TextEditor.vue_vue_type_script_setup_true_lang-w_I4bsmJ.js +0 -126
- package/dist/TextEditor.vue_vue_type_script_setup_true_lang-yXW1iVZ1.js +0 -98
- package/dist/index-BlyS4ObG.js +0 -50
- package/dist/index-NFANFVi5.js +0 -58
|
@@ -386,7 +386,7 @@ const utils$1 = {
|
|
|
386
386
|
asap,
|
|
387
387
|
isIterable
|
|
388
388
|
};
|
|
389
|
-
function AxiosError
|
|
389
|
+
function AxiosError(message, code, config, request, response) {
|
|
390
390
|
Error.call(this);
|
|
391
391
|
if (Error.captureStackTrace) {
|
|
392
392
|
Error.captureStackTrace(this, this.constructor);
|
|
@@ -403,7 +403,7 @@ function AxiosError$1(message, code, config, request, response) {
|
|
|
403
403
|
this.status = response.status ? response.status : null;
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
|
-
utils$1.inherits(AxiosError
|
|
406
|
+
utils$1.inherits(AxiosError, Error, {
|
|
407
407
|
toJSON: function toJSON() {
|
|
408
408
|
return {
|
|
409
409
|
// Standard
|
|
@@ -424,7 +424,7 @@ utils$1.inherits(AxiosError$1, Error, {
|
|
|
424
424
|
};
|
|
425
425
|
}
|
|
426
426
|
});
|
|
427
|
-
const prototype$1 = AxiosError
|
|
427
|
+
const prototype$1 = AxiosError.prototype;
|
|
428
428
|
const descriptors = {};
|
|
429
429
|
[
|
|
430
430
|
"ERR_BAD_OPTION_VALUE",
|
|
@@ -443,16 +443,16 @@ const descriptors = {};
|
|
|
443
443
|
].forEach((code) => {
|
|
444
444
|
descriptors[code] = { value: code };
|
|
445
445
|
});
|
|
446
|
-
Object.defineProperties(AxiosError
|
|
446
|
+
Object.defineProperties(AxiosError, descriptors);
|
|
447
447
|
Object.defineProperty(prototype$1, "isAxiosError", { value: true });
|
|
448
|
-
AxiosError
|
|
448
|
+
AxiosError.from = (error, code, config, request, response, customProps) => {
|
|
449
449
|
const axiosError = Object.create(prototype$1);
|
|
450
450
|
utils$1.toFlatObject(error, axiosError, function filter2(obj) {
|
|
451
451
|
return obj !== Error.prototype;
|
|
452
452
|
}, (prop) => {
|
|
453
453
|
return prop !== "isAxiosError";
|
|
454
454
|
});
|
|
455
|
-
AxiosError
|
|
455
|
+
AxiosError.call(axiosError, error.message, code, config, request, response);
|
|
456
456
|
axiosError.cause = error;
|
|
457
457
|
axiosError.name = error.name;
|
|
458
458
|
customProps && Object.assign(axiosError, customProps);
|
|
@@ -478,7 +478,7 @@ function isFlatArray(arr) {
|
|
|
478
478
|
const predicates = utils$1.toFlatObject(utils$1, {}, null, function filter(prop) {
|
|
479
479
|
return /^is[A-Z]/.test(prop);
|
|
480
480
|
});
|
|
481
|
-
function toFormData
|
|
481
|
+
function toFormData(obj, formData, options) {
|
|
482
482
|
if (!utils$1.isObject(obj)) {
|
|
483
483
|
throw new TypeError("target must be an object");
|
|
484
484
|
}
|
|
@@ -508,7 +508,7 @@ function toFormData$1(obj, formData, options) {
|
|
|
508
508
|
return value.toString();
|
|
509
509
|
}
|
|
510
510
|
if (!useBlob && utils$1.isBlob(value)) {
|
|
511
|
-
throw new AxiosError
|
|
511
|
+
throw new AxiosError("Blob is not supported. Use a Buffer instead.");
|
|
512
512
|
}
|
|
513
513
|
if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) {
|
|
514
514
|
return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
|
|
@@ -587,7 +587,7 @@ function encode$1(str) {
|
|
|
587
587
|
}
|
|
588
588
|
function AxiosURLSearchParams(params, options) {
|
|
589
589
|
this._pairs = [];
|
|
590
|
-
params && toFormData
|
|
590
|
+
params && toFormData(params, this, options);
|
|
591
591
|
}
|
|
592
592
|
const prototype = AxiosURLSearchParams.prototype;
|
|
593
593
|
prototype.append = function append(name, value) {
|
|
@@ -729,7 +729,7 @@ const platform = {
|
|
|
729
729
|
...platform$1
|
|
730
730
|
};
|
|
731
731
|
function toURLEncodedForm(data, options) {
|
|
732
|
-
return toFormData
|
|
732
|
+
return toFormData(data, new platform.classes.URLSearchParams(), {
|
|
733
733
|
visitor: function(value, key, path, helpers) {
|
|
734
734
|
if (platform.isNode && utils$1.isBuffer(value)) {
|
|
735
735
|
this.append(key, value.toString("base64"));
|
|
@@ -793,7 +793,7 @@ function formDataToJSON(formData) {
|
|
|
793
793
|
function stringifySafely(rawValue, parser, encoder) {
|
|
794
794
|
if (utils$1.isString(rawValue)) {
|
|
795
795
|
try {
|
|
796
|
-
(
|
|
796
|
+
(0, JSON.parse)(rawValue);
|
|
797
797
|
return utils$1.trim(rawValue);
|
|
798
798
|
} catch (e) {
|
|
799
799
|
if (e.name !== "SyntaxError") {
|
|
@@ -834,7 +834,7 @@ const defaults = {
|
|
|
834
834
|
}
|
|
835
835
|
if ((isFileList2 = utils$1.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
|
|
836
836
|
const _FormData = this.env && this.env.FormData;
|
|
837
|
-
return toFormData
|
|
837
|
+
return toFormData(
|
|
838
838
|
isFileList2 ? { "files[]": data } : data,
|
|
839
839
|
_FormData && new _FormData(),
|
|
840
840
|
this.formSerializer
|
|
@@ -862,7 +862,7 @@ const defaults = {
|
|
|
862
862
|
} catch (e) {
|
|
863
863
|
if (strictJSONParsing) {
|
|
864
864
|
if (e.name === "SyntaxError") {
|
|
865
|
-
throw AxiosError
|
|
865
|
+
throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
|
|
866
866
|
}
|
|
867
867
|
throw e;
|
|
868
868
|
}
|
|
@@ -990,7 +990,7 @@ function buildAccessors(obj, header) {
|
|
|
990
990
|
});
|
|
991
991
|
});
|
|
992
992
|
}
|
|
993
|
-
|
|
993
|
+
class AxiosHeaders {
|
|
994
994
|
constructor(headers) {
|
|
995
995
|
headers && this.set(headers);
|
|
996
996
|
}
|
|
@@ -1153,9 +1153,9 @@ let AxiosHeaders$1 = class AxiosHeaders {
|
|
|
1153
1153
|
utils$1.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
|
|
1154
1154
|
return this;
|
|
1155
1155
|
}
|
|
1156
|
-
}
|
|
1157
|
-
AxiosHeaders
|
|
1158
|
-
utils$1.reduceDescriptors(AxiosHeaders
|
|
1156
|
+
}
|
|
1157
|
+
AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
1158
|
+
utils$1.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
1159
1159
|
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
1160
1160
|
return {
|
|
1161
1161
|
get: () => value,
|
|
@@ -1164,11 +1164,11 @@ utils$1.reduceDescriptors(AxiosHeaders$1.prototype, ({ value }, key) => {
|
|
|
1164
1164
|
}
|
|
1165
1165
|
};
|
|
1166
1166
|
});
|
|
1167
|
-
utils$1.freezeMethods(AxiosHeaders
|
|
1167
|
+
utils$1.freezeMethods(AxiosHeaders);
|
|
1168
1168
|
function transformData(fns, response) {
|
|
1169
1169
|
const config = this || defaults;
|
|
1170
1170
|
const context = response || config;
|
|
1171
|
-
const headers = AxiosHeaders
|
|
1171
|
+
const headers = AxiosHeaders.from(context.headers);
|
|
1172
1172
|
let data = context.data;
|
|
1173
1173
|
utils$1.forEach(fns, function transform(fn) {
|
|
1174
1174
|
data = fn.call(config, data, headers.normalize(), response ? response.status : void 0);
|
|
@@ -1176,14 +1176,14 @@ function transformData(fns, response) {
|
|
|
1176
1176
|
headers.normalize();
|
|
1177
1177
|
return data;
|
|
1178
1178
|
}
|
|
1179
|
-
function isCancel
|
|
1179
|
+
function isCancel(value) {
|
|
1180
1180
|
return !!(value && value.__CANCEL__);
|
|
1181
1181
|
}
|
|
1182
|
-
function CanceledError
|
|
1183
|
-
AxiosError
|
|
1182
|
+
function CanceledError(message, config, request) {
|
|
1183
|
+
AxiosError.call(this, message == null ? "canceled" : message, AxiosError.ERR_CANCELED, config, request);
|
|
1184
1184
|
this.name = "CanceledError";
|
|
1185
1185
|
}
|
|
1186
|
-
utils$1.inherits(CanceledError
|
|
1186
|
+
utils$1.inherits(CanceledError, AxiosError, {
|
|
1187
1187
|
__CANCEL__: true
|
|
1188
1188
|
});
|
|
1189
1189
|
function settle(resolve, reject, response) {
|
|
@@ -1191,9 +1191,9 @@ function settle(resolve, reject, response) {
|
|
|
1191
1191
|
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
1192
1192
|
resolve(response);
|
|
1193
1193
|
} else {
|
|
1194
|
-
reject(new AxiosError
|
|
1194
|
+
reject(new AxiosError(
|
|
1195
1195
|
"Request failed with status code " + response.status,
|
|
1196
|
-
[AxiosError
|
|
1196
|
+
[AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
|
|
1197
1197
|
response.config,
|
|
1198
1198
|
response.request,
|
|
1199
1199
|
response
|
|
@@ -1353,8 +1353,8 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
|
1353
1353
|
}
|
|
1354
1354
|
return requestedURL;
|
|
1355
1355
|
}
|
|
1356
|
-
const headersToObject = (thing) => thing instanceof AxiosHeaders
|
|
1357
|
-
function mergeConfig
|
|
1356
|
+
const headersToObject = (thing) => thing instanceof AxiosHeaders ? { ...thing } : thing;
|
|
1357
|
+
function mergeConfig(config1, config2) {
|
|
1358
1358
|
config2 = config2 || {};
|
|
1359
1359
|
const config = {};
|
|
1360
1360
|
function getMergedValue(target, source, prop, caseless) {
|
|
@@ -1432,9 +1432,9 @@ function mergeConfig$1(config1, config2) {
|
|
|
1432
1432
|
return config;
|
|
1433
1433
|
}
|
|
1434
1434
|
const resolveConfig = (config) => {
|
|
1435
|
-
const newConfig = mergeConfig
|
|
1435
|
+
const newConfig = mergeConfig({}, config);
|
|
1436
1436
|
let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
1437
|
-
newConfig.headers = headers = AxiosHeaders
|
|
1437
|
+
newConfig.headers = headers = AxiosHeaders.from(headers);
|
|
1438
1438
|
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
|
|
1439
1439
|
if (auth) {
|
|
1440
1440
|
headers.set(
|
|
@@ -1467,7 +1467,7 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
1467
1467
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
1468
1468
|
const _config = resolveConfig(config);
|
|
1469
1469
|
let requestData = _config.data;
|
|
1470
|
-
const requestHeaders = AxiosHeaders
|
|
1470
|
+
const requestHeaders = AxiosHeaders.from(_config.headers).normalize();
|
|
1471
1471
|
let { responseType, onUploadProgress, onDownloadProgress } = _config;
|
|
1472
1472
|
let onCanceled;
|
|
1473
1473
|
let uploadThrottled, downloadThrottled;
|
|
@@ -1485,7 +1485,7 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
1485
1485
|
if (!request) {
|
|
1486
1486
|
return;
|
|
1487
1487
|
}
|
|
1488
|
-
const responseHeaders = AxiosHeaders
|
|
1488
|
+
const responseHeaders = AxiosHeaders.from(
|
|
1489
1489
|
"getAllResponseHeaders" in request && request.getAllResponseHeaders()
|
|
1490
1490
|
);
|
|
1491
1491
|
const responseData = !responseType || responseType === "text" || responseType === "json" ? request.responseText : request.response;
|
|
@@ -1523,11 +1523,11 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
1523
1523
|
if (!request) {
|
|
1524
1524
|
return;
|
|
1525
1525
|
}
|
|
1526
|
-
reject(new AxiosError
|
|
1526
|
+
reject(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config, request));
|
|
1527
1527
|
request = null;
|
|
1528
1528
|
};
|
|
1529
1529
|
request.onerror = function handleError() {
|
|
1530
|
-
reject(new AxiosError
|
|
1530
|
+
reject(new AxiosError("Network Error", AxiosError.ERR_NETWORK, config, request));
|
|
1531
1531
|
request = null;
|
|
1532
1532
|
};
|
|
1533
1533
|
request.ontimeout = function handleTimeout() {
|
|
@@ -1536,9 +1536,9 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
1536
1536
|
if (_config.timeoutErrorMessage) {
|
|
1537
1537
|
timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
1538
1538
|
}
|
|
1539
|
-
reject(new AxiosError
|
|
1539
|
+
reject(new AxiosError(
|
|
1540
1540
|
timeoutErrorMessage,
|
|
1541
|
-
transitional2.clarifyTimeoutError ? AxiosError
|
|
1541
|
+
transitional2.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
|
|
1542
1542
|
config,
|
|
1543
1543
|
request
|
|
1544
1544
|
));
|
|
@@ -1570,7 +1570,7 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
1570
1570
|
if (!request) {
|
|
1571
1571
|
return;
|
|
1572
1572
|
}
|
|
1573
|
-
reject(!cancel || cancel.type ? new CanceledError
|
|
1573
|
+
reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);
|
|
1574
1574
|
request.abort();
|
|
1575
1575
|
request = null;
|
|
1576
1576
|
};
|
|
@@ -1581,7 +1581,7 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
1581
1581
|
}
|
|
1582
1582
|
const protocol = parseProtocol(_config.url);
|
|
1583
1583
|
if (protocol && platform.protocols.indexOf(protocol) === -1) {
|
|
1584
|
-
reject(new AxiosError
|
|
1584
|
+
reject(new AxiosError("Unsupported protocol " + protocol + ":", AxiosError.ERR_BAD_REQUEST, config));
|
|
1585
1585
|
return;
|
|
1586
1586
|
}
|
|
1587
1587
|
request.send(requestData || null);
|
|
@@ -1597,12 +1597,12 @@ const composeSignals = (signals, timeout) => {
|
|
|
1597
1597
|
aborted = true;
|
|
1598
1598
|
unsubscribe();
|
|
1599
1599
|
const err = reason instanceof Error ? reason : this.reason;
|
|
1600
|
-
controller.abort(err instanceof AxiosError
|
|
1600
|
+
controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));
|
|
1601
1601
|
}
|
|
1602
1602
|
};
|
|
1603
1603
|
let timer = timeout && setTimeout(() => {
|
|
1604
1604
|
timer = null;
|
|
1605
|
-
onabort(new AxiosError
|
|
1605
|
+
onabort(new AxiosError(`timeout ${timeout} of ms exceeded`, AxiosError.ETIMEDOUT));
|
|
1606
1606
|
}, timeout);
|
|
1607
1607
|
const unsubscribe = () => {
|
|
1608
1608
|
if (signals) {
|
|
@@ -1725,7 +1725,7 @@ const resolvers = {
|
|
|
1725
1725
|
isFetchSupported && ((res) => {
|
|
1726
1726
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => {
|
|
1727
1727
|
!resolvers[type] && (resolvers[type] = utils$1.isFunction(res[type]) ? (res2) => res2[type]() : (_, config) => {
|
|
1728
|
-
throw new AxiosError
|
|
1728
|
+
throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
|
|
1729
1729
|
});
|
|
1730
1730
|
});
|
|
1731
1731
|
})(new Response());
|
|
@@ -1837,7 +1837,7 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
1837
1837
|
return await new Promise((resolve, reject) => {
|
|
1838
1838
|
settle(resolve, reject, {
|
|
1839
1839
|
data: responseData,
|
|
1840
|
-
headers: AxiosHeaders
|
|
1840
|
+
headers: AxiosHeaders.from(response.headers),
|
|
1841
1841
|
status: response.status,
|
|
1842
1842
|
statusText: response.statusText,
|
|
1843
1843
|
config,
|
|
@@ -1848,13 +1848,13 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
1848
1848
|
unsubscribe && unsubscribe();
|
|
1849
1849
|
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
|
|
1850
1850
|
throw Object.assign(
|
|
1851
|
-
new AxiosError
|
|
1851
|
+
new AxiosError("Network Error", AxiosError.ERR_NETWORK, config, request),
|
|
1852
1852
|
{
|
|
1853
1853
|
cause: err.cause || err
|
|
1854
1854
|
}
|
|
1855
1855
|
);
|
|
1856
1856
|
}
|
|
1857
|
-
throw AxiosError
|
|
1857
|
+
throw AxiosError.from(err, err && err.code, config, request);
|
|
1858
1858
|
}
|
|
1859
1859
|
});
|
|
1860
1860
|
const knownAdapters = {
|
|
@@ -1887,7 +1887,7 @@ const adapters = {
|
|
|
1887
1887
|
if (!isResolvedHandle(nameOrAdapter)) {
|
|
1888
1888
|
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
1889
1889
|
if (adapter === void 0) {
|
|
1890
|
-
throw new AxiosError
|
|
1890
|
+
throw new AxiosError(`Unknown adapter '${id}'`);
|
|
1891
1891
|
}
|
|
1892
1892
|
}
|
|
1893
1893
|
if (adapter) {
|
|
@@ -1900,7 +1900,7 @@ const adapters = {
|
|
|
1900
1900
|
([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build")
|
|
1901
1901
|
);
|
|
1902
1902
|
let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
|
|
1903
|
-
throw new AxiosError
|
|
1903
|
+
throw new AxiosError(
|
|
1904
1904
|
`There is no suitable adapter to dispatch the request ` + s,
|
|
1905
1905
|
"ERR_NOT_SUPPORT"
|
|
1906
1906
|
);
|
|
@@ -1914,12 +1914,12 @@ function throwIfCancellationRequested(config) {
|
|
|
1914
1914
|
config.cancelToken.throwIfRequested();
|
|
1915
1915
|
}
|
|
1916
1916
|
if (config.signal && config.signal.aborted) {
|
|
1917
|
-
throw new CanceledError
|
|
1917
|
+
throw new CanceledError(null, config);
|
|
1918
1918
|
}
|
|
1919
1919
|
}
|
|
1920
1920
|
function dispatchRequest(config) {
|
|
1921
1921
|
throwIfCancellationRequested(config);
|
|
1922
|
-
config.headers = AxiosHeaders
|
|
1922
|
+
config.headers = AxiosHeaders.from(config.headers);
|
|
1923
1923
|
config.data = transformData.call(
|
|
1924
1924
|
config,
|
|
1925
1925
|
config.transformRequest
|
|
@@ -1935,10 +1935,10 @@ function dispatchRequest(config) {
|
|
|
1935
1935
|
config.transformResponse,
|
|
1936
1936
|
response
|
|
1937
1937
|
);
|
|
1938
|
-
response.headers = AxiosHeaders
|
|
1938
|
+
response.headers = AxiosHeaders.from(response.headers);
|
|
1939
1939
|
return response;
|
|
1940
1940
|
}, function onAdapterRejection(reason) {
|
|
1941
|
-
if (!isCancel
|
|
1941
|
+
if (!isCancel(reason)) {
|
|
1942
1942
|
throwIfCancellationRequested(config);
|
|
1943
1943
|
if (reason && reason.response) {
|
|
1944
1944
|
reason.response.data = transformData.call(
|
|
@@ -1946,13 +1946,13 @@ function dispatchRequest(config) {
|
|
|
1946
1946
|
config.transformResponse,
|
|
1947
1947
|
reason.response
|
|
1948
1948
|
);
|
|
1949
|
-
reason.response.headers = AxiosHeaders
|
|
1949
|
+
reason.response.headers = AxiosHeaders.from(reason.response.headers);
|
|
1950
1950
|
}
|
|
1951
1951
|
}
|
|
1952
1952
|
return Promise.reject(reason);
|
|
1953
1953
|
});
|
|
1954
1954
|
}
|
|
1955
|
-
const VERSION
|
|
1955
|
+
const VERSION = "1.11.0";
|
|
1956
1956
|
const validators$1 = {};
|
|
1957
1957
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
1958
1958
|
validators$1[type] = function validator2(thing) {
|
|
@@ -1962,13 +1962,13 @@ const validators$1 = {};
|
|
|
1962
1962
|
const deprecatedWarnings = {};
|
|
1963
1963
|
validators$1.transitional = function transitional(validator2, version, message) {
|
|
1964
1964
|
function formatMessage(opt, desc) {
|
|
1965
|
-
return "[Axios v" + VERSION
|
|
1965
|
+
return "[Axios v" + VERSION + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
|
|
1966
1966
|
}
|
|
1967
1967
|
return (value, opt, opts) => {
|
|
1968
1968
|
if (validator2 === false) {
|
|
1969
|
-
throw new AxiosError
|
|
1969
|
+
throw new AxiosError(
|
|
1970
1970
|
formatMessage(opt, " has been removed" + (version ? " in " + version : "")),
|
|
1971
|
-
AxiosError
|
|
1971
|
+
AxiosError.ERR_DEPRECATED
|
|
1972
1972
|
);
|
|
1973
1973
|
}
|
|
1974
1974
|
if (version && !deprecatedWarnings[opt]) {
|
|
@@ -1991,7 +1991,7 @@ validators$1.spelling = function spelling(correctSpelling) {
|
|
|
1991
1991
|
};
|
|
1992
1992
|
function assertOptions(options, schema, allowUnknown) {
|
|
1993
1993
|
if (typeof options !== "object") {
|
|
1994
|
-
throw new AxiosError
|
|
1994
|
+
throw new AxiosError("options must be an object", AxiosError.ERR_BAD_OPTION_VALUE);
|
|
1995
1995
|
}
|
|
1996
1996
|
const keys = Object.keys(options);
|
|
1997
1997
|
let i = keys.length;
|
|
@@ -2002,12 +2002,12 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
2002
2002
|
const value = options[opt];
|
|
2003
2003
|
const result = value === void 0 || validator2(value, opt, options);
|
|
2004
2004
|
if (result !== true) {
|
|
2005
|
-
throw new AxiosError
|
|
2005
|
+
throw new AxiosError("option " + opt + " must be " + result, AxiosError.ERR_BAD_OPTION_VALUE);
|
|
2006
2006
|
}
|
|
2007
2007
|
continue;
|
|
2008
2008
|
}
|
|
2009
2009
|
if (allowUnknown !== true) {
|
|
2010
|
-
throw new AxiosError
|
|
2010
|
+
throw new AxiosError("Unknown option " + opt, AxiosError.ERR_BAD_OPTION);
|
|
2011
2011
|
}
|
|
2012
2012
|
}
|
|
2013
2013
|
}
|
|
@@ -2016,7 +2016,7 @@ const validator = {
|
|
|
2016
2016
|
validators: validators$1
|
|
2017
2017
|
};
|
|
2018
2018
|
const validators = validator.validators;
|
|
2019
|
-
|
|
2019
|
+
class Axios {
|
|
2020
2020
|
constructor(instanceConfig) {
|
|
2021
2021
|
this.defaults = instanceConfig || {};
|
|
2022
2022
|
this.interceptors = {
|
|
@@ -2059,7 +2059,7 @@ let Axios$1 = class Axios {
|
|
|
2059
2059
|
} else {
|
|
2060
2060
|
config = configOrUrl || {};
|
|
2061
2061
|
}
|
|
2062
|
-
config = mergeConfig
|
|
2062
|
+
config = mergeConfig(this.defaults, config);
|
|
2063
2063
|
const { transitional: transitional2, paramsSerializer, headers } = config;
|
|
2064
2064
|
if (transitional2 !== void 0) {
|
|
2065
2065
|
validator.assertOptions(transitional2, {
|
|
@@ -2101,7 +2101,7 @@ let Axios$1 = class Axios {
|
|
|
2101
2101
|
delete headers[method];
|
|
2102
2102
|
}
|
|
2103
2103
|
);
|
|
2104
|
-
config.headers = AxiosHeaders
|
|
2104
|
+
config.headers = AxiosHeaders.concat(contextHeaders, headers);
|
|
2105
2105
|
const requestInterceptorChain = [];
|
|
2106
2106
|
let synchronousRequestInterceptors = true;
|
|
2107
2107
|
this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
|
|
@@ -2155,14 +2155,14 @@ let Axios$1 = class Axios {
|
|
|
2155
2155
|
return promise;
|
|
2156
2156
|
}
|
|
2157
2157
|
getUri(config) {
|
|
2158
|
-
config = mergeConfig
|
|
2158
|
+
config = mergeConfig(this.defaults, config);
|
|
2159
2159
|
const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
|
|
2160
2160
|
return buildURL(fullPath, config.params, config.paramsSerializer);
|
|
2161
2161
|
}
|
|
2162
|
-
}
|
|
2162
|
+
}
|
|
2163
2163
|
utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
|
|
2164
|
-
Axios
|
|
2165
|
-
return this.request(mergeConfig
|
|
2164
|
+
Axios.prototype[method] = function(url, config) {
|
|
2165
|
+
return this.request(mergeConfig(config || {}, {
|
|
2166
2166
|
method,
|
|
2167
2167
|
url,
|
|
2168
2168
|
data: (config || {}).data
|
|
@@ -2172,7 +2172,7 @@ utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoDa
|
|
|
2172
2172
|
utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
|
|
2173
2173
|
function generateHTTPMethod(isForm) {
|
|
2174
2174
|
return function httpMethod(url, data, config) {
|
|
2175
|
-
return this.request(mergeConfig
|
|
2175
|
+
return this.request(mergeConfig(config || {}, {
|
|
2176
2176
|
method,
|
|
2177
2177
|
headers: isForm ? {
|
|
2178
2178
|
"Content-Type": "multipart/form-data"
|
|
@@ -2182,10 +2182,10 @@ utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData(method)
|
|
|
2182
2182
|
}));
|
|
2183
2183
|
};
|
|
2184
2184
|
}
|
|
2185
|
-
Axios
|
|
2186
|
-
Axios
|
|
2185
|
+
Axios.prototype[method] = generateHTTPMethod();
|
|
2186
|
+
Axios.prototype[method + "Form"] = generateHTTPMethod(true);
|
|
2187
2187
|
});
|
|
2188
|
-
|
|
2188
|
+
class CancelToken {
|
|
2189
2189
|
constructor(executor) {
|
|
2190
2190
|
if (typeof executor !== "function") {
|
|
2191
2191
|
throw new TypeError("executor must be a function.");
|
|
@@ -2218,7 +2218,7 @@ let CancelToken$1 = class CancelToken {
|
|
|
2218
2218
|
if (token.reason) {
|
|
2219
2219
|
return;
|
|
2220
2220
|
}
|
|
2221
|
-
token.reason = new CanceledError
|
|
2221
|
+
token.reason = new CanceledError(message, config, request);
|
|
2222
2222
|
resolvePromise(token.reason);
|
|
2223
2223
|
});
|
|
2224
2224
|
}
|
|
@@ -2279,16 +2279,16 @@ let CancelToken$1 = class CancelToken {
|
|
|
2279
2279
|
cancel
|
|
2280
2280
|
};
|
|
2281
2281
|
}
|
|
2282
|
-
}
|
|
2283
|
-
function spread
|
|
2282
|
+
}
|
|
2283
|
+
function spread(callback) {
|
|
2284
2284
|
return function wrap(arr) {
|
|
2285
2285
|
return callback.apply(null, arr);
|
|
2286
2286
|
};
|
|
2287
2287
|
}
|
|
2288
|
-
function isAxiosError
|
|
2288
|
+
function isAxiosError(payload) {
|
|
2289
2289
|
return utils$1.isObject(payload) && payload.isAxiosError === true;
|
|
2290
2290
|
}
|
|
2291
|
-
const HttpStatusCode
|
|
2291
|
+
const HttpStatusCode = {
|
|
2292
2292
|
Continue: 100,
|
|
2293
2293
|
SwitchingProtocols: 101,
|
|
2294
2294
|
Processing: 102,
|
|
@@ -2353,57 +2353,39 @@ const HttpStatusCode$1 = {
|
|
|
2353
2353
|
NotExtended: 510,
|
|
2354
2354
|
NetworkAuthenticationRequired: 511
|
|
2355
2355
|
};
|
|
2356
|
-
Object.entries(HttpStatusCode
|
|
2357
|
-
HttpStatusCode
|
|
2356
|
+
Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
2357
|
+
HttpStatusCode[value] = key;
|
|
2358
2358
|
});
|
|
2359
2359
|
function createInstance(defaultConfig) {
|
|
2360
|
-
const context = new Axios
|
|
2361
|
-
const instance = bind(Axios
|
|
2362
|
-
utils$1.extend(instance, Axios
|
|
2360
|
+
const context = new Axios(defaultConfig);
|
|
2361
|
+
const instance = bind(Axios.prototype.request, context);
|
|
2362
|
+
utils$1.extend(instance, Axios.prototype, context, { allOwnKeys: true });
|
|
2363
2363
|
utils$1.extend(instance, context, null, { allOwnKeys: true });
|
|
2364
2364
|
instance.create = function create(instanceConfig) {
|
|
2365
|
-
return createInstance(mergeConfig
|
|
2365
|
+
return createInstance(mergeConfig(defaultConfig, instanceConfig));
|
|
2366
2366
|
};
|
|
2367
2367
|
return instance;
|
|
2368
2368
|
}
|
|
2369
2369
|
const axios = createInstance(defaults);
|
|
2370
|
-
axios.Axios = Axios
|
|
2371
|
-
axios.CanceledError = CanceledError
|
|
2372
|
-
axios.CancelToken = CancelToken
|
|
2373
|
-
axios.isCancel = isCancel
|
|
2374
|
-
axios.VERSION = VERSION
|
|
2375
|
-
axios.toFormData = toFormData
|
|
2376
|
-
axios.AxiosError = AxiosError
|
|
2370
|
+
axios.Axios = Axios;
|
|
2371
|
+
axios.CanceledError = CanceledError;
|
|
2372
|
+
axios.CancelToken = CancelToken;
|
|
2373
|
+
axios.isCancel = isCancel;
|
|
2374
|
+
axios.VERSION = VERSION;
|
|
2375
|
+
axios.toFormData = toFormData;
|
|
2376
|
+
axios.AxiosError = AxiosError;
|
|
2377
2377
|
axios.Cancel = axios.CanceledError;
|
|
2378
2378
|
axios.all = function all(promises) {
|
|
2379
2379
|
return Promise.all(promises);
|
|
2380
2380
|
};
|
|
2381
|
-
axios.spread = spread
|
|
2382
|
-
axios.isAxiosError = isAxiosError
|
|
2383
|
-
axios.mergeConfig = mergeConfig
|
|
2384
|
-
axios.AxiosHeaders = AxiosHeaders
|
|
2381
|
+
axios.spread = spread;
|
|
2382
|
+
axios.isAxiosError = isAxiosError;
|
|
2383
|
+
axios.mergeConfig = mergeConfig;
|
|
2384
|
+
axios.AxiosHeaders = AxiosHeaders;
|
|
2385
2385
|
axios.formToJSON = (thing) => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing);
|
|
2386
2386
|
axios.getAdapter = adapters.getAdapter;
|
|
2387
|
-
axios.HttpStatusCode = HttpStatusCode
|
|
2387
|
+
axios.HttpStatusCode = HttpStatusCode;
|
|
2388
2388
|
axios.default = axios;
|
|
2389
|
-
const {
|
|
2390
|
-
Axios: Axios2,
|
|
2391
|
-
AxiosError,
|
|
2392
|
-
CanceledError,
|
|
2393
|
-
isCancel,
|
|
2394
|
-
CancelToken: CancelToken2,
|
|
2395
|
-
VERSION,
|
|
2396
|
-
all: all2,
|
|
2397
|
-
Cancel,
|
|
2398
|
-
isAxiosError,
|
|
2399
|
-
spread,
|
|
2400
|
-
toFormData,
|
|
2401
|
-
AxiosHeaders: AxiosHeaders2,
|
|
2402
|
-
HttpStatusCode,
|
|
2403
|
-
formToJSON,
|
|
2404
|
-
getAdapter,
|
|
2405
|
-
mergeConfig
|
|
2406
|
-
} = axios;
|
|
2407
2389
|
const API_NAME = {
|
|
2408
2390
|
fetchLiveList: "get_live_list",
|
|
2409
2391
|
destroyRoom: "destroy_room",
|
|
@@ -28,6 +28,7 @@ export declare const useLiveMonitorState: () => {
|
|
|
28
28
|
currentViewerCount: number;
|
|
29
29
|
createTime: number;
|
|
30
30
|
totalViewerCount: number;
|
|
31
|
+
orientation: "landscape" | "portrait";
|
|
31
32
|
customInfo?: Record<string, any> | undefined;
|
|
32
33
|
}[]>;
|
|
33
34
|
init: (config: InitConfig) => void;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ref, computed } from "vue";
|
|
2
2
|
import { fetchLiveList, destroyRoom, getRoomInfo } from "./api/http.js";
|
|
3
3
|
import { PlayerManager } from "./player/manager/playerManager.js";
|
|
4
|
-
import { PlayerEvents } from "./player/types/player.js";
|
|
5
|
-
import { MIXED_STREAM_PAYLOAD_TYPE } from "./player/types/trtc.js";
|
|
6
4
|
import { safelyParse } from "../../utils/utils.js";
|
|
7
5
|
import { transformRoomInfoToLiveInfo, getLiveIdFromMixedStreamUserId } from "./utils/index.js";
|
|
6
|
+
import { MIXED_STREAM_PAYLOAD_TYPE } from "./player/types/trtc.js";
|
|
7
|
+
import { PlayerEvents } from "./player/types/player.js";
|
|
8
8
|
let initConfig = null;
|
|
9
9
|
let playerManager = null;
|
|
10
10
|
const prepareCancelTaskMap = ref(/* @__PURE__ */ new Map());
|
|
@@ -144,12 +144,13 @@ const updateRegionList = async (liveId, data) => {
|
|
|
144
144
|
const liveInfo = monitorLiveInfoMap.value.get(liveId);
|
|
145
145
|
if (liveInfo) {
|
|
146
146
|
liveInfo.regionList = regionList;
|
|
147
|
+
liveInfo.orientation = data.canvas.w > data.canvas.h ? "landscape" : "portrait";
|
|
147
148
|
monitorLiveInfoMap.value.set(liveId, { ...liveInfo });
|
|
148
149
|
}
|
|
149
150
|
};
|
|
150
151
|
const muteLiveAudio = async (liveId, mute) => {
|
|
151
152
|
const player = playerManager == null ? void 0 : playerManager.getPlayer(liveId);
|
|
152
|
-
player == null ? void 0 : player.muteAudio(mute);
|
|
153
|
+
await (player == null ? void 0 : player.muteAudio(mute));
|
|
153
154
|
};
|
|
154
155
|
const useLiveMonitorState = () => {
|
|
155
156
|
return {
|
|
@@ -3,9 +3,9 @@ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { en
|
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
import { TRTCCloud } from "@tencentcloud/tuiroom-engine-js";
|
|
5
5
|
import { BasePlayer } from "../base/basePlayer.js";
|
|
6
|
-
import { PlayerState, PlayerEvents } from "../types/player.js";
|
|
7
|
-
import { TRTCRoleType, TRTCScene, TRTCVideoStreamType } from "../types/trtc.js";
|
|
8
6
|
import { safelyParse } from "../../../../utils/utils.js";
|
|
7
|
+
import { TRTCRoleType, TRTCScene, TRTCVideoStreamType } from "../types/trtc.js";
|
|
8
|
+
import { PlayerState, PlayerEvents } from "../types/player.js";
|
|
9
9
|
class TRTCAdapter extends BasePlayer {
|
|
10
10
|
constructor(account) {
|
|
11
11
|
super();
|
|
@@ -95,22 +95,14 @@ class TRTCAdapter extends BasePlayer {
|
|
|
95
95
|
return document.getElementById(this.viewId);
|
|
96
96
|
}
|
|
97
97
|
async doPlay(liveId, viewId) {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
await this.trtc.enterRoom(params, TRTCScene.LIVE);
|
|
103
|
-
} catch (error) {
|
|
104
|
-
throw error;
|
|
105
|
-
}
|
|
98
|
+
this.liveId = liveId;
|
|
99
|
+
this.viewId = viewId;
|
|
100
|
+
const params = this.getEnterRoomParams();
|
|
101
|
+
await this.trtc.enterRoom(params, TRTCScene.LIVE);
|
|
106
102
|
}
|
|
107
103
|
async doStop() {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
this.updatePlayerState(PlayerState.Idle);
|
|
111
|
-
} catch (error) {
|
|
112
|
-
throw error;
|
|
113
|
-
}
|
|
104
|
+
await this.trtc.stopRemoteView(this.currentPlayableUserId, TRTCVideoStreamType.TRTCVideoStreamTypeBig);
|
|
105
|
+
this.updatePlayerState(PlayerState.Idle);
|
|
114
106
|
}
|
|
115
107
|
async doDestroy() {
|
|
116
108
|
try {
|
|
@@ -2,6 +2,8 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
import { TRTCAdapter } from "../adapters/trtc.js";
|
|
5
|
+
import "../types/player.js";
|
|
6
|
+
import "../types/trtc.js";
|
|
5
7
|
class PlayerManager {
|
|
6
8
|
constructor(account) {
|
|
7
9
|
__publicField(this, "account");
|