@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
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { StyleSheet, View } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { ParticipantsGroupHeader } from './ParticipantsGroupHeader';
|
|
5
|
+
import { useHMSRoomStyleSheet } from '../../hooks-util';
|
|
6
|
+
import type { ParticipantAccordianData } from '../../hooks-util';
|
|
7
|
+
import { ParticipantsGroupFooter } from './ParticipantsGroupFooter';
|
|
8
|
+
import { ParticipantsAccordianExpanded } from './ParticipantsAccordianExpanded';
|
|
9
|
+
|
|
10
|
+
export interface ParticipantsAccordianProps {
|
|
11
|
+
open: boolean;
|
|
12
|
+
// role: HMSRole;
|
|
13
|
+
showViewAll?: boolean;
|
|
14
|
+
data: ParticipantAccordianData;
|
|
15
|
+
toggle(uid: string | null): void;
|
|
16
|
+
onViewAllPress(groupId: string): void;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const ParticipantsAccordian: React.FC<ParticipantsAccordianProps> = ({
|
|
20
|
+
open,
|
|
21
|
+
data,
|
|
22
|
+
showViewAll = false,
|
|
23
|
+
toggle,
|
|
24
|
+
onViewAllPress,
|
|
25
|
+
}) => {
|
|
26
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
27
|
+
container: {
|
|
28
|
+
borderColor: theme.palette.border_bright,
|
|
29
|
+
},
|
|
30
|
+
label: {
|
|
31
|
+
color: theme.palette.on_surface_medium,
|
|
32
|
+
fontFamily: `${typography.font_family}-SemiBold`,
|
|
33
|
+
},
|
|
34
|
+
menu: {
|
|
35
|
+
backgroundColor: theme.palette.surface_default,
|
|
36
|
+
borderColor: theme.palette.border_bright,
|
|
37
|
+
},
|
|
38
|
+
}));
|
|
39
|
+
|
|
40
|
+
return (
|
|
41
|
+
<View style={[styles.container, hmsRoomStyles.container]}>
|
|
42
|
+
<ParticipantsGroupHeader
|
|
43
|
+
id={data.id}
|
|
44
|
+
label={data.label}
|
|
45
|
+
expanded={open}
|
|
46
|
+
toggleExpanded={toggle}
|
|
47
|
+
/>
|
|
48
|
+
|
|
49
|
+
{open ? (
|
|
50
|
+
<ParticipantsAccordianExpanded id={data.id} data={data.data} />
|
|
51
|
+
) : null}
|
|
52
|
+
|
|
53
|
+
{open && showViewAll ? (
|
|
54
|
+
<ParticipantsGroupFooter
|
|
55
|
+
groupId={data.id}
|
|
56
|
+
onViewAllPress={onViewAllPress}
|
|
57
|
+
/>
|
|
58
|
+
) : null}
|
|
59
|
+
</View>
|
|
60
|
+
);
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
const styles = StyleSheet.create({
|
|
64
|
+
container: {
|
|
65
|
+
marginTop: 16,
|
|
66
|
+
borderWidth: 1,
|
|
67
|
+
borderRadius: 8,
|
|
68
|
+
overflow: 'hidden',
|
|
69
|
+
},
|
|
70
|
+
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
import type { ParticipantAccordianData } from '../../hooks-util';
|
|
4
|
+
import { ParticipantsItem } from './ParticipantsItem';
|
|
5
|
+
|
|
6
|
+
interface ParticipantsAccordianExpandedProps {
|
|
7
|
+
id: ParticipantAccordianData['id'];
|
|
8
|
+
data: ParticipantAccordianData['data'];
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const ParticipantsAccordianExpanded: React.FC<
|
|
12
|
+
ParticipantsAccordianExpandedProps
|
|
13
|
+
> = ({ id, data }) => {
|
|
14
|
+
return (
|
|
15
|
+
<>
|
|
16
|
+
{data.map((participant) => {
|
|
17
|
+
return (
|
|
18
|
+
<ParticipantsItem
|
|
19
|
+
key={participant.peerID}
|
|
20
|
+
groupId={id}
|
|
21
|
+
data={participant}
|
|
22
|
+
/>
|
|
23
|
+
);
|
|
24
|
+
})}
|
|
25
|
+
</>
|
|
26
|
+
);
|
|
27
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { View, Text, StyleSheet, TouchableOpacity } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { useHMSRoomStyleSheet } from '../../hooks-util';
|
|
5
|
+
import type { ParticipantAccordianData } from '../../hooks-util';
|
|
6
|
+
import { ChevronIcon } from '../../Icons';
|
|
7
|
+
|
|
8
|
+
interface ParticipantsGroupHeaderProps {
|
|
9
|
+
groupId: ParticipantAccordianData['id'];
|
|
10
|
+
onViewAllPress(groupId: string): void;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const _ParticipantsGroupFooter: React.FC<ParticipantsGroupHeaderProps> = ({
|
|
14
|
+
groupId,
|
|
15
|
+
onViewAllPress,
|
|
16
|
+
}) => {
|
|
17
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
18
|
+
container: {
|
|
19
|
+
borderTopColor: theme.palette.border_bright,
|
|
20
|
+
},
|
|
21
|
+
label: {
|
|
22
|
+
color: theme.palette.on_surface_high,
|
|
23
|
+
fontFamily: `${typography.font_family}-Regular`,
|
|
24
|
+
},
|
|
25
|
+
}));
|
|
26
|
+
|
|
27
|
+
const handleViewAllPress = () => {
|
|
28
|
+
onViewAllPress(groupId);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
return (
|
|
32
|
+
<View style={[styles.container, hmsRoomStyles.container]}>
|
|
33
|
+
<TouchableOpacity
|
|
34
|
+
style={[styles.viewAllAction]}
|
|
35
|
+
onPress={handleViewAllPress}
|
|
36
|
+
>
|
|
37
|
+
<Text style={[styles.label, hmsRoomStyles.label]}>View All</Text>
|
|
38
|
+
|
|
39
|
+
<ChevronIcon direction="right" />
|
|
40
|
+
</TouchableOpacity>
|
|
41
|
+
</View>
|
|
42
|
+
);
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
const styles = StyleSheet.create({
|
|
46
|
+
container: {
|
|
47
|
+
flexDirection: 'row',
|
|
48
|
+
justifyContent: 'flex-end',
|
|
49
|
+
paddingVertical: 12,
|
|
50
|
+
paddingHorizontal: 16,
|
|
51
|
+
borderTopWidth: 1,
|
|
52
|
+
},
|
|
53
|
+
label: {
|
|
54
|
+
fontSize: 14,
|
|
55
|
+
lineHeight: 20,
|
|
56
|
+
letterSpacing: 0.25,
|
|
57
|
+
marginRight: 4,
|
|
58
|
+
},
|
|
59
|
+
viewAllAction: {
|
|
60
|
+
flexDirection: 'row',
|
|
61
|
+
alignItems: 'center',
|
|
62
|
+
},
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
export const ParticipantsGroupFooter = React.memo(_ParticipantsGroupFooter);
|
|
@@ -4,11 +4,7 @@ import { View, Text, StyleSheet, TouchableOpacity } from 'react-native';
|
|
|
4
4
|
// import type { HMSRole } from '@100mslive/react-native-hms';
|
|
5
5
|
|
|
6
6
|
import { useHMSRoomStyleSheet } from '../../hooks-util';
|
|
7
|
-
import type {
|
|
8
|
-
ListItemUI,
|
|
9
|
-
ParticipantHandRaisedHeaderData,
|
|
10
|
-
ParticipantHeaderData,
|
|
11
|
-
} from '../../hooks-util';
|
|
7
|
+
import type { ParticipantAccordianData } from '../../hooks-util';
|
|
12
8
|
import { ChevronIcon, ThreeDotsIcon } from '../../Icons';
|
|
13
9
|
import { Menu } from '../MenuModal';
|
|
14
10
|
import { ParticipantsGroupOptions } from './ParticipantsGroupOptions';
|
|
@@ -16,13 +12,19 @@ import { ParticipantsGroupOptions } from './ParticipantsGroupOptions';
|
|
|
16
12
|
// import { isParticipantHostOrBroadcaster } from '../../utils/functions';
|
|
17
13
|
|
|
18
14
|
interface ParticipantsGroupHeaderProps {
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
id: ParticipantAccordianData['id'];
|
|
16
|
+
label: ParticipantAccordianData['label'];
|
|
17
|
+
expanded: boolean;
|
|
18
|
+
onBackPress?: () => void;
|
|
19
|
+
toggleExpanded?: (groupName: string | null) => void;
|
|
21
20
|
}
|
|
22
21
|
|
|
23
22
|
const _ParticipantsGroupHeader: React.FC<ParticipantsGroupHeaderProps> = ({
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
id,
|
|
24
|
+
label,
|
|
25
|
+
expanded,
|
|
26
|
+
onBackPress,
|
|
27
|
+
toggleExpanded,
|
|
26
28
|
}) => {
|
|
27
29
|
// const selfHostOrBroadcaster = useSelector((state: RootState) => {
|
|
28
30
|
// const selfRole = state.hmsStates.localPeer?.role;
|
|
@@ -48,26 +50,19 @@ const _ParticipantsGroupHeader: React.FC<ParticipantsGroupHeaderProps> = ({
|
|
|
48
50
|
const show3Dots = false;
|
|
49
51
|
// const show3Dots =
|
|
50
52
|
// selfHostOrBroadcaster &&
|
|
51
|
-
// ('role' in data
|
|
52
|
-
// ? !isParticipantHostOrBroadcaster(data.
|
|
53
|
-
// : data.
|
|
53
|
+
// ('role' in data
|
|
54
|
+
// ? !isParticipantHostOrBroadcaster(data.role)
|
|
55
|
+
// : data.id === 'hand-raised');
|
|
54
56
|
|
|
55
57
|
const showOptions = () => setOptionsVisible(true);
|
|
56
58
|
|
|
57
59
|
const hideOptions = () => setOptionsVisible(false);
|
|
58
60
|
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
const groupName = data.key;
|
|
63
|
-
|
|
64
|
-
setExpandedGroups((expandedGroups) => {
|
|
65
|
-
if (expandedGroups.includes(groupName)) {
|
|
66
|
-
return expandedGroups.filter((group) => group !== groupName);
|
|
61
|
+
const toggleGroupExpand = toggleExpanded
|
|
62
|
+
? () => {
|
|
63
|
+
toggleExpanded(expanded ? null : id);
|
|
67
64
|
}
|
|
68
|
-
|
|
69
|
-
});
|
|
70
|
-
};
|
|
65
|
+
: null;
|
|
71
66
|
|
|
72
67
|
return (
|
|
73
68
|
<View
|
|
@@ -77,7 +72,15 @@ const _ParticipantsGroupHeader: React.FC<ParticipantsGroupHeaderProps> = ({
|
|
|
77
72
|
hmsRoomStyles.container,
|
|
78
73
|
]}
|
|
79
74
|
>
|
|
80
|
-
<
|
|
75
|
+
<View style={{ flexDirection: 'row', alignItems: 'center' }}>
|
|
76
|
+
{onBackPress ? (
|
|
77
|
+
<TouchableOpacity style={{ marginRight: 8 }} onPress={onBackPress}>
|
|
78
|
+
<ChevronIcon direction="left" />
|
|
79
|
+
</TouchableOpacity>
|
|
80
|
+
) : null}
|
|
81
|
+
|
|
82
|
+
<Text style={[styles.label, hmsRoomStyles.label]}>{label}</Text>
|
|
83
|
+
</View>
|
|
81
84
|
|
|
82
85
|
<View style={styles.controls}>
|
|
83
86
|
{show3Dots ? (
|
|
@@ -91,16 +94,18 @@ const _ParticipantsGroupHeader: React.FC<ParticipantsGroupHeaderProps> = ({
|
|
|
91
94
|
}
|
|
92
95
|
style={{ ...styles.menu, ...hmsRoomStyles.menu }}
|
|
93
96
|
>
|
|
94
|
-
<ParticipantsGroupOptions
|
|
97
|
+
<ParticipantsGroupOptions />
|
|
95
98
|
</Menu>
|
|
96
99
|
) : null}
|
|
97
100
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
{toggleGroupExpand ? (
|
|
102
|
+
<TouchableOpacity
|
|
103
|
+
style={[styles.control, expanded ? styles.expandedArrowIcon : null]}
|
|
104
|
+
onPress={toggleGroupExpand}
|
|
105
|
+
>
|
|
106
|
+
<ChevronIcon direction="down" />
|
|
107
|
+
</TouchableOpacity>
|
|
108
|
+
) : null}
|
|
104
109
|
</View>
|
|
105
110
|
</View>
|
|
106
111
|
);
|
|
@@ -109,9 +114,6 @@ const _ParticipantsGroupHeader: React.FC<ParticipantsGroupHeaderProps> = ({
|
|
|
109
114
|
const styles = StyleSheet.create({
|
|
110
115
|
container: {
|
|
111
116
|
flexDirection: 'row',
|
|
112
|
-
marginTop: 16,
|
|
113
|
-
borderWidth: 1,
|
|
114
|
-
borderRadius: 8,
|
|
115
117
|
paddingVertical: 12,
|
|
116
118
|
paddingHorizontal: 16,
|
|
117
119
|
justifyContent: 'space-between',
|
|
@@ -122,9 +124,7 @@ const styles = StyleSheet.create({
|
|
|
122
124
|
letterSpacing: 0.1,
|
|
123
125
|
},
|
|
124
126
|
expandedContainer: {
|
|
125
|
-
|
|
126
|
-
borderTopRightRadius: 8,
|
|
127
|
-
borderRadius: 0,
|
|
127
|
+
borderBottomWidth: 1,
|
|
128
128
|
},
|
|
129
129
|
controls: {
|
|
130
130
|
flexDirection: 'row',
|
|
@@ -2,16 +2,11 @@ import * as React from 'react';
|
|
|
2
2
|
import { StyleSheet, View } from 'react-native';
|
|
3
3
|
|
|
4
4
|
import { useHMSRoomStyleSheet } from '../../hooks-util';
|
|
5
|
-
import type {
|
|
6
|
-
ListItemUI,
|
|
7
|
-
ParticipantHeaderData,
|
|
8
|
-
ParticipantHandRaisedHeaderData,
|
|
9
|
-
} from '../../hooks-util';
|
|
10
5
|
import { HandIcon } from '../../Icons';
|
|
11
6
|
import { ParticipantsItemOption } from './ParticipantsItemOption';
|
|
12
7
|
|
|
13
8
|
interface ParticipantsGroupOptionsProps {
|
|
14
|
-
data:
|
|
9
|
+
// data: any;
|
|
15
10
|
}
|
|
16
11
|
|
|
17
12
|
const _ParticipantsGroupOptions: React.FC<
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useSelector } from 'react-redux';
|
|
3
3
|
import { View, Text, StyleSheet, TouchableOpacity } from 'react-native';
|
|
4
|
-
import type { HMSLocalPeer,
|
|
4
|
+
import type { HMSLocalPeer, HMSPeer } from '@100mslive/react-native-hms';
|
|
5
5
|
|
|
6
|
-
import {
|
|
7
|
-
isParticipantHostOrBroadcaster,
|
|
8
|
-
parseMetadata,
|
|
9
|
-
} from '../../utils/functions';
|
|
6
|
+
import { isParticipantHostOrBroadcaster } from '../../utils/functions';
|
|
10
7
|
import { useHMSRoomStyleSheet } from '../../hooks-util';
|
|
11
|
-
import type { ListItemUI } from '../../hooks-util';
|
|
12
8
|
import { HandIcon, NetworkQualityIcon, ThreeDotsIcon } from '../../Icons';
|
|
13
9
|
import { Menu } from '../MenuModal';
|
|
14
10
|
import { ParticipantsItemOptions } from './ParticipantsItemOptions';
|
|
15
11
|
import type { RootState } from '../../redux';
|
|
16
12
|
|
|
17
13
|
interface ParticipantsItemProps {
|
|
18
|
-
|
|
14
|
+
groupId: string;
|
|
15
|
+
data: HMSPeer | HMSLocalPeer;
|
|
19
16
|
}
|
|
20
17
|
|
|
21
|
-
const _ParticipantsItem: React.FC<ParticipantsItemProps> = ({
|
|
18
|
+
const _ParticipantsItem: React.FC<ParticipantsItemProps> = ({
|
|
19
|
+
data: peer,
|
|
20
|
+
groupId,
|
|
21
|
+
}) => {
|
|
22
22
|
const selfHostOrBroadcaster = useSelector((state: RootState) => {
|
|
23
23
|
const selfRole = state.hmsStates.localPeer?.role;
|
|
24
24
|
return selfRole && isParticipantHostOrBroadcaster(selfRole);
|
|
@@ -43,33 +43,21 @@ const _ParticipantsItem: React.FC<ParticipantsItemProps> = ({ data }) => {
|
|
|
43
43
|
},
|
|
44
44
|
}));
|
|
45
45
|
|
|
46
|
-
const show3Dots = selfHostOrBroadcaster && !
|
|
46
|
+
const show3Dots = selfHostOrBroadcaster && !peer.isLocal;
|
|
47
47
|
|
|
48
48
|
const showOptions = () => setOptionsVisible(true);
|
|
49
49
|
|
|
50
50
|
const hideOptions = () => setOptionsVisible(false);
|
|
51
51
|
|
|
52
|
-
const isLast = data.type === 'LAST_ITEM';
|
|
53
|
-
|
|
54
|
-
const peer = data.data;
|
|
55
|
-
const isHandRaised = parseMetadata(peer.metadata).isHandRaised;
|
|
56
|
-
|
|
57
|
-
const [_peerID, peerGroupName] = data.key.split('--');
|
|
58
52
|
return (
|
|
59
|
-
<View
|
|
60
|
-
style={[
|
|
61
|
-
styles.container,
|
|
62
|
-
isLast ? styles.lastItemContainer : null,
|
|
63
|
-
hmsRoomStyles.container,
|
|
64
|
-
]}
|
|
65
|
-
>
|
|
53
|
+
<View style={styles.container}>
|
|
66
54
|
<Text style={[styles.label, hmsRoomStyles.label]}>
|
|
67
|
-
{
|
|
68
|
-
{
|
|
55
|
+
{peer.name}
|
|
56
|
+
{peer.isLocal ? ' (You)' : null}
|
|
69
57
|
</Text>
|
|
70
58
|
|
|
71
59
|
<View style={styles.controls}>
|
|
72
|
-
{isHandRaised ? (
|
|
60
|
+
{peer.isHandRaised ? (
|
|
73
61
|
<View
|
|
74
62
|
style={[
|
|
75
63
|
styles.control,
|
|
@@ -112,7 +100,7 @@ const _ParticipantsItem: React.FC<ParticipantsItemProps> = ({ data }) => {
|
|
|
112
100
|
<ParticipantsItemOptions
|
|
113
101
|
peer={peer}
|
|
114
102
|
onItemPress={hideOptions}
|
|
115
|
-
insideHandRaiseGroup={
|
|
103
|
+
insideHandRaiseGroup={groupId === 'hand-raised'}
|
|
116
104
|
/>
|
|
117
105
|
</Menu>
|
|
118
106
|
) : null}
|
|
@@ -124,8 +112,8 @@ const _ParticipantsItem: React.FC<ParticipantsItemProps> = ({ data }) => {
|
|
|
124
112
|
const styles = StyleSheet.create({
|
|
125
113
|
container: {
|
|
126
114
|
flexDirection: 'row',
|
|
127
|
-
borderLeftWidth: 1,
|
|
128
|
-
borderRightWidth: 1,
|
|
115
|
+
// borderLeftWidth: 1,
|
|
116
|
+
// borderRightWidth: 1,
|
|
129
117
|
padding: 16,
|
|
130
118
|
justifyContent: 'space-between',
|
|
131
119
|
},
|
|
@@ -134,11 +122,6 @@ const styles = StyleSheet.create({
|
|
|
134
122
|
lineHeight: 20,
|
|
135
123
|
letterSpacing: 0.1,
|
|
136
124
|
},
|
|
137
|
-
lastItemContainer: {
|
|
138
|
-
borderBottomWidth: 1,
|
|
139
|
-
borderBottomLeftRadius: 8,
|
|
140
|
-
borderBottomRightRadius: 8,
|
|
141
|
-
},
|
|
142
125
|
controls: {
|
|
143
126
|
flexDirection: 'row',
|
|
144
127
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { StyleSheet, View } from 'react-native';
|
|
3
3
|
import { useSelector } from 'react-redux';
|
|
4
|
-
import type { HMSLocalPeer,
|
|
4
|
+
import type { HMSLocalPeer, HMSPeer } from '@100mslive/react-native-hms';
|
|
5
5
|
|
|
6
6
|
import {
|
|
7
7
|
useHMSInstance,
|
|
@@ -16,7 +16,7 @@ import { parseMetadata } from '../../utils/functions';
|
|
|
16
16
|
|
|
17
17
|
interface ParticipantsItemOptionsProps {
|
|
18
18
|
insideHandRaiseGroup: boolean;
|
|
19
|
-
peer: HMSLocalPeer |
|
|
19
|
+
peer: HMSLocalPeer | HMSPeer;
|
|
20
20
|
onItemPress(): void;
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -160,7 +160,7 @@ const _ParticipantsItemOptions: React.FC<ParticipantsItemOptionsProps> = ({
|
|
|
160
160
|
insideHandRaiseGroup &&
|
|
161
161
|
offStageRoles &&
|
|
162
162
|
offStageRoles.includes(peer.role?.name || '') &&
|
|
163
|
-
|
|
163
|
+
peer.isHandRaised;
|
|
164
164
|
|
|
165
165
|
return (
|
|
166
166
|
<>
|