@mjhls/mjh-framework 1.0.817-image-crop-test-v4 → 1.0.817

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 (210) hide show
  1. package/README.md +170 -170
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +2 -3
  4. package/dist/cjs/AD300x250x600.js +2 -3
  5. package/dist/cjs/AD728x90.js +2 -3
  6. package/dist/cjs/ADFloatingFooter.js +2 -3
  7. package/dist/cjs/ADGutter.js +2 -3
  8. package/dist/cjs/ADSkyscraper.js +2 -3
  9. package/dist/cjs/ADSponsoredResources.js +2 -3
  10. package/dist/cjs/ADWebcast.js +2 -3
  11. package/dist/cjs/ADWelcome.js +2 -3
  12. package/dist/cjs/AccordionPanel.js +2 -2
  13. package/dist/cjs/AdSlot.js +2 -3
  14. package/dist/cjs/AdSlotsProvider.js +2 -3
  15. package/dist/cjs/AlgoliaSearch.js +17 -14099
  16. package/dist/cjs/ArticleCarousel.js +1 -2
  17. package/dist/cjs/ArticleProgramLandingPage.js +5 -7
  18. package/dist/cjs/ArticleSeriesLandingPage.js +4 -5
  19. package/dist/cjs/ArticleSeriesListing.js +4 -6
  20. package/dist/cjs/AuthWrapper.js +1 -1
  21. package/dist/cjs/CMEDeck.js +2 -3
  22. package/dist/cjs/Column3.js +2 -3
  23. package/dist/cjs/ConferenceArticleCard.js +24 -19
  24. package/dist/cjs/DeckContent.js +25 -20
  25. package/dist/cjs/DeckQueue.js +17 -11
  26. package/dist/cjs/{Dfp-93399f8c.js → Dfp-3f0ed4c8.js} +1 -2
  27. package/dist/cjs/EventsDeck.js +18 -18
  28. package/dist/cjs/ExternalResources.js +5 -7
  29. package/dist/cjs/Feature.js +10 -6
  30. package/dist/cjs/ForbesHero.js +14 -12
  31. package/dist/cjs/GridContent.js +29 -24
  32. package/dist/cjs/GridHero.js +19 -10
  33. package/dist/cjs/GroupDeck.js +8 -4
  34. package/dist/cjs/HamMagazine.js +15 -15
  35. package/dist/cjs/Hero.js +14 -3
  36. package/dist/cjs/HorizontalArticleListing.js +5 -7
  37. package/dist/cjs/HorizontalHero.js +8 -7
  38. package/dist/cjs/IssueContentDeck.js +27 -10
  39. package/dist/cjs/IssueDeck.js +12 -10
  40. package/dist/cjs/IssueLanding.js +36 -38
  41. package/dist/cjs/KMTracker.js +15 -15
  42. package/dist/cjs/LeftNav.js +2 -3
  43. package/dist/cjs/MasterDeck.js +13 -14
  44. package/dist/cjs/MediaSeriesLanding.js +407 -307
  45. package/dist/cjs/NavMagazine.js +16 -16
  46. package/dist/cjs/NavNative.js +12 -12
  47. package/dist/cjs/NavNormal.js +2 -2
  48. package/dist/cjs/OncliveHero.js +7 -6
  49. package/dist/cjs/OncliveLargeHero.js +22 -21
  50. package/dist/cjs/PartnerDetailListing.js +16 -13
  51. package/dist/cjs/PdfDownload.js +2 -2
  52. package/dist/cjs/PubSection.js +4 -6
  53. package/dist/cjs/PublicationDeck.js +12 -10
  54. package/dist/cjs/PublicationLanding.js +29 -26
  55. package/dist/cjs/QueueDeckExpanded.js +72 -74
  56. package/dist/cjs/RecentNews.js +8 -5
  57. package/dist/cjs/RelatedContent.js +38 -35
  58. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  59. package/dist/cjs/SeriesListingDeck.js +3 -5
  60. package/dist/cjs/{SeriesSlider-d54fa925.js → SeriesSlider-2db54929.js} +12 -7
  61. package/dist/cjs/SideFooter.js +2 -2
  62. package/dist/cjs/{SocialSearchComponent-ecb4f972.js → SocialSearchComponent-948138c7.js} +3 -3
  63. package/dist/cjs/TaxonomyCard.js +14 -11
  64. package/dist/cjs/TaxonomyDescription.js +5 -7
  65. package/dist/cjs/TemplateNormal.js +7 -8
  66. package/dist/cjs/ThumbnailCard.js +10 -6
  67. package/dist/cjs/Ustream.js +4 -4
  68. package/dist/cjs/VerticalHero.js +7 -3
  69. package/dist/cjs/VideoProgramLandingPage.js +5 -7
  70. package/dist/cjs/VideoSeriesCard.js +8 -9
  71. package/dist/cjs/VideoSeriesLandingPage.js +4 -6
  72. package/dist/cjs/VideoSeriesListing.js +5 -7
  73. package/dist/cjs/View.js +16 -17
  74. package/dist/cjs/YahooHero.js +13 -11
  75. package/dist/cjs/YoutubeGroup.js +13 -9
  76. package/dist/cjs/getSerializers.js +5 -7
  77. package/dist/cjs/{getTargeting-be6168ad.js → getTargeting-a100d6e5.js} +9 -9
  78. package/dist/cjs/getTargeting.js +1 -1
  79. package/dist/{esm/iconBase-602d52fe.js → cjs/iconBase-be4097c0.js} +33 -8
  80. package/dist/cjs/{index-fc2f1ca2.js → index-0e4427c8.js} +467 -2
  81. package/dist/cjs/{index-55c6de08.js → index-70971c54.js} +93 -49
  82. package/dist/cjs/{index.esm-974f47d9.js → index.esm-00a6aade.js} +1 -1
  83. package/dist/cjs/{index.esm-8123cf40.js → index.esm-2bb721c8.js} +1 -1
  84. package/dist/cjs/{index.esm-3b9b8952.js → index.esm-9225638f.js} +1 -1
  85. package/dist/cjs/{index.esm-05850a2f.js → index.esm-f27f80d9.js} +1 -1
  86. package/dist/cjs/index.js +32 -19
  87. package/dist/cjs/{main-025fdc78.js → main-f1c77adb.js} +3 -3
  88. package/dist/cjs/urlFor.js +2 -34
  89. package/dist/esm/AD.js +7 -7
  90. package/dist/esm/AD300x250.js +6 -7
  91. package/dist/esm/AD300x250x600.js +6 -7
  92. package/dist/esm/AD728x90.js +7 -8
  93. package/dist/esm/ADFloatingFooter.js +9 -10
  94. package/dist/esm/ADFooter.js +6 -6
  95. package/dist/esm/ADGutter.js +9 -10
  96. package/dist/esm/{ADInfeed-7aaa47e1.js → ADInfeed-f7d00a9a.js} +5 -5
  97. package/dist/esm/ADSkyscraper.js +9 -10
  98. package/dist/esm/ADSponsoredResources.js +9 -10
  99. package/dist/esm/ADWebcast.js +9 -10
  100. package/dist/esm/ADWelcome.js +13 -14
  101. package/dist/esm/{ADlgInfeed-78f95e78.js → ADlgInfeed-db64f46d.js} +4 -4
  102. package/dist/esm/AccordionPanel.js +18 -18
  103. package/dist/esm/AdSlot.js +5 -6
  104. package/dist/esm/AdSlotsProvider.js +4 -5
  105. package/dist/esm/AlgoliaSearch.js +41 -14123
  106. package/dist/esm/AlphabeticList.js +13 -13
  107. package/dist/esm/ArticleCarousel.js +6 -7
  108. package/dist/esm/ArticleProgramLandingPage.js +17 -19
  109. package/dist/esm/ArticleSeriesLandingPage.js +12 -13
  110. package/dist/esm/ArticleSeriesListing.js +31 -33
  111. package/dist/esm/Auth.js +70 -70
  112. package/dist/esm/AuthWrapper.js +26 -26
  113. package/dist/esm/{AuthorComponent-5ae7409f.js → AuthorComponent-30aeba69.js} +10 -10
  114. package/dist/esm/{BlockContent-52cf21c5.js → BlockContent-c99c9a8d.js} +3 -3
  115. package/dist/esm/Breadcrumbs.js +11 -11
  116. package/dist/esm/CMEDeck.js +61 -62
  117. package/dist/esm/Column1.js +5 -5
  118. package/dist/esm/Column2.js +12 -12
  119. package/dist/esm/Column3.js +23 -24
  120. package/dist/esm/ConferenceArticleCard.js +37 -32
  121. package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
  122. package/dist/esm/DeckContent.js +68 -63
  123. package/dist/esm/DeckQueue.js +54 -48
  124. package/dist/esm/{Dfp-43f121ff.js → Dfp-be030f2a.js} +10 -11
  125. package/dist/esm/EventsDeck.js +81 -81
  126. package/dist/esm/ExternalResources.js +35 -37
  127. package/dist/esm/Feature.js +24 -20
  128. package/dist/esm/ForbesHero.js +34 -32
  129. package/dist/esm/GridContent.js +114 -109
  130. package/dist/esm/GridHero.js +40 -31
  131. package/dist/esm/GroupDeck.js +42 -38
  132. package/dist/esm/HamMagazine.js +95 -95
  133. package/dist/esm/Header.js +8 -8
  134. package/dist/esm/Hero.js +19 -8
  135. package/dist/esm/HighlightenVideo.js +14 -14
  136. package/dist/esm/HorizontalArticleListing.js +31 -33
  137. package/dist/esm/HorizontalHero.js +26 -25
  138. package/dist/esm/IssueContentDeck.js +65 -48
  139. package/dist/esm/IssueDeck.js +45 -43
  140. package/dist/esm/IssueLanding.js +51 -53
  141. package/dist/esm/KMTracker.js +15 -15
  142. package/dist/esm/LeftNav.js +16 -17
  143. package/dist/esm/MasterDeck.js +47 -48
  144. package/dist/esm/MediaSeriesLanding.js +434 -334
  145. package/dist/esm/NavDvm.js +43 -43
  146. package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
  147. package/dist/esm/NavMagazine.js +99 -99
  148. package/dist/esm/NavNative.js +86 -86
  149. package/dist/esm/NavNormal.js +22 -22
  150. package/dist/esm/OncliveHero.js +19 -18
  151. package/dist/esm/OncliveLargeHero.js +59 -58
  152. package/dist/esm/PageFilter.js +6 -6
  153. package/dist/esm/PartnerDetailListing.js +71 -68
  154. package/dist/esm/PdfDownload.js +7 -7
  155. package/dist/esm/PopUpModal.js +8 -8
  156. package/dist/esm/PubSection.js +14 -16
  157. package/dist/esm/PubToc.js +5 -5
  158. package/dist/esm/PublicationDeck.js +45 -43
  159. package/dist/esm/PublicationLanding.js +78 -75
  160. package/dist/esm/QueueDeckExpanded.js +260 -262
  161. package/dist/esm/RecentNews.js +24 -21
  162. package/dist/esm/RelatedContent.js +49 -46
  163. package/dist/esm/RelatedTopicsDropdown.js +21 -21
  164. package/dist/esm/RolesDeck.js +13 -13
  165. package/dist/esm/Search.js +5 -5
  166. package/dist/esm/SeriesListingDeck.js +19 -21
  167. package/dist/esm/{SeriesSlider-8f2aca58.js → SeriesSlider-c8477bf3.js} +30 -25
  168. package/dist/esm/SideFooter.js +21 -21
  169. package/dist/esm/SocialIcons.js +7 -7
  170. package/dist/esm/{SocialSearchComponent-cd38ae60.js → SocialSearchComponent-db963c3e.js} +22 -22
  171. package/dist/esm/SocialShare.js +25 -25
  172. package/dist/esm/TaxonomyCard.js +46 -43
  173. package/dist/esm/TaxonomyDescription.js +13 -15
  174. package/dist/esm/TemplateNormal.js +30 -31
  175. package/dist/esm/ThumbnailCard.js +15 -11
  176. package/dist/esm/Ustream.js +18 -18
  177. package/dist/esm/VerticalHero.js +18 -14
  178. package/dist/esm/VideoProgramLandingPage.js +24 -26
  179. package/dist/esm/VideoSeriesCard.js +18 -19
  180. package/dist/esm/VideoSeriesFilter.js +6 -6
  181. package/dist/esm/VideoSeriesLandingPage.js +12 -14
  182. package/dist/esm/VideoSeriesListing.js +48 -50
  183. package/dist/esm/View.js +177 -178
  184. package/dist/esm/YahooHero.js +31 -29
  185. package/dist/esm/YoutubeGroup.js +40 -36
  186. package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-57a70a56.js} +3 -3
  187. package/dist/esm/getSerializers.js +8 -10
  188. package/dist/esm/{getTargeting-68291ce9.js → getTargeting-05c216d6.js} +9 -9
  189. package/dist/esm/getTargeting.js +1 -1
  190. package/dist/{cjs/iconBase-68959171.js → esm/iconBase-ccc56b97.js} +2 -5
  191. package/dist/esm/{index-2446af28.js → index-5cc7b406.js} +469 -4
  192. package/dist/esm/{index-35bdcc81.js → index-755f2cc2.js} +4 -4
  193. package/dist/esm/{index-e8c6a892.js → index-a30e3b71.js} +401 -357
  194. package/dist/esm/{index.es-c6222053.js → index.es-a6137319.js} +5 -5
  195. package/dist/esm/{index.esm-8016b507.js → index.esm-37268dca.js} +16 -16
  196. package/dist/esm/{index.esm-a8ff922c.js → index.esm-d4932dea.js} +1 -1
  197. package/dist/esm/{index.esm-d6f88d94.js → index.esm-e874e770.js} +1 -1
  198. package/dist/esm/{index.esm-3fdda599.js → index.esm-f6156a57.js} +1 -1
  199. package/dist/esm/index.js +55 -43
  200. package/dist/esm/{main-b5c5aac1.js → main-d4165069.js} +19 -19
  201. package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-9be47857.js} +5 -5
  202. package/dist/esm/urlFor.js +2 -34
  203. package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
  204. package/package.json +110 -110
  205. package/dist/cjs/events-1b438fe7.js +0 -469
  206. package/dist/cjs/index-8041a4eb.js +0 -99
  207. package/dist/esm/events-6c3a7a63.js +0 -467
  208. package/dist/esm/index-67e1773f.js +0 -94
  209. /package/dist/cjs/{ADInfeed-1ac86856.js → ADInfeed-7cf51090.js} +0 -0
  210. /package/dist/cjs/{ADlgInfeed-2ee46b09.js → ADlgInfeed-bf24708d.js} +0 -0
