@100mslive/react-native-room-kit 1.2.2 → 1.3.0
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 -15
- 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 +2 -3
- 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 +2 -3
- 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 +4 -5
- 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 +14 -26
- 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/HMSSendMessageInput.js +1 -1
- package/lib/module/components/HMSSendMessageInput.js.map +1 -1
- package/lib/module/components/HMSTextInput.js +1 -1
- package/lib/module/components/HMSTextInput.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/PollQuestion.js +3 -3
- package/lib/module/components/PollQuestion.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 +14 -26
- 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 +24 -25
- 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/HMSSendMessageInput.tsx +1 -1
- package/src/components/HMSTextInput.tsx +1 -1
- 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/PollQuestion.tsx +3 -3
- package/src/components/PressableIcon.tsx +1 -1
- package/src/components/TilesContainer.tsx +30 -12
- package/src/components/VirtualBackgroundModalContent.tsx +171 -17
- package/src/hooks-sdk.ts +10 -10
- package/src/hooks-util.ts +4 -19
|
@@ -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>;
|
|
@@ -32,7 +32,7 @@ export const HMSSendMessageInput: React.FC<HMSSendMessageInputProps> = ({
|
|
|
32
32
|
onChangeText={setMessage}
|
|
33
33
|
placeholder="Send a message..."
|
|
34
34
|
autoCapitalize="sentences"
|
|
35
|
-
|
|
35
|
+
autoComplete="off"
|
|
36
36
|
containerStyle={[
|
|
37
37
|
styles.inputContainer,
|
|
38
38
|
hmsRoomStyles.containerStyle,
|
|
@@ -123,7 +123,7 @@ export const HMSTextInput: React.FC<HMSTextInputProps> = ({
|
|
|
123
123
|
onChangeText={onChangeText}
|
|
124
124
|
placeholder={resetProps.placeholder ?? 'Enter Name...'}
|
|
125
125
|
autoCapitalize={resetProps.autoCapitalize ?? 'words'}
|
|
126
|
-
|
|
126
|
+
autoComplete={resetProps.autoComplete ?? 'name'}
|
|
127
127
|
placeholderTextColor={
|
|
128
128
|
resetProps.placeholderTextColor ?? onSurfaceMediumColor
|
|
129
129
|
}
|
|
@@ -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}>
|
|
@@ -363,7 +363,7 @@ export const PollQuestion: React.FC<PollQuestionProps> = ({
|
|
|
363
363
|
value={pollQuestion.title}
|
|
364
364
|
autoFocus={false}
|
|
365
365
|
autoCapitalize="none"
|
|
366
|
-
|
|
366
|
+
autoComplete="off"
|
|
367
367
|
onChangeText={(value) =>
|
|
368
368
|
onQuestionFieldChange(currentQuestionIndex, 'title', value)
|
|
369
369
|
}
|
|
@@ -419,7 +419,7 @@ export const PollQuestion: React.FC<PollQuestionProps> = ({
|
|
|
419
419
|
style={hmsRoomStyles.optionText}
|
|
420
420
|
value={option[1]}
|
|
421
421
|
autoCapitalize="none"
|
|
422
|
-
|
|
422
|
+
autoComplete="off"
|
|
423
423
|
autoFocus={false}
|
|
424
424
|
onChangeText={(value) =>
|
|
425
425
|
onEditPollQuestionOption(currentQuestionIndex, idx, value)
|
|
@@ -503,7 +503,7 @@ export const PollQuestion: React.FC<PollQuestionProps> = ({
|
|
|
503
503
|
value={pollQuestion.pointWeightage}
|
|
504
504
|
autoFocus={false}
|
|
505
505
|
autoCapitalize="none"
|
|
506
|
-
|
|
506
|
+
autoComplete="off"
|
|
507
507
|
keyboardType={Platform.OS === 'android' ? 'numeric' : 'number-pad'}
|
|
508
508
|
onChangeText={(value) =>
|
|
509
509
|
onQuestionFieldChange(
|
|
@@ -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,
|
|
@@ -152,7 +164,7 @@ function computeTileWidthAndHeight(
|
|
|
152
164
|
): {
|
|
153
165
|
width?: ViewStyle['width'];
|
|
154
166
|
height?: ViewStyle['height'];
|
|
155
|
-
aspectRatio?:
|
|
167
|
+
aspectRatio?: number | undefined;
|
|
156
168
|
} {
|
|
157
169
|
const { type, isLandscapeOrientation } = config || {
|
|
158
170
|
type: 'default',
|
|
@@ -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}>
|
package/src/hooks-sdk.ts
CHANGED
|
@@ -44,7 +44,7 @@ export const useHMSActions = () => {
|
|
|
44
44
|
const store = useStore();
|
|
45
45
|
|
|
46
46
|
const setLocalAudioEnabled = useCallback(async (enable: boolean) => {
|
|
47
|
-
const state
|
|
47
|
+
const state = store.getState() as RootState;
|
|
48
48
|
const localPeer = state.hmsStates.localPeer;
|
|
49
49
|
|
|
50
50
|
if (!localPeer) {
|
|
@@ -66,7 +66,7 @@ export const useHMSActions = () => {
|
|
|
66
66
|
}, []);
|
|
67
67
|
|
|
68
68
|
const setLocalVideoEnabled = useCallback(async (enable: boolean) => {
|
|
69
|
-
const state
|
|
69
|
+
const state = store.getState() as RootState;
|
|
70
70
|
const localPeer = state.hmsStates.localPeer;
|
|
71
71
|
|
|
72
72
|
if (!localPeer) {
|
|
@@ -88,7 +88,7 @@ export const useHMSActions = () => {
|
|
|
88
88
|
}, []);
|
|
89
89
|
|
|
90
90
|
const switchCamera = useCallback(async () => {
|
|
91
|
-
const state
|
|
91
|
+
const state = store.getState() as RootState;
|
|
92
92
|
const localPeer = state.hmsStates.localPeer;
|
|
93
93
|
|
|
94
94
|
if (!localPeer) {
|
|
@@ -105,7 +105,7 @@ export const useHMSActions = () => {
|
|
|
105
105
|
}, []);
|
|
106
106
|
|
|
107
107
|
const setScreenShareEnabled = useCallback(async (enable: boolean) => {
|
|
108
|
-
const state
|
|
108
|
+
const state = store.getState() as RootState;
|
|
109
109
|
const hmsInstance = state.user.hmsInstance;
|
|
110
110
|
|
|
111
111
|
if (!hmsInstance) {
|
|
@@ -133,7 +133,7 @@ export const useHMSActions = () => {
|
|
|
133
133
|
}, []);
|
|
134
134
|
|
|
135
135
|
const changeMetadata = useCallback(async (metadata: string | object) => {
|
|
136
|
-
const state
|
|
136
|
+
const state = store.getState() as RootState;
|
|
137
137
|
const hmsInstance = state.user.hmsInstance;
|
|
138
138
|
|
|
139
139
|
if (!hmsInstance) {
|
|
@@ -152,7 +152,7 @@ export const useHMSActions = () => {
|
|
|
152
152
|
}, []);
|
|
153
153
|
|
|
154
154
|
const changeName = useCallback(async (name: string): Promise<void> => {
|
|
155
|
-
const state
|
|
155
|
+
const state = store.getState() as RootState;
|
|
156
156
|
const hmsInstance = state.user.hmsInstance;
|
|
157
157
|
|
|
158
158
|
if (!hmsInstance) {
|
|
@@ -169,7 +169,7 @@ export const useHMSActions = () => {
|
|
|
169
169
|
}, []);
|
|
170
170
|
|
|
171
171
|
const raiseLocalPeerHand = useCallback(async (): Promise<void> => {
|
|
172
|
-
const state
|
|
172
|
+
const state = store.getState() as RootState;
|
|
173
173
|
const hmsInstance = state.user.hmsInstance;
|
|
174
174
|
|
|
175
175
|
if (!hmsInstance) {
|
|
@@ -186,7 +186,7 @@ export const useHMSActions = () => {
|
|
|
186
186
|
}, []);
|
|
187
187
|
|
|
188
188
|
const lowerLocalPeerHand = useCallback(async (): Promise<void> => {
|
|
189
|
-
const state
|
|
189
|
+
const state = store.getState() as RootState;
|
|
190
190
|
const hmsInstance = state.user.hmsInstance;
|
|
191
191
|
|
|
192
192
|
if (!hmsInstance) {
|
|
@@ -204,7 +204,7 @@ export const useHMSActions = () => {
|
|
|
204
204
|
|
|
205
205
|
const lowerRemotePeerHand = useCallback(
|
|
206
206
|
async (peer: HMSPeer): Promise<void> => {
|
|
207
|
-
const state
|
|
207
|
+
const state = store.getState() as RootState;
|
|
208
208
|
const hmsInstance = state.user.hmsInstance;
|
|
209
209
|
|
|
210
210
|
if (!hmsInstance) {
|
|
@@ -224,7 +224,7 @@ export const useHMSActions = () => {
|
|
|
224
224
|
|
|
225
225
|
const setRoomMuteLocally = useCallback(
|
|
226
226
|
async (mute: boolean): Promise<void> => {
|
|
227
|
-
const state
|
|
227
|
+
const state = store.getState() as RootState;
|
|
228
228
|
const hmsInstance = state.user.hmsInstance;
|
|
229
229
|
|
|
230
230
|
if (!hmsInstance) {
|
package/src/hooks-util.ts
CHANGED
|
@@ -1936,7 +1936,7 @@ export const useHMSConfig = () => {
|
|
|
1936
1936
|
hmsConfig = new HMSConfig({
|
|
1937
1937
|
authToken: token,
|
|
1938
1938
|
username: storeState.user.userName,
|
|
1939
|
-
captureNetworkQualityInPreview:
|
|
1939
|
+
captureNetworkQualityInPreview: false,
|
|
1940
1940
|
endpoint: storeState.user.endPoints?.init,
|
|
1941
1941
|
});
|
|
1942
1942
|
|
|
@@ -2666,14 +2666,7 @@ export const useBackButtonPress = () => {
|
|
|
2666
2666
|
);
|
|
2667
2667
|
|
|
2668
2668
|
return () => {
|
|
2669
|
-
|
|
2670
|
-
subscription.remove();
|
|
2671
|
-
} else {
|
|
2672
|
-
BackHandler.removeEventListener(
|
|
2673
|
-
'hardwareBackPress',
|
|
2674
|
-
backPressHandler
|
|
2675
|
-
);
|
|
2676
|
-
}
|
|
2669
|
+
subscription.remove();
|
|
2677
2670
|
};
|
|
2678
2671
|
}
|
|
2679
2672
|
}, [handleBackPress, handleModalVisibleType]);
|
|
@@ -3030,16 +3023,8 @@ export const useKeyboardState = () => {
|
|
|
3030
3023
|
if (didHideTimeoutId !== null) {
|
|
3031
3024
|
clearTimeout(didHideTimeoutId);
|
|
3032
3025
|
}
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
} else {
|
|
3036
|
-
Keyboard.removeSubscription(didShowSubscription);
|
|
3037
|
-
}
|
|
3038
|
-
if ('remove' in didHideSubscription) {
|
|
3039
|
-
didHideSubscription.remove();
|
|
3040
|
-
} else {
|
|
3041
|
-
Keyboard.removeSubscription(didHideSubscription);
|
|
3042
|
-
}
|
|
3026
|
+
didShowSubscription.remove();
|
|
3027
|
+
didHideSubscription.remove();
|
|
3043
3028
|
};
|
|
3044
3029
|
}, []);
|
|
3045
3030
|
|