@mjhls/mjh-framework 1.0.819 → 1.0.821-url-pagination-v1

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 (184) hide show
  1. package/README.md +170 -170
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +4 -3
  4. package/dist/cjs/AD300x250x600.js +4 -3
  5. package/dist/cjs/AD728x90.js +5 -4
  6. package/dist/cjs/ADFloatingFooter.js +3 -2
  7. package/dist/cjs/ADGutter.js +3 -2
  8. package/dist/cjs/ADSkyscraper.js +3 -2
  9. package/dist/cjs/ADSponsoredResources.js +3 -2
  10. package/dist/cjs/ADWebcast.js +3 -2
  11. package/dist/cjs/ADWelcome.js +3 -2
  12. package/dist/cjs/AdSlot.js +3 -2
  13. package/dist/cjs/AdSlotsProvider.js +29 -6
  14. package/dist/cjs/AlgoliaSearch.js +14091 -17
  15. package/dist/cjs/ArticleCarousel.js +2 -1
  16. package/dist/cjs/ArticleProgramLandingPage.js +8 -6
  17. package/dist/cjs/ArticleSeriesLandingPage.js +7 -6
  18. package/dist/cjs/ArticleSeriesListing.js +6 -4
  19. package/dist/cjs/Auth.js +41 -6
  20. package/dist/cjs/AuthWrapper.js +228 -189
  21. package/dist/cjs/CMEDeck.js +5 -4
  22. package/dist/cjs/Column3.js +5 -4
  23. package/dist/cjs/ConferenceArticleCard.js +21 -26
  24. package/dist/cjs/DeckContent.js +23 -28
  25. package/dist/cjs/DeckQueue.js +14 -20
  26. package/dist/cjs/{Dfp-82f75e49.js → Dfp-391fd124.js} +2 -1
  27. package/dist/cjs/EventsDeck.js +21 -21
  28. package/dist/cjs/ExternalResources.js +8 -6
  29. package/dist/cjs/Feature.js +7 -11
  30. package/dist/cjs/ForbesHero.js +13 -15
  31. package/dist/cjs/GridContent.js +37 -36
  32. package/dist/cjs/GridHero.js +11 -20
  33. package/dist/cjs/GroupDeck.js +4 -8
  34. package/dist/cjs/HamMagazine.js +15 -15
  35. package/dist/cjs/Hero.js +3 -14
  36. package/dist/cjs/HighlightenVideo.js +1 -1
  37. package/dist/cjs/HorizontalArticleListing.js +7 -5
  38. package/dist/cjs/HorizontalHero.js +6 -7
  39. package/dist/cjs/IssueContentDeck.js +11 -28
  40. package/dist/cjs/IssueDeck.js +11 -13
  41. package/dist/cjs/IssueLanding.js +39 -37
  42. package/dist/cjs/KMTracker.js +15 -15
  43. package/dist/cjs/LeftNav.js +3 -2
  44. package/dist/cjs/MasterDeck.js +16 -15
  45. package/dist/cjs/MediaSeriesLanding.js +441 -574
  46. package/dist/cjs/NavMagazine.js +14 -14
  47. package/dist/cjs/NavNative.js +12 -12
  48. package/dist/cjs/OncliveHero.js +6 -7
  49. package/dist/cjs/OncliveLargeHero.js +22 -23
  50. package/dist/cjs/PartnerDetailListing.js +14 -17
  51. package/dist/cjs/PubSection.js +8 -6
  52. package/dist/cjs/PublicationDeck.js +10 -12
  53. package/dist/cjs/PublicationLanding.js +26 -29
  54. package/dist/cjs/QueueDeckExpanded.js +81 -79
  55. package/dist/cjs/RecentNews.js +1 -4
  56. package/dist/cjs/RelatedContent.js +36 -39
  57. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  58. package/dist/cjs/SeriesListingDeck.js +6 -4
  59. package/dist/cjs/{SeriesSlider-b79e7df9.js → SeriesSlider-b94509d5.js} +12 -17
  60. package/dist/cjs/SideFooter.js +2 -2
  61. package/dist/cjs/{SocialSearchComponent-560a666e.js → SocialSearchComponent-42b9d251.js} +3 -3
  62. package/dist/cjs/TaxonomyCard.js +11 -14
  63. package/dist/cjs/TaxonomyDescription.js +7 -5
  64. package/dist/cjs/TemplateNormal.js +4 -3
  65. package/dist/cjs/ThumbnailCard.js +6 -10
  66. package/dist/cjs/Ustream.js +2 -2
  67. package/dist/cjs/VerticalHero.js +4 -8
  68. package/dist/cjs/VideoProgramLandingPage.js +8 -6
  69. package/dist/cjs/VideoSeriesCard.js +10 -9
  70. package/dist/cjs/VideoSeriesLandingPage.js +8 -6
  71. package/dist/cjs/VideoSeriesListing.js +7 -5
  72. package/dist/cjs/View.js +24 -23
  73. package/dist/cjs/YahooHero.js +12 -14
  74. package/dist/cjs/YoutubeGroup.js +14 -18
  75. package/dist/cjs/{brightcove-react-player-loader.es-4ba0d3d5.js → brightcove-react-player-loader.es-5c98aec7.js} +4 -3
  76. package/dist/cjs/events-1b438fe7.js +469 -0
  77. package/dist/cjs/getRelatedArticle.js +62 -126
  78. package/dist/cjs/getSerializers.js +7 -5
  79. package/dist/cjs/{getTargeting-ea2ea5e7.js → getTargeting-15ad167c.js} +9 -9
  80. package/dist/cjs/getTargeting.js +1 -1
  81. package/dist/cjs/{index-e08f00ce.js → index-2cf30c83.js} +2 -467
  82. package/dist/cjs/{index-5be2866f.js → index-6367b7bf.js} +16 -17
  83. package/dist/cjs/index-e2e62963.js +89 -0
  84. package/dist/cjs/{index-35099a60.js → index-f671ac14.js} +59 -103
  85. package/dist/cjs/{index.es-13533f24.js → index.es-f3e47207.js} +20 -4
  86. package/dist/cjs/index.js +18 -31
  87. package/dist/cjs/{main-11ec04d2.js → main-7b5e57b0.js} +32 -28
  88. package/dist/cjs/{moment-66a6a284.js → moment-ca3bd9fb.js} +10 -8
  89. package/dist/cjs/timeDifferenceCalc.js +1 -1
  90. package/dist/cjs/urlFor.js +34 -2
  91. package/dist/esm/AD.js +1 -1
  92. package/dist/esm/AD300x250.js +4 -3
  93. package/dist/esm/AD300x250x600.js +4 -3
  94. package/dist/esm/AD728x90.js +5 -4
  95. package/dist/esm/ADFloatingFooter.js +3 -2
  96. package/dist/esm/ADGutter.js +3 -2
  97. package/dist/esm/ADSkyscraper.js +3 -2
  98. package/dist/esm/ADSponsoredResources.js +3 -2
  99. package/dist/esm/ADWebcast.js +3 -2
  100. package/dist/esm/ADWelcome.js +3 -2
  101. package/dist/esm/AdSlot.js +3 -2
  102. package/dist/esm/AdSlotsProvider.js +28 -6
  103. package/dist/esm/AlgoliaSearch.js +14093 -19
  104. package/dist/esm/ArticleCarousel.js +2 -1
  105. package/dist/esm/ArticleProgramLandingPage.js +8 -6
  106. package/dist/esm/ArticleSeriesLandingPage.js +7 -6
  107. package/dist/esm/ArticleSeriesListing.js +6 -4
  108. package/dist/esm/Auth.js +42 -7
  109. package/dist/esm/AuthWrapper.js +228 -189
  110. package/dist/esm/CMEDeck.js +5 -4
  111. package/dist/esm/Column3.js +5 -4
  112. package/dist/esm/ConferenceArticleCard.js +20 -25
  113. package/dist/esm/DeckContent.js +20 -25
  114. package/dist/esm/DeckQueue.js +11 -17
  115. package/dist/esm/{Dfp-cde02d85.js → Dfp-2f9796e1.js} +2 -1
  116. package/dist/esm/EventsDeck.js +21 -21
  117. package/dist/esm/ExternalResources.js +8 -6
  118. package/dist/esm/Feature.js +7 -11
  119. package/dist/esm/ForbesHero.js +7 -9
  120. package/dist/esm/GridContent.js +25 -24
  121. package/dist/esm/GridHero.js +5 -14
  122. package/dist/esm/GroupDeck.js +4 -8
  123. package/dist/esm/HamMagazine.js +15 -15
  124. package/dist/esm/Hero.js +3 -14
  125. package/dist/esm/HighlightenVideo.js +1 -1
  126. package/dist/esm/HorizontalArticleListing.js +7 -5
  127. package/dist/esm/HorizontalHero.js +6 -7
  128. package/dist/esm/IssueContentDeck.js +11 -28
  129. package/dist/esm/IssueDeck.js +11 -13
  130. package/dist/esm/IssueLanding.js +39 -37
  131. package/dist/esm/KMTracker.js +15 -15
  132. package/dist/esm/LeftNav.js +3 -2
  133. package/dist/esm/MasterDeck.js +16 -15
  134. package/dist/esm/MediaSeriesLanding.js +154 -287
  135. package/dist/esm/NavMagazine.js +14 -14
  136. package/dist/esm/NavNative.js +12 -12
  137. package/dist/esm/OncliveHero.js +6 -7
  138. package/dist/esm/OncliveLargeHero.js +9 -10
  139. package/dist/esm/PartnerDetailListing.js +14 -17
  140. package/dist/esm/PubSection.js +8 -6
  141. package/dist/esm/PublicationDeck.js +10 -12
  142. package/dist/esm/PublicationLanding.js +26 -29
  143. package/dist/esm/QueueDeckExpanded.js +39 -37
  144. package/dist/esm/RecentNews.js +1 -4
  145. package/dist/esm/RelatedContent.js +32 -35
  146. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  147. package/dist/esm/SeriesListingDeck.js +6 -4
  148. package/dist/esm/{SeriesSlider-1fa61a74.js → SeriesSlider-935e2b4e.js} +12 -17
  149. package/dist/esm/SideFooter.js +2 -2
  150. package/dist/esm/{SocialSearchComponent-82ac7d6d.js → SocialSearchComponent-94f6554c.js} +3 -3
  151. package/dist/esm/TaxonomyCard.js +8 -11
  152. package/dist/esm/TaxonomyDescription.js +7 -5
  153. package/dist/esm/TemplateNormal.js +4 -3
  154. package/dist/esm/ThumbnailCard.js +3 -7
  155. package/dist/esm/Ustream.js +2 -2
  156. package/dist/esm/VerticalHero.js +4 -8
  157. package/dist/esm/VideoProgramLandingPage.js +8 -6
  158. package/dist/esm/VideoSeriesCard.js +6 -5
  159. package/dist/esm/VideoSeriesLandingPage.js +8 -6
  160. package/dist/esm/VideoSeriesListing.js +7 -5
  161. package/dist/esm/View.js +24 -23
  162. package/dist/esm/YahooHero.js +7 -9
  163. package/dist/esm/YoutubeGroup.js +14 -18
  164. package/dist/esm/{brightcove-react-player-loader.es-e1c6b0f2.js → brightcove-react-player-loader.es-4abff0b1.js} +4 -3
  165. package/dist/esm/events-6c3a7a63.js +467 -0
  166. package/dist/esm/getRelatedArticle.js +62 -126
  167. package/dist/esm/getSerializers.js +7 -5
  168. package/dist/esm/{getTargeting-831bc794.js → getTargeting-82e86707.js} +9 -9
  169. package/dist/esm/getTargeting.js +1 -1
  170. package/dist/esm/{index-e887f3d1.js → index-7aec473d.js} +36 -80
  171. package/dist/esm/index-aaa2dae0.js +85 -0
  172. package/dist/esm/{index-d2f90501.js → index-c00b0bbb.js} +16 -17
  173. package/dist/esm/{index-acfb8079.js → index-f7fb1e25.js} +1 -466
  174. package/dist/esm/{index.es-7dda2f0a.js → index.es-c6222053.js} +20 -4
  175. package/dist/esm/index.js +18 -30
  176. package/dist/esm/{main-aef58dbc.js → main-747e7d25.js} +32 -28
  177. package/dist/esm/{moment-12415288.js → moment-b6f49411.js} +10 -8
  178. package/dist/esm/timeDifferenceCalc.js +1 -1
  179. package/dist/esm/urlFor.js +34 -2
  180. package/package.json +110 -110
  181. /package/dist/cjs/{ADInfeed-98f6bd26.js → ADInfeed-0158bee3.js} +0 -0
  182. /package/dist/cjs/{ADlgInfeed-6055cb1b.js → ADlgInfeed-3583144f.js} +0 -0
  183. /package/dist/esm/{ADInfeed-ba59666b.js → ADInfeed-427022e9.js} +0 -0
  184. /package/dist/esm/{ADlgInfeed-995322a1.js → ADlgInfeed-28d3f944.js} +0 -0
