@ethora/chat-component-rn 26.7.4 → 26.7.5
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 +0 -54
- package/README.md +8 -31
- package/lib/commonjs/assets/icons.js +2 -7
- package/lib/commonjs/assets/icons.js.map +1 -1
- package/lib/commonjs/components/Header/HeaderRoomList.js +6 -20
- package/lib/commonjs/components/Header/HeaderRoomList.js.map +1 -1
- package/lib/commonjs/components/MainComponents/ChatRoom.js +14 -36
- package/lib/commonjs/components/MainComponents/ChatRoom.js.map +1 -1
- package/lib/commonjs/components/MainComponents/MessageList.js +23 -7
- package/lib/commonjs/components/MainComponents/MessageList.js.map +1 -1
- package/lib/commonjs/components/MainComponents/ProfileImagePlaceholder.js +13 -14
- package/lib/commonjs/components/MainComponents/ProfileImagePlaceholder.js.map +1 -1
- package/lib/commonjs/components/MainComponents/RoomList.js +32 -62
- package/lib/commonjs/components/MainComponents/RoomList.js.map +1 -1
- package/lib/commonjs/components/Menu/HeaderRoomListMenu.js +98 -309
- package/lib/commonjs/components/Menu/HeaderRoomListMenu.js.map +1 -1
- package/lib/commonjs/components/Modals/AttachSheet/AttachSheet.js +110 -320
- package/lib/commonjs/components/Modals/AttachSheet/AttachSheet.js.map +1 -1
- package/lib/commonjs/components/Modals/ChatProfileModal/ChatProfileModal.js +213 -552
- package/lib/commonjs/components/Modals/ChatProfileModal/ChatProfileModal.js.map +1 -1
- package/lib/commonjs/components/Modals/FilePreviewModal/FilePreviewModal.js +2 -6
- package/lib/commonjs/components/Modals/FilePreviewModal/FilePreviewModal.js.map +1 -1
- package/lib/commonjs/components/Modals/Modal/Modal.js +0 -8
- package/lib/commonjs/components/Modals/Modal/Modal.js.map +1 -1
- package/lib/commonjs/components/Modals/NewChatModal/ModalContent.js +1 -2
- package/lib/commonjs/components/Modals/NewChatModal/ModalContent.js.map +1 -1
- package/lib/commonjs/components/Modals/NewChatModal/NewChatModal.js +104 -202
- package/lib/commonjs/components/Modals/NewChatModal/NewChatModal.js.map +1 -1
- package/lib/commonjs/components/Modals/NewChatModal/UpdNewChatModal.js +0 -8
- package/lib/commonjs/components/Modals/NewChatModal/UpdNewChatModal.js.map +1 -1
- package/lib/commonjs/components/Modals/SelectUsersModal/SelectUsersModal.js +2 -4
- package/lib/commonjs/components/Modals/SelectUsersModal/SelectUsersModal.js.map +1 -1
- package/lib/commonjs/components/Modals/UserProfileModal/EditUserModal.js +21 -7
- package/lib/commonjs/components/Modals/UserProfileModal/EditUserModal.js.map +1 -1
- package/lib/commonjs/components/Modals/UserProfileModal/UserProfileModal.js +244 -507
- package/lib/commonjs/components/Modals/UserProfileModal/UserProfileModal.js.map +1 -1
- package/lib/commonjs/components/Modals/UserSettingsModal/UserSettingsModal.js +46 -74
- package/lib/commonjs/components/Modals/UserSettingsModal/UserSettingsModal.js.map +1 -1
- package/lib/commonjs/components/Modals/styledModalComponents.js +2 -9
- package/lib/commonjs/components/Modals/styledModalComponents.js.map +1 -1
- package/lib/commonjs/components/RoomComponents/ChatRoomItem.js +7 -17
- package/lib/commonjs/components/RoomComponents/ChatRoomItem.js.map +1 -1
- package/lib/commonjs/components/styled/SendInput.js +11 -80
- package/lib/commonjs/components/styled/SendInput.js.map +1 -1
- package/lib/commonjs/components/styled/StyledComponents.js +3 -9
- package/lib/commonjs/components/styled/StyledComponents.js.map +1 -1
- package/lib/commonjs/components/styled/StyledInputComponents/StyledInputComponents.js +4 -11
- package/lib/commonjs/components/styled/StyledInputComponents/StyledInputComponents.js.map +1 -1
- package/lib/commonjs/context/xmppProvider.js +35 -6
- package/lib/commonjs/context/xmppProvider.js.map +1 -1
- package/lib/commonjs/helpers/updateMessagesTillLast.js +40 -12
- package/lib/commonjs/helpers/updateMessagesTillLast.js.map +1 -1
- package/lib/commonjs/hooks/useChatRoomFocus.js +9 -3
- package/lib/commonjs/hooks/useChatRoomFocus.js.map +1 -1
- package/lib/commonjs/hooks/useLogout.js +5 -0
- package/lib/commonjs/hooks/useLogout.js.map +1 -1
- package/lib/commonjs/hooks/useSendMessage.js +50 -23
- package/lib/commonjs/hooks/useSendMessage.js.map +1 -1
- package/lib/commonjs/i18n/strings.js +1 -121
- package/lib/commonjs/i18n/strings.js.map +1 -1
- package/lib/commonjs/main.js +0 -6
- package/lib/commonjs/main.js.map +1 -1
- package/lib/commonjs/networking/api-requests/user.api.js +0 -59
- package/lib/commonjs/networking/api-requests/user.api.js.map +1 -1
- package/lib/commonjs/networking/outboundQueue.js +18 -0
- package/lib/commonjs/networking/outboundQueue.js.map +1 -1
- package/lib/commonjs/networking/stanzaHandlers.js +10 -1
- package/lib/commonjs/networking/stanzaHandlers.js.map +1 -1
- package/lib/commonjs/networking/xmppClient.js +107 -7
- package/lib/commonjs/networking/xmppClient.js.map +1 -1
- package/lib/commonjs/roomStore/chatSettingsSlice.js +1 -3
- package/lib/commonjs/roomStore/chatSettingsSlice.js.map +1 -1
- package/lib/commonjs/roomStore/roomsSlice.js +22 -3
- package/lib/commonjs/roomStore/roomsSlice.js.map +1 -1
- package/lib/module/assets/icons.js +1 -6
- package/lib/module/assets/icons.js.map +1 -1
- package/lib/module/components/Header/HeaderRoomList.js +6 -20
- package/lib/module/components/Header/HeaderRoomList.js.map +1 -1
- package/lib/module/components/MainComponents/ChatRoom.js +14 -36
- package/lib/module/components/MainComponents/ChatRoom.js.map +1 -1
- package/lib/module/components/MainComponents/MessageList.js +24 -8
- package/lib/module/components/MainComponents/MessageList.js.map +1 -1
- package/lib/module/components/MainComponents/ProfileImagePlaceholder.js +13 -14
- package/lib/module/components/MainComponents/ProfileImagePlaceholder.js.map +1 -1
- package/lib/module/components/MainComponents/RoomList.js +32 -62
- package/lib/module/components/MainComponents/RoomList.js.map +1 -1
- package/lib/module/components/Menu/HeaderRoomListMenu.js +101 -311
- package/lib/module/components/Menu/HeaderRoomListMenu.js.map +1 -1
- package/lib/module/components/Modals/AttachSheet/AttachSheet.js +113 -311
- package/lib/module/components/Modals/AttachSheet/AttachSheet.js.map +1 -1
- package/lib/module/components/Modals/ChatProfileModal/ChatProfileModal.js +217 -555
- package/lib/module/components/Modals/ChatProfileModal/ChatProfileModal.js.map +1 -1
- package/lib/module/components/Modals/FilePreviewModal/FilePreviewModal.js +2 -6
- package/lib/module/components/Modals/FilePreviewModal/FilePreviewModal.js.map +1 -1
- package/lib/module/components/Modals/Modal/Modal.js +1 -9
- package/lib/module/components/Modals/Modal/Modal.js.map +1 -1
- package/lib/module/components/Modals/NewChatModal/ModalContent.js +1 -2
- package/lib/module/components/Modals/NewChatModal/ModalContent.js.map +1 -1
- package/lib/module/components/Modals/NewChatModal/NewChatModal.js +106 -205
- package/lib/module/components/Modals/NewChatModal/NewChatModal.js.map +1 -1
- package/lib/module/components/Modals/NewChatModal/UpdNewChatModal.js +0 -8
- package/lib/module/components/Modals/NewChatModal/UpdNewChatModal.js.map +1 -1
- package/lib/module/components/Modals/SelectUsersModal/SelectUsersModal.js +2 -4
- package/lib/module/components/Modals/SelectUsersModal/SelectUsersModal.js.map +1 -1
- package/lib/module/components/Modals/UserProfileModal/EditUserModal.js +23 -9
- package/lib/module/components/Modals/UserProfileModal/EditUserModal.js.map +1 -1
- package/lib/module/components/Modals/UserProfileModal/UserProfileModal.js +248 -509
- package/lib/module/components/Modals/UserProfileModal/UserProfileModal.js.map +1 -1
- package/lib/module/components/Modals/UserSettingsModal/UserSettingsModal.js +48 -76
- package/lib/module/components/Modals/UserSettingsModal/UserSettingsModal.js.map +1 -1
- package/lib/module/components/Modals/styledModalComponents.js +2 -9
- package/lib/module/components/Modals/styledModalComponents.js.map +1 -1
- package/lib/module/components/RoomComponents/ChatRoomItem.js +7 -17
- package/lib/module/components/RoomComponents/ChatRoomItem.js.map +1 -1
- package/lib/module/components/styled/SendInput.js +12 -81
- package/lib/module/components/styled/SendInput.js.map +1 -1
- package/lib/module/components/styled/StyledComponents.js +3 -9
- package/lib/module/components/styled/StyledComponents.js.map +1 -1
- package/lib/module/components/styled/StyledInputComponents/StyledInputComponents.js +4 -11
- package/lib/module/components/styled/StyledInputComponents/StyledInputComponents.js.map +1 -1
- package/lib/module/context/xmppProvider.js +35 -6
- package/lib/module/context/xmppProvider.js.map +1 -1
- package/lib/module/helpers/updateMessagesTillLast.js +41 -13
- package/lib/module/helpers/updateMessagesTillLast.js.map +1 -1
- package/lib/module/hooks/useChatRoomFocus.js +9 -3
- package/lib/module/hooks/useChatRoomFocus.js.map +1 -1
- package/lib/module/hooks/useLogout.js +5 -0
- package/lib/module/hooks/useLogout.js.map +1 -1
- package/lib/module/hooks/useSendMessage.js +51 -24
- package/lib/module/hooks/useSendMessage.js.map +1 -1
- package/lib/module/i18n/strings.js +1 -121
- package/lib/module/i18n/strings.js.map +1 -1
- package/lib/module/main.js +1 -1
- package/lib/module/main.js.map +1 -1
- package/lib/module/networking/api-requests/user.api.js +0 -56
- package/lib/module/networking/api-requests/user.api.js.map +1 -1
- package/lib/module/networking/outboundQueue.js +17 -0
- package/lib/module/networking/outboundQueue.js.map +1 -1
- package/lib/module/networking/stanzaHandlers.js +10 -1
- package/lib/module/networking/stanzaHandlers.js.map +1 -1
- package/lib/module/networking/xmppClient.js +107 -7
- package/lib/module/networking/xmppClient.js.map +1 -1
- package/lib/module/roomStore/chatSettingsSlice.js +1 -3
- package/lib/module/roomStore/chatSettingsSlice.js.map +1 -1
- package/lib/module/roomStore/roomsSlice.js +20 -2
- package/lib/module/roomStore/roomsSlice.js.map +1 -1
- package/lib/typescript/assets/icons.d.ts +0 -16
- 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/MessageList.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/ProfileImagePlaceholder.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/RoomList.d.ts.map +1 -1
- package/lib/typescript/components/Menu/HeaderRoomListMenu.d.ts +0 -3
- package/lib/typescript/components/Menu/HeaderRoomListMenu.d.ts.map +1 -1
- package/lib/typescript/components/Modals/AttachSheet/AttachSheet.d.ts +0 -9
- package/lib/typescript/components/Modals/AttachSheet/AttachSheet.d.ts.map +1 -1
- package/lib/typescript/components/Modals/ChatProfileModal/ChatProfileModal.d.ts +0 -10
- package/lib/typescript/components/Modals/ChatProfileModal/ChatProfileModal.d.ts.map +1 -1
- 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/ModalContent.d.ts +2 -4
- package/lib/typescript/components/Modals/NewChatModal/ModalContent.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/NewChatModal/UpdNewChatModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/SelectUsersModal/SelectUsersModal.d.ts +1 -6
- package/lib/typescript/components/Modals/SelectUsersModal/SelectUsersModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/UserProfileModal/EditUserModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/UserProfileModal/UserProfileModal.d.ts +0 -16
- package/lib/typescript/components/Modals/UserProfileModal/UserProfileModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/UserSettingsModal/UserSettingsModal.d.ts +0 -1
- 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/updateMessagesTillLast.d.ts.map +1 -1
- package/lib/typescript/hooks/useChatRoomFocus.d.ts.map +1 -1
- package/lib/typescript/hooks/useLogout.d.ts.map +1 -1
- package/lib/typescript/hooks/useSendMessage.d.ts.map +1 -1
- package/lib/typescript/i18n/strings.d.ts.map +1 -1
- package/lib/typescript/main.d.ts +1 -1
- package/lib/typescript/main.d.ts.map +1 -1
- package/lib/typescript/networking/api-requests/user.api.d.ts +0 -27
- package/lib/typescript/networking/api-requests/user.api.d.ts.map +1 -1
- package/lib/typescript/networking/outboundQueue.d.ts +16 -0
- package/lib/typescript/networking/outboundQueue.d.ts.map +1 -1
- package/lib/typescript/networking/stanzaHandlers.d.ts.map +1 -1
- package/lib/typescript/networking/xmppClient.d.ts +33 -1
- 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 +18 -1
- package/lib/typescript/roomStore/roomsSlice.d.ts.map +1 -1
- package/lib/typescript/types/models/room.model.d.ts +15 -0
- package/lib/typescript/types/models/room.model.d.ts.map +1 -1
- package/lib/typescript/types/types.d.ts +20 -20
- package/lib/typescript/types/types.d.ts.map +1 -1
- package/package.json +1 -6
- package/src/assets/icons.tsx +9 -48
- package/src/components/Header/HeaderRoomList.tsx +5 -20
- package/src/components/MainComponents/ChatRoom.tsx +20 -38
- package/src/components/MainComponents/MessageList.tsx +24 -8
- package/src/components/MainComponents/ProfileImagePlaceholder.tsx +14 -21
- package/src/components/MainComponents/RoomList.tsx +34 -65
- package/src/components/Menu/HeaderRoomListMenu.tsx +71 -310
- package/src/components/Modals/AttachSheet/AttachSheet.tsx +97 -331
- package/src/components/Modals/ChatProfileModal/ChatProfileModal.tsx +279 -598
- package/src/components/Modals/FilePreviewModal/FilePreviewModal.tsx +2 -4
- package/src/components/Modals/Modal/Modal.tsx +0 -7
- package/src/components/Modals/NewChatModal/ModalContent.tsx +3 -6
- package/src/components/Modals/NewChatModal/NewChatModal.tsx +117 -219
- package/src/components/Modals/NewChatModal/UpdNewChatModal.tsx +1 -12
- package/src/components/Modals/SelectUsersModal/SelectUsersModal.tsx +4 -14
- package/src/components/Modals/UserProfileModal/EditUserModal.tsx +25 -9
- package/src/components/Modals/UserProfileModal/UserProfileModal.tsx +307 -617
- package/src/components/Modals/UserSettingsModal/UserSettingsModal.tsx +58 -75
- package/src/components/Modals/styledModalComponents.tsx +2 -9
- package/src/components/RoomComponents/ChatRoomItem.tsx +7 -14
- package/src/components/styled/SendInput.tsx +12 -83
- package/src/components/styled/StyledComponents.ts +3 -9
- package/src/components/styled/StyledInputComponents/StyledInputComponents.tsx +4 -11
- package/src/context/xmppProvider.tsx +41 -8
- package/src/helpers/updateMessagesTillLast.tsx +42 -17
- package/src/hooks/useChatRoomFocus.ts +11 -3
- package/src/hooks/useLogout.tsx +7 -0
- package/src/hooks/useSendMessage.tsx +60 -24
- package/src/i18n/strings.ts +1 -121
- package/src/main.ts +1 -1
- package/src/networking/api-requests/user.api.ts +0 -71
- package/src/networking/outboundQueue.ts +29 -0
- package/src/networking/stanzaHandlers.ts +9 -1
- package/src/networking/xmppClient.ts +118 -7
- package/src/roomStore/chatSettingsSlice.ts +1 -3
- package/src/roomStore/roomsSlice.ts +20 -2
- package/src/types/models/room.model.ts +15 -0
- package/src/types/types.ts +20 -22
- package/lib/commonjs/components/Modals/ChatProfileModal/ReportChatModal.js +0 -226
- package/lib/commonjs/components/Modals/ChatProfileModal/ReportChatModal.js.map +0 -1
- package/lib/commonjs/components/Modals/ProfileHeader/ProfileHeader.js +0 -556
- package/lib/commonjs/components/Modals/ProfileHeader/ProfileHeader.js.map +0 -1
- package/lib/commonjs/components/Modals/ProfileHeader/ProfileMenu.js +0 -210
- package/lib/commonjs/components/Modals/ProfileHeader/ProfileMenu.js.map +0 -1
- package/lib/commonjs/helpers/getChatBackground.js +0 -23
- package/lib/commonjs/helpers/getChatBackground.js.map +0 -1
- package/lib/commonjs/helpers/mediaLibraryRuntime.js +0 -31
- package/lib/commonjs/helpers/mediaLibraryRuntime.js.map +0 -1
- package/lib/commonjs/helpers/pickImageAsset.js +0 -68
- package/lib/commonjs/helpers/pickImageAsset.js.map +0 -1
- package/lib/commonjs/helpers/sheetGestures.js +0 -32
- package/lib/commonjs/helpers/sheetGestures.js.map +0 -1
- package/lib/module/components/Modals/ChatProfileModal/ReportChatModal.js +0 -223
- package/lib/module/components/Modals/ChatProfileModal/ReportChatModal.js.map +0 -1
- package/lib/module/components/Modals/ProfileHeader/ProfileHeader.js +0 -548
- package/lib/module/components/Modals/ProfileHeader/ProfileHeader.js.map +0 -1
- package/lib/module/components/Modals/ProfileHeader/ProfileMenu.js +0 -205
- package/lib/module/components/Modals/ProfileHeader/ProfileMenu.js.map +0 -1
- package/lib/module/helpers/getChatBackground.js +0 -18
- package/lib/module/helpers/getChatBackground.js.map +0 -1
- package/lib/module/helpers/mediaLibraryRuntime.js +0 -25
- package/lib/module/helpers/mediaLibraryRuntime.js.map +0 -1
- package/lib/module/helpers/pickImageAsset.js +0 -63
- package/lib/module/helpers/pickImageAsset.js.map +0 -1
- package/lib/module/helpers/sheetGestures.js +0 -26
- package/lib/module/helpers/sheetGestures.js.map +0 -1
- package/lib/typescript/components/Modals/ChatProfileModal/ReportChatModal.d.ts +0 -9
- package/lib/typescript/components/Modals/ChatProfileModal/ReportChatModal.d.ts.map +0 -1
- package/lib/typescript/components/Modals/ProfileHeader/ProfileHeader.d.ts +0 -75
- package/lib/typescript/components/Modals/ProfileHeader/ProfileHeader.d.ts.map +0 -1
- package/lib/typescript/components/Modals/ProfileHeader/ProfileMenu.d.ts +0 -25
- package/lib/typescript/components/Modals/ProfileHeader/ProfileMenu.d.ts.map +0 -1
- package/lib/typescript/helpers/getChatBackground.d.ts +0 -15
- package/lib/typescript/helpers/getChatBackground.d.ts.map +0 -1
- package/lib/typescript/helpers/mediaLibraryRuntime.d.ts +0 -3
- package/lib/typescript/helpers/mediaLibraryRuntime.d.ts.map +0 -1
- package/lib/typescript/helpers/pickImageAsset.d.ts +0 -27
- package/lib/typescript/helpers/pickImageAsset.d.ts.map +0 -1
- package/lib/typescript/helpers/sheetGestures.d.ts +0 -20
- package/lib/typescript/helpers/sheetGestures.d.ts.map +0 -1
- package/src/components/Modals/ChatProfileModal/ReportChatModal.tsx +0 -244
- package/src/components/Modals/ProfileHeader/ProfileHeader.tsx +0 -615
- package/src/components/Modals/ProfileHeader/ProfileMenu.tsx +0 -217
- package/src/helpers/getChatBackground.ts +0 -18
- package/src/helpers/mediaLibraryRuntime.ts +0 -25
- package/src/helpers/pickImageAsset.ts +0 -68
- package/src/helpers/sheetGestures.ts +0 -25
|
@@ -1,65 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import React, {
|
|
4
|
-
import {
|
|
5
|
-
import { AddNewIcon,
|
|
3
|
+
import React, { useMemo } from 'react';
|
|
4
|
+
import { Animated, Text, TouchableOpacity, TouchableWithoutFeedback, StyleSheet, Dimensions, View } from 'react-native';
|
|
5
|
+
import { AddNewIcon, ProfileIcon, SettingIcon } from '../../assets/icons';
|
|
6
6
|
import { useDispatch } from 'react-redux';
|
|
7
|
-
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
8
7
|
import { setActiveModal } from '../../roomStore/chatSettingsSlice';
|
|
9
8
|
import { MODAL_TYPES } from '../../helpers/constants/MODAL_TYPES';
|
|
10
|
-
import {
|
|
11
|
-
import { useLogout } from '../../hooks/useLogout';
|
|
12
|
-
import { shouldClaimVerticalDrag, shouldDismissOnDrag } from '../../helpers/sheetGestures';
|
|
13
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
-
const DEFAULT_LOGOUT_LABEL = 'Sign out';
|
|
15
|
-
const confirmLogout = (confirm, label) => {
|
|
16
|
-
if (confirm === false) {
|
|
17
|
-
return Promise.resolve(true);
|
|
18
|
-
}
|
|
19
|
-
const copy = typeof confirm === 'object' && confirm ? confirm : {};
|
|
20
|
-
return new Promise(resolve => {
|
|
21
|
-
Alert.alert(copy.title ?? label, copy.message ?? 'Are you sure you want to sign out?', [{
|
|
22
|
-
text: copy.cancelText ?? 'Cancel',
|
|
23
|
-
style: 'cancel',
|
|
24
|
-
onPress: () => resolve(false)
|
|
25
|
-
}, {
|
|
26
|
-
text: copy.confirmText ?? label,
|
|
27
|
-
style: 'destructive',
|
|
28
|
-
onPress: () => resolve(true)
|
|
29
|
-
}], {
|
|
30
|
-
cancelable: true,
|
|
31
|
-
onDismiss: () => resolve(false)
|
|
32
|
-
});
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
export const runLogoutFlow = async (logoutConfig, performLogout) => {
|
|
36
|
-
const label = logoutConfig.label ?? DEFAULT_LOGOUT_LABEL;
|
|
37
|
-
const confirmed = await confirmLogout(logoutConfig.confirm ?? true, label);
|
|
38
|
-
if (!confirmed) {
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
if (logoutConfig.onBeforeLogout) {
|
|
42
|
-
try {
|
|
43
|
-
const proceed = await logoutConfig.onBeforeLogout();
|
|
44
|
-
if (proceed === false) {
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
} catch (e) {
|
|
48
|
-
console.warn('HeaderRoomListMenu: onBeforeLogout threw, logout cancelled', e);
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
await performLogout(); // never rejects (see useLogout)
|
|
53
|
-
if (logoutConfig.onAfterLogout) {
|
|
54
|
-
try {
|
|
55
|
-
await logoutConfig.onAfterLogout();
|
|
56
|
-
} catch (e) {
|
|
57
|
-
console.warn('HeaderRoomListMenu: onAfterLogout threw', e);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
};
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
61
10
|
const {
|
|
62
|
-
|
|
11
|
+
width
|
|
63
12
|
} = Dimensions.get('window');
|
|
64
13
|
export const HeaderRoomListMenu = ({
|
|
65
14
|
isDrawerOpen,
|
|
@@ -68,229 +17,84 @@ export const HeaderRoomListMenu = ({
|
|
|
68
17
|
closeDrawer
|
|
69
18
|
}) => {
|
|
70
19
|
const dispatch = useDispatch();
|
|
71
|
-
const {
|
|
72
|
-
config
|
|
73
|
-
} = useChatSettingState();
|
|
74
|
-
const performLogout = useLogout();
|
|
75
|
-
const logoutConfig = config?.logout?.enabled ? config.logout : undefined;
|
|
76
|
-
const primaryColor = config?.colors?.primary ?? '#0052CD';
|
|
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({
|
|
20
|
+
const drawerTranslateX = drawerAnimation.interpolate({
|
|
109
21
|
inputRange: [0, 1],
|
|
110
|
-
outputRange: [
|
|
22
|
+
outputRange: [width, 0]
|
|
111
23
|
});
|
|
112
|
-
const
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
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();
|
|
24
|
+
const menuOptions = useMemo(() => [{
|
|
25
|
+
label: 'New Chat',
|
|
26
|
+
icon: /*#__PURE__*/_jsx(AddNewIcon, {
|
|
27
|
+
color: "#8C8C8C"
|
|
28
|
+
}),
|
|
29
|
+
onClick: () => {
|
|
30
|
+
dispatch(setActiveModal(MODAL_TYPES.NEW_CHAT));
|
|
31
|
+
console.log('New chat clicked');
|
|
146
32
|
},
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
toValue: 0,
|
|
150
|
-
tension: 90,
|
|
151
|
-
friction: 14,
|
|
152
|
-
useNativeDriver: true
|
|
153
|
-
}).start();
|
|
33
|
+
styles: {
|
|
34
|
+
color: '#141414'
|
|
154
35
|
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
icon: /*#__PURE__*/_jsx(AddNewIcon, {
|
|
173
|
-
color: primaryColor
|
|
174
|
-
}),
|
|
175
|
-
onClick: () => {
|
|
176
|
-
dispatch(setActiveModal(MODAL_TYPES.NEW_CHAT));
|
|
177
|
-
console.log('New chat clicked');
|
|
178
|
-
},
|
|
179
|
-
styles: {
|
|
180
|
-
color: '#141414'
|
|
181
|
-
}
|
|
182
|
-
}, {
|
|
183
|
-
label: 'Profile',
|
|
184
|
-
icon: /*#__PURE__*/_jsx(ProfileIcon, {
|
|
185
|
-
color: primaryColor
|
|
186
|
-
}),
|
|
187
|
-
onClick: () => {
|
|
188
|
-
dispatch(setActiveModal(MODAL_TYPES.PROFILE));
|
|
189
|
-
console.log('Profile clicked');
|
|
190
|
-
}
|
|
191
|
-
}, {
|
|
192
|
-
label: 'Settings',
|
|
193
|
-
icon: /*#__PURE__*/_jsx(SettingIcon, {
|
|
194
|
-
color: primaryColor
|
|
195
|
-
}),
|
|
196
|
-
onClick: () => {
|
|
197
|
-
dispatch(setActiveModal(MODAL_TYPES.SETTINGS));
|
|
198
|
-
console.log('Settings clicked');
|
|
199
|
-
}
|
|
200
|
-
}];
|
|
201
|
-
if (logoutConfig) {
|
|
202
|
-
options.push({
|
|
203
|
-
label: logoutConfig.label ?? DEFAULT_LOGOUT_LABEL,
|
|
204
|
-
icon: /*#__PURE__*/_jsx(LogoutIcon, {
|
|
205
|
-
color: primaryColor
|
|
206
|
-
}),
|
|
207
|
-
styles: {
|
|
208
|
-
color: primaryColor
|
|
209
|
-
},
|
|
210
|
-
closesDrawer: true,
|
|
211
|
-
onClick: () => {
|
|
212
|
-
closeDrawer();
|
|
213
|
-
runLogoutFlow(logoutConfig, performLogout).catch(() => {});
|
|
214
|
-
}
|
|
215
|
-
});
|
|
36
|
+
}, {
|
|
37
|
+
label: 'Profile',
|
|
38
|
+
icon: /*#__PURE__*/_jsx(ProfileIcon, {
|
|
39
|
+
color: "#8C8C8C"
|
|
40
|
+
}),
|
|
41
|
+
onClick: () => {
|
|
42
|
+
dispatch(setActiveModal(MODAL_TYPES.PROFILE));
|
|
43
|
+
console.log('Profile clicked');
|
|
44
|
+
}
|
|
45
|
+
}, {
|
|
46
|
+
label: 'Settings',
|
|
47
|
+
icon: /*#__PURE__*/_jsx(SettingIcon, {
|
|
48
|
+
color: "#8C8C8C"
|
|
49
|
+
}),
|
|
50
|
+
onClick: () => {
|
|
51
|
+
dispatch(setActiveModal(MODAL_TYPES.SETTINGS));
|
|
52
|
+
console.log('Settings clicked');
|
|
216
53
|
}
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
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))
|
|
54
|
+
}
|
|
55
|
+
// {
|
|
56
|
+
// label: "Logout",
|
|
57
|
+
// onClick: handleLogout,
|
|
58
|
+
// },
|
|
59
|
+
], []);
|
|
60
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
61
|
+
children: [/*#__PURE__*/_jsx(Animated.View, {
|
|
62
|
+
style: [styles.drawer, {
|
|
63
|
+
transform: [{
|
|
64
|
+
translateX: drawerTranslateX
|
|
65
|
+
}]
|
|
66
|
+
}],
|
|
67
|
+
children: menuOptions.map((option, index) => /*#__PURE__*/_jsxs(View, {
|
|
68
|
+
style: styles.menuItemWrapper,
|
|
69
|
+
children: [/*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
70
|
+
style: styles.menuItem,
|
|
71
|
+
onPress: () => {
|
|
72
|
+
option.onClick();
|
|
73
|
+
closeDrawer();
|
|
74
|
+
},
|
|
75
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
76
|
+
style: {
|
|
77
|
+
width: 22,
|
|
78
|
+
alignItems: 'center'
|
|
79
|
+
},
|
|
80
|
+
children: option.icon
|
|
81
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
82
|
+
style: [styles.label, option?.styles],
|
|
83
|
+
children: option.label
|
|
84
|
+
})]
|
|
85
|
+
}), index < menuOptions.length - 1 && /*#__PURE__*/_jsx(View, {
|
|
86
|
+
style: styles.divider
|
|
290
87
|
})]
|
|
291
|
-
})
|
|
292
|
-
})
|
|
293
|
-
|
|
88
|
+
}, index))
|
|
89
|
+
}), isDrawerOpen && /*#__PURE__*/_jsx(TouchableWithoutFeedback, {
|
|
90
|
+
onPress: closeDrawer,
|
|
91
|
+
children: /*#__PURE__*/_jsx(Animated.View, {
|
|
92
|
+
style: [styles.overlay, {
|
|
93
|
+
opacity: overlayAnimation
|
|
94
|
+
}]
|
|
95
|
+
})
|
|
96
|
+
})]
|
|
97
|
+
});
|
|
294
98
|
};
|
|
295
99
|
const styles = StyleSheet.create({
|
|
296
100
|
menuItemWrapper: {
|
|
@@ -300,57 +104,43 @@ const styles = StyleSheet.create({
|
|
|
300
104
|
menuItem: {
|
|
301
105
|
flexDirection: 'row',
|
|
302
106
|
alignItems: 'center',
|
|
303
|
-
|
|
304
|
-
paddingHorizontal: 16
|
|
305
|
-
},
|
|
306
|
-
iconSlot: {
|
|
307
|
-
width: 26,
|
|
308
|
-
alignItems: 'center'
|
|
107
|
+
padding: 16
|
|
309
108
|
},
|
|
310
109
|
label: {
|
|
311
110
|
fontSize: 16,
|
|
312
|
-
|
|
313
|
-
color: '#141414',
|
|
314
|
-
marginLeft: 12
|
|
111
|
+
marginLeft: 10
|
|
315
112
|
},
|
|
316
113
|
divider: {
|
|
317
|
-
height:
|
|
318
|
-
|
|
319
|
-
backgroundColor: '#
|
|
114
|
+
height: 1,
|
|
115
|
+
width: '100%',
|
|
116
|
+
backgroundColor: '#0052cd0d'
|
|
320
117
|
},
|
|
321
|
-
|
|
118
|
+
drawer: {
|
|
322
119
|
position: 'absolute',
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
backgroundColor: '#FFFFFF',
|
|
330
|
-
borderRadius: 20,
|
|
120
|
+
top: 0,
|
|
121
|
+
bottom: 0,
|
|
122
|
+
right: 0,
|
|
123
|
+
width: width * 0.7,
|
|
124
|
+
backgroundColor: '#fff',
|
|
125
|
+
padding: 20,
|
|
331
126
|
shadowColor: '#000',
|
|
332
|
-
shadowOpacity: 0.
|
|
127
|
+
shadowOpacity: 0.3,
|
|
333
128
|
shadowOffset: {
|
|
334
|
-
width:
|
|
335
|
-
height:
|
|
129
|
+
width: -2,
|
|
130
|
+
height: 0
|
|
336
131
|
},
|
|
337
|
-
shadowRadius:
|
|
338
|
-
elevation:
|
|
132
|
+
shadowRadius: 5,
|
|
133
|
+
elevation: 5,
|
|
339
134
|
zIndex: 999
|
|
340
135
|
},
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
},
|
|
346
|
-
grabber: {
|
|
347
|
-
width: 40,
|
|
348
|
-
height: 4,
|
|
349
|
-
borderRadius: 2,
|
|
350
|
-
backgroundColor: '#C9CBD1'
|
|
136
|
+
drawerTitle: {
|
|
137
|
+
fontSize: 20,
|
|
138
|
+
fontWeight: 'bold',
|
|
139
|
+
marginBottom: 20
|
|
351
140
|
},
|
|
352
|
-
|
|
353
|
-
|
|
141
|
+
drawerItem: {
|
|
142
|
+
fontSize: 18,
|
|
143
|
+
marginBottom: 10
|
|
354
144
|
},
|
|
355
145
|
overlay: {
|
|
356
146
|
position: 'absolute',
|
|
@@ -1 +1 @@
|
|
|
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,qCAAqC;AACjE,SAASC,mBAAmB,QAAQ,iCAAiC;AACrE,SAASC,SAAS,QAAQ,uBAAuB;AACjD,SACEC,uBAAuB,EACvBC,mBAAmB,QACd,6BAA6B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAKrC,MAAMC,oBAAoB,GAAG,UAAU;AAEvC,MAAMC,aAAa,GAAGA,CACpBC,OAAgC,EAChCC,KAAa,KACQ;EACrB,I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AAM,EAAE;EACV,CAAC;EACDjC,QAAQ,EAAE;IACRc,UAAU,EAAE,QAAQ;IACpBY,UAAU,EAAE,CAAC;IACb/B,aAAa,EAAE;EACjB,CAAC;EACDM,OAAO,EAAE;IACPgB,KAAK,EAAE,EAAE;IACT5G,MAAM,EAAE,CAAC;IACTsH,YAAY,EAAE,CAAC;IACfL,eAAe,EAAE;EACnB,CAAC;EACDpB,IAAI,EAAE;IACJgC,QAAQ,EAAE;EACZ,CAAC;EACD/C,OAAO,EAAE;IACPoC,QAAQ,EAAE,UAAU;IACpBY,GAAG,EAAE,CAAC;IACNX,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACR7B,MAAM,EAAE,CAAC;IACTwC,IAAI,EAAE,CAAC;IACPnB,KAAK,EAAE,MAAM;IACb5G,MAAM,EAAE,MAAM;IACdiH,eAAe,EAAE;EACnB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","useMemo","Animated","Text","TouchableOpacity","TouchableWithoutFeedback","StyleSheet","Dimensions","View","AddNewIcon","ProfileIcon","SettingIcon","useDispatch","setActiveModal","MODAL_TYPES","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","width","get","HeaderRoomListMenu","isDrawerOpen","drawerAnimation","overlayAnimation","closeDrawer","dispatch","drawerTranslateX","interpolate","inputRange","outputRange","menuOptions","label","icon","color","onClick","NEW_CHAT","console","log","styles","PROFILE","SETTINGS","children","style","drawer","transform","translateX","map","option","index","menuItemWrapper","menuItem","onPress","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,QAAQ,EACRC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