@mjhls/mjh-framework 1.0.880-beta.0 → 1.0.880

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 (315) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD.js +10 -9
  3. package/dist/cjs/AD300x250.js +29 -28
  4. package/dist/cjs/AD300x250x600.js +29 -28
  5. package/dist/cjs/AD728x90.js +32 -31
  6. package/dist/cjs/ADFloatingFooter.js +31 -30
  7. package/dist/cjs/ADFooter.js +13 -12
  8. package/dist/cjs/ADGutter.js +31 -30
  9. package/dist/cjs/{ADInfeed-2e48af77.js → ADInfeed-9a2e923a.js} +15 -13
  10. package/dist/cjs/ADSkyscraper.js +31 -30
  11. package/dist/cjs/ADSponsoredResources.js +31 -30
  12. package/dist/cjs/ADWebcast.js +31 -30
  13. package/dist/cjs/ADWelcome.js +32 -31
  14. package/dist/cjs/{ADlgInfeed-c39c7131.js → ADlgInfeed-957a1996.js} +11 -10
  15. package/dist/cjs/AccordionPanel.js +29 -27
  16. package/dist/cjs/AdSlot.js +32 -31
  17. package/dist/cjs/AdSlotsProvider.js +18 -909
  18. package/dist/cjs/AlgoliaSearch.js +1391 -1272
  19. package/dist/cjs/AlphabeticList.js +24 -23
  20. package/dist/cjs/ArticleCarousel.js +21 -19
  21. package/dist/cjs/ArticleProgramLandingPage.js +61 -59
  22. package/dist/cjs/ArticleSeriesLandingPage.js +44 -38
  23. package/dist/cjs/ArticleSeriesListing.js +60 -58
  24. package/dist/cjs/Auth.js +680 -1504
  25. package/dist/cjs/AuthWrapper.js +309 -267
  26. package/dist/cjs/{AuthorComponent-02e827ae.js → AuthorComponent-39b37d84.js} +14 -13
  27. package/dist/cjs/Beam.js +6 -6
  28. package/dist/cjs/{BlockContent-9c6b07ad.js → BlockContent-36e54d77.js} +56 -55
  29. package/dist/cjs/Breadcrumbs.js +27 -25
  30. package/dist/cjs/CMEDeck.js +81 -81
  31. package/dist/cjs/Column1.js +14 -11
  32. package/dist/cjs/Column2.js +34 -31
  33. package/dist/cjs/Column3.js +60 -57
  34. package/dist/cjs/ConferenceArticleCard.js +43 -41
  35. package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
  36. package/dist/cjs/DeckContent.js +105 -100
  37. package/dist/cjs/DeckQueue.js +91 -86
  38. package/dist/cjs/{Dfp-14d2455c.js → Dfp-9be904d5.js} +33 -32
  39. package/dist/cjs/EventsDeck.js +157 -150
  40. package/dist/cjs/ExternalResources.js +80 -78
  41. package/dist/cjs/Feature.js +31 -28
  42. package/dist/cjs/ForbesHero.js +43 -41
  43. package/dist/cjs/GridContent.js +237 -231
  44. package/dist/cjs/GridHero.js +45 -43
  45. package/dist/cjs/GroupDeck.js +60 -58
  46. package/dist/cjs/HamMagazine.js +143 -138
  47. package/dist/cjs/Header.js +14 -12
  48. package/dist/cjs/Hero.js +16 -14
  49. package/dist/cjs/HighlightenVideo.js +18 -17
  50. package/dist/cjs/HorizontalArticleListing.js +72 -70
  51. package/dist/cjs/HorizontalHero.js +30 -28
  52. package/dist/cjs/IssueContentDeck.js +77 -71
  53. package/dist/cjs/IssueDeck.js +76 -70
  54. package/dist/cjs/IssueLanding.js +94 -91
  55. package/dist/cjs/KMTracker.js +15 -15
  56. package/dist/cjs/LeftNav.js +39 -37
  57. package/dist/cjs/MasterDeck.js +355 -227
  58. package/dist/cjs/MediaSeriesLanding.js +1118 -1126
  59. package/dist/cjs/NavDvm.js +77 -72
  60. package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
  61. package/dist/cjs/NavMagazine.js +150 -145
  62. package/dist/cjs/NavNative.js +145 -137
  63. package/dist/cjs/OncliveHero.js +24 -23
  64. package/dist/cjs/OncliveLargeHero.js +75 -73
  65. package/dist/cjs/PageFilter.js +13 -12
  66. package/dist/cjs/PartnerDetailListing.js +119 -3917
  67. package/dist/cjs/PdfDownload.js +9 -8
  68. package/dist/cjs/PopUpModal.js +19 -17
  69. package/dist/cjs/PubSection.js +41 -38
  70. package/dist/cjs/PubToc.js +14 -13
  71. package/dist/cjs/PublicationDeck.js +71 -65
  72. package/dist/cjs/PublicationLanding.js +137 -133
  73. package/dist/cjs/QueueDeckExpanded.js +1173 -1001
  74. package/dist/cjs/RecentNews.js +22 -21
  75. package/dist/cjs/RelatedContent.js +59 -57
  76. package/dist/cjs/RelatedTopicsDropdown.js +32 -29
  77. package/dist/cjs/RolesDeck.js +32 -27
  78. package/dist/cjs/Search.js +20 -16
  79. package/dist/cjs/Segment.js +4 -4
  80. package/dist/cjs/SeriesListingDeck.js +37 -36
  81. package/dist/cjs/{SeriesSlider-ec146338.js → SeriesSlider-ce3261cb.js} +41 -40
  82. package/dist/cjs/SetCookie.js +1 -1
  83. package/dist/cjs/SideFooter.js +37 -36
  84. package/dist/cjs/SocialIcons.js +10 -9
  85. package/dist/cjs/{SocialSearchComponent-e8477ca3.js → SocialSearchComponent-5ec44406.js} +40 -36
  86. package/dist/cjs/SocialShare.js +31 -29
  87. package/dist/cjs/TaxonomyCard.js +67 -61
  88. package/dist/cjs/TaxonomyDescription.js +55 -53
  89. package/dist/cjs/TemplateNormal.js +73 -72
  90. package/dist/cjs/ThumbnailCard.js +26 -23
  91. package/dist/cjs/Ustream.js +28 -27
  92. package/dist/cjs/VerticalHero.js +22 -20
  93. package/dist/cjs/VideoProgramLandingPage.js +78 -73
  94. package/dist/cjs/VideoSeriesCard.js +34 -32
  95. package/dist/cjs/VideoSeriesFilter.js +16 -16
  96. package/dist/cjs/VideoSeriesLandingPage.js +52 -48
  97. package/dist/cjs/VideoSeriesListing.js +77 -75
  98. package/dist/cjs/View.js +275 -271
  99. package/dist/cjs/YahooHero.js +42 -40
  100. package/dist/cjs/YoutubeGroup.js +68 -66
  101. package/dist/cjs/{_is-array-aa52fa1e.js → _is-array-54228b29.js} +6 -6
  102. package/dist/cjs/{_iter-detect-05795553.js → _iter-detect-b1df62f0.js} +7 -7
  103. package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-083f2dd6.js} +4 -4
  104. package/dist/cjs/{_object-sap-171b9ea5.js → _object-sap-d1978572.js} +1 -1
  105. package/dist/cjs/{_object-to-array-9bac8737.js → _object-to-array-ce86cae7.js} +2 -2
  106. package/dist/cjs/{asyncToGenerator-df19209d.js → asyncToGenerator-77821af0.js} +30 -30
  107. package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-a195642e.js} +11 -9
  108. package/dist/cjs/{core.get-iterator-method-f3c44602.js → core.get-iterator-method-5643aa10.js} +35 -35
  109. package/dist/cjs/{debounce-529c8d06.js → debounce-d4a2369b.js} +2 -2
  110. package/dist/cjs/{define-property-21887c62.js → define-property-e8404b64.js} +6 -6
  111. package/dist/cjs/{defineProperty-77a37684.js → defineProperty-9673846a.js} +1 -1
  112. package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
  113. package/dist/cjs/{eq-bb2843ed.js → eq-5fc26c07.js} +1 -1
  114. package/dist/cjs/{extends-eed4f016.js → extends-7c86182f.js} +7 -7
  115. package/dist/cjs/faundadb.js +19 -19
  116. package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
  117. package/dist/cjs/getRelatedArticle.js +18 -18
  118. package/dist/cjs/getRootDocGroup.js +6 -6
  119. package/dist/cjs/getSerializers.js +43 -42
  120. package/dist/cjs/{getTargeting-8874437b.js → getTargeting-9d509319.js} +12 -12
  121. package/dist/cjs/getTargeting.js +6 -6
  122. package/dist/cjs/iconBase-68959171.js +0 -3
  123. package/dist/cjs/{index-17c6af5a.js → index-22bdde81.js} +1093 -1067
  124. package/dist/cjs/{index-e2e62963.js → index-8041a4eb.js} +11 -1
  125. package/dist/cjs/{index-96b3db50.js → index-eadd5035.js} +17 -15
  126. package/dist/cjs/{urlFor-3a61226f.js → index-efca863c.js} +37 -88
  127. package/dist/cjs/{index-3294d3bc.js → index-f86bb269.js} +44 -45
  128. package/dist/cjs/{index-98e01cb9.js → index-fc2f1ca2.js} +13 -12
  129. package/dist/cjs/{index.es-9110add6.js → index.es-f3e47207.js} +31 -12
  130. package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
  131. package/dist/cjs/{index.esm-e32d3e8e.js → index.esm-44f3e2d0.js} +3 -6
  132. package/dist/cjs/{index.esm-4d410430.js → index.esm-8123cf40.js} +20 -20
  133. package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
  134. package/dist/cjs/index.js +170 -164
  135. package/dist/cjs/{inherits-cba9c846.js → inherits-de66ea16.js} +19 -19
  136. package/dist/cjs/{isSymbol-04666465.js → isSymbol-03abbdf0.js} +15 -15
  137. package/dist/cjs/{keys-d207942e.js → keys-e982b3fa.js} +6 -6
  138. package/dist/cjs/{lodash-fc2922d0.js → lodash-f0783643.js} +128 -31
  139. package/dist/cjs/main-025fdc78.js +973 -0
  140. package/dist/cjs/{md5-5039b1a6.js → md5-e1ca5797.js} +1 -1
  141. package/dist/cjs/{moment-575fe24c.js → moment-aca40de1.js} +11 -9
  142. package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-af932527.js} +28 -27
  143. package/dist/cjs/{slicedToArray-f6d4eaa8.js → slicedToArray-067dd3bc.js} +12 -12
  144. package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
  145. package/dist/cjs/{stringify-bbc68047.js → stringify-f7a37a8d.js} +5 -5
  146. package/dist/cjs/timeDifferenceCalc.js +1 -1
  147. package/dist/cjs/{toConsumableArray-c9b8a0d0.js → toConsumableArray-d7797c2b.js} +7 -7
  148. package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-5e1fac58.js} +40 -5
  149. package/dist/cjs/{typeof-5f52cf64.js → typeof-567e31ff.js} +35 -35
  150. package/dist/cjs/urlFor.js +59 -5
  151. package/dist/cjs/{ustream-api-9ebe112f.js → ustream-api-3819e4aa.js} +4 -4
  152. package/dist/cjs/{util-f2c1b65b.js → util-6f784d85.js} +1 -1
  153. package/dist/cjs/{visibility-sensor-ad5e3116.js → visibility-sensor-eb2c5b69.js} +7 -5
  154. package/dist/cjs/{web.dom.iterable-e34bf324.js → web.dom.iterable-d98303e0.js} +2 -2
  155. package/dist/esm/AD.js +7 -7
  156. package/dist/esm/AD300x250.js +25 -25
  157. package/dist/esm/AD300x250x600.js +25 -25
  158. package/dist/esm/AD728x90.js +28 -28
  159. package/dist/esm/ADFloatingFooter.js +27 -27
  160. package/dist/esm/ADFooter.js +9 -9
  161. package/dist/esm/ADGutter.js +27 -27
  162. package/dist/esm/{ADInfeed-0c13c803.js → ADInfeed-8c5f8c58.js} +11 -11
  163. package/dist/esm/ADSkyscraper.js +27 -27
  164. package/dist/esm/ADSponsoredResources.js +27 -27
  165. package/dist/esm/ADWebcast.js +27 -27
  166. package/dist/esm/ADWelcome.js +28 -28
  167. package/dist/esm/{ADlgInfeed-e4e2031a.js → ADlgInfeed-2316e091.js} +8 -8
  168. package/dist/esm/AccordionPanel.js +22 -22
  169. package/dist/esm/AdSlot.js +23 -23
  170. package/dist/esm/AdSlotsProvider.js +15 -907
  171. package/dist/esm/AlgoliaSearch.js +820 -702
  172. package/dist/esm/AlphabeticList.js +20 -20
  173. package/dist/esm/ArticleCarousel.js +17 -16
  174. package/dist/esm/ArticleProgramLandingPage.js +54 -53
  175. package/dist/esm/ArticleSeriesLandingPage.js +38 -33
  176. package/dist/esm/ArticleSeriesListing.js +55 -54
  177. package/dist/esm/Auth.js +659 -1487
  178. package/dist/esm/AuthWrapper.js +306 -265
  179. package/dist/esm/{AuthorComponent-e6f95c2f.js → AuthorComponent-46a745ba.js} +11 -11
  180. package/dist/esm/Beam.js +6 -6
  181. package/dist/esm/{BlockContent-f4515898.js → BlockContent-52cf21c5.js} +35 -35
  182. package/dist/esm/Breadcrumbs.js +15 -15
  183. package/dist/esm/CMEDeck.js +77 -77
  184. package/dist/esm/Column1.js +9 -9
  185. package/dist/esm/Column2.js +28 -28
  186. package/dist/esm/Column3.js +54 -54
  187. package/dist/esm/ConferenceArticleCard.js +38 -37
  188. package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
  189. package/dist/esm/DeckContent.js +96 -95
  190. package/dist/esm/DeckQueue.js +82 -81
  191. package/dist/esm/{Dfp-f867d061.js → Dfp-4ca12f2e.js} +20 -20
  192. package/dist/esm/EventsDeck.js +129 -129
  193. package/dist/esm/ExternalResources.js +73 -72
  194. package/dist/esm/Feature.js +22 -21
  195. package/dist/esm/ForbesHero.js +33 -32
  196. package/dist/esm/GridContent.js +199 -198
  197. package/dist/esm/GridHero.js +35 -34
  198. package/dist/esm/GroupDeck.js +45 -44
  199. package/dist/esm/HamMagazine.js +114 -114
  200. package/dist/esm/Header.js +8 -8
  201. package/dist/esm/Hero.js +13 -12
  202. package/dist/esm/HighlightenVideo.js +14 -14
  203. package/dist/esm/HorizontalArticleListing.js +68 -67
  204. package/dist/esm/HorizontalHero.js +25 -24
  205. package/dist/esm/IssueContentDeck.js +59 -58
  206. package/dist/esm/IssueDeck.js +63 -62
  207. package/dist/esm/IssueLanding.js +90 -88
  208. package/dist/esm/KMTracker.js +15 -15
  209. package/dist/esm/LeftNav.js +33 -33
  210. package/dist/esm/MasterDeck.js +350 -223
  211. package/dist/esm/MediaSeriesLanding.js +839 -850
  212. package/dist/esm/NavDvm.js +57 -57
  213. package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
  214. package/dist/esm/NavMagazine.js +124 -124
  215. package/dist/esm/NavNative.js +114 -114
  216. package/dist/esm/OncliveHero.js +20 -20
  217. package/dist/esm/OncliveLargeHero.js +58 -57
  218. package/dist/esm/PageFilter.js +10 -10
  219. package/dist/esm/PartnerDetailListing.js +112 -3910
  220. package/dist/esm/PdfDownload.js +6 -6
  221. package/dist/esm/PopUpModal.js +12 -12
  222. package/dist/esm/PubSection.js +37 -35
  223. package/dist/esm/PubToc.js +10 -10
  224. package/dist/esm/PublicationDeck.js +56 -55
  225. package/dist/esm/PublicationLanding.js +120 -120
  226. package/dist/esm/QueueDeckExpanded.js +1166 -994
  227. package/dist/esm/RecentNews.js +19 -19
  228. package/dist/esm/RelatedContent.js +51 -50
  229. package/dist/esm/RelatedTopicsDropdown.js +21 -21
  230. package/dist/esm/RolesDeck.js +25 -25
  231. package/dist/esm/Search.js +11 -11
  232. package/dist/esm/Segment.js +4 -4
  233. package/dist/esm/SeriesListingDeck.js +31 -30
  234. package/dist/esm/{SeriesSlider-d6561e33.js → SeriesSlider-7a6c45ce.js} +31 -31
  235. package/dist/esm/SetCookie.js +1 -1
  236. package/dist/esm/SideFooter.js +32 -32
  237. package/dist/esm/SocialIcons.js +7 -7
  238. package/dist/esm/{SocialSearchComponent-b5be0e6c.js → SocialSearchComponent-bdecba55.js} +30 -30
  239. package/dist/esm/SocialShare.js +25 -25
  240. package/dist/esm/TaxonomyCard.js +56 -55
  241. package/dist/esm/TaxonomyDescription.js +49 -48
  242. package/dist/esm/TemplateNormal.js +68 -68
  243. package/dist/esm/ThumbnailCard.js +17 -16
  244. package/dist/esm/Ustream.js +24 -24
  245. package/dist/esm/VerticalHero.js +17 -16
  246. package/dist/esm/VideoProgramLandingPage.js +65 -64
  247. package/dist/esm/VideoSeriesCard.js +26 -25
  248. package/dist/esm/VideoSeriesFilter.js +13 -13
  249. package/dist/esm/VideoSeriesLandingPage.js +42 -39
  250. package/dist/esm/VideoSeriesListing.js +72 -71
  251. package/dist/esm/View.js +246 -246
  252. package/dist/esm/YahooHero.js +33 -32
  253. package/dist/esm/YoutubeGroup.js +52 -51
  254. package/dist/esm/{_is-array-4df618a6.js → _is-array-893ab020.js} +6 -6
  255. package/dist/esm/{_iter-detect-130ee549.js → _iter-detect-f089461c.js} +7 -7
  256. package/dist/esm/{_object-pie-33c40e79.js → _object-pie-133f504a.js} +4 -4
  257. package/dist/esm/{_object-sap-8b8ea5a9.js → _object-sap-169d6272.js} +1 -1
  258. package/dist/esm/{_object-to-array-c54dd835.js → _object-to-array-50a6b9a3.js} +2 -2
  259. package/dist/esm/{asyncToGenerator-64812e90.js → asyncToGenerator-b4dfe691.js} +31 -31
  260. package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-b43c695a.js} +7 -6
  261. package/dist/esm/{core.get-iterator-method-86d4db69.js → core.get-iterator-method-e903ff31.js} +36 -36
  262. package/dist/esm/{debounce-9207d8ee.js → debounce-533d9748.js} +2 -2
  263. package/dist/esm/{define-property-6d26cb48.js → define-property-99e66838.js} +6 -6
  264. package/dist/esm/{defineProperty-d7d9b577.js → defineProperty-8fa0bc8d.js} +1 -1
  265. package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
  266. package/dist/esm/{eq-b470f743.js → eq-bdcbf886.js} +1 -1
  267. package/dist/esm/{extends-5b1796d4.js → extends-dc6a71fd.js} +7 -7
  268. package/dist/esm/faundadb.js +5 -5
  269. package/dist/esm/{get-1e515072.js → get-3c308da4.js} +21 -21
  270. package/dist/esm/getRelatedArticle.js +12 -12
  271. package/dist/esm/getRootDocGroup.js +4 -4
  272. package/dist/esm/getSerializers.js +43 -42
  273. package/dist/esm/{getTargeting-277c801e.js → getTargeting-ff2c9409.js} +11 -11
  274. package/dist/esm/getTargeting.js +6 -6
  275. package/dist/esm/{urlFor-23b2244b.js → index-0dbff1d1.js} +37 -88
  276. package/dist/esm/{index-41a678ea.js → index-2446af28.js} +6 -6
  277. package/dist/esm/{index-5f7e79e7.js → index-35bdcc81.js} +10 -10
  278. package/dist/esm/{index-aaa2dae0.js → index-67e1773f.js} +11 -2
  279. package/dist/esm/{index-ef6d5dcf.js → index-79cfd25c.js} +44 -45
  280. package/dist/esm/{index-a35a5c39.js → index-c9bfc91f.js} +1017 -1001
  281. package/dist/esm/{index.es-29c1cef5.js → index.es-c6222053.js} +28 -10
  282. package/dist/esm/{index.esm-29e48d38.js → index.esm-3fdda599.js} +6 -15
  283. package/dist/esm/{index.esm-fd746768.js → index.esm-8016b507.js} +17 -18
  284. package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
  285. package/dist/esm/{index.esm-f8aaeeeb.js → index.esm-c6715e80.js} +3 -6
  286. package/dist/esm/index.js +140 -137
  287. package/dist/esm/{inherits-2409637d.js → inherits-8a801a18.js} +18 -18
  288. package/dist/esm/{isSymbol-1981418f.js → isSymbol-a7e9aafe.js} +15 -15
  289. package/dist/esm/{keys-69989821.js → keys-425c8ab0.js} +6 -6
  290. package/dist/esm/{lodash-17fdfebb.js → lodash-f97fd99a.js} +128 -31
  291. package/dist/esm/main-4136096f.js +961 -0
  292. package/dist/esm/{md5-9be0e905.js → md5-4e42248e.js} +1 -1
  293. package/dist/esm/{moment-e2f9b20c.js → moment-bc12cb97.js} +11 -9
  294. package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-91f9716f.js} +20 -20
  295. package/dist/esm/{slicedToArray-67a08c9c.js → slicedToArray-ca2c8b8d.js} +12 -12
  296. package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
  297. package/dist/esm/stringify-c21932b3.js +15 -0
  298. package/dist/esm/timeDifferenceCalc.js +1 -1
  299. package/dist/esm/{toConsumableArray-32282905.js → toConsumableArray-7b1c0e23.js} +7 -7
  300. package/dist/esm/{toNumber-2f7a84cd.js → toNumber-5aeba6e7.js} +40 -5
  301. package/dist/esm/{typeof-c05a82ba.js → typeof-83d9eb10.js} +35 -35
  302. package/dist/esm/urlFor.js +62 -4
  303. package/dist/esm/{ustream-api-4c4fe0ba.js → ustream-api-41166338.js} +4 -4
  304. package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
  305. package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
  306. package/dist/esm/{web.dom.iterable-f8f967cd.js → web.dom.iterable-fdf034f5.js} +2 -2
  307. package/package.json +111 -112
  308. package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
  309. package/dist/cjs/Pagination-9cb60fba.js +0 -61
  310. package/dist/cjs/inherits-8d29278d.js +0 -110
  311. package/dist/cjs/main-02daeefe.js +0 -862
  312. package/dist/esm/Pagination-256b60e5.js +0 -56
  313. package/dist/esm/inherits-77d5e4fc.js +0 -101
  314. package/dist/esm/main-c0612122.js +0 -851
  315. package/dist/esm/stringify-70b72959.js +0 -15
