@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
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { StyleSheet, Text, View } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { CameraIcon, MaximizeIcon, MicIcon } from '../Icons';
|
|
5
|
+
import { PressableIcon } from './PressableIcon';
|
|
6
|
+
import { useCanPublishAudio, useCanPublishVideo } from '../hooks-sdk';
|
|
7
|
+
import type { PeerTrackNode } from '../utils/types';
|
|
8
|
+
import { selectCanPublishTrackForRole } from '../hooks-sdk-selectors';
|
|
9
|
+
import { useHMSRoomStyleSheet } from '../hooks-util';
|
|
10
|
+
|
|
11
|
+
export const usePeerMinimizedViewDimensions = () => {
|
|
12
|
+
const canPublishAudio = useCanPublishAudio();
|
|
13
|
+
const canPublishVideo = useCanPublishVideo();
|
|
14
|
+
|
|
15
|
+
const iconTakesSpace = 20 + 6; // Width + Right Margin
|
|
16
|
+
const totalWidth = 148;
|
|
17
|
+
const widthLessIconsWidth = totalWidth - 2 * iconTakesSpace;
|
|
18
|
+
|
|
19
|
+
return {
|
|
20
|
+
width:
|
|
21
|
+
widthLessIconsWidth +
|
|
22
|
+
(canPublishAudio ? iconTakesSpace : 0) +
|
|
23
|
+
(canPublishVideo ? iconTakesSpace : 0),
|
|
24
|
+
height: 36,
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export interface PeerMinimizedViewProps {
|
|
29
|
+
peerTrackNode: PeerTrackNode;
|
|
30
|
+
onMaximizePress(): void;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const _PeerMinimizedView: React.FC<PeerMinimizedViewProps> = ({
|
|
34
|
+
peerTrackNode,
|
|
35
|
+
onMaximizePress,
|
|
36
|
+
}) => {
|
|
37
|
+
const peerCanPublishAudio = selectCanPublishTrackForRole(
|
|
38
|
+
peerTrackNode.peer.role,
|
|
39
|
+
'audio'
|
|
40
|
+
);
|
|
41
|
+
const peerCanPublishVideo = selectCanPublishTrackForRole(
|
|
42
|
+
peerTrackNode.peer.role,
|
|
43
|
+
'video'
|
|
44
|
+
);
|
|
45
|
+
|
|
46
|
+
const isAudioMuted = peerTrackNode.peer.audioTrack?.isMute();
|
|
47
|
+
const isVideoMuted = peerTrackNode.track?.isMute();
|
|
48
|
+
|
|
49
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
50
|
+
container: {
|
|
51
|
+
backgroundColor: theme.palette.surface_default,
|
|
52
|
+
},
|
|
53
|
+
iconWrapper: {
|
|
54
|
+
backgroundColor: theme.palette.surface_bright,
|
|
55
|
+
},
|
|
56
|
+
name: {
|
|
57
|
+
color: theme.palette.on_surface_high,
|
|
58
|
+
fontFamily: `${typography.font_family}-Regular`,
|
|
59
|
+
},
|
|
60
|
+
}));
|
|
61
|
+
|
|
62
|
+
return (
|
|
63
|
+
<View style={[styles.container, hmsRoomStyles.container]}>
|
|
64
|
+
<View style={styles.wrapper}>
|
|
65
|
+
{peerCanPublishAudio ? (
|
|
66
|
+
<View style={[styles.iconWrapper, hmsRoomStyles.iconWrapper]}>
|
|
67
|
+
<MicIcon muted={!!isAudioMuted} style={styles.icon} />
|
|
68
|
+
</View>
|
|
69
|
+
) : null}
|
|
70
|
+
|
|
71
|
+
{peerCanPublishVideo ? (
|
|
72
|
+
<View style={[styles.iconWrapper, hmsRoomStyles.iconWrapper]}>
|
|
73
|
+
<CameraIcon muted={!!isVideoMuted} style={styles.icon} />
|
|
74
|
+
</View>
|
|
75
|
+
) : null}
|
|
76
|
+
|
|
77
|
+
<Text style={[styles.name, hmsRoomStyles.name]} numberOfLines={1}>
|
|
78
|
+
{peerTrackNode.peer.isLocal ? 'You' : peerTrackNode.peer.name}
|
|
79
|
+
</Text>
|
|
80
|
+
</View>
|
|
81
|
+
|
|
82
|
+
<PressableIcon
|
|
83
|
+
border={false}
|
|
84
|
+
style={styles.maximizeBtn}
|
|
85
|
+
onPress={onMaximizePress}
|
|
86
|
+
>
|
|
87
|
+
<MaximizeIcon style={styles.maximizeIcon} />
|
|
88
|
+
</PressableIcon>
|
|
89
|
+
</View>
|
|
90
|
+
);
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
const styles = StyleSheet.create({
|
|
94
|
+
container: {
|
|
95
|
+
flex: 1,
|
|
96
|
+
flexDirection: 'row',
|
|
97
|
+
padding: 8,
|
|
98
|
+
alignItems: 'center',
|
|
99
|
+
justifyContent: 'space-between',
|
|
100
|
+
borderRadius: 8,
|
|
101
|
+
},
|
|
102
|
+
wrapper: {
|
|
103
|
+
flexDirection: 'row',
|
|
104
|
+
alignItems: 'center',
|
|
105
|
+
},
|
|
106
|
+
iconWrapper: {
|
|
107
|
+
padding: 2,
|
|
108
|
+
marginRight: 6,
|
|
109
|
+
borderRadius: 4,
|
|
110
|
+
},
|
|
111
|
+
icon: {
|
|
112
|
+
width: 16,
|
|
113
|
+
height: 16,
|
|
114
|
+
},
|
|
115
|
+
name: {
|
|
116
|
+
maxWidth: 48,
|
|
117
|
+
fontSize: 14,
|
|
118
|
+
lineHeight: 20,
|
|
119
|
+
letterSpacing: 0.25,
|
|
120
|
+
marginRight: 12,
|
|
121
|
+
},
|
|
122
|
+
maximizeBtn: {
|
|
123
|
+
padding: 0,
|
|
124
|
+
},
|
|
125
|
+
maximizeIcon: {
|
|
126
|
+
width: 20,
|
|
127
|
+
height: 20,
|
|
128
|
+
},
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
export const PeerMinimizedView = React.memo(_PeerMinimizedView);
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
View,
|
|
4
|
+
TouchableOpacity,
|
|
5
|
+
Text,
|
|
6
|
+
StyleSheet,
|
|
7
|
+
LayoutAnimation,
|
|
8
|
+
InteractionManager,
|
|
9
|
+
} from 'react-native';
|
|
3
10
|
import { batch, useDispatch, useSelector } from 'react-redux';
|
|
4
11
|
import { HMSTrack, HMSTrackSource } from '@100mslive/react-native-hms';
|
|
5
12
|
import Ionicons from 'react-native-vector-icons/Ionicons';
|
|
@@ -10,11 +17,15 @@ import { COLORS } from '../utils/theme';
|
|
|
10
17
|
import { ModalTypes } from '../utils/types';
|
|
11
18
|
import type { PeerTrackNode } from '../utils/types';
|
|
12
19
|
import { isTileOnSpotlight } from '../utils/functions';
|
|
13
|
-
import { setPeerToUpdate } from '../redux/actions';
|
|
14
|
-
import { useModalType } from '../hooks-util';
|
|
20
|
+
import { setInsetViewMinimized, setPeerToUpdate } from '../redux/actions';
|
|
21
|
+
import { useHMSRoomStyle, useModalType } from '../hooks-util';
|
|
22
|
+
import { MinimizeIcon, PinIcon, StarIcon } from '../Icons';
|
|
23
|
+
import { useCanPublishVideo } from '../hooks-sdk';
|
|
24
|
+
import { BottomSheet } from './BottomSheet';
|
|
15
25
|
|
|
16
26
|
interface PeerSettingsModalContentProps {
|
|
17
27
|
peerTrackNode: PeerTrackNode;
|
|
28
|
+
peerTrackNodesListEmpty: boolean;
|
|
18
29
|
cancelModal(): void;
|
|
19
30
|
onCaptureScreenShotPress(node: PeerTrackNode): void;
|
|
20
31
|
onCaptureImageAtMaxSupportedResolutionPress(node: PeerTrackNode): void;
|
|
@@ -25,6 +36,7 @@ export const PeerSettingsModalContent: React.FC<
|
|
|
25
36
|
PeerSettingsModalContentProps
|
|
26
37
|
> = ({
|
|
27
38
|
peerTrackNode,
|
|
39
|
+
peerTrackNodesListEmpty,
|
|
28
40
|
cancelModal,
|
|
29
41
|
onCaptureScreenShotPress,
|
|
30
42
|
onCaptureImageAtMaxSupportedResolutionPress,
|
|
@@ -43,6 +55,7 @@ export const PeerSettingsModalContent: React.FC<
|
|
|
43
55
|
);
|
|
44
56
|
const debugMode = useSelector((state: RootState) => state.user.debugMode);
|
|
45
57
|
const { handleModalVisibleType: setModalVisible } = useModalType();
|
|
58
|
+
const localPeerCanPublishVideo = useCanPublishVideo();
|
|
46
59
|
|
|
47
60
|
const removePeer = () => {
|
|
48
61
|
hmsInstance
|
|
@@ -79,10 +92,18 @@ export const PeerSettingsModalContent: React.FC<
|
|
|
79
92
|
);
|
|
80
93
|
};
|
|
81
94
|
|
|
82
|
-
const changeName = () => {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
95
|
+
// const changeName = () => {
|
|
96
|
+
// batch(() => {
|
|
97
|
+
// dispatch(setPeerToUpdate(peerTrackNode.peer));
|
|
98
|
+
// setModalVisible(ModalTypes.CHANGE_NAME, true);
|
|
99
|
+
// });
|
|
100
|
+
// };
|
|
101
|
+
|
|
102
|
+
const handleMinimizeVideoPress = () => {
|
|
103
|
+
cancelModal();
|
|
104
|
+
InteractionManager.runAfterInteractions(() => {
|
|
105
|
+
LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut);
|
|
106
|
+
dispatch(setInsetViewMinimized(true));
|
|
86
107
|
});
|
|
87
108
|
};
|
|
88
109
|
|
|
@@ -132,21 +153,46 @@ export const PeerSettingsModalContent: React.FC<
|
|
|
132
153
|
const isPeerVideoMute = peer.isLocal ? null : peer.videoTrack?.isMute();
|
|
133
154
|
|
|
134
155
|
return (
|
|
135
|
-
<View
|
|
136
|
-
<
|
|
137
|
-
{
|
|
138
|
-
{peer.isLocal ? ' (You)' : ''}
|
|
139
|
-
|
|
140
|
-
|
|
156
|
+
<View>
|
|
157
|
+
<BottomSheet.Header
|
|
158
|
+
dismissModal={cancelModal}
|
|
159
|
+
heading={peer.name + (peer.isLocal ? ' (You)' : '')}
|
|
160
|
+
subheading={peer.role?.name}
|
|
161
|
+
/>
|
|
162
|
+
|
|
163
|
+
<BottomSheet.Divider />
|
|
141
164
|
|
|
165
|
+
{/* Content */}
|
|
142
166
|
<View style={styles.contentContainer}>
|
|
143
|
-
{
|
|
167
|
+
{peer.isLocal ? ( // TODO: Remove this condition later
|
|
144
168
|
<SettingItem
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
169
|
+
customIcon={true}
|
|
170
|
+
text={true ? 'Pin Tile for Myself' : 'Unpin Tile for Myself'}
|
|
171
|
+
icon={<PinIcon style={styles.customIcon} />}
|
|
172
|
+
disabled={true}
|
|
173
|
+
onPress={() => {}}
|
|
174
|
+
/>
|
|
175
|
+
) : null}
|
|
176
|
+
|
|
177
|
+
<SettingItem
|
|
178
|
+
customIcon={true}
|
|
179
|
+
text={
|
|
180
|
+
onSpotlight
|
|
181
|
+
? 'Remove Spotlight for Everyone'
|
|
182
|
+
: 'Spotlight Tile for Everyone'
|
|
183
|
+
}
|
|
184
|
+
icon={<StarIcon style={styles.customIcon} />}
|
|
185
|
+
onPress={handleSpotlightPress}
|
|
186
|
+
disabled={!peerTrackNode.track?.trackId}
|
|
187
|
+
/>
|
|
188
|
+
|
|
189
|
+
{peer.isLocal && localPeerCanPublishVideo ? (
|
|
190
|
+
<SettingItem
|
|
191
|
+
customIcon={true}
|
|
192
|
+
text={'Minimize Your Video'}
|
|
193
|
+
icon={<MinimizeIcon style={styles.customIcon} />}
|
|
194
|
+
onPress={handleMinimizeVideoPress}
|
|
195
|
+
disabled={peerTrackNodesListEmpty}
|
|
150
196
|
/>
|
|
151
197
|
) : null}
|
|
152
198
|
|
|
@@ -209,16 +255,16 @@ export const PeerSettingsModalContent: React.FC<
|
|
|
209
255
|
/>
|
|
210
256
|
) : null}
|
|
211
257
|
|
|
212
|
-
{peer.isLocal ? (
|
|
258
|
+
{/* {peer.isLocal ? (
|
|
213
259
|
<SettingItem
|
|
214
260
|
text="Change Name"
|
|
215
261
|
IconType={MaterialCommunityIcons}
|
|
216
262
|
iconName={'account-edit-outline'}
|
|
217
263
|
onPress={() => changeName()}
|
|
218
264
|
/>
|
|
219
|
-
) : null}
|
|
265
|
+
) : null} */}
|
|
220
266
|
|
|
221
|
-
{localPeerPermissions?.changeRole ? (
|
|
267
|
+
{!peer.isLocal && localPeerPermissions?.changeRole ? (
|
|
222
268
|
<SettingItem
|
|
223
269
|
text="Change Role"
|
|
224
270
|
IconType={Ionicons}
|
|
@@ -273,68 +319,78 @@ export const PeerSettingsModalContent: React.FC<
|
|
|
273
319
|
);
|
|
274
320
|
};
|
|
275
321
|
|
|
276
|
-
|
|
322
|
+
type SettingItemBaseProps = {
|
|
277
323
|
onPress(): void;
|
|
278
324
|
text: string;
|
|
325
|
+
disabled?: boolean;
|
|
326
|
+
};
|
|
327
|
+
|
|
328
|
+
type SettingItemWithCustomIconProps = {
|
|
329
|
+
customIcon: true;
|
|
330
|
+
icon: React.ReactElement;
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
type SettingItemWithIconProps = {
|
|
334
|
+
customIcon?: false;
|
|
279
335
|
iconName: string;
|
|
280
336
|
IconType: any;
|
|
281
|
-
|
|
282
|
-
|
|
337
|
+
};
|
|
338
|
+
|
|
339
|
+
type SettingItemProps = SettingItemBaseProps &
|
|
340
|
+
(SettingItemWithCustomIconProps | SettingItemWithIconProps);
|
|
283
341
|
|
|
284
342
|
const SettingItem: React.FC<SettingItemProps> = ({
|
|
285
343
|
onPress,
|
|
286
344
|
text,
|
|
287
|
-
iconName,
|
|
288
|
-
IconType,
|
|
289
345
|
disabled = false,
|
|
346
|
+
...resetProps
|
|
290
347
|
}) => {
|
|
348
|
+
const textStyles = useHMSRoomStyle((theme, typography) => ({
|
|
349
|
+
color: theme.palette.on_surface_high,
|
|
350
|
+
fontFamily: `${typography.font_family}-SemiBold`,
|
|
351
|
+
}));
|
|
352
|
+
|
|
291
353
|
return (
|
|
292
354
|
<TouchableOpacity
|
|
293
355
|
disabled={disabled}
|
|
294
356
|
style={[styles.button, disabled ? { opacity: 0.6 } : null]}
|
|
295
357
|
onPress={onPress}
|
|
296
358
|
>
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
359
|
+
{resetProps.customIcon ? (
|
|
360
|
+
resetProps.icon
|
|
361
|
+
) : (
|
|
362
|
+
<resetProps.IconType
|
|
363
|
+
name={resetProps.iconName}
|
|
364
|
+
size={24}
|
|
365
|
+
style={styles.icon}
|
|
366
|
+
/>
|
|
367
|
+
)}
|
|
368
|
+
|
|
369
|
+
<Text style={[styles.text, textStyles]}>{text}</Text>
|
|
300
370
|
</TouchableOpacity>
|
|
301
371
|
);
|
|
302
372
|
};
|
|
303
373
|
|
|
304
374
|
const styles = StyleSheet.create({
|
|
305
|
-
container: {
|
|
306
|
-
padding: 24,
|
|
307
|
-
},
|
|
308
375
|
contentContainer: {
|
|
309
|
-
|
|
310
|
-
},
|
|
311
|
-
roleChangeModalHeading: {
|
|
312
|
-
color: COLORS.TEXT.HIGH_EMPHASIS,
|
|
313
|
-
fontSize: 20,
|
|
314
|
-
lineHeight: 24,
|
|
315
|
-
letterSpacing: 0.15,
|
|
316
|
-
fontFamily: 'Inter-Medium',
|
|
317
|
-
textTransform: 'capitalize',
|
|
376
|
+
marginBottom: 8,
|
|
318
377
|
},
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
letterSpacing: 0.4,
|
|
324
|
-
marginTop: 4,
|
|
325
|
-
fontFamily: 'Inter-Regular',
|
|
326
|
-
textTransform: 'capitalize',
|
|
378
|
+
customIcon: {
|
|
379
|
+
width: 20,
|
|
380
|
+
height: 20,
|
|
381
|
+
marginRight: 8,
|
|
327
382
|
},
|
|
328
383
|
button: {
|
|
329
384
|
flexDirection: 'row',
|
|
330
385
|
alignItems: 'center',
|
|
331
|
-
|
|
386
|
+
paddingVertical: 16,
|
|
387
|
+
paddingHorizontal: 24,
|
|
388
|
+
marginBottom: 8,
|
|
332
389
|
},
|
|
333
390
|
text: {
|
|
334
|
-
fontFamily: 'Inter-Medium',
|
|
335
391
|
fontSize: 14,
|
|
336
|
-
lineHeight:
|
|
337
|
-
|
|
392
|
+
lineHeight: 20,
|
|
393
|
+
letterSpacing: 0.1,
|
|
338
394
|
},
|
|
339
395
|
icon: {
|
|
340
396
|
color: COLORS.WHITE,
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { StyleSheet, Text, View } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { PersonIcon } from '../../Icons';
|
|
5
|
+
import { getInitials } from '../../utils/functions';
|
|
6
|
+
import { COLORS } from '../../utils/theme';
|
|
7
|
+
import type { VideoView } from './VideoView';
|
|
8
|
+
import { useHMSRoomStyleSheet } from '../../hooks-util';
|
|
9
|
+
|
|
10
|
+
export interface AvatarViewProps {
|
|
11
|
+
name: string;
|
|
12
|
+
videoView: React.ReactElement<typeof VideoView> | null;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const _AvatarView: React.FC<AvatarViewProps> = ({ name, videoView }) => {
|
|
16
|
+
const showInitials = !!name && name.length > 0;
|
|
17
|
+
|
|
18
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
19
|
+
avatarContainer: {
|
|
20
|
+
backgroundColor: theme.palette.surface_default,
|
|
21
|
+
},
|
|
22
|
+
avatar: {
|
|
23
|
+
backgroundColor: COLORS.EXTENDED.PURPLE,
|
|
24
|
+
},
|
|
25
|
+
avatarText: {
|
|
26
|
+
color: theme.palette.on_surface_high,
|
|
27
|
+
fontFamily: `${typography.font_family}-SemiBold`,
|
|
28
|
+
},
|
|
29
|
+
}));
|
|
30
|
+
|
|
31
|
+
return (
|
|
32
|
+
<View style={styles.container}>
|
|
33
|
+
{videoView || (
|
|
34
|
+
<View style={[styles.avatarContainer, hmsRoomStyles.avatarContainer]}>
|
|
35
|
+
<View style={[styles.avatar, hmsRoomStyles.avatar]}>
|
|
36
|
+
{showInitials ? (
|
|
37
|
+
<Text style={[styles.avatarText, hmsRoomStyles.avatarText]}>
|
|
38
|
+
{getInitials(name)}
|
|
39
|
+
</Text>
|
|
40
|
+
) : (
|
|
41
|
+
<PersonIcon style={styles.avatarIcon} />
|
|
42
|
+
)}
|
|
43
|
+
</View>
|
|
44
|
+
</View>
|
|
45
|
+
)}
|
|
46
|
+
</View>
|
|
47
|
+
);
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
const styles = StyleSheet.create({
|
|
51
|
+
container: {
|
|
52
|
+
flex: 1,
|
|
53
|
+
position: 'relative',
|
|
54
|
+
overflow: 'hidden',
|
|
55
|
+
},
|
|
56
|
+
avatarContainer: {
|
|
57
|
+
flex: 1,
|
|
58
|
+
alignItems: 'center',
|
|
59
|
+
justifyContent: 'center',
|
|
60
|
+
},
|
|
61
|
+
avatar: {
|
|
62
|
+
width: 88,
|
|
63
|
+
aspectRatio: 1,
|
|
64
|
+
borderRadius: 44,
|
|
65
|
+
justifyContent: 'center',
|
|
66
|
+
alignItems: 'center',
|
|
67
|
+
},
|
|
68
|
+
avatarIcon: {
|
|
69
|
+
width: 40,
|
|
70
|
+
height: 40,
|
|
71
|
+
},
|
|
72
|
+
avatarText: {
|
|
73
|
+
fontSize: 34,
|
|
74
|
+
lineHeight: 40,
|
|
75
|
+
letterSpacing: 0.25,
|
|
76
|
+
},
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
export const AvatarView = React.memo(_AvatarView);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { StyleSheet, View } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { MicIcon } from '../../Icons';
|
|
5
|
+
import { useHMSRoomStyle } from '../../hooks-util';
|
|
6
|
+
|
|
7
|
+
export interface PeerAudioMutedIndicatorProps {
|
|
8
|
+
isMuted: boolean | undefined;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const PeerAudioMutedIndicator: React.FC<
|
|
12
|
+
PeerAudioMutedIndicatorProps
|
|
13
|
+
> = ({ isMuted }) => {
|
|
14
|
+
const iconWrapperStyles = useHMSRoomStyle((theme) => ({
|
|
15
|
+
backgroundColor: theme.palette.secondary_dim,
|
|
16
|
+
}));
|
|
17
|
+
|
|
18
|
+
if (isMuted) {
|
|
19
|
+
return (
|
|
20
|
+
<View style={[styles.iconWrapper, iconWrapperStyles]}>
|
|
21
|
+
<MicIcon muted={true} style={styles.icon} />
|
|
22
|
+
</View>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
return null;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
const styles = StyleSheet.create({
|
|
30
|
+
iconWrapper: {
|
|
31
|
+
position: 'absolute',
|
|
32
|
+
top: 8,
|
|
33
|
+
right: 8,
|
|
34
|
+
padding: 8,
|
|
35
|
+
borderRadius: 16,
|
|
36
|
+
},
|
|
37
|
+
icon: {
|
|
38
|
+
width: 16,
|
|
39
|
+
height: 16,
|
|
40
|
+
},
|
|
41
|
+
});
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { StyleSheet, View } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { parseMetadata } from '../../utils/functions';
|
|
5
|
+
import { BRBIcon, HandIcon } from '../../Icons';
|
|
6
|
+
import { useHMSRoomStyle } from '../../hooks-util';
|
|
7
|
+
|
|
8
|
+
export interface PeerMetadataProps {
|
|
9
|
+
metadata: string | undefined;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const PeerMetadata: React.FC<PeerMetadataProps> = ({ metadata }) => {
|
|
13
|
+
const parsedMetadata = parseMetadata(metadata);
|
|
14
|
+
|
|
15
|
+
const iconWrapperStyles = useHMSRoomStyle((theme) => ({
|
|
16
|
+
backgroundColor: theme.palette.secondary_dim,
|
|
17
|
+
}));
|
|
18
|
+
|
|
19
|
+
if (parsedMetadata.isBRBOn) {
|
|
20
|
+
return (
|
|
21
|
+
<View style={[styles.iconWrapper, iconWrapperStyles]}>
|
|
22
|
+
<BRBIcon />
|
|
23
|
+
</View>
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
if (parsedMetadata.isHandRaised) {
|
|
28
|
+
return (
|
|
29
|
+
<View style={[styles.iconWrapper, iconWrapperStyles]}>
|
|
30
|
+
<HandIcon />
|
|
31
|
+
</View>
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return null;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
const styles = StyleSheet.create({
|
|
39
|
+
iconWrapper: {
|
|
40
|
+
position: 'absolute',
|
|
41
|
+
top: 8,
|
|
42
|
+
left: 8,
|
|
43
|
+
padding: 4,
|
|
44
|
+
borderRadius: 16,
|
|
45
|
+
},
|
|
46
|
+
});
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { StyleSheet, Text, View } from 'react-native';
|
|
3
|
+
import { HMSTrackSource } from '@100mslive/react-native-hms';
|
|
4
|
+
|
|
5
|
+
import { hexToRgbA } from '../../utils/theme';
|
|
6
|
+
import { NetworkQualityIcon } from '../../Icons';
|
|
7
|
+
import { useHMSRoomStyleSheet } from '../../hooks-util';
|
|
8
|
+
|
|
9
|
+
export interface PeerNameAndNetworkProps {
|
|
10
|
+
name: string;
|
|
11
|
+
isLocal: boolean | undefined;
|
|
12
|
+
trackSource: HMSTrackSource | undefined;
|
|
13
|
+
networkQuality: number | undefined;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const PeerNameAndNetwork: React.FC<PeerNameAndNetworkProps> = ({
|
|
17
|
+
name,
|
|
18
|
+
isLocal,
|
|
19
|
+
trackSource,
|
|
20
|
+
networkQuality,
|
|
21
|
+
}) => {
|
|
22
|
+
const showTrackSource = trackSource && trackSource !== HMSTrackSource.REGULAR;
|
|
23
|
+
|
|
24
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
25
|
+
contentContainer: {
|
|
26
|
+
backgroundColor: hexToRgbA(theme.palette.background_dim, 0.64),
|
|
27
|
+
},
|
|
28
|
+
name: {
|
|
29
|
+
color: theme.palette.on_surface_high,
|
|
30
|
+
fontFamily: `${typography.font_family}-Regular`,
|
|
31
|
+
},
|
|
32
|
+
}));
|
|
33
|
+
|
|
34
|
+
return (
|
|
35
|
+
<View style={styles.container}>
|
|
36
|
+
<View style={[styles.contentContainer, hmsRoomStyles.contentContainer]}>
|
|
37
|
+
<Text
|
|
38
|
+
style={[styles.name, hmsRoomStyles.name]}
|
|
39
|
+
numberOfLines={1}
|
|
40
|
+
ellipsizeMode={showTrackSource ? 'middle' : 'tail'}
|
|
41
|
+
>
|
|
42
|
+
{name}
|
|
43
|
+
{isLocal ? ' (You)' : ''}
|
|
44
|
+
{showTrackSource ? `'s ${trackSource}` : ''}
|
|
45
|
+
</Text>
|
|
46
|
+
|
|
47
|
+
<NetworkQualityIcon
|
|
48
|
+
quality={networkQuality}
|
|
49
|
+
style={styles.networkIcon}
|
|
50
|
+
/>
|
|
51
|
+
</View>
|
|
52
|
+
</View>
|
|
53
|
+
);
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
const styles = StyleSheet.create({
|
|
57
|
+
container: {
|
|
58
|
+
position: 'absolute',
|
|
59
|
+
bottom: 8,
|
|
60
|
+
width: '100%',
|
|
61
|
+
flexDirection: 'row',
|
|
62
|
+
},
|
|
63
|
+
contentContainer: {
|
|
64
|
+
flexDirection: 'row',
|
|
65
|
+
paddingVertical: 4,
|
|
66
|
+
paddingHorizontal: 8,
|
|
67
|
+
borderRadius: 8,
|
|
68
|
+
marginLeft: 8, // left offset
|
|
69
|
+
marginRight: 20 + 4 + 44, // network icon width + network icon left margin + 3 dots button width and horizontal margins
|
|
70
|
+
},
|
|
71
|
+
name: {
|
|
72
|
+
flexGrow: 1,
|
|
73
|
+
flexShrink: 1,
|
|
74
|
+
fontSize: 14,
|
|
75
|
+
lineHeight: 20,
|
|
76
|
+
letterSpacing: 0.25,
|
|
77
|
+
},
|
|
78
|
+
networkIcon: {
|
|
79
|
+
marginLeft: 4,
|
|
80
|
+
},
|
|
81
|
+
});
|