@ethora/chat-component-rn 26.10.4 → 26.10.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 +8 -0
- package/README.md +15 -0
- package/app.plugin.js +2 -0
- package/lib/commonjs/assets/icons.js +2 -2
- package/lib/commonjs/assets/icons.js.map +1 -1
- package/lib/commonjs/components/MainComponents/AlbumGrid.js +152 -0
- package/lib/commonjs/components/MainComponents/AlbumGrid.js.map +1 -0
- package/lib/commonjs/components/MainComponents/ChatRoom.js +2 -2
- package/lib/commonjs/components/MainComponents/ChatRoom.js.map +1 -1
- package/lib/commonjs/components/MainComponents/MediaMessage.js +199 -123
- package/lib/commonjs/components/MainComponents/MediaMessage.js.map +1 -1
- package/lib/commonjs/components/MainComponents/MediaUploadOverlay.js +109 -0
- package/lib/commonjs/components/MainComponents/MediaUploadOverlay.js.map +1 -0
- package/lib/commonjs/components/MessageBubble/MediaCaption.js +51 -0
- package/lib/commonjs/components/MessageBubble/MediaCaption.js.map +1 -0
- package/lib/commonjs/components/MessageBubble/Message.js +40 -1
- package/lib/commonjs/components/MessageBubble/Message.js.map +1 -1
- package/lib/commonjs/components/MessageBubble/MessageInteractions.js +2 -1
- package/lib/commonjs/components/MessageBubble/MessageInteractions.js.map +1 -1
- package/lib/commonjs/components/Modals/FilePreviewModal/FilePreviewModal.js +75 -0
- package/lib/commonjs/components/Modals/FilePreviewModal/FilePreviewModal.js.map +1 -1
- package/lib/commonjs/components/RoomComponents/LastMessageItem.js +20 -4
- package/lib/commonjs/components/RoomComponents/LastMessageItem.js.map +1 -1
- package/lib/commonjs/components/RoomComponents/styled/LastAudioMessage.js +3 -2
- package/lib/commonjs/components/RoomComponents/styled/LastAudioMessage.js.map +1 -1
- package/lib/commonjs/components/RoomComponents/styled/LastMessageFile.js +3 -2
- package/lib/commonjs/components/RoomComponents/styled/LastMessageFile.js.map +1 -1
- package/lib/commonjs/components/RoomComponents/styled/LastMessagePhoto.js +3 -2
- package/lib/commonjs/components/RoomComponents/styled/LastMessagePhoto.js.map +1 -1
- package/lib/commonjs/components/RoomComponents/styled/LastMessageVideo.js +3 -2
- package/lib/commonjs/components/RoomComponents/styled/LastMessageVideo.js.map +1 -1
- package/lib/commonjs/components/Thread/ThreadWrapper.js +3 -2
- package/lib/commonjs/components/Thread/ThreadWrapper.js.map +1 -1
- package/lib/commonjs/components/VideoCalls/ActiveCallBar.js +61 -16
- package/lib/commonjs/components/VideoCalls/ActiveCallBar.js.map +1 -1
- package/lib/commonjs/components/VideoCalls/CallIcons.js +41 -16
- package/lib/commonjs/components/VideoCalls/CallIcons.js.map +1 -1
- package/lib/commonjs/components/VideoCalls/VideoCallOverlay.js +183 -9
- package/lib/commonjs/components/VideoCalls/VideoCallOverlay.js.map +1 -1
- package/lib/commonjs/components/VideoCalls/VideoCallSession.js +40 -15
- package/lib/commonjs/components/VideoCalls/VideoCallSession.js.map +1 -1
- package/lib/commonjs/components/VideoCalls/callSessionController.js +49 -26
- package/lib/commonjs/components/VideoCalls/callSessionController.js.map +1 -1
- package/lib/commonjs/components/VideoCalls/callUiStore.js +33 -4
- package/lib/commonjs/components/VideoCalls/callUiStore.js.map +1 -1
- package/lib/commonjs/components/VideoCalls/livekitRuntime.js +9 -1
- package/lib/commonjs/components/VideoCalls/livekitRuntime.js.map +1 -1
- package/lib/commonjs/components/VideoCalls/useCallKeep.js +197 -28
- package/lib/commonjs/components/VideoCalls/useCallKeep.js.map +1 -1
- package/lib/commonjs/components/VideoCalls/useOngoingCallNotification.js +88 -0
- package/lib/commonjs/components/VideoCalls/useOngoingCallNotification.js.map +1 -0
- package/lib/commonjs/components/VideoCalls/usePipTile.js +232 -0
- package/lib/commonjs/components/VideoCalls/usePipTile.js.map +1 -0
- package/lib/commonjs/components/styled/MediaFilePreview.js +60 -47
- package/lib/commonjs/components/styled/MediaFilePreview.js.map +1 -1
- package/lib/commonjs/components/styled/MessageImage.js +16 -6
- package/lib/commonjs/components/styled/MessageImage.js.map +1 -1
- package/lib/commonjs/components/styled/SendInput.js +99 -68
- package/lib/commonjs/components/styled/SendInput.js.map +1 -1
- package/lib/commonjs/components/styled/VideoMessage.js +24 -10
- package/lib/commonjs/components/styled/VideoMessage.js.map +1 -1
- package/lib/commonjs/context/xmppProvider.js +46 -0
- package/lib/commonjs/context/xmppProvider.js.map +1 -1
- package/lib/commonjs/e2ee/fileEnvelope.js +6 -0
- package/lib/commonjs/e2ee/fileEnvelope.js.map +1 -1
- package/lib/commonjs/e2ee/sealedBody.js +32 -2
- package/lib/commonjs/e2ee/sealedBody.js.map +1 -1
- package/lib/commonjs/helpers/albumLayout.js +150 -0
- package/lib/commonjs/helpers/albumLayout.js.map +1 -0
- package/lib/commonjs/helpers/attachments.js +255 -0
- package/lib/commonjs/helpers/attachments.js.map +1 -0
- package/lib/commonjs/helpers/caption.js +214 -0
- package/lib/commonjs/helpers/caption.js.map +1 -0
- package/lib/commonjs/helpers/createMainMessageForThread.js +5 -1
- package/lib/commonjs/helpers/createMainMessageForThread.js.map +1 -1
- package/lib/commonjs/helpers/createMessageFromXml.js +19 -5
- package/lib/commonjs/helpers/createMessageFromXml.js.map +1 -1
- package/lib/commonjs/helpers/fileKind.js +40 -0
- package/lib/commonjs/helpers/fileKind.js.map +1 -0
- package/lib/commonjs/helpers/getDataFromXml.js +6 -1
- package/lib/commonjs/helpers/getDataFromXml.js.map +1 -1
- package/lib/commonjs/helpers/mapWithConcurrency.js +41 -0
- package/lib/commonjs/helpers/mapWithConcurrency.js.map +1 -0
- package/lib/commonjs/helpers/mediaLimits.js +33 -0
- package/lib/commonjs/helpers/mediaLimits.js.map +1 -0
- package/lib/commonjs/helpers/mediaSendRetry.js +64 -0
- package/lib/commonjs/helpers/mediaSendRetry.js.map +1 -0
- package/lib/commonjs/helpers/mediaWireData.js +62 -0
- package/lib/commonjs/helpers/mediaWireData.js.map +1 -0
- package/lib/commonjs/helpers/mentionSpans.js +19 -0
- package/lib/commonjs/helpers/mentionSpans.js.map +1 -0
- package/lib/commonjs/helpers/mimeToExtension.js +45 -0
- package/lib/commonjs/helpers/mimeToExtension.js.map +1 -1
- package/lib/commonjs/helpers/readReceipts.js +173 -0
- package/lib/commonjs/helpers/readReceipts.js.map +1 -0
- package/lib/commonjs/helpers/repairFilenameEncoding.js +79 -0
- package/lib/commonjs/helpers/repairFilenameEncoding.js.map +1 -0
- package/lib/commonjs/helpers/safeJson.js +18 -0
- package/lib/commonjs/helpers/safeJson.js.map +1 -0
- package/lib/commonjs/helpers/updateMessagesTillLast.js +3 -1
- package/lib/commonjs/helpers/updateMessagesTillLast.js.map +1 -1
- package/lib/commonjs/hooks/useSendMessage.js +384 -193
- package/lib/commonjs/hooks/useSendMessage.js.map +1 -1
- package/lib/commonjs/i18n/strings.js +144 -0
- package/lib/commonjs/i18n/strings.js.map +1 -1
- package/lib/commonjs/main.js.map +1 -1
- package/lib/commonjs/networking/api-requests/auth.api.js +62 -3
- package/lib/commonjs/networking/api-requests/auth.api.js.map +1 -1
- package/lib/commonjs/networking/stanzaHandlers.js +100 -3
- package/lib/commonjs/networking/stanzaHandlers.js.map +1 -1
- package/lib/commonjs/networking/xmpp/handleStanzas.xmpp.js +4 -2
- package/lib/commonjs/networking/xmpp/handleStanzas.xmpp.js.map +1 -1
- package/lib/commonjs/networking/xmpp/sendDisplayedMarker.xmpp.js +28 -0
- package/lib/commonjs/networking/xmpp/sendDisplayedMarker.xmpp.js.map +1 -0
- package/lib/commonjs/networking/xmpp/sendMediaMessage.xmpp.js +53 -2
- package/lib/commonjs/networking/xmpp/sendMediaMessage.xmpp.js.map +1 -1
- package/lib/commonjs/networking/xmpp/sendReceivedReceipt.xmpp.js +28 -0
- package/lib/commonjs/networking/xmpp/sendReceivedReceipt.xmpp.js.map +1 -0
- package/lib/commonjs/networking/xmppClient.js +64 -0
- package/lib/commonjs/networking/xmppClient.js.map +1 -1
- package/lib/commonjs/roomStore/persistence.js +78 -5
- package/lib/commonjs/roomStore/persistence.js.map +1 -1
- package/lib/commonjs/roomStore/roomHeapSlice.js +4 -0
- package/lib/commonjs/roomStore/roomHeapSlice.js.map +1 -1
- package/lib/commonjs/roomStore/roomsSlice.js +114 -1
- package/lib/commonjs/roomStore/roomsSlice.js.map +1 -1
- package/lib/commonjs/types/models/attachment.model.js +2 -0
- package/lib/commonjs/types/models/attachment.model.js.map +1 -0
- package/lib/commonjs/version.js +1 -1
- package/lib/module/assets/icons.js +1 -1
- package/lib/module/assets/icons.js.map +1 -1
- package/lib/module/components/MainComponents/AlbumGrid.js +146 -0
- package/lib/module/components/MainComponents/AlbumGrid.js.map +1 -0
- package/lib/module/components/MainComponents/ChatRoom.js +2 -2
- package/lib/module/components/MainComponents/ChatRoom.js.map +1 -1
- package/lib/module/components/MainComponents/MediaMessage.js +200 -124
- package/lib/module/components/MainComponents/MediaMessage.js.map +1 -1
- package/lib/module/components/MainComponents/MediaUploadOverlay.js +104 -0
- package/lib/module/components/MainComponents/MediaUploadOverlay.js.map +1 -0
- package/lib/module/components/MessageBubble/MediaCaption.js +46 -0
- package/lib/module/components/MessageBubble/MediaCaption.js.map +1 -0
- package/lib/module/components/MessageBubble/Message.js +44 -5
- package/lib/module/components/MessageBubble/Message.js.map +1 -1
- package/lib/module/components/MessageBubble/MessageInteractions.js +2 -1
- package/lib/module/components/MessageBubble/MessageInteractions.js.map +1 -1
- package/lib/module/components/Modals/FilePreviewModal/FilePreviewModal.js +75 -0
- package/lib/module/components/Modals/FilePreviewModal/FilePreviewModal.js.map +1 -1
- package/lib/module/components/RoomComponents/LastMessageItem.js +20 -4
- package/lib/module/components/RoomComponents/LastMessageItem.js.map +1 -1
- package/lib/module/components/RoomComponents/styled/LastAudioMessage.js +3 -2
- package/lib/module/components/RoomComponents/styled/LastAudioMessage.js.map +1 -1
- package/lib/module/components/RoomComponents/styled/LastMessageFile.js +3 -2
- package/lib/module/components/RoomComponents/styled/LastMessageFile.js.map +1 -1
- package/lib/module/components/RoomComponents/styled/LastMessagePhoto.js +3 -2
- package/lib/module/components/RoomComponents/styled/LastMessagePhoto.js.map +1 -1
- package/lib/module/components/RoomComponents/styled/LastMessageVideo.js +3 -2
- package/lib/module/components/RoomComponents/styled/LastMessageVideo.js.map +1 -1
- package/lib/module/components/Thread/ThreadWrapper.js +3 -2
- package/lib/module/components/Thread/ThreadWrapper.js.map +1 -1
- package/lib/module/components/VideoCalls/ActiveCallBar.js +63 -18
- package/lib/module/components/VideoCalls/ActiveCallBar.js.map +1 -1
- package/lib/module/components/VideoCalls/CallIcons.js +38 -15
- package/lib/module/components/VideoCalls/CallIcons.js.map +1 -1
- package/lib/module/components/VideoCalls/VideoCallOverlay.js +185 -11
- package/lib/module/components/VideoCalls/VideoCallOverlay.js.map +1 -1
- package/lib/module/components/VideoCalls/VideoCallSession.js +41 -16
- package/lib/module/components/VideoCalls/VideoCallSession.js.map +1 -1
- package/lib/module/components/VideoCalls/callSessionController.js +46 -24
- package/lib/module/components/VideoCalls/callSessionController.js.map +1 -1
- package/lib/module/components/VideoCalls/callUiStore.js +30 -3
- package/lib/module/components/VideoCalls/callUiStore.js.map +1 -1
- package/lib/module/components/VideoCalls/livekitRuntime.js +9 -1
- package/lib/module/components/VideoCalls/livekitRuntime.js.map +1 -1
- package/lib/module/components/VideoCalls/useCallKeep.js +198 -29
- package/lib/module/components/VideoCalls/useCallKeep.js.map +1 -1
- package/lib/module/components/VideoCalls/useOngoingCallNotification.js +84 -0
- package/lib/module/components/VideoCalls/useOngoingCallNotification.js.map +1 -0
- package/lib/module/components/VideoCalls/usePipTile.js +228 -0
- package/lib/module/components/VideoCalls/usePipTile.js.map +1 -0
- package/lib/module/components/styled/MediaFilePreview.js +61 -48
- package/lib/module/components/styled/MediaFilePreview.js.map +1 -1
- package/lib/module/components/styled/MessageImage.js +16 -6
- package/lib/module/components/styled/MessageImage.js.map +1 -1
- package/lib/module/components/styled/SendInput.js +99 -68
- package/lib/module/components/styled/SendInput.js.map +1 -1
- package/lib/module/components/styled/VideoMessage.js +24 -10
- package/lib/module/components/styled/VideoMessage.js.map +1 -1
- package/lib/module/context/xmppProvider.js +46 -0
- package/lib/module/context/xmppProvider.js.map +1 -1
- package/lib/module/e2ee/fileEnvelope.js +1 -1
- package/lib/module/e2ee/fileEnvelope.js.map +1 -1
- package/lib/module/e2ee/sealedBody.js +32 -2
- package/lib/module/e2ee/sealedBody.js.map +1 -1
- package/lib/module/helpers/albumLayout.js +143 -0
- package/lib/module/helpers/albumLayout.js.map +1 -0
- package/lib/module/helpers/attachments.js +245 -0
- package/lib/module/helpers/attachments.js.map +1 -0
- package/lib/module/helpers/caption.js +207 -0
- package/lib/module/helpers/caption.js.map +1 -0
- package/lib/module/helpers/createMainMessageForThread.js +5 -1
- package/lib/module/helpers/createMainMessageForThread.js.map +1 -1
- package/lib/module/helpers/createMessageFromXml.js +20 -6
- package/lib/module/helpers/createMessageFromXml.js.map +1 -1
- package/lib/module/helpers/fileKind.js +34 -0
- package/lib/module/helpers/fileKind.js.map +1 -0
- package/lib/module/helpers/getDataFromXml.js +6 -1
- package/lib/module/helpers/getDataFromXml.js.map +1 -1
- package/lib/module/helpers/mapWithConcurrency.js +37 -0
- package/lib/module/helpers/mapWithConcurrency.js.map +1 -0
- package/lib/module/helpers/mediaLimits.js +27 -0
- package/lib/module/helpers/mediaLimits.js.map +1 -0
- package/lib/module/helpers/mediaSendRetry.js +55 -0
- package/lib/module/helpers/mediaSendRetry.js.map +1 -0
- package/lib/module/helpers/mediaWireData.js +58 -0
- package/lib/module/helpers/mediaWireData.js.map +1 -0
- package/lib/module/helpers/mentionSpans.js +14 -0
- package/lib/module/helpers/mentionSpans.js.map +1 -0
- package/lib/module/helpers/mimeToExtension.js +43 -0
- package/lib/module/helpers/mimeToExtension.js.map +1 -1
- package/lib/module/helpers/readReceipts.js +160 -0
- package/lib/module/helpers/readReceipts.js.map +1 -0
- package/lib/module/helpers/repairFilenameEncoding.js +74 -0
- package/lib/module/helpers/repairFilenameEncoding.js.map +1 -0
- package/lib/module/helpers/safeJson.js +13 -0
- package/lib/module/helpers/safeJson.js.map +1 -0
- package/lib/module/helpers/updateMessagesTillLast.js +3 -1
- package/lib/module/helpers/updateMessagesTillLast.js.map +1 -1
- package/lib/module/hooks/useSendMessage.js +387 -195
- package/lib/module/hooks/useSendMessage.js.map +1 -1
- package/lib/module/i18n/strings.js +144 -0
- package/lib/module/i18n/strings.js.map +1 -1
- package/lib/module/main.js.map +1 -1
- package/lib/module/networking/api-requests/auth.api.js +62 -3
- package/lib/module/networking/api-requests/auth.api.js.map +1 -1
- package/lib/module/networking/stanzaHandlers.js +97 -4
- package/lib/module/networking/stanzaHandlers.js.map +1 -1
- package/lib/module/networking/xmpp/handleStanzas.xmpp.js +5 -3
- package/lib/module/networking/xmpp/handleStanzas.xmpp.js.map +1 -1
- package/lib/module/networking/xmpp/sendDisplayedMarker.xmpp.js +25 -0
- package/lib/module/networking/xmpp/sendDisplayedMarker.xmpp.js.map +1 -0
- package/lib/module/networking/xmpp/sendMediaMessage.xmpp.js +53 -2
- package/lib/module/networking/xmpp/sendMediaMessage.xmpp.js.map +1 -1
- package/lib/module/networking/xmpp/sendReceivedReceipt.xmpp.js +25 -0
- package/lib/module/networking/xmpp/sendReceivedReceipt.xmpp.js.map +1 -0
- package/lib/module/networking/xmppClient.js +64 -0
- package/lib/module/networking/xmppClient.js.map +1 -1
- package/lib/module/roomStore/persistence.js +78 -5
- package/lib/module/roomStore/persistence.js.map +1 -1
- package/lib/module/roomStore/roomHeapSlice.js +4 -0
- package/lib/module/roomStore/roomHeapSlice.js.map +1 -1
- package/lib/module/roomStore/roomsSlice.js +109 -0
- package/lib/module/roomStore/roomsSlice.js.map +1 -1
- package/lib/module/types/models/attachment.model.js +2 -0
- package/lib/module/types/models/attachment.model.js.map +1 -0
- package/lib/module/version.js +1 -1
- package/lib/typescript/assets/icons.d.ts +6 -1
- package/lib/typescript/assets/icons.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/AlbumGrid.d.ts +21 -0
- package/lib/typescript/components/MainComponents/AlbumGrid.d.ts.map +1 -0
- package/lib/typescript/components/MainComponents/ChatRoom.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/MediaMessage.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/MediaUploadOverlay.d.ts +17 -0
- package/lib/typescript/components/MainComponents/MediaUploadOverlay.d.ts.map +1 -0
- package/lib/typescript/components/MessageBubble/MediaCaption.d.ts +12 -0
- package/lib/typescript/components/MessageBubble/MediaCaption.d.ts.map +1 -0
- package/lib/typescript/components/MessageBubble/Message.d.ts.map +1 -1
- package/lib/typescript/components/MessageBubble/MessageInteractions.d.ts.map +1 -1
- package/lib/typescript/components/Modals/FilePreviewModal/FilePreviewModal.d.ts.map +1 -1
- package/lib/typescript/components/RoomComponents/LastMessageItem.d.ts.map +1 -1
- package/lib/typescript/components/RoomComponents/styled/LastAudioMessage.d.ts +2 -0
- package/lib/typescript/components/RoomComponents/styled/LastAudioMessage.d.ts.map +1 -1
- package/lib/typescript/components/RoomComponents/styled/LastMessageFile.d.ts +2 -0
- package/lib/typescript/components/RoomComponents/styled/LastMessageFile.d.ts.map +1 -1
- package/lib/typescript/components/RoomComponents/styled/LastMessagePhoto.d.ts +2 -0
- package/lib/typescript/components/RoomComponents/styled/LastMessagePhoto.d.ts.map +1 -1
- package/lib/typescript/components/RoomComponents/styled/LastMessageVideo.d.ts +2 -0
- package/lib/typescript/components/RoomComponents/styled/LastMessageVideo.d.ts.map +1 -1
- package/lib/typescript/components/Thread/ThreadWrapper.d.ts.map +1 -1
- package/lib/typescript/components/VideoCalls/ActiveCallBar.d.ts +9 -3
- package/lib/typescript/components/VideoCalls/ActiveCallBar.d.ts.map +1 -1
- package/lib/typescript/components/VideoCalls/CallIcons.d.ts +9 -0
- package/lib/typescript/components/VideoCalls/CallIcons.d.ts.map +1 -1
- package/lib/typescript/components/VideoCalls/VideoCallOverlay.d.ts.map +1 -1
- package/lib/typescript/components/VideoCalls/VideoCallSession.d.ts.map +1 -1
- package/lib/typescript/components/VideoCalls/callSessionController.d.ts +7 -0
- package/lib/typescript/components/VideoCalls/callSessionController.d.ts.map +1 -1
- package/lib/typescript/components/VideoCalls/callUiStore.d.ts +13 -0
- package/lib/typescript/components/VideoCalls/callUiStore.d.ts.map +1 -1
- package/lib/typescript/components/VideoCalls/livekitRuntime.d.ts +5 -0
- package/lib/typescript/components/VideoCalls/livekitRuntime.d.ts.map +1 -1
- package/lib/typescript/components/VideoCalls/useCallKeep.d.ts +12 -0
- package/lib/typescript/components/VideoCalls/useCallKeep.d.ts.map +1 -1
- package/lib/typescript/components/VideoCalls/useOngoingCallNotification.d.ts +10 -0
- package/lib/typescript/components/VideoCalls/useOngoingCallNotification.d.ts.map +1 -0
- package/lib/typescript/components/VideoCalls/usePipTile.d.ts +46 -0
- package/lib/typescript/components/VideoCalls/usePipTile.d.ts.map +1 -0
- package/lib/typescript/components/styled/MediaFilePreview.d.ts.map +1 -1
- package/lib/typescript/components/styled/MessageImage.d.ts +10 -0
- package/lib/typescript/components/styled/MessageImage.d.ts.map +1 -1
- package/lib/typescript/components/styled/SendInput.d.ts +7 -1
- package/lib/typescript/components/styled/SendInput.d.ts.map +1 -1
- package/lib/typescript/components/styled/VideoMessage.d.ts +7 -0
- package/lib/typescript/components/styled/VideoMessage.d.ts.map +1 -1
- package/lib/typescript/context/xmppProvider.d.ts.map +1 -1
- package/lib/typescript/e2ee/fileEnvelope.d.ts +1 -1
- package/lib/typescript/e2ee/fileEnvelope.d.ts.map +1 -1
- package/lib/typescript/e2ee/sealedBody.d.ts +16 -0
- package/lib/typescript/e2ee/sealedBody.d.ts.map +1 -1
- package/lib/typescript/helpers/albumLayout.d.ts +66 -0
- package/lib/typescript/helpers/albumLayout.d.ts.map +1 -0
- package/lib/typescript/helpers/attachments.d.ts +55 -0
- package/lib/typescript/helpers/attachments.d.ts.map +1 -0
- package/lib/typescript/helpers/caption.d.ts +64 -0
- package/lib/typescript/helpers/caption.d.ts.map +1 -0
- package/lib/typescript/helpers/createMainMessageForThread.d.ts.map +1 -1
- package/lib/typescript/helpers/createMessageFromXml.d.ts.map +1 -1
- package/lib/typescript/helpers/fileKind.d.ts +20 -0
- package/lib/typescript/helpers/fileKind.d.ts.map +1 -0
- package/lib/typescript/helpers/getDataFromXml.d.ts.map +1 -1
- package/lib/typescript/helpers/mapWithConcurrency.d.ts +9 -0
- package/lib/typescript/helpers/mapWithConcurrency.d.ts.map +1 -0
- package/lib/typescript/helpers/mediaLimits.d.ts +13 -0
- package/lib/typescript/helpers/mediaLimits.d.ts.map +1 -0
- package/lib/typescript/helpers/mediaSendRetry.d.ts +26 -0
- package/lib/typescript/helpers/mediaSendRetry.d.ts.map +1 -0
- package/lib/typescript/helpers/mediaWireData.d.ts +16 -0
- package/lib/typescript/helpers/mediaWireData.d.ts.map +1 -0
- package/lib/typescript/helpers/mentionSpans.d.ts +8 -0
- package/lib/typescript/helpers/mentionSpans.d.ts.map +1 -0
- package/lib/typescript/helpers/mimeToExtension.d.ts +7 -0
- package/lib/typescript/helpers/mimeToExtension.d.ts.map +1 -1
- package/lib/typescript/helpers/readReceipts.d.ts +82 -0
- package/lib/typescript/helpers/readReceipts.d.ts.map +1 -0
- package/lib/typescript/helpers/repairFilenameEncoding.d.ts +12 -0
- package/lib/typescript/helpers/repairFilenameEncoding.d.ts.map +1 -0
- package/lib/typescript/helpers/safeJson.d.ts +2 -0
- package/lib/typescript/helpers/safeJson.d.ts.map +1 -0
- package/lib/typescript/helpers/updateMessagesTillLast.d.ts.map +1 -1
- package/lib/typescript/hooks/useSendMessage.d.ts +2 -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/auth.api.d.ts +2 -0
- package/lib/typescript/networking/api-requests/auth.api.d.ts.map +1 -1
- package/lib/typescript/networking/stanzaHandlers.d.ts +7 -3
- package/lib/typescript/networking/stanzaHandlers.d.ts.map +1 -1
- package/lib/typescript/networking/xmpp/handleStanzas.xmpp.d.ts.map +1 -1
- package/lib/typescript/networking/xmpp/sendDisplayedMarker.xmpp.d.ts +3 -0
- package/lib/typescript/networking/xmpp/sendDisplayedMarker.xmpp.d.ts.map +1 -0
- package/lib/typescript/networking/xmpp/sendMediaMessage.xmpp.d.ts +12 -0
- package/lib/typescript/networking/xmpp/sendMediaMessage.xmpp.d.ts.map +1 -1
- package/lib/typescript/networking/xmpp/sendReceivedReceipt.xmpp.d.ts +3 -0
- package/lib/typescript/networking/xmpp/sendReceivedReceipt.xmpp.d.ts.map +1 -0
- package/lib/typescript/networking/xmppClient.d.ts +15 -0
- package/lib/typescript/networking/xmppClient.d.ts.map +1 -1
- package/lib/typescript/roomStore/persistence.d.ts.map +1 -1
- package/lib/typescript/roomStore/roomHeapSlice.d.ts +22 -1
- package/lib/typescript/roomStore/roomHeapSlice.d.ts.map +1 -1
- package/lib/typescript/roomStore/roomsSlice.d.ts +67 -3
- package/lib/typescript/roomStore/roomsSlice.d.ts.map +1 -1
- package/lib/typescript/types/models/attachment.model.d.ts +52 -0
- package/lib/typescript/types/models/attachment.model.d.ts.map +1 -0
- package/lib/typescript/types/models/message.model.d.ts +26 -0
- package/lib/typescript/types/models/message.model.d.ts.map +1 -1
- package/lib/typescript/types/models/modal.model.d.ts +7 -0
- package/lib/typescript/types/models/modal.model.d.ts.map +1 -1
- package/lib/typescript/types/models/room.model.d.ts +2 -0
- package/lib/typescript/types/models/room.model.d.ts.map +1 -1
- package/lib/typescript/types/types.d.ts +69 -1
- package/lib/typescript/types/types.d.ts.map +1 -1
- package/lib/typescript/version.d.ts +1 -1
- package/package.json +4 -1
- package/plugins/notification-service/Info.plist +31 -0
- package/plugins/notification-service/NotificationService.swift +82 -0
- package/plugins/withNotificationServiceExtension.js +137 -0
- package/src/assets/icons.tsx +20 -2
- package/src/components/MainComponents/AlbumGrid.tsx +183 -0
- package/src/components/MainComponents/ChatRoom.tsx +4 -2
- package/src/components/MainComponents/MediaMessage.tsx +246 -130
- package/src/components/MainComponents/MediaUploadOverlay.tsx +102 -0
- package/src/components/MessageBubble/MediaCaption.tsx +45 -0
- package/src/components/MessageBubble/Message.tsx +71 -3
- package/src/components/MessageBubble/MessageInteractions.tsx +2 -1
- package/src/components/Modals/FilePreviewModal/FilePreviewModal.tsx +64 -0
- package/src/components/RoomComponents/LastMessageItem.tsx +15 -4
- package/src/components/RoomComponents/styled/LastAudioMessage.tsx +6 -3
- package/src/components/RoomComponents/styled/LastMessageFile.tsx +6 -2
- package/src/components/RoomComponents/styled/LastMessagePhoto.tsx +6 -2
- package/src/components/RoomComponents/styled/LastMessageVideo.tsx +6 -2
- package/src/components/Thread/ThreadWrapper.tsx +5 -9
- package/src/components/VideoCalls/ActiveCallBar.tsx +56 -10
- package/src/components/VideoCalls/CallIcons.tsx +36 -12
- package/src/components/VideoCalls/VideoCallOverlay.tsx +205 -8
- package/src/components/VideoCalls/VideoCallSession.tsx +45 -13
- package/src/components/VideoCalls/callSessionController.ts +51 -20
- package/src/components/VideoCalls/callUiStore.ts +33 -3
- package/src/components/VideoCalls/livekitRuntime.ts +13 -0
- package/src/components/VideoCalls/useCallKeep.ts +204 -33
- package/src/components/VideoCalls/useOngoingCallNotification.ts +113 -0
- package/src/components/VideoCalls/usePipTile.ts +214 -0
- package/src/components/styled/MediaFilePreview.tsx +49 -34
- package/src/components/styled/MessageImage.tsx +21 -5
- package/src/components/styled/SendInput.tsx +101 -87
- package/src/components/styled/VideoMessage.tsx +34 -9
- package/src/context/xmppProvider.tsx +32 -0
- package/src/e2ee/fileEnvelope.ts +1 -1
- package/src/e2ee/sealedBody.ts +44 -5
- package/src/helpers/albumLayout.ts +207 -0
- package/src/helpers/attachments.ts +316 -0
- package/src/helpers/caption.ts +283 -0
- package/src/helpers/createMainMessageForThread.ts +6 -1
- package/src/helpers/createMessageFromXml.ts +21 -5
- package/src/helpers/fileKind.ts +38 -0
- package/src/helpers/getDataFromXml.ts +5 -1
- package/src/helpers/mapWithConcurrency.ts +32 -0
- package/src/helpers/mediaLimits.ts +27 -0
- package/src/helpers/mediaSendRetry.ts +59 -0
- package/src/helpers/mediaWireData.ts +57 -0
- package/src/helpers/mentionSpans.ts +17 -0
- package/src/helpers/mimeToExtension.ts +51 -0
- package/src/helpers/readReceipts.ts +219 -0
- package/src/helpers/repairFilenameEncoding.ts +82 -0
- package/src/helpers/safeJson.ts +11 -0
- package/src/helpers/updateMessagesTillLast.tsx +2 -1
- package/src/hooks/useSendMessage.tsx +448 -249
- package/src/i18n/strings.ts +144 -0
- package/src/main.ts +3 -0
- package/src/networking/api-requests/auth.api.ts +60 -3
- package/src/networking/stanzaHandlers.ts +91 -2
- package/src/networking/xmpp/handleStanzas.xmpp.ts +6 -2
- package/src/networking/xmpp/sendDisplayedMarker.xmpp.ts +31 -0
- package/src/networking/xmpp/sendMediaMessage.xmpp.ts +60 -3
- package/src/networking/xmpp/sendReceivedReceipt.xmpp.ts +31 -0
- package/src/networking/xmppClient.ts +48 -0
- package/src/roomStore/persistence.ts +94 -3
- package/src/roomStore/roomHeapSlice.ts +23 -1
- package/src/roomStore/roomsSlice.ts +112 -1
- package/src/types/models/attachment.model.ts +51 -0
- package/src/types/models/message.model.ts +29 -0
- package/src/types/models/modal.model.ts +7 -0
- package/src/types/models/room.model.ts +2 -0
- package/src/types/types.ts +83 -1
- package/src/version.ts +1 -1
- package/lib/commonjs/components/VideoCalls/useDraggable.js +0 -59
- package/lib/commonjs/components/VideoCalls/useDraggable.js.map +0 -1
- package/lib/module/components/VideoCalls/useDraggable.js +0 -55
- package/lib/module/components/VideoCalls/useDraggable.js.map +0 -1
- package/lib/typescript/components/VideoCalls/useDraggable.d.ts +0 -19
- package/lib/typescript/components/VideoCalls/useDraggable.d.ts.map +0 -1
- package/src/components/VideoCalls/useDraggable.ts +0 -46
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.usePipTile = exports.PIP_TILE_SIZES = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
/**
|
|
10
|
+
* The small video tile of a call, Telegram-style: drag it anywhere and it
|
|
11
|
+
* snaps to the nearest corner when released (a flick carries it towards
|
|
12
|
+
* the flick), pinch it to switch between a small and a large size.
|
|
13
|
+
*
|
|
14
|
+
* Positions are kept per corner rather than per pixel, so the tile stays
|
|
15
|
+
* glued to its corner when the stage changes size (rotation, iPad split
|
|
16
|
+
* view) or the tile itself changes size.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
const PIP_TILE_SIZES = exports.PIP_TILE_SIZES = {
|
|
20
|
+
small: {
|
|
21
|
+
width: 104,
|
|
22
|
+
height: 148
|
|
23
|
+
},
|
|
24
|
+
large: {
|
|
25
|
+
width: 156,
|
|
26
|
+
height: 222
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
const MARGIN = 12;
|
|
30
|
+
// How far a flick carries the tile before picking a corner, in ms of velocity.
|
|
31
|
+
const FLICK_PROJECTION_MS = 160;
|
|
32
|
+
// Pinch past these ratios to change size; in between keeps the current one.
|
|
33
|
+
const GROW_RATIO = 1.12;
|
|
34
|
+
const SHRINK_RATIO = 0.9;
|
|
35
|
+
const SPRING = {
|
|
36
|
+
useNativeDriver: false,
|
|
37
|
+
damping: 20,
|
|
38
|
+
stiffness: 220,
|
|
39
|
+
mass: 0.8
|
|
40
|
+
};
|
|
41
|
+
const touchDistance = touches => {
|
|
42
|
+
const [a, b] = touches;
|
|
43
|
+
return Math.hypot(a.pageX - b.pageX, a.pageY - b.pageY);
|
|
44
|
+
};
|
|
45
|
+
const usePipTile = ({
|
|
46
|
+
topInset = 0
|
|
47
|
+
} = {}) => {
|
|
48
|
+
const [stage, setStage] = (0, _react.useState)(null);
|
|
49
|
+
const [size, setSize] = (0, _react.useState)('small');
|
|
50
|
+
const stageRef = (0, _react.useRef)(null);
|
|
51
|
+
const sizeRef = (0, _react.useRef)('small');
|
|
52
|
+
const cornerRef = (0, _react.useRef)({
|
|
53
|
+
right: true,
|
|
54
|
+
bottom: false
|
|
55
|
+
});
|
|
56
|
+
const topInsetRef = (0, _react.useRef)(topInset);
|
|
57
|
+
topInsetRef.current = topInset;
|
|
58
|
+
const position = (0, _react.useRef)(new _reactNative.Animated.ValueXY({
|
|
59
|
+
x: 0,
|
|
60
|
+
y: 0
|
|
61
|
+
})).current;
|
|
62
|
+
const width = (0, _react.useRef)(new _reactNative.Animated.Value(PIP_TILE_SIZES.small.width)).current;
|
|
63
|
+
const height = (0, _react.useRef)(new _reactNative.Animated.Value(PIP_TILE_SIZES.small.height)).current;
|
|
64
|
+
const pinchScale = (0, _react.useRef)(new _reactNative.Animated.Value(1)).current;
|
|
65
|
+
// Where the tile rests, i.e. where a drag starts from.
|
|
66
|
+
const restRef = (0, _react.useRef)({
|
|
67
|
+
x: 0,
|
|
68
|
+
y: 0
|
|
69
|
+
});
|
|
70
|
+
const gestureRef = (0, _react.useRef)({
|
|
71
|
+
pinching: false,
|
|
72
|
+
startDistance: 0,
|
|
73
|
+
scale: 1
|
|
74
|
+
});
|
|
75
|
+
const cornerPoint = (0, _react.useCallback)((corner, tileSize) => {
|
|
76
|
+
const area = stageRef.current;
|
|
77
|
+
if (!area) {
|
|
78
|
+
return {
|
|
79
|
+
x: 0,
|
|
80
|
+
y: 0
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
const tile = PIP_TILE_SIZES[tileSize];
|
|
84
|
+
const top = MARGIN + topInsetRef.current;
|
|
85
|
+
return {
|
|
86
|
+
x: corner.right ? Math.max(MARGIN, area.width - tile.width - MARGIN) : MARGIN,
|
|
87
|
+
y: corner.bottom ? Math.max(top, area.height - tile.height - MARGIN) : top
|
|
88
|
+
};
|
|
89
|
+
}, []);
|
|
90
|
+
const settle = (0, _react.useCallback)(animated => {
|
|
91
|
+
const tileSize = sizeRef.current;
|
|
92
|
+
const target = cornerPoint(cornerRef.current, tileSize);
|
|
93
|
+
const tile = PIP_TILE_SIZES[tileSize];
|
|
94
|
+
restRef.current = target;
|
|
95
|
+
if (!animated) {
|
|
96
|
+
position.setValue(target);
|
|
97
|
+
width.setValue(tile.width);
|
|
98
|
+
height.setValue(tile.height);
|
|
99
|
+
pinchScale.setValue(1);
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
_reactNative.Animated.parallel([_reactNative.Animated.spring(position, {
|
|
103
|
+
...SPRING,
|
|
104
|
+
toValue: target
|
|
105
|
+
}), _reactNative.Animated.spring(width, {
|
|
106
|
+
...SPRING,
|
|
107
|
+
toValue: tile.width
|
|
108
|
+
}), _reactNative.Animated.spring(height, {
|
|
109
|
+
...SPRING,
|
|
110
|
+
toValue: tile.height
|
|
111
|
+
}), _reactNative.Animated.spring(pinchScale, {
|
|
112
|
+
...SPRING,
|
|
113
|
+
toValue: 1
|
|
114
|
+
})]).start();
|
|
115
|
+
}, [cornerPoint, position, width, height, pinchScale]);
|
|
116
|
+
const onStageLayout = (0, _react.useCallback)(event => {
|
|
117
|
+
const {
|
|
118
|
+
width: w,
|
|
119
|
+
height: h
|
|
120
|
+
} = event.nativeEvent.layout;
|
|
121
|
+
const prev = stageRef.current;
|
|
122
|
+
if (prev && prev.width === w && prev.height === h) {
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
stageRef.current = {
|
|
126
|
+
width: w,
|
|
127
|
+
height: h
|
|
128
|
+
};
|
|
129
|
+
setStage(stageRef.current);
|
|
130
|
+
settle(false);
|
|
131
|
+
}, [settle]);
|
|
132
|
+
|
|
133
|
+
// The safe-area inset arrives after the first layout on some devices.
|
|
134
|
+
(0, _react.useEffect)(() => {
|
|
135
|
+
if (stageRef.current) {
|
|
136
|
+
settle(false);
|
|
137
|
+
}
|
|
138
|
+
}, [topInset, settle]);
|
|
139
|
+
const panHandlers = (0, _react.useMemo)(() => _reactNative.PanResponder.create({
|
|
140
|
+
// Two fingers are always ours (pinch); one finger only once it
|
|
141
|
+
// moves, so a tap still reaches the tile's onPress (swap videos).
|
|
142
|
+
onStartShouldSetPanResponderCapture: event => event.nativeEvent.touches.length >= 2,
|
|
143
|
+
// Own the touch from the start when the tile has no tap target
|
|
144
|
+
// (nothing to swap): an ancestor outside the call Modal would take
|
|
145
|
+
// it otherwise, and the move-capture below would never be asked.
|
|
146
|
+
onStartShouldSetPanResponder: () => true,
|
|
147
|
+
onMoveShouldSetPanResponderCapture: (event, gesture) => event.nativeEvent.touches.length >= 2 || Math.abs(gesture.dx) > 4 || Math.abs(gesture.dy) > 4,
|
|
148
|
+
// Never hand the tile over to the swipe-to-minimize of the screen.
|
|
149
|
+
onPanResponderTerminationRequest: () => false,
|
|
150
|
+
onPanResponderGrant: () => {
|
|
151
|
+
position.stopAnimation();
|
|
152
|
+
width.stopAnimation();
|
|
153
|
+
height.stopAnimation();
|
|
154
|
+
pinchScale.stopAnimation();
|
|
155
|
+
gestureRef.current = {
|
|
156
|
+
pinching: false,
|
|
157
|
+
startDistance: 0,
|
|
158
|
+
scale: 1
|
|
159
|
+
};
|
|
160
|
+
},
|
|
161
|
+
onPanResponderMove: (event, gesture) => {
|
|
162
|
+
const touches = event.nativeEvent.touches;
|
|
163
|
+
const state = gestureRef.current;
|
|
164
|
+
if (touches.length >= 2) {
|
|
165
|
+
const distance = touchDistance(touches);
|
|
166
|
+
if (!state.pinching || state.startDistance <= 0) {
|
|
167
|
+
state.pinching = true;
|
|
168
|
+
state.startDistance = distance;
|
|
169
|
+
} else {
|
|
170
|
+
state.scale = Math.min(1.8, Math.max(0.6, distance / state.startDistance));
|
|
171
|
+
pinchScale.setValue(state.scale);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
position.setValue({
|
|
175
|
+
x: restRef.current.x + gesture.dx,
|
|
176
|
+
y: restRef.current.y + gesture.dy
|
|
177
|
+
});
|
|
178
|
+
},
|
|
179
|
+
onPanResponderRelease: (_event, gesture) => {
|
|
180
|
+
const area = stageRef.current;
|
|
181
|
+
const state = gestureRef.current;
|
|
182
|
+
if (state.pinching) {
|
|
183
|
+
const next = state.scale >= GROW_RATIO ? 'large' : state.scale <= SHRINK_RATIO ? 'small' : sizeRef.current;
|
|
184
|
+
if (next !== sizeRef.current) {
|
|
185
|
+
// Keep the size the finger left it at, then let the spring
|
|
186
|
+
// carry it to the new one, so the tile doesn't jump.
|
|
187
|
+
const from = PIP_TILE_SIZES[sizeRef.current];
|
|
188
|
+
width.setValue(from.width * state.scale);
|
|
189
|
+
height.setValue(from.height * state.scale);
|
|
190
|
+
pinchScale.setValue(1);
|
|
191
|
+
sizeRef.current = next;
|
|
192
|
+
setSize(next);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
if (area) {
|
|
196
|
+
const tile = PIP_TILE_SIZES[sizeRef.current];
|
|
197
|
+
const centerX = restRef.current.x + gesture.dx + gesture.vx * FLICK_PROJECTION_MS + tile.width / 2;
|
|
198
|
+
const centerY = restRef.current.y + gesture.dy + gesture.vy * FLICK_PROJECTION_MS + tile.height / 2;
|
|
199
|
+
cornerRef.current = {
|
|
200
|
+
right: centerX > area.width / 2,
|
|
201
|
+
bottom: centerY > area.height / 2
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
settle(true);
|
|
205
|
+
},
|
|
206
|
+
onPanResponderTerminate: () => settle(true)
|
|
207
|
+
}).panHandlers, [position, width, height, pinchScale, settle]);
|
|
208
|
+
return {
|
|
209
|
+
/** Put on the area the tile moves within. */
|
|
210
|
+
onStageLayout,
|
|
211
|
+
panHandlers,
|
|
212
|
+
size,
|
|
213
|
+
/** Hidden until the stage is measured, so it never flashes at 0,0. */
|
|
214
|
+
style: {
|
|
215
|
+
position: 'absolute',
|
|
216
|
+
left: 0,
|
|
217
|
+
top: 0,
|
|
218
|
+
width,
|
|
219
|
+
height,
|
|
220
|
+
opacity: stage ? 1 : 0,
|
|
221
|
+
transform: [{
|
|
222
|
+
translateX: position.x
|
|
223
|
+
}, {
|
|
224
|
+
translateY: position.y
|
|
225
|
+
}, {
|
|
226
|
+
scale: pinchScale
|
|
227
|
+
}]
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
exports.usePipTile = usePipTile;
|
|
232
|
+
//# sourceMappingURL=usePipTile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","PIP_TILE_SIZES","exports","small","width","height","large","MARGIN","FLICK_PROJECTION_MS","GROW_RATIO","SHRINK_RATIO","SPRING","useNativeDriver","damping","stiffness","mass","touchDistance","touches","a","b","Math","hypot","pageX","pageY","usePipTile","topInset","stage","setStage","useState","size","setSize","stageRef","useRef","sizeRef","cornerRef","right","bottom","topInsetRef","current","position","Animated","ValueXY","x","y","Value","pinchScale","restRef","gestureRef","pinching","startDistance","scale","cornerPoint","useCallback","corner","tileSize","area","tile","top","max","settle","animated","target","setValue","parallel","spring","toValue","start","onStageLayout","event","w","h","nativeEvent","layout","prev","useEffect","panHandlers","useMemo","PanResponder","create","onStartShouldSetPanResponderCapture","length","onStartShouldSetPanResponder","onMoveShouldSetPanResponderCapture","gesture","abs","dx","dy","onPanResponderTerminationRequest","onPanResponderGrant","stopAnimation","onPanResponderMove","state","distance","min","onPanResponderRelease","_event","next","from","centerX","vx","centerY","vy","onPanResponderTerminate","style","left","opacity","transform","translateX","translateY"],"sourceRoot":"../../../../src","sources":["components/VideoCalls/usePipTile.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIO,MAAME,cAAsE,GAAAC,OAAA,CAAAD,cAAA,GAAG;EACpFE,KAAK,EAAE;IAAEC,KAAK,EAAE,GAAG;IAAEC,MAAM,EAAE;EAAI,CAAC;EAClCC,KAAK,EAAE;IAAEF,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pD,KAAK,GAAG,CAAC;QACpF,MAAMgG,OAAO,GACXtD,OAAO,CAACR,OAAO,CAACK,CAAC,GAAGwC,OAAO,CAACG,EAAE,GAAGH,OAAO,CAACkB,EAAE,GAAG7F,mBAAmB,GAAGgD,IAAI,CAACnD,MAAM,GAAG,CAAC;QACrF6B,SAAS,CAACI,OAAO,GAAG;UAClBH,KAAK,EAAE+D,OAAO,GAAG3C,IAAI,CAACnD,KAAK,GAAG,CAAC;UAC/BgC,MAAM,EAAEgE,OAAO,GAAG7C,IAAI,CAAClD,MAAM,GAAG;QAClC,CAAC;MACH;MACAsD,MAAM,CAAC,IAAI,CAAC;IACd,CAAC;IACD2C,uBAAuB,EAAEA,CAAA,KAAM3C,MAAM,CAAC,IAAI;EAC5C,CAAC,CAAC,CAACgB,WAAW,EAChB,CAACpC,QAAQ,EAAEnC,KAAK,EAAEC,MAAM,EAAEwC,UAAU,EAAEc,MAAM,CAC9C,CAAC;EAED,OAAO;IACL;IACAQ,aAAa;IACbQ,WAAW;IACX9C,IAAI;IACJ;IACA0E,KAAK,EAAE;MACLhE,QAAQ,EAAE,UAAmB;MAC7BiE,IAAI,EAAE,CAAC;MACP/C,GAAG,EAAE,CAAC;MACNrD,KAAK;MACLC,MAAM;MACNoG,OAAO,EAAE/E,KAAK,GAAG,CAAC,GAAG,CAAC;MACtBgF,SAAS,EAAE,CACT;QAAEC,UAAU,EAAEpE,QAAQ,CAACG;MAAE,CAAC,EAC1B;QAAEkE,UAAU,EAAErE,QAAQ,CAACI;MAAE,CAAC,EAC1B;QAAEO,KAAK,EAAEL;MAAW,CAAC;IAEzB;EACF,CAAC;AACH,CAAC;AAAC3C,OAAA,CAAAsB,UAAA,GAAAA,UAAA","ignoreList":[]}
|
|
@@ -10,6 +10,7 @@ var _icons = require("../../assets/icons");
|
|
|
10
10
|
var _StyledComponents = require("./StyledComponents");
|
|
11
11
|
var _react = require("react");
|
|
12
12
|
var _expoVideo = require("expo-video");
|
|
13
|
+
var _useT = require("../../i18n/useT");
|
|
13
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
15
|
const VideoThumb = ({
|
|
15
16
|
uri,
|
|
@@ -57,53 +58,65 @@ const MediaFilePreview = ({
|
|
|
57
58
|
handleRemoveImage
|
|
58
59
|
}) => {
|
|
59
60
|
const [previewUri, setPreviewUri] = (0, _react.useState)(null);
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
},
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
61
|
+
const t = (0, _useT.useT)();
|
|
62
|
+
|
|
63
|
+
// The tray holds up to ten files, so it scrolls sideways rather than wrap.
|
|
64
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ScrollView, {
|
|
65
|
+
horizontal: true,
|
|
66
|
+
showsHorizontalScrollIndicator: false,
|
|
67
|
+
keyboardShouldPersistTaps: "handled",
|
|
68
|
+
testID: "media-tray",
|
|
69
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_StyledInputComponents.MediaContainer, {
|
|
70
|
+
children: [filePreviews.map((file, index) => {
|
|
71
|
+
const isImage = file.type?.startsWith('image');
|
|
72
|
+
const isVideo = file.type?.startsWith('video');
|
|
73
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
74
|
+
children: [isImage ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_StyledInputComponents.MediaImage, {
|
|
75
|
+
source: {
|
|
76
|
+
uri: file.uri
|
|
77
|
+
}
|
|
78
|
+
}) : isVideo ? /*#__PURE__*/(0, _jsxRuntime.jsx)(VideoThumb, {
|
|
79
|
+
uri: file.uri,
|
|
80
|
+
onPress: () => setPreviewUri(file.uri)
|
|
81
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
82
|
+
style: {
|
|
83
|
+
width: 70,
|
|
84
|
+
height: 70,
|
|
85
|
+
borderRadius: 8
|
|
86
|
+
},
|
|
87
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.FileIcon, {
|
|
88
|
+
width: 70,
|
|
89
|
+
height: 70
|
|
90
|
+
})
|
|
91
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_StyledComponents.RemoveButton, {
|
|
92
|
+
testID: `media-tray-remove-${index}`,
|
|
93
|
+
accessibilityRole: "button",
|
|
94
|
+
accessibilityLabel: t('attachment.remove'),
|
|
95
|
+
onPress: () => handleRemoveImage(index),
|
|
96
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_StyledComponents.RemoveButtonText, {
|
|
97
|
+
children: "\xD7"
|
|
98
|
+
})
|
|
99
|
+
})]
|
|
100
|
+
}, `${file.name}_${index}`);
|
|
101
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Modal, {
|
|
102
|
+
visible: !!previewUri,
|
|
103
|
+
animationType: "fade",
|
|
104
|
+
transparent: true,
|
|
105
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.SafeAreaView, {
|
|
106
|
+
style: styles.modalContainer,
|
|
107
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
108
|
+
style: styles.closeButton,
|
|
109
|
+
onPress: () => setPreviewUri(null),
|
|
110
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
111
|
+
style: styles.closeText,
|
|
112
|
+
children: "\u2715"
|
|
113
|
+
})
|
|
114
|
+
}), previewUri && /*#__PURE__*/(0, _jsxRuntime.jsx)(FullscreenPreviewVideo, {
|
|
115
|
+
uri: previewUri
|
|
116
|
+
})]
|
|
117
|
+
})
|
|
118
|
+
})]
|
|
119
|
+
})
|
|
107
120
|
});
|
|
108
121
|
};
|
|
109
122
|
exports.MediaFilePreview = MediaFilePreview;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_StyledInputComponents","_icons","_StyledComponents","_react","_expoVideo","_jsxRuntime","VideoThumb","uri","onPress","player","useVideoPlayer","p","muted","jsxs","TouchableOpacity","activeOpacity","style","styles","videoThumb","children","jsx","VideoView","StyleSheet","absoluteFill","contentFit","nativeControls","surfaceType","pointerEvents","View","playOverlay","Text","playIcon","FullscreenPreviewVideo","play","fullVideo","MediaFilePreview","filePreviews","handleRemoveImage","previewUri","setPreviewUri","useState","MediaContainer","map","file","index","isImage","type","startsWith","isVideo","MediaImage","source","width","height","borderRadius","FileIcon","RemoveButton","RemoveButtonText","name","Modal","visible","animationType","transparent","SafeAreaView","modalContainer","closeButton","closeText","exports","create","overflow","backgroundColor","justifyContent","alignItems","fontSize","color","flex","position","top","right","zIndex","fontWeight"],"sourceRoot":"../../../../src","sources":["components/styled/MediaFilePreview.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AAIA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAEA,IAAAK,UAAA,GAAAL,OAAA;
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_StyledInputComponents","_icons","_StyledComponents","_react","_expoVideo","_useT","_jsxRuntime","VideoThumb","uri","onPress","player","useVideoPlayer","p","muted","jsxs","TouchableOpacity","activeOpacity","style","styles","videoThumb","children","jsx","VideoView","StyleSheet","absoluteFill","contentFit","nativeControls","surfaceType","pointerEvents","View","playOverlay","Text","playIcon","FullscreenPreviewVideo","play","fullVideo","MediaFilePreview","filePreviews","handleRemoveImage","previewUri","setPreviewUri","useState","t","useT","ScrollView","horizontal","showsHorizontalScrollIndicator","keyboardShouldPersistTaps","testID","MediaContainer","map","file","index","isImage","type","startsWith","isVideo","MediaImage","source","width","height","borderRadius","FileIcon","RemoveButton","accessibilityRole","accessibilityLabel","RemoveButtonText","name","Modal","visible","animationType","transparent","SafeAreaView","modalContainer","closeButton","closeText","exports","create","overflow","backgroundColor","justifyContent","alignItems","fontSize","color","flex","position","top","right","zIndex","fontWeight"],"sourceRoot":"../../../../src","sources":["components/styled/MediaFilePreview.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AAIA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAEA,IAAAK,UAAA,GAAAL,OAAA;AACA,IAAAM,KAAA,GAAAN,OAAA;AAAuC,IAAAO,WAAA,GAAAP,OAAA;AAOvC,MAAMQ,UAAoD,GAAGA,CAAC;EAC5DC,GAAG;EACHC;AACF,CAAC,KAAK;EACJ,MAAMC,MAAM,GAAG,IAAAC,yBAAc,EAACH,GAAG,EAAGI,CAAC,IAAK;IACxCA,CAAC,CAACC,KAAK,GAAG,IAAI;EAChB,CAAC,CAAC;EACF,oBACE,IAAAP,WAAA,CAAAQ,IAAA,EAAChB,YAAA,CAAAiB,gBAAgB;IACfC,aAAa,EAAE,GAAI;IACnBP,OAAO,EAAEA,OAAQ;IACjBQ,KAAK,EAAEC,MAAM,CAACC,UAAW;IAAAC,QAAA,gBAEzB,IAA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KAAK,EAAE,EAAE;IACTC,MAAM,EAAE,EAAE;IACVC,YAAY,EAAE,CAAC;IACfiB,QAAQ,EAAE,QAAQ;IAClBC,eAAe,EAAE;EACnB,CAAC;EACDjD,WAAW,EAAE;IACX,GAAGP,uBAAU,CAACC,YAAY;IAC1BwD,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBF,eAAe,EAAE;EACnB,CAAC;EACD/C,QAAQ,EAAE;IACRkD,QAAQ,EAAE,EAAE;IACZC,KAAK,EAAE;EACT,CAAC;EACDV,cAAc,EAAE;IACdW,IAAI,EAAE,CAAC;IACPL,eAAe,EAAE,MAAM;IACvBC,cAAc,EAAE;EAClB,CAAC;EACDN,WAAW,EAAE;IACXW,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,EAAE;IACPC,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE,EAAE;IACV7B,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE,EAAE;IACVC,YAAY,EAAE,EAAE;IAChBkB,eAAe,EAAE,uBAAuB;IACxCC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd,CAAC;EACDN,SAAS,EAAE;IACTO,QAAQ,EAAE,EAAE;IACZC,KAAK,EAAE,MAAM;IACbM,UAAU,EAAE;EACd,CAAC;EACDtD,SAAS,EAAE;IACTwB,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE;EACV;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -23,7 +23,9 @@ const CustomMessageImage = ({
|
|
|
23
23
|
fileName,
|
|
24
24
|
originalName,
|
|
25
25
|
mimetype,
|
|
26
|
-
locationPreview
|
|
26
|
+
locationPreview,
|
|
27
|
+
tile,
|
|
28
|
+
onOpen
|
|
27
29
|
}) => {
|
|
28
30
|
// Preview first, original only as a fallback — mirrors the web client,
|
|
29
31
|
// where the <img> src is the preview and `fileURL` is reserved for the
|
|
@@ -32,10 +34,11 @@ const CustomMessageImage = ({
|
|
|
32
34
|
const [loading, setLoading] = (0, _react.useState)(true);
|
|
33
35
|
// Start with a neutral box; swap to the real aspect ratio once the
|
|
34
36
|
// image's natural dimensions are known so it's shown scaled, not cropped.
|
|
35
|
-
const [
|
|
37
|
+
const [measured, setDims] = (0, _react.useState)((0, _mediaDimensions.defaultMediaDims)());
|
|
38
|
+
const dims = tile ?? measured;
|
|
36
39
|
const dispatch = (0, _reactRedux.useDispatch)();
|
|
37
40
|
(0, _react.useEffect)(() => {
|
|
38
|
-
if (!displayURL) {
|
|
41
|
+
if (!displayURL || tile) {
|
|
39
42
|
return;
|
|
40
43
|
}
|
|
41
44
|
let active = true;
|
|
@@ -55,8 +58,12 @@ const CustomMessageImage = ({
|
|
|
55
58
|
return () => {
|
|
56
59
|
active = false;
|
|
57
60
|
};
|
|
58
|
-
}, [displayURL]);
|
|
61
|
+
}, [displayURL, tile]);
|
|
59
62
|
const handleOpen = () => {
|
|
63
|
+
if (onOpen) {
|
|
64
|
+
onOpen();
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
60
67
|
dispatch((0, _chatSettingsSlice.setActiveFile)({
|
|
61
68
|
fileName,
|
|
62
69
|
fileURL,
|
|
@@ -66,7 +73,10 @@ const CustomMessageImage = ({
|
|
|
66
73
|
dispatch((0, _chatSettingsSlice.setActiveModal)(_MODAL_TYPES.MODAL_TYPES.FILE_PREVIEW));
|
|
67
74
|
};
|
|
68
75
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_MediaComponents.Container, {
|
|
69
|
-
style: {
|
|
76
|
+
style: tile ? {
|
|
77
|
+
width: dims.width,
|
|
78
|
+
borderRadius: 0
|
|
79
|
+
} : {
|
|
70
80
|
width: dims.width
|
|
71
81
|
},
|
|
72
82
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
|
|
@@ -92,7 +102,7 @@ const CustomMessageImage = ({
|
|
|
92
102
|
style: {
|
|
93
103
|
width: dims.width,
|
|
94
104
|
height: dims.height,
|
|
95
|
-
borderRadius: 10,
|
|
105
|
+
borderRadius: tile ? 0 : 10,
|
|
96
106
|
backgroundColor: 'rgba(0, 0, 0, 0)'
|
|
97
107
|
},
|
|
98
108
|
onLoadEnd: () => setLoading(false),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_secureFileUrl","_devLogger","_MediaComponents","_reactRedux","_chatSettingsSlice","_MODAL_TYPES","_reactNative","_mediaDimensions","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","maskToken","url","replace","FALLBACK_IMAGE","CustomMessageImage","fileURL","fileName","originalName","mimetype","locationPreview","displayURL","loading","setLoading","useState","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_secureFileUrl","_devLogger","_MediaComponents","_reactRedux","_chatSettingsSlice","_MODAL_TYPES","_reactNative","_mediaDimensions","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","maskToken","url","replace","FALLBACK_IMAGE","CustomMessageImage","fileURL","fileName","originalName","mimetype","locationPreview","tile","onOpen","displayURL","loading","setLoading","useState","measured","setDims","defaultMediaDims","dims","dispatch","useDispatch","useEffect","active","Image","getSize","w","h","fitMediaDimensions","error","pushLog","message","String","handleOpen","setActiveFile","setActiveModal","MODAL_TYPES","FILE_PREVIEW","jsx","Container","style","width","borderRadius","children","jsxs","TouchableOpacity","onPress","activeOpacity","View","position","height","alignItems","justifyContent","zIndex","ActivityIndicator","size","color","source","uri","backgroundColor","onLoadEnd","onError","event","usingPreview","nativeEvent","isSecureFileUrl","requestFileTokenRecovery","resizeMode","_default","exports"],"sourceRoot":"../../../../src","sources":["components/styled/MessageImage.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAA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