@social-mail/social-mail-client 1.4.7 → 1.4.9

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 (70) hide show
  1. package/dist/admin/AdminAppIndex.pack.js +37 -11
  2. package/dist/admin/AdminAppIndex.pack.js.map +1 -1
  3. package/dist/admin/AdminAppIndex.pack.min.js +4 -4
  4. package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
  5. package/dist/model/model.d.ts +7 -1
  6. package/dist/model/model.d.ts.map +1 -1
  7. package/dist/model/model.js +20 -0
  8. package/dist/model/model.js.map +1 -1
  9. package/dist/public/channel/BlogImageService.d.ts.map +1 -1
  10. package/dist/public/channel/BlogImageService.js +3 -17
  11. package/dist/public/channel/BlogImageService.js.map +1 -1
  12. package/dist/public/channel/BlogService.d.ts.map +1 -1
  13. package/dist/public/channel/BlogService.js +1 -2
  14. package/dist/public/channel/BlogService.js.map +1 -1
  15. package/dist/public/channel/ChannelApp.pack.js +39 -26
  16. package/dist/public/channel/ChannelApp.pack.js.map +1 -1
  17. package/dist/public/channel/ChannelApp.pack.min.js +6 -6
  18. package/dist/public/channel/ChannelApp.pack.min.js.map +1 -1
  19. package/dist/public/channel/PostSummary.d.ts.map +1 -1
  20. package/dist/public/channel/PostSummary.js +5 -5
  21. package/dist/public/channel/PostSummary.js.map +1 -1
  22. package/dist/public/channel/controls/PostList.js +1 -1
  23. package/dist/public/channel/controls/PostList.js.map +1 -1
  24. package/dist/public/preview/zip/DownloadZip.js +1 -1
  25. package/dist/public/preview/zip/DownloadZip.js.map +1 -1
  26. package/dist/public/preview/zip/DownloadZip.pack.js +21 -1
  27. package/dist/public/preview/zip/DownloadZip.pack.js.map +1 -1
  28. package/dist/public/preview/zip/DownloadZip.pack.min.js +2 -2
  29. package/dist/public/preview/zip/DownloadZip.pack.min.js.map +1 -1
  30. package/dist/public/store/StoreApp.pack.js +20 -0
  31. package/dist/public/store/StoreApp.pack.js.map +1 -1
  32. package/dist/public/store/StoreApp.pack.min.js +1 -1
  33. package/dist/public/store/StoreApp.pack.min.js.map +1 -1
  34. package/dist/public/store/cart/ShoppingCart.pack.js +20 -0
  35. package/dist/public/store/cart/ShoppingCart.pack.js.map +1 -1
  36. package/dist/public/store/cart/ShoppingCart.pack.min.js +1 -1
  37. package/dist/public/store/cart/ShoppingCart.pack.min.js.map +1 -1
  38. package/dist/site-editor-app/SiteEditorApp.pack.js +37 -11
  39. package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
  40. package/dist/site-editor-app/SiteEditorApp.pack.min.js +5 -5
  41. package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
  42. package/dist/tsconfig.tsbuildinfo +1 -1
  43. package/dist/web/AppIndex.pack.js +37 -11
  44. package/dist/web/AppIndex.pack.js.map +1 -1
  45. package/dist/web/AppIndex.pack.min.js +5 -5
  46. package/dist/web/AppIndex.pack.min.js.map +1 -1
  47. package/dist/web/page/mails/ConversationPage.js +4 -4
  48. package/dist/web/page/mails/ConversationPage.js.map +1 -1
  49. package/dist/web/page/mails/detail/MailDetailPage.d.ts +2 -2
  50. package/dist/web/page/mails/detail/MailDetailPage.d.ts.map +1 -1
  51. package/dist/web/page/mails/detail/MailDetailPage.js +2 -2
  52. package/dist/web/page/mails/detail/MailDetailPage.js.map +1 -1
  53. package/dist/web/page/mails/service/ConversationService.d.ts.map +1 -1
  54. package/dist/web/page/mails/service/ConversationService.js +9 -1
  55. package/dist/web/page/mails/service/ConversationService.js.map +1 -1
  56. package/dist/web/page/mails/service/MailService.d.ts +2 -2
  57. package/dist/web/page/mails/service/MailService.d.ts.map +1 -1
  58. package/dist/web/page/mails/service/MailService.js +2 -4
  59. package/dist/web/page/mails/service/MailService.js.map +1 -1
  60. package/package.json +1 -1
  61. package/src/model/model.ts +8 -5
  62. package/src/public/channel/BlogImageService.ts +9 -11
  63. package/src/public/channel/BlogService.ts +1 -2
  64. package/src/public/channel/PostSummary.tsx +2 -4
  65. package/src/public/channel/controls/PostList.tsx +1 -1
  66. package/src/public/preview/zip/DownloadZip.tsx +1 -1
  67. package/src/web/page/mails/ConversationPage.tsx +2 -2
  68. package/src/web/page/mails/detail/MailDetailPage.tsx +4 -4
  69. package/src/web/page/mails/service/ConversationService.tsx +13 -1
  70. package/src/web/page/mails/service/MailService.ts +3 -4
