@100mslive/react-native-room-kit 1.0.0 → 1.0.2-beta.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/README.md +1 -1
- package/lib/commonjs/HMSInstanceSetup.js +2 -2
- package/lib/commonjs/HMSInstanceSetup.js.map +1 -1
- package/lib/commonjs/HMSPrebuilt.js +20 -20
- package/lib/commonjs/HMSPrebuilt.js.map +1 -1
- package/lib/commonjs/HMSRoomSetup.js +87 -46
- package/lib/commonjs/HMSRoomSetup.js.map +1 -1
- package/lib/commonjs/Icons/Chevron/index.js +5 -1
- package/lib/commonjs/Icons/Chevron/index.js.map +1 -1
- package/lib/commonjs/Icons/Hand/assets/hand-off.png +0 -0
- package/lib/commonjs/Icons/Hand/assets/hand-off@2x.png +0 -0
- package/lib/commonjs/Icons/Hand/assets/hand-off@3x.png +0 -0
- package/lib/commonjs/Icons/Hand/index.js +2 -1
- package/lib/commonjs/Icons/Hand/index.js.map +1 -1
- package/lib/commonjs/Icons/Leave/index.js +5 -1
- package/lib/commonjs/Icons/Leave/index.js.map +1 -1
- package/lib/commonjs/Icons/Recording/assets/recording-off.png +0 -0
- package/lib/commonjs/Icons/Recording/assets/recording-off@2x.png +0 -0
- package/lib/commonjs/Icons/Recording/assets/recording-off@3x.png +0 -0
- package/lib/commonjs/Icons/Recording/index.js +2 -1
- package/lib/commonjs/Icons/Recording/index.js.map +1 -1
- package/lib/commonjs/Icons/WelcomeHand/assets/welcome-hand.png +0 -0
- package/lib/commonjs/Icons/WelcomeHand/assets/welcome-hand@2x.png +0 -0
- package/lib/commonjs/Icons/WelcomeHand/assets/welcome-hand@3x.png +0 -0
- package/lib/commonjs/Icons/WelcomeHand/index.js +30 -0
- package/lib/commonjs/Icons/WelcomeHand/index.js.map +1 -0
- package/lib/commonjs/Icons/index.js +11 -0
- package/lib/commonjs/Icons/index.js.map +1 -1
- package/lib/commonjs/components/AnimatedFooter.js +2 -2
- package/lib/commonjs/components/AnimatedFooter.js.map +1 -1
- package/lib/commonjs/components/AnimatedHLSFooter.js +2 -2
- package/lib/commonjs/components/AnimatedHLSFooter.js.map +1 -1
- package/lib/commonjs/components/AnimatedHeader.js +2 -2
- package/lib/commonjs/components/AnimatedHeader.js.map +1 -1
- package/lib/commonjs/components/AvatarView.js +2 -2
- package/lib/commonjs/components/AvatarView.js.map +1 -1
- package/lib/commonjs/components/BackButton.js +2 -2
- package/lib/commonjs/components/BackButton.js.map +1 -1
- package/lib/commonjs/components/BottomSheet.js +2 -2
- package/lib/commonjs/components/BottomSheet.js.map +1 -1
- package/lib/commonjs/components/ChangeNameModalContent.js +25 -6
- package/lib/commonjs/components/ChangeNameModalContent.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatBanner.js +2 -2
- package/lib/commonjs/components/Chat/ChatBanner.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js +3 -4
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js +3 -4
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterItem.js +3 -4
- package/lib/commonjs/components/Chat/ChatFilterItem.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterView.js +3 -4
- package/lib/commonjs/components/Chat/ChatFilterView.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatList.js +3 -4
- package/lib/commonjs/components/Chat/ChatList.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatMessage.js +3 -4
- package/lib/commonjs/components/Chat/ChatMessage.js.map +1 -1
- package/lib/commonjs/components/Chat/PinnedMessage.js +2 -2
- package/lib/commonjs/components/Chat/PinnedMessage.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js +2 -2
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsHeader.js +7 -7
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsHeader.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js +3 -4
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatView.js +3 -4
- package/lib/commonjs/components/ChatAndParticipants/ChatView.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ParticipantsView.js +15 -14
- package/lib/commonjs/components/ChatAndParticipants/ParticipantsView.js.map +1 -1
- package/lib/commonjs/components/DisplayView.js +5 -3
- package/lib/commonjs/components/DisplayView.js.map +1 -1
- package/lib/commonjs/components/EndRoomModal.js +29 -0
- package/lib/commonjs/components/EndRoomModal.js.map +1 -0
- package/lib/commonjs/components/EndRoomModalContent.js +11 -4
- package/lib/commonjs/components/EndRoomModalContent.js.map +1 -1
- package/lib/commonjs/components/Footer.js +13 -6
- package/lib/commonjs/components/Footer.js.map +1 -1
- package/lib/commonjs/components/FullScreenVideoView.js +2 -2
- package/lib/commonjs/components/FullScreenVideoView.js.map +1 -1
- package/lib/commonjs/components/GridView.js +3 -4
- package/lib/commonjs/components/GridView.js.map +1 -1
- package/lib/commonjs/components/HLSFooter.js +2 -2
- package/lib/commonjs/components/HLSFooter.js.map +1 -1
- package/lib/commonjs/components/HLSView.js +2 -2
- package/lib/commonjs/components/HLSView.js.map +1 -1
- package/lib/commonjs/components/HMSBaseButton.js +2 -2
- package/lib/commonjs/components/HMSBaseButton.js.map +1 -1
- package/lib/commonjs/components/HMSChat.js +2 -2
- package/lib/commonjs/components/HMSChat.js.map +1 -1
- package/lib/commonjs/components/HMSDangerButton.js +4 -3
- package/lib/commonjs/components/HMSDangerButton.js.map +1 -1
- package/lib/commonjs/components/HMSHLSMessage.js +3 -4
- package/lib/commonjs/components/HMSHLSMessage.js.map +1 -1
- package/lib/commonjs/components/HMSHLSMessageList.js +2 -2
- package/lib/commonjs/components/HMSHLSMessageList.js.map +1 -1
- package/lib/commonjs/components/HMSHLSNotStarted.js +2 -2
- package/lib/commonjs/components/HMSHLSNotStarted.js.map +1 -1
- package/lib/commonjs/components/HMSHLSStreamLoading.js +6 -4
- package/lib/commonjs/components/HMSHLSStreamLoading.js.map +1 -1
- package/lib/commonjs/components/HMSHandRaiseNotification.js +2 -2
- package/lib/commonjs/components/HMSHandRaiseNotification.js.map +1 -1
- package/lib/commonjs/components/HMSKeyboardAvoidingView.js +7 -23
- package/lib/commonjs/components/HMSKeyboardAvoidingView.js.map +1 -1
- package/lib/commonjs/components/HMSLiveIndicator.js +5 -6
- package/lib/commonjs/components/HMSLiveIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSLocalScreenshareNotification.js +4 -4
- package/lib/commonjs/components/HMSLocalScreenshareNotification.js.map +1 -1
- package/lib/commonjs/components/HMSLocalVideoView.js +2 -2
- package/lib/commonjs/components/HMSLocalVideoView.js.map +1 -1
- package/lib/commonjs/components/HMSManageAudioOutput.js +2 -2
- package/lib/commonjs/components/HMSManageAudioOutput.js.map +1 -1
- package/lib/commonjs/components/HMSManageCameraRotation.js +2 -2
- package/lib/commonjs/components/HMSManageCameraRotation.js.map +1 -1
- package/lib/commonjs/components/HMSManageLeave.js +7 -181
- package/lib/commonjs/components/HMSManageLeave.js.map +1 -1
- package/lib/commonjs/components/HMSManageLocalAudio.js +2 -2
- package/lib/commonjs/components/HMSManageLocalAudio.js.map +1 -1
- package/lib/commonjs/components/HMSManageLocalVideo.js +2 -2
- package/lib/commonjs/components/HMSManageLocalVideo.js.map +1 -1
- package/lib/commonjs/components/HMSManageRaiseHand.js +23 -11
- package/lib/commonjs/components/HMSManageRaiseHand.js.map +1 -1
- package/lib/commonjs/components/HMSMeetingEnded.js +2 -2
- package/lib/commonjs/components/HMSMeetingEnded.js.map +1 -1
- package/lib/commonjs/components/HMSNotification.js +6 -5
- package/lib/commonjs/components/HMSNotification.js.map +1 -1
- package/lib/commonjs/components/HMSNotifications.js +34 -8
- package/lib/commonjs/components/HMSNotifications.js.map +1 -1
- package/lib/commonjs/components/HMSOverlayChatView.js +9 -3
- package/lib/commonjs/components/HMSOverlayChatView.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewEditName.js +2 -2
- package/lib/commonjs/components/HMSPreviewEditName.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js +5 -4
- package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewJoinButton.js +10 -5
- package/lib/commonjs/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewNetworkQuality.js +2 -2
- package/lib/commonjs/components/HMSPreviewNetworkQuality.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewPeersList.js +2 -2
- package/lib/commonjs/components/HMSPreviewPeersList.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewSubtitle.js +2 -2
- package/lib/commonjs/components/HMSPreviewSubtitle.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewTile.js +3 -3
- package/lib/commonjs/components/HMSPreviewTile.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewTitle.js +2 -2
- package/lib/commonjs/components/HMSPreviewTitle.js.map +1 -1
- package/lib/commonjs/components/HMSPrimaryButton.js +2 -2
- package/lib/commonjs/components/HMSPrimaryButton.js.map +1 -1
- package/lib/commonjs/components/HMSReconnectingNotification.js +33 -0
- package/lib/commonjs/components/HMSReconnectingNotification.js.map +1 -0
- package/lib/commonjs/components/HMSRecordingIndicator.js +6 -3
- package/lib/commonjs/components/HMSRecordingIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSRoleChangeDeclinedNotification.js +2 -2
- package/lib/commonjs/components/HMSRoleChangeDeclinedNotification.js.map +1 -1
- package/lib/commonjs/components/HMSRoomOptions.js +2 -2
- package/lib/commonjs/components/HMSRoomOptions.js.map +1 -1
- package/lib/commonjs/components/HMSSendMessageInput.js +2 -2
- package/lib/commonjs/components/HMSSendMessageInput.js.map +1 -1
- package/lib/commonjs/components/HMSTerminalErrorNotification.js +66 -0
- package/lib/commonjs/components/HMSTerminalErrorNotification.js.map +1 -0
- package/lib/commonjs/components/HMSTextInput.js +5 -5
- package/lib/commonjs/components/HMSTextInput.js.map +1 -1
- package/lib/commonjs/components/HMSVideoView.js +2 -2
- package/lib/commonjs/components/HMSVideoView.js.map +1 -1
- package/lib/commonjs/components/Header.js +4 -6
- package/lib/commonjs/components/Header.js.map +1 -1
- package/lib/commonjs/components/LeaveRoomBottomSheet.js +175 -0
- package/lib/commonjs/components/LeaveRoomBottomSheet.js.map +1 -0
- package/lib/commonjs/components/LocalPeerRegularVideoView.js +2 -2
- package/lib/commonjs/components/LocalPeerRegularVideoView.js.map +1 -1
- package/lib/commonjs/components/LocalPeerScreenshareView.js +2 -2
- package/lib/commonjs/components/LocalPeerScreenshareView.js.map +1 -1
- package/lib/commonjs/components/Meeting.js +6 -2
- package/lib/commonjs/components/Meeting.js.map +1 -1
- package/lib/commonjs/components/MeetingScreenContent.js +5 -4
- package/lib/commonjs/components/MeetingScreenContent.js.map +1 -1
- package/lib/commonjs/components/MiniView.js +2 -2
- package/lib/commonjs/components/MiniView.js.map +1 -1
- package/lib/commonjs/components/Modals.js +2 -2
- package/lib/commonjs/components/Modals.js.map +1 -1
- package/lib/commonjs/components/OverlayContainer.js +2 -2
- package/lib/commonjs/components/OverlayContainer.js.map +1 -1
- package/lib/commonjs/components/OverlayedViews.js +3 -4
- package/lib/commonjs/components/OverlayedViews.js.map +1 -1
- package/lib/commonjs/components/PIPView.js +90 -19
- package/lib/commonjs/components/PIPView.js.map +1 -1
- package/lib/commonjs/components/PaginationDots.js +3 -4
- package/lib/commonjs/components/PaginationDots.js.map +1 -1
- package/lib/commonjs/components/Participants/MultiRoleParticipantsList.js +65 -0
- package/lib/commonjs/components/Participants/MultiRoleParticipantsList.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsAccordian.js +60 -0
- package/lib/commonjs/components/Participants/ParticipantsAccordian.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsAccordianExpanded.js +25 -0
- package/lib/commonjs/components/Participants/ParticipantsAccordianExpanded.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsGroupFooter.js +61 -0
- package/lib/commonjs/components/Participants/ParticipantsGroupFooter.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js +31 -31
- package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsGroupOptions.js +3 -4
- package/lib/commonjs/components/Participants/ParticipantsGroupOptions.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsItem.js +12 -21
- package/lib/commonjs/components/Participants/ParticipantsItem.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsItemOption.js +3 -4
- package/lib/commonjs/components/Participants/ParticipantsItemOption.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsItemOptions.js +26 -5
- package/lib/commonjs/components/Participants/ParticipantsItemOptions.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsList.js +157 -22
- package/lib/commonjs/components/Participants/ParticipantsList.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsListFooter.js +43 -0
- package/lib/commonjs/components/Participants/ParticipantsListFooter.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsSeachInput.js +4 -4
- package/lib/commonjs/components/Participants/ParticipantsSeachInput.js.map +1 -1
- package/lib/commonjs/components/Participants/index.js +11 -0
- package/lib/commonjs/components/Participants/index.js.map +1 -1
- package/lib/commonjs/components/ParticipantsCount.js +3 -4
- package/lib/commonjs/components/ParticipantsCount.js.map +1 -1
- package/lib/commonjs/components/PeerDisplayView.js +1 -2
- package/lib/commonjs/components/PeerDisplayView.js.map +1 -1
- package/lib/commonjs/components/PeerMinimizedView.js +3 -4
- package/lib/commonjs/components/PeerMinimizedView.js.map +1 -1
- package/lib/commonjs/components/PeerRTCStatsContainer.js +3 -4
- package/lib/commonjs/components/PeerRTCStatsContainer.js.map +1 -1
- package/lib/commonjs/components/PeerRTCStatsView.js +1 -2
- package/lib/commonjs/components/PeerRTCStatsView.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/AvatarView.js +8 -9
- package/lib/commonjs/components/PeerVideoTile/AvatarView.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/HMSFullScreenButton.js +2 -2
- package/lib/commonjs/components/PeerVideoTile/HMSFullScreenButton.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/HMSPinchGesture.js +2 -2
- package/lib/commonjs/components/PeerVideoTile/HMSPinchGesture.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerAudioIndicator.js +15 -8
- package/lib/commonjs/components/PeerVideoTile/PeerAudioIndicator.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js +22 -12
- package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js +2 -2
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js +27 -13
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/VideoView.js +3 -4
- package/lib/commonjs/components/PeerVideoTile/VideoView.js.map +1 -1
- package/lib/commonjs/components/PressableIcon.js +2 -2
- package/lib/commonjs/components/PressableIcon.js.map +1 -1
- package/lib/commonjs/components/Preview.js +5 -1
- package/lib/commonjs/components/Preview.js.map +1 -1
- package/lib/commonjs/components/PreviewForRoleChangeModal.js +6 -12
- package/lib/commonjs/components/PreviewForRoleChangeModal.js.map +1 -1
- package/lib/commonjs/components/ReconnectionView.js +3 -4
- package/lib/commonjs/components/ReconnectionView.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalContent.js +53 -20
- package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js +1 -1
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js.map +1 -1
- package/lib/commonjs/components/StatusBar.js +2 -2
- package/lib/commonjs/components/StatusBar.js.map +1 -1
- package/lib/commonjs/components/StopRecordingModalContent.js +6 -3
- package/lib/commonjs/components/StopRecordingModalContent.js.map +1 -1
- package/lib/commonjs/components/StreamingQualityModalContent.js +2 -2
- package/lib/commonjs/components/StreamingQualityModalContent.js.map +1 -1
- package/lib/commonjs/components/Tile.js +1 -2
- package/lib/commonjs/components/Tile.js.map +1 -1
- package/lib/commonjs/components/TilesContainer.js +1 -2
- package/lib/commonjs/components/TilesContainer.js.map +1 -1
- package/lib/commonjs/components/UnmountAfterDelay.js +3 -4
- package/lib/commonjs/components/UnmountAfterDelay.js.map +1 -1
- package/lib/commonjs/components/WebrtcView.js +5 -5
- package/lib/commonjs/components/WebrtcView.js.map +1 -1
- package/lib/commonjs/components/WelcomeInMeeting.js +30 -9
- package/lib/commonjs/components/WelcomeInMeeting.js.map +1 -1
- package/lib/commonjs/components/styles.js +1 -2
- package/lib/commonjs/components/styles.js.map +1 -1
- package/lib/commonjs/hooks-sdk.js +46 -1
- package/lib/commonjs/hooks-sdk.js.map +1 -1
- package/lib/commonjs/hooks-util.js +323 -145
- package/lib/commonjs/hooks-util.js.map +1 -1
- package/lib/commonjs/index.js +11 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/redux/actionTypes.js +12 -6
- package/lib/commonjs/redux/actionTypes.js.map +1 -1
- package/lib/commonjs/redux/actions/index.js +41 -4
- package/lib/commonjs/redux/actions/index.js.map +1 -1
- package/lib/commonjs/redux/index.js +1 -2
- package/lib/commonjs/redux/index.js.map +1 -1
- package/lib/commonjs/redux/reducers/appState.js +20 -5
- package/lib/commonjs/redux/reducers/appState.js.map +1 -1
- package/lib/commonjs/redux/reducers/chatWindow.js +1 -2
- package/lib/commonjs/redux/reducers/chatWindow.js.map +1 -1
- package/lib/commonjs/redux/reducers/hmsStates.js +192 -22
- package/lib/commonjs/redux/reducers/hmsStates.js.map +1 -1
- package/lib/commonjs/redux/reducers/index.js +1 -2
- package/lib/commonjs/redux/reducers/index.js.map +1 -1
- package/lib/commonjs/redux/reducers/message.js +3 -4
- package/lib/commonjs/redux/reducers/message.js.map +1 -1
- package/lib/commonjs/redux/reducers/userState.js +8 -5
- package/lib/commonjs/redux/reducers/userState.js.map +1 -1
- package/lib/commonjs/types.js +11 -3
- package/lib/commonjs/types.js.map +1 -1
- package/lib/commonjs/utils/dimension.js +2 -4
- package/lib/commonjs/utils/dimension.js.map +1 -1
- package/lib/commonjs/utils/functions.js.map +1 -1
- package/lib/commonjs/utils/theme.js +5 -10
- package/lib/commonjs/utils/theme.js.map +1 -1
- package/lib/commonjs/utils/types.js +23 -23
- package/lib/commonjs/utils/types.js.map +1 -1
- package/lib/commonjs/utils.js +1 -8
- package/lib/commonjs/utils.js.map +1 -1
- package/lib/module/HMSPrebuilt.js +18 -17
- package/lib/module/HMSPrebuilt.js.map +1 -1
- package/lib/module/HMSRoomSetup.js +81 -40
- package/lib/module/HMSRoomSetup.js.map +1 -1
- package/lib/module/Icons/Chevron/index.js +5 -1
- package/lib/module/Icons/Chevron/index.js.map +1 -1
- package/lib/module/Icons/Hand/assets/hand-off.png +0 -0
- package/lib/module/Icons/Hand/assets/hand-off@2x.png +0 -0
- package/lib/module/Icons/Hand/assets/hand-off@3x.png +0 -0
- package/lib/module/Icons/Hand/index.js +2 -1
- package/lib/module/Icons/Hand/index.js.map +1 -1
- package/lib/module/Icons/Leave/index.js +5 -1
- package/lib/module/Icons/Leave/index.js.map +1 -1
- package/lib/module/Icons/Recording/assets/recording-off.png +0 -0
- package/lib/module/Icons/Recording/assets/recording-off@2x.png +0 -0
- package/lib/module/Icons/Recording/assets/recording-off@3x.png +0 -0
- package/lib/module/Icons/Recording/index.js +2 -1
- package/lib/module/Icons/Recording/index.js.map +1 -1
- package/lib/module/Icons/WelcomeHand/assets/welcome-hand.png +0 -0
- package/lib/module/Icons/WelcomeHand/assets/welcome-hand@2x.png +0 -0
- package/lib/module/Icons/WelcomeHand/assets/welcome-hand@3x.png +0 -0
- package/lib/module/Icons/WelcomeHand/index.js +22 -0
- package/lib/module/Icons/WelcomeHand/index.js.map +1 -0
- package/lib/module/Icons/index.js +1 -0
- package/lib/module/Icons/index.js.map +1 -1
- package/lib/module/components/ChangeNameModalContent.js +25 -6
- package/lib/module/components/ChangeNameModalContent.js.map +1 -1
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsHeader.js +4 -3
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsHeader.js.map +1 -1
- package/lib/module/components/ChatAndParticipants/ParticipantsView.js +13 -12
- package/lib/module/components/ChatAndParticipants/ParticipantsView.js.map +1 -1
- package/lib/module/components/DisplayView.js +3 -1
- package/lib/module/components/DisplayView.js.map +1 -1
- package/lib/module/components/EndRoomModal.js +20 -0
- package/lib/module/components/EndRoomModal.js.map +1 -0
- package/lib/module/components/EndRoomModalContent.js +9 -2
- package/lib/module/components/EndRoomModalContent.js.map +1 -1
- package/lib/module/components/Footer.js +10 -2
- package/lib/module/components/Footer.js.map +1 -1
- package/lib/module/components/HMSDangerButton.js +2 -1
- package/lib/module/components/HMSDangerButton.js.map +1 -1
- package/lib/module/components/HMSHLSStreamLoading.js +5 -3
- package/lib/module/components/HMSHLSStreamLoading.js.map +1 -1
- package/lib/module/components/HMSKeyboardAvoidingView.js +6 -22
- package/lib/module/components/HMSKeyboardAvoidingView.js.map +1 -1
- package/lib/module/components/HMSLiveIndicator.js +3 -3
- package/lib/module/components/HMSLiveIndicator.js.map +1 -1
- package/lib/module/components/HMSLocalScreenshareNotification.js +1 -1
- package/lib/module/components/HMSManageLeave.js +7 -182
- package/lib/module/components/HMSManageLeave.js.map +1 -1
- package/lib/module/components/HMSManageRaiseHand.js +22 -10
- package/lib/module/components/HMSManageRaiseHand.js.map +1 -1
- package/lib/module/components/HMSNotification.js +4 -3
- package/lib/module/components/HMSNotification.js.map +1 -1
- package/lib/module/components/HMSNotifications.js +28 -2
- package/lib/module/components/HMSNotifications.js.map +1 -1
- package/lib/module/components/HMSOverlayChatView.js +7 -1
- package/lib/module/components/HMSOverlayChatView.js.map +1 -1
- package/lib/module/components/HMSPreviewHLSLiveIndicator.js +3 -2
- package/lib/module/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
- package/lib/module/components/HMSPreviewJoinButton.js +9 -4
- package/lib/module/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/module/components/HMSPreviewTile.js +1 -1
- package/lib/module/components/HMSPreviewTile.js.map +1 -1
- package/lib/module/components/HMSReconnectingNotification.js +24 -0
- package/lib/module/components/HMSReconnectingNotification.js.map +1 -0
- package/lib/module/components/HMSRecordingIndicator.js +4 -1
- package/lib/module/components/HMSRecordingIndicator.js.map +1 -1
- package/lib/module/components/HMSTerminalErrorNotification.js +57 -0
- package/lib/module/components/HMSTerminalErrorNotification.js.map +1 -0
- package/lib/module/components/HMSTextInput.js +3 -3
- package/lib/module/components/HMSTextInput.js.map +1 -1
- package/lib/module/components/LeaveRoomBottomSheet.js +167 -0
- package/lib/module/components/LeaveRoomBottomSheet.js.map +1 -0
- package/lib/module/components/Meeting.js +5 -1
- package/lib/module/components/Meeting.js.map +1 -1
- package/lib/module/components/MeetingScreenContent.js +3 -2
- package/lib/module/components/MeetingScreenContent.js.map +1 -1
- package/lib/module/components/PIPView.js +87 -14
- package/lib/module/components/PIPView.js.map +1 -1
- package/lib/module/components/Participants/MultiRoleParticipantsList.js +56 -0
- package/lib/module/components/Participants/MultiRoleParticipantsList.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsAccordian.js +51 -0
- package/lib/module/components/Participants/ParticipantsAccordian.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsAccordianExpanded.js +16 -0
- package/lib/module/components/Participants/ParticipantsAccordianExpanded.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsGroupFooter.js +53 -0
- package/lib/module/components/Participants/ParticipantsGroupFooter.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsGroupHeader.js +28 -27
- package/lib/module/components/Participants/ParticipantsGroupHeader.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsGroupOptions.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsItem.js +10 -18
- package/lib/module/components/Participants/ParticipantsItem.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsItemOptions.js +24 -2
- package/lib/module/components/Participants/ParticipantsItemOptions.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsList.js +156 -21
- package/lib/module/components/Participants/ParticipantsList.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsListFooter.js +35 -0
- package/lib/module/components/Participants/ParticipantsListFooter.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsSeachInput.js +2 -2
- package/lib/module/components/Participants/ParticipantsSeachInput.js.map +1 -1
- package/lib/module/components/Participants/index.js +1 -0
- package/lib/module/components/Participants/index.js.map +1 -1
- package/lib/module/components/PeerVideoTile/AvatarView.js +5 -5
- package/lib/module/components/PeerVideoTile/AvatarView.js.map +1 -1
- package/lib/module/components/PeerVideoTile/PeerAudioIndicator.js +14 -7
- package/lib/module/components/PeerVideoTile/PeerAudioIndicator.js.map +1 -1
- package/lib/module/components/PeerVideoTile/PeerMetadata.js +21 -11
- package/lib/module/components/PeerVideoTile/PeerMetadata.js.map +1 -1
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js +23 -7
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
- package/lib/module/components/Preview.js +6 -2
- package/lib/module/components/Preview.js.map +1 -1
- package/lib/module/components/PreviewForRoleChangeModal.js +2 -7
- package/lib/module/components/PreviewForRoleChangeModal.js.map +1 -1
- package/lib/module/components/RoomSettingsModalContent.js +54 -21
- package/lib/module/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/module/components/RoomSettingsModalDebugModeContent.js +1 -1
- package/lib/module/components/RoomSettingsModalDebugModeContent.js.map +1 -1
- package/lib/module/components/StopRecordingModalContent.js +4 -1
- package/lib/module/components/StopRecordingModalContent.js.map +1 -1
- package/lib/module/components/WebrtcView.js +2 -1
- package/lib/module/components/WebrtcView.js.map +1 -1
- package/lib/module/components/WelcomeInMeeting.js +29 -8
- package/lib/module/components/WelcomeInMeeting.js.map +1 -1
- package/lib/module/hooks-sdk.js +46 -1
- package/lib/module/hooks-sdk.js.map +1 -1
- package/lib/module/hooks-util.js +314 -143
- package/lib/module/hooks-util.js.map +1 -1
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/redux/actionTypes.js +10 -2
- package/lib/module/redux/actionTypes.js.map +1 -1
- package/lib/module/redux/actions/index.js +32 -1
- package/lib/module/redux/actions/index.js.map +1 -1
- package/lib/module/redux/reducers/appState.js +17 -1
- package/lib/module/redux/reducers/appState.js.map +1 -1
- package/lib/module/redux/reducers/hmsStates.js +191 -20
- package/lib/module/redux/reducers/hmsStates.js.map +1 -1
- package/lib/module/redux/reducers/userState.js +5 -1
- package/lib/module/redux/reducers/userState.js.map +1 -1
- package/lib/module/types.js +9 -0
- package/lib/module/types.js.map +1 -1
- package/lib/module/utils/functions.js.map +1 -1
- package/lib/module/utils/types.js +12 -0
- package/lib/module/utils/types.js.map +1 -1
- package/lib/module/utils.js +0 -6
- package/lib/module/utils.js.map +1 -1
- package/lib/typescript/HMSPrebuilt.d.ts +2 -16
- package/lib/typescript/HMSPrebuilt.d.ts.map +1 -1
- package/lib/typescript/HMSRoomSetup.d.ts.map +1 -1
- package/lib/typescript/Icons/Chevron/index.d.ts +1 -1
- package/lib/typescript/Icons/Chevron/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Hand/index.d.ts +1 -0
- package/lib/typescript/Icons/Hand/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Leave/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Recording/index.d.ts +1 -0
- package/lib/typescript/Icons/Recording/index.d.ts.map +1 -1
- package/lib/typescript/Icons/WelcomeHand/index.d.ts +7 -0
- package/lib/typescript/Icons/WelcomeHand/index.d.ts.map +1 -0
- package/lib/typescript/Icons/index.d.ts +1 -0
- package/lib/typescript/Icons/index.d.ts.map +1 -1
- package/lib/typescript/components/ChangeNameModalContent.d.ts.map +1 -1
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsHeader.d.ts.map +1 -1
- package/lib/typescript/components/ChatAndParticipants/ParticipantsView.d.ts.map +1 -1
- package/lib/typescript/components/DisplayView.d.ts.map +1 -1
- package/lib/typescript/components/EndRoomModal.d.ts +6 -0
- package/lib/typescript/components/EndRoomModal.d.ts.map +1 -0
- package/lib/typescript/components/EndRoomModalContent.d.ts.map +1 -1
- package/lib/typescript/components/Footer.d.ts +1 -0
- package/lib/typescript/components/Footer.d.ts.map +1 -1
- package/lib/typescript/components/HMSDangerButton.d.ts.map +1 -1
- package/lib/typescript/components/HMSHLSStreamLoading.d.ts.map +1 -1
- package/lib/typescript/components/HMSKeyboardAvoidingView.d.ts +1 -0
- package/lib/typescript/components/HMSKeyboardAvoidingView.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageLeave.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageRaiseHand.d.ts.map +1 -1
- package/lib/typescript/components/HMSNotification.d.ts +1 -0
- package/lib/typescript/components/HMSNotification.d.ts.map +1 -1
- package/lib/typescript/components/HMSNotifications.d.ts +1 -0
- package/lib/typescript/components/HMSNotifications.d.ts.map +1 -1
- package/lib/typescript/components/HMSOverlayChatView.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewHLSLiveIndicator.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewJoinButton.d.ts.map +1 -1
- package/lib/typescript/components/HMSReconnectingNotification.d.ts +5 -0
- package/lib/typescript/components/HMSReconnectingNotification.d.ts.map +1 -0
- package/lib/typescript/components/HMSRecordingIndicator.d.ts.map +1 -1
- package/lib/typescript/components/HMSTerminalErrorNotification.d.ts +10 -0
- package/lib/typescript/components/HMSTerminalErrorNotification.d.ts.map +1 -0
- package/lib/typescript/components/LeaveRoomBottomSheet.d.ts +6 -0
- package/lib/typescript/components/LeaveRoomBottomSheet.d.ts.map +1 -0
- package/lib/typescript/components/Meeting.d.ts.map +1 -1
- package/lib/typescript/components/PIPView.d.ts +2 -1
- package/lib/typescript/components/PIPView.d.ts.map +1 -1
- package/lib/typescript/components/Participants/MultiRoleParticipantsList.d.ts +7 -0
- package/lib/typescript/components/Participants/MultiRoleParticipantsList.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsAccordian.d.ts +11 -0
- package/lib/typescript/components/Participants/ParticipantsAccordian.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsAccordianExpanded.d.ts +9 -0
- package/lib/typescript/components/Participants/ParticipantsAccordianExpanded.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsGroupFooter.d.ts +9 -0
- package/lib/typescript/components/Participants/ParticipantsGroupFooter.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsGroupHeader.d.ts +6 -3
- package/lib/typescript/components/Participants/ParticipantsGroupHeader.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsGroupOptions.d.ts +0 -2
- package/lib/typescript/components/Participants/ParticipantsGroupOptions.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsItem.d.ts +3 -3
- package/lib/typescript/components/Participants/ParticipantsItem.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsItemOptions.d.ts +2 -2
- package/lib/typescript/components/Participants/ParticipantsItemOptions.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsList.d.ts +3 -4
- package/lib/typescript/components/Participants/ParticipantsList.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsListFooter.d.ts +6 -0
- package/lib/typescript/components/Participants/ParticipantsListFooter.d.ts.map +1 -0
- package/lib/typescript/components/Participants/index.d.ts +1 -0
- package/lib/typescript/components/Participants/index.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/PeerAudioIndicator.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/PeerMetadata.d.ts +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerMetadata.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts.map +1 -1
- package/lib/typescript/components/Preview.d.ts.map +1 -1
- package/lib/typescript/components/PreviewForRoleChangeModal.d.ts.map +1 -1
- package/lib/typescript/components/RoomSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/components/StopRecordingModalContent.d.ts.map +1 -1
- package/lib/typescript/components/WebrtcView.d.ts.map +1 -1
- package/lib/typescript/components/WelcomeInMeeting.d.ts.map +1 -1
- package/lib/typescript/hooks-sdk.d.ts +4 -0
- package/lib/typescript/hooks-sdk.d.ts.map +1 -1
- package/lib/typescript/hooks-util.d.ts +29 -26
- package/lib/typescript/hooks-util.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +2 -0
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/redux/actionTypes.d.ts +7 -1
- package/lib/typescript/redux/actionTypes.d.ts.map +1 -1
- package/lib/typescript/redux/actions/index.d.ts +36 -14
- package/lib/typescript/redux/actions/index.d.ts.map +1 -1
- package/lib/typescript/redux/index.d.ts +6 -8
- package/lib/typescript/redux/index.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/appState.d.ts +4 -5
- package/lib/typescript/redux/reducers/appState.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/hmsStates.d.ts +16 -3
- package/lib/typescript/redux/reducers/hmsStates.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/index.d.ts +6 -8
- package/lib/typescript/redux/reducers/index.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/userState.d.ts +2 -2
- package/lib/typescript/redux/reducers/userState.d.ts.map +1 -1
- package/lib/typescript/types.d.ts +79 -0
- package/lib/typescript/types.d.ts.map +1 -1
- package/lib/typescript/utils/functions.d.ts +0 -1
- package/lib/typescript/utils/functions.d.ts.map +1 -1
- package/lib/typescript/utils/types.d.ts +25 -0
- package/lib/typescript/utils/types.d.ts.map +1 -1
- package/lib/typescript/utils.d.ts +0 -5
- package/lib/typescript/utils.d.ts.map +1 -1
- package/package.json +3 -4
- package/src/HMSPrebuilt.tsx +35 -29
- package/src/HMSRoomSetup.tsx +105 -53
- package/src/Icons/Chevron/index.tsx +9 -2
- package/src/Icons/Hand/assets/hand-off.png +0 -0
- package/src/Icons/Hand/assets/hand-off@2x.png +0 -0
- package/src/Icons/Hand/assets/hand-off@3x.png +0 -0
- package/src/Icons/Hand/index.tsx +13 -3
- package/src/Icons/Leave/index.tsx +7 -1
- package/src/Icons/Recording/assets/recording-off.png +0 -0
- package/src/Icons/Recording/assets/recording-off@2x.png +0 -0
- package/src/Icons/Recording/assets/recording-off@3x.png +0 -0
- package/src/Icons/Recording/index.tsx +9 -2
- package/src/Icons/WelcomeHand/assets/welcome-hand.png +0 -0
- package/src/Icons/WelcomeHand/assets/welcome-hand@2x.png +0 -0
- package/src/Icons/WelcomeHand/assets/welcome-hand@3x.png +0 -0
- package/src/Icons/WelcomeHand/index.tsx +27 -0
- package/src/Icons/index.ts +1 -0
- package/src/components/ChangeNameModalContent.tsx +28 -9
- package/src/components/ChatAndParticipants/ChatAndParticipantsHeader.tsx +6 -3
- package/src/components/ChatAndParticipants/ParticipantsView.tsx +21 -13
- package/src/components/DisplayView.tsx +6 -0
- package/src/components/EndRoomModal.tsx +24 -0
- package/src/components/EndRoomModalContent.tsx +9 -2
- package/src/components/Footer.tsx +18 -2
- package/src/components/HMSDangerButton.tsx +2 -1
- package/src/components/HMSHLSStreamLoading.tsx +9 -3
- package/src/components/HMSKeyboardAvoidingView.tsx +8 -26
- package/src/components/HMSLiveIndicator.tsx +3 -3
- package/src/components/HMSLocalScreenshareNotification.tsx +1 -1
- package/src/components/HMSManageLeave.tsx +6 -229
- package/src/components/HMSManageRaiseHand.tsx +20 -13
- package/src/components/HMSNotification.tsx +4 -2
- package/src/components/HMSNotifications.tsx +41 -7
- package/src/components/HMSOverlayChatView.tsx +6 -1
- package/src/components/HMSPreviewHLSLiveIndicator.tsx +3 -2
- package/src/components/HMSPreviewJoinButton.tsx +15 -4
- package/src/components/HMSPreviewTile.tsx +1 -1
- package/src/components/HMSReconnectingNotification.tsx +27 -0
- package/src/components/HMSRecordingIndicator.tsx +3 -1
- package/src/components/HMSTerminalErrorNotification.tsx +70 -0
- package/src/components/HMSTextInput.tsx +3 -3
- package/src/components/LeaveRoomBottomSheet.tsx +199 -0
- package/src/components/Meeting.tsx +7 -0
- package/src/components/MeetingScreenContent.tsx +2 -2
- package/src/components/PIPView.tsx +124 -15
- package/src/components/Participants/MultiRoleParticipantsList.tsx +70 -0
- package/src/components/Participants/ParticipantsAccordian.tsx +70 -0
- package/src/components/Participants/ParticipantsAccordianExpanded.tsx +27 -0
- package/src/components/Participants/ParticipantsGroupFooter.tsx +65 -0
- package/src/components/Participants/ParticipantsGroupHeader.tsx +37 -37
- package/src/components/Participants/ParticipantsGroupOptions.tsx +1 -6
- package/src/components/Participants/ParticipantsItem.tsx +16 -33
- package/src/components/Participants/ParticipantsItemOptions.tsx +28 -6
- package/src/components/Participants/ParticipantsList.tsx +197 -34
- package/src/components/Participants/ParticipantsListFooter.tsx +45 -0
- package/src/components/Participants/ParticipantsSeachInput.tsx +2 -2
- package/src/components/Participants/index.ts +1 -0
- package/src/components/PeerVideoTile/AvatarView.tsx +5 -5
- package/src/components/PeerVideoTile/PeerAudioIndicator.tsx +17 -7
- package/src/components/PeerVideoTile/PeerMetadata.tsx +21 -12
- package/src/components/PeerVideoTile/PeerVideoTileView.tsx +28 -9
- package/src/components/Preview.tsx +23 -9
- package/src/components/PreviewForRoleChangeModal.tsx +2 -7
- package/src/components/RoomSettingsModalContent.tsx +49 -18
- package/src/components/RoomSettingsModalDebugModeContent.tsx +1 -1
- package/src/components/StopRecordingModalContent.tsx +3 -1
- package/src/components/WebrtcView.tsx +10 -1
- package/src/components/WelcomeInMeeting.tsx +33 -5
- package/src/hooks-sdk.ts +58 -0
- package/src/hooks-util.ts +462 -209
- package/src/index.ts +2 -0
- package/src/redux/actionTypes.ts +11 -1
- package/src/redux/actions/index.ts +36 -8
- package/src/redux/reducers/appState.ts +18 -1
- package/src/redux/reducers/hmsStates.ts +269 -36
- package/src/redux/reducers/userState.ts +7 -3
- package/src/types.ts +71 -0
- package/src/utils/functions.ts +0 -1
- package/src/utils/types.ts +29 -0
- package/src/utils.ts +0 -6
- package/lib/commonjs/assets/welcome.png +0 -0
- package/lib/module/assets/welcome.png +0 -0
- package/src/assets/welcome.png +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","ActivityIndicator","HMSNotification","useHMSRoomColorPalette","useHMSRoomStyle","NotificationTypes","HMSReconnectingNotification","on_surface_high","onSurfaceHigh","notificationStyle","theme","backgroundColor","palette","surface_default","createElement","id","RECONNECTING","autoDismiss","style","text","icon","size","color"],"sourceRoot":"../../../src","sources":["components/HMSReconnectingNotification.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,iBAAiB,QAAQ,cAAc;AAEhD,SAASC,eAAe,QAAQ,mBAAmB;AACnD,SAASC,sBAAsB,EAAEC,eAAe,QAAQ,eAAe;AACvE,SAASC,iBAAiB,QAAQ,UAAU;AAI5C,OAAO,MAAMC,2BAEZ,GAAGA,CAAA,KAAM;EACR,MAAM;IAAEC,eAAe,EAAEC;EAAc,CAAC,GAAGL,sBAAsB,CAAC,CAAC;EACnE,MAAMM,iBAAiB,GAAGL,eAAe,CAAEM,KAAK,KAAM;IACpDC,eAAe,EAAED,KAAK,CAACE,OAAO,CAACC;EACjC,CAAC,CAAC,CAAC;EAEH,oBACEb,KAAA,CAAAc,aAAA,CAACZ,eAAe;IACda,EAAE,EAAEV,iBAAiB,CAACW,YAAa;IACnCC,WAAW,EAAE,KAAM;IACnBC,KAAK,EAAET,iBAAkB;IACzBU,IAAI,EAAE,wDAAyD;IAC/DC,IAAI,eAAEpB,KAAA,CAAAc,aAAA,CAACb,iBAAiB;MAACoB,IAAI,EAAC,OAAO;MAACC,KAAK,EAAEd;IAAc,CAAE;EAAE,CAChE,CAAC;AAEN,CAAC"}
|
|
@@ -8,7 +8,10 @@ export const HMSRecordingIndicator = () => {
|
|
|
8
8
|
var _state$hmsStates$room;
|
|
9
9
|
return !!((_state$hmsStates$room = state.hmsStates.room) !== null && _state$hmsStates$room !== void 0 && (_state$hmsStates$room = _state$hmsStates$room.browserRecordingState) !== null && _state$hmsStates$room !== void 0 && _state$hmsStates$room.running);
|
|
10
10
|
});
|
|
11
|
-
const startingOrStoppingRecording = useSelector(state =>
|
|
11
|
+
const startingOrStoppingRecording = useSelector(state => {
|
|
12
|
+
var _state$hmsStates$room2;
|
|
13
|
+
return state.app.startingOrStoppingRecording || (((_state$hmsStates$room2 = state.hmsStates.room) === null || _state$hmsStates$room2 === void 0 ? void 0 : _state$hmsStates$room2.browserRecordingState.initialising) ?? false);
|
|
14
|
+
});
|
|
12
15
|
const {
|
|
13
16
|
on_surface_high: onSurfaceHighColor
|
|
14
17
|
} = useHMSRoomColorPalette();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useSelector","ActivityIndicator","StyleSheet","RecordingIcon","useHMSRoomColorPalette","useHMSRoomStyle","HMSRecordingIndicator","isRecordingOn","state","_state$hmsStates$room","hmsStates","room","browserRecordingState","running","startingOrStoppingRecording","app","on_surface_high","onSurfaceHighColor","iconStyles","theme","tintColor","palette","alert_error_default","createElement","size","color","style","styles","rightSpace","icon","create","width","height","marginRight"],"sourceRoot":"../../../src","sources":["components/HMSRecordingIndicator.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,WAAW,QAAQ,aAAa;AACzC,SAASC,iBAAiB,EAAEC,UAAU,QAAQ,cAAc;AAG5D,SAASC,aAAa,QAAQ,UAAU;AACxC,SAASC,sBAAsB,EAAEC,eAAe,QAAQ,eAAe;AAEvE,OAAO,MAAMC,qBAAqB,GAAGA,CAAA,KAAM;EACzC,MAAMC,aAAa,GAAGP,WAAW,CAC9BQ,KAAgB;IAAA,IAAAC,qBAAA;IAAA,OAAK,CAAC,GAAAA,qBAAA,GAACD,KAAK,CAACE,SAAS,CAACC,IAAI,cAAAF,qBAAA,gBAAAA,qBAAA,GAApBA,qBAAA,CAAsBG,qBAAqB,cAAAH,qBAAA,eAA3CA,qBAAA,CAA6CI,OAAO;EAAA,CAC9E,CAAC;EACD,MAAMC,2BAA2B,GAAGd,WAAW,CAC5CQ,KAAgB,
|
|
1
|
+
{"version":3,"names":["React","useSelector","ActivityIndicator","StyleSheet","RecordingIcon","useHMSRoomColorPalette","useHMSRoomStyle","HMSRecordingIndicator","isRecordingOn","state","_state$hmsStates$room","hmsStates","room","browserRecordingState","running","startingOrStoppingRecording","_state$hmsStates$room2","app","initialising","on_surface_high","onSurfaceHighColor","iconStyles","theme","tintColor","palette","alert_error_default","createElement","size","color","style","styles","rightSpace","icon","create","width","height","marginRight"],"sourceRoot":"../../../src","sources":["components/HMSRecordingIndicator.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,WAAW,QAAQ,aAAa;AACzC,SAASC,iBAAiB,EAAEC,UAAU,QAAQ,cAAc;AAG5D,SAASC,aAAa,QAAQ,UAAU;AACxC,SAASC,sBAAsB,EAAEC,eAAe,QAAQ,eAAe;AAEvE,OAAO,MAAMC,qBAAqB,GAAGA,CAAA,KAAM;EACzC,MAAMC,aAAa,GAAGP,WAAW,CAC9BQ,KAAgB;IAAA,IAAAC,qBAAA;IAAA,OAAK,CAAC,GAAAA,qBAAA,GAACD,KAAK,CAACE,SAAS,CAACC,IAAI,cAAAF,qBAAA,gBAAAA,qBAAA,GAApBA,qBAAA,CAAsBG,qBAAqB,cAAAH,qBAAA,eAA3CA,qBAAA,CAA6CI,OAAO;EAAA,CAC9E,CAAC;EACD,MAAMC,2BAA2B,GAAGd,WAAW,CAC5CQ,KAAgB;IAAA,IAAAO,sBAAA;IAAA,OACfP,KAAK,CAACQ,GAAG,CAACF,2BAA2B,KACpC,EAAAC,sBAAA,GAAAP,KAAK,CAACE,SAAS,CAACC,IAAI,cAAAI,sBAAA,uBAApBA,sBAAA,CAAsBH,qBAAqB,CAACK,YAAY,KAAI,KAAK,CAAC;EAAA,CACvE,CAAC;EAED,MAAM;IAAEC,eAAe,EAAEC;EAAmB,CAAC,GAAGf,sBAAsB,CAAC,CAAC;EAExE,MAAMgB,UAAU,GAAGf,eAAe,CAAEgB,KAAK,KAAM;IAC7CC,SAAS,EAAED,KAAK,CAACE,OAAO,CAACC;EAC3B,CAAC,CAAC,CAAC;EAEH,IAAIV,2BAA2B,EAAE;IAC/B,oBACEf,KAAA,CAAA0B,aAAA,CAACxB,iBAAiB;MAChByB,IAAI,EAAE,OAAQ;MACdC,KAAK,EAAER,kBAAmB;MAC1BS,KAAK,EAAEC,MAAM,CAACC;IAAW,CAC1B,CAAC;EAEN;EAEA,IAAIvB,aAAa,EAAE;IACjB,oBACER,KAAA,CAAA0B,aAAA,CAACtB,aAAa;MAACyB,KAAK,EAAE,CAACC,MAAM,CAACE,IAAI,EAAEF,MAAM,CAACC,UAAU,EAAEV,UAAU;IAAE,CAAE,CAAC;EAE1E;EAEA,OAAO,IAAI;AACb,CAAC;AAED,MAAMS,MAAM,GAAG3B,UAAU,CAAC8B,MAAM,CAAC;EAC/BD,IAAI,EAAE;IACJE,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE;EACV,CAAC;EACDJ,UAAU,EAAE;IACVK,WAAW,EAAE;EACf;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { StyleSheet, Text, TouchableOpacity } from 'react-native';
|
|
3
|
+
import { HMSNotification } from './HMSNotification';
|
|
4
|
+
import { AlertTriangleIcon } from '../Icons';
|
|
5
|
+
import { useHMSRoomStyleSheet, useLeaveMethods } from '../hooks-util';
|
|
6
|
+
import { OnLeaveReason } from '../utils/types';
|
|
7
|
+
import { COLORS } from '../utils/theme';
|
|
8
|
+
export const HMSTerminalErrorNotification = _ref => {
|
|
9
|
+
let {
|
|
10
|
+
id,
|
|
11
|
+
exception,
|
|
12
|
+
autoDismiss,
|
|
13
|
+
dismissDelay
|
|
14
|
+
} = _ref;
|
|
15
|
+
const {
|
|
16
|
+
leave
|
|
17
|
+
} = useLeaveMethods();
|
|
18
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
19
|
+
button: {
|
|
20
|
+
backgroundColor: theme.palette.alert_error_default
|
|
21
|
+
},
|
|
22
|
+
buttonText: {
|
|
23
|
+
color: COLORS.WHITE,
|
|
24
|
+
fontFamily: `${typography.font_family}-SemiBold`
|
|
25
|
+
}
|
|
26
|
+
}));
|
|
27
|
+
const handleLeaveRoomPress = () => {
|
|
28
|
+
leave(OnLeaveReason.NETWORK_ISSUES);
|
|
29
|
+
};
|
|
30
|
+
return /*#__PURE__*/React.createElement(HMSNotification, {
|
|
31
|
+
id: id,
|
|
32
|
+
icon: /*#__PURE__*/React.createElement(AlertTriangleIcon, null),
|
|
33
|
+
text: exception.description || 'Something went wrong!',
|
|
34
|
+
dismissDelay: dismissDelay,
|
|
35
|
+
autoDismiss: autoDismiss,
|
|
36
|
+
cta: /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
37
|
+
style: [styles.button, hmsRoomStyles.button],
|
|
38
|
+
onPress: handleLeaveRoomPress
|
|
39
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
40
|
+
style: [styles.buttonText, hmsRoomStyles.buttonText]
|
|
41
|
+
}, "Leave"))
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
const styles = StyleSheet.create({
|
|
45
|
+
button: {
|
|
46
|
+
paddingVertical: 8,
|
|
47
|
+
paddingHorizontal: 16,
|
|
48
|
+
borderRadius: 8,
|
|
49
|
+
marginRight: 16
|
|
50
|
+
},
|
|
51
|
+
buttonText: {
|
|
52
|
+
fontSize: 14,
|
|
53
|
+
lineHeight: 20,
|
|
54
|
+
letterSpacing: 0.25
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
//# sourceMappingURL=HMSTerminalErrorNotification.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","Text","TouchableOpacity","HMSNotification","AlertTriangleIcon","useHMSRoomStyleSheet","useLeaveMethods","OnLeaveReason","COLORS","HMSTerminalErrorNotification","_ref","id","exception","autoDismiss","dismissDelay","leave","hmsRoomStyles","theme","typography","button","backgroundColor","palette","alert_error_default","buttonText","color","WHITE","fontFamily","font_family","handleLeaveRoomPress","NETWORK_ISSUES","createElement","icon","text","description","cta","style","styles","onPress","create","paddingVertical","paddingHorizontal","borderRadius","marginRight","fontSize","lineHeight","letterSpacing"],"sourceRoot":"../../../src","sources":["components/HMSTerminalErrorNotification.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAE9B,SAASC,UAAU,EAAEC,IAAI,EAAEC,gBAAgB,QAAQ,cAAc;AAEjE,SAASC,eAAe,QAAQ,mBAAmB;AACnD,SAASC,iBAAiB,QAAQ,UAAU;AAC5C,SAASC,oBAAoB,EAAEC,eAAe,QAAQ,eAAe;AACrE,SAASC,aAAa,QAAQ,gBAAgB;AAC9C,SAASC,MAAM,QAAQ,gBAAgB;AASvC,OAAO,MAAMC,4BAEZ,GAAGC,IAAA,IAAkD;EAAA,IAAjD;IAAEC,EAAE;IAAEC,SAAS;IAAEC,WAAW;IAAEC;EAAa,CAAC,GAAAJ,IAAA;EAC/C,MAAM;IAAEK;EAAM,CAAC,GAAGT,eAAe,CAAC,CAAC;EAEnC,MAAMU,aAAa,GAAGX,oBAAoB,CAAC,CAACY,KAAK,EAAEC,UAAU,MAAM;IACjEC,MAAM,EAAE;MACNC,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InputFocused(true);
|
|
16
16
|
const handleInputBlur = () => setInputFocused(false);
|
|
17
17
|
const {
|
|
18
|
-
|
|
18
|
+
on_surface_medium: onSurfaceMediumColor,
|
|
19
19
|
on_surface_high: onSurfaceHighColor
|
|
20
20
|
} = useHMSRoomColorPalette();
|
|
21
21
|
const containerExists = resetProps.leftIcon || resetProps.rightIcon || resetProps.sendIcon;
|
|
@@ -49,7 +49,7 @@ export const HMSTextInput = _ref => {
|
|
|
49
49
|
},
|
|
50
50
|
// ICON STYLES
|
|
51
51
|
sendIcon: {
|
|
52
|
-
tintColor: theme.palette.
|
|
52
|
+
tintColor: theme.palette.on_surface_medium
|
|
53
53
|
},
|
|
54
54
|
focusedSendIcon: {
|
|
55
55
|
tintColor: theme.palette.on_surface_high
|
|
@@ -75,7 +75,7 @@ export const HMSTextInput = _ref => {
|
|
|
75
75
|
placeholder: resetProps.placeholder ?? 'Enter Name...',
|
|
76
76
|
autoCapitalize: resetProps.autoCapitalize ?? 'words',
|
|
77
77
|
autoCompleteType: resetProps.autoCompleteType ?? 'name',
|
|
78
|
-
placeholderTextColor: resetProps.placeholderTextColor ??
|
|
78
|
+
placeholderTextColor: resetProps.placeholderTextColor ?? onSurfaceMediumColor,
|
|
79
79
|
selectionColor: resetProps.selectionColor ?? onSurfaceHighColor,
|
|
80
80
|
onFocus: resetProps.onFocus ?? handleInputFocus,
|
|
81
81
|
onBlur: resetProps.onBlur ?? handleInputBlur
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Platform","StyleSheet","TextInput","TouchableOpacity","View","useHMSRoomColorPalette","useHMSRoomStyleSheet","SendIcon","HMSTextInput","_ref","value","onChangeText","style","focusedStyle","resetProps","inputFocused","setInputFocused","useState","handleInputFocus","handleInputBlur","
|
|
1
|
+
{"version":3,"names":["React","Platform","StyleSheet","TextInput","TouchableOpacity","View","useHMSRoomColorPalette","useHMSRoomStyleSheet","SendIcon","HMSTextInput","_ref","value","onChangeText","style","focusedStyle","resetProps","inputFocused","setInputFocused","useState","handleInputFocus","handleInputBlur","on_surface_medium","onSurfaceMediumColor","on_surface_high","onSurfaceHighColor","containerExists","leftIcon","rightIcon","sendIcon","hmsRoomStyles","theme","typography","input","backgroundColor","palette","surface_default","color","borderColor","fontFamily","font_family","childInput","focusedInput","primary_default","borderWidth","focusedChildInput","container","focusedContainer","tintColor","focusedSendIcon","textInputStyles","styles","textInputComp","createElement","_extends","placeholder","autoCapitalize","autoCompleteType","placeholderTextColor","selectionColor","onFocus","onBlur","containerStyles","containerStyle","focusedContainerStyle","sendIconButton","onPress","onSendIconPress","create","flex","height","overflow","paddingLeft","paddingRight","borderRadius","flexDirection","textAlignVertical","paddingHorizontal","fontSize","lineHeight","OS","undefined","letterSpacing","alignItems","justifyContent","marginLeft"],"sourceRoot":"../../../src","sources":["components/HMSTextInput.tsx"],"mappings":";AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SACEC,QAAQ,EACRC,UAAU,EACVC,SAAS,EACTC,gBAAgB,EAChBC,IAAI,QACC,cAAc;AAQrB,SAASC,sBAAsB,EAAEC,oBAAoB,QAAQ,eAAe;AAC5E,SAASC,QAAQ,QAAQ,UAAU;AAwBnC,OAAO,MAAMC,YAAyC,GAAGC,IAAA,IAMnD;EAAA,IANoD;IACxDC,KAAK;IACLC,YAAY;IACZC,KAAK;IACLC,YAAY;IACZ,GAAGC;EACL,CAAC,GAAAL,IAAA;EACC,MAAM,CAACM,YAAY,EAAEC,eAAe,CAAC,GAAGjB,KAAK,CAACkB,QAAQ,CAAC,KAAK,CAAC;EAE7D,MAAMC,gBAAgB,GAAGA,CAAA,KAAMF,eAAe,CAAC,IAAI,CAAC;EAEpD,MAAMG,eAAe,GAAGA,CAAA,KAAMH,eAAe,CAAC,KAAK,CAAC;EAEpD,MAAM;IACJI,iBAAiB,EAAEC,oBAAoB;IACvCC,eAAe,EAAEC;EACnB,CAAC,GAAGlB,sBAAsB,CAAC,CAAC;EAE5B,MAAMmB,eAAe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AE,EAAE;IACZC,UAAU,EAAE7E,QAAQ,CAAC8E,EAAE,KAAK,SAAS,GAAG,EAAE,GAAGC,SAAS;IACtDC,aAAa,EAAE;EACjB,CAAC;EACDjB,cAAc,EAAE;IACdkB,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { StyleSheet, Text, TouchableOpacity, View } from 'react-native';
|
|
3
|
+
import { useSelector } from 'react-redux';
|
|
4
|
+
import { LeaveIcon } from '../Icons';
|
|
5
|
+
import { useHMSRoomStyleSheet, useLeaveMethods, useModalType } from '../hooks-util';
|
|
6
|
+
import { BottomSheet } from './BottomSheet';
|
|
7
|
+
import { StopIcon } from '../Icons';
|
|
8
|
+
import { ModalTypes, OnLeaveReason } from '../utils/types';
|
|
9
|
+
|
|
10
|
+
// const HEADER_CONTENT_HEIGHT = 24 + 8 + 8 + 2; // ICON_SIZE + TOP_PADDING + BOTTOM_PADDING + TOP&BOTTOM_BORDER_WIDTH
|
|
11
|
+
// const HEADER_HEIGHT = 8 + HEADER_CONTENT_HEIGHT + 8; // TOP_HEADER_PADDING + HEADER_CONTENT_HEIGHT + BOTTOM_HEADER_PADDING
|
|
12
|
+
export const LeaveRoomBottomSheet = () => {
|
|
13
|
+
const canEndRoom = useSelector(state => {
|
|
14
|
+
var _state$hmsStates$loca;
|
|
15
|
+
return (_state$hmsStates$loca = state.hmsStates.localPeer) === null || _state$hmsStates$loca === void 0 || (_state$hmsStates$loca = _state$hmsStates$loca.role) === null || _state$hmsStates$loca === void 0 || (_state$hmsStates$loca = _state$hmsStates$loca.permissions) === null || _state$hmsStates$loca === void 0 ? void 0 : _state$hmsStates$loca.endRoom;
|
|
16
|
+
});
|
|
17
|
+
const canStream = useSelector(state => {
|
|
18
|
+
var _state$hmsStates$loca2;
|
|
19
|
+
return (_state$hmsStates$loca2 = state.hmsStates.localPeer) === null || _state$hmsStates$loca2 === void 0 || (_state$hmsStates$loca2 = _state$hmsStates$loca2.role) === null || _state$hmsStates$loca2 === void 0 || (_state$hmsStates$loca2 = _state$hmsStates$loca2.permissions) === null || _state$hmsStates$loca2 === void 0 ? void 0 : _state$hmsStates$loca2.hlsStreaming;
|
|
20
|
+
});
|
|
21
|
+
const isStreaming = useSelector(state => {
|
|
22
|
+
var _state$hmsStates$room;
|
|
23
|
+
return ((_state$hmsStates$room = state.hmsStates.room) === null || _state$hmsStates$room === void 0 || (_state$hmsStates$room = _state$hmsStates$room.hlsStreamingState) === null || _state$hmsStates$room === void 0 ? void 0 : _state$hmsStates$room.running) ?? false;
|
|
24
|
+
});
|
|
25
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
26
|
+
text: {
|
|
27
|
+
color: theme.palette.on_surface_high,
|
|
28
|
+
fontFamily: `${typography.font_family}-SemiBold`
|
|
29
|
+
},
|
|
30
|
+
subtext: {
|
|
31
|
+
color: theme.palette.on_surface_low,
|
|
32
|
+
fontFamily: `${typography.font_family}-Regular`
|
|
33
|
+
},
|
|
34
|
+
endButton: {
|
|
35
|
+
backgroundColor: theme.palette.alert_error_dim
|
|
36
|
+
},
|
|
37
|
+
endText: {
|
|
38
|
+
color: theme.palette.alert_error_brighter,
|
|
39
|
+
fontFamily: `${typography.font_family}-SemiBold`
|
|
40
|
+
},
|
|
41
|
+
endSubtext: {
|
|
42
|
+
color: theme.palette.alert_error_bright,
|
|
43
|
+
fontFamily: `${typography.font_family}-Regular`
|
|
44
|
+
},
|
|
45
|
+
endIcon: {
|
|
46
|
+
tintColor: theme.palette.alert_error_brighter
|
|
47
|
+
}
|
|
48
|
+
}));
|
|
49
|
+
const leavePopCloseAction = React.useRef(ModalTypes.DEFAULT);
|
|
50
|
+
const {
|
|
51
|
+
modalVisibleType,
|
|
52
|
+
handleModalVisibleType
|
|
53
|
+
} = useModalType();
|
|
54
|
+
const {
|
|
55
|
+
leave
|
|
56
|
+
} = useLeaveMethods();
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Closes the Leave Popup Menu
|
|
60
|
+
* No action is taken when the popup is hidden
|
|
61
|
+
*/
|
|
62
|
+
const onPopupDismiss = () => {
|
|
63
|
+
leavePopCloseAction.current = ModalTypes.DEFAULT;
|
|
64
|
+
handleModalVisibleType(ModalTypes.DEFAULT);
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Closes the Leave Popup Menu
|
|
69
|
+
* Leave Modal will open after the popup is hidden
|
|
70
|
+
*/
|
|
71
|
+
const onLeavePress = async () => {
|
|
72
|
+
leavePopCloseAction.current = ModalTypes.DEFAULT;
|
|
73
|
+
handleModalVisibleType(ModalTypes.DEFAULT);
|
|
74
|
+
await leave(OnLeaveReason.LEAVE);
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Closes the Leave Popup Menu
|
|
79
|
+
* End Session Modal will open after the popup is hidden
|
|
80
|
+
*/
|
|
81
|
+
const onEndSessionPress = async () => {
|
|
82
|
+
leavePopCloseAction.current = ModalTypes.END_ROOM;
|
|
83
|
+
handleModalVisibleType(ModalTypes.DEFAULT);
|
|
84
|
+
};
|
|
85
|
+
const onEndStreamPress = async () => {
|
|
86
|
+
leavePopCloseAction.current = ModalTypes.END_ROOM;
|
|
87
|
+
handleModalVisibleType(ModalTypes.DEFAULT);
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Handles action to take when the leave popup is hidden
|
|
92
|
+
*/
|
|
93
|
+
const handlePopupHide = () => {
|
|
94
|
+
if (leavePopCloseAction.current !== ModalTypes.DEFAULT) {
|
|
95
|
+
handleModalVisibleType(leavePopCloseAction.current);
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
return /*#__PURE__*/React.createElement(BottomSheet, {
|
|
99
|
+
isVisible: modalVisibleType === ModalTypes.LEAVE_ROOM,
|
|
100
|
+
containerStyle: styles.container,
|
|
101
|
+
dismissModal: onPopupDismiss,
|
|
102
|
+
onModalHide: handlePopupHide,
|
|
103
|
+
animationOutTiming: 700
|
|
104
|
+
}, /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
105
|
+
style: styles.button,
|
|
106
|
+
onPress: onLeavePress
|
|
107
|
+
}, /*#__PURE__*/React.createElement(LeaveIcon, {
|
|
108
|
+
style: styles.icon
|
|
109
|
+
}), /*#__PURE__*/React.createElement(View, {
|
|
110
|
+
style: styles.textContainer
|
|
111
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
112
|
+
style: [styles.text, hmsRoomStyles.text]
|
|
113
|
+
}, "Leave"), /*#__PURE__*/React.createElement(Text, {
|
|
114
|
+
style: [styles.subtext, hmsRoomStyles.subtext]
|
|
115
|
+
}, "Others will continue after you leave. You can join the session again."))), canStream && isStreaming ? /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
116
|
+
style: [styles.button, hmsRoomStyles.endButton],
|
|
117
|
+
onPress: onEndStreamPress
|
|
118
|
+
}, /*#__PURE__*/React.createElement(StopIcon, {
|
|
119
|
+
style: [styles.icon, hmsRoomStyles.endIcon]
|
|
120
|
+
}), /*#__PURE__*/React.createElement(View, {
|
|
121
|
+
style: styles.textContainer
|
|
122
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
123
|
+
style: [styles.text, hmsRoomStyles.endText]
|
|
124
|
+
}, "End Stream"), /*#__PURE__*/React.createElement(Text, {
|
|
125
|
+
style: [styles.subtext, hmsRoomStyles.endSubtext]
|
|
126
|
+
}, "The stream will end for everyone after they\u2019ve watched it."))) : canEndRoom ? /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
127
|
+
style: [styles.button, hmsRoomStyles.endButton],
|
|
128
|
+
onPress: onEndSessionPress
|
|
129
|
+
}, /*#__PURE__*/React.createElement(StopIcon, {
|
|
130
|
+
style: [styles.icon, hmsRoomStyles.endIcon]
|
|
131
|
+
}), /*#__PURE__*/React.createElement(View, {
|
|
132
|
+
style: styles.textContainer
|
|
133
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
134
|
+
style: [styles.text, hmsRoomStyles.endText]
|
|
135
|
+
}, "End Session"), /*#__PURE__*/React.createElement(Text, {
|
|
136
|
+
style: [styles.subtext, hmsRoomStyles.endSubtext]
|
|
137
|
+
}, "The session will end for everyone in the room immediately."))) : null));
|
|
138
|
+
};
|
|
139
|
+
const styles = StyleSheet.create({
|
|
140
|
+
container: {
|
|
141
|
+
paddingBottom: 0
|
|
142
|
+
},
|
|
143
|
+
button: {
|
|
144
|
+
flexDirection: 'row',
|
|
145
|
+
padding: 24
|
|
146
|
+
},
|
|
147
|
+
icon: {
|
|
148
|
+
width: 24,
|
|
149
|
+
height: 24,
|
|
150
|
+
marginRight: 16
|
|
151
|
+
},
|
|
152
|
+
textContainer: {
|
|
153
|
+
flex: 1
|
|
154
|
+
},
|
|
155
|
+
text: {
|
|
156
|
+
fontSize: 20,
|
|
157
|
+
lineHeight: 24,
|
|
158
|
+
letterSpacing: 0.15
|
|
159
|
+
},
|
|
160
|
+
subtext: {
|
|
161
|
+
fontSize: 14,
|
|
162
|
+
lineHeight: 20,
|
|
163
|
+
letterSpacing: 0.25,
|
|
164
|
+
marginTop: 4
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
//# sourceMappingURL=LeaveRoomBottomSheet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","Text","TouchableOpacity","View","useSelector","LeaveIcon","useHMSRoomStyleSheet","useLeaveMethods","useModalType","BottomSheet","StopIcon","ModalTypes","OnLeaveReason","LeaveRoomBottomSheet","canEndRoom","state","_state$hmsStates$loca","hmsStates","localPeer","role","permissions","endRoom","canStream","_state$hmsStates$loca2","hlsStreaming","isStreaming","_state$hmsStates$room","room","hlsStreamingState","running","hmsRoomStyles","theme","typography","text","color","palette","on_surface_high","fontFamily","font_family","subtext","on_surface_low","endButton","backgroundColor","alert_error_dim","endText","alert_error_brighter","endSubtext","alert_error_bright","endIcon","tintColor","leavePopCloseAction","useRef","DEFAULT","modalVisibleType","handleModalVisibleType","leave","onPopupDismiss","current","onLeavePress","LEAVE","onEndSessionPress","END_ROOM","onEndStreamPress","handlePopupHide","createElement","isVisible","LEAVE_ROOM","containerStyle","styles","container","dismissModal","onModalHide","animationOutTiming","style","button","onPress","icon","textContainer","create","paddingBottom","flexDirection","padding","width","height","marginRight","flex","fontSize","lineHeight","letterSpacing","marginTop"],"sourceRoot":"../../../src","sources":["components/LeaveRoomBottomSheet.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,UAAU,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,IAAI,QAAQ,cAAc;AACvE,SAASC,WAAW,QAAQ,aAAa;AAEzC,SAASC,SAAS,QAAQ,UAAU;AACpC,SAASC,oBAAoB,EAAEC,eAAe,EAAEC,YAAY,QAAQ,eAAe;AAEnF,SAASC,WAAW,QAAQ,eAAe;AAC3C,SAASC,QAAQ,QAAQ,UAAU;AACnC,SAASC,UAAU,EAAEC,aAAa,QAAQ,gBAAgB;;AAE1D;AACA;AAIA,OAAO,MAAMC,oBAAyD,GAAGA,CAAA,KAAM;EAC7E,MAAMC,UAAU,GAAGV,WAAW,CAC3BW,KAAgB;IAAA,IAAAC,qBAAA;IAAA,QAAAA,qBAAA,GAAKD,KAAK,CAACE,SAAS,CAACC,SAAS,cAAAF,qBAAA,gBAAAA,qBAAA,GAAzBA,qBAAA,CAA2BG,IAAI,cAAAH,qBAAA,gBAAAA,qBAAA,GAA/BA,qBAAA,CAAiCI,WAAW,cAAAJ,qBAAA,uBAA5CA,qBAAA,CAA8CK,OAAO;EAAA,CAC7E,CAAC;EACD,MAAMC,SAAS,GAAGlB,WAAW,CAC1BW,KAAgB;IAAA,IAAAQ,sBAAA;IAAA,QAAAA,sBAAA,GACfR,KAAK,CAACE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bQ,IAAI,EAAE;EACR,CAAC;EACDpD,IAAI,EAAE;IACJqD,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,aAAa,EAAE;EACjB,CAAC;EACDjD,OAAO,EAAE;IACP+C,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,aAAa,EAAE,IAAI;IACnBC,SAAS,EAAE;EACb;AACF,CAAC,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { StyleSheet, View } from 'react-native';
|
|
|
3
3
|
import { useSelector } from 'react-redux';
|
|
4
4
|
import { SafeAreaView } from 'react-native-safe-area-context';
|
|
5
5
|
import { useRTCStatsListeners } from '../utils/hooks';
|
|
6
|
-
import { clearPendingModalTasks, useFetchHMSRoles, useHMSMessages, useHMSNetworkQualityUpdate, useHMSPIPRoomLeave, useHMSReconnection, useHMSRemovedFromRoomUpdate, useHMSRoomStyle, useIsHLSViewer, usePIPListener } from '../hooks-util';
|
|
6
|
+
import { clearPendingModalTasks, useAutoPip, useBackButtonPress, useFetchHMSRoles, useHMSMessages, useHMSNetworkQualityUpdate, useHMSPIPRoomLeave, useHMSReconnection, useHMSRemovedFromRoomUpdate, useHMSRoomStyle, useIsHLSViewer, usePIPListener } from '../hooks-util';
|
|
7
7
|
import { MeetingScreenContent } from './MeetingScreenContent';
|
|
8
8
|
import { HMSHLSStreamLoading } from './HMSHLSStreamLoading';
|
|
9
9
|
export const Meeting = _ref => {
|
|
@@ -31,6 +31,10 @@ export const Meeting = _ref => {
|
|
|
31
31
|
|
|
32
32
|
// Subscribe to Peers Network quality updates
|
|
33
33
|
useHMSNetworkQualityUpdate();
|
|
34
|
+
useAutoPip(peerTrackNodes.length === 1);
|
|
35
|
+
|
|
36
|
+
// Handle Back button press and show leave room modal
|
|
37
|
+
useBackButtonPress();
|
|
34
38
|
|
|
35
39
|
// Clearing any pending modal opening tasks
|
|
36
40
|
React.useEffect(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","View","useSelector","SafeAreaView","useRTCStatsListeners","clearPendingModalTasks","useFetchHMSRoles","useHMSMessages","useHMSNetworkQualityUpdate","useHMSPIPRoomLeave","useHMSReconnection","useHMSRemovedFromRoomUpdate","useHMSRoomStyle","useIsHLSViewer","usePIPListener","MeetingScreenContent","HMSHLSStreamLoading","Meeting","_ref","peerTrackNodes","startingHLSStream","state","app","isHLSViewer","useEffect","containerStyles","theme","backgroundColor","palette","background_dim","createElement","Container","style","styles","container","edges","create","flex","flexDirection"],"sourceRoot":"../../../src","sources":["components/Meeting.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,WAAW,QAAQ,aAAa;AACzC,SAASC,YAAY,QAAQ,gCAAgC;AAG7D,SAASC,oBAAoB,QAAQ,gBAAgB;AACrD,SACEC,sBAAsB,EACtBC,gBAAgB,EAChBC,cAAc,EACdC,0BAA0B,EAC1BC,kBAAkB,EAClBC,kBAAkB,EAClBC,2BAA2B,EAC3BC,eAAe,EACfC,cAAc,EACdC,cAAc,QACT,eAAe;AACtB,SAASC,oBAAoB,QAAQ,wBAAwB;AAC7D,SAASC,mBAAmB,QAAQ,uBAAuB;AAO3D,OAAO,MAAMC,OAA+B,GAAGC,IAAA,IAAwB;EAAA,IAAvB;IAAEC;EAAe,CAAC,GAAAD,IAAA;EAChE,MAAME,iBAAiB,
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","useSelector","SafeAreaView","useRTCStatsListeners","clearPendingModalTasks","useAutoPip","useBackButtonPress","useFetchHMSRoles","useHMSMessages","useHMSNetworkQualityUpdate","useHMSPIPRoomLeave","useHMSReconnection","useHMSRemovedFromRoomUpdate","useHMSRoomStyle","useIsHLSViewer","usePIPListener","MeetingScreenContent","HMSHLSStreamLoading","Meeting","_ref","peerTrackNodes","startingHLSStream","state","app","isHLSViewer","length","useEffect","containerStyles","theme","backgroundColor","palette","background_dim","createElement","Container","style","styles","container","edges","create","flex","flexDirection"],"sourceRoot":"../../../src","sources":["components/Meeting.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,WAAW,QAAQ,aAAa;AACzC,SAASC,YAAY,QAAQ,gCAAgC;AAG7D,SAASC,oBAAoB,QAAQ,gBAAgB;AACrD,SACEC,sBAAsB,EACtBC,UAAU,EACVC,kBAAkB,EAClBC,gBAAgB,EAChBC,cAAc,EACdC,0BAA0B,EAC1BC,kBAAkB,EAClBC,kBAAkB,EAClBC,2BAA2B,EAC3BC,eAAe,EACfC,cAAc,EACdC,cAAc,QACT,eAAe;AACtB,SAASC,oBAAoB,QAAQ,wBAAwB;AAC7D,SAASC,mBAAmB,QAAQ,uBAAuB;AAO3D,OAAO,MAAMC,OAA+B,GAAGC,IAAA,IAAwB;EAAA,IAAvB;IAAEC;EAAe,CAAC,GAAAD,IAAA;EAChE,MAAME,iBAAiB,GAAGpB,WAAW,CAClCqB,KAAgB,IAAKA,KAAK,CAACC,GAAG,CAACF,iBAClC,CAAC;EAED,MAAMG,WAAW,GAAGV,cAAc,CAAC,CAAC;;EAEpC;;EAEAP,gBAAgB,CAAC,CAAC;EAElBC,cAAc,CAAC,CAAC;EAEhBG,kBAAkB,CAAC,CAAC;EAEpBC,2BAA2B,CAAC,CAAC;;EAE7B;EACAF,kBAAkB,CAAC,CAAC;;EAEpB;EACAK,cAAc,CAAC,CAAC;;EAEhB;EACAZ,oBAAoB,CAAC,CAAC;;EAEtB;EACAM,0BAA0B,CAAC,CAAC;EAE5BJ,UAAU,CAACe,cAAc,CAACK,MAAM,KAAK,CAAC,CAAC;;EAEvC;EACAnB,kBAAkB,CAAC,CAAC;;EAEpB;EACAR,KAAK,CAAC4B,SAAS,CAAC,MAAM;IACpB,OAAO,MAAM;MACXtB,sBAAsB,CAAC,CAAC;IAC1B,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EAEN,MAAMuB,eAAe,GAAGd,eAAe,CAAEe,KAAK,KAAM;IAClDC,eAAe,EAAED,KAAK,CAACE,OAAO,CAACC;EACjC,CAAC,CAAC,CAAC;EAEH,IAAIV,iBAAiB,EAAE;IACrB,oBAAOvB,KAAA,CAAAkC,aAAA,CAACf,mBAAmB,MAAE,CAAC;EAChC;EAEA,MAAMgB,SAAS,GAAGT,WAAW,GAAGxB,IAAI,GAAGE,YAAY;;EAEnD;AACF;AACA;AACA;AACA;AACA;EACE,oBACEJ,KAAA,CAAAkC,aAAA,CAACC,SAAS;IACRC,KAAK,EAAE,CAACC,MAAM,CAACC,SAAS,EAAET,eAAe,CAAE;IAC3CU,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO;EAAE,gBAEzBvC,KAAA,CAAAkC,aAAA,CAAChB,oBAAoB;IAACI,cAAc,EAAEA;EAAe,CAAE,CAG9C,CAAC;AAEhB,CAAC;AAED,MAAMe,MAAM,GAAGpC,UAAU,CAACuC,MAAM,CAAC;EAC/BF,SAAS,EAAE;IACTG,IAAI,EAAE,CAAC;IACPC,aAAa,EAAE;EACjB;AACF,CAAC,CAAC"}
|
|
@@ -11,7 +11,8 @@ import { HMSStatusBar } from './StatusBar';
|
|
|
11
11
|
import { AnimatedFooter } from './AnimatedFooter';
|
|
12
12
|
import { HLSFooter } from './HLSFooter';
|
|
13
13
|
import { AnimatedHeader } from './AnimatedHeader';
|
|
14
|
-
import { ReconnectionView } from './ReconnectionView';
|
|
14
|
+
// import { ReconnectionView } from './ReconnectionView';
|
|
15
|
+
|
|
15
16
|
export const MeetingScreenContent = _ref => {
|
|
16
17
|
let {
|
|
17
18
|
peerTrackNodes
|
|
@@ -82,7 +83,7 @@ export const MeetingScreenContent = _ref => {
|
|
|
82
83
|
})), /*#__PURE__*/React.createElement(DisplayView, {
|
|
83
84
|
offset: offset,
|
|
84
85
|
peerTrackNodes: peerTrackNodes
|
|
85
|
-
})
|
|
86
|
+
})), isPipModeActive ? null : isHLSViewer ? /*#__PURE__*/React.createElement(HLSFooter, {
|
|
86
87
|
offset: offset
|
|
87
88
|
}) : /*#__PURE__*/React.createElement(AnimatedFooter, {
|
|
88
89
|
offset: offset
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useCallback","useRef","useState","StyleSheet","Pressable","View","useSelector","Easing","cancelAnimation","runOnJS","useSharedValue","withTiming","PipModes","Footer","DisplayView","Header","useIsHLSViewer","HMSStatusBar","AnimatedFooter","HLSFooter","AnimatedHeader","
|
|
1
|
+
{"version":3,"names":["React","useCallback","useRef","useState","StyleSheet","Pressable","View","useSelector","Easing","cancelAnimation","runOnJS","useSharedValue","withTiming","PipModes","Footer","DisplayView","Header","useIsHLSViewer","HMSStatusBar","AnimatedFooter","HLSFooter","AnimatedHeader","MeetingScreenContent","_ref","peerTrackNodes","offset","isHLSViewer","timerIdRef","controlsHidden","setControlsHidden","isPipModeActive","state","app","pipModeStatus","ACTIVE","toggleControls","current","clearTimeout","value","duration","easing","ease","finished","createElement","onPress","style","styles","container","disabled","hidden","barStyle","reconnectionWrapper","transparent","showControls","create","flex","position","takeLessSpaceAsItCan"],"sourceRoot":"../../../src","sources":["components/MeetingScreenContent.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AAC5D,SAASC,UAAU,EAAEC,SAAS,EAAEC,IAAI,QAAQ,cAAc;AAC1D,SAASC,WAAW,QAAQ,aAAa;AACzC,SACEC,MAAM,EACNC,eAAe,EACfC,OAAO,EACPC,cAAc,EACdC,UAAU,QACL,yBAAyB;AAEhC,SAASC,QAAQ,QAAQ,gBAAgB;AAGzC,SAASC,MAAM,QAAQ,UAAU;AACjC,SAASC,WAAW,QAAQ,eAAe;AAC3C,SAASC,MAAM,QAAQ,UAAU;AACjC,SAASC,cAAc,QAAQ,eAAe;AAC9C,SAASC,YAAY,QAAQ,aAAa;AAC1C,SAAS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1
|
import * as React from 'react';
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
2
|
+
import { shallowEqual, useSelector } from 'react-redux';
|
|
3
|
+
import { View } from 'react-native';
|
|
4
|
+
import { PeerVideoTileView } from './PeerVideoTile/PeerVideoTileView';
|
|
5
|
+
import { COLORS } from '../utils/theme';
|
|
4
6
|
const PIPView = _ref => {
|
|
5
|
-
var _preferedPeerTrack$pe;
|
|
6
7
|
let {
|
|
7
|
-
|
|
8
|
+
peerTrackNodes,
|
|
9
|
+
customView
|
|
8
10
|
} = _ref;
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
const firstSSNode = useSelector(state => state.app.screensharePeerTrackNodes[0]);
|
|
12
|
+
if (customView) {
|
|
13
|
+
return customView;
|
|
14
|
+
}
|
|
15
|
+
if (firstSSNode) {
|
|
16
|
+
return /*#__PURE__*/React.createElement(PeerVideoTileView, {
|
|
17
|
+
key: firstSSNode.id,
|
|
18
|
+
peerTrackNode: firstSSNode
|
|
19
|
+
});
|
|
14
20
|
}
|
|
15
|
-
return /*#__PURE__*/React.createElement(
|
|
16
|
-
|
|
17
|
-
peer: preferedPeerTrack === null || preferedPeerTrack === void 0 ? void 0 : preferedPeerTrack.peer,
|
|
18
|
-
videoTrack: preferedPeerTrack === null || preferedPeerTrack === void 0 ? void 0 : preferedPeerTrack.track,
|
|
19
|
-
isDegraded: preferedPeerTrack === null || preferedPeerTrack === void 0 ? void 0 : preferedPeerTrack.isDegraded
|
|
21
|
+
return /*#__PURE__*/React.createElement(PIPPeerTiles, {
|
|
22
|
+
peerTrackNodes: peerTrackNodes
|
|
20
23
|
});
|
|
21
24
|
};
|
|
22
25
|
export default PIPView;
|
|
26
|
+
const PIPPeerTiles = _ref2 => {
|
|
27
|
+
let {
|
|
28
|
+
peerTrackNodes
|
|
29
|
+
} = _ref2;
|
|
30
|
+
const memoDominantSpeakerIdsRef = React.useRef([]);
|
|
31
|
+
const dominantSpeakerIds = useSelector(state => {
|
|
32
|
+
return state.hmsStates.activeSpeakers.slice(0, 3).map(speaker => speaker.peer.peerID);
|
|
33
|
+
}, shallowEqual);
|
|
34
|
+
if (dominantSpeakerIds.length > 0 && anyNewDominantSpeaker(memoDominantSpeakerIdsRef.current, dominantSpeakerIds)) {
|
|
35
|
+
memoDominantSpeakerIdsRef.current = dominantSpeakerIds;
|
|
36
|
+
}
|
|
37
|
+
const preferredPeerTrackNodes = React.useMemo(() => {
|
|
38
|
+
return getDominantSpeakers(memoDominantSpeakerIdsRef.current, peerTrackNodes);
|
|
39
|
+
}, [memoDominantSpeakerIdsRef.current, peerTrackNodes]);
|
|
40
|
+
if (preferredPeerTrackNodes.length === 0) {
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
44
|
+
style: {
|
|
45
|
+
flex: 1,
|
|
46
|
+
flexDirection: 'row',
|
|
47
|
+
backgroundColor: COLORS.BLACK
|
|
48
|
+
}
|
|
49
|
+
}, preferredPeerTrackNodes.map((node, index, arr) => {
|
|
50
|
+
const isFirst = index === 0;
|
|
51
|
+
const dividerWidth = arr.length > 2 ? 4 : 5;
|
|
52
|
+
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
53
|
+
key: node.id
|
|
54
|
+
}, isFirst ? null : /*#__PURE__*/React.createElement(View, {
|
|
55
|
+
style: {
|
|
56
|
+
height: '100%',
|
|
57
|
+
width: dividerWidth
|
|
58
|
+
}
|
|
59
|
+
}), /*#__PURE__*/React.createElement(View, {
|
|
60
|
+
style: {
|
|
61
|
+
flex: 1
|
|
62
|
+
}
|
|
63
|
+
}, /*#__PURE__*/React.createElement(PeerVideoTileView, {
|
|
64
|
+
peerTrackNode: node
|
|
65
|
+
})));
|
|
66
|
+
}));
|
|
67
|
+
};
|
|
68
|
+
function anyNewDominantSpeaker(oldSpeakers, newSpeakers) {
|
|
69
|
+
if (newSpeakers.length !== oldSpeakers.length) {
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
const uniques = new Set([...oldSpeakers, ...newSpeakers]);
|
|
73
|
+
return uniques.size > oldSpeakers.length;
|
|
74
|
+
}
|
|
75
|
+
function getDominantSpeakers(dominantSpeakerIds, peerTrackNodes) {
|
|
76
|
+
if (peerTrackNodes.length <= 3) {
|
|
77
|
+
return peerTrackNodes;
|
|
78
|
+
}
|
|
79
|
+
const list = peerTrackNodes.slice(0, 3);
|
|
80
|
+
let dominantSpeakerIdsCopy = dominantSpeakerIds.slice();
|
|
81
|
+
for (let i = 3; i < peerTrackNodes.length; i++) {
|
|
82
|
+
const peerTrackNode = peerTrackNodes[i];
|
|
83
|
+
if (dominantSpeakerIdsCopy.length <= 0 || !peerTrackNode) {
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
if (dominantSpeakerIdsCopy.includes(peerTrackNode.peer.peerID)) {
|
|
87
|
+
dominantSpeakerIdsCopy = dominantSpeakerIdsCopy.filter(speakerId => speakerId !== peerTrackNode.peer.peerID);
|
|
88
|
+
list.unshift(peerTrackNode);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
if (list.length > 3) {
|
|
92
|
+
list.length = 3;
|
|
93
|
+
}
|
|
94
|
+
return list;
|
|
95
|
+
}
|
|
23
96
|
//# sourceMappingURL=PIPView.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","
|
|
1
|
+
{"version":3,"names":["React","shallowEqual","useSelector","View","PeerVideoTileView","COLORS","PIPView","_ref","peerTrackNodes","customView","firstSSNode","state","app","screensharePeerTrackNodes","createElement","key","id","peerTrackNode","PIPPeerTiles","_ref2","memoDominantSpeakerIdsRef","useRef","dominantSpeakerIds","hmsStates","activeSpeakers","slice","map","speaker","peer","peerID","length","anyNewDominantSpeaker","current","preferredPeerTrackNodes","useMemo","getDominantSpeakers","style","flex","flexDirection","backgroundColor","BLACK","node","index","arr","isFirst","dividerWidth","Fragment","height","width","oldSpeakers","newSpeakers","uniques","Set","size","list","dominantSpeakerIdsCopy","i","includes","filter","speakerId","unshift"],"sourceRoot":"../../../src","sources":["components/PIPView.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,YAAY,EAAEC,WAAW,QAAQ,aAAa;AACvD,SAASC,IAAI,QAAQ,cAAc;AAGnC,SAASC,iBAAiB,QAAQ,mCAAmC;AAErE,SAASC,MAAM,QAAQ,gBAAgB;AAOvC,MAAMC,OAA+B,GAAGC,IAAA,IAAoC;EAAA,IAAnC;IAAEC,cAAc;IAAEC;EAAW,CAAC,GAAAF,IAAA;EACrE,MAAMG,WAAW,GAAGR,WAAW,CAC5BS,KAAgB,IAAKA,KAAK,CAACC,GAAG,CAACC,yBAAyB,CAAC,CAAC,CAC7D,CAAC;EAED,IAAIJ,UAAU,EAAE;IACd,OAAOA,UAAU;EACnB;EAEA,IAAIC,WAAW,EAAE;IACf,oBACEV,KAAA,CAAAc,aAAA,CAACV,iBAAiB;MAACW,GAAG,EAAEL,WAAW,CAACM,EAAG;MAACC,aAAa,EAAEP;IAAY,CAAE,CAAC;EAE1E;EAEA,oBAAOV,KAAA,CAAAc,aAAA,CAACI,YAAY;IAACV,cAAc,EAAEA;EAAe,CAAE,CAAC;AACzD,CAAC;AAED,eAAeF,OAAO;AAMtB,MAAMY,YAAyC,GAAGC,KAAA,IAAwB;EAAA,IAAvB;IAAEX;EAAe,CAAC,GAAAW,KAAA;EACnE,MAAMC,yBAAyB,GAAGpB,KAAK,CAACqB,MAAM,CAAW,EAAE,CAAC;EAE5D,MAAMC,kBAAkB,GAAGpB,WAAW,CAAES,KAAgB,IAAK;IAC3D,OAAOA,KAAK,CAACY,SAAS,CAACC,cAAc,CAClCC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CACXC,GAAG,CAAEC,OAAO,IAAKA,OAAO,CAACC,IAAI,CAACC,MAAM,CAAC;EAC1C,CAAC,EAAE5B,YAAY,CAAC;EAEhB,IACEqB,kBA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AEA,OAAOwB,IAAI;AACb"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ScrollView, StyleSheet, Text, View } from 'react-native';
|
|
3
|
+
import { useFilteredParticipants, useHMSRoomStyle } from '../../hooks-util';
|
|
4
|
+
import { ParticipantsAccordian } from './ParticipantsAccordian';
|
|
5
|
+
export const MultiRoleParticipantsList = _ref => {
|
|
6
|
+
let {
|
|
7
|
+
searchText,
|
|
8
|
+
onViewAllPress
|
|
9
|
+
} = _ref;
|
|
10
|
+
const {
|
|
11
|
+
data,
|
|
12
|
+
formattedSearchText,
|
|
13
|
+
expandedGroup,
|
|
14
|
+
setExpandedGroup
|
|
15
|
+
} = useFilteredParticipants(searchText);
|
|
16
|
+
const emptyTextStyles = useHMSRoomStyle((theme, typography) => ({
|
|
17
|
+
color: theme.palette.on_surface_medium,
|
|
18
|
+
fontFamily: `${typography.font_family}-SemiBold`
|
|
19
|
+
}));
|
|
20
|
+
const searchTextExists = formattedSearchText.length > 0;
|
|
21
|
+
if (searchTextExists && data.length <= 0) {
|
|
22
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
23
|
+
style: styles.emptyContainer
|
|
24
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
25
|
+
style: [styles.emptyText, emptyTextStyles]
|
|
26
|
+
}, "No results found..."));
|
|
27
|
+
}
|
|
28
|
+
return /*#__PURE__*/React.createElement(ScrollView, {
|
|
29
|
+
contentContainerStyle: {
|
|
30
|
+
paddingBottom: 40
|
|
31
|
+
}
|
|
32
|
+
}, data.map(item => /*#__PURE__*/React.createElement(ParticipantsAccordian, {
|
|
33
|
+
key: item.id,
|
|
34
|
+
open: expandedGroup === item.id,
|
|
35
|
+
data: item,
|
|
36
|
+
toggle: setExpandedGroup,
|
|
37
|
+
showViewAll: item.showViewAll,
|
|
38
|
+
onViewAllPress: onViewAllPress
|
|
39
|
+
})));
|
|
40
|
+
};
|
|
41
|
+
const styles = StyleSheet.create({
|
|
42
|
+
list: {
|
|
43
|
+
paddingBottom: 32
|
|
44
|
+
},
|
|
45
|
+
emptyContainer: {
|
|
46
|
+
flex: 1,
|
|
47
|
+
alignItems: 'center',
|
|
48
|
+
justifyContent: 'center'
|
|
49
|
+
},
|
|
50
|
+
emptyText: {
|
|
51
|
+
fontSize: 14,
|
|
52
|
+
lineHeight: 20,
|
|
53
|
+
letterSpacing: 0.25
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
//# sourceMappingURL=MultiRoleParticipantsList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","ScrollView","StyleSheet","Text","View","useFilteredParticipants","useHMSRoomStyle","ParticipantsAccordian","MultiRoleParticipantsList","_ref","searchText","onViewAllPress","data","formattedSearchText","expandedGroup","setExpandedGroup","emptyTextStyles","theme","typography","color","palette","on_surface_medium","fontFamily","font_family","searchTextExists","length","createElement","style","styles","emptyContainer","emptyText","contentContainerStyle","paddingBottom","map","item","key","id","open","toggle","showViewAll","create","list","flex","alignItems","justifyContent","fontSize","lineHeight","letterSpacing"],"sourceRoot":"../../../../src","sources":["components/Participants/MultiRoleParticipantsList.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,UAAU,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAEjE,SAASC,uBAAuB,EAAEC,eAAe,QAAQ,kBAAkB;AAC3E,SAASC,qBAAqB,QAAQ,yBAAyB;AAO/D,OAAO,MAAMC,yBAAmE,GAAGC,IAAA,IAG7E;EAAA,IAH8E;IAClFC,UAAU;IACVC;EACF,CAAC,GAAAF,IAAA;EACC,MAAM;IACJG,IAAI;IACJC,mBAAmB;IACnBC,aAAa;IACbC;EACF,CAAC,GAAGV,uBAAuB,CAACK,UAAU,CAAC;EAEvC,MAAMM,eAAe,GAAGV,eAAe,CAAC,CAACW,KAAK,EAAEC,UAAU,MAAM;IAC9DC,KAAK,EAAE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