@@ -1,5 +1,5 @@
1
- import { a as isSymbol_1, _ as _root, i as isObject_1, b as _Symbol } from './isSymbol-1981418f.js';
2
- import { i as isFunction_1, e as eq_1 } from './eq-b470f743.js';
1
+ import { a as isSymbol_1, _ as _root, i as isObject_1, b as _Symbol } from './isSymbol-a7e9aafe.js';
2
+ import { i as isFunction_1, e as eq_1 } from './eq-bdcbf886.js';
3
3
 
4
4
  /**
5
5
  * Checks if `value` is classified as an `Array` object.
@@ -80,10 +80,10 @@ function isMasked(func) {
80
80
  var _isMasked = isMasked;
81
81
 
82
82
  /** Used for built-in method references. */
83
- var funcProto = Function.prototype;
83
+ var funcProto$1 = Function.prototype;
84
84
 
85
85
  /** Used to resolve the decompiled source of functions. */
86
- var funcToString = funcProto.toString;
86
+ var funcToString$1 = funcProto$1.toString;
87
87
 
88
88
  /**
89
89
  * Converts `func` to its source code.
@@ -95,7 +95,7 @@ var funcToString = funcProto.toString;
95
95
  function toSource(func) {
96
96
  if (func != null) {
97
97
  try {
98
- return funcToString.call(func);
98
+ return funcToString$1.call(func);
99
99
  } catch (e) {}
100
100
  try {
101
101
  return (func + '');
@@ -116,18 +116,18 @@ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
116
116
  var reIsHostCtor = /^\[object .+?Constructor\]$/;
117
117
 
118
118
  /** Used for built-in method references. */
