@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
package/dist/esm/AD300x250.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './stringify-d4839bab.js';
|
|
2
2
|
import { _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
|
|
3
3
|
import React, { useState, useEffect } from 'react';
|
|
4
4
|
import { m as main_40 } from './main-1450d277.js';
|
|
@@ -11,7 +11,7 @@ import './core.get-iterator-method-d1d5ed02.js';
|
|
|
11
11
|
import './extends-31d65aba.js';
|
|
12
12
|
import './_object-pie-33c40e79.js';
|
|
13
13
|
import 'prop-types';
|
|
14
|
-
import './index-
|
|
14
|
+
import './index-888f9253.js';
|
|
15
15
|
import './debounce-1a993acf.js';
|
|
16
16
|
import './isSymbol-807e927e.js';
|
|
17
17
|
import './Beam.js';
|
|
@@ -39,9 +39,9 @@ var AD300x250 = function AD300x250(_ref) {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
var _useState = useState(true),
|
|
42
|
-
_useState2 = _slicedToArray(_useState, 2)
|
|
43
|
-
|
|
44
|
-
setPreviewAd = _useState2[1];
|
|
42
|
+
_useState2 = _slicedToArray(_useState, 2);
|
|
43
|
+
_useState2[0];
|
|
44
|
+
var setPreviewAd = _useState2[1];
|
|
45
45
|
|
|
46
46
|
useEffect(function () {
|
|
47
47
|
var path = window && window.location && window.location.search;
|
|
@@ -65,51 +65,6 @@ var AD300x250 = function AD300x250(_ref) {
|
|
|
65
65
|
var browserSizes = [[300, 250], [300, 100]];
|
|
66
66
|
var mobileSizes = [[300, 250], [300, 100]];
|
|
67
67
|
|
|
68
|
-
// Function to collapse ad
|
|
69
|
-
var collapseAd = function collapseAd(slotID) {
|
|
70
|
-
var parent = document.getElementById(slotID);
|
|
71
|
-
// finding the parent wrapper div
|
|
72
|
-
var parentWrapper = parent && parent.closest('.AD300x250');
|
|
73
|
-
var mediaWrapper = parent && parent.closest('.media');
|
|
74
|
-
// collapsing the parent wrapper div
|
|
75
|
-
if (parentWrapper) {
|
|
76
|
-
parentWrapper.style.display = 'none';
|
|
77
|
-
} else if (mediaWrapper) {
|
|
78
|
-
mediaWrapper.style.display = 'none';
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
parent.style.height = '0%';
|
|
82
|
-
parent.style.width = '0%';
|
|
83
|
-
parent.style.display = 'none';
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
// CallBack function to check if ad has got creative or not.
|
|
87
|
-
var checkIsAdFound = function checkIsAdFound(isFound, adData) {
|
|
88
|
-
if (isFound) {
|
|
89
|
-
// Dynamically fetching parent from slotID to display or collapse.
|
|
90
|
-
var parent = document.getElementById(adData.slotId);
|
|
91
|
-
|
|
92
|
-
var adSizes = [[1, 1]];
|
|
93
|
-
// Collapsing ad if the as size is [1,1]
|
|
94
|
-
if (adData && adData.event && adData.event.size) {
|
|
95
|
-
var checkAdSize = function checkAdSize(size) {
|
|
96
|
-
return _JSON$stringify(size) === _JSON$stringify(adData.event.size);
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
if (adSizes.some(checkAdSize)) {
|
|
100
|
-
// passing slotID to collape
|
|
101
|
-
collapseAd(adData.slotId);
|
|
102
|
-
parent.style.display = 'none';
|
|
103
|
-
} else {
|
|
104
|
-
parent.style.display = 'block';
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
} else {
|
|
108
|
-
// collapsing ad if no creative is found
|
|
109
|
-
collapseAd(adData.slotId);
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
|
|
113
68
|
return React.createElement(
|
|
114
69
|
'div',
|
|
115
70
|
null,
|
|
@@ -121,8 +76,8 @@ var AD300x250 = function AD300x250(_ref) {
|
|
|
121
76
|
className: 'AD300x250',
|
|
122
77
|
sizes: mobileView ? mobileSizes : browserSizes
|
|
123
78
|
/* Passing function to check for ad creative only if it is not in preview. */
|
|
124
|
-
|
|
125
|
-
style
|
|
79
|
+
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
80
|
+
// style={{ display: 'none' }}
|
|
126
81
|
}),
|
|
127
82
|
React.createElement(
|
|
128
83
|
'style',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './stringify-d4839bab.js';
|
|
2
2
|
import { _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
|
|
3
3
|
import React, { useState, useEffect } from 'react';
|
|
4
4
|
import { m as main_40 } from './main-1450d277.js';
|
|
@@ -11,7 +11,7 @@ import './core.get-iterator-method-d1d5ed02.js';
|
|
|
11
11
|
import './extends-31d65aba.js';
|
|
12
12
|
import './_object-pie-33c40e79.js';
|
|
13
13
|
import 'prop-types';
|
|
14
|
-
import './index-
|
|
14
|
+
import './index-888f9253.js';
|
|
15
15
|
import './debounce-1a993acf.js';
|
|
16
16
|
import './isSymbol-807e927e.js';
|
|
17
17
|
import './Beam.js';
|
|
@@ -39,9 +39,9 @@ var AD300x250x600 = function AD300x250x600(_ref) {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
var _useState = useState(true),
|
|
42
|
-
_useState2 = _slicedToArray(_useState, 2)
|
|
43
|
-
|
|
44
|
-
setPreviewAd = _useState2[1];
|
|
42
|
+
_useState2 = _slicedToArray(_useState, 2);
|
|
43
|
+
_useState2[0];
|
|
44
|
+
var setPreviewAd = _useState2[1];
|
|
45
45
|
|
|
46
46
|
useEffect(function () {
|
|
47
47
|
var path = window && window.location && window.location.search;
|
|
@@ -79,51 +79,6 @@ var AD300x250x600 = function AD300x250x600(_ref) {
|
|
|
79
79
|
sizes: [[300, 100], [300, 250]]
|
|
80
80
|
}];
|
|
81
81
|
|
|
82
|
-
// Function to collapse ad
|
|
83
|
-
var collapseAd = function collapseAd(slotID) {
|
|
84
|
-
var parent = document.getElementById(slotID);
|
|
85
|
-
// finding the parent wrapper div
|
|
86
|
-
var parentWrapper = parent && parent.closest('.AD300x250');
|
|
87
|
-
var mediaWrapper = parent && parent.closest('.media');
|
|
88
|
-
// collapsing the parent wrapper div
|
|
89
|
-
if (parentWrapper) {
|
|
90
|
-
parentWrapper.style.display = 'none';
|
|
91
|
-
} else if (mediaWrapper) {
|
|
92
|
-
mediaWrapper.style.display = 'none';
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
parent.style.height = '0%';
|
|
96
|
-
parent.style.width = '0%';
|
|
97
|
-
parent.style.display = 'none';
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
// CallBack function to check if ad has got creative or not.
|
|
101
|
-
var checkIsAdFound = function checkIsAdFound(isFound, adData) {
|
|
102
|
-
if (isFound) {
|
|
103
|
-
// Dynamically fetching parent from slotID to display or collapse.
|
|
104
|
-
var parent = document.getElementById(adData.slotId);
|
|
105
|
-
|
|
106
|
-
var adSizes = [[1, 1]];
|
|
107
|
-
// Collapsing ad if the as size is [1,1]
|
|
108
|
-
if (adData && adData.event && adData.event.size) {
|
|
109
|
-
var checkAdSize = function checkAdSize(size) {
|
|
110
|
-
return _JSON$stringify(size) === _JSON$stringify(adData.event.size);
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
if (adSizes.some(checkAdSize)) {
|
|
114
|
-
// passing slotID to collape
|
|
115
|
-
collapseAd(adData.slotId);
|
|
116
|
-
parent.style.display = 'none';
|
|
117
|
-
} else {
|
|
118
|
-
parent.style.display = 'block';
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
} else {
|
|
122
|
-
// collapsing ad if no creative is found
|
|
123
|
-
collapseAd(adData.slotId);
|
|
124
|
-
}
|
|
125
|
-
};
|
|
126
|
-
|
|
127
82
|
return React.createElement(
|
|
128
83
|
'div',
|
|
129
84
|
null,
|
|
@@ -138,8 +93,8 @@ var AD300x250x600 = function AD300x250x600(_ref) {
|
|
|
138
93
|
// setting responsive sizemapping to make the ads responsive.
|
|
139
94
|
, sizeMapping: sizeMapping
|
|
140
95
|
/* Passing function to check for ad creative only if it is not in preview. */
|
|
141
|
-
|
|
142
|
-
style
|
|
96
|
+
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
97
|
+
// style={{ display: 'none' }}
|
|
143
98
|
}),
|
|
144
99
|
React.createElement(
|
|
145
100
|
'style',
|
package/dist/esm/AD728x90.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './stringify-d4839bab.js';
|
|
2
2
|
import { _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
|
|
3
3
|
import React, { useState, useEffect } from 'react';
|
|
4
4
|
import { m as main_40 } from './main-1450d277.js';
|
|
@@ -11,7 +11,7 @@ import './core.get-iterator-method-d1d5ed02.js';
|
|
|
11
11
|
import './extends-31d65aba.js';
|
|
12
12
|
import './_object-pie-33c40e79.js';
|
|
13
13
|
import 'prop-types';
|
|
14
|
-
import './index-
|
|
14
|
+
import './index-888f9253.js';
|
|
15
15
|
import './debounce-1a993acf.js';
|
|
16
16
|
import './isSymbol-807e927e.js';
|
|
17
17
|
import './Beam.js';
|
|
@@ -39,9 +39,9 @@ var AD728x90 = function AD728x90(_ref) {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
var _useState = useState(true),
|
|
42
|
-
_useState2 = _slicedToArray(_useState, 2)
|
|
43
|
-
|
|
44
|
-
setPreviewAd = _useState2[1];
|
|
42
|
+
_useState2 = _slicedToArray(_useState, 2);
|
|
43
|
+
_useState2[0];
|
|
44
|
+
var setPreviewAd = _useState2[1];
|
|
45
45
|
|
|
46
46
|
useEffect(function () {
|
|
47
47
|
var path = window && window.location && window.location.search;
|
|
@@ -65,40 +65,6 @@ var AD728x90 = function AD728x90(_ref) {
|
|
|
65
65
|
var browserSizes = [[728, 90], [970, 90], [320, 50], [300, 50]];
|
|
66
66
|
var mobileSizes = [[320, 50], [300, 50]];
|
|
67
67
|
|
|
68
|
-
// Function to collapse ad
|
|
69
|
-
var collapseAd = function collapseAd(slotID) {
|
|
70
|
-
var parent = document.getElementById(slotID);
|
|
71
|
-
parent.style.height = '0%';
|
|
72
|
-
parent.style.width = '0%';
|
|
73
|
-
parent.style.display = 'none';
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
// CallBack function to check if ad has got creative or not.
|
|
77
|
-
var checkIsAdFound = function checkIsAdFound(isFound, adData) {
|
|
78
|
-
if (isFound) {
|
|
79
|
-
// Dynamically fetching parent from slotID to display or collapse.
|
|
80
|
-
var parent = document.getElementById(adData.slotId);
|
|
81
|
-
var adSizes = [[1, 1]];
|
|
82
|
-
// Collapsing ad if the as size is [1,1]
|
|
83
|
-
if (adData && adData.event && adData.event.size) {
|
|
84
|
-
var checkAdSize = function checkAdSize(size) {
|
|
85
|
-
return _JSON$stringify(size) === _JSON$stringify(adData.event.size);
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
if (adSizes.some(checkAdSize)) {
|
|
89
|
-
// passing slotID to collape
|
|
90
|
-
collapseAd(adData.slotId);
|
|
91
|
-
parent.style.display = 'none';
|
|
92
|
-
} else {
|
|
93
|
-
parent.style.display = 'block';
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
} else {
|
|
97
|
-
// collapsing ad if no creative is found
|
|
98
|
-
collapseAd(adData.slotId);
|
|
99
|
-
}
|
|
100
|
-
};
|
|
101
|
-
|
|
102
68
|
return React.createElement(
|
|
103
69
|
'div',
|
|
104
70
|
{ className: 'leaderboard-ad-wrapper' },
|
|
@@ -117,7 +83,7 @@ var AD728x90 = function AD728x90(_ref) {
|
|
|
117
83
|
sizes: [[320, 50], [300, 50]]
|
|
118
84
|
}]
|
|
119
85
|
/* Passing function to check for ad creative only if it is not in preview. */
|
|
120
|
-
|
|
86
|
+
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
121
87
|
}),
|
|
122
88
|
React.createElement(
|
|
123
89
|
'style',
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { _ as _JSON$stringify } from './stringify-d4839bab.js';
|
|
2
1
|
import { _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
|
|
3
2
|
import React, { useState, useEffect } from 'react';
|
|
4
3
|
import DFPAdSlot from './AdSlot.js';
|
|
5
4
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
6
|
-
import './_to-object-97770c52.js';
|
|
7
5
|
import './web.dom.iterable-035980f3.js';
|
|
8
6
|
import './es6.string.iterator-aa6068a3.js';
|
|
7
|
+
import './_to-object-97770c52.js';
|
|
9
8
|
import './core.get-iterator-method-d1d5ed02.js';
|
|
10
9
|
import './extends-31d65aba.js';
|
|
11
10
|
import './_object-pie-33c40e79.js';
|
|
12
11
|
import 'prop-types';
|
|
13
|
-
import './index-
|
|
12
|
+
import './index-888f9253.js';
|
|
14
13
|
import './debounce-1a993acf.js';
|
|
15
14
|
import './isSymbol-807e927e.js';
|
|
16
15
|
import './Beam.js';
|
|
16
|
+
import './stringify-d4839bab.js';
|
|
17
17
|
import './asyncToGenerator-2bd4099a.js';
|
|
18
18
|
import './_library-528f1934.js';
|
|
19
19
|
import './_set-species-494ed292.js';
|
|
@@ -53,9 +53,9 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
|
|
|
53
53
|
setWidthFlag = _useState2[1];
|
|
54
54
|
|
|
55
55
|
var _useState3 = useState(true),
|
|
56
|
-
_useState4 = _slicedToArray(_useState3, 2)
|
|
57
|
-
|
|
58
|
-
setPreviewAd = _useState4[1];
|
|
56
|
+
_useState4 = _slicedToArray(_useState3, 2);
|
|
57
|
+
_useState4[0];
|
|
58
|
+
var setPreviewAd = _useState4[1];
|
|
59
59
|
|
|
60
60
|
useEffect(function () {
|
|
61
61
|
var path = window && window.location && window.location.search;
|
|
@@ -88,41 +88,12 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
|
|
|
88
88
|
parent.classList.add('hide-floating');
|
|
89
89
|
};
|
|
90
90
|
|
|
91
|
-
var checkIsAdFound = function checkIsAdFound(isFound, adData) {
|
|
92
|
-
if (isFound) {
|
|
93
|
-
var parent = document.getElementById('floating-ad-wrapper');
|
|
94
|
-
|
|
95
|
-
var adSizes = [[1, 1]];
|
|
96
|
-
if (adData && adData.event && adData.event.size) {
|
|
97
|
-
var checkAdSize = function checkAdSize(size) {
|
|
98
|
-
return _JSON$stringify(size) === _JSON$stringify(adData.event.size);
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
if (adSizes.some(checkAdSize)) {
|
|
102
|
-
collapseAd();
|
|
103
|
-
parent.classList.add('hide-floating');
|
|
104
|
-
parent.classList.remove('display-floating');
|
|
105
|
-
} else {
|
|
106
|
-
parent.classList.remove('hide-floating');
|
|
107
|
-
parent.classList.add('display-floating');
|
|
108
|
-
}
|
|
109
|
-
// Need to add this CSS in site level magazine.css to make the close button visible for the expanded ad.
|
|
110
|
-
/* .w7e-platform-58 {
|
|
111
|
-
z-index: 9999999 !important;
|
|
112
|
-
}
|
|
113
|
-
*/
|
|
114
|
-
}
|
|
115
|
-
} else {
|
|
116
|
-
collapseAd();
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
|
-
|
|
120
91
|
return React.createElement(
|
|
121
92
|
React.Fragment,
|
|
122
93
|
null,
|
|
123
94
|
widthFlag && adTargeting.document_url && React.createElement(
|
|
124
95
|
'div',
|
|
125
|
-
{ id: 'floating-ad-wrapper', className: 'floating-ad-wrapper
|
|
96
|
+
{ id: 'floating-ad-wrapper', className: 'floating-ad-wrapper display-floating ' + title },
|
|
126
97
|
React.createElement(DFPAdSlot, {
|
|
127
98
|
className: className,
|
|
128
99
|
slotId: slotId,
|
|
@@ -132,7 +103,7 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
|
|
|
132
103
|
targeting: adTargeting,
|
|
133
104
|
refreshFlag: refreshFlag
|
|
134
105
|
/* Passing function to check for ad creative only if it is not in preview. */
|
|
135
|
-
|
|
106
|
+
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
136
107
|
}),
|
|
137
108
|
React.createElement(
|
|
138
109
|
'div',
|
package/dist/esm/ADGutter.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { _ as _JSON$stringify } from './stringify-d4839bab.js';
|
|
2
1
|
import { _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
|
|
3
2
|
import React, { useState, useEffect } from 'react';
|
|
4
3
|
import DFPAdSlot from './AdSlot.js';
|
|
5
4
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
6
|
-
import './_to-object-97770c52.js';
|
|
7
5
|
import './web.dom.iterable-035980f3.js';
|
|
8
6
|
import './es6.string.iterator-aa6068a3.js';
|
|
7
|
+
import './_to-object-97770c52.js';
|
|
9
8
|
import './core.get-iterator-method-d1d5ed02.js';
|
|
10
9
|
import './extends-31d65aba.js';
|
|
11
10
|
import './_object-pie-33c40e79.js';
|
|
12
11
|
import 'prop-types';
|
|
13
|
-
import './index-
|
|
12
|
+
import './index-888f9253.js';
|
|
14
13
|
import './debounce-1a993acf.js';
|
|
15
14
|
import './isSymbol-807e927e.js';
|
|
16
15
|
import './Beam.js';
|
|
16
|
+
import './stringify-d4839bab.js';
|
|
17
17
|
import './asyncToGenerator-2bd4099a.js';
|
|
18
18
|
import './_library-528f1934.js';
|
|
19
19
|
import './_set-species-494ed292.js';
|
|
@@ -56,9 +56,9 @@ var ADGutter = function ADGutter(_ref) {
|
|
|
56
56
|
setWidthFlag = _useState2[1];
|
|
57
57
|
|
|
58
58
|
var _useState3 = useState(true),
|
|
59
|
-
_useState4 = _slicedToArray(_useState3, 2)
|
|
60
|
-
|
|
61
|
-
setPreviewAd = _useState4[1];
|
|
59
|
+
_useState4 = _slicedToArray(_useState3, 2);
|
|
60
|
+
_useState4[0];
|
|
61
|
+
var setPreviewAd = _useState4[1];
|
|
62
62
|
|
|
63
63
|
useEffect(function () {
|
|
64
64
|
var path = window && window.location && window.location.search;
|
|
@@ -74,38 +74,6 @@ var ADGutter = function ADGutter(_ref) {
|
|
|
74
74
|
}
|
|
75
75
|
}, [minScreenWidth]);
|
|
76
76
|
|
|
77
|
-
// Collapsing webcast AD if no creative is found.
|
|
78
|
-
var collapseAd = function collapseAd() {
|
|
79
|
-
var parent = document.getElementById('webcast-ad-wrapper');
|
|
80
|
-
parent.style.height = '0%';
|
|
81
|
-
parent.style.width = '0%';
|
|
82
|
-
parent.style.display = 'none';
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
var checkIsAdFound = function checkIsAdFound(isFound, adData) {
|
|
86
|
-
// Check for creative ID.
|
|
87
|
-
if (isFound) {
|
|
88
|
-
var parent = document.getElementById('gutter-ad-wrapper');
|
|
89
|
-
var adSizes = [[1, 1]];
|
|
90
|
-
// Collapsing ad if the as size is [1,1]
|
|
91
|
-
if (adData && adData.event && adData.event.size) {
|
|
92
|
-
var checkAdSize = function checkAdSize(size) {
|
|
93
|
-
return _JSON$stringify(size) === _JSON$stringify(adData.event.size);
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
if (adSizes.some(checkAdSize)) {
|
|
97
|
-
// collapsing webcast AD.
|
|
98
|
-
collapseAd();
|
|
99
|
-
parent.style.display = 'none';
|
|
100
|
-
} else {
|
|
101
|
-
parent.style.display = 'block';
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
} else {
|
|
105
|
-
collapseAd();
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
|
|
109
77
|
if (widthFlag) {
|
|
110
78
|
return React.createElement(
|
|
111
79
|
React.Fragment,
|
|
@@ -126,7 +94,7 @@ var ADGutter = function ADGutter(_ref) {
|
|
|
126
94
|
/* Passing refresh flag */
|
|
127
95
|
, refreshFlag: refreshFlag
|
|
128
96
|
/* Passing function to check for ad creative only if it is not in preview. */
|
|
129
|
-
|
|
97
|
+
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
130
98
|
})
|
|
131
99
|
)
|
|
132
100
|
),
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { _ as _JSON$stringify } from './stringify-d4839bab.js';
|
|
2
1
|
import { _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
|
|
3
2
|
import React, { useState, useEffect } from 'react';
|
|
4
3
|
import Card from 'react-bootstrap/Card';
|
|
@@ -18,9 +17,9 @@ var ADInfeed = function ADInfeed(_ref) {
|
|
|
18
17
|
sizes = infeedAd.sizes;
|
|
19
18
|
|
|
20
19
|
var _useState = useState(true),
|
|
21
|
-
_useState2 = _slicedToArray(_useState, 2)
|
|
22
|
-
|
|
23
|
-
setPreviewAd = _useState2[1];
|
|
20
|
+
_useState2 = _slicedToArray(_useState, 2);
|
|
21
|
+
_useState2[0];
|
|
22
|
+
var setPreviewAd = _useState2[1];
|
|
24
23
|
|
|
25
24
|
useEffect(function () {
|
|
26
25
|
var path = window && window.location && window.location.search;
|
|
@@ -30,40 +29,9 @@ var ADInfeed = function ADInfeed(_ref) {
|
|
|
30
29
|
}));
|
|
31
30
|
}, []);
|
|
32
31
|
|
|
33
|
-
var collapseAd = function collapseAd() {
|
|
34
|
-
var parent = document.getElementById('brand-insight-wrapper-' + (index + 1));
|
|
35
|
-
parent.style.height = '0%';
|
|
36
|
-
parent.style.width = '0%';
|
|
37
|
-
parent.style.display = 'none';
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
var checkIsAdFound = function checkIsAdFound(isFound, adData) {
|
|
41
|
-
if (isFound) {
|
|
42
|
-
var parent = document.getElementById('brand-insight-wrapper-' + (index + 1));
|
|
43
|
-
|
|
44
|
-
var adSizes = [[1, 1]];
|
|
45
|
-
// Collapsing ad if the as size is [1,1]
|
|
46
|
-
if (adData && adData.event && adData.event.size) {
|
|
47
|
-
var checkAdSize = function checkAdSize(size) {
|
|
48
|
-
return _JSON$stringify(size) === _JSON$stringify(adData.event.size);
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
if (adSizes.some(checkAdSize)) {
|
|
52
|
-
// collapsing infeed AD.
|
|
53
|
-
collapseAd();
|
|
54
|
-
parent.style.display = 'none';
|
|
55
|
-
} else {
|
|
56
|
-
parent.style.display = 'flex';
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
} else {
|
|
60
|
-
collapseAd();
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
|
|
64
32
|
return React.createElement(
|
|
65
33
|
'div',
|
|
66
|
-
{ id: 'brand-insight-wrapper-' + (index + 1), className: 'brand-insight-wrapper', style: { display: '
|
|
34
|
+
{ id: 'brand-insight-wrapper-' + (index + 1), className: 'brand-insight-wrapper', style: { display: 'flex', flex: '1 0 auto' } },
|
|
67
35
|
React.createElement(
|
|
68
36
|
Card,
|
|
69
37
|
{ className: 'ad-wrapper', style: { display: 'block !important', flexDirection: index === 0 || index % 4 === 0 ? 'top' : 'row' } },
|
|
@@ -75,7 +43,7 @@ var ADInfeed = function ADInfeed(_ref) {
|
|
|
75
43
|
targeting: targeting,
|
|
76
44
|
sizes: sizes
|
|
77
45
|
/* Passing function to check for ad creative only if it is not in preview. */
|
|
78
|
-
|
|
46
|
+
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
79
47
|
/* Passing refresh flag */
|
|
80
48
|
, refreshFlag: refreshFlag
|
|
81
49
|
})
|
package/dist/esm/ADSkyscraper.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { _ as _JSON$stringify } from './stringify-d4839bab.js';
|
|
2
1
|
import { _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
|
|
3
2
|
import React, { useState, useEffect } from 'react';
|
|
4
3
|
import DFPAdSlot from './AdSlot.js';
|
|
5
4
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
6
|
-
import './_to-object-97770c52.js';
|
|
7
5
|
import './web.dom.iterable-035980f3.js';
|
|
8
6
|
import './es6.string.iterator-aa6068a3.js';
|
|
7
|
+
import './_to-object-97770c52.js';
|
|
9
8
|
import './core.get-iterator-method-d1d5ed02.js';
|
|
10
9
|
import './extends-31d65aba.js';
|
|
11
10
|
import './_object-pie-33c40e79.js';
|
|
12
11
|
import 'prop-types';
|
|
13
|
-
import './index-
|
|
12
|
+
import './index-888f9253.js';
|
|
14
13
|
import './debounce-1a993acf.js';
|
|
15
14
|
import './isSymbol-807e927e.js';
|
|
16
15
|
import './Beam.js';
|
|
16
|
+
import './stringify-d4839bab.js';
|
|
17
17
|
import './asyncToGenerator-2bd4099a.js';
|
|
18
18
|
import './_library-528f1934.js';
|
|
19
19
|
import './_set-species-494ed292.js';
|
|
@@ -58,9 +58,9 @@ var ADSkyscraper = function ADSkyscraper(_ref) {
|
|
|
58
58
|
setWidthFlag = _useState2[1];
|
|
59
59
|
|
|
60
60
|
var _useState3 = useState(true),
|
|
61
|
-
_useState4 = _slicedToArray(_useState3, 2)
|
|
62
|
-
|
|
63
|
-
setPreviewAd = _useState4[1];
|
|
61
|
+
_useState4 = _slicedToArray(_useState3, 2);
|
|
62
|
+
_useState4[0];
|
|
63
|
+
var setPreviewAd = _useState4[1];
|
|
64
64
|
|
|
65
65
|
useEffect(function () {
|
|
66
66
|
var path = window && window.location && window.location.search;
|
|
@@ -76,39 +76,6 @@ var ADSkyscraper = function ADSkyscraper(_ref) {
|
|
|
76
76
|
setWidthFlag(true);
|
|
77
77
|
}
|
|
78
78
|
}, [minScreenWidth]);
|
|
79
|
-
|
|
80
|
-
// Function to collapse skyscrapper ad.
|
|
81
|
-
var collapseAd = function collapseAd() {
|
|
82
|
-
var parent = document.getElementById('skyscraper-ad-wrapper');
|
|
83
|
-
parent.style.height = '0%';
|
|
84
|
-
parent.style.width = '0%';
|
|
85
|
-
parent.style.display = 'none';
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
// Function to check if the skyscrapper ad is available or not.
|
|
89
|
-
var checkIsAdFound = function checkIsAdFound(isFound, adData) {
|
|
90
|
-
if (isFound) {
|
|
91
|
-
var parent = document.getElementById('skyscraper-ad-wrapper');
|
|
92
|
-
|
|
93
|
-
var adSizes = [[1, 1]];
|
|
94
|
-
// Collapsing ad if the as size is [1,1]
|
|
95
|
-
if (adData && adData.event && adData.event.size) {
|
|
96
|
-
var checkAdSize = function checkAdSize(size) {
|
|
97
|
-
return _JSON$stringify(size) === _JSON$stringify(adData.event.size);
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
if (adSizes.some(checkAdSize)) {
|
|
101
|
-
// collapsing skyscrapper AD.
|
|
102
|
-
collapseAd();
|
|
103
|
-
parent.style.display = 'none';
|
|
104
|
-
} else {
|
|
105
|
-
parent.style.display = 'block';
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
} else {
|
|
109
|
-
collapseAd();
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
79
|
if (widthFlag) {
|
|
113
80
|
return React.createElement(
|
|
114
81
|
React.Fragment,
|
|
@@ -129,7 +96,7 @@ var ADSkyscraper = function ADSkyscraper(_ref) {
|
|
|
129
96
|
/* Passing refresh flag */
|
|
130
97
|
, refreshFlag: refreshFlag
|
|
131
98
|
/* Passing function to check for ad creative only if it is not in preview. */
|
|
132
|
-
|
|
99
|
+
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
133
100
|
})
|
|
134
101
|
),
|
|
135
102
|
React.createElement(
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { _ as _JSON$stringify } from './stringify-d4839bab.js';
|
|
2
1
|
import { _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
|
|
3
2
|
import React, { useState, useEffect } from 'react';
|
|
4
3
|
import DFPAdSlot from './AdSlot.js';
|
|
5
4
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
6
|
-
import './_to-object-97770c52.js';
|
|
7
5
|
import './web.dom.iterable-035980f3.js';
|
|
8
6
|
import './es6.string.iterator-aa6068a3.js';
|
|
7
|
+
import './_to-object-97770c52.js';
|
|
9
8
|
import './core.get-iterator-method-d1d5ed02.js';
|
|
10
9
|
import './extends-31d65aba.js';
|
|
11
10
|
import './_object-pie-33c40e79.js';
|
|
12
11
|
import 'prop-types';
|
|
13
|
-
import './index-
|
|
12
|
+
import './index-888f9253.js';
|
|
14
13
|
import './debounce-1a993acf.js';
|
|
15
14
|
import './isSymbol-807e927e.js';
|
|
16
15
|
import './Beam.js';
|
|
16
|
+
import './stringify-d4839bab.js';
|
|
17
17
|
import './asyncToGenerator-2bd4099a.js';
|
|
18
18
|
import './_library-528f1934.js';
|
|
19
19
|
import './_set-species-494ed292.js';
|
|
@@ -55,9 +55,9 @@ var ADSponsoredResources = function ADSponsoredResources(_ref) {
|
|
|
55
55
|
setWidthFlag = _useState2[1];
|
|
56
56
|
|
|
57
57
|
var _useState3 = useState(true),
|
|
58
|
-
_useState4 = _slicedToArray(_useState3, 2)
|
|
59
|
-
|
|
60
|
-
setPreviewAd = _useState4[1];
|
|
58
|
+
_useState4 = _slicedToArray(_useState3, 2);
|
|
59
|
+
_useState4[0];
|
|
60
|
+
var setPreviewAd = _useState4[1];
|
|
61
61
|
|
|
62
62
|
useEffect(function () {
|
|
63
63
|
var path = window && window.location && window.location.search;
|
|
@@ -73,37 +73,6 @@ var ADSponsoredResources = function ADSponsoredResources(_ref) {
|
|
|
73
73
|
}
|
|
74
74
|
}, [minScreenWidth]);
|
|
75
75
|
|
|
76
|
-
var collapseAd = function collapseAd() {
|
|
77
|
-
var parent = document.getElementById('sponsored-ad-wrapper');
|
|
78
|
-
parent.style.height = '0%';
|
|
79
|
-
parent.style.width = '0%';
|
|
80
|
-
parent.style.display = 'none';
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
var checkIsAdFound = function checkIsAdFound(isFound, adData) {
|
|
84
|
-
if (isFound) {
|
|
85
|
-
var parent = document.getElementById('sponsored-ad-wrapper');
|
|
86
|
-
|
|
87
|
-
var adSizes = [[1, 1]];
|
|
88
|
-
// Collapsing ad if the as size is [1,1]
|
|
89
|
-
if (adData && adData.event && adData.event.size) {
|
|
90
|
-
var checkAdSize = function checkAdSize(size) {
|
|
91
|
-
return _JSON$stringify(size) === _JSON$stringify(adData.event.size);
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
if (adSizes.some(checkAdSize)) {
|
|
95
|
-
// collapsing sponsoredResources AD.
|
|
96
|
-
collapseAd();
|
|
97
|
-
parent.style.display = 'none';
|
|
98
|
-
} else {
|
|
99
|
-
parent.style.display = 'block';
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
} else {
|
|
103
|
-
collapseAd();
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
|
|
107
76
|
if (widthFlag) {
|
|
108
77
|
return React.createElement(
|
|
109
78
|
React.Fragment,
|
|
@@ -124,7 +93,7 @@ var ADSponsoredResources = function ADSponsoredResources(_ref) {
|
|
|
124
93
|
/* Passing refresh flag */
|
|
125
94
|
, refreshFlag: refreshFlag
|
|
126
95
|
/* Passing function to check for ad creative only if it is not in preview. */
|
|
127
|
-
|
|
96
|
+
// checkIsAdFound={previewAd ? null : checkIsAdFound}
|
|
128
97
|
})
|
|
129
98
|
),
|
|
130
99
|
React.createElement(
|