@social-mail/social-mail-client 1.2.596 → 1.2.598
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 +271 -15
- package/dist/public/channel/ChannelView.pack.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.min.js +33 -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 +26 -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 +26 -4
- package/src/web/page/mails/service/ConversationService.tsx +21 -2
|
@@ -24280,7 +24280,7 @@ System.register(["./apiPath"], function (_export, _context) {
|
|
|
24280
24280
|
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) {
|
|
24281
24281
|
"use strict";
|
|
24282
24282
|
|
|
24283
|
-
var __awaiter, __decorate, __metadata, DISingleton, Inject, EntityService, Email, EmailRecipient, MailboxContactEmail, MailboxEmail, Sql, DomToString, XNode, AtomControl,
|
|
24283
|
+
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;
|
|
24284
24284
|
return {
|
|
24285
24285
|
setters: [function (_tslib) {
|
|
24286
24286
|
__awaiter = _tslib.__awaiter;
|
|
@@ -24306,7 +24306,8 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
24306
24306
|
}, function (_webAtomsCoreDistWebControlsAtomControl) {
|
|
24307
24307
|
AtomControl = _webAtomsCoreDistWebControlsAtomControl.AtomControl;
|
|
24308
24308
|
}, function (_webAtomsCoreDistWebCoreAtomUI) {
|
|
24309
|
-
|
|
24309
|
+
AncestorEnumerator = _webAtomsCoreDistWebCoreAtomUI.AncestorEnumerator;
|
|
24310
|
+
descendentIterator = _webAtomsCoreDistWebCoreAtomUI.descendentIterator;
|
|
24310
24311
|
}, function (_webAtomsDateTimeDistDateTime) {
|
|
24311
24312
|
DateTime = _webAtomsDateTimeDistDateTime.default;
|
|
24312
24313
|
}, function (_commonEventsCommonEvents) {
|
|
@@ -24344,7 +24345,20 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
24344
24345
|
return;
|
|
24345
24346
|
}
|
|
24346
24347
|
msg.innerHTML = html;
|
|
24347
|
-
|
|
24348
|
+
let firstVisibleElement = null;
|
|
24349
|
+
for (const node of descendentIterator(msg)) {
|
|
24350
|
+
if (!firstVisibleElement && node.nodeType === Node.TEXT_NODE) {
|
|
24351
|
+
const {
|
|
24352
|
+
parentElement
|
|
24353
|
+
} = node;
|
|
24354
|
+
if (parentElement.tagName !== "STYLE") {
|
|
24355
|
+
firstVisibleElement || (firstVisibleElement = node.parentElement);
|
|
24356
|
+
}
|
|
24357
|
+
}
|
|
24358
|
+
if (node.nodeType !== Node.ELEMENT_NODE) {
|
|
24359
|
+
continue;
|
|
24360
|
+
}
|
|
24361
|
+
const iterator = node;
|
|
24348
24362
|
let cid = iterator.getAttribute("data-content-id");
|
|
24349
24363
|
if (cid) {
|
|
24350
24364
|
const a = (_a = mail.attachments) === null || _a === void 0 ? void 0 : _a.find(x => x.contentID === cid);
|
|
@@ -24353,6 +24367,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
24353
24367
|
}
|
|
24354
24368
|
}
|
|
24355
24369
|
if (/^(IMG|VIDEO)$/.test(iterator.tagName)) {
|
|
24370
|
+
firstVisibleElement || (firstVisibleElement = iterator);
|
|
24356
24371
|
const src = iterator.getAttribute("src");
|
|
24357
24372
|
iterator.setAttribute("controls", "true");
|
|
24358
24373
|
iterator.setAttribute("crossorigin", "anonymous");
|
|
@@ -24391,6 +24406,10 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
24391
24406
|
container.appendChild(style);
|
|
24392
24407
|
msg.setAttribute("msg", "msg");
|
|
24393
24408
|
container.appendChild(msg);
|
|
24409
|
+
if (/img|video/i.test(firstVisibleElement === null || firstVisibleElement === void 0 ? void 0 : firstVisibleElement.tagName)) {
|
|
24410
|
+
const root = AncestorEnumerator.find(e, x => x.hasAttribute("data-msg-container"));
|
|
24411
|
+
(root !== null && root !== void 0 ? root : e).setAttribute("has-poster", "true");
|
|
24412
|
+
}
|
|
24394
24413
|
if (!thread.timeRead && thread.mailboxID && thread.mailboxID !== ((_c = thread.email) === null || _c === void 0 ? void 0 : _c.senderID)) {
|
|
24395
24414
|
const timeRead = DateTime.now;
|
|
24396
24415
|
thread.timeRead = timeRead;
|