119
- var funcProto$1 = Function.prototype,
120
- objectProto = Object.prototype;
119
+ var funcProto = Function.prototype,
120
+ objectProto$2 = Object.prototype;
121
121
 
122
122
  /** Used to resolve the decompiled source of functions. */
123
- var funcToString$1 = funcProto$1.toString;
123
+ var funcToString = funcProto.toString;
124
124
 
125
125
  /** Used to check objects for own properties. */
126
- var hasOwnProperty = objectProto.hasOwnProperty;
126
+ var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
127
127
 
128
128
  /** Used to detect if a method is native. */
129
129
  var reIsNative = RegExp('^' +
130
- funcToString$1.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
130
+ funcToString.call(hasOwnProperty$2).replace(reRegExpChar, '\\$&')
131
131
  .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
132
132
  );
133
133
 
@@ -216,7 +216,7 @@ function hashDelete(key) {
216
216
  var _hashDelete = hashDelete;
217
217
 
218
218
  /** Used to stand-in for `undefined` hash values. */
219
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
219
+ var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
220
220
 
221
221
  /** Used for built-in method references. */
222
222
  var objectProto$1 = Object.prototype;
@@ -237,7 +237,7 @@ function hashGet(key) {
237
237
  var data = this.__data__;
238
238
  if (_nativeCreate) {
239
239
  var result = data[key];
240
- return result === HASH_UNDEFINED ? undefined : result;
240
+ return result === HASH_UNDEFINED$1 ? undefined : result;
241
241
  }
242
242
  return hasOwnProperty$1.call(data, key) ? data[key] : undefined;
243
243
  }
@@ -245,10 +245,10 @@ function hashGet(key) {
245
245
  var _hashGet = hashGet;
246
246
 
247
247
  /** Used for built-in method references. */
248
- var objectProto$2 = Object.prototype;
248
+ var objectProto = Object.prototype;
249
249
 
250
250
  /** Used to check objects for own properties. */
251
- var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
251
+ var hasOwnProperty = objectProto.hasOwnProperty;
252
252
 
253
253
  /**
254
254
  * Checks if a hash value for `key` exists.
@@ -261,13 +261,13 @@ var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
261
261
  */
262
262
  function hashHas(key) {
263
263
  var data = this.__data__;
264
- return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$2.call(data, key);
264
+ return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
265
265
  }
266
266
 
267
267
  var _hashHas = hashHas;
268
268
 
269
269
  /** Used to stand-in for `undefined` hash values. */
270
- var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
270
+ var HASH_UNDEFINED = '__lodash_hash_undefined__';
271
271
 
272
272
  /**
273
273
  * Sets the hash `key` to `value`.
@@ -282,7 +282,7 @@ var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
282
282
  function hashSet(key, value) {
283
283
  var data = this.__data__;
284
284
  this.size += this.has(key) ? 0 : 1;
285
- data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED$1 : value;
285
+ data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
286
286
  return this;
287
287
  }
288
288
 
@@ -765,7 +765,7 @@ function arrayMap(array, iteratee) {
765
765
  var _arrayMap = arrayMap;
766
766
 
767
767
  /** Used as references for various `Number` constants. */
768
- var INFINITY = 1 / 0;
768
+ var INFINITY$1 = 1 / 0;
769
769
 
770
770
  /** Used to convert symbols to primitives and strings. */
771
771
  var symbolProto = _Symbol ? _Symbol.prototype : undefined,
@@ -792,7 +792,7 @@ function baseToString(value) {
792
792
  return symbolToString ? symbolToString.call(value) : '';
793
793
  }
794
794
  var result = (value + '');
795
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
795
+ return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
796
796
  }
797
797
 
798
798
  var _baseToString = baseToString;
@@ -842,7 +842,7 @@ function castPath(value, object) {
842
842
  var _castPath = castPath;
843
843
 
844
844
  /** Used as references for various `Number` constants. */
845
- var INFINITY$1 = 1 / 0;
845
+ var INFINITY = 1 / 0;
846
846
 
847
847
  /**
848
848
  * Converts `value` to a string key if it's not a string or symbol.
@@ -856,7 +856,7 @@ function toKey(value) {
856
856
  return value;
857
857
  }
858
858
  var result = (value + '');
859
- return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
859
+ return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
860
860
  }
861
861
 
862
862
  var _toKey = toKey;
@@ -1,11 +1,11 @@
1
+ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-b4dfe691.js';
1
2
  import { c as createCommonjsModule, u as unwrapExports, a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
2
- import './core.get-iterator-method-86d4db69.js';
3
- import './_library-528f1934.js';
4
- import './_iter-detect-130ee549.js';
5
- import './web.dom.iterable-f8f967cd.js';
6
- import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-64812e90.js';
7
3
  import { c as cookie } from './index-db3bb315.js';
8
4
  import getQuery from './getQuery.js';
5
+ import './core.get-iterator-method-e903ff31.js';
6
+ import './web.dom.iterable-fdf034f5.js';
7
+ import './_library-528f1934.js';
8
+ import './_iter-detect-f089461c.js';
9
9
 
10
10
  var defaultParseOptions = {
11
11
  decodeValues: true,
@@ -282,14 +282,14 @@ function areCookiesEqual(a, b) {
282
282
  }
283
283
  exports.areCookiesEqual = areCookiesEqual;
284
284
  /* Functions */
285
-
285
+ //# sourceMappingURL=utils.js.map
286
286
  });
