@100mslive/react-native-room-kit 0.2.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -11
- package/lib/commonjs/HMSInstanceSetup.js +2 -2
- package/lib/commonjs/HMSInstanceSetup.js.map +1 -1
- package/lib/commonjs/HMSPrebuilt.js +8 -10
- package/lib/commonjs/HMSPrebuilt.js.map +1 -1
- package/lib/commonjs/HMSRoomSetup.js +30 -33
- 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/Chevron/index.js +5 -1
- package/lib/commonjs/Icons/Chevron/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/Leave/index.js +5 -1
- package/lib/commonjs/Icons/Leave/index.js.map +1 -1
- 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/WelcomeHand/assets/welcome-hand.png +0 -0
- package/lib/commonjs/Icons/WelcomeHand/assets/welcome-hand@2x.png +0 -0
- package/lib/commonjs/Icons/WelcomeHand/assets/welcome-hand@3x.png +0 -0
- package/lib/commonjs/Icons/WelcomeHand/index.js +30 -0
- package/lib/commonjs/Icons/WelcomeHand/index.js.map +1 -0
- package/lib/commonjs/Icons/index.js +33 -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/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/AvatarView.js +2 -2
- package/lib/commonjs/components/AvatarView.js.map +1 -1
- package/lib/commonjs/components/BackButton.js +2 -2
- package/lib/commonjs/components/BackButton.js.map +1 -1
- package/lib/commonjs/components/BottomSheet.js +8 -5
- package/lib/commonjs/components/BottomSheet.js.map +1 -1
- package/lib/commonjs/components/ChangeNameModalContent.js +14 -7
- package/lib/commonjs/components/ChangeNameModalContent.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatBanner.js +37 -57
- package/lib/commonjs/components/Chat/ChatBanner.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js +82 -0
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js.map +1 -0
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js +68 -0
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js.map +1 -0
- package/lib/commonjs/components/Chat/ChatFilterItem.js +70 -0
- package/lib/commonjs/components/Chat/ChatFilterItem.js.map +1 -0
- package/lib/commonjs/components/Chat/ChatFilterView.js +197 -0
- package/lib/commonjs/components/Chat/ChatFilterView.js.map +1 -0
- package/lib/commonjs/components/Chat/ChatList.js +9 -10
- package/lib/commonjs/components/Chat/ChatList.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatMessage.js +38 -139
- package/lib/commonjs/components/Chat/ChatMessage.js.map +1 -1
- package/lib/commonjs/components/Chat/PinnedMessage.js +41 -45
- 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 +65 -0
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js.map +1 -0
- package/lib/commonjs/components/ChatAndParticipants/ChatView.js +36 -0
- package/lib/commonjs/components/ChatAndParticipants/ChatView.js.map +1 -0
- package/lib/commonjs/components/ChatAndParticipants/ParticipantsView.js +40 -0
- 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 +8 -21
- package/lib/commonjs/components/DisplayView.js.map +1 -1
- package/lib/commonjs/components/EndRoomModalContent.js +22 -8
- package/lib/commonjs/components/EndRoomModalContent.js.map +1 -1
- package/lib/commonjs/components/Footer.js +40 -32
- 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 +132 -52
- package/lib/commonjs/components/GridView.js.map +1 -1
- package/lib/commonjs/components/HLSFooter.js +35 -0
- package/lib/commonjs/components/HLSFooter.js.map +1 -0
- package/lib/commonjs/components/HLSView.js +12 -24
- package/lib/commonjs/components/HLSView.js.map +1 -1
- package/lib/commonjs/components/HMSBaseButton.js +2 -2
- package/lib/commonjs/components/HMSBaseButton.js.map +1 -1
- package/lib/commonjs/components/HMSChat.js +17 -16
- package/lib/commonjs/components/HMSChat.js.map +1 -1
- package/lib/commonjs/components/HMSDangerButton.js +4 -3
- package/lib/commonjs/components/HMSDangerButton.js.map +1 -1
- package/lib/commonjs/components/HMSHLSMessage.js +66 -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 +3 -8
- package/lib/commonjs/components/HMSHLSNotStarted.js.map +1 -1
- package/lib/commonjs/components/HMSHLSStreamLoading.js +6 -4
- package/lib/commonjs/components/HMSHLSStreamLoading.js.map +1 -1
- package/lib/commonjs/components/HMSHandRaiseNotification.js +84 -0
- package/lib/commonjs/components/HMSHandRaiseNotification.js.map +1 -0
- package/lib/commonjs/components/HMSKeyboardAvoidingView.js +48 -0
- package/lib/commonjs/components/HMSKeyboardAvoidingView.js.map +1 -0
- package/lib/commonjs/components/HMSLiveIndicator.js +104 -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 +6 -25
- package/lib/commonjs/components/HMSLocalVideoView.js.map +1 -1
- package/lib/commonjs/components/HMSManageAudioOutput.js +9 -3
- package/lib/commonjs/components/HMSManageAudioOutput.js.map +1 -1
- package/lib/commonjs/components/HMSManageCameraRotation.js +2 -2
- package/lib/commonjs/components/HMSManageCameraRotation.js.map +1 -1
- package/lib/commonjs/components/HMSManageLeave.js +37 -14
- package/lib/commonjs/components/HMSManageLeave.js.map +1 -1
- package/lib/commonjs/components/HMSManageLocalAudio.js +2 -2
- package/lib/commonjs/components/HMSManageLocalAudio.js.map +1 -1
- package/lib/commonjs/components/HMSManageLocalVideo.js +2 -2
- package/lib/commonjs/components/HMSManageLocalVideo.js.map +1 -1
- package/lib/commonjs/components/HMSManageRaiseHand.js +23 -11
- package/lib/commonjs/components/HMSManageRaiseHand.js.map +1 -1
- package/lib/commonjs/components/HMSMeetingEnded.js +2 -2
- package/lib/commonjs/components/HMSMeetingEnded.js.map +1 -1
- package/lib/commonjs/components/HMSNotification.js +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/HMSPreviewEditName.js +2 -2
- package/lib/commonjs/components/HMSPreviewEditName.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js +5 -4
- package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewJoinButton.js +11 -7
- package/lib/commonjs/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewNetworkQuality.js +3 -3
- package/lib/commonjs/components/HMSPreviewNetworkQuality.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewPeersList.js +2 -2
- package/lib/commonjs/components/HMSPreviewPeersList.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewSubtitle.js +3 -5
- package/lib/commonjs/components/HMSPreviewSubtitle.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewTile.js +3 -3
- package/lib/commonjs/components/HMSPreviewTile.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewTitle.js +3 -5
- package/lib/commonjs/components/HMSPreviewTitle.js.map +1 -1
- package/lib/commonjs/components/HMSPrimaryButton.js +2 -2
- package/lib/commonjs/components/HMSPrimaryButton.js.map +1 -1
- package/lib/commonjs/components/HMSRecordingIndicator.js +12 -5
- 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/HMSRoomOptions.js +2 -2
- package/lib/commonjs/components/HMSRoomOptions.js.map +1 -1
- package/lib/commonjs/components/HMSSendMessageInput.js +57 -0
- package/lib/commonjs/components/HMSSendMessageInput.js.map +1 -0
- package/lib/commonjs/components/HMSTextInput.js +101 -15
- 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 +21 -127
- package/lib/commonjs/components/Header.js.map +1 -1
- package/lib/commonjs/components/LocalPeerRegularVideoView.js +2 -2
- package/lib/commonjs/components/LocalPeerRegularVideoView.js.map +1 -1
- package/lib/commonjs/components/LocalPeerScreenshareView.js +3 -9
- package/lib/commonjs/components/LocalPeerScreenshareView.js.map +1 -1
- package/lib/commonjs/components/Meeting.js +8 -7
- package/lib/commonjs/components/Meeting.js.map +1 -1
- package/lib/commonjs/components/MeetingScreenContent.js +23 -10
- 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 +10 -5
- package/lib/commonjs/components/MiniView.js.map +1 -1
- package/lib/commonjs/components/Modals.js +90 -319
- 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 +21 -0
- package/lib/commonjs/components/OverlayedViews.js.map +1 -0
- package/lib/commonjs/components/PIPView.js +24 -18
- package/lib/commonjs/components/PIPView.js.map +1 -1
- package/lib/commonjs/components/PaginationDots.js +7 -8
- package/lib/commonjs/components/PaginationDots.js.map +1 -1
- package/lib/commonjs/components/Participants/MultiRoleParticipantsList.js +65 -0
- package/lib/commonjs/components/Participants/MultiRoleParticipantsList.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsAccordian.js +60 -0
- package/lib/commonjs/components/Participants/ParticipantsAccordian.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsAccordianExpanded.js +25 -0
- package/lib/commonjs/components/Participants/ParticipantsAccordianExpanded.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsGroupFooter.js +61 -0
- package/lib/commonjs/components/Participants/ParticipantsGroupFooter.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js +131 -0
- package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsGroupOptions.js +79 -0
- package/lib/commonjs/components/Participants/ParticipantsGroupOptions.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsItem.js +123 -0
- package/lib/commonjs/components/Participants/ParticipantsItem.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsItemOption.js +45 -0
- package/lib/commonjs/components/Participants/ParticipantsItemOption.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsItemOptions.js +219 -0
- package/lib/commonjs/components/Participants/ParticipantsItemOptions.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsList.js +171 -220
- package/lib/commonjs/components/Participants/ParticipantsList.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsListFooter.js +43 -0
- package/lib/commonjs/components/Participants/ParticipantsListFooter.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsSeachInput.js +38 -32
- package/lib/commonjs/components/Participants/ParticipantsSeachInput.js.map +1 -1
- package/lib/commonjs/components/Participants/index.js +4 -26
- package/lib/commonjs/components/Participants/index.js.map +1 -1
- package/lib/commonjs/components/ParticipantsCount.js +3 -4
- package/lib/commonjs/components/ParticipantsCount.js.map +1 -1
- package/lib/commonjs/components/PeerDisplayView.js +1 -2
- package/lib/commonjs/components/PeerDisplayView.js.map +1 -1
- package/lib/commonjs/components/PeerMinimizedView.js +4 -5
- package/lib/commonjs/components/PeerMinimizedView.js.map +1 -1
- package/lib/commonjs/components/PeerRTCStatsContainer.js +3 -4
- package/lib/commonjs/components/PeerRTCStatsContainer.js.map +1 -1
- package/lib/commonjs/components/PeerRTCStatsView.js +1 -2
- package/lib/commonjs/components/PeerRTCStatsView.js.map +1 -1
- package/lib/commonjs/components/PeerSettingsModalContent.js +47 -123
- package/lib/commonjs/components/PeerSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/AvatarView.js +23 -10
- 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/PeerAudioIndicator.js +75 -0
- package/lib/commonjs/components/PeerVideoTile/PeerAudioIndicator.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js +22 -12
- package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js +12 -4
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js +60 -25
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/VideoView.js +46 -14
- package/lib/commonjs/components/PeerVideoTile/VideoView.js.map +1 -1
- package/lib/commonjs/components/PressableIcon.js +12 -7
- package/lib/commonjs/components/PressableIcon.js.map +1 -1
- package/lib/commonjs/components/Preview.js +10 -15
- package/lib/commonjs/components/Preview.js.map +1 -1
- package/lib/commonjs/components/PreviewForRoleChangeModal.js +326 -0
- package/lib/commonjs/components/PreviewForRoleChangeModal.js.map +1 -0
- package/lib/commonjs/components/ReconnectionView.js +65 -0
- package/lib/commonjs/components/ReconnectionView.js.map +1 -0
- package/lib/commonjs/components/RoomSettingsModalContent.js +54 -27
- package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js +32 -71
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js.map +1 -1
- package/lib/commonjs/components/StatusBar.js +2 -2
- package/lib/commonjs/components/StatusBar.js.map +1 -1
- package/lib/commonjs/components/StopRecordingModalContent.js +2 -2
- package/lib/commonjs/components/StopRecordingModalContent.js.map +1 -1
- package/lib/commonjs/components/StreamingQualityModalContent.js +10 -11
- package/lib/commonjs/components/StreamingQualityModalContent.js.map +1 -1
- package/lib/commonjs/components/Tile.js +1 -2
- package/lib/commonjs/components/Tile.js.map +1 -1
- package/lib/commonjs/components/TilesContainer.js +32 -11
- package/lib/commonjs/components/TilesContainer.js.map +1 -1
- package/lib/commonjs/components/UnmountAfterDelay.js +3 -4
- package/lib/commonjs/components/UnmountAfterDelay.js.map +1 -1
- package/lib/commonjs/components/WebrtcView.js +16 -19
- package/lib/commonjs/components/WebrtcView.js.map +1 -1
- package/lib/commonjs/components/WelcomeInMeeting.js +20 -23
- 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/components/styles.js +1 -2
- package/lib/commonjs/components/styles.js.map +1 -1
- package/lib/commonjs/hooks-sdk.js +46 -1
- package/lib/commonjs/hooks-sdk.js.map +1 -1
- package/lib/commonjs/hooks-util-selectors.js +43 -9
- package/lib/commonjs/hooks-util-selectors.js.map +1 -1
- package/lib/commonjs/hooks-util.js +657 -237
- 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 +30 -5
- package/lib/commonjs/redux/actionTypes.js.map +1 -1
- package/lib/commonjs/redux/actions/index.js +108 -3
- package/lib/commonjs/redux/actions/index.js.map +1 -1
- package/lib/commonjs/redux/index.js +1 -2
- package/lib/commonjs/redux/index.js.map +1 -1
- package/lib/commonjs/redux/reducers/appState.js +80 -6
- package/lib/commonjs/redux/reducers/appState.js.map +1 -1
- package/lib/commonjs/redux/reducers/chatWindow.js +4 -9
- package/lib/commonjs/redux/reducers/chatWindow.js.map +1 -1
- package/lib/commonjs/redux/reducers/hmsStates.js +242 -9
- package/lib/commonjs/redux/reducers/hmsStates.js.map +1 -1
- package/lib/commonjs/redux/reducers/index.js +1 -2
- package/lib/commonjs/redux/reducers/index.js.map +1 -1
- package/lib/commonjs/redux/reducers/message.js +3 -4
- package/lib/commonjs/redux/reducers/message.js.map +1 -1
- package/lib/commonjs/redux/reducers/userState.js +3 -4
- package/lib/commonjs/redux/reducers/userState.js.map +1 -1
- package/lib/commonjs/types.js +1 -2
- package/lib/commonjs/types.js.map +1 -1
- package/lib/commonjs/utils/dimension.js +2 -4
- package/lib/commonjs/utils/dimension.js.map +1 -1
- package/lib/commonjs/utils/functions.js +10 -3
- package/lib/commonjs/utils/functions.js.map +1 -1
- package/lib/commonjs/utils/theme.js +7 -10
- package/lib/commonjs/utils/theme.js.map +1 -1
- package/lib/commonjs/utils/types.js +17 -21
- package/lib/commonjs/utils/types.js.map +1 -1
- package/lib/commonjs/utils.js +7 -1
- package/lib/commonjs/utils.js.map +1 -1
- package/lib/module/HMSPrebuilt.js +5 -6
- package/lib/module/HMSPrebuilt.js.map +1 -1
- package/lib/module/HMSRoomSetup.js +30 -33
- 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/Chevron/index.js +5 -1
- package/lib/module/Icons/Chevron/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/Leave/index.js +5 -1
- package/lib/module/Icons/Leave/index.js.map +1 -1
- 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/WelcomeHand/assets/welcome-hand.png +0 -0
- package/lib/module/Icons/WelcomeHand/assets/welcome-hand@2x.png +0 -0
- package/lib/module/Icons/WelcomeHand/assets/welcome-hand@3x.png +0 -0
- package/lib/module/Icons/WelcomeHand/index.js +22 -0
- package/lib/module/Icons/WelcomeHand/index.js.map +1 -0
- package/lib/module/Icons/index.js +3 -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/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 +13 -6
- 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 +97 -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 +31 -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/HMSDangerButton.js +2 -1
- package/lib/module/components/HMSDangerButton.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/HMSHLSStreamLoading.js +5 -3
- package/lib/module/components/HMSHLSStreamLoading.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 +39 -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 +37 -14
- package/lib/module/components/HMSManageLeave.js.map +1 -1
- package/lib/module/components/HMSManageRaiseHand.js +22 -10
- package/lib/module/components/HMSManageRaiseHand.js.map +1 -1
- package/lib/module/components/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/HMSPreviewHLSLiveIndicator.js +3 -2
- package/lib/module/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
- package/lib/module/components/HMSPreviewJoinButton.js +10 -6
- 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/HMSPreviewTile.js +1 -1
- package/lib/module/components/HMSPreviewTile.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 +10 -3
- 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 +100 -14
- 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/PIPView.js +21 -13
- package/lib/module/components/PIPView.js.map +1 -1
- package/lib/module/components/PaginationDots.js +4 -4
- package/lib/module/components/PaginationDots.js.map +1 -1
- package/lib/module/components/Participants/MultiRoleParticipantsList.js +56 -0
- package/lib/module/components/Participants/MultiRoleParticipantsList.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsAccordian.js +51 -0
- package/lib/module/components/Participants/ParticipantsAccordian.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsAccordianExpanded.js +16 -0
- package/lib/module/components/Participants/ParticipantsAccordianExpanded.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsGroupFooter.js +53 -0
- package/lib/module/components/Participants/ParticipantsGroupFooter.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsGroupHeader.js +122 -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 +115 -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 +171 -219
- package/lib/module/components/Participants/ParticipantsList.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsListFooter.js +35 -0
- package/lib/module/components/Participants/ParticipantsListFooter.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsSeachInput.js +37 -30
- package/lib/module/components/Participants/ParticipantsSeachInput.js.map +1 -1
- package/lib/module/components/Participants/index.js +1 -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 +20 -6
- 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 +65 -0
- package/lib/module/components/PeerVideoTile/PeerAudioIndicator.js.map +1 -0
- package/lib/module/components/PeerVideoTile/PeerMetadata.js +21 -11
- package/lib/module/components/PeerVideoTile/PeerMetadata.js.map +1 -1
- 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 +59 -22
- 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 +11 -14
- package/lib/module/components/Preview.js.map +1 -1
- package/lib/module/components/PreviewForRoleChangeModal.js +317 -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 +53 -26
- package/lib/module/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/module/components/RoomSettingsModalDebugModeContent.js +32 -71
- 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 +13 -15
- package/lib/module/components/WebrtcView.js.map +1 -1
- package/lib/module/components/WelcomeInMeeting.js +19 -22
- 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-sdk.js +46 -1
- package/lib/module/hooks-sdk.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 +654 -239
- 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 +28 -1
- package/lib/module/redux/actionTypes.js.map +1 -1
- package/lib/module/redux/actions/index.js +87 -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 +241 -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 +7 -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/Chevron/index.d.ts +1 -1
- package/lib/typescript/Icons/Chevron/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/Leave/index.d.ts.map +1 -1
- 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/WelcomeHand/index.d.ts +7 -0
- package/lib/typescript/Icons/WelcomeHand/index.d.ts.map +1 -0
- package/lib/typescript/Icons/index.d.ts +3 -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/HMSDangerButton.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/HMSHLSStreamLoading.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/HMSManageRaiseHand.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/HMSPreviewHLSLiveIndicator.d.ts.map +1 -1
- 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/PIPView.d.ts +2 -1
- package/lib/typescript/components/PIPView.d.ts.map +1 -1
- package/lib/typescript/components/PaginationDots.d.ts +3 -0
- package/lib/typescript/components/PaginationDots.d.ts.map +1 -1
- package/lib/typescript/components/Participants/MultiRoleParticipantsList.d.ts +7 -0
- package/lib/typescript/components/Participants/MultiRoleParticipantsList.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsAccordian.d.ts +11 -0
- package/lib/typescript/components/Participants/ParticipantsAccordian.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsAccordianExpanded.d.ts +9 -0
- package/lib/typescript/components/Participants/ParticipantsAccordianExpanded.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsGroupFooter.d.ts +9 -0
- package/lib/typescript/components/Participants/ParticipantsGroupFooter.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsGroupHeader.d.ts +12 -0
- package/lib/typescript/components/Participants/ParticipantsGroupHeader.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsGroupOptions.d.ts +6 -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 +3 -2
- package/lib/typescript/components/Participants/ParticipantsList.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsListFooter.d.ts +6 -0
- package/lib/typescript/components/Participants/ParticipantsListFooter.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsSeachInput.d.ts.map +1 -1
- package/lib/typescript/components/Participants/index.d.ts +1 -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/PeerMetadata.d.ts +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerMetadata.d.ts.map +1 -1
- 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-sdk.d.ts +4 -0
- package/lib/typescript/hooks-sdk.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 +46 -26
- 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 +19 -1
- package/lib/typescript/redux/actionTypes.d.ts.map +1 -1
- package/lib/typescript/redux/actions/index.d.ts +105 -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 +45 -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 -2
- 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 +7 -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 -9
- package/src/HMSPrebuilt.tsx +9 -12
- package/src/HMSRoomSetup.tsx +51 -29
- 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/Chevron/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/Leave/index.tsx +7 -1
- 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/WelcomeHand/assets/welcome-hand.png +0 -0
- package/src/Icons/WelcomeHand/assets/welcome-hand@2x.png +0 -0
- package/src/Icons/WelcomeHand/assets/welcome-hand@3x.png +0 -0
- package/src/Icons/WelcomeHand/index.tsx +27 -0
- package/src/Icons/index.ts +3 -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/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 +19 -9
- 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 +143 -0
- package/src/components/ChatAndParticipants/ChatAndParticipantsView.tsx +84 -0
- package/src/components/ChatAndParticipants/ChatView.tsx +42 -0
- package/src/components/ChatAndParticipants/ParticipantsView.tsx +49 -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/HMSDangerButton.tsx +2 -1
- package/src/components/HMSHLSMessage.tsx +72 -0
- package/src/components/HMSHLSMessageList.tsx +60 -0
- package/src/components/HMSHLSNotStarted.tsx +8 -19
- package/src/components/HMSHLSStreamLoading.tsx +9 -3
- 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 +47 -19
- package/src/components/HMSManageRaiseHand.tsx +20 -13
- package/src/components/HMSNotification.tsx +126 -0
- package/src/components/HMSNotifications.tsx +154 -0
- package/src/components/HMSOverlayChatView.tsx +36 -0
- package/src/components/HMSPreviewHLSLiveIndicator.tsx +3 -2
- package/src/components/HMSPreviewJoinButton.tsx +20 -6
- package/src/components/HMSPreviewNetworkQuality.tsx +3 -1
- package/src/components/HMSPreviewSubtitle.tsx +2 -6
- package/src/components/HMSPreviewTile.tsx +1 -1
- package/src/components/HMSPreviewTitle.tsx +2 -6
- package/src/components/HMSRecordingIndicator.tsx +16 -3
- package/src/components/HMSRoleChangeDeclinedNotification.tsx +25 -0
- package/src/components/HMSSendMessageInput.tsx +59 -0
- package/src/components/HMSTextInput.tsx +158 -24
- 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/PIPView.tsx +34 -13
- package/src/components/PaginationDots.tsx +9 -8
- package/src/components/Participants/MultiRoleParticipantsList.tsx +70 -0
- package/src/components/Participants/ParticipantsAccordian.tsx +70 -0
- package/src/components/Participants/ParticipantsAccordianExpanded.tsx +27 -0
- package/src/components/Participants/ParticipantsGroupFooter.tsx +65 -0
- package/src/components/Participants/ParticipantsGroupHeader.tsx +145 -0
- package/src/components/Participants/ParticipantsGroupOptions.tsx +82 -0
- package/src/components/Participants/ParticipantsItem.tsx +153 -0
- package/src/components/Participants/ParticipantsItemOption.tsx +52 -0
- package/src/components/Participants/ParticipantsItemOptions.tsx +262 -0
- package/src/components/Participants/ParticipantsList.tsx +222 -269
- package/src/components/Participants/ParticipantsListFooter.tsx +45 -0
- package/src/components/Participants/ParticipantsSeachInput.tsx +37 -35
- package/src/components/Participants/index.ts +1 -3
- package/src/components/PeerMinimizedView.tsx +1 -1
- package/src/components/PeerSettingsModalContent.tsx +44 -191
- package/src/components/PeerVideoTile/AvatarView.tsx +44 -6
- package/src/components/PeerVideoTile/HMSFullScreenButton.tsx +56 -0
- package/src/components/PeerVideoTile/HMSPinchGesture.tsx +176 -0
- package/src/components/PeerVideoTile/PeerAudioIndicator.tsx +83 -0
- package/src/components/PeerVideoTile/PeerMetadata.tsx +21 -12
- package/src/components/PeerVideoTile/PeerNameAndNetwork.tsx +15 -2
- package/src/components/PeerVideoTile/PeerVideoTileView.tsx +189 -115
- package/src/components/PeerVideoTile/VideoView.tsx +59 -9
- package/src/components/PressableIcon.tsx +26 -13
- package/src/components/Preview.tsx +39 -32
- package/src/components/PreviewForRoleChangeModal.tsx +443 -0
- package/src/components/ReconnectionView.tsx +73 -0
- package/src/components/RoomSettingsModalContent.tsx +60 -23
- package/src/components/RoomSettingsModalDebugModeContent.tsx +12 -66
- package/src/components/StreamingQualityModalContent.tsx +8 -8
- package/src/components/TilesContainer.tsx +54 -24
- package/src/components/WebrtcView.tsx +36 -17
- package/src/components/WelcomeInMeeting.tsx +19 -20
- package/src/components/index.ts +0 -3
- package/src/hooks-sdk.ts +58 -0
- package/src/hooks-util-selectors.tsx +69 -6
- package/src/hooks-util.ts +910 -292
- package/src/modules/HMSManager.ts +3 -3
- package/src/modules/parser.ts +3 -4
- package/src/redux/actionTypes.ts +36 -0
- package/src/redux/actions/index.ts +112 -1
- package/src/redux/reducers/appState.ts +83 -1
- package/src/redux/reducers/chatWindow.ts +12 -5
- package/src/redux/reducers/hmsStates.ts +369 -4
- package/src/redux/reducers/userState.ts +1 -1
- package/src/utils/functions.ts +9 -1
- package/src/utils/theme.ts +3 -1
- package/src/utils/types.ts +8 -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 +0 -27
- package/lib/commonjs/components/Participants/SearchableParticipantsView.js.map +0 -1
- package/lib/commonjs/components/ParticipantsModal.js +0 -43
- package/lib/commonjs/components/ParticipantsModal.js.map +0 -1
- package/lib/commonjs/components/PeerVideoTile/PeerAudioMutedIndicator.js +0 -44
- 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
|
@@ -7,6 +7,5 @@ exports.store = void 0;
|
|
|
7
7
|
var _redux = require("redux");
|
|
8
8
|
var _index = _interopRequireDefault(require("./reducers/index"));
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
const store = (0, _redux.createStore)(_index.default);
|
|
11
|
-
exports.store = store;
|
|
10
|
+
const store = exports.store = (0, _redux.createStore)(_index.default);
|
|
12
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_redux","require","_index","_interopRequireDefault","obj","__esModule","default","store","
|
|
1
|
+
{"version":3,"names":["_redux","require","_index","_interopRequireDefault","obj","__esModule","default","store","exports","createStore","rootReducer"],"sourceRoot":"../../../src","sources":["redux/index.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAA2C,SAAAE,uBAAAC,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAEpC,MAAMG,KAAK,GAAAC,OAAA,CAAAD,KAAA,GAAG,IAAAE,kBAAW,EAACC,cAAW,CAAC"}
|
|
@@ -7,8 +7,8 @@ exports.default = void 0;
|
|
|
7
7
|
var _actionTypes = _interopRequireWildcard(require("../actionTypes"));
|
|
8
8
|
var _types = require("../../utils/types");
|
|
9
9
|
var _types2 = require("../../types");
|
|
10
|
-
function _getRequireWildcardCache(
|
|
11
|
-
function _interopRequireWildcard(
|
|
10
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
11
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
12
12
|
const INITIAL_STATE = {
|
|
13
13
|
peerState: [],
|
|
14
14
|
pipModeStatus: _types.PipModes.INACTIVE,
|
|
@@ -20,7 +20,7 @@ const INITIAL_STATE = {
|
|
|
20
20
|
autoSimulcast: true,
|
|
21
21
|
showStats: false,
|
|
22
22
|
showHLSStats: false,
|
|
23
|
-
enableHLSPlayerControls:
|
|
23
|
+
enableHLSPlayerControls: false,
|
|
24
24
|
showCustomHLSPlayerControls: false
|
|
25
25
|
},
|
|
26
26
|
modalType: _types.ModalTypes.DEFAULT,
|
|
@@ -31,7 +31,12 @@ const INITIAL_STATE = {
|
|
|
31
31
|
miniviewPeerTrackNode: null,
|
|
32
32
|
localPeerTrackNode: null,
|
|
33
33
|
gridViewActivePage: 0,
|
|
34
|
-
startingOrStoppingRecording: false
|
|
34
|
+
startingOrStoppingRecording: false,
|
|
35
|
+
fullScreenPeerTrackNode: null,
|
|
36
|
+
screensharePeerTrackNodes: [],
|
|
37
|
+
notifications: [],
|
|
38
|
+
activeChatBottomSheetTab: _types.ChatBottomSheetTabs[0],
|
|
39
|
+
chatFilterSheetVisible: false
|
|
35
40
|
};
|
|
36
41
|
const appReducer = function () {
|
|
37
42
|
let state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : INITIAL_STATE;
|
|
@@ -174,6 +179,24 @@ const appReducer = function () {
|
|
|
174
179
|
}
|
|
175
180
|
};
|
|
176
181
|
}
|
|
182
|
+
case _actionTypes.default.SET_FULLSCREEN_PEERTRACKNODE:
|
|
183
|
+
return {
|
|
184
|
+
...state,
|
|
185
|
+
fullScreenPeerTrackNode: action.payload.fullScreenPeerTrackNode
|
|
186
|
+
};
|
|
187
|
+
case _actionTypes.default.UPDATE_FULLSCREEN_PEERTRACKNODE:
|
|
188
|
+
{
|
|
189
|
+
if (!state.fullScreenPeerTrackNode) {
|
|
190
|
+
return state;
|
|
191
|
+
}
|
|
192
|
+
return {
|
|
193
|
+
...state,
|
|
194
|
+
fullScreenPeerTrackNode: {
|
|
195
|
+
...state.fullScreenPeerTrackNode,
|
|
196
|
+
...action.payload
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
}
|
|
177
200
|
case _actionTypes.default.SET_STARTING_HLS_STREAM:
|
|
178
201
|
return {
|
|
179
202
|
...state,
|
|
@@ -189,12 +212,63 @@ const appReducer = function () {
|
|
|
189
212
|
...state,
|
|
190
213
|
startingOrStoppingRecording: action.payload.startingOrStoppingRecording
|
|
191
214
|
};
|
|
215
|
+
case _actionTypes.default.ADD_SCREENSHARE_TILE:
|
|
216
|
+
{
|
|
217
|
+
return {
|
|
218
|
+
...state,
|
|
219
|
+
screensharePeerTrackNodes: [...state.screensharePeerTrackNodes, action.payload.screenshareNode]
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
case _actionTypes.default.REMOVE_SCREENSHARE_TILE:
|
|
223
|
+
{
|
|
224
|
+
return {
|
|
225
|
+
...state,
|
|
226
|
+
screensharePeerTrackNodes: state.screensharePeerTrackNodes.filter(node => node.id !== action.payload.id)
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
case _actionTypes.default.UPDATE_SCREENSHARE_TILE:
|
|
230
|
+
{
|
|
231
|
+
return {
|
|
232
|
+
...state,
|
|
233
|
+
screensharePeerTrackNodes: state.screensharePeerTrackNodes.map(node => node.id === action.payload.id ? {
|
|
234
|
+
...node,
|
|
235
|
+
...action.payload
|
|
236
|
+
} : node)
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
case _actionTypes.default.ADD_NOTIFICATION:
|
|
240
|
+
{
|
|
241
|
+
return {
|
|
242
|
+
...state,
|
|
243
|
+
notifications: [action.payload.notification, ...state.notifications]
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
case _actionTypes.default.REMOVE_NOTIFICATION:
|
|
247
|
+
{
|
|
248
|
+
return {
|
|
249
|
+
...state,
|
|
250
|
+
notifications: state.notifications.filter(notification => notification.id !== action.payload.id)
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
case _actionTypes.default.SET_ACTIVE_CHAT_BOTTOM_SHEET_TAB:
|
|
254
|
+
{
|
|
255
|
+
return {
|
|
256
|
+
...state,
|
|
257
|
+
activeChatBottomSheetTab: action.payload.activeChatBottomSheetTab
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
case _actionTypes.default.SET_CHAT_FILTER_SHEET_VISIBLE:
|
|
261
|
+
{
|
|
262
|
+
return {
|
|
263
|
+
...state,
|
|
264
|
+
chatFilterSheetVisible: action.payload.chatFilterSheetVisible
|
|
265
|
+
};
|
|
266
|
+
}
|
|
192
267
|
case _actionTypes.HmsStateActionTypes.CLEAR_STATES:
|
|
193
268
|
return INITIAL_STATE;
|
|
194
269
|
default:
|
|
195
270
|
return state;
|
|
196
271
|
}
|
|
197
272
|
};
|
|
198
|
-
var _default = appReducer;
|
|
199
|
-
exports.default = _default;
|
|
273
|
+
var _default = exports.default = appReducer;
|
|
200
274
|
//# sourceMappingURL=appState.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_actionTypes","_interopRequireWildcard","require","_types","_types2","_getRequireWildcardCache","
|
|
1
|
+
{"version":3,"names":["_actionTypes","_interopRequireWildcard","require","_types","_types2","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","INITIAL_STATE","peerState","pipModeStatus","PipModes","INACTIVE","rtcStats","hlsAspectRatio","SUPPORTED_ASPECT_RATIOS","joinConfig","mirrorCamera","autoSimulcast","showStats","showHLSStats","enableHLSPlayerControls","showCustomHLSPlayerControls","modalType","ModalTypes","DEFAULT","peerToUpdate","meetingState","MeetingState","NOT_JOINED","startingHLSStream","insetViewMinimized","miniviewPeerTrackNode","localPeerTrackNode","gridViewActivePage","startingOrStoppingRecording","fullScreenPeerTrackNode","screensharePeerTrackNodes","notifications","activeChatBottomSheetTab","ChatBottomSheetTabs","chatFilterSheetVisible","appReducer","state","arguments","length","undefined","action","type","ActionTypes","CHANGE_PIP_MODE_STATUS","payload","SET_PEER_STATE","CLEAR_PEER_DATA","REQUEST","CHANGE_HLS_ASPECT_RATIO","SET_MODAL_TYPE","SET_PEER_TO_UPDATE","RESET_JOIN_CONFIG","CHANGE_MIRROR_CAMERA","CHANGE_SHOW_STATS","CHANGE_SHOW_HLS_STATS","CHANGE_ENABLE_HLS_PLAYER_CONTROLS","CHANGE_SHOW_CUSTOM_HLS_PLAYER_CONTROLS","CHANGE_AUTO_SIMULCAST","SET_RTC_STATS","trackId","stats","SET_MEETING_STATE","SET_INSET_VIEW_MINIMIZED","SET_MINI_VIEW_PEERTRACKNODE","UPDATE_MINI_VIEW_PEERTRACKNODE","SET_LOCAL_PEERTRACKNODE","UPDATE_LOCAL_PEERTRACKNODE","SET_FULLSCREEN_PEERTRACKNODE","UPDATE_FULLSCREEN_PEERTRACKNODE","SET_STARTING_HLS_STREAM","SET_GRID_VIEW_ACTIVE_PAGE","SET_STARTING_OR_STOPPING_RECORDING","ADD_SCREENSHARE_TILE","screenshareNode","REMOVE_SCREENSHARE_TILE","filter","node","id","UPDATE_SCREENSHARE_TILE","map","ADD_NOTIFICATION","notification","REMOVE_NOTIFICATION","SET_ACTIVE_CHAT_BOTTOM_SHEET_TAB","SET_CHAT_FILTER_SHEET_VISIBLE","HmsStateActionTypes","CLEAR_STATES","_default","exports"],"sourceRoot":"../../../../src","sources":["redux/reducers/appState.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAWA,IAAAE,OAAA,GAAAF,OAAA;AAA2C,SAAAG,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAL,wBAAAK,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GA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ACRN,yBAAyB,EAAEM,KAAK,CAACN,yBAAyB,CAACiD,GAAG,CAC3DH,IAAI,IACHA,IAAI,CAACC,EAAE,KAAKrC,MAAM,CAACI,OAAO,CAACiC,EAAE,GACzB;YAAE,GAAGD,IAAI;YAAE,GAAGpC,MAAM,CAACI;UAAQ,CAAC,GAC9BgC,IACR;QACF,CAAC;MACH;IACA,KAAKlC,oBAAW,CAACsC,gBAAgB;MAAE;QACjC,OAAO;UACL,GAAG5C,KAAK;UACRL,aAAa,EAAE,CAACS,MAAM,CAACI,OAAO,CAACqC,YAAY,EAAE,GAAG7C,KAAK,CAACL,aAAa;QACrE,CAAC;MACH;IACA,KAAKW,oBAAW,CAACwC,mBAAmB;MAAE;QACpC,OAAO;UACL,GAAG9C,KAAK;UACRL,aAAa,EAAEK,KAAK,CAACL,aAAa,CAAC4C,MAAM,CACtCM,YAAY,IAAKA,YAAY,CAACJ,EAAE,KAAKrC,MAAM,CAACI,OAAO,CAACiC,EACvD;QACF,CAAC;MACH;IACA,KAAKnC,oBAAW,CAACyC,gCAAgC;MAAE;QACjD,OAAO;UACL,GAAG/C,KAAK;UACRJ,wBAAwB,EAAEQ,MAAM,CAACI,OAAO,CAACZ;QAC3C,CAAC;MACH;IACA,KAAKU,oBAAW,CAAC0C,6BAA6B;MAAE;QAC9C,OAAO;UACL,GAAGhD,KAAK;UACRF,sBAAsB,EAAEM,MAAM,CAACI,OAAO,CAACV;QACzC,CAAC;MACH;IACA,KAAKmD,gCAAmB,CAACC,YAAY;MACnC,OAAOrF,aAAa;IACtB;MACE,OAAOmC,KAAK;EAChB;AACF,CAAC;AAAC,IAAAmD,QAAA,GAAAC,OAAA,CAAAtG,OAAA,GAEaiD,UAAU"}
|
|
@@ -5,15 +5,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _actionTypes = require("../actionTypes");
|
|
8
|
+
var _types = require("../../utils/types");
|
|
8
9
|
const INITIAL_STATE = {
|
|
9
10
|
showChatView: false,
|
|
10
11
|
typedMessage: '',
|
|
11
|
-
sendTo:
|
|
12
|
-
name: 'everyone'
|
|
13
|
-
},
|
|
14
|
-
sendToType: 'everyone' // 'everyone' | 'role' | 'direct'
|
|
12
|
+
sendTo: _types.ChatBroadcastFilter
|
|
15
13
|
};
|
|
16
|
-
|
|
17
14
|
const chatWindowReducer = function () {
|
|
18
15
|
let state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : INITIAL_STATE;
|
|
19
16
|
let action = arguments.length > 1 ? arguments[1] : undefined;
|
|
@@ -21,8 +18,7 @@ const chatWindowReducer = function () {
|
|
|
21
18
|
case 'SET_SENDTO':
|
|
22
19
|
return {
|
|
23
20
|
...state,
|
|
24
|
-
sendTo: action.sendTo
|
|
25
|
-
sendToType: action.sendToType
|
|
21
|
+
sendTo: action.sendTo
|
|
26
22
|
};
|
|
27
23
|
case 'SET_TYPED_MESSAGE':
|
|
28
24
|
return {
|
|
@@ -40,6 +36,5 @@ const chatWindowReducer = function () {
|
|
|
40
36
|
return state;
|
|
41
37
|
}
|
|
42
38
|
};
|
|
43
|
-
var _default = chatWindowReducer;
|
|
44
|
-
exports.default = _default;
|
|
39
|
+
var _default = exports.default = chatWindowReducer;
|
|
45
40
|
//# sourceMappingURL=chatWindow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_actionTypes","require","INITIAL_STATE","showChatView","typedMessage","sendTo","
|
|
1
|
+
{"version":3,"names":["_actionTypes","require","_types","INITIAL_STATE","showChatView","typedMessage","sendTo","ChatBroadcastFilter","chatWindowReducer","state","arguments","length","undefined","action","type","HmsStateActionTypes","CLEAR_STATES","_default","exports","default"],"sourceRoot":"../../../../src","sources":["redux/reducers/chatWindow.ts"],"mappings":";;;;;;AAEA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAQA,MAAME,aAA0B,GAAG;EACjCC,YAAY,EAAE,KAAK;EACnBC,YAAY,EAAE,EAAE;EAChBC,MAAM,EAAEC;AACV,CAAC;AAED,MAAMC,iBAAiB,GAAG,SAAAA,CAAA,EAAqD;EAAA,IAApDC,KAAK,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGP,aAAa;EAAA,IAAEU,MAAW,GAAAH,SAAA,CAAAC,MAAA,OAAAD,SAAA,MAAAE,SAAA;EAC3D,QAAQC,MAAM,CAACC,IAAI;IACjB,KAAK,YAAY;MACf,OAAO;QACL,GAAGL,KAAK;QACRH,MAAM,EAAEO,MAAM,CAACP;MACjB,CAAC;IACH,KAAK,mBAAmB;MACtB,OAAO;QACL,GAAGG,KAAK;QACRJ,YAAY,EAAEQ,MAAM,CAACR;MACvB,CAAC;IACH,KAAK,oBAAoB;MACvB,OAAO;QACL,GAAGI,KAAK;QACRL,YAAY,EAAES,MAAM,CAACT;MACvB,CAAC;IACH,KAAKW,gCAAmB,CAACC,YAAY;MACnC,OAAOb,aAAa;IACtB;MACE,OAAOM,KAAK;EAChB;AACF,CAAC;AAAC,IAAAQ,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEaX,iBAAiB"}
|
|
@@ -9,15 +9,18 @@ const INITIAL_STATE = {
|
|
|
9
9
|
isLocalAudioMuted: undefined,
|
|
10
10
|
isLocalVideoMuted: undefined,
|
|
11
11
|
isLocalScreenShared: undefined,
|
|
12
|
+
reconnecting: false,
|
|
12
13
|
roomLocallyMuted: false,
|
|
13
14
|
room: null,
|
|
14
15
|
localPeer: null,
|
|
16
|
+
groupedParticipants: {},
|
|
17
|
+
activeSpeakers: [],
|
|
15
18
|
roles: [],
|
|
16
19
|
previewPeersList: [],
|
|
17
|
-
layoutConfig: null
|
|
20
|
+
layoutConfig: null,
|
|
21
|
+
roleChangeRequest: null
|
|
18
22
|
};
|
|
19
23
|
const hmsStatesReducer = function () {
|
|
20
|
-
var _action$localPeer, _action$localPeer2;
|
|
21
24
|
let state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : INITIAL_STATE;
|
|
22
25
|
let action = arguments.length > 1 ? arguments[1] : undefined;
|
|
23
26
|
switch (action.type) {
|
|
@@ -27,16 +30,237 @@ const hmsStatesReducer = function () {
|
|
|
27
30
|
room: action.room
|
|
28
31
|
};
|
|
29
32
|
case _actionTypes.HmsStateActionTypes.SET_LOCAL_PEER_STATE:
|
|
33
|
+
{
|
|
34
|
+
var _action$localPeer4, _action$localPeer5;
|
|
35
|
+
let updatedGroupedParticipants = state.groupedParticipants;
|
|
36
|
+
if (action.localPeer !== null) {
|
|
37
|
+
const savedLocalPeer = Object.values(state.groupedParticipants).flat().find(participant => {
|
|
38
|
+
var _action$localPeer;
|
|
39
|
+
return participant.peerID === ((_action$localPeer = action.localPeer) === null || _action$localPeer === void 0 ? void 0 : _action$localPeer.peerID);
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
// update peer or check if role change happened
|
|
43
|
+
if (savedLocalPeer) {
|
|
44
|
+
var _savedLocalPeer$role, _action$localPeer$rol;
|
|
45
|
+
const previousRoleName = (_savedLocalPeer$role = savedLocalPeer.role) === null || _savedLocalPeer$role === void 0 ? void 0 : _savedLocalPeer$role.name;
|
|
46
|
+
const currentRoleName = (_action$localPeer$rol = action.localPeer.role) === null || _action$localPeer$rol === void 0 ? void 0 : _action$localPeer$rol.name;
|
|
47
|
+
const roleChanged = previousRoleName !== currentRoleName;
|
|
48
|
+
if (roleChanged) {
|
|
49
|
+
const previousList = state.groupedParticipants[previousRoleName];
|
|
50
|
+
const currentList = state.groupedParticipants[currentRoleName];
|
|
51
|
+
updatedGroupedParticipants = {
|
|
52
|
+
...state.groupedParticipants,
|
|
53
|
+
// add to new list
|
|
54
|
+
[currentRoleName]: Array.isArray(currentList) ? [action.localPeer, ...currentList] : [action.localPeer],
|
|
55
|
+
// delete from old list
|
|
56
|
+
[previousRoleName]: Array.isArray(previousList) ? previousList.filter(peer => {
|
|
57
|
+
var _action$localPeer2;
|
|
58
|
+
return peer.peerID !== ((_action$localPeer2 = action.localPeer) === null || _action$localPeer2 === void 0 ? void 0 : _action$localPeer2.peerID);
|
|
59
|
+
}) : []
|
|
60
|
+
};
|
|
61
|
+
} else {
|
|
62
|
+
const participants = state.groupedParticipants[currentRoleName];
|
|
63
|
+
updatedGroupedParticipants = {
|
|
64
|
+
...state.groupedParticipants,
|
|
65
|
+
[currentRoleName]: Array.isArray(participants) ? participants.map(participant => {
|
|
66
|
+
var _action$localPeer3;
|
|
67
|
+
return participant.peerID === ((_action$localPeer3 = action.localPeer) === null || _action$localPeer3 === void 0 ? void 0 : _action$localPeer3.peerID) ? action.localPeer : participant;
|
|
68
|
+
}) : [action.localPeer]
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
// add peer
|
|
73
|
+
else {
|
|
74
|
+
var _action$localPeer$rol2;
|
|
75
|
+
const localPeerRoleName = (_action$localPeer$rol2 = action.localPeer.role) === null || _action$localPeer$rol2 === void 0 ? void 0 : _action$localPeer$rol2.name;
|
|
76
|
+
if (localPeerRoleName) {
|
|
77
|
+
const participants = state.groupedParticipants[localPeerRoleName];
|
|
78
|
+
updatedGroupedParticipants = {
|
|
79
|
+
...state.groupedParticipants,
|
|
80
|
+
[localPeerRoleName]: Array.isArray(participants) ? [action.localPeer, ...participants] : [action.localPeer]
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
...state,
|
|
87
|
+
localPeer: action.localPeer,
|
|
88
|
+
isLocalAudioMuted: (_action$localPeer4 = action.localPeer) === null || _action$localPeer4 === void 0 || (_action$localPeer4 = _action$localPeer4.audioTrack) === null || _action$localPeer4 === void 0 ? void 0 : _action$localPeer4.isMute(),
|
|
89
|
+
isLocalVideoMuted: (_action$localPeer5 = action.localPeer) === null || _action$localPeer5 === void 0 || (_action$localPeer5 = _action$localPeer5.videoTrack) === null || _action$localPeer5 === void 0 ? void 0 : _action$localPeer5.isMute(),
|
|
90
|
+
// Adding or updating local peer in participants list
|
|
91
|
+
groupedParticipants: updatedGroupedParticipants
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
case _actionTypes.HmsStateActionTypes.ADD_PARTICIPANT:
|
|
95
|
+
{
|
|
96
|
+
var _action$participant$r;
|
|
97
|
+
const participantRoleName = (_action$participant$r = action.participant.role) === null || _action$participant$r === void 0 ? void 0 : _action$participant$r.name;
|
|
98
|
+
if (!participantRoleName) {
|
|
99
|
+
return state;
|
|
100
|
+
}
|
|
101
|
+
const participants = state.groupedParticipants[participantRoleName];
|
|
102
|
+
if (Array.isArray(participants) && participants.findIndex(participant => participant.peerID === action.participant.peerID) >= 0) {
|
|
103
|
+
return state;
|
|
104
|
+
}
|
|
105
|
+
return {
|
|
106
|
+
...state,
|
|
107
|
+
groupedParticipants: {
|
|
108
|
+
...state.groupedParticipants,
|
|
109
|
+
[participantRoleName]: Array.isArray(participants) ? [...participants, action.participant] : [action.participant]
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
case _actionTypes.HmsStateActionTypes.ADD_PARTICIPANTS:
|
|
114
|
+
{
|
|
115
|
+
const participantsToAdd = new Map();
|
|
116
|
+
const participants = Object.values(state.groupedParticipants).flat();
|
|
117
|
+
action.participants.forEach(peerToAdd => {
|
|
118
|
+
// check if `peerToAdd` already exists
|
|
119
|
+
const exists = participants.findIndex(participant => participant.peerID === peerToAdd.peerID) >= 0;
|
|
120
|
+
|
|
121
|
+
// if not exists, push to existing list or create new against the role
|
|
122
|
+
if (!exists) {
|
|
123
|
+
var _peerToAdd$role;
|
|
124
|
+
const list = participantsToAdd.get((_peerToAdd$role = peerToAdd.role) === null || _peerToAdd$role === void 0 ? void 0 : _peerToAdd$role.name);
|
|
125
|
+
if (list) {
|
|
126
|
+
list.push(peerToAdd);
|
|
127
|
+
} else {
|
|
128
|
+
var _peerToAdd$role2;
|
|
129
|
+
participantsToAdd.set((_peerToAdd$role2 = peerToAdd.role) === null || _peerToAdd$role2 === void 0 ? void 0 : _peerToAdd$role2.name, [peerToAdd]);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
if (participantsToAdd.size === 0) {
|
|
134
|
+
return state;
|
|
135
|
+
}
|
|
136
|
+
let updatedGroupedParticipants = {
|
|
137
|
+
...state.groupedParticipants
|
|
138
|
+
};
|
|
139
|
+
participantsToAdd.forEach((list, roleName) => {
|
|
140
|
+
const oldList = updatedGroupedParticipants[roleName];
|
|
141
|
+
updatedGroupedParticipants[roleName] = Array.isArray(oldList) ? [...oldList, ...list] : list;
|
|
142
|
+
});
|
|
143
|
+
return {
|
|
144
|
+
...state,
|
|
145
|
+
groupedParticipants: updatedGroupedParticipants
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
case _actionTypes.HmsStateActionTypes.REMOVE_PARTICIPANT:
|
|
149
|
+
{
|
|
150
|
+
var _action$participant$r2;
|
|
151
|
+
const participantRoleName = (_action$participant$r2 = action.participant.role) === null || _action$participant$r2 === void 0 ? void 0 : _action$participant$r2.name;
|
|
152
|
+
if (!participantRoleName) {
|
|
153
|
+
return state;
|
|
154
|
+
}
|
|
155
|
+
const participants = state.groupedParticipants[participantRoleName];
|
|
156
|
+
if (Array.isArray(participants) && participants.findIndex(participant => participant.peerID === action.participant.peerID) >= 0) {
|
|
157
|
+
return {
|
|
158
|
+
...state,
|
|
159
|
+
groupedParticipants: {
|
|
160
|
+
...state.groupedParticipants,
|
|
161
|
+
[participantRoleName]: participants.filter(participant => participant.peerID !== action.participant.peerID)
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
return state;
|
|
166
|
+
}
|
|
167
|
+
case _actionTypes.HmsStateActionTypes.REMOVE_PARTICIPANTS:
|
|
168
|
+
{
|
|
169
|
+
const participantsToRemove = new Map();
|
|
170
|
+
const participants = Object.values(state.groupedParticipants).flat();
|
|
171
|
+
action.participants.forEach(peerToAdd => {
|
|
172
|
+
// check if `peerToAdd` already exists
|
|
173
|
+
const exists = participants.findIndex(participant => participant.peerID === peerToAdd.peerID) >= 0;
|
|
174
|
+
|
|
175
|
+
// if exists, push to existing list or create new against the role
|
|
176
|
+
if (exists) {
|
|
177
|
+
var _peerToAdd$role3;
|
|
178
|
+
const list = participantsToRemove.get((_peerToAdd$role3 = peerToAdd.role) === null || _peerToAdd$role3 === void 0 ? void 0 : _peerToAdd$role3.name);
|
|
179
|
+
if (list) {
|
|
180
|
+
list.push(peerToAdd);
|
|
181
|
+
} else {
|
|
182
|
+
var _peerToAdd$role4;
|
|
183
|
+
participantsToRemove.set((_peerToAdd$role4 = peerToAdd.role) === null || _peerToAdd$role4 === void 0 ? void 0 : _peerToAdd$role4.name, [peerToAdd]);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
if (participantsToRemove.size === 0) {
|
|
188
|
+
return state;
|
|
189
|
+
}
|
|
190
|
+
let updatedGroupedParticipants = {
|
|
191
|
+
...state.groupedParticipants
|
|
192
|
+
};
|
|
193
|
+
participantsToRemove.forEach((list, roleName) => {
|
|
194
|
+
const oldList = updatedGroupedParticipants[roleName];
|
|
195
|
+
updatedGroupedParticipants[roleName] = Array.isArray(oldList) ? oldList.filter(participant => {
|
|
196
|
+
const notExists = list.findIndex(peerToRemove => peerToRemove.peerID === participant.peerID) < 0;
|
|
197
|
+
|
|
198
|
+
// if `participant` is not in `removedPeers` list
|
|
199
|
+
// then keep it, otherwise remove it
|
|
200
|
+
return notExists;
|
|
201
|
+
}) : [];
|
|
202
|
+
});
|
|
203
|
+
return {
|
|
204
|
+
...state,
|
|
205
|
+
groupedParticipants: updatedGroupedParticipants
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
case _actionTypes.HmsStateActionTypes.UPDATE_PARTICIPANT:
|
|
209
|
+
{
|
|
210
|
+
var _previousParticipant$, _action$participant$r3;
|
|
211
|
+
const previousParticipant = Object.values(state.groupedParticipants).flat().find(participant => participant.peerID === action.participant.peerID);
|
|
212
|
+
if (!previousParticipant) {
|
|
213
|
+
return state;
|
|
214
|
+
}
|
|
215
|
+
const previousRoleName = (_previousParticipant$ = previousParticipant.role) === null || _previousParticipant$ === void 0 ? void 0 : _previousParticipant$.name;
|
|
216
|
+
const currentRoleName = (_action$participant$r3 = action.participant.role) === null || _action$participant$r3 === void 0 ? void 0 : _action$participant$r3.name;
|
|
217
|
+
|
|
218
|
+
// check if role change
|
|
219
|
+
if (previousRoleName !== currentRoleName) {
|
|
220
|
+
const previousRoleList = state.groupedParticipants[previousRoleName];
|
|
221
|
+
const currentRoleList = state.groupedParticipants[currentRoleName];
|
|
222
|
+
return {
|
|
223
|
+
...state,
|
|
224
|
+
groupedParticipants: {
|
|
225
|
+
...state.groupedParticipants,
|
|
226
|
+
// - add to new
|
|
227
|
+
[currentRoleName]: Array.isArray(currentRoleList) ? [...currentRoleList, action.participant] : [action.participant],
|
|
228
|
+
// - delete from old
|
|
229
|
+
[previousRoleName]: Array.isArray(previousRoleList) ? previousRoleList.filter(p => p.peerID !== action.participant.peerID) : []
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
// update existing
|
|
235
|
+
|
|
236
|
+
const currentList = state.groupedParticipants[currentRoleName];
|
|
237
|
+
return {
|
|
238
|
+
...state,
|
|
239
|
+
groupedParticipants: {
|
|
240
|
+
...state.groupedParticipants,
|
|
241
|
+
[currentRoleName]: Array.isArray(currentList) ? currentList.map(p => p.peerID === action.participant.peerID ? action.participant : p) : [action.participant]
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
case _actionTypes.HmsStateActionTypes.REPLACE_PARTICIPANTS_LIST:
|
|
246
|
+
{
|
|
247
|
+
return {
|
|
248
|
+
...state,
|
|
249
|
+
groupedParticipants: {
|
|
250
|
+
...state.groupedParticipants,
|
|
251
|
+
[action.roleName]: action.participants
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
case _actionTypes.HmsStateActionTypes.SET_ROLES_STATE:
|
|
30
256
|
return {
|
|
31
257
|
...state,
|
|
32
|
-
|
|
33
|
-
isLocalAudioMuted: (_action$localPeer = action.localPeer) === null || _action$localPeer === void 0 || (_action$localPeer = _action$localPeer.audioTrack) === null || _action$localPeer === void 0 ? void 0 : _action$localPeer.isMute(),
|
|
34
|
-
isLocalVideoMuted: (_action$localPeer2 = action.localPeer) === null || _action$localPeer2 === void 0 || (_action$localPeer2 = _action$localPeer2.videoTrack) === null || _action$localPeer2 === void 0 ? void 0 : _action$localPeer2.isMute()
|
|
258
|
+
roles: action.roles
|
|
35
259
|
};
|
|
36
|
-
case _actionTypes.HmsStateActionTypes.
|
|
260
|
+
case _actionTypes.HmsStateActionTypes.SET_ACTIVE_SPEAKERS:
|
|
37
261
|
return {
|
|
38
262
|
...state,
|
|
39
|
-
|
|
263
|
+
activeSpeakers: action.activeSpeakers
|
|
40
264
|
};
|
|
41
265
|
case _actionTypes.HmsStateActionTypes.SET_IS_LOCAL_AUDIO_MUTED_STATE:
|
|
42
266
|
return {
|
|
@@ -73,12 +297,21 @@ const hmsStatesReducer = function () {
|
|
|
73
297
|
...state,
|
|
74
298
|
layoutConfig: action.layoutConfig
|
|
75
299
|
};
|
|
300
|
+
case _actionTypes.HmsStateActionTypes.SET_ROLE_CHANGE_REQUEST:
|
|
301
|
+
return {
|
|
302
|
+
...state,
|
|
303
|
+
roleChangeRequest: action.roleChangeRequest
|
|
304
|
+
};
|
|
305
|
+
case _actionTypes.HmsStateActionTypes.SET_RECONNECTING:
|
|
306
|
+
return {
|
|
307
|
+
...state,
|
|
308
|
+
reconnecting: action.reconnecting
|
|
309
|
+
};
|
|
76
310
|
case _actionTypes.HmsStateActionTypes.CLEAR_STATES:
|
|
77
311
|
return INITIAL_STATE;
|
|
78
312
|
default:
|
|
79
313
|
return state;
|
|
80
314
|
}
|
|
81
315
|
};
|
|
82
|
-
var _default = hmsStatesReducer;
|
|
83
|
-
exports.default = _default;
|
|
316
|
+
var _default = exports.default = hmsStatesReducer;
|
|
84
317
|
//# sourceMappingURL=hmsStates.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_actionTypes","require","INITIAL_STATE","isLocalAudioMuted","undefined","isLocalVideoMuted","isLocalScreenShared","roomLocallyMuted","room","localPeer","roles","previewPeersList","layoutConfig","hmsStatesReducer","_action$localPeer","_action$localPeer2","state","arguments","length","action","type","HmsStateActionTypes","SET_ROOM_STATE","SET_LOCAL_PEER_STATE","audioTrack","isMute","videoTrack","SET_ROLES_STATE","SET_IS_LOCAL_AUDIO_MUTED_STATE","SET_IS_LOCAL_VIDEO_MUTED_STATE","SET_IS_LOCAL_SCREEN_SHARED_STATE","SET_ROOM_LOCALLY_MUTED","ADD_TO_PREVIEW_PEERS_LIST","peer","REMOVE_FROM_PREVIEW_PEERS_LIST","filter","prevPeer","peerID","peerId","SET_LAYOUT_CONFIG","CLEAR_STATES","_default","exports","default"],"sourceRoot":"../../../../src","sources":["redux/reducers/hmsStates.ts"],"mappings":";;;;;;AAOA,IAAAA,YAAA,GAAAC,OAAA;AAiFA,MAAMC,aAA8B,GAAG;EACrCC,iBAAiB,EAAEC,SAAS;EAC5BC,iBAAiB,EAAED,SAAS;EAC5BE,mBAAmB,EAAEF,SAAS;EAC9BG,gBAAgB,EAAE,KAAK;EACvBC,IAAI,EAAE,IAAI;EACVC,SAAS,EAAE,IAAI;EACfC,KAAK,EAAE,EAAE;EACTC,gBAAgB,EAAE,EAAE;EACpBC,YAAY,EAAE;AAChB,CAAC;AAED,MAAMC,gBAAgB,GAAG,SAAAA,CAAA,EAGH;EAAA,IAAAC,iBAAA,EAAAC,kBAAA;EAAA,IAFpBC,KAAK,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAb,SAAA,GAAAa,SAAA,MAAGf,aAAa;EAAA,IACrBiB,MAAkB,GAAAF,SAAA,CAAAC,MAAA,OA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ACL,GAAGhB,KAAK;QACRL,gBAAgB,EAAE,CAAC,GAAGK,KAAK,CAACL,gBAAgB,EAAEQ,MAAM,CAACc,IAAI;MAC3D,CAAC;IACH,KAAKZ,gCAAmB,CAACa,8BAA8B;MACrD,OAAO;QACL,GAAGlB,KAAK;QACRL,gBAAgB,EAAEK,KAAK,CAACL,gBAAgB,CAACwB,MAAM,CAC5CC,QAAQ,IAAKA,QAAQ,CAACC,MAAM,KAAKlB,MAAM,CAACmB,MAC3C;MACF,CAAC;IACH,KAAKjB,gCAAmB,CAACkB,iBAAiB;MACxC,OAAO;QACL,GAAGvB,KAAK;QACRJ,YAAY,EAAEO,MAAM,CAACP;MACvB,CAAC;IACH,KAAKS,gCAAmB,CAACmB,YAAY;MACnC,OAAOtC,aAAa;IACtB;MACE,OAAOc,KAAK;EAChB;AACF,CAAC;AAAC,IAAAyB,QAAA,GAEa5B,gBAAgB;AAAA6B,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
|
|
1
|
+
{"version":3,"names":["_actionTypes","require","INITIAL_STATE","isLocalAudioMuted","undefined","isLocalVideoMuted","isLocalScreenShared","reconnecting","roomLocallyMuted","room","localPeer","groupedParticipants","activeSpeakers","roles","previewPeersList","layoutConfig","roleChangeRequest","hmsStatesReducer","state","arguments","length","action","type","HmsStateActionTypes","SET_ROOM_STATE","SET_LOCAL_PEER_STATE","_action$localPeer4","_action$localPeer5","updatedGroupedParticipants","savedLocalPeer","Object","values","flat","find","participant","_action$localPeer","peerID","_savedLocalPeer$role","_action$localPeer$rol","previousRoleName","role","name","currentRoleName","roleChanged","previousList","currentList","Array","isArray","filter","peer","_action$localPeer2","participants","map","_action$localPeer3","_action$localPeer$rol2","localPeerRoleName","audioTrack","isMute","videoTrack","ADD_PARTICIPANT","_action$participant$r","participantRoleName","findIndex","ADD_PARTICIPANTS","participantsToAdd","Map","forEach","peerToAdd","exists","_peerToAdd$role","list","get","push","_peerToAdd$role2","set","size","roleName","oldList","REMOVE_PARTICIPANT","_action$participant$r2","REMOVE_PARTICIPANTS","participantsToRemove","_peerToAdd$role3","_peerToAdd$role4","notExists","peerToRemove","UPDATE_PARTICIPANT","_previousParticipant$","_action$participant$r3","previousParticipant","previousRoleList","currentRoleList","p","REPLACE_PARTICIPANTS_LIST","SET_ROLES_STATE","SET_ACTIVE_SPEAKERS","SET_IS_LOCAL_AUDIO_MUTED_STATE","SET_IS_LOCAL_VIDEO_MUTED_STATE","SET_IS_LOCAL_SCREEN_SHARED_STATE","SET_ROOM_LOCALLY_MUTED","ADD_TO_PREVIEW_PEERS_LIST","REMOVE_FROM_PREVIEW_PEERS_LIST","prevPeer","peerId","SET_LAYOUT_CONFIG","SET_ROLE_CHANGE_REQUEST","SET_RECONNECTING","CLEAR_STATES","_default","exports","default"],"sourceRoot":"../../../../src","sources":["redux/reducers/hmsStates.ts"],"mappings":";;;;;;AASA,IAAAA,YAAA,GAAAC,OAAA;AA4IA,MAAMC,aAA8B,GAAG;EACrCC,iBAAiB,EAAEC,SAAS;EAC5BC,iBAAiB,EAAED,SAAS;EAC5BE,mBAAmB,EAAEF,SAAS;EAC9BG,YAAY,EAAE,KAAK;EACnBC,gBAAgB,EAAE,KAAK;EACvBC,IAAI,EAAE,IAAI;EACVC,SAAS,EAAE,IAAI;EACfC,mBAAmB,EAAE,CAAC,CAAC;EACvBC,cAAc,EAAE,EAAE;EAClBC,KAAK,EAAE,EAAE;EACTC,gBAAgB,EAAE,EAAE;EACpBC,YAAY,EAAE,IAAI;EAClBC,iBAAiB,EAAE;AACrB,CAAC;AAED,MAAMC,gBAAgB,GAAG,SAAAA,CAAA,EAGH;EAAA,IAFpBC,KAAK,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAf,SAAA,GAAAe,SAAA,MAAGjB,aAAa;EAAA,IACrBmB,MAAkB,GAAAF,SAAA,CAAAC,MAAA,OAAAD,SAAA,MAAAf,SAAA;EAElB,QAAQiB,MAAM,CAACC,IAAI;IACjB,KAAKC,gCAAmB,CAAC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,KAAKkB,gCAAmB,CAAC2E,gCAAgC;MACvD,OAAO;QACL,GAAGhF,KAAK;QACRZ,mBAAmB,EAAEe,MAAM,CAACf;MAC9B,CAAC;IACH,KAAKiB,gCAAmB,CAAC4E,sBAAsB;MAC7C,OAAO;QACL,GAAGjF,KAAK;QACRV,gBAAgB,EAAEa,MAAM,CAACb;MAC3B,CAAC;IACH,KAAKe,gCAAmB,CAAC6E,yBAAyB;MAChD,OAAO;QACL,GAAGlF,KAAK;QACRJ,gBAAgB,EAAE,CAAC,GAAGI,KAAK,CAACJ,gBAAgB,EAAEO,MAAM,CAAC4B,IAAI;MAC3D,CAAC;IACH,KAAK1B,gCAAmB,CAAC8E,8BAA8B;MACrD,OAAO;QACL,GAAGnF,KAAK;QACRJ,gBAAgB,EAAEI,KAAK,CAACJ,gBAAgB,CAACkC,MAAM,CAC5CsD,QAAQ,IAAKA,QAAQ,CAAClE,MAAM,KAAKf,MAAM,CAACkF,MAC3C;MACF,CAAC;IACH,KAAKhF,gCAAmB,CAACiF,iBAAiB;MACxC,OAAO;QACL,GAAGtF,KAAK;QACRH,YAAY,EAAEM,MAAM,CAACN;MACvB,CAAC;IACH,KAAKQ,gCAAmB,CAACkF,uBAAuB;MAC9C,OAAO;QACL,GAAGvF,KAAK;QACRF,iBAAiB,EAAEK,MAAM,CAACL;MAC5B,CAAC;IACH,KAAKO,gCAAmB,CAACmF,gBAAgB;MACvC,OAAO;QACL,GAAGxF,KAAK;QACRX,YAAY,EAAEc,MAAM,CAACd;MACvB,CAAC;IACH,KAAKgB,gCAAmB,CAACoF,YAAY;MACnC,OAAOzG,aAAa;IACtB;MACE,OAAOgB,KAAK;EAChB;AACF,CAAC;AAAC,IAAA0F,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEa7F,gBAAgB"}
|
|
@@ -11,12 +11,11 @@ var _hmsStates = _interopRequireDefault(require("./hmsStates"));
|
|
|
11
11
|
var _chatWindow = _interopRequireDefault(require("./chatWindow"));
|
|
12
12
|
var _redux = require("redux");
|
|
13
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
-
var _default = (0, _redux.combineReducers)({
|
|
14
|
+
var _default = exports.default = (0, _redux.combineReducers)({
|
|
15
15
|
messages: _message.default,
|
|
16
16
|
app: _appState.default,
|
|
17
17
|
user: _userState.default,
|
|
18
18
|
hmsStates: _hmsStates.default,
|
|
19
19
|
chatWindow: _chatWindow.default
|
|
20
20
|
});
|
|
21
|
-
exports.default = _default;
|
|
22
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_message","_interopRequireDefault","require","_appState","_userState","_hmsStates","_chatWindow","_redux","obj","__esModule","default","_default","combineReducers","messages","app","user","hmsStates","chatWindow"
|
|
1
|
+
{"version":3,"names":["_message","_interopRequireDefault","require","_appState","_userState","_hmsStates","_chatWindow","_redux","obj","__esModule","default","_default","exports","combineReducers","messages","app","user","hmsStates","chatWindow"],"sourceRoot":"../../../../src","sources":["redux/reducers/index.ts"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,UAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,WAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AAAwC,SAAAD,uBAAAO,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAF,OAAA,GAEzB,IAAAG,sBAAe,EAAC;EAC7BC,QAAQ,EAARA,gBAAQ;EACRC,GAAG,EAAHA,iBAAG;EACHC,IAAI,EAAJA,kBAAI;EACJC,SAAS,EAATA,kBAAS;EACTC,UAAU,EAAVA;AACF,CAAC,CAAC"}
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _actionTypes = _interopRequireWildcard(require("../actionTypes"));
|
|
8
|
-
function _getRequireWildcardCache(
|
|
9
|
-
function _interopRequireWildcard(
|
|
8
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
9
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
10
10
|
const INITIAL_STATE = {
|
|
11
11
|
messages: [],
|
|
12
12
|
pinnedMessage: null
|
|
@@ -38,6 +38,5 @@ const messageReducer = function () {
|
|
|
38
38
|
return state;
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
|
-
var _default = messageReducer;
|
|
42
|
-
exports.default = _default;
|
|
41
|
+
var _default = exports.default = messageReducer;
|
|
43
42
|
//# sourceMappingURL=message.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_actionTypes","_interopRequireWildcard","require","_getRequireWildcardCache","
|
|
1
|
+
{"version":3,"names":["_actionTypes","_interopRequireWildcard","require","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","INITIAL_STATE","messages","pinnedMessage","messageReducer","state","arguments","length","undefined","action","type","ActionTypes","ADD_PINNED_MESSAGE","REQUEST","payload","ADD_MESSAGE","message","CLEAR_MESSAGE_DATA","HmsStateActionTypes","CLEAR_STATES","_default","exports"],"sourceRoot":"../../../../src","sources":["redux/reducers/message.ts"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,uBAAA,CAAAC,OAAA;AAAkE,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAH,wBAAAG,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAjB,CAAA,EAAAc,CAAA,SAAAI,CAAA,GAAAR,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAI,CAAA,KAAAA,CAAA,CAAAX,GAAA,IAAAW,CAAA,CAAAC,GAAA,IAAAR,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAI,CAAA,IAAAV,CAAA,CAAAM,CAAA,IAAAd,CAAA,CAAAc,CAAA,YAAAN,CAAA,CAAAH,OAAA,GAAAL,CAAA,EAA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