@100mslive/react-native-room-kit 0.1.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -10
- package/lib/commonjs/HMSPrebuilt.js +6 -6
- package/lib/commonjs/HMSPrebuilt.js.map +1 -1
- package/lib/commonjs/HMSRoomSetup.js +27 -30
- package/lib/commonjs/HMSRoomSetup.js.map +1 -1
- package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle-filled.png +0 -0
- package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle-filled@2x.png +0 -0
- package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle-filled@3x.png +0 -0
- package/lib/commonjs/Icons/AlertTriangle/index.js +2 -1
- package/lib/commonjs/Icons/AlertTriangle/index.js.map +1 -1
- package/lib/commonjs/Icons/Eye/assets/eye-on-small.png +0 -0
- package/lib/commonjs/Icons/Eye/assets/eye-on-small@2x.png +0 -0
- package/lib/commonjs/Icons/Eye/assets/eye-on-small@3x.png +0 -0
- package/lib/commonjs/Icons/Eye/index.js +35 -0
- package/lib/commonjs/Icons/Eye/index.js.map +1 -0
- package/lib/commonjs/Icons/Hamburger/assets/hamburger.png +0 -0
- package/lib/commonjs/Icons/Hamburger/assets/hamburger@2x.png +0 -0
- package/lib/commonjs/Icons/Hamburger/assets/hamburger@3x.png +0 -0
- package/lib/commonjs/Icons/Person/assets/person-left.png +0 -0
- package/lib/commonjs/Icons/Person/assets/person-left@2x.png +0 -0
- package/lib/commonjs/Icons/Person/assets/person-left@3x.png +0 -0
- package/lib/commonjs/Icons/Person/assets/person-off.png +0 -0
- package/lib/commonjs/Icons/Person/assets/person-off@2x.png +0 -0
- package/lib/commonjs/Icons/Person/assets/person-off@3x.png +0 -0
- package/lib/commonjs/Icons/Person/assets/person-rectangle.png +0 -0
- package/lib/commonjs/Icons/Person/assets/person-rectangle@2x.png +0 -0
- package/lib/commonjs/Icons/Person/assets/person-rectangle@3x.png +0 -0
- package/lib/commonjs/Icons/Person/index.js +2 -1
- package/lib/commonjs/Icons/Person/index.js.map +1 -1
- package/lib/commonjs/Icons/Radio/assets/radio-xlarge.png +0 -0
- package/lib/commonjs/Icons/Radio/assets/radio-xlarge@2x.png +0 -0
- package/lib/commonjs/Icons/Radio/assets/radio-xlarge@3x.png +0 -0
- package/lib/commonjs/Icons/Radio/index.js +29 -1
- package/lib/commonjs/Icons/Radio/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/Stop/assets/stop.png +0 -0
- package/lib/commonjs/Icons/Stop/assets/stop@2x.png +0 -0
- package/lib/commonjs/Icons/Stop/assets/stop@3x.png +0 -0
- package/lib/commonjs/Icons/Stop/index.js.map +1 -1
- package/lib/commonjs/Icons/index.js +22 -0
- package/lib/commonjs/Icons/index.js.map +1 -1
- package/lib/commonjs/assets/audio-level-white.json +1271 -0
- package/lib/commonjs/assets/empty-chat-illustration/empty-chat.png +0 -0
- package/lib/commonjs/assets/empty-chat-illustration/empty-chat@2x.png +0 -0
- package/lib/commonjs/assets/empty-chat-illustration/empty-chat@3x.png +0 -0
- package/lib/commonjs/assets/welcome.png +0 -0
- package/lib/commonjs/components/AnimatedFooter.js +35 -0
- package/lib/commonjs/components/AnimatedFooter.js.map +1 -0
- package/lib/commonjs/components/AnimatedHLSFooter.js +36 -0
- package/lib/commonjs/components/AnimatedHLSFooter.js.map +1 -0
- package/lib/commonjs/components/AnimatedHeader.js +44 -0
- package/lib/commonjs/components/AnimatedHeader.js.map +1 -0
- package/lib/commonjs/components/BottomSheet.js +6 -3
- package/lib/commonjs/components/BottomSheet.js.map +1 -1
- package/lib/commonjs/components/ChangeNameModalContent.js +0 -12
- package/lib/commonjs/components/ChangeNameModalContent.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatBanner.js +35 -55
- package/lib/commonjs/components/Chat/ChatBanner.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js +83 -0
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js.map +1 -0
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js +69 -0
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js.map +1 -0
- package/lib/commonjs/components/Chat/ChatFilterItem.js +71 -0
- package/lib/commonjs/components/Chat/ChatFilterItem.js.map +1 -0
- package/lib/commonjs/components/Chat/ChatFilterView.js +198 -0
- package/lib/commonjs/components/Chat/ChatFilterView.js.map +1 -0
- package/lib/commonjs/components/Chat/ChatList.js +6 -6
- package/lib/commonjs/components/Chat/ChatList.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatMessage.js +35 -135
- package/lib/commonjs/components/Chat/ChatMessage.js.map +1 -1
- package/lib/commonjs/components/Chat/PinnedMessage.js +39 -43
- package/lib/commonjs/components/Chat/PinnedMessage.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js +42 -0
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js.map +1 -0
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsHeader.js +105 -0
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsHeader.js.map +1 -0
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js +66 -0
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js.map +1 -0
- package/lib/commonjs/components/ChatAndParticipants/ChatView.js +37 -0
- package/lib/commonjs/components/ChatAndParticipants/ChatView.js.map +1 -0
- package/lib/commonjs/components/{Participants/SearchableParticipantsView.js → ChatAndParticipants/ParticipantsView.js} +24 -12
- package/lib/commonjs/components/ChatAndParticipants/ParticipantsView.js.map +1 -0
- package/lib/commonjs/components/ChatAndParticipants/index.js +17 -0
- package/lib/commonjs/components/ChatAndParticipants/index.js.map +1 -0
- package/lib/commonjs/components/CompanyLogo.js +5 -4
- 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 +9 -21
- package/lib/commonjs/components/DisplayView.js.map +1 -1
- package/lib/commonjs/components/EndRoomModalContent.js +20 -6
- package/lib/commonjs/components/EndRoomModalContent.js.map +1 -1
- package/lib/commonjs/components/Footer.js +41 -27
- package/lib/commonjs/components/Footer.js.map +1 -1
- package/lib/commonjs/components/FullScreenVideoView.js +74 -0
- package/lib/commonjs/components/FullScreenVideoView.js.map +1 -0
- package/lib/commonjs/components/GridView.js +129 -48
- package/lib/commonjs/components/GridView.js.map +1 -1
- package/lib/commonjs/components/{ParticipantsModal.js → HLSFooter.js} +19 -27
- package/lib/commonjs/components/HLSFooter.js.map +1 -0
- package/lib/commonjs/components/HLSView.js +10 -22
- package/lib/commonjs/components/HLSView.js.map +1 -1
- package/lib/commonjs/components/HMSChat.js +15 -14
- package/lib/commonjs/components/HMSChat.js.map +1 -1
- package/lib/commonjs/components/HMSHLSMessage.js +67 -0
- package/lib/commonjs/components/HMSHLSMessage.js.map +1 -0
- package/lib/commonjs/components/HMSHLSMessageList.js +58 -0
- package/lib/commonjs/components/HMSHLSMessageList.js.map +1 -0
- package/lib/commonjs/components/HMSHLSNotStarted.js +27 -24
- package/lib/commonjs/components/HMSHLSNotStarted.js.map +1 -1
- package/lib/commonjs/components/HMSHandRaiseNotification.js +84 -0
- package/lib/commonjs/components/HMSHandRaiseNotification.js.map +1 -0
- package/lib/commonjs/components/HMSKeyboardAvoidingView.js +49 -0
- package/lib/commonjs/components/HMSKeyboardAvoidingView.js.map +1 -0
- package/lib/commonjs/components/HMSLiveIndicator.js +105 -0
- package/lib/commonjs/components/HMSLiveIndicator.js.map +1 -0
- package/lib/commonjs/components/HMSLocalScreenshareNotification.js +38 -0
- package/lib/commonjs/components/HMSLocalScreenshareNotification.js.map +1 -0
- package/lib/commonjs/components/HMSLocalVideoView.js +4 -23
- package/lib/commonjs/components/HMSLocalVideoView.js.map +1 -1
- package/lib/commonjs/components/HMSManageAudioOutput.js +7 -1
- package/lib/commonjs/components/HMSManageAudioOutput.js.map +1 -1
- package/lib/commonjs/components/HMSManageLeave.js +47 -37
- package/lib/commonjs/components/HMSManageLeave.js.map +1 -1
- package/lib/commonjs/components/HMSManageRaiseHand.js +2 -15
- package/lib/commonjs/components/HMSManageRaiseHand.js.map +1 -1
- package/lib/commonjs/components/HMSNotification.js +96 -0
- package/lib/commonjs/components/HMSNotification.js.map +1 -0
- package/lib/commonjs/components/HMSNotifications.js +114 -0
- package/lib/commonjs/components/HMSNotifications.js.map +1 -0
- package/lib/commonjs/components/HMSOverlayChatView.js +30 -0
- package/lib/commonjs/components/HMSOverlayChatView.js.map +1 -0
- package/lib/commonjs/components/HMSPreviewJoinButton.js +1 -2
- package/lib/commonjs/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewNetworkQuality.js +1 -1
- package/lib/commonjs/components/HMSPreviewNetworkQuality.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewSubtitle.js +1 -3
- package/lib/commonjs/components/HMSPreviewSubtitle.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewTitle.js +1 -3
- package/lib/commonjs/components/HMSPreviewTitle.js.map +1 -1
- package/lib/commonjs/components/HMSRecordingIndicator.js +7 -3
- package/lib/commonjs/components/HMSRecordingIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSRoleChangeDeclinedNotification.js +30 -0
- package/lib/commonjs/components/HMSRoleChangeDeclinedNotification.js.map +1 -0
- package/lib/commonjs/components/HMSSendMessageInput.js +57 -0
- package/lib/commonjs/components/HMSSendMessageInput.js.map +1 -0
- package/lib/commonjs/components/HMSTextInput.js +98 -12
- package/lib/commonjs/components/HMSTextInput.js.map +1 -1
- package/lib/commonjs/components/HMSVideoView.js +43 -0
- package/lib/commonjs/components/HMSVideoView.js.map +1 -0
- package/lib/commonjs/components/Header.js +19 -123
- package/lib/commonjs/components/Header.js.map +1 -1
- package/lib/commonjs/components/LocalPeerScreenshareView.js +1 -7
- package/lib/commonjs/components/LocalPeerScreenshareView.js.map +1 -1
- package/lib/commonjs/components/Meeting.js +7 -5
- package/lib/commonjs/components/Meeting.js.map +1 -1
- package/lib/commonjs/components/MeetingScreenContent.js +23 -9
- package/lib/commonjs/components/MeetingScreenContent.js.map +1 -1
- package/lib/commonjs/components/MenuModal/Menu.js +2 -2
- package/lib/commonjs/components/MenuModal/Menu.js.map +1 -1
- package/lib/commonjs/components/MiniView.js +8 -3
- package/lib/commonjs/components/MiniView.js.map +1 -1
- package/lib/commonjs/components/Modals.js +88 -317
- package/lib/commonjs/components/Modals.js.map +1 -1
- package/lib/commonjs/components/OverlayContainer.js +41 -0
- package/lib/commonjs/components/OverlayContainer.js.map +1 -0
- package/lib/commonjs/components/OverlayedViews.js +22 -0
- package/lib/commonjs/components/OverlayedViews.js.map +1 -0
- package/lib/commonjs/components/PaginationDots.js +4 -4
- package/lib/commonjs/components/PaginationDots.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js +131 -0
- package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsGroupOptions.js +80 -0
- package/lib/commonjs/components/Participants/ParticipantsGroupOptions.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsItem.js +132 -0
- package/lib/commonjs/components/Participants/ParticipantsItem.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsItemOption.js +46 -0
- package/lib/commonjs/components/Participants/ParticipantsItemOption.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsItemOptions.js +220 -0
- package/lib/commonjs/components/Participants/ParticipantsItemOptions.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsList.js +40 -224
- package/lib/commonjs/components/Participants/ParticipantsList.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsSeachInput.js +36 -30
- package/lib/commonjs/components/Participants/ParticipantsSeachInput.js.map +1 -1
- package/lib/commonjs/components/Participants/index.js +0 -33
- package/lib/commonjs/components/Participants/index.js.map +1 -1
- package/lib/commonjs/components/PeerMinimizedView.js +1 -1
- package/lib/commonjs/components/PeerSettingsModalContent.js +47 -123
- package/lib/commonjs/components/PeerSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/AvatarView.js +19 -5
- package/lib/commonjs/components/PeerVideoTile/AvatarView.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/HMSFullScreenButton.js +45 -0
- package/lib/commonjs/components/PeerVideoTile/HMSFullScreenButton.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/HMSPinchGesture.js +202 -0
- package/lib/commonjs/components/PeerVideoTile/HMSPinchGesture.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/{PeerAudioMutedIndicator.js → PeerAudioIndicator.js} +30 -4
- package/lib/commonjs/components/PeerVideoTile/PeerAudioIndicator.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js +10 -2
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js +38 -17
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/VideoView.js +43 -10
- package/lib/commonjs/components/PeerVideoTile/VideoView.js.map +1 -1
- package/lib/commonjs/components/PressableIcon.js +10 -5
- package/lib/commonjs/components/PressableIcon.js.map +1 -1
- package/lib/commonjs/components/Preview.js +5 -14
- package/lib/commonjs/components/Preview.js.map +1 -1
- package/lib/commonjs/components/PreviewForRoleChangeModal.js +332 -0
- package/lib/commonjs/components/PreviewForRoleChangeModal.js.map +1 -0
- package/lib/commonjs/components/ReconnectionView.js +66 -0
- package/lib/commonjs/components/ReconnectionView.js.map +1 -0
- package/lib/commonjs/components/RoomSettingsModalContent.js +25 -33
- package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js +31 -70
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js.map +1 -1
- package/lib/commonjs/components/StatusBar.js +7 -5
- package/lib/commonjs/components/StatusBar.js.map +1 -1
- package/lib/commonjs/components/StopRecordingModalContent.js.map +1 -1
- package/lib/commonjs/components/StreamingQualityModalContent.js +8 -9
- package/lib/commonjs/components/StreamingQualityModalContent.js.map +1 -1
- package/lib/commonjs/components/TilesContainer.js +31 -9
- package/lib/commonjs/components/TilesContainer.js.map +1 -1
- package/lib/commonjs/components/WebrtcView.js +11 -14
- package/lib/commonjs/components/WebrtcView.js.map +1 -1
- package/lib/commonjs/components/WelcomeInMeeting.js +7 -31
- package/lib/commonjs/components/WelcomeInMeeting.js.map +1 -1
- package/lib/commonjs/components/index.js +0 -33
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/hooks-util-selectors.js +43 -9
- package/lib/commonjs/hooks-util-selectors.js.map +1 -1
- package/lib/commonjs/hooks-util.js +619 -213
- package/lib/commonjs/hooks-util.js.map +1 -1
- package/lib/commonjs/modules/HMSManager.js +3 -3
- package/lib/commonjs/modules/HMSManager.js.map +1 -1
- package/lib/commonjs/modules/parser.js +2 -3
- package/lib/commonjs/modules/parser.js.map +1 -1
- package/lib/commonjs/redux/actionTypes.js +25 -1
- package/lib/commonjs/redux/actionTypes.js.map +1 -1
- package/lib/commonjs/redux/actions/index.js +90 -1
- package/lib/commonjs/redux/actions/index.js.map +1 -1
- package/lib/commonjs/redux/reducers/appState.js +77 -2
- package/lib/commonjs/redux/reducers/appState.js.map +1 -1
- package/lib/commonjs/redux/reducers/chatWindow.js +3 -7
- package/lib/commonjs/redux/reducers/chatWindow.js.map +1 -1
- package/lib/commonjs/redux/reducers/hmsStates.js +70 -7
- package/lib/commonjs/redux/reducers/hmsStates.js.map +1 -1
- package/lib/commonjs/utils/functions.js +11 -4
- package/lib/commonjs/utils/functions.js.map +1 -1
- package/lib/commonjs/utils/theme.js +2 -0
- package/lib/commonjs/utils/theme.js.map +1 -1
- package/lib/commonjs/utils/types.js +9 -3
- package/lib/commonjs/utils/types.js.map +1 -1
- package/lib/commonjs/utils.js +8 -1
- package/lib/commonjs/utils.js.map +1 -1
- package/lib/module/HMSPrebuilt.js +6 -6
- package/lib/module/HMSPrebuilt.js.map +1 -1
- package/lib/module/HMSRoomSetup.js +29 -32
- package/lib/module/HMSRoomSetup.js.map +1 -1
- package/lib/module/Icons/AlertTriangle/assets/alert-triangle-filled.png +0 -0
- package/lib/module/Icons/AlertTriangle/assets/alert-triangle-filled@2x.png +0 -0
- package/lib/module/Icons/AlertTriangle/assets/alert-triangle-filled@3x.png +0 -0
- package/lib/module/Icons/AlertTriangle/index.js +2 -1
- package/lib/module/Icons/AlertTriangle/index.js.map +1 -1
- package/lib/module/Icons/Eye/assets/eye-on-small.png +0 -0
- package/lib/module/Icons/Eye/assets/eye-on-small@2x.png +0 -0
- package/lib/module/Icons/Eye/assets/eye-on-small@3x.png +0 -0
- package/lib/module/Icons/Eye/index.js +27 -0
- package/lib/module/Icons/Eye/index.js.map +1 -0
- package/lib/module/Icons/Hamburger/assets/hamburger.png +0 -0
- package/lib/module/Icons/Hamburger/assets/hamburger@2x.png +0 -0
- package/lib/module/Icons/Hamburger/assets/hamburger@3x.png +0 -0
- package/lib/module/Icons/Person/assets/person-left.png +0 -0
- package/lib/module/Icons/Person/assets/person-left@2x.png +0 -0
- package/lib/module/Icons/Person/assets/person-left@3x.png +0 -0
- package/lib/module/Icons/Person/assets/person-off.png +0 -0
- package/lib/module/Icons/Person/assets/person-off@2x.png +0 -0
- package/lib/module/Icons/Person/assets/person-off@3x.png +0 -0
- package/lib/module/Icons/Person/assets/person-rectangle.png +0 -0
- package/lib/module/Icons/Person/assets/person-rectangle@2x.png +0 -0
- package/lib/module/Icons/Person/assets/person-rectangle@3x.png +0 -0
- package/lib/module/Icons/Person/index.js +2 -1
- package/lib/module/Icons/Person/index.js.map +1 -1
- package/lib/module/Icons/Radio/assets/radio-xlarge.png +0 -0
- package/lib/module/Icons/Radio/assets/radio-xlarge@2x.png +0 -0
- package/lib/module/Icons/Radio/assets/radio-xlarge@3x.png +0 -0
- package/lib/module/Icons/Radio/index.js +30 -2
- package/lib/module/Icons/Radio/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/Stop/assets/stop.png +0 -0
- package/lib/module/Icons/Stop/assets/stop@2x.png +0 -0
- package/lib/module/Icons/Stop/assets/stop@3x.png +0 -0
- package/lib/module/Icons/Stop/index.js.map +1 -1
- package/lib/module/Icons/index.js +2 -0
- package/lib/module/Icons/index.js.map +1 -1
- package/lib/module/assets/audio-level-white.json +1271 -0
- package/lib/module/assets/empty-chat-illustration/empty-chat.png +0 -0
- package/lib/module/assets/empty-chat-illustration/empty-chat@2x.png +0 -0
- package/lib/module/assets/empty-chat-illustration/empty-chat@3x.png +0 -0
- package/lib/module/assets/welcome.png +0 -0
- package/lib/module/components/AnimatedFooter.js +26 -0
- package/lib/module/components/AnimatedFooter.js.map +1 -0
- package/lib/module/components/AnimatedHLSFooter.js +27 -0
- package/lib/module/components/AnimatedHLSFooter.js.map +1 -0
- package/lib/module/components/AnimatedHeader.js +35 -0
- package/lib/module/components/AnimatedHeader.js.map +1 -0
- package/lib/module/components/BottomSheet.js +6 -3
- package/lib/module/components/BottomSheet.js.map +1 -1
- package/lib/module/components/ChangeNameModalContent.js +2 -14
- package/lib/module/components/ChangeNameModalContent.js.map +1 -1
- package/lib/module/components/Chat/ChatBanner.js +36 -55
- package/lib/module/components/Chat/ChatBanner.js.map +1 -1
- package/lib/module/components/Chat/ChatFilterBottomSheetOpener.js +74 -0
- package/lib/module/components/Chat/ChatFilterBottomSheetOpener.js.map +1 -0
- package/lib/module/components/Chat/ChatFilterBottomSheetView.js +60 -0
- package/lib/module/components/Chat/ChatFilterBottomSheetView.js.map +1 -0
- package/lib/module/components/Chat/ChatFilterItem.js +62 -0
- package/lib/module/components/Chat/ChatFilterItem.js.map +1 -0
- package/lib/module/components/Chat/ChatFilterView.js +189 -0
- package/lib/module/components/Chat/ChatFilterView.js.map +1 -0
- package/lib/module/components/Chat/ChatList.js +6 -6
- package/lib/module/components/Chat/ChatList.js.map +1 -1
- package/lib/module/components/Chat/ChatMessage.js +36 -135
- package/lib/module/components/Chat/ChatMessage.js.map +1 -1
- package/lib/module/components/Chat/PinnedMessage.js +40 -43
- package/lib/module/components/Chat/PinnedMessage.js.map +1 -1
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js +33 -0
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js.map +1 -0
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsHeader.js +96 -0
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsHeader.js.map +1 -0
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsView.js +57 -0
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsView.js.map +1 -0
- package/lib/module/components/ChatAndParticipants/ChatView.js +28 -0
- package/lib/module/components/ChatAndParticipants/ChatView.js.map +1 -0
- package/lib/module/components/ChatAndParticipants/ParticipantsView.js +30 -0
- package/lib/module/components/ChatAndParticipants/ParticipantsView.js.map +1 -0
- package/lib/module/components/ChatAndParticipants/index.js +2 -0
- package/lib/module/components/ChatAndParticipants/index.js.map +1 -0
- package/lib/module/components/CompanyLogo.js +5 -4
- 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 +10 -22
- 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 +43 -29
- package/lib/module/components/Footer.js.map +1 -1
- package/lib/module/components/FullScreenVideoView.js +64 -0
- package/lib/module/components/FullScreenVideoView.js.map +1 -0
- package/lib/module/components/GridView.js +130 -49
- package/lib/module/components/GridView.js.map +1 -1
- package/lib/module/components/HLSFooter.js +26 -0
- package/lib/module/components/HLSFooter.js.map +1 -0
- package/lib/module/components/HLSView.js +11 -23
- package/lib/module/components/HLSView.js.map +1 -1
- package/lib/module/components/HMSChat.js +16 -15
- package/lib/module/components/HMSChat.js.map +1 -1
- package/lib/module/components/HMSHLSMessage.js +58 -0
- package/lib/module/components/HMSHLSMessage.js.map +1 -0
- package/lib/module/components/HMSHLSMessageList.js +49 -0
- package/lib/module/components/HMSHLSMessageList.js.map +1 -0
- package/lib/module/components/HMSHLSNotStarted.js +29 -26
- package/lib/module/components/HMSHLSNotStarted.js.map +1 -1
- package/lib/module/components/HMSHandRaiseNotification.js +75 -0
- package/lib/module/components/HMSHandRaiseNotification.js.map +1 -0
- package/lib/module/components/HMSKeyboardAvoidingView.js +40 -0
- package/lib/module/components/HMSKeyboardAvoidingView.js.map +1 -0
- package/lib/module/components/HMSLiveIndicator.js +96 -0
- package/lib/module/components/HMSLiveIndicator.js.map +1 -0
- package/lib/module/components/HMSLocalScreenshareNotification.js +29 -0
- package/lib/module/components/HMSLocalScreenshareNotification.js.map +1 -0
- package/lib/module/components/HMSLocalVideoView.js +4 -23
- package/lib/module/components/HMSLocalVideoView.js.map +1 -1
- package/lib/module/components/HMSManageAudioOutput.js +8 -2
- package/lib/module/components/HMSManageAudioOutput.js.map +1 -1
- package/lib/module/components/HMSManageLeave.js +49 -39
- package/lib/module/components/HMSManageLeave.js.map +1 -1
- package/lib/module/components/HMSManageRaiseHand.js +2 -15
- 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/HMSPreviewJoinButton.js +2 -3
- package/lib/module/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/module/components/HMSPreviewNetworkQuality.js +1 -1
- package/lib/module/components/HMSPreviewNetworkQuality.js.map +1 -1
- package/lib/module/components/HMSPreviewSubtitle.js +2 -4
- package/lib/module/components/HMSPreviewSubtitle.js.map +1 -1
- package/lib/module/components/HMSPreviewTitle.js +2 -4
- package/lib/module/components/HMSPreviewTitle.js.map +1 -1
- package/lib/module/components/HMSRecordingIndicator.js +7 -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 +99 -13
- package/lib/module/components/HMSTextInput.js.map +1 -1
- package/lib/module/components/HMSVideoView.js +34 -0
- package/lib/module/components/HMSVideoView.js.map +1 -0
- package/lib/module/components/Header.js +18 -123
- package/lib/module/components/Header.js.map +1 -1
- package/lib/module/components/LocalPeerScreenshareView.js +1 -6
- package/lib/module/components/LocalPeerScreenshareView.js.map +1 -1
- package/lib/module/components/Meeting.js +9 -7
- package/lib/module/components/Meeting.js.map +1 -1
- package/lib/module/components/MeetingScreenContent.js +25 -11
- package/lib/module/components/MeetingScreenContent.js.map +1 -1
- package/lib/module/components/MenuModal/Menu.js +2 -2
- package/lib/module/components/MenuModal/Menu.js.map +1 -1
- package/lib/module/components/MiniView.js +8 -3
- package/lib/module/components/MiniView.js.map +1 -1
- package/lib/module/components/Modals.js +88 -313
- package/lib/module/components/Modals.js.map +1 -1
- package/lib/module/components/OverlayContainer.js +32 -0
- package/lib/module/components/OverlayContainer.js.map +1 -0
- package/lib/module/components/OverlayedViews.js +13 -0
- package/lib/module/components/OverlayedViews.js.map +1 -0
- package/lib/module/components/PaginationDots.js +4 -4
- package/lib/module/components/PaginationDots.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsGroupHeader.js +121 -0
- package/lib/module/components/Participants/ParticipantsGroupHeader.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsGroupOptions.js +71 -0
- package/lib/module/components/Participants/ParticipantsGroupOptions.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsItem.js +123 -0
- package/lib/module/components/Participants/ParticipantsItem.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsItemOption.js +37 -0
- package/lib/module/components/Participants/ParticipantsItemOption.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsItemOptions.js +211 -0
- package/lib/module/components/Participants/ParticipantsItemOptions.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsList.js +42 -225
- package/lib/module/components/Participants/ParticipantsList.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsSeachInput.js +37 -30
- package/lib/module/components/Participants/ParticipantsSeachInput.js.map +1 -1
- package/lib/module/components/Participants/index.js +0 -3
- package/lib/module/components/Participants/index.js.map +1 -1
- package/lib/module/components/PeerMinimizedView.js +1 -1
- package/lib/module/components/PeerSettingsModalContent.js +50 -126
- package/lib/module/components/PeerSettingsModalContent.js.map +1 -1
- package/lib/module/components/PeerVideoTile/AvatarView.js +19 -5
- package/lib/module/components/PeerVideoTile/AvatarView.js.map +1 -1
- package/lib/module/components/PeerVideoTile/HMSFullScreenButton.js +36 -0
- package/lib/module/components/PeerVideoTile/HMSFullScreenButton.js.map +1 -0
- package/lib/module/components/PeerVideoTile/HMSPinchGesture.js +193 -0
- package/lib/module/components/PeerVideoTile/HMSPinchGesture.js.map +1 -0
- package/lib/module/components/PeerVideoTile/PeerAudioIndicator.js +60 -0
- package/lib/module/components/PeerVideoTile/PeerAudioIndicator.js.map +1 -0
- package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js +11 -3
- package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -1
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js +41 -20
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
- package/lib/module/components/PeerVideoTile/VideoView.js +43 -10
- package/lib/module/components/PeerVideoTile/VideoView.js.map +1 -1
- package/lib/module/components/PressableIcon.js +11 -6
- package/lib/module/components/PressableIcon.js.map +1 -1
- package/lib/module/components/Preview.js +6 -13
- package/lib/module/components/Preview.js.map +1 -1
- package/lib/module/components/PreviewForRoleChangeModal.js +322 -0
- package/lib/module/components/PreviewForRoleChangeModal.js.map +1 -0
- package/lib/module/components/ReconnectionView.js +56 -0
- package/lib/module/components/ReconnectionView.js.map +1 -0
- package/lib/module/components/RoomSettingsModalContent.js +27 -35
- package/lib/module/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/module/components/RoomSettingsModalDebugModeContent.js +31 -70
- package/lib/module/components/RoomSettingsModalDebugModeContent.js.map +1 -1
- package/lib/module/components/StatusBar.js +7 -5
- package/lib/module/components/StatusBar.js.map +1 -1
- package/lib/module/components/StopRecordingModalContent.js.map +1 -1
- package/lib/module/components/StreamingQualityModalContent.js +8 -8
- package/lib/module/components/StreamingQualityModalContent.js.map +1 -1
- package/lib/module/components/TilesContainer.js +31 -9
- package/lib/module/components/TilesContainer.js.map +1 -1
- package/lib/module/components/WebrtcView.js +11 -14
- package/lib/module/components/WebrtcView.js.map +1 -1
- package/lib/module/components/WelcomeInMeeting.js +8 -32
- package/lib/module/components/WelcomeInMeeting.js.map +1 -1
- package/lib/module/components/index.js +0 -3
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/hooks-util-selectors.js +38 -8
- package/lib/module/hooks-util-selectors.js.map +1 -1
- package/lib/module/hooks-util.js +615 -213
- package/lib/module/hooks-util.js.map +1 -1
- package/lib/module/modules/HMSManager.js +3 -3
- package/lib/module/modules/HMSManager.js.map +1 -1
- package/lib/module/modules/parser.js +2 -3
- package/lib/module/modules/parser.js.map +1 -1
- package/lib/module/redux/actionTypes.js +25 -1
- package/lib/module/redux/actionTypes.js.map +1 -1
- package/lib/module/redux/actions/index.js +74 -0
- package/lib/module/redux/actions/index.js.map +1 -1
- package/lib/module/redux/reducers/appState.js +78 -2
- package/lib/module/redux/reducers/appState.js.map +1 -1
- package/lib/module/redux/reducers/chatWindow.js +3 -7
- package/lib/module/redux/reducers/chatWindow.js.map +1 -1
- package/lib/module/redux/reducers/hmsStates.js +70 -7
- package/lib/module/redux/reducers/hmsStates.js.map +1 -1
- package/lib/module/utils/functions.js +9 -3
- package/lib/module/utils/functions.js.map +1 -1
- package/lib/module/utils/theme.js +2 -0
- package/lib/module/utils/theme.js.map +1 -1
- package/lib/module/utils/types.js +6 -2
- package/lib/module/utils/types.js.map +1 -1
- package/lib/module/utils.js +6 -0
- package/lib/module/utils.js.map +1 -1
- package/lib/typescript/HMSPrebuilt.d.ts +1 -0
- package/lib/typescript/HMSPrebuilt.d.ts.map +1 -1
- package/lib/typescript/HMSRoomSetup.d.ts.map +1 -1
- package/lib/typescript/Icons/AlertTriangle/index.d.ts +1 -0
- package/lib/typescript/Icons/AlertTriangle/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Eye/index.d.ts +8 -0
- package/lib/typescript/Icons/Eye/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Person/index.d.ts +1 -0
- package/lib/typescript/Icons/Person/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Radio/index.d.ts +7 -3
- package/lib/typescript/Icons/Radio/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/Stop/index.d.ts.map +1 -1
- package/lib/typescript/Icons/index.d.ts +2 -0
- package/lib/typescript/Icons/index.d.ts.map +1 -1
- package/lib/typescript/components/AnimatedFooter.d.ts +8 -0
- package/lib/typescript/components/AnimatedFooter.d.ts.map +1 -0
- package/lib/typescript/components/AnimatedHLSFooter.d.ts +11 -0
- package/lib/typescript/components/AnimatedHLSFooter.d.ts.map +1 -0
- package/lib/typescript/components/AnimatedHeader.d.ts +7 -0
- package/lib/typescript/components/AnimatedHeader.d.ts.map +1 -0
- package/lib/typescript/components/BottomSheet.d.ts +4 -1
- package/lib/typescript/components/BottomSheet.d.ts.map +1 -1
- package/lib/typescript/components/ChangeNameModalContent.d.ts.map +1 -1
- package/lib/typescript/components/Chat/ChatBanner.d.ts +1 -1
- package/lib/typescript/components/Chat/ChatBanner.d.ts.map +1 -1
- package/lib/typescript/components/Chat/ChatFilterBottomSheetOpener.d.ts +6 -0
- package/lib/typescript/components/Chat/ChatFilterBottomSheetOpener.d.ts.map +1 -0
- package/lib/typescript/components/Chat/ChatFilterBottomSheetView.d.ts +6 -0
- package/lib/typescript/components/Chat/ChatFilterBottomSheetView.d.ts.map +1 -0
- package/lib/typescript/components/Chat/ChatFilterItem.d.ts +12 -0
- package/lib/typescript/components/Chat/ChatFilterItem.d.ts.map +1 -0
- package/lib/typescript/components/Chat/ChatFilterView.d.ts +6 -0
- package/lib/typescript/components/Chat/ChatFilterView.d.ts.map +1 -0
- package/lib/typescript/components/Chat/ChatList.d.ts.map +1 -1
- package/lib/typescript/components/Chat/ChatMessage.d.ts +2 -2
- package/lib/typescript/components/Chat/ChatMessage.d.ts.map +1 -1
- package/lib/typescript/components/Chat/PinnedMessage.d.ts.map +1 -1
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.d.ts +3 -0
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.d.ts.map +1 -0
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsHeader.d.ts +7 -0
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsHeader.d.ts.map +1 -0
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsView.d.ts +3 -0
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsView.d.ts.map +1 -0
- package/lib/typescript/components/ChatAndParticipants/ChatView.d.ts +6 -0
- package/lib/typescript/components/ChatAndParticipants/ChatView.d.ts.map +1 -0
- package/lib/typescript/components/ChatAndParticipants/ParticipantsView.d.ts +5 -0
- package/lib/typescript/components/ChatAndParticipants/ParticipantsView.d.ts.map +1 -0
- package/lib/typescript/components/ChatAndParticipants/index.d.ts +2 -0
- package/lib/typescript/components/ChatAndParticipants/index.d.ts.map +1 -0
- package/lib/typescript/components/CompanyLogo.d.ts.map +1 -1
- package/lib/typescript/components/DefaultModal.d.ts.map +1 -1
- package/lib/typescript/components/DisplayView.d.ts.map +1 -1
- package/lib/typescript/components/EndRoomModalContent.d.ts.map +1 -1
- package/lib/typescript/components/Footer.d.ts +0 -2
- package/lib/typescript/components/Footer.d.ts.map +1 -1
- package/lib/typescript/components/FullScreenVideoView.d.ts +3 -0
- package/lib/typescript/components/FullScreenVideoView.d.ts.map +1 -0
- package/lib/typescript/components/GridView.d.ts +12 -1
- package/lib/typescript/components/GridView.d.ts.map +1 -1
- package/lib/typescript/components/HLSFooter.d.ts +8 -0
- package/lib/typescript/components/HLSFooter.d.ts.map +1 -0
- package/lib/typescript/components/HLSView.d.ts.map +1 -1
- package/lib/typescript/components/HMSBaseButton.d.ts +2 -2
- package/lib/typescript/components/HMSBaseButton.d.ts.map +1 -1
- package/lib/typescript/components/HMSChat.d.ts.map +1 -1
- package/lib/typescript/components/HMSHLSMessage.d.ts +8 -0
- package/lib/typescript/components/HMSHLSMessage.d.ts.map +1 -0
- package/lib/typescript/components/HMSHLSMessageList.d.ts +3 -0
- package/lib/typescript/components/HMSHLSMessageList.d.ts.map +1 -0
- package/lib/typescript/components/HMSHLSNotStarted.d.ts.map +1 -1
- package/lib/typescript/components/HMSHandRaiseNotification.d.ts +10 -0
- package/lib/typescript/components/HMSHandRaiseNotification.d.ts.map +1 -0
- package/lib/typescript/components/HMSKeyboardAvoidingView.d.ts +8 -0
- package/lib/typescript/components/HMSKeyboardAvoidingView.d.ts.map +1 -0
- package/lib/typescript/components/HMSLiveIndicator.d.ts +3 -0
- package/lib/typescript/components/HMSLiveIndicator.d.ts.map +1 -0
- package/lib/typescript/components/HMSLocalScreenshareNotification.d.ts +5 -0
- package/lib/typescript/components/HMSLocalScreenshareNotification.d.ts.map +1 -0
- package/lib/typescript/components/HMSLocalVideoView.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageAudioOutput.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageLeave.d.ts.map +1 -1
- package/lib/typescript/components/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/HMSPreviewJoinButton.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewNetworkQuality.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewSubtitle.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewTitle.d.ts.map +1 -1
- package/lib/typescript/components/HMSRecordingIndicator.d.ts.map +1 -1
- package/lib/typescript/components/HMSRoleChangeDeclinedNotification.d.ts +9 -0
- package/lib/typescript/components/HMSRoleChangeDeclinedNotification.d.ts.map +1 -0
- package/lib/typescript/components/HMSSendMessageInput.d.ts +9 -0
- package/lib/typescript/components/HMSSendMessageInput.d.ts.map +1 -0
- package/lib/typescript/components/HMSTextInput.d.ts +20 -6
- package/lib/typescript/components/HMSTextInput.d.ts.map +1 -1
- package/lib/typescript/components/HMSVideoView.d.ts +6 -0
- package/lib/typescript/components/HMSVideoView.d.ts.map +1 -0
- package/lib/typescript/components/Header.d.ts +3 -2
- package/lib/typescript/components/Header.d.ts.map +1 -1
- package/lib/typescript/components/LocalPeerScreenshareView.d.ts.map +1 -1
- package/lib/typescript/components/Meeting.d.ts.map +1 -1
- package/lib/typescript/components/MeetingScreenContent.d.ts.map +1 -1
- package/lib/typescript/components/MiniView.d.ts.map +1 -1
- package/lib/typescript/components/Modals.d.ts +1 -21
- package/lib/typescript/components/Modals.d.ts.map +1 -1
- package/lib/typescript/components/OverlayContainer.d.ts +9 -0
- package/lib/typescript/components/OverlayContainer.d.ts.map +1 -0
- package/lib/typescript/components/OverlayedViews.d.ts +4 -0
- package/lib/typescript/components/OverlayedViews.d.ts.map +1 -0
- package/lib/typescript/components/PaginationDots.d.ts +3 -0
- package/lib/typescript/components/PaginationDots.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsGroupHeader.d.ts +9 -0
- package/lib/typescript/components/Participants/ParticipantsGroupHeader.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsGroupOptions.d.ts +8 -0
- package/lib/typescript/components/Participants/ParticipantsGroupOptions.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsItem.d.ts +9 -0
- package/lib/typescript/components/Participants/ParticipantsItem.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsItemOption.d.ts +12 -0
- package/lib/typescript/components/Participants/ParticipantsItemOption.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsItemOptions.d.ts +10 -0
- package/lib/typescript/components/Participants/ParticipantsItemOptions.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsList.d.ts +4 -2
- package/lib/typescript/components/Participants/ParticipantsList.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsSeachInput.d.ts.map +1 -1
- package/lib/typescript/components/Participants/index.d.ts +0 -3
- package/lib/typescript/components/Participants/index.d.ts.map +1 -1
- package/lib/typescript/components/PeerSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/AvatarView.d.ts +4 -0
- package/lib/typescript/components/PeerVideoTile/AvatarView.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/HMSFullScreenButton.d.ts +7 -0
- package/lib/typescript/components/PeerVideoTile/HMSFullScreenButton.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/HMSPinchGesture.d.ts +7 -0
- package/lib/typescript/components/PeerVideoTile/HMSPinchGesture.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerAudioIndicator.d.ts +8 -0
- package/lib/typescript/components/PeerVideoTile/PeerAudioIndicator.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerNameAndNetwork.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts +2 -1
- package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/VideoView.d.ts +1 -0
- package/lib/typescript/components/PeerVideoTile/VideoView.d.ts.map +1 -1
- package/lib/typescript/components/PressableIcon.d.ts.map +1 -1
- package/lib/typescript/components/Preview.d.ts.map +1 -1
- package/lib/typescript/components/PreviewForRoleChangeModal.d.ts +3 -0
- package/lib/typescript/components/PreviewForRoleChangeModal.d.ts.map +1 -0
- package/lib/typescript/components/ReconnectionView.d.ts +4 -0
- package/lib/typescript/components/ReconnectionView.d.ts.map +1 -0
- package/lib/typescript/components/RoomSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/components/RoomSettingsModalDebugModeContent.d.ts.map +1 -1
- package/lib/typescript/components/StatusBar.d.ts +2 -1
- package/lib/typescript/components/StatusBar.d.ts.map +1 -1
- package/lib/typescript/components/StopRecordingModalContent.d.ts.map +1 -1
- package/lib/typescript/components/StreamingQualityModalContent.d.ts.map +1 -1
- package/lib/typescript/components/TilesContainer.d.ts.map +1 -1
- package/lib/typescript/components/WebrtcView.d.ts.map +1 -1
- package/lib/typescript/components/WelcomeInMeeting.d.ts.map +1 -1
- package/lib/typescript/components/index.d.ts +0 -3
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/hooks-util-selectors.d.ts +7 -2
- package/lib/typescript/hooks-util-selectors.d.ts.map +1 -1
- package/lib/typescript/hooks-util.d.ts +53 -23
- package/lib/typescript/hooks-util.d.ts.map +1 -1
- package/lib/typescript/modules/HMSManager.d.ts +1 -1
- package/lib/typescript/modules/HMSManager.d.ts.map +1 -1
- package/lib/typescript/modules/parser.d.ts +1 -1
- package/lib/typescript/modules/parser.d.ts.map +1 -1
- package/lib/typescript/redux/actionTypes.d.ts +16 -1
- package/lib/typescript/redux/actionTypes.d.ts.map +1 -1
- package/lib/typescript/redux/actions/index.d.ts +92 -4
- package/lib/typescript/redux/actions/index.d.ts.map +1 -1
- package/lib/typescript/redux/index.d.ts +22 -2
- package/lib/typescript/redux/index.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/appState.d.ts +10 -0
- package/lib/typescript/redux/reducers/appState.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/chatWindow.d.ts +6 -6
- package/lib/typescript/redux/reducers/chatWindow.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/hmsStates.d.ts +32 -4
- package/lib/typescript/redux/reducers/hmsStates.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/index.d.ts +22 -2
- package/lib/typescript/redux/reducers/index.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/userState.d.ts +1 -0
- package/lib/typescript/redux/reducers/userState.d.ts.map +1 -1
- package/lib/typescript/utils/functions.d.ts +3 -1
- package/lib/typescript/utils/functions.d.ts.map +1 -1
- package/lib/typescript/utils/theme.d.ts +1 -1
- package/lib/typescript/utils/theme.d.ts.map +1 -1
- package/lib/typescript/utils/types.d.ts +6 -2
- package/lib/typescript/utils/types.d.ts.map +1 -1
- package/lib/typescript/utils.d.ts +5 -0
- package/lib/typescript/utils.d.ts.map +1 -1
- package/package.json +13 -8
- package/src/HMSPrebuilt.tsx +10 -10
- package/src/HMSRoomSetup.tsx +50 -28
- package/src/Icons/AlertTriangle/assets/alert-triangle-filled.png +0 -0
- package/src/Icons/AlertTriangle/assets/alert-triangle-filled@2x.png +0 -0
- package/src/Icons/AlertTriangle/assets/alert-triangle-filled@3x.png +0 -0
- package/src/Icons/AlertTriangle/index.tsx +9 -2
- package/src/Icons/Eye/assets/eye-on-small.png +0 -0
- package/src/Icons/Eye/assets/eye-on-small@2x.png +0 -0
- package/src/Icons/Eye/assets/eye-on-small@3x.png +0 -0
- package/src/Icons/Eye/index.tsx +36 -0
- package/src/Icons/Hamburger/assets/hamburger.png +0 -0
- package/src/Icons/Hamburger/assets/hamburger@2x.png +0 -0
- package/src/Icons/Hamburger/assets/hamburger@3x.png +0 -0
- package/src/Icons/Person/assets/person-left.png +0 -0
- package/src/Icons/Person/assets/person-left@2x.png +0 -0
- package/src/Icons/Person/assets/person-left@3x.png +0 -0
- package/src/Icons/Person/assets/person-off.png +0 -0
- package/src/Icons/Person/assets/person-off@2x.png +0 -0
- package/src/Icons/Person/assets/person-off@3x.png +0 -0
- package/src/Icons/Person/assets/person-rectangle.png +0 -0
- package/src/Icons/Person/assets/person-rectangle@2x.png +0 -0
- package/src/Icons/Person/assets/person-rectangle@3x.png +0 -0
- package/src/Icons/Person/index.tsx +13 -2
- package/src/Icons/Radio/assets/radio-xlarge.png +0 -0
- package/src/Icons/Radio/assets/radio-xlarge@2x.png +0 -0
- package/src/Icons/Radio/assets/radio-xlarge@3x.png +0 -0
- package/src/Icons/Radio/index.tsx +53 -4
- 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/Stop/assets/stop.png +0 -0
- package/src/Icons/Stop/assets/stop@2x.png +0 -0
- package/src/Icons/Stop/assets/stop@3x.png +0 -0
- package/src/Icons/Stop/index.tsx +1 -4
- package/src/Icons/index.ts +2 -0
- package/src/assets/audio-level-white.json +1271 -0
- package/src/assets/empty-chat-illustration/empty-chat.png +0 -0
- package/src/assets/empty-chat-illustration/empty-chat@2x.png +0 -0
- package/src/assets/empty-chat-illustration/empty-chat@3x.png +0 -0
- package/src/assets/welcome.png +0 -0
- package/src/components/AnimatedFooter.tsx +37 -0
- package/src/components/AnimatedHLSFooter.tsx +43 -0
- package/src/components/AnimatedHeader.tsx +53 -0
- package/src/components/BottomSheet.tsx +8 -4
- package/src/components/ChangeNameModalContent.tsx +2 -11
- package/src/components/Chat/ChatBanner.tsx +37 -52
- package/src/components/Chat/ChatFilterBottomSheetOpener.tsx +88 -0
- package/src/components/Chat/ChatFilterBottomSheetView.tsx +81 -0
- package/src/components/Chat/ChatFilterItem.tsx +71 -0
- package/src/components/Chat/ChatFilterView.tsx +250 -0
- package/src/components/Chat/ChatList.tsx +16 -12
- package/src/components/Chat/ChatMessage.tsx +48 -197
- package/src/components/Chat/PinnedMessage.tsx +45 -45
- package/src/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.tsx +38 -0
- package/src/components/ChatAndParticipants/ChatAndParticipantsHeader.tsx +140 -0
- package/src/components/ChatAndParticipants/ChatAndParticipantsView.tsx +84 -0
- package/src/components/ChatAndParticipants/ChatView.tsx +42 -0
- package/src/components/ChatAndParticipants/ParticipantsView.tsx +41 -0
- package/src/components/ChatAndParticipants/index.ts +1 -0
- package/src/components/CompanyLogo.tsx +4 -3
- package/src/components/DefaultModal.tsx +4 -6
- package/src/components/DisplayView.tsx +11 -28
- package/src/components/EndRoomModalContent.tsx +32 -7
- package/src/components/Footer.tsx +76 -36
- 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 +6 -33
- package/src/components/HMSBaseButton.tsx +2 -2
- package/src/components/HMSChat.tsx +12 -25
- package/src/components/HMSHLSMessage.tsx +72 -0
- package/src/components/HMSHLSMessageList.tsx +60 -0
- package/src/components/HMSHLSNotStarted.tsx +27 -32
- 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 +56 -35
- package/src/components/HMSManageRaiseHand.tsx +2 -16
- package/src/components/HMSNotification.tsx +126 -0
- package/src/components/HMSNotifications.tsx +154 -0
- package/src/components/HMSOverlayChatView.tsx +36 -0
- package/src/components/HMSPreviewJoinButton.tsx +6 -3
- package/src/components/HMSPreviewNetworkQuality.tsx +3 -1
- package/src/components/HMSPreviewSubtitle.tsx +2 -6
- package/src/components/HMSPreviewTitle.tsx +2 -6
- package/src/components/HMSRecordingIndicator.tsx +18 -5
- package/src/components/HMSRoleChangeDeclinedNotification.tsx +25 -0
- package/src/components/HMSSendMessageInput.tsx +59 -0
- package/src/components/HMSTextInput.tsx +157 -23
- package/src/components/HMSVideoView.tsx +43 -0
- package/src/components/Header.tsx +28 -136
- package/src/components/LocalPeerScreenshareView.tsx +0 -6
- package/src/components/Meeting.tsx +15 -8
- package/src/components/MeetingScreenContent.tsx +29 -12
- package/src/components/MiniView.tsx +10 -4
- package/src/components/Modals.tsx +112 -370
- package/src/components/OverlayContainer.tsx +31 -0
- package/src/components/OverlayedViews.tsx +22 -0
- package/src/components/PaginationDots.tsx +9 -8
- package/src/components/Participants/ParticipantsGroupHeader.tsx +145 -0
- package/src/components/Participants/ParticipantsGroupOptions.tsx +87 -0
- package/src/components/Participants/ParticipantsItem.tsx +170 -0
- package/src/components/Participants/ParticipantsItemOption.tsx +52 -0
- package/src/components/Participants/ParticipantsItemOptions.tsx +262 -0
- package/src/components/Participants/ParticipantsList.tsx +68 -278
- package/src/components/Participants/ParticipantsSeachInput.tsx +37 -35
- package/src/components/Participants/index.ts +0 -3
- package/src/components/PeerMinimizedView.tsx +1 -1
- package/src/components/PeerSettingsModalContent.tsx +44 -191
- package/src/components/PeerVideoTile/AvatarView.tsx +43 -5
- package/src/components/PeerVideoTile/HMSFullScreenButton.tsx +56 -0
- package/src/components/PeerVideoTile/HMSPinchGesture.tsx +176 -0
- package/src/components/PeerVideoTile/PeerAudioIndicator.tsx +78 -0
- package/src/components/PeerVideoTile/PeerNameAndNetwork.tsx +15 -2
- package/src/components/PeerVideoTile/PeerVideoTileView.tsx +172 -115
- package/src/components/PeerVideoTile/VideoView.tsx +59 -9
- package/src/components/PressableIcon.tsx +26 -13
- package/src/components/Preview.tsx +17 -24
- package/src/components/PreviewForRoleChangeModal.tsx +448 -0
- package/src/components/ReconnectionView.tsx +73 -0
- package/src/components/RoomSettingsModalContent.tsx +32 -29
- package/src/components/RoomSettingsModalDebugModeContent.tsx +11 -65
- package/src/components/StatusBar.tsx +6 -4
- package/src/components/StopRecordingModalContent.tsx +3 -1
- package/src/components/StreamingQualityModalContent.tsx +8 -8
- package/src/components/TilesContainer.tsx +54 -24
- package/src/components/WebrtcView.tsx +29 -19
- package/src/components/WelcomeInMeeting.tsx +5 -34
- package/src/components/index.ts +0 -3
- package/src/hooks-util-selectors.tsx +69 -6
- package/src/hooks-util.ts +856 -273
- package/src/modules/HMSManager.ts +3 -3
- package/src/modules/parser.ts +3 -4
- package/src/redux/actionTypes.ts +33 -0
- package/src/redux/actions/index.ts +99 -2
- package/src/redux/reducers/appState.ts +87 -2
- package/src/redux/reducers/chatWindow.ts +12 -5
- package/src/redux/reducers/hmsStates.ts +136 -4
- package/src/redux/reducers/userState.ts +1 -1
- package/src/utils/functions.ts +10 -1
- package/src/utils/theme.ts +3 -1
- package/src/utils/types.ts +6 -2
- package/src/utils.ts +6 -0
- package/lib/commonjs/assets/100ms-logo.png +0 -0
- package/lib/commonjs/assets/brb.png +0 -0
- package/lib/commonjs/assets/icon.png +0 -0
- package/lib/commonjs/assets/illustration.png +0 -0
- package/lib/commonjs/assets/network_0.png +0 -0
- package/lib/commonjs/assets/network_1.png +0 -0
- package/lib/commonjs/assets/network_2.png +0 -0
- package/lib/commonjs/assets/network_3.png +0 -0
- package/lib/commonjs/assets/network_4.png +0 -0
- package/lib/commonjs/assets/user_music.png +0 -0
- package/lib/commonjs/components/ChatWindow.js +0 -608
- package/lib/commonjs/components/ChatWindow.js.map +0 -1
- package/lib/commonjs/components/CustomInput.js +0 -89
- package/lib/commonjs/components/CustomInput.js.map +0 -1
- package/lib/commonjs/components/DisplayTrack.js +0 -70
- package/lib/commonjs/components/DisplayTrack.js.map +0 -1
- package/lib/commonjs/components/HMSShareScreen.js +0 -59
- package/lib/commonjs/components/HMSShareScreen.js.map +0 -1
- package/lib/commonjs/components/HMSShowNetworkQuality.js +0 -56
- package/lib/commonjs/components/HMSShowNetworkQuality.js.map +0 -1
- package/lib/commonjs/components/LiveButton.js +0 -70
- package/lib/commonjs/components/LiveButton.js.map +0 -1
- package/lib/commonjs/components/Participants/ParticipantsFilter.js +0 -128
- package/lib/commonjs/components/Participants/ParticipantsFilter.js.map +0 -1
- package/lib/commonjs/components/Participants/ParticipantsHeader.js +0 -67
- package/lib/commonjs/components/Participants/ParticipantsHeader.js.map +0 -1
- package/lib/commonjs/components/Participants/SearchableParticipantsView.js.map +0 -1
- package/lib/commonjs/components/ParticipantsModal.js.map +0 -1
- package/lib/commonjs/components/PeerVideoTile/PeerAudioMutedIndicator.js.map +0 -1
- package/lib/commonjs/components/Picker.js +0 -93
- package/lib/commonjs/components/Picker.js.map +0 -1
- package/lib/module/assets/100ms-logo.png +0 -0
- package/lib/module/assets/brb.png +0 -0
- package/lib/module/assets/icon.png +0 -0
- package/lib/module/assets/illustration.png +0 -0
- package/lib/module/assets/network_0.png +0 -0
- package/lib/module/assets/network_1.png +0 -0
- package/lib/module/assets/network_2.png +0 -0
- package/lib/module/assets/network_3.png +0 -0
- package/lib/module/assets/network_4.png +0 -0
- package/lib/module/assets/user_music.png +0 -0
- package/lib/module/components/ChatWindow.js +0 -595
- package/lib/module/components/ChatWindow.js.map +0 -1
- package/lib/module/components/CustomInput.js +0 -82
- package/lib/module/components/CustomInput.js.map +0 -1
- package/lib/module/components/DisplayTrack.js +0 -63
- package/lib/module/components/DisplayTrack.js.map +0 -1
- package/lib/module/components/HMSShareScreen.js +0 -50
- package/lib/module/components/HMSShareScreen.js.map +0 -1
- package/lib/module/components/HMSShowNetworkQuality.js +0 -47
- package/lib/module/components/HMSShowNetworkQuality.js.map +0 -1
- package/lib/module/components/LiveButton.js +0 -61
- package/lib/module/components/LiveButton.js.map +0 -1
- package/lib/module/components/Participants/ParticipantsFilter.js +0 -121
- package/lib/module/components/Participants/ParticipantsFilter.js.map +0 -1
- package/lib/module/components/Participants/ParticipantsHeader.js +0 -58
- package/lib/module/components/Participants/ParticipantsHeader.js.map +0 -1
- package/lib/module/components/Participants/SearchableParticipantsView.js +0 -18
- package/lib/module/components/Participants/SearchableParticipantsView.js.map +0 -1
- package/lib/module/components/ParticipantsModal.js +0 -34
- package/lib/module/components/ParticipantsModal.js.map +0 -1
- package/lib/module/components/PeerVideoTile/PeerAudioMutedIndicator.js +0 -35
- package/lib/module/components/PeerVideoTile/PeerAudioMutedIndicator.js.map +0 -1
- package/lib/module/components/Picker.js +0 -83
- package/lib/module/components/Picker.js.map +0 -1
- package/lib/typescript/components/ChatWindow.d.ts +0 -22
- package/lib/typescript/components/ChatWindow.d.ts.map +0 -1
- package/lib/typescript/components/CustomInput.d.ts +0 -24
- package/lib/typescript/components/CustomInput.d.ts.map +0 -1
- package/lib/typescript/components/DisplayTrack.d.ts +0 -9
- package/lib/typescript/components/DisplayTrack.d.ts.map +0 -1
- package/lib/typescript/components/HMSShareScreen.d.ts +0 -9
- package/lib/typescript/components/HMSShareScreen.d.ts.map +0 -1
- package/lib/typescript/components/HMSShowNetworkQuality.d.ts +0 -3
- package/lib/typescript/components/HMSShowNetworkQuality.d.ts.map +0 -1
- package/lib/typescript/components/LiveButton.d.ts +0 -17
- package/lib/typescript/components/LiveButton.d.ts.map +0 -1
- package/lib/typescript/components/Participants/ParticipantsFilter.d.ts +0 -6
- package/lib/typescript/components/Participants/ParticipantsFilter.d.ts.map +0 -1
- package/lib/typescript/components/Participants/ParticipantsHeader.d.ts +0 -9
- package/lib/typescript/components/Participants/ParticipantsHeader.d.ts.map +0 -1
- package/lib/typescript/components/Participants/SearchableParticipantsView.d.ts +0 -3
- package/lib/typescript/components/Participants/SearchableParticipantsView.d.ts.map +0 -1
- package/lib/typescript/components/ParticipantsModal.d.ts +0 -5
- package/lib/typescript/components/ParticipantsModal.d.ts.map +0 -1
- package/lib/typescript/components/PeerVideoTile/PeerAudioMutedIndicator.d.ts +0 -6
- package/lib/typescript/components/PeerVideoTile/PeerAudioMutedIndicator.d.ts.map +0 -1
- package/lib/typescript/components/Picker.d.ts +0 -9
- package/lib/typescript/components/Picker.d.ts.map +0 -1
- package/src/assets/100ms-logo.png +0 -0
- package/src/assets/brb.png +0 -0
- package/src/assets/icon.png +0 -0
- package/src/assets/illustration.png +0 -0
- package/src/assets/network_0.png +0 -0
- package/src/assets/network_1.png +0 -0
- package/src/assets/network_2.png +0 -0
- package/src/assets/network_3.png +0 -0
- package/src/assets/network_4.png +0 -0
- package/src/assets/user_music.png +0 -0
- package/src/components/ChatWindow.tsx +0 -706
- package/src/components/CustomInput.tsx +0 -138
- package/src/components/DisplayTrack.tsx +0 -92
- package/src/components/HMSShareScreen.tsx +0 -71
- package/src/components/HMSShowNetworkQuality.tsx +0 -68
- package/src/components/LiveButton.tsx +0 -77
- package/src/components/Participants/ParticipantsFilter.tsx +0 -144
- package/src/components/Participants/ParticipantsHeader.tsx +0 -64
- package/src/components/Participants/SearchableParticipantsView.tsx +0 -21
- package/src/components/ParticipantsModal.tsx +0 -46
- package/src/components/PeerVideoTile/PeerAudioMutedIndicator.tsx +0 -41
- package/src/components/Picker.tsx +0 -108
package/src/utils/types.ts
CHANGED
|
@@ -44,10 +44,9 @@ export enum ModalTypes {
|
|
|
44
44
|
LEAVE_ROOM = 'leaveRoom',
|
|
45
45
|
END_ROOM = 'endRoom',
|
|
46
46
|
SETTINGS = 'settings',
|
|
47
|
-
CHAT = 'chat',
|
|
48
47
|
ZOOM = 'zoom',
|
|
49
48
|
PREVIEW = 'preview',
|
|
50
|
-
|
|
49
|
+
CHAT_AND_PARTICIPANTS = 'chat_and_participants',
|
|
51
50
|
AUDIO_MIXING_MODE = 'audioMixingMode',
|
|
52
51
|
SET_AUDIO_SHARE_VOLUME = 'setAudioShareVolume',
|
|
53
52
|
WELCOME_SETTINGS = 'welcomeSettings',
|
|
@@ -95,6 +94,11 @@ export const SUPPORTED_ASPECT_RATIOS = [
|
|
|
95
94
|
];
|
|
96
95
|
|
|
97
96
|
export enum MaxTilesInOnePage {
|
|
97
|
+
IN_PORTRAIT_WITH_SCREENSHARES = 2,
|
|
98
98
|
IN_PORTRAIT = 6,
|
|
99
99
|
IN_LANDSCAPE = 2,
|
|
100
100
|
}
|
|
101
|
+
|
|
102
|
+
export const ChatBottomSheetTabs = ['Chat', 'Participants'] as const;
|
|
103
|
+
|
|
104
|
+
export const ChatBroadcastFilter = { name: 'everyone' } as const;
|
package/src/utils.ts
CHANGED
|
@@ -22,3 +22,9 @@ export const getJoinConfig = (): typeof DEFAULT_JOINING_CONFIG => {
|
|
|
22
22
|
|
|
23
23
|
return config;
|
|
24
24
|
};
|
|
25
|
+
|
|
26
|
+
export enum NotificationTypes {
|
|
27
|
+
ROLE_CHANGE_DECLINED = 'role_change_declined',
|
|
28
|
+
HAND_RAISE = 'hand_raise',
|
|
29
|
+
LOCAL_SCREENSHARE = 'local_screenshare',
|
|
30
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,608 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ChatWindow = exports.ChatView = exports.ChatTextInput = exports.ChatHeader = exports.ChatAndParticipantsHeader = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _reactNativeHms = require("@100mslive/react-native-hms");
|
|
10
|
-
var _MaterialIcons = _interopRequireDefault(require("react-native-vector-icons/MaterialIcons"));
|
|
11
|
-
var _Ionicons = _interopRequireDefault(require("react-native-vector-icons/Ionicons"));
|
|
12
|
-
var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
|
|
13
|
-
var _reactRedux = require("react-redux");
|
|
14
|
-
var _MenuModal = require("./MenuModal");
|
|
15
|
-
var _theme = require("../utils/theme");
|
|
16
|
-
var _actions = require("../redux/actions");
|
|
17
|
-
var _PressableIcon = require("./PressableIcon");
|
|
18
|
-
var _Icons = require("../Icons");
|
|
19
|
-
var _hooksUtil = require("../hooks-util");
|
|
20
|
-
var _Chat = require("./Chat");
|
|
21
|
-
var _Participants = require("./Participants");
|
|
22
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
24
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
|
-
const ChatHeader = _ref => {
|
|
26
|
-
let {
|
|
27
|
-
filters,
|
|
28
|
-
onClosePress
|
|
29
|
-
} = _ref;
|
|
30
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
31
|
-
style: chatHeaderStyles.header
|
|
32
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
33
|
-
style: chatHeaderStyles.headerTitleWrapper
|
|
34
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
35
|
-
style: chatHeaderStyles.headerTitle
|
|
36
|
-
}, "Chat"), filters ? /*#__PURE__*/_react.default.createElement(ChatFilter, null) : null), /*#__PURE__*/_react.default.createElement(_PressableIcon.PressableIcon, {
|
|
37
|
-
border: false,
|
|
38
|
-
onPress: onClosePress
|
|
39
|
-
}, /*#__PURE__*/_react.default.createElement(_Icons.CloseIcon, null)));
|
|
40
|
-
};
|
|
41
|
-
exports.ChatHeader = ChatHeader;
|
|
42
|
-
const chatHeaderStyles = _reactNative.StyleSheet.create({
|
|
43
|
-
header: {
|
|
44
|
-
flexDirection: 'row',
|
|
45
|
-
alignItems: 'center',
|
|
46
|
-
justifyContent: 'space-between'
|
|
47
|
-
},
|
|
48
|
-
headerTitleWrapper: {
|
|
49
|
-
flexDirection: 'row',
|
|
50
|
-
alignItems: 'center'
|
|
51
|
-
},
|
|
52
|
-
headerTitle: {
|
|
53
|
-
color: _theme.COLORS.SURFACE.ON_SURFACE.HIGH,
|
|
54
|
-
fontSize: 14,
|
|
55
|
-
fontFamily: 'Inter',
|
|
56
|
-
fontWeight: '600',
|
|
57
|
-
lineHeight: 20,
|
|
58
|
-
letterSpacing: 0.25
|
|
59
|
-
},
|
|
60
|
-
closeIcon: {
|
|
61
|
-
width: 20,
|
|
62
|
-
height: 20
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
const tabs = ['Chat', 'Participants'];
|
|
66
|
-
const ChatAndParticipantsHeader = _ref2 => {
|
|
67
|
-
let {
|
|
68
|
-
activeTab,
|
|
69
|
-
setActiveTab,
|
|
70
|
-
onClosePress
|
|
71
|
-
} = _ref2;
|
|
72
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
73
|
-
style: chatAndParticipantsHeaderStyles.container
|
|
74
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
75
|
-
style: chatAndParticipantsHeaderStyles.grayBar
|
|
76
|
-
}), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
77
|
-
style: chatAndParticipantsHeaderStyles.header
|
|
78
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
79
|
-
style: chatAndParticipantsHeaderStyles.headerTitleWrapper
|
|
80
|
-
}, tabs.map(tab => {
|
|
81
|
-
const isActive = activeTab === tab;
|
|
82
|
-
const TabIcon = tab === 'Chat' ? _Icons.ChatIcon : _Icons.ParticipantsIcon;
|
|
83
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
84
|
-
key: tab,
|
|
85
|
-
style: [chatAndParticipantsHeaderStyles.tab, isActive ? {
|
|
86
|
-
borderColor: _theme.COLORS.PRIMARY.DEFAULT
|
|
87
|
-
} : null],
|
|
88
|
-
onPress: () => setActiveTab(tab)
|
|
89
|
-
}, /*#__PURE__*/_react.default.createElement(TabIcon, {
|
|
90
|
-
style: [chatAndParticipantsHeaderStyles.tabIcon, isActive ? {
|
|
91
|
-
tintColor: _theme.COLORS.PRIMARY.DEFAULT
|
|
92
|
-
} : null]
|
|
93
|
-
}), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
94
|
-
style: [chatHeaderStyles.headerTitle, isActive ? null : {
|
|
95
|
-
color: _theme.COLORS.SURFACE.ON_SURFACE.LOW
|
|
96
|
-
}]
|
|
97
|
-
}, tab));
|
|
98
|
-
})), /*#__PURE__*/_react.default.createElement(_PressableIcon.PressableIcon, {
|
|
99
|
-
border: false,
|
|
100
|
-
onPress: onClosePress
|
|
101
|
-
}, /*#__PURE__*/_react.default.createElement(_Icons.CloseIcon, {
|
|
102
|
-
style: chatHeaderStyles.closeIcon
|
|
103
|
-
}))));
|
|
104
|
-
};
|
|
105
|
-
exports.ChatAndParticipantsHeader = ChatAndParticipantsHeader;
|
|
106
|
-
const chatAndParticipantsHeaderStyles = _reactNative.StyleSheet.create({
|
|
107
|
-
container: {
|
|
108
|
-
position: 'relative'
|
|
109
|
-
},
|
|
110
|
-
grayBar: {
|
|
111
|
-
position: 'absolute',
|
|
112
|
-
bottom: 0,
|
|
113
|
-
width: '100%',
|
|
114
|
-
height: 2,
|
|
115
|
-
backgroundColor: _theme.COLORS.BORDER.LIGHT
|
|
116
|
-
},
|
|
117
|
-
header: {
|
|
118
|
-
flexDirection: 'row',
|
|
119
|
-
alignItems: 'flex-end',
|
|
120
|
-
justifyContent: 'space-between'
|
|
121
|
-
},
|
|
122
|
-
headerTitleWrapper: {
|
|
123
|
-
flexDirection: 'row',
|
|
124
|
-
alignItems: 'center'
|
|
125
|
-
},
|
|
126
|
-
tab: {
|
|
127
|
-
flexDirection: 'row',
|
|
128
|
-
paddingVertical: 8,
|
|
129
|
-
borderBottomWidth: 2,
|
|
130
|
-
marginRight: 16,
|
|
131
|
-
borderColor: _theme.COLORS.BORDER.LIGHT
|
|
132
|
-
},
|
|
133
|
-
tabIcon: {
|
|
134
|
-
width: 20,
|
|
135
|
-
height: 20,
|
|
136
|
-
marginRight: 8,
|
|
137
|
-
tintColor: _theme.COLORS.SURFACE.ON_SURFACE.LOW
|
|
138
|
-
}
|
|
139
|
-
});
|
|
140
|
-
const ChatTextInput = _ref3 => {
|
|
141
|
-
let {
|
|
142
|
-
containerStyle,
|
|
143
|
-
clearButton = false
|
|
144
|
-
} = _ref3;
|
|
145
|
-
const hmsInstance = (0, _hooksUtil.useHMSInstance)();
|
|
146
|
-
const dispatch = (0, _reactRedux.useDispatch)();
|
|
147
|
-
const localPeer = (0, _reactRedux.useSelector)(state => state.hmsStates.localPeer);
|
|
148
|
-
const [inputFocused, setInputFocused] = _react.default.useState(false);
|
|
149
|
-
const typedMessage = (0, _reactRedux.useSelector)(state => state.chatWindow.typedMessage);
|
|
150
|
-
const sendingTo = (0, _reactRedux.useSelector)(state => state.chatWindow.sendTo);
|
|
151
|
-
const sendingToType = (0, _reactRedux.useSelector)(state => state.chatWindow.sendToType);
|
|
152
|
-
const handleInputFocus = () => setInputFocused(true);
|
|
153
|
-
const handleInputBlur = () => setInputFocused(false);
|
|
154
|
-
const handleMessageTyping = text => {
|
|
155
|
-
dispatch({
|
|
156
|
-
type: 'SET_TYPED_MESSAGE',
|
|
157
|
-
typedMessage: text
|
|
158
|
-
});
|
|
159
|
-
};
|
|
160
|
-
const clearTypedMessage = () => {
|
|
161
|
-
dispatch({
|
|
162
|
-
type: 'SET_TYPED_MESSAGE',
|
|
163
|
-
typedMessage: ''
|
|
164
|
-
});
|
|
165
|
-
};
|
|
166
|
-
const sendMessage = () => {
|
|
167
|
-
if (typedMessage.length > 0 && hmsInstance) {
|
|
168
|
-
let hmsMessageRecipient;
|
|
169
|
-
if (sendingToType === 'role') {
|
|
170
|
-
hmsMessageRecipient = new _reactNativeHms.HMSMessageRecipient({
|
|
171
|
-
recipientType: _reactNativeHms.HMSMessageRecipientType.ROLES,
|
|
172
|
-
recipientRoles: [sendingTo]
|
|
173
|
-
});
|
|
174
|
-
} else if (sendingToType === 'direct') {
|
|
175
|
-
hmsMessageRecipient = new _reactNativeHms.HMSMessageRecipient({
|
|
176
|
-
recipientType: _reactNativeHms.HMSMessageRecipientType.PEER,
|
|
177
|
-
recipientPeer: sendingTo
|
|
178
|
-
});
|
|
179
|
-
} else {
|
|
180
|
-
hmsMessageRecipient = new _reactNativeHms.HMSMessageRecipient({
|
|
181
|
-
recipientType: _reactNativeHms.HMSMessageRecipientType.BROADCAST
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
// Saving reference of `typedMessage` state to local variable
|
|
186
|
-
// to use the typed message after clearing state
|
|
187
|
-
const messageText = typedMessage;
|
|
188
|
-
clearTypedMessage();
|
|
189
|
-
const handleMessageID = _ref4 => {
|
|
190
|
-
let {
|
|
191
|
-
messageId
|
|
192
|
-
} = _ref4;
|
|
193
|
-
if (messageId) {
|
|
194
|
-
const localMessage = new _reactNativeHms.HMSMessage({
|
|
195
|
-
messageId: messageId,
|
|
196
|
-
message: messageText,
|
|
197
|
-
type: _reactNativeHms.HMSMessageType.CHAT,
|
|
198
|
-
time: new Date(),
|
|
199
|
-
sender: localPeer || undefined,
|
|
200
|
-
recipient: hmsMessageRecipient
|
|
201
|
-
});
|
|
202
|
-
dispatch((0, _actions.addMessage)(localMessage));
|
|
203
|
-
}
|
|
204
|
-
};
|
|
205
|
-
if (sendingToType === 'role') {
|
|
206
|
-
hmsInstance.sendGroupMessage(messageText, [sendingTo]).then(handleMessageID);
|
|
207
|
-
} else if (sendingToType === 'direct') {
|
|
208
|
-
hmsInstance.sendDirectMessage(messageText, sendingTo).then(handleMessageID);
|
|
209
|
-
} else {
|
|
210
|
-
hmsInstance.sendBroadcastMessage(messageText).then(handleMessageID);
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
};
|
|
214
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
215
|
-
style: [chatTextInputStyles.inputContainer, {
|
|
216
|
-
borderColor: inputFocused ? _theme.COLORS.PRIMARY.DEFAULT : _theme.COLORS.SURFACE.DEFAULT
|
|
217
|
-
}, containerStyle]
|
|
218
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.TextInput, {
|
|
219
|
-
style: chatTextInputStyles.input,
|
|
220
|
-
value: typedMessage,
|
|
221
|
-
onChangeText: handleMessageTyping,
|
|
222
|
-
placeholder: `Send a message to ${sendingTo.name}`,
|
|
223
|
-
autoCapitalize: "sentences",
|
|
224
|
-
autoCompleteType: "off",
|
|
225
|
-
placeholderTextColor: _theme.COLORS.SURFACE.ON_SURFACE.LOW,
|
|
226
|
-
selectionColor: _theme.COLORS.SURFACE.ON_SURFACE.HIGH,
|
|
227
|
-
onFocus: handleInputFocus,
|
|
228
|
-
onBlur: handleInputBlur,
|
|
229
|
-
blurOnSubmit: true,
|
|
230
|
-
onSubmitEditing: sendMessage,
|
|
231
|
-
returnKeyType: "send"
|
|
232
|
-
}), clearButton && typedMessage.length > 0 ? /*#__PURE__*/_react.default.createElement(_PressableIcon.PressableIcon, {
|
|
233
|
-
onPress: clearTypedMessage,
|
|
234
|
-
border: false,
|
|
235
|
-
rounded: false,
|
|
236
|
-
style: chatTextInputStyles.sendIconWrapper
|
|
237
|
-
}, /*#__PURE__*/_react.default.createElement(_Icons.CloseIcon, {
|
|
238
|
-
style: chatTextInputStyles.sendIcon
|
|
239
|
-
})) : null, /*#__PURE__*/_react.default.createElement(_PressableIcon.PressableIcon, {
|
|
240
|
-
onPress: sendMessage,
|
|
241
|
-
border: false,
|
|
242
|
-
rounded: false,
|
|
243
|
-
style: chatTextInputStyles.sendIconWrapper
|
|
244
|
-
}, /*#__PURE__*/_react.default.createElement(_Icons.SendIcon, {
|
|
245
|
-
style: chatTextInputStyles.sendIcon
|
|
246
|
-
})));
|
|
247
|
-
};
|
|
248
|
-
exports.ChatTextInput = ChatTextInput;
|
|
249
|
-
const chatTextInputStyles = _reactNative.StyleSheet.create({
|
|
250
|
-
inputContainer: {
|
|
251
|
-
flexDirection: 'row',
|
|
252
|
-
justifyContent: 'flex-start',
|
|
253
|
-
backgroundColor: _theme.COLORS.SURFACE.DEFAULT,
|
|
254
|
-
overflow: 'hidden',
|
|
255
|
-
borderWidth: 2,
|
|
256
|
-
borderColor: _theme.COLORS.SURFACE.DEFAULT,
|
|
257
|
-
borderRadius: 8
|
|
258
|
-
},
|
|
259
|
-
input: {
|
|
260
|
-
flex: 1,
|
|
261
|
-
textAlignVertical: 'center',
|
|
262
|
-
paddingHorizontal: 16,
|
|
263
|
-
paddingRight: 0,
|
|
264
|
-
paddingVertical: 12,
|
|
265
|
-
color: _theme.COLORS.SURFACE.ON_SURFACE.HIGH,
|
|
266
|
-
fontSize: 16,
|
|
267
|
-
fontFamily: 'Inter',
|
|
268
|
-
fontWeight: '400',
|
|
269
|
-
letterSpacing: 0.5
|
|
270
|
-
},
|
|
271
|
-
sendIconWrapper: {
|
|
272
|
-
alignSelf: 'stretch',
|
|
273
|
-
alignItems: 'center',
|
|
274
|
-
justifyContent: 'center'
|
|
275
|
-
},
|
|
276
|
-
sendIcon: {
|
|
277
|
-
tintColor: _theme.COLORS.SURFACE.ON_SURFACE.LOW
|
|
278
|
-
}
|
|
279
|
-
});
|
|
280
|
-
const ChatFilter = /*#__PURE__*/(0, _react.memo)(() => {
|
|
281
|
-
const instance = (0, _hooksUtil.useHMSInstance)();
|
|
282
|
-
const dispatch = (0, _reactRedux.useDispatch)();
|
|
283
|
-
const roles = (0, _reactRedux.useSelector)(state => state.hmsStates.roles);
|
|
284
|
-
const filter = (0, _reactRedux.useSelector)(state => state.chatWindow.sendTo.name);
|
|
285
|
-
const [visible, setVisible] = (0, _react.useState)(false);
|
|
286
|
-
const [remotePeers, setRemotePeers] = (0, _react.useState)();
|
|
287
|
-
const hideMenu = () => setVisible(false);
|
|
288
|
-
const showMenu = () => setVisible(true);
|
|
289
|
-
(0, _react.useEffect)(() => {
|
|
290
|
-
instance === null || instance === void 0 ? void 0 : instance.getRemotePeers().then(currentRemotePeers => {
|
|
291
|
-
setRemotePeers(currentRemotePeers);
|
|
292
|
-
});
|
|
293
|
-
}, [instance]);
|
|
294
|
-
return /*#__PURE__*/_react.default.createElement(_MenuModal.Menu, {
|
|
295
|
-
visible: visible,
|
|
296
|
-
anchor: /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
297
|
-
style: styles.chatFilterContainer,
|
|
298
|
-
onPress: showMenu
|
|
299
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
300
|
-
style: styles.chatFilterText,
|
|
301
|
-
numberOfLines: 1
|
|
302
|
-
}, filter), /*#__PURE__*/_react.default.createElement(_MaterialIcons.default, {
|
|
303
|
-
name: visible ? 'arrow-drop-up' : 'arrow-drop-down',
|
|
304
|
-
style: styles.chatFilterIcon,
|
|
305
|
-
size: 24
|
|
306
|
-
})),
|
|
307
|
-
onRequestClose: hideMenu,
|
|
308
|
-
style: styles.chatMenuContainer
|
|
309
|
-
}, /*#__PURE__*/_react.default.createElement(_MenuModal.MenuItem, {
|
|
310
|
-
onPress: () => {
|
|
311
|
-
hideMenu();
|
|
312
|
-
dispatch({
|
|
313
|
-
type: 'SET_SENDTO',
|
|
314
|
-
sendTo: {
|
|
315
|
-
name: 'everyone'
|
|
316
|
-
},
|
|
317
|
-
sendToType: 'everyone'
|
|
318
|
-
});
|
|
319
|
-
}
|
|
320
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
321
|
-
style: styles.chatMenuItem
|
|
322
|
-
}, /*#__PURE__*/_react.default.createElement(_Ionicons.default, {
|
|
323
|
-
name: "people-outline",
|
|
324
|
-
style: styles.chatMenuItemIcon,
|
|
325
|
-
size: 20
|
|
326
|
-
}), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
327
|
-
style: styles.chatMenuItemName
|
|
328
|
-
}, "Everyone"))), /*#__PURE__*/_react.default.createElement(_MenuModal.MenuDivider, {
|
|
329
|
-
color: _theme.COLORS.BORDER.LIGHT
|
|
330
|
-
}), roles === null || roles === void 0 ? void 0 : roles.map(knownRole => {
|
|
331
|
-
return /*#__PURE__*/_react.default.createElement(_MenuModal.MenuItem, {
|
|
332
|
-
onPress: () => {
|
|
333
|
-
hideMenu();
|
|
334
|
-
dispatch({
|
|
335
|
-
type: 'SET_SENDTO',
|
|
336
|
-
sendTo: knownRole,
|
|
337
|
-
sendToType: 'role'
|
|
338
|
-
});
|
|
339
|
-
},
|
|
340
|
-
key: knownRole.name
|
|
341
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
342
|
-
style: styles.chatMenuItem
|
|
343
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
344
|
-
style: styles.chatMenuItemName
|
|
345
|
-
}, knownRole === null || knownRole === void 0 ? void 0 : knownRole.name)));
|
|
346
|
-
}), /*#__PURE__*/_react.default.createElement(_MenuModal.MenuDivider, {
|
|
347
|
-
color: _theme.COLORS.BORDER.LIGHT
|
|
348
|
-
}), remotePeers === null || remotePeers === void 0 ? void 0 : remotePeers.map(remotePeer => {
|
|
349
|
-
return /*#__PURE__*/_react.default.createElement(_MenuModal.MenuItem, {
|
|
350
|
-
onPress: () => {
|
|
351
|
-
hideMenu();
|
|
352
|
-
dispatch({
|
|
353
|
-
type: 'SET_SENDTO',
|
|
354
|
-
sendTo: remotePeer,
|
|
355
|
-
sendToType: 'direct'
|
|
356
|
-
});
|
|
357
|
-
},
|
|
358
|
-
key: remotePeer.name
|
|
359
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
360
|
-
style: styles.chatMenuItem
|
|
361
|
-
}, /*#__PURE__*/_react.default.createElement(_Ionicons.default, {
|
|
362
|
-
name: "person-outline",
|
|
363
|
-
style: styles.chatMenuItemIcon,
|
|
364
|
-
size: 20
|
|
365
|
-
}), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
366
|
-
style: styles.chatMenuItemName
|
|
367
|
-
}, remotePeer.name)));
|
|
368
|
-
}));
|
|
369
|
-
});
|
|
370
|
-
ChatFilter.displayName = 'ChatFilter';
|
|
371
|
-
const ChatView = () => {
|
|
372
|
-
const [activeTab, setActiveTab] = (0, _react.useState)(tabs[0]);
|
|
373
|
-
const [_, setChatVisible] = (0, _hooksUtil.useShowChat)();
|
|
374
|
-
const hideInsetChatView = () => setChatVisible(false);
|
|
375
|
-
|
|
376
|
-
// const estimatedListSize = useMemo(() => ({
|
|
377
|
-
// height: Dimensions.get('window').height * 0.45,
|
|
378
|
-
// width: Dimensions.get('window').width - 32,
|
|
379
|
-
// }), []);
|
|
380
|
-
|
|
381
|
-
return (
|
|
382
|
-
/*#__PURE__*/
|
|
383
|
-
// <Animated.View
|
|
384
|
-
// style={chatViewStyles.container}
|
|
385
|
-
// entering={SlideInDown}
|
|
386
|
-
// exiting={SlideOutDown}
|
|
387
|
-
// >
|
|
388
|
-
_react.default.createElement(_reactNative.View, {
|
|
389
|
-
style: chatViewStyles.container
|
|
390
|
-
}, /*#__PURE__*/_react.default.createElement(ChatAndParticipantsHeader, {
|
|
391
|
-
activeTab: activeTab,
|
|
392
|
-
setActiveTab: setActiveTab,
|
|
393
|
-
onClosePress: hideInsetChatView
|
|
394
|
-
}), activeTab === 'Chat' ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Chat.ChatList, null), /*#__PURE__*/_react.default.createElement(ChatTextInput, {
|
|
395
|
-
clearButton: true
|
|
396
|
-
})) : activeTab === 'Participants' ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
397
|
-
style: chatViewStyles.participantsWrapper
|
|
398
|
-
}, /*#__PURE__*/_react.default.createElement(_Participants.SearchableParticipantsView, null)) : null)
|
|
399
|
-
// </Animated.View>
|
|
400
|
-
);
|
|
401
|
-
};
|
|
402
|
-
exports.ChatView = ChatView;
|
|
403
|
-
const chatViewStyles = _reactNative.StyleSheet.create({
|
|
404
|
-
container: {
|
|
405
|
-
flex: 1,
|
|
406
|
-
backgroundColor: _theme.COLORS.SURFACE.DIM,
|
|
407
|
-
padding: 16,
|
|
408
|
-
borderTopRightRadius: 16,
|
|
409
|
-
borderTopLeftRadius: 16
|
|
410
|
-
},
|
|
411
|
-
participantsWrapper: {
|
|
412
|
-
marginTop: 16
|
|
413
|
-
}
|
|
414
|
-
});
|
|
415
|
-
const ChatWindow = () => {
|
|
416
|
-
const {
|
|
417
|
-
bottom
|
|
418
|
-
} = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)();
|
|
419
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
420
|
-
style: styles.container
|
|
421
|
-
}, /*#__PURE__*/_react.default.createElement(ChatHeader, {
|
|
422
|
-
filters: true
|
|
423
|
-
}), /*#__PURE__*/_react.default.createElement(_Chat.ChatList, null), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
424
|
-
style: bottom === 0 ? styles.inputContainer : {
|
|
425
|
-
marginBottom: bottom
|
|
426
|
-
}
|
|
427
|
-
}, /*#__PURE__*/_react.default.createElement(ChatTextInput, {
|
|
428
|
-
clearButton: true,
|
|
429
|
-
containerStyle: styles.input
|
|
430
|
-
})));
|
|
431
|
-
};
|
|
432
|
-
exports.ChatWindow = ChatWindow;
|
|
433
|
-
const styles = _reactNative.StyleSheet.create({
|
|
434
|
-
container: {
|
|
435
|
-
height: '100%',
|
|
436
|
-
width: '100%',
|
|
437
|
-
backgroundColor: _theme.COLORS.SURFACE.DEFAULT
|
|
438
|
-
},
|
|
439
|
-
chatHeaderContainer: {
|
|
440
|
-
height: 48,
|
|
441
|
-
width: '80%',
|
|
442
|
-
flexDirection: 'row',
|
|
443
|
-
alignItems: 'center'
|
|
444
|
-
},
|
|
445
|
-
chatHeading: {
|
|
446
|
-
fontFamily: 'Inter-Medium',
|
|
447
|
-
fontSize: 20,
|
|
448
|
-
lineHeight: 24,
|
|
449
|
-
letterSpacing: 0.15,
|
|
450
|
-
color: _theme.COLORS.TEXT.HIGH_EMPHASIS,
|
|
451
|
-
paddingRight: 12
|
|
452
|
-
},
|
|
453
|
-
chatFilterContainer: {
|
|
454
|
-
marginLeft: 16,
|
|
455
|
-
padding: 8,
|
|
456
|
-
flexDirection: 'row',
|
|
457
|
-
alignItems: 'center',
|
|
458
|
-
width: 120,
|
|
459
|
-
borderWidth: 1,
|
|
460
|
-
borderColor: _theme.COLORS.BORDER.LIGHT,
|
|
461
|
-
borderRadius: 8
|
|
462
|
-
},
|
|
463
|
-
chatFilterText: {
|
|
464
|
-
color: _theme.COLORS.TEXT.HIGH_EMPHASIS,
|
|
465
|
-
fontFamily: 'Inter-Regular',
|
|
466
|
-
fontSize: 12,
|
|
467
|
-
lineHeight: 16,
|
|
468
|
-
letterSpacing: 0.4,
|
|
469
|
-
marginRight: 12,
|
|
470
|
-
textTransform: 'capitalize'
|
|
471
|
-
},
|
|
472
|
-
chatFilterIcon: {
|
|
473
|
-
color: _theme.COLORS.TEXT.HIGH_EMPHASIS,
|
|
474
|
-
position: 'absolute',
|
|
475
|
-
right: 0
|
|
476
|
-
},
|
|
477
|
-
chatMenuContainer: {
|
|
478
|
-
backgroundColor: _theme.COLORS.SURFACE.LIGHT
|
|
479
|
-
},
|
|
480
|
-
chatMenuItem: {
|
|
481
|
-
flexDirection: 'row',
|
|
482
|
-
alignItems: 'center',
|
|
483
|
-
paddingLeft: _reactNative.Platform.OS === 'ios' ? 16 : 0
|
|
484
|
-
},
|
|
485
|
-
chatMenuItemIcon: {
|
|
486
|
-
color: _theme.COLORS.WHITE,
|
|
487
|
-
paddingRight: 16,
|
|
488
|
-
height: 24
|
|
489
|
-
},
|
|
490
|
-
chatMenuItemName: {
|
|
491
|
-
color: _theme.COLORS.TEXT.HIGH_EMPHASIS,
|
|
492
|
-
fontSize: 14,
|
|
493
|
-
lineHeight: 20,
|
|
494
|
-
letterSpacing: 0.1,
|
|
495
|
-
fontFamily: 'Inter-Medium',
|
|
496
|
-
textTransform: 'capitalize'
|
|
497
|
-
},
|
|
498
|
-
chatInput: {
|
|
499
|
-
backgroundColor: _theme.COLORS.SURFACE.LIGHT,
|
|
500
|
-
color: _theme.COLORS.TEXT.HIGH_EMPHASIS,
|
|
501
|
-
fontFamily: 'Inter-Medium',
|
|
502
|
-
borderColor: _theme.COLORS.BORDER.LIGHT,
|
|
503
|
-
borderWidth: 1,
|
|
504
|
-
borderRadius: 8,
|
|
505
|
-
width: '100%',
|
|
506
|
-
paddingVertical: 12,
|
|
507
|
-
paddingHorizontal: 16,
|
|
508
|
-
paddingLeft: 16,
|
|
509
|
-
paddingRight: 88
|
|
510
|
-
},
|
|
511
|
-
sendMessageButton: {
|
|
512
|
-
position: 'absolute',
|
|
513
|
-
alignItems: 'center',
|
|
514
|
-
right: 0,
|
|
515
|
-
paddingHorizontal: 12,
|
|
516
|
-
width: 48
|
|
517
|
-
},
|
|
518
|
-
sendMessageIcon: {
|
|
519
|
-
color: _theme.COLORS.TEXT.HIGH_EMPHASIS
|
|
520
|
-
},
|
|
521
|
-
clearButtonStyle: {
|
|
522
|
-
right: 48,
|
|
523
|
-
width: 40
|
|
524
|
-
},
|
|
525
|
-
contentContainer: {
|
|
526
|
-
flex: 1,
|
|
527
|
-
marginVertical: 4
|
|
528
|
-
},
|
|
529
|
-
messageBubble: {
|
|
530
|
-
padding: 8,
|
|
531
|
-
borderRadius: 8,
|
|
532
|
-
marginTop: 16,
|
|
533
|
-
width: '100%'
|
|
534
|
-
},
|
|
535
|
-
privateMessageBubble: {
|
|
536
|
-
backgroundColor: _theme.COLORS.SURFACE.LIGHT
|
|
537
|
-
},
|
|
538
|
-
headingContainer: {
|
|
539
|
-
flexDirection: 'row',
|
|
540
|
-
alignItems: 'center',
|
|
541
|
-
marginBottom: 8,
|
|
542
|
-
justifyContent: 'space-between'
|
|
543
|
-
},
|
|
544
|
-
headingLeftContainer: {
|
|
545
|
-
flexDirection: 'row',
|
|
546
|
-
alignItems: 'center'
|
|
547
|
-
},
|
|
548
|
-
headingRightContainer: {
|
|
549
|
-
flexDirection: 'row',
|
|
550
|
-
alignItems: 'center',
|
|
551
|
-
borderWidth: 1,
|
|
552
|
-
borderRadius: 4,
|
|
553
|
-
borderColor: _theme.COLORS.BORDER.LIGHT,
|
|
554
|
-
justifyContent: 'center',
|
|
555
|
-
padding: 4
|
|
556
|
-
},
|
|
557
|
-
private: {
|
|
558
|
-
fontFamily: 'Inter-Medium',
|
|
559
|
-
fontSize: 10,
|
|
560
|
-
lineHeight: 16,
|
|
561
|
-
letterSpacing: 1.5,
|
|
562
|
-
color: _theme.COLORS.TEXT.HIGH_EMPHASIS,
|
|
563
|
-
textTransform: 'uppercase'
|
|
564
|
-
},
|
|
565
|
-
senderName: {
|
|
566
|
-
fontFamily: 'Inter',
|
|
567
|
-
fontWeight: '600',
|
|
568
|
-
fontSize: 14,
|
|
569
|
-
lineHeight: 20,
|
|
570
|
-
letterSpacing: 0.1,
|
|
571
|
-
color: _theme.COLORS.SURFACE.ON_SURFACE.HIGH,
|
|
572
|
-
textTransform: 'capitalize',
|
|
573
|
-
marginHorizontal: 8
|
|
574
|
-
},
|
|
575
|
-
messageTime: {
|
|
576
|
-
fontFamily: 'Inter',
|
|
577
|
-
fontWeight: '400',
|
|
578
|
-
fontSize: 12,
|
|
579
|
-
lineHeight: 16,
|
|
580
|
-
letterSpacing: 0.4,
|
|
581
|
-
color: _theme.COLORS.SURFACE.ON_SURFACE.LOW
|
|
582
|
-
},
|
|
583
|
-
messageText: {
|
|
584
|
-
color: _theme.COLORS.SURFACE.ON_SURFACE.HIGH,
|
|
585
|
-
fontSize: 14,
|
|
586
|
-
fontFamily: 'Inter',
|
|
587
|
-
fontWeight: '400',
|
|
588
|
-
lineHeight: 20,
|
|
589
|
-
letterSpacing: 0.25
|
|
590
|
-
},
|
|
591
|
-
inputContainer: {
|
|
592
|
-
marginBottom: 16
|
|
593
|
-
},
|
|
594
|
-
input: {
|
|
595
|
-
backgroundColor: _theme.COLORS.SURFACE.LIGHT,
|
|
596
|
-
borderWidth: 1,
|
|
597
|
-
borderColor: _theme.COLORS.BORDER.LIGHT
|
|
598
|
-
},
|
|
599
|
-
pinIcon: {
|
|
600
|
-
color: _theme.COLORS.WHITE
|
|
601
|
-
},
|
|
602
|
-
pinIconContainer: {
|
|
603
|
-
flex: 1,
|
|
604
|
-
height: '100%',
|
|
605
|
-
justifyContent: 'flex-end'
|
|
606
|
-
}
|
|
607
|
-
});
|
|
608
|
-
//# sourceMappingURL=ChatWindow.js.map
|