@ethora/chat-component-rn 26.7.5 → 26.7.6
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 +59 -0
- package/README.md +31 -8
- package/lib/commonjs/assets/icons.js +7 -2
- package/lib/commonjs/assets/icons.js.map +1 -1
- package/lib/commonjs/components/Header/HeaderRoomList.js +26 -7
- package/lib/commonjs/components/Header/HeaderRoomList.js.map +1 -1
- package/lib/commonjs/components/MainComponents/ChatHeader.js +5 -2
- package/lib/commonjs/components/MainComponents/ChatHeader.js.map +1 -1
- package/lib/commonjs/components/MainComponents/ChatRoom.js +36 -14
- package/lib/commonjs/components/MainComponents/ChatRoom.js.map +1 -1
- package/lib/commonjs/components/MainComponents/MessageList.js +7 -23
- package/lib/commonjs/components/MainComponents/MessageList.js.map +1 -1
- package/lib/commonjs/components/MainComponents/ProfileImagePlaceholder.js +14 -13
- package/lib/commonjs/components/MainComponents/ProfileImagePlaceholder.js.map +1 -1
- package/lib/commonjs/components/MainComponents/RoomList.js +208 -35
- package/lib/commonjs/components/MainComponents/RoomList.js.map +1 -1
- package/lib/commonjs/components/Menu/HeaderRoomListMenu.js +317 -98
- package/lib/commonjs/components/Menu/HeaderRoomListMenu.js.map +1 -1
- package/lib/commonjs/components/Modals/AttachSheet/AttachSheet.js +320 -110
- package/lib/commonjs/components/Modals/AttachSheet/AttachSheet.js.map +1 -1
- package/lib/commonjs/components/Modals/ChatProfileModal/ChatProfileModal.js +552 -213
- package/lib/commonjs/components/Modals/ChatProfileModal/ChatProfileModal.js.map +1 -1
- package/lib/commonjs/components/Modals/ChatProfileModal/ReportChatModal.js +226 -0
- package/lib/commonjs/components/Modals/ChatProfileModal/ReportChatModal.js.map +1 -0
- package/lib/commonjs/components/Modals/FilePreviewModal/FilePreviewModal.js +6 -2
- package/lib/commonjs/components/Modals/FilePreviewModal/FilePreviewModal.js.map +1 -1
- package/lib/commonjs/components/Modals/Modal/Modal.js +8 -0
- package/lib/commonjs/components/Modals/Modal/Modal.js.map +1 -1
- package/lib/commonjs/components/Modals/NewChatModal/ModalContent.js +2 -1
- package/lib/commonjs/components/Modals/NewChatModal/ModalContent.js.map +1 -1
- package/lib/commonjs/components/Modals/NewChatModal/NewChatModal.js +202 -104
- package/lib/commonjs/components/Modals/NewChatModal/NewChatModal.js.map +1 -1
- package/lib/commonjs/components/Modals/NewChatModal/UpdNewChatModal.js +8 -0
- package/lib/commonjs/components/Modals/NewChatModal/UpdNewChatModal.js.map +1 -1
- package/lib/commonjs/components/Modals/ProfileHeader/ProfileHeader.js +556 -0
- package/lib/commonjs/components/Modals/ProfileHeader/ProfileHeader.js.map +1 -0
- package/lib/commonjs/components/Modals/ProfileHeader/ProfileMenu.js +210 -0
- package/lib/commonjs/components/Modals/ProfileHeader/ProfileMenu.js.map +1 -0
- package/lib/commonjs/components/Modals/SelectUsersModal/SelectUsersModal.js +4 -2
- package/lib/commonjs/components/Modals/SelectUsersModal/SelectUsersModal.js.map +1 -1
- package/lib/commonjs/components/Modals/UserProfileModal/EditUserModal.js +7 -21
- package/lib/commonjs/components/Modals/UserProfileModal/EditUserModal.js.map +1 -1
- package/lib/commonjs/components/Modals/UserProfileModal/UserProfileModal.js +507 -244
- package/lib/commonjs/components/Modals/UserProfileModal/UserProfileModal.js.map +1 -1
- package/lib/commonjs/components/Modals/UserSettingsModal/UserSettingsModal.js +74 -46
- package/lib/commonjs/components/Modals/UserSettingsModal/UserSettingsModal.js.map +1 -1
- package/lib/commonjs/components/Modals/styledModalComponents.js +9 -2
- package/lib/commonjs/components/Modals/styledModalComponents.js.map +1 -1
- package/lib/commonjs/components/RoomComponents/ChatRoomItem.js +17 -7
- package/lib/commonjs/components/RoomComponents/ChatRoomItem.js.map +1 -1
- package/lib/commonjs/components/styled/SendInput.js +80 -11
- package/lib/commonjs/components/styled/SendInput.js.map +1 -1
- package/lib/commonjs/components/styled/StyledComponents.js +9 -3
- package/lib/commonjs/components/styled/StyledComponents.js.map +1 -1
- package/lib/commonjs/components/styled/StyledInputComponents/StyledInputComponents.js +11 -4
- package/lib/commonjs/components/styled/StyledInputComponents/StyledInputComponents.js.map +1 -1
- package/lib/commonjs/context/xmppProvider.js +23 -38
- package/lib/commonjs/context/xmppProvider.js.map +1 -1
- package/lib/commonjs/helpers/getChatBackground.js +23 -0
- package/lib/commonjs/helpers/getChatBackground.js.map +1 -0
- package/lib/commonjs/helpers/mediaLibraryRuntime.js +31 -0
- package/lib/commonjs/helpers/mediaLibraryRuntime.js.map +1 -0
- package/lib/commonjs/helpers/pickImageAsset.js +68 -0
- package/lib/commonjs/helpers/pickImageAsset.js.map +1 -0
- package/lib/commonjs/helpers/sheetGestures.js +32 -0
- package/lib/commonjs/helpers/sheetGestures.js.map +1 -0
- package/lib/commonjs/helpers/updateMessagesTillLast.js +12 -40
- package/lib/commonjs/helpers/updateMessagesTillLast.js.map +1 -1
- package/lib/commonjs/hooks/useChatRoomFocus.js +3 -9
- package/lib/commonjs/hooks/useChatRoomFocus.js.map +1 -1
- package/lib/commonjs/hooks/useLogout.js +0 -5
- package/lib/commonjs/hooks/useLogout.js.map +1 -1
- package/lib/commonjs/hooks/useSendMessage.js +23 -50
- package/lib/commonjs/hooks/useSendMessage.js.map +1 -1
- package/lib/commonjs/i18n/strings.js +121 -1
- package/lib/commonjs/i18n/strings.js.map +1 -1
- package/lib/commonjs/main.js +6 -0
- package/lib/commonjs/main.js.map +1 -1
- package/lib/commonjs/networking/api-requests/user.api.js +59 -0
- package/lib/commonjs/networking/api-requests/user.api.js.map +1 -1
- package/lib/commonjs/networking/authRefresh.js +12 -2
- package/lib/commonjs/networking/authRefresh.js.map +1 -1
- package/lib/commonjs/networking/outboundQueue.js +0 -18
- package/lib/commonjs/networking/outboundQueue.js.map +1 -1
- package/lib/commonjs/networking/stanzaHandlers.js +1 -10
- package/lib/commonjs/networking/stanzaHandlers.js.map +1 -1
- package/lib/commonjs/networking/xmpp/presenceInRoom.xmpp.js +8 -1
- package/lib/commonjs/networking/xmpp/presenceInRoom.xmpp.js.map +1 -1
- package/lib/commonjs/networking/xmppClient.js +7 -107
- package/lib/commonjs/networking/xmppClient.js.map +1 -1
- package/lib/commonjs/roomStore/chatSettingsSlice.js +3 -1
- package/lib/commonjs/roomStore/chatSettingsSlice.js.map +1 -1
- package/lib/commonjs/roomStore/roomsSlice.js +3 -22
- package/lib/commonjs/roomStore/roomsSlice.js.map +1 -1
- package/lib/module/assets/icons.js +6 -1
- package/lib/module/assets/icons.js.map +1 -1
- package/lib/module/components/Header/HeaderRoomList.js +26 -7
- package/lib/module/components/Header/HeaderRoomList.js.map +1 -1
- package/lib/module/components/MainComponents/ChatHeader.js +5 -2
- package/lib/module/components/MainComponents/ChatHeader.js.map +1 -1
- package/lib/module/components/MainComponents/ChatRoom.js +36 -14
- package/lib/module/components/MainComponents/ChatRoom.js.map +1 -1
- package/lib/module/components/MainComponents/MessageList.js +8 -24
- package/lib/module/components/MainComponents/MessageList.js.map +1 -1
- package/lib/module/components/MainComponents/ProfileImagePlaceholder.js +14 -13
- package/lib/module/components/MainComponents/ProfileImagePlaceholder.js.map +1 -1
- package/lib/module/components/MainComponents/RoomList.js +207 -35
- package/lib/module/components/MainComponents/RoomList.js.map +1 -1
- package/lib/module/components/Menu/HeaderRoomListMenu.js +319 -101
- package/lib/module/components/Menu/HeaderRoomListMenu.js.map +1 -1
- package/lib/module/components/Modals/AttachSheet/AttachSheet.js +311 -113
- package/lib/module/components/Modals/AttachSheet/AttachSheet.js.map +1 -1
- package/lib/module/components/Modals/ChatProfileModal/ChatProfileModal.js +555 -217
- package/lib/module/components/Modals/ChatProfileModal/ChatProfileModal.js.map +1 -1
- package/lib/module/components/Modals/ChatProfileModal/ReportChatModal.js +223 -0
- package/lib/module/components/Modals/ChatProfileModal/ReportChatModal.js.map +1 -0
- package/lib/module/components/Modals/FilePreviewModal/FilePreviewModal.js +6 -2
- package/lib/module/components/Modals/FilePreviewModal/FilePreviewModal.js.map +1 -1
- package/lib/module/components/Modals/Modal/Modal.js +9 -1
- package/lib/module/components/Modals/Modal/Modal.js.map +1 -1
- package/lib/module/components/Modals/NewChatModal/ModalContent.js +2 -1
- package/lib/module/components/Modals/NewChatModal/ModalContent.js.map +1 -1
- package/lib/module/components/Modals/NewChatModal/NewChatModal.js +205 -106
- package/lib/module/components/Modals/NewChatModal/NewChatModal.js.map +1 -1
- package/lib/module/components/Modals/NewChatModal/UpdNewChatModal.js +8 -0
- package/lib/module/components/Modals/NewChatModal/UpdNewChatModal.js.map +1 -1
- package/lib/module/components/Modals/ProfileHeader/ProfileHeader.js +548 -0
- package/lib/module/components/Modals/ProfileHeader/ProfileHeader.js.map +1 -0
- package/lib/module/components/Modals/ProfileHeader/ProfileMenu.js +205 -0
- package/lib/module/components/Modals/ProfileHeader/ProfileMenu.js.map +1 -0
- package/lib/module/components/Modals/SelectUsersModal/SelectUsersModal.js +4 -2
- package/lib/module/components/Modals/SelectUsersModal/SelectUsersModal.js.map +1 -1
- package/lib/module/components/Modals/UserProfileModal/EditUserModal.js +9 -23
- package/lib/module/components/Modals/UserProfileModal/EditUserModal.js.map +1 -1
- package/lib/module/components/Modals/UserProfileModal/UserProfileModal.js +509 -248
- package/lib/module/components/Modals/UserProfileModal/UserProfileModal.js.map +1 -1
- package/lib/module/components/Modals/UserSettingsModal/UserSettingsModal.js +76 -48
- package/lib/module/components/Modals/UserSettingsModal/UserSettingsModal.js.map +1 -1
- package/lib/module/components/Modals/styledModalComponents.js +9 -2
- package/lib/module/components/Modals/styledModalComponents.js.map +1 -1
- package/lib/module/components/RoomComponents/ChatRoomItem.js +17 -7
- package/lib/module/components/RoomComponents/ChatRoomItem.js.map +1 -1
- package/lib/module/components/styled/SendInput.js +81 -12
- package/lib/module/components/styled/SendInput.js.map +1 -1
- package/lib/module/components/styled/StyledComponents.js +9 -3
- package/lib/module/components/styled/StyledComponents.js.map +1 -1
- package/lib/module/components/styled/StyledInputComponents/StyledInputComponents.js +11 -4
- package/lib/module/components/styled/StyledInputComponents/StyledInputComponents.js.map +1 -1
- package/lib/module/context/xmppProvider.js +23 -38
- package/lib/module/context/xmppProvider.js.map +1 -1
- package/lib/module/helpers/getChatBackground.js +18 -0
- package/lib/module/helpers/getChatBackground.js.map +1 -0
- package/lib/module/helpers/mediaLibraryRuntime.js +25 -0
- package/lib/module/helpers/mediaLibraryRuntime.js.map +1 -0
- package/lib/module/helpers/pickImageAsset.js +63 -0
- package/lib/module/helpers/pickImageAsset.js.map +1 -0
- package/lib/module/helpers/sheetGestures.js +26 -0
- package/lib/module/helpers/sheetGestures.js.map +1 -0
- package/lib/module/helpers/updateMessagesTillLast.js +13 -41
- package/lib/module/helpers/updateMessagesTillLast.js.map +1 -1
- package/lib/module/hooks/useChatRoomFocus.js +3 -9
- package/lib/module/hooks/useChatRoomFocus.js.map +1 -1
- package/lib/module/hooks/useLogout.js +0 -5
- package/lib/module/hooks/useLogout.js.map +1 -1
- package/lib/module/hooks/useSendMessage.js +24 -51
- package/lib/module/hooks/useSendMessage.js.map +1 -1
- package/lib/module/i18n/strings.js +121 -1
- package/lib/module/i18n/strings.js.map +1 -1
- package/lib/module/main.js +1 -1
- package/lib/module/main.js.map +1 -1
- package/lib/module/networking/api-requests/user.api.js +56 -0
- package/lib/module/networking/api-requests/user.api.js.map +1 -1
- package/lib/module/networking/authRefresh.js +12 -2
- package/lib/module/networking/authRefresh.js.map +1 -1
- package/lib/module/networking/outboundQueue.js +0 -17
- package/lib/module/networking/outboundQueue.js.map +1 -1
- package/lib/module/networking/stanzaHandlers.js +1 -10
- package/lib/module/networking/stanzaHandlers.js.map +1 -1
- package/lib/module/networking/xmpp/presenceInRoom.xmpp.js +8 -1
- package/lib/module/networking/xmpp/presenceInRoom.xmpp.js.map +1 -1
- package/lib/module/networking/xmppClient.js +7 -107
- package/lib/module/networking/xmppClient.js.map +1 -1
- package/lib/module/roomStore/chatSettingsSlice.js +3 -1
- package/lib/module/roomStore/chatSettingsSlice.js.map +1 -1
- package/lib/module/roomStore/roomsSlice.js +2 -20
- package/lib/module/roomStore/roomsSlice.js.map +1 -1
- package/lib/typescript/assets/icons.d.ts +16 -0
- package/lib/typescript/assets/icons.d.ts.map +1 -1
- package/lib/typescript/components/Header/HeaderRoomList.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/ChatHeader.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/ChatRoom.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/MessageList.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/ProfileImagePlaceholder.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/RoomList.d.ts +7 -0
- package/lib/typescript/components/MainComponents/RoomList.d.ts.map +1 -1
- package/lib/typescript/components/Menu/HeaderRoomListMenu.d.ts +3 -0
- package/lib/typescript/components/Menu/HeaderRoomListMenu.d.ts.map +1 -1
- package/lib/typescript/components/Modals/AttachSheet/AttachSheet.d.ts +9 -0
- package/lib/typescript/components/Modals/AttachSheet/AttachSheet.d.ts.map +1 -1
- package/lib/typescript/components/Modals/ChatProfileModal/ChatProfileModal.d.ts +10 -0
- package/lib/typescript/components/Modals/ChatProfileModal/ChatProfileModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/ChatProfileModal/ReportChatModal.d.ts +9 -0
- package/lib/typescript/components/Modals/ChatProfileModal/ReportChatModal.d.ts.map +1 -0
- package/lib/typescript/components/Modals/FilePreviewModal/FilePreviewModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/Modal/Modal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/NewChatModal/ModalContent.d.ts +4 -2
- package/lib/typescript/components/Modals/NewChatModal/ModalContent.d.ts.map +1 -1
- package/lib/typescript/components/Modals/NewChatModal/NewChatModal.d.ts +1 -1
- package/lib/typescript/components/Modals/NewChatModal/NewChatModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/NewChatModal/UpdNewChatModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/ProfileHeader/ProfileHeader.d.ts +75 -0
- package/lib/typescript/components/Modals/ProfileHeader/ProfileHeader.d.ts.map +1 -0
- package/lib/typescript/components/Modals/ProfileHeader/ProfileMenu.d.ts +25 -0
- package/lib/typescript/components/Modals/ProfileHeader/ProfileMenu.d.ts.map +1 -0
- package/lib/typescript/components/Modals/SelectUsersModal/SelectUsersModal.d.ts +6 -1
- package/lib/typescript/components/Modals/SelectUsersModal/SelectUsersModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/UserProfileModal/EditUserModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/UserProfileModal/UserProfileModal.d.ts +16 -0
- package/lib/typescript/components/Modals/UserProfileModal/UserProfileModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/UserSettingsModal/UserSettingsModal.d.ts +1 -0
- package/lib/typescript/components/Modals/UserSettingsModal/UserSettingsModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/styledModalComponents.d.ts.map +1 -1
- package/lib/typescript/components/RoomComponents/ChatRoomItem.d.ts.map +1 -1
- package/lib/typescript/components/styled/SendInput.d.ts.map +1 -1
- package/lib/typescript/components/styled/StyledComponents.d.ts.map +1 -1
- package/lib/typescript/components/styled/StyledInputComponents/StyledInputComponents.d.ts.map +1 -1
- package/lib/typescript/context/xmppProvider.d.ts.map +1 -1
- package/lib/typescript/helpers/getChatBackground.d.ts +15 -0
- package/lib/typescript/helpers/getChatBackground.d.ts.map +1 -0
- package/lib/typescript/helpers/mediaLibraryRuntime.d.ts +3 -0
- package/lib/typescript/helpers/mediaLibraryRuntime.d.ts.map +1 -0
- package/lib/typescript/helpers/pickImageAsset.d.ts +27 -0
- package/lib/typescript/helpers/pickImageAsset.d.ts.map +1 -0
- package/lib/typescript/helpers/sheetGestures.d.ts +20 -0
- package/lib/typescript/helpers/sheetGestures.d.ts.map +1 -0
- package/lib/typescript/helpers/updateMessagesTillLast.d.ts.map +1 -1
- package/lib/typescript/hooks/useChatRoomFocus.d.ts.map +1 -1
- package/lib/typescript/hooks/useLogout.d.ts.map +1 -1
- package/lib/typescript/hooks/useSendMessage.d.ts.map +1 -1
- package/lib/typescript/i18n/strings.d.ts.map +1 -1
- package/lib/typescript/main.d.ts +1 -1
- package/lib/typescript/main.d.ts.map +1 -1
- package/lib/typescript/networking/api-requests/user.api.d.ts +27 -0
- package/lib/typescript/networking/api-requests/user.api.d.ts.map +1 -1
- package/lib/typescript/networking/authRefresh.d.ts +4 -1
- package/lib/typescript/networking/authRefresh.d.ts.map +1 -1
- package/lib/typescript/networking/outboundQueue.d.ts +0 -16
- package/lib/typescript/networking/outboundQueue.d.ts.map +1 -1
- package/lib/typescript/networking/stanzaHandlers.d.ts.map +1 -1
- package/lib/typescript/networking/xmpp/presenceInRoom.xmpp.d.ts.map +1 -1
- package/lib/typescript/networking/xmppClient.d.ts +1 -33
- package/lib/typescript/networking/xmppClient.d.ts.map +1 -1
- package/lib/typescript/roomStore/chatSettingsSlice.d.ts.map +1 -1
- package/lib/typescript/roomStore/roomsSlice.d.ts +1 -18
- package/lib/typescript/roomStore/roomsSlice.d.ts.map +1 -1
- package/lib/typescript/types/models/room.model.d.ts +0 -15
- package/lib/typescript/types/models/room.model.d.ts.map +1 -1
- package/lib/typescript/types/types.d.ts +30 -20
- package/lib/typescript/types/types.d.ts.map +1 -1
- package/package.json +6 -1
- package/src/assets/icons.tsx +48 -9
- package/src/components/Header/HeaderRoomList.tsx +24 -6
- package/src/components/MainComponents/ChatHeader.tsx +5 -2
- package/src/components/MainComponents/ChatRoom.tsx +38 -20
- package/src/components/MainComponents/MessageList.tsx +8 -24
- package/src/components/MainComponents/ProfileImagePlaceholder.tsx +21 -14
- package/src/components/MainComponents/RoomList.tsx +236 -39
- package/src/components/Menu/HeaderRoomListMenu.tsx +328 -75
- package/src/components/Modals/AttachSheet/AttachSheet.tsx +331 -97
- package/src/components/Modals/ChatProfileModal/ChatProfileModal.tsx +598 -279
- package/src/components/Modals/ChatProfileModal/ReportChatModal.tsx +244 -0
- package/src/components/Modals/FilePreviewModal/FilePreviewModal.tsx +4 -2
- package/src/components/Modals/Modal/Modal.tsx +7 -0
- package/src/components/Modals/NewChatModal/ModalContent.tsx +6 -3
- package/src/components/Modals/NewChatModal/NewChatModal.tsx +219 -117
- package/src/components/Modals/NewChatModal/UpdNewChatModal.tsx +12 -1
- package/src/components/Modals/ProfileHeader/ProfileHeader.tsx +615 -0
- package/src/components/Modals/ProfileHeader/ProfileMenu.tsx +217 -0
- package/src/components/Modals/SelectUsersModal/SelectUsersModal.tsx +14 -4
- package/src/components/Modals/UserProfileModal/EditUserModal.tsx +9 -25
- package/src/components/Modals/UserProfileModal/UserProfileModal.tsx +617 -307
- package/src/components/Modals/UserSettingsModal/UserSettingsModal.tsx +75 -58
- package/src/components/Modals/styledModalComponents.tsx +9 -2
- package/src/components/RoomComponents/ChatRoomItem.tsx +14 -7
- package/src/components/styled/SendInput.tsx +83 -12
- package/src/components/styled/StyledComponents.ts +9 -3
- package/src/components/styled/StyledInputComponents/StyledInputComponents.tsx +11 -4
- package/src/context/xmppProvider.tsx +27 -46
- package/src/helpers/getChatBackground.ts +18 -0
- package/src/helpers/mediaLibraryRuntime.ts +25 -0
- package/src/helpers/pickImageAsset.ts +68 -0
- package/src/helpers/sheetGestures.ts +25 -0
- package/src/helpers/updateMessagesTillLast.tsx +17 -42
- package/src/hooks/useChatRoomFocus.ts +3 -11
- package/src/hooks/useLogout.tsx +0 -7
- package/src/hooks/useSendMessage.tsx +24 -60
- package/src/i18n/strings.ts +121 -1
- package/src/main.ts +1 -1
- package/src/networking/api-requests/user.api.ts +71 -0
- package/src/networking/authRefresh.ts +25 -4
- package/src/networking/outboundQueue.ts +0 -29
- package/src/networking/stanzaHandlers.ts +1 -9
- package/src/networking/xmpp/presenceInRoom.xmpp.ts +6 -1
- package/src/networking/xmppClient.ts +7 -118
- package/src/roomStore/chatSettingsSlice.ts +3 -1
- package/src/roomStore/roomsSlice.ts +2 -20
- package/src/types/models/room.model.ts +0 -15
- package/src/types/types.ts +32 -20
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styledModalComponents.d.ts","sourceRoot":"","sources":["../../../../src/components/Modals/styledModalComponents.tsx"],"names":[],"mappings":"AAAA,cAAc;AAKd,eAAO,MAAM,eAAe,iPAQ3B,CAAC;AAEF,eAAO,MAAM,WAAW,mYAQvB,CAAC;AAEF,eAAO,MAAM,cAAc,iPAa1B,CAAC;AAEF,eAAO,MAAM,UAAU,iPAItB,CAAC;AAEF,eAAO,MAAM,gBAAgB,iPAI5B,CAAC;AAEF,eAAO,MAAM,cAAc,iPAK1B,CAAC;AAEF,eAAO,MAAM,wBAAwB,iPASpC,CAAC;AAEF,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"styledModalComponents.d.ts","sourceRoot":"","sources":["../../../../src/components/Modals/styledModalComponents.tsx"],"names":[],"mappings":"AAAA,cAAc;AAKd,eAAO,MAAM,eAAe,iPAQ3B,CAAC;AAEF,eAAO,MAAM,WAAW,mYAQvB,CAAC;AAEF,eAAO,MAAM,cAAc,iPAa1B,CAAC;AAEF,eAAO,MAAM,UAAU,iPAItB,CAAC;AAEF,eAAO,MAAM,gBAAgB,iPAI5B,CAAC;AAEF,eAAO,MAAM,cAAc,iPAK1B,CAAC;AAEF,eAAO,MAAM,wBAAwB,iPASpC,CAAC;AAEF,eAAO,MAAM,eAAe,iPA+B3B,CAAC;AAEF,eAAO,MAAM,UAAU,iPAItB,CAAC;AAEF,eAAO,MAAM,WAAW,iPAIvB,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;oBAK3B,CAAC;AAEF,eAAO,MAAM,YAAY,iPAKxB,CAAC;AAEF,eAAO,MAAM,QAAQ,iPAMpB,CAAC;AAEF,eAAO,MAAM,QAAQ;eACR,MAAM;iBACJ,MAAM;;eADR,MAAM;iBACJ,MAAM;oBAKpB,CAAC;AAEF,eAAO,MAAM,UAAU,iPAItB,CAAC;AAEF,eAAO,MAAM,iBAAiB,iPAO7B,CAAC;AAEF,eAAO,MAAM,SAAS,iPAIrB,CAAC;AAEF,eAAO,MAAM,KAAK,iPAGjB,CAAC;AAEF,eAAO,MAAM,YAAY,6PAExB,CAAC;AAEF,eAAO,MAAM,YAAY,iPAMxB,CAAC;AAEF,eAAO,MAAM,QAAQ,iPAIpB,CAAC;AAEF,eAAO,MAAM,OAAO,iPAInB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatRoomItem.d.ts","sourceRoot":"","sources":["../../../../src/components/RoomComponents/ChatRoomItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAcnD,UAAU,iBAAiB;IACzB,IAAI,EAAE,KAAK,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,
|
|
1
|
+
{"version":3,"file":"ChatRoomItem.d.ts","sourceRoot":"","sources":["../../../../src/components/RoomComponents/ChatRoomItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAcnD,UAAU,iBAAiB;IACzB,IAAI,EAAE,KAAK,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA+M7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SendInput.d.ts","sourceRoot":"","sources":["../../../../src/components/styled/SendInput.tsx"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,KAAmD,MAAM,OAAO,CAAC;AAMxE,OAAO,EAAE,OAAO,EAAa,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"SendInput.d.ts","sourceRoot":"","sources":["../../../../src/components/styled/SendInput.tsx"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,KAAmD,MAAM,OAAO,CAAC;AAMxE,OAAO,EAAE,OAAO,EAAa,MAAM,mBAAmB,CAAC;AAkEvD,UAAU,cAAc;IACtB,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IACzC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,CAAC,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;CAC5D;AAED,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAirBvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StyledComponents.d.ts","sourceRoot":"","sources":["../../../../src/components/styled/StyledComponents.ts"],"names":[],"mappings":"AAAA,cAAc;AAQd,eAAO,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tD,CAAC;AAEF,eAAO,MAAM,YAAY,mYAUxB,CAAC;AAEF,eAAO,MAAM,gBAAgB,iPAI5B,CAAC;AAEF,eAAO,MAAM,YAAY;WAAwB,MAAM;YAAU,MAAM;;WAAtB,MAAM;YAAU,MAAM;oBAItE,CAAC;AAEF,eAAO,MAAM,OAAO,iPAWnB,CAAC;AAEF,eAAO,MAAM,iBAAiB;aACnB,OAAO;YACR,MAAM;eACH,MAAM;;aAFR,OAAO;YACR,MAAM;eACH,MAAM;oBAKlB,CAAC;AAEF,eAAO,MAAM,SAAS,2PAErB,CAAC;AAEF,eAAO,MAAM,mBAAmB,iPAK/B,CAAC;AAEF,eAAO,MAAM,WAAW,iPAKvB,CAAC;AAEF,eAAO,MAAM,eAAe,iPAG3B,CAAC;AAEF,eAAO,MAAM,IAAI,iPAIhB,CAAC;AAEF,eAAO,MAAM,YAAY;iBAA8B,MAAM;;iBAAN,MAAM;oBAK5D,CAAC;AAEF,eAAO,MAAM,aAAa,mYAQzB,CAAC;AAEF,eAAO,MAAM,OAAO;cACR,MAAM;WACT,MAAM;iBACA,OAAO;;cAFV,MAAM;WACT,MAAM;iBACA,OAAO;oBAWrB,CAAC;AAEF,eAAO,MAAM,mBAAmB,iPAS/B,CAAC;AAEF,eAAO,MAAM,aAAa;YAAyB,OAAO;;YAAP,OAAO;oBAazD,CAAC"}
|
package/lib/typescript/components/styled/StyledInputComponents/StyledInputComponents.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StyledInputComponents.d.ts","sourceRoot":"","sources":["../../../../../src/components/styled/StyledInputComponents/StyledInputComponents.tsx"],"names":[],"mappings":"AAAA,cAAc;AAad,eAAO,MAAM,cAAc;aAA0B,OAAO;;aAAP,OAAO;
|
|
1
|
+
{"version":3,"file":"StyledInputComponents.d.ts","sourceRoot":"","sources":["../../../../../src/components/styled/StyledInputComponents/StyledInputComponents.tsx"],"names":[],"mappings":"AAAA,cAAc;AAad,eAAO,MAAM,cAAc;aAA0B,OAAO;;aAAP,OAAO;oBAiB3D,CAAC;AAEF,eAAO,MAAM,cAAc,iPAI1B,CAAC;AAEF,eAAO,MAAM,UAAU,mPAItB,CAAC;AAEF,eAAO,MAAM,qBAAqB,iPAKjC,CAAC;AAEF,eAAO,MAAM,YAAY;gBACX,OAAO;YACX,MAAM;eACH,MAAM;iBACJ,MAAM;;gBAHP,OAAO;YACX,MAAM;eACH,MAAM;iBACJ,MAAM;oBAmBpB,CAAC;AAEF,eAAO,MAAM,eAAe,iPAAgB,CAAC;AAE7C,eAAO,MAAM,KAAK,iPAIjB,CAAC;AAEF,eAAO,MAAM,SAAS,iPAIrB,CAAC;AAEF,eAAO,MAAM,iBAAiB,iPAI7B,CAAC;AAEF,eAAO,MAAM,eAAe,iPAK3B,CAAC;AAEF,eAAO,MAAM,oBAAoB,iPAKhC,CAAC;AAEF,eAAO,MAAM,WAAW,iPAUvB,CAAC;AAEF,eAAO,MAAM,QAAQ,mPAGpB,CAAC;AAEF,eAAO,MAAM,YAAY,iPAGxB,CAAC;AAEF,eAAO,MAAM,WAAW,2PAKvB,CAAC;AAEF,eAAO,MAAM,aAAa,2PAMzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xmppProvider.d.ts","sourceRoot":"","sources":["../../../src/context/xmppProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,SAAS,EAQV,MAAM,OAAO,CAAC;AAIf,OAAO,UAEN,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,OAAO,EACP,uBAAuB,EAEvB,qBAAqB,EACtB,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"xmppProvider.d.ts","sourceRoot":"","sources":["../../../src/context/xmppProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,SAAS,EAQV,MAAM,OAAO,CAAC;AAIf,OAAO,UAEN,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,OAAO,EACP,uBAAuB,EAEvB,qBAAqB,EACtB,MAAM,gBAAgB,CAAC;AAmCxB,UAAU,QAAQ;IAChB,OAAO,EAAE,UAAU,GAAG,MAAM,CAAC;CAC9B;AAED,UAAU,eAAe;IACvB,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC;IAC1B,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,QAAQ,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC;IAC9B,SAAS,EAAE,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,KAAK,IAAI,CAAC;IAC/C,gBAAgB,EAAE,CAChB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,YAAY,CAAC,EAAE,qBAAqB,KACjC,OAAO,CAAC,UAAU,CAAC,CAAC;CAC1B;AAID,UAAU,iBAAiB;IACzB,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IAIjB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAcD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAuuBpD,CAAC;AAEF,eAAO,MAAM,aAAa,uBAkBzB,CAAC;AAEF,iFAAiF;AACjF,wBAAgB,cAAc,SAE7B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
import type { IConfig } from '../types/types';
|
|
3
|
+
/** Ground behind the conversation, and behind the rounded corners of the
|
|
4
|
+
* header and the composer that sit over it. */
|
|
5
|
+
export declare const DEFAULT_CHAT_BACKGROUND = "#F3F6FC";
|
|
6
|
+
/**
|
|
7
|
+
* One place for the conversation's background colour.
|
|
8
|
+
*
|
|
9
|
+
* The message list has always painted it; the chat container behind it was
|
|
10
|
+
* plain white, which is what made the header's rounded bottom corners and
|
|
11
|
+
* the composer's rounded top corners invisible — the corners revealed the
|
|
12
|
+
* white parent, not the conversation.
|
|
13
|
+
*/
|
|
14
|
+
export declare const getChatBackgroundColor: (config?: IConfig) => string;
|
|
15
|
+
//# sourceMappingURL=getChatBackground.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getChatBackground.d.ts","sourceRoot":"","sources":["../../../src/helpers/getChatBackground.ts"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAE9C;+CAC+C;AAC/C,eAAO,MAAM,uBAAuB,YAAY,CAAC;AAEjD;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,GAAI,SAAS,OAAO,KAAG,MACA,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mediaLibraryRuntime.d.ts","sourceRoot":"","sources":["../../../src/helpers/mediaLibraryRuntime.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,QAAO,GAAG,GAAG,IAkBxC,CAAC;AAEF,eAAO,MAAM,wBAAwB,YAEpC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A picked image in the shape React Native's FormData understands.
|
|
3
|
+
*
|
|
4
|
+
* NOT a web `File`: RN streams a multipart part straight from a `file://`
|
|
5
|
+
* uri and has no usable Blob/File/atob path. Screens ported from the web
|
|
6
|
+
* client used to carry base64 -> Blob -> File helpers that could never
|
|
7
|
+
* have run here.
|
|
8
|
+
*/
|
|
9
|
+
export interface PickedImage {
|
|
10
|
+
uri: string;
|
|
11
|
+
type: string;
|
|
12
|
+
name: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Ask for library permission, open the picker, and normalise the result.
|
|
16
|
+
*
|
|
17
|
+
* Returns `null` for every non-error outcome — permission refused, user
|
|
18
|
+
* cancelled — so call sites can simply keep their current value.
|
|
19
|
+
*
|
|
20
|
+
* Exists because the avatar pickers are wired to `onPress`, which hands
|
|
21
|
+
* the callback a SyntheticEvent. Storing that event as "the image" (what
|
|
22
|
+
* two screens used to do) rendered a pooled event as an <Image source>
|
|
23
|
+
* and then crashed with "Property is not configurable" when React tried
|
|
24
|
+
* to release it — on top of never letting the user pick anything.
|
|
25
|
+
*/
|
|
26
|
+
export declare const pickImageAsset: () => Promise<PickedImage | null>;
|
|
27
|
+
//# sourceMappingURL=pickImageAsset.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pickImageAsset.d.ts","sourceRoot":"","sources":["../../../src/helpers/pickImageAsset.ts"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,cAAc,QAAa,OAAO,CAAC,WAAW,GAAG,IAAI,CAsCjE,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
/**
|
|
3
|
+
* Shared thresholds for the drag-to-dismiss gesture on bottom sheets (the
|
|
4
|
+
* attach sheet, the profile headers, the room-list menu). Kept in one
|
|
5
|
+
* place so a pull feels identical wherever the user does it — and so the
|
|
6
|
+
* numbers are unit-testable without a touch event.
|
|
7
|
+
*/
|
|
8
|
+
/** Drag past this many points and letting go dismisses the sheet. */
|
|
9
|
+
export declare const DISMISS_DISTANCE = 90;
|
|
10
|
+
/** …or flick faster than this, however short the drag. */
|
|
11
|
+
export declare const DISMISS_VELOCITY = 0.8;
|
|
12
|
+
/**
|
|
13
|
+
* Claim a drag only once it is clearly a downward pull, so a tap on a row
|
|
14
|
+
* still registers and a horizontal swipe stays with whatever scrolls
|
|
15
|
+
* sideways inside the sheet.
|
|
16
|
+
*/
|
|
17
|
+
export declare const shouldClaimVerticalDrag: (dy: number, dx: number) => boolean;
|
|
18
|
+
/** Far enough / fast enough to let go of the sheet. */
|
|
19
|
+
export declare const shouldDismissOnDrag: (dy: number, vy: number) => boolean;
|
|
20
|
+
//# sourceMappingURL=sheetGestures.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheetGestures.d.ts","sourceRoot":"","sources":["../../../src/helpers/sheetGestures.ts"],"names":[],"mappings":"AAAA,cAAc;AAEd;;;;;GAKG;AAEH,qEAAqE;AACrE,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,0DAA0D;AAC1D,eAAO,MAAM,gBAAgB,MAAM,CAAC;AAEpC;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,GAAI,IAAI,MAAM,EAAE,IAAI,MAAM,YACjB,CAAC;AAE9C,uDAAuD;AACvD,eAAO,MAAM,mBAAmB,GAAI,IAAI,MAAM,EAAE,IAAI,MAAM,YACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateMessagesTillLast.d.ts","sourceRoot":"","sources":["../../../src/helpers/updateMessagesTillLast.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAGlD,OAAO,EAAY,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAWjD,eAAO,MAAM,sBAAsB,GACjC,OAAO;IACL,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC;CACtB,EACD,QAAQ,UAAU,EAClB,kBAAa,EACb,yBAAoB,EACpB,yBAAoB,
|
|
1
|
+
{"version":3,"file":"updateMessagesTillLast.d.ts","sourceRoot":"","sources":["../../../src/helpers/updateMessagesTillLast.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAGlD,OAAO,EAAY,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAWjD,eAAO,MAAM,sBAAsB,GACjC,OAAO;IACL,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC;CACtB,EACD,QAAQ,UAAU,EAClB,kBAAa,EACb,yBAAoB,EACpB,yBAAoB,kBAqFrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useChatRoomFocus.d.ts","sourceRoot":"","sources":["../../../src/hooks/useChatRoomFocus.ts"],"names":[],"mappings":"AAUA,UAAU,uBAAuB;IAC/B,wEAAwE;IACxE,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACnC;;;;;;;OAOG;IACH,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,gBAAgB,GAAI,yBAG9B,uBAAuB,
|
|
1
|
+
{"version":3,"file":"useChatRoomFocus.d.ts","sourceRoot":"","sources":["../../../src/hooks/useChatRoomFocus.ts"],"names":[],"mappings":"AAUA,UAAU,uBAAuB;IAC/B,wEAAwE;IACxE,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACnC;;;;;;;OAOG;IACH,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,gBAAgB,GAAI,yBAG9B,uBAAuB,SAuCzB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLogout.d.ts","sourceRoot":"","sources":["../../../src/hooks/useLogout.tsx"],"names":[],"mappings":"AA0BA,QAAA,MAAM,aAAa;IACjB;;;;;;;;;;;;;;;;;;;;OAoBG;yBACsB,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"useLogout.d.ts","sourceRoot":"","sources":["../../../src/hooks/useLogout.tsx"],"names":[],"mappings":"AA0BA,QAAA,MAAM,aAAa;IACjB;;;;;;;;;;;;;;;;;;;;OAoBG;yBACsB,OAAO,CAAC,IAAI,CAAC;CA4FvC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,SAAS,QAAO,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAahD,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSendMessage.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSendMessage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useSendMessage.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSendMessage.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,OAAO,EAAY,MAAM,gBAAgB,CAAC;AAwCxD,eAAO,MAAM,cAAc,GAAI,kBAAkB,OAAO;2BAwCzC,MAAM,iBACA,MAAM,YACX,OAAO,cACL,OAAO,gBACL,MAAM,eAOP,MAAM;sBA6Ob,GAAG,QACH,MAAM,iBACG,MAAM,YACZ,OAAO,cACL,OAAO,gBACL,MAAM,eACN,MAAM;+BA2XL,MAAM,mBAAmB,MAAM;6BAvD9B,MAAM;kDAwFb,MAAM,KAAG,OAAO;CAoB7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strings.d.ts","sourceRoot":"","sources":["../../../src/i18n/strings.ts"],"names":[],"mappings":"AAaA,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"strings.d.ts","sourceRoot":"","sources":["../../../src/i18n/strings.ts"],"names":[],"mappings":"AAaA,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AA41CnD,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAOzD,CAAC;AAEF,eAAO,MAAM,mBAAmB,OAAO,CAAC;AAExC,gFAAgF;AAChF,eAAO,MAAM,cAAc,GAAI,SAAS,MAAM,GAAG,IAAI,KAAG,MAIf,CAAC;AAE1C;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAC7B,SAAS,MAAM,GAAG,IAAI,EACtB,YAAY,aAAa,GAAG,IAAI,KAC/B,aAQF,CAAC;AAEF,6DAA6D;AAC7D,eAAO,MAAM,WAAW,GACtB,UAAU,MAAM,EAChB,OAAO,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KACrC,MAKF,CAAC;AAEF,uDAAuD;AACvD,eAAO,MAAM,YAAY,GACvB,KAAK,MAAM,EACX,SAAS,MAAM,GAAG,IAAI,EACtB,YAAY,aAAa,GAAG,IAAI,EAChC,OAAO,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KACrC,MAGF,CAAC"}
|
package/lib/typescript/main.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export { ReduxWrapper as Chat } from './components/MainComponents/ReduxWrapper';
|
|
|
27
27
|
export { XmppProvider } from './context/xmppProvider';
|
|
28
28
|
export { useUnread } from './hooks/useUnreadMessagesCounter';
|
|
29
29
|
export { useChatRoomFocus } from './hooks/useChatRoomFocus';
|
|
30
|
-
export { logoutService } from './hooks/useLogout';
|
|
30
|
+
export { logoutService, useLogout } from './hooks/useLogout';
|
|
31
31
|
export { useQRCodeChat, handleQRChatId } from './hooks/useQRCodeChatHandler';
|
|
32
32
|
export { resendMessage } from './utils/resendMessage';
|
|
33
33
|
export { useChatFonts } from './hooks/useChatFonts';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,gCAAgC,CAAC;AAGxC,OAAO,EAAE,YAAY,IAAI,IAAI,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAGtD,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"main.d.ts","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5 +12,32 @@ export declare function updateMe(data: any): Promise<import("axios").AxiosRespon
|
|
|
12
12
|
export declare function updateProfile(fd: FormData): Promise<{
|
|
13
13
|
user: User;
|
|
14
14
|
}>;
|
|
15
|
+
/** One entry of `GET /v2/files/`, normalised for the UI. */
|
|
16
|
+
export interface UserFile {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
url: string;
|
|
20
|
+
mimetype: string;
|
|
21
|
+
createdAt?: string;
|
|
22
|
+
size?: number;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Files uploaded by the signed-in user (the JWT owner) — the profile
|
|
26
|
+
* screen's Media and Documents tabs.
|
|
27
|
+
*
|
|
28
|
+
* v2 answers `{ results, pagination }` and, for backward compatibility,
|
|
29
|
+
* also `{ limit, offset, total, items }`; older deployments only have the
|
|
30
|
+
* legacy shape. Read whichever is there instead of betting on one. Field
|
|
31
|
+
* names vary the same way between deployments (`location` vs `locations[]`,
|
|
32
|
+
* `originalname` vs `filename`), so each one falls through its aliases and
|
|
33
|
+
* anything without a usable URL is dropped rather than rendered as a dead
|
|
34
|
+
* row.
|
|
35
|
+
*/
|
|
36
|
+
export declare function getUserFiles(options?: {
|
|
37
|
+
limit?: number;
|
|
38
|
+
offset?: number;
|
|
39
|
+
}): Promise<UserFile[]>;
|
|
40
|
+
/** Images and video go to the Media tab, everything else to Documents. */
|
|
41
|
+
export declare const isMediaFile: (file: UserFile) => boolean;
|
|
15
42
|
export {};
|
|
16
43
|
//# sourceMappingURL=user.api.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.api.d.ts","sourceRoot":"","sources":["../../../../src/networking/api-requests/user.api.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC,UAAU,gBAAgB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wBAAsB,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EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,YAAY,CAAC,OAAO,CAAC,EAAE;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,CAiCtB;AAED,0EAA0E;AAC1E,eAAO,MAAM,WAAW,GAAI,MAAM,QAAQ,KAAG,OAQ5C,CAAC"}
|
|
@@ -86,7 +86,10 @@ export declare function refreshAuthTokens(options?: RefreshOptions): Promise<Ref
|
|
|
86
86
|
* tokens are fresh" and have no meaningful error handling — chat
|
|
87
87
|
* bootstrap, XMPP reconnect. Never rejects.
|
|
88
88
|
*/
|
|
89
|
-
export
|
|
89
|
+
export interface QuietRefreshOptions {
|
|
90
|
+
force?: boolean;
|
|
91
|
+
}
|
|
92
|
+
export declare function refreshAuthTokensQuietly(options?: QuietRefreshOptions): Promise<RefreshResult | null>;
|
|
90
93
|
/** Test seam — drops any shared in-flight promise between cases. */
|
|
91
94
|
export declare function __resetAuthRefreshStateForTests(): void;
|
|
92
95
|
//# sourceMappingURL=authRefresh.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authRefresh.d.ts","sourceRoot":"","sources":["../../../src/networking/authRefresh.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,MAAM,MAAM,gBAAgB,GACxB,qBAAqB,GACrB,+BAA+B,GAC/B,8BAA8B,GAC9B,yBAAyB,CAAC;AAE9B,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;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AAE,MAAM,CAAC;CACvB;AAOD;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,aAAa,CAAC,CAiBxB;AAED;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,wBAAsB,wBAAwB,CAC5C,OAAO,CAAC,EAAE,mBAAmB,GAC5B,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAiB/B;AAED,oEAAoE;AACpE,wBAAgB,+BAA+B,IAAI,IAAI,CAGtD"}
|
|
@@ -44,21 +44,6 @@ export interface QueuedSend {
|
|
|
44
44
|
* OUTBOUND_QUEUE_TTL_MS when omitted.
|
|
45
45
|
*/
|
|
46
46
|
ttlMs?: number;
|
|
47
|
-
/**
|
|
48
|
-
* True once the stanza was actually written to a live, online stream.
|
|
49
|
-
*
|
|
50
|
-
* Such a send has most likely reached the server already — only its
|
|
51
|
-
* echo may still be in flight. Blind-replaying it on the next 'online'
|
|
52
|
-
* event is what produced real duplicates on the recipient side: a send
|
|
53
|
-
* is followed by a liveness probe which, at the time, force-reconnected
|
|
54
|
-
* a perfectly healthy but quiet stream on a single missed 4s round trip
|
|
55
|
-
* — and the resulting reconnect flushed the queue. (That probe has since
|
|
56
|
-
* been throttled and confirmation-gated, but this guard is the one that
|
|
57
|
-
* actually makes a duplicate impossible.) The queue exists for
|
|
58
|
-
* sends that never made it onto the wire, so those are the only ones
|
|
59
|
-
* safe to replay unattended. Customer-reported #31.
|
|
60
|
-
*/
|
|
61
|
-
sentLive?: boolean;
|
|
62
47
|
/** Replays the original send against a live, online client. */
|
|
63
48
|
send: (client: OutboundQueueClient) => void;
|
|
64
49
|
}
|
|
@@ -80,7 +65,6 @@ export declare function flushOutboundSends(client: OutboundQueueClient, now: num
|
|
|
80
65
|
* the send went through, so the buffered replay is no longer needed and must
|
|
81
66
|
* not fire on a later reconnect. No-op if the id isn't queued.
|
|
82
67
|
*/
|
|
83
|
-
export declare function markOutboundSentLive(optimisticId: string): void;
|
|
84
68
|
export declare function removeOutboundSend(optimisticId: string): void;
|
|
85
69
|
/** Drop everything — called on permanent teardown (logout / close). */
|
|
86
70
|
export declare function clearOutboundSends(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outboundQueue.d.ts","sourceRoot":"","sources":["../../../src/networking/outboundQueue.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;IACrC,qCAAqC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;IAC/D,sBAAsB,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;CACjD;AAED,MAAM,WAAW,UAAU;IACzB,4EAA4E;IAC5E,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,qEAAqE;IACrE,UAAU,EAAE,MAAM,CAAC;IACnB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf
|
|
1
|
+
{"version":3,"file":"outboundQueue.d.ts","sourceRoot":"","sources":["../../../src/networking/outboundQueue.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;IACrC,qCAAqC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;IAC/D,sBAAsB,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;CACjD;AAED,MAAM,WAAW,UAAU;IACzB,4EAA4E;IAC5E,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,qEAAqE;IACrE,UAAU,EAAE,MAAM,CAAC;IACnB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+DAA+D;IAC/D,IAAI,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAC;CAC7C;AAID,eAAO,MAAM,qBAAqB,QAAS,CAAC;AAI5C;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI,CAS1D;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,mBAAmB,EAC3B,GAAG,EAAE,MAAM,GACV,IAAI,CAgBN;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAI7D;AAED,uEAAuE;AACvE,wBAAgB,kBAAkB,IAAI,IAAI,CAEzC;AAED,iDAAiD;AACjD,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stanzaHandlers.d.ts","sourceRoot":"","sources":["../../../src/networking/stanzaHandlers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AA6B9B,QAAA,MAAM,iBAAiB,GAAU,QAAQ,OAAO,oDAgH/C,CAAC;AAEF,QAAA,MAAM,eAAe,GAAU,QAAQ,OAAO,kBAiB7C,CAAC;AAEF,QAAA,MAAM,aAAa,GAAU,QAAQ,OAAO,kBAiB3C,CAAC;AAEF,QAAA,MAAM,gBAAgB,GAAU,QAAQ,GAAG,
|
|
1
|
+
{"version":3,"file":"stanzaHandlers.d.ts","sourceRoot":"","sources":["../../../src/networking/stanzaHandlers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AA6B9B,QAAA,MAAM,iBAAiB,GAAU,QAAQ,OAAO,oDAgH/C,CAA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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presenceInRoom.xmpp.d.ts","sourceRoot":"","sources":["../../../../src/networking/xmpp/presenceInRoom.xmpp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAO,MAAM,cAAc,CAAC;AAE3C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMpC,eAAO,MAAM,cAAc,GACzB,QAAQ,MAAM,EACd,SAAS,MAAM,EACf,cAAY,KACX,OAAO,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"presenceInRoom.xmpp.d.ts","sourceRoot":"","sources":["../../../../src/networking/xmpp/presenceInRoom.xmpp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAO,MAAM,cAAc,CAAC;AAE3C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMpC,eAAO,MAAM,cAAc,GACzB,QAAQ,MAAM,EACd,SAAS,MAAM,EACf,cAAY,KACX,OAAO,CAAC,OAAO,CAqEjB,CAAC"}
|
|
@@ -113,40 +113,8 @@ export declare class XmppClient {
|
|
|
113
113
|
*/
|
|
114
114
|
forceReconnect(): void;
|
|
115
115
|
private streamAliveProbe;
|
|
116
|
-
/** Wall-clock of the last probe, for throttling. */
|
|
117
|
-
private lastStreamProbeAt;
|
|
118
|
-
/** Consecutive failed probes; a reconnect needs confirmation, not one miss. */
|
|
119
|
-
private failedProbeStreak;
|
|
120
|
-
/** Per-probe budget. 4s was under a slow-network ping RTT. */
|
|
121
|
-
private streamProbeTimeoutMs;
|
|
122
|
-
/** Minimum gap between probes, so a burst of sends probes at most once. */
|
|
123
|
-
private minStreamProbeIntervalMs;
|
|
124
|
-
/** Delay before the confirmation probe that a teardown requires. */
|
|
125
|
-
private streamProbeConfirmDelayMs;
|
|
126
|
-
/** Failures needed before `forceReconnect()`. */
|
|
127
|
-
private streamProbeFailuresForReconnect;
|
|
128
|
-
/** Host opt-out for the send-path probe (`xmppPingOnSendEnabled`). */
|
|
129
|
-
private pingOnSendEnabled;
|
|
130
|
-
/**
|
|
131
|
-
* Send-path liveness check. Throttled and skippable by config — unlike
|
|
132
|
-
* the watchdog, this fires from user activity and must not turn a chatty
|
|
133
|
-
* room into a probe storm.
|
|
134
|
-
*/
|
|
135
|
-
ensureStreamAliveAfterSend(): void;
|
|
136
116
|
verifyStreamAlive(timeoutMs?: number): Promise<boolean>;
|
|
137
|
-
|
|
138
|
-
* Check that the stream is really carrying traffic, and tear it down only
|
|
139
|
-
* if that is confirmed false.
|
|
140
|
-
*
|
|
141
|
-
* `force` skips the throttle — used by the periodic watchdog and the
|
|
142
|
-
* NetInfo "we're reachable again" signal, which are already rare and
|
|
143
|
-
* genuinely want to know right now. Send-path callers leave it off so a
|
|
144
|
-
* burst of messages triggers at most one probe.
|
|
145
|
-
*/
|
|
146
|
-
ensureStreamAlive(opts?: {
|
|
147
|
-
force?: boolean;
|
|
148
|
-
reason?: string;
|
|
149
|
-
}): Promise<void>;
|
|
117
|
+
ensureStreamAlive(timeoutMs?: number): Promise<void>;
|
|
150
118
|
reconnect(): Promise<void>;
|
|
151
119
|
/**
|
|
152
120
|
* Single-flight wrapper around credentialsProvider. Multiple concurrent
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xmppClient.d.ts","sourceRoot":"","sources":["../../../src/networking/xmppClient.ts"],"names":[],"mappings":"AAAA,OAAa,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAgFvD,KAAK,aAAa,GAAG,QAAQ,GAAG,UAAU,GAAG,YAAY,GAAG,SAAS,CAAC;AAEtE,UAAU,cAAc;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,MAAM,CAAC,EAAE,aAAa,CAAC;CACxB;AAeD,MAAM,MAAM,uBAAuB,GAAG,MAAM,OAAO,CAAC;IAClD,QAAQ,EAAE,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AAa;WAhDF,MAAM;kBACC,MAAM;mBACL,MAAM;gBACT,MAAM;0BA8CtB,MAAM,yEACN,cAAc,0GACd,cAAc,+GACd,eAAe,0GACf,UAAU;aAnGmE,OAAO,CAAC,IAAI,CAAC;uBAoG1F,aAAa,wFACb,cAAc,mFACd,aAAa,gHACb,gBAAgB,iHACG,CAAC;;AAEtB,wBAAiC"}
|
|
@@ -70,20 +70,6 @@ declare const reducers: {
|
|
|
70
70
|
loadingText?: string;
|
|
71
71
|
}>) => void;
|
|
72
72
|
setUnreadSyncing: (state: WritableDraft<RoomMessagesState>, action: PayloadAction<boolean>) => void;
|
|
73
|
-
/**
|
|
74
|
-
* Records how far the user has actually read in a room: the timestamp
|
|
75
|
-
* of the newest message they had reached when they scrolled away from
|
|
76
|
-
* the bottom, or `null` while they are at the bottom.
|
|
77
|
-
*
|
|
78
|
-
* Written only by MessageList as the user scrolls. Deliberately does
|
|
79
|
-
* NOT touch `unreadMessages` or `lastViewedTimestamp` — it only tells
|
|
80
|
-
* the various "mark this room read" paths what value to stamp instead
|
|
81
|
-
* of `Date.now()`. Customer-reported #33.
|
|
82
|
-
*/
|
|
83
|
-
setReadBoundary: (state: WritableDraft<RoomMessagesState>, action: PayloadAction<{
|
|
84
|
-
chatJID: string;
|
|
85
|
-
boundaryTs: number | null;
|
|
86
|
-
}>) => void;
|
|
87
73
|
setLastViewedTimestamp: (state: WritableDraft<RoomMessagesState>, action: PayloadAction<{
|
|
88
74
|
chatJID: string;
|
|
89
75
|
timestamp: number;
|
|
@@ -191,10 +177,7 @@ export declare const addRoom: import("@reduxjs/toolkit").ActionCreatorWithPayloa
|
|
|
191
177
|
}, "roomMessages/setIsLoading">, setUnreadSyncing: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "roomMessages/setUnreadSyncing">, setLastViewedTimestamp: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
192
178
|
chatJID: string;
|
|
193
179
|
timestamp: number;
|
|
194
|
-
}, "roomMessages/setLastViewedTimestamp">,
|
|
195
|
-
chatJID: string;
|
|
196
|
-
boundaryTs: number | null;
|
|
197
|
-
}, "roomMessages/setReadBoundary">, applyPrivateStoreMarkers: import("@reduxjs/toolkit").ActionCreatorWithPayload<Record<string, number>, "roomMessages/applyPrivateStoreMarkers">, setRoomNoMessages: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
180
|
+
}, "roomMessages/setLastViewedTimestamp">, applyPrivateStoreMarkers: import("@reduxjs/toolkit").ActionCreatorWithPayload<Record<string, number>, "roomMessages/applyPrivateStoreMarkers">, setRoomNoMessages: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
198
181
|
value: boolean;
|
|
199
182
|
chatJID?: string;
|
|
200
183
|
}, "roomMessages/setRoomNoMessages">, setCurrentRoom: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roomsSlice.d.ts","sourceRoot":"","sources":["../../../src/roomStore/roomsSlice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,aAAa,EAAE,KAAK,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC5F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAElF,OAAO,KAAK,UAAU,MAAM,0BAA0B,CAAC;AAWvD,eAAO,MAAM,qBAAqB,MAAM,CAAC;AAiLzC,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC;IACtB,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE;QAAE,CAAC,GAAG,EAA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gHACzB,2BAA2B,sGAC3B,YAAY;aAjPG,MAAM;eACJ,MAAM;WACV,MAAM;eACF,MAAM,EAAE;8BACO,MAAM;WACzB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;iCA6OnC,aAAa;aA5GwB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;gCA6GpC,CAAC;;AAEvB,wBAAkC"}
|
|
@@ -43,21 +43,6 @@ export interface IRoom {
|
|
|
43
43
|
composingList?: string[];
|
|
44
44
|
lastViewedTimestamp?: number;
|
|
45
45
|
unreadMessages?: number;
|
|
46
|
-
/**
|
|
47
|
-
* Timestamp of the newest message the user had actually reached when
|
|
48
|
-
* they scrolled away from the bottom of this room, or null/undefined
|
|
49
|
-
* while they are at the bottom (everything on screen is read).
|
|
50
|
-
*
|
|
51
|
-
* Lives in the store rather than in ChatRoom's local state because
|
|
52
|
-
* several code paths outside the component mark a room read — the
|
|
53
|
-
* AppState background handler, the `isVisible` consumer signal, the
|
|
54
|
-
* visible-room auto-advance, `useChatRoomFocus` — and all of them must
|
|
55
|
-
* stamp what the user actually saw instead of `Date.now()`. Stamping
|
|
56
|
-
* "now" while they are scrolled up silently destroys unread messages,
|
|
57
|
-
* and because those paths also flush to the server-side private store
|
|
58
|
-
* the loss survives an app restart. Customer-reported #33.
|
|
59
|
-
*/
|
|
60
|
-
readBoundaryTs?: number | null;
|
|
61
46
|
noMessages?: boolean;
|
|
62
47
|
role?: string;
|
|
63
48
|
messageStats?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"room.model.d.ts","sourceRoot":"","sources":["../../../../src/types/models/room.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAExD,MAAM,WAAW,UAAU;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;IAE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|
@@ -27,21 +27,6 @@ export interface IRoom {
|
|
|
27
27
|
composingList?: string[];
|
|
28
28
|
lastViewedTimestamp?: number;
|
|
29
29
|
unreadMessages?: number;
|
|
30
|
-
/**
|
|
31
|
-
* Timestamp of the newest message the user had actually reached when
|
|
32
|
-
* they scrolled away from the bottom of this room; null/undefined while
|
|
33
|
-
* they are at the bottom (everything on screen is read).
|
|
34
|
-
*
|
|
35
|
-
* Written only by MessageList as the user scrolls. Every path that marks
|
|
36
|
-
* a room read must prefer this over `Date.now()` — the AppState
|
|
37
|
-
* background handler, the `isVisible` consumer signal, the visible-room
|
|
38
|
-
* auto-advance, `useChatRoomFocus` and logout all flush to the
|
|
39
|
-
* server-side private store, so stamping "now" while the user is
|
|
40
|
-
* scrolled up destroys unread messages permanently (survives an app
|
|
41
|
-
* restart, because the bad marker comes back from the server).
|
|
42
|
-
* Customer-reported #33.
|
|
43
|
-
*/
|
|
44
|
-
readBoundaryTs?: number | null;
|
|
45
30
|
noMessages?: boolean;
|
|
46
31
|
role?: string;
|
|
47
32
|
createdAt?: string | number | Date;
|
|
@@ -278,13 +263,16 @@ export interface TypographyConfig {
|
|
|
278
263
|
};
|
|
279
264
|
/** Attach (photo/document picker) bottom sheet. */
|
|
280
265
|
attachSheet?: {
|
|
281
|
-
/** "
|
|
266
|
+
/** "Photos & Videos" section header. Default 17 / "700". */
|
|
282
267
|
title?: ChatTextStyle;
|
|
283
|
-
/**
|
|
268
|
+
/** "View Library" link next to the section header. Default 15 / "500". */
|
|
269
|
+
viewLibrary?: ChatTextStyle;
|
|
270
|
+
/** Row labels ("Upload a File"). Default 16 / "500". */
|
|
284
271
|
rowLabel?: ChatTextStyle;
|
|
285
|
-
/**
|
|
272
|
+
/** @deprecated Rows no longer render a hint line. */
|
|
286
273
|
rowHint?: ChatTextStyle;
|
|
287
|
-
/** Cancel button
|
|
274
|
+
/** @deprecated The sheet has no Cancel button — it closes by tapping
|
|
275
|
+
* the backdrop, dragging it down, or the hardware back gesture. */
|
|
288
276
|
cancelButton?: ChatTextStyle;
|
|
289
277
|
};
|
|
290
278
|
/**
|
|
@@ -350,6 +338,16 @@ export interface IConfig {
|
|
|
350
338
|
* value takes effect.
|
|
351
339
|
*/
|
|
352
340
|
height?: number;
|
|
341
|
+
/**
|
|
342
|
+
* Extend the header cards (room list + chat) under the status bar:
|
|
343
|
+
* each pads its top by the safe-area inset and paints it white, so
|
|
344
|
+
* the card and the status-bar band are one surface. Use this instead
|
|
345
|
+
* of wrapping `<Chat>` in a top-edge SafeAreaView: a host-side white
|
|
346
|
+
* band above the card shows a hairline seam where the card's
|
|
347
|
+
* shadow/elevation starts. Off by default (hosts that already pad the
|
|
348
|
+
* top keep their layout).
|
|
349
|
+
*/
|
|
350
|
+
safeAreaTop?: boolean;
|
|
353
351
|
};
|
|
354
352
|
disableHeader?: boolean;
|
|
355
353
|
disableMedia?: boolean;
|
|
@@ -372,7 +370,7 @@ export interface IConfig {
|
|
|
372
370
|
enabled: boolean;
|
|
373
371
|
element: any;
|
|
374
372
|
};
|
|
375
|
-
headerMenu?: () => void;
|
|
373
|
+
headerMenu?: (() => void) | boolean;
|
|
376
374
|
headerChatMenu?: () => void;
|
|
377
375
|
chatHeaderSettings?: {
|
|
378
376
|
hide?: boolean;
|
|
@@ -398,6 +396,18 @@ export interface IConfig {
|
|
|
398
396
|
loginFunction: () => Promise<User | null>;
|
|
399
397
|
};
|
|
400
398
|
defaultLogin?: boolean;
|
|
399
|
+
logout?: {
|
|
400
|
+
enabled: boolean;
|
|
401
|
+
label?: string;
|
|
402
|
+
confirm?: boolean | {
|
|
403
|
+
title?: string;
|
|
404
|
+
message?: string;
|
|
405
|
+
confirmText?: string;
|
|
406
|
+
cancelText?: string;
|
|
407
|
+
};
|
|
408
|
+
onBeforeLogout?: () => Promise<boolean | void> | boolean | void;
|
|
409
|
+
onAfterLogout?: () => Promise<void> | void;
|
|
410
|
+
};
|
|
401
411
|
refreshTokens?: {
|
|
402
412
|
enabled: boolean;
|
|
403
413
|
/**
|