@social-mail/social-mail-client 1.2.595 → 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.
Files changed (47) hide show
  1. package/dist/admin/AdminAppIndex.pack.js +22 -3
  2. package/dist/admin/AdminAppIndex.pack.js.map +1 -1
  3. package/dist/admin/AdminAppIndex.pack.min.js +1 -1
  4. package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
  5. package/dist/public/channel/BlogService.d.ts.map +1 -1
  6. package/dist/public/channel/BlogService.js +2 -4
  7. package/dist/public/channel/BlogService.js.map +1 -1
  8. package/dist/public/channel/ChannelView.d.ts.map +1 -1
  9. package/dist/public/channel/ChannelView.js +5 -2
  10. package/dist/public/channel/ChannelView.js.map +1 -1
  11. package/dist/public/channel/ChannelView.pack.js +268 -22
  12. package/dist/public/channel/ChannelView.pack.js.map +1 -1
  13. package/dist/public/channel/ChannelView.pack.min.js +24 -10
  14. package/dist/public/channel/ChannelView.pack.min.js.map +1 -1
  15. package/dist/public/channel/PostView.d.ts.map +1 -1
  16. package/dist/public/channel/PostView.js +9 -4
  17. package/dist/public/channel/PostView.js.map +1 -1
  18. package/dist/public/channel/UrlService.d.ts.map +1 -1
  19. package/dist/public/channel/UrlService.js +6 -3
  20. package/dist/public/channel/UrlService.js.map +1 -1
  21. package/dist/public/channel/controls/MediaCarousel.d.ts +5 -0
  22. package/dist/public/channel/controls/MediaCarousel.d.ts.map +1 -0
  23. package/dist/public/channel/controls/MediaCarousel.js +26 -0
  24. package/dist/public/channel/controls/MediaCarousel.js.map +1 -0
  25. package/dist/public/channel/controls/PostList.d.ts.map +1 -1
  26. package/dist/public/channel/controls/PostList.js +4 -1
  27. package/dist/public/channel/controls/PostList.js.map +1 -1
  28. package/dist/public/channel/styles/channelViewStyle.d.ts.map +1 -1
  29. package/dist/public/channel/styles/channelViewStyle.js +15 -4
  30. package/dist/public/channel/styles/channelViewStyle.js.map +1 -1
  31. package/dist/tsconfig.tsbuildinfo +1 -1
  32. package/dist/web/AppIndex.pack.js +22 -3
  33. package/dist/web/AppIndex.pack.js.map +1 -1
  34. package/dist/web/AppIndex.pack.min.js +1 -1
  35. package/dist/web/AppIndex.pack.min.js.map +1 -1
  36. package/dist/web/page/mails/service/ConversationService.d.ts.map +1 -1
  37. package/dist/web/page/mails/service/ConversationService.js +22 -3
  38. package/dist/web/page/mails/service/ConversationService.js.map +1 -1
  39. package/package.json +1 -1
  40. package/src/public/channel/BlogService.ts +2 -4
  41. package/src/public/channel/ChannelView.tsx +3 -0
  42. package/src/public/channel/PostView.tsx +5 -1
  43. package/src/public/channel/UrlService.ts +5 -2
  44. package/src/public/channel/controls/MediaCarousel.tsx +16 -0
  45. package/src/public/channel/controls/PostList.tsx +4 -1
  46. package/src/public/channel/styles/channelViewStyle.ts +15 -4
  47. 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, descendentElementIterator, DateTime, CommonEvents, BusyProgress, EmailContentDownloader, EngagementService, MailAppEvents, fileUrl, renderMail, ConversationService;
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
- descendentElementIterator = _webAtomsCoreDistWebCoreAtomUI.descendentElementIterator;
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
- for (const iterator of descendentElementIterator(msg)) {
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;