@mjhls/mjh-framework 1.0.594 → 1.0.597

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 (166) hide show
  1. package/README.md +172 -172
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +3 -3
  4. package/dist/cjs/AD300x250x600.js +3 -3
  5. package/dist/cjs/AD728x90.js +4 -4
  6. package/dist/cjs/ADFloatingFooter.js +5 -5
  7. package/dist/cjs/ADGutter.js +2 -2
  8. package/dist/cjs/ADSkyscraper.js +2 -2
  9. package/dist/cjs/ADSponsoredResources.js +2 -2
  10. package/dist/cjs/ADWebcast.js +2 -2
  11. package/dist/cjs/ADWelcome.js +2 -2
  12. package/dist/cjs/AdSlot.js +2 -2
  13. package/dist/cjs/AdSlotsProvider.js +1 -1
  14. package/dist/cjs/ArticleQueue.js +298 -28
  15. package/dist/cjs/Auth.js +256 -507
  16. package/dist/cjs/{AuthorComponent-cb8b8128.js → AuthorComponent-3c79e1ab.js} +2 -2
  17. package/dist/cjs/{BlockContent-f942392e.js → BlockContent-77f81ffc.js} +1 -1
  18. package/dist/cjs/CMEDeck.js +5 -5
  19. package/dist/cjs/Column3.js +4 -4
  20. package/dist/cjs/ConferenceArticleCard.js +17 -17
  21. package/dist/cjs/DeckContent.js +16 -16
  22. package/dist/cjs/DeckQueue.js +7 -7
  23. package/dist/cjs/{Dfp-fbe32b96.js → Dfp-fcdeabc4.js} +1 -1
  24. package/dist/cjs/EventsDeck.js +22 -22
  25. package/dist/cjs/ExternalResources.js +7 -7
  26. package/dist/cjs/Feature.js +3 -3
  27. package/dist/cjs/ForbesHero.js +3 -3
  28. package/dist/cjs/GridContent.js +12 -12
  29. package/dist/cjs/GridHero.js +3 -3
  30. package/dist/cjs/GroupDeck.js +5 -5
  31. package/dist/cjs/HamMagazine.js +11 -11
  32. package/dist/cjs/Hero.js +1 -1
  33. package/dist/cjs/HorizontalHero.js +2 -2
  34. package/dist/cjs/InscreenSensor-22a96661.js +85 -0
  35. package/dist/cjs/IssueContentDeck.js +3 -3
  36. package/dist/cjs/IssueDeck.js +2 -2
  37. package/dist/cjs/IssueLanding.js +37 -37
  38. package/dist/cjs/KMTracker.js +15 -15
  39. package/dist/cjs/LeftNav.js +2 -2
  40. package/dist/cjs/MasterDeck.js +17 -17
  41. package/dist/cjs/NavMagazine.js +12 -12
  42. package/dist/cjs/NavNative.js +11 -11
  43. package/dist/cjs/OncliveHero.js +2 -2
  44. package/dist/cjs/OncliveLargeHero.js +3 -3
  45. package/dist/cjs/PartnerDetailListing.js +1307 -30
  46. package/dist/cjs/PublicationDeck.js +1 -1
  47. package/dist/cjs/PublicationLanding.js +33 -33
  48. package/dist/cjs/QueueDeckExpanded.js +10 -10
  49. package/dist/cjs/RecentNews.js +93 -0
  50. package/dist/cjs/RelatedContent.js +30 -30
  51. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  52. package/dist/cjs/SideFooter.js +2 -2
  53. package/dist/cjs/TaxonomyCard.js +2 -2
  54. package/dist/cjs/TemplateNormal.js +2 -2
  55. package/dist/cjs/ThumbnailCard.js +1 -1
  56. package/dist/cjs/Ustream.js +2 -2
  57. package/dist/cjs/VerticalHero.js +2 -2
  58. package/dist/cjs/VideoSeriesFilter.js +1 -1
  59. package/dist/cjs/VideoSeriesListing.js +5 -5
  60. package/dist/cjs/View.js +259 -88
  61. package/dist/cjs/YahooHero.js +3 -3
  62. package/dist/cjs/YoutubeGroup.js +5 -5
  63. package/dist/cjs/getQuery.js +2 -4
  64. package/dist/cjs/getRelatedArticle.js +358 -11
  65. package/dist/cjs/getSerializers.js +6 -6
  66. package/dist/cjs/{getTargeting-b15993cb.js → getTargeting-3d208b98.js} +11 -11
  67. package/dist/cjs/getTargeting.js +1 -1
  68. package/dist/cjs/{index-5be2866f.js → index-3294d3bc.js} +1 -1
  69. package/dist/cjs/index-bd6c9f56.js +211 -0
  70. package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
  71. package/dist/cjs/{index-e7f86168.js → index-c4972b44.js} +441 -453
  72. package/dist/cjs/{index-f7ee1612.js → index-fa3cec70.js} +6 -4
  73. package/dist/cjs/{index.es-ab3f2690.js → index.es-9110add6.js} +1 -3
  74. package/dist/cjs/index.js +17 -18
  75. package/dist/cjs/{inherits-93684212.js → inherits-14962339.js} +4 -4
  76. package/dist/cjs/{main-bc4db521.js → main-88348b15.js} +35 -66
  77. package/dist/cjs/{moment-66a6a284.js → moment-575fe24c.js} +1 -1
  78. package/dist/cjs/urlFor.js +2 -2
  79. package/dist/esm/AD.js +1 -1
  80. package/dist/esm/AD300x250.js +5 -5
  81. package/dist/esm/AD300x250x600.js +5 -5
  82. package/dist/esm/AD728x90.js +6 -6
  83. package/dist/esm/ADFloatingFooter.js +7 -7
  84. package/dist/esm/ADGutter.js +4 -4
  85. package/dist/esm/ADSkyscraper.js +4 -4
  86. package/dist/esm/ADSponsoredResources.js +4 -4
  87. package/dist/esm/ADWebcast.js +4 -4
  88. package/dist/esm/ADWelcome.js +4 -4
  89. package/dist/esm/AdSlot.js +4 -4
  90. package/dist/esm/AdSlotsProvider.js +1 -1
  91. package/dist/esm/ArticleQueue.js +296 -26
  92. package/dist/esm/Auth.js +248 -499
  93. package/dist/esm/{AuthorComponent-158226c9.js → AuthorComponent-357dbee9.js} +2 -2
  94. package/dist/esm/{BlockContent-a614acdf.js → BlockContent-e9b4ddcf.js} +1 -1
  95. package/dist/esm/CMEDeck.js +7 -7
  96. package/dist/esm/Column2.js +3 -3
  97. package/dist/esm/Column3.js +8 -8
  98. package/dist/esm/ConferenceArticleCard.js +17 -17
  99. package/dist/esm/DeckContent.js +17 -17
  100. package/dist/esm/DeckQueue.js +10 -10
  101. package/dist/esm/{Dfp-ae9336e2.js → Dfp-a36ad202.js} +3 -3
  102. package/dist/esm/EventsDeck.js +22 -22
  103. package/dist/esm/ExternalResources.js +9 -9
  104. package/dist/esm/Feature.js +3 -3
  105. package/dist/esm/ForbesHero.js +3 -3
  106. package/dist/esm/GridContent.js +15 -15
  107. package/dist/esm/GridHero.js +3 -3
  108. package/dist/esm/GroupDeck.js +5 -5
  109. package/dist/esm/HamMagazine.js +11 -11
  110. package/dist/esm/Hero.js +1 -1
  111. package/dist/esm/HorizontalHero.js +2 -2
  112. package/dist/esm/InscreenSensor-beb2ec79.js +80 -0
  113. package/dist/esm/IssueContentDeck.js +3 -3
  114. package/dist/esm/IssueDeck.js +2 -2
  115. package/dist/esm/IssueLanding.js +39 -39
  116. package/dist/esm/KMTracker.js +15 -15
  117. package/dist/esm/LeftNav.js +4 -4
  118. package/dist/esm/MasterDeck.js +18 -18
  119. package/dist/esm/NavMagazine.js +12 -12
  120. package/dist/esm/NavNative.js +11 -11
  121. package/dist/esm/OncliveHero.js +2 -2
  122. package/dist/esm/OncliveLargeHero.js +3 -3
  123. package/dist/esm/PartnerDetailListing.js +1307 -30
  124. package/dist/esm/PublicationDeck.js +1 -1
  125. package/dist/esm/PublicationLanding.js +33 -33
  126. package/dist/esm/QueueDeckExpanded.js +12 -12
  127. package/dist/esm/RecentNews.js +88 -0
  128. package/dist/esm/RelatedContent.js +30 -30
  129. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  130. package/dist/esm/SideFooter.js +5 -5
  131. package/dist/esm/TaxonomyCard.js +2 -2
  132. package/dist/esm/TemplateNormal.js +6 -6
  133. package/dist/esm/ThumbnailCard.js +1 -1
  134. package/dist/esm/Ustream.js +2 -2
  135. package/dist/esm/VerticalHero.js +2 -2
  136. package/dist/esm/VideoSeriesFilter.js +1 -1
  137. package/dist/esm/VideoSeriesListing.js +6 -6
  138. package/dist/esm/View.js +237 -66
  139. package/dist/esm/YahooHero.js +3 -3
  140. package/dist/esm/YoutubeGroup.js +5 -5
  141. package/dist/esm/{_arrayMap-64cbe0e4.js → _arrayMap-818441dd.js} +1 -1
  142. package/dist/esm/{debounce-048d9cb6.js → debounce-a0d9abca.js} +1 -1
  143. package/dist/esm/{get-0eb56363.js → get-58d2f7cc.js} +2 -2
  144. package/dist/esm/getQuery.js +2 -4
  145. package/dist/esm/getRelatedArticle.js +358 -11
  146. package/dist/esm/getSerializers.js +8 -8
  147. package/dist/esm/{getTargeting-1a0bd08d.js → getTargeting-1f2c61e3.js} +9 -9
  148. package/dist/esm/getTargeting.js +1 -1
  149. package/dist/esm/{index-93ec3c59.js → index-3f4dd6f2.js} +6 -4
  150. package/dist/esm/{index-51a80699.js → index-73819142.js} +19 -20
  151. package/dist/esm/{index-80cb5ee6.js → index-7ca90052.js} +441 -453
  152. package/dist/esm/index-db3bb315.js +207 -0
  153. package/dist/esm/{index-d2f90501.js → index-ef6d5dcf.js} +1 -1
  154. package/dist/esm/{index.es-938a3a58.js → index.es-29c1cef5.js} +1 -3
  155. package/dist/esm/index.js +19 -20
  156. package/dist/esm/{isSymbol-b7b7434f.js → isSymbol-47f5ff3b.js} +1 -1
  157. package/dist/esm/{main-7255814e.js → main-d7ee6151.js} +34 -65
  158. package/dist/esm/{moment-12415288.js → moment-e2f9b20c.js} +1 -1
  159. package/dist/esm/urlFor.js +2 -2
  160. package/package.json +107 -107
  161. package/dist/cjs/InscreenSensor-e7f3579f.js +0 -361
  162. package/dist/esm/InscreenSensor-280b2b10.js +0 -352
  163. /package/dist/cjs/{ADInfeed-17a378db.js → ADInfeed-df340285.js} +0 -0
  164. /package/dist/cjs/{ADlgInfeed-070d911c.js → ADlgInfeed-2110d08c.js} +0 -0
  165. /package/dist/esm/{ADInfeed-c7dba95f.js → ADInfeed-a5a1f81f.js} +0 -0
  166. /package/dist/esm/{ADlgInfeed-8bfd6d58.js → ADlgInfeed-99f14909.js} +0 -0
