@social-mail/social-mail-client 1.2.596 → 1.2.597
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/dist/admin/AdminAppIndex.pack.js +22 -3
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/public/channel/ChannelView.d.ts.map +1 -1
- package/dist/public/channel/ChannelView.js +5 -2
- package/dist/public/channel/ChannelView.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.js +260 -15
- package/dist/public/channel/ChannelView.pack.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.min.js +22 -8
- package/dist/public/channel/ChannelView.pack.min.js.map +1 -1
- package/dist/public/channel/PostView.d.ts.map +1 -1
- package/dist/public/channel/PostView.js +9 -4
- package/dist/public/channel/PostView.js.map +1 -1
- package/dist/public/channel/controls/MediaCarousel.d.ts +5 -0
- package/dist/public/channel/controls/MediaCarousel.d.ts.map +1 -0
- package/dist/public/channel/controls/MediaCarousel.js +26 -0
- package/dist/public/channel/controls/MediaCarousel.js.map +1 -0
- package/dist/public/channel/controls/PostList.d.ts.map +1 -1
- package/dist/public/channel/controls/PostList.js +4 -1
- package/dist/public/channel/controls/PostList.js.map +1 -1
- package/dist/public/channel/styles/channelViewStyle.d.ts.map +1 -1
- package/dist/public/channel/styles/channelViewStyle.js +15 -4
- package/dist/public/channel/styles/channelViewStyle.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +22 -3
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +1 -1
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/dist/web/page/mails/service/ConversationService.d.ts.map +1 -1
- package/dist/web/page/mails/service/ConversationService.js +22 -3
- package/dist/web/page/mails/service/ConversationService.js.map +1 -1
- package/package.json +1 -1
- package/src/public/channel/ChannelView.tsx +3 -0
- package/src/public/channel/PostView.tsx +5 -1
- package/src/public/channel/controls/MediaCarousel.tsx +16 -0
- package/src/public/channel/controls/PostList.tsx +4 -1
- package/src/public/channel/styles/channelViewStyle.ts +15 -4
- package/src/web/page/mails/service/ConversationService.tsx +21 -2
|
@@ -28819,7 +28819,7 @@ System.register(["./apiPath"], function (_export, _context) {
|
|
|
28819
28819
|
System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/core/dist/di/Inject", "../../../../services/EntityService", "../../../../model/model", "../../../../common/Sql", "@web-atoms/email-dom/dist/DomToString", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/web/controls/AtomControl", "@web-atoms/core/dist/web/core/AtomUI", "@web-atoms/date-time/dist/DateTime", "../../../../common/events/CommonEvents", "../../../../services/BusyProgress", "../../../../services/email/EmailContentDownloader", "./EngagementService", "../../../commands/MailAppEvents", "../../../../common/fileUrl"], function (_export, _context) {
|
|
28820
28820
|
"use strict";
|
|
28821
28821
|
|
|
28822
|
-
var __awaiter, __decorate, __metadata, DISingleton, Inject, EntityService, Email, EmailRecipient, MailboxContactEmail, MailboxEmail, Sql, DomToString, XNode, AtomControl,
|
|
28822
|
+
var __awaiter, __decorate, __metadata, DISingleton, Inject, EntityService, Email, EmailRecipient, MailboxContactEmail, MailboxEmail, Sql, DomToString, XNode, AtomControl, AncestorEnumerator, descendentIterator, DateTime, CommonEvents, BusyProgress, EmailContentDownloader, EngagementService, MailAppEvents, fileUrl, renderMail, ConversationService;
|
|
28823
28823
|
return {
|
|
28824
28824
|
setters: [function (_tslib) {
|
|
28825
28825
|
__awaiter = _tslib.__awaiter;
|
|
@@ -28845,7 +28845,8 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
28845
28845
|
}, function (_webAtomsCoreDistWebControlsAtomControl) {
|
|
28846
28846
|
AtomControl = _webAtomsCoreDistWebControlsAtomControl.AtomControl;
|
|
28847
28847
|
}, function (_webAtomsCoreDistWebCoreAtomUI) {
|
|
28848
|
-
|
|
28848
|
+
AncestorEnumerator = _webAtomsCoreDistWebCoreAtomUI.AncestorEnumerator;
|
|
28849
|
+
descendentIterator = _webAtomsCoreDistWebCoreAtomUI.descendentIterator;
|
|
28849
28850
|
}, function (_webAtomsDateTimeDistDateTime) {
|
|
28850
28851
|
DateTime = _webAtomsDateTimeDistDateTime.default;
|
|
28851
28852
|
}, function (_commonEventsCommonEvents) {
|
|
@@ -28883,7 +28884,20 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
28883
28884
|
return;
|
|
28884
28885
|
}
|
|
28885
28886
|
msg.innerHTML = html;
|
|
28886
|
-
|
|
28887
|
+
let firstVisibleElement = null;
|
|
28888
|
+
for (const node of descendentIterator(msg)) {
|
|
28889
|
+
if (!firstVisibleElement && node.nodeType === Node.TEXT_NODE) {
|
|
28890
|
+
const {
|
|
28891
|
+
parentElement
|
|
28892
|
+
} = node;
|
|
28893
|
+
if (parentElement.tagName !== "STYLE") {
|
|
28894
|
+
firstVisibleElement || (firstVisibleElement = node.parentElement);
|
|
28895
|
+
}
|
|
28896
|
+
}
|
|
28897
|
+
if (node.nodeType !== Node.ELEMENT_NODE) {
|
|
28898
|
+
continue;
|
|
28899
|
+
}
|
|
28900
|
+
const iterator = node;
|
|
28887
28901
|
let cid = iterator.getAttribute("data-content-id");
|
|
28888
28902
|
if (cid) {
|
|
28889
28903
|
const a = (_a = mail.attachments) === null || _a === void 0 ? void 0 : _a.find(x => x.contentID === cid);
|
|
@@ -28892,6 +28906,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
28892
28906
|
}
|
|
28893
28907
|
}
|
|
28894
28908
|
if (/^(IMG|VIDEO)$/.test(iterator.tagName)) {
|
|
28909
|
+
firstVisibleElement || (firstVisibleElement = iterator);
|
|
28895
28910
|
const src = iterator.getAttribute("src");
|
|
28896
28911
|
iterator.setAttribute("controls", "true");
|
|
28897
28912
|
iterator.setAttribute("crossorigin", "anonymous");
|
|
@@ -28930,6 +28945,10 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
28930
28945
|
container.appendChild(style);
|
|
28931
28946
|
msg.setAttribute("msg", "msg");
|
|
28932
28947
|
container.appendChild(msg);
|
|
28948
|
+
if (/img|video/i.test(firstVisibleElement === null || firstVisibleElement === void 0 ? void 0 : firstVisibleElement.tagName)) {
|
|
28949
|
+
const root = AncestorEnumerator.find(e, x => x.hasAttribute("data-msg-container"));
|
|
28950
|
+
(root !== null && root !== void 0 ? root : e).setAttribute("has-poster", "true");
|
|
28951
|
+
}
|
|
28933
28952
|
if (!thread.timeRead && thread.mailboxID && thread.mailboxID !== ((_c = thread.email) === null || _c === void 0 ? void 0 : _c.senderID)) {
|
|
28934
28953
|
const timeRead = DateTime.now;
|
|
28935
28954
|
thread.timeRead = timeRead;
|