@mjhls/mjh-framework 1.0.770-beta.0 → 1.0.771-full-path-docgroup

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 (313) hide show
  1. package/README.md +169 -169
  2. package/dist/cjs/AD.js +10 -9
  3. package/dist/cjs/AD300x250.js +31 -29
  4. package/dist/cjs/AD300x250x600.js +31 -29
  5. package/dist/cjs/AD728x90.js +34 -32
  6. package/dist/cjs/ADFloatingFooter.js +33 -31
  7. package/dist/cjs/ADFooter.js +15 -14
  8. package/dist/cjs/ADGutter.js +33 -31
  9. package/dist/cjs/{ADInfeed-547e399f.js → ADInfeed-38240eb1.js} +15 -13
  10. package/dist/cjs/ADSkyscraper.js +33 -31
  11. package/dist/cjs/ADSponsoredResources.js +33 -31
  12. package/dist/cjs/ADWebcast.js +33 -31
  13. package/dist/cjs/ADWelcome.js +34 -32
  14. package/dist/cjs/{ADlgInfeed-84cd6750.js → ADlgInfeed-795bcf35.js} +11 -10
  15. package/dist/cjs/AccordionPanel.js +31 -29
  16. package/dist/cjs/AdSlot.js +36 -34
  17. package/dist/cjs/AdSlotsProvider.js +18 -17
  18. package/dist/cjs/AlphabeticList.js +26 -25
  19. package/dist/cjs/ArticleCarousel.js +24 -23
  20. package/dist/cjs/ArticleProgramLandingPage.js +58 -56
  21. package/dist/cjs/ArticleSeriesLandingPage.js +42 -40
  22. package/dist/cjs/ArticleSeriesListing.js +61 -59
  23. package/dist/cjs/Auth.js +688 -464
  24. package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-c21aac7f.js} +14 -13
  25. package/dist/cjs/Beam.js +9 -9
  26. package/dist/cjs/{BlockContent-091a991f.js → BlockContent-36e54d77.js} +56 -55
  27. package/dist/cjs/Breadcrumbs.js +29 -27
  28. package/dist/cjs/CMEDeck.js +84 -83
  29. package/dist/cjs/Column1.js +14 -11
  30. package/dist/cjs/Column2.js +37 -33
  31. package/dist/cjs/Column3.js +62 -57
  32. package/dist/cjs/ConferenceArticleCard.js +39 -38
  33. package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
  34. package/dist/cjs/DeckContent.js +108 -103
  35. package/dist/cjs/DeckQueue.js +92 -86
  36. package/dist/cjs/{Dfp-ce7ac168.js → Dfp-b63b5e5f.js} +33 -31
  37. package/dist/cjs/EventsDeck.js +159 -152
  38. package/dist/cjs/ExternalResources.js +80 -78
  39. package/dist/cjs/Feature.js +27 -25
  40. package/dist/cjs/ForbesHero.js +41 -40
  41. package/dist/cjs/GridContent.js +183 -177
  42. package/dist/cjs/GridHero.js +43 -42
  43. package/dist/cjs/GroupDeck.js +59 -58
  44. package/dist/cjs/HamMagazine.js +145 -140
  45. package/dist/cjs/Header.js +13 -11
  46. package/dist/cjs/Hero.js +13 -12
  47. package/dist/cjs/HighlightenVideo.js +18 -17
  48. package/dist/cjs/HorizontalArticleListing.js +71 -69
  49. package/dist/cjs/HorizontalHero.js +26 -25
  50. package/dist/cjs/IssueContentDeck.js +77 -72
  51. package/dist/cjs/IssueDeck.js +76 -71
  52. package/dist/cjs/IssueLanding.js +73 -71
  53. package/dist/cjs/KMTracker.js +15 -15
  54. package/dist/cjs/LeftNav.js +41 -38
  55. package/dist/cjs/MasterDeck.js +81 -79
  56. package/dist/cjs/MediaSeriesLanding.js +40 -38
  57. package/dist/cjs/NavDvm.js +80 -75
  58. package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
  59. package/dist/cjs/NavMagazine.js +153 -148
  60. package/dist/cjs/NavNative.js +461 -129
  61. package/dist/cjs/NavNormal.js +53 -48
  62. package/dist/cjs/OncliveHero.js +20 -20
  63. package/dist/cjs/OncliveLargeHero.js +67 -66
  64. package/dist/cjs/PageFilter.js +15 -14
  65. package/dist/cjs/PartnerDetailListing.js +110 -108
  66. package/dist/cjs/PdfDownload.js +9 -8
  67. package/dist/cjs/PopUpModal.js +21 -19
  68. package/dist/cjs/PubSection.js +43 -41
  69. package/dist/cjs/PubToc.js +17 -16
  70. package/dist/cjs/PublicationDeck.js +66 -61
  71. package/dist/cjs/PublicationLanding.js +125 -125
  72. package/dist/cjs/QueueDeckExpanded.js +295 -294
  73. package/dist/cjs/RecentNews.js +24 -23
  74. package/dist/cjs/RelatedContent.js +53 -52
  75. package/dist/cjs/RelatedTopicsDropdown.js +32 -29
  76. package/dist/cjs/RolesDeck.js +32 -27
  77. package/dist/cjs/Search.js +22 -18
  78. package/dist/cjs/Segment.js +7 -7
  79. package/dist/cjs/SeriesListingDeck.js +40 -39
  80. package/dist/cjs/{SeriesSlider-0a4b30a7.js → SeriesSlider-7dbeaa51.js} +42 -41
  81. package/dist/cjs/SetCookie.js +1 -1
  82. package/dist/cjs/SideFooter.js +40 -38
  83. package/dist/cjs/SocialIcons.js +10 -9
  84. package/dist/cjs/{SocialSearchComponent-8dd468fd.js → SocialSearchComponent-31afe61f.js} +40 -36
  85. package/dist/cjs/SocialShare.js +31 -29
  86. package/dist/cjs/TaxonomyCard.js +63 -58
  87. package/dist/cjs/TaxonomyDescription.js +55 -53
  88. package/dist/cjs/TemplateNormal.js +77 -74
  89. package/dist/cjs/ThumbnailCard.js +22 -20
  90. package/dist/cjs/Ustream.js +27 -26
  91. package/dist/cjs/VerticalHero.js +18 -17
  92. package/dist/cjs/VideoProgramLandingPage.js +77 -72
  93. package/dist/cjs/VideoSeriesCard.js +33 -32
  94. package/dist/cjs/VideoSeriesFilter.js +19 -19
  95. package/dist/cjs/VideoSeriesLandingPage.js +50 -48
  96. package/dist/cjs/VideoSeriesListing.js +78 -76
  97. package/dist/cjs/View.js +375 -275
  98. package/dist/cjs/YahooHero.js +40 -39
  99. package/dist/cjs/YoutubeGroup.js +67 -66
  100. package/dist/cjs/{_is-array-754e012d.js → _is-array-6128bd56.js} +6 -6
  101. package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-55a5657a.js} +8 -8
  102. package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-083f2dd6.js} +4 -4
  103. package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-a175b4a9.js} +1 -1
  104. package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-8fe5a54f.js} +2 -2
  105. package/dist/cjs/{_set-species-f92c67c5.js → _set-species-9f96b3af.js} +4 -4
  106. package/dist/cjs/{_to-object-329a650b.js → _to-object-6de10e57.js} +8 -8
  107. package/dist/cjs/{asyncToGenerator-533d476a.js → asyncToGenerator-6d1a113d.js} +29 -29
  108. package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-a195642e.js} +11 -9
  109. package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-f474eacc.js} +2 -2
  110. package/dist/cjs/{debounce-eb287781.js → debounce-d4a2369b.js} +4 -67
  111. package/dist/cjs/{define-property-f4d12f4e.js → define-property-c88be878.js} +6 -6
  112. package/dist/cjs/{defineProperty-55548b25.js → defineProperty-0cb76d99.js} +1 -1
  113. package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
  114. package/dist/cjs/eq-5fc26c07.js +79 -0
  115. package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-c2573ffd.js} +6 -6
  116. package/dist/cjs/{extends-60837c34.js → extends-9d158713.js} +7 -7
  117. package/dist/cjs/{get-68c52cb1.js → get-5839e5b5.js} +23 -95
  118. package/dist/cjs/getQuery.js +2 -2
  119. package/dist/cjs/getRelatedArticle.js +426 -13
  120. package/dist/cjs/getRootDocGroup.js +7 -7
  121. package/dist/cjs/getSerializers.js +44 -43
  122. package/dist/cjs/{getTargeting-9af0ef69.js → getTargeting-3cdc6e1d.js} +12 -12
  123. package/dist/cjs/getTargeting.js +8 -8
  124. package/dist/cjs/iconBase-68959171.js +0 -3
  125. package/dist/cjs/{index-8bf6c863.js → index-0e4427c8.js} +12 -11
  126. package/dist/cjs/{index-da796b8c.js → index-80f57cff.js} +17 -15
  127. package/dist/cjs/{index-4ec63018.js → index-873750c4.js} +986 -963
  128. package/dist/cjs/index-bd6c9f56.js +211 -0
  129. package/dist/cjs/{index-be0c82be.js → index-efca863c.js} +36 -30
  130. package/dist/cjs/{index-3294d3bc.js → index-f86bb269.js} +44 -45
  131. package/dist/cjs/{index.es-9110add6.js → index.es-f3e47207.js} +31 -12
  132. package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
  133. package/dist/cjs/{index.esm-66ffa47a.js → index.esm-3b9b8952.js} +4 -9
  134. package/dist/cjs/{index.esm-4d410430.js → index.esm-8123cf40.js} +20 -20
  135. package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
  136. package/dist/cjs/index.js +164 -160
  137. package/dist/cjs/{inherits-c9f99d47.js → inherits-3ff1b657.js} +19 -19
  138. package/dist/cjs/{isSymbol-04666465.js → isSymbol-03abbdf0.js} +15 -15
  139. package/dist/cjs/keys-7f2c2108.js +25 -0
  140. package/dist/cjs/{lodash-fc2922d0.js → lodash-f0783643.js} +128 -31
  141. package/dist/cjs/main-025fdc78.js +973 -0
  142. package/dist/cjs/{moment-575fe24c.js → moment-aca40de1.js} +11 -9
  143. package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-af932527.js} +28 -27
  144. package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-5d1bc3b3.js} +14 -14
  145. package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
  146. package/dist/cjs/stringify-c9ac1214.js +17 -0
  147. package/dist/cjs/timeDifferenceCalc.js +1 -1
  148. package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-ddb70795.js} +9 -9
  149. package/dist/cjs/toNumber-5e1fac58.js +104 -0
  150. package/dist/cjs/{typeof-725500bc.js → typeof-88a668c5.js} +36 -36
  151. package/dist/cjs/urlFor.js +2 -2
  152. package/dist/cjs/{util-f2c1b65b.js → util-6f784d85.js} +1 -1
  153. package/dist/cjs/{visibility-sensor-0c45a583.js → visibility-sensor-8b54af99.js} +7 -5
  154. package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-46657b5c.js} +3 -3
  155. package/dist/esm/AD.js +7 -7
  156. package/dist/esm/AD300x250.js +27 -26
  157. package/dist/esm/AD300x250x600.js +27 -26
  158. package/dist/esm/AD728x90.js +30 -29
  159. package/dist/esm/ADFloatingFooter.js +29 -28
  160. package/dist/esm/ADFooter.js +11 -11
  161. package/dist/esm/ADGutter.js +29 -28
  162. package/dist/esm/{ADInfeed-892282a8.js → ADInfeed-de396be9.js} +9 -9
  163. package/dist/esm/ADSkyscraper.js +29 -28
  164. package/dist/esm/ADSponsoredResources.js +29 -28
  165. package/dist/esm/ADWebcast.js +29 -28
  166. package/dist/esm/ADWelcome.js +30 -29
  167. package/dist/esm/{ADlgInfeed-4cc9ead9.js → ADlgInfeed-a6f8b5fa.js} +8 -8
  168. package/dist/esm/AccordionPanel.js +24 -24
  169. package/dist/esm/AdSlot.js +27 -26
  170. package/dist/esm/AdSlotsProvider.js +14 -14
  171. package/dist/esm/AlphabeticList.js +22 -22
  172. package/dist/esm/ArticleCarousel.js +20 -20
  173. package/dist/esm/ArticleProgramLandingPage.js +54 -53
  174. package/dist/esm/ArticleSeriesLandingPage.js +38 -37
  175. package/dist/esm/ArticleSeriesListing.js +55 -54
  176. package/dist/esm/Auth.js +671 -451
  177. package/dist/esm/{AuthorComponent-34b16174.js → AuthorComponent-5ae7409f.js} +11 -11
  178. package/dist/esm/Beam.js +9 -9
  179. package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-52cf21c5.js} +35 -35
  180. package/dist/esm/Breadcrumbs.js +17 -17
  181. package/dist/esm/CMEDeck.js +80 -79
  182. package/dist/esm/Column1.js +5 -5
  183. package/dist/esm/Column2.js +28 -27
  184. package/dist/esm/Column3.js +52 -50
  185. package/dist/esm/ConferenceArticleCard.js +34 -34
  186. package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
  187. package/dist/esm/DeckContent.js +86 -85
  188. package/dist/esm/DeckQueue.js +67 -65
  189. package/dist/esm/{Dfp-e9a07597.js → Dfp-723aab19.js} +22 -21
  190. package/dist/esm/EventsDeck.js +105 -105
  191. package/dist/esm/ExternalResources.js +73 -72
  192. package/dist/esm/Feature.js +18 -18
  193. package/dist/esm/ForbesHero.js +34 -34
  194. package/dist/esm/GridContent.js +142 -140
  195. package/dist/esm/GridHero.js +36 -36
  196. package/dist/esm/GroupDeck.js +46 -46
  197. package/dist/esm/HamMagazine.js +114 -114
  198. package/dist/esm/Header.js +7 -7
  199. package/dist/esm/Hero.js +9 -9
  200. package/dist/esm/HighlightenVideo.js +14 -14
  201. package/dist/esm/HorizontalArticleListing.js +67 -66
  202. package/dist/esm/HorizontalHero.js +21 -21
  203. package/dist/esm/IssueContentDeck.js +49 -49
  204. package/dist/esm/IssueDeck.js +46 -46
  205. package/dist/esm/IssueLanding.js +69 -68
  206. package/dist/esm/KMTracker.js +15 -15
  207. package/dist/esm/LeftNav.js +35 -34
  208. package/dist/esm/MasterDeck.js +74 -73
  209. package/dist/esm/MediaSeriesLanding.js +31 -31
  210. package/dist/esm/NavDvm.js +57 -57
  211. package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
  212. package/dist/esm/NavMagazine.js +124 -124
  213. package/dist/esm/NavNative.js +429 -105
  214. package/dist/esm/NavNormal.js +36 -36
  215. package/dist/esm/OncliveHero.js +16 -17
  216. package/dist/esm/OncliveLargeHero.js +59 -59
  217. package/dist/esm/PageFilter.js +12 -12
  218. package/dist/esm/PartnerDetailListing.js +105 -104
  219. package/dist/esm/PdfDownload.js +6 -6
  220. package/dist/esm/PopUpModal.js +14 -14
  221. package/dist/esm/PubSection.js +39 -38
  222. package/dist/esm/PubToc.js +13 -13
  223. package/dist/esm/PublicationDeck.js +38 -38
  224. package/dist/esm/PublicationLanding.js +97 -101
  225. package/dist/esm/QueueDeckExpanded.js +275 -274
  226. package/dist/esm/RecentNews.js +20 -20
  227. package/dist/esm/RelatedContent.js +47 -47
  228. package/dist/esm/RelatedTopicsDropdown.js +21 -21
  229. package/dist/esm/RolesDeck.js +13 -13
  230. package/dist/esm/Search.js +12 -12
  231. package/dist/esm/Segment.js +7 -7
  232. package/dist/esm/SeriesListingDeck.js +34 -34
  233. package/dist/esm/{SeriesSlider-f629bded.js → SeriesSlider-c324917a.js} +31 -31
  234. package/dist/esm/SetCookie.js +1 -1
  235. package/dist/esm/SideFooter.js +35 -34
  236. package/dist/esm/SocialIcons.js +7 -7
  237. package/dist/esm/{SocialSearchComponent-a2ae84d1.js → SocialSearchComponent-116b1d5d.js} +28 -28
  238. package/dist/esm/SocialShare.js +25 -25
  239. package/dist/esm/TaxonomyCard.js +41 -41
  240. package/dist/esm/TaxonomyDescription.js +49 -48
  241. package/dist/esm/TemplateNormal.js +70 -68
  242. package/dist/esm/ThumbnailCard.js +13 -13
  243. package/dist/esm/Ustream.js +23 -23
  244. package/dist/esm/VerticalHero.js +13 -13
  245. package/dist/esm/VideoProgramLandingPage.js +63 -62
  246. package/dist/esm/VideoSeriesCard.js +25 -25
  247. package/dist/esm/VideoSeriesFilter.js +16 -16
  248. package/dist/esm/VideoSeriesLandingPage.js +42 -41
  249. package/dist/esm/VideoSeriesListing.js +71 -70
  250. package/dist/esm/View.js +355 -259
  251. package/dist/esm/YahooHero.js +34 -34
  252. package/dist/esm/YoutubeGroup.js +50 -50
  253. package/dist/esm/{_is-array-58e95429.js → _is-array-3e99e06e.js} +6 -6
  254. package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-7e5e5ce2.js} +8 -8
  255. package/dist/esm/{_object-pie-33c40e79.js → _object-pie-133f504a.js} +4 -4
  256. package/dist/esm/{_object-sap-964b6feb.js → _object-sap-f353c2a9.js} +1 -1
  257. package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-0f197f89.js} +2 -2
  258. package/dist/esm/{_set-species-3f8319f5.js → _set-species-807b5286.js} +4 -4
  259. package/dist/esm/{_to-object-a4107da3.js → _to-object-b50e61c3.js} +9 -9
  260. package/dist/esm/{asyncToGenerator-502f13b4.js → asyncToGenerator-207adf34.js} +29 -29
  261. package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-b43c695a.js} +7 -6
  262. package/dist/esm/{core.get-iterator-method-e1de7503.js → core.get-iterator-method-133dfacd.js} +2 -2
  263. package/dist/esm/{debounce-1a993acf.js → debounce-533d9748.js} +2 -65
  264. package/dist/esm/{define-property-8af5f002.js → define-property-fe54dc9f.js} +6 -6
  265. package/dist/esm/{defineProperty-94fd8bfc.js → defineProperty-f5ff6f5a.js} +1 -1
  266. package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
  267. package/dist/esm/eq-bdcbf886.js +76 -0
  268. package/dist/esm/{es6.string.iterator-c990c18c.js → es6.string.iterator-bc33758b.js} +7 -7
  269. package/dist/esm/{extends-eb69e8ac.js → extends-f076879e.js} +7 -7
  270. package/dist/esm/{get-5ee14cda.js → get-3c308da4.js} +21 -93
  271. package/dist/esm/getQuery.js +2 -2
  272. package/dist/esm/getRelatedArticle.js +426 -13
  273. package/dist/esm/getRootDocGroup.js +7 -7
  274. package/dist/esm/getSerializers.js +44 -43
  275. package/dist/esm/{getTargeting-7211f12c.js → getTargeting-9e21a02f.js} +11 -11
  276. package/dist/esm/getTargeting.js +8 -8
  277. package/dist/esm/{index-73819142.js → index-0dbff1d1.js} +36 -30
  278. package/dist/esm/{index-5f9f807a.js → index-752d1dae.js} +10 -10
  279. package/dist/esm/{index-ef6d5dcf.js → index-79cfd25c.js} +44 -45
  280. package/dist/esm/{index-a9e53f80.js → index-888f9253.js} +6 -6
  281. package/dist/esm/{index-c6e49ea4.js → index-da683e94.js} +920 -904
  282. package/dist/esm/index-db3bb315.js +207 -0
  283. package/dist/esm/{index.es-29c1cef5.js → index.es-c6222053.js} +28 -10
  284. package/dist/esm/{index.esm-29e48d38.js → index.esm-3fdda599.js} +6 -15
  285. package/dist/esm/{index.esm-fd746768.js → index.esm-8016b507.js} +17 -18
  286. package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
  287. package/dist/esm/{index.esm-b08f4b04.js → index.esm-d6f88d94.js} +4 -9
  288. package/dist/esm/index.js +130 -129
  289. package/dist/esm/{inherits-fb9b6e8f.js → inherits-f71787cf.js} +19 -19
  290. package/dist/esm/{isSymbol-807e927e.js → isSymbol-a7e9aafe.js} +16 -16
  291. package/dist/esm/{keys-8eda7a5c.js → keys-7a3adabf.js} +6 -6
  292. package/dist/esm/{lodash-17fdfebb.js → lodash-f97fd99a.js} +128 -31
  293. package/dist/esm/main-b5c5aac1.js +961 -0
  294. package/dist/esm/{moment-e2f9b20c.js → moment-bc12cb97.js} +11 -9
  295. package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-91f9716f.js} +20 -20
  296. package/dist/esm/{slicedToArray-641f241f.js → slicedToArray-be2f7a22.js} +14 -14
  297. package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
  298. package/dist/esm/stringify-59c8f690.js +15 -0
  299. package/dist/esm/timeDifferenceCalc.js +1 -1
  300. package/dist/esm/{toConsumableArray-43aa614d.js → toConsumableArray-6d9a4616.js} +9 -9
  301. package/dist/esm/toNumber-5aeba6e7.js +102 -0
  302. package/dist/esm/{typeof-6435ba1c.js → typeof-a286cf0c.js} +36 -36
  303. package/dist/esm/urlFor.js +1 -1
  304. package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
  305. package/dist/esm/{visibility-sensor-0baa4eea.js → visibility-sensor-082c757b.js} +2 -2
  306. package/dist/esm/{web.dom.iterable-4439f05a.js → web.dom.iterable-4109ff68.js} +3 -3
  307. package/package.json +107 -107
  308. package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
  309. package/dist/cjs/keys-a586b7a0.js +0 -25
  310. package/dist/cjs/main-02daeefe.js +0 -862
  311. package/dist/cjs/stringify-7c5aff47.js +0 -17
  312. package/dist/esm/main-e4a934b2.js +0 -851
  313. package/dist/esm/stringify-4330ccdc.js +0 -15
