@mjhls/mjh-framework 1.0.939 → 1.0.941
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/dist/cjs/ArticleProgramLandingPage.js +1 -1
- package/dist/cjs/ExternalResources.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +1 -1
- package/dist/cjs/IssueLanding.js +1 -1
- package/dist/cjs/{MediaSeriesCard-659279e0.js → MediaSeriesCard-9c11cd19.js} +1 -1
- package/dist/cjs/MediaSeriesLanding.js +7 -5
- package/dist/cjs/MediaSeriesLandingPaginated.js +7 -5
- package/dist/cjs/PartnerDetailListing.js +1 -1
- package/dist/cjs/PartnerDetailListingPaginated.js +1 -1
- package/dist/cjs/TaxonomyDescription.js +1 -1
- package/dist/cjs/VideoProgramLandingPage.js +1 -1
- package/dist/cjs/View.js +10 -10
- package/dist/cjs/getSerializers.js +1 -1
- package/dist/cjs/{index-c991e29a.js → index-3fb58417.js} +7 -55
- package/dist/cjs/index.js +1 -1
- package/dist/esm/ArticleProgramLandingPage.js +1 -1
- package/dist/esm/ExternalResources.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +1 -1
- package/dist/esm/IssueLanding.js +1 -1
- package/dist/esm/{MediaSeriesCard-06c6251a.js → MediaSeriesCard-b864b6d2.js} +1 -1
- package/dist/esm/MediaSeriesLanding.js +7 -5
- package/dist/esm/MediaSeriesLandingPaginated.js +7 -5
- package/dist/esm/PartnerDetailListing.js +1 -1
- package/dist/esm/PartnerDetailListingPaginated.js +1 -1
- package/dist/esm/TaxonomyDescription.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +1 -1
- package/dist/esm/View.js +10 -10
- package/dist/esm/getSerializers.js +1 -1
- package/dist/esm/{index-6dc67bdb.js → index-70081f22.js} +7 -55
- package/dist/esm/index.js +1 -1
- package/package.json +1 -1
|
@@ -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-9ebd251f.js');
|
|
8
|
-
var getSerializers = require('./index-
|
|
8
|
+
var getSerializers = require('./index-3fb58417.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-9ebd251f.js');
|
|
7
|
-
var getSerializers = require('./index-
|
|
7
|
+
var getSerializers = require('./index-3fb58417.js');
|
|
8
8
|
var index = require('./index-f86bb269.js');
|
|
9
9
|
var Router = require('next/router');
|
|
10
10
|
var Button = 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-d81454e7.js');
|
|
7
7
|
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
8
|
-
var getSerializers = require('./index-
|
|
8
|
+
var getSerializers = require('./index-3fb58417.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-9ebd251f.js');
|
|
8
|
-
var getSerializers = require('./index-
|
|
8
|
+
var getSerializers = require('./index-3fb58417.js');
|
|
9
9
|
require('./_commonjsHelpers-06173234.js');
|
|
10
10
|
require('./core.get-iterator-method-5643aa10.js');
|
|
11
11
|
require('./_object-pie-083f2dd6.js');
|
|
@@ -11,7 +11,7 @@ var urlFor = require('./urlFor.js');
|
|
|
11
11
|
var moment = require('./moment-aca40de1.js');
|
|
12
12
|
var styleInject_es = require('./style-inject.es-dcee06b6.js');
|
|
13
13
|
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
14
|
-
var getSerializers = require('./index-
|
|
14
|
+
var getSerializers = require('./index-3fb58417.js');
|
|
15
15
|
|
|
16
16
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
17
17
|
|
|
@@ -5,13 +5,13 @@ var _typeof = require('./typeof-567e31ff.js');
|
|
|
5
5
|
var _extends = require('./extends-7c86182f.js');
|
|
6
6
|
var slicedToArray = require('./slicedToArray-067dd3bc.js');
|
|
7
7
|
var React = require('react');
|
|
8
|
-
var MediaSeriesCard = require('./MediaSeriesCard-
|
|
8
|
+
var MediaSeriesCard = require('./MediaSeriesCard-9c11cd19.js');
|
|
9
9
|
require('./index-50be6759.js');
|
|
10
10
|
require('react-dom');
|
|
11
11
|
var Link = require('next/link');
|
|
12
12
|
var MasterDeck = require('./MasterDeck.js');
|
|
13
13
|
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
14
|
-
var getSerializers = require('./index-
|
|
14
|
+
var getSerializers = require('./index-3fb58417.js');
|
|
15
15
|
require('./_commonjsHelpers-06173234.js');
|
|
16
16
|
require('./core.get-iterator-method-5643aa10.js');
|
|
17
17
|
require('./web.dom.iterable-d98303e0.js');
|
|
@@ -419,10 +419,12 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
419
419
|
buildUsedTopicsArray = function buildUsedTopicsArray(seriesArray) {
|
|
420
420
|
var usedTopics = [];
|
|
421
421
|
for (var x = 0; x < seriesArray.length; x++) {
|
|
422
|
-
if (seriesArray[x].topicMapping) {
|
|
422
|
+
if (seriesArray[x].topicMapping && seriesArray[x].topicMapping.length > 0) {
|
|
423
423
|
seriesArray[x].topicMapping.forEach(function (topic) {
|
|
424
|
-
if (
|
|
425
|
-
usedTopics.
|
|
424
|
+
if (topic && topic._id) {
|
|
425
|
+
if (!usedTopics.includes(topic._id)) {
|
|
426
|
+
usedTopics.push(topic._id);
|
|
427
|
+
}
|
|
426
428
|
}
|
|
427
429
|
});
|
|
428
430
|
}
|
|
@@ -5,13 +5,13 @@ var _typeof = require('./typeof-567e31ff.js');
|
|
|
5
5
|
var _extends = require('./extends-7c86182f.js');
|
|
6
6
|
var slicedToArray = require('./slicedToArray-067dd3bc.js');
|
|
7
7
|
var React = require('react');
|
|
8
|
-
var MediaSeriesCard = require('./MediaSeriesCard-
|
|
8
|
+
var MediaSeriesCard = require('./MediaSeriesCard-9c11cd19.js');
|
|
9
9
|
require('./index-50be6759.js');
|
|
10
10
|
require('react-dom');
|
|
11
11
|
var Link = require('next/link');
|
|
12
12
|
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
13
13
|
var MasterDeckPaginated = require('./MasterDeckPaginated.js');
|
|
14
|
-
var getSerializers = require('./index-
|
|
14
|
+
var getSerializers = require('./index-3fb58417.js');
|
|
15
15
|
require('./_commonjsHelpers-06173234.js');
|
|
16
16
|
require('./core.get-iterator-method-5643aa10.js');
|
|
17
17
|
require('./web.dom.iterable-d98303e0.js');
|
|
@@ -449,10 +449,12 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
449
449
|
buildUsedTopicsArray = function buildUsedTopicsArray(seriesArray) {
|
|
450
450
|
var usedTopics = [];
|
|
451
451
|
for (var x = 0; x < seriesArray.length; x++) {
|
|
452
|
-
if (seriesArray[x].topicMapping) {
|
|
452
|
+
if (seriesArray[x].topicMapping && seriesArray[x].topicMapping.length > 0) {
|
|
453
453
|
seriesArray[x].topicMapping.forEach(function (topic) {
|
|
454
|
-
if (
|
|
455
|
-
usedTopics.
|
|
454
|
+
if (topic && topic._id) {
|
|
455
|
+
if (!usedTopics.includes(topic._id)) {
|
|
456
|
+
usedTopics.push(topic._id);
|
|
457
|
+
}
|
|
456
458
|
}
|
|
457
459
|
});
|
|
458
460
|
}
|
|
@@ -13,7 +13,7 @@ var QueueDeckExpanded = require('./QueueDeckExpanded.js');
|
|
|
13
13
|
var Breadcrumbs = require('./Breadcrumbs.js');
|
|
14
14
|
var Feature = require('./Feature.js');
|
|
15
15
|
var urlFor = require('./urlFor.js');
|
|
16
|
-
var getSerializers = require('./index-
|
|
16
|
+
var getSerializers = require('./index-3fb58417.js');
|
|
17
17
|
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
18
18
|
require('./_commonjsHelpers-06173234.js');
|
|
19
19
|
require('./core.get-iterator-method-5643aa10.js');
|
|
@@ -13,7 +13,7 @@ var QueueDeckExpandedPaginated = require('./QueueDeckExpandedPaginated.js');
|
|
|
13
13
|
var Breadcrumbs = require('./Breadcrumbs.js');
|
|
14
14
|
var Feature = require('./Feature.js');
|
|
15
15
|
var urlFor = require('./urlFor.js');
|
|
16
|
-
var getSerializers = require('./index-
|
|
16
|
+
var getSerializers = require('./index-3fb58417.js');
|
|
17
17
|
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
18
18
|
require('./_commonjsHelpers-06173234.js');
|
|
19
19
|
require('./core.get-iterator-method-5643aa10.js');
|
|
@@ -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-9ebd251f.js');
|
|
9
|
-
var getSerializers = require('./index-
|
|
9
|
+
var getSerializers = require('./index-3fb58417.js');
|
|
10
10
|
require('./_commonjsHelpers-06173234.js');
|
|
11
11
|
require('./core.get-iterator-method-5643aa10.js');
|
|
12
12
|
require('./web.dom.iterable-d98303e0.js');
|
|
@@ -7,7 +7,7 @@ var BlockContent = require('./BlockContent-9ebd251f.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-3fb58417.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-3fb58417.js');
|
|
21
21
|
var AdSlot = require('./AdSlot.js');
|
|
22
22
|
var SeriesSlider = require('./SeriesSlider-ba0c5d1a.js');
|
|
23
23
|
var getTargeting = require('./getTargeting-3c5754ac.js');
|
|
@@ -1245,7 +1245,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1245
1245
|
React__default['default'].Fragment,
|
|
1246
1246
|
null,
|
|
1247
1247
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
1248
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null,
|
|
1248
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1249
1249
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(0, selectedIndex))),
|
|
1250
1250
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1251
1251
|
}, client.config())),
|
|
@@ -1266,7 +1266,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1266
1266
|
React__default['default'].createElement(AdSlot, _extends._extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsVideoAdFound }))
|
|
1267
1267
|
),
|
|
1268
1268
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
1269
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null,
|
|
1269
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1270
1270
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(selectedIndex))),
|
|
1271
1271
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1272
1272
|
}, client.config()))
|
|
@@ -1294,7 +1294,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1294
1294
|
React__default['default'].Fragment,
|
|
1295
1295
|
null,
|
|
1296
1296
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
1297
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null,
|
|
1297
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1298
1298
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(0, _selectedIndex))),
|
|
1299
1299
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1300
1300
|
}, client.config())),
|
|
@@ -1310,7 +1310,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1310
1310
|
),
|
|
1311
1311
|
contextualADFlag && React__default['default'].createElement('span', { className: 'clearfix' }),
|
|
1312
1312
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
1313
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null,
|
|
1313
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1314
1314
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(_selectedIndex))),
|
|
1315
1315
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1316
1316
|
}, client.config()))
|
|
@@ -1343,7 +1343,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1343
1343
|
React__default['default'].Fragment,
|
|
1344
1344
|
null,
|
|
1345
1345
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
1346
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null,
|
|
1346
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1347
1347
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(0, _selectedIndex2))),
|
|
1348
1348
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1349
1349
|
}, client.config())),
|
|
@@ -1355,7 +1355,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1355
1355
|
React__default['default'].createElement(AdSlot, _extends._extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: _checkIsAdFound2 }))
|
|
1356
1356
|
),
|
|
1357
1357
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
1358
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null,
|
|
1358
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1359
1359
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(_selectedIndex2))),
|
|
1360
1360
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1361
1361
|
}, client.config()))
|
|
@@ -1370,13 +1370,13 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1370
1370
|
'div',
|
|
1371
1371
|
null,
|
|
1372
1372
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
1373
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null,
|
|
1373
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1374
1374
|
blocks: article.documentGroup && article.documentGroup.isSeries ? [].concat(toConsumableArray._toConsumableArray(articleBody.slice(0, _selectedIndex3))) : articleBody,
|
|
1375
1375
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1376
1376
|
}, client.config())),
|
|
1377
1377
|
article.documentGroup && article.documentGroup.isSeries && sliderData && seriesInfo.hasVideo && React__default['default'].createElement(SeriesSlider.SeriesSlider, { dataset: sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
1378
1378
|
article.documentGroup && article.documentGroup.isSeries && React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
1379
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null,
|
|
1379
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1380
1380
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(_selectedIndex3))),
|
|
1381
1381
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1382
1382
|
}, client.config()))
|
|
@@ -1734,7 +1734,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1734
1734
|
ISI,
|
|
1735
1735
|
null,
|
|
1736
1736
|
React__default['default'].createElement(BlockContent.BlockContent, {
|
|
1737
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null,
|
|
1737
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, article.Ads, targeting),
|
|
1738
1738
|
blocks: isi
|
|
1739
1739
|
})
|
|
1740
1740
|
),
|
|
@@ -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-3fb58417.js');
|
|
6
6
|
require('./BlockContent-9ebd251f.js');
|
|
7
7
|
require('./entities-df1aed86.js');
|
|
8
8
|
require('./_commonjsHelpers-06173234.js');
|
|
@@ -8878,21 +8878,23 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8878
8878
|
client = _ref.client,
|
|
8879
8879
|
pageview = _ref.pageview,
|
|
8880
8880
|
getSerializers = _ref.getSerializers,
|
|
8881
|
-
accountIDs = _ref.accountIDs
|
|
8882
|
-
|
|
8883
|
-
rootArticle = _ref.rootArticle;
|
|
8881
|
+
accountIDs = _ref.accountIDs;
|
|
8882
|
+
_ref.Ads;
|
|
8883
|
+
var rootArticle = _ref.rootArticle;
|
|
8884
8884
|
|
|
8885
8885
|
if (!nodes || !nodes.articles) {
|
|
8886
8886
|
return null;
|
|
8887
8887
|
}
|
|
8888
8888
|
nodes.seriesTitle = !nodes.seriesTitle ? 'Learning Objectives' : nodes.seriesTitle;
|
|
8889
8889
|
var today = moment.moment().utc().format();
|
|
8890
|
+
// console.log('ArticleSeries')
|
|
8891
|
+
// console.dir(Ads)
|
|
8890
8892
|
|
|
8891
8893
|
var authorPrefix = 'authors';
|
|
8892
8894
|
var router = Router.useRouter();
|
|
8893
8895
|
|
|
8894
8896
|
var refArray = React.useRef([]);
|
|
8895
|
-
|
|
8897
|
+
React.useRef([]);
|
|
8896
8898
|
var articleContainerRef = React.useRef(null);
|
|
8897
8899
|
var arrowRef = React.useRef(null);
|
|
8898
8900
|
|
|
@@ -8987,7 +8989,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8987
8989
|
'a',
|
|
8988
8990
|
{ onClick: function onClick(e) {
|
|
8989
8991
|
return articleCardClickHandler(e);
|
|
8990
|
-
}, 'data-cardlabel': '' + articleLabel, 'data-
|
|
8992
|
+
}, 'data-cardlabel': '' + articleLabel, 'data-articleindex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8991
8993
|
React__default['default'].createElement(
|
|
8992
8994
|
'div',
|
|
8993
8995
|
{ className: 'prevNext-thumbnail' },
|
|
@@ -9239,31 +9241,6 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9239
9241
|
)
|
|
9240
9242
|
),
|
|
9241
9243
|
React__default['default'].createElement('hr', { className: 'article-seperater' }),
|
|
9242
|
-
React__default['default'].createElement(
|
|
9243
|
-
'div',
|
|
9244
|
-
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
9245
|
-
main.main_43 && Ads.map(function (ad, index) {
|
|
9246
|
-
if (index === 0) {
|
|
9247
|
-
return React__default['default'].createElement(
|
|
9248
|
-
'div',
|
|
9249
|
-
{
|
|
9250
|
-
key: 'addid-1',
|
|
9251
|
-
id: 'addid-1',
|
|
9252
|
-
ref: function ref(ele) {
|
|
9253
|
-
return adRefArray.current[0] = ele;
|
|
9254
|
-
},
|
|
9255
|
-
style: {
|
|
9256
|
-
display: 'flex',
|
|
9257
|
-
flex: '1 0 auto',
|
|
9258
|
-
justifyContent: 'center',
|
|
9259
|
-
alignItems: 'center',
|
|
9260
|
-
textAlign: 'center'
|
|
9261
|
-
} },
|
|
9262
|
-
ad.component
|
|
9263
|
-
);
|
|
9264
|
-
}
|
|
9265
|
-
})
|
|
9266
|
-
),
|
|
9267
9244
|
React__default['default'].createElement(
|
|
9268
9245
|
'div',
|
|
9269
9246
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
@@ -9360,31 +9337,6 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9360
9337
|
),
|
|
9361
9338
|
React__default['default'].createElement('hr', { className: 'article-seperater' })
|
|
9362
9339
|
)
|
|
9363
|
-
),
|
|
9364
|
-
React__default['default'].createElement(
|
|
9365
|
-
'div',
|
|
9366
|
-
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
9367
|
-
main.main_43 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
9368
|
-
if (innerIndex === 0) {
|
|
9369
|
-
return React__default['default'].createElement(
|
|
9370
|
-
'div',
|
|
9371
|
-
{
|
|
9372
|
-
key: 'addid-' + (index + 2),
|
|
9373
|
-
id: 'addid-' + (index + 2),
|
|
9374
|
-
ref: function ref(ele) {
|
|
9375
|
-
return adRefArray.current[index + 1] = ele;
|
|
9376
|
-
},
|
|
9377
|
-
style: {
|
|
9378
|
-
display: 'flex',
|
|
9379
|
-
flex: '1 0 auto',
|
|
9380
|
-
justifyContent: 'center',
|
|
9381
|
-
alignItems: 'center',
|
|
9382
|
-
textAlign: 'center'
|
|
9383
|
-
} },
|
|
9384
|
-
ad.component
|
|
9385
|
-
);
|
|
9386
|
-
}
|
|
9387
|
-
})
|
|
9388
9340
|
)
|
|
9389
9341
|
)
|
|
9390
9342
|
);
|
package/dist/cjs/index.js
CHANGED
|
@@ -89,7 +89,7 @@ var VerticalHero = require('./VerticalHero.js');
|
|
|
89
89
|
var YahooHero = require('./YahooHero.js');
|
|
90
90
|
var GridHero = require('./GridHero.js');
|
|
91
91
|
var ConferenceArticleCard = require('./ConferenceArticleCard.js');
|
|
92
|
-
var getSerializers = require('./index-
|
|
92
|
+
var getSerializers = require('./index-3fb58417.js');
|
|
93
93
|
var Beam = require('./Beam.js');
|
|
94
94
|
var Segment = require('./Segment.js');
|
|
95
95
|
var KMTracker = require('./KMTracker.js');
|
|
@@ -3,7 +3,7 @@ import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
|
3
3
|
import { _ as _extends } from './extends-6d8e3924.js';
|
|
4
4
|
import React__default from 'react';
|
|
5
5
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
6
|
-
import { g as getSerializers } from './index-
|
|
6
|
+
import { g as getSerializers } from './index-70081f22.js';
|
|
7
7
|
import ArticleSeriesListing from './ArticleSeriesListing.js';
|
|
8
8
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
9
9
|
import './core.get-iterator-method-ea258bb1.js';
|
|
@@ -2,7 +2,7 @@ import { _ as _extends } from './extends-6d8e3924.js';
|
|
|
2
2
|
import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
3
3
|
import React__default, { useState, useEffect } from 'react';
|
|
4
4
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
5
|
-
import { g as getSerializers } from './index-
|
|
5
|
+
import { g as getSerializers } from './index-70081f22.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';
|
|
@@ -3,7 +3,7 @@ import React__default from 'react';
|
|
|
3
3
|
import ArticleCarousel from './ArticleCarousel.js';
|
|
4
4
|
import { I as IoIosArrowForward } from './index.esm-eb1e8e80.js';
|
|
5
5
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
6
|
-
import { g as getSerializers } from './index-
|
|
6
|
+
import { g as getSerializers } from './index-70081f22.js';
|
|
7
7
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
8
8
|
import './core.get-iterator-method-ea258bb1.js';
|
|
9
9
|
import './_object-pie-133f504a.js';
|
package/dist/esm/IssueLanding.js
CHANGED
|
@@ -3,7 +3,7 @@ import React__default from 'react';
|
|
|
3
3
|
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
4
4
|
import Breadcrumbs from './Breadcrumbs.js';
|
|
5
5
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
6
|
-
import { g as getSerializers } from './index-
|
|
6
|
+
import { g as getSerializers } from './index-70081f22.js';
|
|
7
7
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
8
8
|
import './core.get-iterator-method-ea258bb1.js';
|
|
9
9
|
import './_object-pie-133f504a.js';
|
|
@@ -9,7 +9,7 @@ import urlFor from './urlFor.js';
|
|
|
9
9
|
import { m as moment } from './moment-bc12cb97.js';
|
|
10
10
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
11
11
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
12
|
-
import { g as getSerializers } from './index-
|
|
12
|
+
import { g as getSerializers } from './index-70081f22.js';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -3,13 +3,13 @@ import { _ as _typeof } from './typeof-e9fc0c5d.js';
|
|
|
3
3
|
import { _ as _extends } from './extends-6d8e3924.js';
|
|
4
4
|
import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
5
5
|
import React__default, { useState, useEffect } from 'react';
|
|
6
|
-
import { M as MediaSeriesCard, D as DropdownButton, a as Dropdown } from './MediaSeriesCard-
|
|
6
|
+
import { M as MediaSeriesCard, D as DropdownButton, a as Dropdown } from './MediaSeriesCard-b864b6d2.js';
|
|
7
7
|
import './index-98ca9cec.js';
|
|
8
8
|
import 'react-dom';
|
|
9
9
|
import Link from 'next/link';
|
|
10
10
|
import MasterDeck from './MasterDeck.js';
|
|
11
11
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
12
|
-
import { g as getSerializers } from './index-
|
|
12
|
+
import { g as getSerializers } from './index-70081f22.js';
|
|
13
13
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
14
14
|
import './core.get-iterator-method-ea258bb1.js';
|
|
15
15
|
import './web.dom.iterable-ab4dea5c.js';
|
|
@@ -412,10 +412,12 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
412
412
|
buildUsedTopicsArray = function buildUsedTopicsArray(seriesArray) {
|
|
413
413
|
var usedTopics = [];
|
|
414
414
|
for (var x = 0; x < seriesArray.length; x++) {
|
|
415
|
-
if (seriesArray[x].topicMapping) {
|
|
415
|
+
if (seriesArray[x].topicMapping && seriesArray[x].topicMapping.length > 0) {
|
|
416
416
|
seriesArray[x].topicMapping.forEach(function (topic) {
|
|
417
|
-
if (
|
|
418
|
-
usedTopics.
|
|
417
|
+
if (topic && topic._id) {
|
|
418
|
+
if (!usedTopics.includes(topic._id)) {
|
|
419
|
+
usedTopics.push(topic._id);
|
|
420
|
+
}
|
|
419
421
|
}
|
|
420
422
|
});
|
|
421
423
|
}
|
|
@@ -3,13 +3,13 @@ import { _ as _typeof } from './typeof-e9fc0c5d.js';
|
|
|
3
3
|
import { _ as _extends } from './extends-6d8e3924.js';
|
|
4
4
|
import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
5
5
|
import React__default, { useState, useEffect } from 'react';
|
|
6
|
-
import { M as MediaSeriesCard, D as DropdownButton, a as Dropdown } from './MediaSeriesCard-
|
|
6
|
+
import { M as MediaSeriesCard, D as DropdownButton, a as Dropdown } from './MediaSeriesCard-b864b6d2.js';
|
|
7
7
|
import './index-98ca9cec.js';
|
|
8
8
|
import 'react-dom';
|
|
9
9
|
import Link from 'next/link';
|
|
10
10
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
11
11
|
import MasterDeck from './MasterDeckPaginated.js';
|
|
12
|
-
import { g as getSerializers } from './index-
|
|
12
|
+
import { g as getSerializers } from './index-70081f22.js';
|
|
13
13
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
14
14
|
import './core.get-iterator-method-ea258bb1.js';
|
|
15
15
|
import './web.dom.iterable-ab4dea5c.js';
|
|
@@ -442,10 +442,12 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
442
442
|
buildUsedTopicsArray = function buildUsedTopicsArray(seriesArray) {
|
|
443
443
|
var usedTopics = [];
|
|
444
444
|
for (var x = 0; x < seriesArray.length; x++) {
|
|
445
|
-
if (seriesArray[x].topicMapping) {
|
|
445
|
+
if (seriesArray[x].topicMapping && seriesArray[x].topicMapping.length > 0) {
|
|
446
446
|
seriesArray[x].topicMapping.forEach(function (topic) {
|
|
447
|
-
if (
|
|
448
|
-
usedTopics.
|
|
447
|
+
if (topic && topic._id) {
|
|
448
|
+
if (!usedTopics.includes(topic._id)) {
|
|
449
|
+
usedTopics.push(topic._id);
|
|
450
|
+
}
|
|
449
451
|
}
|
|
450
452
|
});
|
|
451
453
|
}
|
|
@@ -11,7 +11,7 @@ import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
|
11
11
|
import Breadcrumbs from './Breadcrumbs.js';
|
|
12
12
|
import Feature from './Feature.js';
|
|
13
13
|
import urlFor from './urlFor.js';
|
|
14
|
-
import { g as getSerializers } from './index-
|
|
14
|
+
import { g as getSerializers } from './index-70081f22.js';
|
|
15
15
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
16
16
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
17
17
|
import './core.get-iterator-method-ea258bb1.js';
|
|
@@ -11,7 +11,7 @@ import QueueDeckExpanded from './QueueDeckExpandedPaginated.js';
|
|
|
11
11
|
import Breadcrumbs from './Breadcrumbs.js';
|
|
12
12
|
import Feature from './Feature.js';
|
|
13
13
|
import urlFor from './urlFor.js';
|
|
14
|
-
import { g as getSerializers } from './index-
|
|
14
|
+
import { g as getSerializers } from './index-70081f22.js';
|
|
15
15
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
16
16
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
17
17
|
import './core.get-iterator-method-ea258bb1.js';
|
|
@@ -4,7 +4,7 @@ import React__default from 'react';
|
|
|
4
4
|
import { useRouter } from 'next/router';
|
|
5
5
|
import Head from 'next/head';
|
|
6
6
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
7
|
-
import { g as getSerializers } from './index-
|
|
7
|
+
import { g as getSerializers } from './index-70081f22.js';
|
|
8
8
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
9
9
|
import './core.get-iterator-method-ea258bb1.js';
|
|
10
10
|
import './web.dom.iterable-ab4dea5c.js';
|
|
@@ -5,7 +5,7 @@ import { B as BlockContent } from './BlockContent-1e73bd2c.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-70081f22.js';
|
|
9
9
|
import VideoSeriesListing from './VideoSeriesListing.js';
|
|
10
10
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
11
11
|
import './core.get-iterator-method-ea258bb1.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-72fd8f8b.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-70081f22.js';
|
|
19
19
|
import DFPAdSlot from './AdSlot.js';
|
|
20
20
|
import { S as SeriesSlider } from './SeriesSlider-45adb8dc.js';
|
|
21
21
|
import { a as getContentPlacementUrl, g as getTargeting } from './getTargeting-42f9b439.js';
|
|
@@ -1234,7 +1234,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1234
1234
|
React__default.Fragment,
|
|
1235
1235
|
null,
|
|
1236
1236
|
React__default.createElement(BlockContent, _extends({
|
|
1237
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null,
|
|
1237
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1238
1238
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, selectedIndex))),
|
|
1239
1239
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1240
1240
|
}, client.config())),
|
|
@@ -1255,7 +1255,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1255
1255
|
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsVideoAdFound }))
|
|
1256
1256
|
),
|
|
1257
1257
|
React__default.createElement(BlockContent, _extends({
|
|
1258
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null,
|
|
1258
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1259
1259
|
blocks: [].concat(_toConsumableArray(articleBody.slice(selectedIndex))),
|
|
1260
1260
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1261
1261
|
}, client.config()))
|
|
@@ -1283,7 +1283,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1283
1283
|
React__default.Fragment,
|
|
1284
1284
|
null,
|
|
1285
1285
|
React__default.createElement(BlockContent, _extends({
|
|
1286
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null,
|
|
1286
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1287
1287
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex))),
|
|
1288
1288
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1289
1289
|
}, client.config())),
|
|
@@ -1299,7 +1299,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1299
1299
|
),
|
|
1300
1300
|
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
1301
1301
|
React__default.createElement(BlockContent, _extends({
|
|
1302
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null,
|
|
1302
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1303
1303
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex))),
|
|
1304
1304
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1305
1305
|
}, client.config()))
|
|
@@ -1332,7 +1332,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1332
1332
|
React__default.Fragment,
|
|
1333
1333
|
null,
|
|
1334
1334
|
React__default.createElement(BlockContent, _extends({
|
|
1335
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null,
|
|
1335
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1336
1336
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex2))),
|
|
1337
1337
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1338
1338
|
}, client.config())),
|
|
@@ -1344,7 +1344,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1344
1344
|
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: _checkIsAdFound2 }))
|
|
1345
1345
|
),
|
|
1346
1346
|
React__default.createElement(BlockContent, _extends({
|
|
1347
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null,
|
|
1347
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1348
1348
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex2))),
|
|
1349
1349
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1350
1350
|
}, client.config()))
|
|
@@ -1359,13 +1359,13 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1359
1359
|
'div',
|
|
1360
1360
|
null,
|
|
1361
1361
|
React__default.createElement(BlockContent, _extends({
|
|
1362
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null,
|
|
1362
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1363
1363
|
blocks: article.documentGroup && article.documentGroup.isSeries ? [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex3))) : articleBody,
|
|
1364
1364
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1365
1365
|
}, client.config())),
|
|
1366
1366
|
article.documentGroup && article.documentGroup.isSeries && sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
1367
1367
|
article.documentGroup && article.documentGroup.isSeries && React__default.createElement(BlockContent, _extends({
|
|
1368
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null,
|
|
1368
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1369
1369
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex3))),
|
|
1370
1370
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1371
1371
|
}, client.config()))
|
|
@@ -1723,7 +1723,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1723
1723
|
ISI,
|
|
1724
1724
|
null,
|
|
1725
1725
|
React__default.createElement(BlockContent, {
|
|
1726
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null,
|
|
1726
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, article.Ads, targeting),
|
|
1727
1727
|
blocks: isi
|
|
1728
1728
|
})
|
|
1729
1729
|
),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './extends-6d8e3924.js';
|
|
2
2
|
import 'react';
|
|
3
|
-
export { g as default } from './index-
|
|
3
|
+
export { g as default } from './index-70081f22.js';
|
|
4
4
|
import './BlockContent-1e73bd2c.js';
|
|
5
5
|
import './entities-6d9154b4.js';
|
|
6
6
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
@@ -8859,21 +8859,23 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8859
8859
|
client = _ref.client,
|
|
8860
8860
|
pageview = _ref.pageview,
|
|
8861
8861
|
getSerializers = _ref.getSerializers,
|
|
8862
|
-
accountIDs = _ref.accountIDs
|
|
8863
|
-
|
|
8864
|
-
rootArticle = _ref.rootArticle;
|
|
8862
|
+
accountIDs = _ref.accountIDs;
|
|
8863
|
+
_ref.Ads;
|
|
8864
|
+
var rootArticle = _ref.rootArticle;
|
|
8865
8865
|
|
|
8866
8866
|
if (!nodes || !nodes.articles) {
|
|
8867
8867
|
return null;
|
|
8868
8868
|
}
|
|
8869
8869
|
nodes.seriesTitle = !nodes.seriesTitle ? 'Learning Objectives' : nodes.seriesTitle;
|
|
8870
8870
|
var today = moment().utc().format();
|
|
8871
|
+
// console.log('ArticleSeries')
|
|
8872
|
+
// console.dir(Ads)
|
|
8871
8873
|
|
|
8872
8874
|
var authorPrefix = 'authors';
|
|
8873
8875
|
var router = useRouter();
|
|
8874
8876
|
|
|
8875
8877
|
var refArray = useRef([]);
|
|
8876
|
-
|
|
8878
|
+
useRef([]);
|
|
8877
8879
|
var articleContainerRef = useRef(null);
|
|
8878
8880
|
var arrowRef = useRef(null);
|
|
8879
8881
|
|
|
@@ -8968,7 +8970,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8968
8970
|
'a',
|
|
8969
8971
|
{ onClick: function onClick(e) {
|
|
8970
8972
|
return articleCardClickHandler(e);
|
|
8971
|
-
}, 'data-cardlabel': '' + articleLabel, 'data-
|
|
8973
|
+
}, 'data-cardlabel': '' + articleLabel, 'data-articleindex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8972
8974
|
React__default.createElement(
|
|
8973
8975
|
'div',
|
|
8974
8976
|
{ className: 'prevNext-thumbnail' },
|
|
@@ -9220,31 +9222,6 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9220
9222
|
)
|
|
9221
9223
|
),
|
|
9222
9224
|
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
9223
|
-
React__default.createElement(
|
|
9224
|
-
'div',
|
|
9225
|
-
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
9226
|
-
main_43 && Ads.map(function (ad, index) {
|
|
9227
|
-
if (index === 0) {
|
|
9228
|
-
return React__default.createElement(
|
|
9229
|
-
'div',
|
|
9230
|
-
{
|
|
9231
|
-
key: 'addid-1',
|
|
9232
|
-
id: 'addid-1',
|
|
9233
|
-
ref: function ref(ele) {
|
|
9234
|
-
return adRefArray.current[0] = ele;
|
|
9235
|
-
},
|
|
9236
|
-
style: {
|
|
9237
|
-
display: 'flex',
|
|
9238
|
-
flex: '1 0 auto',
|
|
9239
|
-
justifyContent: 'center',
|
|
9240
|
-
alignItems: 'center',
|
|
9241
|
-
textAlign: 'center'
|
|
9242
|
-
} },
|
|
9243
|
-
ad.component
|
|
9244
|
-
);
|
|
9245
|
-
}
|
|
9246
|
-
})
|
|
9247
|
-
),
|
|
9248
9225
|
React__default.createElement(
|
|
9249
9226
|
'div',
|
|
9250
9227
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
@@ -9341,31 +9318,6 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9341
9318
|
),
|
|
9342
9319
|
React__default.createElement('hr', { className: 'article-seperater' })
|
|
9343
9320
|
)
|
|
9344
|
-
),
|
|
9345
|
-
React__default.createElement(
|
|
9346
|
-
'div',
|
|
9347
|
-
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
9348
|
-
main_43 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
9349
|
-
if (innerIndex === 0) {
|
|
9350
|
-
return React__default.createElement(
|
|
9351
|
-
'div',
|
|
9352
|
-
{
|
|
9353
|
-
key: 'addid-' + (index + 2),
|
|
9354
|
-
id: 'addid-' + (index + 2),
|
|
9355
|
-
ref: function ref(ele) {
|
|
9356
|
-
return adRefArray.current[index + 1] = ele;
|
|
9357
|
-
},
|
|
9358
|
-
style: {
|
|
9359
|
-
display: 'flex',
|
|
9360
|
-
flex: '1 0 auto',
|
|
9361
|
-
justifyContent: 'center',
|
|
9362
|
-
alignItems: 'center',
|
|
9363
|
-
textAlign: 'center'
|
|
9364
|
-
} },
|
|
9365
|
-
ad.component
|
|
9366
|
-
);
|
|
9367
|
-
}
|
|
9368
|
-
})
|
|
9369
9321
|
)
|
|
9370
9322
|
)
|
|
9371
9323
|
);
|
package/dist/esm/index.js
CHANGED
|
@@ -86,7 +86,7 @@ export { default as VerticalHero } from './VerticalHero.js';
|
|
|
86
86
|
export { default as YahooHero } from './YahooHero.js';
|
|
87
87
|
export { default as GridHero } from './GridHero.js';
|
|
88
88
|
export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
|
|
89
|
-
export { g as getSerializers } from './index-
|
|
89
|
+
export { g as getSerializers } from './index-70081f22.js';
|
|
90
90
|
export { default as Beam } from './Beam.js';
|
|
91
91
|
export { default as Segment } from './Segment.js';
|
|
92
92
|
export { default as KMTracker } from './KMTracker.js';
|