@mjhls/mjh-framework 1.0.651 → 1.0.652

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 (156) 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/ArticleSeriesListing.js +4 -4
  15. package/dist/cjs/Auth.js +507 -256
  16. package/dist/cjs/{BlockContent-091a991f.js → BlockContent-88f69acd.js} +1 -1
  17. package/dist/cjs/CMEDeck.js +5 -5
  18. package/dist/cjs/Column3.js +4 -4
  19. package/dist/cjs/ConferenceArticleCard.js +17 -17
  20. package/dist/cjs/DeckContent.js +15 -15
  21. package/dist/cjs/DeckQueue.js +6 -6
  22. package/dist/cjs/{Dfp-390337bf.js → Dfp-b2bc3b97.js} +1 -1
  23. package/dist/cjs/EventsDeck.js +22 -22
  24. package/dist/cjs/ExternalResources.js +7 -7
  25. package/dist/cjs/Feature.js +3 -3
  26. package/dist/cjs/ForbesHero.js +2 -2
  27. package/dist/cjs/GridContent.js +18 -16
  28. package/dist/cjs/GridHero.js +2 -2
  29. package/dist/cjs/GroupDeck.js +1 -1
  30. package/dist/cjs/HamMagazine.js +13 -13
  31. package/dist/cjs/Hero.js +1 -1
  32. package/dist/cjs/HorizontalHero.js +2 -2
  33. package/dist/cjs/IssueContentDeck.js +2 -2
  34. package/dist/cjs/IssueDeck.js +2 -2
  35. package/dist/cjs/IssueLanding.js +39 -37
  36. package/dist/cjs/KMTracker.js +15 -15
  37. package/dist/cjs/LeftNav.js +2 -2
  38. package/dist/cjs/MasterDeck.js +16 -16
  39. package/dist/cjs/NavMagazine.js +14 -14
  40. package/dist/cjs/NavNative.js +11 -11
  41. package/dist/cjs/OncliveHero.js +2 -2
  42. package/dist/cjs/OncliveLargeHero.js +2 -2
  43. package/dist/cjs/PartnerDetailListing.js +16 -1212
  44. package/dist/cjs/PublicationDeck.js +1 -1
  45. package/dist/cjs/PublicationLanding.js +33 -33
  46. package/dist/cjs/QueueDeckExpanded.js +22 -19
  47. package/dist/cjs/RecentNews.js +2 -2
  48. package/dist/cjs/RelatedContent.js +30 -30
  49. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  50. package/dist/cjs/SideFooter.js +2 -2
  51. package/dist/cjs/{SocialSearchComponent-81a50f81.js → SocialSearchComponent-962b1344.js} +5 -5
  52. package/dist/cjs/TaxonomyCard.js +2 -2
  53. package/dist/cjs/TemplateNormal.js +3 -3
  54. package/dist/cjs/ThumbnailCard.js +1 -1
  55. package/dist/cjs/Ustream.js +2 -2
  56. package/dist/cjs/VerticalHero.js +2 -2
  57. package/dist/cjs/VideoSeriesCard.js +3 -3
  58. package/dist/cjs/VideoSeriesListing.js +3 -3
  59. package/dist/cjs/View.js +43 -43
  60. package/dist/cjs/YahooHero.js +2 -2
  61. package/dist/cjs/YoutubeGroup.js +5 -5
  62. package/dist/cjs/getContentCategory-f38a4c00.js +11 -0
  63. package/dist/cjs/getRelatedArticle.js +5 -354
  64. package/dist/cjs/getSerializers.js +6 -6
  65. package/dist/cjs/{getTargeting-bf55f61b.js → getTargeting-fee8c429.js} +11 -11
  66. package/dist/cjs/getTargeting.js +1 -1
  67. package/dist/cjs/{index-099d45ae.js → index-2d0a4911.js} +4 -6
  68. package/dist/cjs/{index-3294d3bc.js → index-5be2866f.js} +1 -1
  69. package/dist/cjs/{index-6268b081.js → index-94418bc4.js} +462 -450
  70. package/dist/cjs/{index-be0c82be.js → index-b5eb3ff8.js} +20 -19
  71. package/dist/cjs/{index.es-9110add6.js → index.es-ab3f2690.js} +3 -1
  72. package/dist/cjs/index.js +17 -15
  73. package/dist/cjs/{main-a4cb15bb.js → main-b6c96c8d.js} +67 -36
  74. package/dist/cjs/{moment-575fe24c.js → moment-66a6a284.js} +1 -1
  75. package/dist/cjs/urlFor.js +1 -1
  76. package/dist/esm/AD.js +1 -1
  77. package/dist/esm/AD300x250.js +3 -3
  78. package/dist/esm/AD300x250x600.js +3 -3
  79. package/dist/esm/AD728x90.js +4 -4
  80. package/dist/esm/ADFloatingFooter.js +5 -5
  81. package/dist/esm/ADGutter.js +2 -2
  82. package/dist/esm/ADSkyscraper.js +2 -2
  83. package/dist/esm/ADSponsoredResources.js +2 -2
  84. package/dist/esm/ADWebcast.js +2 -2
  85. package/dist/esm/ADWelcome.js +2 -2
  86. package/dist/esm/AdSlot.js +2 -2
  87. package/dist/esm/AdSlotsProvider.js +1 -1
  88. package/dist/esm/ArticleSeriesListing.js +4 -4
  89. package/dist/esm/Auth.js +499 -248
  90. package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-a614acdf.js} +1 -1
  91. package/dist/esm/CMEDeck.js +5 -5
  92. package/dist/esm/Column3.js +4 -4
  93. package/dist/esm/ConferenceArticleCard.js +17 -17
  94. package/dist/esm/DeckContent.js +15 -15
  95. package/dist/esm/DeckQueue.js +6 -6
  96. package/dist/esm/{Dfp-741c01be.js → Dfp-8a8fca18.js} +1 -1
  97. package/dist/esm/EventsDeck.js +22 -22
  98. package/dist/esm/ExternalResources.js +7 -7
  99. package/dist/esm/Feature.js +3 -3
  100. package/dist/esm/ForbesHero.js +2 -2
  101. package/dist/esm/GridContent.js +18 -16
  102. package/dist/esm/GridHero.js +2 -2
  103. package/dist/esm/GroupDeck.js +1 -1
  104. package/dist/esm/HamMagazine.js +13 -13
  105. package/dist/esm/Hero.js +1 -1
  106. package/dist/esm/HorizontalHero.js +2 -2
  107. package/dist/esm/IssueContentDeck.js +2 -2
  108. package/dist/esm/IssueDeck.js +2 -2
  109. package/dist/esm/IssueLanding.js +39 -37
  110. package/dist/esm/KMTracker.js +15 -15
  111. package/dist/esm/LeftNav.js +2 -2
  112. package/dist/esm/MasterDeck.js +16 -16
  113. package/dist/esm/NavMagazine.js +14 -14
  114. package/dist/esm/NavNative.js +11 -11
  115. package/dist/esm/OncliveHero.js +2 -2
  116. package/dist/esm/OncliveLargeHero.js +2 -2
  117. package/dist/esm/PartnerDetailListing.js +14 -1209
  118. package/dist/esm/PublicationDeck.js +1 -1
  119. package/dist/esm/PublicationLanding.js +33 -33
  120. package/dist/esm/QueueDeckExpanded.js +22 -19
  121. package/dist/esm/RecentNews.js +2 -2
  122. package/dist/esm/RelatedContent.js +30 -30
  123. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  124. package/dist/esm/SideFooter.js +2 -2
  125. package/dist/esm/{SocialSearchComponent-55960ec4.js → SocialSearchComponent-75527dfe.js} +5 -5
  126. package/dist/esm/TaxonomyCard.js +2 -2
  127. package/dist/esm/TemplateNormal.js +3 -3
  128. package/dist/esm/ThumbnailCard.js +1 -1
  129. package/dist/esm/Ustream.js +2 -2
  130. package/dist/esm/VerticalHero.js +2 -2
  131. package/dist/esm/VideoSeriesCard.js +3 -3
  132. package/dist/esm/VideoSeriesListing.js +3 -3
  133. package/dist/esm/View.js +17 -17
  134. package/dist/esm/YahooHero.js +2 -2
  135. package/dist/esm/YoutubeGroup.js +5 -5
  136. package/dist/esm/getContentCategory-15dcc413.js +9 -0
  137. package/dist/esm/getRelatedArticle.js +5 -354
  138. package/dist/esm/getSerializers.js +6 -6
  139. package/dist/esm/{getTargeting-d965e979.js → getTargeting-2acdec91.js} +9 -9
  140. package/dist/esm/getTargeting.js +1 -1
  141. package/dist/esm/{index-73819142.js → index-51a80699.js} +20 -19
  142. package/dist/esm/{index-3f4dd6f2.js → index-93ec3c59.js} +4 -6
  143. package/dist/esm/{index-ef6d5dcf.js → index-d2f90501.js} +1 -1
  144. package/dist/esm/{index-d40ad8fd.js → index-d493a594.js} +462 -450
  145. package/dist/esm/{index.es-29c1cef5.js → index.es-938a3a58.js} +3 -1
  146. package/dist/esm/index.js +16 -14
  147. package/dist/esm/{main-5d1e4bd3.js → main-0465b2a0.js} +65 -34
  148. package/dist/esm/{moment-e2f9b20c.js → moment-12415288.js} +1 -1
  149. package/dist/esm/urlFor.js +1 -1
  150. package/package.json +107 -107
  151. package/dist/cjs/index-bd6c9f56.js +0 -211
  152. package/dist/esm/index-db3bb315.js +0 -207
  153. /package/dist/cjs/{ADInfeed-f886da72.js → ADInfeed-eaa6c661.js} +0 -0
  154. /package/dist/cjs/{ADlgInfeed-7aa459cc.js → ADlgInfeed-f25eb4f7.js} +0 -0
  155. /package/dist/esm/{ADInfeed-67097b02.js → ADInfeed-c27997a3.js} +0 -0
  156. /package/dist/esm/{ADlgInfeed-0bd34fef.js → ADlgInfeed-41c3909c.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import React__default from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { n as node } from './index-73819142.js';
3
+ import { n as node } from './index-51a80699.js';
4
4
 
5
5
  /*
6
6
  object-assign
@@ -9,16 +9,16 @@ import './_object-pie-71ac75a4.js';
9
9
  import { _ as _extends } from './extends-cc5da797.js';
10
10
  import './web.dom.iterable-8956f9a5.js';
11
11
  import React__default, { useState, useRef, useEffect } from 'react';
12
- import { l as lib_3 } from './index-3f4dd6f2.js';
12
+ import { l as lib_3 } from './index-93ec3c59.js';
13
13
  import 'prop-types';
14
- import './moment-e2f9b20c.js';
14
+ import './moment-12415288.js';
15
15
  import { useRouter } from 'next/router';
16
16
  import './isSymbol-807e927e.js';
17
17
  import { d as debounce_1 } from './debounce-1a993acf.js';
18
- import { I as InfiniteScroll } from './index.es-29c1cef5.js';
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';
21
- import { m as main_36 } from './main-5d1e4bd3.js';
21
+ import { m as main_39 } from './main-0465b2a0.js';
22
22
  import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
23
23
  import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7c654f36.js';
24
24
  import './_set-species-cede29f8.js';
@@ -294,7 +294,7 @@ var CMEDeck = function CMEDeck(_ref) {
294
294
  )
295
295
  )
296
296
  ),
297
- main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
297
+ main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
298
298
  'div',
299
299
  { style: { margin: '0 auto' } },
300
300
  renderMobileAd(index, numberOfItemsBeforeAd)
@@ -7,13 +7,13 @@ import './core.get-iterator-method-54d2e411.js';
7
7
  import './define-property-de3fc946.js';
8
8
  import './web.dom.iterable-8956f9a5.js';
9
9
  import React__default, { useRef, useEffect } from 'react';
10
- import './index-3f4dd6f2.js';
10
+ 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
14
  import './isSymbol-807e927e.js';
15
15
  import './debounce-1a993acf.js';
16
- import { m as main_36 } from './main-5d1e4bd3.js';
16
+ import { m as main_39 } from './main-0465b2a0.js';
17
17
  import './stringify-008c8802.js';
18
18
  import './slicedToArray-7021e5df.js';
19
19
  import './asyncToGenerator-7c654f36.js';
@@ -47,7 +47,7 @@ var Column3 = function Column3(props) {
47
47
  var adRef = useRef(null);
48
48
 
49
49
  useEffect(function () {
50
- if (!main_36 && window.innerWidth >= 768) {
50
+ if (!main_39 && window.innerWidth >= 768) {
51
51
  var navbar = document.querySelector('.navbar');
52
52
  var AdOffsetTop = adRef.current.getBoundingClientRect().top;
53
53
  window.addEventListener('scroll', function () {
@@ -107,7 +107,7 @@ var Column3 = function Column3(props) {
107
107
  { jsx: 'true' },
108
108
  '\n .filter-box {\n float: right;\n padding-top: 6px;\n padding-right: 18px;\n }\n @media only screen and (min-width: 768px) {\n .title-wrap {\n display: flex;\n justify-content: space-between;\n }\n }\n @media only screen and (max-width: 767px) {\n /* .filter-box {\n float: right;\n display: flex;\n justify-content: flex-end;\n } */\n .title-wrap {\n display: flex;\n flex-direction: column;\n margin-bottom: 10px;\n }\n }\n '
