@mjhls/mjh-framework 1.0.777 → 1.0.778
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/ArticleProgramLandingPage.js +1 -1
- package/dist/cjs/ExternalResources.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +1 -1
- package/dist/cjs/PartnerDetailListing.js +1 -1
- package/dist/cjs/TaxonomyDescription.js +1 -1
- package/dist/cjs/VideoProgramLandingPage.js +1 -1
- package/dist/cjs/View.js +11 -10
- package/dist/cjs/getSerializers.js +1 -1
- package/dist/cjs/{index-1846058a.js → index-c4759a3d.js} +9 -7
- 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/PartnerDetailListing.js +1 -1
- package/dist/esm/TaxonomyDescription.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +1 -1
- package/dist/esm/View.js +11 -10
- package/dist/esm/getSerializers.js +1 -1
- package/dist/esm/{index-f9cda735.js → index-24841cf3.js} +9 -7
- package/dist/esm/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
# mjh-framework v. 1.0.
|
|
2
|
+
# mjh-framework v. 1.0.778
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/mjh-framework) [](https://standardjs.com)
|
|
@@ -5,7 +5,7 @@ var slicedToArray = require('./slicedToArray-db24842a.js');
|
|
|
5
5
|
var _extends = require('./extends-1e24fc8d.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var BlockContent = require('./BlockContent-eca358e4.js');
|
|
8
|
-
var getSerializers = require('./index-
|
|
8
|
+
var getSerializers = require('./index-c4759a3d.js');
|
|
9
9
|
var ArticleSeriesListing = require('./ArticleSeriesListing.js');
|
|
10
10
|
require('./_commonjsHelpers-06173234.js');
|
|
11
11
|
require('./es6.string.iterator-20d42c53.js');
|
|
@@ -4,7 +4,7 @@ var _extends = require('./extends-1e24fc8d.js');
|
|
|
4
4
|
var slicedToArray = require('./slicedToArray-db24842a.js');
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var BlockContent = require('./BlockContent-eca358e4.js');
|
|
7
|
-
var getSerializers = require('./index-
|
|
7
|
+
var getSerializers = require('./index-c4759a3d.js');
|
|
8
8
|
var index = require('./index-4d74ffd6.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-974f47d9.js');
|
|
7
7
|
var BlockContent = require('./BlockContent-eca358e4.js');
|
|
8
|
-
var getSerializers = require('./index-
|
|
8
|
+
var getSerializers = require('./index-c4759a3d.js');
|
|
9
9
|
require('./_commonjsHelpers-06173234.js');
|
|
10
10
|
require('./_to-object-821a2927.js');
|
|
11
11
|
require('./_object-pie-68c5bcbc.js');
|
|
@@ -12,7 +12,7 @@ var QueueDeckExpanded = require('./QueueDeckExpanded.js');
|
|
|
12
12
|
var Breadcrumbs = require('./Breadcrumbs.js');
|
|
13
13
|
var Feature = require('./Feature.js');
|
|
14
14
|
var urlFor = require('./urlFor.js');
|
|
15
|
-
var getSerializers = require('./index-
|
|
15
|
+
var getSerializers = require('./index-c4759a3d.js');
|
|
16
16
|
var BlockContent = require('./BlockContent-eca358e4.js');
|
|
17
17
|
require('./_commonjsHelpers-06173234.js');
|
|
18
18
|
require('./es6.string.iterator-20d42c53.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-eca358e4.js');
|
|
9
|
-
var getSerializers = require('./index-
|
|
9
|
+
var getSerializers = require('./index-c4759a3d.js');
|
|
10
10
|
require('./_commonjsHelpers-06173234.js');
|
|
11
11
|
require('./es6.string.iterator-20d42c53.js');
|
|
12
12
|
require('./_to-object-821a2927.js');
|
|
@@ -7,7 +7,7 @@ var BlockContent = require('./BlockContent-eca358e4.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-c4759a3d.js');
|
|
11
11
|
var VideoSeriesListing = require('./VideoSeriesListing.js');
|
|
12
12
|
require('./_commonjsHelpers-06173234.js');
|
|
13
13
|
require('./es6.string.iterator-20d42c53.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-8b54af99.js');
|
|
19
19
|
var SocialShare = require('./SocialShare.js');
|
|
20
|
-
var getSerializers = require('./index-
|
|
20
|
+
var getSerializers = require('./index-c4759a3d.js');
|
|
21
21
|
var AdSlot = require('./AdSlot.js');
|
|
22
22
|
var SeriesSlider = require('./SeriesSlider-193a2958.js');
|
|
23
23
|
var getTargeting = require('./getTargeting-497b581d.js');
|
|
@@ -721,6 +721,7 @@ var Article = React.forwardRef(function (props, ref) {
|
|
|
721
721
|
|
|
722
722
|
var indexes = findIndex(body);
|
|
723
723
|
var seriesInfo = checkIfMediaSeriesHasVideo(article);
|
|
724
|
+
var isMediaSeries = article.documentGroup && article.documentGroup.isSeries ? true : false;
|
|
724
725
|
if (indexes.length >= 2 && body.length > 3 && payload.contextualAD && payload.contextualVideoAD) {
|
|
725
726
|
payload = _extends._extends({}, payload, {
|
|
726
727
|
contextualAD: _extends._extends({}, payload.contextualAD, {
|
|
@@ -750,7 +751,7 @@ var Article = React.forwardRef(function (props, ref) {
|
|
|
750
751
|
React__default['default'].Fragment,
|
|
751
752
|
null,
|
|
752
753
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
753
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage,
|
|
754
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
754
755
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(0, selectedIndex))),
|
|
755
756
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
756
757
|
}, client.config())),
|
|
@@ -771,7 +772,7 @@ var Article = React.forwardRef(function (props, ref) {
|
|
|
771
772
|
React__default['default'].createElement(AdSlot, _extends._extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsVideoAdFound }))
|
|
772
773
|
),
|
|
773
774
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
774
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage,
|
|
775
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
775
776
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(selectedIndex))),
|
|
776
777
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
777
778
|
}, client.config()))
|
|
@@ -800,7 +801,7 @@ var Article = React.forwardRef(function (props, ref) {
|
|
|
800
801
|
React__default['default'].Fragment,
|
|
801
802
|
null,
|
|
802
803
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
803
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage,
|
|
804
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
804
805
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(0, _selectedIndex))),
|
|
805
806
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
806
807
|
}, client.config())),
|
|
@@ -816,7 +817,7 @@ var Article = React.forwardRef(function (props, ref) {
|
|
|
816
817
|
),
|
|
817
818
|
contextualADFlag && React__default['default'].createElement('span', { className: 'clearfix' }),
|
|
818
819
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
819
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage,
|
|
820
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
820
821
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(_selectedIndex))),
|
|
821
822
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
822
823
|
}, client.config()))
|
|
@@ -849,7 +850,7 @@ var Article = React.forwardRef(function (props, ref) {
|
|
|
849
850
|
React__default['default'].Fragment,
|
|
850
851
|
null,
|
|
851
852
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
852
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage,
|
|
853
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
853
854
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(0, _selectedIndex2))),
|
|
854
855
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
855
856
|
}, client.config())),
|
|
@@ -861,7 +862,7 @@ var Article = React.forwardRef(function (props, ref) {
|
|
|
861
862
|
React__default['default'].createElement(AdSlot, _extends._extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: _checkIsAdFound2 }))
|
|
862
863
|
),
|
|
863
864
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
864
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage,
|
|
865
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
865
866
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(_selectedIndex2))),
|
|
866
867
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
867
868
|
}, client.config()))
|
|
@@ -877,13 +878,13 @@ var Article = React.forwardRef(function (props, ref) {
|
|
|
877
878
|
'div',
|
|
878
879
|
null,
|
|
879
880
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
880
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage,
|
|
881
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, props.article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
881
882
|
blocks: article.documentGroup && article.documentGroup.isSeries ? [].concat(toConsumableArray._toConsumableArray(articleBody.slice(0, _selectedIndex3))) : articleBody,
|
|
882
883
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
883
884
|
}, client.config())),
|
|
884
885
|
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React__default['default'].createElement(SeriesSlider.SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
885
886
|
article.documentGroup && article.documentGroup.isSeries && React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
886
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage,
|
|
887
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
887
888
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(_selectedIndex3))),
|
|
888
889
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
889
890
|
}, client.config()))
|
|
@@ -961,13 +962,13 @@ var Article = React.forwardRef(function (props, ref) {
|
|
|
961
962
|
});
|
|
962
963
|
return episode;
|
|
963
964
|
};
|
|
964
|
-
|
|
965
965
|
// pixels from bottom of window to change trigger visibility change
|
|
966
966
|
var triggerOffset = 10;
|
|
967
967
|
var isVideoSeries = checkIfVideoSeries(article);
|
|
968
968
|
var episodeNumber = fetchCurrentEpisode(props.sliderData, props.article);
|
|
969
969
|
var isMediaSeries = article.documentGroup && article.documentGroup.isSeries ? true : false;
|
|
970
970
|
var seriesInfo = checkIfMediaSeriesHasVideo(article);
|
|
971
|
+
|
|
971
972
|
return React__default['default'].createElement(
|
|
972
973
|
React__default['default'].Fragment,
|
|
973
974
|
null,
|
|
@@ -1900,7 +1900,8 @@ YouTube.defaultProps = {
|
|
|
1900
1900
|
};
|
|
1901
1901
|
|
|
1902
1902
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1903
|
-
var url = _ref.url
|
|
1903
|
+
var url = _ref.url,
|
|
1904
|
+
autoplay = _ref.autoplay;
|
|
1904
1905
|
|
|
1905
1906
|
var id = index$2.getYoutubeId(url);
|
|
1906
1907
|
|
|
@@ -1924,7 +1925,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1924
1925
|
var opts = {
|
|
1925
1926
|
width: '100%',
|
|
1926
1927
|
playerVars: {
|
|
1927
|
-
rel: 0
|
|
1928
|
+
rel: 0,
|
|
1929
|
+
autoplay: autoplay
|
|
1928
1930
|
}
|
|
1929
1931
|
};
|
|
1930
1932
|
|
|
@@ -9275,10 +9277,9 @@ var getSerializers = function getSerializers() {
|
|
|
9275
9277
|
showVotes = props[4],
|
|
9276
9278
|
drupalLeadSettings = props[5],
|
|
9277
9279
|
currentPage = props[6],
|
|
9278
|
-
|
|
9279
|
-
|
|
9280
|
-
_props$
|
|
9281
|
-
contextualADFlag = _props$2 === undefined ? false : _props$2,
|
|
9280
|
+
autoplay = props[7],
|
|
9281
|
+
_props$ = props[8],
|
|
9282
|
+
contextualADFlag = _props$ === undefined ? false : _props$,
|
|
9282
9283
|
articleId = props[9],
|
|
9283
9284
|
Ads = props[10],
|
|
9284
9285
|
targeting = props[11],
|
|
@@ -9287,6 +9288,7 @@ var getSerializers = function getSerializers() {
|
|
|
9287
9288
|
authorPrefix = props[14],
|
|
9288
9289
|
authorImgHeight = props[15];
|
|
9289
9290
|
|
|
9291
|
+
|
|
9290
9292
|
return {
|
|
9291
9293
|
types: {
|
|
9292
9294
|
block: function block(props) {
|
|
@@ -9297,7 +9299,7 @@ var getSerializers = function getSerializers() {
|
|
|
9297
9299
|
var node = _ref.node;
|
|
9298
9300
|
var url = node.url;
|
|
9299
9301
|
|
|
9300
|
-
return React__default['default'].createElement(YouTubePlayer, { url: url });
|
|
9302
|
+
return React__default['default'].createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9301
9303
|
},
|
|
9302
9304
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9303
9305
|
var node = _ref2.node;
|
package/dist/cjs/index.js
CHANGED
|
@@ -82,7 +82,7 @@ var VerticalHero = require('./VerticalHero.js');
|
|
|
82
82
|
var YahooHero = require('./YahooHero.js');
|
|
83
83
|
var GridHero = require('./GridHero.js');
|
|
84
84
|
var ConferenceArticleCard = require('./ConferenceArticleCard.js');
|
|
85
|
-
var getSerializers = require('./index-
|
|
85
|
+
var getSerializers = require('./index-c4759a3d.js');
|
|
86
86
|
var Beam = require('./Beam.js');
|
|
87
87
|
var Segment = require('./Segment.js');
|
|
88
88
|
var KMTracker = require('./KMTracker.js');
|
|
@@ -3,7 +3,7 @@ import { _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
|
|
|
3
3
|
import { _ as _extends } from './extends-31d65aba.js';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { B as BlockContent } from './BlockContent-d8cd739c.js';
|
|
6
|
-
import { g as getSerializers } from './index-
|
|
6
|
+
import { g as getSerializers } from './index-24841cf3.js';
|
|
7
7
|
import ArticleSeriesListing from './ArticleSeriesListing.js';
|
|
8
8
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
9
9
|
import './es6.string.iterator-aa6068a3.js';
|
|
@@ -2,7 +2,7 @@ import { _ as _extends } from './extends-31d65aba.js';
|
|
|
2
2
|
import { _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
|
|
3
3
|
import React, { useState, useEffect } from 'react';
|
|
4
4
|
import { B as BlockContent } from './BlockContent-d8cd739c.js';
|
|
5
|
-
import { g as getSerializers } from './index-
|
|
5
|
+
import { g as getSerializers } from './index-24841cf3.js';
|
|
6
6
|
import { m as momentTimezone } from './index-ccb770c7.js';
|
|
7
7
|
import { useRouter } from 'next/router';
|
|
8
8
|
import Button from 'react-bootstrap/Button';
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import ArticleCarousel from './ArticleCarousel.js';
|
|
4
4
|
import { I as IoIosArrowForward } from './index.esm-3fdda599.js';
|
|
5
5
|
import { B as BlockContent } from './BlockContent-d8cd739c.js';
|
|
6
|
-
import { g as getSerializers } from './index-
|
|
6
|
+
import { g as getSerializers } from './index-24841cf3.js';
|
|
7
7
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
8
8
|
import './_to-object-97770c52.js';
|
|
9
9
|
import './_object-pie-33c40e79.js';
|
|
@@ -10,7 +10,7 @@ import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
|
10
10
|
import Breadcrumbs from './Breadcrumbs.js';
|
|
11
11
|
import Feature from './Feature.js';
|
|
12
12
|
import urlFor from './urlFor.js';
|
|
13
|
-
import { g as getSerializers } from './index-
|
|
13
|
+
import { g as getSerializers } from './index-24841cf3.js';
|
|
14
14
|
import { B as BlockContent } from './BlockContent-d8cd739c.js';
|
|
15
15
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
16
16
|
import './es6.string.iterator-aa6068a3.js';
|
|
@@ -4,7 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import { useRouter } from 'next/router';
|
|
5
5
|
import Head from 'next/head';
|
|
6
6
|
import { B as BlockContent } from './BlockContent-d8cd739c.js';
|
|
7
|
-
import { g as getSerializers } from './index-
|
|
7
|
+
import { g as getSerializers } from './index-24841cf3.js';
|
|
8
8
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
9
9
|
import './es6.string.iterator-aa6068a3.js';
|
|
10
10
|
import './_to-object-97770c52.js';
|
|
@@ -5,7 +5,7 @@ import { B as BlockContent } from './BlockContent-d8cd739c.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-24841cf3.js';
|
|
9
9
|
import VideoSeriesListing from './VideoSeriesListing.js';
|
|
10
10
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
11
11
|
import './es6.string.iterator-aa6068a3.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-082c757b.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-24841cf3.js';
|
|
19
19
|
import DFPAdSlot from './AdSlot.js';
|
|
20
20
|
import { S as SeriesSlider } from './SeriesSlider-6a1081ff.js';
|
|
21
21
|
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-2d402d66.js';
|
|
@@ -711,6 +711,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
711
711
|
|
|
712
712
|
var indexes = findIndex(body);
|
|
713
713
|
var seriesInfo = checkIfMediaSeriesHasVideo(article);
|
|
714
|
+
var isMediaSeries = article.documentGroup && article.documentGroup.isSeries ? true : false;
|
|
714
715
|
if (indexes.length >= 2 && body.length > 3 && payload.contextualAD && payload.contextualVideoAD) {
|
|
715
716
|
payload = _extends({}, payload, {
|
|
716
717
|
contextualAD: _extends({}, payload.contextualAD, {
|
|
@@ -740,7 +741,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
740
741
|
React.Fragment,
|
|
741
742
|
null,
|
|
742
743
|
React.createElement(BlockContent, _extends({
|
|
743
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage,
|
|
744
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
744
745
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, selectedIndex))),
|
|
745
746
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
746
747
|
}, client.config())),
|
|
@@ -761,7 +762,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
761
762
|
React.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsVideoAdFound }))
|
|
762
763
|
),
|
|
763
764
|
React.createElement(BlockContent, _extends({
|
|
764
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage,
|
|
765
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
765
766
|
blocks: [].concat(_toConsumableArray(articleBody.slice(selectedIndex))),
|
|
766
767
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
767
768
|
}, client.config()))
|
|
@@ -790,7 +791,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
790
791
|
React.Fragment,
|
|
791
792
|
null,
|
|
792
793
|
React.createElement(BlockContent, _extends({
|
|
793
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage,
|
|
794
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
794
795
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex))),
|
|
795
796
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
796
797
|
}, client.config())),
|
|
@@ -806,7 +807,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
806
807
|
),
|
|
807
808
|
contextualADFlag && React.createElement('span', { className: 'clearfix' }),
|
|
808
809
|
React.createElement(BlockContent, _extends({
|
|
809
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage,
|
|
810
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
810
811
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex))),
|
|
811
812
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
812
813
|
}, client.config()))
|
|
@@ -839,7 +840,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
839
840
|
React.Fragment,
|
|
840
841
|
null,
|
|
841
842
|
React.createElement(BlockContent, _extends({
|
|
842
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage,
|
|
843
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
843
844
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex2))),
|
|
844
845
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
845
846
|
}, client.config())),
|
|
@@ -851,7 +852,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
851
852
|
React.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: _checkIsAdFound2 }))
|
|
852
853
|
),
|
|
853
854
|
React.createElement(BlockContent, _extends({
|
|
854
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage,
|
|
855
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
855
856
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex2))),
|
|
856
857
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
857
858
|
}, client.config()))
|
|
@@ -867,13 +868,13 @@ var Article = forwardRef(function (props, ref) {
|
|
|
867
868
|
'div',
|
|
868
869
|
null,
|
|
869
870
|
React.createElement(BlockContent, _extends({
|
|
870
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage,
|
|
871
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, props.article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
871
872
|
blocks: article.documentGroup && article.documentGroup.isSeries ? [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex3))) : articleBody,
|
|
872
873
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
873
874
|
}, client.config())),
|
|
874
875
|
article.documentGroup && article.documentGroup.isSeries && props.sliderData && seriesInfo.hasVideo && React.createElement(SeriesSlider, { dataset: props.sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: true }),
|
|
875
876
|
article.documentGroup && article.documentGroup.isSeries && React.createElement(BlockContent, _extends({
|
|
876
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage,
|
|
877
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, null, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
877
878
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex3))),
|
|
878
879
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
879
880
|
}, client.config()))
|
|
@@ -951,13 +952,13 @@ var Article = forwardRef(function (props, ref) {
|
|
|
951
952
|
});
|
|
952
953
|
return episode;
|
|
953
954
|
};
|
|
954
|
-
|
|
955
955
|
// pixels from bottom of window to change trigger visibility change
|
|
956
956
|
var triggerOffset = 10;
|
|
957
957
|
var isVideoSeries = checkIfVideoSeries(article);
|
|
958
958
|
var episodeNumber = fetchCurrentEpisode(props.sliderData, props.article);
|
|
959
959
|
var isMediaSeries = article.documentGroup && article.documentGroup.isSeries ? true : false;
|
|
960
960
|
var seriesInfo = checkIfMediaSeriesHasVideo(article);
|
|
961
|
+
|
|
961
962
|
return React.createElement(
|
|
962
963
|
React.Fragment,
|
|
963
964
|
null,
|
|
@@ -1886,7 +1886,8 @@ YouTube.defaultProps = {
|
|
|
1886
1886
|
};
|
|
1887
1887
|
|
|
1888
1888
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1889
|
-
var url = _ref.url
|
|
1889
|
+
var url = _ref.url,
|
|
1890
|
+
autoplay = _ref.autoplay;
|
|
1890
1891
|
|
|
1891
1892
|
var id = getYoutubeId(url);
|
|
1892
1893
|
|
|
@@ -1910,7 +1911,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1910
1911
|
var opts = {
|
|
1911
1912
|
width: '100%',
|
|
1912
1913
|
playerVars: {
|
|
1913
|
-
rel: 0
|
|
1914
|
+
rel: 0,
|
|
1915
|
+
autoplay: autoplay
|
|
1914
1916
|
}
|
|
1915
1917
|
};
|
|
1916
1918
|
|
|
@@ -9261,10 +9263,9 @@ var getSerializers = function getSerializers() {
|
|
|
9261
9263
|
showVotes = props[4],
|
|
9262
9264
|
drupalLeadSettings = props[5],
|
|
9263
9265
|
currentPage = props[6],
|
|
9264
|
-
|
|
9265
|
-
|
|
9266
|
-
_props$
|
|
9267
|
-
contextualADFlag = _props$2 === undefined ? false : _props$2,
|
|
9266
|
+
autoplay = props[7],
|
|
9267
|
+
_props$ = props[8],
|
|
9268
|
+
contextualADFlag = _props$ === undefined ? false : _props$,
|
|
9268
9269
|
articleId = props[9],
|
|
9269
9270
|
Ads = props[10],
|
|
9270
9271
|
targeting = props[11],
|
|
@@ -9273,6 +9274,7 @@ var getSerializers = function getSerializers() {
|
|
|
9273
9274
|
authorPrefix = props[14],
|
|
9274
9275
|
authorImgHeight = props[15];
|
|
9275
9276
|
|
|
9277
|
+
|
|
9276
9278
|
return {
|
|
9277
9279
|
types: {
|
|
9278
9280
|
block: function block(props) {
|
|
@@ -9283,7 +9285,7 @@ var getSerializers = function getSerializers() {
|
|
|
9283
9285
|
var node = _ref.node;
|
|
9284
9286
|
var url = node.url;
|
|
9285
9287
|
|
|
9286
|
-
return React.createElement(YouTubePlayer, { url: url });
|
|
9288
|
+
return React.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9287
9289
|
},
|
|
9288
9290
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9289
9291
|
var node = _ref2.node;
|
package/dist/esm/index.js
CHANGED
|
@@ -78,7 +78,7 @@ export { default as VerticalHero } from './VerticalHero.js';
|
|
|
78
78
|
export { default as YahooHero } from './YahooHero.js';
|
|
79
79
|
export { default as GridHero } from './GridHero.js';
|
|
80
80
|
export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
|
|
81
|
-
export { g as getSerializers } from './index-
|
|
81
|
+
export { g as getSerializers } from './index-24841cf3.js';
|
|
82
82
|
export { default as Beam } from './Beam.js';
|
|
83
83
|
export { default as Segment } from './Segment.js';
|
|
84
84
|
export { default as KMTracker } from './KMTracker.js';
|