@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,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
|
});
|
|
@@ -2,23 +2,38 @@ import * as React from 'react';
|
|
|
2
2
|
import { StyleSheet, Text, View } 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 interface HMSPreviewPeersListProps {}
|
|
9
9
|
|
|
10
10
|
export const HMSPreviewPeersList: React.FC<HMSPreviewPeersListProps> = () => {
|
|
11
|
-
const
|
|
12
|
-
(state: RootState) => state.hmsStates.
|
|
11
|
+
const previewPeerCount = useSelector(
|
|
12
|
+
(state: RootState) => state.hmsStates.room?.peerCount
|
|
13
13
|
);
|
|
14
14
|
|
|
15
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
16
|
+
container: {
|
|
17
|
+
backgroundColor: theme.palette.surface_default,
|
|
18
|
+
borderColor: theme.palette.border_default,
|
|
19
|
+
},
|
|
20
|
+
text: {
|
|
21
|
+
color: theme.palette.on_surface_high,
|
|
22
|
+
fontFamily: `${typography.font_family}-SemiBold`,
|
|
23
|
+
},
|
|
24
|
+
}));
|
|
25
|
+
|
|
26
|
+
if (typeof previewPeerCount !== 'number') {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
|
|
15
30
|
return (
|
|
16
|
-
<View style={styles.container}>
|
|
17
|
-
<Text style={[styles.text, styles.textSpacer]}>
|
|
18
|
-
{
|
|
31
|
+
<View style={[styles.container, hmsRoomStyles.container]}>
|
|
32
|
+
<Text style={[styles.text, hmsRoomStyles.text, styles.textSpacer]}>
|
|
33
|
+
{previewPeerCount <= 0
|
|
19
34
|
? 'You are the first to join'
|
|
20
|
-
: `${
|
|
21
|
-
|
|
35
|
+
: `${previewPeerCount} ${
|
|
36
|
+
previewPeerCount > 1 ? 'others' : 'other'
|
|
22
37
|
} in session`}
|
|
23
38
|
</Text>
|
|
24
39
|
</View>
|
|
@@ -28,18 +43,13 @@ export const HMSPreviewPeersList: React.FC<HMSPreviewPeersListProps> = () => {
|
|
|
28
43
|
const styles = StyleSheet.create({
|
|
29
44
|
container: {
|
|
30
45
|
alignItems: 'center',
|
|
31
|
-
backgroundColor: COLORS.SURFACE.DEFAULT,
|
|
32
46
|
paddingVertical: 8,
|
|
33
47
|
paddingHorizontal: 12,
|
|
34
48
|
borderRadius: 20,
|
|
35
|
-
borderColor: COLORS.BORDER.DEFAULT,
|
|
36
49
|
borderWidth: 1,
|
|
37
50
|
},
|
|
38
51
|
text: {
|
|
39
|
-
color: COLORS.SURFACE.ON_SURFACE.HIGH,
|
|
40
52
|
fontSize: 14,
|
|
41
|
-
fontFamily: 'Inter',
|
|
42
|
-
fontWeight: '600',
|
|
43
53
|
lineHeight: 24,
|
|
44
54
|
},
|
|
45
55
|
textSpacer: {
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { useSelector } from 'react-redux';
|
|
2
3
|
import { StyleSheet, Text } from 'react-native';
|
|
4
|
+
import type { StyleProp, TextStyle } from 'react-native';
|
|
3
5
|
|
|
4
|
-
import { COLORS } from '../utils/theme';
|
|
5
6
|
import { useCanPublishAudio, useCanPublishVideo } from '../hooks-sdk';
|
|
7
|
+
import { useHMSRoomStyle } from '../hooks-util';
|
|
8
|
+
import type { RootState } from '../redux';
|
|
6
9
|
|
|
7
10
|
export interface HMSPreviewSubtitleProps {
|
|
8
11
|
subtitle?: string;
|
|
@@ -14,35 +17,48 @@ export const HMSPreviewSubtitle: React.FC<HMSPreviewSubtitleProps> = ({
|
|
|
14
17
|
const canPublishAudio = useCanPublishAudio();
|
|
15
18
|
const canPublishVideo = useCanPublishVideo();
|
|
16
19
|
|
|
20
|
+
const hmsRoomPreviewSubtitle = useSelector((state: RootState) => {
|
|
21
|
+
const layoutConfig = state.hmsStates.layoutConfig;
|
|
22
|
+
|
|
23
|
+
return layoutConfig?.screens?.preview?.default?.elements?.preview_header
|
|
24
|
+
?.sub_title;
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
const titleStyles = useHMSRoomStyle((theme, typography) => ({
|
|
28
|
+
color: theme.palette.on_surface_medium,
|
|
29
|
+
fontFamily: `${typography.font_family}-Regular`,
|
|
30
|
+
}));
|
|
31
|
+
|
|
32
|
+
const textStyles: StyleProp<TextStyle> = [styles.title, titleStyles];
|
|
33
|
+
|
|
17
34
|
if (subtitle) {
|
|
18
|
-
return <Text style={
|
|
35
|
+
return <Text style={textStyles}>{subtitle}</Text>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
if (hmsRoomPreviewSubtitle) {
|
|
39
|
+
return <Text style={textStyles}>{hmsRoomPreviewSubtitle}</Text>;
|
|
19
40
|
}
|
|
20
41
|
|
|
21
42
|
if (canPublishAudio && canPublishVideo) {
|
|
22
43
|
return (
|
|
23
|
-
<Text style={
|
|
24
|
-
Setup your audio and video before joining
|
|
25
|
-
</Text>
|
|
44
|
+
<Text style={textStyles}>Setup your audio and video before joining</Text>
|
|
26
45
|
);
|
|
27
46
|
}
|
|
28
47
|
|
|
29
48
|
if (canPublishAudio) {
|
|
30
|
-
return <Text style={
|
|
49
|
+
return <Text style={textStyles}>Setup your audio before joining</Text>;
|
|
31
50
|
}
|
|
32
51
|
|
|
33
52
|
if (canPublishVideo) {
|
|
34
|
-
return <Text style={
|
|
53
|
+
return <Text style={textStyles}>Setup your video before joining</Text>;
|
|
35
54
|
}
|
|
36
55
|
|
|
37
|
-
return <Text style={
|
|
56
|
+
return <Text style={textStyles}>Enter your name before joining</Text>;
|
|
38
57
|
};
|
|
39
58
|
|
|
40
59
|
const styles = StyleSheet.create({
|
|
41
60
|
title: {
|
|
42
|
-
color: COLORS.SURFACE.ON_SURFACE.MEDIUM,
|
|
43
61
|
fontSize: 14,
|
|
44
|
-
fontFamily: 'Inter',
|
|
45
|
-
fontWeight: '400',
|
|
46
62
|
lineHeight: 20,
|
|
47
63
|
marginTop: 4,
|
|
48
64
|
textAlign: 'center',
|
|
@@ -7,6 +7,7 @@ import type { RootState } from '../redux';
|
|
|
7
7
|
import { getInitials } from '../utils/functions';
|
|
8
8
|
import { COLORS } from '../utils/theme';
|
|
9
9
|
import { HMSLocalVideoView } from './HMSLocalVideoView';
|
|
10
|
+
import { useHMSRoomStyleSheet } from '../hooks-util';
|
|
10
11
|
|
|
11
12
|
export const HMSPreviewTile: React.FC = () => {
|
|
12
13
|
const isLocalVideoMuted = useSelector(
|
|
@@ -17,15 +18,30 @@ export const HMSPreviewTile: React.FC = () => {
|
|
|
17
18
|
);
|
|
18
19
|
const userName = useSelector((state: RootState) => state.user.userName);
|
|
19
20
|
|
|
21
|
+
const roomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
22
|
+
container: {
|
|
23
|
+
backgroundColor: theme.palette.background_dim,
|
|
24
|
+
},
|
|
25
|
+
avatar: {
|
|
26
|
+
backgroundColor: COLORS.EXTENDED.PURPLE,
|
|
27
|
+
},
|
|
28
|
+
avatarText: {
|
|
29
|
+
color: theme.palette.on_surface_high,
|
|
30
|
+
fontFamily: `${typography.font_family}-SemiBold`,
|
|
31
|
+
},
|
|
32
|
+
}));
|
|
33
|
+
|
|
20
34
|
return (
|
|
21
|
-
<View style={styles.modalContainer}>
|
|
35
|
+
<View style={[styles.modalContainer, roomStyles.container]}>
|
|
22
36
|
{isLocalVideoMuted || !localVideoTrackId ? (
|
|
23
37
|
<View style={styles.avatarContainer}>
|
|
24
|
-
<View style={styles.avatar}>
|
|
38
|
+
<View style={[styles.avatar, roomStyles.avatar]}>
|
|
25
39
|
{userName.length === 0 ? (
|
|
26
40
|
<PersonIcon style={styles.avatarIcon} />
|
|
27
41
|
) : (
|
|
28
|
-
<Text style={styles.avatarText}>
|
|
42
|
+
<Text style={[styles.avatarText, roomStyles.avatarText]}>
|
|
43
|
+
{getInitials(userName)}
|
|
44
|
+
</Text>
|
|
29
45
|
)}
|
|
30
46
|
</View>
|
|
31
47
|
</View>
|
|
@@ -40,7 +56,6 @@ const styles = StyleSheet.create({
|
|
|
40
56
|
modalContainer: {
|
|
41
57
|
flex: 1,
|
|
42
58
|
position: 'relative',
|
|
43
|
-
backgroundColor: COLORS.BACKGROUND.DIM,
|
|
44
59
|
overflow: 'hidden',
|
|
45
60
|
},
|
|
46
61
|
hmsView: {
|
|
@@ -54,7 +69,6 @@ const styles = StyleSheet.create({
|
|
|
54
69
|
avatar: {
|
|
55
70
|
width: 88,
|
|
56
71
|
aspectRatio: 1,
|
|
57
|
-
backgroundColor: COLORS.EXTENDED.PURPLE,
|
|
58
72
|
borderRadius: 44,
|
|
59
73
|
justifyContent: 'center',
|
|
60
74
|
alignItems: 'center',
|
|
@@ -64,10 +78,7 @@ const styles = StyleSheet.create({
|
|
|
64
78
|
height: 40,
|
|
65
79
|
},
|
|
66
80
|
avatarText: {
|
|
67
|
-
color: COLORS.SURFACE.ON_SURFACE.HIGH,
|
|
68
81
|
fontSize: 34,
|
|
69
|
-
fontFamily: 'Inter',
|
|
70
|
-
fontWeight: '600',
|
|
71
82
|
lineHeight: 40,
|
|
72
83
|
letterSpacing: 0.25,
|
|
73
84
|
},
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { StyleSheet, Text } from 'react-native';
|
|
3
|
+
import { useSelector } from 'react-redux';
|
|
3
4
|
|
|
4
|
-
import {
|
|
5
|
+
import { useHMSRoomStyle } from '../hooks-util';
|
|
6
|
+
import type { RootState } from '../redux';
|
|
5
7
|
|
|
6
8
|
export interface HMSPreviewTitleProps {
|
|
7
9
|
title?: string;
|
|
@@ -10,15 +12,26 @@ export interface HMSPreviewTitleProps {
|
|
|
10
12
|
export const HMSPreviewTitle: React.FC<HMSPreviewTitleProps> = ({
|
|
11
13
|
title = 'Get Started',
|
|
12
14
|
}) => {
|
|
13
|
-
|
|
15
|
+
const hmsRoomPreviewTitle = useSelector((state: RootState) => {
|
|
16
|
+
const layoutConfig = state.hmsStates.layoutConfig;
|
|
17
|
+
|
|
18
|
+
const previewTitle =
|
|
19
|
+
layoutConfig?.screens?.preview?.default?.elements?.preview_header?.title;
|
|
20
|
+
|
|
21
|
+
return previewTitle || title;
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
const titleStyles = useHMSRoomStyle((theme, typography) => ({
|
|
25
|
+
color: theme.palette.on_surface_high,
|
|
26
|
+
fontFamily: `${typography.font_family}-SemiBold`,
|
|
27
|
+
}));
|
|
28
|
+
|
|
29
|
+
return <Text style={[styles.title, titleStyles]}>{hmsRoomPreviewTitle}</Text>;
|
|
14
30
|
};
|
|
15
31
|
|
|
16
32
|
const styles = StyleSheet.create({
|
|
17
33
|
title: {
|
|
18
|
-
color: COLORS.SURFACE.ON_SURFACE.HIGH,
|
|
19
34
|
fontSize: 24,
|
|
20
|
-
fontFamily: 'Inter',
|
|
21
|
-
fontWeight: '600',
|
|
22
35
|
lineHeight: 32,
|
|
23
36
|
textAlign: 'center',
|
|
24
37
|
},
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { useHMSRoomColorPalette, useHMSRoomStyleSheet } from '../hooks-util';
|
|
5
|
+
import { HMSBaseButton } from './HMSBaseButton';
|
|
6
|
+
|
|
7
|
+
export interface HMSPrimaryButtonProps {
|
|
8
|
+
title: string;
|
|
9
|
+
loading: boolean;
|
|
10
|
+
onPress(): void;
|
|
11
|
+
style?: StyleProp<ViewStyle>;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
leftComponent?: React.ReactElement | null;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const HMSPrimaryButton: React.FC<HMSPrimaryButtonProps> = ({
|
|
17
|
+
title,
|
|
18
|
+
loading,
|
|
19
|
+
onPress,
|
|
20
|
+
style,
|
|
21
|
+
disabled,
|
|
22
|
+
leftComponent,
|
|
23
|
+
}) => {
|
|
24
|
+
const { primary_dim: primaryDarkColor, on_primary_high: onPrimaryHighColor } =
|
|
25
|
+
useHMSRoomColorPalette();
|
|
26
|
+
|
|
27
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
28
|
+
button: {
|
|
29
|
+
backgroundColor: theme.palette.primary_default,
|
|
30
|
+
},
|
|
31
|
+
disabledButton: {
|
|
32
|
+
backgroundColor: theme.palette.primary_disabled,
|
|
33
|
+
},
|
|
34
|
+
buttonText: {
|
|
35
|
+
color: theme.palette.on_primary_high,
|
|
36
|
+
fontFamily: `${typography.font_family}-SemiBold`,
|
|
37
|
+
},
|
|
38
|
+
disabledText: {
|
|
39
|
+
color: theme.palette.on_primary_low,
|
|
40
|
+
},
|
|
41
|
+
}));
|
|
42
|
+
|
|
43
|
+
return (
|
|
44
|
+
<HMSBaseButton
|
|
45
|
+
loaderColor={onPrimaryHighColor}
|
|
46
|
+
loading={loading}
|
|
47
|
+
onPress={onPress}
|
|
48
|
+
title={title}
|
|
49
|
+
underlayColor={primaryDarkColor}
|
|
50
|
+
disabled={disabled}
|
|
51
|
+
leftComponent={leftComponent}
|
|
52
|
+
style={[
|
|
53
|
+
hmsRoomStyles.button,
|
|
54
|
+
disabled ? hmsRoomStyles.disabledButton : null,
|
|
55
|
+
style,
|
|
56
|
+
]}
|
|
57
|
+
textStyle={[
|
|
58
|
+
hmsRoomStyles.buttonText,
|
|
59
|
+
disabled ? hmsRoomStyles.disabledText : null,
|
|
60
|
+
]}
|
|
61
|
+
/>
|
|
62
|
+
);
|
|
63
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { useSelector } from 'react-redux';
|
|
3
|
+
import { ActivityIndicator, StyleSheet } from 'react-native';
|
|
4
|
+
|
|
5
|
+
import type { RootState } from '../redux';
|
|
6
|
+
import { RecordingIcon } from '../Icons';
|
|
7
|
+
import { useHMSRoomColorPalette, useHMSRoomStyle } from '../hooks-util';
|
|
8
|
+
|
|
9
|
+
export const HMSRecordingIndicator = () => {
|
|
10
|
+
const isRecordingOn = useSelector(
|
|
11
|
+
(state: RootState) => !!state.hmsStates.room?.browserRecordingState?.running
|
|
12
|
+
);
|
|
13
|
+
const startingOrStoppingRecording = useSelector(
|
|
14
|
+
(state: RootState) => state.app.startingOrStoppingRecording
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
const { on_surface_high: onSurfaceHighColor } = useHMSRoomColorPalette();
|
|
18
|
+
|
|
19
|
+
const iconStyles = useHMSRoomStyle((theme) => ({
|
|
20
|
+
tintColor: theme.palette.alert_error_default,
|
|
21
|
+
}));
|
|
22
|
+
|
|
23
|
+
if (startingOrStoppingRecording) {
|
|
24
|
+
return <ActivityIndicator size={'small'} color={onSurfaceHighColor} />;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
if (isRecordingOn) {
|
|
28
|
+
return <RecordingIcon style={[styles.icon, iconStyles]} />;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
return null;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
const styles = StyleSheet.create({
|
|
35
|
+
icon: {
|
|
36
|
+
width: 24,
|
|
37
|
+
height: 24,
|
|
38
|
+
},
|
|
39
|
+
});
|