@@ -0,0 +1,211 @@
1
+ 'use strict';
2
+
3
+ /*!
4
+ * cookie
5
+ * Copyright(c) 2012-2014 Roman Shtylman
6
+ * Copyright(c) 2015 Douglas Christopher Wilson
7
+ * MIT Licensed
8
+ */
9
+
10
+ /**
11
+ * Module exports.
12
+ * @public
13
+ */
14
+
15
+ var parse_1 = parse;
16
+ var serialize_1 = serialize;
17
+
18
+ /**
19
+ * Module variables.
20
+ * @private
21
+ */
22
+
23
+ var decode = decodeURIComponent;
24
+ var encode = encodeURIComponent;
25
+ var pairSplitRegExp = /; */;
26
+
27
+ /**
28
+ * RegExp to match field-content in RFC 7230 sec 3.2
29
+ *
30
+ * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
31
+ * field-vchar = VCHAR / obs-text
32
+ * obs-text = %x80-FF
33
+ */
34
+
35
+ var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
36
+
37
+ /**
38
+ * Parse a cookie header.
39
+ *
40
+ * Parse the given cookie header string into an object
41
+ * The object has the various cookies as keys(names) => values
42
+ *
43
+ * @param {string} str
44
+ * @param {object} [options]
45
+ * @return {object}
46
+ * @public
47
+ */
48
+
49
+ function parse(str, options) {
50
+ if (typeof str !== 'string') {
51
+ throw new TypeError('argument str must be a string');
52
+ }
53
+
54
+ var obj = {};
55
+ var opt = options || {};
56
+ var pairs = str.split(pairSplitRegExp);
57
+ var dec = opt.decode || decode;
58
+
59
+ for (var i = 0; i < pairs.length; i++) {
60
+ var pair = pairs[i];
61
+ var eq_idx = pair.indexOf('=');
62
+
63
+ // skip things that don't look like key=value
64
+ if (eq_idx < 0) {
65
+ continue;
66
+ }
67
+
68
+ var key = pair.substr(0, eq_idx).trim();
69
+ var val = pair.substr(++eq_idx, pair.length).trim();
70
+
71
+ // quoted values
72
+ if ('"' == val[0]) {
73
+ val = val.slice(1, -1);
74
+ }
75
+
76
+ // only assign once
77
+ if (undefined == obj[key]) {
78
+ obj[key] = tryDecode(val, dec);
79
+ }
80
+ }
81
+
82
+ return obj;
83
+ }
84
+
85
+ /**
86
+ * Serialize data into a cookie header.
87
+ *
88
+ * Serialize the a name value pair into a cookie string suitable for
89
+ * http headers. An optional options object specified cookie parameters.
90
+ *
91
+ * serialize('foo', 'bar', { httpOnly: true })
92
+ * => "foo=bar; httpOnly"
93
+ *
94
+ * @param {string} name
95
+ * @param {string} val
96
+ * @param {object} [options]
97
+ * @return {string}
98
+ * @public
99
+ */
100
+
101
+ function serialize(name, val, options) {
102
+ var opt = options || {};
103
+ var enc = opt.encode || encode;
104
+
105
+ if (typeof enc !== 'function') {
106
+ throw new TypeError('option encode is invalid');
107
+ }
108
+
109
+ if (!fieldContentRegExp.test(name)) {
110
+ throw new TypeError('argument name is invalid');
111
+ }
112
+
113
+ var value = enc(val);
114
+
115
+ if (value && !fieldContentRegExp.test(value)) {
116
+ throw new TypeError('argument val is invalid');
117
+ }
118
+
119
+ var str = name + '=' + value;
120
+
121
+ if (null != opt.maxAge) {
122
+ var maxAge = opt.maxAge - 0;
123
+
124
+ if (isNaN(maxAge) || !isFinite(maxAge)) {
125
+ throw new TypeError('option maxAge is invalid')
126
+ }
127
+
128
+ str += '; Max-Age=' + Math.floor(maxAge);
129
+ }
130
+
131
+ if (opt.domain) {
132
+ if (!fieldContentRegExp.test(opt.domain)) {
133
+ throw new TypeError('option domain is invalid');
134
+ }
135
+
136
+ str += '; Domain=' + opt.domain;
137
+ }
138
+
139
+ if (opt.path) {
140
+ if (!fieldContentRegExp.test(opt.path)) {
141
+ throw new TypeError('option path is invalid');
142
+ }
143
+
144
+ str += '; Path=' + opt.path;
145
+ }
146
+
147
+ if (opt.expires) {
148
+ if (typeof opt.expires.toUTCString !== 'function') {
149
+ throw new TypeError('option expires is invalid');
150
+ }
151
+
152
+ str += '; Expires=' + opt.expires.toUTCString();
153
+ }
154
+
155
+ if (opt.httpOnly) {
156
+ str += '; HttpOnly';
157
+ }
158
+
159
+ if (opt.secure) {
160
+ str += '; Secure';
161
+ }
162
+
163
+ if (opt.sameSite) {
164
+ var sameSite = typeof opt.sameSite === 'string'
165
+ ? opt.sameSite.toLowerCase() : opt.sameSite;
166
+
167
+ switch (sameSite) {
168
+ case true:
169
+ str += '; SameSite=Strict';
170
+ break;
171
+ case 'lax':
172
+ str += '; SameSite=Lax';
173
+ break;
174
+ case 'strict':
175
+ str += '; SameSite=Strict';
176
+ break;
177
+ case 'none':
178
+ str += '; SameSite=None';
179
+ break;
180
+ default:
181
+ throw new TypeError('option sameSite is invalid');
182
+ }
183
+ }
184
+
185
+ return str;
186
+ }
187
+
188
+ /**
189
+ * Try decoding a string using a decoding function.
190
+ *
191
+ * @param {string} str
192
+ * @param {function} decode
193
+ * @private
194
+ */
195
+
196
+ function tryDecode(str, decode) {
197
+ try {
198
+ return decode(str);
199
+ } catch (e) {
200
+ return str;
201
+ }
202
+ }
203
+
204
+ var cookie = {
205
+ parse: parse_1,
206
+ serialize: serialize_1
207
+ };
208
+
209
+ exports.cookie = cookie;
210
+ exports.parse_1 = parse_1;
211
+ exports.serialize_1 = serialize_1;
@@ -20,7 +20,7 @@ function parseAssetId(ref) {
20
20
  return { id: id, width: width, height: height, format: format };
21
21
  }
