@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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.useShowLandscapeLayout = exports.useShowChatAndParticipants = exports.useShouldGoLive = exports.useSendMessage = exports.usePortraitChatViewVisible = exports.usePIPListener = exports.useModalType = exports.useLeaveMethods = exports.useLandscapeChatViewVisible = exports.useIsHLSViewer = exports.useHMSSessionStoreListeners = exports.useHMSSessionStore = exports.useHMSRoomTypography = exports.useHMSRoomTheme = exports.useHMSRoomStyleSheet = exports.useHMSRoomStyle = exports.useHMSRoomColorPalette = exports.useHMSRoleChangeRequest = exports.useHMSRemovedFromRoomUpdate = exports.useHMSReconnection = exports.useHMSPIPRoomLeave = exports.useHMSNetworkQualityUpdate = exports.useHMSMessages = exports.useHMSListeners = exports.useHMSLayoutConfig = exports.useHMSInstance = exports.useHMSConfig = exports.useHMSConferencingScreenConfig = exports.useHMSChatLayoutConfig = exports.useHMSChangeTrackStateRequest = exports.useHMSActiveSpeakerUpdates = exports.useFilteredParticipants = exports.useFetchHMSRoles = exports.isPublishingAllowed = exports.clearPendingModalTasks = exports.clearConfig = void 0;
|
|
6
|
+
exports.useShowLandscapeLayout = exports.useShowChatAndParticipants = exports.useShouldGoLive = exports.useSendMessage = exports.usePortraitChatViewVisible = exports.usePIPListener = exports.useOffStageParticipants = exports.useModalType = exports.useLeaveMethods = exports.useLandscapeChatViewVisible = exports.useIsHLSViewer = exports.useHMSSessionStoreListeners = exports.useHMSSessionStore = exports.useHMSRoomTypography = exports.useHMSRoomTheme = exports.useHMSRoomStyleSheet = exports.useHMSRoomStyle = exports.useHMSRoomColorPalette = exports.useHMSRoleChangeRequest = exports.useHMSRemovedFromRoomUpdate = exports.useHMSReconnection = exports.useHMSPIPRoomLeave = exports.useHMSNetworkQualityUpdate = exports.useHMSMessages = exports.useHMSListeners = exports.useHMSLayoutConfig = exports.useHMSInstance = exports.useHMSConfig = exports.useHMSConferencingScreenConfig = exports.useHMSChatLayoutConfig = exports.useHMSChangeTrackStateRequest = exports.useHMSActiveSpeakerUpdates = exports.useFilteredParticipants = exports.useFetchHMSRoles = exports.isPublishingAllowed = exports.clearPendingModalTasks = exports.clearConfig = void 0;
|
|
7
7
|
var _reactNativeHms = require("@100mslive/react-native-hms");
|
|
8
8
|
var _reactNativeSimpleToast = _interopRequireDefault(require("react-native-simple-toast"));
|
|
9
9
|
var _react = require("react");
|
|
@@ -26,6 +26,7 @@ const useHMSListeners = setPeerTrackNodes => {
|
|
|
26
26
|
const updateLocalPeer = useUpdateHMSLocalPeer(hmsInstance);
|
|
27
27
|
useHMSRoomUpdate(hmsInstance);
|
|
28
28
|
useHMSPeersUpdate(hmsInstance, updateLocalPeer, setPeerTrackNodes);
|
|
29
|
+
useHMSPeerListUpdated(hmsInstance);
|
|
29
30
|
useHMSTrackUpdate(hmsInstance, updateLocalPeer, setPeerTrackNodes);
|
|
30
31
|
};
|
|
31
32
|
exports.useHMSListeners = useHMSListeners;
|
|
@@ -222,11 +223,11 @@ const useHMSPeersUpdate = (hmsInstance, updateLocalPeer, setPeerTrackNodes) => {
|
|
|
222
223
|
}
|
|
223
224
|
return;
|
|
224
225
|
}
|
|
225
|
-
if (type === _reactNativeHms.HMSPeerUpdate.METADATA_CHANGED || type === _reactNativeHms.HMSPeerUpdate.NAME_CHANGED || type === _reactNativeHms.HMSPeerUpdate.NETWORK_QUALITY_UPDATED) {
|
|
226
|
+
if (type === _reactNativeHms.HMSPeerUpdate.METADATA_CHANGED || type === _reactNativeHms.HMSPeerUpdate.HAND_RAISED_CHANGED || type === _reactNativeHms.HMSPeerUpdate.NAME_CHANGED || type === _reactNativeHms.HMSPeerUpdate.NETWORK_QUALITY_UPDATED) {
|
|
226
227
|
dispatch((0, _actions.addUpdateParticipant)(peer));
|
|
227
228
|
const reduxState = store.getState();
|
|
228
|
-
if (type === _reactNativeHms.HMSPeerUpdate.
|
|
229
|
-
const handRaised =
|
|
229
|
+
if (type === _reactNativeHms.HMSPeerUpdate.HAND_RAISED_CHANGED) {
|
|
230
|
+
const handRaised = peer.isHandRaised;
|
|
230
231
|
if (handRaised) {
|
|
231
232
|
var _selectedLayoutConfig, _peer$role11, _reduxState$hmsStates;
|
|
232
233
|
const {
|
|
@@ -289,6 +290,25 @@ const useHMSPeersUpdate = (hmsInstance, updateLocalPeer, setPeerTrackNodes) => {
|
|
|
289
290
|
};
|
|
290
291
|
}, [hmsInstance]);
|
|
291
292
|
};
|
|
293
|
+
const useHMSPeerListUpdated = hmsInstance => {
|
|
294
|
+
const dispatch = (0, _reactRedux.useDispatch)();
|
|
295
|
+
(0, _react.useEffect)(() => {
|
|
296
|
+
const peerListUpdateHandler = _ref2 => {
|
|
297
|
+
let {
|
|
298
|
+
addedPeers,
|
|
299
|
+
removedPeers
|
|
300
|
+
} = _ref2;
|
|
301
|
+
(0, _reactRedux.batch)(() => {
|
|
302
|
+
dispatch((0, _actions.addParticipants)(addedPeers));
|
|
303
|
+
dispatch((0, _actions.removeParticipants)(removedPeers));
|
|
304
|
+
});
|
|
305
|
+
};
|
|
306
|
+
hmsInstance.addEventListener(_reactNativeHms.HMSUpdateListenerActions.ON_PEER_LIST_UPDATED, peerListUpdateHandler);
|
|
307
|
+
return () => {
|
|
308
|
+
hmsInstance.removeEventListener(_reactNativeHms.HMSUpdateListenerActions.ON_PEER_LIST_UPDATED);
|
|
309
|
+
};
|
|
310
|
+
}, [hmsInstance]);
|
|
311
|
+
};
|
|
292
312
|
const isPublishingAllowed = peer => {
|
|
293
313
|
var _peer$role12, _peer$role13;
|
|
294
314
|
return (((_peer$role12 = peer.role) === null || _peer$role12 === void 0 || (_peer$role12 = _peer$role12.publishSettings) === null || _peer$role12 === void 0 ? void 0 : _peer$role12.allowed) && ((_peer$role13 = peer.role) === null || _peer$role13 === void 0 || (_peer$role13 = _peer$role13.publishSettings) === null || _peer$role13 === void 0 || (_peer$role13 = _peer$role13.allowed) === null || _peer$role13 === void 0 ? void 0 : _peer$role13.length) > 0) ?? false;
|
|
@@ -298,13 +318,13 @@ const useHMSTrackUpdate = (hmsInstance, updateLocalPeer, setPeerTrackNodes) => {
|
|
|
298
318
|
const dispatch = (0, _reactRedux.useDispatch)();
|
|
299
319
|
const store = (0, _reactRedux.useStore)();
|
|
300
320
|
(0, _react.useEffect)(() => {
|
|
301
|
-
const trackUpdateHandler =
|
|
321
|
+
const trackUpdateHandler = _ref3 => {
|
|
302
322
|
var _reduxState$hmsStates2, _selectVideoTileLayou2;
|
|
303
323
|
let {
|
|
304
324
|
peer,
|
|
305
325
|
track,
|
|
306
326
|
type
|
|
307
|
-
} =
|
|
327
|
+
} = _ref3;
|
|
308
328
|
const reduxState = store.getState();
|
|
309
329
|
const fullScreenPeerTrackNode = reduxState.app.fullScreenPeerTrackNode;
|
|
310
330
|
const miniviewPeerTrackNode = reduxState.app.miniviewPeerTrackNode;
|
|
@@ -759,10 +779,10 @@ const useHMSSessionStore = () => {
|
|
|
759
779
|
const hmsInstance = useHMSInstance();
|
|
760
780
|
const dispatch = (0, _reactRedux.useDispatch)();
|
|
761
781
|
(0, _react.useEffect)(() => {
|
|
762
|
-
const onSessionStoreAvailableListener =
|
|
782
|
+
const onSessionStoreAvailableListener = _ref4 => {
|
|
763
783
|
let {
|
|
764
784
|
sessionStore
|
|
765
|
-
} =
|
|
785
|
+
} = _ref4;
|
|
766
786
|
// Saving `sessionStore` reference in `redux`
|
|
767
787
|
dispatch((0, _actions.saveUserData)({
|
|
768
788
|
hmsSessionStore: sessionStore
|
|
@@ -871,18 +891,14 @@ const usePIPListener = () => {
|
|
|
871
891
|
const dispatch = (0, _reactRedux.useDispatch)();
|
|
872
892
|
const isPipModeActive = (0, _reactRedux.useSelector)(state => state.app.pipModeStatus === _types.PipModes.ACTIVE);
|
|
873
893
|
(0, _react.useEffect)(() => {
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
dispatch((0, _actions.changePipModeStatus)(_types.PipModes.INACTIVE));
|
|
883
|
-
};
|
|
884
|
-
}
|
|
885
|
-
}, [isPipModeActive]);
|
|
894
|
+
const pipModeChangedHandler = data => {
|
|
895
|
+
dispatch((0, _actions.changePipModeStatus)(data.isInPictureInPictureMode ? _types.PipModes.ACTIVE : _types.PipModes.INACTIVE));
|
|
896
|
+
};
|
|
897
|
+
hmsInstance.addEventListener(_reactNativeHms.HMSPIPListenerActions.ON_PIP_MODE_CHANGED, pipModeChangedHandler);
|
|
898
|
+
return () => {
|
|
899
|
+
hmsInstance.removeEventListener(_reactNativeHms.HMSPIPListenerActions.ON_PIP_MODE_CHANGED);
|
|
900
|
+
};
|
|
901
|
+
}, []);
|
|
886
902
|
|
|
887
903
|
// Check if PIP is supported or not
|
|
888
904
|
(0, _react.useEffect)(() => {
|
|
@@ -1064,17 +1080,15 @@ const useHMSConfig = () => {
|
|
|
1064
1080
|
username: storeState.user.userName,
|
|
1065
1081
|
captureNetworkQualityInPreview: true,
|
|
1066
1082
|
endpoint: (_storeState$user$endP3 = storeState.user.endPoints) === null || _storeState$user$endP3 === void 0 ? void 0 : _storeState$user$endP3.init
|
|
1067
|
-
// metadata: JSON.stringify({isHandRaised: true}), // To join with hand raised
|
|
1068
1083
|
});
|
|
1069
|
-
|
|
1070
1084
|
return hmsConfig;
|
|
1071
1085
|
}, [hmsInstance]);
|
|
1072
1086
|
const updateConfig = (0, _react.useCallback)(data => {
|
|
1073
1087
|
if (!hmsConfig) {
|
|
1074
1088
|
throw new Error('No HMSConfig is available to update!');
|
|
1075
1089
|
}
|
|
1076
|
-
Object.entries(data).forEach(
|
|
1077
|
-
let [key, value] =
|
|
1090
|
+
Object.entries(data).forEach(_ref5 => {
|
|
1091
|
+
let [key, value] = _ref5;
|
|
1078
1092
|
// @ts-ignore
|
|
1079
1093
|
hmsConfig[key] = value;
|
|
1080
1094
|
});
|
|
@@ -1170,21 +1184,70 @@ const useLandscapeChatViewVisible = () => {
|
|
|
1170
1184
|
return pipModeNotActive && isLandscapeOrientation && overlayChatVisible;
|
|
1171
1185
|
};
|
|
1172
1186
|
exports.useLandscapeChatViewVisible = useLandscapeChatViewVisible;
|
|
1173
|
-
const
|
|
1174
|
-
|
|
1187
|
+
const useOffStageParticipants = () => {
|
|
1188
|
+
const dispatch = (0, _reactRedux.useDispatch)();
|
|
1189
|
+
const hmsInstance = useHMSInstance();
|
|
1190
|
+
const offStageRoles = useHMSLayoutConfig(layoutConfig => {
|
|
1191
|
+
var _layoutConfig$screens;
|
|
1192
|
+
return (layoutConfig === null || layoutConfig === void 0 || (_layoutConfig$screens = layoutConfig.screens) === null || _layoutConfig$screens === void 0 || (_layoutConfig$screens = _layoutConfig$screens.conferencing) === null || _layoutConfig$screens === void 0 || (_layoutConfig$screens = _layoutConfig$screens.default) === null || _layoutConfig$screens === void 0 || (_layoutConfig$screens = _layoutConfig$screens.elements) === null || _layoutConfig$screens === void 0 || (_layoutConfig$screens = _layoutConfig$screens.on_stage_exp) === null || _layoutConfig$screens === void 0 ? void 0 : _layoutConfig$screens.off_stage_roles) || null;
|
|
1193
|
+
});
|
|
1194
|
+
const [participantsTotalCounts, setParticipantsTotalCounts] = (0, _react.useState)({});
|
|
1195
|
+
(0, _react.useEffect)(() => {
|
|
1196
|
+
if (offStageRoles) {
|
|
1197
|
+
let mounted = true;
|
|
1198
|
+
const createIterator = async forRole => {
|
|
1199
|
+
const iterator = hmsInstance.getPeerListIterator({
|
|
1200
|
+
byRoleName: forRole,
|
|
1201
|
+
limit: 10
|
|
1202
|
+
});
|
|
1203
|
+
const participants = await iterator.next();
|
|
1204
|
+
if (mounted) {
|
|
1205
|
+
dispatch((0, _actions.replaceParticipantsList)(participants, forRole));
|
|
1206
|
+
setParticipantsTotalCounts(prev => ({
|
|
1207
|
+
...prev,
|
|
1208
|
+
[forRole]: iterator.totalCount
|
|
1209
|
+
}));
|
|
1210
|
+
}
|
|
1211
|
+
};
|
|
1212
|
+
const createIteratorForRoles = () => {
|
|
1213
|
+
offStageRoles.forEach(role => {
|
|
1214
|
+
createIterator(role);
|
|
1215
|
+
});
|
|
1216
|
+
};
|
|
1217
|
+
createIteratorForRoles();
|
|
1218
|
+
const intervalId = setInterval(() => {
|
|
1219
|
+
createIteratorForRoles();
|
|
1220
|
+
}, _types.PeerListRefreshInterval);
|
|
1221
|
+
return () => {
|
|
1222
|
+
mounted = false;
|
|
1223
|
+
clearInterval(intervalId);
|
|
1224
|
+
};
|
|
1225
|
+
}
|
|
1226
|
+
}, [offStageRoles]);
|
|
1227
|
+
return participantsTotalCounts;
|
|
1228
|
+
};
|
|
1229
|
+
exports.useOffStageParticipants = useOffStageParticipants;
|
|
1230
|
+
const useFilteredParticipants = filterText => {
|
|
1231
|
+
var _participantsAccordia;
|
|
1175
1232
|
const roles = (0, _reactRedux.useSelector)(state => state.hmsStates.roles);
|
|
1176
1233
|
const onStageRole = useHMSLayoutConfig(layoutConfig => {
|
|
1177
|
-
var _layoutConfig$
|
|
1178
|
-
return (layoutConfig === null || layoutConfig === void 0 || (_layoutConfig$
|
|
1234
|
+
var _layoutConfig$screens2;
|
|
1235
|
+
return (layoutConfig === null || layoutConfig === void 0 || (_layoutConfig$screens2 = layoutConfig.screens) === null || _layoutConfig$screens2 === void 0 || (_layoutConfig$screens2 = _layoutConfig$screens2.conferencing) === null || _layoutConfig$screens2 === void 0 || (_layoutConfig$screens2 = _layoutConfig$screens2.default) === null || _layoutConfig$screens2 === void 0 || (_layoutConfig$screens2 = _layoutConfig$screens2.elements) === null || _layoutConfig$screens2 === void 0 || (_layoutConfig$screens2 = _layoutConfig$screens2.on_stage_exp) === null || _layoutConfig$screens2 === void 0 ? void 0 : _layoutConfig$screens2.on_stage_role) || null;
|
|
1179
1236
|
});
|
|
1180
|
-
const
|
|
1181
|
-
const formattedSearchText =
|
|
1182
|
-
const
|
|
1183
|
-
const peerGroups = (0, _react.useMemo)(() => {
|
|
1184
|
-
return groupParticipantsAsPerRole(participants, formattedSearchText);
|
|
1185
|
-
}, [formattedSearchText, participants]);
|
|
1237
|
+
const offStageParticipantsTotalCounts = useOffStageParticipants();
|
|
1238
|
+
const formattedSearchText = filterText.trim().toLowerCase();
|
|
1239
|
+
const groupedParticipants = (0, _reactRedux.useSelector)(state => state.hmsStates.groupedParticipants);
|
|
1186
1240
|
const sortedRoles = (0, _react.useMemo)(() => {
|
|
1187
|
-
return roles.filter(role =>
|
|
1241
|
+
return roles.filter(role => {
|
|
1242
|
+
if (!role.name || role.name.startsWith('_')) {
|
|
1243
|
+
return false;
|
|
1244
|
+
}
|
|
1245
|
+
return true;
|
|
1246
|
+
|
|
1247
|
+
// const list = groupedParticipants[role.name!];
|
|
1248
|
+
|
|
1249
|
+
// return list && list.length > 0;
|
|
1250
|
+
}).sort((a, b) => {
|
|
1188
1251
|
var _a$publishSettings, _b$publishSettings;
|
|
1189
1252
|
if (onStageRole) {
|
|
1190
1253
|
if (a.name === onStageRole && b.name === onStageRole) {
|
|
@@ -1207,97 +1270,48 @@ const useFilteredParticipants = () => {
|
|
|
1207
1270
|
}
|
|
1208
1271
|
return 1;
|
|
1209
1272
|
});
|
|
1210
|
-
},
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
const
|
|
1214
|
-
|
|
1215
|
-
const
|
|
1216
|
-
if (handRaisedPeers) {
|
|
1217
|
-
const expanded = expandedGroups.includes('hand-raised');
|
|
1218
|
-
list.push({
|
|
1219
|
-
type: expanded ? 'EXPANDED_HEADER' : 'COLLAPSED_HEADER',
|
|
1220
|
-
key: 'hand-raised',
|
|
1221
|
-
data: {
|
|
1222
|
-
label: `Hand Raised (${handRaisedPeers.length})`,
|
|
1223
|
-
itemsLength: handRaisedPeers.length
|
|
1224
|
-
}
|
|
1225
|
-
});
|
|
1226
|
-
if (expanded) {
|
|
1227
|
-
list = list.concat(handRaisedPeers.map((peer, idx, arr) => {
|
|
1228
|
-
const isLast = arr.length - 1 === idx;
|
|
1229
|
-
return {
|
|
1230
|
-
data: peer,
|
|
1231
|
-
key: `${peer.peerID}--${'hand-raised'}`,
|
|
1232
|
-
type: isLast ? 'LAST_ITEM' : 'REGULAR_ITEM'
|
|
1233
|
-
};
|
|
1234
|
-
}));
|
|
1235
|
-
}
|
|
1236
|
-
}
|
|
1273
|
+
},
|
|
1274
|
+
// [groupedParticipants, onStageRole, roles]
|
|
1275
|
+
[onStageRole, roles]);
|
|
1276
|
+
const participantsAccordianData = (0, _react.useMemo)(() => {
|
|
1277
|
+
const t = [];
|
|
1278
|
+
const filteredHandRaisedPeers = [];
|
|
1237
1279
|
sortedRoles.forEach(role => {
|
|
1238
|
-
const
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1280
|
+
const list = groupedParticipants[role.name];
|
|
1281
|
+
const filteredList = Array.isArray(list) && formattedSearchText.length > 0 ? list.filter(peer => peer.name.toLowerCase().includes(formattedSearchText)) : list;
|
|
1282
|
+
if (Array.isArray(filteredList) && filteredList.length > 0) {
|
|
1283
|
+
filteredHandRaisedPeers.push(filteredList);
|
|
1284
|
+
const offStageRoleTotalCount = offStageParticipantsTotalCounts[role.name];
|
|
1285
|
+
const firstTen = filteredList.slice(0, 10);
|
|
1286
|
+
t.push({
|
|
1287
|
+
id: role.name,
|
|
1288
|
+
label: `${role.name} (${typeof offStageRoleTotalCount === 'number' ? offStageRoleTotalCount : filteredList.length})`,
|
|
1289
|
+
showViewAll: typeof offStageRoleTotalCount === 'number' && formattedSearchText.length <= 0 ? offStageRoleTotalCount > 10 : filteredList.length > 10,
|
|
1290
|
+
data: firstTen
|
|
1249
1291
|
});
|
|
1250
|
-
if (expanded) {
|
|
1251
|
-
list = list.concat(peers.map((peer, idx, arr) => {
|
|
1252
|
-
const isLast = arr.length - 1 === idx;
|
|
1253
|
-
return {
|
|
1254
|
-
data: peer,
|
|
1255
|
-
key: `${peer.peerID}--${role.name}`,
|
|
1256
|
-
type: isLast ? 'LAST_ITEM' : 'REGULAR_ITEM'
|
|
1257
|
-
};
|
|
1258
|
-
}));
|
|
1259
|
-
}
|
|
1260
1292
|
}
|
|
1261
1293
|
});
|
|
1262
|
-
|
|
1263
|
-
|
|
1294
|
+
const handRaisedParticipants = filteredHandRaisedPeers.flat().filter(participant => participant.isHandRaised);
|
|
1295
|
+
const firstTenHandRaisedParticipants = handRaisedParticipants.slice(0, 10);
|
|
1296
|
+
if (handRaisedParticipants.length > 0) {
|
|
1297
|
+
t.unshift({
|
|
1298
|
+
id: 'hand-raised',
|
|
1299
|
+
label: `Hand Raised (${handRaisedParticipants.length})`,
|
|
1300
|
+
showViewAll: handRaisedParticipants.length > 10,
|
|
1301
|
+
data: firstTenHandRaisedParticipants
|
|
1302
|
+
});
|
|
1303
|
+
}
|
|
1304
|
+
return t;
|
|
1305
|
+
}, [formattedSearchText, groupedParticipants, offStageParticipantsTotalCounts, sortedRoles]);
|
|
1306
|
+
const [expandedGroup, setExpandedGroup] = (0, _react.useState)(((_participantsAccordia = participantsAccordianData[0]) === null || _participantsAccordia === void 0 ? void 0 : _participantsAccordia.id) ?? null);
|
|
1264
1307
|
return {
|
|
1265
|
-
data:
|
|
1266
|
-
searchText,
|
|
1308
|
+
data: participantsAccordianData,
|
|
1267
1309
|
formattedSearchText,
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
setExpandedGroups
|
|
1310
|
+
expandedGroup,
|
|
1311
|
+
setExpandedGroup
|
|
1271
1312
|
};
|
|
1272
1313
|
};
|
|
1273
1314
|
exports.useFilteredParticipants = useFilteredParticipants;
|
|
1274
|
-
const groupParticipantsAsPerRole = (participants, searchText) => {
|
|
1275
|
-
const groups = new Map();
|
|
1276
|
-
for (const participant of participants) {
|
|
1277
|
-
const participantRole = participant.role;
|
|
1278
|
-
if (!participantRole) {
|
|
1279
|
-
continue;
|
|
1280
|
-
}
|
|
1281
|
-
if (searchText.length <= 0 || participant.name.toLowerCase().includes(searchText)) {
|
|
1282
|
-
if (!groups.has(participantRole.name)) {
|
|
1283
|
-
groups.set(participantRole.name, []);
|
|
1284
|
-
}
|
|
1285
|
-
const group = groups.get(participantRole.name);
|
|
1286
|
-
if (!group) {
|
|
1287
|
-
continue;
|
|
1288
|
-
}
|
|
1289
|
-
group.push(participant);
|
|
1290
|
-
if ((0, _functions.parseMetadata)(participant.metadata).isHandRaised) {
|
|
1291
|
-
if (!groups.has('hand-raised')) {
|
|
1292
|
-
groups.set('hand-raised', []);
|
|
1293
|
-
}
|
|
1294
|
-
const group = groups.get('hand-raised');
|
|
1295
|
-
if (group) group.push(participant);
|
|
1296
|
-
}
|
|
1297
|
-
}
|
|
1298
|
-
}
|
|
1299
|
-
return groups;
|
|
1300
|
-
};
|
|
1301
1315
|
const useShouldGoLive = () => {
|
|
1302
1316
|
const shouldGoLive = (0, _reactRedux.useSelector)(_hooksUtilSelectors.selectShouldGoLive);
|
|
1303
1317
|
return shouldGoLive;
|
|
@@ -1482,10 +1496,10 @@ const useSendMessage = () => {
|
|
|
1482
1496
|
type: 'SET_TYPED_MESSAGE',
|
|
1483
1497
|
typedMessage: ''
|
|
1484
1498
|
});
|
|
1485
|
-
const handleMessageID =
|
|
1499
|
+
const handleMessageID = _ref6 => {
|
|
1486
1500
|
let {
|
|
1487
1501
|
messageId
|
|
1488
|
-
} =
|
|
1502
|
+
} = _ref6;
|
|
1489
1503
|
const localPeer = reduxStore.getState().hmsStates.localPeer;
|
|
1490
1504
|
if (messageId) {
|
|
1491
1505
|
_reactNative.Keyboard.dismiss();
|