@ethora/chat-component-rn 26.7.2 → 26.7.4
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/CHANGELOG.md +45 -0
- package/README.md +9 -8
- package/lib/commonjs/assets/icons.js +7 -2
- package/lib/commonjs/assets/icons.js.map +1 -1
- package/lib/commonjs/components/Header/HeaderRoomList.js +20 -6
- package/lib/commonjs/components/Header/HeaderRoomList.js.map +1 -1
- package/lib/commonjs/components/MainComponents/ChatRoom.js +86 -7
- package/lib/commonjs/components/MainComponents/ChatRoom.js.map +1 -1
- package/lib/commonjs/components/MainComponents/ChatWrapper.js +18 -0
- package/lib/commonjs/components/MainComponents/ChatWrapper.js.map +1 -1
- package/lib/commonjs/components/MainComponents/MessageList.js +11 -4
- package/lib/commonjs/components/MainComponents/MessageList.js.map +1 -1
- package/lib/commonjs/components/MainComponents/ProfileImagePlaceholder.js +5 -5
- package/lib/commonjs/components/MainComponents/ProfileImagePlaceholder.js.map +1 -1
- package/lib/commonjs/components/MainComponents/RoomList.js +62 -32
- package/lib/commonjs/components/MainComponents/RoomList.js.map +1 -1
- package/lib/commonjs/components/Menu/HeaderRoomListMenu.js +208 -70
- package/lib/commonjs/components/Menu/HeaderRoomListMenu.js.map +1 -1
- package/lib/commonjs/components/Modals/AttachSheet/AttachSheet.js +307 -99
- package/lib/commonjs/components/Modals/AttachSheet/AttachSheet.js.map +1 -1
- package/lib/commonjs/components/Modals/ChatProfileModal/ChatProfileModal.js +544 -200
- package/lib/commonjs/components/Modals/ChatProfileModal/ChatProfileModal.js.map +1 -1
- package/lib/commonjs/components/Modals/ChatProfileModal/ReportChatModal.js +226 -0
- package/lib/commonjs/components/Modals/ChatProfileModal/ReportChatModal.js.map +1 -0
- package/lib/commonjs/components/Modals/FilePreviewModal/FilePreviewModal.js +6 -2
- package/lib/commonjs/components/Modals/FilePreviewModal/FilePreviewModal.js.map +1 -1
- package/lib/commonjs/components/Modals/Modal/Modal.js +8 -0
- package/lib/commonjs/components/Modals/Modal/Modal.js.map +1 -1
- package/lib/commonjs/components/Modals/NewChatModal/NewChatModal.js +202 -104
- package/lib/commonjs/components/Modals/NewChatModal/NewChatModal.js.map +1 -1
- package/lib/commonjs/components/Modals/ProfileHeader/ProfileHeader.js +556 -0
- package/lib/commonjs/components/Modals/ProfileHeader/ProfileHeader.js.map +1 -0
- package/lib/commonjs/components/Modals/ProfileHeader/ProfileMenu.js +210 -0
- package/lib/commonjs/components/Modals/ProfileHeader/ProfileMenu.js.map +1 -0
- package/lib/commonjs/components/Modals/SelectUsersModal/SelectUsersModal.js +4 -2
- package/lib/commonjs/components/Modals/SelectUsersModal/SelectUsersModal.js.map +1 -1
- package/lib/commonjs/components/Modals/UserProfileModal/UserProfileModal.js +507 -244
- package/lib/commonjs/components/Modals/UserProfileModal/UserProfileModal.js.map +1 -1
- package/lib/commonjs/components/Modals/UserSettingsModal/UserSettingsModal.js +74 -46
- package/lib/commonjs/components/Modals/UserSettingsModal/UserSettingsModal.js.map +1 -1
- package/lib/commonjs/components/Modals/styledModalComponents.js +9 -2
- package/lib/commonjs/components/Modals/styledModalComponents.js.map +1 -1
- package/lib/commonjs/components/RoomComponents/ChatRoomItem.js +17 -7
- package/lib/commonjs/components/RoomComponents/ChatRoomItem.js.map +1 -1
- package/lib/commonjs/components/styled/SendInput.js +80 -1
- package/lib/commonjs/components/styled/SendInput.js.map +1 -1
- package/lib/commonjs/components/styled/StyledComponents.js +9 -3
- package/lib/commonjs/components/styled/StyledComponents.js.map +1 -1
- package/lib/commonjs/components/styled/StyledInputComponents/StyledInputComponents.js +11 -4
- package/lib/commonjs/components/styled/StyledInputComponents/StyledInputComponents.js.map +1 -1
- package/lib/commonjs/context/xmppProvider.js +12 -0
- package/lib/commonjs/context/xmppProvider.js.map +1 -1
- package/lib/commonjs/helpers/getChatBackground.js +23 -0
- package/lib/commonjs/helpers/getChatBackground.js.map +1 -0
- package/lib/commonjs/helpers/historyPreloadScheduler.js +65 -2
- package/lib/commonjs/helpers/historyPreloadScheduler.js.map +1 -1
- package/lib/commonjs/helpers/mediaLibraryRuntime.js +31 -0
- package/lib/commonjs/helpers/mediaLibraryRuntime.js.map +1 -0
- package/lib/commonjs/helpers/shallowEqual.js +36 -0
- package/lib/commonjs/helpers/shallowEqual.js.map +1 -0
- package/lib/commonjs/helpers/sheetGestures.js +32 -0
- package/lib/commonjs/helpers/sheetGestures.js.map +1 -0
- package/lib/commonjs/hooks/useChatWrapperInit.js +15 -0
- package/lib/commonjs/hooks/useChatWrapperInit.js.map +1 -1
- package/lib/commonjs/hooks/useComposing.js +27 -0
- package/lib/commonjs/hooks/useComposing.js.map +1 -1
- package/lib/commonjs/hooks/useSendMessage.js +27 -1
- package/lib/commonjs/hooks/useSendMessage.js.map +1 -1
- package/lib/commonjs/hooks/useUnreadMessagesCounter.js +6 -1
- package/lib/commonjs/hooks/useUnreadMessagesCounter.js.map +1 -1
- package/lib/commonjs/i18n/strings.js +121 -1
- package/lib/commonjs/i18n/strings.js.map +1 -1
- package/lib/commonjs/networking/api-requests/user.api.js +59 -0
- package/lib/commonjs/networking/api-requests/user.api.js.map +1 -1
- package/lib/commonjs/networking/xmpp/flushLastViewedToPrivateStore.js +6 -2
- package/lib/commonjs/networking/xmpp/flushLastViewedToPrivateStore.js.map +1 -1
- package/lib/commonjs/networking/xmppClient.js.map +1 -1
- package/lib/commonjs/roomStore/chatSettingsSlice.js +3 -1
- package/lib/commonjs/roomStore/chatSettingsSlice.js.map +1 -1
- package/lib/commonjs/roomStore/roomsSlice.js +2 -2
- package/lib/commonjs/roomStore/roomsSlice.js.map +1 -1
- package/lib/module/assets/icons.js +6 -1
- package/lib/module/assets/icons.js.map +1 -1
- package/lib/module/components/Header/HeaderRoomList.js +20 -6
- package/lib/module/components/Header/HeaderRoomList.js.map +1 -1
- package/lib/module/components/MainComponents/ChatRoom.js +87 -8
- package/lib/module/components/MainComponents/ChatRoom.js.map +1 -1
- package/lib/module/components/MainComponents/ChatWrapper.js +19 -1
- package/lib/module/components/MainComponents/ChatWrapper.js.map +1 -1
- package/lib/module/components/MainComponents/MessageList.js +11 -4
- package/lib/module/components/MainComponents/MessageList.js.map +1 -1
- package/lib/module/components/MainComponents/ProfileImagePlaceholder.js +5 -5
- package/lib/module/components/MainComponents/ProfileImagePlaceholder.js.map +1 -1
- package/lib/module/components/MainComponents/RoomList.js +62 -32
- package/lib/module/components/MainComponents/RoomList.js.map +1 -1
- package/lib/module/components/Menu/HeaderRoomListMenu.js +211 -73
- package/lib/module/components/Menu/HeaderRoomListMenu.js.map +1 -1
- package/lib/module/components/Modals/AttachSheet/AttachSheet.js +298 -102
- package/lib/module/components/Modals/AttachSheet/AttachSheet.js.map +1 -1
- package/lib/module/components/Modals/ChatProfileModal/ChatProfileModal.js +547 -204
- package/lib/module/components/Modals/ChatProfileModal/ChatProfileModal.js.map +1 -1
- package/lib/module/components/Modals/ChatProfileModal/ReportChatModal.js +223 -0
- package/lib/module/components/Modals/ChatProfileModal/ReportChatModal.js.map +1 -0
- package/lib/module/components/Modals/FilePreviewModal/FilePreviewModal.js +6 -2
- package/lib/module/components/Modals/FilePreviewModal/FilePreviewModal.js.map +1 -1
- package/lib/module/components/Modals/Modal/Modal.js +9 -1
- package/lib/module/components/Modals/Modal/Modal.js.map +1 -1
- package/lib/module/components/Modals/NewChatModal/NewChatModal.js +205 -106
- package/lib/module/components/Modals/NewChatModal/NewChatModal.js.map +1 -1
- package/lib/module/components/Modals/ProfileHeader/ProfileHeader.js +548 -0
- package/lib/module/components/Modals/ProfileHeader/ProfileHeader.js.map +1 -0
- package/lib/module/components/Modals/ProfileHeader/ProfileMenu.js +205 -0
- package/lib/module/components/Modals/ProfileHeader/ProfileMenu.js.map +1 -0
- package/lib/module/components/Modals/SelectUsersModal/SelectUsersModal.js +4 -2
- package/lib/module/components/Modals/SelectUsersModal/SelectUsersModal.js.map +1 -1
- package/lib/module/components/Modals/UserProfileModal/UserProfileModal.js +509 -248
- package/lib/module/components/Modals/UserProfileModal/UserProfileModal.js.map +1 -1
- package/lib/module/components/Modals/UserSettingsModal/UserSettingsModal.js +76 -48
- package/lib/module/components/Modals/UserSettingsModal/UserSettingsModal.js.map +1 -1
- package/lib/module/components/Modals/styledModalComponents.js +9 -2
- package/lib/module/components/Modals/styledModalComponents.js.map +1 -1
- package/lib/module/components/RoomComponents/ChatRoomItem.js +17 -7
- package/lib/module/components/RoomComponents/ChatRoomItem.js.map +1 -1
- package/lib/module/components/styled/SendInput.js +80 -1
- package/lib/module/components/styled/SendInput.js.map +1 -1
- package/lib/module/components/styled/StyledComponents.js +9 -3
- package/lib/module/components/styled/StyledComponents.js.map +1 -1
- package/lib/module/components/styled/StyledInputComponents/StyledInputComponents.js +11 -4
- package/lib/module/components/styled/StyledInputComponents/StyledInputComponents.js.map +1 -1
- package/lib/module/context/xmppProvider.js +12 -0
- package/lib/module/context/xmppProvider.js.map +1 -1
- package/lib/module/helpers/getChatBackground.js +18 -0
- package/lib/module/helpers/getChatBackground.js.map +1 -0
- package/lib/module/helpers/historyPreloadScheduler.js +66 -3
- package/lib/module/helpers/historyPreloadScheduler.js.map +1 -1
- package/lib/module/helpers/mediaLibraryRuntime.js +25 -0
- package/lib/module/helpers/mediaLibraryRuntime.js.map +1 -0
- package/lib/module/helpers/shallowEqual.js +31 -0
- package/lib/module/helpers/shallowEqual.js.map +1 -0
- package/lib/module/helpers/sheetGestures.js +26 -0
- package/lib/module/helpers/sheetGestures.js.map +1 -0
- package/lib/module/hooks/useChatWrapperInit.js +15 -0
- package/lib/module/hooks/useChatWrapperInit.js.map +1 -1
- package/lib/module/hooks/useComposing.js +28 -1
- package/lib/module/hooks/useComposing.js.map +1 -1
- package/lib/module/hooks/useSendMessage.js +28 -2
- package/lib/module/hooks/useSendMessage.js.map +1 -1
- package/lib/module/hooks/useUnreadMessagesCounter.js +6 -1
- package/lib/module/hooks/useUnreadMessagesCounter.js.map +1 -1
- package/lib/module/i18n/strings.js +121 -1
- package/lib/module/i18n/strings.js.map +1 -1
- package/lib/module/networking/api-requests/user.api.js +56 -0
- package/lib/module/networking/api-requests/user.api.js.map +1 -1
- package/lib/module/networking/xmpp/flushLastViewedToPrivateStore.js +6 -2
- package/lib/module/networking/xmpp/flushLastViewedToPrivateStore.js.map +1 -1
- package/lib/module/networking/xmppClient.js.map +1 -1
- package/lib/module/roomStore/chatSettingsSlice.js +3 -1
- package/lib/module/roomStore/chatSettingsSlice.js.map +1 -1
- package/lib/module/roomStore/roomsSlice.js +1 -1
- package/lib/module/roomStore/roomsSlice.js.map +1 -1
- package/lib/typescript/assets/icons.d.ts +12 -0
- package/lib/typescript/assets/icons.d.ts.map +1 -1
- package/lib/typescript/components/Header/HeaderRoomList.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/ChatRoom.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/ChatWrapper.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/MessageList.d.ts +10 -1
- package/lib/typescript/components/MainComponents/MessageList.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/RoomList.d.ts.map +1 -1
- package/lib/typescript/components/Menu/HeaderRoomListMenu.d.ts.map +1 -1
- package/lib/typescript/components/Modals/AttachSheet/AttachSheet.d.ts +9 -0
- package/lib/typescript/components/Modals/AttachSheet/AttachSheet.d.ts.map +1 -1
- package/lib/typescript/components/Modals/ChatProfileModal/ChatProfileModal.d.ts +10 -0
- package/lib/typescript/components/Modals/ChatProfileModal/ChatProfileModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/ChatProfileModal/ReportChatModal.d.ts +9 -0
- package/lib/typescript/components/Modals/ChatProfileModal/ReportChatModal.d.ts.map +1 -0
- package/lib/typescript/components/Modals/FilePreviewModal/FilePreviewModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/Modal/Modal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/NewChatModal/NewChatModal.d.ts +1 -1
- package/lib/typescript/components/Modals/NewChatModal/NewChatModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/ProfileHeader/ProfileHeader.d.ts +75 -0
- package/lib/typescript/components/Modals/ProfileHeader/ProfileHeader.d.ts.map +1 -0
- package/lib/typescript/components/Modals/ProfileHeader/ProfileMenu.d.ts +25 -0
- package/lib/typescript/components/Modals/ProfileHeader/ProfileMenu.d.ts.map +1 -0
- package/lib/typescript/components/Modals/SelectUsersModal/SelectUsersModal.d.ts +6 -1
- package/lib/typescript/components/Modals/SelectUsersModal/SelectUsersModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/UserProfileModal/UserProfileModal.d.ts +16 -0
- package/lib/typescript/components/Modals/UserProfileModal/UserProfileModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/UserSettingsModal/UserSettingsModal.d.ts +1 -0
- package/lib/typescript/components/Modals/UserSettingsModal/UserSettingsModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/styledModalComponents.d.ts.map +1 -1
- package/lib/typescript/components/RoomComponents/ChatRoomItem.d.ts.map +1 -1
- package/lib/typescript/components/styled/SendInput.d.ts.map +1 -1
- package/lib/typescript/components/styled/StyledComponents.d.ts.map +1 -1
- package/lib/typescript/components/styled/StyledInputComponents/StyledInputComponents.d.ts.map +1 -1
- package/lib/typescript/context/xmppProvider.d.ts.map +1 -1
- package/lib/typescript/helpers/getChatBackground.d.ts +15 -0
- package/lib/typescript/helpers/getChatBackground.d.ts.map +1 -0
- package/lib/typescript/helpers/historyPreloadScheduler.d.ts.map +1 -1
- package/lib/typescript/helpers/mediaLibraryRuntime.d.ts +3 -0
- package/lib/typescript/helpers/mediaLibraryRuntime.d.ts.map +1 -0
- package/lib/typescript/helpers/shallowEqual.d.ts +11 -0
- package/lib/typescript/helpers/shallowEqual.d.ts.map +1 -0
- package/lib/typescript/helpers/sheetGestures.d.ts +20 -0
- package/lib/typescript/helpers/sheetGestures.d.ts.map +1 -0
- package/lib/typescript/hooks/useChatWrapperInit.d.ts.map +1 -1
- package/lib/typescript/hooks/useComposing.d.ts.map +1 -1
- package/lib/typescript/hooks/useSendMessage.d.ts.map +1 -1
- package/lib/typescript/hooks/useUnreadMessagesCounter.d.ts +1 -0
- package/lib/typescript/hooks/useUnreadMessagesCounter.d.ts.map +1 -1
- package/lib/typescript/i18n/strings.d.ts.map +1 -1
- package/lib/typescript/networking/api-requests/user.api.d.ts +27 -0
- package/lib/typescript/networking/api-requests/user.api.d.ts.map +1 -1
- package/lib/typescript/networking/xmpp/flushLastViewedToPrivateStore.d.ts +1 -0
- package/lib/typescript/networking/xmpp/flushLastViewedToPrivateStore.d.ts.map +1 -1
- package/lib/typescript/networking/xmppClient.d.ts +1 -0
- package/lib/typescript/networking/xmppClient.d.ts.map +1 -1
- package/lib/typescript/roomStore/chatSettingsSlice.d.ts.map +1 -1
- package/lib/typescript/roomStore/roomsSlice.d.ts +1 -0
- package/lib/typescript/roomStore/roomsSlice.d.ts.map +1 -1
- package/lib/typescript/types/types.d.ts +9 -5
- package/lib/typescript/types/types.d.ts.map +1 -1
- package/package.json +6 -1
- package/src/assets/icons.tsx +29 -9
- package/src/components/Header/HeaderRoomList.tsx +20 -5
- package/src/components/MainComponents/ChatRoom.tsx +92 -8
- package/src/components/MainComponents/ChatWrapper.tsx +19 -1
- package/src/components/MainComponents/MessageList.tsx +21 -3
- package/src/components/MainComponents/ProfileImagePlaceholder.tsx +5 -5
- package/src/components/MainComponents/RoomList.tsx +65 -34
- package/src/components/Menu/HeaderRoomListMenu.tsx +209 -64
- package/src/components/Modals/AttachSheet/AttachSheet.tsx +318 -86
- package/src/components/Modals/ChatProfileModal/ChatProfileModal.tsx +599 -278
- package/src/components/Modals/ChatProfileModal/ReportChatModal.tsx +244 -0
- package/src/components/Modals/FilePreviewModal/FilePreviewModal.tsx +4 -2
- package/src/components/Modals/Modal/Modal.tsx +7 -0
- package/src/components/Modals/NewChatModal/NewChatModal.tsx +219 -117
- package/src/components/Modals/ProfileHeader/ProfileHeader.tsx +615 -0
- package/src/components/Modals/ProfileHeader/ProfileMenu.tsx +217 -0
- package/src/components/Modals/SelectUsersModal/SelectUsersModal.tsx +14 -4
- package/src/components/Modals/UserProfileModal/UserProfileModal.tsx +617 -307
- package/src/components/Modals/UserSettingsModal/UserSettingsModal.tsx +75 -58
- package/src/components/Modals/styledModalComponents.tsx +9 -2
- package/src/components/RoomComponents/ChatRoomItem.tsx +14 -7
- package/src/components/styled/SendInput.tsx +83 -2
- package/src/components/styled/StyledComponents.ts +9 -3
- package/src/components/styled/StyledInputComponents/StyledInputComponents.tsx +11 -4
- package/src/context/xmppProvider.tsx +14 -0
- package/src/helpers/getChatBackground.ts +18 -0
- package/src/helpers/historyPreloadScheduler.ts +80 -3
- package/src/helpers/mediaLibraryRuntime.ts +25 -0
- package/src/helpers/shallowEqual.ts +33 -0
- package/src/helpers/sheetGestures.ts +25 -0
- package/src/hooks/useChatWrapperInit.ts +15 -0
- package/src/hooks/useComposing.tsx +37 -1
- package/src/hooks/useSendMessage.tsx +32 -2
- package/src/hooks/useUnreadMessagesCounter.ts +11 -0
- package/src/i18n/strings.ts +121 -1
- package/src/networking/api-requests/user.api.ts +71 -0
- package/src/networking/xmpp/flushLastViewedToPrivateStore.ts +17 -3
- package/src/networking/xmppClient.ts +5 -1
- package/src/roomStore/chatSettingsSlice.ts +3 -1
- package/src/roomStore/roomsSlice.ts +1 -1
- package/src/types/types.ts +16 -5
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import React, { useMemo } from 'react';
|
|
4
|
-
import { Alert, Animated, Text, TouchableOpacity, TouchableWithoutFeedback, StyleSheet, Dimensions, View } from 'react-native';
|
|
3
|
+
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
|
4
|
+
import { Alert, Animated, Text, TouchableOpacity, TouchableWithoutFeedback, StyleSheet, Dimensions, Modal, PanResponder, View } from 'react-native';
|
|
5
5
|
import { AddNewIcon, LogoutIcon, ProfileIcon, SettingIcon } from '../../assets/icons';
|
|
6
6
|
import { useDispatch } from 'react-redux';
|
|
7
|
+
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
7
8
|
import { setActiveModal } from '../../roomStore/chatSettingsSlice';
|
|
8
9
|
import { MODAL_TYPES } from '../../helpers/constants/MODAL_TYPES';
|
|
9
10
|
import { useChatSettingState } from '../../hooks/useChatSettingState';
|
|
10
11
|
import { useLogout } from '../../hooks/useLogout';
|
|
11
|
-
import {
|
|
12
|
+
import { shouldClaimVerticalDrag, shouldDismissOnDrag } from '../../helpers/sheetGestures';
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
14
|
const DEFAULT_LOGOUT_LABEL = 'Sign out';
|
|
13
15
|
const confirmLogout = (confirm, label) => {
|
|
14
16
|
if (confirm === false) {
|
|
@@ -57,7 +59,7 @@ export const runLogoutFlow = async (logoutConfig, performLogout) => {
|
|
|
57
59
|
}
|
|
58
60
|
};
|
|
59
61
|
const {
|
|
60
|
-
|
|
62
|
+
height: windowHeight
|
|
61
63
|
} = Dimensions.get('window');
|
|
62
64
|
export const HeaderRoomListMenu = ({
|
|
63
65
|
isDrawerOpen,
|
|
@@ -72,15 +74,103 @@ export const HeaderRoomListMenu = ({
|
|
|
72
74
|
const performLogout = useLogout();
|
|
73
75
|
const logoutConfig = config?.logout?.enabled ? config.logout : undefined;
|
|
74
76
|
const primaryColor = config?.colors?.primary ?? '#0052CD';
|
|
75
|
-
const
|
|
77
|
+
const insets = useSafeAreaInsets();
|
|
78
|
+
// Measured, so the sheet is exactly as tall as its rows and starts
|
|
79
|
+
// fully off-screen no matter how many options the host enables.
|
|
80
|
+
const [sheetHeight, setSheetHeight] = useState(windowHeight * 0.4);
|
|
81
|
+
// Finger offset, layered on top of the open/close animation the parent
|
|
82
|
+
// drives. Reset once the sheet is unmounted, so a swipe-dismissed sheet
|
|
83
|
+
// never snaps back into view on its way out.
|
|
84
|
+
const dragY = useRef(new Animated.Value(0)).current;
|
|
85
|
+
const sheetHeightRef = useRef(sheetHeight);
|
|
86
|
+
sheetHeightRef.current = sheetHeight;
|
|
87
|
+
|
|
88
|
+
// closeDrawer is a fresh function each render; the responder is built
|
|
89
|
+
// once, so it reads the current one through a ref rather than the one it
|
|
90
|
+
// closed over on mount.
|
|
91
|
+
const closeDrawerRef = useRef(closeDrawer);
|
|
92
|
+
closeDrawerRef.current = closeDrawer;
|
|
93
|
+
useEffect(() => {
|
|
94
|
+
if (!isDrawerOpen) {
|
|
95
|
+
dragY.setValue(0);
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
// Hand `dragY` to the native driver up front. The open/close value is
|
|
99
|
+
// already native (the parent animates it that way), and a transform
|
|
100
|
+
// that mixes a native node with a JS-only one drops the JS updates on
|
|
101
|
+
// the floor — which is exactly a drag that moves nothing.
|
|
102
|
+
Animated.timing(dragY, {
|
|
103
|
+
toValue: 0,
|
|
104
|
+
duration: 0,
|
|
105
|
+
useNativeDriver: true
|
|
106
|
+
}).start();
|
|
107
|
+
}, [isDrawerOpen, dragY]);
|
|
108
|
+
const openTranslateY = drawerAnimation.interpolate({
|
|
76
109
|
inputRange: [0, 1],
|
|
77
|
-
outputRange: [
|
|
110
|
+
outputRange: [sheetHeight, 0]
|
|
78
111
|
});
|
|
112
|
+
const dismissByDrag = () => {
|
|
113
|
+
Animated.timing(dragY, {
|
|
114
|
+
toValue: sheetHeightRef.current,
|
|
115
|
+
duration: 180,
|
|
116
|
+
useNativeDriver: true
|
|
117
|
+
}).start();
|
|
118
|
+
closeDrawerRef.current();
|
|
119
|
+
};
|
|
120
|
+
const makeDragResponder = claimOnStart => PanResponder.create({
|
|
121
|
+
// The grab area claims on touch-DOWN: nothing to negotiate against,
|
|
122
|
+
// so a pull on the handle always drags.
|
|
123
|
+
onStartShouldSetPanResponder: () => claimOnStart,
|
|
124
|
+
// CAPTURE matters on the body: a drag that starts on a row makes
|
|
125
|
+
// that row's Touchable the responder on touch-down, and a plain
|
|
126
|
+
// `onMoveShouldSetPanResponder` is never consulted afterwards.
|
|
127
|
+
// Capturing on the first clearly-vertical movement takes the gesture
|
|
128
|
+
// back, while a tap (dy ≈ 0) still reaches the row.
|
|
129
|
+
onMoveShouldSetPanResponderCapture: (_evt, g) => claimOnStart || shouldClaimVerticalDrag(g.dy, g.dx),
|
|
130
|
+
onMoveShouldSetPanResponder: (_evt, g) => claimOnStart || shouldClaimVerticalDrag(g.dy, g.dx),
|
|
131
|
+
onPanResponderTerminationRequest: () => false,
|
|
132
|
+
onPanResponderMove: (_evt, g) => {
|
|
133
|
+
dragY.setValue(Math.max(0, g.dy));
|
|
134
|
+
},
|
|
135
|
+
onPanResponderRelease: (_evt, g) => {
|
|
136
|
+
if (shouldDismissOnDrag(g.dy, g.vy)) {
|
|
137
|
+
dismissByDrag();
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
Animated.spring(dragY, {
|
|
141
|
+
toValue: 0,
|
|
142
|
+
tension: 90,
|
|
143
|
+
friction: 14,
|
|
144
|
+
useNativeDriver: true
|
|
145
|
+
}).start();
|
|
146
|
+
},
|
|
147
|
+
onPanResponderTerminate: () => {
|
|
148
|
+
Animated.spring(dragY, {
|
|
149
|
+
toValue: 0,
|
|
150
|
+
tension: 90,
|
|
151
|
+
friction: 14,
|
|
152
|
+
useNativeDriver: true
|
|
153
|
+
}).start();
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
// Built once — `useRef(expr)` would re-run PanResponder.create every
|
|
158
|
+
// render and throw the result away.
|
|
159
|
+
const bodyPanRef = useRef(null);
|
|
160
|
+
const handlePanRef = useRef(null);
|
|
161
|
+
if (!bodyPanRef.current) {
|
|
162
|
+
bodyPanRef.current = makeDragResponder(false);
|
|
163
|
+
}
|
|
164
|
+
if (!handlePanRef.current) {
|
|
165
|
+
handlePanRef.current = makeDragResponder(true);
|
|
166
|
+
}
|
|
167
|
+
const pan = bodyPanRef.current;
|
|
168
|
+
const handlePan = handlePanRef.current;
|
|
79
169
|
const menuOptions = useMemo(() => {
|
|
80
170
|
const options = [{
|
|
81
171
|
label: 'New Chat',
|
|
82
172
|
icon: /*#__PURE__*/_jsx(AddNewIcon, {
|
|
83
|
-
color:
|
|
173
|
+
color: primaryColor
|
|
84
174
|
}),
|
|
85
175
|
onClick: () => {
|
|
86
176
|
dispatch(setActiveModal(MODAL_TYPES.NEW_CHAT));
|
|
@@ -92,7 +182,7 @@ export const HeaderRoomListMenu = ({
|
|
|
92
182
|
}, {
|
|
93
183
|
label: 'Profile',
|
|
94
184
|
icon: /*#__PURE__*/_jsx(ProfileIcon, {
|
|
95
|
-
color:
|
|
185
|
+
color: primaryColor
|
|
96
186
|
}),
|
|
97
187
|
onClick: () => {
|
|
98
188
|
dispatch(setActiveModal(MODAL_TYPES.PROFILE));
|
|
@@ -101,7 +191,7 @@ export const HeaderRoomListMenu = ({
|
|
|
101
191
|
}, {
|
|
102
192
|
label: 'Settings',
|
|
103
193
|
icon: /*#__PURE__*/_jsx(SettingIcon, {
|
|
104
|
-
color:
|
|
194
|
+
color: primaryColor
|
|
105
195
|
}),
|
|
106
196
|
onClick: () => {
|
|
107
197
|
dispatch(setActiveModal(MODAL_TYPES.SETTINGS));
|
|
@@ -126,47 +216,81 @@ export const HeaderRoomListMenu = ({
|
|
|
126
216
|
}
|
|
127
217
|
return options;
|
|
128
218
|
}, [dispatch, logoutConfig, performLogout, primaryColor, closeDrawer]);
|
|
129
|
-
return
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
219
|
+
return (
|
|
220
|
+
/*#__PURE__*/
|
|
221
|
+
// Presented through a real <Modal>: as an in-tree overlay the sheet was
|
|
222
|
+
// bounded by the room list's own container, so it stopped short of the
|
|
223
|
+
// screen's bottom edge (that pale strip under it) and the dim never
|
|
224
|
+
// reached the host's chrome.
|
|
225
|
+
_jsxs(Modal, {
|
|
226
|
+
transparent: true,
|
|
227
|
+
visible: isDrawerOpen,
|
|
228
|
+
animationType: "none",
|
|
229
|
+
statusBarTranslucent: true,
|
|
230
|
+
onRequestClose: closeDrawer,
|
|
231
|
+
children: [/*#__PURE__*/_jsx(TouchableWithoutFeedback, {
|
|
232
|
+
onPress: closeDrawer,
|
|
233
|
+
children: /*#__PURE__*/_jsx(Animated.View, {
|
|
234
|
+
style: [styles.overlay, {
|
|
235
|
+
opacity: overlayAnimation
|
|
236
|
+
}]
|
|
237
|
+
})
|
|
238
|
+
}), /*#__PURE__*/_jsxs(Animated.View, {
|
|
239
|
+
testID: "header-menu-sheet",
|
|
240
|
+
onLayout: e => {
|
|
241
|
+
const measured = e.nativeEvent.layout.height;
|
|
242
|
+
if (measured > 0) {
|
|
243
|
+
setSheetHeight(measured);
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
style: [styles.sheet, {
|
|
247
|
+
paddingBottom: insets.bottom + 20,
|
|
248
|
+
// Two entries rather than Animated.add: the parent's value is
|
|
249
|
+
// driven natively, and stacking the transforms keeps each node
|
|
250
|
+
// on its own driver instead of mixing them in one expression.
|
|
251
|
+
transform: [{
|
|
252
|
+
translateY: openTranslateY
|
|
253
|
+
}, {
|
|
254
|
+
translateY: dragY
|
|
255
|
+
}]
|
|
256
|
+
}],
|
|
257
|
+
...pan.panHandlers,
|
|
258
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
259
|
+
testID: "header-menu-grabber",
|
|
260
|
+
style: styles.grabArea,
|
|
261
|
+
...handlePan.panHandlers,
|
|
262
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
263
|
+
style: styles.grabber
|
|
264
|
+
})
|
|
265
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
266
|
+
style: styles.card,
|
|
267
|
+
children: menuOptions.map((option, index) => /*#__PURE__*/_jsxs(View, {
|
|
268
|
+
style: styles.menuItemWrapper,
|
|
269
|
+
children: [/*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
270
|
+
style: styles.menuItem,
|
|
271
|
+
testID: `header-menu-${option.label}`,
|
|
272
|
+
activeOpacity: 0.6,
|
|
273
|
+
onPress: () => {
|
|
274
|
+
option.onClick();
|
|
275
|
+
if (!option.closesDrawer) {
|
|
276
|
+
closeDrawer();
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
280
|
+
style: styles.iconSlot,
|
|
281
|
+
children: option.icon
|
|
282
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
283
|
+
style: [styles.label, option?.styles],
|
|
284
|
+
children: option.label
|
|
285
|
+
})]
|
|
286
|
+
}), index < menuOptions.length - 1 && /*#__PURE__*/_jsx(View, {
|
|
287
|
+
style: styles.divider
|
|
288
|
+
})]
|
|
289
|
+
}, index))
|
|
159
290
|
})]
|
|
160
|
-
}
|
|
161
|
-
})
|
|
162
|
-
|
|
163
|
-
children: /*#__PURE__*/_jsx(Animated.View, {
|
|
164
|
-
style: [styles.overlay, {
|
|
165
|
-
opacity: overlayAnimation
|
|
166
|
-
}]
|
|
167
|
-
})
|
|
168
|
-
})]
|
|
169
|
-
});
|
|
291
|
+
})]
|
|
292
|
+
})
|
|
293
|
+
);
|
|
170
294
|
};
|
|
171
295
|
const styles = StyleSheet.create({
|
|
172
296
|
menuItemWrapper: {
|
|
@@ -176,43 +300,57 @@ const styles = StyleSheet.create({
|
|
|
176
300
|
menuItem: {
|
|
177
301
|
flexDirection: 'row',
|
|
178
302
|
alignItems: 'center',
|
|
179
|
-
|
|
303
|
+
paddingVertical: 18,
|
|
304
|
+
paddingHorizontal: 16
|
|
305
|
+
},
|
|
306
|
+
iconSlot: {
|
|
307
|
+
width: 26,
|
|
308
|
+
alignItems: 'center'
|
|
180
309
|
},
|
|
181
310
|
label: {
|
|
182
311
|
fontSize: 16,
|
|
183
|
-
|
|
312
|
+
fontWeight: '500',
|
|
313
|
+
color: '#141414',
|
|
314
|
+
marginLeft: 12
|
|
184
315
|
},
|
|
185
316
|
divider: {
|
|
186
|
-
height:
|
|
187
|
-
|
|
188
|
-
backgroundColor: '#
|
|
317
|
+
height: StyleSheet.hairlineWidth,
|
|
318
|
+
marginLeft: 54,
|
|
319
|
+
backgroundColor: '#E4E4E9'
|
|
189
320
|
},
|
|
190
|
-
|
|
321
|
+
sheet: {
|
|
191
322
|
position: 'absolute',
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
323
|
+
// Inset rather than flush: the dimmed screen stays visible as a thin
|
|
324
|
+
// line around the sheet.
|
|
325
|
+
left: 3,
|
|
326
|
+
right: 3,
|
|
327
|
+
bottom: 3,
|
|
328
|
+
paddingTop: 8,
|
|
329
|
+
backgroundColor: '#FFFFFF',
|
|
330
|
+
borderRadius: 20,
|
|
198
331
|
shadowColor: '#000',
|
|
199
|
-
shadowOpacity: 0.
|
|
332
|
+
shadowOpacity: 0.12,
|
|
200
333
|
shadowOffset: {
|
|
201
|
-
width:
|
|
202
|
-
height:
|
|
334
|
+
width: 0,
|
|
335
|
+
height: -3
|
|
203
336
|
},
|
|
204
|
-
shadowRadius:
|
|
205
|
-
elevation:
|
|
337
|
+
shadowRadius: 12,
|
|
338
|
+
elevation: 12,
|
|
206
339
|
zIndex: 999
|
|
207
340
|
},
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
341
|
+
grabArea: {
|
|
342
|
+
alignItems: 'center',
|
|
343
|
+
paddingTop: 6,
|
|
344
|
+
paddingBottom: 12
|
|
345
|
+
},
|
|
346
|
+
grabber: {
|
|
347
|
+
width: 40,
|
|
348
|
+
height: 4,
|
|
349
|
+
borderRadius: 2,
|
|
350
|
+
backgroundColor: '#C9CBD1'
|
|
212
351
|
},
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
marginBottom: 10
|
|
352
|
+
card: {
|
|
353
|
+
overflow: 'hidden'
|
|
216
354
|
},
|
|
217
355
|
overlay: {
|
|
218
356
|
position: 'absolute',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useMemo","Alert","Animated","Text","TouchableOpacity","TouchableWithoutFeedback","StyleSheet","Dimensions","View","AddNewIcon","LogoutIcon","ProfileIcon","SettingIcon","useDispatch","setActiveModal","MODAL_TYPES","useChatSettingState","useLogout","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","DEFAULT_LOGOUT_LABEL","confirmLogout","confirm","label","Promise","resolve","copy","alert","title","message","text","cancelText","style","onPress","confirmText","cancelable","onDismiss","runLogoutFlow","logoutConfig","performLogout","confirmed","onBeforeLogout","proceed","e","console","warn","onAfterLogout","width","get","HeaderRoomListMenu","isDrawerOpen","drawerAnimation","overlayAnimation","closeDrawer","dispatch","config","logout","enabled","undefined","primaryColor","colors","primary","drawerTranslateX","interpolate","inputRange","outputRange","menuOptions","options","icon","color","onClick","NEW_CHAT","log","styles","PROFILE","SETTINGS","push","closesDrawer","catch","children","drawer","transform","translateX","map","option","index","menuItemWrapper","menuItem","testID","alignItems","length","divider","overlay","opacity","create","display","flexDirection","padding","fontSize","marginLeft","height","backgroundColor","position","top","bottom","right","shadowColor","shadowOpacity","shadowOffset","shadowRadius","elevation","zIndex","drawerTitle","fontWeight","marginBottom","drawerItem","left","flex"],"sourceRoot":"../../../../src","sources":["components/Menu/HeaderRoomListMenu.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAQC,OAAO,QAAQ,OAAO;AAC1C,SACEC,KAAK,EACLC,QAAQ,EACRC,IAAI,EACJC,gBAAgB,EAChBC,wBAAwB,EACxBC,UAAU,EACVC,UAAU,EACVC,IAAI,QACC,cAAc;AACrB,SAC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CAAC;IACR1D,KAAK,EAAEA,KAAK,GAAG,GAAG;IAClBsD,eAAe,EAAE,MAAM;IACvBJ,OAAO,EAAE,EAAE;IACXS,WAAW,EAAE,MAAM;IACnBC,aAAa,EAAE,GAAG;IAClBC,YAAY,EAAE;MAAE7D,KAAK,EAAE,CAAC,CAAC;MAAEqD,MAAM,EAAE;IAAE,CAAC;IACtCS,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE,CAAC;IACZC,MAAM,EAAE;EACV,CAAC;EACDC,WAAW,EAAE;IACXd,QAAQ,EAAE,EAAE;IACZe,UAAU,EAAE,MAAM;IAClBC,YAAY,EAAE;EAChB,CAAC;EACDC,UAAU,EAAE;IACVjB,QAAQ,EAAE,EAAE;IACZgB,YAAY,EAAE;EAChB,CAAC;EACDtB,OAAO,EAAE;IACPU,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNa,IAAI,EAAE,CAAC;IACPX,KAAK,EAAE,CAAC;IACRD,MAAM,EAAE,CAAC;IACTa,IAAI,EAAE,CAAC;IACPtE,KAAK,EAAE,MAAM;IACbqD,MAAM,EAAE,MAAM;IACdC,eAAe,EAAE;EACnB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","useEffect","useMemo","useRef","useState","Alert","Animated","Text","TouchableOpacity","TouchableWithoutFeedback","StyleSheet","Dimensions","Modal","PanResponder","View","AddNewIcon","LogoutIcon","ProfileIcon","SettingIcon","useDispatch","useSafeAreaInsets","setActiveModal","MODAL_TYPES","useChatSettingState","useLogout","shouldClaimVerticalDrag","shouldDismissOnDrag","jsx","_jsx","jsxs","_jsxs","DEFAULT_LOGOUT_LABEL","confirmLogout","confirm","label","Promise","resolve","copy","alert","title","message","text","cancelText","style","onPress","confirmText","cancelable","onDismiss","runLogoutFlow","logoutConfig","performLogout","confirmed","onBeforeLogout","proceed","e","console","warn","onAfterLogout","height","windowHeight","get","HeaderRoomListMenu","isDrawerOpen","drawerAnimation","overlayAnimation","closeDrawer","dispatch","config","logout","enabled","undefined","primaryColor","colors","primary","insets","sheetHeight","setSheetHeight","dragY","Value","current","sheetHeightRef","closeDrawerRef","setValue","timing","toValue","duration","useNativeDriver","start","openTranslateY","interpolate","inputRange","outputRange","dismissByDrag","makeDragResponder","claimOnStart","create","onStartShouldSetPanResponder","onMoveShouldSetPanResponderCapture","_evt","g","dy","dx","onMoveShouldSetPanResponder","onPanResponderTerminationRequest","onPanResponderMove","Math","max","onPanResponderRelease","vy","spring","tension","friction","onPanResponderTerminate","bodyPanRef","handlePanRef","pan","handlePan","menuOptions","options","icon","color","onClick","NEW_CHAT","log","styles","PROFILE","SETTINGS","push","closesDrawer","catch","transparent","visible","animationType","statusBarTranslucent","onRequestClose","children","overlay","opacity","testID","onLayout","measured","nativeEvent","layout","sheet","paddingBottom","bottom","transform","translateY","panHandlers","grabArea","grabber","card","map","option","index","menuItemWrapper","menuItem","activeOpacity","iconSlot","length","divider","display","flexDirection","alignItems","paddingVertical","paddingHorizontal","width","fontSize","fontWeight","marginLeft","hairlineWidth","backgroundColor","position","left","right","paddingTop","borderRadius","shadowColor","shadowOpacity","shadowOffset","shadowRadius","elevation","zIndex","overflow","top","flex"],"sourceRoot":"../../../../src","sources":["components/Menu/HeaderRoomListMenu.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAQC,SAAS,EAAEC,OAAO,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AACvE,SACEC,KAAK,EACLC,QAAQ,EACRC,IAAI,EACJC,gBAAgB,EAChBC,wBAAwB,EACxBC,UAAU,EACVC,UAAU,EACVC,KAAK,EACLC,YAAY,EACZC,IAAI,QACC,cAAc;AACrB,SACEC,UAAU,EACVC,UAAU,EACVC,WAAW,EACXC,WAAW,QACN,oBAAoB;AAC3B,SAASC,WAAW,QAAQ,aAAa;AACzC,SAASC,iBAAiB,QAAQ,gCAAgC;AAClE,SAASC,cAAc,QAAQ,mCAAmC;AAClE,SAASC,WAAW,QAAQ,q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