22
22
  exports.default = parseAssetId;
23
-
23
+ //# sourceMappingURL=parseAssetId.js.map
24
24
  });
25
25
 
26
26
  _commonjsHelpers.unwrapExports(parseAssetId_1);
@@ -60,35 +60,35 @@ function parseSource(source) {
60
60
  if (typeof source === 'string' && isUrl(source)) {
61
61
  // Someone passed an existing image url?
62
62
  image = {
63
- asset: { _ref: urlToId(source) }
63
+ asset: { _ref: urlToId(source) },
64
64
  };
65
65
  }
66
66
  else if (typeof source === 'string') {
67
67
  // Just an asset id
68
68
  image = {
69
- asset: { _ref: source }
69
+ asset: { _ref: source },
70
70
  };
71
71
  }
72
72
  else if (isRef(source)) {
73
73
  // We just got passed an asset directly
74
74
  image = {
75
- asset: source
75
+ asset: source,
76
76
  };
77
77
  }
78
78
  else if (isAsset(source)) {
79
79
  // If we were passed an image asset document
80
80
  image = {
81
81
  asset: {
82
- _ref: source._id || ''
83
- }
82
+ _ref: source._id || '',
83
+ },
84
84
  };
85
85
  }
86
86
  else if (isAssetStub(source)) {
87
87
  // If we were passed a partial asset (`url`, but no `_id`)
88
88
  image = {
89
89
  asset: {
90
- _ref: urlToId(source.asset.url)
91
- }
90
+ _ref: urlToId(source.asset.url),
91
+ },
92
92
  };