109
109
  ),
110
- (!main_36 || showRightAd) && React__default.createElement(
110
+ (!main_39 || showRightAd) && React__default.createElement(
111
111
  Col,
112
112
  { xs: 12, className: 'rightCol' },
113
113
  website && website.conferenceBannerContent && React__default.createElement(ConferenceBanner, { website: website }),
@@ -1,23 +1,23 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
2
  import React__default from 'react';
3
- import { m as moment } from './moment-e2f9b20c.js';
4
- import { i as imageUrlBuilder } from './index-73819142.js';
3
+ import { m as moment } from './moment-12415288.js';
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)
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
21
  */
22
22
 
23
23
  var ConferenceArticleCard = function ConferenceArticleCard(props) {
@@ -14,22 +14,22 @@ import './web.dom.iterable-8956f9a5.js';
14
14
  import './typeof-08f2c380.js';
15
15
  import './_is-array-49698029.js';
16
16
  import React__default from 'react';
17
- import { l as lib_3 } from './index-3f4dd6f2.js';
17
+ import { l as lib_3 } from './index-93ec3c59.js';
18
18
  import 'prop-types';
19
19
  import Container from 'react-bootstrap/Container';
20
20
  import Row from 'react-bootstrap/Row';
21
21
  import Col from 'react-bootstrap/Col';
22
22
  import Card from 'react-bootstrap/Card';
23
- import { m as moment } from './moment-e2f9b20c.js';
23
+ import { m as moment } from './moment-12415288.js';
24
24
  import { withRouter } from 'next/router';
25
25
  import './isSymbol-807e927e.js';
26
26
  import { d as debounce_1 } from './debounce-1a993acf.js';
27
- import { I as InfiniteScroll } from './index.es-29c1cef5.js';
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';
30
- import { i as imageUrlBuilder } from './index-73819142.js';
30
+ import { i as imageUrlBuilder } from './index-51a80699.js';
31
31
  import { L as LazyLoad } from './index-5f9f807a.js';
32
- import { m as main_36 } from './main-5d1e4bd3.js';
32
+ import { m as main_39 } from './main-0465b2a0.js';
33
33
  import { c as clean_html_1 } from './entities-7cc3bf45.js';
34
34
  import './stringify-008c8802.js';
35
35
  import './slicedToArray-7021e5df.js';
@@ -37,7 +37,7 @@ import './asyncToGenerator-7c654f36.js';
37
37
  import './_set-species-cede29f8.js';
38
38
  import './beam-681a9749.js';
39
39
  import './AdSlot.js';
40
- import { A as ADInfeed } from './ADInfeed-67097b02.js';
40
+ import { A as ADInfeed } from './ADInfeed-c27997a3.js';
41
41
 
42
42
  var DeckContent = function (_React$Component) {
43
43
  _inherits(DeckContent, _React$Component);
@@ -178,14 +178,14 @@ var DeckContent = function (_React$Component) {
178
178
  var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
179
179
 
180
180
  // please leave this for later debug purpose : Yong Jun.
181
- /* console.log('page change reported', {
182
- currentPage: currentPage,
183
- pageNumber: pageNumber,
184
- pathname: pathname,
185
- path: path,
186
- newPath: newPath,
187
- firstPage: pageNumber === 1,
188
- queryString: queryString
181
+ /* console.log('page change reported', {
182
+ currentPage: currentPage,
183
+ pageNumber: pageNumber,
184
+ pathname: pathname,
185
+ path: path,
186
+ newPath: newPath,
187
+ firstPage: pageNumber === 1,
188
+ queryString: queryString
189
189
  }) */
190
190
 
191
191
  if (pageview) {
@@ -348,7 +348,7 @@ var DeckContent = function (_React$Component) {
348
348
  )
349
349
  )
350
350
  ),
351
- main_36 && _this.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this.renderMobileAd(index, numberOfItemsBeforeAd)
351
+ main_39 && _this.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this.renderMobileAd(index, numberOfItemsBeforeAd)
352
352
  );
353
353
  }
354
354
  })
