@100mslive/react-native-room-kit 0.2.0 → 1.0.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 +1 -10
- package/lib/commonjs/HMSPrebuilt.js +6 -6
- package/lib/commonjs/HMSPrebuilt.js.map +1 -1
- package/lib/commonjs/HMSRoomSetup.js +27 -30
- package/lib/commonjs/HMSRoomSetup.js.map +1 -1
- package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle-filled.png +0 -0
- package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle-filled@2x.png +0 -0
- package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle-filled@3x.png +0 -0
- package/lib/commonjs/Icons/AlertTriangle/index.js +2 -1
- package/lib/commonjs/Icons/AlertTriangle/index.js.map +1 -1
- package/lib/commonjs/Icons/Eye/assets/eye-on-small.png +0 -0
- package/lib/commonjs/Icons/Eye/assets/eye-on-small@2x.png +0 -0
- package/lib/commonjs/Icons/Eye/assets/eye-on-small@3x.png +0 -0
- package/lib/commonjs/Icons/Eye/index.js +35 -0
- package/lib/commonjs/Icons/Eye/index.js.map +1 -0
- package/lib/commonjs/Icons/Person/assets/person-left.png +0 -0
- package/lib/commonjs/Icons/Person/assets/person-left@2x.png +0 -0
- package/lib/commonjs/Icons/Person/assets/person-left@3x.png +0 -0
- package/lib/commonjs/Icons/Person/assets/person-off.png +0 -0
- package/lib/commonjs/Icons/Person/assets/person-off@2x.png +0 -0
- package/lib/commonjs/Icons/Person/assets/person-off@3x.png +0 -0
- package/lib/commonjs/Icons/Person/assets/person-rectangle.png +0 -0
- package/lib/commonjs/Icons/Person/assets/person-rectangle@2x.png +0 -0
- package/lib/commonjs/Icons/Person/assets/person-rectangle@3x.png +0 -0
- package/lib/commonjs/Icons/Person/index.js +2 -1
- package/lib/commonjs/Icons/Person/index.js.map +1 -1
- package/lib/commonjs/Icons/Search/assets/search.png +0 -0
- package/lib/commonjs/Icons/Search/assets/search@2x.png +0 -0
- package/lib/commonjs/Icons/Search/assets/search@3x.png +0 -0
- package/lib/commonjs/Icons/Search/index.js +34 -0
- package/lib/commonjs/Icons/Search/index.js.map +1 -0
- package/lib/commonjs/Icons/index.js +22 -0
- package/lib/commonjs/Icons/index.js.map +1 -1
- package/lib/commonjs/assets/audio-level-white.json +1271 -0
- package/lib/commonjs/assets/empty-chat-illustration/empty-chat.png +0 -0
- package/lib/commonjs/assets/empty-chat-illustration/empty-chat@2x.png +0 -0
- package/lib/commonjs/assets/empty-chat-illustration/empty-chat@3x.png +0 -0
- package/lib/commonjs/assets/welcome.png +0 -0
- package/lib/commonjs/components/AnimatedFooter.js +35 -0
- package/lib/commonjs/components/AnimatedFooter.js.map +1 -0
- package/lib/commonjs/components/AnimatedHLSFooter.js +36 -0
- package/lib/commonjs/components/AnimatedHLSFooter.js.map +1 -0
- package/lib/commonjs/components/AnimatedHeader.js +44 -0
- package/lib/commonjs/components/AnimatedHeader.js.map +1 -0
- package/lib/commonjs/components/BottomSheet.js +6 -3
- package/lib/commonjs/components/BottomSheet.js.map +1 -1
- package/lib/commonjs/components/ChangeNameModalContent.js +0 -12
- package/lib/commonjs/components/ChangeNameModalContent.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatBanner.js +35 -55
- package/lib/commonjs/components/Chat/ChatBanner.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js +83 -0
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js.map +1 -0
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js +69 -0
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js.map +1 -0
- package/lib/commonjs/components/Chat/ChatFilterItem.js +71 -0
- package/lib/commonjs/components/Chat/ChatFilterItem.js.map +1 -0
- package/lib/commonjs/components/Chat/ChatFilterView.js +198 -0
- package/lib/commonjs/components/Chat/ChatFilterView.js.map +1 -0
- package/lib/commonjs/components/Chat/ChatList.js +6 -6
- package/lib/commonjs/components/Chat/ChatList.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatMessage.js +35 -135
- package/lib/commonjs/components/Chat/ChatMessage.js.map +1 -1
- package/lib/commonjs/components/Chat/PinnedMessage.js +39 -43
- package/lib/commonjs/components/Chat/PinnedMessage.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js +42 -0
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js.map +1 -0
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsHeader.js +105 -0
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsHeader.js.map +1 -0
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js +66 -0
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js.map +1 -0
- package/lib/commonjs/components/ChatAndParticipants/ChatView.js +37 -0
- package/lib/commonjs/components/ChatAndParticipants/ChatView.js.map +1 -0
- package/lib/commonjs/components/{Participants/SearchableParticipantsView.js → ChatAndParticipants/ParticipantsView.js} +24 -12
- package/lib/commonjs/components/ChatAndParticipants/ParticipantsView.js.map +1 -0
- package/lib/commonjs/components/ChatAndParticipants/index.js +17 -0
- package/lib/commonjs/components/ChatAndParticipants/index.js.map +1 -0
- package/lib/commonjs/components/CompanyLogo.js +4 -3
- package/lib/commonjs/components/CompanyLogo.js.map +1 -1
- package/lib/commonjs/components/DefaultModal.js +2 -6
- package/lib/commonjs/components/DefaultModal.js.map +1 -1
- package/lib/commonjs/components/DisplayView.js +6 -19
- package/lib/commonjs/components/DisplayView.js.map +1 -1
- package/lib/commonjs/components/EndRoomModalContent.js +20 -6
- package/lib/commonjs/components/EndRoomModalContent.js.map +1 -1
- package/lib/commonjs/components/Footer.js +37 -28
- package/lib/commonjs/components/Footer.js.map +1 -1
- package/lib/commonjs/components/FullScreenVideoView.js +74 -0
- package/lib/commonjs/components/FullScreenVideoView.js.map +1 -0
- package/lib/commonjs/components/GridView.js +129 -48
- package/lib/commonjs/components/GridView.js.map +1 -1
- package/lib/commonjs/components/{ParticipantsModal.js → HLSFooter.js} +19 -27
- package/lib/commonjs/components/HLSFooter.js.map +1 -0
- package/lib/commonjs/components/HLSView.js +10 -22
- package/lib/commonjs/components/HLSView.js.map +1 -1
- package/lib/commonjs/components/HMSChat.js +15 -14
- package/lib/commonjs/components/HMSChat.js.map +1 -1
- package/lib/commonjs/components/HMSHLSMessage.js +67 -0
- package/lib/commonjs/components/HMSHLSMessage.js.map +1 -0
- package/lib/commonjs/components/HMSHLSMessageList.js +58 -0
- package/lib/commonjs/components/HMSHLSMessageList.js.map +1 -0
- package/lib/commonjs/components/HMSHLSNotStarted.js +1 -6
- package/lib/commonjs/components/HMSHLSNotStarted.js.map +1 -1
- package/lib/commonjs/components/HMSHandRaiseNotification.js +84 -0
- package/lib/commonjs/components/HMSHandRaiseNotification.js.map +1 -0
- package/lib/commonjs/components/HMSKeyboardAvoidingView.js +49 -0
- package/lib/commonjs/components/HMSKeyboardAvoidingView.js.map +1 -0
- package/lib/commonjs/components/HMSLiveIndicator.js +105 -0
- package/lib/commonjs/components/HMSLiveIndicator.js.map +1 -0
- package/lib/commonjs/components/HMSLocalScreenshareNotification.js +38 -0
- package/lib/commonjs/components/HMSLocalScreenshareNotification.js.map +1 -0
- package/lib/commonjs/components/HMSLocalVideoView.js +4 -23
- package/lib/commonjs/components/HMSLocalVideoView.js.map +1 -1
- package/lib/commonjs/components/HMSManageAudioOutput.js +7 -1
- package/lib/commonjs/components/HMSManageAudioOutput.js.map +1 -1
- package/lib/commonjs/components/HMSManageLeave.js +33 -11
- package/lib/commonjs/components/HMSManageLeave.js.map +1 -1
- package/lib/commonjs/components/HMSNotification.js +96 -0
- package/lib/commonjs/components/HMSNotification.js.map +1 -0
- package/lib/commonjs/components/HMSNotifications.js +114 -0
- package/lib/commonjs/components/HMSNotifications.js.map +1 -0
- package/lib/commonjs/components/HMSOverlayChatView.js +30 -0
- package/lib/commonjs/components/HMSOverlayChatView.js.map +1 -0
- package/lib/commonjs/components/HMSPreviewJoinButton.js +1 -2
- package/lib/commonjs/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewNetworkQuality.js +1 -1
- package/lib/commonjs/components/HMSPreviewNetworkQuality.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewSubtitle.js +1 -3
- package/lib/commonjs/components/HMSPreviewSubtitle.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewTitle.js +1 -3
- package/lib/commonjs/components/HMSPreviewTitle.js.map +1 -1
- package/lib/commonjs/components/HMSRecordingIndicator.js +6 -2
- package/lib/commonjs/components/HMSRecordingIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSRoleChangeDeclinedNotification.js +30 -0
- package/lib/commonjs/components/HMSRoleChangeDeclinedNotification.js.map +1 -0
- package/lib/commonjs/components/HMSSendMessageInput.js +57 -0
- package/lib/commonjs/components/HMSSendMessageInput.js.map +1 -0
- package/lib/commonjs/components/HMSTextInput.js +98 -12
- package/lib/commonjs/components/HMSTextInput.js.map +1 -1
- package/lib/commonjs/components/HMSVideoView.js +43 -0
- package/lib/commonjs/components/HMSVideoView.js.map +1 -0
- package/lib/commonjs/components/Header.js +19 -123
- package/lib/commonjs/components/Header.js.map +1 -1
- package/lib/commonjs/components/LocalPeerScreenshareView.js +1 -7
- package/lib/commonjs/components/LocalPeerScreenshareView.js.map +1 -1
- package/lib/commonjs/components/Meeting.js +6 -5
- package/lib/commonjs/components/Meeting.js.map +1 -1
- package/lib/commonjs/components/MeetingScreenContent.js +21 -8
- package/lib/commonjs/components/MeetingScreenContent.js.map +1 -1
- package/lib/commonjs/components/MenuModal/Menu.js +2 -2
- package/lib/commonjs/components/MenuModal/Menu.js.map +1 -1
- package/lib/commonjs/components/MiniView.js +8 -3
- package/lib/commonjs/components/MiniView.js.map +1 -1
- package/lib/commonjs/components/Modals.js +88 -317
- package/lib/commonjs/components/Modals.js.map +1 -1
- package/lib/commonjs/components/OverlayContainer.js +41 -0
- package/lib/commonjs/components/OverlayContainer.js.map +1 -0
- package/lib/commonjs/components/OverlayedViews.js +22 -0
- package/lib/commonjs/components/OverlayedViews.js.map +1 -0
- package/lib/commonjs/components/PaginationDots.js +4 -4
- package/lib/commonjs/components/PaginationDots.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js +131 -0
- package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsGroupOptions.js +80 -0
- package/lib/commonjs/components/Participants/ParticipantsGroupOptions.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsItem.js +132 -0
- package/lib/commonjs/components/Participants/ParticipantsItem.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsItemOption.js +46 -0
- package/lib/commonjs/components/Participants/ParticipantsItemOption.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsItemOptions.js +220 -0
- package/lib/commonjs/components/Participants/ParticipantsItemOptions.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsList.js +40 -224
- package/lib/commonjs/components/Participants/ParticipantsList.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsSeachInput.js +36 -30
- package/lib/commonjs/components/Participants/ParticipantsSeachInput.js.map +1 -1
- package/lib/commonjs/components/Participants/index.js +0 -33
- package/lib/commonjs/components/Participants/index.js.map +1 -1
- package/lib/commonjs/components/PeerMinimizedView.js +1 -1
- package/lib/commonjs/components/PeerSettingsModalContent.js +47 -123
- package/lib/commonjs/components/PeerSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/AvatarView.js +19 -5
- package/lib/commonjs/components/PeerVideoTile/AvatarView.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/HMSFullScreenButton.js +45 -0
- package/lib/commonjs/components/PeerVideoTile/HMSFullScreenButton.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/HMSPinchGesture.js +202 -0
- package/lib/commonjs/components/PeerVideoTile/HMSPinchGesture.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/{PeerAudioMutedIndicator.js → PeerAudioIndicator.js} +30 -4
- package/lib/commonjs/components/PeerVideoTile/PeerAudioIndicator.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js +10 -2
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js +38 -17
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/VideoView.js +43 -10
- package/lib/commonjs/components/PeerVideoTile/VideoView.js.map +1 -1
- package/lib/commonjs/components/PressableIcon.js +10 -5
- package/lib/commonjs/components/PressableIcon.js.map +1 -1
- package/lib/commonjs/components/Preview.js +5 -14
- package/lib/commonjs/components/Preview.js.map +1 -1
- package/lib/commonjs/components/PreviewForRoleChangeModal.js +332 -0
- package/lib/commonjs/components/PreviewForRoleChangeModal.js.map +1 -0
- package/lib/commonjs/components/ReconnectionView.js +66 -0
- package/lib/commonjs/components/ReconnectionView.js.map +1 -0
- package/lib/commonjs/components/RoomSettingsModalContent.js +25 -34
- package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js +31 -70
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js.map +1 -1
- package/lib/commonjs/components/StreamingQualityModalContent.js +8 -9
- package/lib/commonjs/components/StreamingQualityModalContent.js.map +1 -1
- package/lib/commonjs/components/TilesContainer.js +31 -9
- package/lib/commonjs/components/TilesContainer.js.map +1 -1
- package/lib/commonjs/components/WebrtcView.js +11 -14
- package/lib/commonjs/components/WebrtcView.js.map +1 -1
- package/lib/commonjs/components/WelcomeInMeeting.js +7 -31
- package/lib/commonjs/components/WelcomeInMeeting.js.map +1 -1
- package/lib/commonjs/components/index.js +0 -33
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/hooks-util-selectors.js +43 -9
- package/lib/commonjs/hooks-util-selectors.js.map +1 -1
- package/lib/commonjs/hooks-util.js +619 -213
- package/lib/commonjs/hooks-util.js.map +1 -1
- package/lib/commonjs/modules/HMSManager.js +3 -3
- package/lib/commonjs/modules/HMSManager.js.map +1 -1
- package/lib/commonjs/modules/parser.js +2 -3
- package/lib/commonjs/modules/parser.js.map +1 -1
- package/lib/commonjs/redux/actionTypes.js +25 -1
- package/lib/commonjs/redux/actionTypes.js.map +1 -1
- package/lib/commonjs/redux/actions/index.js +90 -1
- package/lib/commonjs/redux/actions/index.js.map +1 -1
- package/lib/commonjs/redux/reducers/appState.js +77 -2
- package/lib/commonjs/redux/reducers/appState.js.map +1 -1
- package/lib/commonjs/redux/reducers/chatWindow.js +3 -7
- package/lib/commonjs/redux/reducers/chatWindow.js.map +1 -1
- package/lib/commonjs/redux/reducers/hmsStates.js +70 -7
- package/lib/commonjs/redux/reducers/hmsStates.js.map +1 -1
- package/lib/commonjs/utils/functions.js +10 -3
- package/lib/commonjs/utils/functions.js.map +1 -1
- package/lib/commonjs/utils/theme.js +2 -0
- package/lib/commonjs/utils/theme.js.map +1 -1
- package/lib/commonjs/utils/types.js +9 -3
- package/lib/commonjs/utils/types.js.map +1 -1
- package/lib/commonjs/utils.js +8 -1
- package/lib/commonjs/utils.js.map +1 -1
- package/lib/module/HMSPrebuilt.js +6 -6
- package/lib/module/HMSPrebuilt.js.map +1 -1
- package/lib/module/HMSRoomSetup.js +29 -32
- package/lib/module/HMSRoomSetup.js.map +1 -1
- package/lib/module/Icons/AlertTriangle/assets/alert-triangle-filled.png +0 -0
- package/lib/module/Icons/AlertTriangle/assets/alert-triangle-filled@2x.png +0 -0
- package/lib/module/Icons/AlertTriangle/assets/alert-triangle-filled@3x.png +0 -0
- package/lib/module/Icons/AlertTriangle/index.js +2 -1
- package/lib/module/Icons/AlertTriangle/index.js.map +1 -1
- package/lib/module/Icons/Eye/assets/eye-on-small.png +0 -0
- package/lib/module/Icons/Eye/assets/eye-on-small@2x.png +0 -0
- package/lib/module/Icons/Eye/assets/eye-on-small@3x.png +0 -0
- package/lib/module/Icons/Eye/index.js +27 -0
- package/lib/module/Icons/Eye/index.js.map +1 -0
- package/lib/module/Icons/Person/assets/person-left.png +0 -0
- package/lib/module/Icons/Person/assets/person-left@2x.png +0 -0
- package/lib/module/Icons/Person/assets/person-left@3x.png +0 -0
- package/lib/module/Icons/Person/assets/person-off.png +0 -0
- package/lib/module/Icons/Person/assets/person-off@2x.png +0 -0
- package/lib/module/Icons/Person/assets/person-off@3x.png +0 -0
- package/lib/module/Icons/Person/assets/person-rectangle.png +0 -0
- package/lib/module/Icons/Person/assets/person-rectangle@2x.png +0 -0
- package/lib/module/Icons/Person/assets/person-rectangle@3x.png +0 -0
- package/lib/module/Icons/Person/index.js +2 -1
- package/lib/module/Icons/Person/index.js.map +1 -1
- package/lib/module/Icons/Search/assets/search.png +0 -0
- package/lib/module/Icons/Search/assets/search@2x.png +0 -0
- package/lib/module/Icons/Search/assets/search@3x.png +0 -0
- package/lib/module/Icons/Search/index.js +26 -0
- package/lib/module/Icons/Search/index.js.map +1 -0
- package/lib/module/Icons/index.js +2 -0
- package/lib/module/Icons/index.js.map +1 -1
- package/lib/module/assets/audio-level-white.json +1271 -0
- package/lib/module/assets/empty-chat-illustration/empty-chat.png +0 -0
- package/lib/module/assets/empty-chat-illustration/empty-chat@2x.png +0 -0
- package/lib/module/assets/empty-chat-illustration/empty-chat@3x.png +0 -0
- package/lib/module/assets/welcome.png +0 -0
- package/lib/module/components/AnimatedFooter.js +26 -0
- package/lib/module/components/AnimatedFooter.js.map +1 -0
- package/lib/module/components/AnimatedHLSFooter.js +27 -0
- package/lib/module/components/AnimatedHLSFooter.js.map +1 -0
- package/lib/module/components/AnimatedHeader.js +35 -0
- package/lib/module/components/AnimatedHeader.js.map +1 -0
- package/lib/module/components/BottomSheet.js +6 -3
- package/lib/module/components/BottomSheet.js.map +1 -1
- package/lib/module/components/ChangeNameModalContent.js +2 -14
- package/lib/module/components/ChangeNameModalContent.js.map +1 -1
- package/lib/module/components/Chat/ChatBanner.js +36 -55
- package/lib/module/components/Chat/ChatBanner.js.map +1 -1
- package/lib/module/components/Chat/ChatFilterBottomSheetOpener.js +74 -0
- package/lib/module/components/Chat/ChatFilterBottomSheetOpener.js.map +1 -0
- package/lib/module/components/Chat/ChatFilterBottomSheetView.js +60 -0
- package/lib/module/components/Chat/ChatFilterBottomSheetView.js.map +1 -0
- package/lib/module/components/Chat/ChatFilterItem.js +62 -0
- package/lib/module/components/Chat/ChatFilterItem.js.map +1 -0
- package/lib/module/components/Chat/ChatFilterView.js +189 -0
- package/lib/module/components/Chat/ChatFilterView.js.map +1 -0
- package/lib/module/components/Chat/ChatList.js +6 -6
- package/lib/module/components/Chat/ChatList.js.map +1 -1
- package/lib/module/components/Chat/ChatMessage.js +36 -135
- package/lib/module/components/Chat/ChatMessage.js.map +1 -1
- package/lib/module/components/Chat/PinnedMessage.js +40 -43
- package/lib/module/components/Chat/PinnedMessage.js.map +1 -1
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js +33 -0
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js.map +1 -0
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsHeader.js +96 -0
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsHeader.js.map +1 -0
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsView.js +57 -0
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsView.js.map +1 -0
- package/lib/module/components/ChatAndParticipants/ChatView.js +28 -0
- package/lib/module/components/ChatAndParticipants/ChatView.js.map +1 -0
- package/lib/module/components/ChatAndParticipants/ParticipantsView.js +30 -0
- package/lib/module/components/ChatAndParticipants/ParticipantsView.js.map +1 -0
- package/lib/module/components/ChatAndParticipants/index.js +2 -0
- package/lib/module/components/ChatAndParticipants/index.js.map +1 -0
- package/lib/module/components/CompanyLogo.js +4 -3
- package/lib/module/components/CompanyLogo.js.map +1 -1
- package/lib/module/components/DefaultModal.js +2 -6
- package/lib/module/components/DefaultModal.js.map +1 -1
- package/lib/module/components/DisplayView.js +7 -20
- package/lib/module/components/DisplayView.js.map +1 -1
- package/lib/module/components/EndRoomModalContent.js +20 -6
- package/lib/module/components/EndRoomModalContent.js.map +1 -1
- package/lib/module/components/Footer.js +39 -30
- package/lib/module/components/Footer.js.map +1 -1
- package/lib/module/components/FullScreenVideoView.js +64 -0
- package/lib/module/components/FullScreenVideoView.js.map +1 -0
- package/lib/module/components/GridView.js +130 -49
- package/lib/module/components/GridView.js.map +1 -1
- package/lib/module/components/HLSFooter.js +26 -0
- package/lib/module/components/HLSFooter.js.map +1 -0
- package/lib/module/components/HLSView.js +11 -23
- package/lib/module/components/HLSView.js.map +1 -1
- package/lib/module/components/HMSChat.js +16 -15
- package/lib/module/components/HMSChat.js.map +1 -1
- package/lib/module/components/HMSHLSMessage.js +58 -0
- package/lib/module/components/HMSHLSMessage.js.map +1 -0
- package/lib/module/components/HMSHLSMessageList.js +49 -0
- package/lib/module/components/HMSHLSMessageList.js.map +1 -0
- package/lib/module/components/HMSHLSNotStarted.js +2 -7
- package/lib/module/components/HMSHLSNotStarted.js.map +1 -1
- package/lib/module/components/HMSHandRaiseNotification.js +75 -0
- package/lib/module/components/HMSHandRaiseNotification.js.map +1 -0
- package/lib/module/components/HMSKeyboardAvoidingView.js +40 -0
- package/lib/module/components/HMSKeyboardAvoidingView.js.map +1 -0
- package/lib/module/components/HMSLiveIndicator.js +96 -0
- package/lib/module/components/HMSLiveIndicator.js.map +1 -0
- package/lib/module/components/HMSLocalScreenshareNotification.js +29 -0
- package/lib/module/components/HMSLocalScreenshareNotification.js.map +1 -0
- package/lib/module/components/HMSLocalVideoView.js +4 -23
- package/lib/module/components/HMSLocalVideoView.js.map +1 -1
- package/lib/module/components/HMSManageAudioOutput.js +8 -2
- package/lib/module/components/HMSManageAudioOutput.js.map +1 -1
- package/lib/module/components/HMSManageLeave.js +35 -13
- package/lib/module/components/HMSManageLeave.js.map +1 -1
- package/lib/module/components/HMSNotification.js +87 -0
- package/lib/module/components/HMSNotification.js.map +1 -0
- package/lib/module/components/HMSNotifications.js +105 -0
- package/lib/module/components/HMSNotifications.js.map +1 -0
- package/lib/module/components/HMSOverlayChatView.js +20 -0
- package/lib/module/components/HMSOverlayChatView.js.map +1 -0
- package/lib/module/components/HMSPreviewJoinButton.js +2 -3
- package/lib/module/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/module/components/HMSPreviewNetworkQuality.js +1 -1
- package/lib/module/components/HMSPreviewNetworkQuality.js.map +1 -1
- package/lib/module/components/HMSPreviewSubtitle.js +2 -4
- package/lib/module/components/HMSPreviewSubtitle.js.map +1 -1
- package/lib/module/components/HMSPreviewTitle.js +2 -4
- package/lib/module/components/HMSPreviewTitle.js.map +1 -1
- package/lib/module/components/HMSRecordingIndicator.js +6 -2
- package/lib/module/components/HMSRecordingIndicator.js.map +1 -1
- package/lib/module/components/HMSRoleChangeDeclinedNotification.js +21 -0
- package/lib/module/components/HMSRoleChangeDeclinedNotification.js.map +1 -0
- package/lib/module/components/HMSSendMessageInput.js +48 -0
- package/lib/module/components/HMSSendMessageInput.js.map +1 -0
- package/lib/module/components/HMSTextInput.js +99 -13
- package/lib/module/components/HMSTextInput.js.map +1 -1
- package/lib/module/components/HMSVideoView.js +34 -0
- package/lib/module/components/HMSVideoView.js.map +1 -0
- package/lib/module/components/Header.js +18 -123
- package/lib/module/components/Header.js.map +1 -1
- package/lib/module/components/LocalPeerScreenshareView.js +1 -6
- package/lib/module/components/LocalPeerScreenshareView.js.map +1 -1
- package/lib/module/components/Meeting.js +8 -7
- package/lib/module/components/Meeting.js.map +1 -1
- package/lib/module/components/MeetingScreenContent.js +23 -10
- package/lib/module/components/MeetingScreenContent.js.map +1 -1
- package/lib/module/components/MenuModal/Menu.js +2 -2
- package/lib/module/components/MenuModal/Menu.js.map +1 -1
- package/lib/module/components/MiniView.js +8 -3
- package/lib/module/components/MiniView.js.map +1 -1
- package/lib/module/components/Modals.js +88 -313
- package/lib/module/components/Modals.js.map +1 -1
- package/lib/module/components/OverlayContainer.js +32 -0
- package/lib/module/components/OverlayContainer.js.map +1 -0
- package/lib/module/components/OverlayedViews.js +13 -0
- package/lib/module/components/OverlayedViews.js.map +1 -0
- package/lib/module/components/PaginationDots.js +4 -4
- package/lib/module/components/PaginationDots.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsGroupHeader.js +121 -0
- package/lib/module/components/Participants/ParticipantsGroupHeader.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsGroupOptions.js +71 -0
- package/lib/module/components/Participants/ParticipantsGroupOptions.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsItem.js +123 -0
- package/lib/module/components/Participants/ParticipantsItem.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsItemOption.js +37 -0
- package/lib/module/components/Participants/ParticipantsItemOption.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsItemOptions.js +211 -0
- package/lib/module/components/Participants/ParticipantsItemOptions.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsList.js +42 -225
- package/lib/module/components/Participants/ParticipantsList.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsSeachInput.js +37 -30
- package/lib/module/components/Participants/ParticipantsSeachInput.js.map +1 -1
- package/lib/module/components/Participants/index.js +0 -3
- package/lib/module/components/Participants/index.js.map +1 -1
- package/lib/module/components/PeerMinimizedView.js +1 -1
- package/lib/module/components/PeerSettingsModalContent.js +50 -126
- package/lib/module/components/PeerSettingsModalContent.js.map +1 -1
- package/lib/module/components/PeerVideoTile/AvatarView.js +19 -5
- package/lib/module/components/PeerVideoTile/AvatarView.js.map +1 -1
- package/lib/module/components/PeerVideoTile/HMSFullScreenButton.js +36 -0
- package/lib/module/components/PeerVideoTile/HMSFullScreenButton.js.map +1 -0
- package/lib/module/components/PeerVideoTile/HMSPinchGesture.js +193 -0
- package/lib/module/components/PeerVideoTile/HMSPinchGesture.js.map +1 -0
- package/lib/module/components/PeerVideoTile/PeerAudioIndicator.js +60 -0
- package/lib/module/components/PeerVideoTile/PeerAudioIndicator.js.map +1 -0
- package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js +11 -3
- package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -1
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js +41 -20
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
- package/lib/module/components/PeerVideoTile/VideoView.js +43 -10
- package/lib/module/components/PeerVideoTile/VideoView.js.map +1 -1
- package/lib/module/components/PressableIcon.js +11 -6
- package/lib/module/components/PressableIcon.js.map +1 -1
- package/lib/module/components/Preview.js +6 -13
- package/lib/module/components/Preview.js.map +1 -1
- package/lib/module/components/PreviewForRoleChangeModal.js +322 -0
- package/lib/module/components/PreviewForRoleChangeModal.js.map +1 -0
- package/lib/module/components/ReconnectionView.js +56 -0
- package/lib/module/components/ReconnectionView.js.map +1 -0
- package/lib/module/components/RoomSettingsModalContent.js +27 -36
- package/lib/module/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/module/components/RoomSettingsModalDebugModeContent.js +31 -70
- package/lib/module/components/RoomSettingsModalDebugModeContent.js.map +1 -1
- package/lib/module/components/StreamingQualityModalContent.js +8 -8
- package/lib/module/components/StreamingQualityModalContent.js.map +1 -1
- package/lib/module/components/TilesContainer.js +31 -9
- package/lib/module/components/TilesContainer.js.map +1 -1
- package/lib/module/components/WebrtcView.js +11 -14
- package/lib/module/components/WebrtcView.js.map +1 -1
- package/lib/module/components/WelcomeInMeeting.js +8 -32
- package/lib/module/components/WelcomeInMeeting.js.map +1 -1
- package/lib/module/components/index.js +0 -3
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/hooks-util-selectors.js +38 -8
- package/lib/module/hooks-util-selectors.js.map +1 -1
- package/lib/module/hooks-util.js +615 -213
- package/lib/module/hooks-util.js.map +1 -1
- package/lib/module/modules/HMSManager.js +3 -3
- package/lib/module/modules/HMSManager.js.map +1 -1
- package/lib/module/modules/parser.js +2 -3
- package/lib/module/modules/parser.js.map +1 -1
- package/lib/module/redux/actionTypes.js +25 -1
- package/lib/module/redux/actionTypes.js.map +1 -1
- package/lib/module/redux/actions/index.js +74 -0
- package/lib/module/redux/actions/index.js.map +1 -1
- package/lib/module/redux/reducers/appState.js +78 -2
- package/lib/module/redux/reducers/appState.js.map +1 -1
- package/lib/module/redux/reducers/chatWindow.js +3 -7
- package/lib/module/redux/reducers/chatWindow.js.map +1 -1
- package/lib/module/redux/reducers/hmsStates.js +70 -7
- package/lib/module/redux/reducers/hmsStates.js.map +1 -1
- package/lib/module/utils/functions.js +8 -2
- package/lib/module/utils/functions.js.map +1 -1
- package/lib/module/utils/theme.js +2 -0
- package/lib/module/utils/theme.js.map +1 -1
- package/lib/module/utils/types.js +6 -2
- package/lib/module/utils/types.js.map +1 -1
- package/lib/module/utils.js +6 -0
- package/lib/module/utils.js.map +1 -1
- package/lib/typescript/HMSPrebuilt.d.ts +1 -0
- package/lib/typescript/HMSPrebuilt.d.ts.map +1 -1
- package/lib/typescript/HMSRoomSetup.d.ts.map +1 -1
- package/lib/typescript/Icons/AlertTriangle/index.d.ts +1 -0
- package/lib/typescript/Icons/AlertTriangle/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Eye/index.d.ts +8 -0
- package/lib/typescript/Icons/Eye/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Person/index.d.ts +1 -0
- package/lib/typescript/Icons/Person/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Search/index.d.ts +7 -0
- package/lib/typescript/Icons/Search/index.d.ts.map +1 -0
- package/lib/typescript/Icons/index.d.ts +2 -0
- package/lib/typescript/Icons/index.d.ts.map +1 -1
- package/lib/typescript/components/AnimatedFooter.d.ts +8 -0
- package/lib/typescript/components/AnimatedFooter.d.ts.map +1 -0
- package/lib/typescript/components/AnimatedHLSFooter.d.ts +11 -0
- package/lib/typescript/components/AnimatedHLSFooter.d.ts.map +1 -0
- package/lib/typescript/components/AnimatedHeader.d.ts +7 -0
- package/lib/typescript/components/AnimatedHeader.d.ts.map +1 -0
- package/lib/typescript/components/BottomSheet.d.ts +4 -1
- package/lib/typescript/components/BottomSheet.d.ts.map +1 -1
- package/lib/typescript/components/ChangeNameModalContent.d.ts.map +1 -1
- package/lib/typescript/components/Chat/ChatBanner.d.ts +1 -1
- package/lib/typescript/components/Chat/ChatBanner.d.ts.map +1 -1
- package/lib/typescript/components/Chat/ChatFilterBottomSheetOpener.d.ts +6 -0
- package/lib/typescript/components/Chat/ChatFilterBottomSheetOpener.d.ts.map +1 -0
- package/lib/typescript/components/Chat/ChatFilterBottomSheetView.d.ts +6 -0
- package/lib/typescript/components/Chat/ChatFilterBottomSheetView.d.ts.map +1 -0
- package/lib/typescript/components/Chat/ChatFilterItem.d.ts +12 -0
- package/lib/typescript/components/Chat/ChatFilterItem.d.ts.map +1 -0
- package/lib/typescript/components/Chat/ChatFilterView.d.ts +6 -0
- package/lib/typescript/components/Chat/ChatFilterView.d.ts.map +1 -0
- package/lib/typescript/components/Chat/ChatList.d.ts.map +1 -1
- package/lib/typescript/components/Chat/ChatMessage.d.ts +2 -2
- package/lib/typescript/components/Chat/ChatMessage.d.ts.map +1 -1
- package/lib/typescript/components/Chat/PinnedMessage.d.ts.map +1 -1
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.d.ts +3 -0
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.d.ts.map +1 -0
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsHeader.d.ts +7 -0
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsHeader.d.ts.map +1 -0
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsView.d.ts +3 -0
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsView.d.ts.map +1 -0
- package/lib/typescript/components/ChatAndParticipants/ChatView.d.ts +6 -0
- package/lib/typescript/components/ChatAndParticipants/ChatView.d.ts.map +1 -0
- package/lib/typescript/components/ChatAndParticipants/ParticipantsView.d.ts +5 -0
- package/lib/typescript/components/ChatAndParticipants/ParticipantsView.d.ts.map +1 -0
- package/lib/typescript/components/ChatAndParticipants/index.d.ts +2 -0
- package/lib/typescript/components/ChatAndParticipants/index.d.ts.map +1 -0
- package/lib/typescript/components/CompanyLogo.d.ts.map +1 -1
- package/lib/typescript/components/DefaultModal.d.ts.map +1 -1
- package/lib/typescript/components/DisplayView.d.ts.map +1 -1
- package/lib/typescript/components/EndRoomModalContent.d.ts.map +1 -1
- package/lib/typescript/components/Footer.d.ts +0 -2
- package/lib/typescript/components/Footer.d.ts.map +1 -1
- package/lib/typescript/components/FullScreenVideoView.d.ts +3 -0
- package/lib/typescript/components/FullScreenVideoView.d.ts.map +1 -0
- package/lib/typescript/components/GridView.d.ts +12 -1
- package/lib/typescript/components/GridView.d.ts.map +1 -1
- package/lib/typescript/components/HLSFooter.d.ts +8 -0
- package/lib/typescript/components/HLSFooter.d.ts.map +1 -0
- package/lib/typescript/components/HLSView.d.ts.map +1 -1
- package/lib/typescript/components/HMSBaseButton.d.ts +2 -2
- package/lib/typescript/components/HMSBaseButton.d.ts.map +1 -1
- package/lib/typescript/components/HMSChat.d.ts.map +1 -1
- package/lib/typescript/components/HMSHLSMessage.d.ts +8 -0
- package/lib/typescript/components/HMSHLSMessage.d.ts.map +1 -0
- package/lib/typescript/components/HMSHLSMessageList.d.ts +3 -0
- package/lib/typescript/components/HMSHLSMessageList.d.ts.map +1 -0
- package/lib/typescript/components/HMSHLSNotStarted.d.ts.map +1 -1
- package/lib/typescript/components/HMSHandRaiseNotification.d.ts +10 -0
- package/lib/typescript/components/HMSHandRaiseNotification.d.ts.map +1 -0
- package/lib/typescript/components/HMSKeyboardAvoidingView.d.ts +8 -0
- package/lib/typescript/components/HMSKeyboardAvoidingView.d.ts.map +1 -0
- package/lib/typescript/components/HMSLiveIndicator.d.ts +3 -0
- package/lib/typescript/components/HMSLiveIndicator.d.ts.map +1 -0
- package/lib/typescript/components/HMSLocalScreenshareNotification.d.ts +5 -0
- package/lib/typescript/components/HMSLocalScreenshareNotification.d.ts.map +1 -0
- package/lib/typescript/components/HMSLocalVideoView.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageAudioOutput.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageLeave.d.ts.map +1 -1
- package/lib/typescript/components/HMSNotification.d.ts +15 -0
- package/lib/typescript/components/HMSNotification.d.ts.map +1 -0
- package/lib/typescript/components/HMSNotifications.d.ts +5 -0
- package/lib/typescript/components/HMSNotifications.d.ts.map +1 -0
- package/lib/typescript/components/HMSOverlayChatView.d.ts +3 -0
- package/lib/typescript/components/HMSOverlayChatView.d.ts.map +1 -0
- package/lib/typescript/components/HMSPreviewJoinButton.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewNetworkQuality.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewSubtitle.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewTitle.d.ts.map +1 -1
- package/lib/typescript/components/HMSRecordingIndicator.d.ts.map +1 -1
- package/lib/typescript/components/HMSRoleChangeDeclinedNotification.d.ts +9 -0
- package/lib/typescript/components/HMSRoleChangeDeclinedNotification.d.ts.map +1 -0
- package/lib/typescript/components/HMSSendMessageInput.d.ts +9 -0
- package/lib/typescript/components/HMSSendMessageInput.d.ts.map +1 -0
- package/lib/typescript/components/HMSTextInput.d.ts +20 -6
- package/lib/typescript/components/HMSTextInput.d.ts.map +1 -1
- package/lib/typescript/components/HMSVideoView.d.ts +6 -0
- package/lib/typescript/components/HMSVideoView.d.ts.map +1 -0
- package/lib/typescript/components/Header.d.ts +3 -2
- package/lib/typescript/components/Header.d.ts.map +1 -1
- package/lib/typescript/components/LocalPeerScreenshareView.d.ts.map +1 -1
- package/lib/typescript/components/Meeting.d.ts.map +1 -1
- package/lib/typescript/components/MeetingScreenContent.d.ts.map +1 -1
- package/lib/typescript/components/MiniView.d.ts.map +1 -1
- package/lib/typescript/components/Modals.d.ts +1 -21
- package/lib/typescript/components/Modals.d.ts.map +1 -1
- package/lib/typescript/components/OverlayContainer.d.ts +9 -0
- package/lib/typescript/components/OverlayContainer.d.ts.map +1 -0
- package/lib/typescript/components/OverlayedViews.d.ts +4 -0
- package/lib/typescript/components/OverlayedViews.d.ts.map +1 -0
- package/lib/typescript/components/PaginationDots.d.ts +3 -0
- package/lib/typescript/components/PaginationDots.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsGroupHeader.d.ts +9 -0
- package/lib/typescript/components/Participants/ParticipantsGroupHeader.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsGroupOptions.d.ts +8 -0
- package/lib/typescript/components/Participants/ParticipantsGroupOptions.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsItem.d.ts +9 -0
- package/lib/typescript/components/Participants/ParticipantsItem.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsItemOption.d.ts +12 -0
- package/lib/typescript/components/Participants/ParticipantsItemOption.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsItemOptions.d.ts +10 -0
- package/lib/typescript/components/Participants/ParticipantsItemOptions.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsList.d.ts +4 -2
- package/lib/typescript/components/Participants/ParticipantsList.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsSeachInput.d.ts.map +1 -1
- package/lib/typescript/components/Participants/index.d.ts +0 -3
- package/lib/typescript/components/Participants/index.d.ts.map +1 -1
- package/lib/typescript/components/PeerSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/AvatarView.d.ts +4 -0
- package/lib/typescript/components/PeerVideoTile/AvatarView.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/HMSFullScreenButton.d.ts +7 -0
- package/lib/typescript/components/PeerVideoTile/HMSFullScreenButton.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/HMSPinchGesture.d.ts +7 -0
- package/lib/typescript/components/PeerVideoTile/HMSPinchGesture.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerAudioIndicator.d.ts +8 -0
- package/lib/typescript/components/PeerVideoTile/PeerAudioIndicator.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerNameAndNetwork.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts +2 -1
- package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/VideoView.d.ts +1 -0
- package/lib/typescript/components/PeerVideoTile/VideoView.d.ts.map +1 -1
- package/lib/typescript/components/PressableIcon.d.ts.map +1 -1
- package/lib/typescript/components/Preview.d.ts.map +1 -1
- package/lib/typescript/components/PreviewForRoleChangeModal.d.ts +3 -0
- package/lib/typescript/components/PreviewForRoleChangeModal.d.ts.map +1 -0
- package/lib/typescript/components/ReconnectionView.d.ts +4 -0
- package/lib/typescript/components/ReconnectionView.d.ts.map +1 -0
- package/lib/typescript/components/RoomSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/components/RoomSettingsModalDebugModeContent.d.ts.map +1 -1
- package/lib/typescript/components/StreamingQualityModalContent.d.ts.map +1 -1
- package/lib/typescript/components/TilesContainer.d.ts.map +1 -1
- package/lib/typescript/components/WebrtcView.d.ts.map +1 -1
- package/lib/typescript/components/WelcomeInMeeting.d.ts.map +1 -1
- package/lib/typescript/components/index.d.ts +0 -3
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/hooks-util-selectors.d.ts +7 -2
- package/lib/typescript/hooks-util-selectors.d.ts.map +1 -1
- package/lib/typescript/hooks-util.d.ts +53 -23
- package/lib/typescript/hooks-util.d.ts.map +1 -1
- package/lib/typescript/modules/HMSManager.d.ts +1 -1
- package/lib/typescript/modules/HMSManager.d.ts.map +1 -1
- package/lib/typescript/modules/parser.d.ts +1 -1
- package/lib/typescript/modules/parser.d.ts.map +1 -1
- package/lib/typescript/redux/actionTypes.d.ts +16 -1
- package/lib/typescript/redux/actionTypes.d.ts.map +1 -1
- package/lib/typescript/redux/actions/index.d.ts +92 -4
- package/lib/typescript/redux/actions/index.d.ts.map +1 -1
- package/lib/typescript/redux/index.d.ts +22 -2
- package/lib/typescript/redux/index.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/appState.d.ts +10 -0
- package/lib/typescript/redux/reducers/appState.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/chatWindow.d.ts +6 -6
- package/lib/typescript/redux/reducers/chatWindow.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/hmsStates.d.ts +32 -4
- package/lib/typescript/redux/reducers/hmsStates.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/index.d.ts +22 -2
- package/lib/typescript/redux/reducers/index.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/userState.d.ts +1 -0
- package/lib/typescript/redux/reducers/userState.d.ts.map +1 -1
- package/lib/typescript/utils/functions.d.ts +3 -1
- package/lib/typescript/utils/functions.d.ts.map +1 -1
- package/lib/typescript/utils/theme.d.ts +1 -1
- package/lib/typescript/utils/theme.d.ts.map +1 -1
- package/lib/typescript/utils/types.d.ts +6 -2
- package/lib/typescript/utils/types.d.ts.map +1 -1
- package/lib/typescript/utils.d.ts +5 -0
- package/lib/typescript/utils.d.ts.map +1 -1
- package/package.json +13 -8
- package/src/HMSPrebuilt.tsx +10 -10
- package/src/HMSRoomSetup.tsx +50 -28
- package/src/Icons/AlertTriangle/assets/alert-triangle-filled.png +0 -0
- package/src/Icons/AlertTriangle/assets/alert-triangle-filled@2x.png +0 -0
- package/src/Icons/AlertTriangle/assets/alert-triangle-filled@3x.png +0 -0
- package/src/Icons/AlertTriangle/index.tsx +9 -2
- package/src/Icons/Eye/assets/eye-on-small.png +0 -0
- package/src/Icons/Eye/assets/eye-on-small@2x.png +0 -0
- package/src/Icons/Eye/assets/eye-on-small@3x.png +0 -0
- package/src/Icons/Eye/index.tsx +36 -0
- package/src/Icons/Person/assets/person-left.png +0 -0
- package/src/Icons/Person/assets/person-left@2x.png +0 -0
- package/src/Icons/Person/assets/person-left@3x.png +0 -0
- package/src/Icons/Person/assets/person-off.png +0 -0
- package/src/Icons/Person/assets/person-off@2x.png +0 -0
- package/src/Icons/Person/assets/person-off@3x.png +0 -0
- package/src/Icons/Person/assets/person-rectangle.png +0 -0
- package/src/Icons/Person/assets/person-rectangle@2x.png +0 -0
- package/src/Icons/Person/assets/person-rectangle@3x.png +0 -0
- package/src/Icons/Person/index.tsx +13 -2
- package/src/Icons/Search/assets/search.png +0 -0
- package/src/Icons/Search/assets/search@2x.png +0 -0
- package/src/Icons/Search/assets/search@3x.png +0 -0
- package/src/Icons/Search/index.tsx +33 -0
- package/src/Icons/index.ts +2 -0
- package/src/assets/audio-level-white.json +1271 -0
- package/src/assets/empty-chat-illustration/empty-chat.png +0 -0
- package/src/assets/empty-chat-illustration/empty-chat@2x.png +0 -0
- package/src/assets/empty-chat-illustration/empty-chat@3x.png +0 -0
- package/src/assets/welcome.png +0 -0
- package/src/components/AnimatedFooter.tsx +37 -0
- package/src/components/AnimatedHLSFooter.tsx +43 -0
- package/src/components/AnimatedHeader.tsx +53 -0
- package/src/components/BottomSheet.tsx +8 -4
- package/src/components/ChangeNameModalContent.tsx +2 -11
- package/src/components/Chat/ChatBanner.tsx +37 -52
- package/src/components/Chat/ChatFilterBottomSheetOpener.tsx +88 -0
- package/src/components/Chat/ChatFilterBottomSheetView.tsx +81 -0
- package/src/components/Chat/ChatFilterItem.tsx +71 -0
- package/src/components/Chat/ChatFilterView.tsx +250 -0
- package/src/components/Chat/ChatList.tsx +16 -12
- package/src/components/Chat/ChatMessage.tsx +48 -197
- package/src/components/Chat/PinnedMessage.tsx +45 -45
- package/src/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.tsx +38 -0
- package/src/components/ChatAndParticipants/ChatAndParticipantsHeader.tsx +140 -0
- package/src/components/ChatAndParticipants/ChatAndParticipantsView.tsx +84 -0
- package/src/components/ChatAndParticipants/ChatView.tsx +42 -0
- package/src/components/ChatAndParticipants/ParticipantsView.tsx +41 -0
- package/src/components/ChatAndParticipants/index.ts +1 -0
- package/src/components/CompanyLogo.tsx +3 -2
- package/src/components/DefaultModal.tsx +4 -6
- package/src/components/DisplayView.tsx +10 -26
- package/src/components/EndRoomModalContent.tsx +32 -7
- package/src/components/Footer.tsx +93 -58
- package/src/components/FullScreenVideoView.tsx +77 -0
- package/src/components/GridView.tsx +186 -65
- package/src/components/HLSFooter.tsx +32 -0
- package/src/components/HLSView.tsx +5 -32
- package/src/components/HMSBaseButton.tsx +2 -2
- package/src/components/HMSChat.tsx +12 -25
- package/src/components/HMSHLSMessage.tsx +72 -0
- package/src/components/HMSHLSMessageList.tsx +60 -0
- package/src/components/HMSHLSNotStarted.tsx +8 -19
- package/src/components/HMSHandRaiseNotification.tsx +101 -0
- package/src/components/HMSKeyboardAvoidingView.tsx +58 -0
- package/src/components/HMSLiveIndicator.tsx +124 -0
- package/src/components/HMSLocalScreenshareNotification.tsx +41 -0
- package/src/components/HMSLocalVideoView.tsx +4 -31
- package/src/components/HMSManageAudioOutput.tsx +14 -2
- package/src/components/HMSManageLeave.tsx +46 -19
- package/src/components/HMSNotification.tsx +126 -0
- package/src/components/HMSNotifications.tsx +154 -0
- package/src/components/HMSOverlayChatView.tsx +36 -0
- package/src/components/HMSPreviewJoinButton.tsx +6 -3
- package/src/components/HMSPreviewNetworkQuality.tsx +3 -1
- package/src/components/HMSPreviewSubtitle.tsx +2 -6
- package/src/components/HMSPreviewTitle.tsx +2 -6
- package/src/components/HMSRecordingIndicator.tsx +13 -2
- package/src/components/HMSRoleChangeDeclinedNotification.tsx +25 -0
- package/src/components/HMSSendMessageInput.tsx +59 -0
- package/src/components/HMSTextInput.tsx +157 -23
- package/src/components/HMSVideoView.tsx +43 -0
- package/src/components/Header.tsx +25 -133
- package/src/components/LocalPeerScreenshareView.tsx +0 -6
- package/src/components/Meeting.tsx +15 -8
- package/src/components/MeetingScreenContent.tsx +28 -11
- package/src/components/MiniView.tsx +10 -4
- package/src/components/Modals.tsx +112 -370
- package/src/components/OverlayContainer.tsx +31 -0
- package/src/components/OverlayedViews.tsx +22 -0
- package/src/components/PaginationDots.tsx +9 -8
- package/src/components/Participants/ParticipantsGroupHeader.tsx +145 -0
- package/src/components/Participants/ParticipantsGroupOptions.tsx +87 -0
- package/src/components/Participants/ParticipantsItem.tsx +170 -0
- package/src/components/Participants/ParticipantsItemOption.tsx +52 -0
- package/src/components/Participants/ParticipantsItemOptions.tsx +262 -0
- package/src/components/Participants/ParticipantsList.tsx +68 -278
- package/src/components/Participants/ParticipantsSeachInput.tsx +37 -35
- package/src/components/Participants/index.ts +0 -3
- package/src/components/PeerMinimizedView.tsx +1 -1
- package/src/components/PeerSettingsModalContent.tsx +44 -191
- package/src/components/PeerVideoTile/AvatarView.tsx +43 -5
- package/src/components/PeerVideoTile/HMSFullScreenButton.tsx +56 -0
- package/src/components/PeerVideoTile/HMSPinchGesture.tsx +176 -0
- package/src/components/PeerVideoTile/PeerAudioIndicator.tsx +78 -0
- package/src/components/PeerVideoTile/PeerNameAndNetwork.tsx +15 -2
- package/src/components/PeerVideoTile/PeerVideoTileView.tsx +172 -115
- package/src/components/PeerVideoTile/VideoView.tsx +59 -9
- package/src/components/PressableIcon.tsx +26 -13
- package/src/components/Preview.tsx +17 -24
- package/src/components/PreviewForRoleChangeModal.tsx +448 -0
- package/src/components/ReconnectionView.tsx +73 -0
- package/src/components/RoomSettingsModalContent.tsx +32 -30
- package/src/components/RoomSettingsModalDebugModeContent.tsx +11 -65
- package/src/components/StreamingQualityModalContent.tsx +8 -8
- package/src/components/TilesContainer.tsx +54 -24
- package/src/components/WebrtcView.tsx +29 -19
- package/src/components/WelcomeInMeeting.tsx +5 -34
- package/src/components/index.ts +0 -3
- package/src/hooks-util-selectors.tsx +69 -6
- package/src/hooks-util.ts +852 -270
- package/src/modules/HMSManager.ts +3 -3
- package/src/modules/parser.ts +3 -4
- package/src/redux/actionTypes.ts +33 -0
- package/src/redux/actions/index.ts +96 -1
- package/src/redux/reducers/appState.ts +83 -1
- package/src/redux/reducers/chatWindow.ts +12 -5
- package/src/redux/reducers/hmsStates.ts +136 -4
- package/src/redux/reducers/userState.ts +1 -1
- package/src/utils/functions.ts +9 -0
- package/src/utils/theme.ts +3 -1
- package/src/utils/types.ts +6 -2
- package/src/utils.ts +6 -0
- package/lib/commonjs/assets/100ms-logo.png +0 -0
- package/lib/commonjs/assets/brb.png +0 -0
- package/lib/commonjs/assets/icon.png +0 -0
- package/lib/commonjs/assets/illustration.png +0 -0
- package/lib/commonjs/assets/network_0.png +0 -0
- package/lib/commonjs/assets/network_1.png +0 -0
- package/lib/commonjs/assets/network_2.png +0 -0
- package/lib/commonjs/assets/network_3.png +0 -0
- package/lib/commonjs/assets/network_4.png +0 -0
- package/lib/commonjs/assets/user_music.png +0 -0
- package/lib/commonjs/components/ChatWindow.js +0 -608
- package/lib/commonjs/components/ChatWindow.js.map +0 -1
- package/lib/commonjs/components/CustomInput.js +0 -89
- package/lib/commonjs/components/CustomInput.js.map +0 -1
- package/lib/commonjs/components/DisplayTrack.js +0 -70
- package/lib/commonjs/components/DisplayTrack.js.map +0 -1
- package/lib/commonjs/components/HMSShareScreen.js +0 -59
- package/lib/commonjs/components/HMSShareScreen.js.map +0 -1
- package/lib/commonjs/components/HMSShowNetworkQuality.js +0 -56
- package/lib/commonjs/components/HMSShowNetworkQuality.js.map +0 -1
- package/lib/commonjs/components/LiveButton.js +0 -70
- package/lib/commonjs/components/LiveButton.js.map +0 -1
- package/lib/commonjs/components/Participants/ParticipantsFilter.js +0 -128
- package/lib/commonjs/components/Participants/ParticipantsFilter.js.map +0 -1
- package/lib/commonjs/components/Participants/ParticipantsHeader.js +0 -67
- package/lib/commonjs/components/Participants/ParticipantsHeader.js.map +0 -1
- package/lib/commonjs/components/Participants/SearchableParticipantsView.js.map +0 -1
- package/lib/commonjs/components/ParticipantsModal.js.map +0 -1
- package/lib/commonjs/components/PeerVideoTile/PeerAudioMutedIndicator.js.map +0 -1
- package/lib/commonjs/components/Picker.js +0 -93
- package/lib/commonjs/components/Picker.js.map +0 -1
- package/lib/module/assets/100ms-logo.png +0 -0
- package/lib/module/assets/brb.png +0 -0
- package/lib/module/assets/icon.png +0 -0
- package/lib/module/assets/illustration.png +0 -0
- package/lib/module/assets/network_0.png +0 -0
- package/lib/module/assets/network_1.png +0 -0
- package/lib/module/assets/network_2.png +0 -0
- package/lib/module/assets/network_3.png +0 -0
- package/lib/module/assets/network_4.png +0 -0
- package/lib/module/assets/user_music.png +0 -0
- package/lib/module/components/ChatWindow.js +0 -595
- package/lib/module/components/ChatWindow.js.map +0 -1
- package/lib/module/components/CustomInput.js +0 -82
- package/lib/module/components/CustomInput.js.map +0 -1
- package/lib/module/components/DisplayTrack.js +0 -63
- package/lib/module/components/DisplayTrack.js.map +0 -1
- package/lib/module/components/HMSShareScreen.js +0 -50
- package/lib/module/components/HMSShareScreen.js.map +0 -1
- package/lib/module/components/HMSShowNetworkQuality.js +0 -47
- package/lib/module/components/HMSShowNetworkQuality.js.map +0 -1
- package/lib/module/components/LiveButton.js +0 -61
- package/lib/module/components/LiveButton.js.map +0 -1
- package/lib/module/components/Participants/ParticipantsFilter.js +0 -121
- package/lib/module/components/Participants/ParticipantsFilter.js.map +0 -1
- package/lib/module/components/Participants/ParticipantsHeader.js +0 -58
- package/lib/module/components/Participants/ParticipantsHeader.js.map +0 -1
- package/lib/module/components/Participants/SearchableParticipantsView.js +0 -18
- package/lib/module/components/Participants/SearchableParticipantsView.js.map +0 -1
- package/lib/module/components/ParticipantsModal.js +0 -34
- package/lib/module/components/ParticipantsModal.js.map +0 -1
- package/lib/module/components/PeerVideoTile/PeerAudioMutedIndicator.js +0 -35
- package/lib/module/components/PeerVideoTile/PeerAudioMutedIndicator.js.map +0 -1
- package/lib/module/components/Picker.js +0 -83
- package/lib/module/components/Picker.js.map +0 -1
- package/lib/typescript/components/ChatWindow.d.ts +0 -22
- package/lib/typescript/components/ChatWindow.d.ts.map +0 -1
- package/lib/typescript/components/CustomInput.d.ts +0 -24
- package/lib/typescript/components/CustomInput.d.ts.map +0 -1
- package/lib/typescript/components/DisplayTrack.d.ts +0 -9
- package/lib/typescript/components/DisplayTrack.d.ts.map +0 -1
- package/lib/typescript/components/HMSShareScreen.d.ts +0 -9
- package/lib/typescript/components/HMSShareScreen.d.ts.map +0 -1
- package/lib/typescript/components/HMSShowNetworkQuality.d.ts +0 -3
- package/lib/typescript/components/HMSShowNetworkQuality.d.ts.map +0 -1
- package/lib/typescript/components/LiveButton.d.ts +0 -17
- package/lib/typescript/components/LiveButton.d.ts.map +0 -1
- package/lib/typescript/components/Participants/ParticipantsFilter.d.ts +0 -6
- package/lib/typescript/components/Participants/ParticipantsFilter.d.ts.map +0 -1
- package/lib/typescript/components/Participants/ParticipantsHeader.d.ts +0 -9
- package/lib/typescript/components/Participants/ParticipantsHeader.d.ts.map +0 -1
- package/lib/typescript/components/Participants/SearchableParticipantsView.d.ts +0 -3
- package/lib/typescript/components/Participants/SearchableParticipantsView.d.ts.map +0 -1
- package/lib/typescript/components/ParticipantsModal.d.ts +0 -5
- package/lib/typescript/components/ParticipantsModal.d.ts.map +0 -1
- package/lib/typescript/components/PeerVideoTile/PeerAudioMutedIndicator.d.ts +0 -6
- package/lib/typescript/components/PeerVideoTile/PeerAudioMutedIndicator.d.ts.map +0 -1
- package/lib/typescript/components/Picker.d.ts +0 -9
- package/lib/typescript/components/Picker.d.ts.map +0 -1
- package/src/assets/100ms-logo.png +0 -0
- package/src/assets/brb.png +0 -0
- package/src/assets/icon.png +0 -0
- package/src/assets/illustration.png +0 -0
- package/src/assets/network_0.png +0 -0
- package/src/assets/network_1.png +0 -0
- package/src/assets/network_2.png +0 -0
- package/src/assets/network_3.png +0 -0
- package/src/assets/network_4.png +0 -0
- package/src/assets/user_music.png +0 -0
- package/src/components/ChatWindow.tsx +0 -706
- package/src/components/CustomInput.tsx +0 -138
- package/src/components/DisplayTrack.tsx +0 -92
- package/src/components/HMSShareScreen.tsx +0 -71
- package/src/components/HMSShowNetworkQuality.tsx +0 -68
- package/src/components/LiveButton.tsx +0 -77
- package/src/components/Participants/ParticipantsFilter.tsx +0 -144
- package/src/components/Participants/ParticipantsHeader.tsx +0 -64
- package/src/components/Participants/SearchableParticipantsView.tsx +0 -21
- package/src/components/ParticipantsModal.tsx +0 -46
- package/src/components/PeerVideoTile/PeerAudioMutedIndicator.tsx +0 -41
- package/src/components/Picker.tsx +0 -108
|
@@ -8,18 +8,18 @@ export async function getRoomLayout(
|
|
|
8
8
|
hmsInstance: HMSSDK,
|
|
9
9
|
authToken: string,
|
|
10
10
|
endpoint?: string
|
|
11
|
-
): Promise<Layout> {
|
|
11
|
+
): Promise<Layout[]> {
|
|
12
12
|
getLogger()?.verbose('#Function getRoomLayout', {
|
|
13
13
|
id: hmsInstance.id,
|
|
14
14
|
authToken,
|
|
15
15
|
endpoint,
|
|
16
16
|
});
|
|
17
17
|
|
|
18
|
-
const
|
|
18
|
+
const layoutAPIResponse: string = await HMSManagerModule.getRoomLayout({
|
|
19
19
|
id: hmsInstance.id,
|
|
20
20
|
authToken,
|
|
21
21
|
endpoint,
|
|
22
22
|
});
|
|
23
23
|
|
|
24
|
-
return parseRoomLayout(
|
|
24
|
+
return parseRoomLayout(layoutAPIResponse);
|
|
25
25
|
}
|
package/src/modules/parser.ts
CHANGED
|
@@ -3,19 +3,18 @@ import type {
|
|
|
3
3
|
Layout,
|
|
4
4
|
} from '@100mslive/types-prebuilt';
|
|
5
5
|
|
|
6
|
-
export async function parseRoomLayout(response: string): Promise<Layout> {
|
|
6
|
+
export async function parseRoomLayout(response: string): Promise<Layout[]> {
|
|
7
7
|
try {
|
|
8
8
|
const parsedResponse: LayoutAPIResponse = JSON.parse(response);
|
|
9
9
|
if (!parsedResponse.data) {
|
|
10
10
|
return Promise.reject('Layout API response is corrupted!');
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
if (!firstLayout) {
|
|
13
|
+
if (parsedResponse.data.length <= 0) {
|
|
15
14
|
return Promise.reject('No Layout found for the Room!');
|
|
16
15
|
}
|
|
17
16
|
|
|
18
|
-
return
|
|
17
|
+
return parsedResponse.data;
|
|
19
18
|
} catch (error) {
|
|
20
19
|
return Promise.reject(error);
|
|
21
20
|
}
|
package/src/redux/actionTypes.ts
CHANGED
|
@@ -56,6 +56,10 @@ const SET_MINI_VIEW_PEERTRACKNODE = 'SET_MINI_VIEW_PEERTRACKNODE';
|
|
|
56
56
|
|
|
57
57
|
const UPDATE_MINI_VIEW_PEERTRACKNODE = 'UPDATE_MINI_VIEW_PEERTRACKNODE';
|
|
58
58
|
|
|
59
|
+
const SET_FULLSCREEN_PEERTRACKNODE = 'SET_FULLSCREEN_PEERTRACKNODE';
|
|
60
|
+
|
|
61
|
+
const UPDATE_FULLSCREEN_PEERTRACKNODE = 'UPDATE_FULLSCREEN_PEERTRACKNODE';
|
|
62
|
+
|
|
59
63
|
const SET_LOCAL_PEERTRACKNODE = 'SET_LOCAL_PEERTRACKNODE';
|
|
60
64
|
|
|
61
65
|
const UPDATE_LOCAL_PEERTRACKNODE = 'UPDATE_LOCAL_PEERTRACKNODE';
|
|
@@ -66,6 +70,20 @@ const SET_GRID_VIEW_ACTIVE_PAGE = 'SET_GRID_VIEW_ACTIVE_PAGE';
|
|
|
66
70
|
|
|
67
71
|
const SET_STARTING_OR_STOPPING_RECORDING = 'SET_STARTING_OR_STOPPING_RECORDING';
|
|
68
72
|
|
|
73
|
+
const ADD_SCREENSHARE_TILE = 'ADD_SCREENSHARE_TILE';
|
|
74
|
+
|
|
75
|
+
const REMOVE_SCREENSHARE_TILE = 'REMOVE_SCREENSHARE_TILE';
|
|
76
|
+
|
|
77
|
+
const UPDATE_SCREENSHARE_TILE = 'UPDATE_SCREENSHARE_TILE';
|
|
78
|
+
|
|
79
|
+
const ADD_NOTIFICATION = 'ADD_NOTIFICATION';
|
|
80
|
+
|
|
81
|
+
const REMOVE_NOTIFICATION = 'REMOVE_NOTIFICATION';
|
|
82
|
+
|
|
83
|
+
const SET_ACTIVE_CHAT_BOTTOM_SHEET_TAB = 'SET_ACTIVE_CHAT_BOTTOM_SHEET_TAB';
|
|
84
|
+
|
|
85
|
+
const SET_CHAT_FILTER_SHEET_VISIBLE = 'SET_CHAT_FILTER_SHEET_VISIBLE';
|
|
86
|
+
|
|
69
87
|
export default {
|
|
70
88
|
ADD_PINNED_MESSAGE,
|
|
71
89
|
ADD_MESSAGE,
|
|
@@ -91,11 +109,20 @@ export default {
|
|
|
91
109
|
SET_INSET_VIEW_MINIMIZED,
|
|
92
110
|
SET_MINI_VIEW_PEERTRACKNODE,
|
|
93
111
|
UPDATE_MINI_VIEW_PEERTRACKNODE,
|
|
112
|
+
SET_FULLSCREEN_PEERTRACKNODE,
|
|
113
|
+
UPDATE_FULLSCREEN_PEERTRACKNODE,
|
|
94
114
|
SET_LOCAL_PEERTRACKNODE,
|
|
95
115
|
UPDATE_LOCAL_PEERTRACKNODE,
|
|
96
116
|
SET_STARTING_HLS_STREAM,
|
|
97
117
|
SET_GRID_VIEW_ACTIVE_PAGE,
|
|
98
118
|
SET_STARTING_OR_STOPPING_RECORDING,
|
|
119
|
+
ADD_SCREENSHARE_TILE,
|
|
120
|
+
REMOVE_SCREENSHARE_TILE,
|
|
121
|
+
UPDATE_SCREENSHARE_TILE,
|
|
122
|
+
ADD_NOTIFICATION,
|
|
123
|
+
REMOVE_NOTIFICATION,
|
|
124
|
+
SET_ACTIVE_CHAT_BOTTOM_SHEET_TAB,
|
|
125
|
+
SET_CHAT_FILTER_SHEET_VISIBLE,
|
|
99
126
|
};
|
|
100
127
|
|
|
101
128
|
export enum HmsStateActionTypes {
|
|
@@ -112,4 +139,10 @@ export enum HmsStateActionTypes {
|
|
|
112
139
|
ADD_TO_PREVIEW_PEERS_LIST = 'ADD_TO_PREVIEW_PEERS_LIST',
|
|
113
140
|
REMOVE_FROM_PREVIEW_PEERS_LIST = 'REMOVE_FROM_PREVIEW_PEERS_LIST',
|
|
114
141
|
SET_LAYOUT_CONFIG = 'SET_LAYOUT_CONFIG',
|
|
142
|
+
SET_ROLE_CHANGE_REQUEST = 'SET_ROLE_CHANGE_REQUEST',
|
|
143
|
+
ADD_PARTICIPANT = 'ADD_PARTICIPANT',
|
|
144
|
+
REMOVE_PARTICIPANT = 'REMOVE_PARTICIPANT',
|
|
145
|
+
ADD_UPDATE_PARTICIPANT = 'ADD_UPDATE_PARTICIPANT',
|
|
146
|
+
SET_ACTIVE_SPEAKERS = 'SET_ACTIVE_SPEAKERS',
|
|
147
|
+
SET_RECONNECTING = 'SET_RECONNECTING',
|
|
115
148
|
}
|
|
@@ -7,12 +7,15 @@ import type {
|
|
|
7
7
|
HMSRemoteAudioStats,
|
|
8
8
|
HMSRemoteVideoStats,
|
|
9
9
|
HMSRole,
|
|
10
|
+
HMSRoleChangeRequest,
|
|
10
11
|
HMSSDK,
|
|
11
12
|
HMSSessionStore,
|
|
13
|
+
HMSSpeaker,
|
|
12
14
|
} from '@100mslive/react-native-hms';
|
|
13
15
|
import type { Layout } from '@100mslive/types-prebuilt';
|
|
14
16
|
|
|
15
17
|
import type {
|
|
18
|
+
ChatBottomSheetTabs,
|
|
16
19
|
HMSIOSScreenShareConfig,
|
|
17
20
|
ModalTypes,
|
|
18
21
|
PeerTrackNode,
|
|
@@ -30,6 +33,7 @@ export const setPrebuiltData = (data: {
|
|
|
30
33
|
endPoints?: {
|
|
31
34
|
init: string;
|
|
32
35
|
token: string;
|
|
36
|
+
layout: string;
|
|
33
37
|
};
|
|
34
38
|
ios?: HMSIOSScreenShareConfig;
|
|
35
39
|
};
|
|
@@ -233,6 +237,20 @@ export const updateMiniViewPeerTrackNode = (
|
|
|
233
237
|
payload: data,
|
|
234
238
|
});
|
|
235
239
|
|
|
240
|
+
export const setFullScreenPeerTrackNode = (
|
|
241
|
+
fullScreenPeerTrackNode: PeerTrackNode | null
|
|
242
|
+
) => ({
|
|
243
|
+
type: actionTypes.SET_FULLSCREEN_PEERTRACKNODE,
|
|
244
|
+
payload: { fullScreenPeerTrackNode },
|
|
245
|
+
});
|
|
246
|
+
|
|
247
|
+
export const updateFullScreenPeerTrackNode = (
|
|
248
|
+
data: Partial<Omit<PeerTrackNode, 'id'>>
|
|
249
|
+
) => ({
|
|
250
|
+
type: actionTypes.UPDATE_FULLSCREEN_PEERTRACKNODE,
|
|
251
|
+
payload: data,
|
|
252
|
+
});
|
|
253
|
+
|
|
236
254
|
export const setLocalPeerTrackNode = (
|
|
237
255
|
localPeerTrackNode: PeerTrackNode | null
|
|
238
256
|
) => ({
|
|
@@ -252,7 +270,7 @@ export const changeStartingHLSStream = (startingHLSStream: boolean) => ({
|
|
|
252
270
|
payload: { startingHLSStream },
|
|
253
271
|
});
|
|
254
272
|
|
|
255
|
-
export const setLayoutConfig = (layoutConfig: Layout) => ({
|
|
273
|
+
export const setLayoutConfig = (layoutConfig: Layout[]) => ({
|
|
256
274
|
type: HmsStateActionTypes.SET_LAYOUT_CONFIG,
|
|
257
275
|
layoutConfig,
|
|
258
276
|
});
|
|
@@ -268,3 +286,80 @@ export const setStartingOrStoppingRecording = (
|
|
|
268
286
|
type: actionTypes.SET_STARTING_OR_STOPPING_RECORDING,
|
|
269
287
|
payload: { startingOrStoppingRecording },
|
|
270
288
|
});
|
|
289
|
+
|
|
290
|
+
export const addScreenshareTile = (screenshareNode: PeerTrackNode) => ({
|
|
291
|
+
type: actionTypes.ADD_SCREENSHARE_TILE,
|
|
292
|
+
payload: { screenshareNode },
|
|
293
|
+
});
|
|
294
|
+
|
|
295
|
+
export const removeScreenshareTile = (
|
|
296
|
+
peerTrackNodeId: PeerTrackNode['id']
|
|
297
|
+
) => ({
|
|
298
|
+
type: actionTypes.REMOVE_SCREENSHARE_TILE,
|
|
299
|
+
payload: { id: peerTrackNodeId },
|
|
300
|
+
});
|
|
301
|
+
|
|
302
|
+
export const updateScreenshareTile = (
|
|
303
|
+
data: Partial<PeerTrackNode> & { id: string }
|
|
304
|
+
) => ({
|
|
305
|
+
type: actionTypes.UPDATE_SCREENSHARE_TILE,
|
|
306
|
+
payload: data,
|
|
307
|
+
});
|
|
308
|
+
|
|
309
|
+
export const addNotification = (notification: {
|
|
310
|
+
id: string;
|
|
311
|
+
type: string;
|
|
312
|
+
peer: HMSPeer;
|
|
313
|
+
}) => ({
|
|
314
|
+
type: actionTypes.ADD_NOTIFICATION,
|
|
315
|
+
payload: { notification },
|
|
316
|
+
});
|
|
317
|
+
|
|
318
|
+
export const removeNotification = (notificationId: string) => ({
|
|
319
|
+
type: actionTypes.REMOVE_NOTIFICATION,
|
|
320
|
+
payload: { id: notificationId },
|
|
321
|
+
});
|
|
322
|
+
|
|
323
|
+
export const setRoleChangeRequest = (
|
|
324
|
+
roleChangeRequest: HMSRoleChangeRequest | null
|
|
325
|
+
) => ({
|
|
326
|
+
type: HmsStateActionTypes.SET_ROLE_CHANGE_REQUEST,
|
|
327
|
+
roleChangeRequest,
|
|
328
|
+
});
|
|
329
|
+
|
|
330
|
+
export const setActiveChatBottomSheetTab = (
|
|
331
|
+
activeChatBottomSheetTab: (typeof ChatBottomSheetTabs)[number]
|
|
332
|
+
) => ({
|
|
333
|
+
type: actionTypes.SET_ACTIVE_CHAT_BOTTOM_SHEET_TAB,
|
|
334
|
+
payload: { activeChatBottomSheetTab },
|
|
335
|
+
});
|
|
336
|
+
|
|
337
|
+
export const setChatFilterSheetVisible = (chatFilterSheetVisible: boolean) => ({
|
|
338
|
+
type: actionTypes.SET_CHAT_FILTER_SHEET_VISIBLE,
|
|
339
|
+
payload: { chatFilterSheetVisible },
|
|
340
|
+
});
|
|
341
|
+
|
|
342
|
+
export const addParticipant = (participant: HMSPeer) => ({
|
|
343
|
+
type: HmsStateActionTypes.ADD_PARTICIPANT,
|
|
344
|
+
participant,
|
|
345
|
+
});
|
|
346
|
+
|
|
347
|
+
export const removeParticipant = (participant: HMSPeer) => ({
|
|
348
|
+
type: HmsStateActionTypes.REMOVE_PARTICIPANT,
|
|
349
|
+
participant,
|
|
350
|
+
});
|
|
351
|
+
|
|
352
|
+
export const addUpdateParticipant = (participant: HMSPeer) => ({
|
|
353
|
+
type: HmsStateActionTypes.ADD_UPDATE_PARTICIPANT,
|
|
354
|
+
participant,
|
|
355
|
+
});
|
|
356
|
+
|
|
357
|
+
export const setActiveSpeakers = (activeSpeakers: HMSSpeaker[]) => ({
|
|
358
|
+
type: HmsStateActionTypes.SET_ACTIVE_SPEAKERS,
|
|
359
|
+
activeSpeakers,
|
|
360
|
+
});
|
|
361
|
+
|
|
362
|
+
export const setReconnecting = (reconnecting: boolean) => ({
|
|
363
|
+
type: HmsStateActionTypes.SET_RECONNECTING,
|
|
364
|
+
reconnecting,
|
|
365
|
+
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import ActionTypes, { HmsStateActionTypes } from '../actionTypes';
|
|
2
|
+
import { ChatBottomSheetTabs } from '../../utils/types';
|
|
2
3
|
import type { PeerTrackNode } from '../../utils/types';
|
|
3
4
|
import { SUPPORTED_ASPECT_RATIOS, ModalTypes } from '../../utils/types';
|
|
4
5
|
import { PipModes } from '../../utils/types';
|
|
@@ -45,6 +46,11 @@ type IntialStateType = {
|
|
|
45
46
|
localPeerTrackNode: null | PeerTrackNode;
|
|
46
47
|
gridViewActivePage: number;
|
|
47
48
|
startingOrStoppingRecording: boolean;
|
|
49
|
+
fullScreenPeerTrackNode: null | PeerTrackNode;
|
|
50
|
+
screensharePeerTrackNodes: PeerTrackNode[];
|
|
51
|
+
notifications: { id: string; type: string; peer: HMSPeer }[];
|
|
52
|
+
activeChatBottomSheetTab: (typeof ChatBottomSheetTabs)[number];
|
|
53
|
+
chatFilterSheetVisible: boolean;
|
|
48
54
|
};
|
|
49
55
|
|
|
50
56
|
const INITIAL_STATE: IntialStateType = {
|
|
@@ -57,7 +63,7 @@ const INITIAL_STATE: IntialStateType = {
|
|
|
57
63
|
autoSimulcast: true,
|
|
58
64
|
showStats: false,
|
|
59
65
|
showHLSStats: false,
|
|
60
|
-
enableHLSPlayerControls:
|
|
66
|
+
enableHLSPlayerControls: false,
|
|
61
67
|
showCustomHLSPlayerControls: false,
|
|
62
68
|
},
|
|
63
69
|
modalType: ModalTypes.DEFAULT,
|
|
@@ -69,6 +75,11 @@ const INITIAL_STATE: IntialStateType = {
|
|
|
69
75
|
localPeerTrackNode: null,
|
|
70
76
|
gridViewActivePage: 0,
|
|
71
77
|
startingOrStoppingRecording: false,
|
|
78
|
+
fullScreenPeerTrackNode: null,
|
|
79
|
+
screensharePeerTrackNodes: [],
|
|
80
|
+
notifications: [],
|
|
81
|
+
activeChatBottomSheetTab: ChatBottomSheetTabs[0],
|
|
82
|
+
chatFilterSheetVisible: false,
|
|
72
83
|
};
|
|
73
84
|
|
|
74
85
|
const appReducer = (
|
|
@@ -189,6 +200,23 @@ const appReducer = (
|
|
|
189
200
|
},
|
|
190
201
|
};
|
|
191
202
|
}
|
|
203
|
+
case ActionTypes.SET_FULLSCREEN_PEERTRACKNODE:
|
|
204
|
+
return {
|
|
205
|
+
...state,
|
|
206
|
+
fullScreenPeerTrackNode: action.payload.fullScreenPeerTrackNode,
|
|
207
|
+
};
|
|
208
|
+
case ActionTypes.UPDATE_FULLSCREEN_PEERTRACKNODE: {
|
|
209
|
+
if (!state.fullScreenPeerTrackNode) {
|
|
210
|
+
return state;
|
|
211
|
+
}
|
|
212
|
+
return {
|
|
213
|
+
...state,
|
|
214
|
+
fullScreenPeerTrackNode: {
|
|
215
|
+
...state.fullScreenPeerTrackNode,
|
|
216
|
+
...action.payload,
|
|
217
|
+
},
|
|
218
|
+
};
|
|
219
|
+
}
|
|
192
220
|
case ActionTypes.SET_STARTING_HLS_STREAM:
|
|
193
221
|
return { ...state, startingHLSStream: action.payload.startingHLSStream };
|
|
194
222
|
case ActionTypes.SET_GRID_VIEW_ACTIVE_PAGE:
|
|
@@ -201,6 +229,60 @@ const appReducer = (
|
|
|
201
229
|
...state,
|
|
202
230
|
startingOrStoppingRecording: action.payload.startingOrStoppingRecording,
|
|
203
231
|
};
|
|
232
|
+
case ActionTypes.ADD_SCREENSHARE_TILE: {
|
|
233
|
+
return {
|
|
234
|
+
...state,
|
|
235
|
+
screensharePeerTrackNodes: [
|
|
236
|
+
...state.screensharePeerTrackNodes,
|
|
237
|
+
action.payload.screenshareNode,
|
|
238
|
+
],
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
case ActionTypes.REMOVE_SCREENSHARE_TILE: {
|
|
242
|
+
return {
|
|
243
|
+
...state,
|
|
244
|
+
screensharePeerTrackNodes: state.screensharePeerTrackNodes.filter(
|
|
245
|
+
(node) => node.id !== action.payload.id
|
|
246
|
+
),
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
case ActionTypes.UPDATE_SCREENSHARE_TILE: {
|
|
250
|
+
return {
|
|
251
|
+
...state,
|
|
252
|
+
screensharePeerTrackNodes: state.screensharePeerTrackNodes.map(
|
|
253
|
+
(node) =>
|
|
254
|
+
node.id === action.payload.id
|
|
255
|
+
? { ...node, ...action.payload }
|
|
256
|
+
: node
|
|
257
|
+
),
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
case ActionTypes.ADD_NOTIFICATION: {
|
|
261
|
+
return {
|
|
262
|
+
...state,
|
|
263
|
+
notifications: [action.payload.notification, ...state.notifications],
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
case ActionTypes.REMOVE_NOTIFICATION: {
|
|
267
|
+
return {
|
|
268
|
+
...state,
|
|
269
|
+
notifications: state.notifications.filter(
|
|
270
|
+
(notification) => notification.id !== action.payload.id
|
|
271
|
+
),
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
case ActionTypes.SET_ACTIVE_CHAT_BOTTOM_SHEET_TAB: {
|
|
275
|
+
return {
|
|
276
|
+
...state,
|
|
277
|
+
activeChatBottomSheetTab: action.payload.activeChatBottomSheetTab,
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
case ActionTypes.SET_CHAT_FILTER_SHEET_VISIBLE: {
|
|
281
|
+
return {
|
|
282
|
+
...state,
|
|
283
|
+
chatFilterSheetVisible: action.payload.chatFilterSheetVisible,
|
|
284
|
+
};
|
|
285
|
+
}
|
|
204
286
|
case HmsStateActionTypes.CLEAR_STATES:
|
|
205
287
|
return INITIAL_STATE;
|
|
206
288
|
default:
|
|
@@ -1,19 +1,26 @@
|
|
|
1
|
+
import type { HMSRemotePeer, HMSRole } from '@100mslive/react-native-hms';
|
|
2
|
+
|
|
1
3
|
import { HmsStateActionTypes } from '../actionTypes';
|
|
4
|
+
import { ChatBroadcastFilter } from '../../utils/types';
|
|
5
|
+
|
|
6
|
+
type InitialType = {
|
|
7
|
+
showChatView: boolean;
|
|
8
|
+
typedMessage: string;
|
|
9
|
+
sendTo: HMSRemotePeer | HMSRole | typeof ChatBroadcastFilter;
|
|
10
|
+
};
|
|
2
11
|
|
|
3
|
-
const INITIAL_STATE = {
|
|
12
|
+
const INITIAL_STATE: InitialType = {
|
|
4
13
|
showChatView: false,
|
|
5
14
|
typedMessage: '',
|
|
6
|
-
sendTo:
|
|
7
|
-
sendToType: 'everyone', // 'everyone' | 'role' | 'direct'
|
|
15
|
+
sendTo: ChatBroadcastFilter,
|
|
8
16
|
};
|
|
9
17
|
|
|
10
|
-
const chatWindowReducer = (state = INITIAL_STATE, action: any):
|
|
18
|
+
const chatWindowReducer = (state = INITIAL_STATE, action: any): InitialType => {
|
|
11
19
|
switch (action.type) {
|
|
12
20
|
case 'SET_SENDTO':
|
|
13
21
|
return {
|
|
14
22
|
...state,
|
|
15
23
|
sendTo: action.sendTo,
|
|
16
|
-
sendToType: action.sendToType,
|
|
17
24
|
};
|
|
18
25
|
case 'SET_TYPED_MESSAGE':
|
|
19
26
|
return {
|
|
@@ -2,7 +2,9 @@ import type {
|
|
|
2
2
|
HMSLocalPeer,
|
|
3
3
|
HMSPeer,
|
|
4
4
|
HMSRole,
|
|
5
|
+
HMSRoleChangeRequest,
|
|
5
6
|
HMSRoom,
|
|
7
|
+
HMSSpeaker,
|
|
6
8
|
} from '@100mslive/react-native-hms';
|
|
7
9
|
import type { Layout } from '@100mslive/types-prebuilt';
|
|
8
10
|
import { HmsStateActionTypes } from '../actionTypes';
|
|
@@ -18,7 +20,13 @@ type ActionType =
|
|
|
18
20
|
| ResetAction
|
|
19
21
|
| AddToPreviewPeersList
|
|
20
22
|
| RemoveFromPreviewPeersList
|
|
21
|
-
| SetLayoutConfig
|
|
23
|
+
| SetLayoutConfig
|
|
24
|
+
| SetRoleChangeRequest
|
|
25
|
+
| AddParticipant
|
|
26
|
+
| RemoveParticipant
|
|
27
|
+
| AddUpdateParticipant
|
|
28
|
+
| SetActiveSpeakers
|
|
29
|
+
| SetReconnecting;
|
|
22
30
|
|
|
23
31
|
type SetRoomAction = {
|
|
24
32
|
type: HmsStateActionTypes.SET_ROOM_STATE;
|
|
@@ -71,31 +79,69 @@ type RemoveFromPreviewPeersList = {
|
|
|
71
79
|
|
|
72
80
|
type SetLayoutConfig = {
|
|
73
81
|
type: HmsStateActionTypes.SET_LAYOUT_CONFIG;
|
|
74
|
-
layoutConfig: Layout;
|
|
82
|
+
layoutConfig: Layout[];
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
type SetRoleChangeRequest = {
|
|
86
|
+
type: HmsStateActionTypes.SET_ROLE_CHANGE_REQUEST;
|
|
87
|
+
roleChangeRequest: HMSRoleChangeRequest | null;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
type AddParticipant = {
|
|
91
|
+
type: HmsStateActionTypes.ADD_PARTICIPANT;
|
|
92
|
+
participant: HMSPeer;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
type RemoveParticipant = {
|
|
96
|
+
type: HmsStateActionTypes.REMOVE_PARTICIPANT;
|
|
97
|
+
participant: HMSPeer;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
type AddUpdateParticipant = {
|
|
101
|
+
type: HmsStateActionTypes.ADD_UPDATE_PARTICIPANT;
|
|
102
|
+
participant: HMSPeer;
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
type SetActiveSpeakers = {
|
|
106
|
+
type: HmsStateActionTypes.SET_ACTIVE_SPEAKERS;
|
|
107
|
+
activeSpeakers: HMSSpeaker[];
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
type SetReconnecting = {
|
|
111
|
+
type: HmsStateActionTypes.SET_RECONNECTING;
|
|
112
|
+
reconnecting: boolean;
|
|
75
113
|
};
|
|
76
114
|
|
|
77
115
|
type IntialStateType = {
|
|
78
116
|
isLocalAudioMuted: boolean | undefined;
|
|
79
117
|
isLocalVideoMuted: boolean | undefined;
|
|
80
118
|
isLocalScreenShared: boolean | undefined;
|
|
119
|
+
reconnecting: boolean;
|
|
81
120
|
roomLocallyMuted: boolean;
|
|
82
121
|
room: HMSRoom | null;
|
|
83
122
|
localPeer: HMSLocalPeer | null;
|
|
123
|
+
participants: (HMSPeer | HMSLocalPeer)[];
|
|
124
|
+
activeSpeakers: HMSSpeaker[];
|
|
84
125
|
roles: HMSRole[];
|
|
85
126
|
previewPeersList: HMSPeer[];
|
|
86
|
-
layoutConfig: Layout | null;
|
|
127
|
+
layoutConfig: Layout[] | null;
|
|
128
|
+
roleChangeRequest: HMSRoleChangeRequest | null;
|
|
87
129
|
};
|
|
88
130
|
|
|
89
131
|
const INITIAL_STATE: IntialStateType = {
|
|
90
132
|
isLocalAudioMuted: undefined,
|
|
91
133
|
isLocalVideoMuted: undefined,
|
|
92
134
|
isLocalScreenShared: undefined,
|
|
135
|
+
reconnecting: false,
|
|
93
136
|
roomLocallyMuted: false,
|
|
94
137
|
room: null,
|
|
95
138
|
localPeer: null,
|
|
139
|
+
participants: [],
|
|
140
|
+
activeSpeakers: [],
|
|
96
141
|
roles: [],
|
|
97
142
|
previewPeersList: [],
|
|
98
143
|
layoutConfig: null,
|
|
144
|
+
roleChangeRequest: null,
|
|
99
145
|
};
|
|
100
146
|
|
|
101
147
|
const hmsStatesReducer = (
|
|
@@ -108,18 +154,94 @@ const hmsStatesReducer = (
|
|
|
108
154
|
...state,
|
|
109
155
|
room: action.room,
|
|
110
156
|
};
|
|
111
|
-
case HmsStateActionTypes.SET_LOCAL_PEER_STATE:
|
|
157
|
+
case HmsStateActionTypes.SET_LOCAL_PEER_STATE: {
|
|
158
|
+
const participantsHasLocalPeer =
|
|
159
|
+
action.localPeer !== null
|
|
160
|
+
? state.participants.findIndex(
|
|
161
|
+
(participant) => participant.peerID === action.localPeer?.peerID
|
|
162
|
+
) >= 0
|
|
163
|
+
: false;
|
|
164
|
+
|
|
112
165
|
return {
|
|
113
166
|
...state,
|
|
114
167
|
localPeer: action.localPeer,
|
|
115
168
|
isLocalAudioMuted: action.localPeer?.audioTrack?.isMute(),
|
|
116
169
|
isLocalVideoMuted: action.localPeer?.videoTrack?.isMute(),
|
|
170
|
+
|
|
171
|
+
// Adding or updating local peer in participants list
|
|
172
|
+
participants:
|
|
173
|
+
action.localPeer !== null
|
|
174
|
+
? participantsHasLocalPeer
|
|
175
|
+
? state.participants.map((participant) =>
|
|
176
|
+
participant.peerID === action.localPeer?.peerID
|
|
177
|
+
? action.localPeer
|
|
178
|
+
: participant
|
|
179
|
+
)
|
|
180
|
+
: [action.localPeer, ...state.participants]
|
|
181
|
+
: state.participants,
|
|
117
182
|
};
|
|
183
|
+
}
|
|
184
|
+
case HmsStateActionTypes.ADD_PARTICIPANT: {
|
|
185
|
+
if (
|
|
186
|
+
state.participants.findIndex(
|
|
187
|
+
(participant) => participant.peerID === action.participant.peerID
|
|
188
|
+
) >= 0
|
|
189
|
+
) {
|
|
190
|
+
return state;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
return {
|
|
194
|
+
...state,
|
|
195
|
+
participants: [...state.participants, action.participant],
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
case HmsStateActionTypes.REMOVE_PARTICIPANT: {
|
|
199
|
+
if (
|
|
200
|
+
state.participants.findIndex(
|
|
201
|
+
(participant) => participant.peerID === action.participant.peerID
|
|
202
|
+
) >= 0
|
|
203
|
+
) {
|
|
204
|
+
return {
|
|
205
|
+
...state,
|
|
206
|
+
participants: state.participants.filter(
|
|
207
|
+
(participant) => participant.peerID !== action.participant.peerID
|
|
208
|
+
),
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
return state;
|
|
213
|
+
}
|
|
214
|
+
case HmsStateActionTypes.ADD_UPDATE_PARTICIPANT: {
|
|
215
|
+
if (
|
|
216
|
+
state.participants.findIndex(
|
|
217
|
+
(participant) => participant.peerID === action.participant.peerID
|
|
218
|
+
) >= 0
|
|
219
|
+
) {
|
|
220
|
+
return {
|
|
221
|
+
...state,
|
|
222
|
+
participants: state.participants.map((participant) =>
|
|
223
|
+
participant.peerID === action.participant.peerID
|
|
224
|
+
? action.participant
|
|
225
|
+
: participant
|
|
226
|
+
),
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
return {
|
|
231
|
+
...state,
|
|
232
|
+
participants: [...state.participants, action.participant],
|
|
233
|
+
};
|
|
234
|
+
}
|
|
118
235
|
case HmsStateActionTypes.SET_ROLES_STATE:
|
|
119
236
|
return {
|
|
120
237
|
...state,
|
|
121
238
|
roles: action.roles,
|
|
122
239
|
};
|
|
240
|
+
case HmsStateActionTypes.SET_ACTIVE_SPEAKERS:
|
|
241
|
+
return {
|
|
242
|
+
...state,
|
|
243
|
+
activeSpeakers: action.activeSpeakers,
|
|
244
|
+
};
|
|
123
245
|
case HmsStateActionTypes.SET_IS_LOCAL_AUDIO_MUTED_STATE:
|
|
124
246
|
return {
|
|
125
247
|
...state,
|
|
@@ -157,6 +279,16 @@ const hmsStatesReducer = (
|
|
|
157
279
|
...state,
|
|
158
280
|
layoutConfig: action.layoutConfig,
|
|
159
281
|
};
|
|
282
|
+
case HmsStateActionTypes.SET_ROLE_CHANGE_REQUEST:
|
|
283
|
+
return {
|
|
284
|
+
...state,
|
|
285
|
+
roleChangeRequest: action.roleChangeRequest,
|
|
286
|
+
};
|
|
287
|
+
case HmsStateActionTypes.SET_RECONNECTING:
|
|
288
|
+
return {
|
|
289
|
+
...state,
|
|
290
|
+
reconnecting: action.reconnecting,
|
|
291
|
+
};
|
|
160
292
|
case HmsStateActionTypes.CLEAR_STATES:
|
|
161
293
|
return INITIAL_STATE;
|
|
162
294
|
default:
|
|
@@ -15,7 +15,7 @@ type ActionType = {
|
|
|
15
15
|
type IntialStateType = {
|
|
16
16
|
userName: string;
|
|
17
17
|
userId: string | undefined;
|
|
18
|
-
endPoints: { init: string; token: string } | undefined;
|
|
18
|
+
endPoints: { init: string; token: string; layout: string; } | undefined;
|
|
19
19
|
debugMode: boolean;
|
|
20
20
|
roomID: string;
|
|
21
21
|
hmsInstance?: HMSSDK;
|
package/src/utils/functions.ts
CHANGED
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
HMSTrackType,
|
|
12
12
|
HMSTrackSource,
|
|
13
13
|
HMSVideoTrack,
|
|
14
|
+
HMSRole,
|
|
14
15
|
} from '@100mslive/react-native-hms';
|
|
15
16
|
|
|
16
17
|
import type { PeerTrackNode } from './types';
|
|
@@ -53,6 +54,7 @@ export const parseMetadata = (
|
|
|
53
54
|
): {
|
|
54
55
|
isHandRaised?: boolean;
|
|
55
56
|
isBRBOn?: boolean;
|
|
57
|
+
prevRole?: string;
|
|
56
58
|
} => {
|
|
57
59
|
try {
|
|
58
60
|
if (metadata) {
|
|
@@ -568,3 +570,10 @@ export function groupIntoTriplets<T>(list: T[], fill?: boolean) {
|
|
|
568
570
|
}
|
|
569
571
|
return pairs;
|
|
570
572
|
}
|
|
573
|
+
|
|
574
|
+
export const isParticipantHostOrBroadcaster = (role: HMSRole): boolean => {
|
|
575
|
+
const allowed = role.publishSettings?.allowed;
|
|
576
|
+
const canChangeRole = role.permissions?.changeRole;
|
|
577
|
+
|
|
578
|
+
return Boolean(allowed && allowed.length > 0 && canChangeRole);
|
|
579
|
+
};
|
package/src/utils/theme.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { StyleSheet } from 'react-native';
|
|
2
|
+
import { Theme_ThemeType } from '@100mslive/types-prebuilt';
|
|
2
3
|
import type {
|
|
3
4
|
ColorPalette,
|
|
4
5
|
Theme,
|
|
@@ -193,12 +194,13 @@ export function hexToRgbA(hex: string, alpha: number = 1) {
|
|
|
193
194
|
)}, ${alpha})`;
|
|
194
195
|
}
|
|
195
196
|
|
|
196
|
-
export const DEFAULT_TYPOGRAPHY: Typography = {
|
|
197
|
+
export const DEFAULT_TYPOGRAPHY: Required<Typography> = {
|
|
197
198
|
font_family: 'Inter',
|
|
198
199
|
};
|
|
199
200
|
|
|
200
201
|
export const DEFAULT_THEME: Required<Theme> = {
|
|
201
202
|
default: true,
|
|
202
203
|
name: 'static',
|
|
204
|
+
theme_type: Theme_ThemeType.THEME_TYPE_DARK,
|
|
203
205
|
palette: STATIC_COLOR_PALETTE,
|
|
204
206
|
};
|
package/src/utils/types.ts
CHANGED
|
@@ -44,10 +44,9 @@ export enum ModalTypes {
|
|
|
44
44
|
LEAVE_ROOM = 'leaveRoom',
|
|
45
45
|
END_ROOM = 'endRoom',
|
|
46
46
|
SETTINGS = 'settings',
|
|
47
|
-
CHAT = 'chat',
|
|
48
47
|
ZOOM = 'zoom',
|
|
49
48
|
PREVIEW = 'preview',
|
|
50
|
-
|
|
49
|
+
CHAT_AND_PARTICIPANTS = 'chat_and_participants',
|
|
51
50
|
AUDIO_MIXING_MODE = 'audioMixingMode',
|
|
52
51
|
SET_AUDIO_SHARE_VOLUME = 'setAudioShareVolume',
|
|
53
52
|
WELCOME_SETTINGS = 'welcomeSettings',
|
|
@@ -95,6 +94,11 @@ export const SUPPORTED_ASPECT_RATIOS = [
|
|
|
95
94
|
];
|
|
96
95
|
|
|
97
96
|
export enum MaxTilesInOnePage {
|
|
97
|
+
IN_PORTRAIT_WITH_SCREENSHARES = 2,
|
|
98
98
|
IN_PORTRAIT = 6,
|
|
99
99
|
IN_LANDSCAPE = 2,
|
|
100
100
|
}
|
|
101
|
+
|
|
102
|
+
export const ChatBottomSheetTabs = ['Chat', 'Participants'] as const;
|
|
103
|
+
|
|
104
|
+
export const ChatBroadcastFilter = { name: 'everyone' } as const;
|
package/src/utils.ts
CHANGED
|
@@ -22,3 +22,9 @@ export const getJoinConfig = (): typeof DEFAULT_JOINING_CONFIG => {
|
|
|
22
22
|
|
|
23
23
|
return config;
|
|
24
24
|
};
|
|
25
|
+
|
|
26
|
+
export enum NotificationTypes {
|
|
27
|
+
ROLE_CHANGE_DECLINED = 'role_change_declined',
|
|
28
|
+
HAND_RAISE = 'hand_raise',
|
|
29
|
+
LOCAL_SCREENSHARE = 'local_screenshare',
|
|
30
|
+
}
|
|
Binary file
|