93
93
  }
94
94
  else if (typeof source.asset === 'object') {
@@ -129,7 +129,7 @@ function applyDefaults(image) {
129
129
  left: 0,
130
130
  top: 0,
131
131
  bottom: 0,
132
- right: 0
132
+ right: 0,
133
133
  };
134
134
  }
135
135
  if (!result.hotspot) {
@@ -137,12 +137,12 @@ function applyDefaults(image) {
137
137
  x: 0.5,
138
138
  y: 0.5,
139
139
  height: 1.0,
140
- width: 1.0
140
+ width: 1.0,
141
141
  };
142
142
  }
143
143
  return result;
144
144
  }
145
-
145
+ //# sourceMappingURL=parseSource.js.map
146
146
  });
147
147
 
148
148
  _commonjsHelpers.unwrapExports(parseSource_1);
@@ -184,7 +184,8 @@ exports.SPEC_NAME_TO_URL_NAME_MAPPINGS = [
184
184
  ['crop', 'crop'],
185
185
  ['saturation', 'sat'],
186
186
  ['auto', 'auto'],
187
- ['dpr', 'dpr']
187
+ ['dpr', 'dpr'],
188
+ ['pad', 'pad'],
188
189
  ];
189
190
  function urlForImage(options) {
190
191
  var spec = __assign({}, (options || {}));
@@ -203,7 +204,7 @@ function urlForImage(options) {
203
204
  left: cropLeft,
204
205
  top: cropTop,
205
206
  width: Math.round(asset.width - image.crop.right * asset.width - cropLeft),
206
- height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop)
207
+ height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop),
207
208
  };
