@mjhls/mjh-framework 1.0.719 → 1.0.720-beta.0

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 (280) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AD.js +9 -10
  3. package/dist/cjs/AD300x250.js +24 -25
  4. package/dist/cjs/AD300x250x600.js +24 -25
  5. package/dist/cjs/AD728x90.js +27 -28
  6. package/dist/cjs/ADFloatingFooter.js +26 -27
  7. package/dist/cjs/ADFooter.js +14 -15
  8. package/dist/cjs/ADGutter.js +26 -27
  9. package/dist/cjs/{ADInfeed-2c7a6dd8.js → ADInfeed-5a561d7c.js} +11 -13
  10. package/dist/cjs/ADSkyscraper.js +26 -27
  11. package/dist/cjs/ADSponsoredResources.js +26 -27
  12. package/dist/cjs/ADWebcast.js +26 -27
  13. package/dist/cjs/ADWelcome.js +30 -31
  14. package/dist/cjs/{ADlgInfeed-fb101797.js → ADlgInfeed-c50f81d4.js} +8 -9
  15. package/dist/cjs/AccordionPanel.js +29 -31
  16. package/dist/cjs/AdSlot.js +31 -32
  17. package/dist/cjs/AdSlotsProvider.js +16 -17
  18. package/dist/cjs/AlphabeticList.js +24 -25
  19. package/dist/cjs/ArticleCarousel.js +23 -24
  20. package/dist/cjs/ArticleProgramLandingPage.js +54 -55
  21. package/dist/cjs/ArticleSeriesLandingPage.js +38 -39
  22. package/dist/cjs/ArticleSeriesListing.js +59 -60
  23. package/dist/cjs/Auth.js +534 -820
  24. package/dist/cjs/{AuthorComponent-5fa89df5.js → AuthorComponent-bb831b74.js} +13 -14
  25. package/dist/cjs/Beam.js +9 -9
  26. package/dist/cjs/{BlockContent-eca358e4.js → BlockContent-091a991f.js} +24 -25
  27. package/dist/cjs/Breadcrumbs.js +27 -29
  28. package/dist/cjs/CMEDeck.js +83 -83
  29. package/dist/cjs/Column1.js +11 -14
  30. package/dist/cjs/Column2.js +32 -35
  31. package/dist/cjs/Column3.js +55 -58
  32. package/dist/cjs/ConferenceArticleCard.js +22 -23
  33. package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
  34. package/dist/cjs/DeckContent.js +94 -98
  35. package/dist/cjs/DeckQueue.js +86 -90
  36. package/dist/cjs/{Dfp-a863cf48.js → Dfp-ce7ac168.js} +30 -31
  37. package/dist/cjs/EventsDeck.js +131 -138
  38. package/dist/cjs/ExternalResources.js +76 -77
  39. package/dist/cjs/Feature.js +25 -27
  40. package/dist/cjs/ForbesHero.js +40 -41
  41. package/dist/cjs/GridContent.js +177 -181
  42. package/dist/cjs/GridHero.js +42 -43
  43. package/dist/cjs/GroupDeck.js +58 -59
  44. package/dist/cjs/HamMagazine.js +130 -135
  45. package/dist/cjs/Header.js +11 -13
  46. package/dist/cjs/Hero.js +12 -13
  47. package/dist/cjs/HighlightenVideo.js +17 -18
  48. package/dist/cjs/HorizontalArticleListing.js +68 -69
  49. package/dist/cjs/HorizontalHero.js +25 -26
  50. package/dist/cjs/IssueContentDeck.js +72 -77
  51. package/dist/cjs/IssueDeck.js +70 -75
  52. package/dist/cjs/IssueLanding.js +40 -41
  53. package/dist/cjs/LeftNav.js +36 -38
  54. package/dist/cjs/MasterDeck.js +71 -72
  55. package/dist/cjs/NavDvm.js +75 -80
  56. package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
  57. package/dist/cjs/NavMagazine.js +138 -143
  58. package/dist/cjs/NavNative.js +115 -123
  59. package/dist/cjs/NavNormal.js +48 -53
  60. package/dist/cjs/OncliveHero.js +20 -20
  61. package/dist/cjs/OncliveLargeHero.js +66 -67
  62. package/dist/cjs/PageFilter.js +14 -15
  63. package/dist/cjs/PartnerDetailListing.js +105 -106
  64. package/dist/cjs/PdfDownload.js +8 -9
  65. package/dist/cjs/PopUpModal.js +19 -21
  66. package/dist/cjs/PublicationDeck.js +61 -66
  67. package/dist/cjs/PublicationLanding.js +74 -78
  68. package/dist/cjs/QueueDeckExpanded.js +292 -292
  69. package/dist/cjs/RecentNews.js +23 -24
  70. package/dist/cjs/RelatedContent.js +24 -25
  71. package/dist/cjs/RelatedTopicsDropdown.js +19 -22
  72. package/dist/cjs/RolesDeck.js +27 -32
  73. package/dist/cjs/Search.js +18 -22
  74. package/dist/cjs/Segment.js +7 -7
  75. package/dist/cjs/SetCookie.js +1 -1
  76. package/dist/cjs/SideFooter.js +35 -36
  77. package/dist/cjs/SocialIcons.js +9 -10
  78. package/dist/cjs/{SocialSearchComponent-45c54bed.js → SocialSearchComponent-8dd468fd.js} +36 -40
  79. package/dist/cjs/SocialShare.js +29 -31
  80. package/dist/cjs/TaxonomyCard.js +57 -62
  81. package/dist/cjs/TaxonomyDescription.js +51 -52
  82. package/dist/cjs/TemplateNormal.js +72 -73
  83. package/dist/cjs/ThumbnailCard.js +20 -22
  84. package/dist/cjs/Ustream.js +26 -27
  85. package/dist/cjs/VerticalHero.js +17 -18
  86. package/dist/cjs/VideoProgramLandingPage.js +70 -74
  87. package/dist/cjs/VideoSeriesCard.js +31 -32
  88. package/dist/cjs/VideoSeriesFilter.js +19 -19
  89. package/dist/cjs/VideoSeriesLandingPage.js +46 -47
  90. package/dist/cjs/VideoSeriesListing.js +74 -75
  91. package/dist/cjs/View.js +232 -235
  92. package/dist/cjs/YahooHero.js +39 -40
  93. package/dist/cjs/YoutubeGroup.js +72 -71
  94. package/dist/cjs/{_is-array-63ae4740.js → _is-array-754e012d.js} +6 -6
  95. package/dist/cjs/{_iter-detect-2613ffa1.js → _iter-detect-60b2f026.js} +2 -2
  96. package/dist/cjs/{_object-sap-c5bd707d.js → _object-sap-5e74ba08.js} +1 -1
  97. package/dist/cjs/{_object-to-array-bec5fcf2.js → _object-to-array-5762f850.js} +1 -1
  98. package/dist/cjs/{_set-species-a8cfdb84.js → _set-species-f92c67c5.js} +4 -4
  99. package/dist/cjs/{_to-object-821a2927.js → _to-object-329a650b.js} +4 -4
  100. package/dist/cjs/{asyncToGenerator-2edcb6ad.js → asyncToGenerator-533d476a.js} +8 -8
  101. package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
  102. package/dist/cjs/{core.get-iterator-method-b4615fd3.js → core.get-iterator-method-f62321d4.js} +2 -2
  103. package/dist/cjs/{define-property-aff11f8a.js → define-property-f4d12f4e.js} +1 -1
  104. package/dist/cjs/{defineProperty-d6fbb280.js → defineProperty-55548b25.js} +1 -1
  105. package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
  106. package/dist/cjs/{es6.string.iterator-20d42c53.js → es6.string.iterator-cc0bbaa4.js} +2 -2
  107. package/dist/cjs/{extends-1e24fc8d.js → extends-60837c34.js} +1 -1
  108. package/dist/cjs/getRelatedArticle.js +13 -424
  109. package/dist/cjs/getSerializers.js +42 -42
  110. package/dist/cjs/{getTargeting-497b581d.js → getTargeting-9af0ef69.js} +3 -3
  111. package/dist/cjs/getTargeting.js +7 -7
  112. package/dist/cjs/iconBase-68959171.js +3 -0
  113. package/dist/cjs/{index-4d74ffd6.js → index-3294d3bc.js} +41 -40
  114. package/dist/cjs/{index-7d880c49.js → index-792274b1.js} +898 -921
  115. package/dist/cjs/{index-5ad2b070.js → index-8bf6c863.js} +48 -30
  116. package/dist/cjs/{index-d48b231c.js → index-be0c82be.js} +25 -31
  117. package/dist/cjs/{index-80f57cff.js → index-da796b8c.js} +15 -17
  118. package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
  119. package/dist/cjs/{index.esm-8123cf40.js → index.esm-4d410430.js} +20 -20
  120. package/dist/cjs/{index.esm-3b9b8952.js → index.esm-66ffa47a.js} +9 -4
  121. package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
  122. package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
  123. package/dist/cjs/index.js +133 -133
  124. package/dist/cjs/{inherits-2eb23889.js → inherits-c9f99d47.js} +5 -5
  125. package/dist/cjs/{keys-95c064c9.js → keys-a586b7a0.js} +2 -2
  126. package/dist/cjs/{lodash-4ef21f0f.js → lodash-fc2922d0.js} +23 -72
  127. package/dist/cjs/{main-dc082238.js → main-02daeefe.js} +80 -116
  128. package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
  129. package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
  130. package/dist/cjs/{slicedToArray-db24842a.js → slicedToArray-8f385299.js} +4 -4
  131. package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
  132. package/dist/cjs/{stringify-01cf47f7.js → stringify-7c5aff47.js} +1 -1
  133. package/dist/cjs/timeDifferenceCalc.js +1 -1
  134. package/dist/cjs/{toConsumableArray-cf0865fc.js → toConsumableArray-9a3476fe.js} +4 -4
  135. package/dist/cjs/{typeof-97065d40.js → typeof-725500bc.js} +7 -7
  136. package/dist/cjs/urlFor.js +2 -2
  137. package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
  138. package/dist/cjs/{visibility-sensor-8b54af99.js → visibility-sensor-0c45a583.js} +5 -7
  139. package/dist/cjs/{web.dom.iterable-4480325a.js → web.dom.iterable-a0e279c1.js} +3 -3
  140. package/dist/esm/AD.js +7 -7
  141. package/dist/esm/AD300x250.js +21 -21
  142. package/dist/esm/AD300x250x600.js +21 -21
  143. package/dist/esm/AD728x90.js +24 -24
  144. package/dist/esm/ADFloatingFooter.js +23 -23
  145. package/dist/esm/ADFooter.js +11 -11
  146. package/dist/esm/ADGutter.js +23 -23
  147. package/dist/esm/{ADInfeed-3ee501b9.js → ADInfeed-bb62ee44.js} +7 -7
  148. package/dist/esm/ADSkyscraper.js +23 -23
  149. package/dist/esm/ADSponsoredResources.js +23 -23
  150. package/dist/esm/ADWebcast.js +23 -23
  151. package/dist/esm/ADWelcome.js +27 -27
  152. package/dist/esm/{ADlgInfeed-0bf06b17.js → ADlgInfeed-ef0a892e.js} +6 -6
  153. package/dist/esm/AccordionPanel.js +24 -24
  154. package/dist/esm/AdSlot.js +23 -23
  155. package/dist/esm/AdSlotsProvider.js +13 -13
  156. package/dist/esm/AlphabeticList.js +21 -21
  157. package/dist/esm/ArticleCarousel.js +20 -20
  158. package/dist/esm/ArticleProgramLandingPage.js +51 -51
  159. package/dist/esm/ArticleSeriesLandingPage.js +35 -35
  160. package/dist/esm/ArticleSeriesListing.js +54 -54
  161. package/dist/esm/Auth.js +517 -799
  162. package/dist/esm/{AuthorComponent-c7ff069f.js → AuthorComponent-34b16174.js} +11 -11
  163. package/dist/esm/Beam.js +9 -9
  164. package/dist/esm/{BlockContent-d8cd739c.js → BlockContent-e9b4ddcf.js} +4 -4
  165. package/dist/esm/Breadcrumbs.js +17 -17
  166. package/dist/esm/CMEDeck.js +79 -79
  167. package/dist/esm/Column1.js +5 -5
  168. package/dist/esm/Column2.js +26 -26
  169. package/dist/esm/Column3.js +48 -48
  170. package/dist/esm/ConferenceArticleCard.js +18 -18
  171. package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
  172. package/dist/esm/DeckContent.js +76 -76
  173. package/dist/esm/DeckQueue.js +64 -64
  174. package/dist/esm/{Dfp-5d779279.js → Dfp-e9a07597.js} +20 -20
  175. package/dist/esm/EventsDeck.js +84 -84
  176. package/dist/esm/ExternalResources.js +70 -70
  177. package/dist/esm/Feature.js +18 -18
  178. package/dist/esm/ForbesHero.js +34 -34
  179. package/dist/esm/GridContent.js +139 -139
  180. package/dist/esm/GridHero.js +36 -36
  181. package/dist/esm/GroupDeck.js +46 -46
  182. package/dist/esm/HamMagazine.js +104 -104
  183. package/dist/esm/Header.js +7 -7
  184. package/dist/esm/Hero.js +9 -9
  185. package/dist/esm/HighlightenVideo.js +14 -14
  186. package/dist/esm/HorizontalArticleListing.js +65 -65
  187. package/dist/esm/HorizontalHero.js +21 -21
  188. package/dist/esm/IssueContentDeck.js +49 -49
  189. package/dist/esm/IssueDeck.js +46 -46
  190. package/dist/esm/IssueLanding.js +37 -37
  191. package/dist/esm/LeftNav.js +32 -32
  192. package/dist/esm/MasterDeck.js +65 -65
  193. package/dist/esm/NavDvm.js +57 -57
  194. package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
  195. package/dist/esm/NavMagazine.js +114 -114
  196. package/dist/esm/NavNative.js +91 -91
  197. package/dist/esm/NavNormal.js +36 -36
  198. package/dist/esm/OncliveHero.js +17 -16
  199. package/dist/esm/OncliveLargeHero.js +59 -59
  200. package/dist/esm/PageFilter.js +12 -12
  201. package/dist/esm/PartnerDetailListing.js +101 -101
  202. package/dist/esm/PdfDownload.js +6 -6
  203. package/dist/esm/PopUpModal.js +14 -14
  204. package/dist/esm/PublicationDeck.js +38 -38
  205. package/dist/esm/PublicationLanding.js +50 -50
  206. package/dist/esm/QueueDeckExpanded.js +272 -272
  207. package/dist/esm/RecentNews.js +20 -20
  208. package/dist/esm/RelatedContent.js +19 -19
  209. package/dist/esm/RelatedTopicsDropdown.js +11 -11
  210. package/dist/esm/RolesDeck.js +13 -13
  211. package/dist/esm/Search.js +12 -12
  212. package/dist/esm/Segment.js +7 -7
  213. package/dist/esm/SetCookie.js +1 -1
  214. package/dist/esm/SideFooter.js +31 -31
  215. package/dist/esm/SocialIcons.js +7 -7
  216. package/dist/esm/{SocialSearchComponent-c3216d1a.js → SocialSearchComponent-a2ae84d1.js} +28 -28
  217. package/dist/esm/SocialShare.js +25 -25
  218. package/dist/esm/TaxonomyCard.js +41 -41
  219. package/dist/esm/TaxonomyDescription.js +46 -46
  220. package/dist/esm/TemplateNormal.js +66 -66
  221. package/dist/esm/ThumbnailCard.js +13 -13
  222. package/dist/esm/Ustream.js +23 -23
  223. package/dist/esm/VerticalHero.js +13 -13
  224. package/dist/esm/VideoProgramLandingPage.js +60 -60
  225. package/dist/esm/VideoSeriesCard.js +24 -24
  226. package/dist/esm/VideoSeriesFilter.js +16 -16
  227. package/dist/esm/VideoSeriesLandingPage.js +39 -39
  228. package/dist/esm/VideoSeriesListing.js +68 -68
  229. package/dist/esm/View.js +216 -215
  230. package/dist/esm/YahooHero.js +34 -34
  231. package/dist/esm/YoutubeGroup.js +56 -54
  232. package/dist/esm/{_is-array-674f71ec.js → _is-array-58e95429.js} +6 -6
  233. package/dist/esm/{_iter-detect-48516cd3.js → _iter-detect-5d49a330.js} +2 -2
  234. package/dist/esm/{_object-sap-fd3054d0.js → _object-sap-964b6feb.js} +1 -1
  235. package/dist/esm/{_object-to-array-8f409e54.js → _object-to-array-7e804fce.js} +1 -1
  236. package/dist/esm/{_set-species-494ed292.js → _set-species-3f8319f5.js} +4 -4
  237. package/dist/esm/{_to-object-97770c52.js → _to-object-a4107da3.js} +5 -5
  238. package/dist/esm/{asyncToGenerator-2bd4099a.js → asyncToGenerator-502f13b4.js} +8 -8
  239. package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
  240. package/dist/esm/{core.get-iterator-method-d1d5ed02.js → core.get-iterator-method-e1de7503.js} +2 -2
  241. package/dist/esm/{define-property-ec6d528d.js → define-property-8af5f002.js} +1 -1
  242. package/dist/esm/{defineProperty-ea516b15.js → defineProperty-94fd8bfc.js} +1 -1
  243. package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
  244. package/dist/esm/{es6.string.iterator-aa6068a3.js → es6.string.iterator-c990c18c.js} +3 -3
  245. package/dist/esm/{extends-31d65aba.js → extends-eb69e8ac.js} +1 -1
  246. package/dist/esm/getRelatedArticle.js +13 -424
  247. package/dist/esm/getSerializers.js +42 -42
  248. package/dist/esm/{getTargeting-2d402d66.js → getTargeting-7211f12c.js} +2 -2
  249. package/dist/esm/getTargeting.js +7 -7
  250. package/dist/esm/{index-752d1dae.js → index-5f9f807a.js} +10 -10
  251. package/dist/esm/{index-3f5c03b2.js → index-73819142.js} +25 -31
  252. package/dist/esm/{index-669ff425.js → index-a9e53f80.js} +43 -24
  253. package/dist/esm/{index-998e7b12.js → index-c3a5ff39.js} +839 -855
  254. package/dist/esm/{index-ccb770c7.js → index-ef6d5dcf.js} +41 -40
  255. package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
  256. package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
  257. package/dist/esm/{index.esm-d6f88d94.js → index.esm-b08f4b04.js} +9 -4
  258. package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
  259. package/dist/esm/{index.esm-8016b507.js → index.esm-fd746768.js} +18 -17
  260. package/dist/esm/index.js +111 -111
  261. package/dist/esm/{inherits-5906fbea.js → inherits-fb9b6e8f.js} +5 -5
  262. package/dist/esm/{keys-a0b0c7a4.js → keys-8eda7a5c.js} +2 -2
  263. package/dist/esm/{lodash-ad27652f.js → lodash-17fdfebb.js} +23 -72
  264. package/dist/esm/{main-1450d277.js → main-e4a934b2.js} +78 -113
  265. package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
  266. package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-a7d5c5c7.js} +20 -20
  267. package/dist/esm/{slicedToArray-cdeaee08.js → slicedToArray-641f241f.js} +4 -4
  268. package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
  269. package/dist/esm/{stringify-d4839bab.js → stringify-4330ccdc.js} +1 -1
  270. package/dist/esm/timeDifferenceCalc.js +1 -1
  271. package/dist/esm/{toConsumableArray-fa2dcda7.js → toConsumableArray-43aa614d.js} +4 -4
  272. package/dist/esm/{typeof-e9cea9e8.js → typeof-6435ba1c.js} +7 -7
  273. package/dist/esm/urlFor.js +1 -1
  274. package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
  275. package/dist/esm/{visibility-sensor-082c757b.js → visibility-sensor-0baa4eea.js} +2 -2
  276. package/dist/esm/{web.dom.iterable-035980f3.js → web.dom.iterable-4439f05a.js} +3 -3
  277. package/package.json +1 -1
  278. package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
  279. package/dist/cjs/index-bd6c9f56.js +0 -211
  280. package/dist/esm/index-db3bb315.js +0 -207
