@social-mail/social-mail-client 1.9.119 → 1.9.121

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 (30) hide show
  1. package/css-for-email.js +10 -3
  2. package/dist/admin/AdminAppIndex.pack.js +18 -9
  3. package/dist/admin/AdminAppIndex.pack.js.map +1 -1
  4. package/dist/admin/AdminAppIndex.pack.min.js +1 -1
  5. package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
  6. package/dist/public/channel/ChannelApp.pack.js +7 -5
  7. package/dist/public/channel/ChannelApp.pack.js.map +1 -1
  8. package/dist/public/channel/ChannelApp.pack.min.js +1 -1
  9. package/dist/public/channel/ChannelApp.pack.min.js.map +1 -1
  10. package/dist/site-editor-app/SiteEditorApp.pack.js +18 -9
  11. package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
  12. package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
  13. package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
  14. package/dist/tsconfig.tsbuildinfo +1 -1
  15. package/dist/web/AppIndex.pack.js +18 -9
  16. package/dist/web/AppIndex.pack.js.map +1 -1
  17. package/dist/web/AppIndex.pack.min.js +1 -1
  18. package/dist/web/AppIndex.pack.min.js.map +1 -1
  19. package/dist/web/page/mails/ConversationPage.d.ts.map +1 -1
  20. package/dist/web/page/mails/ConversationPage.js +8 -1
  21. package/dist/web/page/mails/ConversationPage.js.map +1 -1
  22. package/dist/web/page/mails/mini-compose/MiniComposePage.js +3 -3
  23. package/dist/web/page/mails/mini-compose/MiniComposePage.js.map +1 -1
  24. package/dist/web/page/mails/service/ConversationService.d.ts.map +1 -1
  25. package/dist/web/page/mails/service/ConversationService.js +7 -5
  26. package/dist/web/page/mails/service/ConversationService.js.map +1 -1
  27. package/package.json +1 -1
  28. package/src/web/page/mails/ConversationPage.tsx +11 -1
  29. package/src/web/page/mails/mini-compose/MiniComposePage.tsx +1 -1
  30. package/src/web/page/mails/service/ConversationService.tsx +8 -5
@@ -24457,11 +24457,13 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
24457
24457
  c.render(XNode.create("div", null, XNode.create("div", {
24458
24458
  "style-height": "40vh"
24459
24459
  }, XNode.create(Loader, null))), e, c);
24460
- const es = c.app.resolve(EntityService);
24461
- mail.sanitizedHtml = html = yield es.run(Email, "getBody", email, {
24462
- cacheSeconds: CacheTTL.seconds.oneMonth,
24463
- cacheVersion: CacheVersions.email
24464
- }).asText();
24460
+ if (mail.status !== "draft") {
24461
+ const es = c.app.resolve(EntityService);
24462
+ mail.sanitizedHtml = html = yield es.run(Email, "getBody", email, {
24463
+ cacheSeconds: CacheTTL.seconds.oneMonth,
24464
+ cacheVersion: CacheVersions.email
24465
+ }).asText();
24466
+ }
24465
24467
  e.innerHTML = "";
24466
24468
  }
24467
24469
  const msg = document.createElement("div");
@@ -34829,7 +34831,7 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
34829
34831
  });
34830
34832
  }
34831
34833
  prepareEmail() {
34832
- var _a, _b;
34834
+ var _a, _b, _c;
34833
34835
  this.title = "Forward";
34834
34836
  let subject = "";
34835
34837
  let htmlBody;
@@ -34897,11 +34899,11 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
34897
34899
  }, "Subject:"), XNode.create("label", null, email.subject)), XNode.create("div", {
34898
34900
  "data-type": "html-body"
34899
34901
  }, XNode.create("div", {
34900
- innerHTML: email.htmlBody
34902
+ innerHTML: (_b = email.sanitizedHtml) !== null && _b !== void 0 ? _b : email.htmlBody
34901
34903
  }))))), XNode.create("footer", {
34902
34904
  "data-social-mail-commands": "emoji-bar"
34903
34905
  })));
34904
- attachments = (_b = email.attachments) === null || _b === void 0 ? void 0 : _b.map(x => AppFile.create(Object.assign(Object.assign({}, x), {
34906
+ attachments = (_c = email.attachments) === null || _c === void 0 ? void 0 : _c.map(x => AppFile.create(Object.assign(Object.assign({}, x), {
34905
34907
  appFileID: void 0
34906
34908
  })));
34907
34909
  }
@@ -36062,7 +36064,14 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
36062
36064
  }), XNode.create(DeleteIconTextButton, {
36063
36065
  "data-click-event": "delete-draft",
36064
36066
  text: "Delete Draft"
36065
- })), !sent && XNode.create("div", {
36067
+ })), sent ? XNode.create("div", {
36068
+ "data-layout": "row",
36069
+ "data-margin-top": "default"
36070
+ }, XNode.create("i", {
36071
+ "data-click-event": "forward-email",
36072
+ class: "fa-solid fa-share-all",
36073
+ title: "Forward"
36074
+ })) : XNode.create("div", {
36066
36075
  "data-layout": "row",
36067
36076
  "data-margin-top": "default"
36068
36077
  }, XNode.create("i", {