@ethora/chat-component-rn 26.10.8 → 26.10.10
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 +7 -0
- package/README.md +1 -1
- package/lib/commonjs/components/MainComponents/AlbumGrid.js +6 -2
- package/lib/commonjs/components/MainComponents/AlbumGrid.js.map +1 -1
- package/lib/commonjs/components/MainComponents/ChatHeader.js +16 -11
- package/lib/commonjs/components/MainComponents/ChatHeader.js.map +1 -1
- package/lib/commonjs/components/MainComponents/MediaMessage.js +13 -0
- package/lib/commonjs/components/MainComponents/MediaMessage.js.map +1 -1
- package/lib/commonjs/components/MainComponents/RoomList.js +7 -16
- package/lib/commonjs/components/MainComponents/RoomList.js.map +1 -1
- package/lib/commonjs/components/Menu/HeaderRoomListMenu.js +3 -3
- package/lib/commonjs/components/Menu/HeaderRoomListMenu.js.map +1 -1
- package/lib/commonjs/components/MessageBubble/Message.js +27 -1
- package/lib/commonjs/components/MessageBubble/Message.js.map +1 -1
- package/lib/commonjs/components/Modals/ChatProfileModal/ChatMediaGrid.js +159 -0
- package/lib/commonjs/components/Modals/ChatProfileModal/ChatMediaGrid.js.map +1 -0
- package/lib/commonjs/components/Modals/ChatProfileModal/ChatProfileModal.js +203 -134
- package/lib/commonjs/components/Modals/ChatProfileModal/ChatProfileModal.js.map +1 -1
- package/lib/commonjs/components/Modals/ChatProfileModal/LeaveChatModal.js +180 -0
- package/lib/commonjs/components/Modals/ChatProfileModal/LeaveChatModal.js.map +1 -0
- package/lib/commonjs/components/Modals/FilePreviewModal/FilePreviewModal.js +100 -162
- package/lib/commonjs/components/Modals/FilePreviewModal/FilePreviewModal.js.map +1 -1
- package/lib/commonjs/components/Modals/FilePreviewModal/MediaViewer.js +824 -0
- package/lib/commonjs/components/Modals/FilePreviewModal/MediaViewer.js.map +1 -0
- package/lib/commonjs/components/Modals/FilePreviewModal/useSaveFile.js +179 -0
- package/lib/commonjs/components/Modals/FilePreviewModal/useSaveFile.js.map +1 -0
- package/lib/commonjs/components/Modals/MessageSearchModal/MessageSearchModal.js +22 -5
- package/lib/commonjs/components/Modals/MessageSearchModal/MessageSearchModal.js.map +1 -1
- package/lib/commonjs/components/VideoCalls/useCallKeep.js +1 -3
- package/lib/commonjs/components/VideoCalls/useCallKeep.js.map +1 -1
- package/lib/commonjs/components/styled/MessageImage.js +4 -1
- package/lib/commonjs/components/styled/MessageImage.js.map +1 -1
- package/lib/commonjs/components/styled/VideoMessage.js +5 -1
- package/lib/commonjs/components/styled/VideoMessage.js.map +1 -1
- package/lib/commonjs/context/MediaSourceContext.js +18 -0
- package/lib/commonjs/context/MediaSourceContext.js.map +1 -0
- package/lib/commonjs/helpers/constants/MODAL_COMPONENTS.js +3 -1
- package/lib/commonjs/helpers/constants/MODAL_COMPONENTS.js.map +1 -1
- package/lib/commonjs/helpers/constants/MODAL_TYPES.js +2 -0
- package/lib/commonjs/helpers/constants/MODAL_TYPES.js.map +1 -1
- package/lib/commonjs/helpers/publicChatsEntry.js +8 -6
- package/lib/commonjs/helpers/publicChatsEntry.js.map +1 -1
- package/lib/commonjs/helpers/roomMedia.js +118 -0
- package/lib/commonjs/helpers/roomMedia.js.map +1 -0
- package/lib/commonjs/i18n/strings.js +36 -0
- package/lib/commonjs/i18n/strings.js.map +1 -1
- package/lib/commonjs/networking/api-requests/rooms.api.js +9 -13
- package/lib/commonjs/networking/api-requests/rooms.api.js.map +1 -1
- package/lib/commonjs/networking/callTokenStanza.js +13 -1
- package/lib/commonjs/networking/callTokenStanza.js.map +1 -1
- package/lib/commonjs/push/sealedPushTask.js +20 -1
- package/lib/commonjs/push/sealedPushTask.js.map +1 -1
- package/lib/commonjs/version.js +1 -1
- package/lib/commonjs/version.js.map +1 -1
- package/lib/module/components/MainComponents/AlbumGrid.js +6 -2
- package/lib/module/components/MainComponents/AlbumGrid.js.map +1 -1
- package/lib/module/components/MainComponents/ChatHeader.js +18 -13
- package/lib/module/components/MainComponents/ChatHeader.js.map +1 -1
- package/lib/module/components/MainComponents/MediaMessage.js +13 -0
- package/lib/module/components/MainComponents/MediaMessage.js.map +1 -1
- package/lib/module/components/MainComponents/RoomList.js +7 -16
- package/lib/module/components/MainComponents/RoomList.js.map +1 -1
- package/lib/module/components/Menu/HeaderRoomListMenu.js +3 -3
- package/lib/module/components/Menu/HeaderRoomListMenu.js.map +1 -1
- package/lib/module/components/MessageBubble/Message.js +27 -1
- package/lib/module/components/MessageBubble/Message.js.map +1 -1
- package/lib/module/components/Modals/ChatProfileModal/ChatMediaGrid.js +154 -0
- package/lib/module/components/Modals/ChatProfileModal/ChatMediaGrid.js.map +1 -0
- package/lib/module/components/Modals/ChatProfileModal/ChatProfileModal.js +204 -136
- package/lib/module/components/Modals/ChatProfileModal/ChatProfileModal.js.map +1 -1
- package/lib/module/components/Modals/ChatProfileModal/LeaveChatModal.js +175 -0
- package/lib/module/components/Modals/ChatProfileModal/LeaveChatModal.js.map +1 -0
- package/lib/module/components/Modals/FilePreviewModal/FilePreviewModal.js +100 -163
- package/lib/module/components/Modals/FilePreviewModal/FilePreviewModal.js.map +1 -1
- package/lib/module/components/Modals/FilePreviewModal/MediaViewer.js +819 -0
- package/lib/module/components/Modals/FilePreviewModal/MediaViewer.js.map +1 -0
- package/lib/module/components/Modals/FilePreviewModal/useSaveFile.js +172 -0
- package/lib/module/components/Modals/FilePreviewModal/useSaveFile.js.map +1 -0
- package/lib/module/components/Modals/MessageSearchModal/MessageSearchModal.js +20 -4
- package/lib/module/components/Modals/MessageSearchModal/MessageSearchModal.js.map +1 -1
- package/lib/module/components/VideoCalls/useCallKeep.js +2 -4
- package/lib/module/components/VideoCalls/useCallKeep.js.map +1 -1
- package/lib/module/components/styled/MessageImage.js +4 -1
- package/lib/module/components/styled/MessageImage.js.map +1 -1
- package/lib/module/components/styled/VideoMessage.js +5 -1
- package/lib/module/components/styled/VideoMessage.js.map +1 -1
- package/lib/module/context/MediaSourceContext.js +13 -0
- package/lib/module/context/MediaSourceContext.js.map +1 -0
- package/lib/module/helpers/constants/MODAL_COMPONENTS.js +2 -1
- package/lib/module/helpers/constants/MODAL_COMPONENTS.js.map +1 -1
- package/lib/module/helpers/constants/MODAL_TYPES.js +2 -0
- package/lib/module/helpers/constants/MODAL_TYPES.js.map +1 -1
- package/lib/module/helpers/publicChatsEntry.js +8 -6
- package/lib/module/helpers/publicChatsEntry.js.map +1 -1
- package/lib/module/helpers/roomMedia.js +112 -0
- package/lib/module/helpers/roomMedia.js.map +1 -0
- package/lib/module/i18n/strings.js +36 -0
- package/lib/module/i18n/strings.js.map +1 -1
- package/lib/module/networking/api-requests/rooms.api.js +9 -13
- package/lib/module/networking/api-requests/rooms.api.js.map +1 -1
- package/lib/module/networking/callTokenStanza.js +13 -1
- package/lib/module/networking/callTokenStanza.js.map +1 -1
- package/lib/module/push/sealedPushTask.js +20 -1
- package/lib/module/push/sealedPushTask.js.map +1 -1
- package/lib/module/version.js +1 -1
- package/lib/module/version.js.map +1 -1
- package/lib/typescript/components/MainComponents/AlbumGrid.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/ChatHeader.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/MediaMessage.d.ts +3 -1
- package/lib/typescript/components/MainComponents/MediaMessage.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/RoomList.d.ts.map +1 -1
- package/lib/typescript/components/Menu/HeaderRoomListMenu.d.ts.map +1 -1
- package/lib/typescript/components/MessageBubble/Message.d.ts.map +1 -1
- package/lib/typescript/components/Modals/ChatProfileModal/ChatMediaGrid.d.ts +16 -0
- package/lib/typescript/components/Modals/ChatProfileModal/ChatMediaGrid.d.ts.map +1 -0
- package/lib/typescript/components/Modals/ChatProfileModal/ChatProfileModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/ChatProfileModal/LeaveChatModal.d.ts +18 -0
- package/lib/typescript/components/Modals/ChatProfileModal/LeaveChatModal.d.ts.map +1 -0
- package/lib/typescript/components/Modals/FilePreviewModal/FilePreviewModal.d.ts +16 -0
- package/lib/typescript/components/Modals/FilePreviewModal/FilePreviewModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/FilePreviewModal/MediaViewer.d.ts +27 -0
- package/lib/typescript/components/Modals/FilePreviewModal/MediaViewer.d.ts.map +1 -0
- package/lib/typescript/components/Modals/FilePreviewModal/useSaveFile.d.ts +9 -0
- package/lib/typescript/components/Modals/FilePreviewModal/useSaveFile.d.ts.map +1 -0
- package/lib/typescript/components/Modals/MessageSearchModal/MessageSearchModal.d.ts +8 -0
- package/lib/typescript/components/Modals/MessageSearchModal/MessageSearchModal.d.ts.map +1 -1
- package/lib/typescript/components/VideoCalls/useCallKeep.d.ts.map +1 -1
- package/lib/typescript/components/styled/MessageImage.d.ts.map +1 -1
- package/lib/typescript/components/styled/VideoMessage.d.ts.map +1 -1
- package/lib/typescript/context/MediaSourceContext.d.ts +4 -0
- package/lib/typescript/context/MediaSourceContext.d.ts.map +1 -0
- package/lib/typescript/helpers/constants/MODAL_COMPONENTS.d.ts.map +1 -1
- package/lib/typescript/helpers/constants/MODAL_TYPES.d.ts +2 -0
- package/lib/typescript/helpers/constants/MODAL_TYPES.d.ts.map +1 -1
- package/lib/typescript/helpers/publicChatsEntry.d.ts +7 -5
- package/lib/typescript/helpers/publicChatsEntry.d.ts.map +1 -1
- package/lib/typescript/helpers/roomMedia.d.ts +26 -0
- package/lib/typescript/helpers/roomMedia.d.ts.map +1 -0
- 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/rooms.api.d.ts +6 -5
- package/lib/typescript/networking/api-requests/rooms.api.d.ts.map +1 -1
- package/lib/typescript/networking/callTokenStanza.d.ts.map +1 -1
- package/lib/typescript/push/sealedPushTask.d.ts +13 -0
- package/lib/typescript/push/sealedPushTask.d.ts.map +1 -1
- package/lib/typescript/types/models/modal.model.d.ts +18 -0
- package/lib/typescript/types/models/modal.model.d.ts.map +1 -1
- package/lib/typescript/types/types.d.ts +18 -0
- package/lib/typescript/types/types.d.ts.map +1 -1
- package/lib/typescript/version.d.ts +1 -1
- package/lib/typescript/version.d.ts.map +1 -1
- package/package.json +9 -2
- package/plugins/notification-service/NotificationService.swift +105 -19
- package/plugins/withNotificationServiceExtension.js +44 -4
- package/src/components/MainComponents/AlbumGrid.tsx +5 -1
- package/src/components/MainComponents/ChatHeader.tsx +16 -11
- package/src/components/MainComponents/MediaMessage.tsx +13 -2
- package/src/components/MainComponents/RoomList.tsx +8 -19
- package/src/components/Menu/HeaderRoomListMenu.tsx +13 -8
- package/src/components/MessageBubble/Message.tsx +24 -1
- package/src/components/Modals/ChatProfileModal/ChatMediaGrid.tsx +174 -0
- package/src/components/Modals/ChatProfileModal/ChatProfileModal.tsx +119 -48
- package/src/components/Modals/ChatProfileModal/LeaveChatModal.tsx +191 -0
- package/src/components/Modals/FilePreviewModal/FilePreviewModal.tsx +115 -185
- package/src/components/Modals/FilePreviewModal/MediaViewer.tsx +880 -0
- package/src/components/Modals/FilePreviewModal/useSaveFile.ts +207 -0
- package/src/components/Modals/MessageSearchModal/MessageSearchModal.tsx +56 -30
- package/src/components/VideoCalls/useCallKeep.ts +2 -4
- package/src/components/styled/MessageImage.tsx +3 -1
- package/src/components/styled/VideoMessage.tsx +5 -1
- package/src/context/MediaSourceContext.tsx +14 -0
- package/src/helpers/constants/MODAL_COMPONENTS.tsx +4 -1
- package/src/helpers/constants/MODAL_TYPES.ts +2 -0
- package/src/helpers/publicChatsEntry.ts +8 -7
- package/src/helpers/roomMedia.ts +126 -0
- package/src/i18n/strings.ts +36 -0
- package/src/main.ts +1 -1
- package/src/networking/api-requests/rooms.api.ts +13 -12
- package/src/networking/callTokenStanza.ts +10 -1
- package/src/push/sealedPushTask.ts +34 -1
- package/src/types/models/modal.model.ts +16 -0
- package/src/types/types.ts +16 -0
- package/src/version.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["AppState","Platform","pushLog","isCallPush","loadPushSecretKey","isReactionPush","openSealedPush","sealedPushEnvelopeOf","SEALED_PUSH_TASK","PLACEHOLDER_TITLE","PLACEHOLDER_REACTION_TITLE","registered","loadTaskManager","require","loadNotifications","pushDataCandidates","payload","root","candidates","data","dataString","unshift","JSON","parse","push","filter","c","sealedPushDataOf","find","candidate","callPushDataOf","notificationContent","result","options","envelope","reaction","jid","msgID","userJid","sealed","type","sound","ok","title","placeholderTitle","placeholderBody","body","content","sender","chat","chatJid","senderJid","presentSealedPush","notifications","scheduleNotificationAsync","console","log","kid","warn","reason","base","identifier","undefined","channelId","reactionChannelId","trigger","registerSealedPushTask","OS","taskManager","defineTask","registerTaskAsync","error","call","currentState","onCallPush","String","callId","
|
|
1
|
+
{"version":3,"names":["AppState","Platform","pushLog","isCallPush","loadPushSecretKey","isReactionPush","openSealedPush","sealedPushEnvelopeOf","SEALED_PUSH_TASK","PLACEHOLDER_TITLE","PLACEHOLDER_REACTION_TITLE","registered","loadTaskManager","require","loadNotifications","pushDataCandidates","payload","root","candidates","data","dataString","unshift","JSON","parse","push","filter","c","sealedPushDataOf","find","candidate","callPushDataOf","notificationContent","result","options","envelope","reaction","jid","msgID","userJid","sealed","type","sound","ok","title","placeholderTitle","placeholderBody","body","content","sender","chat","chatJid","senderJid","presentSealedPush","notifications","scheduleNotificationAsync","console","log","kid","warn","reason","base","identifier","undefined","channelId","reactionChannelId","trigger","image","onMessageShown","e","registerSealedPushTask","OS","taskManager","defineTask","registerTaskAsync","error","call","currentState","onCallPush","String","callId","map","catch","__resetSealedPushTaskForTests"],"sourceRoot":"../../../src","sources":["push/sealedPushTask.ts"],"mappings":";;AAAA,SAASA,QAAQ,EAAEC,QAAQ,QAAQ,cAAc;AACjD,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,UAAU,QAAQ,qBAAqB;AAChD,SAASC,iBAAiB,QAAQ,gBAAgB;AAClD,SACEC,cAAc,EACdC,cAAc,EACdC,oBAAoB,QA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AM,EAAE,oCAAoC,EAAEkE,CAAC,CAAC;IAC1D;EACF,CAAC,CAAC;EACFzD,UAAU,GAAG,IAAI;EACjB0C,aAAa,CAACoB,iBAAiB,CAACjE,gBAAgB,CAAC,CAACyE,KAAK,CAAEb,CAAU,IAAK;IACtEzD,UAAU,GAAG,KAAK;IAClBT,OAAO,CAAC,MAAM,EAAE,+CAA+C,EAAEkE,CAAC,CAAC;EACrE,CAAC,CAAC;EACF,OAAO,IAAI;AACb;;AAEA;AACA,OAAO,MAAMc,6BAA6B,GAAGA,CAAA,KAAY;EACvDvE,UAAU,GAAG,KAAK;AACpB,CAAC","ignoreList":[]}
|
package/lib/module/version.js
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
|
|
3
3
|
// Generated by scripts/sync-version.mjs on `npm version`.
|
|
4
4
|
// Edit package.json's version instead of this file.
|
|
5
|
-
export const ETHORA_CHAT_COMPONENT_VERSION = '26.10.
|
|
5
|
+
export const ETHORA_CHAT_COMPONENT_VERSION = '26.10.10';
|
|
6
6
|
//# sourceMappingURL=version.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ETHORA_CHAT_COMPONENT_VERSION"],"sourceRoot":"../../src","sources":["version.ts"],"mappings":";;AAAA;AACA;AACA,OAAO,MAAMA,6BAA6B,GAAG,
|
|
1
|
+
{"version":3,"names":["ETHORA_CHAT_COMPONENT_VERSION"],"sourceRoot":"../../src","sources":["version.ts"],"mappings":";;AAAA;AACA;AACA,OAAO,MAAMA,6BAA6B,GAAG,UAAU","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlbumGrid.d.ts","sourceRoot":"","sources":["../../../../src/components/MainComponents/AlbumGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAGpD,OAAO,EAAE,WAAW,EAAa,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"AlbumGrid.d.ts","sourceRoot":"","sources":["../../../../src/components/MainComponents/AlbumGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAGpD,OAAO,EAAE,WAAW,EAAa,MAAM,mBAAmB,CAAC;AAkB3D,UAAU,cAAc;IACtB,wDAAwD;IACxD,WAAW,EAAE,WAAW,EAAE,CAAC;IAC3B,oEAAoE;IACpE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gFAAgF;IAChF,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1C;AAED;;;;;;;GAOG;AACH,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA6HvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/MainComponents/ChatHeader.tsx"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,
|
|
1
|
+
{"version":3,"file":"ChatHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/MainComponents/ChatHeader.tsx"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,KAAgC,MAAM,OAAO,CAAC;AAUrD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AA+B1C,UAAU,eAAe;IACvB,WAAW,EAAE,KAAK,CAAC;IACnB,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAC5C;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAqOzC,CAAC;AA2CF,eAAe,UAAU,CAAC"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { IMessage } from '../../types/types';
|
|
2
|
+
import { IMessage, ModalFileSource } from '../../types/types';
|
|
3
3
|
interface MediaMessageProps {
|
|
4
4
|
mimeType?: string;
|
|
5
5
|
message?: IMessage;
|
|
6
6
|
location?: string;
|
|
7
7
|
messageText?: string;
|
|
8
8
|
isUser: boolean;
|
|
9
|
+
/** What the file viewer's Reply and Delete act on, when opened from here. */
|
|
10
|
+
viewerSource?: ModalFileSource;
|
|
9
11
|
}
|
|
10
12
|
declare const MediaMessage: React.FC<MediaMessageProps>;
|
|
11
13
|
export default MediaMessage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaMessage.d.ts","sourceRoot":"","sources":["../../../../src/components/MainComponents/MediaMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAAe,QAAQ,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"MediaMessage.d.ts","sourceRoot":"","sources":["../../../../src/components/MainComponents/MediaMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAAe,QAAQ,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AA4B3E,UAAU,iBAAiB;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC;IAChB,6EAA6E;IAC7E,YAAY,CAAC,EAAE,eAAe,CAAC;CAChC;AAmQD,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAI7C,CAAC;AA6HF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RoomList.d.ts","sourceRoot":"","sources":["../../../../src/components/MainComponents/RoomList.tsx"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,KAMN,MAAM,OAAO,CAAC;AACf,OAAO,EAOL,QAAQ,EAGT,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAwB1C,UAAU,aAAa;IACrB,KAAK,EAAE,KAAK,EAAE,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,IAAI,CAAC;CACrC;AAcD,eAAO,MAAM,iBAAiB,GAC5B,SAAS,QAAQ,CAAC,KAAK,EACvB,cAAc,MAAM;;;;;CAmBrB,CAAC;AAEF,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"RoomList.d.ts","sourceRoot":"","sources":["../../../../src/components/MainComponents/RoomList.tsx"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,KAMN,MAAM,OAAO,CAAC;AACf,OAAO,EAOL,QAAQ,EAGT,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAwB1C,UAAU,aAAa;IACrB,KAAK,EAAE,KAAK,EAAE,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,IAAI,CAAC;CACrC;AAcD,eAAO,MAAM,iBAAiB,GAC5B,SAAS,QAAQ,CAAC,KAAK,EACvB,cAAc,MAAM;;;;;CAmBrB,CAAC;AAEF,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAsfrC,CAAC;AAwDF,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderRoomListMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/Menu/HeaderRoomListMenu.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAqD,MAAM,OAAO,CAAC;AACrF,OAAO,EAEL,QAAQ,EAUT,MAAM,cAAc,CAAC;AAoBtB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,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AIF,UAAU,uBAAuB;IAC/B,YAAY,EAAE,OAAO,CAAC;IACtB,eAAe,EAAE,QAAQ,CAAC,KAAK,CAAC;IAChC,gBAAgB,EAAE,QAAQ,CAAC,KAAK,CAAC;IACjC,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CA6S1D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageBubble/Message.tsx"],"names":[],"mappings":"AAAA,OAAO,KAON,MAAM,OAAO,CAAC;AA4Bf,OAAO,EAAS,YAAY,
|
|
1
|
+
{"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageBubble/Message.tsx"],"names":[],"mappings":"AAAA,OAAO,KAON,MAAM,OAAO,CAAC;AA4Bf,OAAO,EAAS,YAAY,EAAmB,MAAM,mBAAmB,CAAC;AA03BzE,QAAA,MAAM,WAAW,0CAAsB,CAAC;AACxC,OAAO,EAAE,WAAW,IAAI,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { ModalFile } from '../../../types/types';
|
|
4
|
+
interface ChatMediaGridProps {
|
|
5
|
+
roomJid: string;
|
|
6
|
+
/** Opens the viewer; the file comes with the whole grid as its siblings. */
|
|
7
|
+
onOpen: (file: ModalFile) => void;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* The chat profile's Media tab: a three-column grid of the room's pictures
|
|
11
|
+
* and videos. It shows what history is loaded and pages older history in on
|
|
12
|
+
* demand, the same MAM pages the message list asks for.
|
|
13
|
+
*/
|
|
14
|
+
declare const ChatMediaGrid: React.FC<ChatMediaGridProps>;
|
|
15
|
+
export default ChatMediaGrid;
|
|
16
|
+
//# sourceMappingURL=ChatMediaGrid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatMediaGrid.d.ts","sourceRoot":"","sources":["../../../../../src/components/Modals/ChatProfileModal/ChatMediaGrid.tsx"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,KAA4B,MAAM,OAAO,CAAC;AAWjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAgBtD,UAAU,kBAAkB;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,4EAA4E;IAC5E,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;CACnC;AAED;;;;GAIG;AACH,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAwF/C,CAAC;AA6CF,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatProfileModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/Modals/ChatProfileModal/ChatProfileModal.tsx"],"names":[],"mappings":"AAAA,cAAc;AAId,OAAO,KAA+C,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ChatProfileModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/Modals/ChatProfileModal/ChatProfileModal.tsx"],"names":[],"mappings":"AAAA,cAAc;AAId,OAAO,KAA+C,MAAM,OAAO,CAAC;AAsEpE,6EAA6E;AAC7E,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAEnC;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAC7B,aAAa,OAAO,EACpB,kBAAkB,MAAM,KACvB,MAAM,GAAG,IAA+C,CAAC;AAE5D;yCACyC;AACzC,eAAO,MAAM,YAAY,GAAI,OAAO,MAAM,GAAG,IAAI,KAAG,MAOnD,CAAC;AAEF,UAAU,qBAAqB;IAC7B,gBAAgB,EAAE,GAAG,CAAC;CACvB;AAED,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA8uBrD,CAAC;AAwJF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface LeaveChatModalProps {
|
|
4
|
+
/** The room to leave; the modal is shown while this is set. */
|
|
5
|
+
roomJid: string | null;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
/** Called after the server took us out, before the modal closes. */
|
|
8
|
+
onLeft?: (jid: string) => void;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Telegram-style confirmation in front of every Leave: the chat's avatar and
|
|
12
|
+
* name, the question, Cancel and a red Leave. The leave itself runs here, so
|
|
13
|
+
* the card stays up with a spinner until the server answers and a failure is
|
|
14
|
+
* reported over it instead of after it has gone.
|
|
15
|
+
*/
|
|
16
|
+
declare const LeaveChatModal: React.FC<LeaveChatModalProps>;
|
|
17
|
+
export default LeaveChatModal;
|
|
18
|
+
//# sourceMappingURL=LeaveChatModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LeaveChatModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/Modals/ChatProfileModal/LeaveChatModal.tsx"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,KAA4B,MAAM,OAAO,CAAC;AAoBjD,UAAU,mBAAmB;IAC3B,+DAA+D;IAC/D,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,oEAAoE;IACpE,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC;AAED;;;;;GAKG;AACH,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA6FjD,CAAC;AA6DF,eAAe,cAAc,CAAC"}
|
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { ModalFile } from '../../../types/types';
|
|
2
3
|
interface FilePreviewModalProps {
|
|
3
4
|
handleCloseModal: any;
|
|
4
5
|
}
|
|
6
|
+
/** The viewer on the store's `activeFile`, as opened from a message bubble. */
|
|
5
7
|
declare const FilePreviewModal: React.FC<FilePreviewModalProps>;
|
|
8
|
+
interface FilePreviewProps {
|
|
9
|
+
file: ModalFile;
|
|
10
|
+
onClose: () => void;
|
|
11
|
+
/** Another file of the album (siblings and index included). */
|
|
12
|
+
onChangeFile: (file: ModalFile) => void;
|
|
13
|
+
/** After the media viewer's Reply opened a thread. */
|
|
14
|
+
onReplyOpened?: () => void;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* One file, full screen: pictures and videos in the Telegram-style
|
|
18
|
+
* MediaViewer, everything else (documents, PDFs, voice notes) on the
|
|
19
|
+
* plain preview page with the save button in its header.
|
|
20
|
+
*/
|
|
21
|
+
export declare const FilePreview: React.FC<FilePreviewProps>;
|
|
6
22
|
export default FilePreviewModal;
|
|
7
23
|
//# sourceMappingURL=FilePreviewModal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilePreviewModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/Modals/FilePreviewModal/FilePreviewModal.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"FilePreviewModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/Modals/FilePreviewModal/FilePreviewModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAiBjF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAmOtD,UAAU,qBAAqB;IAC7B,gBAAgB,EAAE,GAAG,CAAC;CACvB;AAED,+EAA+E;AAC/E,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAiErD,CAAC;AAEF,UAAU,gBAAgB;IACxB,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,+DAA+D;IAC/D,YAAY,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IACxC,sDAAsD;IACtD,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC5B;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA8PlD,CAAC;AAgDF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { ModalFile } from '../../../types/types';
|
|
4
|
+
interface MediaViewerProps {
|
|
5
|
+
/** A picture or a video. */
|
|
6
|
+
file: ModalFile;
|
|
7
|
+
/** Called once the viewer has animated out. */
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
/** Turn to another file of the album (an index into `file.siblings`). */
|
|
10
|
+
onPage?: (index: number) => void;
|
|
11
|
+
onSave: () => void;
|
|
12
|
+
/** After Reply opened the thread, for a host that has more to close. */
|
|
13
|
+
onReplyOpened?: () => void;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Full-screen photo / video viewer that behaves like Telegram's. A tap shows
|
|
17
|
+
* or hides everything but the media (a fade both ways); a drag up or down
|
|
18
|
+
* pulls the media off with the backdrop fading behind it, and a long enough
|
|
19
|
+
* drag or a fling closes the viewer; a sideways swipe turns the page in an
|
|
20
|
+
* album. The bottom bar carries Reply (where replies are on) and Delete (on
|
|
21
|
+
* one's own message). A video has its own controls in the chrome: tapping
|
|
22
|
+
* them works the player instead of hiding the chrome, and while it plays the
|
|
23
|
+
* chrome goes away by itself after a few seconds.
|
|
24
|
+
*/
|
|
25
|
+
declare const MediaViewer: React.FC<MediaViewerProps>;
|
|
26
|
+
export default MediaViewer;
|
|
27
|
+
//# sourceMappingURL=MediaViewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MediaViewer.d.ts","sourceRoot":"","sources":["../../../../../src/components/Modals/FilePreviewModal/MediaViewer.tsx"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,KAMN,MAAM,OAAO,CAAC;AAuBf,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAuCtD,UAAU,gBAAgB;IACxB,4BAA4B;IAC5B,IAAI,EAAE,SAAS,CAAC;IAChB,+CAA+C;IAC/C,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,yEAAyE;IACzE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,wEAAwE;IACxE,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC5B;AAED;;;;;;;;;GASG;AACH,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAuY3C,CAAC;AA4YF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ModalFile } from "../../../types/types";
|
|
2
|
+
export declare const isLocalFile: (url: string | undefined | null) => boolean;
|
|
3
|
+
/**
|
|
4
|
+
* Save button of the file viewers: pictures and videos to the gallery,
|
|
5
|
+
* anything else to Downloads (Android, through SAF) or the share sheet (iOS).
|
|
6
|
+
* Shared by the preview page and the media viewer opened from a chat profile.
|
|
7
|
+
*/
|
|
8
|
+
export declare const useSaveFile: () => (activeFile: ModalFile) => Promise<void>;
|
|
9
|
+
//# sourceMappingURL=useSaveFile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSaveFile.d.ts","sourceRoot":"","sources":["../../../../../src/components/Modals/FilePreviewModal/useSaveFile.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAWtD,eAAO,MAAM,WAAW,GAAI,KAAK,MAAM,GAAG,SAAS,GAAG,IAAI,YAC3B,CAAC;AAOhC;;;;GAIG;AACH,eAAO,MAAM,WAAW,qBAQD,SAAS,kBA2K/B,CAAC"}
|
|
@@ -2,11 +2,19 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
interface MessageSearchModalProps {
|
|
4
4
|
handleCloseModal: () => void;
|
|
5
|
+
/** Search the open chat only: no "All chats" scope to switch to. */
|
|
6
|
+
chatOnly?: boolean;
|
|
5
7
|
}
|
|
6
8
|
/**
|
|
7
9
|
* Gate for the modal registry: with search off (the default) nothing renders
|
|
8
10
|
* and the search hook never mounts, so no request can be made.
|
|
9
11
|
*/
|
|
10
12
|
declare const MessageSearchModal: React.FC<MessageSearchModalProps>;
|
|
13
|
+
/**
|
|
14
|
+
* The chat profile's Search: the same search as the room list's, inside this
|
|
15
|
+
* chat only. Back returns to the profile it was opened from; opening a hit
|
|
16
|
+
* closes both and lands on the message in the chat.
|
|
17
|
+
*/
|
|
18
|
+
export declare const ChatMessageSearchModal: React.FC<MessageSearchModalProps>;
|
|
11
19
|
export default MessageSearchModal;
|
|
12
20
|
//# sourceMappingURL=MessageSearchModal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageSearchModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/Modals/MessageSearchModal/MessageSearchModal.tsx"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,KAA+C,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageSearchModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/Modals/MessageSearchModal/MessageSearchModal.tsx"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,KAA+C,MAAM,OAAO,CAAC;AAiDpE,UAAU,uBAAuB;IAC/B,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,oEAAoE;IACpE,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AA8aD;;;GAGG;AACH,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAMzD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAQpE,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCallKeep.d.ts","sourceRoot":"","sources":["../../../../src/components/VideoCalls/useCallKeep.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useCallKeep.d.ts","sourceRoot":"","sources":["../../../../src/components/VideoCalls/useCallKeep.ts"],"names":[],"mappings":"AASA,OAAO,EAEL,YAAY,EAGb,MAAM,cAAc,CAAC;AAEtB;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAE,YAAY,EAAE,CAAC;AAMxB,eAAO,MAAM,WAAW,QAAO,IA4W9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageImage.d.ts","sourceRoot":"","sources":["../../../../src/components/styled/MessageImage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageImage.d.ts","sourceRoot":"","sources":["../../../../src/components/styled/MessageImage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAqBnD,UAAU,uBAAuB;IAC/B,wEAAwE;IACxE,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;;OAKG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,IAAI,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACzC,wFAAwF;IACxF,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AASD,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAwGzD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VideoMessage.d.ts","sourceRoot":"","sources":["../../../../src/components/styled/VideoMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"VideoMessage.d.ts","sourceRoot":"","sources":["../../../../src/components/styled/VideoMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAoBnD,UAAU,uBAAuB;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,oEAAoE;IACpE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qFAAqF;IACrF,IAAI,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACzC,wFAAwF;IACxF,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AAgHD,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAyCzD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ModalFileSource } from '../types/types';
|
|
2
|
+
export declare const MediaSourceProvider: import("react").Provider<ModalFileSource | undefined>;
|
|
3
|
+
export declare const useMediaSource: () => ModalFileSource | undefined;
|
|
4
|
+
//# sourceMappingURL=MediaSourceContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MediaSourceContext.d.ts","sourceRoot":"","sources":["../../../src/context/MediaSourceContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAUtD,eAAO,MAAM,mBAAmB,uDAA8B,CAAC;AAE/D,eAAO,MAAM,cAAc,mCAAuC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MODAL_COMPONENTS.d.ts","sourceRoot":"","sources":["../../../../src/helpers/constants/MODAL_COMPONENTS.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MODAL_COMPONENTS.d.ts","sourceRoot":"","sources":["../../../../src/helpers/constants/MODAL_COMPONENTS.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAmB1B,eAAO,MAAM,gBAAgB,EAAE,MAAM,CACnC,MAAM,EACN,KAAK,CAAC,EAAE,CAAC;IAAE,gBAAgB,EAAE,MAAM,IAAI,CAAA;CAAE,CAAC,CAiB3C,CAAC"}
|
|
@@ -12,6 +12,8 @@ export declare const MODAL_TYPES: {
|
|
|
12
12
|
FILE_PREVIEW: string;
|
|
13
13
|
NEW_CHAT: string;
|
|
14
14
|
MESSAGE_SEARCH: string;
|
|
15
|
+
/** Message search locked to the open chat, reached from its profile. */
|
|
16
|
+
CHAT_MESSAGE_SEARCH: string;
|
|
15
17
|
PUBLIC_CHATS: string;
|
|
16
18
|
};
|
|
17
19
|
//# sourceMappingURL=MODAL_TYPES.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MODAL_TYPES.d.ts","sourceRoot":"","sources":["../../../../src/helpers/constants/MODAL_TYPES.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"MODAL_TYPES.d.ts","sourceRoot":"","sources":["../../../../src/helpers/constants/MODAL_TYPES.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;IAmBtB,wEAAwE;;;CAGzE,CAAC"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { IConfig } from '../types/types';
|
|
2
2
|
/**
|
|
3
3
|
* "Discover chats" lives in the room list menu sheet. A host that takes the
|
|
4
|
-
* burger over (`headerMenu` as a function)
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* header
|
|
8
|
-
*
|
|
4
|
+
* burger over (`headerMenu` as a function) would otherwise have no obvious
|
|
5
|
+
* way to reach the directory, so it also gets a button of its own in the
|
|
6
|
+
* room list header. `chatHeaderSettings.disableMenu` does not count: the
|
|
7
|
+
* header avatar still opens the sheet, Discover included, and a second
|
|
8
|
+
* compass next to it was a duplicate. `disableRoomMenu` removes the menu
|
|
9
|
+
* entry point, and with it the button; `disablePublicChatsDirectory`
|
|
10
|
+
* removes the feature altogether.
|
|
9
11
|
*/
|
|
10
12
|
export declare const showsStandaloneDiscoverButton: (config?: IConfig) => boolean;
|
|
11
13
|
//# sourceMappingURL=publicChatsEntry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publicChatsEntry.d.ts","sourceRoot":"","sources":["../../../src/helpers/publicChatsEntry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAE9C
|
|
1
|
+
{"version":3,"file":"publicChatsEntry.d.ts","sourceRoot":"","sources":["../../../src/helpers/publicChatsEntry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAE9C;;;;;;;;;GASG;AACH,eAAO,MAAM,6BAA6B,GAAI,SAAS,OAAO,KAAG,OAGvB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { IMessage, ModalFile } from '../types/types';
|
|
2
|
+
import { isOwnMessage } from './isOwnMessage';
|
|
3
|
+
export interface MediaOptions {
|
|
4
|
+
/** The signed-in user, as isOwnMessage takes it. */
|
|
5
|
+
me: Parameters<typeof isOwnMessage>[1];
|
|
6
|
+
fileToken?: string;
|
|
7
|
+
interactive: boolean;
|
|
8
|
+
repliesOn: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Every picture and video of the room's loaded history, newest first, each
|
|
12
|
+
* carrying the message it came from so the viewer's Reply and Delete act on
|
|
13
|
+
* the right one (same rules as a bubble: Delete on one's own, Reply where
|
|
14
|
+
* replies are on).
|
|
15
|
+
*/
|
|
16
|
+
export declare const collectRoomMedia: (messages: IMessage[] | undefined, roomJid: string, { me, fileToken, interactive, repliesOn }: MediaOptions) => ModalFile[];
|
|
17
|
+
/**
|
|
18
|
+
* The media feed the viewer pages through when a picture or video is opened
|
|
19
|
+
* from a bubble: every picture and video of the list that bubble sits in (the
|
|
20
|
+
* channel, or the one thread for a thread-only reply), oldest first so a
|
|
21
|
+
* swipe to the left goes forward in time, the way the chat reads. The opened
|
|
22
|
+
* file comes back with that feed as its siblings; null when the file is not
|
|
23
|
+
* in the loaded history (the caller then keeps what it was opened with).
|
|
24
|
+
*/
|
|
25
|
+
export declare const withChatSiblings: (file: ModalFile, messages: IMessage[] | undefined, options: MediaOptions) => ModalFile | null;
|
|
26
|
+
//# sourceMappingURL=roomMedia.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"roomMedia.d.ts","sourceRoot":"","sources":["../../../src/helpers/roomMedia.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAM1D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,WAAW,YAAY;IAC3B,oDAAoD;IACpD,EAAE,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAC3B,UAAU,QAAQ,EAAE,GAAG,SAAS,EAChC,SAAS,MAAM,EACf,2CAA2C,YAAY,KACtD,SAAS,EAoDX,CAAC;AAaF;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,GAC3B,MAAM,SAAS,EACf,UAAU,QAAQ,EAAE,GAAG,SAAS,EAChC,SAAS,YAAY,KACpB,SAAS,GAAG,IAsBd,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;AAs6EnD,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
|
@@ -41,7 +41,7 @@ export type { PushTokenType, PushTokenRegistration } from './types/types';
|
|
|
41
41
|
export { ensurePushKeyPair, getPushKeyPair, resetPushKeyPair, clearPushKeyPair, PUSH_KEY_KEYCHAIN_SERVICE, PUSH_SECRET_KEY_ITEM, } from './push/pushKeyStore';
|
|
42
42
|
export type { PushKeyPair } from './push/pushKeyStore';
|
|
43
43
|
export { registerSealedPushTask, presentSealedPush, SEALED_PUSH_TASK, } from './push/sealedPushTask';
|
|
44
|
-
export type { SealedPushTaskOptions } from './push/sealedPushTask';
|
|
44
|
+
export type { SealedPushTaskOptions, ShownMessagePush } from './push/sealedPushTask';
|
|
45
45
|
export { openSealedPush, isSealedPush, sealedPushEnvelopeOf, SEALED_PUSH_ALG, } from './push/sealedPush';
|
|
46
46
|
export type { SealedPushEnvelope, SealedPushContent, SealedPushFailure, OpenSealedPushResult, } from './push/sealedPush';
|
|
47
47
|
export { useChatRoomFocus } from './hooks/useChatRoomFocus';
|
|
@@ -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;AAE7D,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,EACL,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,gCAAgC,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC/D,YAAY,EAAE,cAAc,EAAE,MAAM,o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EAAE,MAAM,QAAQ,CAAC;AAC9C,YAAY,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -46,11 +46,12 @@ export declare function postReportRoom(data: PostReportRoom): Promise<any>;
|
|
|
46
46
|
export declare function postAddRoomMember(data: PostAddRoomMember): Promise<RoomMember[]>;
|
|
47
47
|
export declare function deleteRoomMember(data: DeleteRoomMember): Promise<any>;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
49
|
+
* Leave a chat on the server: `PUT /v1/chats/my/{chatName}/leave` sets the
|
|
50
|
+
* `left` flag on the caller's own membership, and /chats/my stops listing
|
|
51
|
+
* the room. The unavailable presence alone only leaves the MUC for this
|
|
52
|
+
* session, the next /chats/my would bring the chat back. Not
|
|
53
|
+
* `DELETE /users-access`: that one is owner-only and refuses self-removal.
|
|
54
|
+
* A 404 means we are not a member any more, which is what we wanted.
|
|
54
55
|
*/
|
|
55
56
|
export declare function leaveRoom(chatName: string): Promise<void>;
|
|
56
57
|
export declare function deleteRoom(name: string): Promise<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rooms.api.d.ts","sourceRoot":"","sources":["../../../../src/networking/api-requests/rooms.api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,cAAc,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAwFnI;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAIhE;AAED,wBAAgB,QAAQ,IAAI,MAAM,CAKjC;AAqHD;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,MAAM,EACf,OAAO,GAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAO,G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,"file":"callTokenStanza.d.ts","sourceRoot":"","sources":["../../../src/networking/callTokenStanza.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AA2U9B,eAAO,MAAM,kBAAkB,GAAI,QAAQ,OAAO,KAAG,OA8PpD,CAAC;AAYF,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,UAAU,GAAG,WAAW,GAAG,UAAU,CAAC;AAE9E,eAAO,MAAM,mBAAmB,GAC9B,OAAO,eAAe,EACtB,UAAU;IACR,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B,KACA,IA0CF,CAAC;AAUF,eAAO,MAAM,oBAAoB,GAC/B,MAAM,OAAO,GAAG,OAAO,EACvB,SAAS;IACP,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB,KACA,IA6BF,CAAC"}
|
|
@@ -19,6 +19,19 @@ export interface SealedPushTaskOptions {
|
|
|
19
19
|
* where the XMPP invite rings the in-app call screen.
|
|
20
20
|
*/
|
|
21
21
|
onCallPush?: (data: Record<string, unknown>) => void | Promise<void>;
|
|
22
|
+
onMessageShown?: (shown: ShownMessagePush) => void | Promise<void>;
|
|
23
|
+
}
|
|
24
|
+
export interface ShownMessagePush {
|
|
25
|
+
identifier: string;
|
|
26
|
+
channelId?: string;
|
|
27
|
+
title: string;
|
|
28
|
+
body: string;
|
|
29
|
+
sender: string;
|
|
30
|
+
senderJid: string;
|
|
31
|
+
chat: string;
|
|
32
|
+
chatJid: string;
|
|
33
|
+
image: string;
|
|
34
|
+
reaction: boolean;
|
|
22
35
|
}
|
|
23
36
|
export declare const sealedPushDataOf: (payload: unknown) => Record<string, unknown> | null;
|
|
24
37
|
/** The call fields of an incoming-call push in the task payload, if it is one. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sealedPushTask.d.ts","sourceRoot":"","sources":["../../../src/push/sealedPushTask.ts"],"names":[],"mappings":"AAIA,OAAO,EAIL,KAAK,oBAAoB,EAC1B,MAAM,cAAc,CAAC;AAYtB,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AAErD,MAAM,WAAW,qBAAqB;IACpC,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,8FAA8F;IAC9F,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"sealedPushTask.d.ts","sourceRoot":"","sources":["../../../src/push/sealedPushTask.ts"],"names":[],"mappings":"AAIA,OAAO,EAIL,KAAK,oBAAoB,EAC1B,MAAM,cAAc,CAAC;AAYtB,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AAErD,MAAM,WAAW,qBAAqB;IACpC,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,8FAA8F;IAC9F,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACrE,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACpE;AAED,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;CACnB;AA+CD,eAAO,MAAM,gBAAgB,GAAI,SAAS,OAAO,KAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAG3B,CAAC;AAEpD,kFAAkF;AAClF,eAAO,MAAM,cAAc,GAAI,SAAS,OAAO,KAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAGzB,CAAC;AAgCpD;;;;;;GAMG;AACH,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,OAAO,GAAE,qBAA0B,GAClC,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CA4CtC;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,GAAE,qBAA0B,GAAG,OAAO,CAyCnF;AAED,sBAAsB;AACtB,eAAO,MAAM,6BAA6B,QAAO,IAEhD,CAAC"}
|
|
@@ -14,5 +14,23 @@ export interface ModalFile {
|
|
|
14
14
|
siblings?: ModalFile[];
|
|
15
15
|
/** Position of this file in `siblings`. */
|
|
16
16
|
index?: number;
|
|
17
|
+
/** The message the file came from, for the viewer's Reply and Delete. */
|
|
18
|
+
source?: ModalFileSource;
|
|
19
|
+
/** Poster frame of a video, for grids that show it before it plays. */
|
|
20
|
+
previewURL?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface ModalFileSource {
|
|
23
|
+
messageId: string;
|
|
24
|
+
roomJid: string;
|
|
25
|
+
/** Sent by the signed-in user: the viewer offers Delete. */
|
|
26
|
+
own?: boolean;
|
|
27
|
+
/** The thread the viewer's Reply opens; absent where replies are off. */
|
|
28
|
+
replyTo?: {
|
|
29
|
+
id: string;
|
|
30
|
+
chatJID: string;
|
|
31
|
+
};
|
|
32
|
+
senderName?: string;
|
|
33
|
+
/** When it was sent, ms since epoch. */
|
|
34
|
+
timestamp?: number;
|
|
17
35
|
}
|
|
18
36
|
//# sourceMappingURL=modal.model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.model.d.ts","sourceRoot":"","sources":["../../../../src/types/models/modal.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAElE,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAEvE,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAC;IACvB,2CAA2C;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"modal.model.d.ts","sourceRoot":"","sources":["../../../../src/types/models/modal.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAElE,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAEvE,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAC;IACvB,2CAA2C;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yEAAyE;IACzE,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,uEAAuE;IACvE,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,4DAA4D;IAC5D,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,yEAAyE;IACzE,OAAO,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wCAAwC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -1000,6 +1000,24 @@ export interface ModalFile {
|
|
|
1000
1000
|
siblings?: ModalFile[];
|
|
1001
1001
|
/** Position of this file in `siblings`. */
|
|
1002
1002
|
index?: number;
|
|
1003
|
+
/** The message the file came from, for the viewer's Reply and Delete. */
|
|
1004
|
+
source?: ModalFileSource;
|
|
1005
|
+
/** Poster frame of a video, for grids that show it before it plays. */
|
|
1006
|
+
previewURL?: string;
|
|
1007
|
+
}
|
|
1008
|
+
export interface ModalFileSource {
|
|
1009
|
+
messageId: string;
|
|
1010
|
+
roomJid: string;
|
|
1011
|
+
/** Sent by the signed-in user: the viewer offers Delete. */
|
|
1012
|
+
own?: boolean;
|
|
1013
|
+
/** The thread the viewer's Reply opens; absent where replies are off. */
|
|
1014
|
+
replyTo?: {
|
|
1015
|
+
id: string;
|
|
1016
|
+
chatJID: string;
|
|
1017
|
+
};
|
|
1018
|
+
senderName?: string;
|
|
1019
|
+
/** When it was sent, ms since epoch. */
|
|
1020
|
+
timestamp?: number;
|
|
1003
1021
|
}
|
|
1004
1022
|
export type { ReactionAction } from './models/action.model';
|
|
1005
1023
|
export type { Iso639_1Codes } from './models/language.model';
|