tuikit-atomicx-vue3 4.5.4 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ASRTools/RealtimeMessageList.js +70 -0
- package/dist/components/ASRTools/RealtimeMessageList.vue.d.ts +2 -0
- package/dist/components/ASRTools/Subtitle.js +51 -0
- package/dist/components/ASRTools/Subtitle.vue.d.ts +2 -0
- package/dist/components/ASRTools/index.d.ts +4 -0
- package/dist/components/ASRTools/index.js +6 -0
- package/dist/components/ASRTools/utils.d.ts +1 -0
- package/dist/components/ASRTools/utils.js +8 -0
- package/dist/components/AudioSettingPanel/index.d.ts +29 -0
- package/dist/components/Avatar/index.d.ts +44 -0
- package/dist/components/BarrageInput/BarrageInput.js +1 -1
- package/dist/components/BarrageInput/BarrageInputH5.js +4 -4
- package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +1 -1
- package/dist/components/BarrageInput/TextEditor/EditorCore.js +4 -4
- package/dist/components/BarrageList/BarrageList.js +105 -72
- package/dist/components/BarrageList/BarrageListH5.js +67 -63
- package/dist/components/BarrageList/BarrageListState.d.ts +28 -3
- package/dist/components/BarrageList/BarrageListState.js +64 -54
- package/dist/components/BarrageList/ClickAction/UserActionMenu.js +39 -39
- package/dist/components/BarrageList/Message/GiftMessage/GiftMessage.js +44 -0
- package/dist/components/BarrageList/Message/GiftMessage/GiftMessage.vue.d.ts +16 -0
- package/dist/components/BarrageList/Message/GiftMessage/index.d.ts +1 -0
- package/dist/components/BarrageList/Message/GiftMessage/index.js +4 -0
- package/dist/components/BarrageList/Message/Message.vue.d.ts +1 -1
- package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.js +6 -6
- package/dist/components/BarrageList/Message/TextMessage/TextMessage.js +6 -6
- package/dist/components/BarrageList/MessageTimeDivider/MessageTimeDivider.js +1 -1
- package/dist/components/BarrageList/MessageTimeDivider/MessageTimeDivider.vue.d.ts +1 -1
- package/dist/components/BarrageList/i18n/en-US/index.d.ts +12 -9
- package/dist/components/BarrageList/i18n/en-US/index.js +12 -9
- package/dist/components/BarrageList/i18n/zh-CN/index.d.ts +12 -11
- package/dist/components/BarrageList/i18n/zh-CN/index.js +12 -11
- package/dist/components/ChatSetting/ChatSetting.js +6 -6
- package/dist/components/ChatSetting/GroupChatSetting/GroupInfo/GroupInfo.js +2 -2
- package/dist/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.js +2 -2
- package/dist/components/ContactList/index.d.ts +16 -16
- package/dist/components/ConversationList/ConversationActions/ConversationActions.js +1 -1
- package/dist/components/ConversationList/ConversationCreate/ConversationCreate.js +2 -2
- package/dist/components/ConversationList/ConversationList.vue.d.ts +60 -60
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.js +66 -66
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUnread.js +1 -1
- package/dist/components/ConversationList/ConversationPreview/utils.js +1 -1
- package/dist/components/ConversationList/ConversationSearch/ConversationSearch.vue.d.ts +28 -28
- package/dist/components/ConversationList/index.d.ts +127 -127
- package/dist/components/FreeBeautyPanel/index.d.ts +35 -0
- package/dist/components/LiveAudienceList/LiveAudienceList.js +3 -129
- package/dist/components/LiveAudienceList/LiveAudienceListH5.js +3 -64
- package/dist/components/LiveAudienceList/index.d.ts +2 -1
- package/dist/components/LiveAudienceList/index.js +7 -10
- package/dist/components/LiveGift/GiftItem.js +56 -0
- package/dist/components/LiveGift/GiftItem.vue.d.ts +44 -0
- package/dist/components/LiveGift/LiveGiftH5/GiftCard.js +41 -0
- package/dist/components/LiveGift/LiveGiftH5/GiftCard.vue.d.ts +18 -0
- package/dist/components/LiveGift/LiveGiftH5/GiftCardPlayer.js +35 -0
- package/dist/components/LiveGift/LiveGiftH5/GiftCardPlayer.vue.d.ts +2 -0
- package/dist/components/LiveGift/LiveGiftH5/LiveGift.js +66 -0
- package/dist/components/LiveGift/LiveGiftH5/LiveGift.vue.d.ts +2 -0
- package/dist/components/LiveGift/LiveGiftH5/LiveGiftDrawer.js +77 -0
- package/dist/components/LiveGift/LiveGiftH5/LiveGiftDrawer.vue.d.ts +16 -0
- package/dist/components/LiveGift/LiveGiftH5/index.d.ts +3 -0
- package/dist/components/LiveGift/LiveGiftH5/index.js +4 -0
- package/dist/components/LiveGift/LiveGiftH5/useGiftCardPlayer.d.ts +93 -0
- package/dist/components/LiveGift/LiveGiftH5/useGiftCardPlayer.js +39 -0
- package/dist/components/LiveGift/LiveGiftPC/LiveGift.js +126 -0
- package/dist/components/LiveGift/LiveGiftPC/LiveGift.vue.d.ts +2 -0
- package/dist/components/LiveGift/LiveGiftPC/LiveGiftPopupList.js +46 -0
- package/dist/components/LiveGift/LiveGiftPC/LiveGiftPopupList.vue.d.ts +16 -0
- package/dist/components/LiveGift/LiveGiftPC/index.d.ts +3 -0
- package/dist/components/LiveGift/LiveGiftPC/index.js +4 -0
- package/dist/components/LiveGift/i18n/en-US/index.d.ts +7 -0
- package/dist/components/LiveGift/i18n/en-US/index.js +10 -0
- package/dist/components/LiveGift/i18n/index.d.ts +4 -0
- package/dist/components/LiveGift/i18n/index.js +6 -0
- package/dist/components/LiveGift/i18n/zh-CN/index.d.ts +7 -0
- package/dist/components/LiveGift/i18n/zh-CN/index.js +10 -0
- package/dist/components/LiveGift/index.d.ts +2 -0
- package/dist/components/LiveGift/index.js +12 -0
- package/dist/components/LiveList/LiveList.js +79 -72
- package/dist/components/LiveList/LiveListH5.js +75 -79
- package/dist/components/LiveList/i18n/en-US/index.d.ts +10 -11
- package/dist/components/LiveList/i18n/en-US/index.js +10 -11
- package/dist/components/LiveList/i18n/zh-CN/index.d.ts +10 -11
- package/dist/components/LiveList/i18n/zh-CN/index.js +10 -11
- package/dist/components/LiveList/pullToRefresh.js +44 -44
- package/dist/components/LiveScenePanel/CameraSettingDialog.js +43 -42
- package/dist/components/LiveScenePanel/index.js +10 -9
- package/dist/components/LiveView/CoreViewDecorate/BattleDecorate.js +2 -2
- package/dist/components/LiveView/CoreViewDecorate/BattleUserDecorate.js +8 -8
- package/dist/components/LiveView/CoreViewDecorate/CoHostDecorate.js +19 -19
- package/dist/components/LiveView/DefaultStreamViewUI.js +26 -26
- package/dist/components/LiveView/PlayerControl/AudioControl.js +27 -27
- package/dist/components/LiveView/PlayerControl/PlayerControl.js +82 -82
- package/dist/components/LiveView/PlayerControl/PlayerControlState.js +21 -21
- package/dist/components/LiveView/i18n/en-US/index.d.ts +22 -21
- package/dist/components/LiveView/i18n/en-US/index.js +22 -21
- package/dist/components/LiveView/i18n/zh-CN/index.d.ts +22 -21
- package/dist/components/LiveView/i18n/zh-CN/index.js +22 -21
- package/dist/components/LiveView/index.js +123 -119
- package/dist/components/MessageInput/TextEditor/EditorCore.js +1 -1
- package/dist/components/MessageInput/TextEditor/extensions/MentionSuggestion.js +10 -10
- package/dist/components/MessageInput/TextEditor/extensions/characterCountExtension.js +1 -1
- package/dist/components/MessageInput/TextEditor/extensions/emojiExtension.js +1 -1
- package/dist/components/MessageInput/TextEditor/extensions/enterKeyExtension.js +1 -1
- package/dist/components/MessageInput/TextEditor/extensions/imageExtension.js +2 -2
- package/dist/components/MessageInput/TextEditor/extensions/mentionExtension.js +2 -2
- package/dist/components/MessageInput/TextEditor/index.js +1 -1
- package/dist/components/MessageList/Message/AudioMessage/AudioMessage.js +11 -11
- package/dist/components/MessageList/Message/AudioMessage/AudioMessage.vue.d.ts +1 -1
- package/dist/components/MessageList/Message/FileMessage/FileMessage.js +5 -5
- package/dist/components/MessageList/Message/FileMessage/FileMessage.vue.d.ts +1 -1
- package/dist/components/MessageList/Message/GroupTipMessage/resolveGroupTipMessage.js +1 -1
- package/dist/components/MessageList/Message/ImageMessage/ImageMessage.js +1 -1
- package/dist/components/MessageList/Message/ImageMessage/ImageMessage.vue.d.ts +1 -1
- package/dist/components/MessageList/Message/MessageLayout/MessageBubble/MessageBubble.js +2 -2
- package/dist/components/MessageList/Message/TextMessage/TextMessage.js +8 -8
- package/dist/components/MessageList/Message/TextMessage/TextMessage.vue.d.ts +1 -1
- package/dist/components/MessageList/MessageForward/MessageForward.js +2 -2
- package/dist/components/MessageList/MessageList.js +92 -87
- package/dist/components/MessageList/MessageList.vue.d.ts +5 -0
- package/dist/components/MessageList/ReadReceiptInfo/ReadReceiptInfo.js +2 -2
- package/dist/components/MessageList/index.d.ts +9 -0
- package/dist/components/RoomParticipantList/ParticipantActionH5.js +58 -0
- package/dist/components/RoomParticipantList/ParticipantActionH5.vue.d.ts +21 -0
- package/dist/components/RoomParticipantList/ParticipantItemH5.js +75 -0
- package/dist/components/RoomParticipantList/ParticipantItemH5.vue.d.ts +17 -0
- package/dist/components/RoomParticipantList/PendingParticipantItemH5.js +77 -0
- package/dist/components/RoomParticipantList/PendingParticipantItemH5.vue.d.ts +16 -0
- package/dist/components/RoomParticipantList/Popup.js +95 -0
- package/dist/components/RoomParticipantList/Popup.vue.d.ts +84 -0
- package/dist/components/RoomParticipantList/RoomActionH5.js +82 -0
- package/dist/components/RoomParticipantList/RoomActionH5.vue.d.ts +2 -0
- package/dist/components/RoomParticipantList/RoomParticipantListH5.js +156 -0
- package/dist/components/RoomParticipantList/RoomParticipantListH5.vue.d.ts +2 -0
- package/dist/components/RoomParticipantList/index.d.ts +55 -1
- package/dist/components/RoomParticipantList/index.js +59 -57
- package/dist/components/RoomParticipantView/index.d.ts +41 -0
- package/dist/components/RoomView/index.d.ts +35 -0
- package/dist/components/ScheduleRoomPanel/index.d.ts +74 -0
- package/dist/components/Search/Search.vue.d.ts +8 -8
- package/dist/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.js +1 -1
- package/dist/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.js +1 -1
- package/dist/components/Search/SearchResults/SearchResultsItem/Message/Message.js +1 -1
- package/dist/components/Search/SearchResults/SearchResultsItem/User/User.js +1 -1
- package/dist/components/Search/index.d.ts +20 -20
- package/dist/components/VideoSettingPanel/index.d.ts +28 -0
- package/dist/components/VirtualBackgroundPanel/index.d.ts +35 -0
- package/dist/handler/translator.js +1 -1
- package/dist/handler/voiceConverter.js +1 -1
- package/dist/hooks/useReadReceipt/useReadReceipt.d.ts +1 -1
- package/dist/hooks/useReadReceipt/useReadReceipt.js +1 -1
- package/dist/index-0OOSUihx.js +197 -0
- package/dist/{index-CTthrJb2.js → index-BEX5WhEf.js} +1 -1
- package/dist/{index-hHVD-MG2.js → index-CuUwOoxX.js} +1 -1
- package/dist/{index-DXC5bPY4.js → index-D5A7Nao-.js} +1 -1
- package/dist/{index-DuAffztD.js → index-HtVpxdZh.js} +1048 -1023
- package/dist/index.js +215 -202
- package/dist/states/AITranscriberState/AITranscriberState.d.ts +112 -0
- package/dist/states/AITranscriberState/AITranscriberState.js +170 -0
- package/dist/states/AITranscriberState/index.d.ts +1 -0
- package/dist/states/AITranscriberState/index.js +4 -0
- package/dist/states/BarrageState/BarrageState.d.ts +26 -3
- package/dist/states/C2CSettingState/C2CSettingState.js +1 -1
- package/dist/states/ContactListState/ContactListState.js +1 -1
- package/dist/states/ConversationListState/ConversationListState.d.ts +1 -1
- package/dist/states/ConversationListState/ConversationListState.js +1 -1
- package/dist/states/FreeBeautyState/FreeBeautyState.d.ts +25 -0
- package/dist/states/FreeBeautyState/FreeBeautyState.js +25 -0
- package/dist/states/GroupSettingState/GroupSettingState.js +1 -1
- package/dist/states/LiveAudienceState.js +26 -26
- package/dist/states/LiveGiftState/AnimationPlayerManager.d.ts +73 -0
- package/dist/states/LiveGiftState/AnimationPlayerManager.js +118 -0
- package/dist/states/LiveGiftState/LiveGiftState.d.ts +61 -0
- package/dist/states/LiveGiftState/LiveGiftState.js +102 -0
- package/dist/states/LiveGiftState/index.d.ts +3 -0
- package/dist/states/LiveGiftState/index.js +12 -0
- package/dist/states/LiveGiftState/players/AnimationPlayerFactory.d.ts +18 -0
- package/dist/states/LiveGiftState/players/AnimationPlayerFactory.js +30 -0
- package/dist/states/LiveGiftState/players/IAnimationPlayer.d.ts +34 -0
- package/dist/states/LiveGiftState/players/IAnimationPlayer.js +1 -0
- package/dist/states/LiveGiftState/players/SVGAPlayer.d.ts +66 -0
- package/dist/states/LiveGiftState/players/SVGAPlayer.js +3163 -0
- package/dist/states/LiveGiftState/players/index.d.ts +7 -0
- package/dist/states/LiveGiftState/players/index.js +7 -0
- package/dist/states/LiveListState/LiveListState.js +92 -76
- package/dist/states/LiveMonitorState/index.d.ts +1 -1
- package/dist/states/LiveMonitorState/index.js +110 -92
- package/dist/states/LiveMonitorState/player/adapters/trtc.d.ts +2 -2
- package/dist/states/LiveMonitorState/player/adapters/trtc.js +47 -44
- package/dist/states/LiveMonitorState/player/types/player.d.ts +20 -10
- package/dist/states/LiveMonitorState/player/types/trtc.d.ts +7 -5
- package/dist/states/LiveMonitorState/types/index.d.ts +5 -4
- package/dist/states/LiveMonitorState/utils/index.d.ts +20 -1
- package/dist/states/LiveMonitorState/utils/index.js +10 -3
- package/dist/states/LoginState.d.ts +5 -5
- package/dist/states/LoginState.js +1 -1
- package/dist/states/MessageActionState/MessageActionState.js +1 -1
- package/dist/states/MessageInputState/MessageInputState.js +1 -1
- package/dist/states/MessageListState/MessageListState.js +1 -1
- package/dist/states/RoomParticipantState/index.d.ts +5 -0
- package/dist/states/RoomParticipantState/index.js +285 -0
- package/dist/states/RoomParticipantState/participantEventManager.js +168 -168
- package/dist/states/RoomParticipantState/participantManager.d.ts +0 -148
- package/dist/states/RoomParticipantState/participantManager.js +120 -327
- package/dist/states/RoomParticipantState/store.d.ts +2 -2
- package/dist/states/RoomParticipantState/store.js +94 -70
- package/dist/states/RoomState/index.d.ts +0 -5
- package/dist/states/RoomState/index.js +409 -6
- package/dist/states/SearchState.d.ts +314 -0
- package/dist/states/SearchState.js +1 -1
- package/dist/states/SeatStore.d.ts +8 -0
- package/dist/states/UIKitModalState/UIKitModalState.js +54 -37
- package/dist/states/VirtualBackgroundState/VirtualBackgroundState.d.ts +103 -39
- package/dist/states/VirtualBackgroundState/VirtualBackgroundState.js +104 -1
- package/dist/styles/index.css +1 -1
- package/dist/subEntry/chat/chat.d.ts +170 -161
- package/dist/subEntry/chat/server.js +2 -2
- package/dist/subEntry/live/index.js +181 -173
- package/dist/subEntry/live/live.d.ts +2 -0
- package/dist/subEntry/live/live.js +38 -34
- package/dist/subEntry/live/server.js +2 -2
- package/dist/subEntry/room/index.js +157 -148
- package/dist/subEntry/room/room.d.ts +3 -2
- package/dist/subEntry/room/room.js +20 -15
- package/dist/subEntry/room/server.js +2 -2
- package/dist/types/asr.d.ts +122 -27
- package/dist/types/asr.js +2 -2
- package/dist/types/barrage.d.ts +2 -0
- package/dist/types/contact.d.ts +1 -1
- package/dist/types/conversation.d.ts +1 -1
- package/dist/types/engine.d.ts +2 -2
- package/dist/types/engine.js +1 -1
- package/dist/types/gift.d.ts +25 -0
- package/dist/types/gift.js +4 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +68 -64
- package/dist/types/message.d.ts +1 -1
- package/dist/types/monitor.d.ts +1 -1
- package/dist/types/participant.d.ts +483 -3
- package/dist/types/room.d.ts +542 -0
- package/dist/types/virtualBackground.d.ts +75 -0
- package/dist/utils/call.js +2 -2
- package/dist/utils/enableSampleTaskStatus.js +1 -1
- package/package.json +9 -7
- package/src/components/ASRTools/RealtimeMessageList.vue +180 -0
- package/src/components/ASRTools/Subtitle.vue +134 -0
- package/src/components/ASRTools/index.ts +56 -0
- package/src/components/ASRTools/utils.ts +8 -0
- package/src/components/AudioSettingPanel/index.ts +29 -0
- package/src/components/Avatar/index.ts +52 -0
- package/src/components/BarrageInput/BarrageInput.vue +1 -1
- package/src/components/BarrageInput/BarrageInputH5.vue +6 -2
- package/src/components/BarrageInput/TextEditor/Editor.scss +6 -0
- package/src/components/BarrageInput/TextEditor/TextEditor.vue +1 -1
- package/src/components/BarrageList/BarrageList.vue +59 -5
- package/src/components/BarrageList/BarrageListH5.vue +27 -9
- package/src/components/BarrageList/BarrageListState.ts +14 -1
- package/src/components/BarrageList/ClickAction/UserActionMenu.vue +5 -5
- package/src/components/BarrageList/Message/GiftMessage/GiftMessage.vue +90 -0
- package/src/components/BarrageList/Message/GiftMessage/index.ts +1 -0
- package/src/components/BarrageList/Message/Message.vue +1 -1
- package/src/components/BarrageList/Message/MessageLayout/MessageLayout.vue +1 -1
- package/src/components/BarrageList/Message/TextMessage/TextMessage.vue +2 -2
- package/src/components/BarrageList/MessageTimeDivider/MessageTimeDivider.vue +1 -1
- package/src/components/BarrageList/i18n/en-US/index.ts +12 -9
- package/src/components/BarrageList/i18n/zh-CN/index.ts +12 -11
- package/src/components/ChatSetting/ChatSetting.vue +1 -1
- package/src/components/ChatSetting/GroupChatSetting/GroupInfo/GroupInfo.vue +1 -1
- package/src/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.vue +2 -2
- package/src/components/ConversationList/ConversationActions/ConversationActions.vue +1 -1
- package/src/components/ConversationList/ConversationCreate/ConversationCreate.vue +1 -1
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue +2 -3
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewUnread.vue +1 -1
- package/src/components/ConversationList/ConversationPreview/utils.ts +1 -1
- package/src/components/FreeBeautyPanel/index.ts +36 -0
- package/src/components/LiveAudienceList/LiveAudienceList.vue +9 -3
- package/src/components/LiveAudienceList/LiveAudienceListH5.vue +4 -2
- package/src/components/LiveAudienceList/index.ts +3 -1
- package/src/components/LiveGift/GiftItem.vue +156 -0
- package/src/components/LiveGift/LiveGiftH5/GiftCard.vue +139 -0
- package/src/components/LiveGift/LiveGiftH5/GiftCardPlayer.vue +75 -0
- package/src/components/LiveGift/LiveGiftH5/LiveGift.vue +180 -0
- package/src/components/LiveGift/LiveGiftH5/LiveGiftDrawer.vue +176 -0
- package/src/components/LiveGift/LiveGiftH5/index.ts +3 -0
- package/src/components/LiveGift/LiveGiftH5/useGiftCardPlayer.ts +98 -0
- package/src/components/LiveGift/LiveGiftPC/LiveGift.vue +292 -0
- package/src/components/LiveGift/LiveGiftPC/LiveGiftPopupList.vue +98 -0
- package/src/components/LiveGift/LiveGiftPC/index.ts +3 -0
- package/src/components/LiveGift/i18n/en-US/index.ts +7 -0
- package/src/components/LiveGift/i18n/index.ts +4 -0
- package/src/components/LiveGift/i18n/zh-CN/index.ts +7 -0
- package/src/components/LiveGift/index.ts +12 -0
- package/src/components/LiveList/LiveList.vue +79 -36
- package/src/components/LiveList/LiveListH5.vue +15 -24
- package/src/components/LiveList/i18n/en-US/index.ts +10 -11
- package/src/components/LiveList/i18n/zh-CN/index.ts +10 -11
- package/src/components/LiveList/pullToRefresh.vue +5 -5
- package/src/components/LiveScenePanel/CameraSettingDialog.vue +3 -1
- package/src/components/LiveScenePanel/index.vue +1 -0
- package/src/components/LiveView/CoreViewDecorate/BattleDecorate.vue +1 -1
- package/src/components/LiveView/CoreViewDecorate/BattleUserDecorate.vue +1 -1
- package/src/components/LiveView/CoreViewDecorate/CoHostDecorate.vue +1 -1
- package/src/components/LiveView/DefaultStreamViewUI.vue +2 -2
- package/src/components/LiveView/PlayerControl/AudioControl.vue +5 -7
- package/src/components/LiveView/PlayerControl/PlayerControl.vue +13 -7
- package/src/components/LiveView/PlayerControl/PlayerControlState.ts +2 -2
- package/src/components/LiveView/i18n/en-US/index.ts +22 -21
- package/src/components/LiveView/i18n/zh-CN/index.ts +22 -21
- package/src/components/LiveView/index.vue +50 -25
- package/src/components/MessageInput/TextEditor/extensions/MentionSuggestion.vue +1 -1
- package/src/components/MessageList/Message/AudioMessage/AudioMessage.vue +1 -1
- package/src/components/MessageList/Message/FileMessage/FileMessage.vue +1 -1
- package/src/components/MessageList/Message/GroupTipMessage/resolveGroupTipMessage.ts +1 -1
- package/src/components/MessageList/Message/ImageMessage/ImageMessage.vue +1 -1
- package/src/components/MessageList/Message/MessageLayout/MessageBubble/MessageBubble.vue +1 -1
- package/src/components/MessageList/Message/TextMessage/TextMessage.vue +2 -2
- package/src/components/MessageList/MessageForward/MessageForward.vue +2 -2
- package/src/components/MessageList/MessageList.vue +12 -1
- package/src/components/MessageList/ReadReceiptInfo/ReadReceiptInfo.vue +1 -1
- package/src/components/RoomParticipantList/ParticipantActionH5.vue +115 -0
- package/src/components/RoomParticipantList/ParticipantItemH5.vue +208 -0
- package/src/components/RoomParticipantList/PendingParticipantItemH5.vue +163 -0
- package/src/components/RoomParticipantList/Popup.vue +297 -0
- package/src/components/RoomParticipantList/RoomActionH5.vue +139 -0
- package/src/components/RoomParticipantList/RoomParticipantListH5.vue +288 -0
- package/src/components/RoomParticipantList/index.ts +59 -1
- package/src/components/RoomParticipantView/index.ts +41 -0
- package/src/components/RoomView/index.ts +35 -0
- package/src/components/ScheduleRoomPanel/index.ts +75 -0
- package/src/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.vue +1 -1
- package/src/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.vue +1 -1
- package/src/components/Search/SearchResults/SearchResultsItem/Message/Message.vue +1 -1
- package/src/components/Search/SearchResults/SearchResultsItem/User/User.vue +1 -1
- package/src/components/VideoSettingPanel/index.ts +29 -0
- package/src/components/VirtualBackgroundPanel/index.ts +36 -0
- package/src/handler/translator.ts +2 -2
- package/src/handler/voiceConverter.ts +2 -2
- package/src/hooks/useReadReceipt/useReadReceipt.ts +2 -2
- package/src/subEntry/chat/server.ts +2 -2
- package/src/subEntry/live/live.ts +2 -0
- package/src/subEntry/live/server.ts +2 -2
- package/src/subEntry/room/room.ts +3 -2
- package/src/subEntry/room/server.ts +2 -2
- package/src/types/asr.ts +124 -27
- package/src/types/barrage.ts +2 -0
- package/src/types/contact.ts +1 -1
- package/src/types/conversation.ts +1 -1
- package/src/types/engine.ts +3 -3
- package/src/types/gift.ts +46 -0
- package/src/types/index.ts +2 -0
- package/src/types/message.ts +1 -1
- package/src/types/monitor.ts +5 -5
- package/src/types/participant.ts +486 -5
- package/src/types/room.ts +576 -0
- package/src/types/virtualBackground.ts +77 -1
- package/src/utils/call.ts +2 -2
- package/src/utils/enableSampleTaskStatus.ts +4 -3
- package/dist/states/ASRState/ASRState.d.ts +0 -61
- package/dist/states/ASRState/ASRState.js +0 -79
- package/dist/states/ASRState/index.d.ts +0 -1
- package/dist/states/ASRState/index.js +0 -4
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { defineComponent as M, ref as d, onMounted as k, computed as x, watch as I, nextTick as L, createElementBlock as a, openBlock as l, Fragment as f, renderList as v, createElementVNode as c, toDisplayString as m, unref as _ } from "vue";
|
|
2
|
+
import { formatTimestampToTime as y } from "../../utils/utils.js";
|
|
3
|
+
import { getDisplayName as S } from "./utils.js";
|
|
4
|
+
import { useAITranscriberState as B } from "../../states/AITranscriberState/AITranscriberState.js";
|
|
5
|
+
import { _ as R } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
const A = { class: "title" }, C = { class: "speaker" }, E = { class: "timestamp" }, H = 60 * 1e3, b = /* @__PURE__ */ M({
|
|
7
|
+
__name: "RealtimeMessageList",
|
|
8
|
+
setup(w) {
|
|
9
|
+
const r = d(), i = d(!1), { realtimeMessageList: u } = B(), h = () => {
|
|
10
|
+
if (!r.value)
|
|
11
|
+
return !1;
|
|
12
|
+
const { scrollTop: n, scrollHeight: o, clientHeight: e } = r.value;
|
|
13
|
+
return Math.ceil(n + e) >= o - 50;
|
|
14
|
+
}, p = () => {
|
|
15
|
+
!r.value || i.value || requestAnimationFrame(() => {
|
|
16
|
+
r.value && (r.value.scrollTop = r.value.scrollHeight);
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
k(() => {
|
|
20
|
+
p();
|
|
21
|
+
});
|
|
22
|
+
const g = () => {
|
|
23
|
+
r.value && (i.value = !h());
|
|
24
|
+
}, T = x(() => {
|
|
25
|
+
const n = u.value.filter((t) => {
|
|
26
|
+
var s;
|
|
27
|
+
return (s = t.sourceText) == null ? void 0 : s.trim();
|
|
28
|
+
}).sort((t, s) => t.timestamp - s.timestamp);
|
|
29
|
+
if (n.length === 0)
|
|
30
|
+
return [];
|
|
31
|
+
const o = [];
|
|
32
|
+
let e = null;
|
|
33
|
+
return n.forEach((t) => {
|
|
34
|
+
const s = t.speakerUserId || "unknown";
|
|
35
|
+
!e || s !== e.sender || t.timestamp - e.startMsTs > H ? (e = {
|
|
36
|
+
sender: s,
|
|
37
|
+
startMsTs: t.timestamp,
|
|
38
|
+
messages: [t]
|
|
39
|
+
}, o.push(e)) : e.messages.push(t);
|
|
40
|
+
}), o;
|
|
41
|
+
});
|
|
42
|
+
return I(() => u.value.length, () => {
|
|
43
|
+
L(() => {
|
|
44
|
+
i.value || p();
|
|
45
|
+
});
|
|
46
|
+
}), (n, o) => (l(), a("div", {
|
|
47
|
+
ref_key: "conversationContainerRef",
|
|
48
|
+
ref: r,
|
|
49
|
+
class: "conversation",
|
|
50
|
+
onScroll: g
|
|
51
|
+
}, [
|
|
52
|
+
(l(!0), a(f, null, v(T.value, (e) => (l(), a("div", {
|
|
53
|
+
key: `${e.sender}-${e.startMsTs}`,
|
|
54
|
+
class: "conversation-group"
|
|
55
|
+
}, [
|
|
56
|
+
c("div", A, [
|
|
57
|
+
c("span", C, m(_(S)(e.sender)), 1),
|
|
58
|
+
c("span", E, m(_(y)(e.startMsTs)), 1)
|
|
59
|
+
]),
|
|
60
|
+
(l(!0), a(f, null, v(e.messages, (t, s) => (l(), a("div", {
|
|
61
|
+
key: t.segmentId || s,
|
|
62
|
+
class: "content"
|
|
63
|
+
}, m(t.sourceText), 1))), 128))
|
|
64
|
+
]))), 128))
|
|
65
|
+
], 544));
|
|
66
|
+
}
|
|
67
|
+
}), q = /* @__PURE__ */ R(b, [["__scopeId", "data-v-569c9de5"]]);
|
|
68
|
+
export {
|
|
69
|
+
q as default
|
|
70
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { defineComponent as M, ref as h, onMounted as C, computed as S, onUnmounted as k, createElementBlock as i, createCommentVNode as x, openBlock as a, Fragment as E, renderList as y, createElementVNode as m, toDisplayString as p, unref as N } from "vue";
|
|
2
|
+
import { getDisplayName as R } from "./utils.js";
|
|
3
|
+
import { useAITranscriberState as D } from "../../states/AITranscriberState/AITranscriberState.js";
|
|
4
|
+
import { RealtimeTranscriberEvent as b } from "../../types/asr.js";
|
|
5
|
+
import { _ as j } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
const B = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "asr-subtitle"
|
|
9
|
+
}, O = { class: "subtitle-speaker" }, U = { class: "subtitle-text" }, V = /* @__PURE__ */ M({
|
|
10
|
+
__name: "Subtitle",
|
|
11
|
+
setup(w) {
|
|
12
|
+
const { subscribeEvent: v, unsubscribeEvent: _ } = D(), n = h({}), s = {}, r = {}, f = (e, t) => {
|
|
13
|
+
s[e] && clearTimeout(s[e]), s[e] = setTimeout(t, 3e3);
|
|
14
|
+
}, g = (e) => {
|
|
15
|
+
const { speakerUserId: t } = e, o = n.value[t], T = r[t];
|
|
16
|
+
if (e.isCompleted && T === e.segmentId)
|
|
17
|
+
return;
|
|
18
|
+
if (!e.isCompleted) {
|
|
19
|
+
s[t] && (clearTimeout(s[t]), delete s[t]), delete r[t], n.value[t] = e;
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
const I = !o || o.segmentId !== e.segmentId || !o.isCompleted;
|
|
23
|
+
n.value[t] = e, I && (r[t] = e.segmentId, f(t, () => {
|
|
24
|
+
var u, d;
|
|
25
|
+
(u = n.value[t]) != null && u.isCompleted && ((d = n.value[t]) == null ? void 0 : d.segmentId) === e.segmentId && delete n.value[t], delete s[t], delete r[t];
|
|
26
|
+
}));
|
|
27
|
+
}, c = (e) => {
|
|
28
|
+
g(e.message);
|
|
29
|
+
};
|
|
30
|
+
C(() => {
|
|
31
|
+
v(b.onReceiveTranscriberMessage, c);
|
|
32
|
+
});
|
|
33
|
+
const l = S(() => Object.values(n.value));
|
|
34
|
+
return k(() => {
|
|
35
|
+
_(b.onReceiveTranscriberMessage, c), Object.values(s).forEach((e) => {
|
|
36
|
+
clearTimeout(e);
|
|
37
|
+
});
|
|
38
|
+
}), (e, t) => l.value.length ? (a(), i("div", B, [
|
|
39
|
+
(a(!0), i(E, null, y(l.value, (o) => (a(), i("div", {
|
|
40
|
+
key: o.speakerUserId,
|
|
41
|
+
class: "subtitle-item"
|
|
42
|
+
}, [
|
|
43
|
+
m("span", O, p(N(R)(o.speakerUserId)) + ":", 1),
|
|
44
|
+
m("span", U, p(o.sourceText), 1)
|
|
45
|
+
]))), 128))
|
|
46
|
+
])) : x("", !0);
|
|
47
|
+
}
|
|
48
|
+
}), z = /* @__PURE__ */ j(V, [["__scopeId", "data-v-0c248ab0"]]);
|
|
49
|
+
export {
|
|
50
|
+
z as default
|
|
51
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getDisplayName: (userId: string) => string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { useRoomParticipantState as m } from "../../states/RoomParticipantState/index.js";
|
|
2
|
+
const { participantList: r } = m(), t = (o) => {
|
|
3
|
+
const e = r.value.find((s) => s.userId === o);
|
|
4
|
+
return (e == null ? void 0 : e.nameCard) || (e == null ? void 0 : e.userName) || (e == null ? void 0 : e.userId) || o;
|
|
5
|
+
};
|
|
6
|
+
export {
|
|
7
|
+
t as getDisplayName
|
|
8
|
+
};
|
|
@@ -1,3 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module AudioSettingPanelComponent
|
|
3
|
+
* @description 音频设置面板组件
|
|
4
|
+
*
|
|
5
|
+
* 用于展示音频设置面板,支持自定义视图展示。
|
|
6
|
+
*
|
|
7
|
+
* @props
|
|
8
|
+
* @prop {boolean} micTestVisible - 是否显示麦克风测试按钮,默认 true
|
|
9
|
+
* @prop {boolean} inputVolumeLevelVisible - 是否显示输入音量等级,默认 true
|
|
10
|
+
* @prop {boolean} inputVolumeVisible - 是否支持输入音量设置,默认 true
|
|
11
|
+
* @prop {boolean} speakerTestVisible - 是否支持扬声器测试,默认 true
|
|
12
|
+
* @prop {boolean} outputVolumeVisible - 是否支持输出音量设置,默认 true
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* <template>
|
|
16
|
+
* <AudioSettingPanel />
|
|
17
|
+
* </template>
|
|
18
|
+
*
|
|
19
|
+
* <script setup>
|
|
20
|
+
* import { AudioSettingPanel } from '@tuikit-atomicx-vue3/room';
|
|
21
|
+
* </script>
|
|
22
|
+
*
|
|
23
|
+
* <style scoped>
|
|
24
|
+
* .audio-setting-panel-container {
|
|
25
|
+
* width: 400px;
|
|
26
|
+
* height: 300px;
|
|
27
|
+
* }
|
|
28
|
+
* </style>
|
|
29
|
+
*/
|
|
1
30
|
declare const AudioSettingPanel: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
31
|
micTestVisible: {
|
|
3
32
|
type: BooleanConstructor;
|
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
import { default as Avatar } from './Avatar.vue';
|
|
2
2
|
import { DEFAULT_USER_AVATAR, DEFAULT_GROUP_AVATAR_WORK, DEFAULT_GROUP_AVATAR_PUBLIC, DEFAULT_GROUP_AVATAR_MEETING, DEFAULT_GROUP_AVATAR_AVCHATROOM, DEFAULT_GROUP_AVATAR_COMMON } from './constants/avatar';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* 头像组件
|
|
6
|
+
* @component Avatar
|
|
7
|
+
* @description 头像组件,用于展示用户或群组头像,支持图片、文字、在线状态和未读消息徽章等功能。
|
|
8
|
+
*
|
|
9
|
+
* @props
|
|
10
|
+
* @prop {string} src - 头像图片 URL
|
|
11
|
+
* @prop {'xxl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs' | number} size - 头像尺寸,支持预设尺寸或自定义数值,默认 'md'
|
|
12
|
+
* @prop {'circular' | 'square' | 'rounded'} shape - 头像形状,圆形/方形/圆角,默认 'circular'
|
|
13
|
+
* @prop {string} alt - 图片替代文本,也用于生成文字头像
|
|
14
|
+
* @prop {string} className - 自定义类名
|
|
15
|
+
* @prop {CSSProperties} style - 自定义样式
|
|
16
|
+
* @prop {boolean} isShowOnlineStatus - 是否显示在线状态指示器,默认 false
|
|
17
|
+
* @prop {boolean} isOnline - 用户是否在线
|
|
18
|
+
* @prop {number} unreadCount - 未读消息数量,为 true 时显示小红点,为数字时显示具体数量
|
|
19
|
+
* @prop {number} maxUnreadCount - 最大未读消息数量,超过时显示 max+,默认 99
|
|
20
|
+
* @prop {boolean} isDotUnreadCount - 是否以小红点形式显示未读消息,默认 false
|
|
21
|
+
*
|
|
22
|
+
* @emits
|
|
23
|
+
* @emit {void} click - 点击头像时触发(通过 onClick prop 传入)
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* <template>
|
|
27
|
+
* <Avatar
|
|
28
|
+
* :src="userAvatar"
|
|
29
|
+
* size="lg"
|
|
30
|
+
* shape="circular"
|
|
31
|
+
* :is-show-online-status="true"
|
|
32
|
+
* :is-online="true"
|
|
33
|
+
* :unread-count="5"
|
|
34
|
+
* @click="handleClick"
|
|
35
|
+
* />
|
|
36
|
+
* </template>
|
|
37
|
+
*
|
|
38
|
+
* <script setup>
|
|
39
|
+
* import { Avatar } from 'tuikit-atomicx-vue3';
|
|
40
|
+
*
|
|
41
|
+
* const userAvatar = 'https://example.com/avatar.png';
|
|
42
|
+
*
|
|
43
|
+
* function handleClick() {
|
|
44
|
+
* console.log('Avatar clicked');
|
|
45
|
+
* }
|
|
46
|
+
* </script>
|
|
47
|
+
*/
|
|
4
48
|
export { Avatar, DEFAULT_USER_AVATAR, DEFAULT_GROUP_AVATAR_WORK, DEFAULT_GROUP_AVATAR_PUBLIC, DEFAULT_GROUP_AVATAR_MEETING, DEFAULT_GROUP_AVATAR_AVCHATROOM, DEFAULT_GROUP_AVATAR_COMMON, };
|
|
5
49
|
export type { AvatarSize, AvatarShape, AvatarProps } from './Avatar.vue';
|
|
@@ -64,7 +64,7 @@ const H = { class: "live-message-input" }, F = { class: "input-actions" }, E = /
|
|
|
64
64
|
], 6)
|
|
65
65
|
]));
|
|
66
66
|
}
|
|
67
|
-
}), N = /* @__PURE__ */ C(E, [["__scopeId", "data-v-
|
|
67
|
+
}), N = /* @__PURE__ */ C(E, [["__scopeId", "data-v-5f074ba6"]]);
|
|
68
68
|
export {
|
|
69
69
|
N as default
|
|
70
70
|
};
|
|
@@ -22,11 +22,11 @@ const Z = { class: "live-message-input-h5" }, $ = { class: "input-actions" }, ee
|
|
|
22
22
|
maxLength: { default: 80 }
|
|
23
23
|
},
|
|
24
24
|
emits: ["focus", "blur"],
|
|
25
|
-
setup(x, { emit:
|
|
26
|
-
const c =
|
|
25
|
+
setup(x, { emit: b }) {
|
|
26
|
+
const c = b, { t: o } = z(), e = x, d = i(() => e.placeholder || o("Say something")), { loginUserInfo: w } = q(), { audienceList: B } = O(), C = i(() => ["message-input-container-h5", e.containerClass].join(" ")), h = i(() => {
|
|
27
27
|
const t = B.value.find((p) => {
|
|
28
28
|
var f;
|
|
29
|
-
return p.userId === ((f =
|
|
29
|
+
return p.userId === ((f = w.value) == null ? void 0 : f.userId);
|
|
30
30
|
});
|
|
31
31
|
return e.disabled || (t == null ? void 0 : t.isMessageDisabled);
|
|
32
32
|
}), { inputRawValue: m, setContent: I, sendMessage: T, blurEditor: E, focusEditor: H } = J(), n = r(!1), s = r(!1), l = r(!1), k = () => {
|
|
@@ -95,7 +95,7 @@ const Z = { class: "live-message-input-h5" }, $ = { class: "input-actions" }, ee
|
|
|
95
95
|
})) : u("", !0)
|
|
96
96
|
]));
|
|
97
97
|
}
|
|
98
|
-
}), ce = /* @__PURE__ */ Y(ee, [["__scopeId", "data-v-
|
|
98
|
+
}), ce = /* @__PURE__ */ Y(ee, [["__scopeId", "data-v-b8b202e0"]]);
|
|
99
99
|
export {
|
|
100
100
|
ce as default
|
|
101
101
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { I as u } from "../../../index-
|
|
2
|
-
import { S as g, P as x } from "../../../index-
|
|
3
|
-
import { E as p } from "../../../index-
|
|
1
|
+
import { I as u } from "../../../index-CuUwOoxX.js";
|
|
2
|
+
import { S as g, P as x } from "../../../index-BEX5WhEf.js";
|
|
3
|
+
import { E as p } from "../../../index-D5A7Nao-.js";
|
|
4
4
|
import { isMobile as y } from "../../../utils/environment.js";
|
|
5
5
|
import { CharacterCount as M } from "./CharacterCountExtension.js";
|
|
6
|
-
import { E as T } from "../../../index-
|
|
6
|
+
import { E as T } from "../../../index-HtVpxdZh.js";
|
|
7
7
|
import { MessageContentType as a } from "../../../states/MessageInputState/type.js";
|
|
8
8
|
function b() {
|
|
9
9
|
return u.extend({
|
|
@@ -1,21 +1,26 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useUIKit as
|
|
3
|
-
import { useScroll as
|
|
4
|
-
import { useLoginState as
|
|
5
|
-
import { throttle as
|
|
6
|
-
import { useBarrageListState as
|
|
7
|
-
import
|
|
8
|
-
import { Message as
|
|
9
|
-
import { MessageListContextSymbol as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
1
|
+
import { defineComponent as Q, ref as i, useSlots as W, provide as X, watch as V, nextTick as Z, onMounted as ee, onUnmounted as te, createElementBlock as S, openBlock as u, Fragment as M, createElementVNode as h, createBlock as x, createCommentVNode as T, normalizeStyle as I, renderList as se, unref as n, resolveDynamicComponent as oe, toDisplayString as b } from "vue";
|
|
2
|
+
import { useUIKit as ne } from "@tencentcloud/uikit-base-component-vue3";
|
|
3
|
+
import { useScroll as re } from "../../hooks/useScroll.js";
|
|
4
|
+
import { useLoginState as ae } from "../../states/LoginState.js";
|
|
5
|
+
import { throttle as le } from "../../utils/lodash.js";
|
|
6
|
+
import { useBarrageListState as ie, isGiftMessage as ue } from "./BarrageListState.js";
|
|
7
|
+
import ce from "./ClickAction/UserActionMenu.js";
|
|
8
|
+
import { Message as me } from "./Message/index.js";
|
|
9
|
+
import { MessageListContextSymbol as ve } from "./MessageListContext.js";
|
|
10
|
+
import { LiveGiftEvents as H } from "../../types/gift.js";
|
|
11
|
+
import { BarrageType as de } from "../../types/barrage.js";
|
|
12
|
+
import { useLiveListState as fe } from "../../states/LiveListState/LiveListState.js";
|
|
13
|
+
import { useLiveGiftState as pe } from "../../states/LiveGiftState/LiveGiftState.js";
|
|
14
|
+
import ge from "./Message/GiftMessage/GiftMessage.js";
|
|
15
|
+
import { useBarrageState as ye } from "../../states/BarrageState/BarrageState.js";
|
|
16
|
+
import { _ as Se } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
+
const he = { class: "message-chunk" }, Ie = {
|
|
13
18
|
key: 0,
|
|
14
19
|
class: "empty-message"
|
|
15
|
-
},
|
|
20
|
+
}, _e = {
|
|
16
21
|
key: 0,
|
|
17
22
|
class: "message-group-tip"
|
|
18
|
-
},
|
|
23
|
+
}, Le = { class: "message-group-tip-name" }, Ce = { class: "message-group-tip-action" }, G = 150, ke = /* @__PURE__ */ Q({
|
|
19
24
|
__name: "BarrageList",
|
|
20
25
|
props: {
|
|
21
26
|
Message: { default: void 0 },
|
|
@@ -25,100 +30,128 @@ const ue = { class: "message-chunk" }, ce = {
|
|
|
25
30
|
style: {}
|
|
26
31
|
},
|
|
27
32
|
setup(P) {
|
|
28
|
-
const { t:
|
|
29
|
-
|
|
33
|
+
const { t: C } = ne(), m = P, r = i(null), R = W(), { loginUserInfo: k } = ae(), { currentLive: A } = fe(), c = i(), E = i(!1), N = i({}), $ = i(null), B = i(!1), _ = i(!1), L = i(0), { messageList: v, messageGroupTip: f } = ie(), { appendLocalTip: J } = ye(), { subscribeEvent: K, unsubscribeEvent: Y } = pe(), { scrollToBottom: q } = re(), F = (e) => {
|
|
34
|
+
const t = v.value.at(-1);
|
|
35
|
+
let s = 0;
|
|
36
|
+
t && (s = t.sequence + 1);
|
|
37
|
+
const o = {
|
|
38
|
+
liveId: e.liveId,
|
|
39
|
+
sender: e.sender,
|
|
40
|
+
sequence: s,
|
|
41
|
+
timestampInSecond: Date.now() / 1e3,
|
|
42
|
+
messageType: de.custom,
|
|
43
|
+
textContent: "",
|
|
44
|
+
extensionInfo: null,
|
|
45
|
+
businessId: "gift",
|
|
46
|
+
data: JSON.stringify({
|
|
47
|
+
type: "gift",
|
|
48
|
+
giftInfo: e.giftInfo,
|
|
49
|
+
count: e.giftCount
|
|
50
|
+
})
|
|
51
|
+
};
|
|
52
|
+
J(o);
|
|
53
|
+
}, j = (e) => {
|
|
54
|
+
if (!r.value)
|
|
30
55
|
return {
|
|
31
56
|
position: "fixed",
|
|
32
57
|
top: `${e.bottom + 5}px`,
|
|
33
58
|
left: `${e.left}px`,
|
|
34
59
|
zIndex: 1e3
|
|
35
60
|
};
|
|
36
|
-
const t =
|
|
37
|
-
let
|
|
38
|
-
return
|
|
61
|
+
const t = r.value.getBoundingClientRect(), s = 120, o = 10, l = 5;
|
|
62
|
+
let a = e.bottom + l;
|
|
63
|
+
return a + s > t.bottom - o && (a = e.top - s - l), a < t.top + o && (a = t.top + o), {
|
|
39
64
|
position: "fixed",
|
|
40
|
-
top: `${
|
|
65
|
+
top: `${a}px`,
|
|
41
66
|
left: `${e.left}px`,
|
|
42
67
|
zIndex: 1e3
|
|
43
68
|
};
|
|
44
69
|
};
|
|
45
|
-
|
|
46
|
-
slots:
|
|
70
|
+
X(ve, {
|
|
71
|
+
slots: R,
|
|
47
72
|
nickClick: (e) => {
|
|
48
|
-
var p,
|
|
49
|
-
const { message: t, event: s } = e,
|
|
50
|
-
if (!
|
|
73
|
+
var p, g, y;
|
|
74
|
+
const { message: t, event: s } = e, o = ((p = k.value) == null ? void 0 : p.userId) === ((g = A.value) == null ? void 0 : g.liveOwner.userId), l = ((y = k.value) == null ? void 0 : y.userId) === t.sender.userId;
|
|
75
|
+
if (!o || l)
|
|
51
76
|
return;
|
|
52
|
-
|
|
53
|
-
const
|
|
54
|
-
|
|
77
|
+
c.value = t, $.value = s.currentTarget;
|
|
78
|
+
const a = s.currentTarget.getBoundingClientRect();
|
|
79
|
+
N.value = j(a), E.value = !0;
|
|
55
80
|
}
|
|
56
81
|
});
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
}, 100),
|
|
60
|
-
B.value = !1,
|
|
82
|
+
const O = le(() => {
|
|
83
|
+
r.value && (L.value = r.value.scrollHeight - r.value.scrollTop - r.value.clientHeight, L.value > G && (_.value = !0), L.value < G && (_.value = !1));
|
|
84
|
+
}, 100), U = async () => {
|
|
85
|
+
B.value = !1, _.value = !1;
|
|
61
86
|
};
|
|
62
|
-
return
|
|
87
|
+
return V(() => {
|
|
63
88
|
var e;
|
|
64
89
|
return (e = A.value) == null ? void 0 : e.liveId;
|
|
65
90
|
}, () => {
|
|
66
|
-
|
|
67
|
-
}),
|
|
91
|
+
U();
|
|
92
|
+
}), V(() => {
|
|
68
93
|
var e;
|
|
69
|
-
return (e =
|
|
94
|
+
return (e = v.value) == null ? void 0 : e.length;
|
|
70
95
|
}, (e) => {
|
|
71
|
-
var
|
|
72
|
-
const t =
|
|
73
|
-
s === void 0 && t && !B.value &&
|
|
74
|
-
|
|
75
|
-
}), !(!s || !t || !e) && (t == null ? void 0 : t.sequence) !== (s == null ? void 0 : s.sequence) && (t.sender.userId === ((
|
|
76
|
-
}),
|
|
77
|
-
|
|
78
|
-
}),
|
|
79
|
-
|
|
96
|
+
var o;
|
|
97
|
+
const t = v.value[e - 1], s = v.value[e - 2];
|
|
98
|
+
s === void 0 && t && !B.value && Z(() => {
|
|
99
|
+
q({ behavior: "instant" }), B.value = !0;
|
|
100
|
+
}), !(!s || !t || !e) && (t == null ? void 0 : t.sequence) !== (s == null ? void 0 : s.sequence) && (t.sender.userId === ((o = k.value) == null ? void 0 : o.userId) || !_.value && L.value < G) && q({ behavior: "smooth" });
|
|
101
|
+
}), ee(() => {
|
|
102
|
+
r.value && r.value.addEventListener("scroll", O), U(), K(H.ON_RECEIVE_GIFT_MESSAGE, F);
|
|
103
|
+
}), te(() => {
|
|
104
|
+
r.value && r.value.removeEventListener("scroll", O), Y(H.ON_RECEIVE_GIFT_MESSAGE, F);
|
|
80
105
|
}), (e, t) => {
|
|
81
|
-
var s,
|
|
82
|
-
return
|
|
106
|
+
var s, o, l, a, p, g, y, w, z, D;
|
|
107
|
+
return u(), S(M, null, [
|
|
83
108
|
h("div", {
|
|
84
109
|
class: "message-list",
|
|
85
|
-
style:
|
|
110
|
+
style: I({ height: m.height, ...m.style })
|
|
86
111
|
}, [
|
|
87
112
|
h("div", {
|
|
88
113
|
id: "messageScrollList",
|
|
89
114
|
ref_key: "scrollContainer",
|
|
90
|
-
ref:
|
|
115
|
+
ref: r,
|
|
91
116
|
class: "message-list-container",
|
|
92
|
-
style:
|
|
117
|
+
style: I(m.containerStyle)
|
|
93
118
|
}, [
|
|
94
|
-
h("div",
|
|
95
|
-
(
|
|
96
|
-
key:
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
119
|
+
h("div", he, [
|
|
120
|
+
(u(!0), S(M, null, se(n(v), (d) => (u(), S(M, {
|
|
121
|
+
key: d.sequence + d.timestampInSecond
|
|
122
|
+
}, [
|
|
123
|
+
n(ue)(d) ? (u(), x(n(ge), {
|
|
124
|
+
key: 0,
|
|
125
|
+
style: I(m.itemStyle),
|
|
126
|
+
message: d
|
|
127
|
+
}, null, 8, ["style", "message"])) : (u(), x(oe(m.Message || n(me)), {
|
|
128
|
+
key: 1,
|
|
129
|
+
style: I(m.itemStyle),
|
|
130
|
+
message: d,
|
|
131
|
+
"is-last-in-chunk": !0
|
|
132
|
+
}, null, 8, ["style", "message"]))
|
|
133
|
+
], 64))), 128))
|
|
101
134
|
]),
|
|
102
|
-
(s =
|
|
135
|
+
(s = n(v)) != null && s.length ? T("", !0) : (u(), S("div", Ie, b(n(C)("BarrageList.NoMessageYet")), 1))
|
|
103
136
|
], 4),
|
|
104
|
-
|
|
105
|
-
h("div",
|
|
106
|
-
h("div",
|
|
107
|
-
])) :
|
|
137
|
+
n(f) ? (u(), S("div", _e, [
|
|
138
|
+
h("div", Le, b(((o = n(f)) == null ? void 0 : o.nameCard) || ((l = n(f)) == null ? void 0 : l.userName) || ((a = n(f)) == null ? void 0 : a.userId)), 1),
|
|
139
|
+
h("div", Ce, b(((p = n(f)) == null ? void 0 : p.displayAction) === "enter" ? n(C)("BarrageList.ComeIn") : n(C)("BarrageList.Leave")), 1)
|
|
140
|
+
])) : T("", !0)
|
|
108
141
|
], 4),
|
|
109
|
-
|
|
142
|
+
E.value && c.value ? (u(), x(ce, {
|
|
110
143
|
key: 0,
|
|
111
|
-
"user-id": (
|
|
112
|
-
"user-name": ((
|
|
113
|
-
"avatar-url": (D =
|
|
114
|
-
style:
|
|
115
|
-
"click-target":
|
|
116
|
-
onClose: t[0] || (t[0] = (
|
|
117
|
-
}, null, 8, ["user-id", "user-name", "avatar-url", "style", "click-target"])) :
|
|
144
|
+
"user-id": (g = c.value) == null ? void 0 : g.sender.userId,
|
|
145
|
+
"user-name": ((y = c.value) == null ? void 0 : y.sender.nameCard) || ((w = c.value) == null ? void 0 : w.sender.userName) || ((z = c.value) == null ? void 0 : z.sender.userId),
|
|
146
|
+
"avatar-url": (D = c.value) == null ? void 0 : D.sender.avatarUrl,
|
|
147
|
+
style: I(N.value),
|
|
148
|
+
"click-target": $.value,
|
|
149
|
+
onClose: t[0] || (t[0] = (d) => E.value = !1)
|
|
150
|
+
}, null, 8, ["user-id", "user-name", "avatar-url", "style", "click-target"])) : T("", !0)
|
|
118
151
|
], 64);
|
|
119
152
|
};
|
|
120
153
|
}
|
|
121
|
-
}),
|
|
154
|
+
}), De = /* @__PURE__ */ Se(ke, [["__scopeId", "data-v-83cd0827"]]);
|
|
122
155
|
export {
|
|
123
|
-
|
|
156
|
+
De as default
|
|
124
157
|
};
|