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

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 (78) 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/common/CDN.d.ts.map +1 -1
  6. package/dist/common/CDN.js +4 -1
  7. package/dist/common/CDN.js.map +1 -1
  8. package/dist/public/channel/ChannelApp.pack.js +46 -4
  9. package/dist/public/channel/ChannelApp.pack.js.map +1 -1
  10. package/dist/public/channel/ChannelApp.pack.min.js +1 -1
  11. package/dist/public/channel/ChannelApp.pack.min.js.map +1 -1
  12. package/dist/public/channel/UrlService.d.ts +1 -0
  13. package/dist/public/channel/UrlService.d.ts.map +1 -1
  14. package/dist/public/channel/UrlService.js +18 -0
  15. package/dist/public/channel/UrlService.js.map +1 -1
  16. package/dist/public/channel/controls/channel-post/ChannelPost.d.ts +1 -0
  17. package/dist/public/channel/controls/channel-post/ChannelPost.d.ts.map +1 -1
  18. package/dist/public/channel/controls/channel-post/ChannelPost.js +4 -1
  19. package/dist/public/channel/controls/channel-post/ChannelPost.js.map +1 -1
  20. package/dist/public/channel/pages/BaseChannelPage.d.ts.map +1 -1
  21. package/dist/public/channel/pages/BaseChannelPage.js.map +1 -1
  22. package/dist/public/channel/pages/posts/ChannelPage.d.ts +1 -3
  23. package/dist/public/channel/pages/posts/ChannelPage.d.ts.map +1 -1
  24. package/dist/public/channel/pages/posts/ChannelPage.js +14 -1
  25. package/dist/public/channel/pages/posts/ChannelPage.js.map +1 -1
  26. package/dist/public/contact-us/ContactUsApp.d.ts.map +1 -1
  27. package/dist/public/contact-us/ContactUsApp.js +5 -0
  28. package/dist/public/contact-us/ContactUsApp.js.map +1 -1
  29. package/dist/public/contact-us/ContactUsApp.pack.js +5 -0
  30. package/dist/public/contact-us/ContactUsApp.pack.js.map +1 -1
  31. package/dist/public/contact-us/ContactUsApp.pack.min.js +1 -1
  32. package/dist/public/contact-us/ContactUsApp.pack.min.js.map +1 -1
  33. package/dist/site-editor-app/SiteEditorApp.pack.js +10 -2
  34. package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
  35. package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
  36. package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
  37. package/dist/tsconfig.tsbuildinfo +1 -1
  38. package/dist/web/AppIndex.pack.js +6 -1
  39. package/dist/web/AppIndex.pack.js.map +1 -1
  40. package/dist/web/AppIndex.pack.min.js +1 -1
  41. package/dist/web/AppIndex.pack.min.js.map +1 -1
  42. package/dist/web/page/mails/service/ConversationService.d.ts.map +1 -1
  43. package/dist/web/page/mails/service/ConversationService.js +6 -1
  44. package/dist/web/page/mails/service/ConversationService.js.map +1 -1
  45. package/package.json +1 -1
  46. package/src/common/CDN.ts +4 -1
  47. package/src/public/channel/UrlService.ts +14 -0
  48. package/src/public/channel/controls/channel-post/ChannelPost.tsx +4 -3
  49. package/src/public/channel/pages/BaseChannelPage.tsx +1 -4
  50. package/src/public/channel/pages/posts/ChannelPage.tsx +17 -2
  51. package/src/public/contact-us/ContactUsApp.tsx +6 -0
  52. package/src/web/page/mails/service/ConversationService.tsx +6 -1
  53. package/dist/public/channel/controls/post-summary/PostSummary.d.ts +0 -17
  54. package/dist/public/channel/controls/post-summary/PostSummary.d.ts.map +0 -1
  55. package/dist/public/channel/controls/post-summary/PostSummary.global.css +0 -2
  56. package/dist/public/channel/controls/post-summary/PostSummary.global.css.map +0 -1
  57. package/dist/public/channel/controls/post-summary/PostSummary.js +0 -86
  58. package/dist/public/channel/controls/post-summary/PostSummary.js.map +0 -1
  59. package/dist/public/channel/controls/post-view/PostView.d.ts +0 -16
  60. package/dist/public/channel/controls/post-view/PostView.d.ts.map +0 -1
  61. package/dist/public/channel/controls/post-view/PostView.global.css +0 -2
  62. package/dist/public/channel/controls/post-view/PostView.global.css.map +0 -1
  63. package/dist/public/channel/controls/post-view/PostView.js +0 -88
  64. package/dist/public/channel/controls/post-view/PostView.js.map +0 -1
  65. package/dist/public/channel/pages/ChannelHomePage.d.ts +0 -18
  66. package/dist/public/channel/pages/ChannelHomePage.d.ts.map +0 -1
  67. package/dist/public/channel/pages/ChannelHomePage.js +0 -84
  68. package/dist/public/channel/pages/ChannelHomePage.js.map +0 -1
  69. package/dist/public/channel/pages/PublicChannelPage.d.ts +0 -25
  70. package/dist/public/channel/pages/PublicChannelPage.d.ts.map +0 -1
  71. package/dist/public/channel/pages/PublicChannelPage.js +0 -183
  72. package/dist/public/channel/pages/PublicChannelPage.js.map +0 -1
  73. package/src/public/channel/controls/post-summary/PostSummary.global.css +0 -162
  74. package/src/public/channel/controls/post-summary/PostSummary.tsx +0 -82
  75. package/src/public/channel/controls/post-view/PostView.global.css +0 -114
  76. package/src/public/channel/controls/post-view/PostView.tsx +0 -88
  77. package/src/public/channel/pages/ChannelHomePage.tsx +0 -69
  78. package/src/public/channel/pages/PublicChannelPage.tsx +0 -131
