@social-mail/social-mail-client 1.2.613 → 1.2.615

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 (56) hide show
  1. package/dist/admin/AdminAppIndex.pack.js +6 -20
  2. package/dist/admin/AdminAppIndex.pack.js.map +1 -1
  3. package/dist/admin/AdminAppIndex.pack.min.js +2 -2
  4. package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
  5. package/dist/common/CDN.d.ts +4 -0
  6. package/dist/common/CDN.d.ts.map +1 -0
  7. package/dist/common/CDN.js +20 -0
  8. package/dist/common/CDN.js.map +1 -0
  9. package/dist/model/model.d.ts +1 -0
  10. package/dist/model/model.d.ts.map +1 -1
  11. package/dist/model/model.js.map +1 -1
  12. package/dist/public/channel/BlogImageService.d.ts.map +1 -1
  13. package/dist/public/channel/BlogImageService.js +5 -3
  14. package/dist/public/channel/BlogImageService.js.map +1 -1
  15. package/dist/public/channel/BlogService.d.ts.map +1 -1
  16. package/dist/public/channel/BlogService.js +5 -3
  17. package/dist/public/channel/BlogService.js.map +1 -1
  18. package/dist/public/channel/ChannelView.d.ts.map +1 -1
  19. package/dist/public/channel/ChannelView.js +19 -33
  20. package/dist/public/channel/ChannelView.js.map +1 -1
  21. package/dist/public/channel/ChannelView.pack.js +62 -114
  22. package/dist/public/channel/ChannelView.pack.js.map +1 -1
  23. package/dist/public/channel/ChannelView.pack.min.js +7 -10
  24. package/dist/public/channel/ChannelView.pack.min.js.map +1 -1
  25. package/dist/public/channel/PostView.js +1 -1
  26. package/dist/public/channel/PostView.js.map +1 -1
  27. package/dist/public/channel/styles/channelViewStyle.d.ts.map +1 -1
  28. package/dist/public/channel/styles/channelViewStyle.js +2 -0
  29. package/dist/public/channel/styles/channelViewStyle.js.map +1 -1
  30. package/dist/public/preview/zip/DownloadZip.pack.js.map +1 -1
  31. package/dist/public/preview/zip/DownloadZip.pack.min.js.map +1 -1
  32. package/dist/public/store/Store.pack.js.map +1 -1
  33. package/dist/public/store/Store.pack.min.js.map +1 -1
  34. package/dist/public/store/cart/ShoppingCart.pack.js.map +1 -1
  35. package/dist/public/store/cart/ShoppingCart.pack.min.js.map +1 -1
  36. package/dist/site-editor/editor/webComponentsPath.d.ts +0 -1
  37. package/dist/site-editor/editor/webComponentsPath.d.ts.map +1 -1
  38. package/dist/site-editor/editor/webComponentsPath.js +1 -15
  39. package/dist/site-editor/editor/webComponentsPath.js.map +1 -1
  40. package/dist/tsconfig.tsbuildinfo +1 -1
  41. package/dist/web/AppIndex.pack.js +6 -20
  42. package/dist/web/AppIndex.pack.js.map +1 -1
  43. package/dist/web/AppIndex.pack.min.js +2 -2
  44. package/dist/web/AppIndex.pack.min.js.map +1 -1
  45. package/dist/web/page/mails/service/ConversationService.js +5 -5
  46. package/dist/web/page/mails/service/ConversationService.js.map +1 -1
  47. package/package.json +1 -1
  48. package/src/common/CDN.ts +12 -0
  49. package/src/model/model.ts +1 -0
  50. package/src/public/channel/BlogImageService.ts +2 -1
  51. package/src/public/channel/BlogService.ts +2 -1
  52. package/src/public/channel/ChannelView.tsx +43 -27
  53. package/src/public/channel/PostView.tsx +2 -2
  54. package/src/public/channel/styles/channelViewStyle.ts +2 -0
  55. package/src/site-editor/editor/webComponentsPath.ts +15 -14
  56. package/src/web/page/mails/service/ConversationService.tsx +1 -1
@@ -24328,7 +24328,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
24328
24328
  }],