208
209
  // Compute hot spot rect in terms of pixel coordinates
209
210
  var hotSpotVerticalRadius = (image.hotspot.height * asset.height) / 2;
@@ -214,7 +215,7 @@ function urlForImage(options) {
214
215
  left: hotSpotCenterX - hotSpotHorizontalRadius,
215
216
  top: hotSpotCenterY - hotSpotVerticalRadius,
216
217
  right: hotSpotCenterX + hotSpotHorizontalRadius,
217
- bottom: hotSpotCenterY + hotSpotVerticalRadius
218
+ bottom: hotSpotCenterY + hotSpotVerticalRadius,
218
219
  };
219
220
  // If irrelevant, or if we are requested to: don't perform crop/fit based on
220
221
  // the crop/hotspot.
@@ -296,7 +297,7 @@ function fit(source, spec) {
296
297
  left: Math.round(left),
297
298
  top: Math.round(top_2),
298
299
  width: Math.round(width),
299
- height: Math.round(height)
300
+ height: Math.round(height),
300
301
  };
301
302
  }
302
303
  else {
@@ -318,21 +319,21 @@ function fit(source, spec) {
318
319
  left: Math.max(0, Math.floor(left)),
319
320
  top: Math.max(0, Math.floor(top_3)),
320
321
  width: Math.round(width),
321
- height: Math.round(height)
322
+ height: Math.round(height),
322
323
  };
323
324
  }