@@ -58,35 +58,35 @@ function parseSource(source) {
58
58
  if (typeof source === 'string' && isUrl(source)) {
59
59
  // Someone passed an existing image url?
60
60
  image = {
61
- asset: { _ref: urlToId(source) },
61
+ asset: { _ref: urlToId(source) }
62
62
  };
63
63
  }
64
64
  else if (typeof source === 'string') {
65
65
  // Just an asset id
66
66
  image = {
67
- asset: { _ref: source },
67
+ asset: { _ref: source }
68
68
  };
69
69
  }
70
70
  else if (isRef(source)) {
71
71
  // We just got passed an asset directly
72
72
  image = {
73
- asset: source,
73
+ asset: source
74
74
  };
75
75
  }
76
76
  else if (isAsset(source)) {
77
77
  // If we were passed an image asset document
78
78
  image = {
79
79
  asset: {
80
- _ref: source._id || '',
81
- },
80
+ _ref: source._id || ''
81
+ }
82
82
  };
83
83
  }
84
84
  else if (isAssetStub(source)) {
85
85
  // If we were passed a partial asset (`url`, but no `_id`)
86
86
  image = {
87
87
  asset: {
88
- _ref: urlToId(source.asset.url),
89
- },
88
+ _ref: urlToId(source.asset.url)
89
+ }
90
90
  };