@@ -14,22 +14,22 @@ import './web.dom.iterable-8956f9a5.js';
14
14
  import './typeof-08f2c380.js';
15
15
  import './_is-array-49698029.js';
16
16
  import React__default from 'react';
17
- import { l as lib_3 } from './index-3f4dd6f2.js';
17
+ import { l as lib_3 } from './index-93ec3c59.js';
18
18
  import 'prop-types';
19
19
  import Container from 'react-bootstrap/Container';
20
20
  import Row from 'react-bootstrap/Row';
21
21
  import Col from 'react-bootstrap/Col';
22
22
  import Card from 'react-bootstrap/Card';
23
- import { m as moment } from './moment-e2f9b20c.js';
23
+ import { m as moment } from './moment-12415288.js';
24
24
  import { withRouter } from 'next/router';
25
25
  import './isSymbol-807e927e.js';
26
26
  import { d as debounce_1 } from './debounce-1a993acf.js';
27
- import { I as InfiniteScroll } from './index.es-29c1cef5.js';
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';
30
- import { i as imageUrlBuilder } from './index-73819142.js';
30
+ import { i as imageUrlBuilder } from './index-51a80699.js';
31
31
  import { L as LazyLoad } from './index-5f9f807a.js';
32
- import { m as main_36 } from './main-5d1e4bd3.js';
32
+ import { m as main_39 } from './main-0465b2a0.js';
33
33
  import { c as clean_html_1 } from './entities-7cc3bf45.js';
