@mjhls/mjh-framework 1.0.757 → 1.0.759-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 (286) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AD.js +9 -10
  3. package/dist/cjs/AD300x250.js +27 -28
  4. package/dist/cjs/AD300x250x600.js +27 -28
  5. package/dist/cjs/AD728x90.js +30 -31
  6. package/dist/cjs/ADFloatingFooter.js +29 -30
  7. package/dist/cjs/ADFooter.js +14 -15
  8. package/dist/cjs/ADGutter.js +29 -30
  9. package/dist/cjs/{ADInfeed-67ba5ac4.js → ADInfeed-673f0acd.js} +13 -15
  10. package/dist/cjs/ADSkyscraper.js +29 -30
  11. package/dist/cjs/ADSponsoredResources.js +29 -30
  12. package/dist/cjs/ADWebcast.js +29 -30
  13. package/dist/cjs/ADWelcome.js +30 -31
  14. package/dist/cjs/{ADlgInfeed-42534448.js → ADlgInfeed-f60a46a9.js} +10 -11
  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 +55 -56
  21. package/dist/cjs/ArticleSeriesLandingPage.js +38 -39
  22. package/dist/cjs/ArticleSeriesListing.js +59 -60
  23. package/dist/cjs/Auth.js +334 -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-80146e98.js → Dfp-ce7ac168.js} +30 -31
  37. package/dist/cjs/EventsDeck.js +131 -138
  38. package/dist/cjs/ExternalResources.js +77 -78
  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 +131 -136
  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 +69 -70
  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 +70 -71
  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 +106 -107
  64. package/dist/cjs/PdfDownload.js +8 -9
  65. package/dist/cjs/PopUpModal.js +19 -21
  66. package/dist/cjs/PubSection.js +39 -40
  67. package/dist/cjs/PubToc.js +16 -17
  68. package/dist/cjs/PublicationDeck.js +61 -66
  69. package/dist/cjs/PublicationLanding.js +87 -88
  70. package/dist/cjs/QueueDeckExpanded.js +292 -292
  71. package/dist/cjs/RecentNews.js +23 -24
  72. package/dist/cjs/RelatedContent.js +24 -25
  73. package/dist/cjs/RelatedTopicsDropdown.js +19 -22
  74. package/dist/cjs/RolesDeck.js +27 -32
  75. package/dist/cjs/Search.js +18 -22
  76. package/dist/cjs/Segment.js +7 -7
  77. package/dist/cjs/SetCookie.js +1 -1
  78. package/dist/cjs/SideFooter.js +35 -36
  79. package/dist/cjs/SocialIcons.js +9 -10
  80. package/dist/cjs/{SocialSearchComponent-45c54bed.js → SocialSearchComponent-8dd468fd.js} +36 -40
  81. package/dist/cjs/SocialShare.js +29 -31
  82. package/dist/cjs/TaxonomyCard.js +57 -62
  83. package/dist/cjs/TaxonomyDescription.js +52 -53
  84. package/dist/cjs/TemplateNormal.js +72 -73
  85. package/dist/cjs/ThumbnailCard.js +20 -22
  86. package/dist/cjs/Ustream.js +26 -27
  87. package/dist/cjs/VerticalHero.js +17 -18
  88. package/dist/cjs/VideoProgramLandingPage.js +71 -75
  89. package/dist/cjs/VideoSeriesCard.js +31 -32
  90. package/dist/cjs/VideoSeriesFilter.js +19 -19
  91. package/dist/cjs/VideoSeriesLandingPage.js +46 -47
  92. package/dist/cjs/VideoSeriesListing.js +76 -77
  93. package/dist/cjs/View.js +239 -242
  94. package/dist/cjs/YahooHero.js +39 -40
  95. package/dist/cjs/YoutubeGroup.js +62 -63
  96. package/dist/cjs/{_is-array-63ae4740.js → _is-array-754e012d.js} +6 -6
  97. package/dist/cjs/{_iter-detect-2613ffa1.js → _iter-detect-60b2f026.js} +2 -2
  98. package/dist/cjs/{_object-sap-c5bd707d.js → _object-sap-5e74ba08.js} +1 -1
  99. package/dist/cjs/{_object-to-array-bec5fcf2.js → _object-to-array-5762f850.js} +1 -1
  100. package/dist/cjs/{_set-species-a8cfdb84.js → _set-species-f92c67c5.js} +4 -4
  101. package/dist/cjs/{_to-object-821a2927.js → _to-object-329a650b.js} +4 -4
  102. package/dist/cjs/{asyncToGenerator-2edcb6ad.js → asyncToGenerator-533d476a.js} +8 -8
  103. package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
  104. package/dist/cjs/{core.get-iterator-method-b4615fd3.js → core.get-iterator-method-f62321d4.js} +2 -2
  105. package/dist/cjs/{define-property-aff11f8a.js → define-property-f4d12f4e.js} +1 -1
  106. package/dist/cjs/{defineProperty-d6fbb280.js → defineProperty-55548b25.js} +1 -1
  107. package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
  108. package/dist/cjs/{es6.string.iterator-20d42c53.js → es6.string.iterator-cc0bbaa4.js} +2 -2
  109. package/dist/cjs/{extends-1e24fc8d.js → extends-60837c34.js} +1 -1
  110. package/dist/cjs/getRelatedArticle.js +76 -138
  111. package/dist/cjs/getRootDocGroup.js +7 -7
  112. package/dist/cjs/getSerializers.js +43 -43
  113. package/dist/cjs/{getTargeting-497b581d.js → getTargeting-9af0ef69.js} +3 -3
  114. package/dist/cjs/getTargeting.js +7 -7
  115. package/dist/cjs/iconBase-68959171.js +3 -0
  116. package/dist/cjs/{index-4d74ffd6.js → index-3294d3bc.js} +41 -40
  117. package/dist/cjs/{index-0e4427c8.js → index-8bf6c863.js} +11 -12
  118. package/dist/cjs/{index-d48b231c.js → index-be0c82be.js} +25 -31
  119. package/dist/cjs/{index-80f57cff.js → index-da796b8c.js} +15 -17
  120. package/dist/cjs/{index-9e0ebc87.js → index-f0e877fb.js} +949 -934
  121. package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
  122. package/dist/cjs/{index.esm-8123cf40.js → index.esm-4d410430.js} +20 -20
  123. package/dist/cjs/{index.esm-3b9b8952.js → index.esm-66ffa47a.js} +9 -4
  124. package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
  125. package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
  126. package/dist/cjs/index.js +158 -161
  127. package/dist/cjs/{inherits-2eb23889.js → inherits-c9f99d47.js} +5 -5
  128. package/dist/cjs/{keys-95c064c9.js → keys-a586b7a0.js} +2 -2
  129. package/dist/cjs/lib.pure-f83151d7.js +31 -0
  130. package/dist/cjs/{lodash-4ef21f0f.js → lodash-fc2922d0.js} +23 -72
  131. package/dist/cjs/{main-dc082238.js → main-02daeefe.js} +80 -116
  132. package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
  133. package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
  134. package/dist/cjs/{slicedToArray-db24842a.js → slicedToArray-8f385299.js} +4 -4
  135. package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
  136. package/dist/cjs/{stringify-01cf47f7.js → stringify-7c5aff47.js} +1 -1
  137. package/dist/cjs/timeDifferenceCalc.js +1 -1
  138. package/dist/cjs/{toConsumableArray-cf0865fc.js → toConsumableArray-9a3476fe.js} +4 -4
  139. package/dist/cjs/{typeof-97065d40.js → typeof-725500bc.js} +7 -7
  140. package/dist/cjs/urlFor.js +2 -2
  141. package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
  142. package/dist/cjs/{visibility-sensor-8b54af99.js → visibility-sensor-0c45a583.js} +5 -7
  143. package/dist/cjs/{web.dom.iterable-4480325a.js → web.dom.iterable-a0e279c1.js} +3 -3
  144. package/dist/esm/AD.js +7 -7
  145. package/dist/esm/AD300x250.js +24 -24
  146. package/dist/esm/AD300x250x600.js +24 -24
  147. package/dist/esm/AD728x90.js +27 -27
  148. package/dist/esm/ADFloatingFooter.js +26 -26
  149. package/dist/esm/ADFooter.js +11 -11
  150. package/dist/esm/ADGutter.js +26 -26
  151. package/dist/esm/{ADInfeed-d1e9b645.js → ADInfeed-ab5fbe8c.js} +9 -9
  152. package/dist/esm/ADSkyscraper.js +26 -26
  153. package/dist/esm/ADSponsoredResources.js +26 -26
  154. package/dist/esm/ADWebcast.js +26 -26
  155. package/dist/esm/ADWelcome.js +27 -27
  156. package/dist/esm/{ADlgInfeed-f6128af4.js → ADlgInfeed-65549e1a.js} +8 -8
  157. package/dist/esm/AccordionPanel.js +24 -24
  158. package/dist/esm/AdSlot.js +23 -23
  159. package/dist/esm/AdSlotsProvider.js +13 -13
  160. package/dist/esm/AlphabeticList.js +21 -21
  161. package/dist/esm/ArticleCarousel.js +20 -20
  162. package/dist/esm/ArticleProgramLandingPage.js +52 -52
  163. package/dist/esm/ArticleSeriesLandingPage.js +35 -35
  164. package/dist/esm/ArticleSeriesListing.js +54 -54
  165. package/dist/esm/Auth.js +317 -799
  166. package/dist/esm/{AuthorComponent-c7ff069f.js → AuthorComponent-34b16174.js} +11 -11
  167. package/dist/esm/Beam.js +9 -9
  168. package/dist/esm/{BlockContent-d8cd739c.js → BlockContent-e9b4ddcf.js} +4 -4
  169. package/dist/esm/Breadcrumbs.js +17 -17
  170. package/dist/esm/CMEDeck.js +79 -79
  171. package/dist/esm/Column1.js +5 -5
  172. package/dist/esm/Column2.js +26 -26
  173. package/dist/esm/Column3.js +48 -48
  174. package/dist/esm/ConferenceArticleCard.js +18 -18
  175. package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
  176. package/dist/esm/DeckContent.js +76 -76
  177. package/dist/esm/DeckQueue.js +64 -64
  178. package/dist/esm/{Dfp-8bfbd310.js → Dfp-e9a07597.js} +20 -20
  179. package/dist/esm/EventsDeck.js +84 -84
  180. package/dist/esm/ExternalResources.js +71 -71
  181. package/dist/esm/Feature.js +18 -18
  182. package/dist/esm/ForbesHero.js +34 -34
  183. package/dist/esm/GridContent.js +139 -139
  184. package/dist/esm/GridHero.js +36 -36
  185. package/dist/esm/GroupDeck.js +46 -46
  186. package/dist/esm/HamMagazine.js +105 -105
  187. package/dist/esm/Header.js +7 -7
  188. package/dist/esm/Hero.js +9 -9
  189. package/dist/esm/HighlightenVideo.js +14 -14
  190. package/dist/esm/HorizontalArticleListing.js +66 -66
  191. package/dist/esm/HorizontalHero.js +21 -21
  192. package/dist/esm/IssueContentDeck.js +49 -49
  193. package/dist/esm/IssueDeck.js +46 -46
  194. package/dist/esm/IssueLanding.js +37 -37
  195. package/dist/esm/LeftNav.js +32 -32
  196. package/dist/esm/MasterDeck.js +64 -64
  197. package/dist/esm/NavDvm.js +57 -57
  198. package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
  199. package/dist/esm/NavMagazine.js +114 -114
  200. package/dist/esm/NavNative.js +91 -91
  201. package/dist/esm/NavNormal.js +36 -36
  202. package/dist/esm/OncliveHero.js +17 -16
  203. package/dist/esm/OncliveLargeHero.js +59 -59
  204. package/dist/esm/PageFilter.js +12 -12
  205. package/dist/esm/PartnerDetailListing.js +102 -102
  206. package/dist/esm/PdfDownload.js +6 -6
  207. package/dist/esm/PopUpModal.js +14 -14
  208. package/dist/esm/PubSection.js +36 -36
  209. package/dist/esm/PubToc.js +13 -13
  210. package/dist/esm/PublicationDeck.js +38 -38
  211. package/dist/esm/PublicationLanding.js +63 -60
  212. package/dist/esm/QueueDeckExpanded.js +272 -272
  213. package/dist/esm/RecentNews.js +20 -20
  214. package/dist/esm/RelatedContent.js +19 -19
  215. package/dist/esm/RelatedTopicsDropdown.js +11 -11
  216. package/dist/esm/RolesDeck.js +13 -13
  217. package/dist/esm/Search.js +12 -12
  218. package/dist/esm/Segment.js +7 -7
  219. package/dist/esm/SetCookie.js +1 -1
  220. package/dist/esm/SideFooter.js +31 -31
  221. package/dist/esm/SocialIcons.js +7 -7
  222. package/dist/esm/{SocialSearchComponent-c3216d1a.js → SocialSearchComponent-a2ae84d1.js} +28 -28
  223. package/dist/esm/SocialShare.js +25 -25
  224. package/dist/esm/TaxonomyCard.js +41 -41
  225. package/dist/esm/TaxonomyDescription.js +47 -47
  226. package/dist/esm/TemplateNormal.js +66 -66
  227. package/dist/esm/ThumbnailCard.js +13 -13
  228. package/dist/esm/Ustream.js +23 -23
  229. package/dist/esm/VerticalHero.js +13 -13
  230. package/dist/esm/VideoProgramLandingPage.js +61 -61
  231. package/dist/esm/VideoSeriesCard.js +24 -24
  232. package/dist/esm/VideoSeriesFilter.js +16 -16
  233. package/dist/esm/VideoSeriesLandingPage.js +39 -39
  234. package/dist/esm/VideoSeriesListing.js +70 -70
  235. package/dist/esm/View.js +223 -222
  236. package/dist/esm/YahooHero.js +34 -34
  237. package/dist/esm/YoutubeGroup.js +46 -46
  238. package/dist/esm/{_is-array-674f71ec.js → _is-array-58e95429.js} +6 -6
  239. package/dist/esm/{_iter-detect-48516cd3.js → _iter-detect-5d49a330.js} +2 -2
  240. package/dist/esm/{_object-sap-fd3054d0.js → _object-sap-964b6feb.js} +1 -1
  241. package/dist/esm/{_object-to-array-8f409e54.js → _object-to-array-7e804fce.js} +1 -1
  242. package/dist/esm/{_set-species-494ed292.js → _set-species-3f8319f5.js} +4 -4
  243. package/dist/esm/{_to-object-97770c52.js → _to-object-a4107da3.js} +5 -5
  244. package/dist/esm/{asyncToGenerator-2bd4099a.js → asyncToGenerator-502f13b4.js} +8 -8
  245. package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
  246. package/dist/esm/{core.get-iterator-method-d1d5ed02.js → core.get-iterator-method-e1de7503.js} +2 -2
  247. package/dist/esm/{define-property-ec6d528d.js → define-property-8af5f002.js} +1 -1
  248. package/dist/esm/{defineProperty-ea516b15.js → defineProperty-94fd8bfc.js} +1 -1
  249. package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
  250. package/dist/esm/{es6.string.iterator-aa6068a3.js → es6.string.iterator-c990c18c.js} +3 -3
  251. package/dist/esm/{extends-31d65aba.js → extends-eb69e8ac.js} +1 -1
  252. package/dist/esm/getRelatedArticle.js +71 -133
  253. package/dist/esm/getRootDocGroup.js +7 -7
  254. package/dist/esm/getSerializers.js +43 -43
  255. package/dist/esm/{getTargeting-2d402d66.js → getTargeting-7211f12c.js} +2 -2
  256. package/dist/esm/getTargeting.js +7 -7
  257. package/dist/esm/{index-752d1dae.js → index-5f9f807a.js} +10 -10
  258. package/dist/esm/{index-3f5c03b2.js → index-73819142.js} +25 -31
  259. package/dist/esm/{index-98643e12.js → index-a6cdbf75.js} +891 -869
  260. package/dist/esm/{index-888f9253.js → index-a9e53f80.js} +6 -6
  261. package/dist/esm/{index-ccb770c7.js → index-ef6d5dcf.js} +41 -40
  262. package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
  263. package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
  264. package/dist/esm/{index.esm-d6f88d94.js → index.esm-b08f4b04.js} +9 -4
  265. package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
  266. package/dist/esm/{index.esm-8016b507.js → index.esm-fd746768.js} +18 -17
  267. package/dist/esm/index.js +127 -127
  268. package/dist/esm/{inherits-5906fbea.js → inherits-fb9b6e8f.js} +5 -5
  269. package/dist/esm/{keys-a0b0c7a4.js → keys-8eda7a5c.js} +2 -2
  270. package/dist/esm/lib.pure-cdc643ad.js +25 -0
  271. package/dist/esm/{lodash-ad27652f.js → lodash-17fdfebb.js} +23 -72
  272. package/dist/esm/{main-1450d277.js → main-e4a934b2.js} +78 -113
  273. package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
  274. package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-a7d5c5c7.js} +20 -20
  275. package/dist/esm/{slicedToArray-cdeaee08.js → slicedToArray-641f241f.js} +4 -4
  276. package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
  277. package/dist/esm/{stringify-d4839bab.js → stringify-4330ccdc.js} +1 -1
  278. package/dist/esm/timeDifferenceCalc.js +1 -1
  279. package/dist/esm/{toConsumableArray-fa2dcda7.js → toConsumableArray-43aa614d.js} +4 -4
  280. package/dist/esm/{typeof-e9cea9e8.js → typeof-6435ba1c.js} +7 -7
  281. package/dist/esm/urlFor.js +1 -1
  282. package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
  283. package/dist/esm/{visibility-sensor-082c757b.js → visibility-sensor-0baa4eea.js} +2 -2
  284. package/dist/esm/{web.dom.iterable-035980f3.js → web.dom.iterable-4439f05a.js} +3 -3
  285. package/package.json +3 -1
  286. package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