91
91
  }
92
92
  else if (typeof source.asset === 'object') {
@@ -127,7 +127,7 @@ function applyDefaults(image) {
127
127
  left: 0,
128
128
  top: 0,
129
129
  bottom: 0,
130
- right: 0,
130
+ right: 0
131
131
  };
132
132
  }
133
133
  if (!result.hotspot) {
@@ -135,7 +135,7 @@ function applyDefaults(image) {
135
135
  x: 0.5,
136
136
  y: 0.5,
137
137
  height: 1.0,
138
- width: 1.0,
138
+ width: 1.0
139
139
  };
140
140
  }
141
141
  return result;
@@ -182,8 +182,7 @@ exports.SPEC_NAME_TO_URL_NAME_MAPPINGS = [
182
182
  ['crop', 'crop'],
183
183
  ['saturation', 'sat'],
184
184
  ['auto', 'auto'],
185
- ['dpr', 'dpr'],
186
- ['pad', 'pad'],
185
+ ['dpr', 'dpr']
187
186
  ];
188
187
  function urlForImage(options) {
189
188
  var spec = __assign({}, (options || {}));
@@ -202,7 +201,7 @@ function urlForImage(options) {
202
201
  left: cropLeft,
203
202
  top: cropTop,
204
203
  width: Math.round(asset.width - image.crop.right * asset.width - cropLeft),
205
- height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop),
204
+ height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop)
206
205
  };
