@mjhls/mjh-framework 1.0.883 → 1.0.884-beta.1

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 (300) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +11 -11
  4. package/dist/cjs/AD300x250x600.js +11 -11
  5. package/dist/cjs/AD728x90.js +12 -12
  6. package/dist/cjs/ADFloatingFooter.js +10 -10
  7. package/dist/cjs/ADFooter.js +3 -3
  8. package/dist/cjs/ADGutter.js +10 -10
  9. package/dist/cjs/{ADInfeed-4f661172.js → ADInfeed-2e48af77.js} +1 -1
  10. package/dist/cjs/ADSkyscraper.js +10 -10
  11. package/dist/cjs/ADSponsoredResources.js +10 -10
  12. package/dist/cjs/ADWebcast.js +10 -10
  13. package/dist/cjs/ADWelcome.js +10 -10
  14. package/dist/cjs/{ADlgInfeed-6242e5b5.js → ADlgInfeed-c39c7131.js} +1 -1
  15. package/dist/cjs/AccordionPanel.js +4 -4
  16. package/dist/cjs/AdSlot.js +10 -10
  17. package/dist/cjs/AdSlotsProvider.js +903 -10
  18. package/dist/cjs/AlgoliaSearch.js +264 -391
  19. package/dist/cjs/AlphabeticList.js +6 -6
  20. package/dist/cjs/ArticleCarousel.js +6 -6
  21. package/dist/cjs/ArticleProgramLandingPage.js +28 -28
  22. package/dist/cjs/ArticleSeriesLandingPage.js +24 -24
  23. package/dist/cjs/ArticleSeriesListing.js +16 -16
  24. package/dist/cjs/Auth.js +1297 -469
  25. package/dist/cjs/AuthWrapper.js +390 -1697
  26. package/dist/cjs/{AuthorComponent-421d5ec1.js → AuthorComponent-02e827ae.js} +1 -1
  27. package/dist/cjs/Beam.js +5 -5
  28. package/dist/cjs/{BlockContent-bac780ac.js → BlockContent-091a991f.js} +1 -1
  29. package/dist/cjs/Breadcrumbs.js +3 -3
  30. package/dist/cjs/CMEDeck.js +12 -12
  31. package/dist/cjs/Column2.js +6 -6
  32. package/dist/cjs/Column3.js +14 -14
  33. package/dist/cjs/ConferenceArticleCard.js +20 -20
  34. package/dist/cjs/ContentCardPaginated.js +409 -0
  35. package/dist/cjs/DeckContent.js +30 -30
  36. package/dist/cjs/DeckQueue.js +19 -19
  37. package/dist/cjs/DeckQueuePaginated.js +340 -0
  38. package/dist/cjs/{Dfp-ab12cd55.js → Dfp-f492f985.js} +8 -8
  39. package/dist/cjs/EventsDeck.js +31 -31
  40. package/dist/cjs/ExternalResources.js +25 -25
  41. package/dist/cjs/Feature.js +6 -6
  42. package/dist/cjs/ForbesHero.js +6 -6
  43. package/dist/cjs/GridContent.js +30 -142
  44. package/dist/cjs/GridContentPaginated.js +699 -0
  45. package/dist/cjs/GridHero.js +7 -7
  46. package/dist/cjs/GroupDeck.js +6 -6
  47. package/dist/cjs/HamMagazine.js +23 -23
  48. package/dist/cjs/Hero.js +5 -5
  49. package/dist/cjs/HighlightenVideo.js +1 -1
  50. package/dist/cjs/HorizontalArticleListing.js +24 -24
  51. package/dist/cjs/HorizontalHero.js +6 -6
  52. package/dist/cjs/ImageSlider-38f25e66.js +3989 -0
  53. package/dist/cjs/IssueContentDeck.js +6 -6
  54. package/dist/cjs/IssueDeck.js +8 -8
  55. package/dist/cjs/IssueLanding.js +58 -58
  56. package/dist/cjs/KMTracker.js +15 -15
  57. package/dist/cjs/LeftNav.js +10 -10
  58. package/dist/cjs/MasterDeck.js +30 -30
  59. package/dist/cjs/MasterDeckPaginated.js +444 -0
  60. package/dist/cjs/MediaSeriesCard-8d27612b.js +9411 -0
  61. package/dist/cjs/MediaSeriesLanding.js +57 -9538
  62. package/dist/cjs/MediaSeriesLandingPaginated.js +522 -0
  63. package/dist/cjs/NavDvm.js +5 -5
  64. package/dist/cjs/NavMagazine.js +22 -22
  65. package/dist/cjs/NavNative.js +19 -19
  66. package/dist/cjs/OncliveHero.js +6 -5
  67. package/dist/cjs/OncliveLargeHero.js +7 -7
  68. package/dist/cjs/PageFilter.js +3 -3
  69. package/dist/cjs/Pagination-2f76381b.js +51 -0
  70. package/dist/cjs/PartnerDetailListing.js +41 -2939
  71. package/dist/cjs/PartnerDetailListingPaginated.js +312 -0
  72. package/dist/cjs/PdfDownload.js +1 -1
  73. package/dist/cjs/PopUpModal.js +3 -3
  74. package/dist/cjs/PubSection.js +19 -19
  75. package/dist/cjs/PubToc.js +5 -5
  76. package/dist/cjs/PublicationDeck.js +5 -5
  77. package/dist/cjs/PublicationFeature-28c549f2.js +126 -0
  78. package/dist/cjs/PublicationLanding.js +34 -34
  79. package/dist/cjs/QueueDeckExpanded.js +21 -21
  80. package/dist/cjs/QueueDeckExpandedPaginated.js +1378 -0
  81. package/dist/cjs/RecentNews.js +1 -1
  82. package/dist/cjs/RelatedContent.js +33 -33
  83. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  84. package/dist/cjs/Search.js +3 -3
  85. package/dist/cjs/Segment.js +4 -4
  86. package/dist/cjs/SeriesListingDeck.js +10 -10
  87. package/dist/cjs/{SeriesSlider-372e418f.js → SeriesSlider-49b81b0b.js} +11 -11
  88. package/dist/cjs/SideFooter.js +8 -8
  89. package/dist/cjs/{SocialSearchComponent-80a2130a.js → SocialSearchComponent-e8477ca3.js} +7 -7
  90. package/dist/cjs/TaxonomyCard.js +6 -6
  91. package/dist/cjs/TaxonomyDescription.js +24 -24
  92. package/dist/cjs/TemplateNormal.js +16 -16
  93. package/dist/cjs/ThumbnailCard.js +5 -5
  94. package/dist/cjs/Ustream.js +10 -10
  95. package/dist/cjs/VerticalHero.js +5 -5
  96. package/dist/cjs/VideoProgramLandingPage.js +27 -27
  97. package/dist/cjs/VideoSeriesCard.js +9 -9
  98. package/dist/cjs/VideoSeriesFilter.js +5 -5
  99. package/dist/cjs/VideoSeriesLandingPage.js +25 -25
  100. package/dist/cjs/VideoSeriesListing.js +16 -16
  101. package/dist/cjs/View.js +63 -63
  102. package/dist/cjs/YahooHero.js +7 -7
  103. package/dist/cjs/YoutubeGroup.js +14 -14
  104. package/dist/cjs/{_is-array-bd978497.js → _is-array-aa52fa1e.js} +1 -1
  105. package/dist/cjs/{_iter-detect-ee3d4802.js → _iter-detect-05795553.js} +1 -1
  106. package/dist/cjs/{_object-sap-fee50a62.js → _object-sap-171b9ea5.js} +1 -1
  107. package/dist/cjs/{_object-to-array-18379aba.js → _object-to-array-9bac8737.js} +1 -1
  108. package/dist/cjs/{asyncToGenerator-15014394.js → asyncToGenerator-df19209d.js} +3 -3
  109. package/dist/cjs/{brightcove-react-player-loader.es-05029198.js → brightcove-react-player-loader.es-156bd4d6.js} +3 -4
  110. package/dist/cjs/{core.get-iterator-method-5cb3af28.js → core.get-iterator-method-f3c44602.js} +2 -2
  111. package/dist/cjs/{debounce-6191c8ee.js → debounce-529c8d06.js} +1 -1
  112. package/dist/cjs/{define-property-530a5e9e.js → define-property-21887c62.js} +1 -1
  113. package/dist/cjs/{defineProperty-5ca424cd.js → defineProperty-77a37684.js} +1 -1
  114. package/dist/cjs/{entities-fb0c6568.js → entities-310b46ee.js} +0 -4
  115. package/dist/cjs/{extends-1d905ddb.js → extends-eed4f016.js} +1 -1
  116. package/dist/cjs/faundadb.js +19 -19
  117. package/dist/cjs/getRelatedArticle.js +4 -4
  118. package/dist/cjs/getRootDocGroup.js +6 -6
  119. package/dist/cjs/getSerializers.js +24 -24
  120. package/dist/cjs/getSeriesDetail.js +3 -0
  121. package/dist/cjs/{getTargeting-41f2f52d.js → getTargeting-8874437b.js} +11 -11
  122. package/dist/cjs/getTargeting.js +5 -5
  123. package/dist/cjs/{index-79eed652.js → index-3294d3bc.js} +40 -39
  124. package/dist/cjs/{index-27377172.js → index-54adcbc3.js} +498 -514
  125. package/dist/cjs/{index-ff69979f.js → index-be0c82be.js} +22 -28
  126. package/dist/cjs/{index-53e27416.js → index-e2e62963.js} +9 -25
  127. package/dist/cjs/{index.es-e9d84959.js → index.es-9110add6.js} +5 -23
  128. package/dist/cjs/{index.esm-bf016399.js → index.esm-4d410430.js} +3 -2
  129. package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
  130. package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-e32d3e8e.js} +6 -3
  131. package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
  132. package/dist/cjs/index.js +43 -43
  133. package/dist/cjs/{inherits-337c73a7.js → inherits-12d44cca.js} +8 -8
  134. package/dist/cjs/inherits-8d29278d.js +110 -0
  135. package/dist/cjs/{keys-91f31941.js → keys-d207942e.js} +2 -2
  136. package/dist/cjs/{lodash-b5e0d5f6.js → lodash-fc2922d0.js} +30 -127
  137. package/dist/cjs/main-02daeefe.js +862 -0
  138. package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
  139. package/dist/cjs/{moment-ca3bd9fb.js → moment-575fe24c.js} +8 -10
  140. package/dist/cjs/{slicedToArray-0a78cdf3.js → slicedToArray-f6d4eaa8.js} +2 -2
  141. package/dist/cjs/{stringify-13405ce2.js → stringify-bbc68047.js} +1 -1
  142. package/dist/cjs/timeDifferenceCalc.js +1 -1
  143. package/dist/cjs/{toConsumableArray-39fd0757.js → toConsumableArray-c9b8a0d0.js} +2 -2
  144. package/dist/cjs/{toNumber-f2f8744b.js → toNumber-36d1e7e5.js} +4 -39
  145. package/dist/cjs/{typeof-3dd6d3df.js → typeof-5f52cf64.js} +3 -3
  146. package/dist/cjs/urlFor.js +4 -4
  147. package/dist/cjs/{ustream-api-5619c1fa.js → ustream-api-9ebe112f.js} +4 -4
  148. package/dist/cjs/{web.dom.iterable-a9359910.js → web.dom.iterable-e34bf324.js} +1 -1
  149. package/dist/esm/AD.js +1 -1
  150. package/dist/esm/AD300x250.js +11 -11
  151. package/dist/esm/AD300x250x600.js +11 -11
  152. package/dist/esm/AD728x90.js +12 -12
  153. package/dist/esm/ADFloatingFooter.js +10 -10
  154. package/dist/esm/ADFooter.js +3 -3
  155. package/dist/esm/ADGutter.js +10 -10
  156. package/dist/esm/{ADInfeed-7db96917.js → ADInfeed-d767ebe2.js} +3 -3
  157. package/dist/esm/ADSkyscraper.js +10 -10
  158. package/dist/esm/ADSponsoredResources.js +10 -10
  159. package/dist/esm/ADWebcast.js +10 -10
  160. package/dist/esm/ADWelcome.js +10 -10
  161. package/dist/esm/{ADlgInfeed-a3931e68.js → ADlgInfeed-cee95aa2.js} +1 -1
  162. package/dist/esm/AccordionPanel.js +4 -4
  163. package/dist/esm/AdSlot.js +10 -10
  164. package/dist/esm/AdSlotsProvider.js +905 -13
  165. package/dist/esm/AlgoliaSearch.js +32 -159
  166. package/dist/esm/AlphabeticList.js +6 -6
  167. package/dist/esm/ArticleCarousel.js +6 -6
  168. package/dist/esm/ArticleProgramLandingPage.js +25 -25
  169. package/dist/esm/ArticleSeriesLandingPage.js +22 -22
  170. package/dist/esm/ArticleSeriesListing.js +18 -18
  171. package/dist/esm/Auth.js +1297 -469
  172. package/dist/esm/AuthWrapper.js +385 -1692
  173. package/dist/esm/{AuthorComponent-2277b67c.js → AuthorComponent-e6f95c2f.js} +1 -1
  174. package/dist/esm/Beam.js +5 -5
  175. package/dist/esm/{BlockContent-ea93e8f7.js → BlockContent-e9b4ddcf.js} +1 -1
  176. package/dist/esm/Breadcrumbs.js +3 -3
  177. package/dist/esm/CMEDeck.js +12 -12
  178. package/dist/esm/Column1.js +4 -4
  179. package/dist/esm/Column2.js +11 -11
  180. package/dist/esm/Column3.js +20 -20
  181. package/dist/esm/ConferenceArticleCard.js +20 -20
  182. package/dist/esm/ContentCardPaginated.js +403 -0
  183. package/dist/esm/DeckContent.js +45 -45
  184. package/dist/esm/DeckQueue.js +37 -37
  185. package/dist/esm/DeckQueuePaginated.js +334 -0
  186. package/dist/esm/{Dfp-d6a5629f.js → Dfp-f867d061.js} +5 -5
  187. package/dist/esm/EventsDeck.js +57 -57
  188. package/dist/esm/ExternalResources.js +27 -27
  189. package/dist/esm/Feature.js +6 -6
  190. package/dist/esm/ForbesHero.js +6 -6
  191. package/dist/esm/GridContent.js +64 -176
  192. package/dist/esm/GridContentPaginated.js +693 -0
  193. package/dist/esm/GridHero.js +7 -7
  194. package/dist/esm/GroupDeck.js +6 -6
  195. package/dist/esm/HamMagazine.js +26 -26
  196. package/dist/esm/Hero.js +5 -5
  197. package/dist/esm/HighlightenVideo.js +1 -1
  198. package/dist/esm/HorizontalArticleListing.js +24 -24
  199. package/dist/esm/HorizontalHero.js +6 -6
  200. package/dist/esm/ImageSlider-a3154b97.js +3980 -0
  201. package/dist/esm/IssueContentDeck.js +20 -20
  202. package/dist/esm/IssueDeck.js +30 -30
  203. package/dist/esm/IssueLanding.js +58 -58
  204. package/dist/esm/KMTracker.js +15 -15
  205. package/dist/esm/LeftNav.js +10 -10
  206. package/dist/esm/MasterDeck.js +33 -33
  207. package/dist/esm/MasterDeckPaginated.js +438 -0
  208. package/dist/esm/MediaSeriesCard-1dd7eae8.js +9403 -0
  209. package/dist/esm/MediaSeriesLanding.js +53 -9533
  210. package/dist/esm/MediaSeriesLandingPaginated.js +517 -0
  211. package/dist/esm/NavDvm.js +8 -8
  212. package/dist/esm/NavMagazine.js +25 -25
  213. package/dist/esm/NavNative.js +24 -24
  214. package/dist/esm/OncliveHero.js +6 -5
  215. package/dist/esm/OncliveLargeHero.js +7 -7
  216. package/dist/esm/PageFilter.js +3 -3
  217. package/dist/esm/Pagination-c0db7ca1.js +46 -0
  218. package/dist/esm/PartnerDetailListing.js +39 -2936
  219. package/dist/esm/PartnerDetailListingPaginated.js +307 -0
  220. package/dist/esm/PdfDownload.js +1 -1
  221. package/dist/esm/PopUpModal.js +3 -3
  222. package/dist/esm/PubSection.js +19 -19
  223. package/dist/esm/PubToc.js +5 -5
  224. package/dist/esm/PublicationDeck.js +23 -23
  225. package/dist/esm/PublicationFeature-fa24dedb.js +121 -0
  226. package/dist/esm/PublicationLanding.js +56 -56
  227. package/dist/esm/QueueDeckExpanded.js +21 -21
  228. package/dist/esm/QueueDeckExpandedPaginated.js +1372 -0
  229. package/dist/esm/RecentNews.js +1 -1
  230. package/dist/esm/RelatedContent.js +33 -33
  231. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  232. package/dist/esm/RolesDeck.js +12 -12
  233. package/dist/esm/Search.js +5 -5
  234. package/dist/esm/Segment.js +4 -4
  235. package/dist/esm/SeriesListingDeck.js +10 -10
  236. package/dist/esm/{SeriesSlider-88c4133d.js → SeriesSlider-ce19fa25.js} +11 -11
  237. package/dist/esm/SideFooter.js +8 -8
  238. package/dist/esm/{SocialSearchComponent-7f3d6531.js → SocialSearchComponent-dca69151.js} +10 -10
  239. package/dist/esm/TaxonomyCard.js +22 -22
  240. package/dist/esm/TaxonomyDescription.js +24 -24
  241. package/dist/esm/TemplateNormal.js +19 -19
  242. package/dist/esm/ThumbnailCard.js +5 -5
  243. package/dist/esm/Ustream.js +10 -10
  244. package/dist/esm/VerticalHero.js +5 -5
  245. package/dist/esm/VideoProgramLandingPage.js +30 -30
  246. package/dist/esm/VideoSeriesCard.js +8 -8
  247. package/dist/esm/VideoSeriesFilter.js +5 -5
  248. package/dist/esm/VideoSeriesLandingPage.js +22 -22
  249. package/dist/esm/VideoSeriesListing.js +19 -19
  250. package/dist/esm/View.js +38 -38
  251. package/dist/esm/YahooHero.js +7 -7
  252. package/dist/esm/YoutubeGroup.js +14 -14
  253. package/dist/esm/{_is-array-8914b83f.js → _is-array-4df618a6.js} +1 -1
  254. package/dist/esm/{_iter-detect-13e31915.js → _iter-detect-130ee549.js} +1 -1
  255. package/dist/esm/{_object-sap-fc9da7e8.js → _object-sap-8b8ea5a9.js} +1 -1
  256. package/dist/esm/{_object-to-array-ee8f6d98.js → _object-to-array-c54dd835.js} +1 -1
  257. package/dist/esm/{asyncToGenerator-40371743.js → asyncToGenerator-7bf8bc4d.js} +3 -3
  258. package/dist/esm/{brightcove-react-player-loader.es-e761d404.js → brightcove-react-player-loader.es-83f53e4e.js} +3 -4
  259. package/dist/esm/{core.get-iterator-method-0fb60d94.js → core.get-iterator-method-86d4db69.js} +2 -2
  260. package/dist/esm/{debounce-89969f66.js → debounce-9207d8ee.js} +1 -1
  261. package/dist/esm/{define-property-73034847.js → define-property-6d26cb48.js} +1 -1
  262. package/dist/esm/{defineProperty-e66a2c7c.js → defineProperty-d7d9b577.js} +1 -1
  263. package/dist/esm/{entities-731f3fdb.js → entities-7cc3bf45.js} +0 -4
  264. package/dist/esm/{extends-9a61581c.js → extends-5b1796d4.js} +1 -1
  265. package/dist/esm/faundadb.js +5 -5
  266. package/dist/esm/getRelatedArticle.js +4 -4
  267. package/dist/esm/getRootDocGroup.js +4 -4
  268. package/dist/esm/getSerializers.js +24 -24
  269. package/dist/esm/getSeriesDetail.js +3 -0
  270. package/dist/esm/{getTargeting-e6820763.js → getTargeting-277c801e.js} +11 -11
  271. package/dist/esm/getTargeting.js +5 -5
  272. package/dist/esm/{index-f7fdcc91.js → index-73819142.js} +22 -28
  273. package/dist/esm/{index-637e8f49.js → index-aaa2dae0.js} +10 -25
  274. package/dist/esm/{index-afb3bbc2.js → index-d1476645.js} +517 -533
  275. package/dist/esm/{index-511bdaa5.js → index-ef6d5dcf.js} +40 -39
  276. package/dist/esm/{index.es-a6137319.js → index.es-29c1cef5.js} +5 -23
  277. package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
  278. package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
  279. package/dist/esm/{index.esm-c6715e80.js → index.esm-f8aaeeeb.js} +6 -3
  280. package/dist/esm/{index.esm-ed50151c.js → index.esm-fd746768.js} +3 -2
  281. package/dist/esm/index.js +48 -48
  282. package/dist/esm/{inherits-eeaf6740.js → inherits-2409637d.js} +4 -4
  283. package/dist/esm/inherits-77d5e4fc.js +101 -0
  284. package/dist/esm/{keys-a5ffafe7.js → keys-69989821.js} +2 -2
  285. package/dist/esm/{lodash-a818d390.js → lodash-17fdfebb.js} +30 -127
  286. package/dist/esm/main-c0612122.js +851 -0
  287. package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
  288. package/dist/esm/{moment-b6f49411.js → moment-e2f9b20c.js} +8 -10
  289. package/dist/esm/{slicedToArray-9c3bb613.js → slicedToArray-67a08c9c.js} +2 -2
  290. package/dist/esm/{stringify-ebc16384.js → stringify-70b72959.js} +1 -1
  291. package/dist/esm/timeDifferenceCalc.js +1 -1
  292. package/dist/esm/{toConsumableArray-e333293f.js → toConsumableArray-32282905.js} +2 -2
  293. package/dist/esm/{toNumber-e3dcad26.js → toNumber-2f7a84cd.js} +4 -39
  294. package/dist/esm/{typeof-938ae770.js → typeof-c05a82ba.js} +3 -3
  295. package/dist/esm/urlFor.js +4 -4
  296. package/dist/esm/{ustream-api-d325d196.js → ustream-api-4c4fe0ba.js} +4 -4
  297. package/dist/esm/{web.dom.iterable-6b037ff9.js → web.dom.iterable-f8f967cd.js} +1 -1
  298. package/package.json +112 -111
  299. package/dist/cjs/main-bc7d4bf8.js +0 -972
  300. package/dist/esm/main-ede573ee.js +0 -961