287
287
 
288
288
  unwrapExports(utils);
289
- var utils_1 = utils.areCookiesEqual;
290
- var utils_2 = utils.hasSameProperties;
291
- var utils_3 = utils.createCookie;
292
- var utils_4 = utils.isBrowser;
289
+ utils.areCookiesEqual;
290
+ utils.hasSameProperties;
291
+ utils.createCookie;
292
+ utils.isBrowser;
293
293
 
294
294
  var dist = createCommonjsModule(function (module, exports) {
295
295
  var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
@@ -412,11 +412,11 @@ exports.default = {
412
412
  get: parseCookies,
413
413
  destroy: destroyCookie,
414
414
  };
415
-
415
+ //# sourceMappingURL=index.js.map
416
416
  });
417
417
 
418
418
  unwrapExports(dist);
419
- var dist_1 = dist.destroyCookie;
419
+ dist.destroyCookie;
420
420
  var dist_2 = dist.setCookie;
421
421
  var dist_3 = dist.parseCookies;
422
422
 
@@ -1,9 +1,9 @@
1
+ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-b4dfe691.js';
1
2
  import './_commonjsHelpers-0c4b6f40.js';
2
- import './core.get-iterator-method-86d4db69.js';
3
+ import './core.get-iterator-method-e903ff31.js';
4
+ import './web.dom.iterable-fdf034f5.js';
3
5
  import './_library-528f1934.js';