@@ -5,7 +5,7 @@ import Row from 'react-bootstrap/Row';
5
5
  import Col from 'react-bootstrap/Col';
6
6
  import Card from 'react-bootstrap/Card';
7
7
  import 'react-dom';
8
- import { i as imageUrlBuilder } from './index-51a80699.js';
8
+ import { i as imageUrlBuilder } from './index-73819142.js';
9
9
  import { L as LazyLoad } from './index-5f9f807a.js';
10
10
  import { l as lodash } from './lodash-17fdfebb.js';
11
11
  import Button from 'react-bootstrap/Button';
@@ -370,39 +370,39 @@ module.exports = { "default": set, __esModule: true };
370
370
 
371
371
  var _Set = unwrapExports(set$1);
372
372
 
373
- /* usage & query
374
- const Publication = (props) => {
375
- const { cache, pub, year } = props
376
-
377
- const targeting = {
378
- content_placement: [`/journals/${pub.identifier.current}`],
379
- document_url: [`/journals/${pub.identifier.current}`],
380
- }
381
-
382
- return (
383
- <Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
384
- <PublicationLanding publication={pub} year={year} href={'journals'} />
385
- </Shell>
386
- )
387
- }
388
-
389
- Publication.getInitialProps = async (ctx) => {
390
- const { query } = ctx
391
- const {
392
- query: { year },
393
- } = ctx
394
- const pub = await client.fetch(getQuery('publication'), query)
395
- const builder = imageUrlBuilder(client)
396
- const urlFor = (source) => {
397
- return builder.image(source)
398
- }
399
- pub.issues.map((issue) => {
400
- issue.thumbnail = urlFor(issue.thumbnail).url()
401
- })
402
- return { pub, year }
403
- }
404
-
405
- export default Publication
373
+ /* usage & query
374
+ const Publication = (props) => {
375
+ const { cache, pub, year } = props
376
+
377
+ const targeting = {
378
+ content_placement: [`/journals/${pub.identifier.current}`],
379
+ document_url: [`/journals/${pub.identifier.current}`],
380
+ }
381
+
382
+ return (
383
+ <Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
384
+ <PublicationLanding publication={pub} year={year} href={'journals'} />
385
+ </Shell>
386
+ )
387
+ }
388
+
389
+ Publication.getInitialProps = async (ctx) => {
390
+ const { query } = ctx
391
+ const {
392
+ query: { year },
393
+ } = ctx
394
+ const pub = await client.fetch(getQuery('publication'), query)
395
+ const builder = imageUrlBuilder(client)
396
+ const urlFor = (source) => {
397
+ return builder.image(source)
398
+ }
399
+ pub.issues.map((issue) => {
400
+ issue.thumbnail = urlFor(issue.thumbnail).url()
401
+ })
402
+ return { pub, year }
403
+ }
404
+
405
+ export default Publication
406
406
  */