@@ -2,12 +2,11 @@
2
2
 
3
3
  var React = require('react');
4
4
  var moment = require('./moment-aca40de1.js');
5
- var urlFor = require('./urlFor.js');
5
+ var index = require('./index-efca863c.js');
6
6
  var entities = require('./entities-3f9d0f2f.js');
7
7
  var AuthorComponent = require('./AuthorComponent-c21aac7f.js');
8
- var index = require('./index-eadd5035.js');
8
+ var index$1 = require('./index-eadd5035.js');
9
9
  require('./_commonjsHelpers-06173234.js');
10
- require('./index-efca863c.js');
11
10
  require('./slicedToArray-5d1bc3b3.js');
12
11
  require('./web.dom.iterable-46657b5c.js');
13
12
  require('./es6.string.iterator-c2573ffd.js');
@@ -27,11 +26,15 @@ var YahooHero = function YahooHero(props) {
27
26
  var subArticles = props.dataRecord.slice(1, props.dataRecord.length);
28
27
  var client = props.client;
29
28
 
29
+ var builder = index.imageUrlBuilder(client);
30
+ function urlFor(source) {
31
+ return builder.image(source).auto('format');
32
+ }
30
33
 
31
34
  var topArticleThumbnail = '';
32
35
  var topArticleAltText = topArticle.title;
33
36
  if (topArticle.thumbnail && topArticle.thumbnail.asset) {
34
- topArticleThumbnail = urlFor({ client: client, source: topArticle.thumbnail.asset, imageWidth: 600 });
37
+ topArticleThumbnail = urlFor(topArticle.thumbnail.asset).width(600).url();
35
38
  topArticleAltText = topArticle.thumbnail.asset.originalFileName;
36
39
  } else if (props.thumbnail) {
37
40
  topArticleThumbnail = props.thumbnail;
@@ -76,12 +79,11 @@ var YahooHero = function YahooHero(props) {
76
79
  React__default['default'].createElement(
77
80
  'div',
78
81
  { className: 'yh-sub-article-container' },
79
- subArticles.map(function (article, index$1) {
82
+ subArticles.map(function (article, index) {
80
83
  var articleThumbnail = '';
81
84
  article.title;
82
85
  if (article.thumbnail && article.thumbnail.asset) {
83
- articleThumbnail = urlFor({ client: client, source: article.thumbnail.asset, imageWidth: 250 });
84
-
86
+ articleThumbnail = urlFor(article.thumbnail.asset).width(250).url();
85
87
  article.thumbnail.asset.originalFileName;
86
88
  } else if (props.thumbnail) {
87
89
  articleThumbnail = props.thumbnail;
@@ -89,7 +91,7 @@ var YahooHero = function YahooHero(props) {
89
91
 
90
92
  return React__default['default'].createElement(
91
93
  'div',
92
- { key: index$1, className: 'yh-sub-article' },
94
+ { key: index, className: 'yh-sub-article' },
93
95
  React__default['default'].createElement(
94
96
  'a',
95
97
  { href: '/view/' + article.url.current },
@@ -110,9 +112,9 @@ var YahooHero = function YahooHero(props) {
110
112
  moment.moment(article.published).format(removeTimeStamp ? 'MMMM DD, YYYY' : 'MMMM DD, YYYY hh:mma')
111
113
  ),
112
114
  article.authorMapping && article.authorMapping.length > 0 && React__default['default'].createElement(
113
- index.LazyLoad,
115
+ index$1.LazyLoad,
114
116
  { height: 50 },
115
- React__default['default'].createElement(AuthorComponent.AuthorComponent, { key: index$1.toString(), index: index$1, authors: article.authorMapping })
117
+ React__default['default'].createElement(AuthorComponent.AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
116
118
  )
117
119
  );
118
120
  })
@@ -120,7 +122,7 @@ var YahooHero = function YahooHero(props) {
120
122
  React__default['default'].createElement(
121
123
  'style',
122
124
  { jsx: 'true' },
123
- '\n .article-hero{\n padding-bottom:15px\n }\n .yh-top-article {\n display: flex;\n flex-direction: row;\n position: relative;\n font-family: Roboto, sans-serif;\n margin-bottom: 1rem;\n border-radius: 15px;\n overflow: hidden;\n min-height: 315px;\n }\n .yh-top-article--img {\n width: 100%;\n min-height: 240px;\n overflow: hidden;\n }\n .yh-top-article--img img {\n width: 100%;\n height: auto;\n min-height: 100%;\n max-height: 615px;\n object-fit: cover;\n }\n .yh-top-article--body {\n height: 100%;\n width: 40%;\n min-width: 320px;\n right: 0;\n position: absolute;\n color: white;\n padding: 1.75rem;\n height: 315px;\n display: flex;\n align-items: flex-start;\n justify-content: center;\n flex-direction: column;\n }\n .yh-top-article--body h1 {\n color: white!important;\n font-size: 1.4rem;\n font-weight: 500;\n margin-bottom: 0.5rem;\n }\n .yh-top-article--body p {\n font-size: 0.9rem;\n margin-bottom: 0.5rem;\n }\n .yh-top-article--blur {\n height: 100%;\n width: 40%;\n right: 0;\n position: absolute;\n filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));\n background: rgba(0,0,0,.65);\n min-width: 320px;\n }\n .yh-sub-article-container {\n display: flex;\n justify-content: space-between;\n }\n .yh-sub-article {\n width: 23.25%;\n }\n .yh-sub-article p.yh-sub-article--title {\n font-weight: bold;\n }\n .yh-sub-article img {\n width: 100%;\n max-height: 150px;\n object-fit: cover;\n border-radius: 15px;\n }\n .yh-sub-article img[src=\'' + props.thumbnail + '\']{\n object-fit: contain;\n }\n .yh-sub-article--title {\n font-weight: bold;\n margin-top: .25rem;\n font-size: 1rem;\n margin-bottom: .25rem;\n }\n .yh-sub-article--info {\n font-size: .8rem;\n margin-bottom: 0;\n\n }\n @media screen and (max-width: 968px) {\n .yh-sub-article-container {\n flex-wrap: wrap;\n }\n .yh-sub-article {\n width: 48%;\n margin-bottom: 1rem;\n }\n }\n '
125
+ '\n .article-hero{\n padding-bottom:15px\n }\n .yh-top-article {\n display: flex;\n flex-direction: row;\n position: relative;\n font-family: Roboto, sans-serif;\n margin-bottom: 1rem;\n border-radius: 15px;\n overflow: hidden;\n min-height: 315px;\n }\n .yh-top-article--img {\n width: 100%;\n min-height: 240px;\n overflow: hidden;\n }\n .yh-top-article--img img {\n width: 100%;\n height: auto;\n min-height: 100%;\n max-height: 315px;\n object-fit: cover;\n }\n .yh-top-article--body {\n height: 100%;\n width: 40%;\n min-width: 320px;\n right: 0;\n position: absolute;\n color: white;\n padding: 1.75rem;\n height: 315px;\n display: flex;\n align-items: flex-start;\n justify-content: center;\n flex-direction: column;\n }\n .yh-top-article--body h1 {\n color: white!important;\n font-size: 1.4rem;\n font-weight: 500;\n margin-bottom: 0.5rem;\n }\n .yh-top-article--body p {\n font-size: 0.9rem;\n margin-bottom: 0.5rem;\n }\n .yh-top-article--blur {\n height: 100%;\n width: 40%;\n right: 0;\n position: absolute;\n filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));\n background: rgba(0,0,0,.65);\n min-width: 320px;\n }\n .yh-sub-article-container {\n display: flex;\n justify-content: space-between;\n }\n .yh-sub-article {\n width: 23.25%;\n }\n .yh-sub-article p.yh-sub-article--title {\n font-weight: bold;\n }\n .yh-sub-article img {\n width: 100%;\n height: 150px;\n object-fit: cover;\n border-radius: 15px;\n }\n .yh-sub-article img[src=\'' + props.thumbnail + '\']{\n object-fit: contain;\n }\n .yh-sub-article--title {\n font-weight: bold;\n margin-top: .25rem;\n font-size: 1rem;\n margin-bottom: .25rem;\n }\n .yh-sub-article--info {\n font-size: .8rem;\n margin-bottom: 0;\n\n }\n @media screen and (max-width: 968px) {\n .yh-sub-article-container {\n flex-wrap: wrap;\n }\n .yh-sub-article {\n width: 48%;\n margin-bottom: 1rem;\n }\n }\n '
124
126
  )
125
127
  );
126
128
  };
@@ -6,8 +6,8 @@ var React = require('react');
6
6
  var index = require('./index-187c967e.js');
7
7
  var index$1 = require('./index-eadd5035.js');
8
8
  var smoothscroll = require('./smoothscroll-99df7f93.js');
9
- var urlFor = require('./urlFor.js');
10
- var main = require('./main-025fdc78.js');
9
+ var index$2 = require('./index-efca863c.js');
10
+ var main = require('./main-f1c77adb.js');
11
11
  require('./_commonjsHelpers-06173234.js');
12
12
  require('./es6.string.iterator-c2573ffd.js');
13
13
  require('./_to-object-6de10e57.js');
@@ -18,16 +18,15 @@ require('./_library-dd23b178.js');
18
18
  require('./core.get-iterator-method-f474eacc.js');
19
19
  require('react-dom');
20
20
  require('prop-types');
21
- require('./index-efca863c.js');
22
21
 
23
22
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
24
23
 
25
24
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
26
25
 
27
- /*
28
- GROQ query -
29
- accepts an array of title, URL
30
- `https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
26
+ /*
27
+ GROQ query -
28
+ accepts an array of title, URL
29
+ `https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
31
30
  */
32
31
 
33
32
  var YoutubeGroup = function YoutubeGroup(props) {
@@ -57,6 +56,11 @@ var YoutubeGroup = function YoutubeGroup(props) {
57
56
  tileHeight = _useState8[0],
58
57
  setTileHeight = _useState8[1];
59
58
 
59
+ var urlFor = function urlFor(source, client) {
60
+ var builder = index$2.imageUrlBuilder(client);
61
+ return builder.image(source).auto('format');
62
+ };
63
+
60
64
  React.useEffect(function () {
61
65
  //IE11 Polyfill
62
66
  smoothscroll.smoothscroll.polyfill();
@@ -250,7 +254,7 @@ var YoutubeGroup = function YoutubeGroup(props) {
250
254
  var url = video.url;
251
255
  var thumbnail = void 0;
252
256
  if (video.thumbnail && video.thumbnail.asset) {
253
- thumbnail = urlFor({ source: video.thumbnail, client: props.client });
257
+ thumbnail = urlFor(video.thumbnail, props.client);
254
258
  } else if (_typeof._typeof(video.thumbnail == 'string')) {
255
259
  thumbnail = video.thumbnail;
256
260
  } else {
@@ -305,7 +309,7 @@ var YoutubeGroup = function YoutubeGroup(props) {
305
309
  var _url = '' + video.link;
306
310
  var _thumbnail = void 0;
307
311
  if (video.thumbnail && video.thumbnail.asset) {
308
- _thumbnail = urlFor({ source: video.thumbnail, client: props.client });
312
+ _thumbnail = urlFor(video.thumbnail, props.client);
309
313
  } else {
310
314
  _thumbnail = 'https://img.youtube.com/vi/' + index.getYoutubeId(video.url) + '/hqdefault.jpg';
311
315
  }
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  require('react');
4
- var getSerializers = require('./index-55c6de08.js');
4
+ var getSerializers = require('./index-70971c54.js');
5
5
  require('./BlockContent-36e54d77.js');
6
6
  require('./entities-3f9d0f2f.js');
7
7
  require('./slicedToArray-5d1bc3b3.js');
@@ -11,10 +11,8 @@ require('./es6.string.iterator-c2573ffd.js');
11
11
  require('./_to-object-6de10e57.js');
12
12
  require('./core.get-iterator-method-f474eacc.js');
13
13
  require('react-bootstrap');
14
- require('./urlFor.js');
15
14
  require('./index-efca863c.js');
16
- require('./index-fc2f1ca2.js');
17
- require('./events-1b438fe7.js');
15
+ require('./index-0e4427c8.js');
18
16
  require('prop-types');
19
17
  require('next/router');
20
18
  require('./index-187c967e.js');
@@ -25,7 +23,7 @@ require('./asyncToGenerator-58c289d9.js');
25
23
  require('./_library-dd23b178.js');
26
24
  require('./_iter-detect-55a5657a.js');
27
25
  require('./Segment.js');
28
- require('./main-025fdc78.js');
26
+ require('./main-f1c77adb.js');
29
27
  require('./extends-29bdbc6d.js');
30
28
  require('./_object-pie-083f2dd6.js');
31
29
  require('./index-eadd5035.js');
@@ -52,8 +50,8 @@ require('react-bootstrap/Col');
52
50
  require('./inherits-c2065b95.js');
53
51
  require('./_object-sap-a175b4a9.js');
54
52
  require('./define-property-c88be878.js');
55
- require('./index.esm-974f47d9.js');
56
- require('./iconBase-68959171.js');
53
+ require('./index.esm-00a6aade.js');
54
+ require('./iconBase-be4097c0.js');
57
55
  require('react-bootstrap/Figure');
58
56
 
59
57
 
@@ -4,18 +4,18 @@ var _extends = require('./extends-29bdbc6d.js');
4
4
  var toConsumableArray = require('./toConsumableArray-ddb70795.js');
5
5
 
6
6
  var getContentPlacementUrl = function getContentPlacementUrl(cp) {
7
- var cp_url = '';
8
- if (cp.ancestor && typeof cp.ancestor == 'string') {
9
- cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
10
- }
7
+ var cp_url = '';
8
+ if (cp.ancestor && typeof cp.ancestor == 'string') {
9
+ cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
10
+ }
11
11
 
12
- if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
13
- cp_url += (cp_url === '' ? '' : '/') + cp.parent;
14
- }
12
+ if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
13
+ cp_url += (cp_url === '' ? '' : '/') + cp.parent;
14
+ }
15
15
 
16
- cp_url += (cp_url === '' ? '' : '/') + cp.path;
16
+ cp_url += (cp_url === '' ? '' : '/') + cp.path;
17
17
 
18
- return cp_url;
18
+ return cp_url;
19
19
  };
20
20
 
21
21
  var getTargeting = function getTargeting(props) {
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./extends-29bdbc6d.js');
4
4
  require('./toConsumableArray-ddb70795.js');
5
- var getTargeting = require('./getTargeting-be6168ad.js');
5
+ var getTargeting = require('./getTargeting-a100d6e5.js');
6
6
  require('./_commonjsHelpers-06173234.js');
7
7
  require('./_to-object-6de10e57.js');
8
8
  require('./_object-pie-083f2dd6.js');
@@ -1,4 +1,28 @@
1
- import { createContext, createElement } from 'react';
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+
5
+ function _interopNamespace(e) {
6
+ if (e && e.__esModule) return e;
7
+ var n = Object.create(null);
8
+ if (e) {
9
+ Object.keys(e).forEach(function (k) {
10
+ if (k !== 'default') {
11
+ var d = Object.getOwnPropertyDescriptor(e, k);
12
+ Object.defineProperty(n, k, d.get ? d : {
13
+ enumerable: true,
14
+ get: function () {
15
+ return e[k];
16
+ }
17
+ });
18
+ }
19
+ });
20
+ }
21
+ n['default'] = e;
22
+ return Object.freeze(n);
23
+ }
24
+
25
+ var React__namespace = /*#__PURE__*/_interopNamespace(React);
2
26
 
3
27
  var DefaultContext = {
4
28
  color: undefined,
@@ -7,7 +31,7 @@ var DefaultContext = {
7
31
  style: undefined,
8
32
  attr: undefined
9
33
  };
10
- var IconContext = createContext && createContext(DefaultContext);
34
+ var IconContext = React__namespace.createContext && React__namespace.createContext(DefaultContext);
11
35
 
12
36
  var __assign = undefined && undefined.__assign || function () {
13
37
  __assign = Object.assign || function (t) {
@@ -34,7 +58,7 @@ var __rest = undefined && undefined.__rest || function (s, e) {
34
58
 
35
59
  function Tree2Element(tree) {
36
60
  return tree && tree.map(function (node, i) {
37
- return createElement(node.tag, __assign({
61
+ return React__namespace.createElement(node.tag, __assign({
38
62
  key: i
39
63
  }, node.attr), Tree2Element(node.child));
40
64
  });
@@ -42,7 +66,7 @@ function Tree2Element(tree) {
42
66
 
43
67
  function GenIcon(data) {
44
68
  return function (props) {
45
- return createElement(IconBase, __assign({
69
+ return React__namespace.createElement(IconBase, __assign({
46
70
  attr: __assign({}, data.attr)
47
71
  }, props), Tree2Element(data.child));
48
72
  };
@@ -58,7 +82,7 @@ function IconBase(props) {
58
82
  title = props.title,
59
83
  svgProps = __rest(props, ["attr", "title"]);
60
84
 
61
- return createElement("svg", __assign({
85
+ return React__namespace.createElement("svg", __assign({
62
86
  stroke: "currentColor",
63
87
  fill: "currentColor",
64
88
  strokeWidth: "0"
@@ -70,12 +94,13 @@ function IconBase(props) {
70
94
  height: computedSize,
71
95
  width: computedSize,
72
96
  xmlns: "http://www.w3.org/2000/svg"
73
- }), title && createElement("title", null, title), props.children);
97
+ }), title && React__namespace.createElement("title", null, title), props.children);
74
98
  };
75
99
 
76
- return IconContext !== undefined ? createElement(IconContext.Consumer, null, function (conf) {
100
+ return IconContext !== undefined ? React__namespace.createElement(IconContext.Consumer, null, function (conf) {
77
101
  return elem(conf);
78
102
  }) : elem(DefaultContext);
79
103
  }
80
104
 
81
- export { GenIcon as G, IconContext as I };
105
+ exports.GenIcon = GenIcon;
106
+ exports.IconContext = IconContext;