@mjhls/mjh-framework 1.0.779-beta.1 → 1.0.779

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 (291) hide show
  1. package/dist/cjs/AD.js +10 -9
  2. package/dist/cjs/AD300x250.js +28 -27
  3. package/dist/cjs/AD300x250x600.js +28 -27
  4. package/dist/cjs/AD728x90.js +31 -30
  5. package/dist/cjs/ADFloatingFooter.js +30 -29
  6. package/dist/cjs/ADFooter.js +15 -14
  7. package/dist/cjs/ADGutter.js +30 -29
  8. package/dist/cjs/{ADInfeed-89761278.js → ADInfeed-d1eceaf2.js} +15 -13
  9. package/dist/cjs/ADSkyscraper.js +30 -29
  10. package/dist/cjs/ADSponsoredResources.js +30 -29
  11. package/dist/cjs/ADWebcast.js +30 -29
  12. package/dist/cjs/ADWelcome.js +31 -30
  13. package/dist/cjs/{ADlgInfeed-853ddc3d.js → ADlgInfeed-24c693d8.js} +11 -10
  14. package/dist/cjs/AccordionPanel.js +31 -29
  15. package/dist/cjs/AdSlot.js +33 -32
  16. package/dist/cjs/AdSlotsProvider.js +17 -16
  17. package/dist/cjs/AlphabeticList.js +25 -24
  18. package/dist/cjs/ArticleCarousel.js +24 -23
  19. package/dist/cjs/ArticleProgramLandingPage.js +57 -56
  20. package/dist/cjs/ArticleSeriesLandingPage.js +39 -38
  21. package/dist/cjs/ArticleSeriesListing.js +61 -60
  22. package/dist/cjs/Auth.js +820 -334
  23. package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-5fa89df5.js} +14 -13
  24. package/dist/cjs/Beam.js +9 -9
  25. package/dist/cjs/{BlockContent-091a991f.js → BlockContent-eca358e4.js} +25 -24
  26. package/dist/cjs/Breadcrumbs.js +29 -27
  27. package/dist/cjs/CMEDeck.js +83 -83
  28. package/dist/cjs/Column1.js +14 -11
  29. package/dist/cjs/Column2.js +36 -33
  30. package/dist/cjs/Column3.js +58 -55
  31. package/dist/cjs/ConferenceArticleCard.js +24 -23
  32. package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
  33. package/dist/cjs/DeckContent.js +98 -94
  34. package/dist/cjs/DeckQueue.js +91 -87
  35. package/dist/cjs/{Dfp-b807d8fa.js → Dfp-a17e00fa.js} +32 -31
  36. package/dist/cjs/EventsDeck.js +138 -131
  37. package/dist/cjs/ExternalResources.js +79 -78
  38. package/dist/cjs/Feature.js +27 -25
  39. package/dist/cjs/ForbesHero.js +41 -40
  40. package/dist/cjs/GridContent.js +182 -178
  41. package/dist/cjs/GridHero.js +43 -42
  42. package/dist/cjs/GroupDeck.js +59 -58
  43. package/dist/cjs/HamMagazine.js +136 -131
  44. package/dist/cjs/Header.js +13 -11
  45. package/dist/cjs/Hero.js +13 -12
  46. package/dist/cjs/HighlightenVideo.js +18 -17
  47. package/dist/cjs/HorizontalArticleListing.js +71 -70
  48. package/dist/cjs/HorizontalHero.js +26 -25
  49. package/dist/cjs/IssueContentDeck.js +77 -72
  50. package/dist/cjs/IssueDeck.js +75 -70
  51. package/dist/cjs/IssueLanding.js +41 -40
  52. package/dist/cjs/LeftNav.js +38 -36
  53. package/dist/cjs/MasterDeck.js +71 -70
  54. package/dist/cjs/MediaSeriesLanding.js +41 -39
  55. package/dist/cjs/NavDvm.js +80 -75
  56. package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
  57. package/dist/cjs/NavMagazine.js +143 -138
  58. package/dist/cjs/NavNative.js +135 -127
  59. package/dist/cjs/NavNormal.js +53 -48
  60. package/dist/cjs/OncliveHero.js +20 -20
  61. package/dist/cjs/OncliveLargeHero.js +67 -66
  62. package/dist/cjs/PageFilter.js +15 -14
  63. package/dist/cjs/PartnerDetailListing.js +107 -106
  64. package/dist/cjs/PdfDownload.js +9 -8
  65. package/dist/cjs/PopUpModal.js +21 -19
  66. package/dist/cjs/PubSection.js +40 -39
  67. package/dist/cjs/PubToc.js +17 -16
  68. package/dist/cjs/PublicationDeck.js +66 -61
  69. package/dist/cjs/PublicationLanding.js +80 -76
  70. package/dist/cjs/QueueDeckExpanded.js +292 -292
  71. package/dist/cjs/RecentNews.js +24 -23
  72. package/dist/cjs/RelatedContent.js +25 -24
  73. package/dist/cjs/RelatedTopicsDropdown.js +22 -19
  74. package/dist/cjs/RolesDeck.js +32 -27
  75. package/dist/cjs/Search.js +22 -18
  76. package/dist/cjs/Segment.js +7 -7
  77. package/dist/cjs/SeriesListingDeck.js +37 -37
  78. package/dist/cjs/{SeriesSlider-f662f1f5.js → SeriesSlider-193a2958.js} +38 -37
  79. package/dist/cjs/SetCookie.js +1 -1
  80. package/dist/cjs/SideFooter.js +36 -35
  81. package/dist/cjs/SocialIcons.js +10 -9
  82. package/dist/cjs/{SocialSearchComponent-8dd468fd.js → SocialSearchComponent-45c54bed.js} +40 -36
  83. package/dist/cjs/SocialShare.js +31 -29
  84. package/dist/cjs/TaxonomyCard.js +62 -57
  85. package/dist/cjs/TaxonomyDescription.js +54 -53
  86. package/dist/cjs/TemplateNormal.js +74 -73
  87. package/dist/cjs/ThumbnailCard.js +22 -20
  88. package/dist/cjs/Ustream.js +27 -26
  89. package/dist/cjs/VerticalHero.js +18 -17
  90. package/dist/cjs/VideoProgramLandingPage.js +76 -72
  91. package/dist/cjs/VideoSeriesCard.js +32 -31
  92. package/dist/cjs/VideoSeriesFilter.js +19 -19
  93. package/dist/cjs/VideoSeriesLandingPage.js +47 -46
  94. package/dist/cjs/VideoSeriesListing.js +78 -77
  95. package/dist/cjs/View.js +260 -257
  96. package/dist/cjs/YahooHero.js +40 -39
  97. package/dist/cjs/YoutubeGroup.js +63 -62
  98. package/dist/cjs/{_is-array-754e012d.js → _is-array-63ae4740.js} +6 -6
  99. package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-2613ffa1.js} +2 -2
  100. package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-c5bd707d.js} +1 -1
  101. package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-bec5fcf2.js} +1 -1
  102. package/dist/cjs/{_set-species-f92c67c5.js → _set-species-a8cfdb84.js} +4 -4
  103. package/dist/cjs/{_to-object-329a650b.js → _to-object-821a2927.js} +4 -4
  104. package/dist/cjs/{asyncToGenerator-533d476a.js → asyncToGenerator-2edcb6ad.js} +8 -8
  105. package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-a195642e.js} +11 -9
  106. package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-b4615fd3.js} +2 -2
  107. package/dist/cjs/{define-property-f4d12f4e.js → define-property-aff11f8a.js} +1 -1
  108. package/dist/cjs/{defineProperty-55548b25.js → defineProperty-d6fbb280.js} +1 -1
  109. package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
  110. package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-20d42c53.js} +2 -2
  111. package/dist/cjs/{extends-60837c34.js → extends-1e24fc8d.js} +1 -1
  112. package/dist/cjs/getQuery.js +1 -1
  113. package/dist/cjs/getRelatedArticle.js +138 -76
  114. package/dist/cjs/getRootDocGroup.js +7 -7
  115. package/dist/cjs/getSerializers.js +44 -44
  116. package/dist/cjs/{getTargeting-9af0ef69.js → getTargeting-497b581d.js} +3 -3
  117. package/dist/cjs/getTargeting.js +7 -7
  118. package/dist/cjs/iconBase-68959171.js +0 -3
  119. package/dist/cjs/{index-8bf6c863.js → index-0e4427c8.js} +12 -11
  120. package/dist/cjs/{index-3294d3bc.js → index-4d74ffd6.js} +40 -41
  121. package/dist/cjs/{index-da796b8c.js → index-80f57cff.js} +17 -15
  122. package/dist/cjs/{index-a8fbfd22.js → index-8ef858d4.js} +934 -911
  123. package/dist/cjs/{index-be0c82be.js → index-d48b231c.js} +31 -25
  124. package/dist/cjs/{index.es-9110add6.js → index.es-f3e47207.js} +31 -12
  125. package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
  126. package/dist/cjs/{index.esm-66ffa47a.js → index.esm-3b9b8952.js} +4 -9
  127. package/dist/cjs/{index.esm-4d410430.js → index.esm-8123cf40.js} +20 -20
  128. package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
  129. package/dist/cjs/index.js +164 -161
  130. package/dist/cjs/{inherits-c9f99d47.js → inherits-2eb23889.js} +5 -5
  131. package/dist/cjs/{keys-a586b7a0.js → keys-95c064c9.js} +2 -2
  132. package/dist/cjs/{lodash-fc2922d0.js → lodash-4ef21f0f.js} +72 -23
  133. package/dist/cjs/{main-02daeefe.js → main-dc082238.js} +116 -80
  134. package/dist/cjs/{moment-575fe24c.js → moment-aca40de1.js} +11 -9
  135. package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-af932527.js} +28 -27
  136. package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-db24842a.js} +4 -4
  137. package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
  138. package/dist/cjs/{stringify-7c5aff47.js → stringify-01cf47f7.js} +1 -1
  139. package/dist/cjs/timeDifferenceCalc.js +1 -1
  140. package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-cf0865fc.js} +4 -4
  141. package/dist/cjs/{typeof-725500bc.js → typeof-97065d40.js} +7 -7
  142. package/dist/cjs/urlFor.js +2 -2
  143. package/dist/cjs/{util-f2c1b65b.js → util-6f784d85.js} +1 -1
  144. package/dist/cjs/{visibility-sensor-0c45a583.js → visibility-sensor-8b54af99.js} +7 -5
  145. package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-4480325a.js} +3 -3
  146. package/dist/esm/AD.js +7 -7
  147. package/dist/esm/AD300x250.js +24 -24
  148. package/dist/esm/AD300x250x600.js +24 -24
  149. package/dist/esm/AD728x90.js +27 -27
  150. package/dist/esm/ADFloatingFooter.js +26 -26
  151. package/dist/esm/ADFooter.js +11 -11
  152. package/dist/esm/ADGutter.js +26 -26
  153. package/dist/esm/{ADInfeed-1e0d374f.js → ADInfeed-c12cd1ce.js} +9 -9
  154. package/dist/esm/ADSkyscraper.js +26 -26
  155. package/dist/esm/ADSponsoredResources.js +26 -26
  156. package/dist/esm/ADWebcast.js +26 -26
  157. package/dist/esm/ADWelcome.js +27 -27
  158. package/dist/esm/{ADlgInfeed-c089deab.js → ADlgInfeed-246a8787.js} +8 -8
  159. package/dist/esm/AccordionPanel.js +24 -24
  160. package/dist/esm/AdSlot.js +23 -23
  161. package/dist/esm/AdSlotsProvider.js +13 -13
  162. package/dist/esm/AlphabeticList.js +21 -21
  163. package/dist/esm/ArticleCarousel.js +20 -20
  164. package/dist/esm/ArticleProgramLandingPage.js +53 -53
  165. package/dist/esm/ArticleSeriesLandingPage.js +35 -35
  166. package/dist/esm/ArticleSeriesListing.js +55 -55
  167. package/dist/esm/Auth.js +799 -317
  168. package/dist/esm/{AuthorComponent-34b16174.js → AuthorComponent-c7ff069f.js} +11 -11
  169. package/dist/esm/Beam.js +9 -9
  170. package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-d8cd739c.js} +4 -4
  171. package/dist/esm/Breadcrumbs.js +17 -17
  172. package/dist/esm/CMEDeck.js +79 -79
  173. package/dist/esm/Column1.js +5 -5
  174. package/dist/esm/Column2.js +27 -27
  175. package/dist/esm/Column3.js +48 -48
  176. package/dist/esm/ConferenceArticleCard.js +19 -19
  177. package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
  178. package/dist/esm/DeckContent.js +76 -76
  179. package/dist/esm/DeckQueue.js +65 -65
  180. package/dist/esm/{Dfp-ebc4b22f.js → Dfp-988dbcaa.js} +21 -21
  181. package/dist/esm/EventsDeck.js +84 -84
  182. package/dist/esm/ExternalResources.js +72 -72
  183. package/dist/esm/Feature.js +18 -18
  184. package/dist/esm/ForbesHero.js +34 -34
  185. package/dist/esm/GridContent.js +140 -140
  186. package/dist/esm/GridHero.js +36 -36
  187. package/dist/esm/GroupDeck.js +46 -46
  188. package/dist/esm/HamMagazine.js +105 -105
  189. package/dist/esm/Header.js +7 -7
  190. package/dist/esm/Hero.js +9 -9
  191. package/dist/esm/HighlightenVideo.js +14 -14
  192. package/dist/esm/HorizontalArticleListing.js +67 -67
  193. package/dist/esm/HorizontalHero.js +21 -21
  194. package/dist/esm/IssueContentDeck.js +49 -49
  195. package/dist/esm/IssueDeck.js +46 -46
  196. package/dist/esm/IssueLanding.js +37 -37
  197. package/dist/esm/LeftNav.js +32 -32
  198. package/dist/esm/MasterDeck.js +64 -64
  199. package/dist/esm/MediaSeriesLanding.js +32 -32
  200. package/dist/esm/NavDvm.js +57 -57
  201. package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
  202. package/dist/esm/NavMagazine.js +114 -114
  203. package/dist/esm/NavNative.js +100 -100
  204. package/dist/esm/NavNormal.js +36 -36
  205. package/dist/esm/OncliveHero.js +16 -17
  206. package/dist/esm/OncliveLargeHero.js +59 -59
  207. package/dist/esm/PageFilter.js +12 -12
  208. package/dist/esm/PartnerDetailListing.js +102 -102
  209. package/dist/esm/PdfDownload.js +6 -6
  210. package/dist/esm/PopUpModal.js +14 -14
  211. package/dist/esm/PubSection.js +36 -36
  212. package/dist/esm/PubToc.js +13 -13
  213. package/dist/esm/PublicationDeck.js +38 -38
  214. package/dist/esm/PublicationLanding.js +51 -51
  215. package/dist/esm/QueueDeckExpanded.js +272 -272
  216. package/dist/esm/RecentNews.js +20 -20
  217. package/dist/esm/RelatedContent.js +19 -19
  218. package/dist/esm/RelatedTopicsDropdown.js +11 -11
  219. package/dist/esm/RolesDeck.js +13 -13
  220. package/dist/esm/Search.js +12 -12
  221. package/dist/esm/Segment.js +7 -7
  222. package/dist/esm/SeriesListingDeck.js +31 -31
  223. package/dist/esm/{SeriesSlider-9245785f.js → SeriesSlider-6a1081ff.js} +27 -27
  224. package/dist/esm/SetCookie.js +1 -1
  225. package/dist/esm/SideFooter.js +31 -31
  226. package/dist/esm/SocialIcons.js +7 -7
  227. package/dist/esm/{SocialSearchComponent-a2ae84d1.js → SocialSearchComponent-c3216d1a.js} +28 -28
  228. package/dist/esm/SocialShare.js +25 -25
  229. package/dist/esm/TaxonomyCard.js +41 -41
  230. package/dist/esm/TaxonomyDescription.js +48 -48
  231. package/dist/esm/TemplateNormal.js +67 -67
  232. package/dist/esm/ThumbnailCard.js +13 -13
  233. package/dist/esm/Ustream.js +23 -23
  234. package/dist/esm/VerticalHero.js +13 -13
  235. package/dist/esm/VideoProgramLandingPage.js +62 -62
  236. package/dist/esm/VideoSeriesCard.js +24 -24
  237. package/dist/esm/VideoSeriesFilter.js +16 -16
  238. package/dist/esm/VideoSeriesLandingPage.js +39 -39
  239. package/dist/esm/VideoSeriesListing.js +71 -71
  240. package/dist/esm/View.js +240 -241
  241. package/dist/esm/YahooHero.js +34 -34
  242. package/dist/esm/YoutubeGroup.js +46 -46
  243. package/dist/esm/{_is-array-58e95429.js → _is-array-674f71ec.js} +6 -6
  244. package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-48516cd3.js} +2 -2
  245. package/dist/esm/{_object-sap-964b6feb.js → _object-sap-fd3054d0.js} +1 -1
  246. package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-8f409e54.js} +1 -1
  247. package/dist/esm/{_set-species-3f8319f5.js → _set-species-494ed292.js} +4 -4
  248. package/dist/esm/{_to-object-a4107da3.js → _to-object-97770c52.js} +5 -5
  249. package/dist/esm/{asyncToGenerator-502f13b4.js → asyncToGenerator-2bd4099a.js} +8 -8
  250. package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-b43c695a.js} +7 -6
  251. package/dist/esm/{core.get-iterator-method-e1de7503.js → core.get-iterator-method-d1d5ed02.js} +2 -2
  252. package/dist/esm/{define-property-8af5f002.js → define-property-ec6d528d.js} +1 -1
  253. package/dist/esm/{defineProperty-94fd8bfc.js → defineProperty-ea516b15.js} +1 -1
  254. package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
  255. package/dist/esm/{es6.string.iterator-c990c18c.js → es6.string.iterator-aa6068a3.js} +3 -3
  256. package/dist/esm/{extends-eb69e8ac.js → extends-31d65aba.js} +1 -1
  257. package/dist/esm/getQuery.js +1 -1
  258. package/dist/esm/getRelatedArticle.js +133 -71
  259. package/dist/esm/getRootDocGroup.js +7 -7
  260. package/dist/esm/getSerializers.js +44 -44
  261. package/dist/esm/{getTargeting-7211f12c.js → getTargeting-2d402d66.js} +2 -2
  262. package/dist/esm/getTargeting.js +7 -7
  263. package/dist/esm/{index-73819142.js → index-3f5c03b2.js} +31 -25
  264. package/dist/esm/{index-5f9f807a.js → index-752d1dae.js} +10 -10
  265. package/dist/esm/{index-a9e53f80.js → index-888f9253.js} +6 -6
  266. package/dist/esm/{index-18307045.js → index-9b2f6ac4.js} +869 -853
  267. package/dist/esm/{index-ef6d5dcf.js → index-ccb770c7.js} +40 -41
  268. package/dist/esm/{index.es-29c1cef5.js → index.es-c6222053.js} +28 -10
  269. package/dist/esm/{index.esm-29e48d38.js → index.esm-3fdda599.js} +6 -15
  270. package/dist/esm/{index.esm-fd746768.js → index.esm-8016b507.js} +17 -18
  271. package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
  272. package/dist/esm/{index.esm-b08f4b04.js → index.esm-d6f88d94.js} +4 -9
  273. package/dist/esm/index.js +130 -130
  274. package/dist/esm/{inherits-fb9b6e8f.js → inherits-5906fbea.js} +5 -5
  275. package/dist/esm/{keys-8eda7a5c.js → keys-a0b0c7a4.js} +2 -2
  276. package/dist/esm/{lodash-17fdfebb.js → lodash-ad27652f.js} +72 -23
  277. package/dist/esm/{main-e4a934b2.js → main-1450d277.js} +113 -78
  278. package/dist/esm/{moment-e2f9b20c.js → moment-bc12cb97.js} +11 -9
  279. package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-91f9716f.js} +20 -20
  280. package/dist/esm/{slicedToArray-641f241f.js → slicedToArray-cdeaee08.js} +4 -4
  281. package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
  282. package/dist/esm/{stringify-4330ccdc.js → stringify-d4839bab.js} +1 -1
  283. package/dist/esm/timeDifferenceCalc.js +1 -1
  284. package/dist/esm/{toConsumableArray-43aa614d.js → toConsumableArray-fa2dcda7.js} +4 -4
  285. package/dist/esm/{typeof-6435ba1c.js → typeof-e9cea9e8.js} +7 -7
  286. package/dist/esm/urlFor.js +1 -1
  287. package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
  288. package/dist/esm/{visibility-sensor-0baa4eea.js → visibility-sensor-082c757b.js} +2 -2
  289. package/dist/esm/{web.dom.iterable-4439f05a.js → web.dom.iterable-035980f3.js} +3 -3
  290. package/package.json +1 -1
  291. package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
