@ethora/chat-component-rn 26.7.9 → 26.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +0 -93
- package/README.md +10 -33
- package/lib/commonjs/assets/icons.js +2 -7
- package/lib/commonjs/assets/icons.js.map +1 -1
- package/lib/commonjs/components/AuthForms/Login.js +4 -4
- package/lib/commonjs/components/AuthForms/Login.js.map +1 -1
- package/lib/commonjs/components/Header/HeaderRoomList.js +7 -26
- package/lib/commonjs/components/Header/HeaderRoomList.js.map +1 -1
- package/lib/commonjs/components/MainComponents/ChatHeader.js +3 -9
- package/lib/commonjs/components/MainComponents/ChatHeader.js.map +1 -1
- package/lib/commonjs/components/MainComponents/ChatRoom.js +13 -101
- package/lib/commonjs/components/MainComponents/ChatRoom.js.map +1 -1
- package/lib/commonjs/components/MainComponents/ChatWrapper.js +38 -34
- package/lib/commonjs/components/MainComponents/ChatWrapper.js.map +1 -1
- package/lib/commonjs/components/MainComponents/LoginWrapper.js +1 -2
- package/lib/commonjs/components/MainComponents/LoginWrapper.js.map +1 -1
- package/lib/commonjs/components/MainComponents/MediaMessage.js +9 -29
- package/lib/commonjs/components/MainComponents/MediaMessage.js.map +1 -1
- package/lib/commonjs/components/MainComponents/MessageContainer.js +1 -5
- package/lib/commonjs/components/MainComponents/MessageContainer.js.map +1 -1
- package/lib/commonjs/components/MainComponents/MessageList.js +5 -13
- package/lib/commonjs/components/MainComponents/MessageList.js.map +1 -1
- package/lib/commonjs/components/MainComponents/ProfileImagePlaceholder.js +13 -14
- package/lib/commonjs/components/MainComponents/ProfileImagePlaceholder.js.map +1 -1
- package/lib/commonjs/components/MainComponents/ReduxWrapper.js +24 -3
- package/lib/commonjs/components/MainComponents/ReduxWrapper.js.map +1 -1
- package/lib/commonjs/components/MainComponents/RoomList.js +35 -208
- package/lib/commonjs/components/MainComponents/RoomList.js.map +1 -1
- package/lib/commonjs/components/Menu/HeaderRoomListMenu.js +98 -317
- package/lib/commonjs/components/Menu/HeaderRoomListMenu.js.map +1 -1
- package/lib/commonjs/components/MessageBubble/MessageTranslate.js +16 -7
- package/lib/commonjs/components/MessageBubble/MessageTranslate.js.map +1 -1
- package/lib/commonjs/components/Modals/AttachSheet/AttachSheet.js +112 -320
- package/lib/commonjs/components/Modals/AttachSheet/AttachSheet.js.map +1 -1
- package/lib/commonjs/components/Modals/ChatProfileModal/ChatProfileModal.js +215 -556
- package/lib/commonjs/components/Modals/ChatProfileModal/ChatProfileModal.js.map +1 -1
- package/lib/commonjs/components/Modals/ChatProfileModal/DeleteChatModal.js +9 -7
- package/lib/commonjs/components/Modals/ChatProfileModal/DeleteChatModal.js.map +1 -1
- package/lib/commonjs/components/Modals/FilePreviewModal/FilePreviewModal.js +27 -69
- package/lib/commonjs/components/Modals/FilePreviewModal/FilePreviewModal.js.map +1 -1
- package/lib/commonjs/components/Modals/FilePreviewModal/PdfView.js +1 -2
- package/lib/commonjs/components/Modals/FilePreviewModal/PdfView.js.map +1 -1
- package/lib/commonjs/components/Modals/Modal/Modal.js +0 -8
- package/lib/commonjs/components/Modals/Modal/Modal.js.map +1 -1
- package/lib/commonjs/components/Modals/NewChatModal/ModalContent.js +1 -2
- package/lib/commonjs/components/Modals/NewChatModal/ModalContent.js.map +1 -1
- package/lib/commonjs/components/Modals/NewChatModal/NewChatModal.js +109 -205
- package/lib/commonjs/components/Modals/NewChatModal/NewChatModal.js.map +1 -1
- package/lib/commonjs/components/Modals/NewChatModal/UpdNewChatModal.js +0 -8
- package/lib/commonjs/components/Modals/NewChatModal/UpdNewChatModal.js.map +1 -1
- package/lib/commonjs/components/Modals/SelectUsersModal/SelectUsersModal.js +2 -4
- package/lib/commonjs/components/Modals/SelectUsersModal/SelectUsersModal.js.map +1 -1
- package/lib/commonjs/components/Modals/UserProfileModal/EditUserModal.js +21 -7
- package/lib/commonjs/components/Modals/UserProfileModal/EditUserModal.js.map +1 -1
- package/lib/commonjs/components/Modals/UserProfileModal/UserProfileModal.js +244 -507
- package/lib/commonjs/components/Modals/UserProfileModal/UserProfileModal.js.map +1 -1
- package/lib/commonjs/components/Modals/UserSettingsModal/UserSettingsModal.js +46 -74
- package/lib/commonjs/components/Modals/UserSettingsModal/UserSettingsModal.js.map +1 -1
- package/lib/commonjs/components/Modals/styledModalComponents.js +2 -9
- package/lib/commonjs/components/Modals/styledModalComponents.js.map +1 -1
- package/lib/commonjs/components/RoomComponents/ChatRoomItem.js +39 -23
- package/lib/commonjs/components/RoomComponents/ChatRoomItem.js.map +1 -1
- package/lib/commonjs/components/RoomComponents/styled/LastMessageFile.js +3 -22
- package/lib/commonjs/components/RoomComponents/styled/LastMessageFile.js.map +1 -1
- package/lib/commonjs/components/RoomComponents/styled/LastMessagePhoto.js +3 -17
- package/lib/commonjs/components/RoomComponents/styled/LastMessagePhoto.js.map +1 -1
- package/lib/commonjs/components/RoomComponents/styled/LastMessageVideo.js +3 -17
- package/lib/commonjs/components/RoomComponents/styled/LastMessageVideo.js.map +1 -1
- package/lib/commonjs/components/VideoCalls/VideoCallSession.js +3 -6
- package/lib/commonjs/components/VideoCalls/VideoCallSession.js.map +1 -1
- package/lib/commonjs/components/styled/AudioMessage.js +1 -2
- package/lib/commonjs/components/styled/AudioMessage.js.map +1 -1
- package/lib/commonjs/components/styled/DateLabel.js +10 -3
- package/lib/commonjs/components/styled/DateLabel.js.map +1 -1
- package/lib/commonjs/components/styled/MessageImage.js +9 -37
- package/lib/commonjs/components/styled/MessageImage.js.map +1 -1
- package/lib/commonjs/components/styled/NewMessageLabel.js +3 -1
- package/lib/commonjs/components/styled/NewMessageLabel.js.map +1 -1
- package/lib/commonjs/components/styled/SendInput.js +17 -86
- package/lib/commonjs/components/styled/SendInput.js.map +1 -1
- package/lib/commonjs/components/styled/StyledComponents.js +3 -9
- package/lib/commonjs/components/styled/StyledComponents.js.map +1 -1
- package/lib/commonjs/components/styled/StyledInputComponents/StyledInputComponents.js +4 -11
- package/lib/commonjs/components/styled/StyledInputComponents/StyledInputComponents.js.map +1 -1
- package/lib/commonjs/components/styled/UnsupportedType.js +4 -14
- package/lib/commonjs/components/styled/UnsupportedType.js.map +1 -1
- package/lib/commonjs/components/styled/VideoMessage.js +61 -119
- package/lib/commonjs/components/styled/VideoMessage.js.map +1 -1
- package/lib/commonjs/context/xmppProvider.js +54 -128
- package/lib/commonjs/context/xmppProvider.js.map +1 -1
- package/lib/commonjs/helpers/createMessageFromXml.js +1 -19
- package/lib/commonjs/helpers/createMessageFromXml.js.map +1 -1
- package/lib/commonjs/helpers/ensureScopedChatCache.js +2 -2
- package/lib/commonjs/helpers/ensureScopedChatCache.js.map +1 -1
- package/lib/commonjs/helpers/getDataFromXml.js +24 -1
- package/lib/commonjs/helpers/getDataFromXml.js.map +1 -1
- package/lib/commonjs/helpers/historyPreloadScheduler.js +2 -65
- package/lib/commonjs/helpers/historyPreloadScheduler.js.map +1 -1
- package/lib/commonjs/helpers/initXmppRooms.js +8 -14
- package/lib/commonjs/helpers/initXmppRooms.js.map +1 -1
- package/lib/commonjs/helpers/insertMessageWithDelimiter.js +13 -0
- package/lib/commonjs/helpers/insertMessageWithDelimiter.js.map +1 -1
- package/lib/commonjs/helpers/isUnresolvedSenderId.js +6 -1
- package/lib/commonjs/helpers/isUnresolvedSenderId.js.map +1 -1
- package/lib/commonjs/helpers/mimeToExtension.js +14 -6
- package/lib/commonjs/helpers/mimeToExtension.js.map +1 -1
- package/lib/commonjs/helpers/resolveInitBeforeLoadUser.js +17 -130
- package/lib/commonjs/helpers/resolveInitBeforeLoadUser.js.map +1 -1
- package/lib/commonjs/helpers/resolveLangSource.js +38 -0
- package/lib/commonjs/helpers/resolveLangSource.js.map +1 -0
- package/lib/commonjs/helpers/xmppUsername.js +39 -0
- package/lib/commonjs/helpers/xmppUsername.js.map +1 -0
- package/lib/commonjs/hooks/useChatRoomFocus.js +8 -17
- package/lib/commonjs/hooks/useChatRoomFocus.js.map +1 -1
- package/lib/commonjs/hooks/useChatWrapperInit.js +14 -32
- package/lib/commonjs/hooks/useChatWrapperInit.js.map +1 -1
- package/lib/commonjs/hooks/useComposing.js +0 -27
- package/lib/commonjs/hooks/useComposing.js.map +1 -1
- package/lib/commonjs/hooks/useLogout.js +7 -15
- package/lib/commonjs/hooks/useLogout.js.map +1 -1
- package/lib/commonjs/hooks/usePendingNotification.js +11 -8
- package/lib/commonjs/hooks/usePendingNotification.js.map +1 -1
- package/lib/commonjs/hooks/useSendMessage.js +14 -50
- package/lib/commonjs/hooks/useSendMessage.js.map +1 -1
- package/lib/commonjs/hooks/useUnreadMessagesCounter.js +1 -6
- package/lib/commonjs/hooks/useUnreadMessagesCounter.js.map +1 -1
- package/lib/commonjs/i18n/strings.js +133 -121
- package/lib/commonjs/i18n/strings.js.map +1 -1
- package/lib/commonjs/i18n/useT.js +1 -1
- package/lib/commonjs/main.js +0 -44
- package/lib/commonjs/main.js.map +1 -1
- package/lib/commonjs/networking/api-requests/auth.api.js +60 -134
- package/lib/commonjs/networking/api-requests/auth.api.js.map +1 -1
- package/lib/commonjs/networking/api-requests/roomMembers.api.js +1 -1
- package/lib/commonjs/networking/api-requests/roomMembers.api.js.map +1 -1
- package/lib/commonjs/networking/api-requests/rooms.api.js +9 -9
- package/lib/commonjs/networking/api-requests/rooms.api.js.map +1 -1
- package/lib/commonjs/networking/api-requests/user.api.js +9 -68
- package/lib/commonjs/networking/api-requests/user.api.js.map +1 -1
- package/lib/commonjs/networking/apiClient.js +112 -62
- package/lib/commonjs/networking/apiClient.js.map +1 -1
- package/lib/commonjs/networking/stanzaHandlers.js +51 -93
- package/lib/commonjs/networking/stanzaHandlers.js.map +1 -1
- package/lib/commonjs/networking/xmpp/flushLastViewedToPrivateStore.js +8 -46
- package/lib/commonjs/networking/xmpp/flushLastViewedToPrivateStore.js.map +1 -1
- package/lib/commonjs/networking/xmpp/presenceInRoom.xmpp.js +1 -8
- package/lib/commonjs/networking/xmpp/presenceInRoom.xmpp.js.map +1 -1
- package/lib/commonjs/networking/xmpp/subscribeToRoomMessages.xmpp.js +1 -5
- package/lib/commonjs/networking/xmpp/subscribeToRoomMessages.xmpp.js.map +1 -1
- package/lib/commonjs/networking/xmppClient.js +8 -124
- package/lib/commonjs/networking/xmppClient.js.map +1 -1
- package/lib/commonjs/roomStore/chatSettingsSlice.js +7 -26
- package/lib/commonjs/roomStore/chatSettingsSlice.js.map +1 -1
- package/lib/commonjs/roomStore/index.js +2 -35
- package/lib/commonjs/roomStore/index.js.map +1 -1
- package/lib/commonjs/roomStore/persistence.js +39 -226
- package/lib/commonjs/roomStore/persistence.js.map +1 -1
- package/lib/commonjs/roomStore/roomsSlice.js +8 -87
- package/lib/commonjs/roomStore/roomsSlice.js.map +1 -1
- package/lib/commonjs/services/pushSubscriptionService.js +13 -15
- package/lib/commonjs/services/pushSubscriptionService.js.map +1 -1
- package/lib/commonjs/version.js +3 -1
- package/lib/commonjs/version.js.map +1 -1
- package/lib/module/assets/icons.js +1 -6
- package/lib/module/assets/icons.js.map +1 -1
- package/lib/module/components/AuthForms/Login.js +4 -4
- package/lib/module/components/AuthForms/Login.js.map +1 -1
- package/lib/module/components/Header/HeaderRoomList.js +7 -26
- package/lib/module/components/Header/HeaderRoomList.js.map +1 -1
- package/lib/module/components/MainComponents/ChatHeader.js +3 -9
- package/lib/module/components/MainComponents/ChatHeader.js.map +1 -1
- package/lib/module/components/MainComponents/ChatRoom.js +14 -102
- package/lib/module/components/MainComponents/ChatRoom.js.map +1 -1
- package/lib/module/components/MainComponents/ChatWrapper.js +40 -36
- package/lib/module/components/MainComponents/ChatWrapper.js.map +1 -1
- package/lib/module/components/MainComponents/LoginWrapper.js +1 -2
- package/lib/module/components/MainComponents/LoginWrapper.js.map +1 -1
- package/lib/module/components/MainComponents/MediaMessage.js +10 -30
- package/lib/module/components/MainComponents/MediaMessage.js.map +1 -1
- package/lib/module/components/MainComponents/MessageContainer.js +1 -5
- package/lib/module/components/MainComponents/MessageContainer.js.map +1 -1
- package/lib/module/components/MainComponents/MessageList.js +5 -13
- package/lib/module/components/MainComponents/MessageList.js.map +1 -1
- package/lib/module/components/MainComponents/ProfileImagePlaceholder.js +13 -14
- package/lib/module/components/MainComponents/ProfileImagePlaceholder.js.map +1 -1
- package/lib/module/components/MainComponents/ReduxWrapper.js +26 -5
- package/lib/module/components/MainComponents/ReduxWrapper.js.map +1 -1
- package/lib/module/components/MainComponents/RoomList.js +35 -207
- package/lib/module/components/MainComponents/RoomList.js.map +1 -1
- package/lib/module/components/Menu/HeaderRoomListMenu.js +101 -319
- package/lib/module/components/Menu/HeaderRoomListMenu.js.map +1 -1
- package/lib/module/components/MessageBubble/MessageTranslate.js +16 -7
- package/lib/module/components/MessageBubble/MessageTranslate.js.map +1 -1
- package/lib/module/components/Modals/AttachSheet/AttachSheet.js +115 -311
- package/lib/module/components/Modals/AttachSheet/AttachSheet.js.map +1 -1
- package/lib/module/components/Modals/ChatProfileModal/ChatProfileModal.js +219 -559
- package/lib/module/components/Modals/ChatProfileModal/ChatProfileModal.js.map +1 -1
- package/lib/module/components/Modals/ChatProfileModal/DeleteChatModal.js +9 -7
- package/lib/module/components/Modals/ChatProfileModal/DeleteChatModal.js.map +1 -1
- package/lib/module/components/Modals/FilePreviewModal/FilePreviewModal.js +28 -70
- package/lib/module/components/Modals/FilePreviewModal/FilePreviewModal.js.map +1 -1
- package/lib/module/components/Modals/FilePreviewModal/PdfView.js +1 -2
- package/lib/module/components/Modals/FilePreviewModal/PdfView.js.map +1 -1
- package/lib/module/components/Modals/Modal/Modal.js +1 -9
- package/lib/module/components/Modals/Modal/Modal.js.map +1 -1
- package/lib/module/components/Modals/NewChatModal/ModalContent.js +1 -2
- package/lib/module/components/Modals/NewChatModal/ModalContent.js.map +1 -1
- package/lib/module/components/Modals/NewChatModal/NewChatModal.js +111 -208
- package/lib/module/components/Modals/NewChatModal/NewChatModal.js.map +1 -1
- package/lib/module/components/Modals/NewChatModal/UpdNewChatModal.js +0 -8
- package/lib/module/components/Modals/NewChatModal/UpdNewChatModal.js.map +1 -1
- package/lib/module/components/Modals/SelectUsersModal/SelectUsersModal.js +2 -4
- package/lib/module/components/Modals/SelectUsersModal/SelectUsersModal.js.map +1 -1
- package/lib/module/components/Modals/UserProfileModal/EditUserModal.js +23 -9
- package/lib/module/components/Modals/UserProfileModal/EditUserModal.js.map +1 -1
- package/lib/module/components/Modals/UserProfileModal/UserProfileModal.js +248 -509
- package/lib/module/components/Modals/UserProfileModal/UserProfileModal.js.map +1 -1
- package/lib/module/components/Modals/UserSettingsModal/UserSettingsModal.js +48 -76
- package/lib/module/components/Modals/UserSettingsModal/UserSettingsModal.js.map +1 -1
- package/lib/module/components/Modals/styledModalComponents.js +2 -9
- package/lib/module/components/Modals/styledModalComponents.js.map +1 -1
- package/lib/module/components/RoomComponents/ChatRoomItem.js +40 -24
- package/lib/module/components/RoomComponents/ChatRoomItem.js.map +1 -1
- package/lib/module/components/RoomComponents/styled/LastMessageFile.js +3 -22
- package/lib/module/components/RoomComponents/styled/LastMessageFile.js.map +1 -1
- package/lib/module/components/RoomComponents/styled/LastMessagePhoto.js +3 -17
- package/lib/module/components/RoomComponents/styled/LastMessagePhoto.js.map +1 -1
- package/lib/module/components/RoomComponents/styled/LastMessageVideo.js +3 -17
- package/lib/module/components/RoomComponents/styled/LastMessageVideo.js.map +1 -1
- package/lib/module/components/VideoCalls/VideoCallSession.js +3 -6
- package/lib/module/components/VideoCalls/VideoCallSession.js.map +1 -1
- package/lib/module/components/styled/AudioMessage.js +1 -2
- package/lib/module/components/styled/AudioMessage.js.map +1 -1
- package/lib/module/components/styled/DateLabel.js +10 -3
- package/lib/module/components/styled/DateLabel.js.map +1 -1
- package/lib/module/components/styled/MessageImage.js +9 -37
- package/lib/module/components/styled/MessageImage.js.map +1 -1
- package/lib/module/components/styled/NewMessageLabel.js +3 -1
- package/lib/module/components/styled/NewMessageLabel.js.map +1 -1
- package/lib/module/components/styled/SendInput.js +18 -87
- package/lib/module/components/styled/SendInput.js.map +1 -1
- package/lib/module/components/styled/StyledComponents.js +3 -9
- package/lib/module/components/styled/StyledComponents.js.map +1 -1
- package/lib/module/components/styled/StyledInputComponents/StyledInputComponents.js +4 -11
- package/lib/module/components/styled/StyledInputComponents/StyledInputComponents.js.map +1 -1
- package/lib/module/components/styled/UnsupportedType.js +4 -14
- package/lib/module/components/styled/UnsupportedType.js.map +1 -1
- package/lib/module/components/styled/VideoMessage.js +62 -120
- package/lib/module/components/styled/VideoMessage.js.map +1 -1
- package/lib/module/context/xmppProvider.js +55 -128
- package/lib/module/context/xmppProvider.js.map +1 -1
- package/lib/module/helpers/createMessageFromXml.js +1 -19
- package/lib/module/helpers/createMessageFromXml.js.map +1 -1
- package/lib/module/helpers/ensureScopedChatCache.js +2 -2
- package/lib/module/helpers/ensureScopedChatCache.js.map +1 -1
- package/lib/module/helpers/getDataFromXml.js +23 -1
- package/lib/module/helpers/getDataFromXml.js.map +1 -1
- package/lib/module/helpers/historyPreloadScheduler.js +3 -66
- package/lib/module/helpers/historyPreloadScheduler.js.map +1 -1
- package/lib/module/helpers/initXmppRooms.js +8 -14
- package/lib/module/helpers/initXmppRooms.js.map +1 -1
- package/lib/module/helpers/insertMessageWithDelimiter.js +13 -0
- package/lib/module/helpers/insertMessageWithDelimiter.js.map +1 -1
- package/lib/module/helpers/isUnresolvedSenderId.js +6 -1
- package/lib/module/helpers/isUnresolvedSenderId.js.map +1 -1
- package/lib/module/helpers/mimeToExtension.js +13 -6
- package/lib/module/helpers/mimeToExtension.js.map +1 -1
- package/lib/module/helpers/resolveInitBeforeLoadUser.js +16 -130
- package/lib/module/helpers/resolveInitBeforeLoadUser.js.map +1 -1
- package/lib/module/helpers/resolveLangSource.js +32 -0
- package/lib/module/helpers/resolveLangSource.js.map +1 -0
- package/lib/module/helpers/xmppUsername.js +35 -0
- package/lib/module/helpers/xmppUsername.js.map +1 -0
- package/lib/module/hooks/useChatRoomFocus.js +8 -17
- package/lib/module/hooks/useChatRoomFocus.js.map +1 -1
- package/lib/module/hooks/useChatWrapperInit.js +14 -32
- package/lib/module/hooks/useChatWrapperInit.js.map +1 -1
- package/lib/module/hooks/useComposing.js +1 -28
- package/lib/module/hooks/useComposing.js.map +1 -1
- package/lib/module/hooks/useLogout.js +7 -15
- package/lib/module/hooks/useLogout.js.map +1 -1
- package/lib/module/hooks/usePendingNotification.js +11 -8
- package/lib/module/hooks/usePendingNotification.js.map +1 -1
- package/lib/module/hooks/useSendMessage.js +16 -52
- package/lib/module/hooks/useSendMessage.js.map +1 -1
- package/lib/module/hooks/useUnreadMessagesCounter.js +1 -6
- package/lib/module/hooks/useUnreadMessagesCounter.js.map +1 -1
- package/lib/module/i18n/strings.js +133 -121
- package/lib/module/i18n/strings.js.map +1 -1
- package/lib/module/i18n/useT.js +1 -1
- package/lib/module/main.js +2 -14
- package/lib/module/main.js.map +1 -1
- package/lib/module/networking/api-requests/auth.api.js +59 -131
- package/lib/module/networking/api-requests/auth.api.js.map +1 -1
- package/lib/module/networking/api-requests/roomMembers.api.js +1 -1
- package/lib/module/networking/api-requests/roomMembers.api.js.map +1 -1
- package/lib/module/networking/api-requests/rooms.api.js +9 -9
- package/lib/module/networking/api-requests/rooms.api.js.map +1 -1
- package/lib/module/networking/api-requests/user.api.js +7 -64
- package/lib/module/networking/api-requests/user.api.js.map +1 -1
- package/lib/module/networking/apiClient.js +113 -61
- package/lib/module/networking/apiClient.js.map +1 -1
- package/lib/module/networking/stanzaHandlers.js +52 -94
- package/lib/module/networking/stanzaHandlers.js.map +1 -1
- package/lib/module/networking/xmpp/flushLastViewedToPrivateStore.js +8 -46
- package/lib/module/networking/xmpp/flushLastViewedToPrivateStore.js.map +1 -1
- package/lib/module/networking/xmpp/presenceInRoom.xmpp.js +1 -8
- package/lib/module/networking/xmpp/presenceInRoom.xmpp.js.map +1 -1
- package/lib/module/networking/xmpp/subscribeToRoomMessages.xmpp.js +1 -5
- package/lib/module/networking/xmpp/subscribeToRoomMessages.xmpp.js.map +1 -1
- package/lib/module/networking/xmppClient.js +8 -124
- package/lib/module/networking/xmppClient.js.map +1 -1
- package/lib/module/roomStore/chatSettingsSlice.js +7 -26
- package/lib/module/roomStore/chatSettingsSlice.js.map +1 -1
- package/lib/module/roomStore/index.js +4 -37
- package/lib/module/roomStore/index.js.map +1 -1
- package/lib/module/roomStore/persistence.js +38 -223
- package/lib/module/roomStore/persistence.js.map +1 -1
- package/lib/module/roomStore/roomsSlice.js +7 -86
- package/lib/module/roomStore/roomsSlice.js.map +1 -1
- package/lib/module/services/pushSubscriptionService.js +13 -15
- package/lib/module/services/pushSubscriptionService.js.map +1 -1
- package/lib/module/version.js +3 -1
- package/lib/module/version.js.map +1 -1
- package/lib/typescript/assets/icons.d.ts +0 -16
- package/lib/typescript/assets/icons.d.ts.map +1 -1
- package/lib/typescript/components/AuthForms/Login.d.ts.map +1 -1
- package/lib/typescript/components/Header/HeaderRoomList.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/ChatHeader.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/ChatRoom.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/ChatWrapper.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/LoginWrapper.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/MediaMessage.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/MessageContainer.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/MessageList.d.ts +1 -10
- package/lib/typescript/components/MainComponents/MessageList.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/ProfileImagePlaceholder.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/ReduxWrapper.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/RoomList.d.ts +0 -7
- package/lib/typescript/components/MainComponents/RoomList.d.ts.map +1 -1
- package/lib/typescript/components/Menu/HeaderRoomListMenu.d.ts +0 -3
- package/lib/typescript/components/Menu/HeaderRoomListMenu.d.ts.map +1 -1
- package/lib/typescript/components/MessageBubble/MessageTranslate.d.ts.map +1 -1
- package/lib/typescript/components/Modals/AttachSheet/AttachSheet.d.ts +0 -9
- package/lib/typescript/components/Modals/AttachSheet/AttachSheet.d.ts.map +1 -1
- package/lib/typescript/components/Modals/ChatProfileModal/ChatProfileModal.d.ts +0 -10
- package/lib/typescript/components/Modals/ChatProfileModal/ChatProfileModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/ChatProfileModal/DeleteChatModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/FilePreviewModal/FilePreviewModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/FilePreviewModal/PdfView.d.ts.map +1 -1
- package/lib/typescript/components/Modals/Modal/Modal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/NewChatModal/ModalContent.d.ts +2 -4
- package/lib/typescript/components/Modals/NewChatModal/ModalContent.d.ts.map +1 -1
- package/lib/typescript/components/Modals/NewChatModal/NewChatModal.d.ts +1 -1
- package/lib/typescript/components/Modals/NewChatModal/NewChatModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/NewChatModal/UpdNewChatModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/SelectUsersModal/SelectUsersModal.d.ts +1 -6
- package/lib/typescript/components/Modals/SelectUsersModal/SelectUsersModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/UserProfileModal/EditUserModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/UserProfileModal/UserProfileModal.d.ts +0 -16
- package/lib/typescript/components/Modals/UserProfileModal/UserProfileModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/UserSettingsModal/UserSettingsModal.d.ts +0 -1
- package/lib/typescript/components/Modals/UserSettingsModal/UserSettingsModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/styledModalComponents.d.ts.map +1 -1
- package/lib/typescript/components/RoomComponents/ChatRoomItem.d.ts.map +1 -1
- package/lib/typescript/components/RoomComponents/styled/LastMessageFile.d.ts +1 -1
- package/lib/typescript/components/RoomComponents/styled/LastMessageFile.d.ts.map +1 -1
- package/lib/typescript/components/RoomComponents/styled/LastMessagePhoto.d.ts +1 -1
- package/lib/typescript/components/RoomComponents/styled/LastMessagePhoto.d.ts.map +1 -1
- package/lib/typescript/components/RoomComponents/styled/LastMessageVideo.d.ts +1 -1
- package/lib/typescript/components/RoomComponents/styled/LastMessageVideo.d.ts.map +1 -1
- package/lib/typescript/components/VideoCalls/VideoCallSession.d.ts.map +1 -1
- package/lib/typescript/components/styled/AudioMessage.d.ts.map +1 -1
- package/lib/typescript/components/styled/DateLabel.d.ts.map +1 -1
- package/lib/typescript/components/styled/MessageImage.d.ts +0 -14
- package/lib/typescript/components/styled/MessageImage.d.ts.map +1 -1
- package/lib/typescript/components/styled/NewMessageLabel.d.ts.map +1 -1
- package/lib/typescript/components/styled/SendInput.d.ts.map +1 -1
- package/lib/typescript/components/styled/StyledComponents.d.ts.map +1 -1
- package/lib/typescript/components/styled/StyledInputComponents/StyledInputComponents.d.ts.map +1 -1
- package/lib/typescript/components/styled/UnsupportedType.d.ts.map +1 -1
- package/lib/typescript/components/styled/VideoMessage.d.ts +0 -8
- package/lib/typescript/components/styled/VideoMessage.d.ts.map +1 -1
- package/lib/typescript/context/xmppProvider.d.ts.map +1 -1
- package/lib/typescript/helpers/createMessageFromXml.d.ts.map +1 -1
- package/lib/typescript/helpers/getDataFromXml.d.ts.map +1 -1
- package/lib/typescript/helpers/historyPreloadScheduler.d.ts.map +1 -1
- package/lib/typescript/helpers/initXmppRooms.d.ts.map +1 -1
- package/lib/typescript/helpers/insertMessageWithDelimiter.d.ts.map +1 -1
- package/lib/typescript/helpers/isUnresolvedSenderId.d.ts.map +1 -1
- package/lib/typescript/helpers/mimeToExtension.d.ts +15 -0
- package/lib/typescript/helpers/mimeToExtension.d.ts.map +1 -1
- package/lib/typescript/helpers/resolveInitBeforeLoadUser.d.ts.map +1 -1
- package/lib/typescript/helpers/resolveLangSource.d.ts +30 -0
- package/lib/typescript/helpers/resolveLangSource.d.ts.map +1 -0
- package/lib/typescript/helpers/xmppUsername.d.ts +13 -0
- package/lib/typescript/helpers/xmppUsername.d.ts.map +1 -0
- package/lib/typescript/hooks/useChatRoomFocus.d.ts +1 -4
- package/lib/typescript/hooks/useChatRoomFocus.d.ts.map +1 -1
- package/lib/typescript/hooks/useChatWrapperInit.d.ts.map +1 -1
- package/lib/typescript/hooks/useComposing.d.ts.map +1 -1
- package/lib/typescript/hooks/useLogout.d.ts.map +1 -1
- package/lib/typescript/hooks/usePendingNotification.d.ts.map +1 -1
- package/lib/typescript/hooks/useSendMessage.d.ts.map +1 -1
- package/lib/typescript/hooks/useUnreadMessagesCounter.d.ts +0 -1
- package/lib/typescript/hooks/useUnreadMessagesCounter.d.ts.map +1 -1
- package/lib/typescript/i18n/strings.d.ts.map +1 -1
- package/lib/typescript/i18n/useT.d.ts +1 -1
- package/lib/typescript/main.d.ts +2 -9
- package/lib/typescript/main.d.ts.map +1 -1
- package/lib/typescript/networking/api-requests/auth.api.d.ts +1 -3
- package/lib/typescript/networking/api-requests/auth.api.d.ts.map +1 -1
- package/lib/typescript/networking/api-requests/user.api.d.ts +0 -27
- package/lib/typescript/networking/api-requests/user.api.d.ts.map +1 -1
- package/lib/typescript/networking/apiClient.d.ts +6 -12
- package/lib/typescript/networking/apiClient.d.ts.map +1 -1
- package/lib/typescript/networking/stanzaHandlers.d.ts.map +1 -1
- package/lib/typescript/networking/xmpp/flushLastViewedToPrivateStore.d.ts +2 -10
- package/lib/typescript/networking/xmpp/flushLastViewedToPrivateStore.d.ts.map +1 -1
- package/lib/typescript/networking/xmpp/presenceInRoom.xmpp.d.ts.map +1 -1
- package/lib/typescript/networking/xmpp/subscribeToRoomMessages.xmpp.d.ts.map +1 -1
- package/lib/typescript/networking/xmppClient.d.ts +0 -14
- package/lib/typescript/networking/xmppClient.d.ts.map +1 -1
- package/lib/typescript/roomStore/chatSettingsSlice.d.ts +0 -16
- package/lib/typescript/roomStore/chatSettingsSlice.d.ts.map +1 -1
- package/lib/typescript/roomStore/index.d.ts.map +1 -1
- package/lib/typescript/roomStore/persistence.d.ts +1 -18
- package/lib/typescript/roomStore/persistence.d.ts.map +1 -1
- package/lib/typescript/roomStore/roomsSlice.d.ts +1 -14
- package/lib/typescript/roomStore/roomsSlice.d.ts.map +1 -1
- package/lib/typescript/services/pushSubscriptionService.d.ts +1 -1
- package/lib/typescript/services/pushSubscriptionService.d.ts.map +1 -1
- package/lib/typescript/types/types.d.ts +5 -49
- package/lib/typescript/types/types.d.ts.map +1 -1
- package/lib/typescript/version.d.ts +1 -1
- package/lib/typescript/version.d.ts.map +1 -1
- package/package.json +29 -41
- package/src/assets/icons.tsx +9 -48
- package/src/components/AuthForms/Login.tsx +3 -3
- package/src/components/Header/HeaderRoomList.tsx +6 -24
- package/src/components/MainComponents/ChatHeader.tsx +3 -9
- package/src/components/MainComponents/ChatRoom.tsx +16 -111
- package/src/components/MainComponents/ChatWrapper.tsx +53 -36
- package/src/components/MainComponents/LoginWrapper.tsx +0 -1
- package/src/components/MainComponents/MediaMessage.tsx +8 -26
- package/src/components/MainComponents/MessageContainer.tsx +1 -5
- package/src/components/MainComponents/MessageList.tsx +4 -23
- package/src/components/MainComponents/ProfileImagePlaceholder.tsx +14 -21
- package/src/components/MainComponents/ReduxWrapper.tsx +18 -1
- package/src/components/MainComponents/RoomList.tsx +39 -236
- package/src/components/Menu/HeaderRoomListMenu.tsx +75 -328
- package/src/components/MessageBubble/MessageTranslate.tsx +17 -12
- package/src/components/Modals/AttachSheet/AttachSheet.tsx +99 -331
- package/src/components/Modals/ChatProfileModal/ChatProfileModal.tsx +293 -611
- package/src/components/Modals/ChatProfileModal/DeleteChatModal.tsx +9 -7
- package/src/components/Modals/FilePreviewModal/FilePreviewModal.tsx +38 -79
- package/src/components/Modals/FilePreviewModal/PdfView.tsx +1 -2
- package/src/components/Modals/Modal/Modal.tsx +0 -7
- package/src/components/Modals/NewChatModal/ModalContent.tsx +3 -6
- package/src/components/Modals/NewChatModal/NewChatModal.tsx +126 -223
- package/src/components/Modals/NewChatModal/UpdNewChatModal.tsx +1 -12
- package/src/components/Modals/SelectUsersModal/SelectUsersModal.tsx +4 -14
- package/src/components/Modals/UserProfileModal/EditUserModal.tsx +25 -9
- package/src/components/Modals/UserProfileModal/UserProfileModal.tsx +307 -617
- package/src/components/Modals/UserSettingsModal/UserSettingsModal.tsx +58 -75
- package/src/components/Modals/styledModalComponents.tsx +2 -9
- package/src/components/RoomComponents/ChatRoomItem.tsx +50 -21
- package/src/components/RoomComponents/styled/LastMessageFile.tsx +4 -28
- package/src/components/RoomComponents/styled/LastMessagePhoto.tsx +3 -18
- package/src/components/RoomComponents/styled/LastMessageVideo.tsx +3 -18
- package/src/components/VideoCalls/VideoCallSession.tsx +3 -8
- package/src/components/styled/AudioMessage.tsx +1 -2
- package/src/components/styled/DateLabel.tsx +10 -3
- package/src/components/styled/MessageImage.tsx +7 -53
- package/src/components/styled/NewMessageLabel.tsx +3 -1
- package/src/components/styled/SendInput.tsx +18 -91
- package/src/components/styled/StyledComponents.ts +3 -9
- package/src/components/styled/StyledInputComponents/StyledInputComponents.tsx +4 -11
- package/src/components/styled/UnsupportedType.tsx +4 -14
- package/src/components/styled/VideoMessage.tsx +54 -131
- package/src/context/xmppProvider.tsx +51 -134
- package/src/helpers/createMessageFromXml.ts +1 -20
- package/src/helpers/ensureScopedChatCache.ts +2 -2
- package/src/helpers/getDataFromXml.ts +25 -1
- package/src/helpers/historyPreloadScheduler.ts +3 -80
- package/src/helpers/initXmppRooms.tsx +10 -14
- package/src/helpers/insertMessageWithDelimiter.ts +13 -0
- package/src/helpers/isUnresolvedSenderId.ts +9 -1
- package/src/helpers/mimeToExtension.ts +22 -6
- package/src/helpers/resolveInitBeforeLoadUser.ts +18 -125
- package/src/helpers/resolveLangSource.ts +40 -0
- package/src/helpers/xmppUsername.ts +38 -0
- package/src/hooks/useChatRoomFocus.ts +5 -14
- package/src/hooks/useChatWrapperInit.ts +16 -32
- package/src/hooks/useComposing.tsx +1 -37
- package/src/hooks/useLogout.tsx +9 -15
- package/src/hooks/usePendingNotification.ts +11 -5
- package/src/hooks/useSendMessage.tsx +15 -60
- package/src/hooks/useUnreadMessagesCounter.ts +0 -11
- package/src/i18n/strings.ts +133 -121
- package/src/i18n/useT.ts +1 -1
- package/src/main.ts +2 -26
- package/src/networking/api-requests/auth.api.ts +48 -156
- package/src/networking/api-requests/roomMembers.api.ts +1 -1
- package/src/networking/api-requests/rooms.api.ts +9 -9
- package/src/networking/api-requests/user.api.ts +7 -79
- package/src/networking/apiClient.ts +123 -68
- package/src/networking/stanzaHandlers.ts +51 -92
- package/src/networking/xmpp/flushLastViewedToPrivateStore.ts +10 -71
- package/src/networking/xmpp/presenceInRoom.xmpp.ts +1 -6
- package/src/networking/xmpp/subscribeToRoomMessages.xmpp.ts +1 -12
- package/src/networking/xmppClient.ts +9 -141
- package/src/roomStore/chatSettingsSlice.ts +10 -34
- package/src/roomStore/index.ts +4 -40
- package/src/roomStore/persistence.ts +40 -234
- package/src/roomStore/roomsSlice.ts +7 -87
- package/src/services/pushSubscriptionService.ts +13 -18
- package/src/types/types.ts +5 -58
- package/src/version.ts +3 -1
- package/lib/commonjs/components/Modals/ChatProfileModal/ReportChatModal.js +0 -226
- package/lib/commonjs/components/Modals/ChatProfileModal/ReportChatModal.js.map +0 -1
- package/lib/commonjs/components/Modals/ProfileHeader/ProfileHeader.js +0 -556
- package/lib/commonjs/components/Modals/ProfileHeader/ProfileHeader.js.map +0 -1
- package/lib/commonjs/components/Modals/ProfileHeader/ProfileMenu.js +0 -210
- package/lib/commonjs/components/Modals/ProfileHeader/ProfileMenu.js.map +0 -1
- package/lib/commonjs/helpers/getChatBackground.js +0 -23
- package/lib/commonjs/helpers/getChatBackground.js.map +0 -1
- package/lib/commonjs/helpers/getDisplayFileName.js +0 -79
- package/lib/commonjs/helpers/getDisplayFileName.js.map +0 -1
- package/lib/commonjs/helpers/getServerReadTimestamp.js +0 -125
- package/lib/commonjs/helpers/getServerReadTimestamp.js.map +0 -1
- package/lib/commonjs/helpers/isOwnMessage.js +0 -75
- package/lib/commonjs/helpers/isOwnMessage.js.map +0 -1
- package/lib/commonjs/helpers/mediaLibraryRuntime.js +0 -31
- package/lib/commonjs/helpers/mediaLibraryRuntime.js.map +0 -1
- package/lib/commonjs/helpers/persistCrypto.js +0 -122
- package/lib/commonjs/helpers/persistCrypto.js.map +0 -1
- package/lib/commonjs/helpers/pickImageAsset.js +0 -68
- package/lib/commonjs/helpers/pickImageAsset.js.map +0 -1
- package/lib/commonjs/helpers/pushPayload.js +0 -71
- package/lib/commonjs/helpers/pushPayload.js.map +0 -1
- package/lib/commonjs/helpers/secureFileUrl.js +0 -101
- package/lib/commonjs/helpers/secureFileUrl.js.map +0 -1
- package/lib/commonjs/helpers/secureKeyValue.js +0 -83
- package/lib/commonjs/helpers/secureKeyValue.js.map +0 -1
- package/lib/commonjs/helpers/secureStoreRuntime.js +0 -59
- package/lib/commonjs/helpers/secureStoreRuntime.js.map +0 -1
- package/lib/commonjs/helpers/secureUserStorage.js +0 -75
- package/lib/commonjs/helpers/secureUserStorage.js.map +0 -1
- package/lib/commonjs/helpers/shallowEqual.js +0 -36
- package/lib/commonjs/helpers/shallowEqual.js.map +0 -1
- package/lib/commonjs/helpers/sheetGestures.js +0 -32
- package/lib/commonjs/helpers/sheetGestures.js.map +0 -1
- package/lib/commonjs/hooks/useFileToken.js +0 -10
- package/lib/commonjs/hooks/useFileToken.js.map +0 -1
- package/lib/commonjs/networking/authRefresh.js +0 -332
- package/lib/commonjs/networking/authRefresh.js.map +0 -1
- package/lib/module/components/Modals/ChatProfileModal/ReportChatModal.js +0 -223
- package/lib/module/components/Modals/ChatProfileModal/ReportChatModal.js.map +0 -1
- package/lib/module/components/Modals/ProfileHeader/ProfileHeader.js +0 -548
- package/lib/module/components/Modals/ProfileHeader/ProfileHeader.js.map +0 -1
- package/lib/module/components/Modals/ProfileHeader/ProfileMenu.js +0 -205
- package/lib/module/components/Modals/ProfileHeader/ProfileMenu.js.map +0 -1
- package/lib/module/helpers/getChatBackground.js +0 -18
- package/lib/module/helpers/getChatBackground.js.map +0 -1
- package/lib/module/helpers/getDisplayFileName.js +0 -73
- package/lib/module/helpers/getDisplayFileName.js.map +0 -1
- package/lib/module/helpers/getServerReadTimestamp.js +0 -120
- package/lib/module/helpers/getServerReadTimestamp.js.map +0 -1
- package/lib/module/helpers/isOwnMessage.js +0 -70
- package/lib/module/helpers/isOwnMessage.js.map +0 -1
- package/lib/module/helpers/mediaLibraryRuntime.js +0 -25
- package/lib/module/helpers/mediaLibraryRuntime.js.map +0 -1
- package/lib/module/helpers/persistCrypto.js +0 -115
- package/lib/module/helpers/persistCrypto.js.map +0 -1
- package/lib/module/helpers/pickImageAsset.js +0 -63
- package/lib/module/helpers/pickImageAsset.js.map +0 -1
- package/lib/module/helpers/pushPayload.js +0 -63
- package/lib/module/helpers/pushPayload.js.map +0 -1
- package/lib/module/helpers/secureFileUrl.js +0 -91
- package/lib/module/helpers/secureFileUrl.js.map +0 -1
- package/lib/module/helpers/secureKeyValue.js +0 -75
- package/lib/module/helpers/secureKeyValue.js.map +0 -1
- package/lib/module/helpers/secureStoreRuntime.js +0 -52
- package/lib/module/helpers/secureStoreRuntime.js.map +0 -1
- package/lib/module/helpers/secureUserStorage.js +0 -72
- package/lib/module/helpers/secureUserStorage.js.map +0 -1
- package/lib/module/helpers/shallowEqual.js +0 -31
- package/lib/module/helpers/shallowEqual.js.map +0 -1
- package/lib/module/helpers/sheetGestures.js +0 -26
- package/lib/module/helpers/sheetGestures.js.map +0 -1
- package/lib/module/hooks/useFileToken.js +0 -5
- package/lib/module/hooks/useFileToken.js.map +0 -1
- package/lib/module/networking/authRefresh.js +0 -321
- package/lib/module/networking/authRefresh.js.map +0 -1
- package/lib/typescript/components/Modals/ChatProfileModal/ReportChatModal.d.ts +0 -9
- package/lib/typescript/components/Modals/ChatProfileModal/ReportChatModal.d.ts.map +0 -1
- package/lib/typescript/components/Modals/ProfileHeader/ProfileHeader.d.ts +0 -75
- package/lib/typescript/components/Modals/ProfileHeader/ProfileHeader.d.ts.map +0 -1
- package/lib/typescript/components/Modals/ProfileHeader/ProfileMenu.d.ts +0 -25
- package/lib/typescript/components/Modals/ProfileHeader/ProfileMenu.d.ts.map +0 -1
- package/lib/typescript/helpers/getChatBackground.d.ts +0 -15
- package/lib/typescript/helpers/getChatBackground.d.ts.map +0 -1
- package/lib/typescript/helpers/getDisplayFileName.d.ts +0 -49
- package/lib/typescript/helpers/getDisplayFileName.d.ts.map +0 -1
- package/lib/typescript/helpers/getServerReadTimestamp.d.ts +0 -69
- package/lib/typescript/helpers/getServerReadTimestamp.d.ts.map +0 -1
- package/lib/typescript/helpers/isOwnMessage.d.ts +0 -36
- package/lib/typescript/helpers/isOwnMessage.d.ts.map +0 -1
- package/lib/typescript/helpers/mediaLibraryRuntime.d.ts +0 -3
- package/lib/typescript/helpers/mediaLibraryRuntime.d.ts.map +0 -1
- package/lib/typescript/helpers/persistCrypto.d.ts +0 -13
- package/lib/typescript/helpers/persistCrypto.d.ts.map +0 -1
- package/lib/typescript/helpers/pickImageAsset.d.ts +0 -27
- package/lib/typescript/helpers/pickImageAsset.d.ts.map +0 -1
- package/lib/typescript/helpers/pushPayload.d.ts +0 -7
- package/lib/typescript/helpers/pushPayload.d.ts.map +0 -1
- package/lib/typescript/helpers/secureFileUrl.d.ts +0 -7
- package/lib/typescript/helpers/secureFileUrl.d.ts.map +0 -1
- package/lib/typescript/helpers/secureKeyValue.d.ts +0 -13
- package/lib/typescript/helpers/secureKeyValue.d.ts.map +0 -1
- package/lib/typescript/helpers/secureStoreRuntime.d.ts +0 -29
- package/lib/typescript/helpers/secureStoreRuntime.d.ts.map +0 -1
- package/lib/typescript/helpers/secureUserStorage.d.ts +0 -23
- package/lib/typescript/helpers/secureUserStorage.d.ts.map +0 -1
- package/lib/typescript/helpers/shallowEqual.d.ts +0 -11
- package/lib/typescript/helpers/shallowEqual.d.ts.map +0 -1
- package/lib/typescript/helpers/sheetGestures.d.ts +0 -20
- package/lib/typescript/helpers/sheetGestures.d.ts.map +0 -1
- package/lib/typescript/hooks/useFileToken.d.ts +0 -2
- package/lib/typescript/hooks/useFileToken.d.ts.map +0 -1
- package/lib/typescript/networking/authRefresh.d.ts +0 -95
- package/lib/typescript/networking/authRefresh.d.ts.map +0 -1
- package/src/components/Modals/ChatProfileModal/ReportChatModal.tsx +0 -244
- package/src/components/Modals/ProfileHeader/ProfileHeader.tsx +0 -615
- package/src/components/Modals/ProfileHeader/ProfileMenu.tsx +0 -217
- package/src/helpers/getChatBackground.ts +0 -18
- package/src/helpers/getDisplayFileName.ts +0 -87
- package/src/helpers/getServerReadTimestamp.ts +0 -120
- package/src/helpers/isOwnMessage.ts +0 -90
- package/src/helpers/mediaLibraryRuntime.ts +0 -25
- package/src/helpers/persistCrypto.ts +0 -127
- package/src/helpers/pickImageAsset.ts +0 -68
- package/src/helpers/pushPayload.ts +0 -62
- package/src/helpers/secureFileUrl.ts +0 -103
- package/src/helpers/secureKeyValue.ts +0 -80
- package/src/helpers/secureStoreRuntime.ts +0 -62
- package/src/helpers/secureUserStorage.ts +0 -80
- package/src/helpers/shallowEqual.ts +0 -33
- package/src/helpers/sheetGestures.ts +0 -25
- package/src/hooks/useFileToken.ts +0 -7
- package/src/networking/authRefresh.ts +0 -451
package/src/i18n/strings.ts
CHANGED
|
@@ -15,8 +15,6 @@ export type UiStringTable = Record<string, string>;
|
|
|
15
15
|
|
|
16
16
|
const en: UiStringTable = {
|
|
17
17
|
'search.placeholder': 'Search...',
|
|
18
|
-
'search.members': 'Search members',
|
|
19
|
-
'search.noResults': 'Nobody found',
|
|
20
18
|
'input.placeholder': 'Type message',
|
|
21
19
|
'room.created': 'Room created',
|
|
22
20
|
'room.empty': 'This chat is empty',
|
|
@@ -24,6 +22,8 @@ const en: UiStringTable = {
|
|
|
24
22
|
'date.yesterday': 'Yesterday',
|
|
25
23
|
'message.deleted': 'Message deleted',
|
|
26
24
|
'message.edited': 'edited',
|
|
25
|
+
'message.newMessages': 'New messages',
|
|
26
|
+
'notification.senderFallback': 'New message',
|
|
27
27
|
'presence.online': 'online',
|
|
28
28
|
'presence.offline': 'offline',
|
|
29
29
|
'presence.onlineCount': '{count} online',
|
|
@@ -91,10 +91,20 @@ const en: UiStringTable = {
|
|
|
91
91
|
'action.add': 'Add',
|
|
92
92
|
'action.backToCreation': 'Back to creation',
|
|
93
93
|
'action.report': 'Report',
|
|
94
|
-
'action.
|
|
95
|
-
'action.
|
|
96
|
-
'
|
|
97
|
-
'
|
|
94
|
+
'action.unban': 'Unban',
|
|
95
|
+
'action.openSettings': 'Open Settings',
|
|
96
|
+
'attach.title': 'Attach',
|
|
97
|
+
'attach.takePhoto': 'Take photo',
|
|
98
|
+
'attach.takePhotoHint': 'Capture with the camera',
|
|
99
|
+
'attach.photoOrVideo': 'Photo or video',
|
|
100
|
+
'attach.photoOrVideoHint': 'Pick from your library',
|
|
101
|
+
'attach.document': 'Document',
|
|
102
|
+
'attach.documentHint': 'Choose a file',
|
|
103
|
+
'permission.requiredTitle': 'Permission required',
|
|
104
|
+
'permission.photoLibrary': 'Photo library permission is needed to select images.',
|
|
105
|
+
'permission.camera': 'Camera permission is needed to take photos and videos.',
|
|
106
|
+
'permission.gallery': 'Gallery permission is needed to select photos and videos.',
|
|
107
|
+
'permission.microphone': 'Microphone permission is needed to record voice messages.',
|
|
98
108
|
'status.connecting': 'Connecting…',
|
|
99
109
|
'status.noInternet': 'No internet connection',
|
|
100
110
|
'translation.translating': 'Translating…',
|
|
@@ -106,10 +116,7 @@ const en: UiStringTable = {
|
|
|
106
116
|
'translation.modeManual': 'Manual',
|
|
107
117
|
'language.select': 'Select language',
|
|
108
118
|
'modal.newChat.title': 'Create New Chat',
|
|
109
|
-
'modal.newChat.roomNamePlaceholder': '
|
|
110
|
-
'modal.newChat.descriptionPlaceholder': 'Description (optional)',
|
|
111
|
-
'modal.newChat.createButton': 'Create new chat',
|
|
112
|
-
'modal.newChat.nameTooShort': 'Chat name must be at least 3 characters.',
|
|
119
|
+
'modal.newChat.roomNamePlaceholder': 'Enter Room Name',
|
|
113
120
|
'modal.newChat.chatTypePlaceholder': 'Select chat type',
|
|
114
121
|
'modal.newChat.selectUsersTitle': 'Select users to add to Chat',
|
|
115
122
|
'modal.selectUsers.title': 'Select Users (max 20)',
|
|
@@ -117,8 +124,13 @@ const en: UiStringTable = {
|
|
|
117
124
|
'toast.roomCreationTitle': 'Room creation',
|
|
118
125
|
'toast.roomCreating': 'Room is being created...',
|
|
119
126
|
'toast.success': 'Success!',
|
|
127
|
+
'toast.successTitle': 'Success',
|
|
120
128
|
'toast.roomCreatedSuccess': 'Room created successfully!',
|
|
121
129
|
'toast.usersAddedSuccess': 'Users added successfully!',
|
|
130
|
+
'toast.roomImageUpdated': 'Room image updated successfully',
|
|
131
|
+
'toast.failedToUploadImage': 'Failed to upload image',
|
|
132
|
+
'toast.chatDeletedSuccess': 'Chat deleted successfully',
|
|
133
|
+
'toast.failedToDeleteChat': 'Failed to delete chat',
|
|
122
134
|
'settings.menu.title': 'Settings',
|
|
123
135
|
'modal.filePreview.title': 'File preview',
|
|
124
136
|
'toast.error': 'Error',
|
|
@@ -151,8 +163,6 @@ const en: UiStringTable = {
|
|
|
151
163
|
'action.call': 'Call',
|
|
152
164
|
'action.audioCall': 'Audio call',
|
|
153
165
|
'action.copyUserId': 'Copy User Id',
|
|
154
|
-
'action.account': 'Account',
|
|
155
|
-
'action.share': 'Share',
|
|
156
166
|
'action.deleteChat': 'Delete chat',
|
|
157
167
|
'action.appointAsAdmin': 'Appoint as an admin',
|
|
158
168
|
'action.moreOptions': 'More Options',
|
|
@@ -171,21 +181,13 @@ const en: UiStringTable = {
|
|
|
171
181
|
'auth.anonymousLoginMessage': 'You are logged in anonymously!',
|
|
172
182
|
'modal.profile.title': 'Profile',
|
|
173
183
|
'modal.profile.about': 'About',
|
|
174
|
-
'modal.profile.language': 'Language',
|
|
175
|
-
'modal.profile.media': 'Media',
|
|
176
|
-
'modal.profile.documents': 'Documents',
|
|
177
|
-
'modal.profile.noFiles': 'Nothing here yet',
|
|
178
184
|
'modal.profile.noDescription': 'No description',
|
|
179
185
|
'modal.chatProfile.title': 'Chat Profile',
|
|
180
186
|
'modal.chatProfile.description': 'Description',
|
|
181
187
|
'modal.chatProfile.chatType': 'Chat type',
|
|
182
188
|
'modal.chatProfile.memberCountSingular': '{count} member',
|
|
183
189
|
'modal.chatProfile.memberCountPlural': '{count} members',
|
|
184
|
-
'modal.chatProfile.
|
|
185
|
-
'modal.chatProfile.removePhoto': 'Remove photo',
|
|
186
|
-
'modal.chatProfile.membersLabel': 'Members: {count}',
|
|
187
|
-
'modal.chatProfile.membersUnavailable': 'Member list unavailable',
|
|
188
|
-
'modal.chatProfile.removeMember': 'Remove from this chat?',
|
|
190
|
+
'modal.chatProfile.memberListUnavailable': 'Member list unavailable',
|
|
189
191
|
'modal.deleteChat.title': 'Delete this chat ?',
|
|
190
192
|
'modal.addMembers.title': 'Add New Member',
|
|
191
193
|
'modal.addMembers.userIdPlaceholder': 'Enter User Id',
|
|
@@ -243,8 +245,6 @@ const en: UiStringTable = {
|
|
|
243
245
|
|
|
244
246
|
const fr: UiStringTable = {
|
|
245
247
|
'search.placeholder': 'Rechercher...',
|
|
246
|
-
'search.members': 'Rechercher des membres',
|
|
247
|
-
'search.noResults': 'Personne trouvée',
|
|
248
248
|
'input.placeholder': 'Écrire un message',
|
|
249
249
|
'room.created': 'Salon créé',
|
|
250
250
|
'room.empty': 'Ce salon est vide',
|
|
@@ -252,6 +252,8 @@ const fr: UiStringTable = {
|
|
|
252
252
|
'date.yesterday': 'Hier',
|
|
253
253
|
'message.deleted': 'Message supprimé',
|
|
254
254
|
'message.edited': 'modifié',
|
|
255
|
+
'message.newMessages': 'Nouveaux messages',
|
|
256
|
+
'notification.senderFallback': 'Nouveau message',
|
|
255
257
|
'presence.online': 'en ligne',
|
|
256
258
|
'presence.offline': 'hors ligne',
|
|
257
259
|
'presence.onlineCount': '{count} en ligne',
|
|
@@ -319,10 +321,20 @@ const fr: UiStringTable = {
|
|
|
319
321
|
'action.add': 'Ajouter',
|
|
320
322
|
'action.backToCreation': 'Retour à la création',
|
|
321
323
|
'action.report': 'Signaler',
|
|
322
|
-
'action.
|
|
323
|
-
'action.
|
|
324
|
-
'
|
|
325
|
-
'
|
|
324
|
+
'action.unban': 'Débannir',
|
|
325
|
+
'action.openSettings': 'Ouvrir les réglages',
|
|
326
|
+
'attach.title': 'Joindre',
|
|
327
|
+
'attach.takePhoto': 'Prendre une photo',
|
|
328
|
+
'attach.takePhotoHint': "Capturer avec l'appareil photo",
|
|
329
|
+
'attach.photoOrVideo': 'Photo ou vidéo',
|
|
330
|
+
'attach.photoOrVideoHint': 'Choisir depuis votre bibliothèque',
|
|
331
|
+
'attach.document': 'Document',
|
|
332
|
+
'attach.documentHint': 'Choisir un fichier',
|
|
333
|
+
'permission.requiredTitle': 'Autorisation requise',
|
|
334
|
+
'permission.photoLibrary': "L'autorisation d'accès à la photothèque est nécessaire pour sélectionner des images.",
|
|
335
|
+
'permission.camera': "L'autorisation d'accès à la caméra est nécessaire pour prendre des photos et des vidéos.",
|
|
336
|
+
'permission.gallery': "L'autorisation d'accès à la galerie est nécessaire pour sélectionner des photos et des vidéos.",
|
|
337
|
+
'permission.microphone': "L'autorisation d'accès au microphone est nécessaire pour enregistrer des messages vocaux.",
|
|
326
338
|
'status.connecting': 'Connexion…',
|
|
327
339
|
'status.noInternet': 'Pas de connexion internet',
|
|
328
340
|
'translation.translating': 'Traduction…',
|
|
@@ -335,9 +347,6 @@ const fr: UiStringTable = {
|
|
|
335
347
|
'language.select': 'Choisir la langue',
|
|
336
348
|
'modal.newChat.title': 'Créer une discussion',
|
|
337
349
|
'modal.newChat.roomNamePlaceholder': 'Nom du salon',
|
|
338
|
-
'modal.newChat.descriptionPlaceholder': 'Description (facultatif)',
|
|
339
|
-
'modal.newChat.createButton': 'Créer la discussion',
|
|
340
|
-
'modal.newChat.nameTooShort': 'Le nom doit contenir au moins 3 caractères.',
|
|
341
350
|
'modal.newChat.chatTypePlaceholder': 'Choisir le type de discussion',
|
|
342
351
|
'modal.newChat.selectUsersTitle': 'Sélectionner des utilisateurs à ajouter',
|
|
343
352
|
'modal.selectUsers.title': 'Sélectionner des utilisateurs (max 20)',
|
|
@@ -345,8 +354,13 @@ const fr: UiStringTable = {
|
|
|
345
354
|
'toast.roomCreationTitle': 'Création du salon',
|
|
346
355
|
'toast.roomCreating': 'Le salon est en cours de création...',
|
|
347
356
|
'toast.success': 'Succès !',
|
|
357
|
+
'toast.successTitle': 'Succès',
|
|
348
358
|
'toast.roomCreatedSuccess': 'Salon créé avec succès !',
|
|
349
359
|
'toast.usersAddedSuccess': 'Utilisateurs ajoutés avec succès !',
|
|
360
|
+
'toast.roomImageUpdated': 'Image du salon mise à jour avec succès',
|
|
361
|
+
'toast.failedToUploadImage': "Échec du téléchargement de l'image",
|
|
362
|
+
'toast.chatDeletedSuccess': 'Discussion supprimée avec succès',
|
|
363
|
+
'toast.failedToDeleteChat': 'Échec de la suppression de la discussion',
|
|
350
364
|
'settings.menu.title': 'Paramètres',
|
|
351
365
|
'modal.filePreview.title': 'Aperçu du fichier',
|
|
352
366
|
'toast.error': 'Erreur',
|
|
@@ -379,8 +393,6 @@ const fr: UiStringTable = {
|
|
|
379
393
|
'action.call': 'Appeler',
|
|
380
394
|
'action.audioCall': 'Appel audio',
|
|
381
395
|
'action.copyUserId': "Copier l'ID utilisateur",
|
|
382
|
-
'action.account': 'Compte',
|
|
383
|
-
'action.share': 'Partager',
|
|
384
396
|
'action.deleteChat': 'Supprimer la discussion',
|
|
385
397
|
'action.appointAsAdmin': 'Nommer administrateur',
|
|
386
398
|
'action.moreOptions': "Plus d'options",
|
|
@@ -399,21 +411,13 @@ const fr: UiStringTable = {
|
|
|
399
411
|
'auth.anonymousLoginMessage': 'Vous êtes connecté anonymement !',
|
|
400
412
|
'modal.profile.title': 'Profil',
|
|
401
413
|
'modal.profile.about': 'À propos',
|
|
402
|
-
'modal.profile.language': 'Langue',
|
|
403
|
-
'modal.profile.media': 'Médias',
|
|
404
|
-
'modal.profile.documents': 'Documents',
|
|
405
|
-
'modal.profile.noFiles': 'Rien pour le moment',
|
|
406
414
|
'modal.profile.noDescription': 'Aucune description',
|
|
407
415
|
'modal.chatProfile.title': 'Profil de la discussion',
|
|
408
416
|
'modal.chatProfile.description': 'Description',
|
|
409
417
|
'modal.chatProfile.chatType': 'Type de discussion',
|
|
410
418
|
'modal.chatProfile.memberCountSingular': '{count} membre',
|
|
411
419
|
'modal.chatProfile.memberCountPlural': '{count} membres',
|
|
412
|
-
'modal.chatProfile.
|
|
413
|
-
'modal.chatProfile.removePhoto': 'Supprimer la photo',
|
|
414
|
-
'modal.chatProfile.membersLabel': 'Membres : {count}',
|
|
415
|
-
'modal.chatProfile.membersUnavailable': 'Liste des membres indisponible',
|
|
416
|
-
'modal.chatProfile.removeMember': 'Retirer de cette discussion ?',
|
|
420
|
+
'modal.chatProfile.memberListUnavailable': 'Liste des membres indisponible',
|
|
417
421
|
'modal.deleteChat.title': 'Supprimer cette discussion ?',
|
|
418
422
|
'modal.addMembers.title': 'Ajouter un nouveau membre',
|
|
419
423
|
'modal.addMembers.userIdPlaceholder': "Entrez l'ID utilisateur",
|
|
@@ -471,8 +475,6 @@ const fr: UiStringTable = {
|
|
|
471
475
|
|
|
472
476
|
const es: UiStringTable = {
|
|
473
477
|
'search.placeholder': 'Buscar...',
|
|
474
|
-
'search.members': 'Buscar miembros',
|
|
475
|
-
'search.noResults': 'No se encontró a nadie',
|
|
476
478
|
'input.placeholder': 'Escribe un mensaje',
|
|
477
479
|
'room.created': 'Sala creada',
|
|
478
480
|
'room.empty': 'Este chat está vacío',
|
|
@@ -480,6 +482,8 @@ const es: UiStringTable = {
|
|
|
480
482
|
'date.yesterday': 'Ayer',
|
|
481
483
|
'message.deleted': 'Mensaje eliminado',
|
|
482
484
|
'message.edited': 'editado',
|
|
485
|
+
'message.newMessages': 'Nuevos mensajes',
|
|
486
|
+
'notification.senderFallback': 'Nuevo mensaje',
|
|
483
487
|
'presence.online': 'en línea',
|
|
484
488
|
'presence.offline': 'desconectado',
|
|
485
489
|
'presence.onlineCount': '{count} en línea',
|
|
@@ -547,10 +551,20 @@ const es: UiStringTable = {
|
|
|
547
551
|
'action.add': 'Añadir',
|
|
548
552
|
'action.backToCreation': 'Volver a la creación',
|
|
549
553
|
'action.report': 'Reportar',
|
|
550
|
-
'action.
|
|
551
|
-
'action.
|
|
552
|
-
'
|
|
553
|
-
'
|
|
554
|
+
'action.unban': 'Desbanear',
|
|
555
|
+
'action.openSettings': 'Abrir configuración',
|
|
556
|
+
'attach.title': 'Adjuntar',
|
|
557
|
+
'attach.takePhoto': 'Tomar foto',
|
|
558
|
+
'attach.takePhotoHint': 'Capturar con la cámara',
|
|
559
|
+
'attach.photoOrVideo': 'Foto o video',
|
|
560
|
+
'attach.photoOrVideoHint': 'Elegir de tu galería',
|
|
561
|
+
'attach.document': 'Documento',
|
|
562
|
+
'attach.documentHint': 'Elegir un archivo',
|
|
563
|
+
'permission.requiredTitle': 'Permiso requerido',
|
|
564
|
+
'permission.photoLibrary': 'Se necesita permiso de acceso a la galería de fotos para seleccionar imágenes.',
|
|
565
|
+
'permission.camera': 'Se necesita permiso de cámara para tomar fotos y videos.',
|
|
566
|
+
'permission.gallery': 'Se necesita permiso de galería para seleccionar fotos y videos.',
|
|
567
|
+
'permission.microphone': 'Se necesita permiso de micrófono para grabar mensajes de voz.',
|
|
554
568
|
'status.connecting': 'Conectando…',
|
|
555
569
|
'status.noInternet': 'Sin conexión a internet',
|
|
556
570
|
'translation.translating': 'Traduciendo…',
|
|
@@ -563,9 +577,6 @@ const es: UiStringTable = {
|
|
|
563
577
|
'language.select': 'Seleccionar idioma',
|
|
564
578
|
'modal.newChat.title': 'Crear nuevo chat',
|
|
565
579
|
'modal.newChat.roomNamePlaceholder': 'Nombre de la sala',
|
|
566
|
-
'modal.newChat.descriptionPlaceholder': 'Descripción (opcional)',
|
|
567
|
-
'modal.newChat.createButton': 'Crear chat',
|
|
568
|
-
'modal.newChat.nameTooShort': 'El nombre debe tener al menos 3 caracteres.',
|
|
569
580
|
'modal.newChat.chatTypePlaceholder': 'Selecciona el tipo de chat',
|
|
570
581
|
'modal.newChat.selectUsersTitle': 'Selecciona usuarios para añadir al chat',
|
|
571
582
|
'modal.selectUsers.title': 'Seleccionar usuarios (máx. 20)',
|
|
@@ -573,8 +584,13 @@ const es: UiStringTable = {
|
|
|
573
584
|
'toast.roomCreationTitle': 'Creación de sala',
|
|
574
585
|
'toast.roomCreating': 'La sala se está creando...',
|
|
575
586
|
'toast.success': '¡Éxito!',
|
|
587
|
+
'toast.successTitle': 'Éxito',
|
|
576
588
|
'toast.roomCreatedSuccess': '¡Sala creada correctamente!',
|
|
577
589
|
'toast.usersAddedSuccess': '¡Usuarios añadidos correctamente!',
|
|
590
|
+
'toast.roomImageUpdated': 'Imagen de la sala actualizada correctamente',
|
|
591
|
+
'toast.failedToUploadImage': 'No se pudo subir la imagen',
|
|
592
|
+
'toast.chatDeletedSuccess': 'Chat eliminado correctamente',
|
|
593
|
+
'toast.failedToDeleteChat': 'No se pudo eliminar el chat',
|
|
578
594
|
'settings.menu.title': 'Configuración',
|
|
579
595
|
'modal.filePreview.title': 'Vista previa del archivo',
|
|
580
596
|
'toast.error': 'Error',
|
|
@@ -607,8 +623,6 @@ const es: UiStringTable = {
|
|
|
607
623
|
'action.call': 'Llamar',
|
|
608
624
|
'action.audioCall': 'Llamada de audio',
|
|
609
625
|
'action.copyUserId': 'Copiar ID de usuario',
|
|
610
|
-
'action.account': 'Cuenta',
|
|
611
|
-
'action.share': 'Compartir',
|
|
612
626
|
'action.deleteChat': 'Eliminar chat',
|
|
613
627
|
'action.appointAsAdmin': 'Nombrar administrador',
|
|
614
628
|
'action.moreOptions': 'Más opciones',
|
|
@@ -627,21 +641,13 @@ const es: UiStringTable = {
|
|
|
627
641
|
'auth.anonymousLoginMessage': '¡Has iniciado sesión de forma anónima!',
|
|
628
642
|
'modal.profile.title': 'Perfil',
|
|
629
643
|
'modal.profile.about': 'Acerca de',
|
|
630
|
-
'modal.profile.language': 'Idioma',
|
|
631
|
-
'modal.profile.media': 'Multimedia',
|
|
632
|
-
'modal.profile.documents': 'Documentos',
|
|
633
|
-
'modal.profile.noFiles': 'Todavía no hay nada',
|
|
634
644
|
'modal.profile.noDescription': 'Sin descripción',
|
|
635
645
|
'modal.chatProfile.title': 'Perfil del chat',
|
|
636
646
|
'modal.chatProfile.description': 'Descripción',
|
|
637
647
|
'modal.chatProfile.chatType': 'Tipo de chat',
|
|
638
648
|
'modal.chatProfile.memberCountSingular': '{count} miembro',
|
|
639
649
|
'modal.chatProfile.memberCountPlural': '{count} miembros',
|
|
640
|
-
'modal.chatProfile.
|
|
641
|
-
'modal.chatProfile.removePhoto': 'Quitar la foto',
|
|
642
|
-
'modal.chatProfile.membersLabel': 'Miembros: {count}',
|
|
643
|
-
'modal.chatProfile.membersUnavailable': 'Lista de miembros no disponible',
|
|
644
|
-
'modal.chatProfile.removeMember': '¿Quitar de este chat?',
|
|
650
|
+
'modal.chatProfile.memberListUnavailable': 'Lista de miembros no disponible',
|
|
645
651
|
'modal.deleteChat.title': '¿Eliminar este chat?',
|
|
646
652
|
'modal.addMembers.title': 'Añadir nuevo miembro',
|
|
647
653
|
'modal.addMembers.userIdPlaceholder': 'Introduce el ID de usuario',
|
|
@@ -699,8 +705,6 @@ const es: UiStringTable = {
|
|
|
699
705
|
|
|
700
706
|
const pt: UiStringTable = {
|
|
701
707
|
'search.placeholder': 'Pesquisar...',
|
|
702
|
-
'search.members': 'Pesquisar membros',
|
|
703
|
-
'search.noResults': 'Ninguém encontrado',
|
|
704
708
|
'input.placeholder': 'Escreva uma mensagem',
|
|
705
709
|
'room.created': 'Sala criada',
|
|
706
710
|
'room.empty': 'Este chat está vazio',
|
|
@@ -708,6 +712,8 @@ const pt: UiStringTable = {
|
|
|
708
712
|
'date.yesterday': 'Ontem',
|
|
709
713
|
'message.deleted': 'Mensagem eliminada',
|
|
710
714
|
'message.edited': 'editado',
|
|
715
|
+
'message.newMessages': 'Novas mensagens',
|
|
716
|
+
'notification.senderFallback': 'Nova mensagem',
|
|
711
717
|
'presence.online': 'online',
|
|
712
718
|
'presence.offline': 'offline',
|
|
713
719
|
'presence.onlineCount': '{count} online',
|
|
@@ -775,10 +781,20 @@ const pt: UiStringTable = {
|
|
|
775
781
|
'action.add': 'Adicionar',
|
|
776
782
|
'action.backToCreation': 'Voltar à criação',
|
|
777
783
|
'action.report': 'Denunciar',
|
|
778
|
-
'action.
|
|
779
|
-
'action.
|
|
780
|
-
'
|
|
781
|
-
'
|
|
784
|
+
'action.unban': 'Desbanir',
|
|
785
|
+
'action.openSettings': 'Abrir definições',
|
|
786
|
+
'attach.title': 'Anexar',
|
|
787
|
+
'attach.takePhoto': 'Tirar foto',
|
|
788
|
+
'attach.takePhotoHint': 'Capturar com a câmara',
|
|
789
|
+
'attach.photoOrVideo': 'Foto ou vídeo',
|
|
790
|
+
'attach.photoOrVideoHint': 'Escolher da sua biblioteca',
|
|
791
|
+
'attach.document': 'Documento',
|
|
792
|
+
'attach.documentHint': 'Escolher um ficheiro',
|
|
793
|
+
'permission.requiredTitle': 'Permissão necessária',
|
|
794
|
+
'permission.photoLibrary': 'É necessária permissão de acesso à biblioteca de fotos para selecionar imagens.',
|
|
795
|
+
'permission.camera': 'É necessária permissão da câmara para tirar fotos e vídeos.',
|
|
796
|
+
'permission.gallery': 'É necessária permissão da galeria para selecionar fotos e vídeos.',
|
|
797
|
+
'permission.microphone': 'É necessária permissão do microfone para gravar mensagens de voz.',
|
|
782
798
|
'status.connecting': 'A ligar…',
|
|
783
799
|
'status.noInternet': 'Sem ligação à internet',
|
|
784
800
|
'translation.translating': 'A traduzir…',
|
|
@@ -791,9 +807,6 @@ const pt: UiStringTable = {
|
|
|
791
807
|
'language.select': 'Selecionar idioma',
|
|
792
808
|
'modal.newChat.title': 'Criar novo chat',
|
|
793
809
|
'modal.newChat.roomNamePlaceholder': 'Nome da sala',
|
|
794
|
-
'modal.newChat.descriptionPlaceholder': 'Descrição (opcional)',
|
|
795
|
-
'modal.newChat.createButton': 'Criar conversa',
|
|
796
|
-
'modal.newChat.nameTooShort': 'O nome deve ter pelo menos 3 caracteres.',
|
|
797
810
|
'modal.newChat.chatTypePlaceholder': 'Selecione o tipo de chat',
|
|
798
811
|
'modal.newChat.selectUsersTitle': 'Selecione utilizadores para adicionar ao chat',
|
|
799
812
|
'modal.selectUsers.title': 'Selecionar utilizadores (máx. 20)',
|
|
@@ -801,8 +814,13 @@ const pt: UiStringTable = {
|
|
|
801
814
|
'toast.roomCreationTitle': 'Criação de sala',
|
|
802
815
|
'toast.roomCreating': 'A sala está a ser criada...',
|
|
803
816
|
'toast.success': 'Sucesso!',
|
|
817
|
+
'toast.successTitle': 'Sucesso',
|
|
804
818
|
'toast.roomCreatedSuccess': 'Sala criada com sucesso!',
|
|
805
819
|
'toast.usersAddedSuccess': 'Utilizadores adicionados com sucesso!',
|
|
820
|
+
'toast.roomImageUpdated': 'Imagem da sala atualizada com sucesso',
|
|
821
|
+
'toast.failedToUploadImage': 'Falha ao carregar a imagem',
|
|
822
|
+
'toast.chatDeletedSuccess': 'Chat eliminado com sucesso',
|
|
823
|
+
'toast.failedToDeleteChat': 'Falha ao eliminar o chat',
|
|
806
824
|
'settings.menu.title': 'Definições',
|
|
807
825
|
'modal.filePreview.title': 'Pré-visualização do ficheiro',
|
|
808
826
|
'toast.error': 'Erro',
|
|
@@ -835,8 +853,6 @@ const pt: UiStringTable = {
|
|
|
835
853
|
'action.call': 'Ligar',
|
|
836
854
|
'action.audioCall': 'Chamada de áudio',
|
|
837
855
|
'action.copyUserId': 'Copiar ID do utilizador',
|
|
838
|
-
'action.account': 'Conta',
|
|
839
|
-
'action.share': 'Partilhar',
|
|
840
856
|
'action.deleteChat': 'Eliminar chat',
|
|
841
857
|
'action.appointAsAdmin': 'Nomear administrador',
|
|
842
858
|
'action.moreOptions': 'Mais opções',
|
|
@@ -855,21 +871,13 @@ const pt: UiStringTable = {
|
|
|
855
871
|
'auth.anonymousLoginMessage': 'Iniciou sessão anonimamente!',
|
|
856
872
|
'modal.profile.title': 'Perfil',
|
|
857
873
|
'modal.profile.about': 'Sobre',
|
|
858
|
-
'modal.profile.language': 'Idioma',
|
|
859
|
-
'modal.profile.media': 'Multimédia',
|
|
860
|
-
'modal.profile.documents': 'Documentos',
|
|
861
|
-
'modal.profile.noFiles': 'Ainda não há nada aqui',
|
|
862
874
|
'modal.profile.noDescription': 'Sem descrição',
|
|
863
875
|
'modal.chatProfile.title': 'Perfil do chat',
|
|
864
876
|
'modal.chatProfile.description': 'Descrição',
|
|
865
877
|
'modal.chatProfile.chatType': 'Tipo de chat',
|
|
866
878
|
'modal.chatProfile.memberCountSingular': '{count} membro',
|
|
867
879
|
'modal.chatProfile.memberCountPlural': '{count} membros',
|
|
868
|
-
'modal.chatProfile.
|
|
869
|
-
'modal.chatProfile.removePhoto': 'Remover foto',
|
|
870
|
-
'modal.chatProfile.membersLabel': 'Membros: {count}',
|
|
871
|
-
'modal.chatProfile.membersUnavailable': 'Lista de membros indisponível',
|
|
872
|
-
'modal.chatProfile.removeMember': 'Remover deste chat?',
|
|
880
|
+
'modal.chatProfile.memberListUnavailable': 'Lista de membros indisponível',
|
|
873
881
|
'modal.deleteChat.title': 'Eliminar este chat?',
|
|
874
882
|
'modal.addMembers.title': 'Adicionar novo membro',
|
|
875
883
|
'modal.addMembers.userIdPlaceholder': 'Introduza o ID do utilizador',
|
|
@@ -927,8 +935,6 @@ const pt: UiStringTable = {
|
|
|
927
935
|
|
|
928
936
|
const ht: UiStringTable = {
|
|
929
937
|
'search.placeholder': 'Chèche...',
|
|
930
|
-
'search.members': 'Chèche manm',
|
|
931
|
-
'search.noResults': 'Pa jwenn pèsonn',
|
|
932
938
|
'input.placeholder': 'Ekri yon mesaj',
|
|
933
939
|
'room.created': 'Sal la kreye',
|
|
934
940
|
'room.empty': 'Chat sa a vid',
|
|
@@ -936,6 +942,8 @@ const ht: UiStringTable = {
|
|
|
936
942
|
'date.yesterday': 'Yè',
|
|
937
943
|
'message.deleted': 'Mesaj efase',
|
|
938
944
|
'message.edited': 'modifye',
|
|
945
|
+
'message.newMessages': 'Nouvo mesaj yo',
|
|
946
|
+
'notification.senderFallback': 'Nouvo mesaj',
|
|
939
947
|
'presence.online': 'an liy',
|
|
940
948
|
'presence.offline': 'pa an liy',
|
|
941
949
|
'presence.onlineCount': '{count} an liy',
|
|
@@ -1003,10 +1011,20 @@ const ht: UiStringTable = {
|
|
|
1003
1011
|
'action.add': 'Ajoute',
|
|
1004
1012
|
'action.backToCreation': 'Retounen nan kreyasyon',
|
|
1005
1013
|
'action.report': 'Rapòte',
|
|
1006
|
-
'action.
|
|
1007
|
-
'action.
|
|
1008
|
-
'
|
|
1009
|
-
'
|
|
1014
|
+
'action.unban': 'Retire Ban',
|
|
1015
|
+
'action.openSettings': 'Louvri Paramèt yo',
|
|
1016
|
+
'attach.title': 'Atache',
|
|
1017
|
+
'attach.takePhoto': 'Pran yon foto',
|
|
1018
|
+
'attach.takePhotoHint': 'Pran foto ak kamera a',
|
|
1019
|
+
'attach.photoOrVideo': 'Foto oswa videyo',
|
|
1020
|
+
'attach.photoOrVideoHint': 'Chwazi nan bibliyotèk ou',
|
|
1021
|
+
'attach.document': 'Dokiman',
|
|
1022
|
+
'attach.documentHint': 'Chwazi yon fichye',
|
|
1023
|
+
'permission.requiredTitle': 'Otorizasyon nesesè',
|
|
1024
|
+
'permission.photoLibrary': 'Nou bezwen otorizasyon pou aksè nan bibliyotèk foto ou pou chwazi imaj.',
|
|
1025
|
+
'permission.camera': 'Nou bezwen otorizasyon kamera pou pran foto ak videyo.',
|
|
1026
|
+
'permission.gallery': 'Nou bezwen otorizasyon galri pou chwazi foto ak videyo.',
|
|
1027
|
+
'permission.microphone': 'Nou bezwen otorizasyon mikwo pou anrejistre mesaj vokal.',
|
|
1010
1028
|
'status.connecting': 'Koneksyon…',
|
|
1011
1029
|
'status.noInternet': 'Pa gen koneksyon entènèt',
|
|
1012
1030
|
'translation.translating': 'Ap tradui…',
|
|
@@ -1019,9 +1037,6 @@ const ht: UiStringTable = {
|
|
|
1019
1037
|
'language.select': 'Chwazi lang',
|
|
1020
1038
|
'modal.newChat.title': 'Kreye yon nouvo chat',
|
|
1021
1039
|
'modal.newChat.roomNamePlaceholder': 'Antre non sal la',
|
|
1022
|
-
'modal.newChat.descriptionPlaceholder': 'Deskripsyon (opsyonèl)',
|
|
1023
|
-
'modal.newChat.createButton': 'Kreye chat la',
|
|
1024
|
-
'modal.newChat.nameTooShort': 'Non an dwe gen omwen 3 karaktè.',
|
|
1025
1040
|
'modal.newChat.chatTypePlaceholder': 'Chwazi tip chat la',
|
|
1026
1041
|
'modal.newChat.selectUsersTitle': 'Chwazi itilizatè pou ajoute nan chat la',
|
|
1027
1042
|
'modal.selectUsers.title': 'Chwazi itilizatè (maksimòm 20)',
|
|
@@ -1029,8 +1044,13 @@ const ht: UiStringTable = {
|
|
|
1029
1044
|
'toast.roomCreationTitle': 'Kreyasyon sal',
|
|
1030
1045
|
'toast.roomCreating': 'Sal la ap kreye...',
|
|
1031
1046
|
'toast.success': 'Siksè!',
|
|
1047
|
+
'toast.successTitle': 'Siksè',
|
|
1032
1048
|
'toast.roomCreatedSuccess': 'Sal la kreye avèk siksè!',
|
|
1033
1049
|
'toast.usersAddedSuccess': 'Itilizatè yo ajoute avèk siksè!',
|
|
1050
|
+
'toast.roomImageUpdated': 'Imaj sal la mete ajou avèk siksè',
|
|
1051
|
+
'toast.failedToUploadImage': 'Echèk pou telechaje imaj la',
|
|
1052
|
+
'toast.chatDeletedSuccess': 'Chat la efase avèk siksè',
|
|
1053
|
+
'toast.failedToDeleteChat': 'Echèk pou efase chat la',
|
|
1034
1054
|
'settings.menu.title': 'Paramèt',
|
|
1035
1055
|
'modal.filePreview.title': 'Apèsi fichye',
|
|
1036
1056
|
'toast.error': 'Erè',
|
|
@@ -1063,8 +1083,6 @@ const ht: UiStringTable = {
|
|
|
1063
1083
|
'action.call': 'Rele',
|
|
1064
1084
|
'action.audioCall': 'Apèl odyo',
|
|
1065
1085
|
'action.copyUserId': 'Kopye ID itilizatè a',
|
|
1066
|
-
'action.account': 'Kont',
|
|
1067
|
-
'action.share': 'Pataje',
|
|
1068
1086
|
'action.deleteChat': 'Efase chat la',
|
|
1069
1087
|
'action.appointAsAdmin': 'Nonmen kòm administratè',
|
|
1070
1088
|
'action.moreOptions': 'Plis opsyon',
|
|
@@ -1083,21 +1101,13 @@ const ht: UiStringTable = {
|
|
|
1083
1101
|
'auth.anonymousLoginMessage': 'Ou konekte anonim!',
|
|
1084
1102
|
'modal.profile.title': 'Pwofil',
|
|
1085
1103
|
'modal.profile.about': 'Konsènan',
|
|
1086
|
-
'modal.profile.language': 'Lang',
|
|
1087
|
-
'modal.profile.media': 'Medya',
|
|
1088
|
-
'modal.profile.documents': 'Dokiman',
|
|
1089
|
-
'modal.profile.noFiles': 'Poko gen anyen',
|
|
1090
1104
|
'modal.profile.noDescription': 'Pa gen deskripsyon',
|
|
1091
1105
|
'modal.chatProfile.title': 'Pwofil chat la',
|
|
1092
1106
|
'modal.chatProfile.description': 'Deskripsyon',
|
|
1093
1107
|
'modal.chatProfile.chatType': 'Tip chat',
|
|
1094
1108
|
'modal.chatProfile.memberCountSingular': '{count} manm',
|
|
1095
1109
|
'modal.chatProfile.memberCountPlural': '{count} manm',
|
|
1096
|
-
'modal.chatProfile.
|
|
1097
|
-
'modal.chatProfile.removePhoto': 'Retire foto a',
|
|
1098
|
-
'modal.chatProfile.membersLabel': 'Manm: {count}',
|
|
1099
|
-
'modal.chatProfile.membersUnavailable': 'Lis manm yo pa disponib',
|
|
1100
|
-
'modal.chatProfile.removeMember': 'Retire nan chat sa a?',
|
|
1110
|
+
'modal.chatProfile.memberListUnavailable': 'Lis manm yo pa disponib',
|
|
1101
1111
|
'modal.deleteChat.title': 'Efase chat sa a?',
|
|
1102
1112
|
'modal.addMembers.title': 'Ajoute yon nouvo manm',
|
|
1103
1113
|
'modal.addMembers.userIdPlaceholder': 'Antre ID itilizatè a',
|
|
@@ -1155,8 +1165,6 @@ const ht: UiStringTable = {
|
|
|
1155
1165
|
|
|
1156
1166
|
const zh: UiStringTable = {
|
|
1157
1167
|
'search.placeholder': '搜索...',
|
|
1158
|
-
'search.members': '搜索成员',
|
|
1159
|
-
'search.noResults': '未找到成员',
|
|
1160
1168
|
'input.placeholder': '输入消息',
|
|
1161
1169
|
'room.created': '聊天室已创建',
|
|
1162
1170
|
'room.empty': '此聊天为空',
|
|
@@ -1164,6 +1172,8 @@ const zh: UiStringTable = {
|
|
|
1164
1172
|
'date.yesterday': '昨天',
|
|
1165
1173
|
'message.deleted': '消息已删除',
|
|
1166
1174
|
'message.edited': '已编辑',
|
|
1175
|
+
'message.newMessages': '新消息',
|
|
1176
|
+
'notification.senderFallback': '新消息',
|
|
1167
1177
|
'presence.online': '在线',
|
|
1168
1178
|
'presence.offline': '离线',
|
|
1169
1179
|
'presence.onlineCount': '{count} 人在线',
|
|
@@ -1231,10 +1241,20 @@ const zh: UiStringTable = {
|
|
|
1231
1241
|
'action.add': '添加',
|
|
1232
1242
|
'action.backToCreation': '返回创建',
|
|
1233
1243
|
'action.report': '举报',
|
|
1234
|
-
'action.
|
|
1235
|
-
'action.
|
|
1236
|
-
'
|
|
1237
|
-
'
|
|
1244
|
+
'action.unban': '解除封禁',
|
|
1245
|
+
'action.openSettings': '打开设置',
|
|
1246
|
+
'attach.title': '添加附件',
|
|
1247
|
+
'attach.takePhoto': '拍照',
|
|
1248
|
+
'attach.takePhotoHint': '使用相机拍摄',
|
|
1249
|
+
'attach.photoOrVideo': '照片或视频',
|
|
1250
|
+
'attach.photoOrVideoHint': '从相册中选择',
|
|
1251
|
+
'attach.document': '文档',
|
|
1252
|
+
'attach.documentHint': '选择一个文件',
|
|
1253
|
+
'permission.requiredTitle': '需要权限',
|
|
1254
|
+
'permission.photoLibrary': '需要照片图库权限才能选择图片。',
|
|
1255
|
+
'permission.camera': '需要相机权限才能拍摄照片和视频。',
|
|
1256
|
+
'permission.gallery': '需要相册权限才能选择照片和视频。',
|
|
1257
|
+
'permission.microphone': '需要麦克风权限才能录制语音消息。',
|
|
1238
1258
|
'status.connecting': '连接中…',
|
|
1239
1259
|
'status.noInternet': '无网络连接',
|
|
1240
1260
|
'translation.translating': '翻译中…',
|
|
@@ -1247,9 +1267,6 @@ const zh: UiStringTable = {
|
|
|
1247
1267
|
'language.select': '选择语言',
|
|
1248
1268
|
'modal.newChat.title': '创建新聊天',
|
|
1249
1269
|
'modal.newChat.roomNamePlaceholder': '输入聊天室名称',
|
|
1250
|
-
'modal.newChat.descriptionPlaceholder': '描述(可选)',
|
|
1251
|
-
'modal.newChat.createButton': '创建聊天',
|
|
1252
|
-
'modal.newChat.nameTooShort': '名称至少需要 3 个字符。',
|
|
1253
1270
|
'modal.newChat.chatTypePlaceholder': '选择聊天类型',
|
|
1254
1271
|
'modal.newChat.selectUsersTitle': '选择要添加到聊天的用户',
|
|
1255
1272
|
'modal.selectUsers.title': '选择用户(最多 20 个)',
|
|
@@ -1257,8 +1274,13 @@ const zh: UiStringTable = {
|
|
|
1257
1274
|
'toast.roomCreationTitle': '创建聊天室',
|
|
1258
1275
|
'toast.roomCreating': '正在创建聊天室...',
|
|
1259
1276
|
'toast.success': '成功!',
|
|
1277
|
+
'toast.successTitle': '成功',
|
|
1260
1278
|
'toast.roomCreatedSuccess': '聊天室创建成功!',
|
|
1261
1279
|
'toast.usersAddedSuccess': '用户添加成功!',
|
|
1280
|
+
'toast.roomImageUpdated': '聊天室图片更新成功',
|
|
1281
|
+
'toast.failedToUploadImage': '图片上传失败',
|
|
1282
|
+
'toast.chatDeletedSuccess': '聊天已成功删除',
|
|
1283
|
+
'toast.failedToDeleteChat': '删除聊天失败',
|
|
1262
1284
|
'settings.menu.title': '设置',
|
|
1263
1285
|
'modal.filePreview.title': '文件预览',
|
|
1264
1286
|
'toast.error': '错误',
|
|
@@ -1291,8 +1313,6 @@ const zh: UiStringTable = {
|
|
|
1291
1313
|
'action.call': '通话',
|
|
1292
1314
|
'action.audioCall': '语音通话',
|
|
1293
1315
|
'action.copyUserId': '复制用户 ID',
|
|
1294
|
-
'action.account': '账户',
|
|
1295
|
-
'action.share': '分享',
|
|
1296
1316
|
'action.deleteChat': '删除聊天',
|
|
1297
1317
|
'action.appointAsAdmin': '设为管理员',
|
|
1298
1318
|
'action.moreOptions': '更多选项',
|
|
@@ -1311,21 +1331,13 @@ const zh: UiStringTable = {
|
|
|
1311
1331
|
'auth.anonymousLoginMessage': '您已匿名登录!',
|
|
1312
1332
|
'modal.profile.title': '个人资料',
|
|
1313
1333
|
'modal.profile.about': '简介',
|
|
1314
|
-
'modal.profile.language': '语言',
|
|
1315
|
-
'modal.profile.media': '媒体',
|
|
1316
|
-
'modal.profile.documents': '文件',
|
|
1317
|
-
'modal.profile.noFiles': '这里还没有内容',
|
|
1318
1334
|
'modal.profile.noDescription': '暂无简介',
|
|
1319
1335
|
'modal.chatProfile.title': '聊天资料',
|
|
1320
1336
|
'modal.chatProfile.description': '描述',
|
|
1321
1337
|
'modal.chatProfile.chatType': '聊天类型',
|
|
1322
1338
|
'modal.chatProfile.memberCountSingular': '{count} 位成员',
|
|
1323
1339
|
'modal.chatProfile.memberCountPlural': '{count} 位成员',
|
|
1324
|
-
'modal.chatProfile.
|
|
1325
|
-
'modal.chatProfile.removePhoto': '移除图片',
|
|
1326
|
-
'modal.chatProfile.membersLabel': '成员:{count}',
|
|
1327
|
-
'modal.chatProfile.membersUnavailable': '成员列表不可用',
|
|
1328
|
-
'modal.chatProfile.removeMember': '将其移出该聊天?',
|
|
1340
|
+
'modal.chatProfile.memberListUnavailable': '成员列表不可用',
|
|
1329
1341
|
'modal.deleteChat.title': '删除此聊天?',
|
|
1330
1342
|
'modal.addMembers.title': '添加新成员',
|
|
1331
1343
|
'modal.addMembers.userIdPlaceholder': '输入用户 ID',
|
package/src/i18n/useT.ts
CHANGED
|
@@ -17,7 +17,7 @@ import { interpolate, resolveStringTable } from './strings';
|
|
|
17
17
|
* When the host doesn't set `config.i18n.locale` explicitly, this falls
|
|
18
18
|
* back to `langSource` - the same reader-language state the in-chat globe
|
|
19
19
|
* picker (LanguageSelectorButton) and `config.translates.readerLocale`
|
|
20
|
-
* drive (see
|
|
20
|
+
* drive (see ChatWrapper's resolveExternalReaderLocaleLangSource effect).
|
|
21
21
|
* So picking a language in the chat changes both message translations AND
|
|
22
22
|
* static captions together, as one language switch, unless the host is
|
|
23
23
|
* explicitly managing UI locale separately via `config.i18n.locale`.
|
package/src/main.ts
CHANGED
|
@@ -7,10 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* <Chat
|
|
9
9
|
* config={{
|
|
10
|
-
*
|
|
11
|
-
* // (`/v1/...`, `/v2/...`). A legacy `.../v1` is accepted and
|
|
12
|
-
* // normalised, so existing integrations keep working.
|
|
13
|
-
* baseUrl: 'https://api.chat.ethora.com',
|
|
10
|
+
* baseUrl: 'https://api.chat.ethora.com/v1',
|
|
14
11
|
* xmppSettings: { host: 'xmpp.chat.ethora.com' },
|
|
15
12
|
* jwtLogin: { enabled: true, token: '<paste JWT>' },
|
|
16
13
|
* initBeforeLoad: true,
|
|
@@ -31,11 +28,8 @@ export { XmppProvider } from './context/xmppProvider';
|
|
|
31
28
|
|
|
32
29
|
// Hooks that consumers usually need (badge counts, logout, push, etc.).
|
|
33
30
|
export { useUnread } from './hooks/useUnreadMessagesCounter';
|
|
34
|
-
|
|
35
|
-
export { handlePushPayload, openRoomFromPush } from './helpers/pushPayload';
|
|
36
|
-
export type { PushPayloadOutcome } from './helpers/pushPayload';
|
|
37
31
|
export { useChatRoomFocus } from './hooks/useChatRoomFocus';
|
|
38
|
-
export { logoutService
|
|
32
|
+
export { logoutService } from './hooks/useLogout';
|
|
39
33
|
export { useQRCodeChat, handleQRChatId } from './hooks/useQRCodeChatHandler';
|
|
40
34
|
export { resendMessage } from './utils/resendMessage';
|
|
41
35
|
// Font loader, exposed so hosts can also load the font outside <Chat> if needed.
|
|
@@ -72,21 +66,3 @@ export type {
|
|
|
72
66
|
} from './types/types';
|
|
73
67
|
export type { Iso639_1Codes } from './types/models/language.model';
|
|
74
68
|
export type { TranslateMode } from './utils/translateModePolicy';
|
|
75
|
-
|
|
76
|
-
// Auth-token rotation. Exposed so hosts can drive a refresh themselves
|
|
77
|
-
// (it is deduped and shares the SDK's lock) and, more importantly, so
|
|
78
|
-
// they can tell a dead session from a transient failure: only
|
|
79
|
-
// `RefreshFatalError` means "log the user out". Every other rejection —
|
|
80
|
-
// network, 5xx, a lost REFRESH_IN_PROGRESS race — must leave the
|
|
81
|
-
// session alone.
|
|
82
|
-
export {
|
|
83
|
-
refreshAuthTokens,
|
|
84
|
-
refreshAuthTokensQuietly,
|
|
85
|
-
RefreshFatalError,
|
|
86
|
-
isRefreshFatalError,
|
|
87
|
-
} from './networking/authRefresh';
|
|
88
|
-
export type {
|
|
89
|
-
RefreshErrorCode,
|
|
90
|
-
RefreshResult,
|
|
91
|
-
RefreshOptions,
|
|
92
|
-
} from './networking/authRefresh';
|