@@ -8,7 +8,7 @@ import './web.dom.iterable-4439f05a.js';
8
8
  import React, { useRef, useState, useEffect } from 'react';
9
9
  import 'prop-types';
10
10
  import Container from 'react-bootstrap/Container';
11
- import { m as main_39, c as main_40 } from './main-aef58dbc.js';
11
+ import { m as main_40, c as main_41 } from './main-747e7d25.js';
12
12
  import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
13
13
  import './asyncToGenerator-fc1c2e29.js';
14
14
  import Segment from './Segment.js';
@@ -25,18 +25,18 @@ import { N as NavFooter } from './NavFooter-c29526b7.js';
25
25
  import { S as SocialNavFooter } from './index.esm-8ee5ff72.js';
26
26
  import './SocialIcons.js';
27
27
  import 'react-bootstrap/FormControl';
28
- import { S as SocialSearchComponent } from './SocialSearchComponent-82ac7d6d.js';
28
+ import { S as SocialSearchComponent } from './SocialSearchComponent-94f6554c.js';
29
29
 
30
30
  var HamMagazine = function HamMagazine(props) {
31
- /*
32
- Example Nav with acceptable props
33
- <MagazineNav
34
- showLogin
35
- logo={props.settings.logo}
36
- dataObject={props.cache.mainNavCache}
37
- website={website}
38
- subNav={props.cache.subNavCache}
39
- />
31
+ /*
32
+ Example Nav with acceptable props
33
+ <MagazineNav
34
+ showLogin
35
+ logo={props.settings.logo}
36
+ dataObject={props.cache.mainNavCache}
37
+ website={website}
38
+ subNav={props.cache.subNavCache}
39
+ />
40
40
  */
41
41
 
42
42
  // Setting 'socialIconVariant' as 'light' as default to make the social icons and search icon black
@@ -187,7 +187,7 @@ var HamMagazine = function HamMagazine(props) {
187
187
  }
188
188
  }
