@100mslive/react-native-room-kit 1.2.3 → 1.3.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 +15 -14
- package/lib/commonjs/HMSContainer.js +1 -2
- package/lib/commonjs/HMSContainer.js.map +1 -1
- package/lib/commonjs/HMSInstanceSetup.js +1 -2
- package/lib/commonjs/HMSInstanceSetup.js.map +1 -1
- package/lib/commonjs/HMSPrebuilt.js +1 -2
- package/lib/commonjs/HMSPrebuilt.js.map +1 -1
- package/lib/commonjs/HMSRoomSetup.js +1 -2
- package/lib/commonjs/HMSRoomSetup.js.map +1 -1
- package/lib/commonjs/components/AnimatedFooter.js +1 -2
- package/lib/commonjs/components/AnimatedFooter.js.map +1 -1
- package/lib/commonjs/components/AnimatedHLSFooter.js +1 -2
- package/lib/commonjs/components/AnimatedHLSFooter.js.map +1 -1
- package/lib/commonjs/components/AnimatedHeader.js +1 -2
- package/lib/commonjs/components/AnimatedHeader.js.map +1 -1
- package/lib/commonjs/components/AvatarView.js +1 -2
- package/lib/commonjs/components/AvatarView.js.map +1 -1
- package/lib/commonjs/components/BackButton.js +1 -2
- package/lib/commonjs/components/BackButton.js.map +1 -1
- package/lib/commonjs/components/BottomSheet.js +1 -2
- package/lib/commonjs/components/BottomSheet.js.map +1 -1
- package/lib/commonjs/components/CaptionsModalContent.js +1 -2
- package/lib/commonjs/components/CaptionsModalContent.js.map +1 -1
- package/lib/commonjs/components/ChangeNameModalContent.js +1 -2
- package/lib/commonjs/components/ChangeNameModalContent.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterBottomSheet.js +1 -2
- package/lib/commonjs/components/Chat/ChatFilterBottomSheet.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js +1 -2
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js +1 -2
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterItem.js +1 -2
- package/lib/commonjs/components/Chat/ChatFilterItem.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterView.js +1 -2
- package/lib/commonjs/components/Chat/ChatFilterView.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatList.js +1 -2
- package/lib/commonjs/components/Chat/ChatList.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatMessage.js +1 -2
- package/lib/commonjs/components/Chat/ChatMessage.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatMoreActionsModal.js +1 -2
- package/lib/commonjs/components/Chat/ChatMoreActionsModal.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatMoreActionsSheetView.js +1 -2
- package/lib/commonjs/components/Chat/ChatMoreActionsSheetView.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatMoreActionsView.js +1 -2
- package/lib/commonjs/components/Chat/ChatMoreActionsView.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatPaused.js +1 -2
- package/lib/commonjs/components/Chat/ChatPaused.js.map +1 -1
- package/lib/commonjs/components/Chat/MessageOptionsBottomSheet.js +1 -2
- package/lib/commonjs/components/Chat/MessageOptionsBottomSheet.js.map +1 -1
- package/lib/commonjs/components/Chat/MessageOptionsBottomSheetView.js +1 -2
- package/lib/commonjs/components/Chat/MessageOptionsBottomSheetView.js.map +1 -1
- package/lib/commonjs/components/Chat/MessageOptionsView.js +1 -2
- package/lib/commonjs/components/Chat/MessageOptionsView.js.map +1 -1
- package/lib/commonjs/components/Chat/PeerBlockedFromChat.js +1 -2
- package/lib/commonjs/components/Chat/PeerBlockedFromChat.js.map +1 -1
- package/lib/commonjs/components/Chat/PinnedMessages.js +1 -2
- package/lib/commonjs/components/Chat/PinnedMessages.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js +1 -2
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsHeader.js +1 -2
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsHeader.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js +1 -2
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatView.js +1 -2
- package/lib/commonjs/components/ChatAndParticipants/ChatView.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ParticipantsView.js +1 -2
- package/lib/commonjs/components/ChatAndParticipants/ParticipantsView.js.map +1 -1
- package/lib/commonjs/components/CreatePoll.js +1 -2
- package/lib/commonjs/components/CreatePoll.js.map +1 -1
- package/lib/commonjs/components/DefaultModal.js.map +1 -1
- package/lib/commonjs/components/DisplayView.js +1 -2
- package/lib/commonjs/components/DisplayView.js.map +1 -1
- package/lib/commonjs/components/EndRoomModal.js +1 -2
- package/lib/commonjs/components/EndRoomModal.js.map +1 -1
- package/lib/commonjs/components/EndRoomModalContent.js +1 -2
- package/lib/commonjs/components/EndRoomModalContent.js.map +1 -1
- package/lib/commonjs/components/Footer.js +1 -2
- package/lib/commonjs/components/Footer.js.map +1 -1
- package/lib/commonjs/components/FullScreenVideoView.js +1 -2
- package/lib/commonjs/components/FullScreenVideoView.js.map +1 -1
- package/lib/commonjs/components/FullScreenWhiteboard.js +1 -2
- package/lib/commonjs/components/FullScreenWhiteboard.js.map +1 -1
- package/lib/commonjs/components/GridView.js +2 -3
- package/lib/commonjs/components/GridView.js.map +1 -1
- package/lib/commonjs/components/HLSAnimatedDescriptionPane.js +1 -2
- package/lib/commonjs/components/HLSAnimatedDescriptionPane.js.map +1 -1
- package/lib/commonjs/components/HLSChatFooterView.js +1 -2
- package/lib/commonjs/components/HLSChatFooterView.js.map +1 -1
- package/lib/commonjs/components/HLSChatHeaderView.js +1 -2
- package/lib/commonjs/components/HLSChatHeaderView.js.map +1 -1
- package/lib/commonjs/components/HLSChatMessages.js +1 -2
- package/lib/commonjs/components/HLSChatMessages.js.map +1 -1
- package/lib/commonjs/components/HLSChatView.js +1 -2
- package/lib/commonjs/components/HLSChatView.js.map +1 -1
- package/lib/commonjs/components/HLSClosedCaptionControl.js +1 -2
- package/lib/commonjs/components/HLSClosedCaptionControl.js.map +1 -1
- package/lib/commonjs/components/HLSDescriptionPane.js +1 -2
- package/lib/commonjs/components/HLSDescriptionPane.js.map +1 -1
- package/lib/commonjs/components/HLSDescriptionPaneHeader.js +1 -2
- package/lib/commonjs/components/HLSDescriptionPaneHeader.js.map +1 -1
- package/lib/commonjs/components/HLSFooter.js +1 -2
- package/lib/commonjs/components/HLSFooter.js.map +1 -1
- package/lib/commonjs/components/HLSHandRaiseButton.js +1 -2
- package/lib/commonjs/components/HLSHandRaiseButton.js.map +1 -1
- package/lib/commonjs/components/HLSManageChatTextInput.js +1 -2
- package/lib/commonjs/components/HLSManageChatTextInput.js.map +1 -1
- package/lib/commonjs/components/HLSNotifications.js +1 -2
- package/lib/commonjs/components/HLSNotifications.js.map +1 -1
- package/lib/commonjs/components/HLSPlayPauseControl.js +1 -2
- package/lib/commonjs/components/HLSPlayPauseControl.js.map +1 -1
- package/lib/commonjs/components/HLSPlayerControls.js +1 -2
- package/lib/commonjs/components/HLSPlayerControls.js.map +1 -1
- package/lib/commonjs/components/HLSRecordingStatusText.js +1 -2
- package/lib/commonjs/components/HLSRecordingStatusText.js.map +1 -1
- package/lib/commonjs/components/HLSRoomOptionsButton.js +1 -2
- package/lib/commonjs/components/HLSRoomOptionsButton.js.map +1 -1
- package/lib/commonjs/components/HLSSeekbackwardControl.js +1 -2
- package/lib/commonjs/components/HLSSeekbackwardControl.js.map +1 -1
- package/lib/commonjs/components/HLSSeekbar.js +1 -2
- package/lib/commonjs/components/HLSSeekbar.js.map +1 -1
- package/lib/commonjs/components/HLSSeekforwardControl.js +1 -2
- package/lib/commonjs/components/HLSSeekforwardControl.js.map +1 -1
- package/lib/commonjs/components/HLSStreamStartedTime.js +1 -2
- package/lib/commonjs/components/HLSStreamStartedTime.js.map +1 -1
- package/lib/commonjs/components/HMSBaseButton.js +1 -2
- package/lib/commonjs/components/HMSBaseButton.js.map +1 -1
- package/lib/commonjs/components/HMSChat.js +1 -2
- package/lib/commonjs/components/HMSChat.js.map +1 -1
- package/lib/commonjs/components/HMSDangerButton.js +1 -2
- package/lib/commonjs/components/HMSDangerButton.js.map +1 -1
- package/lib/commonjs/components/HMSHLSMessage.js +1 -2
- package/lib/commonjs/components/HMSHLSMessage.js.map +1 -1
- package/lib/commonjs/components/HMSHLSMessageList.js +1 -2
- package/lib/commonjs/components/HMSHLSMessageList.js.map +1 -1
- package/lib/commonjs/components/HMSHLSNotStarted.js +1 -2
- package/lib/commonjs/components/HMSHLSNotStarted.js.map +1 -1
- package/lib/commonjs/components/HMSHLSStreamLoading.js +1 -2
- package/lib/commonjs/components/HMSHLSStreamLoading.js.map +1 -1
- package/lib/commonjs/components/HMSHandRaiseNotification.js +1 -2
- package/lib/commonjs/components/HMSHandRaiseNotification.js.map +1 -1
- package/lib/commonjs/components/HMSKeyboardAvoidingView.android.js +1 -2
- package/lib/commonjs/components/HMSKeyboardAvoidingView.android.js.map +1 -1
- package/lib/commonjs/components/HMSKeyboardAvoidingView.js +1 -2
- package/lib/commonjs/components/HMSKeyboardAvoidingView.js.map +1 -1
- package/lib/commonjs/components/HMSLiveIndicator.js +1 -2
- package/lib/commonjs/components/HMSLiveIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSLiveViewerCount.js +1 -2
- package/lib/commonjs/components/HMSLiveViewerCount.js.map +1 -1
- package/lib/commonjs/components/HMSLocalScreenshareNotification.js +1 -2
- package/lib/commonjs/components/HMSLocalScreenshareNotification.js.map +1 -1
- package/lib/commonjs/components/HMSLocalVideoView.js +1 -2
- package/lib/commonjs/components/HMSLocalVideoView.js.map +1 -1
- package/lib/commonjs/components/HMSManageAudioOutput.js +1 -2
- package/lib/commonjs/components/HMSManageAudioOutput.js.map +1 -1
- package/lib/commonjs/components/HMSManageCameraRotation.js +1 -2
- package/lib/commonjs/components/HMSManageCameraRotation.js.map +1 -1
- package/lib/commonjs/components/HMSManageLeave.js +1 -2
- package/lib/commonjs/components/HMSManageLeave.js.map +1 -1
- package/lib/commonjs/components/HMSManageLocalAudio.js +1 -2
- package/lib/commonjs/components/HMSManageLocalAudio.js.map +1 -1
- package/lib/commonjs/components/HMSManageLocalVideo.js +1 -2
- package/lib/commonjs/components/HMSManageLocalVideo.js.map +1 -1
- package/lib/commonjs/components/HMSManageRaiseHand.js +1 -2
- package/lib/commonjs/components/HMSManageRaiseHand.js.map +1 -1
- package/lib/commonjs/components/HMSManageVirtualBackground.js +1 -2
- package/lib/commonjs/components/HMSManageVirtualBackground.js.map +1 -1
- package/lib/commonjs/components/HMSMeetingEnded.js +1 -2
- package/lib/commonjs/components/HMSMeetingEnded.js.map +1 -1
- package/lib/commonjs/components/HMSNotification.js +1 -2
- package/lib/commonjs/components/HMSNotification.js.map +1 -1
- package/lib/commonjs/components/HMSNotifications.js +1 -2
- package/lib/commonjs/components/HMSNotifications.js.map +1 -1
- package/lib/commonjs/components/HMSOverlayChatView.js +1 -2
- package/lib/commonjs/components/HMSOverlayChatView.js.map +1 -1
- package/lib/commonjs/components/HMSOverlayMessageView.js +1 -2
- package/lib/commonjs/components/HMSOverlayMessageView.js.map +1 -1
- package/lib/commonjs/components/HMSPollsQuizzesNotification.js +1 -2
- package/lib/commonjs/components/HMSPollsQuizzesNotification.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewEditName.js +1 -2
- package/lib/commonjs/components/HMSPreviewEditName.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js +1 -2
- package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewJoinButton.js +1 -2
- package/lib/commonjs/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewNetworkQuality.js +1 -2
- package/lib/commonjs/components/HMSPreviewNetworkQuality.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewPeersList.js +1 -2
- package/lib/commonjs/components/HMSPreviewPeersList.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewSubtitle.js +1 -2
- package/lib/commonjs/components/HMSPreviewSubtitle.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewTile.js +1 -2
- package/lib/commonjs/components/HMSPreviewTile.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewTitle.js +1 -2
- package/lib/commonjs/components/HMSPreviewTitle.js.map +1 -1
- package/lib/commonjs/components/HMSPrimaryButton.js +1 -2
- package/lib/commonjs/components/HMSPrimaryButton.js.map +1 -1
- package/lib/commonjs/components/HMSReconnectingNotification.js +1 -2
- package/lib/commonjs/components/HMSReconnectingNotification.js.map +1 -1
- package/lib/commonjs/components/HMSRecordingIndicator.js +1 -2
- package/lib/commonjs/components/HMSRecordingIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSRoleChangeDeclinedNotification.js +1 -2
- package/lib/commonjs/components/HMSRoleChangeDeclinedNotification.js.map +1 -1
- package/lib/commonjs/components/HMSRoomOptions.js +1 -2
- package/lib/commonjs/components/HMSRoomOptions.js.map +1 -1
- package/lib/commonjs/components/HMSSecondaryButton.js +1 -2
- package/lib/commonjs/components/HMSSecondaryButton.js.map +1 -1
- package/lib/commonjs/components/HMSSendMessageInput.js +1 -2
- package/lib/commonjs/components/HMSSendMessageInput.js.map +1 -1
- package/lib/commonjs/components/HMSTerminalErrorNotification.js +1 -2
- package/lib/commonjs/components/HMSTerminalErrorNotification.js.map +1 -1
- package/lib/commonjs/components/HMSTextInput.js +1 -2
- package/lib/commonjs/components/HMSTextInput.js.map +1 -1
- package/lib/commonjs/components/HMSVideoView.js +1 -2
- package/lib/commonjs/components/HMSVideoView.js.map +1 -1
- package/lib/commonjs/components/Header.js +1 -2
- package/lib/commonjs/components/Header.js.map +1 -1
- package/lib/commonjs/components/LeaderboardEntry.js +1 -2
- package/lib/commonjs/components/LeaderboardEntry.js.map +1 -1
- package/lib/commonjs/components/LeaveRoomBottomSheet.js +1 -2
- package/lib/commonjs/components/LeaveRoomBottomSheet.js.map +1 -1
- package/lib/commonjs/components/LocalPeerRegularVideoView.js +1 -2
- package/lib/commonjs/components/LocalPeerRegularVideoView.js.map +1 -1
- package/lib/commonjs/components/LocalPeerScreenshareView.js +1 -2
- package/lib/commonjs/components/LocalPeerScreenshareView.js.map +1 -1
- package/lib/commonjs/components/Meeting.js +1 -2
- package/lib/commonjs/components/Meeting.js.map +1 -1
- package/lib/commonjs/components/MeetingScreenContent.js +1 -2
- package/lib/commonjs/components/MeetingScreenContent.js.map +1 -1
- package/lib/commonjs/components/MiniView.js +1 -2
- package/lib/commonjs/components/MiniView.js.map +1 -1
- package/lib/commonjs/components/Modals.js +1 -2
- package/lib/commonjs/components/Modals.js.map +1 -1
- package/lib/commonjs/components/OverlayContainer.js +1 -2
- package/lib/commonjs/components/OverlayContainer.js.map +1 -1
- package/lib/commonjs/components/OverlayedViews.js +1 -2
- package/lib/commonjs/components/OverlayedViews.js.map +1 -1
- package/lib/commonjs/components/PIPView.js +1 -2
- package/lib/commonjs/components/PIPView.js.map +1 -1
- package/lib/commonjs/components/PaginationDots.js +1 -2
- package/lib/commonjs/components/PaginationDots.js.map +1 -1
- package/lib/commonjs/components/Participants/MultiRoleParticipantsList.js +1 -2
- package/lib/commonjs/components/Participants/MultiRoleParticipantsList.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsAccordian.js +1 -2
- package/lib/commonjs/components/Participants/ParticipantsAccordian.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsAccordianExpanded.js +1 -2
- package/lib/commonjs/components/Participants/ParticipantsAccordianExpanded.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsGroupFooter.js +1 -2
- package/lib/commonjs/components/Participants/ParticipantsGroupFooter.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js +1 -2
- package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsGroupOptions.js +1 -2
- package/lib/commonjs/components/Participants/ParticipantsGroupOptions.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsItem.js +1 -2
- package/lib/commonjs/components/Participants/ParticipantsItem.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsItemOption.js +1 -2
- package/lib/commonjs/components/Participants/ParticipantsItemOption.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsItemOptions.js +1 -2
- package/lib/commonjs/components/Participants/ParticipantsItemOptions.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsList.js +1 -2
- package/lib/commonjs/components/Participants/ParticipantsList.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsListFooter.js +1 -2
- package/lib/commonjs/components/Participants/ParticipantsListFooter.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsSeachInput.js +1 -2
- package/lib/commonjs/components/Participants/ParticipantsSeachInput.js.map +1 -1
- package/lib/commonjs/components/ParticipantsCount.js +1 -2
- package/lib/commonjs/components/ParticipantsCount.js.map +1 -1
- package/lib/commonjs/components/PeerMinimizedView.js +1 -2
- package/lib/commonjs/components/PeerMinimizedView.js.map +1 -1
- package/lib/commonjs/components/PeerRTCStatsContainer.js +1 -2
- package/lib/commonjs/components/PeerRTCStatsContainer.js.map +1 -1
- package/lib/commonjs/components/PeerRTCStatsView.js +1 -1
- package/lib/commonjs/components/PeerRTCStatsView.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/AvatarView.js +1 -2
- package/lib/commonjs/components/PeerVideoTile/AvatarView.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/HMSFullScreenButton.js +1 -2
- package/lib/commonjs/components/PeerVideoTile/HMSFullScreenButton.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/HMSPinchGesture.js +1 -2
- package/lib/commonjs/components/PeerVideoTile/HMSPinchGesture.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerAudioIndicator.js +1 -2
- package/lib/commonjs/components/PeerVideoTile/PeerAudioIndicator.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js +1 -2
- package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js +1 -2
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js +1 -2
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/VideoView.js +1 -2
- package/lib/commonjs/components/PeerVideoTile/VideoView.js.map +1 -1
- package/lib/commonjs/components/PollAndQuizQuestionResponseCard.js +1 -2
- package/lib/commonjs/components/PollAndQuizQuestionResponseCard.js.map +1 -1
- package/lib/commonjs/components/PollAndQuizQuestionResponseCards.js +1 -2
- package/lib/commonjs/components/PollAndQuizQuestionResponseCards.js.map +1 -1
- package/lib/commonjs/components/PollAndQuizSheetScreen.js +1 -2
- package/lib/commonjs/components/PollAndQuizSheetScreen.js.map +1 -1
- package/lib/commonjs/components/PollAndQuizVoting.js +1 -2
- package/lib/commonjs/components/PollAndQuizVoting.js.map +1 -1
- package/lib/commonjs/components/PollAndQuizzStateLabel.js +1 -2
- package/lib/commonjs/components/PollAndQuizzStateLabel.js.map +1 -1
- package/lib/commonjs/components/PollQDeleteConfirmationSheetView.js +1 -2
- package/lib/commonjs/components/PollQDeleteConfirmationSheetView.js.map +1 -1
- package/lib/commonjs/components/PollQuestion.js +1 -2
- package/lib/commonjs/components/PollQuestion.js.map +1 -1
- package/lib/commonjs/components/PollQuestionDeleteConfirmation.js +1 -2
- package/lib/commonjs/components/PollQuestionDeleteConfirmation.js.map +1 -1
- package/lib/commonjs/components/PollQuestions.js +1 -2
- package/lib/commonjs/components/PollQuestions.js.map +1 -1
- package/lib/commonjs/components/PollResponseProgressView.js +1 -2
- package/lib/commonjs/components/PollResponseProgressView.js.map +1 -1
- package/lib/commonjs/components/PollsAndQuizBottomSheet.js +1 -2
- package/lib/commonjs/components/PollsAndQuizBottomSheet.js.map +1 -1
- package/lib/commonjs/components/PollsAndQuizzesCard.js +1 -2
- package/lib/commonjs/components/PollsAndQuizzesCard.js.map +1 -1
- package/lib/commonjs/components/PollsAndQuizzesModalContent.js +1 -2
- package/lib/commonjs/components/PollsAndQuizzesModalContent.js.map +1 -1
- package/lib/commonjs/components/PollsConfigAndList.js +1 -2
- package/lib/commonjs/components/PollsConfigAndList.js.map +1 -1
- package/lib/commonjs/components/PressableIcon.js +1 -2
- package/lib/commonjs/components/PressableIcon.js.map +1 -1
- package/lib/commonjs/components/Preview.js +1 -2
- package/lib/commonjs/components/Preview.js.map +1 -1
- package/lib/commonjs/components/PreviewForRoleChangeModal.js +1 -2
- package/lib/commonjs/components/PreviewForRoleChangeModal.js.map +1 -1
- package/lib/commonjs/components/PreviousPollsAndQuizzesList.js +1 -2
- package/lib/commonjs/components/PreviousPollsAndQuizzesList.js.map +1 -1
- package/lib/commonjs/components/QuizEndOptionsView.js +1 -2
- package/lib/commonjs/components/QuizEndOptionsView.js.map +1 -1
- package/lib/commonjs/components/QuizLeaderboardEntriesScreen.js +1 -2
- package/lib/commonjs/components/QuizLeaderboardEntriesScreen.js.map +1 -1
- package/lib/commonjs/components/QuizLeaderboardScreen.js +1 -2
- package/lib/commonjs/components/QuizLeaderboardScreen.js.map +1 -1
- package/lib/commonjs/components/QuizLeaderboardSummary.js +1 -2
- package/lib/commonjs/components/QuizLeaderboardSummary.js.map +1 -1
- package/lib/commonjs/components/ReconnectionView.js +1 -2
- package/lib/commonjs/components/ReconnectionView.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalContent.js +1 -2
- package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/StatusBar.js +1 -2
- package/lib/commonjs/components/StatusBar.js.map +1 -1
- package/lib/commonjs/components/StopRecordingModalContent.js +1 -2
- package/lib/commonjs/components/StopRecordingModalContent.js.map +1 -1
- package/lib/commonjs/components/StreamingQualityModalContent.js +1 -2
- package/lib/commonjs/components/StreamingQualityModalContent.js.map +1 -1
- package/lib/commonjs/components/TilesContainer.js.map +1 -1
- package/lib/commonjs/components/UnmountAfterDelay.js +1 -2
- package/lib/commonjs/components/UnmountAfterDelay.js.map +1 -1
- package/lib/commonjs/components/VirtualBackgroundBottomSheet.js +1 -2
- package/lib/commonjs/components/VirtualBackgroundBottomSheet.js.map +1 -1
- package/lib/commonjs/components/VirtualBackgroundModalContent.js +103 -16
- package/lib/commonjs/components/VirtualBackgroundModalContent.js.map +1 -1
- package/lib/commonjs/components/VoterParticipationSummary.js +1 -2
- package/lib/commonjs/components/VoterParticipationSummary.js.map +1 -1
- package/lib/commonjs/components/WebrtcTranscriptOverlayView.js +1 -2
- package/lib/commonjs/components/WebrtcTranscriptOverlayView.js.map +1 -1
- package/lib/commonjs/components/WebrtcView.js +1 -2
- package/lib/commonjs/components/WebrtcView.js.map +1 -1
- package/lib/commonjs/components/WelcomeInMeeting.js +1 -2
- package/lib/commonjs/components/WelcomeInMeeting.js.map +1 -1
- package/lib/commonjs/components/Whiteboard.js +1 -2
- package/lib/commonjs/components/Whiteboard.js.map +1 -1
- package/lib/commonjs/components/WhiteboardContainer.js +1 -2
- package/lib/commonjs/components/WhiteboardContainer.js.map +1 -1
- package/lib/commonjs/components/WhiteboardFullScreenButton.js +1 -2
- package/lib/commonjs/components/WhiteboardFullScreenButton.js.map +1 -1
- package/lib/commonjs/hooks-sdk.js.map +1 -1
- package/lib/commonjs/hooks-util.js +13 -25
- package/lib/commonjs/hooks-util.js.map +1 -1
- package/lib/commonjs/redux/actions/index.js +1 -2
- package/lib/commonjs/redux/actions/index.js.map +1 -1
- package/lib/commonjs/redux/reducers/appState.js +1 -2
- package/lib/commonjs/redux/reducers/appState.js.map +1 -1
- package/lib/commonjs/redux/reducers/message.js +1 -2
- package/lib/commonjs/redux/reducers/message.js.map +1 -1
- package/lib/commonjs/redux/reducers/userState.js +1 -2
- package/lib/commonjs/redux/reducers/userState.js.map +1 -1
- package/lib/commonjs/utils/functions.js +1 -2
- package/lib/commonjs/utils/functions.js.map +1 -1
- package/lib/module/components/AnimatedFooter.js.map +1 -1
- package/lib/module/components/AnimatedHLSFooter.js.map +1 -1
- package/lib/module/components/AnimatedHeader.js.map +1 -1
- package/lib/module/components/Chat/PinnedMessages.js.map +1 -1
- package/lib/module/components/DefaultModal.js.map +1 -1
- package/lib/module/components/GridView.js +1 -1
- package/lib/module/components/GridView.js.map +1 -1
- package/lib/module/components/HLSAnimatedDescriptionPane.js.map +1 -1
- package/lib/module/components/HLSManageChatTextInput.js.map +1 -1
- package/lib/module/components/HMSBaseButton.js.map +1 -1
- package/lib/module/components/HMSKeyboardAvoidingView.android.js.map +1 -1
- package/lib/module/components/HMSKeyboardAvoidingView.js.map +1 -1
- package/lib/module/components/OverlayContainer.js.map +1 -1
- package/lib/module/components/PeerRTCStatsView.js +1 -1
- package/lib/module/components/PeerRTCStatsView.js.map +1 -1
- package/lib/module/components/PeerVideoTile/HMSPinchGesture.js.map +1 -1
- package/lib/module/components/TilesContainer.js.map +1 -1
- package/lib/module/components/VirtualBackgroundModalContent.js +102 -14
- package/lib/module/components/VirtualBackgroundModalContent.js.map +1 -1
- package/lib/module/hooks-sdk.js.map +1 -1
- package/lib/module/hooks-util.js +13 -25
- package/lib/module/hooks-util.js.map +1 -1
- package/lib/typescript/components/AnimatedFooter.d.ts +1 -0
- package/lib/typescript/components/AnimatedFooter.d.ts.map +1 -1
- package/lib/typescript/components/AnimatedHLSFooter.d.ts +3 -3
- package/lib/typescript/components/AnimatedHLSFooter.d.ts.map +1 -1
- package/lib/typescript/components/AnimatedHeader.d.ts +1 -0
- package/lib/typescript/components/AnimatedHeader.d.ts.map +1 -1
- package/lib/typescript/components/DefaultModal.d.ts +1 -0
- package/lib/typescript/components/DefaultModal.d.ts.map +1 -1
- package/lib/typescript/components/GridView.d.ts.map +1 -1
- package/lib/typescript/components/HLSAnimatedDescriptionPane.d.ts +1 -0
- package/lib/typescript/components/HLSAnimatedDescriptionPane.d.ts.map +1 -1
- package/lib/typescript/components/HMSBaseButton.d.ts.map +1 -1
- package/lib/typescript/components/HMSKeyboardAvoidingView.android.d.ts +3 -2
- package/lib/typescript/components/HMSKeyboardAvoidingView.android.d.ts.map +1 -1
- package/lib/typescript/components/HMSKeyboardAvoidingView.d.ts +3 -3
- package/lib/typescript/components/HMSKeyboardAvoidingView.d.ts.map +1 -1
- package/lib/typescript/components/OverlayContainer.d.ts +4 -1
- package/lib/typescript/components/OverlayContainer.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/HMSPinchGesture.d.ts +1 -0
- package/lib/typescript/components/PeerVideoTile/HMSPinchGesture.d.ts.map +1 -1
- package/lib/typescript/components/PressableIcon.d.ts +1 -1
- package/lib/typescript/components/PressableIcon.d.ts.map +1 -1
- package/lib/typescript/components/VirtualBackgroundModalContent.d.ts.map +1 -1
- package/lib/typescript/components/styles.d.ts +67 -67
- package/lib/typescript/hooks-util.d.ts +1 -1
- package/lib/typescript/hooks-util.d.ts.map +1 -1
- package/package.json +31 -24
- package/src/components/AnimatedFooter.tsx +1 -0
- package/src/components/AnimatedHLSFooter.tsx +3 -2
- package/src/components/AnimatedHeader.tsx +1 -0
- package/src/components/Chat/PinnedMessages.tsx +1 -1
- package/src/components/DefaultModal.tsx +1 -0
- package/src/components/GridView.tsx +7 -4
- package/src/components/HLSAnimatedDescriptionPane.tsx +1 -0
- package/src/components/HLSManageChatTextInput.tsx +1 -1
- package/src/components/HMSBaseButton.tsx +3 -1
- package/src/components/HMSKeyboardAvoidingView.android.tsx +3 -1
- package/src/components/HMSKeyboardAvoidingView.tsx +3 -2
- package/src/components/OverlayContainer.tsx +4 -1
- package/src/components/PeerRTCStatsView.tsx +1 -1
- package/src/components/PeerVideoTile/HMSPinchGesture.tsx +1 -0
- package/src/components/PressableIcon.tsx +1 -1
- package/src/components/TilesContainer.tsx +29 -11
- package/src/components/VirtualBackgroundModalContent.tsx +171 -17
- package/src/hooks-sdk.ts +10 -10
- package/src/hooks-util.ts +3 -18
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@100mslive/react-native-room-kit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"ai"
|
|
118
118
|
],
|
|
119
119
|
"repository": "https://github.com/100mslive/react-native-hms",
|
|
120
|
-
"author": "Yogesh
|
|
120
|
+
"author": "Yogesh Singh (https://www.100ms.live/)",
|
|
121
121
|
"license": "MIT",
|
|
122
122
|
"bugs": {
|
|
123
123
|
"url": "https://github.com/100mslive/react-native-hms/issues"
|
|
@@ -127,20 +127,16 @@
|
|
|
127
127
|
"registry": "https://registry.npmjs.org/"
|
|
128
128
|
},
|
|
129
129
|
"dependencies": {
|
|
130
|
-
"@100mslive/types-prebuilt": "
|
|
131
|
-
"@react-navigation/native": "^6.0.8",
|
|
132
|
-
"react-redux": "^7.2.4",
|
|
133
|
-
"redux": "^4.1.0"
|
|
130
|
+
"@100mslive/types-prebuilt": "0.12.12"
|
|
134
131
|
},
|
|
135
132
|
"devDependencies": {
|
|
136
|
-
"@100mslive/react-native-video-plugin": "1.
|
|
133
|
+
"@100mslive/react-native-video-plugin": "1.1.3",
|
|
137
134
|
"@commitlint/config-conventional": "^17.0.2",
|
|
138
135
|
"@evilmartians/lefthook": "^1.2.2",
|
|
139
136
|
"@react-native-community/eslint-config": "^3.0.2",
|
|
140
137
|
"@release-it/conventional-changelog": "^5.0.0",
|
|
141
138
|
"@types/jest": "^28.1.2",
|
|
142
|
-
"@types/react": "
|
|
143
|
-
"@types/react-native": "^0.64.5",
|
|
139
|
+
"@types/react": "^18.3.1",
|
|
144
140
|
"commitlint": "^17.0.2",
|
|
145
141
|
"del-cli": "^5.0.0",
|
|
146
142
|
"eslint": "^8.4.1",
|
|
@@ -149,35 +145,46 @@
|
|
|
149
145
|
"jest": "^28.1.1",
|
|
150
146
|
"pod-install": "^0.1.0",
|
|
151
147
|
"prettier": "^2.0.5",
|
|
152
|
-
"react": "18.
|
|
153
|
-
"react-native": "0.
|
|
148
|
+
"react": "18.3.1",
|
|
149
|
+
"react-native": "0.77.3",
|
|
154
150
|
"react-native-builder-bob": "^0.21.2",
|
|
155
151
|
"react-native-image-picker": "^7.1.2",
|
|
156
152
|
"release-it": "^15.0.0",
|
|
157
153
|
"typescript": "^5.0.2"
|
|
158
154
|
},
|
|
159
155
|
"peerDependencies": {
|
|
160
|
-
"@100mslive/react-native-hms": "1.
|
|
161
|
-
"@react-native-community/blur": "^4.
|
|
162
|
-
"@react-native-masked-view/masked-view": "^0.
|
|
163
|
-
"@
|
|
164
|
-
"
|
|
156
|
+
"@100mslive/react-native-hms": "1.12.1",
|
|
157
|
+
"@react-native-community/blur": "^4.4.0",
|
|
158
|
+
"@react-native-masked-view/masked-view": "^0.3.0",
|
|
159
|
+
"@react-navigation/native": "^6.1.0",
|
|
160
|
+
"@shopify/flash-list": "^1.7.0",
|
|
161
|
+
"lottie-react-native": ">=7.0.0",
|
|
165
162
|
"react": "*",
|
|
166
|
-
"react-native": "
|
|
167
|
-
"react-native-gesture-handler": "
|
|
168
|
-
"react-native-linear-gradient": "^2.
|
|
163
|
+
"react-native": ">=0.77.3",
|
|
164
|
+
"react-native-gesture-handler": ">=2.22.0",
|
|
165
|
+
"react-native-linear-gradient": "^2.8.0",
|
|
169
166
|
"react-native-modal": "^13.0.1",
|
|
170
|
-
"react-native-reanimated": ">=
|
|
171
|
-
"react-native-safe-area-context": "^
|
|
167
|
+
"react-native-reanimated": ">=3.0.0",
|
|
168
|
+
"react-native-safe-area-context": "^5.0.0",
|
|
172
169
|
"react-native-simple-toast": "^1.1.3",
|
|
173
|
-
"react-native-webview": "^13.
|
|
170
|
+
"react-native-webview": "^13.12.0",
|
|
171
|
+
"react-redux": "^8.0.0",
|
|
172
|
+
"redux": "^4.2.0"
|
|
174
173
|
},
|
|
175
174
|
"additionalDependencies": {
|
|
176
|
-
"@100mslive/react-native-video-plugin": "1.
|
|
175
|
+
"@100mslive/react-native-video-plugin": "1.1.0",
|
|
177
176
|
"react-native-image-picker": "^7.1.2"
|
|
178
177
|
},
|
|
178
|
+
"overrides": {
|
|
179
|
+
"fast-xml-parser": "^5.3.4",
|
|
180
|
+
"vm2": ">=3.10.2",
|
|
181
|
+
"node-forge": ">=1.3.2"
|
|
182
|
+
},
|
|
179
183
|
"resolutions": {
|
|
180
|
-
"@types/react": "
|
|
184
|
+
"@types/react": "^18.3.1",
|
|
185
|
+
"fast-xml-parser": "^5.3.4",
|
|
186
|
+
"vm2": ">=3.10.2",
|
|
187
|
+
"node-forge": ">=1.3.2"
|
|
181
188
|
},
|
|
182
189
|
"engines": {
|
|
183
190
|
"node": ">= 16.0.0"
|
|
@@ -4,13 +4,14 @@ import Animated, {
|
|
|
4
4
|
interpolate,
|
|
5
5
|
useAnimatedStyle,
|
|
6
6
|
} from 'react-native-reanimated';
|
|
7
|
-
import type { SharedValue } from 'react-native-reanimated';
|
|
7
|
+
import type { SharedValue, AnimatedStyle } from 'react-native-reanimated';
|
|
8
8
|
|
|
9
9
|
import { useFooterHeight } from './Footer';
|
|
10
10
|
|
|
11
11
|
interface AnimatedHLSFooterProps {
|
|
12
12
|
offset: SharedValue<number>;
|
|
13
|
-
style?: StyleProp<
|
|
13
|
+
style?: StyleProp<AnimatedStyle<ViewStyle>>;
|
|
14
|
+
children?: React.ReactNode;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
export const AnimatedHLSFooter: React.FC<AnimatedHLSFooterProps> = ({
|
|
@@ -286,7 +286,7 @@ export const _PinnedMessages: React.FC<PinnedMessagesProps> = ({
|
|
|
286
286
|
const _keyExtractor = React.useCallback((item: PinnedMessage) => item.id, []);
|
|
287
287
|
|
|
288
288
|
const _onContentSizeChange = React.useCallback(
|
|
289
|
-
(_w, _h) => {
|
|
289
|
+
(_w: number, _h: number) => {
|
|
290
290
|
listRef.current?.scrollToOffset({
|
|
291
291
|
offset: listHeight * selectedPinnedMessageIndexRef.current,
|
|
292
292
|
animated: false,
|
|
@@ -11,6 +11,7 @@ import { CloseIcon } from '../Icons';
|
|
|
11
11
|
import { useIsLandscapeOrientation } from '../utils/dimension';
|
|
12
12
|
|
|
13
13
|
export interface DefaultModalProps {
|
|
14
|
+
children?: React.ReactNode;
|
|
14
15
|
modalVisible: boolean;
|
|
15
16
|
setModalVisible: any;
|
|
16
17
|
animationIn?: SupportedAnimation;
|
|
@@ -227,7 +227,10 @@ const RegularTiles = React.forwardRef<
|
|
|
227
227
|
|
|
228
228
|
const isLandscapeOrientation = useIsLandscapeOrientation();
|
|
229
229
|
|
|
230
|
-
const _keyExtractor = React.useCallback(
|
|
230
|
+
const _keyExtractor = React.useCallback(
|
|
231
|
+
(item: PeerTrackNode[]) => item[0]?.id || '',
|
|
232
|
+
[]
|
|
233
|
+
);
|
|
231
234
|
|
|
232
235
|
const _handleViewableItemsChanged = React.useCallback(
|
|
233
236
|
(info: { viewableItems: ViewToken[]; changed: ViewToken[] }) => {
|
|
@@ -244,7 +247,7 @@ const RegularTiles = React.forwardRef<
|
|
|
244
247
|
);
|
|
245
248
|
|
|
246
249
|
const _renderItem = React.useCallback(
|
|
247
|
-
({ item }) => {
|
|
250
|
+
({ item }: { item: PeerTrackNode[] }) => {
|
|
248
251
|
return (
|
|
249
252
|
<TilesContainer
|
|
250
253
|
onPeerTileMorePress={onPeerTileMorePress}
|
|
@@ -310,7 +313,7 @@ const ScreenshareTiles = React.forwardRef<
|
|
|
310
313
|
(state: RootState) => state.app.screensharePeerTrackNodes
|
|
311
314
|
);
|
|
312
315
|
|
|
313
|
-
const _keyExtractor = React.useCallback((item) => item.id, []);
|
|
316
|
+
const _keyExtractor = React.useCallback((item: PeerTrackNode) => item.id, []);
|
|
314
317
|
|
|
315
318
|
const _handleViewableItemsChanged = React.useCallback(
|
|
316
319
|
(info: { viewableItems: ViewToken[]; changed: ViewToken[] }) => {
|
|
@@ -328,7 +331,7 @@ const ScreenshareTiles = React.forwardRef<
|
|
|
328
331
|
const tileWidth = safeWidth;
|
|
329
332
|
|
|
330
333
|
const _renderItem = React.useCallback(
|
|
331
|
-
({ item }) => {
|
|
334
|
+
({ item }: { item: PeerTrackNode }) => {
|
|
332
335
|
return (
|
|
333
336
|
<Tile
|
|
334
337
|
height={'100%'}
|
|
@@ -39,7 +39,7 @@ export const HLSManageChatTextInput = () => {
|
|
|
39
39
|
const keyboardAvoidingStyles = React.useMemo(
|
|
40
40
|
() => ({
|
|
41
41
|
active: { width: chatWrapperConstraints.width - 32 },
|
|
42
|
-
inactive: { width: '100%' },
|
|
42
|
+
inactive: { width: '100%' as const },
|
|
43
43
|
}),
|
|
44
44
|
[chatWrapperConstraints]
|
|
45
45
|
);
|
|
@@ -45,7 +45,9 @@ export const HMSBaseButton: React.FC<HMSBaseButtonProps> = ({
|
|
|
45
45
|
wrapWithGestureDetector,
|
|
46
46
|
useTouchableOpacity,
|
|
47
47
|
}) => {
|
|
48
|
-
const Touchable = (
|
|
48
|
+
const Touchable = (
|
|
49
|
+
useTouchableOpacity ? TouchableOpacity : TouchableHighlight
|
|
50
|
+
) as React.ElementType;
|
|
49
51
|
|
|
50
52
|
const button = (
|
|
51
53
|
<Touchable
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
import Animated from 'react-native-reanimated'; // useDerivedValue, // useAnimatedStyle, // useAnimatedKeyboard,
|
|
4
|
+
import type { AnimatedStyle } from 'react-native-reanimated';
|
|
4
5
|
|
|
5
6
|
export interface HMSKeyboardAvoidingViewProps {
|
|
6
|
-
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
style?: StyleProp<AnimatedStyle<ViewStyle>>;
|
|
7
9
|
bottomOffset?: number;
|
|
8
10
|
}
|
|
9
11
|
|
|
@@ -6,12 +6,13 @@ import Animated, {
|
|
|
6
6
|
useAnimatedStyle,
|
|
7
7
|
useDerivedValue,
|
|
8
8
|
} from 'react-native-reanimated';
|
|
9
|
-
import type { SharedValue } from 'react-native-reanimated';
|
|
9
|
+
import type { SharedValue, AnimatedStyle } from 'react-native-reanimated';
|
|
10
10
|
|
|
11
11
|
import { useKeyboardState } from '../hooks-util';
|
|
12
12
|
|
|
13
13
|
export interface HMSKeyboardAvoidingViewProps {
|
|
14
|
-
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
style?: StyleProp<AnimatedStyle<ViewStyle>>;
|
|
15
16
|
styleWhenInactive?: ViewStyle;
|
|
16
17
|
styleWhenActive?: ViewStyle;
|
|
17
18
|
bottomOffset?: number | SharedValue<number>;
|
|
@@ -4,7 +4,9 @@ import type { StyleProp, ViewStyle } from 'react-native';
|
|
|
4
4
|
import type { AnimatedStyle } from 'react-native-reanimated';
|
|
5
5
|
import Animated from 'react-native-reanimated';
|
|
6
6
|
|
|
7
|
-
type OverlayContainerProps = {
|
|
7
|
+
type OverlayContainerProps = {
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
};
|
|
8
10
|
|
|
9
11
|
export const OverlayContainer: React.FC<OverlayContainerProps> & {
|
|
10
12
|
Overlay: typeof Overlay;
|
|
@@ -14,6 +16,7 @@ export const OverlayContainer: React.FC<OverlayContainerProps> & {
|
|
|
14
16
|
|
|
15
17
|
export type OverlayProps = {
|
|
16
18
|
animatedStyle?: StyleProp<AnimatedStyle<StyleProp<ViewStyle>>>;
|
|
19
|
+
children?: React.ReactNode;
|
|
17
20
|
};
|
|
18
21
|
|
|
19
22
|
const Overlay: React.FC<OverlayProps> = ({ children, animatedStyle }) => {
|
|
@@ -35,7 +35,7 @@ const PeerRTCStatsView: React.FC<PeerRTCStatsViewProps> = ({
|
|
|
35
35
|
return (
|
|
36
36
|
<View>
|
|
37
37
|
{videoTrackStats && 'layer' in videoTrackStats ? (
|
|
38
|
-
<Text style={styles.statsTitle}>{videoTrackStats.layer}</Text>
|
|
38
|
+
<Text style={styles.statsTitle}>{String(videoTrackStats.layer)}</Text>
|
|
39
39
|
) : null}
|
|
40
40
|
|
|
41
41
|
<Text style={styles.statsText}>
|
|
@@ -6,7 +6,7 @@ import { GestureDetector, Gesture } from 'react-native-gesture-handler';
|
|
|
6
6
|
import { useHMSRoomStyleSheet, useIsHLSViewer } from '../hooks-util';
|
|
7
7
|
|
|
8
8
|
interface PressableIconProps extends Omit<TouchableOpacityProps, 'children'> {
|
|
9
|
-
children
|
|
9
|
+
children?: React.ReactNode;
|
|
10
10
|
active?: boolean;
|
|
11
11
|
rounded?: boolean;
|
|
12
12
|
border?: boolean;
|
|
@@ -131,17 +131,29 @@ export { TilesContainer };
|
|
|
131
131
|
|
|
132
132
|
// Utility Functions
|
|
133
133
|
|
|
134
|
-
const oneTileStyle = { width: '100%', height: '100%' }; // 1 Column Layout
|
|
135
|
-
const twoTileStyle = { width: '100%', height: '49.7222%' }; // 1 Column Layout
|
|
136
|
-
const threeTileStyle = { width: '100%', height: '33%' }; // 1 Column Layout
|
|
134
|
+
const oneTileStyle = { width: '100%' as const, height: '100%' as const }; // 1 Column Layout
|
|
135
|
+
const twoTileStyle = { width: '100%' as const, height: '49.7222%' as const }; // 1 Column Layout
|
|
136
|
+
const threeTileStyle = { width: '100%' as const, height: '33%' as const }; // 1 Column Layout
|
|
137
137
|
|
|
138
|
-
const fourTileStyle = { width: '49.5%', height: '100%' }; // Grid Layout when Width and Height has no-correlatiom
|
|
139
|
-
const fiveAndSixTileStyle = { width: '49.5%', aspectRatio: 1 }; // Grid Layout when width and Height as fixed aspectRatio
|
|
138
|
+
const fourTileStyle = { width: '49.5%' as const, height: '100%' as const }; // Grid Layout when Width and Height has no-correlatiom
|
|
139
|
+
const fiveAndSixTileStyle = { width: '49.5%' as const, aspectRatio: 1 }; // Grid Layout when width and Height as fixed aspectRatio
|
|
140
140
|
|
|
141
|
-
const oneTileStyleLandscape = {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
141
|
+
const oneTileStyleLandscape = {
|
|
142
|
+
width: '100%' as const,
|
|
143
|
+
height: '100%' as const,
|
|
144
|
+
};
|
|
145
|
+
const twoTileStyleLandscape = {
|
|
146
|
+
width: '49.7222%' as const,
|
|
147
|
+
height: '100%' as const,
|
|
148
|
+
};
|
|
149
|
+
const threeTileStyleLandscape = {
|
|
150
|
+
width: '33%' as const,
|
|
151
|
+
height: '100%' as const,
|
|
152
|
+
};
|
|
153
|
+
const fourTileStyleLandscape = {
|
|
154
|
+
width: '50%' as const,
|
|
155
|
+
height: '50%' as const,
|
|
156
|
+
};
|
|
145
157
|
|
|
146
158
|
function computeTileWidthAndHeight(
|
|
147
159
|
totalTiles: number,
|
|
@@ -166,7 +178,10 @@ function computeTileWidthAndHeight(
|
|
|
166
178
|
twoTileStyleLandscape,
|
|
167
179
|
threeTileStyleLandscape,
|
|
168
180
|
fourTileStyleLandscape,
|
|
169
|
-
][Math.min(totalTiles - 1, 3)] || {
|
|
181
|
+
][Math.min(totalTiles - 1, 3)] || {
|
|
182
|
+
width: '100%' as const,
|
|
183
|
+
height: '100%' as const,
|
|
184
|
+
}
|
|
170
185
|
);
|
|
171
186
|
}
|
|
172
187
|
|
|
@@ -181,6 +196,9 @@ function computeTileWidthAndHeight(
|
|
|
181
196
|
threeTileStyle,
|
|
182
197
|
fourTileStyle,
|
|
183
198
|
fiveAndSixTileStyle,
|
|
184
|
-
][Math.min(totalTiles - 1, 4)] || {
|
|
199
|
+
][Math.min(totalTiles - 1, 4)] || {
|
|
200
|
+
width: '100%' as const,
|
|
201
|
+
height: '100%' as const,
|
|
202
|
+
}
|
|
185
203
|
);
|
|
186
204
|
}
|
|
@@ -8,11 +8,12 @@ import {
|
|
|
8
8
|
TouchableOpacity,
|
|
9
9
|
ActivityIndicator,
|
|
10
10
|
} from 'react-native';
|
|
11
|
-
import type { ImageRequireSource } from 'react-native';
|
|
11
|
+
import type { ImageRequireSource, ImageURISource } from 'react-native';
|
|
12
12
|
import { useDispatch, useSelector } from 'react-redux';
|
|
13
13
|
import { HMSTrackType, HMSVideoViewMode } from '@100mslive/react-native-hms';
|
|
14
14
|
import type { HMSVirtualBackgroundPlugin } from '../modules/videoPluginWrapper';
|
|
15
15
|
import { ImagePicker } from '../modules/imagePickerWrapper';
|
|
16
|
+
import { selectLayoutConfigForRole } from '../hooks-util-selectors';
|
|
16
17
|
|
|
17
18
|
import { BottomSheet } from './BottomSheet';
|
|
18
19
|
import {
|
|
@@ -54,6 +55,20 @@ export const VirtualBackgroundModalContent: React.FC<
|
|
|
54
55
|
);
|
|
55
56
|
const disableAutoPip = useDisableAutoPip();
|
|
56
57
|
|
|
58
|
+
// Get layout config for virtual background images
|
|
59
|
+
const layoutConfig = useSelector((state: RootState) => {
|
|
60
|
+
try {
|
|
61
|
+
const currentRole = state.hmsStates.localPeer?.role || null;
|
|
62
|
+
return selectLayoutConfigForRole(
|
|
63
|
+
state.hmsStates.layoutConfig,
|
|
64
|
+
currentRole
|
|
65
|
+
);
|
|
66
|
+
} catch (error) {
|
|
67
|
+
console.warn('[VirtualBackground] Error selecting layout config:', error);
|
|
68
|
+
return null;
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
|
|
57
72
|
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
58
73
|
semiBoldSurfaceHigh: {
|
|
59
74
|
color: theme.palette.on_surface_high,
|
|
@@ -181,16 +196,91 @@ export const VirtualBackgroundModalContent: React.FC<
|
|
|
181
196
|
try {
|
|
182
197
|
if (videoPlugin) {
|
|
183
198
|
setShowLoading(true);
|
|
199
|
+
console.log(
|
|
200
|
+
'[VirtualBackground] Setting background with asset:',
|
|
201
|
+
JSON.stringify(asset.src, null, 2)
|
|
202
|
+
);
|
|
203
|
+
|
|
204
|
+
// Check if it's a remote URL that needs dimensions
|
|
205
|
+
const isRemoteURL =
|
|
206
|
+
typeof asset.src === 'object' &&
|
|
207
|
+
'uri' in asset.src &&
|
|
208
|
+
asset.src.uri &&
|
|
209
|
+
(asset.src.uri.startsWith('http://') ||
|
|
210
|
+
asset.src.uri.startsWith('https://'));
|
|
211
|
+
|
|
212
|
+
let imageSource = asset.src;
|
|
213
|
+
|
|
214
|
+
// For remote URLs, get dimensions if not already present
|
|
215
|
+
if (isRemoteURL) {
|
|
216
|
+
const src = asset.src as ImageURISource;
|
|
217
|
+
|
|
218
|
+
// Check if width and height are already present
|
|
219
|
+
if (!src.width || !src.height) {
|
|
220
|
+
console.log(
|
|
221
|
+
'[VirtualBackground] Getting dimensions for remote URL:',
|
|
222
|
+
src.uri
|
|
223
|
+
);
|
|
224
|
+
|
|
225
|
+
try {
|
|
226
|
+
// Use Image.getSize to get dimensions from remote URL
|
|
227
|
+
const dimensions = await new Promise<{
|
|
228
|
+
width: number;
|
|
229
|
+
height: number;
|
|
230
|
+
}>((resolve, reject) => {
|
|
231
|
+
Image.getSize(
|
|
232
|
+
src.uri!,
|
|
233
|
+
(width, height) => resolve({ width, height }),
|
|
234
|
+
(error) => reject(error)
|
|
235
|
+
);
|
|
236
|
+
});
|
|
237
|
+
|
|
238
|
+
console.log('[VirtualBackground] Got dimensions:', dimensions);
|
|
239
|
+
|
|
240
|
+
// Create new source with dimensions
|
|
241
|
+
imageSource = {
|
|
242
|
+
uri: src.uri,
|
|
243
|
+
width: dimensions.width,
|
|
244
|
+
height: dimensions.height,
|
|
245
|
+
};
|
|
246
|
+
} catch (dimensionError) {
|
|
247
|
+
console.error(
|
|
248
|
+
'[VirtualBackground] Failed to get image dimensions:',
|
|
249
|
+
dimensionError
|
|
250
|
+
);
|
|
251
|
+
// Continue with original source, might still work
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
184
256
|
if (selectedVirtualBG === null) {
|
|
185
257
|
await videoPlugin.enable();
|
|
186
258
|
}
|
|
187
|
-
|
|
259
|
+
|
|
260
|
+
console.log(
|
|
261
|
+
'[VirtualBackground] Calling setBackground with source:',
|
|
262
|
+
JSON.stringify(imageSource, null, 2)
|
|
263
|
+
);
|
|
264
|
+
await videoPlugin.setBackground(imageSource);
|
|
265
|
+
|
|
188
266
|
setShowLoading(false);
|
|
189
267
|
dispatch(setSelectedVirtualBackground(asset.label));
|
|
268
|
+
console.log(
|
|
269
|
+
'[VirtualBackground] Successfully set background:',
|
|
270
|
+
asset.label
|
|
271
|
+
);
|
|
190
272
|
}
|
|
191
273
|
} catch (error) {
|
|
192
274
|
setShowLoading(false);
|
|
193
|
-
console.error(
|
|
275
|
+
console.error(
|
|
276
|
+
'[VirtualBackground] Error setting virtual background for:',
|
|
277
|
+
asset.label
|
|
278
|
+
);
|
|
279
|
+
console.error(
|
|
280
|
+
'[VirtualBackground] Asset source:',
|
|
281
|
+
JSON.stringify(asset.src, null, 2)
|
|
282
|
+
);
|
|
283
|
+
console.error('[VirtualBackground] Error details:', error);
|
|
194
284
|
}
|
|
195
285
|
};
|
|
196
286
|
|
|
@@ -201,6 +291,71 @@ export const VirtualBackgroundModalContent: React.FC<
|
|
|
201
291
|
localPeer.videoTrack.type === HMSTrackType.VIDEO &&
|
|
202
292
|
!isLocalVideoMuted;
|
|
203
293
|
|
|
294
|
+
// Memoize backgrounds from layout config
|
|
295
|
+
const configBackgrounds = React.useMemo(() => {
|
|
296
|
+
const bgArray: Array<{
|
|
297
|
+
label: string;
|
|
298
|
+
src: ImageRequireSource | { uri: string };
|
|
299
|
+
}> = [];
|
|
300
|
+
|
|
301
|
+
try {
|
|
302
|
+
// Add virtual background images from layout config
|
|
303
|
+
if (!layoutConfig) {
|
|
304
|
+
console.log('[VirtualBackground] No layout config available');
|
|
305
|
+
return bgArray;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
const virtualBackgroundConfig =
|
|
309
|
+
layoutConfig?.screens?.conferencing?.default?.elements
|
|
310
|
+
?.virtual_background;
|
|
311
|
+
|
|
312
|
+
if (!virtualBackgroundConfig) {
|
|
313
|
+
console.log(
|
|
314
|
+
'[VirtualBackground] No virtual background config in layout'
|
|
315
|
+
);
|
|
316
|
+
return bgArray;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
const backgroundMediaList =
|
|
320
|
+
virtualBackgroundConfig?.background_media || [];
|
|
321
|
+
|
|
322
|
+
console.log(
|
|
323
|
+
'[VirtualBackground] Found',
|
|
324
|
+
backgroundMediaList.length,
|
|
325
|
+
'background images in config'
|
|
326
|
+
);
|
|
327
|
+
|
|
328
|
+
// Process each background image
|
|
329
|
+
backgroundMediaList.forEach((media, index) => {
|
|
330
|
+
if (media?.url) {
|
|
331
|
+
// Extract filename from URL or use a generic label
|
|
332
|
+
const urlParts = media.url.split('/');
|
|
333
|
+
const filename =
|
|
334
|
+
urlParts[urlParts.length - 1] || `Background ${index + 1}`;
|
|
335
|
+
|
|
336
|
+
console.log(
|
|
337
|
+
`[VirtualBackground] Adding image ${index + 1}:`,
|
|
338
|
+
media.url
|
|
339
|
+
);
|
|
340
|
+
|
|
341
|
+
// Add the image - remote URLs will be handled with Image.getSize on demand
|
|
342
|
+
bgArray.push({
|
|
343
|
+
label: filename,
|
|
344
|
+
src: { uri: media.url },
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
});
|
|
348
|
+
} catch (error) {
|
|
349
|
+
console.error(
|
|
350
|
+
'[VirtualBackground] Error processing background images:',
|
|
351
|
+
error
|
|
352
|
+
);
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
return bgArray;
|
|
356
|
+
}, [layoutConfig]);
|
|
357
|
+
|
|
358
|
+
// Combine config backgrounds with upload button
|
|
204
359
|
const backgrounds: Array<
|
|
205
360
|
| {
|
|
206
361
|
icon: React.JSX.Element;
|
|
@@ -212,21 +367,20 @@ export const VirtualBackgroundModalContent: React.FC<
|
|
|
212
367
|
icon?: undefined;
|
|
213
368
|
onPress?: undefined;
|
|
214
369
|
label: string;
|
|
215
|
-
src: ImageRequireSource;
|
|
370
|
+
src: ImageRequireSource | { uri: string };
|
|
216
371
|
}
|
|
217
|
-
> = [
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
}
|
|
372
|
+
> = [
|
|
373
|
+
...configBackgrounds,
|
|
374
|
+
...(ImagePicker
|
|
375
|
+
? [
|
|
376
|
+
{
|
|
377
|
+
icon: <AddImageIcon />,
|
|
378
|
+
label: 'Upload',
|
|
379
|
+
onPress: handlePhotoLibraryPress,
|
|
380
|
+
},
|
|
381
|
+
]
|
|
382
|
+
: []),
|
|
383
|
+
];
|
|
230
384
|
|
|
231
385
|
return (
|
|
232
386
|
<View style={styles.flexView}>
|