@100mslive/react-native-room-kit 0.0.4 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +413 -11
- package/lib/commonjs/HMSInstanceSetup.js +2 -1
- package/lib/commonjs/HMSInstanceSetup.js.map +1 -1
- package/lib/commonjs/HMSPrebuilt.js +4 -2
- package/lib/commonjs/HMSPrebuilt.js.map +1 -1
- package/lib/commonjs/HMSRoomSetup.js +39 -8
- package/lib/commonjs/HMSRoomSetup.js.map +1 -1
- package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle.png +0 -0
- package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle@2x.png +0 -0
- package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle@3x.png +0 -0
- package/lib/commonjs/Icons/AlertTriangle/index.js +34 -0
- package/lib/commonjs/Icons/AlertTriangle/index.js.map +1 -0
- package/lib/commonjs/Icons/AnswerPhone/index.js +5 -1
- package/lib/commonjs/Icons/AnswerPhone/index.js.map +1 -1
- package/lib/commonjs/Icons/BRB/assets/BRB.png +0 -0
- package/lib/commonjs/Icons/BRB/assets/BRB@2x.png +0 -0
- package/lib/commonjs/Icons/BRB/assets/BRB@3x.png +0 -0
- package/lib/commonjs/Icons/BRB/index.js +35 -0
- package/lib/commonjs/Icons/BRB/index.js.map +1 -0
- package/lib/commonjs/Icons/Bluetooth/index.js +5 -1
- package/lib/commonjs/Icons/Bluetooth/index.js.map +1 -1
- package/lib/commonjs/Icons/Camera/index.js +5 -1
- package/lib/commonjs/Icons/Camera/index.js.map +1 -1
- package/lib/commonjs/Icons/Chat/index.js +5 -1
- package/lib/commonjs/Icons/Chat/index.js.map +1 -1
- package/lib/commonjs/Icons/Check/index.js +5 -1
- package/lib/commonjs/Icons/Check/index.js.map +1 -1
- package/lib/commonjs/Icons/Chevron/index.js +5 -1
- package/lib/commonjs/Icons/Chevron/index.js.map +1 -1
- package/lib/commonjs/Icons/Close/index.js +5 -1
- package/lib/commonjs/Icons/Close/index.js.map +1 -1
- package/lib/commonjs/Icons/Hamburger/assets/hamburger.png +0 -0
- package/lib/commonjs/Icons/Hamburger/assets/hamburger@2x.png +0 -0
- package/lib/commonjs/Icons/Hamburger/assets/hamburger@3x.png +0 -0
- package/lib/commonjs/Icons/Hamburger/index.js +34 -0
- package/lib/commonjs/Icons/Hamburger/index.js.map +1 -0
- package/lib/commonjs/Icons/Hand/index.js +6 -4
- package/lib/commonjs/Icons/Hand/index.js.map +1 -1
- package/lib/commonjs/Icons/Headphones/index.js +5 -1
- package/lib/commonjs/Icons/Headphones/index.js.map +1 -1
- package/lib/commonjs/Icons/Maximize/assets/maximize.png +0 -0
- package/lib/commonjs/Icons/Maximize/assets/maximize@2x.png +0 -0
- package/lib/commonjs/Icons/Maximize/assets/maximize@3x.png +0 -0
- package/lib/commonjs/Icons/Maximize/index.js +34 -0
- package/lib/commonjs/Icons/Maximize/index.js.map +1 -0
- package/lib/commonjs/Icons/Mic/index.js +5 -1
- package/lib/commonjs/Icons/Mic/index.js.map +1 -1
- package/lib/commonjs/Icons/Minimize/assets/minimize.png +0 -0
- package/lib/commonjs/Icons/Minimize/assets/minimize@2x.png +0 -0
- package/lib/commonjs/Icons/Minimize/assets/minimize@3x.png +0 -0
- package/lib/commonjs/Icons/Minimize/index.js +34 -0
- package/lib/commonjs/Icons/Minimize/index.js.map +1 -0
- package/lib/commonjs/Icons/Participants/index.js +5 -1
- package/lib/commonjs/Icons/Participants/index.js.map +1 -1
- package/lib/commonjs/Icons/Pencil/assets/pencil.png +0 -0
- package/lib/commonjs/Icons/Pencil/assets/pencil@2x.png +0 -0
- package/lib/commonjs/Icons/Pencil/assets/pencil@3x.png +0 -0
- package/lib/commonjs/Icons/Pencil/index.js +34 -0
- package/lib/commonjs/Icons/Pencil/index.js.map +1 -0
- package/lib/commonjs/Icons/Pin/assets/pin.png +0 -0
- package/lib/commonjs/Icons/Pin/assets/pin@2x.png +0 -0
- package/lib/commonjs/Icons/Pin/assets/pin@3x.png +0 -0
- package/lib/commonjs/Icons/Pin/index.js +34 -0
- package/lib/commonjs/Icons/Pin/index.js.map +1 -0
- package/lib/commonjs/Icons/Radio/assets/radio-xlarge.png +0 -0
- package/lib/commonjs/Icons/Radio/assets/radio-xlarge@2x.png +0 -0
- package/lib/commonjs/Icons/Radio/assets/radio-xlarge@3x.png +0 -0
- package/lib/commonjs/Icons/Radio/index.js +29 -1
- package/lib/commonjs/Icons/Radio/index.js.map +1 -1
- package/lib/commonjs/Icons/Recording/assets/recording.png +0 -0
- package/lib/commonjs/Icons/Recording/assets/recording@2x.png +0 -0
- package/lib/commonjs/Icons/Recording/assets/recording@3x.png +0 -0
- package/lib/commonjs/Icons/Recording/index.js +34 -0
- package/lib/commonjs/Icons/Recording/index.js.map +1 -0
- package/lib/commonjs/Icons/RotateCamera/index.js +5 -1
- package/lib/commonjs/Icons/RotateCamera/index.js.map +1 -1
- package/lib/commonjs/Icons/ScreenShare/index.js +5 -1
- package/lib/commonjs/Icons/ScreenShare/index.js.map +1 -1
- package/lib/commonjs/Icons/Speaker/index.js +5 -1
- package/lib/commonjs/Icons/Speaker/index.js.map +1 -1
- package/lib/commonjs/Icons/Star/assets/star.png +0 -0
- package/lib/commonjs/Icons/Star/assets/star@2x.png +0 -0
- package/lib/commonjs/Icons/Star/assets/star@3x.png +0 -0
- package/lib/commonjs/Icons/Star/index.js +34 -0
- package/lib/commonjs/Icons/Star/index.js.map +1 -0
- package/lib/commonjs/Icons/Stop/assets/stop.png +0 -0
- package/lib/commonjs/Icons/Stop/assets/stop@2x.png +0 -0
- package/lib/commonjs/Icons/Stop/assets/stop@3x.png +0 -0
- package/lib/commonjs/Icons/Stop/index.js +34 -0
- package/lib/commonjs/Icons/Stop/index.js.map +1 -0
- package/lib/commonjs/Icons/ThreeDots/index.js +5 -1
- package/lib/commonjs/Icons/ThreeDots/index.js.map +1 -1
- package/lib/commonjs/Icons/Wave/index.js +5 -1
- package/lib/commonjs/Icons/Wave/index.js.map +1 -1
- package/lib/commonjs/Icons/index.js +110 -0
- package/lib/commonjs/Icons/index.js.map +1 -1
- package/lib/commonjs/components/AvatarView.js +1 -2
- package/lib/commonjs/components/AvatarView.js.map +1 -1
- package/lib/commonjs/components/BackButton.js +6 -4
- package/lib/commonjs/components/BackButton.js.map +1 -1
- package/lib/commonjs/components/BottomSheet.js +157 -0
- package/lib/commonjs/components/BottomSheet.js.map +1 -0
- package/lib/commonjs/components/ChangeNameModalContent.js +131 -0
- package/lib/commonjs/components/ChangeNameModalContent.js.map +1 -0
- package/lib/commonjs/components/CompanyLogo.js +38 -0
- package/lib/commonjs/components/CompanyLogo.js.map +1 -0
- package/lib/commonjs/components/CustomInput.js +2 -3
- package/lib/commonjs/components/CustomInput.js.map +1 -1
- package/lib/commonjs/components/DisplayView.js +15 -54
- package/lib/commonjs/components/DisplayView.js.map +1 -1
- package/lib/commonjs/components/EndRoomModalContent.js +85 -0
- package/lib/commonjs/components/EndRoomModalContent.js.map +1 -0
- package/lib/commonjs/components/Footer.js +17 -13
- package/lib/commonjs/components/Footer.js.map +1 -1
- package/lib/commonjs/components/GridView.js +53 -7
- package/lib/commonjs/components/GridView.js.map +1 -1
- package/lib/commonjs/components/HMSBaseButton.js +66 -0
- package/lib/commonjs/components/HMSBaseButton.js.map +1 -0
- package/lib/commonjs/components/HMSDangerButton.js +53 -0
- package/lib/commonjs/components/HMSDangerButton.js.map +1 -0
- package/lib/commonjs/components/HMSHLSNotStarted.js +27 -19
- package/lib/commonjs/components/HMSHLSNotStarted.js.map +1 -1
- package/lib/commonjs/components/HMSHLSStreamLoading.js +17 -8
- package/lib/commonjs/components/HMSHLSStreamLoading.js.map +1 -1
- package/lib/commonjs/components/HMSManageAudioOutput.js +41 -75
- package/lib/commonjs/components/HMSManageAudioOutput.js.map +1 -1
- package/lib/commonjs/components/HMSManageCameraRotation.js +5 -4
- package/lib/commonjs/components/HMSManageCameraRotation.js.map +1 -1
- package/lib/commonjs/components/HMSManageLeave.js +101 -128
- package/lib/commonjs/components/HMSManageLeave.js.map +1 -1
- package/lib/commonjs/components/HMSManageLocalAudio.js +1 -9
- package/lib/commonjs/components/HMSManageLocalAudio.js.map +1 -1
- package/lib/commonjs/components/HMSManageLocalVideo.js +1 -9
- package/lib/commonjs/components/HMSManageLocalVideo.js.map +1 -1
- package/lib/commonjs/components/HMSManageRaiseHand.js +2 -15
- package/lib/commonjs/components/HMSManageRaiseHand.js.map +1 -1
- package/lib/commonjs/components/HMSMeetingEnded.js +1 -2
- package/lib/commonjs/components/HMSMeetingEnded.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewEditName.js +3 -37
- package/lib/commonjs/components/HMSPreviewEditName.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js +17 -10
- package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewJoinButton.js +23 -46
- package/lib/commonjs/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewNetworkQuality.js +5 -3
- package/lib/commonjs/components/HMSPreviewNetworkQuality.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewPeersList.js +21 -10
- package/lib/commonjs/components/HMSPreviewPeersList.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewSubtitle.js +22 -9
- package/lib/commonjs/components/HMSPreviewSubtitle.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewTile.js +16 -8
- package/lib/commonjs/components/HMSPreviewTile.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewTitle.js +14 -6
- package/lib/commonjs/components/HMSPreviewTitle.js.map +1 -1
- package/lib/commonjs/components/HMSPrimaryButton.js +53 -0
- package/lib/commonjs/components/HMSPrimaryButton.js.map +1 -0
- package/lib/commonjs/components/HMSRecordingIndicator.js +46 -0
- package/lib/commonjs/components/HMSRecordingIndicator.js.map +1 -0
- package/lib/commonjs/components/HMSRoomOptions.js +20 -7
- package/lib/commonjs/components/HMSRoomOptions.js.map +1 -1
- package/lib/commonjs/components/HMSShowNetworkQuality.js +5 -4
- package/lib/commonjs/components/HMSShowNetworkQuality.js.map +1 -1
- package/lib/commonjs/components/HMSTextInput.js +66 -0
- package/lib/commonjs/components/HMSTextInput.js.map +1 -0
- package/lib/commonjs/components/Header.js +30 -30
- package/lib/commonjs/components/Header.js.map +1 -1
- package/lib/commonjs/components/LocalPeerRegularVideoView.js +26 -0
- package/lib/commonjs/components/LocalPeerRegularVideoView.js.map +1 -0
- package/lib/commonjs/components/LocalPeerScreenshareView.js +76 -0
- package/lib/commonjs/components/LocalPeerScreenshareView.js.map +1 -0
- package/lib/commonjs/components/Meeting.js +8 -3
- package/lib/commonjs/components/Meeting.js.map +1 -1
- package/lib/commonjs/components/MeetingScreenContent.js +2 -1
- package/lib/commonjs/components/MeetingScreenContent.js.map +1 -1
- package/lib/commonjs/components/MiniView.js +163 -0
- package/lib/commonjs/components/MiniView.js.map +1 -0
- package/lib/commonjs/components/Modals.js +31 -116
- package/lib/commonjs/components/Modals.js.map +1 -1
- package/lib/commonjs/components/PaginationDots.js +56 -0
- package/lib/commonjs/components/PaginationDots.js.map +1 -0
- package/lib/commonjs/components/ParticipantsCount.js +55 -0
- package/lib/commonjs/components/ParticipantsCount.js.map +1 -0
- package/lib/commonjs/components/PeerMinimizedView.js +114 -0
- package/lib/commonjs/components/PeerMinimizedView.js.map +1 -0
- package/lib/commonjs/components/PeerSettingsModalContent.js +68 -51
- package/lib/commonjs/components/PeerSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/AvatarView.js +76 -0
- package/lib/commonjs/components/PeerVideoTile/AvatarView.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/PeerAudioMutedIndicator.js +44 -0
- package/lib/commonjs/components/PeerVideoTile/PeerAudioMutedIndicator.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js +44 -0
- package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js +74 -0
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js +146 -0
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/VideoView.js +84 -0
- package/lib/commonjs/components/PeerVideoTile/VideoView.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/index.js +2 -0
- package/lib/commonjs/components/PeerVideoTile/index.js.map +1 -0
- package/lib/commonjs/components/PressableIcon.js +15 -8
- package/lib/commonjs/components/PressableIcon.js.map +1 -1
- package/lib/commonjs/components/Preview.js +19 -6
- package/lib/commonjs/components/Preview.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalContent.js +233 -362
- package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js +295 -0
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js.map +1 -0
- package/lib/commonjs/components/StatusBar.js +7 -5
- package/lib/commonjs/components/StatusBar.js.map +1 -1
- package/lib/commonjs/components/StopRecordingModalContent.js +97 -0
- package/lib/commonjs/components/StopRecordingModalContent.js.map +1 -0
- package/lib/commonjs/components/Tile.js +29 -90
- package/lib/commonjs/components/Tile.js.map +1 -1
- package/lib/commonjs/components/TilesContainer.js +99 -10
- package/lib/commonjs/components/TilesContainer.js.map +1 -1
- package/lib/commonjs/components/UnmountAfterDelay.js +48 -0
- package/lib/commonjs/components/UnmountAfterDelay.js.map +1 -0
- package/lib/commonjs/components/WebrtcView.js +51 -0
- package/lib/commonjs/components/WebrtcView.js.map +1 -0
- package/lib/commonjs/components/WelcomeInMeeting.js +54 -0
- package/lib/commonjs/components/WelcomeInMeeting.js.map +1 -0
- package/lib/commonjs/hooks-sdk-selectors.js +6 -1
- package/lib/commonjs/hooks-sdk-selectors.js.map +1 -1
- package/lib/commonjs/hooks-sdk.js +16 -1
- package/lib/commonjs/hooks-sdk.js.map +1 -1
- package/lib/commonjs/hooks-util-selectors.js +8 -2
- package/lib/commonjs/hooks-util-selectors.js.map +1 -1
- package/lib/commonjs/hooks-util.js +315 -93
- package/lib/commonjs/hooks-util.js.map +1 -1
- package/lib/commonjs/modules/HMSManager.js +23 -0
- package/lib/commonjs/modules/HMSManager.js.map +1 -0
- package/lib/commonjs/modules/parser.js +22 -0
- package/lib/commonjs/modules/parser.js.map +1 -0
- package/lib/commonjs/peerTrackNodeUtils.js +8 -3
- package/lib/commonjs/peerTrackNodeUtils.js.map +1 -1
- package/lib/commonjs/redux/actionTypes.js +16 -1
- package/lib/commonjs/redux/actionTypes.js.map +1 -1
- package/lib/commonjs/redux/actions/index.js +51 -1
- package/lib/commonjs/redux/actions/index.js.map +1 -1
- package/lib/commonjs/redux/reducers/appState.js +57 -1
- package/lib/commonjs/redux/reducers/appState.js.map +1 -1
- package/lib/commonjs/redux/reducers/hmsStates.js +7 -1
- package/lib/commonjs/redux/reducers/hmsStates.js.map +1 -1
- package/lib/commonjs/redux/reducers/userState.js +3 -1
- package/lib/commonjs/redux/reducers/userState.js.map +1 -1
- package/lib/commonjs/utils/functions.js +51 -1
- package/lib/commonjs/utils/functions.js.map +1 -1
- package/lib/commonjs/utils/theme.js +62 -8
- package/lib/commonjs/utils/theme.js.map +1 -1
- package/lib/commonjs/utils/types.js +8 -1
- package/lib/commonjs/utils/types.js.map +1 -1
- package/lib/module/HMSInstanceSetup.js +2 -1
- package/lib/module/HMSInstanceSetup.js.map +1 -1
- package/lib/module/HMSPrebuilt.js +4 -2
- package/lib/module/HMSPrebuilt.js.map +1 -1
- package/lib/module/HMSRoomSetup.js +41 -10
- package/lib/module/HMSRoomSetup.js.map +1 -1
- package/lib/module/Icons/AlertTriangle/assets/alert-triangle.png +0 -0
- package/lib/module/Icons/AlertTriangle/assets/alert-triangle@2x.png +0 -0
- package/lib/module/Icons/AlertTriangle/assets/alert-triangle@3x.png +0 -0
- package/lib/module/Icons/AlertTriangle/index.js +26 -0
- package/lib/module/Icons/AlertTriangle/index.js.map +1 -0
- package/lib/module/Icons/AnswerPhone/index.js +5 -1
- package/lib/module/Icons/AnswerPhone/index.js.map +1 -1
- package/lib/module/Icons/BRB/assets/BRB.png +0 -0
- package/lib/module/Icons/BRB/assets/BRB@2x.png +0 -0
- package/lib/module/Icons/BRB/assets/BRB@3x.png +0 -0
- package/lib/module/Icons/BRB/index.js +27 -0
- package/lib/module/Icons/BRB/index.js.map +1 -0
- package/lib/module/Icons/Bluetooth/index.js +5 -1
- package/lib/module/Icons/Bluetooth/index.js.map +1 -1
- package/lib/module/Icons/Camera/index.js +5 -1
- package/lib/module/Icons/Camera/index.js.map +1 -1
- package/lib/module/Icons/Chat/index.js +5 -1
- package/lib/module/Icons/Chat/index.js.map +1 -1
- package/lib/module/Icons/Check/index.js +5 -1
- package/lib/module/Icons/Check/index.js.map +1 -1
- package/lib/module/Icons/Chevron/index.js +5 -1
- package/lib/module/Icons/Chevron/index.js.map +1 -1
- package/lib/module/Icons/Close/index.js +5 -1
- package/lib/module/Icons/Close/index.js.map +1 -1
- package/lib/module/Icons/Hamburger/assets/hamburger.png +0 -0
- package/lib/module/Icons/Hamburger/assets/hamburger@2x.png +0 -0
- package/lib/module/Icons/Hamburger/assets/hamburger@3x.png +0 -0
- package/lib/module/Icons/Hamburger/index.js +26 -0
- package/lib/module/Icons/Hamburger/index.js.map +1 -0
- package/lib/module/Icons/Hand/index.js +6 -4
- package/lib/module/Icons/Hand/index.js.map +1 -1
- package/lib/module/Icons/Headphones/index.js +5 -1
- package/lib/module/Icons/Headphones/index.js.map +1 -1
- package/lib/module/Icons/Maximize/assets/maximize.png +0 -0
- package/lib/module/Icons/Maximize/assets/maximize@2x.png +0 -0
- package/lib/module/Icons/Maximize/assets/maximize@3x.png +0 -0
- package/lib/module/Icons/Maximize/index.js +26 -0
- package/lib/module/Icons/Maximize/index.js.map +1 -0
- package/lib/module/Icons/Mic/index.js +5 -1
- package/lib/module/Icons/Mic/index.js.map +1 -1
- package/lib/module/Icons/Minimize/assets/minimize.png +0 -0
- package/lib/module/Icons/Minimize/assets/minimize@2x.png +0 -0
- package/lib/module/Icons/Minimize/assets/minimize@3x.png +0 -0
- package/lib/module/Icons/Minimize/index.js +26 -0
- package/lib/module/Icons/Minimize/index.js.map +1 -0
- package/lib/module/Icons/Participants/index.js +5 -1
- package/lib/module/Icons/Participants/index.js.map +1 -1
- package/lib/module/Icons/Pencil/assets/pencil.png +0 -0
- package/lib/module/Icons/Pencil/assets/pencil@2x.png +0 -0
- package/lib/module/Icons/Pencil/assets/pencil@3x.png +0 -0
- package/lib/module/Icons/Pencil/index.js +26 -0
- package/lib/module/Icons/Pencil/index.js.map +1 -0
- package/lib/module/Icons/Pin/assets/pin.png +0 -0
- package/lib/module/Icons/Pin/assets/pin@2x.png +0 -0
- package/lib/module/Icons/Pin/assets/pin@3x.png +0 -0
- package/lib/module/Icons/Pin/index.js +26 -0
- package/lib/module/Icons/Pin/index.js.map +1 -0
- package/lib/module/Icons/Radio/assets/radio-xlarge.png +0 -0
- package/lib/module/Icons/Radio/assets/radio-xlarge@2x.png +0 -0
- package/lib/module/Icons/Radio/assets/radio-xlarge@3x.png +0 -0
- package/lib/module/Icons/Radio/index.js +30 -2
- package/lib/module/Icons/Radio/index.js.map +1 -1
- package/lib/module/Icons/Recording/assets/recording.png +0 -0
- package/lib/module/Icons/Recording/assets/recording@2x.png +0 -0
- package/lib/module/Icons/Recording/assets/recording@3x.png +0 -0
- package/lib/module/Icons/Recording/index.js +26 -0
- package/lib/module/Icons/Recording/index.js.map +1 -0
- package/lib/module/Icons/RotateCamera/index.js +5 -1
- package/lib/module/Icons/RotateCamera/index.js.map +1 -1
- package/lib/module/Icons/ScreenShare/index.js +5 -1
- package/lib/module/Icons/ScreenShare/index.js.map +1 -1
- package/lib/module/Icons/Speaker/index.js +5 -1
- package/lib/module/Icons/Speaker/index.js.map +1 -1
- package/lib/module/Icons/Star/assets/star.png +0 -0
- package/lib/module/Icons/Star/assets/star@2x.png +0 -0
- package/lib/module/Icons/Star/assets/star@3x.png +0 -0
- package/lib/module/Icons/Star/index.js +26 -0
- package/lib/module/Icons/Star/index.js.map +1 -0
- package/lib/module/Icons/Stop/assets/stop.png +0 -0
- package/lib/module/Icons/Stop/assets/stop@2x.png +0 -0
- package/lib/module/Icons/Stop/assets/stop@3x.png +0 -0
- package/lib/module/Icons/Stop/index.js +26 -0
- package/lib/module/Icons/Stop/index.js.map +1 -0
- package/lib/module/Icons/ThreeDots/index.js +5 -1
- package/lib/module/Icons/ThreeDots/index.js.map +1 -1
- package/lib/module/Icons/Wave/index.js +5 -1
- package/lib/module/Icons/Wave/index.js.map +1 -1
- package/lib/module/Icons/index.js +10 -0
- package/lib/module/Icons/index.js.map +1 -1
- package/lib/module/components/AvatarView.js +1 -2
- package/lib/module/components/AvatarView.js.map +1 -1
- package/lib/module/components/BackButton.js +6 -4
- package/lib/module/components/BackButton.js.map +1 -1
- package/lib/module/components/BottomSheet.js +146 -0
- package/lib/module/components/BottomSheet.js.map +1 -0
- package/lib/module/components/ChangeNameModalContent.js +122 -0
- package/lib/module/components/ChangeNameModalContent.js.map +1 -0
- package/lib/module/components/CompanyLogo.js +30 -0
- package/lib/module/components/CompanyLogo.js.map +1 -0
- package/lib/module/components/CustomInput.js +2 -3
- package/lib/module/components/CustomInput.js.map +1 -1
- package/lib/module/components/DisplayView.js +19 -57
- package/lib/module/components/DisplayView.js.map +1 -1
- package/lib/module/components/EndRoomModalContent.js +76 -0
- package/lib/module/components/EndRoomModalContent.js.map +1 -0
- package/lib/module/components/Footer.js +19 -15
- package/lib/module/components/Footer.js.map +1 -1
- package/lib/module/components/GridView.js +55 -10
- package/lib/module/components/GridView.js.map +1 -1
- package/lib/module/components/HMSBaseButton.js +57 -0
- package/lib/module/components/HMSBaseButton.js.map +1 -0
- package/lib/module/components/HMSDangerButton.js +44 -0
- package/lib/module/components/HMSDangerButton.js.map +1 -0
- package/lib/module/components/HMSHLSNotStarted.js +29 -21
- package/lib/module/components/HMSHLSNotStarted.js.map +1 -1
- package/lib/module/components/HMSHLSStreamLoading.js +17 -8
- package/lib/module/components/HMSHLSStreamLoading.js.map +1 -1
- package/lib/module/components/HMSManageAudioOutput.js +42 -77
- package/lib/module/components/HMSManageAudioOutput.js.map +1 -1
- package/lib/module/components/HMSManageCameraRotation.js +5 -4
- package/lib/module/components/HMSManageCameraRotation.js.map +1 -1
- package/lib/module/components/HMSManageLeave.js +104 -129
- package/lib/module/components/HMSManageLeave.js.map +1 -1
- package/lib/module/components/HMSManageLocalAudio.js +1 -9
- package/lib/module/components/HMSManageLocalAudio.js.map +1 -1
- package/lib/module/components/HMSManageLocalVideo.js +1 -9
- package/lib/module/components/HMSManageLocalVideo.js.map +1 -1
- package/lib/module/components/HMSManageRaiseHand.js +2 -15
- package/lib/module/components/HMSManageRaiseHand.js.map +1 -1
- package/lib/module/components/HMSMeetingEnded.js +1 -2
- package/lib/module/components/HMSMeetingEnded.js.map +1 -1
- package/lib/module/components/HMSPreviewEditName.js +3 -37
- package/lib/module/components/HMSPreviewEditName.js.map +1 -1
- package/lib/module/components/HMSPreviewHLSLiveIndicator.js +17 -10
- package/lib/module/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
- package/lib/module/components/HMSPreviewJoinButton.js +26 -49
- package/lib/module/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/module/components/HMSPreviewNetworkQuality.js +6 -4
- package/lib/module/components/HMSPreviewNetworkQuality.js.map +1 -1
- package/lib/module/components/HMSPreviewPeersList.js +21 -10
- package/lib/module/components/HMSPreviewPeersList.js.map +1 -1
- package/lib/module/components/HMSPreviewSubtitle.js +22 -9
- package/lib/module/components/HMSPreviewSubtitle.js.map +1 -1
- package/lib/module/components/HMSPreviewTile.js +16 -8
- package/lib/module/components/HMSPreviewTile.js.map +1 -1
- package/lib/module/components/HMSPreviewTitle.js +14 -6
- package/lib/module/components/HMSPreviewTitle.js.map +1 -1
- package/lib/module/components/HMSPrimaryButton.js +44 -0
- package/lib/module/components/HMSPrimaryButton.js.map +1 -0
- package/lib/module/components/HMSRecordingIndicator.js +37 -0
- package/lib/module/components/HMSRecordingIndicator.js.map +1 -0
- package/lib/module/components/HMSRoomOptions.js +21 -8
- package/lib/module/components/HMSRoomOptions.js.map +1 -1
- package/lib/module/components/HMSShowNetworkQuality.js +6 -5
- package/lib/module/components/HMSShowNetworkQuality.js.map +1 -1
- package/lib/module/components/HMSTextInput.js +57 -0
- package/lib/module/components/HMSTextInput.js.map +1 -0
- package/lib/module/components/Header.js +32 -32
- package/lib/module/components/Header.js.map +1 -1
- package/lib/module/components/LocalPeerRegularVideoView.js +17 -0
- package/lib/module/components/LocalPeerRegularVideoView.js.map +1 -0
- package/lib/module/components/LocalPeerScreenshareView.js +66 -0
- package/lib/module/components/LocalPeerScreenshareView.js.map +1 -0
- package/lib/module/components/Meeting.js +9 -4
- package/lib/module/components/Meeting.js.map +1 -1
- package/lib/module/components/MeetingScreenContent.js +2 -1
- package/lib/module/components/MeetingScreenContent.js.map +1 -1
- package/lib/module/components/MiniView.js +154 -0
- package/lib/module/components/MiniView.js.map +1 -0
- package/lib/module/components/Modals.js +31 -114
- package/lib/module/components/Modals.js.map +1 -1
- package/lib/module/components/PaginationDots.js +47 -0
- package/lib/module/components/PaginationDots.js.map +1 -0
- package/lib/module/components/ParticipantsCount.js +46 -0
- package/lib/module/components/ParticipantsCount.js.map +1 -0
- package/lib/module/components/PeerMinimizedView.js +104 -0
- package/lib/module/components/PeerMinimizedView.js.map +1 -0
- package/lib/module/components/PeerSettingsModalContent.js +71 -54
- package/lib/module/components/PeerSettingsModalContent.js.map +1 -1
- package/lib/module/components/PeerVideoTile/AvatarView.js +66 -0
- package/lib/module/components/PeerVideoTile/AvatarView.js.map +1 -0
- package/lib/module/components/PeerVideoTile/PeerAudioMutedIndicator.js +35 -0
- package/lib/module/components/PeerVideoTile/PeerAudioMutedIndicator.js.map +1 -0
- package/lib/module/components/PeerVideoTile/PeerMetadata.js +35 -0
- package/lib/module/components/PeerVideoTile/PeerMetadata.js.map +1 -0
- package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js +65 -0
- package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -0
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js +136 -0
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js.map +1 -0
- package/lib/module/components/PeerVideoTile/VideoView.js +75 -0
- package/lib/module/components/PeerVideoTile/VideoView.js.map +1 -0
- package/lib/module/components/PeerVideoTile/index.js +2 -0
- package/lib/module/components/PeerVideoTile/index.js.map +1 -0
- package/lib/module/components/PressableIcon.js +15 -8
- package/lib/module/components/PressableIcon.js.map +1 -1
- package/lib/module/components/Preview.js +19 -6
- package/lib/module/components/Preview.js.map +1 -1
- package/lib/module/components/RoomSettingsModalContent.js +234 -364
- package/lib/module/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/module/components/RoomSettingsModalDebugModeContent.js +287 -0
- package/lib/module/components/RoomSettingsModalDebugModeContent.js.map +1 -0
- package/lib/module/components/StatusBar.js +7 -5
- package/lib/module/components/StatusBar.js.map +1 -1
- package/lib/module/components/StopRecordingModalContent.js +88 -0
- package/lib/module/components/StopRecordingModalContent.js.map +1 -0
- package/lib/module/components/Tile.js +30 -91
- package/lib/module/components/Tile.js.map +1 -1
- package/lib/module/components/TilesContainer.js +100 -10
- package/lib/module/components/TilesContainer.js.map +1 -1
- package/lib/module/components/UnmountAfterDelay.js +39 -0
- package/lib/module/components/UnmountAfterDelay.js.map +1 -0
- package/lib/module/components/WebrtcView.js +41 -0
- package/lib/module/components/WebrtcView.js.map +1 -0
- package/lib/module/components/WelcomeInMeeting.js +45 -0
- package/lib/module/components/WelcomeInMeeting.js.map +1 -0
- package/lib/module/hooks-sdk-selectors.js +4 -0
- package/lib/module/hooks-sdk-selectors.js.map +1 -1
- package/lib/module/hooks-sdk.js +16 -1
- package/lib/module/hooks-sdk.js.map +1 -1
- package/lib/module/hooks-util-selectors.js +8 -2
- package/lib/module/hooks-util-selectors.js.map +1 -1
- package/lib/module/hooks-util.js +310 -96
- package/lib/module/hooks-util.js.map +1 -1
- package/lib/module/modules/HMSManager.js +17 -0
- package/lib/module/modules/HMSManager.js.map +1 -0
- package/lib/module/modules/parser.js +16 -0
- package/lib/module/modules/parser.js.map +1 -0
- package/lib/module/peerTrackNodeUtils.js +6 -2
- package/lib/module/peerTrackNodeUtils.js.map +1 -1
- package/lib/module/redux/actionTypes.js +16 -1
- package/lib/module/redux/actionTypes.js.map +1 -1
- package/lib/module/redux/actions/index.js +42 -0
- package/lib/module/redux/actions/index.js.map +1 -1
- package/lib/module/redux/reducers/appState.js +57 -1
- package/lib/module/redux/reducers/appState.js.map +1 -1
- package/lib/module/redux/reducers/hmsStates.js +7 -1
- package/lib/module/redux/reducers/hmsStates.js.map +1 -1
- package/lib/module/redux/reducers/userState.js +3 -1
- package/lib/module/redux/reducers/userState.js.map +1 -1
- package/lib/module/utils/functions.js +47 -0
- package/lib/module/utils/functions.js.map +1 -1
- package/lib/module/utils/theme.js +57 -5
- package/lib/module/utils/theme.js.map +1 -1
- package/lib/module/utils/types.js +6 -0
- package/lib/module/utils/types.js.map +1 -1
- package/lib/typescript/HMSInstanceSetup.d.ts.map +1 -1
- package/lib/typescript/HMSPrebuilt.d.ts +1 -0
- package/lib/typescript/HMSPrebuilt.d.ts.map +1 -1
- package/lib/typescript/HMSRoomSetup.d.ts.map +1 -1
- package/lib/typescript/Icons/AlertTriangle/index.d.ts +7 -0
- package/lib/typescript/Icons/AlertTriangle/index.d.ts.map +1 -0
- package/lib/typescript/Icons/AnswerPhone/index.d.ts.map +1 -1
- package/lib/typescript/Icons/BRB/index.d.ts +7 -0
- package/lib/typescript/Icons/BRB/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Bluetooth/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Camera/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Chat/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Check/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Chevron/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Close/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Hamburger/index.d.ts +7 -0
- package/lib/typescript/Icons/Hamburger/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Hand/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Headphones/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Maximize/index.d.ts +7 -0
- package/lib/typescript/Icons/Maximize/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Mic/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Minimize/index.d.ts +7 -0
- package/lib/typescript/Icons/Minimize/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Participants/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Pencil/index.d.ts +7 -0
- package/lib/typescript/Icons/Pencil/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Pin/index.d.ts +7 -0
- package/lib/typescript/Icons/Pin/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Radio/index.d.ts +7 -3
- package/lib/typescript/Icons/Radio/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Recording/index.d.ts +7 -0
- package/lib/typescript/Icons/Recording/index.d.ts.map +1 -0
- package/lib/typescript/Icons/RotateCamera/index.d.ts.map +1 -1
- package/lib/typescript/Icons/ScreenShare/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Speaker/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Star/index.d.ts +7 -0
- package/lib/typescript/Icons/Star/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Stop/index.d.ts +7 -0
- package/lib/typescript/Icons/Stop/index.d.ts.map +1 -0
- package/lib/typescript/Icons/ThreeDots/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Wave/index.d.ts.map +1 -1
- package/lib/typescript/Icons/index.d.ts +10 -0
- package/lib/typescript/Icons/index.d.ts.map +1 -1
- package/lib/typescript/components/BackButton.d.ts.map +1 -1
- package/lib/typescript/components/BottomSheet.d.ts +25 -0
- package/lib/typescript/components/BottomSheet.d.ts.map +1 -0
- package/lib/typescript/components/ChangeNameModalContent.d.ts +6 -0
- package/lib/typescript/components/ChangeNameModalContent.d.ts.map +1 -0
- package/lib/typescript/components/CompanyLogo.d.ts +7 -0
- package/lib/typescript/components/CompanyLogo.d.ts.map +1 -0
- package/lib/typescript/components/CustomInput.d.ts +1 -1
- package/lib/typescript/components/CustomInput.d.ts.map +1 -1
- package/lib/typescript/components/DisplayView.d.ts.map +1 -1
- package/lib/typescript/components/EndRoomModalContent.d.ts +6 -0
- package/lib/typescript/components/EndRoomModalContent.d.ts.map +1 -0
- package/lib/typescript/components/Footer.d.ts.map +1 -1
- package/lib/typescript/components/GridView.d.ts +3 -4
- package/lib/typescript/components/GridView.d.ts.map +1 -1
- package/lib/typescript/components/HMSBaseButton.d.ts +15 -0
- package/lib/typescript/components/HMSBaseButton.d.ts.map +1 -0
- package/lib/typescript/components/HMSDangerButton.d.ts +12 -0
- package/lib/typescript/components/HMSDangerButton.d.ts.map +1 -0
- package/lib/typescript/components/HMSHLSNotStarted.d.ts.map +1 -1
- package/lib/typescript/components/HMSHLSStreamLoading.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageAudioOutput.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageLeave.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageLocalAudio.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageLocalVideo.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageRaiseHand.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewEditName.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewHLSLiveIndicator.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewJoinButton.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewNetworkQuality.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewPeersList.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewSubtitle.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewTile.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewTitle.d.ts.map +1 -1
- package/lib/typescript/components/HMSPrimaryButton.d.ts +12 -0
- package/lib/typescript/components/HMSPrimaryButton.d.ts.map +1 -0
- package/lib/typescript/components/HMSRecordingIndicator.d.ts +3 -0
- package/lib/typescript/components/HMSRecordingIndicator.d.ts.map +1 -0
- package/lib/typescript/components/HMSRoomOptions.d.ts.map +1 -1
- package/lib/typescript/components/HMSShowNetworkQuality.d.ts.map +1 -1
- package/lib/typescript/components/HMSTextInput.d.ts +10 -0
- package/lib/typescript/components/HMSTextInput.d.ts.map +1 -0
- package/lib/typescript/components/Header.d.ts.map +1 -1
- package/lib/typescript/components/LocalPeerRegularVideoView.d.ts +6 -0
- package/lib/typescript/components/LocalPeerRegularVideoView.d.ts.map +1 -0
- package/lib/typescript/components/LocalPeerScreenshareView.d.ts +3 -0
- package/lib/typescript/components/LocalPeerScreenshareView.d.ts.map +1 -0
- package/lib/typescript/components/Meeting.d.ts.map +1 -1
- package/lib/typescript/components/MiniView.d.ts +9 -0
- package/lib/typescript/components/MiniView.d.ts.map +1 -0
- package/lib/typescript/components/Modals.d.ts +0 -7
- package/lib/typescript/components/Modals.d.ts.map +1 -1
- package/lib/typescript/components/PaginationDots.d.ts +6 -0
- package/lib/typescript/components/PaginationDots.d.ts.map +1 -0
- package/lib/typescript/components/ParticipantsCount.d.ts +3 -0
- package/lib/typescript/components/ParticipantsCount.d.ts.map +1 -0
- package/lib/typescript/components/PeerMinimizedView.d.ts +12 -0
- package/lib/typescript/components/PeerMinimizedView.d.ts.map +1 -0
- package/lib/typescript/components/PeerSettingsModalContent.d.ts +1 -0
- package/lib/typescript/components/PeerSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/AvatarView.d.ts +9 -0
- package/lib/typescript/components/PeerVideoTile/AvatarView.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerAudioMutedIndicator.d.ts +6 -0
- package/lib/typescript/components/PeerVideoTile/PeerAudioMutedIndicator.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerMetadata.d.ts +6 -0
- package/lib/typescript/components/PeerVideoTile/PeerMetadata.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerNameAndNetwork.d.ts +10 -0
- package/lib/typescript/components/PeerVideoTile/PeerNameAndNetwork.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts +10 -0
- package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/VideoView.d.ts +13 -0
- package/lib/typescript/components/PeerVideoTile/VideoView.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/index.d.ts +1 -0
- package/lib/typescript/components/PeerVideoTile/index.d.ts.map +1 -0
- package/lib/typescript/components/PressableIcon.d.ts.map +1 -1
- package/lib/typescript/components/Preview.d.ts.map +1 -1
- package/lib/typescript/components/RoomSettingsModalContent.d.ts +2 -2
- package/lib/typescript/components/RoomSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/components/RoomSettingsModalDebugModeContent.d.ts +17 -0
- package/lib/typescript/components/RoomSettingsModalDebugModeContent.d.ts.map +1 -0
- package/lib/typescript/components/StatusBar.d.ts +2 -1
- package/lib/typescript/components/StatusBar.d.ts.map +1 -1
- package/lib/typescript/components/StopRecordingModalContent.d.ts +6 -0
- package/lib/typescript/components/StopRecordingModalContent.d.ts.map +1 -0
- package/lib/typescript/components/Tile.d.ts +12 -3
- package/lib/typescript/components/Tile.d.ts.map +1 -1
- package/lib/typescript/components/TilesContainer.d.ts.map +1 -1
- package/lib/typescript/components/UnmountAfterDelay.d.ts +12 -0
- package/lib/typescript/components/UnmountAfterDelay.d.ts.map +1 -0
- package/lib/typescript/components/WebrtcView.d.ts +10 -0
- package/lib/typescript/components/WebrtcView.d.ts.map +1 -0
- package/lib/typescript/components/WelcomeInMeeting.d.ts +5 -0
- package/lib/typescript/components/WelcomeInMeeting.d.ts.map +1 -0
- package/lib/typescript/hooks-sdk-selectors.d.ts +2 -0
- package/lib/typescript/hooks-sdk-selectors.d.ts.map +1 -1
- package/lib/typescript/hooks-sdk.d.ts +1 -0
- package/lib/typescript/hooks-sdk.d.ts.map +1 -1
- package/lib/typescript/hooks-util-selectors.d.ts.map +1 -1
- package/lib/typescript/hooks-util.d.ts +15 -2
- package/lib/typescript/hooks-util.d.ts.map +1 -1
- package/lib/typescript/modules/HMSManager.d.ts +4 -0
- package/lib/typescript/modules/HMSManager.d.ts.map +1 -0
- package/lib/typescript/modules/parser.d.ts +3 -0
- package/lib/typescript/modules/parser.d.ts.map +1 -0
- package/lib/typescript/peerTrackNodeUtils.d.ts +1 -0
- package/lib/typescript/peerTrackNodeUtils.d.ts.map +1 -1
- package/lib/typescript/redux/actionTypes.d.ts +9 -1
- package/lib/typescript/redux/actionTypes.d.ts.map +1 -1
- package/lib/typescript/redux/actions/index.d.ts +45 -0
- package/lib/typescript/redux/actions/index.d.ts.map +1 -1
- package/lib/typescript/redux/index.d.ts +7 -0
- package/lib/typescript/redux/index.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/appState.d.ts +5 -0
- package/lib/typescript/redux/reducers/appState.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/hmsStates.d.ts +7 -1
- package/lib/typescript/redux/reducers/hmsStates.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/index.d.ts +7 -0
- package/lib/typescript/redux/reducers/index.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/userState.d.ts +1 -0
- package/lib/typescript/redux/reducers/userState.d.ts.map +1 -1
- package/lib/typescript/utils/functions.d.ts +14 -0
- package/lib/typescript/utils/functions.d.ts.map +1 -1
- package/lib/typescript/utils/theme.d.ts +6 -3
- package/lib/typescript/utils/theme.d.ts.map +1 -1
- package/lib/typescript/utils/types.d.ts +5 -0
- package/lib/typescript/utils/types.d.ts.map +1 -1
- package/package.json +4 -2
- package/src/HMSInstanceSetup.tsx +1 -0
- package/src/HMSPrebuilt.tsx +3 -2
- package/src/HMSRoomSetup.tsx +45 -8
- package/src/Icons/AlertTriangle/assets/alert-triangle.png +0 -0
- package/src/Icons/AlertTriangle/assets/alert-triangle@2x.png +0 -0
- package/src/Icons/AlertTriangle/assets/alert-triangle@3x.png +0 -0
- package/src/Icons/AlertTriangle/index.tsx +33 -0
- package/src/Icons/AnswerPhone/index.tsx +7 -1
- package/src/Icons/BRB/assets/BRB.png +0 -0
- package/src/Icons/BRB/assets/BRB@2x.png +0 -0
- package/src/Icons/BRB/assets/BRB@3x.png +0 -0
- package/src/Icons/BRB/index.tsx +31 -0
- package/src/Icons/Bluetooth/index.tsx +7 -1
- package/src/Icons/Camera/index.tsx +7 -1
- package/src/Icons/Chat/index.tsx +7 -1
- package/src/Icons/Check/index.tsx +7 -1
- package/src/Icons/Chevron/index.tsx +7 -1
- package/src/Icons/Close/index.tsx +7 -1
- package/src/Icons/Hamburger/assets/hamburger.png +0 -0
- package/src/Icons/Hamburger/assets/hamburger@2x.png +0 -0
- package/src/Icons/Hamburger/assets/hamburger@3x.png +0 -0
- package/src/Icons/Hamburger/index.tsx +33 -0
- package/src/Icons/Hand/index.tsx +6 -3
- package/src/Icons/Headphones/index.tsx +7 -1
- package/src/Icons/Maximize/assets/maximize.png +0 -0
- package/src/Icons/Maximize/assets/maximize@2x.png +0 -0
- package/src/Icons/Maximize/assets/maximize@3x.png +0 -0
- package/src/Icons/Maximize/index.tsx +33 -0
- package/src/Icons/Mic/index.tsx +7 -1
- package/src/Icons/Minimize/assets/minimize.png +0 -0
- package/src/Icons/Minimize/assets/minimize@2x.png +0 -0
- package/src/Icons/Minimize/assets/minimize@3x.png +0 -0
- package/src/Icons/Minimize/index.tsx +33 -0
- package/src/Icons/Participants/index.tsx +7 -1
- package/src/Icons/Pencil/assets/pencil.png +0 -0
- package/src/Icons/Pencil/assets/pencil@2x.png +0 -0
- package/src/Icons/Pencil/assets/pencil@3x.png +0 -0
- package/src/Icons/Pencil/index.tsx +33 -0
- package/src/Icons/Pin/assets/pin.png +0 -0
- package/src/Icons/Pin/assets/pin@2x.png +0 -0
- package/src/Icons/Pin/assets/pin@3x.png +0 -0
- package/src/Icons/Pin/index.tsx +30 -0
- package/src/Icons/Radio/assets/radio-xlarge.png +0 -0
- package/src/Icons/Radio/assets/radio-xlarge@2x.png +0 -0
- package/src/Icons/Radio/assets/radio-xlarge@3x.png +0 -0
- package/src/Icons/Radio/index.tsx +53 -4
- package/src/Icons/Recording/assets/recording.png +0 -0
- package/src/Icons/Recording/assets/recording@2x.png +0 -0
- package/src/Icons/Recording/assets/recording@3x.png +0 -0
- package/src/Icons/Recording/index.tsx +33 -0
- package/src/Icons/RotateCamera/index.tsx +7 -1
- package/src/Icons/ScreenShare/index.tsx +7 -1
- package/src/Icons/Speaker/index.tsx +12 -1
- package/src/Icons/Star/assets/star.png +0 -0
- package/src/Icons/Star/assets/star@2x.png +0 -0
- package/src/Icons/Star/assets/star@3x.png +0 -0
- package/src/Icons/Star/index.tsx +30 -0
- package/src/Icons/Stop/assets/stop.png +0 -0
- package/src/Icons/Stop/assets/stop@2x.png +0 -0
- package/src/Icons/Stop/assets/stop@3x.png +0 -0
- package/src/Icons/Stop/index.tsx +30 -0
- package/src/Icons/ThreeDots/index.tsx +7 -1
- package/src/Icons/Wave/index.tsx +7 -1
- package/src/Icons/index.ts +10 -0
- package/src/components/AvatarView.tsx +1 -2
- package/src/components/BackButton.tsx +6 -3
- package/src/components/BottomSheet.tsx +191 -0
- package/src/components/ChangeNameModalContent.tsx +157 -0
- package/src/components/CompanyLogo.tsx +35 -0
- package/src/components/CustomInput.tsx +2 -3
- package/src/components/DisplayView.tsx +17 -67
- package/src/components/EndRoomModalContent.tsx +90 -0
- package/src/components/Footer.tsx +38 -33
- package/src/components/GridView.tsx +91 -20
- package/src/components/HMSBaseButton.tsx +91 -0
- package/src/components/HMSDangerButton.tsx +65 -0
- package/src/components/HMSHLSNotStarted.tsx +26 -20
- package/src/components/HMSHLSStreamLoading.tsx +18 -7
- package/src/components/HMSManageAudioOutput.tsx +59 -90
- package/src/components/HMSManageCameraRotation.tsx +11 -8
- package/src/components/HMSManageLeave.tsx +115 -126
- package/src/components/HMSManageLocalAudio.tsx +1 -10
- package/src/components/HMSManageLocalVideo.tsx +1 -10
- package/src/components/HMSManageRaiseHand.tsx +2 -16
- package/src/components/HMSMeetingEnded.tsx +1 -2
- package/src/components/HMSPreviewEditName.tsx +2 -44
- package/src/components/HMSPreviewHLSLiveIndicator.tsx +17 -9
- package/src/components/HMSPreviewJoinButton.tsx +33 -71
- package/src/components/HMSPreviewNetworkQuality.tsx +7 -4
- package/src/components/HMSPreviewPeersList.tsx +23 -13
- package/src/components/HMSPreviewSubtitle.tsx +27 -11
- package/src/components/HMSPreviewTile.tsx +19 -8
- package/src/components/HMSPreviewTitle.tsx +18 -5
- package/src/components/HMSPrimaryButton.tsx +63 -0
- package/src/components/HMSRecordingIndicator.tsx +39 -0
- package/src/components/HMSRoomOptions.tsx +28 -8
- package/src/components/HMSShowNetworkQuality.tsx +7 -5
- package/src/components/HMSTextInput.tsx +78 -0
- package/src/components/Header.tsx +37 -36
- package/src/components/LocalPeerRegularVideoView.tsx +28 -0
- package/src/components/LocalPeerScreenshareView.tsx +72 -0
- package/src/components/Meeting.tsx +10 -3
- package/src/components/MeetingScreenContent.tsx +1 -1
- package/src/components/MiniView.tsx +213 -0
- package/src/components/Modals.tsx +1 -110
- package/src/components/PaginationDots.tsx +65 -0
- package/src/components/ParticipantsCount.tsx +52 -0
- package/src/components/PeerMinimizedView.tsx +131 -0
- package/src/components/PeerSettingsModalContent.tsx +110 -54
- package/src/components/PeerVideoTile/AvatarView.tsx +79 -0
- package/src/components/PeerVideoTile/PeerAudioMutedIndicator.tsx +41 -0
- package/src/components/PeerVideoTile/PeerMetadata.tsx +46 -0
- package/src/components/PeerVideoTile/PeerNameAndNetwork.tsx +81 -0
- package/src/components/PeerVideoTile/PeerVideoTileView.tsx +180 -0
- package/src/components/PeerVideoTile/VideoView.tsx +104 -0
- package/src/components/PeerVideoTile/index.ts +0 -0
- package/src/components/PressableIcon.tsx +15 -8
- package/src/components/Preview.tsx +24 -6
- package/src/components/RoomSettingsModalContent.tsx +237 -524
- package/src/components/RoomSettingsModalDebugModeContent.tsx +446 -0
- package/src/components/StatusBar.tsx +6 -4
- package/src/components/StopRecordingModalContent.tsx +111 -0
- package/src/components/Tile.tsx +49 -90
- package/src/components/TilesContainer.tsx +116 -14
- package/src/components/UnmountAfterDelay.tsx +61 -0
- package/src/components/WebrtcView.tsx +72 -0
- package/src/components/WelcomeInMeeting.tsx +52 -0
- package/src/hooks-sdk-selectors.tsx +7 -0
- package/src/hooks-sdk.ts +18 -0
- package/src/hooks-util-selectors.tsx +12 -1
- package/src/hooks-util.ts +420 -114
- package/src/modules/HMSManager.ts +25 -0
- package/src/modules/parser.ts +22 -0
- package/src/peerTrackNodeUtils.tsx +13 -10
- package/src/redux/actionTypes.ts +22 -0
- package/src/redux/actions/index.ts +53 -0
- package/src/redux/reducers/appState.ts +59 -0
- package/src/redux/reducers/hmsStates.ts +15 -1
- package/src/redux/reducers/userState.ts +3 -0
- package/src/utils/functions.ts +48 -0
- package/src/utils/theme.ts +74 -5
- package/src/utils/types.ts +6 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { StyleSheet, Text, View } from 'react-native';
|
|
3
|
+
import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
|
|
4
|
+
import { CustomButton } from './CustomButton';
|
|
5
|
+
import { useHMSActions } from '../hooks-sdk';
|
|
6
|
+
import { COLORS } from '../utils/theme';
|
|
7
|
+
export const LocalPeerScreenshareView = () => {
|
|
8
|
+
const hmsActions = useHMSActions();
|
|
9
|
+
const onEndScreenSharePress = async () => {
|
|
10
|
+
await hmsActions.setScreenShareEnabled(false);
|
|
11
|
+
};
|
|
12
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
13
|
+
style: styles.container
|
|
14
|
+
}, /*#__PURE__*/React.createElement(MaterialCommunityIcons, {
|
|
15
|
+
name: "monitor-share",
|
|
16
|
+
style: styles.icon,
|
|
17
|
+
size: 48
|
|
18
|
+
}), /*#__PURE__*/React.createElement(Text, {
|
|
19
|
+
style: styles.text
|
|
20
|
+
}, "You are sharing your screen"), /*#__PURE__*/React.createElement(CustomButton, {
|
|
21
|
+
title: "X Stop Screenshare",
|
|
22
|
+
onPress: onEndScreenSharePress,
|
|
23
|
+
viewStyle: styles.button,
|
|
24
|
+
textStyle: styles.buttonText
|
|
25
|
+
}));
|
|
26
|
+
};
|
|
27
|
+
const styles = StyleSheet.create({
|
|
28
|
+
container: {
|
|
29
|
+
width: '100%',
|
|
30
|
+
height: '100%',
|
|
31
|
+
backgroundColor: COLORS.SURFACE.DEFAULT,
|
|
32
|
+
justifyContent: 'center',
|
|
33
|
+
alignItems: 'center'
|
|
34
|
+
},
|
|
35
|
+
icon: {
|
|
36
|
+
color: COLORS.TEXT.HIGH_EMPHASIS
|
|
37
|
+
},
|
|
38
|
+
text: {
|
|
39
|
+
color: COLORS.TEXT.HIGH_EMPHASIS,
|
|
40
|
+
fontSize: 20,
|
|
41
|
+
lineHeight: 24,
|
|
42
|
+
letterSpacing: 0.15,
|
|
43
|
+
fontFamily: 'Inter-Medium',
|
|
44
|
+
marginTop: 16
|
|
45
|
+
},
|
|
46
|
+
button: {
|
|
47
|
+
backgroundColor: COLORS.INDICATORS.ERROR,
|
|
48
|
+
borderColor: COLORS.INDICATORS.ERROR,
|
|
49
|
+
justifyContent: 'center',
|
|
50
|
+
alignItems: 'center',
|
|
51
|
+
borderWidth: 1,
|
|
52
|
+
borderRadius: 8,
|
|
53
|
+
width: '60%',
|
|
54
|
+
alignSelf: 'center',
|
|
55
|
+
marginTop: 48
|
|
56
|
+
},
|
|
57
|
+
buttonText: {
|
|
58
|
+
color: COLORS.TEXT.HIGH_EMPHASIS,
|
|
59
|
+
fontSize: 16,
|
|
60
|
+
lineHeight: 24,
|
|
61
|
+
letterSpacing: 0.5,
|
|
62
|
+
fontFamily: 'Inter-Medium',
|
|
63
|
+
textTransform: 'capitalize'
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
//# sourceMappingURL=LocalPeerScreenshareView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","Text","View","MaterialCommunityIcons","CustomButton","useHMSActions","COLORS","LocalPeerScreenshareView","hmsActions","onEndScreenSharePress","setScreenShareEnabled","createElement","style","styles","container","name","icon","size","text","title","onPress","viewStyle","button","textStyle","buttonText","create","width","height","backgroundColor","SURFACE","DEFAULT","justifyContent","alignItems","color","TEXT","HIGH_EMPHASIS","fontSize","lineHeight","letterSpacing","fontFamily","marginTop","INDICATORS","ERROR","borderColor","borderWidth","borderRadius","alignSelf","textTransform"],"sourceRoot":"../../../src","sources":["components/LocalPeerScreenshareView.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACrD,OAAOC,sBAAsB,MAAM,kDAAkD;AAErF,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,aAAa,QAAQ,cAAc;AAC5C,SAASC,MAAM,QAAQ,gBAAgB;AAEvC,OAAO,MAAMC,wBAAwB,GAAGA,CAAA,KAAM;EAC5C,MAAMC,UAAU,GAAGH,aAAa,CAAC,CAAC;EAElC,MAAMI,qBAAqB,GAAG,MAAAA,CAAA,KAAY;IACxC,MAAMD,UAAU,CAACE,qBAAqB,CAAC,KAAK,CAAC;EAC/C,CAAC;EAED,oBACEX,KAAA,CAAAY,aAAA,CAACT,IAAI;IAACU,KAAK,EAAEC,MAAM,CAACC;EAAU,gBAC5Bf,KAAA,CAAAY,aAAA,CAACR,sB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AAU,EAAE;IACVS,KAAK,EAAE3B,MAAM,CAAC4B,IAAI,CAACC,aAAa;IAChCC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,aAAa,EAAE,GAAG;IAClBC,UAAU,EAAE,cAAc;IAC1BQ,aAAa,EAAE;EACjB;AACF,CAAC,CAAC"}
|
|
@@ -3,8 +3,7 @@ import { StyleSheet } from 'react-native';
|
|
|
3
3
|
import { useSelector } from 'react-redux';
|
|
4
4
|
import { SafeAreaView } from 'react-native-safe-area-context';
|
|
5
5
|
import { useRTCStatsListeners } from '../utils/hooks';
|
|
6
|
-
import {
|
|
7
|
-
import { clearPendingModalTasks, useFetchHMSRoles, useHMSMessages, useHMSPIPRoomLeave, useHMSRemovedFromRoomUpdate, useLandscapeChatViewVisible, usePIPListener } from '../hooks-util';
|
|
6
|
+
import { clearPendingModalTasks, useFetchHMSRoles, useHMSMessages, useHMSNetworkQualityUpdate, useHMSPIPRoomLeave, useHMSRemovedFromRoomUpdate, useHMSRoomStyle, useLandscapeChatViewVisible, usePIPListener } from '../hooks-util';
|
|
8
7
|
import { ChatView } from './ChatWindow';
|
|
9
8
|
import { MeetingScreenContent } from './MeetingScreenContent';
|
|
10
9
|
import { HMSHLSStreamLoading } from './HMSHLSStreamLoading';
|
|
@@ -28,6 +27,9 @@ export const Meeting = _ref => {
|
|
|
28
27
|
|
|
29
28
|
// Handle rendering RTC stats on Tiles and inside RTC stats modal
|
|
30
29
|
useRTCStatsListeners();
|
|
30
|
+
|
|
31
|
+
// Subscribe to Peers Network quality updates
|
|
32
|
+
useHMSNetworkQualityUpdate();
|
|
31
33
|
const landscapeChatViewVisible = useLandscapeChatViewVisible();
|
|
32
34
|
|
|
33
35
|
// Clearing any pending modal opening tasks
|
|
@@ -36,6 +38,9 @@ export const Meeting = _ref => {
|
|
|
36
38
|
clearPendingModalTasks();
|
|
37
39
|
};
|
|
38
40
|
}, []);
|
|
41
|
+
const containerStyles = useHMSRoomStyle(theme => ({
|
|
42
|
+
backgroundColor: theme.palette.background_dim
|
|
43
|
+
}));
|
|
39
44
|
if (startingHLSStream) {
|
|
40
45
|
return /*#__PURE__*/React.createElement(HMSHLSStreamLoading, null);
|
|
41
46
|
}
|
|
@@ -47,7 +52,8 @@ export const Meeting = _ref => {
|
|
|
47
52
|
* Solution: Try using Tab Gesture detector instead on Pressable component
|
|
48
53
|
*/
|
|
49
54
|
return /*#__PURE__*/React.createElement(SafeAreaView, {
|
|
50
|
-
style: styles.container
|
|
55
|
+
style: [styles.container, containerStyles],
|
|
56
|
+
edges: ['top', 'left', 'right']
|
|
51
57
|
}, /*#__PURE__*/React.createElement(MeetingScreenContent, {
|
|
52
58
|
peerTrackNodes: peerTrackNodes
|
|
53
59
|
}), landscapeChatViewVisible ? /*#__PURE__*/React.createElement(ChatView, null) : null);
|
|
@@ -55,7 +61,6 @@ export const Meeting = _ref => {
|
|
|
55
61
|
const styles = StyleSheet.create({
|
|
56
62
|
container: {
|
|
57
63
|
flex: 1,
|
|
58
|
-
backgroundColor: COLORS.BACKGROUND.DIM,
|
|
59
64
|
flexDirection: 'row'
|
|
60
65
|
}
|
|
61
66
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","useSelector","SafeAreaView","useRTCStatsListeners","
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","useSelector","SafeAreaView","useRTCStatsListeners","clearPendingModalTasks","useFetchHMSRoles","useHMSMessages","useHMSNetworkQualityUpdate","useHMSPIPRoomLeave","useHMSRemovedFromRoomUpdate","useHMSRoomStyle","useLandscapeChatViewVisible","usePIPListener","ChatView","MeetingScreenContent","HMSHLSStreamLoading","Meeting","_ref","peerTrackNodes","startingHLSStream","state","app","landscapeChatViewVisible","useEffect","containerStyles","theme","backgroundColor","palette","background_dim","createElement","style","styles","container","edges","create","flex","flexDirection"],"sourceRoot":"../../../src","sources":["components/Meeting.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;A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;AACA;EACE,oBACEhB,KAAA,CAAA8B,aAAA,CAAC3B,YAAY;IAAC4B,KAAK,EAAE,CAACC,MAAM,CAACC,SAAS,EAAER,eAAe,CAAE;IAACS,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO;EAAE,gBACxFlC,KAAA,CAAA8B,aAAA,CAACf,oBAAoB;IAACI,cAAc,EAAEA;EAAe,CAAE,CAAC,EAEvDI,wBAAwB,gBAAGvB,KAAA,CAAA8B,aAAA,CAAChB,QAAQ,MAAE,CAAC,GAAG,IAC/B,CAAC;AAEnB,CAAC;AAED,MAAMkB,MAAM,GAAG/B,UAAU,CAACkC,MAAM,CAAC;EAC/BF,SAAS,EAAE;IACTG,IAAI,EAAE,CAAC;IACPC,aAAa,EAAE;EACjB;AACF,CAAC,CAAC"}
|
|
@@ -68,7 +68,8 @@ export const MeetingScreenContent = _ref => {
|
|
|
68
68
|
style: [styles.container, landscapeChatViewVisible ? styles.takeLessSpaceAsItCan : null],
|
|
69
69
|
disabled: isHLSViewer || true
|
|
70
70
|
}, /*#__PURE__*/React.createElement(HMSStatusBar, {
|
|
71
|
-
hidden: controlsHidden
|
|
71
|
+
hidden: controlsHidden,
|
|
72
|
+
barStyle: 'light-content'
|
|
72
73
|
}), isPipModeActive ? null : /*#__PURE__*/React.createElement(Header, {
|
|
73
74
|
offset: offset
|
|
74
75
|
}), /*#__PURE__*/React.createElement(DisplayView, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useCallback","useRef","useState","StyleSheet","Pressable","useSelector","Easing","cancelAnimation","runOnJS","useSharedValue","withTiming","PipModes","Footer","DisplayView","Header","useIsHLSViewer","useLandscapeChatViewVisible","HMSStatusBar","MeetingScreenContent","_ref","peerTrackNodes","offset","isHLSViewer","timerIdRef","controlsHidden","setControlsHidden","isPipModeActive","state","app","pipModeStatus","ACTIVE","toggleControls","current","clearTimeout","value","duration","easing","ease","finished","landscapeChatViewVisible","createElement","onPress","style","styles","container","takeLessSpaceAsItCan","disabled","hidden","create","flex"],"sourceRoot":"../../../src","sources":["components/MeetingScreenContent.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AAC5D,SAASC,UAAU,EAAEC,SAAS,QAAQ,cAAc;AACpD,SAASC,WAAW,QAAQ,aAAa;AACzC,SACEC,MAAM,EACNC,eAAe,EACfC,OAAO,EACPC,cAAc,EACdC,UAAU,QACL,yBAAyB;AAEhC,SAASC,QAAQ,QAAQ,gBAAgB;AAGzC,SAASC,MAAM,QAAQ,UAAU;AACjC,SAASC,WAAW,QAAQ,eAAe;AAC3C,SAASC,MAAM,QAAQ,UAAU;AACjC,SAASC,cAAc,EAAEC,2BAA2B,QAAQ,eAAe;AAC3E,SAASC,YAAY,QAAQ,aAAa;AAM1C,OAAO,MAAMC,oBAAyD,GAAGC,IAAA,IAEnE;EAAA,IAFoE;IACxEC;EACF,CAAC,GAAAD,IAAA;EACC,MAAME,MAAM,GAAGZ,cAAc,CAAC,CAAC,CAAC;EAChC,MAAMa,WAAW,GAAGP,cAAc,CAAC,CAAC;EACpC,MAAMQ,UAAU,GAAGtB,MAAM,CAAwB,IAAI,CAAC;EACtD,MAAM,CAACuB,cAAc,EAAEC,iBAAiB,CAAC,GAAGvB,QAAQ,CAAC,KAAK,CAAC;EAC3D,MAAMwB,eAAe,GAAGrB,WAAW,CAChCsB,KAAgB,IAAKA,KAAK,CAACC,GAAG,CAACC,aAAa,KAAKlB,QAAQ,CAACmB,MAC7D,CAAC;EAED,MAAMC,cAAc,GAAG/B,WAAW,CAAC,MAAM;IACvC,SAAS;;IACT,IAAIuB,UAAU,CAACS,OAAO,EAAE;MACtBC,YAAY,CAACV,UAAU,CAACS,OAAO,CAAC;MAChCT,UAAU,CAACS,OAAO,GAAG,IAAI;IAC3B;IACAzB,eAAe,CAACc,MAAM,CAAC;IACvBA,MAAM,CAACa,KAAK,GAAGxB,UAAU,CACvBW,MAAM,CAACa,KAAK,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,EAC1B;MAAEC,QAAQ,EAAE,GAAG;MAAEC,MAAM,EAAE9B,MAAM,CAAC+B;IAAK,CAAC,EACrCC,QAAQ,IAAK;MACZ,IAAIA,QAAQ,EAAE;QACZ9B,OAAO,CAACiB,iBAAiB,CAAC,CAACJ,MAAM,CAACa,KAAK,KAAK,CAAC,CAAC;MAChD;IACF,CACF,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;;EAEN;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;;EAEA,MAAMK,wBAAwB,GAAGvB,2BAA2B,CAAC,CAAC;;EAE9D;AACF;AACA;AACA;AACA;AACA;EACE,oBACEjB,KAAA,CAAAyC,aAAA,CAACpC,SAAS;IACRqC,OAAO,EAAEV,cAAe;IACxBW,KAAK,EAAE,CACLC,MAAM,CAACC,SAAS,EAChBL,wBAAwB,GAAGI,MAAM,CAACE,oBAAoB,GAAG,IAAI,CAC7D;IACFC,QAAQ,EAAExB,WAAW,IAAI;EAAK,gBAE9BvB,KAAA,CAAAyC,aAAA,CAACvB,YAAY;IAAC8B,MAAM,EAAEvB;
|
|
1
|
+
{"version":3,"names":["React","useCallback","useRef","useState","StyleSheet","Pressable","useSelector","Easing","cancelAnimation","runOnJS","useSharedValue","withTiming","PipModes","Footer","DisplayView","Header","useIsHLSViewer","useLandscapeChatViewVisible","HMSStatusBar","MeetingScreenContent","_ref","peerTrackNodes","offset","isHLSViewer","timerIdRef","controlsHidden","setControlsHidden","isPipModeActive","state","app","pipModeStatus","ACTIVE","toggleControls","current","clearTimeout","value","duration","easing","ease","finished","landscapeChatViewVisible","createElement","onPress","style","styles","container","takeLessSpaceAsItCan","disabled","hidden","barStyle","create","flex"],"sourceRoot":"../../../src","sources":["components/MeetingScreenContent.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,M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
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { useDispatch, useSelector } from 'react-redux';
|
|
3
|
+
import { StyleSheet, View, LayoutAnimation } from 'react-native';
|
|
4
|
+
import { GestureDetector, Gesture } from 'react-native-gesture-handler';
|
|
5
|
+
import Animated, { cancelAnimation, useAnimatedStyle, useSharedValue, withSpring } from 'react-native-reanimated';
|
|
6
|
+
import { PeerVideoTileView } from './PeerVideoTile/PeerVideoTileView';
|
|
7
|
+
import { PeerMinimizedView, usePeerMinimizedViewDimensions } from './PeerMinimizedView';
|
|
8
|
+
import { setInsetViewMinimized } from '../redux/actions';
|
|
9
|
+
const cornerOffset = {
|
|
10
|
+
x: 8,
|
|
11
|
+
y: 16
|
|
12
|
+
};
|
|
13
|
+
export const MiniView = _ref => {
|
|
14
|
+
let {
|
|
15
|
+
boundingBoxRef,
|
|
16
|
+
onMoreOptionsPress
|
|
17
|
+
} = _ref;
|
|
18
|
+
const isPressed = useSharedValue(false);
|
|
19
|
+
const xOffset = useSharedValue(0);
|
|
20
|
+
const yOffset = useSharedValue(0);
|
|
21
|
+
const start = useSharedValue({
|
|
22
|
+
x: 0,
|
|
23
|
+
y: 0
|
|
24
|
+
});
|
|
25
|
+
const dispatch = useDispatch();
|
|
26
|
+
const minimized = useSelector(state => state.app.insetViewMinimized);
|
|
27
|
+
const miniviewPeerTrackNode = useSelector(state => state.app.miniviewPeerTrackNode);
|
|
28
|
+
const {
|
|
29
|
+
height: minimizedViewHeigth,
|
|
30
|
+
width: minimizedViewWidth
|
|
31
|
+
} = usePeerMinimizedViewDimensions();
|
|
32
|
+
const size = {
|
|
33
|
+
width: minimized ? minimizedViewWidth : 104,
|
|
34
|
+
height: minimized ? minimizedViewHeigth : 186
|
|
35
|
+
};
|
|
36
|
+
const dimensionStyles = {
|
|
37
|
+
width: size.width,
|
|
38
|
+
height: size.height
|
|
39
|
+
};
|
|
40
|
+
const animatedStyles = useAnimatedStyle(() => {
|
|
41
|
+
return {
|
|
42
|
+
transform: [{
|
|
43
|
+
translateX: xOffset.value
|
|
44
|
+
}, {
|
|
45
|
+
translateY: yOffset.value
|
|
46
|
+
}, {
|
|
47
|
+
scale: withSpring(isPressed.value ? 1.05 : 1)
|
|
48
|
+
}]
|
|
49
|
+
};
|
|
50
|
+
}, []);
|
|
51
|
+
const handlePanGestureEnd = e => {
|
|
52
|
+
'worklet';
|
|
53
|
+
|
|
54
|
+
const {
|
|
55
|
+
snapPointX,
|
|
56
|
+
snapPointY
|
|
57
|
+
} = getSnappingPoints(xOffset.value, yOffset.value, size.width, size.height, cornerOffset.x, cornerOffset.y, boundingBoxRef.current);
|
|
58
|
+
const finalX = snapPointX;
|
|
59
|
+
const finalY = snapPointY;
|
|
60
|
+
xOffset.value = withSpring(finalX, {
|
|
61
|
+
damping: 100,
|
|
62
|
+
stiffness: 100,
|
|
63
|
+
velocity: e.velocityX
|
|
64
|
+
});
|
|
65
|
+
yOffset.value = withSpring(finalY, {
|
|
66
|
+
damping: 100,
|
|
67
|
+
stiffness: 100,
|
|
68
|
+
velocity: e.velocityY
|
|
69
|
+
});
|
|
70
|
+
start.value = {
|
|
71
|
+
x: finalX,
|
|
72
|
+
y: finalY
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
const panGesture = Gesture.Pan().onUpdate(e => {
|
|
76
|
+
xOffset.value = e.translationX + start.value.x;
|
|
77
|
+
yOffset.value = e.translationY + start.value.y;
|
|
78
|
+
}).onEnd(handlePanGestureEnd);
|
|
79
|
+
const longPressGesture = Gesture.LongPress().minDuration(800).maxDistance(1000).onBegin(() => {
|
|
80
|
+
isPressed.value = true;
|
|
81
|
+
}).onFinalize(() => {
|
|
82
|
+
isPressed.value = false;
|
|
83
|
+
});
|
|
84
|
+
React.useEffect(() => {
|
|
85
|
+
handlePanGestureEnd({
|
|
86
|
+
velocityX: 0,
|
|
87
|
+
velocityY: 0
|
|
88
|
+
});
|
|
89
|
+
return () => {
|
|
90
|
+
cancelAnimation(xOffset);
|
|
91
|
+
cancelAnimation(yOffset);
|
|
92
|
+
};
|
|
93
|
+
}, [minimized]);
|
|
94
|
+
const handleMaximize = () => {
|
|
95
|
+
LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut);
|
|
96
|
+
dispatch(setInsetViewMinimized(false));
|
|
97
|
+
};
|
|
98
|
+
if (!miniviewPeerTrackNode) {
|
|
99
|
+
return null;
|
|
100
|
+
}
|
|
101
|
+
return /*#__PURE__*/React.createElement(GestureDetector, {
|
|
102
|
+
gesture: Gesture.Simultaneous(panGesture, longPressGesture)
|
|
103
|
+
}, /*#__PURE__*/React.createElement(Animated.View, {
|
|
104
|
+
style: [styles.miniAnimatedView, dimensionStyles, animatedStyles]
|
|
105
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
106
|
+
style: styles.contentContainer
|
|
107
|
+
}, minimized ? /*#__PURE__*/React.createElement(PeerMinimizedView, {
|
|
108
|
+
peerTrackNode: miniviewPeerTrackNode,
|
|
109
|
+
onMaximizePress: handleMaximize
|
|
110
|
+
}) : /*#__PURE__*/React.createElement(PeerVideoTileView, {
|
|
111
|
+
peerTrackNode: miniviewPeerTrackNode,
|
|
112
|
+
insetMode: true,
|
|
113
|
+
onMoreOptionsPress: onMoreOptionsPress
|
|
114
|
+
}))));
|
|
115
|
+
};
|
|
116
|
+
const styles = StyleSheet.create({
|
|
117
|
+
miniAnimatedView: {
|
|
118
|
+
position: 'absolute',
|
|
119
|
+
bottom: cornerOffset.y,
|
|
120
|
+
right: cornerOffset.x,
|
|
121
|
+
zIndex: 1,
|
|
122
|
+
elevation: 3,
|
|
123
|
+
shadowOffset: {
|
|
124
|
+
height: 3,
|
|
125
|
+
width: 2
|
|
126
|
+
},
|
|
127
|
+
shadowOpacity: 0.3,
|
|
128
|
+
shadowRadius: 4
|
|
129
|
+
},
|
|
130
|
+
contentContainer: {
|
|
131
|
+
flex: 1,
|
|
132
|
+
overflow: 'hidden',
|
|
133
|
+
borderRadius: 8
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
const getSnappingPoints = (currentValueX, currentValueY, compWidth, compHeight, xCornerOffset, yCornerOffset, boundingBox) => {
|
|
137
|
+
'worklet';
|
|
138
|
+
|
|
139
|
+
if (!boundingBox) {
|
|
140
|
+
return {
|
|
141
|
+
snapPointX: 0,
|
|
142
|
+
snapPointY: 0
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
const {
|
|
146
|
+
height,
|
|
147
|
+
width
|
|
148
|
+
} = boundingBox;
|
|
149
|
+
return {
|
|
150
|
+
snapPointX: Math.abs(currentValueX) + compWidth < width / 2 ? 0 : -width + compWidth + xCornerOffset * 2,
|
|
151
|
+
snapPointY: Math.abs(currentValueY) + compHeight < height / 2 ? 0 : -height + compHeight + yCornerOffset * 2
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
//# sourceMappingURL=MiniView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useDispatch","useSelector","StyleSheet","View","LayoutAnimation","GestureDetector","Gesture","Animated","cancelAnimation","useAnimatedStyle","useSharedValue","withSpring","PeerVideoTileView","PeerMinimizedView","usePeerMinimizedViewDimensions","setInsetViewMinimized","cornerOffset","x","y","MiniView","_ref","boundingBoxRef","onMoreOptionsPress","isPressed","xOffset","yOffset","start","dispatch","minimized","state","app","insetViewMinimized","miniviewPeerTrackNode","height","minimizedViewHeigth","width","minimizedViewWidth","size","dimensionStyles","animatedStyles","transform","translateX","value","translateY","scale","handlePanGestureEnd","e","snapPointX","snapPointY","getSnappingPoints","current","finalX","finalY","damping","stiffness","velocity","velocityX","velocityY","panGesture","Pan","onUpdate","translationX","translationY","onEnd","longPressGesture","LongPress","minDuration","maxDistance","onBegin","onFinalize","useEffect","handleMaximize","configureNext","Presets","easeInEaseOut","createElement","gesture","Simultaneous","style","styles","miniAnimatedView","contentContainer","peerTrackNode","onMaximizePress","insetMode","create","position","bottom","right","zIndex","elevation","shadowOffset","shadowOpacity","shadowRadius","flex","overflow","borderRadius","currentValueX","currentValueY","compWidth","compHeight","xCornerOffset","yCornerOffset","boundingBox","Math","abs"],"sourceRoot":"../../../src","sources":["components/MiniView.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAE9B,SAASC,WAAW,EAAEC,WAAW,QAAQ,aAAa;AACtD,SAASC,UAAU,EAAEC,IAAI,EAAEC,eAAe,QAAQ,cAAc;AAEhE,SAASC,eAAe,EAAEC,OAAO,QAAQ,8BAA8B;AACvE,OAAOC,QAAQ,IACbC,eAAe,EACfC,gBAAgB,EAChBC,cAAc,EACdC,UAAU,QACL,yBAAyB;AAEhC,SAASC,iBAAiB,QAAQ,mCAAmC;AAErE,SACEC,iBAAiB,EACjBC,8BAA8B,QACzB,qBAAqB;AAE5B,SAASC,qBAAqB,QAAQ,kBAAkB;AAExD,MAAMC,YAAY,GAAG;EACnBC,CAAC,EAAE,CAAC;EACJC,CAAC,EAAE;AACL,CAAC;AAOD,OAAO,MAAMC,QAAoD,GAAGC,IAAA,IAG9D;EAAA,IAH+D;IACnEC,cAAc;IACdC;EACF,CAAC,GAAAF,IAAA;EACC,MAAMG,SAAS,GAAGb,cAAc,CAAC,KAAK,CAAC;EACvC,MAAMc,OAAO,GAAGd,cAAc,CAAC,CAAC,CAAC;EACjC,MAAMe,OAAO,GAAGf,cAAc,CAAC,CAAC,CAAC;EACjC,MAAMgB,KAAK,GAAGhB,cAAc,CAAC;IAAEO,CAAC,EAAE,CAAC;IAAEC,CAAC,EAAE;EAAE,CAAC,CAAC;EAC5C,MAAMS,QAAQ,GAAG3B,WAAW,CAAC,CAAC;EAE9B,MAAM4B,SAAS,GAAG3B,WAAW,CAC1B4B,KAAgB,IAAKA,KAAK,CAACC,GAAG,CAACC,kBAClC,CAAC;EACD,MAAMC,qBAAqB,GAAG/B,WAAW,CACtC4B,KAAgB,IAAKA,KAAK,CAACC,GAAG,CAACE,qBAClC,CAAC;EAED,MAAM;IAAEC,MAAM,EAAEC,mBAAmB;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M/C,iBAAiB,GAAGA,CACxBgD,aAAqB,EACrBC,aAAqB,EACrBC,SAAiB,EACjBC,UAAkB,EAClBC,aAAqB,EACrBC,aAAqB,EACrBC,WAAqD,KAClD;EACH,SAAS;;EACT,IAAI,CAACA,WAAW,EAAE;IAChB,OAAO;MACLxD,UAAU,EAAE,CAAC;MACbC,UAAU,EAAE;IACd,CAAC;EACH;EACA,MAAM;IAAEf,MAAM;IAAEE;EAAM,CAAC,GAAGoE,WAAW;EAErC,OAAO;IACLxD,UAAU,EACRyD,IAAI,CAACC,GAAG,CAACR,aAAa,CAAC,GAAGE,SAAS,GAAGhE,KAAK,GAAG,CAAC,GAC3C,CAAC,GACD,CAACA,KAAK,GAAGgE,SAAS,GAAGE,aAAa,GAAG,CAAC;IAC5CrD,UAAU,EACRwD,IAAI,CAACC,GAAG,CAACP,aAAa,CAAC,GAAGE,UAAU,GAAGnE,MAAM,GAAG,CAAC,GAC7C,CAAC,GACD,CAACA,MAAM,GAAGmE,UAAU,GAAGE,aAAa,GAAG;EAC/C,CAAC;AACH,CAAC"}
|
|
@@ -9,10 +9,9 @@ import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityI
|
|
|
9
9
|
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
|
|
10
10
|
import { styles } from './styles';
|
|
11
11
|
import { CustomButton } from './CustomButton';
|
|
12
|
-
import { CustomInput } from './CustomInput';
|
|
13
12
|
import { Menu, MenuItem } from './MenuModal';
|
|
14
13
|
import { CustomPicker } from './Picker';
|
|
15
|
-
import { changeHLSAspectRatio, changeShowStats
|
|
14
|
+
import { changeHLSAspectRatio, changeShowStats } from '../redux/actions';
|
|
16
15
|
import { getTime } from '../utils/functions';
|
|
17
16
|
import { ModalTypes, SUPPORTED_ASPECT_RATIOS, SortingType } from '../utils/types';
|
|
18
17
|
import { COLORS } from '../utils/theme';
|
|
@@ -124,51 +123,6 @@ export const SaveScreenshot = _ref2 => {
|
|
|
124
123
|
textStyle: styles.roleChangeModalButtonText
|
|
125
124
|
})));
|
|
126
125
|
};
|
|
127
|
-
export const ChangeNameModal = _ref3 => {
|
|
128
|
-
let {
|
|
129
|
-
cancelModal
|
|
130
|
-
} = _ref3;
|
|
131
|
-
const instance = useHMSInstance();
|
|
132
|
-
const peer = useSelector(state => state.app.peerToUpdate);
|
|
133
|
-
const dispatch = useDispatch();
|
|
134
|
-
const [name, setName] = useState(peer === null || peer === void 0 ? void 0 : peer.name);
|
|
135
|
-
const changeName = () => {
|
|
136
|
-
if (name.length > 0) {
|
|
137
|
-
instance === null || instance === void 0 ? void 0 : instance.changeName(name).then(d => {
|
|
138
|
-
dispatch(saveUserData({
|
|
139
|
-
userName: name
|
|
140
|
-
}));
|
|
141
|
-
console.log('Change Name Success: ', d);
|
|
142
|
-
}).catch(e => console.log('Change Name Error: ', e));
|
|
143
|
-
}
|
|
144
|
-
cancelModal();
|
|
145
|
-
};
|
|
146
|
-
return /*#__PURE__*/React.createElement(View, {
|
|
147
|
-
style: styles.volumeModalContainer
|
|
148
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
149
|
-
style: styles.roleChangeModalHeading
|
|
150
|
-
}, "Change Name"), /*#__PURE__*/React.createElement(View, {
|
|
151
|
-
style: styles.volumeModalSlider
|
|
152
|
-
}, /*#__PURE__*/React.createElement(CustomInput, {
|
|
153
|
-
value: name,
|
|
154
|
-
onChangeText: setName,
|
|
155
|
-
inputStyle: styles.participantChangeNameInput,
|
|
156
|
-
placeholderTextColor: COLORS.TEXT.DISABLED,
|
|
157
|
-
placeholder: "Find what you\u2019re looking for"
|
|
158
|
-
})), /*#__PURE__*/React.createElement(View, {
|
|
159
|
-
style: styles.roleChangeModalPermissionContainer
|
|
160
|
-
}, /*#__PURE__*/React.createElement(CustomButton, {
|
|
161
|
-
title: "Cancel",
|
|
162
|
-
onPress: cancelModal,
|
|
163
|
-
viewStyle: styles.roleChangeModalCancelButton,
|
|
164
|
-
textStyle: styles.roleChangeModalButtonText
|
|
165
|
-
}), /*#__PURE__*/React.createElement(CustomButton, {
|
|
166
|
-
title: "Change",
|
|
167
|
-
onPress: changeName,
|
|
168
|
-
viewStyle: styles.roleChangeModalSuccessButton,
|
|
169
|
-
textStyle: styles.roleChangeModalButtonText
|
|
170
|
-
})));
|
|
171
|
-
};
|
|
172
126
|
export const RtcStatsModal = () => {
|
|
173
127
|
var _currentTrack$track;
|
|
174
128
|
const dispatch = useDispatch();
|
|
@@ -319,11 +273,11 @@ export const RtcStatsModal = () => {
|
|
|
319
273
|
}, key === 'resolution' ? `Height: ${(value === null || value === void 0 ? void 0 : value.height) ?? 0}, Width: ${(value === null || value === void 0 ? void 0 : value.width) ?? 0}` : value));
|
|
320
274
|
}) : null));
|
|
321
275
|
};
|
|
322
|
-
export const LeaveRoomModal =
|
|
276
|
+
export const LeaveRoomModal = _ref3 => {
|
|
323
277
|
let {
|
|
324
278
|
onSuccess,
|
|
325
279
|
cancelModal
|
|
326
|
-
} =
|
|
280
|
+
} = _ref3;
|
|
327
281
|
const onLeave = () => {
|
|
328
282
|
cancelModal();
|
|
329
283
|
onSuccess();
|
|
@@ -356,47 +310,10 @@ export const LeaveRoomModal = _ref4 => {
|
|
|
356
310
|
textStyle: styles.roleChangeModalButtonText
|
|
357
311
|
})));
|
|
358
312
|
};
|
|
359
|
-
export const
|
|
313
|
+
export const ChangeAudioOutputModal = _ref4 => {
|
|
360
314
|
let {
|
|
361
|
-
onSuccess,
|
|
362
315
|
cancelModal
|
|
363
|
-
} =
|
|
364
|
-
const onEnd = () => {
|
|
365
|
-
cancelModal();
|
|
366
|
-
onSuccess();
|
|
367
|
-
};
|
|
368
|
-
return /*#__PURE__*/React.createElement(View, {
|
|
369
|
-
style: styles.volumeModalContainer
|
|
370
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
371
|
-
style: styles.participantMenuItem
|
|
372
|
-
}, /*#__PURE__*/React.createElement(Feather, {
|
|
373
|
-
name: "alert-triangle",
|
|
374
|
-
style: [styles.participantMenuItemIcon, styles.error],
|
|
375
|
-
size: 24
|
|
376
|
-
}), /*#__PURE__*/React.createElement(Text, {
|
|
377
|
-
style: [styles.roleChangeModalHeading, styles.error]
|
|
378
|
-
}, "End Session")), /*#__PURE__*/React.createElement(View, {
|
|
379
|
-
style: styles.roleChangeModalPermissionContainer
|
|
380
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
381
|
-
style: styles.roleChangeModalDescription
|
|
382
|
-
}, "The session will end for everyone and all the activities will stop. You can\u2019t undo this action.")), /*#__PURE__*/React.createElement(View, {
|
|
383
|
-
style: styles.roleChangeModalPermissionContainer
|
|
384
|
-
}, /*#__PURE__*/React.createElement(CustomButton, {
|
|
385
|
-
title: "Don\u2019t End",
|
|
386
|
-
onPress: cancelModal,
|
|
387
|
-
viewStyle: styles.roleChangeModalCancelButton,
|
|
388
|
-
textStyle: styles.roleChangeModalButtonText
|
|
389
|
-
}), /*#__PURE__*/React.createElement(CustomButton, {
|
|
390
|
-
title: "End Session",
|
|
391
|
-
onPress: onEnd,
|
|
392
|
-
viewStyle: [styles.roleChangeModalSuccessButton, styles.errorContainer],
|
|
393
|
-
textStyle: styles.roleChangeModalButtonText
|
|
394
|
-
})));
|
|
395
|
-
};
|
|
396
|
-
export const ChangeAudioOutputModal = _ref6 => {
|
|
397
|
-
let {
|
|
398
|
-
cancelModal
|
|
399
|
-
} = _ref6;
|
|
316
|
+
} = _ref4;
|
|
400
317
|
const instance = useHMSInstance();
|
|
401
318
|
const [currentOutputDevice, setCurrentOutputDevice] = useState(HMSAudioDevice.SPEAKER_PHONE);
|
|
402
319
|
const [audioOutputDevicesList, setAudioOutputDevicesList] = useState([]);
|
|
@@ -445,10 +362,10 @@ export const ChangeAudioOutputModal = _ref6 => {
|
|
|
445
362
|
textStyle: styles.roleChangeModalButtonText
|
|
446
363
|
})));
|
|
447
364
|
};
|
|
448
|
-
export const ChangeAspectRatio =
|
|
365
|
+
export const ChangeAspectRatio = _ref5 => {
|
|
449
366
|
let {
|
|
450
367
|
cancelModal
|
|
451
|
-
} =
|
|
368
|
+
} = _ref5;
|
|
452
369
|
const {
|
|
453
370
|
height
|
|
454
371
|
} = useWindowDimensions();
|
|
@@ -499,12 +416,12 @@ export const ChangeAspectRatio = _ref7 => {
|
|
|
499
416
|
textStyle: styles.roleChangeModalButtonText
|
|
500
417
|
})));
|
|
501
418
|
};
|
|
502
|
-
export const ChangeAudioModeModal =
|
|
419
|
+
export const ChangeAudioModeModal = _ref6 => {
|
|
503
420
|
let {
|
|
504
421
|
cancelModal,
|
|
505
422
|
audioMode,
|
|
506
423
|
setAudioMode
|
|
507
|
-
} =
|
|
424
|
+
} = _ref6;
|
|
508
425
|
const instance = useHMSInstance();
|
|
509
426
|
const [currentAudioMode, setCurrentAudioMode] = useState(audioMode);
|
|
510
427
|
const AudioModeList = ['MODE_NORMAL', 'MODE_RINGTONE', 'MODE_IN_CALL', 'MODE_IN_COMMUNICATION', 'MODE_CALL_SCREENING'];
|
|
@@ -547,12 +464,12 @@ export const ChangeAudioModeModal = _ref8 => {
|
|
|
547
464
|
textStyle: styles.roleChangeModalButtonText
|
|
548
465
|
})));
|
|
549
466
|
};
|
|
550
|
-
export const ChangeAudioMixingModeModal =
|
|
467
|
+
export const ChangeAudioMixingModeModal = _ref7 => {
|
|
551
468
|
let {
|
|
552
469
|
newAudioMixingMode,
|
|
553
470
|
cancelModal,
|
|
554
471
|
setNewAudioMixingMode
|
|
555
|
-
} =
|
|
472
|
+
} = _ref7;
|
|
556
473
|
const instance = useHMSInstance();
|
|
557
474
|
const changeAudioMixingMode = async () => {
|
|
558
475
|
await (instance === null || instance === void 0 ? void 0 : instance.setAudioMixingMode(newAudioMixingMode));
|
|
@@ -594,13 +511,13 @@ export const ChangeAudioMixingModeModal = _ref9 => {
|
|
|
594
511
|
textStyle: styles.roleChangeModalButtonText
|
|
595
512
|
})));
|
|
596
513
|
};
|
|
597
|
-
export const ChangeSortingModal =
|
|
514
|
+
export const ChangeSortingModal = _ref8 => {
|
|
598
515
|
let {
|
|
599
516
|
data,
|
|
600
517
|
selectedItem,
|
|
601
518
|
onItemSelected,
|
|
602
519
|
cancelModal
|
|
603
|
-
} =
|
|
520
|
+
} = _ref8;
|
|
604
521
|
const [sortingType, setSortingType] = useState(selectedItem || SortingType.DEFAULT);
|
|
605
522
|
const changeSorting = () => {
|
|
606
523
|
onItemSelected(sortingType);
|
|
@@ -629,13 +546,13 @@ export const ChangeSortingModal = _ref10 => {
|
|
|
629
546
|
textStyle: styles.roleChangeModalButtonText
|
|
630
547
|
})));
|
|
631
548
|
};
|
|
632
|
-
export const ChangeLayoutModal =
|
|
549
|
+
export const ChangeLayoutModal = _ref9 => {
|
|
633
550
|
let {
|
|
634
551
|
data,
|
|
635
552
|
selectedItem,
|
|
636
553
|
onItemSelected,
|
|
637
554
|
cancelModal
|
|
638
|
-
} =
|
|
555
|
+
} = _ref9;
|
|
639
556
|
const [layout, setLayout] = useState(selectedItem);
|
|
640
557
|
const changeLayout = () => {
|
|
641
558
|
onItemSelected(layout);
|
|
@@ -664,11 +581,11 @@ export const ChangeLayoutModal = _ref11 => {
|
|
|
664
581
|
textStyle: styles.roleChangeModalButtonText
|
|
665
582
|
})));
|
|
666
583
|
};
|
|
667
|
-
export const ChangeTrackStateForRoleModal =
|
|
584
|
+
export const ChangeTrackStateForRoleModal = _ref10 => {
|
|
668
585
|
var _localPeerRole$permis, _localPeerRole$permis2;
|
|
669
586
|
let {
|
|
670
587
|
cancelModal
|
|
671
|
-
} =
|
|
588
|
+
} = _ref10;
|
|
672
589
|
const instance = useHMSInstance();
|
|
673
590
|
const roles = useSelector(state => state.hmsStates.roles);
|
|
674
591
|
const localPeerRole = useSelector(state => {
|
|
@@ -783,12 +700,12 @@ export const ChangeTrackStateForRoleModal = _ref12 => {
|
|
|
783
700
|
textStyle: styles.roleChangeModalButtonText
|
|
784
701
|
})));
|
|
785
702
|
};
|
|
786
|
-
export const ChangeTrackStateModal =
|
|
703
|
+
export const ChangeTrackStateModal = _ref11 => {
|
|
787
704
|
var _roleChangeRequest$re, _roleChangeRequest$su2;
|
|
788
705
|
let {
|
|
789
706
|
roleChangeRequest,
|
|
790
707
|
cancelModal
|
|
791
|
-
} =
|
|
708
|
+
} = _ref11;
|
|
792
709
|
const localPeer = useSelector(state => state.hmsStates.localPeer);
|
|
793
710
|
const changeLayout = () => {
|
|
794
711
|
var _roleChangeRequest$su;
|
|
@@ -821,10 +738,10 @@ export const ChangeTrackStateModal = _ref13 => {
|
|
|
821
738
|
textStyle: styles.roleChangeModalButtonText
|
|
822
739
|
})));
|
|
823
740
|
};
|
|
824
|
-
export const HlsStreamingModal =
|
|
741
|
+
export const HlsStreamingModal = _ref12 => {
|
|
825
742
|
let {
|
|
826
743
|
cancelModal
|
|
827
|
-
} =
|
|
744
|
+
} = _ref12;
|
|
828
745
|
const instance = useHMSInstance();
|
|
829
746
|
const roomID = useSelector(state => state.user.roomID);
|
|
830
747
|
const [hlsStreamingDetails, setHLSStreamingDetails] = useState({
|
|
@@ -915,10 +832,10 @@ export const HlsStreamingModal = _ref14 => {
|
|
|
915
832
|
textStyle: styles.roleChangeModalButtonText
|
|
916
833
|
})));
|
|
917
834
|
};
|
|
918
|
-
export const RecordingModal =
|
|
835
|
+
export const RecordingModal = _ref13 => {
|
|
919
836
|
let {
|
|
920
837
|
setModalVisible
|
|
921
|
-
} =
|
|
838
|
+
} = _ref13;
|
|
922
839
|
const instance = useHMSInstance();
|
|
923
840
|
const roomID = useSelector(state => state.user.roomID);
|
|
924
841
|
const [recordingDetails, setRecordingDetails] = useState({
|
|
@@ -998,13 +915,13 @@ export const RecordingModal = _ref15 => {
|
|
|
998
915
|
textStyle: styles.roleChangeModalButtonText
|
|
999
916
|
})));
|
|
1000
917
|
};
|
|
1001
|
-
export const ChangeRoleAccepteModal =
|
|
918
|
+
export const ChangeRoleAccepteModal = _ref14 => {
|
|
1002
919
|
var _roleChangeRequest$re2, _roleChangeRequest$su3;
|
|
1003
920
|
let {
|
|
1004
921
|
instance,
|
|
1005
922
|
roleChangeRequest,
|
|
1006
923
|
cancelModal
|
|
1007
|
-
} =
|
|
924
|
+
} = _ref14;
|
|
1008
925
|
const changeLayout = () => {
|
|
1009
926
|
instance === null || instance === void 0 ? void 0 : instance.acceptRoleChange();
|
|
1010
927
|
cancelModal();
|
|
@@ -1029,11 +946,11 @@ export const ChangeRoleAccepteModal = _ref16 => {
|
|
|
1029
946
|
textStyle: styles.roleChangeModalButtonText
|
|
1030
947
|
})));
|
|
1031
948
|
};
|
|
1032
|
-
export const EndHlsModal =
|
|
949
|
+
export const EndHlsModal = _ref15 => {
|
|
1033
950
|
let {
|
|
1034
951
|
onSuccess,
|
|
1035
952
|
cancelModal
|
|
1036
|
-
} =
|
|
953
|
+
} = _ref15;
|
|
1037
954
|
const onEnd = () => {
|
|
1038
955
|
cancelModal();
|
|
1039
956
|
onSuccess();
|
|
@@ -1066,10 +983,10 @@ export const EndHlsModal = _ref17 => {
|
|
|
1066
983
|
textStyle: styles.roleChangeModalButtonText
|
|
1067
984
|
})));
|
|
1068
985
|
};
|
|
1069
|
-
export const RealTime =
|
|
986
|
+
export const RealTime = _ref16 => {
|
|
1070
987
|
let {
|
|
1071
988
|
startedAt
|
|
1072
|
-
} =
|
|
989
|
+
} = _ref16;
|
|
1073
990
|
const [hour, setHour] = useState(0);
|
|
1074
991
|
const [minute, setMinute] = useState(0);
|
|
1075
992
|
const [second, setSecond] = useState(0);
|
|
@@ -1123,10 +1040,10 @@ var RoleSelection = /*#__PURE__*/function (RoleSelection) {
|
|
|
1123
1040
|
RoleSelection["TO_CHANGE"] = "TO_CHANGE";
|
|
1124
1041
|
return RoleSelection;
|
|
1125
1042
|
}(RoleSelection || {});
|
|
1126
|
-
export const ChangeBulkRoleModal =
|
|
1043
|
+
export const ChangeBulkRoleModal = _ref17 => {
|
|
1127
1044
|
let {
|
|
1128
1045
|
cancelModal
|
|
1129
|
-
} =
|
|
1046
|
+
} = _ref17;
|
|
1130
1047
|
const hmsInstance = useSelector(state => state.user.hmsInstance);
|
|
1131
1048
|
const roles = useSelector(state => state.hmsStates.roles);
|
|
1132
1049
|
const [showRolesSelectionView, setShowRolesSelectionView] = useState(null);
|