@ethora/chat-component-rn 26.4.2 → 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 +89 -0
- package/README.md +11 -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 +29 -6
- 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/LoginWrapper.tsx +5 -2
- 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 +11 -7
- 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/services/pushSubscriptionService.ts +25 -2
- 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
- package/src/api.config.ts +0 -34
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _styledModalComponents = require("../styledModalComponents");
|
|
9
|
+
var _reactNative = require("react-native");
|
|
10
|
+
var _ModalHeaderComponent = _interopRequireDefault(require("../ModalHeaderComponent"));
|
|
11
|
+
var _ProfileImagePlaceholder = require("../../MainComponents/ProfileImagePlaceholder");
|
|
12
|
+
var _reactRedux = require("react-redux");
|
|
13
|
+
var _roomStore = require("../../../roomStore");
|
|
14
|
+
var _auth = require("../../../networking/api-requests/auth.api");
|
|
15
|
+
var _xmppProvider = require("../../../context/xmppProvider");
|
|
16
|
+
var _roomsSlice = require("../../../roomStore/roomsSlice");
|
|
17
|
+
var _reactNativeImageCropPicker = _interopRequireDefault(require("react-native-image-crop-picker"));
|
|
18
|
+
var _reactNativePermissions = require("react-native-permissions");
|
|
19
|
+
var _Loader = _interopRequireDefault(require("../../styled/Loader"));
|
|
20
|
+
var _Button = _interopRequireDefault(require("../../styled/Button"));
|
|
21
|
+
var _icons = require("../../../assets/icons");
|
|
22
|
+
var _useChatSettingState = require("../../../hooks/useChatSettingState");
|
|
23
|
+
var _rooms = require("../../../networking/api-requests/rooms.api");
|
|
24
|
+
var _chatSettingsSlice = require("../../../roomStore/chatSettingsSlice");
|
|
25
|
+
var _MODAL_TYPES = require("../../../helpers/constants/MODAL_TYPES");
|
|
26
|
+
var _DropdownMenu = _interopRequireDefault(require("../../DropdownMenu/DropdownMenu"));
|
|
27
|
+
var _SelectUsersModal = _interopRequireDefault(require("../SelectUsersModal/SelectUsersModal"));
|
|
28
|
+
var _ToastContext = require("../../../context/ToastContext");
|
|
29
|
+
var _DeleteChatModal = _interopRequireDefault(require("./DeleteChatModal"));
|
|
30
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
31
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
32
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
33
|
+
const ChatProfileModal = ({
|
|
34
|
+
handleCloseModal
|
|
35
|
+
}) => {
|
|
36
|
+
const [loading, setLoading] = (0, _react.useState)(false);
|
|
37
|
+
const [visible, setVisible] = (0, _react.useState)(false);
|
|
38
|
+
const [isModalOpen, setIsModalOpen] = (0, _react.useState)(false);
|
|
39
|
+
const {
|
|
40
|
+
showToast
|
|
41
|
+
} = (0, _ToastContext.useToast)();
|
|
42
|
+
const chatMenuOptions = (0, _react.useMemo)(() => [{
|
|
43
|
+
label: 'Delete chat',
|
|
44
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.DeleteIcon, {}),
|
|
45
|
+
onClick: () => {
|
|
46
|
+
setIsModalOpen(true);
|
|
47
|
+
},
|
|
48
|
+
styles: {
|
|
49
|
+
color: 'red'
|
|
50
|
+
}
|
|
51
|
+
}], []);
|
|
52
|
+
const dispatch = (0, _reactRedux.useDispatch)();
|
|
53
|
+
const {
|
|
54
|
+
client
|
|
55
|
+
} = (0, _xmppProvider.useXmppClient)();
|
|
56
|
+
const {
|
|
57
|
+
user: stateUser,
|
|
58
|
+
config
|
|
59
|
+
} = (0, _useChatSettingState.useChatSettingState)();
|
|
60
|
+
const activeRoom = (0, _reactRedux.useSelector)(state => (0, _roomStore.getActiveRoom)(state));
|
|
61
|
+
|
|
62
|
+
// Pull live member list from the MUC when the modal opens — REST
|
|
63
|
+
// hydration only fills the *count* (item.participants /
|
|
64
|
+
// item.members.length); the actual roster comes from a `getRoomMembers`
|
|
65
|
+
// IQ which onGetMembers in stanzaHandlers parses into `roomMembers`.
|
|
66
|
+
(0, _react.useEffect)(() => {
|
|
67
|
+
if (client && activeRoom?.jid) {
|
|
68
|
+
try {
|
|
69
|
+
client.getRoomMembersStanza?.(activeRoom.jid);
|
|
70
|
+
} catch {
|
|
71
|
+
/* non-fatal */
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}, [client, activeRoom?.jid]);
|
|
75
|
+
const checkPermission = async permission => {
|
|
76
|
+
const status = await (0, _reactNativePermissions.check)(permission);
|
|
77
|
+
if (status === _reactNativePermissions.RESULTS.GRANTED) {
|
|
78
|
+
return status;
|
|
79
|
+
} else if (status === _reactNativePermissions.RESULTS.DENIED) {
|
|
80
|
+
const requestStatus = await (0, _reactNativePermissions.request)(permission);
|
|
81
|
+
return requestStatus;
|
|
82
|
+
}
|
|
83
|
+
return status;
|
|
84
|
+
};
|
|
85
|
+
const onUpload = async () => {
|
|
86
|
+
let loadingSet = false;
|
|
87
|
+
try {
|
|
88
|
+
setLoading(true);
|
|
89
|
+
loadingSet = true;
|
|
90
|
+
const permission = _reactNative.Platform.OS === 'ios' ? _reactNativePermissions.PERMISSIONS.IOS.PHOTO_LIBRARY : _reactNativePermissions.PERMISSIONS.ANDROID.READ_EXTERNAL_STORAGE;
|
|
91
|
+
const permissionStatus = await checkPermission(permission);
|
|
92
|
+
if (permissionStatus !== _reactNativePermissions.RESULTS.GRANTED) {
|
|
93
|
+
_reactNative.Alert.alert('Permission required', 'Photo library permission is needed to select images.', [{
|
|
94
|
+
text: 'Cancel',
|
|
95
|
+
onPress: () => {
|
|
96
|
+
setLoading(false);
|
|
97
|
+
console.log('Photo permission cancelled');
|
|
98
|
+
},
|
|
99
|
+
style: 'cancel'
|
|
100
|
+
}, {
|
|
101
|
+
text: 'Open Settings',
|
|
102
|
+
onPress: () => _reactNative.Linking.openSettings()
|
|
103
|
+
}]);
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
const image = await _reactNativeImageCropPicker.default.openPicker({
|
|
107
|
+
width: 300,
|
|
108
|
+
height: 300,
|
|
109
|
+
cropping: true,
|
|
110
|
+
cropperCircleOverlay: true,
|
|
111
|
+
compressImageQuality: 0.8
|
|
112
|
+
});
|
|
113
|
+
const originalName = image.path.split('/').pop();
|
|
114
|
+
const fileObject = {
|
|
115
|
+
uri: image.path,
|
|
116
|
+
type: image.mime || 'image/jpeg',
|
|
117
|
+
name: originalName || `profile_${Date.now()}.jpg`
|
|
118
|
+
};
|
|
119
|
+
const mediaData = new FormData();
|
|
120
|
+
mediaData.append('files', fileObject);
|
|
121
|
+
const uploadResult = await (0, _auth.uploadFile)(mediaData);
|
|
122
|
+
const location = uploadResult?.data?.results?.[0]?.location;
|
|
123
|
+
if (location) {
|
|
124
|
+
client?.setRoomImageStanza(activeRoom?.jid || '', location, 'icon', 'none');
|
|
125
|
+
dispatch((0, _roomsSlice.updateRoom)({
|
|
126
|
+
jid: activeRoom?.jid || '',
|
|
127
|
+
updates: {
|
|
128
|
+
icon: location
|
|
129
|
+
}
|
|
130
|
+
}));
|
|
131
|
+
showToast({
|
|
132
|
+
id: Date.now().toString(),
|
|
133
|
+
title: 'Success',
|
|
134
|
+
message: 'Room image updated successfully',
|
|
135
|
+
type: 'success'
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
} catch (error) {
|
|
139
|
+
if (error?.code === 'E_PICKER_CANCELLED' || error?.code === 'E_NO_CAMERA_PERMISSION') {
|
|
140
|
+
console.log('User cancelled image selection');
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
console.error('File upload failed or location is missing:', error);
|
|
144
|
+
showToast({
|
|
145
|
+
id: Date.now().toString(),
|
|
146
|
+
title: 'Error',
|
|
147
|
+
message: 'Failed to upload image',
|
|
148
|
+
type: 'error'
|
|
149
|
+
});
|
|
150
|
+
} finally {
|
|
151
|
+
if (loadingSet) {
|
|
152
|
+
setLoading(false);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
const handleDeleteUser = async userId => {
|
|
157
|
+
try {
|
|
158
|
+
await (0, _rooms.deleteRoomMember)({
|
|
159
|
+
roomId: activeRoom?.jid?.split('@')[0] || '',
|
|
160
|
+
members: [userId]
|
|
161
|
+
});
|
|
162
|
+
dispatch((0, _roomsSlice.updateRoom)({
|
|
163
|
+
jid: activeRoom?.jid || '',
|
|
164
|
+
updates: {
|
|
165
|
+
roomMembers: activeRoom?.roomMembers?.filter(user => user.xmppUsername !== userId)
|
|
166
|
+
}
|
|
167
|
+
}));
|
|
168
|
+
showToast({
|
|
169
|
+
id: Date.now().toString(),
|
|
170
|
+
title: 'Success',
|
|
171
|
+
message: `${userId} has been removed from the room.`,
|
|
172
|
+
type: 'success'
|
|
173
|
+
});
|
|
174
|
+
} catch (error) {
|
|
175
|
+
console.error('Failed to delete user:', error);
|
|
176
|
+
showToast({
|
|
177
|
+
id: Date.now().toString(),
|
|
178
|
+
title: 'Error',
|
|
179
|
+
message: 'Failed to delete user.',
|
|
180
|
+
type: 'error'
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
const onRemoveClick = async () => {
|
|
185
|
+
client?.setRoomImageStanza(activeRoom?.jid || '', '', 'icon', 'none');
|
|
186
|
+
dispatch((0, _roomsSlice.updateRoom)({
|
|
187
|
+
jid: activeRoom?.jid || '',
|
|
188
|
+
updates: {
|
|
189
|
+
icon: null
|
|
190
|
+
}
|
|
191
|
+
}));
|
|
192
|
+
};
|
|
193
|
+
const handleUserAvatarClick = user => {
|
|
194
|
+
dispatch((0, _chatSettingsSlice.setActiveModal)(_MODAL_TYPES.MODAL_TYPES.PROFILE));
|
|
195
|
+
dispatch((0, _chatSettingsSlice.setSelectedUser)({
|
|
196
|
+
id: user._id,
|
|
197
|
+
firstName: user.firstName,
|
|
198
|
+
lastName: user.lastName,
|
|
199
|
+
name: `${user.firstName} ${user.lastName}`,
|
|
200
|
+
userJID: user?.xmppUsername,
|
|
201
|
+
token: '',
|
|
202
|
+
refreshToken: ''
|
|
203
|
+
}));
|
|
204
|
+
};
|
|
205
|
+
const menuOptions = (0, _react.useMemo)(() => userId => [{
|
|
206
|
+
label: 'Appoint as an admin',
|
|
207
|
+
icon: null,
|
|
208
|
+
onClick: () => {
|
|
209
|
+
dispatch((0, _chatSettingsSlice.setActiveModal)(_MODAL_TYPES.MODAL_TYPES.PROFILE));
|
|
210
|
+
console.log('Profile clicked');
|
|
211
|
+
}
|
|
212
|
+
}, {
|
|
213
|
+
label: 'Unban',
|
|
214
|
+
icon: null,
|
|
215
|
+
onClick: () => {
|
|
216
|
+
dispatch((0, _chatSettingsSlice.setActiveModal)(_MODAL_TYPES.MODAL_TYPES.SETTINGS));
|
|
217
|
+
console.log('Settings clicked');
|
|
218
|
+
}
|
|
219
|
+
}, {
|
|
220
|
+
label: 'Delete',
|
|
221
|
+
icon: null,
|
|
222
|
+
onClick: e => {
|
|
223
|
+
e?.preventDefault();
|
|
224
|
+
handleDeleteUser(userId);
|
|
225
|
+
}
|
|
226
|
+
}], []);
|
|
227
|
+
(0, _react.useEffect)(() => {
|
|
228
|
+
if (!activeRoom) {
|
|
229
|
+
dispatch((0, _chatSettingsSlice.setActiveModal)(undefined));
|
|
230
|
+
}
|
|
231
|
+
}, [activeRoom, dispatch]);
|
|
232
|
+
if (!activeRoom) {
|
|
233
|
+
return null;
|
|
234
|
+
}
|
|
235
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styledModalComponents.ModalContainerFullScreen, {
|
|
236
|
+
style: {
|
|
237
|
+
position: 'relative'
|
|
238
|
+
},
|
|
239
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ModalHeaderComponent.default, {
|
|
240
|
+
handleCloseModal: handleCloseModal,
|
|
241
|
+
headerTitle: 'Chat Profile',
|
|
242
|
+
rightMenu: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
243
|
+
children: [activeRoom?.type === 'public' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
|
|
244
|
+
EndIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.QrIcon, {}),
|
|
245
|
+
onPress: () => setVisible(true)
|
|
246
|
+
}), activeRoom.role === 'moderator' && activeRoom.type !== 'private' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_DropdownMenu.default, {
|
|
247
|
+
position: "right",
|
|
248
|
+
options: chatMenuOptions,
|
|
249
|
+
openButton: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
|
|
250
|
+
style: {
|
|
251
|
+
padding: 8,
|
|
252
|
+
height: 40
|
|
253
|
+
},
|
|
254
|
+
EndIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.MoreIcon, {}),
|
|
255
|
+
unstyled: true
|
|
256
|
+
})
|
|
257
|
+
})]
|
|
258
|
+
})
|
|
259
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styledModalComponents.CenterContainer, {
|
|
260
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ProfileImagePlaceholder.ProfileImagePlaceholder, {
|
|
261
|
+
name: activeRoom.title || activeRoom.name,
|
|
262
|
+
icon: activeRoom.icon,
|
|
263
|
+
upload: {
|
|
264
|
+
onUpload,
|
|
265
|
+
active: activeRoom?.role !== 'participant' ? true : false
|
|
266
|
+
},
|
|
267
|
+
remove: {
|
|
268
|
+
enabled: true,
|
|
269
|
+
onRemoveClick
|
|
270
|
+
},
|
|
271
|
+
role: activeRoom?.role,
|
|
272
|
+
size: 128
|
|
273
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styledModalComponents.UserInfo, {
|
|
274
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_styledModalComponents.UserName, {
|
|
275
|
+
children: activeRoom.title || activeRoom.name
|
|
276
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styledModalComponents.UserStatus, {
|
|
277
|
+
children: [activeRoom.usersCnt, ' ', activeRoom.usersCnt > 1 ? 'members' : 'member']
|
|
278
|
+
})]
|
|
279
|
+
}), activeRoom.role === 'moderator' && activeRoom.type === 'group' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
280
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectUsersModal.default, {})
|
|
281
|
+
}), !config?.disableChatInfo?.disableDescription && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styledModalComponents.BorderedContainer, {
|
|
282
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_styledModalComponents.LabelData, {
|
|
283
|
+
children: "Description"
|
|
284
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledModalComponents.Label, {
|
|
285
|
+
children: activeRoom?.description || '—'
|
|
286
|
+
})]
|
|
287
|
+
}), !config?.disableChatInfo?.disableType && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styledModalComponents.BorderedContainer, {
|
|
288
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_styledModalComponents.LabelData, {
|
|
289
|
+
children: "Chat type"
|
|
290
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledModalComponents.Label, {
|
|
291
|
+
children: activeRoom.type || '—'
|
|
292
|
+
})]
|
|
293
|
+
}), !config?.disableChatInfo?.hideMembers && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledModalComponents.BorderedContainer, {
|
|
294
|
+
style: {
|
|
295
|
+
paddingHorizontal: 16,
|
|
296
|
+
paddingVertical: 8
|
|
297
|
+
},
|
|
298
|
+
children: loading ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Loader.default, {}) : (activeRoom?.roomMembers?.length ?? 0) === 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledModalComponents.Label, {
|
|
299
|
+
style: {
|
|
300
|
+
opacity: 0.6,
|
|
301
|
+
textAlign: 'center',
|
|
302
|
+
paddingVertical: 8
|
|
303
|
+
},
|
|
304
|
+
children: "Member list unavailable"
|
|
305
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ScrollView, {
|
|
306
|
+
style: {
|
|
307
|
+
maxHeight: 400
|
|
308
|
+
},
|
|
309
|
+
showsVerticalScrollIndicator: true,
|
|
310
|
+
nestedScrollEnabled: true,
|
|
311
|
+
children: activeRoom?.roomMembers?.map((user, index) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
312
|
+
style: {
|
|
313
|
+
flexDirection: 'column',
|
|
314
|
+
alignItems: 'flex-start'
|
|
315
|
+
},
|
|
316
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
317
|
+
style: {
|
|
318
|
+
flexDirection: 'row',
|
|
319
|
+
justifyContent: 'flex-start',
|
|
320
|
+
paddingHorizontal: 8,
|
|
321
|
+
paddingVertical: 0,
|
|
322
|
+
alignItems: 'center',
|
|
323
|
+
width: '100%'
|
|
324
|
+
},
|
|
325
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Pressable, {
|
|
326
|
+
style: {
|
|
327
|
+
flexDirection: 'row',
|
|
328
|
+
alignItems: 'center',
|
|
329
|
+
justifyContent: 'flex-start',
|
|
330
|
+
gap: 16
|
|
331
|
+
},
|
|
332
|
+
onPress: () => handleUserAvatarClick(user),
|
|
333
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ProfileImagePlaceholder.ProfileImagePlaceholder, {
|
|
334
|
+
name: `${user.firstName} ${user.lastName}`,
|
|
335
|
+
size: 40
|
|
336
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
337
|
+
style: {
|
|
338
|
+
flexDirection: 'column',
|
|
339
|
+
gap: 2,
|
|
340
|
+
alignItems: 'flex-start',
|
|
341
|
+
justifyContent: 'center'
|
|
342
|
+
},
|
|
343
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_styledModalComponents.Label, {
|
|
344
|
+
style: {
|
|
345
|
+
fontSize: 16,
|
|
346
|
+
fontWeight: 600
|
|
347
|
+
},
|
|
348
|
+
children: [user.firstName, " ", user.lastName]
|
|
349
|
+
}), user.last_active && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledModalComponents.LabelData, {
|
|
350
|
+
children: new Date(user.last_active * 1000).toLocaleString()
|
|
351
|
+
})]
|
|
352
|
+
})]
|
|
353
|
+
}), user.role && user.role !== 'none' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
354
|
+
style: {
|
|
355
|
+
backgroundColor: user.ban_status !== 'banned' ? '#F3F6FC' : '#FFEBEE',
|
|
356
|
+
color: user.ban_status !== 'banned' ? '#0052CD' : '#F44336',
|
|
357
|
+
padding: 5,
|
|
358
|
+
borderRadius: 16,
|
|
359
|
+
fontSize: 12
|
|
360
|
+
},
|
|
361
|
+
children: user.role
|
|
362
|
+
}), stateUser.xmppUsername !== user.xmppUsername && activeRoom.role === 'moderator' && activeRoom.type !== 'private' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_DropdownMenu.default, {
|
|
363
|
+
options: menuOptions(user.xmppUsername),
|
|
364
|
+
openButton: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
|
|
365
|
+
onPress: () => {},
|
|
366
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
367
|
+
children: "More Options"
|
|
368
|
+
})
|
|
369
|
+
}),
|
|
370
|
+
onClose: () => console.log('Dropdown closed')
|
|
371
|
+
})]
|
|
372
|
+
}), index < (activeRoom?.roomMembers?.length || 0) - 1 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledModalComponents.Divider, {})]
|
|
373
|
+
}, user.xmppUsername))
|
|
374
|
+
})
|
|
375
|
+
})]
|
|
376
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_DeleteChatModal.default, {
|
|
377
|
+
isModalOpen: isModalOpen,
|
|
378
|
+
setIsModalOpen: setIsModalOpen
|
|
379
|
+
})]
|
|
380
|
+
});
|
|
381
|
+
};
|
|
382
|
+
var _default = exports.default = ChatProfileModal;
|
|
383
|
+
//# sourceMappingURL=ChatProfileModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_styledModalComponents","_reactNative","_ModalHeaderComponent","_interopRequireDefault","_ProfileImagePlaceholder","_reactRedux","_roomStore","_auth","_xmppProvider","_roomsSlice","_reactNativeImageCropPicker","_reactNativePermissions","_Loader","_Button","_icons","_useChatSettingState","_rooms","_chatSettingsSlice","_MODAL_TYPES","_DropdownMenu","_SelectUsersModal","_ToastContext","_DeleteChatModal","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ChatProfileModal","handleCloseModal","loading","setLoading","useState","visible","setVisible","isModalOpen","setIsModalOpen","showToast","useToast","chatMenuOptions","useMemo","label","icon","jsx","DeleteIcon","onClick","styles","color","dispatch","useDispatch","client","useXmppClient","user","stateUser","config","useChatSettingState","activeRoom","useSelector","state","getActiveRoom","useEffect","jid","getRoomMembersStanza","checkPermission","permission","status","check","RESULTS","GRANTED","DENIED","requestStatus","request","onUpload","loadingSet","Platform","OS","PERMISSIONS","IOS","PHOTO_LIBRARY","ANDROID","READ_EXTERNAL_STORAGE","permissionStatus","Alert","alert","text","onPress","console","log","style","Linking","openSettings","image","ImagePicker","openPicker","width","height","cropping","cropperCircleOverlay","compressImageQuality","originalName","path","split","pop","fileObject","uri","type","mime","name","Date","now","mediaData","FormData","append","uploadResult","uploadFile","location","data","results","setRoomImageStanza","updateRoom","updates","id","toString","title","message","error","code","handleDeleteUser","userId","deleteRoomMember","roomId","members","roomMembers","filter","xmppUsername","onRemoveClick","handleUserAvatarClick","setActiveModal","MODAL_TYPES","PROFILE","setSelectedUser","_id","firstName","lastName","userJID","token","refreshToken","menuOptions","SETTINGS","preventDefault","undefined","jsxs","ModalContainerFullScreen","position","children","headerTitle","rightMenu","Fragment","EndIcon","QrIcon","role","options","openButton","padding","MoreIcon","unstyled","CenterContainer","ProfileImagePlaceholder","upload","active","remove","enabled","size","UserInfo","UserName","UserStatus","usersCnt","disableChatInfo","disableDescription","BorderedContainer","LabelData","Label","description","disableType","hideMembers","paddingHorizontal","paddingVertical","length","opacity","textAlign","ScrollView","maxHeight","showsVerticalScrollIndicator","nestedScrollEnabled","map","index","View","flexDirection","alignItems","justifyContent","Pressable","gap","fontSize","fontWeight","last_active","toLocaleString","Text","backgroundColor","ban_status","borderRadius","onClose","Divider","_default","exports"],"sourceRoot":"../../../../../src","sources":["components/Modals/ChatProfileModal/ChatProfileModal.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AAYA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,qBAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,wBAAA,GAAAL,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA;AACA,IAAAQ,KAAA,GAAAR,OAAA;AACA,IAAAS,aAAA,GAAAT,OAAA;AACA,IAAAU,WAAA,GAAAV,OAAA;AACA,IAAAW,2BAAA,GAAAP,sBAAA,CAAAJ,OAAA;AACA,IAAAY,uBAAA,GAAAZ,OAAA;AAOA,IAAAa,OAAA,GAAAT,sBAAA,CAAAJ,OAAA;AACA,IAAAc,OAAA,GAAAV,sBAAA,CAAAJ,OAAA;AACA,IAAAe,MAAA,GAAAf,OAAA;AAEA,IAAAgB,oBAAA,GAAAhB,OAAA;AACA,IAAAiB,MAAA,GAAAjB,OAAA;AAEA,IAAAkB,kBAAA,GAAAlB,OAAA;AACA,IAAAmB,YAAA,GAAAnB,OAAA;AACA,IAAAoB,aAAA,GAAAhB,sBAAA,CAAAJ,OAAA;AACA,IAAAqB,iBAAA,GAAAjB,sBAAA,CAAAJ,OAAA;AACA,IAAAsB,aAAA,GAAAtB,OAAA;AACA,IAAAuB,gBAAA,GAAAnB,sBAAA,CAAAJ,OAAA;AAAgD,IAAAwB,WAAA,GAAAxB,OAAA;AAAA,SAAAI,uBAAAqB,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAA1B,wBAAA0B,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAA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AA,CAAAmC,GAAA,EAACpC,gBAAA,CAAAI,OAAe;MACdwB,WAAW,EAAEA,WAAY;MACzBC,cAAc,EAAEA;IAAe,CAChC,CAAC;EAAA,CACsB,CAAC;AAE/B,CAAC;AAAC,IAAAgL,QAAA,GAAAC,OAAA,CAAA1M,OAAA,GAEaiB,gBAAgB","ignoreList":[]}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _Button = _interopRequireDefault(require("../../styled/Button"));
|
|
9
|
+
var _reactRedux = require("react-redux");
|
|
10
|
+
var _roomStore = require("../../../roomStore");
|
|
11
|
+
var _styledModalComponents = require("../styledModalComponents");
|
|
12
|
+
var _rooms = require("../../../networking/api-requests/rooms.api");
|
|
13
|
+
var _roomsSlice = require("../../../roomStore/roomsSlice");
|
|
14
|
+
var _reactNative = require("react-native");
|
|
15
|
+
var _ToastContext = require("../../../context/ToastContext");
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
|
+
const DeleteChatModal = ({
|
|
19
|
+
isModalOpen,
|
|
20
|
+
setIsModalOpen
|
|
21
|
+
}) => {
|
|
22
|
+
const dispatch = (0, _reactRedux.useDispatch)();
|
|
23
|
+
const {
|
|
24
|
+
showToast
|
|
25
|
+
} = (0, _ToastContext.useToast)();
|
|
26
|
+
const activeRoom = (0, _reactRedux.useSelector)(state => (0, _roomStore.getActiveRoom)(state));
|
|
27
|
+
const handleOpenModal = () => setIsModalOpen(true);
|
|
28
|
+
const handleCloseModal = () => setIsModalOpen(false);
|
|
29
|
+
const handleDeleteChat = async () => {
|
|
30
|
+
try {
|
|
31
|
+
await (0, _rooms.deleteRoom)(activeRoom?.jid?.split('@')[0] || '');
|
|
32
|
+
dispatch((0, _roomsSlice.deleteRoom)({
|
|
33
|
+
jid: activeRoom?.jid || ''
|
|
34
|
+
}));
|
|
35
|
+
handleCloseModal();
|
|
36
|
+
showToast({
|
|
37
|
+
id: Date.now().toString(),
|
|
38
|
+
title: 'Success',
|
|
39
|
+
message: 'Chat deleted successfully',
|
|
40
|
+
type: 'success'
|
|
41
|
+
});
|
|
42
|
+
} catch (error) {
|
|
43
|
+
console.error('Failed to delete chat:', error);
|
|
44
|
+
showToast({
|
|
45
|
+
id: Date.now().toString(),
|
|
46
|
+
title: 'Error',
|
|
47
|
+
message: 'Failed to delete chat',
|
|
48
|
+
type: 'error'
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
return isModalOpen && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledModalComponents.ModalBackground, {
|
|
53
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styledModalComponents.ModalContainer, {
|
|
54
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_styledModalComponents.CloseButton, {
|
|
55
|
+
onPress: handleCloseModal,
|
|
56
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
57
|
+
style: {
|
|
58
|
+
fontSize: 24
|
|
59
|
+
},
|
|
60
|
+
children: "\xD7"
|
|
61
|
+
})
|
|
62
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledModalComponents.ModalTitle, {
|
|
63
|
+
children: "Delete this chat ?"
|
|
64
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styledModalComponents.GroupContainer, {
|
|
65
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
|
|
66
|
+
onPress: handleCloseModal,
|
|
67
|
+
text: 'Cancel',
|
|
68
|
+
style: {
|
|
69
|
+
width: '100%'
|
|
70
|
+
},
|
|
71
|
+
unstyled: true,
|
|
72
|
+
variant: "filled"
|
|
73
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
|
|
74
|
+
onPress: handleDeleteChat,
|
|
75
|
+
text: 'Delete',
|
|
76
|
+
style: {
|
|
77
|
+
width: '100%',
|
|
78
|
+
borderWidth: 1,
|
|
79
|
+
borderColor: 'red'
|
|
80
|
+
},
|
|
81
|
+
color: "red",
|
|
82
|
+
unstyled: true,
|
|
83
|
+
variant: "outlined"
|
|
84
|
+
})]
|
|
85
|
+
})]
|
|
86
|
+
})
|
|
87
|
+
});
|
|
88
|
+
};
|
|
89
|
+
var _default = exports.default = DeleteChatModal;
|
|
90
|
+
//# sourceMappingURL=DeleteChatModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_Button","_reactRedux","_roomStore","_styledModalComponents","_rooms","_roomsSlice","_reactNative","_ToastContext","_jsxRuntime","e","__esModule","default","DeleteChatModal","isModalOpen","setIsModalOpen","dispatch","useDispatch","showToast","useToast","activeRoom","useSelector","state","getActiveRoom","handleOpenModal","handleCloseModal","handleDeleteChat","deleteRoomApi","jid","split","deleteRoomAction","id","Date","now","toString","title","message","type","error","console","jsx","ModalBackground","children","jsxs","ModalContainer","CloseButton","onPress","Text","style","fontSize","ModalTitle","GroupContainer","text","width","unstyled","variant","borderWidth","borderColor","color","_default","exports"],"sourceRoot":"../../../../../src","sources":["components/Modals/ChatProfileModal/DeleteChatModal.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,sBAAA,GAAAJ,OAAA;AAOA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AACA,IAAAO,YAAA,GAAAP,OAAA;AACA,IAAAQ,aAAA,GAAAR,OAA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