@mjhls/mjh-framework 1.0.963-audio-autoplay-v1 → 1.0.963-audio-autoplay-v2
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-abbaf26f.js → MediaSeriesCard-b9374a2e.js} +1 -1
- package/dist/cjs/MediaSeriesLanding.js +2 -2
- package/dist/cjs/MediaSeriesLandingPaginated.js +2 -2
- 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 +20 -18
- package/dist/cjs/getSerializers.js +1 -1
- package/dist/cjs/{index-76862c47.js → index-55f09340.js} +7 -5
- 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-c7ad832d.js → MediaSeriesCard-a4026c80.js} +1 -1
- package/dist/esm/MediaSeriesLanding.js +2 -2
- package/dist/esm/MediaSeriesLandingPaginated.js +2 -2
- 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 +20 -18
- package/dist/esm/getSerializers.js +1 -1
- package/dist/esm/{index-eac8f299.js → index-fca291be.js} +7 -5
- 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-55f09340.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-55f09340.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-55f09340.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-55f09340.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-55f09340.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-b9374a2e.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-55f09340.js');
|
|
15
15
|
require('./_commonjsHelpers-06173234.js');
|
|
16
16
|
require('./core.get-iterator-method-5643aa10.js');
|
|
17
17
|
require('./web.dom.iterable-d98303e0.js');
|
|
@@ -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-b9374a2e.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-55f09340.js');
|
|
15
15
|
require('./_commonjsHelpers-06173234.js');
|
|
16
16
|
require('./core.get-iterator-method-5643aa10.js');
|
|
17
17
|
require('./web.dom.iterable-d98303e0.js');
|
|
@@ -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-55f09340.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-55f09340.js');
|
|
17
17
|
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
18
18
|
require('./_commonjsHelpers-06173234.js');
|
|
19
19
|
require('./core.get-iterator-method-5643aa10.js');
|
|
@@ -7,7 +7,7 @@ var React = require('react');
|
|
|
7
7
|
var Router = require('next/router');
|
|
8
8
|
var Head = require('next/head');
|
|
9
9
|
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
10
|
-
var getSerializers = require('./index-
|
|
10
|
+
var getSerializers = require('./index-55f09340.js');
|
|
11
11
|
require('./_commonjsHelpers-06173234.js');
|
|
12
12
|
require('./core.get-iterator-method-5643aa10.js');
|
|
13
13
|
require('./_object-pie-083f2dd6.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-55f09340.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-55f09340.js');
|
|
21
21
|
var AdSlot = require('./AdSlot.js');
|
|
22
22
|
var SeriesSlider = require('./SeriesSlider-74546d19.js');
|
|
23
23
|
var getTargeting = require('./getTargeting-dab97fe1.js');
|
|
@@ -914,6 +914,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
914
914
|
currentPage = props.currentPage,
|
|
915
915
|
_props$showAuthorDeta = props.showAuthorDetails,
|
|
916
916
|
showAuthorDetails = _props$showAuthorDeta === undefined ? false : _props$showAuthorDeta,
|
|
917
|
+
audioAutoplay = props.audioAutoplay,
|
|
917
918
|
_props$article = props.article,
|
|
918
919
|
title = _props$article.title,
|
|
919
920
|
_props$article$passwo = _props$article.passwordLock,
|
|
@@ -1211,7 +1212,14 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1211
1212
|
return React__default['default'].createElement(
|
|
1212
1213
|
'div',
|
|
1213
1214
|
null,
|
|
1214
|
-
useSegmentRecommendedArticles ? React__default['default'].createElement(Recommended, {
|
|
1215
|
+
useSegmentRecommendedArticles ? React__default['default'].createElement(Recommended, {
|
|
1216
|
+
client: client,
|
|
1217
|
+
article: article,
|
|
1218
|
+
index: props.index,
|
|
1219
|
+
Settings: props.Settings,
|
|
1220
|
+
showRelatedArticleFallbackImage: props.showRelatedArticleFallbackImage,
|
|
1221
|
+
cpModificationRequired: cpModificationRequired
|
|
1222
|
+
}) : React__default['default'].createElement(
|
|
1215
1223
|
'section',
|
|
1216
1224
|
{ id: 'related-content-section', className: 'my-1' },
|
|
1217
1225
|
(article.relatedArticle || RelevantTopics()) && React__default['default'].createElement(
|
|
@@ -1314,7 +1322,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1314
1322
|
React__default['default'].Fragment,
|
|
1315
1323
|
null,
|
|
1316
1324
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
1317
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1325
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
|
|
1318
1326
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(0, selectedIndex))),
|
|
1319
1327
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1320
1328
|
}, client.config())),
|
|
@@ -1323,9 +1331,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1323
1331
|
React__default['default'].createElement(
|
|
1324
1332
|
'div',
|
|
1325
1333
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
1326
|
-
React__default['default'].createElement(AdSlot, _extends._extends({}, payload.contextualAD, {
|
|
1327
|
-
refreshFlag: refreshFlag
|
|
1328
|
-
}))
|
|
1334
|
+
React__default['default'].createElement(AdSlot, _extends._extends({}, payload.contextualAD, { refreshFlag: refreshFlag }))
|
|
1329
1335
|
),
|
|
1330
1336
|
React__default['default'].createElement(
|
|
1331
1337
|
'style',
|
|
@@ -1339,7 +1345,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1339
1345
|
React__default['default'].createElement(AdSlot, _extends._extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsVideoAdFound }))
|
|
1340
1346
|
),
|
|
1341
1347
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
1342
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1348
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
|
|
1343
1349
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(selectedIndex))),
|
|
1344
1350
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1345
1351
|
}, client.config()))
|
|
@@ -1367,7 +1373,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1367
1373
|
React__default['default'].Fragment,
|
|
1368
1374
|
null,
|
|
1369
1375
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
1370
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1376
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
|
|
1371
1377
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(0, _selectedIndex))),
|
|
1372
1378
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1373
1379
|
}, client.config())),
|
|
@@ -1379,9 +1385,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1379
1385
|
React__default['default'].createElement(
|
|
1380
1386
|
'div',
|
|
1381
1387
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
1382
|
-
React__default['default'].createElement(AdSlot, _extends._extends({}, payload.contextualAD, {
|
|
1383
|
-
refreshFlag: refreshFlag
|
|
1384
|
-
}))
|
|
1388
|
+
React__default['default'].createElement(AdSlot, _extends._extends({}, payload.contextualAD, { refreshFlag: refreshFlag }))
|
|
1385
1389
|
),
|
|
1386
1390
|
React__default['default'].createElement(
|
|
1387
1391
|
'style',
|
|
@@ -1391,7 +1395,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1391
1395
|
),
|
|
1392
1396
|
contextualADFlag && React__default['default'].createElement('span', { className: 'clearfix' }),
|
|
1393
1397
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
1394
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1398
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
|
|
1395
1399
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(_selectedIndex))),
|
|
1396
1400
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1397
1401
|
}, client.config()))
|
|
@@ -1424,7 +1428,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1424
1428
|
React__default['default'].Fragment,
|
|
1425
1429
|
null,
|
|
1426
1430
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
1427
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1431
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
|
|
1428
1432
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(0, _selectedIndex2))),
|
|
1429
1433
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1430
1434
|
}, client.config())),
|
|
@@ -1436,7 +1440,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1436
1440
|
React__default['default'].createElement(AdSlot, _extends._extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsAdFound }))
|
|
1437
1441
|
),
|
|
1438
1442
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
1439
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1443
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
|
|
1440
1444
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(_selectedIndex2))),
|
|
1441
1445
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1442
1446
|
}, client.config()))
|
|
@@ -1451,13 +1455,13 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1451
1455
|
'div',
|
|
1452
1456
|
null,
|
|
1453
1457
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
1454
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1458
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
|
|
1455
1459
|
blocks: article.documentGroup && article.documentGroup.isSeries ? [].concat(toConsumableArray._toConsumableArray(articleBody.slice(0, _selectedIndex3))) : articleBody,
|
|
1456
1460
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1457
1461
|
}, client.config())),
|
|
1458
1462
|
article.documentGroup && article.documentGroup.isSeries && sliderData && seriesInfo.hasVideo && React__default['default'].createElement(SeriesSlider.SeriesSlider, { dataset: sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: logicforDisplayingEpisodeNumber }),
|
|
1459
1463
|
article.documentGroup && article.documentGroup.isSeries && React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
1460
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1464
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
|
|
1461
1465
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(_selectedIndex3))),
|
|
1462
1466
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1463
1467
|
}, client.config()))
|
|
@@ -1565,7 +1569,6 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1565
1569
|
partialVisibility: true,
|
|
1566
1570
|
offset: { bottom: triggerOffset, top: containerHeight && containerHeight },
|
|
1567
1571
|
onChange: function onChange(isVisible) {
|
|
1568
|
-
|
|
1569
1572
|
if (isVisible && !isFirstArticle) {
|
|
1570
1573
|
var pageviewProperties = _extends._extends({}, targeting, {
|
|
1571
1574
|
category: article && article.category ? article.category.name : ''
|
|
@@ -1868,7 +1871,6 @@ var _this$1 = undefined;
|
|
|
1868
1871
|
|
|
1869
1872
|
var ArticleQueue = function ArticleQueue(props) {
|
|
1870
1873
|
var router = Router.useRouter();
|
|
1871
|
-
|
|
1872
1874
|
var _props$prevUrl = props.prevUrl,
|
|
1873
1875
|
prevUrl = _props$prevUrl === undefined ? '/' : _props$prevUrl,
|
|
1874
1876
|
Ads = props.Ads,
|
|
@@ -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-55f09340.js');
|
|
6
6
|
require('./BlockContent-9ebd251f.js');
|
|
7
7
|
require('./entities-df1aed86.js');
|
|
8
8
|
require('./_commonjsHelpers-06173234.js');
|
|
@@ -7502,7 +7502,9 @@ _defineProperty(ReactPlayer, "canEnablePIP", function (url) {
|
|
|
7502
7502
|
var ReactPlayer = _commonjsHelpers.unwrapExports(ReactPlayer_1);
|
|
7503
7503
|
|
|
7504
7504
|
var Audio = function Audio(_ref) {
|
|
7505
|
-
var node = _ref.node
|
|
7505
|
+
var node = _ref.node,
|
|
7506
|
+
_ref$audioAutoplay = _ref.audioAutoplay,
|
|
7507
|
+
audioAutoplay = _ref$audioAutoplay === undefined ? false : _ref$audioAutoplay;
|
|
7506
7508
|
|
|
7507
7509
|
if (node.uploadAudio) {
|
|
7508
7510
|
return React__default['default'].createElement(
|
|
@@ -7510,7 +7512,7 @@ var Audio = function Audio(_ref) {
|
|
|
7510
7512
|
{ className: 'audio d-block text-center mb-3' },
|
|
7511
7513
|
React__default['default'].createElement(
|
|
7512
7514
|
'audio',
|
|
7513
|
-
{ controls: true, controlsList: 'nodownload', className: 'audio', autoPlay:
|
|
7515
|
+
{ controls: true, controlsList: 'nodownload', className: 'audio', autoPlay: audioAutoplay },
|
|
7514
7516
|
React__default['default'].createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7515
7517
|
React__default['default'].createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7516
7518
|
'Your browser does not support the audio element.'
|
|
@@ -10363,11 +10365,11 @@ var getSerializers = function getSerializers() {
|
|
|
10363
10365
|
article = props[12],
|
|
10364
10366
|
meta = props[13],
|
|
10365
10367
|
authorPrefix = props[14],
|
|
10366
|
-
authorImgHeight = props[15]
|
|
10368
|
+
authorImgHeight = props[15],
|
|
10369
|
+
audioAutoplay = props[16];
|
|
10367
10370
|
|
|
10368
10371
|
|
|
10369
10372
|
var nextVideo = article && article.nextVideo ? article.nextVideo : null;
|
|
10370
|
-
|
|
10371
10373
|
return {
|
|
10372
10374
|
types: {
|
|
10373
10375
|
undefined: function undefined$1() {
|
|
@@ -10460,7 +10462,7 @@ var getSerializers = function getSerializers() {
|
|
|
10460
10462
|
audio: function audio(_ref12) {
|
|
10461
10463
|
var node = _ref12.node;
|
|
10462
10464
|
|
|
10463
|
-
return React__default['default'].createElement(Audio, { node: node });
|
|
10465
|
+
return React__default['default'].createElement(Audio, { node: node, audioAutoplay: audioAutoplay });
|
|
10464
10466
|
},
|
|
10465
10467
|
poll: function poll(_ref13) {
|
|
10466
10468
|
var node = _ref13.node;
|
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-55f09340.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-fca291be.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-fca291be.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-fca291be.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-fca291be.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-fca291be.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-a4026c80.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-fca291be.js';
|
|
13
13
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
14
14
|
import './core.get-iterator-method-ea258bb1.js';
|
|
15
15
|
import './web.dom.iterable-ab4dea5c.js';
|
|
@@ -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-a4026c80.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-fca291be.js';
|
|
13
13
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
14
14
|
import './core.get-iterator-method-ea258bb1.js';
|
|
15
15
|
import './web.dom.iterable-ab4dea5c.js';
|
|
@@ -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-fca291be.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-fca291be.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';
|
|
@@ -5,7 +5,7 @@ import React__default, { useState, useEffect } from 'react';
|
|
|
5
5
|
import { useRouter } from 'next/router';
|
|
6
6
|
import Head from 'next/head';
|
|
7
7
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
8
|
-
import { g as getSerializers } from './index-
|
|
8
|
+
import { g as getSerializers } from './index-fca291be.js';
|
|
9
9
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
10
10
|
import './core.get-iterator-method-ea258bb1.js';
|
|
11
11
|
import './_object-pie-133f504a.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-fca291be.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-fca291be.js';
|
|
19
19
|
import DFPAdSlot from './AdSlot.js';
|
|
20
20
|
import { S as SeriesSlider } from './SeriesSlider-e495571f.js';
|
|
21
21
|
import { a as getContentPlacementUrl, g as getTargeting } from './getTargeting-04d979c9.js';
|
|
@@ -904,6 +904,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
904
904
|
currentPage = props.currentPage,
|
|
905
905
|
_props$showAuthorDeta = props.showAuthorDetails,
|
|
906
906
|
showAuthorDetails = _props$showAuthorDeta === undefined ? false : _props$showAuthorDeta,
|
|
907
|
+
audioAutoplay = props.audioAutoplay,
|
|
907
908
|
_props$article = props.article,
|
|
908
909
|
title = _props$article.title,
|
|
909
910
|
_props$article$passwo = _props$article.passwordLock,
|
|
@@ -1201,7 +1202,14 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1201
1202
|
return React__default.createElement(
|
|
1202
1203
|
'div',
|
|
1203
1204
|
null,
|
|
1204
|
-
useSegmentRecommendedArticles ? React__default.createElement(Recommended, {
|
|
1205
|
+
useSegmentRecommendedArticles ? React__default.createElement(Recommended, {
|
|
1206
|
+
client: client,
|
|
1207
|
+
article: article,
|
|
1208
|
+
index: props.index,
|
|
1209
|
+
Settings: props.Settings,
|
|
1210
|
+
showRelatedArticleFallbackImage: props.showRelatedArticleFallbackImage,
|
|
1211
|
+
cpModificationRequired: cpModificationRequired
|
|
1212
|
+
}) : React__default.createElement(
|
|
1205
1213
|
'section',
|
|
1206
1214
|
{ id: 'related-content-section', className: 'my-1' },
|
|
1207
1215
|
(article.relatedArticle || RelevantTopics()) && React__default.createElement(
|
|
@@ -1304,7 +1312,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1304
1312
|
React__default.Fragment,
|
|
1305
1313
|
null,
|
|
1306
1314
|
React__default.createElement(BlockContent, _extends({
|
|
1307
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1315
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
|
|
1308
1316
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, selectedIndex))),
|
|
1309
1317
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1310
1318
|
}, client.config())),
|
|
@@ -1313,9 +1321,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1313
1321
|
React__default.createElement(
|
|
1314
1322
|
'div',
|
|
1315
1323
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
1316
|
-
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
1317
|
-
refreshFlag: refreshFlag
|
|
1318
|
-
}))
|
|
1324
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, { refreshFlag: refreshFlag }))
|
|
1319
1325
|
),
|
|
1320
1326
|
React__default.createElement(
|
|
1321
1327
|
'style',
|
|
@@ -1329,7 +1335,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1329
1335
|
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsVideoAdFound }))
|
|
1330
1336
|
),
|
|
1331
1337
|
React__default.createElement(BlockContent, _extends({
|
|
1332
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1338
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
|
|
1333
1339
|
blocks: [].concat(_toConsumableArray(articleBody.slice(selectedIndex))),
|
|
1334
1340
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1335
1341
|
}, client.config()))
|
|
@@ -1357,7 +1363,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1357
1363
|
React__default.Fragment,
|
|
1358
1364
|
null,
|
|
1359
1365
|
React__default.createElement(BlockContent, _extends({
|
|
1360
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1366
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
|
|
1361
1367
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex))),
|
|
1362
1368
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1363
1369
|
}, client.config())),
|
|
@@ -1369,9 +1375,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1369
1375
|
React__default.createElement(
|
|
1370
1376
|
'div',
|
|
1371
1377
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
1372
|
-
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
1373
|
-
refreshFlag: refreshFlag
|
|
1374
|
-
}))
|
|
1378
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, { refreshFlag: refreshFlag }))
|
|
1375
1379
|
),
|
|
1376
1380
|
React__default.createElement(
|
|
1377
1381
|
'style',
|
|
@@ -1381,7 +1385,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1381
1385
|
),
|
|
1382
1386
|
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
1383
1387
|
React__default.createElement(BlockContent, _extends({
|
|
1384
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1388
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
|
|
1385
1389
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex))),
|
|
1386
1390
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1387
1391
|
}, client.config()))
|
|
@@ -1414,7 +1418,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1414
1418
|
React__default.Fragment,
|
|
1415
1419
|
null,
|
|
1416
1420
|
React__default.createElement(BlockContent, _extends({
|
|
1417
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1421
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
|
|
1418
1422
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex2))),
|
|
1419
1423
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1420
1424
|
}, client.config())),
|
|
@@ -1426,7 +1430,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1426
1430
|
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsAdFound }))
|
|
1427
1431
|
),
|
|
1428
1432
|
React__default.createElement(BlockContent, _extends({
|
|
1429
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1433
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
|
|
1430
1434
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex2))),
|
|
1431
1435
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1432
1436
|
}, client.config()))
|
|
@@ -1441,13 +1445,13 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1441
1445
|
'div',
|
|
1442
1446
|
null,
|
|
1443
1447
|
React__default.createElement(BlockContent, _extends({
|
|
1444
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1448
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
|
|
1445
1449
|
blocks: article.documentGroup && article.documentGroup.isSeries ? [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex3))) : articleBody,
|
|
1446
1450
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1447
1451
|
}, client.config())),
|
|
1448
1452
|
article.documentGroup && article.documentGroup.isSeries && sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: logicforDisplayingEpisodeNumber }),
|
|
1449
1453
|
article.documentGroup && article.documentGroup.isSeries && React__default.createElement(BlockContent, _extends({
|
|
1450
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1454
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
|
|
1451
1455
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex3))),
|
|
1452
1456
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1453
1457
|
}, client.config()))
|
|
@@ -1555,7 +1559,6 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1555
1559
|
partialVisibility: true,
|
|
1556
1560
|
offset: { bottom: triggerOffset, top: containerHeight && containerHeight },
|
|
1557
1561
|
onChange: function onChange(isVisible) {
|
|
1558
|
-
|
|
1559
1562
|
if (isVisible && !isFirstArticle) {
|
|
1560
1563
|
var pageviewProperties = _extends({}, targeting, {
|
|
1561
1564
|
category: article && article.category ? article.category.name : ''
|
|
@@ -1858,7 +1861,6 @@ var _this$1 = undefined;
|
|
|
1858
1861
|
|
|
1859
1862
|
var ArticleQueue = function ArticleQueue(props) {
|
|
1860
1863
|
var router = useRouter();
|
|
1861
|
-
|
|
1862
1864
|
var _props$prevUrl = props.prevUrl,
|
|
1863
1865
|
prevUrl = _props$prevUrl === undefined ? '/' : _props$prevUrl,
|
|
1864
1866
|
Ads = props.Ads,
|
|
@@ -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-fca291be.js';
|
|
4
4
|
import './BlockContent-1e73bd2c.js';
|
|
5
5
|
import './entities-6d9154b4.js';
|
|
6
6
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
@@ -7483,7 +7483,9 @@ _defineProperty(ReactPlayer, "canEnablePIP", function (url) {
|
|
|
7483
7483
|
var ReactPlayer = unwrapExports(ReactPlayer_1);
|
|
7484
7484
|
|
|
7485
7485
|
var Audio = function Audio(_ref) {
|
|
7486
|
-
var node = _ref.node
|
|
7486
|
+
var node = _ref.node,
|
|
7487
|
+
_ref$audioAutoplay = _ref.audioAutoplay,
|
|
7488
|
+
audioAutoplay = _ref$audioAutoplay === undefined ? false : _ref$audioAutoplay;
|
|
7487
7489
|
|
|
7488
7490
|
if (node.uploadAudio) {
|
|
7489
7491
|
return React__default.createElement(
|
|
@@ -7491,7 +7493,7 @@ var Audio = function Audio(_ref) {
|
|
|
7491
7493
|
{ className: 'audio d-block text-center mb-3' },
|
|
7492
7494
|
React__default.createElement(
|
|
7493
7495
|
'audio',
|
|
7494
|
-
{ controls: true, controlsList: 'nodownload', className: 'audio', autoPlay:
|
|
7496
|
+
{ controls: true, controlsList: 'nodownload', className: 'audio', autoPlay: audioAutoplay },
|
|
7495
7497
|
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7496
7498
|
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7497
7499
|
'Your browser does not support the audio element.'
|
|
@@ -10344,11 +10346,11 @@ var getSerializers = function getSerializers() {
|
|
|
10344
10346
|
article = props[12],
|
|
10345
10347
|
meta = props[13],
|
|
10346
10348
|
authorPrefix = props[14],
|
|
10347
|
-
authorImgHeight = props[15]
|
|
10349
|
+
authorImgHeight = props[15],
|
|
10350
|
+
audioAutoplay = props[16];
|
|
10348
10351
|
|
|
10349
10352
|
|
|
10350
10353
|
var nextVideo = article && article.nextVideo ? article.nextVideo : null;
|
|
10351
|
-
|
|
10352
10354
|
return {
|
|
10353
10355
|
types: {
|
|
10354
10356
|
undefined: function undefined$1() {
|
|
@@ -10441,7 +10443,7 @@ var getSerializers = function getSerializers() {
|
|
|
10441
10443
|
audio: function audio(_ref12) {
|
|
10442
10444
|
var node = _ref12.node;
|
|
10443
10445
|
|
|
10444
|
-
return React__default.createElement(Audio, { node: node });
|
|
10446
|
+
return React__default.createElement(Audio, { node: node, audioAutoplay: audioAutoplay });
|
|
10445
10447
|
},
|
|
10446
10448
|
poll: function poll(_ref13) {
|
|
10447
10449
|
var node = _ref13.node;
|
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-fca291be.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';
|