407
407
 
408
408
  var PublicationLanding = function PublicationLanding(props) {
@@ -9,19 +9,19 @@ import './_object-pie-33c40e79.js';
9
9
  import { _ as _extends } from './extends-6e00b262.js';
10
10
  import './web.dom.iterable-46c95e52.js';
11
11
  import React__default, { useEffect, useState, useRef } from 'react';
12
- import { l as lib_3 } from './index-93ec3c59.js';
12
+ import { l as lib_3 } from './index-3f4dd6f2.js';
13
13
  import 'prop-types';
14
14
  import 'react-bootstrap/Card';
15
- import { m as moment } from './moment-12415288.js';
15
+ import { m as moment } from './moment-e2f9b20c.js';
16
16
  import { useRouter } from 'next/router';
17
- import './isSymbol-b7b7434f.js';
18
- import './debounce-048d9cb6.js';
19
- import { I as InfiniteScroll } from './index.es-938a3a58.js';
17
+ import './isSymbol-47f5ff3b.js';
18
+ import './debounce-a0d9abca.js';
19
+ import { I as InfiniteScroll } from './index.es-29c1cef5.js';
20
20
  import 'react-dom';
21
21
  import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
22
- import { i as imageUrlBuilder } from './index-51a80699.js';
22
+ import { i as imageUrlBuilder } from './index-73819142.js';
23
23
  import { L as LazyLoad } from './index-5f9f807a.js';
24
- import { m as main_39 } from './main-7255814e.js';
24
+ import { m as main_36 } from './main-d7ee6151.js';
25
25
  import { c as clean_html_1 } from './entities-7cc3bf45.js';
26
26
  import { _ as _slicedToArray } from './slicedToArray-f1e40361.js';
27
27
  import './stringify-e30bc114.js';
@@ -29,10 +29,10 @@ import './asyncToGenerator-0379e924.js';
29
29
  import './_set-species-6f64f1c1.js';
30
30
  import './beam-a25bd8fd.js';
31
31
  import './AdSlot.js';
32
- import { A as ADInfeed } from './ADInfeed-c7dba95f.js';
32
+ import { A as ADInfeed } from './ADInfeed-a5a1f81f.js';
33
33
  import { l as lodash } from './lodash-17fdfebb.js';
34
- import { A as ADlgInfeed } from './ADlgInfeed-8bfd6d58.js';
35
- import { A as AuthorComponent } from './AuthorComponent-158226c9.js';
34
+ import { A as ADlgInfeed } from './ADlgInfeed-99f14909.js';
35
+ import { A as AuthorComponent } from './AuthorComponent-357dbee9.js';
36
36
  import { Container, Media } from 'react-bootstrap';
37
37
 
38
38
  var urlFor = function urlFor(source, builder) {
@@ -505,7 +505,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
505
505
  } else if (article._type === 'brandInsightAd' && article.adUnit) {
506
506
  return React__default.createElement(ADInfeed, { index: index, infeedAd: article });
507
507
  }
508
- if (main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0) {
508
+ if (main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0) {
509
509
  return renderMobileAd(index, numberOfItemsBeforeAd, rightItems);
510
510
  }
511
511
 
@@ -899,7 +899,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
899
899
  } else if (article._type === 'brandInsightAd' && article.adUnit) {
900
900
  return React__default.createElement(ADInfeed, { index: index, infeedAd: article });
901
901
  }
902
- if (main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0) {
902
+ if (main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0) {
903
903
  return renderMobileAd(index, numberOfItemsBeforeAd, rightItems);
904
904
  }
905
905
 
@@ -0,0 +1,88 @@
1
+ import './_commonjsHelpers-0c4b6f40.js';
2
+ import React__default from 'react';
3
+ import './moment-e2f9b20c.js';
4
+ import { i as imageUrlBuilder } from './index-73819142.js';
5
+ import './iconBase-602d52fe.js';
6
+ import { a as FaLongArrowAltRight } from './index.esm-9a4c8813.js';
7
+
8
+ var RecentNews = function RecentNews(_ref) {
9
+ var client = _ref.client,
10
+ _ref$dataRecord = _ref.dataRecord,
11
+ dataRecord = _ref$dataRecord === undefined ? [] : _ref$dataRecord,
12
+ _ref$linkTo = _ref.linkTo,
13
+ linkTo = _ref$linkTo === undefined ? '/news' : _ref$linkTo,
14
+ _ref$borderColor = _ref.borderColor,
15
+ borderColor = _ref$borderColor === undefined ? 'var(--primary)' : _ref$borderColor,
16
+ _ref$heroTitle = _ref.heroTitle,
17
+ heroTitle = _ref$heroTitle === undefined ? 'Latest News' : _ref$heroTitle,
18
+ _ref$linkTitle = _ref.linkTitle,
19
+ linkTitle = _ref$linkTitle === undefined ? 'View More ' : _ref$linkTitle;
20
+
21
+ var builder = imageUrlBuilder(client);
22
+ var topArticle = dataRecord[0];
23
+ var subArticles = dataRecord.slice(1, dataRecord.length);
24
+
25
+ return React__default.createElement(
26
+ 'div',
27
+ { className: 'recent-news-container', style: { border: '3px solid ' + borderColor } },
28
+ React__default.createElement(
29
+ 'div',
30
+ { className: 'recent-news-title' },
31
+ React__default.createElement(
32
+ 'h2',
33
+ null,
34
+ heroTitle
35
+ ),
36
+ React__default.createElement('div', null)
37
+ ),
38
+ React__default.createElement(
39
+ 'div',
40
+ { className: 'recent-news-inner' },
41
+ React__default.createElement(
42
+ 'div',
43
+ { className: 'recent-article-wrap', style: { flexBasis: '100%' } },
44
+ React__default.createElement(
45
+ 'a',
46
+ { href: '/view/' + topArticle.url.current, className: 'recent-article' },
47
+ React__default.createElement(
48
+ 'p',
49
+ null,
50
+ topArticle.title
51
+ )
52
+ ),
53
+ subArticles.map(function (article, index) {
54
+ return React__default.createElement(
55
+ 'a',
56
+ { key: index, href: '/view/' + article.url.current, className: 'recent-article' },
57
+ React__default.createElement(
58
+ 'p',
59
+ null,
60
+ article.title
61
+ )
62
+ );
63
+ })
64
+ )
65
+ ),
66
+ linkTo && React__default.createElement(
67
+ 'div',
68
+ { className: 'recent-view-more' },
69
+ React__default.createElement(
70
+ 'a',
71
+ { href: linkTo },
72
+ linkTitle,
73
+ React__default.createElement(
74
+ 'span',
75
+ null,
76
+ React__default.createElement(FaLongArrowAltRight, { color: 'var(--primary)' })
77
+ )
78
+ )
79
+ ),
80
+ React__default.createElement(
81
+ 'style',
82
+ { jsx: 'true' },
83
+ '\n .recent-news-container {\n margin-bottom: 1.7rem;\n margin-top: 1rem;\n position: relative;\n }\n .recent-news-title {\n position: absolute;\n top: -10px;\n background: white;\n z-index: 2;\n left: 10px;\n padding-right: 0.25rem;\n padding-left: 0.25rem;\n font-weight: bold;\n }\n .recent-news-title h2 {\n font-size: 0.9rem;\n font-weight: bold;\n }\n .recent-news-inner {\n display: flex;\n flex-direction: row;\n padding-top: 0.75rem;\n margin-top: 0.75rem;\n }\n .recent-article-wrap {\n padding: 0 0.5rem;\n }\n \n .recent-article {\n border-bottom: 1px solid #ccc;\n display: block;\n margin-bottom: 0.5rem;\n }\n .recent-article:last-child {\n border-bottom: none;\n }\n .recent-article:hover {\n background: #eee;\n }\n .recent-article p {\n font-size: 0.7rem;\n margin-bottom: 0.5rem;\n color: #252525;\n }\n .recent-view-more {\n position: absolute;\n right: 0;\n margin-top: 0.25rem;\n font-size: 0.7rem;\n font-weight: bold;\n }\n .recent-view-more span {\n display: inline-block;\n color: rgb(81, 116, 153);\n font-size: 0.7rem;\n }\n @media screen and (max-width: 1191px){\n \n .recent-article > p {\n font-size: 0.7rem;\n }\n }\n }\n @media screen and (max-width: 495px) {\n \n .recent-article > p {\n font-size: 0.7rem;\n }\n }\n '
84
+ )
85
+ );
86
+ };
87
+
88
+ export default RecentNews;
@@ -1,37 +1,37 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
2
  import React__default from 'react';
3
- import { m as moment } from './moment-12415288.js';
4
- import { i as imageUrlBuilder } from './index-51a80699.js';
3
+ import { m as moment } from './moment-e2f9b20c.js';
4
+ import { i as imageUrlBuilder } from './index-73819142.js';
5
5
  import 'react-bootstrap/Media';
6
6
 
7
- /*
8
- Sample query
9
- let references = ''
10
- if(article.taxonomyMapping.length > 0){
11
- article.taxonomyMapping.forEach((ref, index) => {
12
- references = references + `references('${ref._ref}') `
13
- if(index+1 !== article.taxonomyMapping.length){
14
- references = references + ` && `
15
- }
16
- })
17
- }
18
-
19
- const relatedArticlesQuery = `*[!(_id in path("drafts.**")) && _type == "article" && title !='${article.title}' && defined(title) && is_visible == true && ( references('article.documentGroup._id') || ${references} ) && published <= '${today}'] | order(published desc) [0...4] {
20
- ...,
21
- title,
22
- summary,
23
- thumbnail,
24
- url,
25
- published,
26
- authorMapping[]->,
27
- contentCategory->
28
- }`
29
- const relatedArticles = await client.fetch(relatedArticlesQuery)
30
-
31
- Sample usage
32
- <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
33
-
34
-
7
+ /*
8
+ Sample query
9
+ let references = ''
10
+ if(article.taxonomyMapping.length > 0){
11
+ article.taxonomyMapping.forEach((ref, index) => {
12
+ references = references + `references('${ref._ref}') `
13
+ if(index+1 !== article.taxonomyMapping.length){
14
+ references = references + ` && `
15
+ }
16
+ })
17
+ }
18
+
19
+ const relatedArticlesQuery = `*[!(_id in path("drafts.**")) && _type == "article" && title !='${article.title}' && defined(title) && is_visible == true && ( references('article.documentGroup._id') || ${references} ) && published <= '${today}'] | order(published desc) [0...4] {
20
+ ...,
21
+ title,
22
+ summary,
23
+ thumbnail,
24
+ url,
25
+ published,
26
+ authorMapping[]->,
27
+ contentCategory->
28
+ }`
29
+ const relatedArticles = await client.fetch(relatedArticlesQuery)
30
+
31
+ Sample usage
32
+ <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
33
+
34
+
35
35
  */
36
36
  var RelatedContent = function RelatedContent(props) {
37
37
  var client = props.client,
@@ -14,16 +14,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
14
14
  _ref$className = _ref.className,
15
15
  className = _ref$className === undefined ? '' : _ref$className;
16
16
 
17
- /*
18
- Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
19
- example:
20
- <RelatedTopicDropdown
21
- page='/clinical'
22
- exclude="clinical"
23
- className='mb-3'
24
- parentTaxonomy={props.parentTaxonomy}
25
- subTaxonomies={props.subTaxonomies}
26
- />
17
+ /*
18
+ Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
19
+ example:
20
+ <RelatedTopicDropdown
21
+ page='/clinical'
22
+ exclude="clinical"
23
+ className='mb-3'
24
+ parentTaxonomy={props.parentTaxonomy}
25
+ subTaxonomies={props.subTaxonomies}
26
+ />
27
27
  */
28
28
  if (subTaxonomies.length === 0 && parentTaxonomy) {
29
29
  if (parentTaxonomy.identifier == exclude) {
@@ -6,13 +6,13 @@ import './_iter-detect-6e099a34.js';
6
6
  import './web.dom.iterable-46c95e52.js';
7
7
  import React__default, { useRef, useEffect } from 'react';
8
8
  import 'prop-types';
9
- import './isSymbol-b7b7434f.js';
9
+ import './isSymbol-47f5ff3b.js';
10
10
  import './stringify-e30bc114.js';
11
11
  import './asyncToGenerator-0379e924.js';
12
12
  import './_set-species-6f64f1c1.js';
13
13
  import { S as Segment } from './beam-a25bd8fd.js';
14
- import './_arrayMap-64cbe0e4.js';
15
- import { g as get_1 } from './get-0eb56363.js';
14
+ import './_arrayMap-818441dd.js';
15
+ import { g as get_1 } from './get-58d2f7cc.js';
16
16
  import { r as reactSocialIcons_1 } from './react-social-icons-a7d5c5c7.js';
17
17
 
18
18
  var year = new Date().getFullYear();
@@ -33,8 +33,8 @@ var renderLink = function renderLink(row) {
33
33
  };
34
34
 
35
35
  var SideFooter = function SideFooter(props) {
36
- /*
37
- useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
36
+ /*
37
+ useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
38
38
  */
39
39
  var _get = get_1(props, 'cache.siteSettingCache', {}),
40
40
  socialLinks = _get.socialLinks,
@@ -9,9 +9,9 @@ import Row from 'react-bootstrap/Row';
9
9
  import Col from 'react-bootstrap/Col';
10
10
  import Card from 'react-bootstrap/Card';
11
11
  import 'react-dom';
12
- import { i as imageUrlBuilder } from './index-51a80699.js';
12
+ import { i as imageUrlBuilder } from './index-73819142.js';
13
13
  import { L as LazyLoad } from './index-5f9f807a.js';
14
- import { B as BlockContent } from './BlockContent-a614acdf.js';
14
+ import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
15
15
  import { r as reactSocialIcons_1 } from './react-social-icons-a7d5c5c7.js';
16
16
 
17
17
  var TaxonomyCard = function TaxonomyCard(props) {
@@ -5,23 +5,23 @@ import './_library-528f1934.js';
5
5
  import './_iter-detect-6e099a34.js';
6
6
  import './web.dom.iterable-46c95e52.js';
7
7
  import React__default, { useState, useEffect } from 'react';
8
- import './index-93ec3c59.js';
8
+ import './index-3f4dd6f2.js';
9
9
  import 'prop-types';
10
10
  import Container from 'react-bootstrap/Container';
11
11
  import 'react-bootstrap/Row';
12
12
  import 'react-bootstrap/Col';
13
13
  import { useRouter } from 'next/router';
14
- import './isSymbol-b7b7434f.js';
15
- import './debounce-048d9cb6.js';
16
- import './main-7255814e.js';
14
+ import './isSymbol-47f5ff3b.js';
15
+ import './debounce-a0d9abca.js';
16
+ import './main-d7ee6151.js';
17
17
  import { _ as _slicedToArray } from './slicedToArray-f1e40361.js';
18
18
  import './stringify-e30bc114.js';
19
19
  import './asyncToGenerator-0379e924.js';
20
20
  import './_set-species-6f64f1c1.js';
21
21
  import './beam-a25bd8fd.js';
22
22
  import './AdSlot.js';
23
- import './_arrayMap-64cbe0e4.js';
24
- import './get-0eb56363.js';
23
+ import './_arrayMap-818441dd.js';
24
+ import './get-58d2f7cc.js';
25
25
  import './react-social-icons-a7d5c5c7.js';
26
26
  import 'react-bootstrap';
27
27
  import './iconBase-602d52fe.js';
@@ -2,7 +2,7 @@ import './_commonjsHelpers-0c4b6f40.js';
2
2
  import React__default from 'react';
3
3
  import 'prop-types';
4
4
  import 'react-dom';
5
- import { i as imageUrlBuilder } from './index-51a80699.js';
5
+ import { i as imageUrlBuilder } from './index-73819142.js';
6
6
  import { L as LazyLoad } from './index-5f9f807a.js';
7
7
  import { c as clean_html_1 } from './entities-7cc3bf45.js';
8
8
  import Media from 'react-bootstrap/Media';
@@ -3,7 +3,7 @@ import './_to-object-16fd8b46.js';
3
3
  import './core.get-iterator-method-f5c0d66a.js';
4
4
  import './web.dom.iterable-46c95e52.js';
5
5
  import React__default, { useState, useRef, useEffect } from 'react';
6
- import { m as main_39 } from './main-7255814e.js';
6
+ import { m as main_36 } from './main-d7ee6151.js';
7
7
  import { _ as _slicedToArray } from './slicedToArray-f1e40361.js';
8
8
  import './iconBase-602d52fe.js';
9
9
  import { d as IoIosOpen } from './index.esm-4b1d94b7.js';
@@ -64,7 +64,7 @@ var Ustream = function Ustream(_ref) {
64
64
  } catch (err) {}
65
65
  }, []);
66
66
  //return nothing if mobile
67
- if (main_39) {
67
+ if (main_36) {
68
68
  return null;
69
69
  }
70
70
  return React__default.createElement(
@@ -1,7 +1,7 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
2
  import React__default from 'react';
3
- import './moment-12415288.js';
4
- import { i as imageUrlBuilder } from './index-51a80699.js';
3
+ import './moment-e2f9b20c.js';
4
+ import { i as imageUrlBuilder } from './index-73819142.js';
5
5
 
6
6
  var VerticalHero = function VerticalHero(props) {
7
7
  var client = props.client;
@@ -5,7 +5,7 @@ import './_library-528f1934.js';
5
5
  import './_iter-detect-6e099a34.js';
6
6
  import './web.dom.iterable-46c95e52.js';
7
7
  import React__default, { useState, useEffect } from 'react';
8
- import { m as moment } from './moment-12415288.js';
8
+ import { m as moment } from './moment-e2f9b20c.js';
9
9
  import { withRouter } from 'next/router';
10
10
  import { _ as _slicedToArray } from './slicedToArray-f1e40361.js';
11
11
  import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-0379e924.js';
@@ -10,17 +10,17 @@ import './web.dom.iterable-46c95e52.js';
10
10
  import './typeof-5f046efd.js';
11
11
  import './_is-array-dd5523d6.js';
12
12
  import React__default from 'react';
13
- import { l as lib_3 } from './index-93ec3c59.js';
13
+ import { l as lib_3 } from './index-3f4dd6f2.js';
14
14
  import 'prop-types';
15
15
  import Container from 'react-bootstrap/Container';
16
- import './moment-12415288.js';
16
+ import './moment-e2f9b20c.js';
17
17
  import { withRouter } from 'next/router';
18
- import './isSymbol-b7b7434f.js';
19
- import { d as debounce_1 } from './debounce-048d9cb6.js';
20
- import { I as InfiniteScroll } from './index.es-938a3a58.js';
18
+ import './isSymbol-47f5ff3b.js';
19
+ import { d as debounce_1 } from './debounce-a0d9abca.js';
20
+ import { I as InfiniteScroll } from './index.es-29c1cef5.js';
21
21
  import 'react-dom';
22
22
  import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
23
- import './index-51a80699.js';
23
+ import './index-73819142.js';
24
24
  import './index-5f9f807a.js';
25
25
  import './slicedToArray-f1e40361.js';
26
26
  import './smoothscroll-4b699764.js';