@social-mail/social-mail-client 1.8.272 → 1.8.273

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 (29) hide show
  1. package/dist/admin/AdminAppIndex.pack.js +11 -1
  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/ChannelApp.pack.js +13 -6
  6. package/dist/public/channel/ChannelApp.pack.js.map +1 -1
  7. package/dist/public/channel/ChannelApp.pack.min.js +1 -1
  8. package/dist/public/channel/ChannelApp.pack.min.js.map +1 -1
  9. package/dist/public/channel/pages/PublicChannelPage.js +1 -1
  10. package/dist/public/channel/pages/PublicChannelPage.js.map +1 -1
  11. package/dist/public/channel/pages/posts/ChannelPage.js +2 -5
  12. package/dist/public/channel/pages/posts/ChannelPage.js.map +1 -1
  13. package/dist/services/email/EmailContentDownloader.d.ts +2 -1
  14. package/dist/services/email/EmailContentDownloader.d.ts.map +1 -1
  15. package/dist/services/email/EmailContentDownloader.js +11 -1
  16. package/dist/services/email/EmailContentDownloader.js.map +1 -1
  17. package/dist/site-editor-app/SiteEditorApp.pack.js +11 -1
  18. package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
  19. package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
  20. package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
  21. package/dist/tsconfig.tsbuildinfo +1 -1
  22. package/dist/web/AppIndex.pack.js +11 -1
  23. package/dist/web/AppIndex.pack.js.map +1 -1
  24. package/dist/web/AppIndex.pack.min.js +1 -1
  25. package/dist/web/AppIndex.pack.min.js.map +1 -1
  26. package/package.json +1 -1
  27. package/src/public/channel/pages/PublicChannelPage.tsx +1 -1
  28. package/src/public/channel/pages/posts/ChannelPage.tsx +2 -2
  29. package/src/services/email/EmailContentDownloader.ts +8 -1
@@ -22527,7 +22527,7 @@ System.register([], function (_export, _context) {
22527
22527
  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) {
22528
22528
  "use strict";
22529
22529
 
22530
- var __awaiter, __decorate, __metadata, DISingleton, TaskManager, Email, Inject, EntityService, CacheTTL, CacheVersions, cacheSeconds, EmailContentDownloader;
22530
+ var __awaiter, __decorate, __metadata, DISingleton, TaskManager, ChannelEmail, Email, Inject, EntityService, CacheTTL, CacheVersions, cacheSeconds, EmailContentDownloader;
22531
22531
  return {
22532
22532
  setters: [function (_tslib) {
22533
22533
  __awaiter = _tslib.__awaiter;
@@ -22538,6 +22538,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/ent
22538
22538
  }, function (_webAtomsEntityDistModelsTaskManager) {
22539
22539
  TaskManager = _webAtomsEntityDistModelsTaskManager.default;
22540
22540
  }, function (_modelModel) {
22541
+ ChannelEmail = _modelModel.ChannelEmail;
22541
22542
  Email = _modelModel.Email;
22542
22543
  }, function (_webAtomsCoreDistDiInject) {
22543
22544
  Inject = _webAtomsCoreDistDiInject.Inject;
@@ -22551,6 +22552,15 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/ent
22551
22552
  execute: function () {
22552
22553
  cacheSeconds = CacheTTL.seconds.oneMonth;
22553
22554
  EmailContentDownloader = class EmailContentDownloader extends TaskManager {
22555
+ downloadPostContent(email) {
22556
+ return __awaiter(this, void 0, void 0, function* () {
22557
+ var _a;
22558
+ (_a = email.email).htmlBody || (_a.htmlBody = yield this.entityService.run(ChannelEmail, "getBody", email, {
22559
+ cacheVersion: CacheVersions.email,
22560
+ cacheSeconds
22561
+ }).asText());
22562
+ });
22563
+ }
22554
22564
  downloadPost(email) {
22555
22565
  return __awaiter(this, void 0, void 0, function* () {
22556
22566
  email.htmlBody || (email.htmlBody = yield this.entityService.run(Email, "getBody", email, {
@@ -27191,11 +27201,8 @@ System.register(["tslib", "../../BlogService", "../../../../model/model", "@web-
27191
27201
  this.email = e;
27192
27202
  }
27193
27203
  const tasks = [];
27194
- for (const {
27195
- postID,
27196
- email
27197
- } of result.items) {
27198
- tasks.push(this.downloader.downloadPost(email));
27204
+ for (const ce of result.items) {
27205
+ tasks.push(this.downloader.downloadPost(ce));
27199
27206
  }
27200
27207
  yield Promise.all(tasks);
27201
27208
  if (this.email) {