@@ -60,35 +60,35 @@ function parseSource(source) {
60
60
  if (typeof source === 'string' && isUrl(source)) {
61
61
  // Someone passed an existing image url?
62
62
  image = {
63
- asset: { _ref: urlToId(source) },
63
+ asset: { _ref: urlToId(source) }
64
64
  };
65
65
  }
66
66
  else if (typeof source === 'string') {
67
67
  // Just an asset id
68
68
  image = {
69
- asset: { _ref: source },
69
+ asset: { _ref: source }
70
70
  };
71
71
  }
72
72
  else if (isRef(source)) {
73
73
  // We just got passed an asset directly
74
74
  image = {
75
- asset: source,
75
+ asset: source
76
76
  };
77
77
  }
78
78
  else if (isAsset(source)) {
79
79
  // If we were passed an image asset document
80
80
  image = {
81
81
  asset: {
82
- _ref: source._id || '',
83
- },
82
+ _ref: source._id || ''
83
+ }
84
84
  };
85
85
  }
86
86
  else if (isAssetStub(source)) {
87
87
  // If we were passed a partial asset (`url`, but no `_id`)
88
88
  image = {
89
89
  asset: {
90
- _ref: urlToId(source.asset.url),
91
- },
90
+ _ref: urlToId(source.asset.url)
91
+ }
92
92
  };