34
34
  import { g as get_1 } from './get-5ee14cda.js';
35
35
 
@@ -300,7 +300,7 @@ var DeckQueue = function (_React$Component) {
300
300
  )
301
301
  )
302
302
  ),
303
- main_36 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
303
+ main_39 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
304
304
  );
305
305
  })
306
306
  );
@@ -4,7 +4,7 @@ import './es6.string.iterator-9b2af4a5.js';
4
4
  import './core.get-iterator-method-54d2e411.js';
5
5
  import './web.dom.iterable-8956f9a5.js';
6
6
  import React__default, { useState } from 'react';
7
- import { b as lib_1, a as lib_2 } from './index-3f4dd6f2.js';
7
+ import { b as lib_1, a as lib_2 } from './index-93ec3c59.js';
8
8
  import PropTypes from 'prop-types';
9
9
  import './isSymbol-807e927e.js';
10
10
  import { d as debounce_1 } from './debounce-1a993acf.js';
@@ -13,17 +13,17 @@ import Container from 'react-bootstrap/Container';
13
13
  import Row from 'react-bootstrap/Row';
14
14
  import Col from 'react-bootstrap/Col';
15
15
  import Card from 'react-bootstrap/Card';
16
- import './moment-e2f9b20c.js';
16
+ import './moment-12415288.js';
17
17
  import { useRouter } from 'next/router';