@@ -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,13 +316,13 @@ 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
 
@@ -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
  };
@@ -33,18 +33,9 @@ function _objectWithoutPropertiesLoose(source, excluded) {
33
33
  return target;
34
34
  }
35
35
 
36
- function _setPrototypeOf(o, p) {
37
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
38
- o.__proto__ = p;
39
- return o;
40
- };
41
-
42
- return _setPrototypeOf(o, p);
43
- }
44
-
45
36
  var classnames = createCommonjsModule(function (module) {
46
37
  /*!
47
- Copyright (c) 2018 Jed Watson.
38
+ Copyright (c) 2017 Jed Watson.
48
39
  Licensed under the MIT License (MIT), see
49
40
  http://jedwatson.github.io/classnames
50
41
  */
@@ -54,7 +45,7 @@ var classnames = createCommonjsModule(function (module) {
54
45
 
55
46
  var hasOwn = {}.hasOwnProperty;
56
47
 
57
- function classNames() {
48
+ function classNames () {
58
49
  var classes = [];
59
50
 
60
51
  for (var i = 0; i < arguments.length; i++) {
@@ -65,22 +56,16 @@ var classnames = createCommonjsModule(function (module) {
65
56
 
66
57
  if (argType === 'string' || argType === 'number') {
67
58
  classes.push(arg);
68
- } else if (Array.isArray(arg)) {
69
- if (arg.length) {
70
- var inner = classNames.apply(null, arg);
71
- if (inner) {
72
- classes.push(inner);
73
- }
59
+ } else if (Array.isArray(arg) && arg.length) {
60
+ var inner = classNames.apply(null, arg);
61
+ if (inner) {
62
+ classes.push(inner);
74
63
  }
75
64
  } else if (argType === 'object') {
76
- if (arg.toString === Object.prototype.toString) {
77
- for (var key in arg) {
78
- if (hasOwn.call(arg, key) && arg[key]) {
79
- classes.push(key);
80
- }
65
+ for (var key in arg) {
66
+ if (hasOwn.call(arg, key) && arg[key]) {
67
+ classes.push(key);
81
68
  }
82
- } else {
83
- classes.push(arg.toString());
84
69
  }
85
70
  }
86
71
  }
@@ -97,4 +82,4 @@ var classnames = createCommonjsModule(function (module) {
97
82
  }());
98
83
  });
99
84
 
100
- export { _objectWithoutPropertiesLoose as _, _setPrototypeOf as a, _extends as b, classnames as c };
85
+ export { _objectWithoutPropertiesLoose as _, _extends as a, classnames as c };