93
93
  }
94
94
  else if (typeof source.asset === 'object') {
@@ -129,7 +129,7 @@ function applyDefaults(image) {
129
129
  left: 0,
130
130
  top: 0,
131
131
  bottom: 0,
132
- right: 0,
132
+ right: 0
133
133
  };
134
134
  }
135
135
  if (!result.hotspot) {
@@ -137,7 +137,7 @@ function applyDefaults(image) {
137
137
  x: 0.5,
138
138
  y: 0.5,
139
139
  height: 1.0,
140
- width: 1.0,
140
+ width: 1.0
141
141
  };
142
142
  }
143
143
  return result;
@@ -184,8 +184,7 @@ exports.SPEC_NAME_TO_URL_NAME_MAPPINGS = [
184
184
  ['crop', 'crop'],
185
185
  ['saturation', 'sat'],
186
186
  ['auto', 'auto'],
187
- ['dpr', 'dpr'],
188
- ['pad', 'pad'],
187
+ ['dpr', 'dpr']
189
188
  ];
190
189
  function urlForImage(options) {
191
190
  var spec = __assign({}, (options || {}));
@@ -204,7 +203,7 @@ function urlForImage(options) {
204
203
  left: cropLeft,
205
204
  top: cropTop,
206
205
  width: Math.round(asset.width - image.crop.right * asset.width - cropLeft),
207
- height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop),
206
+ height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop)
208
207
  };