4
- import './_iter-detect-130ee549.js';
5
- import './web.dom.iterable-f8f967cd.js';
6
- import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-64812e90.js';
6
+ import './_iter-detect-f089461c.js';
7
7
 
8
8
  var _this = undefined;
9
9
 
@@ -1,54 +1,55 @@
1
- import './_commonjsHelpers-0c4b6f40.js';
2
- import './core.get-iterator-method-86d4db69.js';
3
- import './_library-528f1934.js';
4
- import './_iter-detect-130ee549.js';
5
- import './toConsumableArray-32282905.js';
6
- import './_object-pie-33c40e79.js';
7
- import './extends-5b1796d4.js';
8
- import './_object-sap-8b8ea5a9.js';
9
- import './inherits-2409637d.js';
10
- import './define-property-6d26cb48.js';
11
- import './web.dom.iterable-f8f967cd.js';
12
- import './typeof-c05a82ba.js';
13
- import './_is-array-4df618a6.js';
1
+ import './extends-dc6a71fd.js';
14
2
  import 'react';
3
+ export { g as default } from './index-c9bfc91f.js';
4
+ import './BlockContent-52cf21c5.js';
5
+ import './entities-932b50cf.js';
6
+ import './_commonjsHelpers-0c4b6f40.js';
7
+ import './core.get-iterator-method-e903ff31.js';
8
+ import './_object-pie-133f504a.js';
9
+ import './slicedToArray-ca2c8b8d.js';
10
+ import './web.dom.iterable-fdf034f5.js';
11
+ import 'react-bootstrap';
12
+ import './urlFor.js';
13
+ import './index-0dbff1d1.js';
14
+ import './index-2446af28.js';
15
15
  import './events-6c3a7a63.js';