18
- import { I as InfiniteScroll } from './index.es-29c1cef5.js';
19
- import { m as main_36 } from './main-5d1e4bd3.js';
18
+ import { I as InfiniteScroll } from './index.es-938a3a58.js';
19
+ import { m as main_39 } from './main-0465b2a0.js';
20
20
  import { _ as _JSON$stringify } from './stringify-008c8802.js';
21
21
  import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-7021e5df.js';
22
22
  import Button from 'react-bootstrap/Button';
23
23
  import { _ as _defineProperty } from './defineProperty-b798470d.js';
24
24
  import Spinner from 'react-bootstrap/Spinner';
25
25
  import Form from 'react-bootstrap/Form';
26
- import { m as momentTimezone } from './index-ef6d5dcf.js';
26
+ import { m as momentTimezone } from './index-d2f90501.js';
27
27
  import { j as js_cookie } from './js.cookie-6874175c.js';
28
28
 
29
29
  var isEnum = _objectPie.f;
@@ -255,23 +255,23 @@ var EventsDeck = function EventsDeck(_ref) {
255
255
  if (cventAccessToken && cventAccessToken !== 'undefined') {
256
256
  setAccessToken(cventAccessToken);
257
257
  } else {
258
- /*const encodedData = window.btoa(clientId + ':' + clientSecret)
259
- //const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
260
- const url = `https://api-platform.cvent.com/ea/oauth2/token`
261
- fetch(url, {
262
- headers: {
263
- 'Content-Type': 'application/x-www-form-urlencoded',
264
- Authorization: `Basic ${encodedData}`
265
- },
266
- method: 'POST',
267
- body: `grant_type=client_credentials&client_id=${clientId}`
268
- })
269
- .then((response) => response.json())
270
- .then((json) => {
271
- const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
272
- Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
273
- setAccessToken(json.access_token)
274
- })
258
+ /*const encodedData = window.btoa(clientId + ':' + clientSecret)
259
+ //const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
260
+ const url = `https://api-platform.cvent.com/ea/oauth2/token`
261
+ fetch(url, {
262
+ headers: {
263
+ 'Content-Type': 'application/x-www-form-urlencoded',
264
+ Authorization: `Basic ${encodedData}`
265
+ },
266
+ method: 'POST',
267
+ body: `grant_type=client_credentials&client_id=${clientId}`
268
+ })
269
+ .then((response) => response.json())
270
+ .then((json) => {
271
+ const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
272
+ Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
273
+ setAccessToken(json.access_token)
274
+ })
275
275
  .catch((e) => console.log(e))*/
276
276
  // hello
277
277
  var url = 'https://beam.mjhlifesciences.com/api/cvent/token';
@@ -731,7 +731,7 @@ var EventsDeck = function EventsDeck(_ref) {
731
731
  )
732
732
  )
733
733
  ),
734
- main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
734
+ main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
735
735
  'div',
736
736
  { style: { margin: '0 auto' } },
737
737
  renderMobileAd(index, numberOfItemsBeforeAd)
@@ -14,18 +14,18 @@ import './web.dom.iterable-8956f9a5.js';
14
14
  import './typeof-08f2c380.js';
15
15
  import './_is-array-49698029.js';
16
16
  import React__default, { useState, useEffect } from 'react';
17
- import './index-3f4dd6f2.js';
17
+ import './index-93ec3c59.js';
18
18
  import 'prop-types';
19
19
  import 'react-bootstrap/Row';
20
20
  import 'react-bootstrap/Col';
21
- import './moment-e2f9b20c.js';
21
+ import './moment-12415288.js';
22
22
  import { useRouter } from 'next/router';
23
23
  import './isSymbol-807e927e.js';
24
24
  import './debounce-1a993acf.js';
25
25
  import 'react-dom';
26
- import './index-73819142.js';
26
+ import './index-51a80699.js';
27
27
  import './index-5f9f807a.js';
28
- import './main-5d1e4bd3.js';
28
+ import './main-0465b2a0.js';
29
29
  import './entities-7cc3bf45.js';
30
30
  import './stringify-008c8802.js';
31
31
  import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
@@ -33,13 +33,13 @@ import './asyncToGenerator-7c654f36.js';
33
33
  import './_set-species-cede29f8.js';
34
34
  import './beam-681a9749.js';
35
35
  import './AdSlot.js';