@@ -1 +1 @@
1
- {"version":3,"file":"CDN.d.ts","sourceRoot":"","sources":["../../src/common/CDN.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,GAAG;kBAEE,MAAM;CASvB,CAAC"}
1
+ {"version":3,"file":"CDN.d.ts","sourceRoot":"","sources":["../../src/common/CDN.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,GAAG;kBAEE,MAAM;CAYvB,CAAC"}
@@ -13,7 +13,10 @@ System.register([], function (_export, _context) {
13
13
  u.hostname = cdn;
14
14
  return u.toString();
15
15
  }
16
- return "https://" + cdn + url;
16
+ if (cdn) {
17
+ return "https://" + cdn + url;
18
+ }
19
+ return url;
17
20
  }
18
21
  });
19
22
  }
@@ -1 +1 @@
1
- {"version":3,"names":["cdn","_b","_a","window","socialMail","_export","CDN","toCDNUrl","url","test","u","URL","hostname","toString"],"sources":["../../src/common/CDN.ts"],"sourcesContent":[null],"mappings":";;;;;;;MAAMA,GAAG,GAAG,CAAAC,EAAA,IAAAC,EAAA,GAACC,MAAc,CAACC,UAAU,cAAAF,EAAA,uBAAAA,EAAA,CAAEF,GAAG,cAAAC,EAAA,cAAAA,EAAA,GAAI,EAAE;MAAAI,OAAA,QAKpCC,GAAG,GAAG;QAEfC,QAAQA,CAACC,GAAW;UAChB,IAAI,gBAAgB,CAACC,IAAI,CAACD,GAAG,CAAC,EAAE;YAC5B,MAAME,CAAC,GAAG,IAAIC,GAAG,CAACH,GAAG,CAAC;YACtBE,CAAC,CAACE,QAAQ,GAAGZ,GAAG;YAChB,OAAOU,CAAC,CAACG,QAAQ,EAAE;UACvB;UACA,OAAO,UAAU,GAAGb,GAAG,GAAGQ,GAAG;QACjC;OAEH;IAAA;EAAA;AAAA","ignoreList":[]}
1
+ {"version":3,"names":["cdn","_b","_a","window","socialMail","_export","CDN","toCDNUrl","url","test","u","URL","hostname","toString"],"sources":["../../src/common/CDN.ts"],"sourcesContent":[null],"mappings":";;;;;;;MAAMA,GAAG,GAAG,CAAAC,EAAA,IAAAC,EAAA,GAACC,MAAc,CAACC,UAAU,cAAAF,EAAA,uBAAAA,EAAA,CAAEF,GAAG,cAAAC,EAAA,cAAAA,EAAA,GAAI,EAAE;MAAAI,OAAA,QAKpCC,GAAG,GAAG;QAEfC,QAAQA,CAACC,GAAW;UAChB,IAAI,gBAAgB,CAACC,IAAI,CAACD,GAAG,CAAC,EAAE;YAC5B,MAAME,CAAC,GAAG,IAAIC,GAAG,CAACH,GAAG,CAAC;YACtBE,CAAC,CAACE,QAAQ,GAAGZ,GAAG;YAChB,OAAOU,CAAC,CAACG,QAAQ,EAAE;UACvB;UACA,IAAIb,GAAG,EAAE;YACL,OAAO,UAAU,GAAGA,GAAG,GAAGQ,GAAG;UACjC;UACA,OAAOA,GAAG;QACd;OAEH;IAAA;EAAA;AAAA","ignoreList":[]}
@@ -22096,7 +22096,10 @@ System.register([], function (_export, _context) {
22096
22096
  u.hostname = cdn;
22097
22097
  return u.toString();
22098
22098
  }
22099
- return "https://" + cdn + url;
22099
+ if (cdn) {
22100
+ return "https://" + cdn + url;
22101
+ }
22102
+ return url;
22100
22103
  }