@@ -1,5 +1,5 @@
1
1
  import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
2
- import { j as _fails, f as _toObject, g as _iobject, n as _objectKeys, d as _descriptors, _ as _export, a as _core } from './_to-object-a4107da3.js';
2
+ import { j as _fails, f as _toObject, g as _iobject, n as _objectKeys, d as _descriptors, _ as _export, a as _core } from './_to-object-97770c52.js';
3
3
  import { _ as _objectGops, a as _objectPie } from './_object-pie-33c40e79.js';
4
4
 
5
5
  // 19.1.2.1 Object.assign(target, source, ...)
@@ -12,7 +12,7 @@ var getQuery = function getQuery(type) {
12
12
  case 'article':
13
13
  return '*[\n _type == "article"\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && url.current == $url\n ' + conditions + '\n ][0]{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n issueGroup-> { _id, name, identifier, parent-> },\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography },\n body[] {\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n medias[]{\n ...,\n upload_doc {\n _type,\n asset-> \n } \n },\n articles[]{\n ...,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography },\n text[]{\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n }\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n ...,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier\n },\n documentGroup-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n isSeries,\n \'path\': identifier.current\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n \'path\': identifier.current\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n volume,\n \'issueNumber\': number,\n \'articleSource\': source,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url\n }\n\n }';
14
14
  case 'publication':
15
- return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issues\': *[_type == \'publication\'\n && is_visible\n && references(^._id)\n && defined(identifier)] {\n ...,\n taxonomyMapping[]->,\n pdf{asset->}\n } | order(year desc, month desc)\n }';
15
+ return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issues\': *[_type == \'publication\'\n && is_visible\n && references(^._id)\n && defined(identifier)] {\n ...,\n taxonomyMapping[]->,\n pdf{asset->},\n \'articles\': *[\n _type == \'article\' \n && !(_id in path("drafts.**"))\n && defined(title)\n && is_visible\n && defined(url)\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock != true\n && references(^._id)\n ][0...1]{_id}\n } | order(year desc, month desc)\n }';
16
16
  case 'issue':
17
17
  return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issue\': *[_type == \'publication\'\n && references(^._id)\n && identifier.current == $issue][0] {\n ...,\n \'articles\': *[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && is_visible\n && defined(url)\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock != true\n && references(^._id)] | order(published desc) {\n ...,\n authorMapping[0]->,\n contentCategory->,\n issueSection-> {\n name\n }\n }\n }\n }';
18
18
  case 'externalResources':
@@ -1,14 +1,14 @@
1
+ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-2bd4099a.js';
1
2
  import { c as createCommonjsModule, u as unwrapExports, a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
2
- import './_to-object-a4107da3.js';
3
- import './es6.string.iterator-c990c18c.js';
4
- import './_library-528f1934.js';
5
- import './_iter-detect-5d49a330.js';
6
- import './core.get-iterator-method-e1de7503.js';
7
- import './web.dom.iterable-4439f05a.js';
8
- import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-502f13b4.js';
9
- import './_set-species-3f8319f5.js';
10
3
  import { c as cookie } from './index-db3bb315.js';
11
4
  import getQuery from './getQuery.js';
5
+ import './es6.string.iterator-aa6068a3.js';
6
+ import './_to-object-97770c52.js';
7
+ import './web.dom.iterable-035980f3.js';
8
+ import './_library-528f1934.js';
9
+ import './core.get-iterator-method-d1d5ed02.js';
10
+ import './_set-species-494ed292.js';
11
+ import './_iter-detect-48516cd3.js';
12
12
 
13
13
  var defaultParseOptions = {
14
14
  decodeValues: true,
@@ -30,9 +30,18 @@ function parseString(setCookieValue, options) {
30
30
  ? Object.assign({}, defaultParseOptions, options)
31
31
  : defaultParseOptions;
32
32
 
33
+ try {
34
+ value = options.decodeValues ? decodeURIComponent(value) : value; // decode cookie value
35
+ } catch (e) {
36
+ console.error(
37
+ `set-cookie-parser encountered an error while decoding a cookie with value '${value}'. Set options.decodeValues to false to disable this feature.`,
38
+ e
39
+ );
40
+ }
41
+
33
42
  var cookie = {
34
43
  name: name, // grab everything before the first =
35
- value: options.decodeValues ? decodeURIComponent(value) : value, // decode cookie value
44
+ value: value,
36
45
  };
37
46
 
38
47
  parts.forEach(function (part) {
@@ -203,7 +212,7 @@ setCookie.parse = parse_1;
203
212
  setCookie.parseString = parseString_1;
204
213
  setCookie.splitCookiesString = splitCookiesString_1;
205
214
 
206
- var dist = createCommonjsModule(function (module, exports) {
215
+ var utils = createCommonjsModule(function (module, exports) {
207
216
  var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
208
217
  __assign = Object.assign || function(t) {
209
218
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -216,10 +225,33 @@ var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
216
225
  return __assign.apply(this, arguments);
217
226
  };
218
227
  Object.defineProperty(exports, "__esModule", { value: true });
219
- exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
220
-
221
-
222
- var isBrowser = function () { return typeof window !== 'undefined'; };
228
+ exports.areCookiesEqual = exports.hasSameProperties = exports.createCookie = exports.isBrowser = void 0;
229
+ /**
230
+ * Tells whether we are in a browser or server.
231
+ */
232
+ function isBrowser() {
233
+ return typeof window !== 'undefined';
234
+ }
235
+ exports.isBrowser = isBrowser;
236
+ /**
237
+ * Create an instance of the Cookie interface
238
+ */
239
+ function createCookie(name, value, options) {
240
+ var sameSite = options.sameSite;
241
+ if (sameSite === true) {
242
+ sameSite = 'strict';
243
+ }
244
+ if (sameSite === undefined || sameSite === false) {
245
+ sameSite = 'lax';
246
+ }
247
+ var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
248
+ delete cookieToSet.encode;
249
+ return __assign({ name: name, value: value }, cookieToSet);
250
+ }
251
+ exports.createCookie = createCookie;
252
+ /**
253
+ * Tells whether given objects have the same properties.
254
+ */
223
255
  function hasSameProperties(a, b) {
224
256
  var aProps = Object.getOwnPropertyNames(a);
225
257
  var bProps = Object.getOwnPropertyNames(b);
@@ -234,8 +266,9 @@ function hasSameProperties(a, b) {
234
266
  }
235
267
  return true;
236
268
  }
269
+ exports.hasSameProperties = hasSameProperties;
237
270
  /**
238
- * Compare the cookie and return true if the cookies has equivalent
271
+ * Compare the cookie and return true if the cookies have equivalent
239
272
  * options and the cookies would be overwritten in the browser storage.
240
273
  *
241
274
  * @param a first Cookie for comparison
@@ -248,71 +281,109 @@ function areCookiesEqual(a, b) {
248
281
  }
249
282
  return (hasSameProperties(__assign(__assign({}, a), { sameSite: undefined }), __assign(__assign({}, b), { sameSite: undefined })) && sameSiteSame);
250
283
  }
284
+ exports.areCookiesEqual = areCookiesEqual;
285
+ /* Functions */
286
+
287
+ });
288
+
289
+ unwrapExports(utils);
290
+ utils.areCookiesEqual;
291
+ utils.hasSameProperties;
292
+ utils.createCookie;
293
+ utils.isBrowser;
294
+
295
+ var dist = createCommonjsModule(function (module, exports) {
296
+ var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
297
+ __assign = Object.assign || function(t) {
298
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
299
+ s = arguments[i];
300
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
301
+ t[p] = s[p];
302
+ }
303
+ return t;
304
+ };
305
+ return __assign.apply(this, arguments);
306
+ };
307
+ Object.defineProperty(exports, "__esModule", { value: true });
308
+ exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
309
+
310
+
311
+
251
312
  /**
252
- * Create an instance of the Cookie interface
253
- *
254
- * @param name name of the Cookie
255
- * @param value value of the Cookie
256
- * @param options Cookie options
257
- */
258
- function createCookie(name, value, options) {
259
- var sameSite = options.sameSite;
260
- if (sameSite === true) {
261
- sameSite = 'strict';
262
- }
263
- if (sameSite === undefined || sameSite === false) {
264
- sameSite = 'lax';
265
- }
266
- var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
267
- delete cookieToSet.encode;
268
- return __assign({ name: name, value: value }, cookieToSet);
269
- }
270
- /**
271
- *
272
313
  * Parses cookies.
273
314
  *
274
- * @param ctx
275
- * @param options
315
+ * @param ctx NextJS page or API context, express context, null or undefined.
316
+ * @param options Options that we pass down to `cookie` library.
276
317
  */
277
318
  function parseCookies(ctx, options) {
278
- if (ctx && ctx.req && ctx.req.headers && ctx.req.headers.cookie) {
319
+ var _a, _b;
320
+ if ((_b = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.req) === null || _a === void 0 ? void 0 : _a.headers) === null || _b === void 0 ? void 0 : _b.cookie) {
279
321
  return cookie.parse(ctx.req.headers.cookie, options);
280
322
  }
281
- if (isBrowser()) {
323
+ if (utils.isBrowser()) {
282
324
  return cookie.parse(document.cookie, options);
283
325
  }
284
326
  return {};
285
327
  }
286
328
  exports.parseCookies = parseCookies;
287
329
  /**
288
- *
289
330
  * Sets a cookie.
290
331
  *
291
- * @param ctx
292
- * @param name
293
- * @param value
294
- * @param options
332
+ * @param ctx NextJS page or API context, express context, null or undefined.
333
+ * @param name The name of your cookie.
334
+ * @param value The value of your cookie.
335
+ * @param options Options that we pass down to `cookie` library.
295
336
  */
296
337
  function setCookie$1(ctx, name, value, options) {
297
- if (ctx && ctx.res && ctx.res.getHeader && ctx.res.setHeader) {
338
+ var _a, _b;
339
+ if (options === void 0) { options = {}; }
340
+ // SSR
341
+ if (((_a = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _a === void 0 ? void 0 : _a.getHeader) && ctx.res.setHeader) {
342
+ // Check if response has finished and warn about it.
343
+ if ((_b = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _b === void 0 ? void 0 : _b.finished) {
344
+ console.warn("Not setting \"" + name + "\" cookie. Response has finished.");
345
+ console.warn("You should set cookie before res.send()");
346
+ return {};
347
+ }
348
+ /**
349
+ * Load existing cookies from the header and parse them.
350
+ */
298
351
  var cookies = ctx.res.getHeader('Set-Cookie') || [];
299
352
  if (typeof cookies === 'string')
300
353
  cookies = [cookies];
301
354
  if (typeof cookies === 'number')
302
355
  cookies = [];
303
- var parsedCookies = setCookie.parse(cookies);
356
+ /**
357
+ * Parse cookies but ignore values - we've already encoded
358
+ * them in the previous call.
359
+ */
360
+ var parsedCookies = setCookie.parse(cookies, {
361
+ decodeValues: false,
362
+ });
363
+ /**
364
+ * We create the new cookie and make sure that none of
365
+ * the existing cookies match it.
366
+ */
367
+ var newCookie_1 = utils.createCookie(name, value, options);
304
368
  var cookiesToSet_1 = [];
305
369
  parsedCookies.forEach(function (parsedCookie) {
306
- if (!areCookiesEqual(parsedCookie, createCookie(name, value, options))) {
307
- cookiesToSet_1.push(cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({}, parsedCookie)));
370
+ if (!utils.areCookiesEqual(parsedCookie, newCookie_1)) {
371
+ /**
372
+ * We serialize the cookie back to the original format
373
+ * if it isn't the same as the new one.
374
+ */
375
+ var serializedCookie = cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({
376
+ // we prevent reencoding by default, but you might override it
377
+ encode: function (val) { return val; } }, parsedCookie));
378
+ cookiesToSet_1.push(serializedCookie);
308
379
  }
309
380
  });
310
381
  cookiesToSet_1.push(cookie.serialize(name, value, options));
311
- if (!ctx.res.finished) {
312
- ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
313
- }
382
+ // Update the header.
383
+ ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
314
384
  }
315
- if (isBrowser()) {
385
+ // Browser
386
+ if (utils.isBrowser()) {
316
387
  if (options && options.httpOnly) {
317
388
  throw new Error('Can not set a httpOnly cookie in the browser.');
318
389
  }
@@ -322,30 +393,21 @@ function setCookie$1(ctx, name, value, options) {
322
393
  }
323
394
  exports.setCookie = setCookie$1;
324
395
  /**
325
- *
326
396
  * Destroys a cookie with a particular name.
327
397
  *
328
- * @param ctx
329
- * @param name
330
- * @param options
398
+ * @param ctx NextJS page or API context, express context, null or undefined.
399
+ * @param name Cookie name.
400
+ * @param options Options that we pass down to `cookie` library.
331
401
  */
332
402
  function destroyCookie(ctx, name, options) {
333
- var opts = __assign(__assign({}, (options || {})), { maxAge: -1 });
334
- if (ctx && ctx.res && ctx.res.setHeader && ctx.res.getHeader) {
335
- var cookies = ctx.res.getHeader('Set-Cookie') || [];
336
- if (typeof cookies === 'string')
337
- cookies = [cookies];
338
- if (typeof cookies === 'number')
339
- cookies = [];
340
- cookies.push(cookie.serialize(name, '', opts));
341
- ctx.res.setHeader('Set-Cookie', cookies);
342
- }
343
- if (isBrowser()) {
344
- document.cookie = cookie.serialize(name, '', opts);
345
- }
346
- return {};
403
+ /**
404
+ * We forward the request destroy to setCookie function
405
+ * as it is the same function with modified maxAge value.
406
+ */
407
+ return setCookie$1(ctx, name, '', __assign(__assign({}, (options || {})), { maxAge: -1 }));
347
408
  }
348
409
  exports.destroyCookie = destroyCookie;
410
+ /* Utility Exports */
349
411
  exports.default = {
350
412
  set: setCookie$1,
351
413
  get: parseCookies,
@@ -355,7 +417,7 @@ exports.default = {
355
417
  });
356
418
 
357
419
  unwrapExports(dist);
358
- var dist_1 = dist.destroyCookie;
420
+ dist.destroyCookie;
359
421
  var dist_2 = dist.setCookie;
360
422
  var dist_3 = dist.parseCookies;
361
423
 
@@ -1,12 +1,12 @@
1
+ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-2bd4099a.js';
1
2
  import './_commonjsHelpers-0c4b6f40.js';
2
- import './_to-object-a4107da3.js';
3
- import './es6.string.iterator-c990c18c.js';
3
+ import './es6.string.iterator-aa6068a3.js';
4
+ import './_to-object-97770c52.js';
5
+ import './web.dom.iterable-035980f3.js';
4
6
  import './_library-528f1934.js';
5
- import './_iter-detect-5d49a330.js';
6
- import './core.get-iterator-method-e1de7503.js';
7
- import './web.dom.iterable-4439f05a.js';
8
- import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-502f13b4.js';
9
- import './_set-species-3f8319f5.js';
7
+ import './core.get-iterator-method-d1d5ed02.js';
8
+ import './_set-species-494ed292.js';
9
+ import './_iter-detect-48516cd3.js';
10
10
 
11
11
  var _this = undefined;
12
12
 
@@ -1,54 +1,54 @@
1
- import './_commonjsHelpers-0c4b6f40.js';
2
- import './_to-object-a4107da3.js';
3
- import './es6.string.iterator-c990c18c.js';
4
- import './_library-528f1934.js';
5
- import './_iter-detect-5d49a330.js';
6
- import './toConsumableArray-43aa614d.js';
7
- import './core.get-iterator-method-e1de7503.js';
8
- import './_object-pie-33c40e79.js';
9
- import './extends-eb69e8ac.js';
10
- import './_object-sap-964b6feb.js';
11
- import './inherits-fb9b6e8f.js';
12
- import './define-property-8af5f002.js';
13
- import './web.dom.iterable-4439f05a.js';
14
- import './typeof-6435ba1c.js';
15
- import './_is-array-58e95429.js';
16
1
  import 'react';
17
- import './index-a9e53f80.js';
2
+ export { g as default } from './index-9b2f6ac4.js';
3
+ import './BlockContent-d8cd739c.js';
4
+ import './entities-932b50cf.js';
5
+ import './slicedToArray-cdeaee08.js';
6
+ import './_commonjsHelpers-0c4b6f40.js';
7
+ import './web.dom.iterable-035980f3.js';
8
+ import './es6.string.iterator-aa6068a3.js';
9
+ import './_to-object-97770c52.js';
10
+ import './core.get-iterator-method-d1d5ed02.js';
11
+ import 'react-bootstrap';
12
+ import './index-3f5c03b2.js';
13
+ import './index-888f9253.js';
18
14
  import 'prop-types';
19
- import 'react-bootstrap/Row';
20
- import 'react-bootstrap/Col';
21
- import './moment-e2f9b20c.js';
22
15
  import 'next/router';
23
- import './isSymbol-1981418f.js';
24
- import './debounce-9207d8ee.js';
25
- import './toNumber-2f7a84cd.js';
26
- import 'react-dom';
27
- import './index-73819142.js';
28
- import './index-5f9f807a.js';
29
- import './main-e4a934b2.js';
30
- import './entities-7cc3bf45.js';
31
- import './slicedToArray-641f241f.js';
32
- import './stringify-4330ccdc.js';
33
- import './asyncToGenerator-502f13b4.js';
34
- import './_set-species-3f8319f5.js';
35
- import './Segment.js';
36
- import './Beam.js';
37
- import './AdSlot.js';
38
- import './BlockContent-e9b4ddcf.js';
39
16
  import './index-c7e2ac95.js';
40
- import './smoothscroll-0cd4c7a6.js';
17
+ import './util-3ab476bf.js';
18
+ import './Beam.js';
19
+ import './stringify-d4839bab.js';
20
+ import './asyncToGenerator-2bd4099a.js';
21
+ import './_library-528f1934.js';
22
+ import './_set-species-494ed292.js';
23
+ import './_iter-detect-48516cd3.js';
24
+ import './Segment.js';
25
+ import './main-1450d277.js';
26
+ import './extends-31d65aba.js';
27
+ import './_object-pie-33c40e79.js';
28
+ import './index-752d1dae.js';
29
+ import 'react-dom';
30
+ import './typeof-e9cea9e8.js';
31
+ import './_is-array-674f71ec.js';
32
+ import './brightcove-react-player-loader.es-b43c695a.js';
41
33
  import './GroupDeck.js';
42
- import 'react-bootstrap';
43
- import './iconBase-602d52fe.js';
44
- import './index.esm-29e48d38.js';
45
- export { g as default } from './index-18307045.js';
46
- import './util-7700fc59.js';
47
- import './brightcove-react-player-loader.es-83f53e4e.js';
34
+ import './smoothscroll-fa4e3f8c.js';
35
+ import './moment-bc12cb97.js';
36
+ import './SocialShare.js';
48
37
  import 'next/head';
49
38
  import 'react-share';
50
- import './SocialShare.js';
51
- import './_object-to-array-7e804fce.js';
39
+ import './_object-to-array-8f409e54.js';
40
+ import './toConsumableArray-fa2dcda7.js';
52
41
  import 'react-bootstrap/Pagination';
53
42
  import 'react-bootstrap/Button';
43
+ import './AdSlot.js';
44
+ import './debounce-9207d8ee.js';
45
+ import './isSymbol-1981418f.js';
46
+ import './toNumber-2f7a84cd.js';
47
+ import 'react-bootstrap/Row';
48
+ import 'react-bootstrap/Col';
49
+ import './inherits-5906fbea.js';
50
+ import './_object-sap-fd3054d0.js';
51
+ import './define-property-ec6d528d.js';
52
+ import './index.esm-3fdda599.js';
53
+ import './iconBase-602d52fe.js';
54
54
  import 'react-bootstrap/Figure';
@@ -1,5 +1,5 @@
1
- import { _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
2
- import { _ as _extends } from './extends-eb69e8ac.js';
1
+ import { _ as _extends } from './extends-31d65aba.js';
2
+ import { _ as _toConsumableArray } from './toConsumableArray-fa2dcda7.js';
3
3
 
4
4
  var getContentPlacementUrl = function getContentPlacementUrl(cp) {
5
5
  var cp_url = '';
@@ -1,9 +1,9 @@
1
+ import './extends-31d65aba.js';
2
+ import './toConsumableArray-fa2dcda7.js';
3
+ export { g as default } from './getTargeting-2d402d66.js';
1
4
  import './_commonjsHelpers-0c4b6f40.js';
2
- import './_to-object-a4107da3.js';
3
- import './es6.string.iterator-c990c18c.js';
4
- import './_iter-detect-5d49a330.js';
5
- import './toConsumableArray-43aa614d.js';
6
- import './core.get-iterator-method-e1de7503.js';
5
+ import './_to-object-97770c52.js';
7
6
  import './_object-pie-33c40e79.js';
8
- import './extends-eb69e8ac.js';
9
- export { g as default } from './getTargeting-7211f12c.js';
7
+ import './es6.string.iterator-aa6068a3.js';
8
+ import './_iter-detect-48516cd3.js';
9
+ import './core.get-iterator-method-d1d5ed02.js';
@@ -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,7 +182,8 @@ exports.SPEC_NAME_TO_URL_NAME_MAPPINGS = [
182
182
  ['crop', 'crop'],
183
183
  ['saturation', 'sat'],
184
184
  ['auto', 'auto'],
185
- ['dpr', 'dpr']
185
+ ['dpr', 'dpr'],
186
+ ['pad', 'pad'],
186
187
  ];
187
188
  function urlForImage(options) {
188
189
  var spec = __assign({}, (options || {}));
@@ -201,7 +202,7 @@ function urlForImage(options) {
201
202
  left: cropLeft,
202
203
  top: cropTop,
203
204
  width: Math.round(asset.width - image.crop.right * asset.width - cropLeft),
204
- height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop)
205
+ height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop),
205
206
  };
206
207
  // Compute hot spot rect in terms of pixel coordinates
207
208
  var hotSpotVerticalRadius = (image.hotspot.height * asset.height) / 2;
@@ -212,7 +213,7 @@ function urlForImage(options) {
212
213
  left: hotSpotCenterX - hotSpotHorizontalRadius,
213
214
  top: hotSpotCenterY - hotSpotVerticalRadius,
214
215
  right: hotSpotCenterX + hotSpotHorizontalRadius,
215
- bottom: hotSpotCenterY + hotSpotVerticalRadius
216
+ bottom: hotSpotCenterY + hotSpotVerticalRadius,
216
217
  };
217
218
  // If irrelevant, or if we are requested to: don't perform crop/fit based on
218
219
  // the crop/hotspot.
@@ -294,7 +295,7 @@ function fit(source, spec) {
294
295
  left: Math.round(left),
295
296
  top: Math.round(top_2),
296
297
  width: Math.round(width),
297
- height: Math.round(height)
298
+ height: Math.round(height),
298
299
  };
299
300
  }
300
301
  else {
@@ -316,21 +317,21 @@ function fit(source, spec) {
316
317
  left: Math.max(0, Math.floor(left)),
317
318
  top: Math.max(0, Math.floor(top_3)),
318
319
  width: Math.round(width),
319
- height: Math.round(height)
320
+ height: Math.round(height),
320
321
  };
321
322
  }
322
323
  return {
323
324
  width: imgWidth,
324
325
  height: imgHeight,
325
- rect: cropRect
326
+ rect: cropRect,
326
327
  };
327
328
  }
328
329
 
329
330
  });
330
331
 
331
332
  unwrapExports(urlForImage_1);
332
- var urlForImage_2 = urlForImage_1.parseSource;
333
- var urlForImage_3 = urlForImage_1.SPEC_NAME_TO_URL_NAME_MAPPINGS;
333
+ urlForImage_1.parseSource;
334
+ urlForImage_1.SPEC_NAME_TO_URL_NAME_MAPPINGS;
334
335
 
335
336
  var builder = createCommonjsModule(function (module, exports) {
336
337
  var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
@@ -356,7 +357,7 @@ var urlForImage_1$1 = __importStar(urlForImage_1);
356
357
  var validFits = ['clip', 'crop', 'fill', 'fillmax', 'max', 'scale', 'min'];
357
358
  var validCrops = ['top', 'bottom', 'left', 'right', 'center', 'focalpoint', 'entropy'];
358
359
  var validAutoModes = ['format'];
359
- function isSanityClient(client) {
360
+ function isSanityClientLike(client) {
360
361
  return client ? typeof client.clientConfig === 'object' : false;
361
362
  }
362
363
  function rewriteSpecName(key) {
@@ -373,13 +374,14 @@ function rewriteSpecName(key) {
373
374
  function urlBuilder(options) {
374
375
  // Did we get a SanityClient?
375
376
  var client = options;
376
- if (isSanityClient(client)) {
377
+ if (isSanityClientLike(client)) {
377
378
  // Inherit config from client
378
- 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';
379
381
  return new ImageUrlBuilder(null, {
380
382
  baseUrl: apiHost.replace(/^https:\/\/api\./, 'https://cdn.'),
381
383
  projectId: projectId,
382
- dataset: dataset
384
+ dataset: dataset,
383
385
  });
384
386
  }
385
387
  // Or just accept the options as given
@@ -392,7 +394,7 @@ var ImageUrlBuilder = /** @class */ (function () {
392
394
  ? __assign(__assign({}, (parent.options || {})), (options || {})) : __assign({}, (options || {})); // Copy options
393
395
  }
394
396
  ImageUrlBuilder.prototype.withOptions = function (options) {
395
- var baseUrl = options.baseUrl || '';
397
+ var baseUrl = options.baseUrl || this.options.baseUrl;
396
398
  var newOptions = { baseUrl: baseUrl };
397
399
  for (var key in options) {
398
400
  if (options.hasOwnProperty(key)) {
@@ -486,7 +488,7 @@ var ImageUrlBuilder = /** @class */ (function () {
486
488
  ImageUrlBuilder.prototype.flipHorizontal = function () {
487
489
  return this.withOptions({ flipHorizontal: true });
488
490
  };
489
- // Flip image verically
491
+ // Flip image vertically
490
492
  ImageUrlBuilder.prototype.flipVertical = function () {
491
493
  return this.withOptions({ flipVertical: true });
492
494
  };
@@ -516,11 +518,15 @@ var ImageUrlBuilder = /** @class */ (function () {
516
518
  }
517
519
  return this.withOptions({ auto: value });
518
520
  };
521
+ // Specify the number of pixels to pad the image
522
+ ImageUrlBuilder.prototype.pad = function (pad) {
523
+ return this.withOptions({ pad: pad });
524
+ };
519
525
  // Gets the url based on the submitted parameters
520
526
  ImageUrlBuilder.prototype.url = function () {
521
527
  return urlForImage_1$1.default(this.options);
522
528
  };
523
- // Synonym for url()
529
+ // Alias for url()
524
530
  ImageUrlBuilder.prototype.toString = function () {
525
531
  return this.url();
526
532
  };
@@ -531,7 +537,7 @@ exports.ImageUrlBuilder = ImageUrlBuilder;
531
537
  });
532
538
 
533
539
  unwrapExports(builder);
534
- var builder_1 = builder.ImageUrlBuilder;
540
+ builder.ImageUrlBuilder;
535
541
 
536
542
  var node = createCommonjsModule(function (module) {
537
543
  var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {