@social-mail/social-mail-client 1.8.123 → 1.8.125

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 (71) hide show
  1. package/dist/admin/AdminAppIndex.pack.js +21 -12
  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/common/cache/CacheVersions.d.ts +6 -2
  6. package/dist/common/cache/CacheVersions.d.ts.map +1 -1
  7. package/dist/common/cache/CacheVersions.js +7 -3
  8. package/dist/common/cache/CacheVersions.js.map +1 -1
  9. package/dist/public/channel/BlogService.js +4 -5
  10. package/dist/public/channel/BlogService.js.map +1 -1
  11. package/dist/public/channel/ChannelApp.local.css +1 -1
  12. package/dist/public/channel/ChannelApp.local.css.map +1 -1
  13. package/dist/public/channel/ChannelApp.pack.global.css +1 -1
  14. package/dist/public/channel/ChannelApp.pack.global.css.map +1 -1
  15. package/dist/public/channel/ChannelApp.pack.js +119 -32
  16. package/dist/public/channel/ChannelApp.pack.js.map +1 -1
  17. package/dist/public/channel/ChannelApp.pack.local.css +1 -1
  18. package/dist/public/channel/ChannelApp.pack.local.css.map +1 -1
  19. package/dist/public/channel/ChannelApp.pack.min.js +1 -1
  20. package/dist/public/channel/ChannelApp.pack.min.js.map +1 -1
  21. package/dist/public/channel/controls/channel-post/ChannelPost.d.ts +1 -0
  22. package/dist/public/channel/controls/channel-post/ChannelPost.d.ts.map +1 -1
  23. package/dist/public/channel/controls/channel-post/ChannelPost.global.css +1 -1
  24. package/dist/public/channel/controls/channel-post/ChannelPost.global.css.map +1 -1
  25. package/dist/public/channel/controls/channel-post/ChannelPost.js +20 -5
  26. package/dist/public/channel/controls/channel-post/ChannelPost.js.map +1 -1
  27. package/dist/public/channel/controls/post-view/PostView.global.css +1 -1
  28. package/dist/public/channel/controls/post-view/PostView.global.css.map +1 -1
  29. package/dist/public/channel/pages/comments/PostComments.d.ts +9 -0
  30. package/dist/public/channel/pages/comments/PostComments.d.ts.map +1 -1
  31. package/dist/public/channel/pages/comments/PostComments.global.css +1 -1
  32. package/dist/public/channel/pages/comments/PostComments.global.css.map +1 -1
  33. package/dist/public/channel/pages/comments/PostComments.js +55 -6
  34. package/dist/public/channel/pages/comments/PostComments.js.map +1 -1
  35. package/dist/public/channel/pages/posts/ChannelPage.d.ts +1 -0
  36. package/dist/public/channel/pages/posts/ChannelPage.d.ts.map +1 -1
  37. package/dist/public/channel/pages/posts/ChannelPage.js +19 -4
  38. package/dist/public/channel/pages/posts/ChannelPage.js.map +1 -1
  39. package/dist/services/email/EmailContentDownloader.js +3 -3
  40. package/dist/services/email/EmailContentDownloader.js.map +1 -1
  41. package/dist/site-editor/suggestions/editorSuggestions.d.ts +48 -0
  42. package/dist/site-editor/suggestions/editorSuggestions.d.ts.map +1 -1
  43. package/dist/site-editor/suggestions/properties/size.d.ts +48 -0
  44. package/dist/site-editor/suggestions/properties/size.d.ts.map +1 -1
  45. package/dist/site-editor/suggestions/properties/size.js +13 -1
  46. package/dist/site-editor/suggestions/properties/size.js.map +1 -1
  47. package/dist/site-editor-app/SiteEditorApp.pack.js +34 -13
  48. package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
  49. package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
  50. package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
  51. package/dist/tsconfig.tsbuildinfo +1 -1
  52. package/dist/web/AppIndex.pack.js +21 -12
  53. package/dist/web/AppIndex.pack.js.map +1 -1
  54. package/dist/web/AppIndex.pack.min.js +1 -1
  55. package/dist/web/AppIndex.pack.min.js.map +1 -1
  56. package/dist/web/page/mails/service/ConversationService.d.ts.map +1 -1
  57. package/dist/web/page/mails/service/ConversationService.js +11 -6
  58. package/dist/web/page/mails/service/ConversationService.js.map +1 -1
  59. package/package.json +1 -1
  60. package/src/common/cache/CacheVersions.ts +7 -2
  61. package/src/public/channel/BlogService.ts +3 -3
  62. package/src/public/channel/ChannelApp.local.css +0 -26
  63. package/src/public/channel/controls/channel-post/ChannelPost.global.css +24 -7
  64. package/src/public/channel/controls/channel-post/ChannelPost.tsx +17 -5
  65. package/src/public/channel/controls/post-view/PostView.global.css +1 -1
  66. package/src/public/channel/pages/comments/PostComments.global.css +27 -1
  67. package/src/public/channel/pages/comments/PostComments.tsx +76 -6
  68. package/src/public/channel/pages/posts/ChannelPage.tsx +20 -2
  69. package/src/services/email/EmailContentDownloader.ts +2 -2
  70. package/src/site-editor/suggestions/properties/size.ts +13 -0
  71. package/src/web/page/mails/service/ConversationService.tsx +11 -23
@@ -27974,12 +27974,16 @@ System.register(["@web-atoms/core/dist/core/XNode", "@social-mail/social-mail-cl
27974
27974
  System.register([], function (_export, _context) {
27975
27975
  "use strict";
27976
27976
 
27977
- var emailContentVersion, channelNameContentVersion;
27977
+ var CacheVersions;
27978
27978
  return {
27979
27979
  setters: [],
27980
27980
  execute: function () {
27981
- _export("emailContentVersion", emailContentVersion = "ec1");
27982
- _export("channelNameContentVersion", channelNameContentVersion = "cl1");
27981
+ CacheVersions = {
27982
+ email: "ec1",
27983
+ channelName: "cl1",
27984
+ comment: "c1"
27985
+ };
27986
+ _export("default", CacheVersions);
27983
27987
  }
27984
27988
  };
27985
27989
  });
@@ -27990,7 +27994,7 @@ System.register([], function (_export, _context) {
27990
27994
  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", "../../../commands/MailAppEvents", "../../../../common/fileUrl", "../../../../common/cache/CacheTTL", "../../../../common/controls/Loader", "./MsgStyle.global.css", "@web-atoms/core/dist/services/FetchBuilder", "../../../../common/cache/CacheVersions"], function (_export, _context) {
27991
27995
  "use strict";
27992
27996
 
27993
- var __awaiter, __decorate, __metadata, DISingleton, Inject, EntityService, Email, EmailRecipient, MailboxContactEmail, Sql, DomToString, XNode, AtomControl, AncestorEnumerator, descendentIterator, DateTime, CommonEvents, MailAppEvents, fileUrl, CacheTTL, Loader, FetchBuilder, emailContentVersion, msgStyleUrl, msgStyle, renderMailPromise, ConversationService;
27997
+ var __awaiter, __decorate, __metadata, DISingleton, Inject, EntityService, Email, EmailRecipient, MailboxContactEmail, Sql, DomToString, XNode, AtomControl, AncestorEnumerator, descendentIterator, DateTime, CommonEvents, MailAppEvents, fileUrl, CacheTTL, Loader, FetchBuilder, CacheVersions, msgStyleUrl, msgStyle, renderMailPromise, ConversationService;
27994
27998
  return {
27995
27999
  setters: [function (_tslib) {
27996
28000
  __awaiter = _tslib.__awaiter;
@@ -28032,7 +28036,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
28032
28036
  }, function (_MsgStyleGlobalCss) {}, function (_webAtomsCoreDistServicesFetchBuilder) {
28033
28037
  FetchBuilder = _webAtomsCoreDistServicesFetchBuilder.default;
28034
28038
  }, function (_commonCacheCacheVersions) {
28035
- emailContentVersion = _commonCacheCacheVersions.emailContentVersion;
28039
+ CacheVersions = _commonCacheCacheVersions.default;
28036
28040
  }],
28037
28041
  execute: function () {
28038
28042
  msgStyleUrl = _context.import("./MsgStyle.global.css");
@@ -28043,7 +28047,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
28043
28047
  return FetchBuilder.get(path).asText();
28044
28048
  }))();
28045
28049
  _export("renderMailPromise", renderMailPromise = AtomControl.registerProperty("data-html", "html", (c, e, value) => __awaiter(void 0, void 0, void 0, function* () {
28046
- var _a, _b, _c, _d, _e;
28050
+ var _a, _b, _c, _d, _e, _f;
28047
28051
  if (!value) {
28048
28052
  e.innerHTML = "";
28049
28053
  return;
@@ -28061,7 +28065,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
28061
28065
  const es = c.app.resolve(EntityService);
28062
28066
  mail.htmlBody = html = yield es.run(Email, "getBody", email, {
28063
28067
  cacheSeconds: CacheTTL.seconds.oneMonth,
28064
- cacheVersion: emailContentVersion
28068
+ cacheVersion: CacheVersions.email
28065
28069
  }).asText();
28066
28070
  e.innerHTML = "";
28067
28071
  }
@@ -28097,6 +28101,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
28097
28101
  const a = (_b = mail.attachments) === null || _b === void 0 ? void 0 : _b.find(x => x.contentID === cid);
28098
28102
  if (a) {
28099
28103
  iterator.setAttribute("src", a.url);
28104
+ a.included = true;
28100
28105
  }
28101
28106
  }
28102
28107
  if (/^(IMG|VIDEO)$/.test(iterator.tagName)) {
@@ -28134,11 +28139,15 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
28134
28139
  const container = document.createElement("msg-root");
28135
28140
  msg.setAttribute("msg", "msg");
28136
28141
  container.appendChild(msg);
28142
+ const root = AncestorEnumerator.find(e, x => x.tagName === "CHANNEL-POST" || x.hasAttribute("data-msg-container"));
28137
28143
  if (/img|video/i.test(firstVisibleElement === null || firstVisibleElement === void 0 ? void 0 : firstVisibleElement.tagName)) {
28138
- const root = AncestorEnumerator.find(e, x => x.hasAttribute("data-msg-container"));
28139
28144
  (root !== null && root !== void 0 ? root : e).setAttribute("has-poster", "true");
28140
28145
  }
28141
- if (thread && !thread.timeRead && thread.mailboxID && thread.mailboxID !== ((_e = thread.email) === null || _e === void 0 ? void 0 : _e.senderID)) {
28146
+ const included = (_e = email.attachments) === null || _e === void 0 ? void 0 : _e.every(x => x.included);
28147
+ if (included) {
28148
+ (root !== null && root !== void 0 ? root : e).setAttribute("hide-media", "1");
28149
+ }
28150
+ if (thread && !thread.timeRead && thread.mailboxID && thread.mailboxID !== ((_f = thread.email) === null || _f === void 0 ? void 0 : _f.senderID)) {
28142
28151
  const timeRead = DateTime.now;
28143
28152
  thread.timeRead = timeRead;
28144
28153
  const es = c.app.resolve(EntityService);
@@ -37017,7 +37026,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/BindableProperty", "@web-at
37017
37026
  System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/entity/dist/models/TaskManager", "../../model/model", "@web-atoms/core/dist/di/Inject", "../EntityService", "../../common/cache/CacheTTL", "../../common/cache/CacheVersions"], function (_export, _context) {
37018
37027
  "use strict";
37019
37028
 
37020
- var __awaiter, __decorate, __metadata, DISingleton, TaskManager, Email, Inject, EntityService, CacheTTL, emailContentVersion, cacheSeconds, EmailContentDownloader;
37029
+ var __awaiter, __decorate, __metadata, DISingleton, TaskManager, Email, Inject, EntityService, CacheTTL, CacheVersions, cacheSeconds, EmailContentDownloader;
37021
37030
  return {
37022
37031
  setters: [function (_tslib) {
37023
37032
  __awaiter = _tslib.__awaiter;
@@ -37036,7 +37045,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/ent
37036
37045
  }, function (_commonCacheCacheTTL) {
37037
37046
  CacheTTL = _commonCacheCacheTTL.CacheTTL;
37038
37047
  }, function (_commonCacheCacheVersions) {
37039
- emailContentVersion = _commonCacheCacheVersions.emailContentVersion;
37048
+ CacheVersions = _commonCacheCacheVersions.default;
37040
37049
  }],
37041
37050
  execute: function () {
37042
37051
  cacheSeconds = CacheTTL.seconds.oneMonth;
@@ -37044,7 +37053,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/ent
37044
37053
  downloadPost(email) {
37045
37054
  return __awaiter(this, void 0, void 0, function* () {
37046
37055
  email.htmlBody || (email.htmlBody = yield this.entityService.run(Email, "getBody", email, {
37047
- cacheVersion: emailContentVersion,
37056
+ cacheVersion: CacheVersions.email,
37048
37057
  cacheSeconds
37049
37058
  }).asText());
37050
37059
  });