22101
22104
  });
22102
22105
  }
@@ -22252,6 +22255,24 @@ System.register(["../../common/apiPath", "../../common/CDN", "../../common/Slugg
22252
22255
  }
22253
22256
  return `/${cid}/calendar/`;
22254
22257
  },
22258
+ toBuyUrl({
22259
+ emailID,
22260
+ email: {
22261
+ subject
22262
+ },
22263
+ mailbox: {
22264
+ emailAddress: {
22265
+ emailAddress
22266
+ }
22267
+ }
22268
+ }) {
22269
+ const cid = "@" + emailAddress.split("@")[0];
22270
+ const slug = "buy/" + emailID;
22271
+ if (AppLocation.isLocalTesting) {
22272
+ return `?${Date.now()}#!/${cid}/${slug}`;
22273
+ }
22274
+ return `/${cid}/${slug}`;
22275
+ },
22255
22276
  toBlogUrl({
22256
22277
  emailID,
22257
22278
  email: {
@@ -24432,10 +24453,15 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
24432
24453
  for (const a of Array.from(msg.querySelectorAll(`a[hash-tag]`))) {
24433
24454
  const tag = a.getAttribute("hash-tag");
24434
24455
  const tokens = tag.toLowerCase().split("/");
24435
- if (tokens[0] !== "#price") {
24456
+ const [name, price, currency] = tokens;
24457
+ if (name !== "#price") {
24436
24458
  continue;
24437
24459
  }
24460
+ email.price = price;
24461
+ email.currency = currency;
24438
24462
  root.setAttribute("enable-buy", "true");
24463
+ root.setAttribute("price", tokens[2]);
24464
+ root.setAttribute("currency", tokens[1]);
24439
24465
  }
24440
24466
  if (/img|video/i.test(firstVisibleElement === null || firstVisibleElement === void 0 ? void 0 : firstVisibleElement.tagName)) {
24441
24467
  root.setAttribute("has-poster", "true");
@@ -24713,7 +24739,10 @@ System.register(["@web-atoms/core/dist/core/XNode", "../../../../model/model", "
24713
24739
  }, XNode.create("inline-svg", {
24714
24740
  "attr-src": UMD.resolvePath("@social-mail/social-mail-client/content/images/icons/comment-plus.svg"),
24715
24741
  "style-max-height": "15px"
24716
- }), "Reply"), XNode.create("share-button", {
24742
+ }), "Reply"), !email.email.parentID && XNode.create("button", {
24743
+ "data-click-event": "buy-now",
24744
+ "data-element": "buy-now"
24745
+ }, "Buy Now"), XNode.create("share-button", {
24717
24746
  title: email.email.subject,
24718
24747
  href: location.href
24719
24748
  }, XNode.create("i", {
@@ -27229,7 +27258,20 @@ System.register(["tslib", "../../BlogService", "../../../../model/model", "@web-
27229
27258
  buyNowClick({
27230
27259
  email
27231
27260
  }) {
27232
- location.href = "/social-mail/channel-store/buy/" + email.emailID;
27261
+ const body = `
27262
+ I am interested in purchasing ${email.subject}
27263
+ For price ${email.price} ${email.currency.toUpperCase()} mentioned on the website.
27264
+ Please revert back to me with the quotation and method of payment including taxes and shipping if any..
27265
+
27266
+ My information...
27267
+ Name:
27268
+ Email:
27269
+ Phone:
27270
+ Address:
27271
+
27272
+ ...
27273
+ `;
27274
+ location.href = "/contact.html?body=" + encodeURIComponent(body);
27233
27275
  }
27234
27276
  reactAction(email, emoji) {
27235
27277
  const {