@social-mail/social-mail-client 1.8.278 → 1.8.279

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 (43) hide show
  1. package/dist/admin/AdminAppIndex.pack.js +6 -1
  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.js +42 -3
  6. package/dist/public/channel/ChannelApp.pack.js.map +1 -1
  7. package/dist/public/channel/ChannelApp.pack.min.js +1 -1
  8. package/dist/public/channel/ChannelApp.pack.min.js.map +1 -1
  9. package/dist/public/channel/UrlService.d.ts +1 -0
  10. package/dist/public/channel/UrlService.d.ts.map +1 -1
  11. package/dist/public/channel/UrlService.js +18 -0
  12. package/dist/public/channel/UrlService.js.map +1 -1
  13. package/dist/public/channel/controls/channel-post/ChannelPost.js +4 -1
  14. package/dist/public/channel/controls/channel-post/ChannelPost.js.map +1 -1
  15. package/dist/public/channel/pages/posts/ChannelPage.d.ts +1 -3
  16. package/dist/public/channel/pages/posts/ChannelPage.d.ts.map +1 -1
  17. package/dist/public/channel/pages/posts/ChannelPage.js +14 -1
  18. package/dist/public/channel/pages/posts/ChannelPage.js.map +1 -1
  19. package/dist/public/contact-us/ContactUsApp.d.ts.map +1 -1
  20. package/dist/public/contact-us/ContactUsApp.js +5 -0
  21. package/dist/public/contact-us/ContactUsApp.js.map +1 -1
  22. package/dist/public/contact-us/ContactUsApp.pack.js +5 -0
  23. package/dist/public/contact-us/ContactUsApp.pack.js.map +1 -1
  24. package/dist/public/contact-us/ContactUsApp.pack.min.js +1 -1
  25. package/dist/public/contact-us/ContactUsApp.pack.min.js.map +1 -1
  26. package/dist/site-editor-app/SiteEditorApp.pack.js +6 -1
  27. package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
  28. package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
  29. package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
  30. package/dist/tsconfig.tsbuildinfo +1 -1
  31. package/dist/web/AppIndex.pack.js +6 -1
  32. package/dist/web/AppIndex.pack.js.map +1 -1
  33. package/dist/web/AppIndex.pack.min.js +1 -1
  34. package/dist/web/AppIndex.pack.min.js.map +1 -1
  35. package/dist/web/page/mails/service/ConversationService.d.ts.map +1 -1
  36. package/dist/web/page/mails/service/ConversationService.js +6 -1
  37. package/dist/web/page/mails/service/ConversationService.js.map +1 -1
  38. package/package.json +1 -1
  39. package/src/public/channel/UrlService.ts +14 -0
  40. package/src/public/channel/controls/channel-post/ChannelPost.tsx +2 -2
  41. package/src/public/channel/pages/posts/ChannelPage.tsx +17 -2
  42. package/src/public/contact-us/ContactUsApp.tsx +6 -0
  43. package/src/web/page/mails/service/ConversationService.tsx +6 -1
@@ -22252,6 +22252,24 @@ System.register(["../../common/apiPath", "../../common/CDN", "../../common/Slugg
22252
22252
  }
22253
22253
  return `/${cid}/calendar/`;
22254
22254
  },
22255
+ toBuyUrl({
22256
+ emailID,
22257
+ email: {
22258
+ subject
22259
+ },
22260
+ mailbox: {
22261
+ emailAddress: {
22262
+ emailAddress
22263
+ }
22264
+ }
22265
+ }) {
22266
+ const cid = "@" + emailAddress.split("@")[0];
22267
+ const slug = "buy/" + emailID;
22268
+ if (AppLocation.isLocalTesting) {
22269
+ return `?${Date.now()}#!/${cid}/${slug}`;
22270
+ }
22271
+ return `/${cid}/${slug}`;
22272
+ },
22255
22273
  toBlogUrl({
22256
22274
  emailID,
22257
22275
  email: {
@@ -24432,10 +24450,15 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
24432
24450
  for (const a of Array.from(msg.querySelectorAll(`a[hash-tag]`))) {
24433
24451
  const tag = a.getAttribute("hash-tag");
24434
24452
  const tokens = tag.toLowerCase().split("/");
24435
- if (tokens[0] !== "#price") {
24453
+ const [name, price, currency] = tokens;
24454
+ if (name !== "#price") {
24436
24455
  continue;
24437
24456
  }
24457
+ email.price = price;
24458
+ email.currency = currency;
24438
24459
  root.setAttribute("enable-buy", "true");
24460
+ root.setAttribute("price", tokens[2]);
24461
+ root.setAttribute("currency", tokens[1]);
24439
24462
  }
24440
24463
  if (/img|video/i.test(firstVisibleElement === null || firstVisibleElement === void 0 ? void 0 : firstVisibleElement.tagName)) {
24441
24464
  root.setAttribute("has-poster", "true");
@@ -24713,7 +24736,10 @@ System.register(["@web-atoms/core/dist/core/XNode", "../../../../model/model", "
24713
24736
  }, XNode.create("inline-svg", {
24714
24737
  "attr-src": UMD.resolvePath("@social-mail/social-mail-client/content/images/icons/comment-plus.svg"),
24715
24738
  "style-max-height": "15px"
24716
- }), "Reply"), XNode.create("share-button", {
24739
+ }), "Reply"), !email.email.parentID && XNode.create("button", {
24740
+ "data-click-event": "buy-now",
24741
+ "data-element": "buy-now"
24742
+ }, "Buy Now"), XNode.create("share-button", {
24717
24743
  title: email.email.subject,
24718
24744
  href: location.href
24719
24745
  }, XNode.create("i", {
@@ -27229,7 +27255,20 @@ System.register(["tslib", "../../BlogService", "../../../../model/model", "@web-
27229
27255
  buyNowClick({
27230
27256
  email
27231
27257
  }) {
27232
- location.href = "/social-mail/channel-store/buy/" + email.emailID;
27258
+ const body = `
27259
+ I am interested in purchasing ${email.subject}
27260
+ For price ${email.price} ${email.currency.toUpperCase()} mentioned on the website.
27261
+ Please revert back to me with the quotation and method of payment including taxes and shipping if any..
27262
+
27263
+ My information...
27264
+ Name:
27265
+ Email:
27266
+ Phone:
27267
+ Address:
27268
+
27269
+ ...
27270
+ `;
27271
+ location.href = "/contact.html?body=" + encodeURIComponent(body);
27233
27272
  }
27234
27273
  reactAction(email, emoji) {
27235
27274
  const {