16
- import './index-41a678ea.js';
17
16
  import 'prop-types';
18
- import 'react-bootstrap/Row';
19
- import 'react-bootstrap/Col';
20
- import './moment-e2f9b20c.js';
21
17
  import 'next/router';
22
- import './isSymbol-1981418f.js';
23
- import './debounce-9207d8ee.js';
24
- import './toNumber-2f7a84cd.js';
25
- import 'react-dom';
26
- import './slicedToArray-67a08c9c.js';
27
- import './urlFor-23b2244b.js';
28
- import './index-5f7e79e7.js';
29
- import './main-c0612122.js';
30
- import './entities-7cc3bf45.js';
31
- import './stringify-70b72959.js';
32
- import './asyncToGenerator-64812e90.js';
33
- import './Segment.js';
34
- import './Beam.js';
35
- import './AdSlot.js';
36
- import 'react-bootstrap/Button';
37
- import './BlockContent-f4515898.js';
38
18
  import './index-c7e2ac95.js';
39
- import './smoothscroll-0cd4c7a6.js';
19
+ import './util-3ab476bf.js';
20
+ import './Beam.js';
21
+ import './stringify-c21932b3.js';
22
+ import './asyncToGenerator-b4dfe691.js';
23
+ import './_library-528f1934.js';
24
+ import './_iter-detect-f089461c.js';
25
+ import './Segment.js';
26
+ import './main-4136096f.js';
27
+ import './index-35bdcc81.js';
28
+ import 'react-dom';
29
+ import './typeof-83d9eb10.js';
30
+ import './_is-array-893ab020.js';
31
+ import './brightcove-react-player-loader.es-b43c695a.js';
40
32
  import './GroupDeck.js';
41
- import 'react-bootstrap';
42
- import './iconBase-602d52fe.js';
43
- import './index.esm-29e48d38.js';
44
- export { g as default } from './index-a35a5c39.js';
45
- import './util-7700fc59.js';
46
- import './brightcove-react-player-loader.es-83f53e4e.js';
33
+ import './smoothscroll-fa4e3f8c.js';
34
+ import './moment-bc12cb97.js';
35
+ import './SocialShare.js';
47
36
  import 'next/head';
48
37
  import 'react-share';
49
- import './SocialShare.js';
50
- import './_object-to-array-c54dd835.js';
38
+ import './_object-to-array-50a6b9a3.js';
39
+ import './toConsumableArray-7b1c0e23.js';
51
40
  import 'react-bootstrap/Pagination';
41
+ import 'react-bootstrap/Button';
42
+ import './AdSlot.js';
43
+ import './debounce-533d9748.js';
44
+ import './isSymbol-a7e9aafe.js';
45
+ import './toNumber-5aeba6e7.js';
46
+ import 'react-bootstrap/Row';
47
+ import 'react-bootstrap/Col';
48
+ import './inherits-8a801a18.js';
49
+ import './_object-sap-169d6272.js';
50
+ import './define-property-99e66838.js';
51
+ import './index.esm-3fdda599.js';
52
+ import './iconBase-602d52fe.js';
52
53
  import 'react-bootstrap/Figure';
53
54
  import 'react-bootstrap/OverlayTrigger';
54
55
  import 'react-bootstrap/Tooltip';
@@ -1,19 +1,19 @@
1
- import { _ as _toConsumableArray } from './toConsumableArray-32282905.js';
2
- import { _ as _extends } from './extends-5b1796d4.js';
1
+ import { _ as _extends } from './extends-dc6a71fd.js';
2
+ import { _ as _toConsumableArray } from './toConsumableArray-7b1c0e23.js';
3
3
 
4
4
  var getContentPlacementUrl = function getContentPlacementUrl(cp) {
5
- var cp_url = '';
6
- if (cp.ancestor && typeof cp.ancestor == 'string') {
7
- cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
8
- }
5
+ var cp_url = '';
6
+ if (cp.ancestor && typeof cp.ancestor == 'string') {
7
+ cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
8
+ }
9
9
 
10
- if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
11
- cp_url += (cp_url === '' ? '' : '/') + cp.parent;
12
- }
10
+ if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
11
+ cp_url += (cp_url === '' ? '' : '/') + cp.parent;
12
+ }
13
13
 
14
- cp_url += (cp_url === '' ? '' : '/') + (cp.adTargetingURL ? adTargetingURL : cp.path);
14
+ cp_url += (cp_url === '' ? '' : '/') + (cp.adTargetingURL ? adTargetingURL : cp.path);
15
15
 
16
- return cp_url;
16
+ return cp_url;
17
17
  };
18
18
 