36
- import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
36
+ import { B as BlockContent } from './BlockContent-a614acdf.js';
37
37
  import './smoothscroll-4b699764.js';
38
38
  import './GroupDeck.js';
39
39
  import 'react-bootstrap';
40
40
  import Button from 'react-bootstrap/Button';
41
- import { m as momentTimezone } from './index-ef6d5dcf.js';
42
- import { g as getSerializers } from './index-d40ad8fd.js';
41
+ import { m as momentTimezone } from './index-d2f90501.js';
42
+ import { g as getSerializers } from './index-d493a594.js';
43
43
  import './util-7700fc59.js';
44
44
  import './brightcove-react-player-loader.es-83f53e4e.js';
45
45
  import 'react-bootstrap/Pagination';
@@ -1,7 +1,7 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
2
  import React__default from 'react';
3
- import { i as imageUrlBuilder } from './index-73819142.js';
4
- import { m as main_36 } from './main-5d1e4bd3.js';
3
+ import { i as imageUrlBuilder } from './index-51a80699.js';
4
+ import { m as main_39 } from './main-0465b2a0.js';
5
5
  import Carousel from 'react-bootstrap/Carousel';
6
6
 
7
7
  //Feature query to be used
@@ -34,7 +34,7 @@ var Feature = function Feature(props) {
34
34
  };
35
35
  //image width updated.
36
36
  var imageWidth = 450;
37
- if (main_36) {
37
+ if (main_39) {
38
38
  imageWidth = 225;
39
39
  }
40
40
 
@@ -5,9 +5,9 @@ import './core.get-iterator-method-54d2e411.js';
5
5
  import './web.dom.iterable-8956f9a5.js';
6
6
  import React__default from 'react';
7
7
  import 'prop-types';
8
- import { m as moment } from './moment-e2f9b20c.js';
8
+ import { m as moment } from './moment-12415288.js';
9
9
  import 'react-dom';
10
- import { i as imageUrlBuilder } from './index-73819142.js';
10
+ import { i as imageUrlBuilder } from './index-51a80699.js';
11
11
  import { L as LazyLoad } from './index-5f9f807a.js';
12
12
  import './slicedToArray-7021e5df.js';
13
13
  import { A as AuthorComponent } from './AuthorComponent-00f13201.js';
@@ -14,22 +14,22 @@ import './web.dom.iterable-8956f9a5.js';
14
14
  import './typeof-08f2c380.js';
15
15
  import './_is-array-49698029.js';
16
16
  import React__default from 'react';
17
- import { l as lib_3 } from './index-3f4dd6f2.js';
17
+ import { l as lib_3 } from './index-93ec3c59.js';
18
18
  import 'prop-types';
19
19
  import Container from 'react-bootstrap/Container';
20
20
  import Row from 'react-bootstrap/Row';
21
21
  import Col from 'react-bootstrap/Col';
22
22
  import Card from 'react-bootstrap/Card';
23
- import { m as moment } from './moment-e2f9b20c.js';
23
+ import { m as moment } from './moment-12415288.js';
24
24
  import { withRouter } from 'next/router';
25
25
  import './isSymbol-807e927e.js';
26
26
  import { d as debounce_1 } from './debounce-1a993acf.js';
27
- import { I as InfiniteScroll } from './index.es-29c1cef5.js';
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';
30
- import { i as imageUrlBuilder } from './index-73819142.js';
30
+ import { i as imageUrlBuilder } from './index-51a80699.js';
31
31
  import { L as LazyLoad } from './index-5f9f807a.js';
32
- import { m as main_36 } from './main-5d1e4bd3.js';
32
+ import { m as main_39 } from './main-0465b2a0.js';
33
33
  import { c as clean_html_1 } from './entities-7cc3bf45.js';
34
34
  import './stringify-008c8802.js';
35
35
  import './slicedToArray-7021e5df.js';
@@ -37,9 +37,10 @@ import './asyncToGenerator-7c654f36.js';
37
37
  import './_set-species-cede29f8.js';
38
38
  import './beam-681a9749.js';
39
39
  import './AdSlot.js';
40
- import { A as ADInfeed } from './ADInfeed-67097b02.js';
40
+ import { A as ADInfeed } from './ADInfeed-c27997a3.js';
41
41
  import { l as lodash } from './lodash-17fdfebb.js';
42
- import { A as ADlgInfeed } from './ADlgInfeed-0bd34fef.js';
42
+ import { A as ADlgInfeed } from './ADlgInfeed-41c3909c.js';
43
+ import { g as getContentCategory } from './getContentCategory-15dcc413.js';
43
44
  import { g as get_1 } from './get-5ee14cda.js';
44
45
  import './AD.js';
45
46
  import { A as AuthorComponent } from './AuthorComponent-00f13201.js';
@@ -69,7 +70,8 @@ var GridContent = function (_React$Component) {
69
70
  query: _this.query,
70
71
  currentPage: _this.props.currentPage || 1,
71
72
  lgInfeedAd: _this.props.lgInfeedAd ? _this.props.lgInfeedAd : false,
72
- showCategory: _this.props.showCategory ? _this.props.showCategory : false
73
+ showCategory: _this.props.showCategory ? _this.props.showCategory : false,
74
+ contentCategoryMapping: _this.props.contentCategoryMapping ? contentCategoryMapping : []
73
75
  }, _this.loadMore = debounce_1(function () {
74
76
  _this.setState(function (state) {
75
77
  var page = state.page,
@@ -254,7 +256,7 @@ var GridContent = function (_React$Component) {
254
256
 
255
257
  _createClass(GridContent, [{
256
258
  key: 'cardLoader',
257
- value: function cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, lgInfeedAd) {
259
+ value: function cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, lgInfeedAd, contentCategoryMapping) {
258
260
  var _this2 = this;
259
261
 
260
262
  var lgVar = Math.floor(12 / columns);
@@ -329,7 +331,7 @@ var GridContent = function (_React$Component) {
329
331
  padding: '0 .25rem',
330
332
  fontSize: '.8rem'
331
333
  } },
332
- row.contentCategory.name.slice(0, row.contentCategory.name.length - 1)
334
+ getContentCategory(row.contentCategory.name, contentCategoryMapping)
333
335
  )
334
336
  ),
335
337
  React__default.createElement(
@@ -524,7 +526,7 @@ var GridContent = function (_React$Component) {
524
526
  )
525
527
  ),
526
528
  showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React__default.createElement(VideoPlayer, null),
527
- main_36 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
529
+ main_39 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
528
530
  );
529
531
  } else {
530
532
  return React__default.createElement(
@@ -588,7 +590,7 @@ var GridContent = function (_React$Component) {
588
590
  )
589
591
  ),
590
592
  showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React__default.createElement(VideoPlayer, null),
591
- main_36 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
593
+ main_39 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
592
594
  );
593
595
  }
594
596
  } else if (row._type === 'lg-infeed' && row.adUnit) {
@@ -663,7 +665,7 @@ var GridContent = function (_React$Component) {
663
665
  padding: '0 .25rem',
664
666
  fontSize: '.8rem'
665
667
  } },
666
- row.contentCategory.name.slice(0, row.contentCategory.name.length - 1)
668
+ getContentCategory(row.contentCategory.name, contentCategoryMapping)
667
669
  )
668
670
  ),
