@mjhls/mjh-framework 1.0.720-navigation-scroll-fix-v3 → 1.0.720
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.
- package/dist/cjs/AD.js +10 -9
- package/dist/cjs/AD300x250.js +25 -24
- package/dist/cjs/AD300x250x600.js +25 -24
- package/dist/cjs/AD728x90.js +28 -27
- package/dist/cjs/ADFloatingFooter.js +27 -26
- package/dist/cjs/ADFooter.js +15 -14
- package/dist/cjs/ADGutter.js +27 -26
- package/dist/cjs/{ADInfeed-5a561d7c.js → ADInfeed-2c7a6dd8.js} +13 -11
- package/dist/cjs/ADSkyscraper.js +27 -26
- package/dist/cjs/ADSponsoredResources.js +27 -26
- package/dist/cjs/ADWebcast.js +27 -26
- package/dist/cjs/ADWelcome.js +31 -30
- package/dist/cjs/{ADlgInfeed-c50f81d4.js → ADlgInfeed-fb101797.js} +9 -8
- package/dist/cjs/AccordionPanel.js +31 -29
- package/dist/cjs/AdSlot.js +32 -31
- package/dist/cjs/AdSlotsProvider.js +17 -16
- package/dist/cjs/AlphabeticList.js +25 -24
- package/dist/cjs/ArticleCarousel.js +24 -23
- package/dist/cjs/ArticleProgramLandingPage.js +55 -54
- package/dist/cjs/ArticleSeriesLandingPage.js +39 -38
- package/dist/cjs/ArticleSeriesListing.js +60 -59
- package/dist/cjs/Auth.js +816 -530
- package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-5fa89df5.js} +14 -13
- package/dist/cjs/Beam.js +9 -9
- package/dist/cjs/{BlockContent-80b15fac.js → BlockContent-eca358e4.js} +25 -24
- package/dist/cjs/Breadcrumbs.js +29 -27
- package/dist/cjs/CMEDeck.js +83 -83
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +35 -32
- package/dist/cjs/Column3.js +58 -55
- package/dist/cjs/ConferenceArticleCard.js +23 -22
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +98 -94
- package/dist/cjs/DeckQueue.js +90 -86
- package/dist/cjs/{Dfp-ce7ac168.js → Dfp-a863cf48.js} +31 -30
- package/dist/cjs/EventsDeck.js +138 -131
- package/dist/cjs/ExternalResources.js +77 -76
- package/dist/cjs/Feature.js +27 -25
- package/dist/cjs/ForbesHero.js +41 -40
- package/dist/cjs/GridContent.js +181 -177
- package/dist/cjs/GridHero.js +43 -42
- package/dist/cjs/GroupDeck.js +59 -58
- package/dist/cjs/HamMagazine.js +142 -139
- package/dist/cjs/Header.js +13 -11
- package/dist/cjs/Hero.js +13 -12
- package/dist/cjs/HighlightenVideo.js +18 -17
- package/dist/cjs/HorizontalArticleListing.js +69 -68
- package/dist/cjs/HorizontalHero.js +26 -25
- package/dist/cjs/IssueContentDeck.js +77 -72
- package/dist/cjs/IssueDeck.js +75 -70
- package/dist/cjs/IssueLanding.js +41 -40
- package/dist/cjs/LeftNav.js +38 -36
- package/dist/cjs/MasterDeck.js +72 -71
- package/dist/cjs/NavDvm.js +80 -75
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +143 -138
- package/dist/cjs/NavNative.js +123 -115
- package/dist/cjs/NavNormal.js +53 -48
- package/dist/cjs/OncliveHero.js +20 -20
- package/dist/cjs/OncliveLargeHero.js +67 -66
- package/dist/cjs/PageFilter.js +15 -14
- package/dist/cjs/PartnerDetailListing.js +106 -105
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +21 -19
- package/dist/cjs/PublicationDeck.js +66 -61
- package/dist/cjs/PublicationLanding.js +78 -74
- package/dist/cjs/QueueDeckExpanded.js +292 -292
- package/dist/cjs/RecentNews.js +24 -23
- package/dist/cjs/RelatedContent.js +25 -24
- package/dist/cjs/RelatedTopicsDropdown.js +22 -19
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +22 -18
- package/dist/cjs/Segment.js +7 -7
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +36 -35
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-8dd468fd.js → SocialSearchComponent-45c54bed.js} +40 -36
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +62 -57
- package/dist/cjs/TaxonomyDescription.js +52 -51
- package/dist/cjs/TemplateNormal.js +73 -72
- package/dist/cjs/ThumbnailCard.js +22 -20
- package/dist/cjs/Ustream.js +27 -26
- package/dist/cjs/VerticalHero.js +18 -17
- package/dist/cjs/VideoProgramLandingPage.js +74 -70
- package/dist/cjs/VideoSeriesCard.js +33 -32
- package/dist/cjs/VideoSeriesFilter.js +19 -19
- package/dist/cjs/VideoSeriesLandingPage.js +48 -47
- package/dist/cjs/VideoSeriesListing.js +75 -74
- package/dist/cjs/View.js +228 -225
- package/dist/cjs/YahooHero.js +40 -39
- package/dist/cjs/YoutubeGroup.js +63 -62
- package/dist/cjs/{_is-array-754e012d.js → _is-array-63ae4740.js} +6 -6
- package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-2613ffa1.js} +2 -2
- package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-c5bd707d.js} +1 -1
- package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-bec5fcf2.js} +1 -1
- package/dist/cjs/{_set-species-f92c67c5.js → _set-species-a8cfdb84.js} +4 -4
- package/dist/cjs/{_to-object-329a650b.js → _to-object-821a2927.js} +4 -4
- package/dist/cjs/{asyncToGenerator-533d476a.js → asyncToGenerator-2edcb6ad.js} +8 -8
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-a195642e.js} +11 -9
- package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-b4615fd3.js} +2 -2
- package/dist/cjs/{define-property-f4d12f4e.js → define-property-aff11f8a.js} +1 -1
- package/dist/cjs/{defineProperty-55548b25.js → defineProperty-d6fbb280.js} +1 -1
- package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
- package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-20d42c53.js} +2 -2
- package/dist/cjs/{extends-60837c34.js → extends-1e24fc8d.js} +1 -1
- package/dist/cjs/getRelatedArticle.js +424 -13
- package/dist/cjs/getSerializers.js +42 -42
- package/dist/cjs/{getTargeting-fee8c429.js → getTargeting-497b581d.js} +2 -2
- package/dist/cjs/getTargeting.js +7 -7
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-a2ecf598.js → index-3ce0ae25.js} +487 -476
- package/dist/cjs/{index-3294d3bc.js → index-4d74ffd6.js} +40 -41
- package/dist/cjs/{index-8bf6c863.js → index-5ad2b070.js} +30 -48
- package/dist/cjs/{index-da796b8c.js → index-80f57cff.js} +17 -15
- package/dist/cjs/index-bd6c9f56.js +211 -0
- package/dist/cjs/{index-39beccb3.js → index-d48b231c.js} +29 -24
- package/dist/cjs/{index.es-9110add6.js → index.es-f3e47207.js} +31 -12
- package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
- package/dist/cjs/{index.esm-66ffa47a.js → index.esm-3b9b8952.js} +4 -9
- package/dist/cjs/{index.esm-4d410430.js → index.esm-8123cf40.js} +20 -20
- package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
- package/dist/cjs/index.js +133 -133
- package/dist/cjs/{inherits-513d81cd.js → inherits-2eb23889.js} +8 -8
- package/dist/cjs/{keys-a586b7a0.js → keys-95c064c9.js} +2 -2
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-4ef21f0f.js} +1 -1
- package/dist/cjs/{main-02daeefe.js → main-dc082238.js} +116 -80
- package/dist/cjs/{moment-575fe24c.js → moment-aca40de1.js} +11 -9
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-af932527.js} +28 -27
- package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-db24842a.js} +4 -4
- package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
- package/dist/cjs/{stringify-7c5aff47.js → stringify-01cf47f7.js} +1 -1
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-cf0865fc.js} +4 -4
- package/dist/cjs/{typeof-725500bc.js → typeof-97065d40.js} +7 -7
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{util-f2c1b65b.js → util-6f784d85.js} +1 -1
- package/dist/cjs/{visibility-sensor-0c45a583.js → visibility-sensor-8b54af99.js} +7 -5
- package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-4480325a.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +21 -21
- package/dist/esm/AD300x250x600.js +21 -21
- package/dist/esm/AD728x90.js +24 -24
- package/dist/esm/ADFloatingFooter.js +23 -23
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +23 -23
- package/dist/esm/{ADInfeed-bb62ee44.js → ADInfeed-3ee501b9.js} +7 -7
- package/dist/esm/ADSkyscraper.js +23 -23
- package/dist/esm/ADSponsoredResources.js +23 -23
- package/dist/esm/ADWebcast.js +23 -23
- package/dist/esm/ADWelcome.js +27 -27
- package/dist/esm/{ADlgInfeed-ef0a892e.js → ADlgInfeed-0bf06b17.js} +6 -6
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +23 -23
- package/dist/esm/AdSlotsProvider.js +13 -13
- package/dist/esm/AlphabeticList.js +21 -21
- package/dist/esm/ArticleCarousel.js +20 -20
- package/dist/esm/ArticleProgramLandingPage.js +51 -51
- package/dist/esm/ArticleSeriesLandingPage.js +35 -35
- package/dist/esm/ArticleSeriesListing.js +54 -54
- package/dist/esm/Auth.js +797 -515
- package/dist/esm/{AuthorComponent-34b16174.js → AuthorComponent-c7ff069f.js} +11 -11
- package/dist/esm/Beam.js +9 -9
- package/dist/esm/{BlockContent-c409aca5.js → BlockContent-d8cd739c.js} +4 -4
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/CMEDeck.js +79 -79
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +26 -26
- package/dist/esm/Column3.js +48 -48
- package/dist/esm/ConferenceArticleCard.js +18 -18
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +76 -76
- package/dist/esm/DeckQueue.js +64 -64
- package/dist/esm/{Dfp-e9a07597.js → Dfp-5d779279.js} +20 -20
- package/dist/esm/EventsDeck.js +84 -84
- package/dist/esm/ExternalResources.js +70 -70
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +34 -34
- package/dist/esm/GridContent.js +139 -139
- package/dist/esm/GridHero.js +36 -36
- package/dist/esm/GroupDeck.js +46 -46
- package/dist/esm/HamMagazine.js +111 -113
- package/dist/esm/Header.js +7 -7
- package/dist/esm/Hero.js +9 -9
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +65 -65
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +49 -49
- package/dist/esm/IssueDeck.js +46 -46
- package/dist/esm/IssueLanding.js +37 -37
- package/dist/esm/LeftNav.js +32 -32
- package/dist/esm/MasterDeck.js +65 -65
- package/dist/esm/NavDvm.js +57 -57
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +114 -114
- package/dist/esm/NavNative.js +91 -91
- package/dist/esm/NavNormal.js +36 -36
- package/dist/esm/OncliveHero.js +16 -17
- package/dist/esm/OncliveLargeHero.js +59 -59
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +101 -101
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PublicationDeck.js +38 -38
- package/dist/esm/PublicationLanding.js +50 -50
- package/dist/esm/QueueDeckExpanded.js +272 -272
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +19 -19
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +12 -12
- package/dist/esm/Segment.js +7 -7
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +31 -31
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-a2ae84d1.js → SocialSearchComponent-c3216d1a.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +41 -41
- package/dist/esm/TaxonomyDescription.js +46 -46
- package/dist/esm/TemplateNormal.js +66 -66
- package/dist/esm/ThumbnailCard.js +13 -13
- package/dist/esm/Ustream.js +23 -23
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +60 -60
- package/dist/esm/VideoSeriesCard.js +24 -24
- package/dist/esm/VideoSeriesFilter.js +16 -16
- package/dist/esm/VideoSeriesLandingPage.js +39 -39
- package/dist/esm/VideoSeriesListing.js +68 -68
- package/dist/esm/View.js +215 -216
- package/dist/esm/YahooHero.js +34 -34
- package/dist/esm/YoutubeGroup.js +46 -46
- package/dist/esm/{_is-array-58e95429.js → _is-array-674f71ec.js} +6 -6
- package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-48516cd3.js} +2 -2
- package/dist/esm/{_object-sap-964b6feb.js → _object-sap-fd3054d0.js} +1 -1
- package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-8f409e54.js} +1 -1
- package/dist/esm/{_set-species-3f8319f5.js → _set-species-494ed292.js} +4 -4
- package/dist/esm/{_to-object-a4107da3.js → _to-object-97770c52.js} +5 -5
- package/dist/esm/{asyncToGenerator-502f13b4.js → asyncToGenerator-2bd4099a.js} +8 -8
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-b43c695a.js} +7 -6
- package/dist/esm/{core.get-iterator-method-e1de7503.js → core.get-iterator-method-d1d5ed02.js} +2 -2
- package/dist/esm/{define-property-8af5f002.js → define-property-ec6d528d.js} +1 -1
- package/dist/esm/{defineProperty-94fd8bfc.js → defineProperty-ea516b15.js} +1 -1
- package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
- package/dist/esm/{es6.string.iterator-c990c18c.js → es6.string.iterator-aa6068a3.js} +3 -3
- package/dist/esm/{extends-eb69e8ac.js → extends-31d65aba.js} +1 -1
- package/dist/esm/getRelatedArticle.js +424 -13
- package/dist/esm/getSerializers.js +42 -42
- package/dist/esm/{getTargeting-7211f12c.js → getTargeting-2d402d66.js} +2 -2
- package/dist/esm/getTargeting.js +7 -7
- package/dist/esm/{index-3849e3fe.js → index-3f5c03b2.js} +29 -24
- package/dist/esm/{index-a9e53f80.js → index-669ff425.js} +24 -43
- package/dist/esm/{index-5f9f807a.js → index-752d1dae.js} +10 -10
- package/dist/esm/{index-ef6d5dcf.js → index-ccb770c7.js} +40 -41
- package/dist/esm/index-db3bb315.js +207 -0
- package/dist/esm/{index-2749e7d8.js → index-f98ea5e2.js} +421 -417
- package/dist/esm/{index.es-29c1cef5.js → index.es-c6222053.js} +28 -10
- package/dist/esm/{index.esm-29e48d38.js → index.esm-3fdda599.js} +6 -15
- package/dist/esm/{index.esm-fd746768.js → index.esm-8016b507.js} +17 -18
- package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
- package/dist/esm/{index.esm-b08f4b04.js → index.esm-d6f88d94.js} +4 -9
- package/dist/esm/index.js +111 -111
- package/dist/esm/{inherits-fb9b6e8f.js → inherits-5906fbea.js} +5 -5
- package/dist/esm/{keys-8eda7a5c.js → keys-a0b0c7a4.js} +2 -2
- package/dist/esm/{lodash-ec8c6b48.js → lodash-ad27652f.js} +1 -1
- package/dist/esm/{main-e4a934b2.js → main-1450d277.js} +113 -78
- package/dist/esm/{moment-e2f9b20c.js → moment-bc12cb97.js} +11 -9
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-91f9716f.js} +20 -20
- package/dist/esm/{slicedToArray-641f241f.js → slicedToArray-cdeaee08.js} +4 -4
- package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
- package/dist/esm/{stringify-4330ccdc.js → stringify-d4839bab.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-43aa614d.js → toConsumableArray-fa2dcda7.js} +4 -4
- package/dist/esm/{typeof-6435ba1c.js → typeof-e9cea9e8.js} +7 -7
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
- package/dist/esm/{visibility-sensor-0baa4eea.js → visibility-sensor-082c757b.js} +2 -2
- package/dist/esm/{web.dom.iterable-4439f05a.js → web.dom.iterable-035980f3.js} +3 -3
- package/package.json +3 -3
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
|
@@ -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
|
-
|
|
333
|
-
|
|
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
|
|
360
|
+
function isSanityClientLike(client) {
|
|
360
361
|
return client ? typeof client.clientConfig === 'object' : false;
|
|
361
362
|
}
|
|
362
363
|
function rewriteSpecName(key) {
|
|
@@ -373,14 +374,14 @@ function rewriteSpecName(key) {
|
|
|
373
374
|
function urlBuilder(options) {
|
|
374
375
|
// Did we get a SanityClient?
|
|
375
376
|
var client = options;
|
|
376
|
-
if (
|
|
377
|
+
if (isSanityClientLike(client)) {
|
|
377
378
|
// Inherit config from client
|
|
378
379
|
var _a = client.clientConfig, apiUrl = _a.apiHost, projectId = _a.projectId, dataset = _a.dataset;
|
|
379
380
|
var apiHost = apiUrl || 'https://api.sanity.io';
|
|
380
381
|
return new ImageUrlBuilder(null, {
|
|
381
382
|
baseUrl: apiHost.replace(/^https:\/\/api\./, 'https://cdn.'),
|
|
382
383
|
projectId: projectId,
|
|
383
|
-
dataset: dataset
|
|
384
|
+
dataset: dataset,
|
|
384
385
|
});
|
|
385
386
|
}
|
|
386
387
|
// Or just accept the options as given
|
|
@@ -393,7 +394,7 @@ var ImageUrlBuilder = /** @class */ (function () {
|
|
|
393
394
|
? __assign(__assign({}, (parent.options || {})), (options || {})) : __assign({}, (options || {})); // Copy options
|
|
394
395
|
}
|
|
395
396
|
ImageUrlBuilder.prototype.withOptions = function (options) {
|
|
396
|
-
var baseUrl = options.baseUrl ||
|
|
397
|
+
var baseUrl = options.baseUrl || this.options.baseUrl;
|
|
397
398
|
var newOptions = { baseUrl: baseUrl };
|
|
398
399
|
for (var key in options) {
|
|
399
400
|
if (options.hasOwnProperty(key)) {
|
|
@@ -487,7 +488,7 @@ var ImageUrlBuilder = /** @class */ (function () {
|
|
|
487
488
|
ImageUrlBuilder.prototype.flipHorizontal = function () {
|
|
488
489
|
return this.withOptions({ flipHorizontal: true });
|
|
489
490
|
};
|
|
490
|
-
// Flip image
|
|
491
|
+
// Flip image vertically
|
|
491
492
|
ImageUrlBuilder.prototype.flipVertical = function () {
|
|
492
493
|
return this.withOptions({ flipVertical: true });
|
|
493
494
|
};
|
|
@@ -517,11 +518,15 @@ var ImageUrlBuilder = /** @class */ (function () {
|
|
|
517
518
|
}
|
|
518
519
|
return this.withOptions({ auto: value });
|
|
519
520
|
};
|
|
521
|
+
// Specify the number of pixels to pad the image
|
|
522
|
+
ImageUrlBuilder.prototype.pad = function (pad) {
|
|
523
|
+
return this.withOptions({ pad: pad });
|
|
524
|
+
};
|
|
520
525
|
// Gets the url based on the submitted parameters
|
|
521
526
|
ImageUrlBuilder.prototype.url = function () {
|
|
522
527
|
return urlForImage_1$1.default(this.options);
|
|
523
528
|
};
|
|
524
|
-
//
|
|
529
|
+
// Alias for url()
|
|
525
530
|
ImageUrlBuilder.prototype.toString = function () {
|
|
526
531
|
return this.url();
|
|
527
532
|
};
|
|
@@ -532,7 +537,7 @@ exports.ImageUrlBuilder = ImageUrlBuilder;
|
|
|
532
537
|
});
|
|
533
538
|
|
|
534
539
|
unwrapExports(builder);
|
|
535
|
-
|
|
540
|
+
builder.ImageUrlBuilder;
|
|
536
541
|
|
|
537
542
|
var node = createCommonjsModule(function (module) {
|
|
538
543
|
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
|
|
5
5
|
var domain;
|
|
@@ -502,7 +502,7 @@ function loadGPTScript() {
|
|
|
502
502
|
});
|
|
503
503
|
|
|
504
504
|
unwrapExports(utils);
|
|
505
|
-
|
|
505
|
+
utils.loadGPTScript;
|
|
506
506
|
|
|
507
507
|
var manager = createCommonjsModule(function (module, exports) {
|
|
508
508
|
|
|
@@ -530,7 +530,6 @@ var disableInitialLoadEnabled = false;
|
|
|
530
530
|
var lazyLoadEnabled = false;
|
|
531
531
|
var lazyLoadConfig = null;
|
|
532
532
|
var servePersonalizedAds = true;
|
|
533
|
-
var serveCookies = true;
|
|
534
533
|
var registeredSlots = {};
|
|
535
534
|
var managerAlreadyInitialized = false;
|
|
536
535
|
var globalTargetingArguments = {};
|
|
@@ -572,15 +571,9 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
572
571
|
configurePersonalizedAds: function configurePersonalizedAds(value) {
|
|
573
572
|
servePersonalizedAds = value;
|
|
574
573
|
},
|
|
575
|
-
configureCookieOption: function configureCookieOption(value) {
|
|
576
|
-
serveCookies = value;
|
|
577
|
-
},
|
|
578
574
|
personalizedAdsEnabled: function personalizedAdsEnabled() {
|
|
579
575
|
return servePersonalizedAds;
|
|
580
576
|
},
|
|
581
|
-
cookiesEnabled: function cookiesEnabled() {
|
|
582
|
-
return serveCookies;
|
|
583
|
-
},
|
|
584
577
|
setAdSenseAttribute: function setAdSenseAttribute(key, value) {
|
|
585
578
|
this.setAdSenseAttributes(_defineProperty({}, key, value));
|
|
586
579
|
},
|
|
@@ -671,7 +664,6 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
671
664
|
});
|
|
672
665
|
});
|
|
673
666
|
pubadsService.setRequestNonPersonalizedAds(_this.personalizedAdsEnabled() ? 0 : 1);
|
|
674
|
-
pubadsService.setCookieOptions(_this.cookiesEnabled() ? 0 : 1);
|
|
675
667
|
});
|
|
676
668
|
});
|
|
677
669
|
}
|
|
@@ -783,9 +775,13 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
783
775
|
|
|
784
776
|
googletag.cmd.push(function () {
|
|
785
777
|
googletag.enableServices();
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
778
|
+
|
|
779
|
+
if (!_this3.disableInitialLoadIsEnabled()) {
|
|
780
|
+
slotsToInitialize.forEach(function (theSlotId) {
|
|
781
|
+
googletag.display(theSlotId);
|
|
782
|
+
});
|
|
783
|
+
}
|
|
784
|
+
|
|
789
785
|
resolve();
|
|
790
786
|
});
|
|
791
787
|
});
|
|
@@ -808,7 +804,6 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
808
804
|
googletag.cmd.push(function () {
|
|
809
805
|
var pubadsService = googletag.pubads();
|
|
810
806
|
pubadsService.setRequestNonPersonalizedAds(_this5.personalizedAdsEnabled() ? 0 : 1);
|
|
811
|
-
pubadsService.setCookieOptions(_this5.cookiesEnabled() ? 0 : 1);
|
|
812
807
|
|
|
813
808
|
var targetingArguments = _this5.getTargetingArguments(); // set global targetting arguments
|
|
814
809
|
|
|
@@ -875,25 +870,17 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
875
870
|
}, slots);
|
|
876
871
|
},
|
|
877
872
|
refresh: function refresh() {
|
|
878
|
-
var _this6 = this;
|
|
879
|
-
|
|
880
|
-
for (var _len4 = arguments.length, slots = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
881
|
-
slots[_key4] = arguments[_key4];
|
|
882
|
-
}
|
|
883
|
-
|
|
884
873
|
if (loadPromise === null) {
|
|
885
874
|
this.load();
|
|
886
875
|
} else {
|
|
887
|
-
|
|
888
|
-
_this6.gptRefreshAds(Object.keys(_this6.getRefreshableSlots.apply(_this6, slots)));
|
|
889
|
-
});
|
|
876
|
+
this.gptRefreshAds(Object.keys(this.getRefreshableSlots.apply(this, arguments)));
|
|
890
877
|
}
|
|
891
878
|
},
|
|
892
879
|
gptRefreshAds: function gptRefreshAds(slots) {
|
|
893
|
-
var
|
|
880
|
+
var _this6 = this;
|
|
894
881
|
|
|
895
882
|
return this.getGoogletag().then(function (googletag) {
|
|
896
|
-
|
|
883
|
+
_this6.configureOptions(googletag);
|
|
897
884
|
|
|
898
885
|
googletag.cmd.push(function () {
|
|
899
886
|
var pubadsService = googletag.pubads();
|
|
@@ -904,17 +891,17 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
904
891
|
});
|
|
905
892
|
},
|
|
906
893
|
reload: function reload() {
|
|
907
|
-
var
|
|
894
|
+
var _this7 = this;
|
|
908
895
|
|
|
909
896
|
return this.destroyGPTSlots.apply(this, arguments).then(function () {
|
|
910
|
-
return
|
|
897
|
+
return _this7.load();
|
|
911
898
|
});
|
|
912
899
|
},
|
|
913
900
|
destroyGPTSlots: function destroyGPTSlots() {
|
|
914
|
-
var
|
|
901
|
+
var _this8 = this;
|
|
915
902
|
|
|
916
|
-
for (var
|
|
917
|
-
slotsToDestroy[
|
|
903
|
+
for (var _len4 = arguments.length, slotsToDestroy = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
904
|
+
slotsToDestroy[_key4] = arguments[_key4];
|
|
918
905
|
}
|
|
919
906
|
|
|
920
907
|
if (slotsToDestroy.length === 0) {
|
|
@@ -931,7 +918,7 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
931
918
|
slots.push(slot);
|
|
932
919
|
}
|
|
933
920
|
|
|
934
|
-
|
|
921
|
+
_this8.getGoogletag().then(function (googletag) {
|
|
935
922
|
googletag.cmd.push(function () {
|
|
936
923
|
if (managerAlreadyInitialized === true) {
|
|
937
924
|
if (slotsToDestroy.length > 0) {
|
|
@@ -954,7 +941,7 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
954
941
|
});
|
|
955
942
|
},
|
|
956
943
|
registerSlot: function registerSlot(_ref) {
|
|
957
|
-
var
|
|
944
|
+
var _this9 = this;
|
|
958
945
|
|
|
959
946
|
var slotId = _ref.slotId,
|
|
960
947
|
dfpNetworkId = _ref.dfpNetworkId,
|
|
@@ -993,7 +980,7 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
993
980
|
gptSlot = slot.gptSlot;
|
|
994
981
|
|
|
995
982
|
if (loading === false && !gptSlot) {
|
|
996
|
-
|
|
983
|
+
_this9.load(slotId);
|
|
997
984
|
}
|
|
998
985
|
}
|
|
999
986
|
});
|
|
@@ -1040,7 +1027,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1040
1027
|
});
|
|
1041
1028
|
exports.default = exports.Context = void 0;
|
|
1042
1029
|
|
|
1043
|
-
var _react = _interopRequireDefault(
|
|
1030
|
+
var _react = _interopRequireDefault(React);
|
|
1044
1031
|
|
|
1045
1032
|
var _propTypes = _interopRequireDefault(PropTypes);
|
|
1046
1033
|
|
|
@@ -1183,8 +1170,6 @@ function (_React$Component) {
|
|
|
1183
1170
|
value: function applyConfigs() {
|
|
1184
1171
|
_manager.default.configurePersonalizedAds(this.props.personalizedAds);
|
|
1185
1172
|
|
|
1186
|
-
_manager.default.configureCookieOption(this.props.cookieOption);
|
|
1187
|
-
|
|
1188
1173
|
_manager.default.configureSingleRequest(this.props.singleRequest);
|
|
1189
1174
|
|
|
1190
1175
|
_manager.default.configureDisableInitialLoad(this.props.disableInitialLoad);
|
|
@@ -1281,7 +1266,6 @@ _defineProperty(DFPSlotsProvider, "propTypes", {
|
|
|
1281
1266
|
autoReload: _propTypes.default.shape({
|
|
1282
1267
|
dfpNetworkId: _propTypes.default.bool,
|
|
1283
1268
|
personalizedAds: _propTypes.default.bool,
|
|
1284
|
-
cookieOption: _propTypes.default.bool,
|
|
1285
1269
|
singleRequest: _propTypes.default.bool,
|
|
1286
1270
|
disableInitialLoad: _propTypes.default.bool,
|
|
1287
1271
|
adUnit: _propTypes.default.bool,
|
|
@@ -1293,7 +1277,6 @@ _defineProperty(DFPSlotsProvider, "propTypes", {
|
|
|
1293
1277
|
}),
|
|
1294
1278
|
dfpNetworkId: _propTypes.default.string.isRequired,
|
|
1295
1279
|
personalizedAds: _propTypes.default.bool,
|
|
1296
|
-
cookieOption: _propTypes.default.bool,
|
|
1297
1280
|
singleRequest: _propTypes.default.bool,
|
|
1298
1281
|
disableInitialLoad: _propTypes.default.bool,
|
|
1299
1282
|
adUnit: _propTypes.default.string,
|
|
@@ -1314,7 +1297,6 @@ _defineProperty(DFPSlotsProvider, "defaultProps", {
|
|
|
1314
1297
|
autoReload: {
|
|
1315
1298
|
dfpNetworkId: false,
|
|
1316
1299
|
personalizedAds: false,
|
|
1317
|
-
cookieOption: false,
|
|
1318
1300
|
singleRequest: false,
|
|
1319
1301
|
disableInitialLoad: false,
|
|
1320
1302
|
adUnit: false,
|
|
@@ -1325,7 +1307,6 @@ _defineProperty(DFPSlotsProvider, "defaultProps", {
|
|
|
1325
1307
|
lazyLoad: false
|
|
1326
1308
|
},
|
|
1327
1309
|
personalizedAds: true,
|
|
1328
|
-
cookieOption: true,
|
|
1329
1310
|
singleRequest: true,
|
|
1330
1311
|
disableInitialLoad: false,
|
|
1331
1312
|
collapseEmptyDivs: null,
|
|
@@ -1345,7 +1326,7 @@ if (Context === null) {
|
|
|
1345
1326
|
});
|
|
1346
1327
|
|
|
1347
1328
|
unwrapExports(dfpslotsprovider);
|
|
1348
|
-
|
|
1329
|
+
dfpslotsprovider.Context;
|
|
1349
1330
|
|
|
1350
1331
|
var adslot = createCommonjsModule(function (module, exports) {
|
|
1351
1332
|
|
|
@@ -1354,7 +1335,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1354
1335
|
});
|
|
1355
1336
|
exports.default = exports.AdSlot = void 0;
|
|
1356
1337
|
|
|
1357
|
-
var _react = _interopRequireDefault(
|
|
1338
|
+
var _react = _interopRequireDefault(React);
|
|
1358
1339
|
|
|
1359
1340
|
var _propTypes = _interopRequireDefault(PropTypes);
|
|
1360
1341
|
|
|
@@ -1641,7 +1622,7 @@ exports.default = _default;
|
|
|
1641
1622
|
});
|
|
1642
1623
|
|
|
1643
1624
|
unwrapExports(adslot);
|
|
1644
|
-
|
|
1625
|
+
adslot.AdSlot;
|
|
1645
1626
|
|
|
1646
1627
|
var lib = createCommonjsModule(function (module, exports) {
|
|
1647
1628
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
2
|
+
import React from 'react';
|
|
4
3
|
import reactDom from 'react-dom';
|
|
4
|
+
import PropTypes from 'prop-types';
|
|
5
5
|
|
|
6
6
|
var event = createCommonjsModule(function (module, exports) {
|
|
7
7
|
|
|
@@ -32,8 +32,8 @@ function off(el, eventName, callback, opts) {
|
|
|
32
32
|
});
|
|
33
33
|
|
|
34
34
|
unwrapExports(event);
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
event.on;
|
|
36
|
+
event.off;
|
|
37
37
|
|
|
38
38
|
var scrollParent = createCommonjsModule(function (module, exports) {
|
|
39
39
|
|
|
@@ -179,7 +179,7 @@ var _createClass = function () { function defineProperties(target, props) { for
|
|
|
179
179
|
|
|
180
180
|
|
|
181
181
|
|
|
182
|
-
var _react2 = _interopRequireDefault(
|
|
182
|
+
var _react2 = _interopRequireDefault(React);
|
|
183
183
|
|
|
184
184
|
|
|
185
185
|
|
|
@@ -530,7 +530,7 @@ var LazyLoad = function (_Component) {
|
|
|
530
530
|
}]);
|
|
531
531
|
|
|
532
532
|
return LazyLoad;
|
|
533
|
-
}(
|
|
533
|
+
}(React.Component);
|
|
534
534
|
|
|
535
535
|
LazyLoad.propTypes = {
|
|
536
536
|
once: _propTypes2.default.bool,
|
|
@@ -587,7 +587,7 @@ var decorator = function decorator() {
|
|
|
587
587
|
}]);
|
|
588
588
|
|
|
589
589
|
return LazyLoadDecorated;
|
|
590
|
-
}(
|
|
590
|
+
}(React.Component);
|
|
591
591
|
};
|
|
592
592
|
};
|
|
593
593
|
|
|
@@ -598,8 +598,8 @@ exports.forceVisible = forceVisible;
|
|
|
598
598
|
});
|
|
599
599
|
|
|
600
600
|
var LazyLoad = unwrapExports(lib);
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
601
|
+
lib.forceVisible;
|
|
602
|
+
lib.forceCheck;
|
|
603
|
+
lib.lazyload;
|
|
604
604
|
|
|
605
605
|
export { LazyLoad as L };
|