@ethora/chat-component-rn 26.5.1 → 26.5.2
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 +52 -0
- package/README.md +5 -0
- package/lib/commonjs/assets/BG.js +65 -0
- package/lib/commonjs/assets/BG.js.map +1 -0
- package/lib/commonjs/assets/BG.png +0 -0
- package/lib/commonjs/assets/File.svg +4 -0
- package/lib/commonjs/assets/ForzaCare.js +40 -0
- package/lib/commonjs/assets/ForzaCare.js.map +1 -0
- package/lib/commonjs/assets/ForzaCare.png +0 -0
- package/lib/commonjs/assets/icons.js +2 -0
- package/lib/commonjs/assets/icons.js.map +1 -0
- package/lib/commonjs/assets/images.js +45 -0
- package/lib/commonjs/assets/images.js.map +1 -0
- package/lib/commonjs/assets/test.xml +243 -0
- package/lib/commonjs/components/AuthForms/Login.js +285 -0
- package/lib/commonjs/components/AuthForms/Login.js.map +1 -0
- package/lib/commonjs/components/AuthForms/LoginAnonym.js +69 -0
- package/lib/commonjs/components/AuthForms/LoginAnonym.js.map +1 -0
- package/lib/commonjs/components/AuthForms/Register.js +17 -0
- package/lib/commonjs/components/AuthForms/Register.js.map +1 -0
- package/lib/commonjs/components/ContextMenu/ContextMenuComponents.js +87 -0
- package/lib/commonjs/components/ContextMenu/ContextMenuComponents.js.map +1 -0
- package/lib/commonjs/components/DropdownMenu/DropdownMenu.js +220 -0
- package/lib/commonjs/components/DropdownMenu/DropdownMenu.js.map +1 -0
- package/lib/commonjs/components/ExampleComponents/CustomMessage.js +90 -0
- package/lib/commonjs/components/ExampleComponents/CustomMessage.js.map +1 -0
- package/lib/commonjs/components/ExampleComponents/CustomTypingIndicatorExamples.js +273 -0
- package/lib/commonjs/components/ExampleComponents/CustomTypingIndicatorExamples.js.map +1 -0
- package/lib/commonjs/components/Header/HeaderRoomList.js +117 -0
- package/lib/commonjs/components/Header/HeaderRoomList.js.map +1 -0
- package/lib/commonjs/components/InputComponents/AudioInput.js +23 -0
- package/lib/commonjs/components/InputComponents/AudioInput.js.map +1 -0
- package/lib/commonjs/components/InputComponents/AudioRecorder.js +101 -0
- package/lib/commonjs/components/InputComponents/AudioRecorder.js.map +1 -0
- package/lib/commonjs/components/InputComponents/MediaInput.js +98 -0
- package/lib/commonjs/components/InputComponents/MediaInput.js.map +1 -0
- package/lib/commonjs/components/InputComponents/RecordingIndicator.js +70 -0
- package/lib/commonjs/components/InputComponents/RecordingIndicator.js.map +1 -0
- package/lib/commonjs/components/InputComponents/Search.js +112 -0
- package/lib/commonjs/components/InputComponents/Search.js.map +1 -0
- package/lib/commonjs/components/InputComponents/TextInput.js +62 -0
- package/lib/commonjs/components/InputComponents/TextInput.js.map +1 -0
- package/lib/commonjs/components/MainComponents/ChatHeader.js +154 -0
- package/lib/commonjs/components/MainComponents/ChatHeader.js.map +1 -0
- package/lib/commonjs/components/MainComponents/ChatRoom.js +272 -0
- package/lib/commonjs/components/MainComponents/ChatRoom.js.map +1 -0
- package/lib/commonjs/components/MainComponents/ChatWrapper.js +277 -0
- package/lib/commonjs/components/MainComponents/ChatWrapper.js.map +1 -0
- package/lib/commonjs/components/MainComponents/ChooseChatMessage.js +46 -0
- package/lib/commonjs/components/MainComponents/ChooseChatMessage.js.map +1 -0
- package/lib/commonjs/components/MainComponents/ConnectionBanner.js +40 -0
- package/lib/commonjs/components/MainComponents/ConnectionBanner.js.map +1 -0
- package/lib/commonjs/components/MainComponents/EditWrapper.js +83 -0
- package/lib/commonjs/components/MainComponents/EditWrapper.js.map +1 -0
- package/lib/commonjs/components/MainComponents/LoginWrapper.js +126 -0
- package/lib/commonjs/components/MainComponents/LoginWrapper.js.map +1 -0
- package/lib/commonjs/components/MainComponents/MediaMessage.js +67 -0
- package/lib/commonjs/components/MainComponents/MediaMessage.js.map +1 -0
- package/lib/commonjs/components/MainComponents/MessageContainer.js +86 -0
- package/lib/commonjs/components/MainComponents/MessageContainer.js.map +1 -0
- package/lib/commonjs/components/MainComponents/MessageList.js +290 -0
- package/lib/commonjs/components/MainComponents/MessageList.js.map +1 -0
- package/lib/commonjs/components/MainComponents/NoMessagesPlaceholder.js +51 -0
- package/lib/commonjs/components/MainComponents/NoMessagesPlaceholder.js.map +1 -0
- package/lib/commonjs/components/MainComponents/ProfileImagePlaceholder.js +97 -0
- package/lib/commonjs/components/MainComponents/ProfileImagePlaceholder.js.map +1 -0
- package/lib/commonjs/components/MainComponents/RNStyled.js +36 -0
- package/lib/commonjs/components/MainComponents/RNStyled.js.map +1 -0
- package/lib/commonjs/components/MainComponents/ReduxWrapper.js +43 -0
- package/lib/commonjs/components/MainComponents/ReduxWrapper.js.map +1 -0
- package/lib/commonjs/components/MainComponents/RoomList.js +205 -0
- package/lib/commonjs/components/MainComponents/RoomList.js.map +1 -0
- package/lib/commonjs/components/MainComponents/Select.js +136 -0
- package/lib/commonjs/components/MainComponents/Select.js.map +1 -0
- package/lib/commonjs/components/MainComponents/Switch.js +74 -0
- package/lib/commonjs/components/MainComponents/Switch.js.map +1 -0
- package/lib/commonjs/components/MainComponents/SystemMessage.js +39 -0
- package/lib/commonjs/components/MainComponents/SystemMessage.js.map +1 -0
- package/lib/commonjs/components/Menu/HeaderRoomListMenu.js +163 -0
- package/lib/commonjs/components/Menu/HeaderRoomListMenu.js.map +1 -0
- package/lib/commonjs/components/MenuRoom/MenuRoom.js +49 -0
- package/lib/commonjs/components/MenuRoom/MenuRoom.js.map +1 -0
- package/lib/commonjs/components/MessageBubble/Avatar.js +78 -0
- package/lib/commonjs/components/MessageBubble/Avatar.js.map +1 -0
- package/lib/commonjs/components/MessageBubble/BottomReplyContainer.js +109 -0
- package/lib/commonjs/components/MessageBubble/BottomReplyContainer.js.map +1 -0
- package/lib/commonjs/components/MessageBubble/CustomDivider.js +15 -0
- package/lib/commonjs/components/MessageBubble/CustomDivider.js.map +1 -0
- package/lib/commonjs/components/MessageBubble/DeletedMessage.js +47 -0
- package/lib/commonjs/components/MessageBubble/DeletedMessage.js.map +1 -0
- package/lib/commonjs/components/MessageBubble/Message.js +318 -0
- package/lib/commonjs/components/MessageBubble/Message.js.map +1 -0
- package/lib/commonjs/components/MessageBubble/MessageInteractions.js +164 -0
- package/lib/commonjs/components/MessageBubble/MessageInteractions.js.map +1 -0
- package/lib/commonjs/components/MessageBubble/MessageReaction.js +148 -0
- package/lib/commonjs/components/MessageBubble/MessageReaction.js.map +1 -0
- package/lib/commonjs/components/MessageBubble/MessageReply.js +40 -0
- package/lib/commonjs/components/MessageBubble/MessageReply.js.map +1 -0
- package/lib/commonjs/components/MessageBubble/MessageTranslations.js +27 -0
- package/lib/commonjs/components/MessageBubble/MessageTranslations.js.map +1 -0
- package/lib/commonjs/components/Modals/AddMembersModal/AddMembersModal.js +141 -0
- package/lib/commonjs/components/Modals/AddMembersModal/AddMembersModal.js.map +1 -0
- package/lib/commonjs/components/Modals/AttachSheet/AttachSheet.js +184 -0
- package/lib/commonjs/components/Modals/AttachSheet/AttachSheet.js.map +1 -0
- package/lib/commonjs/components/Modals/ChatProfileModal/ChatProfileModal.js +383 -0
- package/lib/commonjs/components/Modals/ChatProfileModal/ChatProfileModal.js.map +1 -0
- package/lib/commonjs/components/Modals/ChatProfileModal/DeleteChatModal.js +90 -0
- package/lib/commonjs/components/Modals/ChatProfileModal/DeleteChatModal.js.map +1 -0
- package/lib/commonjs/components/Modals/FilePreviewModal/FilePreviewModal.js +184 -0
- package/lib/commonjs/components/Modals/FilePreviewModal/FilePreviewModal.js.map +1 -0
- package/lib/commonjs/components/Modals/FilePreviewModal/PdfView.js +88 -0
- package/lib/commonjs/components/Modals/FilePreviewModal/PdfView.js.map +1 -0
- package/lib/commonjs/components/Modals/Modal/Modal.js +45 -0
- package/lib/commonjs/components/Modals/Modal/Modal.js.map +1 -0
- package/lib/commonjs/components/Modals/ModalHeaderComponent.js +36 -0
- package/lib/commonjs/components/Modals/ModalHeaderComponent.js.map +1 -0
- package/lib/commonjs/components/Modals/ModalSelectMedia/ModalSelectMedia.js +207 -0
- package/lib/commonjs/components/Modals/ModalSelectMedia/ModalSelectMedia.js.map +1 -0
- package/lib/commonjs/components/Modals/ModalWrapper/ModalWrapper.js +87 -0
- package/lib/commonjs/components/Modals/ModalWrapper/ModalWrapper.js.map +1 -0
- package/lib/commonjs/components/Modals/NewChatModal/ModalContent.js +134 -0
- package/lib/commonjs/components/Modals/NewChatModal/ModalContent.js.map +1 -0
- package/lib/commonjs/components/Modals/NewChatModal/NewChatModal.js +324 -0
- package/lib/commonjs/components/Modals/NewChatModal/NewChatModal.js.map +1 -0
- package/lib/commonjs/components/Modals/NewChatModal/UpdNewChatModal.js +133 -0
- package/lib/commonjs/components/Modals/NewChatModal/UpdNewChatModal.js.map +1 -0
- package/lib/commonjs/components/Modals/SelectUsersModal/SelectUsersModal.js +122 -0
- package/lib/commonjs/components/Modals/SelectUsersModal/SelectUsersModal.js.map +1 -0
- package/lib/commonjs/components/Modals/SettingsModals/BlockedUsers/BlockedUsersModal.js +41 -0
- package/lib/commonjs/components/Modals/SettingsModals/BlockedUsers/BlockedUsersModal.js.map +1 -0
- package/lib/commonjs/components/Modals/SettingsModals/DocumentShares/DocumentSharesModal.js +83 -0
- package/lib/commonjs/components/Modals/SettingsModals/DocumentShares/DocumentSharesModal.js.map +1 -0
- package/lib/commonjs/components/Modals/SettingsModals/ManageDataModal/ManageDataModal.js +92 -0
- package/lib/commonjs/components/Modals/SettingsModals/ManageDataModal/ManageDataModal.js.map +1 -0
- package/lib/commonjs/components/Modals/SettingsModals/ManageDataModal/StyledComponents.js +2 -0
- package/lib/commonjs/components/Modals/SettingsModals/ManageDataModal/StyledComponents.js.map +1 -0
- package/lib/commonjs/components/Modals/SettingsModals/ProfileShares/ProfileShares.js +43 -0
- package/lib/commonjs/components/Modals/SettingsModals/ProfileShares/ProfileShares.js.map +1 -0
- package/lib/commonjs/components/Modals/SettingsModals/Referrals/Referrals.js +88 -0
- package/lib/commonjs/components/Modals/SettingsModals/Referrals/Referrals.js.map +1 -0
- package/lib/commonjs/components/Modals/SettingsModals/SharedStyledComponents.js +75 -0
- package/lib/commonjs/components/Modals/SettingsModals/SharedStyledComponents.js.map +1 -0
- package/lib/commonjs/components/Modals/SettingsModals/Visibility/RadioInput.js +56 -0
- package/lib/commonjs/components/Modals/SettingsModals/Visibility/RadioInput.js.map +1 -0
- package/lib/commonjs/components/Modals/SettingsModals/Visibility/StyledComponents.js +35 -0
- package/lib/commonjs/components/Modals/SettingsModals/Visibility/StyledComponents.js.map +1 -0
- package/lib/commonjs/components/Modals/SettingsModals/Visibility/VisibilityModal.js +135 -0
- package/lib/commonjs/components/Modals/SettingsModals/Visibility/VisibilityModal.js.map +1 -0
- package/lib/commonjs/components/Modals/UserProfileModal/EditUserModal.js +146 -0
- package/lib/commonjs/components/Modals/UserProfileModal/EditUserModal.js.map +1 -0
- package/lib/commonjs/components/Modals/UserProfileModal/UserProfileModal.js +340 -0
- package/lib/commonjs/components/Modals/UserProfileModal/UserProfileModal.js.map +1 -0
- package/lib/commonjs/components/Modals/UserSettingsModal/UserSettingsModal.js +77 -0
- package/lib/commonjs/components/Modals/UserSettingsModal/UserSettingsModal.js.map +1 -0
- package/lib/commonjs/components/Modals/styledModalComponents.js +167 -0
- package/lib/commonjs/components/Modals/styledModalComponents.js.map +1 -0
- package/lib/commonjs/components/OperationalModal/OperationalModal.js +83 -0
- package/lib/commonjs/components/OperationalModal/OperationalModal.js.map +1 -0
- package/lib/commonjs/components/RoomComponents/ChatRoomItem.js +159 -0
- package/lib/commonjs/components/RoomComponents/ChatRoomItem.js.map +1 -0
- package/lib/commonjs/components/RoomComponents/LastMessageItem.js +57 -0
- package/lib/commonjs/components/RoomComponents/LastMessageItem.js.map +1 -0
- package/lib/commonjs/components/RoomComponents/styled/LastAudioMessage.js +65 -0
- package/lib/commonjs/components/RoomComponents/styled/LastAudioMessage.js.map +1 -0
- package/lib/commonjs/components/RoomComponents/styled/LastMessageEmoji.js +29 -0
- package/lib/commonjs/components/RoomComponents/styled/LastMessageEmoji.js.map +1 -0
- package/lib/commonjs/components/RoomComponents/styled/LastMessageFile.js +51 -0
- package/lib/commonjs/components/RoomComponents/styled/LastMessageFile.js.map +1 -0
- package/lib/commonjs/components/RoomComponents/styled/LastMessagePhoto.js +51 -0
- package/lib/commonjs/components/RoomComponents/styled/LastMessagePhoto.js.map +1 -0
- package/lib/commonjs/components/RoomComponents/styled/LastMessageVideo.js +69 -0
- package/lib/commonjs/components/RoomComponents/styled/LastMessageVideo.js.map +1 -0
- package/lib/commonjs/components/RoomComponents/styled/LastTextMessage.js +52 -0
- package/lib/commonjs/components/RoomComponents/styled/LastTextMessage.js.map +1 -0
- package/lib/commonjs/components/RoomComponents/styled/StyledRoomComponents.js +54 -0
- package/lib/commonjs/components/RoomComponents/styled/StyledRoomComponents.js.map +1 -0
- package/lib/commonjs/components/SortDropDown/index.js +68 -0
- package/lib/commonjs/components/SortDropDown/index.js.map +1 -0
- package/lib/commonjs/components/Thread/ThreadHeader.js +50 -0
- package/lib/commonjs/components/Thread/ThreadHeader.js.map +1 -0
- package/lib/commonjs/components/Thread/ThreadWrapper.js +211 -0
- package/lib/commonjs/components/Thread/ThreadWrapper.js.map +1 -0
- package/lib/commonjs/components/Toast/Toast.js +116 -0
- package/lib/commonjs/components/Toast/Toast.js.map +1 -0
- package/lib/commonjs/components/Toast/index.js +30 -0
- package/lib/commonjs/components/Toast/index.js.map +1 -0
- package/lib/commonjs/components/UsersList/StyledComponents.js +33 -0
- package/lib/commonjs/components/UsersList/StyledComponents.js.map +1 -0
- package/lib/commonjs/components/UsersList/UsersList.js +88 -0
- package/lib/commonjs/components/UsersList/UsersList.js.map +1 -0
- package/lib/commonjs/components/styled/ActionButton.js +42 -0
- package/lib/commonjs/components/styled/ActionButton.js.map +1 -0
- package/lib/commonjs/components/styled/AudioMessage.js +139 -0
- package/lib/commonjs/components/styled/AudioMessage.js.map +1 -0
- package/lib/commonjs/components/styled/Button.js +93 -0
- package/lib/commonjs/components/styled/Button.js.map +1 -0
- package/lib/commonjs/components/styled/ChatWrapperBox.js +16 -0
- package/lib/commonjs/components/styled/ChatWrapperBox.js.map +1 -0
- package/lib/commonjs/components/styled/DateLabel.js +73 -0
- package/lib/commonjs/components/styled/DateLabel.js.map +1 -0
- package/lib/commonjs/components/styled/Loader.js +61 -0
- package/lib/commonjs/components/styled/Loader.js.map +1 -0
- package/lib/commonjs/components/styled/MediaFilePreview.js +45 -0
- package/lib/commonjs/components/styled/MediaFilePreview.js.map +1 -0
- package/lib/commonjs/components/styled/MediaModal.js +61 -0
- package/lib/commonjs/components/styled/MediaModal.js.map +1 -0
- package/lib/commonjs/components/styled/MessageImage.js +52 -0
- package/lib/commonjs/components/styled/MessageImage.js.map +1 -0
- package/lib/commonjs/components/styled/NewMessageLabel.js +51 -0
- package/lib/commonjs/components/styled/NewMessageLabel.js.map +1 -0
- package/lib/commonjs/components/styled/RoomListComponents/index.js +184 -0
- package/lib/commonjs/components/styled/RoomListComponents/index.js.map +1 -0
- package/lib/commonjs/components/styled/SendInput.js +354 -0
- package/lib/commonjs/components/styled/SendInput.js.map +1 -0
- package/lib/commonjs/components/styled/StyledComponents.js +309 -0
- package/lib/commonjs/components/styled/StyledComponents.js.map +1 -0
- package/lib/commonjs/components/styled/StyledInput.js +99 -0
- package/lib/commonjs/components/styled/StyledInput.js.map +1 -0
- package/lib/commonjs/components/styled/StyledInputComponents/AudioComponents.js +6 -0
- package/lib/commonjs/components/styled/StyledInputComponents/AudioComponents.js.map +1 -0
- package/lib/commonjs/components/styled/StyledInputComponents/Composing.js +98 -0
- package/lib/commonjs/components/styled/StyledInputComponents/Composing.js.map +1 -0
- package/lib/commonjs/components/styled/StyledInputComponents/CustomTypingIndicator.js +255 -0
- package/lib/commonjs/components/styled/StyledInputComponents/CustomTypingIndicator.js.map +1 -0
- package/lib/commonjs/components/styled/StyledInputComponents/MediaComponents.js +87 -0
- package/lib/commonjs/components/styled/StyledInputComponents/MediaComponents.js.map +1 -0
- package/lib/commonjs/components/styled/StyledInputComponents/StyledInputComponents.js +118 -0
- package/lib/commonjs/components/styled/StyledInputComponents/StyledInputComponents.js.map +1 -0
- package/lib/commonjs/components/styled/StyledInputComponents/VideoComponents.js +49 -0
- package/lib/commonjs/components/styled/StyledInputComponents/VideoComponents.js.map +1 -0
- package/lib/commonjs/components/styled/TreadLabel.js +47 -0
- package/lib/commonjs/components/styled/TreadLabel.js.map +1 -0
- package/lib/commonjs/components/styled/UnsupportedType.js +75 -0
- package/lib/commonjs/components/styled/UnsupportedType.js.map +1 -0
- package/lib/commonjs/components/styled/VideoMessage.js +58 -0
- package/lib/commonjs/components/styled/VideoMessage.js.map +1 -0
- package/lib/commonjs/context/MessageNotificationContext.js +270 -0
- package/lib/commonjs/context/MessageNotificationContext.js.map +1 -0
- package/lib/commonjs/context/PushNotificationProvider.js +79 -0
- package/lib/commonjs/context/PushNotificationProvider.js.map +1 -0
- package/lib/commonjs/context/ToastContext.js +64 -0
- package/lib/commonjs/context/ToastContext.js.map +1 -0
- package/lib/commonjs/context/toastProvider.js +2 -0
- package/lib/commonjs/context/toastProvider.js.map +1 -0
- package/lib/commonjs/context/xmppProvider.js +355 -0
- package/lib/commonjs/context/xmppProvider.js.map +1 -0
- package/lib/commonjs/helpers/block_scroll.js +71 -0
- package/lib/commonjs/helpers/block_scroll.js.map +1 -0
- package/lib/commonjs/helpers/chatAutoEnterer.js +40 -0
- package/lib/commonjs/helpers/chatAutoEnterer.js.map +1 -0
- package/lib/commonjs/helpers/checkUniqueUsers.js +30 -0
- package/lib/commonjs/helpers/checkUniqueUsers.js.map +1 -0
- package/lib/commonjs/helpers/constants/CHAT_TYPES.js +14 -0
- package/lib/commonjs/helpers/constants/CHAT_TYPES.js.map +1 -0
- package/lib/commonjs/helpers/constants/LANGUAGE_OPTIONS.js +23 -0
- package/lib/commonjs/helpers/constants/LANGUAGE_OPTIONS.js.map +1 -0
- package/lib/commonjs/helpers/constants/LOCAL_STORAGE.js +10 -0
- package/lib/commonjs/helpers/constants/LOCAL_STORAGE.js.map +1 -0
- package/lib/commonjs/helpers/constants/MESSAGE_INTERACTIONS.js +27 -0
- package/lib/commonjs/helpers/constants/MESSAGE_INTERACTIONS.js.map +1 -0
- package/lib/commonjs/helpers/constants/MODAL_COMPONENTS.js +38 -0
- package/lib/commonjs/helpers/constants/MODAL_COMPONENTS.js.map +1 -0
- package/lib/commonjs/helpers/constants/MODAL_TYPES.js +31 -0
- package/lib/commonjs/helpers/constants/MODAL_TYPES.js.map +1 -0
- package/lib/commonjs/helpers/constants/PLATFORM_CONSTANTS.js +10 -0
- package/lib/commonjs/helpers/constants/PLATFORM_CONSTANTS.js.map +1 -0
- package/lib/commonjs/helpers/createMainMessageForThread.js +29 -0
- package/lib/commonjs/helpers/createMainMessageForThread.js.map +1 -0
- package/lib/commonjs/helpers/createMessageFromXml.js +105 -0
- package/lib/commonjs/helpers/createMessageFromXml.js.map +1 -0
- package/lib/commonjs/helpers/createRoomFromApi.js +30 -0
- package/lib/commonjs/helpers/createRoomFromApi.js.map +1 -0
- package/lib/commonjs/helpers/createUserNameFromSetUser.js +17 -0
- package/lib/commonjs/helpers/createUserNameFromSetUser.js.map +1 -0
- package/lib/commonjs/helpers/dateComparison.js +21 -0
- package/lib/commonjs/helpers/dateComparison.js.map +1 -0
- package/lib/commonjs/helpers/debounce.js +14 -0
- package/lib/commonjs/helpers/debounce.js.map +1 -0
- package/lib/commonjs/helpers/ensureScopedChatCache.js +53 -0
- package/lib/commonjs/helpers/ensureScopedChatCache.js.map +1 -0
- package/lib/commonjs/helpers/extractUniqueMembersFromRooms.js +33 -0
- package/lib/commonjs/helpers/extractUniqueMembersFromRooms.js.map +1 -0
- package/lib/commonjs/helpers/formatNumberWithCommas.js +10 -0
- package/lib/commonjs/helpers/formatNumberWithCommas.js.map +1 -0
- package/lib/commonjs/helpers/getBooleanFromString.js +20 -0
- package/lib/commonjs/helpers/getBooleanFromString.js.map +1 -0
- package/lib/commonjs/helpers/getDataFromXml.js +56 -0
- package/lib/commonjs/helpers/getDataFromXml.js.map +1 -0
- package/lib/commonjs/helpers/getNumberFromString.js +14 -0
- package/lib/commonjs/helpers/getNumberFromString.js.map +1 -0
- package/lib/commonjs/helpers/getRoomsWithRetry.js +35 -0
- package/lib/commonjs/helpers/getRoomsWithRetry.js.map +1 -0
- package/lib/commonjs/helpers/getTintedColor.js +25 -0
- package/lib/commonjs/helpers/getTintedColor.js.map +1 -0
- package/lib/commonjs/helpers/getUnnamedUsers.js +33 -0
- package/lib/commonjs/helpers/getUnnamedUsers.js.map +1 -0
- package/lib/commonjs/helpers/handleCopyClick.js +11 -0
- package/lib/commonjs/helpers/handleCopyClick.js.map +1 -0
- package/lib/commonjs/helpers/handleXmppError.js +26 -0
- package/lib/commonjs/helpers/handleXmppError.js.map +1 -0
- package/lib/commonjs/helpers/hashcolor.js +19 -0
- package/lib/commonjs/helpers/hashcolor.js.map +1 -0
- package/lib/commonjs/helpers/historyPreloadScheduler.js +228 -0
- package/lib/commonjs/helpers/historyPreloadScheduler.js.map +1 -0
- package/lib/commonjs/helpers/initRoomsPresence.js +31 -0
- package/lib/commonjs/helpers/initRoomsPresence.js.map +1 -0
- package/lib/commonjs/helpers/initXmppRooms.js +66 -0
- package/lib/commonjs/helpers/initXmppRooms.js.map +1 -0
- package/lib/commonjs/helpers/insertMessageWithDelimiter.js +74 -0
- package/lib/commonjs/helpers/insertMessageWithDelimiter.js.map +1 -0
- package/lib/commonjs/helpers/isChatIdPresentInArray.js +41 -0
- package/lib/commonjs/helpers/isChatIdPresentInArray.js.map +1 -0
- package/lib/commonjs/helpers/localStorageUser.js +13 -0
- package/lib/commonjs/helpers/localStorageUser.js.map +1 -0
- package/lib/commonjs/helpers/markdownParser.js +281 -0
- package/lib/commonjs/helpers/markdownParser.js.map +1 -0
- package/lib/commonjs/helpers/nanoToMs.js +11 -0
- package/lib/commonjs/helpers/nanoToMs.js.map +1 -0
- package/lib/commonjs/helpers/parseMessageBody.js +532 -0
- package/lib/commonjs/helpers/parseMessageBody.js.map +1 -0
- package/lib/commonjs/helpers/parseUrls.js +43 -0
- package/lib/commonjs/helpers/parseUrls.js.map +1 -0
- package/lib/commonjs/helpers/resolveInitBeforeLoadUser.js +249 -0
- package/lib/commonjs/helpers/resolveInitBeforeLoadUser.js.map +1 -0
- package/lib/commonjs/helpers/storeConsole.js +30 -0
- package/lib/commonjs/helpers/storeConsole.js.map +1 -0
- package/lib/commonjs/helpers/transformTranslatations.js +14 -0
- package/lib/commonjs/helpers/transformTranslatations.js.map +1 -0
- package/lib/commonjs/helpers/updateMessagesTillLast.js +74 -0
- package/lib/commonjs/helpers/updateMessagesTillLast.js.map +1 -0
- package/lib/commonjs/helpers/updatedChatLastTimestamps.js +32 -0
- package/lib/commonjs/helpers/updatedChatLastTimestamps.js.map +1 -0
- package/lib/commonjs/helpers/validator.js +20 -0
- package/lib/commonjs/helpers/validator.js.map +1 -0
- package/lib/commonjs/helpers/walletUsername.js +19 -0
- package/lib/commonjs/helpers/walletUsername.js.map +1 -0
- package/lib/commonjs/hooks/hooks.js +10 -0
- package/lib/commonjs/hooks/hooks.js.map +1 -0
- package/lib/commonjs/hooks/useChatSettingState.js +29 -0
- package/lib/commonjs/hooks/useChatSettingState.js.map +1 -0
- package/lib/commonjs/hooks/useChatWrapperInit.js +210 -0
- package/lib/commonjs/hooks/useChatWrapperInit.js.map +1 -0
- package/lib/commonjs/hooks/useComposing.js +49 -0
- package/lib/commonjs/hooks/useComposing.js.map +1 -0
- package/lib/commonjs/hooks/useCustomTypingIndicator.js +184 -0
- package/lib/commonjs/hooks/useCustomTypingIndicator.js.map +1 -0
- package/lib/commonjs/hooks/useEventHandlers.js +51 -0
- package/lib/commonjs/hooks/useEventHandlers.js.map +1 -0
- package/lib/commonjs/hooks/useGetNewArchRoom.js +49 -0
- package/lib/commonjs/hooks/useGetNewArchRoom.js.map +1 -0
- package/lib/commonjs/hooks/useHeapSender.js +73 -0
- package/lib/commonjs/hooks/useHeapSender.js.map +1 -0
- package/lib/commonjs/hooks/useLocalStorage.js +65 -0
- package/lib/commonjs/hooks/useLocalStorage.js.map +1 -0
- package/lib/commonjs/hooks/useLogout.js +147 -0
- package/lib/commonjs/hooks/useLogout.js.map +1 -0
- package/lib/commonjs/hooks/useMessageHeapState.js +17 -0
- package/lib/commonjs/hooks/useMessageHeapState.js.map +1 -0
- package/lib/commonjs/hooks/useMessageLoaderQueue.js +60 -0
- package/lib/commonjs/hooks/useMessageLoaderQueue.js.map +1 -0
- package/lib/commonjs/hooks/useMessageQueue.js +112 -0
- package/lib/commonjs/hooks/useMessageQueue.js.map +1 -0
- package/lib/commonjs/hooks/usePendingNotification.js +49 -0
- package/lib/commonjs/hooks/usePendingNotification.js.map +1 -0
- package/lib/commonjs/hooks/usePrevious.js +20 -0
- package/lib/commonjs/hooks/usePrevious.js.map +1 -0
- package/lib/commonjs/hooks/usePushNotifications.js +96 -0
- package/lib/commonjs/hooks/usePushNotifications.js.map +1 -0
- package/lib/commonjs/hooks/useQRCodeChatHandler.js +55 -0
- package/lib/commonjs/hooks/useQRCodeChatHandler.js.map +1 -0
- package/lib/commonjs/hooks/useRoomInitialization.js +149 -0
- package/lib/commonjs/hooks/useRoomInitialization.js.map +1 -0
- package/lib/commonjs/hooks/useRoomState.js +37 -0
- package/lib/commonjs/hooks/useRoomState.js.map +1 -0
- package/lib/commonjs/hooks/useRoomUrl.js +35 -0
- package/lib/commonjs/hooks/useRoomUrl.js.map +1 -0
- package/lib/commonjs/hooks/useSendMessage.js +313 -0
- package/lib/commonjs/hooks/useSendMessage.js.map +1 -0
- package/lib/commonjs/hooks/useUnreadMessagesCounter.js +41 -0
- package/lib/commonjs/hooks/useUnreadMessagesCounter.js.map +1 -0
- package/lib/commonjs/hooks/useXmppInitialization.js +112 -0
- package/lib/commonjs/hooks/useXmppInitialization.js.map +1 -0
- package/lib/commonjs/main.js +55 -0
- package/lib/commonjs/main.js.map +1 -0
- package/lib/commonjs/networking/api-requests/auth.api.js +126 -0
- package/lib/commonjs/networking/api-requests/auth.api.js.map +1 -0
- package/lib/commonjs/networking/api-requests/push.api.js +44 -0
- package/lib/commonjs/networking/api-requests/push.api.js.map +1 -0
- package/lib/commonjs/networking/api-requests/roomMembers.api.js +22 -0
- package/lib/commonjs/networking/api-requests/roomMembers.api.js.map +1 -0
- package/lib/commonjs/networking/api-requests/rooms.api.js +243 -0
- package/lib/commonjs/networking/api-requests/rooms.api.js.map +1 -0
- package/lib/commonjs/networking/api-requests/user.api.js +74 -0
- package/lib/commonjs/networking/api-requests/user.api.js.map +1 -0
- package/lib/commonjs/networking/apiClient.js +174 -0
- package/lib/commonjs/networking/apiClient.js.map +1 -0
- package/lib/commonjs/networking/helpers/refreshChecker.js +17 -0
- package/lib/commonjs/networking/helpers/refreshChecker.js.map +1 -0
- package/lib/commonjs/networking/stanzaHandlers.js +346 -0
- package/lib/commonjs/networking/stanzaHandlers.js.map +1 -0
- package/lib/commonjs/networking/xmpp/actionSetTimestampToPrivateStore.xmpp.js +28 -0
- package/lib/commonjs/networking/xmpp/actionSetTimestampToPrivateStore.xmpp.js.map +1 -0
- package/lib/commonjs/networking/xmpp/allRoomPresences.xmpp.js +13 -0
- package/lib/commonjs/networking/xmpp/allRoomPresences.xmpp.js.map +1 -0
- package/lib/commonjs/networking/xmpp/createPrivateRoom.xmpp.js +24 -0
- package/lib/commonjs/networking/xmpp/createPrivateRoom.xmpp.js.map +1 -0
- package/lib/commonjs/networking/xmpp/createRoom.xmpp.js +31 -0
- package/lib/commonjs/networking/xmpp/createRoom.xmpp.js.map +1 -0
- package/lib/commonjs/networking/xmpp/createRoomPresence.xmpp.js +52 -0
- package/lib/commonjs/networking/xmpp/createRoomPresence.xmpp.js.map +1 -0
- package/lib/commonjs/networking/xmpp/createTimeoutPromise.xmpp.js +19 -0
- package/lib/commonjs/networking/xmpp/createTimeoutPromise.xmpp.js.map +1 -0
- package/lib/commonjs/networking/xmpp/deleteMessage.xmpp.js +19 -0
- package/lib/commonjs/networking/xmpp/deleteMessage.xmpp.js.map +1 -0
- package/lib/commonjs/networking/xmpp/editMessage.xmpp.js +44 -0
- package/lib/commonjs/networking/xmpp/editMessage.xmpp.js.map +1 -0
- package/lib/commonjs/networking/xmpp/flushLastViewedToPrivateStore.js +82 -0
- package/lib/commonjs/networking/xmpp/flushLastViewedToPrivateStore.js.map +1 -0
- package/lib/commonjs/networking/xmpp/getChatsPrivateStoreRequest.xmpp.js +53 -0
- package/lib/commonjs/networking/xmpp/getChatsPrivateStoreRequest.xmpp.js.map +1 -0
- package/lib/commonjs/networking/xmpp/getHistory.xmpp.js +101 -0
- package/lib/commonjs/networking/xmpp/getHistory.xmpp.js.map +1 -0
- package/lib/commonjs/networking/xmpp/getLastMessageArchive.xmpp.js +20 -0
- package/lib/commonjs/networking/xmpp/getLastMessageArchive.xmpp.js.map +1 -0
- package/lib/commonjs/networking/xmpp/getRoomInfo.xmpp.js +20 -0
- package/lib/commonjs/networking/xmpp/getRoomInfo.xmpp.js.map +1 -0
- package/lib/commonjs/networking/xmpp/getRoomMembers.xmpp.js +19 -0
- package/lib/commonjs/networking/xmpp/getRoomMembers.xmpp.js.map +1 -0
- package/lib/commonjs/networking/xmpp/getRooms.xmpp.js +40 -0
- package/lib/commonjs/networking/xmpp/getRooms.xmpp.js.map +1 -0
- package/lib/commonjs/networking/xmpp/getRoomsPaged.xmpp.js +48 -0
- package/lib/commonjs/networking/xmpp/getRoomsPaged.xmpp.js.map +1 -0
- package/lib/commonjs/networking/xmpp/handlePong.xmpp.js +10 -0
- package/lib/commonjs/networking/xmpp/handlePong.xmpp.js.map +1 -0
- package/lib/commonjs/networking/xmpp/handleStanzas.xmpp.js +44 -0
- package/lib/commonjs/networking/xmpp/handleStanzas.xmpp.js.map +1 -0
- package/lib/commonjs/networking/xmpp/inviteRoomRequest.xmpp.js +19 -0
- package/lib/commonjs/networking/xmpp/inviteRoomRequest.xmpp.js.map +1 -0
- package/lib/commonjs/networking/xmpp/leaveTheRoom.xmpp.js +19 -0
- package/lib/commonjs/networking/xmpp/leaveTheRoom.xmpp.js.map +1 -0
- package/lib/commonjs/networking/xmpp/listenerManager.js +80 -0
- package/lib/commonjs/networking/xmpp/listenerManager.js.map +1 -0
- package/lib/commonjs/networking/xmpp/presenceInRoom.xmpp.js +50 -0
- package/lib/commonjs/networking/xmpp/presenceInRoom.xmpp.js.map +1 -0
- package/lib/commonjs/networking/xmpp/roomConfig.xmpp.js +44 -0
- package/lib/commonjs/networking/xmpp/roomConfig.xmpp.js.map +1 -0
- package/lib/commonjs/networking/xmpp/sendMediaMessage.xmpp.js +92 -0
- package/lib/commonjs/networking/xmpp/sendMediaMessage.xmpp.js.map +1 -0
- package/lib/commonjs/networking/xmpp/sendMessageReaction.xmpp.js +30 -0
- package/lib/commonjs/networking/xmpp/sendMessageReaction.xmpp.js.map +1 -0
- package/lib/commonjs/networking/xmpp/sendPing.xmpp.js +21 -0
- package/lib/commonjs/networking/xmpp/sendPing.xmpp.js.map +1 -0
- package/lib/commonjs/networking/xmpp/sendTextMessage.xmpp.js +90 -0
- package/lib/commonjs/networking/xmpp/sendTextMessage.xmpp.js.map +1 -0
- package/lib/commonjs/networking/xmpp/sendTextMessageWithTranslateTag.xmpp.js +27 -0
- package/lib/commonjs/networking/xmpp/sendTextMessageWithTranslateTag.xmpp.js.map +1 -0
- package/lib/commonjs/networking/xmpp/sendTypingRequest.xmpp.js +21 -0
- package/lib/commonjs/networking/xmpp/sendTypingRequest.xmpp.js.map +1 -0
- package/lib/commonjs/networking/xmpp/setChatsPrivateStoreRequest.xmpp.js +36 -0
- package/lib/commonjs/networking/xmpp/setChatsPrivateStoreRequest.xmpp.js.map +1 -0
- package/lib/commonjs/networking/xmpp/setMeAsOwner.xmpp.js +38 -0
- package/lib/commonjs/networking/xmpp/setMeAsOwner.xmpp.js.map +1 -0
- package/lib/commonjs/networking/xmpp/setRoomImage.xmpp.js +22 -0
- package/lib/commonjs/networking/xmpp/setRoomImage.xmpp.js.map +1 -0
- package/lib/commonjs/networking/xmpp/setVCard.xmpp.js +17 -0
- package/lib/commonjs/networking/xmpp/setVCard.xmpp.js.map +1 -0
- package/lib/commonjs/networking/xmpp/subscribeToRoomMessages.xmpp.js +65 -0
- package/lib/commonjs/networking/xmpp/subscribeToRoomMessages.xmpp.js.map +1 -0
- package/lib/commonjs/networking/xmppClient.js +496 -0
- package/lib/commonjs/networking/xmppClient.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/roomStore/Middleware/logoutMiddleware.js +36 -0
- package/lib/commonjs/roomStore/Middleware/logoutMiddleware.js.map +1 -0
- package/lib/commonjs/roomStore/Middleware/newMessageMidlleware.js +88 -0
- package/lib/commonjs/roomStore/Middleware/newMessageMidlleware.js.map +1 -0
- package/lib/commonjs/roomStore/Middleware/reactionsMiddleware.js +69 -0
- package/lib/commonjs/roomStore/Middleware/reactionsMiddleware.js.map +1 -0
- package/lib/commonjs/roomStore/Middleware/testMiddleware.js +22 -0
- package/lib/commonjs/roomStore/Middleware/testMiddleware.js.map +1 -0
- package/lib/commonjs/roomStore/Middleware/unreadMidlleware.js +139 -0
- package/lib/commonjs/roomStore/Middleware/unreadMidlleware.js.map +1 -0
- package/lib/commonjs/roomStore/chatSettingsSlice.js +176 -0
- package/lib/commonjs/roomStore/chatSettingsSlice.js.map +1 -0
- package/lib/commonjs/roomStore/index.js +60 -0
- package/lib/commonjs/roomStore/index.js.map +1 -0
- package/lib/commonjs/roomStore/persistence.js +148 -0
- package/lib/commonjs/roomStore/persistence.js.map +1 -0
- package/lib/commonjs/roomStore/roomHeapSlice.js +44 -0
- package/lib/commonjs/roomStore/roomHeapSlice.js.map +1 -0
- package/lib/commonjs/roomStore/roomsSlice.js +494 -0
- package/lib/commonjs/roomStore/roomsSlice.js.map +1 -0
- package/lib/commonjs/services/pushNotifications.js +143 -0
- package/lib/commonjs/services/pushNotifications.js.map +1 -0
- package/lib/commonjs/services/pushSubscriptionService.js +139 -0
- package/lib/commonjs/services/pushSubscriptionService.js.map +1 -0
- package/lib/commonjs/types/messages.js +2 -0
- package/lib/commonjs/types/messages.js.map +1 -0
- package/lib/commonjs/types/models/action.model.js +6 -0
- package/lib/commonjs/types/models/action.model.js.map +1 -0
- package/lib/commonjs/types/models/config.model.js +2 -0
- package/lib/commonjs/types/models/config.model.js.map +1 -0
- package/lib/commonjs/types/models/customComponents.model.js +6 -0
- package/lib/commonjs/types/models/customComponents.model.js.map +1 -0
- package/lib/commonjs/types/models/language.model.js +2 -0
- package/lib/commonjs/types/models/language.model.js.map +1 -0
- package/lib/commonjs/types/models/media.model.js +2 -0
- package/lib/commonjs/types/models/media.model.js.map +1 -0
- package/lib/commonjs/types/models/message.model.js +6 -0
- package/lib/commonjs/types/models/message.model.js.map +1 -0
- package/lib/commonjs/types/models/modal.model.js +6 -0
- package/lib/commonjs/types/models/modal.model.js.map +1 -0
- package/lib/commonjs/types/models/room.model.js +6 -0
- package/lib/commonjs/types/models/room.model.js.map +1 -0
- package/lib/commonjs/types/models/user.model.js +6 -0
- package/lib/commonjs/types/models/user.model.js.map +1 -0
- package/lib/commonjs/types/models/xmpp.model.js +6 -0
- package/lib/commonjs/types/models/xmpp.model.js.map +1 -0
- package/lib/commonjs/types/types.js +6 -0
- package/lib/commonjs/types/types.js.map +1 -0
- package/lib/commonjs/utils/PriorityQueue.js +45 -0
- package/lib/commonjs/utils/PriorityQueue.js.map +1 -0
- package/lib/commonjs/utils/actionHelpers.js +41 -0
- package/lib/commonjs/utils/actionHelpers.js.map +1 -0
- package/lib/commonjs/utils/actionLogger.js +53 -0
- package/lib/commonjs/utils/actionLogger.js.map +1 -0
- package/lib/commonjs/utils/clientRegistry.js +79 -0
- package/lib/commonjs/utils/clientRegistry.js.map +1 -0
- package/lib/commonjs/utils/devLogger.js +190 -0
- package/lib/commonjs/utils/devLogger.js.map +1 -0
- package/lib/commonjs/utils/messageNotificationManager.js +92 -0
- package/lib/commonjs/utils/messageNotificationManager.js.map +1 -0
- package/lib/commonjs/utils/resendMessage.js +47 -0
- package/lib/commonjs/utils/resendMessage.js.map +1 -0
- package/lib/commonjs/utils/toastEmitter.js +30 -0
- package/lib/commonjs/utils/toastEmitter.js.map +1 -0
- package/lib/commonjs/utils/xmppMemoryMonitor.js +52 -0
- package/lib/commonjs/utils/xmppMemoryMonitor.js.map +1 -0
- package/lib/commonjs/version.js +8 -0
- package/lib/commonjs/version.js.map +1 -0
- package/lib/module/assets/BG.js +59 -0
- package/lib/module/assets/BG.js.map +1 -0
- package/lib/module/assets/BG.png +0 -0
- package/lib/module/assets/File.svg +4 -0
- package/lib/module/assets/ForzaCare.js +33 -0
- package/lib/module/assets/ForzaCare.js.map +1 -0
- package/lib/module/assets/ForzaCare.png +0 -0
- package/lib/module/assets/icons.js +2 -0
- package/lib/module/assets/icons.js.map +1 -0
- package/lib/module/assets/images.js +38 -0
- package/lib/module/assets/images.js.map +1 -0
- package/lib/module/assets/test.xml +243 -0
- package/lib/module/components/AuthForms/Login.js +282 -0
- package/lib/module/components/AuthForms/Login.js.map +1 -0
- package/lib/module/components/AuthForms/LoginAnonym.js +64 -0
- package/lib/module/components/AuthForms/LoginAnonym.js.map +1 -0
- package/lib/module/components/AuthForms/Register.js +12 -0
- package/lib/module/components/AuthForms/Register.js.map +1 -0
- package/lib/module/components/ContextMenu/ContextMenuComponents.js +82 -0
- package/lib/module/components/ContextMenu/ContextMenuComponents.js.map +1 -0
- package/lib/module/components/DropdownMenu/DropdownMenu.js +214 -0
- package/lib/module/components/DropdownMenu/DropdownMenu.js.map +1 -0
- package/lib/module/components/ExampleComponents/CustomMessage.js +84 -0
- package/lib/module/components/ExampleComponents/CustomMessage.js.map +1 -0
- package/lib/module/components/ExampleComponents/CustomTypingIndicatorExamples.js +262 -0
- package/lib/module/components/ExampleComponents/CustomTypingIndicatorExamples.js.map +1 -0
- package/lib/module/components/Header/HeaderRoomList.js +110 -0
- package/lib/module/components/Header/HeaderRoomList.js.map +1 -0
- package/lib/module/components/InputComponents/AudioInput.js +18 -0
- package/lib/module/components/InputComponents/AudioInput.js.map +1 -0
- package/lib/module/components/InputComponents/AudioRecorder.js +95 -0
- package/lib/module/components/InputComponents/AudioRecorder.js.map +1 -0
- package/lib/module/components/InputComponents/MediaInput.js +92 -0
- package/lib/module/components/InputComponents/MediaInput.js.map +1 -0
- package/lib/module/components/InputComponents/RecordingIndicator.js +65 -0
- package/lib/module/components/InputComponents/RecordingIndicator.js.map +1 -0
- package/lib/module/components/InputComponents/Search.js +107 -0
- package/lib/module/components/InputComponents/Search.js.map +1 -0
- package/lib/module/components/InputComponents/TextInput.js +56 -0
- package/lib/module/components/InputComponents/TextInput.js.map +1 -0
- package/lib/module/components/MainComponents/ChatHeader.js +148 -0
- package/lib/module/components/MainComponents/ChatHeader.js.map +1 -0
- package/lib/module/components/MainComponents/ChatRoom.js +266 -0
- package/lib/module/components/MainComponents/ChatRoom.js.map +1 -0
- package/lib/module/components/MainComponents/ChatWrapper.js +271 -0
- package/lib/module/components/MainComponents/ChatWrapper.js.map +1 -0
- package/lib/module/components/MainComponents/ChooseChatMessage.js +41 -0
- package/lib/module/components/MainComponents/ChooseChatMessage.js.map +1 -0
- package/lib/module/components/MainComponents/ConnectionBanner.js +35 -0
- package/lib/module/components/MainComponents/ConnectionBanner.js.map +1 -0
- package/lib/module/components/MainComponents/EditWrapper.js +77 -0
- package/lib/module/components/MainComponents/EditWrapper.js.map +1 -0
- package/lib/module/components/MainComponents/LoginWrapper.js +121 -0
- package/lib/module/components/MainComponents/LoginWrapper.js.map +1 -0
- package/lib/module/components/MainComponents/MediaMessage.js +62 -0
- package/lib/module/components/MainComponents/MediaMessage.js.map +1 -0
- package/lib/module/components/MainComponents/MessageContainer.js +79 -0
- package/lib/module/components/MainComponents/MessageContainer.js.map +1 -0
- package/lib/module/components/MainComponents/MessageList.js +284 -0
- package/lib/module/components/MainComponents/MessageList.js.map +1 -0
- package/lib/module/components/MainComponents/NoMessagesPlaceholder.js +47 -0
- package/lib/module/components/MainComponents/NoMessagesPlaceholder.js.map +1 -0
- package/lib/module/components/MainComponents/ProfileImagePlaceholder.js +91 -0
- package/lib/module/components/MainComponents/ProfileImagePlaceholder.js.map +1 -0
- package/lib/module/components/MainComponents/RNStyled.js +31 -0
- package/lib/module/components/MainComponents/RNStyled.js.map +1 -0
- package/lib/module/components/MainComponents/ReduxWrapper.js +37 -0
- package/lib/module/components/MainComponents/ReduxWrapper.js.map +1 -0
- package/lib/module/components/MainComponents/RoomList.js +199 -0
- package/lib/module/components/MainComponents/RoomList.js.map +1 -0
- package/lib/module/components/MainComponents/Select.js +130 -0
- package/lib/module/components/MainComponents/Select.js.map +1 -0
- package/lib/module/components/MainComponents/Switch.js +68 -0
- package/lib/module/components/MainComponents/Switch.js.map +1 -0
- package/lib/module/components/MainComponents/SystemMessage.js +34 -0
- package/lib/module/components/MainComponents/SystemMessage.js.map +1 -0
- package/lib/module/components/Menu/HeaderRoomListMenu.js +157 -0
- package/lib/module/components/Menu/HeaderRoomListMenu.js.map +1 -0
- package/lib/module/components/MenuRoom/MenuRoom.js +43 -0
- package/lib/module/components/MenuRoom/MenuRoom.js.map +1 -0
- package/lib/module/components/MessageBubble/Avatar.js +71 -0
- package/lib/module/components/MessageBubble/Avatar.js.map +1 -0
- package/lib/module/components/MessageBubble/BottomReplyContainer.js +104 -0
- package/lib/module/components/MessageBubble/BottomReplyContainer.js.map +1 -0
- package/lib/module/components/MessageBubble/CustomDivider.js +10 -0
- package/lib/module/components/MessageBubble/CustomDivider.js.map +1 -0
- package/lib/module/components/MessageBubble/DeletedMessage.js +42 -0
- package/lib/module/components/MessageBubble/DeletedMessage.js.map +1 -0
- package/lib/module/components/MessageBubble/Message.js +312 -0
- package/lib/module/components/MessageBubble/Message.js.map +1 -0
- package/lib/module/components/MessageBubble/MessageInteractions.js +159 -0
- package/lib/module/components/MessageBubble/MessageInteractions.js.map +1 -0
- package/lib/module/components/MessageBubble/MessageReaction.js +140 -0
- package/lib/module/components/MessageBubble/MessageReaction.js.map +1 -0
- package/lib/module/components/MessageBubble/MessageReply.js +35 -0
- package/lib/module/components/MessageBubble/MessageReply.js.map +1 -0
- package/lib/module/components/MessageBubble/MessageTranslations.js +22 -0
- package/lib/module/components/MessageBubble/MessageTranslations.js.map +1 -0
- package/lib/module/components/Modals/AddMembersModal/AddMembersModal.js +135 -0
- package/lib/module/components/Modals/AddMembersModal/AddMembersModal.js.map +1 -0
- package/lib/module/components/Modals/AttachSheet/AttachSheet.js +179 -0
- package/lib/module/components/Modals/AttachSheet/AttachSheet.js.map +1 -0
- package/lib/module/components/Modals/ChatProfileModal/ChatProfileModal.js +377 -0
- package/lib/module/components/Modals/ChatProfileModal/ChatProfileModal.js.map +1 -0
- package/lib/module/components/Modals/ChatProfileModal/DeleteChatModal.js +85 -0
- package/lib/module/components/Modals/ChatProfileModal/DeleteChatModal.js.map +1 -0
- package/lib/module/components/Modals/FilePreviewModal/FilePreviewModal.js +178 -0
- package/lib/module/components/Modals/FilePreviewModal/FilePreviewModal.js.map +1 -0
- package/lib/module/components/Modals/FilePreviewModal/PdfView.js +83 -0
- package/lib/module/components/Modals/FilePreviewModal/PdfView.js.map +1 -0
- package/lib/module/components/Modals/Modal/Modal.js +40 -0
- package/lib/module/components/Modals/Modal/Modal.js.map +1 -0
- package/lib/module/components/Modals/ModalHeaderComponent.js +31 -0
- package/lib/module/components/Modals/ModalHeaderComponent.js.map +1 -0
- package/lib/module/components/Modals/ModalSelectMedia/ModalSelectMedia.js +200 -0
- package/lib/module/components/Modals/ModalSelectMedia/ModalSelectMedia.js.map +1 -0
- package/lib/module/components/Modals/ModalWrapper/ModalWrapper.js +81 -0
- package/lib/module/components/Modals/ModalWrapper/ModalWrapper.js.map +1 -0
- package/lib/module/components/Modals/NewChatModal/ModalContent.js +129 -0
- package/lib/module/components/Modals/NewChatModal/ModalContent.js.map +1 -0
- package/lib/module/components/Modals/NewChatModal/NewChatModal.js +318 -0
- package/lib/module/components/Modals/NewChatModal/NewChatModal.js.map +1 -0
- package/lib/module/components/Modals/NewChatModal/UpdNewChatModal.js +127 -0
- package/lib/module/components/Modals/NewChatModal/UpdNewChatModal.js.map +1 -0
- package/lib/module/components/Modals/SelectUsersModal/SelectUsersModal.js +116 -0
- package/lib/module/components/Modals/SelectUsersModal/SelectUsersModal.js.map +1 -0
- package/lib/module/components/Modals/SettingsModals/BlockedUsers/BlockedUsersModal.js +36 -0
- package/lib/module/components/Modals/SettingsModals/BlockedUsers/BlockedUsersModal.js.map +1 -0
- package/lib/module/components/Modals/SettingsModals/DocumentShares/DocumentSharesModal.js +78 -0
- package/lib/module/components/Modals/SettingsModals/DocumentShares/DocumentSharesModal.js.map +1 -0
- package/lib/module/components/Modals/SettingsModals/ManageDataModal/ManageDataModal.js +87 -0
- package/lib/module/components/Modals/SettingsModals/ManageDataModal/ManageDataModal.js.map +1 -0
- package/lib/module/components/Modals/SettingsModals/ManageDataModal/StyledComponents.js +2 -0
- package/lib/module/components/Modals/SettingsModals/ManageDataModal/StyledComponents.js.map +1 -0
- package/lib/module/components/Modals/SettingsModals/ProfileShares/ProfileShares.js +38 -0
- package/lib/module/components/Modals/SettingsModals/ProfileShares/ProfileShares.js.map +1 -0
- package/lib/module/components/Modals/SettingsModals/Referrals/Referrals.js +83 -0
- package/lib/module/components/Modals/SettingsModals/Referrals/Referrals.js.map +1 -0
- package/lib/module/components/Modals/SettingsModals/SharedStyledComponents.js +70 -0
- package/lib/module/components/Modals/SettingsModals/SharedStyledComponents.js.map +1 -0
- package/lib/module/components/Modals/SettingsModals/Visibility/RadioInput.js +50 -0
- package/lib/module/components/Modals/SettingsModals/Visibility/RadioInput.js.map +1 -0
- package/lib/module/components/Modals/SettingsModals/Visibility/StyledComponents.js +30 -0
- package/lib/module/components/Modals/SettingsModals/Visibility/StyledComponents.js.map +1 -0
- package/lib/module/components/Modals/SettingsModals/Visibility/VisibilityModal.js +130 -0
- package/lib/module/components/Modals/SettingsModals/Visibility/VisibilityModal.js.map +1 -0
- package/lib/module/components/Modals/UserProfileModal/EditUserModal.js +140 -0
- package/lib/module/components/Modals/UserProfileModal/EditUserModal.js.map +1 -0
- package/lib/module/components/Modals/UserProfileModal/UserProfileModal.js +334 -0
- package/lib/module/components/Modals/UserProfileModal/UserProfileModal.js.map +1 -0
- package/lib/module/components/Modals/UserSettingsModal/UserSettingsModal.js +71 -0
- package/lib/module/components/Modals/UserSettingsModal/UserSettingsModal.js.map +1 -0
- package/lib/module/components/Modals/styledModalComponents.js +162 -0
- package/lib/module/components/Modals/styledModalComponents.js.map +1 -0
- package/lib/module/components/OperationalModal/OperationalModal.js +77 -0
- package/lib/module/components/OperationalModal/OperationalModal.js.map +1 -0
- package/lib/module/components/RoomComponents/ChatRoomItem.js +153 -0
- package/lib/module/components/RoomComponents/ChatRoomItem.js.map +1 -0
- package/lib/module/components/RoomComponents/LastMessageItem.js +52 -0
- package/lib/module/components/RoomComponents/LastMessageItem.js.map +1 -0
- package/lib/module/components/RoomComponents/styled/LastAudioMessage.js +60 -0
- package/lib/module/components/RoomComponents/styled/LastAudioMessage.js.map +1 -0
- package/lib/module/components/RoomComponents/styled/LastMessageEmoji.js +24 -0
- package/lib/module/components/RoomComponents/styled/LastMessageEmoji.js.map +1 -0
- package/lib/module/components/RoomComponents/styled/LastMessageFile.js +46 -0
- package/lib/module/components/RoomComponents/styled/LastMessageFile.js.map +1 -0
- package/lib/module/components/RoomComponents/styled/LastMessagePhoto.js +46 -0
- package/lib/module/components/RoomComponents/styled/LastMessagePhoto.js.map +1 -0
- package/lib/module/components/RoomComponents/styled/LastMessageVideo.js +64 -0
- package/lib/module/components/RoomComponents/styled/LastMessageVideo.js.map +1 -0
- package/lib/module/components/RoomComponents/styled/LastTextMessage.js +47 -0
- package/lib/module/components/RoomComponents/styled/LastTextMessage.js.map +1 -0
- package/lib/module/components/RoomComponents/styled/StyledRoomComponents.js +49 -0
- package/lib/module/components/RoomComponents/styled/StyledRoomComponents.js.map +1 -0
- package/lib/module/components/SortDropDown/index.js +62 -0
- package/lib/module/components/SortDropDown/index.js.map +1 -0
- package/lib/module/components/Thread/ThreadHeader.js +45 -0
- package/lib/module/components/Thread/ThreadHeader.js.map +1 -0
- package/lib/module/components/Thread/ThreadWrapper.js +206 -0
- package/lib/module/components/Thread/ThreadWrapper.js.map +1 -0
- package/lib/module/components/Toast/Toast.js +111 -0
- package/lib/module/components/Toast/Toast.js.map +1 -0
- package/lib/module/components/Toast/index.js +19 -0
- package/lib/module/components/Toast/index.js.map +1 -0
- package/lib/module/components/UsersList/StyledComponents.js +28 -0
- package/lib/module/components/UsersList/StyledComponents.js.map +1 -0
- package/lib/module/components/UsersList/UsersList.js +83 -0
- package/lib/module/components/UsersList/UsersList.js.map +1 -0
- package/lib/module/components/styled/ActionButton.js +37 -0
- package/lib/module/components/styled/ActionButton.js.map +1 -0
- package/lib/module/components/styled/AudioMessage.js +134 -0
- package/lib/module/components/styled/AudioMessage.js.map +1 -0
- package/lib/module/components/styled/Button.js +88 -0
- package/lib/module/components/styled/Button.js.map +1 -0
- package/lib/module/components/styled/ChatWrapperBox.js +11 -0
- package/lib/module/components/styled/ChatWrapperBox.js.map +1 -0
- package/lib/module/components/styled/DateLabel.js +68 -0
- package/lib/module/components/styled/DateLabel.js.map +1 -0
- package/lib/module/components/styled/Loader.js +56 -0
- package/lib/module/components/styled/Loader.js.map +1 -0
- package/lib/module/components/styled/MediaFilePreview.js +40 -0
- package/lib/module/components/styled/MediaFilePreview.js.map +1 -0
- package/lib/module/components/styled/MediaModal.js +54 -0
- package/lib/module/components/styled/MediaModal.js.map +1 -0
- package/lib/module/components/styled/MessageImage.js +47 -0
- package/lib/module/components/styled/MessageImage.js.map +1 -0
- package/lib/module/components/styled/NewMessageLabel.js +46 -0
- package/lib/module/components/styled/NewMessageLabel.js.map +1 -0
- package/lib/module/components/styled/RoomListComponents/index.js +169 -0
- package/lib/module/components/styled/RoomListComponents/index.js.map +1 -0
- package/lib/module/components/styled/SendInput.js +349 -0
- package/lib/module/components/styled/SendInput.js.map +1 -0
- package/lib/module/components/styled/StyledComponents.js +304 -0
- package/lib/module/components/styled/StyledComponents.js.map +1 -0
- package/lib/module/components/styled/StyledInput.js +94 -0
- package/lib/module/components/styled/StyledInput.js.map +1 -0
- package/lib/module/components/styled/StyledInputComponents/AudioComponents.js +4 -0
- package/lib/module/components/styled/StyledInputComponents/AudioComponents.js.map +1 -0
- package/lib/module/components/styled/StyledInputComponents/Composing.js +93 -0
- package/lib/module/components/styled/StyledInputComponents/Composing.js.map +1 -0
- package/lib/module/components/styled/StyledInputComponents/CustomTypingIndicator.js +248 -0
- package/lib/module/components/styled/StyledInputComponents/CustomTypingIndicator.js.map +1 -0
- package/lib/module/components/styled/StyledInputComponents/MediaComponents.js +82 -0
- package/lib/module/components/styled/StyledInputComponents/MediaComponents.js.map +1 -0
- package/lib/module/components/styled/StyledInputComponents/StyledInputComponents.js +114 -0
- package/lib/module/components/styled/StyledInputComponents/StyledInputComponents.js.map +1 -0
- package/lib/module/components/styled/StyledInputComponents/VideoComponents.js +44 -0
- package/lib/module/components/styled/StyledInputComponents/VideoComponents.js.map +1 -0
- package/lib/module/components/styled/TreadLabel.js +42 -0
- package/lib/module/components/styled/TreadLabel.js.map +1 -0
- package/lib/module/components/styled/UnsupportedType.js +70 -0
- package/lib/module/components/styled/UnsupportedType.js.map +1 -0
- package/lib/module/components/styled/VideoMessage.js +53 -0
- package/lib/module/components/styled/VideoMessage.js.map +1 -0
- package/lib/module/context/MessageNotificationContext.js +262 -0
- package/lib/module/context/MessageNotificationContext.js.map +1 -0
- package/lib/module/context/PushNotificationProvider.js +79 -0
- package/lib/module/context/PushNotificationProvider.js.map +1 -0
- package/lib/module/context/ToastContext.js +56 -0
- package/lib/module/context/ToastContext.js.map +1 -0
- package/lib/module/context/toastProvider.js +2 -0
- package/lib/module/context/toastProvider.js.map +1 -0
- package/lib/module/context/xmppProvider.js +345 -0
- package/lib/module/context/xmppProvider.js.map +1 -0
- package/lib/module/helpers/block_scroll.js +66 -0
- package/lib/module/helpers/block_scroll.js.map +1 -0
- package/lib/module/helpers/chatAutoEnterer.js +35 -0
- package/lib/module/helpers/chatAutoEnterer.js.map +1 -0
- package/lib/module/helpers/checkUniqueUsers.js +24 -0
- package/lib/module/helpers/checkUniqueUsers.js.map +1 -0
- package/lib/module/helpers/constants/CHAT_TYPES.js +10 -0
- package/lib/module/helpers/constants/CHAT_TYPES.js.map +1 -0
- package/lib/module/helpers/constants/LANGUAGE_OPTIONS.js +19 -0
- package/lib/module/helpers/constants/LANGUAGE_OPTIONS.js.map +1 -0
- package/lib/module/helpers/constants/LOCAL_STORAGE.js +6 -0
- package/lib/module/helpers/constants/LOCAL_STORAGE.js.map +1 -0
- package/lib/module/helpers/constants/MESSAGE_INTERACTIONS.js +23 -0
- package/lib/module/helpers/constants/MESSAGE_INTERACTIONS.js.map +1 -0
- package/lib/module/helpers/constants/MODAL_COMPONENTS.js +33 -0
- package/lib/module/helpers/constants/MODAL_COMPONENTS.js.map +1 -0
- package/lib/module/helpers/constants/MODAL_TYPES.js +27 -0
- package/lib/module/helpers/constants/MODAL_TYPES.js.map +1 -0
- package/lib/module/helpers/constants/PLATFORM_CONSTANTS.js +6 -0
- package/lib/module/helpers/constants/PLATFORM_CONSTANTS.js.map +1 -0
- package/lib/module/helpers/createMainMessageForThread.js +24 -0
- package/lib/module/helpers/createMainMessageForThread.js.map +1 -0
- package/lib/module/helpers/createMessageFromXml.js +100 -0
- package/lib/module/helpers/createMessageFromXml.js.map +1 -0
- package/lib/module/helpers/createRoomFromApi.js +25 -0
- package/lib/module/helpers/createRoomFromApi.js.map +1 -0
- package/lib/module/helpers/createUserNameFromSetUser.js +12 -0
- package/lib/module/helpers/createUserNameFromSetUser.js.map +1 -0
- package/lib/module/helpers/dateComparison.js +14 -0
- package/lib/module/helpers/dateComparison.js.map +1 -0
- package/lib/module/helpers/debounce.js +10 -0
- package/lib/module/helpers/debounce.js.map +1 -0
- package/lib/module/helpers/ensureScopedChatCache.js +49 -0
- package/lib/module/helpers/ensureScopedChatCache.js.map +1 -0
- package/lib/module/helpers/extractUniqueMembersFromRooms.js +29 -0
- package/lib/module/helpers/extractUniqueMembersFromRooms.js.map +1 -0
- package/lib/module/helpers/formatNumberWithCommas.js +6 -0
- package/lib/module/helpers/formatNumberWithCommas.js.map +1 -0
- package/lib/module/helpers/getBooleanFromString.js +16 -0
- package/lib/module/helpers/getBooleanFromString.js.map +1 -0
- package/lib/module/helpers/getDataFromXml.js +51 -0
- package/lib/module/helpers/getDataFromXml.js.map +1 -0
- package/lib/module/helpers/getNumberFromString.js +10 -0
- package/lib/module/helpers/getNumberFromString.js.map +1 -0
- package/lib/module/helpers/getRoomsWithRetry.js +31 -0
- package/lib/module/helpers/getRoomsWithRetry.js.map +1 -0
- package/lib/module/helpers/getTintedColor.js +20 -0
- package/lib/module/helpers/getTintedColor.js.map +1 -0
- package/lib/module/helpers/getUnnamedUsers.js +27 -0
- package/lib/module/helpers/getUnnamedUsers.js.map +1 -0
- package/lib/module/helpers/handleCopyClick.js +6 -0
- package/lib/module/helpers/handleCopyClick.js.map +1 -0
- package/lib/module/helpers/handleXmppError.js +22 -0
- package/lib/module/helpers/handleXmppError.js.map +1 -0
- package/lib/module/helpers/hashcolor.js +15 -0
- package/lib/module/helpers/hashcolor.js.map +1 -0
- package/lib/module/helpers/historyPreloadScheduler.js +223 -0
- package/lib/module/helpers/historyPreloadScheduler.js.map +1 -0
- package/lib/module/helpers/initRoomsPresence.js +26 -0
- package/lib/module/helpers/initRoomsPresence.js.map +1 -0
- package/lib/module/helpers/initXmppRooms.js +62 -0
- package/lib/module/helpers/initXmppRooms.js.map +1 -0
- package/lib/module/helpers/insertMessageWithDelimiter.js +70 -0
- package/lib/module/helpers/insertMessageWithDelimiter.js.map +1 -0
- package/lib/module/helpers/isChatIdPresentInArray.js +37 -0
- package/lib/module/helpers/isChatIdPresentInArray.js.map +1 -0
- package/lib/module/helpers/localStorageUser.js +8 -0
- package/lib/module/helpers/localStorageUser.js.map +1 -0
- package/lib/module/helpers/markdownParser.js +275 -0
- package/lib/module/helpers/markdownParser.js.map +1 -0
- package/lib/module/helpers/nanoToMs.js +6 -0
- package/lib/module/helpers/nanoToMs.js.map +1 -0
- package/lib/module/helpers/parseMessageBody.js +525 -0
- package/lib/module/helpers/parseMessageBody.js.map +1 -0
- package/lib/module/helpers/parseUrls.js +38 -0
- package/lib/module/helpers/parseUrls.js.map +1 -0
- package/lib/module/helpers/resolveInitBeforeLoadUser.js +242 -0
- package/lib/module/helpers/resolveInitBeforeLoadUser.js.map +1 -0
- package/lib/module/helpers/storeConsole.js +26 -0
- package/lib/module/helpers/storeConsole.js.map +1 -0
- package/lib/module/helpers/transformTranslatations.js +9 -0
- package/lib/module/helpers/transformTranslatations.js.map +1 -0
- package/lib/module/helpers/updateMessagesTillLast.js +70 -0
- package/lib/module/helpers/updateMessagesTillLast.js.map +1 -0
- package/lib/module/helpers/updatedChatLastTimestamps.js +27 -0
- package/lib/module/helpers/updatedChatLastTimestamps.js.map +1 -0
- package/lib/module/helpers/validator.js +15 -0
- package/lib/module/helpers/validator.js.map +1 -0
- package/lib/module/helpers/walletUsername.js +14 -0
- package/lib/module/helpers/walletUsername.js.map +1 -0
- package/lib/module/hooks/hooks.js +6 -0
- package/lib/module/hooks/hooks.js.map +1 -0
- package/lib/module/hooks/useChatSettingState.js +24 -0
- package/lib/module/hooks/useChatSettingState.js.map +1 -0
- package/lib/module/hooks/useChatWrapperInit.js +205 -0
- package/lib/module/hooks/useChatWrapperInit.js.map +1 -0
- package/lib/module/hooks/useComposing.js +45 -0
- package/lib/module/hooks/useComposing.js.map +1 -0
- package/lib/module/hooks/useCustomTypingIndicator.js +179 -0
- package/lib/module/hooks/useCustomTypingIndicator.js.map +1 -0
- package/lib/module/hooks/useEventHandlers.js +46 -0
- package/lib/module/hooks/useEventHandlers.js.map +1 -0
- package/lib/module/hooks/useGetNewArchRoom.js +45 -0
- package/lib/module/hooks/useGetNewArchRoom.js.map +1 -0
- package/lib/module/hooks/useHeapSender.js +68 -0
- package/lib/module/hooks/useHeapSender.js.map +1 -0
- package/lib/module/hooks/useLocalStorage.js +60 -0
- package/lib/module/hooks/useLocalStorage.js.map +1 -0
- package/lib/module/hooks/useLogout.js +143 -0
- package/lib/module/hooks/useLogout.js.map +1 -0
- package/lib/module/hooks/useMessageHeapState.js +12 -0
- package/lib/module/hooks/useMessageHeapState.js.map +1 -0
- package/lib/module/hooks/useMessageLoaderQueue.js +56 -0
- package/lib/module/hooks/useMessageLoaderQueue.js.map +1 -0
- package/lib/module/hooks/useMessageQueue.js +107 -0
- package/lib/module/hooks/useMessageQueue.js.map +1 -0
- package/lib/module/hooks/usePendingNotification.js +43 -0
- package/lib/module/hooks/usePendingNotification.js.map +1 -0
- package/lib/module/hooks/usePrevious.js +16 -0
- package/lib/module/hooks/usePrevious.js.map +1 -0
- package/lib/module/hooks/usePushNotifications.js +92 -0
- package/lib/module/hooks/usePushNotifications.js.map +1 -0
- package/lib/module/hooks/useQRCodeChatHandler.js +48 -0
- package/lib/module/hooks/useQRCodeChatHandler.js.map +1 -0
- package/lib/module/hooks/useRoomInitialization.js +143 -0
- package/lib/module/hooks/useRoomInitialization.js.map +1 -0
- package/lib/module/hooks/useRoomState.js +32 -0
- package/lib/module/hooks/useRoomState.js.map +1 -0
- package/lib/module/hooks/useRoomUrl.js +30 -0
- package/lib/module/hooks/useRoomUrl.js.map +1 -0
- package/lib/module/hooks/useSendMessage.js +308 -0
- package/lib/module/hooks/useSendMessage.js.map +1 -0
- package/lib/module/hooks/useUnreadMessagesCounter.js +37 -0
- package/lib/module/hooks/useUnreadMessagesCounter.js.map +1 -0
- package/lib/module/hooks/useXmppInitialization.js +107 -0
- package/lib/module/hooks/useXmppInitialization.js.map +1 -0
- package/lib/module/main.js +39 -0
- package/lib/module/main.js.map +1 -0
- package/lib/module/networking/api-requests/auth.api.js +117 -0
- package/lib/module/networking/api-requests/auth.api.js.map +1 -0
- package/lib/module/networking/api-requests/push.api.js +39 -0
- package/lib/module/networking/api-requests/push.api.js.map +1 -0
- package/lib/module/networking/api-requests/roomMembers.api.js +17 -0
- package/lib/module/networking/api-requests/roomMembers.api.js.map +1 -0
- package/lib/module/networking/api-requests/rooms.api.js +230 -0
- package/lib/module/networking/api-requests/rooms.api.js.map +1 -0
- package/lib/module/networking/api-requests/user.api.js +63 -0
- package/lib/module/networking/api-requests/user.api.js.map +1 -0
- package/lib/module/networking/apiClient.js +166 -0
- package/lib/module/networking/apiClient.js.map +1 -0
- package/lib/module/networking/helpers/refreshChecker.js +12 -0
- package/lib/module/networking/helpers/refreshChecker.js.map +1 -0
- package/lib/module/networking/stanzaHandlers.js +328 -0
- package/lib/module/networking/stanzaHandlers.js.map +1 -0
- package/lib/module/networking/xmpp/actionSetTimestampToPrivateStore.xmpp.js +24 -0
- package/lib/module/networking/xmpp/actionSetTimestampToPrivateStore.xmpp.js.map +1 -0
- package/lib/module/networking/xmpp/allRoomPresences.xmpp.js +9 -0
- package/lib/module/networking/xmpp/allRoomPresences.xmpp.js.map +1 -0
- package/lib/module/networking/xmpp/createPrivateRoom.xmpp.js +20 -0
- package/lib/module/networking/xmpp/createPrivateRoom.xmpp.js.map +1 -0
- package/lib/module/networking/xmpp/createRoom.xmpp.js +27 -0
- package/lib/module/networking/xmpp/createRoom.xmpp.js.map +1 -0
- package/lib/module/networking/xmpp/createRoomPresence.xmpp.js +48 -0
- package/lib/module/networking/xmpp/createRoomPresence.xmpp.js.map +1 -0
- package/lib/module/networking/xmpp/createTimeoutPromise.xmpp.js +15 -0
- package/lib/module/networking/xmpp/createTimeoutPromise.xmpp.js.map +1 -0
- package/lib/module/networking/xmpp/deleteMessage.xmpp.js +15 -0
- package/lib/module/networking/xmpp/deleteMessage.xmpp.js.map +1 -0
- package/lib/module/networking/xmpp/editMessage.xmpp.js +40 -0
- package/lib/module/networking/xmpp/editMessage.xmpp.js.map +1 -0
- package/lib/module/networking/xmpp/flushLastViewedToPrivateStore.js +78 -0
- package/lib/module/networking/xmpp/flushLastViewedToPrivateStore.js.map +1 -0
- package/lib/module/networking/xmpp/getChatsPrivateStoreRequest.xmpp.js +49 -0
- package/lib/module/networking/xmpp/getChatsPrivateStoreRequest.xmpp.js.map +1 -0
- package/lib/module/networking/xmpp/getHistory.xmpp.js +96 -0
- package/lib/module/networking/xmpp/getHistory.xmpp.js.map +1 -0
- package/lib/module/networking/xmpp/getLastMessageArchive.xmpp.js +16 -0
- package/lib/module/networking/xmpp/getLastMessageArchive.xmpp.js.map +1 -0
- package/lib/module/networking/xmpp/getRoomInfo.xmpp.js +15 -0
- package/lib/module/networking/xmpp/getRoomInfo.xmpp.js.map +1 -0
- package/lib/module/networking/xmpp/getRoomMembers.xmpp.js +14 -0
- package/lib/module/networking/xmpp/getRoomMembers.xmpp.js.map +1 -0
- package/lib/module/networking/xmpp/getRooms.xmpp.js +35 -0
- package/lib/module/networking/xmpp/getRooms.xmpp.js.map +1 -0
- package/lib/module/networking/xmpp/getRoomsPaged.xmpp.js +43 -0
- package/lib/module/networking/xmpp/getRoomsPaged.xmpp.js.map +1 -0
- package/lib/module/networking/xmpp/handlePong.xmpp.js +6 -0
- package/lib/module/networking/xmpp/handlePong.xmpp.js.map +1 -0
- package/lib/module/networking/xmpp/handleStanzas.xmpp.js +40 -0
- package/lib/module/networking/xmpp/handleStanzas.xmpp.js.map +1 -0
- package/lib/module/networking/xmpp/inviteRoomRequest.xmpp.js +15 -0
- package/lib/module/networking/xmpp/inviteRoomRequest.xmpp.js.map +1 -0
- package/lib/module/networking/xmpp/leaveTheRoom.xmpp.js +14 -0
- package/lib/module/networking/xmpp/leaveTheRoom.xmpp.js.map +1 -0
- package/lib/module/networking/xmpp/listenerManager.js +75 -0
- package/lib/module/networking/xmpp/listenerManager.js.map +1 -0
- package/lib/module/networking/xmpp/presenceInRoom.xmpp.js +45 -0
- package/lib/module/networking/xmpp/presenceInRoom.xmpp.js.map +1 -0
- package/lib/module/networking/xmpp/roomConfig.xmpp.js +40 -0
- package/lib/module/networking/xmpp/roomConfig.xmpp.js.map +1 -0
- package/lib/module/networking/xmpp/sendMediaMessage.xmpp.js +89 -0
- package/lib/module/networking/xmpp/sendMediaMessage.xmpp.js.map +1 -0
- package/lib/module/networking/xmpp/sendMessageReaction.xmpp.js +26 -0
- package/lib/module/networking/xmpp/sendMessageReaction.xmpp.js.map +1 -0
- package/lib/module/networking/xmpp/sendPing.xmpp.js +17 -0
- package/lib/module/networking/xmpp/sendPing.xmpp.js.map +1 -0
- package/lib/module/networking/xmpp/sendTextMessage.xmpp.js +86 -0
- package/lib/module/networking/xmpp/sendTextMessage.xmpp.js.map +1 -0
- package/lib/module/networking/xmpp/sendTextMessageWithTranslateTag.xmpp.js +22 -0
- package/lib/module/networking/xmpp/sendTextMessageWithTranslateTag.xmpp.js.map +1 -0
- package/lib/module/networking/xmpp/sendTypingRequest.xmpp.js +17 -0
- package/lib/module/networking/xmpp/sendTypingRequest.xmpp.js.map +1 -0
- package/lib/module/networking/xmpp/setChatsPrivateStoreRequest.xmpp.js +32 -0
- package/lib/module/networking/xmpp/setChatsPrivateStoreRequest.xmpp.js.map +1 -0
- package/lib/module/networking/xmpp/setMeAsOwner.xmpp.js +34 -0
- package/lib/module/networking/xmpp/setMeAsOwner.xmpp.js.map +1 -0
- package/lib/module/networking/xmpp/setRoomImage.xmpp.js +18 -0
- package/lib/module/networking/xmpp/setRoomImage.xmpp.js.map +1 -0
- package/lib/module/networking/xmpp/setVCard.xmpp.js +13 -0
- package/lib/module/networking/xmpp/setVCard.xmpp.js.map +1 -0
- package/lib/module/networking/xmpp/subscribeToRoomMessages.xmpp.js +61 -0
- package/lib/module/networking/xmpp/subscribeToRoomMessages.xmpp.js.map +1 -0
- package/lib/module/networking/xmppClient.js +491 -0
- package/lib/module/networking/xmppClient.js.map +1 -0
- package/lib/module/roomStore/Middleware/logoutMiddleware.js +31 -0
- package/lib/module/roomStore/Middleware/logoutMiddleware.js.map +1 -0
- package/lib/module/roomStore/Middleware/newMessageMidlleware.js +83 -0
- package/lib/module/roomStore/Middleware/newMessageMidlleware.js.map +1 -0
- package/lib/module/roomStore/Middleware/reactionsMiddleware.js +64 -0
- package/lib/module/roomStore/Middleware/reactionsMiddleware.js.map +1 -0
- package/lib/module/roomStore/Middleware/testMiddleware.js +17 -0
- package/lib/module/roomStore/Middleware/testMiddleware.js.map +1 -0
- package/lib/module/roomStore/Middleware/unreadMidlleware.js +134 -0
- package/lib/module/roomStore/Middleware/unreadMidlleware.js.map +1 -0
- package/lib/module/roomStore/chatSettingsSlice.js +160 -0
- package/lib/module/roomStore/chatSettingsSlice.js.map +1 -0
- package/lib/module/roomStore/index.js +54 -0
- package/lib/module/roomStore/index.js.map +1 -0
- package/lib/module/roomStore/persistence.js +139 -0
- package/lib/module/roomStore/persistence.js.map +1 -0
- package/lib/module/roomStore/roomHeapSlice.js +37 -0
- package/lib/module/roomStore/roomHeapSlice.js.map +1 -0
- package/lib/module/roomStore/roomsSlice.js +467 -0
- package/lib/module/roomStore/roomsSlice.js.map +1 -0
- package/lib/module/services/pushNotifications.js +130 -0
- package/lib/module/services/pushNotifications.js.map +1 -0
- package/lib/module/services/pushSubscriptionService.js +133 -0
- package/lib/module/services/pushSubscriptionService.js.map +1 -0
- package/lib/module/types/messages.js +2 -0
- package/lib/module/types/messages.js.map +1 -0
- package/lib/module/types/models/action.model.js +4 -0
- package/lib/module/types/models/action.model.js.map +1 -0
- package/lib/module/types/models/config.model.js +2 -0
- package/lib/module/types/models/config.model.js.map +1 -0
- package/lib/module/types/models/customComponents.model.js +4 -0
- package/lib/module/types/models/customComponents.model.js.map +1 -0
- package/lib/module/types/models/language.model.js +2 -0
- package/lib/module/types/models/language.model.js.map +1 -0
- package/lib/module/types/models/media.model.js +2 -0
- package/lib/module/types/models/media.model.js.map +1 -0
- package/lib/module/types/models/message.model.js +4 -0
- package/lib/module/types/models/message.model.js.map +1 -0
- package/lib/module/types/models/modal.model.js +4 -0
- package/lib/module/types/models/modal.model.js.map +1 -0
- package/lib/module/types/models/room.model.js +4 -0
- package/lib/module/types/models/room.model.js.map +1 -0
- package/lib/module/types/models/user.model.js +4 -0
- package/lib/module/types/models/user.model.js.map +1 -0
- package/lib/module/types/models/xmpp.model.js +4 -0
- package/lib/module/types/models/xmpp.model.js.map +1 -0
- package/lib/module/types/types.js +4 -0
- package/lib/module/types/types.js.map +1 -0
- package/lib/module/utils/PriorityQueue.js +40 -0
- package/lib/module/utils/PriorityQueue.js.map +1 -0
- package/lib/module/utils/actionHelpers.js +34 -0
- package/lib/module/utils/actionHelpers.js.map +1 -0
- package/lib/module/utils/actionLogger.js +48 -0
- package/lib/module/utils/actionLogger.js.map +1 -0
- package/lib/module/utils/clientRegistry.js +67 -0
- package/lib/module/utils/clientRegistry.js.map +1 -0
- package/lib/module/utils/devLogger.js +181 -0
- package/lib/module/utils/devLogger.js.map +1 -0
- package/lib/module/utils/messageNotificationManager.js +88 -0
- package/lib/module/utils/messageNotificationManager.js.map +1 -0
- package/lib/module/utils/resendMessage.js +42 -0
- package/lib/module/utils/resendMessage.js.map +1 -0
- package/lib/module/utils/toastEmitter.js +26 -0
- package/lib/module/utils/toastEmitter.js.map +1 -0
- package/lib/module/utils/xmppMemoryMonitor.js +47 -0
- package/lib/module/utils/xmppMemoryMonitor.js.map +1 -0
- package/lib/module/version.js +4 -0
- package/lib/module/version.js.map +1 -0
- package/lib/typescript/assets/BG.d.ts +5 -0
- package/lib/typescript/assets/BG.d.ts.map +1 -0
- package/lib/typescript/assets/ForzaCare.d.ts +3 -0
- package/lib/typescript/assets/ForzaCare.d.ts.map +1 -0
- package/lib/typescript/assets/icons.d.ts +158 -0
- package/lib/typescript/assets/icons.d.ts.map +1 -0
- package/lib/typescript/assets/images.d.ts +6 -0
- package/lib/typescript/assets/images.d.ts.map +1 -0
- package/lib/typescript/components/AuthForms/Login.d.ts +8 -0
- package/lib/typescript/components/AuthForms/Login.d.ts.map +1 -0
- package/lib/typescript/components/AuthForms/LoginAnonym.d.ts +8 -0
- package/lib/typescript/components/AuthForms/LoginAnonym.d.ts.map +1 -0
- package/lib/typescript/components/AuthForms/Register.d.ts +4 -0
- package/lib/typescript/components/AuthForms/Register.d.ts.map +1 -0
- package/lib/typescript/components/ContextMenu/ContextMenuComponents.d.ts +14 -0
- package/lib/typescript/components/ContextMenu/ContextMenuComponents.d.ts.map +1 -0
- package/lib/typescript/components/DropdownMenu/DropdownMenu.d.ts +20 -0
- package/lib/typescript/components/DropdownMenu/DropdownMenu.d.ts.map +1 -0
- package/lib/typescript/components/ExampleComponents/CustomMessage.d.ts +29 -0
- package/lib/typescript/components/ExampleComponents/CustomMessage.d.ts.map +1 -0
- package/lib/typescript/components/ExampleComponents/CustomTypingIndicatorExamples.d.ts +18 -0
- package/lib/typescript/components/ExampleComponents/CustomTypingIndicatorExamples.d.ts.map +1 -0
- package/lib/typescript/components/Header/HeaderRoomList.d.ts +8 -0
- package/lib/typescript/components/Header/HeaderRoomList.d.ts.map +1 -0
- package/lib/typescript/components/InputComponents/AudioInput.d.ts +9 -0
- package/lib/typescript/components/InputComponents/AudioInput.d.ts.map +1 -0
- package/lib/typescript/components/InputComponents/AudioRecorder.d.ts +9 -0
- package/lib/typescript/components/InputComponents/AudioRecorder.d.ts.map +1 -0
- package/lib/typescript/components/InputComponents/MediaInput.d.ts +16 -0
- package/lib/typescript/components/InputComponents/MediaInput.d.ts.map +1 -0
- package/lib/typescript/components/InputComponents/RecordingIndicator.d.ts +4 -0
- package/lib/typescript/components/InputComponents/RecordingIndicator.d.ts.map +1 -0
- package/lib/typescript/components/InputComponents/Search.d.ts +12 -0
- package/lib/typescript/components/InputComponents/Search.d.ts.map +1 -0
- package/lib/typescript/components/InputComponents/TextInput.d.ts +14 -0
- package/lib/typescript/components/InputComponents/TextInput.d.ts.map +1 -0
- package/lib/typescript/components/MainComponents/ChatHeader.d.ts +10 -0
- package/lib/typescript/components/MainComponents/ChatHeader.d.ts.map +1 -0
- package/lib/typescript/components/MainComponents/ChatRoom.d.ts +15 -0
- package/lib/typescript/components/MainComponents/ChatRoom.d.ts.map +1 -0
- package/lib/typescript/components/MainComponents/ChatWrapper.d.ts +17 -0
- package/lib/typescript/components/MainComponents/ChatWrapper.d.ts.map +1 -0
- package/lib/typescript/components/MainComponents/ChooseChatMessage.d.ts +6 -0
- package/lib/typescript/components/MainComponents/ChooseChatMessage.d.ts.map +1 -0
- package/lib/typescript/components/MainComponents/ConnectionBanner.d.ts +5 -0
- package/lib/typescript/components/MainComponents/ConnectionBanner.d.ts.map +1 -0
- package/lib/typescript/components/MainComponents/EditWrapper.d.ts +12 -0
- package/lib/typescript/components/MainComponents/EditWrapper.d.ts.map +1 -0
- package/lib/typescript/components/MainComponents/LoginWrapper.d.ts +15 -0
- package/lib/typescript/components/MainComponents/LoginWrapper.d.ts.map +1 -0
- package/lib/typescript/components/MainComponents/MediaMessage.d.ts +11 -0
- package/lib/typescript/components/MainComponents/MediaMessage.d.ts.map +1 -0
- package/lib/typescript/components/MainComponents/MessageContainer.d.ts +27 -0
- package/lib/typescript/components/MainComponents/MessageContainer.d.ts.map +1 -0
- package/lib/typescript/components/MainComponents/MessageList.d.ts +27 -0
- package/lib/typescript/components/MainComponents/MessageList.d.ts.map +1 -0
- package/lib/typescript/components/MainComponents/NoMessagesPlaceholder.d.ts +3 -0
- package/lib/typescript/components/MainComponents/NoMessagesPlaceholder.d.ts.map +1 -0
- package/lib/typescript/components/MainComponents/ProfileImagePlaceholder.d.ts +27 -0
- package/lib/typescript/components/MainComponents/ProfileImagePlaceholder.d.ts.map +1 -0
- package/lib/typescript/components/MainComponents/RNStyled.d.ts +7 -0
- package/lib/typescript/components/MainComponents/RNStyled.d.ts.map +1 -0
- package/lib/typescript/components/MainComponents/ReduxWrapper.d.ts +18 -0
- package/lib/typescript/components/MainComponents/ReduxWrapper.d.ts.map +1 -0
- package/lib/typescript/components/MainComponents/RoomList.d.ts +11 -0
- package/lib/typescript/components/MainComponents/RoomList.d.ts.map +1 -0
- package/lib/typescript/components/MainComponents/Select.d.ts +21 -0
- package/lib/typescript/components/MainComponents/Select.d.ts.map +1 -0
- package/lib/typescript/components/MainComponents/Switch.d.ts +10 -0
- package/lib/typescript/components/MainComponents/Switch.d.ts.map +1 -0
- package/lib/typescript/components/MainComponents/SystemMessage.d.ts +18 -0
- package/lib/typescript/components/MainComponents/SystemMessage.d.ts.map +1 -0
- package/lib/typescript/components/Menu/HeaderRoomListMenu.d.ts +11 -0
- package/lib/typescript/components/Menu/HeaderRoomListMenu.d.ts.map +1 -0
- package/lib/typescript/components/MenuRoom/MenuRoom.d.ts +7 -0
- package/lib/typescript/components/MenuRoom/MenuRoom.d.ts.map +1 -0
- package/lib/typescript/components/MessageBubble/Avatar.d.ts +10 -0
- package/lib/typescript/components/MessageBubble/Avatar.d.ts.map +1 -0
- package/lib/typescript/components/MessageBubble/BottomReplyContainer.d.ts +10 -0
- package/lib/typescript/components/MessageBubble/BottomReplyContainer.d.ts.map +1 -0
- package/lib/typescript/components/MessageBubble/CustomDivider.d.ts +6 -0
- package/lib/typescript/components/MessageBubble/CustomDivider.d.ts.map +1 -0
- package/lib/typescript/components/MessageBubble/DeletedMessage.d.ts +2 -0
- package/lib/typescript/components/MessageBubble/DeletedMessage.d.ts.map +1 -0
- package/lib/typescript/components/MessageBubble/Message.d.ts +5 -0
- package/lib/typescript/components/MessageBubble/Message.d.ts.map +1 -0
- package/lib/typescript/components/MessageBubble/MessageInteractions.d.ts +19 -0
- package/lib/typescript/components/MessageBubble/MessageInteractions.d.ts.map +1 -0
- package/lib/typescript/components/MessageBubble/MessageReaction.d.ts +11 -0
- package/lib/typescript/components/MessageBubble/MessageReaction.d.ts.map +1 -0
- package/lib/typescript/components/MessageBubble/MessageReply.d.ts +17 -0
- package/lib/typescript/components/MessageBubble/MessageReply.d.ts.map +1 -0
- package/lib/typescript/components/MessageBubble/MessageTranslations.d.ts +10 -0
- package/lib/typescript/components/MessageBubble/MessageTranslations.d.ts.map +1 -0
- package/lib/typescript/components/Modals/AddMembersModal/AddMembersModal.d.ts +4 -0
- package/lib/typescript/components/Modals/AddMembersModal/AddMembersModal.d.ts.map +1 -0
- package/lib/typescript/components/Modals/AttachSheet/AttachSheet.d.ts +13 -0
- package/lib/typescript/components/Modals/AttachSheet/AttachSheet.d.ts.map +1 -0
- package/lib/typescript/components/Modals/ChatProfileModal/ChatProfileModal.d.ts +7 -0
- package/lib/typescript/components/Modals/ChatProfileModal/ChatProfileModal.d.ts.map +1 -0
- package/lib/typescript/components/Modals/ChatProfileModal/DeleteChatModal.d.ts +8 -0
- package/lib/typescript/components/Modals/ChatProfileModal/DeleteChatModal.d.ts.map +1 -0
- package/lib/typescript/components/Modals/FilePreviewModal/FilePreviewModal.d.ts +8 -0
- package/lib/typescript/components/Modals/FilePreviewModal/FilePreviewModal.d.ts.map +1 -0
- package/lib/typescript/components/Modals/FilePreviewModal/PdfView.d.ts +7 -0
- package/lib/typescript/components/Modals/FilePreviewModal/PdfView.d.ts.map +1 -0
- package/lib/typescript/components/Modals/Modal/Modal.d.ts +10 -0
- package/lib/typescript/components/Modals/Modal/Modal.d.ts.map +1 -0
- package/lib/typescript/components/Modals/ModalHeaderComponent.d.ts +10 -0
- package/lib/typescript/components/Modals/ModalHeaderComponent.d.ts.map +1 -0
- package/lib/typescript/components/Modals/ModalSelectMedia/ModalSelectMedia.d.ts +9 -0
- package/lib/typescript/components/Modals/ModalSelectMedia/ModalSelectMedia.d.ts.map +1 -0
- package/lib/typescript/components/Modals/ModalWrapper/ModalWrapper.d.ts +16 -0
- package/lib/typescript/components/Modals/ModalWrapper/ModalWrapper.d.ts.map +1 -0
- package/lib/typescript/components/Modals/NewChatModal/ModalContent.d.ts +30 -0
- package/lib/typescript/components/Modals/NewChatModal/ModalContent.d.ts.map +1 -0
- package/lib/typescript/components/Modals/NewChatModal/NewChatModal.d.ts +7 -0
- package/lib/typescript/components/Modals/NewChatModal/NewChatModal.d.ts.map +1 -0
- package/lib/typescript/components/Modals/NewChatModal/UpdNewChatModal.d.ts +4 -0
- package/lib/typescript/components/Modals/NewChatModal/UpdNewChatModal.d.ts.map +1 -0
- package/lib/typescript/components/Modals/SelectUsersModal/SelectUsersModal.d.ts +4 -0
- package/lib/typescript/components/Modals/SelectUsersModal/SelectUsersModal.d.ts.map +1 -0
- package/lib/typescript/components/Modals/SettingsModals/BlockedUsers/BlockedUsersModal.d.ts +7 -0
- package/lib/typescript/components/Modals/SettingsModals/BlockedUsers/BlockedUsersModal.d.ts.map +1 -0
- package/lib/typescript/components/Modals/SettingsModals/DocumentShares/DocumentSharesModal.d.ts +8 -0
- package/lib/typescript/components/Modals/SettingsModals/DocumentShares/DocumentSharesModal.d.ts.map +1 -0
- package/lib/typescript/components/Modals/SettingsModals/ManageDataModal/ManageDataModal.d.ts +7 -0
- package/lib/typescript/components/Modals/SettingsModals/ManageDataModal/ManageDataModal.d.ts.map +1 -0
- package/lib/typescript/components/Modals/SettingsModals/ManageDataModal/StyledComponents.d.ts +2 -0
- package/lib/typescript/components/Modals/SettingsModals/ManageDataModal/StyledComponents.d.ts.map +1 -0
- package/lib/typescript/components/Modals/SettingsModals/ProfileShares/ProfileShares.d.ts +7 -0
- package/lib/typescript/components/Modals/SettingsModals/ProfileShares/ProfileShares.d.ts.map +1 -0
- package/lib/typescript/components/Modals/SettingsModals/Referrals/Referrals.d.ts +7 -0
- package/lib/typescript/components/Modals/SettingsModals/Referrals/Referrals.d.ts.map +1 -0
- package/lib/typescript/components/Modals/SettingsModals/SharedStyledComponents.d.ts +48 -0
- package/lib/typescript/components/Modals/SettingsModals/SharedStyledComponents.d.ts.map +1 -0
- package/lib/typescript/components/Modals/SettingsModals/Visibility/RadioInput.d.ts +13 -0
- package/lib/typescript/components/Modals/SettingsModals/Visibility/RadioInput.d.ts.map +1 -0
- package/lib/typescript/components/Modals/SettingsModals/Visibility/StyledComponents.d.ts +6 -0
- package/lib/typescript/components/Modals/SettingsModals/Visibility/StyledComponents.d.ts.map +1 -0
- package/lib/typescript/components/Modals/SettingsModals/Visibility/VisibilityModal.d.ts +6 -0
- package/lib/typescript/components/Modals/SettingsModals/Visibility/VisibilityModal.d.ts.map +1 -0
- package/lib/typescript/components/Modals/UserProfileModal/EditUserModal.d.ts +9 -0
- package/lib/typescript/components/Modals/UserProfileModal/EditUserModal.d.ts.map +1 -0
- package/lib/typescript/components/Modals/UserProfileModal/UserProfileModal.d.ts +7 -0
- package/lib/typescript/components/Modals/UserProfileModal/UserProfileModal.d.ts.map +1 -0
- package/lib/typescript/components/Modals/UserSettingsModal/UserSettingsModal.d.ts +7 -0
- package/lib/typescript/components/Modals/UserSettingsModal/UserSettingsModal.d.ts.map +1 -0
- package/lib/typescript/components/Modals/styledModalComponents.d.ts +30 -0
- package/lib/typescript/components/Modals/styledModalComponents.d.ts.map +1 -0
- package/lib/typescript/components/OperationalModal/OperationalModal.d.ts +9 -0
- package/lib/typescript/components/OperationalModal/OperationalModal.d.ts.map +1 -0
- package/lib/typescript/components/RoomComponents/ChatRoomItem.d.ts +11 -0
- package/lib/typescript/components/RoomComponents/ChatRoomItem.d.ts.map +1 -0
- package/lib/typescript/components/RoomComponents/LastMessageItem.d.ts +8 -0
- package/lib/typescript/components/RoomComponents/LastMessageItem.d.ts.map +1 -0
- package/lib/typescript/components/RoomComponents/styled/LastAudioMessage.d.ts +7 -0
- package/lib/typescript/components/RoomComponents/styled/LastAudioMessage.d.ts.map +1 -0
- package/lib/typescript/components/RoomComponents/styled/LastMessageEmoji.d.ts +7 -0
- package/lib/typescript/components/RoomComponents/styled/LastMessageEmoji.d.ts.map +1 -0
- package/lib/typescript/components/RoomComponents/styled/LastMessageFile.d.ts +7 -0
- package/lib/typescript/components/RoomComponents/styled/LastMessageFile.d.ts.map +1 -0
- package/lib/typescript/components/RoomComponents/styled/LastMessagePhoto.d.ts +7 -0
- package/lib/typescript/components/RoomComponents/styled/LastMessagePhoto.d.ts.map +1 -0
- package/lib/typescript/components/RoomComponents/styled/LastMessageVideo.d.ts +7 -0
- package/lib/typescript/components/RoomComponents/styled/LastMessageVideo.d.ts.map +1 -0
- package/lib/typescript/components/RoomComponents/styled/LastTextMessage.d.ts +7 -0
- package/lib/typescript/components/RoomComponents/styled/LastTextMessage.d.ts.map +1 -0
- package/lib/typescript/components/RoomComponents/styled/StyledRoomComponents.d.ts +7 -0
- package/lib/typescript/components/RoomComponents/styled/StyledRoomComponents.d.ts.map +1 -0
- package/lib/typescript/components/SortDropDown/index.d.ts +9 -0
- package/lib/typescript/components/SortDropDown/index.d.ts.map +1 -0
- package/lib/typescript/components/Thread/ThreadHeader.d.ts +7 -0
- package/lib/typescript/components/Thread/ThreadHeader.d.ts.map +1 -0
- package/lib/typescript/components/Thread/ThreadWrapper.d.ts +14 -0
- package/lib/typescript/components/Thread/ThreadWrapper.d.ts.map +1 -0
- package/lib/typescript/components/Toast/Toast.d.ts +11 -0
- package/lib/typescript/components/Toast/Toast.d.ts.map +1 -0
- package/lib/typescript/components/Toast/index.d.ts +8 -0
- package/lib/typescript/components/Toast/index.d.ts.map +1 -0
- package/lib/typescript/components/UsersList/StyledComponents.d.ts +5 -0
- package/lib/typescript/components/UsersList/StyledComponents.d.ts.map +1 -0
- package/lib/typescript/components/UsersList/UsersList.d.ts +12 -0
- package/lib/typescript/components/UsersList/UsersList.d.ts.map +1 -0
- package/lib/typescript/components/styled/ActionButton.d.ts +9 -0
- package/lib/typescript/components/styled/ActionButton.d.ts.map +1 -0
- package/lib/typescript/components/styled/AudioMessage.d.ts +6 -0
- package/lib/typescript/components/styled/AudioMessage.d.ts.map +1 -0
- package/lib/typescript/components/styled/Button.d.ts +21 -0
- package/lib/typescript/components/styled/Button.d.ts.map +1 -0
- package/lib/typescript/components/styled/ChatWrapperBox.d.ts +2 -0
- package/lib/typescript/components/styled/ChatWrapperBox.d.ts.map +1 -0
- package/lib/typescript/components/styled/DateLabel.d.ts +21 -0
- package/lib/typescript/components/styled/DateLabel.d.ts.map +1 -0
- package/lib/typescript/components/styled/Loader.d.ts +9 -0
- package/lib/typescript/components/styled/Loader.d.ts.map +1 -0
- package/lib/typescript/components/styled/MediaFilePreview.d.ts +9 -0
- package/lib/typescript/components/styled/MediaFilePreview.d.ts.map +1 -0
- package/lib/typescript/components/styled/MediaModal.d.ts +15 -0
- package/lib/typescript/components/styled/MediaModal.d.ts.map +1 -0
- package/lib/typescript/components/styled/MessageImage.d.ts +9 -0
- package/lib/typescript/components/styled/MessageImage.d.ts.map +1 -0
- package/lib/typescript/components/styled/NewMessageLabel.d.ts +13 -0
- package/lib/typescript/components/styled/NewMessageLabel.d.ts.map +1 -0
- package/lib/typescript/components/styled/RoomListComponents/index.d.ts +35 -0
- package/lib/typescript/components/styled/RoomListComponents/index.d.ts.map +1 -0
- package/lib/typescript/components/styled/SendInput.d.ts +21 -0
- package/lib/typescript/components/styled/SendInput.d.ts.map +1 -0
- package/lib/typescript/components/styled/StyledComponents.d.ts +90 -0
- package/lib/typescript/components/styled/StyledComponents.d.ts.map +1 -0
- package/lib/typescript/components/styled/StyledInput.d.ts +11 -0
- package/lib/typescript/components/styled/StyledInput.d.ts.map +1 -0
- package/lib/typescript/components/styled/StyledInputComponents/AudioComponents.d.ts +2 -0
- package/lib/typescript/components/styled/StyledInputComponents/AudioComponents.d.ts.map +1 -0
- package/lib/typescript/components/styled/StyledInputComponents/Composing.d.ts +8 -0
- package/lib/typescript/components/styled/StyledInputComponents/Composing.d.ts.map +1 -0
- package/lib/typescript/components/styled/StyledInputComponents/CustomTypingIndicator.d.ts +19 -0
- package/lib/typescript/components/styled/StyledInputComponents/CustomTypingIndicator.d.ts.map +1 -0
- package/lib/typescript/components/styled/StyledInputComponents/MediaComponents.d.ts +12 -0
- package/lib/typescript/components/styled/StyledInputComponents/MediaComponents.d.ts.map +1 -0
- package/lib/typescript/components/styled/StyledInputComponents/StyledInputComponents.d.ts +28 -0
- package/lib/typescript/components/styled/StyledInputComponents/StyledInputComponents.d.ts.map +1 -0
- package/lib/typescript/components/styled/StyledInputComponents/VideoComponents.d.ts +7 -0
- package/lib/typescript/components/styled/StyledInputComponents/VideoComponents.d.ts.map +1 -0
- package/lib/typescript/components/styled/TreadLabel.d.ts +18 -0
- package/lib/typescript/components/styled/TreadLabel.d.ts.map +1 -0
- package/lib/typescript/components/styled/UnsupportedType.d.ts +10 -0
- package/lib/typescript/components/styled/UnsupportedType.d.ts.map +1 -0
- package/lib/typescript/components/styled/VideoMessage.d.ts +9 -0
- package/lib/typescript/components/styled/VideoMessage.d.ts.map +1 -0
- package/lib/typescript/context/MessageNotificationContext.d.ts +13 -0
- package/lib/typescript/context/MessageNotificationContext.d.ts.map +1 -0
- package/lib/typescript/context/PushNotificationProvider.d.ts +2 -0
- package/lib/typescript/context/PushNotificationProvider.d.ts.map +1 -0
- package/lib/typescript/context/ToastContext.d.ts +11 -0
- package/lib/typescript/context/ToastContext.d.ts.map +1 -0
- package/lib/typescript/context/toastProvider.d.ts +2 -0
- package/lib/typescript/context/toastProvider.d.ts.map +1 -0
- package/lib/typescript/context/xmppProvider.d.ts +23 -0
- package/lib/typescript/context/xmppProvider.d.ts.map +1 -0
- package/lib/typescript/helpers/block_scroll.d.ts +3 -0
- package/lib/typescript/helpers/block_scroll.d.ts.map +1 -0
- package/lib/typescript/helpers/chatAutoEnterer.d.ts +16 -0
- package/lib/typescript/helpers/chatAutoEnterer.d.ts.map +1 -0
- package/lib/typescript/helpers/checkUniqueUsers.d.ts +4 -0
- package/lib/typescript/helpers/checkUniqueUsers.d.ts.map +1 -0
- package/lib/typescript/helpers/constants/CHAT_TYPES.d.ts +3 -0
- package/lib/typescript/helpers/constants/CHAT_TYPES.d.ts.map +1 -0
- package/lib/typescript/helpers/constants/LANGUAGE_OPTIONS.d.ts +8 -0
- package/lib/typescript/helpers/constants/LANGUAGE_OPTIONS.d.ts.map +1 -0
- package/lib/typescript/helpers/constants/LOCAL_STORAGE.d.ts +4 -0
- package/lib/typescript/helpers/constants/LOCAL_STORAGE.d.ts.map +1 -0
- package/lib/typescript/helpers/constants/MESSAGE_INTERACTIONS.d.ts +43 -0
- package/lib/typescript/helpers/constants/MESSAGE_INTERACTIONS.d.ts.map +1 -0
- package/lib/typescript/helpers/constants/MODAL_COMPONENTS.d.ts +5 -0
- package/lib/typescript/helpers/constants/MODAL_COMPONENTS.d.ts.map +1 -0
- package/lib/typescript/helpers/constants/MODAL_TYPES.d.ts +14 -0
- package/lib/typescript/helpers/constants/MODAL_TYPES.d.ts.map +1 -0
- package/lib/typescript/helpers/constants/PLATFORM_CONSTANTS.d.ts +4 -0
- package/lib/typescript/helpers/constants/PLATFORM_CONSTANTS.d.ts.map +1 -0
- package/lib/typescript/helpers/createMainMessageForThread.d.ts +3 -0
- package/lib/typescript/helpers/createMainMessageForThread.d.ts.map +1 -0
- package/lib/typescript/helpers/createMessageFromXml.d.ts +22 -0
- package/lib/typescript/helpers/createMessageFromXml.d.ts.map +1 -0
- package/lib/typescript/helpers/createRoomFromApi.d.ts +3 -0
- package/lib/typescript/helpers/createRoomFromApi.d.ts.map +1 -0
- package/lib/typescript/helpers/createUserNameFromSetUser.d.ts +3 -0
- package/lib/typescript/helpers/createUserNameFromSetUser.d.ts.map +1 -0
- package/lib/typescript/helpers/dateComparison.d.ts +4 -0
- package/lib/typescript/helpers/dateComparison.d.ts.map +1 -0
- package/lib/typescript/helpers/debounce.d.ts +2 -0
- package/lib/typescript/helpers/debounce.d.ts.map +1 -0
- package/lib/typescript/helpers/ensureScopedChatCache.d.ts +9 -0
- package/lib/typescript/helpers/ensureScopedChatCache.d.ts.map +1 -0
- package/lib/typescript/helpers/extractUniqueMembersFromRooms.d.ts +10 -0
- package/lib/typescript/helpers/extractUniqueMembersFromRooms.d.ts.map +1 -0
- package/lib/typescript/helpers/formatNumberWithCommas.d.ts +2 -0
- package/lib/typescript/helpers/formatNumberWithCommas.d.ts.map +1 -0
- package/lib/typescript/helpers/getBooleanFromString.d.ts +2 -0
- package/lib/typescript/helpers/getBooleanFromString.d.ts.map +1 -0
- package/lib/typescript/helpers/getDataFromXml.d.ts +20 -0
- package/lib/typescript/helpers/getDataFromXml.d.ts.map +1 -0
- package/lib/typescript/helpers/getNumberFromString.d.ts +2 -0
- package/lib/typescript/helpers/getNumberFromString.d.ts.map +1 -0
- package/lib/typescript/helpers/getRoomsWithRetry.d.ts +3 -0
- package/lib/typescript/helpers/getRoomsWithRetry.d.ts.map +1 -0
- package/lib/typescript/helpers/getTintedColor.d.ts +2 -0
- package/lib/typescript/helpers/getTintedColor.d.ts.map +1 -0
- package/lib/typescript/helpers/getUnnamedUsers.d.ts +4 -0
- package/lib/typescript/helpers/getUnnamedUsers.d.ts.map +1 -0
- package/lib/typescript/helpers/handleCopyClick.d.ts +2 -0
- package/lib/typescript/helpers/handleCopyClick.d.ts.map +1 -0
- package/lib/typescript/helpers/handleXmppError.d.ts +5 -0
- package/lib/typescript/helpers/handleXmppError.d.ts.map +1 -0
- package/lib/typescript/helpers/hashcolor.d.ts +4 -0
- package/lib/typescript/helpers/hashcolor.d.ts.map +1 -0
- package/lib/typescript/helpers/historyPreloadScheduler.d.ts +21 -0
- package/lib/typescript/helpers/historyPreloadScheduler.d.ts.map +1 -0
- package/lib/typescript/helpers/initRoomsPresence.d.ts +6 -0
- package/lib/typescript/helpers/initRoomsPresence.d.ts.map +1 -0
- package/lib/typescript/helpers/initXmppRooms.d.ts +7 -0
- package/lib/typescript/helpers/initXmppRooms.d.ts.map +1 -0
- package/lib/typescript/helpers/insertMessageWithDelimiter.d.ts +5 -0
- package/lib/typescript/helpers/insertMessageWithDelimiter.d.ts.map +1 -0
- package/lib/typescript/helpers/isChatIdPresentInArray.d.ts +5 -0
- package/lib/typescript/helpers/isChatIdPresentInArray.d.ts.map +1 -0
- package/lib/typescript/helpers/localStorageUser.d.ts +3 -0
- package/lib/typescript/helpers/localStorageUser.d.ts.map +1 -0
- package/lib/typescript/helpers/markdownParser.d.ts +2 -0
- package/lib/typescript/helpers/markdownParser.d.ts.map +1 -0
- package/lib/typescript/helpers/nanoToMs.d.ts +2 -0
- package/lib/typescript/helpers/nanoToMs.d.ts.map +1 -0
- package/lib/typescript/helpers/parseMessageBody.d.ts +4 -0
- package/lib/typescript/helpers/parseMessageBody.d.ts.map +1 -0
- package/lib/typescript/helpers/parseUrls.d.ts +2 -0
- package/lib/typescript/helpers/parseUrls.d.ts.map +1 -0
- package/lib/typescript/helpers/resolveInitBeforeLoadUser.d.ts +9 -0
- package/lib/typescript/helpers/resolveInitBeforeLoadUser.d.ts.map +1 -0
- package/lib/typescript/helpers/storeConsole.d.ts +8 -0
- package/lib/typescript/helpers/storeConsole.d.ts.map +1 -0
- package/lib/typescript/helpers/transformTranslatations.d.ts +11 -0
- package/lib/typescript/helpers/transformTranslatations.d.ts.map +1 -0
- package/lib/typescript/helpers/updateMessagesTillLast.d.ts +6 -0
- package/lib/typescript/helpers/updateMessagesTillLast.d.ts.map +1 -0
- package/lib/typescript/helpers/updatedChatLastTimestamps.d.ts +2 -0
- package/lib/typescript/helpers/updatedChatLastTimestamps.d.ts.map +1 -0
- package/lib/typescript/helpers/validator.d.ts +3 -0
- package/lib/typescript/helpers/validator.d.ts.map +1 -0
- package/lib/typescript/helpers/walletUsername.d.ts +3 -0
- package/lib/typescript/helpers/walletUsername.d.ts.map +1 -0
- package/lib/typescript/hooks/hooks.d.ts +5 -0
- package/lib/typescript/hooks/hooks.d.ts.map +1 -0
- package/lib/typescript/hooks/useChatSettingState.d.ts +11 -0
- package/lib/typescript/hooks/useChatSettingState.d.ts.map +1 -0
- package/lib/typescript/hooks/useChatWrapperInit.d.ts +21 -0
- package/lib/typescript/hooks/useChatWrapperInit.d.ts.map +1 -0
- package/lib/typescript/hooks/useComposing.d.ts +7 -0
- package/lib/typescript/hooks/useComposing.d.ts.map +1 -0
- package/lib/typescript/hooks/useCustomTypingIndicator.d.ts +608 -0
- package/lib/typescript/hooks/useCustomTypingIndicator.d.ts.map +1 -0
- package/lib/typescript/hooks/useEventHandlers.d.ts +28 -0
- package/lib/typescript/hooks/useEventHandlers.d.ts.map +1 -0
- package/lib/typescript/hooks/useGetNewArchRoom.d.ts +4 -0
- package/lib/typescript/hooks/useGetNewArchRoom.d.ts.map +1 -0
- package/lib/typescript/hooks/useHeapSender.d.ts +5 -0
- package/lib/typescript/hooks/useHeapSender.d.ts.map +1 -0
- package/lib/typescript/hooks/useLocalStorage.d.ts +8 -0
- package/lib/typescript/hooks/useLocalStorage.d.ts.map +1 -0
- package/lib/typescript/hooks/useLogout.d.ts +27 -0
- package/lib/typescript/hooks/useLogout.d.ts.map +1 -0
- package/lib/typescript/hooks/useMessageHeapState.d.ts +5 -0
- package/lib/typescript/hooks/useMessageHeapState.d.ts.map +1 -0
- package/lib/typescript/hooks/useMessageLoaderQueue.d.ts +4 -0
- package/lib/typescript/hooks/useMessageLoaderQueue.d.ts.map +1 -0
- package/lib/typescript/hooks/useMessageQueue.d.ts +5 -0
- package/lib/typescript/hooks/useMessageQueue.d.ts.map +1 -0
- package/lib/typescript/hooks/usePendingNotification.d.ts +5 -0
- package/lib/typescript/hooks/usePendingNotification.d.ts.map +1 -0
- package/lib/typescript/hooks/usePrevious.d.ts +3 -0
- package/lib/typescript/hooks/usePrevious.d.ts.map +1 -0
- package/lib/typescript/hooks/usePushNotifications.d.ts +5 -0
- package/lib/typescript/hooks/usePushNotifications.d.ts.map +1 -0
- package/lib/typescript/hooks/useQRCodeChatHandler.d.ts +7 -0
- package/lib/typescript/hooks/useQRCodeChatHandler.d.ts.map +1 -0
- package/lib/typescript/hooks/useRoomInitialization.d.ts +3 -0
- package/lib/typescript/hooks/useRoomInitialization.d.ts.map +1 -0
- package/lib/typescript/hooks/useRoomState.d.ts +15 -0
- package/lib/typescript/hooks/useRoomState.d.ts.map +1 -0
- package/lib/typescript/hooks/useRoomUrl.d.ts +3 -0
- package/lib/typescript/hooks/useRoomUrl.d.ts.map +1 -0
- package/lib/typescript/hooks/useSendMessage.d.ts +8 -0
- package/lib/typescript/hooks/useSendMessage.d.ts.map +1 -0
- package/lib/typescript/hooks/useUnreadMessagesCounter.d.ts +11 -0
- package/lib/typescript/hooks/useUnreadMessagesCounter.d.ts.map +1 -0
- package/lib/typescript/hooks/useXmppInitialization.d.ts +20 -0
- package/lib/typescript/hooks/useXmppInitialization.d.ts.map +1 -0
- package/lib/typescript/main.d.ts +30 -0
- package/lib/typescript/main.d.ts.map +1 -0
- package/lib/typescript/networking/api-requests/auth.api.d.ts +12 -0
- package/lib/typescript/networking/api-requests/auth.api.d.ts.map +1 -0
- package/lib/typescript/networking/api-requests/push.api.d.ts +8 -0
- package/lib/typescript/networking/api-requests/push.api.d.ts.map +1 -0
- package/lib/typescript/networking/api-requests/roomMembers.api.d.ts +3 -0
- package/lib/typescript/networking/api-requests/roomMembers.api.d.ts.map +1 -0
- package/lib/typescript/networking/api-requests/rooms.api.d.ts +19 -0
- package/lib/typescript/networking/api-requests/rooms.api.d.ts.map +1 -0
- package/lib/typescript/networking/api-requests/user.api.d.ts +16 -0
- package/lib/typescript/networking/api-requests/user.api.d.ts.map +1 -0
- package/lib/typescript/networking/apiClient.d.ts +12 -0
- package/lib/typescript/networking/apiClient.d.ts.map +1 -0
- package/lib/typescript/networking/helpers/refreshChecker.d.ts +2 -0
- package/lib/typescript/networking/helpers/refreshChecker.d.ts.map +1 -0
- package/lib/typescript/networking/stanzaHandlers.d.ts +19 -0
- package/lib/typescript/networking/stanzaHandlers.d.ts.map +1 -0
- package/lib/typescript/networking/xmpp/actionSetTimestampToPrivateStore.xmpp.d.ts +2 -0
- package/lib/typescript/networking/xmpp/actionSetTimestampToPrivateStore.xmpp.d.ts.map +1 -0
- package/lib/typescript/networking/xmpp/allRoomPresences.xmpp.d.ts +3 -0
- package/lib/typescript/networking/xmpp/allRoomPresences.xmpp.d.ts.map +1 -0
- package/lib/typescript/networking/xmpp/createPrivateRoom.xmpp.d.ts +3 -0
- package/lib/typescript/networking/xmpp/createPrivateRoom.xmpp.d.ts.map +1 -0
- package/lib/typescript/networking/xmpp/createRoom.xmpp.d.ts +3 -0
- package/lib/typescript/networking/xmpp/createRoom.xmpp.d.ts.map +1 -0
- package/lib/typescript/networking/xmpp/createRoomPresence.xmpp.d.ts +3 -0
- package/lib/typescript/networking/xmpp/createRoomPresence.xmpp.d.ts.map +1 -0
- package/lib/typescript/networking/xmpp/createTimeoutPromise.xmpp.d.ts +2 -0
- package/lib/typescript/networking/xmpp/createTimeoutPromise.xmpp.d.ts.map +1 -0
- package/lib/typescript/networking/xmpp/deleteMessage.xmpp.d.ts +3 -0
- package/lib/typescript/networking/xmpp/deleteMessage.xmpp.d.ts.map +1 -0
- package/lib/typescript/networking/xmpp/editMessage.xmpp.d.ts +3 -0
- package/lib/typescript/networking/xmpp/editMessage.xmpp.d.ts.map +1 -0
- package/lib/typescript/networking/xmpp/flushLastViewedToPrivateStore.d.ts +22 -0
- package/lib/typescript/networking/xmpp/flushLastViewedToPrivateStore.d.ts.map +1 -0
- package/lib/typescript/networking/xmpp/getChatsPrivateStoreRequest.xmpp.d.ts +3 -0
- package/lib/typescript/networking/xmpp/getChatsPrivateStoreRequest.xmpp.d.ts.map +1 -0
- package/lib/typescript/networking/xmpp/getHistory.xmpp.d.ts +4 -0
- package/lib/typescript/networking/xmpp/getHistory.xmpp.d.ts.map +1 -0
- package/lib/typescript/networking/xmpp/getLastMessageArchive.xmpp.d.ts +3 -0
- package/lib/typescript/networking/xmpp/getLastMessageArchive.xmpp.d.ts.map +1 -0
- package/lib/typescript/networking/xmpp/getRoomInfo.xmpp.d.ts +3 -0
- package/lib/typescript/networking/xmpp/getRoomInfo.xmpp.d.ts.map +1 -0
- package/lib/typescript/networking/xmpp/getRoomMembers.xmpp.d.ts +2 -0
- package/lib/typescript/networking/xmpp/getRoomMembers.xmpp.d.ts.map +1 -0
- package/lib/typescript/networking/xmpp/getRooms.xmpp.d.ts +3 -0
- package/lib/typescript/networking/xmpp/getRooms.xmpp.d.ts.map +1 -0
- package/lib/typescript/networking/xmpp/getRoomsPaged.xmpp.d.ts +3 -0
- package/lib/typescript/networking/xmpp/getRoomsPaged.xmpp.d.ts.map +1 -0
- package/lib/typescript/networking/xmpp/handlePong.xmpp.d.ts +2 -0
- package/lib/typescript/networking/xmpp/handlePong.xmpp.d.ts.map +1 -0
- package/lib/typescript/networking/xmpp/handleStanzas.xmpp.d.ts +4 -0
- package/lib/typescript/networking/xmpp/handleStanzas.xmpp.d.ts.map +1 -0
- package/lib/typescript/networking/xmpp/inviteRoomRequest.xmpp.d.ts +3 -0
- package/lib/typescript/networking/xmpp/inviteRoomRequest.xmpp.d.ts.map +1 -0
- package/lib/typescript/networking/xmpp/leaveTheRoom.xmpp.d.ts +3 -0
- package/lib/typescript/networking/xmpp/leaveTheRoom.xmpp.d.ts.map +1 -0
- package/lib/typescript/networking/xmpp/listenerManager.d.ts +18 -0
- package/lib/typescript/networking/xmpp/listenerManager.d.ts.map +1 -0
- package/lib/typescript/networking/xmpp/presenceInRoom.xmpp.d.ts +4 -0
- package/lib/typescript/networking/xmpp/presenceInRoom.xmpp.d.ts.map +1 -0
- package/lib/typescript/networking/xmpp/roomConfig.xmpp.d.ts +3 -0
- package/lib/typescript/networking/xmpp/roomConfig.xmpp.d.ts.map +1 -0
- package/lib/typescript/networking/xmpp/sendMediaMessage.xmpp.d.ts +3 -0
- package/lib/typescript/networking/xmpp/sendMediaMessage.xmpp.d.ts.map +1 -0
- package/lib/typescript/networking/xmpp/sendMessageReaction.xmpp.d.ts +3 -0
- package/lib/typescript/networking/xmpp/sendMessageReaction.xmpp.d.ts.map +1 -0
- package/lib/typescript/networking/xmpp/sendPing.xmpp.d.ts +2 -0
- package/lib/typescript/networking/xmpp/sendPing.xmpp.d.ts.map +1 -0
- package/lib/typescript/networking/xmpp/sendTextMessage.xmpp.d.ts +3 -0
- package/lib/typescript/networking/xmpp/sendTextMessage.xmpp.d.ts.map +1 -0
- package/lib/typescript/networking/xmpp/sendTextMessageWithTranslateTag.xmpp.d.ts +16 -0
- package/lib/typescript/networking/xmpp/sendTextMessageWithTranslateTag.xmpp.d.ts.map +1 -0
- package/lib/typescript/networking/xmpp/sendTypingRequest.xmpp.d.ts +3 -0
- package/lib/typescript/networking/xmpp/sendTypingRequest.xmpp.d.ts.map +1 -0
- package/lib/typescript/networking/xmpp/setChatsPrivateStoreRequest.xmpp.d.ts +3 -0
- package/lib/typescript/networking/xmpp/setChatsPrivateStoreRequest.xmpp.d.ts.map +1 -0
- package/lib/typescript/networking/xmpp/setMeAsOwner.xmpp.d.ts +3 -0
- package/lib/typescript/networking/xmpp/setMeAsOwner.xmpp.d.ts.map +1 -0
- package/lib/typescript/networking/xmpp/setRoomImage.xmpp.d.ts +3 -0
- package/lib/typescript/networking/xmpp/setRoomImage.xmpp.d.ts.map +1 -0
- package/lib/typescript/networking/xmpp/setVCard.xmpp.d.ts +2 -0
- package/lib/typescript/networking/xmpp/setVCard.xmpp.d.ts.map +1 -0
- package/lib/typescript/networking/xmpp/subscribeToRoomMessages.xmpp.d.ts +3 -0
- package/lib/typescript/networking/xmpp/subscribeToRoomMessages.xmpp.d.ts.map +1 -0
- package/lib/typescript/networking/xmppClient.d.ts +104 -0
- package/lib/typescript/networking/xmppClient.d.ts.map +1 -0
- package/lib/typescript/roomStore/Middleware/logoutMiddleware.d.ts +3 -0
- package/lib/typescript/roomStore/Middleware/logoutMiddleware.d.ts.map +1 -0
- package/lib/typescript/roomStore/Middleware/newMessageMidlleware.d.ts +3 -0
- package/lib/typescript/roomStore/Middleware/newMessageMidlleware.d.ts.map +1 -0
- package/lib/typescript/roomStore/Middleware/reactionsMiddleware.d.ts +3 -0
- package/lib/typescript/roomStore/Middleware/reactionsMiddleware.d.ts.map +1 -0
- package/lib/typescript/roomStore/Middleware/testMiddleware.d.ts +3 -0
- package/lib/typescript/roomStore/Middleware/testMiddleware.d.ts.map +1 -0
- package/lib/typescript/roomStore/Middleware/unreadMidlleware.d.ts +3 -0
- package/lib/typescript/roomStore/Middleware/unreadMidlleware.d.ts.map +1 -0
- package/lib/typescript/roomStore/chatSettingsSlice.d.ts +43 -0
- package/lib/typescript/roomStore/chatSettingsSlice.d.ts.map +1 -0
- package/lib/typescript/roomStore/index.d.ts +27 -0
- package/lib/typescript/roomStore/index.d.ts.map +1 -0
- package/lib/typescript/roomStore/persistence.d.ts +30 -0
- package/lib/typescript/roomStore/persistence.d.ts.map +1 -0
- package/lib/typescript/roomStore/roomHeapSlice.d.ts +16 -0
- package/lib/typescript/roomStore/roomHeapSlice.d.ts.map +1 -0
- package/lib/typescript/roomStore/roomsSlice.d.ts +182 -0
- package/lib/typescript/roomStore/roomsSlice.d.ts.map +1 -0
- package/lib/typescript/services/pushNotifications.d.ts +10 -0
- package/lib/typescript/services/pushNotifications.d.ts.map +1 -0
- package/lib/typescript/services/pushSubscriptionService.d.ts +18 -0
- package/lib/typescript/services/pushSubscriptionService.d.ts.map +1 -0
- package/lib/typescript/types/messages.d.ts +53 -0
- package/lib/typescript/types/messages.d.ts.map +1 -0
- package/lib/typescript/types/models/action.model.d.ts +26 -0
- package/lib/typescript/types/models/action.model.d.ts.map +1 -0
- package/lib/typescript/types/models/config.model.d.ts +2 -0
- package/lib/typescript/types/models/config.model.d.ts.map +1 -0
- package/lib/typescript/types/models/customComponents.model.d.ts +42 -0
- package/lib/typescript/types/models/customComponents.model.d.ts.map +1 -0
- package/lib/typescript/types/models/language.model.d.ts +10 -0
- package/lib/typescript/types/models/language.model.d.ts.map +1 -0
- package/lib/typescript/types/models/media.model.d.ts +6 -0
- package/lib/typescript/types/models/media.model.d.ts.map +1 -0
- package/lib/typescript/types/models/message.model.d.ts +65 -0
- package/lib/typescript/types/models/message.model.d.ts.map +1 -0
- package/lib/typescript/types/models/modal.model.d.ts +8 -0
- package/lib/typescript/types/models/modal.model.d.ts.map +1 -0
- package/lib/typescript/types/models/room.model.d.ts +108 -0
- package/lib/typescript/types/models/room.model.d.ts.map +1 -0
- package/lib/typescript/types/models/user.model.d.ts +77 -0
- package/lib/typescript/types/models/user.model.d.ts.map +1 -0
- package/lib/typescript/types/models/xmpp.model.d.ts +77 -0
- package/lib/typescript/types/models/xmpp.model.d.ts.map +1 -0
- package/lib/typescript/types/types.d.ts +416 -0
- package/lib/typescript/types/types.d.ts.map +1 -0
- package/lib/typescript/utils/PriorityQueue.d.ts +15 -0
- package/lib/typescript/utils/PriorityQueue.d.ts.map +1 -0
- package/lib/typescript/utils/actionHelpers.d.ts +5 -0
- package/lib/typescript/utils/actionHelpers.d.ts.map +1 -0
- package/lib/typescript/utils/actionLogger.d.ts +18 -0
- package/lib/typescript/utils/actionLogger.d.ts.map +1 -0
- package/lib/typescript/utils/clientRegistry.d.ts +22 -0
- package/lib/typescript/utils/clientRegistry.d.ts.map +1 -0
- package/lib/typescript/utils/devLogger.d.ts +26 -0
- package/lib/typescript/utils/devLogger.d.ts.map +1 -0
- package/lib/typescript/utils/messageNotificationManager.d.ts +21 -0
- package/lib/typescript/utils/messageNotificationManager.d.ts.map +1 -0
- package/lib/typescript/utils/resendMessage.d.ts +11 -0
- package/lib/typescript/utils/resendMessage.d.ts.map +1 -0
- package/lib/typescript/utils/toastEmitter.d.ts +12 -0
- package/lib/typescript/utils/toastEmitter.d.ts.map +1 -0
- package/lib/typescript/utils/xmppMemoryMonitor.d.ts +17 -0
- package/lib/typescript/utils/xmppMemoryMonitor.d.ts.map +1 -0
- package/lib/typescript/version.d.ts +2 -0
- package/lib/typescript/version.d.ts.map +1 -0
- package/metro.js +0 -5
- package/package.json +28 -5
- package/src/components/InputComponents/AudioRecorder.tsx +1 -1
- package/src/components/InputComponents/MediaInput.tsx +22 -23
- package/src/components/MainComponents/ChatHeader.tsx +1 -1
- package/src/components/MainComponents/ChatRoom.tsx +2 -7
- package/src/components/MainComponents/ChatWrapper.tsx +18 -12
- package/src/components/MainComponents/MediaMessage.tsx +14 -4
- package/src/components/MainComponents/MessageList.tsx +1 -2
- package/src/components/MainComponents/ProfileImagePlaceholder.tsx +1 -1
- package/src/components/MainComponents/ReduxWrapper.tsx +14 -12
- package/src/components/MessageBubble/Message.tsx +7 -7
- package/src/components/MessageBubble/MessageReaction.tsx +1 -1
- package/src/components/MessageBubble/MessageTranslations.tsx +3 -3
- package/src/components/Modals/AddMembersModal/AddMembersModal.tsx +2 -2
- package/src/components/Modals/ChatProfileModal/ChatProfileModal.tsx +5 -3
- package/src/components/Modals/FilePreviewModal/FilePreviewModal.tsx +32 -118
- package/src/components/Modals/ModalSelectMedia/ModalSelectMedia.tsx +1 -1
- package/src/components/Modals/NewChatModal/ModalContent.tsx +7 -7
- package/src/components/Modals/NewChatModal/NewChatModal.tsx +25 -53
- package/src/components/Modals/NewChatModal/UpdNewChatModal.tsx +5 -5
- package/src/components/Modals/SettingsModals/Referrals/Referrals.tsx +2 -2
- package/src/components/Modals/UserProfileModal/UserProfileModal.tsx +12 -11
- package/src/components/Modals/UserSettingsModal/UserSettingsModal.tsx +1 -1
- package/src/components/Thread/ThreadWrapper.tsx +10 -5
- package/src/components/UsersList/UsersList.tsx +2 -2
- package/src/components/styled/ActionButton.tsx +5 -4
- package/src/components/styled/AudioMessage.tsx +108 -53
- package/src/components/styled/Button.tsx +1 -1
- package/src/components/styled/MediaModal.tsx +3 -2
- package/src/components/styled/SendInput.tsx +14 -4
- package/src/components/styled/StyledComponents.ts +5 -0
- package/src/components/styled/StyledInputComponents/VideoComponents.tsx +2 -4
- package/src/components/styled/VideoMessage.tsx +8 -19
- package/src/helpers/chatAutoEnterer.ts +1 -1
- package/src/helpers/createRoomFromApi.tsx +1 -0
- package/src/helpers/getDataFromXml.ts +2 -2
- package/src/helpers/getUnnamedUsers.ts +2 -2
- package/src/helpers/initXmppRooms.tsx +3 -3
- package/src/helpers/insertMessageWithDelimiter.ts +5 -5
- package/src/helpers/localStorageUser.ts +1 -1
- package/src/helpers/nanoToMs.ts +1 -1
- package/src/hooks/useChatWrapperInit.ts +4 -5
- package/src/hooks/useGetNewArchRoom.tsx +0 -2
- package/src/hooks/usePrevious.tsx +1 -1
- package/src/hooks/usePushNotifications.ts +1 -1
- package/src/hooks/useRoomInitialization.tsx +2 -2
- package/src/networking/api-requests/auth.api.ts +5 -5
- package/src/networking/api-requests/rooms.api.ts +131 -15
- package/src/networking/api-requests/user.api.ts +9 -0
- package/src/networking/apiClient.ts +5 -4
- package/src/networking/stanzaHandlers.ts +54 -30
- package/src/networking/xmpp/actionSetTimestampToPrivateStore.xmpp.ts +1 -1
- package/src/networking/xmpp/getChatsPrivateStoreRequest.xmpp.ts +1 -1
- package/src/networking/xmpp/getHistory.xmpp.ts +3 -3
- package/src/networking/xmpp/getRooms.xmpp.ts +1 -1
- package/src/networking/xmpp/handleStanzas.xmpp.ts +1 -1
- package/src/networking/xmppClient.ts +5 -3
- package/src/roomStore/Middleware/newMessageMidlleware.tsx +1 -1
- package/src/roomStore/Middleware/reactionsMiddleware.tsx +5 -5
- package/src/roomStore/chatSettingsSlice.ts +72 -65
- package/src/roomStore/roomHeapSlice.ts +24 -17
- package/src/roomStore/roomsSlice.ts +106 -31
- package/src/services/pushNotifications.ts +1 -1
- package/src/types/models/message.model.ts +1 -1
- package/src/types/models/modal.model.ts +1 -1
- package/src/types/models/room.model.ts +3 -0
- package/src/types/types.ts +19 -37
- package/src/utils/resendMessage.ts +3 -4
- package/index.js +0 -20
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/** @format */
|
|
4
|
+
|
|
5
|
+
import { useEffect, useRef, useState } from 'react';
|
|
6
|
+
import { useDispatch, useSelector } from 'react-redux';
|
|
7
|
+
import { useXmppClient } from '../context/xmppProvider';
|
|
8
|
+
import { chatAutoEnterer } from '../helpers/chatAutoEnterer';
|
|
9
|
+
import { initRoomsPresence } from '../helpers/initRoomsPresence';
|
|
10
|
+
import { updatedChatLastTimestamps } from '../helpers/updatedChatLastTimestamps';
|
|
11
|
+
import { updateMessagesTillLast } from '../helpers/updateMessagesTillLast';
|
|
12
|
+
import { refresh } from '../networking/apiClient';
|
|
13
|
+
import { setLangSource, setConfig } from '../roomStore/chatSettingsSlice';
|
|
14
|
+
import { setIsLoading } from '../roomStore/roomsSlice';
|
|
15
|
+
import { useRoomState } from './useRoomState';
|
|
16
|
+
import { useChatSettingState } from './useChatSettingState';
|
|
17
|
+
import { isChatIdPresentInArray } from '../helpers/isChatIdPresentInArray';
|
|
18
|
+
import useGetNewArchRoom from './useGetNewArchRoom';
|
|
19
|
+
import { getRoomsWithRetry } from '../helpers/getRoomsWithRetry';
|
|
20
|
+
const useChatWrapperInit = ({
|
|
21
|
+
roomJID,
|
|
22
|
+
wasAutoSelected,
|
|
23
|
+
config
|
|
24
|
+
}) => {
|
|
25
|
+
const dispatch = useDispatch();
|
|
26
|
+
const [inited, setInited] = useState(false);
|
|
27
|
+
const [showModal, setShowModal] = useState(false);
|
|
28
|
+
const [isConnectionLost, setConnectionLost] = useState(false);
|
|
29
|
+
const [isRetrying, setIsRetrying] = useState(false);
|
|
30
|
+
const hasSyncedHistoryRef = useRef(false);
|
|
31
|
+
const {
|
|
32
|
+
client,
|
|
33
|
+
initializeClient,
|
|
34
|
+
setClient
|
|
35
|
+
} = useXmppClient();
|
|
36
|
+
const syncRooms = useGetNewArchRoom();
|
|
37
|
+
const {
|
|
38
|
+
rooms
|
|
39
|
+
} = useSelector(state => state.rooms);
|
|
40
|
+
const {
|
|
41
|
+
roomsList
|
|
42
|
+
} = useRoomState();
|
|
43
|
+
const {
|
|
44
|
+
user
|
|
45
|
+
} = useChatSettingState();
|
|
46
|
+
useEffect(() => {
|
|
47
|
+
return () => {
|
|
48
|
+
if (client && user.xmppPassword === '') {
|
|
49
|
+
console.log('closing client');
|
|
50
|
+
client.close();
|
|
51
|
+
setClient(null);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
}, [user.xmppPassword]);
|
|
55
|
+
const getRoomsWithRertyRequest = async () => {
|
|
56
|
+
setIsRetrying(true);
|
|
57
|
+
const retryRooms = await getRoomsWithRetry(client, config, syncRooms, roomJID);
|
|
58
|
+
if (!retryRooms) {
|
|
59
|
+
setIsRetrying('norooms');
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
setIsRetrying(false);
|
|
63
|
+
};
|
|
64
|
+
const loadRooms = async (client, disableLoad = false) => {
|
|
65
|
+
!disableLoad && dispatch(setIsLoading({
|
|
66
|
+
loading: true,
|
|
67
|
+
loadingText: 'Loading rooms...'
|
|
68
|
+
}));
|
|
69
|
+
const rooms = await syncRooms(client, config);
|
|
70
|
+
dispatch(setIsLoading({
|
|
71
|
+
loading: false,
|
|
72
|
+
loadingText: undefined
|
|
73
|
+
}));
|
|
74
|
+
return rooms;
|
|
75
|
+
};
|
|
76
|
+
useEffect(() => {
|
|
77
|
+
let retryTimeout;
|
|
78
|
+
const initXmmpClient = async () => {
|
|
79
|
+
if (config?.translates?.enabled && !config?.translates?.translations) {
|
|
80
|
+
dispatch(setLangSource(config?.translates?.translations));
|
|
81
|
+
}
|
|
82
|
+
dispatch(setConfig(config));
|
|
83
|
+
try {
|
|
84
|
+
if (!user.xmppUsername) {
|
|
85
|
+
setShowModal(true);
|
|
86
|
+
console.error('Error, no user');
|
|
87
|
+
} else {
|
|
88
|
+
chatAutoEnterer({
|
|
89
|
+
roomJID,
|
|
90
|
+
wasAutoSelected,
|
|
91
|
+
config,
|
|
92
|
+
dispatch
|
|
93
|
+
});
|
|
94
|
+
if (!client) {
|
|
95
|
+
try {
|
|
96
|
+
setInited(false);
|
|
97
|
+
setShowModal(false);
|
|
98
|
+
console.log(' No client, initializing one');
|
|
99
|
+
const newClient = await initializeClient(user.xmppUsername || user?.defaultWallet?.walletAddress, user?.xmppPassword, config?.xmppSettings).then(client => {
|
|
100
|
+
console.log(' Client initialized', client?.status);
|
|
101
|
+
return client;
|
|
102
|
+
});
|
|
103
|
+
if (roomsList && Object.keys(roomsList).length > 0) {
|
|
104
|
+
console.log(' Using existing roomsList', Object.keys(roomsList).length);
|
|
105
|
+
setInited(true);
|
|
106
|
+
await initRoomsPresence(newClient, roomsList);
|
|
107
|
+
} else {
|
|
108
|
+
if (config?.newArch) {
|
|
109
|
+
console.log(' Loading rooms with newArch');
|
|
110
|
+
const loadedRooms = await loadRooms(newClient);
|
|
111
|
+
console.log(' Loaded rooms', loadedRooms?.length || 0);
|
|
112
|
+
if (config?.enableRoomsRetry?.enabled) {
|
|
113
|
+
const isSelectedRoomPresent = isChatIdPresentInArray(roomJID, loadedRooms);
|
|
114
|
+
console.log(' Selected room present?', isSelectedRoomPresent, roomJID);
|
|
115
|
+
if (!isSelectedRoomPresent) {
|
|
116
|
+
await getRoomsWithRertyRequest();
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
setInited(true);
|
|
120
|
+
} else {
|
|
121
|
+
console.log(' Using old arch, getting rooms stanza');
|
|
122
|
+
await newClient.getRoomsStanza();
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
await newClient.getChatsPrivateStoreRequestStanza().then(async roomTimestampObject => {
|
|
126
|
+
console.log('Got chats private store', roomTimestampObject?.length || 0);
|
|
127
|
+
updatedChatLastTimestamps(roomTimestampObject, dispatch);
|
|
128
|
+
if (!hasSyncedHistoryRef.current) {
|
|
129
|
+
console.log('Updating messages till last');
|
|
130
|
+
await updateMessagesTillLast(rooms, newClient);
|
|
131
|
+
hasSyncedHistoryRef.current = true;
|
|
132
|
+
}
|
|
133
|
+
setClient(newClient);
|
|
134
|
+
setConnectionLost(false);
|
|
135
|
+
console.log('Initialization complete');
|
|
136
|
+
});
|
|
137
|
+
{
|
|
138
|
+
config?.refreshTokens?.enabled && refresh();
|
|
139
|
+
}
|
|
140
|
+
} catch (error) {
|
|
141
|
+
console.error(' Error during initialization', error);
|
|
142
|
+
setConnectionLost(true);
|
|
143
|
+
retryTimeout = setTimeout(initXmmpClient, 5000);
|
|
144
|
+
}
|
|
145
|
+
} else {
|
|
146
|
+
if (config?.newArch) {
|
|
147
|
+
if (config?.enableRoomsRetry?.enabled) {
|
|
148
|
+
const isSelectedRoomPresent = isChatIdPresentInArray(roomJID, roomsList);
|
|
149
|
+
console.log('Selected room present in existing client?', isSelectedRoomPresent);
|
|
150
|
+
if (!isSelectedRoomPresent) {
|
|
151
|
+
await getRoomsWithRertyRequest();
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
setInited(true);
|
|
156
|
+
console.log(' Getting chats private store for existing client');
|
|
157
|
+
await client.getChatsPrivateStoreRequestStanza().then(async roomTimestampObject => {
|
|
158
|
+
console.log('Got chats private store for existing client', roomTimestampObject?.length || 0);
|
|
159
|
+
updatedChatLastTimestamps(roomTimestampObject, dispatch);
|
|
160
|
+
if (!hasSyncedHistoryRef.current) {
|
|
161
|
+
console.log('Updating messages till last for existing client');
|
|
162
|
+
await updateMessagesTillLast(rooms, client);
|
|
163
|
+
hasSyncedHistoryRef.current = true;
|
|
164
|
+
}
|
|
165
|
+
setClient(client);
|
|
166
|
+
setConnectionLost(false);
|
|
167
|
+
console.log(' Initialization complete for existing client');
|
|
168
|
+
});
|
|
169
|
+
{
|
|
170
|
+
config?.refreshTokens?.enabled && refresh();
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
dispatch(setIsLoading({
|
|
175
|
+
loading: false
|
|
176
|
+
}));
|
|
177
|
+
} catch (error) {
|
|
178
|
+
console.error(' Fatal error', error);
|
|
179
|
+
setShowModal(false);
|
|
180
|
+
setConnectionLost(true);
|
|
181
|
+
setInited(false);
|
|
182
|
+
dispatch(setIsLoading({
|
|
183
|
+
loading: false
|
|
184
|
+
}));
|
|
185
|
+
retryTimeout = setTimeout(initXmmpClient, 5000);
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
initXmmpClient();
|
|
189
|
+
return () => {
|
|
190
|
+
clearTimeout(retryTimeout);
|
|
191
|
+
};
|
|
192
|
+
}, [user.xmppPassword, user.xmppUsername]);
|
|
193
|
+
return {
|
|
194
|
+
client,
|
|
195
|
+
inited,
|
|
196
|
+
isRetrying,
|
|
197
|
+
showModal,
|
|
198
|
+
isConnectionLost,
|
|
199
|
+
setClient: setClient,
|
|
200
|
+
setInited,
|
|
201
|
+
setShowModal
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
export default useChatWrapperInit;
|
|
205
|
+
//# sourceMappingURL=useChatWrapperInit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useEffect","useRef","useState","useDispatch","useSelector","useXmppClient","chatAutoEnterer","initRoomsPresence","updatedChatLastTimestamps","updateMessagesTillLast","refresh","setLangSource","setConfig","setIsLoading","useRoomState","useChatSettingState","isChatIdPresentInArray","useGetNewArchRoom","getRoomsWithRetry","useChatWrapperInit","roomJID","wasAutoSelected","config","dispatch","inited","setInited","showModal","setShowModal","isConnectionLost","setConnectionLost","isRetrying","setIsRetrying","hasSyncedHistoryRef","client","initializeClient","setClient","syncRooms","rooms","state","roomsList","user","xmppPassword","console","log","close","getRoomsWithRertyRequest","retryRooms","loadRooms","disableLoad","loading","loadingText","undefined","retryTimeout","initXmmpClient","translates","enabled","translations","xmppUsername","error","newClient","defaultWallet","walletAddress","xmppSettings","then","status","Object","keys","length","newArch","loadedRooms","enableRoomsRetry","isSelectedRoomPresent","getRoomsStanza","getChatsPrivateStoreRequestStanza","roomTimestampObject","current","refreshTokens","setTimeout","clearTimeout"],"sourceRoot":"../../../src","sources":["hooks/useChatWrapperInit.ts"],"mappings":";;AAAA;;AAEA,SAASA,SAAS,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AACnD,SAASC,WAAW,EAAEC,WAAW,QAAQ,aAAa;AAItD,SAASC,aAAa,QAAQ,yBAAyB;AACvD,SAASC,eAAe,QAAQ,4BAA4B;AAC5D,SAASC,iBAAiB,QAAQ,8BAA8B;AAChE,SAASC,yBAAyB,QAAQ,sCAAsC;AAChF,SAASC,sBAAsB,QAAQ,mCAAmC;AAC1E,SAASC,OAAO,QAAQ,yBAAyB;AACjD,SAASC,aAAa,EAAEC,SAAS,QAAQ,gCAAgC;AACzE,SAASC,YAAY,QAAQ,yBAAyB;AACtD,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,mBAAmB,QAAQ,uBAAuB;AAC3D,SAASC,sBAAsB,QAAQ,mCAAmC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Y,CAAC;UAAEoC,OAAO,EAAE;QAAM,CAAC,CAAC,CAAC;QAC1CG,YAAY,GAAGyB,UAAU,CAACxB,cAAc,EAAE,IAAI,CAAC;MACjD;IACF,CAAC;IAEDA,cAAc,CAAC,CAAC;IAEhB,OAAO,MAAM;MACXyB,YAAY,CAAC1B,YAAY,CAAC;IAC5B,CAAC;EACH,CAAC,EAAE,CAACZ,IAAI,CAACC,YAAY,EAAED,IAAI,CAACiB,YAAY,CAAC,CAAC;EAE1C,OAAO;IACLxB,MAAM;IACNT,MAAM;IACNM,UAAU;IACVJ,SAAS;IACTE,gBAAgB;IAChBO,SAAS,EAAEA,SAAgB;IAC3BV,SAAS;IACTE;EACF,CAAC;AACH,CAAC;AAED,eAAeR,kBAAkB","ignoreList":[]}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useCallback, useEffect } from 'react';
|
|
4
|
+
import { useXmppClient } from '../context/xmppProvider';
|
|
5
|
+
import { useSelector } from 'react-redux';
|
|
6
|
+
import { useChatSettingState } from './useChatSettingState';
|
|
7
|
+
const useComposing = config => {
|
|
8
|
+
const {
|
|
9
|
+
client
|
|
10
|
+
} = useXmppClient();
|
|
11
|
+
const {
|
|
12
|
+
activeRoomJID
|
|
13
|
+
} = useSelector(state => state.rooms);
|
|
14
|
+
const {
|
|
15
|
+
user
|
|
16
|
+
} = useChatSettingState();
|
|
17
|
+
const sendStartComposing = useCallback(() => {
|
|
18
|
+
if (config?.disableTypingIndicator) {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
if (client) {
|
|
22
|
+
client.sendTypingRequestStanza(activeRoomJID || '', `${user.firstName} ${user.lastName}`, true);
|
|
23
|
+
}
|
|
24
|
+
}, [activeRoomJID, client, config?.disableTypingIndicator, user.firstName, user.lastName]);
|
|
25
|
+
const sendEndComposing = useCallback(() => {
|
|
26
|
+
if (config?.disableTypingIndicator) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
if (client) {
|
|
30
|
+
client.sendTypingRequestStanza(activeRoomJID || '', `${user.firstName} ${user.lastName}`, false);
|
|
31
|
+
}
|
|
32
|
+
}, [activeRoomJID, client, config?.disableTypingIndicator, user.firstName, user.lastName]);
|
|
33
|
+
useEffect(() => {
|
|
34
|
+
const timerId = setTimeout(() => {
|
|
35
|
+
sendEndComposing();
|
|
36
|
+
}, 100);
|
|
37
|
+
return () => clearTimeout(timerId);
|
|
38
|
+
}, [sendEndComposing]);
|
|
39
|
+
return {
|
|
40
|
+
sendStartComposing,
|
|
41
|
+
sendEndComposing
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export default useComposing;
|
|
45
|
+
//# sourceMappingURL=useComposing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useCallback","useEffect","useXmppClient","useSelector","useChatSettingState","useComposing","config","client","activeRoomJID","state","rooms","user","sendStartComposing","disableTypingIndicator","sendTypingRequestStanza","firstName","lastName","sendEndComposing","timerId","setTimeout","clearTimeout"],"sourceRoot":"../../../src","sources":["hooks/useComposing.tsx"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,SAAS,QAAkB,OAAO;AACxD,SAASC,aAAa,QAAQ,yBAAyB;AACvD,SAASC,WAAW,QAAQ,aAAa;AAEzC,SAASC,mBAAmB,QAAQ,uBAAuB;AAG3D,MAAMC,YAAY,GAAIC,MAAgB,IAAK;EACzC,MAAM;IAAEC;EAAO,CAAC,GAAGL,aAAa,CAAC,CAAC;EAClC,MAAM;IAAEM;EAAc,CAAC,GAAGL,WAAW,CAAEM,KAAgB,IAAKA,KAAK,CAACC,KAAK,CAAC;EACxE,MAAM;IAAEC;EAAK,CAAC,GAAGP,mBAAmB,CAAC,CAAC;EAEtC,MAAMQ,kBAAkB,GAAGZ,WAAW,CAAC,MAAM;IAC3C,IAAIM,MAAM,EAAEO,sBAAsB,EAAE;MAClC;IACF;IACA,IAAIN,MAAM,EAAE;MACVA,MAAM,CAACO,uBAAuB,CAC5BN,aAAa,IAAI,EAAE,EACnB,GAAGG,IAAI,CAACI,SAAS,IAAIJ,IAAI,CAACK,QAAQ,EAAE,EACpC,IACF,CAAC;IACH;EACF,CAAC,EAAE,CAACR,aAAa,EAAED,MAAM,EAAED,MAAM,EAAEO,sBAAsB,EAAEF,IAAI,CAACI,SAAS,EAAEJ,IAAI,CAACK,QAAQ,CAAC,CAAC;EAE1F,MAAMC,gBAAgB,GAAGjB,WAAW,CAAC,MAAM;IACzC,IAAIM,MAAM,EAAEO,sBAAsB,EAAE;MAClC;IACF;IACA,IAAIN,MAAM,EAAE;MACVA,MAAM,CAACO,uBAAuB,CAC5BN,aAAa,IAAI,EAAE,EACnB,GAAGG,IAAI,CAACI,SAAS,IAAIJ,IAAI,CAACK,QAAQ,EAAE,EACpC,KACF,CAAC;IACH;EACF,CAAC,EAAE,CAACR,aAAa,EAAED,MAAM,EAAED,MAAM,EAAEO,sBAAsB,EAAEF,IAAI,CAACI,SAAS,EAAEJ,IAAI,CAACK,QAAQ,CAAC,CAAC;EAE1Ff,SAAS,CAAC,MAAM;IACd,MAAMiB,OAAO,GAAGC,UAAU,CAAC,MAAM;MAC/BF,gBAAgB,CAAC,CAAC;IACpB,CAAC,EAAE,GAAG,CAAC;IAEP,OAAO,MAAMG,YAAY,CAACF,OAAO,CAAC;EACpC,CAAC,EAAE,CAACD,gBAAgB,CAAC,CAAC;EAEtB,OAAO;IAAEL,kBAAkB;IAAEK;EAAiB,CAAC;AACjD,CAAC;AAED,eAAeZ,YAAY","ignoreList":[]}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useCallback, useMemo } from 'react';
|
|
4
|
+
import { useSelector } from 'react-redux';
|
|
5
|
+
import { useChatSettingState } from './useChatSettingState';
|
|
6
|
+
import { generateDefaultText, generateProcessingText } from '../components/styled/StyledInputComponents/CustomTypingIndicator';
|
|
7
|
+
/**
|
|
8
|
+
* Hook for managing custom typing indicator functionality
|
|
9
|
+
* Provides utilities for text generation and typing state management
|
|
10
|
+
*/
|
|
11
|
+
export const useCustomTypingIndicator = roomJID => {
|
|
12
|
+
const {
|
|
13
|
+
config
|
|
14
|
+
} = useChatSettingState();
|
|
15
|
+
const {
|
|
16
|
+
rooms
|
|
17
|
+
} = useSelector(state => ({
|
|
18
|
+
rooms: state.rooms.rooms
|
|
19
|
+
}));
|
|
20
|
+
const room = rooms[roomJID];
|
|
21
|
+
const isComposing = room?.composing || false;
|
|
22
|
+
const composingList = room?.composingList || [];
|
|
23
|
+
|
|
24
|
+
// Generate text based on configuration
|
|
25
|
+
const getTypingText = useCallback(customText => {
|
|
26
|
+
if (typeof customText === 'function') {
|
|
27
|
+
return customText(composingList);
|
|
28
|
+
} else if (typeof customText === 'string') {
|
|
29
|
+
return customText;
|
|
30
|
+
} else {
|
|
31
|
+
return generateDefaultText(composingList);
|
|
32
|
+
}
|
|
33
|
+
}, [composingList]);
|
|
34
|
+
|
|
35
|
+
// Generate processing text (for AI/processing states)
|
|
36
|
+
const getProcessingText = useCallback(() => {
|
|
37
|
+
return generateProcessingText(composingList);
|
|
38
|
+
}, [composingList]);
|
|
39
|
+
|
|
40
|
+
// Check if custom typing indicator is enabled
|
|
41
|
+
const isCustomTypingEnabled = useMemo(() => {
|
|
42
|
+
return config?.customTypingIndicator?.enabled || false;
|
|
43
|
+
}, [config?.customTypingIndicator?.enabled]);
|
|
44
|
+
|
|
45
|
+
// Get typing indicator configuration
|
|
46
|
+
const typingConfig = useMemo(() => {
|
|
47
|
+
return config?.customTypingIndicator || null;
|
|
48
|
+
}, [config?.customTypingIndicator]);
|
|
49
|
+
|
|
50
|
+
// Check if indicator should be visible
|
|
51
|
+
const shouldShowIndicator = useMemo(() => {
|
|
52
|
+
return isComposing && composingList.length > 0;
|
|
53
|
+
}, [isComposing, composingList.length]);
|
|
54
|
+
|
|
55
|
+
// Get position-specific styles
|
|
56
|
+
const getPositionStyles = useCallback(position => {
|
|
57
|
+
const baseStyles = typingConfig?.styles || {};
|
|
58
|
+
switch (position) {
|
|
59
|
+
case 'top':
|
|
60
|
+
return {
|
|
61
|
+
...baseStyles,
|
|
62
|
+
position: 'absolute',
|
|
63
|
+
top: '8px',
|
|
64
|
+
left: '16px',
|
|
65
|
+
right: '16px',
|
|
66
|
+
background: 'rgba(255, 255, 255, 0.95)',
|
|
67
|
+
padding: '8px 12px',
|
|
68
|
+
borderRadius: '8px',
|
|
69
|
+
boxShadow: '0 2px 8px rgba(0, 0, 0, 0.1)',
|
|
70
|
+
backdropFilter: 'blur(10px)'
|
|
71
|
+
};
|
|
72
|
+
case 'overlay':
|
|
73
|
+
return {
|
|
74
|
+
...baseStyles,
|
|
75
|
+
position: 'fixed',
|
|
76
|
+
top: '50%',
|
|
77
|
+
left: '50%',
|
|
78
|
+
transform: 'translate(-50%, -50%)',
|
|
79
|
+
background: 'rgba(0, 0, 0, 0.8)',
|
|
80
|
+
color: 'white',
|
|
81
|
+
padding: '16px 24px',
|
|
82
|
+
borderRadius: '12px',
|
|
83
|
+
backdropFilter: 'blur(10px)'
|
|
84
|
+
};
|
|
85
|
+
case 'floating':
|
|
86
|
+
return {
|
|
87
|
+
...baseStyles,
|
|
88
|
+
position: 'fixed',
|
|
89
|
+
bottom: '80px',
|
|
90
|
+
right: '20px',
|
|
91
|
+
background: 'rgba(255, 255, 255, 0.95)',
|
|
92
|
+
padding: '12px 16px',
|
|
93
|
+
borderRadius: '20px',
|
|
94
|
+
boxShadow: '0 4px 16px rgba(0, 0, 0, 0.15)',
|
|
95
|
+
backdropFilter: 'blur(10px)'
|
|
96
|
+
};
|
|
97
|
+
case 'bottom':
|
|
98
|
+
default:
|
|
99
|
+
return {
|
|
100
|
+
...baseStyles,
|
|
101
|
+
position: 'static',
|
|
102
|
+
padding: '8px 0'
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
}, [typingConfig?.styles]);
|
|
106
|
+
return {
|
|
107
|
+
isComposing,
|
|
108
|
+
composingList,
|
|
109
|
+
isCustomTypingEnabled,
|
|
110
|
+
typingConfig,
|
|
111
|
+
shouldShowIndicator,
|
|
112
|
+
getTypingText,
|
|
113
|
+
getProcessingText,
|
|
114
|
+
getPositionStyles
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Utility functions for creating common typing indicator configurations
|
|
120
|
+
*/
|
|
121
|
+
export const createTypingIndicatorConfigs = {
|
|
122
|
+
// Default typing indicator
|
|
123
|
+
default: {
|
|
124
|
+
enabled: true,
|
|
125
|
+
position: 'bottom'
|
|
126
|
+
},
|
|
127
|
+
// Processing state indicator
|
|
128
|
+
processing: {
|
|
129
|
+
enabled: true,
|
|
130
|
+
position: 'overlay',
|
|
131
|
+
text: usersTyping => generateProcessingText(usersTyping),
|
|
132
|
+
styles: {
|
|
133
|
+
background: 'rgba(0, 0, 0, 0.8)',
|
|
134
|
+
color: 'white',
|
|
135
|
+
fontSize: '16px',
|
|
136
|
+
fontWeight: '500'
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
// Floating indicator
|
|
140
|
+
floating: {
|
|
141
|
+
enabled: true,
|
|
142
|
+
position: 'floating',
|
|
143
|
+
styles: {
|
|
144
|
+
background: 'rgba(255, 255, 255, 0.95)',
|
|
145
|
+
color: '#333',
|
|
146
|
+
fontSize: '14px',
|
|
147
|
+
fontWeight: '500',
|
|
148
|
+
boxShadow: '0 4px 16px rgba(0, 0, 0, 0.15)'
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
// Top positioned indicator
|
|
152
|
+
top: {
|
|
153
|
+
enabled: true,
|
|
154
|
+
position: 'top',
|
|
155
|
+
styles: {
|
|
156
|
+
background: 'rgba(255, 255, 255, 0.95)',
|
|
157
|
+
color: '#555',
|
|
158
|
+
fontSize: '14px',
|
|
159
|
+
fontWeight: '500',
|
|
160
|
+
boxShadow: '0 2px 8px rgba(0, 0, 0, 0.1)'
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
// Custom text examples
|
|
164
|
+
customTexts: {
|
|
165
|
+
aiProcessing: usersTyping => {
|
|
166
|
+
const states = ['thinking', 'processing', 'generating answer'];
|
|
167
|
+
const randomState = states[Math.floor(Math.random() * states.length)];
|
|
168
|
+
return `${usersTyping[0]} is ${randomState}`;
|
|
169
|
+
},
|
|
170
|
+
simple: usersTyping => {
|
|
171
|
+
return `${usersTyping.length} user${usersTyping.length > 1 ? 's' : ''} typing...`;
|
|
172
|
+
},
|
|
173
|
+
minimal: usersTyping => {
|
|
174
|
+
return '...';
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
export default useCustomTypingIndicator;
|
|
179
|
+
//# sourceMappingURL=useCustomTypingIndicator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useCallback","useMemo","useSelector","useChatSettingState","generateDefaultText","generateProcessingText","useCustomTypingIndicator","roomJID","config","rooms","state","room","isComposing","composing","composingList","getTypingText","customText","getProcessingText","isCustomTypingEnabled","customTypingIndicator","enabled","typingConfig","shouldShowIndicator","length","getPositionStyles","position","baseStyles","styles","top","left","right","background","padding","borderRadius","boxShadow","backdropFilter","transform","color","bottom","createTypingIndicatorConfigs","default","processing","text","usersTyping","fontSize","fontWeight","floating","customTexts","aiProcessing","states","randomState","Math","floor","random","simple","minimal"],"sourceRoot":"../../../src","sources":["hooks/useCustomTypingIndicator.tsx"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,OAAO,QAAQ,OAAO;AAC5C,SAASC,WAAW,QAAQ,aAAa;AACzC,SAASC,mBAAmB,QAAQ,uBAAuB;AAC3D,SACEC,mBAAmB,EACnBC,sBAAsB,QACjB,kEAAkE;AAGzE;AACA;AACA;AACA;AACA,OAAO,MAAMC,wBAAwB,GAAIC,OAAe,IAAK;EAC3D,MAAM;IAAEC;EAAO,CAAC,GAAGL,mBAAmB,CAAC,CAAC;EACxC,MAAM;IAAEM;EAAM,CAAC,G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C,OAAOO,WAAW,EAAE;IAC9C,CAAC;IAEDI,MAAM,EAAGX,WAAqB,IAAK;MACjC,OAAO,GAAGA,WAAW,CAACpB,MAAM,QAAQoB,WAAW,CAACpB,MAAM,GAAG,CAAC,GAAG,GAAG,GAAG,EAAE,YAAY;IACnF,CAAC;IAEDgC,OAAO,EAAGZ,WAAqB,IAAK;MAClC,OAAO,KAAK;IACd;EACF;AACF,CAAC;AAED,eAAerC,wBAAwB","ignoreList":[]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useCallback } from 'react';
|
|
4
|
+
export const useEventHandlers = config => {
|
|
5
|
+
const handleMessageSent = useCallback(async event => {
|
|
6
|
+
try {
|
|
7
|
+
if (config?.eventHandlers?.onMessageSent) {
|
|
8
|
+
await config.eventHandlers.onMessageSent(event);
|
|
9
|
+
}
|
|
10
|
+
} catch (error) {
|
|
11
|
+
console.error('Error in message sent handler:', error);
|
|
12
|
+
throw error;
|
|
13
|
+
}
|
|
14
|
+
}, [config]);
|
|
15
|
+
const handleMessageFailed = useCallback(event => {
|
|
16
|
+
try {
|
|
17
|
+
if (config?.eventHandlers?.onMessageFailed) {
|
|
18
|
+
config.eventHandlers.onMessageFailed(event);
|
|
19
|
+
}
|
|
20
|
+
console.error('Message failed details:', {
|
|
21
|
+
message: event.message,
|
|
22
|
+
roomJID: event.roomJID,
|
|
23
|
+
messageType: event.messageType,
|
|
24
|
+
error: event.error?.message,
|
|
25
|
+
timestamp: new Date().toISOString()
|
|
26
|
+
});
|
|
27
|
+
} catch (handlerError) {
|
|
28
|
+
console.error('Error in message failed handler:', handlerError);
|
|
29
|
+
}
|
|
30
|
+
}, [config]);
|
|
31
|
+
const handleMessageEdited = useCallback(event => {
|
|
32
|
+
try {
|
|
33
|
+
if (config?.eventHandlers?.onMessageEdited) {
|
|
34
|
+
config.eventHandlers.onMessageEdited(event);
|
|
35
|
+
}
|
|
36
|
+
} catch (error) {
|
|
37
|
+
console.error('Error in message edited handler:', error);
|
|
38
|
+
}
|
|
39
|
+
}, [config]);
|
|
40
|
+
return {
|
|
41
|
+
handleMessageSent,
|
|
42
|
+
handleMessageFailed,
|
|
43
|
+
handleMessageEdited
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=useEventHandlers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useCallback","useEventHandlers","config","handleMessageSent","event","eventHandlers","onMessageSent","error","console","handleMessageFailed","onMessageFailed","message","roomJID","messageType","timestamp","Date","toISOString","handlerError","handleMessageEdited","onMessageEdited"],"sourceRoot":"../../../src","sources":["hooks/useEventHandlers.tsx"],"mappings":";;AAAA,SAASA,WAAW,QAAQ,OAAO;AA+BnC,OAAO,MAAMC,gBAAgB,GAAIC,MAAgB,IAAwB;EACvE,MAAMC,iBAAiB,GAAGH,WAAW,CACnC,MAAOI,KAAuB,IAAK;IACjC,IAAI;MACF,IAAIF,MAAM,EAAEG,aAAa,EAAEC,aAAa,EAAE;QACxC,MAAMJ,MAAM,CAACG,aAAa,CAACC,aAAa,CAACF,KAAK,CAAC;MACjD;IACF,CAAC,CAAC,OAAOG,KAAK,EAAE;MACdC,OAAO,CAACD,KAAK,CAAC,gCAAgC,EAAEA,KAAK,CAAC;MACtD,MAAMA,KAAK;IACb;EACF,CAAC,EACD,CAACL,MAAM,CACT,CAAC;EAED,MAAMO,mBAAmB,GAAGT,WAAW,CACpCI,KAAyB,IAAK;IAC7B,IAAI;MACF,IAAIF,MAAM,EAAEG,aAAa,EAAEK,eAAe,EAAE;QAC1CR,MAAM,CAACG,aAAa,CAACK,eAAe,CAACN,KAAK,CAAC;MAC7C;MACAI,OAAO,CAACD,KAAK,CAAC,yBAAyB,EAAE;QACvCI,OAAO,EAAEP,KAAK,CAACO,OAAO;QACtBC,OAAO,EAAER,KAAK,CAACQ,OAAO;QACtBC,WAAW,EAAET,KAAK,CAACS,WAAW;QAC9BN,KAAK,EAAEH,KAAK,CAACG,KAAK,EAAEI,OAAO;QAC3BG,SAAS,EAAE,IAAIC,IAAI,CAAC,CAAC,CAACC,WAAW,CAAC;MACpC,CAAC,CAAC;IACJ,CAAC,CAAC,OAAOC,YAAY,EAAE;MACrBT,OAAO,CAACD,KAAK,CAAC,kCAAkC,EAAEU,YAAY,CAAC;IACjE;EACF,CAAC,EACD,CAACf,MAAM,CACT,CAAC;EAED,MAAMgB,mBAAmB,GAAGlB,WAAW,CACpCI,KAAyB,IAAK;IAC7B,IAAI;MACF,IAAIF,MAAM,EAAEG,aAAa,EAAEc,eAAe,EAAE;QAC1CjB,MAAM,CAACG,aAAa,CAACc,eAAe,CAACf,KAAK,CAAC;MAC7C;IACF,CAAC,CAAC,OAAOG,KAAK,EAAE;MACdC,OAAO,CAACD,KAAK,CAAC,kCAAkC,EAAEA,KAAK,CAAC;IAC1D;EACF,CAAC,EACD,CAACL,MAAM,CACT,CAAC;EAED,OAAO;IAAEC,iBAAiB;IAAEM,mBAAmB;IAAES;EAAoB,CAAC;AACxE,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useCallback } from 'react';
|
|
4
|
+
import { useAppDispatch } from './hooks';
|
|
5
|
+
import { useXmppClient } from '../context/xmppProvider';
|
|
6
|
+
import { createRoomFromApi } from '../helpers/createRoomFromApi';
|
|
7
|
+
import { getRooms } from '../networking/api-requests/rooms.api';
|
|
8
|
+
import { addRoomViaApi, setIsLoading } from '../roomStore/roomsSlice';
|
|
9
|
+
import { pushSubscriptionService } from '../services/pushSubscriptionService';
|
|
10
|
+
const useGetNewArchRoom = () => {
|
|
11
|
+
const {
|
|
12
|
+
client
|
|
13
|
+
} = useXmppClient();
|
|
14
|
+
const dispatch = useAppDispatch();
|
|
15
|
+
const syncRooms = useCallback(async (client, config) => {
|
|
16
|
+
const rooms = await getRooms();
|
|
17
|
+
const roomJIDs = [];
|
|
18
|
+
rooms?.items?.forEach(room => {
|
|
19
|
+
const createdRoom = createRoomFromApi(room, config?.xmppSettings?.conference);
|
|
20
|
+
if (createdRoom) {
|
|
21
|
+
dispatch(addRoomViaApi({
|
|
22
|
+
room: createdRoom,
|
|
23
|
+
xmpp: client
|
|
24
|
+
}));
|
|
25
|
+
if (createdRoom.jid) {
|
|
26
|
+
roomJIDs.push(createdRoom.jid);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
dispatch(setIsLoading({
|
|
31
|
+
loading: false,
|
|
32
|
+
loadingText: undefined
|
|
33
|
+
}));
|
|
34
|
+
if (client?.client && roomJIDs.length > 0) {
|
|
35
|
+
const userNick = client.client.jid?.getLocal();
|
|
36
|
+
await pushSubscriptionService.subscribeToRooms(client.client, roomJIDs, userNick).catch(error => {
|
|
37
|
+
console.error('Failed to subscribe to loaded rooms for push:', error);
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
return rooms?.items || [];
|
|
41
|
+
}, [dispatch]);
|
|
42
|
+
return syncRooms;
|
|
43
|
+
};
|
|
44
|
+
export default useGetNewArchRoom;
|
|
45
|
+
//# sourceMappingURL=useGetNewArchRoom.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useCallback","useAppDispatch","useXmppClient","createRoomFromApi","getRooms","addRoomViaApi","setIsLoading","pushSubscriptionService","useGetNewArchRoom","client","dispatch","syncRooms","config","rooms","roomJIDs","items","forEach","room","createdRoom","xmppSettings","conference","xmpp","jid","push","loading","loadingText","undefined","length","userNick","getLocal","subscribeToRooms","catch","error","console"],"sourceRoot":"../../../src","sources":["hooks/useGetNewArchRoom.tsx"],"mappings":";;AAAA,SAASA,WAAW,QAAQ,OAAO;AACnC,SAASC,cAAc,QAAQ,SAAS;AACxC,SAASC,aAAa,QAAQ,yBAAyB;AACvD,SAASC,iBAAiB,QAAQ,8BAA8B;AAChE,SAASC,QAAQ,QAAQ,sCAAsC;AAC/D,SACEC,aAAa,E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ACvE,CAAC,CAAC;IACN;IAEA,OAAOnB,KAAK,EAAEE,KAAK,IAAI,EAAE;EAC3B,CAAC,EACD,CAACL,QAAQ,CACX,CAAC;EAED,OAAOC,SAAS;AAClB,CAAC;AAED,eAAeH,iBAAiB","ignoreList":[]}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useCallback, useEffect, useRef } from 'react';
|
|
4
|
+
import { useDispatch } from 'react-redux';
|
|
5
|
+
import { useMessageHeapState } from './useMessageHeapState';
|
|
6
|
+
export const useHeapSender = client => {
|
|
7
|
+
const dispatch = useDispatch();
|
|
8
|
+
const {
|
|
9
|
+
queue
|
|
10
|
+
} = useMessageHeapState();
|
|
11
|
+
const sendingRef = useRef(false);
|
|
12
|
+
const inFlightRef = useRef(new Map());
|
|
13
|
+
const sendHeapMessages = useCallback(async () => {
|
|
14
|
+
if (!client || queue.length === 0) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
if (!client.presencesReady) {
|
|
18
|
+
console.warn('Presences not ready, delaying heap send');
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
if (sendingRef.current) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
sendingRef.current = true;
|
|
25
|
+
try {
|
|
26
|
+
for (const msg of queue) {
|
|
27
|
+
const lastAttempt = inFlightRef.current.get(msg.id);
|
|
28
|
+
if (lastAttempt && Date.now() - lastAttempt < 15000) {
|
|
29
|
+
continue;
|
|
30
|
+
}
|
|
31
|
+
inFlightRef.current.set(msg.id, Date.now());
|
|
32
|
+
try {
|
|
33
|
+
if (msg.langSource) {
|
|
34
|
+
await client.sendTextMessageWithTranslateTagStanza(msg.roomJid, msg.user.firstName || msg.user.name?.split(' ')[0] || '', msg.user.lastName || msg.user.name?.split(' ')[1] || '', '', msg.user.walletAddress || '', msg.body, '', !!msg.isReply, msg.showInChannel === 'true', msg.mainMessage || '', msg.langSource);
|
|
35
|
+
} else {
|
|
36
|
+
await client.sendMessage(msg.roomJid, msg.user.firstName || msg.user.name?.split(' ')[0] || '', msg.user.lastName || msg.user.name?.split(' ')[1] || '', '', msg.user.walletAddress || '', msg.body, '', !!msg.isReply, !!msg.showInChannel, msg.mainMessage, msg.id);
|
|
37
|
+
}
|
|
38
|
+
} catch (err) {
|
|
39
|
+
console.warn('Failed to send heap message', msg, err);
|
|
40
|
+
inFlightRef.current.delete(msg.id);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
} finally {
|
|
44
|
+
sendingRef.current = false;
|
|
45
|
+
}
|
|
46
|
+
}, [client, queue, dispatch]);
|
|
47
|
+
const prevReadyRef = useRef(false);
|
|
48
|
+
useEffect(() => {
|
|
49
|
+
const nowReady = !!client?.presencesReady;
|
|
50
|
+
const wasReady = prevReadyRef.current;
|
|
51
|
+
prevReadyRef.current = nowReady;
|
|
52
|
+
if (!wasReady && nowReady && queue.length > 0) {
|
|
53
|
+
sendHeapMessages();
|
|
54
|
+
}
|
|
55
|
+
}, [client?.presencesReady, queue.length, sendHeapMessages]);
|
|
56
|
+
useEffect(() => {
|
|
57
|
+
const currentIds = new Set(queue.map(m => m.id));
|
|
58
|
+
for (const id of Array.from(inFlightRef.current.keys())) {
|
|
59
|
+
if (!currentIds.has(id)) {
|
|
60
|
+
inFlightRef.current.delete(id);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}, [queue]);
|
|
64
|
+
return {
|
|
65
|
+
sendHeapMessages
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
//# sourceMappingURL=useHeapSender.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useCallback","useEffect","useRef","useDispatch","useMessageHeapState","useHeapSender","client","dispatch","queue","sendingRef","inFlightRef","Map","sendHeapMessages","length","presencesReady","console","warn","current","msg","lastAttempt","get","id","Date","now","set","langSource","sendTextMessageWithTranslateTagStanza","roomJid","user","firstName","name","split","lastName","walletAddress","body","isReply","showInChannel","mainMessage","sendMessage","err","delete","prevReadyRef","nowReady","wasReady","currentIds","Set","map","m","Array","from","keys","has"],"sourceRoot":"../../../src","sources":["hooks/useHeapSender.tsx"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,SAAS,EAAEC,MAAM,QAAQ,OAAO;AACtD,SAASC,WAAW,QAAQ,aAAa;AACzC,SAASC,mBAAmB,QAAQ,uBAAuB;AAI3D,OAAO,MAAMC,aAAa,GAAIC,MAAyB,IAAK;EAC1D,MAAMC,QAAQ,GAAGJ,WAAW,CAAC,CAAC;EAC9B,MAAM;IAAEK;EAAM,CAAC,GAAGJ,mBAAmB,CAAC,CAAC;EACvC,MAAMK,UAAU,GAAGP,MAAM,CAAC,KAAK,CAAC;EAChC,MAAMQ,WAAW,GAAGR,MAAM,CAAsB,IAAIS,GAAG,CAAC,CAAC,CAAC;EAE1D,MAAMC,gBAAgB,GAAGZ,WAAW,CAAC,YAAY;IAC/C,IAAI,CAACM,MAAM,IAAIE,KAAK,CAACK,MAAM,KAAK,CAAC,EAAE;MAAC;IAAO;IAC3C,IAAI,CAACP,MAAM,CAACQ,cAAc,EAAE;MAC1BC,OAAO,CAACC,IAAI,CAAC,yCAAyC,CAAC;MACvD;IACF;IACA,IAAIP,UAAU,CAACQ,OAAO,EAAE;MAAC;IAAO;IAChCR,UAAU,CAACQ,OAAO,GAAG,IAAI;IACzB,IAAI;MACF,KAAK,MAAMC,GAAG,IAAIV,KAAK,EAAE;QACvB,MAAMW,WAAW,GAAGT,WAAW,CAACO,OAAO,CAACG,GAAG,CAACF,GAAG,CAACG,EAAE,CAAC;QACnD,IAAIF,WAAW,IAAIG,IAAI,CAACC,GAAG,CAAC,CAAC,GAAGJ,WAAW,GAAG,KAAK,EAAE;UACnD;QACF;QACAT,WAAW,CAACO,OAAO,CAACO,GAAG,CAACN,GAAG,CAACG,EAAE,EAAEC,IAAI,CAACC,GAAG,CAAC,CAAC,CAAC;QAC3C,IAAI;UACF,IAAIL,GAAG,CAACO,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