@social-mail/social-mail-client 1.8.268 → 1.8.269

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 (39) hide show
  1. package/dist/admin/AdminAppIndex.pack.js +13 -5
  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.global.css +1 -1
  6. package/dist/public/channel/ChannelApp.pack.global.css.map +1 -1
  7. package/dist/public/channel/ChannelApp.pack.js +25 -6
  8. package/dist/public/channel/ChannelApp.pack.js.map +1 -1
  9. package/dist/public/channel/ChannelApp.pack.min.js +1 -1
  10. package/dist/public/channel/ChannelApp.pack.min.js.map +1 -1
  11. package/dist/public/channel/controls/channel-post/ChannelPost.d.ts.map +1 -1
  12. package/dist/public/channel/controls/channel-post/ChannelPost.global.css +1 -1
  13. package/dist/public/channel/controls/channel-post/ChannelPost.global.css.map +1 -1
  14. package/dist/public/channel/controls/channel-post/ChannelPost.js +4 -1
  15. package/dist/public/channel/controls/channel-post/ChannelPost.js.map +1 -1
  16. package/dist/public/channel/pages/posts/ChannelPage.d.ts +3 -0
  17. package/dist/public/channel/pages/posts/ChannelPage.d.ts.map +1 -1
  18. package/dist/public/channel/pages/posts/ChannelPage.js +8 -0
  19. package/dist/public/channel/pages/posts/ChannelPage.js.map +1 -1
  20. package/dist/site-editor-app/SiteEditorApp.pack.js +13 -5
  21. package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
  22. package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
  23. package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
  24. package/dist/tsconfig.tsbuildinfo +1 -1
  25. package/dist/web/AppIndex.pack.js +13 -5
  26. package/dist/web/AppIndex.pack.js.map +1 -1
  27. package/dist/web/AppIndex.pack.min.js +1 -1
  28. package/dist/web/AppIndex.pack.min.js.map +1 -1
  29. package/dist/web/page/mails/ConversationPage.d.ts.map +1 -1
  30. package/dist/web/page/mails/ConversationPage.js.map +1 -1
  31. package/dist/web/page/mails/service/ConversationService.d.ts.map +1 -1
  32. package/dist/web/page/mails/service/ConversationService.js +13 -5
  33. package/dist/web/page/mails/service/ConversationService.js.map +1 -1
  34. package/package.json +1 -1
  35. package/src/public/channel/controls/channel-post/ChannelPost.global.css +17 -0
  36. package/src/public/channel/controls/channel-post/ChannelPost.tsx +5 -0
  37. package/src/public/channel/pages/posts/ChannelPage.tsx +6 -0
  38. package/src/web/page/mails/ConversationPage.tsx +6 -0
  39. package/src/web/page/mails/service/ConversationService.tsx +10 -2
@@ -24130,7 +24130,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
24130
24130
  return FetchBuilder.get(path).asText();
24131
24131
  }))();
24132
24132
  _export("renderMailPromise", renderMailPromise = AtomControl.registerProperty("data-html", "html", (c, e, value) => __awaiter(void 0, void 0, void 0, function* () {
24133
- var _a, _b, _c, _d, _e, _f;
24133
+ var _a, _b, _c, _d, _e, _f, _g;
24134
24134
  if (!value) {
24135
24135
  e.innerHTML = "";
24136
24136
  return;
@@ -24222,15 +24222,23 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
24222
24222
  const container = document.createElement("msg-root");
24223
24223
  msg.setAttribute("msg", "msg");
24224
24224
  container.appendChild(msg);
24225
- const root = AncestorEnumerator.find(e, x => x.tagName === "CHANNEL-POST" || x.hasAttribute("data-msg-container"));
24225
+ const root = (_e = AncestorEnumerator.find(e, x => x.tagName === "CHANNEL-POST" || x.hasAttribute("data-msg-container"))) !== null && _e !== void 0 ? _e : e;
24226
+ for (const a of Array.from(msg.querySelectorAll(`a[hash-tag]`))) {
24227
+ const tag = a.getAttribute("hash-tag");
24228
+ const tokens = tag.toLowerCase().split("/");
24229
+ if (tokens[0] !== "#price") {
24230
+ continue;
24231
+ }
24232
+ root.setAttribute("enable-buy", "true");
24233
+ }
24226
24234
  if (/img|video/i.test(firstVisibleElement === null || firstVisibleElement === void 0 ? void 0 : firstVisibleElement.tagName)) {
24227
- (root !== null && root !== void 0 ? root : e).setAttribute("has-poster", "true");
24235
+ root.setAttribute("has-poster", "true");
24228
24236
  }
24229
- const included = (_e = email.attachments) === null || _e === void 0 ? void 0 : _e.every(x => x.included);
24237
+ const included = (_f = email.attachments) === null || _f === void 0 ? void 0 : _f.every(x => x.included);
24230
24238
  if (included) {
24231
24239
  (root !== null && root !== void 0 ? root : e).setAttribute("hide-media", "1");
24232
24240
  }
24233
- if (thread && !thread.timeRead && thread.mailboxID && thread.mailboxID !== ((_f = thread.email) === null || _f === void 0 ? void 0 : _f.senderID)) {
24241
+ if (thread && !thread.timeRead && thread.mailboxID && thread.mailboxID !== ((_g = thread.email) === null || _g === void 0 ? void 0 : _g.senderID)) {
24234
24242
  const timeRead = DateTime.now;
24235
24243
  thread.timeRead = timeRead;
24236
24244
  const es = c.app.resolve(EntityService);