@@ -13967,6 +13967,11 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
13967
13967
  "isCollection": true,
13968
13968
  "isInverse": true,
13969
13969
  "relatedName": "EmailTemplate"
13970
+ }, {
13971
+ "name": "channelEmails",
13972
+ "isCollection": true,
13973
+ "isInverse": true,
13974
+ "relatedName": "ChannelEmail"
13970
13975
  }, {
13971
13976
  "name": "storeJournals",
13972
13977
  "isCollection": true,
@@ -13990,6 +13995,7 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
13990
13995
  }],
13991
13996
  "queries": {
13992
13997
  "storeItemFiles": "external",
13998
+ "channelPostFiles": "external",
13993
13999
  "channelEmailFiles": "external",
13994
14000
  "channelFiles": "external",
13995
14001
  "children": "external",
@@ -15886,6 +15892,9 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
15886
15892
  "isInverse": true,
15887
15893
  "relatedName": "ThreadParticipant"
15888
15894
  }],
15895
+ "queries": {
15896
+ "channelEmails": "external"
15897
+ },
15889
15898
  "actions": {
15890
15899
  "getBody": "external"
15891
15900
  }
@@ -16555,6 +16564,10 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
16555
16564
  "type": "boolean",
16556
16565
  "dataType": "Boolean",
16557
16566
  "default": ["isThread", "false"]
16567
+ }, {
16568
+ "name": "previewFileID",
16569
+ "type": "number",
16570
+ "dataType": "BigInt"
16558
16571
  }],
16559
16572
  "relations": [{
16560
16573
  "name": "mailbox",
@@ -16570,6 +16583,13 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
16570
16583
  "relatedKey": "emailID"
16571
16584
  }],
16572
16585
  "relatedName": "Email"
16586
+ }, {
16587
+ "name": "previewFile",
16588
+ "fkMap": [{
16589
+ "fk": "previewFileID",
16590
+ "relatedKey": "appFileID"
16591
+ }],
16592
+ "relatedName": "AppFile"
16573
16593
  }],
16574
16594
  "queries": {
16575
16595
  "channelEmails": "external"
@@ -29627,11 +29647,9 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
29627
29647
  });
29628
29648
  }
29629
29649
  raw(email) {
29650
+ var _a;
29630
29651
  return __awaiter(this, void 0, void 0, function* () {
29631
- const {
29632
- mimeFileID
29633
- } = email;
29634
- return FetchBuilder.get(apiPath(`/api/emails/logs/${mimeFileID}/${email.emailID}.eml`)).asText();
29652
+ return FetchBuilder.get(apiPath(`/api/emails/logs/${(_a = email.signedFileLogID) !== null && _a !== void 0 ? _a : email.email.mimeFileID}/${email.emailID}.eml`)).asText();
29635
29653
  });
29636
29654
  }
