@mjhls/mjh-framework 1.0.108 → 1.0.109-8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (370) hide show
  1. package/README.md +1 -5
  2. package/dist/cjs/AD.js +32 -0
  3. package/dist/cjs/AD300x250.js +95 -0
  4. package/dist/cjs/AD300x250x600.js +112 -0
  5. package/dist/cjs/AD728x90.js +109 -0
  6. package/dist/cjs/ADFloatingFooter.js +151 -0
  7. package/dist/cjs/ADFooter.js +53 -0
  8. package/dist/cjs/ADGutter.js +123 -0
  9. package/dist/cjs/ADInfeed-7c075eda.js +75 -0
  10. package/dist/cjs/ADSkyscraper.js +125 -0
  11. package/dist/cjs/ADSponsoredResources.js +122 -0
  12. package/dist/cjs/ADWebcast.js +127 -0
  13. package/dist/cjs/ADWelcome.js +166 -0
  14. package/dist/cjs/ADlgInfeed-d4f556bd.js +69 -0
  15. package/dist/cjs/AccordionPanel.js +94 -0
  16. package/dist/cjs/AdSlot.js +283 -0
  17. package/dist/cjs/AdSlotsProvider.js +184 -0
  18. package/dist/cjs/AlgoliaSearch.js +15221 -0
  19. package/dist/cjs/AlphabeticList.js +134 -0
  20. package/dist/cjs/ArticleCarousel.js +45 -0
  21. package/dist/cjs/ArticleProgramLandingPage.js +186 -0
  22. package/dist/cjs/ArticleSeriesLandingPage.js +162 -0
  23. package/dist/cjs/ArticleSeriesListing.js +314 -0
  24. package/dist/cjs/AuthWrapper.js +1526 -0
  25. package/dist/cjs/AuthorComponent-7d00f6d5.js +96 -0
  26. package/dist/cjs/Beam.js +405 -0
  27. package/dist/cjs/BlockContent-96b44364.js +916 -0
  28. package/dist/cjs/Breadcrumbs.js +107 -0
  29. package/dist/cjs/CEDeckSupabase.js +444 -0
  30. package/dist/cjs/CMEDeck.js +444 -0
  31. package/dist/cjs/Column1.js +36 -0
  32. package/dist/cjs/Column2.js +73 -0
  33. package/dist/cjs/Column3.js +140 -0
  34. package/dist/cjs/ConferenceArticleCard.js +94 -0
  35. package/dist/cjs/ConferenceBanner-213003ce.js +24 -0
  36. package/dist/cjs/ContentCardPaginated.js +416 -0
  37. package/dist/cjs/DeckContent.js +507 -0
  38. package/dist/cjs/DeckQueue.js +402 -0
  39. package/dist/cjs/DeckQueuePaginated.js +347 -0
  40. package/dist/cjs/Dfp-67646058.js +103 -0
  41. package/dist/cjs/EventsDeck.js +856 -0
  42. package/dist/cjs/ExternalResources.js +220 -0
  43. package/dist/cjs/Feature.js +132 -0
  44. package/dist/cjs/ForbesHero.js +138 -0
  45. package/dist/cjs/GridContent.js +828 -0
  46. package/dist/cjs/GridContentPaginated.js +703 -0
  47. package/dist/cjs/GridHero.js +148 -0
  48. package/dist/cjs/GroupDeck.js +314 -0
  49. package/dist/cjs/HamMagazine.js +664 -0
  50. package/dist/cjs/Header.js +65 -0
  51. package/dist/cjs/HealthCareProfessionalModal.js +78 -0
  52. package/dist/cjs/Hero.js +49 -0
  53. package/dist/cjs/HighlightenVideo.js +69 -0
  54. package/dist/cjs/HorizontalArticleListing.js +167 -0
  55. package/dist/cjs/HorizontalHero.js +112 -0
  56. package/dist/cjs/ImageSlider-7c995858.js +2808 -0
  57. package/dist/cjs/IssueContentDeck.js +242 -0
  58. package/dist/cjs/IssueDeck.js +267 -0
  59. package/dist/cjs/IssueLanding.js +176 -0
  60. package/dist/cjs/KMTracker.js +27 -0
  61. package/dist/cjs/LeftNav.js +153 -0
  62. package/dist/cjs/MasterDeck.js +555 -0
  63. package/dist/cjs/MasterDeckPaginated.js +468 -0
  64. package/dist/cjs/MediaSeriesCard.js +134 -0
  65. package/dist/cjs/MediaSeriesLanding.js +507 -0
  66. package/dist/cjs/MediaSeriesLandingPaginated.js +532 -0
  67. package/dist/cjs/NavDvm.js +278 -0
  68. package/dist/cjs/NavFooter-b7b16d48.js +72 -0
  69. package/dist/cjs/NavMagazine.js +615 -0
  70. package/dist/cjs/NavNative.js +880 -0
  71. package/dist/cjs/OncliveHero.js +80 -0
  72. package/dist/cjs/OncliveLargeHero.js +242 -0
  73. package/dist/cjs/PageFilter.js +72 -0
  74. package/dist/cjs/Pagination-6359861a.js +97 -0
  75. package/dist/cjs/PartnerDetailListing.js +374 -0
  76. package/dist/cjs/PartnerDetailListingPaginated.js +365 -0
  77. package/dist/cjs/PdfDownload.js +28 -0
  78. package/dist/cjs/PixelTracking.js +191 -0
  79. package/dist/cjs/PodcastsLanding.js +234 -0
  80. package/dist/cjs/PopUpModal.js +58 -0
  81. package/dist/cjs/PtceDeck.js +150 -0
  82. package/dist/cjs/PubSection.js +120 -0
  83. package/dist/cjs/PubToc.js +88 -0
  84. package/dist/cjs/PublicationDeck.js +184 -0
  85. package/dist/cjs/PublicationFeature-4b68e0db.js +130 -0
  86. package/dist/cjs/PublicationLanding.js +826 -0
  87. package/dist/cjs/QueueDeckExpanded.js +1540 -0
  88. package/dist/cjs/QueueDeckExpandedPaginated.js +1387 -0
  89. package/dist/cjs/RecentNews.js +91 -0
  90. package/dist/cjs/RelatedContent.js +115 -0
  91. package/dist/cjs/RelatedTopicsDropdown.js +90 -0
  92. package/dist/cjs/RolesDeck.js +94 -0
  93. package/dist/cjs/Schema.js +102 -0
  94. package/dist/cjs/Search.js +66 -0
  95. package/dist/cjs/Segment.js +458 -0
  96. package/dist/cjs/SeriesListingDeck.js +247 -0
  97. package/dist/cjs/SeriesSlider-086a8319.js +332 -0
  98. package/dist/cjs/SetCookie.js +10 -0
  99. package/dist/cjs/SideFooter.js +152 -0
  100. package/dist/cjs/SocialIcons.js +103 -0
  101. package/dist/cjs/SocialSearchComponent-d7e5d3a6.js +213 -0
  102. package/dist/cjs/SocialShare.js +74 -0
  103. package/dist/cjs/TaxonomyCard.js +256 -0
  104. package/dist/cjs/TaxonomyDescription.js +208 -0
  105. package/dist/cjs/TemplateNormal.js +204 -0
  106. package/dist/cjs/ThumbnailCard.js +60 -0
  107. package/dist/cjs/Tooltip-b8516cbf.js +9541 -0
  108. package/dist/cjs/Ustream.js +157 -0
  109. package/dist/cjs/VerticalHero.js +75 -0
  110. package/dist/cjs/VideoProgramLandingPage.js +262 -0
  111. package/dist/cjs/VideoSeriesCard.js +88 -0
  112. package/dist/cjs/VideoSeriesFilter.js +129 -0
  113. package/dist/cjs/VideoSeriesLandingPage.js +178 -0
  114. package/dist/cjs/VideoSeriesListing.js +421 -0
  115. package/dist/cjs/View.js +2841 -0
  116. package/dist/cjs/YahooHero.js +127 -0
  117. package/dist/cjs/YoutubeGroup.js +372 -0
  118. package/dist/cjs/_commonjsHelpers-06173234.js +25 -0
  119. package/dist/cjs/_is-array-54228b29.js +74 -0
  120. package/dist/cjs/_iter-detect-b1df62f0.js +52 -0
  121. package/dist/cjs/_library-dd23b178.js +5 -0
  122. package/dist/cjs/_object-sap-d1978572.js +16 -0
  123. package/dist/cjs/_object-to-array-9337ba83.js +25 -0
  124. package/dist/cjs/_set-species-0c7864a2.js +55 -0
  125. package/dist/cjs/asyncToGenerator-65df6bf8.js +1347 -0
  126. package/dist/cjs/brightcove-react-player-loader.es-35faab67.js +2232 -0
  127. package/dist/cjs/checkSisterSite-c3a4ac98.js +19 -0
  128. package/dist/cjs/core.get-iterator-method-5643aa10.js +584 -0
  129. package/dist/cjs/debounce-d4a2369b.js +216 -0
  130. package/dist/cjs/define-property-e8404b64.js +20 -0
  131. package/dist/cjs/defineProperty-19580e93.js +71 -0
  132. package/dist/cjs/defineProperty-9673846a.js +34 -0
  133. package/dist/cjs/entities-df1aed86.js +510 -0
  134. package/dist/cjs/eq-5fc26c07.js +79 -0
  135. package/dist/cjs/extends-be0d85bc.js +100 -0
  136. package/dist/cjs/faundadb.js +765 -0
  137. package/dist/cjs/get-5839e5b5.js +920 -0
  138. package/dist/cjs/getContentCategory-f38a4c00.js +11 -0
  139. package/dist/cjs/getKeywords.js +46 -0
  140. package/dist/cjs/getPtceActivities.js +90 -0
  141. package/dist/cjs/getQuery.js +27 -0
  142. package/dist/cjs/getRelatedArticle.js +766 -0
  143. package/dist/cjs/getRootDocGroup.js +63 -0
  144. package/dist/cjs/getSerializers.js +66 -0
  145. package/dist/cjs/getSeriesDetail.js +40 -0
  146. package/dist/cjs/getTIData.js +93 -0
  147. package/dist/cjs/getTargeting-7ce7037b.js +166 -0
  148. package/dist/cjs/getTargeting.js +12 -0
  149. package/dist/cjs/iconBase-be4097c0.js +104 -0
  150. package/dist/cjs/index-187c967e.js +54 -0
  151. package/dist/cjs/index-3177f564.js +1573 -0
  152. package/dist/cjs/index-65621b6c.js +613 -0
  153. package/dist/cjs/index-7435b964.js +1683 -0
  154. package/dist/cjs/index-a26637a3.js +11764 -0
  155. package/dist/cjs/index-d48b231c.js +556 -0
  156. package/dist/cjs/index-ff83a88b.js +104 -0
  157. package/dist/cjs/index.es-1ab8dda7.js +445 -0
  158. package/dist/cjs/index.esm-2ea9e9ff.js +98 -0
  159. package/dist/cjs/index.esm-c1e16606.js +13 -0
  160. package/dist/cjs/index.esm-d51c9ac6.js +25 -0
  161. package/dist/cjs/index.esm-d81454e7.js +19 -0
  162. package/dist/cjs/index.js +638 -0
  163. package/dist/cjs/inherits-e47b5342.js +188 -0
  164. package/dist/cjs/isSymbol-03abbdf0.js +209 -0
  165. package/dist/cjs/js.cookie-a511c430.js +160 -0
  166. package/dist/cjs/keys-e982b3fa.js +25 -0
  167. package/dist/cjs/lodash-f0783643.js +17195 -0
  168. package/dist/cjs/main-ae8472f3.js +969 -0
  169. package/dist/cjs/moment-f730814d.js +5684 -0
  170. package/dist/cjs/react-social-icons-2c5c389a.js +616 -0
  171. package/dist/cjs/slicedToArray-067dd3bc.js +95 -0
  172. package/dist/cjs/smoothscroll-99df7f93.js +438 -0
  173. package/dist/cjs/stringify-f7a37a8d.js +17 -0
  174. package/dist/cjs/style-inject.es-dcee06b6.js +30 -0
  175. package/dist/cjs/timeDifferenceCalc.js +39 -0
  176. package/dist/cjs/toConsumableArray-d7797c2b.js +74 -0
  177. package/dist/cjs/toNumber-5e1fac58.js +104 -0
  178. package/dist/cjs/typeof-220bbf73.js +382 -0
  179. package/dist/cjs/urlFor.js +66 -0
  180. package/dist/cjs/urlForFile-5084fc48.js +29 -0
  181. package/dist/cjs/ustream-api-3819e4aa.js +106 -0
  182. package/dist/cjs/visibility-sensor-56020df6.js +597 -0
  183. package/dist/cjs/web.dom.iterable-d98303e0.js +50 -0
  184. package/dist/esm/AD.js +26 -0
  185. package/dist/esm/AD300x250.js +89 -0
  186. package/dist/esm/AD300x250x600.js +106 -0
  187. package/dist/esm/AD728x90.js +103 -0
  188. package/dist/esm/ADFloatingFooter.js +145 -0
  189. package/dist/esm/ADFooter.js +47 -0
  190. package/dist/esm/ADGutter.js +117 -0
  191. package/dist/esm/ADInfeed-3442c999.js +68 -0
  192. package/dist/esm/ADSkyscraper.js +119 -0
  193. package/dist/esm/ADSponsoredResources.js +116 -0
  194. package/dist/esm/ADWebcast.js +121 -0
  195. package/dist/esm/ADWelcome.js +160 -0
  196. package/dist/esm/ADlgInfeed-30649360.js +63 -0
  197. package/dist/esm/AccordionPanel.js +87 -0
  198. package/dist/esm/AdSlot.js +276 -0
  199. package/dist/esm/AdSlotsProvider.js +177 -0
  200. package/dist/esm/AlgoliaSearch.js +15214 -0
  201. package/dist/esm/AlphabeticList.js +128 -0
  202. package/dist/esm/ArticleCarousel.js +39 -0
  203. package/dist/esm/ArticleProgramLandingPage.js +180 -0
  204. package/dist/esm/ArticleSeriesLandingPage.js +156 -0
  205. package/dist/esm/ArticleSeriesListing.js +307 -0
  206. package/dist/esm/AuthWrapper.js +1520 -0
  207. package/dist/esm/AuthorComponent-d9653ae5.js +90 -0
  208. package/dist/esm/Beam.js +403 -0
  209. package/dist/esm/BlockContent-1e73bd2c.js +909 -0
  210. package/dist/esm/Breadcrumbs.js +100 -0
  211. package/dist/esm/CEDeckSupabase.js +438 -0
  212. package/dist/esm/CMEDeck.js +438 -0
  213. package/dist/esm/Column1.js +28 -0
  214. package/dist/esm/Column2.js +65 -0
  215. package/dist/esm/Column3.js +132 -0
  216. package/dist/esm/ConferenceArticleCard.js +88 -0
  217. package/dist/esm/ConferenceBanner-8792ebd2.js +18 -0
  218. package/dist/esm/ContentCardPaginated.js +405 -0
  219. package/dist/esm/DeckContent.js +497 -0
  220. package/dist/esm/DeckQueue.js +392 -0
  221. package/dist/esm/DeckQueuePaginated.js +336 -0
  222. package/dist/esm/Dfp-3b6eb620.js +96 -0
  223. package/dist/esm/EventsDeck.js +843 -0
  224. package/dist/esm/ExternalResources.js +213 -0
  225. package/dist/esm/Feature.js +125 -0
  226. package/dist/esm/ForbesHero.js +132 -0
  227. package/dist/esm/GridContent.js +818 -0
  228. package/dist/esm/GridContentPaginated.js +692 -0
  229. package/dist/esm/GridHero.js +142 -0
  230. package/dist/esm/GroupDeck.js +308 -0
  231. package/dist/esm/HamMagazine.js +651 -0
  232. package/dist/esm/Header.js +54 -0
  233. package/dist/esm/HealthCareProfessionalModal.js +70 -0
  234. package/dist/esm/Hero.js +43 -0
  235. package/dist/esm/HighlightenVideo.js +63 -0
  236. package/dist/esm/HorizontalArticleListing.js +161 -0
  237. package/dist/esm/HorizontalHero.js +106 -0
  238. package/dist/esm/ImageSlider-75f7b81a.js +2799 -0
  239. package/dist/esm/IssueContentDeck.js +232 -0
  240. package/dist/esm/IssueDeck.js +257 -0
  241. package/dist/esm/IssueLanding.js +170 -0
  242. package/dist/esm/KMTracker.js +25 -0
  243. package/dist/esm/LeftNav.js +143 -0
  244. package/dist/esm/MasterDeck.js +548 -0
  245. package/dist/esm/MasterDeckPaginated.js +460 -0
  246. package/dist/esm/MediaSeriesCard.js +128 -0
  247. package/dist/esm/MediaSeriesLanding.js +500 -0
  248. package/dist/esm/MediaSeriesLandingPaginated.js +525 -0
  249. package/dist/esm/NavDvm.js +265 -0
  250. package/dist/esm/NavFooter-4bcffccb.js +66 -0
  251. package/dist/esm/NavMagazine.js +602 -0
  252. package/dist/esm/NavNative.js +864 -0
  253. package/dist/esm/OncliveHero.js +74 -0
  254. package/dist/esm/OncliveLargeHero.js +236 -0
  255. package/dist/esm/PageFilter.js +66 -0
  256. package/dist/esm/Pagination-9fe9f61d.js +90 -0
  257. package/dist/esm/PartnerDetailListing.js +368 -0
  258. package/dist/esm/PartnerDetailListingPaginated.js +359 -0
  259. package/dist/esm/PdfDownload.js +22 -0
  260. package/dist/esm/PixelTracking.js +182 -0
  261. package/dist/esm/PodcastsLanding.js +227 -0
  262. package/dist/esm/PopUpModal.js +51 -0
  263. package/dist/esm/PtceDeck.js +144 -0
  264. package/dist/esm/PubSection.js +114 -0
  265. package/dist/esm/PubToc.js +82 -0
  266. package/dist/esm/PublicationDeck.js +174 -0
  267. package/dist/esm/PublicationFeature-6c334891.js +121 -0
  268. package/dist/esm/PublicationLanding.js +816 -0
  269. package/dist/esm/QueueDeckExpanded.js +1534 -0
  270. package/dist/esm/QueueDeckExpandedPaginated.js +1381 -0
  271. package/dist/esm/RecentNews.js +85 -0
  272. package/dist/esm/RelatedContent.js +109 -0
  273. package/dist/esm/RelatedTopicsDropdown.js +82 -0
  274. package/dist/esm/RolesDeck.js +84 -0
  275. package/dist/esm/Schema.js +96 -0
  276. package/dist/esm/Search.js +57 -0
  277. package/dist/esm/Segment.js +456 -0
  278. package/dist/esm/SeriesListingDeck.js +241 -0
  279. package/dist/esm/SeriesSlider-acbdf4c9.js +326 -0
  280. package/dist/esm/SetCookie.js +8 -0
  281. package/dist/esm/SideFooter.js +146 -0
  282. package/dist/esm/SocialIcons.js +97 -0
  283. package/dist/esm/SocialSearchComponent-9e65c8d6.js +204 -0
  284. package/dist/esm/SocialShare.js +67 -0
  285. package/dist/esm/TaxonomyCard.js +246 -0
  286. package/dist/esm/TaxonomyDescription.js +201 -0
  287. package/dist/esm/TemplateNormal.js +197 -0
  288. package/dist/esm/ThumbnailCard.js +53 -0
  289. package/dist/esm/Tooltip-fe0ed92d.js +9532 -0
  290. package/dist/esm/Ustream.js +151 -0
  291. package/dist/esm/VerticalHero.js +69 -0
  292. package/dist/esm/VideoProgramLandingPage.js +253 -0
  293. package/dist/esm/VideoSeriesCard.js +82 -0
  294. package/dist/esm/VideoSeriesFilter.js +123 -0
  295. package/dist/esm/VideoSeriesLandingPage.js +172 -0
  296. package/dist/esm/VideoSeriesListing.js +414 -0
  297. package/dist/esm/View.js +2831 -0
  298. package/dist/esm/YahooHero.js +121 -0
  299. package/dist/esm/YoutubeGroup.js +366 -0
  300. package/dist/esm/_commonjsHelpers-0c4b6f40.js +19 -0
  301. package/dist/esm/_is-array-68c79b29.js +71 -0
  302. package/dist/esm/_iter-detect-2f89237f.js +48 -0
  303. package/dist/esm/_library-528f1934.js +3 -0
  304. package/dist/esm/_object-sap-14bd8e96.js +14 -0
  305. package/dist/esm/_object-to-array-9dfdfb29.js +23 -0
  306. package/dist/esm/_set-species-7d3317b7.js +50 -0
  307. package/dist/esm/asyncToGenerator-1ebeb135.js +1343 -0
  308. package/dist/esm/brightcove-react-player-loader.es-a2422c4b.js +2226 -0
  309. package/dist/esm/checkSisterSite-a7218fda.js +17 -0
  310. package/dist/esm/core.get-iterator-method-95db387d.js +547 -0
  311. package/dist/esm/debounce-533d9748.js +214 -0
  312. package/dist/esm/define-property-433c51d3.js +18 -0
  313. package/dist/esm/defineProperty-e5afb9eb.js +32 -0
  314. package/dist/esm/defineProperty-e8022d1e.js +66 -0
  315. package/dist/esm/entities-6d9154b4.js +507 -0
  316. package/dist/esm/eq-bdcbf886.js +76 -0
  317. package/dist/esm/extends-2f4448b8.js +94 -0
  318. package/dist/esm/faundadb.js +754 -0
  319. package/dist/esm/get-3c308da4.js +918 -0
  320. package/dist/esm/getContentCategory-15dcc413.js +9 -0
  321. package/dist/esm/getKeywords.js +44 -0
  322. package/dist/esm/getPtceActivities.js +88 -0
  323. package/dist/esm/getQuery.js +25 -0
  324. package/dist/esm/getRelatedArticle.js +764 -0
  325. package/dist/esm/getRootDocGroup.js +61 -0
  326. package/dist/esm/getSerializers.js +60 -0
  327. package/dist/esm/getSeriesDetail.js +38 -0
  328. package/dist/esm/getTIData.js +91 -0
  329. package/dist/esm/getTargeting-301942ae.js +163 -0
  330. package/dist/esm/getTargeting.js +6 -0
  331. package/dist/esm/iconBase-ccc56b97.js +81 -0
  332. package/dist/esm/index-3f5c03b2.js +553 -0
  333. package/dist/esm/index-4550ef23.js +1571 -0
  334. package/dist/esm/index-5cc7b406.js +1674 -0
  335. package/dist/esm/index-755f2cc2.js +605 -0
  336. package/dist/esm/index-a68bfe70.js +11743 -0
  337. package/dist/esm/index-c7e2ac95.js +52 -0
  338. package/dist/esm/index-c8d5e72b.js +99 -0
  339. package/dist/esm/index.es-a6137319.js +439 -0
  340. package/dist/esm/index.esm-1bd8a0a8.js +18 -0
  341. package/dist/esm/index.esm-9508070a.js +91 -0
  342. package/dist/esm/index.esm-9b042655.js +10 -0
  343. package/dist/esm/index.esm-eb1e8e80.js +14 -0
  344. package/dist/esm/index.js +531 -0
  345. package/dist/esm/inherits-96c84cbd.js +179 -0
  346. package/dist/esm/isSymbol-a7e9aafe.js +203 -0
  347. package/dist/esm/js.cookie-6874175c.js +158 -0
  348. package/dist/esm/keys-185288f4.js +23 -0
  349. package/dist/esm/lodash-f97fd99a.js +17193 -0
  350. package/dist/esm/main-754d4992.js +956 -0
  351. package/dist/esm/moment-48faeb9c.js +5682 -0
  352. package/dist/esm/react-social-icons-9be47857.js +609 -0
  353. package/dist/esm/slicedToArray-72ed566b.js +92 -0
  354. package/dist/esm/smoothscroll-fa4e3f8c.js +436 -0
  355. package/dist/esm/stringify-1e2a5946.js +15 -0
  356. package/dist/esm/style-inject.es-1f59c1d0.js +28 -0
  357. package/dist/esm/timeDifferenceCalc.js +37 -0
  358. package/dist/esm/toConsumableArray-e6f28e5c.js +71 -0
  359. package/dist/esm/toNumber-5aeba6e7.js +102 -0
  360. package/dist/esm/typeof-3ab7d3b6.js +378 -0
  361. package/dist/esm/urlFor.js +64 -0
  362. package/dist/esm/urlForFile-2e523b67.js +27 -0
  363. package/dist/esm/ustream-api-63a164b3.js +104 -0
  364. package/dist/esm/visibility-sensor-72fd8f8b.js +590 -0
  365. package/dist/esm/web.dom.iterable-3fffc027.js +48 -0
  366. package/package.json +55 -26
  367. package/dist/index.es.js +0 -20497
  368. package/dist/index.es.js.map +0 -1
  369. package/dist/index.js +0 -20535
  370. package/dist/index.js.map +0 -1
