@100mslive/react-native-room-kit 1.0.0 → 1.0.1
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 -1
- package/lib/commonjs/HMSInstanceSetup.js +2 -2
- package/lib/commonjs/HMSInstanceSetup.js.map +1 -1
- package/lib/commonjs/HMSPrebuilt.js +5 -7
- package/lib/commonjs/HMSPrebuilt.js.map +1 -1
- package/lib/commonjs/HMSRoomSetup.js +3 -3
- package/lib/commonjs/HMSRoomSetup.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/Leave/index.js +5 -1
- package/lib/commonjs/Icons/Leave/index.js.map +1 -1
- package/lib/commonjs/Icons/WelcomeHand/assets/welcome-hand.png +0 -0
- package/lib/commonjs/Icons/WelcomeHand/assets/welcome-hand@2x.png +0 -0
- package/lib/commonjs/Icons/WelcomeHand/assets/welcome-hand@3x.png +0 -0
- package/lib/commonjs/Icons/WelcomeHand/index.js +30 -0
- package/lib/commonjs/Icons/WelcomeHand/index.js.map +1 -0
- package/lib/commonjs/Icons/index.js +11 -0
- package/lib/commonjs/Icons/index.js.map +1 -1
- package/lib/commonjs/components/AnimatedFooter.js +2 -2
- package/lib/commonjs/components/AnimatedFooter.js.map +1 -1
- package/lib/commonjs/components/AnimatedHLSFooter.js +2 -2
- package/lib/commonjs/components/AnimatedHLSFooter.js.map +1 -1
- package/lib/commonjs/components/AnimatedHeader.js +2 -2
- package/lib/commonjs/components/AnimatedHeader.js.map +1 -1
- package/lib/commonjs/components/AvatarView.js +2 -2
- package/lib/commonjs/components/AvatarView.js.map +1 -1
- package/lib/commonjs/components/BackButton.js +2 -2
- package/lib/commonjs/components/BackButton.js.map +1 -1
- package/lib/commonjs/components/BottomSheet.js +2 -2
- package/lib/commonjs/components/BottomSheet.js.map +1 -1
- package/lib/commonjs/components/ChangeNameModalContent.js +25 -6
- package/lib/commonjs/components/ChangeNameModalContent.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatBanner.js +2 -2
- package/lib/commonjs/components/Chat/ChatBanner.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js +3 -4
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js +3 -4
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterItem.js +3 -4
- package/lib/commonjs/components/Chat/ChatFilterItem.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterView.js +3 -4
- package/lib/commonjs/components/Chat/ChatFilterView.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatList.js +3 -4
- package/lib/commonjs/components/Chat/ChatList.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatMessage.js +3 -4
- package/lib/commonjs/components/Chat/ChatMessage.js.map +1 -1
- package/lib/commonjs/components/Chat/PinnedMessage.js +2 -2
- package/lib/commonjs/components/Chat/PinnedMessage.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js +2 -2
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsHeader.js +7 -7
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsHeader.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js +3 -4
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatView.js +3 -4
- package/lib/commonjs/components/ChatAndParticipants/ChatView.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ParticipantsView.js +15 -14
- package/lib/commonjs/components/ChatAndParticipants/ParticipantsView.js.map +1 -1
- package/lib/commonjs/components/DisplayView.js +2 -2
- package/lib/commonjs/components/DisplayView.js.map +1 -1
- package/lib/commonjs/components/EndRoomModalContent.js +2 -2
- package/lib/commonjs/components/EndRoomModalContent.js.map +1 -1
- package/lib/commonjs/components/Footer.js +4 -5
- package/lib/commonjs/components/Footer.js.map +1 -1
- package/lib/commonjs/components/FullScreenVideoView.js +2 -2
- package/lib/commonjs/components/FullScreenVideoView.js.map +1 -1
- package/lib/commonjs/components/GridView.js +3 -4
- package/lib/commonjs/components/GridView.js.map +1 -1
- package/lib/commonjs/components/HLSFooter.js +2 -2
- package/lib/commonjs/components/HLSFooter.js.map +1 -1
- package/lib/commonjs/components/HLSView.js +2 -2
- package/lib/commonjs/components/HLSView.js.map +1 -1
- package/lib/commonjs/components/HMSBaseButton.js +2 -2
- package/lib/commonjs/components/HMSBaseButton.js.map +1 -1
- package/lib/commonjs/components/HMSChat.js +2 -2
- package/lib/commonjs/components/HMSChat.js.map +1 -1
- package/lib/commonjs/components/HMSDangerButton.js +4 -3
- package/lib/commonjs/components/HMSDangerButton.js.map +1 -1
- package/lib/commonjs/components/HMSHLSMessage.js +3 -4
- package/lib/commonjs/components/HMSHLSMessage.js.map +1 -1
- package/lib/commonjs/components/HMSHLSMessageList.js +2 -2
- package/lib/commonjs/components/HMSHLSMessageList.js.map +1 -1
- package/lib/commonjs/components/HMSHLSNotStarted.js +2 -2
- package/lib/commonjs/components/HMSHLSNotStarted.js.map +1 -1
- package/lib/commonjs/components/HMSHLSStreamLoading.js +6 -4
- package/lib/commonjs/components/HMSHLSStreamLoading.js.map +1 -1
- package/lib/commonjs/components/HMSHandRaiseNotification.js +2 -2
- package/lib/commonjs/components/HMSHandRaiseNotification.js.map +1 -1
- package/lib/commonjs/components/HMSKeyboardAvoidingView.js +4 -5
- package/lib/commonjs/components/HMSKeyboardAvoidingView.js.map +1 -1
- package/lib/commonjs/components/HMSLiveIndicator.js +5 -6
- package/lib/commonjs/components/HMSLiveIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSLocalScreenshareNotification.js +2 -2
- package/lib/commonjs/components/HMSLocalScreenshareNotification.js.map +1 -1
- package/lib/commonjs/components/HMSLocalVideoView.js +2 -2
- package/lib/commonjs/components/HMSLocalVideoView.js.map +1 -1
- package/lib/commonjs/components/HMSManageAudioOutput.js +2 -2
- package/lib/commonjs/components/HMSManageAudioOutput.js.map +1 -1
- package/lib/commonjs/components/HMSManageCameraRotation.js +2 -2
- package/lib/commonjs/components/HMSManageCameraRotation.js.map +1 -1
- package/lib/commonjs/components/HMSManageLeave.js +4 -3
- package/lib/commonjs/components/HMSManageLeave.js.map +1 -1
- package/lib/commonjs/components/HMSManageLocalAudio.js +2 -2
- package/lib/commonjs/components/HMSManageLocalAudio.js.map +1 -1
- package/lib/commonjs/components/HMSManageLocalVideo.js +2 -2
- package/lib/commonjs/components/HMSManageLocalVideo.js.map +1 -1
- package/lib/commonjs/components/HMSManageRaiseHand.js +23 -11
- package/lib/commonjs/components/HMSManageRaiseHand.js.map +1 -1
- package/lib/commonjs/components/HMSMeetingEnded.js +2 -2
- package/lib/commonjs/components/HMSMeetingEnded.js.map +1 -1
- package/lib/commonjs/components/HMSNotification.js +2 -2
- package/lib/commonjs/components/HMSNotification.js.map +1 -1
- package/lib/commonjs/components/HMSNotifications.js +2 -2
- package/lib/commonjs/components/HMSNotifications.js.map +1 -1
- package/lib/commonjs/components/HMSOverlayChatView.js +2 -2
- package/lib/commonjs/components/HMSOverlayChatView.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewEditName.js +2 -2
- package/lib/commonjs/components/HMSPreviewEditName.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js +5 -4
- package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewJoinButton.js +10 -5
- package/lib/commonjs/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewNetworkQuality.js +2 -2
- package/lib/commonjs/components/HMSPreviewNetworkQuality.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewPeersList.js +2 -2
- package/lib/commonjs/components/HMSPreviewPeersList.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewSubtitle.js +2 -2
- package/lib/commonjs/components/HMSPreviewSubtitle.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewTile.js +3 -3
- package/lib/commonjs/components/HMSPreviewTile.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewTitle.js +2 -2
- package/lib/commonjs/components/HMSPreviewTitle.js.map +1 -1
- package/lib/commonjs/components/HMSPrimaryButton.js +2 -2
- package/lib/commonjs/components/HMSPrimaryButton.js.map +1 -1
- package/lib/commonjs/components/HMSRecordingIndicator.js +6 -3
- package/lib/commonjs/components/HMSRecordingIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSRoleChangeDeclinedNotification.js +2 -2
- package/lib/commonjs/components/HMSRoleChangeDeclinedNotification.js.map +1 -1
- package/lib/commonjs/components/HMSRoomOptions.js +2 -2
- package/lib/commonjs/components/HMSRoomOptions.js.map +1 -1
- package/lib/commonjs/components/HMSSendMessageInput.js +2 -2
- package/lib/commonjs/components/HMSSendMessageInput.js.map +1 -1
- package/lib/commonjs/components/HMSTextInput.js +5 -5
- package/lib/commonjs/components/HMSTextInput.js.map +1 -1
- package/lib/commonjs/components/HMSVideoView.js +2 -2
- package/lib/commonjs/components/HMSVideoView.js.map +1 -1
- package/lib/commonjs/components/Header.js +4 -6
- package/lib/commonjs/components/Header.js.map +1 -1
- package/lib/commonjs/components/LocalPeerRegularVideoView.js +2 -2
- package/lib/commonjs/components/LocalPeerRegularVideoView.js.map +1 -1
- package/lib/commonjs/components/LocalPeerScreenshareView.js +2 -2
- package/lib/commonjs/components/LocalPeerScreenshareView.js.map +1 -1
- package/lib/commonjs/components/Meeting.js +2 -2
- package/lib/commonjs/components/Meeting.js.map +1 -1
- package/lib/commonjs/components/MeetingScreenContent.js +2 -2
- package/lib/commonjs/components/MeetingScreenContent.js.map +1 -1
- package/lib/commonjs/components/MiniView.js +2 -2
- package/lib/commonjs/components/MiniView.js.map +1 -1
- package/lib/commonjs/components/Modals.js +2 -2
- package/lib/commonjs/components/Modals.js.map +1 -1
- package/lib/commonjs/components/OverlayContainer.js +2 -2
- package/lib/commonjs/components/OverlayContainer.js.map +1 -1
- package/lib/commonjs/components/OverlayedViews.js +3 -4
- package/lib/commonjs/components/OverlayedViews.js.map +1 -1
- package/lib/commonjs/components/PIPView.js +24 -18
- package/lib/commonjs/components/PIPView.js.map +1 -1
- package/lib/commonjs/components/PaginationDots.js +3 -4
- package/lib/commonjs/components/PaginationDots.js.map +1 -1
- package/lib/commonjs/components/Participants/MultiRoleParticipantsList.js +65 -0
- package/lib/commonjs/components/Participants/MultiRoleParticipantsList.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsAccordian.js +60 -0
- package/lib/commonjs/components/Participants/ParticipantsAccordian.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsAccordianExpanded.js +25 -0
- package/lib/commonjs/components/Participants/ParticipantsAccordianExpanded.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsGroupFooter.js +61 -0
- package/lib/commonjs/components/Participants/ParticipantsGroupFooter.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js +31 -31
- package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsGroupOptions.js +3 -4
- package/lib/commonjs/components/Participants/ParticipantsGroupOptions.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsItem.js +12 -21
- package/lib/commonjs/components/Participants/ParticipantsItem.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsItemOption.js +3 -4
- package/lib/commonjs/components/Participants/ParticipantsItemOption.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsItemOptions.js +4 -5
- package/lib/commonjs/components/Participants/ParticipantsItemOptions.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsList.js +157 -22
- package/lib/commonjs/components/Participants/ParticipantsList.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsListFooter.js +43 -0
- package/lib/commonjs/components/Participants/ParticipantsListFooter.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsSeachInput.js +4 -4
- package/lib/commonjs/components/Participants/ParticipantsSeachInput.js.map +1 -1
- package/lib/commonjs/components/Participants/index.js +11 -0
- package/lib/commonjs/components/Participants/index.js.map +1 -1
- package/lib/commonjs/components/ParticipantsCount.js +3 -4
- package/lib/commonjs/components/ParticipantsCount.js.map +1 -1
- package/lib/commonjs/components/PeerDisplayView.js +1 -2
- package/lib/commonjs/components/PeerDisplayView.js.map +1 -1
- package/lib/commonjs/components/PeerMinimizedView.js +3 -4
- package/lib/commonjs/components/PeerMinimizedView.js.map +1 -1
- package/lib/commonjs/components/PeerRTCStatsContainer.js +3 -4
- package/lib/commonjs/components/PeerRTCStatsContainer.js.map +1 -1
- package/lib/commonjs/components/PeerRTCStatsView.js +1 -2
- package/lib/commonjs/components/PeerRTCStatsView.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/AvatarView.js +4 -5
- package/lib/commonjs/components/PeerVideoTile/AvatarView.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/HMSFullScreenButton.js +2 -2
- package/lib/commonjs/components/PeerVideoTile/HMSFullScreenButton.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/HMSPinchGesture.js +2 -2
- package/lib/commonjs/components/PeerVideoTile/HMSPinchGesture.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerAudioIndicator.js +12 -7
- package/lib/commonjs/components/PeerVideoTile/PeerAudioIndicator.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js +22 -12
- package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js +2 -2
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js +26 -12
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/VideoView.js +3 -4
- package/lib/commonjs/components/PeerVideoTile/VideoView.js.map +1 -1
- package/lib/commonjs/components/PressableIcon.js +2 -2
- package/lib/commonjs/components/PressableIcon.js.map +1 -1
- package/lib/commonjs/components/Preview.js +5 -1
- package/lib/commonjs/components/Preview.js.map +1 -1
- package/lib/commonjs/components/PreviewForRoleChangeModal.js +4 -10
- package/lib/commonjs/components/PreviewForRoleChangeModal.js.map +1 -1
- package/lib/commonjs/components/ReconnectionView.js +3 -4
- package/lib/commonjs/components/ReconnectionView.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalContent.js +49 -13
- package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js +1 -1
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js.map +1 -1
- package/lib/commonjs/components/StatusBar.js +2 -2
- package/lib/commonjs/components/StatusBar.js.map +1 -1
- package/lib/commonjs/components/StopRecordingModalContent.js +2 -2
- package/lib/commonjs/components/StopRecordingModalContent.js.map +1 -1
- package/lib/commonjs/components/StreamingQualityModalContent.js +2 -2
- package/lib/commonjs/components/StreamingQualityModalContent.js.map +1 -1
- package/lib/commonjs/components/Tile.js +1 -2
- package/lib/commonjs/components/Tile.js.map +1 -1
- package/lib/commonjs/components/TilesContainer.js +1 -2
- package/lib/commonjs/components/TilesContainer.js.map +1 -1
- package/lib/commonjs/components/UnmountAfterDelay.js +3 -4
- package/lib/commonjs/components/UnmountAfterDelay.js.map +1 -1
- package/lib/commonjs/components/WebrtcView.js +5 -5
- package/lib/commonjs/components/WebrtcView.js.map +1 -1
- package/lib/commonjs/components/WelcomeInMeeting.js +30 -9
- package/lib/commonjs/components/WelcomeInMeeting.js.map +1 -1
- package/lib/commonjs/components/styles.js +1 -2
- package/lib/commonjs/components/styles.js.map +1 -1
- package/lib/commonjs/hooks-sdk.js +46 -1
- package/lib/commonjs/hooks-sdk.js.map +1 -1
- package/lib/commonjs/hooks-util.js +133 -119
- package/lib/commonjs/hooks-util.js.map +1 -1
- package/lib/commonjs/redux/actionTypes.js +6 -5
- package/lib/commonjs/redux/actionTypes.js.map +1 -1
- package/lib/commonjs/redux/actions/index.js +20 -4
- package/lib/commonjs/redux/actions/index.js.map +1 -1
- package/lib/commonjs/redux/index.js +1 -2
- package/lib/commonjs/redux/index.js.map +1 -1
- package/lib/commonjs/redux/reducers/appState.js +3 -4
- package/lib/commonjs/redux/reducers/appState.js.map +1 -1
- package/lib/commonjs/redux/reducers/chatWindow.js +1 -2
- package/lib/commonjs/redux/reducers/chatWindow.js.map +1 -1
- package/lib/commonjs/redux/reducers/hmsStates.js +192 -22
- package/lib/commonjs/redux/reducers/hmsStates.js.map +1 -1
- package/lib/commonjs/redux/reducers/index.js +1 -2
- package/lib/commonjs/redux/reducers/index.js.map +1 -1
- package/lib/commonjs/redux/reducers/message.js +3 -4
- package/lib/commonjs/redux/reducers/message.js.map +1 -1
- package/lib/commonjs/redux/reducers/userState.js +3 -4
- package/lib/commonjs/redux/reducers/userState.js.map +1 -1
- package/lib/commonjs/types.js +1 -2
- package/lib/commonjs/types.js.map +1 -1
- package/lib/commonjs/utils/dimension.js +2 -4
- package/lib/commonjs/utils/dimension.js.map +1 -1
- package/lib/commonjs/utils/functions.js.map +1 -1
- package/lib/commonjs/utils/theme.js +5 -10
- package/lib/commonjs/utils/theme.js.map +1 -1
- package/lib/commonjs/utils/types.js +13 -23
- package/lib/commonjs/utils/types.js.map +1 -1
- package/lib/commonjs/utils.js +1 -2
- package/lib/commonjs/utils.js.map +1 -1
- package/lib/module/HMSPrebuilt.js +2 -3
- package/lib/module/HMSPrebuilt.js.map +1 -1
- package/lib/module/HMSRoomSetup.js +1 -1
- package/lib/module/HMSRoomSetup.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/Leave/index.js +5 -1
- package/lib/module/Icons/Leave/index.js.map +1 -1
- package/lib/module/Icons/WelcomeHand/assets/welcome-hand.png +0 -0
- package/lib/module/Icons/WelcomeHand/assets/welcome-hand@2x.png +0 -0
- package/lib/module/Icons/WelcomeHand/assets/welcome-hand@3x.png +0 -0
- package/lib/module/Icons/WelcomeHand/index.js +22 -0
- package/lib/module/Icons/WelcomeHand/index.js.map +1 -0
- package/lib/module/Icons/index.js +1 -0
- package/lib/module/Icons/index.js.map +1 -1
- package/lib/module/components/ChangeNameModalContent.js +25 -6
- package/lib/module/components/ChangeNameModalContent.js.map +1 -1
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsHeader.js +4 -3
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsHeader.js.map +1 -1
- package/lib/module/components/ChatAndParticipants/ParticipantsView.js +13 -12
- package/lib/module/components/ChatAndParticipants/ParticipantsView.js.map +1 -1
- package/lib/module/components/Footer.js +1 -1
- package/lib/module/components/Footer.js.map +1 -1
- package/lib/module/components/HMSDangerButton.js +2 -1
- package/lib/module/components/HMSDangerButton.js.map +1 -1
- package/lib/module/components/HMSHLSStreamLoading.js +5 -3
- package/lib/module/components/HMSHLSStreamLoading.js.map +1 -1
- package/lib/module/components/HMSKeyboardAvoidingView.js +3 -4
- package/lib/module/components/HMSKeyboardAvoidingView.js.map +1 -1
- package/lib/module/components/HMSLiveIndicator.js +3 -3
- package/lib/module/components/HMSLiveIndicator.js.map +1 -1
- package/lib/module/components/HMSManageLeave.js +2 -1
- package/lib/module/components/HMSManageLeave.js.map +1 -1
- package/lib/module/components/HMSManageRaiseHand.js +22 -10
- package/lib/module/components/HMSManageRaiseHand.js.map +1 -1
- package/lib/module/components/HMSPreviewHLSLiveIndicator.js +3 -2
- package/lib/module/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
- package/lib/module/components/HMSPreviewJoinButton.js +9 -4
- package/lib/module/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/module/components/HMSPreviewTile.js +1 -1
- package/lib/module/components/HMSPreviewTile.js.map +1 -1
- package/lib/module/components/HMSRecordingIndicator.js +4 -1
- package/lib/module/components/HMSRecordingIndicator.js.map +1 -1
- package/lib/module/components/HMSTextInput.js +3 -3
- package/lib/module/components/HMSTextInput.js.map +1 -1
- package/lib/module/components/PIPView.js +21 -13
- package/lib/module/components/PIPView.js.map +1 -1
- package/lib/module/components/Participants/MultiRoleParticipantsList.js +56 -0
- package/lib/module/components/Participants/MultiRoleParticipantsList.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsAccordian.js +51 -0
- package/lib/module/components/Participants/ParticipantsAccordian.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsAccordianExpanded.js +16 -0
- package/lib/module/components/Participants/ParticipantsAccordianExpanded.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsGroupFooter.js +53 -0
- package/lib/module/components/Participants/ParticipantsGroupFooter.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsGroupHeader.js +28 -27
- package/lib/module/components/Participants/ParticipantsGroupHeader.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsGroupOptions.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsItem.js +10 -18
- package/lib/module/components/Participants/ParticipantsItem.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsItemOptions.js +1 -1
- package/lib/module/components/Participants/ParticipantsItemOptions.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsList.js +156 -21
- package/lib/module/components/Participants/ParticipantsList.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsListFooter.js +35 -0
- package/lib/module/components/Participants/ParticipantsListFooter.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsSeachInput.js +2 -2
- package/lib/module/components/Participants/ParticipantsSeachInput.js.map +1 -1
- package/lib/module/components/Participants/index.js +1 -0
- package/lib/module/components/Participants/index.js.map +1 -1
- package/lib/module/components/PeerVideoTile/AvatarView.js +1 -1
- package/lib/module/components/PeerVideoTile/AvatarView.js.map +1 -1
- package/lib/module/components/PeerVideoTile/PeerAudioIndicator.js +11 -6
- package/lib/module/components/PeerVideoTile/PeerAudioIndicator.js.map +1 -1
- package/lib/module/components/PeerVideoTile/PeerMetadata.js +21 -11
- package/lib/module/components/PeerVideoTile/PeerMetadata.js.map +1 -1
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js +22 -6
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
- package/lib/module/components/Preview.js +6 -2
- package/lib/module/components/Preview.js.map +1 -1
- package/lib/module/components/PreviewForRoleChangeModal.js +1 -6
- package/lib/module/components/PreviewForRoleChangeModal.js.map +1 -1
- package/lib/module/components/RoomSettingsModalContent.js +49 -13
- package/lib/module/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/module/components/RoomSettingsModalDebugModeContent.js +1 -1
- package/lib/module/components/RoomSettingsModalDebugModeContent.js.map +1 -1
- package/lib/module/components/WebrtcView.js +2 -1
- package/lib/module/components/WebrtcView.js.map +1 -1
- package/lib/module/components/WelcomeInMeeting.js +29 -8
- package/lib/module/components/WelcomeInMeeting.js.map +1 -1
- package/lib/module/hooks-sdk.js +46 -1
- package/lib/module/hooks-sdk.js.map +1 -1
- package/lib/module/hooks-util.js +135 -122
- package/lib/module/hooks-util.js.map +1 -1
- package/lib/module/redux/actionTypes.js +4 -1
- package/lib/module/redux/actionTypes.js.map +1 -1
- package/lib/module/redux/actions/index.js +14 -1
- package/lib/module/redux/actions/index.js.map +1 -1
- package/lib/module/redux/reducers/hmsStates.js +191 -20
- package/lib/module/redux/reducers/hmsStates.js.map +1 -1
- package/lib/module/utils/functions.js.map +1 -1
- package/lib/module/utils/types.js +1 -0
- package/lib/module/utils/types.js.map +1 -1
- package/lib/typescript/HMSPrebuilt.d.ts.map +1 -1
- package/lib/typescript/Icons/Chevron/index.d.ts +1 -1
- package/lib/typescript/Icons/Chevron/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Leave/index.d.ts.map +1 -1
- package/lib/typescript/Icons/WelcomeHand/index.d.ts +7 -0
- package/lib/typescript/Icons/WelcomeHand/index.d.ts.map +1 -0
- package/lib/typescript/Icons/index.d.ts +1 -0
- package/lib/typescript/Icons/index.d.ts.map +1 -1
- package/lib/typescript/components/ChangeNameModalContent.d.ts.map +1 -1
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsHeader.d.ts.map +1 -1
- package/lib/typescript/components/ChatAndParticipants/ParticipantsView.d.ts.map +1 -1
- package/lib/typescript/components/HMSDangerButton.d.ts.map +1 -1
- package/lib/typescript/components/HMSHLSStreamLoading.d.ts.map +1 -1
- package/lib/typescript/components/HMSKeyboardAvoidingView.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageLeave.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageRaiseHand.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/HMSRecordingIndicator.d.ts.map +1 -1
- package/lib/typescript/components/PIPView.d.ts +2 -1
- package/lib/typescript/components/PIPView.d.ts.map +1 -1
- package/lib/typescript/components/Participants/MultiRoleParticipantsList.d.ts +7 -0
- package/lib/typescript/components/Participants/MultiRoleParticipantsList.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsAccordian.d.ts +11 -0
- package/lib/typescript/components/Participants/ParticipantsAccordian.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsAccordianExpanded.d.ts +9 -0
- package/lib/typescript/components/Participants/ParticipantsAccordianExpanded.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsGroupFooter.d.ts +9 -0
- package/lib/typescript/components/Participants/ParticipantsGroupFooter.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsGroupHeader.d.ts +6 -3
- package/lib/typescript/components/Participants/ParticipantsGroupHeader.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsGroupOptions.d.ts +0 -2
- package/lib/typescript/components/Participants/ParticipantsGroupOptions.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsItem.d.ts +3 -3
- package/lib/typescript/components/Participants/ParticipantsItem.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsItemOptions.d.ts +2 -2
- package/lib/typescript/components/Participants/ParticipantsItemOptions.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsList.d.ts +3 -4
- package/lib/typescript/components/Participants/ParticipantsList.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsListFooter.d.ts +6 -0
- package/lib/typescript/components/Participants/ParticipantsListFooter.d.ts.map +1 -0
- package/lib/typescript/components/Participants/index.d.ts +1 -0
- package/lib/typescript/components/Participants/index.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/PeerAudioIndicator.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/PeerMetadata.d.ts +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerMetadata.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts.map +1 -1
- package/lib/typescript/components/Preview.d.ts.map +1 -1
- package/lib/typescript/components/PreviewForRoleChangeModal.d.ts.map +1 -1
- package/lib/typescript/components/RoomSettingsModalContent.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/hooks-sdk.d.ts +4 -0
- package/lib/typescript/hooks-sdk.d.ts.map +1 -1
- package/lib/typescript/hooks-util.d.ts +9 -19
- package/lib/typescript/hooks-util.d.ts.map +1 -1
- package/lib/typescript/redux/actionTypes.d.ts +4 -1
- package/lib/typescript/redux/actionTypes.d.ts.map +1 -1
- package/lib/typescript/redux/actions/index.d.ts +13 -0
- package/lib/typescript/redux/actions/index.d.ts.map +1 -1
- package/lib/typescript/redux/index.d.ts +1 -1
- package/lib/typescript/redux/reducers/hmsStates.d.ts +16 -3
- package/lib/typescript/redux/reducers/hmsStates.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/index.d.ts +1 -1
- package/lib/typescript/utils/functions.d.ts +0 -1
- package/lib/typescript/utils/functions.d.ts.map +1 -1
- package/lib/typescript/utils/types.d.ts +1 -0
- package/lib/typescript/utils/types.d.ts.map +1 -1
- package/package.json +3 -4
- package/src/HMSPrebuilt.tsx +3 -6
- package/src/HMSRoomSetup.tsx +1 -1
- package/src/Icons/Chevron/index.tsx +9 -2
- package/src/Icons/Leave/index.tsx +7 -1
- package/src/Icons/WelcomeHand/assets/welcome-hand.png +0 -0
- package/src/Icons/WelcomeHand/assets/welcome-hand@2x.png +0 -0
- package/src/Icons/WelcomeHand/assets/welcome-hand@3x.png +0 -0
- package/src/Icons/WelcomeHand/index.tsx +27 -0
- package/src/Icons/index.ts +1 -0
- package/src/components/ChangeNameModalContent.tsx +28 -9
- package/src/components/ChatAndParticipants/ChatAndParticipantsHeader.tsx +6 -3
- package/src/components/ChatAndParticipants/ParticipantsView.tsx +21 -13
- package/src/components/Footer.tsx +1 -1
- package/src/components/HMSDangerButton.tsx +2 -1
- package/src/components/HMSHLSStreamLoading.tsx +9 -3
- package/src/components/HMSKeyboardAvoidingView.tsx +3 -3
- package/src/components/HMSLiveIndicator.tsx +3 -3
- package/src/components/HMSManageLeave.tsx +2 -1
- package/src/components/HMSManageRaiseHand.tsx +20 -13
- package/src/components/HMSPreviewHLSLiveIndicator.tsx +3 -2
- package/src/components/HMSPreviewJoinButton.tsx +15 -4
- package/src/components/HMSPreviewTile.tsx +1 -1
- package/src/components/HMSRecordingIndicator.tsx +3 -1
- package/src/components/HMSTextInput.tsx +3 -3
- package/src/components/PIPView.tsx +34 -13
- package/src/components/Participants/MultiRoleParticipantsList.tsx +70 -0
- package/src/components/Participants/ParticipantsAccordian.tsx +70 -0
- package/src/components/Participants/ParticipantsAccordianExpanded.tsx +27 -0
- package/src/components/Participants/ParticipantsGroupFooter.tsx +65 -0
- package/src/components/Participants/ParticipantsGroupHeader.tsx +37 -37
- package/src/components/Participants/ParticipantsGroupOptions.tsx +1 -6
- package/src/components/Participants/ParticipantsItem.tsx +16 -33
- package/src/components/Participants/ParticipantsItemOptions.tsx +3 -3
- package/src/components/Participants/ParticipantsList.tsx +197 -34
- package/src/components/Participants/ParticipantsListFooter.tsx +45 -0
- package/src/components/Participants/ParticipantsSeachInput.tsx +2 -2
- package/src/components/Participants/index.ts +1 -0
- package/src/components/PeerVideoTile/AvatarView.tsx +1 -1
- package/src/components/PeerVideoTile/PeerAudioIndicator.tsx +11 -6
- package/src/components/PeerVideoTile/PeerMetadata.tsx +21 -12
- package/src/components/PeerVideoTile/PeerVideoTileView.tsx +25 -8
- package/src/components/Preview.tsx +23 -9
- package/src/components/PreviewForRoleChangeModal.tsx +1 -6
- package/src/components/RoomSettingsModalContent.tsx +44 -9
- package/src/components/RoomSettingsModalDebugModeContent.tsx +1 -1
- package/src/components/WebrtcView.tsx +10 -1
- package/src/components/WelcomeInMeeting.tsx +33 -5
- package/src/hooks-sdk.ts +58 -0
- package/src/hooks-util.ts +229 -193
- package/src/redux/actionTypes.ts +4 -1
- package/src/redux/actions/index.ts +17 -1
- package/src/redux/reducers/hmsStates.ts +269 -36
- package/src/utils/functions.ts +0 -1
- package/src/utils/types.ts +2 -0
- package/lib/commonjs/assets/welcome.png +0 -0
- package/lib/module/assets/welcome.png +0 -0
- package/src/assets/welcome.png +0 -0
|
@@ -1,65 +1,213 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { StyleSheet, Text, View } from 'react-native';
|
|
3
3
|
import { FlashList } from '@shopify/flash-list';
|
|
4
|
-
import type {
|
|
4
|
+
import type { HMSPeer } from '@100mslive/react-native-hms';
|
|
5
5
|
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
ParticipantHeaderData,
|
|
6
|
+
import {
|
|
7
|
+
useHMSInstance,
|
|
8
|
+
useHMSLayoutConfig,
|
|
9
|
+
useHMSRoomStyleSheet,
|
|
11
10
|
} from '../../hooks-util';
|
|
12
11
|
import { ParticipantsItem } from './ParticipantsItem';
|
|
13
12
|
import { ParticipantsGroupHeader } from './ParticipantsGroupHeader';
|
|
13
|
+
import { useSelector } from 'react-redux';
|
|
14
|
+
import type { RootState } from '../../redux';
|
|
15
|
+
import { ParticipantsListFooter } from './ParticipantsListFooter';
|
|
14
16
|
|
|
15
17
|
export type ParticipantsListProps = {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
searchText: string;
|
|
19
|
+
selectedGroupId: string;
|
|
20
|
+
onBackPress(): void;
|
|
19
21
|
};
|
|
20
22
|
|
|
23
|
+
const stickyIndices = [0];
|
|
24
|
+
|
|
21
25
|
export const ParticipantsList: React.FC<ParticipantsListProps> = ({
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
26
|
+
searchText,
|
|
27
|
+
selectedGroupId,
|
|
28
|
+
onBackPress,
|
|
25
29
|
}) => {
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
const mountedRef = React.useRef(true);
|
|
31
|
+
const fetchedInitialDataRef = React.useRef(false);
|
|
32
|
+
const hmsInstance = useHMSInstance();
|
|
33
|
+
|
|
34
|
+
// Currect is current selected group and off-stage gorup
|
|
35
|
+
const isOffStageGroup = useHMSLayoutConfig((layoutConfig) => {
|
|
36
|
+
const offStageRoles =
|
|
37
|
+
layoutConfig?.screens?.conferencing?.default?.elements?.on_stage_exp
|
|
38
|
+
?.off_stage_roles || null;
|
|
39
|
+
return offStageRoles ? offStageRoles.includes(selectedGroupId) : false;
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
// Getting initial data for the selected group Id
|
|
43
|
+
const dataForGroupId = useSelector(
|
|
44
|
+
(state: RootState) => {
|
|
45
|
+
return selectedGroupId === 'hand-raised' ? state.hmsStates.groupedParticipants : state.hmsStates.groupedParticipants[selectedGroupId]
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
const finalDataForGroupId = React.useMemo(() => {
|
|
50
|
+
if (Array.isArray(dataForGroupId)) {
|
|
51
|
+
return dataForGroupId;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
if (dataForGroupId && selectedGroupId === 'hand-raised') {
|
|
55
|
+
return Object.values(dataForGroupId).flat().filter(peer => peer.isHandRaised);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
return null;
|
|
59
|
+
}, [dataForGroupId, selectedGroupId]);
|
|
60
|
+
|
|
61
|
+
// Creating Header Data
|
|
62
|
+
const headerData = React.useMemo(() => {
|
|
63
|
+
return {
|
|
64
|
+
id: selectedGroupId,
|
|
65
|
+
label:
|
|
66
|
+
selectedGroupId === 'hand-raised' ? 'Hand Raised' : selectedGroupId,
|
|
67
|
+
};
|
|
68
|
+
}, [selectedGroupId]);
|
|
69
|
+
|
|
70
|
+
// Created List with Header Data as first item in list
|
|
71
|
+
const dataWithHeader = React.useMemo(
|
|
72
|
+
() => [headerData, ...(finalDataForGroupId ?? [])],
|
|
73
|
+
[finalDataForGroupId, headerData]
|
|
74
|
+
);
|
|
75
|
+
|
|
76
|
+
const [offStageData, setOffStageData] = React.useState(dataWithHeader);
|
|
77
|
+
const [loading, setLoading] = React.useState(false);
|
|
78
|
+
|
|
79
|
+
// Created Peer List Iterator for current selected group if it is an 'off-stage' group
|
|
80
|
+
const peerListIterator = React.useMemo(() => {
|
|
81
|
+
if (!isOffStageGroup) {
|
|
82
|
+
return null;
|
|
83
|
+
}
|
|
84
|
+
return hmsInstance.getPeerListIterator({
|
|
85
|
+
limit: 20,
|
|
86
|
+
byRoleName: selectedGroupId,
|
|
87
|
+
});
|
|
88
|
+
}, [selectedGroupId, isOffStageGroup, hmsInstance]);
|
|
89
|
+
|
|
90
|
+
// #Effect: Fetching first page from Peer List Iterator
|
|
91
|
+
React.useEffect(() => {
|
|
92
|
+
let mounted = true;
|
|
93
|
+
mountedRef.current = true;
|
|
94
|
+
|
|
95
|
+
if (peerListIterator) {
|
|
96
|
+
setLoading(true);
|
|
97
|
+
|
|
98
|
+
peerListIterator
|
|
99
|
+
.next()
|
|
100
|
+
.then((peers: HMSPeer[]) => {
|
|
101
|
+
if (mounted) {
|
|
102
|
+
setLoading(false);
|
|
103
|
+
setOffStageData([headerData, ...peers]);
|
|
104
|
+
fetchedInitialDataRef.current = true;
|
|
105
|
+
}
|
|
106
|
+
})
|
|
107
|
+
.catch(() => {
|
|
108
|
+
if (mounted) {
|
|
109
|
+
setLoading(false);
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
return () => {
|
|
115
|
+
mounted = false;
|
|
116
|
+
mountedRef.current = false;
|
|
117
|
+
};
|
|
118
|
+
}, [headerData, peerListIterator]);
|
|
30
119
|
|
|
31
|
-
const
|
|
120
|
+
const filteredSearchText = searchText.trim().toLowerCase();
|
|
121
|
+
|
|
122
|
+
//#region Flaslist props
|
|
123
|
+
const data = React.useMemo(() => {
|
|
124
|
+
return (isOffStageGroup ? offStageData : dataWithHeader).filter((item) =>
|
|
125
|
+
'id' in item ? true : item.name.toLowerCase().includes(filteredSearchText)
|
|
126
|
+
);
|
|
127
|
+
}, [filteredSearchText, offStageData, dataWithHeader, isOffStageGroup]);
|
|
128
|
+
|
|
129
|
+
const _keyExtractor = React.useCallback(
|
|
130
|
+
(item: HMSPeer | { id: string; label: string }) =>
|
|
131
|
+
'id' in item ? item.id : item.peerID,
|
|
132
|
+
[]
|
|
133
|
+
);
|
|
32
134
|
|
|
33
135
|
const _renderItem = React.useCallback(
|
|
34
|
-
(data: { item:
|
|
35
|
-
if ('
|
|
136
|
+
(data: { item: HMSPeer | { id: string; label: string } }) => {
|
|
137
|
+
if ('id' in data.item) {
|
|
36
138
|
return (
|
|
37
|
-
<
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
139
|
+
<View style={hmsRoomStyles.stickyHeader}>
|
|
140
|
+
<View style={[styles.headerWrapper, hmsRoomStyles.stickyHeader]}>
|
|
141
|
+
<ParticipantsGroupHeader
|
|
142
|
+
id={data.item.id}
|
|
143
|
+
label={data.item.label}
|
|
144
|
+
expanded={true}
|
|
145
|
+
onBackPress={onBackPress}
|
|
146
|
+
/>
|
|
147
|
+
</View>
|
|
148
|
+
</View>
|
|
45
149
|
);
|
|
46
150
|
}
|
|
47
151
|
|
|
48
152
|
return (
|
|
49
|
-
<
|
|
50
|
-
data={data.item
|
|
51
|
-
|
|
153
|
+
<View style={[styles.itemWrapper, hmsRoomStyles.item]}>
|
|
154
|
+
<ParticipantsItem groupId={selectedGroupId} data={data.item} />
|
|
155
|
+
</View>
|
|
52
156
|
);
|
|
53
157
|
},
|
|
54
|
-
[
|
|
158
|
+
[selectedGroupId]
|
|
55
159
|
);
|
|
56
160
|
|
|
57
|
-
const _getItemType = React.useCallback(
|
|
161
|
+
const _getItemType = React.useCallback(
|
|
162
|
+
(item: HMSPeer | { id: string; label: string }) =>
|
|
163
|
+
'id' in item ? 'header' : 'item',
|
|
164
|
+
[]
|
|
165
|
+
);
|
|
166
|
+
|
|
167
|
+
const _onEndReached = React.useCallback(() => {
|
|
168
|
+
if (loading || !fetchedInitialDataRef.current || !mountedRef.current) {
|
|
169
|
+
return;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
if (peerListIterator) {
|
|
173
|
+
setLoading(true);
|
|
174
|
+
peerListIterator
|
|
175
|
+
.next()
|
|
176
|
+
.then((peers: HMSPeer[]) => {
|
|
177
|
+
if (mountedRef.current) {
|
|
178
|
+
setLoading(false);
|
|
179
|
+
setOffStageData((prev) => [...prev, ...peers]);
|
|
180
|
+
}
|
|
181
|
+
})
|
|
182
|
+
.catch(() => {
|
|
183
|
+
if (mountedRef.current) {
|
|
184
|
+
setLoading(false);
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
}, [loading, peerListIterator]);
|
|
189
|
+
//#endregion Flaslist props
|
|
190
|
+
|
|
191
|
+
const searchTextExists = searchText.length > 0;
|
|
58
192
|
|
|
59
|
-
|
|
193
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
194
|
+
emptyText: {
|
|
195
|
+
color: theme.palette.on_surface_medium,
|
|
196
|
+
fontFamily: `${typography.font_family}-SemiBold`,
|
|
197
|
+
},
|
|
198
|
+
stickyHeader: {
|
|
199
|
+
backgroundColor: theme.palette.surface_dim,
|
|
200
|
+
borderColor: theme.palette.border_bright,
|
|
201
|
+
},
|
|
202
|
+
item: {
|
|
203
|
+
borderColor: theme.palette.border_bright,
|
|
204
|
+
},
|
|
205
|
+
}));
|
|
206
|
+
|
|
207
|
+
if (!data || (searchTextExists && data.length <= 1)) {
|
|
60
208
|
return (
|
|
61
209
|
<View style={styles.emptyContainer}>
|
|
62
|
-
<Text style={[styles.emptyText,
|
|
210
|
+
<Text style={[styles.emptyText, hmsRoomStyles.emptyText]}>
|
|
63
211
|
No results found...
|
|
64
212
|
</Text>
|
|
65
213
|
</View>
|
|
@@ -72,9 +220,15 @@ export const ParticipantsList: React.FC<ParticipantsListProps> = ({
|
|
|
72
220
|
estimatedItemSize={56}
|
|
73
221
|
contentContainerStyle={styles.list}
|
|
74
222
|
keyboardShouldPersistTaps="always"
|
|
223
|
+
ListFooterComponent={<ParticipantsListFooter loading={loading} />}
|
|
224
|
+
stickyHeaderIndices={stickyIndices}
|
|
75
225
|
keyExtractor={_keyExtractor}
|
|
76
226
|
renderItem={_renderItem}
|
|
77
227
|
getItemType={_getItemType}
|
|
228
|
+
onEndReached={
|
|
229
|
+
searchTextExists || !peerListIterator ? null : _onEndReached
|
|
230
|
+
}
|
|
231
|
+
onEndReachedThreshold={0.8}
|
|
78
232
|
/>
|
|
79
233
|
);
|
|
80
234
|
};
|
|
@@ -93,4 +247,13 @@ const styles = StyleSheet.create({
|
|
|
93
247
|
lineHeight: 20,
|
|
94
248
|
letterSpacing: 0.25,
|
|
95
249
|
},
|
|
250
|
+
headerWrapper: {
|
|
251
|
+
borderWidth: 1,
|
|
252
|
+
borderTopLeftRadius: 8,
|
|
253
|
+
borderTopRightRadius: 8,
|
|
254
|
+
},
|
|
255
|
+
itemWrapper: {
|
|
256
|
+
borderRightWidth: 1,
|
|
257
|
+
borderLeftWidth: 1,
|
|
258
|
+
},
|
|
96
259
|
});
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ActivityIndicator, StyleSheet, View } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import {
|
|
5
|
+
useHMSRoomColorPalette,
|
|
6
|
+
useHMSRoomStyleSheet,
|
|
7
|
+
} from '../../hooks-util';
|
|
8
|
+
|
|
9
|
+
export type ParticipantsListFooterProps = {
|
|
10
|
+
loading: boolean;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const _ParticipantsListFooter: React.FC<ParticipantsListFooterProps> = ({
|
|
14
|
+
loading
|
|
15
|
+
}) => {
|
|
16
|
+
const { on_surface_high: onSurfaceHigh } = useHMSRoomColorPalette();
|
|
17
|
+
|
|
18
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme) => ({
|
|
19
|
+
footer: {
|
|
20
|
+
borderColor: theme.palette.border_bright,
|
|
21
|
+
},
|
|
22
|
+
}));
|
|
23
|
+
|
|
24
|
+
return (
|
|
25
|
+
<View style={[styles.footer, hmsRoomStyles.footer]}>
|
|
26
|
+
{loading ? (
|
|
27
|
+
<ActivityIndicator size={'small'} color={onSurfaceHigh} />
|
|
28
|
+
) : null}
|
|
29
|
+
</View>
|
|
30
|
+
);
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export const ParticipantsListFooter = React.memo(_ParticipantsListFooter);
|
|
34
|
+
|
|
35
|
+
const styles = StyleSheet.create({
|
|
36
|
+
footer: {
|
|
37
|
+
width: '100%',
|
|
38
|
+
paddingBottom: 16,
|
|
39
|
+
borderBottomWidth: 1,
|
|
40
|
+
borderRightWidth: 1,
|
|
41
|
+
borderLeftWidth: 1,
|
|
42
|
+
borderBottomRightRadius: 8,
|
|
43
|
+
borderBottomLeftRadius: 8,
|
|
44
|
+
},
|
|
45
|
+
});
|
|
@@ -13,7 +13,7 @@ type ParticipantsSearchInputProps = {
|
|
|
13
13
|
export const ParticipantsSearchInput: React.FC<
|
|
14
14
|
ParticipantsSearchInputProps
|
|
15
15
|
> = ({ searchText, setSearchText }) => {
|
|
16
|
-
const {
|
|
16
|
+
const { on_surface_medium: onSurfaceMediumColor } = useHMSRoomColorPalette();
|
|
17
17
|
|
|
18
18
|
const textInputStyle = useHMSRoomStyle((theme) => ({
|
|
19
19
|
backgroundColor: theme.palette.surface_default,
|
|
@@ -28,7 +28,7 @@ export const ParticipantsSearchInput: React.FC<
|
|
|
28
28
|
style={styles.input}
|
|
29
29
|
containerStyle={[styles.textInputContainer, textInputStyle]}
|
|
30
30
|
focusedContainerStyle={[styles.focusedTextInputContainer, textInputStyle]}
|
|
31
|
-
placeholderTextColor={
|
|
31
|
+
placeholderTextColor={onSurfaceMediumColor}
|
|
32
32
|
leftIcon={<SearchIcon style={styles.searchIcon} />}
|
|
33
33
|
/>
|
|
34
34
|
);
|
|
@@ -5,7 +5,7 @@ import { useSelector } from 'react-redux';
|
|
|
5
5
|
import LottieView from 'lottie-react-native';
|
|
6
6
|
|
|
7
7
|
import { MicIcon } from '../../Icons';
|
|
8
|
-
import {
|
|
8
|
+
import { useHMSRoomStyleSheet } from '../../hooks-util';
|
|
9
9
|
import type { RootState } from '../../redux';
|
|
10
10
|
|
|
11
11
|
export interface PeerAudioIndicatorProps {
|
|
@@ -24,21 +24,26 @@ export const PeerAudioIndicator: React.FC<PeerAudioIndicatorProps> = ({
|
|
|
24
24
|
) >= 0
|
|
25
25
|
);
|
|
26
26
|
|
|
27
|
-
const
|
|
28
|
-
|
|
27
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme) => ({
|
|
28
|
+
iconWrapper: {
|
|
29
|
+
backgroundColor: theme.palette.secondary_dim,
|
|
30
|
+
},
|
|
31
|
+
icon: {
|
|
32
|
+
tintColor: theme.palette.on_secondary_high,
|
|
33
|
+
},
|
|
29
34
|
}));
|
|
30
35
|
|
|
31
36
|
if (isMuted) {
|
|
32
37
|
return (
|
|
33
|
-
<View style={[styles.iconWrapper,
|
|
34
|
-
<MicIcon muted={true} style={styles.icon} />
|
|
38
|
+
<View style={[styles.iconWrapper, hmsRoomStyles.iconWrapper]}>
|
|
39
|
+
<MicIcon muted={true} style={[styles.icon, hmsRoomStyles.icon]} />
|
|
35
40
|
</View>
|
|
36
41
|
);
|
|
37
42
|
}
|
|
38
43
|
|
|
39
44
|
if (activeSpeaker) {
|
|
40
45
|
return (
|
|
41
|
-
<View style={[styles.speakerIconWrapper,
|
|
46
|
+
<View style={[styles.speakerIconWrapper, hmsRoomStyles.iconWrapper]}>
|
|
42
47
|
<LottieView
|
|
43
48
|
style={styles.speakerIcon}
|
|
44
49
|
source={require('../../assets/audio-level-white.json')}
|
|
@@ -3,31 +3,40 @@ import { StyleSheet, View } from 'react-native';
|
|
|
3
3
|
|
|
4
4
|
import { parseMetadata } from '../../utils/functions';
|
|
5
5
|
import { BRBIcon, HandIcon } from '../../Icons';
|
|
6
|
-
import {
|
|
6
|
+
import { useHMSRoomStyleSheet } from '../../hooks-util';
|
|
7
7
|
|
|
8
8
|
export interface PeerMetadataProps {
|
|
9
9
|
metadata: string | undefined;
|
|
10
|
+
isHandRaised: boolean;
|
|
10
11
|
}
|
|
11
12
|
|
|
12
|
-
export const PeerMetadata: React.FC<PeerMetadataProps> = ({
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
export const PeerMetadata: React.FC<PeerMetadataProps> = ({
|
|
14
|
+
metadata,
|
|
15
|
+
isHandRaised,
|
|
16
|
+
}) => {
|
|
17
|
+
const isBRBOn = !!parseMetadata(metadata).isBRBOn;
|
|
18
|
+
|
|
19
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme) => ({
|
|
20
|
+
iconWrapper: {
|
|
21
|
+
backgroundColor: theme.palette.secondary_dim,
|
|
22
|
+
},
|
|
23
|
+
icon: {
|
|
24
|
+
tintColor: theme.palette.on_secondary_high,
|
|
25
|
+
},
|
|
17
26
|
}));
|
|
18
27
|
|
|
19
|
-
if (
|
|
28
|
+
if (isBRBOn) {
|
|
20
29
|
return (
|
|
21
|
-
<View style={[styles.iconWrapper,
|
|
22
|
-
<BRBIcon />
|
|
30
|
+
<View style={[styles.iconWrapper, hmsRoomStyles.iconWrapper]}>
|
|
31
|
+
<BRBIcon style={hmsRoomStyles.icon} />
|
|
23
32
|
</View>
|
|
24
33
|
);
|
|
25
34
|
}
|
|
26
35
|
|
|
27
|
-
if (
|
|
36
|
+
if (isHandRaised) {
|
|
28
37
|
return (
|
|
29
|
-
<View style={[styles.iconWrapper,
|
|
30
|
-
<HandIcon />
|
|
38
|
+
<View style={[styles.iconWrapper, hmsRoomStyles.iconWrapper]}>
|
|
39
|
+
<HandIcon style={hmsRoomStyles.icon} />
|
|
31
40
|
</View>
|
|
32
41
|
);
|
|
33
42
|
}
|
|
@@ -18,6 +18,7 @@ import { ThreeDotsIcon } from '../../Icons';
|
|
|
18
18
|
import { hexToRgbA } from '../../utils/theme';
|
|
19
19
|
import { PeerNameAndNetwork } from './PeerNameAndNetwork';
|
|
20
20
|
import { UnmountAfterDelay } from '../UnmountAfterDelay';
|
|
21
|
+
import { PipModes } from '../../utils/types';
|
|
21
22
|
import type { PeerTrackNode } from '../../utils/types';
|
|
22
23
|
import { isTileOnSpotlight } from '../../utils/functions';
|
|
23
24
|
import {
|
|
@@ -47,6 +48,10 @@ export const _PeerVideoTileView = React.forwardRef<
|
|
|
47
48
|
> | null>(null);
|
|
48
49
|
const [mounted, setMounted] = React.useState(true);
|
|
49
50
|
|
|
51
|
+
const isPipModeActive = useSelector(
|
|
52
|
+
(state: RootState) => state.app.pipModeStatus === PipModes.ACTIVE
|
|
53
|
+
);
|
|
54
|
+
|
|
50
55
|
const onSpotlight = useSelector((state: RootState) => {
|
|
51
56
|
const { onSpotlight } = isTileOnSpotlight(state.user.spotlightTrackId, {
|
|
52
57
|
tileVideoTrack: peerTrackNode.track,
|
|
@@ -93,7 +98,11 @@ export const _PeerVideoTileView = React.forwardRef<
|
|
|
93
98
|
return (allowed && allowed.length > 0) ?? false;
|
|
94
99
|
});
|
|
95
100
|
|
|
96
|
-
const
|
|
101
|
+
const canTakeActionOnPeer = useSelector((state: RootState) => {
|
|
102
|
+
if (peer.isLocal) {
|
|
103
|
+
return true;
|
|
104
|
+
}
|
|
105
|
+
|
|
97
106
|
const permissions = state.hmsStates.localPeer?.role?.permissions;
|
|
98
107
|
return (
|
|
99
108
|
permissions &&
|
|
@@ -126,6 +135,13 @@ export const _PeerVideoTileView = React.forwardRef<
|
|
|
126
135
|
track.type === HMSTrackType.VIDEO &&
|
|
127
136
|
track.isMute() === false;
|
|
128
137
|
|
|
138
|
+
const hide3DotsButton =
|
|
139
|
+
!onMoreOptionsPress || // If button press handler is not available, Or
|
|
140
|
+
isPipModeActive || // If Pip Window is active, Or
|
|
141
|
+
(track && track?.source !== HMSTrackSource.REGULAR) || // If track is non-regular, like screen share, Or
|
|
142
|
+
!canTakeActionOnPeer || // If local peer can't take action on peer, Or
|
|
143
|
+
!allowedToPublish; // If local peer can't publish tracks
|
|
144
|
+
|
|
129
145
|
return (
|
|
130
146
|
<View style={styles.container}>
|
|
131
147
|
<AvatarView
|
|
@@ -133,7 +149,7 @@ export const _PeerVideoTileView = React.forwardRef<
|
|
|
133
149
|
avatarContainerStyles={
|
|
134
150
|
insetMode ? hmsRoomStyles.avatarContainer : null
|
|
135
151
|
}
|
|
136
|
-
isInset={insetMode}
|
|
152
|
+
isInset={insetMode || isPipModeActive}
|
|
137
153
|
videoView={
|
|
138
154
|
showingVideoTrack ? (
|
|
139
155
|
<VideoView
|
|
@@ -154,7 +170,10 @@ export const _PeerVideoTileView = React.forwardRef<
|
|
|
154
170
|
/>
|
|
155
171
|
|
|
156
172
|
{/* Handling Peer Metadata */}
|
|
157
|
-
<PeerMetadata
|
|
173
|
+
<PeerMetadata
|
|
174
|
+
metadata={peer.metadata}
|
|
175
|
+
isHandRaised={peer.isHandRaised}
|
|
176
|
+
/>
|
|
158
177
|
|
|
159
178
|
{/* Handling Peer Audio Mute indicator */}
|
|
160
179
|
{screenShareTile && showingVideoTrack ? (
|
|
@@ -164,7 +183,7 @@ export const _PeerVideoTileView = React.forwardRef<
|
|
|
164
183
|
) : null}
|
|
165
184
|
|
|
166
185
|
{/* Handling showing Peer name */}
|
|
167
|
-
{insetMode ? null : (
|
|
186
|
+
{(insetMode || isPipModeActive) ? null : (
|
|
168
187
|
<PeerNameAndNetwork
|
|
169
188
|
name={peer.name}
|
|
170
189
|
isLocal={peer.isLocal}
|
|
@@ -179,9 +198,7 @@ export const _PeerVideoTileView = React.forwardRef<
|
|
|
179
198
|
) : null}
|
|
180
199
|
|
|
181
200
|
{/* 3 dots option menu */}
|
|
182
|
-
{
|
|
183
|
-
(track &&
|
|
184
|
-
track?.source !== HMSTrackSource.REGULAR) ? null : insetMode ? (
|
|
201
|
+
{hide3DotsButton ? null : insetMode ? (
|
|
185
202
|
<UnmountAfterDelay
|
|
186
203
|
ref={unmountAfterDelayRef}
|
|
187
204
|
visible={mounted}
|
|
@@ -196,7 +213,7 @@ export const _PeerVideoTileView = React.forwardRef<
|
|
|
196
213
|
<ThreeDotsIcon stack="vertical" style={styles.icon} />
|
|
197
214
|
</PressableIcon>
|
|
198
215
|
</UnmountAfterDelay>
|
|
199
|
-
) :
|
|
216
|
+
) : (
|
|
200
217
|
<PressableIcon
|
|
201
218
|
activeOpacity={0.7}
|
|
202
219
|
style={[styles.iconWrapper, hmsRoomStyles.iconWrapperStyles]}
|
|
@@ -23,20 +23,17 @@ import { HMSPreviewNetworkQuality } from './HMSPreviewNetworkQuality';
|
|
|
23
23
|
import { useCanPublishVideo } from '../hooks-sdk';
|
|
24
24
|
import { HMSPreviewHLSLiveIndicator } from './HMSPreviewHLSLiveIndicator';
|
|
25
25
|
import { CompanyLogo } from './CompanyLogo';
|
|
26
|
-
import {
|
|
26
|
+
import {
|
|
27
|
+
useHMSRoomColorPalette,
|
|
28
|
+
useHMSRoomStyleSheet,
|
|
29
|
+
useIsHLSViewer,
|
|
30
|
+
} from '../hooks-util';
|
|
27
31
|
import { HMSKeyboardAvoidingView } from './HMSKeyboardAvoidingView';
|
|
32
|
+
import { hexToRgbA } from '../utils/theme';
|
|
28
33
|
|
|
29
34
|
const backButtonEdges = ['top'] as const;
|
|
30
35
|
const headerEdges = ['top', 'left', 'right'] as const;
|
|
31
36
|
|
|
32
|
-
const gradientColorShades = [
|
|
33
|
-
'#000000',
|
|
34
|
-
'rgba(0, 0, 0, 0.9)',
|
|
35
|
-
'rgba(0, 0, 0, 0.7)',
|
|
36
|
-
'rgba(0, 0, 0, 0.1)',
|
|
37
|
-
'rgba(0, 0, 0, 0.05)',
|
|
38
|
-
'rgba(0, 0, 0, 0)',
|
|
39
|
-
];
|
|
40
37
|
const gradientColorShadeLocations = [0.45, 0.55, 0.7, 0.9, 0.95, 1];
|
|
41
38
|
|
|
42
39
|
export const Preview = ({
|
|
@@ -49,6 +46,23 @@ export const Preview = ({
|
|
|
49
46
|
const canPublishVideo = useCanPublishVideo();
|
|
50
47
|
const isHLSViewer = useIsHLSViewer();
|
|
51
48
|
|
|
49
|
+
const { background_dim } = useHMSRoomColorPalette();
|
|
50
|
+
|
|
51
|
+
const gradientColorShades = React.useMemo(
|
|
52
|
+
() =>
|
|
53
|
+
background_dim
|
|
54
|
+
? [
|
|
55
|
+
hexToRgbA(background_dim, 1),
|
|
56
|
+
hexToRgbA(background_dim, 0.9),
|
|
57
|
+
hexToRgbA(background_dim, 0.7),
|
|
58
|
+
hexToRgbA(background_dim, 0.1),
|
|
59
|
+
hexToRgbA(background_dim, 0.05),
|
|
60
|
+
hexToRgbA(background_dim, 0),
|
|
61
|
+
]
|
|
62
|
+
: [],
|
|
63
|
+
[background_dim]
|
|
64
|
+
);
|
|
65
|
+
|
|
52
66
|
const hmsRoomStyles = useHMSRoomStyleSheet(
|
|
53
67
|
(theme) => ({
|
|
54
68
|
container: {
|
|
@@ -138,12 +138,7 @@ const _PreviewForRoleChangeModal = () => {
|
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
// lower hand
|
|
141
|
-
|
|
142
|
-
...localPeerMetadata,
|
|
143
|
-
isHandRaised: false,
|
|
144
|
-
isBRBOn: localPeerMetadata.isBRBOn,
|
|
145
|
-
};
|
|
146
|
-
await hmsActions.changeMetadata(newMetadata);
|
|
141
|
+
await hmsActions.lowerLocalPeerHand();
|
|
147
142
|
}
|
|
148
143
|
};
|
|
149
144
|
|