19
19
  var getTargeting = function getTargeting(props) {
@@ -1,7 +1,7 @@
1
+ import './extends-dc6a71fd.js';
2
+ import './toConsumableArray-7b1c0e23.js';
3
+ export { g as default } from './getTargeting-ff2c9409.js';
1
4
  import './_commonjsHelpers-0c4b6f40.js';
2
- import './core.get-iterator-method-86d4db69.js';
3
- import './_iter-detect-130ee549.js';
4
- import './toConsumableArray-32282905.js';
5
- import './_object-pie-33c40e79.js';
6
- import './extends-5b1796d4.js';
7
- export { g as default } from './getTargeting-277c801e.js';
5
+ import './core.get-iterator-method-e903ff31.js';
6
+ import './_object-pie-133f504a.js';
7
+ import './_iter-detect-f089461c.js';
@@ -1,5 +1,4 @@
1
1
  import { c as createCommonjsModule, u as unwrapExports, a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
2
- import { _ as _slicedToArray } from './slicedToArray-67a08c9c.js';
3
2
 
4
3
  var parseAssetId_1 = createCommonjsModule(function (module, exports) {
5
4
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -19,7 +18,7 @@ function parseAssetId(ref) {
19
18
  return { id: id, width: width, height: height, format: format };
20
19
  }
21
20
  exports.default = parseAssetId;
22
-
21
+ //# sourceMappingURL=parseAssetId.js.map
23
22
  });
24
23
 
25
24
  unwrapExports(parseAssetId_1);
@@ -59,35 +58,35 @@ function parseSource(source) {
59
58
  if (typeof source === 'string' && isUrl(source)) {
60
59
  // Someone passed an existing image url?
61
60
  image = {
62
- asset: { _ref: urlToId(source) }
61
+ asset: { _ref: urlToId(source) },
63
62
  };
64
63
  }
65
64
  else if (typeof source === 'string') {
66
65
  // Just an asset id
67
66
  image = {
68
- asset: { _ref: source }
67
+ asset: { _ref: source },
69
68
  };
70
69
  }
71
70
  else if (isRef(source)) {
72
71
  // We just got passed an asset directly
73
72
  image = {
74
- asset: source
73
+ asset: source,
75
74
  };
76
75
  }
77
76
  else if (isAsset(source)) {
78
77
  // If we were passed an image asset document
79
78
  image = {
80
79
  asset: {
81
- _ref: source._id || ''
82
- }
80
+ _ref: source._id || '',
81
+ },
83
82
  };
84
83
  }
85
84
  else if (isAssetStub(source)) {
86
85
  // If we were passed a partial asset (`url`, but no `_id`)
87
86
  image = {
88
87
  asset: {
89
- _ref: urlToId(source.asset.url)
90
- }
88
+ _ref: urlToId(source.asset.url),
89
+ },
91
90
  };
92
91
  }
93
92
  else if (typeof source.asset === 'object') {
@@ -128,7 +127,7 @@ function applyDefaults(image) {
128
127
  left: 0,
129
128
  top: 0,
130
129
  bottom: 0,
131
- right: 0
130
+ right: 0,
132
131
  };
133
132
  }
134
133
  if (!result.hotspot) {
@@ -136,12 +135,12 @@ function applyDefaults(image) {
136
135
  x: 0.5,
137
136
  y: 0.5,
138
137
  height: 1.0,
139
- width: 1.0
138
+ width: 1.0,
140
139
  };
141
140
  }
142
141
  return result;
143
142
  }
144
-
143
+ //# sourceMappingURL=parseSource.js.map
145
144
  });
146
145
 
147
146
  unwrapExports(parseSource_1);
@@ -183,7 +182,8 @@ exports.SPEC_NAME_TO_URL_NAME_MAPPINGS = [
183
182
  ['crop', 'crop'],
184
183
  ['saturation', 'sat'],
185
184
  ['auto', 'auto'],
186
- ['dpr', 'dpr']
185
+ ['dpr', 'dpr'],
186
+ ['pad', 'pad'],
187
187
  ];
188
188
  function urlForImage(options) {
189
189
  var spec = __assign({}, (options || {}));
@@ -202,7 +202,7 @@ function urlForImage(options) {
202
202
  left: cropLeft,
203
203
  top: cropTop,
204
204
  width: Math.round(asset.width - image.crop.right * asset.width - cropLeft),
205
- height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop)
205
+ height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop),
206
206
  };
207
207
  // Compute hot spot rect in terms of pixel coordinates
208
208
  var hotSpotVerticalRadius = (image.hotspot.height * asset.height) / 2;
@@ -213,7 +213,7 @@ function urlForImage(options) {
213
213
  left: hotSpotCenterX - hotSpotHorizontalRadius,
214
214
  top: hotSpotCenterY - hotSpotVerticalRadius,
215
215
  right: hotSpotCenterX + hotSpotHorizontalRadius,
216
- bottom: hotSpotCenterY + hotSpotVerticalRadius
216
+ bottom: hotSpotCenterY + hotSpotVerticalRadius,
217
217
  };
218
218
  // If irrelevant, or if we are requested to: don't perform crop/fit based on
219
219
  // the crop/hotspot.
@@ -295,7 +295,7 @@ function fit(source, spec) {
295
295
  left: Math.round(left),
296
296
  top: Math.round(top_2),
297
297
  width: Math.round(width),
298
- height: Math.round(height)
298
+ height: Math.round(height),
299
299
  };
300
300
  }
301
301
  else {
@@ -317,21 +317,21 @@ function fit(source, spec) {
317
317
  left: Math.max(0, Math.floor(left)),
318
318
  top: Math.max(0, Math.floor(top_3)),
319
319
  width: Math.round(width),
320
- height: Math.round(height)
320
+ height: Math.round(height),
321
321
  };
322
322
  }
323
323
  return {
324
324
  width: imgWidth,
325
325
  height: imgHeight,
326
- rect: cropRect
326
+ rect: cropRect,
327
327
  };
328
328
  }
329
-
329
+ //# sourceMappingURL=urlForImage.js.map
330
330
  });
331
331
 
332
332
  unwrapExports(urlForImage_1);
333
- var urlForImage_2 = urlForImage_1.parseSource;
334
- var urlForImage_3 = urlForImage_1.SPEC_NAME_TO_URL_NAME_MAPPINGS;
333
+ urlForImage_1.parseSource;
334
+ urlForImage_1.SPEC_NAME_TO_URL_NAME_MAPPINGS;
335
335
 
