@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
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports._PinnedMessages = exports.PinnedMessages = void 0;
|
|
7
|
+
var React = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactRedux = require("react-redux");
|
|
10
|
+
var _flashList = require("@shopify/flash-list");
|
|
11
|
+
var _reactNativeGestureHandler = require("react-native-gesture-handler");
|
|
12
|
+
var _hooksUtil = require("../../hooks-util");
|
|
13
|
+
var _Icons = require("../../Icons");
|
|
14
|
+
var _theme = require("../../utils/theme");
|
|
15
|
+
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); }
|
|
16
|
+
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; }
|
|
17
|
+
const FLATLIST_VIEWABILITY_CONFIG = {
|
|
18
|
+
waitForInteraction: true,
|
|
19
|
+
itemVisiblePercentThreshold: 90
|
|
20
|
+
};
|
|
21
|
+
const LINE_HEIGHT = 20;
|
|
22
|
+
var NumOfLines = /*#__PURE__*/function (NumOfLines) {
|
|
23
|
+
NumOfLines[NumOfLines["EXPANDED"] = 6] = "EXPANDED";
|
|
24
|
+
NumOfLines[NumOfLines["COLLAPSED"] = 3] = "COLLAPSED";
|
|
25
|
+
return NumOfLines;
|
|
26
|
+
}(NumOfLines || {});
|
|
27
|
+
const Heights = {
|
|
28
|
+
EXAPANDED: NumOfLines.EXPANDED * LINE_HEIGHT + 2,
|
|
29
|
+
COLLAPSED: NumOfLines.COLLAPSED * LINE_HEIGHT + 2
|
|
30
|
+
};
|
|
31
|
+
const _PinnedMessages = ({
|
|
32
|
+
insetMode = false
|
|
33
|
+
}) => {
|
|
34
|
+
const listRef = React.useRef(null);
|
|
35
|
+
const [numOfLinesInText, setNumOfLinesInText] = React.useState({});
|
|
36
|
+
const numOfLinesInTextRef = React.useRef(numOfLinesInText);
|
|
37
|
+
const [listHeight, setListHeight] = React.useState(Heights.COLLAPSED);
|
|
38
|
+
const listHeightRef = React.useRef(Heights.COLLAPSED);
|
|
39
|
+
const [selectedPinnedMessageIndex, setSelectedMessageIndex] = React.useState(0);
|
|
40
|
+
const selectedPinnedMessageIndexRef = React.useRef(0);
|
|
41
|
+
const allowPinningMessage = (0, _hooksUtil.useAllowPinningMessage)();
|
|
42
|
+
const {
|
|
43
|
+
unpinMessage
|
|
44
|
+
} = (0, _hooksUtil.useHMSMessagePinningActions)();
|
|
45
|
+
const pinnedMessages = (0, _reactRedux.useSelector)(state => state.messages.pinnedMessages);
|
|
46
|
+
const hmsRoomStyles = (0, _hooksUtil.useHMSRoomStyleSheet)((theme, typography) => ({
|
|
47
|
+
insetContainer: {
|
|
48
|
+
backgroundColor: theme.palette.background_dim && (0, _theme.hexToRgbA)(theme.palette.background_dim, 0.64)
|
|
49
|
+
},
|
|
50
|
+
pinContainer: {
|
|
51
|
+
backgroundColor: theme.palette.surface_default
|
|
52
|
+
},
|
|
53
|
+
activeMessageContainer: {
|
|
54
|
+
backgroundColor: theme.palette.on_surface_high
|
|
55
|
+
},
|
|
56
|
+
inactiveMessageContainer: {
|
|
57
|
+
backgroundColor: theme.palette.on_surface_low
|
|
58
|
+
},
|
|
59
|
+
closeIcon: {
|
|
60
|
+
tintColor: theme.palette.on_surface_medium
|
|
61
|
+
},
|
|
62
|
+
highlightedText: {
|
|
63
|
+
fontFamily: `${typography.font_family}-SemiBold`,
|
|
64
|
+
color: theme.palette.on_surface_high
|
|
65
|
+
},
|
|
66
|
+
text: {
|
|
67
|
+
fontFamily: `${typography.font_family}-Regular`,
|
|
68
|
+
color: theme.palette.on_surface_high
|
|
69
|
+
},
|
|
70
|
+
ellipsis: {
|
|
71
|
+
backgroundColor: theme.palette.background_dim && (0, _theme.hexToRgbA)(theme.palette.background_dim, 0.64)
|
|
72
|
+
}
|
|
73
|
+
}));
|
|
74
|
+
const handleTapOnPinnedMessage = React.useCallback(() => {
|
|
75
|
+
setListHeight(prevListHeight => {
|
|
76
|
+
let updated = prevListHeight > Heights.COLLAPSED ? Heights.COLLAPSED : Heights.EXAPANDED;
|
|
77
|
+
listHeightRef.current = updated;
|
|
78
|
+
return updated;
|
|
79
|
+
});
|
|
80
|
+
}, []);
|
|
81
|
+
const handleUnpinMessagePress = React.useCallback(() => {
|
|
82
|
+
const visiblePinnedMessage = pinnedMessages[selectedPinnedMessageIndexRef.current];
|
|
83
|
+
if (visiblePinnedMessage) {
|
|
84
|
+
if (listHeight > Heights.COLLAPSED) {
|
|
85
|
+
setListHeight(Heights.COLLAPSED);
|
|
86
|
+
listHeightRef.current = Heights.COLLAPSED;
|
|
87
|
+
}
|
|
88
|
+
unpinMessage(visiblePinnedMessage);
|
|
89
|
+
}
|
|
90
|
+
}, [listHeight, pinnedMessages]);
|
|
91
|
+
const _handleViewableItemsChanged = React.useCallback(info => {
|
|
92
|
+
const firstViewable = info.viewableItems[0];
|
|
93
|
+
if (firstViewable !== null && firstViewable !== void 0 && firstViewable.isViewable && typeof firstViewable.index === 'number') {
|
|
94
|
+
let viewableIndexChanged = false;
|
|
95
|
+
setSelectedMessageIndex(currIndex => {
|
|
96
|
+
if (currIndex !== firstViewable.index) {
|
|
97
|
+
viewableIndexChanged = true;
|
|
98
|
+
}
|
|
99
|
+
if (firstViewable.index !== null) {
|
|
100
|
+
return firstViewable.index;
|
|
101
|
+
}
|
|
102
|
+
return currIndex;
|
|
103
|
+
});
|
|
104
|
+
selectedPinnedMessageIndexRef.current = firstViewable.index;
|
|
105
|
+
const visiblePinnedMessage = pinnedMessages[selectedPinnedMessageIndexRef.current];
|
|
106
|
+
if (viewableIndexChanged && listHeightRef.current > Heights.COLLAPSED && visiblePinnedMessage) {
|
|
107
|
+
const visibleMessageExpandable = numOfLinesInTextRef.current[visiblePinnedMessage.id];
|
|
108
|
+
if (!visibleMessageExpandable) {
|
|
109
|
+
setListHeight(Heights.COLLAPSED);
|
|
110
|
+
listHeightRef.current = Heights.COLLAPSED;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}, [pinnedMessages]);
|
|
115
|
+
const _renderItem = React.useCallback(data => {
|
|
116
|
+
const numOfLines = numOfLinesInText[data.item.id];
|
|
117
|
+
const [sender, text] = data.item.text.split(':');
|
|
118
|
+
return /*#__PURE__*/React.createElement(_reactNative.TouchableOpacity, {
|
|
119
|
+
activeOpacity: 0.8,
|
|
120
|
+
disabled: typeof numOfLines !== 'number',
|
|
121
|
+
onPress: typeof numOfLines === 'number' ? handleTapOnPinnedMessage : undefined,
|
|
122
|
+
style: {
|
|
123
|
+
height: listHeight,
|
|
124
|
+
justifyContent: 'center',
|
|
125
|
+
overflow: _reactNative.Platform.OS === 'ios' && typeof numOfLines !== 'number' ? 'scroll' : 'hidden'
|
|
126
|
+
}
|
|
127
|
+
}, listHeight >= Heights.EXAPANDED && typeof numOfLines === 'number' && numOfLines > NumOfLines.EXPANDED ? /*#__PURE__*/React.createElement(_reactNative.ScrollView, {
|
|
128
|
+
nestedScrollEnabled: true,
|
|
129
|
+
contentContainerStyle: {
|
|
130
|
+
paddingBottom: 12
|
|
131
|
+
}
|
|
132
|
+
}, /*#__PURE__*/React.createElement(_reactNative.TouchableOpacity, {
|
|
133
|
+
activeOpacity: 0.8,
|
|
134
|
+
onPress: handleTapOnPinnedMessage
|
|
135
|
+
}, /*#__PURE__*/React.createElement(_reactNative.Text, {
|
|
136
|
+
onTextLayout: ({
|
|
137
|
+
nativeEvent
|
|
138
|
+
}) => {
|
|
139
|
+
if (nativeEvent.lines.length > NumOfLines.COLLAPSED) {
|
|
140
|
+
setNumOfLinesInText(prev => {
|
|
141
|
+
const currentValue = prev[data.item.id];
|
|
142
|
+
let updated;
|
|
143
|
+
if (typeof currentValue === 'number' && currentValue === nativeEvent.lines.length) {
|
|
144
|
+
updated = prev;
|
|
145
|
+
} else {
|
|
146
|
+
updated = {
|
|
147
|
+
...prev,
|
|
148
|
+
[data.item.id]: nativeEvent.lines.length
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
numOfLinesInTextRef.current = updated;
|
|
152
|
+
return updated;
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
style: [styles.text, hmsRoomStyles.text],
|
|
157
|
+
numberOfLines: listHeight === Heights.COLLAPSED && typeof numOfLines === 'number' ? 3 : undefined
|
|
158
|
+
}, text ? /*#__PURE__*/React.createElement(_reactNative.Text, {
|
|
159
|
+
style: hmsRoomStyles.highlightedText
|
|
160
|
+
}, sender, ":", ' ') : null, text ?? sender))) : /*#__PURE__*/React.createElement(_reactNative.Text, {
|
|
161
|
+
onTextLayout: ({
|
|
162
|
+
nativeEvent
|
|
163
|
+
}) => {
|
|
164
|
+
if (nativeEvent.lines.length > NumOfLines.COLLAPSED) {
|
|
165
|
+
setNumOfLinesInText(prev => {
|
|
166
|
+
const currentValue = prev[data.item.id];
|
|
167
|
+
let updated;
|
|
168
|
+
if (typeof currentValue === 'number' && currentValue === nativeEvent.lines.length) {
|
|
169
|
+
updated = prev;
|
|
170
|
+
} else {
|
|
171
|
+
updated = {
|
|
172
|
+
...prev,
|
|
173
|
+
[data.item.id]: nativeEvent.lines.length
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
numOfLinesInTextRef.current = updated;
|
|
177
|
+
return updated;
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
style: [styles.text, hmsRoomStyles.text],
|
|
182
|
+
numberOfLines: listHeight === Heights.COLLAPSED && typeof numOfLines === 'number' ? 3 : undefined
|
|
183
|
+
}, text ? /*#__PURE__*/React.createElement(_reactNative.Text, {
|
|
184
|
+
style: hmsRoomStyles.highlightedText
|
|
185
|
+
}, sender, ": ") : null, text ?? sender));
|
|
186
|
+
}, [listHeight, numOfLinesInText, handleTapOnPinnedMessage]);
|
|
187
|
+
const _keyExtractor = React.useCallback(item => item.id, []);
|
|
188
|
+
const _onContentSizeChange = React.useCallback((_w, _h) => {
|
|
189
|
+
var _listRef$current;
|
|
190
|
+
(_listRef$current = listRef.current) === null || _listRef$current === void 0 || _listRef$current.scrollToOffset({
|
|
191
|
+
offset: listHeight * selectedPinnedMessageIndexRef.current,
|
|
192
|
+
animated: false
|
|
193
|
+
});
|
|
194
|
+
}, [listHeight]);
|
|
195
|
+
const tapGesture = React.useMemo(() => _reactNativeGestureHandler.Gesture.Tap(), []);
|
|
196
|
+
const extraData = React.useMemo(() => [listHeight, numOfLinesInText, pinnedMessages], [listHeight, numOfLinesInText, pinnedMessages]);
|
|
197
|
+
if (pinnedMessages.length <= 0) {
|
|
198
|
+
return null;
|
|
199
|
+
}
|
|
200
|
+
return /*#__PURE__*/React.createElement(_reactNativeGestureHandler.GestureDetector, {
|
|
201
|
+
gesture: tapGesture
|
|
202
|
+
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
203
|
+
style: [insetMode ? styles.insetContainer : styles.container, insetMode ? hmsRoomStyles.insetContainer : null]
|
|
204
|
+
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
205
|
+
style: [styles.pinContainer, insetMode ? {
|
|
206
|
+
paddingRight: 0
|
|
207
|
+
} : hmsRoomStyles.pinContainer, {
|
|
208
|
+
height: listHeight + 16
|
|
209
|
+
}]
|
|
210
|
+
}, pinnedMessages.length > 1 ? /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
211
|
+
style: {
|
|
212
|
+
marginRight: 8,
|
|
213
|
+
flexDirection: 'column'
|
|
214
|
+
}
|
|
215
|
+
}, pinnedMessages.map((message, idx) => {
|
|
216
|
+
const isFirst = idx === 0;
|
|
217
|
+
const isSelected = selectedPinnedMessageIndex === idx;
|
|
218
|
+
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
219
|
+
key: message.id
|
|
220
|
+
}, isFirst ? null : /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
221
|
+
style: [{
|
|
222
|
+
height: 3,
|
|
223
|
+
width: 2
|
|
224
|
+
}]
|
|
225
|
+
}), /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
226
|
+
style: [{
|
|
227
|
+
width: 2,
|
|
228
|
+
flexGrow: 1,
|
|
229
|
+
borderRadius: 16
|
|
230
|
+
}, isSelected ? hmsRoomStyles.activeMessageContainer : hmsRoomStyles.inactiveMessageContainer]
|
|
231
|
+
}));
|
|
232
|
+
})) : null, /*#__PURE__*/React.createElement(_flashList.FlashList, {
|
|
233
|
+
ref: listRef,
|
|
234
|
+
data: pinnedMessages,
|
|
235
|
+
extraData: extraData,
|
|
236
|
+
showsVerticalScrollIndicator: false,
|
|
237
|
+
pagingEnabled: true,
|
|
238
|
+
nestedScrollEnabled: true,
|
|
239
|
+
keyboardShouldPersistTaps: "always",
|
|
240
|
+
renderItem: _renderItem,
|
|
241
|
+
keyExtractor: _keyExtractor,
|
|
242
|
+
onContentSizeChange: _onContentSizeChange,
|
|
243
|
+
estimatedItemSize: 40,
|
|
244
|
+
onViewableItemsChanged: _handleViewableItemsChanged,
|
|
245
|
+
viewabilityConfig: FLATLIST_VIEWABILITY_CONFIG
|
|
246
|
+
})), allowPinningMessage ? /*#__PURE__*/React.createElement(_reactNative.TouchableOpacity, {
|
|
247
|
+
style: {
|
|
248
|
+
marginLeft: 8
|
|
249
|
+
},
|
|
250
|
+
onPress: handleUnpinMessagePress
|
|
251
|
+
}, /*#__PURE__*/React.createElement(_Icons.PinIcon, {
|
|
252
|
+
type: "unpin",
|
|
253
|
+
style: [styles.icon, hmsRoomStyles.closeIcon]
|
|
254
|
+
})) : null));
|
|
255
|
+
};
|
|
256
|
+
exports._PinnedMessages = _PinnedMessages;
|
|
257
|
+
const PinnedMessages = exports.PinnedMessages = /*#__PURE__*/React.memo(_PinnedMessages);
|
|
258
|
+
const styles = _reactNative.StyleSheet.create({
|
|
259
|
+
container: {
|
|
260
|
+
flexDirection: 'row',
|
|
261
|
+
alignItems: 'center',
|
|
262
|
+
marginTop: 8
|
|
263
|
+
},
|
|
264
|
+
insetContainer: {
|
|
265
|
+
flexDirection: 'row',
|
|
266
|
+
alignItems: 'center',
|
|
267
|
+
marginTop: 8,
|
|
268
|
+
marginHorizontal: 8,
|
|
269
|
+
marginBottom: 4,
|
|
270
|
+
borderRadius: 8,
|
|
271
|
+
paddingRight: 8
|
|
272
|
+
},
|
|
273
|
+
pinContainer: {
|
|
274
|
+
flexDirection: 'row',
|
|
275
|
+
flexGrow: 1,
|
|
276
|
+
flexShrink: 1,
|
|
277
|
+
borderRadius: 8,
|
|
278
|
+
paddingVertical: 8,
|
|
279
|
+
paddingRight: 8,
|
|
280
|
+
paddingLeft: 8
|
|
281
|
+
},
|
|
282
|
+
textWrapper: {
|
|
283
|
+
maxHeight: 50,
|
|
284
|
+
marginHorizontal: 8
|
|
285
|
+
},
|
|
286
|
+
icon: {
|
|
287
|
+
width: 20,
|
|
288
|
+
height: 20
|
|
289
|
+
// marginTop: 8,
|
|
290
|
+
},
|
|
291
|
+
text: {
|
|
292
|
+
fontSize: 14,
|
|
293
|
+
lineHeight: 20,
|
|
294
|
+
letterSpacing: 0.25
|
|
295
|
+
}
|
|
296
|
+
});
|
|
297
|
+
//# sourceMappingURL=PinnedMessages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_reactRedux","_flashList","_reactNativeGestureHandler","_hooksUtil","_Icons","_theme","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","FLATLIST_VIEWABILITY_CONFIG","waitForInteraction","itemVisiblePercentThreshold","LINE_HEIGHT","NumOfLines","Heights","EXAPANDED","EXPANDED","COLLAPSED","_PinnedMessages","insetMode","listRef","useRef","numOfLinesInText","setNumOfLinesInText","useState","numOfLinesInTextRef","listHeight","setListHeight","listHeightRef","selectedPinnedMessageIndex","setSelectedMessageIndex","selectedPinnedMessageIndexRef","allowPinningMessage","useAllowPinningMessage","unpinMessage","useHMSMessagePinningActions","pinnedMessages","useSelector","state","messages","hmsRoomStyles","useHMSRoomStyleSheet","theme","typography","insetContainer","backgroundColor","palette","background_dim","hexToRgbA","pinContainer","surface_default","activeMessageContainer","on_surface_high","inactiveMessageContainer","on_surface_low","closeIcon","tintColor","on_surface_medium","highlightedText","fontFamily","font_family","color","text","ellipsis","handleTapOnPinnedMessage","useCallback","prevListHeight","updated","current","handleUnpinMessagePress","visiblePinnedMessage","_handleViewableItemsChanged","info","firstViewable","viewableItems","isViewable","index","viewableIndexChanged","currIndex","visibleMessageExpandable","id","_renderItem","data","numOfLines","item","sender","split","createElement","TouchableOpacity","activeOpacity","disabled","onPress","undefined","style","height","justifyContent","overflow","Platform","OS","ScrollView","nestedScrollEnabled","contentContainerStyle","paddingBottom","Text","onTextLayout","nativeEvent","lines","length","prev","currentValue","styles","numberOfLines","_keyExtractor","_onContentSizeChange","_w","_h","_listRef$current","scrollToOffset","offset","animated","tapGesture","useMemo","Gesture","Tap","extraData","GestureDetector","gesture","View","container","paddingRight","marginRight","flexDirection","map","message","idx","isFirst","isSelected","Fragment","key","width","flexGrow","borderRadius","FlashList","ref","showsVerticalScrollIndicator","pagingEnabled","keyboardShouldPersistTaps","renderItem","keyExtractor","onContentSizeChange","estimatedItemSize","onViewableItemsChanged","viewabilityConfig","marginLeft","PinIcon","type","icon","exports","PinnedMessages","memo","StyleSheet","create","alignItems","marginTop","marginHorizontal","marginBottom","flexShrink","paddingVertical","paddingLeft","textWrapper","maxHeight","fontSize","lineHeight","letterSpacing"],"sourceRoot":"../../../../src","sources":["components/Chat/PinnedMessages.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AASA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AAEA,IAAAI,0BAAA,GAAAJ,OAAA;AAGA,IAAAK,UAAA,GAAAL,OAAA;AAKA,IAAAM,MAAA,GAAAN,OAAA;AAEA,IAAAO,MAAA,GAAAP,OAAA;AAA8C,SAAAQ,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,SAAAV,wBAAAU,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA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AEpH,aAAa,CAACe,SAAS;EAAE,CAC/C,CACe,CAAC,GACjB,IACA,CACS,CAAC;AAEtB,CAAC;AAACsG,OAAA,CAAA3I,eAAA,GAAAA,eAAA;AAEK,MAAM4I,cAAc,GAAAD,OAAA,CAAAC,cAAA,gBAAGpL,KAAK,CAACqL,IAAI,CAAC7I,eAAe,CAAC;AAEzD,MAAM4F,MAAM,GAAGkD,uBAAU,CAACC,MAAM,CAAC;EAC/BjC,SAAS,EAAE;IACTG,aAAa,EAAE,KAAK;IACpB+B,UAAU,EAAE,QAAQ;IACpBC,SAAS,EAAE;EACb,CAAC;EACDvH,cAAc,EAAE;IACduF,aAAa,EAAE,KAAK;IACpB+B,UAAU,EAAE,QAAQ;IACpBC,SAAS,EAAE,CAAC;IACZC,gBAAgB,EAAE,CAAC;IACnBC,YAAY,EAAE,CAAC;IACfxB,YAAY,EAAE,CAAC;IACfZ,YAAY,EAAE;EAChB,CAAC;EACDhF,YAAY,EAAE;IACZkF,aAAa,EAAE,KAAK;IACpBS,QAAQ,EAAE,CAAC;IACX0B,UAAU,EAAE,CAAC;IACbzB,YAAY,EAAE,CAAC;IACf0B,eAAe,EAAE,CAAC;IAClBtC,YAAY,EAAE,CAAC;IACfuC,WAAW,EAAE;EACf,CAAC;EACDC,WAAW,EAAE;IACXC,SAAS,EAAE,EAAE;IACbN,gBAAgB,EAAE;EACpB,CAAC;EACDR,IAAI,EAAE;IACJjB,KAAK,EAAE,EAAE;IACT7C,MAAM,EAAE;IACR;EACF,CAAC;EACDhC,IAAI,EAAE;IACJ6G,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,aAAa,EAAE;EACjB;AACF,CAAC,CAAC"}
|
|
@@ -36,14 +36,14 @@ Object.keys(_ChatMessage).forEach(function (key) {
|
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
});
|
|
39
|
-
var
|
|
40
|
-
Object.keys(
|
|
39
|
+
var _PinnedMessages = require("./PinnedMessages");
|
|
40
|
+
Object.keys(_PinnedMessages).forEach(function (key) {
|
|
41
41
|
if (key === "default" || key === "__esModule") return;
|
|
42
|
-
if (key in exports && exports[key] ===
|
|
42
|
+
if (key in exports && exports[key] === _PinnedMessages[key]) return;
|
|
43
43
|
Object.defineProperty(exports, key, {
|
|
44
44
|
enumerable: true,
|
|
45
45
|
get: function () {
|
|
46
|
-
return
|
|
46
|
+
return _PinnedMessages[key];
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_ChatBanner","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_ChatList","_ChatMessage","
|
|
1
|
+
{"version":3,"names":["_ChatBanner","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_ChatList","_ChatMessage","_PinnedMessages"],"sourceRoot":"../../../../src","sources":["components/Chat/index.ts"],"mappings":";;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,WAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,WAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,WAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,SAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,SAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,SAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,SAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,YAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,YAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,YAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,YAAA,CAAAN,GAAA;IAAA;EAAA;AAAA;AACA,IAAAO,eAAA,GAAAX,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAS,eAAA,EAAAR,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAO,eAAA,CAAAP,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAG,eAAA,CAAAP,GAAA;IAAA;EAAA;AAAA"}
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.ChatAndParticipantsBottomSheet = void 0;
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
|
-
var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
|
|
10
9
|
var _BottomSheet = require("../BottomSheet");
|
|
11
10
|
var _hooksUtil = require("../../hooks-util");
|
|
12
11
|
var _ChatAndParticipantsView = require("./ChatAndParticipantsView");
|
|
@@ -15,31 +14,33 @@ var _dimension = require("../../utils/dimension");
|
|
|
15
14
|
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); }
|
|
16
15
|
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; }
|
|
17
16
|
const ChatAndParticipantsBottomSheet = () => {
|
|
18
|
-
const
|
|
19
|
-
top: topSafeArea
|
|
20
|
-
} = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)();
|
|
17
|
+
const headerHeight = (0, _Header.useHeaderHeight)();
|
|
21
18
|
const isLandscapeOrientation = (0, _dimension.useIsLandscapeOrientation)();
|
|
22
19
|
const {
|
|
23
20
|
modalVisible,
|
|
24
21
|
hide
|
|
25
22
|
} = (0, _hooksUtil.useShowChatAndParticipants)();
|
|
23
|
+
const hmsRoomStyles = (0, _hooksUtil.useHMSRoomStyleSheet)(theme => ({
|
|
24
|
+
contentContainer: {
|
|
25
|
+
backgroundColor: theme.palette.surface_dim
|
|
26
|
+
}
|
|
27
|
+
}));
|
|
26
28
|
const closeChatWindow = () => hide('modal');
|
|
27
29
|
return /*#__PURE__*/React.createElement(_BottomSheet.BottomSheet, {
|
|
28
30
|
fullWidth: true,
|
|
29
31
|
dismissModal: closeChatWindow,
|
|
30
32
|
isVisible: modalVisible,
|
|
31
33
|
avoidKeyboard: true,
|
|
32
|
-
containerStyle: [styles.bottomSheet, {
|
|
33
|
-
marginTop:
|
|
34
|
-
}]
|
|
34
|
+
containerStyle: [styles.bottomSheet, hmsRoomStyles.contentContainer, {
|
|
35
|
+
marginTop: isLandscapeOrientation ? 0 : headerHeight
|
|
36
|
+
}],
|
|
37
|
+
bottomOffsetSpace: 0
|
|
35
38
|
}, /*#__PURE__*/React.createElement(_ChatAndParticipantsView.ChatAndParticipantsView, null));
|
|
36
39
|
};
|
|
37
40
|
exports.ChatAndParticipantsBottomSheet = ChatAndParticipantsBottomSheet;
|
|
38
41
|
const styles = _reactNative.StyleSheet.create({
|
|
39
42
|
bottomSheet: {
|
|
40
|
-
flex: 1
|
|
41
|
-
backgroundColor: undefined,
|
|
42
|
-
paddingBottom: 0
|
|
43
|
+
flex: 1
|
|
43
44
|
}
|
|
44
45
|
});
|
|
45
46
|
//# sourceMappingURL=ChatAndParticipantsBottomSheet.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","
|
|
1
|
+
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_BottomSheet","_hooksUtil","_ChatAndParticipantsView","_Header","_dimension","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","ChatAndParticipantsBottomSheet","headerHeight","useHeaderHeight","isLandscapeOrientation","useIsLandscapeOrientation","modalVisible","hide","useShowChatAndParticipants","hmsRoomStyles","useHMSRoomStyleSheet","theme","contentContainer","backgroundColor","palette","surface_dim","closeChatWindow","createElement","BottomSheet","fullWidth","dismissModal","isVisible","avoidKeyboard","containerStyle","styles","bottomSheet","marginTop","bottomOffsetSpace","ChatAndParticipantsView","exports","StyleSheet","create","flex"],"sourceRoot":"../../../../src","sources":["components/ChatAndParticipants/ChatAndParticipantsBottomSheet.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AAIA,IAAAI,wBAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,U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AsB,GAAG,IAAAC,oCAAyB,EAAC,CAAC;EAE1D,MAAM;IAAEC,YAAY;IAAEC;EAAK,CAAC,GAAG,IAAAC,qCAA0B,EAAC,CAAC;EAE3D,MAAMC,aAAa,GAAG,IAAAC,+BAAoB,EAAEC,KAAK,KAAM;IACrDC,gBAAgB,EAAE;MAChBC,eAAe,EAAEF,KAAK,CAACG,OAAO,CAACC;IACjC;EACF,CAAC,CAAC,CAAC;EAEH,MAAMC,eAAe,GAAGA,CAAA,KAAMT,IAAI,CAAC,OAAO,CAAC;EAE3C,oBACEpC,KAAA,CAAA8C,aAAA,CAAC1C,YAAA,CAAA2C,WAAW;IACVC,SAAS,EAAE,IAAK;IAChBC,YAAY,EAAEJ,eAAgB;IAC9BK,SAAS,EAAEf,YAAa;IACxBgB,aAAa,EAAE,IAAK;IACpBC,cAAc,EAAE,CACdC,MAAM,CAACC,WAAW,EAClBhB,aAAa,CAACG,gBAAgB,EAC9B;MACEc,SAAS,EAAEtB,sBAAsB,GAAG,CAAC,GAAGF;IAC1C,CAAC,CACD;IACFyB,iBAAiB,EAAE;EAAE,gBAErBxD,KAAA,CAAA8C,aAAA,CAACxC,wBAAA,CAAAmD,uBAAuB,MAAE,CACf,CAAC;AAElB,CAAC;AAACC,OAAA,CAAA5B,8BAAA,GAAAA,8BAAA;AAEF,MAAMuB,MAAM,GAAGM,uBAAU,CAACC,MAAM,CAAC;EAC/BN,WAAW,EAAE;IACXO,IAAI,EAAE;EACR;AACF,CAAC,CAAC"}
|
|
@@ -22,6 +22,7 @@ const _ChatAndParticipantsHeader = ({
|
|
|
22
22
|
var _state$hmsStates$room;
|
|
23
23
|
return (_state$hmsStates$room = state.hmsStates.room) === null || _state$hmsStates$room === void 0 ? void 0 : _state$hmsStates$room.peerCount;
|
|
24
24
|
});
|
|
25
|
+
const canDisableChat = (0, _hooksUtil.useHMSCanDisableChat)();
|
|
25
26
|
const hmsRoomStyles = (0, _hooksUtil.useHMSRoomStyleSheet)((theme, typography) => ({
|
|
26
27
|
headerTitleWrapper: {
|
|
27
28
|
backgroundColor: theme.palette.surface_default
|
|
@@ -49,6 +50,13 @@ const _ChatAndParticipantsHeader = ({
|
|
|
49
50
|
if (tab === 'Chat') return canShowChat && !overlayChatLayout;
|
|
50
51
|
return true;
|
|
51
52
|
});
|
|
53
|
+
const onSettingsPress = () => {
|
|
54
|
+
dispatch((0, _actions.setChatMoreActionsSheetVisible)(true));
|
|
55
|
+
};
|
|
56
|
+
const hideSettigsButton = !canDisableChat ||
|
|
57
|
+
// can't disable chat, OR
|
|
58
|
+
visibleChatBottomSheetTabs.length === 1 && visibleChatBottomSheetTabs[0] === 'Participants'; // Only Participants Header is visible
|
|
59
|
+
|
|
52
60
|
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
53
61
|
style: visibleChatBottomSheetTabs.length > 1 ? styles.tabsHeader : styles.header
|
|
54
62
|
}, visibleChatBottomSheetTabs.length === 1 ? /*#__PURE__*/React.createElement(_reactNative.Text, {
|
|
@@ -67,10 +75,21 @@ const _ChatAndParticipantsHeader = ({
|
|
|
67
75
|
testID: tab === 'Participants' ? isActive ? _constants.TestIds.participants_heading_active : _constants.TestIds.participants_heading : tab === 'Chat' ? isActive ? _constants.TestIds.chat_heading_active : _constants.TestIds.chat_heading : undefined,
|
|
68
76
|
style: [styles.headerTitle, hmsRoomStyles.headerTitle, isActive ? hmsRoomStyles.activeHeaderTitle : null]
|
|
69
77
|
}, tab, tab === 'Participants' && typeof peersCount === 'number' ? ` (${peersCount})` : null));
|
|
70
|
-
})), /*#__PURE__*/React.createElement(_reactNative.
|
|
78
|
+
})), /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
79
|
+
style: {
|
|
80
|
+
flexDirection: 'row'
|
|
81
|
+
}
|
|
82
|
+
}, hideSettigsButton ? null : /*#__PURE__*/React.createElement(_reactNative.TouchableOpacity, {
|
|
83
|
+
disabled: activeChatBottomSheetTab === 'Participants',
|
|
84
|
+
onPress: onSettingsPress,
|
|
85
|
+
style: {
|
|
86
|
+
marginRight: 16,
|
|
87
|
+
opacity: activeChatBottomSheetTab === 'Participants' ? 0.5 : 1
|
|
88
|
+
}
|
|
89
|
+
}, /*#__PURE__*/React.createElement(_Icons.SettingsIcon, null)), /*#__PURE__*/React.createElement(_reactNative.TouchableOpacity, {
|
|
71
90
|
testID: _constants.TestIds.participants_close_btn,
|
|
72
91
|
onPress: onClosePress
|
|
73
|
-
}, /*#__PURE__*/React.createElement(_Icons.CloseIcon, null)));
|
|
92
|
+
}, /*#__PURE__*/React.createElement(_Icons.CloseIcon, null))));
|
|
74
93
|
};
|
|
75
94
|
const styles = _reactNative.StyleSheet.create({
|
|
76
95
|
tabsHeader: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_reactRedux","_Icons","_hooksUtil","_types","_actions","_constants","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_ChatAndParticipantsHeader","onClosePress","dispatch","useDispatch","peersCount","useSelector","state","_state$hmsStates$room","hmsStates","room","peerCount","hmsRoomStyles","useHMSRoomStyleSheet","theme","typography","headerTitleWrapper","backgroundColor","palette","surface_default","tab","surface_bright","headerTitle","color","on_surface_low","fontFamily","font_family","activeHeaderTitle","on_surface_high","activeChatBottomSheetTab","app","canShowParticipants","canShowChat","overlayChatLayout","useShowChatAndParticipants","visibleChatBottomSheetTabs","ChatBottomSheetTabs","filter","
|
|
1
|
+
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_reactRedux","_Icons","_hooksUtil","_types","_actions","_constants","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_ChatAndParticipantsHeader","onClosePress","dispatch","useDispatch","peersCount","useSelector","state","_state$hmsStates$room","hmsStates","room","peerCount","canDisableChat","useHMSCanDisableChat","hmsRoomStyles","useHMSRoomStyleSheet","theme","typography","headerTitleWrapper","backgroundColor","palette","surface_default","tab","surface_bright","headerTitle","color","on_surface_low","fontFamily","font_family","activeHeaderTitle","on_surface_high","activeChatBottomSheetTab","app","canShowParticipants","canShowChat","overlayChatLayout","useShowChatAndParticipants","visibleChatBottomSheetTabs","ChatBottomSheetTabs","filter","onSettingsPress","setChatMoreActionsSheetVisible","hideSettigsButton","length","createElement","View","style","styles","tabsHeader","header","Text","testID","TestIds","participants_heading","chat_heading","undefined","map","isActive","TouchableOpacity","key","participants_heading_btn","chat_heading_btn","onPress","setActiveChatBottomSheetTab","participants_heading_active","chat_heading_active","flexDirection","disabled","marginRight","opacity","SettingsIcon","participants_close_btn","CloseIcon","StyleSheet","create","alignItems","justifyContent","marginTop","flex","padding","borderRadius","fontSize","lineHeight","letterSpacing","textAlign","ChatAndParticipantsHeader","exports","memo"],"sourceRoot":"../../../../src","sources":["components/ChatAndParticipants/ChatAndParticipantsHeader.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAEA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AAMA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,QAAA,GAAAN,OAAA;AAIA,IAAAO,UAAA,GAAAP,OAAA;AAAgD,SAAAQ,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,SAAAV,wBAAAU,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAA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MAAMzB,MAAM,GAAG0B,uBAAU,CAACC,MAAM,CAAC;EAC/B1B,UAAU,EAAE;IACVkB,aAAa,EAAE,KAAK;IACpBS,UAAU,EAAE;EACd,CAAC;EACD1B,MAAM,EAAE;IACNiB,aAAa,EAAE,KAAK;IACpBS,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,eAAe;IAC/BC,SAAS,EAAE;EACb,CAAC;EACD3D,kBAAkB,EAAE;IAClB4D,IAAI,EAAE,CAAC;IACPZ,aAAa,EAAE,KAAK;IACpBa,OAAO,EAAE,CAAC;IACVC,YAAY,EAAE,CAAC;IACfZ,WAAW,EAAE;EACf,CAAC;EACD9C,GAAG,EAAE;IACHwD,IAAI,EAAE,CAAC;IACPZ,aAAa,EAAE,KAAK;IACpBS,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBG,OAAO,EAAE,CAAC;IACVC,YAAY,EAAE;EAChB,CAAC;EACDxD,WAAW,EAAE;IACXyD,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,aAAa,EAAE,IAAI;IACnBC,SAAS,EAAE;EACb;AACF,CAAC,CAAC;AAEK,MAAMC,yBAAyB,GAAAC,OAAA,CAAAD,yBAAA,gBAAGnH,KAAK,CAACqH,IAAI,CAACtF,0BAA0B,CAAC"}
|
|
@@ -7,11 +7,14 @@ exports.ChatAndParticipantsView = 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 _reactNativeSafeAreaContext = require("react-native-safe-area-context");
|
|
10
11
|
var _hooksUtil = require("../../hooks-util");
|
|
11
12
|
var _ChatAndParticipantsHeader = require("./ChatAndParticipantsHeader");
|
|
12
13
|
var _ChatFilterBottomSheetView = require("../Chat/ChatFilterBottomSheetView");
|
|
13
14
|
var _ParticipantsView = require("./ParticipantsView");
|
|
14
15
|
var _ChatView = require("./ChatView");
|
|
16
|
+
var _ChatMoreActionsSheetView = require("../Chat/ChatMoreActionsSheetView");
|
|
17
|
+
var _MessageOptionsBottomSheetView = require("../Chat/MessageOptionsBottomSheetView");
|
|
15
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); }
|
|
16
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; }
|
|
17
20
|
const _ChatAndParticipantsView = () => {
|
|
@@ -30,15 +33,16 @@ const _ChatAndParticipantsView = () => {
|
|
|
30
33
|
}));
|
|
31
34
|
const showParticipants = activeChatBottomSheetTab === 'Participants' && canShowParticipants;
|
|
32
35
|
const showChat = activeChatBottomSheetTab === 'Chat' && canShowChat && !overlayChatLayout;
|
|
33
|
-
return /*#__PURE__*/React.createElement(
|
|
34
|
-
style: styles.container
|
|
36
|
+
return /*#__PURE__*/React.createElement(_reactNativeSafeAreaContext.SafeAreaView, {
|
|
37
|
+
style: styles.container,
|
|
38
|
+
edges: ['left', 'right']
|
|
35
39
|
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
36
40
|
style: [styles.contentContainer, hmsRoomStyles.contentContainer, showParticipants ? styles.participantsContainer : null]
|
|
37
41
|
}, /*#__PURE__*/React.createElement(_ChatAndParticipantsHeader.ChatAndParticipantsHeader, {
|
|
38
42
|
onClosePress: closeBottomSheet
|
|
39
43
|
}), showParticipants ? /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
40
44
|
style: styles.participantsWrapper
|
|
41
|
-
}, /*#__PURE__*/React.createElement(_ParticipantsView.ParticipantsView, null)) : showChat ? /*#__PURE__*/React.createElement(_ChatView.ChatView, null) : null), /*#__PURE__*/React.createElement(_ChatFilterBottomSheetView.ChatFilterBottomSheetView, null));
|
|
45
|
+
}, /*#__PURE__*/React.createElement(_ParticipantsView.ParticipantsView, null)) : showChat ? /*#__PURE__*/React.createElement(_ChatView.ChatView, null) : null), canShowChat && !overlayChatLayout ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_MessageOptionsBottomSheetView.MessageOptionsBottomSheetView, null), /*#__PURE__*/React.createElement(_ChatFilterBottomSheetView.ChatFilterBottomSheetView, null), /*#__PURE__*/React.createElement(_ChatMoreActionsSheetView.ChatMoreActionsSheetView, null)) : null);
|
|
42
46
|
};
|
|
43
47
|
const styles = _reactNative.StyleSheet.create({
|
|
44
48
|
container: {
|
|
@@ -49,7 +53,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
49
53
|
flex: 1,
|
|
50
54
|
paddingHorizontal: 16,
|
|
51
55
|
paddingTop: 12,
|
|
52
|
-
paddingBottom: 32,
|
|
56
|
+
paddingBottom: _reactNative.Platform.OS === 'ios' ? 32 : 0,
|
|
53
57
|
borderTopLeftRadius: 16,
|
|
54
58
|
borderTopRightRadius: 16
|
|
55
59
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","_interopRequireWildcard","require","_reactRedux","_reactNative","_hooksUtil","_ChatAndParticipantsHeader","_ChatFilterBottomSheetView","_ParticipantsView","_ChatView","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_ChatAndParticipantsView","activeChatBottomSheetTab","useSelector","state","app","hide","canShowParticipants","canShowChat","overlayChatLayout","useShowChatAndParticipants","closeBottomSheet","hmsRoomStyles","useHMSRoomStyleSheet","theme","contentContainer","backgroundColor","palette","surface_dim","showParticipants","showChat","createElement","
|
|
1
|
+
{"version":3,"names":["React","_interopRequireWildcard","require","_reactRedux","_reactNative","_reactNativeSafeAreaContext","_hooksUtil","_ChatAndParticipantsHeader","_ChatFilterBottomSheetView","_ParticipantsView","_ChatView","_ChatMoreActionsSheetView","_MessageOptionsBottomSheetView","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_ChatAndParticipantsView","activeChatBottomSheetTab","useSelector","state","app","hide","canShowParticipants","canShowChat","overlayChatLayout","useShowChatAndParticipants","closeBottomSheet","hmsRoomStyles","useHMSRoomStyleSheet","theme","contentContainer","backgroundColor","palette","surface_dim","showParticipants","showChat","createElement","SafeAreaView","style","styles","container","edges","View","participantsContainer","ChatAndParticipantsHeader","onClosePress","participantsWrapper","ParticipantsView","ChatView","Fragment","MessageOptionsBottomSheetView","ChatFilterBottomSheetView","ChatMoreActionsSheetView","StyleSheet","create","flex","position","paddingHorizontal","paddingTop","paddingBottom","Platform","OS","borderTopLeftRadius","borderTopRightRadius","marginTop","ChatAndParticipantsView","exports","memo"],"sourceRoot":"../../../../src","sources":["components/ChatAndParticipants/ChatAndParticipantsView.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,2BAAA,GAAAH,OAAA;AAEA,IAAAI,UAAA,GAAAJ,OAAA;AAIA,IAAAK,0BAAA,GAAAL,OAAA;AACA,IAAAM,0BAAA,GAAAN,OAAA;AAEA,IAAAO,iBAAA,GAAAP,OAAA;AACA,IAAAQ,SAAA,GAAAR,OAAA;AACA,IAAAS,yBAAA,GAAAT,OAAA;AACA,IAAAU,8BAAA,GAAAV,OAAA;AAAsF,SAAAW,yBAAAC,CAAA,6BAAAC,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