@mjhls/mjh-framework 1.0.642-multi-doc-group → 1.0.642

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 (86) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +2 -2
  4. package/dist/cjs/AD300x250x600.js +2 -2
  5. package/dist/cjs/AD728x90.js +2 -2
  6. package/dist/cjs/ADFloatingFooter.js +2 -2
  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/ArticleQueue.js +1689 -0
  14. package/dist/cjs/ArticleSeriesListing.js +2 -2
  15. package/dist/cjs/CMEDeck.js +2 -2
  16. package/dist/cjs/Column2.js +3 -2
  17. package/dist/cjs/Column3.js +4 -3
  18. package/dist/cjs/ConferenceArticleCard.js +27 -11
  19. package/dist/cjs/DeckContent.js +3 -3
  20. package/dist/cjs/DeckQueue.js +4 -3
  21. package/dist/cjs/{Dfp-b2bc3b97.js → Dfp-ffaf5981.js} +2 -2
  22. package/dist/cjs/ExternalResources.js +3 -3
  23. package/dist/cjs/GridContent.js +6 -5
  24. package/dist/cjs/IssueLanding.js +4 -4
  25. package/dist/cjs/LeftNav.js +2 -2
  26. package/dist/cjs/MasterDeck.js +4 -4
  27. package/dist/cjs/PartnerDetailListing.js +5 -5
  28. package/dist/cjs/QueueDeckExpanded.js +4 -4
  29. package/dist/cjs/RelatedContent.js +30 -0
  30. package/dist/cjs/SideFooter.js +3 -2
  31. package/dist/cjs/TemplateNormal.js +4 -3
  32. package/dist/cjs/VideoSeriesListing.js +2 -2
  33. package/dist/cjs/View.js +26 -34
  34. package/dist/cjs/_arrayMap-3b4a0f75.js +91 -0
  35. package/dist/cjs/{debounce-eb287781.js → debounce-32e57002.js} +2 -1
  36. package/dist/cjs/{get-68c52cb1.js → get-5dfcdc33.js} +7 -90
  37. package/dist/cjs/getQuery.js +2 -2
  38. package/dist/cjs/getSerializers.js +3 -3
  39. package/dist/cjs/index.js +11 -8
  40. package/dist/cjs/{isSymbol-04666465.js → isSymbol-488934a7.js} +2 -0
  41. package/dist/esm/AD.js +1 -1
  42. package/dist/esm/AD300x250.js +2 -2
  43. package/dist/esm/AD300x250x600.js +2 -2
  44. package/dist/esm/AD728x90.js +2 -2
  45. package/dist/esm/ADFloatingFooter.js +2 -2
  46. package/dist/esm/ADGutter.js +2 -2
  47. package/dist/esm/ADSkyscraper.js +2 -2
  48. package/dist/esm/ADSponsoredResources.js +2 -2
  49. package/dist/esm/ADWebcast.js +2 -2
  50. package/dist/esm/ADWelcome.js +2 -2
  51. package/dist/esm/AdSlot.js +2 -2
  52. package/dist/esm/ArticleQueue.js +1684 -0
  53. package/dist/esm/ArticleSeriesListing.js +2 -2
  54. package/dist/esm/CMEDeck.js +2 -2
  55. package/dist/esm/Column2.js +3 -2
  56. package/dist/esm/Column3.js +4 -3
  57. package/dist/esm/ConferenceArticleCard.js +27 -11
  58. package/dist/esm/DeckContent.js +3 -3
  59. package/dist/esm/DeckQueue.js +4 -3
  60. package/dist/esm/{Dfp-43d61e01.js → Dfp-4f966af0.js} +2 -2
  61. package/dist/esm/ExternalResources.js +3 -3
  62. package/dist/esm/GridContent.js +6 -5
  63. package/dist/esm/IssueLanding.js +4 -4
  64. package/dist/esm/LeftNav.js +2 -2
  65. package/dist/esm/MasterDeck.js +4 -4
  66. package/dist/esm/PartnerDetailListing.js +5 -5
  67. package/dist/esm/QueueDeckExpanded.js +4 -4
  68. package/dist/esm/RelatedContent.js +30 -0
  69. package/dist/esm/SideFooter.js +3 -2
  70. package/dist/esm/TemplateNormal.js +4 -3
  71. package/dist/esm/VideoSeriesListing.js +2 -2
  72. package/dist/esm/View.js +23 -31
  73. package/dist/esm/_arrayMap-818441dd.js +87 -0
  74. package/dist/esm/{debounce-1a993acf.js → debounce-a0d9abca.js} +2 -2
  75. package/dist/esm/{get-5ee14cda.js → get-58d2f7cc.js} +2 -85
  76. package/dist/esm/getQuery.js +2 -2
  77. package/dist/esm/getSerializers.js +3 -3
  78. package/dist/esm/index.js +9 -7
  79. package/dist/esm/{isSymbol-807e927e.js → isSymbol-47f5ff3b.js} +1 -1
  80. package/package.json +1 -1
  81. /package/dist/cjs/{ADInfeed-eaa6c661.js → ADInfeed-350decaa.js} +0 -0
  82. /package/dist/cjs/{ADlgInfeed-f25eb4f7.js → ADlgInfeed-7d61609b.js} +0 -0
  83. /package/dist/cjs/{index-04c709c4.js → index-46694c1c.js} +0 -0
  84. /package/dist/esm/{ADInfeed-3c4773f8.js → ADInfeed-fd7a62b1.js} +0 -0
  85. /package/dist/esm/{ADlgInfeed-5a52301f.js → ADlgInfeed-79c771d6.js} +0 -0
  86. /package/dist/esm/{index-c3ffdcd7.js → index-c3a534d6.js} +0 -0
