@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
|
@@ -40,35 +40,34 @@ export const ProfileImagePlaceholder = ({
|
|
|
40
40
|
return '';
|
|
41
41
|
}
|
|
42
42
|
if (words.length >= 2) {
|
|
43
|
-
const firstLetter = /^[
|
|
44
|
-
const secondLetter = /^[
|
|
43
|
+
const firstLetter = /^[a-zA-Zа-яА-ЯёЁ]$/.test(words[0]?.[0] || '') ? words[0][0].toUpperCase() : '';
|
|
44
|
+
const secondLetter = /^[a-zA-Zа-яА-ЯёЁ]$/.test(words[1]?.[0] || '') ? words[1][0].toUpperCase() : '';
|
|
45
45
|
return firstLetter + secondLetter;
|
|
46
46
|
}
|
|
47
47
|
if (words.length === 1 && words[0].length >= 2) {
|
|
48
|
-
const firstLetter = /^[
|
|
49
|
-
const secondLetter = /^[
|
|
48
|
+
const firstLetter = /^[a-zA-Zа-яА-ЯёЁ]$/.test(words[0][0] || '') ? words[0][0].toUpperCase() : '';
|
|
49
|
+
const secondLetter = /^[a-zA-Zа-яА-ЯёЁ]$/.test(words[0][1] || '') ? words[0][1].toUpperCase() : '';
|
|
50
50
|
return firstLetter + secondLetter;
|
|
51
51
|
}
|
|
52
52
|
if (words.length === 1 && words[0].length === 1) {
|
|
53
|
-
return /^[
|
|
53
|
+
return /^[a-zA-Zа-яА-ЯёЁ]$/.test(words[0][0] || '') ? words[0][0].toUpperCase() : '';
|
|
54
54
|
}
|
|
55
55
|
return '';
|
|
56
56
|
};
|
|
57
|
-
const getInitials = () => !
|
|
58
|
-
const imageSource = typeof icon === 'string' && icon ? {
|
|
59
|
-
uri: icon
|
|
60
|
-
} : typeof icon === 'number' ? icon : icon && typeof icon.uri === 'string' && icon.uri ? icon : null;
|
|
57
|
+
const getInitials = () => !icon && name ? getTwoUppercaseLetters(name) : '';
|
|
61
58
|
return /*#__PURE__*/_jsxs(Wrapper, {
|
|
62
|
-
bgColor:
|
|
59
|
+
bgColor: icon ? 'transparent' : backgroundColor?.backgroundColor,
|
|
63
60
|
size: size,
|
|
64
61
|
isClickable: active || !!upload?.active,
|
|
65
62
|
children: [/*#__PURE__*/_jsxs(AvatarCircle, {
|
|
66
|
-
bgColor:
|
|
63
|
+
bgColor: icon ? 'transparent' : backgroundColor?.backgroundColor,
|
|
67
64
|
size: size,
|
|
68
65
|
isClickable: active || !!upload?.active,
|
|
69
66
|
onPress: upload?.active ? upload.onUpload : click?.isClick ? click.onPress : undefined,
|
|
70
|
-
children: [
|
|
71
|
-
source:
|
|
67
|
+
children: [icon ? /*#__PURE__*/_jsx(AvatarImage, {
|
|
68
|
+
source: typeof icon === 'string' ? {
|
|
69
|
+
uri: icon
|
|
70
|
+
} : icon,
|
|
72
71
|
size: size
|
|
73
72
|
}) : placeholderIcon ? placeholderIcon :
|
|
74
73
|
/*#__PURE__*/
|
|
@@ -86,7 +85,7 @@ export const ProfileImagePlaceholder = ({
|
|
|
86
85
|
color: "#141414"
|
|
87
86
|
})
|
|
88
87
|
})]
|
|
89
|
-
}), remove?.enabled &&
|
|
88
|
+
}), remove?.enabled && icon && role !== 'participant' && /*#__PURE__*/_jsx(RemoveButton, {
|
|
90
89
|
onPress: remove.onRemoveClick,
|
|
91
90
|
children: /*#__PURE__*/_jsx(RemoveButtonText, {
|
|
92
91
|
children: "\xD7"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useMemo","EditIcon","AvatarCircle","AvatarImage","InitialsText","Overlay","RemoveButton","RemoveButtonText","Wrapper","useChatSettingState","getAvatarColor","getAvatarTextColor","jsx","_jsx","jsxs","_jsxs","ProfileImagePlaceholder","name","icon","click","size","upload","remove","role","active","placeholderIcon","disableOverlay","config","backgroundColor","getTwoUppercaseLetters","fullName","words","trim","split","filter","word","length","firstLetter","test","toUpperCase","secondLetter","getInitials","
|
|
1
|
+
{"version":3,"names":["React","useMemo","EditIcon","AvatarCircle","AvatarImage","InitialsText","Overlay","RemoveButton","RemoveButtonText","Wrapper","useChatSettingState","getAvatarColor","getAvatarTextColor","jsx","_jsx","jsxs","_jsxs","ProfileImagePlaceholder","name","icon","click","size","upload","remove","role","active","placeholderIcon","disableOverlay","config","backgroundColor","getTwoUppercaseLetters","fullName","words","trim","split","filter","word","length","firstLetter","test","toUpperCase","secondLetter","getInitials","bgColor","isClickable","children","onPress","onUpload","isClick","undefined","source","uri","color","style","fontSize","enabled","onRemoveClick"],"sourceRoot":"../../../../src","sources":["components/MainComponents/ProfileImagePlaceholder.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AAGtC,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,SACEC,YAAY,EACZC,WAAW,EACXC,YAAY,EACZC,OAAO,EACPC,YAAY,EACZC,gBAAgB,EAChBC,OAAO,QACF,4BAA4B;AACnC,SAASC,mBAAmB,QAAQ,iCAAiC;AACrE,SACEC,cAAc,EACdC,kBAAkB,QACb,8BAA8B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAwBtC,OAAO,MAAMC,uBAEZ,GAAGA,CAAC;EACHC,IAAI;EACJC,IAAI;EACJC,KAAK;EACLC,IAAI,GAAG,EAAE;EACTC,MAAM;EACNC,MAAM;EACNC,IAAI;EACJC,MAAM,GAAG,KAAK;EACdC,eAAe;EACfC;AACF,CAAC,KAAK;EACJ,MAAM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MAAM,EAAEG,MAAO;MACxCqB,OAAO,EACLxB,MAAM,EAAEG,MAAM,GACVH,MAAM,CAACyB,QAAQ,GACf3B,KAAK,EAAE4B,OAAO,GACd5B,KAAK,CAAC0B,OAAO,GACbG,SACL;MAAAJ,QAAA,GAEA1B,IAAI,gBACHL,IAAA,CAACV,WAAW;QACV8C,MAAM,EAAE,OAAO/B,IAAI,KAAK,QAAQ,GAAG;UAAEgC,GAAG,EAAEhC;QAAK,CAAC,GAAGA,IAAY;QAC/DE,IAAI,EAAEA;MAAK,CACZ,CAAC,GACAK,eAAe,GACjBA,eAAe;MAAA;MAEf;MACA;MACAZ,IAAA,CAACT,YAAY;QACXgB,IAAI,EAAEA,IAAK;QACX+B,KAAK,EAAExC,kBAAkB,CAACiB,eAAe,EAAEA,eAAe,CAAE;QAAAgB,QAAA,EAE3DH,WAAW,CAAC;MAAC,CACF,CACf,EACApB,MAAM,EAAEG,MAAM,IAAI,CAACE,cAAc,iBAChCb,IAAA,CAACR,OAAO;QAAAuC,QAAA,eACN/B,IAAA,CAACZ,QAAQ;UAACmD,KAAK,EAAE;YAAEC,QAAQ,EAAEjC,IAAI,GAAG;UAAE,CAAE;UAAC+B,KAAK,EAAC;QAAS,CAAE;MAAC,CACpD,CACV;IAAA,CACW,CAAC,EACd7B,MAAM,EAAEgC,OAAO,IAAIpC,IAAI,IAAIK,IAAI,KAAK,aAAa,iBAChDV,IAAA,CAACP,YAAY;MAACuC,OAAO,EAAEvB,MAAM,CAACiC,aAAc;MAAAX,QAAA,eAC1C/B,IAAA,CAACN,gBAAgB;QAAAqC,QAAA,EAAC;MAAO,CAAkB;IAAC,CAChC,CACf;EAAA,CACM,CAAC;AAEd,CAAC","ignoreList":[]}
|
|
@@ -15,13 +15,6 @@ import { getIconColor } from '../../helpers/getIconColor';
|
|
|
15
15
|
import { useT } from '../../i18n/useT';
|
|
16
16
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
17
17
|
const LONG_PRESS_THRESHOLD = 200;
|
|
18
|
-
/** Page ground behind the room list, the search field and the header's
|
|
19
|
-
* rounded bottom corners. */
|
|
20
|
-
const LIST_BACKGROUND = '#E8EDF2';
|
|
21
|
-
|
|
22
|
-
/** First-paint fallback until the floating search strip reports its real
|
|
23
|
-
* height; the list's top padding follows the measurement after that. */
|
|
24
|
-
const SEARCH_BAR_ESTIMATE = 60;
|
|
25
18
|
const RoomList = ({
|
|
26
19
|
chats,
|
|
27
20
|
burgerMenu = false,
|
|
@@ -87,10 +80,6 @@ const RoomList = ({
|
|
|
87
80
|
// A listener for "blur" event (on touch outside) or "TouchableWithoutFeedback" may be used for mobile
|
|
88
81
|
}
|
|
89
82
|
}, [burgerMenu]);
|
|
90
|
-
|
|
91
|
-
// Measured, so the list's top padding always matches the floating
|
|
92
|
-
// search strip — including when a larger font or a taller field grows it.
|
|
93
|
-
const [searchBarHeight, setSearchBarHeight] = useState(SEARCH_BAR_ESTIMATE);
|
|
94
83
|
const toggleDrawer = () => {
|
|
95
84
|
if (isDrawerOpen) {
|
|
96
85
|
closeDrawer();
|
|
@@ -141,48 +130,37 @@ const RoomList = ({
|
|
|
141
130
|
style: styles.scrollContainer,
|
|
142
131
|
children: [/*#__PURE__*/_jsx(HeaderRoomList, {
|
|
143
132
|
setDrawerOpen: toggleDrawer
|
|
144
|
-
}), /*#__PURE__*/
|
|
145
|
-
style: styles.
|
|
146
|
-
children:
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
// Clears the floating field on first paint; scrolling
|
|
150
|
-
// then slides the rooms under it.
|
|
151
|
-
,
|
|
152
|
-
contentContainerStyle: {
|
|
153
|
-
paddingTop: searchBarHeight
|
|
154
|
-
},
|
|
155
|
-
renderItem: ({
|
|
156
|
-
item
|
|
157
|
-
}) => /*#__PURE__*/_jsx(Pressable
|
|
158
|
-
// Stable testID so e2e drivers can target a room
|
|
159
|
-
// row by its jid local-part (e.g. Main chat under
|
|
160
|
-
// app id `..._...759` → testID `room-...759`).
|
|
161
|
-
, {
|
|
162
|
-
testID: `room-${(item.jid || '').split('@')[0]}`,
|
|
163
|
-
accessibilityLabel: `room-${item.title || item.name}`,
|
|
164
|
-
onPress: () => performClick(item),
|
|
165
|
-
onPressIn: handlePressIn,
|
|
166
|
-
onPressOut: handlePressOut,
|
|
167
|
-
children: /*#__PURE__*/_jsx(ChatRoomItem, {
|
|
168
|
-
chat: item,
|
|
169
|
-
config: config
|
|
170
|
-
})
|
|
133
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
134
|
+
style: styles.searchBar,
|
|
135
|
+
children: /*#__PURE__*/_jsx(SearchInput, {
|
|
136
|
+
icon: /*#__PURE__*/_jsx(SearchIcon, {
|
|
137
|
+
height: 20
|
|
171
138
|
}),
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
139
|
+
value: searchTerm,
|
|
140
|
+
onChangeText: handleSearchChange,
|
|
141
|
+
placeholder: t('search.placeholder')
|
|
142
|
+
})
|
|
143
|
+
}), /*#__PURE__*/_jsx(FlatList, {
|
|
144
|
+
data: filteredChats,
|
|
145
|
+
keyExtractor: item => item.jid,
|
|
146
|
+
renderItem: ({
|
|
147
|
+
item
|
|
148
|
+
}) => /*#__PURE__*/_jsx(Pressable
|
|
149
|
+
// Stable testID so e2e drivers can target a room
|
|
150
|
+
// row by its jid local-part (e.g. Main chat under
|
|
151
|
+
// app id `..._...759` → testID `room-...759`).
|
|
152
|
+
, {
|
|
153
|
+
testID: `room-${(item.jid || '').split('@')[0]}`,
|
|
154
|
+
accessibilityLabel: `room-${item.title || item.name}`,
|
|
155
|
+
onPress: () => performClick(item),
|
|
156
|
+
onPressIn: handlePressIn,
|
|
157
|
+
onPressOut: handlePressOut,
|
|
158
|
+
children: /*#__PURE__*/_jsx(ChatRoomItem, {
|
|
159
|
+
chat: item,
|
|
160
|
+
config: config
|
|
184
161
|
})
|
|
185
|
-
})
|
|
162
|
+
}),
|
|
163
|
+
style: styles.chatList
|
|
186
164
|
}), /*#__PURE__*/_jsx(HeaderRoomListMenu, {
|
|
187
165
|
closeDrawer: closeDrawer,
|
|
188
166
|
drawerAnimation: drawerAnimation,
|
|
@@ -204,7 +182,7 @@ const styles = StyleSheet.create({
|
|
|
204
182
|
width: '100%',
|
|
205
183
|
height: '100%',
|
|
206
184
|
flex: 1,
|
|
207
|
-
backgroundColor:
|
|
185
|
+
backgroundColor: '#fff'
|
|
208
186
|
},
|
|
209
187
|
scrollContainer: {
|
|
210
188
|
flexGrow: 1
|
|
@@ -215,9 +193,6 @@ const styles = StyleSheet.create({
|
|
|
215
193
|
padding: 16,
|
|
216
194
|
justifyContent: 'space-between'
|
|
217
195
|
},
|
|
218
|
-
listArea: {
|
|
219
|
-
flex: 1
|
|
220
|
-
},
|
|
221
196
|
searchBar: {
|
|
222
197
|
// `row` matters: SearchInputWrapper is `flex: 1` plus a fixed 44px
|
|
223
198
|
// height. In a column parent that flex resolves VERTICALLY against a
|
|
@@ -225,19 +200,14 @@ const styles = StyleSheet.create({
|
|
|
225
200
|
// but its magnifier. As a row it resolves to width, which is what it
|
|
226
201
|
// meant back when the field was a list-header child.
|
|
227
202
|
flexDirection: 'row',
|
|
228
|
-
position: 'absolute',
|
|
229
|
-
top: 0,
|
|
230
|
-
left: 0,
|
|
231
|
-
right: 0,
|
|
232
203
|
paddingTop: 8,
|
|
233
|
-
paddingBottom: 8,
|
|
234
204
|
paddingHorizontal: 16,
|
|
235
|
-
backgroundColor: '
|
|
205
|
+
backgroundColor: '#FAFAFA'
|
|
236
206
|
},
|
|
237
207
|
chatList: {
|
|
238
208
|
flex: 1,
|
|
239
209
|
paddingHorizontal: 16,
|
|
240
|
-
backgroundColor:
|
|
210
|
+
backgroundColor: '#FAFAFA'
|
|
241
211
|
}
|
|
242
212
|
});
|
|
243
213
|
export default RoomList;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","useEffect","useCallback","useMemo","useRef","View","StyleSheet","FlatList","Pressable","Animated","SearchInput","BurgerMenuIcon","SearchIcon","ChatRoomItem","useChatSettingState","Button","HeaderRoomList","HeaderRoomListMenu","getIconColor","useT","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","LONG_PRESS_THRESHOLD","
|
|
1
|
+
{"version":3,"names":["React","useState","useEffect","useCallback","useMemo","useRef","View","StyleSheet","FlatList","Pressable","Animated","SearchInput","BurgerMenuIcon","SearchIcon","ChatRoomItem","useChatSettingState","Button","HeaderRoomList","HeaderRoomListMenu","getIconColor","useT","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","LONG_PRESS_THRESHOLD","RoomList","chats","burgerMenu","onRoomClick","config","t","open","setOpen","searchTerm","setSearchTerm","isLongPress","setIsLongPress","isDrawerOpen","setDrawerOpen","pressTimer","containerRef","drawerAnimation","Value","current","overlayAnimation","handlePressIn","setTimeout","handlePressOut","clearTimeout","performClick","chat","handleSearchChange","text","getLastMessage","messages","length","filteredChats","lowerCaseSearchTerm","toLowerCase","chatsMap","Map","has","result","filter","hay","title","name","includes","sort","a","b","id","Number","set","get","toggleDrawer","closeDrawer","parallel","timing","toValue","duration","useNativeDriver","start","children","style","padding","borderRadius","backgroundColor","color","unstyled","EndIcon","onPress","ref","styles","container","roomListStyles","scrollContainer","searchBar","icon","height","value","onChangeText","placeholder","data","keyExtractor","item","jid","renderItem","testID","split","accessibilityLabel","onPressIn","onPressOut","chatList","create","burgerButton","fontSize","width","flex","flexGrow","headerContainer","flexDirection","alignItems","justifyContent","paddingTop","paddingHorizontal"],"sourceRoot":"../../../../src","sources":["components/MainComponents/RoomList.tsx"],"mappings":";;AAAA;;AAEA,OAAOA,KAAK,IACVC,QAAQ,EACRC,SAAS,EACTC,WAAW,EACXC,OAAO,EACPC,MAAM,QACD,OAAO;AACd,SACEC,IAAI,EACJC,UAAU,EACVC,QAAQ,EAC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