@100mslive/react-native-room-kit 0.0.4 → 0.2.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 +413 -11
- package/lib/commonjs/HMSInstanceSetup.js +2 -1
- package/lib/commonjs/HMSInstanceSetup.js.map +1 -1
- package/lib/commonjs/HMSPrebuilt.js +4 -2
- package/lib/commonjs/HMSPrebuilt.js.map +1 -1
- package/lib/commonjs/HMSRoomSetup.js +39 -8
- package/lib/commonjs/HMSRoomSetup.js.map +1 -1
- package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle.png +0 -0
- package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle@2x.png +0 -0
- package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle@3x.png +0 -0
- package/lib/commonjs/Icons/AlertTriangle/index.js +34 -0
- package/lib/commonjs/Icons/AlertTriangle/index.js.map +1 -0
- package/lib/commonjs/Icons/AnswerPhone/index.js +5 -1
- package/lib/commonjs/Icons/AnswerPhone/index.js.map +1 -1
- package/lib/commonjs/Icons/BRB/assets/BRB.png +0 -0
- package/lib/commonjs/Icons/BRB/assets/BRB@2x.png +0 -0
- package/lib/commonjs/Icons/BRB/assets/BRB@3x.png +0 -0
- package/lib/commonjs/Icons/BRB/index.js +35 -0
- package/lib/commonjs/Icons/BRB/index.js.map +1 -0
- package/lib/commonjs/Icons/Bluetooth/index.js +5 -1
- package/lib/commonjs/Icons/Bluetooth/index.js.map +1 -1
- package/lib/commonjs/Icons/Camera/index.js +5 -1
- package/lib/commonjs/Icons/Camera/index.js.map +1 -1
- package/lib/commonjs/Icons/Chat/index.js +5 -1
- package/lib/commonjs/Icons/Chat/index.js.map +1 -1
- package/lib/commonjs/Icons/Check/index.js +5 -1
- package/lib/commonjs/Icons/Check/index.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/Close/index.js +5 -1
- package/lib/commonjs/Icons/Close/index.js.map +1 -1
- package/lib/commonjs/Icons/Hamburger/assets/hamburger.png +0 -0
- package/lib/commonjs/Icons/Hamburger/assets/hamburger@2x.png +0 -0
- package/lib/commonjs/Icons/Hamburger/assets/hamburger@3x.png +0 -0
- package/lib/commonjs/Icons/Hamburger/index.js +34 -0
- package/lib/commonjs/Icons/Hamburger/index.js.map +1 -0
- package/lib/commonjs/Icons/Hand/index.js +6 -4
- package/lib/commonjs/Icons/Hand/index.js.map +1 -1
- package/lib/commonjs/Icons/Headphones/index.js +5 -1
- package/lib/commonjs/Icons/Headphones/index.js.map +1 -1
- package/lib/commonjs/Icons/Maximize/assets/maximize.png +0 -0
- package/lib/commonjs/Icons/Maximize/assets/maximize@2x.png +0 -0
- package/lib/commonjs/Icons/Maximize/assets/maximize@3x.png +0 -0
- package/lib/commonjs/Icons/Maximize/index.js +34 -0
- package/lib/commonjs/Icons/Maximize/index.js.map +1 -0
- package/lib/commonjs/Icons/Mic/index.js +5 -1
- package/lib/commonjs/Icons/Mic/index.js.map +1 -1
- package/lib/commonjs/Icons/Minimize/assets/minimize.png +0 -0
- package/lib/commonjs/Icons/Minimize/assets/minimize@2x.png +0 -0
- package/lib/commonjs/Icons/Minimize/assets/minimize@3x.png +0 -0
- package/lib/commonjs/Icons/Minimize/index.js +34 -0
- package/lib/commonjs/Icons/Minimize/index.js.map +1 -0
- package/lib/commonjs/Icons/Participants/index.js +5 -1
- package/lib/commonjs/Icons/Participants/index.js.map +1 -1
- package/lib/commonjs/Icons/Pencil/assets/pencil.png +0 -0
- package/lib/commonjs/Icons/Pencil/assets/pencil@2x.png +0 -0
- package/lib/commonjs/Icons/Pencil/assets/pencil@3x.png +0 -0
- package/lib/commonjs/Icons/Pencil/index.js +34 -0
- package/lib/commonjs/Icons/Pencil/index.js.map +1 -0
- package/lib/commonjs/Icons/Pin/assets/pin.png +0 -0
- package/lib/commonjs/Icons/Pin/assets/pin@2x.png +0 -0
- package/lib/commonjs/Icons/Pin/assets/pin@3x.png +0 -0
- package/lib/commonjs/Icons/Pin/index.js +34 -0
- package/lib/commonjs/Icons/Pin/index.js.map +1 -0
- package/lib/commonjs/Icons/Radio/assets/radio-xlarge.png +0 -0
- package/lib/commonjs/Icons/Radio/assets/radio-xlarge@2x.png +0 -0
- package/lib/commonjs/Icons/Radio/assets/radio-xlarge@3x.png +0 -0
- package/lib/commonjs/Icons/Radio/index.js +29 -1
- package/lib/commonjs/Icons/Radio/index.js.map +1 -1
- package/lib/commonjs/Icons/Recording/assets/recording.png +0 -0
- package/lib/commonjs/Icons/Recording/assets/recording@2x.png +0 -0
- package/lib/commonjs/Icons/Recording/assets/recording@3x.png +0 -0
- package/lib/commonjs/Icons/Recording/index.js +34 -0
- package/lib/commonjs/Icons/Recording/index.js.map +1 -0
- package/lib/commonjs/Icons/RotateCamera/index.js +5 -1
- package/lib/commonjs/Icons/RotateCamera/index.js.map +1 -1
- package/lib/commonjs/Icons/ScreenShare/index.js +5 -1
- package/lib/commonjs/Icons/ScreenShare/index.js.map +1 -1
- package/lib/commonjs/Icons/Speaker/index.js +5 -1
- package/lib/commonjs/Icons/Speaker/index.js.map +1 -1
- package/lib/commonjs/Icons/Star/assets/star.png +0 -0
- package/lib/commonjs/Icons/Star/assets/star@2x.png +0 -0
- package/lib/commonjs/Icons/Star/assets/star@3x.png +0 -0
- package/lib/commonjs/Icons/Star/index.js +34 -0
- package/lib/commonjs/Icons/Star/index.js.map +1 -0
- package/lib/commonjs/Icons/Stop/assets/stop.png +0 -0
- package/lib/commonjs/Icons/Stop/assets/stop@2x.png +0 -0
- package/lib/commonjs/Icons/Stop/assets/stop@3x.png +0 -0
- package/lib/commonjs/Icons/Stop/index.js +34 -0
- package/lib/commonjs/Icons/Stop/index.js.map +1 -0
- package/lib/commonjs/Icons/ThreeDots/index.js +5 -1
- package/lib/commonjs/Icons/ThreeDots/index.js.map +1 -1
- package/lib/commonjs/Icons/Wave/index.js +5 -1
- package/lib/commonjs/Icons/Wave/index.js.map +1 -1
- package/lib/commonjs/Icons/index.js +110 -0
- package/lib/commonjs/Icons/index.js.map +1 -1
- package/lib/commonjs/components/AvatarView.js +1 -2
- package/lib/commonjs/components/AvatarView.js.map +1 -1
- package/lib/commonjs/components/BackButton.js +6 -4
- package/lib/commonjs/components/BackButton.js.map +1 -1
- package/lib/commonjs/components/BottomSheet.js +157 -0
- package/lib/commonjs/components/BottomSheet.js.map +1 -0
- package/lib/commonjs/components/ChangeNameModalContent.js +131 -0
- package/lib/commonjs/components/ChangeNameModalContent.js.map +1 -0
- package/lib/commonjs/components/CompanyLogo.js +38 -0
- package/lib/commonjs/components/CompanyLogo.js.map +1 -0
- package/lib/commonjs/components/CustomInput.js +2 -3
- package/lib/commonjs/components/CustomInput.js.map +1 -1
- package/lib/commonjs/components/DisplayView.js +15 -54
- package/lib/commonjs/components/DisplayView.js.map +1 -1
- package/lib/commonjs/components/EndRoomModalContent.js +85 -0
- package/lib/commonjs/components/EndRoomModalContent.js.map +1 -0
- package/lib/commonjs/components/Footer.js +17 -13
- package/lib/commonjs/components/Footer.js.map +1 -1
- package/lib/commonjs/components/GridView.js +53 -7
- package/lib/commonjs/components/GridView.js.map +1 -1
- package/lib/commonjs/components/HMSBaseButton.js +66 -0
- package/lib/commonjs/components/HMSBaseButton.js.map +1 -0
- package/lib/commonjs/components/HMSDangerButton.js +53 -0
- package/lib/commonjs/components/HMSDangerButton.js.map +1 -0
- package/lib/commonjs/components/HMSHLSNotStarted.js +27 -19
- package/lib/commonjs/components/HMSHLSNotStarted.js.map +1 -1
- package/lib/commonjs/components/HMSHLSStreamLoading.js +17 -8
- package/lib/commonjs/components/HMSHLSStreamLoading.js.map +1 -1
- package/lib/commonjs/components/HMSManageAudioOutput.js +41 -75
- package/lib/commonjs/components/HMSManageAudioOutput.js.map +1 -1
- package/lib/commonjs/components/HMSManageCameraRotation.js +5 -4
- package/lib/commonjs/components/HMSManageCameraRotation.js.map +1 -1
- package/lib/commonjs/components/HMSManageLeave.js +101 -128
- package/lib/commonjs/components/HMSManageLeave.js.map +1 -1
- package/lib/commonjs/components/HMSManageLocalAudio.js +1 -9
- package/lib/commonjs/components/HMSManageLocalAudio.js.map +1 -1
- package/lib/commonjs/components/HMSManageLocalVideo.js +1 -9
- package/lib/commonjs/components/HMSManageLocalVideo.js.map +1 -1
- package/lib/commonjs/components/HMSManageRaiseHand.js +2 -15
- package/lib/commonjs/components/HMSManageRaiseHand.js.map +1 -1
- package/lib/commonjs/components/HMSMeetingEnded.js +1 -2
- package/lib/commonjs/components/HMSMeetingEnded.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewEditName.js +3 -37
- package/lib/commonjs/components/HMSPreviewEditName.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js +17 -10
- package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewJoinButton.js +23 -46
- package/lib/commonjs/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewNetworkQuality.js +5 -3
- package/lib/commonjs/components/HMSPreviewNetworkQuality.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewPeersList.js +21 -10
- package/lib/commonjs/components/HMSPreviewPeersList.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewSubtitle.js +22 -9
- package/lib/commonjs/components/HMSPreviewSubtitle.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewTile.js +16 -8
- package/lib/commonjs/components/HMSPreviewTile.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewTitle.js +14 -6
- package/lib/commonjs/components/HMSPreviewTitle.js.map +1 -1
- package/lib/commonjs/components/HMSPrimaryButton.js +53 -0
- package/lib/commonjs/components/HMSPrimaryButton.js.map +1 -0
- package/lib/commonjs/components/HMSRecordingIndicator.js +46 -0
- package/lib/commonjs/components/HMSRecordingIndicator.js.map +1 -0
- package/lib/commonjs/components/HMSRoomOptions.js +20 -7
- package/lib/commonjs/components/HMSRoomOptions.js.map +1 -1
- package/lib/commonjs/components/HMSShowNetworkQuality.js +5 -4
- package/lib/commonjs/components/HMSShowNetworkQuality.js.map +1 -1
- package/lib/commonjs/components/HMSTextInput.js +66 -0
- package/lib/commonjs/components/HMSTextInput.js.map +1 -0
- package/lib/commonjs/components/Header.js +30 -30
- package/lib/commonjs/components/Header.js.map +1 -1
- package/lib/commonjs/components/LocalPeerRegularVideoView.js +26 -0
- package/lib/commonjs/components/LocalPeerRegularVideoView.js.map +1 -0
- package/lib/commonjs/components/LocalPeerScreenshareView.js +76 -0
- package/lib/commonjs/components/LocalPeerScreenshareView.js.map +1 -0
- package/lib/commonjs/components/Meeting.js +8 -3
- package/lib/commonjs/components/Meeting.js.map +1 -1
- package/lib/commonjs/components/MeetingScreenContent.js +2 -1
- package/lib/commonjs/components/MeetingScreenContent.js.map +1 -1
- package/lib/commonjs/components/MiniView.js +163 -0
- package/lib/commonjs/components/MiniView.js.map +1 -0
- package/lib/commonjs/components/Modals.js +31 -116
- package/lib/commonjs/components/Modals.js.map +1 -1
- package/lib/commonjs/components/PaginationDots.js +56 -0
- package/lib/commonjs/components/PaginationDots.js.map +1 -0
- package/lib/commonjs/components/ParticipantsCount.js +55 -0
- package/lib/commonjs/components/ParticipantsCount.js.map +1 -0
- package/lib/commonjs/components/PeerMinimizedView.js +114 -0
- package/lib/commonjs/components/PeerMinimizedView.js.map +1 -0
- package/lib/commonjs/components/PeerSettingsModalContent.js +68 -51
- package/lib/commonjs/components/PeerSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/AvatarView.js +76 -0
- package/lib/commonjs/components/PeerVideoTile/AvatarView.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/PeerAudioMutedIndicator.js +44 -0
- package/lib/commonjs/components/PeerVideoTile/PeerAudioMutedIndicator.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js +44 -0
- package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js +74 -0
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js +146 -0
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/VideoView.js +84 -0
- package/lib/commonjs/components/PeerVideoTile/VideoView.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/index.js +2 -0
- package/lib/commonjs/components/PeerVideoTile/index.js.map +1 -0
- package/lib/commonjs/components/PressableIcon.js +15 -8
- package/lib/commonjs/components/PressableIcon.js.map +1 -1
- package/lib/commonjs/components/Preview.js +19 -6
- package/lib/commonjs/components/Preview.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalContent.js +233 -362
- package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js +295 -0
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js.map +1 -0
- package/lib/commonjs/components/StatusBar.js +7 -5
- package/lib/commonjs/components/StatusBar.js.map +1 -1
- package/lib/commonjs/components/StopRecordingModalContent.js +97 -0
- package/lib/commonjs/components/StopRecordingModalContent.js.map +1 -0
- package/lib/commonjs/components/Tile.js +29 -90
- package/lib/commonjs/components/Tile.js.map +1 -1
- package/lib/commonjs/components/TilesContainer.js +99 -10
- package/lib/commonjs/components/TilesContainer.js.map +1 -1
- package/lib/commonjs/components/UnmountAfterDelay.js +48 -0
- package/lib/commonjs/components/UnmountAfterDelay.js.map +1 -0
- package/lib/commonjs/components/WebrtcView.js +51 -0
- package/lib/commonjs/components/WebrtcView.js.map +1 -0
- package/lib/commonjs/components/WelcomeInMeeting.js +54 -0
- package/lib/commonjs/components/WelcomeInMeeting.js.map +1 -0
- package/lib/commonjs/hooks-sdk-selectors.js +6 -1
- package/lib/commonjs/hooks-sdk-selectors.js.map +1 -1
- package/lib/commonjs/hooks-sdk.js +16 -1
- package/lib/commonjs/hooks-sdk.js.map +1 -1
- package/lib/commonjs/hooks-util-selectors.js +8 -2
- package/lib/commonjs/hooks-util-selectors.js.map +1 -1
- package/lib/commonjs/hooks-util.js +315 -93
- package/lib/commonjs/hooks-util.js.map +1 -1
- package/lib/commonjs/modules/HMSManager.js +23 -0
- package/lib/commonjs/modules/HMSManager.js.map +1 -0
- package/lib/commonjs/modules/parser.js +22 -0
- package/lib/commonjs/modules/parser.js.map +1 -0
- package/lib/commonjs/peerTrackNodeUtils.js +8 -3
- package/lib/commonjs/peerTrackNodeUtils.js.map +1 -1
- package/lib/commonjs/redux/actionTypes.js +16 -1
- package/lib/commonjs/redux/actionTypes.js.map +1 -1
- package/lib/commonjs/redux/actions/index.js +51 -1
- package/lib/commonjs/redux/actions/index.js.map +1 -1
- package/lib/commonjs/redux/reducers/appState.js +57 -1
- package/lib/commonjs/redux/reducers/appState.js.map +1 -1
- package/lib/commonjs/redux/reducers/hmsStates.js +7 -1
- package/lib/commonjs/redux/reducers/hmsStates.js.map +1 -1
- package/lib/commonjs/redux/reducers/userState.js +3 -1
- package/lib/commonjs/redux/reducers/userState.js.map +1 -1
- package/lib/commonjs/utils/functions.js +51 -1
- package/lib/commonjs/utils/functions.js.map +1 -1
- package/lib/commonjs/utils/theme.js +62 -8
- package/lib/commonjs/utils/theme.js.map +1 -1
- package/lib/commonjs/utils/types.js +8 -1
- package/lib/commonjs/utils/types.js.map +1 -1
- package/lib/module/HMSInstanceSetup.js +2 -1
- package/lib/module/HMSInstanceSetup.js.map +1 -1
- package/lib/module/HMSPrebuilt.js +4 -2
- package/lib/module/HMSPrebuilt.js.map +1 -1
- package/lib/module/HMSRoomSetup.js +41 -10
- package/lib/module/HMSRoomSetup.js.map +1 -1
- package/lib/module/Icons/AlertTriangle/assets/alert-triangle.png +0 -0
- package/lib/module/Icons/AlertTriangle/assets/alert-triangle@2x.png +0 -0
- package/lib/module/Icons/AlertTriangle/assets/alert-triangle@3x.png +0 -0
- package/lib/module/Icons/AlertTriangle/index.js +26 -0
- package/lib/module/Icons/AlertTriangle/index.js.map +1 -0
- package/lib/module/Icons/AnswerPhone/index.js +5 -1
- package/lib/module/Icons/AnswerPhone/index.js.map +1 -1
- package/lib/module/Icons/BRB/assets/BRB.png +0 -0
- package/lib/module/Icons/BRB/assets/BRB@2x.png +0 -0
- package/lib/module/Icons/BRB/assets/BRB@3x.png +0 -0
- package/lib/module/Icons/BRB/index.js +27 -0
- package/lib/module/Icons/BRB/index.js.map +1 -0
- package/lib/module/Icons/Bluetooth/index.js +5 -1
- package/lib/module/Icons/Bluetooth/index.js.map +1 -1
- package/lib/module/Icons/Camera/index.js +5 -1
- package/lib/module/Icons/Camera/index.js.map +1 -1
- package/lib/module/Icons/Chat/index.js +5 -1
- package/lib/module/Icons/Chat/index.js.map +1 -1
- package/lib/module/Icons/Check/index.js +5 -1
- package/lib/module/Icons/Check/index.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/Close/index.js +5 -1
- package/lib/module/Icons/Close/index.js.map +1 -1
- package/lib/module/Icons/Hamburger/assets/hamburger.png +0 -0
- package/lib/module/Icons/Hamburger/assets/hamburger@2x.png +0 -0
- package/lib/module/Icons/Hamburger/assets/hamburger@3x.png +0 -0
- package/lib/module/Icons/Hamburger/index.js +26 -0
- package/lib/module/Icons/Hamburger/index.js.map +1 -0
- package/lib/module/Icons/Hand/index.js +6 -4
- package/lib/module/Icons/Hand/index.js.map +1 -1
- package/lib/module/Icons/Headphones/index.js +5 -1
- package/lib/module/Icons/Headphones/index.js.map +1 -1
- package/lib/module/Icons/Maximize/assets/maximize.png +0 -0
- package/lib/module/Icons/Maximize/assets/maximize@2x.png +0 -0
- package/lib/module/Icons/Maximize/assets/maximize@3x.png +0 -0
- package/lib/module/Icons/Maximize/index.js +26 -0
- package/lib/module/Icons/Maximize/index.js.map +1 -0
- package/lib/module/Icons/Mic/index.js +5 -1
- package/lib/module/Icons/Mic/index.js.map +1 -1
- package/lib/module/Icons/Minimize/assets/minimize.png +0 -0
- package/lib/module/Icons/Minimize/assets/minimize@2x.png +0 -0
- package/lib/module/Icons/Minimize/assets/minimize@3x.png +0 -0
- package/lib/module/Icons/Minimize/index.js +26 -0
- package/lib/module/Icons/Minimize/index.js.map +1 -0
- package/lib/module/Icons/Participants/index.js +5 -1
- package/lib/module/Icons/Participants/index.js.map +1 -1
- package/lib/module/Icons/Pencil/assets/pencil.png +0 -0
- package/lib/module/Icons/Pencil/assets/pencil@2x.png +0 -0
- package/lib/module/Icons/Pencil/assets/pencil@3x.png +0 -0
- package/lib/module/Icons/Pencil/index.js +26 -0
- package/lib/module/Icons/Pencil/index.js.map +1 -0
- package/lib/module/Icons/Pin/assets/pin.png +0 -0
- package/lib/module/Icons/Pin/assets/pin@2x.png +0 -0
- package/lib/module/Icons/Pin/assets/pin@3x.png +0 -0
- package/lib/module/Icons/Pin/index.js +26 -0
- package/lib/module/Icons/Pin/index.js.map +1 -0
- package/lib/module/Icons/Radio/assets/radio-xlarge.png +0 -0
- package/lib/module/Icons/Radio/assets/radio-xlarge@2x.png +0 -0
- package/lib/module/Icons/Radio/assets/radio-xlarge@3x.png +0 -0
- package/lib/module/Icons/Radio/index.js +30 -2
- package/lib/module/Icons/Radio/index.js.map +1 -1
- package/lib/module/Icons/Recording/assets/recording.png +0 -0
- package/lib/module/Icons/Recording/assets/recording@2x.png +0 -0
- package/lib/module/Icons/Recording/assets/recording@3x.png +0 -0
- package/lib/module/Icons/Recording/index.js +26 -0
- package/lib/module/Icons/Recording/index.js.map +1 -0
- package/lib/module/Icons/RotateCamera/index.js +5 -1
- package/lib/module/Icons/RotateCamera/index.js.map +1 -1
- package/lib/module/Icons/ScreenShare/index.js +5 -1
- package/lib/module/Icons/ScreenShare/index.js.map +1 -1
- package/lib/module/Icons/Speaker/index.js +5 -1
- package/lib/module/Icons/Speaker/index.js.map +1 -1
- package/lib/module/Icons/Star/assets/star.png +0 -0
- package/lib/module/Icons/Star/assets/star@2x.png +0 -0
- package/lib/module/Icons/Star/assets/star@3x.png +0 -0
- package/lib/module/Icons/Star/index.js +26 -0
- package/lib/module/Icons/Star/index.js.map +1 -0
- package/lib/module/Icons/Stop/assets/stop.png +0 -0
- package/lib/module/Icons/Stop/assets/stop@2x.png +0 -0
- package/lib/module/Icons/Stop/assets/stop@3x.png +0 -0
- package/lib/module/Icons/Stop/index.js +26 -0
- package/lib/module/Icons/Stop/index.js.map +1 -0
- package/lib/module/Icons/ThreeDots/index.js +5 -1
- package/lib/module/Icons/ThreeDots/index.js.map +1 -1
- package/lib/module/Icons/Wave/index.js +5 -1
- package/lib/module/Icons/Wave/index.js.map +1 -1
- package/lib/module/Icons/index.js +10 -0
- package/lib/module/Icons/index.js.map +1 -1
- package/lib/module/components/AvatarView.js +1 -2
- package/lib/module/components/AvatarView.js.map +1 -1
- package/lib/module/components/BackButton.js +6 -4
- package/lib/module/components/BackButton.js.map +1 -1
- package/lib/module/components/BottomSheet.js +146 -0
- package/lib/module/components/BottomSheet.js.map +1 -0
- package/lib/module/components/ChangeNameModalContent.js +122 -0
- package/lib/module/components/ChangeNameModalContent.js.map +1 -0
- package/lib/module/components/CompanyLogo.js +30 -0
- package/lib/module/components/CompanyLogo.js.map +1 -0
- package/lib/module/components/CustomInput.js +2 -3
- package/lib/module/components/CustomInput.js.map +1 -1
- package/lib/module/components/DisplayView.js +19 -57
- package/lib/module/components/DisplayView.js.map +1 -1
- package/lib/module/components/EndRoomModalContent.js +76 -0
- package/lib/module/components/EndRoomModalContent.js.map +1 -0
- package/lib/module/components/Footer.js +19 -15
- package/lib/module/components/Footer.js.map +1 -1
- package/lib/module/components/GridView.js +55 -10
- package/lib/module/components/GridView.js.map +1 -1
- package/lib/module/components/HMSBaseButton.js +57 -0
- package/lib/module/components/HMSBaseButton.js.map +1 -0
- package/lib/module/components/HMSDangerButton.js +44 -0
- package/lib/module/components/HMSDangerButton.js.map +1 -0
- package/lib/module/components/HMSHLSNotStarted.js +29 -21
- package/lib/module/components/HMSHLSNotStarted.js.map +1 -1
- package/lib/module/components/HMSHLSStreamLoading.js +17 -8
- package/lib/module/components/HMSHLSStreamLoading.js.map +1 -1
- package/lib/module/components/HMSManageAudioOutput.js +42 -77
- package/lib/module/components/HMSManageAudioOutput.js.map +1 -1
- package/lib/module/components/HMSManageCameraRotation.js +5 -4
- package/lib/module/components/HMSManageCameraRotation.js.map +1 -1
- package/lib/module/components/HMSManageLeave.js +104 -129
- package/lib/module/components/HMSManageLeave.js.map +1 -1
- package/lib/module/components/HMSManageLocalAudio.js +1 -9
- package/lib/module/components/HMSManageLocalAudio.js.map +1 -1
- package/lib/module/components/HMSManageLocalVideo.js +1 -9
- package/lib/module/components/HMSManageLocalVideo.js.map +1 -1
- package/lib/module/components/HMSManageRaiseHand.js +2 -15
- package/lib/module/components/HMSManageRaiseHand.js.map +1 -1
- package/lib/module/components/HMSMeetingEnded.js +1 -2
- package/lib/module/components/HMSMeetingEnded.js.map +1 -1
- package/lib/module/components/HMSPreviewEditName.js +3 -37
- package/lib/module/components/HMSPreviewEditName.js.map +1 -1
- package/lib/module/components/HMSPreviewHLSLiveIndicator.js +17 -10
- package/lib/module/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
- package/lib/module/components/HMSPreviewJoinButton.js +26 -49
- package/lib/module/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/module/components/HMSPreviewNetworkQuality.js +6 -4
- package/lib/module/components/HMSPreviewNetworkQuality.js.map +1 -1
- package/lib/module/components/HMSPreviewPeersList.js +21 -10
- package/lib/module/components/HMSPreviewPeersList.js.map +1 -1
- package/lib/module/components/HMSPreviewSubtitle.js +22 -9
- package/lib/module/components/HMSPreviewSubtitle.js.map +1 -1
- package/lib/module/components/HMSPreviewTile.js +16 -8
- package/lib/module/components/HMSPreviewTile.js.map +1 -1
- package/lib/module/components/HMSPreviewTitle.js +14 -6
- package/lib/module/components/HMSPreviewTitle.js.map +1 -1
- package/lib/module/components/HMSPrimaryButton.js +44 -0
- package/lib/module/components/HMSPrimaryButton.js.map +1 -0
- package/lib/module/components/HMSRecordingIndicator.js +37 -0
- package/lib/module/components/HMSRecordingIndicator.js.map +1 -0
- package/lib/module/components/HMSRoomOptions.js +21 -8
- package/lib/module/components/HMSRoomOptions.js.map +1 -1
- package/lib/module/components/HMSShowNetworkQuality.js +6 -5
- package/lib/module/components/HMSShowNetworkQuality.js.map +1 -1
- package/lib/module/components/HMSTextInput.js +57 -0
- package/lib/module/components/HMSTextInput.js.map +1 -0
- package/lib/module/components/Header.js +32 -32
- package/lib/module/components/Header.js.map +1 -1
- package/lib/module/components/LocalPeerRegularVideoView.js +17 -0
- package/lib/module/components/LocalPeerRegularVideoView.js.map +1 -0
- package/lib/module/components/LocalPeerScreenshareView.js +66 -0
- package/lib/module/components/LocalPeerScreenshareView.js.map +1 -0
- package/lib/module/components/Meeting.js +9 -4
- package/lib/module/components/Meeting.js.map +1 -1
- package/lib/module/components/MeetingScreenContent.js +2 -1
- package/lib/module/components/MeetingScreenContent.js.map +1 -1
- package/lib/module/components/MiniView.js +154 -0
- package/lib/module/components/MiniView.js.map +1 -0
- package/lib/module/components/Modals.js +31 -114
- package/lib/module/components/Modals.js.map +1 -1
- package/lib/module/components/PaginationDots.js +47 -0
- package/lib/module/components/PaginationDots.js.map +1 -0
- package/lib/module/components/ParticipantsCount.js +46 -0
- package/lib/module/components/ParticipantsCount.js.map +1 -0
- package/lib/module/components/PeerMinimizedView.js +104 -0
- package/lib/module/components/PeerMinimizedView.js.map +1 -0
- package/lib/module/components/PeerSettingsModalContent.js +71 -54
- package/lib/module/components/PeerSettingsModalContent.js.map +1 -1
- package/lib/module/components/PeerVideoTile/AvatarView.js +66 -0
- package/lib/module/components/PeerVideoTile/AvatarView.js.map +1 -0
- package/lib/module/components/PeerVideoTile/PeerAudioMutedIndicator.js +35 -0
- package/lib/module/components/PeerVideoTile/PeerAudioMutedIndicator.js.map +1 -0
- package/lib/module/components/PeerVideoTile/PeerMetadata.js +35 -0
- package/lib/module/components/PeerVideoTile/PeerMetadata.js.map +1 -0
- package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js +65 -0
- package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -0
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js +136 -0
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js.map +1 -0
- package/lib/module/components/PeerVideoTile/VideoView.js +75 -0
- package/lib/module/components/PeerVideoTile/VideoView.js.map +1 -0
- package/lib/module/components/PeerVideoTile/index.js +2 -0
- package/lib/module/components/PeerVideoTile/index.js.map +1 -0
- package/lib/module/components/PressableIcon.js +15 -8
- package/lib/module/components/PressableIcon.js.map +1 -1
- package/lib/module/components/Preview.js +19 -6
- package/lib/module/components/Preview.js.map +1 -1
- package/lib/module/components/RoomSettingsModalContent.js +234 -364
- package/lib/module/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/module/components/RoomSettingsModalDebugModeContent.js +287 -0
- package/lib/module/components/RoomSettingsModalDebugModeContent.js.map +1 -0
- package/lib/module/components/StatusBar.js +7 -5
- package/lib/module/components/StatusBar.js.map +1 -1
- package/lib/module/components/StopRecordingModalContent.js +88 -0
- package/lib/module/components/StopRecordingModalContent.js.map +1 -0
- package/lib/module/components/Tile.js +30 -91
- package/lib/module/components/Tile.js.map +1 -1
- package/lib/module/components/TilesContainer.js +100 -10
- package/lib/module/components/TilesContainer.js.map +1 -1
- package/lib/module/components/UnmountAfterDelay.js +39 -0
- package/lib/module/components/UnmountAfterDelay.js.map +1 -0
- package/lib/module/components/WebrtcView.js +41 -0
- package/lib/module/components/WebrtcView.js.map +1 -0
- package/lib/module/components/WelcomeInMeeting.js +45 -0
- package/lib/module/components/WelcomeInMeeting.js.map +1 -0
- package/lib/module/hooks-sdk-selectors.js +4 -0
- package/lib/module/hooks-sdk-selectors.js.map +1 -1
- package/lib/module/hooks-sdk.js +16 -1
- package/lib/module/hooks-sdk.js.map +1 -1
- package/lib/module/hooks-util-selectors.js +8 -2
- package/lib/module/hooks-util-selectors.js.map +1 -1
- package/lib/module/hooks-util.js +310 -96
- package/lib/module/hooks-util.js.map +1 -1
- package/lib/module/modules/HMSManager.js +17 -0
- package/lib/module/modules/HMSManager.js.map +1 -0
- package/lib/module/modules/parser.js +16 -0
- package/lib/module/modules/parser.js.map +1 -0
- package/lib/module/peerTrackNodeUtils.js +6 -2
- package/lib/module/peerTrackNodeUtils.js.map +1 -1
- package/lib/module/redux/actionTypes.js +16 -1
- package/lib/module/redux/actionTypes.js.map +1 -1
- package/lib/module/redux/actions/index.js +42 -0
- package/lib/module/redux/actions/index.js.map +1 -1
- package/lib/module/redux/reducers/appState.js +57 -1
- package/lib/module/redux/reducers/appState.js.map +1 -1
- package/lib/module/redux/reducers/hmsStates.js +7 -1
- package/lib/module/redux/reducers/hmsStates.js.map +1 -1
- package/lib/module/redux/reducers/userState.js +3 -1
- package/lib/module/redux/reducers/userState.js.map +1 -1
- package/lib/module/utils/functions.js +47 -0
- package/lib/module/utils/functions.js.map +1 -1
- package/lib/module/utils/theme.js +57 -5
- package/lib/module/utils/theme.js.map +1 -1
- package/lib/module/utils/types.js +6 -0
- package/lib/module/utils/types.js.map +1 -1
- package/lib/typescript/HMSInstanceSetup.d.ts.map +1 -1
- package/lib/typescript/HMSPrebuilt.d.ts +1 -0
- package/lib/typescript/HMSPrebuilt.d.ts.map +1 -1
- package/lib/typescript/HMSRoomSetup.d.ts.map +1 -1
- package/lib/typescript/Icons/AlertTriangle/index.d.ts +7 -0
- package/lib/typescript/Icons/AlertTriangle/index.d.ts.map +1 -0
- package/lib/typescript/Icons/AnswerPhone/index.d.ts.map +1 -1
- package/lib/typescript/Icons/BRB/index.d.ts +7 -0
- package/lib/typescript/Icons/BRB/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Bluetooth/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Camera/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Chat/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Check/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Chevron/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Close/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Hamburger/index.d.ts +7 -0
- package/lib/typescript/Icons/Hamburger/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Hand/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Headphones/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Maximize/index.d.ts +7 -0
- package/lib/typescript/Icons/Maximize/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Mic/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Minimize/index.d.ts +7 -0
- package/lib/typescript/Icons/Minimize/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Participants/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Pencil/index.d.ts +7 -0
- package/lib/typescript/Icons/Pencil/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Pin/index.d.ts +7 -0
- package/lib/typescript/Icons/Pin/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Radio/index.d.ts +7 -3
- package/lib/typescript/Icons/Radio/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Recording/index.d.ts +7 -0
- package/lib/typescript/Icons/Recording/index.d.ts.map +1 -0
- package/lib/typescript/Icons/RotateCamera/index.d.ts.map +1 -1
- package/lib/typescript/Icons/ScreenShare/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Speaker/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Star/index.d.ts +7 -0
- package/lib/typescript/Icons/Star/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Stop/index.d.ts +7 -0
- package/lib/typescript/Icons/Stop/index.d.ts.map +1 -0
- package/lib/typescript/Icons/ThreeDots/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Wave/index.d.ts.map +1 -1
- package/lib/typescript/Icons/index.d.ts +10 -0
- package/lib/typescript/Icons/index.d.ts.map +1 -1
- package/lib/typescript/components/BackButton.d.ts.map +1 -1
- package/lib/typescript/components/BottomSheet.d.ts +25 -0
- package/lib/typescript/components/BottomSheet.d.ts.map +1 -0
- package/lib/typescript/components/ChangeNameModalContent.d.ts +6 -0
- package/lib/typescript/components/ChangeNameModalContent.d.ts.map +1 -0
- package/lib/typescript/components/CompanyLogo.d.ts +7 -0
- package/lib/typescript/components/CompanyLogo.d.ts.map +1 -0
- package/lib/typescript/components/CustomInput.d.ts +1 -1
- package/lib/typescript/components/CustomInput.d.ts.map +1 -1
- package/lib/typescript/components/DisplayView.d.ts.map +1 -1
- package/lib/typescript/components/EndRoomModalContent.d.ts +6 -0
- package/lib/typescript/components/EndRoomModalContent.d.ts.map +1 -0
- package/lib/typescript/components/Footer.d.ts.map +1 -1
- package/lib/typescript/components/GridView.d.ts +3 -4
- package/lib/typescript/components/GridView.d.ts.map +1 -1
- package/lib/typescript/components/HMSBaseButton.d.ts +15 -0
- package/lib/typescript/components/HMSBaseButton.d.ts.map +1 -0
- package/lib/typescript/components/HMSDangerButton.d.ts +12 -0
- package/lib/typescript/components/HMSDangerButton.d.ts.map +1 -0
- package/lib/typescript/components/HMSHLSNotStarted.d.ts.map +1 -1
- package/lib/typescript/components/HMSHLSStreamLoading.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageAudioOutput.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageLeave.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageLocalAudio.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageLocalVideo.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageRaiseHand.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewEditName.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/HMSPreviewNetworkQuality.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewPeersList.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewSubtitle.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewTile.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewTitle.d.ts.map +1 -1
- package/lib/typescript/components/HMSPrimaryButton.d.ts +12 -0
- package/lib/typescript/components/HMSPrimaryButton.d.ts.map +1 -0
- package/lib/typescript/components/HMSRecordingIndicator.d.ts +3 -0
- package/lib/typescript/components/HMSRecordingIndicator.d.ts.map +1 -0
- package/lib/typescript/components/HMSRoomOptions.d.ts.map +1 -1
- package/lib/typescript/components/HMSShowNetworkQuality.d.ts.map +1 -1
- package/lib/typescript/components/HMSTextInput.d.ts +10 -0
- package/lib/typescript/components/HMSTextInput.d.ts.map +1 -0
- package/lib/typescript/components/Header.d.ts.map +1 -1
- package/lib/typescript/components/LocalPeerRegularVideoView.d.ts +6 -0
- package/lib/typescript/components/LocalPeerRegularVideoView.d.ts.map +1 -0
- package/lib/typescript/components/LocalPeerScreenshareView.d.ts +3 -0
- package/lib/typescript/components/LocalPeerScreenshareView.d.ts.map +1 -0
- package/lib/typescript/components/Meeting.d.ts.map +1 -1
- package/lib/typescript/components/MiniView.d.ts +9 -0
- package/lib/typescript/components/MiniView.d.ts.map +1 -0
- package/lib/typescript/components/Modals.d.ts +0 -7
- package/lib/typescript/components/Modals.d.ts.map +1 -1
- package/lib/typescript/components/PaginationDots.d.ts +6 -0
- package/lib/typescript/components/PaginationDots.d.ts.map +1 -0
- package/lib/typescript/components/ParticipantsCount.d.ts +3 -0
- package/lib/typescript/components/ParticipantsCount.d.ts.map +1 -0
- package/lib/typescript/components/PeerMinimizedView.d.ts +12 -0
- package/lib/typescript/components/PeerMinimizedView.d.ts.map +1 -0
- package/lib/typescript/components/PeerSettingsModalContent.d.ts +1 -0
- package/lib/typescript/components/PeerSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/AvatarView.d.ts +9 -0
- package/lib/typescript/components/PeerVideoTile/AvatarView.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerAudioMutedIndicator.d.ts +6 -0
- package/lib/typescript/components/PeerVideoTile/PeerAudioMutedIndicator.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerMetadata.d.ts +6 -0
- package/lib/typescript/components/PeerVideoTile/PeerMetadata.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerNameAndNetwork.d.ts +10 -0
- package/lib/typescript/components/PeerVideoTile/PeerNameAndNetwork.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts +10 -0
- package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/VideoView.d.ts +13 -0
- package/lib/typescript/components/PeerVideoTile/VideoView.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/index.d.ts +1 -0
- package/lib/typescript/components/PeerVideoTile/index.d.ts.map +1 -0
- package/lib/typescript/components/PressableIcon.d.ts.map +1 -1
- package/lib/typescript/components/Preview.d.ts.map +1 -1
- package/lib/typescript/components/RoomSettingsModalContent.d.ts +2 -2
- package/lib/typescript/components/RoomSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/components/RoomSettingsModalDebugModeContent.d.ts +17 -0
- package/lib/typescript/components/RoomSettingsModalDebugModeContent.d.ts.map +1 -0
- package/lib/typescript/components/StatusBar.d.ts +2 -1
- package/lib/typescript/components/StatusBar.d.ts.map +1 -1
- package/lib/typescript/components/StopRecordingModalContent.d.ts +6 -0
- package/lib/typescript/components/StopRecordingModalContent.d.ts.map +1 -0
- package/lib/typescript/components/Tile.d.ts +12 -3
- package/lib/typescript/components/Tile.d.ts.map +1 -1
- package/lib/typescript/components/TilesContainer.d.ts.map +1 -1
- package/lib/typescript/components/UnmountAfterDelay.d.ts +12 -0
- package/lib/typescript/components/UnmountAfterDelay.d.ts.map +1 -0
- package/lib/typescript/components/WebrtcView.d.ts +10 -0
- package/lib/typescript/components/WebrtcView.d.ts.map +1 -0
- package/lib/typescript/components/WelcomeInMeeting.d.ts +5 -0
- package/lib/typescript/components/WelcomeInMeeting.d.ts.map +1 -0
- package/lib/typescript/hooks-sdk-selectors.d.ts +2 -0
- package/lib/typescript/hooks-sdk-selectors.d.ts.map +1 -1
- package/lib/typescript/hooks-sdk.d.ts +1 -0
- package/lib/typescript/hooks-sdk.d.ts.map +1 -1
- package/lib/typescript/hooks-util-selectors.d.ts.map +1 -1
- package/lib/typescript/hooks-util.d.ts +15 -2
- package/lib/typescript/hooks-util.d.ts.map +1 -1
- package/lib/typescript/modules/HMSManager.d.ts +4 -0
- package/lib/typescript/modules/HMSManager.d.ts.map +1 -0
- package/lib/typescript/modules/parser.d.ts +3 -0
- package/lib/typescript/modules/parser.d.ts.map +1 -0
- package/lib/typescript/peerTrackNodeUtils.d.ts +1 -0
- package/lib/typescript/peerTrackNodeUtils.d.ts.map +1 -1
- package/lib/typescript/redux/actionTypes.d.ts +9 -1
- package/lib/typescript/redux/actionTypes.d.ts.map +1 -1
- package/lib/typescript/redux/actions/index.d.ts +45 -0
- package/lib/typescript/redux/actions/index.d.ts.map +1 -1
- package/lib/typescript/redux/index.d.ts +7 -0
- package/lib/typescript/redux/index.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/appState.d.ts +5 -0
- package/lib/typescript/redux/reducers/appState.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/hmsStates.d.ts +7 -1
- package/lib/typescript/redux/reducers/hmsStates.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/index.d.ts +7 -0
- package/lib/typescript/redux/reducers/index.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/userState.d.ts +1 -0
- package/lib/typescript/redux/reducers/userState.d.ts.map +1 -1
- package/lib/typescript/utils/functions.d.ts +14 -0
- package/lib/typescript/utils/functions.d.ts.map +1 -1
- package/lib/typescript/utils/theme.d.ts +6 -3
- package/lib/typescript/utils/theme.d.ts.map +1 -1
- package/lib/typescript/utils/types.d.ts +5 -0
- package/lib/typescript/utils/types.d.ts.map +1 -1
- package/package.json +4 -2
- package/src/HMSInstanceSetup.tsx +1 -0
- package/src/HMSPrebuilt.tsx +3 -2
- package/src/HMSRoomSetup.tsx +45 -8
- package/src/Icons/AlertTriangle/assets/alert-triangle.png +0 -0
- package/src/Icons/AlertTriangle/assets/alert-triangle@2x.png +0 -0
- package/src/Icons/AlertTriangle/assets/alert-triangle@3x.png +0 -0
- package/src/Icons/AlertTriangle/index.tsx +33 -0
- package/src/Icons/AnswerPhone/index.tsx +7 -1
- package/src/Icons/BRB/assets/BRB.png +0 -0
- package/src/Icons/BRB/assets/BRB@2x.png +0 -0
- package/src/Icons/BRB/assets/BRB@3x.png +0 -0
- package/src/Icons/BRB/index.tsx +31 -0
- package/src/Icons/Bluetooth/index.tsx +7 -1
- package/src/Icons/Camera/index.tsx +7 -1
- package/src/Icons/Chat/index.tsx +7 -1
- package/src/Icons/Check/index.tsx +7 -1
- package/src/Icons/Chevron/index.tsx +7 -1
- package/src/Icons/Close/index.tsx +7 -1
- package/src/Icons/Hamburger/assets/hamburger.png +0 -0
- package/src/Icons/Hamburger/assets/hamburger@2x.png +0 -0
- package/src/Icons/Hamburger/assets/hamburger@3x.png +0 -0
- package/src/Icons/Hamburger/index.tsx +33 -0
- package/src/Icons/Hand/index.tsx +6 -3
- package/src/Icons/Headphones/index.tsx +7 -1
- package/src/Icons/Maximize/assets/maximize.png +0 -0
- package/src/Icons/Maximize/assets/maximize@2x.png +0 -0
- package/src/Icons/Maximize/assets/maximize@3x.png +0 -0
- package/src/Icons/Maximize/index.tsx +33 -0
- package/src/Icons/Mic/index.tsx +7 -1
- package/src/Icons/Minimize/assets/minimize.png +0 -0
- package/src/Icons/Minimize/assets/minimize@2x.png +0 -0
- package/src/Icons/Minimize/assets/minimize@3x.png +0 -0
- package/src/Icons/Minimize/index.tsx +33 -0
- package/src/Icons/Participants/index.tsx +7 -1
- package/src/Icons/Pencil/assets/pencil.png +0 -0
- package/src/Icons/Pencil/assets/pencil@2x.png +0 -0
- package/src/Icons/Pencil/assets/pencil@3x.png +0 -0
- package/src/Icons/Pencil/index.tsx +33 -0
- package/src/Icons/Pin/assets/pin.png +0 -0
- package/src/Icons/Pin/assets/pin@2x.png +0 -0
- package/src/Icons/Pin/assets/pin@3x.png +0 -0
- package/src/Icons/Pin/index.tsx +30 -0
- package/src/Icons/Radio/assets/radio-xlarge.png +0 -0
- package/src/Icons/Radio/assets/radio-xlarge@2x.png +0 -0
- package/src/Icons/Radio/assets/radio-xlarge@3x.png +0 -0
- package/src/Icons/Radio/index.tsx +53 -4
- package/src/Icons/Recording/assets/recording.png +0 -0
- package/src/Icons/Recording/assets/recording@2x.png +0 -0
- package/src/Icons/Recording/assets/recording@3x.png +0 -0
- package/src/Icons/Recording/index.tsx +33 -0
- package/src/Icons/RotateCamera/index.tsx +7 -1
- package/src/Icons/ScreenShare/index.tsx +7 -1
- package/src/Icons/Speaker/index.tsx +12 -1
- package/src/Icons/Star/assets/star.png +0 -0
- package/src/Icons/Star/assets/star@2x.png +0 -0
- package/src/Icons/Star/assets/star@3x.png +0 -0
- package/src/Icons/Star/index.tsx +30 -0
- package/src/Icons/Stop/assets/stop.png +0 -0
- package/src/Icons/Stop/assets/stop@2x.png +0 -0
- package/src/Icons/Stop/assets/stop@3x.png +0 -0
- package/src/Icons/Stop/index.tsx +30 -0
- package/src/Icons/ThreeDots/index.tsx +7 -1
- package/src/Icons/Wave/index.tsx +7 -1
- package/src/Icons/index.ts +10 -0
- package/src/components/AvatarView.tsx +1 -2
- package/src/components/BackButton.tsx +6 -3
- package/src/components/BottomSheet.tsx +191 -0
- package/src/components/ChangeNameModalContent.tsx +157 -0
- package/src/components/CompanyLogo.tsx +35 -0
- package/src/components/CustomInput.tsx +2 -3
- package/src/components/DisplayView.tsx +17 -67
- package/src/components/EndRoomModalContent.tsx +90 -0
- package/src/components/Footer.tsx +38 -33
- package/src/components/GridView.tsx +91 -20
- package/src/components/HMSBaseButton.tsx +91 -0
- package/src/components/HMSDangerButton.tsx +65 -0
- package/src/components/HMSHLSNotStarted.tsx +26 -20
- package/src/components/HMSHLSStreamLoading.tsx +18 -7
- package/src/components/HMSManageAudioOutput.tsx +59 -90
- package/src/components/HMSManageCameraRotation.tsx +11 -8
- package/src/components/HMSManageLeave.tsx +115 -126
- package/src/components/HMSManageLocalAudio.tsx +1 -10
- package/src/components/HMSManageLocalVideo.tsx +1 -10
- package/src/components/HMSManageRaiseHand.tsx +2 -16
- package/src/components/HMSMeetingEnded.tsx +1 -2
- package/src/components/HMSPreviewEditName.tsx +2 -44
- package/src/components/HMSPreviewHLSLiveIndicator.tsx +17 -9
- package/src/components/HMSPreviewJoinButton.tsx +33 -71
- package/src/components/HMSPreviewNetworkQuality.tsx +7 -4
- package/src/components/HMSPreviewPeersList.tsx +23 -13
- package/src/components/HMSPreviewSubtitle.tsx +27 -11
- package/src/components/HMSPreviewTile.tsx +19 -8
- package/src/components/HMSPreviewTitle.tsx +18 -5
- package/src/components/HMSPrimaryButton.tsx +63 -0
- package/src/components/HMSRecordingIndicator.tsx +39 -0
- package/src/components/HMSRoomOptions.tsx +28 -8
- package/src/components/HMSShowNetworkQuality.tsx +7 -5
- package/src/components/HMSTextInput.tsx +78 -0
- package/src/components/Header.tsx +37 -36
- package/src/components/LocalPeerRegularVideoView.tsx +28 -0
- package/src/components/LocalPeerScreenshareView.tsx +72 -0
- package/src/components/Meeting.tsx +10 -3
- package/src/components/MeetingScreenContent.tsx +1 -1
- package/src/components/MiniView.tsx +213 -0
- package/src/components/Modals.tsx +1 -110
- package/src/components/PaginationDots.tsx +65 -0
- package/src/components/ParticipantsCount.tsx +52 -0
- package/src/components/PeerMinimizedView.tsx +131 -0
- package/src/components/PeerSettingsModalContent.tsx +110 -54
- package/src/components/PeerVideoTile/AvatarView.tsx +79 -0
- package/src/components/PeerVideoTile/PeerAudioMutedIndicator.tsx +41 -0
- package/src/components/PeerVideoTile/PeerMetadata.tsx +46 -0
- package/src/components/PeerVideoTile/PeerNameAndNetwork.tsx +81 -0
- package/src/components/PeerVideoTile/PeerVideoTileView.tsx +180 -0
- package/src/components/PeerVideoTile/VideoView.tsx +104 -0
- package/src/components/PeerVideoTile/index.ts +0 -0
- package/src/components/PressableIcon.tsx +15 -8
- package/src/components/Preview.tsx +24 -6
- package/src/components/RoomSettingsModalContent.tsx +237 -524
- package/src/components/RoomSettingsModalDebugModeContent.tsx +446 -0
- package/src/components/StatusBar.tsx +6 -4
- package/src/components/StopRecordingModalContent.tsx +111 -0
- package/src/components/Tile.tsx +49 -90
- package/src/components/TilesContainer.tsx +116 -14
- package/src/components/UnmountAfterDelay.tsx +61 -0
- package/src/components/WebrtcView.tsx +72 -0
- package/src/components/WelcomeInMeeting.tsx +52 -0
- package/src/hooks-sdk-selectors.tsx +7 -0
- package/src/hooks-sdk.ts +18 -0
- package/src/hooks-util-selectors.tsx +12 -1
- package/src/hooks-util.ts +420 -114
- package/src/modules/HMSManager.ts +25 -0
- package/src/modules/parser.ts +22 -0
- package/src/peerTrackNodeUtils.tsx +13 -10
- package/src/redux/actionTypes.ts +22 -0
- package/src/redux/actions/index.ts +53 -0
- package/src/redux/reducers/appState.ts +59 -0
- package/src/redux/reducers/hmsStates.ts +15 -1
- package/src/redux/reducers/userState.ts +3 -0
- package/src/utils/functions.ts +48 -0
- package/src/utils/theme.ts +74 -5
- package/src/utils/types.ts +6 -0
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import Modal from 'react-native-modal';
|
|
4
|
+
import { StyleSheet, Text, TouchableOpacity, View } from 'react-native';
|
|
5
|
+
import { CloseIcon } from '../Icons';
|
|
6
|
+
import { useHMSRoomColorPalette, useHMSRoomStyle, useHMSRoomStyleSheet } from '../hooks-util';
|
|
7
|
+
export const BottomSheet = _ref => {
|
|
8
|
+
let {
|
|
9
|
+
dismissModal,
|
|
10
|
+
style,
|
|
11
|
+
children,
|
|
12
|
+
containerStyle,
|
|
13
|
+
...resetProps
|
|
14
|
+
} = _ref;
|
|
15
|
+
const {
|
|
16
|
+
background_dim: backgroundDimColor
|
|
17
|
+
} = useHMSRoomColorPalette();
|
|
18
|
+
const containerStyles = useHMSRoomStyle(theme => ({
|
|
19
|
+
backgroundColor: theme.palette.background_default
|
|
20
|
+
}));
|
|
21
|
+
const {
|
|
22
|
+
handleModalHideAction
|
|
23
|
+
} = useBottomSheetActionHandlers();
|
|
24
|
+
return /*#__PURE__*/React.createElement(Modal, _extends({}, resetProps, {
|
|
25
|
+
animationIn: resetProps.animationIn ?? 'slideInUp',
|
|
26
|
+
animationOut: resetProps.animationOut ?? 'slideOutDown',
|
|
27
|
+
backdropColor: resetProps.backdropColor ?? backgroundDimColor,
|
|
28
|
+
backdropOpacity: resetProps.backdropOpacity ?? 0.3,
|
|
29
|
+
onBackButtonPress: resetProps.onBackButtonPress ?? dismissModal,
|
|
30
|
+
onBackdropPress: resetProps.onBackdropPress ?? dismissModal,
|
|
31
|
+
useNativeDriver: resetProps.useNativeDriver ?? true,
|
|
32
|
+
useNativeDriverForBackdrop: resetProps.useNativeDriverForBackdrop ?? true,
|
|
33
|
+
hideModalContentWhileAnimating: resetProps.hideModalContentWhileAnimating ?? true,
|
|
34
|
+
style: [styles.modal, style],
|
|
35
|
+
onModalHide: resetProps.onModalHide ?? handleModalHideAction,
|
|
36
|
+
supportedOrientations: resetProps.supportedOrientations ?? ['portrait', 'landscape']
|
|
37
|
+
// coverScreen={true}
|
|
38
|
+
}), /*#__PURE__*/React.createElement(View, {
|
|
39
|
+
style: [styles.container, containerStyles, containerStyle]
|
|
40
|
+
}, children));
|
|
41
|
+
};
|
|
42
|
+
const BottomSheetHeader = _ref2 => {
|
|
43
|
+
let {
|
|
44
|
+
dismissModal,
|
|
45
|
+
heading,
|
|
46
|
+
subheading
|
|
47
|
+
} = _ref2;
|
|
48
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
49
|
+
headerText: {
|
|
50
|
+
color: theme.palette.on_surface_high,
|
|
51
|
+
fontFamily: `${typography.font_family}-SemiBold`
|
|
52
|
+
},
|
|
53
|
+
subheadingText: {
|
|
54
|
+
color: theme.palette.on_surface_medium,
|
|
55
|
+
fontFamily: `${typography.font_family}-Regular`
|
|
56
|
+
}
|
|
57
|
+
}));
|
|
58
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
59
|
+
style: styles.header
|
|
60
|
+
}, /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(Text, {
|
|
61
|
+
style: [styles.headerText, hmsRoomStyles.headerText]
|
|
62
|
+
}, heading), subheading ? /*#__PURE__*/React.createElement(Text, {
|
|
63
|
+
style: [styles.subheadingText, hmsRoomStyles.subheadingText]
|
|
64
|
+
}, subheading) : null), /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
65
|
+
onPress: dismissModal,
|
|
66
|
+
hitSlop: styles.closeIconHitSlop
|
|
67
|
+
}, /*#__PURE__*/React.createElement(CloseIcon, null)));
|
|
68
|
+
};
|
|
69
|
+
const BottomSheetDivider = () => {
|
|
70
|
+
const dividerStyles = useHMSRoomStyle(theme => ({
|
|
71
|
+
backgroundColor: theme.palette.border_default
|
|
72
|
+
}));
|
|
73
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
74
|
+
style: [styles.divider, dividerStyles]
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
BottomSheet.Header = BottomSheetHeader;
|
|
78
|
+
BottomSheet.Divider = BottomSheetDivider;
|
|
79
|
+
const onModalHideActionHandlerRef = {
|
|
80
|
+
handler: null
|
|
81
|
+
};
|
|
82
|
+
const useBottomSheetActionHandlers = () => {
|
|
83
|
+
const onModalHideActionRef = React.useRef(onModalHideActionHandlerRef);
|
|
84
|
+
const handleModalHideAction = React.useCallback(() => {
|
|
85
|
+
if (typeof onModalHideActionRef.current.handler === 'function') {
|
|
86
|
+
onModalHideActionRef.current.handler();
|
|
87
|
+
}
|
|
88
|
+
onModalHideActionRef.current.handler = null;
|
|
89
|
+
}, []);
|
|
90
|
+
return {
|
|
91
|
+
handleModalHideAction
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
export const useBottomSheetActions = () => {
|
|
95
|
+
const registerOnModalHideAction = React.useCallback(action => {
|
|
96
|
+
onModalHideActionHandlerRef.handler = action;
|
|
97
|
+
}, []);
|
|
98
|
+
const clearOnModalHideAction = React.useCallback(() => {
|
|
99
|
+
onModalHideActionHandlerRef.handler = null;
|
|
100
|
+
}, []);
|
|
101
|
+
return {
|
|
102
|
+
registerOnModalHideAction,
|
|
103
|
+
clearOnModalHideAction
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
const styles = StyleSheet.create({
|
|
107
|
+
modal: {
|
|
108
|
+
margin: 0,
|
|
109
|
+
justifyContent: 'flex-end'
|
|
110
|
+
},
|
|
111
|
+
container: {
|
|
112
|
+
borderTopLeftRadius: 16,
|
|
113
|
+
borderTopRightRadius: 16,
|
|
114
|
+
paddingBottom: 32
|
|
115
|
+
},
|
|
116
|
+
header: {
|
|
117
|
+
flexDirection: 'row',
|
|
118
|
+
alignItems: 'center',
|
|
119
|
+
justifyContent: 'space-between',
|
|
120
|
+
marginTop: 16,
|
|
121
|
+
marginHorizontal: 24
|
|
122
|
+
},
|
|
123
|
+
headerText: {
|
|
124
|
+
fontSize: 16,
|
|
125
|
+
lineHeight: 24,
|
|
126
|
+
letterSpacing: 0.15
|
|
127
|
+
},
|
|
128
|
+
subheadingText: {
|
|
129
|
+
marginTop: 4,
|
|
130
|
+
fontSize: 12,
|
|
131
|
+
lineHeight: 16,
|
|
132
|
+
letterSpacing: 0.4
|
|
133
|
+
},
|
|
134
|
+
closeIconHitSlop: {
|
|
135
|
+
bottom: 16,
|
|
136
|
+
left: 16,
|
|
137
|
+
right: 16,
|
|
138
|
+
top: 16
|
|
139
|
+
},
|
|
140
|
+
divider: {
|
|
141
|
+
height: 1,
|
|
142
|
+
width: '100%',
|
|
143
|
+
marginVertical: 16
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
//# sourceMappingURL=BottomSheet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Modal","StyleSheet","Text","TouchableOpacity","View","CloseIcon","useHMSRoomColorPalette","useHMSRoomStyle","useHMSRoomStyleSheet","BottomSheet","_ref","dismissModal","style","children","containerStyle","resetProps","background_dim","backgroundDimColor","containerStyles","theme","backgroundColor","palette","background_default","handleModalHideAction","useBottomSheetActionHandlers","createElement","_extends","animationIn","animationOut","backdropColor","backdropOpacity","onBackButtonPress","onBackdropPress","useNativeDriver","useNativeDriverForBackdrop","hideModalContentWhileAnimating","styles","modal","onModalHide","supportedOrientations","container","BottomSheetHeader","_ref2","heading","subheading","hmsRoomStyles","typography","headerText","color","on_surface_high","fontFamily","font_family","subheadingText","on_surface_medium","header","onPress","hitSlop","closeIconHitSlop","BottomSheetDivider","dividerStyles","border_default","divider","Header","Divider","onModalHideActionHandlerRef","handler","onModalHideActionRef","useRef","useCallback","current","useBottomSheetActions","registerOnModalHideAction","action","clearOnModalHideAction","create","margin","justifyContent","borderTopLeftRadius","borderTopRightRadius","paddingBottom","flexDirection","alignItems","marginTop","marginHorizontal","fontSize","lineHeight","letterSpacing","bottom","left","right","top","height","width","marginVertical"],"sourceRoot":"../../../src","sources":["components/BottomSheet.tsx"],"mappings":";AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,KAAK,MAAM,oBAAoB;AAEtC,SAASC,UAAU,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,IAAI,QAAQ,cAAc;AAGvE,SAASC,SAAS,QAAQ,UAAU;AACpC,SACEC,sBAAsB,EACtBC,eAAe,EACfC,o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IAAEE;EAAuB,CAAC;AAC9D,CAAC;AAED,MAAMrC,MAAM,GAAGnC,UAAU,CAACyE,MAAM,CAAC;EAC/BrC,KAAK,EAAE;IACLsC,MAAM,EAAE,CAAC;IACTC,cAAc,EAAE;EAClB,CAAC;EACDpC,SAAS,EAAE;IACTqC,mBAAmB,EAAE,EAAE;IACvBC,oBAAoB,EAAE,EAAE;IACxBC,aAAa,EAAE;EACjB,CAAC;EACDzB,MAAM,EAAE;IACN0B,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBL,cAAc,EAAE,eAAe;IAC/BM,SAAS,EAAE,EAAE;IACbC,gBAAgB,EAAE;EACpB,CAAC;EACDpC,UAAU,EAAE;IACVqC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,aAAa,EAAE;EACjB,CAAC;EACDlC,cAAc,EAAE;IACd8B,SAAS,EAAE,CAAC;IACZE,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,aAAa,EAAE;EACjB,CAAC;EACD7B,gBAAgB,EAAE;IAChB8B,MAAM,EAAE,EAAE;IACVC,IAAI,EAAE,EAAE;IACRC,KAAK,EAAE,EAAE;IACTC,GAAG,EAAE;EACP,CAAC;EACD7B,OAAO,EAAE;IACP8B,MAAM,EAAE,CAAC;IACTC,KAAK,EAAE,MAAM;IACbC,cAAc,EAAE;EAClB;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { View, Text, StyleSheet, TouchableOpacity, Keyboard } from 'react-native';
|
|
3
|
+
import { useSelector } from 'react-redux';
|
|
4
|
+
import { useHMSRoomStyleSheet, useModalType } from '../hooks-util';
|
|
5
|
+
import { BottomSheet, useBottomSheetActions } from './BottomSheet';
|
|
6
|
+
import { ChevronIcon, CloseIcon } from '../Icons';
|
|
7
|
+
import { ModalTypes } from '../utils/types';
|
|
8
|
+
import { HMSTextInput } from './HMSTextInput';
|
|
9
|
+
import { HMSPrimaryButton } from './HMSPrimaryButton';
|
|
10
|
+
import { useHMSActions } from '../hooks-sdk';
|
|
11
|
+
export const ChangeNameModalContent = _ref => {
|
|
12
|
+
let {
|
|
13
|
+
dismissModal
|
|
14
|
+
} = _ref;
|
|
15
|
+
const hmsActions = useHMSActions();
|
|
16
|
+
const localPeerName = useSelector(state => {
|
|
17
|
+
var _state$hmsStates$loca;
|
|
18
|
+
return ((_state$hmsStates$loca = state.hmsStates.localPeer) === null || _state$hmsStates$loca === void 0 ? void 0 : _state$hmsStates$loca.name) || '';
|
|
19
|
+
});
|
|
20
|
+
const [name, setName] = React.useState(localPeerName);
|
|
21
|
+
const [nameChangeLoading, setNameChangeLoading] = React.useState(false);
|
|
22
|
+
const {
|
|
23
|
+
handleModalVisibleType
|
|
24
|
+
} = useModalType();
|
|
25
|
+
const {
|
|
26
|
+
registerOnModalHideAction
|
|
27
|
+
} = useBottomSheetActions();
|
|
28
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
29
|
+
headerText: {
|
|
30
|
+
color: theme.palette.on_surface_high,
|
|
31
|
+
fontFamily: `${typography.font_family}-SemiBold`
|
|
32
|
+
}
|
|
33
|
+
}));
|
|
34
|
+
const invalidName = name.trim().length <= 0;
|
|
35
|
+
const disabledButton = nameChangeLoading || invalidName;
|
|
36
|
+
const handleBackPress = () => {
|
|
37
|
+
Keyboard.dismiss();
|
|
38
|
+
|
|
39
|
+
// Open SETTINGS bottom sheet when current sheet is closed
|
|
40
|
+
registerOnModalHideAction(() => {
|
|
41
|
+
handleModalVisibleType(ModalTypes.SETTINGS);
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
// Close current bottom sheet
|
|
45
|
+
dismissModal();
|
|
46
|
+
};
|
|
47
|
+
const handleClosePress = () => {
|
|
48
|
+
Keyboard.dismiss();
|
|
49
|
+
dismissModal();
|
|
50
|
+
};
|
|
51
|
+
const changeName = async () => {
|
|
52
|
+
if (invalidName) return;
|
|
53
|
+
setNameChangeLoading(true);
|
|
54
|
+
try {
|
|
55
|
+
await hmsActions.changeName(name);
|
|
56
|
+
Keyboard.dismiss();
|
|
57
|
+
dismissModal();
|
|
58
|
+
} catch (error) {
|
|
59
|
+
setNameChangeLoading(false);
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
return /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(View, {
|
|
63
|
+
style: styles.header
|
|
64
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
65
|
+
style: styles.headerControls
|
|
66
|
+
}, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
67
|
+
onPress: handleBackPress,
|
|
68
|
+
hitSlop: styles.closeIconHitSlop
|
|
69
|
+
}, /*#__PURE__*/React.createElement(ChevronIcon, {
|
|
70
|
+
direction: "left"
|
|
71
|
+
})), /*#__PURE__*/React.createElement(Text, {
|
|
72
|
+
style: [styles.headerText, hmsRoomStyles.headerText]
|
|
73
|
+
}, "Change Name")), /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
74
|
+
onPress: handleClosePress,
|
|
75
|
+
hitSlop: styles.closeIconHitSlop
|
|
76
|
+
}, /*#__PURE__*/React.createElement(CloseIcon, null))), /*#__PURE__*/React.createElement(BottomSheet.Divider, null), /*#__PURE__*/React.createElement(View, {
|
|
77
|
+
style: styles.contentContainer
|
|
78
|
+
}, /*#__PURE__*/React.createElement(HMSTextInput, {
|
|
79
|
+
style: styles.textInput,
|
|
80
|
+
value: name,
|
|
81
|
+
autoFocus: true,
|
|
82
|
+
onChangeText: setName
|
|
83
|
+
}), /*#__PURE__*/React.createElement(HMSPrimaryButton, {
|
|
84
|
+
loading: nameChangeLoading,
|
|
85
|
+
onPress: changeName,
|
|
86
|
+
title: "Change",
|
|
87
|
+
disabled: disabledButton
|
|
88
|
+
})));
|
|
89
|
+
};
|
|
90
|
+
const styles = StyleSheet.create({
|
|
91
|
+
header: {
|
|
92
|
+
flexDirection: 'row',
|
|
93
|
+
alignItems: 'center',
|
|
94
|
+
justifyContent: 'space-between',
|
|
95
|
+
marginTop: 16,
|
|
96
|
+
marginHorizontal: 24
|
|
97
|
+
},
|
|
98
|
+
headerControls: {
|
|
99
|
+
flexDirection: 'row',
|
|
100
|
+
alignItems: 'center'
|
|
101
|
+
},
|
|
102
|
+
headerText: {
|
|
103
|
+
fontSize: 16,
|
|
104
|
+
lineHeight: 24,
|
|
105
|
+
letterSpacing: 0.15,
|
|
106
|
+
marginLeft: 8
|
|
107
|
+
},
|
|
108
|
+
closeIconHitSlop: {
|
|
109
|
+
bottom: 16,
|
|
110
|
+
left: 16,
|
|
111
|
+
right: 16,
|
|
112
|
+
top: 16
|
|
113
|
+
},
|
|
114
|
+
contentContainer: {
|
|
115
|
+
marginHorizontal: 24
|
|
116
|
+
},
|
|
117
|
+
textInput: {
|
|
118
|
+
flex: undefined,
|
|
119
|
+
marginBottom: 16
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
//# sourceMappingURL=ChangeNameModalContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","Text","StyleSheet","TouchableOpacity","Keyboard","useSelector","useHMSRoomStyleSheet","useModalType","BottomSheet","useBottomSheetActions","ChevronIcon","CloseIcon","ModalTypes","HMSTextInput","HMSPrimaryButton","useHMSActions","ChangeNameModalContent","_ref","dismissModal","hmsActions","localPeerName","state","_state$hmsStates$loca","hmsStates","localPeer","name","setName","useState","nameChangeLoading","setNameChangeLoading","handleModalVisibleType","registerOnModalHideAction","hmsRoomStyles","theme","typography","headerText","color","palette","on_surface_high","fontFamily","font_family","invalidName","trim","length","disabledButton","handleBackPress","dismiss","SETTINGS","handleClosePress","changeName","error","createElement","style","styles","header","headerControls","onPress","hitSlop","closeIconHitSlop","direction","Divider","contentContainer","textInput","value","autoFocus","onChangeText","loading","title","disabled","create","flexDirection","alignItems","justifyContent","marginTop","marginHorizontal","fontSize","lineHeight","letterSpacing","marginLeft","bottom","left","right","top","flex","undefined","marginBottom"],"sourceRoot":"../../../src","sources":["components/ChangeNameModalContent.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SACEC,IAAI,EACJC,IAAI,EACJC,UAAU,EACVC,gBAAgB,EAChBC,QAAQ,QACH,cAAc;AACrB,SAASC,WAAW,QAAQ,aAAa;AAGzC,SAASC,oBAAoB,EAAEC,YAAY,QAAQ,eAAe;AAClE,SAASC,WAAW,EAAEC,qBAAqB,QAAQ,eAAe;AAClE,SAASC,WAAW,EAAEC,SAAS,QAAQ,UAAU;AACjD,SAASC,UAAU,QAAQ,gBAAgB;AAC3C,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,gBAAgB,QAAQ,oBAAoB;AACrD,SAASC,aAAa,QAAQ,cAAc;AAM5C,OAAO,MAAMC,sBAA6D,GAAGC,IAAA,IAEvE;EAAA,IAFwE;IAC5EC;EACF,CAAC,GAAAD,IAAA;EACC,MAAME,UAAU,GAAGJ,aAAa,CAAC,CAAC;EAClC,MAAMK,aAAa,GAAGf,WAAW,CAC9BgB,KAAgB;IAAA,IAAAC,qBAAA;IAAA,OAAK,EAAAA,qBAAA,GAAAD,KAAK,CAACE,SAAS,CAACC,SAAS,cAAAF,qBAAA,uBAAzBA,qBAAA,CAA2BG,IAAI,KAAI,EAAE;EAAA,CAC7D,CAAC;EAED,MAAM,CAACA,IAAI,EAAEC,OAAO,CAAC,GAAG3B,KAAK,CAAC4B,QAAQ,CAACP,aAAa,CAAC;EACrD,MAAM,CAACQ,iBAAiB,EAAEC,oBAAoB,CAAC,GAAG9B,KAAK,CAAC4B,QAAQ,CAAC,KAAK,CAAC;EACvE,MAAM;IAAEG;EAAuB,CAAC,GAAGvB,YAAY,CAAC,CAAC;EAEjD,MAAM;IAAEwB;EAA0B,CAAC,GAAGtB,qBAAqB,CAAC,CAAC;EAE7D,MAAMuB,aAAa,GAAG1B,oBAAoB,CAAC,CAAC2B,KAAK,EAAEC,UA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EAAE,KAAK;IACpBC,UAAU,EAAE;EACd,CAAC;EACDpC,UAAU,EAAE;IACVwC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,aAAa,EAAE,IAAI;IACnBC,UAAU,EAAE;EACd,CAAC;EACDpB,gBAAgB,EAAE;IAChBqB,MAAM,EAAE,EAAE;IACVC,IAAI,EAAE,EAAE;IACRC,KAAK,EAAE,EAAE;IACTC,GAAG,EAAE;EACP,CAAC;EACDrB,gBAAgB,EAAE;IAChBa,gBAAgB,EAAE;EACpB,CAAC;EACDZ,SAAS,EAAE;IACTqB,IAAI,EAAEC,SAAS;IACfC,YAAY,EAAE;EAChB;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Image, StyleSheet } from 'react-native';
|
|
4
|
+
import { useHMSLayoutConfig } from '../hooks-util';
|
|
5
|
+
export const CompanyLogo = _ref => {
|
|
6
|
+
var _layoutConfig$logo;
|
|
7
|
+
let {
|
|
8
|
+
style,
|
|
9
|
+
...restProps
|
|
10
|
+
} = _ref;
|
|
11
|
+
const layoutConfig = useHMSLayoutConfig();
|
|
12
|
+
const logoSource = layoutConfig === null || layoutConfig === void 0 || (_layoutConfig$logo = layoutConfig.logo) === null || _layoutConfig$logo === void 0 ? void 0 : _layoutConfig$logo.url;
|
|
13
|
+
if (!logoSource) {
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
return /*#__PURE__*/React.createElement(Image, _extends({
|
|
17
|
+
source: {
|
|
18
|
+
uri: logoSource
|
|
19
|
+
},
|
|
20
|
+
style: [styles.icon, style]
|
|
21
|
+
}, restProps));
|
|
22
|
+
};
|
|
23
|
+
const styles = StyleSheet.create({
|
|
24
|
+
icon: {
|
|
25
|
+
aspectRatio: 1,
|
|
26
|
+
height: 32,
|
|
27
|
+
resizeMode: 'contain'
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
//# sourceMappingURL=CompanyLogo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Image","StyleSheet","useHMSLayoutConfig","CompanyLogo","_ref","_layoutConfig$logo","style","restProps","layoutConfig","logoSource","logo","url","createElement","_extends","source","uri","styles","icon","create","aspectRatio","height","resizeMode"],"sourceRoot":"../../../src","sources":["components/CompanyLogo.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,UAAU,QAAQ,cAAc;AAGhD,SAASC,kBAAkB,QAAQ,eAAe;AAIlD,OAAO,MAAMC,WAAuC,GAAGC,IAAA,IAGjD;EAAA,IAAAC,kBAAA;EAAA,IAHkD;IACtDC,KAAK;IACL,GAAGC;EACL,CAAC,GAAAH,IAAA;EACC,MAAMI,YAAY,GAAGN,kBAAkB,CAAC,CAAC;EAEzC,MAAMO,UAAU,GAAGD,YAAY,aAAZA,YAAY,gBAAAH,kBAAA,GAAZG,YAAY,CAAEE,IAAI,cAAAL,kBAAA,uBAAlBA,kBAAA,CAAoBM,GAAG;EAC1C,IAAI,CAACF,UAAU,EAAE;IACf,OAAO,IAAI;EACb;EAEA,oBACEV,KAAA,CAAAa,aAAA,CAACZ,KAAK,EAAAa,QAAA;IACJC,MAAM,EAAE;MAAEC,GAAG,EAAEN;IAAW,CAAE;IAC5BH,KAAK,EAAE,CAACU,MAAM,CAACC,IAAI,EAAEX,KAAK;EAAE,GACxBC,SAAS,CACd,CAAC;AAEN,CAAC;AAED,MAAMS,MAAM,GAAGf,UAAU,CAACiB,MAAM,CAAC;EAC/BD,IAAI,EAAE;IACJE,WAAW,EAAE,CAAC;IACdC,MAAM,EAAE,EAAE;IACVC,UAAU,EAAE;EACd;AACF,CAAC,CAAC"}
|
|
@@ -2,8 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { StyleSheet, Text, TextInput, TouchableOpacity, View } from 'react-native';
|
|
3
3
|
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
|
|
4
4
|
import { COLORS } from '../utils/theme';
|
|
5
|
-
const CustomInput =
|
|
6
|
-
) => {
|
|
5
|
+
const CustomInput = _ref => {
|
|
7
6
|
let {
|
|
8
7
|
value,
|
|
9
8
|
title,
|
|
@@ -20,7 +19,7 @@ const CustomInput = (_ref // autoCompleteType = 'off',
|
|
|
20
19
|
blurOnSubmit,
|
|
21
20
|
disableFullscreenUI = true,
|
|
22
21
|
clear = true,
|
|
23
|
-
autoCapitalize = 'none' // autoCorrect = false,
|
|
22
|
+
autoCapitalize = 'none' // autoCorrect = false, // autoCompleteType = 'off',
|
|
24
23
|
} = _ref;
|
|
25
24
|
const showClear = clear && value !== undefined && (value === null || value === void 0 ? void 0 : value.length) > 0;
|
|
26
25
|
const onChange = newValue => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","Text","TextInput","TouchableOpacity","View","MaterialIcons","COLORS","CustomInput","_ref","value","title","onChangeText","placeholderTextColor","placeholder","textStyle","viewStyle","clearButtonStyle","inputStyle","defaultValue","returnKeyType","multiline","blurOnSubmit","disableFullscreenUI","clear","autoCapitalize","showClear","undefined","length","onChange","newValue","createElement","style","styles","inputContainer","input","keyboardAppearance","autoCorrect","textContentType","autoCompleteType","onPress","clearContainer","name","clearIcon","size","create","width","height","position","right","top","bottom","justifyContent","paddingHorizontal","paddingRight","color","TEXT","HIGH_EMPHASIS"],"sourceRoot":"../../../src","sources":["components/CustomInput.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,UAAU,EACVC,IAAI,EACJC,SAAS,EACTC,gBAAgB,EAChBC,IAAI,QACC,cAAc;AAOrB,OAAOC,aAAa,MAAM,yCAAyC;AAEnE,SAASC,MAAM,QAAQ,gBAAgB;AAEvC,MAAMC,WAAW,
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","Text","TextInput","TouchableOpacity","View","MaterialIcons","COLORS","CustomInput","_ref","value","title","onChangeText","placeholderTextColor","placeholder","textStyle","viewStyle","clearButtonStyle","inputStyle","defaultValue","returnKeyType","multiline","blurOnSubmit","disableFullscreenUI","clear","autoCapitalize","showClear","undefined","length","onChange","newValue","createElement","style","styles","inputContainer","input","keyboardAppearance","autoCorrect","textContentType","autoCompleteType","onPress","clearContainer","name","clearIcon","size","create","width","height","position","right","top","bottom","justifyContent","paddingHorizontal","paddingRight","color","TEXT","HIGH_EMPHASIS"],"sourceRoot":"../../../src","sources":["components/CustomInput.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,UAAU,EACVC,IAAI,EACJC,SAAS,EACTC,gBAAgB,EAChBC,IAAI,QACC,cAAc;AAOrB,OAAOC,aAAa,MAAM,yCAAyC;AAEnE,SAASC,MAAM,QAAQ,gBAAgB;AAEvC,MAAMC,WAAW,GAAGC,IAAA,IAiDd;EAAA,IAjDe;IACnBC,KAAK;IACLC,KAAK;IACLC,YAAY;IACZC,oBAAoB;IACpBC,WAAW;IACXC,SAAS;IACTC,SAAS;IACTC,gBAAgB;IAChBC,UAAU;IACVC,YAAY;IACZC,aAAa;IACbC,SAAS;IACTC,YAAY;IACZC,mBAAmB,GAAG,IAAI;IAC1BC,KAAK,GAAG,IAAI;IACZC,cAAc,GAAG,MAAM,CAAE;EAiC3B,CAAC,GAAAhB,IAAA;EACC,MAAMiB,SAAS,GAAGF,KAAK,IAAId,KAAK,KAAKiB,SAAS,IAAI,CAAAjB,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAEkB,MAAM,IAAG,CAAC;EAEnE,MAAMC,QAAQ,GAAIC,QAAgB,IAAK;IACrClB,YAAY,CAACkB,QAAQ,CAAC;EACxB,CAAC;EAED,oBACE9B,KAAA,CAAA+B,aAAA,CAAC1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Y,KAAK,EAAE;EACT,CAAC;EACDX,KAAK,EAAE;IACLY,MAAM,EAAE;EACV,CAAC;EACDN,cAAc,EAAE;IACdO,QAAQ,EAAE,UAAU;IACpBC,KAAK,EAAE,CAAC;IACRC,GAAG,EAAE,CAAC;IACNC,MAAM,EAAE,CAAC;IACTC,cAAc,EAAE,QAAQ;IACxBC,iBAAiB,EAAE;EACrB,CAAC;EACD7B,KAAK,EAAE;IACL8B,YAAY,EAAE;EAChB,CAAC;EACDX,SAAS,EAAE;IACTY,KAAK,EAAEhD,MAAM,CAACiD,IAAI,CAACC;EACrB;AACF,CAAC,CAAC;AAEF,SAASjD,WAAW"}
|
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useRef, useState } from 'react';
|
|
2
2
|
import { useSelector } from 'react-redux';
|
|
3
|
-
import {
|
|
3
|
+
import { InteractionManager } from 'react-native';
|
|
4
4
|
import { HMSCameraControl } from '@100mslive/react-native-hms';
|
|
5
5
|
import Animated, { interpolate, useAnimatedStyle } from 'react-native-reanimated';
|
|
6
|
-
import { styles } from './styles';
|
|
7
6
|
import { DefaultModal } from './DefaultModal';
|
|
8
7
|
import { ModalTypes, PipModes } from '../utils/types';
|
|
9
|
-
import {
|
|
10
|
-
import { ChangeAspectRatio,
|
|
11
|
-
import { GridView } from './GridView';
|
|
8
|
+
import { requestExternalStoragePermission } from '../utils/functions';
|
|
9
|
+
import { ChangeAspectRatio, ChangeRoleAccepteModal, ChangeRoleModal, ChangeTrackStateModal, SaveScreenshot } from './Modals';
|
|
12
10
|
import { HLSView } from './HLSView';
|
|
13
|
-
import PIPView from './PIPView';
|
|
14
11
|
import { PeerSettingsModalContent } from '../components/PeerSettingsModalContent';
|
|
15
12
|
import { StreamingQualityModalContent } from '../components/StreamingQualityModalContent';
|
|
16
13
|
import { useHMSChangeTrackStateRequest, useHMSInstance, useHMSRoleChangeRequest, useHMSSessionStoreListeners, useIsHLSViewer, useModalType } from '../hooks-util';
|
|
17
|
-
import { useIsPortraitOrientation } from '../utils/dimension';
|
|
18
14
|
import { ParticipantsModal } from './ParticipantsModal';
|
|
15
|
+
import { WebrtcView } from './WebrtcView';
|
|
16
|
+
import { BottomSheet } from './BottomSheet';
|
|
19
17
|
export const DisplayView = _ref => {
|
|
20
18
|
let {
|
|
21
19
|
offset,
|
|
@@ -23,7 +21,6 @@ export const DisplayView = _ref => {
|
|
|
23
21
|
} = _ref;
|
|
24
22
|
// --- 100ms SDK Instance ---
|
|
25
23
|
const hmsInstance = useHMSInstance();
|
|
26
|
-
const isPortrait = useIsPortraitOrientation();
|
|
27
24
|
const isHLSViewer = useIsHLSViewer();
|
|
28
25
|
const {
|
|
29
26
|
modalVisibleType: modalVisible,
|
|
@@ -36,17 +33,13 @@ export const DisplayView = _ref => {
|
|
|
36
33
|
|
|
37
34
|
// --- Redux stores ---
|
|
38
35
|
const isPipModeActive = useSelector(state => state.app.pipModeStatus === PipModes.ACTIVE);
|
|
39
|
-
const spotlightTrackId = useSelector(state => state.user.spotlightTrackId); // State to track active spotlight trackId
|
|
40
36
|
|
|
41
37
|
// --- Component Local States ---
|
|
42
38
|
const [selectedPeerTrackNode, setSelectedPeerTrackNode] = useState(null);
|
|
43
39
|
const [capturedImagePath, setCapturedImagePath] = useState(null);
|
|
44
40
|
|
|
45
|
-
// --- Constants ---
|
|
46
|
-
const pairedPeers = useMemo(() => pairData(peerTrackNodes, isPortrait ? 4 : 2, spotlightTrackId), [peerTrackNodes, spotlightTrackId, isPortrait]);
|
|
47
|
-
|
|
48
41
|
// --- Listeners ---
|
|
49
|
-
useHMSSessionStoreListeners();
|
|
42
|
+
useHMSSessionStoreListeners(gridViewRef);
|
|
50
43
|
const trackStateChangeRequest = useHMSChangeTrackStateRequest(() => {
|
|
51
44
|
setModalVisible(ModalTypes.CHANGE_TRACK, true);
|
|
52
45
|
});
|
|
@@ -54,18 +47,6 @@ export const DisplayView = _ref => {
|
|
|
54
47
|
setModalVisible(ModalTypes.CHANGE_ROLE_ACCEPT, true);
|
|
55
48
|
});
|
|
56
49
|
|
|
57
|
-
// --- Effects ---
|
|
58
|
-
useEffect(() => {
|
|
59
|
-
// Scroll to start of the list
|
|
60
|
-
if (spotlightTrackId) {
|
|
61
|
-
var _gridViewRef$current;
|
|
62
|
-
(_gridViewRef$current = gridViewRef.current) === null || _gridViewRef$current === void 0 || (_gridViewRef$current = _gridViewRef$current.getFlatlistRef().current) === null || _gridViewRef$current === void 0 ? void 0 : _gridViewRef$current.scrollToOffset({
|
|
63
|
-
animated: true,
|
|
64
|
-
offset: 0
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
}, [spotlightTrackId]);
|
|
68
|
-
|
|
69
50
|
// functions
|
|
70
51
|
|
|
71
52
|
const handlePeerTileMorePress = React.useCallback(peerTrackNode => {
|
|
@@ -75,8 +56,8 @@ export const DisplayView = _ref => {
|
|
|
75
56
|
const handleCaptureScreenShotPress = node => {
|
|
76
57
|
setModalVisible(ModalTypes.DEFAULT);
|
|
77
58
|
InteractionManager.runAfterInteractions(() => {
|
|
78
|
-
var _gridViewRef$
|
|
79
|
-
(_gridViewRef$
|
|
59
|
+
var _gridViewRef$current;
|
|
60
|
+
(_gridViewRef$current = gridViewRef.current) === null || _gridViewRef$current === void 0 ? void 0 : _gridViewRef$current.captureViewScreenshot(node);
|
|
80
61
|
});
|
|
81
62
|
};
|
|
82
63
|
const handleCaptureImageAtMaxSupportedResolutionPress = _node => {
|
|
@@ -108,32 +89,19 @@ export const DisplayView = _ref => {
|
|
|
108
89
|
};
|
|
109
90
|
}, []);
|
|
110
91
|
return /*#__PURE__*/React.createElement(Animated.View, {
|
|
111
|
-
style: [
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}) : /*#__PURE__*/React.createElement(
|
|
92
|
+
style: [{
|
|
93
|
+
flex: 1
|
|
94
|
+
}, animatedStyles]
|
|
95
|
+
}, isHLSViewer ? /*#__PURE__*/React.createElement(HLSView, null) : /*#__PURE__*/React.createElement(WebrtcView, {
|
|
115
96
|
ref: gridViewRef,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
})
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
style: styles.welcomeHeading
|
|
122
|
-
}, "Welcome!"), /*#__PURE__*/React.createElement(Text, {
|
|
123
|
-
style: styles.welcomeDescription
|
|
124
|
-
}, "You're the first one here."), /*#__PURE__*/React.createElement(Text, {
|
|
125
|
-
style: styles.welcomeDescription
|
|
126
|
-
}, "Sit back and relax till the others join.")), isPipModeActive ? null : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(DefaultModal, {
|
|
127
|
-
backdrop: true,
|
|
128
|
-
modalPosiion: "center",
|
|
129
|
-
viewStyle: {
|
|
130
|
-
minWidth: '70%',
|
|
131
|
-
width: undefined
|
|
132
|
-
},
|
|
133
|
-
modalVisible: modalVisible === ModalTypes.PEER_SETTINGS,
|
|
134
|
-
setModalVisible: () => setModalVisible(ModalTypes.DEFAULT)
|
|
97
|
+
peerTrackNodes: peerTrackNodes,
|
|
98
|
+
handlePeerTileMorePress: handlePeerTileMorePress
|
|
99
|
+
}), isPipModeActive ? null : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BottomSheet, {
|
|
100
|
+
isVisible: modalVisible === ModalTypes.PEER_SETTINGS,
|
|
101
|
+
dismissModal: () => setModalVisible(ModalTypes.DEFAULT)
|
|
135
102
|
}, selectedPeerTrackNode ? /*#__PURE__*/React.createElement(PeerSettingsModalContent, {
|
|
136
103
|
peerTrackNode: selectedPeerTrackNode,
|
|
104
|
+
peerTrackNodesListEmpty: peerTrackNodes.length === 0,
|
|
137
105
|
cancelModal: () => setModalVisible(ModalTypes.DEFAULT),
|
|
138
106
|
onCaptureScreenShotPress: handleCaptureScreenShotPress,
|
|
139
107
|
onCaptureImageAtMaxSupportedResolutionPress: handleCaptureImageAtMaxSupportedResolutionPress,
|
|
@@ -186,12 +154,6 @@ export const DisplayView = _ref => {
|
|
|
186
154
|
setModalVisible: () => setModalVisible(ModalTypes.DEFAULT)
|
|
187
155
|
}, /*#__PURE__*/React.createElement(ChangeRoleModal, {
|
|
188
156
|
cancelModal: () => setModalVisible(ModalTypes.DEFAULT)
|
|
189
|
-
})), /*#__PURE__*/React.createElement(DefaultModal, {
|
|
190
|
-
modalPosiion: "center",
|
|
191
|
-
modalVisible: modalVisible === ModalTypes.CHANGE_NAME,
|
|
192
|
-
setModalVisible: () => setModalVisible(ModalTypes.DEFAULT)
|
|
193
|
-
}, /*#__PURE__*/React.createElement(ChangeNameModal, {
|
|
194
|
-
cancelModal: () => setModalVisible(ModalTypes.DEFAULT)
|
|
195
157
|
}))));
|
|
196
158
|
};
|
|
197
159
|
//# sourceMappingURL=DisplayView.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","
|
|
1
|
+
{"version":3,"names":["React","useRef","useState","useSelector","InteractionManager","HMSCameraControl","Animated","interpolate","useAnimatedStyle","DefaultModal","ModalTypes","PipModes","requestExternalStoragePermission","ChangeAspectRatio","ChangeRoleAccepteModal","ChangeRoleModal","ChangeTrackStateModal","SaveScreenshot","HLSView","PeerSettingsModalContent","StreamingQualityModalContent","useHMSChangeTrackStateRequest","useHMSInstance","useHMSRoleChangeRequest","useHMSSessionStoreListeners","useIsHLSViewer","useModalType","ParticipantsModal","WebrtcView","BottomSheet","DisplayView","_ref","offset","peerTrackNodes","hmsInstance","isHLSViewer","modalVisibleType","modalVisible","handleModalVisibleType","setModalVisible","gridViewRef","trackToChangeRef","isPipModeActive","state","app","pipModeStatus","ACTIVE","selectedPeerTrackNode","setSelectedPeerTrackNode","capturedImagePath","setCapturedImagePath","trackStateChangeRequest","CHANGE_TRACK","roleChangeRequest","CHANGE_ROLE_ACCEPT","handlePeerTileMorePress","useCallback","peerTrackNode","PEER_SETTINGS","handleCaptureScreenShotPress","node","DEFAULT","runAfterInteractions","_gridViewRef$current","current","captureViewScreenshot","handleCaptureImageAtMaxSupportedResolutionPress","_node","permission","captureImageAtMaxSupportedResolution","then","imagePath","console","log","uri","catch","error","warn","handleStreamingQualityPress","track","STREAMING_QUALITY_SETTING","animatedStyles","transform","translateY","value","createElement","View","style","flex","ref","Fragment","isVisible","dismissModal","peerTrackNodesListEmpty","length","cancelModal","onCaptureScreenShotPress","onCaptureImageAtMaxSupportedResolutionPress","onStreamingQualityPress","modalPosiion","HLS_PLAYER_ASPECT_RATIO","imageSource","instance","animationIn","animationOut","PARTICIPANTS","CHANGE_ROLE"],"sourceRoot":"../../../src","sources":["components/DisplayView.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AAC/C,SAASC,WAAW,QAAQ,aAAa;AACzC,SAASC,kBAAkB,QAAQ,cAAc;AACjD,SAAmBC,gBAAgB,QAAQ,6BAA6B;AACxE,OAAOC,QAAQ,IACbC,WAAW,EACXC,gBAAgB,QACX,yBAAyB;AAGhC,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,UAAU,EAAEC,QAAQ,QAAQ,gBAAgB;AAErD,SAASC,gCAAgC,QAAQ,oBAAoB;AACrE,SACEC,iBAAiB,EACjBC,sBAAsB,EACtBC,eAAe,EACfC,qBAAqB,EACrBC,cAAc,QACT,UAAU;AAGjB,SAASC,OAAO,QAAQ,WAAW;AACnC,SAASC,wBAAwB,QAAQ,wCAAwC;AACjF,SAASC,4BAA4B,QAAQ,4CAA4C;AACzF,SACEC,6BAA6B,EAC7BC,cAAc,EACdC,uBAAuB,EACvBC,2BAA2B,EAC3BC,cAAc,EACdC,YAAY,QACP,eAAe;AACtB,SAASC,iBAAiB,QAAQ,qBAAqB;AACvD,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,WAAW,QAAQ,eAAe;AAS3C,OAAO,MAAMC,WAAuC,GAAGC,IAAA,IAGjD;EAAA,IAHkD;IACtDC,MAAM;IACNC;EACF,CAAC,GAAAF,IAAA;EACC;EACA,MAAMG,WAAW,GAAGZ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
import { useHMSRoomStyleSheet, useLeaveMethods } from '../hooks-util';
|
|
4
|
+
import { AlertTriangleIcon, CloseIcon } from '../Icons';
|
|
5
|
+
import { HMSDangerButton } from './HMSDangerButton';
|
|
6
|
+
export const EndRoomModalContent = _ref => {
|
|
7
|
+
let {
|
|
8
|
+
dismissModal
|
|
9
|
+
} = _ref;
|
|
10
|
+
const {
|
|
11
|
+
endRoom
|
|
12
|
+
} = useLeaveMethods();
|
|
13
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
14
|
+
headerText: {
|
|
15
|
+
color: theme.palette.alert_error_default,
|
|
16
|
+
fontFamily: `${typography.font_family}-SemiBold`
|
|
17
|
+
},
|
|
18
|
+
text: {
|
|
19
|
+
color: theme.palette.on_surface_medium,
|
|
20
|
+
fontFamily: `${typography.font_family}-Regular`
|
|
21
|
+
}
|
|
22
|
+
}));
|
|
23
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
24
|
+
style: styles.container
|
|
25
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
26
|
+
style: styles.header
|
|
27
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
28
|
+
style: styles.headerControls
|
|
29
|
+
}, /*#__PURE__*/React.createElement(AlertTriangleIcon, null), /*#__PURE__*/React.createElement(Text, {
|
|
30
|
+
style: [styles.headerText, hmsRoomStyles.headerText]
|
|
31
|
+
}, "End Session")), /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
32
|
+
onPress: dismissModal,
|
|
33
|
+
hitSlop: styles.closeIconHitSlop
|
|
34
|
+
}, /*#__PURE__*/React.createElement(CloseIcon, null))), /*#__PURE__*/React.createElement(Text, {
|
|
35
|
+
style: [styles.text, hmsRoomStyles.text]
|
|
36
|
+
}, "The session will end for everyone and all the activities will stop. You can't undo this action."), /*#__PURE__*/React.createElement(HMSDangerButton, {
|
|
37
|
+
loading: false,
|
|
38
|
+
onPress: endRoom,
|
|
39
|
+
title: "End Session"
|
|
40
|
+
}));
|
|
41
|
+
};
|
|
42
|
+
const styles = StyleSheet.create({
|
|
43
|
+
container: {
|
|
44
|
+
marginTop: 24,
|
|
45
|
+
marginHorizontal: 24
|
|
46
|
+
},
|
|
47
|
+
header: {
|
|
48
|
+
flexDirection: 'row',
|
|
49
|
+
alignItems: 'center',
|
|
50
|
+
justifyContent: 'space-between',
|
|
51
|
+
marginBottom: 8
|
|
52
|
+
},
|
|
53
|
+
headerControls: {
|
|
54
|
+
flexDirection: 'row',
|
|
55
|
+
alignItems: 'center'
|
|
56
|
+
},
|
|
57
|
+
headerText: {
|
|
58
|
+
fontSize: 20,
|
|
59
|
+
lineHeight: 24,
|
|
60
|
+
letterSpacing: 0.15,
|
|
61
|
+
marginLeft: 8
|
|
62
|
+
},
|
|
63
|
+
closeIconHitSlop: {
|
|
64
|
+
bottom: 16,
|
|
65
|
+
left: 16,
|
|
66
|
+
right: 16,
|
|
67
|
+
top: 16
|
|
68
|
+
},
|
|
69
|
+
text: {
|
|
70
|
+
fontSize: 14,
|
|
71
|
+
lineHeight: 20,
|
|
72
|
+
letterSpacing: 0.25,
|
|
73
|
+
marginBottom: 24
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
//# sourceMappingURL=EndRoomModalContent.js.map
|