@@ -17,8 +17,8 @@ import 'prop-types';
17
17
  import Container from 'react-bootstrap/Container';
18
18
  import './moment-12415288.js';
19
19
  import { withRouter } from 'next/router';
20
- import './isSymbol-807e927e.js';
21
- import { d as debounce_1 } from './debounce-1a993acf.js';
20
+ import './isSymbol-47f5ff3b.js';
21
+ import { d as debounce_1 } from './debounce-a0d9abca.js';
22
22
  import { I as InfiniteScroll } from './index.es-938a3a58.js';
23
23
  import 'react-dom';
24
24
  import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
@@ -13,8 +13,8 @@ import { l as lib_3 } from './index-93ec3c59.js';
13
13
  import 'prop-types';
14
14
  import './moment-12415288.js';
15
15
  import { useRouter } from 'next/router';
16
- import './isSymbol-807e927e.js';
17
- import { d as debounce_1 } from './debounce-1a993acf.js';
16
+ import './isSymbol-47f5ff3b.js';
17
+ import { d as debounce_1 } from './debounce-a0d9abca.js';
18
18
  import { I as InfiniteScroll } from './index.es-938a3a58.js';
19
19
  import 'react-dom';
20
20
  import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
@@ -10,12 +10,13 @@ import React__default from 'react';
10
10
  import 'prop-types';
11
11
  import Row from 'react-bootstrap/Row';
12
12
  import Col from 'react-bootstrap/Col';
13
- import './isSymbol-807e927e.js';
13
+ import './isSymbol-47f5ff3b.js';
14
14
  import './stringify-feadff37.js';
15
15
  import './asyncToGenerator-271a52f3.js';
16
16
  import './_set-species-41cbf140.js';
17
17
  import './beam-c4d8f8f6.js';
18
- import './get-5ee14cda.js';
18
+ import './_arrayMap-818441dd.js';
19
+ import './get-58d2f7cc.js';
19
20
  import './react-social-icons-a7d5c5c7.js';
20
21
  import './defineProperty-fa14766d.js';
21
22
  import SideFooter from './SideFooter.js';
@@ -11,8 +11,8 @@ import './index-93ec3c59.js';
11
11
  import 'prop-types';
12
12
  import Row from 'react-bootstrap/Row';
13
13
  import Col from 'react-bootstrap/Col';
14
- import './isSymbol-807e927e.js';
15
- import './debounce-1a993acf.js';
14
+ import './isSymbol-47f5ff3b.js';
15
+ import './debounce-a0d9abca.js';
16
16
  import { m as main_39 } from './main-0465b2a0.js';
17
17
  import './stringify-feadff37.js';
18
18
  import './slicedToArray-5fb01661.js';
@@ -20,7 +20,8 @@ import './asyncToGenerator-271a52f3.js';
20
20
  import './_set-species-41cbf140.js';
21
21
  import './beam-c4d8f8f6.js';
22
22
  import './AdSlot.js';
23
- import './get-5ee14cda.js';
23
+ import './_arrayMap-818441dd.js';
24
+ import './get-58d2f7cc.js';
24
25
  import './react-social-icons-a7d5c5c7.js';
25
26
  import 'react-bootstrap';
26
27
  import './defineProperty-fa14766d.js';
@@ -3,6 +3,23 @@ import React__default from 'react';
3
3
  import { m as moment } from './moment-12415288.js';
4
4
  import { i as imageUrlBuilder } from './index-51a80699.js';
5
5
 
