@mjhls/mjh-framework 1.0.621 → 1.0.623-subNav-viewMore-magazine
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 +27 -16
- package/dist/cjs/AD300x250x600.js +30 -19
- package/dist/cjs/AD728x90.js +41 -5
- package/dist/cjs/ADFloatingFooter.js +8 -7
- package/dist/cjs/ADGutter.js +47 -6
- package/dist/cjs/{ADInfeed-17a378db.js → ADInfeed-bee48ae4.js} +19 -3
- package/dist/cjs/ADSkyscraper.js +21 -6
- package/dist/cjs/ADSponsoredResources.js +26 -5
- package/dist/cjs/ADWebcast.js +25 -5
- package/dist/cjs/ADWelcome.js +22 -8
- package/dist/cjs/{ADlgInfeed-070d911c.js → ADlgInfeed-69156702.js} +19 -3
- package/dist/cjs/AdSlot.js +3 -3
- package/dist/cjs/AdSlotsProvider.js +1 -1
- package/dist/cjs/ArticleQueue.js +13 -13
- package/dist/cjs/ArticleSeriesListing.js +5 -5
- package/dist/cjs/Auth.js +256 -507
- package/dist/cjs/{BlockContent-f942392e.js → BlockContent-c2168db0.js} +1 -1
- package/dist/cjs/CMEDeck.js +5 -5
- package/dist/cjs/Column3.js +5 -5
- package/dist/cjs/ConferenceArticleCard.js +2 -2
- package/dist/cjs/DeckContent.js +9 -9
- package/dist/cjs/DeckQueue.js +7 -7
- package/dist/cjs/{Dfp-fbe32b96.js → Dfp-fcdeabc4.js} +1 -1
- package/dist/cjs/EventsDeck.js +6 -6
- package/dist/cjs/ExternalResources.js +9 -9
- package/dist/cjs/Feature.js +3 -3
- package/dist/cjs/ForbesHero.js +2 -2
- package/dist/cjs/GridContent.js +13 -13
- package/dist/cjs/GridHero.js +2 -2
- package/dist/cjs/GroupDeck.js +1 -1
- package/dist/cjs/HamMagazine.js +5 -5
- package/dist/cjs/Hero.js +1 -1
- package/dist/cjs/HorizontalHero.js +2 -2
- package/dist/cjs/IssueContentDeck.js +2 -2
- package/dist/cjs/IssueDeck.js +2 -2
- package/dist/cjs/IssueLanding.js +9 -9
- package/dist/cjs/LeftNav.js +3 -3
- package/dist/cjs/MasterDeck.js +11 -11
- package/dist/cjs/NavDvm.js +1 -1
- package/dist/cjs/NavMagazine.js +20 -5
- package/dist/cjs/NavNative.js +3 -3
- package/dist/cjs/NavNormal.js +1 -1
- package/dist/cjs/OncliveHero.js +2 -2
- package/dist/cjs/OncliveLargeHero.js +2 -2
- package/dist/cjs/PartnerDetailListing.js +1212 -16
- package/dist/cjs/PublicationDeck.js +2 -2
- package/dist/cjs/QueueDeckExpanded.js +11 -11
- package/dist/cjs/RecentNews.js +2 -2
- package/dist/cjs/RelatedContent.js +2 -2
- package/dist/cjs/{SocialSearchComponent-5cbde5e0.js → SocialSearchComponent-57164633.js} +3 -3
- package/dist/cjs/TaxonomyCard.js +2 -2
- package/dist/cjs/TemplateNormal.js +4 -4
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/Ustream.js +2 -2
- package/dist/cjs/VerticalHero.js +2 -2
- package/dist/cjs/VideoSeriesListing.js +5 -5
- package/dist/cjs/View.js +17 -17
- package/dist/cjs/YahooHero.js +2 -2
- package/dist/cjs/YoutubeGroup.js +1 -1
- package/dist/cjs/getRelatedArticle.js +354 -5
- package/dist/cjs/getSerializers.js +8 -8
- package/dist/cjs/{index-5be2866f.js → index-3294d3bc.js} +1 -1
- package/dist/cjs/{index-b5eb3ff8.js → index-39beccb3.js} +18 -18
- package/dist/cjs/{index-77531536.js → index-9ea8efe8.js} +10 -10
- package/dist/cjs/index-bd6c9f56.js +211 -0
- package/dist/cjs/{index-f7ee1612.js → index-fa3cec70.js} +6 -4
- package/dist/cjs/{index.es-ab3f2690.js → index.es-9110add6.js} +1 -3
- package/dist/cjs/index.js +17 -18
- package/dist/cjs/{inherits-dca612fa.js → inherits-227da8e1.js} +4 -4
- package/dist/cjs/{lodash-fc2922d0.js → lodash-7fd85bcf.js} +71 -22
- package/dist/cjs/{main-bc4db521.js → main-88348b15.js} +35 -66
- package/dist/cjs/{moment-66a6a284.js → moment-575fe24c.js} +1 -1
- package/dist/cjs/urlFor.js +1 -1
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +27 -16
- package/dist/esm/AD300x250x600.js +30 -19
- package/dist/esm/AD728x90.js +41 -5
- package/dist/esm/ADFloatingFooter.js +8 -7
- package/dist/esm/ADGutter.js +47 -6
- package/dist/esm/{ADInfeed-0c1bcd33.js → ADInfeed-6cf59c26.js} +19 -3
- package/dist/esm/ADSkyscraper.js +21 -6
- package/dist/esm/ADSponsoredResources.js +26 -5
- package/dist/esm/ADWebcast.js +25 -5
- package/dist/esm/ADWelcome.js +22 -8
- package/dist/esm/{ADlgInfeed-a2518bca.js → ADlgInfeed-1529b85b.js} +19 -3
- package/dist/esm/AdSlot.js +3 -3
- package/dist/esm/AdSlotsProvider.js +1 -1
- package/dist/esm/ArticleQueue.js +12 -12
- package/dist/esm/ArticleSeriesListing.js +4 -4
- package/dist/esm/Auth.js +251 -502
- package/dist/esm/{BlockContent-a614acdf.js → BlockContent-c409aca5.js} +1 -1
- package/dist/esm/CMEDeck.js +5 -5
- package/dist/esm/Column3.js +5 -5
- package/dist/esm/ConferenceArticleCard.js +2 -2
- package/dist/esm/DeckContent.js +8 -8
- package/dist/esm/DeckQueue.js +6 -6
- package/dist/esm/{Dfp-40c70a33.js → Dfp-380bef62.js} +1 -1
- package/dist/esm/EventsDeck.js +6 -6
- package/dist/esm/ExternalResources.js +8 -8
- package/dist/esm/Feature.js +3 -3
- package/dist/esm/ForbesHero.js +2 -2
- package/dist/esm/GridContent.js +12 -12
- package/dist/esm/GridHero.js +2 -2
- package/dist/esm/GroupDeck.js +1 -1
- package/dist/esm/HamMagazine.js +5 -5
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HorizontalHero.js +2 -2
- package/dist/esm/IssueContentDeck.js +2 -2
- package/dist/esm/IssueDeck.js +2 -2
- package/dist/esm/IssueLanding.js +9 -9
- package/dist/esm/LeftNav.js +3 -3
- package/dist/esm/MasterDeck.js +10 -10
- package/dist/esm/NavDvm.js +1 -1
- package/dist/esm/NavMagazine.js +20 -5
- package/dist/esm/NavNative.js +3 -3
- package/dist/esm/NavNormal.js +1 -1
- package/dist/esm/OncliveHero.js +2 -2
- package/dist/esm/OncliveLargeHero.js +2 -2
- package/dist/esm/PartnerDetailListing.js +1211 -15
- package/dist/esm/PublicationDeck.js +2 -2
- package/dist/esm/QueueDeckExpanded.js +11 -11
- package/dist/esm/RecentNews.js +2 -2
- package/dist/esm/RelatedContent.js +2 -2
- package/dist/esm/{SocialSearchComponent-00385695.js → SocialSearchComponent-e9715bbf.js} +3 -3
- package/dist/esm/TaxonomyCard.js +2 -2
- package/dist/esm/TemplateNormal.js +4 -4
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/Ustream.js +2 -2
- package/dist/esm/VerticalHero.js +2 -2
- package/dist/esm/VideoSeriesListing.js +4 -4
- package/dist/esm/View.js +16 -16
- package/dist/esm/YahooHero.js +2 -2
- package/dist/esm/YoutubeGroup.js +1 -1
- package/dist/esm/getRelatedArticle.js +354 -5
- package/dist/esm/getSerializers.js +7 -7
- package/dist/esm/{index-51a80699.js → index-3849e3fe.js} +18 -18
- package/dist/esm/{index-93ec3c59.js → index-3f4dd6f2.js} +6 -4
- package/dist/esm/index-db3bb315.js +207 -0
- package/dist/esm/{index-d2f90501.js → index-ef6d5dcf.js} +1 -1
- package/dist/esm/{index-8a3465af.js → index-efc023e1.js} +9 -9
- package/dist/esm/{index.es-938a3a58.js → index.es-29c1cef5.js} +1 -3
- package/dist/esm/index.js +15 -16
- package/dist/esm/{lodash-17fdfebb.js → lodash-ec8c6b48.js} +71 -22
- package/dist/esm/{main-7255814e.js → main-d7ee6151.js} +34 -65
- package/dist/esm/{moment-12415288.js → moment-e2f9b20c.js} +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/package.json +3 -3
package/dist/esm/ADSkyscraper.js
CHANGED
|
@@ -5,13 +5,13 @@ import './_library-528f1934.js';
|
|
|
5
5
|
import './_iter-detect-70af34ea.js';
|
|
6
6
|
import './web.dom.iterable-5c830d3d.js';
|
|
7
7
|
import React__default, { useState, useEffect } from 'react';
|
|
8
|
-
import './index-
|
|
8
|
+
import './index-3f4dd6f2.js';
|
|
9
9
|
import 'prop-types';
|
|
10
10
|
import './isSymbol-47f5ff3b.js';
|
|
11
11
|
import './debounce-a0d9abca.js';
|
|
12
|
-
import './main-
|
|
12
|
+
import './main-d7ee6151.js';
|
|
13
|
+
import { _ as _JSON$stringify } from './stringify-feadff37.js';
|
|
13
14
|
import { _ as _slicedToArray } from './slicedToArray-a58d7edf.js';
|
|
14
|
-
import './stringify-feadff37.js';
|
|
15
15
|
import './asyncToGenerator-d25aac66.js';
|
|
16
16
|
import './_set-species-75f77d40.js';
|
|
17
17
|
import './beam-c40d77ae.js';
|
|
@@ -67,10 +67,25 @@ var ADSkyscraper = function ADSkyscraper(_ref) {
|
|
|
67
67
|
};
|
|
68
68
|
|
|
69
69
|
// Function to check if the skyscrapper ad is available or not.
|
|
70
|
-
var checkIsAdFound = function checkIsAdFound(isFound) {
|
|
70
|
+
var checkIsAdFound = function checkIsAdFound(isFound, adData) {
|
|
71
71
|
if (isFound) {
|
|
72
72
|
var parent = document.getElementById('skyscraper-ad-wrapper');
|
|
73
|
-
|
|
73
|
+
|
|
74
|
+
var adSizes = [[1, 1]];
|
|
75
|
+
// Collapsing ad if the as size is [1,1]
|
|
76
|
+
if (adData && adData.event && adData.event.size) {
|
|
77
|
+
var checkAdSize = function checkAdSize(size) {
|
|
78
|
+
return _JSON$stringify(size) === _JSON$stringify(adData.event.size);
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
if (adSizes.some(checkAdSize)) {
|
|
82
|
+
// collapsing skyscrapper AD.
|
|
83
|
+
collapseAd();
|
|
84
|
+
parent.style.display = 'none';
|
|
85
|
+
} else {
|
|
86
|
+
parent.style.display = 'block';
|
|
87
|
+
}
|
|
88
|
+
}
|
|
74
89
|
} else {
|
|
75
90
|
collapseAd();
|
|
76
91
|
}
|
|
@@ -99,7 +114,7 @@ var ADSkyscraper = function ADSkyscraper(_ref) {
|
|
|
99
114
|
React__default.createElement(
|
|
100
115
|
'style',
|
|
101
116
|
{ jsx: 'true' },
|
|
102
|
-
'\n .skyscraper-ad-wrapper {\n margin-top: 20px;\n margin-bottom: 20px;\n }\n '
|
|
117
|
+
'\n .skyscraper-ad-wrapper {\n margin-top: 20px;\n margin-bottom: 20px;\n }\n .skyscraper-ad-wrapper div[id*=\'google_ads_iframe\']:empty {\n height: 0px !important;\n }\n '
|
|
103
118
|
)
|
|
104
119
|
)
|
|
105
120
|
);
|
|
@@ -5,13 +5,13 @@ import './_library-528f1934.js';
|
|
|
5
5
|
import './_iter-detect-70af34ea.js';
|
|
6
6
|
import './web.dom.iterable-5c830d3d.js';
|
|
7
7
|
import React__default, { useState, useEffect } from 'react';
|
|
8
|
-
import './index-
|
|
8
|
+
import './index-3f4dd6f2.js';
|
|
9
9
|
import 'prop-types';
|
|
10
10
|
import './isSymbol-47f5ff3b.js';
|
|
11
11
|
import './debounce-a0d9abca.js';
|
|
12
|
-
import './main-
|
|
12
|
+
import './main-d7ee6151.js';
|
|
13
|
+
import { _ as _JSON$stringify } from './stringify-feadff37.js';
|
|
13
14
|
import { _ as _slicedToArray } from './slicedToArray-a58d7edf.js';
|
|
14
|
-
import './stringify-feadff37.js';
|
|
15
15
|
import './asyncToGenerator-d25aac66.js';
|
|
16
16
|
import './_set-species-75f77d40.js';
|
|
17
17
|
import './beam-c40d77ae.js';
|
|
@@ -61,14 +61,30 @@ var ADSponsoredResources = function ADSponsoredResources(_ref) {
|
|
|
61
61
|
parent.style.display = 'none';
|
|
62
62
|
};
|
|
63
63
|
|
|
64
|
-
var checkIsAdFound = function checkIsAdFound(isFound) {
|
|
64
|
+
var checkIsAdFound = function checkIsAdFound(isFound, adData) {
|
|
65
65
|
if (isFound) {
|
|
66
66
|
var parent = document.getElementById('sponsored-ad-wrapper');
|
|
67
|
-
|
|
67
|
+
|
|
68
|
+
var adSizes = [[1, 1]];
|
|
69
|
+
// Collapsing ad if the as size is [1,1]
|
|
70
|
+
if (adData && adData.event && adData.event.size) {
|
|
71
|
+
var checkAdSize = function checkAdSize(size) {
|
|
72
|
+
return _JSON$stringify(size) === _JSON$stringify(adData.event.size);
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
if (adSizes.some(checkAdSize)) {
|
|
76
|
+
// collapsing sponsoredResources AD.
|
|
77
|
+
collapseAd();
|
|
78
|
+
parent.style.display = 'none';
|
|
79
|
+
} else {
|
|
80
|
+
parent.style.display = 'block';
|
|
81
|
+
}
|
|
82
|
+
}
|
|
68
83
|
} else {
|
|
69
84
|
collapseAd();
|
|
70
85
|
}
|
|
71
86
|
};
|
|
87
|
+
|
|
72
88
|
if (widthFlag) {
|
|
73
89
|
return React__default.createElement(
|
|
74
90
|
React__default.Fragment,
|
|
@@ -89,6 +105,11 @@ var ADSponsoredResources = function ADSponsoredResources(_ref) {
|
|
|
89
105
|
refreshFlag: false,
|
|
90
106
|
checkIsAdFound: checkIsAdFound
|
|
91
107
|
})
|
|
108
|
+
),
|
|
109
|
+
React__default.createElement(
|
|
110
|
+
'style',
|
|
111
|
+
{ jsx: 'true' },
|
|
112
|
+
'\n /* setting height to 0px when the ad slot is empty. */\n .sponsored-ad-wrapper div[id*=\'google_ads_iframe\']:empty {\n height: 0px !important;\n }\n '
|
|
92
113
|
)
|
|
93
114
|
)
|
|
94
115
|
);
|
package/dist/esm/ADWebcast.js
CHANGED
|
@@ -5,13 +5,13 @@ import './_library-528f1934.js';
|
|
|
5
5
|
import './_iter-detect-70af34ea.js';
|
|
6
6
|
import './web.dom.iterable-5c830d3d.js';
|
|
7
7
|
import React__default, { useState, useEffect } from 'react';
|
|
8
|
-
import './index-
|
|
8
|
+
import './index-3f4dd6f2.js';
|
|
9
9
|
import 'prop-types';
|
|
10
10
|
import './isSymbol-47f5ff3b.js';
|
|
11
11
|
import './debounce-a0d9abca.js';
|
|
12
|
-
import './main-
|
|
12
|
+
import './main-d7ee6151.js';
|
|
13
|
+
import { _ as _JSON$stringify } from './stringify-feadff37.js';
|
|
13
14
|
import { _ as _slicedToArray } from './slicedToArray-a58d7edf.js';
|
|
14
|
-
import './stringify-feadff37.js';
|
|
15
15
|
import './asyncToGenerator-d25aac66.js';
|
|
16
16
|
import './_set-species-75f77d40.js';
|
|
17
17
|
import './beam-c40d77ae.js';
|
|
@@ -65,15 +65,30 @@ var ADWebcast = function ADWebcast(_ref) {
|
|
|
65
65
|
parent.style.display = 'none';
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
-
var checkIsAdFound = function checkIsAdFound(isFound) {
|
|
68
|
+
var checkIsAdFound = function checkIsAdFound(isFound, adData) {
|
|
69
69
|
// Check for creative ID.
|
|
70
70
|
if (isFound) {
|
|
71
71
|
var parent = document.getElementById('webcast-ad-wrapper');
|
|
72
|
-
|
|
72
|
+
var adSizes = [[1, 1]];
|
|
73
|
+
// Collapsing ad if the as size is [1,1]
|
|
74
|
+
if (adData && adData.event && adData.event.size) {
|
|
75
|
+
var checkAdSize = function checkAdSize(size) {
|
|
76
|
+
return _JSON$stringify(size) === _JSON$stringify(adData.event.size);
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
if (adSizes.some(checkAdSize)) {
|
|
80
|
+
// collapsing webcast AD.
|
|
81
|
+
collapseAd();
|
|
82
|
+
parent.style.display = 'none';
|
|
83
|
+
} else {
|
|
84
|
+
parent.style.display = 'block';
|
|
85
|
+
}
|
|
86
|
+
}
|
|
73
87
|
} else {
|
|
74
88
|
collapseAd();
|
|
75
89
|
}
|
|
76
90
|
};
|
|
91
|
+
|
|
77
92
|
if (widthFlag) {
|
|
78
93
|
return React__default.createElement(
|
|
79
94
|
React__default.Fragment,
|
|
@@ -96,6 +111,11 @@ var ADWebcast = function ADWebcast(_ref) {
|
|
|
96
111
|
refreshFlag: false,
|
|
97
112
|
checkIsAdFound: checkIsAdFound
|
|
98
113
|
})
|
|
114
|
+
),
|
|
115
|
+
React__default.createElement(
|
|
116
|
+
'style',
|
|
117
|
+
{ jsx: 'true' },
|
|
118
|
+
'\n /* setting height to 0px when the ad slot is empty. */\n .webcast-ad-wrapper div[id*=\'google_ads_iframe\']:empty {\n height: 0px !important;\n }\n '
|
|
99
119
|
)
|
|
100
120
|
)
|
|
101
121
|
);
|
package/dist/esm/ADWelcome.js
CHANGED
|
@@ -5,13 +5,13 @@ import './_library-528f1934.js';
|
|
|
5
5
|
import './_iter-detect-70af34ea.js';
|
|
6
6
|
import './web.dom.iterable-5c830d3d.js';
|
|
7
7
|
import React__default, { useState, useEffect } from 'react';
|
|
8
|
-
import './index-
|
|
8
|
+
import './index-3f4dd6f2.js';
|
|
9
9
|
import 'prop-types';
|
|
10
10
|
import './isSymbol-47f5ff3b.js';
|
|
11
11
|
import './debounce-a0d9abca.js';
|
|
12
|
-
import './main-
|
|
12
|
+
import './main-d7ee6151.js';
|
|
13
|
+
import { _ as _JSON$stringify } from './stringify-feadff37.js';
|
|
13
14
|
import { _ as _slicedToArray } from './slicedToArray-a58d7edf.js';
|
|
14
|
-
import './stringify-feadff37.js';
|
|
15
15
|
import './asyncToGenerator-d25aac66.js';
|
|
16
16
|
import './_set-species-75f77d40.js';
|
|
17
17
|
import './beam-c40d77ae.js';
|
|
@@ -64,12 +64,26 @@ var ADWelcome = function ADWelcome(_ref) {
|
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
66
|
|
|
67
|
-
var checkIsAdFound = function checkIsAdFound(isFound) {
|
|
67
|
+
var checkIsAdFound = function checkIsAdFound(isFound, adData) {
|
|
68
68
|
if (isFound) {
|
|
69
69
|
var parent = document.getElementById('welcome-modal');
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
var adSizes = [[1, 1]];
|
|
71
|
+
// Collapsing ad if the as size is [1,1]
|
|
72
|
+
if (adData && adData.event && adData.event.size) {
|
|
73
|
+
var checkAdSize = function checkAdSize(size) {
|
|
74
|
+
return _JSON$stringify(size) === _JSON$stringify(adData.event.size);
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
if (adSizes.some(checkAdSize)) {
|
|
78
|
+
// collapsing webcast AD.
|
|
79
|
+
setFlag(true);
|
|
80
|
+
document.body.style.overflow = 'auto';
|
|
81
|
+
}
|
|
82
|
+
} else {
|
|
83
|
+
document.body.style.overflow = 'hidden';
|
|
84
|
+
parent.style.display = 'block';
|
|
85
|
+
calculateTimeLeft(counter + 1);
|
|
86
|
+
}
|
|
73
87
|
} else {
|
|
74
88
|
setFlag(true);
|
|
75
89
|
document.body.style.overflow = 'auto';
|
|
@@ -134,7 +148,7 @@ var ADWelcome = function ADWelcome(_ref) {
|
|
|
134
148
|
React__default.createElement(
|
|
135
149
|
'style',
|
|
136
150
|
{ jsx: 'true' },
|
|
137
|
-
'\n .continue-site:hover {\n cursor: pointer;\n }\n\n .welcome-modal {\n max-width: 100% !important;\n margin: 0px !important;\n height: 100vh;\n }\n .welcome-ad-head-wrapper {\n display: flex;\n justify-content: space-between;\n }\n .right-top {\n max-width: 250px;\n padding: 10px;\n }\n .left-top {\n max-width: 250px;\n padding: 10px;\n }\n .' + title + ' {\n width: auto !important;\n padding-top: 25px;\n justify-content: center;\n align-items: center;\n display: flex;\n }\n '
|
|
151
|
+
'\n .continue-site:hover {\n cursor: pointer;\n }\n\n .welcome-modal {\n max-width: 100% !important;\n margin: 0px !important;\n height: 100vh;\n }\n .welcome-ad-head-wrapper {\n display: flex;\n justify-content: space-between;\n }\n .right-top {\n max-width: 250px;\n padding: 10px;\n }\n .left-top {\n max-width: 250px;\n padding: 10px;\n }\n .' + title + ' {\n width: auto !important;\n padding-top: 25px;\n justify-content: center;\n align-items: center;\n display: flex;\n }\n /* setting height to 0px when the ad slot is empty. */\n .' + title + ' div[id*=\'google_ads_iframe\']:empty {\n height: 0px !important;\n }\n '
|
|
138
152
|
)
|
|
139
153
|
);
|
|
140
154
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import 'react-bootstrap/Card';
|
|
3
|
+
import { _ as _JSON$stringify } from './stringify-feadff37.js';
|
|
3
4
|
import DFPAdSlot from './AdSlot.js';
|
|
4
5
|
|
|
5
6
|
var ADlgInfeed = function ADlgInfeed(props) {
|
|
@@ -19,10 +20,25 @@ var ADlgInfeed = function ADlgInfeed(props) {
|
|
|
19
20
|
parent.style.display = 'none';
|
|
20
21
|
};
|
|
21
22
|
|
|
22
|
-
var checkIsAdFound = function checkIsAdFound(isFound) {
|
|
23
|
+
var checkIsAdFound = function checkIsAdFound(isFound, adData) {
|
|
23
24
|
if (isFound) {
|
|
24
25
|
var parent = document.getElementById('lg-infeed-wrapper-' + (index + 1));
|
|
25
|
-
|
|
26
|
+
|
|
27
|
+
var adSizes = [[1, 1]];
|
|
28
|
+
// Collapsing ad if the as size is [1,1]
|
|
29
|
+
if (adData && adData.event && adData.event.size) {
|
|
30
|
+
var checkAdSize = function checkAdSize(size) {
|
|
31
|
+
return _JSON$stringify(size) === _JSON$stringify(adData.event.size);
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
if (adSizes.some(checkAdSize)) {
|
|
35
|
+
// collapsing lg-infeed AD.
|
|
36
|
+
collapseAd();
|
|
37
|
+
parent.style.display = 'none';
|
|
38
|
+
} else {
|
|
39
|
+
parent.style.display = 'flex';
|
|
40
|
+
}
|
|
41
|
+
}
|
|
26
42
|
} else {
|
|
27
43
|
collapseAd();
|
|
28
44
|
}
|
|
@@ -35,7 +51,7 @@ var ADlgInfeed = function ADlgInfeed(props) {
|
|
|
35
51
|
React__default.createElement(
|
|
36
52
|
'style',
|
|
37
53
|
{ jsx: 'true' },
|
|
38
|
-
'\n .lg-infeed-wrapper {\n flex-direction: row;\n margin-bottom: 1.25rem;\n padding-bottom: 1.25rem;\n border-bottom: 1px solid rgb(221, 221, 221);\n }\n '
|
|
54
|
+
'\n .lg-infeed-wrapper {\n flex-direction: row;\n margin-bottom: 1.25rem;\n padding-bottom: 1.25rem;\n border-bottom: 1px solid rgb(221, 221, 221);\n }\n .lg-infeed-wrapper div[id*=\'google_ads_iframe\']:empty {\n height: 0px !important;\n }\n '
|
|
39
55
|
)
|
|
40
56
|
);
|
|
41
57
|
};
|
package/dist/esm/AdSlot.js
CHANGED
|
@@ -5,13 +5,13 @@ import './_library-528f1934.js';
|
|
|
5
5
|
import './_iter-detect-70af34ea.js';
|
|
6
6
|
import './web.dom.iterable-5c830d3d.js';
|
|
7
7
|
import React__default, { useState } from 'react';
|
|
8
|
-
import { a as lib_2 } from './index-
|
|
8
|
+
import { a as lib_2 } from './index-3f4dd6f2.js';
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
10
|
import './isSymbol-47f5ff3b.js';
|
|
11
11
|
import { d as debounce_1 } from './debounce-a0d9abca.js';
|
|
12
|
-
import { b as main_16 } from './main-
|
|
13
|
-
import { _ as _slicedToArray } from './slicedToArray-a58d7edf.js';
|
|
12
|
+
import { b as main_16 } from './main-d7ee6151.js';
|
|
14
13
|
import './stringify-feadff37.js';
|
|
14
|
+
import { _ as _slicedToArray } from './slicedToArray-a58d7edf.js';
|
|
15
15
|
import './asyncToGenerator-d25aac66.js';
|
|
16
16
|
import './_set-species-75f77d40.js';
|
|
17
17
|
import { B as Beam, S as Segment } from './beam-c40d77ae.js';
|
package/dist/esm/ArticleQueue.js
CHANGED
|
@@ -13,33 +13,33 @@ import './web.dom.iterable-5c830d3d.js';
|
|
|
13
13
|
import { _ as _typeof } from './typeof-f11fd438.js';
|
|
14
14
|
import './_is-array-ced12663.js';
|
|
15
15
|
import React__default, { useState, useEffect } from 'react';
|
|
16
|
-
import { l as lib_3 } from './index-
|
|
16
|
+
import { l as lib_3 } from './index-3f4dd6f2.js';
|
|
17
17
|
import 'prop-types';
|
|
18
18
|
import 'react-bootstrap/Row';
|
|
19
19
|
import 'react-bootstrap/Col';
|
|
20
|
-
import { m as moment } from './moment-
|
|
20
|
+
import { m as moment } from './moment-e2f9b20c.js';
|
|
21
21
|
import 'next/router';
|
|
22
22
|
import { i as isObjectLike_1, _ as _baseGetTag, a as _root, b as _freeGlobal } from './isSymbol-47f5ff3b.js';
|
|
23
23
|
import { t as toNumber_1 } from './debounce-a0d9abca.js';
|
|
24
|
-
import { I as InfiniteScroll } from './index.es-
|
|
24
|
+
import { I as InfiniteScroll } from './index.es-29c1cef5.js';
|
|
25
25
|
import 'react-dom';
|
|
26
|
-
import { i as imageUrlBuilder } from './index-
|
|
26
|
+
import { i as imageUrlBuilder } from './index-3849e3fe.js';
|
|
27
27
|
import './index-5f9f807a.js';
|
|
28
|
-
import { m as
|
|
28
|
+
import { m as main_36 } from './main-d7ee6151.js';
|
|
29
29
|
import './entities-7cc3bf45.js';
|
|
30
|
-
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-a58d7edf.js';
|
|
31
30
|
import { _ as _JSON$stringify } from './stringify-feadff37.js';
|
|
31
|
+
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-a58d7edf.js';
|
|
32
32
|
import './asyncToGenerator-d25aac66.js';
|
|
33
33
|
import './_set-species-75f77d40.js';
|
|
34
34
|
import './beam-c40d77ae.js';
|
|
35
35
|
import DFPAdSlot from './AdSlot.js';
|
|
36
36
|
import { i as isFunction_1, a as isArray_1, _ as _arrayMap } from './_arrayMap-818441dd.js';
|
|
37
|
-
import { B as BlockContent } from './BlockContent-
|
|
37
|
+
import { B as BlockContent } from './BlockContent-c409aca5.js';
|
|
38
38
|
import './smoothscroll-4b699764.js';
|
|
39
39
|
import './GroupDeck.js';
|
|
40
40
|
import 'react-bootstrap';
|
|
41
41
|
import 'react-bootstrap/Button';
|
|
42
|
-
import { I as InscreenSensor, g as getSerializers } from './index-
|
|
42
|
+
import { I as InscreenSensor, g as getSerializers } from './index-efc023e1.js';
|
|
43
43
|
import './util-7700fc59.js';
|
|
44
44
|
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
45
45
|
import 'react-bootstrap/Pagination';
|
|
@@ -1337,7 +1337,7 @@ var Article = function Article(props) {
|
|
|
1337
1337
|
summary
|
|
1338
1338
|
)
|
|
1339
1339
|
),
|
|
1340
|
-
|
|
1340
|
+
main_36 && props.article.Ads.map(function (ad, index) {
|
|
1341
1341
|
if (index === 0) {
|
|
1342
1342
|
return React__default.createElement(
|
|
1343
1343
|
'div',
|
|
@@ -1362,7 +1362,7 @@ var Article = function Article(props) {
|
|
|
1362
1362
|
renderIsiContent(props.article)
|
|
1363
1363
|
)
|
|
1364
1364
|
),
|
|
1365
|
-
|
|
1365
|
+
main_36 && props.article.Ads.map(function (ad, index) {
|
|
1366
1366
|
if (index > 0) {
|
|
1367
1367
|
return React__default.createElement(
|
|
1368
1368
|
'div',
|
|
@@ -1502,7 +1502,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1502
1502
|
});
|
|
1503
1503
|
var targeting = getTargeting(activeArticle);
|
|
1504
1504
|
|
|
1505
|
-
if (!
|
|
1505
|
+
if (!main_36) {
|
|
1506
1506
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1507
1507
|
if (window.googletag && googletag.pubadsReady) {
|
|
1508
1508
|
var slots = googletag.pubads().getSlots();
|
|
@@ -1519,7 +1519,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1519
1519
|
});
|
|
1520
1520
|
}
|
|
1521
1521
|
//Refresh leaderboard ad on mobile
|
|
1522
|
-
if (
|
|
1522
|
+
if (main_36) {
|
|
1523
1523
|
var leaderboardSlotId = '';
|
|
1524
1524
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1525
1525
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -11,17 +11,17 @@ import './web.dom.iterable-5c830d3d.js';
|
|
|
11
11
|
import './typeof-f11fd438.js';
|
|
12
12
|
import './_is-array-ced12663.js';
|
|
13
13
|
import React__default from 'react';
|
|
14
|
-
import { l as lib_3 } from './index-
|
|
14
|
+
import { l as lib_3 } from './index-3f4dd6f2.js';
|
|
15
15
|
import 'prop-types';
|
|
16
16
|
import Container from 'react-bootstrap/Container';
|
|
17
|
-
import './moment-
|
|
17
|
+
import './moment-e2f9b20c.js';
|
|
18
18
|
import { withRouter } from 'next/router';
|
|
19
19
|
import './isSymbol-47f5ff3b.js';
|
|
20
20
|
import { d as debounce_1 } from './debounce-a0d9abca.js';
|
|
21
|
-
import { I as InfiniteScroll } from './index.es-
|
|
21
|
+
import { I as InfiniteScroll } from './index.es-29c1cef5.js';
|
|
22
22
|
import 'react-dom';
|
|
23
23
|
import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
|
|
24
|
-
import './index-
|
|
24
|
+
import './index-3849e3fe.js';
|
|
25
25
|
import './index-5f9f807a.js';
|
|
26
26
|
import './slicedToArray-a58d7edf.js';
|
|
27
27
|
import './smoothscroll-4b699764.js';
|