@mjhls/mjh-framework 1.0.725 → 1.0.727
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 +1 -1
- package/dist/cjs/AD300x250.js +7 -52
- package/dist/cjs/AD300x250x600.js +7 -52
- package/dist/cjs/AD728x90.js +6 -40
- package/dist/cjs/ADFloatingFooter.js +8 -37
- package/dist/cjs/ADGutter.js +7 -39
- package/dist/cjs/{ADInfeed-922ce08c.js → ADInfeed-5fe7fd9d.js} +5 -37
- package/dist/cjs/ADSkyscraper.js +7 -40
- package/dist/cjs/ADSponsoredResources.js +7 -38
- package/dist/cjs/ADWebcast.js +7 -39
- package/dist/cjs/ADWelcome.js +9 -38
- package/dist/cjs/{ADlgInfeed-4fee6863.js → ADlgInfeed-a62d2f9b.js} +5 -37
- package/dist/cjs/AdSlot.js +1 -1
- package/dist/cjs/AdSlotsProvider.js +1 -1
- package/dist/cjs/ArticleProgramLandingPage.js +2 -2
- package/dist/cjs/ArticleSeriesLandingPage.js +4 -4
- package/dist/cjs/ArticleSeriesListing.js +1 -1
- package/dist/cjs/CMEDeck.js +1 -1
- package/dist/cjs/Column3.js +4 -4
- package/dist/cjs/DeckContent.js +3 -3
- package/dist/cjs/DeckQueue.js +1 -1
- package/dist/cjs/{Dfp-a863cf48.js → Dfp-80146e98.js} +1 -1
- package/dist/cjs/ExternalResources.js +2 -2
- package/dist/cjs/GridContent.js +4 -4
- package/dist/cjs/HorizontalArticleListing.js +2 -2
- package/dist/cjs/IssueLanding.js +4 -4
- package/dist/cjs/LeftNav.js +4 -4
- package/dist/cjs/MasterDeck.js +4 -4
- package/dist/cjs/PartnerDetailListing.js +5 -5
- package/dist/cjs/QueueDeckExpanded.js +4 -4
- package/dist/cjs/TaxonomyDescription.js +2 -2
- package/dist/cjs/TemplateNormal.js +2 -2
- package/dist/cjs/VideoProgramLandingPage.js +2 -2
- package/dist/cjs/VideoSeriesLandingPage.js +4 -4
- package/dist/cjs/VideoSeriesListing.js +1 -1
- package/dist/cjs/View.js +15 -52
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getSerializers.js +2 -2
- package/dist/cjs/{index-5ad2b070.js → index-0e4427c8.js} +37 -18
- package/dist/cjs/{index-58d40052.js → index-5260126b.js} +1 -1
- package/dist/cjs/index.js +5 -5
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +7 -52
- package/dist/esm/AD300x250x600.js +7 -52
- package/dist/esm/AD728x90.js +6 -40
- package/dist/esm/ADFloatingFooter.js +8 -37
- package/dist/esm/ADGutter.js +7 -39
- package/dist/esm/{ADInfeed-ed02c6ec.js → ADInfeed-3a9eef39.js} +5 -37
- package/dist/esm/ADSkyscraper.js +7 -40
- package/dist/esm/ADSponsoredResources.js +7 -38
- package/dist/esm/ADWebcast.js +7 -39
- package/dist/esm/ADWelcome.js +9 -38
- package/dist/esm/{ADlgInfeed-550d351e.js → ADlgInfeed-8d63ff91.js} +5 -37
- package/dist/esm/AdSlot.js +1 -1
- package/dist/esm/AdSlotsProvider.js +1 -1
- package/dist/esm/ArticleProgramLandingPage.js +2 -2
- package/dist/esm/ArticleSeriesLandingPage.js +4 -4
- package/dist/esm/ArticleSeriesListing.js +1 -1
- package/dist/esm/CMEDeck.js +1 -1
- package/dist/esm/Column3.js +4 -4
- package/dist/esm/DeckContent.js +3 -3
- package/dist/esm/DeckQueue.js +1 -1
- package/dist/esm/{Dfp-5d779279.js → Dfp-8bfbd310.js} +1 -1
- package/dist/esm/ExternalResources.js +2 -2
- package/dist/esm/GridContent.js +4 -4
- package/dist/esm/HorizontalArticleListing.js +2 -2
- package/dist/esm/IssueLanding.js +4 -4
- package/dist/esm/LeftNav.js +4 -4
- package/dist/esm/MasterDeck.js +4 -4
- package/dist/esm/PartnerDetailListing.js +5 -5
- package/dist/esm/QueueDeckExpanded.js +4 -4
- package/dist/esm/TaxonomyDescription.js +2 -2
- package/dist/esm/TemplateNormal.js +2 -2
- package/dist/esm/VideoProgramLandingPage.js +2 -2
- package/dist/esm/VideoSeriesLandingPage.js +4 -4
- package/dist/esm/VideoSeriesListing.js +1 -1
- package/dist/esm/View.js +15 -52
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getSerializers.js +2 -2
- package/dist/esm/{index-669ff425.js → index-888f9253.js} +37 -18
- package/dist/esm/{index-6eef5e56.js → index-d6ad9248.js} +1 -1
- package/dist/esm/index.js +5 -5
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import { useRouter } from 'next/router';
|
|
5
5
|
import Head from 'next/head';
|
|
6
6
|
import { B as BlockContent } from './BlockContent-d8cd739c.js';
|
|
7
|
-
import { g as getSerializers } from './index-
|
|
7
|
+
import { g as getSerializers } from './index-d6ad9248.js';
|
|
8
8
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
9
9
|
import './es6.string.iterator-aa6068a3.js';
|
|
10
10
|
import './_to-object-97770c52.js';
|
|
@@ -18,7 +18,7 @@ import 'prop-types';
|
|
|
18
18
|
import './index-3f5c03b2.js';
|
|
19
19
|
import './slicedToArray-cdeaee08.js';
|
|
20
20
|
import 'react-bootstrap';
|
|
21
|
-
import './index-
|
|
21
|
+
import './index-888f9253.js';
|
|
22
22
|
import './index-c7e2ac95.js';
|
|
23
23
|
import './util-3ab476bf.js';
|
|
24
24
|
import './Beam.js';
|
|
@@ -18,15 +18,15 @@ import './web.dom.iterable-035980f3.js';
|
|
|
18
18
|
import './es6.string.iterator-aa6068a3.js';
|
|
19
19
|
import './_to-object-97770c52.js';
|
|
20
20
|
import './core.get-iterator-method-d1d5ed02.js';
|
|
21
|
-
import './stringify-d4839bab.js';
|
|
22
21
|
import './AdSlot.js';
|
|
23
22
|
import './extends-31d65aba.js';
|
|
24
23
|
import './_object-pie-33c40e79.js';
|
|
25
24
|
import 'prop-types';
|
|
26
|
-
import './index-
|
|
25
|
+
import './index-888f9253.js';
|
|
27
26
|
import './debounce-1a993acf.js';
|
|
28
27
|
import './isSymbol-807e927e.js';
|
|
29
28
|
import './Beam.js';
|
|
29
|
+
import './stringify-d4839bab.js';
|
|
30
30
|
import './asyncToGenerator-2bd4099a.js';
|
|
31
31
|
import './_library-528f1934.js';
|
|
32
32
|
import './_set-species-494ed292.js';
|
|
@@ -5,7 +5,7 @@ import { B as BlockContent } from './BlockContent-d8cd739c.js';
|
|
|
5
5
|
import Col from 'react-bootstrap/Col';
|
|
6
6
|
import Form from 'react-bootstrap/Form';
|
|
7
7
|
import Button from 'react-bootstrap/Button';
|
|
8
|
-
import { g as getSerializers } from './index-
|
|
8
|
+
import { g as getSerializers } from './index-d6ad9248.js';
|
|
9
9
|
import VideoSeriesListing from './VideoSeriesListing.js';
|
|
10
10
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
11
11
|
import './es6.string.iterator-aa6068a3.js';
|
|
@@ -20,7 +20,7 @@ import 'prop-types';
|
|
|
20
20
|
import './index-3f5c03b2.js';
|
|
21
21
|
import './slicedToArray-cdeaee08.js';
|
|
22
22
|
import 'react-bootstrap';
|
|
23
|
-
import './index-
|
|
23
|
+
import './index-888f9253.js';
|
|
24
24
|
import 'next/router';
|
|
25
25
|
import './index-c7e2ac95.js';
|
|
26
26
|
import './util-3ab476bf.js';
|
|
@@ -23,7 +23,7 @@ import './extends-31d65aba.js';
|
|
|
23
23
|
import './inherits-5906fbea.js';
|
|
24
24
|
import './_object-sap-fd3054d0.js';
|
|
25
25
|
import './define-property-ec6d528d.js';
|
|
26
|
-
import './index-
|
|
26
|
+
import './index-888f9253.js';
|
|
27
27
|
import 'prop-types';
|
|
28
28
|
import 'react-bootstrap/Container';
|
|
29
29
|
import 'react-bootstrap/Row';
|
|
@@ -37,13 +37,13 @@ import './index.es-c6222053.js';
|
|
|
37
37
|
import './visibility-sensor-082c757b.js';
|
|
38
38
|
import 'react-dom';
|
|
39
39
|
import './index-3f5c03b2.js';
|
|
40
|
-
import './ADlgInfeed-
|
|
41
|
-
import './stringify-d4839bab.js';
|
|
40
|
+
import './ADlgInfeed-8d63ff91.js';
|
|
42
41
|
import './AdSlot.js';
|
|
43
42
|
import './Beam.js';
|
|
43
|
+
import './stringify-d4839bab.js';
|
|
44
44
|
import './Segment.js';
|
|
45
45
|
import './main-1450d277.js';
|
|
46
|
-
import './ADInfeed-
|
|
46
|
+
import './ADInfeed-3a9eef39.js';
|
|
47
47
|
import './index-752d1dae.js';
|
|
48
48
|
import './style-inject.es-1f59c1d0.js';
|
|
49
49
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as _extends } from './extends-31d65aba.js';
|
|
2
2
|
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-5906fbea.js';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { l as lib_3 } from './index-
|
|
4
|
+
import { l as lib_3 } from './index-888f9253.js';
|
|
5
5
|
import Container from 'react-bootstrap/Container';
|
|
6
6
|
import { V as VisibilitySensor } from './visibility-sensor-082c757b.js';
|
|
7
7
|
import { I as IoIosArrowForward } from './index.esm-3fdda599.js';
|
package/dist/esm/View.js
CHANGED
|
@@ -13,7 +13,7 @@ import 'react-bootstrap/Dropdown';
|
|
|
13
13
|
import Form from 'react-bootstrap/Form';
|
|
14
14
|
import FormControl from 'react-bootstrap/FormControl';
|
|
15
15
|
import Button from 'react-bootstrap/Button';
|
|
16
|
-
import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-
|
|
16
|
+
import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-d6ad9248.js';
|
|
17
17
|
import SocialShare from './SocialShare.js';
|
|
18
18
|
import DFPAdSlot from './AdSlot.js';
|
|
19
19
|
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-2d402d66.js';
|
|
@@ -25,7 +25,7 @@ import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
|
25
25
|
import './index-752d1dae.js';
|
|
26
26
|
import { _ as _Object$keys } from './keys-a0b0c7a4.js';
|
|
27
27
|
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
28
|
-
import { l as lib_3 } from './index-
|
|
28
|
+
import { l as lib_3 } from './index-888f9253.js';
|
|
29
29
|
import getRelatedArticle from './getRelatedArticle.js';
|
|
30
30
|
import getQuery from './getQuery.js';
|
|
31
31
|
import getSeriesDetail from './getSeriesDetail.js';
|
|
@@ -121,7 +121,7 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
121
121
|
var article = _ref.article,
|
|
122
122
|
client = _ref.client;
|
|
123
123
|
|
|
124
|
-
if (!article.documentGroup) {
|
|
124
|
+
if (!article.documentGroup || !article.documentGroup.isShow) {
|
|
125
125
|
return null;
|
|
126
126
|
}
|
|
127
127
|
|
|
@@ -146,7 +146,7 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
146
146
|
main_40 && !thumbnailUrl && React.createElement(
|
|
147
147
|
'style',
|
|
148
148
|
{ jsx: 'true' },
|
|
149
|
-
'\n a.doc-group {\n display: block !important;\n padding: 0!important;\n }\n '
|
|
149
|
+
'\n a.doc-group {\n display: block !important;\n padding: 0 !important;\n }\n '
|
|
150
150
|
)
|
|
151
151
|
);
|
|
152
152
|
};
|
|
@@ -453,9 +453,9 @@ var Article = function Article(props) {
|
|
|
453
453
|
setArticleBody = _useState10[1];
|
|
454
454
|
|
|
455
455
|
var _useState11 = useState(true),
|
|
456
|
-
_useState12 = _slicedToArray(_useState11, 2)
|
|
457
|
-
|
|
458
|
-
setPreviewAd = _useState12[1];
|
|
456
|
+
_useState12 = _slicedToArray(_useState11, 2);
|
|
457
|
+
_useState12[0];
|
|
458
|
+
var setPreviewAd = _useState12[1];
|
|
459
459
|
|
|
460
460
|
useEffect(function () {
|
|
461
461
|
var path = window && window.location && window.location.search;
|
|
@@ -625,20 +625,6 @@ var Article = function Article(props) {
|
|
|
625
625
|
});
|
|
626
626
|
var selectedIndex = indexes[1] + 1;
|
|
627
627
|
|
|
628
|
-
var checkIsAdFound = function checkIsAdFound(isFound) {
|
|
629
|
-
if (!isFound) {
|
|
630
|
-
var parent = document.getElementById('contextual-native-ad-' + payload._id);
|
|
631
|
-
parent.style.height = '0%';
|
|
632
|
-
parent.style.width = '0%';
|
|
633
|
-
parent.style.display = 'none';
|
|
634
|
-
setContextualADFlag(false);
|
|
635
|
-
} else {
|
|
636
|
-
if (body[0]._type === 'figure' || body[1]._type === 'figure' || body[2]._type === 'figure' || body[3]._type === 'figure') {
|
|
637
|
-
setContextualADFlag(true);
|
|
638
|
-
}
|
|
639
|
-
}
|
|
640
|
-
};
|
|
641
|
-
|
|
642
628
|
var checkIsVideoAdFound = function checkIsVideoAdFound(isFound) {
|
|
643
629
|
if (!isFound) {
|
|
644
630
|
var parent = document.getElementById('contextual-video-ad-' + payload._id);
|
|
@@ -662,7 +648,10 @@ var Article = function Article(props) {
|
|
|
662
648
|
React.createElement(
|
|
663
649
|
'div',
|
|
664
650
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
665
|
-
React.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
651
|
+
React.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
652
|
+
refreshFlag: refreshFlag
|
|
653
|
+
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
654
|
+
}))
|
|
666
655
|
),
|
|
667
656
|
React.createElement('span', { className: 'clearfix' }),
|
|
668
657
|
React.createElement(
|
|
@@ -693,35 +682,6 @@ var Article = function Article(props) {
|
|
|
693
682
|
});
|
|
694
683
|
var _selectedIndex = indexes[1] + 1;
|
|
695
684
|
|
|
696
|
-
var _checkIsAdFound = function _checkIsAdFound(isFound, adData) {
|
|
697
|
-
if (!isFound) {
|
|
698
|
-
var parent = document.getElementById('contextual-native-ad-' + payload._id);
|
|
699
|
-
parent.style.height = '0%';
|
|
700
|
-
parent.style.width = '0%';
|
|
701
|
-
parent.style.display = 'none';
|
|
702
|
-
setContextualADFlag(false);
|
|
703
|
-
} else {
|
|
704
|
-
var _parent = document.getElementById('contextual-native-ad-' + payload._id);
|
|
705
|
-
if (adData && adData.event && adData.event.size && _parent) {
|
|
706
|
-
// Adding fix for fluid contextual ad to avoid from collapsing when size is [0,0]
|
|
707
|
-
var fluidSizes = [[0, 0]];
|
|
708
|
-
var checkAdSize = function checkAdSize(size) {
|
|
709
|
-
return _JSON$stringify(size) === _JSON$stringify(adData.event.size);
|
|
710
|
-
};
|
|
711
|
-
if (!fluidSizes.some(checkAdSize)) {
|
|
712
|
-
_parent.style.width = adData.event.size[0] + 'px';
|
|
713
|
-
_parent.style.height = adData.event.size[1] + 'px';
|
|
714
|
-
}
|
|
715
|
-
_parent.style.margin = 'auto';
|
|
716
|
-
// Adding margin below to create a seperation from text.
|
|
717
|
-
_parent.style.marginBottom = '15px';
|
|
718
|
-
}
|
|
719
|
-
if (body[0]._type === 'figure' || body[1]._type === 'figure' || body[2]._type === 'figure' || body[3]._type === 'figure') {
|
|
720
|
-
setContextualADFlag(true);
|
|
721
|
-
}
|
|
722
|
-
}
|
|
723
|
-
};
|
|
724
|
-
|
|
725
685
|
return React.createElement(
|
|
726
686
|
React.Fragment,
|
|
727
687
|
null,
|
|
@@ -734,7 +694,10 @@ var Article = function Article(props) {
|
|
|
734
694
|
(visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) && React.createElement(
|
|
735
695
|
'div',
|
|
736
696
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
737
|
-
React.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
697
|
+
React.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
698
|
+
refreshFlag: refreshFlag
|
|
699
|
+
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
700
|
+
}))
|
|
738
701
|
),
|
|
739
702
|
contextualADFlag && React.createElement('span', { className: 'clearfix' }),
|
|
740
703
|
React.createElement(BlockContent, _extends({
|
package/dist/esm/getQuery.js
CHANGED
|
@@ -8,9 +8,9 @@ var getQuery = function getQuery(type) {
|
|
|
8
8
|
|
|
9
9
|
switch (type) {
|
|
10
10
|
case 'related':
|
|
11
|
-
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 \'path\': identifier.current\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\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 }';
|
|
11
|
+
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
12
|
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 \'path\': identifier.current\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\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 }';
|
|
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 }';
|
|
14
14
|
case 'publication':
|
|
15
15
|
return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issues\': *[_type == \'publication\'\n && is_visible\n && references(^._id)\n && defined(identifier)] {\n ...,\n taxonomyMapping[]->,\n pdf{asset->}\n } | order(year desc, month desc)\n }';
|
|
16
16
|
case 'issue':
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
export { g as default } from './index-
|
|
2
|
+
export { g as default } from './index-d6ad9248.js';
|
|
3
3
|
import './BlockContent-d8cd739c.js';
|
|
4
4
|
import './entities-932b50cf.js';
|
|
5
5
|
import './slicedToArray-cdeaee08.js';
|
|
@@ -10,7 +10,7 @@ import './_to-object-97770c52.js';
|
|
|
10
10
|
import './core.get-iterator-method-d1d5ed02.js';
|
|
11
11
|
import 'react-bootstrap';
|
|
12
12
|
import './index-3f5c03b2.js';
|
|
13
|
-
import './index-
|
|
13
|
+
import './index-888f9253.js';
|
|
14
14
|
import 'prop-types';
|
|
15
15
|
import 'next/router';
|
|
16
16
|
import './index-c7e2ac95.js';
|
|
@@ -530,6 +530,7 @@ var disableInitialLoadEnabled = false;
|
|
|
530
530
|
var lazyLoadEnabled = false;
|
|
531
531
|
var lazyLoadConfig = null;
|
|
532
532
|
var servePersonalizedAds = true;
|
|
533
|
+
var serveCookies = true;
|
|
533
534
|
var registeredSlots = {};
|
|
534
535
|
var managerAlreadyInitialized = false;
|
|
535
536
|
var globalTargetingArguments = {};
|
|
@@ -571,9 +572,15 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
571
572
|
configurePersonalizedAds: function configurePersonalizedAds(value) {
|
|
572
573
|
servePersonalizedAds = value;
|
|
573
574
|
},
|
|
575
|
+
configureCookieOption: function configureCookieOption(value) {
|
|
576
|
+
serveCookies = value;
|
|
577
|
+
},
|
|
574
578
|
personalizedAdsEnabled: function personalizedAdsEnabled() {
|
|
575
579
|
return servePersonalizedAds;
|
|
576
580
|
},
|
|
581
|
+
cookiesEnabled: function cookiesEnabled() {
|
|
582
|
+
return serveCookies;
|
|
583
|
+
},
|
|
577
584
|
setAdSenseAttribute: function setAdSenseAttribute(key, value) {
|
|
578
585
|
this.setAdSenseAttributes(_defineProperty({}, key, value));
|
|
579
586
|
},
|
|
@@ -664,6 +671,7 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
664
671
|
});
|
|
665
672
|
});
|
|
666
673
|
pubadsService.setRequestNonPersonalizedAds(_this.personalizedAdsEnabled() ? 0 : 1);
|
|
674
|
+
pubadsService.setCookieOptions(_this.cookiesEnabled() ? 0 : 1);
|
|
667
675
|
});
|
|
668
676
|
});
|
|
669
677
|
}
|
|
@@ -775,13 +783,9 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
775
783
|
|
|
776
784
|
googletag.cmd.push(function () {
|
|
777
785
|
googletag.enableServices();
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
googletag.display(theSlotId);
|
|
782
|
-
});
|
|
783
|
-
}
|
|
784
|
-
|
|
786
|
+
slotsToInitialize.forEach(function (theSlotId) {
|
|
787
|
+
googletag.display(theSlotId);
|
|
788
|
+
});
|
|
785
789
|
resolve();
|
|
786
790
|
});
|
|
787
791
|
});
|
|
@@ -804,6 +808,7 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
804
808
|
googletag.cmd.push(function () {
|
|
805
809
|
var pubadsService = googletag.pubads();
|
|
806
810
|
pubadsService.setRequestNonPersonalizedAds(_this5.personalizedAdsEnabled() ? 0 : 1);
|
|
811
|
+
pubadsService.setCookieOptions(_this5.cookiesEnabled() ? 0 : 1);
|
|
807
812
|
|
|
808
813
|
var targetingArguments = _this5.getTargetingArguments(); // set global targetting arguments
|
|
809
814
|
|
|
@@ -870,17 +875,25 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
870
875
|
}, slots);
|
|
871
876
|
},
|
|
872
877
|
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
|
+
|
|
873
884
|
if (loadPromise === null) {
|
|
874
885
|
this.load();
|
|
875
886
|
} else {
|
|
876
|
-
|
|
887
|
+
loadPromise.then(function () {
|
|
888
|
+
_this6.gptRefreshAds(Object.keys(_this6.getRefreshableSlots.apply(_this6, slots)));
|
|
889
|
+
});
|
|
877
890
|
}
|
|
878
891
|
},
|
|
879
892
|
gptRefreshAds: function gptRefreshAds(slots) {
|
|
880
|
-
var
|
|
893
|
+
var _this7 = this;
|
|
881
894
|
|
|
882
895
|
return this.getGoogletag().then(function (googletag) {
|
|
883
|
-
|
|
896
|
+
_this7.configureOptions(googletag);
|
|
884
897
|
|
|
885
898
|
googletag.cmd.push(function () {
|
|
886
899
|
var pubadsService = googletag.pubads();
|
|
@@ -891,17 +904,17 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
891
904
|
});
|
|
892
905
|
},
|
|
893
906
|
reload: function reload() {
|
|
894
|
-
var
|
|
907
|
+
var _this8 = this;
|
|
895
908
|
|
|
896
909
|
return this.destroyGPTSlots.apply(this, arguments).then(function () {
|
|
897
|
-
return
|
|
910
|
+
return _this8.load();
|
|
898
911
|
});
|
|
899
912
|
},
|
|
900
913
|
destroyGPTSlots: function destroyGPTSlots() {
|
|
901
|
-
var
|
|
914
|
+
var _this9 = this;
|
|
902
915
|
|
|
903
|
-
for (var
|
|
904
|
-
slotsToDestroy[
|
|
916
|
+
for (var _len5 = arguments.length, slotsToDestroy = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
|
|
917
|
+
slotsToDestroy[_key5] = arguments[_key5];
|
|
905
918
|
}
|
|
906
919
|
|
|
907
920
|
if (slotsToDestroy.length === 0) {
|
|
@@ -918,7 +931,7 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
918
931
|
slots.push(slot);
|
|
919
932
|
}
|
|
920
933
|
|
|
921
|
-
|
|
934
|
+
_this9.getGoogletag().then(function (googletag) {
|
|
922
935
|
googletag.cmd.push(function () {
|
|
923
936
|
if (managerAlreadyInitialized === true) {
|
|
924
937
|
if (slotsToDestroy.length > 0) {
|
|
@@ -941,7 +954,7 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
941
954
|
});
|
|
942
955
|
},
|
|
943
956
|
registerSlot: function registerSlot(_ref) {
|
|
944
|
-
var
|
|
957
|
+
var _this10 = this;
|
|
945
958
|
|
|
946
959
|
var slotId = _ref.slotId,
|
|
947
960
|
dfpNetworkId = _ref.dfpNetworkId,
|
|
@@ -980,7 +993,7 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
980
993
|
gptSlot = slot.gptSlot;
|
|
981
994
|
|
|
982
995
|
if (loading === false && !gptSlot) {
|
|
983
|
-
|
|
996
|
+
_this10.load(slotId);
|
|
984
997
|
}
|
|
985
998
|
}
|
|
986
999
|
});
|
|
@@ -1170,6 +1183,8 @@ function (_React$Component) {
|
|
|
1170
1183
|
value: function applyConfigs() {
|
|
1171
1184
|
_manager.default.configurePersonalizedAds(this.props.personalizedAds);
|
|
1172
1185
|
|
|
1186
|
+
_manager.default.configureCookieOption(this.props.cookieOption);
|
|
1187
|
+
|
|
1173
1188
|
_manager.default.configureSingleRequest(this.props.singleRequest);
|
|
1174
1189
|
|
|
1175
1190
|
_manager.default.configureDisableInitialLoad(this.props.disableInitialLoad);
|
|
@@ -1266,6 +1281,7 @@ _defineProperty(DFPSlotsProvider, "propTypes", {
|
|
|
1266
1281
|
autoReload: _propTypes.default.shape({
|
|
1267
1282
|
dfpNetworkId: _propTypes.default.bool,
|
|
1268
1283
|
personalizedAds: _propTypes.default.bool,
|
|
1284
|
+
cookieOption: _propTypes.default.bool,
|
|
1269
1285
|
singleRequest: _propTypes.default.bool,
|
|
1270
1286
|
disableInitialLoad: _propTypes.default.bool,
|
|
1271
1287
|
adUnit: _propTypes.default.bool,
|
|
@@ -1277,6 +1293,7 @@ _defineProperty(DFPSlotsProvider, "propTypes", {
|
|
|
1277
1293
|
}),
|
|
1278
1294
|
dfpNetworkId: _propTypes.default.string.isRequired,
|
|
1279
1295
|
personalizedAds: _propTypes.default.bool,
|
|
1296
|
+
cookieOption: _propTypes.default.bool,
|
|
1280
1297
|
singleRequest: _propTypes.default.bool,
|
|
1281
1298
|
disableInitialLoad: _propTypes.default.bool,
|
|
1282
1299
|
adUnit: _propTypes.default.string,
|
|
@@ -1297,6 +1314,7 @@ _defineProperty(DFPSlotsProvider, "defaultProps", {
|
|
|
1297
1314
|
autoReload: {
|
|
1298
1315
|
dfpNetworkId: false,
|
|
1299
1316
|
personalizedAds: false,
|
|
1317
|
+
cookieOption: false,
|
|
1300
1318
|
singleRequest: false,
|
|
1301
1319
|
disableInitialLoad: false,
|
|
1302
1320
|
adUnit: false,
|
|
@@ -1307,6 +1325,7 @@ _defineProperty(DFPSlotsProvider, "defaultProps", {
|
|
|
1307
1325
|
lazyLoad: false
|
|
1308
1326
|
},
|
|
1309
1327
|
personalizedAds: true,
|
|
1328
|
+
cookieOption: true,
|
|
1310
1329
|
singleRequest: true,
|
|
1311
1330
|
disableInitialLoad: false,
|
|
1312
1331
|
collapseEmptyDivs: null,
|
|
@@ -2,7 +2,7 @@ import React, { useState, useEffect, useRef, useLayoutEffect, useCallback } from
|
|
|
2
2
|
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-cdeaee08.js';
|
|
3
3
|
import { Carousel, Table, Figure as Figure$1, Button, ProgressBar, Card, Row as Row$1, Col as Col$1 } from 'react-bootstrap';
|
|
4
4
|
import { i as imageUrlBuilder } from './index-3f5c03b2.js';
|
|
5
|
-
import { l as lib_3 } from './index-
|
|
5
|
+
import { l as lib_3 } from './index-888f9253.js';
|
|
6
6
|
import Router, { useRouter } from 'next/router';
|
|
7
7
|
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
8
8
|
import PropTypes from 'prop-types';
|
package/dist/esm/index.js
CHANGED
|
@@ -70,7 +70,7 @@ export { default as VerticalHero } from './VerticalHero.js';
|
|
|
70
70
|
export { default as YahooHero } from './YahooHero.js';
|
|
71
71
|
export { default as GridHero } from './GridHero.js';
|
|
72
72
|
export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
|
|
73
|
-
export { g as getSerializers } from './index-
|
|
73
|
+
export { g as getSerializers } from './index-d6ad9248.js';
|
|
74
74
|
export { default as Beam } from './Beam.js';
|
|
75
75
|
export { default as Segment } from './Segment.js';
|
|
76
76
|
export { default as KMTracker } from './KMTracker.js';
|
|
@@ -104,7 +104,7 @@ import './web.dom.iterable-035980f3.js';
|
|
|
104
104
|
import './_is-array-674f71ec.js';
|
|
105
105
|
import './_library-528f1934.js';
|
|
106
106
|
import 'react';
|
|
107
|
-
import './index-
|
|
107
|
+
import './index-888f9253.js';
|
|
108
108
|
import 'prop-types';
|
|
109
109
|
import 'react-bootstrap/Container';
|
|
110
110
|
import 'react-bootstrap/Row';
|
|
@@ -121,11 +121,10 @@ import './index-3f5c03b2.js';
|
|
|
121
121
|
import './index-752d1dae.js';
|
|
122
122
|
import './main-1450d277.js';
|
|
123
123
|
import './entities-932b50cf.js';
|
|
124
|
-
import './ADInfeed-
|
|
125
|
-
import './stringify-d4839bab.js';
|
|
124
|
+
import './ADInfeed-3a9eef39.js';
|
|
126
125
|
import './slicedToArray-cdeaee08.js';
|
|
127
126
|
import './lodash-ad27652f.js';
|
|
128
|
-
import './ADlgInfeed-
|
|
127
|
+
import './ADlgInfeed-8d63ff91.js';
|
|
129
128
|
import './getContentCategory-15dcc413.js';
|
|
130
129
|
import './get-5ee14cda.js';
|
|
131
130
|
import './AuthorComponent-c7ff069f.js';
|
|
@@ -144,6 +143,7 @@ import 'react-bootstrap/Button';
|
|
|
144
143
|
import 'react-bootstrap/Badge';
|
|
145
144
|
import './defineProperty-ea516b15.js';
|
|
146
145
|
import './_object-to-array-8f409e54.js';
|
|
146
|
+
import './stringify-d4839bab.js';
|
|
147
147
|
import 'react-bootstrap/Spinner';
|
|
148
148
|
import 'react-bootstrap/Form';
|
|
149
149
|
import './index-ccb770c7.js';
|