209
208
  // Compute hot spot rect in terms of pixel coordinates
210
209
  var hotSpotVerticalRadius = (image.hotspot.height * asset.height) / 2;
@@ -215,7 +214,7 @@ function urlForImage(options) {
215
214
  left: hotSpotCenterX - hotSpotHorizontalRadius,
216
215
  top: hotSpotCenterY - hotSpotVerticalRadius,
217
216
  right: hotSpotCenterX + hotSpotHorizontalRadius,
218
- bottom: hotSpotCenterY + hotSpotVerticalRadius,
217
+ bottom: hotSpotCenterY + hotSpotVerticalRadius
219
218
  };
220
219
  // If irrelevant, or if we are requested to: don't perform crop/fit based on
221
220
  // the crop/hotspot.
@@ -297,7 +296,7 @@ function fit(source, spec) {
297
296
  left: Math.round(left),
298
297
  top: Math.round(top_2),
299
298
  width: Math.round(width),
300
- height: Math.round(height),
299
+ height: Math.round(height)
301
300
  };
302
301
  }
303
302
  else {
@@ -319,21 +318,21 @@ function fit(source, spec) {
319
318
  left: Math.max(0, Math.floor(left)),
320
319
  top: Math.max(0, Math.floor(top_3)),
321
320
  width: Math.round(width),
322
- height: Math.round(height),
321
+ height: Math.round(height)
323
322
  };
324
323
  }
