@mjhls/mjh-framework 1.0.732 → 1.0.733-beta-0.2
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/README.md +1 -1
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +30 -29
- package/dist/cjs/AD300x250x600.js +30 -29
- package/dist/cjs/AD728x90.js +33 -32
- package/dist/cjs/ADFloatingFooter.js +32 -31
- package/dist/cjs/ADFooter.js +14 -15
- package/dist/cjs/ADGutter.js +32 -31
- package/dist/cjs/{ADInfeed-5fe7fd9d.js → ADInfeed-d1d7e784.js} +13 -15
- package/dist/cjs/ADSkyscraper.js +32 -31
- package/dist/cjs/ADSponsoredResources.js +32 -31
- package/dist/cjs/ADWebcast.js +32 -31
- package/dist/cjs/ADWelcome.js +36 -35
- package/dist/cjs/{ADlgInfeed-a62d2f9b.js → ADlgInfeed-b6116a72.js} +10 -11
- package/dist/cjs/AccordionPanel.js +29 -31
- package/dist/cjs/AdSlot.js +31 -32
- package/dist/cjs/AdSlotsProvider.js +16 -17
- package/dist/cjs/AlphabeticList.js +24 -25
- package/dist/cjs/ArticleCarousel.js +23 -24
- package/dist/cjs/ArticleProgramLandingPage.js +54 -55
- package/dist/cjs/ArticleSeriesLandingPage.js +38 -39
- package/dist/cjs/ArticleSeriesListing.js +59 -60
- package/dist/cjs/Auth.js +330 -816
- package/dist/cjs/{AuthorComponent-5fa89df5.js → AuthorComponent-bb831b74.js} +13 -14
- package/dist/cjs/Beam.js +9 -9
- package/dist/cjs/{BlockContent-eca358e4.js → BlockContent-80b15fac.js} +24 -25
- package/dist/cjs/Breadcrumbs.js +27 -29
- package/dist/cjs/CMEDeck.js +83 -83
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +32 -35
- package/dist/cjs/Column3.js +55 -58
- package/dist/cjs/ConferenceArticleCard.js +22 -23
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +94 -98
- package/dist/cjs/DeckQueue.js +86 -90
- package/dist/cjs/{Dfp-80146e98.js → Dfp-ce7ac168.js} +30 -31
- package/dist/cjs/EventsDeck.js +131 -138
- package/dist/cjs/ExternalResources.js +76 -77
- package/dist/cjs/Feature.js +25 -27
- package/dist/cjs/ForbesHero.js +40 -41
- package/dist/cjs/GridContent.js +183 -183
- package/dist/cjs/GridHero.js +42 -43
- package/dist/cjs/GroupDeck.js +58 -59
- package/dist/cjs/HamMagazine.js +130 -135
- package/dist/cjs/Header.js +11 -13
- package/dist/cjs/Hero.js +12 -13
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalArticleListing.js +68 -69
- package/dist/cjs/HorizontalHero.js +25 -26
- package/dist/cjs/IssueContentDeck.js +72 -77
- package/dist/cjs/IssueDeck.js +70 -75
- package/dist/cjs/IssueLanding.js +40 -41
- package/dist/cjs/LeftNav.js +36 -38
- package/dist/cjs/MasterDeck.js +77 -74
- package/dist/cjs/NavDvm.js +75 -80
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +138 -143
- package/dist/cjs/NavNative.js +115 -123
- package/dist/cjs/NavNormal.js +48 -53
- package/dist/cjs/OncliveHero.js +20 -20
- package/dist/cjs/OncliveLargeHero.js +66 -67
- package/dist/cjs/PageFilter.js +14 -15
- package/dist/cjs/PartnerDetailListing.js +105 -106
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +19 -21
- package/dist/cjs/PubSection.js +37 -38
- package/dist/cjs/PubToc.js +16 -17
- package/dist/cjs/PublicationDeck.js +61 -66
- package/dist/cjs/PublicationLanding.js +74 -78
- package/dist/cjs/QueueDeckExpanded.js +298 -294
- package/dist/cjs/RecentNews.js +23 -24
- package/dist/cjs/RelatedContent.js +24 -25
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +18 -22
- package/dist/cjs/Segment.js +7 -7
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +35 -36
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-45c54bed.js → SocialSearchComponent-8dd468fd.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +57 -62
- package/dist/cjs/TaxonomyDescription.js +51 -52
- package/dist/cjs/TemplateNormal.js +72 -73
- package/dist/cjs/ThumbnailCard.js +20 -22
- package/dist/cjs/Ustream.js +26 -27
- package/dist/cjs/VerticalHero.js +17 -18
- package/dist/cjs/VideoProgramLandingPage.js +70 -74
- package/dist/cjs/VideoSeriesCard.js +32 -33
- package/dist/cjs/VideoSeriesFilter.js +19 -19
- package/dist/cjs/VideoSeriesLandingPage.js +47 -48
- package/dist/cjs/VideoSeriesListing.js +74 -75
- package/dist/cjs/View.js +299 -250
- package/dist/cjs/YahooHero.js +39 -40
- package/dist/cjs/YoutubeGroup.js +62 -63
- package/dist/cjs/{_is-array-63ae4740.js → _is-array-754e012d.js} +6 -6
- package/dist/cjs/{_iter-detect-2613ffa1.js → _iter-detect-60b2f026.js} +2 -2
- package/dist/cjs/{_object-sap-c5bd707d.js → _object-sap-5e74ba08.js} +1 -1
- package/dist/cjs/{_object-to-array-bec5fcf2.js → _object-to-array-5762f850.js} +1 -1
- package/dist/cjs/{_set-species-a8cfdb84.js → _set-species-f92c67c5.js} +4 -4
- package/dist/cjs/{_to-object-821a2927.js → _to-object-329a650b.js} +4 -4
- package/dist/cjs/{asyncToGenerator-2edcb6ad.js → asyncToGenerator-533d476a.js} +8 -8
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
- package/dist/cjs/{core.get-iterator-method-b4615fd3.js → core.get-iterator-method-f62321d4.js} +2 -2
- package/dist/cjs/{define-property-aff11f8a.js → define-property-f4d12f4e.js} +1 -1
- package/dist/cjs/{defineProperty-d6fbb280.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
- package/dist/cjs/{es6.string.iterator-20d42c53.js → es6.string.iterator-cc0bbaa4.js} +2 -2
- package/dist/cjs/{extends-1e24fc8d.js → extends-60837c34.js} +1 -1
- package/dist/cjs/getQuery.js +1 -2
- package/dist/cjs/getRelatedArticle.js +19 -19
- package/dist/cjs/getSerializers.js +42 -42
- package/dist/cjs/{getTargeting-497b581d.js → getTargeting-0d9b6b99.js} +9 -5
- package/dist/cjs/getTargeting.js +7 -7
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-4d74ffd6.js → index-3294d3bc.js} +41 -40
- package/dist/cjs/{index-d48b231c.js → index-39beccb3.js} +24 -29
- package/dist/cjs/{index-5260126b.js → index-41222a33.js} +476 -487
- package/dist/cjs/{index-0e4427c8.js → index-8bf6c863.js} +11 -12
- package/dist/cjs/{index-80f57cff.js → index-da796b8c.js} +15 -17
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-8123cf40.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-3b9b8952.js → index.esm-66ffa47a.js} +9 -4
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +227 -133
- package/dist/cjs/{inherits-2eb23889.js → inherits-513d81cd.js} +8 -8
- package/dist/cjs/{keys-95c064c9.js → keys-a586b7a0.js} +2 -2
- package/dist/cjs/{lodash-4ef21f0f.js → lodash-7fd85bcf.js} +1 -1
- package/dist/cjs/{main-dc082238.js → main-02daeefe.js} +80 -116
- package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
- package/dist/cjs/{slicedToArray-db24842a.js → slicedToArray-8f385299.js} +4 -4
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/{stringify-01cf47f7.js → stringify-7c5aff47.js} +1 -1
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-cf0865fc.js → toConsumableArray-9a3476fe.js} +4 -4
- package/dist/cjs/{typeof-97065d40.js → typeof-725500bc.js} +7 -7
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
- package/dist/cjs/{visibility-sensor-8b54af99.js → visibility-sensor-0c45a583.js} +5 -7
- package/dist/cjs/{web.dom.iterable-4480325a.js → web.dom.iterable-a0e279c1.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +27 -25
- package/dist/esm/AD300x250x600.js +27 -25
- package/dist/esm/AD728x90.js +30 -28
- package/dist/esm/ADFloatingFooter.js +29 -27
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +29 -27
- package/dist/esm/{ADInfeed-3a9eef39.js → ADInfeed-0299bf7e.js} +9 -9
- package/dist/esm/ADSkyscraper.js +29 -27
- package/dist/esm/ADSponsoredResources.js +29 -27
- package/dist/esm/ADWebcast.js +29 -27
- package/dist/esm/ADWelcome.js +33 -31
- package/dist/esm/{ADlgInfeed-8d63ff91.js → ADlgInfeed-7b627388.js} +8 -8
- 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 +315 -797
- package/dist/esm/{AuthorComponent-c7ff069f.js → AuthorComponent-34b16174.js} +11 -11
- package/dist/esm/Beam.js +9 -9
- package/dist/esm/{BlockContent-d8cd739c.js → BlockContent-c409aca5.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-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +76 -76
- package/dist/esm/DeckQueue.js +64 -64
- package/dist/esm/{Dfp-8bfbd310.js → Dfp-e9a07597.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 +145 -141
- package/dist/esm/GridHero.js +36 -36
- package/dist/esm/GroupDeck.js +46 -46
- package/dist/esm/HamMagazine.js +104 -104
- 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 +71 -67
- package/dist/esm/NavDvm.js +57 -57
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.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 +17 -16
- 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/PubSection.js +34 -34
- package/dist/esm/PubToc.js +13 -13
- package/dist/esm/PublicationDeck.js +38 -38
- package/dist/esm/PublicationLanding.js +50 -50
- package/dist/esm/QueueDeckExpanded.js +278 -274
- 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-c3216d1a.js → SocialSearchComponent-a2ae84d1.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 +290 -237
- package/dist/esm/YahooHero.js +34 -34
- package/dist/esm/YoutubeGroup.js +46 -46
- package/dist/esm/{_is-array-674f71ec.js → _is-array-58e95429.js} +6 -6
- package/dist/esm/{_iter-detect-48516cd3.js → _iter-detect-5d49a330.js} +2 -2
- package/dist/esm/{_object-sap-fd3054d0.js → _object-sap-964b6feb.js} +1 -1
- package/dist/esm/{_object-to-array-8f409e54.js → _object-to-array-7e804fce.js} +1 -1
- package/dist/esm/{_set-species-494ed292.js → _set-species-3f8319f5.js} +4 -4
- package/dist/esm/{_to-object-97770c52.js → _to-object-a4107da3.js} +5 -5
- package/dist/esm/{asyncToGenerator-2bd4099a.js → asyncToGenerator-502f13b4.js} +8 -8
- package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/{core.get-iterator-method-d1d5ed02.js → core.get-iterator-method-e1de7503.js} +2 -2
- package/dist/esm/{define-property-ec6d528d.js → define-property-8af5f002.js} +1 -1
- package/dist/esm/{defineProperty-ea516b15.js → defineProperty-94fd8bfc.js} +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
- package/dist/esm/{es6.string.iterator-aa6068a3.js → es6.string.iterator-c990c18c.js} +3 -3
- package/dist/esm/{extends-31d65aba.js → extends-eb69e8ac.js} +1 -1
- package/dist/esm/getQuery.js +1 -2
- package/dist/esm/getRelatedArticle.js +13 -13
- package/dist/esm/getSerializers.js +42 -42
- package/dist/esm/{getTargeting-2d402d66.js → getTargeting-a1ebbed5.js} +9 -5
- package/dist/esm/getTargeting.js +7 -7
- package/dist/esm/{index-d6ad9248.js → index-196b1669.js} +417 -421
- package/dist/esm/{index-3f5c03b2.js → index-3849e3fe.js} +24 -29
- package/dist/esm/{index-752d1dae.js → index-5f9f807a.js} +10 -10
- package/dist/esm/{index-888f9253.js → index-a9e53f80.js} +6 -6
- package/dist/esm/{index-ccb770c7.js → index-ef6d5dcf.js} +41 -40
- package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-d6f88d94.js → index.esm-b08f4b04.js} +9 -4
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-8016b507.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +205 -111
- package/dist/esm/{inherits-5906fbea.js → inherits-fb9b6e8f.js} +5 -5
- package/dist/esm/{keys-a0b0c7a4.js → keys-8eda7a5c.js} +2 -2
- package/dist/esm/{lodash-ad27652f.js → lodash-ec8c6b48.js} +1 -1
- package/dist/esm/{main-1450d277.js → main-e4a934b2.js} +78 -113
- package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
- package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-a7d5c5c7.js} +20 -20
- package/dist/esm/{slicedToArray-cdeaee08.js → slicedToArray-641f241f.js} +4 -4
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/{stringify-d4839bab.js → stringify-4330ccdc.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-fa2dcda7.js → toConsumableArray-43aa614d.js} +4 -4
- package/dist/esm/{typeof-e9cea9e8.js → typeof-6435ba1c.js} +7 -7
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{visibility-sensor-082c757b.js → visibility-sensor-0baa4eea.js} +2 -2
- package/dist/esm/{web.dom.iterable-035980f3.js → web.dom.iterable-4439f05a.js} +3 -3
- package/package.json +3 -3
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
package/dist/esm/getQuery.js
CHANGED
|
@@ -5,12 +5,11 @@ var getQuery = function getQuery(type) {
|
|
|
5
5
|
|
|
6
6
|
//Added feature to include additional conditions and parameters for site level operations
|
|
7
7
|
//Site level conditions should start with && (logical AND), and site level params should end with , (comma) in order to execute query
|
|
8
|
-
|
|
9
8
|
switch (type) {
|
|
10
9
|
case 'related':
|
|
11
10
|
return '*[\n _type == "article"\n && defined(title)\n && defined(url)\n && !(_id in path("drafts.**"))\n && is_visible == true\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock!=true\n && taxonomyMapping[]._ref in $taxonomy\n && taxonomyMapping[].disableAds != \'true\'\n && contentCategory->.name != \'Poll\'\n && contentCategory->.name != \'Slideshows\'\n && contentCategory->.disableAds != \'true\'\n && ExcludeFromInfiniteScroll !=true\n && url.current != $url\n && !defined(body[].videos)\n ' + conditions + '\n ]| order(published desc)[' + (articleCount ? articleCount : '$index') + ']{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography },\n body[] {\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n _id,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n disableAds\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n \'path\': identifier.current\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n \'path\': identifier.current\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url\n }\n }';
|
|
12
11
|
case 'article':
|
|
13
|
-
return '*[\n _type == "article"\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && url.current == $url\n ' + conditions + '\n ][0]{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n issueGroup-> { _id, name, identifier, parent-> },\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography },\n body[] {\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n medias[]{\n ...,\n upload_doc {\n _type,\n asset-> \n } \n },\n articles[]{\n ...,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography },\n text[]{\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n }\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n ...,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n \'path\': identifier.current\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n \'path\': identifier.current\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n volume,\n \'issueNumber\': number,\n \'articleSource\': source,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url\n }\n\n }';
|
|
12
|
+
return '*[\n _type == "article"\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && url.current == $url\n ' + conditions + '\n ][0]{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n issueGroup-> { _id, name, identifier, parent-> },\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography },\n body[] {\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n medias[]{\n ...,\n upload_doc {\n _type,\n asset-> \n } \n },\n articles[]{\n ...,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography },\n text[]{\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n }\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n ...,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n \'path\': identifier.current\n },\n \'parentDocumentGroup\': *[_type == \'documentGroup\' && !(_id in path("drafts.**")) && _id == ^.documentGroup._ref][0]{\n ...,\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n \'path\': identifier.current\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n volume,\n \'issueNumber\': number,\n \'articleSource\': source,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url\n }\n\n }';
|
|
14
13
|
case 'publication':
|
|
15
14
|
return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issues\': *[_type == \'publication\'\n && is_visible\n && references(^._id)\n && defined(identifier)] {\n ...,\n taxonomyMapping[]->,\n pdf{asset->}\n } | order(year desc, month desc)\n }';
|
|
16
15
|
case 'issue':
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-2bd4099a.js';
|
|
2
1
|
import { c as createCommonjsModule, u as unwrapExports, a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
+
import './_to-object-a4107da3.js';
|
|
3
|
+
import './es6.string.iterator-c990c18c.js';
|
|
4
|
+
import './_library-528f1934.js';
|
|
5
|
+
import './_iter-detect-5d49a330.js';
|
|
6
|
+
import './core.get-iterator-method-e1de7503.js';
|
|
7
|
+
import './web.dom.iterable-4439f05a.js';
|
|
8
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-502f13b4.js';
|
|
9
|
+
import './_set-species-3f8319f5.js';
|
|
3
10
|
import { c as cookie } from './index-db3bb315.js';
|
|
4
11
|
import getQuery from './getQuery.js';
|
|
5
|
-
import './es6.string.iterator-aa6068a3.js';
|
|
6
|
-
import './_to-object-97770c52.js';
|
|
7
|
-
import './web.dom.iterable-035980f3.js';
|
|
8
|
-
import './_library-528f1934.js';
|
|
9
|
-
import './core.get-iterator-method-d1d5ed02.js';
|
|
10
|
-
import './_set-species-494ed292.js';
|
|
11
|
-
import './_iter-detect-48516cd3.js';
|
|
12
12
|
|
|
13
13
|
var defaultParseOptions = {
|
|
14
14
|
decodeValues: true,
|
|
@@ -287,10 +287,10 @@ exports.areCookiesEqual = areCookiesEqual;
|
|
|
287
287
|
});
|
|
288
288
|
|
|
289
289
|
unwrapExports(utils);
|
|
290
|
-
utils.areCookiesEqual;
|
|
291
|
-
utils.hasSameProperties;
|
|
292
|
-
utils.createCookie;
|
|
293
|
-
utils.isBrowser;
|
|
290
|
+
var utils_1 = utils.areCookiesEqual;
|
|
291
|
+
var utils_2 = utils.hasSameProperties;
|
|
292
|
+
var utils_3 = utils.createCookie;
|
|
293
|
+
var utils_4 = utils.isBrowser;
|
|
294
294
|
|
|
295
295
|
var dist = createCommonjsModule(function (module, exports) {
|
|
296
296
|
var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
@@ -417,7 +417,7 @@ exports.default = {
|
|
|
417
417
|
});
|
|
418
418
|
|
|
419
419
|
unwrapExports(dist);
|
|
420
|
-
dist.destroyCookie;
|
|
420
|
+
var dist_1 = dist.destroyCookie;
|
|
421
421
|
var dist_2 = dist.setCookie;
|
|
422
422
|
var dist_3 = dist.parseCookies;
|
|
423
423
|
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import 'react';
|
|
2
|
-
export { g as default } from './index-d6ad9248.js';
|
|
3
|
-
import './BlockContent-d8cd739c.js';
|
|
4
|
-
import './entities-932b50cf.js';
|
|
5
|
-
import './slicedToArray-cdeaee08.js';
|
|
6
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
7
|
-
import './
|
|
8
|
-
import './es6.string.iterator-
|
|
9
|
-
import './_to-object-97770c52.js';
|
|
10
|
-
import './core.get-iterator-method-d1d5ed02.js';
|
|
11
|
-
import 'react-bootstrap';
|
|
12
|
-
import './index-3f5c03b2.js';
|
|
13
|
-
import './index-888f9253.js';
|
|
14
|
-
import 'prop-types';
|
|
15
|
-
import 'next/router';
|
|
16
|
-
import './index-c7e2ac95.js';
|
|
17
|
-
import './util-3ab476bf.js';
|
|
18
|
-
import './Beam.js';
|
|
19
|
-
import './stringify-d4839bab.js';
|
|
20
|
-
import './asyncToGenerator-2bd4099a.js';
|
|
2
|
+
import './_to-object-a4107da3.js';
|
|
3
|
+
import './es6.string.iterator-c990c18c.js';
|
|
21
4
|
import './_library-528f1934.js';
|
|
22
|
-
import './
|
|
23
|
-
import './
|
|
24
|
-
import './
|
|
25
|
-
import './main-1450d277.js';
|
|
26
|
-
import './extends-31d65aba.js';
|
|
5
|
+
import './_iter-detect-5d49a330.js';
|
|
6
|
+
import './toConsumableArray-43aa614d.js';
|
|
7
|
+
import './core.get-iterator-method-e1de7503.js';
|
|
27
8
|
import './_object-pie-33c40e79.js';
|
|
28
|
-
import './
|
|
9
|
+
import './extends-eb69e8ac.js';
|
|
10
|
+
import './_object-sap-964b6feb.js';
|
|
11
|
+
import './inherits-fb9b6e8f.js';
|
|
12
|
+
import './define-property-8af5f002.js';
|
|
13
|
+
import './web.dom.iterable-4439f05a.js';
|
|
14
|
+
import './typeof-6435ba1c.js';
|
|
15
|
+
import './_is-array-58e95429.js';
|
|
16
|
+
import 'react';
|
|
17
|
+
import './index-a9e53f80.js';
|
|
18
|
+
import 'prop-types';
|
|
19
|
+
import 'react-bootstrap/Row';
|
|
20
|
+
import 'react-bootstrap/Col';
|
|
21
|
+
import './moment-e2f9b20c.js';
|
|
22
|
+
import 'next/router';
|
|
23
|
+
import './isSymbol-807e927e.js';
|
|
24
|
+
import './debounce-1a993acf.js';
|
|
29
25
|
import 'react-dom';
|
|
30
|
-
import './
|
|
31
|
-
import './
|
|
32
|
-
import './
|
|
26
|
+
import './index-3849e3fe.js';
|
|
27
|
+
import './index-5f9f807a.js';
|
|
28
|
+
import './main-e4a934b2.js';
|
|
29
|
+
import './entities-7cc3bf45.js';
|
|
30
|
+
import './slicedToArray-641f241f.js';
|
|
31
|
+
import './stringify-4330ccdc.js';
|
|
32
|
+
import './asyncToGenerator-502f13b4.js';
|
|
33
|
+
import './_set-species-3f8319f5.js';
|
|
34
|
+
import './Segment.js';
|
|
35
|
+
import './Beam.js';
|
|
36
|
+
import './AdSlot.js';
|
|
37
|
+
import './BlockContent-c409aca5.js';
|
|
38
|
+
import './index-c7e2ac95.js';
|
|
39
|
+
import './smoothscroll-0cd4c7a6.js';
|
|
33
40
|
import './GroupDeck.js';
|
|
34
|
-
import '
|
|
35
|
-
import './
|
|
36
|
-
import './
|
|
37
|
-
|
|
41
|
+
import 'react-bootstrap';
|
|
42
|
+
import './iconBase-602d52fe.js';
|
|
43
|
+
import './index.esm-29e48d38.js';
|
|
44
|
+
export { g as default } from './index-196b1669.js';
|
|
45
|
+
import './util-7700fc59.js';
|
|
46
|
+
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
47
|
+
import './_object-to-array-7e804fce.js';
|
|
38
48
|
import 'react-bootstrap/Pagination';
|
|
39
49
|
import 'react-bootstrap/Button';
|
|
40
|
-
import './AdSlot.js';
|
|
41
|
-
import './debounce-1a993acf.js';
|
|
42
|
-
import './isSymbol-807e927e.js';
|
|
43
|
-
import 'react-bootstrap/Row';
|
|
44
|
-
import 'react-bootstrap/Col';
|
|
45
50
|
import 'next/head';
|
|
46
|
-
import './inherits-5906fbea.js';
|
|
47
|
-
import './_object-sap-fd3054d0.js';
|
|
48
|
-
import './define-property-ec6d528d.js';
|
|
49
|
-
import './index.esm-3fdda599.js';
|
|
50
|
-
import './iconBase-602d52fe.js';
|
|
51
51
|
import 'react-bootstrap/Figure';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { _ as
|
|
1
|
+
import { _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
|
|
2
|
+
import { _ as _extends } from './extends-eb69e8ac.js';
|
|
3
3
|
|
|
4
4
|
var getContentPlacementUrl = function getContentPlacementUrl(cp) {
|
|
5
5
|
var cp_url = '';
|
|
@@ -24,11 +24,9 @@ var getTargeting = function getTargeting(props) {
|
|
|
24
24
|
_props$cpModification = props.cpModificationRequired,
|
|
25
25
|
cpModificationRequired = _props$cpModification === undefined ? true : _props$cpModification;
|
|
26
26
|
|
|
27
|
-
|
|
28
27
|
if (positionOverride) {
|
|
29
28
|
position = positionOverride;
|
|
30
29
|
}
|
|
31
|
-
|
|
32
30
|
var _article$internalTag = article.internalTag,
|
|
33
31
|
internalTag = _article$internalTag === undefined ? [] : _article$internalTag,
|
|
34
32
|
_article$userDefinedT = article.userDefinedTag,
|
|
@@ -48,7 +46,8 @@ var getTargeting = function getTargeting(props) {
|
|
|
48
46
|
} : _article$documentGrou;
|
|
49
47
|
var document_group = _article$documentGrou.path,
|
|
50
48
|
document_groups = article.document_groups,
|
|
51
|
-
content_placement = article.content_placement
|
|
49
|
+
content_placement = article.content_placement,
|
|
50
|
+
rootDocumentGroup = article.rootDocumentGroup;
|
|
52
51
|
|
|
53
52
|
var context = url;
|
|
54
53
|
var localHistory = props.historyCookie ? JSON.parse(props.historyCookie) : [];
|
|
@@ -137,6 +136,11 @@ var getTargeting = function getTargeting(props) {
|
|
|
137
136
|
if (position && position.length) {
|
|
138
137
|
targeting['pos'] = position;
|
|
139
138
|
}
|
|
139
|
+
|
|
140
|
+
// returning AD Targeting Group
|
|
141
|
+
if (rootDocumentGroup && rootDocumentGroup.identifier) {
|
|
142
|
+
targeting['rootDocumentGroup'] = rootDocumentGroup.identifier.current;
|
|
143
|
+
}
|
|
140
144
|
return targeting;
|
|
141
145
|
};
|
|
142
146
|
|
package/dist/esm/getTargeting.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import './extends-31d65aba.js';
|
|
2
|
-
import './toConsumableArray-fa2dcda7.js';
|
|
3
|
-
export { g as default } from './getTargeting-2d402d66.js';
|
|
4
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
5
|
-
import './_to-object-
|
|
2
|
+
import './_to-object-a4107da3.js';
|
|
3
|
+
import './es6.string.iterator-c990c18c.js';
|
|
4
|
+
import './_iter-detect-5d49a330.js';
|
|
5
|
+
import './toConsumableArray-43aa614d.js';
|
|
6
|
+
import './core.get-iterator-method-e1de7503.js';
|
|
6
7
|
import './_object-pie-33c40e79.js';
|
|
7
|
-
import './
|
|
8
|
-
|
|
9
|
-
import './core.get-iterator-method-d1d5ed02.js';
|
|
8
|
+
import './extends-eb69e8ac.js';
|
|
9
|
+
export { g as default } from './getTargeting-a1ebbed5.js';
|