324
325
  return {
325
326
  width: imgWidth,
326
327
  height: imgHeight,
327
- rect: cropRect
328
+ rect: cropRect,
328
329
  };
329
330
  }
330
-
331
+ //# sourceMappingURL=urlForImage.js.map
331
332
  });
332
333
 
333
334
  _commonjsHelpers.unwrapExports(urlForImage_1);
334
- var urlForImage_2 = urlForImage_1.parseSource;
335
- var urlForImage_3 = urlForImage_1.SPEC_NAME_TO_URL_NAME_MAPPINGS;
335
+ urlForImage_1.parseSource;
336
+ urlForImage_1.SPEC_NAME_TO_URL_NAME_MAPPINGS;
336
337
 
337
338
  var builder = _commonjsHelpers.createCommonjsModule(function (module, exports) {
338
339
  var __assign = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__assign) || function () {
@@ -358,7 +359,7 @@ var urlForImage_1$1 = __importStar(urlForImage_1);
358
359
  var validFits = ['clip', 'crop', 'fill', 'fillmax', 'max', 'scale', 'min'];
359
360
  var validCrops = ['top', 'bottom', 'left', 'right', 'center', 'focalpoint', 'entropy'];
360
361
  var validAutoModes = ['format'];
361
- function isSanityClient(client) {
362
+ function isSanityClientLike(client) {
362
363
  return client ? typeof client.clientConfig === 'object' : false;
363
364
  }
364
365
  function rewriteSpecName(key) {
@@ -375,13 +376,14 @@ function rewriteSpecName(key) {
375
376
  function urlBuilder(options) {
376
377
  // Did we get a SanityClient?
377
378
  var client = options;
378
- if (isSanityClient(client)) {
379
+ if (isSanityClientLike(client)) {
379
380
  // Inherit config from client
380
- var _a = client.clientConfig, apiHost = _a.apiHost, projectId = _a.projectId, dataset = _a.dataset;
381
+ var _a = client.clientConfig, apiUrl = _a.apiHost, projectId = _a.projectId, dataset = _a.dataset;
382
+ var apiHost = apiUrl || 'https://api.sanity.io';
381
383
  return new ImageUrlBuilder(null, {
382
384
  baseUrl: apiHost.replace(/^https:\/\/api\./, 'https://cdn.'),
383
385
  projectId: projectId,
384
- dataset: dataset
386
+ dataset: dataset,
385
387
  });
386
388
  }
387
389
  // Or just accept the options as given
@@ -394,7 +396,7 @@ var ImageUrlBuilder = /** @class */ (function () {
394
396
  ? __assign(__assign({}, (parent.options || {})), (options || {})) : __assign({}, (options || {})); // Copy options
395
397
  }
396
398
  ImageUrlBuilder.prototype.withOptions = function (options) {
397
- var baseUrl = options.baseUrl || '';
399
+ var baseUrl = options.baseUrl || this.options.baseUrl;
398
400
  var newOptions = { baseUrl: baseUrl };
399
401
  for (var key in options) {
400
402
  if (options.hasOwnProperty(key)) {
@@ -488,7 +490,7 @@ var ImageUrlBuilder = /** @class */ (function () {
488
490
  ImageUrlBuilder.prototype.flipHorizontal = function () {
489
491
  return this.withOptions({ flipHorizontal: true });
490
492
  };
491
- // Flip image verically
493
+ // Flip image vertically
492
494
  ImageUrlBuilder.prototype.flipVertical = function () {
493
495
  return this.withOptions({ flipVertical: true });
494
496
  };
@@ -518,22 +520,26 @@ var ImageUrlBuilder = /** @class */ (function () {
518
520
  }
519
521
  return this.withOptions({ auto: value });
520
522
  };
523
+ // Specify the number of pixels to pad the image
524
+ ImageUrlBuilder.prototype.pad = function (pad) {
525
+ return this.withOptions({ pad: pad });
526
+ };
521
527
  // Gets the url based on the submitted parameters
522
528
  ImageUrlBuilder.prototype.url = function () {
523
529
  return urlForImage_1$1.default(this.options);
524
530
  };
525
- // Synonym for url()
531
+ // Alias for url()
526
532
  ImageUrlBuilder.prototype.toString = function () {
527
533
  return this.url();
528
534
  };
529
535
  return ImageUrlBuilder;
530
536
  }());
531
537
  exports.ImageUrlBuilder = ImageUrlBuilder;
532
-
538
+ //# sourceMappingURL=builder.js.map
533
539
  });
534
540
 
535
541
  _commonjsHelpers.unwrapExports(builder);
536
- var builder_1 = builder.ImageUrlBuilder;
542
+ builder.ImageUrlBuilder;
537
543
 
538
544
  var node = _commonjsHelpers.createCommonjsModule(function (module) {
539
545
  var __importDefault = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__importDefault) || function (mod) {
@@ -541,7 +547,7 @@ var __importDefault = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commo
541
547
  };
542
548
  var builder_1 = __importDefault(builder);
543
549
  module.exports = builder_1.default;
544
-
550
+ //# sourceMappingURL=index.js.map
545
551
  });
546
552
 
547
553
  var imageUrlBuilder = _commonjsHelpers.unwrapExports(node);