207
206
  // Compute hot spot rect in terms of pixel coordinates
208
207
  var hotSpotVerticalRadius = (image.hotspot.height * asset.height) / 2;
@@ -213,7 +212,7 @@ function urlForImage(options) {
213
212
  left: hotSpotCenterX - hotSpotHorizontalRadius,
214
213
  top: hotSpotCenterY - hotSpotVerticalRadius,
215
214
  right: hotSpotCenterX + hotSpotHorizontalRadius,
216
- bottom: hotSpotCenterY + hotSpotVerticalRadius,
215
+ bottom: hotSpotCenterY + hotSpotVerticalRadius
217
216
  };
218
217
  // If irrelevant, or if we are requested to: don't perform crop/fit based on
219
218
  // the crop/hotspot.
@@ -295,7 +294,7 @@ function fit(source, spec) {
295
294
  left: Math.round(left),
296
295
  top: Math.round(top_2),
297
296
  width: Math.round(width),
298
- height: Math.round(height),
297
+ height: Math.round(height)
299
298
  };
300
299
  }
301
300
  else {
@@ -317,21 +316,21 @@ function fit(source, spec) {
317
316
  left: Math.max(0, Math.floor(left)),
318
317
  top: Math.max(0, Math.floor(top_3)),
319
318
  width: Math.round(width),
320
- height: Math.round(height),
319
+ height: Math.round(height)
321
320
  };
322
321
  }