189
189
 
190
- if (props.initiallyCollapsed && !main_39) {
190
+ if (props.initiallyCollapsed && !main_40) {
191
191
  navRef.current.style.position = 'fixed';
192
192
  setIsSticky(true);
193
193
  navLinks.style.margin = 'auto';
@@ -217,7 +217,7 @@ var HamMagazine = function HamMagazine(props) {
217
217
 
218
218
  return React.createElement(
219
219
  'header',
220
- { className: !main_39 && isOpen ? 'nav-open' : 'nav-close', style: { zIndex: '999999' } },
220
+ { className: !main_40 && isOpen ? 'nav-open' : 'nav-close', style: { zIndex: '999999' } },
221
221
  React.createElement(
222
222
  Navbar,
223
223
  { expand: 'md', ref: topNavRef },
@@ -344,7 +344,7 @@ var HamMagazine = function HamMagazine(props) {
344
344
  'aria-controls': 'basic-navbar-nav',
345
345
  onClick: function onClick() {
346
346
  // Set overflow fix for iPhones safari browsers
347
- if (main_40) {
347
+ if (main_41) {
348
348
  var mainNav = document.querySelector('#navbar-ham');
349
349
  if (mainNav && mainNav.style) mainNav.style.overflow = 'auto';
350
350
  }
@@ -573,7 +573,7 @@ var HamMagazine = function HamMagazine(props) {
573
573
  '\n .navbar .collapse {\n display: block;\n }\n '
574
574
  )
575
575
  ),
576
- main_39 && !main_40 && React.createElement(
576
+ main_40 && !main_41 && React.createElement(
577
577
  'style',
578
578
  { jsx: 'true' },
579
579
  '\n #navbar-ham {\n overflow: hidden;\n overflow-y: scroll;\n margin-bottom: 5rem;\n }\n '
package/dist/esm/Hero.js CHANGED
@@ -1,21 +1,10 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
2
  import React from 'react';
3
- import { i as imageUrlBuilder } from './index-51a80699.js';
3
+ import './index-51a80699.js';
4
+ import urlFor from './urlFor.js';
4
5
  import { c as clean_html_1 } from './entities-7cc3bf45.js';
5
6
  import { Card } from 'react-bootstrap';
6
7
 
7
- var urlFor = function urlFor(source, client) {
8
- var builder = imageUrlBuilder(client);
9
- return builder.image(source).auto('format');
10
- };
11
-
12
- var renderCardImage = function renderCardImage(thumbnail, client, imageHeight, imageWidth) {
13
- var url = urlFor(thumbnail, client);
14
- if (imageHeight) url = url.height(imageHeight);
15
- if (imageWidth) url = url.width(imageWidth);
16
- return url.url();
17
- };
18
-
19
8
  var Hero = function Hero(_ref) {
20
9
  var data = _ref.data,
21
10
  client = _ref.client,
@@ -37,7 +26,7 @@ var Hero = function Hero(_ref) {
37
26
  { className: 'h4' },
38
27
  title
39
28
  ),
40
- thumbnail && client && React.createElement(Card.Img, { src: renderCardImage(thumbnail, client, imageHeight, imageWidth) }),
29
+ thumbnail && client && React.createElement(Card.Img, { src: urlFor({ source: thumbnail, client: client, imageHeight: imageHeight, imageWidth: imageWidth }), alt: title }),
41
30
  summary && React.createElement(
42
31
  Card.Footer,
43
32
  { className: 'h6' },
@@ -1,6 +1,6 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
2
  import React from 'react';
3
- import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-e1c6b0f2.js';
3
+ import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-4abff0b1.js';
4
4
 
5
5
  var HighlightenVideo = function HighlightenVideo(_ref) {
6
6
  var highlightVideoOptions = _ref.highlightVideoOptions;
@@ -14,19 +14,21 @@ import './web.dom.iterable-4439f05a.js';
14
14
  import './typeof-af9c50d8.js';
15
15
  import './_is-array-58e95429.js';
16
16
  import React from 'react';
17
- import './index-acfb8079.js';
17
+ import './events-6c3a7a63.js';
18
+ import './index-f7fb1e25.js';
18
19
  import 'prop-types';
19
20
  import 'react-bootstrap/Row';
20
21
  import 'react-bootstrap/Col';
21
- import './moment-12415288.js';
22
+ import './moment-b6f49411.js';
22
23
  import 'next/router';
23
24
  import './isSymbol-1981418f.js';
24
25
  import './debounce-9207d8ee.js';
25
26
  import './toNumber-2f7a84cd.js';
26
27
  import 'react-dom';
27
28
  import './index-51a80699.js';
29
+ import './urlFor.js';
28
30
  import './index-6c12bdd5.js';
29
- import './main-aef58dbc.js';
31
+ import './main-747e7d25.js';
30
32
  import './entities-7cc3bf45.js';
31
33
  import './slicedToArray-641f241f.js';
32
34
  import './stringify-4330ccdc.js';
@@ -43,9 +45,9 @@ import 'react-bootstrap';
43
45
  import './iconBase-602d52fe.js';
44
46
  import { I as IoIosArrowForward } from './index.esm-3fdda599.js';
45
47
  import ArticleCarousel from './ArticleCarousel.js';
46
- import { g as getSerializers } from './index-e887f3d1.js';
48
+ import { g as getSerializers } from './index-7aec473d.js';
47
49
  import './util-7700fc59.js';
48
- import './brightcove-react-player-loader.es-e1c6b0f2.js';
50
+ import './brightcove-react-player-loader.es-4abff0b1.js';
49
51
  import 'next/head';
50
52
  import 'react-share';
51
53
  import './SocialShare.js';
@@ -1,17 +1,15 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
2
  import React from 'react';
3
- import './moment-12415288.js';
4
- import { i as imageUrlBuilder } from './index-51a80699.js';
3
+ import './moment-b6f49411.js';
4
+ import './index-51a80699.js';
5
+ import urlFor from './urlFor.js';
5
6
  import './iconBase-602d52fe.js';
6
7
  import { a as FaLongArrowAltRight } from './index.esm-a8ff922c.js';
7
8
 
8
9
  var HorizontalHero = function HorizontalHero(props) {
9
10
  var client = props.client;
10
11
 
11
- var builder = imageUrlBuilder(client);
12
- function urlFor(source) {
13
- return builder.image(source).auto('format');
14
- }
12
+
15
13
  var topArticle = props.dataRecord[0];
16
14
  var subArticles = props.dataRecord.slice(1, props.dataRecord.length);
17
15
  var _props$heroTitle = props.heroTitle,
@@ -23,7 +21,8 @@ var HorizontalHero = function HorizontalHero(props) {
23
21
  var topArticleThumbnail = '';
24
22
  var topArticleAltText = topArticle.title;
25
23
  if (topArticle.thumbnail && topArticle.thumbnail.asset) {
26
- topArticleThumbnail = urlFor(topArticle.thumbnail.asset).width(350).url();
24
+ topArticleThumbnail = urlFor({ client: client, source: topArticle.thumbnail.asset, imageWidth: 350 });
25
+
27
26
  topArticleAltText = topArticle.thumbnail.asset.originalFileName;
28
27
  }
29
28
  if (props.thumbnail) {
@@ -8,36 +8,15 @@ 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-12415288.js';
11
+ import { m as moment } from './moment-b6f49411.js';
12
12
  import 'react-dom';
13
- import { i as imageUrlBuilder } from './index-51a80699.js';
13
+ import './index-51a80699.js';
14
+ import urlFor from './urlFor.js';
14
15
  import { L as LazyLoad } from './index-6c12bdd5.js';
15
16
  import './slicedToArray-641f241f.js';
16
17
  import { A as AuthorComponent } from './AuthorComponent-8ffd4679.js';
17
18
  import Badge from 'react-bootstrap/Badge';
18
19
 
19
- var urlFor = function urlFor(source, client) {
20
- var builder = imageUrlBuilder(client);
21
- return builder.image(source).auto('format');
22
- };
23
-
24
- var renderCardImage = function renderCardImage(props) {
25
- var coverImage = props.coverImage,
26
- imageHeight = props.imageHeight,
27
- imageWidth = props.imageWidth,
28
- client = props.client,
29
- Settings = props.Settings;
30
-
31
- if (coverImage && coverImage.asset) {
32
- var url = urlFor(coverImage, client);
33
- if (imageHeight) url = url.height(imageHeight);
34
- if (imageWidth) url = url.width(imageWidth);
35
- return url.url();
36
- } else {
37
- return Settings.logo;
38
- }
39
- };
40
-
41
20
  var PublicationDeckStack = function PublicationDeckStack(props) {
42
21
  var title = props.title,
43
22
  coverImage = props.coverImage,
@@ -46,8 +25,12 @@ var PublicationDeckStack = function PublicationDeckStack(props) {
46
25
  author = props.author,
47
26
  summary = props.summary,
48
27
  section = props.section,
49
- imageHeight = props.imageHeight,
50
- imageWidth = props.imageWidth,
28
+ _props$imageHeight = props.imageHeight,
29
+ imageHeight = _props$imageHeight === undefined ? null : _props$imageHeight,
30
+ _props$imageWidth = props.imageWidth,
31
+ imageWidth = _props$imageWidth === undefined ? null : _props$imageWidth,
32
+ _props$imageFit = props.imageFit,
33
+ imageFit = _props$imageFit === undefined ? null : _props$imageFit,
51
34
  client = props.client,
52
35
  Settings = props.Settings,
53
36
  index = props.index,
@@ -73,7 +56,7 @@ var PublicationDeckStack = function PublicationDeckStack(props) {
73
56
  { height: imageHeight },
74
57
  React.createElement(Card.Img, {
75
58
  variant: 'right',
76
- src: renderCardImage({ coverImage: coverImage, imageHeight: imageHeight, imageWidth: imageWidth, client: client, Settings: Settings }),
59
+ src: coverImage ? urlFor({ source: coverImage, imageHeight: imageHeight, imageWidth: imageWidth, imageFit: imageFit, client: client }) : Settings.logo,
77
60
  alt: title,
78
61
  style: { width: '170px', height: 'auto', objectFit: 'contain', padding: '0.25rem', float: 'left' }
79
62
  })
@@ -164,7 +147,7 @@ var PublicationDeckBlock = function PublicationDeckBlock(props) {
164
147
  coverImage && React.createElement(
165
148
  LazyLoad,
166
149
  { height: imageHeight },
167
- React.createElement(Card.Img, { variant: 'top', src: renderCardImage({ coverImage: coverImage, imageHeight: imageHeight, imageWidth: imageWidth, client: client, Settings: Settings }), alt: title })
150
+ React.createElement(Card.Img, { variant: 'top', src: coverImage ? urlFor({ source: coverImage, imageHeight: imageHeight, imageWidth: imageWidth, imageFit: imageFit, client: client, Settings: Settings }) : Settings.logo, alt: title })
168
151
  ),
169
152
  React.createElement(
170
153
  Card.Body,
@@ -12,9 +12,10 @@ 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-7dda2f0a.js';
15
+ import { I as InfiniteScroll } from './index.es-c6222053.js';
16
16
  import 'react-dom';
17
- import { i as imageUrlBuilder } from './index-51a80699.js';
17
+ import './index-51a80699.js';
18
+ import urlFor from './urlFor.js';
18
19
  import { L as LazyLoad } from './index-6c12bdd5.js';
19
20
  import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
20
21
  import Button from 'react-bootstrap/Button';
@@ -30,8 +31,12 @@ var usePrevious = function usePrevious(value) {
30
31
  var IssueDeck = function IssueDeck(props) {
31
32
  var data = props.data,
32
33
  href = props.href,
33
- imageHeight = props.imageHeight,
34
- imageWidth = props.imageWidth,
34
+ _props$imageHeight = props.imageHeight,
35
+ imageHeight = _props$imageHeight === undefined ? null : _props$imageHeight,
36
+ _props$imageWidth = props.imageWidth,
37
+ imageWidth = _props$imageWidth === undefined ? null : _props$imageWidth,
38
+ _props$imageFit = props.imageFit,
39
+ imageFit = _props$imageFit === undefined ? null : _props$imageFit,
35
40
  Website = props.Website,
36
41
  client = props.client,
37
42
  publication = props.publication,
@@ -63,17 +68,10 @@ var IssueDeck = function IssueDeck(props) {
63
68
 
64
69
  var prevValues = usePrevious(values);
65
70
 
66
- var urlFor = function urlFor(source) {
67
- var builder = imageUrlBuilder(client);
68
- return builder.image(source).auto('format');
69
- };
70
-
71
71
  var renderCardImage = function renderCardImage(thumbnail) {
72
72
  if (thumbnail && thumbnail.asset) {
73
- var url = urlFor(thumbnail);
74
- if (imageHeight) url = url.height(imageHeight);
75
- if (imageWidth) url = url.width(imageWidth);
76
- return url.url();
73
+ var url = urlFor({ client: client, source: thumbnail, imageHeight: imageHeight, imageWidth: imageWidth, imageFit: imageFit });
74
+ return url;
77
75
  } else {
78
76
  return Website.logo;
79
77
  }
@@ -14,22 +14,24 @@ import './web.dom.iterable-4439f05a.js';
14
14
  import './typeof-af9c50d8.js';
15
15
  import './_is-array-58e95429.js';
16
16
  import React from 'react';
17
- import './index-acfb8079.js';
17
+ import './events-6c3a7a63.js';
18
+ import './index-f7fb1e25.js';
18
19
  import 'prop-types';
19
20
  import 'react-bootstrap/Row';
20
21
  import 'react-bootstrap/Col';
21
22
  import 'react-bootstrap/Card';
22
- import './moment-12415288.js';
23
+ import './moment-b6f49411.js';
23
24
  import 'next/router';
24
25
  import './isSymbol-1981418f.js';
25
26
  import './debounce-9207d8ee.js';
26
27
  import './toNumber-2f7a84cd.js';
27
- import './index.es-7dda2f0a.js';
28
+ import './index.es-c6222053.js';
28
29
  import 'react-dom';
29
30
  import './visibility-sensor-f40c2564.js';
30
31
  import './index-51a80699.js';
32
+ import './urlFor.js';
31
33
  import './index-6c12bdd5.js';
32
- import './main-aef58dbc.js';
34
+ import './main-747e7d25.js';
33
35
  import './entities-7cc3bf45.js';
34
36
  import './slicedToArray-641f241f.js';
35
37
  import './stringify-4330ccdc.js';
@@ -37,9 +39,9 @@ import './asyncToGenerator-fc1c2e29.js';
37
39
  import './Segment.js';
38
40
  import './Beam.js';
39
41
  import './AdSlot.js';
40
- import './ADInfeed-ba59666b.js';
42
+ import './ADInfeed-427022e9.js';
41
43
  import './lodash-ec8c6b48.js';
42
- import './ADlgInfeed-995322a1.js';
44
+ import './ADlgInfeed-28d3f944.js';
43
45
  import './getContentCategory-15dcc413.js';
44
46
  import './AuthorComponent-8ffd4679.js';
45
47
  import { B as BlockContent } from './BlockContent-d05b5b23.js';
@@ -51,9 +53,9 @@ import './timeDifferenceCalc.js';
51
53
  import QueueDeckExpanded from './QueueDeckExpanded.js';
52
54
  import './iconBase-602d52fe.js';
53
55
  import './index.esm-3fdda599.js';
54
- import { g as getSerializers } from './index-e887f3d1.js';
56
+ import { g as getSerializers } from './index-7aec473d.js';
55
57
  import './util-7700fc59.js';
56
- import './brightcove-react-player-loader.es-e1c6b0f2.js';
58
+ import './brightcove-react-player-loader.es-4abff0b1.js';
57
59
  import 'next/head';
58
60
  import 'react-share';
59
61
  import './SocialShare.js';
@@ -64,35 +66,35 @@ import 'react-bootstrap/Figure';
64
66
  import 'react-bootstrap/Breadcrumb';
65
67
  import Breadcrumbs from './Breadcrumbs.js';
66
68
 
67
- /* usage
68
- import Settings, { Ads } from '../../../../settings'
69
- import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
70
- import client from '../../../../client'
71
- import moment from 'moment'
72
- import Shell from '../../../../components/2.0/Shell'
73
- import { pageview } from '../../../../utilities/gtag'
74
-
75
- const Issue = (props) => {
76
- const { pubIssue, cache } = props
77
- const targeting = {
78
- content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
79
- document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
80
- }
81
- return (
82
- <Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
83
- <IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
84
- </Shell>
85
- )
86
- }
87
-
88
- Issue.getInitialProps = async (ctx) => {
89
- const { query } = ctx
90
- const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
91
- )
92
- return { pubIssue }
93
- }
94
-
95
- export default Issue
69
+ /* usage
70
+ import Settings, { Ads } from '../../../../settings'
71
+ import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
72
+ import client from '../../../../client'
73
+ import moment from 'moment'
74
+ import Shell from '../../../../components/2.0/Shell'
75
+ import { pageview } from '../../../../utilities/gtag'
76
+
77
+ const Issue = (props) => {
78
+ const { pubIssue, cache } = props
79
+ const targeting = {
80
+ content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
81
+ document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
82
+ }
83
+ return (
84
+ <Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
85
+ <IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
86
+ </Shell>
87
+ )
88
+ }
89
+
90
+ Issue.getInitialProps = async (ctx) => {
91
+ const { query } = ctx
92
+ const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
93
+ )
94
+ return { pubIssue }
95
+ }
96
+
97
+ export default Issue
96
98
  */
97
99
 
98
100
  var IssueLanding = function IssueLanding(props) {
@@ -1,25 +1,25 @@
1
1
  var KMTracker = function KMTracker(props) {
2
- var id = props.id;
2
+ var id = props.id;
3
3
 
4
- if (document && id) {
4
+ if (document && id) {
5
5
  (function () {
6
- var ecnJquery = document.createElement('script');
6
+ var ecnJquery = document.createElement('script');
7
7
 
8
- ecnJquery.type = 'text/javascript';
9
- ecnJquery.async = true;
10
- ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
8
+ ecnJquery.type = 'text/javascript';
9
+ ecnJquery.async = true;
10
+ ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
11
11
 
12
- var ecnScript = document.createElement('script');
12
+ var ecnScript = document.createElement('script');
13
13
 
14
- ecnScript.type = 'text/javascript';
15
- ecnScript.async = true;
16
- ecnScript.id = 'km-tracker';
17
- ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
14
+ ecnScript.type = 'text/javascript';
15
+ ecnScript.async = true;
16
+ ecnScript.id = 'km-tracker';
17
+ ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
18
18
 
19
- document.head.appendChild(ecnJquery);
20
- document.head.appendChild(ecnScript);
21
- })();
22
- }
19
+ document.head.appendChild(ecnJquery);
20
+ document.head.appendChild(ecnScript);
21
+ })();
22
+ }
23
23
  };
24
24
 
25
25
  export default KMTracker;
@@ -8,12 +8,13 @@ import './_object-pie-33c40e79.js';
8
8
  import './extends-6f2fcc99.js';
9
9
  import './web.dom.iterable-4439f05a.js';
10
10
  import React, { useRef, useEffect } from 'react';
11
- import './index-acfb8079.js';
11
+ import './events-6c3a7a63.js';
12
+ import './index-f7fb1e25.js';
12
13
  import 'prop-types';
13
14
  import './isSymbol-1981418f.js';
14
15
  import './debounce-9207d8ee.js';
15
16
  import './toNumber-2f7a84cd.js';
16
- import './main-aef58dbc.js';
17
+ import './main-747e7d25.js';
17
18
  import './slicedToArray-641f241f.js';
18
19
  import './stringify-4330ccdc.js';
19
20
  import './asyncToGenerator-fc1c2e29.js';
@@ -14,31 +14,32 @@ import './web.dom.iterable-4439f05a.js';
14
14
  import './typeof-af9c50d8.js';
15
15
  import './_is-array-58e95429.js';
16
16
  import React from 'react';
17
- import { l as lib_3 } from './index-acfb8079.js';
17
+ import './events-6c3a7a63.js';
18
+ import { l as lib_3 } from './index-f7fb1e25.js';
18
19
  import 'prop-types';
19
20
  import Container from 'react-bootstrap/Container';
20
21
  import 'react-bootstrap/Row';
21
22
  import 'react-bootstrap/Col';
22
23
  import 'react-bootstrap/Card';
23
- import './moment-12415288.js';
24
+ import './moment-b6f49411.js';
24
25
  import { withRouter } from 'next/router';
25
26
  import './isSymbol-1981418f.js';
26
27
  import { d as debounce_1 } from './debounce-9207d8ee.js';
27
28
  import './toNumber-2f7a84cd.js';
28
- import { I as InfiniteScroll } from './index.es-7dda2f0a.js';
29
+ import { I as InfiniteScroll } from './index.es-c6222053.js';
29
30
  import 'react-dom';
30
31
  import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
31
32
  import './index-51a80699.js';
32
- import './main-aef58dbc.js';
33
+ import './main-747e7d25.js';
33
34
  import './slicedToArray-641f241f.js';
34
35
  import './stringify-4330ccdc.js';
35
36
  import { _ as _Promise } from './asyncToGenerator-fc1c2e29.js';
36
37
  import './Segment.js';
37
38
  import './Beam.js';
38
39
  import './AdSlot.js';
39
- import { A as ADInfeed } from './ADInfeed-ba59666b.js';
40
+ import { A as ADInfeed } from './ADInfeed-427022e9.js';
40
41
  import { l as lodash } from './lodash-ec8c6b48.js';
41
- import { A as ADlgInfeed } from './ADlgInfeed-995322a1.js';
42
+ import { A as ADlgInfeed } from './ADlgInfeed-28d3f944.js';
42
43
 
43
44
  var MasterDeck = function (_React$Component) {
44
45
  _inherits(MasterDeck, _React$Component);
@@ -55,7 +56,7 @@ var MasterDeck = function (_React$Component) {
55
56
  args[_key] = arguments[_key];
56
57
  }
57
58
 
58
- return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = MasterDeck.__proto__ || _Object$getPrototypeOf(MasterDeck)).call.apply(_ref, [this].concat(args))), _this), _this.Deck = _this.props.deck, _this.variant = _this.props.variant, _this.mapping = _this.props.mapping, _this.data = _this.props.dataRecord || [], _this.query = _this.props.query, _this.params = _this.props.params, _this.pointer = _this.props.pointer ? _this.props.pointer : false, _this.pointerArray = _this.props.pointerArray ? _this.props.pointerArray : false, _this.defaultImage = _this.props.defaultImage ? _this.props.defaultImage : '/placeholder.jpg', _this.rightItems = _this.props.rightItems ? _this.props.rightItems : false, _this.isSeriesLanding = _this.props.isSeriesLanding ? _this.props.isSeriesLanding : false, _this.state = {
59
+ return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = MasterDeck.__proto__ || _Object$getPrototypeOf(MasterDeck)).call.apply(_ref, [this].concat(args))), _this), _this.Deck = _this.props.deck, _this.variant = _this.props.variant, _this.mapping = _this.props.mapping, _this.data = _this.props.dataRecord || [], _this.query = _this.props.query, _this.params = _this.props.params, _this.pointer = _this.props.pointer ? _this.props.pointer : false, _this.pointerArray = _this.props.pointerArray ? _this.props.pointerArray : false, _this.defaultImage = _this.props.defaultImage ? _this.props.defaultImage : '/placeholder.jpg', _this.rightItems = _this.props.rightItems ? _this.props.rightItems : false, _this.isSeriesLanding = _this.props.isSeriesLanding ? _this.props.isSeriesLanding : false, _this.client = _this.props.client, _this.state = {
59
60
  data: _this.data,
60
61
  dataKeptToCompareNewDatarecord: _this.data,
61
62
  per: _this.params ? _this.params.to : 2,
@@ -224,14 +225,14 @@ var MasterDeck = function (_React$Component) {
224
225
  }
225
226
 
226
227
  // please leave this for later debug purpose : Yong Jun.
227
- /* console.log('page change reported', {
228
- currentPage: currentPage,
229
- pageNumber: pageNumber,
230
- pathname: pathname,
231
- path: path,
232
- newPath: newPath,
233
- firstPage: pageNumber === 1,
234
- queryString: queryString
228
+ /* console.log('page change reported', {
229
+ currentPage: currentPage,
230
+ pageNumber: pageNumber,
231
+ pathname: pathname,
232
+ path: path,
233
+ newPath: newPath,
234
+ firstPage: pageNumber === 1,
235
+ queryString: queryString
235
236
  }) */
236
237
 
237
238
  if (pageview) {