@ethora/chat-component-rn 26.7.5 → 26.7.7
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 +62 -0
- package/README.md +31 -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 +26 -7
- package/lib/commonjs/components/Header/HeaderRoomList.js.map +1 -1
- package/lib/commonjs/components/MainComponents/ChatHeader.js +5 -2
- package/lib/commonjs/components/MainComponents/ChatHeader.js.map +1 -1
- package/lib/commonjs/components/MainComponents/ChatRoom.js +36 -14
- package/lib/commonjs/components/MainComponents/ChatRoom.js.map +1 -1
- package/lib/commonjs/components/MainComponents/ChatWrapper.js +2 -0
- package/lib/commonjs/components/MainComponents/ChatWrapper.js.map +1 -1
- package/lib/commonjs/components/MainComponents/MessageList.js +7 -23
- package/lib/commonjs/components/MainComponents/MessageList.js.map +1 -1
- package/lib/commonjs/components/MainComponents/ProfileImagePlaceholder.js +14 -13
- package/lib/commonjs/components/MainComponents/ProfileImagePlaceholder.js.map +1 -1
- package/lib/commonjs/components/MainComponents/RoomList.js +208 -35
- package/lib/commonjs/components/MainComponents/RoomList.js.map +1 -1
- package/lib/commonjs/components/Menu/HeaderRoomListMenu.js +317 -98
- package/lib/commonjs/components/Menu/HeaderRoomListMenu.js.map +1 -1
- package/lib/commonjs/components/Modals/AttachSheet/AttachSheet.js +320 -110
- package/lib/commonjs/components/Modals/AttachSheet/AttachSheet.js.map +1 -1
- package/lib/commonjs/components/Modals/ChatProfileModal/ChatProfileModal.js +552 -213
- 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/ModalContent.js +2 -1
- package/lib/commonjs/components/Modals/NewChatModal/ModalContent.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/NewChatModal/UpdNewChatModal.js +8 -0
- package/lib/commonjs/components/Modals/NewChatModal/UpdNewChatModal.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/EditUserModal.js +7 -21
- package/lib/commonjs/components/Modals/UserProfileModal/EditUserModal.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 -11
- 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 +32 -39
- 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/mediaLibraryRuntime.js +31 -0
- package/lib/commonjs/helpers/mediaLibraryRuntime.js.map +1 -0
- package/lib/commonjs/helpers/pickImageAsset.js +68 -0
- package/lib/commonjs/helpers/pickImageAsset.js.map +1 -0
- package/lib/commonjs/helpers/pushPayload.js +71 -0
- package/lib/commonjs/helpers/pushPayload.js.map +1 -0
- package/lib/commonjs/helpers/sheetGestures.js +32 -0
- package/lib/commonjs/helpers/sheetGestures.js.map +1 -0
- package/lib/commonjs/helpers/updateMessagesTillLast.js +12 -40
- package/lib/commonjs/helpers/updateMessagesTillLast.js.map +1 -1
- package/lib/commonjs/hooks/useChatRoomFocus.js +3 -9
- package/lib/commonjs/hooks/useChatRoomFocus.js.map +1 -1
- package/lib/commonjs/hooks/useLogout.js +0 -5
- package/lib/commonjs/hooks/useLogout.js.map +1 -1
- package/lib/commonjs/hooks/usePendingNotification.js +8 -11
- package/lib/commonjs/hooks/usePendingNotification.js.map +1 -1
- package/lib/commonjs/hooks/useSendMessage.js +23 -50
- package/lib/commonjs/hooks/useSendMessage.js.map +1 -1
- package/lib/commonjs/i18n/strings.js +121 -1
- package/lib/commonjs/i18n/strings.js.map +1 -1
- package/lib/commonjs/main.js +19 -0
- package/lib/commonjs/main.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/authRefresh.js +12 -2
- package/lib/commonjs/networking/authRefresh.js.map +1 -1
- package/lib/commonjs/networking/outboundQueue.js +0 -18
- package/lib/commonjs/networking/outboundQueue.js.map +1 -1
- package/lib/commonjs/networking/stanzaHandlers.js +1 -10
- package/lib/commonjs/networking/stanzaHandlers.js.map +1 -1
- package/lib/commonjs/networking/xmpp/presenceInRoom.xmpp.js +8 -1
- package/lib/commonjs/networking/xmpp/presenceInRoom.xmpp.js.map +1 -1
- package/lib/commonjs/networking/xmpp/subscribeToRoomMessages.xmpp.js +5 -1
- package/lib/commonjs/networking/xmpp/subscribeToRoomMessages.xmpp.js.map +1 -1
- package/lib/commonjs/networking/xmppClient.js +62 -108
- 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 +3 -22
- package/lib/commonjs/roomStore/roomsSlice.js.map +1 -1
- package/lib/commonjs/services/pushSubscriptionService.js +15 -13
- package/lib/commonjs/services/pushSubscriptionService.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 +26 -7
- package/lib/module/components/Header/HeaderRoomList.js.map +1 -1
- package/lib/module/components/MainComponents/ChatHeader.js +5 -2
- package/lib/module/components/MainComponents/ChatHeader.js.map +1 -1
- package/lib/module/components/MainComponents/ChatRoom.js +36 -14
- package/lib/module/components/MainComponents/ChatRoom.js.map +1 -1
- package/lib/module/components/MainComponents/ChatWrapper.js +2 -0
- package/lib/module/components/MainComponents/ChatWrapper.js.map +1 -1
- package/lib/module/components/MainComponents/MessageList.js +8 -24
- package/lib/module/components/MainComponents/MessageList.js.map +1 -1
- package/lib/module/components/MainComponents/ProfileImagePlaceholder.js +14 -13
- package/lib/module/components/MainComponents/ProfileImagePlaceholder.js.map +1 -1
- package/lib/module/components/MainComponents/RoomList.js +207 -35
- package/lib/module/components/MainComponents/RoomList.js.map +1 -1
- package/lib/module/components/Menu/HeaderRoomListMenu.js +319 -101
- package/lib/module/components/Menu/HeaderRoomListMenu.js.map +1 -1
- package/lib/module/components/Modals/AttachSheet/AttachSheet.js +311 -113
- package/lib/module/components/Modals/AttachSheet/AttachSheet.js.map +1 -1
- package/lib/module/components/Modals/ChatProfileModal/ChatProfileModal.js +555 -217
- 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/ModalContent.js +2 -1
- package/lib/module/components/Modals/NewChatModal/ModalContent.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/NewChatModal/UpdNewChatModal.js +8 -0
- package/lib/module/components/Modals/NewChatModal/UpdNewChatModal.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/EditUserModal.js +9 -23
- package/lib/module/components/Modals/UserProfileModal/EditUserModal.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 +81 -12
- 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 +32 -39
- 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/mediaLibraryRuntime.js +25 -0
- package/lib/module/helpers/mediaLibraryRuntime.js.map +1 -0
- package/lib/module/helpers/pickImageAsset.js +63 -0
- package/lib/module/helpers/pickImageAsset.js.map +1 -0
- package/lib/module/helpers/pushPayload.js +63 -0
- package/lib/module/helpers/pushPayload.js.map +1 -0
- package/lib/module/helpers/sheetGestures.js +26 -0
- package/lib/module/helpers/sheetGestures.js.map +1 -0
- package/lib/module/helpers/updateMessagesTillLast.js +13 -41
- package/lib/module/helpers/updateMessagesTillLast.js.map +1 -1
- package/lib/module/hooks/useChatRoomFocus.js +3 -9
- package/lib/module/hooks/useChatRoomFocus.js.map +1 -1
- package/lib/module/hooks/useLogout.js +0 -5
- package/lib/module/hooks/useLogout.js.map +1 -1
- package/lib/module/hooks/usePendingNotification.js +8 -11
- package/lib/module/hooks/usePendingNotification.js.map +1 -1
- package/lib/module/hooks/useSendMessage.js +24 -51
- package/lib/module/hooks/useSendMessage.js.map +1 -1
- package/lib/module/i18n/strings.js +121 -1
- package/lib/module/i18n/strings.js.map +1 -1
- package/lib/module/main.js +2 -1
- package/lib/module/main.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/authRefresh.js +12 -2
- package/lib/module/networking/authRefresh.js.map +1 -1
- package/lib/module/networking/outboundQueue.js +0 -17
- package/lib/module/networking/outboundQueue.js.map +1 -1
- package/lib/module/networking/stanzaHandlers.js +1 -10
- package/lib/module/networking/stanzaHandlers.js.map +1 -1
- package/lib/module/networking/xmpp/presenceInRoom.xmpp.js +8 -1
- package/lib/module/networking/xmpp/presenceInRoom.xmpp.js.map +1 -1
- package/lib/module/networking/xmpp/subscribeToRoomMessages.xmpp.js +5 -1
- package/lib/module/networking/xmpp/subscribeToRoomMessages.xmpp.js.map +1 -1
- package/lib/module/networking/xmppClient.js +62 -108
- 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 +2 -20
- package/lib/module/roomStore/roomsSlice.js.map +1 -1
- package/lib/module/services/pushSubscriptionService.js +15 -13
- package/lib/module/services/pushSubscriptionService.js.map +1 -1
- package/lib/typescript/assets/icons.d.ts +16 -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/ChatHeader.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.map +1 -1
- package/lib/typescript/components/MainComponents/ProfileImagePlaceholder.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/RoomList.d.ts +7 -0
- package/lib/typescript/components/MainComponents/RoomList.d.ts.map +1 -1
- package/lib/typescript/components/Menu/HeaderRoomListMenu.d.ts +3 -0
- 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/ModalContent.d.ts +4 -2
- 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/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/EditUserModal.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/mediaLibraryRuntime.d.ts +3 -0
- package/lib/typescript/helpers/mediaLibraryRuntime.d.ts.map +1 -0
- package/lib/typescript/helpers/pickImageAsset.d.ts +27 -0
- package/lib/typescript/helpers/pickImageAsset.d.ts.map +1 -0
- package/lib/typescript/helpers/pushPayload.d.ts +7 -0
- package/lib/typescript/helpers/pushPayload.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/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/usePendingNotification.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 +3 -1
- package/lib/typescript/main.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/authRefresh.d.ts +4 -1
- package/lib/typescript/networking/authRefresh.d.ts.map +1 -1
- package/lib/typescript/networking/outboundQueue.d.ts +0 -16
- package/lib/typescript/networking/outboundQueue.d.ts.map +1 -1
- package/lib/typescript/networking/stanzaHandlers.d.ts.map +1 -1
- package/lib/typescript/networking/xmpp/presenceInRoom.xmpp.d.ts.map +1 -1
- package/lib/typescript/networking/xmpp/subscribeToRoomMessages.xmpp.d.ts.map +1 -1
- package/lib/typescript/networking/xmppClient.d.ts +8 -33
- 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 -18
- package/lib/typescript/roomStore/roomsSlice.d.ts.map +1 -1
- package/lib/typescript/services/pushSubscriptionService.d.ts +1 -1
- package/lib/typescript/services/pushSubscriptionService.d.ts.map +1 -1
- package/lib/typescript/types/models/room.model.d.ts +0 -15
- package/lib/typescript/types/models/room.model.d.ts.map +1 -1
- package/lib/typescript/types/types.d.ts +31 -20
- package/lib/typescript/types/types.d.ts.map +1 -1
- package/package.json +6 -1
- package/src/assets/icons.tsx +48 -9
- package/src/components/Header/HeaderRoomList.tsx +24 -6
- package/src/components/MainComponents/ChatHeader.tsx +5 -2
- package/src/components/MainComponents/ChatRoom.tsx +38 -20
- package/src/components/MainComponents/ChatWrapper.tsx +3 -0
- package/src/components/MainComponents/MessageList.tsx +8 -24
- package/src/components/MainComponents/ProfileImagePlaceholder.tsx +21 -14
- package/src/components/MainComponents/RoomList.tsx +236 -39
- package/src/components/Menu/HeaderRoomListMenu.tsx +328 -75
- package/src/components/Modals/AttachSheet/AttachSheet.tsx +331 -97
- package/src/components/Modals/ChatProfileModal/ChatProfileModal.tsx +598 -279
- 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/ModalContent.tsx +6 -3
- package/src/components/Modals/NewChatModal/NewChatModal.tsx +219 -117
- package/src/components/Modals/NewChatModal/UpdNewChatModal.tsx +12 -1
- 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/EditUserModal.tsx +9 -25
- 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 -12
- package/src/components/styled/StyledComponents.ts +9 -3
- package/src/components/styled/StyledInputComponents/StyledInputComponents.tsx +11 -4
- package/src/context/xmppProvider.tsx +36 -47
- package/src/helpers/getChatBackground.ts +18 -0
- package/src/helpers/mediaLibraryRuntime.ts +25 -0
- package/src/helpers/pickImageAsset.ts +68 -0
- package/src/helpers/pushPayload.ts +62 -0
- package/src/helpers/sheetGestures.ts +25 -0
- package/src/helpers/updateMessagesTillLast.tsx +17 -42
- package/src/hooks/useChatRoomFocus.ts +3 -11
- package/src/hooks/useLogout.tsx +0 -7
- package/src/hooks/usePendingNotification.ts +5 -11
- package/src/hooks/useSendMessage.tsx +24 -60
- package/src/i18n/strings.ts +121 -1
- package/src/main.ts +4 -1
- package/src/networking/api-requests/user.api.ts +71 -0
- package/src/networking/authRefresh.ts +25 -4
- package/src/networking/outboundQueue.ts +0 -29
- package/src/networking/stanzaHandlers.ts +1 -9
- package/src/networking/xmpp/presenceInRoom.xmpp.ts +6 -1
- package/src/networking/xmpp/subscribeToRoomMessages.xmpp.ts +12 -1
- package/src/networking/xmppClient.ts +65 -119
- package/src/roomStore/chatSettingsSlice.ts +3 -1
- package/src/roomStore/roomsSlice.ts +2 -20
- package/src/services/pushSubscriptionService.ts +18 -13
- package/src/types/models/room.model.ts +0 -15
- package/src/types/types.ts +33 -20
|
@@ -4,11 +4,25 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
Object.defineProperty(exports, "shouldClaimVerticalDrag", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () {
|
|
10
|
+
return _sheetGestures.shouldClaimVerticalDrag;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "shouldDismissOnDrag", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () {
|
|
16
|
+
return _sheetGestures.shouldDismissOnDrag;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
7
19
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
20
|
var _reactNative = require("react-native");
|
|
9
21
|
var _icons = require("../../../assets/icons");
|
|
10
22
|
var _useChatSettingState = require("../../../hooks/useChatSettingState");
|
|
11
23
|
var _typography = require("../../../helpers/typography");
|
|
24
|
+
var _mediaLibraryRuntime = require("../../../helpers/mediaLibraryRuntime");
|
|
25
|
+
var _sheetGestures = require("../../../helpers/sheetGestures");
|
|
12
26
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
27
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
14
28
|
/** @format */
|
|
@@ -16,25 +30,69 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
16
30
|
// Starting translateY for the sheet. Larger than any realistic sheet
|
|
17
31
|
// height so it sits fully below the viewport before opening; the exact
|
|
18
32
|
// number doesn't matter visually because it animates to 0.
|
|
19
|
-
const SHEET_OFFSCREEN =
|
|
33
|
+
const SHEET_OFFSCREEN = 800;
|
|
34
|
+
// Re-exported so this sheet's own tests keep addressing them here.
|
|
35
|
+
|
|
36
|
+
const RECENTS_COUNT = 12;
|
|
37
|
+
const THUMB_SIZE = 88;
|
|
38
|
+
const THUMB_DECODE = THUMB_SIZE * 2;
|
|
39
|
+
const EXT_MIME = {
|
|
40
|
+
jpg: 'image/jpeg',
|
|
41
|
+
jpeg: 'image/jpeg',
|
|
42
|
+
png: 'image/png',
|
|
43
|
+
gif: 'image/gif',
|
|
44
|
+
webp: 'image/webp',
|
|
45
|
+
heic: 'image/heic',
|
|
46
|
+
heif: 'image/heif'
|
|
47
|
+
};
|
|
48
|
+
const guessMimeType = name => {
|
|
49
|
+
const ext = name.split('.').pop()?.toLowerCase() ?? '';
|
|
50
|
+
return EXT_MIME[ext] ?? 'image/jpeg';
|
|
51
|
+
};
|
|
52
|
+
const toRecentItem = async (MediaLibrary, asset) => {
|
|
53
|
+
const filename = asset?.filename || `photo_${asset?.id ?? Date.now()}`;
|
|
54
|
+
if (asset?.uri && !asset.uri.startsWith('ph://')) {
|
|
55
|
+
return {
|
|
56
|
+
id: asset.id,
|
|
57
|
+
uri: asset.uri,
|
|
58
|
+
filename
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
try {
|
|
62
|
+
const info = await MediaLibrary?.getAssetInfoAsync?.(asset, {
|
|
63
|
+
shouldDownloadFromNetwork: false
|
|
64
|
+
});
|
|
65
|
+
if (!info?.localUri) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
id: asset.id,
|
|
70
|
+
uri: info.localUri,
|
|
71
|
+
filename
|
|
72
|
+
};
|
|
73
|
+
} catch {
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
};
|
|
20
77
|
const AttachSheet = ({
|
|
21
78
|
visible,
|
|
22
79
|
onClose,
|
|
23
80
|
onCamera,
|
|
24
81
|
onGallery,
|
|
25
82
|
onDocument,
|
|
83
|
+
onPickMedia,
|
|
26
84
|
primaryColor = '#0052CD'
|
|
27
85
|
}) => {
|
|
28
86
|
const {
|
|
29
87
|
config
|
|
30
88
|
} = (0, _useChatSettingState.useChatSettingState)();
|
|
31
89
|
const ts = config?.typography?.attachSheet;
|
|
32
|
-
// Pending handler captured on row tap — runs once the EXIT animation
|
|
33
|
-
// finishes so iOS doesn't try to present an image picker over a
|
|
34
|
-
// still-dismissing modal (was the original reason for the
|
|
35
|
-
// platform-split + Modal.onDismiss dance). The animation completion
|
|
36
|
-
// callback now drives this on both platforms.
|
|
37
90
|
const pendingRef = (0, _react.useRef)(null);
|
|
91
|
+
const runPending = () => {
|
|
92
|
+
const fn = pendingRef.current;
|
|
93
|
+
pendingRef.current = null;
|
|
94
|
+
fn?.();
|
|
95
|
+
};
|
|
38
96
|
|
|
39
97
|
// Local "modal stays mounted while animating out" state. The parent
|
|
40
98
|
// controls `visible`; we mirror it but delay unmount until the exit
|
|
@@ -50,6 +108,8 @@ const AttachSheet = ({
|
|
|
50
108
|
// bottom-sheet feel.
|
|
51
109
|
const backdropOpacity = (0, _react.useRef)(new _reactNative.Animated.Value(0)).current;
|
|
52
110
|
const sheetTranslateY = (0, _react.useRef)(new _reactNative.Animated.Value(SHEET_OFFSCREEN)).current;
|
|
111
|
+
const onCloseRef = (0, _react.useRef)(onClose);
|
|
112
|
+
onCloseRef.current = onClose;
|
|
53
113
|
(0, _react.useEffect)(() => {
|
|
54
114
|
if (visible) {
|
|
55
115
|
setMounted(true);
|
|
@@ -81,8 +141,6 @@ const AttachSheet = ({
|
|
|
81
141
|
if (!mounted) {
|
|
82
142
|
return;
|
|
83
143
|
}
|
|
84
|
-
// Exit: fade the backdrop, slide the sheet down, then unmount and
|
|
85
|
-
// fire any pending picker handler.
|
|
86
144
|
_reactNative.Animated.parallel([_reactNative.Animated.timing(backdropOpacity, {
|
|
87
145
|
toValue: 0,
|
|
88
146
|
duration: 180,
|
|
@@ -100,34 +158,120 @@ const AttachSheet = ({
|
|
|
100
158
|
return;
|
|
101
159
|
} // interrupted (rapid re-open) → leave state alone
|
|
102
160
|
setMounted(false);
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
161
|
+
if (_reactNative.Platform.OS !== 'ios') {
|
|
162
|
+
runPending();
|
|
163
|
+
}
|
|
106
164
|
});
|
|
107
165
|
return undefined;
|
|
108
166
|
}, [visible]); // eslint-disable-line react-hooks/exhaustive-deps
|
|
109
167
|
|
|
168
|
+
const makeDragResponder = claimOnStart => _reactNative.PanResponder.create({
|
|
169
|
+
onStartShouldSetPanResponder: () => claimOnStart,
|
|
170
|
+
// Capture, so a pull that starts on a row (whose Touchable grabbed
|
|
171
|
+
// the responder on touch-down) still drags the sheet.
|
|
172
|
+
onMoveShouldSetPanResponderCapture: (_evt, g) => claimOnStart || (0, _sheetGestures.shouldClaimVerticalDrag)(g.dy, g.dx),
|
|
173
|
+
onMoveShouldSetPanResponder: (_evt, g) => claimOnStart || (0, _sheetGestures.shouldClaimVerticalDrag)(g.dy, g.dx),
|
|
174
|
+
onPanResponderTerminationRequest: () => false,
|
|
175
|
+
onPanResponderMove: (_evt, g) => {
|
|
176
|
+
sheetTranslateY.setValue(Math.max(0, g.dy));
|
|
177
|
+
},
|
|
178
|
+
onPanResponderRelease: (_evt, g) => {
|
|
179
|
+
if ((0, _sheetGestures.shouldDismissOnDrag)(g.dy, g.vy)) {
|
|
180
|
+
onCloseRef.current();
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
_reactNative.Animated.spring(sheetTranslateY, {
|
|
184
|
+
toValue: 0,
|
|
185
|
+
tension: 90,
|
|
186
|
+
friction: 14,
|
|
187
|
+
useNativeDriver: true
|
|
188
|
+
}).start();
|
|
189
|
+
},
|
|
190
|
+
onPanResponderTerminate: () => {
|
|
191
|
+
_reactNative.Animated.spring(sheetTranslateY, {
|
|
192
|
+
toValue: 0,
|
|
193
|
+
tension: 90,
|
|
194
|
+
friction: 14,
|
|
195
|
+
useNativeDriver: true
|
|
196
|
+
}).start();
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
const sheetPanRef = (0, _react.useRef)(null);
|
|
200
|
+
const grabberPanRef = (0, _react.useRef)(null);
|
|
201
|
+
if (!sheetPanRef.current) {
|
|
202
|
+
sheetPanRef.current = makeDragResponder(false);
|
|
203
|
+
}
|
|
204
|
+
if (!grabberPanRef.current) {
|
|
205
|
+
grabberPanRef.current = makeDragResponder(true);
|
|
206
|
+
}
|
|
207
|
+
const sheetPan = sheetPanRef.current;
|
|
208
|
+
const grabberPan = grabberPanRef.current;
|
|
209
|
+
const [recents, setRecents] = (0, _react.useState)([]);
|
|
210
|
+
const [loadingRecents, setLoadingRecents] = (0, _react.useState)(false);
|
|
211
|
+
const lastLoadRef = (0, _react.useRef)(0);
|
|
212
|
+
const RECENTS_TTL_MS = 15000;
|
|
213
|
+
const loadRecents = (0, _react.useCallback)(async () => {
|
|
214
|
+
const MediaLibrary = (0, _mediaLibraryRuntime.getMediaLibrary)();
|
|
215
|
+
if (!MediaLibrary?.getAssetsAsync) {
|
|
216
|
+
setLoadingRecents(false);
|
|
217
|
+
return;
|
|
218
|
+
}
|
|
219
|
+
try {
|
|
220
|
+
const perm = await MediaLibrary.getPermissionsAsync();
|
|
221
|
+
if (!perm?.granted) {
|
|
222
|
+
setRecents([]);
|
|
223
|
+
return;
|
|
224
|
+
}
|
|
225
|
+
const page = await MediaLibrary.getAssetsAsync({
|
|
226
|
+
first: RECENTS_COUNT,
|
|
227
|
+
sortBy: [MediaLibrary.SortBy?.creationTime ?? 'creationTime'],
|
|
228
|
+
mediaType: [MediaLibrary.MediaType?.photo ?? 'photo']
|
|
229
|
+
});
|
|
230
|
+
const items = await Promise.all((page?.assets ?? []).map(asset => toRecentItem(MediaLibrary, asset)));
|
|
231
|
+
lastLoadRef.current = Date.now();
|
|
232
|
+
setRecents(items.filter(Boolean));
|
|
233
|
+
} catch (err) {
|
|
234
|
+
console.warn('AttachSheet: could not read recent media', err);
|
|
235
|
+
setRecents([]);
|
|
236
|
+
} finally {
|
|
237
|
+
setLoadingRecents(false);
|
|
238
|
+
}
|
|
239
|
+
}, []);
|
|
240
|
+
(0, _react.useEffect)(() => {
|
|
241
|
+
if (!visible) {
|
|
242
|
+
return undefined;
|
|
243
|
+
}
|
|
244
|
+
if (recents.length && Date.now() - lastLoadRef.current < RECENTS_TTL_MS) {
|
|
245
|
+
return undefined;
|
|
246
|
+
}
|
|
247
|
+
setLoadingRecents(true);
|
|
248
|
+
const timer = setTimeout(() => {
|
|
249
|
+
loadRecents();
|
|
250
|
+
}, 250);
|
|
251
|
+
return () => clearTimeout(timer);
|
|
252
|
+
}, [visible]);
|
|
110
253
|
const trigger = handler => () => {
|
|
111
|
-
// Capture the handler and ask parent to close. The exit-animation
|
|
112
|
-
// completion above fires `handler` AFTER the sheet has slid away,
|
|
113
|
-
// so iOS no longer tries to present a picker over a dismissing
|
|
114
|
-
// modal — and Android no longer needs the ad-hoc 150ms setTimeout.
|
|
115
254
|
pendingRef.current = handler;
|
|
255
|
+
if (_reactNative.Platform.OS === 'ios') {
|
|
256
|
+
setMounted(false);
|
|
257
|
+
}
|
|
116
258
|
onClose();
|
|
117
259
|
};
|
|
260
|
+
const handleRecentPress = item => trigger(() => {
|
|
261
|
+
if (onPickMedia) {
|
|
262
|
+
onPickMedia({
|
|
263
|
+
uri: item.uri,
|
|
264
|
+
name: item.filename,
|
|
265
|
+
mimeType: guessMimeType(item.filename),
|
|
266
|
+
isVideo: false
|
|
267
|
+
});
|
|
268
|
+
} else {
|
|
269
|
+
onGallery();
|
|
270
|
+
}
|
|
271
|
+
});
|
|
118
272
|
const rows = [{
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
Icon: _icons.CameraIcon,
|
|
122
|
-
handler: onCamera
|
|
123
|
-
}, {
|
|
124
|
-
label: 'Photo or video',
|
|
125
|
-
hint: 'Pick from your library',
|
|
126
|
-
Icon: _icons.MediaIcon,
|
|
127
|
-
handler: onGallery
|
|
128
|
-
}, {
|
|
129
|
-
label: 'Document',
|
|
130
|
-
hint: 'Choose a file',
|
|
273
|
+
id: 'Document',
|
|
274
|
+
label: 'Upload a File',
|
|
131
275
|
Icon: _icons.DocumentIcon,
|
|
132
276
|
handler: onDocument
|
|
133
277
|
}];
|
|
@@ -143,65 +287,113 @@ const AttachSheet = ({
|
|
|
143
287
|
// Hardware-back / iOS gesture also routes through onClose, which
|
|
144
288
|
// flips `visible` and triggers our exit animation above.
|
|
145
289
|
,
|
|
290
|
+
onDismiss: _reactNative.Platform.OS === 'ios' ? runPending : undefined,
|
|
146
291
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Animated.View, {
|
|
147
292
|
style: [styles.backdrop, {
|
|
148
293
|
opacity: backdropOpacity
|
|
149
294
|
}],
|
|
150
295
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
296
|
+
testID: "attach-backdrop",
|
|
151
297
|
style: _reactNative.StyleSheet.absoluteFill,
|
|
152
298
|
activeOpacity: 1,
|
|
153
299
|
onPress: onClose
|
|
154
|
-
}), /*#__PURE__*/(0, _jsxRuntime.
|
|
300
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Animated.View, {
|
|
155
301
|
style: [styles.sheet, {
|
|
156
302
|
transform: [{
|
|
157
303
|
translateY: sheetTranslateY
|
|
158
304
|
}]
|
|
159
305
|
}],
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
306
|
+
...sheetPan.panHandlers,
|
|
307
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
308
|
+
testID: "attach-grabber",
|
|
309
|
+
style: styles.grabberArea,
|
|
310
|
+
...grabberPan.panHandlers,
|
|
311
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
163
312
|
style: styles.grabber
|
|
164
|
-
})
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
}, idx) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
|
|
313
|
+
})
|
|
314
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
315
|
+
style: styles.sectionHeader,
|
|
316
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
317
|
+
style: [styles.sectionTitle, (0, _typography.chatTextStyle)(ts?.title)],
|
|
318
|
+
children: "Photos & Videos"
|
|
319
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
320
|
+
testID: "attach-view-library",
|
|
173
321
|
activeOpacity: 0.6,
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
color: primaryColor,
|
|
182
|
-
width: 20,
|
|
183
|
-
height: 20
|
|
184
|
-
})
|
|
185
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
186
|
-
style: styles.rowText,
|
|
187
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
188
|
-
style: [styles.rowLabel, (0, _typography.chatTextStyle)(ts?.rowLabel)],
|
|
189
|
-
children: label
|
|
190
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
191
|
-
style: [styles.rowHint, (0, _typography.chatTextStyle)(ts?.rowHint)],
|
|
192
|
-
children: hint
|
|
193
|
-
})]
|
|
194
|
-
})]
|
|
195
|
-
}, label)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
196
|
-
activeOpacity: 0.6,
|
|
197
|
-
style: styles.cancelRow,
|
|
198
|
-
onPress: onClose,
|
|
322
|
+
onPress: trigger(onGallery),
|
|
323
|
+
hitSlop: {
|
|
324
|
+
top: 8,
|
|
325
|
+
bottom: 8,
|
|
326
|
+
left: 8,
|
|
327
|
+
right: 8
|
|
328
|
+
},
|
|
199
329
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
200
|
-
style: [styles.
|
|
201
|
-
|
|
330
|
+
style: [styles.sectionAction, {
|
|
331
|
+
color: primaryColor
|
|
332
|
+
}, (0, _typography.chatTextStyle)(ts?.viewLibrary)],
|
|
333
|
+
children: "View Library"
|
|
334
|
+
})
|
|
335
|
+
})]
|
|
336
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.ScrollView, {
|
|
337
|
+
horizontal: true,
|
|
338
|
+
showsHorizontalScrollIndicator: false,
|
|
339
|
+
contentContainerStyle: styles.strip,
|
|
340
|
+
keyboardShouldPersistTaps: "handled",
|
|
341
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
342
|
+
testID: "attach-row-Camera",
|
|
343
|
+
activeOpacity: 0.7,
|
|
344
|
+
style: styles.cameraTile,
|
|
345
|
+
onPress: trigger(onCamera),
|
|
346
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.CameraIcon, {
|
|
347
|
+
color: "#8A8A8E",
|
|
348
|
+
width: 26,
|
|
349
|
+
height: 26
|
|
350
|
+
})
|
|
351
|
+
}), loadingRecents && recents.length === 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
352
|
+
style: styles.loadingTile,
|
|
353
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
|
|
354
|
+
color: "#8A8A8E"
|
|
355
|
+
})
|
|
356
|
+
}), recents.map(item => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
357
|
+
testID: `attach-recent-${item.id}`,
|
|
358
|
+
activeOpacity: 0.8,
|
|
359
|
+
style: styles.thumbWrap,
|
|
360
|
+
onPress: handleRecentPress(item),
|
|
361
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
|
|
362
|
+
source: {
|
|
363
|
+
uri: item.uri,
|
|
364
|
+
width: THUMB_DECODE,
|
|
365
|
+
height: THUMB_DECODE
|
|
366
|
+
},
|
|
367
|
+
style: styles.thumb,
|
|
368
|
+
resizeMethod: "resize",
|
|
369
|
+
resizeMode: "cover",
|
|
370
|
+
fadeDuration: 0
|
|
371
|
+
})
|
|
372
|
+
}, item.id))]
|
|
373
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
374
|
+
style: styles.rowsDivider
|
|
375
|
+
}), rows.map(({
|
|
376
|
+
id,
|
|
377
|
+
label,
|
|
378
|
+
Icon,
|
|
379
|
+
handler
|
|
380
|
+
}) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
|
|
381
|
+
testID: `attach-row-${id}`,
|
|
382
|
+
activeOpacity: 0.6,
|
|
383
|
+
style: styles.row,
|
|
384
|
+
onPress: trigger(handler),
|
|
385
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
386
|
+
style: styles.rowIcon,
|
|
387
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {
|
|
388
|
+
color: "#1C1C1E",
|
|
389
|
+
width: 20,
|
|
390
|
+
height: 20
|
|
202
391
|
})
|
|
392
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
393
|
+
style: [styles.rowLabel, (0, _typography.chatTextStyle)(ts?.rowLabel)],
|
|
394
|
+
children: label
|
|
203
395
|
})]
|
|
204
|
-
})
|
|
396
|
+
}, id))]
|
|
205
397
|
})]
|
|
206
398
|
})
|
|
207
399
|
});
|
|
@@ -216,7 +408,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
216
408
|
backgroundColor: '#fff',
|
|
217
409
|
borderTopLeftRadius: 24,
|
|
218
410
|
borderTopRightRadius: 24,
|
|
219
|
-
paddingTop:
|
|
411
|
+
paddingTop: 4,
|
|
220
412
|
paddingBottom: _reactNative.Platform.OS === 'ios' ? 32 : 20,
|
|
221
413
|
shadowColor: '#000',
|
|
222
414
|
shadowOffset: {
|
|
@@ -227,65 +419,83 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
227
419
|
shadowRadius: 12,
|
|
228
420
|
elevation: 16
|
|
229
421
|
},
|
|
422
|
+
grabberArea: {
|
|
423
|
+
alignItems: 'center',
|
|
424
|
+
paddingTop: 10,
|
|
425
|
+
paddingBottom: 14
|
|
426
|
+
},
|
|
230
427
|
grabber: {
|
|
231
|
-
alignSelf: 'center',
|
|
232
428
|
width: 40,
|
|
233
429
|
height: 4,
|
|
234
430
|
borderRadius: 2,
|
|
235
|
-
backgroundColor: '#D9D9DE'
|
|
236
|
-
marginBottom: 12
|
|
431
|
+
backgroundColor: '#D9D9DE'
|
|
237
432
|
},
|
|
238
|
-
|
|
239
|
-
fontSize: 13,
|
|
240
|
-
fontWeight: '600',
|
|
241
|
-
color: '#8A8A8E',
|
|
242
|
-
letterSpacing: 0.4,
|
|
243
|
-
textTransform: 'uppercase',
|
|
244
|
-
paddingHorizontal: 20,
|
|
245
|
-
paddingBottom: 8
|
|
246
|
-
},
|
|
247
|
-
row: {
|
|
433
|
+
sectionHeader: {
|
|
248
434
|
flexDirection: 'row',
|
|
249
435
|
alignItems: 'center',
|
|
436
|
+
justifyContent: 'space-between',
|
|
250
437
|
paddingHorizontal: 20,
|
|
251
|
-
|
|
438
|
+
paddingBottom: 12
|
|
439
|
+
},
|
|
440
|
+
sectionTitle: {
|
|
441
|
+
fontSize: 17,
|
|
442
|
+
fontWeight: '700',
|
|
443
|
+
color: '#1C1C1E'
|
|
252
444
|
},
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
445
|
+
sectionAction: {
|
|
446
|
+
fontSize: 15,
|
|
447
|
+
fontWeight: '500'
|
|
256
448
|
},
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
449
|
+
strip: {
|
|
450
|
+
paddingHorizontal: 16,
|
|
451
|
+
paddingBottom: 16,
|
|
452
|
+
gap: 8
|
|
453
|
+
},
|
|
454
|
+
cameraTile: {
|
|
455
|
+
width: THUMB_SIZE,
|
|
456
|
+
height: THUMB_SIZE,
|
|
457
|
+
borderRadius: 16,
|
|
458
|
+
borderWidth: 1,
|
|
459
|
+
borderColor: '#E4E4E9',
|
|
460
|
+
backgroundColor: '#FAFAFC',
|
|
261
461
|
alignItems: 'center',
|
|
262
|
-
justifyContent: 'center'
|
|
263
|
-
marginRight: 14
|
|
462
|
+
justifyContent: 'center'
|
|
264
463
|
},
|
|
265
|
-
|
|
266
|
-
|
|
464
|
+
loadingTile: {
|
|
465
|
+
width: THUMB_SIZE,
|
|
466
|
+
height: THUMB_SIZE,
|
|
467
|
+
alignItems: 'center',
|
|
468
|
+
justifyContent: 'center'
|
|
267
469
|
},
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
470
|
+
thumbWrap: {
|
|
471
|
+
width: THUMB_SIZE,
|
|
472
|
+
height: THUMB_SIZE,
|
|
473
|
+
borderRadius: 16,
|
|
474
|
+
overflow: 'hidden',
|
|
475
|
+
backgroundColor: '#EFEFF2'
|
|
272
476
|
},
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
marginTop: 2
|
|
477
|
+
thumb: {
|
|
478
|
+
width: '100%',
|
|
479
|
+
height: '100%'
|
|
277
480
|
},
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
481
|
+
rowsDivider: {
|
|
482
|
+
height: _reactNative.StyleSheet.hairlineWidth,
|
|
483
|
+
backgroundColor: '#EFEFF2'
|
|
484
|
+
},
|
|
485
|
+
row: {
|
|
486
|
+
flexDirection: 'row',
|
|
487
|
+
alignItems: 'center',
|
|
488
|
+
paddingHorizontal: 20,
|
|
489
|
+
paddingVertical: 16
|
|
490
|
+
},
|
|
491
|
+
rowIcon: {
|
|
492
|
+
width: 28,
|
|
283
493
|
alignItems: 'center',
|
|
284
|
-
|
|
494
|
+
marginRight: 12
|
|
285
495
|
},
|
|
286
|
-
|
|
496
|
+
rowLabel: {
|
|
287
497
|
fontSize: 16,
|
|
288
|
-
fontWeight: '
|
|
498
|
+
fontWeight: '500',
|
|
289
499
|
color: '#1C1C1E'
|
|
290
500
|
}
|
|
291
501
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_icons","_useChatSettingState","_typography","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","SHEET_OFFSCREEN","AttachSheet","visible","onClose","onCamera","onGallery","onDocument","primaryColor","config","useChatSettingState","ts","typography","attachSheet","pendingRef","useRef","mounted","setMounted","useState","backdropOpacity","Animated","Value","current","sheetTranslateY","useEffect","setValue","raf","requestAnimationFrame","parallel","timing","toValue","duration","easing","Easing","out","cubic","useNativeDriver","spring","tension","friction","start","cancelAnimationFrame","in","finished","fn","undefined","trigger","handler","rows","label","hint","Icon","CameraIcon","MediaIcon","DocumentIcon","jsx","Modal","transparent","animationType","onRequestClose","children","jsxs","View","style","styles","backdrop","opacity","TouchableOpacity","StyleSheet","absoluteFill","activeOpacity","onPress","sheet","transform","translateY","grabber","Text","title","chatTextStyle","map","idx","row","length","rowDivider","iconBubble","backgroundColor","color","width","height","rowText","rowLabel","rowHint","cancelRow","cancelLabel","cancelButton","create","flex","justifyContent","borderTopLeftRadius","borderTopRightRadius","paddingTop","paddingBottom","Platform","OS","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","alignSelf","borderRadius","marginBottom","fontSize","fontWeight","letterSpacing","textTransform","paddingHorizontal","flexDirection","alignItems","paddingVertical","borderBottomWidth","hairlineWidth","borderBottomColor","marginRight","marginTop","marginHorizontal","_default","exports"],"sourceRoot":"../../../../../src","sources":["components/Modals/AttachSheet/AttachSheet.tsx"],"mappings":";;;;;;AAEA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAUA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,oBAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AAA4D,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,wBAAAO,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAT,uBAAA,YAAAA,CAAAO,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,C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,EAAE;IACPO,IAAI,EAAE;EACR,CAAC;EACDN,QAAQ,EAAE;IACRsB,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjB3B,KAAK,EAAE;EACT,CAAC;EACDK,OAAO,EAAE;IACPqB,QAAQ,EAAE,EAAE;IACZ1B,KAAK,EAAE,SAAS;IAChBsC,SAAS,EAAE;EACb,CAAC;EACDhC,SAAS,EAAE;IACTgC,SAAS,EAAE,CAAC;IACZC,gBAAgB,EAAE,EAAE;IACpBN,eAAe,EAAE,EAAE;IACnBT,YAAY,EAAE,EAAE;IAChBQ,UAAU,EAAE,QAAQ;IACpBjC,eAAe,EAAE;EACnB,CAAC;EACDQ,WAAW,EAAE;IACXmB,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjB3B,KAAK,EAAE;EACT;AACF,CAAC,CAAC;AAAC,IAAAwC,QAAA,GAAAC,OAAA,CAAAvI,OAAA,GAEYU,WAAW","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_icons","_useChatSettingState","_typography","_mediaLibraryRuntime","_sheetGestures","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","SHEET_OFFSCREEN","RECENTS_COUNT","THUMB_SIZE","THUMB_DECODE","EXT_MIME","jpg","jpeg","png","gif","webp","heic","heif","guessMimeType","name","ext","split","pop","toLowerCase","toRecentItem","MediaLibrary","asset","filename","id","Date","now","uri","startsWith","info","getAssetInfoAsync","shouldDownloadFromNetwork","localUri","AttachSheet","visible","onClose","onCamera","onGallery","onDocument","onPickMedia","primaryColor","config","useChatSettingState","ts","typography","attachSheet","pendingRef","useRef","runPending","fn","current","mounted","setMounted","useState","backdropOpacity","Animated","Value","sheetTranslateY","onCloseRef","useEffect","setValue","raf","requestAnimationFrame","parallel","timing","toValue","duration","easing","Easing","out","cubic","useNativeDriver","spring","tension","friction","start","cancelAnimationFrame","in","finished","Platform","OS","undefined","makeDragResponder","claimOnStart","PanResponder","create","onStartShouldSetPanResponder","onMoveShouldSetPanResponderCapture","_evt","g","shouldClaimVerticalDrag","dy","dx","onMoveShouldSetPanResponder","onPanResponderTerminationRequest","onPanResponderMove","Math","max","onPanResponderRelease","shouldDismissOnDrag","vy","onPanResponderTerminate","sheetPanRef","grabberPanRef","sheetPan","grabberPan","recents","setRecents","loadingRecents","setLoadingRecents","lastLoadRef","RECENTS_TTL_MS","loadRecents","useCallback","getMediaLibrary","getAssetsAsync","perm","getPermissionsAsync","granted","page","first","sortBy","SortBy","creationTime","mediaType","MediaType","photo","items","Promise","all","assets","map","filter","Boolean","err","console","warn","length","timer","setTimeout","clearTimeout","trigger","handler","handleRecentPress","item","mimeType","isVideo","rows","label","Icon","DocumentIcon","jsx","Modal","transparent","animationType","onRequestClose","onDismiss","children","jsxs","View","style","styles","backdrop","opacity","TouchableOpacity","testID","StyleSheet","absoluteFill","activeOpacity","onPress","sheet","transform","translateY","panHandlers","grabberArea","grabber","sectionHeader","Text","sectionTitle","chatTextStyle","title","hitSlop","top","bottom","left","right","sectionAction","color","viewLibrary","ScrollView","horizontal","showsHorizontalScrollIndicator","contentContainerStyle","strip","keyboardShouldPersistTaps","cameraTile","CameraIcon","width","height","loadingTile","ActivityIndicator","thumbWrap","Image","source","thumb","resizeMethod","resizeMode","fadeDuration","rowsDivider","row","rowIcon","rowLabel","flex","backgroundColor","justifyContent","borderTopLeftRadius","borderTopRightRadius","paddingTop","paddingBottom","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","alignItems","borderRadius","flexDirection","paddingHorizontal","fontSize","fontWeight","gap","borderWidth","borderColor","overflow","hairlineWidth","paddingVertical","marginRight","_default","exports"],"sourceRoot":"../../../../../src","sources":["components/Modals/AttachSheet/AttachSheet.tsx"],"mappings":";;;;;;;;;;;;;;;;;;AAEA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC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