323
322
  return {
324
323
  width: imgWidth,
325
324
  height: imgHeight,
326
- rect: cropRect,
325
+ rect: cropRect
327
326
  };
328
327
  }
329
328
 
330
329
  });
331
330
 
332
331
  unwrapExports(urlForImage_1);
333
- urlForImage_1.parseSource;
334
- urlForImage_1.SPEC_NAME_TO_URL_NAME_MAPPINGS;
332
+ var urlForImage_2 = urlForImage_1.parseSource;
333
+ var urlForImage_3 = urlForImage_1.SPEC_NAME_TO_URL_NAME_MAPPINGS;
335
334
 
336
335
  var builder = createCommonjsModule(function (module, exports) {
337
336
  var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
@@ -357,7 +356,7 @@ var urlForImage_1$1 = __importStar(urlForImage_1);
357
356
  var validFits = ['clip', 'crop', 'fill', 'fillmax', 'max', 'scale', 'min'];
358
357
  var validCrops = ['top', 'bottom', 'left', 'right', 'center', 'focalpoint', 'entropy'];
359
358
  var validAutoModes = ['format'];
360
- function isSanityClientLike(client) {
359
+ function isSanityClient(client) {
361
360
  return client ? typeof client.clientConfig === 'object' : false;
362
361
  }
363
362
  function rewriteSpecName(key) {
@@ -374,14 +373,13 @@ function rewriteSpecName(key) {
374
373
  function urlBuilder(options) {
375
374
  // Did we get a SanityClient?
376
375
  var client = options;
377
- if (isSanityClientLike(client)) {
376
+ if (isSanityClient(client)) {
378
377
  // Inherit config from client
379
- var _a = client.clientConfig, apiUrl = _a.apiHost, projectId = _a.projectId, dataset = _a.dataset;
380
- var apiHost = apiUrl || 'https://api.sanity.io';
378
+ var _a = client.clientConfig, apiHost = _a.apiHost, projectId = _a.projectId, dataset = _a.dataset;
381
379
  return new ImageUrlBuilder(null, {
382
380
  baseUrl: apiHost.replace(/^https:\/\/api\./, 'https://cdn.'),
383
381
  projectId: projectId,
384
- dataset: dataset,
382
+ dataset: dataset
385
383
  });
386
384
  }
387
385
  // Or just accept the options as given
@@ -394,7 +392,7 @@ var ImageUrlBuilder = /** @class */ (function () {
394
392
  ? __assign(__assign({}, (parent.options || {})), (options || {})) : __assign({}, (options || {})); // Copy options
395
393
  }
396
394
  ImageUrlBuilder.prototype.withOptions = function (options) {
397
- var baseUrl = options.baseUrl || this.options.baseUrl;
395
+ var baseUrl = options.baseUrl || '';
398
396
  var newOptions = { baseUrl: baseUrl };
399
397
  for (var key in options) {
400
398
  if (options.hasOwnProperty(key)) {
@@ -488,7 +486,7 @@ var ImageUrlBuilder = /** @class */ (function () {
488
486
  ImageUrlBuilder.prototype.flipHorizontal = function () {
489
487
  return this.withOptions({ flipHorizontal: true });
490
488
  };
491
- // Flip image vertically
489
+ // Flip image verically
492
490
  ImageUrlBuilder.prototype.flipVertical = function () {
493
491
  return this.withOptions({ flipVertical: true });
494
492
  };
@@ -518,15 +516,11 @@ var ImageUrlBuilder = /** @class */ (function () {
518
516
  }
519
517
  return this.withOptions({ auto: value });
520
518
  };
521
- // Specify the number of pixels to pad the image
522
- ImageUrlBuilder.prototype.pad = function (pad) {
523
- return this.withOptions({ pad: pad });
524
- };
525
519
  // Gets the url based on the submitted parameters
526
520
  ImageUrlBuilder.prototype.url = function () {
527
521
  return urlForImage_1$1.default(this.options);
528
522
  };
529
- // Alias for url()
523
+ // Synonym for url()
530
524
  ImageUrlBuilder.prototype.toString = function () {
531
525
  return this.url();
532
526
  };
@@ -537,7 +531,7 @@ exports.ImageUrlBuilder = ImageUrlBuilder;
537
531
  });
538
532
 
539
533
  unwrapExports(builder);
540
- builder.ImageUrlBuilder;
534
+ var builder_1 = builder.ImageUrlBuilder;
541
535
 
542
536
  var node = createCommonjsModule(function (module) {
543
537
  var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
@@ -1,5 +1,5 @@
1
1
  import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
2
- import React from 'react';
2
+ import React__default from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
 
5
5
  var domain;
@@ -502,7 +502,7 @@ function loadGPTScript() {
502
502
  });
503
503
 
504
504
  unwrapExports(utils);
505
- utils.loadGPTScript;
505
+ var utils_1 = utils.loadGPTScript;
506
506
 
507
507
  var manager = createCommonjsModule(function (module, exports) {
508
508
 
@@ -530,6 +530,7 @@ var disableInitialLoadEnabled = false;
530
530
  var lazyLoadEnabled = false;
531
531
  var lazyLoadConfig = null;
532
532
  var servePersonalizedAds = true;
533
+ var serveCookies = true;
533
534
  var registeredSlots = {};
534
535
  var managerAlreadyInitialized = false;
535
536
  var globalTargetingArguments = {};
@@ -571,9 +572,15 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
571
572
  configurePersonalizedAds: function configurePersonalizedAds(value) {
572
573
  servePersonalizedAds = value;
573
574
  },
575
+ configureCookieOption: function configureCookieOption(value) {
576
+ serveCookies = value;
577
+ },
574
578
  personalizedAdsEnabled: function personalizedAdsEnabled() {
575
579
  return servePersonalizedAds;
576
580
  },
581
+ cookiesEnabled: function cookiesEnabled() {
582
+ return serveCookies;
583
+ },
577
584
  setAdSenseAttribute: function setAdSenseAttribute(key, value) {
578
585
  this.setAdSenseAttributes(_defineProperty({}, key, value));
579
586
  },
@@ -664,6 +671,7 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
664
671
  });
665
672
  });
666
673
  pubadsService.setRequestNonPersonalizedAds(_this.personalizedAdsEnabled() ? 0 : 1);
674
+ pubadsService.setCookieOptions(_this.cookiesEnabled() ? 0 : 1);
667
675
  });
668
676
  });
669
677
  }
@@ -775,13 +783,9 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
775
783
 
776
784
  googletag.cmd.push(function () {
777
785
  googletag.enableServices();
778
-
779
- if (!_this3.disableInitialLoadIsEnabled()) {
780
- slotsToInitialize.forEach(function (theSlotId) {
781
- googletag.display(theSlotId);
782
- });
783
- }
784
-
786
+ slotsToInitialize.forEach(function (theSlotId) {
787
+ googletag.display(theSlotId);
788
+ });
785
789
  resolve();
786
790
  });
787
791
  });
@@ -804,6 +808,7 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
804
808
  googletag.cmd.push(function () {
805
809
  var pubadsService = googletag.pubads();
806
810
  pubadsService.setRequestNonPersonalizedAds(_this5.personalizedAdsEnabled() ? 0 : 1);
811
+ pubadsService.setCookieOptions(_this5.cookiesEnabled() ? 0 : 1);
807
812
 
808
813
  var targetingArguments = _this5.getTargetingArguments(); // set global targetting arguments
809
814
 
@@ -870,17 +875,25 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
870
875
  }, slots);
871
876
  },
872
877
  refresh: function refresh() {
878
+ var _this6 = this;
879
+
880
+ for (var _len4 = arguments.length, slots = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
881
+ slots[_key4] = arguments[_key4];
882
+ }
883
+
873
884
  if (loadPromise === null) {
874
885
  this.load();
875
886
  } else {
876
- this.gptRefreshAds(Object.keys(this.getRefreshableSlots.apply(this, arguments)));
887
+ loadPromise.then(function () {
888
+ _this6.gptRefreshAds(Object.keys(_this6.getRefreshableSlots.apply(_this6, slots)));
889
+ });
877
890
  }
878
891
  },
879
892
  gptRefreshAds: function gptRefreshAds(slots) {
880
- var _this6 = this;
893
+ var _this7 = this;
881
894
 
882
895
  return this.getGoogletag().then(function (googletag) {
883
- _this6.configureOptions(googletag);
896
+ _this7.configureOptions(googletag);
884
897
 
885
898
  googletag.cmd.push(function () {
886
899
  var pubadsService = googletag.pubads();
@@ -891,17 +904,17 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
891
904
  });
892
905
  },
893
906
  reload: function reload() {
894
- var _this7 = this;
907
+ var _this8 = this;
895
908
 
896
909
  return this.destroyGPTSlots.apply(this, arguments).then(function () {
897
- return _this7.load();
910
+ return _this8.load();
898
911
  });
899
912
  },
900
913
  destroyGPTSlots: function destroyGPTSlots() {
901
- var _this8 = this;
914
+ var _this9 = this;
902
915
 
903
- for (var _len4 = arguments.length, slotsToDestroy = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
904
- slotsToDestroy[_key4] = arguments[_key4];
916
+ for (var _len5 = arguments.length, slotsToDestroy = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
917
+ slotsToDestroy[_key5] = arguments[_key5];
905
918
  }
906
919
 
907
920
  if (slotsToDestroy.length === 0) {
@@ -918,7 +931,7 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
918
931
  slots.push(slot);
919
932
  }
920
933
 
921
- _this8.getGoogletag().then(function (googletag) {
934
+ _this9.getGoogletag().then(function (googletag) {
922
935
  googletag.cmd.push(function () {
923
936
  if (managerAlreadyInitialized === true) {
924
937
  if (slotsToDestroy.length > 0) {
@@ -941,7 +954,7 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
941
954
  });
942
955
  },
943
956
  registerSlot: function registerSlot(_ref) {
944
- var _this9 = this;
957
+ var _this10 = this;
945
958
 
946
959
  var slotId = _ref.slotId,
947
960
  dfpNetworkId = _ref.dfpNetworkId,
@@ -980,7 +993,7 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
980
993
  gptSlot = slot.gptSlot;
981
994
 
982
995
  if (loading === false && !gptSlot) {
983
- _this9.load(slotId);
996
+ _this10.load(slotId);
984
997
  }
985
998
  }
986
999
  });
@@ -1027,7 +1040,7 @@ Object.defineProperty(exports, "__esModule", {
1027
1040
  });
1028
1041
  exports.default = exports.Context = void 0;
1029
1042
 
1030
- var _react = _interopRequireDefault(React);
1043
+ var _react = _interopRequireDefault(React__default);
1031
1044
 
1032
1045
  var _propTypes = _interopRequireDefault(PropTypes);
1033
1046
 
@@ -1170,6 +1183,8 @@ function (_React$Component) {
1170
1183
  value: function applyConfigs() {
1171
1184
  _manager.default.configurePersonalizedAds(this.props.personalizedAds);
1172
1185
 
1186
+ _manager.default.configureCookieOption(this.props.cookieOption);
1187
+
1173
1188
  _manager.default.configureSingleRequest(this.props.singleRequest);
1174
1189
 
1175
1190
  _manager.default.configureDisableInitialLoad(this.props.disableInitialLoad);
@@ -1266,6 +1281,7 @@ _defineProperty(DFPSlotsProvider, "propTypes", {
1266
1281
  autoReload: _propTypes.default.shape({
1267
1282
  dfpNetworkId: _propTypes.default.bool,
1268
1283
  personalizedAds: _propTypes.default.bool,
1284
+ cookieOption: _propTypes.default.bool,
1269
1285
  singleRequest: _propTypes.default.bool,
1270
1286
  disableInitialLoad: _propTypes.default.bool,
1271
1287
  adUnit: _propTypes.default.bool,
@@ -1277,6 +1293,7 @@ _defineProperty(DFPSlotsProvider, "propTypes", {
1277
1293
  }),
1278
1294
  dfpNetworkId: _propTypes.default.string.isRequired,
1279
1295
  personalizedAds: _propTypes.default.bool,
1296
+ cookieOption: _propTypes.default.bool,
1280
1297
  singleRequest: _propTypes.default.bool,
1281
1298
  disableInitialLoad: _propTypes.default.bool,
1282
1299
  adUnit: _propTypes.default.string,
@@ -1297,6 +1314,7 @@ _defineProperty(DFPSlotsProvider, "defaultProps", {
1297
1314
  autoReload: {
1298
1315
  dfpNetworkId: false,
1299
1316
  personalizedAds: false,
1317
+ cookieOption: false,
1300
1318
  singleRequest: false,
1301
1319
  disableInitialLoad: false,
1302
1320
  adUnit: false,
@@ -1307,6 +1325,7 @@ _defineProperty(DFPSlotsProvider, "defaultProps", {
1307
1325
  lazyLoad: false
1308
1326
  },
1309
1327
  personalizedAds: true,
1328
+ cookieOption: true,
1310
1329
  singleRequest: true,
1311
1330
  disableInitialLoad: false,
1312
1331
  collapseEmptyDivs: null,
@@ -1326,7 +1345,7 @@ if (Context === null) {
1326
1345
  });
1327
1346
 
1328
1347
  unwrapExports(dfpslotsprovider);
1329
- dfpslotsprovider.Context;
1348
+ var dfpslotsprovider_1 = dfpslotsprovider.Context;
1330
1349
 
1331
1350
  var adslot = createCommonjsModule(function (module, exports) {
1332
1351
 
@@ -1335,7 +1354,7 @@ Object.defineProperty(exports, "__esModule", {
1335
1354
  });
1336
1355
  exports.default = exports.AdSlot = void 0;
1337
1356
 
1338
- var _react = _interopRequireDefault(React);
1357
+ var _react = _interopRequireDefault(React__default);
1339
1358
 
1340
1359
  var _propTypes = _interopRequireDefault(PropTypes);
1341
1360
 
@@ -1622,7 +1641,7 @@ exports.default = _default;
1622
1641
  });
1623
1642
 
1624
1643
  unwrapExports(adslot);
1625
- adslot.AdSlot;
1644
+ var adslot_1 = adslot.AdSlot;
1626
1645
 
1627
1646
  var lib = createCommonjsModule(function (module, exports) {
1628
1647