325
324
  return {
326
325
  width: imgWidth,
327
326
  height: imgHeight,
328
- rect: cropRect,
327
+ rect: cropRect
329
328
  };
330
329
  }
331
330
 
332
331
  });
333
332
 
334
333
  _commonjsHelpers.unwrapExports(urlForImage_1);
335
- urlForImage_1.parseSource;
336
- urlForImage_1.SPEC_NAME_TO_URL_NAME_MAPPINGS;
334
+ var urlForImage_2 = urlForImage_1.parseSource;
335
+ var urlForImage_3 = urlForImage_1.SPEC_NAME_TO_URL_NAME_MAPPINGS;
337
336
 
338
337
  var builder = _commonjsHelpers.createCommonjsModule(function (module, exports) {
339
338
  var __assign = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__assign) || function () {
@@ -359,7 +358,7 @@ var urlForImage_1$1 = __importStar(urlForImage_1);
359
358
  var validFits = ['clip', 'crop', 'fill', 'fillmax', 'max', 'scale', 'min'];
360
359
  var validCrops = ['top', 'bottom', 'left', 'right', 'center', 'focalpoint', 'entropy'];
361
360
  var validAutoModes = ['format'];
362
- function isSanityClientLike(client) {
361
+ function isSanityClient(client) {
363
362
  return client ? typeof client.clientConfig === 'object' : false;
364
363
  }
365
364
  function rewriteSpecName(key) {
@@ -376,14 +375,13 @@ function rewriteSpecName(key) {
376
375
  function urlBuilder(options) {
377
376
  // Did we get a SanityClient?
378
377
  var client = options;
379
- if (isSanityClientLike(client)) {
378
+ if (isSanityClient(client)) {
380
379
  // Inherit config from client
381
- var _a = client.clientConfig, apiUrl = _a.apiHost, projectId = _a.projectId, dataset = _a.dataset;
382
- var apiHost = apiUrl || 'https://api.sanity.io';
380
+ var _a = client.clientConfig, apiHost = _a.apiHost, projectId = _a.projectId, dataset = _a.dataset;
383
381
  return new ImageUrlBuilder(null, {
384
382
  baseUrl: apiHost.replace(/^https:\/\/api\./, 'https://cdn.'),
385
383
  projectId: projectId,
386
- dataset: dataset,
384
+ dataset: dataset
387
385
  });
388
386
  }
389
387
  // Or just accept the options as given
@@ -396,7 +394,7 @@ var ImageUrlBuilder = /** @class */ (function () {
396
394
  ? __assign(__assign({}, (parent.options || {})), (options || {})) : __assign({}, (options || {})); // Copy options
397
395
  }
398
396
  ImageUrlBuilder.prototype.withOptions = function (options) {
399
- var baseUrl = options.baseUrl || this.options.baseUrl;
397
+ var baseUrl = options.baseUrl || '';
400
398
  var newOptions = { baseUrl: baseUrl };
401
399
  for (var key in options) {
402
400
  if (options.hasOwnProperty(key)) {
@@ -490,7 +488,7 @@ var ImageUrlBuilder = /** @class */ (function () {
490
488
  ImageUrlBuilder.prototype.flipHorizontal = function () {
491
489
  return this.withOptions({ flipHorizontal: true });
492
490
  };
493
- // Flip image vertically
491
+ // Flip image verically
494
492
  ImageUrlBuilder.prototype.flipVertical = function () {
495
493
  return this.withOptions({ flipVertical: true });
496
494
  };
@@ -520,15 +518,11 @@ var ImageUrlBuilder = /** @class */ (function () {
520
518
  }
521
519
  return this.withOptions({ auto: value });
522
520
  };
523
- // Specify the number of pixels to pad the image
524
- ImageUrlBuilder.prototype.pad = function (pad) {
525
- return this.withOptions({ pad: pad });
526
- };
527
521
  // Gets the url based on the submitted parameters
528
522
  ImageUrlBuilder.prototype.url = function () {
529
523
  return urlForImage_1$1.default(this.options);
530
524
  };
531
- // Alias for url()
525
+ // Synonym for url()
532
526
  ImageUrlBuilder.prototype.toString = function () {
533
527
  return this.url();
534
528
  };
@@ -539,7 +533,7 @@ exports.ImageUrlBuilder = ImageUrlBuilder;
539
533
  });
540
534
 
541
535
  _commonjsHelpers.unwrapExports(builder);
542
- builder.ImageUrlBuilder;
536
+ var builder_1 = builder.ImageUrlBuilder;
543
537
 
544
538
  var node = _commonjsHelpers.createCommonjsModule(function (module) {
545
539
  var __importDefault = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__importDefault) || function (mod) {
@@ -1,15 +1,13 @@
1
1
  'use strict';
2
2
 
3
+ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
4
+
3
5
  var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
4
6
  var React = require('react');
5
- var reactDom = require('react-dom');
7
+ var React__default = _interopDefault(React);
6
8
  var PropTypes = require('prop-types');
7
-
8
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
9
-
10
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
11
- var reactDom__default = /*#__PURE__*/_interopDefaultLegacy(reactDom);
12
- var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
9
+ var PropTypes__default = _interopDefault(PropTypes);
10
+ var reactDom = _interopDefault(require('react-dom'));
13
11
 
14
12
  var event = _commonjsHelpers.createCommonjsModule(function (module, exports) {
15
13
 
@@ -40,8 +38,8 @@ function off(el, eventName, callback, opts) {
40
38
  });
41
39
 
42
40
  _commonjsHelpers.unwrapExports(event);
43
- event.on;
44
- event.off;
41
+ var event_1 = event.on;
42
+ var event_2 = event.off;
45
43
 
46
44
  var scrollParent = _commonjsHelpers.createCommonjsModule(function (module, exports) {
47
45
 
@@ -187,15 +185,15 @@ var _createClass = function () { function defineProperties(target, props) { for
187
185
 
188
186
 
189
187
 
190
- var _react2 = _interopRequireDefault(React__default['default']);
188
+ var _react2 = _interopRequireDefault(React__default);
191
189
 
192
190
 
193
191
 
194
- var _reactDom2 = _interopRequireDefault(reactDom__default['default']);
192
+ var _reactDom2 = _interopRequireDefault(reactDom);
195
193
 
196
194
 
197
195
 
198
- var _propTypes2 = _interopRequireDefault(PropTypes__default['default']);
196
+ var _propTypes2 = _interopRequireDefault(PropTypes__default);
199
197
 
200
198
 
201
199
 
@@ -538,7 +536,7 @@ var LazyLoad = function (_Component) {
538
536
  }]);
539
537
 
540
538
  return LazyLoad;
541
- }(React__default['default'].Component);
539
+ }(React__default.Component);
542
540
 
543
541
  LazyLoad.propTypes = {
544
542
  once: _propTypes2.default.bool,
@@ -595,7 +593,7 @@ var decorator = function decorator() {
595
593
  }]);
596
594
 
597
595
  return LazyLoadDecorated;
598
- }(React__default['default'].Component);
596
+ }(React__default.Component);
599
597
  };
600
598
  };
601
599
 
@@ -606,8 +604,8 @@ exports.forceVisible = forceVisible;
606
604
  });
607
605
 
608
606
  var LazyLoad = _commonjsHelpers.unwrapExports(lib);
609
- lib.forceVisible;
610
- lib.forceCheck;
611
- lib.lazyload;
607
+ var lib_1 = lib.forceVisible;
608
+ var lib_2 = lib.forceCheck;
609
+ var lib_3 = lib.lazyload;
612
610
 
613
611
  exports.LazyLoad = LazyLoad;