@100mslive/react-native-room-kit 0.2.0 → 1.0.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 +1 -10
- package/lib/commonjs/HMSPrebuilt.js +6 -6
- package/lib/commonjs/HMSPrebuilt.js.map +1 -1
- package/lib/commonjs/HMSRoomSetup.js +27 -30
- package/lib/commonjs/HMSRoomSetup.js.map +1 -1
- package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle-filled.png +0 -0
- package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle-filled@2x.png +0 -0
- package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle-filled@3x.png +0 -0
- package/lib/commonjs/Icons/AlertTriangle/index.js +2 -1
- package/lib/commonjs/Icons/AlertTriangle/index.js.map +1 -1
- package/lib/commonjs/Icons/Eye/assets/eye-on-small.png +0 -0
- package/lib/commonjs/Icons/Eye/assets/eye-on-small@2x.png +0 -0
- package/lib/commonjs/Icons/Eye/assets/eye-on-small@3x.png +0 -0
- package/lib/commonjs/Icons/Eye/index.js +35 -0
- package/lib/commonjs/Icons/Eye/index.js.map +1 -0
- package/lib/commonjs/Icons/Person/assets/person-left.png +0 -0
- package/lib/commonjs/Icons/Person/assets/person-left@2x.png +0 -0
- package/lib/commonjs/Icons/Person/assets/person-left@3x.png +0 -0
- package/lib/commonjs/Icons/Person/assets/person-off.png +0 -0
- package/lib/commonjs/Icons/Person/assets/person-off@2x.png +0 -0
- package/lib/commonjs/Icons/Person/assets/person-off@3x.png +0 -0
- package/lib/commonjs/Icons/Person/assets/person-rectangle.png +0 -0
- package/lib/commonjs/Icons/Person/assets/person-rectangle@2x.png +0 -0
- package/lib/commonjs/Icons/Person/assets/person-rectangle@3x.png +0 -0
- package/lib/commonjs/Icons/Person/index.js +2 -1
- package/lib/commonjs/Icons/Person/index.js.map +1 -1
- package/lib/commonjs/Icons/Search/assets/search.png +0 -0
- package/lib/commonjs/Icons/Search/assets/search@2x.png +0 -0
- package/lib/commonjs/Icons/Search/assets/search@3x.png +0 -0
- package/lib/commonjs/Icons/Search/index.js +34 -0
- package/lib/commonjs/Icons/Search/index.js.map +1 -0
- package/lib/commonjs/Icons/index.js +22 -0
- package/lib/commonjs/Icons/index.js.map +1 -1
- package/lib/commonjs/assets/audio-level-white.json +1271 -0
- package/lib/commonjs/assets/empty-chat-illustration/empty-chat.png +0 -0
- package/lib/commonjs/assets/empty-chat-illustration/empty-chat@2x.png +0 -0
- package/lib/commonjs/assets/empty-chat-illustration/empty-chat@3x.png +0 -0
- package/lib/commonjs/assets/welcome.png +0 -0
- package/lib/commonjs/components/AnimatedFooter.js +35 -0
- package/lib/commonjs/components/AnimatedFooter.js.map +1 -0
- package/lib/commonjs/components/AnimatedHLSFooter.js +36 -0
- package/lib/commonjs/components/AnimatedHLSFooter.js.map +1 -0
- package/lib/commonjs/components/AnimatedHeader.js +44 -0
- package/lib/commonjs/components/AnimatedHeader.js.map +1 -0
- package/lib/commonjs/components/BottomSheet.js +6 -3
- package/lib/commonjs/components/BottomSheet.js.map +1 -1
- package/lib/commonjs/components/ChangeNameModalContent.js +0 -12
- package/lib/commonjs/components/ChangeNameModalContent.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatBanner.js +35 -55
- package/lib/commonjs/components/Chat/ChatBanner.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js +83 -0
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js.map +1 -0
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js +69 -0
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js.map +1 -0
- package/lib/commonjs/components/Chat/ChatFilterItem.js +71 -0
- package/lib/commonjs/components/Chat/ChatFilterItem.js.map +1 -0
- package/lib/commonjs/components/Chat/ChatFilterView.js +198 -0
- package/lib/commonjs/components/Chat/ChatFilterView.js.map +1 -0
- package/lib/commonjs/components/Chat/ChatList.js +6 -6
- package/lib/commonjs/components/Chat/ChatList.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatMessage.js +35 -135
- package/lib/commonjs/components/Chat/ChatMessage.js.map +1 -1
- package/lib/commonjs/components/Chat/PinnedMessage.js +39 -43
- package/lib/commonjs/components/Chat/PinnedMessage.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js +42 -0
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js.map +1 -0
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsHeader.js +105 -0
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsHeader.js.map +1 -0
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js +66 -0
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js.map +1 -0
- package/lib/commonjs/components/ChatAndParticipants/ChatView.js +37 -0
- package/lib/commonjs/components/ChatAndParticipants/ChatView.js.map +1 -0
- package/lib/commonjs/components/{Participants/SearchableParticipantsView.js → ChatAndParticipants/ParticipantsView.js} +24 -12
- package/lib/commonjs/components/ChatAndParticipants/ParticipantsView.js.map +1 -0
- package/lib/commonjs/components/ChatAndParticipants/index.js +17 -0
- package/lib/commonjs/components/ChatAndParticipants/index.js.map +1 -0
- package/lib/commonjs/components/CompanyLogo.js +4 -3
- package/lib/commonjs/components/CompanyLogo.js.map +1 -1
- package/lib/commonjs/components/DefaultModal.js +2 -6
- package/lib/commonjs/components/DefaultModal.js.map +1 -1
- package/lib/commonjs/components/DisplayView.js +6 -19
- package/lib/commonjs/components/DisplayView.js.map +1 -1
- package/lib/commonjs/components/EndRoomModalContent.js +20 -6
- package/lib/commonjs/components/EndRoomModalContent.js.map +1 -1
- package/lib/commonjs/components/Footer.js +37 -28
- package/lib/commonjs/components/Footer.js.map +1 -1
- package/lib/commonjs/components/FullScreenVideoView.js +74 -0
- package/lib/commonjs/components/FullScreenVideoView.js.map +1 -0
- package/lib/commonjs/components/GridView.js +129 -48
- package/lib/commonjs/components/GridView.js.map +1 -1
- package/lib/commonjs/components/{ParticipantsModal.js → HLSFooter.js} +19 -27
- package/lib/commonjs/components/HLSFooter.js.map +1 -0
- package/lib/commonjs/components/HLSView.js +10 -22
- package/lib/commonjs/components/HLSView.js.map +1 -1
- package/lib/commonjs/components/HMSChat.js +15 -14
- package/lib/commonjs/components/HMSChat.js.map +1 -1
- package/lib/commonjs/components/HMSHLSMessage.js +67 -0
- package/lib/commonjs/components/HMSHLSMessage.js.map +1 -0
- package/lib/commonjs/components/HMSHLSMessageList.js +58 -0
- package/lib/commonjs/components/HMSHLSMessageList.js.map +1 -0
- package/lib/commonjs/components/HMSHLSNotStarted.js +1 -6
- package/lib/commonjs/components/HMSHLSNotStarted.js.map +1 -1
- package/lib/commonjs/components/HMSHandRaiseNotification.js +84 -0
- package/lib/commonjs/components/HMSHandRaiseNotification.js.map +1 -0
- package/lib/commonjs/components/HMSKeyboardAvoidingView.js +49 -0
- package/lib/commonjs/components/HMSKeyboardAvoidingView.js.map +1 -0
- package/lib/commonjs/components/HMSLiveIndicator.js +105 -0
- package/lib/commonjs/components/HMSLiveIndicator.js.map +1 -0
- package/lib/commonjs/components/HMSLocalScreenshareNotification.js +38 -0
- package/lib/commonjs/components/HMSLocalScreenshareNotification.js.map +1 -0
- package/lib/commonjs/components/HMSLocalVideoView.js +4 -23
- package/lib/commonjs/components/HMSLocalVideoView.js.map +1 -1
- package/lib/commonjs/components/HMSManageAudioOutput.js +7 -1
- package/lib/commonjs/components/HMSManageAudioOutput.js.map +1 -1
- package/lib/commonjs/components/HMSManageLeave.js +33 -11
- package/lib/commonjs/components/HMSManageLeave.js.map +1 -1
- package/lib/commonjs/components/HMSNotification.js +96 -0
- package/lib/commonjs/components/HMSNotification.js.map +1 -0
- package/lib/commonjs/components/HMSNotifications.js +114 -0
- package/lib/commonjs/components/HMSNotifications.js.map +1 -0
- package/lib/commonjs/components/HMSOverlayChatView.js +30 -0
- package/lib/commonjs/components/HMSOverlayChatView.js.map +1 -0
- package/lib/commonjs/components/HMSPreviewJoinButton.js +1 -2
- package/lib/commonjs/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewNetworkQuality.js +1 -1
- package/lib/commonjs/components/HMSPreviewNetworkQuality.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewSubtitle.js +1 -3
- package/lib/commonjs/components/HMSPreviewSubtitle.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewTitle.js +1 -3
- package/lib/commonjs/components/HMSPreviewTitle.js.map +1 -1
- package/lib/commonjs/components/HMSRecordingIndicator.js +6 -2
- package/lib/commonjs/components/HMSRecordingIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSRoleChangeDeclinedNotification.js +30 -0
- package/lib/commonjs/components/HMSRoleChangeDeclinedNotification.js.map +1 -0
- package/lib/commonjs/components/HMSSendMessageInput.js +57 -0
- package/lib/commonjs/components/HMSSendMessageInput.js.map +1 -0
- package/lib/commonjs/components/HMSTextInput.js +98 -12
- package/lib/commonjs/components/HMSTextInput.js.map +1 -1
- package/lib/commonjs/components/HMSVideoView.js +43 -0
- package/lib/commonjs/components/HMSVideoView.js.map +1 -0
- package/lib/commonjs/components/Header.js +19 -123
- package/lib/commonjs/components/Header.js.map +1 -1
- package/lib/commonjs/components/LocalPeerScreenshareView.js +1 -7
- package/lib/commonjs/components/LocalPeerScreenshareView.js.map +1 -1
- package/lib/commonjs/components/Meeting.js +6 -5
- package/lib/commonjs/components/Meeting.js.map +1 -1
- package/lib/commonjs/components/MeetingScreenContent.js +21 -8
- package/lib/commonjs/components/MeetingScreenContent.js.map +1 -1
- package/lib/commonjs/components/MenuModal/Menu.js +2 -2
- package/lib/commonjs/components/MenuModal/Menu.js.map +1 -1
- package/lib/commonjs/components/MiniView.js +8 -3
- package/lib/commonjs/components/MiniView.js.map +1 -1
- package/lib/commonjs/components/Modals.js +88 -317
- package/lib/commonjs/components/Modals.js.map +1 -1
- package/lib/commonjs/components/OverlayContainer.js +41 -0
- package/lib/commonjs/components/OverlayContainer.js.map +1 -0
- package/lib/commonjs/components/OverlayedViews.js +22 -0
- package/lib/commonjs/components/OverlayedViews.js.map +1 -0
- package/lib/commonjs/components/PaginationDots.js +4 -4
- package/lib/commonjs/components/PaginationDots.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js +131 -0
- package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsGroupOptions.js +80 -0
- package/lib/commonjs/components/Participants/ParticipantsGroupOptions.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsItem.js +132 -0
- package/lib/commonjs/components/Participants/ParticipantsItem.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsItemOption.js +46 -0
- package/lib/commonjs/components/Participants/ParticipantsItemOption.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsItemOptions.js +220 -0
- package/lib/commonjs/components/Participants/ParticipantsItemOptions.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsList.js +40 -224
- package/lib/commonjs/components/Participants/ParticipantsList.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsSeachInput.js +36 -30
- package/lib/commonjs/components/Participants/ParticipantsSeachInput.js.map +1 -1
- package/lib/commonjs/components/Participants/index.js +0 -33
- package/lib/commonjs/components/Participants/index.js.map +1 -1
- package/lib/commonjs/components/PeerMinimizedView.js +1 -1
- package/lib/commonjs/components/PeerSettingsModalContent.js +47 -123
- package/lib/commonjs/components/PeerSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/AvatarView.js +19 -5
- package/lib/commonjs/components/PeerVideoTile/AvatarView.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/HMSFullScreenButton.js +45 -0
- package/lib/commonjs/components/PeerVideoTile/HMSFullScreenButton.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/HMSPinchGesture.js +202 -0
- package/lib/commonjs/components/PeerVideoTile/HMSPinchGesture.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/{PeerAudioMutedIndicator.js → PeerAudioIndicator.js} +30 -4
- package/lib/commonjs/components/PeerVideoTile/PeerAudioIndicator.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js +10 -2
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js +38 -17
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/VideoView.js +43 -10
- package/lib/commonjs/components/PeerVideoTile/VideoView.js.map +1 -1
- package/lib/commonjs/components/PressableIcon.js +10 -5
- package/lib/commonjs/components/PressableIcon.js.map +1 -1
- package/lib/commonjs/components/Preview.js +5 -14
- package/lib/commonjs/components/Preview.js.map +1 -1
- package/lib/commonjs/components/PreviewForRoleChangeModal.js +332 -0
- package/lib/commonjs/components/PreviewForRoleChangeModal.js.map +1 -0
- package/lib/commonjs/components/ReconnectionView.js +66 -0
- package/lib/commonjs/components/ReconnectionView.js.map +1 -0
- package/lib/commonjs/components/RoomSettingsModalContent.js +25 -34
- package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js +31 -70
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js.map +1 -1
- package/lib/commonjs/components/StreamingQualityModalContent.js +8 -9
- package/lib/commonjs/components/StreamingQualityModalContent.js.map +1 -1
- package/lib/commonjs/components/TilesContainer.js +31 -9
- package/lib/commonjs/components/TilesContainer.js.map +1 -1
- package/lib/commonjs/components/WebrtcView.js +11 -14
- package/lib/commonjs/components/WebrtcView.js.map +1 -1
- package/lib/commonjs/components/WelcomeInMeeting.js +7 -31
- package/lib/commonjs/components/WelcomeInMeeting.js.map +1 -1
- package/lib/commonjs/components/index.js +0 -33
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/hooks-util-selectors.js +43 -9
- package/lib/commonjs/hooks-util-selectors.js.map +1 -1
- package/lib/commonjs/hooks-util.js +619 -213
- package/lib/commonjs/hooks-util.js.map +1 -1
- package/lib/commonjs/modules/HMSManager.js +3 -3
- package/lib/commonjs/modules/HMSManager.js.map +1 -1
- package/lib/commonjs/modules/parser.js +2 -3
- package/lib/commonjs/modules/parser.js.map +1 -1
- package/lib/commonjs/redux/actionTypes.js +25 -1
- package/lib/commonjs/redux/actionTypes.js.map +1 -1
- package/lib/commonjs/redux/actions/index.js +90 -1
- package/lib/commonjs/redux/actions/index.js.map +1 -1
- package/lib/commonjs/redux/reducers/appState.js +77 -2
- package/lib/commonjs/redux/reducers/appState.js.map +1 -1
- package/lib/commonjs/redux/reducers/chatWindow.js +3 -7
- package/lib/commonjs/redux/reducers/chatWindow.js.map +1 -1
- package/lib/commonjs/redux/reducers/hmsStates.js +70 -7
- package/lib/commonjs/redux/reducers/hmsStates.js.map +1 -1
- package/lib/commonjs/utils/functions.js +10 -3
- package/lib/commonjs/utils/functions.js.map +1 -1
- package/lib/commonjs/utils/theme.js +2 -0
- package/lib/commonjs/utils/theme.js.map +1 -1
- package/lib/commonjs/utils/types.js +9 -3
- package/lib/commonjs/utils/types.js.map +1 -1
- package/lib/commonjs/utils.js +8 -1
- package/lib/commonjs/utils.js.map +1 -1
- package/lib/module/HMSPrebuilt.js +6 -6
- package/lib/module/HMSPrebuilt.js.map +1 -1
- package/lib/module/HMSRoomSetup.js +29 -32
- package/lib/module/HMSRoomSetup.js.map +1 -1
- package/lib/module/Icons/AlertTriangle/assets/alert-triangle-filled.png +0 -0
- package/lib/module/Icons/AlertTriangle/assets/alert-triangle-filled@2x.png +0 -0
- package/lib/module/Icons/AlertTriangle/assets/alert-triangle-filled@3x.png +0 -0
- package/lib/module/Icons/AlertTriangle/index.js +2 -1
- package/lib/module/Icons/AlertTriangle/index.js.map +1 -1
- package/lib/module/Icons/Eye/assets/eye-on-small.png +0 -0
- package/lib/module/Icons/Eye/assets/eye-on-small@2x.png +0 -0
- package/lib/module/Icons/Eye/assets/eye-on-small@3x.png +0 -0
- package/lib/module/Icons/Eye/index.js +27 -0
- package/lib/module/Icons/Eye/index.js.map +1 -0
- package/lib/module/Icons/Person/assets/person-left.png +0 -0
- package/lib/module/Icons/Person/assets/person-left@2x.png +0 -0
- package/lib/module/Icons/Person/assets/person-left@3x.png +0 -0
- package/lib/module/Icons/Person/assets/person-off.png +0 -0
- package/lib/module/Icons/Person/assets/person-off@2x.png +0 -0
- package/lib/module/Icons/Person/assets/person-off@3x.png +0 -0
- package/lib/module/Icons/Person/assets/person-rectangle.png +0 -0
- package/lib/module/Icons/Person/assets/person-rectangle@2x.png +0 -0
- package/lib/module/Icons/Person/assets/person-rectangle@3x.png +0 -0
- package/lib/module/Icons/Person/index.js +2 -1
- package/lib/module/Icons/Person/index.js.map +1 -1
- package/lib/module/Icons/Search/assets/search.png +0 -0
- package/lib/module/Icons/Search/assets/search@2x.png +0 -0
- package/lib/module/Icons/Search/assets/search@3x.png +0 -0
- package/lib/module/Icons/Search/index.js +26 -0
- package/lib/module/Icons/Search/index.js.map +1 -0
- package/lib/module/Icons/index.js +2 -0
- package/lib/module/Icons/index.js.map +1 -1
- package/lib/module/assets/audio-level-white.json +1271 -0
- package/lib/module/assets/empty-chat-illustration/empty-chat.png +0 -0
- package/lib/module/assets/empty-chat-illustration/empty-chat@2x.png +0 -0
- package/lib/module/assets/empty-chat-illustration/empty-chat@3x.png +0 -0
- package/lib/module/assets/welcome.png +0 -0
- package/lib/module/components/AnimatedFooter.js +26 -0
- package/lib/module/components/AnimatedFooter.js.map +1 -0
- package/lib/module/components/AnimatedHLSFooter.js +27 -0
- package/lib/module/components/AnimatedHLSFooter.js.map +1 -0
- package/lib/module/components/AnimatedHeader.js +35 -0
- package/lib/module/components/AnimatedHeader.js.map +1 -0
- package/lib/module/components/BottomSheet.js +6 -3
- package/lib/module/components/BottomSheet.js.map +1 -1
- package/lib/module/components/ChangeNameModalContent.js +2 -14
- package/lib/module/components/ChangeNameModalContent.js.map +1 -1
- package/lib/module/components/Chat/ChatBanner.js +36 -55
- package/lib/module/components/Chat/ChatBanner.js.map +1 -1
- package/lib/module/components/Chat/ChatFilterBottomSheetOpener.js +74 -0
- package/lib/module/components/Chat/ChatFilterBottomSheetOpener.js.map +1 -0
- package/lib/module/components/Chat/ChatFilterBottomSheetView.js +60 -0
- package/lib/module/components/Chat/ChatFilterBottomSheetView.js.map +1 -0
- package/lib/module/components/Chat/ChatFilterItem.js +62 -0
- package/lib/module/components/Chat/ChatFilterItem.js.map +1 -0
- package/lib/module/components/Chat/ChatFilterView.js +189 -0
- package/lib/module/components/Chat/ChatFilterView.js.map +1 -0
- package/lib/module/components/Chat/ChatList.js +6 -6
- package/lib/module/components/Chat/ChatList.js.map +1 -1
- package/lib/module/components/Chat/ChatMessage.js +36 -135
- package/lib/module/components/Chat/ChatMessage.js.map +1 -1
- package/lib/module/components/Chat/PinnedMessage.js +40 -43
- package/lib/module/components/Chat/PinnedMessage.js.map +1 -1
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js +33 -0
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js.map +1 -0
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsHeader.js +96 -0
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsHeader.js.map +1 -0
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsView.js +57 -0
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsView.js.map +1 -0
- package/lib/module/components/ChatAndParticipants/ChatView.js +28 -0
- package/lib/module/components/ChatAndParticipants/ChatView.js.map +1 -0
- package/lib/module/components/ChatAndParticipants/ParticipantsView.js +30 -0
- package/lib/module/components/ChatAndParticipants/ParticipantsView.js.map +1 -0
- package/lib/module/components/ChatAndParticipants/index.js +2 -0
- package/lib/module/components/ChatAndParticipants/index.js.map +1 -0
- package/lib/module/components/CompanyLogo.js +4 -3
- package/lib/module/components/CompanyLogo.js.map +1 -1
- package/lib/module/components/DefaultModal.js +2 -6
- package/lib/module/components/DefaultModal.js.map +1 -1
- package/lib/module/components/DisplayView.js +7 -20
- package/lib/module/components/DisplayView.js.map +1 -1
- package/lib/module/components/EndRoomModalContent.js +20 -6
- package/lib/module/components/EndRoomModalContent.js.map +1 -1
- package/lib/module/components/Footer.js +39 -30
- package/lib/module/components/Footer.js.map +1 -1
- package/lib/module/components/FullScreenVideoView.js +64 -0
- package/lib/module/components/FullScreenVideoView.js.map +1 -0
- package/lib/module/components/GridView.js +130 -49
- package/lib/module/components/GridView.js.map +1 -1
- package/lib/module/components/HLSFooter.js +26 -0
- package/lib/module/components/HLSFooter.js.map +1 -0
- package/lib/module/components/HLSView.js +11 -23
- package/lib/module/components/HLSView.js.map +1 -1
- package/lib/module/components/HMSChat.js +16 -15
- package/lib/module/components/HMSChat.js.map +1 -1
- package/lib/module/components/HMSHLSMessage.js +58 -0
- package/lib/module/components/HMSHLSMessage.js.map +1 -0
- package/lib/module/components/HMSHLSMessageList.js +49 -0
- package/lib/module/components/HMSHLSMessageList.js.map +1 -0
- package/lib/module/components/HMSHLSNotStarted.js +2 -7
- package/lib/module/components/HMSHLSNotStarted.js.map +1 -1
- package/lib/module/components/HMSHandRaiseNotification.js +75 -0
- package/lib/module/components/HMSHandRaiseNotification.js.map +1 -0
- package/lib/module/components/HMSKeyboardAvoidingView.js +40 -0
- package/lib/module/components/HMSKeyboardAvoidingView.js.map +1 -0
- package/lib/module/components/HMSLiveIndicator.js +96 -0
- package/lib/module/components/HMSLiveIndicator.js.map +1 -0
- package/lib/module/components/HMSLocalScreenshareNotification.js +29 -0
- package/lib/module/components/HMSLocalScreenshareNotification.js.map +1 -0
- package/lib/module/components/HMSLocalVideoView.js +4 -23
- package/lib/module/components/HMSLocalVideoView.js.map +1 -1
- package/lib/module/components/HMSManageAudioOutput.js +8 -2
- package/lib/module/components/HMSManageAudioOutput.js.map +1 -1
- package/lib/module/components/HMSManageLeave.js +35 -13
- package/lib/module/components/HMSManageLeave.js.map +1 -1
- package/lib/module/components/HMSNotification.js +87 -0
- package/lib/module/components/HMSNotification.js.map +1 -0
- package/lib/module/components/HMSNotifications.js +105 -0
- package/lib/module/components/HMSNotifications.js.map +1 -0
- package/lib/module/components/HMSOverlayChatView.js +20 -0
- package/lib/module/components/HMSOverlayChatView.js.map +1 -0
- package/lib/module/components/HMSPreviewJoinButton.js +2 -3
- package/lib/module/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/module/components/HMSPreviewNetworkQuality.js +1 -1
- package/lib/module/components/HMSPreviewNetworkQuality.js.map +1 -1
- package/lib/module/components/HMSPreviewSubtitle.js +2 -4
- package/lib/module/components/HMSPreviewSubtitle.js.map +1 -1
- package/lib/module/components/HMSPreviewTitle.js +2 -4
- package/lib/module/components/HMSPreviewTitle.js.map +1 -1
- package/lib/module/components/HMSRecordingIndicator.js +6 -2
- package/lib/module/components/HMSRecordingIndicator.js.map +1 -1
- package/lib/module/components/HMSRoleChangeDeclinedNotification.js +21 -0
- package/lib/module/components/HMSRoleChangeDeclinedNotification.js.map +1 -0
- package/lib/module/components/HMSSendMessageInput.js +48 -0
- package/lib/module/components/HMSSendMessageInput.js.map +1 -0
- package/lib/module/components/HMSTextInput.js +99 -13
- package/lib/module/components/HMSTextInput.js.map +1 -1
- package/lib/module/components/HMSVideoView.js +34 -0
- package/lib/module/components/HMSVideoView.js.map +1 -0
- package/lib/module/components/Header.js +18 -123
- package/lib/module/components/Header.js.map +1 -1
- package/lib/module/components/LocalPeerScreenshareView.js +1 -6
- package/lib/module/components/LocalPeerScreenshareView.js.map +1 -1
- package/lib/module/components/Meeting.js +8 -7
- package/lib/module/components/Meeting.js.map +1 -1
- package/lib/module/components/MeetingScreenContent.js +23 -10
- package/lib/module/components/MeetingScreenContent.js.map +1 -1
- package/lib/module/components/MenuModal/Menu.js +2 -2
- package/lib/module/components/MenuModal/Menu.js.map +1 -1
- package/lib/module/components/MiniView.js +8 -3
- package/lib/module/components/MiniView.js.map +1 -1
- package/lib/module/components/Modals.js +88 -313
- package/lib/module/components/Modals.js.map +1 -1
- package/lib/module/components/OverlayContainer.js +32 -0
- package/lib/module/components/OverlayContainer.js.map +1 -0
- package/lib/module/components/OverlayedViews.js +13 -0
- package/lib/module/components/OverlayedViews.js.map +1 -0
- package/lib/module/components/PaginationDots.js +4 -4
- package/lib/module/components/PaginationDots.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsGroupHeader.js +121 -0
- package/lib/module/components/Participants/ParticipantsGroupHeader.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsGroupOptions.js +71 -0
- package/lib/module/components/Participants/ParticipantsGroupOptions.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsItem.js +123 -0
- package/lib/module/components/Participants/ParticipantsItem.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsItemOption.js +37 -0
- package/lib/module/components/Participants/ParticipantsItemOption.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsItemOptions.js +211 -0
- package/lib/module/components/Participants/ParticipantsItemOptions.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsList.js +42 -225
- package/lib/module/components/Participants/ParticipantsList.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsSeachInput.js +37 -30
- package/lib/module/components/Participants/ParticipantsSeachInput.js.map +1 -1
- package/lib/module/components/Participants/index.js +0 -3
- package/lib/module/components/Participants/index.js.map +1 -1
- package/lib/module/components/PeerMinimizedView.js +1 -1
- package/lib/module/components/PeerSettingsModalContent.js +50 -126
- package/lib/module/components/PeerSettingsModalContent.js.map +1 -1
- package/lib/module/components/PeerVideoTile/AvatarView.js +19 -5
- package/lib/module/components/PeerVideoTile/AvatarView.js.map +1 -1
- package/lib/module/components/PeerVideoTile/HMSFullScreenButton.js +36 -0
- package/lib/module/components/PeerVideoTile/HMSFullScreenButton.js.map +1 -0
- package/lib/module/components/PeerVideoTile/HMSPinchGesture.js +193 -0
- package/lib/module/components/PeerVideoTile/HMSPinchGesture.js.map +1 -0
- package/lib/module/components/PeerVideoTile/PeerAudioIndicator.js +60 -0
- package/lib/module/components/PeerVideoTile/PeerAudioIndicator.js.map +1 -0
- package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js +11 -3
- package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -1
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js +41 -20
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
- package/lib/module/components/PeerVideoTile/VideoView.js +43 -10
- package/lib/module/components/PeerVideoTile/VideoView.js.map +1 -1
- package/lib/module/components/PressableIcon.js +11 -6
- package/lib/module/components/PressableIcon.js.map +1 -1
- package/lib/module/components/Preview.js +6 -13
- package/lib/module/components/Preview.js.map +1 -1
- package/lib/module/components/PreviewForRoleChangeModal.js +322 -0
- package/lib/module/components/PreviewForRoleChangeModal.js.map +1 -0
- package/lib/module/components/ReconnectionView.js +56 -0
- package/lib/module/components/ReconnectionView.js.map +1 -0
- package/lib/module/components/RoomSettingsModalContent.js +27 -36
- package/lib/module/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/module/components/RoomSettingsModalDebugModeContent.js +31 -70
- package/lib/module/components/RoomSettingsModalDebugModeContent.js.map +1 -1
- package/lib/module/components/StreamingQualityModalContent.js +8 -8
- package/lib/module/components/StreamingQualityModalContent.js.map +1 -1
- package/lib/module/components/TilesContainer.js +31 -9
- package/lib/module/components/TilesContainer.js.map +1 -1
- package/lib/module/components/WebrtcView.js +11 -14
- package/lib/module/components/WebrtcView.js.map +1 -1
- package/lib/module/components/WelcomeInMeeting.js +8 -32
- package/lib/module/components/WelcomeInMeeting.js.map +1 -1
- package/lib/module/components/index.js +0 -3
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/hooks-util-selectors.js +38 -8
- package/lib/module/hooks-util-selectors.js.map +1 -1
- package/lib/module/hooks-util.js +615 -213
- package/lib/module/hooks-util.js.map +1 -1
- package/lib/module/modules/HMSManager.js +3 -3
- package/lib/module/modules/HMSManager.js.map +1 -1
- package/lib/module/modules/parser.js +2 -3
- package/lib/module/modules/parser.js.map +1 -1
- package/lib/module/redux/actionTypes.js +25 -1
- package/lib/module/redux/actionTypes.js.map +1 -1
- package/lib/module/redux/actions/index.js +74 -0
- package/lib/module/redux/actions/index.js.map +1 -1
- package/lib/module/redux/reducers/appState.js +78 -2
- package/lib/module/redux/reducers/appState.js.map +1 -1
- package/lib/module/redux/reducers/chatWindow.js +3 -7
- package/lib/module/redux/reducers/chatWindow.js.map +1 -1
- package/lib/module/redux/reducers/hmsStates.js +70 -7
- package/lib/module/redux/reducers/hmsStates.js.map +1 -1
- package/lib/module/utils/functions.js +8 -2
- package/lib/module/utils/functions.js.map +1 -1
- package/lib/module/utils/theme.js +2 -0
- package/lib/module/utils/theme.js.map +1 -1
- package/lib/module/utils/types.js +6 -2
- package/lib/module/utils/types.js.map +1 -1
- package/lib/module/utils.js +6 -0
- package/lib/module/utils.js.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 +1 -0
- package/lib/typescript/Icons/AlertTriangle/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Eye/index.d.ts +8 -0
- package/lib/typescript/Icons/Eye/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Person/index.d.ts +1 -0
- package/lib/typescript/Icons/Person/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Search/index.d.ts +7 -0
- package/lib/typescript/Icons/Search/index.d.ts.map +1 -0
- package/lib/typescript/Icons/index.d.ts +2 -0
- package/lib/typescript/Icons/index.d.ts.map +1 -1
- package/lib/typescript/components/AnimatedFooter.d.ts +8 -0
- package/lib/typescript/components/AnimatedFooter.d.ts.map +1 -0
- package/lib/typescript/components/AnimatedHLSFooter.d.ts +11 -0
- package/lib/typescript/components/AnimatedHLSFooter.d.ts.map +1 -0
- package/lib/typescript/components/AnimatedHeader.d.ts +7 -0
- package/lib/typescript/components/AnimatedHeader.d.ts.map +1 -0
- package/lib/typescript/components/BottomSheet.d.ts +4 -1
- package/lib/typescript/components/BottomSheet.d.ts.map +1 -1
- package/lib/typescript/components/ChangeNameModalContent.d.ts.map +1 -1
- package/lib/typescript/components/Chat/ChatBanner.d.ts +1 -1
- package/lib/typescript/components/Chat/ChatBanner.d.ts.map +1 -1
- package/lib/typescript/components/Chat/ChatFilterBottomSheetOpener.d.ts +6 -0
- package/lib/typescript/components/Chat/ChatFilterBottomSheetOpener.d.ts.map +1 -0
- package/lib/typescript/components/Chat/ChatFilterBottomSheetView.d.ts +6 -0
- package/lib/typescript/components/Chat/ChatFilterBottomSheetView.d.ts.map +1 -0
- package/lib/typescript/components/Chat/ChatFilterItem.d.ts +12 -0
- package/lib/typescript/components/Chat/ChatFilterItem.d.ts.map +1 -0
- package/lib/typescript/components/Chat/ChatFilterView.d.ts +6 -0
- package/lib/typescript/components/Chat/ChatFilterView.d.ts.map +1 -0
- package/lib/typescript/components/Chat/ChatList.d.ts.map +1 -1
- package/lib/typescript/components/Chat/ChatMessage.d.ts +2 -2
- package/lib/typescript/components/Chat/ChatMessage.d.ts.map +1 -1
- package/lib/typescript/components/Chat/PinnedMessage.d.ts.map +1 -1
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.d.ts +3 -0
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.d.ts.map +1 -0
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsHeader.d.ts +7 -0
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsHeader.d.ts.map +1 -0
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsView.d.ts +3 -0
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsView.d.ts.map +1 -0
- package/lib/typescript/components/ChatAndParticipants/ChatView.d.ts +6 -0
- package/lib/typescript/components/ChatAndParticipants/ChatView.d.ts.map +1 -0
- package/lib/typescript/components/ChatAndParticipants/ParticipantsView.d.ts +5 -0
- package/lib/typescript/components/ChatAndParticipants/ParticipantsView.d.ts.map +1 -0
- package/lib/typescript/components/ChatAndParticipants/index.d.ts +2 -0
- package/lib/typescript/components/ChatAndParticipants/index.d.ts.map +1 -0
- package/lib/typescript/components/CompanyLogo.d.ts.map +1 -1
- package/lib/typescript/components/DefaultModal.d.ts.map +1 -1
- package/lib/typescript/components/DisplayView.d.ts.map +1 -1
- package/lib/typescript/components/EndRoomModalContent.d.ts.map +1 -1
- package/lib/typescript/components/Footer.d.ts +0 -2
- package/lib/typescript/components/Footer.d.ts.map +1 -1
- package/lib/typescript/components/FullScreenVideoView.d.ts +3 -0
- package/lib/typescript/components/FullScreenVideoView.d.ts.map +1 -0
- package/lib/typescript/components/GridView.d.ts +12 -1
- package/lib/typescript/components/GridView.d.ts.map +1 -1
- package/lib/typescript/components/HLSFooter.d.ts +8 -0
- package/lib/typescript/components/HLSFooter.d.ts.map +1 -0
- package/lib/typescript/components/HLSView.d.ts.map +1 -1
- package/lib/typescript/components/HMSBaseButton.d.ts +2 -2
- package/lib/typescript/components/HMSBaseButton.d.ts.map +1 -1
- package/lib/typescript/components/HMSChat.d.ts.map +1 -1
- package/lib/typescript/components/HMSHLSMessage.d.ts +8 -0
- package/lib/typescript/components/HMSHLSMessage.d.ts.map +1 -0
- package/lib/typescript/components/HMSHLSMessageList.d.ts +3 -0
- package/lib/typescript/components/HMSHLSMessageList.d.ts.map +1 -0
- package/lib/typescript/components/HMSHLSNotStarted.d.ts.map +1 -1
- package/lib/typescript/components/HMSHandRaiseNotification.d.ts +10 -0
- package/lib/typescript/components/HMSHandRaiseNotification.d.ts.map +1 -0
- package/lib/typescript/components/HMSKeyboardAvoidingView.d.ts +8 -0
- package/lib/typescript/components/HMSKeyboardAvoidingView.d.ts.map +1 -0
- package/lib/typescript/components/HMSLiveIndicator.d.ts +3 -0
- package/lib/typescript/components/HMSLiveIndicator.d.ts.map +1 -0
- package/lib/typescript/components/HMSLocalScreenshareNotification.d.ts +5 -0
- package/lib/typescript/components/HMSLocalScreenshareNotification.d.ts.map +1 -0
- package/lib/typescript/components/HMSLocalVideoView.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/HMSNotification.d.ts +15 -0
- package/lib/typescript/components/HMSNotification.d.ts.map +1 -0
- package/lib/typescript/components/HMSNotifications.d.ts +5 -0
- package/lib/typescript/components/HMSNotifications.d.ts.map +1 -0
- package/lib/typescript/components/HMSOverlayChatView.d.ts +3 -0
- package/lib/typescript/components/HMSOverlayChatView.d.ts.map +1 -0
- package/lib/typescript/components/HMSPreviewJoinButton.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewNetworkQuality.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewSubtitle.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewTitle.d.ts.map +1 -1
- package/lib/typescript/components/HMSRecordingIndicator.d.ts.map +1 -1
- package/lib/typescript/components/HMSRoleChangeDeclinedNotification.d.ts +9 -0
- package/lib/typescript/components/HMSRoleChangeDeclinedNotification.d.ts.map +1 -0
- package/lib/typescript/components/HMSSendMessageInput.d.ts +9 -0
- package/lib/typescript/components/HMSSendMessageInput.d.ts.map +1 -0
- package/lib/typescript/components/HMSTextInput.d.ts +20 -6
- package/lib/typescript/components/HMSTextInput.d.ts.map +1 -1
- package/lib/typescript/components/HMSVideoView.d.ts +6 -0
- package/lib/typescript/components/HMSVideoView.d.ts.map +1 -0
- package/lib/typescript/components/Header.d.ts +3 -2
- package/lib/typescript/components/Header.d.ts.map +1 -1
- package/lib/typescript/components/LocalPeerScreenshareView.d.ts.map +1 -1
- package/lib/typescript/components/Meeting.d.ts.map +1 -1
- package/lib/typescript/components/MeetingScreenContent.d.ts.map +1 -1
- package/lib/typescript/components/MiniView.d.ts.map +1 -1
- package/lib/typescript/components/Modals.d.ts +1 -21
- package/lib/typescript/components/Modals.d.ts.map +1 -1
- package/lib/typescript/components/OverlayContainer.d.ts +9 -0
- package/lib/typescript/components/OverlayContainer.d.ts.map +1 -0
- package/lib/typescript/components/OverlayedViews.d.ts +4 -0
- package/lib/typescript/components/OverlayedViews.d.ts.map +1 -0
- package/lib/typescript/components/PaginationDots.d.ts +3 -0
- package/lib/typescript/components/PaginationDots.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsGroupHeader.d.ts +9 -0
- package/lib/typescript/components/Participants/ParticipantsGroupHeader.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsGroupOptions.d.ts +8 -0
- package/lib/typescript/components/Participants/ParticipantsGroupOptions.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsItem.d.ts +9 -0
- package/lib/typescript/components/Participants/ParticipantsItem.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsItemOption.d.ts +12 -0
- package/lib/typescript/components/Participants/ParticipantsItemOption.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsItemOptions.d.ts +10 -0
- package/lib/typescript/components/Participants/ParticipantsItemOptions.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsList.d.ts +4 -2
- package/lib/typescript/components/Participants/ParticipantsList.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsSeachInput.d.ts.map +1 -1
- package/lib/typescript/components/Participants/index.d.ts +0 -3
- package/lib/typescript/components/Participants/index.d.ts.map +1 -1
- package/lib/typescript/components/PeerSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/AvatarView.d.ts +4 -0
- package/lib/typescript/components/PeerVideoTile/AvatarView.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/HMSFullScreenButton.d.ts +7 -0
- package/lib/typescript/components/PeerVideoTile/HMSFullScreenButton.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/HMSPinchGesture.d.ts +7 -0
- package/lib/typescript/components/PeerVideoTile/HMSPinchGesture.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerAudioIndicator.d.ts +8 -0
- package/lib/typescript/components/PeerVideoTile/PeerAudioIndicator.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerNameAndNetwork.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts +2 -1
- package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/VideoView.d.ts +1 -0
- package/lib/typescript/components/PeerVideoTile/VideoView.d.ts.map +1 -1
- package/lib/typescript/components/PressableIcon.d.ts.map +1 -1
- package/lib/typescript/components/Preview.d.ts.map +1 -1
- package/lib/typescript/components/PreviewForRoleChangeModal.d.ts +3 -0
- package/lib/typescript/components/PreviewForRoleChangeModal.d.ts.map +1 -0
- package/lib/typescript/components/ReconnectionView.d.ts +4 -0
- package/lib/typescript/components/ReconnectionView.d.ts.map +1 -0
- package/lib/typescript/components/RoomSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/components/RoomSettingsModalDebugModeContent.d.ts.map +1 -1
- package/lib/typescript/components/StreamingQualityModalContent.d.ts.map +1 -1
- package/lib/typescript/components/TilesContainer.d.ts.map +1 -1
- package/lib/typescript/components/WebrtcView.d.ts.map +1 -1
- package/lib/typescript/components/WelcomeInMeeting.d.ts.map +1 -1
- package/lib/typescript/components/index.d.ts +0 -3
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/hooks-util-selectors.d.ts +7 -2
- package/lib/typescript/hooks-util-selectors.d.ts.map +1 -1
- package/lib/typescript/hooks-util.d.ts +53 -23
- package/lib/typescript/hooks-util.d.ts.map +1 -1
- package/lib/typescript/modules/HMSManager.d.ts +1 -1
- package/lib/typescript/modules/HMSManager.d.ts.map +1 -1
- package/lib/typescript/modules/parser.d.ts +1 -1
- package/lib/typescript/modules/parser.d.ts.map +1 -1
- package/lib/typescript/redux/actionTypes.d.ts +16 -1
- package/lib/typescript/redux/actionTypes.d.ts.map +1 -1
- package/lib/typescript/redux/actions/index.d.ts +92 -4
- package/lib/typescript/redux/actions/index.d.ts.map +1 -1
- package/lib/typescript/redux/index.d.ts +22 -2
- package/lib/typescript/redux/index.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/appState.d.ts +10 -0
- package/lib/typescript/redux/reducers/appState.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/chatWindow.d.ts +6 -6
- package/lib/typescript/redux/reducers/chatWindow.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/hmsStates.d.ts +32 -4
- package/lib/typescript/redux/reducers/hmsStates.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/index.d.ts +22 -2
- 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 +3 -1
- package/lib/typescript/utils/functions.d.ts.map +1 -1
- package/lib/typescript/utils/theme.d.ts +1 -1
- package/lib/typescript/utils/theme.d.ts.map +1 -1
- package/lib/typescript/utils/types.d.ts +6 -2
- package/lib/typescript/utils/types.d.ts.map +1 -1
- package/lib/typescript/utils.d.ts +5 -0
- package/lib/typescript/utils.d.ts.map +1 -1
- package/package.json +13 -8
- package/src/HMSPrebuilt.tsx +10 -10
- package/src/HMSRoomSetup.tsx +50 -28
- package/src/Icons/AlertTriangle/assets/alert-triangle-filled.png +0 -0
- package/src/Icons/AlertTriangle/assets/alert-triangle-filled@2x.png +0 -0
- package/src/Icons/AlertTriangle/assets/alert-triangle-filled@3x.png +0 -0
- package/src/Icons/AlertTriangle/index.tsx +9 -2
- package/src/Icons/Eye/assets/eye-on-small.png +0 -0
- package/src/Icons/Eye/assets/eye-on-small@2x.png +0 -0
- package/src/Icons/Eye/assets/eye-on-small@3x.png +0 -0
- package/src/Icons/Eye/index.tsx +36 -0
- package/src/Icons/Person/assets/person-left.png +0 -0
- package/src/Icons/Person/assets/person-left@2x.png +0 -0
- package/src/Icons/Person/assets/person-left@3x.png +0 -0
- package/src/Icons/Person/assets/person-off.png +0 -0
- package/src/Icons/Person/assets/person-off@2x.png +0 -0
- package/src/Icons/Person/assets/person-off@3x.png +0 -0
- package/src/Icons/Person/assets/person-rectangle.png +0 -0
- package/src/Icons/Person/assets/person-rectangle@2x.png +0 -0
- package/src/Icons/Person/assets/person-rectangle@3x.png +0 -0
- package/src/Icons/Person/index.tsx +13 -2
- package/src/Icons/Search/assets/search.png +0 -0
- package/src/Icons/Search/assets/search@2x.png +0 -0
- package/src/Icons/Search/assets/search@3x.png +0 -0
- package/src/Icons/Search/index.tsx +33 -0
- package/src/Icons/index.ts +2 -0
- package/src/assets/audio-level-white.json +1271 -0
- package/src/assets/empty-chat-illustration/empty-chat.png +0 -0
- package/src/assets/empty-chat-illustration/empty-chat@2x.png +0 -0
- package/src/assets/empty-chat-illustration/empty-chat@3x.png +0 -0
- package/src/assets/welcome.png +0 -0
- package/src/components/AnimatedFooter.tsx +37 -0
- package/src/components/AnimatedHLSFooter.tsx +43 -0
- package/src/components/AnimatedHeader.tsx +53 -0
- package/src/components/BottomSheet.tsx +8 -4
- package/src/components/ChangeNameModalContent.tsx +2 -11
- package/src/components/Chat/ChatBanner.tsx +37 -52
- package/src/components/Chat/ChatFilterBottomSheetOpener.tsx +88 -0
- package/src/components/Chat/ChatFilterBottomSheetView.tsx +81 -0
- package/src/components/Chat/ChatFilterItem.tsx +71 -0
- package/src/components/Chat/ChatFilterView.tsx +250 -0
- package/src/components/Chat/ChatList.tsx +16 -12
- package/src/components/Chat/ChatMessage.tsx +48 -197
- package/src/components/Chat/PinnedMessage.tsx +45 -45
- package/src/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.tsx +38 -0
- package/src/components/ChatAndParticipants/ChatAndParticipantsHeader.tsx +140 -0
- package/src/components/ChatAndParticipants/ChatAndParticipantsView.tsx +84 -0
- package/src/components/ChatAndParticipants/ChatView.tsx +42 -0
- package/src/components/ChatAndParticipants/ParticipantsView.tsx +41 -0
- package/src/components/ChatAndParticipants/index.ts +1 -0
- package/src/components/CompanyLogo.tsx +3 -2
- package/src/components/DefaultModal.tsx +4 -6
- package/src/components/DisplayView.tsx +10 -26
- package/src/components/EndRoomModalContent.tsx +32 -7
- package/src/components/Footer.tsx +93 -58
- package/src/components/FullScreenVideoView.tsx +77 -0
- package/src/components/GridView.tsx +186 -65
- package/src/components/HLSFooter.tsx +32 -0
- package/src/components/HLSView.tsx +5 -32
- package/src/components/HMSBaseButton.tsx +2 -2
- package/src/components/HMSChat.tsx +12 -25
- package/src/components/HMSHLSMessage.tsx +72 -0
- package/src/components/HMSHLSMessageList.tsx +60 -0
- package/src/components/HMSHLSNotStarted.tsx +8 -19
- package/src/components/HMSHandRaiseNotification.tsx +101 -0
- package/src/components/HMSKeyboardAvoidingView.tsx +58 -0
- package/src/components/HMSLiveIndicator.tsx +124 -0
- package/src/components/HMSLocalScreenshareNotification.tsx +41 -0
- package/src/components/HMSLocalVideoView.tsx +4 -31
- package/src/components/HMSManageAudioOutput.tsx +14 -2
- package/src/components/HMSManageLeave.tsx +46 -19
- package/src/components/HMSNotification.tsx +126 -0
- package/src/components/HMSNotifications.tsx +154 -0
- package/src/components/HMSOverlayChatView.tsx +36 -0
- package/src/components/HMSPreviewJoinButton.tsx +6 -3
- package/src/components/HMSPreviewNetworkQuality.tsx +3 -1
- package/src/components/HMSPreviewSubtitle.tsx +2 -6
- package/src/components/HMSPreviewTitle.tsx +2 -6
- package/src/components/HMSRecordingIndicator.tsx +13 -2
- package/src/components/HMSRoleChangeDeclinedNotification.tsx +25 -0
- package/src/components/HMSSendMessageInput.tsx +59 -0
- package/src/components/HMSTextInput.tsx +157 -23
- package/src/components/HMSVideoView.tsx +43 -0
- package/src/components/Header.tsx +25 -133
- package/src/components/LocalPeerScreenshareView.tsx +0 -6
- package/src/components/Meeting.tsx +15 -8
- package/src/components/MeetingScreenContent.tsx +28 -11
- package/src/components/MiniView.tsx +10 -4
- package/src/components/Modals.tsx +112 -370
- package/src/components/OverlayContainer.tsx +31 -0
- package/src/components/OverlayedViews.tsx +22 -0
- package/src/components/PaginationDots.tsx +9 -8
- package/src/components/Participants/ParticipantsGroupHeader.tsx +145 -0
- package/src/components/Participants/ParticipantsGroupOptions.tsx +87 -0
- package/src/components/Participants/ParticipantsItem.tsx +170 -0
- package/src/components/Participants/ParticipantsItemOption.tsx +52 -0
- package/src/components/Participants/ParticipantsItemOptions.tsx +262 -0
- package/src/components/Participants/ParticipantsList.tsx +68 -278
- package/src/components/Participants/ParticipantsSeachInput.tsx +37 -35
- package/src/components/Participants/index.ts +0 -3
- package/src/components/PeerMinimizedView.tsx +1 -1
- package/src/components/PeerSettingsModalContent.tsx +44 -191
- package/src/components/PeerVideoTile/AvatarView.tsx +43 -5
- package/src/components/PeerVideoTile/HMSFullScreenButton.tsx +56 -0
- package/src/components/PeerVideoTile/HMSPinchGesture.tsx +176 -0
- package/src/components/PeerVideoTile/PeerAudioIndicator.tsx +78 -0
- package/src/components/PeerVideoTile/PeerNameAndNetwork.tsx +15 -2
- package/src/components/PeerVideoTile/PeerVideoTileView.tsx +172 -115
- package/src/components/PeerVideoTile/VideoView.tsx +59 -9
- package/src/components/PressableIcon.tsx +26 -13
- package/src/components/Preview.tsx +17 -24
- package/src/components/PreviewForRoleChangeModal.tsx +448 -0
- package/src/components/ReconnectionView.tsx +73 -0
- package/src/components/RoomSettingsModalContent.tsx +32 -30
- package/src/components/RoomSettingsModalDebugModeContent.tsx +11 -65
- package/src/components/StreamingQualityModalContent.tsx +8 -8
- package/src/components/TilesContainer.tsx +54 -24
- package/src/components/WebrtcView.tsx +29 -19
- package/src/components/WelcomeInMeeting.tsx +5 -34
- package/src/components/index.ts +0 -3
- package/src/hooks-util-selectors.tsx +69 -6
- package/src/hooks-util.ts +852 -270
- package/src/modules/HMSManager.ts +3 -3
- package/src/modules/parser.ts +3 -4
- package/src/redux/actionTypes.ts +33 -0
- package/src/redux/actions/index.ts +96 -1
- package/src/redux/reducers/appState.ts +83 -1
- package/src/redux/reducers/chatWindow.ts +12 -5
- package/src/redux/reducers/hmsStates.ts +136 -4
- package/src/redux/reducers/userState.ts +1 -1
- package/src/utils/functions.ts +9 -0
- package/src/utils/theme.ts +3 -1
- package/src/utils/types.ts +6 -2
- package/src/utils.ts +6 -0
- package/lib/commonjs/assets/100ms-logo.png +0 -0
- package/lib/commonjs/assets/brb.png +0 -0
- package/lib/commonjs/assets/icon.png +0 -0
- package/lib/commonjs/assets/illustration.png +0 -0
- package/lib/commonjs/assets/network_0.png +0 -0
- package/lib/commonjs/assets/network_1.png +0 -0
- package/lib/commonjs/assets/network_2.png +0 -0
- package/lib/commonjs/assets/network_3.png +0 -0
- package/lib/commonjs/assets/network_4.png +0 -0
- package/lib/commonjs/assets/user_music.png +0 -0
- package/lib/commonjs/components/ChatWindow.js +0 -608
- package/lib/commonjs/components/ChatWindow.js.map +0 -1
- package/lib/commonjs/components/CustomInput.js +0 -89
- package/lib/commonjs/components/CustomInput.js.map +0 -1
- package/lib/commonjs/components/DisplayTrack.js +0 -70
- package/lib/commonjs/components/DisplayTrack.js.map +0 -1
- package/lib/commonjs/components/HMSShareScreen.js +0 -59
- package/lib/commonjs/components/HMSShareScreen.js.map +0 -1
- package/lib/commonjs/components/HMSShowNetworkQuality.js +0 -56
- package/lib/commonjs/components/HMSShowNetworkQuality.js.map +0 -1
- package/lib/commonjs/components/LiveButton.js +0 -70
- package/lib/commonjs/components/LiveButton.js.map +0 -1
- package/lib/commonjs/components/Participants/ParticipantsFilter.js +0 -128
- package/lib/commonjs/components/Participants/ParticipantsFilter.js.map +0 -1
- package/lib/commonjs/components/Participants/ParticipantsHeader.js +0 -67
- package/lib/commonjs/components/Participants/ParticipantsHeader.js.map +0 -1
- package/lib/commonjs/components/Participants/SearchableParticipantsView.js.map +0 -1
- package/lib/commonjs/components/ParticipantsModal.js.map +0 -1
- package/lib/commonjs/components/PeerVideoTile/PeerAudioMutedIndicator.js.map +0 -1
- package/lib/commonjs/components/Picker.js +0 -93
- package/lib/commonjs/components/Picker.js.map +0 -1
- package/lib/module/assets/100ms-logo.png +0 -0
- package/lib/module/assets/brb.png +0 -0
- package/lib/module/assets/icon.png +0 -0
- package/lib/module/assets/illustration.png +0 -0
- package/lib/module/assets/network_0.png +0 -0
- package/lib/module/assets/network_1.png +0 -0
- package/lib/module/assets/network_2.png +0 -0
- package/lib/module/assets/network_3.png +0 -0
- package/lib/module/assets/network_4.png +0 -0
- package/lib/module/assets/user_music.png +0 -0
- package/lib/module/components/ChatWindow.js +0 -595
- package/lib/module/components/ChatWindow.js.map +0 -1
- package/lib/module/components/CustomInput.js +0 -82
- package/lib/module/components/CustomInput.js.map +0 -1
- package/lib/module/components/DisplayTrack.js +0 -63
- package/lib/module/components/DisplayTrack.js.map +0 -1
- package/lib/module/components/HMSShareScreen.js +0 -50
- package/lib/module/components/HMSShareScreen.js.map +0 -1
- package/lib/module/components/HMSShowNetworkQuality.js +0 -47
- package/lib/module/components/HMSShowNetworkQuality.js.map +0 -1
- package/lib/module/components/LiveButton.js +0 -61
- package/lib/module/components/LiveButton.js.map +0 -1
- package/lib/module/components/Participants/ParticipantsFilter.js +0 -121
- package/lib/module/components/Participants/ParticipantsFilter.js.map +0 -1
- package/lib/module/components/Participants/ParticipantsHeader.js +0 -58
- package/lib/module/components/Participants/ParticipantsHeader.js.map +0 -1
- package/lib/module/components/Participants/SearchableParticipantsView.js +0 -18
- package/lib/module/components/Participants/SearchableParticipantsView.js.map +0 -1
- package/lib/module/components/ParticipantsModal.js +0 -34
- package/lib/module/components/ParticipantsModal.js.map +0 -1
- package/lib/module/components/PeerVideoTile/PeerAudioMutedIndicator.js +0 -35
- package/lib/module/components/PeerVideoTile/PeerAudioMutedIndicator.js.map +0 -1
- package/lib/module/components/Picker.js +0 -83
- package/lib/module/components/Picker.js.map +0 -1
- package/lib/typescript/components/ChatWindow.d.ts +0 -22
- package/lib/typescript/components/ChatWindow.d.ts.map +0 -1
- package/lib/typescript/components/CustomInput.d.ts +0 -24
- package/lib/typescript/components/CustomInput.d.ts.map +0 -1
- package/lib/typescript/components/DisplayTrack.d.ts +0 -9
- package/lib/typescript/components/DisplayTrack.d.ts.map +0 -1
- package/lib/typescript/components/HMSShareScreen.d.ts +0 -9
- package/lib/typescript/components/HMSShareScreen.d.ts.map +0 -1
- package/lib/typescript/components/HMSShowNetworkQuality.d.ts +0 -3
- package/lib/typescript/components/HMSShowNetworkQuality.d.ts.map +0 -1
- package/lib/typescript/components/LiveButton.d.ts +0 -17
- package/lib/typescript/components/LiveButton.d.ts.map +0 -1
- package/lib/typescript/components/Participants/ParticipantsFilter.d.ts +0 -6
- package/lib/typescript/components/Participants/ParticipantsFilter.d.ts.map +0 -1
- package/lib/typescript/components/Participants/ParticipantsHeader.d.ts +0 -9
- package/lib/typescript/components/Participants/ParticipantsHeader.d.ts.map +0 -1
- package/lib/typescript/components/Participants/SearchableParticipantsView.d.ts +0 -3
- package/lib/typescript/components/Participants/SearchableParticipantsView.d.ts.map +0 -1
- package/lib/typescript/components/ParticipantsModal.d.ts +0 -5
- package/lib/typescript/components/ParticipantsModal.d.ts.map +0 -1
- package/lib/typescript/components/PeerVideoTile/PeerAudioMutedIndicator.d.ts +0 -6
- package/lib/typescript/components/PeerVideoTile/PeerAudioMutedIndicator.d.ts.map +0 -1
- package/lib/typescript/components/Picker.d.ts +0 -9
- package/lib/typescript/components/Picker.d.ts.map +0 -1
- package/src/assets/100ms-logo.png +0 -0
- package/src/assets/brb.png +0 -0
- package/src/assets/icon.png +0 -0
- package/src/assets/illustration.png +0 -0
- package/src/assets/network_0.png +0 -0
- package/src/assets/network_1.png +0 -0
- package/src/assets/network_2.png +0 -0
- package/src/assets/network_3.png +0 -0
- package/src/assets/network_4.png +0 -0
- package/src/assets/user_music.png +0 -0
- package/src/components/ChatWindow.tsx +0 -706
- package/src/components/CustomInput.tsx +0 -138
- package/src/components/DisplayTrack.tsx +0 -92
- package/src/components/HMSShareScreen.tsx +0 -71
- package/src/components/HMSShowNetworkQuality.tsx +0 -68
- package/src/components/LiveButton.tsx +0 -77
- package/src/components/Participants/ParticipantsFilter.tsx +0 -144
- package/src/components/Participants/ParticipantsHeader.tsx +0 -64
- package/src/components/Participants/SearchableParticipantsView.tsx +0 -21
- package/src/components/ParticipantsModal.tsx +0 -46
- package/src/components/PeerVideoTile/PeerAudioMutedIndicator.tsx +0 -41
- package/src/components/Picker.tsx +0 -108
|
@@ -1,42 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { StyleSheet } from 'react-native';
|
|
3
2
|
import { useSelector } from 'react-redux';
|
|
4
|
-
import { HMSVideoViewMode } from '@100mslive/react-native-hms';
|
|
5
3
|
|
|
6
4
|
import type { RootState } from '../redux';
|
|
7
|
-
import {
|
|
5
|
+
import { HMSVideoView } from './HMSVideoView';
|
|
8
6
|
|
|
9
7
|
export const HMSLocalVideoView = () => {
|
|
10
|
-
const hmsInstance = useHMSInstance();
|
|
11
|
-
const HmsView = hmsInstance.HmsView;
|
|
12
|
-
const mirrorCamera = useSelector(
|
|
13
|
-
(state: RootState) => state.app.joinConfig.mirrorCamera
|
|
14
|
-
);
|
|
15
|
-
const autoSimulcast = useSelector(
|
|
16
|
-
(state: RootState) => state.app.joinConfig.autoSimulcast
|
|
17
|
-
);
|
|
18
8
|
const localVideoTrackId = useSelector(
|
|
19
9
|
(state: RootState) => state.hmsStates.localPeer?.videoTrack?.trackId
|
|
20
10
|
);
|
|
21
11
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
return (
|
|
27
|
-
<HmsView
|
|
28
|
-
trackId={localVideoTrackId}
|
|
29
|
-
key={localVideoTrackId}
|
|
30
|
-
mirror={mirrorCamera}
|
|
31
|
-
autoSimulcast={autoSimulcast}
|
|
32
|
-
scaleType={HMSVideoViewMode.ASPECT_FILL}
|
|
33
|
-
style={styles.hmsView}
|
|
34
|
-
/>
|
|
35
|
-
);
|
|
12
|
+
return localVideoTrackId ? (
|
|
13
|
+
<HMSVideoView trackId={localVideoTrackId} />
|
|
14
|
+
) : null;
|
|
36
15
|
};
|
|
37
|
-
|
|
38
|
-
const styles = StyleSheet.create({
|
|
39
|
-
hmsView: {
|
|
40
|
-
flex: 1,
|
|
41
|
-
},
|
|
42
|
-
});
|
|
@@ -23,12 +23,17 @@ import {
|
|
|
23
23
|
WaveIcon,
|
|
24
24
|
} from '../Icons';
|
|
25
25
|
import { PressableIcon } from './PressableIcon';
|
|
26
|
-
import {
|
|
26
|
+
import {
|
|
27
|
+
useHMSInstance,
|
|
28
|
+
useHMSRoomStyleSheet,
|
|
29
|
+
useIsHLSViewer,
|
|
30
|
+
} from '../hooks-util';
|
|
27
31
|
import type { RootState } from '../redux';
|
|
28
32
|
import { BottomSheet } from './BottomSheet';
|
|
29
33
|
|
|
30
34
|
export const HMSManageAudioOutput: React.FC = () => {
|
|
31
35
|
const hmsInstance = useHMSInstance();
|
|
36
|
+
const isHLSViewer = useIsHLSViewer();
|
|
32
37
|
const [settingsModalVisible, setSettingsModalVisible] = React.useState(false);
|
|
33
38
|
|
|
34
39
|
const [currentAudioOutputDevice, setCurrentAudioOutputDevice] =
|
|
@@ -135,7 +140,10 @@ export const HMSManageAudioOutput: React.FC = () => {
|
|
|
135
140
|
|
|
136
141
|
return (
|
|
137
142
|
<View>
|
|
138
|
-
<PressableIcon
|
|
143
|
+
<PressableIcon
|
|
144
|
+
onPress={handleSpeakerChange}
|
|
145
|
+
style={isHLSViewer ? styles.button : null}
|
|
146
|
+
>
|
|
139
147
|
{Platform.OS === 'ios' ? (
|
|
140
148
|
<SpeakerIcon muted={false} />
|
|
141
149
|
) : (
|
|
@@ -206,6 +214,10 @@ export const HMSManageAudioOutput: React.FC = () => {
|
|
|
206
214
|
};
|
|
207
215
|
|
|
208
216
|
const styles = StyleSheet.create({
|
|
217
|
+
button: {
|
|
218
|
+
backgroundColor: 'transparent',
|
|
219
|
+
borderWidth: 1,
|
|
220
|
+
},
|
|
209
221
|
contentContainer: {
|
|
210
222
|
marginHorizontal: 24,
|
|
211
223
|
},
|
|
@@ -2,12 +2,8 @@ import * as React from 'react';
|
|
|
2
2
|
import { StyleSheet, Text, TouchableOpacity, View } from 'react-native';
|
|
3
3
|
import { useSelector } from 'react-redux';
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
useHMSRoomStyleSheet,
|
|
8
|
-
useIsHLSViewer,
|
|
9
|
-
useLeaveMethods,
|
|
10
|
-
} from '../hooks-util';
|
|
5
|
+
import { LeaveIcon } from '../Icons';
|
|
6
|
+
import { useHMSRoomStyleSheet, useLeaveMethods } from '../hooks-util';
|
|
11
7
|
import type { RootState } from '../redux';
|
|
12
8
|
import { ModalTypes } from '../utils/types';
|
|
13
9
|
import { PressableIcon } from './PressableIcon';
|
|
@@ -36,13 +32,12 @@ type LeaveButtonProps =
|
|
|
36
32
|
|
|
37
33
|
const LeaveButton: React.FC<LeaveButtonProps> = (props) => {
|
|
38
34
|
const leavePopCloseAction = React.useRef(ModalTypes.DEFAULT);
|
|
39
|
-
const isHLSViewer = useIsHLSViewer();
|
|
40
35
|
const [leavePopVisible, setLeavePopVisible] = React.useState(false);
|
|
41
36
|
const [leaveModalType, setLeaveModalType] = React.useState(
|
|
42
37
|
ModalTypes.DEFAULT
|
|
43
38
|
);
|
|
44
39
|
|
|
45
|
-
const { leave } = useLeaveMethods();
|
|
40
|
+
const { leave } = useLeaveMethods(false);
|
|
46
41
|
|
|
47
42
|
/**
|
|
48
43
|
* Opens the Leave Popup Menu
|
|
@@ -55,9 +50,9 @@ const LeaveButton: React.FC<LeaveButtonProps> = (props) => {
|
|
|
55
50
|
* Closes the Leave Popup Menu
|
|
56
51
|
* Leave Modal will open after the popup is hidden
|
|
57
52
|
*/
|
|
58
|
-
const handleLeavePress = () => {
|
|
53
|
+
const handleLeavePress = async () => {
|
|
59
54
|
setLeavePopVisible(false);
|
|
60
|
-
leave();
|
|
55
|
+
await leave();
|
|
61
56
|
};
|
|
62
57
|
|
|
63
58
|
/**
|
|
@@ -69,6 +64,11 @@ const LeaveButton: React.FC<LeaveButtonProps> = (props) => {
|
|
|
69
64
|
setLeavePopVisible(false);
|
|
70
65
|
};
|
|
71
66
|
|
|
67
|
+
const handleEndStreamPress = async () => {
|
|
68
|
+
leavePopCloseAction.current = ModalTypes.END_ROOM;
|
|
69
|
+
setLeavePopVisible(false);
|
|
70
|
+
};
|
|
71
|
+
|
|
72
72
|
/**
|
|
73
73
|
* Closes the Leave Popup Menu
|
|
74
74
|
* No action is taken when the popup is hidden
|
|
@@ -90,20 +90,18 @@ const LeaveButton: React.FC<LeaveButtonProps> = (props) => {
|
|
|
90
90
|
const hmsRoomStyles = useHMSRoomStyleSheet((theme) => ({
|
|
91
91
|
button: {
|
|
92
92
|
backgroundColor: theme.palette.alert_error_default,
|
|
93
|
-
borderColor: theme.palette.alert_error_default
|
|
93
|
+
borderColor: theme.palette.alert_error_default,
|
|
94
94
|
},
|
|
95
95
|
icon: {
|
|
96
|
-
tintColor: theme.palette.alert_error_brighter
|
|
96
|
+
tintColor: theme.palette.alert_error_brighter,
|
|
97
97
|
},
|
|
98
98
|
}));
|
|
99
99
|
|
|
100
100
|
const leaveIconDelegate =
|
|
101
101
|
'leaveIconDelegate' in props && props.leaveIconDelegate ? (
|
|
102
102
|
props.leaveIconDelegate
|
|
103
|
-
) : isHLSViewer ? (
|
|
104
|
-
<LeaveIcon style={hmsRoomStyles.icon} />
|
|
105
103
|
) : (
|
|
106
|
-
<
|
|
104
|
+
<LeaveIcon style={hmsRoomStyles.icon} />
|
|
107
105
|
);
|
|
108
106
|
|
|
109
107
|
const leaveButtonDelegate =
|
|
@@ -126,6 +124,7 @@ const LeaveButton: React.FC<LeaveButtonProps> = (props) => {
|
|
|
126
124
|
onLeavePress={handleLeavePress}
|
|
127
125
|
onPopupDismiss={dismissPopup}
|
|
128
126
|
onPopupHide={handlePopupHide}
|
|
127
|
+
onEndStreamPress={handleEndStreamPress}
|
|
129
128
|
/>
|
|
130
129
|
|
|
131
130
|
<BottomSheet
|
|
@@ -147,6 +146,7 @@ interface LeaveBottomSheetProps {
|
|
|
147
146
|
onPopupDismiss(): void;
|
|
148
147
|
onLeavePress(): void;
|
|
149
148
|
onEndSessionPress(): void;
|
|
149
|
+
onEndStreamPress(): void;
|
|
150
150
|
onPopupHide(): void;
|
|
151
151
|
}
|
|
152
152
|
|
|
@@ -155,11 +155,21 @@ const LeaveBottomSheet: React.FC<LeaveBottomSheetProps> = ({
|
|
|
155
155
|
onPopupDismiss,
|
|
156
156
|
onLeavePress,
|
|
157
157
|
onEndSessionPress,
|
|
158
|
+
onEndStreamPress,
|
|
158
159
|
onPopupHide,
|
|
159
160
|
}) => {
|
|
160
161
|
const canEndRoom = useSelector(
|
|
161
162
|
(state: RootState) => state.hmsStates.localPeer?.role?.permissions?.endRoom
|
|
162
163
|
);
|
|
164
|
+
const canStream = useSelector(
|
|
165
|
+
(state: RootState) =>
|
|
166
|
+
state.hmsStates.localPeer?.role?.permissions?.hlsStreaming
|
|
167
|
+
);
|
|
168
|
+
|
|
169
|
+
const isStreaming = useSelector(
|
|
170
|
+
(state: RootState) =>
|
|
171
|
+
state.hmsStates.room?.hlsStreamingState?.running ?? false
|
|
172
|
+
);
|
|
163
173
|
|
|
164
174
|
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
165
175
|
text: {
|
|
@@ -212,10 +222,10 @@ const LeaveBottomSheet: React.FC<LeaveBottomSheetProps> = ({
|
|
|
212
222
|
</View>
|
|
213
223
|
</TouchableOpacity>
|
|
214
224
|
|
|
215
|
-
{
|
|
225
|
+
{canStream && isStreaming ? (
|
|
216
226
|
<TouchableOpacity
|
|
217
227
|
style={[leavePopupStyles.button, hmsRoomStyles.endButton]}
|
|
218
|
-
onPress={
|
|
228
|
+
onPress={onEndStreamPress}
|
|
219
229
|
>
|
|
220
230
|
<StopIcon style={[leavePopupStyles.icon, hmsRoomStyles.endIcon]} />
|
|
221
231
|
|
|
@@ -226,8 +236,25 @@ const LeaveBottomSheet: React.FC<LeaveBottomSheetProps> = ({
|
|
|
226
236
|
<Text
|
|
227
237
|
style={[leavePopupStyles.subtext, hmsRoomStyles.endSubtext]}
|
|
228
238
|
>
|
|
229
|
-
The stream
|
|
230
|
-
|
|
239
|
+
The stream will end for everyone after they’ve watched it.
|
|
240
|
+
</Text>
|
|
241
|
+
</View>
|
|
242
|
+
</TouchableOpacity>
|
|
243
|
+
) : canEndRoom ? (
|
|
244
|
+
<TouchableOpacity
|
|
245
|
+
style={[leavePopupStyles.button, hmsRoomStyles.endButton]}
|
|
246
|
+
onPress={onEndSessionPress}
|
|
247
|
+
>
|
|
248
|
+
<StopIcon style={[leavePopupStyles.icon, hmsRoomStyles.endIcon]} />
|
|
249
|
+
|
|
250
|
+
<View style={leavePopupStyles.textContainer}>
|
|
251
|
+
<Text style={[leavePopupStyles.text, hmsRoomStyles.endText]}>
|
|
252
|
+
End Session
|
|
253
|
+
</Text>
|
|
254
|
+
<Text
|
|
255
|
+
style={[leavePopupStyles.subtext, hmsRoomStyles.endSubtext]}
|
|
256
|
+
>
|
|
257
|
+
The session will end for everyone in the room immediately.
|
|
231
258
|
</Text>
|
|
232
259
|
</View>
|
|
233
260
|
</TouchableOpacity>
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { useDispatch } from 'react-redux';
|
|
3
|
+
import { StyleSheet, Text, TouchableOpacity, View } from 'react-native';
|
|
4
|
+
import type { StyleProp, ViewStyle, TextStyle } from 'react-native';
|
|
5
|
+
|
|
6
|
+
import { useHMSRoomStyleSheet } from '../hooks-util';
|
|
7
|
+
import { CloseIcon } from '../Icons';
|
|
8
|
+
import { UnmountAfterDelay } from './UnmountAfterDelay';
|
|
9
|
+
import { removeNotification } from '../redux/actions';
|
|
10
|
+
|
|
11
|
+
export interface HMSNotificationProps {
|
|
12
|
+
id: string;
|
|
13
|
+
text: string | React.ReactElement;
|
|
14
|
+
style?: StyleProp<ViewStyle>;
|
|
15
|
+
textStyle?: StyleProp<TextStyle>;
|
|
16
|
+
icon?: React.ReactElement;
|
|
17
|
+
onDismiss?: () => void;
|
|
18
|
+
autoDismiss?: boolean;
|
|
19
|
+
dismissDelay?: number;
|
|
20
|
+
cta?: React.ReactElement;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export const HMSNotification: React.FC<HMSNotificationProps> = ({
|
|
24
|
+
id,
|
|
25
|
+
text,
|
|
26
|
+
icon,
|
|
27
|
+
style,
|
|
28
|
+
textStyle,
|
|
29
|
+
cta,
|
|
30
|
+
onDismiss,
|
|
31
|
+
dismissDelay = 5000,
|
|
32
|
+
autoDismiss = true,
|
|
33
|
+
}) => {
|
|
34
|
+
const dispatch = useDispatch();
|
|
35
|
+
|
|
36
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
37
|
+
container: {
|
|
38
|
+
backgroundColor: theme.palette.surface_dim,
|
|
39
|
+
},
|
|
40
|
+
text: {
|
|
41
|
+
color: theme.palette.on_surface_high,
|
|
42
|
+
fontFamily: `${typography.font_family}-SemiBold`,
|
|
43
|
+
},
|
|
44
|
+
}));
|
|
45
|
+
|
|
46
|
+
const dismissNotification =
|
|
47
|
+
onDismiss ||
|
|
48
|
+
(autoDismiss
|
|
49
|
+
? () => {
|
|
50
|
+
dispatch(removeNotification(id));
|
|
51
|
+
}
|
|
52
|
+
: null);
|
|
53
|
+
|
|
54
|
+
const notification = (
|
|
55
|
+
<View style={[styles.container, hmsRoomStyles.container, style]}>
|
|
56
|
+
<View style={styles.leftWrapper}>
|
|
57
|
+
{icon ? <View style={styles.icon}>{icon}</View> : null}
|
|
58
|
+
|
|
59
|
+
{typeof text === 'string' ? (
|
|
60
|
+
<Text style={[styles.text, hmsRoomStyles.text, textStyle]}>
|
|
61
|
+
{text}
|
|
62
|
+
</Text>
|
|
63
|
+
) : (
|
|
64
|
+
text
|
|
65
|
+
)}
|
|
66
|
+
</View>
|
|
67
|
+
|
|
68
|
+
<View style={styles.rightWrapper}>
|
|
69
|
+
{cta}
|
|
70
|
+
|
|
71
|
+
{dismissNotification ? (
|
|
72
|
+
<TouchableOpacity onPress={dismissNotification}>
|
|
73
|
+
<CloseIcon />
|
|
74
|
+
</TouchableOpacity>
|
|
75
|
+
) : null}
|
|
76
|
+
</View>
|
|
77
|
+
</View>
|
|
78
|
+
);
|
|
79
|
+
|
|
80
|
+
if (dismissNotification) {
|
|
81
|
+
return (
|
|
82
|
+
<UnmountAfterDelay
|
|
83
|
+
visible={true}
|
|
84
|
+
onUnmount={dismissNotification}
|
|
85
|
+
delay={dismissDelay}
|
|
86
|
+
>
|
|
87
|
+
{notification}
|
|
88
|
+
</UnmountAfterDelay>
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return notification;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
const styles = StyleSheet.create({
|
|
96
|
+
container: {
|
|
97
|
+
flex: 1,
|
|
98
|
+
elevation: 2,
|
|
99
|
+
borderRadius: 8,
|
|
100
|
+
flexDirection: 'row',
|
|
101
|
+
padding: 8,
|
|
102
|
+
paddingLeft: 16,
|
|
103
|
+
marginHorizontal: 8,
|
|
104
|
+
justifyContent: 'space-between',
|
|
105
|
+
alignItems: 'center',
|
|
106
|
+
},
|
|
107
|
+
leftWrapper: {
|
|
108
|
+
flex: 1,
|
|
109
|
+
flexDirection: 'row',
|
|
110
|
+
alignItems: 'center',
|
|
111
|
+
},
|
|
112
|
+
rightWrapper: {
|
|
113
|
+
flexDirection: 'row',
|
|
114
|
+
alignItems: 'center',
|
|
115
|
+
marginLeft: 16,
|
|
116
|
+
},
|
|
117
|
+
icon: {
|
|
118
|
+
marginRight: 8,
|
|
119
|
+
},
|
|
120
|
+
text: {
|
|
121
|
+
flexShrink: 1,
|
|
122
|
+
fontSize: 14,
|
|
123
|
+
lineHeight: 20,
|
|
124
|
+
letterSpacing: 0.1,
|
|
125
|
+
},
|
|
126
|
+
});
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { shallowEqual, useSelector } from 'react-redux';
|
|
3
|
+
import { StyleSheet, View } from 'react-native';
|
|
4
|
+
import type { HMSPeer } from '@100mslive/react-native-hms';
|
|
5
|
+
|
|
6
|
+
import type { RootState } from '../redux';
|
|
7
|
+
import { HMSLocalScreenshareNotification } from './HMSLocalScreenshareNotification';
|
|
8
|
+
import { HMSHandRaiseNotification } from './HMSHandRaiseNotification';
|
|
9
|
+
import { HMSRoleChangeDeclinedNotification } from './HMSRoleChangeDeclinedNotification';
|
|
10
|
+
import { NotificationTypes } from '../utils';
|
|
11
|
+
|
|
12
|
+
export interface HMSNotificationsProps {}
|
|
13
|
+
|
|
14
|
+
const LOCAL_SCREENSHARE_PAYLOAD = {
|
|
15
|
+
id: NotificationTypes.LOCAL_SCREENSHARE,
|
|
16
|
+
type: NotificationTypes.LOCAL_SCREENSHARE,
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export const HMSNotifications: React.FC<HMSNotificationsProps> = () => {
|
|
20
|
+
const isLocalScreenShared = useSelector(
|
|
21
|
+
(state: RootState) => state.hmsStates.isLocalScreenShared
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
// notifications is a stack, first will appear last
|
|
25
|
+
const notifications: (
|
|
26
|
+
| typeof LOCAL_SCREENSHARE_PAYLOAD
|
|
27
|
+
| { id: string; type: string; peer: HMSPeer }
|
|
28
|
+
)[] = useSelector((state: RootState) => {
|
|
29
|
+
// Latest notification will be at 0th index.
|
|
30
|
+
const allNotifications = state.app.notifications;
|
|
31
|
+
|
|
32
|
+
let list = [];
|
|
33
|
+
|
|
34
|
+
if (isLocalScreenShared) {
|
|
35
|
+
list.push(LOCAL_SCREENSHARE_PAYLOAD);
|
|
36
|
+
|
|
37
|
+
// We are picking the latest notification always
|
|
38
|
+
if (allNotifications.length > 0) {
|
|
39
|
+
const firstNotification = allNotifications[0];
|
|
40
|
+
|
|
41
|
+
const secondNotification =
|
|
42
|
+
allNotifications.length > 1 ? allNotifications[1] : null;
|
|
43
|
+
|
|
44
|
+
if (secondNotification) {
|
|
45
|
+
list.push(secondNotification);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
if (firstNotification) {
|
|
49
|
+
list.push(firstNotification);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
} else if (allNotifications.length > 0) {
|
|
53
|
+
const firstNotification = allNotifications[0];
|
|
54
|
+
|
|
55
|
+
const secondNotification =
|
|
56
|
+
allNotifications.length > 1 ? allNotifications[1] : null;
|
|
57
|
+
|
|
58
|
+
const thirdNotification =
|
|
59
|
+
allNotifications.length > 2 ? allNotifications[2] : null;
|
|
60
|
+
|
|
61
|
+
if (thirdNotification) {
|
|
62
|
+
list.push(thirdNotification);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
if (secondNotification) {
|
|
66
|
+
list.push(secondNotification);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if (firstNotification) {
|
|
70
|
+
list.push(firstNotification);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return list;
|
|
75
|
+
}, shallowEqual);
|
|
76
|
+
|
|
77
|
+
if (notifications.length === 0) {
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return (
|
|
82
|
+
<View
|
|
83
|
+
style={[
|
|
84
|
+
styles.absoluteContainer,
|
|
85
|
+
{ paddingTop: (notifications.length - 1) * 16 },
|
|
86
|
+
]}
|
|
87
|
+
>
|
|
88
|
+
{notifications.map((notification, index, arr) => {
|
|
89
|
+
const atTop = index === arr.length - 1;
|
|
90
|
+
const atBottom = index === 0;
|
|
91
|
+
return (
|
|
92
|
+
<View
|
|
93
|
+
key={notification.id}
|
|
94
|
+
style={[
|
|
95
|
+
{
|
|
96
|
+
transform: [{ scale: getScale(arr.length, index) }],
|
|
97
|
+
},
|
|
98
|
+
atBottom ? null : styles.notificationWrapper,
|
|
99
|
+
atBottom ? null : { bottom: index * 16 },
|
|
100
|
+
]}
|
|
101
|
+
>
|
|
102
|
+
{notification.type === NotificationTypes.LOCAL_SCREENSHARE ? (
|
|
103
|
+
<HMSLocalScreenshareNotification />
|
|
104
|
+
) : notification.type === NotificationTypes.HAND_RAISE &&
|
|
105
|
+
'peer' in notification ? (
|
|
106
|
+
<HMSHandRaiseNotification
|
|
107
|
+
id={notification.id}
|
|
108
|
+
peer={notification.peer}
|
|
109
|
+
autoDismiss={atTop}
|
|
110
|
+
dismissDelay={20000}
|
|
111
|
+
/>
|
|
112
|
+
) : notification.type === NotificationTypes.ROLE_CHANGE_DECLINED &&
|
|
113
|
+
'peer' in notification ? (
|
|
114
|
+
<HMSRoleChangeDeclinedNotification
|
|
115
|
+
id={notification.id}
|
|
116
|
+
peerName={notification.peer.name}
|
|
117
|
+
autoDismiss={atTop}
|
|
118
|
+
dismissDelay={10000}
|
|
119
|
+
/>
|
|
120
|
+
) : null}
|
|
121
|
+
</View>
|
|
122
|
+
);
|
|
123
|
+
})}
|
|
124
|
+
</View>
|
|
125
|
+
);
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
const styles = StyleSheet.create({
|
|
129
|
+
absoluteContainer: {
|
|
130
|
+
position: 'relative',
|
|
131
|
+
marginBottom: 8,
|
|
132
|
+
width: '100%',
|
|
133
|
+
},
|
|
134
|
+
notificationWrapper: {
|
|
135
|
+
position: 'absolute',
|
|
136
|
+
width: '100%',
|
|
137
|
+
},
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
const getScale = (totalItem: number, current: number): number => {
|
|
141
|
+
if (totalItem === 1) {
|
|
142
|
+
return 1;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
if (totalItem === 2) {
|
|
146
|
+
return [0.96, 1][current]!;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
if (totalItem === 3) {
|
|
150
|
+
return [0.94, 0.97, 1][current]!;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
return 1;
|
|
154
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { StyleSheet } from 'react-native';
|
|
3
|
+
import LinearGradient from 'react-native-linear-gradient';
|
|
4
|
+
import MaskedView from '@react-native-masked-view/masked-view';
|
|
5
|
+
|
|
6
|
+
import { HMSKeyboardAvoidingView } from './HMSKeyboardAvoidingView';
|
|
7
|
+
import { HMSSendMessageInput } from './HMSSendMessageInput';
|
|
8
|
+
import { HMSHLSMessageList } from './HMSHLSMessageList';
|
|
9
|
+
|
|
10
|
+
const colors = [
|
|
11
|
+
'rgba(0, 0, 0, 0)',
|
|
12
|
+
'rgba(255, 255, 255, 1)',
|
|
13
|
+
'rgba(255, 255, 255, 1)',
|
|
14
|
+
];
|
|
15
|
+
const colorLocations = [0, 0.4, 1];
|
|
16
|
+
|
|
17
|
+
export const HLSChatView = () => {
|
|
18
|
+
return (
|
|
19
|
+
<HMSKeyboardAvoidingView>
|
|
20
|
+
<MaskedView
|
|
21
|
+
maskElement={
|
|
22
|
+
<LinearGradient
|
|
23
|
+
pointerEvents="box-none"
|
|
24
|
+
style={StyleSheet.absoluteFill}
|
|
25
|
+
colors={colors}
|
|
26
|
+
locations={colorLocations}
|
|
27
|
+
/>
|
|
28
|
+
}
|
|
29
|
+
>
|
|
30
|
+
<HMSHLSMessageList />
|
|
31
|
+
</MaskedView>
|
|
32
|
+
|
|
33
|
+
<HMSSendMessageInput />
|
|
34
|
+
</HMSKeyboardAvoidingView>
|
|
35
|
+
);
|
|
36
|
+
};
|
|
@@ -4,7 +4,11 @@ import { shallowEqual, useSelector } from 'react-redux';
|
|
|
4
4
|
|
|
5
5
|
import type { RootState } from '../redux';
|
|
6
6
|
import { RadioIcon } from '../Icons';
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
useHMSLayoutConfig,
|
|
9
|
+
useHMSRoomStyle,
|
|
10
|
+
useShouldGoLive,
|
|
11
|
+
} from '../hooks-util';
|
|
8
12
|
import { HMSPrimaryButton } from './HMSPrimaryButton';
|
|
9
13
|
|
|
10
14
|
export interface HMSPreviewJoinButtonProps {
|
|
@@ -20,8 +24,7 @@ export const HMSPreviewJoinButton: React.FC<HMSPreviewJoinButtonProps> = ({
|
|
|
20
24
|
(state: RootState) => state.user.userName.length <= 0
|
|
21
25
|
);
|
|
22
26
|
|
|
23
|
-
const joinButtonLabels =
|
|
24
|
-
const layoutConfig = state.hmsStates.layoutConfig;
|
|
27
|
+
const joinButtonLabels = useHMSLayoutConfig((layoutConfig) => {
|
|
25
28
|
const joinLayoutConfig =
|
|
26
29
|
layoutConfig?.screens?.preview?.default?.elements?.join_form;
|
|
27
30
|
|
|
@@ -21,7 +21,9 @@ export const HMSPreviewNetworkQuality = () => {
|
|
|
21
21
|
}, []);
|
|
22
22
|
|
|
23
23
|
const containerStyles = useHMSRoomStyle((theme) => ({
|
|
24
|
-
backgroundColor:
|
|
24
|
+
backgroundColor:
|
|
25
|
+
theme.palette.background_dim &&
|
|
26
|
+
hexToRgbA(theme.palette.background_dim, 0.8),
|
|
25
27
|
}));
|
|
26
28
|
|
|
27
29
|
return (
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { useSelector } from 'react-redux';
|
|
3
2
|
import { StyleSheet, Text } from 'react-native';
|
|
4
3
|
import type { StyleProp, TextStyle } from 'react-native';
|
|
5
4
|
|
|
6
5
|
import { useCanPublishAudio, useCanPublishVideo } from '../hooks-sdk';
|
|
7
|
-
import { useHMSRoomStyle } from '../hooks-util';
|
|
8
|
-
import type { RootState } from '../redux';
|
|
6
|
+
import { useHMSLayoutConfig, useHMSRoomStyle } from '../hooks-util';
|
|
9
7
|
|
|
10
8
|
export interface HMSPreviewSubtitleProps {
|
|
11
9
|
subtitle?: string;
|
|
@@ -17,9 +15,7 @@ export const HMSPreviewSubtitle: React.FC<HMSPreviewSubtitleProps> = ({
|
|
|
17
15
|
const canPublishAudio = useCanPublishAudio();
|
|
18
16
|
const canPublishVideo = useCanPublishVideo();
|
|
19
17
|
|
|
20
|
-
const hmsRoomPreviewSubtitle =
|
|
21
|
-
const layoutConfig = state.hmsStates.layoutConfig;
|
|
22
|
-
|
|
18
|
+
const hmsRoomPreviewSubtitle = useHMSLayoutConfig((layoutConfig) => {
|
|
23
19
|
return layoutConfig?.screens?.preview?.default?.elements?.preview_header
|
|
24
20
|
?.sub_title;
|
|
25
21
|
});
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { StyleSheet, Text } from 'react-native';
|
|
3
|
-
import { useSelector } from 'react-redux';
|
|
4
3
|
|
|
5
|
-
import { useHMSRoomStyle } from '../hooks-util';
|
|
6
|
-
import type { RootState } from '../redux';
|
|
4
|
+
import { useHMSLayoutConfig, useHMSRoomStyle } from '../hooks-util';
|
|
7
5
|
|
|
8
6
|
export interface HMSPreviewTitleProps {
|
|
9
7
|
title?: string;
|
|
@@ -12,9 +10,7 @@ export interface HMSPreviewTitleProps {
|
|
|
12
10
|
export const HMSPreviewTitle: React.FC<HMSPreviewTitleProps> = ({
|
|
13
11
|
title = 'Get Started',
|
|
14
12
|
}) => {
|
|
15
|
-
const hmsRoomPreviewTitle =
|
|
16
|
-
const layoutConfig = state.hmsStates.layoutConfig;
|
|
17
|
-
|
|
13
|
+
const hmsRoomPreviewTitle = useHMSLayoutConfig((layoutConfig) => {
|
|
18
14
|
const previewTitle =
|
|
19
15
|
layoutConfig?.screens?.preview?.default?.elements?.preview_header?.title;
|
|
20
16
|
|
|
@@ -21,11 +21,19 @@ export const HMSRecordingIndicator = () => {
|
|
|
21
21
|
}));
|
|
22
22
|
|
|
23
23
|
if (startingOrStoppingRecording) {
|
|
24
|
-
return
|
|
24
|
+
return (
|
|
25
|
+
<ActivityIndicator
|
|
26
|
+
size={'small'}
|
|
27
|
+
color={onSurfaceHighColor}
|
|
28
|
+
style={styles.rightSpace}
|
|
29
|
+
/>
|
|
30
|
+
);
|
|
25
31
|
}
|
|
26
32
|
|
|
27
33
|
if (isRecordingOn) {
|
|
28
|
-
return
|
|
34
|
+
return (
|
|
35
|
+
<RecordingIcon style={[styles.icon, styles.rightSpace, iconStyles]} />
|
|
36
|
+
);
|
|
29
37
|
}
|
|
30
38
|
|
|
31
39
|
return null;
|
|
@@ -36,4 +44,7 @@ const styles = StyleSheet.create({
|
|
|
36
44
|
width: 24,
|
|
37
45
|
height: 24,
|
|
38
46
|
},
|
|
47
|
+
rightSpace: {
|
|
48
|
+
marginRight: 8,
|
|
49
|
+
},
|
|
39
50
|
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
import { HMSNotification } from './HMSNotification';
|
|
4
|
+
import { PersonIcon } from '../Icons';
|
|
5
|
+
|
|
6
|
+
export interface HMSRoleChangeDeclinedNotificationProps {
|
|
7
|
+
peerName: string;
|
|
8
|
+
id: string;
|
|
9
|
+
autoDismiss?: boolean;
|
|
10
|
+
dismissDelay?: number;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const HMSRoleChangeDeclinedNotification: React.FC<
|
|
14
|
+
HMSRoleChangeDeclinedNotificationProps
|
|
15
|
+
> = ({ peerName, id, autoDismiss, dismissDelay }) => {
|
|
16
|
+
return (
|
|
17
|
+
<HMSNotification
|
|
18
|
+
id={id}
|
|
19
|
+
text={`${peerName} declined the request to join the stage`}
|
|
20
|
+
icon={<PersonIcon type="off" />}
|
|
21
|
+
autoDismiss={autoDismiss}
|
|
22
|
+
dismissDelay={dismissDelay}
|
|
23
|
+
/>
|
|
24
|
+
);
|
|
25
|
+
};
|