@100mslive/react-native-room-kit 0.0.4 → 0.1.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/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 +12 -52
- 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 +8 -9
- 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/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 +91 -106
- 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/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 +7 -3
- package/lib/commonjs/components/Meeting.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 +232 -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/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/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 +16 -55
- 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 +9 -10
- 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/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 +94 -107
- 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/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 +8 -4
- package/lib/module/components/Meeting.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 +233 -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/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/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/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/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/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 +3 -1
- 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/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 +33 -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 +16 -65
- package/src/components/EndRoomModalContent.tsx +90 -0
- package/src/components/Footer.tsx +7 -7
- package/src/components/GridView.tsx +91 -20
- package/src/components/HLSView.tsx +1 -1
- package/src/components/HMSBaseButton.tsx +91 -0
- package/src/components/HMSDangerButton.tsx +65 -0
- 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 +104 -109
- package/src/components/HMSManageLocalAudio.tsx +1 -10
- package/src/components/HMSManageLocalVideo.tsx +1 -10
- 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 +37 -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/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 +236 -524
- package/src/components/RoomSettingsModalDebugModeContent.tsx +446 -0
- package/src/components/StopRecordingModalContent.tsx +109 -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 -115
- 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 +51 -0
- package/src/redux/reducers/appState.ts +56 -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,17 +1,20 @@
|
|
|
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
12
|
import { COLORS } from '../utils/theme';
|
|
11
13
|
import { ModalTypes } from '../utils/types';
|
|
12
|
-
import { DefaultModal } from './DefaultModal';
|
|
13
|
-
import { EndRoomModal, LeaveRoomModal } from './Modals';
|
|
14
14
|
import { PressableIcon } from './PressableIcon';
|
|
15
|
+
import { BottomSheet } from './BottomSheet';
|
|
16
|
+
import { StopIcon } from '../Icons';
|
|
17
|
+
import { EndRoomModalContent } from './EndRoomModalContent';
|
|
15
18
|
|
|
16
19
|
export const HMSManageLeave: React.FC<LeaveButtonProps> = (props) => {
|
|
17
20
|
// TODO: read current meeting joined state
|
|
@@ -34,7 +37,7 @@ type LeaveButtonProps =
|
|
|
34
37
|
|
|
35
38
|
const LeaveButton: React.FC<LeaveButtonProps> = (props) => {
|
|
36
39
|
const leavePopCloseAction = React.useRef(ModalTypes.DEFAULT);
|
|
37
|
-
|
|
40
|
+
const isHLSViewer = useIsHLSViewer();
|
|
38
41
|
const [leavePopVisible, setLeavePopVisible] = React.useState(false);
|
|
39
42
|
const [leaveModalType, setLeaveModalType] = React.useState(
|
|
40
43
|
ModalTypes.DEFAULT
|
|
@@ -43,6 +46,8 @@ const LeaveButton: React.FC<LeaveButtonProps> = (props) => {
|
|
|
43
46
|
(state: RootState) => state.hmsStates.localPeer?.role?.permissions?.endRoom
|
|
44
47
|
);
|
|
45
48
|
|
|
49
|
+
const { leave } = useLeaveMethods();
|
|
50
|
+
|
|
46
51
|
/**
|
|
47
52
|
* Opens the Leave Popup Menu
|
|
48
53
|
*/
|
|
@@ -59,8 +64,8 @@ const LeaveButton: React.FC<LeaveButtonProps> = (props) => {
|
|
|
59
64
|
* Leave Modal will open after the popup is hidden
|
|
60
65
|
*/
|
|
61
66
|
const handleLeavePress = () => {
|
|
62
|
-
leavePopCloseAction.current = ModalTypes.LEAVE_ROOM;
|
|
63
67
|
setLeavePopVisible(false);
|
|
68
|
+
leave();
|
|
64
69
|
};
|
|
65
70
|
|
|
66
71
|
/**
|
|
@@ -90,13 +95,13 @@ const LeaveButton: React.FC<LeaveButtonProps> = (props) => {
|
|
|
90
95
|
|
|
91
96
|
const dismissModal = () => setLeaveModalType(ModalTypes.DEFAULT);
|
|
92
97
|
|
|
93
|
-
const { leave, endRoom } = useLeaveMethods();
|
|
94
|
-
|
|
95
98
|
const leaveIconDelegate =
|
|
96
99
|
'leaveIconDelegate' in props && props.leaveIconDelegate ? (
|
|
97
100
|
props.leaveIconDelegate
|
|
101
|
+
) : isHLSViewer ? (
|
|
102
|
+
<LeaveIcon style={{ transform: [{ rotateZ: '180 deg' }] }} />
|
|
98
103
|
) : (
|
|
99
|
-
<
|
|
104
|
+
<EndIcon />
|
|
100
105
|
);
|
|
101
106
|
|
|
102
107
|
const leaveButtonDelegate =
|
|
@@ -113,7 +118,7 @@ const LeaveButton: React.FC<LeaveButtonProps> = (props) => {
|
|
|
113
118
|
style: styles.button,
|
|
114
119
|
})}
|
|
115
120
|
|
|
116
|
-
<
|
|
121
|
+
<LeaveBottomSheet
|
|
117
122
|
isVisible={leavePopVisible}
|
|
118
123
|
onEndSessionPress={handleEndSessionPress}
|
|
119
124
|
onLeavePress={handleLeavePress}
|
|
@@ -121,27 +126,19 @@ const LeaveButton: React.FC<LeaveButtonProps> = (props) => {
|
|
|
121
126
|
onPopupHide={handlePopupHide}
|
|
122
127
|
/>
|
|
123
128
|
|
|
124
|
-
<
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
>
|
|
129
|
-
<LeaveRoomModal onSuccess={leave} cancelModal={dismissModal} />
|
|
130
|
-
</DefaultModal>
|
|
131
|
-
|
|
132
|
-
<DefaultModal
|
|
133
|
-
modalPosiion="center"
|
|
134
|
-
modalVisible={leaveModalType === ModalTypes.END_ROOM}
|
|
135
|
-
setModalVisible={dismissModal}
|
|
129
|
+
<BottomSheet
|
|
130
|
+
dismissModal={dismissModal}
|
|
131
|
+
isVisible={leaveModalType === ModalTypes.END_ROOM}
|
|
132
|
+
animationOutTiming={700}
|
|
136
133
|
>
|
|
137
|
-
<
|
|
138
|
-
</
|
|
134
|
+
<EndRoomModalContent dismissModal={dismissModal} />
|
|
135
|
+
</BottomSheet>
|
|
139
136
|
</View>
|
|
140
137
|
);
|
|
141
138
|
};
|
|
142
139
|
|
|
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
|
|
140
|
+
// const HEADER_CONTENT_HEIGHT = 24 + 8 + 8 + 2; // ICON_SIZE + TOP_PADDING + BOTTOM_PADDING + TOP&BOTTOM_BORDER_WIDTH
|
|
141
|
+
// const HEADER_HEIGHT = 8 + HEADER_CONTENT_HEIGHT + 8; // TOP_HEADER_PADDING + HEADER_CONTENT_HEIGHT + BOTTOM_HEADER_PADDING
|
|
145
142
|
|
|
146
143
|
const styles = StyleSheet.create({
|
|
147
144
|
button: {
|
|
@@ -150,7 +147,7 @@ const styles = StyleSheet.create({
|
|
|
150
147
|
},
|
|
151
148
|
});
|
|
152
149
|
|
|
153
|
-
interface
|
|
150
|
+
interface LeaveBottomSheetProps {
|
|
154
151
|
isVisible: boolean;
|
|
155
152
|
onPopupDismiss(): void;
|
|
156
153
|
onLeavePress(): void;
|
|
@@ -158,121 +155,119 @@ interface LeavePopupProps {
|
|
|
158
155
|
onPopupHide(): void;
|
|
159
156
|
}
|
|
160
157
|
|
|
161
|
-
const
|
|
158
|
+
const LeaveBottomSheet: React.FC<LeaveBottomSheetProps> = ({
|
|
162
159
|
isVisible,
|
|
163
160
|
onPopupDismiss,
|
|
164
161
|
onLeavePress,
|
|
165
162
|
onEndSessionPress,
|
|
166
163
|
onPopupHide,
|
|
167
164
|
}) => {
|
|
168
|
-
const safeAreaInsets = useSafeAreaInsets();
|
|
169
165
|
const canEndRoom = useSelector(
|
|
170
166
|
(state: RootState) => state.hmsStates.localPeer?.role?.permissions?.endRoom
|
|
171
167
|
);
|
|
172
168
|
|
|
169
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
170
|
+
text: {
|
|
171
|
+
color: theme.palette.on_surface_high,
|
|
172
|
+
fontFamily: `${typography.font_family}-SemiBold`,
|
|
173
|
+
},
|
|
174
|
+
subtext: {
|
|
175
|
+
color: theme.palette.on_surface_low,
|
|
176
|
+
fontFamily: `${typography.font_family}-Regular`,
|
|
177
|
+
},
|
|
178
|
+
endButton: {
|
|
179
|
+
backgroundColor: theme.palette.alert_error_dim,
|
|
180
|
+
},
|
|
181
|
+
endText: {
|
|
182
|
+
color: theme.palette.alert_error_brighter,
|
|
183
|
+
fontFamily: `${typography.font_family}-SemiBold`,
|
|
184
|
+
},
|
|
185
|
+
endSubtext: {
|
|
186
|
+
color: theme.palette.alert_error_bright,
|
|
187
|
+
fontFamily: `${typography.font_family}-Regular`,
|
|
188
|
+
},
|
|
189
|
+
endIcon: {
|
|
190
|
+
tintColor: theme.palette.alert_error_brighter,
|
|
191
|
+
},
|
|
192
|
+
}));
|
|
193
|
+
|
|
173
194
|
return (
|
|
174
|
-
<
|
|
195
|
+
<BottomSheet
|
|
175
196
|
isVisible={isVisible}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
backdropColor={COLORS.BACKGROUND.DIM}
|
|
179
|
-
backdropOpacity={0}
|
|
180
|
-
onBackButtonPress={onPopupDismiss}
|
|
181
|
-
onBackdropPress={onPopupDismiss}
|
|
182
|
-
useNativeDriver={true}
|
|
197
|
+
containerStyle={leavePopupStyles.container}
|
|
198
|
+
dismissModal={onPopupDismiss}
|
|
183
199
|
onModalHide={onPopupHide}
|
|
184
|
-
|
|
185
|
-
hideModalContentWhileAnimating={true}
|
|
186
|
-
style={leavePopupStyles.modal}
|
|
200
|
+
animationOutTiming={700}
|
|
187
201
|
>
|
|
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
|
-
>
|
|
202
|
+
<View>
|
|
199
203
|
<TouchableOpacity
|
|
200
|
-
style={leavePopupStyles.
|
|
204
|
+
style={leavePopupStyles.button}
|
|
201
205
|
onPress={onLeavePress}
|
|
202
206
|
>
|
|
203
|
-
<LeaveIcon style={leavePopupStyles.
|
|
204
|
-
|
|
207
|
+
<LeaveIcon style={leavePopupStyles.icon} />
|
|
208
|
+
|
|
209
|
+
<View style={leavePopupStyles.textContainer}>
|
|
210
|
+
<Text style={[leavePopupStyles.text, hmsRoomStyles.text]}>
|
|
211
|
+
Leave
|
|
212
|
+
</Text>
|
|
213
|
+
<Text style={[leavePopupStyles.subtext, hmsRoomStyles.subtext]}>
|
|
214
|
+
Others will continue after you leave. You can join the session
|
|
215
|
+
again.
|
|
216
|
+
</Text>
|
|
217
|
+
</View>
|
|
205
218
|
</TouchableOpacity>
|
|
206
219
|
|
|
207
220
|
{canEndRoom ? (
|
|
208
|
-
|
|
209
|
-
|
|
221
|
+
<TouchableOpacity
|
|
222
|
+
style={[leavePopupStyles.button, hmsRoomStyles.endButton]}
|
|
223
|
+
onPress={onEndSessionPress}
|
|
224
|
+
>
|
|
225
|
+
<StopIcon style={[leavePopupStyles.icon, hmsRoomStyles.endIcon]} />
|
|
210
226
|
|
|
211
|
-
<
|
|
212
|
-
style={leavePopupStyles.
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
<
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
227
|
+
<View style={leavePopupStyles.textContainer}>
|
|
228
|
+
<Text style={[leavePopupStyles.text, hmsRoomStyles.endText]}>
|
|
229
|
+
End Stream
|
|
230
|
+
</Text>
|
|
231
|
+
<Text
|
|
232
|
+
style={[leavePopupStyles.subtext, hmsRoomStyles.endSubtext]}
|
|
233
|
+
>
|
|
234
|
+
The stream & session will end for everyone. You can't undo this
|
|
235
|
+
action.
|
|
236
|
+
</Text>
|
|
237
|
+
</View>
|
|
238
|
+
</TouchableOpacity>
|
|
219
239
|
) : null}
|
|
220
240
|
</View>
|
|
221
|
-
</
|
|
241
|
+
</BottomSheet>
|
|
222
242
|
);
|
|
223
243
|
};
|
|
224
244
|
|
|
225
245
|
const leavePopupStyles = StyleSheet.create({
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
justifyContent: 'flex-start',
|
|
246
|
+
container: {
|
|
247
|
+
paddingBottom: 0,
|
|
229
248
|
},
|
|
230
|
-
|
|
231
|
-
overflow: 'hidden',
|
|
232
|
-
width: 243,
|
|
233
|
-
backgroundColor: COLORS.SURFACE.DIM,
|
|
234
|
-
borderRadius: 8,
|
|
235
|
-
borderWidth: 1,
|
|
236
|
-
borderColor: COLORS.BORDER.BRIGHT,
|
|
237
|
-
},
|
|
238
|
-
leaveButton: {
|
|
249
|
+
button: {
|
|
239
250
|
flexDirection: 'row',
|
|
240
|
-
|
|
241
|
-
paddingVertical: 16,
|
|
251
|
+
padding: 24,
|
|
242
252
|
},
|
|
243
|
-
|
|
244
|
-
width:
|
|
245
|
-
height:
|
|
246
|
-
|
|
253
|
+
icon: {
|
|
254
|
+
width: 24,
|
|
255
|
+
height: 24,
|
|
256
|
+
marginRight: 16,
|
|
247
257
|
transform: [{ rotateY: '180deg' }],
|
|
248
258
|
},
|
|
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,
|
|
259
|
+
textContainer: {
|
|
260
|
+
flex: 1,
|
|
265
261
|
},
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
262
|
+
text: {
|
|
263
|
+
fontSize: 20,
|
|
264
|
+
lineHeight: 24,
|
|
265
|
+
letterSpacing: 0.15,
|
|
270
266
|
},
|
|
271
|
-
|
|
272
|
-
color: COLORS.ALERT.ERROR.BRIGHT,
|
|
267
|
+
subtext: {
|
|
273
268
|
fontSize: 14,
|
|
274
|
-
fontFamily: 'Inter',
|
|
275
|
-
fontWeight: '600',
|
|
276
269
|
lineHeight: 20,
|
|
270
|
+
letterSpacing: 0.25,
|
|
271
|
+
marginTop: 4,
|
|
277
272
|
},
|
|
278
273
|
});
|
|
@@ -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,11 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Platform, StyleSheet, TextInput } from 'react-native';
|
|
3
2
|
import { useDispatch, useSelector } from 'react-redux';
|
|
4
3
|
|
|
5
|
-
import { COLORS } from '../utils/theme';
|
|
6
4
|
import type { RootState } from '../redux';
|
|
7
5
|
import { changeUsername } from '../redux/actions';
|
|
8
6
|
import { useHMSConfig } from '../hooks-util';
|
|
7
|
+
import { HMSTextInput } from './HMSTextInput';
|
|
9
8
|
|
|
10
9
|
export interface HMSPreviewEditNameProps {}
|
|
11
10
|
|
|
@@ -13,52 +12,11 @@ export const HMSPreviewEditName: React.FC<HMSPreviewEditNameProps> = () => {
|
|
|
13
12
|
const dispatch = useDispatch();
|
|
14
13
|
const { updateConfig } = useHMSConfig();
|
|
15
14
|
const userName = useSelector((state: RootState) => state.user.userName);
|
|
16
|
-
const [inputFocused, setInputFocused] = React.useState(false);
|
|
17
15
|
|
|
18
16
|
const handleNameChange = (name: string) => {
|
|
19
17
|
dispatch(changeUsername(name));
|
|
20
18
|
updateConfig({ username: name });
|
|
21
19
|
};
|
|
22
20
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
const handleInputBlur = () => setInputFocused(false);
|
|
26
|
-
|
|
27
|
-
return (
|
|
28
|
-
<TextInput
|
|
29
|
-
style={[styles.input, inputFocused ? styles.focusedInput : null]}
|
|
30
|
-
value={userName}
|
|
31
|
-
onChangeText={handleNameChange}
|
|
32
|
-
placeholder="Enter Name..."
|
|
33
|
-
autoCapitalize="words"
|
|
34
|
-
autoCompleteType="name"
|
|
35
|
-
placeholderTextColor={COLORS.SURFACE.ON_SURFACE.LOW}
|
|
36
|
-
selectionColor={COLORS.SURFACE.ON_SURFACE.HIGH}
|
|
37
|
-
onFocus={handleInputFocus}
|
|
38
|
-
onBlur={handleInputBlur}
|
|
39
|
-
/>
|
|
40
|
-
);
|
|
21
|
+
return <HMSTextInput value={userName} onChangeText={handleNameChange} />;
|
|
41
22
|
};
|
|
42
|
-
|
|
43
|
-
const styles = StyleSheet.create({
|
|
44
|
-
input: {
|
|
45
|
-
flex: 1,
|
|
46
|
-
height: 50,
|
|
47
|
-
textAlignVertical: 'center',
|
|
48
|
-
backgroundColor: COLORS.SURFACE.DEFAULT,
|
|
49
|
-
paddingHorizontal: 16,
|
|
50
|
-
borderRadius: 8,
|
|
51
|
-
color: COLORS.SURFACE.ON_SURFACE.HIGH,
|
|
52
|
-
fontSize: 16,
|
|
53
|
-
lineHeight: Platform.OS === 'android' ? 24 : undefined,
|
|
54
|
-
fontFamily: 'Inter',
|
|
55
|
-
fontWeight: '400',
|
|
56
|
-
letterSpacing: 0.5,
|
|
57
|
-
borderWidth: 2,
|
|
58
|
-
borderColor: COLORS.SURFACE.DEFAULT,
|
|
59
|
-
},
|
|
60
|
-
focusedInput: {
|
|
61
|
-
borderColor: COLORS.PRIMARY.DEFAULT,
|
|
62
|
-
borderWidth: 2,
|
|
63
|
-
},
|
|
64
|
-
});
|
|
@@ -2,24 +2,37 @@ import * as React from 'react';
|
|
|
2
2
|
import { View, Text, StyleSheet } from 'react-native';
|
|
3
3
|
import { useSelector } from 'react-redux';
|
|
4
4
|
|
|
5
|
-
import { COLORS } from '../utils/theme';
|
|
6
5
|
import type { RootState } from '../redux';
|
|
6
|
+
import { useHMSRoomStyleSheet } from '../hooks-util';
|
|
7
7
|
|
|
8
8
|
export const HMSPreviewHLSLiveIndicator = () => {
|
|
9
9
|
const isHLSStreaming = useSelector(
|
|
10
10
|
(state: RootState) => state.hmsStates.room?.hlsStreamingState?.running
|
|
11
11
|
);
|
|
12
12
|
|
|
13
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
14
|
+
container: {
|
|
15
|
+
backgroundColor: theme.palette.alert_error_default,
|
|
16
|
+
},
|
|
17
|
+
circle: {
|
|
18
|
+
backgroundColor: theme.palette.on_surface_high,
|
|
19
|
+
},
|
|
20
|
+
text: {
|
|
21
|
+
color: theme.palette.on_surface_high,
|
|
22
|
+
fontFamily: `${typography.font_family}-SemiBold`,
|
|
23
|
+
},
|
|
24
|
+
}));
|
|
25
|
+
|
|
13
26
|
if (!isHLSStreaming) {
|
|
14
27
|
return null;
|
|
15
28
|
}
|
|
16
29
|
|
|
17
30
|
return (
|
|
18
|
-
<View style={styles.container}>
|
|
31
|
+
<View style={[styles.container, hmsRoomStyles.container]}>
|
|
19
32
|
<View style={styles.circleContainer}>
|
|
20
|
-
<View style={styles.circle} />
|
|
33
|
+
<View style={[styles.circle, hmsRoomStyles.circle]} />
|
|
21
34
|
</View>
|
|
22
|
-
<Text style={styles.text}>LIVE</Text>
|
|
35
|
+
<Text style={[styles.text, hmsRoomStyles.text]}>LIVE</Text>
|
|
23
36
|
</View>
|
|
24
37
|
);
|
|
25
38
|
};
|
|
@@ -29,7 +42,6 @@ const styles = StyleSheet.create({
|
|
|
29
42
|
flexDirection: 'row',
|
|
30
43
|
alignItems: 'center',
|
|
31
44
|
borderRadius: 20,
|
|
32
|
-
backgroundColor: COLORS.ALERT.ERROR.DEFAULT,
|
|
33
45
|
paddingLeft: 8,
|
|
34
46
|
paddingRight: 12,
|
|
35
47
|
marginRight: 8,
|
|
@@ -44,14 +56,10 @@ const styles = StyleSheet.create({
|
|
|
44
56
|
width: 12,
|
|
45
57
|
height: 12,
|
|
46
58
|
borderRadius: 6,
|
|
47
|
-
backgroundColor: COLORS.WHITE,
|
|
48
59
|
},
|
|
49
60
|
text: {
|
|
50
61
|
marginLeft: 4,
|
|
51
|
-
color: COLORS.SURFACE.ON_SURFACE.HIGH,
|
|
52
62
|
fontSize: 14,
|
|
53
|
-
fontFamily: 'Inter',
|
|
54
|
-
fontWeight: '600',
|
|
55
63
|
lineHeight: 20,
|
|
56
64
|
letterSpacing: 0.25,
|
|
57
65
|
},
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
StyleSheet,
|
|
5
|
-
Text,
|
|
6
|
-
TouchableHighlight,
|
|
7
|
-
} from 'react-native';
|
|
8
|
-
import { useSelector } from 'react-redux';
|
|
2
|
+
import { StyleSheet } from 'react-native';
|
|
3
|
+
import { shallowEqual, useSelector } from 'react-redux';
|
|
9
4
|
|
|
10
|
-
import { COLORS } from '../utils/theme';
|
|
11
5
|
import type { RootState } from '../redux';
|
|
12
6
|
import { RadioIcon } from '../Icons';
|
|
13
|
-
import { useShouldGoLive } from '../hooks-util';
|
|
7
|
+
import { useHMSRoomStyle, useShouldGoLive } from '../hooks-util';
|
|
8
|
+
import { HMSPrimaryButton } from './HMSPrimaryButton';
|
|
14
9
|
|
|
15
10
|
export interface HMSPreviewJoinButtonProps {
|
|
16
11
|
onJoin(): void;
|
|
@@ -25,80 +20,47 @@ export const HMSPreviewJoinButton: React.FC<HMSPreviewJoinButtonProps> = ({
|
|
|
25
20
|
(state: RootState) => state.user.userName.length <= 0
|
|
26
21
|
);
|
|
27
22
|
|
|
23
|
+
const joinButtonLabels = useSelector((state: RootState) => {
|
|
24
|
+
const layoutConfig = state.hmsStates.layoutConfig;
|
|
25
|
+
const joinLayoutConfig =
|
|
26
|
+
layoutConfig?.screens?.preview?.default?.elements?.join_form;
|
|
27
|
+
|
|
28
|
+
return {
|
|
29
|
+
joinBtnLabel: joinLayoutConfig?.join_btn_label || 'Join Now',
|
|
30
|
+
goLiveBtnLabel: joinLayoutConfig?.go_live_btn_label || 'Go Live',
|
|
31
|
+
};
|
|
32
|
+
}, shallowEqual);
|
|
33
|
+
|
|
28
34
|
const shouldGoLive = useShouldGoLive();
|
|
29
35
|
|
|
36
|
+
const liveIconStyles = useHMSRoomStyle((theme) => ({
|
|
37
|
+
tintColor: theme.palette.on_primary_low,
|
|
38
|
+
}));
|
|
39
|
+
|
|
30
40
|
const disabledJoin = userNameInvalid || loading;
|
|
31
41
|
|
|
32
42
|
return (
|
|
33
|
-
<
|
|
34
|
-
|
|
35
|
-
style={[styles.button, disabledJoin ? styles.disabledButton : null]}
|
|
43
|
+
<HMSPrimaryButton
|
|
44
|
+
loading={loading}
|
|
36
45
|
onPress={onJoin}
|
|
46
|
+
title={
|
|
47
|
+
shouldGoLive
|
|
48
|
+
? joinButtonLabels.goLiveBtnLabel
|
|
49
|
+
: joinButtonLabels.joinBtnLabel
|
|
50
|
+
}
|
|
37
51
|
disabled={disabledJoin}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
/>
|
|
46
|
-
) : null}
|
|
47
|
-
|
|
48
|
-
{shouldGoLive ? (
|
|
49
|
-
<RadioIcon
|
|
50
|
-
style={[
|
|
51
|
-
loading ? styles.hiddenView : null,
|
|
52
|
-
disabledJoin ? styles.disabledIcon : null,
|
|
53
|
-
]}
|
|
54
|
-
/>
|
|
55
|
-
) : null}
|
|
56
|
-
|
|
57
|
-
<Text
|
|
58
|
-
style={[
|
|
59
|
-
styles.text,
|
|
60
|
-
loading ? styles.hiddenView : null,
|
|
61
|
-
disabledJoin ? styles.disabledText : null,
|
|
62
|
-
]}
|
|
63
|
-
>
|
|
64
|
-
{shouldGoLive ? 'Go Live' : 'Join Now'}
|
|
65
|
-
</Text>
|
|
66
|
-
</>
|
|
67
|
-
</TouchableHighlight>
|
|
52
|
+
leftComponent={
|
|
53
|
+
shouldGoLive ? (
|
|
54
|
+
<RadioIcon style={disabledJoin ? liveIconStyles : null} />
|
|
55
|
+
) : null
|
|
56
|
+
}
|
|
57
|
+
style={styles.button}
|
|
58
|
+
/>
|
|
68
59
|
);
|
|
69
60
|
};
|
|
70
61
|
|
|
71
62
|
const styles = StyleSheet.create({
|
|
72
63
|
button: {
|
|
73
|
-
flexDirection: 'row',
|
|
74
|
-
paddingHorizontal: 16,
|
|
75
|
-
paddingVertical: 8,
|
|
76
|
-
borderRadius: 8,
|
|
77
|
-
backgroundColor: COLORS.PRIMARY.DEFAULT,
|
|
78
64
|
marginLeft: 16,
|
|
79
|
-
alignItems: 'center',
|
|
80
|
-
justifyContent: 'center',
|
|
81
|
-
},
|
|
82
|
-
text: {
|
|
83
|
-
color: COLORS.BASE.WHITE,
|
|
84
|
-
fontSize: 16,
|
|
85
|
-
fontFamily: 'Inter',
|
|
86
|
-
fontWeight: '600',
|
|
87
|
-
lineHeight: 24,
|
|
88
|
-
letterSpacing: 0.5,
|
|
89
|
-
marginHorizontal: 8,
|
|
90
|
-
},
|
|
91
|
-
loader: { position: 'absolute' },
|
|
92
|
-
disabledButton: {
|
|
93
|
-
backgroundColor: COLORS.PRIMARY.DISABLED,
|
|
94
|
-
},
|
|
95
|
-
disabledIcon: {
|
|
96
|
-
tintColor: COLORS.PRIMARY.ON_PRIMARY.LOW,
|
|
97
|
-
},
|
|
98
|
-
disabledText: {
|
|
99
|
-
color: COLORS.PRIMARY.ON_PRIMARY.LOW,
|
|
100
|
-
},
|
|
101
|
-
hiddenView: {
|
|
102
|
-
opacity: 0,
|
|
103
65
|
},
|
|
104
66
|
});
|
|
@@ -3,9 +3,9 @@ import { View, StyleSheet } from 'react-native';
|
|
|
3
3
|
import { useSelector } from 'react-redux';
|
|
4
4
|
|
|
5
5
|
import { NetworkQualityIcon } from '../Icons';
|
|
6
|
-
import {
|
|
6
|
+
import { hexToRgbA } from '../utils/theme';
|
|
7
7
|
import type { RootState } from '../redux';
|
|
8
|
-
import { useHMSInstance } from '../hooks-util';
|
|
8
|
+
import { useHMSInstance, useHMSRoomStyle } from '../hooks-util';
|
|
9
9
|
|
|
10
10
|
export const HMSPreviewNetworkQuality = () => {
|
|
11
11
|
const hmsInstance = useHMSInstance();
|
|
@@ -20,8 +20,12 @@ export const HMSPreviewNetworkQuality = () => {
|
|
|
20
20
|
return () => hmsInstance.disableNetworkQualityUpdates();
|
|
21
21
|
}, []);
|
|
22
22
|
|
|
23
|
+
const containerStyles = useHMSRoomStyle((theme) => ({
|
|
24
|
+
backgroundColor: hexToRgbA(theme.palette.background_dim, 0.8),
|
|
25
|
+
}));
|
|
26
|
+
|
|
23
27
|
return (
|
|
24
|
-
<View style={styles.container}>
|
|
28
|
+
<View style={[styles.container, containerStyles]}>
|
|
25
29
|
<NetworkQualityIcon quality={localPeerNetworkQuality} />
|
|
26
30
|
</View>
|
|
27
31
|
);
|
|
@@ -34,7 +38,6 @@ const styles = StyleSheet.create({
|
|
|
34
38
|
borderRadius: 8,
|
|
35
39
|
paddingVertical: 4,
|
|
36
40
|
paddingHorizontal: 8,
|
|
37
|
-
backgroundColor: COLORS.BACKGROUND.DIM_80,
|
|
38
41
|
alignSelf: 'flex-start',
|
|
39
42
|
},
|
|
40
43
|
});
|