@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
@@ -29124,11 +29124,13 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
29124
29124
  c.render(XNode.create("div", null, XNode.create("div", {
29125
29125
  "style-height": "40vh"
29126
29126
  }, XNode.create(Loader, null))), e, c);
29127
- const es = c.app.resolve(EntityService);
29128
- mail.sanitizedHtml = html = yield es.run(Email, "getBody", email, {
29129
- cacheSeconds: CacheTTL.seconds.oneMonth,
29130
- cacheVersion: CacheVersions.email
29131
- }).asText();
29127
+ if (mail.status !== "draft") {
29128
+ const es = c.app.resolve(EntityService);
29129
+ mail.sanitizedHtml = html = yield es.run(Email, "getBody", email, {
29130
+ cacheSeconds: CacheTTL.seconds.oneMonth,
29131
+ cacheVersion: CacheVersions.email
29132
+ }).asText();
29133
+ }
29132
29134
  e.innerHTML = "";
29133
29135
  }
29134
29136
  const msg = document.createElement("div");
@@ -39478,7 +39480,7 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
39478
39480
  });
39479
39481
  }
39480
39482
  prepareEmail() {
39481
- var _a, _b;
39483
+ var _a, _b, _c;
39482
39484
  this.title = "Forward";
39483
39485
  let subject = "";
39484
39486
  let htmlBody;
@@ -39546,11 +39548,11 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
39546
39548
  }, "Subject:"), XNode.create("label", null, email.subject)), XNode.create("div", {
39547
39549
  "data-type": "html-body"
39548
39550
  }, XNode.create("div", {
39549
- innerHTML: email.htmlBody
39551
+ innerHTML: (_b = email.sanitizedHtml) !== null && _b !== void 0 ? _b : email.htmlBody
39550
39552
  }))))), XNode.create("footer", {
39551
39553
  "data-social-mail-commands": "emoji-bar"
39552
39554
  })));
39553
- attachments = (_b = email.attachments) === null || _b === void 0 ? void 0 : _b.map(x => AppFile.create(Object.assign(Object.assign({}, x), {
39555
+ attachments = (_c = email.attachments) === null || _c === void 0 ? void 0 : _c.map(x => AppFile.create(Object.assign(Object.assign({}, x), {
39554
39556
  appFileID: void 0
39555
39557
  })));
39556
39558
  }
@@ -40601,7 +40603,14 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
40601
40603
  }), XNode.create(DeleteIconTextButton, {
40602
40604
  "data-click-event": "delete-draft",
40603
40605
  text: "Delete Draft"
40604
- })), !sent && XNode.create("div", {
40606
+ })), sent ? XNode.create("div", {
40607
+ "data-layout": "row",
40608
+ "data-margin-top": "default"
40609
+ }, XNode.create("i", {
40610
+ "data-click-event": "forward-email",
40611
+ class: "fa-solid fa-share-all",
40612
+ title: "Forward"
40613
+ })) : XNode.create("div", {
40605
40614
  "data-layout": "row",
40606
40615
  "data-margin-top": "default"
40607
40616
  }, XNode.create("i", {