669
671
  React__default.createElement(
@@ -676,7 +678,7 @@ var GridContent = function (_React$Component) {
676
678
  )
677
679
  ),
678
680
  showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React__default.createElement(VideoPlayer, null),
679
- main_36 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
681
+ main_39 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
680
682
  );
681
683
  } else return null;
682
684
  }) : React__default.createElement(
@@ -719,7 +721,7 @@ var GridContent = function (_React$Component) {
719
721
  React__default.createElement(
720
722
  Container,
721
723
  null,
722
- this.cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, this.state.lgInfeedAd)
724
+ this.cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, this.state.lgInfeedAd, this.state.contentCategoryMapping)
723
725
  )
724
726
  ) : React__default.createElement(
725
727
  React__default.Fragment,
@@ -727,7 +729,7 @@ var GridContent = function (_React$Component) {
727
729
  React__default.createElement(
728
730
  Container,
729
731
  null,
730
- this.cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, this.state.lgInfeedAd)
732
+ this.cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, this.state.lgInfeedAd, this.state.contentCategoryMapping)
731
733
  ),
732
734
  React__default.createElement(
733
735
  'div',
@@ -5,9 +5,9 @@ import './core.get-iterator-method-54d2e411.js';
5
5
  import './web.dom.iterable-8956f9a5.js';
6
6
  import React__default from 'react';
7
7
  import 'prop-types';
8
- import { m as moment } from './moment-e2f9b20c.js';
8
+ import { m as moment } from './moment-12415288.js';
9
9
  import 'react-dom';
10
- import { i as imageUrlBuilder } from './index-73819142.js';
10
+ import { i as imageUrlBuilder } from './index-51a80699.js';
11
11
  import { L as LazyLoad } from './index-5f9f807a.js';
12
12
  import { c as clean_html_1 } from './entities-7cc3bf45.js';
13
13
  import './slicedToArray-7021e5df.js';
@@ -8,7 +8,7 @@ import './web.dom.iterable-8956f9a5.js';
8
8
  import { _ as _typeof } from './typeof-08f2c380.js';
9
9
  import './_is-array-49698029.js';
10
10
  import React__default, { useRef, useState, useEffect } from 'react';
11
- import { i as imageUrlBuilder } from './index-73819142.js';
11
+ import { i as imageUrlBuilder } from './index-51a80699.js';
12
12
  import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
13
13
  import { s as smoothscroll, g as getYoutubeId } from './smoothscroll-4b699764.js';
14
14
 
@@ -8,7 +8,7 @@ import './web.dom.iterable-8956f9a5.js';
8
8
  import React__default, { useRef, useState, useEffect } from 'react';
9
9
  import 'prop-types';
10
10
  import Container from 'react-bootstrap/Container';
11
- import { m as main_36, a as main_37 } from './main-5d1e4bd3.js';
11
+ import { m as main_39, a as main_40 } from './main-0465b2a0.js';
12
12
  import './stringify-008c8802.js';
13
13
  import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
14
14
  import './asyncToGenerator-7c654f36.js';
@@ -27,18 +27,18 @@ import { N as NavFooter } from './NavFooter-e27bd93b.js';
27
27
  import { S as SocialNavFooter } from './index.esm-73e847d2.js';
28
28
  import './SocialIcons.js';
29
29
  import 'react-bootstrap/FormControl';
30
- import { S as SocialSearchComponent } from './SocialSearchComponent-55960ec4.js';
30
+ import { S as SocialSearchComponent } from './SocialSearchComponent-75527dfe.js';
31
31
 
32
32
  var HamMagazine = function HamMagazine(props) {
33
- /*
34
- Example Nav with acceptable props
35
- <MagazineNav
36
- showLogin
37
- logo={props.settings.logo}
38
- dataObject={props.cache.mainNavCache}
39
- website={website}
40
- subNav={props.cache.subNavCache}
41
- />
33
+ /*
34
+ Example Nav with acceptable props
35
+ <MagazineNav
36
+ showLogin
37
+ logo={props.settings.logo}
38
+ dataObject={props.cache.mainNavCache}
39
+ website={website}
40
+ subNav={props.cache.subNavCache}
41
+ />
42
42
  */
43
43
 
44
44
  // Setting 'socialIconVariant' as 'light' as default to make the social icons and search icon black
@@ -197,7 +197,7 @@ var HamMagazine = function HamMagazine(props) {
197
197
 
198
198
  return React__default.createElement(
199
199
  'header',
200
- { className: !main_36 && isOpen ? 'nav-open' : 'nav-close', style: { zIndex: '999999' } },
200
+ { className: !main_39 && isOpen ? 'nav-open' : 'nav-close', style: { zIndex: '999999' } },
201
201
  React__default.createElement(
202
202
  Navbar,
203
203
  { expand: 'md', ref: topNavRef },
@@ -324,7 +324,7 @@ var HamMagazine = function HamMagazine(props) {
324
324
  'aria-controls': 'basic-navbar-nav',
325
325
  onClick: function onClick() {
326
326
  // Set overflow fix for iPhones safari browsers
327
- if (main_37) {
327
+ if (main_40) {
328
328
  var mainNav = document.querySelector('#navbar-ham');
329
329
  if (mainNav && mainNav.style) mainNav.style.overflow = 'auto';
330
330
  }
package/dist/esm/Hero.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
2
  import React__default from 'react';
3
- import { i as imageUrlBuilder } from './index-73819142.js';
3
+ import { i as imageUrlBuilder } from './index-51a80699.js';
4
4
  import { c as clean_html_1 } from './entities-7cc3bf45.js';
5
5
  import { Card } from 'react-bootstrap';
6
6
 
@@ -1,7 +1,7 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
2
  import React__default from 'react';
3
- import './moment-e2f9b20c.js';
4
- import { i as imageUrlBuilder } from './index-73819142.js';
3
+ import './moment-12415288.js';
4
+ import { i as imageUrlBuilder } from './index-51a80699.js';
5
5
  import './iconBase-602d52fe.js';
6
6
  import { a as FaLongArrowAltRight } from './index.esm-9a4c8813.js';
7
7
 
@@ -8,9 +8,9 @@ import 'prop-types';
8
8
  import Row from 'react-bootstrap/Row';
9
9
  import Col from 'react-bootstrap/Col';
10
10
  import Card from 'react-bootstrap/Card';
11
- import { m as moment } from './moment-e2f9b20c.js';
11
+ import { m as moment } from './moment-12415288.js';
12
12
  import 'react-dom';
13
- import { i as imageUrlBuilder } from './index-73819142.js';
13
+ import { i as imageUrlBuilder } from './index-51a80699.js';
14
14
  import { L as LazyLoad } from './index-5f9f807a.js';
15
15
  import './slicedToArray-7021e5df.js';
16
16
  import { A as AuthorComponent } from './AuthorComponent-00f13201.js';
@@ -12,9 +12,9 @@ import 'prop-types';
12
12
  import Row from 'react-bootstrap/Row';
13
13
  import Col from 'react-bootstrap/Col';
14
14
  import Card from 'react-bootstrap/Card';
15
- import { I as InfiniteScroll } from './index.es-29c1cef5.js';
15
+ import { I as InfiniteScroll } from './index.es-938a3a58.js';
16
16
  import 'react-dom';
17
- import { i as imageUrlBuilder } from './index-73819142.js';
17
+ import { i as imageUrlBuilder } from './index-51a80699.js';
18
18
  import { L as LazyLoad } from './index-5f9f807a.js';
19
19
  import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
20
20
  import Button from 'react-bootstrap/Button';