@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
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import Modal from 'react-native-modal';
|
|
3
2
|
import {
|
|
4
3
|
Platform,
|
|
5
4
|
ScrollView,
|
|
@@ -24,10 +23,9 @@ import {
|
|
|
24
23
|
WaveIcon,
|
|
25
24
|
} from '../Icons';
|
|
26
25
|
import { PressableIcon } from './PressableIcon';
|
|
27
|
-
import {
|
|
28
|
-
import { CloseIcon } from '../Icons';
|
|
29
|
-
import { useHMSInstance } from '../hooks-util';
|
|
26
|
+
import { useHMSInstance, useHMSRoomStyleSheet } from '../hooks-util';
|
|
30
27
|
import type { RootState } from '../redux';
|
|
28
|
+
import { BottomSheet } from './BottomSheet';
|
|
31
29
|
|
|
32
30
|
export const HMSManageAudioOutput: React.FC = () => {
|
|
33
31
|
const hmsInstance = useHMSInstance();
|
|
@@ -121,6 +119,20 @@ export const HMSManageAudioOutput: React.FC = () => {
|
|
|
121
119
|
setSettingsModalVisible(false);
|
|
122
120
|
};
|
|
123
121
|
|
|
122
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
123
|
+
headerText: {
|
|
124
|
+
color: theme.palette.on_surface_high,
|
|
125
|
+
fontFamily: `${typography.font_family}-Medium`,
|
|
126
|
+
},
|
|
127
|
+
text: {
|
|
128
|
+
color: theme.palette.on_surface_high,
|
|
129
|
+
fontFamily: `${typography.font_family}-SemiBold`,
|
|
130
|
+
},
|
|
131
|
+
divider: {
|
|
132
|
+
backgroundColor: theme.palette.border_default,
|
|
133
|
+
},
|
|
134
|
+
}));
|
|
135
|
+
|
|
124
136
|
return (
|
|
125
137
|
<View>
|
|
126
138
|
<PressableIcon onPress={handleSpeakerChange}>
|
|
@@ -131,36 +143,20 @@ export const HMSManageAudioOutput: React.FC = () => {
|
|
|
131
143
|
)}
|
|
132
144
|
</PressableIcon>
|
|
133
145
|
|
|
134
|
-
<
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
backdropOpacity={0.3}
|
|
140
|
-
onBackButtonPress={dismissModal}
|
|
141
|
-
onBackdropPress={dismissModal}
|
|
142
|
-
useNativeDriver={true}
|
|
143
|
-
useNativeDriverForBackdrop={true}
|
|
144
|
-
hideModalContentWhileAnimating={true}
|
|
145
|
-
// swipeDirection={['up', 'down']}
|
|
146
|
-
// swipe
|
|
147
|
-
style={styles.modal}
|
|
148
|
-
>
|
|
149
|
-
<View style={styles.container}>
|
|
150
|
-
<View style={styles.header}>
|
|
151
|
-
<Text style={styles.headerText}>Audio Output</Text>
|
|
146
|
+
<BottomSheet isVisible={settingsModalVisible} dismissModal={dismissModal}>
|
|
147
|
+
<BottomSheet.Header
|
|
148
|
+
dismissModal={dismissModal}
|
|
149
|
+
heading="Audio Output"
|
|
150
|
+
/>
|
|
152
151
|
|
|
153
|
-
|
|
154
|
-
onPress={dismissModal}
|
|
155
|
-
hitSlop={styles.closeIconHitSlop}
|
|
156
|
-
>
|
|
157
|
-
<CloseIcon />
|
|
158
|
-
</TouchableOpacity>
|
|
159
|
-
</View>
|
|
152
|
+
<BottomSheet.Divider />
|
|
160
153
|
|
|
154
|
+
<View style={styles.contentContainer}>
|
|
161
155
|
{availableAudioOutputDevices.length === 0 ? (
|
|
162
156
|
<View style={styles.emptyView}>
|
|
163
|
-
<Text style={styles.itemText}>
|
|
157
|
+
<Text style={[styles.itemText, hmsRoomStyles.text]}>
|
|
158
|
+
No other devices available!
|
|
159
|
+
</Text>
|
|
164
160
|
</View>
|
|
165
161
|
) : (
|
|
166
162
|
<ScrollView showsVerticalScrollIndicator={true}>
|
|
@@ -168,73 +164,50 @@ export const HMSManageAudioOutput: React.FC = () => {
|
|
|
168
164
|
.sort(
|
|
169
165
|
(a, b) => audioDeviceSortOrder[a] - audioDeviceSortOrder[b]
|
|
170
166
|
)
|
|
171
|
-
.map((device) =>
|
|
172
|
-
|
|
173
|
-
|
|
167
|
+
.map((device, index) => {
|
|
168
|
+
const isFirst = index === 0;
|
|
169
|
+
|
|
170
|
+
return (
|
|
171
|
+
<React.Fragment key={device}>
|
|
172
|
+
{isFirst ? null : (
|
|
173
|
+
<View style={[styles.divider, hmsRoomStyles.divider]} />
|
|
174
|
+
)}
|
|
174
175
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
176
|
+
<TouchableOpacity
|
|
177
|
+
style={styles.audioDeviceItem}
|
|
178
|
+
onPress={() => handleSelectAudioDevice(device)}
|
|
179
|
+
>
|
|
180
|
+
<View style={styles.itemTextWrapper}>
|
|
181
|
+
{getIcon(
|
|
182
|
+
device === HMSAudioDevice.AUTOMATIC &&
|
|
183
|
+
currentAudioOutputDevice
|
|
184
|
+
? currentAudioOutputDevice
|
|
185
|
+
: device
|
|
186
|
+
)}
|
|
186
187
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
188
|
+
<Text style={[styles.itemText, hmsRoomStyles.text]}>
|
|
189
|
+
{getDescription(device, currentAudioOutputDevice)}
|
|
190
|
+
</Text>
|
|
191
|
+
</View>
|
|
191
192
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
193
|
+
{device === currentAudioOutputDevice ? (
|
|
194
|
+
<CheckIcon />
|
|
195
|
+
) : null}
|
|
196
|
+
</TouchableOpacity>
|
|
197
|
+
</React.Fragment>
|
|
198
|
+
);
|
|
199
|
+
})}
|
|
198
200
|
</ScrollView>
|
|
199
201
|
)}
|
|
200
202
|
</View>
|
|
201
|
-
</
|
|
203
|
+
</BottomSheet>
|
|
202
204
|
</View>
|
|
203
205
|
);
|
|
204
206
|
};
|
|
205
207
|
|
|
206
208
|
const styles = StyleSheet.create({
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
justifyContent: 'flex-end',
|
|
210
|
-
},
|
|
211
|
-
container: {
|
|
212
|
-
backgroundColor: COLORS.BACKGROUND.DEFAULT,
|
|
213
|
-
borderTopLeftRadius: 16,
|
|
214
|
-
borderTopRightRadius: 16,
|
|
215
|
-
paddingTop: 24,
|
|
216
|
-
paddingHorizontal: 16,
|
|
217
|
-
paddingBottom: 32,
|
|
218
|
-
},
|
|
219
|
-
header: {
|
|
220
|
-
flexDirection: 'row',
|
|
221
|
-
alignItems: 'center',
|
|
222
|
-
justifyContent: 'space-between',
|
|
223
|
-
marginBottom: 16,
|
|
224
|
-
},
|
|
225
|
-
headerText: {
|
|
226
|
-
color: COLORS.SURFACE.ON_SURFACE.HIGH,
|
|
227
|
-
fontSize: 16,
|
|
228
|
-
fontFamily: 'Inter',
|
|
229
|
-
fontWeight: '500',
|
|
230
|
-
lineHeight: 24,
|
|
231
|
-
letterSpacing: 0.15,
|
|
232
|
-
},
|
|
233
|
-
closeIconHitSlop: {
|
|
234
|
-
bottom: 16,
|
|
235
|
-
left: 16,
|
|
236
|
-
right: 16,
|
|
237
|
-
top: 16,
|
|
209
|
+
contentContainer: {
|
|
210
|
+
marginHorizontal: 24,
|
|
238
211
|
},
|
|
239
212
|
itemTextWrapper: {
|
|
240
213
|
flexDirection: 'row',
|
|
@@ -243,10 +216,7 @@ const styles = StyleSheet.create({
|
|
|
243
216
|
},
|
|
244
217
|
itemText: {
|
|
245
218
|
marginHorizontal: 16,
|
|
246
|
-
color: COLORS.SURFACE.ON_SURFACE.HIGH,
|
|
247
219
|
fontSize: 14,
|
|
248
|
-
fontFamily: 'Inter',
|
|
249
|
-
fontWeight: '600',
|
|
250
220
|
lineHeight: 20,
|
|
251
221
|
letterSpacing: 0.1,
|
|
252
222
|
},
|
|
@@ -263,7 +233,6 @@ const styles = StyleSheet.create({
|
|
|
263
233
|
},
|
|
264
234
|
divider: {
|
|
265
235
|
height: 1,
|
|
266
|
-
backgroundColor: COLORS.BORDER.DEFAULT,
|
|
267
236
|
},
|
|
268
237
|
});
|
|
269
238
|
|
|
@@ -4,8 +4,8 @@ import { useSelector } from 'react-redux';
|
|
|
4
4
|
import { RotateCameraIcon } from '../Icons';
|
|
5
5
|
import { useCanPublishVideo, useHMSActions } from '../hooks-sdk';
|
|
6
6
|
import type { RootState } from '../redux';
|
|
7
|
-
import { COLORS } from '../utils/theme';
|
|
8
7
|
import { PressableIcon } from './PressableIcon';
|
|
8
|
+
import { useHMSRoomStyle } from '../hooks-util';
|
|
9
9
|
|
|
10
10
|
export const HMSManageCameraRotation = () => {
|
|
11
11
|
const canPublishVideo = useCanPublishVideo();
|
|
@@ -31,18 +31,21 @@ const RotateCameraButton = () => {
|
|
|
31
31
|
await hmsActions.switchCamera();
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
+
const cameraIconStyles = useHMSRoomStyle(
|
|
35
|
+
(theme) => ({
|
|
36
|
+
tintColor: isLocalVideoMuted
|
|
37
|
+
? theme.palette.on_surface_low
|
|
38
|
+
: theme.palette.on_surface_high,
|
|
39
|
+
}),
|
|
40
|
+
[isLocalVideoMuted]
|
|
41
|
+
);
|
|
42
|
+
|
|
34
43
|
return (
|
|
35
44
|
<PressableIcon
|
|
36
45
|
onPress={handleVideoMuteTogglePress}
|
|
37
46
|
disabled={isLocalVideoMuted}
|
|
38
47
|
>
|
|
39
|
-
<RotateCameraIcon
|
|
40
|
-
style={{
|
|
41
|
-
tintColor: isLocalVideoMuted
|
|
42
|
-
? COLORS.SURFACE.ON_SURFACE.LOW
|
|
43
|
-
: COLORS.SURFACE.ON_SURFACE.HIGH,
|
|
44
|
-
}}
|
|
45
|
-
/>
|
|
48
|
+
<RotateCameraIcon style={cameraIconStyles} />
|
|
46
49
|
</PressableIcon>
|
|
47
50
|
);
|
|
48
51
|
};
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { StyleSheet, Text, TouchableOpacity, View } from 'react-native';
|
|
3
|
-
import Modal from 'react-native-modal';
|
|
4
|
-
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
5
3
|
import { useSelector } from 'react-redux';
|
|
6
4
|
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { EndIcon, LeaveIcon } from '../Icons';
|
|
6
|
+
import {
|
|
7
|
+
useHMSRoomStyleSheet,
|
|
8
|
+
useIsHLSViewer,
|
|
9
|
+
useLeaveMethods,
|
|
10
|
+
} from '../hooks-util';
|
|
9
11
|
import type { RootState } from '../redux';
|
|
10
|
-
import { COLORS } from '../utils/theme';
|
|
11
12
|
import { ModalTypes } from '../utils/types';
|
|
12
|
-
import { DefaultModal } from './DefaultModal';
|
|
13
|
-
import { EndRoomModal, LeaveRoomModal } from './Modals';
|
|
14
13
|
import { PressableIcon } from './PressableIcon';
|
|
14
|
+
import { BottomSheet } from './BottomSheet';
|
|
15
|
+
import { StopIcon } from '../Icons';
|
|
16
|
+
import { EndRoomModalContent } from './EndRoomModalContent';
|
|
15
17
|
|
|
16
18
|
export const HMSManageLeave: React.FC<LeaveButtonProps> = (props) => {
|
|
17
19
|
// TODO: read current meeting joined state
|
|
@@ -34,24 +36,19 @@ type LeaveButtonProps =
|
|
|
34
36
|
|
|
35
37
|
const LeaveButton: React.FC<LeaveButtonProps> = (props) => {
|
|
36
38
|
const leavePopCloseAction = React.useRef(ModalTypes.DEFAULT);
|
|
37
|
-
|
|
39
|
+
const isHLSViewer = useIsHLSViewer();
|
|
38
40
|
const [leavePopVisible, setLeavePopVisible] = React.useState(false);
|
|
39
41
|
const [leaveModalType, setLeaveModalType] = React.useState(
|
|
40
42
|
ModalTypes.DEFAULT
|
|
41
43
|
);
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
);
|
|
44
|
+
|
|
45
|
+
const { leave } = useLeaveMethods();
|
|
45
46
|
|
|
46
47
|
/**
|
|
47
48
|
* Opens the Leave Popup Menu
|
|
48
49
|
*/
|
|
49
50
|
const handleLeaveButtonPress = () => {
|
|
50
|
-
|
|
51
|
-
setLeavePopVisible(true);
|
|
52
|
-
} else {
|
|
53
|
-
setLeaveModalType(ModalTypes.LEAVE_ROOM);
|
|
54
|
-
}
|
|
51
|
+
setLeavePopVisible(true);
|
|
55
52
|
};
|
|
56
53
|
|
|
57
54
|
/**
|
|
@@ -59,8 +56,8 @@ const LeaveButton: React.FC<LeaveButtonProps> = (props) => {
|
|
|
59
56
|
* Leave Modal will open after the popup is hidden
|
|
60
57
|
*/
|
|
61
58
|
const handleLeavePress = () => {
|
|
62
|
-
leavePopCloseAction.current = ModalTypes.LEAVE_ROOM;
|
|
63
59
|
setLeavePopVisible(false);
|
|
60
|
+
leave();
|
|
64
61
|
};
|
|
65
62
|
|
|
66
63
|
/**
|
|
@@ -90,13 +87,23 @@ const LeaveButton: React.FC<LeaveButtonProps> = (props) => {
|
|
|
90
87
|
|
|
91
88
|
const dismissModal = () => setLeaveModalType(ModalTypes.DEFAULT);
|
|
92
89
|
|
|
93
|
-
const
|
|
90
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme) => ({
|
|
91
|
+
button: {
|
|
92
|
+
backgroundColor: theme.palette.alert_error_default,
|
|
93
|
+
borderColor: theme.palette.alert_error_default
|
|
94
|
+
},
|
|
95
|
+
icon: {
|
|
96
|
+
tintColor: theme.palette.alert_error_brighter
|
|
97
|
+
},
|
|
98
|
+
}));
|
|
94
99
|
|
|
95
100
|
const leaveIconDelegate =
|
|
96
101
|
'leaveIconDelegate' in props && props.leaveIconDelegate ? (
|
|
97
102
|
props.leaveIconDelegate
|
|
103
|
+
) : isHLSViewer ? (
|
|
104
|
+
<LeaveIcon style={hmsRoomStyles.icon} />
|
|
98
105
|
) : (
|
|
99
|
-
<
|
|
106
|
+
<EndIcon style={hmsRoomStyles.icon} />
|
|
100
107
|
);
|
|
101
108
|
|
|
102
109
|
const leaveButtonDelegate =
|
|
@@ -110,10 +117,10 @@ const LeaveButton: React.FC<LeaveButtonProps> = (props) => {
|
|
|
110
117
|
<View>
|
|
111
118
|
{React.cloneElement(leaveButtonDelegate, {
|
|
112
119
|
onPress: handleLeaveButtonPress,
|
|
113
|
-
style:
|
|
120
|
+
style: hmsRoomStyles.button,
|
|
114
121
|
})}
|
|
115
122
|
|
|
116
|
-
<
|
|
123
|
+
<LeaveBottomSheet
|
|
117
124
|
isVisible={leavePopVisible}
|
|
118
125
|
onEndSessionPress={handleEndSessionPress}
|
|
119
126
|
onLeavePress={handleLeavePress}
|
|
@@ -121,36 +128,21 @@ const LeaveButton: React.FC<LeaveButtonProps> = (props) => {
|
|
|
121
128
|
onPopupHide={handlePopupHide}
|
|
122
129
|
/>
|
|
123
130
|
|
|
124
|
-
<
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
131
|
+
<BottomSheet
|
|
132
|
+
dismissModal={dismissModal}
|
|
133
|
+
isVisible={leaveModalType === ModalTypes.END_ROOM}
|
|
134
|
+
animationOutTiming={700}
|
|
128
135
|
>
|
|
129
|
-
<
|
|
130
|
-
</
|
|
131
|
-
|
|
132
|
-
<DefaultModal
|
|
133
|
-
modalPosiion="center"
|
|
134
|
-
modalVisible={leaveModalType === ModalTypes.END_ROOM}
|
|
135
|
-
setModalVisible={dismissModal}
|
|
136
|
-
>
|
|
137
|
-
<EndRoomModal onSuccess={endRoom} cancelModal={dismissModal} />
|
|
138
|
-
</DefaultModal>
|
|
136
|
+
<EndRoomModalContent dismissModal={dismissModal} />
|
|
137
|
+
</BottomSheet>
|
|
139
138
|
</View>
|
|
140
139
|
);
|
|
141
140
|
};
|
|
142
141
|
|
|
143
|
-
const HEADER_CONTENT_HEIGHT = 24 + 8 + 8 + 2; // ICON_SIZE + TOP_PADDING + BOTTOM_PADDING + TOP&BOTTOM_BORDER_WIDTH
|
|
144
|
-
const HEADER_HEIGHT = 8 + HEADER_CONTENT_HEIGHT + 8; // TOP_HEADER_PADDING + HEADER_CONTENT_HEIGHT + BOTTOM_HEADER_PADDING
|
|
145
|
-
|
|
146
|
-
const styles = StyleSheet.create({
|
|
147
|
-
button: {
|
|
148
|
-
backgroundColor: COLORS.ALERT.ERROR.DEFAULT,
|
|
149
|
-
borderColor: COLORS.ALERT.ERROR.DEFAULT,
|
|
150
|
-
},
|
|
151
|
-
});
|
|
142
|
+
// const HEADER_CONTENT_HEIGHT = 24 + 8 + 8 + 2; // ICON_SIZE + TOP_PADDING + BOTTOM_PADDING + TOP&BOTTOM_BORDER_WIDTH
|
|
143
|
+
// const HEADER_HEIGHT = 8 + HEADER_CONTENT_HEIGHT + 8; // TOP_HEADER_PADDING + HEADER_CONTENT_HEIGHT + BOTTOM_HEADER_PADDING
|
|
152
144
|
|
|
153
|
-
interface
|
|
145
|
+
interface LeaveBottomSheetProps {
|
|
154
146
|
isVisible: boolean;
|
|
155
147
|
onPopupDismiss(): void;
|
|
156
148
|
onLeavePress(): void;
|
|
@@ -158,121 +150,118 @@ interface LeavePopupProps {
|
|
|
158
150
|
onPopupHide(): void;
|
|
159
151
|
}
|
|
160
152
|
|
|
161
|
-
const
|
|
153
|
+
const LeaveBottomSheet: React.FC<LeaveBottomSheetProps> = ({
|
|
162
154
|
isVisible,
|
|
163
155
|
onPopupDismiss,
|
|
164
156
|
onLeavePress,
|
|
165
157
|
onEndSessionPress,
|
|
166
158
|
onPopupHide,
|
|
167
159
|
}) => {
|
|
168
|
-
const safeAreaInsets = useSafeAreaInsets();
|
|
169
160
|
const canEndRoom = useSelector(
|
|
170
161
|
(state: RootState) => state.hmsStates.localPeer?.role?.permissions?.endRoom
|
|
171
162
|
);
|
|
172
163
|
|
|
164
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
165
|
+
text: {
|
|
166
|
+
color: theme.palette.on_surface_high,
|
|
167
|
+
fontFamily: `${typography.font_family}-SemiBold`,
|
|
168
|
+
},
|
|
169
|
+
subtext: {
|
|
170
|
+
color: theme.palette.on_surface_low,
|
|
171
|
+
fontFamily: `${typography.font_family}-Regular`,
|
|
172
|
+
},
|
|
173
|
+
endButton: {
|
|
174
|
+
backgroundColor: theme.palette.alert_error_dim,
|
|
175
|
+
},
|
|
176
|
+
endText: {
|
|
177
|
+
color: theme.palette.alert_error_brighter,
|
|
178
|
+
fontFamily: `${typography.font_family}-SemiBold`,
|
|
179
|
+
},
|
|
180
|
+
endSubtext: {
|
|
181
|
+
color: theme.palette.alert_error_bright,
|
|
182
|
+
fontFamily: `${typography.font_family}-Regular`,
|
|
183
|
+
},
|
|
184
|
+
endIcon: {
|
|
185
|
+
tintColor: theme.palette.alert_error_brighter,
|
|
186
|
+
},
|
|
187
|
+
}));
|
|
188
|
+
|
|
173
189
|
return (
|
|
174
|
-
<
|
|
190
|
+
<BottomSheet
|
|
175
191
|
isVisible={isVisible}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
backdropColor={COLORS.BACKGROUND.DIM}
|
|
179
|
-
backdropOpacity={0}
|
|
180
|
-
onBackButtonPress={onPopupDismiss}
|
|
181
|
-
onBackdropPress={onPopupDismiss}
|
|
182
|
-
useNativeDriver={true}
|
|
192
|
+
containerStyle={leavePopupStyles.container}
|
|
193
|
+
dismissModal={onPopupDismiss}
|
|
183
194
|
onModalHide={onPopupHide}
|
|
184
|
-
|
|
185
|
-
hideModalContentWhileAnimating={true}
|
|
186
|
-
style={leavePopupStyles.modal}
|
|
195
|
+
animationOutTiming={700}
|
|
187
196
|
>
|
|
188
|
-
<View
|
|
189
|
-
style={[
|
|
190
|
-
leavePopupStyles.leavePopupContent,
|
|
191
|
-
{
|
|
192
|
-
marginTop: safeAreaInsets.top + HEADER_HEIGHT,
|
|
193
|
-
marginLeft: safeAreaInsets.left + 16 - 1, // LEFT_HEADER_PADDING - HEADER_BORDER_WIDTH,
|
|
194
|
-
marginRight: safeAreaInsets.right,
|
|
195
|
-
marginBottom: safeAreaInsets.bottom,
|
|
196
|
-
},
|
|
197
|
-
]}
|
|
198
|
-
>
|
|
197
|
+
<View>
|
|
199
198
|
<TouchableOpacity
|
|
200
|
-
style={leavePopupStyles.
|
|
199
|
+
style={leavePopupStyles.button}
|
|
201
200
|
onPress={onLeavePress}
|
|
202
201
|
>
|
|
203
|
-
<LeaveIcon style={leavePopupStyles.
|
|
204
|
-
|
|
202
|
+
<LeaveIcon style={leavePopupStyles.icon} />
|
|
203
|
+
|
|
204
|
+
<View style={leavePopupStyles.textContainer}>
|
|
205
|
+
<Text style={[leavePopupStyles.text, hmsRoomStyles.text]}>
|
|
206
|
+
Leave
|
|
207
|
+
</Text>
|
|
208
|
+
<Text style={[leavePopupStyles.subtext, hmsRoomStyles.subtext]}>
|
|
209
|
+
Others will continue after you leave. You can join the session
|
|
210
|
+
again.
|
|
211
|
+
</Text>
|
|
212
|
+
</View>
|
|
205
213
|
</TouchableOpacity>
|
|
206
214
|
|
|
207
215
|
{canEndRoom ? (
|
|
208
|
-
|
|
209
|
-
|
|
216
|
+
<TouchableOpacity
|
|
217
|
+
style={[leavePopupStyles.button, hmsRoomStyles.endButton]}
|
|
218
|
+
onPress={onEndSessionPress}
|
|
219
|
+
>
|
|
220
|
+
<StopIcon style={[leavePopupStyles.icon, hmsRoomStyles.endIcon]} />
|
|
210
221
|
|
|
211
|
-
<
|
|
212
|
-
style={leavePopupStyles.
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
<
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
222
|
+
<View style={leavePopupStyles.textContainer}>
|
|
223
|
+
<Text style={[leavePopupStyles.text, hmsRoomStyles.endText]}>
|
|
224
|
+
End Stream
|
|
225
|
+
</Text>
|
|
226
|
+
<Text
|
|
227
|
+
style={[leavePopupStyles.subtext, hmsRoomStyles.endSubtext]}
|
|
228
|
+
>
|
|
229
|
+
The stream & session will end for everyone. You can't undo this
|
|
230
|
+
action.
|
|
231
|
+
</Text>
|
|
232
|
+
</View>
|
|
233
|
+
</TouchableOpacity>
|
|
219
234
|
) : null}
|
|
220
235
|
</View>
|
|
221
|
-
</
|
|
236
|
+
</BottomSheet>
|
|
222
237
|
);
|
|
223
238
|
};
|
|
224
239
|
|
|
225
240
|
const leavePopupStyles = StyleSheet.create({
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
justifyContent: 'flex-start',
|
|
229
|
-
},
|
|
230
|
-
leavePopupContent: {
|
|
231
|
-
overflow: 'hidden',
|
|
232
|
-
width: 243,
|
|
233
|
-
backgroundColor: COLORS.SURFACE.DIM,
|
|
234
|
-
borderRadius: 8,
|
|
235
|
-
borderWidth: 1,
|
|
236
|
-
borderColor: COLORS.BORDER.BRIGHT,
|
|
241
|
+
container: {
|
|
242
|
+
paddingBottom: 0,
|
|
237
243
|
},
|
|
238
|
-
|
|
244
|
+
button: {
|
|
239
245
|
flexDirection: 'row',
|
|
240
|
-
|
|
241
|
-
paddingVertical: 16,
|
|
246
|
+
padding: 24,
|
|
242
247
|
},
|
|
243
|
-
|
|
244
|
-
width:
|
|
245
|
-
height:
|
|
246
|
-
|
|
247
|
-
transform: [{ rotateY: '180deg' }],
|
|
248
|
+
icon: {
|
|
249
|
+
width: 24,
|
|
250
|
+
height: 24,
|
|
251
|
+
marginRight: 16,
|
|
248
252
|
},
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
fontSize: 14,
|
|
252
|
-
fontFamily: 'Inter',
|
|
253
|
-
fontWeight: '600',
|
|
254
|
-
lineHeight: 20,
|
|
255
|
-
},
|
|
256
|
-
divider: {
|
|
257
|
-
height: 1,
|
|
258
|
-
backgroundColor: COLORS.BORDER.BRIGHT,
|
|
259
|
-
},
|
|
260
|
-
endRoomButton: {
|
|
261
|
-
flexDirection: 'row',
|
|
262
|
-
backgroundColor: COLORS.ALERT.ERROR.DIM,
|
|
263
|
-
paddingHorizontal: 8,
|
|
264
|
-
paddingVertical: 16,
|
|
253
|
+
textContainer: {
|
|
254
|
+
flex: 1,
|
|
265
255
|
},
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
256
|
+
text: {
|
|
257
|
+
fontSize: 20,
|
|
258
|
+
lineHeight: 24,
|
|
259
|
+
letterSpacing: 0.15,
|
|
270
260
|
},
|
|
271
|
-
|
|
272
|
-
color: COLORS.ALERT.ERROR.BRIGHT,
|
|
261
|
+
subtext: {
|
|
273
262
|
fontSize: 14,
|
|
274
|
-
fontFamily: 'Inter',
|
|
275
|
-
fontWeight: '600',
|
|
276
263
|
lineHeight: 20,
|
|
264
|
+
letterSpacing: 0.25,
|
|
265
|
+
marginTop: 4,
|
|
277
266
|
},
|
|
278
267
|
});
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { StyleSheet } from 'react-native';
|
|
3
2
|
import { useSelector } from 'react-redux';
|
|
4
3
|
|
|
5
4
|
import { MicIcon } from '../Icons';
|
|
6
5
|
import { useCanPublishAudio, useHMSActions } from '../hooks-sdk';
|
|
7
6
|
import type { RootState } from '../redux';
|
|
8
|
-
import { COLORS } from '../utils/theme';
|
|
9
7
|
import { PressableIcon } from './PressableIcon';
|
|
10
8
|
|
|
11
9
|
export const HMSManageLocalAudio = () => {
|
|
@@ -34,16 +32,9 @@ const ToggleAudioMuteButton = () => {
|
|
|
34
32
|
return (
|
|
35
33
|
<PressableIcon
|
|
36
34
|
onPress={handleAudioMuteTogglePress}
|
|
37
|
-
|
|
35
|
+
active={isLocalAudioMuted}
|
|
38
36
|
>
|
|
39
37
|
<MicIcon muted={!!isLocalAudioMuted} />
|
|
40
38
|
</PressableIcon>
|
|
41
39
|
);
|
|
42
40
|
};
|
|
43
|
-
|
|
44
|
-
const styles = StyleSheet.create({
|
|
45
|
-
mutedButton: {
|
|
46
|
-
backgroundColor: COLORS.SECONDARY.DIM,
|
|
47
|
-
borderColor: COLORS.SECONDARY.DIM,
|
|
48
|
-
},
|
|
49
|
-
});
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { StyleSheet } from 'react-native';
|
|
3
2
|
import { useSelector } from 'react-redux';
|
|
4
3
|
|
|
5
4
|
import type { RootState } from '../redux';
|
|
6
|
-
import { COLORS } from '../utils/theme';
|
|
7
5
|
import { useCanPublishVideo, useHMSActions } from '../hooks-sdk';
|
|
8
6
|
import { PressableIcon } from './PressableIcon';
|
|
9
7
|
import { CameraIcon } from '../Icons';
|
|
@@ -34,16 +32,9 @@ const ToggleVideoMuteButton = () => {
|
|
|
34
32
|
return (
|
|
35
33
|
<PressableIcon
|
|
36
34
|
onPress={handleVideoMuteTogglePress}
|
|
37
|
-
|
|
35
|
+
active={isLocalVideoMuted}
|
|
38
36
|
>
|
|
39
37
|
<CameraIcon muted={!!isLocalVideoMuted} />
|
|
40
38
|
</PressableIcon>
|
|
41
39
|
);
|
|
42
40
|
};
|
|
43
|
-
|
|
44
|
-
const styles = StyleSheet.create({
|
|
45
|
-
mutedButton: {
|
|
46
|
-
backgroundColor: COLORS.SECONDARY.DIM,
|
|
47
|
-
borderColor: COLORS.SECONDARY.DIM,
|
|
48
|
-
},
|
|
49
|
-
});
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { StyleSheet } from 'react-native';
|
|
3
2
|
import { useSelector, shallowEqual } from 'react-redux';
|
|
4
3
|
|
|
5
4
|
import type { RootState } from '../redux';
|
|
6
|
-
import { COLORS } from '../utils/theme';
|
|
7
5
|
import { useHMSActions } from '../hooks-sdk';
|
|
8
6
|
import { PressableIcon } from './PressableIcon';
|
|
9
7
|
import { HandIcon } from '../Icons';
|
|
@@ -28,21 +26,9 @@ export const HMSManageRaiseHand = () => {
|
|
|
28
26
|
return (
|
|
29
27
|
<PressableIcon
|
|
30
28
|
onPress={toggleRaiseHand}
|
|
31
|
-
|
|
29
|
+
active={localPeerMetadata.isHandRaised}
|
|
32
30
|
>
|
|
33
|
-
<HandIcon
|
|
34
|
-
style={localPeerMetadata.isHandRaised ? styles.handRaised : undefined}
|
|
35
|
-
/>
|
|
31
|
+
<HandIcon />
|
|
36
32
|
</PressableIcon>
|
|
37
33
|
);
|
|
38
34
|
};
|
|
39
|
-
|
|
40
|
-
const styles = StyleSheet.create({
|
|
41
|
-
activeButton: {
|
|
42
|
-
backgroundColor: COLORS.SECONDARY.DIM,
|
|
43
|
-
borderColor: COLORS.SECONDARY.DIM,
|
|
44
|
-
},
|
|
45
|
-
handRaised: {
|
|
46
|
-
tintColor: COLORS.TWIN.YELLOW,
|
|
47
|
-
},
|
|
48
|
-
});
|