@@ -0,0 +1,553 @@
1
+ import { c as createCommonjsModule, u as unwrapExports, a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
2
+
3
+ var parseAssetId_1 = createCommonjsModule(function (module, exports) {
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ var example = 'image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg';
6
+ function parseAssetId(ref) {
7
+ var _a = ref.split('-'), id = _a[1], dimensionString = _a[2], format = _a[3];
8
+ if (!id || !dimensionString || !format) {
9
+ throw new Error("Malformed asset _ref '" + ref + "'. Expected an id like \"" + example + "\".");
10
+ }
11
+ var _b = dimensionString.split('x'), imgWidthStr = _b[0], imgHeightStr = _b[1];
12
+ var width = +imgWidthStr;
13
+ var height = +imgHeightStr;
14
+ var isValidAssetId = isFinite(width) && isFinite(height);
15
+ if (!isValidAssetId) {
16
+ throw new Error("Malformed asset _ref '" + ref + "'. Expected an id like \"" + example + "\".");
17
+ }
18
+ return { id: id, width: width, height: height, format: format };
19
+ }
20
+ exports.default = parseAssetId;
21
+
22
+ });
23
+
24
+ unwrapExports(parseAssetId_1);
25
+
26
+ var parseSource_1 = createCommonjsModule(function (module, exports) {
27
+ var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
28
+ __assign = Object.assign || function(t) {
29
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
30
+ s = arguments[i];
31
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
32
+ t[p] = s[p];
33
+ }
34
+ return t;
35
+ };
36
+ return __assign.apply(this, arguments);
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ var isRef = function (src) {
40
+ var source = src;
41
+ return source ? typeof source._ref === 'string' : false;
42
+ };
43
+ var isAsset = function (src) {
44
+ var source = src;
45
+ return source ? typeof source._id === 'string' : false;
46
+ };
47
+ var isAssetStub = function (src) {
48
+ var source = src;
49
+ return source && source.asset ? typeof source.asset.url === 'string' : false;
50
+ };
51
+ // Convert an asset-id, asset or image to an image record suitable for processing
52
+ // eslint-disable-next-line complexity
53
+ function parseSource(source) {
54
+ if (!source) {
55
+ return null;
56
+ }
57
+ var image;
58
+ if (typeof source === 'string' && isUrl(source)) {
59
+ // Someone passed an existing image url?
60
+ image = {
61
+ asset: { _ref: urlToId(source) },
62
+ };
63
+ }
64
+ else if (typeof source === 'string') {
65
+ // Just an asset id
66
+ image = {
67
+ asset: { _ref: source },
68
+ };
69
+ }
70
+ else if (isRef(source)) {
71
+ // We just got passed an asset directly
72
+ image = {
73
+ asset: source,
74
+ };
75
+ }
76
+ else if (isAsset(source)) {
77
+ // If we were passed an image asset document
78
+ image = {
79
+ asset: {
80
+ _ref: source._id || '',
81
+ },
82
+ };
83
+ }
84
+ else if (isAssetStub(source)) {
85
+ // If we were passed a partial asset (`url`, but no `_id`)
86
+ image = {
87
+ asset: {
88
+ _ref: urlToId(source.asset.url),
89
+ },
90
+ };
91
+ }
92
+ else if (typeof source.asset === 'object') {
93
+ // Probably an actual image with materialized asset
94
+ image = source;
95
+ }
96
+ else {
97
+ // We got something that does not look like an image, or it is an image
98
+ // that currently isn't sporting an asset.
99
+ return null;
100
+ }
101
+ var img = source;
102
+ if (img.crop) {
103
+ image.crop = img.crop;
104
+ }
105
+ if (img.hotspot) {
106
+ image.hotspot = img.hotspot;
107
+ }
108
+ return applyDefaults(image);
109
+ }
110
+ exports.default = parseSource;
111
+ function isUrl(url) {
112
+ return /^https?:\/\//.test("" + url);
113
+ }
114
+ function urlToId(url) {
115
+ var parts = url.split('/').slice(-1);
116
+ return ("image-" + parts[0]).replace(/\.([a-z]+)$/, '-$1');
117
+ }
118
+ // Mock crop and hotspot if image lacks it
119
+ function applyDefaults(image) {
120
+ if (image.crop && image.hotspot) {
121
+ return image;
122
+ }
123
+ // We need to pad in default values for crop or hotspot
124
+ var result = __assign({}, image);
125
+ if (!result.crop) {
126
+ result.crop = {
127
+ left: 0,
128
+ top: 0,
129
+ bottom: 0,
130
+ right: 0,
131
+ };
132
+ }
133
+ if (!result.hotspot) {
134
+ result.hotspot = {
135
+ x: 0.5,
136
+ y: 0.5,
137
+ height: 1.0,
138
+ width: 1.0,
139
+ };
140
+ }
141
+ return result;
142
+ }
143
+
144
+ });
145
+
146
+ unwrapExports(parseSource_1);
147
+
148
+ var urlForImage_1 = createCommonjsModule(function (module, exports) {
149
+ var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
150
+ __assign = Object.assign || function(t) {
151
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
152
+ s = arguments[i];
153
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
154
+ t[p] = s[p];
155
+ }
156
+ return t;
157
+ };
158
+ return __assign.apply(this, arguments);
159
+ };
160
+ var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
161
+ return (mod && mod.__esModule) ? mod : { "default": mod };
162
+ };
163
+ Object.defineProperty(exports, "__esModule", { value: true });
164
+ var parseAssetId_1$1 = __importDefault(parseAssetId_1);
165
+ var parseSource_1$1 = __importDefault(parseSource_1);
166
+ exports.parseSource = parseSource_1$1.default;
167
+ exports.SPEC_NAME_TO_URL_NAME_MAPPINGS = [
168
+ ['width', 'w'],
169
+ ['height', 'h'],
170
+ ['format', 'fm'],
171
+ ['download', 'dl'],
172
+ ['blur', 'blur'],
173
+ ['sharpen', 'sharp'],
174
+ ['invert', 'invert'],
175
+ ['orientation', 'or'],
176
+ ['minHeight', 'min-h'],
177
+ ['maxHeight', 'max-h'],
178
+ ['minWidth', 'min-w'],
179
+ ['maxWidth', 'max-w'],
180
+ ['quality', 'q'],
181
+ ['fit', 'fit'],
182
+ ['crop', 'crop'],
183
+ ['saturation', 'sat'],
184
+ ['auto', 'auto'],
185
+ ['dpr', 'dpr'],
186
+ ['pad', 'pad'],
187
+ ];
188
+ function urlForImage(options) {
189
+ var spec = __assign({}, (options || {}));
190
+ var source = spec.source;
191
+ delete spec.source;
192
+ var image = parseSource_1$1.default(source);
193
+ if (!image) {
194
+ return null;
195
+ }
196
+ var id = image.asset._ref || image.asset._id || '';
197
+ var asset = parseAssetId_1$1.default(id);
198
+ // Compute crop rect in terms of pixel coordinates in the raw source image
199
+ var cropLeft = Math.round(image.crop.left * asset.width);
200
+ var cropTop = Math.round(image.crop.top * asset.height);
201
+ var crop = {
202
+ left: cropLeft,
203
+ top: cropTop,
204
+ width: Math.round(asset.width - image.crop.right * asset.width - cropLeft),
205
+ height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop),
206
+ };
207
+ // Compute hot spot rect in terms of pixel coordinates
208
+ var hotSpotVerticalRadius = (image.hotspot.height * asset.height) / 2;
209
+ var hotSpotHorizontalRadius = (image.hotspot.width * asset.width) / 2;
210
+ var hotSpotCenterX = image.hotspot.x * asset.width;
211
+ var hotSpotCenterY = image.hotspot.y * asset.height;
212
+ var hotspot = {
213
+ left: hotSpotCenterX - hotSpotHorizontalRadius,
214
+ top: hotSpotCenterY - hotSpotVerticalRadius,
215
+ right: hotSpotCenterX + hotSpotHorizontalRadius,
216
+ bottom: hotSpotCenterY + hotSpotVerticalRadius,
217
+ };
218
+ // If irrelevant, or if we are requested to: don't perform crop/fit based on
219
+ // the crop/hotspot.
220
+ if (!(spec.rect || spec.focalPoint || spec.ignoreImageParams || spec.crop)) {
221
+ spec = __assign(__assign({}, spec), fit({ crop: crop, hotspot: hotspot }, spec));
222
+ }
223
+ return specToImageUrl(__assign(__assign({}, spec), { asset: asset }));
224
+ }
225
+ exports.default = urlForImage;
226
+ // eslint-disable-next-line complexity
227
+ function specToImageUrl(spec) {
228
+ var cdnUrl = spec.baseUrl || 'https://cdn.sanity.io';
229
+ var filename = spec.asset.id + "-" + spec.asset.width + "x" + spec.asset.height + "." + spec.asset.format;
230
+ var baseUrl = cdnUrl + "/images/" + spec.projectId + "/" + spec.dataset + "/" + filename;
231
+ var params = [];
232
+ if (spec.rect) {
233
+ // Only bother url with a crop if it actually crops anything
234
+ var _a = spec.rect, left = _a.left, top_1 = _a.top, width = _a.width, height = _a.height;
235
+ var isEffectiveCrop = left !== 0 || top_1 !== 0 || height !== spec.asset.height || width !== spec.asset.width;
236
+ if (isEffectiveCrop) {
237
+ params.push("rect=" + left + "," + top_1 + "," + width + "," + height);
238
+ }
239
+ }
240
+ if (spec.bg) {
241
+ params.push("bg=" + spec.bg);
242
+ }
243
+ if (spec.focalPoint) {
244
+ params.push("fp-x=" + spec.focalPoint.x);
245
+ params.push("fp-y=" + spec.focalPoint.y);
246
+ }
247
+ var flip = [spec.flipHorizontal && 'h', spec.flipVertical && 'v'].filter(Boolean).join('');
248
+ if (flip) {
249
+ params.push("flip=" + flip);
250
+ }
251
+ // Map from spec name to url param name, and allow using the actual param name as an alternative
252
+ exports.SPEC_NAME_TO_URL_NAME_MAPPINGS.forEach(function (mapping) {
253
+ var specName = mapping[0], param = mapping[1];
254
+ if (typeof spec[specName] !== 'undefined') {
255
+ params.push(param + "=" + encodeURIComponent(spec[specName]));
256
+ }
257
+ else if (typeof spec[param] !== 'undefined') {
258
+ params.push(param + "=" + encodeURIComponent(spec[param]));
259
+ }
260
+ });
261
+ if (params.length === 0) {
262
+ return baseUrl;
263
+ }
264
+ return baseUrl + "?" + params.join('&');
265
+ }
266
+ function fit(source, spec) {
267
+ var cropRect;
268
+ var imgWidth = spec.width;
269
+ var imgHeight = spec.height;
270
+ // If we are not constraining the aspect ratio, we'll just use the whole crop
271
+ if (!(imgWidth && imgHeight)) {
272
+ return { width: imgWidth, height: imgHeight, rect: source.crop };
273
+ }
274
+ var crop = source.crop;
275
+ var hotspot = source.hotspot;
276
+ // If we are here, that means aspect ratio is locked and fitting will be a bit harder
277
+ var desiredAspectRatio = imgWidth / imgHeight;
278
+ var cropAspectRatio = crop.width / crop.height;
279
+ if (cropAspectRatio > desiredAspectRatio) {
280
+ // The crop is wider than the desired aspect ratio. That means we are cutting from the sides
281
+ var height = crop.height;
282
+ var width = height * desiredAspectRatio;
283
+ var top_2 = crop.top;
284
+ // Center output horizontally over hotspot
285
+ var hotspotXCenter = (hotspot.right - hotspot.left) / 2 + hotspot.left;
286
+ var left = hotspotXCenter - width / 2;
287
+ // Keep output within crop
288
+ if (left < crop.left) {
289
+ left = crop.left;
290
+ }
291
+ else if (left + width > crop.left + crop.width) {
292
+ left = crop.left + crop.width - width;
293
+ }
294
+ cropRect = {
295
+ left: Math.round(left),
296
+ top: Math.round(top_2),
297
+ width: Math.round(width),
298
+ height: Math.round(height),
299
+ };
300
+ }
301
+ else {
302
+ // The crop is taller than the desired ratio, we are cutting from top and bottom
303
+ var width = crop.width;
304
+ var height = width / desiredAspectRatio;
305
+ var left = crop.left;
306
+ // Center output vertically over hotspot
307
+ var hotspotYCenter = (hotspot.bottom - hotspot.top) / 2 + hotspot.top;
308
+ var top_3 = hotspotYCenter - height / 2;
309
+ // Keep output rect within crop
310
+ if (top_3 < crop.top) {
311
+ top_3 = crop.top;
312
+ }
313
+ else if (top_3 + height > crop.top + crop.height) {
314
+ top_3 = crop.top + crop.height - height;
315
+ }
316
+ cropRect = {
317
+ left: Math.max(0, Math.floor(left)),
318
+ top: Math.max(0, Math.floor(top_3)),
319
+ width: Math.round(width),
320
+ height: Math.round(height),
321
+ };
322
+ }
323
+ return {
324
+ width: imgWidth,
325
+ height: imgHeight,
326
+ rect: cropRect,
327
+ };
328
+ }
329
+
330
+ });
331
+
332
+ unwrapExports(urlForImage_1);
333
+ urlForImage_1.parseSource;
334
+ urlForImage_1.SPEC_NAME_TO_URL_NAME_MAPPINGS;
335
+
336
+ var builder = createCommonjsModule(function (module, exports) {
337
+ var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
338
+ __assign = Object.assign || function(t) {
339
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
340
+ s = arguments[i];
341
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
342
+ t[p] = s[p];
343
+ }
344
+ return t;
345
+ };
346
+ return __assign.apply(this, arguments);
347
+ };
348
+ var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (mod) {
349
+ if (mod && mod.__esModule) return mod;
350
+ var result = {};
351
+ if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
352
+ result["default"] = mod;
353
+ return result;
354
+ };
355
+ Object.defineProperty(exports, "__esModule", { value: true });
356
+ var urlForImage_1$1 = __importStar(urlForImage_1);
357
+ var validFits = ['clip', 'crop', 'fill', 'fillmax', 'max', 'scale', 'min'];
358
+ var validCrops = ['top', 'bottom', 'left', 'right', 'center', 'focalpoint', 'entropy'];
359
+ var validAutoModes = ['format'];
360
+ function isSanityClientLike(client) {
361
+ return client ? typeof client.clientConfig === 'object' : false;
362
+ }
363
+ function rewriteSpecName(key) {
364
+ var specs = urlForImage_1$1.SPEC_NAME_TO_URL_NAME_MAPPINGS;
365
+ for (var _i = 0, specs_1 = specs; _i < specs_1.length; _i++) {
366
+ var entry = specs_1[_i];
367
+ var specName = entry[0], param = entry[1];
368
+ if (key === specName || key === param) {
369
+ return specName;
370
+ }
371
+ }
372
+ return key;
373
+ }
374
+ function urlBuilder(options) {
375
+ // Did we get a SanityClient?
376
+ var client = options;
377
+ if (isSanityClientLike(client)) {
378
+ // Inherit config from client
379
+ var _a = client.clientConfig, apiUrl = _a.apiHost, projectId = _a.projectId, dataset = _a.dataset;
380
+ var apiHost = apiUrl || 'https://api.sanity.io';
381
+ return new ImageUrlBuilder(null, {
382
+ baseUrl: apiHost.replace(/^https:\/\/api\./, 'https://cdn.'),
383
+ projectId: projectId,
384
+ dataset: dataset,
385
+ });
386
+ }
387
+ // Or just accept the options as given
388
+ return new ImageUrlBuilder(null, options);
389
+ }
390
+ exports.default = urlBuilder;
391
+ var ImageUrlBuilder = /** @class */ (function () {
392
+ function ImageUrlBuilder(parent, options) {
393
+ this.options = parent
394
+ ? __assign(__assign({}, (parent.options || {})), (options || {})) : __assign({}, (options || {})); // Copy options
395
+ }
396
+ ImageUrlBuilder.prototype.withOptions = function (options) {
397
+ var baseUrl = options.baseUrl || this.options.baseUrl;
398
+ var newOptions = { baseUrl: baseUrl };
399
+ for (var key in options) {
400
+ if (options.hasOwnProperty(key)) {
401
+ var specKey = rewriteSpecName(key);
402
+ newOptions[specKey] = options[key];
403
+ }
404
+ }
405
+ return new ImageUrlBuilder(this, __assign({ baseUrl: baseUrl }, newOptions));
406
+ };
407
+ // The image to be represented. Accepts a Sanity 'image'-document, 'asset'-document or
408
+ // _id of asset. To get the benefit of automatic hot-spot/crop integration with the content
409
+ // studio, the 'image'-document must be provided.
410
+ ImageUrlBuilder.prototype.image = function (source) {
411
+ return this.withOptions({ source: source });
412
+ };
413
+ // Specify the dataset
414
+ ImageUrlBuilder.prototype.dataset = function (dataset) {
415
+ return this.withOptions({ dataset: dataset });
416
+ };
417
+ // Specify the projectId
418
+ ImageUrlBuilder.prototype.projectId = function (projectId) {
419
+ return this.withOptions({ projectId: projectId });
420
+ };
421
+ // Specify background color
422
+ ImageUrlBuilder.prototype.bg = function (bg) {
423
+ return this.withOptions({ bg: bg });
424
+ };
425
+ // Set DPR scaling factor
426
+ ImageUrlBuilder.prototype.dpr = function (dpr) {
427
+ return this.withOptions({ dpr: dpr });
428
+ };
429
+ // Specify the width of the image in pixels
430
+ ImageUrlBuilder.prototype.width = function (width) {
431
+ return this.withOptions({ width: width });
432
+ };
433
+ // Specify the height of the image in pixels
434
+ ImageUrlBuilder.prototype.height = function (height) {
435
+ return this.withOptions({ height: height });
436
+ };
437
+ // Specify focal point in fraction of image dimensions. Each component 0.0-1.0
438
+ ImageUrlBuilder.prototype.focalPoint = function (x, y) {
439
+ return this.withOptions({ focalPoint: { x: x, y: y } });
440
+ };
441
+ ImageUrlBuilder.prototype.maxWidth = function (maxWidth) {
442
+ return this.withOptions({ maxWidth: maxWidth });
443
+ };
444
+ ImageUrlBuilder.prototype.minWidth = function (minWidth) {
445
+ return this.withOptions({ minWidth: minWidth });
446
+ };
447
+ ImageUrlBuilder.prototype.maxHeight = function (maxHeight) {
448
+ return this.withOptions({ maxHeight: maxHeight });
449
+ };
450
+ ImageUrlBuilder.prototype.minHeight = function (minHeight) {
451
+ return this.withOptions({ minHeight: minHeight });
452
+ };
453
+ // Specify width and height in pixels
454
+ ImageUrlBuilder.prototype.size = function (width, height) {
455
+ return this.withOptions({ width: width, height: height });
456
+ };
457
+ // Specify blur between 0 and 100
458
+ ImageUrlBuilder.prototype.blur = function (blur) {
459
+ return this.withOptions({ blur: blur });
460
+ };
461
+ ImageUrlBuilder.prototype.sharpen = function (sharpen) {
462
+ return this.withOptions({ sharpen: sharpen });
463
+ };
464
+ // Specify the desired rectangle of the image
465
+ ImageUrlBuilder.prototype.rect = function (left, top, width, height) {
466
+ return this.withOptions({ rect: { left: left, top: top, width: width, height: height } });
467
+ };
468
+ // Specify the image format of the image. 'jpg', 'pjpg', 'png', 'webp'
469
+ ImageUrlBuilder.prototype.format = function (format) {
470
+ return this.withOptions({ format: format });
471
+ };
472
+ ImageUrlBuilder.prototype.invert = function (invert) {
473
+ return this.withOptions({ invert: invert });
474
+ };
475
+ // Rotation in degrees 0, 90, 180, 270
476
+ ImageUrlBuilder.prototype.orientation = function (orientation) {
477
+ return this.withOptions({ orientation: orientation });
478
+ };
479
+ // Compression quality 0-100
480
+ ImageUrlBuilder.prototype.quality = function (quality) {
481
+ return this.withOptions({ quality: quality });
482
+ };
483
+ // Make it a download link. Parameter is default filename.
484
+ ImageUrlBuilder.prototype.forceDownload = function (download) {
485
+ return this.withOptions({ download: download });
486
+ };
487
+ // Flip image horizontally
488
+ ImageUrlBuilder.prototype.flipHorizontal = function () {
489
+ return this.withOptions({ flipHorizontal: true });
490
+ };
491
+ // Flip image vertically
492
+ ImageUrlBuilder.prototype.flipVertical = function () {
493
+ return this.withOptions({ flipVertical: true });
494
+ };
495
+ // Ignore crop/hotspot from image record, even when present
496
+ ImageUrlBuilder.prototype.ignoreImageParams = function () {
497
+ return this.withOptions({ ignoreImageParams: true });
498
+ };
499
+ ImageUrlBuilder.prototype.fit = function (value) {
500
+ if (validFits.indexOf(value) === -1) {
501
+ throw new Error("Invalid fit mode \"" + value + "\"");
502
+ }
503
+ return this.withOptions({ fit: value });
504
+ };
505
+ ImageUrlBuilder.prototype.crop = function (value) {
506
+ if (validCrops.indexOf(value) === -1) {
507
+ throw new Error("Invalid crop mode \"" + value + "\"");
508
+ }
509
+ return this.withOptions({ crop: value });
510
+ };
511
+ // Saturation
512
+ ImageUrlBuilder.prototype.saturation = function (saturation) {
513
+ return this.withOptions({ saturation: saturation });
514
+ };
515
+ ImageUrlBuilder.prototype.auto = function (value) {
516
+ if (validAutoModes.indexOf(value) === -1) {
517
+ throw new Error("Invalid auto mode \"" + value + "\"");
518
+ }
519
+ return this.withOptions({ auto: value });
520
+ };
521
+ // Specify the number of pixels to pad the image
522
+ ImageUrlBuilder.prototype.pad = function (pad) {
523
+ return this.withOptions({ pad: pad });
524
+ };
525
+ // Gets the url based on the submitted parameters
526
+ ImageUrlBuilder.prototype.url = function () {
527
+ return urlForImage_1$1.default(this.options);
528
+ };
529
+ // Alias for url()
530
+ ImageUrlBuilder.prototype.toString = function () {
531
+ return this.url();
532
+ };
533
+ return ImageUrlBuilder;
534
+ }());
535
+ exports.ImageUrlBuilder = ImageUrlBuilder;
536
+
537
+ });
538
+
539
+ unwrapExports(builder);
540
+ builder.ImageUrlBuilder;
541
+
542
+ var node = createCommonjsModule(function (module) {
543
+ var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
544
+ return (mod && mod.__esModule) ? mod : { "default": mod };
545
+ };
546
+ var builder_1 = __importDefault(builder);
547
+ module.exports = builder_1.default;
548
+
549
+ });
550
+
551
+ var imageUrlBuilder = unwrapExports(node);
552
+
553
+ export { imageUrlBuilder as i, node as n };