@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 { c as main_40 } from './main-aef58dbc.js';
11
+ import { 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,19 +25,19 @@ 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 NavMagazine = function NavMagazine(props) {
31
- /*
32
- Example Nav with acceptable props
33
- <MagazineNav
34
- showLogin
35
- user={props.cache.user}
36
- logo={props.settings.logo}
37
- dataObject={props.cache.mainNavCache}
38
- website={website}
39
- subNav={props.cache.subNavCache}
40
- />
31
+ /*
32
+ Example Nav with acceptable props
33
+ <MagazineNav
34
+ showLogin
35
+ user={props.cache.user}
36
+ logo={props.settings.logo}
37
+ dataObject={props.cache.mainNavCache}
38
+ website={website}
39
+ subNav={props.cache.subNavCache}
40
+ />
41
41
  */
42
42
 
43
43
  // Setting 'socialIconVariant' as 'light' as default to make the social icons and search icon black
@@ -315,7 +315,7 @@ var NavMagazine = function NavMagazine(props) {
315
315
  {
316
316
  id: 'navbar-ham',
317
317
  style: { width: '100%', display: 'flex', top: topOffset, overflow: 'auto', zIndex: '999999' },
318
- className: main_40 ? 'bottom-nav ios-nav' : 'bottom-nav ',
318
+ className: main_41 ? 'bottom-nav ios-nav' : 'bottom-nav ',
319
319
  variant: 'dark',
320
320
  expand: 'xl',
321
321
  bg: 'primary',
@@ -331,7 +331,7 @@ var NavMagazine = function NavMagazine(props) {
331
331
  'aria-controls': 'basic-navbar-nav',
332
332
  onClick: function onClick() {
333
333
  // Set overflow fix for iPhones safari browsers
334
- if (main_40) {
334
+ if (main_41) {
335
335
  var mainNav = document.querySelector('#navbar-ham');
336
336
  if (mainNav && mainNav.style) mainNav.style.overflow = 'auto';
337
337
  }
@@ -10,7 +10,7 @@ import 'prop-types';
10
10
  import Container from 'react-bootstrap/Container';
11
11
  import { i as isObject_1 } from './isSymbol-1981418f.js';
12
12
  import { t as toNumber_1 } from './toNumber-2f7a84cd.js';
13
- import { c as main_40 } from './main-aef58dbc.js';
13
+ import { c as main_41 } from './main-747e7d25.js';
14
14
  import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
15
15
  import './asyncToGenerator-fc1c2e29.js';
16
16
  import Segment from './Segment.js';
@@ -302,15 +302,15 @@ function chunk(array, size, guard) {
302
302
  var chunk_1 = chunk;
303
303
 
304
304
  var NavNative = function NavNative(props) {
305
- /*
306
- Example Nav with acceptable props
307
- <MagazineNav
308
- showLogin
309
- logo={props.settings.logo}
310
- dataObject={props.cache.mainNavCache}
311
- website={website}
312
- subNav={props.cache.subNavCache}
313
- />
305
+ /*
306
+ Example Nav with acceptable props
307
+ <MagazineNav
308
+ showLogin
309
+ logo={props.settings.logo}
310
+ dataObject={props.cache.mainNavCache}
311
+ website={website}
312
+ subNav={props.cache.subNavCache}
313
+ />
314
314
  */
315
315
  // Setting 'socialIconVariant' as 'dark' as default to make the social icons and search icon black
316
316
  var logo = props.logo,
@@ -566,13 +566,13 @@ var NavNative = function NavNative(props) {
566
566
  React.createElement(
567
567
  Navbar,
568
568
  {
569
- className: main_40 ? 'bottom-nav ios-nav' : 'bottom-nav android-nav',
569
+ className: main_41 ? 'bottom-nav ios-nav' : 'bottom-nav android-nav',
570
570
  variant: 'dark',
571
571
  expand: 'lg',
572
572
  bg: 'primary',
573
573
  sticky: 'top',
574
574
  ref: navRef,
575
- style: { minHeight: '65px', overflow: '' + (main_40 ? 'auto' : '') } },
575
+ style: { minHeight: '65px', overflow: '' + (main_41 ? 'auto' : '') } },
576
576
  React.createElement(
577
577
  Container,
578
578
  { style: { maxHeight: '80vh' }, className: 'mobile-nav' },
@@ -1,17 +1,15 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
2
  import React from 'react';
3
- import { m as moment } from './moment-12415288.js';
4
- import { i as imageUrlBuilder } from './index-51a80699.js';
3
+ import { m as moment } from './moment-b6f49411.js';
4
+ import './index-51a80699.js';
5
+ import urlFor from './urlFor.js';
5
6
  import './iconBase-602d52fe.js';
6
7
  import 'react-bootstrap/Badge';
7
8
 
8
9
  var OncliveHero = function OncliveHero(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
  return React.createElement(
16
14
  'div',
17
15
  { className: 'article-group--container' },
@@ -19,7 +17,8 @@ var OncliveHero = function OncliveHero(props) {
19
17
  var articleThumbnail = '';
20
18
  var articleAltText = article.title;
21
19
  if (article.thumbnail && article.thumbnail.asset) {
22
- articleThumbnail = urlFor(article.thumbnail.asset).width(250).url();
20
+ articleThumbnail = urlFor({ client: client, source: article.thumbnail.asset, imageWidth: 250 });
21
+
23
22
  articleAltText = article.thumbnail.asset.originalFileName;
24
23
  } else if (props.thumbnail) {
25
24
  articleThumbnail = props.thumbnail;
@@ -5,9 +5,10 @@ import './core.get-iterator-method-e1de7503.js';
5
5
  import './web.dom.iterable-4439f05a.js';
6
6
  import React from 'react';
7
7
  import 'prop-types';
8
- import { m as moment } from './moment-12415288.js';
8
+ import { m as moment } from './moment-b6f49411.js';
9
9
  import 'react-dom';
10
- import { i as imageUrlBuilder } from './index-51a80699.js';
10
+ import './index-51a80699.js';
11
+ import urlFor from './urlFor.js';
11
12
  import { L as LazyLoad } from './index-6c12bdd5.js';
12
13
  import { c as clean_html_1 } from './entities-7cc3bf45.js';
13
14
  import './slicedToArray-641f241f.js';
@@ -21,15 +22,12 @@ var OncliveLargeHero = function OncliveLargeHero(props) {
21
22
  var subArticles = props.dataRecord.slice(3, props.dataRecord.length);
22
23
  var client = props.client;
23
24
 
24
- var builder = imageUrlBuilder(client);
25
- function urlFor(source) {
26
- return builder.image(source).auto('format');
27
- }
28
25
 
29
26
  var topArticleThumbnail = '';
30
27
  var topArticleAltText = topArticle.title;
31
28
  if (topArticle.thumbnail && topArticle.thumbnail.asset) {
32
- topArticleThumbnail = urlFor(topArticle.thumbnail.asset).width(550).url();
29
+ topArticleThumbnail = urlFor({ client: client, source: topArticle.thumbnail.asset, imageWidth: 550 });
30
+
33
31
  topArticleAltText = topArticle.thumbnail.asset.originalFileName;
34
32
  } else if (props.thumbnail) {
35
33
  topArticleThumbnail = props.thumbnail;
@@ -76,7 +74,7 @@ var OncliveLargeHero = function OncliveLargeHero(props) {
76
74
  var articleThumbnail = '';
77
75
  var articleAltText = article.title;
78
76
  if (article.thumbnail && article.thumbnail.asset) {
79
- articleThumbnail = urlFor(article.thumbnail.asset).width(250).url();
77
+ articleThumbnail = urlFor({ client: client, source: article.thumbnail.asset, imageWidth: 250 });
80
78
  articleAltText = article.thumbnail.asset.originalFileName;
81
79
  } else if (props.thumbnail) {
82
80
  articleThumbnail = props.thumbnail;
@@ -131,7 +129,8 @@ var OncliveLargeHero = function OncliveLargeHero(props) {
131
129
  var articleThumbnail = '';
132
130
  var articleAltText = article.title;
133
131
  if (article.thumbnail && article.thumbnail.asset) {
134
- articleThumbnail = urlFor(article.thumbnail.asset).width(250).url();
132
+ articleThumbnail = urlFor({ client: client, source: article.thumbnail.asset, imageWidth: 250 });
133
+
135
134
  articleAltText = article.thumbnail.asset.originalFileName;
136
135
  } else if (props.thumbnail) {
137
136
  articleThumbnail = props.thumbnail;
@@ -182,7 +181,7 @@ var OncliveLargeHero = function OncliveLargeHero(props) {
182
181
  var articleThumbnail = '';
183
182
  var articleAltText = article.title;
184
183
  if (article.thumbnail && article.thumbnail.asset) {
185
- articleThumbnail = urlFor(article.thumbnail.asset).width(250).url();
184
+ articleThumbnail = urlFor({ client: client, source: article.thumbnail.asset, imageWidth: 250 });
186
185
  articleAltText = article.thumbnail.asset.originalFileName;
187
186
  } else if (props.thumbnail) {
188
187
  articleThumbnail = props.thumbnail;
@@ -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, { useRef, useState, useEffect } 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 { m as moment } from './moment-12415288.js';
23
+ import { m as moment } from './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
- import { i as imageUrlBuilder } from './index-51a80699.js';
31
+ import './index-51a80699.js';
32
+ import urlFor from './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 { _ as _slicedToArray } from './slicedToArray-641f241f.js';
35
37
  import './stringify-4330ccdc.js';
@@ -37,9 +39,9 @@ import { a as _asyncToGenerator, r as regenerator, _ as _Promise } from './async
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';
@@ -65,7 +67,6 @@ import 'react-bootstrap/Carousel';
65
67
  import Feature from './Feature.js';
66
68
  import 'react-bootstrap/Breadcrumb';
67
69
  import Breadcrumbs from './Breadcrumbs.js';
68
- import urlFor from './urlFor.js';
69
70
  import { TwitterTimelineEmbed } from 'react-twitter-embed';
70
71
 
71
72
  var ImageSlider = function ImageSlider(props) {
@@ -88,10 +89,6 @@ var ImageSlider = function ImageSlider(props) {
88
89
  scrollPosition = _useState6[0],
89
90
  setScrollPosition = _useState6[1];
90
91
 
91
- var builder = imageUrlBuilder(props.client);
92
- function urlFor(source) {
93
- return builder.image(source);
94
- }
95
92
  function scrollSlider(e, direction) {
96
93
  var slide = e.target.parentElement;
97
94
  var scrollOffset = scrollPosition;
@@ -199,7 +196,7 @@ var ImageSlider = function ImageSlider(props) {
199
196
  'div',
200
197
  { ref: innerSlider, className: 'row__inner' },
201
198
  props.data.slides.map(function (img, index) {
202
- var thumbnail = urlFor(img.slideshowImage).width(250);
199
+ var thumbnail = urlFor({ client: client, source: img.slideshowImage, imageWidth: 250 });
203
200
  if (!img.slideshowImage.link) {
204
201
  return React.createElement(
205
202
  'div',
@@ -268,7 +265,7 @@ var PartnerDetails = function PartnerDetails(_ref) {
268
265
  React.createElement('img', {
269
266
  alt: partnerDetails.thumbnail && partnerDetails.thumbnail.alt ? partnerDetails.thumbnail.alt : partnerDetails.name,
270
267
  style: { maxWidth: '100%' },
271
- src: partnerDetails.thumbnail ? urlFor(client, partnerDetails.thumbnail.asset) : '' }),
268
+ src: partnerDetails.thumbnail ? urlFor({ client: client, source: partnerDetails.thumbnail.asset }) : '' }),
272
269
  partnerDetails.thumbnail && partnerDetails.thumbnail.caption && React.createElement(
273
270
  'figcaption',
274
271
  null,
@@ -281,7 +278,7 @@ var PartnerDetails = function PartnerDetails(_ref) {
281
278
  React.createElement('img', {
282
279
  alt: partnerDetails.thumbnail && partnerDetails.thumbnail.alt ? partnerDetails.thumbnail.alt : partnerDetails.name,
283
280
  style: { maxWidth: '100%' },
284
- src: partnerDetails.thumbnail ? urlFor(client, partnerDetails.thumbnail.asset) : '' }),
281
+ src: partnerDetails.thumbnail ? urlFor({ client: client, source: partnerDetails.thumbnail.asset }) : '' }),
285
282
  partnerDetails.thumbnail && partnerDetails.thumbnail.caption && React.createElement(
286
283
  'figcaption',
287
284
  null,
@@ -9,20 +9,22 @@ import './_object-pie-33c40e79.js';
9
9
  import { _ as _extends } from './extends-6f2fcc99.js';
10
10
  import './web.dom.iterable-4439f05a.js';
11
11
  import React from 'react';
12
- import './index-acfb8079.js';
12
+ import './events-6c3a7a63.js';
13
+ import './index-f7fb1e25.js';
13
14
  import 'prop-types';
14
15
  import 'react-bootstrap/Card';
15
- import './moment-12415288.js';
16
+ import './moment-b6f49411.js';
16
17
  import 'next/router';
17
18
  import './isSymbol-1981418f.js';
18
19
  import './debounce-9207d8ee.js';
19
20
  import './toNumber-2f7a84cd.js';
20
- import './index.es-7dda2f0a.js';
21
+ import './index.es-c6222053.js';
21
22
  import 'react-dom';
22
23
  import './visibility-sensor-f40c2564.js';
23
24
  import './index-51a80699.js';
25
+ import './urlFor.js';
24
26
  import './index-6c12bdd5.js';
25
- import './main-aef58dbc.js';
27
+ import './main-747e7d25.js';
26
28
  import './entities-7cc3bf45.js';
27
29
  import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
28
30
  import './stringify-4330ccdc.js';
@@ -30,9 +32,9 @@ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1
30
32
  import './Segment.js';
31
33
  import './Beam.js';
32
34
  import './AdSlot.js';
33
- import './ADInfeed-ba59666b.js';
35
+ import './ADInfeed-427022e9.js';
34
36
  import './lodash-ec8c6b48.js';
35
- import './ADlgInfeed-995322a1.js';
37
+ import './ADlgInfeed-28d3f944.js';
36
38
  import './getContentCategory-15dcc413.js';
37
39
  import './AuthorComponent-8ffd4679.js';
38
40
  import 'react-bootstrap';
@@ -5,15 +5,20 @@ import Row from 'react-bootstrap/Row';
5
5
  import Col from 'react-bootstrap/Col';
6
6
  import Card from 'react-bootstrap/Card';
7
7
  import 'react-dom';
8
- import { i as imageUrlBuilder } from './index-51a80699.js';
8
+ import './index-51a80699.js';
9
+ import urlFor from './urlFor.js';
9
10
  import { L as LazyLoad } from './index-6c12bdd5.js';
10
11
  import { l as lodash } from './lodash-ec8c6b48.js';
11
12
  import Button from 'react-bootstrap/Button';
12
13
 
13
14
  var PublicationDeck = function PublicationDeck(props) {
14
15
  var data = props.data,
15
- imageHeight = props.imageHeight,
16
- imageWidth = props.imageWidth,
16
+ _props$imageHeight = props.imageHeight,
17
+ imageHeight = _props$imageHeight === undefined ? null : _props$imageHeight,
18
+ _props$imageWidth = props.imageWidth,
19
+ imageWidth = _props$imageWidth === undefined ? null : _props$imageWidth,
20
+ _props$imageFit = props.imageFit,
21
+ imageFit = _props$imageFit === undefined ? null : _props$imageFit,
17
22
  href = props.href,
18
23
  website = props.website,
19
24
  client = props.client;
@@ -33,17 +38,10 @@ var PublicationDeck = function PublicationDeck(props) {
33
38
  return o.childIssue && o.childIssue.year ? o.childIssue.year : null;
34
39
  }]);
35
40
 
36
- var urlFor = function urlFor(source) {
37
- var builder = imageUrlBuilder(client);
38
- return builder.image(source).auto('format');
39
- };
40
-
41
41
  var renderCardImage = function renderCardImage(thumbnail) {
42
42
  if (thumbnail && thumbnail.asset) {
43
- var url = urlFor(thumbnail);
44
- if (imageHeight) url = url.height(imageHeight);
45
- if (imageWidth) url = url.width(imageWidth);
46
- return url.url();
43
+ var url = urlFor({ client: client, source: thumbnail, imageHeight: imageHeight, imageWidth: imageWidth, imageFit: imageFit });
44
+ return url;
47
45
  } else {
48
46
  return website.logo;
49
47
  }
@@ -373,35 +373,32 @@ module.exports = { "default": set, __esModule: true };
373
373
 
374
374
  var _Set = unwrapExports(set$1);
375
375
 
376
- /* usage & query
377
- const Publication = (props) => {
378
- const { cache, pub, year } = props
379
- const targeting = {
380
- content_placement: [`/journals/${pub.identifier.current}`],
381
- document_url: [`/journals/${pub.identifier.current}`],
382
- }
383
- return (
384
- <Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
385
- <PublicationLanding publication={pub} year={year} href={'journals'} />
386
- </Shell>
387
- )
388
- }
389
- Publication.getInitialProps = async (ctx) => {
390
- const { query } = ctx
391
- const {
392
- query: { year },
393
- } = ctx
394
- const pub = await client.fetch(getQuery('publication'), query)
395
- const builder = imageUrlBuilder(client)
396
- const urlFor = (source) => {
397
- return builder.image(source)
398
- }
399
- pub.issues.map((issue) => {
400
- issue.thumbnail = urlFor(issue.thumbnail).url()
401
- })
402
- return { pub, year }
403
- }
404
- export default Publication
376
+ /* usage & query
377
+ const Publication = (props) => {
378
+ const { cache, pub, year } = props
379
+ const targeting = {
380
+ content_placement: [`/journals/${pub.identifier.current}`],
381
+ document_url: [`/journals/${pub.identifier.current}`],
382
+ }
383
+ return (
384
+ <Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
385
+ <PublicationLanding publication={pub} year={year} href={'journals'} />
386
+ </Shell>
387
+ )
388
+ }
389
+ Publication.getInitialProps = async (ctx) => {
390
+ const { query } = ctx
391
+ const {
392
+ query: { year },
393
+ } = ctx
394
+ const pub = await client.fetch(getQuery('publication'), query)
395
+ **import urlFor from framework**
396
+ pub.issues.map((issue) => {
397
+ issue.thumbnail = urlFor({client, source: issue.thumbnail})
398
+ })
399
+ return { pub, year }
400
+ }
401
+ export default Publication
405
402
  */
406
403
 
407
404
  var generateContentPlacements = function generateContentPlacements(issues) {