tuikit-atomicx-vue3 3.4.2 → 3.5.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.cjs +1 -0
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-D1G-LitO.js → MessageInput.vue_vue_type_script_setup_true_lang-jPzZ5INK.js} +38 -36
- package/dist/baseComp/Modal/Modal.js +431 -23
- package/dist/chat/index.d.ts +68 -53
- package/dist/chat/server.js +15 -15
- package/dist/components/AudioSetting/AudioMediaControl.js +39 -41
- package/dist/components/AudioSetting/AudioSettingTab.js +10 -10
- package/dist/components/AudioSetting/MicrophoneSelect.js +8 -8
- package/dist/components/AudioSetting/SpeakerSelect.js +9 -9
- package/dist/components/AudioSettingPanel/i18n/en-US/index.d.ts +1 -0
- package/dist/components/AudioSettingPanel/i18n/en-US/index.js +2 -1
- package/dist/components/AudioSettingPanel/i18n/zh-CN/index.d.ts +1 -0
- package/dist/components/AudioSettingPanel/i18n/zh-CN/index.js +2 -1
- package/dist/components/AudioSettingPanel/index.js +81 -73
- package/dist/components/BarrageInput/BarrageInputH5.js +9 -9
- package/dist/components/BarrageInput/EmojiPicker/EmojiPicker.js +3 -3
- package/dist/components/BarrageInput/MessageInputState.d.ts +28 -0
- package/dist/components/BarrageInput/MessageInputState.js +82 -0
- package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +1 -1
- package/dist/components/BarrageInput/TextEditor/EditorCore.js +5 -4
- package/dist/components/BarrageInput/TextEditor/index.js +7 -7
- package/dist/components/BarrageInput/type.d.ts +17 -0
- package/dist/components/BarrageInput/type.js +4 -0
- package/dist/components/BarrageInput/utils.d.ts +30 -0
- package/dist/components/BarrageInput/utils.js +41 -0
- package/dist/components/BarrageList/BarrageList.js +80 -110
- package/dist/components/BarrageList/BarrageList.vue.d.ts +0 -29
- package/dist/components/BarrageList/BarrageListH5.js +95 -122
- package/dist/components/BarrageList/BarrageListH5.vue.d.ts +0 -29
- package/dist/components/BarrageList/BarrageListState.d.ts +58 -0
- package/dist/components/BarrageList/BarrageListState.js +106 -0
- package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.js +16 -24
- package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.vue.d.ts +5 -5
- package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.js +48 -73
- package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.vue.d.ts +5 -7
- package/dist/components/BarrageList/Message/TextMessage/TextMessage.js +70 -76
- package/dist/components/BarrageList/Message/TextMessage/TextMessage.vue.d.ts +6 -6
- package/dist/components/BarrageList/Message/TextMessage/emoji.d.ts +5 -0
- package/dist/components/BarrageList/Message/TextMessage/emoji.js +134 -0
- package/dist/components/BarrageList/index.d.ts +0 -36
- package/dist/components/CameraButton/index.js +18 -19
- package/dist/components/ChatSetting/GroupChatSetting/GroupChatSetting.js +2 -1
- package/dist/components/CoGuestPanel/CoGuestPanel.js +60 -60
- package/dist/components/CoHostPanel/BattlePanel.js +11 -11
- package/dist/components/CoHostPanel/CoHostPanel.js +10 -10
- package/dist/components/CoHostPanel/ConfigSettingPanel.js +49 -55
- package/dist/components/CoHostPanel/ConnectionPanel.js +132 -123
- package/dist/components/CoHostPanel/RecommendHostList.js +39 -36
- package/dist/components/CoHostPanel/constants.d.ts +3 -0
- package/dist/components/CoHostPanel/constants.js +6 -0
- package/dist/components/CoHostPanel/i18n/en-US/index.d.ts +1 -0
- package/dist/components/CoHostPanel/i18n/en-US/index.js +2 -1
- package/dist/components/CoHostPanel/i18n/zh-CN/index.d.ts +1 -0
- package/dist/components/CoHostPanel/i18n/zh-CN/index.js +3 -2
- package/dist/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.js +6 -6
- package/dist/components/ContactList/ContactInfo/ContactInfo.js +1 -1
- package/dist/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.js +1 -1
- package/dist/components/ContactList/ContactInfo/FriendInfo/FriendInfo.js +9 -9
- package/dist/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.js +1 -1
- package/dist/components/ContactList/ContactInfo/GroupInfo/GroupInfo.js +4 -4
- package/dist/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.js +8 -8
- package/dist/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.js +7 -7
- package/dist/components/ContactList/ContactList.js +7 -7
- package/dist/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.js +8 -8
- package/dist/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.js +5 -5
- package/dist/components/ContactList/ContactListItem/FriendItem/FriendItem.js +5 -5
- package/dist/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.js +1 -1
- package/dist/components/ContactList/ContactListItem/GroupItem/GroupItem.js +1 -1
- package/dist/components/ContactList/ContactSearch/ContactSearch.js +6 -6
- package/dist/components/ConversationList/ConversationActions/ConversationActions.js +49 -51
- package/dist/components/ConversationList/ConversationCreate/ConversationCreate.js +9 -9
- package/dist/components/ConversationList/ConversationList.js +4 -4
- package/dist/components/ConversationList/ConversationList.vue.d.ts +10 -10
- package/dist/components/ConversationList/ConversationPreview/ConversationPreview.vue.d.ts +10 -10
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.js +31 -29
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.js +20 -20
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue.d.ts +2 -2
- package/dist/components/ConversationList/ConversationPreview/index.js +1 -1
- package/dist/components/ConversationList/index.d.ts +30 -30
- package/dist/components/LiveAudienceList/LiveAudienceList.js +44 -45
- package/dist/components/LiveAudienceList/LiveAudienceListH5.js +7 -7
- package/dist/components/LiveAudienceList/UserActionMenu.js +57 -64
- package/dist/components/LiveList/LiveList.js +23 -23
- package/dist/components/LiveList/LiveListH5.js +38 -38
- package/dist/components/LiveScenePanel/CameraSettingDialog.js +10 -10
- package/dist/components/LiveScenePanel/MaterialItem.js +15 -15
- package/dist/components/LiveScenePanel/index.js +4 -4
- package/dist/components/LiveView/CoreViewDecorate/BattleDecorate.js +58 -58
- package/dist/components/LiveView/CoreViewDecorate/BattleUserDecorate.js +6 -6
- package/dist/components/LiveView/CoreViewDecorate/CoHostDecorate.js +5 -5
- package/dist/components/LiveView/DefaultStreamViewUI.js +44 -41
- package/dist/components/LiveView/PlayerControl/AudioControl.js +97 -93
- package/dist/components/LiveView/PlayerControl/AudioControl.vue.d.ts +10 -6
- package/dist/components/LiveView/PlayerControl/MultiResolution.js +57 -62
- package/dist/components/LiveView/PlayerControl/PlayerControl.js +79 -79
- package/dist/components/LiveView/PlayerControl/PlayerControlState.d.ts +2 -2
- package/dist/components/LiveView/PlayerControl/PlayerControlState.js +164 -209
- package/dist/components/LiveView/PlayerControl/utils/domHelpers.d.ts +8 -1
- package/dist/components/LiveView/PlayerControl/utils/domHelpers.js +57 -24
- package/dist/components/LiveView/i18n/en-US/index.d.ts +2 -2
- package/dist/components/LiveView/i18n/en-US/index.js +2 -2
- package/dist/components/LiveView/i18n/zh-CN/index.d.ts +2 -2
- package/dist/components/LiveView/i18n/zh-CN/index.js +2 -2
- package/dist/components/LiveView/index.js +17 -17
- package/dist/components/MessageInput/AudioCallPicker/AudioCallPicker.js +63 -65
- package/dist/components/MessageInput/EmojiPicker/EmojiPicker.js +88 -84
- package/dist/components/MessageInput/MessageInput.js +1 -1
- package/dist/components/MessageInput/MessageInput.vue.d.ts +5 -2
- package/dist/components/MessageInput/TextEditor/EditorCore.d.ts +3 -1
- package/dist/components/MessageInput/TextEditor/EditorCore.js +51 -63
- package/dist/components/MessageInput/TextEditor/TextEditor.vue.d.ts +6 -2
- package/dist/components/MessageInput/TextEditor/extensions/characterCountExtension.d.ts +19 -0
- package/dist/components/MessageInput/TextEditor/extensions/characterCountExtension.js +74 -0
- package/dist/components/MessageInput/TextEditor/extensions/imageExtension.d.ts +2 -0
- package/dist/components/MessageInput/TextEditor/extensions/imageExtension.js +62 -0
- package/dist/components/MessageInput/TextEditor/index.js +45 -35
- package/dist/components/MessageInput/VideoCallPicker/VideoCallPicker.js +67 -69
- package/dist/components/MessageInput/i18n/index.d.ts +4 -0
- package/dist/components/MessageInput/i18n/zh-CN.d.ts +4 -0
- package/dist/components/MessageInput/i18n/zh-CN.js +5 -1
- package/dist/components/MessageInput/index.d.ts +36 -6
- package/dist/components/MessageInput/index.js +1 -1
- package/dist/components/MessageList/Message/AudioMessage/WaveForm.js +24 -34
- package/dist/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.js +29 -28
- package/dist/components/MessageList/Message/GroupTipMessage/index.js +13 -13
- package/dist/components/MessageList/Message/Message.vue.d.ts +1 -1
- package/dist/components/MessageList/Message/MessageLayout/MessageLayout.js +63 -69
- package/dist/components/MessageList/Message/VideoMessage/VideoMessage.js +48 -53
- package/dist/components/MessageList/Message/VideoMessage/VideoMessage.vue.d.ts +8 -8
- package/dist/components/MessageList/MessageList.js +8 -6
- package/dist/components/MessageList/MessageList.vue.d.ts +2 -2
- package/dist/components/MessageList/i18n/en-US.d.ts +65 -1
- package/dist/components/MessageList/i18n/en-US.js +66 -2
- package/dist/components/MessageList/i18n/index.d.ts +128 -0
- package/dist/components/MessageList/i18n/index.js +6 -6
- package/dist/components/MessageList/i18n/zh-CN.d.ts +65 -1
- package/dist/components/MessageList/i18n/zh-CN.js +64 -0
- package/dist/components/MessageList/index.d.ts +20 -20
- package/dist/components/MicButton/index.js +11 -11
- package/dist/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.js +172 -174
- package/dist/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.js +58 -60
- package/dist/components/Search/SearchAdvanced/SearchAdvanced.js +28 -30
- package/dist/components/Search/SearchAdvanced/SearchTab/SearchTab.js +22 -24
- package/dist/components/Search/SearchAdvanced/Slider/Slider.js +26 -28
- package/dist/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.js +133 -135
- package/dist/components/Search/SearchBar/SearchBar.js +56 -58
- package/dist/components/StreamMixer/LocalMixer/MixerControl.js +12 -12
- package/dist/components/StreamMixer/LocalMixer/index.js +66 -63
- package/dist/components/StreamView/Layout/CustomLayout.js +8 -8
- package/dist/components/StreamView/Layout/FloatLayout.js +124 -127
- package/dist/components/StreamView/Layout/GridLayout.js +5 -5
- package/dist/components/StreamView/index.js +25 -33
- package/dist/components/StreamView/manager/mediaManager.js +54 -60
- package/dist/components/UIKitModal/UIKitModal.d.ts +7 -0
- package/dist/components/UIKitModal/UIKitModal.js +156 -0
- package/dist/components/UIKitModal/index.d.ts +1 -0
- package/dist/components/UIKitModal/index.js +4 -0
- package/dist/components/{BarrageList/Message/RecalledMessage/RecalledMessage.vue.d.ts → UIKitModal/index.vue.d.ts} +24 -14
- package/dist/components/UIKitModal/type.d.ts +21 -0
- package/dist/components/UIKitModal/type.js +1 -0
- package/dist/components/UserPicker/UserPicker.js +1 -2
- package/dist/components/UserPicker/components/SelectedPanel/SelectedPanel.js +19 -18
- package/dist/components/UserPicker/hooks/useSearchFilter.d.ts +2 -2
- package/dist/components/UserPicker/hooks/useSearchFilter.js +39 -31
- package/dist/components/UserPicker/i18n/en-US.d.ts +1 -0
- package/dist/components/UserPicker/i18n/en-US.js +2 -1
- package/dist/components/UserPicker/i18n/index.d.ts +2 -0
- package/dist/components/UserPicker/i18n/zh-CN.d.ts +1 -0
- package/dist/components/UserPicker/i18n/zh-CN.js +2 -1
- package/dist/components/UserPicker/index.d.ts +2 -2
- package/dist/components/UserPicker/type.d.ts +1 -1
- package/dist/components/VideoSetting/CameraSelect.js +8 -8
- package/dist/components/VideoSetting/VideoMediaControl.js +10 -10
- package/dist/components/VideoSetting/VideoPreview.js +9 -9
- package/dist/components/VideoSetting/VideoProfile.js +6 -6
- package/dist/components/VideoSetting/VideoSettingTab.js +40 -39
- package/dist/components/VideoSettingPanel/CameraSelect.js +8 -8
- package/dist/components/VideoSettingPanel/VideoPreview.js +1 -1
- package/dist/components/VideoSettingPanel/VideoProfile.js +18 -18
- package/dist/hooks/useAudioControl.d.ts +3 -3
- package/dist/hooks/useAudioControl.js +32 -30
- package/dist/hooks/useRoomEngine.js +6 -6
- package/dist/index-B_-9wgM4.js +64 -0
- package/dist/{index-Bm-QfV5o.js → index-DMfTuy0v.js} +574 -631
- package/dist/{index-D2OVtqc8.js → index-DV6o6s43.js} +946 -915
- package/dist/index.d.ts +3 -1
- package/dist/index.js +164 -142
- package/dist/report/MetricsKey.d.ts +16 -0
- package/dist/report/MetricsKey.js +4 -0
- package/dist/report/dataReport.d.ts +12 -0
- package/dist/report/dataReport.js +45 -0
- package/dist/report/index.d.ts +4 -0
- package/dist/report/index.js +6 -0
- package/dist/rtc/index.d.ts +5 -43
- package/dist/rtc/index.js +48 -48
- package/dist/rtc/server.js +45 -40
- package/dist/states/BarrageState/BarrageState.d.ts +74 -0
- package/dist/states/BarrageState/BarrageState.js +80 -0
- package/dist/states/BarrageState/index.d.ts +1 -0
- package/dist/states/BarrageState/index.js +5 -0
- package/dist/states/{BattleState.d.ts → BattleState/BattleState.d.ts} +10 -11
- package/dist/states/BattleState/BattleState.js +203 -0
- package/dist/states/BattleState/index.d.ts +1 -0
- package/dist/states/BattleState/index.js +4 -0
- package/dist/states/CoGuestState.d.ts +24 -94
- package/dist/states/CoGuestState.js +297 -189
- package/dist/states/CoHostState/CoHostState.d.ts +2 -2
- package/dist/states/CoHostState/CoHostState.js +135 -131
- package/dist/states/{DeviceState.d.ts → DeviceState/DeviceState.d.ts} +25 -13
- package/dist/states/DeviceState/DeviceState.js +314 -0
- package/dist/states/DeviceState/index.d.ts +1 -0
- package/dist/states/DeviceState/index.js +4 -0
- package/dist/states/LiveAudienceState.d.ts +3 -1
- package/dist/states/LiveAudienceState.js +106 -63
- package/dist/states/{LiveState/index.d.ts → LiveListState/LiveListState.d.ts} +13 -8
- package/dist/states/LiveListState/LiveListState.js +285 -0
- package/dist/states/LiveListState/index.d.ts +1 -0
- package/dist/states/LiveListState/index.js +4 -0
- package/dist/states/LiveMonitorState/api/http.js +147 -129
- package/dist/states/LiveMonitorState/index.js +67 -62
- package/dist/states/LiveMonitorState/player/adapters/trtc.js +6 -6
- package/dist/states/LiveSeatState/index.d.ts +46 -11
- package/dist/states/LiveSeatState/index.js +34 -15
- package/dist/states/LiveSeatState/seatEventManager.d.ts +2 -0
- package/dist/states/LiveSeatState/seatEventManager.js +63 -42
- package/dist/states/LiveSeatState/seatManager.d.ts +34 -5
- package/dist/states/LiveSeatState/seatManager.js +131 -29
- package/dist/states/LiveSeatState/store.d.ts +5 -5
- package/dist/states/LiveSeatState/store.js +12 -10
- package/dist/states/LiveSeatState/usePlayStream/RTCStreamManager.js +1 -1
- package/dist/states/LiveSeatState/usePlayStream/RTCStreamPlayer.js +1 -1
- package/dist/states/LiveSeatState/usePlayStream/index.js +30 -28
- package/dist/states/LoginState.d.ts +23 -0
- package/dist/states/MessageInputState/MessageInputState.d.ts +41 -7
- package/dist/states/MessageInputState/MessageInputState.js +60 -59
- package/dist/states/MessageInputState/utils.d.ts +8 -1
- package/dist/states/MessageInputState/utils.js +30 -10
- package/dist/states/SeatStore.js +82 -83
- package/dist/states/UIKitModalState/UIKitModalState.d.ts +17 -0
- package/dist/states/UIKitModalState/UIKitModalState.js +63 -0
- package/dist/states/UIKitModalState/index.d.ts +1 -0
- package/dist/states/UIKitModalState/index.js +4 -0
- package/dist/states/{VideoMixerState.d.ts → VideoMixerState/VideoMixerState.d.ts} +1 -1
- package/dist/states/VideoMixerState/VideoMixerState.js +269 -0
- package/dist/states/VideoMixerState/index.d.ts +1 -0
- package/dist/states/VideoMixerState/index.js +4 -0
- package/dist/styles/index.css +1 -1
- package/dist/types/audience.d.ts +21 -0
- package/dist/types/audience.js +4 -1
- package/dist/types/battle.d.ts +75 -3
- package/dist/types/battle.js +5 -1
- package/dist/types/coGuest.d.ts +72 -5
- package/dist/types/coGuest.js +4 -2
- package/dist/types/device.d.ts +38 -17
- package/dist/types/device.js +10 -8
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +96 -80
- package/dist/types/live.d.ts +36 -21
- package/dist/types/live.js +6 -4
- package/dist/types/seat.d.ts +23 -4
- package/dist/types/seat.js +7 -1
- package/dist/utils/call.d.ts +1 -1
- package/dist/utils/call.js +78 -79
- package/dist/utils/eventCenter.d.ts +88 -0
- package/dist/utils/eventCenter.js +161 -0
- package/package.json +4 -3
- package/src/chat/server.ts +0 -1
- package/src/components/AudioSetting/AudioMediaControl.vue +1 -3
- package/src/components/AudioSetting/AudioSettingTab.vue +1 -2
- package/src/components/AudioSetting/MicrophoneSelect.vue +1 -2
- package/src/components/AudioSetting/SpeakerSelect.vue +1 -2
- package/src/components/AudioSettingPanel/i18n/en-US/index.ts +1 -0
- package/src/components/AudioSettingPanel/i18n/zh-CN/index.ts +1 -0
- package/src/components/AudioSettingPanel/index.vue +4 -2
- package/src/components/BarrageInput/BarrageInputH5.vue +1 -1
- package/src/components/BarrageInput/EmojiPicker/EmojiPicker.vue +1 -1
- package/src/components/BarrageInput/MessageInputState.ts +160 -0
- package/src/components/BarrageInput/TextEditor/TextEditor.vue +1 -1
- package/src/components/BarrageInput/type.ts +26 -0
- package/src/components/BarrageInput/utils.ts +45 -0
- package/src/components/BarrageList/BarrageList.vue +61 -117
- package/src/components/BarrageList/BarrageListH5.vue +75 -159
- package/src/components/BarrageList/BarrageListState.ts +223 -0
- package/src/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.vue +8 -55
- package/src/components/BarrageList/Message/MessageLayout/MessageLayout.vue +19 -44
- package/src/components/BarrageList/Message/TextMessage/TextMessage.vue +69 -96
- package/src/components/BarrageList/Message/TextMessage/emoji.ts +132 -0
- package/src/components/CameraButton/index.vue +0 -1
- package/src/components/ChatSetting/GroupChatSetting/GroupChatSetting.vue +5 -0
- package/src/components/CoGuestPanel/CoGuestPanel.vue +16 -91
- package/src/components/CoHostPanel/BattlePanel.vue +1 -4
- package/src/components/CoHostPanel/ConfigSettingPanel.vue +2 -8
- package/src/components/CoHostPanel/ConnectionPanel.vue +37 -33
- package/src/components/CoHostPanel/RecommendHostList.vue +12 -13
- package/src/components/CoHostPanel/constants.ts +3 -0
- package/src/components/CoHostPanel/i18n/en-US/index.ts +1 -0
- package/src/components/CoHostPanel/i18n/zh-CN/index.ts +2 -1
- package/src/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.vue +1 -1
- package/src/components/ContactList/ContactInfo/ContactInfo.vue +1 -1
- package/src/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.vue +1 -1
- package/src/components/ContactList/ContactInfo/FriendInfo/FriendInfo.vue +1 -1
- package/src/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.vue +1 -1
- package/src/components/ContactList/ContactInfo/GroupInfo/GroupInfo.vue +1 -1
- package/src/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.vue +1 -1
- package/src/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.vue +1 -1
- package/src/components/ContactList/ContactList.vue +1 -1
- package/src/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.vue +1 -1
- package/src/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.vue +1 -1
- package/src/components/ContactList/ContactListItem/FriendItem/FriendItem.vue +1 -1
- package/src/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.vue +1 -1
- package/src/components/ContactList/ContactListItem/GroupItem/GroupItem.vue +1 -1
- package/src/components/ContactList/ContactSearch/ContactSearch.vue +1 -1
- package/src/components/ConversationList/ConversationActions/ConversationActions.vue +2 -8
- package/src/components/ConversationList/ConversationCreate/ConversationCreate.vue +2 -2
- package/src/components/ConversationList/ConversationCreate/ConversationCreateButton/ConversationCreateButton.vue +1 -1
- package/src/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.vue +1 -1
- package/src/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.vue +1 -1
- package/src/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.vue +1 -1
- package/src/components/ConversationList/ConversationList.vue +2 -2
- package/src/components/ConversationList/ConversationListContent/ConversationListContent.vue +1 -1
- package/src/components/ConversationList/ConversationListHeader/ConversationListHeader.vue +1 -1
- package/src/components/ConversationList/ConversationPlaceHolder/ConversationPlaceHolder.vue +1 -1
- package/src/components/ConversationList/ConversationPreview/ConversationPreview.vue +1 -1
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.vue +1 -1
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.vue +4 -4
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue +1 -1
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue +3 -3
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewUnread.vue +1 -1
- package/src/components/ConversationList/ConversationSearch/ConversationSearch.vue +1 -1
- package/src/components/LiveAudienceList/LiveAudienceList.vue +4 -5
- package/src/components/LiveAudienceList/LiveAudienceListH5.vue +2 -2
- package/src/components/LiveAudienceList/UserActionMenu.vue +7 -48
- package/src/components/LiveList/LiveList.vue +5 -5
- package/src/components/LiveList/LiveListH5.vue +6 -6
- package/src/components/LiveScenePanel/index.vue +2 -2
- package/src/components/LiveView/CoreViewDecorate/BattleDecorate.vue +10 -15
- package/src/components/LiveView/CoreViewDecorate/BattleUserDecorate.vue +2 -2
- package/src/components/LiveView/DefaultStreamViewUI.vue +5 -3
- package/src/components/LiveView/PlayerControl/AudioControl.vue +72 -80
- package/src/components/LiveView/PlayerControl/MultiResolution.vue +30 -21
- package/src/components/LiveView/PlayerControl/PlayerControl.vue +26 -42
- package/src/components/LiveView/PlayerControl/PlayerControlState.ts +253 -455
- package/src/components/LiveView/PlayerControl/utils/domHelpers.ts +68 -4
- package/src/components/LiveView/i18n/en-US/index.ts +2 -2
- package/src/components/LiveView/i18n/zh-CN/index.ts +2 -2
- package/src/components/LiveView/index.vue +3 -2
- package/src/components/MessageInput/AudioCallPicker/AudioCallPicker.vue +8 -6
- package/src/components/MessageInput/EmojiPicker/EmojiPicker.vue +7 -3
- package/src/components/MessageInput/MessageInput.module.scss +1 -0
- package/src/components/MessageInput/MessageInput.vue +3 -1
- package/src/components/MessageInput/TextEditor/EditorCore.ts +17 -28
- package/src/components/MessageInput/TextEditor/TextEditor.vue +24 -4
- package/src/components/MessageInput/TextEditor/extensions/characterCountExtension.ts +159 -0
- package/src/components/MessageInput/TextEditor/extensions/imageExtension.ts +79 -0
- package/src/components/MessageInput/VideoCallPicker/VideoCallPicker.vue +8 -6
- package/src/components/MessageInput/i18n/zh-CN.ts +4 -0
- package/src/components/MessageInput/types.d.ts +1 -0
- package/src/components/MessageList/Message/AudioMessage/WaveForm.vue +20 -37
- package/src/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.vue +5 -3
- package/src/components/MessageList/Message/GroupTipMessage/GroupTipMessage.vue +5 -4
- package/src/components/MessageList/Message/Message.vue +1 -1
- package/src/components/MessageList/Message/MessageLayout/MessageLayout.vue +8 -8
- package/src/components/MessageList/Message/VideoMessage/VideoMessage.vue +46 -43
- package/src/components/MessageList/Message/VideoMessage/index.ts +1 -1
- package/src/components/MessageList/MessageList.vue +2 -0
- package/src/components/MessageList/i18n/en-US.ts +66 -0
- package/src/components/MessageList/i18n/index.ts +4 -4
- package/src/components/MessageList/i18n/zh-CN.ts +66 -0
- package/src/components/MicButton/index.vue +3 -3
- package/src/components/Search/Search.vue +1 -1
- package/src/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.scss +1 -4
- package/src/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.vue +1 -1
- package/src/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.scss +1 -4
- package/src/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.vue +1 -1
- package/src/components/Search/SearchAdvanced/SearchAdvanced.scss +1 -4
- package/src/components/Search/SearchAdvanced/SearchAdvanced.vue +1 -1
- package/src/components/Search/SearchAdvanced/SearchTab/SearchTab.scss +1 -4
- package/src/components/Search/SearchAdvanced/SearchTab/SearchTab.vue +1 -1
- package/src/components/Search/SearchAdvanced/Slider/Slider.scss +1 -4
- package/src/components/Search/SearchAdvanced/Slider/Slider.vue +1 -1
- package/src/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.scss +1 -4
- package/src/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.vue +1 -1
- package/src/components/Search/SearchBar/SearchBar.scss +3 -6
- package/src/components/Search/SearchBar/SearchBar.vue +1 -1
- package/src/components/Search/SearchResults/EmptyResult/EmptyResult.vue +1 -1
- package/src/components/Search/SearchResults/Loading/Loading.vue +1 -1
- package/src/components/Search/SearchResults/SearchResults.vue +1 -1
- package/src/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.vue +1 -1
- package/src/components/Search/SearchResults/SearchResultsItem/Group/Group.vue +1 -1
- package/src/components/Search/SearchResults/SearchResultsItem/Message/Message.vue +1 -1
- package/src/components/Search/SearchResults/SearchResultsItem/SearchResultsItem.vue +1 -1
- package/src/components/Search/SearchResults/SearchResultsItem/User/User.vue +1 -1
- package/src/components/StreamMixer/LocalMixer/index.vue +6 -8
- package/src/components/StreamView/Layout/CustomLayout.vue +2 -2
- package/src/components/StreamView/Layout/FloatLayout.vue +88 -83
- package/src/components/StreamView/index.vue +28 -14
- package/src/components/StreamView/manager/mediaManager.ts +38 -42
- package/src/components/UIKitModal/UIKitModal.ts +71 -0
- package/src/components/UIKitModal/index.scss +134 -0
- package/src/components/UIKitModal/index.ts +1 -0
- package/src/components/UIKitModal/index.vue +160 -0
- package/src/components/UIKitModal/type.ts +24 -0
- package/src/components/UserPicker/UserPicker.vue +1 -1
- package/src/components/UserPicker/components/SelectedPanel/SelectedPanel.vue +1 -0
- package/src/components/UserPicker/hooks/useSearchFilter.ts +27 -18
- package/src/components/UserPicker/i18n/en-US.ts +1 -0
- package/src/components/UserPicker/i18n/zh-CN.ts +1 -0
- package/src/components/UserPicker/type.ts +1 -1
- package/src/components/VideoSetting/CameraSelect.vue +1 -2
- package/src/components/VideoSetting/VideoMediaControl.vue +1 -1
- package/src/components/VideoSetting/VideoPreview.vue +1 -2
- package/src/components/VideoSetting/VideoProfile.vue +1 -1
- package/src/components/VideoSetting/VideoSettingTab.vue +9 -5
- package/src/components/VideoSettingPanel/CameraSelect.vue +1 -2
- package/src/components/VideoSettingPanel/VideoProfile.vue +7 -7
- package/src/hooks/useAudioControl.ts +17 -4
- package/src/hooks/useRoomEngine.ts +1 -1
- package/src/index.ts +3 -0
- package/src/report/MetricsKey.ts +16 -0
- package/src/report/dataReport.ts +55 -0
- package/src/report/index.ts +7 -0
- package/src/rtc/index.ts +7 -9
- package/src/rtc/server.ts +4 -0
- package/src/types/audience.ts +27 -1
- package/src/types/battle.ts +87 -4
- package/src/types/coGuest.ts +87 -5
- package/src/types/device.ts +41 -16
- package/src/types/index.ts +2 -2
- package/src/types/live.ts +41 -22
- package/src/types/seat.ts +28 -4
- package/src/utils/call.ts +26 -27
- package/src/utils/eventCenter.ts +249 -0
- package/dist/DialogPortal-CvJcEAsn.js +0 -417
- package/dist/components/BarrageList/Message/FaceMessage/FaceMessage.js +0 -23
- package/dist/components/BarrageList/Message/FaceMessage/FaceMessage.vue.d.ts +0 -30
- package/dist/components/BarrageList/Message/FaceMessage/index.d.ts +0 -3
- package/dist/components/BarrageList/Message/FaceMessage/index.js +0 -4
- package/dist/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.js +0 -4
- package/dist/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.vue.d.ts +0 -16
- package/dist/components/BarrageList/Message/GroupTipMessage/index.d.ts +0 -3
- package/dist/components/BarrageList/Message/GroupTipMessage/index.js +0 -25
- package/dist/components/BarrageList/Message/ImageMessage/ImageMessage.js +0 -71
- package/dist/components/BarrageList/Message/ImageMessage/ImageMessage.vue.d.ts +0 -34
- package/dist/components/BarrageList/Message/ImageMessage/index.d.ts +0 -3
- package/dist/components/BarrageList/Message/ImageMessage/index.js +0 -4
- package/dist/components/BarrageList/Message/MergerMessage/MergerMessage.js +0 -9
- package/dist/components/BarrageList/Message/MergerMessage/MergerMessage.vue.d.ts +0 -2
- package/dist/components/BarrageList/Message/MergerMessage/index.d.ts +0 -3
- package/dist/components/BarrageList/Message/MergerMessage/index.js +0 -4
- package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.js +0 -40
- package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.vue.d.ts +0 -54
- package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.js +0 -26
- package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.vue.d.ts +0 -15
- package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/index.d.ts +0 -3
- package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/index.js +0 -4
- package/dist/components/BarrageList/Message/RecalledMessage/RecalledMessage.js +0 -41
- package/dist/components/BarrageList/Message/RecalledMessage/index.d.ts +0 -3
- package/dist/components/BarrageList/Message/RecalledMessage/index.js +0 -4
- package/dist/components/BarrageList/MessageForward/ForwardListItem.js +0 -45
- package/dist/components/BarrageList/MessageForward/ForwardListItem.vue.d.ts +0 -17
- package/dist/components/BarrageList/MessageForward/MessageForward.js +0 -203
- package/dist/components/BarrageList/MessageForward/MessageForward.vue.d.ts +0 -2
- package/dist/components/BarrageList/MessageForward/index.d.ts +0 -3
- package/dist/components/BarrageList/MessageForward/index.js +0 -4
- package/dist/components/StreamView/Layout/MixLayout.js +0 -89
- package/dist/components/StreamView/Layout/MixLayout.vue.d.ts +0 -31
- package/dist/states/BarrageListState/BarrageListState.d.ts +0 -26
- package/dist/states/BarrageListState/BarrageListState.js +0 -122
- package/dist/states/BarrageListState/index.d.ts +0 -1
- package/dist/states/BarrageListState/index.js +0 -4
- package/dist/states/BattleState.js +0 -117
- package/dist/states/DeviceState.js +0 -296
- package/dist/states/LiveState/index.js +0 -254
- package/dist/states/VideoMixerState.js +0 -260
- package/src/components/BarrageList/Message/FaceMessage/FaceMessage.vue +0 -43
- package/src/components/BarrageList/Message/FaceMessage/index.ts +0 -3
- package/src/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.vue +0 -55
- package/src/components/BarrageList/Message/GroupTipMessage/index.ts +0 -3
- package/src/components/BarrageList/Message/ImageMessage/ImageMessage.vue +0 -181
- package/src/components/BarrageList/Message/ImageMessage/index.ts +0 -3
- package/src/components/BarrageList/Message/MergerMessage/MergerMessage.vue +0 -6
- package/src/components/BarrageList/Message/MergerMessage/index.ts +0 -3
- package/src/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.vue +0 -70
- package/src/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.vue +0 -40
- package/src/components/BarrageList/Message/MessageLayout/MessageMeta/index.ts +0 -3
- package/src/components/BarrageList/Message/RecalledMessage/RecalledMessage.vue +0 -82
- package/src/components/BarrageList/Message/RecalledMessage/index.ts +0 -3
- package/src/components/BarrageList/MessageForward/ForwardListItem.vue +0 -67
- package/src/components/BarrageList/MessageForward/MessageForward.vue +0 -388
- package/src/components/BarrageList/MessageForward/index.ts +0 -3
- package/src/components/StreamView/Layout/MixLayout.vue +0 -144
|
@@ -1,47 +1,18 @@
|
|
|
1
1
|
import { Component, CSSProperties } from 'vue';
|
|
2
|
-
import { IMessageModel } from '@tencentcloud/chat-uikit-engine';
|
|
3
2
|
|
|
4
3
|
interface IMessageListProps {
|
|
5
|
-
/** message actions e.g. recall, delete, etc. */
|
|
6
|
-
/** max time between message group */
|
|
7
|
-
messageAggregationTime?: number | undefined;
|
|
8
|
-
/** custom filter function */
|
|
9
|
-
filter?: ((message: IMessageModel) => boolean) | undefined;
|
|
10
|
-
/** custom message component */
|
|
11
4
|
Message?: Component | undefined;
|
|
12
|
-
/** custom message timeline component */
|
|
13
|
-
MessageTimeDivider?: Component | undefined;
|
|
14
|
-
/** custom local notification message component */
|
|
15
|
-
LocalNoticeMessage?: Component | undefined;
|
|
16
5
|
containerStyle?: CSSProperties | undefined;
|
|
17
6
|
itemStyle?: CSSProperties | undefined;
|
|
18
7
|
height?: string;
|
|
19
8
|
style?: CSSProperties;
|
|
20
9
|
}
|
|
21
10
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IMessageListProps>, {
|
|
22
|
-
/** props */
|
|
23
|
-
filter: undefined;
|
|
24
|
-
enableReadReceipt: boolean;
|
|
25
|
-
messageAggregationTime: number;
|
|
26
|
-
/** custom components */
|
|
27
11
|
Message: undefined;
|
|
28
|
-
MessageTimeDivider: undefined;
|
|
29
|
-
LocalNoticeMessage: undefined;
|
|
30
12
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IMessageListProps>, {
|
|
31
|
-
/** props */
|
|
32
|
-
filter: undefined;
|
|
33
|
-
enableReadReceipt: boolean;
|
|
34
|
-
messageAggregationTime: number;
|
|
35
|
-
/** custom components */
|
|
36
13
|
Message: undefined;
|
|
37
|
-
MessageTimeDivider: undefined;
|
|
38
|
-
LocalNoticeMessage: undefined;
|
|
39
14
|
}>>> & Readonly<{}>, {
|
|
40
|
-
filter: (message: IMessageModel) => boolean;
|
|
41
15
|
Message: Component;
|
|
42
|
-
messageAggregationTime: number;
|
|
43
|
-
MessageTimeDivider: Component;
|
|
44
|
-
LocalNoticeMessage: Component;
|
|
45
16
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
46
17
|
export default _default;
|
|
47
18
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Barrage } from '../../states/BarrageState';
|
|
2
|
+
|
|
3
|
+
interface IMessageGroupTip {
|
|
4
|
+
avatarUrl: string;
|
|
5
|
+
nameCard: string;
|
|
6
|
+
roomCustomInfo: Record<string, any>;
|
|
7
|
+
userId: string;
|
|
8
|
+
userName: string;
|
|
9
|
+
userRole: number;
|
|
10
|
+
displayAction: 'enter' | 'leave';
|
|
11
|
+
}
|
|
12
|
+
declare function useBarrageListState(): {
|
|
13
|
+
messageList: import('vue').Ref<{
|
|
14
|
+
messageType: import('../../states/BarrageState').BarrageType;
|
|
15
|
+
textContent?: string | undefined;
|
|
16
|
+
extensionInfo?: (Record<string, string> | null) | undefined;
|
|
17
|
+
businessId?: string | undefined;
|
|
18
|
+
data?: string | undefined;
|
|
19
|
+
liveId: string;
|
|
20
|
+
sender: {
|
|
21
|
+
userId: string;
|
|
22
|
+
userName: string;
|
|
23
|
+
nameCard: string;
|
|
24
|
+
avatarUrl: string;
|
|
25
|
+
userRole: import('@tencentcloud/tuiroom-engine-js').TUIRole;
|
|
26
|
+
hasAudioStream: boolean;
|
|
27
|
+
hasVideoStream: boolean;
|
|
28
|
+
hasScreenStream: boolean;
|
|
29
|
+
isMessageDisabled: boolean;
|
|
30
|
+
roomCustomInfo: Record<string, any>;
|
|
31
|
+
};
|
|
32
|
+
sequence: number;
|
|
33
|
+
timestampInSecond: number;
|
|
34
|
+
}[], Barrage[] | {
|
|
35
|
+
messageType: import('../../states/BarrageState').BarrageType;
|
|
36
|
+
textContent?: string | undefined;
|
|
37
|
+
extensionInfo?: (Record<string, string> | null) | undefined;
|
|
38
|
+
businessId?: string | undefined;
|
|
39
|
+
data?: string | undefined;
|
|
40
|
+
liveId: string;
|
|
41
|
+
sender: {
|
|
42
|
+
userId: string;
|
|
43
|
+
userName: string;
|
|
44
|
+
nameCard: string;
|
|
45
|
+
avatarUrl: string;
|
|
46
|
+
userRole: import('@tencentcloud/tuiroom-engine-js').TUIRole;
|
|
47
|
+
hasAudioStream: boolean;
|
|
48
|
+
hasVideoStream: boolean;
|
|
49
|
+
hasScreenStream: boolean;
|
|
50
|
+
isMessageDisabled: boolean;
|
|
51
|
+
roomCustomInfo: Record<string, any>;
|
|
52
|
+
};
|
|
53
|
+
sequence: number;
|
|
54
|
+
timestampInSecond: number;
|
|
55
|
+
}[]>;
|
|
56
|
+
messageGroupTip: import('vue').Ref<IMessageGroupTip | undefined, IMessageGroupTip | undefined>;
|
|
57
|
+
};
|
|
58
|
+
export { useBarrageListState };
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { ref as o, watch as d, onUnmounted as M } from "vue";
|
|
2
|
+
import { TUIRoomEvents as m } from "@tencentcloud/tuiroom-engine-js";
|
|
3
|
+
import { useRoomEngine as S } from "../../hooks/useRoomEngine.js";
|
|
4
|
+
import { useLiveListState as T } from "../../states/LiveListState/LiveListState.js";
|
|
5
|
+
import { useBarrageState as _ } from "../../states/BarrageState/BarrageState.js";
|
|
6
|
+
const n = S(), { currentLive: C } = T(), { messageList: f } = _(), v = o(), i = o([]), g = o(0), r = o([]), c = o(!1), a = o([]), p = o(!1), E = 1e3, G = 2e3, A = 1e3, L = 20, w = 10;
|
|
7
|
+
let l = null, u = null;
|
|
8
|
+
const h = () => {
|
|
9
|
+
n.instance && l && (n.instance.off(m.onRemoteUserEnterRoom, l), l = null), n.instance && u && (n.instance.off(m.onRemoteUserLeaveRoom, u), u = null);
|
|
10
|
+
}, P = (e) => {
|
|
11
|
+
if (e.length <= E)
|
|
12
|
+
return e;
|
|
13
|
+
const t = e.length - E;
|
|
14
|
+
return e.slice(t);
|
|
15
|
+
}, Q = async () => {
|
|
16
|
+
if (!(c.value || r.value.length === 0)) {
|
|
17
|
+
c.value = !0;
|
|
18
|
+
try {
|
|
19
|
+
let e = [];
|
|
20
|
+
for (; r.value.length > 0; ) {
|
|
21
|
+
const t = r.value.splice(0, 1)[0];
|
|
22
|
+
e.push(...t);
|
|
23
|
+
const s = [...i.value || [], ...e];
|
|
24
|
+
i.value = P(s), e = [], r.value.length > 0 && await new Promise((U) => setTimeout(U, A));
|
|
25
|
+
}
|
|
26
|
+
} finally {
|
|
27
|
+
c.value = !1;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}, y = (e) => {
|
|
31
|
+
const t = e.slice(g.value);
|
|
32
|
+
if (g.value = e.length, t.length === 0) {
|
|
33
|
+
i.value = e;
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
for (let s = 0; s < t.length; s += L)
|
|
37
|
+
r.value.push(t.slice(s, s + L));
|
|
38
|
+
Q();
|
|
39
|
+
}, N = async () => {
|
|
40
|
+
if (!(p.value || a.value.length === 0)) {
|
|
41
|
+
p.value = !0;
|
|
42
|
+
try {
|
|
43
|
+
for (; a.value.length > 0; ) {
|
|
44
|
+
const e = a.value.splice(0, 1)[0];
|
|
45
|
+
v.value = e, await new Promise((t) => {
|
|
46
|
+
setTimeout(t, G);
|
|
47
|
+
}), v.value = void 0;
|
|
48
|
+
}
|
|
49
|
+
} catch (e) {
|
|
50
|
+
console.error("[BarrageListState] processMessageGroupTipQueue error", e);
|
|
51
|
+
} finally {
|
|
52
|
+
p.value = !1;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}, R = (e) => {
|
|
56
|
+
a.value.push(e), a.value.length > w && (a.value = a.value.slice(-2)), N();
|
|
57
|
+
}, B = () => {
|
|
58
|
+
var e, t;
|
|
59
|
+
h(), l = ({ userInfo: s }) => {
|
|
60
|
+
R({
|
|
61
|
+
avatarUrl: s.avatarUrl,
|
|
62
|
+
nameCard: s.nameCard,
|
|
63
|
+
roomCustomInfo: s.roomCustomInfo,
|
|
64
|
+
userId: s.userId,
|
|
65
|
+
userName: s.userName,
|
|
66
|
+
userRole: s.userRole,
|
|
67
|
+
displayAction: "enter"
|
|
68
|
+
});
|
|
69
|
+
}, u = ({ userInfo: s }) => {
|
|
70
|
+
R({
|
|
71
|
+
avatarUrl: s.avatarUrl,
|
|
72
|
+
nameCard: s.nameCard,
|
|
73
|
+
roomCustomInfo: s.roomCustomInfo,
|
|
74
|
+
userId: s.userId,
|
|
75
|
+
userName: s.userName,
|
|
76
|
+
userRole: s.userRole,
|
|
77
|
+
displayAction: "leave"
|
|
78
|
+
});
|
|
79
|
+
}, l && ((e = n.instance) == null || e.on(m.onRemoteUserEnterRoom, l)), u && ((t = n.instance) == null || t.on(m.onRemoteUserLeaveRoom, u));
|
|
80
|
+
};
|
|
81
|
+
d(() => f.value.length, (e) => {
|
|
82
|
+
e > 0 && y(f.value);
|
|
83
|
+
}, {
|
|
84
|
+
immediate: !0
|
|
85
|
+
});
|
|
86
|
+
const O = () => {
|
|
87
|
+
i.value = [], g.value = 0, r.value = [], c.value = !1, v.value = void 0, a.value = [];
|
|
88
|
+
};
|
|
89
|
+
d(() => {
|
|
90
|
+
var e;
|
|
91
|
+
return (e = C.value) == null ? void 0 : e.liveId;
|
|
92
|
+
}, (e, t) => {
|
|
93
|
+
!e && t ? O() : B();
|
|
94
|
+
});
|
|
95
|
+
M(() => {
|
|
96
|
+
h();
|
|
97
|
+
});
|
|
98
|
+
function Y() {
|
|
99
|
+
return {
|
|
100
|
+
messageList: i,
|
|
101
|
+
messageGroupTip: v
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
export {
|
|
105
|
+
Y as useBarrageListState
|
|
106
|
+
};
|
|
@@ -1,37 +1,29 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
import { _ as C } from "../../../../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
-
const y = {
|
|
8
|
-
key: 0,
|
|
9
|
-
class: "has-risk-content"
|
|
10
|
-
}, B = /* @__PURE__ */ f({
|
|
1
|
+
import { defineComponent as c, toRefs as f, createElementBlock as m, openBlock as d, normalizeClass as i, unref as e, renderSlot as p } from "vue";
|
|
2
|
+
import { c as b } from "../../../../../index-DPczIrgX.js";
|
|
3
|
+
import { useLoginState as _ } from "../../../../../states/LoginState.js";
|
|
4
|
+
import { _ as g } from "../../../../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
const I = /* @__PURE__ */ c({
|
|
11
6
|
__name: "MessageBubble",
|
|
12
7
|
props: {
|
|
13
8
|
message: { default: () => ({}) },
|
|
14
9
|
isLastInChunk: { type: Boolean, default: !1 }
|
|
15
10
|
},
|
|
16
|
-
setup(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
setup(t) {
|
|
12
|
+
var o;
|
|
13
|
+
const { loginUserInfo: a } = _(), n = t, { message: r, isLastInChunk: l } = f(n), s = r.value.sender.userId === ((o = a.value) == null ? void 0 : o.userId) ? "in" : "out";
|
|
14
|
+
return (u, v) => (d(), m("div", {
|
|
15
|
+
class: i([
|
|
20
16
|
"message-bubble",
|
|
21
|
-
e(
|
|
22
|
-
[`bubble-${e(
|
|
23
|
-
"all-round-radius": !e(
|
|
24
|
-
"no-background": t.includes(e(s).type),
|
|
25
|
-
"highlight--normal": o.value,
|
|
26
|
-
"highlight--media": o.value && g.value
|
|
17
|
+
e(b)({
|
|
18
|
+
[`bubble-${e(s)}`]: e(s) && !0,
|
|
19
|
+
"all-round-radius": !e(l)
|
|
27
20
|
})
|
|
28
21
|
])
|
|
29
22
|
}, [
|
|
30
|
-
|
|
31
|
-
E(h.$slots, "default", {}, void 0, !0)
|
|
23
|
+
p(u.$slots, "default", {}, void 0, !0)
|
|
32
24
|
], 2));
|
|
33
25
|
}
|
|
34
|
-
}),
|
|
26
|
+
}), L = /* @__PURE__ */ g(I, [["__scopeId", "data-v-c2f22426"]]);
|
|
35
27
|
export {
|
|
36
|
-
|
|
28
|
+
L as default
|
|
37
29
|
};
|
package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.vue.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Barrage } from '../../../../../states/BarrageState';
|
|
2
2
|
|
|
3
3
|
interface IMessageBubbleProps {
|
|
4
|
-
message:
|
|
4
|
+
message: Barrage;
|
|
5
5
|
isLastInChunk: boolean;
|
|
6
6
|
}
|
|
7
7
|
declare function __VLS_template(): {
|
|
8
8
|
default?(_: {}): any;
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IMessageBubbleProps>, {
|
|
11
|
-
message: () =>
|
|
11
|
+
message: () => Barrage;
|
|
12
12
|
isLastInChunk: boolean;
|
|
13
13
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IMessageBubbleProps>, {
|
|
14
|
-
message: () =>
|
|
14
|
+
message: () => Barrage;
|
|
15
15
|
isLastInChunk: boolean;
|
|
16
16
|
}>>> & Readonly<{}>, {
|
|
17
|
-
message:
|
|
17
|
+
message: Barrage;
|
|
18
18
|
isLastInChunk: boolean;
|
|
19
19
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
20
20
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { CustomMessage as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
import b from "../TextMessage/TextMessage.js";
|
|
11
|
-
import x from "./MessageBubble/MessageBubble.js";
|
|
12
|
-
import B from "./MessageMeta/MessageMeta.js";
|
|
13
|
-
import { _ as N } from "../../../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
-
const L = ["data-message-id"], $ = /* @__PURE__ */ T({
|
|
1
|
+
import { defineComponent as C, toRefs as h, computed as c, createElementBlock as i, createCommentVNode as p, openBlock as m, normalizeStyle as M, normalizeClass as o, unref as e, createElementVNode as d, createVNode as x, toDisplayString as I, withCtx as b, createBlock as w, resolveDynamicComponent as B } from "vue";
|
|
2
|
+
import { c as l } from "../../../../index-DPczIrgX.js";
|
|
3
|
+
import { useLoginState as N } from "../../../../states/LoginState.js";
|
|
4
|
+
import { CustomMessage as L } from "../CustomMessage/index.js";
|
|
5
|
+
import T from "../TextMessage/TextMessage.js";
|
|
6
|
+
import S from "./MessageBubble/MessageBubble.js";
|
|
7
|
+
import { BarrageType as n } from "../../../../states/BarrageState/BarrageState.js";
|
|
8
|
+
import { _ as V } from "../../../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
+
const $ = ["data-message-id"], z = /* @__PURE__ */ C({
|
|
15
10
|
__name: "MessageLayout",
|
|
16
11
|
props: {
|
|
17
12
|
message: { default: () => ({}) },
|
|
@@ -19,90 +14,70 @@ const L = ["data-message-id"], $ = /* @__PURE__ */ T({
|
|
|
19
14
|
className: { default: "" },
|
|
20
15
|
style: { default: () => ({}) }
|
|
21
16
|
},
|
|
22
|
-
setup(
|
|
23
|
-
const
|
|
17
|
+
setup(_) {
|
|
18
|
+
const g = _, { loginUserInfo: f } = N(), {
|
|
24
19
|
message: s,
|
|
25
|
-
isLastInChunk:
|
|
26
|
-
// messageActionList,
|
|
20
|
+
isLastInChunk: a,
|
|
27
21
|
className: y,
|
|
28
|
-
style:
|
|
29
|
-
} =
|
|
30
|
-
[
|
|
31
|
-
[
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
return (D, F) => e(s).isRevoked ? (l(), u(e(R), {
|
|
22
|
+
style: v
|
|
23
|
+
} = h(g), k = {
|
|
24
|
+
[n.text]: T,
|
|
25
|
+
[n.custom]: L
|
|
26
|
+
}, u = c(() => k[s.value.messageType]), t = c(() => {
|
|
27
|
+
var r;
|
|
28
|
+
return s.value.sender.userId === ((r = f.value) == null ? void 0 : r.userId);
|
|
29
|
+
});
|
|
30
|
+
return (r, D) => u.value ? (m(), i("div", {
|
|
38
31
|
key: 0,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
key: 1,
|
|
43
|
-
message: e(s)
|
|
44
|
-
}, null, 8, ["message"])) : i.value ? (l(), _("div", {
|
|
45
|
-
key: 2,
|
|
46
|
-
"data-message-id": e(s).ID,
|
|
47
|
-
class: m(
|
|
48
|
-
e(r)(
|
|
32
|
+
"data-message-id": e(s).sequence,
|
|
33
|
+
class: o(
|
|
34
|
+
e(l)(
|
|
49
35
|
"message-layout",
|
|
50
36
|
{
|
|
51
|
-
"message-layout--self":
|
|
52
|
-
[`message-layout--not-last${
|
|
37
|
+
"message-layout--self": t.value,
|
|
38
|
+
[`message-layout--not-last${t.value ? "--self" : ""}`]: !e(a)
|
|
53
39
|
},
|
|
54
40
|
e(y)
|
|
55
41
|
)
|
|
56
42
|
),
|
|
57
|
-
style:
|
|
43
|
+
style: M(e(v))
|
|
58
44
|
}, [
|
|
59
|
-
|
|
60
|
-
class:
|
|
45
|
+
d("div", {
|
|
46
|
+
class: o(e(l)("message-layout__wrapper", { "message-layout__wrapper--self": t.value }))
|
|
61
47
|
}, [
|
|
62
|
-
|
|
63
|
-
class:
|
|
64
|
-
e(
|
|
65
|
-
"message-layout__wrapper__middle--self":
|
|
48
|
+
d("div", {
|
|
49
|
+
class: o(
|
|
50
|
+
e(l)("message-layout__wrapper__middle", {
|
|
51
|
+
"message-layout__wrapper__middle--self": t.value
|
|
66
52
|
})
|
|
67
53
|
)
|
|
68
54
|
}, [
|
|
69
|
-
e(
|
|
55
|
+
e(a) && e(s).messageType !== e(n).text ? (m(), i("div", {
|
|
70
56
|
key: 0,
|
|
71
|
-
class:
|
|
72
|
-
},
|
|
73
|
-
|
|
74
|
-
class:
|
|
75
|
-
e(
|
|
76
|
-
[`message-layout__bubble--last${
|
|
57
|
+
class: o(e(l)("message-layout__nick"))
|
|
58
|
+
}, I(e(s).sender.nameCard || e(s).sender.userName || e(s).sender.userId + ": "), 3)) : p("", !0),
|
|
59
|
+
x(e(S), {
|
|
60
|
+
class: o(
|
|
61
|
+
e(l)({
|
|
62
|
+
[`message-layout__bubble--last${t.value ? "--self" : ""}`]: e(a)
|
|
77
63
|
})
|
|
78
64
|
),
|
|
79
65
|
message: e(s),
|
|
80
|
-
"is-last-in-chunk": e(
|
|
66
|
+
"is-last-in-chunk": e(a)
|
|
81
67
|
}, {
|
|
82
|
-
default:
|
|
83
|
-
(
|
|
68
|
+
default: b(() => [
|
|
69
|
+
(m(), w(B(u.value), {
|
|
84
70
|
message: e(s),
|
|
85
|
-
"is-last-in-chunk": e(
|
|
71
|
+
"is-last-in-chunk": e(a)
|
|
86
72
|
}, null, 8, ["message", "is-last-in-chunk"]))
|
|
87
73
|
]),
|
|
88
74
|
_: 1
|
|
89
75
|
}, 8, ["class", "message", "is-last-in-chunk"])
|
|
90
|
-
], 2)
|
|
91
|
-
e(t) ? (l(), u(e(B), {
|
|
92
|
-
key: 0,
|
|
93
|
-
class: m(
|
|
94
|
-
e(r)("message-layout__meta", {
|
|
95
|
-
"message-layout__meta--self": o.value
|
|
96
|
-
})
|
|
97
|
-
),
|
|
98
|
-
status: e(s).status,
|
|
99
|
-
"is-show-read-status": !0,
|
|
100
|
-
timestamp: e(s).time
|
|
101
|
-
}, null, 8, ["class", "status", "timestamp"])) : n("", !0)
|
|
76
|
+
], 2)
|
|
102
77
|
], 2)
|
|
103
|
-
], 14,
|
|
78
|
+
], 14, $)) : p("", !0);
|
|
104
79
|
}
|
|
105
|
-
}),
|
|
80
|
+
}), G = /* @__PURE__ */ V(z, [["__scopeId", "data-v-340717fb"]]);
|
|
106
81
|
export {
|
|
107
|
-
|
|
82
|
+
G as default
|
|
108
83
|
};
|
|
@@ -1,26 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Barrage } from '../../../../states/BarrageState';
|
|
2
2
|
|
|
3
3
|
interface IMessageLayoutProps {
|
|
4
|
-
message:
|
|
4
|
+
message: Barrage;
|
|
5
5
|
isLastInChunk?: boolean;
|
|
6
6
|
className?: string;
|
|
7
7
|
style?: Record<string, any>;
|
|
8
8
|
}
|
|
9
9
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IMessageLayoutProps>, {
|
|
10
|
-
message: () =>
|
|
10
|
+
message: () => Barrage;
|
|
11
11
|
isLastInChunk: boolean;
|
|
12
|
-
messageActionList: () => never[];
|
|
13
12
|
className: string;
|
|
14
13
|
style: () => {};
|
|
15
14
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IMessageLayoutProps>, {
|
|
16
|
-
message: () =>
|
|
15
|
+
message: () => Barrage;
|
|
17
16
|
isLastInChunk: boolean;
|
|
18
|
-
messageActionList: () => never[];
|
|
19
17
|
className: string;
|
|
20
18
|
style: () => {};
|
|
21
19
|
}>>> & Readonly<{}>, {
|
|
22
20
|
style: Record<string, any>;
|
|
23
|
-
message:
|
|
21
|
+
message: Barrage;
|
|
24
22
|
className: string;
|
|
25
23
|
isLastInChunk: boolean;
|
|
26
24
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|