@100mslive/react-native-room-kit 1.0.6 → 1.0.8
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/lib/commonjs/HMSRoomSetup.js +4 -1
- package/lib/commonjs/HMSRoomSetup.js.map +1 -1
- package/lib/commonjs/Icons/Chat/assets/chat-on.png +0 -0
- package/lib/commonjs/Icons/Chat/assets/chat-on@2x.png +0 -0
- package/lib/commonjs/Icons/Chat/assets/chat-on@3x.png +0 -0
- package/lib/commonjs/Icons/Chat/index.js +4 -3
- package/lib/commonjs/Icons/Chat/index.js.map +1 -1
- package/lib/commonjs/Icons/NoEntry/assets/no-entry.png +0 -0
- package/lib/commonjs/Icons/NoEntry/assets/no-entry@2x.png +0 -0
- package/lib/commonjs/Icons/NoEntry/assets/no-entry@3x.png +0 -0
- package/lib/commonjs/Icons/NoEntry/index.js +33 -0
- package/lib/commonjs/Icons/NoEntry/index.js.map +1 -0
- package/lib/commonjs/Icons/PauseCircle/assets/pause-circle.png +0 -0
- package/lib/commonjs/Icons/PauseCircle/assets/pause-circle@2x.png +0 -0
- package/lib/commonjs/Icons/PauseCircle/assets/pause-circle@3x.png +0 -0
- package/lib/commonjs/Icons/PauseCircle/index.js +29 -0
- package/lib/commonjs/Icons/PauseCircle/index.js.map +1 -0
- package/lib/commonjs/Icons/Pin/assets/unpin.png +0 -0
- package/lib/commonjs/Icons/Pin/assets/unpin@2x.png +0 -0
- package/lib/commonjs/Icons/Pin/assets/unpin@3x.png +0 -0
- package/lib/commonjs/Icons/Pin/index.js +2 -1
- package/lib/commonjs/Icons/Pin/index.js.map +1 -1
- package/lib/commonjs/Icons/Recording/assets/recording-pause.png +0 -0
- package/lib/commonjs/Icons/Recording/assets/recording-pause@2x.png +0 -0
- package/lib/commonjs/Icons/Recording/assets/recording-pause@3x.png +0 -0
- package/lib/commonjs/Icons/Recording/index.js +1 -1
- package/lib/commonjs/Icons/Recording/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/components/AnimatedFooter.js +5 -3
- package/lib/commonjs/components/AnimatedFooter.js.map +1 -1
- package/lib/commonjs/components/AnimatedHLSFooter.js +4 -9
- package/lib/commonjs/components/AnimatedHLSFooter.js.map +1 -1
- package/lib/commonjs/components/AnimatedHeader.js +17 -5
- package/lib/commonjs/components/AnimatedHeader.js.map +1 -1
- package/lib/commonjs/components/BottomSheet.js +11 -5
- package/lib/commonjs/components/BottomSheet.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterBottomSheet.js +36 -0
- package/lib/commonjs/components/Chat/ChatFilterBottomSheet.js.map +1 -0
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js +90 -23
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js +2 -1
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterItem.js +10 -7
- package/lib/commonjs/components/Chat/ChatFilterItem.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterView.js +54 -45
- package/lib/commonjs/components/Chat/ChatFilterView.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatList.js +13 -6
- package/lib/commonjs/components/Chat/ChatList.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatMessage.js +79 -7
- package/lib/commonjs/components/Chat/ChatMessage.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatMoreActionsModal.js +61 -0
- package/lib/commonjs/components/Chat/ChatMoreActionsModal.js.map +1 -0
- package/lib/commonjs/components/Chat/ChatMoreActionsSheetView.js +63 -0
- package/lib/commonjs/components/Chat/ChatMoreActionsSheetView.js.map +1 -0
- package/lib/commonjs/components/Chat/ChatMoreActionsView.js +83 -0
- package/lib/commonjs/components/Chat/ChatMoreActionsView.js.map +1 -0
- package/lib/commonjs/components/Chat/ChatPaused.js +86 -0
- package/lib/commonjs/components/Chat/ChatPaused.js.map +1 -0
- package/lib/commonjs/components/Chat/MessageOptionsBottomSheet.js +34 -0
- package/lib/commonjs/components/Chat/MessageOptionsBottomSheet.js.map +1 -0
- package/lib/commonjs/components/Chat/MessageOptionsBottomSheetView.js +66 -0
- package/lib/commonjs/components/Chat/MessageOptionsBottomSheetView.js.map +1 -0
- package/lib/commonjs/components/Chat/MessageOptionsView.js +188 -0
- package/lib/commonjs/components/Chat/MessageOptionsView.js.map +1 -0
- package/lib/commonjs/components/Chat/PeerBlockedFromChat.js +47 -0
- package/lib/commonjs/components/Chat/PeerBlockedFromChat.js.map +1 -0
- package/lib/commonjs/components/Chat/PinnedMessages.js +297 -0
- package/lib/commonjs/components/Chat/PinnedMessages.js.map +1 -0
- package/lib/commonjs/components/Chat/index.js +4 -4
- package/lib/commonjs/components/Chat/index.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js +11 -10
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsHeader.js +21 -2
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsHeader.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js +8 -4
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatView.js +21 -2
- package/lib/commonjs/components/ChatAndParticipants/ChatView.js.map +1 -1
- package/lib/commonjs/components/DisplayView.js +4 -11
- package/lib/commonjs/components/DisplayView.js.map +1 -1
- package/lib/commonjs/components/EndRoomModal.js +1 -2
- package/lib/commonjs/components/EndRoomModal.js.map +1 -1
- package/lib/commonjs/components/EndRoomModalContent.js +6 -8
- package/lib/commonjs/components/EndRoomModalContent.js.map +1 -1
- package/lib/commonjs/components/Footer.js +12 -18
- package/lib/commonjs/components/Footer.js.map +1 -1
- package/lib/commonjs/components/GridView.js +31 -1
- package/lib/commonjs/components/GridView.js.map +1 -1
- package/lib/commonjs/components/HLSFooter.js +3 -1
- package/lib/commonjs/components/HLSFooter.js.map +1 -1
- package/lib/commonjs/components/HLSView.js +8 -6
- package/lib/commonjs/components/HLSView.js.map +1 -1
- package/lib/commonjs/components/HMSBaseButton.js +10 -2
- package/lib/commonjs/components/HMSBaseButton.js.map +1 -1
- package/lib/commonjs/components/HMSDangerButton.js +4 -2
- package/lib/commonjs/components/HMSDangerButton.js.map +1 -1
- package/lib/commonjs/components/HMSHLSMessage.js +86 -1
- package/lib/commonjs/components/HMSHLSMessage.js.map +1 -1
- package/lib/commonjs/components/HMSHLSMessageList.js +2 -2
- package/lib/commonjs/components/HMSHLSMessageList.js.map +1 -1
- package/lib/commonjs/components/HMSHandRaiseNotification.js +6 -3
- package/lib/commonjs/components/HMSHandRaiseNotification.js.map +1 -1
- package/lib/commonjs/components/HMSKeyboardAvoidingView.android.js +2 -0
- package/lib/commonjs/components/HMSKeyboardAvoidingView.android.js.map +1 -1
- package/lib/commonjs/components/HMSKeyboardAvoidingView.js +8 -2
- package/lib/commonjs/components/HMSKeyboardAvoidingView.js.map +1 -1
- package/lib/commonjs/components/HMSLiveIndicator.js +5 -60
- package/lib/commonjs/components/HMSLiveIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSLiveViewerCount.js +79 -0
- package/lib/commonjs/components/HMSLiveViewerCount.js.map +1 -0
- package/lib/commonjs/components/HMSLocalScreenshareNotification.js +2 -1
- package/lib/commonjs/components/HMSLocalScreenshareNotification.js.map +1 -1
- package/lib/commonjs/components/HMSNotification.js +31 -4
- package/lib/commonjs/components/HMSNotification.js.map +1 -1
- package/lib/commonjs/components/HMSNotifications.js +9 -2
- package/lib/commonjs/components/HMSNotifications.js.map +1 -1
- package/lib/commonjs/components/HMSOverlayChatView.js +55 -4
- package/lib/commonjs/components/HMSOverlayChatView.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewEditName.js +6 -1
- package/lib/commonjs/components/HMSPreviewEditName.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js +2 -5
- package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSPrimaryButton.js +4 -2
- package/lib/commonjs/components/HMSPrimaryButton.js.map +1 -1
- package/lib/commonjs/components/HMSRecordingIndicator.js +12 -7
- package/lib/commonjs/components/HMSRecordingIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSRoomOptions.js +3 -6
- package/lib/commonjs/components/HMSRoomOptions.js.map +1 -1
- package/lib/commonjs/components/HMSTerminalErrorNotification.js +6 -2
- package/lib/commonjs/components/HMSTerminalErrorNotification.js.map +1 -1
- package/lib/commonjs/components/Header.js +11 -3
- package/lib/commonjs/components/Header.js.map +1 -1
- package/lib/commonjs/components/LeaveRoomBottomSheet.js +5 -11
- package/lib/commonjs/components/LeaveRoomBottomSheet.js.map +1 -1
- package/lib/commonjs/components/Meeting.js +5 -13
- package/lib/commonjs/components/Meeting.js.map +1 -1
- package/lib/commonjs/components/MeetingScreenContent.js +46 -48
- package/lib/commonjs/components/MeetingScreenContent.js.map +1 -1
- package/lib/commonjs/components/MiniView.js.map +1 -1
- package/lib/commonjs/components/Modals.js +9 -12
- package/lib/commonjs/components/Modals.js.map +1 -1
- package/lib/commonjs/components/OverlayedViews.js +6 -2
- package/lib/commonjs/components/OverlayedViews.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsItemOptions.js +5 -1
- package/lib/commonjs/components/Participants/ParticipantsItemOptions.js.map +1 -1
- package/lib/commonjs/components/PeerSettingsModalContent.js +2 -1
- package/lib/commonjs/components/PeerSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js +2 -1
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
- package/lib/commonjs/components/PressableIcon.js +6 -2
- package/lib/commonjs/components/PressableIcon.js.map +1 -1
- package/lib/commonjs/components/Preview.js +14 -1
- package/lib/commonjs/components/Preview.js.map +1 -1
- package/lib/commonjs/components/PreviewForRoleChangeModal.js +5 -4
- package/lib/commonjs/components/PreviewForRoleChangeModal.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalContent.js +34 -9
- package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js +2 -4
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js.map +1 -1
- package/lib/commonjs/components/WebrtcView.js +37 -2
- package/lib/commonjs/components/WebrtcView.js.map +1 -1
- package/lib/commonjs/hooks-sdk-selectors.js +16 -1
- package/lib/commonjs/hooks-sdk-selectors.js.map +1 -1
- package/lib/commonjs/hooks-sdk.js +27 -1
- package/lib/commonjs/hooks-sdk.js.map +1 -1
- package/lib/commonjs/hooks-util-selectors.js +3 -2
- package/lib/commonjs/hooks-util-selectors.js.map +1 -1
- package/lib/commonjs/hooks-util.js +466 -89
- package/lib/commonjs/hooks-util.js.map +1 -1
- package/lib/commonjs/redux/actionTypes.js +18 -3
- package/lib/commonjs/redux/actionTypes.js.map +1 -1
- package/lib/commonjs/redux/actions/index.js +51 -4
- package/lib/commonjs/redux/actions/index.js.map +1 -1
- package/lib/commonjs/redux/reducers/appState.js +49 -1
- package/lib/commonjs/redux/reducers/appState.js.map +1 -1
- package/lib/commonjs/redux/reducers/chatWindow.js +1 -2
- package/lib/commonjs/redux/reducers/chatWindow.js.map +1 -1
- package/lib/commonjs/redux/reducers/message.js +17 -4
- package/lib/commonjs/redux/reducers/message.js.map +1 -1
- package/lib/commonjs/types.js +1 -0
- package/lib/commonjs/types.js.map +1 -1
- package/lib/commonjs/utils/types.js +6 -3
- package/lib/commonjs/utils/types.js.map +1 -1
- package/lib/commonjs/utils.js +2 -2
- package/lib/commonjs/utils.js.map +1 -1
- package/lib/module/HMSRoomSetup.js +5 -2
- package/lib/module/HMSRoomSetup.js.map +1 -1
- package/lib/module/Icons/Chat/assets/chat-on.png +0 -0
- package/lib/module/Icons/Chat/assets/chat-on@2x.png +0 -0
- package/lib/module/Icons/Chat/assets/chat-on@3x.png +0 -0
- package/lib/module/Icons/Chat/index.js +4 -3
- package/lib/module/Icons/Chat/index.js.map +1 -1
- package/lib/module/Icons/NoEntry/assets/no-entry.png +0 -0
- package/lib/module/Icons/NoEntry/assets/no-entry@2x.png +0 -0
- package/lib/module/Icons/NoEntry/assets/no-entry@3x.png +0 -0
- package/lib/module/Icons/NoEntry/index.js +25 -0
- package/lib/module/Icons/NoEntry/index.js.map +1 -0
- package/lib/module/Icons/PauseCircle/assets/pause-circle.png +0 -0
- package/lib/module/Icons/PauseCircle/assets/pause-circle@2x.png +0 -0
- package/lib/module/Icons/PauseCircle/assets/pause-circle@3x.png +0 -0
- package/lib/module/Icons/PauseCircle/index.js +21 -0
- package/lib/module/Icons/PauseCircle/index.js.map +1 -0
- package/lib/module/Icons/Pin/assets/unpin.png +0 -0
- package/lib/module/Icons/Pin/assets/unpin@2x.png +0 -0
- package/lib/module/Icons/Pin/assets/unpin@3x.png +0 -0
- package/lib/module/Icons/Pin/index.js +2 -1
- package/lib/module/Icons/Pin/index.js.map +1 -1
- package/lib/module/Icons/Recording/assets/recording-pause.png +0 -0
- package/lib/module/Icons/Recording/assets/recording-pause@2x.png +0 -0
- package/lib/module/Icons/Recording/assets/recording-pause@3x.png +0 -0
- package/lib/module/Icons/Recording/index.js +1 -1
- package/lib/module/Icons/Recording/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/components/AnimatedFooter.js +5 -3
- package/lib/module/components/AnimatedFooter.js.map +1 -1
- package/lib/module/components/AnimatedHLSFooter.js +5 -10
- package/lib/module/components/AnimatedHLSFooter.js.map +1 -1
- package/lib/module/components/AnimatedHeader.js +18 -6
- package/lib/module/components/AnimatedHeader.js.map +1 -1
- package/lib/module/components/BottomSheet.js +12 -6
- package/lib/module/components/BottomSheet.js.map +1 -1
- package/lib/module/components/Chat/ChatFilterBottomSheet.js +28 -0
- package/lib/module/components/Chat/ChatFilterBottomSheet.js.map +1 -0
- package/lib/module/components/Chat/ChatFilterBottomSheetOpener.js +93 -26
- package/lib/module/components/Chat/ChatFilterBottomSheetOpener.js.map +1 -1
- package/lib/module/components/Chat/ChatFilterBottomSheetView.js +2 -1
- package/lib/module/components/Chat/ChatFilterBottomSheetView.js.map +1 -1
- package/lib/module/components/Chat/ChatFilterItem.js +11 -8
- package/lib/module/components/Chat/ChatFilterItem.js.map +1 -1
- package/lib/module/components/Chat/ChatFilterView.js +55 -46
- package/lib/module/components/Chat/ChatFilterView.js.map +1 -1
- package/lib/module/components/Chat/ChatList.js +14 -7
- package/lib/module/components/Chat/ChatList.js.map +1 -1
- package/lib/module/components/Chat/ChatMessage.js +81 -9
- package/lib/module/components/Chat/ChatMessage.js.map +1 -1
- package/lib/module/components/Chat/ChatMoreActionsModal.js +53 -0
- package/lib/module/components/Chat/ChatMoreActionsModal.js.map +1 -0
- package/lib/module/components/Chat/ChatMoreActionsSheetView.js +55 -0
- package/lib/module/components/Chat/ChatMoreActionsSheetView.js.map +1 -0
- package/lib/module/components/Chat/ChatMoreActionsView.js +75 -0
- package/lib/module/components/Chat/ChatMoreActionsView.js.map +1 -0
- package/lib/module/components/Chat/ChatPaused.js +77 -0
- package/lib/module/components/Chat/ChatPaused.js.map +1 -0
- package/lib/module/components/Chat/MessageOptionsBottomSheet.js +26 -0
- package/lib/module/components/Chat/MessageOptionsBottomSheet.js.map +1 -0
- package/lib/module/components/Chat/MessageOptionsBottomSheetView.js +58 -0
- package/lib/module/components/Chat/MessageOptionsBottomSheetView.js.map +1 -0
- package/lib/module/components/Chat/MessageOptionsView.js +180 -0
- package/lib/module/components/Chat/MessageOptionsView.js.map +1 -0
- package/lib/module/components/Chat/PeerBlockedFromChat.js +38 -0
- package/lib/module/components/Chat/PeerBlockedFromChat.js.map +1 -0
- package/lib/module/components/Chat/PinnedMessages.js +288 -0
- package/lib/module/components/Chat/PinnedMessages.js.map +1 -0
- package/lib/module/components/Chat/index.js +1 -1
- package/lib/module/components/Chat/index.js.map +1 -1
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js +13 -12
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js.map +1 -1
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsHeader.js +24 -5
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsHeader.js.map +1 -1
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsView.js +9 -5
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsView.js.map +1 -1
- package/lib/module/components/ChatAndParticipants/ChatView.js +22 -3
- package/lib/module/components/ChatAndParticipants/ChatView.js.map +1 -1
- package/lib/module/components/DisplayView.js +5 -12
- package/lib/module/components/DisplayView.js.map +1 -1
- package/lib/module/components/EndRoomModal.js +1 -2
- package/lib/module/components/EndRoomModal.js.map +1 -1
- package/lib/module/components/EndRoomModalContent.js +6 -8
- package/lib/module/components/EndRoomModalContent.js.map +1 -1
- package/lib/module/components/Footer.js +12 -18
- package/lib/module/components/Footer.js.map +1 -1
- package/lib/module/components/GridView.js +32 -2
- package/lib/module/components/GridView.js.map +1 -1
- package/lib/module/components/HLSFooter.js +3 -1
- package/lib/module/components/HLSFooter.js.map +1 -1
- package/lib/module/components/HLSView.js +8 -6
- package/lib/module/components/HLSView.js.map +1 -1
- package/lib/module/components/HMSBaseButton.js +10 -2
- package/lib/module/components/HMSBaseButton.js.map +1 -1
- package/lib/module/components/HMSDangerButton.js +4 -2
- package/lib/module/components/HMSDangerButton.js.map +1 -1
- package/lib/module/components/HMSHLSMessage.js +88 -3
- package/lib/module/components/HMSHLSMessage.js.map +1 -1
- package/lib/module/components/HMSHLSMessageList.js +2 -2
- package/lib/module/components/HMSHLSMessageList.js.map +1 -1
- package/lib/module/components/HMSHandRaiseNotification.js +6 -3
- package/lib/module/components/HMSHandRaiseNotification.js.map +1 -1
- package/lib/module/components/HMSKeyboardAvoidingView.android.js +2 -3
- package/lib/module/components/HMSKeyboardAvoidingView.android.js.map +1 -1
- package/lib/module/components/HMSKeyboardAvoidingView.js +9 -3
- package/lib/module/components/HMSKeyboardAvoidingView.js.map +1 -1
- package/lib/module/components/HMSLiveIndicator.js +8 -63
- package/lib/module/components/HMSLiveIndicator.js.map +1 -1
- package/lib/module/components/HMSLiveViewerCount.js +71 -0
- package/lib/module/components/HMSLiveViewerCount.js.map +1 -0
- package/lib/module/components/HMSLocalScreenshareNotification.js +2 -1
- package/lib/module/components/HMSLocalScreenshareNotification.js.map +1 -1
- package/lib/module/components/HMSNotification.js +32 -5
- package/lib/module/components/HMSNotification.js.map +1 -1
- package/lib/module/components/HMSNotifications.js +9 -2
- package/lib/module/components/HMSNotifications.js.map +1 -1
- package/lib/module/components/HMSOverlayChatView.js +56 -5
- package/lib/module/components/HMSOverlayChatView.js.map +1 -1
- package/lib/module/components/HMSPreviewEditName.js +6 -1
- package/lib/module/components/HMSPreviewEditName.js.map +1 -1
- package/lib/module/components/HMSPreviewHLSLiveIndicator.js +2 -5
- package/lib/module/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
- package/lib/module/components/HMSPrimaryButton.js +4 -2
- package/lib/module/components/HMSPrimaryButton.js.map +1 -1
- package/lib/module/components/HMSRecordingIndicator.js +12 -7
- package/lib/module/components/HMSRecordingIndicator.js.map +1 -1
- package/lib/module/components/HMSRoomOptions.js +3 -6
- package/lib/module/components/HMSRoomOptions.js.map +1 -1
- package/lib/module/components/HMSTerminalErrorNotification.js +6 -2
- package/lib/module/components/HMSTerminalErrorNotification.js.map +1 -1
- package/lib/module/components/Header.js +10 -3
- package/lib/module/components/Header.js.map +1 -1
- package/lib/module/components/LeaveRoomBottomSheet.js +5 -11
- package/lib/module/components/LeaveRoomBottomSheet.js.map +1 -1
- package/lib/module/components/Meeting.js +6 -14
- package/lib/module/components/Meeting.js.map +1 -1
- package/lib/module/components/MeetingScreenContent.js +51 -53
- package/lib/module/components/MeetingScreenContent.js.map +1 -1
- package/lib/module/components/MiniView.js.map +1 -1
- package/lib/module/components/Modals.js +10 -13
- package/lib/module/components/Modals.js.map +1 -1
- package/lib/module/components/OverlayedViews.js +6 -2
- package/lib/module/components/OverlayedViews.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsItemOptions.js +5 -1
- package/lib/module/components/Participants/ParticipantsItemOptions.js.map +1 -1
- package/lib/module/components/PeerSettingsModalContent.js +2 -1
- package/lib/module/components/PeerSettingsModalContent.js.map +1 -1
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js +2 -1
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
- package/lib/module/components/PressableIcon.js +6 -2
- package/lib/module/components/PressableIcon.js.map +1 -1
- package/lib/module/components/Preview.js +13 -2
- package/lib/module/components/Preview.js.map +1 -1
- package/lib/module/components/PreviewForRoleChangeModal.js +5 -4
- package/lib/module/components/PreviewForRoleChangeModal.js.map +1 -1
- package/lib/module/components/RoomSettingsModalContent.js +36 -11
- package/lib/module/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/module/components/RoomSettingsModalDebugModeContent.js +2 -4
- package/lib/module/components/RoomSettingsModalDebugModeContent.js.map +1 -1
- package/lib/module/components/WebrtcView.js +37 -2
- package/lib/module/components/WebrtcView.js.map +1 -1
- package/lib/module/hooks-sdk-selectors.js +12 -0
- package/lib/module/hooks-sdk-selectors.js.map +1 -1
- package/lib/module/hooks-sdk.js +23 -1
- package/lib/module/hooks-sdk.js.map +1 -1
- package/lib/module/hooks-util-selectors.js +3 -2
- package/lib/module/hooks-util-selectors.js.map +1 -1
- package/lib/module/hooks-util.js +455 -90
- package/lib/module/hooks-util.js.map +1 -1
- package/lib/module/redux/actionTypes.js +18 -3
- package/lib/module/redux/actionTypes.js.map +1 -1
- package/lib/module/redux/actions/index.js +42 -2
- package/lib/module/redux/actions/index.js.map +1 -1
- package/lib/module/redux/reducers/appState.js +49 -1
- package/lib/module/redux/reducers/appState.js.map +1 -1
- package/lib/module/redux/reducers/chatWindow.js +1 -2
- package/lib/module/redux/reducers/chatWindow.js.map +1 -1
- package/lib/module/redux/reducers/message.js +17 -4
- package/lib/module/redux/reducers/message.js.map +1 -1
- package/lib/module/types.js +1 -0
- package/lib/module/types.js.map +1 -1
- package/lib/module/utils/types.js +5 -2
- package/lib/module/utils/types.js.map +1 -1
- package/lib/module/utils.js +2 -2
- package/lib/module/utils.js.map +1 -1
- package/lib/typescript/HMSRoomSetup.d.ts.map +1 -1
- package/lib/typescript/Icons/Chat/index.d.ts +1 -0
- package/lib/typescript/Icons/Chat/index.d.ts.map +1 -1
- package/lib/typescript/Icons/NoEntry/index.d.ts +7 -0
- package/lib/typescript/Icons/NoEntry/index.d.ts.map +1 -0
- package/lib/typescript/Icons/PauseCircle/index.d.ts +7 -0
- package/lib/typescript/Icons/PauseCircle/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Pin/index.d.ts +1 -0
- package/lib/typescript/Icons/Pin/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Recording/index.d.ts +1 -1
- package/lib/typescript/Icons/Recording/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.map +1 -1
- package/lib/typescript/components/AnimatedHLSFooter.d.ts.map +1 -1
- package/lib/typescript/components/AnimatedHeader.d.ts.map +1 -1
- package/lib/typescript/components/BottomSheet.d.ts +1 -0
- package/lib/typescript/components/BottomSheet.d.ts.map +1 -1
- package/lib/typescript/components/Chat/ChatFilterBottomSheet.d.ts +3 -0
- package/lib/typescript/components/Chat/ChatFilterBottomSheet.d.ts.map +1 -0
- package/lib/typescript/components/Chat/ChatFilterBottomSheetOpener.d.ts +1 -0
- package/lib/typescript/components/Chat/ChatFilterBottomSheetOpener.d.ts.map +1 -1
- package/lib/typescript/components/Chat/ChatFilterBottomSheetView.d.ts.map +1 -1
- package/lib/typescript/components/Chat/ChatFilterItem.d.ts +1 -0
- package/lib/typescript/components/Chat/ChatFilterItem.d.ts.map +1 -1
- package/lib/typescript/components/Chat/ChatFilterView.d.ts +1 -0
- package/lib/typescript/components/Chat/ChatFilterView.d.ts.map +1 -1
- package/lib/typescript/components/Chat/ChatList.d.ts.map +1 -1
- package/lib/typescript/components/Chat/ChatMessage.d.ts.map +1 -1
- package/lib/typescript/components/Chat/ChatMoreActionsModal.d.ts +7 -0
- package/lib/typescript/components/Chat/ChatMoreActionsModal.d.ts.map +1 -0
- package/lib/typescript/components/Chat/ChatMoreActionsSheetView.d.ts +6 -0
- package/lib/typescript/components/Chat/ChatMoreActionsSheetView.d.ts.map +1 -0
- package/lib/typescript/components/Chat/ChatMoreActionsView.d.ts +7 -0
- package/lib/typescript/components/Chat/ChatMoreActionsView.d.ts.map +1 -0
- package/lib/typescript/components/Chat/ChatPaused.d.ts +10 -0
- package/lib/typescript/components/Chat/ChatPaused.d.ts.map +1 -0
- package/lib/typescript/components/Chat/MessageOptionsBottomSheet.d.ts +3 -0
- package/lib/typescript/components/Chat/MessageOptionsBottomSheet.d.ts.map +1 -0
- package/lib/typescript/components/Chat/MessageOptionsBottomSheetView.d.ts +6 -0
- package/lib/typescript/components/Chat/MessageOptionsBottomSheetView.d.ts.map +1 -0
- package/lib/typescript/components/Chat/MessageOptionsView.d.ts +7 -0
- package/lib/typescript/components/Chat/MessageOptionsView.d.ts.map +1 -0
- package/lib/typescript/components/Chat/PeerBlockedFromChat.d.ts +9 -0
- package/lib/typescript/components/Chat/PeerBlockedFromChat.d.ts.map +1 -0
- package/lib/typescript/components/Chat/PinnedMessages.d.ts +8 -0
- package/lib/typescript/components/Chat/PinnedMessages.d.ts.map +1 -0
- package/lib/typescript/components/Chat/index.d.ts +1 -1
- package/lib/typescript/components/Chat/index.d.ts.map +1 -1
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.d.ts.map +1 -1
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsHeader.d.ts.map +1 -1
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsView.d.ts.map +1 -1
- package/lib/typescript/components/ChatAndParticipants/ChatView.d.ts.map +1 -1
- package/lib/typescript/components/DisplayView.d.ts.map +1 -1
- package/lib/typescript/components/EndRoomModal.d.ts.map +1 -1
- package/lib/typescript/components/EndRoomModalContent.d.ts.map +1 -1
- package/lib/typescript/components/Footer.d.ts +1 -1
- package/lib/typescript/components/Footer.d.ts.map +1 -1
- package/lib/typescript/components/GridView.d.ts.map +1 -1
- package/lib/typescript/components/HLSView.d.ts.map +1 -1
- package/lib/typescript/components/HMSBaseButton.d.ts +1 -0
- package/lib/typescript/components/HMSBaseButton.d.ts.map +1 -1
- package/lib/typescript/components/HMSDangerButton.d.ts +1 -0
- package/lib/typescript/components/HMSDangerButton.d.ts.map +1 -1
- package/lib/typescript/components/HMSHLSMessage.d.ts +1 -1
- package/lib/typescript/components/HMSHLSMessage.d.ts.map +1 -1
- package/lib/typescript/components/HMSHandRaiseNotification.d.ts.map +1 -1
- package/lib/typescript/components/HMSKeyboardAvoidingView.android.d.ts.map +1 -1
- package/lib/typescript/components/HMSKeyboardAvoidingView.d.ts +2 -1
- package/lib/typescript/components/HMSKeyboardAvoidingView.d.ts.map +1 -1
- package/lib/typescript/components/HMSLiveIndicator.d.ts.map +1 -1
- package/lib/typescript/components/HMSLiveViewerCount.d.ts +3 -0
- package/lib/typescript/components/HMSLiveViewerCount.d.ts.map +1 -0
- package/lib/typescript/components/HMSLocalScreenshareNotification.d.ts.map +1 -1
- package/lib/typescript/components/HMSNotification.d.ts +2 -1
- package/lib/typescript/components/HMSNotification.d.ts.map +1 -1
- package/lib/typescript/components/HMSNotifications.d.ts.map +1 -1
- package/lib/typescript/components/HMSOverlayChatView.d.ts +5 -1
- package/lib/typescript/components/HMSOverlayChatView.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewEditName.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewHLSLiveIndicator.d.ts.map +1 -1
- package/lib/typescript/components/HMSPrimaryButton.d.ts +1 -0
- package/lib/typescript/components/HMSPrimaryButton.d.ts.map +1 -1
- package/lib/typescript/components/HMSRecordingIndicator.d.ts.map +1 -1
- package/lib/typescript/components/HMSTerminalErrorNotification.d.ts.map +1 -1
- package/lib/typescript/components/Header.d.ts +1 -0
- package/lib/typescript/components/Header.d.ts.map +1 -1
- package/lib/typescript/components/LeaveRoomBottomSheet.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/Modals.d.ts.map +1 -1
- package/lib/typescript/components/OverlayedViews.d.ts +4 -1
- package/lib/typescript/components/OverlayedViews.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsItemOptions.d.ts.map +1 -1
- package/lib/typescript/components/PeerSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.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.map +1 -1
- package/lib/typescript/components/RoomSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/components/RoomSettingsModalDebugModeContent.d.ts.map +1 -1
- package/lib/typescript/components/WebrtcView.d.ts +2 -0
- package/lib/typescript/components/WebrtcView.d.ts.map +1 -1
- package/lib/typescript/hooks-sdk-selectors.d.ts +3 -0
- package/lib/typescript/hooks-sdk-selectors.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.map +1 -1
- package/lib/typescript/hooks-util.d.ts +39 -3
- package/lib/typescript/hooks-util.d.ts.map +1 -1
- package/lib/typescript/redux/actionTypes.d.ts +10 -2
- package/lib/typescript/redux/actionTypes.d.ts.map +1 -1
- package/lib/typescript/redux/actions/index.d.ts +43 -3
- package/lib/typescript/redux/actions/index.d.ts.map +1 -1
- package/lib/typescript/redux/index.d.ts +8 -2
- package/lib/typescript/redux/index.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/appState.d.ts +8 -2
- package/lib/typescript/redux/reducers/appState.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/chatWindow.d.ts +1 -1
- package/lib/typescript/redux/reducers/chatWindow.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/index.d.ts +8 -2
- package/lib/typescript/redux/reducers/index.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/message.d.ts +3 -2
- package/lib/typescript/redux/reducers/message.d.ts.map +1 -1
- package/lib/typescript/types.d.ts +23 -3
- package/lib/typescript/types.d.ts.map +1 -1
- package/lib/typescript/utils/types.d.ts +4 -0
- package/lib/typescript/utils/types.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/HMSRoomSetup.tsx +8 -3
- package/src/Icons/Chat/assets/chat-on.png +0 -0
- package/src/Icons/Chat/assets/chat-on@2x.png +0 -0
- package/src/Icons/Chat/assets/chat-on@3x.png +0 -0
- package/src/Icons/Chat/index.tsx +19 -6
- package/src/Icons/NoEntry/assets/no-entry.png +0 -0
- package/src/Icons/NoEntry/assets/no-entry@2x.png +0 -0
- package/src/Icons/NoEntry/assets/no-entry@3x.png +0 -0
- package/src/Icons/NoEntry/index.tsx +33 -0
- package/src/Icons/PauseCircle/assets/pause-circle.png +0 -0
- package/src/Icons/PauseCircle/assets/pause-circle@2x.png +0 -0
- package/src/Icons/PauseCircle/assets/pause-circle@3x.png +0 -0
- package/src/Icons/PauseCircle/index.tsx +27 -0
- package/src/Icons/Pin/assets/unpin.png +0 -0
- package/src/Icons/Pin/assets/unpin@2x.png +0 -0
- package/src/Icons/Pin/assets/unpin@3x.png +0 -0
- package/src/Icons/Pin/index.tsx +13 -3
- package/src/Icons/Recording/assets/recording-pause.png +0 -0
- package/src/Icons/Recording/assets/recording-pause@2x.png +0 -0
- package/src/Icons/Recording/assets/recording-pause@3x.png +0 -0
- package/src/Icons/Recording/index.tsx +4 -2
- package/src/Icons/index.ts +2 -0
- package/src/components/AnimatedFooter.tsx +9 -3
- package/src/components/AnimatedHLSFooter.tsx +8 -17
- package/src/components/AnimatedHeader.tsx +16 -5
- package/src/components/BottomSheet.tsx +21 -5
- package/src/components/Chat/ChatFilterBottomSheet.tsx +35 -0
- package/src/components/Chat/ChatFilterBottomSheetOpener.tsx +170 -42
- package/src/components/Chat/ChatFilterBottomSheetView.tsx +1 -0
- package/src/components/Chat/ChatFilterItem.tsx +8 -4
- package/src/components/Chat/ChatFilterView.tsx +102 -75
- package/src/components/Chat/ChatList.tsx +18 -6
- package/src/components/Chat/ChatMessage.tsx +111 -7
- package/src/components/Chat/ChatMoreActionsModal.tsx +75 -0
- package/src/components/Chat/ChatMoreActionsSheetView.tsx +77 -0
- package/src/components/Chat/ChatMoreActionsView.tsx +84 -0
- package/src/components/Chat/ChatPaused.tsx +103 -0
- package/src/components/Chat/MessageOptionsBottomSheet.tsx +33 -0
- package/src/components/Chat/MessageOptionsBottomSheetView.tsx +82 -0
- package/src/components/Chat/MessageOptionsView.tsx +248 -0
- package/src/components/Chat/PeerBlockedFromChat.tsx +49 -0
- package/src/components/Chat/PinnedMessages.tsx +422 -0
- package/src/components/Chat/index.ts +1 -1
- package/src/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.tsx +15 -7
- package/src/components/ChatAndParticipants/ChatAndParticipantsHeader.tsx +48 -12
- package/src/components/ChatAndParticipants/ChatAndParticipantsView.tsx +14 -5
- package/src/components/ChatAndParticipants/ChatView.tsx +37 -5
- package/src/components/DisplayView.tsx +4 -13
- package/src/components/EndRoomModal.tsx +0 -1
- package/src/components/EndRoomModalContent.tsx +11 -13
- package/src/components/Footer.tsx +20 -23
- package/src/components/GridView.tsx +44 -8
- package/src/components/HLSFooter.tsx +1 -1
- package/src/components/HLSView.tsx +45 -44
- package/src/components/HMSBaseButton.tsx +17 -2
- package/src/components/HMSDangerButton.tsx +3 -0
- package/src/components/HMSHLSMessage.tsx +130 -13
- package/src/components/HMSHLSMessageList.tsx +2 -2
- package/src/components/HMSHandRaiseNotification.tsx +17 -10
- package/src/components/HMSKeyboardAvoidingView.android.tsx +1 -5
- package/src/components/HMSKeyboardAvoidingView.tsx +12 -4
- package/src/components/HMSLiveIndicator.tsx +14 -83
- package/src/components/HMSLiveViewerCount.tsx +91 -0
- package/src/components/HMSLocalScreenshareNotification.tsx +1 -0
- package/src/components/HMSNotification.tsx +56 -13
- package/src/components/HMSNotifications.tsx +12 -2
- package/src/components/HMSOverlayChatView.tsx +91 -18
- package/src/components/HMSPreviewEditName.tsx +12 -1
- package/src/components/HMSPreviewHLSLiveIndicator.tsx +2 -5
- package/src/components/HMSPrimaryButton.tsx +3 -0
- package/src/components/HMSRecordingIndicator.tsx +10 -7
- package/src/components/HMSRoomOptions.tsx +4 -4
- package/src/components/HMSTerminalErrorNotification.tsx +15 -10
- package/src/components/Header.tsx +17 -3
- package/src/components/LeaveRoomBottomSheet.tsx +14 -15
- package/src/components/Meeting.tsx +6 -19
- package/src/components/MeetingScreenContent.tsx +70 -64
- package/src/components/MiniView.tsx +4 -4
- package/src/components/Modals.tsx +23 -25
- package/src/components/OverlayedViews.tsx +6 -3
- package/src/components/Participants/ParticipantsItemOptions.tsx +12 -7
- package/src/components/PeerSettingsModalContent.tsx +4 -1
- package/src/components/PeerVideoTile/PeerVideoTileView.tsx +4 -1
- package/src/components/PressableIcon.tsx +22 -17
- package/src/components/Preview.tsx +15 -2
- package/src/components/PreviewForRoleChangeModal.tsx +4 -3
- package/src/components/RoomSettingsModalContent.tsx +74 -14
- package/src/components/RoomSettingsModalDebugModeContent.tsx +2 -4
- package/src/components/WebrtcView.tsx +63 -22
- package/src/hooks-sdk-selectors.tsx +19 -0
- package/src/hooks-sdk.ts +37 -0
- package/src/hooks-util-selectors.tsx +2 -2
- package/src/hooks-util.ts +639 -131
- package/src/redux/actionTypes.ts +25 -2
- package/src/redux/actions/index.ts +46 -4
- package/src/redux/reducers/appState.ts +60 -3
- package/src/redux/reducers/chatWindow.ts +2 -2
- package/src/redux/reducers/message.ts +20 -6
- package/src/types.ts +35 -6
- package/src/utils/types.ts +15 -3
- package/src/utils.ts +2 -2
- package/lib/commonjs/components/Chat/PinnedMessage.js +0 -81
- package/lib/commonjs/components/Chat/PinnedMessage.js.map +0 -1
- package/lib/module/components/Chat/PinnedMessage.js +0 -72
- package/lib/module/components/Chat/PinnedMessage.js.map +0 -1
- package/lib/typescript/components/Chat/PinnedMessage.d.ts +0 -3
- package/lib/typescript/components/Chat/PinnedMessage.d.ts.map +0 -1
- package/src/components/Chat/PinnedMessage.tsx +0 -89
|
@@ -20,6 +20,7 @@ const BottomSheet = ({
|
|
|
20
20
|
style,
|
|
21
21
|
children,
|
|
22
22
|
containerStyle,
|
|
23
|
+
bottomOffsetSpace = 32,
|
|
23
24
|
...resetProps
|
|
24
25
|
}) => {
|
|
25
26
|
const {
|
|
@@ -32,6 +33,7 @@ const BottomSheet = ({
|
|
|
32
33
|
handleModalHideAction
|
|
33
34
|
} = useBottomSheetActionHandlers();
|
|
34
35
|
const isLandscapeOrientation = (0, _dimension.useIsLandscapeOrientation)();
|
|
36
|
+
const Container = resetProps.avoidKeyboard && _reactNative.Platform.OS === 'android' ? _reactNative.KeyboardAvoidingView : _reactNative.View;
|
|
35
37
|
return /*#__PURE__*/React.createElement(_reactNativeModal.default, _extends({}, resetProps, {
|
|
36
38
|
animationIn: resetProps.animationIn ?? 'slideInUp',
|
|
37
39
|
animationOut: resetProps.animationOut ?? 'slideOutDown',
|
|
@@ -46,9 +48,15 @@ const BottomSheet = ({
|
|
|
46
48
|
onModalHide: resetProps.onModalHide ?? handleModalHideAction,
|
|
47
49
|
supportedOrientations: resetProps.supportedOrientations ?? ['portrait', 'landscape'],
|
|
48
50
|
statusBarTranslucent: true
|
|
49
|
-
}), /*#__PURE__*/React.createElement(
|
|
51
|
+
}), /*#__PURE__*/React.createElement(Container, {
|
|
52
|
+
behavior: "padding",
|
|
50
53
|
style: [isLandscapeOrientation && !fullWidth ? styles.landscapeContainer : styles.container, containerStyles, containerStyle]
|
|
51
|
-
}, children
|
|
54
|
+
}, children, typeof bottomOffsetSpace === 'number' && bottomOffsetSpace > 0 ? /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
55
|
+
style: {
|
|
56
|
+
height: bottomOffsetSpace,
|
|
57
|
+
width: '100%'
|
|
58
|
+
}
|
|
59
|
+
}) : null));
|
|
52
60
|
};
|
|
53
61
|
exports.BottomSheet = BottomSheet;
|
|
54
62
|
const BottomSheetHeader = ({
|
|
@@ -130,12 +138,10 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
130
138
|
},
|
|
131
139
|
container: {
|
|
132
140
|
borderTopLeftRadius: 16,
|
|
133
|
-
borderTopRightRadius: 16
|
|
134
|
-
paddingBottom: 32
|
|
141
|
+
borderTopRightRadius: 16
|
|
135
142
|
},
|
|
136
143
|
landscapeContainer: {
|
|
137
144
|
borderRadius: 16,
|
|
138
|
-
paddingBottom: 32,
|
|
139
145
|
width: '60%',
|
|
140
146
|
alignSelf: 'center',
|
|
141
147
|
marginBottom: 12
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNativeModal","_interopRequireDefault","_reactNative","_Icons","_hooksUtil","_dimension","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_extends","assign","bind","target","arguments","length","source","key","apply","BottomSheet","dismissModal","fullWidth","style","children","containerStyle","resetProps","background_dim","backgroundDimColor","useHMSRoomColorPalette","containerStyles","useHMSRoomStyle","theme","backgroundColor","palette","background_default","handleModalHideAction","useBottomSheetActionHandlers","isLandscapeOrientation","useIsLandscapeOrientation","createElement","animationIn","animationOut","backdropColor","backdropOpacity","onBackButtonPress","onBackdropPress","useNativeDriver","useNativeDriverForBackdrop","hideModalContentWhileAnimating","styles","modal","onModalHide","supportedOrientations","statusBarTranslucent","
|
|
1
|
+
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNativeModal","_interopRequireDefault","_reactNative","_Icons","_hooksUtil","_dimension","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_extends","assign","bind","target","arguments","length","source","key","apply","BottomSheet","dismissModal","fullWidth","style","children","containerStyle","bottomOffsetSpace","resetProps","background_dim","backgroundDimColor","useHMSRoomColorPalette","containerStyles","useHMSRoomStyle","theme","backgroundColor","palette","background_default","handleModalHideAction","useBottomSheetActionHandlers","isLandscapeOrientation","useIsLandscapeOrientation","Container","avoidKeyboard","Platform","OS","KeyboardAvoidingView","View","createElement","animationIn","animationOut","backdropColor","backdropOpacity","onBackButtonPress","onBackdropPress","useNativeDriver","useNativeDriverForBackdrop","hideModalContentWhileAnimating","styles","modal","onModalHide","supportedOrientations","statusBarTranslucent","behavior","landscapeContainer","container","height","width","exports","BottomSheetHeader","heading","subheading","headingTestID","subheadingTestID","closeIconTestID","hmsRoomStyles","useHMSRoomStyleSheet","typography","headerText","color","on_surface_high","fontFamily","font_family","subheadingText","on_surface_medium","header","Text","testID","TouchableOpacity","onPress","hitSlop","closeIconHitSlop","CloseIcon","BottomSheetDivider","dividerStyles","border_default","divider","Header","Divider","onModalHideActionHandlerRef","handler","onModalHideActionRef","useRef","useCallback","current","useBottomSheetActions","registerOnModalHideAction","action","clearOnModalHideAction","StyleSheet","create","margin","justifyContent","borderTopLeftRadius","borderTopRightRadius","borderRadius","alignSelf","marginBottom","flexDirection","alignItems","marginTop","marginHorizontal","fontSize","lineHeight","letterSpacing","bottom","left","right","top","marginVertical"],"sourceRoot":"../../../src","sources":["components/BottomSheet.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,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ACb8D,cAAc,EAAE;EAClB;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ChatFilterBottomSheet = void 0;
|
|
7
|
+
var React = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _BottomSheet = require("../BottomSheet");
|
|
9
|
+
var _hooksUtil = require("../../hooks-util");
|
|
10
|
+
var _types = require("../../utils/types");
|
|
11
|
+
var _ChatFilterView = require("./ChatFilterView");
|
|
12
|
+
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); }
|
|
13
|
+
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; }
|
|
14
|
+
const _ChatFilterBottomSheet = () => {
|
|
15
|
+
const {
|
|
16
|
+
modalVisibleType,
|
|
17
|
+
handleModalVisibleType
|
|
18
|
+
} = (0, _hooksUtil.useModalType)();
|
|
19
|
+
const hmsRoomStyles = (0, _hooksUtil.useHMSRoomStyleSheet)(theme => ({
|
|
20
|
+
contentContainer: {
|
|
21
|
+
flex: 0.7,
|
|
22
|
+
backgroundColor: theme.palette.surface_default
|
|
23
|
+
}
|
|
24
|
+
}));
|
|
25
|
+
const dismissModal = React.useCallback(() => handleModalVisibleType(_types.ModalTypes.DEFAULT), [handleModalVisibleType]);
|
|
26
|
+
return /*#__PURE__*/React.createElement(_BottomSheet.BottomSheet, {
|
|
27
|
+
dismissModal: dismissModal,
|
|
28
|
+
isVisible: modalVisibleType === _types.ModalTypes.CHAT_FILTER,
|
|
29
|
+
animationOutTiming: 400,
|
|
30
|
+
containerStyle: hmsRoomStyles.contentContainer
|
|
31
|
+
}, /*#__PURE__*/React.createElement(_ChatFilterView.ChatFilterView, {
|
|
32
|
+
onDismiss: dismissModal
|
|
33
|
+
}));
|
|
34
|
+
};
|
|
35
|
+
const ChatFilterBottomSheet = exports.ChatFilterBottomSheet = /*#__PURE__*/React.memo(_ChatFilterBottomSheet);
|
|
36
|
+
//# sourceMappingURL=ChatFilterBottomSheet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","_interopRequireWildcard","require","_BottomSheet","_hooksUtil","_types","_ChatFilterView","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_ChatFilterBottomSheet","modalVisibleType","handleModalVisibleType","useModalType","hmsRoomStyles","useHMSRoomStyleSheet","theme","contentContainer","flex","backgroundColor","palette","surface_default","dismissModal","useCallback","ModalTypes","DEFAULT","createElement","BottomSheet","isVisible","CHAT_FILTER","animationOutTiming","containerStyle","ChatFilterView","onDismiss","ChatFilterBottomSheet","exports","memo"],"sourceRoot":"../../../../src","sources":["components/Chat/ChatFilterBottomSheet.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,eAAA,GAAAJ,OAAA;AAAkD,SAAAK,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAA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I,OAAO,CAACC;IACjC;EACF,CAAC,CAAC,CAAC;EAEH,MAAMC,YAAY,GAAGxC,KAAK,CAACyC,WAAW,CACpC,MAAMX,sBAAsB,CAACY,iBAAU,CAACC,OAAO,CAAC,EAChD,CAACb,sBAAsB,CACzB,CAAC;EAED,oBACE9B,KAAA,CAAA4C,aAAA,CAACzC,YAAA,CAAA0C,WAAW;IACVL,YAAY,EAAEA,YAAa;IAC3BM,SAAS,EAAEjB,gBAAgB,KAAKa,iBAAU,CAACK,WAAY;IACvDC,kBAAkB,EAAE,GAAI;IACxBC,cAAc,EAAEjB,aAAa,CAACG;EAAiB,gBAE/CnC,KAAA,CAAA4C,aAAA,CAACtC,eAAA,CAAA4C,cAAc;IAACC,SAAS,EAAEX;EAAa,CAAE,CAC/B,CAAC;AAElB,CAAC;AAEM,MAAMY,qBAAqB,GAAAC,OAAA,CAAAD,qBAAA,gBAAGpD,KAAK,CAACsD,IAAI,CAAC1B,sBAAsB,CAAC"}
|
|
@@ -7,75 +7,142 @@ exports.ChatFilterBottomSheetOpener = void 0;
|
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _reactRedux = require("react-redux");
|
|
9
9
|
var _reactNative = require("react-native");
|
|
10
|
+
var _reactNativeGestureHandler = require("react-native-gesture-handler");
|
|
10
11
|
var _Icons = require("../../Icons");
|
|
11
12
|
var _hooksUtil = require("../../hooks-util");
|
|
12
13
|
var _actions = require("../../redux/actions");
|
|
14
|
+
var _PressableIcon = require("../PressableIcon");
|
|
15
|
+
var _types = require("../../utils/types");
|
|
16
|
+
var _theme = require("../../utils/theme");
|
|
13
17
|
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); }
|
|
14
18
|
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; }
|
|
15
|
-
const _ChatFilterBottomSheetOpener = (
|
|
19
|
+
const _ChatFilterBottomSheetOpener = ({
|
|
20
|
+
insetMode = false
|
|
21
|
+
}) => {
|
|
16
22
|
const dispatch = (0, _reactRedux.useDispatch)();
|
|
17
|
-
const
|
|
23
|
+
const canDisableChat = (0, _hooksUtil.useHMSCanDisableChat)();
|
|
24
|
+
const chatRecipients = (0, _hooksUtil.useHMSChatRecipientSelector)();
|
|
25
|
+
const allowedToSendMessage = (0, _hooksUtil.useIsAllowedToSendMessage)();
|
|
26
|
+
const isLocalPeerBlockedFromChat = (0, _hooksUtil.useIsLocalPeerBlockedFromChat)();
|
|
27
|
+
const selectedChatRecipient = (0, _reactRedux.useSelector)(state => state.chatWindow.sendTo);
|
|
28
|
+
const {
|
|
29
|
+
handleModalVisibleType
|
|
30
|
+
} = (0, _hooksUtil.useModalType)();
|
|
18
31
|
const hmsRoomStyles = (0, _hooksUtil.useHMSRoomStyleSheet)((theme, typography) => ({
|
|
19
32
|
label: {
|
|
20
33
|
color: theme.palette.on_surface_medium,
|
|
21
|
-
fontFamily: `${typography.font_family}-
|
|
34
|
+
fontFamily: `${typography.font_family}-Regular`
|
|
22
35
|
},
|
|
23
36
|
button: {
|
|
24
|
-
|
|
37
|
+
backgroundColor: insetMode ? theme.palette.background_dim && (0, _theme.hexToRgbA)(theme.palette.background_dim, 0.64) : theme.palette.primary_default
|
|
25
38
|
},
|
|
26
39
|
buttonText: {
|
|
27
40
|
color: theme.palette.on_surface_high,
|
|
28
|
-
fontFamily: `${typography.font_family}-
|
|
41
|
+
fontFamily: `${typography.font_family}-Regular`
|
|
42
|
+
},
|
|
43
|
+
moreAction: {
|
|
44
|
+
backgroundColor: theme.palette.background_dim && (0, _theme.hexToRgbA)(theme.palette.background_dim, 0.64)
|
|
45
|
+
},
|
|
46
|
+
moreActionIcon: {
|
|
47
|
+
tintColor: insetMode ? theme.palette.on_surface_low : theme.palette.on_surface_medium
|
|
29
48
|
}
|
|
30
|
-
}));
|
|
49
|
+
}), [insetMode]);
|
|
31
50
|
const openChatFiltersSheet = () => {
|
|
32
|
-
|
|
51
|
+
if (insetMode) {
|
|
52
|
+
handleModalVisibleType(_types.ModalTypes.CHAT_FILTER);
|
|
53
|
+
} else {
|
|
54
|
+
dispatch((0, _actions.setChatFilterSheetVisible)(true));
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
const openChatMoreActionsSheet = () => {
|
|
58
|
+
if (insetMode) {
|
|
59
|
+
handleModalVisibleType(_types.ModalTypes.CHAT_MORE_ACTIONS);
|
|
60
|
+
} else {
|
|
61
|
+
dispatch((0, _actions.setChatMoreActionsSheetVisible)(true));
|
|
62
|
+
}
|
|
33
63
|
};
|
|
64
|
+
const filterSheetDisabled = !chatRecipients.privateChat && (
|
|
65
|
+
// filter Sheet can't be diabled when privateChat is 'on'
|
|
66
|
+
chatRecipients.publicChat ? chatRecipients.roles.length === 0 : chatRecipients.roles.length <= 1);
|
|
67
|
+
const showActionButtons = allowedToSendMessage && !isLocalPeerBlockedFromChat || canDisableChat;
|
|
68
|
+
if (!showActionButtons) {
|
|
69
|
+
return null;
|
|
70
|
+
}
|
|
71
|
+
const tapGesture = _reactNativeGestureHandler.Gesture.Tap();
|
|
34
72
|
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
35
73
|
style: styles.container
|
|
74
|
+
}, allowedToSendMessage && !isLocalPeerBlockedFromChat ? /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
75
|
+
style: styles.sendToContainer
|
|
36
76
|
}, /*#__PURE__*/React.createElement(_reactNative.Text, {
|
|
37
77
|
style: [styles.label, hmsRoomStyles.label]
|
|
38
|
-
},
|
|
78
|
+
}, selectedChatRecipient !== null ? 'To' : `Choose ${chatRecipients.privateChat ? 'Participant' : chatRecipients.roles.length > 0 ? 'Role' : ''}`), /*#__PURE__*/React.createElement(_reactNativeGestureHandler.GestureDetector, {
|
|
79
|
+
gesture: tapGesture
|
|
80
|
+
}, /*#__PURE__*/React.createElement(_reactNative.TouchableOpacity, {
|
|
81
|
+
disabled: filterSheetDisabled,
|
|
39
82
|
onPress: openChatFiltersSheet,
|
|
40
|
-
style: [styles.button,
|
|
41
|
-
|
|
83
|
+
style: [styles.button, {
|
|
84
|
+
paddingRight: filterSheetDisabled ? 8 : undefined
|
|
85
|
+
}, hmsRoomStyles.button]
|
|
86
|
+
}, selectedChatRecipient ? selectedChatRecipient === _types.ChatBroadcastFilter ? /*#__PURE__*/React.createElement(_Icons.ParticipantsIcon, {
|
|
87
|
+
style: styles.buttonIcon
|
|
88
|
+
}) : /*#__PURE__*/React.createElement(_Icons.PersonIcon, {
|
|
89
|
+
style: styles.buttonIcon
|
|
90
|
+
}) : /*#__PURE__*/React.createElement(_Icons.SearchIcon, {
|
|
91
|
+
style: styles.buttonIcon
|
|
92
|
+
}), /*#__PURE__*/React.createElement(_reactNative.Text, {
|
|
42
93
|
style: [styles.buttonText, hmsRoomStyles.buttonText]
|
|
43
|
-
},
|
|
94
|
+
}, selectedChatRecipient ? selectedChatRecipient.name : 'Search'), filterSheetDisabled || !selectedChatRecipient ? null : /*#__PURE__*/React.createElement(_Icons.ChevronIcon, {
|
|
44
95
|
direction: "down",
|
|
45
96
|
style: styles.buttonIcon
|
|
46
|
-
})))
|
|
97
|
+
})))) : /*#__PURE__*/React.createElement(_reactNative.View, null), canDisableChat && insetMode ? /*#__PURE__*/React.createElement(_PressableIcon.PressableIcon, {
|
|
98
|
+
onPress: openChatMoreActionsSheet,
|
|
99
|
+
style: [styles.moreAction, hmsRoomStyles.moreAction]
|
|
100
|
+
}, /*#__PURE__*/React.createElement(_Icons.ThreeDotsIcon, {
|
|
101
|
+
stack: "vertical",
|
|
102
|
+
style: styles.moreActionIcon
|
|
103
|
+
})) : null);
|
|
47
104
|
};
|
|
48
105
|
const styles = _reactNative.StyleSheet.create({
|
|
49
106
|
container: {
|
|
50
107
|
flexDirection: 'row',
|
|
51
108
|
alignItems: 'center',
|
|
52
|
-
|
|
53
|
-
|
|
109
|
+
justifyContent: 'space-between',
|
|
110
|
+
marginBottom: 8
|
|
111
|
+
},
|
|
112
|
+
sendToContainer: {
|
|
113
|
+
flexDirection: 'row',
|
|
114
|
+
alignItems: 'center'
|
|
115
|
+
},
|
|
116
|
+
moreAction: {
|
|
117
|
+
padding: 4,
|
|
118
|
+
borderRadius: 4
|
|
119
|
+
},
|
|
120
|
+
moreActionIcon: {
|
|
121
|
+
width: 16,
|
|
122
|
+
height: 16
|
|
54
123
|
},
|
|
55
124
|
label: {
|
|
56
|
-
fontSize:
|
|
125
|
+
fontSize: 12,
|
|
57
126
|
lineHeight: 16,
|
|
58
|
-
letterSpacing:
|
|
127
|
+
letterSpacing: 0.4
|
|
59
128
|
},
|
|
60
129
|
button: {
|
|
61
130
|
padding: 4,
|
|
62
|
-
paddingLeft: 8,
|
|
63
131
|
flexDirection: 'row',
|
|
64
132
|
marginLeft: 8,
|
|
65
|
-
borderWidth: 1,
|
|
66
133
|
borderRadius: 4,
|
|
67
134
|
alignItems: 'center'
|
|
68
135
|
},
|
|
69
136
|
buttonText: {
|
|
70
|
-
fontSize:
|
|
71
|
-
textTransform: '
|
|
137
|
+
fontSize: 12,
|
|
138
|
+
textTransform: 'capitalize',
|
|
72
139
|
lineHeight: 16,
|
|
73
|
-
letterSpacing:
|
|
140
|
+
letterSpacing: 0.4,
|
|
141
|
+
marginHorizontal: 4
|
|
74
142
|
},
|
|
75
143
|
buttonIcon: {
|
|
76
144
|
width: 16,
|
|
77
|
-
height: 16
|
|
78
|
-
marginLeft: 4
|
|
145
|
+
height: 16
|
|
79
146
|
}
|
|
80
147
|
});
|
|
81
148
|
const ChatFilterBottomSheetOpener = exports.ChatFilterBottomSheetOpener = /*#__PURE__*/React.memo(_ChatFilterBottomSheetOpener);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","_interopRequireWildcard","require","_reactRedux","_reactNative","_Icons","_hooksUtil","_actions","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_ChatFilterBottomSheetOpener","dispatch","useDispatch","
|
|
1
|
+
{"version":3,"names":["React","_interopRequireWildcard","require","_reactRedux","_reactNative","_reactNativeGestureHandler","_Icons","_hooksUtil","_actions","_PressableIcon","_types","_theme","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_ChatFilterBottomSheetOpener","insetMode","dispatch","useDispatch","canDisableChat","useHMSCanDisableChat","chatRecipients","useHMSChatRecipientSelector","allowedToSendMessage","useIsAllowedToSendMessage","isLocalPeerBlockedFromChat","useIsLocalPeerBlockedFromChat","selectedChatRecipient","useSelector","state","chatWindow","sendTo","handleModalVisibleType","useModalType","hmsRoomStyles","useHMSRoomStyleSheet","theme","typography","label","color","palette","on_surface_medium","fontFamily","font_family","button","backgroundColor","background_dim","hexToRgbA","primary_default","buttonText","on_surface_high","moreAction","moreActionIcon","tintColor","on_surface_low","openChatFiltersSheet","ModalTypes","CHAT_FILTER","setChatFilterSheetVisible","openChatMoreActionsSheet","CHAT_MORE_ACTIONS","setChatMoreActionsSheetVisible","filterSheetDisabled","privateChat","publicChat","roles","length","showActionButtons","tapGesture","Gesture","Tap","createElement","View","style","styles","container","sendToContainer","Text","GestureDetector","gesture","TouchableOpacity","disabled","onPress","paddingRight","undefined","ChatBroadcastFilter","ParticipantsIcon","buttonIcon","PersonIcon","SearchIcon","name","ChevronIcon","direction","PressableIcon","ThreeDotsIcon","stack","StyleSheet","create","flexDirection","alignItems","justifyContent","marginBottom","padding","borderRadius","width","height","fontSize","lineHeight","letterSpacing","marginLeft","textTransform","marginHorizontal","ChatFilterBottomSheetOpener","exports","memo"],"sourceRoot":"../../../../src","sources":["components/Chat/ChatFilterBottomSheetOpener.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,0BAAA,GAAAH,OAAA;AAEA,IAAAI,MAAA,GAAAJ,OAAA;AAQA,IAAAK,UAAA,GAAAL,OAAA;AAQA,IAAAM,QAAA,GAAAN,OAAA;AAIA,IAAAO,cAAA,GAAAP,OAAA;AACA,IAAAQ,MAAA,GAAAR,OAAA;AACA,IAAAS,MAAA,GAAAT,OAAA;AAA8C,SAAAU,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,SAAAZ,wBAAAY,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,EAA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AAC;EACDhD,UAAU,EAAE;IACVmD,OAAO,EAAE,CAAC;IACVC,YAAY,EAAE;EAChB,CAAC;EACDnD,cAAc,EAAE;IACdoD,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE;EACV,CAAC;EACDnE,KAAK,EAAE;IACLoE,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,aAAa,EAAE;EACjB,CAAC;EACDhE,MAAM,EAAE;IACN0D,OAAO,EAAE,CAAC;IACVJ,aAAa,EAAE,KAAK;IACpBW,UAAU,EAAE,CAAC;IACbN,YAAY,EAAE,CAAC;IACfJ,UAAU,EAAE;EACd,CAAC;EACDlD,UAAU,EAAE;IACVyD,QAAQ,EAAE,EAAE;IACZI,aAAa,EAAE,YAAY;IAC3BH,UAAU,EAAE,EAAE;IACdC,aAAa,EAAE,GAAG;IAClBG,gBAAgB,EAAE;EACpB,CAAC;EACDxB,UAAU,EAAE;IACViB,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE;EACV;AACF,CAAC,CAAC;AAEK,MAAMO,2BAA2B,GAAAC,OAAA,CAAAD,2BAAA,gBAAGlI,KAAK,CAACoI,IAAI,CACnDnG,4BACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_reactRedux","_reactNativeReanimated","_theme","_ChatFilterView","_hooksUtil","_actions","_dimension","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_ChatFilterBottomSheetView","dispatch","useDispatch","isLandscapeOrientation","useIsLandscapeOrientation","chatFilterSheetVisible","useSelector","state","app","hmsRoomStyles","useHMSRoomStyleSheet","theme","backdrop","backgroundColor","palette","background_dim","hexToRgbA","contentContainer","surface_default","closeFiltersBottomSheet","setChatFilterSheetVisible","createElement","View","style","styles","container","Pressable","onPress","entering","SlideInDown","exiting","SlideOutDown","maxHeight","ChatFilterView","StyleSheet","create","position","width","height","zIndex","justifyContent","minHeight","borderTopLeftRadius","borderTopRightRadius","ChatFilterBottomSheetView","exports","memo"],"sourceRoot":"../../../../src","sources":["components/Chat/ChatFilterBottomSheetView.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,sBAAA,GAAAJ,uBAAA,CAAAC,OAAA;AAEA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,eAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AAEA,IAAAO,QAAA,GAAAP,OAAA;AACA,IAAAQ,UAAA,GAAAR,OAAA;AAAkE,SAAAS,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,SAAAX,wBAAAW,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,MAA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AA,CAAAuD,SAAS;IACRC,OAAO,EAAER,uBAAwB;IACjCI,KAAK,EAAE,CAACC,MAAM,CAACZ,QAAQ,EAAEH,aAAa,CAACG,QAAQ;EAAE,CAClD,CAAC,eAEF5C,KAAA,CAAAqD,aAAA,CAAChD,sBAAA,CAAAY,OAAQ,CAACqC,IAAI;IACZM,QAAQ,EAAEC,kCAAY;IACtBC,OAAO,EAAEC,mCAAa;IACtBR,KAAK,EAAE,CACLC,MAAM,CAACP,gBAAgB,EACvBR,aAAa,CAACQ,gBAAgB,EAC9Bd,sBAAsB,GAAG;MAAE6B,SAAS,EAAE;IAAM,CAAC,GAAG,IAAI;EACpD,gBAEFhE,KAAA,CAAAqD,aAAA,CAAC9C,eAAA,CAAA0D,cAAc,MAAE,CACJ,CACX,CAAC;AAEX,CAAC;AAED,MAAMT,MAAM,GAAGU,uBAAU,CAACC,MAAM,CAAC;EAC/BV,SAAS,EAAE;IACTW,QAAQ,EAAE,UAAU;IACpBC,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE,MAAM;IACdC,MAAM,EAAE,CAAC;IACTC,cAAc,EAAE;
|
|
1
|
+
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_reactRedux","_reactNativeReanimated","_theme","_ChatFilterView","_hooksUtil","_actions","_dimension","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_ChatFilterBottomSheetView","dispatch","useDispatch","isLandscapeOrientation","useIsLandscapeOrientation","chatFilterSheetVisible","useSelector","state","app","hmsRoomStyles","useHMSRoomStyleSheet","theme","backdrop","backgroundColor","palette","background_dim","hexToRgbA","contentContainer","surface_default","closeFiltersBottomSheet","setChatFilterSheetVisible","createElement","View","style","styles","container","Pressable","onPress","entering","SlideInDown","exiting","SlideOutDown","maxHeight","ChatFilterView","StyleSheet","create","position","width","height","zIndex","justifyContent","alignSelf","minHeight","borderTopLeftRadius","border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edux.useDispatch)();
|
|
22
23
|
const titleStyles = (0, _hooksUtil.useHMSRoomStyle)((theme, typography) => ({
|
|
@@ -24,13 +25,15 @@ const _ChatFilterItem = ({
|
|
|
24
25
|
fontFamily: `${typography.font_family}-SemiBold`
|
|
25
26
|
}));
|
|
26
27
|
const handleFilterSelect = () => {
|
|
27
|
-
(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
type: 'SET_SENDTO',
|
|
31
|
-
sendTo: item
|
|
32
|
-
});
|
|
28
|
+
dispatch({
|
|
29
|
+
type: 'SET_SENDTO',
|
|
30
|
+
sendTo: item
|
|
33
31
|
});
|
|
32
|
+
if (onDismiss) {
|
|
33
|
+
onDismiss();
|
|
34
|
+
} else {
|
|
35
|
+
dispatch((0, _actions.setChatFilterSheetVisible)(false));
|
|
36
|
+
}
|
|
34
37
|
};
|
|
35
38
|
return /*#__PURE__*/React.createElement(_reactNative.TouchableOpacity, {
|
|
36
39
|
style: styles.container,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","_interopRequireWildcard","require","_reactRedux","_reactNative","_Icons","_hooksUtil","_actions","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_ChatFilterItem","item","disabled","active","icon","dispatch","useDispatch","titleStyles","useHMSRoomStyle","theme","typography","color","palette","on_surface_high","fontFamily","font_family","handleFilterSelect","
|
|
1
|
+
{"version":3,"names":["React","_interopRequireWildcard","require","_reactRedux","_reactNative","_Icons","_hooksUtil","_actions","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_ChatFilterItem","item","disabled","active","icon","onDismiss","dispatch","useDispatch","titleStyles","useHMSRoomStyle","theme","typography","color","palette","on_surface_high","fontFamily","font_family","handleFilterSelect","type","sendTo","setChatFilterSheetVisible","createElement","TouchableOpacity","style","styles","container","onPress","View","leftIcon","Text","title","name","CheckIcon","rightIcon","StyleSheet","create","flexDirection","alignItems","paddingHorizontal","paddingVertical","flex","fontSize","lineHeight","letterSpacing","textTransform","marginLeft","marginRight","ChatFilterItem","exports","memo"],"sourceRoot":"../../../../src","sources":["components/Chat/ChatFilterItem.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAGA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AAEA,IAAAK,QAAA,GAAAL,OAAA;AAAgE,SAAAM,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,SAAAR,wBAAAQ,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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AI,eAE1DjC,KAAA,CAAAkD,aAAA,CAAC9C,YAAA,CAAAsD,IAAI;IAACN,KAAK,EAAE,CAACC,MAAM,CAACM,KAAK,EAAEtB,WAAW;EAAE,GAAEP,IAAI,CAAC8B,IAAW,CAAC,EAE3D5B,MAAM,gBAAGhC,KAAA,CAAAkD,aAAA,CAAC7C,MAAA,CAAAwD,SAAS;IAACT,KAAK,EAAEC,MAAM,CAACS;EAAU,CAAE,CAAC,GAAG,IACnC,CAAC;AAEvB,CAAC;AAED,MAAMT,MAAM,GAAGU,uBAAU,CAACC,MAAM,CAAC;EAC/BV,SAAS,EAAE;IACTW,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,iBAAiB,EAAE,EAAE;IACrBC,eAAe,EAAE;EACnB,CAAC;EACDT,KAAK,EAAE;IACLU,IAAI,EAAE,CAAC;IACPC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,aAAa,EAAE,GAAG;IAClBC,aAAa,EAAE;EACjB,CAAC;EACDX,SAAS,EAAE;IAAEY,UAAU,EAAE;EAAE,CAAC;EAC5BjB,QAAQ,EAAE;IAAEkB,WAAW,EAAE;EAAE;AAC7B,CAAC,CAAC;AAEK,MAAMC,cAAc,GAAAC,OAAA,CAAAD,cAAA,gBAAG5E,KAAK,CAAC8E,IAAI,CAACjD,eAAe,CAAC"}
|
|
@@ -17,14 +17,20 @@ var _actions = require("../../redux/actions");
|
|
|
17
17
|
var _types = require("../../utils/types");
|
|
18
18
|
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); }
|
|
19
19
|
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; }
|
|
20
|
-
const _ChatFilterView = (
|
|
20
|
+
const _ChatFilterView = ({
|
|
21
|
+
onDismiss
|
|
22
|
+
}) => {
|
|
21
23
|
const hmsInstance = (0, _hooksUtil.useHMSInstance)();
|
|
22
24
|
const dispatch = (0, _reactRedux.useDispatch)();
|
|
23
25
|
const filter = (0, _reactRedux.useSelector)(state => state.chatWindow.sendTo);
|
|
24
|
-
const roles = (0, _reactRedux.useSelector)(state => state.hmsStates.roles);
|
|
25
26
|
const [loadingPeersList, setLoadingPeersList] = React.useState(false);
|
|
26
27
|
const [remotePeers, setRemotePeers] = React.useState([]);
|
|
27
28
|
const [filterText, setFilterText] = React.useState('');
|
|
29
|
+
const {
|
|
30
|
+
privateChat,
|
|
31
|
+
publicChat,
|
|
32
|
+
roles: rolesSpecificChat
|
|
33
|
+
} = (0, _hooksUtil.useHMSChatRecipientSelector)();
|
|
28
34
|
const {
|
|
29
35
|
on_surface_medium: onSurfaceMediumColor
|
|
30
36
|
} = (0, _hooksUtil.useHMSRoomColorPalette)();
|
|
@@ -43,31 +49,38 @@ const _ChatFilterView = () => {
|
|
|
43
49
|
}
|
|
44
50
|
}));
|
|
45
51
|
React.useEffect(() => {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
52
|
+
if (privateChat) {
|
|
53
|
+
let mounted = true;
|
|
54
|
+
const fetchRemotePeers = async () => {
|
|
55
|
+
setLoadingPeersList(true);
|
|
56
|
+
const fetchedRemotePeers = await hmsInstance.getRemotePeers();
|
|
57
|
+
if (mounted) {
|
|
58
|
+
setLoadingPeersList(false);
|
|
59
|
+
setRemotePeers(fetchedRemotePeers);
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
fetchRemotePeers();
|
|
63
|
+
return () => {
|
|
64
|
+
mounted = false;
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
}, [privateChat, hmsInstance]);
|
|
60
68
|
const _keyExtractor = React.useCallback(item => item.peerID, []);
|
|
61
69
|
const _renderItem = React.useCallback(({
|
|
62
70
|
item,
|
|
63
71
|
extraData
|
|
64
72
|
}) => /*#__PURE__*/React.createElement(_ChatFilterItem.ChatFilterItem, {
|
|
65
73
|
item: item,
|
|
66
|
-
active: extraData.name === item.name,
|
|
67
|
-
disabled: extraData.name === item.name
|
|
68
|
-
|
|
74
|
+
active: extraData && extraData.name === item.name,
|
|
75
|
+
disabled: extraData && extraData.name === item.name,
|
|
76
|
+
onDismiss: onDismiss
|
|
77
|
+
}), [onDismiss]);
|
|
69
78
|
const closeFiltersBottomSheet = () => {
|
|
70
|
-
|
|
79
|
+
if (onDismiss) {
|
|
80
|
+
onDismiss();
|
|
81
|
+
} else {
|
|
82
|
+
dispatch((0, _actions.setChatFilterSheetVisible)(false));
|
|
83
|
+
}
|
|
71
84
|
};
|
|
72
85
|
const formattedFilterText = filterText.trim().toLowerCase();
|
|
73
86
|
|
|
@@ -80,16 +93,8 @@ const _ChatFilterView = () => {
|
|
|
80
93
|
}, [formattedFilterText, remotePeers]);
|
|
81
94
|
|
|
82
95
|
// Filtering Broadcast option
|
|
83
|
-
const showBroadcastOption = formattedFilterText.length > 0 ? _types.ChatBroadcastFilter.name.includes(formattedFilterText) : true;
|
|
84
|
-
|
|
85
|
-
// Filtering Roles
|
|
86
|
-
const foundRoles = roles.filter(role => {
|
|
87
|
-
if (!role.name || role.name.startsWith('_')) {
|
|
88
|
-
return false;
|
|
89
|
-
}
|
|
90
|
-
return formattedFilterText.length > 0 ? role.name.toLowerCase().includes(formattedFilterText) : true;
|
|
91
|
-
});
|
|
92
|
-
const isBroadcastFilterSelected = !('publishSettings' in filter || 'peerId' in filter) &&
|
|
96
|
+
const showBroadcastOption = publicChat ? formattedFilterText.length > 0 ? _types.ChatBroadcastFilter.name.includes(formattedFilterText) : true : false;
|
|
97
|
+
const isBroadcastFilterSelected = filter !== null && !('publishSettings' in filter || 'peerId' in filter) &&
|
|
93
98
|
// filter is not HMSRole and HMSRemotePeer
|
|
94
99
|
filter.name === _types.ChatBroadcastFilter.name;
|
|
95
100
|
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
@@ -101,7 +106,7 @@ const _ChatFilterView = () => {
|
|
|
101
106
|
dismissModal: closeFiltersBottomSheet
|
|
102
107
|
}), /*#__PURE__*/React.createElement(_BottomSheet.BottomSheet.Divider, {
|
|
103
108
|
style: styles.headerDivider
|
|
104
|
-
}), /*#__PURE__*/React.createElement(_HMSTextInput.HMSTextInput, {
|
|
109
|
+
}), privateChat ? /*#__PURE__*/React.createElement(_HMSTextInput.HMSTextInput, {
|
|
105
110
|
value: filterText,
|
|
106
111
|
onChangeText: setFilterText,
|
|
107
112
|
placeholder: "Search for participants",
|
|
@@ -111,7 +116,7 @@ const _ChatFilterView = () => {
|
|
|
111
116
|
leftIcon: /*#__PURE__*/React.createElement(_Icons.SearchIcon, {
|
|
112
117
|
style: styles.textInputSearchIcon
|
|
113
118
|
})
|
|
114
|
-
}), /*#__PURE__*/React.createElement(_flashList.FlashList, {
|
|
119
|
+
}) : null, /*#__PURE__*/React.createElement(_flashList.FlashList, {
|
|
115
120
|
data: filteredRemotePeers,
|
|
116
121
|
extraData: filter,
|
|
117
122
|
estimatedItemSize: 104,
|
|
@@ -119,34 +124,38 @@ const _ChatFilterView = () => {
|
|
|
119
124
|
keyboardShouldPersistTaps: "always",
|
|
120
125
|
keyExtractor: _keyExtractor,
|
|
121
126
|
renderItem: _renderItem,
|
|
122
|
-
ListEmptyComponent: /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
127
|
+
ListEmptyComponent: privateChat ? /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
123
128
|
style: styles.placeholderContainer
|
|
124
129
|
}, /*#__PURE__*/React.createElement(_reactNative.Text, {
|
|
125
130
|
style: [styles.placeholderText, hmsRoomStyles.placeholderText]
|
|
126
|
-
}, loadingPeersList ? 'Loading Participants...' : formattedFilterText.length > 0 ? 'No participants found!' : 'There is no one in the session!')),
|
|
127
|
-
ListHeaderComponent: /*#__PURE__*/React.createElement(_reactNative.View, null, showBroadcastOption ? /*#__PURE__*/React.createElement(
|
|
131
|
+
}, loadingPeersList ? 'Loading Participants...' : formattedFilterText.length > 0 ? 'No participants found!' : 'There is no one in the session!')) : null,
|
|
132
|
+
ListHeaderComponent: /*#__PURE__*/React.createElement(_reactNative.View, null, showBroadcastOption ? /*#__PURE__*/React.createElement(_ChatFilterItem.ChatFilterItem, {
|
|
128
133
|
item: _types.ChatBroadcastFilter,
|
|
129
134
|
active: isBroadcastFilterSelected,
|
|
130
135
|
disabled: isBroadcastFilterSelected,
|
|
131
|
-
icon: /*#__PURE__*/React.createElement(_Icons.ParticipantsIcon, null)
|
|
132
|
-
|
|
136
|
+
icon: /*#__PURE__*/React.createElement(_Icons.ParticipantsIcon, null),
|
|
137
|
+
onDismiss: onDismiss
|
|
138
|
+
}) : null, showBroadcastOption && rolesSpecificChat.length > 0 ? /*#__PURE__*/React.createElement(_BottomSheet.BottomSheet.Divider, {
|
|
133
139
|
style: styles.divider
|
|
134
|
-
})
|
|
140
|
+
}) : null, rolesSpecificChat.length > 0 ? /*#__PURE__*/React.createElement(_reactNative.View, null, /*#__PURE__*/React.createElement(_reactNative.Text, {
|
|
135
141
|
style: [styles.label, hmsRoomStyles.label]
|
|
136
|
-
}, "ROLES"),
|
|
137
|
-
const isRoleSelected =
|
|
138
|
-
const isActive = isRoleSelected && filter.name === role.name;
|
|
142
|
+
}, "ROLES"), rolesSpecificChat.map(role => {
|
|
143
|
+
const isRoleSelected = filter !== null && 'publishSettings' in filter;
|
|
144
|
+
const isActive = filter !== null && isRoleSelected && filter.name === role.name;
|
|
139
145
|
return /*#__PURE__*/React.createElement(_ChatFilterItem.ChatFilterItem, {
|
|
140
146
|
key: role.name,
|
|
141
147
|
item: role,
|
|
142
148
|
active: isActive,
|
|
143
|
-
disabled: isActive
|
|
149
|
+
disabled: isActive,
|
|
150
|
+
onDismiss: onDismiss
|
|
144
151
|
});
|
|
145
|
-
}), /*#__PURE__*/React.createElement(_BottomSheet.BottomSheet.Divider, {
|
|
152
|
+
})) : null, rolesSpecificChat.length > 0 && privateChat ? /*#__PURE__*/React.createElement(_BottomSheet.BottomSheet.Divider, {
|
|
153
|
+
style: styles.divider
|
|
154
|
+
}) : null, rolesSpecificChat.length <= 0 && privateChat && showBroadcastOption ? /*#__PURE__*/React.createElement(_BottomSheet.BottomSheet.Divider, {
|
|
146
155
|
style: styles.divider
|
|
147
|
-
})
|
|
156
|
+
}) : null, privateChat ? /*#__PURE__*/React.createElement(_reactNative.Text, {
|
|
148
157
|
style: [styles.label, hmsRoomStyles.label]
|
|
149
|
-
}, "PARTICIPANTS"))
|
|
158
|
+
}, "PARTICIPANTS") : null)
|
|
150
159
|
}));
|
|
151
160
|
};
|
|
152
161
|
const styles = _reactNative.StyleSheet.create({
|