@ethora/chat-component-rn 26.8.1 → 26.8.3
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 +110 -0
- package/README.md +70 -11
- package/lib/commonjs/assets/EmptyChatIllustration.js +7 -6
- package/lib/commonjs/assets/EmptyChatIllustration.js.map +1 -1
- package/lib/commonjs/assets/icons.js +7 -2
- package/lib/commonjs/assets/icons.js.map +1 -1
- package/lib/commonjs/components/AuthForms/Login.js +27 -12
- package/lib/commonjs/components/AuthForms/Login.js.map +1 -1
- package/lib/commonjs/components/ContextMenu/ContextMenuComponents.js +12 -4
- package/lib/commonjs/components/ContextMenu/ContextMenuComponents.js.map +1 -1
- package/lib/commonjs/components/DropdownMenu/DropdownMenu.js +16 -9
- package/lib/commonjs/components/DropdownMenu/DropdownMenu.js.map +1 -1
- package/lib/commonjs/components/ExampleComponents/CustomMessage.js +25 -7
- package/lib/commonjs/components/ExampleComponents/CustomMessage.js.map +1 -1
- package/lib/commonjs/components/ExampleComponents/CustomTypingIndicatorExamples.js +18 -6
- package/lib/commonjs/components/ExampleComponents/CustomTypingIndicatorExamples.js.map +1 -1
- package/lib/commonjs/components/Header/HeaderRoomList.js +34 -10
- package/lib/commonjs/components/Header/HeaderRoomList.js.map +1 -1
- package/lib/commonjs/components/InputComponents/Search.js +13 -4
- package/lib/commonjs/components/InputComponents/Search.js.map +1 -1
- package/lib/commonjs/components/MainComponents/ChatHeader.js +18 -6
- package/lib/commonjs/components/MainComponents/ChatHeader.js.map +1 -1
- package/lib/commonjs/components/MainComponents/ChatRoom.js +154 -15
- package/lib/commonjs/components/MainComponents/ChatRoom.js.map +1 -1
- package/lib/commonjs/components/MainComponents/ChatWrapper.js +42 -19
- package/lib/commonjs/components/MainComponents/ChatWrapper.js.map +1 -1
- package/lib/commonjs/components/MainComponents/LanguageSelectorModal.js +37 -10
- package/lib/commonjs/components/MainComponents/LanguageSelectorModal.js.map +1 -1
- package/lib/commonjs/components/MainComponents/LoginWrapper.js +2 -1
- package/lib/commonjs/components/MainComponents/LoginWrapper.js.map +1 -1
- package/lib/commonjs/components/MainComponents/MediaMessage.js +72 -28
- package/lib/commonjs/components/MainComponents/MediaMessage.js.map +1 -1
- package/lib/commonjs/components/MainComponents/MessageContainer.js +5 -1
- package/lib/commonjs/components/MainComponents/MessageContainer.js.map +1 -1
- package/lib/commonjs/components/MainComponents/MessageList.js +22 -8
- 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/RNStyled.js +12 -4
- package/lib/commonjs/components/MainComponents/RNStyled.js.map +1 -1
- package/lib/commonjs/components/MainComponents/ReduxWrapper.js +25 -8
- package/lib/commonjs/components/MainComponents/ReduxWrapper.js.map +1 -1
- package/lib/commonjs/components/MainComponents/RoomList.js +214 -38
- package/lib/commonjs/components/MainComponents/RoomList.js.map +1 -1
- package/lib/commonjs/components/MainComponents/Select.js +29 -8
- package/lib/commonjs/components/MainComponents/Select.js.map +1 -1
- package/lib/commonjs/components/Menu/HeaderRoomListMenu.js +329 -99
- package/lib/commonjs/components/Menu/HeaderRoomListMenu.js.map +1 -1
- package/lib/commonjs/components/MessageBubble/BottomReplyContainer.js +24 -8
- package/lib/commonjs/components/MessageBubble/BottomReplyContainer.js.map +1 -1
- package/lib/commonjs/components/MessageBubble/Message.js +46 -24
- package/lib/commonjs/components/MessageBubble/Message.js.map +1 -1
- package/lib/commonjs/components/MessageBubble/MessageInteractions.js +15 -4
- package/lib/commonjs/components/MessageBubble/MessageInteractions.js.map +1 -1
- package/lib/commonjs/components/MessageBubble/MessageReaction.js +10 -5
- package/lib/commonjs/components/MessageBubble/MessageReaction.js.map +1 -1
- package/lib/commonjs/components/Modals/AddMembersModal/AddMembersModal.js +1 -5
- package/lib/commonjs/components/Modals/AddMembersModal/AddMembersModal.js.map +1 -1
- package/lib/commonjs/components/Modals/AttachSheet/AttachSheet.js +345 -118
- package/lib/commonjs/components/Modals/AttachSheet/AttachSheet.js.map +1 -1
- package/lib/commonjs/components/Modals/ChatProfileModal/ChatProfileModal.js +599 -203
- package/lib/commonjs/components/Modals/ChatProfileModal/ChatProfileModal.js.map +1 -1
- package/lib/commonjs/components/Modals/ChatProfileModal/DeleteChatModal.js +5 -7
- package/lib/commonjs/components/Modals/ChatProfileModal/DeleteChatModal.js.map +1 -1
- package/lib/commonjs/components/Modals/ChatProfileModal/ReportChatModal.js +230 -0
- package/lib/commonjs/components/Modals/ChatProfileModal/ReportChatModal.js.map +1 -0
- package/lib/commonjs/components/Modals/FilePreviewModal/FilePreviewModal.js +89 -36
- package/lib/commonjs/components/Modals/FilePreviewModal/FilePreviewModal.js.map +1 -1
- package/lib/commonjs/components/Modals/FilePreviewModal/PdfView.js +2 -1
- package/lib/commonjs/components/Modals/FilePreviewModal/PdfView.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/ModalHeaderComponent.js +8 -2
- package/lib/commonjs/components/Modals/ModalHeaderComponent.js.map +1 -1
- package/lib/commonjs/components/Modals/ModalWrapper/ModalWrapper.js +8 -8
- package/lib/commonjs/components/Modals/ModalWrapper/ModalWrapper.js.map +1 -1
- package/lib/commonjs/components/Modals/NewChatModal/ModalContent.js +3 -6
- package/lib/commonjs/components/Modals/NewChatModal/ModalContent.js.map +1 -1
- package/lib/commonjs/components/Modals/NewChatModal/NewChatModal.js +205 -106
- 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 +563 -0
- package/lib/commonjs/components/Modals/ProfileHeader/ProfileHeader.js.map +1 -0
- package/lib/commonjs/components/Modals/ProfileHeader/ProfileMenu.js +215 -0
- package/lib/commonjs/components/Modals/ProfileHeader/ProfileMenu.js.map +1 -0
- package/lib/commonjs/components/Modals/SelectUsersModal/SelectUsersModal.js +7 -9
- package/lib/commonjs/components/Modals/SelectUsersModal/SelectUsersModal.js.map +1 -1
- package/lib/commonjs/components/Modals/SettingsModals/ManageDataModal/ManageDataModal.js +8 -6
- package/lib/commonjs/components/Modals/SettingsModals/ManageDataModal/ManageDataModal.js.map +1 -1
- package/lib/commonjs/components/Modals/SettingsModals/Referrals/Referrals.js +7 -2
- package/lib/commonjs/components/Modals/SettingsModals/Referrals/Referrals.js.map +1 -1
- package/lib/commonjs/components/Modals/SettingsModals/SharedStyledComponents.js +7 -3
- package/lib/commonjs/components/Modals/SettingsModals/SharedStyledComponents.js.map +1 -1
- package/lib/commonjs/components/Modals/SettingsModals/Visibility/RadioInput.js +10 -6
- package/lib/commonjs/components/Modals/SettingsModals/Visibility/RadioInput.js.map +1 -1
- package/lib/commonjs/components/Modals/SettingsModals/Visibility/VisibilityModal.js +7 -6
- package/lib/commonjs/components/Modals/SettingsModals/Visibility/VisibilityModal.js.map +1 -1
- package/lib/commonjs/components/Modals/UserProfileModal/EditUserModal.js +10 -22
- package/lib/commonjs/components/Modals/UserProfileModal/EditUserModal.js.map +1 -1
- package/lib/commonjs/components/Modals/UserProfileModal/UserProfileModal.js +510 -244
- package/lib/commonjs/components/Modals/UserProfileModal/UserProfileModal.js.map +1 -1
- package/lib/commonjs/components/Modals/UserSettingsModal/UserSettingsModal.js +77 -46
- package/lib/commonjs/components/Modals/UserSettingsModal/UserSettingsModal.js.map +1 -1
- package/lib/commonjs/components/Modals/styledModalComponents.js +68 -17
- package/lib/commonjs/components/Modals/styledModalComponents.js.map +1 -1
- package/lib/commonjs/components/RoomComponents/ChatRoomItem.js +30 -10
- package/lib/commonjs/components/RoomComponents/ChatRoomItem.js.map +1 -1
- package/lib/commonjs/components/RoomComponents/styled/LastAudioMessage.js +6 -2
- package/lib/commonjs/components/RoomComponents/styled/LastAudioMessage.js.map +1 -1
- package/lib/commonjs/components/RoomComponents/styled/LastMessageFile.js +22 -3
- package/lib/commonjs/components/RoomComponents/styled/LastMessageFile.js.map +1 -1
- package/lib/commonjs/components/RoomComponents/styled/LastMessagePhoto.js +17 -3
- package/lib/commonjs/components/RoomComponents/styled/LastMessagePhoto.js.map +1 -1
- package/lib/commonjs/components/RoomComponents/styled/LastMessageVideo.js +17 -3
- package/lib/commonjs/components/RoomComponents/styled/LastMessageVideo.js.map +1 -1
- package/lib/commonjs/components/RoomComponents/styled/StyledRoomComponents.js +6 -0
- package/lib/commonjs/components/RoomComponents/styled/StyledRoomComponents.js.map +1 -1
- package/lib/commonjs/components/Thread/ThreadWrapper.js +9 -2
- package/lib/commonjs/components/Thread/ThreadWrapper.js.map +1 -1
- package/lib/commonjs/components/Toast/Toast.js +3 -1
- package/lib/commonjs/components/Toast/Toast.js.map +1 -1
- package/lib/commonjs/components/VideoCalls/VideoCallSession.js +6 -3
- package/lib/commonjs/components/VideoCalls/VideoCallSession.js.map +1 -1
- package/lib/commonjs/components/styled/AudioMessage.js +18 -12
- package/lib/commonjs/components/styled/AudioMessage.js.map +1 -1
- package/lib/commonjs/components/styled/Button.js +18 -9
- package/lib/commonjs/components/styled/Button.js.map +1 -1
- package/lib/commonjs/components/styled/DateLabel.js +8 -5
- package/lib/commonjs/components/styled/DateLabel.js.map +1 -1
- package/lib/commonjs/components/styled/MediaModal.js +27 -21
- package/lib/commonjs/components/styled/MediaModal.js.map +1 -1
- package/lib/commonjs/components/styled/MessageImage.js +37 -9
- package/lib/commonjs/components/styled/MessageImage.js.map +1 -1
- package/lib/commonjs/components/styled/RoomListComponents/index.js +60 -38
- package/lib/commonjs/components/styled/RoomListComponents/index.js.map +1 -1
- package/lib/commonjs/components/styled/SendInput.js +93 -19
- package/lib/commonjs/components/styled/SendInput.js.map +1 -1
- package/lib/commonjs/components/styled/StyledComponents.js +75 -25
- package/lib/commonjs/components/styled/StyledComponents.js.map +1 -1
- package/lib/commonjs/components/styled/StyledInput.js +32 -18
- package/lib/commonjs/components/styled/StyledInput.js.map +1 -1
- package/lib/commonjs/components/styled/StyledInputComponents/CustomTypingIndicator.js +13 -8
- package/lib/commonjs/components/styled/StyledInputComponents/CustomTypingIndicator.js.map +1 -1
- package/lib/commonjs/components/styled/StyledInputComponents/MediaComponents.js +20 -9
- package/lib/commonjs/components/styled/StyledInputComponents/MediaComponents.js.map +1 -1
- package/lib/commonjs/components/styled/StyledInputComponents/StyledInputComponents.js +50 -22
- package/lib/commonjs/components/styled/StyledInputComponents/StyledInputComponents.js.map +1 -1
- package/lib/commonjs/components/styled/TreadLabel.js +6 -3
- package/lib/commonjs/components/styled/TreadLabel.js.map +1 -1
- package/lib/commonjs/components/styled/UnsupportedType.js +14 -4
- package/lib/commonjs/components/styled/UnsupportedType.js.map +1 -1
- package/lib/commonjs/components/styled/VideoMessage.js +119 -61
- package/lib/commonjs/components/styled/VideoMessage.js.map +1 -1
- package/lib/commonjs/context/MessageNotificationContext.js +14 -3
- package/lib/commonjs/context/MessageNotificationContext.js.map +1 -1
- package/lib/commonjs/context/xmppProvider.js +184 -59
- package/lib/commonjs/context/xmppProvider.js.map +1 -1
- package/lib/commonjs/helpers/createMessageFromXml.js +19 -1
- package/lib/commonjs/helpers/createMessageFromXml.js.map +1 -1
- package/lib/commonjs/helpers/ensureScopedChatCache.js +2 -2
- package/lib/commonjs/helpers/ensureScopedChatCache.js.map +1 -1
- package/lib/commonjs/helpers/getChatBackground.js +26 -0
- package/lib/commonjs/helpers/getChatBackground.js.map +1 -0
- package/lib/commonjs/helpers/getDateLabelColor.js +3 -1
- package/lib/commonjs/helpers/getDateLabelColor.js.map +1 -1
- package/lib/commonjs/helpers/getDisplayFileName.js +79 -0
- package/lib/commonjs/helpers/getDisplayFileName.js.map +1 -0
- package/lib/commonjs/helpers/getIconColor.js +4 -1
- package/lib/commonjs/helpers/getIconColor.js.map +1 -1
- package/lib/commonjs/helpers/getSenderNameColor.js +3 -1
- package/lib/commonjs/helpers/getSenderNameColor.js.map +1 -1
- package/lib/commonjs/helpers/getServerReadTimestamp.js +188 -0
- package/lib/commonjs/helpers/getServerReadTimestamp.js.map +1 -0
- package/lib/commonjs/helpers/historyPreloadScheduler.js +65 -2
- package/lib/commonjs/helpers/historyPreloadScheduler.js.map +1 -1
- package/lib/commonjs/helpers/initXmppRooms.js +14 -8
- package/lib/commonjs/helpers/initXmppRooms.js.map +1 -1
- package/lib/commonjs/helpers/insertMessageWithDelimiter.js +51 -9
- package/lib/commonjs/helpers/insertMessageWithDelimiter.js.map +1 -1
- package/lib/commonjs/helpers/isOwnMessage.js +75 -0
- package/lib/commonjs/helpers/isOwnMessage.js.map +1 -0
- package/lib/commonjs/helpers/keyboardLayout.js +12 -2
- package/lib/commonjs/helpers/keyboardLayout.js.map +1 -1
- package/lib/commonjs/helpers/markdownParser.js +27 -5
- package/lib/commonjs/helpers/markdownParser.js.map +1 -1
- package/lib/commonjs/helpers/mediaLibraryRuntime.js +31 -0
- package/lib/commonjs/helpers/mediaLibraryRuntime.js.map +1 -0
- package/lib/commonjs/helpers/mimeToExtension.js +6 -14
- package/lib/commonjs/helpers/mimeToExtension.js.map +1 -1
- package/lib/commonjs/helpers/msgSortableMs.js +37 -0
- package/lib/commonjs/helpers/msgSortableMs.js.map +1 -0
- package/lib/commonjs/helpers/parseMessageBody.js +82 -24
- package/lib/commonjs/helpers/parseMessageBody.js.map +1 -1
- package/lib/commonjs/helpers/persistCrypto.js +122 -0
- package/lib/commonjs/helpers/persistCrypto.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/resolveInitBeforeLoadUser.js +130 -17
- package/lib/commonjs/helpers/resolveInitBeforeLoadUser.js.map +1 -1
- package/lib/commonjs/helpers/secureFileUrl.js +101 -0
- package/lib/commonjs/helpers/secureFileUrl.js.map +1 -0
- package/lib/commonjs/helpers/secureKeyValue.js +83 -0
- package/lib/commonjs/helpers/secureKeyValue.js.map +1 -0
- package/lib/commonjs/helpers/secureStoreRuntime.js +59 -0
- package/lib/commonjs/helpers/secureStoreRuntime.js.map +1 -0
- package/lib/commonjs/helpers/secureUserStorage.js +75 -0
- package/lib/commonjs/helpers/secureUserStorage.js.map +1 -0
- package/lib/commonjs/helpers/shallowEqual.js +36 -0
- package/lib/commonjs/helpers/shallowEqual.js.map +1 -0
- package/lib/commonjs/helpers/sheetGestures.js +32 -0
- package/lib/commonjs/helpers/sheetGestures.js.map +1 -0
- package/lib/commonjs/hooks/useChatRoomFocus.js +45 -12
- package/lib/commonjs/hooks/useChatRoomFocus.js.map +1 -1
- package/lib/commonjs/hooks/useChatWrapperInit.js +30 -10
- package/lib/commonjs/hooks/useChatWrapperInit.js.map +1 -1
- package/lib/commonjs/hooks/useComposing.js +27 -0
- package/lib/commonjs/hooks/useComposing.js.map +1 -1
- package/lib/commonjs/hooks/useCustomTypingIndicator.js +7 -3
- package/lib/commonjs/hooks/useCustomTypingIndicator.js.map +1 -1
- package/lib/commonjs/hooks/useFileToken.js +10 -0
- package/lib/commonjs/hooks/useFileToken.js.map +1 -0
- package/lib/commonjs/hooks/useLogout.js +33 -10
- 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 +50 -14
- package/lib/commonjs/hooks/useSendMessage.js.map +1 -1
- package/lib/commonjs/hooks/useTheme.js +35 -0
- package/lib/commonjs/hooks/useTheme.js.map +1 -0
- package/lib/commonjs/hooks/useUnreadMessagesCounter.js +6 -1
- package/lib/commonjs/hooks/useUnreadMessagesCounter.js.map +1 -1
- package/lib/commonjs/i18n/strings.js +163 -37
- package/lib/commonjs/i18n/strings.js.map +1 -1
- package/lib/commonjs/main.js +119 -0
- package/lib/commonjs/main.js.map +1 -1
- package/lib/commonjs/networking/api-requests/auth.api.js +134 -60
- package/lib/commonjs/networking/api-requests/auth.api.js.map +1 -1
- package/lib/commonjs/networking/api-requests/push.api.js +130 -45
- package/lib/commonjs/networking/api-requests/push.api.js.map +1 -1
- package/lib/commonjs/networking/api-requests/roomMembers.api.js +1 -1
- package/lib/commonjs/networking/api-requests/roomMembers.api.js.map +1 -1
- package/lib/commonjs/networking/api-requests/rooms.api.js +22 -9
- package/lib/commonjs/networking/api-requests/rooms.api.js.map +1 -1
- package/lib/commonjs/networking/api-requests/user.api.js +68 -9
- package/lib/commonjs/networking/api-requests/user.api.js.map +1 -1
- package/lib/commonjs/networking/apiClient.js +62 -112
- package/lib/commonjs/networking/apiClient.js.map +1 -1
- package/lib/commonjs/networking/authRefresh.js +332 -0
- package/lib/commonjs/networking/authRefresh.js.map +1 -0
- package/lib/commonjs/networking/stanzaHandlers.js +41 -28
- package/lib/commonjs/networking/stanzaHandlers.js.map +1 -1
- package/lib/commonjs/networking/xmpp/flushLastViewedToPrivateStore.js +46 -8
- package/lib/commonjs/networking/xmpp/flushLastViewedToPrivateStore.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 +124 -8
- package/lib/commonjs/networking/xmppClient.js.map +1 -1
- package/lib/commonjs/roomStore/chatSettingsSlice.js +26 -7
- package/lib/commonjs/roomStore/chatSettingsSlice.js.map +1 -1
- package/lib/commonjs/roomStore/index.js +35 -2
- package/lib/commonjs/roomStore/index.js.map +1 -1
- package/lib/commonjs/roomStore/persistence.js +226 -23
- package/lib/commonjs/roomStore/persistence.js.map +1 -1
- package/lib/commonjs/roomStore/roomsSlice.js +151 -38
- package/lib/commonjs/roomStore/roomsSlice.js.map +1 -1
- package/lib/commonjs/services/pushRegistration.js +250 -0
- package/lib/commonjs/services/pushRegistration.js.map +1 -0
- package/lib/commonjs/services/pushSubscriptionService.js +15 -37
- package/lib/commonjs/services/pushSubscriptionService.js.map +1 -1
- package/lib/commonjs/theme/index.js +38 -0
- package/lib/commonjs/theme/index.js.map +1 -0
- package/lib/commonjs/theme/styled.d.js +4 -0
- package/lib/commonjs/theme/styled.d.js.map +1 -0
- package/lib/commonjs/theme/theme.js +137 -0
- package/lib/commonjs/theme/theme.js.map +1 -0
- package/lib/commonjs/version.js +1 -1
- package/lib/module/assets/EmptyChatIllustration.js +7 -6
- package/lib/module/assets/EmptyChatIllustration.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/AuthForms/Login.js +27 -12
- package/lib/module/components/AuthForms/Login.js.map +1 -1
- package/lib/module/components/ContextMenu/ContextMenuComponents.js +12 -4
- package/lib/module/components/ContextMenu/ContextMenuComponents.js.map +1 -1
- package/lib/module/components/DropdownMenu/DropdownMenu.js +16 -9
- package/lib/module/components/DropdownMenu/DropdownMenu.js.map +1 -1
- package/lib/module/components/ExampleComponents/CustomMessage.js +25 -7
- package/lib/module/components/ExampleComponents/CustomMessage.js.map +1 -1
- package/lib/module/components/ExampleComponents/CustomTypingIndicatorExamples.js +18 -6
- package/lib/module/components/ExampleComponents/CustomTypingIndicatorExamples.js.map +1 -1
- package/lib/module/components/Header/HeaderRoomList.js +34 -10
- package/lib/module/components/Header/HeaderRoomList.js.map +1 -1
- package/lib/module/components/InputComponents/Search.js +13 -4
- package/lib/module/components/InputComponents/Search.js.map +1 -1
- package/lib/module/components/MainComponents/ChatHeader.js +18 -6
- package/lib/module/components/MainComponents/ChatHeader.js.map +1 -1
- package/lib/module/components/MainComponents/ChatRoom.js +156 -17
- package/lib/module/components/MainComponents/ChatRoom.js.map +1 -1
- package/lib/module/components/MainComponents/ChatWrapper.js +43 -20
- package/lib/module/components/MainComponents/ChatWrapper.js.map +1 -1
- package/lib/module/components/MainComponents/LanguageSelectorModal.js +37 -10
- package/lib/module/components/MainComponents/LanguageSelectorModal.js.map +1 -1
- package/lib/module/components/MainComponents/LoginWrapper.js +2 -1
- package/lib/module/components/MainComponents/LoginWrapper.js.map +1 -1
- package/lib/module/components/MainComponents/MediaMessage.js +72 -29
- package/lib/module/components/MainComponents/MediaMessage.js.map +1 -1
- package/lib/module/components/MainComponents/MessageContainer.js +5 -1
- package/lib/module/components/MainComponents/MessageContainer.js.map +1 -1
- package/lib/module/components/MainComponents/MessageList.js +22 -8
- 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/RNStyled.js +12 -4
- package/lib/module/components/MainComponents/RNStyled.js.map +1 -1
- package/lib/module/components/MainComponents/ReduxWrapper.js +25 -8
- package/lib/module/components/MainComponents/ReduxWrapper.js.map +1 -1
- package/lib/module/components/MainComponents/RoomList.js +213 -38
- package/lib/module/components/MainComponents/RoomList.js.map +1 -1
- package/lib/module/components/MainComponents/Select.js +29 -8
- package/lib/module/components/MainComponents/Select.js.map +1 -1
- package/lib/module/components/Menu/HeaderRoomListMenu.js +331 -102
- package/lib/module/components/Menu/HeaderRoomListMenu.js.map +1 -1
- package/lib/module/components/MessageBubble/BottomReplyContainer.js +24 -8
- package/lib/module/components/MessageBubble/BottomReplyContainer.js.map +1 -1
- package/lib/module/components/MessageBubble/Message.js +47 -25
- package/lib/module/components/MessageBubble/Message.js.map +1 -1
- package/lib/module/components/MessageBubble/MessageInteractions.js +15 -4
- package/lib/module/components/MessageBubble/MessageInteractions.js.map +1 -1
- package/lib/module/components/MessageBubble/MessageReaction.js +10 -5
- package/lib/module/components/MessageBubble/MessageReaction.js.map +1 -1
- package/lib/module/components/Modals/AddMembersModal/AddMembersModal.js +2 -6
- package/lib/module/components/Modals/AddMembersModal/AddMembersModal.js.map +1 -1
- package/lib/module/components/Modals/AttachSheet/AttachSheet.js +336 -121
- package/lib/module/components/Modals/AttachSheet/AttachSheet.js.map +1 -1
- package/lib/module/components/Modals/ChatProfileModal/ChatProfileModal.js +603 -208
- package/lib/module/components/Modals/ChatProfileModal/ChatProfileModal.js.map +1 -1
- package/lib/module/components/Modals/ChatProfileModal/DeleteChatModal.js +6 -8
- package/lib/module/components/Modals/ChatProfileModal/DeleteChatModal.js.map +1 -1
- package/lib/module/components/Modals/ChatProfileModal/ReportChatModal.js +225 -0
- package/lib/module/components/Modals/ChatProfileModal/ReportChatModal.js.map +1 -0
- package/lib/module/components/Modals/FilePreviewModal/FilePreviewModal.js +90 -37
- package/lib/module/components/Modals/FilePreviewModal/FilePreviewModal.js.map +1 -1
- package/lib/module/components/Modals/FilePreviewModal/PdfView.js +2 -1
- package/lib/module/components/Modals/FilePreviewModal/PdfView.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/ModalHeaderComponent.js +8 -2
- package/lib/module/components/Modals/ModalHeaderComponent.js.map +1 -1
- package/lib/module/components/Modals/ModalWrapper/ModalWrapper.js +10 -10
- package/lib/module/components/Modals/ModalWrapper/ModalWrapper.js.map +1 -1
- package/lib/module/components/Modals/NewChatModal/ModalContent.js +4 -7
- package/lib/module/components/Modals/NewChatModal/ModalContent.js.map +1 -1
- package/lib/module/components/Modals/NewChatModal/NewChatModal.js +208 -108
- 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 +555 -0
- package/lib/module/components/Modals/ProfileHeader/ProfileHeader.js.map +1 -0
- package/lib/module/components/Modals/ProfileHeader/ProfileMenu.js +210 -0
- package/lib/module/components/Modals/ProfileHeader/ProfileMenu.js.map +1 -0
- package/lib/module/components/Modals/SelectUsersModal/SelectUsersModal.js +8 -10
- package/lib/module/components/Modals/SelectUsersModal/SelectUsersModal.js.map +1 -1
- package/lib/module/components/Modals/SettingsModals/ManageDataModal/ManageDataModal.js +8 -6
- package/lib/module/components/Modals/SettingsModals/ManageDataModal/ManageDataModal.js.map +1 -1
- package/lib/module/components/Modals/SettingsModals/Referrals/Referrals.js +7 -2
- package/lib/module/components/Modals/SettingsModals/Referrals/Referrals.js.map +1 -1
- package/lib/module/components/Modals/SettingsModals/SharedStyledComponents.js +7 -3
- package/lib/module/components/Modals/SettingsModals/SharedStyledComponents.js.map +1 -1
- package/lib/module/components/Modals/SettingsModals/Visibility/RadioInput.js +10 -6
- package/lib/module/components/Modals/SettingsModals/Visibility/RadioInput.js.map +1 -1
- package/lib/module/components/Modals/SettingsModals/Visibility/VisibilityModal.js +7 -6
- package/lib/module/components/Modals/SettingsModals/Visibility/VisibilityModal.js.map +1 -1
- package/lib/module/components/Modals/UserProfileModal/EditUserModal.js +11 -24
- package/lib/module/components/Modals/UserProfileModal/EditUserModal.js.map +1 -1
- package/lib/module/components/Modals/UserProfileModal/UserProfileModal.js +512 -248
- package/lib/module/components/Modals/UserProfileModal/UserProfileModal.js.map +1 -1
- package/lib/module/components/Modals/UserSettingsModal/UserSettingsModal.js +79 -48
- package/lib/module/components/Modals/UserSettingsModal/UserSettingsModal.js.map +1 -1
- package/lib/module/components/Modals/styledModalComponents.js +67 -16
- package/lib/module/components/Modals/styledModalComponents.js.map +1 -1
- package/lib/module/components/RoomComponents/ChatRoomItem.js +30 -10
- package/lib/module/components/RoomComponents/ChatRoomItem.js.map +1 -1
- package/lib/module/components/RoomComponents/styled/LastAudioMessage.js +6 -2
- package/lib/module/components/RoomComponents/styled/LastAudioMessage.js.map +1 -1
- package/lib/module/components/RoomComponents/styled/LastMessageFile.js +22 -3
- package/lib/module/components/RoomComponents/styled/LastMessageFile.js.map +1 -1
- package/lib/module/components/RoomComponents/styled/LastMessagePhoto.js +17 -3
- package/lib/module/components/RoomComponents/styled/LastMessagePhoto.js.map +1 -1
- package/lib/module/components/RoomComponents/styled/LastMessageVideo.js +17 -3
- package/lib/module/components/RoomComponents/styled/LastMessageVideo.js.map +1 -1
- package/lib/module/components/RoomComponents/styled/StyledRoomComponents.js +6 -0
- package/lib/module/components/RoomComponents/styled/StyledRoomComponents.js.map +1 -1
- package/lib/module/components/Thread/ThreadWrapper.js +9 -2
- package/lib/module/components/Thread/ThreadWrapper.js.map +1 -1
- package/lib/module/components/Toast/Toast.js +3 -1
- package/lib/module/components/Toast/Toast.js.map +1 -1
- package/lib/module/components/VideoCalls/VideoCallSession.js +6 -3
- package/lib/module/components/VideoCalls/VideoCallSession.js.map +1 -1
- package/lib/module/components/styled/AudioMessage.js +18 -12
- package/lib/module/components/styled/AudioMessage.js.map +1 -1
- package/lib/module/components/styled/Button.js +17 -9
- package/lib/module/components/styled/Button.js.map +1 -1
- package/lib/module/components/styled/DateLabel.js +8 -5
- package/lib/module/components/styled/DateLabel.js.map +1 -1
- package/lib/module/components/styled/MediaModal.js +29 -23
- package/lib/module/components/styled/MediaModal.js.map +1 -1
- package/lib/module/components/styled/MessageImage.js +37 -9
- package/lib/module/components/styled/MessageImage.js.map +1 -1
- package/lib/module/components/styled/RoomListComponents/index.js +62 -39
- package/lib/module/components/styled/RoomListComponents/index.js.map +1 -1
- package/lib/module/components/styled/SendInput.js +94 -20
- package/lib/module/components/styled/SendInput.js.map +1 -1
- package/lib/module/components/styled/StyledComponents.js +75 -25
- package/lib/module/components/styled/StyledComponents.js.map +1 -1
- package/lib/module/components/styled/StyledInput.js +32 -18
- package/lib/module/components/styled/StyledInput.js.map +1 -1
- package/lib/module/components/styled/StyledInputComponents/CustomTypingIndicator.js +13 -8
- package/lib/module/components/styled/StyledInputComponents/CustomTypingIndicator.js.map +1 -1
- package/lib/module/components/styled/StyledInputComponents/MediaComponents.js +20 -9
- package/lib/module/components/styled/StyledInputComponents/MediaComponents.js.map +1 -1
- package/lib/module/components/styled/StyledInputComponents/StyledInputComponents.js +50 -22
- package/lib/module/components/styled/StyledInputComponents/StyledInputComponents.js.map +1 -1
- package/lib/module/components/styled/TreadLabel.js +6 -3
- package/lib/module/components/styled/TreadLabel.js.map +1 -1
- package/lib/module/components/styled/UnsupportedType.js +14 -4
- package/lib/module/components/styled/UnsupportedType.js.map +1 -1
- package/lib/module/components/styled/VideoMessage.js +120 -62
- package/lib/module/components/styled/VideoMessage.js.map +1 -1
- package/lib/module/context/MessageNotificationContext.js +14 -3
- package/lib/module/context/MessageNotificationContext.js.map +1 -1
- package/lib/module/context/xmppProvider.js +184 -60
- package/lib/module/context/xmppProvider.js.map +1 -1
- package/lib/module/helpers/createMessageFromXml.js +19 -1
- package/lib/module/helpers/createMessageFromXml.js.map +1 -1
- package/lib/module/helpers/ensureScopedChatCache.js +2 -2
- package/lib/module/helpers/ensureScopedChatCache.js.map +1 -1
- package/lib/module/helpers/getChatBackground.js +22 -0
- package/lib/module/helpers/getChatBackground.js.map +1 -0
- package/lib/module/helpers/getDateLabelColor.js +4 -1
- package/lib/module/helpers/getDateLabelColor.js.map +1 -1
- package/lib/module/helpers/getDisplayFileName.js +73 -0
- package/lib/module/helpers/getDisplayFileName.js.map +1 -0
- package/lib/module/helpers/getIconColor.js +5 -1
- package/lib/module/helpers/getIconColor.js.map +1 -1
- package/lib/module/helpers/getSenderNameColor.js +4 -1
- package/lib/module/helpers/getSenderNameColor.js.map +1 -1
- package/lib/module/helpers/getServerReadTimestamp.js +181 -0
- package/lib/module/helpers/getServerReadTimestamp.js.map +1 -0
- package/lib/module/helpers/historyPreloadScheduler.js +66 -3
- package/lib/module/helpers/historyPreloadScheduler.js.map +1 -1
- package/lib/module/helpers/initXmppRooms.js +14 -8
- package/lib/module/helpers/initXmppRooms.js.map +1 -1
- package/lib/module/helpers/insertMessageWithDelimiter.js +52 -9
- package/lib/module/helpers/insertMessageWithDelimiter.js.map +1 -1
- package/lib/module/helpers/isOwnMessage.js +70 -0
- package/lib/module/helpers/isOwnMessage.js.map +1 -0
- package/lib/module/helpers/keyboardLayout.js +12 -2
- package/lib/module/helpers/keyboardLayout.js.map +1 -1
- package/lib/module/helpers/markdownParser.js +27 -5
- package/lib/module/helpers/markdownParser.js.map +1 -1
- package/lib/module/helpers/mediaLibraryRuntime.js +25 -0
- package/lib/module/helpers/mediaLibraryRuntime.js.map +1 -0
- package/lib/module/helpers/mimeToExtension.js +6 -13
- package/lib/module/helpers/mimeToExtension.js.map +1 -1
- package/lib/module/helpers/msgSortableMs.js +32 -0
- package/lib/module/helpers/msgSortableMs.js.map +1 -0
- package/lib/module/helpers/parseMessageBody.js +82 -24
- package/lib/module/helpers/parseMessageBody.js.map +1 -1
- package/lib/module/helpers/persistCrypto.js +115 -0
- package/lib/module/helpers/persistCrypto.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/resolveInitBeforeLoadUser.js +130 -16
- package/lib/module/helpers/resolveInitBeforeLoadUser.js.map +1 -1
- package/lib/module/helpers/secureFileUrl.js +91 -0
- package/lib/module/helpers/secureFileUrl.js.map +1 -0
- package/lib/module/helpers/secureKeyValue.js +75 -0
- package/lib/module/helpers/secureKeyValue.js.map +1 -0
- package/lib/module/helpers/secureStoreRuntime.js +52 -0
- package/lib/module/helpers/secureStoreRuntime.js.map +1 -0
- package/lib/module/helpers/secureUserStorage.js +72 -0
- package/lib/module/helpers/secureUserStorage.js.map +1 -0
- package/lib/module/helpers/shallowEqual.js +31 -0
- package/lib/module/helpers/shallowEqual.js.map +1 -0
- package/lib/module/helpers/sheetGestures.js +26 -0
- package/lib/module/helpers/sheetGestures.js.map +1 -0
- package/lib/module/hooks/useChatRoomFocus.js +46 -13
- package/lib/module/hooks/useChatRoomFocus.js.map +1 -1
- package/lib/module/hooks/useChatWrapperInit.js +30 -10
- package/lib/module/hooks/useChatWrapperInit.js.map +1 -1
- package/lib/module/hooks/useComposing.js +28 -1
- package/lib/module/hooks/useComposing.js.map +1 -1
- package/lib/module/hooks/useCustomTypingIndicator.js +8 -3
- package/lib/module/hooks/useCustomTypingIndicator.js.map +1 -1
- package/lib/module/hooks/useFileToken.js +5 -0
- package/lib/module/hooks/useFileToken.js.map +1 -0
- package/lib/module/hooks/useLogout.js +33 -10
- 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 +52 -16
- package/lib/module/hooks/useSendMessage.js.map +1 -1
- package/lib/module/hooks/useTheme.js +30 -0
- package/lib/module/hooks/useTheme.js.map +1 -0
- package/lib/module/hooks/useUnreadMessagesCounter.js +6 -1
- package/lib/module/hooks/useUnreadMessagesCounter.js.map +1 -1
- package/lib/module/i18n/strings.js +163 -37
- package/lib/module/i18n/strings.js.map +1 -1
- package/lib/module/main.js +17 -2
- package/lib/module/main.js.map +1 -1
- package/lib/module/networking/api-requests/auth.api.js +131 -59
- package/lib/module/networking/api-requests/auth.api.js.map +1 -1
- package/lib/module/networking/api-requests/push.api.js +119 -45
- package/lib/module/networking/api-requests/push.api.js.map +1 -1
- package/lib/module/networking/api-requests/roomMembers.api.js +1 -1
- package/lib/module/networking/api-requests/roomMembers.api.js.map +1 -1
- package/lib/module/networking/api-requests/rooms.api.js +21 -9
- package/lib/module/networking/api-requests/rooms.api.js.map +1 -1
- package/lib/module/networking/api-requests/user.api.js +64 -7
- package/lib/module/networking/api-requests/user.api.js.map +1 -1
- package/lib/module/networking/apiClient.js +61 -113
- package/lib/module/networking/apiClient.js.map +1 -1
- package/lib/module/networking/authRefresh.js +321 -0
- package/lib/module/networking/authRefresh.js.map +1 -0
- package/lib/module/networking/stanzaHandlers.js +41 -28
- package/lib/module/networking/stanzaHandlers.js.map +1 -1
- package/lib/module/networking/xmpp/flushLastViewedToPrivateStore.js +46 -8
- package/lib/module/networking/xmpp/flushLastViewedToPrivateStore.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 +124 -8
- package/lib/module/networking/xmppClient.js.map +1 -1
- package/lib/module/roomStore/chatSettingsSlice.js +26 -7
- package/lib/module/roomStore/chatSettingsSlice.js.map +1 -1
- package/lib/module/roomStore/index.js +37 -4
- package/lib/module/roomStore/index.js.map +1 -1
- package/lib/module/roomStore/persistence.js +223 -22
- package/lib/module/roomStore/persistence.js.map +1 -1
- package/lib/module/roomStore/roomsSlice.js +139 -34
- package/lib/module/roomStore/roomsSlice.js.map +1 -1
- package/lib/module/services/pushRegistration.js +239 -0
- package/lib/module/services/pushRegistration.js.map +1 -0
- package/lib/module/services/pushSubscriptionService.js +15 -37
- package/lib/module/services/pushSubscriptionService.js.map +1 -1
- package/lib/module/theme/index.js +7 -0
- package/lib/module/theme/index.js.map +1 -0
- package/lib/module/theme/styled.d.js +6 -0
- package/lib/module/theme/styled.d.js.map +1 -0
- package/lib/module/theme/theme.js +131 -0
- package/lib/module/theme/theme.js.map +1 -0
- package/lib/module/version.js +1 -1
- package/lib/typescript/assets/EmptyChatIllustration.d.ts +1 -0
- package/lib/typescript/assets/EmptyChatIllustration.d.ts.map +1 -1
- package/lib/typescript/assets/icons.d.ts +24 -0
- package/lib/typescript/assets/icons.d.ts.map +1 -1
- package/lib/typescript/components/AuthForms/Login.d.ts.map +1 -1
- package/lib/typescript/components/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/lib/typescript/components/ExampleComponents/CustomMessage.d.ts.map +1 -1
- package/lib/typescript/components/Header/HeaderRoomList.d.ts.map +1 -1
- package/lib/typescript/components/InputComponents/Search.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/LanguageSelectorModal.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/LoginWrapper.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/MediaMessage.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/MessageContainer.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/MessageList.d.ts +10 -1
- package/lib/typescript/components/MainComponents/MessageList.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/ProfileImagePlaceholder.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/ReduxWrapper.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/MainComponents/Select.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/MessageBubble/BottomReplyContainer.d.ts.map +1 -1
- package/lib/typescript/components/MessageBubble/Message.d.ts.map +1 -1
- package/lib/typescript/components/MessageBubble/MessageInteractions.d.ts.map +1 -1
- package/lib/typescript/components/MessageBubble/MessageReaction.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/DeleteChatModal.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/FilePreviewModal/PdfView.d.ts.map +1 -1
- package/lib/typescript/components/Modals/Modal/Modal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/ModalHeaderComponent.d.ts.map +1 -1
- package/lib/typescript/components/Modals/ModalWrapper/ModalWrapper.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/SettingsModals/ManageDataModal/ManageDataModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/SettingsModals/Referrals/Referrals.d.ts.map +1 -1
- package/lib/typescript/components/Modals/SettingsModals/SharedStyledComponents.d.ts +2 -2
- package/lib/typescript/components/Modals/SettingsModals/SharedStyledComponents.d.ts.map +1 -1
- package/lib/typescript/components/Modals/SettingsModals/Visibility/RadioInput.d.ts.map +1 -1
- package/lib/typescript/components/Modals/SettingsModals/Visibility/VisibilityModal.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 +2 -0
- 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/RoomComponents/styled/LastAudioMessage.d.ts.map +1 -1
- package/lib/typescript/components/RoomComponents/styled/LastMessageFile.d.ts +1 -1
- package/lib/typescript/components/RoomComponents/styled/LastMessageFile.d.ts.map +1 -1
- package/lib/typescript/components/RoomComponents/styled/LastMessagePhoto.d.ts +1 -1
- package/lib/typescript/components/RoomComponents/styled/LastMessagePhoto.d.ts.map +1 -1
- package/lib/typescript/components/RoomComponents/styled/LastMessageVideo.d.ts +1 -1
- package/lib/typescript/components/RoomComponents/styled/LastMessageVideo.d.ts.map +1 -1
- package/lib/typescript/components/RoomComponents/styled/StyledRoomComponents.d.ts.map +1 -1
- package/lib/typescript/components/Thread/ThreadWrapper.d.ts.map +1 -1
- package/lib/typescript/components/VideoCalls/VideoCallSession.d.ts.map +1 -1
- package/lib/typescript/components/styled/AudioMessage.d.ts.map +1 -1
- package/lib/typescript/components/styled/Button.d.ts.map +1 -1
- package/lib/typescript/components/styled/DateLabel.d.ts.map +1 -1
- package/lib/typescript/components/styled/MediaModal.d.ts +2 -2
- package/lib/typescript/components/styled/MediaModal.d.ts.map +1 -1
- package/lib/typescript/components/styled/MessageImage.d.ts +14 -0
- package/lib/typescript/components/styled/MessageImage.d.ts.map +1 -1
- package/lib/typescript/components/styled/RoomListComponents/index.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/StyledInput.d.ts.map +1 -1
- package/lib/typescript/components/styled/StyledInputComponents/MediaComponents.d.ts.map +1 -1
- package/lib/typescript/components/styled/StyledInputComponents/StyledInputComponents.d.ts.map +1 -1
- package/lib/typescript/components/styled/TreadLabel.d.ts.map +1 -1
- package/lib/typescript/components/styled/UnsupportedType.d.ts.map +1 -1
- package/lib/typescript/components/styled/VideoMessage.d.ts +8 -0
- package/lib/typescript/components/styled/VideoMessage.d.ts.map +1 -1
- package/lib/typescript/context/MessageNotificationContext.d.ts.map +1 -1
- package/lib/typescript/context/xmppProvider.d.ts.map +1 -1
- package/lib/typescript/helpers/createMessageFromXml.d.ts.map +1 -1
- package/lib/typescript/helpers/getAvatarColor.d.ts +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/getDateLabelColor.d.ts +3 -7
- package/lib/typescript/helpers/getDateLabelColor.d.ts.map +1 -1
- package/lib/typescript/helpers/getDisplayFileName.d.ts +49 -0
- package/lib/typescript/helpers/getDisplayFileName.d.ts.map +1 -0
- package/lib/typescript/helpers/getIconColor.d.ts +4 -7
- package/lib/typescript/helpers/getIconColor.d.ts.map +1 -1
- package/lib/typescript/helpers/getSenderNameColor.d.ts +3 -7
- package/lib/typescript/helpers/getSenderNameColor.d.ts.map +1 -1
- package/lib/typescript/helpers/getServerReadTimestamp.d.ts +108 -0
- package/lib/typescript/helpers/getServerReadTimestamp.d.ts.map +1 -0
- package/lib/typescript/helpers/historyPreloadScheduler.d.ts.map +1 -1
- package/lib/typescript/helpers/initXmppRooms.d.ts.map +1 -1
- package/lib/typescript/helpers/insertMessageWithDelimiter.d.ts +1 -1
- package/lib/typescript/helpers/insertMessageWithDelimiter.d.ts.map +1 -1
- package/lib/typescript/helpers/isOwnMessage.d.ts +36 -0
- package/lib/typescript/helpers/isOwnMessage.d.ts.map +1 -0
- package/lib/typescript/helpers/keyboardLayout.d.ts +5 -1
- package/lib/typescript/helpers/keyboardLayout.d.ts.map +1 -1
- package/lib/typescript/helpers/markdownParser.d.ts +8 -1
- package/lib/typescript/helpers/markdownParser.d.ts.map +1 -1
- package/lib/typescript/helpers/mediaLibraryRuntime.d.ts +3 -0
- package/lib/typescript/helpers/mediaLibraryRuntime.d.ts.map +1 -0
- package/lib/typescript/helpers/mimeToExtension.d.ts +0 -15
- package/lib/typescript/helpers/mimeToExtension.d.ts.map +1 -1
- package/lib/typescript/helpers/msgSortableMs.d.ts +2 -0
- package/lib/typescript/helpers/msgSortableMs.d.ts.map +1 -0
- package/lib/typescript/helpers/parseMessageBody.d.ts +8 -1
- package/lib/typescript/helpers/parseMessageBody.d.ts.map +1 -1
- package/lib/typescript/helpers/persistCrypto.d.ts +13 -0
- package/lib/typescript/helpers/persistCrypto.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/resolveInitBeforeLoadUser.d.ts.map +1 -1
- package/lib/typescript/helpers/secureFileUrl.d.ts +7 -0
- package/lib/typescript/helpers/secureFileUrl.d.ts.map +1 -0
- package/lib/typescript/helpers/secureKeyValue.d.ts +13 -0
- package/lib/typescript/helpers/secureKeyValue.d.ts.map +1 -0
- package/lib/typescript/helpers/secureStoreRuntime.d.ts +29 -0
- package/lib/typescript/helpers/secureStoreRuntime.d.ts.map +1 -0
- package/lib/typescript/helpers/secureUserStorage.d.ts +23 -0
- package/lib/typescript/helpers/secureUserStorage.d.ts.map +1 -0
- package/lib/typescript/helpers/shallowEqual.d.ts +11 -0
- package/lib/typescript/helpers/shallowEqual.d.ts.map +1 -0
- package/lib/typescript/helpers/sheetGestures.d.ts +20 -0
- package/lib/typescript/helpers/sheetGestures.d.ts.map +1 -0
- package/lib/typescript/hooks/useChatRoomFocus.d.ts +4 -1
- package/lib/typescript/hooks/useChatRoomFocus.d.ts.map +1 -1
- package/lib/typescript/hooks/useChatWrapperInit.d.ts.map +1 -1
- package/lib/typescript/hooks/useComposing.d.ts.map +1 -1
- package/lib/typescript/hooks/useCustomTypingIndicator.d.ts +2 -0
- package/lib/typescript/hooks/useCustomTypingIndicator.d.ts.map +1 -1
- package/lib/typescript/hooks/useFileToken.d.ts +2 -0
- package/lib/typescript/hooks/useFileToken.d.ts.map +1 -0
- 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/hooks/useTheme.d.ts +16 -0
- package/lib/typescript/hooks/useTheme.d.ts.map +1 -0
- package/lib/typescript/hooks/useUnreadMessagesCounter.d.ts +1 -0
- package/lib/typescript/hooks/useUnreadMessagesCounter.d.ts.map +1 -1
- package/lib/typescript/i18n/strings.d.ts.map +1 -1
- package/lib/typescript/main.d.ts +16 -2
- package/lib/typescript/main.d.ts.map +1 -1
- package/lib/typescript/networking/api-requests/auth.api.d.ts +3 -1
- package/lib/typescript/networking/api-requests/auth.api.d.ts.map +1 -1
- package/lib/typescript/networking/api-requests/push.api.d.ts +46 -3
- package/lib/typescript/networking/api-requests/push.api.d.ts.map +1 -1
- package/lib/typescript/networking/api-requests/rooms.api.d.ts +1 -0
- package/lib/typescript/networking/api-requests/rooms.api.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/apiClient.d.ts +12 -6
- package/lib/typescript/networking/apiClient.d.ts.map +1 -1
- package/lib/typescript/networking/authRefresh.d.ts +95 -0
- package/lib/typescript/networking/authRefresh.d.ts.map +1 -0
- package/lib/typescript/networking/stanzaHandlers.d.ts.map +1 -1
- package/lib/typescript/networking/xmpp/flushLastViewedToPrivateStore.d.ts +10 -2
- package/lib/typescript/networking/xmpp/flushLastViewedToPrivateStore.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 +14 -0
- package/lib/typescript/networking/xmppClient.d.ts.map +1 -1
- package/lib/typescript/roomStore/chatSettingsSlice.d.ts +16 -0
- package/lib/typescript/roomStore/chatSettingsSlice.d.ts.map +1 -1
- package/lib/typescript/roomStore/index.d.ts.map +1 -1
- package/lib/typescript/roomStore/persistence.d.ts +18 -1
- package/lib/typescript/roomStore/persistence.d.ts.map +1 -1
- package/lib/typescript/roomStore/roomsSlice.d.ts +43 -3
- package/lib/typescript/roomStore/roomsSlice.d.ts.map +1 -1
- package/lib/typescript/services/pushRegistration.d.ts +21 -0
- package/lib/typescript/services/pushRegistration.d.ts.map +1 -0
- package/lib/typescript/services/pushSubscriptionService.d.ts +1 -5
- package/lib/typescript/services/pushSubscriptionService.d.ts.map +1 -1
- package/lib/typescript/theme/index.d.ts +5 -0
- package/lib/typescript/theme/index.d.ts.map +1 -0
- package/lib/typescript/theme/theme.d.ts +113 -0
- package/lib/typescript/theme/theme.d.ts.map +1 -0
- package/lib/typescript/types/models/room.model.d.ts +1 -0
- package/lib/typescript/types/models/room.model.d.ts.map +1 -1
- package/lib/typescript/types/types.d.ts +70 -5
- package/lib/typescript/types/types.d.ts.map +1 -1
- package/lib/typescript/version.d.ts +1 -1
- package/package.json +41 -28
- package/src/assets/EmptyChatIllustration.tsx +7 -5
- package/src/assets/icons.tsx +72 -9
- package/src/components/AuthForms/Login.tsx +14 -12
- package/src/components/ContextMenu/ContextMenuComponents.tsx +4 -4
- package/src/components/DropdownMenu/DropdownMenu.tsx +14 -6
- package/src/components/ExampleComponents/CustomMessage.tsx +9 -8
- package/src/components/ExampleComponents/CustomTypingIndicatorExamples.tsx +6 -6
- package/src/components/Header/HeaderRoomList.tsx +35 -8
- package/src/components/InputComponents/Search.tsx +7 -4
- package/src/components/MainComponents/ChatHeader.tsx +18 -6
- package/src/components/MainComponents/ChatRoom.tsx +164 -15
- package/src/components/MainComponents/ChatWrapper.tsx +44 -26
- package/src/components/MainComponents/LanguageSelectorModal.tsx +33 -7
- package/src/components/MainComponents/LoginWrapper.tsx +1 -0
- package/src/components/MainComponents/MediaMessage.tsx +63 -26
- package/src/components/MainComponents/MessageContainer.tsx +5 -1
- package/src/components/MainComponents/MessageList.tsx +36 -7
- package/src/components/MainComponents/ProfileImagePlaceholder.tsx +21 -14
- package/src/components/MainComponents/RNStyled.tsx +4 -4
- package/src/components/MainComponents/ReduxWrapper.tsx +23 -7
- package/src/components/MainComponents/RoomList.tsx +243 -40
- package/src/components/MainComponents/Select.tsx +13 -8
- package/src/components/Menu/HeaderRoomListMenu.tsx +347 -77
- package/src/components/MessageBubble/BottomReplyContainer.tsx +16 -11
- package/src/components/MessageBubble/Message.tsx +48 -25
- package/src/components/MessageBubble/MessageInteractions.tsx +17 -4
- package/src/components/MessageBubble/MessageReaction.tsx +9 -4
- package/src/components/Modals/AddMembersModal/AddMembersModal.tsx +2 -2
- package/src/components/Modals/AttachSheet/AttachSheet.tsx +376 -106
- package/src/components/Modals/ChatProfileModal/ChatProfileModal.tsx +639 -283
- package/src/components/Modals/ChatProfileModal/DeleteChatModal.tsx +6 -4
- package/src/components/Modals/ChatProfileModal/ReportChatModal.tsx +248 -0
- package/src/components/Modals/FilePreviewModal/FilePreviewModal.tsx +93 -47
- package/src/components/Modals/FilePreviewModal/PdfView.tsx +2 -1
- package/src/components/Modals/Modal/Modal.tsx +7 -0
- package/src/components/Modals/ModalHeaderComponent.tsx +9 -2
- package/src/components/Modals/ModalWrapper/ModalWrapper.tsx +14 -6
- package/src/components/Modals/NewChatModal/ModalContent.tsx +8 -5
- package/src/components/Modals/NewChatModal/NewChatModal.tsx +223 -119
- package/src/components/Modals/NewChatModal/UpdNewChatModal.tsx +12 -1
- package/src/components/Modals/ProfileHeader/ProfileHeader.tsx +624 -0
- package/src/components/Modals/ProfileHeader/ProfileMenu.tsx +224 -0
- package/src/components/Modals/SelectUsersModal/SelectUsersModal.tsx +16 -7
- package/src/components/Modals/SettingsModals/ManageDataModal/ManageDataModal.tsx +8 -6
- package/src/components/Modals/SettingsModals/Referrals/Referrals.tsx +5 -3
- package/src/components/Modals/SettingsModals/SharedStyledComponents.ts +4 -4
- package/src/components/Modals/SettingsModals/Visibility/RadioInput.tsx +9 -5
- package/src/components/Modals/SettingsModals/Visibility/VisibilityModal.tsx +7 -7
- package/src/components/Modals/UserProfileModal/EditUserModal.tsx +12 -26
- package/src/components/Modals/UserProfileModal/UserProfileModal.tsx +621 -307
- package/src/components/Modals/UserSettingsModal/UserSettingsModal.tsx +84 -58
- package/src/components/Modals/styledModalComponents.tsx +31 -16
- package/src/components/RoomComponents/ChatRoomItem.tsx +30 -6
- package/src/components/RoomComponents/styled/LastAudioMessage.tsx +4 -2
- package/src/components/RoomComponents/styled/LastMessageFile.tsx +28 -4
- package/src/components/RoomComponents/styled/LastMessagePhoto.tsx +18 -3
- package/src/components/RoomComponents/styled/LastMessageVideo.tsx +18 -3
- package/src/components/RoomComponents/styled/StyledRoomComponents.ts +2 -0
- package/src/components/Thread/ThreadWrapper.tsx +6 -5
- package/src/components/Toast/Toast.tsx +1 -1
- package/src/components/VideoCalls/VideoCallSession.tsx +8 -3
- package/src/components/styled/AudioMessage.tsx +14 -10
- package/src/components/styled/Button.tsx +15 -8
- package/src/components/styled/DateLabel.tsx +7 -3
- package/src/components/styled/MediaModal.tsx +30 -25
- package/src/components/styled/MessageImage.tsx +53 -7
- package/src/components/styled/RoomListComponents/index.tsx +60 -35
- package/src/components/styled/SendInput.tsx +106 -20
- package/src/components/styled/StyledComponents.ts +38 -25
- package/src/components/styled/StyledInput.tsx +35 -21
- package/src/components/styled/StyledInputComponents/CustomTypingIndicator.tsx +8 -8
- package/src/components/styled/StyledInputComponents/MediaComponents.tsx +20 -7
- package/src/components/styled/StyledInputComponents/StyledInputComponents.tsx +26 -23
- package/src/components/styled/TreadLabel.tsx +9 -3
- package/src/components/styled/UnsupportedType.tsx +14 -4
- package/src/components/styled/VideoMessage.tsx +131 -54
- package/src/context/MessageNotificationContext.tsx +18 -4
- package/src/context/xmppProvider.tsx +216 -57
- package/src/helpers/createMessageFromXml.ts +20 -1
- package/src/helpers/ensureScopedChatCache.ts +2 -2
- package/src/helpers/getChatBackground.ts +20 -0
- package/src/helpers/getDateLabelColor.ts +5 -3
- package/src/helpers/getDisplayFileName.ts +87 -0
- package/src/helpers/getIconColor.ts +6 -3
- package/src/helpers/getSenderNameColor.ts +5 -3
- package/src/helpers/getServerReadTimestamp.ts +197 -0
- package/src/helpers/historyPreloadScheduler.ts +80 -3
- package/src/helpers/initXmppRooms.tsx +14 -10
- package/src/helpers/insertMessageWithDelimiter.ts +55 -19
- package/src/helpers/isOwnMessage.ts +90 -0
- package/src/helpers/keyboardLayout.ts +23 -2
- package/src/helpers/markdownParser.tsx +29 -5
- package/src/helpers/mediaLibraryRuntime.ts +25 -0
- package/src/helpers/mimeToExtension.ts +6 -22
- package/src/helpers/msgSortableMs.ts +25 -0
- package/src/helpers/parseMessageBody.tsx +79 -26
- package/src/helpers/persistCrypto.ts +127 -0
- package/src/helpers/pickImageAsset.ts +68 -0
- package/src/helpers/pushPayload.ts +62 -0
- package/src/helpers/resolveInitBeforeLoadUser.ts +125 -18
- package/src/helpers/secureFileUrl.ts +103 -0
- package/src/helpers/secureKeyValue.ts +80 -0
- package/src/helpers/secureStoreRuntime.ts +62 -0
- package/src/helpers/secureUserStorage.ts +80 -0
- package/src/helpers/shallowEqual.ts +33 -0
- package/src/helpers/sheetGestures.ts +25 -0
- package/src/hooks/useChatRoomFocus.ts +49 -9
- package/src/hooks/useChatWrapperInit.ts +30 -10
- package/src/hooks/useComposing.tsx +37 -1
- package/src/hooks/useCustomTypingIndicator.tsx +7 -3
- package/src/hooks/useFileToken.ts +7 -0
- package/src/hooks/useLogout.tsx +39 -12
- package/src/hooks/usePendingNotification.ts +5 -11
- package/src/hooks/useSendMessage.tsx +60 -15
- package/src/hooks/useTheme.ts +41 -0
- package/src/hooks/useUnreadMessagesCounter.ts +11 -0
- package/src/i18n/strings.ts +163 -37
- package/src/main.ts +57 -2
- package/src/networking/api-requests/auth.api.ts +156 -48
- package/src/networking/api-requests/push.api.ts +185 -62
- package/src/networking/api-requests/roomMembers.api.ts +1 -1
- package/src/networking/api-requests/rooms.api.ts +18 -9
- package/src/networking/api-requests/user.api.ts +79 -7
- package/src/networking/apiClient.ts +68 -123
- package/src/networking/authRefresh.ts +451 -0
- package/src/networking/stanzaHandlers.ts +44 -28
- package/src/networking/xmpp/flushLastViewedToPrivateStore.ts +71 -10
- package/src/networking/xmpp/presenceInRoom.xmpp.ts +6 -1
- package/src/networking/xmpp/subscribeToRoomMessages.xmpp.ts +12 -1
- package/src/networking/xmppClient.ts +141 -9
- package/src/roomStore/chatSettingsSlice.ts +34 -10
- package/src/roomStore/index.ts +40 -4
- package/src/roomStore/persistence.ts +234 -24
- package/src/roomStore/roomsSlice.ts +161 -29
- package/src/services/pushRegistration.ts +356 -0
- package/src/services/pushSubscriptionService.ts +18 -47
- package/src/theme/index.ts +10 -0
- package/src/theme/styled.d.ts +9 -0
- package/src/theme/theme.ts +243 -0
- package/src/types/models/room.model.ts +1 -0
- package/src/types/types.ts +96 -5
- package/src/version.ts +1 -1
- package/lib/commonjs/context/PushNotificationProvider.js +0 -79
- package/lib/commonjs/context/PushNotificationProvider.js.map +0 -1
- package/lib/commonjs/hooks/usePushNotifications.js +0 -110
- package/lib/commonjs/hooks/usePushNotifications.js.map +0 -1
- package/lib/commonjs/services/pushNotifications.js +0 -143
- package/lib/commonjs/services/pushNotifications.js.map +0 -1
- package/lib/module/context/PushNotificationProvider.js +0 -79
- package/lib/module/context/PushNotificationProvider.js.map +0 -1
- package/lib/module/hooks/usePushNotifications.js +0 -106
- package/lib/module/hooks/usePushNotifications.js.map +0 -1
- package/lib/module/services/pushNotifications.js +0 -130
- package/lib/module/services/pushNotifications.js.map +0 -1
- package/lib/typescript/context/PushNotificationProvider.d.ts +0 -2
- package/lib/typescript/context/PushNotificationProvider.d.ts.map +0 -1
- package/lib/typescript/hooks/usePushNotifications.d.ts +0 -5
- package/lib/typescript/hooks/usePushNotifications.d.ts.map +0 -1
- package/lib/typescript/services/pushNotifications.d.ts +0 -10
- package/lib/typescript/services/pushNotifications.d.ts.map +0 -1
- package/src/context/PushNotificationProvider.tsx +0 -78
- package/src/hooks/usePushNotifications.ts +0 -131
- package/src/services/pushNotifications.ts +0 -170
|
@@ -18,16 +18,20 @@ var _NewChatModal = _interopRequireDefault(require("../Modals/NewChatModal/NewCh
|
|
|
18
18
|
var _EditWrapper = require("./EditWrapper");
|
|
19
19
|
var _EmptyChatIllustration = require("../../assets/EmptyChatIllustration");
|
|
20
20
|
var _getIconColor = require("../../helpers/getIconColor");
|
|
21
|
+
var _getChatBackground = require("../../helpers/getChatBackground");
|
|
21
22
|
var _ChooseChatMessage = require("./ChooseChatMessage");
|
|
22
23
|
var _useSendMessage = require("../../hooks/useSendMessage");
|
|
23
24
|
var _useRoomInitialization = require("../../hooks/useRoomInitialization");
|
|
24
25
|
var _useRoomState = require("../../hooks/useRoomState");
|
|
25
26
|
var _useChatSettingState = require("../../hooks/useChatSettingState");
|
|
27
|
+
var _useTheme = require("../../hooks/useTheme");
|
|
28
|
+
var _isOwnMessage = require("../../helpers/isOwnMessage");
|
|
26
29
|
var _CustomTypingIndicator = _interopRequireDefault(require("../styled/StyledInputComponents/CustomTypingIndicator"));
|
|
27
30
|
var _reactNative = require("react-native");
|
|
28
31
|
var _reactNativeKeyboardController = require("react-native-keyboard-controller");
|
|
29
32
|
var _useComposing = _interopRequireDefault(require("../../hooks/useComposing"));
|
|
30
33
|
var _roomStore = require("../../roomStore");
|
|
34
|
+
var _getServerReadTimestamp = require("../../helpers/getServerReadTimestamp");
|
|
31
35
|
var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
|
|
32
36
|
var _keyboardLayout = require("../../helpers/keyboardLayout");
|
|
33
37
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -51,6 +55,7 @@ const ChatRoom = /*#__PURE__*/_react.default.memo(({
|
|
|
51
55
|
} = (0, _xmppProvider.useXmppClient)();
|
|
52
56
|
const dispatch = (0, _reactRedux.useDispatch)();
|
|
53
57
|
const insets = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)();
|
|
58
|
+
const theme = (0, _useTheme.useTheme)();
|
|
54
59
|
const [isLoadingMore, setIsLoadingMore] = (0, _react.useState)(false);
|
|
55
60
|
const {
|
|
56
61
|
user,
|
|
@@ -86,6 +91,43 @@ const ChatRoom = /*#__PURE__*/_react.default.memo(({
|
|
|
86
91
|
sendStartComposing,
|
|
87
92
|
sendEndComposing
|
|
88
93
|
} = (0, _useComposing.default)(configWithEventHandlers || storeConfig);
|
|
94
|
+
|
|
95
|
+
// Under the sticky keyboard strategy, the input dock's position is
|
|
96
|
+
// driven by KeyboardStickyView's native-animated offset. If the app
|
|
97
|
+
// is backgrounded while the keyboard-close animation hasn't finished,
|
|
98
|
+
// the OS removes the keyboard from the app-switcher snapshot but the
|
|
99
|
+
// shared value hasn't caught up to "closed" yet, so the input appears
|
|
100
|
+
// to float in that preview.
|
|
101
|
+
//
|
|
102
|
+
// NOTE on what this does and doesn't fix: iOS actually captures that
|
|
103
|
+
// preview during the active→inactive transition, BEFORE 'background'
|
|
104
|
+
// fires — so dismissing here on 'background' lands too late to affect
|
|
105
|
+
// the snapshot already taken, and is effectively a no-op for the exact
|
|
106
|
+
// iOS symptom in bug #37. An earlier version keyed this off 'inactive'
|
|
107
|
+
// instead, which does land in time, but 'inactive' also fires for
|
|
108
|
+
// Control Center, share sheets, and permission prompts — none of which
|
|
109
|
+
// should close the user's keyboard — so that traded a rare cosmetic
|
|
110
|
+
// preview glitch for a much more common false dismissal. Kept on
|
|
111
|
+
// 'background': it still resets the offset for genuine backgrounding
|
|
112
|
+
// (home button, app switch) and for Android's recents preview (RN's
|
|
113
|
+
// AppState has no 'inactive' there), at the cost of leaving the iOS
|
|
114
|
+
// switcher-preview glitch itself unresolved. Both symptoms are cosmetic
|
|
115
|
+
// per the QA report, which explicitly accepted leaving this imperfect
|
|
116
|
+
// rather than risk destabilizing the sticky strategy. Sticky-only;
|
|
117
|
+
// doesn't touch the other keyboard strategies.
|
|
118
|
+
const stickyInputEnabled = !configWithEventHandlers?.disableKeyboardAvoidingView && !!configWithEventHandlers?.keyboardStickyInput;
|
|
119
|
+
(0, _react.useEffect)(() => {
|
|
120
|
+
if (!stickyInputEnabled) {
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
const onAppStateChange = nextState => {
|
|
124
|
+
if (nextState === 'background') {
|
|
125
|
+
_reactNative.Keyboard.dismiss();
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
const subscription = _reactNative.AppState.addEventListener('change', onAppStateChange);
|
|
129
|
+
return () => subscription.remove();
|
|
130
|
+
}, [stickyInputEnabled]);
|
|
89
131
|
const sendMessage = (0, _react.useCallback)(message => {
|
|
90
132
|
if (!activeRoomJID) {
|
|
91
133
|
return;
|
|
@@ -135,31 +177,103 @@ const ChatRoom = /*#__PURE__*/_react.default.memo(({
|
|
|
135
177
|
(0, _react.useEffect)(() => {
|
|
136
178
|
clientRef.current = client;
|
|
137
179
|
}, [client]);
|
|
180
|
+
|
|
181
|
+
// Tracks what the user actually saw: `null` while they're at the
|
|
182
|
+
// bottom (safe to mark everything read), or the timestamp of the
|
|
183
|
+
// newest message visible when they scrolled away from it. Reported
|
|
184
|
+
// by MessageList via onReadBoundaryChange, and mirrored into redux
|
|
185
|
+
// (`rooms.readBoundaries`) rather than kept only in a local ref - it
|
|
186
|
+
// is the single source of truth every "leaving this room" path
|
|
187
|
+
// consults (xmppProvider's AppState background handler, its
|
|
188
|
+
// `isVisible=false` handler, the live `advance()` effect, and
|
|
189
|
+
// `useChatRoomFocus`'s `leaveRoom`), not just this component's own
|
|
190
|
+
// unmount cleanup below. Without a boundary, leaving a room (or
|
|
191
|
+
// backgrounding) while scrolled up stamped `now()` (bug #33) or,
|
|
192
|
+
// after the #38 fix, the newest acked message regardless of scroll
|
|
193
|
+
// position (bug #42) - both silently discard genuinely-unread
|
|
194
|
+
// messages.
|
|
195
|
+
//
|
|
196
|
+
// MessageList reports the boundary from onScroll, which fires on
|
|
197
|
+
// every frame of a drag (the "back at the bottom" branch re-reports
|
|
198
|
+
// `null` each time). Mirror only actual CHANGES into redux: an
|
|
199
|
+
// unconditional dispatch per scroll frame would run the whole
|
|
200
|
+
// middleware chain and, worse, reset persistenceMiddleware's 200 ms
|
|
201
|
+
// debounce on every frame, starving the persisted write for as long
|
|
202
|
+
// as the user keeps scrolling.
|
|
203
|
+
const lastBoundarySentRef = (0, _react.useRef)(null);
|
|
204
|
+
const handleReadBoundaryChange = (0, _react.useCallback)(boundaryTs => {
|
|
205
|
+
if (!activeRoomJID) {
|
|
206
|
+
return;
|
|
207
|
+
}
|
|
208
|
+
const next = boundaryTs && boundaryTs > 0 ? boundaryTs : null;
|
|
209
|
+
if (lastBoundarySentRef.current === next) {
|
|
210
|
+
return;
|
|
211
|
+
}
|
|
212
|
+
lastBoundarySentRef.current = next;
|
|
213
|
+
dispatch((0, _roomsSlice.setReadBoundary)({
|
|
214
|
+
jid: activeRoomJID,
|
|
215
|
+
ts: next
|
|
216
|
+
}));
|
|
217
|
+
}, [activeRoomJID, dispatch]);
|
|
138
218
|
(0, _react.useEffect)(() => {
|
|
139
219
|
if (!activeRoomJID) {
|
|
140
220
|
return;
|
|
141
221
|
}
|
|
222
|
+
lastBoundarySentRef.current = null;
|
|
223
|
+
dispatch((0, _roomsSlice.setReadBoundary)({
|
|
224
|
+
jid: activeRoomJID,
|
|
225
|
+
ts: null
|
|
226
|
+
}));
|
|
142
227
|
dispatch((0, _roomsSlice.setVisibleRoom)({
|
|
143
228
|
roomJID: activeRoomJID
|
|
144
229
|
}));
|
|
145
230
|
setIsLoadingMore(false);
|
|
146
231
|
return () => {
|
|
147
|
-
const
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
232
|
+
const state = _roomStore.store.getState();
|
|
233
|
+
const rooms = state.rooms?.rooms;
|
|
234
|
+
const heapState = state.roomHeapSlice;
|
|
235
|
+
const boundaryTs = state.rooms?.readBoundaries?.[activeRoomJID] ?? null;
|
|
236
|
+
// getReadMarkerTimestamp honours the boundary (the newest message
|
|
237
|
+
// the user actually reached) when one is set, and otherwise falls
|
|
238
|
+
// back to the newest server-acked message - never the device
|
|
239
|
+
// clock: a fast device clock would write a future marker that the
|
|
240
|
+
// forward-only private-store merge could never correct (bug #38).
|
|
241
|
+
const timestamp = (0, _getServerReadTimestamp.getReadMarkerTimestamp)(rooms?.[activeRoomJID], heapState, boundaryTs);
|
|
242
|
+
if (timestamp > 0) {
|
|
243
|
+
dispatch((0, _roomsSlice.setLastViewedTimestamp)({
|
|
244
|
+
chatJID: activeRoomJID,
|
|
245
|
+
timestamp
|
|
246
|
+
}));
|
|
247
|
+
}
|
|
152
248
|
dispatch((0, _roomsSlice.clearVisibleRoom)());
|
|
153
249
|
const liveClient = clientRef.current;
|
|
154
250
|
if (liveClient) {
|
|
155
|
-
liveClient.flushLastViewedToPrivateStoreStanza(
|
|
156
|
-
visibleRoomJID: activeRoomJID
|
|
251
|
+
liveClient.flushLastViewedToPrivateStoreStanza(rooms, {
|
|
252
|
+
visibleRoomJID: activeRoomJID,
|
|
253
|
+
// Carry the same boundary to the SERVER marker. Without
|
|
254
|
+
// this the flush defaults to "everything" for the visible
|
|
255
|
+
// room, so messages the user never scrolled down to come
|
|
256
|
+
// back as read on the next login - the local count was
|
|
257
|
+
// right but the server overrode it.
|
|
258
|
+
// Clamped through the same helper as the local stamp -
|
|
259
|
+
// an unclamped boundary would bypass the newest-acked
|
|
260
|
+
// ceiling on the one path where a bad value is permanent
|
|
261
|
+
// (the private-store merge is forward-only, bug #38).
|
|
262
|
+
visibleRoomTs: (0, _getServerReadTimestamp.getFlushBoundaryTs)(rooms?.[activeRoomJID], heapState, boundaryTs)
|
|
157
263
|
}).catch(() => {});
|
|
158
264
|
}
|
|
159
265
|
dispatch((0, _roomsSlice.deleteRoomMessage)({
|
|
160
266
|
roomJID: activeRoomJID,
|
|
161
267
|
messageId: 'delimiter-new'
|
|
162
268
|
}));
|
|
269
|
+
// The room is genuinely being left (unmount, or activeRoomJID
|
|
270
|
+
// changed to a different room) - release the boundary now that
|
|
271
|
+
// it's been consumed, so a stale value can't leak into the next
|
|
272
|
+
// time this room becomes visible.
|
|
273
|
+
dispatch((0, _roomsSlice.clearReadBoundary)({
|
|
274
|
+
jid: activeRoomJID
|
|
275
|
+
}));
|
|
276
|
+
lastBoundarySentRef.current = null;
|
|
163
277
|
setIsLoadingMore(false);
|
|
164
278
|
};
|
|
165
279
|
}, [activeRoomJID, dispatch]);
|
|
@@ -183,7 +297,9 @@ const ChatRoom = /*#__PURE__*/_react.default.memo(({
|
|
|
183
297
|
});
|
|
184
298
|
const inputDockPaddingBottom = (0, _keyboardLayout.getInputDockPaddingBottom)({
|
|
185
299
|
platform: _reactNative.Platform.OS,
|
|
186
|
-
bottomInset: insets.bottom
|
|
300
|
+
bottomInset: insets.bottom,
|
|
301
|
+
configuredPadding: configWithEventHandlers?.inputDockPaddingBottom,
|
|
302
|
+
hostOwnsLayout: !!configWithEventHandlers?.disableKeyboardAvoidingView
|
|
187
303
|
});
|
|
188
304
|
|
|
189
305
|
// Keyboard avoidance is delegated to react-native-keyboard-controller's
|
|
@@ -231,9 +347,22 @@ const ChatRoom = /*#__PURE__*/_react.default.memo(({
|
|
|
231
347
|
// a KeyboardStickyView so it (and only it) lifts with the keyboard.
|
|
232
348
|
const InputDockTag = stickyInput ? _reactNativeKeyboardController.KeyboardStickyView : _reactNative.View;
|
|
233
349
|
const inputDockProps = {
|
|
350
|
+
// The dock carries the composer's white surface all the way to the
|
|
351
|
+
// bottom edge, so it needs the same rounded top and upward shadow —
|
|
352
|
+
// a square white block behind a rounded composer just hid the corners.
|
|
234
353
|
style: {
|
|
235
354
|
paddingBottom: inputDockPaddingBottom,
|
|
236
|
-
backgroundColor:
|
|
355
|
+
backgroundColor: theme.surface,
|
|
356
|
+
borderTopLeftRadius: 20,
|
|
357
|
+
borderTopRightRadius: 20,
|
|
358
|
+
shadowColor: theme.shadow,
|
|
359
|
+
shadowOffset: {
|
|
360
|
+
width: 0,
|
|
361
|
+
height: -4
|
|
362
|
+
},
|
|
363
|
+
shadowOpacity: 0.06,
|
|
364
|
+
shadowRadius: 12,
|
|
365
|
+
elevation: 8
|
|
237
366
|
},
|
|
238
367
|
...(stickyInput ? {
|
|
239
368
|
offset: {
|
|
@@ -244,8 +373,14 @@ const ChatRoom = /*#__PURE__*/_react.default.memo(({
|
|
|
244
373
|
};
|
|
245
374
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(KeyboardWrapper, {
|
|
246
375
|
...keyboardWrapperProps,
|
|
247
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_StyledComponents.ChatContainer
|
|
248
|
-
|
|
376
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_StyledComponents.ChatContainer
|
|
377
|
+
// The conversation's own colour, not white: the header's rounded
|
|
378
|
+
// bottom corners and the composer's rounded top corners reveal
|
|
379
|
+
// THIS view, so a white parent made both look square.
|
|
380
|
+
, {
|
|
381
|
+
style: [{
|
|
382
|
+
backgroundColor: (0, _getChatBackground.getChatBackgroundColor)(configWithEventHandlers)
|
|
383
|
+
}, configWithEventHandlers?.chatRoomStyles],
|
|
249
384
|
children: [!configWithEventHandlers?.disableHeader && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChatHeader.default, {
|
|
250
385
|
currentRoom: roomsList[activeRoomJID],
|
|
251
386
|
handleBackClick: handleBackClick
|
|
@@ -269,14 +404,17 @@ const ChatRoom = /*#__PURE__*/_react.default.memo(({
|
|
|
269
404
|
alignItems: 'center'
|
|
270
405
|
},
|
|
271
406
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_EmptyChatIllustration.EmptyChatIllustration, {
|
|
272
|
-
color: (0, _getIconColor.getIconColor)(configWithEventHandlers)
|
|
407
|
+
color: (0, _getIconColor.getIconColor)(configWithEventHandlers),
|
|
408
|
+
panelColor: theme.dark ? theme.surfaceSecondary : undefined
|
|
273
409
|
})
|
|
274
410
|
}) : !roomMessages || roomMessages.length === 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
275
411
|
style: {
|
|
276
412
|
flex: 1,
|
|
277
413
|
justifyContent: 'center',
|
|
278
414
|
alignItems: 'center',
|
|
279
|
-
|
|
415
|
+
// Empty rooms used to flip to white, which broke the
|
|
416
|
+
// header's rounded corners in exactly the same way.
|
|
417
|
+
backgroundColor: (0, _getChatBackground.getChatBackgroundColor)(configWithEventHandlers)
|
|
280
418
|
},
|
|
281
419
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_NoMessagesPlaceholder.default, {})
|
|
282
420
|
}) : CustomScrollableArea ? /*#__PURE__*/(0, _jsxRuntime.jsx)(CustomScrollableArea, {
|
|
@@ -291,7 +429,7 @@ const ChatRoom = /*#__PURE__*/_react.default.memo(({
|
|
|
291
429
|
loadMoreMessages: loadMoreMessages,
|
|
292
430
|
renderMessage: decorated => CustomMessageComponent ? /*#__PURE__*/(0, _jsxRuntime.jsx)(CustomMessageComponent, {
|
|
293
431
|
message: decorated.message,
|
|
294
|
-
isUser: decorated.message
|
|
432
|
+
isUser: (0, _isOwnMessage.isOwnMessage)(decorated.message, user),
|
|
295
433
|
isReply: false
|
|
296
434
|
}) : null,
|
|
297
435
|
scrollController: {
|
|
@@ -316,7 +454,8 @@ const ChatRoom = /*#__PURE__*/_react.default.memo(({
|
|
|
316
454
|
roomJID: activeRoomJID,
|
|
317
455
|
config: configWithEventHandlers,
|
|
318
456
|
loading: isLoadingMore,
|
|
319
|
-
isReply: false
|
|
457
|
+
isReply: false,
|
|
458
|
+
onReadBoundaryChange: handleReadBoundaryChange
|
|
320
459
|
})
|
|
321
460
|
}), editAction && editAction.isEdit && /*#__PURE__*/(0, _jsxRuntime.jsx)(_EditWrapper.EditWrapper, {
|
|
322
461
|
text: editAction.text || '',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_StyledComponents","_reactRedux","_MessageList","_interopRequireDefault","_SendInput","_roomsSlice","_Loader","_xmppProvider","_ChatHeader","_NoMessagesPlaceholder","_NewChatModal","_EditWrapper","_EmptyChatIllustration","_getIconColor","_ChooseChatMessage","_useSendMessage","_useRoomInitialization","_useRoomState","_useChatSettingState","_CustomTypingIndicator","_reactNative","_reactNativeKeyboardController","_useComposing","_roomStore","_reactNativeSafeAreaContext","_keyboardLayout","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ChatRoom","React","memo","CustomMessageComponent","CustomInputComponent","CustomScrollableArea","CustomDaySeparator","CustomNewMessageLabel","handleBackClick","eventHandlers","propsEventHandlers","client","useXmppClient","dispatch","useDispatch","insets","useSafeAreaInsets","isLoadingMore","setIsLoadingMore","useState","user","config","storeConfig","useChatSettingState","configWithEventHandlers","useMemo","roomsList","activeRoomJID","editAction","loading","globalLoading","roomMessages","useRoomState","sendMessage","sendMs","sendMedia","sendMessageMedia","sendEditMessage","isLastMessageFromUserAndProcessing","useSendMessage","sendStartComposing","sendEndComposing","useComposing","useCallback","message","data","type","loadMoreMessages","chatJID","max","idOfMessageBefore","historyComplete","lastMsgId","Number","messages","length","id","getHistoryStanza","jid","onCloseEdit","setEditAction","isEdit","clientRef","useRef","useEffect","current","setVisibleRoom","roomJID","timestamp","Date","getTime","setLastViewedTimestamp","clearVisibleRoom","liveClient","flushLastViewedToPrivateStoreStanza","store","getState","rooms","visibleRoomJID","catch","deleteRoomMessage","messageId","useRoomInitialization","keys","jsx","NonRoomChat","children","ChooseChatMessage","keyboardVerticalOffset","getKeyboardVerticalOffset","platform","Platform","OS","configuredOffset","bottomInset","bottom","inputDockPaddingBottom","getInputDockPaddingBottom","noKeyboardHandling","disableKeyboardAvoidingView","stickyInput","keyboardStickyInput","avoidKeyboard","KeyboardWrapper","KeyboardAvoidingView","View","keyboardWrapperProps","style","flex","behavior","InputDockTag","KeyboardStickyView","inputDockProps","paddingBottom","backgroundColor","offset","closed","opened","jsxs","ChatContainer","chatRoomStyles","undefined","disableHeader","currentRoom","chatHeaderAdditional","enabled","element","justifyContent","alignItems","color","colors","primary","EmptyChatIllustration","getIconColor","decoratedMessages","map","msg","idx","showDateLabel","date","toDateString","isLoading","isReply","renderMessage","decorated","isUser","xmppUsername","scrollController","scrollToBottom","waitForImagesLoaded","showScrollButton","newMessagesCount","resetNewMessageCounter","typingIndicator","composing","customTypingIndicator","customComponent","usersTyping","composingList","text","isVisible","CustomMessage","EditWrapper","onClose","onFocus","onBlur","isMessageProcessing","editMessage","position","styles","_default","exports"],"sourceRoot":"../../../../src","sources":["components/MainComponents/ChatRoom.tsx"],"mappings":";;;;;;AAEA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAD,sBAAA,CAAAJ,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AAOA,IAAAO,OAAA,GAAAH,sBAAA,CAAAJ,OAAA;AACA,IAAA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qBAAqB,CAACa,QAAQ,KACpD,UAAU,CAAC,IACf9I,SAAS,CAACC,aAAa,CAAC,EAAE+H,SAAS,iBACjC,IAAA9K,WAAA,CAAAwG,GAAA,EAAC/G,sBAAA,CAAAU,OAAqB;QACpB8K,WAAW,EACTnI,SAAS,CAACC,aAAa,CAAC,EAAEmI,aAAa,IAAI,CAAC,MAAM,CACnD;QACDC,IAAI,EAAEvI,uBAAuB,CAACmI,qBAAqB,CAACI,IAAK;QACzDS,QAAQ,EACNhJ,uBAAuB,CAACmI,qBAAqB,CAACa,QAC/C;QACDC,MAAM,EAAEjJ,uBAAuB,CAACmI,qBAAqB,CAACc,MAAO;QAC7Db,eAAe,EACbpI,uBAAuB,CAACmI,qBAAqB,CAACC,eAC/C;QACDI,SAAS,EAAEtI,SAAS,CAACC,aAAa,CAAC,EAAE+H,SAAS,IAAI;MAAM,CACzD,CACF;IAAA,CACU;EAAC,CACD,CAAC;AAEtB,CACF,CAAC;AAAC,IAAAgB,QAAA,GAAAC,OAAA,CAAA5L,OAAA,GAEaiB,QAAQ","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_StyledComponents","_reactRedux","_MessageList","_interopRequireDefault","_SendInput","_roomsSlice","_Loader","_xmppProvider","_ChatHeader","_NoMessagesPlaceholder","_NewChatModal","_EditWrapper","_EmptyChatIllustration","_getIconColor","_getChatBackground","_ChooseChatMessage","_useSendMessage","_useRoomInitialization","_useRoomState","_useChatSettingState","_useTheme","_isOwnMessage","_CustomTypingIndicator","_reactNative","_reactNativeKeyboardController","_useComposing","_roomStore","_getServerReadTimestamp","_reactNativeSafeAreaContext","_keyboardLayout","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ChatRoom","React","memo","CustomMessageComponent","CustomInputComponent","CustomScrollableArea","CustomDaySeparator","CustomNewMessageLabel","handleBackClick","eventHandlers","propsEventHandlers","client","useXmppClient","dispatch","useDispatch","insets","useSafeAreaInsets","theme","useTheme","isLoadingMore","setIsLoadingMore","useState","user","config","storeConfig","useChatSettingState","configWithEventHandlers","useMemo","roomsList","activeRoomJID","editAction","loading","globalLoading","roomMessages","useRoomState","sendMessage","sendMs","sendMedia","sendMessageMedia","sendEditMessage","isLastMessageFromUserAndProcessing","useSendMessage","sendStartComposing","sendEndComposing","useComposing","stickyInputEnabled","disableKeyboardAvoidingView","keyboardStickyInput","useEffect","onAppStateChange","nextState","Keyboard","dismiss","subscription","AppState","addEventListener","remove","useCallback","message","data","type","loadMoreMessages","chatJID","max","idOfMessageBefore","historyComplete","lastMsgId","Number","messages","length","id","getHistoryStanza","jid","onCloseEdit","setEditAction","isEdit","clientRef","useRef","current","lastBoundarySentRef","handleReadBoundaryChange","boundaryTs","next","setReadBoundary","ts","setVisibleRoom","roomJID","state","store","getState","rooms","heapState","roomHeapSlice","readBoundaries","timestamp","getReadMarkerTimestamp","setLastViewedTimestamp","clearVisibleRoom","liveClient","flushLastViewedToPrivateStoreStanza","visibleRoomJID","visibleRoomTs","getFlushBoundaryTs","catch","deleteRoomMessage","messageId","clearReadBoundary","useRoomInitialization","keys","jsx","NonRoomChat","children","ChooseChatMessage","keyboardVerticalOffset","getKeyboardVerticalOffset","platform","Platform","OS","configuredOffset","bottomInset","bottom","inputDockPaddingBottom","getInputDockPaddingBottom","configuredPadding","hostOwnsLayout","noKeyboardHandling","stickyInput","avoidKeyboard","KeyboardWrapper","KeyboardAvoidingView","View","keyboardWrapperProps","style","flex","behavior","InputDockTag","KeyboardStickyView","inputDockProps","paddingBottom","backgroundColor","surface","borderTopLeftRadius","borderTopRightRadius","shadowColor","shadow","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation","offset","closed","opened","jsxs","ChatContainer","getChatBackgroundColor","chatRoomStyles","disableHeader","currentRoom","chatHeaderAdditional","enabled","element","justifyContent","alignItems","color","colors","primary","EmptyChatIllustration","getIconColor","panelColor","dark","surfaceSecondary","undefined","decoratedMessages","map","msg","idx","showDateLabel","Date","date","toDateString","isLoading","isReply","renderMessage","decorated","isUser","isOwnMessage","scrollController","scrollToBottom","waitForImagesLoaded","showScrollButton","newMessagesCount","resetNewMessageCounter","typingIndicator","composing","customTypingIndicator","customComponent","usersTyping","composingList","text","isVisible","CustomMessage","onReadBoundaryChange","EditWrapper","onClose","onFocus","onBlur","isMessageProcessing","editMessage","position","styles","_default","exports"],"sourceRoot":"../../../../src","sources":["components/MainComponents/ChatRoom.tsx"],"mappings":";;;;;;AAEA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAD,sBAAA,CAAAJ,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AASA,IAAAO,OAAA,GAAAH,sBAAA,CAAAJ,OAAA;AACA,IAAAQ,aAAA,GAAAR,OAAA;AACA,IAAAS,WAAA,GAAAL,sBAAA,CAAAJ,OAAA;AACA,IAAAU,sBAAA,GAAAN,sBAAA,CAAAJ,OAAA;AACA,IAAAW,aAAA,GAAAP,sBAAA,CAAAJ,OAAA;AACA,IAAAY,YAAA,GAAAZ,OAAA;AACA,IAAAa,sBAAA,GAAAb,OAAA;AACA,IAAAc,aAAA,GAAAd,OAAA;AACA,IAAAe,kBAAA,GAAAf,OAAA;AACA,IAAAgB,kBAAA,GAAAhB,OAAA;AAEA,IAAAiB,eAAA,GAAAjB,OAAA;AAEA,IAAAkB,sBAAA,GAAAlB,OAAA;AACA,IAAAmB,aAAA,GAAAnB,OAAA;AACA,IAAAoB,oBAAA,GAAApB,OAAA;AACA,IAAAqB,SAAA,GAAArB,OAAA;AACA,IAAAsB,aAAA,GAAAtB,OAAA;AACA,IAAAuB,sBAAA,GAAAnB,sBAAA,CAAAJ,OAAA;AAGA,IAAAwB,YAAA,GA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E9K,uBAAuB,CAAC0K,qBAAqB,CAACI,IAAK;QACzDU,QAAQ,EACNxL,uBAAuB,CAAC0K,qBAAqB,CAACc,QAC/C;QACDC,MAAM,EAAEzL,uBAAuB,CAAC0K,qBAAqB,CAACe,MAAO;QAC7Dd,eAAe,EACb3K,uBAAuB,CAAC0K,qBAAqB,CAACC,eAC/C;QACDI,SAAS,EAAE7K,SAAS,CAACC,aAAa,CAAC,EAAEsK,SAAS,IAAI;MAAM,CACzD,CACF;IAAA,CACU;EAAC,CACD,CAAC;AAEtB,CACF,CAAC;AAAC,IAAAiB,QAAA,GAAAC,OAAA,CAAAtO,OAAA,GAEaiB,QAAQ","ignoreList":[]}
|
|
@@ -17,16 +17,19 @@ var _xmppProvider = require("../../context/xmppProvider");
|
|
|
17
17
|
var _Login = _interopRequireDefault(require("../AuthForms/Login"));
|
|
18
18
|
var _Loader = _interopRequireDefault(require("../styled/Loader"));
|
|
19
19
|
var _roomsSlice = require("../../roomStore/roomsSlice");
|
|
20
|
-
var
|
|
20
|
+
var _authRefresh = require("../../networking/authRefresh");
|
|
21
21
|
var _RoomList = _interopRequireDefault(require("./RoomList"));
|
|
22
22
|
var _StyledComponents = require("../styled/StyledComponents");
|
|
23
23
|
var _Modal = _interopRequireDefault(require("../Modals/Modal/Modal"));
|
|
24
24
|
var _ModalWrapper = require("../Modals/ModalWrapper/ModalWrapper");
|
|
25
25
|
var _useChatSettingState = require("../../hooks/useChatSettingState");
|
|
26
|
+
var _useTheme = require("../../hooks/useTheme");
|
|
27
|
+
var _usePendingNotification = require("../../hooks/usePendingNotification");
|
|
26
28
|
var _reactNative = require("react-native");
|
|
27
29
|
var _devLogger = require("../../utils/devLogger");
|
|
28
30
|
var _normalizeRoomJid = require("../../helpers/normalizeRoomJid");
|
|
29
31
|
var _buildSeedRoom = require("../../helpers/buildSeedRoom");
|
|
32
|
+
var _shallowEqual = require("../../helpers/shallowEqual");
|
|
30
33
|
var _InteractionsOverlay = require("../MessageBubble/InteractionsOverlay");
|
|
31
34
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
32
35
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -44,6 +47,8 @@ const ChatWrapper = ({
|
|
|
44
47
|
deleteModal,
|
|
45
48
|
client: storedClient
|
|
46
49
|
} = (0, _useChatSettingState.useChatSettingState)();
|
|
50
|
+
(0, _usePendingNotification.usePendingNotification)();
|
|
51
|
+
const theme = (0, _useTheme.useTheme)();
|
|
47
52
|
const [isInited, setInited] = (0, _react.useState)(false);
|
|
48
53
|
const [showModal, setShowModal] = (0, _react.useState)(false);
|
|
49
54
|
const [errorMsg, setErrorMsg] = (0, _react.useState)(null);
|
|
@@ -165,12 +170,39 @@ const ChatWrapper = ({
|
|
|
165
170
|
roomData: (0, _buildSeedRoom.buildSeedRoom)(seededRoomJID)
|
|
166
171
|
}));
|
|
167
172
|
}, [seededRoomJID, seededRoomMissing, dispatch]);
|
|
173
|
+
|
|
174
|
+
// Presentational config flags (e.g. `disableHeader`) can change while the
|
|
175
|
+
// chat stays mounted — sync them to redux whenever `config` actually
|
|
176
|
+
// changes, not just at init. Kept separate from the init effect below so
|
|
177
|
+
// toggling a flag doesn't re-run client/token setup. Guarded with a
|
|
178
|
+
// shallow-equal check (not just the `config` reference) because hosts
|
|
179
|
+
// commonly pass an inline object literal (`<Chat config={{...}}/>`) that
|
|
180
|
+
// is a new reference on every render even when nothing in it changed —
|
|
181
|
+
// dispatching unconditionally there would re-render every config
|
|
182
|
+
// consumer (ChatRoom, modals, ...) on every host render.
|
|
183
|
+
const lastSyncedConfigRef = (0, _react.useRef)(undefined);
|
|
184
|
+
(0, _react.useEffect)(() => {
|
|
185
|
+
if (config && !(0, _shallowEqual.shallowEqual)(lastSyncedConfigRef.current, config)) {
|
|
186
|
+
lastSyncedConfigRef.current = config;
|
|
187
|
+
dispatch((0, _chatSettingsSlice.setConfig)(config));
|
|
188
|
+
}
|
|
189
|
+
}, [config, dispatch]);
|
|
168
190
|
(0, _react.useEffect)(() => {
|
|
169
191
|
if (roomJID) {
|
|
170
192
|
dispatch((0, _roomsSlice.setCurrentRoom)({
|
|
171
193
|
roomJID: (0, _normalizeRoomJid.normalizeRoomJid)(roomJID, config?.xmppSettings?.conference)
|
|
172
194
|
}));
|
|
173
195
|
}
|
|
196
|
+
|
|
197
|
+
// Top-up rotation after the client is up. Deduped inside
|
|
198
|
+
// `refreshAuthTokensQuietly`, so it can no longer race the 401
|
|
199
|
+
// interceptor into a second, parallel rotation — which the backend
|
|
200
|
+
// would read as reuse. Never rejects, hence no `.catch` here.
|
|
201
|
+
const ensureFreshTokens = () => {
|
|
202
|
+
if (config?.refreshTokens?.enabled) {
|
|
203
|
+
(0, _authRefresh.refreshAuthTokensQuietly)();
|
|
204
|
+
}
|
|
205
|
+
};
|
|
174
206
|
const initXmmpClient = async () => {
|
|
175
207
|
// Only sync config to redux if we have one — passing `undefined`
|
|
176
208
|
// wipes whatever XmppProvider already set up.
|
|
@@ -241,12 +273,7 @@ const ChatWrapper = ({
|
|
|
241
273
|
(0, _devLogger.pushLog)('warn', 'initializeClient failed (legacy path)', err);
|
|
242
274
|
}
|
|
243
275
|
setInited(true);
|
|
244
|
-
|
|
245
|
-
// refresh() is fire-and-forget but rejects on bad
|
|
246
|
-
// refreshToken / network — surface via .catch instead of
|
|
247
|
-
// leaving the rejection unhandled (was bug #4, id:2).
|
|
248
|
-
(0, _apiClient.refresh)().catch(err => console.warn('refresh failed', err));
|
|
249
|
-
}
|
|
276
|
+
ensureFreshTokens();
|
|
250
277
|
} else if (storedClient) {
|
|
251
278
|
(0, _devLogger.pushLog)('rn', 'ChatWrapper: reusing storedClient');
|
|
252
279
|
setClient(storedClient);
|
|
@@ -256,9 +283,7 @@ const ChatWrapper = ({
|
|
|
256
283
|
}).catch(err => console.warn('getRoomsStanza failed', err));
|
|
257
284
|
}
|
|
258
285
|
setInited(true);
|
|
259
|
-
|
|
260
|
-
(0, _apiClient.refresh)().catch(err => console.warn('refresh failed', err));
|
|
261
|
-
}
|
|
286
|
+
ensureFreshTokens();
|
|
262
287
|
} else if (client) {
|
|
263
288
|
(0, _devLogger.pushLog)('rn', 'ChatWrapper: reusing provider client');
|
|
264
289
|
if (!activeRoomJID) {
|
|
@@ -268,9 +293,7 @@ const ChatWrapper = ({
|
|
|
268
293
|
}
|
|
269
294
|
client.getChatsPrivateStoreRequestStanza().catch(err => console.warn('getChatsPrivateStoreRequestStanza failed', err));
|
|
270
295
|
setInited(true);
|
|
271
|
-
|
|
272
|
-
(0, _apiClient.refresh)().catch(err => console.warn('refresh failed', err));
|
|
273
|
-
}
|
|
296
|
+
ensureFreshTokens();
|
|
274
297
|
}
|
|
275
298
|
dispatch((0, _roomsSlice.setIsLoading)({
|
|
276
299
|
loading: false
|
|
@@ -337,7 +360,7 @@ const ChatWrapper = ({
|
|
|
337
360
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
338
361
|
style: {
|
|
339
362
|
padding: 20,
|
|
340
|
-
backgroundColor:
|
|
363
|
+
backgroundColor: theme.surface,
|
|
341
364
|
borderRadius: 12,
|
|
342
365
|
maxWidth: 320,
|
|
343
366
|
alignItems: 'stretch'
|
|
@@ -347,13 +370,13 @@ const ChatWrapper = ({
|
|
|
347
370
|
fontSize: 16,
|
|
348
371
|
fontWeight: '600',
|
|
349
372
|
marginBottom: 8,
|
|
350
|
-
color:
|
|
373
|
+
color: theme.text
|
|
351
374
|
},
|
|
352
375
|
children: "Connection error"
|
|
353
376
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
354
377
|
style: {
|
|
355
378
|
fontSize: 13,
|
|
356
|
-
color:
|
|
379
|
+
color: theme.textSecondary,
|
|
357
380
|
marginBottom: 16
|
|
358
381
|
},
|
|
359
382
|
children: errorMsg ?? 'Something went wrong while connecting to chat.'
|
|
@@ -373,12 +396,12 @@ const ChatWrapper = ({
|
|
|
373
396
|
paddingVertical: 10,
|
|
374
397
|
paddingHorizontal: 16,
|
|
375
398
|
borderRadius: 6,
|
|
376
|
-
backgroundColor: pressed ? '#0040A0' :
|
|
399
|
+
backgroundColor: pressed ? '#0040A0' : theme.primary,
|
|
377
400
|
alignItems: 'center'
|
|
378
401
|
}),
|
|
379
402
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
380
403
|
style: {
|
|
381
|
-
color:
|
|
404
|
+
color: theme.textOnPrimary,
|
|
382
405
|
fontWeight: '600'
|
|
383
406
|
},
|
|
384
407
|
children: "Retry"
|
|
@@ -414,7 +437,7 @@ const ChatWrapper = ({
|
|
|
414
437
|
title: "Delete Message",
|
|
415
438
|
description: "Are you sure you want to delete this message?",
|
|
416
439
|
buttonText: "Delete",
|
|
417
|
-
backgroundColorButton:
|
|
440
|
+
backgroundColorButton: theme.danger,
|
|
418
441
|
handleClick: handleDeleteClick,
|
|
419
442
|
handleCloseModal: handleCloseDeleteModal,
|
|
420
443
|
compact: true
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactRedux","_ChatRoom","_interopRequireDefault","_chatSettingsSlice","_resolveLangSource","_ChatWrapperBox","_MediaModal","_ConnectionBanner","_Message","_xmppProvider","_Login","_Loader","_roomsSlice","_apiClient","_RoomList","_StyledComponents","_Modal","_ModalWrapper","_useChatSettingState","_reactNative","_devLogger","_normalizeRoomJid","_buildSeedRoom","_InteractionsOverlay","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ChatWrapper","MainComponentStyles","CustomMessageComponent","room","config","roomJID","user","activeModal","deleteModal","client","storedClient","useChatSettingState","isInited","setInited","useState","showModal","setShowModal","errorMsg","setErrorMsg","isChatVisible","setIsChatVisible","isSmallScreen","setIsSmallScreen","handleItemClick","value","dispatch","useDispatch","initializeClient","setClient","providerBootstrapStatus","initMode","useXmppClient","rooms","activeRoomJID","useSelector","state","activeMessage","useMemo","messages","find","message","handleChangeChat","chat","setCurrentRoom","jid","setIsLoading","chatJID","loading","setEditAction","isEdit","handleDeleteClick","roomJid","messageId","setDeleteModal","isDeleteModal","deleteMessageStanza","handleCloseDeleteModal","useEffect","resolved","resolveExternalReaderLocaleLangSource","translates","readerLocale","setLangSource","xmppPassword","console","log","close","setActiveRoomJid","getRoomMembersStanza","seededRoomJID","normalizeRoomJid","xmppSettings","conference","seededRoomMissing","devPushLog","addRoom","roomData","buildSeedRoom","initXmmpClient","setConfig","legacyLangSource","resolveLegacyTranslatesLangSource","hasUser","defaultWallet","walletAddress","initBeforeLoad","c","xmppUsername","getRoomsStanza","getChatsPrivateStoreRequestStanza","catch","err","warn","setStoreClient","refreshTokens","enabled","refresh","then","error","msg","response","data","String","haveCachedRooms","keys","length","haveUser","jsx","showRoomList","disableRooms","jsxs","Fragment","children","disableConnectionErrorOverlay","Overlay","View","style","padding","backgroundColor","borderRadius","maxWidth","alignItems","Text","fontSize","fontWeight","marginBottom","color","Pressable","onPress","DeviceEventEmitter","emit","pressed","paddingVertical","paddingHorizontal","ChatWrapperBox","InteractionsOverlayProvider","chats","values","onRoomClick","Message","handleBackClick","undefined","modal","setOpenModal","setActiveModal","ModalWrapper","title","description","buttonText","backgroundColorButton","handleClick","handleCloseModal","compact","StyledLoaderWrapper","colors","primary","exports"],"sourceRoot":"../../../../src","sources":["components/MainComponents/ChatWrapper.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,kBAAA,GAAAJ,OAAA;AAOA,IAAAK,kBAAA,GAAAL,OAAA;AAIA,IAAAM,eAAA,GAAAN,OAAA;AACA,IAAAO,WAAA,GAAAP,OAAA;AACA,IAAAQ,iBAAA,GAAAL,sBAAA,CAAAH,OAAA;AACA,IAAAS,QAAA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S;UAC/BC,WAAW,EAAEpG,iBAAkB;UAC/BqG,gBAAgB,EAAE/F,sBAAuB;UACzCgG,OAAO;QAAA,CACR,CACF;MAAA,CACa,CAAC,gBAEjB,IAAA5K,WAAA,CAAA+H,GAAA,EAACxI,iBAAA,CAAAsL,mBAAmB;QAAAzC,QAAA,eAClB,IAAApI,WAAA,CAAA+H,GAAA,EAAC5I,OAAA,CAAAgB,OAAM;UAAC+I,KAAK,EAAE1H,MAAM,EAAEsJ,MAAM,EAAEC;QAAQ,CAAE;MAAC,CACvB;IACtB,CACD,CAAC;EAAA,CACH,CAAC;AAEP,CAAC;AAACC,OAAA,CAAA5J,WAAA,GAAAA,WAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactRedux","_ChatRoom","_interopRequireDefault","_chatSettingsSlice","_resolveLangSource","_ChatWrapperBox","_MediaModal","_ConnectionBanner","_Message","_xmppProvider","_Login","_Loader","_roomsSlice","_authRefresh","_RoomList","_StyledComponents","_Modal","_ModalWrapper","_useChatSettingState","_useTheme","_usePendingNotification","_reactNative","_devLogger","_normalizeRoomJid","_buildSeedRoom","_shallowEqual","_InteractionsOverlay","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ChatWrapper","MainComponentStyles","CustomMessageComponent","room","config","roomJID","user","activeModal","deleteModal","client","storedClient","useChatSettingState","usePendingNotification","theme","useTheme","isInited","setInited","useState","showModal","setShowModal","errorMsg","setErrorMsg","isChatVisible","setIsChatVisible","isSmallScreen","setIsSmallScreen","handleItemClick","value","dispatch","useDispatch","initializeClient","setClient","providerBootstrapStatus","initMode","useXmppClient","rooms","activeRoomJID","useSelector","state","activeMessage","useMemo","messages","find","message","handleChangeChat","chat","setCurrentRoom","jid","setIsLoading","chatJID","loading","setEditAction","isEdit","handleDeleteClick","roomJid","messageId","setDeleteModal","isDeleteModal","deleteMessageStanza","handleCloseDeleteModal","useEffect","resolved","resolveExternalReaderLocaleLangSource","translates","readerLocale","setLangSource","xmppPassword","console","log","close","setActiveRoomJid","getRoomMembersStanza","seededRoomJID","normalizeRoomJid","xmppSettings","conference","seededRoomMissing","devPushLog","addRoom","roomData","buildSeedRoom","lastSyncedConfigRef","useRef","undefined","shallowEqual","current","setConfig","ensureFreshTokens","refreshTokens","enabled","refreshAuthTokensQuietly","initXmmpClient","legacyLangSource","resolveLegacyTranslatesLangSource","hasUser","defaultWallet","walletAddress","initBeforeLoad","c","xmppUsername","getRoomsStanza","getChatsPrivateStoreRequestStanza","catch","err","warn","setStoreClient","then","error","msg","response","data","String","haveCachedRooms","keys","length","haveUser","jsx","showRoomList","disableRooms","jsxs","Fragment","children","disableConnectionErrorOverlay","Overlay","View","style","padding","backgroundColor","surface","borderRadius","maxWidth","alignItems","Text","fontSize","fontWeight","marginBottom","color","text","textSecondary","Pressable","onPress","DeviceEventEmitter","emit","pressed","paddingVertical","paddingHorizontal","primary","textOnPrimary","ChatWrapperBox","InteractionsOverlayProvider","chats","values","onRoomClick","Message","handleBackClick","modal","setOpenModal","setActiveModal","ModalWrapper","title","description","buttonText","backgroundColorButton","danger","handleClick","handleCloseModal","compact","StyledLoaderWrapper","colors","exports"],"sourceRoot":"../../../../src","sources":["components/MainComponents/ChatWrapper.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,kBAAA,GAAAJ,OAAA;AAOA,IAAAK,kBAAA,GAAAL,OAAA;AAIA,IAAAM,eAAA,GAAAN,OAAA;AACA,IAAAO,WAAA,GAAAP,OAAA;AACA,IAAAQ,iBAAA,GAAAL,sBAAA,CAAAH,OAAA;AACA,IAAAS,QAAA,GAAAT,OAAA;AAEA,IAAAU,aAAA,GAAAV,OAAA;AACA,IAAAW,MAAA,GA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