tuikit-atomicx-vue3 3.3.3 → 3.4.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/.eslintrc.cjs +33 -0
- package/dist/AudioRequestDialog.vue_vue_type_script_setup_true_lang-DESfuJPj.js +89 -0
- package/dist/DialogPortal-CvJcEAsn.js +417 -0
- package/dist/MaterialRenameDialog.vue_vue_type_script_setup_true_lang-C8oUv-KF.js +36 -0
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-D1G-LitO.js +116 -0
- package/dist/PopoverTrigger-L8abAry7.js +607 -0
- package/dist/PopperContent-XdhqL8Y2.js +1603 -0
- package/dist/Teleport-CSEuZbpM.js +913 -0
- package/dist/VideoRequestDialog.vue_vue_type_script_setup_true_lang-DlROoquV.js +89 -0
- package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/baseComp/ActionSheep.js +41 -51
- package/dist/baseComp/AudioIcon.js +27 -37
- package/dist/baseComp/Avatar.js +16 -28
- package/dist/baseComp/Dialog/DialogH5.js +56 -82
- package/dist/baseComp/Dialog/DialogPC.js +76 -118
- package/dist/baseComp/Dialog/index.js +2 -2
- package/dist/baseComp/IconButton.js +43 -56
- package/dist/baseComp/Input/InputH5.js +85 -128
- package/dist/baseComp/Input/InputPC.js +85 -128
- package/dist/baseComp/Input/InputWX.js +88 -131
- package/dist/baseComp/Input/index.js +5 -5
- package/dist/baseComp/MessageBox/index.js +120 -150
- package/dist/baseComp/Modal/Modal.js +38 -45
- package/dist/baseComp/Modal/index.js +3 -3
- package/dist/baseComp/ObserverView/ObserverView.js +50 -86
- package/dist/baseComp/ObserverView/index.js +2 -2
- package/dist/baseComp/Option/OptionH5.js +29 -40
- package/dist/baseComp/Option/OptionPC.js +34 -46
- package/dist/baseComp/Option/OptionWX.js +30 -41
- package/dist/baseComp/Option/index.js +2 -2
- package/dist/baseComp/Select/SelectH5.js +54 -86
- package/dist/baseComp/Select/SelectPC.js +78 -120
- package/dist/baseComp/Select/SelectWX.js +48 -79
- package/dist/baseComp/Select/index.js +2 -2
- package/dist/baseComp/SvgIcon.js +17 -22
- package/dist/baseComp/TuiSwitch.js +15 -19
- package/dist/baseComp/View/View.js +2 -2
- package/dist/baseComp/View/index.js +19 -24
- package/dist/baseComp/index.js +2 -2
- package/dist/baseComp/useZIndex.js +7 -12
- package/dist/chat/index.d.ts +1427 -990
- package/dist/chat/index.js +57 -73
- package/dist/chat/server.js +60 -79
- package/dist/components/AudioSetting/AudioMediaControl.js +52 -78
- package/dist/components/AudioSetting/AudioRequestDialog.js +2 -2
- package/dist/components/AudioSetting/AudioSettingTab.js +72 -102
- package/dist/components/AudioSetting/MicrophoneSelect.js +45 -57
- package/dist/components/AudioSetting/SpeakerSelect.js +45 -57
- package/dist/components/AudioSetting/index.js +3 -3
- package/dist/components/AudioSettingPanel/i18n/en-US/index.js +2 -2
- package/dist/components/AudioSettingPanel/i18n/index.js +4 -4
- package/dist/components/AudioSettingPanel/i18n/zh-CN/index.js +2 -2
- package/dist/components/AudioSettingPanel/index.js +102 -147
- package/dist/components/Avatar/Avatar.js +88 -140
- package/dist/components/Avatar/Avatar.vue.d.ts +1 -1
- package/dist/components/Avatar/AvatarBadge/AvatarBadge.js +25 -31
- package/dist/components/Avatar/AvatarBadge/index.js +2 -2
- package/dist/components/Avatar/constants/avatar.js +7 -12
- package/dist/components/Avatar/index.js +9 -9
- package/dist/components/BarrageInput/BarrageInput.js +50 -67
- package/dist/components/BarrageInput/BarrageInputH5.js +80 -111
- package/dist/components/BarrageInput/EmojiPicker/EmojiPicker.js +84 -97
- package/dist/components/BarrageInput/EmojiPicker/index.js +2 -2
- package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +34 -62
- package/dist/components/BarrageInput/TextEditor/EditorCore.js +79 -90
- package/dist/components/BarrageInput/TextEditor/TextEditor.js +2 -2
- package/dist/components/BarrageInput/TextEditor/index.js +81 -125
- package/dist/components/BarrageInput/constants.js +2 -2
- package/dist/components/BarrageInput/i18n/en-US/index.js +2 -2
- package/dist/components/BarrageInput/i18n/index.js +4 -4
- package/dist/components/BarrageInput/i18n/zh-CN/index.js +2 -2
- package/dist/components/BarrageInput/index.js +11 -11
- package/dist/components/BarrageList/BarrageList.js +97 -173
- package/dist/components/BarrageList/BarrageListH5.js +96 -171
- package/dist/components/BarrageList/ClickAction/UserActionMenu.js +64 -94
- package/dist/components/BarrageList/Message/CustomMessage/CustomMessage.js +2 -2
- package/dist/components/BarrageList/Message/CustomMessage/index.js +5 -7
- package/dist/components/BarrageList/Message/FaceMessage/FaceMessage.js +16 -21
- package/dist/components/BarrageList/Message/FaceMessage/index.js +2 -2
- package/dist/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.js +2 -2
- package/dist/components/BarrageList/Message/GroupTipMessage/index.js +13 -18
- package/dist/components/BarrageList/Message/ImageMessage/ImageMessage.js +56 -80
- package/dist/components/BarrageList/Message/ImageMessage/index.js +2 -2
- package/dist/components/BarrageList/Message/MergerMessage/MergerMessage.js +5 -5
- package/dist/components/BarrageList/Message/MergerMessage/index.js +2 -2
- package/dist/components/BarrageList/Message/Message.js +2 -2
- package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.js +28 -39
- package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/index.js +2 -2
- package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.js +93 -101
- package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.js +26 -32
- package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.js +19 -22
- package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/index.js +2 -2
- package/dist/components/BarrageList/Message/MessageLayout/index.js +2 -2
- package/dist/components/BarrageList/Message/RecalledMessage/RecalledMessage.js +31 -39
- package/dist/components/BarrageList/Message/RecalledMessage/index.js +2 -2
- package/dist/components/BarrageList/Message/TextMessage/TextMessage.js +67 -96
- package/dist/components/BarrageList/Message/TextMessage/index.js +2 -2
- package/dist/components/BarrageList/Message/index.js +11 -15
- package/dist/components/BarrageList/MessageForward/ForwardListItem.js +34 -43
- package/dist/components/BarrageList/MessageForward/MessageForward.js +158 -210
- package/dist/components/BarrageList/MessageForward/index.js +2 -2
- package/dist/components/BarrageList/MessageListContext.js +9 -10
- package/dist/components/BarrageList/MessageTimeDivider/MessageTimeDivider.js +20 -28
- package/dist/components/BarrageList/MessageTimeDivider/index.js +2 -2
- package/dist/components/BarrageList/i18n/en-US/index.js +3 -3
- package/dist/components/BarrageList/i18n/index.js +4 -4
- package/dist/components/BarrageList/i18n/zh-CN/index.js +3 -3
- package/dist/components/BarrageList/index.js +10 -10
- package/dist/components/CameraButton/index.js +34 -44
- package/dist/components/ChatSetting/C2CChatSetting/C2CChatSetting.js +92 -108
- package/dist/components/ChatSetting/C2CChatSetting/index.js +3 -3
- package/dist/components/ChatSetting/ChatSetting.js +17 -23
- package/dist/components/ChatSetting/GroupChatSetting/GroupActions/GroupActions.js +133 -163
- package/dist/components/ChatSetting/GroupChatSetting/GroupActions/index.js +2 -2
- package/dist/components/ChatSetting/GroupChatSetting/GroupChatSetting.js +179 -245
- package/dist/components/ChatSetting/GroupChatSetting/GroupInfo/GroupInfo.js +124 -181
- package/dist/components/ChatSetting/GroupChatSetting/GroupInfo/index.js +2 -2
- package/dist/components/ChatSetting/GroupChatSetting/GroupManagement/GroupManagement.js +195 -259
- package/dist/components/ChatSetting/GroupChatSetting/GroupManagement/index.js +2 -2
- package/dist/components/ChatSetting/GroupChatSetting/GroupManagementEntry/GroupManagementEntry.js +23 -32
- package/dist/components/ChatSetting/GroupChatSetting/GroupManagementEntry/index.js +2 -2
- package/dist/components/ChatSetting/GroupChatSetting/GroupMembers/GroupMembers.js +149 -212
- package/dist/components/ChatSetting/GroupChatSetting/GroupMembers/index.js +2 -2
- package/dist/components/ChatSetting/GroupChatSetting/PersonalSettings/PersonalSettings.js +35 -40
- package/dist/components/ChatSetting/GroupChatSetting/PersonalSettings/index.js +2 -2
- package/dist/components/ChatSetting/GroupChatSetting/index.js +2 -2
- package/dist/components/ChatSetting/SettingItem/SettingItem.js +201 -247
- package/dist/components/ChatSetting/SettingItem/index.js +2 -2
- package/dist/components/ChatSetting/i18n/en-US.js +2 -2
- package/dist/components/ChatSetting/i18n/index.js +6 -6
- package/dist/components/ChatSetting/i18n/zh-CN.js +2 -2
- package/dist/components/ChatSetting/index.js +7 -7
- package/dist/components/CoGuestPanel/CoGuestPanel.js +139 -180
- package/dist/components/CoGuestPanel/constants.js +2 -2
- package/dist/components/CoGuestPanel/i18n/en-US/index.js +9 -9
- package/dist/components/CoGuestPanel/i18n/index.js +4 -4
- package/dist/components/CoGuestPanel/i18n/zh-CN/index.js +9 -9
- package/dist/components/CoGuestPanel/index.js +8 -8
- package/dist/components/CoHostPanel/BattlePanel.js +196 -0
- package/dist/components/CoHostPanel/BattlePanel.vue.d.ts +19 -0
- package/dist/components/CoHostPanel/CoHostPanel.js +109 -0
- package/dist/components/CoHostPanel/CoHostPanel.vue.d.ts +19 -0
- package/dist/components/CoHostPanel/ConfigSettingPanel.js +110 -0
- package/dist/components/CoHostPanel/ConfigSettingPanel.vue.d.ts +33 -0
- package/dist/components/CoHostPanel/ConnectionPanel.js +273 -0
- package/dist/components/CoHostPanel/ConnectionPanel.vue.d.ts +19 -0
- package/dist/components/CoHostPanel/RecommendHostList.js +113 -0
- package/dist/components/CoHostPanel/RecommendHostList.vue.d.ts +13 -0
- package/dist/components/CoHostPanel/UserList.js +34 -0
- package/dist/components/CoHostPanel/UserList.vue.d.ts +28 -0
- package/dist/components/CoHostPanel/i18n/en-US/index.d.ts +74 -0
- package/dist/components/CoHostPanel/i18n/en-US/index.js +81 -0
- package/dist/components/CoHostPanel/i18n/index.d.ts +4 -0
- package/dist/components/CoHostPanel/i18n/index.js +6 -0
- package/dist/components/CoHostPanel/i18n/zh-CN/index.d.ts +75 -0
- package/dist/components/CoHostPanel/i18n/zh-CN/index.js +82 -0
- package/dist/components/CoHostPanel/index.d.ts +16 -0
- package/dist/components/CoHostPanel/index.js +10 -0
- package/dist/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.js +36 -51
- package/dist/components/ContactList/ContactInfo/BlacklistInfo/index.js +2 -2
- package/dist/components/ContactList/ContactInfo/ContactInfo.js +141 -196
- package/dist/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.js +39 -61
- package/dist/components/ContactList/ContactInfo/FriendApplicationInfo/index.js +2 -2
- package/dist/components/ContactList/ContactInfo/FriendInfo/FriendInfo.js +109 -160
- package/dist/components/ContactList/ContactInfo/FriendInfo/index.js +2 -2
- package/dist/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.js +58 -86
- package/dist/components/ContactList/ContactInfo/GroupApplicationInfo/index.js +2 -2
- package/dist/components/ContactList/ContactInfo/GroupInfo/GroupInfo.js +99 -133
- package/dist/components/ContactList/ContactInfo/GroupInfo/index.js +2 -2
- package/dist/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.js +86 -118
- package/dist/components/ContactList/ContactInfo/SearchGroupInfo/index.js +2 -2
- package/dist/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.js +72 -101
- package/dist/components/ContactList/ContactInfo/SearchUserInfo/index.js +2 -2
- package/dist/components/ContactList/ContactInfo/index.js +16 -16
- package/dist/components/ContactList/ContactList.js +164 -235
- package/dist/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.js +29 -38
- package/dist/components/ContactList/ContactListItem/BlacklistItem/index.js +2 -2
- package/dist/components/ContactList/ContactListItem/ContactListItem.js +2 -2
- package/dist/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.js +46 -61
- package/dist/components/ContactList/ContactListItem/FriendApplicationItem/index.js +2 -2
- package/dist/components/ContactList/ContactListItem/FriendItem/FriendItem.js +24 -31
- package/dist/components/ContactList/ContactListItem/FriendItem/index.js +2 -2
- package/dist/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.js +45 -64
- package/dist/components/ContactList/ContactListItem/GroupApplicationItem/index.js +2 -2
- package/dist/components/ContactList/ContactListItem/GroupItem/GroupItem.js +29 -38
- package/dist/components/ContactList/ContactListItem/GroupItem/index.js +2 -2
- package/dist/components/ContactList/ContactListItem/index.js +57 -66
- package/dist/components/ContactList/ContactSearch/ContactSearch.js +53 -73
- package/dist/components/ContactList/ContactSearch/index.js +2 -2
- package/dist/components/ContactList/constants/const.js +3 -4
- package/dist/components/ContactList/hooks/index.js +2 -2
- package/dist/components/ContactList/hooks/useContactList.js +11 -15
- package/dist/components/ContactList/i18n/en-US.js +21 -21
- package/dist/components/ContactList/i18n/index.js +4 -4
- package/dist/components/ContactList/i18n/zh-CN.js +21 -21
- package/dist/components/ContactList/index.js +12 -14
- package/dist/components/ConversationList/ConversationActions/ConversationActions.js +107 -150
- package/dist/components/ConversationList/ConversationActions/index.js +2 -2
- package/dist/components/ConversationList/ConversationCreate/ConversationCreate.js +116 -193
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateButton/ConversationCreateButton.js +65 -80
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.js +108 -126
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.js +40 -52
- package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.js +61 -79
- package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/index.js +4 -4
- package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/type.js +8 -8
- package/dist/components/ConversationList/ConversationCreate/index.js +12 -12
- package/dist/components/ConversationList/ConversationList.js +112 -154
- package/dist/components/ConversationList/ConversationList.vue.d.ts +72 -72
- package/dist/components/ConversationList/ConversationListContent/ConversationListContent.js +27 -33
- package/dist/components/ConversationList/ConversationListContent/index.js +2 -2
- package/dist/components/ConversationList/ConversationListHeader/ConversationListHeader.js +30 -39
- package/dist/components/ConversationList/ConversationListHeader/index.js +2 -2
- package/dist/components/ConversationList/ConversationPlaceHolder/ConversationPlaceHolder.js +65 -81
- package/dist/components/ConversationList/ConversationPlaceHolder/index.js +2 -2
- package/dist/components/ConversationList/ConversationPreview/ConversationPreview.js +2 -2
- package/dist/components/ConversationList/ConversationPreview/ConversationPreview.vue.d.ts +72 -72
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.js +40 -59
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.js +29 -47
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.js +25 -42
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.js +84 -111
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue.d.ts +18 -18
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUnread.js +36 -51
- package/dist/components/ConversationList/ConversationPreview/index.js +55 -63
- package/dist/components/ConversationList/ConversationPreview/utils.js +36 -42
- package/dist/components/ConversationList/ConversationSearch/ConversationSearch.js +114 -160
- package/dist/components/ConversationList/ConversationSearch/index.js +2 -2
- package/dist/components/ConversationList/hooks/useConversation.js +12 -18
- package/dist/components/ConversationList/hooks/useConversationCreate.js +17 -18
- package/dist/components/ConversationList/i18n/en-US.js +32 -32
- package/dist/components/ConversationList/i18n/index.js +4 -4
- package/dist/components/ConversationList/i18n/zh-CN.js +32 -32
- package/dist/components/ConversationList/index.d.ts +989 -989
- package/dist/components/ConversationList/index.js +24 -32
- package/dist/components/LiveAudienceList/LiveAudienceList.js +85 -120
- package/dist/components/LiveAudienceList/LiveAudienceListH5.js +50 -72
- package/dist/components/LiveAudienceList/UserActionMenu.js +82 -124
- package/dist/components/LiveAudienceList/i18n/en-US/index.js +2 -2
- package/dist/components/LiveAudienceList/i18n/index.js +4 -4
- package/dist/components/LiveAudienceList/i18n/zh-CN/index.js +2 -2
- package/dist/components/LiveAudienceList/index.js +10 -10
- package/dist/components/LiveCoreView/CoreViewDecorate/BattleDecorate.js +152 -0
- package/dist/components/LiveCoreView/CoreViewDecorate/BattleDecorate.vue.d.ts +2 -0
- package/dist/components/LiveCoreView/CoreViewDecorate/BattleUserDecorate.js +66 -0
- package/dist/components/LiveCoreView/CoreViewDecorate/BattleUserDecorate.vue.d.ts +35 -0
- package/dist/components/LiveCoreView/CoreViewDecorate/CoHostDecorate.js +54 -0
- package/dist/components/LiveCoreView/CoreViewDecorate/CoHostDecorate.vue.d.ts +2 -0
- package/dist/components/LiveCoreView/CoreViewDecorate/LiveCoreDecorate.js +35 -0
- package/dist/components/LiveCoreView/CoreViewDecorate/LiveCoreDecorate.vue.d.ts +35 -0
- package/dist/components/LiveCoreView/DefaultStreamViewUI.js +101 -154
- package/dist/components/LiveCoreView/PlayerControl/AudioControl.js +113 -236
- package/dist/components/LiveCoreView/PlayerControl/MultiResolution.js +78 -0
- package/dist/components/LiveCoreView/PlayerControl/MultiResolution.vue.d.ts +2 -0
- package/dist/components/LiveCoreView/PlayerControl/PlayerControl.js +150 -261
- package/dist/components/LiveCoreView/PlayerControl/PlayerControlState.d.ts +11 -0
- package/dist/components/LiveCoreView/PlayerControl/PlayerControlState.js +234 -379
- package/dist/components/LiveCoreView/PlayerControl/index.js +6 -6
- package/dist/components/LiveCoreView/PlayerControl/utils/deviceDetection.js +37 -121
- package/dist/components/LiveCoreView/PlayerControl/utils/domHelpers.js +32 -53
- package/dist/components/LiveCoreView/PlayerControl/utils/fullscreenManager.js +107 -177
- package/dist/components/LiveCoreView/i18n/en-US/index.d.ts +6 -0
- package/dist/components/LiveCoreView/i18n/en-US/index.js +14 -8
- package/dist/components/LiveCoreView/i18n/index.js +4 -4
- package/dist/components/LiveCoreView/i18n/zh-CN/index.d.ts +6 -0
- package/dist/components/LiveCoreView/i18n/zh-CN/index.js +14 -8
- package/dist/components/LiveCoreView/index.js +176 -301
- package/dist/components/LiveList/LiveList.js +109 -165
- package/dist/components/LiveList/LiveList.vue.d.ts +15 -3
- package/dist/components/LiveList/LiveListH5.js +109 -169
- package/dist/components/LiveList/i18n/en-US/index.d.ts +1 -1
- package/dist/components/LiveList/i18n/en-US/index.js +4 -4
- package/dist/components/LiveList/i18n/index.js +4 -4
- package/dist/components/LiveList/i18n/zh-CN/index.d.ts +1 -1
- package/dist/components/LiveList/i18n/zh-CN/index.js +4 -4
- package/dist/components/LiveList/index.d.ts +17 -1
- package/dist/components/LiveList/index.js +10 -10
- package/dist/components/LiveList/pullToRefresh.js +88 -163
- package/dist/components/LiveMonitorView/LiveMonitorView.js +72 -110
- package/dist/components/LiveMonitorView/i18n/en-US/index.js +2 -2
- package/dist/components/LiveMonitorView/i18n/index.js +4 -4
- package/dist/components/LiveMonitorView/i18n/zh-CN/index.js +2 -2
- package/dist/components/LiveMonitorView/index.js +7 -7
- package/dist/components/LiveScenePanel/CameraSettingDialog.js +126 -188
- package/dist/components/LiveScenePanel/LiveSceneSelect.js +79 -106
- package/dist/components/LiveScenePanel/MaterialDialog.js +78 -98
- package/dist/components/LiveScenePanel/MaterialItem.js +105 -142
- package/dist/components/LiveScenePanel/MaterialRenameDialog.js +2 -2
- package/dist/components/LiveScenePanel/i18n/en-US/index.js +2 -2
- package/dist/components/LiveScenePanel/i18n/index.js +4 -4
- package/dist/components/LiveScenePanel/i18n/zh-CN/index.js +2 -2
- package/dist/components/LiveScenePanel/icons/AddIcon.js +10 -11
- package/dist/components/LiveScenePanel/icons/CameraIcon.js +9 -10
- package/dist/components/LiveScenePanel/icons/CameraMirror.js +13 -14
- package/dist/components/LiveScenePanel/icons/CameraUnmirror.js +11 -12
- package/dist/components/LiveScenePanel/icons/ImageIcon.js +8 -9
- package/dist/components/LiveScenePanel/icons/MoreIcon.js +13 -14
- package/dist/components/LiveScenePanel/icons/ScreenIcon.js +8 -9
- package/dist/components/LiveScenePanel/index.js +142 -190
- package/dist/components/MessageInput/AttachmentPicker/AttachmentPicker.js +2 -2
- package/dist/components/MessageInput/AttachmentPicker/AttachmentPicker.vue.d.ts +10 -1
- package/dist/components/MessageInput/AttachmentPicker/FilePicker.js +63 -2
- package/dist/components/MessageInput/AttachmentPicker/FilePicker.vue.d.ts +14 -13
- package/dist/components/MessageInput/AttachmentPicker/ImagePicker.js +63 -2
- package/dist/components/MessageInput/AttachmentPicker/ImagePicker.vue.d.ts +14 -13
- package/dist/components/MessageInput/AttachmentPicker/VideoPicker.js +63 -2
- package/dist/components/MessageInput/AttachmentPicker/VideoPicker.vue.d.ts +14 -13
- package/dist/components/MessageInput/AttachmentPicker/index.js +70 -72
- package/dist/components/MessageInput/AudioCallPicker/AudioCallPicker.js +155 -0
- package/dist/components/MessageInput/AudioCallPicker/AudioCallPicker.vue.d.ts +45 -0
- package/dist/components/MessageInput/AudioCallPicker/index.d.ts +3 -0
- package/dist/components/MessageInput/AudioCallPicker/index.js +4 -0
- package/dist/components/MessageInput/EmojiPicker/EmojiPicker.js +108 -96
- package/dist/components/MessageInput/EmojiPicker/EmojiPicker.vue.d.ts +34 -6
- package/dist/components/MessageInput/EmojiPicker/index.js +2 -2
- package/dist/components/MessageInput/MessageInput.js +2 -2
- package/dist/components/MessageInput/QuotedMessagePreview/QuotedMessagePreview.js +2 -2
- package/dist/components/MessageInput/QuotedMessagePreview/index.js +60 -74
- package/dist/components/MessageInput/SendButton/SendButton.js +2 -2
- package/dist/components/MessageInput/SendButton/index.js +20 -25
- package/dist/components/MessageInput/TextEditor/EditorCore.js +72 -79
- package/dist/components/MessageInput/TextEditor/TextEditor.js +2 -2
- package/dist/components/MessageInput/TextEditor/index.js +60 -95
- package/dist/components/MessageInput/VideoCallPicker/VideoCallPicker.js +158 -0
- package/dist/components/MessageInput/VideoCallPicker/VideoCallPicker.vue.d.ts +45 -0
- package/dist/components/MessageInput/VideoCallPicker/index.d.ts +3 -0
- package/dist/components/MessageInput/VideoCallPicker/index.js +4 -0
- package/dist/components/MessageInput/i18n/en-US.d.ts +4 -0
- package/dist/components/MessageInput/i18n/en-US.js +7 -3
- package/dist/components/MessageInput/i18n/index.d.ts +4 -0
- package/dist/components/MessageInput/i18n/index.js +6 -6
- package/dist/components/MessageInput/i18n/zh-CN.js +2 -2
- package/dist/components/MessageInput/index.d.ts +462 -191
- package/dist/components/MessageInput/index.js +23 -25
- package/dist/components/MessageList/Message/AudioMessage/AudioMessage.js +50 -65
- package/dist/components/MessageList/Message/AudioMessage/PlayButton.js +31 -37
- package/dist/components/MessageList/Message/AudioMessage/WaveForm.js +37 -52
- package/dist/components/MessageList/Message/AudioMessage/index.js +2 -2
- package/dist/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.js +60 -0
- package/dist/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.vue.d.ts +16 -0
- package/dist/components/MessageList/Message/CustomMessage/CallMessage/index.d.ts +3 -0
- package/dist/components/MessageList/Message/CustomMessage/CallMessage/index.js +4 -0
- package/dist/components/MessageList/Message/CustomMessage/CustomMessage.js +49 -2
- package/dist/components/MessageList/Message/CustomMessage/CustomMessage.vue.d.ts +15 -1
- package/dist/components/MessageList/Message/CustomMessage/index.js +2 -10
- package/dist/components/MessageList/Message/FaceMessage/FaceMessage.js +16 -20
- package/dist/components/MessageList/Message/FaceMessage/index.js +2 -2
- package/dist/components/MessageList/Message/FileMessage/FileMessage.js +57 -70
- package/dist/components/MessageList/Message/FileMessage/index.js +2 -2
- package/dist/components/MessageList/Message/GroupTipMessage/GroupTipMessage.js +2 -2
- package/dist/components/MessageList/Message/GroupTipMessage/GroupTipMessage.vue.d.ts +1 -1
- package/dist/components/MessageList/Message/GroupTipMessage/index.js +13 -23
- package/dist/components/MessageList/Message/GroupTipMessage/resolveGroupTipMessage.d.ts +1 -1
- package/dist/components/MessageList/Message/GroupTipMessage/resolveGroupTipMessage.js +41 -59
- package/dist/components/MessageList/Message/ImageMessage/ImageMessage.js +106 -169
- package/dist/components/MessageList/Message/ImageMessage/index.js +2 -2
- package/dist/components/MessageList/Message/LocationMessage/LocationMessage.js +7 -7
- package/dist/components/MessageList/Message/LocationMessage/index.js +2 -2
- package/dist/components/MessageList/Message/MergerMessage/MergerMessage.js +7 -7
- package/dist/components/MessageList/Message/MergerMessage/index.js +2 -2
- package/dist/components/MessageList/Message/Message.js +2 -2
- package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.js +800 -1074
- package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.vue.d.ts +1 -1
- package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/index.js +2 -2
- package/dist/components/MessageList/Message/MessageLayout/MessageBubble/MessageBubble.js +36 -44
- package/dist/components/MessageList/Message/MessageLayout/MessageBubble/MessageBubble.vue.d.ts +1 -1
- package/dist/components/MessageList/Message/MessageLayout/MessageBubble/index.js +2 -2
- package/dist/components/MessageList/Message/MessageLayout/MessageLayout.js +116 -123
- package/dist/components/MessageList/Message/MessageLayout/MessageLayout.vue.d.ts +1 -1
- package/dist/components/MessageList/Message/MessageLayout/MessageMeta/MessageMeta.js +47 -73
- package/dist/components/MessageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.js +24 -27
- package/dist/components/MessageList/Message/MessageLayout/MessageMeta/index.js +2 -2
- package/dist/components/MessageList/Message/MessageLayout/index.js +2 -2
- package/dist/components/MessageList/Message/MessageLayout/useMessageLayoutClasses.js +23 -28
- package/dist/components/MessageList/Message/RecalledMessage/RecalledMessage.js +39 -48
- package/dist/components/MessageList/Message/RecalledMessage/RecalledMessage.vue.d.ts +2 -2
- package/dist/components/MessageList/Message/RecalledMessage/index.js +2 -2
- package/dist/components/MessageList/Message/TextMessage/TextMessage.js +80 -102
- package/dist/components/MessageList/Message/TextMessage/index.js +2 -2
- package/dist/components/MessageList/Message/VideoMessage/VideoMessage.js +68 -92
- package/dist/components/MessageList/Message/VideoMessage/index.js +2 -2
- package/dist/components/MessageList/Message/index.js +18 -20
- package/dist/components/MessageList/MessageForward/ForwardListItem.js +46 -53
- package/dist/components/MessageList/MessageForward/MessageForward.js +102 -124
- package/dist/components/MessageList/MessageForward/index.js +2 -2
- package/dist/components/MessageList/MessageList.js +129 -204
- package/dist/components/MessageList/MessageListContext.js +9 -10
- package/dist/components/MessageList/MessageTimeDivider/MessageTimeDivider.js +20 -28
- package/dist/components/MessageList/MessageTimeDivider/index.js +2 -2
- package/dist/components/MessageList/ReadReceiptInfo/ReadReceiptInfo.js +294 -379
- package/dist/components/MessageList/ReadReceiptInfo/index.js +2 -2
- package/dist/components/MessageList/ScrollToBottom/ScrollToBottom.js +20 -25
- package/dist/components/MessageList/ScrollToBottom/index.js +2 -2
- package/dist/components/MessageList/i18n/en-US.d.ts +27 -1
- package/dist/components/MessageList/i18n/en-US.js +29 -3
- package/dist/components/MessageList/i18n/index.d.ts +134 -78
- package/dist/components/MessageList/i18n/index.js +6 -6
- package/dist/components/MessageList/i18n/zh-CN.d.ts +27 -1
- package/dist/components/MessageList/i18n/zh-CN.js +29 -3
- package/dist/components/MessageList/index.js +9 -10
- package/dist/components/MicButton/AudioIcon.js +27 -37
- package/dist/components/MicButton/index.js +37 -52
- package/dist/components/Search/Search.js +117 -156
- package/dist/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.js +378 -505
- package/dist/components/Search/SearchAdvanced/DateRangePicker/index.js +2 -2
- package/dist/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.js +147 -211
- package/dist/components/Search/SearchAdvanced/MessageAdvanced/index.js +2 -2
- package/dist/components/Search/SearchAdvanced/SearchAdvanced.js +46 -60
- package/dist/components/Search/SearchAdvanced/SearchTab/SearchTab.js +39 -51
- package/dist/components/Search/SearchAdvanced/SearchTab/index.js +2 -2
- package/dist/components/Search/SearchAdvanced/Slider/Slider.js +53 -82
- package/dist/components/Search/SearchAdvanced/Slider/index.js +2 -2
- package/dist/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.js +247 -317
- package/dist/components/Search/SearchAdvanced/UserAdvanced/index.js +2 -2
- package/dist/components/Search/SearchAdvanced/index.js +12 -12
- package/dist/components/Search/SearchBar/SearchBar.js +98 -122
- package/dist/components/Search/SearchBar/index.js +2 -2
- package/dist/components/Search/SearchResults/EmptyResult/EmptyResult.js +26 -37
- package/dist/components/Search/SearchResults/EmptyResult/index.js +2 -2
- package/dist/components/Search/SearchResults/Loading/Loading.js +13 -19
- package/dist/components/Search/SearchResults/Loading/index.js +2 -2
- package/dist/components/Search/SearchResults/SearchResults.js +249 -355
- package/dist/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.js +61 -83
- package/dist/components/Search/SearchResults/SearchResultsItem/Conversation/index.js +2 -2
- package/dist/components/Search/SearchResults/SearchResultsItem/Group/Group.js +40 -52
- package/dist/components/Search/SearchResults/SearchResultsItem/Group/index.js +2 -2
- package/dist/components/Search/SearchResults/SearchResultsItem/Message/Message.js +134 -181
- package/dist/components/Search/SearchResults/SearchResultsItem/Message/index.js +2 -2
- package/dist/components/Search/SearchResults/SearchResultsItem/SearchResultsItem.js +40 -46
- package/dist/components/Search/SearchResults/SearchResultsItem/User/User.js +56 -75
- package/dist/components/Search/SearchResults/SearchResultsItem/User/index.js +2 -2
- package/dist/components/Search/SearchResults/SearchResultsItem/index.js +11 -11
- package/dist/components/Search/SearchResults/SearchResultsItem/utils/highlightText.js +17 -36
- package/dist/components/Search/SearchResults/SearchResultsItem/utils/index.js +2 -2
- package/dist/components/Search/SearchResults/index.js +16 -16
- package/dist/components/Search/i18n/en-US/DateRangePicker.js +3 -3
- package/dist/components/Search/i18n/en-US/Search.js +3 -3
- package/dist/components/Search/i18n/en-US/index.js +7 -7
- package/dist/components/Search/i18n/index.js +4 -4
- package/dist/components/Search/i18n/zh-CN/DateRangePicker.js +3 -3
- package/dist/components/Search/i18n/zh-CN/Search.js +3 -3
- package/dist/components/Search/i18n/zh-CN/index.js +7 -7
- package/dist/components/Search/index.js +20 -26
- package/dist/components/StreamMixer/LocalMixer/MixerControl.js +68 -100
- package/dist/components/StreamMixer/LocalMixer/index.js +103 -171
- package/dist/components/StreamMixer/i18n/en-US/index.js +2 -2
- package/dist/components/StreamMixer/i18n/index.js +4 -4
- package/dist/components/StreamMixer/i18n/zh-CN/index.js +2 -2
- package/dist/components/StreamMixer/icons/CameraMirror.js +13 -14
- package/dist/components/StreamMixer/icons/Delete.js +13 -14
- package/dist/components/StreamMixer/icons/Down.js +10 -11
- package/dist/components/StreamMixer/icons/Rotation.js +11 -12
- package/dist/components/StreamMixer/icons/Up.js +10 -11
- package/dist/components/StreamMixer/index.js +19 -21
- package/dist/components/StreamView/Layout/CustomLayout.js +132 -209
- package/dist/components/StreamView/Layout/FloatLayout.js +136 -199
- package/dist/components/StreamView/Layout/GridLayout.js +117 -197
- package/dist/components/StreamView/Layout/MeetingLayout.js +129 -231
- package/dist/components/StreamView/Layout/MixLayout.js +70 -98
- package/dist/components/StreamView/common/ArrowStroke.js +26 -29
- package/dist/components/StreamView/common/LocalScreenView/index.js +82 -92
- package/dist/components/StreamView/common/StreamCover/index.js +33 -62
- package/dist/components/StreamView/common/StreamList/index.js +103 -163
- package/dist/components/StreamView/common/StreamPlay/index.js +58 -98
- package/dist/components/StreamView/common/StreamRegion/StreamRegionPC.js +58 -90
- package/dist/components/StreamView/common/StreamRegion/index.js +2 -2
- package/dist/components/StreamView/index.js +64 -66
- package/dist/components/StreamView/manager/mediaManager.js +125 -236
- package/dist/components/UserList/AllUserActions/index.js +2 -2
- package/dist/components/UserList/AllUserActions/indexH5.js +59 -69
- package/dist/components/UserList/AllUserActions/indexPC.js +61 -73
- package/dist/components/UserList/AllUserActions/useIndexHooks.js +32 -39
- package/dist/components/UserList/UserItem/UserAction/index.js +2 -2
- package/dist/components/UserList/UserItem/UserAction/indexH5.js +47 -61
- package/dist/components/UserList/UserItem/UserAction/indexPC.js +86 -130
- package/dist/components/UserList/UserItem/UserInfo/index.js +67 -117
- package/dist/components/UserList/UserItem/UserInvite/index.js +18 -21
- package/dist/components/UserList/UserItem/index.js +2 -2
- package/dist/components/UserList/UserItem/indexH5.js +42 -54
- package/dist/components/UserList/UserItem/indexPC.js +32 -37
- package/dist/components/UserList/UserListContent/index.js +30 -44
- package/dist/components/UserList/UserListSearch/index.js +20 -26
- package/dist/components/UserList/index.js +50 -63
- package/dist/components/UserPicker/UserPicker.js +110 -148
- package/dist/components/UserPicker/components/ListMode/ListMode.js +70 -96
- package/dist/components/UserPicker/components/ListMode/index.js +2 -2
- package/dist/components/UserPicker/components/SearchBar/SearchBar.js +43 -58
- package/dist/components/UserPicker/components/SearchBar/index.js +2 -2
- package/dist/components/UserPicker/components/SelectedPanel/SelectedPanel.js +69 -94
- package/dist/components/UserPicker/components/SelectedPanel/index.js +2 -2
- package/dist/components/UserPicker/components/TreeMode/TreeMode.js +33 -42
- package/dist/components/UserPicker/components/TreeMode/TreeNode.js +81 -106
- package/dist/components/UserPicker/components/TreeMode/index.js +2 -2
- package/dist/components/UserPicker/hooks/useSearchFilter.js +39 -80
- package/dist/components/UserPicker/hooks/useSelection.js +155 -313
- package/dist/components/UserPicker/hooks/useTreeState.js +17 -37
- package/dist/components/UserPicker/i18n/en-US.js +2 -2
- package/dist/components/UserPicker/i18n/index.js +6 -6
- package/dist/components/UserPicker/i18n/zh-CN.js +2 -2
- package/dist/components/UserPicker/index.js +7 -7
- package/dist/components/VideoSetting/CameraSelect.js +46 -58
- package/dist/components/VideoSetting/VideoMediaControl.js +45 -65
- package/dist/components/VideoSetting/VideoPreview.js +31 -40
- package/dist/components/VideoSetting/VideoProfile.js +38 -46
- package/dist/components/VideoSetting/VideoRequestDialog.js +2 -2
- package/dist/components/VideoSetting/VideoSettingTab.js +43 -55
- package/dist/components/VideoSetting/index.js +3 -3
- package/dist/components/VideoSettingPanel/CameraSelect.js +45 -57
- package/dist/components/VideoSettingPanel/VideoPreview.js +30 -39
- package/dist/components/VideoSettingPanel/VideoProfile.js +36 -44
- package/dist/components/VideoSettingPanel/i18n/en-US/index.js +5 -5
- package/dist/components/VideoSettingPanel/i18n/index.js +4 -4
- package/dist/components/VideoSettingPanel/i18n/zh-CN/index.js +5 -5
- package/dist/components/VideoSettingPanel/index.js +48 -63
- package/dist/constants/emoji.js +3 -4
- package/dist/directives/vClickOutside.js +9 -23
- package/dist/directives/vDblTouch.js +26 -51
- package/dist/directives/vTap.js +37 -68
- package/dist/directives/vTouchScale.js +83 -155
- package/dist/handler/index.js +4 -4
- package/dist/handler/translator.js +65 -97
- package/dist/handler/voiceConverter.js +21 -30
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.js +4 -4
- package/dist/hooks/useAudioControl.js +44 -128
- package/dist/hooks/useLongPress.js +41 -75
- package/dist/hooks/useMessageActions.d.ts +1 -1
- package/dist/hooks/useMessageActions.js +46 -57
- package/dist/hooks/useMouseHover.js +16 -26
- package/dist/hooks/useReadReceipt/useReadReceipt.js +66 -114
- package/dist/hooks/useRoomActions/index.js +11 -14
- package/dist/hooks/useRoomActions/useRoomAudioAction.js +39 -44
- package/dist/hooks/useRoomActions/useRoomScreenAction.js +41 -48
- package/dist/hooks/useRoomActions/useRoomVideoAction.js +38 -44
- package/dist/hooks/useRoomEngine.js +14 -17
- package/dist/hooks/useScroll.js +52 -89
- package/dist/hooks/useUserActions/index.js +81 -117
- package/dist/hooks/useUserActions/useAdminAction.js +29 -35
- package/dist/hooks/useUserActions/useAudioAction.js +36 -40
- package/dist/hooks/useUserActions/useChangeNameCardAction/changeNameCardDialog.js +59 -69
- package/dist/hooks/useUserActions/useChangeNameCardAction/changeNameCardInput.js +40 -49
- package/dist/hooks/useUserActions/useChangeNameCardAction/index.js +43 -51
- package/dist/hooks/useUserActions/useChatAction.js +23 -25
- package/dist/hooks/useUserActions/useKickUserAction.js +27 -32
- package/dist/hooks/useUserActions/useMemberInviteAction.js +24 -40
- package/dist/hooks/useUserActions/useSeatAction.js +96 -108
- package/dist/hooks/useUserActions/useTransferOwnerAction.js +40 -47
- package/dist/hooks/useUserActions/useVideoAction.js +35 -38
- package/dist/hooks/useZIndex.js +7 -12
- package/dist/i18n/index.js +4 -4
- package/dist/index-CeQ4nl87.js +44 -0
- package/dist/index-D-KJvDvy.js +5125 -0
- package/dist/index-D88ja_7_.js +12047 -0
- package/dist/index-DPczIrgX.js +42 -0
- package/dist/index-DTq2ybsB.js +33 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +178 -152
- package/dist/index.vue_vue_type_script_setup_true_lang-DZIBxSQ7.js +32 -0
- package/dist/locales/en-US.js +31 -31
- package/dist/locales/index.js +29 -34
- package/dist/locales/zh-CN.js +31 -31
- package/dist/rtc/index.d.ts +34 -2
- package/dist/rtc/index.js +63 -86
- package/dist/rtc/server.js +62 -85
- package/dist/states/BarrageListState/BarrageListState.js +98 -183
- package/dist/states/BarrageListState/index.js +2 -2
- package/dist/states/BattleState.d.ts +46 -0
- package/dist/states/BattleState.js +117 -0
- package/dist/states/C2CSettingState/C2CSettingState.js +52 -92
- package/dist/states/C2CSettingState/index.js +2 -2
- package/dist/states/CoGuestState.d.ts +1 -1
- package/dist/states/CoGuestState.js +191 -291
- package/dist/states/CoHostState/CoHostState.d.ts +30 -0
- package/dist/states/CoHostState/CoHostState.js +209 -0
- package/dist/states/CoHostState/index.d.ts +1 -0
- package/dist/states/CoHostState/index.js +4 -0
- package/dist/states/ContactListState/ContactListState.js +175 -271
- package/dist/states/ContactListState/index.js +2 -2
- package/dist/states/ConversationListState/ConversationListState.js +61 -112
- package/dist/states/ConversationListState/index.js +2 -2
- package/dist/states/DeviceState.js +240 -389
- package/dist/states/GroupSettingState/GroupSettingState.js +220 -378
- package/dist/states/GroupSettingState/index.js +7 -7
- package/dist/states/GroupSettingState/permissions.js +240 -250
- package/dist/states/GroupSettingState/types.js +5 -41
- package/dist/states/LiveAudienceState.js +100 -132
- package/dist/states/LiveMonitorState/api/http.js +1245 -1910
- package/dist/states/LiveMonitorState/index.js +92 -148
- package/dist/states/LiveMonitorState/player/adapters/trtc.js +54 -106
- package/dist/states/LiveMonitorState/player/base/basePlayer.js +111 -169
- package/dist/states/LiveMonitorState/player/index.js +10 -10
- package/dist/states/LiveMonitorState/player/manager/playerManager.js +27 -33
- package/dist/states/LiveMonitorState/player/types/index.js +8 -8
- package/dist/states/LiveMonitorState/player/types/player.js +3 -13
- package/dist/states/LiveMonitorState/player/types/trtc.js +6 -20
- package/dist/states/LiveMonitorState/utils/index.js +17 -22
- package/dist/states/LiveSeatState/index.js +16 -16
- package/dist/states/LiveSeatState/seatEventManager.js +54 -75
- package/dist/states/LiveSeatState/seatManager.js +29 -36
- package/dist/states/LiveSeatState/store.js +18 -25
- package/dist/states/LiveSeatState/usePlayStream/MixStreamPlayer.js +43 -65
- package/dist/states/LiveSeatState/usePlayStream/RTCStreamManager.js +55 -83
- package/dist/states/LiveSeatState/usePlayStream/RTCStreamPlayer.js +59 -97
- package/dist/states/LiveSeatState/usePlayStream/index.js +44 -96
- package/dist/states/LiveSeatState/usePlayStream/useStreamPostion.js +43 -55
- package/dist/states/LiveState/index.js +190 -275
- package/dist/states/LoginState.js +48 -59
- package/dist/states/MessageActionState/MessageActionState.d.ts +6 -6
- package/dist/states/MessageActionState/MessageActionState.js +45 -56
- package/dist/states/MessageActionState/index.js +2 -2
- package/dist/states/MessageInputState/MessageInputState.js +90 -139
- package/dist/states/MessageInputState/index.js +4 -4
- package/dist/states/MessageInputState/type.js +2 -10
- package/dist/states/MessageInputState/utils.js +20 -21
- package/dist/states/MessageListState/MessageListState.js +65 -89
- package/dist/states/MessageListState/index.js +2 -2
- package/dist/states/RoomState.js +223 -332
- package/dist/states/SearchState.d.ts +2 -2
- package/dist/states/SearchState.js +230 -356
- package/dist/states/SeatStore.js +140 -213
- package/dist/states/UserState/index.js +31 -51
- package/dist/states/UserState/store.js +95 -147
- package/dist/states/UserState/userEventManager.js +85 -134
- package/dist/states/UserState/userManager.js +184 -232
- package/dist/states/VideoMixerState.js +181 -228
- package/dist/statistical/const.d.ts +4 -0
- package/dist/statistical/const.js +4 -0
- package/dist/statistical/index.d.ts +2 -0
- package/dist/statistical/index.js +6 -0
- package/dist/statistical/statistical.d.ts +10 -0
- package/dist/statistical/statistical.js +19 -0
- package/dist/styles/index.css +1 -13144
- package/dist/types/battle.d.ts +11 -0
- package/dist/types/battle.js +1 -0
- package/dist/types/call.d.ts +55 -0
- package/dist/types/call.js +4 -0
- package/dist/types/chatSetting.d.ts +1 -0
- package/dist/types/chatSetting.js +6 -0
- package/dist/types/coGuest.js +2 -8
- package/dist/types/coHost.d.ts +44 -4
- package/dist/types/coHost.js +4 -8
- package/dist/types/contact.js +3 -17
- package/dist/types/conversation.js +6 -36
- package/dist/types/device.d.ts +4 -0
- package/dist/types/device.js +8 -45
- package/dist/types/engine.d.ts +23 -7
- package/dist/types/engine.js +5 -23
- package/dist/types/index.d.ts +9 -5
- package/dist/types/index.js +92 -80
- package/dist/types/live.js +4 -21
- package/dist/types/message.js +4 -29
- package/dist/types/monitor.js +2 -6
- package/dist/types/room.js +3 -16
- package/dist/types/search.js +9 -15
- package/dist/types/seat.d.ts +4 -4
- package/dist/types/stream.js +3 -14
- package/dist/types/types.js +32 -329
- package/dist/types/user.d.ts +0 -3
- package/dist/types/user.js +8 -65
- package/dist/useId-CtirfF0W.js +12 -0
- package/dist/utils/call.d.ts +6 -2
- package/dist/utils/call.js +126 -11
- package/dist/utils/copyText.js +20 -33
- package/dist/utils/documentLink.js +2 -2
- package/dist/utils/domOperation.js +99 -122
- package/dist/utils/downFile.js +11 -19
- package/dist/utils/emoji.js +24 -31
- package/dist/utils/enableSampleTaskStatus.js +5 -8
- package/dist/utils/env.js +8 -13
- package/dist/utils/environment.js +14 -18
- package/dist/utils/index.js +36 -36
- package/dist/utils/json.js +34 -58
- package/dist/utils/lodash.js +63 -109
- package/dist/utils/riseInput.js +19 -36
- package/dist/utils/time.js +640 -934
- package/dist/utils/type-check.js +21 -46
- package/dist/utils/utils.js +131 -235
- package/dist/utils-DaB7eSu5.js +48 -0
- package/package.json +5 -4
- package/src/chat/index.ts +27 -0
- package/src/chat/server.ts +5 -0
- package/src/components/BarrageInput/TextEditor/Editor.scss +2 -2
- package/src/components/BarrageList/Message/TextMessage/TextMessage.vue +1 -1
- package/src/components/ChatSetting/ChatSetting.vue +3 -3
- package/src/components/ChatSetting/GroupChatSetting/GroupActions/GroupActions.vue +3 -0
- package/src/components/ChatSetting/GroupChatSetting/GroupChatSetting.vue +1 -0
- package/src/components/ChatSetting/GroupChatSetting/GroupManagement/GroupManagement.vue +1 -0
- package/src/components/CoGuestPanel/CoGuestPanel.vue +2 -1
- package/src/components/CoHostPanel/BattlePanel.vue +271 -0
- package/src/components/CoHostPanel/CoHostPanel.vue +218 -0
- package/src/components/CoHostPanel/ConfigSettingPanel.vue +264 -0
- package/src/components/CoHostPanel/ConnectionPanel.vue +549 -0
- package/src/components/CoHostPanel/RecommendHostList.vue +306 -0
- package/src/components/CoHostPanel/UserList.vue +93 -0
- package/src/components/CoHostPanel/i18n/en-US/index.ts +78 -0
- package/src/components/CoHostPanel/i18n/index.ts +4 -0
- package/src/components/CoHostPanel/i18n/zh-CN/index.ts +79 -0
- package/src/components/CoHostPanel/index.ts +7 -0
- package/src/components/ContactList/ContactInfo/GroupInfo/GroupInfo.vue +1 -0
- package/src/components/ConversationList/ConversationCreate/ConversationCreate.vue +2 -1
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.vue +1 -1
- package/src/components/ConversationList/ConversationSearch/ConversationSearch.vue +1 -0
- package/src/components/LiveCoreView/CoreViewDecorate/BattleDecorate.vue +420 -0
- package/src/components/LiveCoreView/CoreViewDecorate/BattleUserDecorate.vue +141 -0
- package/src/components/LiveCoreView/CoreViewDecorate/CoHostDecorate.vue +116 -0
- package/src/components/LiveCoreView/CoreViewDecorate/LiveCoreDecorate.vue +70 -0
- package/src/components/LiveCoreView/PlayerControl/MultiResolution.vue +130 -0
- package/src/components/LiveCoreView/PlayerControl/PlayerControl.vue +10 -8
- package/src/components/LiveCoreView/PlayerControl/PlayerControlState.ts +117 -1
- package/src/components/LiveCoreView/assets/img/defeat.png +0 -0
- package/src/components/LiveCoreView/assets/img/draw.png +0 -0
- package/src/components/LiveCoreView/assets/img/victory.png +0 -0
- package/src/components/LiveCoreView/assets/svg/BattleOrdinaryBadge.svg +20 -0
- package/src/components/LiveCoreView/assets/svg/BattleTopBadge.svg +16 -0
- package/src/components/LiveCoreView/assets/svg/blueBkg.svg +9 -0
- package/src/components/LiveCoreView/assets/svg/redBkg.svg +9 -0
- package/src/components/LiveCoreView/assets/svg/s.svg +17 -0
- package/src/components/LiveCoreView/assets/svg/v.svg +17 -0
- package/src/components/LiveCoreView/i18n/en-US/index.ts +6 -0
- package/src/components/LiveCoreView/i18n/zh-CN/index.ts +6 -0
- package/src/components/LiveCoreView/index.vue +4 -1
- package/src/components/LiveList/LiveList.vue +61 -106
- package/src/components/LiveList/LiveListH5.vue +1 -1
- package/src/components/LiveList/i18n/en-US/index.ts +1 -1
- package/src/components/LiveList/i18n/zh-CN/index.ts +1 -1
- package/src/components/MessageInput/AttachmentPicker/AttachmentPicker.vue +10 -8
- package/src/components/MessageInput/AttachmentPicker/FilePicker.vue +59 -31
- package/src/components/MessageInput/AttachmentPicker/ImagePicker.vue +58 -31
- package/src/components/MessageInput/AttachmentPicker/VideoPicker.vue +58 -31
- package/src/components/MessageInput/AudioCallPicker/AudioCallPicker.vue +240 -0
- package/src/components/MessageInput/AudioCallPicker/index.ts +3 -0
- package/src/components/MessageInput/EmojiPicker/EmojiPicker.vue +107 -18
- package/src/components/MessageInput/MessageInput.module.scss +1 -1
- package/src/components/MessageInput/MessageInput.vue +6 -2
- package/src/components/MessageInput/VideoCallPicker/VideoCallPicker.vue +246 -0
- package/src/components/MessageInput/VideoCallPicker/index.ts +3 -0
- package/src/components/MessageInput/i18n/en-US.ts +4 -0
- package/src/components/MessageInput/index.ts +10 -4
- package/src/components/MessageInput/types.d.ts +3 -1
- package/src/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.vue +67 -0
- package/src/components/MessageList/Message/CustomMessage/CallMessage/index.ts +3 -0
- package/src/components/MessageList/Message/CustomMessage/CustomMessage.vue +59 -2
- package/src/components/MessageList/Message/CustomMessage/index.ts +1 -1
- package/src/components/MessageList/Message/GroupTipMessage/GroupTipMessage.vue +9 -10
- package/src/components/MessageList/Message/GroupTipMessage/resolveGroupTipMessage.ts +1 -1
- package/src/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.vue +1 -1
- package/src/components/MessageList/Message/MessageLayout/MessageBubble/MessageBubble.vue +1 -1
- package/src/components/MessageList/Message/MessageLayout/MessageLayout.vue +30 -18
- package/src/components/MessageList/Message/RecalledMessage/RecalledMessage.vue +10 -18
- package/src/components/MessageList/i18n/en-US.ts +32 -1
- package/src/components/MessageList/i18n/index.ts +4 -4
- package/src/components/MessageList/i18n/zh-CN.ts +32 -1
- package/src/components/MessageList/index.ts +2 -2
- package/src/components/Search/SearchResults/SearchResults.scss +1 -0
- package/src/components/UserPicker/UserPicker.vue +0 -2
- package/src/hooks/index.ts +1 -2
- package/src/hooks/useMessageActions.ts +9 -9
- package/src/index.ts +2 -1
- package/src/rtc/index.ts +5 -0
- package/src/statistical/const.ts +5 -0
- package/src/statistical/index.ts +2 -0
- package/src/statistical/statistical.ts +23 -0
- package/src/types/battle.ts +12 -0
- package/src/types/call.ts +62 -0
- package/src/types/chatSetting.ts +5 -0
- package/src/types/coHost.ts +46 -4
- package/src/types/device.ts +5 -0
- package/src/types/engine.ts +45 -21
- package/src/types/index.ts +12 -5
- package/src/types/seat.ts +5 -5
- package/src/types/user.ts +0 -4
- package/src/utils/call.ts +233 -5
- package/src/utils/time.ts +1 -1
- package/dist/AttachmentPicker.module-BesmtGyl.js +0 -11
- package/dist/AudioRequestDialog.vue_vue_type_script_setup_true_lang-BmX-qsat.js +0 -108
- package/dist/DialogPortal-DWeT-J6v.js +0 -496
- package/dist/FilePicker.vue_vue_type_script_setup_true_lang-CdJ4DUzE.js +0 -76
- package/dist/ImagePicker.vue_vue_type_script_setup_true_lang-CbNUofpK.js +0 -76
- package/dist/MaterialRenameDialog.vue_vue_type_script_setup_true_lang-CVh4Regz.js +0 -43
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-wUJPjWbx.js +0 -128
- package/dist/PopoverTrigger-BKOIHfdS.js +0 -679
- package/dist/PopperContent-DtL7HVWz.js +0 -2227
- package/dist/Teleport-CMvGsENT.js +0 -1365
- package/dist/VideoPicker.vue_vue_type_script_setup_true_lang-CmxjbNDJ.js +0 -76
- package/dist/VideoRequestDialog.vue_vue_type_script_setup_true_lang-CnE-LwNh.js +0 -108
- package/dist/_commonjsHelpers-CUmg6egw.js +0 -6
- package/dist/_plugin-vue_export-helper-1tPrXgE0.js +0 -10
- package/dist/index-BF6QB9jF.js +0 -63
- package/dist/index-CX1Zs9En.js +0 -44
- package/dist/index-DRcLhqhU.js +0 -38
- package/dist/index-ex2Jv3Tj.js +0 -7655
- package/dist/index-t9cbWbGG.js +0 -15913
- package/dist/index.vue_vue_type_script_setup_true_lang-EcKm3pYY.js +0 -36
- package/dist/states/CoHostState.d.ts +0 -22
- package/dist/states/CoHostState.js +0 -178
- package/dist/useId-CsgLY8y3.js +0 -13
- package/dist/utils-KP1QpeUS.js +0 -59
- package/src/components/MessageInput/EmojiPicker/EmojiPicker.module.scss +0 -28
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch, nextTick, onMounted, onBeforeUnmount, createElementBlock, openBlock, normalizeClass, createElementVNode, normalizeStyle, Fragment, renderList, createBlock, unref, withCtx, renderSlot, mergeProps } from "vue";
|
|
2
|
-
import
|
|
3
|
-
import { getContentSize } from "../../../../utils/domOperation.js";
|
|
4
|
-
import { isUndefined } from "../../../../utils/utils.js";
|
|
5
|
-
import { _ as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as E, ref as g, computed as i, watch as Q, nextTick as T, onMounted as U, onBeforeUnmount as D, createElementBlock as P, openBlock as R, normalizeClass as J, createElementVNode as F, normalizeStyle as _, Fragment as Y, renderList as j, createBlock as A, unref as G, withCtx as K, renderSlot as X, mergeProps as Z } from "vue";
|
|
2
|
+
import ee from "../StreamRegion/StreamRegionPC.js";
|
|
3
|
+
import { getContentSize as $ } from "../../../../utils/domOperation.js";
|
|
4
|
+
import { isUndefined as h } from "../../../../utils/utils.js";
|
|
5
|
+
import { _ as te } from "../../../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
const ae = /* @__PURE__ */ E({
|
|
7
7
|
__name: "index",
|
|
8
8
|
props: {
|
|
9
9
|
streamInfoList: {},
|
|
@@ -19,191 +19,131 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19
19
|
streamPlayMode: {}
|
|
20
20
|
},
|
|
21
21
|
emits: ["stream-view-dblclick"],
|
|
22
|
-
setup(
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
const streamListContainerRef = ref();
|
|
26
|
-
const streamListRef = ref();
|
|
27
|
-
const streamListConfig = computed(() => {
|
|
28
|
-
const parsedConfig = JSON.parse(props.config);
|
|
22
|
+
setup(w, { emit: b }) {
|
|
23
|
+
const z = b, n = w, o = g(), H = g(), t = i(() => {
|
|
24
|
+
const e = JSON.parse(n.config);
|
|
29
25
|
return {
|
|
30
|
-
maxRows:
|
|
31
|
-
maxColumns:
|
|
32
|
-
rowSpacing:
|
|
33
|
-
columnSpacing:
|
|
26
|
+
maxRows: h(e.maxRows) ? 3 : e.maxRows,
|
|
27
|
+
maxColumns: h(e.maxColumns) ? 3 : e.maxColumns,
|
|
28
|
+
rowSpacing: h(e.rowSpacing) ? 8 : e.rowSpacing,
|
|
29
|
+
columnSpacing: h(e.columnSpacing) ? 8 : e.columnSpacing
|
|
34
30
|
};
|
|
35
|
-
})
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
const validStreamInfoList = computed(() => {
|
|
42
|
-
var _a;
|
|
43
|
-
return (_a = props.streamInfoList) == null ? void 0 : _a.filter(
|
|
44
|
-
(item) => item && item.userInfo.userId && !isUndefined(item.streamType)
|
|
31
|
+
}), S = i(
|
|
32
|
+
() => t.value.maxColumns !== 0 && t.value.maxRows !== 0
|
|
33
|
+
), L = i(() => t.value.maxColumns === 0), C = i(() => t.value.maxRows === 0), W = i(() => {
|
|
34
|
+
var e;
|
|
35
|
+
return (e = n.streamInfoList) == null ? void 0 : e.filter(
|
|
36
|
+
(a) => a && a.userInfo.userId && !h(a.streamType)
|
|
45
37
|
);
|
|
46
38
|
});
|
|
47
|
-
function
|
|
48
|
-
if (
|
|
49
|
-
|
|
39
|
+
function x() {
|
|
40
|
+
if (L.value) {
|
|
41
|
+
V();
|
|
50
42
|
return;
|
|
51
43
|
}
|
|
52
|
-
if (
|
|
53
|
-
|
|
44
|
+
if (C.value) {
|
|
45
|
+
B();
|
|
54
46
|
return;
|
|
55
47
|
}
|
|
56
|
-
if (
|
|
57
|
-
|
|
48
|
+
if (S.value) {
|
|
49
|
+
O();
|
|
58
50
|
return;
|
|
59
51
|
}
|
|
60
52
|
}
|
|
61
|
-
const
|
|
53
|
+
const v = g({
|
|
62
54
|
width: "0",
|
|
63
55
|
height: "0"
|
|
64
|
-
})
|
|
65
|
-
const streamStyle = ref({
|
|
56
|
+
}), l = g({
|
|
66
57
|
width: "0",
|
|
67
58
|
height: "0"
|
|
68
|
-
})
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
return Number(props.aspectRatio.split(":")[1]);
|
|
81
|
-
});
|
|
82
|
-
const column = computed(() => {
|
|
83
|
-
if (streamListConfig.value.maxColumns === Infinity) {
|
|
84
|
-
return streamListConfig.value.maxColumns;
|
|
85
|
-
}
|
|
86
|
-
return Math.min(
|
|
87
|
-
Math.ceil(Math.sqrt(props.streamInfoList.length)),
|
|
88
|
-
streamListConfig.value.maxColumns
|
|
89
|
-
);
|
|
90
|
-
});
|
|
91
|
-
const row = computed(() => {
|
|
92
|
-
if (streamListConfig.value.maxRows === Infinity) {
|
|
93
|
-
return streamListConfig.value.maxRows;
|
|
94
|
-
}
|
|
95
|
-
return Math.min(
|
|
96
|
-
Math.ceil(props.streamInfoList.length / column.value),
|
|
97
|
-
streamListConfig.value.maxRows
|
|
98
|
-
);
|
|
99
|
-
});
|
|
100
|
-
watch(
|
|
101
|
-
() => [column.value, row.value],
|
|
59
|
+
}), r = i(() => {
|
|
60
|
+
var e, a;
|
|
61
|
+
return !n.aspectRatio || ((e = n.aspectRatio) == null ? void 0 : e.indexOf(":")) < 0 ? 0 : Number((a = n.aspectRatio) == null ? void 0 : a.split(":")[0]);
|
|
62
|
+
}), u = i(() => !n.aspectRatio || n.aspectRatio.indexOf(":") < 0 ? 0 : Number(n.aspectRatio.split(":")[1])), c = i(() => t.value.maxColumns === 1 / 0 ? t.value.maxColumns : Math.min(
|
|
63
|
+
Math.ceil(Math.sqrt(n.streamInfoList.length)),
|
|
64
|
+
t.value.maxColumns
|
|
65
|
+
)), f = i(() => t.value.maxRows === 1 / 0 ? t.value.maxRows : Math.min(
|
|
66
|
+
Math.ceil(n.streamInfoList.length / c.value),
|
|
67
|
+
t.value.maxRows
|
|
68
|
+
));
|
|
69
|
+
Q(
|
|
70
|
+
() => [c.value, f.value],
|
|
102
71
|
async () => {
|
|
103
|
-
await
|
|
104
|
-
handleLayout();
|
|
72
|
+
await T(), x();
|
|
105
73
|
},
|
|
106
|
-
{ immediate:
|
|
74
|
+
{ immediate: !0 }
|
|
107
75
|
);
|
|
108
|
-
async function
|
|
109
|
-
if (!
|
|
76
|
+
async function O() {
|
|
77
|
+
if (!o.value)
|
|
110
78
|
return;
|
|
79
|
+
const e = o.value.getBoundingClientRect(), a = Math.floor(e.width), s = Math.floor(e.height), m = (a - (c.value - 1) * t.value.columnSpacing) / c.value, d = (s - (f.value - 1) * t.value.rowSpacing) / f.value;
|
|
80
|
+
let p = m, y = d;
|
|
81
|
+
if (r.value && u.value) {
|
|
82
|
+
const I = m / r.value, k = d / u.value;
|
|
83
|
+
I > k && (p = Math.floor(d / u.value * r.value), y = Math.floor(d)), I <= k && (p = Math.floor(m), y = Math.floor(m / r.value * u.value));
|
|
111
84
|
}
|
|
112
|
-
|
|
113
|
-
const containerWidth = Math.floor(containerRect.width);
|
|
114
|
-
const containerHeight = Math.floor(containerRect.height);
|
|
115
|
-
const contentWidth = (containerWidth - (column.value - 1) * streamListConfig.value.columnSpacing) / column.value;
|
|
116
|
-
const contentHeight = (containerHeight - (row.value - 1) * streamListConfig.value.rowSpacing) / row.value;
|
|
117
|
-
let width = contentWidth;
|
|
118
|
-
let height = contentHeight;
|
|
119
|
-
if (widthRatio.value && heightRatio.value) {
|
|
120
|
-
const scaleWidth = contentWidth / widthRatio.value;
|
|
121
|
-
const scaleHeight = contentHeight / heightRatio.value;
|
|
122
|
-
if (scaleWidth > scaleHeight) {
|
|
123
|
-
width = Math.floor(contentHeight / heightRatio.value * widthRatio.value);
|
|
124
|
-
height = Math.floor(contentHeight);
|
|
125
|
-
}
|
|
126
|
-
if (scaleWidth <= scaleHeight) {
|
|
127
|
-
width = Math.floor(contentWidth);
|
|
128
|
-
height = Math.floor(contentWidth / widthRatio.value * heightRatio.value);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
streamStyle.value.width = `${width}px`;
|
|
132
|
-
streamStyle.value.height = `${height}px`;
|
|
133
|
-
streamListStyle.value.width = `${Math.ceil(column.value * width + (column.value - 1) * streamListConfig.value.columnSpacing)}px`;
|
|
134
|
-
streamListStyle.value.height = `${Math.ceil(row.value * height + (row.value - 1) * streamListConfig.value.rowSpacing)}px`;
|
|
85
|
+
l.value.width = `${p}px`, l.value.height = `${y}px`, v.value.width = `${Math.ceil(c.value * p + (c.value - 1) * t.value.columnSpacing)}px`, v.value.height = `${Math.ceil(f.value * y + (f.value - 1) * t.value.rowSpacing)}px`;
|
|
135
86
|
}
|
|
136
|
-
function
|
|
137
|
-
|
|
138
|
-
const
|
|
139
|
-
|
|
140
|
-
streamStyle.value.width = `${contentWidth}px`;
|
|
141
|
-
streamStyle.value.height = `${contentHeight}px`;
|
|
87
|
+
function V() {
|
|
88
|
+
v.value = {};
|
|
89
|
+
const e = $(o.value).height, a = e * r.value / u.value;
|
|
90
|
+
l.value.width = `${a}px`, l.value.height = `${e}px`;
|
|
142
91
|
}
|
|
143
|
-
function
|
|
144
|
-
|
|
145
|
-
const
|
|
146
|
-
|
|
147
|
-
streamStyle.value.width = `${contentWidth}px`;
|
|
148
|
-
streamStyle.value.height = `${contentHeight}px`;
|
|
92
|
+
function B() {
|
|
93
|
+
v.value = {};
|
|
94
|
+
const e = $(o.value).width, a = e * u.value / r.value;
|
|
95
|
+
l.value.width = `${e}px`, l.value.height = `${a}px`;
|
|
149
96
|
}
|
|
150
|
-
function
|
|
151
|
-
|
|
97
|
+
function N(e) {
|
|
98
|
+
z("stream-view-dblclick", e);
|
|
152
99
|
}
|
|
153
|
-
const
|
|
154
|
-
|
|
155
|
-
});
|
|
156
|
-
onMounted(() => {
|
|
157
|
-
handleLayout();
|
|
158
|
-
resizeObserver.observe(streamListContainerRef.value);
|
|
100
|
+
const M = new ResizeObserver(() => {
|
|
101
|
+
x();
|
|
159
102
|
});
|
|
160
|
-
|
|
161
|
-
|
|
103
|
+
U(() => {
|
|
104
|
+
x(), M.observe(o.value);
|
|
105
|
+
}), D(() => {
|
|
106
|
+
M.unobserve(o.value);
|
|
162
107
|
});
|
|
163
|
-
function
|
|
164
|
-
|
|
108
|
+
function q(e) {
|
|
109
|
+
o.value.scrollLeft += e.deltaY;
|
|
165
110
|
}
|
|
166
|
-
return (
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
111
|
+
return (e, a) => (R(), P("div", {
|
|
112
|
+
ref_key: "streamListContainerRef",
|
|
113
|
+
ref: o,
|
|
114
|
+
class: J({
|
|
115
|
+
"horizontal-infinity-layout": L.value,
|
|
116
|
+
"vertical-infinity-layout": C.value,
|
|
117
|
+
"equal-points-layout": S.value
|
|
118
|
+
})
|
|
119
|
+
}, [
|
|
120
|
+
F("div", {
|
|
121
|
+
class: "stream-list",
|
|
122
|
+
ref_key: "streamListRef",
|
|
123
|
+
ref: H,
|
|
124
|
+
style: _(v.value),
|
|
125
|
+
onWheel: q
|
|
175
126
|
}, [
|
|
176
|
-
|
|
177
|
-
class: "stream-list",
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
}, {
|
|
195
|
-
streamViewUI: withCtx((slotProps) => [
|
|
196
|
-
renderSlot(_ctx.$slots, "streamViewUI", mergeProps({ ref_for: true }, slotProps), void 0, true)
|
|
197
|
-
]),
|
|
198
|
-
_: 3
|
|
199
|
-
}, 8, ["user-info", "stream-type", "streamInfo", "style", "streamPlayMode", "streamPlayQuality"]);
|
|
200
|
-
}), 128))
|
|
201
|
-
], 36)
|
|
202
|
-
], 2);
|
|
203
|
-
};
|
|
127
|
+
(R(!0), P(Y, null, j(W.value, (s) => (R(), A(G(ee), {
|
|
128
|
+
class: "stream-list-item",
|
|
129
|
+
key: `${s.userInfo.userId}_${s.streamType}`,
|
|
130
|
+
"user-info": s.userInfo,
|
|
131
|
+
"stream-type": s.streamType,
|
|
132
|
+
streamInfo: s,
|
|
133
|
+
style: _(l.value),
|
|
134
|
+
streamPlayMode: w.streamPlayMode,
|
|
135
|
+
streamPlayQuality: w.streamPlayQuality,
|
|
136
|
+
onStreamViewDblclick: N
|
|
137
|
+
}, {
|
|
138
|
+
streamViewUI: K((m) => [
|
|
139
|
+
X(e.$slots, "streamViewUI", Z({ ref_for: !0 }, m), void 0, !0)
|
|
140
|
+
]),
|
|
141
|
+
_: 3
|
|
142
|
+
}, 8, ["user-info", "stream-type", "streamInfo", "style", "streamPlayMode", "streamPlayQuality"]))), 128))
|
|
143
|
+
], 36)
|
|
144
|
+
], 2));
|
|
204
145
|
}
|
|
205
|
-
});
|
|
206
|
-
const StreamList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9e6fa961"]]);
|
|
146
|
+
}), re = /* @__PURE__ */ te(ae, [["__scopeId", "data-v-9e6fa961"]]);
|
|
207
147
|
export {
|
|
208
|
-
|
|
148
|
+
re as default
|
|
209
149
|
};
|
|
@@ -1,116 +1,76 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch, onMounted, onBeforeUnmount, createElementBlock, openBlock, nextTick } from "vue";
|
|
2
|
-
import { TUIVideoStreamType } from "@tencentcloud/tuiroom-engine-js";
|
|
3
|
-
import { StreamPlayMode, StreamPlayQuality, MediaManager } from "../../manager/mediaManager.js";
|
|
4
|
-
import { getNanoId } from "../../../../utils/utils.js";
|
|
5
|
-
import { useUserState } from "../../../../states/UserState/index.js";
|
|
6
|
-
import { DeviceStatus } from "../../../../types/device.js";
|
|
7
|
-
import { _ as
|
|
8
|
-
const
|
|
9
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1
|
+
import { defineComponent as P, ref as w, computed as l, watch as p, onMounted as k, onBeforeUnmount as g, createElementBlock as M, openBlock as V, nextTick as O } from "vue";
|
|
2
|
+
import { TUIVideoStreamType as a } from "@tencentcloud/tuiroom-engine-js";
|
|
3
|
+
import { StreamPlayMode as y, StreamPlayQuality as c, MediaManager as x } from "../../manager/mediaManager.js";
|
|
4
|
+
import { getNanoId as C } from "../../../../utils/utils.js";
|
|
5
|
+
import { useUserState as D } from "../../../../states/UserState/index.js";
|
|
6
|
+
import { DeviceStatus as I } from "../../../../types/device.js";
|
|
7
|
+
import { _ as L } from "../../../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
+
const N = ["id"], R = /* @__PURE__ */ P({
|
|
10
9
|
__name: "index",
|
|
11
10
|
props: {
|
|
12
11
|
userInfo: {},
|
|
13
12
|
streamType: {},
|
|
14
|
-
streamPlayQuality: { default:
|
|
15
|
-
streamPlayMode: { default:
|
|
13
|
+
streamPlayQuality: { default: c.Default },
|
|
14
|
+
streamPlayMode: { default: y.PLAY }
|
|
16
15
|
},
|
|
17
|
-
setup(
|
|
18
|
-
const { localUser } =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
const isNeedPlayStream = computed(
|
|
27
|
-
() => props.streamPlayMode !== StreamPlayMode.STOP && (props.streamType === TUIVideoStreamType.kCameraStream && props.userInfo.cameraStatus === DeviceStatus.On || props.streamType === TUIVideoStreamType.kScreenStream && props.userInfo.screenStatus === DeviceStatus.On) || props.userInfo.userId.indexOf("livekit_") === 0
|
|
28
|
-
);
|
|
29
|
-
const streamTypeToFetch = computed(() => {
|
|
30
|
-
var _a;
|
|
31
|
-
const { userId } = props.userInfo;
|
|
32
|
-
const streamType = props.streamType;
|
|
33
|
-
if (streamType === TUIVideoStreamType.kScreenStream) {
|
|
34
|
-
return TUIVideoStreamType.kScreenStream;
|
|
35
|
-
}
|
|
36
|
-
if (props.streamPlayQuality === StreamPlayQuality.HIGH || userId === ((_a = localUser.value) == null ? void 0 : _a.userId)) {
|
|
37
|
-
return TUIVideoStreamType.kCameraStream;
|
|
38
|
-
}
|
|
39
|
-
if (props.streamPlayQuality === StreamPlayQuality.LOW) {
|
|
40
|
-
return TUIVideoStreamType.kCameraStreamLow;
|
|
41
|
-
}
|
|
42
|
-
return TUIVideoStreamType.kCameraStream;
|
|
16
|
+
setup(S) {
|
|
17
|
+
const { localUser: v } = D(), i = new x(), e = S, s = w(), T = C(5), _ = l(
|
|
18
|
+
() => `${e.userInfo.userId}_${e.streamType}_${T}`
|
|
19
|
+
), t = l(
|
|
20
|
+
() => e.streamPlayMode !== y.STOP && (e.streamType === a.kCameraStream && e.userInfo.cameraStatus === I.On || e.streamType === a.kScreenStream && e.userInfo.screenStatus === I.On) || e.userInfo.userId.indexOf("livekit_") === 0
|
|
21
|
+
), m = l(() => {
|
|
22
|
+
var r;
|
|
23
|
+
const { userId: o } = e.userInfo;
|
|
24
|
+
return e.streamType === a.kScreenStream ? a.kScreenStream : e.streamPlayQuality === c.HIGH || o === ((r = v.value) == null ? void 0 : r.userId) ? a.kCameraStream : e.streamPlayQuality === c.LOW ? a.kCameraStreamLow : a.kCameraStream;
|
|
43
25
|
});
|
|
44
|
-
async function
|
|
45
|
-
await
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
observerViewInVisible: props.streamPlayMode === StreamPlayMode.PLAY_IN_VISIBLE
|
|
52
|
-
});
|
|
53
|
-
}
|
|
26
|
+
async function u() {
|
|
27
|
+
await O(), t.value && await i.startPlayVideo({
|
|
28
|
+
userId: e.userInfo.userId,
|
|
29
|
+
streamType: m.value,
|
|
30
|
+
view: s.value,
|
|
31
|
+
observerViewInVisible: e.streamPlayMode === y.PLAY_IN_VISIBLE
|
|
32
|
+
});
|
|
54
33
|
}
|
|
55
|
-
async function
|
|
56
|
-
await
|
|
57
|
-
userId:
|
|
58
|
-
streamType:
|
|
59
|
-
view:
|
|
34
|
+
async function d() {
|
|
35
|
+
await i.stopPlayVideo({
|
|
36
|
+
userId: e.userInfo.userId,
|
|
37
|
+
streamType: m.value,
|
|
38
|
+
view: s.value
|
|
60
39
|
});
|
|
61
40
|
}
|
|
62
|
-
|
|
41
|
+
return p(
|
|
63
42
|
() => [
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
43
|
+
e.userInfo.userId,
|
|
44
|
+
e.streamType,
|
|
45
|
+
t.value
|
|
67
46
|
],
|
|
68
|
-
async (
|
|
69
|
-
if (JSON.stringify(
|
|
47
|
+
async (o, n) => {
|
|
48
|
+
if (JSON.stringify(o) === JSON.stringify(n))
|
|
70
49
|
return;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
view: playRegionDomRef.value
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
if (isNeedPlayStream.value) {
|
|
81
|
-
await startPlayVideo();
|
|
82
|
-
} else {
|
|
83
|
-
await stopPlayVideo();
|
|
84
|
-
}
|
|
50
|
+
const [r, f] = n;
|
|
51
|
+
(r !== e.userInfo.userId || f !== e.streamType) && i.stopPlayVideo({
|
|
52
|
+
userId: r,
|
|
53
|
+
streamType: f,
|
|
54
|
+
view: s.value
|
|
55
|
+
}), t.value ? await u() : await d();
|
|
85
56
|
}
|
|
86
|
-
)
|
|
87
|
-
|
|
88
|
-
() => streamTypeToFetch,
|
|
57
|
+
), p(
|
|
58
|
+
() => m,
|
|
89
59
|
async () => {
|
|
90
|
-
|
|
91
|
-
await startPlayVideo();
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
);
|
|
95
|
-
onMounted(async () => {
|
|
96
|
-
if (isNeedPlayStream.value) {
|
|
97
|
-
await startPlayVideo();
|
|
60
|
+
t.value && await u();
|
|
98
61
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}, null, 8, _hoisted_1);
|
|
110
|
-
};
|
|
62
|
+
), k(async () => {
|
|
63
|
+
t.value && await u();
|
|
64
|
+
}), g(async () => {
|
|
65
|
+
await d();
|
|
66
|
+
}), (o, n) => (V(), M("div", {
|
|
67
|
+
ref_key: "playRegionDomRef",
|
|
68
|
+
ref: s,
|
|
69
|
+
id: _.value,
|
|
70
|
+
class: "stream-play-container"
|
|
71
|
+
}, null, 8, N));
|
|
111
72
|
}
|
|
112
|
-
});
|
|
113
|
-
const StreamPlay = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3392cbdc"]]);
|
|
73
|
+
}), E = /* @__PURE__ */ L(R, [["__scopeId", "data-v-3392cbdc"]]);
|
|
114
74
|
export {
|
|
115
|
-
|
|
75
|
+
E as default
|
|
116
76
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch, onMounted, onBeforeUnmount, createElementBlock, openBlock, createElementVNode, normalizeStyle, createVNode, renderSlot, createBlock, createCommentVNode } from "vue";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { getContentSize } from "../../../../utils/domOperation.js";
|
|
5
|
-
import { _ as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as w, ref as f, computed as y, watch as T, onMounted as b, onBeforeUnmount as k, createElementBlock as C, openBlock as d, createElementVNode as _, normalizeStyle as P, createVNode as B, renderSlot as v, createBlock as N, createCommentVNode as $ } from "vue";
|
|
2
|
+
import x from "../StreamPlay/index.js";
|
|
3
|
+
import z from "../StreamCover/index.js";
|
|
4
|
+
import { getContentSize as h } from "../../../../utils/domOperation.js";
|
|
5
|
+
import { _ as V } from "../../../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
const M = /* @__PURE__ */ w({
|
|
7
7
|
__name: "StreamRegionPC",
|
|
8
8
|
props: {
|
|
9
9
|
userInfo: {},
|
|
@@ -14,97 +14,65 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
14
14
|
supportTouchScale: { type: Boolean }
|
|
15
15
|
},
|
|
16
16
|
emits: ["stream-view-dblclick"],
|
|
17
|
-
setup(
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
const streamStyle = ref({ width: "", height: "" });
|
|
22
|
-
const widthRatio = computed(() => {
|
|
23
|
-
if (!props.aspectRatio || props.aspectRatio.indexOf(":") < 0) {
|
|
24
|
-
return 0;
|
|
25
|
-
}
|
|
26
|
-
return Number(props.aspectRatio.split(":")[0]);
|
|
27
|
-
});
|
|
28
|
-
const heightRatio = computed(() => {
|
|
29
|
-
if (!props.aspectRatio || props.aspectRatio.indexOf(":") < 0) {
|
|
30
|
-
return 0;
|
|
31
|
-
}
|
|
32
|
-
return Number(props.aspectRatio.split(":")[1]);
|
|
33
|
-
});
|
|
34
|
-
watch(() => props.aspectRatio, () => {
|
|
35
|
-
handleStreamRegionSize();
|
|
17
|
+
setup(R, { emit: g }) {
|
|
18
|
+
const e = R, I = g, a = f(), n = f({ width: "", height: "" }), o = y(() => !e.aspectRatio || e.aspectRatio.indexOf(":") < 0 ? 0 : Number(e.aspectRatio.split(":")[0])), s = y(() => !e.aspectRatio || e.aspectRatio.indexOf(":") < 0 ? 0 : Number(e.aspectRatio.split(":")[1]));
|
|
19
|
+
T(() => e.aspectRatio, () => {
|
|
20
|
+
m();
|
|
36
21
|
});
|
|
37
|
-
function
|
|
38
|
-
if (!
|
|
22
|
+
function m() {
|
|
23
|
+
if (!a.value)
|
|
39
24
|
return;
|
|
25
|
+
const t = h(a.value).width, r = h(a.value).height;
|
|
26
|
+
let i = t, l = r;
|
|
27
|
+
if (o.value && s.value) {
|
|
28
|
+
const c = t / o.value, p = r / s.value;
|
|
29
|
+
c > p && (i = r / s.value * o.value, l = r), c <= p && (i = t, l = t / o.value * s.value);
|
|
40
30
|
}
|
|
41
|
-
|
|
42
|
-
const containerHeight = getContentSize(streamRegionContainerRef.value).height;
|
|
43
|
-
let width = containerWidth;
|
|
44
|
-
let height = containerHeight;
|
|
45
|
-
if (widthRatio.value && heightRatio.value) {
|
|
46
|
-
const scaleWidth = containerWidth / widthRatio.value;
|
|
47
|
-
const scaleHeight = containerHeight / heightRatio.value;
|
|
48
|
-
if (scaleWidth > scaleHeight) {
|
|
49
|
-
width = containerHeight / heightRatio.value * widthRatio.value;
|
|
50
|
-
height = containerHeight;
|
|
51
|
-
}
|
|
52
|
-
if (scaleWidth <= scaleHeight) {
|
|
53
|
-
width = containerWidth;
|
|
54
|
-
height = containerWidth / widthRatio.value * heightRatio.value;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
streamStyle.value.width = `${width}px`;
|
|
58
|
-
streamStyle.value.height = `${height}px`;
|
|
31
|
+
n.value.width = `${i}px`, n.value.height = `${l}px`;
|
|
59
32
|
}
|
|
60
|
-
function
|
|
61
|
-
|
|
33
|
+
function S() {
|
|
34
|
+
I("stream-view-dblclick", { userInfo: e.userInfo, streamType: e.streamType });
|
|
62
35
|
}
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
});
|
|
66
|
-
onMounted(() => {
|
|
67
|
-
ro.observe(streamRegionContainerRef.value);
|
|
68
|
-
});
|
|
69
|
-
onBeforeUnmount(() => {
|
|
70
|
-
ro.unobserve(streamRegionContainerRef.value);
|
|
36
|
+
const u = new ResizeObserver(() => {
|
|
37
|
+
m();
|
|
71
38
|
});
|
|
72
|
-
return (
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
39
|
+
return b(() => {
|
|
40
|
+
u.observe(a.value);
|
|
41
|
+
}), k(() => {
|
|
42
|
+
u.unobserve(a.value);
|
|
43
|
+
}), (t, r) => (d(), C("div", {
|
|
44
|
+
class: "stream-region-container",
|
|
45
|
+
ref_key: "streamRegionContainerRef",
|
|
46
|
+
ref: a
|
|
47
|
+
}, [
|
|
48
|
+
_("div", {
|
|
49
|
+
class: "stream-region",
|
|
50
|
+
onDblclick: S,
|
|
51
|
+
style: P(n.value)
|
|
77
52
|
}, [
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
userInfo: props.userInfo,
|
|
100
|
-
streamType: props.streamType
|
|
101
|
-
}, void 0, true)
|
|
102
|
-
], 36)
|
|
103
|
-
], 512);
|
|
104
|
-
};
|
|
53
|
+
B(x, {
|
|
54
|
+
"user-info": e.userInfo,
|
|
55
|
+
"stream-type": e.streamType,
|
|
56
|
+
"stream-play-mode": e.streamPlayMode,
|
|
57
|
+
"stream-play-quality": e.streamPlayQuality
|
|
58
|
+
}, null, 8, ["user-info", "stream-type", "stream-play-mode", "stream-play-quality"]),
|
|
59
|
+
v(t.$slots, "stream-cover", {
|
|
60
|
+
userInfo: e.userInfo,
|
|
61
|
+
streamType: e.streamType
|
|
62
|
+
}, void 0, !0),
|
|
63
|
+
t.$slots.streamCover ? $("", !0) : (d(), N(z, {
|
|
64
|
+
key: 0,
|
|
65
|
+
userInfo: e.userInfo,
|
|
66
|
+
"stream-type": e.streamType
|
|
67
|
+
}, null, 8, ["userInfo", "stream-type"])),
|
|
68
|
+
v(t.$slots, "streamViewUI", {
|
|
69
|
+
userInfo: e.userInfo,
|
|
70
|
+
streamType: e.streamType
|
|
71
|
+
}, void 0, !0)
|
|
72
|
+
], 36)
|
|
73
|
+
], 512));
|
|
105
74
|
}
|
|
106
|
-
});
|
|
107
|
-
const StreamRegion = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8a52e36a"]]);
|
|
75
|
+
}), Q = /* @__PURE__ */ V(M, [["__scopeId", "data-v-8a52e36a"]]);
|
|
108
76
|
export {
|
|
109
|
-
|
|
77
|
+
Q as default
|
|
110
78
|
};
|