6
+ /*
7
+ Example usage - targetedonc.com/latest-conference
8
+ const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
9
+ ...,
10
+ title,
11
+ summary,
12
+ thumbnail,
13
+ url,
14
+ published,
15
+ documentGroup->,
16
+ contentCategory->,
17
+ 'pageNumber': ${currentPage}
18
+ }`
19
+
20
+ const posts = await client.fetch(query, params)
21
+ */
22
+
6
23
  var ConferenceArticleCard = function ConferenceArticleCard(props) {
7
24
  var data = props.data,
8
25
  variant = props.variant,
@@ -16,6 +33,7 @@ var ConferenceArticleCard = function ConferenceArticleCard(props) {
16
33
  return builder.image(source).auto('format');
17
34
  }
18
35
 
36
+ //title, thumbnail, summary, published, documentGroup.identifier.current, documentGroup.identifier.name
19
37
  return React__default.createElement(
20
38
  'div',
21
39
  { className: 'conference-media' },
@@ -45,17 +63,15 @@ var ConferenceArticleCard = function ConferenceArticleCard(props) {
45
63
  { className: 'conf-media__card-text' },
46
64
  moment(data.published).format('MMMM Do YYYY, h:mma')
47
65
  ),
48
- data.documentGroupMapping && data.documentGroupMapping.map(function (map, index) {
49
- return React__default.createElement(
50
- 'p',
51
- { className: 'mb-1 conference-group', key: index },
52
- React__default.createElement(
53
- 'a',
54
- { href: '/conference/' + (map.identifier && map.identifier.current || ''), alt: data.thumbnail && data.thumbnail.alt || data.title },
55
- map.name
56
- )
57
- );
58
- }),
66
+ React__default.createElement(
67
+ 'p',
68
+ { className: 'mb-1 conference-group' },
69
+ data.documentGroup && data.documentGroup.identifier && React__default.createElement(
70
+ 'a',
71
+ { href: '/conference/' + data.documentGroup.identifier.current, alt: data.thumbnail && data.thumbnail.alt || data.title },
72
+ data.documentGroup.name
73
+ )
74
+ ),
59
75
  React__default.createElement('p', { className: 'pt-2 card-text', dangerouslySetInnerHTML: { __html: data.summary } })
60
76
  ),
61
77
  React__default.createElement(
@@ -22,8 +22,8 @@ import Col from 'react-bootstrap/Col';
22
22
  import Card from 'react-bootstrap/Card';
23
23
  import { m as moment } from './moment-12415288.js';
24
24
  import { withRouter } from 'next/router';
25
- import './isSymbol-807e927e.js';
26
- import { d as debounce_1 } from './debounce-1a993acf.js';
25
+ import './isSymbol-47f5ff3b.js';
26
+ import { d as debounce_1 } from './debounce-a0d9abca.js';
27
27
  import { I as InfiniteScroll } from './index.es-938a3a58.js';
28
28
  import 'react-dom';
29
29
  import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
@@ -37,7 +37,7 @@ import './asyncToGenerator-271a52f3.js';
37
37
  import './_set-species-41cbf140.js';
38
38
  import './beam-c4d8f8f6.js';
39
39
  import './AdSlot.js';
40
- import { A as ADInfeed } from './ADInfeed-3c4773f8.js';
40
+ import { A as ADInfeed } from './ADInfeed-fd7a62b1.js';
41
41
 
42
42
  var DeckContent = function (_React$Component) {
43
43
  _inherits(DeckContent, _React$Component);
@@ -22,8 +22,8 @@ import Col from 'react-bootstrap/Col';
22
22
  import Card from 'react-bootstrap/Card';
23
23
  import { m as moment } from './moment-12415288.js';
24
24
  import { withRouter } from 'next/router';
25
- import './isSymbol-807e927e.js';
26
- import { d as debounce_1 } from './debounce-1a993acf.js';
25
+ import './isSymbol-47f5ff3b.js';
26
+ import { d as debounce_1 } from './debounce-a0d9abca.js';
27
27
  import { I as InfiniteScroll } from './index.es-938a3a58.js';
28
28
  import 'react-dom';
29
29
  import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
@@ -31,7 +31,8 @@ import { i as imageUrlBuilder } from './index-51a80699.js';
31
31
  import { L as LazyLoad } from './index-5f9f807a.js';
32
32
  import { m as main_39 } from './main-0465b2a0.js';
33
33
  import { c as clean_html_1 } from './entities-7cc3bf45.js';
34
- import { g as get_1 } from './get-5ee14cda.js';
34
+ import './_arrayMap-818441dd.js';
35
+ import { g as get_1 } from './get-58d2f7cc.js';
35
36
 
36
37
  var DeckQueue = function (_React$Component) {
37
38
  _inherits(DeckQueue, _React$Component);
@@ -6,8 +6,8 @@ import './web.dom.iterable-03c5ba1c.js';
6
6
  import React__default, { useState } from 'react';
7
7
  import { b as lib_1, a as lib_2 } from './index-93ec3c59.js';
8
8
  import PropTypes from 'prop-types';
9
- import './isSymbol-807e927e.js';
10
- import { d as debounce_1 } from './debounce-1a993acf.js';
9
+ import './isSymbol-47f5ff3b.js';
10
+ import { d as debounce_1 } from './debounce-a0d9abca.js';
11
11
  import 'react-dom';
12
12
  import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
13
13
  import { _ as _slicedToArray } from './slicedToArray-5fb01661.js';
@@ -20,8 +20,8 @@ import 'react-bootstrap/Row';
20
20
  import 'react-bootstrap/Col';
21
21
  import './moment-12415288.js';
22
22
  import { useRouter } from 'next/router';
23
- import './isSymbol-807e927e.js';
24
- import './debounce-1a993acf.js';
23
+ import './isSymbol-47f5ff3b.js';
24
+ import './debounce-a0d9abca.js';
25
25
  import 'react-dom';
26
26
  import './index-51a80699.js';
27
27
  import './index-5f9f807a.js';
@@ -39,7 +39,7 @@ import './GroupDeck.js';
39
39
  import 'react-bootstrap';
40
40
  import Button from 'react-bootstrap/Button';
41
41
  import { m as momentTimezone } from './index-d2f90501.js';
42
- import { g as getSerializers } from './index-c3ffdcd7.js';
42
+ import { g as getSerializers } from './index-c3a534d6.js';
43
43
  import './util-7700fc59.js';
44
44
  import './brightcove-react-player-loader.es-83f53e4e.js';
45
45
  import 'react-bootstrap/Pagination';
@@ -22,8 +22,8 @@ import Col from 'react-bootstrap/Col';
22
22
  import Card from 'react-bootstrap/Card';
23
23
  import { m as moment } from './moment-12415288.js';
24
24
  import { withRouter } from 'next/router';
25
- import './isSymbol-807e927e.js';
26
- import { d as debounce_1 } from './debounce-1a993acf.js';
25
+ import './isSymbol-47f5ff3b.js';
26
+ import { d as debounce_1 } from './debounce-a0d9abca.js';
27
27
  import { I as InfiniteScroll } from './index.es-938a3a58.js';
28
28
  import 'react-dom';
29
29
  import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
@@ -37,10 +37,11 @@ import './asyncToGenerator-271a52f3.js';
37
37
  import './_set-species-41cbf140.js';
38
38
  import './beam-c4d8f8f6.js';
39
39
  import './AdSlot.js';
40
- import { A as ADInfeed } from './ADInfeed-3c4773f8.js';
40
+ import { A as ADInfeed } from './ADInfeed-fd7a62b1.js';
41
41
  import { l as lodash } from './lodash-17fdfebb.js';
42
- import { A as ADlgInfeed } from './ADlgInfeed-5a52301f.js';
43
- import { g as get_1 } from './get-5ee14cda.js';
42
+ import { A as ADlgInfeed } from './ADlgInfeed-79c771d6.js';
43
+ import './_arrayMap-818441dd.js';
44
+ import { g as get_1 } from './get-58d2f7cc.js';
44
45
  import './AD.js';
45
46
  import { A as AuthorComponent } from './AuthorComponent-1ea27faa.js';
46
47
 
@@ -14,8 +14,8 @@ import 'prop-types';
14
14
  import 'react-bootstrap/Card';
15
15
  import './moment-12415288.js';
16
16
  import 'next/router';
17
- import './isSymbol-807e927e.js';
18
- import './debounce-1a993acf.js';
17
+ import './isSymbol-47f5ff3b.js';
18
+ import './debounce-a0d9abca.js';
19
19
  import './index.es-938a3a58.js';
20
20
  import 'react-dom';
21
21
  import './visibility-sensor-0baa4eea.js';
@@ -29,9 +29,9 @@ import './asyncToGenerator-271a52f3.js';
29
29
  import './_set-species-41cbf140.js';
30
30
  import './beam-c4d8f8f6.js';
31
31
  import './AdSlot.js';
32
- import './ADInfeed-3c4773f8.js';
32
+ import './ADInfeed-fd7a62b1.js';
33
33
  import './lodash-17fdfebb.js';
34
- import './ADlgInfeed-5a52301f.js';
34
+ import './ADlgInfeed-79c771d6.js';
35
35
  import './AuthorComponent-1ea27faa.js';
36
36
  import 'react-bootstrap';
37
37
  import QueueDeckExpanded from './QueueDeckExpanded.js';
@@ -8,8 +8,8 @@ import './web.dom.iterable-03c5ba1c.js';
8
8
  import React__default, { useRef, useEffect } from 'react';
9
9
  import './index-93ec3c59.js';
10
10
  import 'prop-types';
11
- import './isSymbol-807e927e.js';
12
- import './debounce-1a993acf.js';
11
+ import './isSymbol-47f5ff3b.js';
12
+ import './debounce-a0d9abca.js';
13
13
  import './main-0465b2a0.js';
14
14
  import './stringify-feadff37.js';
15
15
  import './slicedToArray-5fb01661.js';
@@ -22,8 +22,8 @@ import 'react-bootstrap/Col';
22
22
  import 'react-bootstrap/Card';
23
23
  import './moment-12415288.js';
24
24
  import { withRouter } from 'next/router';
25
- import './isSymbol-807e927e.js';
26
- import { d as debounce_1 } from './debounce-1a993acf.js';
25
+ import './isSymbol-47f5ff3b.js';
26
+ import { d as debounce_1 } from './debounce-a0d9abca.js';
27
27
  import { I as InfiniteScroll } from './index.es-938a3a58.js';
28
28
  import 'react-dom';
29
29
  import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
@@ -35,9 +35,9 @@ import { _ as _Promise } from './asyncToGenerator-271a52f3.js';
35
35
  import './_set-species-41cbf140.js';
36
36
  import './beam-c4d8f8f6.js';
37
37
  import './AdSlot.js';
38
- import { A as ADInfeed } from './ADInfeed-3c4773f8.js';
38
+ import { A as ADInfeed } from './ADInfeed-fd7a62b1.js';
39
39
  import { l as lodash } from './lodash-17fdfebb.js';
40
- import { A as ADlgInfeed } from './ADlgInfeed-5a52301f.js';
40
+ import { A as ADlgInfeed } from './ADlgInfeed-79c771d6.js';
41
41
 
42
42
  var MasterDeck = function (_React$Component) {
43
43
  _inherits(MasterDeck, _React$Component);
@@ -21,8 +21,8 @@ import 'react-bootstrap/Col';
21
21
  import 'react-bootstrap/Card';
22
22
  import { m as moment } from './moment-12415288.js';
23
23
  import 'next/router';
24
- import './isSymbol-807e927e.js';
25
- import './debounce-1a993acf.js';
24
+ import './isSymbol-47f5ff3b.js';
25
+ import './debounce-a0d9abca.js';
26
26
  import './index.es-938a3a58.js';
27
27
  import 'react-dom';
28
28
  import './visibility-sensor-0baa4eea.js';
@@ -36,9 +36,9 @@ import { a as _asyncToGenerator, r as regenerator, _ as _Promise } from './async
36
36
  import './_set-species-41cbf140.js';
37
37
  import './beam-c4d8f8f6.js';
38
38
  import './AdSlot.js';
39
- import './ADInfeed-3c4773f8.js';
39
+ import './ADInfeed-fd7a62b1.js';
40
40
  import './lodash-17fdfebb.js';
41
- import './ADlgInfeed-5a52301f.js';
41
+ import './ADlgInfeed-79c771d6.js';
42
42
  import './AuthorComponent-1ea27faa.js';
43
43
  import { B as BlockContent } from './BlockContent-a614acdf.js';
44
44
  import { s as smoothscroll } from './smoothscroll-4b699764.js';
@@ -46,7 +46,7 @@ import './GroupDeck.js';
46
46
  import 'react-bootstrap';
47
47
  import QueueDeckExpanded from './QueueDeckExpanded.js';
48
48
  import 'react-bootstrap/Button';
49
- import { g as getSerializers } from './index-c3ffdcd7.js';
49
+ import { g as getSerializers } from './index-c3a534d6.js';
50
50
  import './util-7700fc59.js';
51
51
  import './brightcove-react-player-loader.es-83f53e4e.js';
52
52
  import 'react-bootstrap/Pagination';
@@ -14,8 +14,8 @@ import 'prop-types';
14
14
  import 'react-bootstrap/Card';
15
15
  import { m as moment } from './moment-12415288.js';
16
16
  import { useRouter } from 'next/router';
17
- import './isSymbol-807e927e.js';
18
- import './debounce-1a993acf.js';
17
+ import './isSymbol-47f5ff3b.js';
18
+ import './debounce-a0d9abca.js';
19
19
  import { I as InfiniteScroll } from './index.es-938a3a58.js';
20
20
  import 'react-dom';
21
21
  import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
@@ -29,9 +29,9 @@ import './asyncToGenerator-271a52f3.js';
29
29
  import './_set-species-41cbf140.js';
30
30
  import './beam-c4d8f8f6.js';
31
31
  import './AdSlot.js';
32
- import { A as ADInfeed } from './ADInfeed-3c4773f8.js';
32
+ import { A as ADInfeed } from './ADInfeed-fd7a62b1.js';
33
33
  import { l as lodash } from './lodash-17fdfebb.js';
34
- import { A as ADlgInfeed } from './ADlgInfeed-5a52301f.js';
34
+ import { A as ADlgInfeed } from './ADlgInfeed-79c771d6.js';
35
35
  import { A as AuthorComponent } from './AuthorComponent-1ea27faa.js';
36
36
  import { Container, Media } from 'react-bootstrap';
37
37
 
@@ -2,7 +2,37 @@ import './_commonjsHelpers-0c4b6f40.js';
2
2
  import React__default from 'react';
3
3
  import { m as moment } from './moment-12415288.js';
4
4
  import { i as imageUrlBuilder } from './index-51a80699.js';
5
+ import 'react-bootstrap/Media';
5
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
+
35
+ */
6
36
  var RelatedContent = function RelatedContent(props) {
7
37
  var client = props.client,
8
38
  dataRecord = props.dataRecord,
@@ -8,12 +8,13 @@ import './define-property-99e9c0ad.js';
8
8
  import './web.dom.iterable-03c5ba1c.js';
9
9
  import React__default, { useRef, useEffect } from 'react';
10
10
  import 'prop-types';
11
- import './isSymbol-807e927e.js';
11
+ import './isSymbol-47f5ff3b.js';
12
12
  import './stringify-feadff37.js';
13
13
  import './asyncToGenerator-271a52f3.js';
14
14
  import './_set-species-41cbf140.js';
15
15
  import { S as Segment } from './beam-c4d8f8f6.js';
16
- import { g as get_1 } from './get-5ee14cda.js';
16
+ import './_arrayMap-818441dd.js';
17
+ import { g as get_1 } from './get-58d2f7cc.js';
17
18
  import { r as reactSocialIcons_1 } from './react-social-icons-a7d5c5c7.js';
18
19
  import { _ as _defineProperty } from './defineProperty-fa14766d.js';
19
20
 
@@ -13,8 +13,8 @@ import Container from 'react-bootstrap/Container';
13
13
  import 'react-bootstrap/Row';
14
14
  import 'react-bootstrap/Col';
15
15
  import { useRouter } from 'next/router';
16
- import './isSymbol-807e927e.js';
17
- import './debounce-1a993acf.js';
16
+ import './isSymbol-47f5ff3b.js';
17
+ import './debounce-a0d9abca.js';
18
18
  import './main-0465b2a0.js';
19
19
  import './stringify-feadff37.js';
20
20
  import { _ as _slicedToArray } from './slicedToArray-5fb01661.js';
@@ -22,7 +22,8 @@ import './asyncToGenerator-271a52f3.js';
22
22
  import './_set-species-41cbf140.js';
23
23
  import './beam-c4d8f8f6.js';
24
24
  import './AdSlot.js';
25
- import './get-5ee14cda.js';
25
+ import './_arrayMap-818441dd.js';
26
+ import './get-58d2f7cc.js';
26
27
  import './react-social-icons-a7d5c5c7.js';
27
28
  import 'react-bootstrap';
28
29
  import './iconBase-602d52fe.js';
@@ -16,8 +16,8 @@ import { l as lib_3 } from './index-93ec3c59.js';
16
16
  import 'prop-types';
17
17
  import Container from 'react-bootstrap/Container';
18
18
  import { withRouter } from 'next/router';
19
- import './isSymbol-807e927e.js';
20
- import { d as debounce_1 } from './debounce-1a993acf.js';
19
+ import './isSymbol-47f5ff3b.js';
20
+ import { d as debounce_1 } from './debounce-a0d9abca.js';
21
21
  import { I as InfiniteScroll } from './index.es-938a3a58.js';
22
22
  import 'react-dom';
23
23
  import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
package/dist/esm/View.js CHANGED
@@ -20,8 +20,8 @@ import 'react-bootstrap/Row';
20
20
  import 'react-bootstrap/Col';
21
21
  import { m as moment } from './moment-12415288.js';
22
22
  import { useRouter } from 'next/router';
23
- import './isSymbol-807e927e.js';
24
- import './debounce-1a993acf.js';
23
+ import './isSymbol-47f5ff3b.js';
24
+ import './debounce-a0d9abca.js';
25
25
  import { I as InfiniteScroll } from './index.es-938a3a58.js';
26
26
  import 'react-dom';
27
27
  import './index-51a80699.js';
@@ -39,7 +39,7 @@ import './smoothscroll-4b699764.js';
39
39
  import './GroupDeck.js';
40
40
  import 'react-bootstrap';
41
41
  import Button from 'react-bootstrap/Button';
42
- import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-c3ffdcd7.js';
42
+ import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-c3a534d6.js';
43
43
  import './util-7700fc59.js';
44
44
  import './brightcove-react-player-loader.es-83f53e4e.js';
45
45
  import 'react-bootstrap/Pagination';
@@ -51,12 +51,12 @@ import Form from 'react-bootstrap/Form';
51
51
  import FormControl from 'react-bootstrap/FormControl';
52
52
  import { _ as _Object$keys } from './keys-941eccc4.js';
53
53
  import 'react-bootstrap/Dropdown';
54
+ import getKeywords from './getKeywords.js';
54
55
  import getSeriesDetail from './getSeriesDetail.js';
55
56
  import 'nookies';
56
57
  import getQuery from './getQuery.js';
57
58
  import getRelatedArticle from './getRelatedArticle.js';
58
59
  import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-3cc3f97d.js';
59
- import getKeywords from './getKeywords.js';
60
60
  import urlFor from './urlFor.js';
61
61
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
62
62
 
@@ -309,7 +309,6 @@ var Article = function Article(props) {
309
309
  issue = _props$article.issue,
310
310
  source = _props$article.source,
311
311
  documentGroup = _props$article.documentGroup,
312
- documentGroupMapping = _props$article.documentGroupMapping,
313
312
  regionalPages = props.regionalPages,
314
313
  nationalPage = props.nationalPage,
315
314
  ISIContent = props.ISIContent,
@@ -400,7 +399,7 @@ var Article = function Article(props) {
400
399
  };
401
400
 
402
401
  var RelevantTopics = function RelevantTopics() {
403
- if (content_placement && content_placement.length > 0 || documentGroupMapping) {
402
+ if (content_placement && content_placement.length > 0 || documentGroup) {
404
403
  return React__default.createElement(
405
404
  'div',
406
405
  { style: { color: '#262626' } },
@@ -413,28 +412,23 @@ var Article = function Article(props) {
413
412
  'Related Content:'
414
413
  )
415
414
  ),
416
- documentGroupMapping && documentGroupMapping.length > 0 && documentGroupMapping.map(function (map, map_index) {
417
- var map_href = (cpModificationRequired ? map.parent && '/' + (map.parent.identifier && map.parent.identifier.current) : '') + '/' + map.path;
418
- return React__default.createElement(
419
- React__default.Fragment,
420
- null,
415
+ documentGroup && documentGroup.parent && React__default.createElement(
416
+ React__default.Fragment,
417
+ null,
418
+ React__default.createElement(
419
+ 'span',
420
+ { className: '' },
421
421
  React__default.createElement(
422
- 'span',
423
- { className: '', key: map_index },
424
- React__default.createElement(
425
- 'a',
426
- {
427
- className: 'related-links',
428
- style: { color: 'blue' },
429
- href: map_href
430
- },
431
- map.name
432
- )
433
- ),
434
- map.index < documentGroupMapping.length && ' | '
435
- );
436
- }),
437
- content_placement && content_placement.length > 0 && ' | ',
422
+ 'a',
423
+ {
424
+ className: 'related-links',
425
+ style: { color: 'blue' },
426
+ href: cpModificationRequired ? '/' + documentGroup.parent.identifier.current + '/' + documentGroup.path : '/' + documentGroup.path },
427
+ documentGroup.name
428
+ )
429
+ ),
430
+ content_placement && content_placement.length ? ' | ' : null
431
+ ),
438
432
  content_placement && content_placement.length > 0 ? content_placement.map(function (cp, index) {
439
433
  var cp_url = cpModificationRequired ? getContentPlacementUrl(cp) : cp.path;
440
434
  var href = '/' + cp_url;
@@ -1282,9 +1276,7 @@ var View = function View(props) {
1282
1276
  _props$showRelatedArt = props.showRelatedArticles,
1283
1277
  showRelatedArticles = _props$showRelatedArt === undefined ? false : _props$showRelatedArt,
1284
1278
  _props$canonicalTag = props.canonicalTag,
1285
- canonicalTag = _props$canonicalTag === undefined ? true : _props$canonicalTag,
1286
- _props$disableInfinit = props.disableInfiniteScroll,
1287
- disableInfiniteScroll = _props$disableInfinit === undefined ? false : _props$disableInfinit;
1279
+ canonicalTag = _props$canonicalTag === undefined ? true : _props$canonicalTag;
1288
1280
  var _props$article = props.article,
1289
1281
  _props$article$passwo = _props$article.passwordLock,
1290
1282
  passwordLock = _props$article$passwo === undefined ? false : _props$article$passwo,
@@ -1342,7 +1334,7 @@ var View = function View(props) {
1342
1334
 
1343
1335
  var isVideoSeries = checkVideoSeries(props.article);
1344
1336
  var isArticleSeries = checkArticleSeries(props.article);
1345
- var needInfiniteScroll = ['Articles', 'Videos', 'Podcasts'].includes(article.category.name) && article.taxonomyMapping && article.passwordLock !== true && !isVideoSeries && !isArticleSeries && !article.ExcludeFromInfiniteScroll && !sponsoredFlag && !disableInfiniteScroll;
1337
+ var needInfiniteScroll = ['Articles', 'Videos', 'Podcasts'].includes(article.category.name) && article.taxonomyMapping && article.passwordLock !== true && !isVideoSeries && !isArticleSeries && !article.ExcludeFromInfiniteScroll && !sponsoredFlag;
1346
1338
 
1347
1339
  if (['Articles', 'Videos', 'Podcasts'].includes(article.category.name)) {
1348
1340
  description = null;
@@ -0,0 +1,87 @@
1
+ import { d as isObject_1, _ as _baseGetTag } from './isSymbol-47f5ff3b.js';
2
+
3
+ /**
4
+ * Checks if `value` is classified as an `Array` object.
5
+ *
6
+ * @static
7
+ * @memberOf _
8
+ * @since 0.1.0
9
+ * @category Lang
10
+ * @param {*} value The value to check.
11
+ * @returns {boolean} Returns `true` if `value` is an array, else `false`.
12
+ * @example
13
+ *
14
+ * _.isArray([1, 2, 3]);
15
+ * // => true
16
+ *
17
+ * _.isArray(document.body.children);
18
+ * // => false
19
+ *
20
+ * _.isArray('abc');
21
+ * // => false
22
+ *
23
+ * _.isArray(_.noop);
24
+ * // => false
25
+ */
26
+ var isArray = Array.isArray;
27
+
28
+ var isArray_1 = isArray;
29
+
30
+ /** `Object#toString` result references. */
31
+ var asyncTag = '[object AsyncFunction]',
32
+ funcTag = '[object Function]',
33
+ genTag = '[object GeneratorFunction]',
34
+ proxyTag = '[object Proxy]';
35
+
36
+ /**
37
+ * Checks if `value` is classified as a `Function` object.
38
+ *
39
+ * @static
40
+ * @memberOf _
41
+ * @since 0.1.0
42
+ * @category Lang
43
+ * @param {*} value The value to check.
44
+ * @returns {boolean} Returns `true` if `value` is a function, else `false`.
45
+ * @example
46
+ *
47
+ * _.isFunction(_);
48
+ * // => true
49
+ *
50
+ * _.isFunction(/abc/);
51
+ * // => false
52
+ */
53
+ function isFunction(value) {
54
+ if (!isObject_1(value)) {
55
+ return false;
56
+ }
57
+ // The use of `Object#toString` avoids issues with the `typeof` operator
58
+ // in Safari 9 which returns 'object' for typed arrays and other constructors.
59
+ var tag = _baseGetTag(value);
60
+ return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
61
+ }
62
+
63
+ var isFunction_1 = isFunction;
64
+
65
+ /**
66
+ * A specialized version of `_.map` for arrays without support for iteratee
67
+ * shorthands.
68
+ *
69
+ * @private
70
+ * @param {Array} [array] The array to iterate over.
71
+ * @param {Function} iteratee The function invoked per iteration.
72
+ * @returns {Array} Returns the new mapped array.
73
+ */
74
+ function arrayMap(array, iteratee) {
75
+ var index = -1,
76
+ length = array == null ? 0 : array.length,
77
+ result = Array(length);
78
+
79
+ while (++index < length) {
80
+ result[index] = iteratee(array[index], index, array);
81
+ }
82
+ return result;
83
+ }
84
+
85
+ var _arrayMap = arrayMap;
86
+
87
+ export { _arrayMap as _, isArray_1 as a, isFunction_1 as i };
@@ -1,4 +1,4 @@
1
- import { _ as _root, i as isSymbol_1, a as isObject_1 } from './isSymbol-807e927e.js';
1
+ import { a as _root, c as isSymbol_1, d as isObject_1 } from './isSymbol-47f5ff3b.js';
2
2
 
3
3
  /**
4
4
  * Gets the timestamp of the number of milliseconds that have elapsed since
@@ -274,4 +274,4 @@ function debounce(func, wait, options) {
274
274
 
275
275
  var debounce_1 = debounce;
276
276
 
277
- export { debounce_1 as d };
277
+ export { debounce_1 as d, toNumber_1 as t };