29637
29655
  send(email) {
@@ -30261,15 +30279,23 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
30261
30279
  } = value;
30262
30280
  const mail = email !== null && email !== void 0 ? email : thread.email;
30263
30281
  let html = mail.htmlBody;
30282
+ if (thread === null || thread === void 0 ? void 0 : thread.signedFileLogID) {
30283
+ html = null;
30284
+ }
30264
30285
  if (!html) {
30265
30286
  c.render(XNode.create("div", null, XNode.create("div", {
30266
30287
  "style-height": "40vh"
30267
30288
  }, XNode.create(Loader, null))), e, c);
30268
30289
  const es = c.app.resolve(EntityService);
30269
30290
  if (thread) {
30291
+ const args = [];
30292
+ if (thread.signedFileLogID) {
30293
+ args.push(thread.signedFileLogID);
30294
+ }
30270
30295
  mail.htmlBody = html = yield es.run(MailboxContactEmail, "getBody", thread, {
30271
30296
  cacheSeconds: CacheTTL.seconds.oneMonth,
30272
- cacheVersion
30297
+ cacheVersion,
30298
+ args
30273
30299
  }).asText();
30274
30300
  } else {
30275
30301
  mail.htmlBody = html = yield es.run(Email, "getBody", email, {
@@ -35469,10 +35495,10 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
35469
35495
  init() {
35470
35496
  var _a;
35471
35497
  return __awaiter(this, void 0, void 0, function* () {
35472
- const model = this.parameters;
35498
+ const model = this.parameters.email;
35473
35499
  this.renderer = XNode.create("div", null, XNode.create("div", null, "Fetching... this might take longer based on size of the email..."));
35474
35500
  this.title = model.subject;
35475
- const text = yield this.mailService.raw(model);
35501
+ const text = yield this.mailService.raw(this.parameters);
35476
35502
  let from;
35477
35503
  const to = [];
35478
35504
  const cc = [];
@@ -42084,7 +42110,7 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
42084
42110
  });
42085
42111
  }
42086
42112
  mailOptions(thread, ce) {
42087
- var _a, _b;
42113
+ var _a, _b, _c;
42088
42114
  return __awaiter(this, void 0, void 0, function* () {
42089
42115
  void InlinePopupControl.showPopup(ce.target, XNode.create("div", {
42090
42116
  "data-click-event": "none",
@@ -42093,18 +42119,18 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
42093
42119
  icon: "fas fa-delete",
42094
42120
  "data-click-event": "un-publish-mail"
42095
42121
  }), XNode.create(MenuItem, {
42096
- eventClick: () => PageNavigator.pushPage(MailDetailPage, thread.email),
42122
+ eventClick: () => PageNavigator.pushPage(MailDetailPage, thread),
42097
42123
  icon: "fas fa-eye",
42098
42124
  label: "Details"
42099
42125
  }), XNode.create(MenuItem, {
42100
- href: apiPath(`/api/emails/logs/${thread.email.mimeFileID}/${thread.email.emailID}.eml`),
42126
+ href: apiPath(`/api/emails/logs/${(_b = thread.signedFileLogID) !== null && _b !== void 0 ? _b : thread.email.mimeFileID}/${thread.email.emailID}.eml`),
42101
42127
  icon: "fas fa-download",
42102
42128
  label: "Download"
42103
42129
  }), XNode.create(MenuItem, {
42104
42130
  "data-click-event": "open-logs",
42105
42131
  icon: "fa-regular fa-clock-rotate-left",
42106
42132
  label: "Logs"
42107
- }), ((_b = thread.email) === null || _b === void 0 ? void 0 : _b.status) === "draft" && XNode.create(MenuItem, {
42133
+ }), ((_c = thread.email) === null || _c === void 0 ? void 0 : _c.status) === "draft" && XNode.create(MenuItem, {
42108
42134
  "data-click-event": "delete-draft",
42109
42135
  icon: "fa-regular fa-clock-rotate-left",
42110
42136
  label: "Delete Draft"