@100mslive/react-native-room-kit 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/commonjs/HMSInstanceSetup.js +2 -2
- package/lib/commonjs/HMSInstanceSetup.js.map +1 -1
- package/lib/commonjs/HMSPrebuilt.js +5 -7
- package/lib/commonjs/HMSPrebuilt.js.map +1 -1
- package/lib/commonjs/HMSRoomSetup.js +3 -3
- package/lib/commonjs/HMSRoomSetup.js.map +1 -1
- package/lib/commonjs/Icons/Chevron/index.js +5 -1
- package/lib/commonjs/Icons/Chevron/index.js.map +1 -1
- package/lib/commonjs/Icons/Leave/index.js +5 -1
- package/lib/commonjs/Icons/Leave/index.js.map +1 -1
- package/lib/commonjs/Icons/WelcomeHand/assets/welcome-hand.png +0 -0
- package/lib/commonjs/Icons/WelcomeHand/assets/welcome-hand@2x.png +0 -0
- package/lib/commonjs/Icons/WelcomeHand/assets/welcome-hand@3x.png +0 -0
- package/lib/commonjs/Icons/WelcomeHand/index.js +30 -0
- package/lib/commonjs/Icons/WelcomeHand/index.js.map +1 -0
- package/lib/commonjs/Icons/index.js +11 -0
- package/lib/commonjs/Icons/index.js.map +1 -1
- package/lib/commonjs/components/AnimatedFooter.js +2 -2
- package/lib/commonjs/components/AnimatedFooter.js.map +1 -1
- package/lib/commonjs/components/AnimatedHLSFooter.js +2 -2
- package/lib/commonjs/components/AnimatedHLSFooter.js.map +1 -1
- package/lib/commonjs/components/AnimatedHeader.js +2 -2
- package/lib/commonjs/components/AnimatedHeader.js.map +1 -1
- package/lib/commonjs/components/AvatarView.js +2 -2
- package/lib/commonjs/components/AvatarView.js.map +1 -1
- package/lib/commonjs/components/BackButton.js +2 -2
- package/lib/commonjs/components/BackButton.js.map +1 -1
- package/lib/commonjs/components/BottomSheet.js +2 -2
- package/lib/commonjs/components/BottomSheet.js.map +1 -1
- package/lib/commonjs/components/ChangeNameModalContent.js +25 -6
- package/lib/commonjs/components/ChangeNameModalContent.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatBanner.js +2 -2
- package/lib/commonjs/components/Chat/ChatBanner.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js +3 -4
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js +3 -4
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterItem.js +3 -4
- package/lib/commonjs/components/Chat/ChatFilterItem.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterView.js +3 -4
- package/lib/commonjs/components/Chat/ChatFilterView.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatList.js +3 -4
- package/lib/commonjs/components/Chat/ChatList.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatMessage.js +3 -4
- package/lib/commonjs/components/Chat/ChatMessage.js.map +1 -1
- package/lib/commonjs/components/Chat/PinnedMessage.js +2 -2
- package/lib/commonjs/components/Chat/PinnedMessage.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js +2 -2
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsHeader.js +7 -7
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsHeader.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js +3 -4
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatView.js +3 -4
- package/lib/commonjs/components/ChatAndParticipants/ChatView.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ParticipantsView.js +15 -14
- package/lib/commonjs/components/ChatAndParticipants/ParticipantsView.js.map +1 -1
- package/lib/commonjs/components/DisplayView.js +2 -2
- package/lib/commonjs/components/DisplayView.js.map +1 -1
- package/lib/commonjs/components/EndRoomModalContent.js +2 -2
- package/lib/commonjs/components/EndRoomModalContent.js.map +1 -1
- package/lib/commonjs/components/Footer.js +4 -5
- package/lib/commonjs/components/Footer.js.map +1 -1
- package/lib/commonjs/components/FullScreenVideoView.js +2 -2
- package/lib/commonjs/components/FullScreenVideoView.js.map +1 -1
- package/lib/commonjs/components/GridView.js +3 -4
- package/lib/commonjs/components/GridView.js.map +1 -1
- package/lib/commonjs/components/HLSFooter.js +2 -2
- package/lib/commonjs/components/HLSFooter.js.map +1 -1
- package/lib/commonjs/components/HLSView.js +2 -2
- package/lib/commonjs/components/HLSView.js.map +1 -1
- package/lib/commonjs/components/HMSBaseButton.js +2 -2
- package/lib/commonjs/components/HMSBaseButton.js.map +1 -1
- package/lib/commonjs/components/HMSChat.js +2 -2
- package/lib/commonjs/components/HMSChat.js.map +1 -1
- package/lib/commonjs/components/HMSDangerButton.js +4 -3
- package/lib/commonjs/components/HMSDangerButton.js.map +1 -1
- package/lib/commonjs/components/HMSHLSMessage.js +3 -4
- package/lib/commonjs/components/HMSHLSMessage.js.map +1 -1
- package/lib/commonjs/components/HMSHLSMessageList.js +2 -2
- package/lib/commonjs/components/HMSHLSMessageList.js.map +1 -1
- package/lib/commonjs/components/HMSHLSNotStarted.js +2 -2
- package/lib/commonjs/components/HMSHLSNotStarted.js.map +1 -1
- package/lib/commonjs/components/HMSHLSStreamLoading.js +6 -4
- package/lib/commonjs/components/HMSHLSStreamLoading.js.map +1 -1
- package/lib/commonjs/components/HMSHandRaiseNotification.js +2 -2
- package/lib/commonjs/components/HMSHandRaiseNotification.js.map +1 -1
- package/lib/commonjs/components/HMSKeyboardAvoidingView.js +4 -5
- package/lib/commonjs/components/HMSKeyboardAvoidingView.js.map +1 -1
- package/lib/commonjs/components/HMSLiveIndicator.js +5 -6
- package/lib/commonjs/components/HMSLiveIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSLocalScreenshareNotification.js +2 -2
- package/lib/commonjs/components/HMSLocalScreenshareNotification.js.map +1 -1
- package/lib/commonjs/components/HMSLocalVideoView.js +2 -2
- package/lib/commonjs/components/HMSLocalVideoView.js.map +1 -1
- package/lib/commonjs/components/HMSManageAudioOutput.js +2 -2
- package/lib/commonjs/components/HMSManageAudioOutput.js.map +1 -1
- package/lib/commonjs/components/HMSManageCameraRotation.js +2 -2
- package/lib/commonjs/components/HMSManageCameraRotation.js.map +1 -1
- package/lib/commonjs/components/HMSManageLeave.js +4 -3
- package/lib/commonjs/components/HMSManageLeave.js.map +1 -1
- package/lib/commonjs/components/HMSManageLocalAudio.js +2 -2
- package/lib/commonjs/components/HMSManageLocalAudio.js.map +1 -1
- package/lib/commonjs/components/HMSManageLocalVideo.js +2 -2
- package/lib/commonjs/components/HMSManageLocalVideo.js.map +1 -1
- package/lib/commonjs/components/HMSManageRaiseHand.js +23 -11
- package/lib/commonjs/components/HMSManageRaiseHand.js.map +1 -1
- package/lib/commonjs/components/HMSMeetingEnded.js +2 -2
- package/lib/commonjs/components/HMSMeetingEnded.js.map +1 -1
- package/lib/commonjs/components/HMSNotification.js +2 -2
- package/lib/commonjs/components/HMSNotification.js.map +1 -1
- package/lib/commonjs/components/HMSNotifications.js +2 -2
- package/lib/commonjs/components/HMSNotifications.js.map +1 -1
- package/lib/commonjs/components/HMSOverlayChatView.js +2 -2
- package/lib/commonjs/components/HMSOverlayChatView.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewEditName.js +2 -2
- package/lib/commonjs/components/HMSPreviewEditName.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js +5 -4
- package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewJoinButton.js +10 -5
- package/lib/commonjs/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewNetworkQuality.js +2 -2
- package/lib/commonjs/components/HMSPreviewNetworkQuality.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewPeersList.js +2 -2
- package/lib/commonjs/components/HMSPreviewPeersList.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewSubtitle.js +2 -2
- package/lib/commonjs/components/HMSPreviewSubtitle.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewTile.js +3 -3
- package/lib/commonjs/components/HMSPreviewTile.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewTitle.js +2 -2
- package/lib/commonjs/components/HMSPreviewTitle.js.map +1 -1
- package/lib/commonjs/components/HMSPrimaryButton.js +2 -2
- package/lib/commonjs/components/HMSPrimaryButton.js.map +1 -1
- package/lib/commonjs/components/HMSRecordingIndicator.js +6 -3
- package/lib/commonjs/components/HMSRecordingIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSRoleChangeDeclinedNotification.js +2 -2
- package/lib/commonjs/components/HMSRoleChangeDeclinedNotification.js.map +1 -1
- package/lib/commonjs/components/HMSRoomOptions.js +2 -2
- package/lib/commonjs/components/HMSRoomOptions.js.map +1 -1
- package/lib/commonjs/components/HMSSendMessageInput.js +2 -2
- package/lib/commonjs/components/HMSSendMessageInput.js.map +1 -1
- package/lib/commonjs/components/HMSTextInput.js +5 -5
- package/lib/commonjs/components/HMSTextInput.js.map +1 -1
- package/lib/commonjs/components/HMSVideoView.js +2 -2
- package/lib/commonjs/components/HMSVideoView.js.map +1 -1
- package/lib/commonjs/components/Header.js +4 -6
- package/lib/commonjs/components/Header.js.map +1 -1
- package/lib/commonjs/components/LocalPeerRegularVideoView.js +2 -2
- package/lib/commonjs/components/LocalPeerRegularVideoView.js.map +1 -1
- package/lib/commonjs/components/LocalPeerScreenshareView.js +2 -2
- package/lib/commonjs/components/LocalPeerScreenshareView.js.map +1 -1
- package/lib/commonjs/components/Meeting.js +2 -2
- package/lib/commonjs/components/Meeting.js.map +1 -1
- package/lib/commonjs/components/MeetingScreenContent.js +2 -2
- package/lib/commonjs/components/MeetingScreenContent.js.map +1 -1
- package/lib/commonjs/components/MiniView.js +2 -2
- package/lib/commonjs/components/MiniView.js.map +1 -1
- package/lib/commonjs/components/Modals.js +2 -2
- package/lib/commonjs/components/Modals.js.map +1 -1
- package/lib/commonjs/components/OverlayContainer.js +2 -2
- package/lib/commonjs/components/OverlayContainer.js.map +1 -1
- package/lib/commonjs/components/OverlayedViews.js +3 -4
- package/lib/commonjs/components/OverlayedViews.js.map +1 -1
- package/lib/commonjs/components/PIPView.js +24 -18
- package/lib/commonjs/components/PIPView.js.map +1 -1
- package/lib/commonjs/components/PaginationDots.js +3 -4
- package/lib/commonjs/components/PaginationDots.js.map +1 -1
- package/lib/commonjs/components/Participants/MultiRoleParticipantsList.js +65 -0
- package/lib/commonjs/components/Participants/MultiRoleParticipantsList.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsAccordian.js +60 -0
- package/lib/commonjs/components/Participants/ParticipantsAccordian.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsAccordianExpanded.js +25 -0
- package/lib/commonjs/components/Participants/ParticipantsAccordianExpanded.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsGroupFooter.js +61 -0
- package/lib/commonjs/components/Participants/ParticipantsGroupFooter.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js +31 -31
- package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsGroupOptions.js +3 -4
- package/lib/commonjs/components/Participants/ParticipantsGroupOptions.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsItem.js +12 -21
- package/lib/commonjs/components/Participants/ParticipantsItem.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsItemOption.js +3 -4
- package/lib/commonjs/components/Participants/ParticipantsItemOption.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsItemOptions.js +4 -5
- package/lib/commonjs/components/Participants/ParticipantsItemOptions.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsList.js +157 -22
- package/lib/commonjs/components/Participants/ParticipantsList.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsListFooter.js +43 -0
- package/lib/commonjs/components/Participants/ParticipantsListFooter.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsSeachInput.js +4 -4
- package/lib/commonjs/components/Participants/ParticipantsSeachInput.js.map +1 -1
- package/lib/commonjs/components/Participants/index.js +11 -0
- package/lib/commonjs/components/Participants/index.js.map +1 -1
- package/lib/commonjs/components/ParticipantsCount.js +3 -4
- package/lib/commonjs/components/ParticipantsCount.js.map +1 -1
- package/lib/commonjs/components/PeerDisplayView.js +1 -2
- package/lib/commonjs/components/PeerDisplayView.js.map +1 -1
- package/lib/commonjs/components/PeerMinimizedView.js +3 -4
- package/lib/commonjs/components/PeerMinimizedView.js.map +1 -1
- package/lib/commonjs/components/PeerRTCStatsContainer.js +3 -4
- package/lib/commonjs/components/PeerRTCStatsContainer.js.map +1 -1
- package/lib/commonjs/components/PeerRTCStatsView.js +1 -2
- package/lib/commonjs/components/PeerRTCStatsView.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/AvatarView.js +4 -5
- package/lib/commonjs/components/PeerVideoTile/AvatarView.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/HMSFullScreenButton.js +2 -2
- package/lib/commonjs/components/PeerVideoTile/HMSFullScreenButton.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/HMSPinchGesture.js +2 -2
- package/lib/commonjs/components/PeerVideoTile/HMSPinchGesture.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerAudioIndicator.js +12 -7
- package/lib/commonjs/components/PeerVideoTile/PeerAudioIndicator.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js +22 -12
- package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js +2 -2
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js +26 -12
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/VideoView.js +3 -4
- package/lib/commonjs/components/PeerVideoTile/VideoView.js.map +1 -1
- package/lib/commonjs/components/PressableIcon.js +2 -2
- package/lib/commonjs/components/PressableIcon.js.map +1 -1
- package/lib/commonjs/components/Preview.js +5 -1
- package/lib/commonjs/components/Preview.js.map +1 -1
- package/lib/commonjs/components/PreviewForRoleChangeModal.js +4 -10
- package/lib/commonjs/components/PreviewForRoleChangeModal.js.map +1 -1
- package/lib/commonjs/components/ReconnectionView.js +3 -4
- package/lib/commonjs/components/ReconnectionView.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalContent.js +49 -13
- package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js +1 -1
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js.map +1 -1
- package/lib/commonjs/components/StatusBar.js +2 -2
- package/lib/commonjs/components/StatusBar.js.map +1 -1
- package/lib/commonjs/components/StopRecordingModalContent.js +2 -2
- package/lib/commonjs/components/StopRecordingModalContent.js.map +1 -1
- package/lib/commonjs/components/StreamingQualityModalContent.js +2 -2
- package/lib/commonjs/components/StreamingQualityModalContent.js.map +1 -1
- package/lib/commonjs/components/Tile.js +1 -2
- package/lib/commonjs/components/Tile.js.map +1 -1
- package/lib/commonjs/components/TilesContainer.js +1 -2
- package/lib/commonjs/components/TilesContainer.js.map +1 -1
- package/lib/commonjs/components/UnmountAfterDelay.js +3 -4
- package/lib/commonjs/components/UnmountAfterDelay.js.map +1 -1
- package/lib/commonjs/components/WebrtcView.js +5 -5
- package/lib/commonjs/components/WebrtcView.js.map +1 -1
- package/lib/commonjs/components/WelcomeInMeeting.js +30 -9
- package/lib/commonjs/components/WelcomeInMeeting.js.map +1 -1
- package/lib/commonjs/components/styles.js +1 -2
- package/lib/commonjs/components/styles.js.map +1 -1
- package/lib/commonjs/hooks-sdk.js +46 -1
- package/lib/commonjs/hooks-sdk.js.map +1 -1
- package/lib/commonjs/hooks-util.js +133 -119
- package/lib/commonjs/hooks-util.js.map +1 -1
- package/lib/commonjs/redux/actionTypes.js +6 -5
- package/lib/commonjs/redux/actionTypes.js.map +1 -1
- package/lib/commonjs/redux/actions/index.js +20 -4
- package/lib/commonjs/redux/actions/index.js.map +1 -1
- package/lib/commonjs/redux/index.js +1 -2
- package/lib/commonjs/redux/index.js.map +1 -1
- package/lib/commonjs/redux/reducers/appState.js +3 -4
- package/lib/commonjs/redux/reducers/appState.js.map +1 -1
- package/lib/commonjs/redux/reducers/chatWindow.js +1 -2
- package/lib/commonjs/redux/reducers/chatWindow.js.map +1 -1
- package/lib/commonjs/redux/reducers/hmsStates.js +192 -22
- package/lib/commonjs/redux/reducers/hmsStates.js.map +1 -1
- package/lib/commonjs/redux/reducers/index.js +1 -2
- package/lib/commonjs/redux/reducers/index.js.map +1 -1
- package/lib/commonjs/redux/reducers/message.js +3 -4
- package/lib/commonjs/redux/reducers/message.js.map +1 -1
- package/lib/commonjs/redux/reducers/userState.js +3 -4
- package/lib/commonjs/redux/reducers/userState.js.map +1 -1
- package/lib/commonjs/types.js +1 -2
- package/lib/commonjs/types.js.map +1 -1
- package/lib/commonjs/utils/dimension.js +2 -4
- package/lib/commonjs/utils/dimension.js.map +1 -1
- package/lib/commonjs/utils/functions.js.map +1 -1
- package/lib/commonjs/utils/theme.js +5 -10
- package/lib/commonjs/utils/theme.js.map +1 -1
- package/lib/commonjs/utils/types.js +13 -23
- package/lib/commonjs/utils/types.js.map +1 -1
- package/lib/commonjs/utils.js +1 -2
- package/lib/commonjs/utils.js.map +1 -1
- package/lib/module/HMSPrebuilt.js +2 -3
- package/lib/module/HMSPrebuilt.js.map +1 -1
- package/lib/module/HMSRoomSetup.js +1 -1
- package/lib/module/HMSRoomSetup.js.map +1 -1
- package/lib/module/Icons/Chevron/index.js +5 -1
- package/lib/module/Icons/Chevron/index.js.map +1 -1
- package/lib/module/Icons/Leave/index.js +5 -1
- package/lib/module/Icons/Leave/index.js.map +1 -1
- package/lib/module/Icons/WelcomeHand/assets/welcome-hand.png +0 -0
- package/lib/module/Icons/WelcomeHand/assets/welcome-hand@2x.png +0 -0
- package/lib/module/Icons/WelcomeHand/assets/welcome-hand@3x.png +0 -0
- package/lib/module/Icons/WelcomeHand/index.js +22 -0
- package/lib/module/Icons/WelcomeHand/index.js.map +1 -0
- package/lib/module/Icons/index.js +1 -0
- package/lib/module/Icons/index.js.map +1 -1
- package/lib/module/components/ChangeNameModalContent.js +25 -6
- package/lib/module/components/ChangeNameModalContent.js.map +1 -1
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsHeader.js +4 -3
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsHeader.js.map +1 -1
- package/lib/module/components/ChatAndParticipants/ParticipantsView.js +13 -12
- package/lib/module/components/ChatAndParticipants/ParticipantsView.js.map +1 -1
- package/lib/module/components/Footer.js +1 -1
- package/lib/module/components/Footer.js.map +1 -1
- package/lib/module/components/HMSDangerButton.js +2 -1
- package/lib/module/components/HMSDangerButton.js.map +1 -1
- package/lib/module/components/HMSHLSStreamLoading.js +5 -3
- package/lib/module/components/HMSHLSStreamLoading.js.map +1 -1
- package/lib/module/components/HMSKeyboardAvoidingView.js +3 -4
- package/lib/module/components/HMSKeyboardAvoidingView.js.map +1 -1
- package/lib/module/components/HMSLiveIndicator.js +3 -3
- package/lib/module/components/HMSLiveIndicator.js.map +1 -1
- package/lib/module/components/HMSManageLeave.js +2 -1
- package/lib/module/components/HMSManageLeave.js.map +1 -1
- package/lib/module/components/HMSManageRaiseHand.js +22 -10
- package/lib/module/components/HMSManageRaiseHand.js.map +1 -1
- package/lib/module/components/HMSPreviewHLSLiveIndicator.js +3 -2
- package/lib/module/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
- package/lib/module/components/HMSPreviewJoinButton.js +9 -4
- package/lib/module/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/module/components/HMSPreviewTile.js +1 -1
- package/lib/module/components/HMSPreviewTile.js.map +1 -1
- package/lib/module/components/HMSRecordingIndicator.js +4 -1
- package/lib/module/components/HMSRecordingIndicator.js.map +1 -1
- package/lib/module/components/HMSTextInput.js +3 -3
- package/lib/module/components/HMSTextInput.js.map +1 -1
- package/lib/module/components/PIPView.js +21 -13
- package/lib/module/components/PIPView.js.map +1 -1
- package/lib/module/components/Participants/MultiRoleParticipantsList.js +56 -0
- package/lib/module/components/Participants/MultiRoleParticipantsList.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsAccordian.js +51 -0
- package/lib/module/components/Participants/ParticipantsAccordian.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsAccordianExpanded.js +16 -0
- package/lib/module/components/Participants/ParticipantsAccordianExpanded.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsGroupFooter.js +53 -0
- package/lib/module/components/Participants/ParticipantsGroupFooter.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsGroupHeader.js +28 -27
- package/lib/module/components/Participants/ParticipantsGroupHeader.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsGroupOptions.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsItem.js +10 -18
- package/lib/module/components/Participants/ParticipantsItem.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsItemOptions.js +1 -1
- package/lib/module/components/Participants/ParticipantsItemOptions.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsList.js +156 -21
- package/lib/module/components/Participants/ParticipantsList.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsListFooter.js +35 -0
- package/lib/module/components/Participants/ParticipantsListFooter.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsSeachInput.js +2 -2
- package/lib/module/components/Participants/ParticipantsSeachInput.js.map +1 -1
- package/lib/module/components/Participants/index.js +1 -0
- package/lib/module/components/Participants/index.js.map +1 -1
- package/lib/module/components/PeerVideoTile/AvatarView.js +1 -1
- package/lib/module/components/PeerVideoTile/AvatarView.js.map +1 -1
- package/lib/module/components/PeerVideoTile/PeerAudioIndicator.js +11 -6
- package/lib/module/components/PeerVideoTile/PeerAudioIndicator.js.map +1 -1
- package/lib/module/components/PeerVideoTile/PeerMetadata.js +21 -11
- package/lib/module/components/PeerVideoTile/PeerMetadata.js.map +1 -1
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js +22 -6
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
- package/lib/module/components/Preview.js +6 -2
- package/lib/module/components/Preview.js.map +1 -1
- package/lib/module/components/PreviewForRoleChangeModal.js +1 -6
- package/lib/module/components/PreviewForRoleChangeModal.js.map +1 -1
- package/lib/module/components/RoomSettingsModalContent.js +49 -13
- package/lib/module/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/module/components/RoomSettingsModalDebugModeContent.js +1 -1
- package/lib/module/components/RoomSettingsModalDebugModeContent.js.map +1 -1
- package/lib/module/components/WebrtcView.js +2 -1
- package/lib/module/components/WebrtcView.js.map +1 -1
- package/lib/module/components/WelcomeInMeeting.js +29 -8
- package/lib/module/components/WelcomeInMeeting.js.map +1 -1
- package/lib/module/hooks-sdk.js +46 -1
- package/lib/module/hooks-sdk.js.map +1 -1
- package/lib/module/hooks-util.js +135 -122
- package/lib/module/hooks-util.js.map +1 -1
- package/lib/module/redux/actionTypes.js +4 -1
- package/lib/module/redux/actionTypes.js.map +1 -1
- package/lib/module/redux/actions/index.js +14 -1
- package/lib/module/redux/actions/index.js.map +1 -1
- package/lib/module/redux/reducers/hmsStates.js +191 -20
- package/lib/module/redux/reducers/hmsStates.js.map +1 -1
- package/lib/module/utils/functions.js.map +1 -1
- package/lib/module/utils/types.js +1 -0
- package/lib/module/utils/types.js.map +1 -1
- package/lib/typescript/HMSPrebuilt.d.ts.map +1 -1
- package/lib/typescript/Icons/Chevron/index.d.ts +1 -1
- package/lib/typescript/Icons/Chevron/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Leave/index.d.ts.map +1 -1
- package/lib/typescript/Icons/WelcomeHand/index.d.ts +7 -0
- package/lib/typescript/Icons/WelcomeHand/index.d.ts.map +1 -0
- package/lib/typescript/Icons/index.d.ts +1 -0
- package/lib/typescript/Icons/index.d.ts.map +1 -1
- package/lib/typescript/components/ChangeNameModalContent.d.ts.map +1 -1
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsHeader.d.ts.map +1 -1
- package/lib/typescript/components/ChatAndParticipants/ParticipantsView.d.ts.map +1 -1
- package/lib/typescript/components/HMSDangerButton.d.ts.map +1 -1
- package/lib/typescript/components/HMSHLSStreamLoading.d.ts.map +1 -1
- package/lib/typescript/components/HMSKeyboardAvoidingView.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageLeave.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageRaiseHand.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewHLSLiveIndicator.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewJoinButton.d.ts.map +1 -1
- package/lib/typescript/components/HMSRecordingIndicator.d.ts.map +1 -1
- package/lib/typescript/components/PIPView.d.ts +2 -1
- package/lib/typescript/components/PIPView.d.ts.map +1 -1
- package/lib/typescript/components/Participants/MultiRoleParticipantsList.d.ts +7 -0
- package/lib/typescript/components/Participants/MultiRoleParticipantsList.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsAccordian.d.ts +11 -0
- package/lib/typescript/components/Participants/ParticipantsAccordian.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsAccordianExpanded.d.ts +9 -0
- package/lib/typescript/components/Participants/ParticipantsAccordianExpanded.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsGroupFooter.d.ts +9 -0
- package/lib/typescript/components/Participants/ParticipantsGroupFooter.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsGroupHeader.d.ts +6 -3
- package/lib/typescript/components/Participants/ParticipantsGroupHeader.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsGroupOptions.d.ts +0 -2
- package/lib/typescript/components/Participants/ParticipantsGroupOptions.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsItem.d.ts +3 -3
- package/lib/typescript/components/Participants/ParticipantsItem.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsItemOptions.d.ts +2 -2
- package/lib/typescript/components/Participants/ParticipantsItemOptions.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsList.d.ts +3 -4
- package/lib/typescript/components/Participants/ParticipantsList.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsListFooter.d.ts +6 -0
- package/lib/typescript/components/Participants/ParticipantsListFooter.d.ts.map +1 -0
- package/lib/typescript/components/Participants/index.d.ts +1 -0
- package/lib/typescript/components/Participants/index.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/PeerAudioIndicator.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/PeerMetadata.d.ts +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerMetadata.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts.map +1 -1
- package/lib/typescript/components/Preview.d.ts.map +1 -1
- package/lib/typescript/components/PreviewForRoleChangeModal.d.ts.map +1 -1
- package/lib/typescript/components/RoomSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/components/WebrtcView.d.ts.map +1 -1
- package/lib/typescript/components/WelcomeInMeeting.d.ts.map +1 -1
- package/lib/typescript/hooks-sdk.d.ts +4 -0
- package/lib/typescript/hooks-sdk.d.ts.map +1 -1
- package/lib/typescript/hooks-util.d.ts +9 -19
- package/lib/typescript/hooks-util.d.ts.map +1 -1
- package/lib/typescript/redux/actionTypes.d.ts +4 -1
- package/lib/typescript/redux/actionTypes.d.ts.map +1 -1
- package/lib/typescript/redux/actions/index.d.ts +13 -0
- package/lib/typescript/redux/actions/index.d.ts.map +1 -1
- package/lib/typescript/redux/index.d.ts +1 -1
- package/lib/typescript/redux/reducers/hmsStates.d.ts +16 -3
- package/lib/typescript/redux/reducers/hmsStates.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/index.d.ts +1 -1
- package/lib/typescript/utils/functions.d.ts +0 -1
- package/lib/typescript/utils/functions.d.ts.map +1 -1
- package/lib/typescript/utils/types.d.ts +1 -0
- package/lib/typescript/utils/types.d.ts.map +1 -1
- package/package.json +3 -4
- package/src/HMSPrebuilt.tsx +3 -6
- package/src/HMSRoomSetup.tsx +1 -1
- package/src/Icons/Chevron/index.tsx +9 -2
- package/src/Icons/Leave/index.tsx +7 -1
- package/src/Icons/WelcomeHand/assets/welcome-hand.png +0 -0
- package/src/Icons/WelcomeHand/assets/welcome-hand@2x.png +0 -0
- package/src/Icons/WelcomeHand/assets/welcome-hand@3x.png +0 -0
- package/src/Icons/WelcomeHand/index.tsx +27 -0
- package/src/Icons/index.ts +1 -0
- package/src/components/ChangeNameModalContent.tsx +28 -9
- package/src/components/ChatAndParticipants/ChatAndParticipantsHeader.tsx +6 -3
- package/src/components/ChatAndParticipants/ParticipantsView.tsx +21 -13
- package/src/components/Footer.tsx +1 -1
- package/src/components/HMSDangerButton.tsx +2 -1
- package/src/components/HMSHLSStreamLoading.tsx +9 -3
- package/src/components/HMSKeyboardAvoidingView.tsx +3 -3
- package/src/components/HMSLiveIndicator.tsx +3 -3
- package/src/components/HMSManageLeave.tsx +2 -1
- package/src/components/HMSManageRaiseHand.tsx +20 -13
- package/src/components/HMSPreviewHLSLiveIndicator.tsx +3 -2
- package/src/components/HMSPreviewJoinButton.tsx +15 -4
- package/src/components/HMSPreviewTile.tsx +1 -1
- package/src/components/HMSRecordingIndicator.tsx +3 -1
- package/src/components/HMSTextInput.tsx +3 -3
- package/src/components/PIPView.tsx +34 -13
- package/src/components/Participants/MultiRoleParticipantsList.tsx +70 -0
- package/src/components/Participants/ParticipantsAccordian.tsx +70 -0
- package/src/components/Participants/ParticipantsAccordianExpanded.tsx +27 -0
- package/src/components/Participants/ParticipantsGroupFooter.tsx +65 -0
- package/src/components/Participants/ParticipantsGroupHeader.tsx +37 -37
- package/src/components/Participants/ParticipantsGroupOptions.tsx +1 -6
- package/src/components/Participants/ParticipantsItem.tsx +16 -33
- package/src/components/Participants/ParticipantsItemOptions.tsx +3 -3
- package/src/components/Participants/ParticipantsList.tsx +197 -34
- package/src/components/Participants/ParticipantsListFooter.tsx +45 -0
- package/src/components/Participants/ParticipantsSeachInput.tsx +2 -2
- package/src/components/Participants/index.ts +1 -0
- package/src/components/PeerVideoTile/AvatarView.tsx +1 -1
- package/src/components/PeerVideoTile/PeerAudioIndicator.tsx +11 -6
- package/src/components/PeerVideoTile/PeerMetadata.tsx +21 -12
- package/src/components/PeerVideoTile/PeerVideoTileView.tsx +25 -8
- package/src/components/Preview.tsx +23 -9
- package/src/components/PreviewForRoleChangeModal.tsx +1 -6
- package/src/components/RoomSettingsModalContent.tsx +44 -9
- package/src/components/RoomSettingsModalDebugModeContent.tsx +1 -1
- package/src/components/WebrtcView.tsx +10 -1
- package/src/components/WelcomeInMeeting.tsx +33 -5
- package/src/hooks-sdk.ts +58 -0
- package/src/hooks-util.ts +229 -193
- package/src/redux/actionTypes.ts +4 -1
- package/src/redux/actions/index.ts +17 -1
- package/src/redux/reducers/hmsStates.ts +269 -36
- package/src/utils/functions.ts +0 -1
- package/src/utils/types.ts +2 -0
- package/lib/commonjs/assets/welcome.png +0 -0
- package/lib/module/assets/welcome.png +0 -0
- package/src/assets/welcome.png +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useSelector","StyleSheet","Text","View","PersonIcon","getInitials","COLORS","HMSLocalVideoView","useHMSRoomStyleSheet","HMSPreviewTile","isLocalVideoMuted","state","hmsStates","localVideoTrackId","_state$hmsStates$loca","localPeer","videoTrack","trackId","userName","user","roomStyles","theme","typography","container","backgroundColor","palette","background_dim","avatar","EXTENDED","PURPLE","avatarText","color","
|
|
1
|
+
{"version":3,"names":["React","useSelector","StyleSheet","Text","View","PersonIcon","getInitials","COLORS","HMSLocalVideoView","useHMSRoomStyleSheet","HMSPreviewTile","isLocalVideoMuted","state","hmsStates","localVideoTrackId","_state$hmsStates$loca","localPeer","videoTrack","trackId","userName","user","roomStyles","theme","typography","container","backgroundColor","palette","background_dim","avatar","EXTENDED","PURPLE","avatarText","color","WHITE","fontFamily","font_family","createElement","style","styles","modalContainer","avatarContainer","length","avatarIcon","create","flex","position","overflow","hmsView","alignItems","justifyContent","width","aspectRatio","borderRadius","height","fontSize","lineHeight","letterSpacing"],"sourceRoot":"../../../src","sources":["components/HMSPreviewTile.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,WAAW,QAAQ,aAAa;AACzC,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAErD,SAASC,UAAU,QAAQ,UAAU;AAErC,SAASC,WAAW,QAAQ,oBAAoB;AAChD,SAASC,MAAM,QAAQ,gBAAgB;AACvC,SAASC,iBAAiB,QAAQ,qBAAqB;AACvD,SAASC,oBAAoB,QAAQ,eAAe;AAEpD,OAAO,MAAMC,cAAwB,GAAGA,CAAA,KAAM;EAC5C,MAAMC,iBAAiB,GAAGV,WAAW,CAClCW,KAAgB,IAAKA,KAAK,CAACC,SAAS,CAACF,iBACxC,CAAC;EACD,MAAMG,iBAAiB,GAAGb,WAAW,CAClCW,KAAgB;IAAA,IAAAG,qBAAA;IAAA,QAAAA,qBAAA,GAAKH,KAAK,CAACC,SAAS,CAACG,SAAS,cAAAD,qBAAA,gBAAAA,qBAAA,GAAzBA,qBAAA,CAA2BE,UAAU,cAAAF,qBAAA,uBAArCA,qBAAA,CAAuCG,OAAO;EAAA,CACtE,CAAC;EACD,MAAMC,QAAQ,GAAGlB,WAAW,CAAEW,KAAgB,IAAKA,KAAK,CAACQ,IAAI,CAACD,QAAQ,CAAC;EAEvE,MAAME,UAAU,GAAGZ,oBAAoB,CAAC,CAACa,KAAK,EAAEC,UAA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AAC;EACDJ,eAAe,EAAE;IACfI,IAAI,EAAE,CAAC;IACPI,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDrB,MAAM,EAAE;IACNsB,KAAK,EAAE,EAAE;IACTC,WAAW,EAAE,CAAC;IACdC,YAAY,EAAE,EAAE;IAChBH,cAAc,EAAE,QAAQ;IACxBD,UAAU,EAAE;EACd,CAAC;EACDN,UAAU,EAAE;IACVQ,KAAK,EAAE,EAAE;IACTG,MAAM,EAAE;EACV,CAAC;EACDtB,UAAU,EAAE;IACVuB,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,aAAa,EAAE;EACjB;AACF,CAAC,CAAC"}
|
|
@@ -8,7 +8,10 @@ export const HMSRecordingIndicator = () => {
|
|
|
8
8
|
var _state$hmsStates$room;
|
|
9
9
|
return !!((_state$hmsStates$room = state.hmsStates.room) !== null && _state$hmsStates$room !== void 0 && (_state$hmsStates$room = _state$hmsStates$room.browserRecordingState) !== null && _state$hmsStates$room !== void 0 && _state$hmsStates$room.running);
|
|
10
10
|
});
|
|
11
|
-
const startingOrStoppingRecording = useSelector(state =>
|
|
11
|
+
const startingOrStoppingRecording = useSelector(state => {
|
|
12
|
+
var _state$hmsStates$room2;
|
|
13
|
+
return state.app.startingOrStoppingRecording || ((_state$hmsStates$room2 = state.hmsStates.room) === null || _state$hmsStates$room2 === void 0 ? void 0 : _state$hmsStates$room2.browserRecordingState.initialising);
|
|
14
|
+
});
|
|
12
15
|
const {
|
|
13
16
|
on_surface_high: onSurfaceHighColor
|
|
14
17
|
} = useHMSRoomColorPalette();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useSelector","ActivityIndicator","StyleSheet","RecordingIcon","useHMSRoomColorPalette","useHMSRoomStyle","HMSRecordingIndicator","isRecordingOn","state","_state$hmsStates$room","hmsStates","room","browserRecordingState","running","startingOrStoppingRecording","app","on_surface_high","onSurfaceHighColor","iconStyles","theme","tintColor","palette","alert_error_default","createElement","size","color","style","styles","rightSpace","icon","create","width","height","marginRight"],"sourceRoot":"../../../src","sources":["components/HMSRecordingIndicator.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,WAAW,QAAQ,aAAa;AACzC,SAASC,iBAAiB,EAAEC,UAAU,QAAQ,cAAc;AAG5D,SAASC,aAAa,QAAQ,UAAU;AACxC,SAASC,sBAAsB,EAAEC,eAAe,QAAQ,eAAe;AAEvE,OAAO,MAAMC,qBAAqB,GAAGA,CAAA,KAAM;EACzC,MAAMC,aAAa,GAAGP,WAAW,CAC9BQ,KAAgB;IAAA,IAAAC,qBAAA;IAAA,OAAK,CAAC,GAAAA,qBAAA,GAACD,KAAK,CAACE,SAAS,CAACC,IAAI,cAAAF,qBAAA,gBAAAA,qBAAA,GAApBA,qBAAA,CAAsBG,qBAAqB,cAAAH,qBAAA,eAA3CA,qBAAA,CAA6CI,OAAO;EAAA,CAC9E,CAAC;EACD,MAAMC,2BAA2B,GAAGd,WAAW,CAC5CQ,KAAgB,
|
|
1
|
+
{"version":3,"names":["React","useSelector","ActivityIndicator","StyleSheet","RecordingIcon","useHMSRoomColorPalette","useHMSRoomStyle","HMSRecordingIndicator","isRecordingOn","state","_state$hmsStates$room","hmsStates","room","browserRecordingState","running","startingOrStoppingRecording","_state$hmsStates$room2","app","initialising","on_surface_high","onSurfaceHighColor","iconStyles","theme","tintColor","palette","alert_error_default","createElement","size","color","style","styles","rightSpace","icon","create","width","height","marginRight"],"sourceRoot":"../../../src","sources":["components/HMSRecordingIndicator.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,WAAW,QAAQ,aAAa;AACzC,SAASC,iBAAiB,EAAEC,UAAU,QAAQ,cAAc;AAG5D,SAASC,aAAa,QAAQ,UAAU;AACxC,SAASC,sBAAsB,EAAEC,eAAe,QAAQ,eAAe;AAEvE,OAAO,MAAMC,qBAAqB,GAAGA,CAAA,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AAC;EACDJ,UAAU,EAAE;IACVK,WAAW,EAAE;EACf;AACF,CAAC,CAAC"}
|
|
@@ -15,7 +15,7 @@ export const HMSTextInput = _ref => {
|
|
|
15
15
|
const handleInputFocus = () => setInputFocused(true);
|
|
16
16
|
const handleInputBlur = () => setInputFocused(false);
|
|
17
17
|
const {
|
|
18
|
-
|
|
18
|
+
on_surface_medium: onSurfaceMediumColor,
|
|
19
19
|
on_surface_high: onSurfaceHighColor
|
|
20
20
|
} = useHMSRoomColorPalette();
|
|
21
21
|
const containerExists = resetProps.leftIcon || resetProps.rightIcon || resetProps.sendIcon;
|
|
@@ -49,7 +49,7 @@ export const HMSTextInput = _ref => {
|
|
|
49
49
|
},
|
|
50
50
|
// ICON STYLES
|
|
51
51
|
sendIcon: {
|
|
52
|
-
tintColor: theme.palette.
|
|
52
|
+
tintColor: theme.palette.on_surface_medium
|
|
53
53
|
},
|
|
54
54
|
focusedSendIcon: {
|
|
55
55
|
tintColor: theme.palette.on_surface_high
|
|
@@ -75,7 +75,7 @@ export const HMSTextInput = _ref => {
|
|
|
75
75
|
placeholder: resetProps.placeholder ?? 'Enter Name...',
|
|
76
76
|
autoCapitalize: resetProps.autoCapitalize ?? 'words',
|
|
77
77
|
autoCompleteType: resetProps.autoCompleteType ?? 'name',
|
|
78
|
-
placeholderTextColor: resetProps.placeholderTextColor ??
|
|
78
|
+
placeholderTextColor: resetProps.placeholderTextColor ?? onSurfaceMediumColor,
|
|
79
79
|
selectionColor: resetProps.selectionColor ?? onSurfaceHighColor,
|
|
80
80
|
onFocus: resetProps.onFocus ?? handleInputFocus,
|
|
81
81
|
onBlur: resetProps.onBlur ?? handleInputBlur
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Platform","StyleSheet","TextInput","TouchableOpacity","View","useHMSRoomColorPalette","useHMSRoomStyleSheet","SendIcon","HMSTextInput","_ref","value","onChangeText","style","focusedStyle","resetProps","inputFocused","setInputFocused","useState","handleInputFocus","handleInputBlur","
|
|
1
|
+
{"version":3,"names":["React","Platform","StyleSheet","TextInput","TouchableOpacity","View","useHMSRoomColorPalette","useHMSRoomStyleSheet","SendIcon","HMSTextInput","_ref","value","onChangeText","style","focusedStyle","resetProps","inputFocused","setInputFocused","useState","handleInputFocus","handleInputBlur","on_surface_medium","onSurfaceMediumColor","on_surface_high","onSurfaceHighColor","containerExists","leftIcon","rightIcon","sendIcon","hmsRoomStyles","theme","typography","input","backgroundColor","palette","surface_default","color","borderColor","fontFamily","font_family","childInput","focusedInput","primary_default","borderWidth","focusedChildInput","container","focusedContainer","tintColor","focusedSendIcon","textInputStyles","styles","textInputComp","createElement","_extends","placeholder","autoCapitalize","autoCompleteType","placeholderTextColor","selectionColor","onFocus","onBlur","containerStyles","containerStyle","focusedContainerStyle","sendIconButton","onPress","onSendIconPress","create","flex","height","overflow","paddingLeft","paddingRight","borderRadius","flexDirection","textAlignVertical","paddingHorizontal","fontSize","lineHeight","OS","undefined","letterSpacing","alignItems","justifyContent","marginLeft"],"sourceRoot":"../../../src","sources":["components/HMSTextInput.tsx"],"mappings":";AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SACEC,QAAQ,EACRC,UAAU,EACVC,SAAS,EACTC,gBAAgB,EAChBC,IAAI,QACC,cAAc;AAQrB,SAASC,sBAAsB,EAAEC,oBAAoB,QAAQ,eAAe;AAC5E,SAASC,QAAQ,QAAQ,UAAU;AAwBnC,OAAO,MAAMC,YAAyC,GAAGC,IAAA,IAMnD;EAAA,IANoD;IACxDC,KAAK;IACLC,YAAY;IACZC,KAAK;IACLC,YAAY;IACZ,GAAGC;EACL,CAAC,GAAAL,IAAA;EACC,MAAM,CAACM,YAAY,EAAEC,eAAe,CAAC,GAAGjB,KAAK,CAACkB,QAAQ,CAAC,KAAK,CAAC;EAE7D,MAAMC,gBAAgB,GAAGA,CAAA,KAAMF,eAAe,CAAC,IAAI,CAAC;EAEpD,MAAMG,eAAe,GAAGA,CAAA,KAAMH,eAAe,CAAC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aAAa,EAAE,GAAG;IAClBtC,WAAW,EAAE;EACf,CAAC;EACDH,UAAU,EAAE;IACV4B,IAAI,EAAE,CAAC;IACPO,iBAAiB,EAAE,QAAQ;IAC3BE,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE7E,QAAQ,CAAC8E,EAAE,KAAK,SAAS,GAAG,EAAE,GAAGC,SAAS;IACtDC,aAAa,EAAE;EACjB,CAAC;EACDjB,cAAc,EAAE;IACdkB,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd;AACF,CAAC,CAAC"}
|
|
@@ -1,22 +1,30 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
2
|
+
import { useSelector } from 'react-redux';
|
|
3
|
+
import { PeerVideoTileView } from './PeerVideoTile/PeerVideoTileView';
|
|
4
4
|
const PIPView = _ref => {
|
|
5
|
-
var _preferedPeerTrack$pe;
|
|
6
5
|
let {
|
|
7
|
-
|
|
6
|
+
peerTrackNodes,
|
|
7
|
+
customView
|
|
8
8
|
} = _ref;
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
const memoDominantSpeakerIdRef = React.useRef(null);
|
|
10
|
+
const dominantSpeakerId = useSelector(state => {
|
|
11
|
+
const dominantSpeaker = state.hmsStates.activeSpeakers[0];
|
|
12
|
+
return (dominantSpeaker === null || dominantSpeaker === void 0 ? void 0 : dominantSpeaker.peer.peerID) ?? null;
|
|
13
|
+
});
|
|
14
|
+
if (dominantSpeakerId) {
|
|
15
|
+
memoDominantSpeakerIdRef.current = dominantSpeakerId;
|
|
16
|
+
}
|
|
17
|
+
if (customView) {
|
|
18
|
+
return customView;
|
|
19
|
+
}
|
|
20
|
+
const firstPeerTrackNode = peerTrackNodes[0];
|
|
21
|
+
const preferedPeerTrack = (memoDominantSpeakerIdRef.current ? peerTrackNodes.find(node => node.peer.peerID === memoDominantSpeakerIdRef.current) : firstPeerTrackNode) ?? firstPeerTrackNode;
|
|
22
|
+
if (!preferedPeerTrack) {
|
|
13
23
|
return null;
|
|
14
24
|
}
|
|
15
|
-
return /*#__PURE__*/React.createElement(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
videoTrack: preferedPeerTrack === null || preferedPeerTrack === void 0 ? void 0 : preferedPeerTrack.track,
|
|
19
|
-
isDegraded: preferedPeerTrack === null || preferedPeerTrack === void 0 ? void 0 : preferedPeerTrack.isDegraded
|
|
25
|
+
return /*#__PURE__*/React.createElement(PeerVideoTileView, {
|
|
26
|
+
key: preferedPeerTrack.id,
|
|
27
|
+
peerTrackNode: preferedPeerTrack
|
|
20
28
|
});
|
|
21
29
|
};
|
|
22
30
|
export default PIPView;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","
|
|
1
|
+
{"version":3,"names":["React","useSelector","PeerVideoTileView","PIPView","_ref","peerTrackNodes","customView","memoDominantSpeakerIdRef","useRef","dominantSpeakerId","state","dominantSpeaker","hmsStates","activeSpeakers","peer","peerID","current","firstPeerTrackNode","preferedPeerTrack","find","node","createElement","key","id","peerTrackNode"],"sourceRoot":"../../../src","sources":["components/PIPView.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,WAAW,QAAQ,aAAa;AAGzC,SAASC,iBAAiB,QAAQ,mCAAmC;AAQrE,MAAMC,OAA+B,GAAGC,IAAA,IAAoC;EAAA,IAAnC;IAAEC,cAAc;IAAEC;EAAW,CAAC,GAAAF,IAAA;EACrE,MAAMG,wBAAwB,GAAGP,KAAK,CAACQ,MAAM,CAAgB,IAAI,CAAC;EAElE,MAAMC,iBAAiB,GAAGR,WAAW,CAAES,KAAgB,IAAK;IAC1D,MAAMC,eAAe,GAAGD,KAAK,CAACE,SAAS,CAACC,cAAc,CAAC,CAAC,CAAC;IAEzD,OAAO,CAAAF,eAAe,aAAfA,eAAe,uBAAfA,eAAe,CAAEG,IAAI,CAACC,MAAM,KAAI,IAAI;EAC7C,CAAC,CAAC;EAEF,IAAIN,iBAAiB,EAAE;IACrBF,wBAAwB,CAACS,OAAO,GAAGP,iBAAiB;EACtD;EAEA,IAAIH,UAAU,EAAE;IACd,OAAOA,UAAU;EACnB;EAEA,MAAMW,kBAAkB,GAAGZ,cAAc,CAAC,CAAC,CAAC;EAE5C,MAAMa,iBAAiB,GACrB,CAACX,wBAAwB,CAACS,OAAO,GAC7BX,cAAc,CAACc,IAAI,CAChBC,IAAI,IAAKA,IAAI,CAACN,IAAI,CAACC,MAAM,KAAKR,wBAAwB,CAACS,OAC1D,CAAC,GACDC,kBAAkB,KAAKA,kBAAkB;EAE/C,IAAI,CAACC,iBAAiB,EAAE;IACtB,OAAO,IAAI;EACb;EAEA,oBACElB,KAAA,CAAAqB,aAAA,CAACnB,iBAAiB;IAChBoB,GAAG,EAAEJ,iBAAiB,CAACK,EAAG;IAC1BC,aAAa,EAAEN;EAAkB,CAClC,CAAC;AAEN,CAAC;AAED,eAAef,OAAO"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ScrollView, StyleSheet, Text, View } from 'react-native';
|
|
3
|
+
import { useFilteredParticipants, useHMSRoomStyle } from '../../hooks-util';
|
|
4
|
+
import { ParticipantsAccordian } from './ParticipantsAccordian';
|
|
5
|
+
export const MultiRoleParticipantsList = _ref => {
|
|
6
|
+
let {
|
|
7
|
+
searchText,
|
|
8
|
+
onViewAllPress
|
|
9
|
+
} = _ref;
|
|
10
|
+
const {
|
|
11
|
+
data,
|
|
12
|
+
formattedSearchText,
|
|
13
|
+
expandedGroup,
|
|
14
|
+
setExpandedGroup
|
|
15
|
+
} = useFilteredParticipants(searchText);
|
|
16
|
+
const emptyTextStyles = useHMSRoomStyle((theme, typography) => ({
|
|
17
|
+
color: theme.palette.on_surface_medium,
|
|
18
|
+
fontFamily: `${typography.font_family}-SemiBold`
|
|
19
|
+
}));
|
|
20
|
+
const searchTextExists = formattedSearchText.length > 0;
|
|
21
|
+
if (searchTextExists && data.length <= 0) {
|
|
22
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
23
|
+
style: styles.emptyContainer
|
|
24
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
25
|
+
style: [styles.emptyText, emptyTextStyles]
|
|
26
|
+
}, "No results found..."));
|
|
27
|
+
}
|
|
28
|
+
return /*#__PURE__*/React.createElement(ScrollView, {
|
|
29
|
+
contentContainerStyle: {
|
|
30
|
+
paddingBottom: 40
|
|
31
|
+
}
|
|
32
|
+
}, data.map(item => /*#__PURE__*/React.createElement(ParticipantsAccordian, {
|
|
33
|
+
key: item.id,
|
|
34
|
+
open: expandedGroup === item.id,
|
|
35
|
+
data: item,
|
|
36
|
+
toggle: setExpandedGroup,
|
|
37
|
+
showViewAll: item.showViewAll,
|
|
38
|
+
onViewAllPress: onViewAllPress
|
|
39
|
+
})));
|
|
40
|
+
};
|
|
41
|
+
const styles = StyleSheet.create({
|
|
42
|
+
list: {
|
|
43
|
+
paddingBottom: 32
|
|
44
|
+
},
|
|
45
|
+
emptyContainer: {
|
|
46
|
+
flex: 1,
|
|
47
|
+
alignItems: 'center',
|
|
48
|
+
justifyContent: 'center'
|
|
49
|
+
},
|
|
50
|
+
emptyText: {
|
|
51
|
+
fontSize: 14,
|
|
52
|
+
lineHeight: 20,
|
|
53
|
+
letterSpacing: 0.25
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
//# sourceMappingURL=MultiRoleParticipantsList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","ScrollView","StyleSheet","Text","View","useFilteredParticipants","useHMSRoomStyle","ParticipantsAccordian","MultiRoleParticipantsList","_ref","searchText","onViewAllPress","data","formattedSearchText","expandedGroup","setExpandedGroup","emptyTextStyles","theme","typography","color","palette","on_surface_medium","fontFamily","font_family","searchTextExists","length","createElement","style","styles","emptyContainer","emptyText","contentContainerStyle","paddingBottom","map","item","key","id","open","toggle","showViewAll","create","list","flex","alignItems","justifyContent","fontSize","lineHeight","letterSpacing"],"sourceRoot":"../../../../src","sources":["components/Participants/MultiRoleParticipantsList.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,UAAU,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAEjE,SAASC,uBAAuB,EAAEC,eAAe,QAAQ,kBAAkB;AAC3E,SAASC,qBAAqB,QAAQ,yBAAyB;AAO/D,OAAO,MAAMC,yBAAmE,GAAGC,IAAA,IAG7E;EAAA,IAH8E;IAClFC,UAAU;IACVC;EACF,CAAC,GAAAF,IAAA;EACC,MAAM;IACJG,IAAI;IACJC,mBAAmB;IACnBC,aAAa;IACbC;EACF,CAAC,GAAGV,uBAAuB,CAACK,UAAU,CAAC;EAEvC,MAAMM,eAAe,GAAGV,eAAe,CAAC,CAACW,KAAK,EAAEC,UAAU,MAAM;IAC9DC,KAAK,EAAEF,KAAK,CAACG,OAAO,CAACC,iBAAiB;IACtCC,UAAU,EAAG,GAAEJ,UAAU,CAACK,WAAY;EACxC,CAAC,CAAC,CAAC;EAEH,MAAMC,gBAAgB,GAAGX,mBAAmB,CAACY,MAAM,GAAG,CAAC;EAEvD,IAAID,gBAAgB,IAAIZ,IAAI,CAACa,MAAM,IAAI,CAAC,EAAE;IACxC,oBACEzB,KAAA,CAAA0B,aAAA,CAACtB,IAAI;MAACuB,KAAK,EAAEC,MAAM,CAACC;IAAe,gBACjC7B,KAAA,CAAA0B,aAAA,CAACvB,IAAI;MAACwB,KAAK,EAAE,CAACC,MAAM,CAACE,SAAS,EAAEd,eAAe;IAAE,GAAC,qBAE5C,CACF,CAAC;EAEX;EAEA,oBACEhB,KAAA,CAAA0B,aAAA,CAACzB,UAAU;IAAC8B,qBAAqB,EAAE;MAACC,aAAa,EAAE;IAAE;EAAE,GACpDpB,IAAI,CAACqB,GAAG,CAACC,IAAI,iBACZlC,KAAA,CAAA0B,aAAA,CAACnB,qBAAqB;IACpB4B,GAAG,EAAED,IAAI,CAACE,EAAG;IACbC,IAAI,EAAEvB,aAAa,KAAKoB,IAAI,CAACE,EAAG;IAChCxB,IAAI,EAAEsB,IAAK;IACXI,MAAM,EAAEvB,gBAAiB;IACzBwB,WAAW,EAAEL,IAAI,CAACK,WAAY;IAC9B5B,cAAc,EAAEA;EAAe,CAChC,CACF,CACS,CAAC;AAEjB,CAAC;AAED,MAAMiB,MAAM,GAAG1B,UAAU,CAACsC,MAAM,CAAC;EAC/BC,IAAI,EAAE;IACJT,aAAa,EAAE;EACjB,CAAC;EACDH,cAAc,EAAE;IACda,IAAI,EAAE,CAAC;IACPC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDd,SAAS,EAAE;IACTe,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,aAAa,EAAE;EACjB;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { StyleSheet, View } from 'react-native';
|
|
3
|
+
import { ParticipantsGroupHeader } from './ParticipantsGroupHeader';
|
|
4
|
+
import { useHMSRoomStyleSheet } from '../../hooks-util';
|
|
5
|
+
import { ParticipantsGroupFooter } from './ParticipantsGroupFooter';
|
|
6
|
+
import { ParticipantsAccordianExpanded } from './ParticipantsAccordianExpanded';
|
|
7
|
+
export const ParticipantsAccordian = _ref => {
|
|
8
|
+
let {
|
|
9
|
+
open,
|
|
10
|
+
data,
|
|
11
|
+
showViewAll = false,
|
|
12
|
+
toggle,
|
|
13
|
+
onViewAllPress
|
|
14
|
+
} = _ref;
|
|
15
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
16
|
+
container: {
|
|
17
|
+
borderColor: theme.palette.border_bright
|
|
18
|
+
},
|
|
19
|
+
label: {
|
|
20
|
+
color: theme.palette.on_surface_medium,
|
|
21
|
+
fontFamily: `${typography.font_family}-SemiBold`
|
|
22
|
+
},
|
|
23
|
+
menu: {
|
|
24
|
+
backgroundColor: theme.palette.surface_default,
|
|
25
|
+
borderColor: theme.palette.border_bright
|
|
26
|
+
}
|
|
27
|
+
}));
|
|
28
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
29
|
+
style: [styles.container, hmsRoomStyles.container]
|
|
30
|
+
}, /*#__PURE__*/React.createElement(ParticipantsGroupHeader, {
|
|
31
|
+
id: data.id,
|
|
32
|
+
label: data.label,
|
|
33
|
+
expanded: open,
|
|
34
|
+
toggleExpanded: toggle
|
|
35
|
+
}), open ? /*#__PURE__*/React.createElement(ParticipantsAccordianExpanded, {
|
|
36
|
+
id: data.id,
|
|
37
|
+
data: data.data
|
|
38
|
+
}) : null, open && showViewAll ? /*#__PURE__*/React.createElement(ParticipantsGroupFooter, {
|
|
39
|
+
groupId: data.id,
|
|
40
|
+
onViewAllPress: onViewAllPress
|
|
41
|
+
}) : null);
|
|
42
|
+
};
|
|
43
|
+
const styles = StyleSheet.create({
|
|
44
|
+
container: {
|
|
45
|
+
marginTop: 16,
|
|
46
|
+
borderWidth: 1,
|
|
47
|
+
borderRadius: 8,
|
|
48
|
+
overflow: 'hidden'
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
//# sourceMappingURL=ParticipantsAccordian.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","ParticipantsGroupHeader","useHMSRoomStyleSheet","ParticipantsGroupFooter","ParticipantsAccordianExpanded","ParticipantsAccordian","_ref","open","data","showViewAll","toggle","onViewAllPress","hmsRoomStyles","theme","typography","container","borderColor","palette","border_bright","label","color","on_surface_medium","fontFamily","font_family","menu","backgroundColor","surface_default","createElement","style","styles","id","expanded","toggleExpanded","groupId","create","marginTop","borderWidth","borderRadius","overflow"],"sourceRoot":"../../../../src","sources":["components/Participants/ParticipantsAccordian.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SA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AI,EAEPD,IAAI,IAAIE,WAAW,gBAClBX,KAAA,CAAA6B,aAAA,CAACxB,uBAAuB;IACtB8B,OAAO,EAAEzB,IAAI,CAACsB,EAAG;IACjBnB,cAAc,EAAEA;EAAe,CAChC,CAAC,GACA,IACA,CAAC;AAEX,CAAC;AAED,MAAMkB,MAAM,GAAG9B,UAAU,CAACmC,MAAM,CAAC;EAC/BnB,SAAS,EAAE;IACToB,SAAS,EAAE,EAAE;IACbC,WAAW,EAAE,CAAC;IACdC,YAAY,EAAE,CAAC;IACfC,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ParticipantsItem } from './ParticipantsItem';
|
|
3
|
+
export const ParticipantsAccordianExpanded = _ref => {
|
|
4
|
+
let {
|
|
5
|
+
id,
|
|
6
|
+
data
|
|
7
|
+
} = _ref;
|
|
8
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, data.map(participant => {
|
|
9
|
+
return /*#__PURE__*/React.createElement(ParticipantsItem, {
|
|
10
|
+
key: participant.peerID,
|
|
11
|
+
groupId: id,
|
|
12
|
+
data: participant
|
|
13
|
+
});
|
|
14
|
+
}));
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=ParticipantsAccordianExpanded.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","ParticipantsItem","ParticipantsAccordianExpanded","_ref","id","data","createElement","Fragment","map","participant","key","peerID","groupId"],"sourceRoot":"../../../../src","sources":["components/Participants/ParticipantsAccordianExpanded.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAG9B,SAASC,gBAAgB,QAAQ,oBAAoB;AAOrD,OAAO,MAAMC,6BAEZ,GAAGC,IAAA,IAAkB;EAAA,IAAjB;IAAEC,EAAE;IAAEC;EAAK,CAAC,GAAAF,IAAA;EACf,oBACEH,KAAA,CAAAM,aAAA,CAAAN,KAAA,CAAAO,QAAA,QACGF,IAAI,CAACG,GAAG,CAAEC,WAAW,IAAK;IACzB,oBACET,KAAA,CAAAM,aAAA,CAACL,gBAAgB;MACfS,GAAG,EAAED,WAAW,CAACE,MAAO;MACxBC,OAAO,EAAER,EAAG;MACZC,IAAI,EAAEI;IAAY,CACnB,CAAC;EAEN,CAAC,CACD,CAAC;AAEP,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { View, Text, StyleSheet, TouchableOpacity } from 'react-native';
|
|
3
|
+
import { useHMSRoomStyleSheet } from '../../hooks-util';
|
|
4
|
+
import { ChevronIcon } from '../../Icons';
|
|
5
|
+
const _ParticipantsGroupFooter = _ref => {
|
|
6
|
+
let {
|
|
7
|
+
groupId,
|
|
8
|
+
onViewAllPress
|
|
9
|
+
} = _ref;
|
|
10
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
11
|
+
container: {
|
|
12
|
+
borderTopColor: theme.palette.border_bright
|
|
13
|
+
},
|
|
14
|
+
label: {
|
|
15
|
+
color: theme.palette.on_surface_high,
|
|
16
|
+
fontFamily: `${typography.font_family}-Regular`
|
|
17
|
+
}
|
|
18
|
+
}));
|
|
19
|
+
const handleViewAllPress = () => {
|
|
20
|
+
onViewAllPress(groupId);
|
|
21
|
+
};
|
|
22
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
23
|
+
style: [styles.container, hmsRoomStyles.container]
|
|
24
|
+
}, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
25
|
+
style: [styles.viewAllAction],
|
|
26
|
+
onPress: handleViewAllPress
|
|
27
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
28
|
+
style: [styles.label, hmsRoomStyles.label]
|
|
29
|
+
}, "View All"), /*#__PURE__*/React.createElement(ChevronIcon, {
|
|
30
|
+
direction: "right"
|
|
31
|
+
})));
|
|
32
|
+
};
|
|
33
|
+
const styles = StyleSheet.create({
|
|
34
|
+
container: {
|
|
35
|
+
flexDirection: 'row',
|
|
36
|
+
justifyContent: 'flex-end',
|
|
37
|
+
paddingVertical: 12,
|
|
38
|
+
paddingHorizontal: 16,
|
|
39
|
+
borderTopWidth: 1
|
|
40
|
+
},
|
|
41
|
+
label: {
|
|
42
|
+
fontSize: 14,
|
|
43
|
+
lineHeight: 20,
|
|
44
|
+
letterSpacing: 0.25,
|
|
45
|
+
marginRight: 4
|
|
46
|
+
},
|
|
47
|
+
viewAllAction: {
|
|
48
|
+
flexDirection: 'row',
|
|
49
|
+
alignItems: 'center'
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
export const ParticipantsGroupFooter = /*#__PURE__*/React.memo(_ParticipantsGroupFooter);
|
|
53
|
+
//# sourceMappingURL=ParticipantsGroupFooter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","Text","StyleSheet","TouchableOpacity","useHMSRoomStyleSheet","ChevronIcon","_ParticipantsGroupFooter","_ref","groupId","onViewAllPress","hmsRoomStyles","theme","typography","container","borderTopColor","palette","border_bright","label","color","on_surface_high","fontFamily","font_family","handleViewAllPress","createElement","style","styles","viewAllAction","onPress","direction","create","flexDirection","justifyContent","paddingVertical","paddingHorizontal","borderTopWidth","fontSize","lineHeight","letterSpacing","marginRight","alignItems","ParticipantsGroupFooter","memo"],"sourceRoot":"../../../../src","sources":["components/Participants/ParticipantsGroupFooter.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,IAAI,EAAEC,IAAI,EAAEC,UAAU,EAAEC,gBAAgB,QAAQ,cAAc;AAEvE,SAASC,oBAAoB,QAAQ,kBAAkB;AAEvD,SAASC,WAAW,QAAQ,aAAa;AAOzC,MAAMC,wBAAgE,GAAGC,IAAA,IAGnE;EAAA,IAHoE;IACxEC,OAAO;IACPC;EACF,CAAC,GAAAF,IAAA;EACC,MAAMG,aAAa,GAAGN,oBAAoB,CAAC,CAACO,KAAK,E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MAAMC,uBAAuB,gBAAGzC,KAAK,CAAC0C,IAAI,CAACnC,wBAAwB,CAAC"}
|
|
@@ -11,8 +11,11 @@ import { ParticipantsGroupOptions } from './ParticipantsGroupOptions';
|
|
|
11
11
|
// import { isParticipantHostOrBroadcaster } from '../../utils/functions';
|
|
12
12
|
const _ParticipantsGroupHeader = _ref => {
|
|
13
13
|
let {
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
id,
|
|
15
|
+
label,
|
|
16
|
+
expanded,
|
|
17
|
+
onBackPress,
|
|
18
|
+
toggleExpanded
|
|
16
19
|
} = _ref;
|
|
17
20
|
// const selfHostOrBroadcaster = useSelector((state: RootState) => {
|
|
18
21
|
// const selfRole = state.hmsStates.localPeer?.role;
|
|
@@ -36,27 +39,32 @@ const _ParticipantsGroupHeader = _ref => {
|
|
|
36
39
|
const show3Dots = false;
|
|
37
40
|
// const show3Dots =
|
|
38
41
|
// selfHostOrBroadcaster &&
|
|
39
|
-
// ('role' in data
|
|
40
|
-
// ? !isParticipantHostOrBroadcaster(data.
|
|
41
|
-
// : data.
|
|
42
|
+
// ('role' in data
|
|
43
|
+
// ? !isParticipantHostOrBroadcaster(data.role)
|
|
44
|
+
// : data.id === 'hand-raised');
|
|
42
45
|
|
|
43
46
|
const showOptions = () => setOptionsVisible(true);
|
|
44
47
|
const hideOptions = () => setOptionsVisible(false);
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
setExpandedGroups(expandedGroups => {
|
|
49
|
-
if (expandedGroups.includes(groupName)) {
|
|
50
|
-
return expandedGroups.filter(group => group !== groupName);
|
|
51
|
-
}
|
|
52
|
-
return [...expandedGroups, groupName];
|
|
53
|
-
});
|
|
54
|
-
};
|
|
48
|
+
const toggleGroupExpand = toggleExpanded ? () => {
|
|
49
|
+
toggleExpanded(expanded ? null : id);
|
|
50
|
+
} : null;
|
|
55
51
|
return /*#__PURE__*/React.createElement(View, {
|
|
56
52
|
style: [styles.container, expanded ? styles.expandedContainer : null, hmsRoomStyles.container]
|
|
57
|
-
}, /*#__PURE__*/React.createElement(
|
|
53
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
54
|
+
style: {
|
|
55
|
+
flexDirection: 'row',
|
|
56
|
+
alignItems: 'center'
|
|
57
|
+
}
|
|
58
|
+
}, onBackPress ? /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
59
|
+
style: {
|
|
60
|
+
marginRight: 8
|
|
61
|
+
},
|
|
62
|
+
onPress: onBackPress
|
|
63
|
+
}, /*#__PURE__*/React.createElement(ChevronIcon, {
|
|
64
|
+
direction: "left"
|
|
65
|
+
})) : null, /*#__PURE__*/React.createElement(Text, {
|
|
58
66
|
style: [styles.label, hmsRoomStyles.label]
|
|
59
|
-
},
|
|
67
|
+
}, label)), /*#__PURE__*/React.createElement(View, {
|
|
60
68
|
style: styles.controls
|
|
61
69
|
}, show3Dots ? /*#__PURE__*/React.createElement(Menu, {
|
|
62
70
|
visible: optionsVisible,
|
|
@@ -71,21 +79,16 @@ const _ParticipantsGroupHeader = _ref => {
|
|
|
71
79
|
...styles.menu,
|
|
72
80
|
...hmsRoomStyles.menu
|
|
73
81
|
}
|
|
74
|
-
}, /*#__PURE__*/React.createElement(ParticipantsGroupOptions, {
|
|
75
|
-
data: data
|
|
76
|
-
})) : null, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
82
|
+
}, /*#__PURE__*/React.createElement(ParticipantsGroupOptions, null)) : null, toggleGroupExpand ? /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
77
83
|
style: [styles.control, expanded ? styles.expandedArrowIcon : null],
|
|
78
84
|
onPress: toggleGroupExpand
|
|
79
85
|
}, /*#__PURE__*/React.createElement(ChevronIcon, {
|
|
80
86
|
direction: "down"
|
|
81
|
-
}))));
|
|
87
|
+
})) : null));
|
|
82
88
|
};
|
|
83
89
|
const styles = StyleSheet.create({
|
|
84
90
|
container: {
|
|
85
91
|
flexDirection: 'row',
|
|
86
|
-
marginTop: 16,
|
|
87
|
-
borderWidth: 1,
|
|
88
|
-
borderRadius: 8,
|
|
89
92
|
paddingVertical: 12,
|
|
90
93
|
paddingHorizontal: 16,
|
|
91
94
|
justifyContent: 'space-between'
|
|
@@ -96,9 +99,7 @@ const styles = StyleSheet.create({
|
|
|
96
99
|
letterSpacing: 0.1
|
|
97
100
|
},
|
|
98
101
|
expandedContainer: {
|
|
99
|
-
|
|
100
|
-
borderTopRightRadius: 8,
|
|
101
|
-
borderRadius: 0
|
|
102
|
+
borderBottomWidth: 1
|
|
102
103
|
},
|
|
103
104
|
controls: {
|
|
104
105
|
flexDirection: 'row'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","Text","StyleSheet","TouchableOpacity","useHMSRoomStyleSheet","ChevronIcon","ThreeDotsIcon","Menu","ParticipantsGroupOptions","_ParticipantsGroupHeader","_ref","
|
|
1
|
+
{"version":3,"names":["React","View","Text","StyleSheet","TouchableOpacity","useHMSRoomStyleSheet","ChevronIcon","ThreeDotsIcon","Menu","ParticipantsGroupOptions","_ParticipantsGroupHeader","_ref","id","label","expanded","onBackPress","toggleExpanded","optionsVisible","setOptionsVisible","useState","hmsRoomStyles","theme","typography","container","borderColor","palette","border_bright","color","on_surface_medium","fontFamily","font_family","menu","backgroundColor","surface_default","show3Dots","showOptions","hideOptions","toggleGroupExpand","createElement","style","styles","expandedContainer","flexDirection","alignItems","marginRight","onPress","direction","controls","visible","onRequestClose","anchor","control","stack","expandedArrowIcon","create","paddingVertical","paddingHorizontal","justifyContent","fontSize","lineHeight","letterSpacing","borderBottomWidth","marginLeft","transform","rotateZ","borderWidth","borderRadius","ParticipantsGroupHeader","memo"],"sourceRoot":"../../../../src","sources":["components/Participants/ParticipantsGroupHeader.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B;AACA,SAASC,IAAI,EAAEC,IAAI,EAAEC,UAAU,EAAEC,gBAAgB,QAAQ,cAAc;AACvE;;AAEA,SAASC,oBA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AE,CAACC,MAAM,CAACW,OAAO,EAAErC,QAAQ,GAAG0B,MAAM,CAACa,iBAAiB,GAAG,IAAI,CAAE;IACpER,OAAO,EAAER;EAAkB,gBAE3BrC,KAAA,CAAAsC,aAAA,CAAChC,WAAW;IAACwC,SAAS,EAAC;EAAM,CAAE,CACf,CAAC,GACjB,IACA,CACF,CAAC;AAEX,CAAC;AAED,MAAMN,MAAM,GAAGrC,UAAU,CAACmD,MAAM,CAAC;EAC/B/B,SAAS,EAAE;IACTmB,aAAa,EAAE,KAAK;IACpBa,eAAe,EAAE,EAAE;IACnBC,iBAAiB,EAAE,EAAE;IACrBC,cAAc,EAAE;EAClB,CAAC;EACD5C,KAAK,EAAE;IACL6C,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,aAAa,EAAE;EACjB,CAAC;EACDnB,iBAAiB,EAAE;IACjBoB,iBAAiB,EAAE;EACrB,CAAC;EACDd,QAAQ,EAAE;IACRL,aAAa,EAAE;EACjB,CAAC;EACDS,OAAO,EAAE;IACPW,UAAU,EAAE;EACd,CAAC;EACDT,iBAAiB,EAAE;IACjBU,SAAS,EAAE,CAAC;MAAEC,OAAO,EAAE;IAAS,CAAC;EACnC,CAAC;EACDjC,IAAI,EAAE;IACJkC,WAAW,EAAE,CAAC;IACdC,YAAY,EAAE,CAAC;IACflC,eAAe,EAAE;EACnB;AACF,CAAC,CAAC;AAEF,OAAO,MAAMmC,uBAAuB,gBAAGnE,KAAK,CAACoE,IAAI,CAAC1D,wBAAwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","View","useHMSRoomStyleSheet","HandIcon","ParticipantsItemOption","_ParticipantsGroupOptions","hmsRoomStyles","theme","divider","backgroundColor","palette","border_bright","handleBringOnStagePress","handleLowerHandPress","handleRemoveParticipantPress","createElement","Fragment","id","icon","style","width","height","label","pressHandler","isActive","hide","map","item","idx","isFirst","key","styles","onPress","create","ParticipantsGroupOptions","memo"],"sourceRoot":"../../../../src","sources":["components/Participants/ParticipantsGroupOptions.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAE/C,SAASC,oBAAoB,QAAQ,kBAAkB;
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","useHMSRoomStyleSheet","HandIcon","ParticipantsItemOption","_ParticipantsGroupOptions","hmsRoomStyles","theme","divider","backgroundColor","palette","border_bright","handleBringOnStagePress","handleLowerHandPress","handleRemoveParticipantPress","createElement","Fragment","id","icon","style","width","height","label","pressHandler","isActive","hide","map","item","idx","isFirst","key","styles","onPress","create","ParticipantsGroupOptions","memo"],"sourceRoot":"../../../../src","sources":["components/Participants/ParticipantsGroupOptions.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAE/C,SAASC,oBAAoB,QAAQ,kBAAkB;AACvD,SAASC,QAAQ,QAAQ,aAAa;AACtC,SAASC,sBAAsB,QAAQ,0BAA0B;AAMjE,MAAMC,yBAEL,GAAGA,CAAA,KAAM;EACR,MAAMC,aAAa,GAAGJ,oBAAoB,CAAEK,KAAK,KAAM;IACrDC,OAAO,EAAE;MACPC,eAAe,EAAEF,KAAK,CAACG,OAAO,CAACC;IACjC;EACF,CAAC,CAAC,CAAC;EAEH,MAAMC,uBAAuB,GAAGA,CAAA,KAAM,CAAC,CAAC;EAExC,MAAMC,oBAAoB,GAAGA,CAAA,KAAM,CAAC,CAAC;EAErC,MAAMC,4BAA4B,GAAGA,CAAA,KAAM,CAAC,CAAC;EAE7C,oBACEf,KAAA,CAAAgB,aAAA,CAAAhB,KAAA,CAAAiB,QAAA,QACG,CACC;IACEC,EAAE,EAAE,gBAAgB;IACpBC,IAAI,eAAEnB,KAAA,CAAAgB,aAAA,CAACZ,QAAQ;MAACgB,KAAK,EAAE;QAAEC,KAAK,EAAE,EA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AACT;IAAK,CACjB,CACa,CAAC;EAErB,CAAC,CACD,CAAC;AAEP,CAAC;AAED,MAAMa,MAAM,GAAG/B,UAAU,CAACiC,MAAM,CAAC;EAC/BzB,OAAO,EAAE;IACPa,MAAM,EAAE,CAAC;IACTD,KAAK,EAAE;EACT;AACF,CAAC,CAAC;AAEF,OAAO,MAAMc,wBAAwB,gBAAGnC,KAAK,CAACoC,IAAI,CAAC9B,yBAAyB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
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 { isParticipantHostOrBroadcaster
|
|
4
|
+
import { isParticipantHostOrBroadcaster } from '../../utils/functions';
|
|
5
5
|
import { useHMSRoomStyleSheet } from '../../hooks-util';
|
|
6
6
|
import { HandIcon, NetworkQualityIcon, ThreeDotsIcon } from '../../Icons';
|
|
7
7
|
import { Menu } from '../MenuModal';
|
|
@@ -9,7 +9,8 @@ import { ParticipantsItemOptions } from './ParticipantsItemOptions';
|
|
|
9
9
|
const _ParticipantsItem = _ref => {
|
|
10
10
|
var _peer$networkQuality;
|
|
11
11
|
let {
|
|
12
|
-
data
|
|
12
|
+
data: peer,
|
|
13
|
+
groupId
|
|
13
14
|
} = _ref;
|
|
14
15
|
const selfHostOrBroadcaster = useSelector(state => {
|
|
15
16
|
var _state$hmsStates$loca;
|
|
@@ -33,20 +34,16 @@ const _ParticipantsItem = _ref => {
|
|
|
33
34
|
borderColor: theme.palette.border_bright
|
|
34
35
|
}
|
|
35
36
|
}));
|
|
36
|
-
const show3Dots = selfHostOrBroadcaster && !
|
|
37
|
+
const show3Dots = selfHostOrBroadcaster && !peer.isLocal;
|
|
37
38
|
const showOptions = () => setOptionsVisible(true);
|
|
38
39
|
const hideOptions = () => setOptionsVisible(false);
|
|
39
|
-
const isLast = data.type === 'LAST_ITEM';
|
|
40
|
-
const peer = data.data;
|
|
41
|
-
const isHandRaised = parseMetadata(peer.metadata).isHandRaised;
|
|
42
|
-
const [_peerID, peerGroupName] = data.key.split('--');
|
|
43
40
|
return /*#__PURE__*/React.createElement(View, {
|
|
44
|
-
style:
|
|
41
|
+
style: styles.container
|
|
45
42
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
46
43
|
style: [styles.label, hmsRoomStyles.label]
|
|
47
|
-
},
|
|
44
|
+
}, peer.name, peer.isLocal ? ' (You)' : null), /*#__PURE__*/React.createElement(View, {
|
|
48
45
|
style: styles.controls
|
|
49
|
-
}, isHandRaised ? /*#__PURE__*/React.createElement(View, {
|
|
46
|
+
}, peer.isHandRaised ? /*#__PURE__*/React.createElement(View, {
|
|
50
47
|
style: [styles.control, styles.iconWrapper, hmsRoomStyles.iconWrapper]
|
|
51
48
|
}, /*#__PURE__*/React.createElement(HandIcon, {
|
|
52
49
|
style: styles.handIcon
|
|
@@ -71,14 +68,14 @@ const _ParticipantsItem = _ref => {
|
|
|
71
68
|
}, /*#__PURE__*/React.createElement(ParticipantsItemOptions, {
|
|
72
69
|
peer: peer,
|
|
73
70
|
onItemPress: hideOptions,
|
|
74
|
-
insideHandRaiseGroup:
|
|
71
|
+
insideHandRaiseGroup: groupId === 'hand-raised'
|
|
75
72
|
})) : null));
|
|
76
73
|
};
|
|
77
74
|
const styles = StyleSheet.create({
|
|
78
75
|
container: {
|
|
79
76
|
flexDirection: 'row',
|
|
80
|
-
borderLeftWidth: 1,
|
|
81
|
-
borderRightWidth: 1,
|
|
77
|
+
// borderLeftWidth: 1,
|
|
78
|
+
// borderRightWidth: 1,
|
|
82
79
|
padding: 16,
|
|
83
80
|
justifyContent: 'space-between'
|
|
84
81
|
},
|
|
@@ -87,11 +84,6 @@ const styles = StyleSheet.create({
|
|
|
87
84
|
lineHeight: 20,
|
|
88
85
|
letterSpacing: 0.1
|
|
89
86
|
},
|
|
90
|
-
lastItemContainer: {
|
|
91
|
-
borderBottomWidth: 1,
|
|
92
|
-
borderBottomLeftRadius: 8,
|
|
93
|
-
borderBottomRightRadius: 8
|
|
94
|
-
},
|
|
95
87
|
controls: {
|
|
96
88
|
flexDirection: 'row'
|
|
97
89
|
},
|