336
336
  var builder = createCommonjsModule(function (module, exports) {
337
337
  var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
@@ -357,7 +357,7 @@ var urlForImage_1$1 = __importStar(urlForImage_1);
357
357
  var validFits = ['clip', 'crop', 'fill', 'fillmax', 'max', 'scale', 'min'];
358
358
  var validCrops = ['top', 'bottom', 'left', 'right', 'center', 'focalpoint', 'entropy'];
359
359
  var validAutoModes = ['format'];
360
- function isSanityClient(client) {
360
+ function isSanityClientLike(client) {
361
361
  return client ? typeof client.clientConfig === 'object' : false;
362
362
  }
363
363
  function rewriteSpecName(key) {
@@ -374,13 +374,14 @@ function rewriteSpecName(key) {
374
374
  function urlBuilder(options) {
375
375
  // Did we get a SanityClient?
376
376
  var client = options;
377
- if (isSanityClient(client)) {
377
+ if (isSanityClientLike(client)) {
378
378
  // Inherit config from client
379
- var _a = client.clientConfig, apiHost = _a.apiHost, projectId = _a.projectId, dataset = _a.dataset;
379
+ var _a = client.clientConfig, apiUrl = _a.apiHost, projectId = _a.projectId, dataset = _a.dataset;
380
+ var apiHost = apiUrl || 'https://api.sanity.io';
380
381
  return new ImageUrlBuilder(null, {
381
382
  baseUrl: apiHost.replace(/^https:\/\/api\./, 'https://cdn.'),
382
383
  projectId: projectId,
383
- dataset: dataset
384
+ dataset: dataset,
384
385
  });
385
386
  }
386
387
  // Or just accept the options as given
@@ -393,7 +394,7 @@ var ImageUrlBuilder = /** @class */ (function () {
393
394
  ? __assign(__assign({}, (parent.options || {})), (options || {})) : __assign({}, (options || {})); // Copy options
394
395
  }
395
396
  ImageUrlBuilder.prototype.withOptions = function (options) {
396
- var baseUrl = options.baseUrl || '';
397
+ var baseUrl = options.baseUrl || this.options.baseUrl;
397
398
  var newOptions = { baseUrl: baseUrl };
398
399
  for (var key in options) {
399
400
  if (options.hasOwnProperty(key)) {
@@ -487,7 +488,7 @@ var ImageUrlBuilder = /** @class */ (function () {
487
488
  ImageUrlBuilder.prototype.flipHorizontal = function () {
488
489
  return this.withOptions({ flipHorizontal: true });
489
490
  };
490
- // Flip image verically
491
+ // Flip image vertically
491
492
  ImageUrlBuilder.prototype.flipVertical = function () {
492
493
  return this.withOptions({ flipVertical: true });
493
494
  };
@@ -517,22 +518,26 @@ var ImageUrlBuilder = /** @class */ (function () {
517
518
  }
518
519
  return this.withOptions({ auto: value });
519
520
  };
521
+ // Specify the number of pixels to pad the image
522
+ ImageUrlBuilder.prototype.pad = function (pad) {
523
+ return this.withOptions({ pad: pad });
524
+ };
520
525
  // Gets the url based on the submitted parameters
521
526
  ImageUrlBuilder.prototype.url = function () {
522
527
  return urlForImage_1$1.default(this.options);
523
528
  };
524
- // Synonym for url()
529
+ // Alias for url()
525
530
  ImageUrlBuilder.prototype.toString = function () {
526
531
  return this.url();
527
532
  };
528
533
  return ImageUrlBuilder;
529
534
  }());
530
535
  exports.ImageUrlBuilder = ImageUrlBuilder;
531
-
536
+ //# sourceMappingURL=builder.js.map
532
537
  });
533
538
 
534
539
  unwrapExports(builder);
535
- var builder_1 = builder.ImageUrlBuilder;
540
+ builder.ImageUrlBuilder;
536
541
 
537
542
  var node = createCommonjsModule(function (module) {
538
543
  var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
@@ -540,65 +545,9 @@ var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || func
540
545
  };
541
546
  var builder_1 = __importDefault(builder);
542
547
  module.exports = builder_1.default;
543
-
548
+ //# sourceMappingURL=index.js.map
544
549
  });
545
550
 
546
551
  var imageUrlBuilder = unwrapExports(node);
547
552
 
548
- // Sanity image auto formating
549
-
550
- function urlFor(_ref) {
551
- var client = _ref.client,
552
- source = _ref.source,
553
- _ref$imageWidth = _ref.imageWidth,
554
- imageWidth = _ref$imageWidth === undefined ? null : _ref$imageWidth,
555
- _ref$imageHeight = _ref.imageHeight,
556
- imageHeight = _ref$imageHeight === undefined ? null : _ref$imageHeight,
557
- _ref$imageMaxHeight = _ref.imageMaxHeight,
558
- imageMaxHeight = _ref$imageMaxHeight === undefined ? null : _ref$imageMaxHeight,
559
- _ref$imageFit = _ref.imageFit,
560
- imageFit = _ref$imageFit === undefined ? 'crop' : _ref$imageFit;
561
-
562
-
563
- // when imageFit value = null and it's specifically provided, it's value not gets defaulted to 'crop'
564
- if (!imageFit) {
565
- imageFit = 'crop';
566
- }
567
-
568
- //checks for old usage so it wont break view pages
569
- //All view pages are using urlFor(client, thumbnail.asset).url()
570
- //will need to update to urlFor({client, source: thumbnail.asset})
571
- //All framework components are using new format
572
- if (arguments[1] && arguments[1]._ref) {
573
- return imageUrlBuilder(client).image(source).auto('format');
574
- }
575
-
576
- if (imageWidth && imageHeight) {
577
- imageMaxHeight = imageHeight;
578
- imageHeight = null;
579
- }
580
-
581
- var builder = imageUrlBuilder(client);
582
- var url = builder.image(source);
583
- if (imageWidth) url = url.width(imageWidth);
584
- if (imageHeight) url = url.height(imageHeight);
585
- if (imageMaxHeight) url = url.maxHeight(imageMaxHeight);
586
- if (imageFit) url = url.fit(imageFit);
587
- url = url.auto('format').url();
588
-
589
- // Appending file name in URL
590
- var originalFilename = source && source.originalFilename ? source.originalFilename : source && source.asset && source.asset.originalFilename && source.asset.originalFilename;
591
- if (originalFilename) {
592
- var _url$split = url.split('?'),
593
- _url$split2 = _slicedToArray(_url$split, 2),
594
- path = _url$split2[0],
595
- queryString = _url$split2[1];
596
-
597
- originalFilename = encodeURIComponent(originalFilename);
598
- url = queryString ? path + '/' + originalFilename + '?' + queryString : path + '/' + originalFilename;
599
- }
600
-
601
- return url;
602
- }
603
-
604
- export { node as n, urlFor as u };
553
+ export { imageUrlBuilder as i, node as n };