@mjhls/mjh-framework 1.0.873 → 1.0.874-ad-test
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/AD300x250.js +41 -7
- package/dist/cjs/AD300x250x600.js +1 -1
- package/dist/cjs/ArticleProgramLandingPage.js +1 -1
- package/dist/cjs/ExternalResources.js +1 -1
- package/dist/cjs/HamMagazine.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +1 -1
- package/dist/cjs/IssueLanding.js +1 -1
- package/dist/cjs/MediaSeriesLanding.js +1 -1
- package/dist/cjs/NavMagazine.js +1 -1
- package/dist/cjs/PartnerDetailListing.js +1 -1
- package/dist/cjs/SocialIcons.js +2 -2
- package/dist/cjs/TaxonomyDescription.js +1 -1
- package/dist/cjs/TemplateNormal.js +1 -1
- package/dist/cjs/VideoProgramLandingPage.js +1 -1
- package/dist/cjs/View.js +7 -9
- package/dist/cjs/getSerializers.js +1 -1
- package/dist/cjs/{index-a13a767d.js → index-6a2a3e03.js} +1 -1
- package/dist/cjs/index.js +2 -2
- package/dist/esm/AD300x250.js +42 -8
- package/dist/esm/AD300x250x600.js +1 -1
- package/dist/esm/ArticleProgramLandingPage.js +1 -1
- package/dist/esm/ExternalResources.js +1 -1
- package/dist/esm/HamMagazine.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +1 -1
- package/dist/esm/IssueLanding.js +1 -1
- package/dist/esm/MediaSeriesLanding.js +1 -1
- package/dist/esm/NavMagazine.js +1 -1
- package/dist/esm/PartnerDetailListing.js +1 -1
- package/dist/esm/SocialIcons.js +2 -2
- package/dist/esm/TaxonomyDescription.js +1 -1
- package/dist/esm/TemplateNormal.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +1 -1
- package/dist/esm/View.js +7 -9
- package/dist/esm/getSerializers.js +1 -1
- package/dist/esm/{index-bd9ce1da.js → index-5bbd1562.js} +1 -1
- package/dist/esm/index.js +2 -2
- package/package.json +1 -1
- /package/dist/cjs/{SocialSearchComponent-a4ae7b88.js → SocialSearchComponent-5ec44406.js} +0 -0
- /package/dist/esm/{SocialSearchComponent-41b6b480.js → SocialSearchComponent-a5b11613.js} +0 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# mjh-framework v. 1.0.
|
|
1
|
+
# mjh-framework v. 1.0.874
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/mjh-framework) [](https://standardjs.com)
|
|
4
4
|
|
package/dist/cjs/AD300x250.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('./stringify-f7a37a8d.js');
|
|
4
3
|
var slicedToArray = require('./slicedToArray-067dd3bc.js');
|
|
5
4
|
var React = require('react');
|
|
6
5
|
var main = require('./main-025fdc78.js');
|
|
7
6
|
var AdSlot = require('./AdSlot.js');
|
|
8
7
|
require('./_commonjsHelpers-06173234.js');
|
|
9
|
-
require('./core.get-iterator-method-5643aa10.js');
|
|
10
8
|
require('./web.dom.iterable-d98303e0.js');
|
|
9
|
+
require('./core.get-iterator-method-5643aa10.js');
|
|
11
10
|
require('./extends-7c86182f.js');
|
|
12
11
|
require('./_object-pie-083f2dd6.js');
|
|
13
12
|
require('prop-types');
|
|
@@ -17,6 +16,7 @@ require('./debounce-d4a2369b.js');
|
|
|
17
16
|
require('./isSymbol-03abbdf0.js');
|
|
18
17
|
require('./toNumber-5e1fac58.js');
|
|
19
18
|
require('./Beam.js');
|
|
19
|
+
require('./stringify-f7a37a8d.js');
|
|
20
20
|
require('./asyncToGenerator-77821af0.js');
|
|
21
21
|
require('./_library-dd23b178.js');
|
|
22
22
|
require('./_iter-detect-b1df62f0.js');
|
|
@@ -42,11 +42,12 @@ var AD300x250 = function AD300x250(_ref) {
|
|
|
42
42
|
pos = 'rec1-mobile';
|
|
43
43
|
mobileView = true;
|
|
44
44
|
}
|
|
45
|
+
var adContainer = React.useRef(null);
|
|
45
46
|
|
|
46
47
|
var _useState = React.useState(true),
|
|
47
|
-
_useState2 = slicedToArray._slicedToArray(_useState, 2)
|
|
48
|
-
_useState2[0]
|
|
49
|
-
|
|
48
|
+
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
49
|
+
previewAd = _useState2[0],
|
|
50
|
+
setPreviewAd = _useState2[1];
|
|
50
51
|
|
|
51
52
|
React.useEffect(function () {
|
|
52
53
|
var path = window && window.location && window.location.search;
|
|
@@ -71,9 +72,42 @@ var AD300x250 = function AD300x250(_ref) {
|
|
|
71
72
|
var browserSizes = [[300, 600], [300, 250], [300, 100]];
|
|
72
73
|
var mobileSizes = [[300, 250], [300, 100]];
|
|
73
74
|
|
|
75
|
+
// CallBack function to check if ad has got creative or not.
|
|
76
|
+
var checkIsAdFound = function checkIsAdFound(isFound, adData) {
|
|
77
|
+
if (isFound && adData && main.main_43) {
|
|
78
|
+
|
|
79
|
+
if (typeof adData.event.size[1] === "number") {
|
|
80
|
+
adContainer.style.minHeight = adData.event.size[1] + 'px';
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
// if (isFound) {
|
|
84
|
+
// // Dynamically fetching parent from slotID to display or collapse.
|
|
85
|
+
// const parent = document.getElementById(adData.slotId)
|
|
86
|
+
|
|
87
|
+
// const adSizes = [[1, 1]]
|
|
88
|
+
// // Collapsing ad if the as size is [1,1]
|
|
89
|
+
// if (adData && adData.event && adData.event.size) {
|
|
90
|
+
// const checkAdSize = (size) => {
|
|
91
|
+
// return JSON.stringify(size) === JSON.stringify(adData.event.size)
|
|
92
|
+
// }
|
|
93
|
+
|
|
94
|
+
// if (adSizes.some(checkAdSize)) {
|
|
95
|
+
// // passing slotID to collape
|
|
96
|
+
// collapseAd(adData.slotId)
|
|
97
|
+
// parent.style.display = 'none'
|
|
98
|
+
// } else {
|
|
99
|
+
// parent.style.display = 'block'
|
|
100
|
+
// }
|
|
101
|
+
// }
|
|
102
|
+
// } else {
|
|
103
|
+
// // collapsing ad if no creative is found
|
|
104
|
+
// collapseAd(adData.slotId)
|
|
105
|
+
// }
|
|
106
|
+
};
|
|
107
|
+
|
|
74
108
|
return React__default['default'].createElement(
|
|
75
109
|
'div',
|
|
76
|
-
|
|
110
|
+
{ ref: adContainer, style: { minHeight: main.main_43 ? '250px' : 'unset', transition: 'min-height .1s linear .3s' } },
|
|
77
111
|
React__default['default'].createElement(AdSlot, {
|
|
78
112
|
networkID: networkID,
|
|
79
113
|
adUnit: adUnit,
|
|
@@ -82,7 +116,7 @@ var AD300x250 = function AD300x250(_ref) {
|
|
|
82
116
|
className: 'AD300x250',
|
|
83
117
|
sizes: mobileView ? mobileSizes : browserSizes
|
|
84
118
|
/* Passing function to check for ad creative only if it is not in preview. */
|
|
85
|
-
|
|
119
|
+
, checkIsAdFound: previewAd ? null : checkIsAdFound
|
|
86
120
|
// style={{ display: 'none' }}
|
|
87
121
|
}),
|
|
88
122
|
React__default['default'].createElement(
|
|
@@ -95,7 +95,7 @@ var AD300x250x600 = function AD300x250x600(_ref) {
|
|
|
95
95
|
slotId: slotId,
|
|
96
96
|
targeting: adTargeting
|
|
97
97
|
// passing all possible sizes.
|
|
98
|
-
, sizes:
|
|
98
|
+
, sizes: [[300, 50], [300, 100], [320, 50], [300, 250], [300, 600]]
|
|
99
99
|
// setting responsive sizemapping to make the ads responsive.
|
|
100
100
|
, sizeMapping: sizeMapping
|
|
101
101
|
/* Passing function to check for ad creative only if it is not in preview. */
|
|
@@ -5,7 +5,7 @@ var slicedToArray = require('./slicedToArray-067dd3bc.js');
|
|
|
5
5
|
var _extends = require('./extends-7c86182f.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var BlockContent = require('./BlockContent-36e54d77.js');
|
|
8
|
-
var getSerializers = require('./index-
|
|
8
|
+
var getSerializers = require('./index-6a2a3e03.js');
|
|
9
9
|
var ArticleSeriesListing = require('./ArticleSeriesListing.js');
|
|
10
10
|
require('./_commonjsHelpers-06173234.js');
|
|
11
11
|
require('./core.get-iterator-method-5643aa10.js');
|
|
@@ -4,7 +4,7 @@ var _extends = require('./extends-7c86182f.js');
|
|
|
4
4
|
var slicedToArray = require('./slicedToArray-067dd3bc.js');
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var BlockContent = require('./BlockContent-36e54d77.js');
|
|
7
|
-
var getSerializers = require('./index-
|
|
7
|
+
var getSerializers = require('./index-6a2a3e03.js');
|
|
8
8
|
var index = require('./index-f86bb269.js');
|
|
9
9
|
var Router = require('next/router');
|
|
10
10
|
var Button = require('react-bootstrap/Button');
|
package/dist/cjs/HamMagazine.js
CHANGED
|
@@ -6,7 +6,7 @@ var slicedToArray = require('./slicedToArray-067dd3bc.js');
|
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var NavFooter = require('./NavFooter-3dcd99a8.js');
|
|
8
8
|
var index_esm$2 = require('./index.esm-8123cf40.js');
|
|
9
|
-
var SocialSearchComponent = require('./SocialSearchComponent-
|
|
9
|
+
var SocialSearchComponent = require('./SocialSearchComponent-5ec44406.js');
|
|
10
10
|
require('react-bootstrap/Form');
|
|
11
11
|
require('react-bootstrap/FormControl');
|
|
12
12
|
require('react-bootstrap/Button');
|
|
@@ -5,7 +5,7 @@ var React = require('react');
|
|
|
5
5
|
var ArticleCarousel = require('./ArticleCarousel.js');
|
|
6
6
|
var index_esm = require('./index.esm-974f47d9.js');
|
|
7
7
|
var BlockContent = require('./BlockContent-36e54d77.js');
|
|
8
|
-
var getSerializers = require('./index-
|
|
8
|
+
var getSerializers = require('./index-6a2a3e03.js');
|
|
9
9
|
require('./_commonjsHelpers-06173234.js');
|
|
10
10
|
require('./core.get-iterator-method-5643aa10.js');
|
|
11
11
|
require('./_object-pie-083f2dd6.js');
|
package/dist/cjs/IssueLanding.js
CHANGED
|
@@ -5,7 +5,7 @@ var React = require('react');
|
|
|
5
5
|
var QueueDeckExpanded = require('./QueueDeckExpanded.js');
|
|
6
6
|
var Breadcrumbs = require('./Breadcrumbs.js');
|
|
7
7
|
var BlockContent = require('./BlockContent-36e54d77.js');
|
|
8
|
-
var getSerializers = require('./index-
|
|
8
|
+
var getSerializers = require('./index-6a2a3e03.js');
|
|
9
9
|
require('./_commonjsHelpers-06173234.js');
|
|
10
10
|
require('./core.get-iterator-method-5643aa10.js');
|
|
11
11
|
require('./_object-pie-083f2dd6.js');
|
|
@@ -17,7 +17,7 @@ var urlFor = require('./urlFor.js');
|
|
|
17
17
|
var moment = require('./moment-aca40de1.js');
|
|
18
18
|
var styleInject_es = require('./style-inject.es-dcee06b6.js');
|
|
19
19
|
var BlockContent = require('./BlockContent-36e54d77.js');
|
|
20
|
-
var getSerializers = require('./index-
|
|
20
|
+
var getSerializers = require('./index-6a2a3e03.js');
|
|
21
21
|
require('./define-property-e8404b64.js');
|
|
22
22
|
require('./core.get-iterator-method-5643aa10.js');
|
|
23
23
|
require('./web.dom.iterable-d98303e0.js');
|
package/dist/cjs/NavMagazine.js
CHANGED
|
@@ -14,7 +14,7 @@ var NavFooter = require('./NavFooter-3dcd99a8.js');
|
|
|
14
14
|
var index_esm$2 = require('./index.esm-8123cf40.js');
|
|
15
15
|
var main = require('./main-025fdc78.js');
|
|
16
16
|
var Segment = require('./Segment.js');
|
|
17
|
-
var SocialSearchComponent = require('./SocialSearchComponent-
|
|
17
|
+
var SocialSearchComponent = require('./SocialSearchComponent-5ec44406.js');
|
|
18
18
|
require('./_commonjsHelpers-06173234.js');
|
|
19
19
|
require('./web.dom.iterable-d98303e0.js');
|
|
20
20
|
require('./core.get-iterator-method-5643aa10.js');
|
|
@@ -13,7 +13,7 @@ var moment = require('./moment-aca40de1.js');
|
|
|
13
13
|
var QueueDeckExpanded = require('./QueueDeckExpanded.js');
|
|
14
14
|
var Breadcrumbs = require('./Breadcrumbs.js');
|
|
15
15
|
var Feature = require('./Feature.js');
|
|
16
|
-
var getSerializers = require('./index-
|
|
16
|
+
var getSerializers = require('./index-6a2a3e03.js');
|
|
17
17
|
var BlockContent = require('./BlockContent-36e54d77.js');
|
|
18
18
|
require('./_commonjsHelpers-06173234.js');
|
|
19
19
|
require('./core.get-iterator-method-5643aa10.js');
|
package/dist/cjs/SocialIcons.js
CHANGED
|
@@ -73,7 +73,7 @@ var SocialIcons = function SocialIcons(props) {
|
|
|
73
73
|
};
|
|
74
74
|
return React__default['default'].createElement(
|
|
75
75
|
'a',
|
|
76
|
-
{ href: link.url, target: link.blank ? '_blank' : '_self', style: { marginRight: '4px' } },
|
|
76
|
+
{ key: link.url, href: link.url, target: link.blank ? '_blank' : '_self', style: { marginRight: '4px' } },
|
|
77
77
|
React__default['default'].createElement(Icon, null)
|
|
78
78
|
);
|
|
79
79
|
} else return null;
|
|
@@ -92,7 +92,7 @@ var SocialIcons = function SocialIcons(props) {
|
|
|
92
92
|
};
|
|
93
93
|
return React__default['default'].createElement(
|
|
94
94
|
'a',
|
|
95
|
-
{ href: link.url, target: link.blank ? '_blank' : '_self', style: { marginRight: '4px' } },
|
|
95
|
+
{ key: link.url, href: link.url, target: link.blank ? '_blank' : '_self', style: { marginRight: '4px' } },
|
|
96
96
|
React__default['default'].createElement(Icon, null)
|
|
97
97
|
);
|
|
98
98
|
} else return null;
|
|
@@ -6,7 +6,7 @@ var React = require('react');
|
|
|
6
6
|
var Router = require('next/router');
|
|
7
7
|
var Head = require('next/head');
|
|
8
8
|
var BlockContent = require('./BlockContent-36e54d77.js');
|
|
9
|
-
var getSerializers = require('./index-
|
|
9
|
+
var getSerializers = require('./index-6a2a3e03.js');
|
|
10
10
|
require('./_commonjsHelpers-06173234.js');
|
|
11
11
|
require('./core.get-iterator-method-5643aa10.js');
|
|
12
12
|
require('./web.dom.iterable-d98303e0.js');
|
|
@@ -57,7 +57,7 @@ require('./iconBase-68959171.js');
|
|
|
57
57
|
require('./index.esm-974f47d9.js');
|
|
58
58
|
require('./NavFooter-3dcd99a8.js');
|
|
59
59
|
require('./index.esm-8123cf40.js');
|
|
60
|
-
require('./SocialSearchComponent-
|
|
60
|
+
require('./SocialSearchComponent-5ec44406.js');
|
|
61
61
|
require('./SocialIcons.js');
|
|
62
62
|
require('react-bootstrap/Form');
|
|
63
63
|
require('react-bootstrap/FormControl');
|
|
@@ -7,7 +7,7 @@ var BlockContent = require('./BlockContent-36e54d77.js');
|
|
|
7
7
|
var Col = require('react-bootstrap/Col');
|
|
8
8
|
var Form = require('react-bootstrap/Form');
|
|
9
9
|
var Button = require('react-bootstrap/Button');
|
|
10
|
-
var getSerializers = require('./index-
|
|
10
|
+
var getSerializers = require('./index-6a2a3e03.js');
|
|
11
11
|
var VideoSeriesListing = require('./VideoSeriesListing.js');
|
|
12
12
|
require('./_commonjsHelpers-06173234.js');
|
|
13
13
|
require('./core.get-iterator-method-5643aa10.js');
|
package/dist/cjs/View.js
CHANGED
|
@@ -17,7 +17,7 @@ var FormControl = require('react-bootstrap/FormControl');
|
|
|
17
17
|
var Button = require('react-bootstrap/Button');
|
|
18
18
|
var visibilitySensor = require('./visibility-sensor-eb2c5b69.js');
|
|
19
19
|
var SocialShare = require('./SocialShare.js');
|
|
20
|
-
var getSerializers = require('./index-
|
|
20
|
+
var getSerializers = require('./index-6a2a3e03.js');
|
|
21
21
|
var AdSlot = require('./AdSlot.js');
|
|
22
22
|
var SeriesSlider = require('./SeriesSlider-ce3261cb.js');
|
|
23
23
|
var getTargeting = require('./getTargeting-9d509319.js');
|
|
@@ -927,7 +927,7 @@ var Article = React.forwardRef(function (props, ref) {
|
|
|
927
927
|
sizeMapping: lgContextAd ? [{
|
|
928
928
|
viewport: [1400, 0],
|
|
929
929
|
sizes: [[728, 90], 'fluid', [300, 100]]
|
|
930
|
-
}, { viewport: [0, 0], sizes: ['fluid', [300, 100]] }] : { viewport: [0, 0], sizes: ['fluid', [300, 100]] }
|
|
930
|
+
}, { viewport: [0, 0], sizes: ['fluid', [300, 100]] }] : [{ viewport: [0, 0], sizes: ['fluid', [300, 100]] }]
|
|
931
931
|
})
|
|
932
932
|
});
|
|
933
933
|
var _selectedIndex = indexes[1] + 1;
|
|
@@ -1164,8 +1164,8 @@ var Article = React.forwardRef(function (props, ref) {
|
|
|
1164
1164
|
React__default['default'].createElement(
|
|
1165
1165
|
'time',
|
|
1166
1166
|
{
|
|
1167
|
-
|
|
1168
|
-
|
|
1167
|
+
className: 'meta-date',
|
|
1168
|
+
dateTime: moment.moment(published).utc().format(moment.moment.HTML5_FMT.DATETIME_LOCAL_MS) },
|
|
1169
1169
|
moment.moment(published).format('LL')
|
|
1170
1170
|
)
|
|
1171
1171
|
)
|
|
@@ -1662,10 +1662,8 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1662
1662
|
queueData.map(function (article, index) {
|
|
1663
1663
|
return React__default['default'].createElement(
|
|
1664
1664
|
React__default['default'].Fragment,
|
|
1665
|
-
|
|
1666
|
-
React__default['default'].createElement(Article, _extends._extends({
|
|
1667
|
-
key: index
|
|
1668
|
-
}, props, {
|
|
1665
|
+
{ key: index },
|
|
1666
|
+
React__default['default'].createElement(Article, _extends._extends({}, props, {
|
|
1669
1667
|
containerHeight: containerHeight,
|
|
1670
1668
|
onChangeArticle: onChangeArticle,
|
|
1671
1669
|
authorPrfix: authorPrefix,
|
|
@@ -1727,7 +1725,7 @@ var View = function View(props) {
|
|
|
1727
1725
|
var waitAndExicute = function waitAndExicute() {
|
|
1728
1726
|
if (typeof window.GA_INITIALIZED !== 'undefined') {
|
|
1729
1727
|
setCustomDimensions(article, statusCode, prevUrl);
|
|
1730
|
-
pageview(router.asPath, pageviewProperties);
|
|
1728
|
+
pageview(router.asPath, null, pageviewProperties);
|
|
1731
1729
|
} else timer = setTimeout(waitAndExicute, 1000);
|
|
1732
1730
|
};
|
|
1733
1731
|
waitAndExicute();
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./extends-7c86182f.js');
|
|
4
4
|
require('react');
|
|
5
|
-
var getSerializers = require('./index-
|
|
5
|
+
var getSerializers = require('./index-6a2a3e03.js');
|
|
6
6
|
require('./BlockContent-36e54d77.js');
|
|
7
7
|
require('./entities-3f9d0f2f.js');
|
|
8
8
|
require('./_commonjsHelpers-06173234.js');
|
|
@@ -2485,7 +2485,7 @@ var Video = function Video(_ref) {
|
|
|
2485
2485
|
accountId: accountIDs.brightcove.accountId,
|
|
2486
2486
|
videoId: videoID,
|
|
2487
2487
|
playerId: accountIDs.brightcove.playerId,
|
|
2488
|
-
attrs: { className: 'brightcove-fluid',
|
|
2488
|
+
attrs: { className: 'brightcove-fluid', autoPlay: 'muted' }
|
|
2489
2489
|
}),
|
|
2490
2490
|
React__default['default'].createElement(
|
|
2491
2491
|
'style',
|
package/dist/cjs/index.js
CHANGED
|
@@ -82,7 +82,7 @@ var VerticalHero = require('./VerticalHero.js');
|
|
|
82
82
|
var YahooHero = require('./YahooHero.js');
|
|
83
83
|
var GridHero = require('./GridHero.js');
|
|
84
84
|
var ConferenceArticleCard = require('./ConferenceArticleCard.js');
|
|
85
|
-
var getSerializers = require('./index-
|
|
85
|
+
var getSerializers = require('./index-6a2a3e03.js');
|
|
86
86
|
var Beam = require('./Beam.js');
|
|
87
87
|
var Segment = require('./Segment.js');
|
|
88
88
|
var KMTracker = require('./KMTracker.js');
|
|
@@ -167,7 +167,7 @@ require('react-bootstrap/NavDropdown');
|
|
|
167
167
|
require('./index.esm-44f3e2d0.js');
|
|
168
168
|
require('./NavFooter-3dcd99a8.js');
|
|
169
169
|
require('./index.esm-8123cf40.js');
|
|
170
|
-
require('./SocialSearchComponent-
|
|
170
|
+
require('./SocialSearchComponent-5ec44406.js');
|
|
171
171
|
require('react-bootstrap/FormControl');
|
|
172
172
|
require('react-ga');
|
|
173
173
|
require('react-bootstrap/Carousel');
|
package/dist/esm/AD300x250.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import './stringify-c21932b3.js';
|
|
2
1
|
import { _ as _slicedToArray } from './slicedToArray-ca2c8b8d.js';
|
|
3
|
-
import React, { useState, useEffect } from 'react';
|
|
2
|
+
import React, { useRef, useState, useEffect } from 'react';
|
|
4
3
|
import { m as main_43 } from './main-b5c5aac1.js';
|
|
5
4
|
import DFPAdSlot from './AdSlot.js';
|
|
6
5
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
7
|
-
import './core.get-iterator-method-e903ff31.js';
|
|
8
6
|
import './web.dom.iterable-fdf034f5.js';
|
|
7
|
+
import './core.get-iterator-method-e903ff31.js';
|
|
9
8
|
import './extends-dc6a71fd.js';
|
|
10
9
|
import './_object-pie-133f504a.js';
|
|
11
10
|
import 'prop-types';
|
|
@@ -15,6 +14,7 @@ import './debounce-533d9748.js';
|
|
|
15
14
|
import './isSymbol-a7e9aafe.js';
|
|
16
15
|
import './toNumber-5aeba6e7.js';
|
|
17
16
|
import './Beam.js';
|
|
17
|
+
import './stringify-c21932b3.js';
|
|
18
18
|
import './asyncToGenerator-b4dfe691.js';
|
|
19
19
|
import './_library-528f1934.js';
|
|
20
20
|
import './_iter-detect-f089461c.js';
|
|
@@ -36,11 +36,12 @@ var AD300x250 = function AD300x250(_ref) {
|
|
|
36
36
|
pos = 'rec1-mobile';
|
|
37
37
|
mobileView = true;
|
|
38
38
|
}
|
|
39
|
+
var adContainer = useRef(null);
|
|
39
40
|
|
|
40
41
|
var _useState = useState(true),
|
|
41
|
-
_useState2 = _slicedToArray(_useState, 2)
|
|
42
|
-
_useState2[0]
|
|
43
|
-
|
|
42
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
43
|
+
previewAd = _useState2[0],
|
|
44
|
+
setPreviewAd = _useState2[1];
|
|
44
45
|
|
|
45
46
|
useEffect(function () {
|
|
46
47
|
var path = window && window.location && window.location.search;
|
|
@@ -65,9 +66,42 @@ var AD300x250 = function AD300x250(_ref) {
|
|
|
65
66
|
var browserSizes = [[300, 600], [300, 250], [300, 100]];
|
|
66
67
|
var mobileSizes = [[300, 250], [300, 100]];
|
|
67
68
|
|
|
69
|
+
// CallBack function to check if ad has got creative or not.
|
|
70
|
+
var checkIsAdFound = function checkIsAdFound(isFound, adData) {
|
|
71
|
+
if (isFound && adData && main_43) {
|
|
72
|
+
|
|
73
|
+
if (typeof adData.event.size[1] === "number") {
|
|
74
|
+
adContainer.style.minHeight = adData.event.size[1] + 'px';
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
// if (isFound) {
|
|
78
|
+
// // Dynamically fetching parent from slotID to display or collapse.
|
|
79
|
+
// const parent = document.getElementById(adData.slotId)
|
|
80
|
+
|
|
81
|
+
// const adSizes = [[1, 1]]
|
|
82
|
+
// // Collapsing ad if the as size is [1,1]
|
|
83
|
+
// if (adData && adData.event && adData.event.size) {
|
|
84
|
+
// const 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
|
+
|
|
68
102
|
return React.createElement(
|
|
69
103
|
'div',
|
|
70
|
-
|
|
104
|
+
{ ref: adContainer, style: { minHeight: main_43 ? '250px' : 'unset', transition: 'min-height .1s linear .3s' } },
|
|
71
105
|
React.createElement(DFPAdSlot, {
|
|
72
106
|
networkID: networkID,
|
|
73
107
|
adUnit: adUnit,
|
|
@@ -76,7 +110,7 @@ var AD300x250 = function AD300x250(_ref) {
|
|
|
76
110
|
className: 'AD300x250',
|
|
77
111
|
sizes: mobileView ? mobileSizes : browserSizes
|
|
78
112
|
/* Passing function to check for ad creative only if it is not in preview. */
|
|
79
|
-
|
|
113
|
+
, checkIsAdFound: previewAd ? null : checkIsAdFound
|
|
80
114
|
// style={{ display: 'none' }}
|
|
81
115
|
}),
|
|
82
116
|
React.createElement(
|
|
@@ -89,7 +89,7 @@ var AD300x250x600 = function AD300x250x600(_ref) {
|
|
|
89
89
|
slotId: slotId,
|
|
90
90
|
targeting: adTargeting
|
|
91
91
|
// passing all possible sizes.
|
|
92
|
-
, sizes:
|
|
92
|
+
, sizes: [[300, 50], [300, 100], [320, 50], [300, 250], [300, 600]]
|
|
93
93
|
// setting responsive sizemapping to make the ads responsive.
|
|
94
94
|
, sizeMapping: sizeMapping
|
|
95
95
|
/* Passing function to check for ad creative only if it is not in preview. */
|
|
@@ -3,7 +3,7 @@ import { _ as _slicedToArray } from './slicedToArray-ca2c8b8d.js';
|
|
|
3
3
|
import { _ as _extends } from './extends-dc6a71fd.js';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { B as BlockContent } from './BlockContent-52cf21c5.js';
|
|
6
|
-
import { g as getSerializers } from './index-
|
|
6
|
+
import { g as getSerializers } from './index-5bbd1562.js';
|
|
7
7
|
import ArticleSeriesListing from './ArticleSeriesListing.js';
|
|
8
8
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
9
9
|
import './core.get-iterator-method-e903ff31.js';
|
|
@@ -2,7 +2,7 @@ import { _ as _extends } from './extends-dc6a71fd.js';
|
|
|
2
2
|
import { _ as _slicedToArray } from './slicedToArray-ca2c8b8d.js';
|
|
3
3
|
import React, { useState, useEffect } from 'react';
|
|
4
4
|
import { B as BlockContent } from './BlockContent-52cf21c5.js';
|
|
5
|
-
import { g as getSerializers } from './index-
|
|
5
|
+
import { g as getSerializers } from './index-5bbd1562.js';
|
|
6
6
|
import { m as momentTimezone } from './index-79cfd25c.js';
|
|
7
7
|
import { useRouter } from 'next/router';
|
|
8
8
|
import Button from 'react-bootstrap/Button';
|
package/dist/esm/HamMagazine.js
CHANGED
|
@@ -2,7 +2,7 @@ import { _ as _slicedToArray } from './slicedToArray-ca2c8b8d.js';
|
|
|
2
2
|
import React, { useRef, useState, useEffect } from 'react';
|
|
3
3
|
import { N as NavFooter } from './NavFooter-c29526b7.js';
|
|
4
4
|
import { S as SocialNavFooter } from './index.esm-8016b507.js';
|
|
5
|
-
import { S as SocialSearchComponent } from './SocialSearchComponent-
|
|
5
|
+
import { S as SocialSearchComponent } from './SocialSearchComponent-a5b11613.js';
|
|
6
6
|
import 'react-bootstrap/Form';
|
|
7
7
|
import 'react-bootstrap/FormControl';
|
|
8
8
|
import 'react-bootstrap/Button';
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import ArticleCarousel from './ArticleCarousel.js';
|
|
4
4
|
import { I as IoIosArrowForward } from './index.esm-3fdda599.js';
|
|
5
5
|
import { B as BlockContent } from './BlockContent-52cf21c5.js';
|
|
6
|
-
import { g as getSerializers } from './index-
|
|
6
|
+
import { g as getSerializers } from './index-5bbd1562.js';
|
|
7
7
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
8
8
|
import './core.get-iterator-method-e903ff31.js';
|
|
9
9
|
import './_object-pie-133f504a.js';
|
package/dist/esm/IssueLanding.js
CHANGED
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
4
4
|
import Breadcrumbs from './Breadcrumbs.js';
|
|
5
5
|
import { B as BlockContent } from './BlockContent-52cf21c5.js';
|
|
6
|
-
import { g as getSerializers } from './index-
|
|
6
|
+
import { g as getSerializers } from './index-5bbd1562.js';
|
|
7
7
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
8
8
|
import './core.get-iterator-method-e903ff31.js';
|
|
9
9
|
import './_object-pie-133f504a.js';
|
|
@@ -15,7 +15,7 @@ import urlFor from './urlFor.js';
|
|
|
15
15
|
import { m as moment } from './moment-bc12cb97.js';
|
|
16
16
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
17
17
|
import { B as BlockContent } from './BlockContent-52cf21c5.js';
|
|
18
|
-
import { g as getSerializers } from './index-
|
|
18
|
+
import { g as getSerializers } from './index-5bbd1562.js';
|
|
19
19
|
import './define-property-99e66838.js';
|
|
20
20
|
import './core.get-iterator-method-e903ff31.js';
|
|
21
21
|
import './web.dom.iterable-fdf034f5.js';
|
package/dist/esm/NavMagazine.js
CHANGED
|
@@ -10,7 +10,7 @@ import { N as NavFooter } from './NavFooter-c29526b7.js';
|
|
|
10
10
|
import { S as SocialNavFooter } from './index.esm-8016b507.js';
|
|
11
11
|
import { c as main_44 } from './main-b5c5aac1.js';
|
|
12
12
|
import Segment from './Segment.js';
|
|
13
|
-
import { S as SocialSearchComponent } from './SocialSearchComponent-
|
|
13
|
+
import { S as SocialSearchComponent } from './SocialSearchComponent-a5b11613.js';
|
|
14
14
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
15
15
|
import './web.dom.iterable-fdf034f5.js';
|
|
16
16
|
import './core.get-iterator-method-e903ff31.js';
|
|
@@ -11,7 +11,7 @@ import { m as moment } from './moment-bc12cb97.js';
|
|
|
11
11
|
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
12
12
|
import Breadcrumbs from './Breadcrumbs.js';
|
|
13
13
|
import Feature from './Feature.js';
|
|
14
|
-
import { g as getSerializers } from './index-
|
|
14
|
+
import { g as getSerializers } from './index-5bbd1562.js';
|
|
15
15
|
import { B as BlockContent } from './BlockContent-52cf21c5.js';
|
|
16
16
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
17
17
|
import './core.get-iterator-method-e903ff31.js';
|
package/dist/esm/SocialIcons.js
CHANGED
|
@@ -67,7 +67,7 @@ var SocialIcons = function SocialIcons(props) {
|
|
|
67
67
|
};
|
|
68
68
|
return React.createElement(
|
|
69
69
|
'a',
|
|
70
|
-
{ href: link.url, target: link.blank ? '_blank' : '_self', style: { marginRight: '4px' } },
|
|
70
|
+
{ key: link.url, href: link.url, target: link.blank ? '_blank' : '_self', style: { marginRight: '4px' } },
|
|
71
71
|
React.createElement(Icon, null)
|
|
72
72
|
);
|
|
73
73
|
} else return null;
|
|
@@ -86,7 +86,7 @@ var SocialIcons = function SocialIcons(props) {
|
|
|
86
86
|
};
|
|
87
87
|
return React.createElement(
|
|
88
88
|
'a',
|
|
89
|
-
{ href: link.url, target: link.blank ? '_blank' : '_self', style: { marginRight: '4px' } },
|
|
89
|
+
{ key: link.url, href: link.url, target: link.blank ? '_blank' : '_self', style: { marginRight: '4px' } },
|
|
90
90
|
React.createElement(Icon, null)
|
|
91
91
|
);
|
|
92
92
|
} else return null;
|
|
@@ -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-52cf21c5.js';
|
|
7
|
-
import { g as getSerializers } from './index-
|
|
7
|
+
import { g as getSerializers } from './index-5bbd1562.js';
|
|
8
8
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
9
9
|
import './core.get-iterator-method-e903ff31.js';
|
|
10
10
|
import './web.dom.iterable-fdf034f5.js';
|
|
@@ -55,7 +55,7 @@ import './iconBase-602d52fe.js';
|
|
|
55
55
|
import './index.esm-3fdda599.js';
|
|
56
56
|
import './NavFooter-c29526b7.js';
|
|
57
57
|
import './index.esm-8016b507.js';
|
|
58
|
-
import './SocialSearchComponent-
|
|
58
|
+
import './SocialSearchComponent-a5b11613.js';
|
|
59
59
|
import './SocialIcons.js';
|
|
60
60
|
import 'react-bootstrap/Form';
|
|
61
61
|
import 'react-bootstrap/FormControl';
|
|
@@ -5,7 +5,7 @@ import { B as BlockContent } from './BlockContent-52cf21c5.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-5bbd1562.js';
|
|
9
9
|
import VideoSeriesListing from './VideoSeriesListing.js';
|
|
10
10
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
11
11
|
import './core.get-iterator-method-e903ff31.js';
|
package/dist/esm/View.js
CHANGED
|
@@ -15,7 +15,7 @@ import FormControl from 'react-bootstrap/FormControl';
|
|
|
15
15
|
import Button from 'react-bootstrap/Button';
|
|
16
16
|
import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
|
|
17
17
|
import SocialShare from './SocialShare.js';
|
|
18
|
-
import { r as renderAuthor, g as getSerializers } from './index-
|
|
18
|
+
import { r as renderAuthor, g as getSerializers } from './index-5bbd1562.js';
|
|
19
19
|
import DFPAdSlot from './AdSlot.js';
|
|
20
20
|
import { S as SeriesSlider } from './SeriesSlider-485f514e.js';
|
|
21
21
|
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-ff2c9409.js';
|
|
@@ -917,7 +917,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
917
917
|
sizeMapping: lgContextAd ? [{
|
|
918
918
|
viewport: [1400, 0],
|
|
919
919
|
sizes: [[728, 90], 'fluid', [300, 100]]
|
|
920
|
-
}, { viewport: [0, 0], sizes: ['fluid', [300, 100]] }] : { viewport: [0, 0], sizes: ['fluid', [300, 100]] }
|
|
920
|
+
}, { viewport: [0, 0], sizes: ['fluid', [300, 100]] }] : [{ viewport: [0, 0], sizes: ['fluid', [300, 100]] }]
|
|
921
921
|
})
|
|
922
922
|
});
|
|
923
923
|
var _selectedIndex = indexes[1] + 1;
|
|
@@ -1154,8 +1154,8 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1154
1154
|
React.createElement(
|
|
1155
1155
|
'time',
|
|
1156
1156
|
{
|
|
1157
|
-
|
|
1158
|
-
|
|
1157
|
+
className: 'meta-date',
|
|
1158
|
+
dateTime: moment(published).utc().format(moment.HTML5_FMT.DATETIME_LOCAL_MS) },
|
|
1159
1159
|
moment(published).format('LL')
|
|
1160
1160
|
)
|
|
1161
1161
|
)
|
|
@@ -1652,10 +1652,8 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1652
1652
|
queueData.map(function (article, index) {
|
|
1653
1653
|
return React.createElement(
|
|
1654
1654
|
React.Fragment,
|
|
1655
|
-
|
|
1656
|
-
React.createElement(Article, _extends({
|
|
1657
|
-
key: index
|
|
1658
|
-
}, props, {
|
|
1655
|
+
{ key: index },
|
|
1656
|
+
React.createElement(Article, _extends({}, props, {
|
|
1659
1657
|
containerHeight: containerHeight,
|
|
1660
1658
|
onChangeArticle: onChangeArticle,
|
|
1661
1659
|
authorPrfix: authorPrefix,
|
|
@@ -1717,7 +1715,7 @@ var View = function View(props) {
|
|
|
1717
1715
|
var waitAndExicute = function waitAndExicute() {
|
|
1718
1716
|
if (typeof window.GA_INITIALIZED !== 'undefined') {
|
|
1719
1717
|
setCustomDimensions(article, statusCode, prevUrl);
|
|
1720
|
-
pageview(router.asPath, pageviewProperties);
|
|
1718
|
+
pageview(router.asPath, null, pageviewProperties);
|
|
1721
1719
|
} else timer = setTimeout(waitAndExicute, 1000);
|
|
1722
1720
|
};
|
|
1723
1721
|
waitAndExicute();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './extends-dc6a71fd.js';
|
|
2
2
|
import 'react';
|
|
3
|
-
export { g as default } from './index-
|
|
3
|
+
export { g as default } from './index-5bbd1562.js';
|
|
4
4
|
import './BlockContent-52cf21c5.js';
|
|
5
5
|
import './entities-932b50cf.js';
|
|
6
6
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
@@ -2468,7 +2468,7 @@ var Video = function Video(_ref) {
|
|
|
2468
2468
|
accountId: accountIDs.brightcove.accountId,
|
|
2469
2469
|
videoId: videoID,
|
|
2470
2470
|
playerId: accountIDs.brightcove.playerId,
|
|
2471
|
-
attrs: { className: 'brightcove-fluid',
|
|
2471
|
+
attrs: { className: 'brightcove-fluid', autoPlay: 'muted' }
|
|
2472
2472
|
}),
|
|
2473
2473
|
React.createElement(
|
|
2474
2474
|
'style',
|
package/dist/esm/index.js
CHANGED
|
@@ -79,7 +79,7 @@ export { default as VerticalHero } from './VerticalHero.js';
|
|
|
79
79
|
export { default as YahooHero } from './YahooHero.js';
|
|
80
80
|
export { default as GridHero } from './GridHero.js';
|
|
81
81
|
export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
|
|
82
|
-
export { g as getSerializers } from './index-
|
|
82
|
+
export { g as getSerializers } from './index-5bbd1562.js';
|
|
83
83
|
export { default as Beam } from './Beam.js';
|
|
84
84
|
export { default as Segment } from './Segment.js';
|
|
85
85
|
export { default as KMTracker } from './KMTracker.js';
|
|
@@ -164,7 +164,7 @@ import 'react-bootstrap/NavDropdown';
|
|
|
164
164
|
import './index.esm-c6715e80.js';
|
|
165
165
|
import './NavFooter-c29526b7.js';
|
|
166
166
|
import './index.esm-8016b507.js';
|
|
167
|
-
import './SocialSearchComponent-
|
|
167
|
+
import './SocialSearchComponent-a5b11613.js';
|
|
168
168
|
import 'react-bootstrap/FormControl';
|
|
169
169
|
import 'react-ga';
|
|
170
170
|
import 'react-bootstrap/Carousel';
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|