@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Image","StyleSheet","useHMSRoomStyle","PinIcon","style","restProps","iconStyles","theme","tintColor","palette","on_surface_high","createElement","_extends","source","require","styles","icon","create","width","height","alignItems","justifyContent"],"sourceRoot":"../../../../src","sources":["Icons/Pin/index.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,UAAU,QAAQ,cAAc;AAGhD,SAASC,eAAe,QAAQ,kBAAkB;
|
|
1
|
+
{"version":3,"names":["React","Image","StyleSheet","useHMSRoomStyle","PinIcon","type","style","restProps","iconStyles","theme","tintColor","palette","on_surface_high","createElement","_extends","source","require","styles","icon","create","width","height","alignItems","justifyContent"],"sourceRoot":"../../../../src","sources":["Icons/Pin/index.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,UAAU,QAAQ,cAAc;AAGhD,SAASC,eAAe,QAAQ,kBAAkB;AAMlD,OAAO,MAAMC,OAA+B,GAAGA,CAAC;EAC9CC,IAAI,GAAG,KAAK;EACZC,KAAK;EACL,GAAGC;AACL,CAAC,KAAK;EACJ,MAAMC,UAAU,GAAGL,eAAe,CAAEM,KAAK,KAAM;IAC7CC,SAAS,EAAED,KAAK,CAACE,OAAO,CAACC;EAC3B,CAAC,CAAC,CAAC;EAEH,oBACEZ,KAAA,CAAAa,aAAA,CAACZ,KAAK,EAAAa,QAAA;IACJC,MAAM,EACJV,IAAI,KAAK,OAAO,GACZW,OAAO,CAAC,oBAAoB,CAAC,GAC7BA,OAAO,CAAC,kBAAkB,CAC/B;IACDV,KAAK,EAAE,CAACW,MAAM,CAACC,IAAI,EAAEV,UAAU,EAAEF,KAAK;EAAE,GACpCC,SAAS,CACd,CAAC;AAEN,CAAC;AAED,MAAMU,MAAM,GAAGf,UAAU,CAACiB,MAAM,CAAC;EAC/BD,IAAI,EAAE;IACJE,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE,EAAE;IACVC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB;AACF,CAAC,CAAC"}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -11,7 +11,7 @@ export const RecordingIcon = ({
|
|
|
11
11
|
tintColor: theme.palette.on_surface_high
|
|
12
12
|
}));
|
|
13
13
|
return /*#__PURE__*/React.createElement(Image, _extends({
|
|
14
|
-
source: type === 'on' ? require('./assets/recording.png') : require('./assets/recording-off.png'),
|
|
14
|
+
source: type === 'on' ? require('./assets/recording.png') : type === 'pause' ? require('./assets/recording-pause.png') : require('./assets/recording-off.png'),
|
|
15
15
|
style: [styles.icon, iconStyles, style]
|
|
16
16
|
}, restProps));
|
|
17
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Image","StyleSheet","useHMSRoomStyle","RecordingIcon","style","type","restProps","iconStyles","theme","tintColor","palette","on_surface_high","createElement","_extends","source","require","styles","icon","create","width","height","alignItems","justifyContent"],"sourceRoot":"../../../../src","sources":["Icons/Recording/index.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,UAAU,QAAQ,cAAc;AAGhD,SAASC,eAAe,QAAQ,kBAAkB;AAMlD,OAAO,MAAMC,aAA2C,GAAGA,CAAC;EAC1DC,KAAK;EACLC,IAAI,GAAG,IAAI;EACX,GAAGC;AACL,CAAC,KAAK;EACJ,MAAMC,UAAU,GAAGL,eAAe,CAAEM,KAAK,KAAM;IAC7CC,SAAS,EAAED,KAAK,CAACE,OAAO,CAACC;EAC3B,CAAC,CAAC,CAAC;EAEH,oBACEZ,KAAA,CAAAa,aAAA,CAACZ,KAAK,EAAAa,QAAA;IACJC,MAAM,EACJT,IAAI,KAAK,IAAI,GACTU,OAAO,CAAC,wBAAwB,CAAC,
|
|
1
|
+
{"version":3,"names":["React","Image","StyleSheet","useHMSRoomStyle","RecordingIcon","style","type","restProps","iconStyles","theme","tintColor","palette","on_surface_high","createElement","_extends","source","require","styles","icon","create","width","height","alignItems","justifyContent"],"sourceRoot":"../../../../src","sources":["Icons/Recording/index.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,UAAU,QAAQ,cAAc;AAGhD,SAASC,eAAe,QAAQ,kBAAkB;AAMlD,OAAO,MAAMC,aAA2C,GAAGA,CAAC;EAC1DC,KAAK;EACLC,IAAI,GAAG,IAAI;EACX,GAAGC;AACL,CAAC,KAAK;EACJ,MAAMC,UAAU,GAAGL,eAAe,CAAEM,KAAK,KAAM;IAC7CC,SAAS,EAAED,KAAK,CAACE,OAAO,CAACC;EAC3B,CAAC,CAAC,CAAC;EAEH,oBACEZ,KAAA,CAAAa,aAAA,CAACZ,KAAK,EAAAa,QAAA;IACJC,MAAM,EACJT,IAAI,KAAK,IAAI,GACTU,OAAO,CAAC,wBAAwB,CAAC,GACjCV,IAAI,KAAK,OAAO,GACdU,OAAO,CAAC,8BAA8B,CAAC,GACvCA,OAAO,CAAC,4BAA4B,CAC3C;IACDX,KAAK,EAAE,CAACY,MAAM,CAACC,IAAI,EAAEV,UAAU,EAAEH,KAAK;EAAE,GACpCE,SAAS,CACd,CAAC;AAEN,CAAC;AAED,MAAMU,MAAM,GAAGf,UAAU,CAACiB,MAAM,CAAC;EAC/BD,IAAI,EAAE;IACJE,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE,EAAE;IACVC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB;AACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["Icons/index.ts"],"mappings":"AAAA,cAAc,UAAU;AACxB,cAAc,WAAW;AACzB,cAAc,OAAO;AACrB,cAAc,gBAAgB;AAC9B,cAAc,gBAAgB;AAC9B,cAAc,YAAY;AAC1B,cAAc,kBAAkB;AAChC,cAAc,SAAS;AACvB,cAAc,WAAW;AACzB,cAAc,SAAS;AACvB,cAAc,QAAQ;AACtB,cAAc,aAAa;AAC3B,cAAc,eAAe;AAC7B,cAAc,SAAS;AACvB,cAAc,QAAQ;AACtB,cAAc,SAAS;AACvB,cAAc,OAAO;AACrB,cAAc,SAAS;AACvB,cAAc,QAAQ;AACtB,cAAc,UAAU;AACxB,cAAc,eAAe;AAC7B,cAAc,aAAa;AAC3B,cAAc,cAAc;AAC5B,cAAc,QAAQ;AACtB,cAAc,eAAe;AAC7B,cAAc,SAAS;AACvB,cAAc,SAAS;AACvB,cAAc,OAAO;AACrB,cAAc,YAAY;AAC1B,cAAc,YAAY;AAC1B,cAAc,QAAQ;AACtB,cAAc,OAAO;AACrB,cAAc,UAAU;AACxB,cAAc,aAAa;AAC3B,cAAc,iBAAiB;AAC/B,cAAc,aAAa;AAC3B,cAAc,QAAQ;AACtB,cAAc,OAAO;AACrB,cAAc,UAAU;AACxB,cAAc,eAAe;AAC7B,cAAc,eAAe"}
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["Icons/index.ts"],"mappings":"AAAA,cAAc,UAAU;AACxB,cAAc,WAAW;AACzB,cAAc,OAAO;AACrB,cAAc,gBAAgB;AAC9B,cAAc,gBAAgB;AAC9B,cAAc,YAAY;AAC1B,cAAc,kBAAkB;AAChC,cAAc,SAAS;AACvB,cAAc,WAAW;AACzB,cAAc,SAAS;AACvB,cAAc,QAAQ;AACtB,cAAc,aAAa;AAC3B,cAAc,eAAe;AAC7B,cAAc,SAAS;AACvB,cAAc,QAAQ;AACtB,cAAc,SAAS;AACvB,cAAc,OAAO;AACrB,cAAc,SAAS;AACvB,cAAc,QAAQ;AACtB,cAAc,UAAU;AACxB,cAAc,eAAe;AAC7B,cAAc,aAAa;AAC3B,cAAc,cAAc;AAC5B,cAAc,QAAQ;AACtB,cAAc,eAAe;AAC7B,cAAc,SAAS;AACvB,cAAc,SAAS;AACvB,cAAc,OAAO;AACrB,cAAc,YAAY;AAC1B,cAAc,YAAY;AAC1B,cAAc,QAAQ;AACtB,cAAc,OAAO;AACrB,cAAc,UAAU;AACxB,cAAc,aAAa;AAC3B,cAAc,iBAAiB;AAC/B,cAAc,aAAa;AAC3B,cAAc,QAAQ;AACtB,cAAc,OAAO;AACrB,cAAc,UAAU;AACxB,cAAc,eAAe;AAC7B,cAAc,eAAe;AAC7B,cAAc,eAAe;AAC7B,cAAc,WAAW"}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import Animated, { interpolate, useAnimatedProps, useAnimatedStyle } from 'react-native-reanimated';
|
|
3
|
+
import { useFooterHeight } from './Footer';
|
|
3
4
|
export const AnimatedFooter = ({
|
|
4
5
|
offset,
|
|
5
6
|
children
|
|
6
7
|
}) => {
|
|
8
|
+
const footerHeight = useFooterHeight();
|
|
7
9
|
const animatedStyles = useAnimatedStyle(() => {
|
|
8
10
|
return {
|
|
9
|
-
opacity: interpolate(offset.value, [0, 0.
|
|
11
|
+
opacity: interpolate(offset.value, [0, 0.3, 1], [0, 0.7, 1]),
|
|
10
12
|
transform: [{
|
|
11
|
-
translateY: interpolate(offset.value, [0, 1], [
|
|
13
|
+
translateY: interpolate(offset.value, [0, 1], [footerHeight, 0])
|
|
12
14
|
}]
|
|
13
15
|
};
|
|
14
|
-
}, []);
|
|
16
|
+
}, [footerHeight]);
|
|
15
17
|
const animatedProps = useAnimatedProps(() => {
|
|
16
18
|
return {
|
|
17
19
|
pointerEvents: offset.value === 0 ? 'none' : 'auto'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Animated","interpolate","useAnimatedProps","useAnimatedStyle","AnimatedFooter","offset","children","animatedStyles","opacity","value","transform","translateY","animatedProps","pointerEvents","createElement","View","style"],"sourceRoot":"../../../src","sources":["components/AnimatedFooter.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,QAAQ,IACbC,WAAW,EACXC,gBAAgB,EAChBC,gBAAgB,QACX,yBAAyB;
|
|
1
|
+
{"version":3,"names":["React","Animated","interpolate","useAnimatedProps","useAnimatedStyle","useFooterHeight","AnimatedFooter","offset","children","footerHeight","animatedStyles","opacity","value","transform","translateY","animatedProps","pointerEvents","createElement","View","style"],"sourceRoot":"../../../src","sources":["components/AnimatedFooter.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,QAAQ,IACbC,WAAW,EACXC,gBAAgB,EAChBC,gBAAgB,QACX,yBAAyB;AAGhC,SAASC,eAAe,QAAQ,UAAU;AAM1C,OAAO,MAAMC,cAA6C,GAAGA,CAAC;EAC5DC,MAAM;EACNC;AACF,CAAC,KAAK;EACJ,MAAMC,YAAY,GAAGJ,eAAe,CAAC,CAAC;EAEtC,MAAMK,cAAc,GAAGN,gBAAgB,CAAC,MAAM;IAC5C,OAAO;MACLO,OAAO,EAAET,WAAW,CAACK,MAAM,CAACK,KAAK,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;MAC5DC,SAAS,EAAE,CACT;QAAEC,UAAU,EAAEZ,WAAW,CAACK,MAAM,CAACK,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAACH,YAAY,EAAE,CAAC,CAAC;MAAE,CAAC;IAExE,CAAC;EACH,CAAC,EAAE,CAACA,YAAY,CAAC,CAAC;EAElB,MAAMM,aAAa,GAAGZ,gBAAgB,CAAC,MAElC;IACH,OAAO;MACLa,aAAa,EAAET,MAAM,CAACK,KAAK,KAAK,CAAC,GAAG,MAAM,GAAG;IAC/C,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EAEN,oBACEZ,KAAA,CAAAiB,aAAA,CAAChB,QAAQ,CAACiB,IAAI;IAACC,KAAK,EAAET,cAAe;IAACK,aAAa,EAAEA;EAAc,GAChEP,QACY,CAAC;AAEpB,CAAC"}
|
|
@@ -1,26 +1,21 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import Animated, { interpolate,
|
|
2
|
+
import Animated, { interpolate, useAnimatedStyle } from 'react-native-reanimated';
|
|
3
|
+
import { useFooterHeight } from './Footer';
|
|
3
4
|
export const AnimatedHLSFooter = ({
|
|
4
5
|
offset,
|
|
5
6
|
children,
|
|
6
7
|
style
|
|
7
8
|
}) => {
|
|
9
|
+
const footerHeight = useFooterHeight();
|
|
8
10
|
const animatedStyles = useAnimatedStyle(() => {
|
|
9
11
|
return {
|
|
10
|
-
opacity: interpolate(offset.value, [0, 0.7, 1], [0, 0.5, 1]),
|
|
11
12
|
transform: [{
|
|
12
|
-
translateY: interpolate(offset.value, [0, 1], [
|
|
13
|
+
translateY: interpolate(offset.value, [0, 1], [footerHeight, 0])
|
|
13
14
|
}]
|
|
14
15
|
};
|
|
15
16
|
}, []);
|
|
16
|
-
const animatedProps = useAnimatedProps(() => {
|
|
17
|
-
return {
|
|
18
|
-
pointerEvents: offset.value === 0 ? 'none' : 'auto'
|
|
19
|
-
};
|
|
20
|
-
}, []);
|
|
21
17
|
return /*#__PURE__*/React.createElement(Animated.View, {
|
|
22
|
-
style: [animatedStyles, style]
|
|
23
|
-
animatedProps: animatedProps
|
|
18
|
+
style: [animatedStyles, style]
|
|
24
19
|
}, children);
|
|
25
20
|
};
|
|
26
21
|
//# sourceMappingURL=AnimatedHLSFooter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Animated","interpolate","
|
|
1
|
+
{"version":3,"names":["React","Animated","interpolate","useAnimatedStyle","useFooterHeight","AnimatedHLSFooter","offset","children","style","footerHeight","animatedStyles","transform","translateY","value","createElement","View"],"sourceRoot":"../../../src","sources":["components/AnimatedHLSFooter.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAE9B,OAAOC,QAAQ,IACbC,WAAW,EACXC,gBAAgB,QACX,yBAAyB;AAGhC,SAASC,eAAe,QAAQ,UAAU;AAO1C,OAAO,MAAMC,iBAAmD,GAAGA,CAAC;EAClEC,MAAM;EACNC,QAAQ;EACRC;AACF,CAAC,KAAK;EACJ,MAAMC,YAAY,GAAGL,eAAe,CAAC,CAAC;EAEtC,MAAMM,cAAc,GAAGP,gBAAgB,CAAC,MAAM;IAC5C,OAAO;MACLQ,SAAS,EAAE,CACT;QAAEC,UAAU,EAAEV,WAAW,CAACI,MAAM,CAACO,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAACJ,YAAY,EAAE,CAAC,CAAC;MAAE,CAAC;IAExE,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EAEN,oBACET,KAAA,CAAAc,aAAA,CAACb,QAAQ,CAACc,IAAI;IAACP,KAAK,EAAE,CAACE,cAAc,EAAEF,KAAK;EAAE,GAAED,QAAwB,CAAC;AAE7E,CAAC"}
|
|
@@ -1,30 +1,42 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { StyleSheet } from 'react-native';
|
|
3
|
-
import Animated, { useAnimatedProps, useAnimatedStyle } from 'react-native-reanimated';
|
|
3
|
+
import Animated, { interpolate, useAnimatedProps, useAnimatedStyle } from 'react-native-reanimated';
|
|
4
|
+
import { useHeaderHeight } from './Header';
|
|
4
5
|
import { useIsHLSViewer } from '../hooks-util';
|
|
5
6
|
export const AnimatedHeader = ({
|
|
6
7
|
children,
|
|
7
8
|
offset
|
|
8
9
|
}) => {
|
|
9
10
|
const isHLSViewer = useIsHLSViewer();
|
|
11
|
+
const headerHeight = useHeaderHeight();
|
|
10
12
|
const animatedStyles = useAnimatedStyle(() => {
|
|
13
|
+
if (isHLSViewer) {
|
|
14
|
+
return {
|
|
15
|
+
opacity: offset.value,
|
|
16
|
+
transform: [{
|
|
17
|
+
translateY: 0
|
|
18
|
+
}]
|
|
19
|
+
};
|
|
20
|
+
}
|
|
11
21
|
return {
|
|
12
|
-
opacity: offset.value
|
|
13
|
-
|
|
22
|
+
opacity: interpolate(offset.value, [0, 0.3, 1], [0, 0.7, 1]),
|
|
23
|
+
transform: [{
|
|
24
|
+
translateY: interpolate(offset.value, [0, 1], [-headerHeight, 0])
|
|
25
|
+
}]
|
|
14
26
|
};
|
|
15
|
-
}, []);
|
|
27
|
+
}, [headerHeight, isHLSViewer]);
|
|
16
28
|
const animatedProps = useAnimatedProps(() => {
|
|
17
29
|
return {
|
|
18
30
|
pointerEvents: offset.value === 0 ? 'none' : 'auto'
|
|
19
31
|
};
|
|
20
32
|
}, []);
|
|
21
33
|
return /*#__PURE__*/React.createElement(Animated.View, {
|
|
22
|
-
style: [
|
|
34
|
+
style: [styles.container, animatedStyles],
|
|
23
35
|
animatedProps: animatedProps
|
|
24
36
|
}, children);
|
|
25
37
|
};
|
|
26
38
|
const styles = StyleSheet.create({
|
|
27
|
-
|
|
39
|
+
container: {
|
|
28
40
|
position: 'absolute',
|
|
29
41
|
top: 0,
|
|
30
42
|
width: '100%',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","Animated","useAnimatedProps","useAnimatedStyle","useIsHLSViewer","AnimatedHeader","children","offset","isHLSViewer","animatedStyles","opacity","value","animatedProps","pointerEvents","createElement","View","style","styles","
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","Animated","interpolate","useAnimatedProps","useAnimatedStyle","useHeaderHeight","useIsHLSViewer","AnimatedHeader","children","offset","isHLSViewer","headerHeight","animatedStyles","opacity","value","transform","translateY","animatedProps","pointerEvents","createElement","View","style","styles","container","create","position","top","width","zIndex"],"sourceRoot":"../../../src","sources":["components/AnimatedHeader.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,UAAU,QAAQ,cAAc;AACzC,OAAOC,QAAQ,IACbC,WAAW,EACXC,gBAAgB,EAChBC,gBAAgB,QACX,yBAAyB;AAGhC,SAASC,eAAe,QAAQ,UAAU;AAC1C,SAASC,cAAc,QAAQ,eAAe;AAM9C,OAAO,MAAMC,cAA6C,GAAGA,CAAC;EAC5DC,QAAQ;EACRC;AACF,CAAC,KAAK;EACJ,MAAMC,WAAW,GAAGJ,cAAc,CAAC,CAAC;EACpC,MAAMK,YAAY,GAAGN,eAAe,CAAC,CAAC;EAEtC,MAAMO,cAAc,GAAGR,gBAAgB,CAAC,MAAM;IAC5C,IAAIM,WAAW,EAAE;MACf,OAAO;QACLG,OAAO,EAAEJ,MAAM,CAACK,KAAK;QACrBC,SAAS,EAAE,CAAC;UAAEC,UAAU,EAAE;QAAE,CAAC;MAC/B,CAAC;IACH;IACA,OAAO;MACLH,OAAO,EAAEX,WAAW,CAACO,MAAM,CAACK,KAAK,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;MAC5DC,SAAS,EAAE,CACT;QAAEC,UAAU,EAAEd,WAAW,CAACO,MAAM,CAACK,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAACH,YAAY,EAAE,CAAC,CAAC;MAAE,CAAC;IAEzE,CAAC;EACH,CAAC,EAAE,CAACA,YAAY,EAAED,WAAW,CAAC,CAAC;EAE/B,MAAMO,aAAa,GAAGd,gBAAgB,CAAC,MAElC;IACH,OAAO;MACLe,aAAa,EAAET,MAAM,CAACK,KAAK,KAAK,CAAC,GAAG,MAAM,GAAG;IAC/C,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EAEN,oBACEf,KAAA,CAAAoB,aAAA,CAAClB,QAAQ,CAACmB,IAAI;IACZC,KAAK,EAAE,CAACC,MAAM,CAACC,SAAS,EAAEX,cAAc,CAAE;IAC1CK,aAAa,EAAEA;EAAc,GAE5BT,QACY,CAAC;AAEpB,CAAC;AAED,MAAMc,MAAM,GAAGtB,UAAU,CAACwB,MAAM,CAAC;EAC/BD,SAAS,EAAE;IACTE,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNC,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE;EACV;AACF,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import Modal from 'react-native-modal';
|
|
4
|
-
import { StyleSheet, Text, TouchableOpacity, View } from 'react-native';
|
|
4
|
+
import { KeyboardAvoidingView, Platform, StyleSheet, Text, TouchableOpacity, View } from 'react-native';
|
|
5
5
|
import { CloseIcon } from '../Icons';
|
|
6
6
|
import { useHMSRoomColorPalette, useHMSRoomStyle, useHMSRoomStyleSheet } from '../hooks-util';
|
|
7
7
|
import { useIsLandscapeOrientation } from '../utils/dimension';
|
|
@@ -11,6 +11,7 @@ export const BottomSheet = ({
|
|
|
11
11
|
style,
|
|
12
12
|
children,
|
|
13
13
|
containerStyle,
|
|
14
|
+
bottomOffsetSpace = 32,
|
|
14
15
|
...resetProps
|
|
15
16
|
}) => {
|
|
16
17
|
const {
|
|
@@ -23,6 +24,7 @@ export const BottomSheet = ({
|
|
|
23
24
|
handleModalHideAction
|
|
24
25
|
} = useBottomSheetActionHandlers();
|
|
25
26
|
const isLandscapeOrientation = useIsLandscapeOrientation();
|
|
27
|
+
const Container = resetProps.avoidKeyboard && Platform.OS === 'android' ? KeyboardAvoidingView : View;
|
|
26
28
|
return /*#__PURE__*/React.createElement(Modal, _extends({}, resetProps, {
|
|
27
29
|
animationIn: resetProps.animationIn ?? 'slideInUp',
|
|
28
30
|
animationOut: resetProps.animationOut ?? 'slideOutDown',
|
|
@@ -37,9 +39,15 @@ export const BottomSheet = ({
|
|
|
37
39
|
onModalHide: resetProps.onModalHide ?? handleModalHideAction,
|
|
38
40
|
supportedOrientations: resetProps.supportedOrientations ?? ['portrait', 'landscape'],
|
|
39
41
|
statusBarTranslucent: true
|
|
40
|
-
}), /*#__PURE__*/React.createElement(
|
|
42
|
+
}), /*#__PURE__*/React.createElement(Container, {
|
|
43
|
+
behavior: "padding",
|
|
41
44
|
style: [isLandscapeOrientation && !fullWidth ? styles.landscapeContainer : styles.container, containerStyles, containerStyle]
|
|
42
|
-
}, children
|
|
45
|
+
}, children, typeof bottomOffsetSpace === 'number' && bottomOffsetSpace > 0 ? /*#__PURE__*/React.createElement(View, {
|
|
46
|
+
style: {
|
|
47
|
+
height: bottomOffsetSpace,
|
|
48
|
+
width: '100%'
|
|
49
|
+
}
|
|
50
|
+
}) : null));
|
|
43
51
|
};
|
|
44
52
|
const BottomSheetHeader = ({
|
|
45
53
|
dismissModal,
|
|
@@ -119,12 +127,10 @@ const styles = StyleSheet.create({
|
|
|
119
127
|
},
|
|
120
128
|
container: {
|
|
121
129
|
borderTopLeftRadius: 16,
|
|
122
|
-
borderTopRightRadius: 16
|
|
123
|
-
paddingBottom: 32
|
|
130
|
+
borderTopRightRadius: 16
|
|
124
131
|
},
|
|
125
132
|
landscapeContainer: {
|
|
126
133
|
borderRadius: 16,
|
|
127
|
-
paddingBottom: 32,
|
|
128
134
|
width: '60%',
|
|
129
135
|
alignSelf: 'center',
|
|
130
136
|
marginBottom: 12
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Modal","StyleSheet","Text","TouchableOpacity","View","CloseIcon","useHMSRoomColorPalette","useHMSRoomStyle","useHMSRoomStyleSheet","useIsLandscapeOrientation","BottomSheet","dismissModal","fullWidth","style","children","containerStyle","resetProps","background_dim","backgroundDimColor","containerStyles","theme","backgroundColor","palette","background_default","handleModalHideAction","useBottomSheetActionHandlers","isLandscapeOrientation","createElement","_extends","animationIn","animationOut","backdropColor","backdropOpacity","onBackButtonPress","onBackdropPress","useNativeDriver","useNativeDriverForBackdrop","hideModalContentWhileAnimating","styles","modal","onModalHide","supportedOrientations","statusBarTranslucent","landscapeContainer","container","BottomSheetHeader","heading","subheading","headingTestID","subheadingTestID","closeIconTestID","hmsRoomStyles","typography","headerText","color","on_surface_high","fontFamily","font_family","subheadingText","on_surface_medium","header","testID","onPress","hitSlop","closeIconHitSlop","BottomSheetDivider","dividerStyles","border_default","divider","Header","Divider","onModalHideActionHandlerRef","handler","onModalHideActionRef","useRef","useCallback","current","useBottomSheetActions","registerOnModalHideAction","action","clearOnModalHideAction","create","margin","justifyContent","borderTopLeftRadius","borderTopRightRadius","
|
|
1
|
+
{"version":3,"names":["React","Modal","KeyboardAvoidingView","Platform","StyleSheet","Text","TouchableOpacity","View","CloseIcon","useHMSRoomColorPalette","useHMSRoomStyle","useHMSRoomStyleSheet","useIsLandscapeOrientation","BottomSheet","dismissModal","fullWidth","style","children","containerStyle","bottomOffsetSpace","resetProps","background_dim","backgroundDimColor","containerStyles","theme","backgroundColor","palette","background_default","handleModalHideAction","useBottomSheetActionHandlers","isLandscapeOrientation","Container","avoidKeyboard","OS","createElement","_extends","animationIn","animationOut","backdropColor","backdropOpacity","onBackButtonPress","onBackdropPress","useNativeDriver","useNativeDriverForBackdrop","hideModalContentWhileAnimating","styles","modal","onModalHide","supportedOrientations","statusBarTranslucent","behavior","landscapeContainer","container","height","width","BottomSheetHeader","heading","subheading","headingTestID","subheadingTestID","closeIconTestID","hmsRoomStyles","typography","headerText","color","on_surface_high","fontFamily","font_family","subheadingText","on_surface_medium","header","testID","onPress","hitSlop","closeIconHitSlop","BottomSheetDivider","dividerStyles","border_default","divider","Header","Divider","onModalHideActionHandlerRef","handler","onModalHideActionRef","useRef","useCallback","current","useBottomSheetActions","registerOnModalHideAction","action","clearOnModalHideAction","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,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,KAAK,MAAM,oBAAoB;AAEtC,SACEC,oBAAoB,EACpBC,QAAQ,EACRC,UAAU,EACVC,IAAI,EACJC,gBAAgB,EAChBC,IAAI,QACC,cAAc;AAQrB,SAASC,SAAS,QAAQ,UAAU;AACpC,SACEC,sBAAsB,EACtBC,eAAe,EACfC,oBAAoB,QACf,eAAe;AACtB,SAASC,yBAAyB,QAAQ,oBAAoB;AAe9D,OAAO,MAAMC,WAGZ,GAAGA,CAAC;EACHC,YAAY;EACZC,SAAS,GAAG,KAAK;EACjBC,KAAK;EACLC,QAAQ;EACRC,cAAc;EACdC,iBAAiB,GAAG,EAAE;EACtB,GAAGC;AACL,CAAC,KAAK;EACJ,MAAM;IAAEC,cAAc,EAAEC;EAAmB,CAAC,GAAGb,sBAAsB,CAAC,CAAC;EAEvE,MAAMc,eAAe,GAAGb,eAAe,CAAEc,KAAK,KAAM;IAClDC,eAAe,EAAED,KAAK,CAACE,OAAO,CAACC;EACjC,CAAC,CAAC,CAAC;EAEH,MAAM;IAAEC;EAAsB,CAAC,GAAGC,4BAA4B,CAAC,CAAC;EAEhE,MAAMC,sBAAsB,GAAGlB,yBAAyB,CAAC,CAAC;EAE1D,MAAMmB,SAAS,GACbX,UA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
3
|
+
import { useHMSRoomStyleSheet, useModalType } from '../../hooks-util';
|
|
4
|
+
import { ModalTypes } from '../../utils/types';
|
|
5
|
+
import { ChatFilterView } from './ChatFilterView';
|
|
6
|
+
const _ChatFilterBottomSheet = () => {
|
|
7
|
+
const {
|
|
8
|
+
modalVisibleType,
|
|
9
|
+
handleModalVisibleType
|
|
10
|
+
} = useModalType();
|
|
11
|
+
const hmsRoomStyles = useHMSRoomStyleSheet(theme => ({
|
|
12
|
+
contentContainer: {
|
|
13
|
+
flex: 0.7,
|
|
14
|
+
backgroundColor: theme.palette.surface_default
|
|
15
|
+
}
|
|
16
|
+
}));
|
|
17
|
+
const dismissModal = React.useCallback(() => handleModalVisibleType(ModalTypes.DEFAULT), [handleModalVisibleType]);
|
|
18
|
+
return /*#__PURE__*/React.createElement(BottomSheet, {
|
|
19
|
+
dismissModal: dismissModal,
|
|
20
|
+
isVisible: modalVisibleType === ModalTypes.CHAT_FILTER,
|
|
21
|
+
animationOutTiming: 400,
|
|
22
|
+
containerStyle: hmsRoomStyles.contentContainer
|
|
23
|
+
}, /*#__PURE__*/React.createElement(ChatFilterView, {
|
|
24
|
+
onDismiss: dismissModal
|
|
25
|
+
}));
|
|
26
|
+
};
|
|
27
|
+
export const ChatFilterBottomSheet = /*#__PURE__*/React.memo(_ChatFilterBottomSheet);
|
|
28
|
+
//# sourceMappingURL=ChatFilterBottomSheet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","BottomSheet","useHMSRoomStyleSheet","useModalType","ModalTypes","ChatFilterView","_ChatFilterBottomSheet","modalVisibleType","handleModalVisibleType","hmsRoomStyles","theme","contentContainer","flex","backgroundColor","palette","surface_default","dismissModal","useCallback","DEFAULT","createElement","isVisible","CHAT_FILTER","animationOutTiming","containerStyle","onDismiss","ChatFilterBottomSheet","memo"],"sourceRoot":"../../../../src","sources":["components/Chat/ChatFilterBottomSheet.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAE9B,SAASC,WAAW,QAAQ,gBAAgB;AAC5C,SAASC,oBAAoB,EAAEC,YAAY,QAAQ,kBAAkB;AACrE,SAASC,UAAU,QAAQ,mBAAmB;AAC9C,SAASC,cAAc,QAAQ,kBAAkB;AAEjD,MAAMC,sBAAsB,GAAGA,CAAA,KAAM;EACnC,MAAM;IAAEC,gBAAgB;IAAEC;EAAuB,CAAC,GAAGL,YAAY,CAAC,CAAC;EAEnE,MAAMM,aAAa,GAAGP,oBAAoB,CAAEQ,KAAK,KAAM;IACrDC,gBAAgB,EAAE;MAChBC,IAAI,EAAE,GAAG;MACTC,eAAe,EAAEH,KAAK,CAACI,OAAO,CAACC;IACjC;EACF,CAAC,CAAC,CAAC;EAEH,MAAMC,YAAY,GAAGhB,KAAK,CAACiB,WAAW,CACpC,MAAMT,sBAAsB,CAACJ,UAAU,CAACc,OAAO,CAAC,EAChD,CAACV,sBAAsB,CACzB,CAAC;EAED,oBACER,KAAA,CAAAmB,aAAA,CAAClB,WAAW;IACVe,YAAY,EAAEA,YAAa;IAC3BI,SAAS,EAAEb,gBAAgB,KAAKH,UAAU,CAACiB,WAAY;IACvDC,kBAAkB,EAAE,GAAI;IACxBC,cAAc,EAAEd,aAAa,CAACE;EAAiB,gBAE/CX,KAAA,CAAAmB,aAAA,CAACd,cAAc;IAACmB,SAAS,EAAER;EAAa,CAAE,CAC/B,CAAC;AAElB,CAAC;AAED,OAAO,MAAMS,qBAAqB,gBAAGzB,KAAK,CAAC0B,IAAI,CAACpB,sBAAsB,CAAC"}
|
|
@@ -1,73 +1,140 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useDispatch, useSelector } from 'react-redux';
|
|
3
3
|
import { StyleSheet, Text, TouchableOpacity, View } from 'react-native';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
4
|
+
import { GestureDetector, Gesture } from 'react-native-gesture-handler';
|
|
5
|
+
import { ChevronIcon, ParticipantsIcon, PersonIcon, SearchIcon, ThreeDotsIcon } from '../../Icons';
|
|
6
|
+
import { useHMSCanDisableChat, useHMSChatRecipientSelector, useHMSRoomStyleSheet, useIsAllowedToSendMessage, useIsLocalPeerBlockedFromChat, useModalType } from '../../hooks-util';
|
|
7
|
+
import { setChatFilterSheetVisible, setChatMoreActionsSheetVisible } from '../../redux/actions';
|
|
8
|
+
import { PressableIcon } from '../PressableIcon';
|
|
9
|
+
import { ChatBroadcastFilter, ModalTypes } from '../../utils/types';
|
|
10
|
+
import { hexToRgbA } from '../../utils/theme';
|
|
11
|
+
const _ChatFilterBottomSheetOpener = ({
|
|
12
|
+
insetMode = false
|
|
13
|
+
}) => {
|
|
8
14
|
const dispatch = useDispatch();
|
|
9
|
-
const
|
|
15
|
+
const canDisableChat = useHMSCanDisableChat();
|
|
16
|
+
const chatRecipients = useHMSChatRecipientSelector();
|
|
17
|
+
const allowedToSendMessage = useIsAllowedToSendMessage();
|
|
18
|
+
const isLocalPeerBlockedFromChat = useIsLocalPeerBlockedFromChat();
|
|
19
|
+
const selectedChatRecipient = useSelector(state => state.chatWindow.sendTo);
|
|
20
|
+
const {
|
|
21
|
+
handleModalVisibleType
|
|
22
|
+
} = useModalType();
|
|
10
23
|
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
11
24
|
label: {
|
|
12
25
|
color: theme.palette.on_surface_medium,
|
|
13
|
-
fontFamily: `${typography.font_family}-
|
|
26
|
+
fontFamily: `${typography.font_family}-Regular`
|
|
14
27
|
},
|
|
15
28
|
button: {
|
|
16
|
-
|
|
29
|
+
backgroundColor: insetMode ? theme.palette.background_dim && hexToRgbA(theme.palette.background_dim, 0.64) : theme.palette.primary_default
|
|
17
30
|
},
|
|
18
31
|
buttonText: {
|
|
19
32
|
color: theme.palette.on_surface_high,
|
|
20
|
-
fontFamily: `${typography.font_family}-
|
|
33
|
+
fontFamily: `${typography.font_family}-Regular`
|
|
34
|
+
},
|
|
35
|
+
moreAction: {
|
|
36
|
+
backgroundColor: theme.palette.background_dim && hexToRgbA(theme.palette.background_dim, 0.64)
|
|
37
|
+
},
|
|
38
|
+
moreActionIcon: {
|
|
39
|
+
tintColor: insetMode ? theme.palette.on_surface_low : theme.palette.on_surface_medium
|
|
21
40
|
}
|
|
22
|
-
}));
|
|
41
|
+
}), [insetMode]);
|
|
23
42
|
const openChatFiltersSheet = () => {
|
|
24
|
-
|
|
43
|
+
if (insetMode) {
|
|
44
|
+
handleModalVisibleType(ModalTypes.CHAT_FILTER);
|
|
45
|
+
} else {
|
|
46
|
+
dispatch(setChatFilterSheetVisible(true));
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
const openChatMoreActionsSheet = () => {
|
|
50
|
+
if (insetMode) {
|
|
51
|
+
handleModalVisibleType(ModalTypes.CHAT_MORE_ACTIONS);
|
|
52
|
+
} else {
|
|
53
|
+
dispatch(setChatMoreActionsSheetVisible(true));
|
|
54
|
+
}
|
|
25
55
|
};
|
|
56
|
+
const filterSheetDisabled = !chatRecipients.privateChat && (
|
|
57
|
+
// filter Sheet can't be diabled when privateChat is 'on'
|
|
58
|
+
chatRecipients.publicChat ? chatRecipients.roles.length === 0 : chatRecipients.roles.length <= 1);
|
|
59
|
+
const showActionButtons = allowedToSendMessage && !isLocalPeerBlockedFromChat || canDisableChat;
|
|
60
|
+
if (!showActionButtons) {
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
const tapGesture = Gesture.Tap();
|
|
26
64
|
return /*#__PURE__*/React.createElement(View, {
|
|
27
65
|
style: styles.container
|
|
66
|
+
}, allowedToSendMessage && !isLocalPeerBlockedFromChat ? /*#__PURE__*/React.createElement(View, {
|
|
67
|
+
style: styles.sendToContainer
|
|
28
68
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
29
69
|
style: [styles.label, hmsRoomStyles.label]
|
|
30
|
-
},
|
|
70
|
+
}, selectedChatRecipient !== null ? 'To' : `Choose ${chatRecipients.privateChat ? 'Participant' : chatRecipients.roles.length > 0 ? 'Role' : ''}`), /*#__PURE__*/React.createElement(GestureDetector, {
|
|
71
|
+
gesture: tapGesture
|
|
72
|
+
}, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
73
|
+
disabled: filterSheetDisabled,
|
|
31
74
|
onPress: openChatFiltersSheet,
|
|
32
|
-
style: [styles.button,
|
|
33
|
-
|
|
75
|
+
style: [styles.button, {
|
|
76
|
+
paddingRight: filterSheetDisabled ? 8 : undefined
|
|
77
|
+
}, hmsRoomStyles.button]
|
|
78
|
+
}, selectedChatRecipient ? selectedChatRecipient === ChatBroadcastFilter ? /*#__PURE__*/React.createElement(ParticipantsIcon, {
|
|
79
|
+
style: styles.buttonIcon
|
|
80
|
+
}) : /*#__PURE__*/React.createElement(PersonIcon, {
|
|
81
|
+
style: styles.buttonIcon
|
|
82
|
+
}) : /*#__PURE__*/React.createElement(SearchIcon, {
|
|
83
|
+
style: styles.buttonIcon
|
|
84
|
+
}), /*#__PURE__*/React.createElement(Text, {
|
|
34
85
|
style: [styles.buttonText, hmsRoomStyles.buttonText]
|
|
35
|
-
},
|
|
86
|
+
}, selectedChatRecipient ? selectedChatRecipient.name : 'Search'), filterSheetDisabled || !selectedChatRecipient ? null : /*#__PURE__*/React.createElement(ChevronIcon, {
|
|
36
87
|
direction: "down",
|
|
37
88
|
style: styles.buttonIcon
|
|
38
|
-
})))
|
|
89
|
+
})))) : /*#__PURE__*/React.createElement(View, null), canDisableChat && insetMode ? /*#__PURE__*/React.createElement(PressableIcon, {
|
|
90
|
+
onPress: openChatMoreActionsSheet,
|
|
91
|
+
style: [styles.moreAction, hmsRoomStyles.moreAction]
|
|
92
|
+
}, /*#__PURE__*/React.createElement(ThreeDotsIcon, {
|
|
93
|
+
stack: "vertical",
|
|
94
|
+
style: styles.moreActionIcon
|
|
95
|
+
})) : null);
|
|
39
96
|
};
|
|
40
97
|
const styles = StyleSheet.create({
|
|
41
98
|
container: {
|
|
42
99
|
flexDirection: 'row',
|
|
43
100
|
alignItems: 'center',
|
|
44
|
-
|
|
45
|
-
|
|
101
|
+
justifyContent: 'space-between',
|
|
102
|
+
marginBottom: 8
|
|
103
|
+
},
|
|
104
|
+
sendToContainer: {
|
|
105
|
+
flexDirection: 'row',
|
|
106
|
+
alignItems: 'center'
|
|
107
|
+
},
|
|
108
|
+
moreAction: {
|
|
109
|
+
padding: 4,
|
|
110
|
+
borderRadius: 4
|
|
111
|
+
},
|
|
112
|
+
moreActionIcon: {
|
|
113
|
+
width: 16,
|
|
114
|
+
height: 16
|
|
46
115
|
},
|
|
47
116
|
label: {
|
|
48
|
-
fontSize:
|
|
117
|
+
fontSize: 12,
|
|
49
118
|
lineHeight: 16,
|
|
50
|
-
letterSpacing:
|
|
119
|
+
letterSpacing: 0.4
|
|
51
120
|
},
|
|
52
121
|
button: {
|
|
53
122
|
padding: 4,
|
|
54
|
-
paddingLeft: 8,
|
|
55
123
|
flexDirection: 'row',
|
|
56
124
|
marginLeft: 8,
|
|
57
|
-
borderWidth: 1,
|
|
58
125
|
borderRadius: 4,
|
|
59
126
|
alignItems: 'center'
|
|
60
127
|
},
|
|
61
128
|
buttonText: {
|
|
62
|
-
fontSize:
|
|
63
|
-
textTransform: '
|
|
129
|
+
fontSize: 12,
|
|
130
|
+
textTransform: 'capitalize',
|
|
64
131
|
lineHeight: 16,
|
|
65
|
-
letterSpacing:
|
|
132
|
+
letterSpacing: 0.4,
|
|
133
|
+
marginHorizontal: 4
|
|
66
134
|
},
|
|
67
135
|
buttonIcon: {
|
|
68
136
|
width: 16,
|
|
69
|
-
height: 16
|
|
70
|
-
marginLeft: 4
|
|
137
|
+
height: 16
|
|
71
138
|
}
|
|
72
139
|
});
|
|
73
140
|
export const ChatFilterBottomSheetOpener = /*#__PURE__*/React.memo(_ChatFilterBottomSheetOpener);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useDispatch","useSelector","StyleSheet","Text","TouchableOpacity","View","ChevronIcon","useHMSRoomStyleSheet","setChatFilterSheetVisible","_ChatFilterBottomSheetOpener","dispatch","
|
|
1
|
+
{"version":3,"names":["React","useDispatch","useSelector","StyleSheet","Text","TouchableOpacity","View","GestureDetector","Gesture","ChevronIcon","ParticipantsIcon","PersonIcon","SearchIcon","ThreeDotsIcon","useHMSCanDisableChat","useHMSChatRecipientSelector","useHMSRoomStyleSheet","useIsAllowedToSendMessage","useIsLocalPeerBlockedFromChat","useModalType","setChatFilterSheetVisible","setChatMoreActionsSheetVisible","PressableIcon","ChatBroadcastFilter","ModalTypes","hexToRgbA","_ChatFilterBottomSheetOpener","insetMode","dispatch","canDisableChat","chatRecipients","allowedToSendMessage","isLocalPeerBlockedFromChat","selectedChatRecipient","state","chatWindow","sendTo","handleModalVisibleType","hmsRoomStyles","theme","typography","label","color","palette","on_surface_medium","fontFamily","font_family","button","backgroundColor","background_dim","primary_default","buttonText","on_surface_high","moreAction","moreActionIcon","tintColor","on_surface_low","openChatFiltersSheet","CHAT_FILTER","openChatMoreActionsSheet","CHAT_MORE_ACTIONS","filterSheetDisabled","privateChat","publicChat","roles","length","showActionButtons","tapGesture","Tap","createElement","style","styles","container","sendToContainer","gesture","disabled","onPress","paddingRight","undefined","buttonIcon","name","direction","stack","create","flexDirection","alignItems","justifyContent","marginBottom","padding","borderRadius","width","height","fontSize","lineHeight","letterSpacing","marginLeft","textTransform","marginHorizontal","ChatFilterBottomSheetOpener","memo"],"sourceRoot":"../../../../src","sources":["components/Chat/ChatFilterBottomSheetOpener.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,WAAW,EAAEC,WAAW,QAAQ,aAAa;AACtD,SAASC,UAAU,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,IAAI,QAAQ,cAAc;AACvE,SAASC,eAAe,EAAEC,OAAO,QAAQ,8BAA8B;AAEvE,SACEC,WAAW,EACXC,gBAAgB,EAChBC,UAAU,EACVC,UAAU,EACVC,aAAa,QACR,aAAa;AAEpB,SACEC,oBAAo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;EACd,CAAC;EACDlC,UAAU,EAAE;IACVyC,QAAQ,EAAE,EAAE;IACZI,aAAa,EAAE,YAAY;IAC3BH,UAAU,EAAE,EAAE;IACdC,aAAa,EAAE,GAAG;IAClBG,gBAAgB,EAAE;EACpB,CAAC;EACDlB,UAAU,EAAE;IACVW,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE;EACV;AACF,CAAC,CAAC;AAEF,OAAO,MAAMO,2BAA2B,gBAAGlG,KAAK,CAACmG,IAAI,CACnDzE,4BACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Pressable","StyleSheet","View","useDispatch","useSelector","Animated","SlideInDown","SlideOutDown","hexToRgbA","ChatFilterView","useHMSRoomStyleSheet","setChatFilterSheetVisible","useIsLandscapeOrientation","_ChatFilterBottomSheetView","dispatch","isLandscapeOrientation","chatFilterSheetVisible","state","app","hmsRoomStyles","theme","backdrop","backgroundColor","palette","background_dim","contentContainer","surface_default","closeFiltersBottomSheet","createElement","style","styles","container","onPress","entering","exiting","maxHeight","create","position","width","height","zIndex","justifyContent","minHeight","borderTopLeftRadius","borderTopRightRadius","ChatFilterBottomSheetView","memo"],"sourceRoot":"../../../../src","sources":["components/Chat/ChatFilterBottomSheetView.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,SAAS,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC1D,SAASC,WAAW,EAAEC,WAAW,QAAQ,aAAa;AACtD,OAAOC,QAAQ,IAAIC,WAAW,EAAEC,YAAY,QAAQ,yBAAyB;AAE7E,SAASC,SAAS,QAAQ,mBAAmB;AAC7C,SAASC,cAAc,QAAQ,kBAAkB;AACjD,SAASC,oBAAoB,QAAQ,kBAAkB;AAEvD,SAASC,yBAAyB,QAAQ,qBAAqB;AAC/D,SAASC,yBAAyB,QAAQ,uBAAuB;AAIjE,MAAMC,0BAEL,GAAGA,CAAC,CAAC,CAAC,KAAK;EAC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AAC;AAED,MAAMqB,MAAM,GAAG7B,UAAU,CAACmC,MAAM,CAAC;EAC/BL,SAAS,EAAE;IACTM,QAAQ,EAAE,UAAU;IACpBC,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE,MAAM;IACdC,MAAM,EAAE,CAAC;IACTC,cAAc,EAAE;
|
|
1
|
+
{"version":3,"names":["React","Pressable","StyleSheet","View","useDispatch","useSelector","Animated","SlideInDown","SlideOutDown","hexToRgbA","ChatFilterView","useHMSRoomStyleSheet","setChatFilterSheetVisible","useIsLandscapeOrientation","_ChatFilterBottomSheetView","dispatch","isLandscapeOrientation","chatFilterSheetVisible","state","app","hmsRoomStyles","theme","backdrop","backgroundColor","palette","background_dim","contentContainer","surface_default","closeFiltersBottomSheet","createElement","style","styles","container","onPress","entering","exiting","maxHeight","create","position","width","height","zIndex","justifyContent","alignSelf","minHeight","borderTopLeftRadius","borderTopRightRadius","ChatFilterBottomSheetView","memo"],"sourceRoot":"../../../../src","sources":["components/Chat/ChatFilterBottomSheetView.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,SAAS,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC1D,SAASC,WAAW,EAAEC,WAAW,QAAQ,aAAa;AACtD,OAAOC,QAAQ,IAAIC,WAAW,EAAEC,YAAY,QAAQ,yBAAyB;AAE7E,SAASC,SAAS,QAAQ,mBAAmB;AAC7C,SAASC,cAAc,QAAQ,kBAAkB;AACjD,SAASC,oBAAoB,QAAQ,kBAAkB;AAEvD,SAASC,yBAAyB,QAAQ,qBAAqB;AAC/D,SAASC,yBAAyB,QAAQ,uBAAuB;AAIjE,MAAMC,0BAEL,GAAGA,CAAC,CAAC,CAAC,KAAK;EACV,MAAMC,QAAQ,GAAGX,WAAW,CAAC,CAAC;EAC9B,MAAMY,sBAAsB,GAAGH,yBAAyB,CAAC,CAAC;EAC1D,MAAMI,sBAAsB,GAAGZ,WAAW,CACvCa,KAAgB,IA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MAAM;IACdC,MAAM,EAAE,CAAC;IACTC,cAAc,EAAE,UAAU;IAC1BC,SAAS,EAAE;EACb,CAAC;EACDrB,QAAQ,EAAE;IACRgB,QAAQ,EAAE,UAAU;IACpBC,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE;EACV,CAAC;EACDd,gBAAgB,EAAE;IAChBa,KAAK,EAAE,MAAM;IACbK,SAAS,EAAE,GAAG;IACdR,SAAS,EAAE,KAAK;IAChBS,mBAAmB,EAAE,EAAE;IACvBC,oBAAoB,EAAE;EACxB;AACF,CAAC,CAAC;AAEF,OAAO,MAAMC,yBAAyB,gBAAG/C,KAAK,CAACgD,IAAI,CAAClC,0BAA0B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { useDispatch } from 'react-redux';
|
|
3
3
|
import { StyleSheet, Text, TouchableOpacity, View } from 'react-native';
|
|
4
4
|
import { CheckIcon } from '../../Icons';
|
|
5
5
|
import { useHMSRoomStyle } from '../../hooks-util';
|
|
@@ -8,7 +8,8 @@ const _ChatFilterItem = ({
|
|
|
8
8
|
item,
|
|
9
9
|
disabled,
|
|
10
10
|
active,
|
|
11
|
-
icon
|
|
11
|
+
icon,
|
|
12
|
+
onDismiss
|
|
12
13
|
}) => {
|
|
13
14
|
const dispatch = useDispatch();
|
|
14
15
|
const titleStyles = useHMSRoomStyle((theme, typography) => ({
|
|
@@ -16,13 +17,15 @@ const _ChatFilterItem = ({
|
|
|
16
17
|
fontFamily: `${typography.font_family}-SemiBold`
|
|
17
18
|
}));
|
|
18
19
|
const handleFilterSelect = () => {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
type: 'SET_SENDTO',
|
|
23
|
-
sendTo: item
|
|
24
|
-
});
|
|
20
|
+
dispatch({
|
|
21
|
+
type: 'SET_SENDTO',
|
|
22
|
+
sendTo: item
|
|
25
23
|
});
|
|
24
|
+
if (onDismiss) {
|
|
25
|
+
onDismiss();
|
|
26
|
+
} else {
|
|
27
|
+
dispatch(setChatFilterSheetVisible(false));
|
|
28
|
+
}
|
|
26
29
|
};
|
|
27
30
|
return /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
28
31
|
style: styles.container,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","
|
|
1
|
+
{"version":3,"names":["React","useDispatch","StyleSheet","Text","TouchableOpacity","View","CheckIcon","useHMSRoomStyle","setChatFilterSheetVisible","_ChatFilterItem","item","disabled","active","icon","onDismiss","dispatch","titleStyles","theme","typography","color","palette","on_surface_high","fontFamily","font_family","handleFilterSelect","type","sendTo","createElement","style","styles","container","onPress","leftIcon","title","name","rightIcon","create","flexDirection","alignItems","paddingHorizontal","paddingVertical","flex","fontSize","lineHeight","letterSpacing","textTransform","marginLeft","marginRight","ChatFilterItem","memo"],"sourceRoot":"../../../../src","sources":["components/Chat/ChatFilterItem.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,WAAW,QAAQ,aAAa;AACzC,SAASC,UAAU,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,IAAI,QAAQ,cAAc;AAGvE,SAASC,SAAS,QAAQ,aAAa;AACvC,SAASC,eAAe,QAAQ,kBAAkB;AAElD,SAASC,yBAAyB,QAAQ,qBAAqB;AAU/D,MAAMC,eAA8C,GAAGA,CAAC;EACtDC,IAAI;EACJC,QAAQ;EACRC,MAAM;EACNC,IAAI;EACJC;AACF,CAAC,KAAK;EACJ,MAAMC,QAAQ,GAAGd,WAAW,CAAC,CAAC;EAE9B,MAAMe,WAAW,GAAGT,eAAe,CAAC,CAACU,KAAK,EAAEC,UAAU,MAAM;IAC1DC,KAAK,EAAEF,KAAK,CAACG,OAAO,CAACC,eAAe;IACpCC,UAAU,EAAG,GAAEJ,UAAU,CAACK,WAAY;EACxC,CAAC,CAAC,CAAC;EAEH,MAAMC,kBAAkB,GAAGA,CAAA,KAAM;IAC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