@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
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { useSelector } from 'react-redux';
|
|
2
|
+
import { View } from 'react-native';
|
|
4
3
|
import { LeaveIcon } from '../Icons';
|
|
5
|
-
import { useHMSRoomStyleSheet,
|
|
4
|
+
import { useHMSRoomStyleSheet, useModalType } from '../hooks-util';
|
|
6
5
|
import { ModalTypes } from '../utils/types';
|
|
7
6
|
import { PressableIcon } from './PressableIcon';
|
|
8
|
-
import {
|
|
9
|
-
import { StopIcon } from '../Icons';
|
|
10
|
-
import { EndRoomModalContent } from './EndRoomModalContent';
|
|
7
|
+
import { COLORS } from '../utils/theme';
|
|
11
8
|
export const HMSManageLeave = props => {
|
|
12
9
|
// TODO: read current meeting joined state
|
|
13
10
|
const isMeetingJoined = true;
|
|
@@ -17,65 +14,23 @@ export const HMSManageLeave = props => {
|
|
|
17
14
|
return /*#__PURE__*/React.createElement(LeaveButton, props);
|
|
18
15
|
};
|
|
19
16
|
const LeaveButton = props => {
|
|
20
|
-
const leavePopCloseAction = React.useRef(ModalTypes.DEFAULT);
|
|
21
|
-
const [leavePopVisible, setLeavePopVisible] = React.useState(false);
|
|
22
|
-
const [leaveModalType, setLeaveModalType] = React.useState(ModalTypes.DEFAULT);
|
|
23
17
|
const {
|
|
24
|
-
|
|
25
|
-
} =
|
|
18
|
+
handleModalVisibleType
|
|
19
|
+
} = useModalType();
|
|
26
20
|
|
|
27
21
|
/**
|
|
28
22
|
* Opens the Leave Popup Menu
|
|
29
23
|
*/
|
|
30
24
|
const handleLeaveButtonPress = () => {
|
|
31
|
-
|
|
25
|
+
handleModalVisibleType(ModalTypes.LEAVE_ROOM);
|
|
32
26
|
};
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Closes the Leave Popup Menu
|
|
36
|
-
* Leave Modal will open after the popup is hidden
|
|
37
|
-
*/
|
|
38
|
-
const handleLeavePress = async () => {
|
|
39
|
-
setLeavePopVisible(false);
|
|
40
|
-
await leave();
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Closes the Leave Popup Menu
|
|
45
|
-
* End Session Modal will open after the popup is hidden
|
|
46
|
-
*/
|
|
47
|
-
const handleEndSessionPress = async () => {
|
|
48
|
-
leavePopCloseAction.current = ModalTypes.END_ROOM;
|
|
49
|
-
setLeavePopVisible(false);
|
|
50
|
-
};
|
|
51
|
-
const handleEndStreamPress = async () => {
|
|
52
|
-
leavePopCloseAction.current = ModalTypes.END_ROOM;
|
|
53
|
-
setLeavePopVisible(false);
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Closes the Leave Popup Menu
|
|
58
|
-
* No action is taken when the popup is hidden
|
|
59
|
-
*/
|
|
60
|
-
const dismissPopup = () => {
|
|
61
|
-
leavePopCloseAction.current = ModalTypes.DEFAULT;
|
|
62
|
-
setLeavePopVisible(false);
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Handles action to take when the leave popup is hidden
|
|
67
|
-
*/
|
|
68
|
-
const handlePopupHide = () => {
|
|
69
|
-
setLeaveModalType(leavePopCloseAction.current);
|
|
70
|
-
};
|
|
71
|
-
const dismissModal = () => setLeaveModalType(ModalTypes.DEFAULT);
|
|
72
27
|
const hmsRoomStyles = useHMSRoomStyleSheet(theme => ({
|
|
73
28
|
button: {
|
|
74
29
|
backgroundColor: theme.palette.alert_error_default,
|
|
75
30
|
borderColor: theme.palette.alert_error_default
|
|
76
31
|
},
|
|
77
32
|
icon: {
|
|
78
|
-
tintColor:
|
|
33
|
+
tintColor: COLORS.WHITE
|
|
79
34
|
}
|
|
80
35
|
}));
|
|
81
36
|
const leaveIconDelegate = 'leaveIconDelegate' in props && props.leaveIconDelegate ? props.leaveIconDelegate : /*#__PURE__*/React.createElement(LeaveIcon, {
|
|
@@ -85,136 +40,6 @@ const LeaveButton = props => {
|
|
|
85
40
|
return /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.cloneElement(leaveButtonDelegate, {
|
|
86
41
|
onPress: handleLeaveButtonPress,
|
|
87
42
|
style: hmsRoomStyles.button
|
|
88
|
-
}), /*#__PURE__*/React.createElement(LeaveBottomSheet, {
|
|
89
|
-
isVisible: leavePopVisible,
|
|
90
|
-
onEndSessionPress: handleEndSessionPress,
|
|
91
|
-
onLeavePress: handleLeavePress,
|
|
92
|
-
onPopupDismiss: dismissPopup,
|
|
93
|
-
onPopupHide: handlePopupHide,
|
|
94
|
-
onEndStreamPress: handleEndStreamPress
|
|
95
|
-
}), /*#__PURE__*/React.createElement(BottomSheet, {
|
|
96
|
-
dismissModal: dismissModal,
|
|
97
|
-
isVisible: leaveModalType === ModalTypes.END_ROOM,
|
|
98
|
-
animationOutTiming: 700
|
|
99
|
-
}, /*#__PURE__*/React.createElement(EndRoomModalContent, {
|
|
100
|
-
dismissModal: dismissModal
|
|
101
|
-
})));
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
// const HEADER_CONTENT_HEIGHT = 24 + 8 + 8 + 2; // ICON_SIZE + TOP_PADDING + BOTTOM_PADDING + TOP&BOTTOM_BORDER_WIDTH
|
|
105
|
-
// const HEADER_HEIGHT = 8 + HEADER_CONTENT_HEIGHT + 8; // TOP_HEADER_PADDING + HEADER_CONTENT_HEIGHT + BOTTOM_HEADER_PADDING
|
|
106
|
-
const LeaveBottomSheet = _ref => {
|
|
107
|
-
let {
|
|
108
|
-
isVisible,
|
|
109
|
-
onPopupDismiss,
|
|
110
|
-
onLeavePress,
|
|
111
|
-
onEndSessionPress,
|
|
112
|
-
onEndStreamPress,
|
|
113
|
-
onPopupHide
|
|
114
|
-
} = _ref;
|
|
115
|
-
const canEndRoom = useSelector(state => {
|
|
116
|
-
var _state$hmsStates$loca;
|
|
117
|
-
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;
|
|
118
|
-
});
|
|
119
|
-
const canStream = useSelector(state => {
|
|
120
|
-
var _state$hmsStates$loca2;
|
|
121
|
-
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;
|
|
122
|
-
});
|
|
123
|
-
const isStreaming = useSelector(state => {
|
|
124
|
-
var _state$hmsStates$room;
|
|
125
|
-
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;
|
|
126
|
-
});
|
|
127
|
-
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
128
|
-
text: {
|
|
129
|
-
color: theme.palette.on_surface_high,
|
|
130
|
-
fontFamily: `${typography.font_family}-SemiBold`
|
|
131
|
-
},
|
|
132
|
-
subtext: {
|
|
133
|
-
color: theme.palette.on_surface_low,
|
|
134
|
-
fontFamily: `${typography.font_family}-Regular`
|
|
135
|
-
},
|
|
136
|
-
endButton: {
|
|
137
|
-
backgroundColor: theme.palette.alert_error_dim
|
|
138
|
-
},
|
|
139
|
-
endText: {
|
|
140
|
-
color: theme.palette.alert_error_brighter,
|
|
141
|
-
fontFamily: `${typography.font_family}-SemiBold`
|
|
142
|
-
},
|
|
143
|
-
endSubtext: {
|
|
144
|
-
color: theme.palette.alert_error_bright,
|
|
145
|
-
fontFamily: `${typography.font_family}-Regular`
|
|
146
|
-
},
|
|
147
|
-
endIcon: {
|
|
148
|
-
tintColor: theme.palette.alert_error_brighter
|
|
149
|
-
}
|
|
150
43
|
}));
|
|
151
|
-
return /*#__PURE__*/React.createElement(BottomSheet, {
|
|
152
|
-
isVisible: isVisible,
|
|
153
|
-
containerStyle: leavePopupStyles.container,
|
|
154
|
-
dismissModal: onPopupDismiss,
|
|
155
|
-
onModalHide: onPopupHide,
|
|
156
|
-
animationOutTiming: 700
|
|
157
|
-
}, /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
158
|
-
style: leavePopupStyles.button,
|
|
159
|
-
onPress: onLeavePress
|
|
160
|
-
}, /*#__PURE__*/React.createElement(LeaveIcon, {
|
|
161
|
-
style: leavePopupStyles.icon
|
|
162
|
-
}), /*#__PURE__*/React.createElement(View, {
|
|
163
|
-
style: leavePopupStyles.textContainer
|
|
164
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
165
|
-
style: [leavePopupStyles.text, hmsRoomStyles.text]
|
|
166
|
-
}, "Leave"), /*#__PURE__*/React.createElement(Text, {
|
|
167
|
-
style: [leavePopupStyles.subtext, hmsRoomStyles.subtext]
|
|
168
|
-
}, "Others will continue after you leave. You can join the session again."))), canStream && isStreaming ? /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
169
|
-
style: [leavePopupStyles.button, hmsRoomStyles.endButton],
|
|
170
|
-
onPress: onEndStreamPress
|
|
171
|
-
}, /*#__PURE__*/React.createElement(StopIcon, {
|
|
172
|
-
style: [leavePopupStyles.icon, hmsRoomStyles.endIcon]
|
|
173
|
-
}), /*#__PURE__*/React.createElement(View, {
|
|
174
|
-
style: leavePopupStyles.textContainer
|
|
175
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
176
|
-
style: [leavePopupStyles.text, hmsRoomStyles.endText]
|
|
177
|
-
}, "End Stream"), /*#__PURE__*/React.createElement(Text, {
|
|
178
|
-
style: [leavePopupStyles.subtext, hmsRoomStyles.endSubtext]
|
|
179
|
-
}, "The stream will end for everyone after they\u2019ve watched it."))) : canEndRoom ? /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
180
|
-
style: [leavePopupStyles.button, hmsRoomStyles.endButton],
|
|
181
|
-
onPress: onEndSessionPress
|
|
182
|
-
}, /*#__PURE__*/React.createElement(StopIcon, {
|
|
183
|
-
style: [leavePopupStyles.icon, hmsRoomStyles.endIcon]
|
|
184
|
-
}), /*#__PURE__*/React.createElement(View, {
|
|
185
|
-
style: leavePopupStyles.textContainer
|
|
186
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
187
|
-
style: [leavePopupStyles.text, hmsRoomStyles.endText]
|
|
188
|
-
}, "End Session"), /*#__PURE__*/React.createElement(Text, {
|
|
189
|
-
style: [leavePopupStyles.subtext, hmsRoomStyles.endSubtext]
|
|
190
|
-
}, "The session will end for everyone in the room immediately."))) : null));
|
|
191
44
|
};
|
|
192
|
-
const leavePopupStyles = StyleSheet.create({
|
|
193
|
-
container: {
|
|
194
|
-
paddingBottom: 0
|
|
195
|
-
},
|
|
196
|
-
button: {
|
|
197
|
-
flexDirection: 'row',
|
|
198
|
-
padding: 24
|
|
199
|
-
},
|
|
200
|
-
icon: {
|
|
201
|
-
width: 24,
|
|
202
|
-
height: 24,
|
|
203
|
-
marginRight: 16
|
|
204
|
-
},
|
|
205
|
-
textContainer: {
|
|
206
|
-
flex: 1
|
|
207
|
-
},
|
|
208
|
-
text: {
|
|
209
|
-
fontSize: 20,
|
|
210
|
-
lineHeight: 24,
|
|
211
|
-
letterSpacing: 0.15
|
|
212
|
-
},
|
|
213
|
-
subtext: {
|
|
214
|
-
fontSize: 14,
|
|
215
|
-
lineHeight: 20,
|
|
216
|
-
letterSpacing: 0.25,
|
|
217
|
-
marginTop: 4
|
|
218
|
-
}
|
|
219
|
-
});
|
|
220
45
|
//# sourceMappingURL=HMSManageLeave.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","
|
|
1
|
+
{"version":3,"names":["React","View","LeaveIcon","useHMSRoomStyleSheet","useModalType","ModalTypes","PressableIcon","COLORS","HMSManageLeave","props","isMeetingJoined","createElement","LeaveButton","handleModalVisibleType","handleLeaveButtonPress","LEAVE_ROOM","hmsRoomStyles","theme","button","backgroundColor","palette","alert_error_default","borderColor","icon","tintColor","WHITE","leaveIconDelegate","style","leaveButtonDelegate","cloneElement","onPress"],"sourceRoot":"../../../src","sources":["components/HMSManageLeave.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,IAAI,QAAQ,cAAc;AAEnC,SAASC,SAAS,QAAQ,UAAU;AACpC,SAASC,oBAAoB,EAAEC,YAAY,QAAQ,eAAe;AAClE,SAASC,UAAU,QAAQ,gBAAgB;AAC3C,SAASC,aAAa,QAAQ,iBAAiB;AAC/C,SAASC,MAAM,QAAQ,gBAAgB;AAEvC,OAAO,MAAMC,cAA0C,GAAIC,KAAK,IAAK;EACnE;EACA,MAAMC,eAAe,GAAG,IAAI;EAE5B,IAAI,CAACA,eAAe,EAAE;IACpB,OAAO,IAAI;EACb;EAEA,oBAAOV,KAAA,CAAAW,aAAA,CAACC,WAAW,EAAKH,KAAQ,CAAC;AACnC,CAAC;AAUD,MAAMG,WAAuC,GAAIH,KAAK,IAAK;EACzD,MAAM;IAAEI;EAAuB,CAAC,GAAGT,YAAY,CAAC,CAAC;;EAEjD;AACF;AACA;EACE,MAAMU,sBAAsB,GAAGA,CAAA,KAAM;IACnCD,sBAAsB,CAACR,UAAU,CAACU,UAAU,CAAC;EAC/C,CAAC;EAED,MAAMC,aAAa,GAAGb,oBAAoB,CAAEc,KAAK,KAAM;IACrDC,MAAM,EAAE;MACNC,eAAe,EAAEF,KAAK,CAACG,OAAO,CAACC,mBAAmB;MAClDC,WAAW,EAAEL,KAAK,CAACG,OAAO,CAACC;IAC7B,CAAC;IACDE,IAAI,EAAE;MACJC,SAAS,EAAEjB,MAAM,CAACkB;IACpB;EACF,CAAC,CAAC,CAAC;EAEH,MAAMC,iBAAiB,GACrB,mBAAmB,IAAIjB,KAAK,IAAIA,KAAK,CAACiB,iBAAiB,GACrDjB,KAAK,CAACiB,iBAAiB,gBAEvB1B,KAAA,CAAAW,aAAA,CAACT,SAAS;IAACyB,KAAK,EAAEX,aAAa,CAACO;EAAK,CAAE,CACxC;EAEH,MAAMK,mBAAmB,GACvB,qBAAqB,IAAInB,KAAK,IAAIA,KAAK,CAACmB,mBAAmB,GACzDnB,KAAK,CAACmB,mBAAmB,gBAEzB5B,KAAA,CAAAW,aAAA,CAACL,aAAa,qBAAEN,KAAK,CAAC6B,YAAY,CAACH,iBAAiB,CAAiB,CACtE;EAEH,oBACE1B,KAAA,CAAAW,aAAA,CAACV,IAAI,qBACFD,KAAK,CAAC6B,YAAY,CAACD,mBAAmB,EAAE;IACvCE,OAAO,EAAEhB,sBAAsB;IAC/Ba,KAAK,EAAEX,aAAa,CAACE;EACvB,CAAC,CACG,CAAC;AAEX,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { useSelector
|
|
2
|
+
import { useSelector } from 'react-redux';
|
|
3
3
|
import { useHMSActions } from '../hooks-sdk';
|
|
4
4
|
import { PressableIcon } from './PressableIcon';
|
|
5
5
|
import { HandIcon } from '../Icons';
|
|
@@ -8,19 +8,31 @@ export const HMSManageRaiseHand = () => {
|
|
|
8
8
|
const hmsActions = useHMSActions();
|
|
9
9
|
const localPeerMetadata = useSelector(state => {
|
|
10
10
|
var _state$hmsStates$loca;
|
|
11
|
-
return
|
|
12
|
-
}
|
|
11
|
+
return (_state$hmsStates$loca = state.hmsStates.localPeer) === null || _state$hmsStates$loca === void 0 ? void 0 : _state$hmsStates$loca.metadata;
|
|
12
|
+
});
|
|
13
|
+
const parsedLocalPeerMetadata = parseMetadata(localPeerMetadata);
|
|
14
|
+
const isBRBOn = !!parsedLocalPeerMetadata.isBRBOn;
|
|
15
|
+
const isHandRaised = useSelector(state => {
|
|
16
|
+
var _state$hmsStates$loca2;
|
|
17
|
+
return !!((_state$hmsStates$loca2 = state.hmsStates.localPeer) !== null && _state$hmsStates$loca2 !== void 0 && _state$hmsStates$loca2.isHandRaised);
|
|
18
|
+
});
|
|
13
19
|
const toggleRaiseHand = async () => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
if (isBRBOn) {
|
|
21
|
+
const newMetadata = {
|
|
22
|
+
...parsedLocalPeerMetadata,
|
|
23
|
+
isBRBOn: false
|
|
24
|
+
};
|
|
25
|
+
await hmsActions.changeMetadata(newMetadata);
|
|
26
|
+
}
|
|
27
|
+
if (isHandRaised) {
|
|
28
|
+
await hmsActions.lowerLocalPeerHand();
|
|
29
|
+
} else {
|
|
30
|
+
await hmsActions.raiseLocalPeerHand();
|
|
31
|
+
}
|
|
20
32
|
};
|
|
21
33
|
return /*#__PURE__*/React.createElement(PressableIcon, {
|
|
22
34
|
onPress: toggleRaiseHand,
|
|
23
|
-
active:
|
|
35
|
+
active: isHandRaised
|
|
24
36
|
}, /*#__PURE__*/React.createElement(HandIcon, null));
|
|
25
37
|
};
|
|
26
38
|
//# sourceMappingURL=HMSManageRaiseHand.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useSelector","
|
|
1
|
+
{"version":3,"names":["React","useSelector","useHMSActions","PressableIcon","HandIcon","parseMetadata","HMSManageRaiseHand","hmsActions","localPeerMetadata","state","_state$hmsStates$loca","hmsStates","localPeer","metadata","parsedLocalPeerMetadata","isBRBOn","isHandRaised","_state$hmsStates$loca2","toggleRaiseHand","newMetadata","changeMetadata","lowerLocalPeerHand","raiseLocalPeerHand","createElement","onPress","active"],"sourceRoot":"../../../src","sources":["components/HMSManageRaiseHand.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,WAAW,QAAQ,aAAa;AAGzC,SAASC,aAAa,QAAQ,cAAc;AAC5C,SAASC,aAAa,QAAQ,iBAAiB;AAC/C,SAASC,QAAQ,QAAQ,UAAU;AACnC,SAASC,aAAa,QAAQ,oBAAoB;AAElD,OAAO,MAAMC,kBAAkB,GAAGA,CAAA,KAAM;EACtC,MAAMC,UAAU,GAAGL,aAAa,CAAC,CAAC;EAClC,MAAMM,iBAAiB,GAAGP,WAAW,CAClCQ,KAAgB;IAAA,IAAAC,qBAAA;IAAA,QAAAA,qBAAA,GAAKD,KAAK,CAACE,SAAS,CAACC,SAAS,cAAAF,qBAAA,uBAAzBA,qBAAA,CAA2BG,QAAQ;EAAA,CAC3D,CAAC;EACD,MAAMC,uBAAuB,GAAGT,aAAa,CAACG,iBAAiB,CAAC;EAChE,MAAMO,OAAO,GAAG,CAAC,CAACD,uBAAuB,CAACC,OAAO;EACjD,MAAMC,YAAY,GAAGf,WAAW,CAC7BQ,KAAgB;IAAA,IAAAQ,sBAAA;IAAA,OAAK,CAAC,GAAAA,sBAAA,GAACR,KAAK,CAACE,SAAS,CAACC,SAAS,cAAAK,sBAAA,eAAzBA,sBAAA,CAA2BD,YAAY;EAAA,CACjE,CAAC;EAED,MAAME,eAAe,GAAG,MAAAA,CAAA,KAAY;IAClC,IAAIH,OAAO,EAAE;MACX,MAAMI,WAAW,GAAG;QAClB,GAAGL,uBAAuB;QAC1BC,OAAO,EAAE;MACX,CAAC;MACD,MAAMR,UAAU,CAACa,cAAc,CAACD,WAAW,CAAC;IAC9C;IACA,IAAIH,YAAY,EAAE;MAChB,MAAMT,UAAU,CAACc,kBAAkB,CAAC,CAAC;IACvC,CAAC,MAAM;MACL,MAAMd,UAAU,CAACe,kBAAkB,CAAC,CAAC;IACvC;EACF,CAAC;EAED,oBACEtB,KAAA,CAAAuB,aAAA,CAACpB,aAAa;IAACqB,OAAO,EAAEN,eAAgB;IAACO,MAAM,EAAET;EAAa,gBAC5DhB,KAAA,CAAAuB,aAAA,CAACnB,QAAQ,MAAE,CACE,CAAC;AAEpB,CAAC"}
|
|
@@ -15,7 +15,8 @@ export const HMSNotification = _ref => {
|
|
|
15
15
|
cta,
|
|
16
16
|
onDismiss,
|
|
17
17
|
dismissDelay = 5000,
|
|
18
|
-
autoDismiss = true
|
|
18
|
+
autoDismiss = true,
|
|
19
|
+
dismissable = false
|
|
19
20
|
} = _ref;
|
|
20
21
|
const dispatch = useDispatch();
|
|
21
22
|
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
@@ -27,7 +28,7 @@ export const HMSNotification = _ref => {
|
|
|
27
28
|
fontFamily: `${typography.font_family}-SemiBold`
|
|
28
29
|
}
|
|
29
30
|
}));
|
|
30
|
-
const dismissNotification = onDismiss || (autoDismiss ? () => {
|
|
31
|
+
const dismissNotification = onDismiss || (autoDismiss || dismissable ? () => {
|
|
31
32
|
dispatch(removeNotification(id));
|
|
32
33
|
} : null);
|
|
33
34
|
const notification = /*#__PURE__*/React.createElement(View, {
|
|
@@ -43,7 +44,7 @@ export const HMSNotification = _ref => {
|
|
|
43
44
|
}, cta, dismissNotification ? /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
44
45
|
onPress: dismissNotification
|
|
45
46
|
}, /*#__PURE__*/React.createElement(CloseIcon, null)) : null));
|
|
46
|
-
if (dismissNotification) {
|
|
47
|
+
if (dismissNotification && autoDismiss) {
|
|
47
48
|
return /*#__PURE__*/React.createElement(UnmountAfterDelay, {
|
|
48
49
|
visible: true,
|
|
49
50
|
onUnmount: dismissNotification,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useDispatch","StyleSheet","Text","TouchableOpacity","View","useHMSRoomStyleSheet","CloseIcon","UnmountAfterDelay","removeNotification","HMSNotification","_ref","id","text","icon","style","textStyle","cta","onDismiss","dismissDelay","autoDismiss","dispatch","hmsRoomStyles","theme","typography","container","backgroundColor","palette","surface_dim","color","on_surface_high","fontFamily","font_family","dismissNotification","notification","createElement","styles","leftWrapper","rightWrapper","onPress","visible","onUnmount","delay","create","flex","elevation","borderRadius","flexDirection","padding","paddingLeft","marginHorizontal","justifyContent","alignItems","marginLeft","marginRight","flexShrink","fontSize","lineHeight","letterSpacing"],"sourceRoot":"../../../src","sources":["components/HMSNotification.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,WAAW,QAAQ,aAAa;AACzC,SAASC,UAAU,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,IAAI,QAAQ,cAAc;AAGvE,SAASC,oBAAoB,QAAQ,eAAe;AACpD,SAASC,SAAS,QAAQ,UAAU;AACpC,SAASC,iBAAiB,QAAQ,qBAAqB;AACvD,SAASC,kBAAkB,QAAQ,kBAAkB;
|
|
1
|
+
{"version":3,"names":["React","useDispatch","StyleSheet","Text","TouchableOpacity","View","useHMSRoomStyleSheet","CloseIcon","UnmountAfterDelay","removeNotification","HMSNotification","_ref","id","text","icon","style","textStyle","cta","onDismiss","dismissDelay","autoDismiss","dismissable","dispatch","hmsRoomStyles","theme","typography","container","backgroundColor","palette","surface_dim","color","on_surface_high","fontFamily","font_family","dismissNotification","notification","createElement","styles","leftWrapper","rightWrapper","onPress","visible","onUnmount","delay","create","flex","elevation","borderRadius","flexDirection","padding","paddingLeft","marginHorizontal","justifyContent","alignItems","marginLeft","marginRight","flexShrink","fontSize","lineHeight","letterSpacing"],"sourceRoot":"../../../src","sources":["components/HMSNotification.tsx"],"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BK,UAAU,EAAE;EACd,CAAC;EACDd,YAAY,EAAE;IACZS,aAAa,EAAE,KAAK;IACpBK,UAAU,EAAE,QAAQ;IACpBC,UAAU,EAAE;EACd,CAAC;EACDxC,IAAI,EAAE;IACJyC,WAAW,EAAE;EACf,CAAC;EACD1C,IAAI,EAAE;IACJ2C,UAAU,EAAE,CAAC;IACbC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,aAAa,EAAE;EACjB;AACF,CAAC,CAAC"}
|
|
@@ -4,7 +4,11 @@ import { StyleSheet, View } from 'react-native';
|
|
|
4
4
|
import { HMSLocalScreenshareNotification } from './HMSLocalScreenshareNotification';
|
|
5
5
|
import { HMSHandRaiseNotification } from './HMSHandRaiseNotification';
|
|
6
6
|
import { HMSRoleChangeDeclinedNotification } from './HMSRoleChangeDeclinedNotification';
|
|
7
|
-
import { NotificationTypes } from '../
|
|
7
|
+
import { NotificationTypes } from '../types';
|
|
8
|
+
import { HMSTerminalErrorNotification } from './HMSTerminalErrorNotification';
|
|
9
|
+
import { HMSNotification } from './HMSNotification';
|
|
10
|
+
import { AlertTriangleIcon } from '../Icons';
|
|
11
|
+
import { HMSReconnectingNotification } from './HMSReconnectingNotification';
|
|
8
12
|
const LOCAL_SCREENSHARE_PAYLOAD = {
|
|
9
13
|
id: NotificationTypes.LOCAL_SCREENSHARE,
|
|
10
14
|
type: NotificationTypes.LOCAL_SCREENSHARE
|
|
@@ -66,7 +70,7 @@ export const HMSNotifications = () => {
|
|
|
66
70
|
}, atBottom ? null : styles.notificationWrapper, atBottom ? null : {
|
|
67
71
|
bottom: index * 16
|
|
68
72
|
}]
|
|
69
|
-
}, notification.type === NotificationTypes.LOCAL_SCREENSHARE ? /*#__PURE__*/React.createElement(HMSLocalScreenshareNotification, null) : notification.type === NotificationTypes.HAND_RAISE && 'peer' in notification ? /*#__PURE__*/React.createElement(HMSHandRaiseNotification, {
|
|
73
|
+
}, notification.type === NotificationTypes.LOCAL_SCREENSHARE ? /*#__PURE__*/React.createElement(HMSLocalScreenshareNotification, null) : notification.type === NotificationTypes.RECONNECTING ? /*#__PURE__*/React.createElement(HMSReconnectingNotification, null) : notification.type === NotificationTypes.HAND_RAISE && 'peer' in notification ? /*#__PURE__*/React.createElement(HMSHandRaiseNotification, {
|
|
70
74
|
id: notification.id,
|
|
71
75
|
peer: notification.peer,
|
|
72
76
|
autoDismiss: atTop,
|
|
@@ -76,9 +80,31 @@ export const HMSNotifications = () => {
|
|
|
76
80
|
peerName: notification.peer.name,
|
|
77
81
|
autoDismiss: atTop,
|
|
78
82
|
dismissDelay: 10000
|
|
83
|
+
}) : notification.type === NotificationTypes.TERMINAL_ERROR && 'exception' in notification ? /*#__PURE__*/React.createElement(HMSTerminalErrorNotification, {
|
|
84
|
+
id: notification.id,
|
|
85
|
+
exception: notification.exception,
|
|
86
|
+
autoDismiss: false
|
|
87
|
+
}) : notification.type === NotificationTypes.ERROR && 'message' in notification ? /*#__PURE__*/React.createElement(HMSNotification, {
|
|
88
|
+
icon: /*#__PURE__*/React.createElement(AlertTriangleIcon, {
|
|
89
|
+
type: "line"
|
|
90
|
+
}),
|
|
91
|
+
id: notification.id,
|
|
92
|
+
text: notification.message,
|
|
93
|
+
autoDismiss: false,
|
|
94
|
+
dismissable: true
|
|
79
95
|
}) : null);
|
|
80
96
|
}));
|
|
81
97
|
};
|
|
98
|
+
export const useHMSNotificationsHeight = () => {
|
|
99
|
+
const numberOfNotifications = useSelector(state => {
|
|
100
|
+
const allNotifications = state.app.notifications;
|
|
101
|
+
const isLocalScreenShared = state.hmsStates.isLocalScreenShared;
|
|
102
|
+
return Math.min(allNotifications.length, isLocalScreenShared ? 2 : 3) + (isLocalScreenShared ? 1 : 0);
|
|
103
|
+
});
|
|
104
|
+
if (numberOfNotifications === 0) return 0;
|
|
105
|
+
return 8 + (numberOfNotifications - 1) * 16 + 56; // marginBottom + calculated paddingTop + content
|
|
106
|
+
};
|
|
107
|
+
|
|
82
108
|
const styles = StyleSheet.create({
|
|
83
109
|
absoluteContainer: {
|
|
84
110
|
position: 'relative',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","shallowEqual","useSelector","StyleSheet","View","HMSLocalScreenshareNotification","HMSHandRaiseNotification","HMSRoleChangeDeclinedNotification","NotificationTypes","LOCAL_SCREENSHARE_PAYLOAD","id","LOCAL_SCREENSHARE","type","HMSNotifications","isLocalScreenShared","state","hmsStates","notifications","allNotifications","app","list","push","length","firstNotification","secondNotification","thirdNotification","createElement","style","styles","absoluteContainer","paddingTop","map","notification","index","arr","atTop","atBottom","key","transform","scale","getScale","notificationWrapper","bottom","HAND_RAISE","peer","autoDismiss","dismissDelay","ROLE_CHANGE_DECLINED","peerName","name","create","position","marginBottom","width","totalItem","current"],"sourceRoot":"../../../src","sources":["components/HMSNotifications.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,YAAY,EAAEC,WAAW,QAAQ,aAAa;AACvD,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;
|
|
1
|
+
{"version":3,"names":["React","shallowEqual","useSelector","StyleSheet","View","HMSLocalScreenshareNotification","HMSHandRaiseNotification","HMSRoleChangeDeclinedNotification","NotificationTypes","HMSTerminalErrorNotification","HMSNotification","AlertTriangleIcon","HMSReconnectingNotification","LOCAL_SCREENSHARE_PAYLOAD","id","LOCAL_SCREENSHARE","type","HMSNotifications","isLocalScreenShared","state","hmsStates","notifications","allNotifications","app","list","push","length","firstNotification","secondNotification","thirdNotification","createElement","style","styles","absoluteContainer","paddingTop","map","notification","index","arr","atTop","atBottom","key","transform","scale","getScale","notificationWrapper","bottom","RECONNECTING","HAND_RAISE","peer","autoDismiss","dismissDelay","ROLE_CHANGE_DECLINED","peerName","name","TERMINAL_ERROR","exception","ERROR","icon","text","message","dismissable","useHMSNotificationsHeight","numberOfNotifications","Math","min","create","position","marginBottom","width","totalItem","current"],"sourceRoot":"../../../src","sources":["components/HMSNotifications.tsx"],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;EACDxB,mBAAmB,EAAE;IACnBsB,QAAQ,EAAE,UAAU;IACpBE,KAAK,EAAE;EACT;AACF,CAAC,CAAC;AAEF,MAAMzB,QAAQ,GAAGA,CAAC0B,SAAiB,EAAEC,OAAe,KAAa;EAC/D,IAAID,SAAS,KAAK,CAAC,EAAE;IACnB,OAAO,CAAC;EACV;EAEA,IAAIA,SAAS,KAAK,CAAC,EAAE;IACnB,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAACC,OAAO,CAAC;EAC3B;EAEA,IAAID,SAAS,KAAK,CAAC,EAAE;IACnB,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAACC,OAAO,CAAC;EACjC;EAEA,OAAO,CAAC;AACV,CAAC"}
|
|
@@ -5,10 +5,16 @@ import MaskedView from '@react-native-masked-view/masked-view';
|
|
|
5
5
|
import { HMSKeyboardAvoidingView } from './HMSKeyboardAvoidingView';
|
|
6
6
|
import { HMSSendMessageInput } from './HMSSendMessageInput';
|
|
7
7
|
import { HMSHLSMessageList } from './HMSHLSMessageList';
|
|
8
|
+
import { useFooterHeight } from './Footer';
|
|
9
|
+
import { useHMSNotificationsHeight } from './HMSNotifications';
|
|
8
10
|
const colors = ['rgba(0, 0, 0, 0)', 'rgba(255, 255, 255, 1)', 'rgba(255, 255, 255, 1)'];
|
|
9
11
|
const colorLocations = [0, 0.4, 1];
|
|
10
12
|
export const HLSChatView = () => {
|
|
11
|
-
|
|
13
|
+
const footerHeight = useFooterHeight();
|
|
14
|
+
const hmsNotificationsHeight = useHMSNotificationsHeight();
|
|
15
|
+
return /*#__PURE__*/React.createElement(HMSKeyboardAvoidingView, {
|
|
16
|
+
bottomOffset: footerHeight + hmsNotificationsHeight
|
|
17
|
+
}, /*#__PURE__*/React.createElement(MaskedView, {
|
|
12
18
|
maskElement: /*#__PURE__*/React.createElement(LinearGradient, {
|
|
13
19
|
pointerEvents: "box-none",
|
|
14
20
|
style: StyleSheet.absoluteFill,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","LinearGradient","MaskedView","HMSKeyboardAvoidingView","HMSSendMessageInput","HMSHLSMessageList","colors","colorLocations","HLSChatView","createElement","maskElement","pointerEvents","style","absoluteFill","locations"],"sourceRoot":"../../../src","sources":["components/HMSOverlayChatView.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,UAAU,QAAQ,cAAc;AACzC,OAAOC,cAAc,MAAM,8BAA8B;AACzD,OAAOC,UAAU,MAAM,uCAAuC;AAE9D,SAASC,uBAAuB,QAAQ,2BAA2B;AACnE,SAASC,mBAAmB,QAAQ,uBAAuB;AAC3D,SAASC,iBAAiB,QAAQ,qBAAqB;
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","LinearGradient","MaskedView","HMSKeyboardAvoidingView","HMSSendMessageInput","HMSHLSMessageList","useFooterHeight","useHMSNotificationsHeight","colors","colorLocations","HLSChatView","footerHeight","hmsNotificationsHeight","createElement","bottomOffset","maskElement","pointerEvents","style","absoluteFill","locations"],"sourceRoot":"../../../src","sources":["components/HMSOverlayChatView.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,UAAU,QAAQ,cAAc;AACzC,OAAOC,cAAc,MAAM,8BAA8B;AACzD,OAAOC,UAAU,MAAM,uCAAuC;AAE9D,SAASC,uBAAuB,QAAQ,2BAA2B;AACnE,SAASC,mBAAmB,QAAQ,uBAAuB;AAC3D,SAASC,iBAAiB,QAAQ,qBAAqB;AACvD,SAASC,eAAe,QAAQ,UAAU;AAC1C,SAASC,yBAAyB,QAAQ,oBAAoB;AAE9D,MAAMC,MAAM,GAAG,CACb,kBAAkB,EAClB,wBAAwB,EACxB,wBAAwB,CACzB;AACD,MAAMC,cAAc,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;AAElC,OAAO,MAAMC,WAAW,GAAGA,CAAA,KAAM;EAC/B,MAAMC,YAAY,GAAGL,eAAe,CAAC,CAAC;EACtC,MAAMM,sBAAsB,GAAGL,yBAAyB,CAAC,CAAC;EAE1D,oBACER,KAAA,CAAAc,aAAA,CAACV,uBAAuB;IAACW,YAAY,EAAEH,YAAY,GAAGC;EAAuB,gBAC3Eb,KAAA,CAAAc,aAAA,CAACX,UAAU;IACTa,WAAW,eACThB,KAAA,CAAAc,aAAA,CAACZ,cAAc;MACbe,aAAa,EAAC,UAAU;MACxBC,KAAK,EAAEjB,UAAU,CAACkB,YAAa;MAC/BV,MAAM,EAAEA,MAAO;MACfW,SAAS,EAAEV;IAAe,CAC3B;EACF,gBAEDV,KAAA,CAAAc,aAAA,CAACR,iBAAiB,MAAE,CACV,CAAC,eAEbN,KAAA,CAAAc,aAAA,CAACT,mBAAmB,MAAE,CACC,CAAC;AAE9B,CAAC"}
|
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { View, Text, StyleSheet } from 'react-native';
|
|
3
3
|
import { useSelector } from 'react-redux';
|
|
4
4
|
import { useHMSRoomStyleSheet } from '../hooks-util';
|
|
5
|
+
import { COLORS } from '../utils/theme';
|
|
5
6
|
export const HMSPreviewHLSLiveIndicator = () => {
|
|
6
7
|
const isHLSStreaming = useSelector(state => {
|
|
7
8
|
var _state$hmsStates$room;
|
|
@@ -12,10 +13,10 @@ export const HMSPreviewHLSLiveIndicator = () => {
|
|
|
12
13
|
backgroundColor: theme.palette.alert_error_default
|
|
13
14
|
},
|
|
14
15
|
circle: {
|
|
15
|
-
backgroundColor:
|
|
16
|
+
backgroundColor: COLORS.WHITE
|
|
16
17
|
},
|
|
17
18
|
text: {
|
|
18
|
-
color:
|
|
19
|
+
color: COLORS.WHITE,
|
|
19
20
|
fontFamily: `${typography.font_family}-SemiBold`
|
|
20
21
|
}
|
|
21
22
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","Text","StyleSheet","useSelector","useHMSRoomStyleSheet","HMSPreviewHLSLiveIndicator","isHLSStreaming","state","_state$hmsStates$room","hmsStates","room","hlsStreamingState","running","hmsRoomStyles","theme","typography","container","backgroundColor","palette","alert_error_default","circle","
|
|
1
|
+
{"version":3,"names":["React","View","Text","StyleSheet","useSelector","useHMSRoomStyleSheet","COLORS","HMSPreviewHLSLiveIndicator","isHLSStreaming","state","_state$hmsStates$room","hmsStates","room","hlsStreamingState","running","hmsRoomStyles","theme","typography","container","backgroundColor","palette","alert_error_default","circle","WHITE","text","color","fontFamily","font_family","createElement","style","styles","circleContainer","create","flexDirection","alignItems","borderRadius","paddingLeft","paddingRight","marginRight","width","height","justifyContent","marginLeft","fontSize","lineHeight","letterSpacing"],"sourceRoot":"../../../src","sources":["components/HMSPreviewHLSLiveIndicator.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,IAAI,EAAEC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AACrD,SAASC,WAAW,QAAQ,aAAa;AAGzC,SAASC,oBAAoB,QAAQ,eAAe;AACpD,SAASC,MAAM,QAAQ,gBAAgB;AAEvC,OAAO,MAAMC,0BAA0B,GAAGA,CAAA,KAAM;EAC9C,MAAMC,cAAc,GAAGJ,WAAW,CAC/BK,KAAgB;IAAA,IAAAC,qBAAA;IAAA,QAAAA,qBAAA,GAAKD,KAAK,CAACE,SAAS,CAACC,IAAI,cAAAF,qBAAA,gBAAAA,qBAAA,GAApBA,qBAAA,CAAsBG,iBAAiB,cAAAH,qBAAA,uBAAvCA,qBAAA,CAAyCI,OAAO;EAAA,CACxE,CAAC;EAED,MAAMC,aAAa,GAAGV,oBAAoB,CAAC,CAACW,KAAK,EAAEC,UAAU,MAAM;IACjEC,SAAS,EAAE;MACTC,eAAe,EAAEH,KAAK,CAACI,OAAO,CAACC;IACjC,CAAC;IACDC,MAAM,EAAE;MACNH,eAAe,EAAEb,MAAM,CAACiB;IAC1B,CAAC;IACDC,IAAI,EAAE;MACJC,KAAK,EAAEnB,MAAM,CAACi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-2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { StyleSheet } from 'react-native';
|
|
3
3
|
import { shallowEqual, useSelector } from 'react-redux';
|
|
4
4
|
import { RadioIcon } from '../Icons';
|
|
5
|
-
import { useHMSLayoutConfig,
|
|
5
|
+
import { useHMSLayoutConfig, useHMSRoomStyleSheet, useShouldGoLive } from '../hooks-util';
|
|
6
6
|
import { HMSPrimaryButton } from './HMSPrimaryButton';
|
|
7
7
|
export const HMSPreviewJoinButton = _ref => {
|
|
8
8
|
let {
|
|
@@ -19,8 +19,13 @@ export const HMSPreviewJoinButton = _ref => {
|
|
|
19
19
|
};
|
|
20
20
|
}, shallowEqual);
|
|
21
21
|
const shouldGoLive = useShouldGoLive();
|
|
22
|
-
const
|
|
23
|
-
|
|
22
|
+
const hmsRoomStyles = useHMSRoomStyleSheet(theme => ({
|
|
23
|
+
disabledLiveIcon: {
|
|
24
|
+
tintColor: theme.palette.on_primary_low
|
|
25
|
+
},
|
|
26
|
+
activeLiveIcon: {
|
|
27
|
+
tintColor: theme.palette.on_primary_high
|
|
28
|
+
}
|
|
24
29
|
}));
|
|
25
30
|
const disabledJoin = userNameInvalid || loading;
|
|
26
31
|
return /*#__PURE__*/React.createElement(HMSPrimaryButton, {
|
|
@@ -29,7 +34,7 @@ export const HMSPreviewJoinButton = _ref => {
|
|
|
29
34
|
title: shouldGoLive ? joinButtonLabels.goLiveBtnLabel : joinButtonLabels.joinBtnLabel,
|
|
30
35
|
disabled: disabledJoin,
|
|
31
36
|
leftComponent: shouldGoLive ? /*#__PURE__*/React.createElement(RadioIcon, {
|
|
32
|
-
style: disabledJoin ?
|
|
37
|
+
style: disabledJoin ? hmsRoomStyles.disabledLiveIcon : hmsRoomStyles.activeLiveIcon
|
|
33
38
|
}) : null,
|
|
34
39
|
style: styles.button
|
|
35
40
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","shallowEqual","useSelector","RadioIcon","useHMSLayoutConfig","
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","shallowEqual","useSelector","RadioIcon","useHMSLayoutConfig","useHMSRoomStyleSheet","useShouldGoLive","HMSPrimaryButton","HMSPreviewJoinButton","_ref","loading","onJoin","userNameInvalid","state","user","userName","length","joinButtonLabels","layoutConfig","_layoutConfig$screens","joinLayoutConfig","screens","preview","default","elements","join_form","joinBtnLabel","join_btn_label","goLiveBtnLabel","go_live_btn_label","shouldGoLive","hmsRoomStyles","theme","disabledLiveIcon","tintColor","palette","on_primary_low","activeLiveIcon","on_primary_high","disabledJoin","createElement","onPress","title","disabled","leftComponent","style","styles","button","create","marginLeft"],"sourceRoot":"../../../src","sources":["components/HMSPreviewJoinButton.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,YAAY,EAAEC,WAAW,QAAQ,aAAa;AAGvD,SAASC,SAAS,QAAQ,UAAU;AACpC,SACEC,kBAAkB,EAClBC,oBAAoB,EACpBC,eAAe,QACV,eAAe;AACtB,SAASC,gBAAgB,QAAQ,oBAAoB;AAOrD,OAAO,MAAMC,oBAAyD,GAAGC,IAAA,IAGnE;EAAA,IAHoE;IACxEC,OAAO;IACPC;EACF,CAAC,GAAAF,IAAA;EACC,MAAMG,eAAe,GAAGV,WAAW,CAChCW,KAAgB,IAAKA,KAAK,CAACC,IAAI,CAACC,QAAQ,CAACC,MAAM,IAAI,CACtD,CAAC;EAED,MAAMC,gBAAgB,GAAGb,kBAAkB,CAAEc,YAAY,IAAK;IAAA,IAAAC,qBAAA;IAC5D,MAAMC,gBAAgB,GACpBF,YAAY,aAAZA,YAAY,gBAAAC,qBAAA,GAAZD,YAAY,CAAEG,OAAO,cAAAF,qBAAA,gBAAAA,qBAAA,GAArBA,qBAAA,CAAuBG,OAAO,cAAAH,qBAAA,gBAAAA,qBAAA,GAA9BA,qBAAA,CAAgCI,OAAO,cAAAJ,qBAAA,gBAAAA,qBAAA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1
|
-
{"version":3,"names":["React","useSelector","StyleSheet","Text","View","PersonIcon","getInitials","COLORS","HMSLocalVideoView","useHMSRoomStyleSheet","HMSPreviewTile","isLocalVideoMuted","state","hmsStates","localVideoTrackId","_state$hmsStates$loca","localPeer","videoTrack","trackId","userName","user","roomStyles","theme","typography","container","backgroundColor","palette","background_dim","avatar","EXTENDED","PURPLE","avatarText","color","
|
|
1
|
+
{"version":3,"names":["React","useSelector","StyleSheet","Text","View","PersonIcon","getInitials","COLORS","HMSLocalVideoView","useHMSRoomStyleSheet","HMSPreviewTile","isLocalVideoMuted","state","hmsStates","localVideoTrackId","_state$hmsStates$loca","localPeer","videoTrack","trackId","userName","user","roomStyles","theme","typography","container","backgroundColor","palette","background_dim","avatar","EXTENDED","PURPLE","avatarText","color","WHITE","fontFamily","font_family","createElement","style","styles","modalContainer","avatarContainer","length","avatarIcon","create","flex","position","overflow","hmsView","alignItems","justifyContent","width","aspectRatio","borderRadius","height","fontSize","lineHeight","letterSpacing"],"sourceRoot":"../../../src","sources":["components/HMSPreviewTile.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,WAAW,QAAQ,aAAa;AACzC,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAErD,SAASC,UAAU,QAAQ,UAAU;AAErC,SAASC,WAAW,QAAQ,oBAAoB;AAChD,SAASC,MAAM,QAAQ,gBAAgB;AACvC,SAASC,iBAAiB,QAAQ,qBAAqB;AACvD,SAASC,oBAAoB,QAAQ,eAAe;AAEpD,OAAO,MAAMC,cAAwB,GAAGA,CAAA,KAAM;EAC5C,MAAMC,iBAAiB,GAAGV,WAAW,CAClCW,KAAgB,IAAKA,KAAK,CAACC,SAAS,CAACF,iBACxC,CAAC;EACD,MAAMG,iBAAiB,GAAGb,WAAW,CAClCW,KAAgB;IAAA,IAAAG,qBAAA;IAAA,QAAAA,qBAAA,GAAKH,KAAK,CAACC,SAAS,CAACG,SAAS,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CAAC,gBAEPnB,KAAA,CAAAoC,aAAA,CAAC5B,iBAAiB,MAAE,CAElB,CAAC;AAEX,CAAC;AAED,MAAM8B,MAAM,GAAGpC,UAAU,CAACyC,MAAM,CAAC;EAC/BJ,cAAc,EAAE;IACdK,IAAI,EAAE,CAAC;IACPC,QAAQ,EAAE,UAAU;IACpBC,QAAQ,EAAE;EACZ,CAAC;EACDC,OAAO,EAAE;IACPH,IAAI,EAAE;EACR,CAAC;EACDJ,eAAe,EAAE;IACfI,IAAI,EAAE,CAAC;IACPI,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDrB,MAAM,EAAE;IACNsB,KAAK,EAAE,EAAE;IACTC,WAAW,EAAE,CAAC;IACdC,YAAY,EAAE,EAAE;IAChBH,cAAc,EAAE,QAAQ;IACxBD,UAAU,EAAE;EACd,CAAC;EACDN,UAAU,EAAE;IACVQ,KAAK,EAAE,EAAE;IACTG,MAAM,EAAE;EACV,CAAC;EACDtB,UAAU,EAAE;IACVuB,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,aAAa,EAAE;EACjB;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ActivityIndicator } from 'react-native';
|
|
3
|
+
import { HMSNotification } from './HMSNotification';
|
|
4
|
+
import { useHMSRoomColorPalette, useHMSRoomStyle } from '../hooks-util';
|
|
5
|
+
import { NotificationTypes } from '../types';
|
|
6
|
+
export const HMSReconnectingNotification = () => {
|
|
7
|
+
const {
|
|
8
|
+
on_surface_high: onSurfaceHigh
|
|
9
|
+
} = useHMSRoomColorPalette();
|
|
10
|
+
const notificationStyle = useHMSRoomStyle(theme => ({
|
|
11
|
+
backgroundColor: theme.palette.surface_default
|
|
12
|
+
}));
|
|
13
|
+
return /*#__PURE__*/React.createElement(HMSNotification, {
|
|
14
|
+
id: NotificationTypes.RECONNECTING,
|
|
15
|
+
autoDismiss: false,
|
|
16
|
+
style: notificationStyle,
|
|
17
|
+
text: 'You lost your network connection. Trying to reconnect.',
|
|
18
|
+
icon: /*#__PURE__*/React.createElement(ActivityIndicator, {
|
|
19
|
+
size: "small",
|
|
20
|
+
color: onSurfaceHigh
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=HMSReconnectingNotification.js.map
|