24329
24329
  execute: function () {
24330
24330
  _export("renderMail", renderMail = AtomControl.registerProperty("data-html", "html", (c, e, value) => {
24331
- var _a, _b, _c;
24331
+ var _a, _b, _c, _d;
24332
24332
  if (!value) {
24333
24333
  e.innerHTML = "";
24334
24334
  return;
@@ -24354,7 +24354,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
24354
24354
  const {
24355
24355
  parentElement
24356
24356
  } = node;
24357
- if (parentElement.tagName !== "STYLE") {
24357
+ if (parentElement.tagName !== "STYLE" && ((_a = node.nodeValue) === null || _a === void 0 ? void 0 : _a.trim())) {
24358
24358
  firstVisibleElement || (firstVisibleElement = node.parentElement);
24359
24359
  }
24360
24360
  }
@@ -24364,7 +24364,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
24364
24364
  const iterator = node;
24365
24365
  let cid = iterator.getAttribute("data-content-id");
24366
24366
  if (cid) {
24367
- const a = (_a = mail.attachments) === null || _a === void 0 ? void 0 : _a.find(x => x.contentID === cid);
24367
+ const a = (_b = mail.attachments) === null || _b === void 0 ? void 0 : _b.find(x => x.contentID === cid);
24368
24368
  if (a) {
24369
24369
  iterator.setAttribute("src", a.url);
24370
24370
  }
@@ -24377,7 +24377,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
24377
24377
  if (src) {
24378
24378
  if (src.startsWith("cid:")) {
24379
24379
  cid = src.substring(4);
24380
- const a = (_b = mail.attachments) === null || _b === void 0 ? void 0 : _b.find(x => x.contentID === cid);
24380
+ const a = (_c = mail.attachments) === null || _c === void 0 ? void 0 : _c.find(x => x.contentID === cid);
24381
24381
  if (a) {
24382
24382
  iterator.setAttribute("src", fileUrl(a));
24383
24383
  }
@@ -24413,7 +24413,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
24413
24413
  const root = AncestorEnumerator.find(e, x => x.hasAttribute("data-msg-container"));
24414
24414
  (root !== null && root !== void 0 ? root : e).setAttribute("has-poster", "true");
24415
24415
  }
24416
- if (!thread.timeRead && thread.mailboxID && thread.mailboxID !== ((_c = thread.email) === null || _c === void 0 ? void 0 : _c.senderID)) {
24416
+ if (!thread.timeRead && thread.mailboxID && thread.mailboxID !== ((_d = thread.email) === null || _d === void 0 ? void 0 : _d.senderID)) {
24417
24417
  const timeRead = DateTime.now;
24418
24418
  thread.timeRead = timeRead;
24419
24419
  const control = AtomControl.from(e);
@@ -48024,20 +48024,6 @@ System.register(["tslib", "@web-atoms/core/dist/core/sleep", "@web-atoms/core/di
48024
48024
  });
48025
48025
  };
48026
48026
  _export("WebComponents", WebComponents = class WebComponents {
48027
- static run2(frame, doc) {
48028
- return __awaiter(this, void 0, void 0, function* () {
48029
- const url = this.path + "/dist/editable.js";
48030
- const sandbox = frame.getAttribute("sandbox");
48031
- frame.setAttribute("sandbox", "allow-same-origin allow-scripts allow-popups allow-forms");
48032
- const text = yield FetchBuilder.get(url).responseAsText();
48033
- const win = doc.defaultView;
48034
- win.eval(`window.addEventListener("unsafeEval", (e) => eval(e.detail) , { once: true });`);
48035
- win.dispatchEvent(new CustomEvent("unsafeEval", {
48036
- detail: text
48037
- }));
48038
- setTimeout(() => frame.setAttribute("sandbox", ""), 100);
48039
- });
48040
- }
48041
48027
  static run(frame, doc) {
48042
48028
  return __awaiter(this, void 0, void 0, function* () {
48043
48029
  const url = this.path + "/dist/editable.js";
@@ -48156,7 +48142,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/sleep", "@web-atoms/core/di
48156
48142
  });
48157
48143
  }
48158
48144
  });
48159
- WebComponents.path = `//cdn.jsdelivr.net/npm/@social-mail/web-components@1.0.125`;
48145
+ WebComponents.path = `//cdn.jsdelivr.net/npm/@social-mail/web-components@1.0.129`;
48160
48146
  }
48161
48147
  };
48162
48148
  });