@mjhls/mjh-framework 1.0.963-audio-autoplay-v2 → 1.0.963-partner-instagram-v1
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-b9374a2e.js → MediaSeriesCard-9f0eef57.js} +1 -1
- package/dist/cjs/MediaSeriesLanding.js +2 -2
- package/dist/cjs/MediaSeriesLandingPaginated.js +2 -2
- package/dist/cjs/PartnerDetailListing.js +10 -5
- 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 +18 -20
- package/dist/cjs/getSerializers.js +1 -1
- package/dist/cjs/{index-55f09340.js → index-dc2193aa.js} +5 -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/IssueLanding.js +1 -1
- package/dist/esm/{MediaSeriesCard-a4026c80.js → MediaSeriesCard-6279e8df.js} +1 -1
- package/dist/esm/MediaSeriesLanding.js +2 -2
- package/dist/esm/MediaSeriesLandingPaginated.js +2 -2
- package/dist/esm/PartnerDetailListing.js +10 -5
- 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 +18 -20
- package/dist/esm/getSerializers.js +1 -1
- package/dist/esm/{index-fca291be.js → index-75e169f5.js} +5 -7
- 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-dc2193aa.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-dc2193aa.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-dc2193aa.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-dc2193aa.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-dc2193aa.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-9f0eef57.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-dc2193aa.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-9f0eef57.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-dc2193aa.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-dc2193aa.js');
|
|
17
17
|
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
18
18
|
require('./_commonjsHelpers-06173234.js');
|
|
19
19
|
require('./core.get-iterator-method-5643aa10.js');
|
|
@@ -101,7 +101,6 @@ var PartnerDetails = function PartnerDetails(_ref) {
|
|
|
101
101
|
pageview = _ref.pageview,
|
|
102
102
|
page = _ref.page;
|
|
103
103
|
|
|
104
|
-
|
|
105
104
|
var description = partnerDetails && partnerDetails.description ? partnerDetails.description.filter(function (block) {
|
|
106
105
|
return block._type !== 'slideshows' ? block : null;
|
|
107
106
|
}) : null;
|
|
@@ -151,11 +150,11 @@ var PartnerDetails = function PartnerDetails(_ref) {
|
|
|
151
150
|
{ jsx: 'true' },
|
|
152
151
|
'\n @media screen and (max-width: 768px) {\n .partners-logo {\n width: 100%;\n min-width: 100%;\n }\n .partner-logo-wrap {\n flex-wrap: wrap;\n }\n .block-content-partners {\n padding-left: 0 !important;\n }\n }\n '
|
|
153
152
|
),
|
|
154
|
-
(partnerDetails.description || partnerDetails.linkedin || partnerDetails.youtube || partnerDetails.twitter && partnerDetails.facebook || !partnerDetails.twitter && partnerDetails.facebook && checkIsFacebookGroup(partnerDetails.facebook)) && React__default['default'].createElement(
|
|
153
|
+
(partnerDetails.description || partnerDetails.linkedin || partnerDetails.instagram || partnerDetails.youtube || partnerDetails.twitter && partnerDetails.facebook || !partnerDetails.twitter && partnerDetails.facebook && checkIsFacebookGroup(partnerDetails.facebook)) && React__default['default'].createElement(
|
|
155
154
|
'div',
|
|
156
155
|
{ className: 'block-content-partners my-4', style: { maxWidth: '100%', paddingLeft: '2rem', flex: '1 1 auto' } },
|
|
157
156
|
partnerDetails.description && React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers.getSerializers(client), blocks: description, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config())),
|
|
158
|
-
(partnerDetails.linkedin || partnerDetails.youtube || partnerDetails.twitter && partnerDetails.facebook || !partnerDetails.twitter && partnerDetails.facebook && checkIsFacebookGroup(partnerDetails.facebook)) && React__default['default'].createElement(
|
|
157
|
+
(partnerDetails.linkedin || partnerDetails.instagram || partnerDetails.youtube || partnerDetails.twitter && partnerDetails.facebook || !partnerDetails.twitter && partnerDetails.facebook && checkIsFacebookGroup(partnerDetails.facebook)) && React__default['default'].createElement(
|
|
159
158
|
'div',
|
|
160
159
|
null,
|
|
161
160
|
React__default['default'].createElement(
|
|
@@ -170,6 +169,12 @@ var PartnerDetails = function PartnerDetails(_ref) {
|
|
|
170
169
|
rel: 'noopener noreferrer',
|
|
171
170
|
style: { height: 30, width: 30 }
|
|
172
171
|
}),
|
|
172
|
+
partnerDetails.instagram && React__default['default'].createElement(reactSocialIcons.reactSocialIcons_1, {
|
|
173
|
+
url: '' + partnerDetails.instagram + (partnerDetails.instagram.slice(-1) === '/' ? '' : '/'),
|
|
174
|
+
target: '_blank',
|
|
175
|
+
rel: 'noopener noreferrer',
|
|
176
|
+
style: { height: 30, width: 30 }
|
|
177
|
+
}),
|
|
173
178
|
partnerDetails.youtube && partnerDetails.youtubeIcon && React__default['default'].createElement(reactSocialIcons.reactSocialIcons_1, { url: partnerDetails.youtube, target: '_blank', rel: 'noopener noreferrer', style: { height: 30, width: 30, marginLeft: '0.25rem' } }),
|
|
174
179
|
(partnerDetails.twitter && partnerDetails.facebook || !partnerDetails.twitter && partnerDetails.facebook && checkIsFacebookGroup(partnerDetails.facebook)) && (partnerDetails.twitterIcon ? React__default['default'].createElement(reactSocialIcons.reactSocialIcons_1, { url: partnerDetails.twitter, target: '_blank', rel: 'noopener noreferrer', style: { height: 30, width: 30, marginLeft: '0.25rem' } }) : React__default['default'].createElement(reactSocialIcons.reactSocialIcons_1, { url: partnerDetails.facebook, target: '_blank', rel: 'noopener noreferrer', style: { height: 30, width: 30, marginLeft: '0.25rem' } }))
|
|
175
180
|
)
|
|
@@ -247,7 +252,7 @@ PartnerDetails.returnGetInitialProps = function () {
|
|
|
247
252
|
case 0:
|
|
248
253
|
today = moment.moment().utc().format();
|
|
249
254
|
featureQuery = '*[_type == \'feature\' && is_active == true && feature_url == \'/' + partnerPageUrl + '/' + (category ? category + '/' : null) + identifier + '\'] | order(_updatedAt asc)[0..5]{\n ...,\n \'feature_img\' : feature_img.asset->\n }';
|
|
250
|
-
partnerQuery = '*[_type == \'documentGroup\' \n && !(_id in path("drafts.**"))\n && references(\'' + partnerDocumentGroupID + '\')\n && identifier.current == \'' + identifier + '\'] | order(name asc) [0] {\n description,\n name,\n identifier,\n thumbnail{ ..., asset-> },\n twitter,\n facebook,\n linkedin,\n twitterIcon,\n youtube,\n youtubeIcon,\n "affiliates": description[_type==\'slideshows\']{\n ...,\n slides->{...}\n }\n }';
|
|
255
|
+
partnerQuery = '*[_type == \'documentGroup\' \n && !(_id in path("drafts.**"))\n && references(\'' + partnerDocumentGroupID + '\')\n && identifier.current == \'' + identifier + '\'] | order(name asc) [0] {\n description,\n name,\n identifier,\n thumbnail{ ..., asset-> },\n twitter,\n facebook,\n linkedin,\n instagram,\n twitterIcon,\n youtube,\n youtubeIcon,\n "affiliates": description[_type==\'slideshows\']{\n ...,\n slides->{...}\n }\n }';
|
|
251
256
|
|
|
252
257
|
|
|
253
258
|
if (category) {
|
|
@@ -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-dc2193aa.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-dc2193aa.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-dc2193aa.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-dc2193aa.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,7 +914,6 @@ 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,
|
|
918
917
|
_props$article = props.article,
|
|
919
918
|
title = _props$article.title,
|
|
920
919
|
_props$article$passwo = _props$article.passwordLock,
|
|
@@ -1212,14 +1211,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1212
1211
|
return React__default['default'].createElement(
|
|
1213
1212
|
'div',
|
|
1214
1213
|
null,
|
|
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(
|
|
1214
|
+
useSegmentRecommendedArticles ? React__default['default'].createElement(Recommended, { client: client, article: article, index: props.index, Settings: props.Settings, showRelatedArticleFallbackImage: props.showRelatedArticleFallbackImage, cpModificationRequired: cpModificationRequired }) : React__default['default'].createElement(
|
|
1223
1215
|
'section',
|
|
1224
1216
|
{ id: 'related-content-section', className: 'my-1' },
|
|
1225
1217
|
(article.relatedArticle || RelevantTopics()) && React__default['default'].createElement(
|
|
@@ -1322,7 +1314,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1322
1314
|
React__default['default'].Fragment,
|
|
1323
1315
|
null,
|
|
1324
1316
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
1325
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight
|
|
1317
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1326
1318
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(0, selectedIndex))),
|
|
1327
1319
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1328
1320
|
}, client.config())),
|
|
@@ -1331,7 +1323,9 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1331
1323
|
React__default['default'].createElement(
|
|
1332
1324
|
'div',
|
|
1333
1325
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
1334
|
-
React__default['default'].createElement(AdSlot, _extends._extends({}, payload.contextualAD, {
|
|
1326
|
+
React__default['default'].createElement(AdSlot, _extends._extends({}, payload.contextualAD, {
|
|
1327
|
+
refreshFlag: refreshFlag
|
|
1328
|
+
}))
|
|
1335
1329
|
),
|
|
1336
1330
|
React__default['default'].createElement(
|
|
1337
1331
|
'style',
|
|
@@ -1345,7 +1339,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1345
1339
|
React__default['default'].createElement(AdSlot, _extends._extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsVideoAdFound }))
|
|
1346
1340
|
),
|
|
1347
1341
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
1348
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight
|
|
1342
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1349
1343
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(selectedIndex))),
|
|
1350
1344
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1351
1345
|
}, client.config()))
|
|
@@ -1373,7 +1367,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1373
1367
|
React__default['default'].Fragment,
|
|
1374
1368
|
null,
|
|
1375
1369
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
1376
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight
|
|
1370
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1377
1371
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(0, _selectedIndex))),
|
|
1378
1372
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1379
1373
|
}, client.config())),
|
|
@@ -1385,7 +1379,9 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1385
1379
|
React__default['default'].createElement(
|
|
1386
1380
|
'div',
|
|
1387
1381
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
1388
|
-
React__default['default'].createElement(AdSlot, _extends._extends({}, payload.contextualAD, {
|
|
1382
|
+
React__default['default'].createElement(AdSlot, _extends._extends({}, payload.contextualAD, {
|
|
1383
|
+
refreshFlag: refreshFlag
|
|
1384
|
+
}))
|
|
1389
1385
|
),
|
|
1390
1386
|
React__default['default'].createElement(
|
|
1391
1387
|
'style',
|
|
@@ -1395,7 +1391,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1395
1391
|
),
|
|
1396
1392
|
contextualADFlag && React__default['default'].createElement('span', { className: 'clearfix' }),
|
|
1397
1393
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
1398
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight
|
|
1394
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1399
1395
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(_selectedIndex))),
|
|
1400
1396
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1401
1397
|
}, client.config()))
|
|
@@ -1428,7 +1424,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1428
1424
|
React__default['default'].Fragment,
|
|
1429
1425
|
null,
|
|
1430
1426
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
1431
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight
|
|
1427
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1432
1428
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(0, _selectedIndex2))),
|
|
1433
1429
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1434
1430
|
}, client.config())),
|
|
@@ -1440,7 +1436,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1440
1436
|
React__default['default'].createElement(AdSlot, _extends._extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsAdFound }))
|
|
1441
1437
|
),
|
|
1442
1438
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
1443
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight
|
|
1439
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1444
1440
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(_selectedIndex2))),
|
|
1445
1441
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1446
1442
|
}, client.config()))
|
|
@@ -1455,13 +1451,13 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1455
1451
|
'div',
|
|
1456
1452
|
null,
|
|
1457
1453
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
1458
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight
|
|
1454
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1459
1455
|
blocks: article.documentGroup && article.documentGroup.isSeries ? [].concat(toConsumableArray._toConsumableArray(articleBody.slice(0, _selectedIndex3))) : articleBody,
|
|
1460
1456
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1461
1457
|
}, client.config())),
|
|
1462
1458
|
article.documentGroup && article.documentGroup.isSeries && sliderData && seriesInfo.hasVideo && React__default['default'].createElement(SeriesSlider.SeriesSlider, { dataset: sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: logicforDisplayingEpisodeNumber }),
|
|
1463
1459
|
article.documentGroup && article.documentGroup.isSeries && React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
1464
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight
|
|
1460
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1465
1461
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(_selectedIndex3))),
|
|
1466
1462
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1467
1463
|
}, client.config()))
|
|
@@ -1569,6 +1565,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1569
1565
|
partialVisibility: true,
|
|
1570
1566
|
offset: { bottom: triggerOffset, top: containerHeight && containerHeight },
|
|
1571
1567
|
onChange: function onChange(isVisible) {
|
|
1568
|
+
|
|
1572
1569
|
if (isVisible && !isFirstArticle) {
|
|
1573
1570
|
var pageviewProperties = _extends._extends({}, targeting, {
|
|
1574
1571
|
category: article && article.category ? article.category.name : ''
|
|
@@ -1871,6 +1868,7 @@ var _this$1 = undefined;
|
|
|
1871
1868
|
|
|
1872
1869
|
var ArticleQueue = function ArticleQueue(props) {
|
|
1873
1870
|
var router = Router.useRouter();
|
|
1871
|
+
|
|
1874
1872
|
var _props$prevUrl = props.prevUrl,
|
|
1875
1873
|
prevUrl = _props$prevUrl === undefined ? '/' : _props$prevUrl,
|
|
1876
1874
|
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-dc2193aa.js');
|
|
6
6
|
require('./BlockContent-9ebd251f.js');
|
|
7
7
|
require('./entities-df1aed86.js');
|
|
8
8
|
require('./_commonjsHelpers-06173234.js');
|
|
@@ -7502,9 +7502,7 @@ _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
|
|
7506
|
-
_ref$audioAutoplay = _ref.audioAutoplay,
|
|
7507
|
-
audioAutoplay = _ref$audioAutoplay === undefined ? false : _ref$audioAutoplay;
|
|
7505
|
+
var node = _ref.node;
|
|
7508
7506
|
|
|
7509
7507
|
if (node.uploadAudio) {
|
|
7510
7508
|
return React__default['default'].createElement(
|
|
@@ -7512,7 +7510,7 @@ var Audio = function Audio(_ref) {
|
|
|
7512
7510
|
{ className: 'audio d-block text-center mb-3' },
|
|
7513
7511
|
React__default['default'].createElement(
|
|
7514
7512
|
'audio',
|
|
7515
|
-
{ controls: true, controlsList: 'nodownload', className: 'audio'
|
|
7513
|
+
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7516
7514
|
React__default['default'].createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7517
7515
|
React__default['default'].createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7518
7516
|
'Your browser does not support the audio element.'
|
|
@@ -10365,11 +10363,11 @@ var getSerializers = function getSerializers() {
|
|
|
10365
10363
|
article = props[12],
|
|
10366
10364
|
meta = props[13],
|
|
10367
10365
|
authorPrefix = props[14],
|
|
10368
|
-
authorImgHeight = props[15]
|
|
10369
|
-
audioAutoplay = props[16];
|
|
10366
|
+
authorImgHeight = props[15];
|
|
10370
10367
|
|
|
10371
10368
|
|
|
10372
10369
|
var nextVideo = article && article.nextVideo ? article.nextVideo : null;
|
|
10370
|
+
|
|
10373
10371
|
return {
|
|
10374
10372
|
types: {
|
|
10375
10373
|
undefined: function undefined$1() {
|
|
@@ -10462,7 +10460,7 @@ var getSerializers = function getSerializers() {
|
|
|
10462
10460
|
audio: function audio(_ref12) {
|
|
10463
10461
|
var node = _ref12.node;
|
|
10464
10462
|
|
|
10465
|
-
return React__default['default'].createElement(Audio, { node: node
|
|
10463
|
+
return React__default['default'].createElement(Audio, { node: node });
|
|
10466
10464
|
},
|
|
10467
10465
|
poll: function poll(_ref13) {
|
|
10468
10466
|
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-dc2193aa.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-75e169f5.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-75e169f5.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-75e169f5.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-75e169f5.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-75e169f5.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-6279e8df.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-75e169f5.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-6279e8df.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-75e169f5.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-75e169f5.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';
|
|
@@ -95,7 +95,6 @@ var PartnerDetails = function PartnerDetails(_ref) {
|
|
|
95
95
|
pageview = _ref.pageview,
|
|
96
96
|
page = _ref.page;
|
|
97
97
|
|
|
98
|
-
|
|
99
98
|
var description = partnerDetails && partnerDetails.description ? partnerDetails.description.filter(function (block) {
|
|
100
99
|
return block._type !== 'slideshows' ? block : null;
|
|
101
100
|
}) : null;
|
|
@@ -145,11 +144,11 @@ var PartnerDetails = function PartnerDetails(_ref) {
|
|
|
145
144
|
{ jsx: 'true' },
|
|
146
145
|
'\n @media screen and (max-width: 768px) {\n .partners-logo {\n width: 100%;\n min-width: 100%;\n }\n .partner-logo-wrap {\n flex-wrap: wrap;\n }\n .block-content-partners {\n padding-left: 0 !important;\n }\n }\n '
|
|
147
146
|
),
|
|
148
|
-
(partnerDetails.description || partnerDetails.linkedin || partnerDetails.youtube || partnerDetails.twitter && partnerDetails.facebook || !partnerDetails.twitter && partnerDetails.facebook && checkIsFacebookGroup(partnerDetails.facebook)) && React__default.createElement(
|
|
147
|
+
(partnerDetails.description || partnerDetails.linkedin || partnerDetails.instagram || partnerDetails.youtube || partnerDetails.twitter && partnerDetails.facebook || !partnerDetails.twitter && partnerDetails.facebook && checkIsFacebookGroup(partnerDetails.facebook)) && React__default.createElement(
|
|
149
148
|
'div',
|
|
150
149
|
{ className: 'block-content-partners my-4', style: { maxWidth: '100%', paddingLeft: '2rem', flex: '1 1 auto' } },
|
|
151
150
|
partnerDetails.description && React__default.createElement(BlockContent, _extends({ serializers: getSerializers(client), blocks: description, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config())),
|
|
152
|
-
(partnerDetails.linkedin || partnerDetails.youtube || partnerDetails.twitter && partnerDetails.facebook || !partnerDetails.twitter && partnerDetails.facebook && checkIsFacebookGroup(partnerDetails.facebook)) && React__default.createElement(
|
|
151
|
+
(partnerDetails.linkedin || partnerDetails.instagram || partnerDetails.youtube || partnerDetails.twitter && partnerDetails.facebook || !partnerDetails.twitter && partnerDetails.facebook && checkIsFacebookGroup(partnerDetails.facebook)) && React__default.createElement(
|
|
153
152
|
'div',
|
|
154
153
|
null,
|
|
155
154
|
React__default.createElement(
|
|
@@ -164,6 +163,12 @@ var PartnerDetails = function PartnerDetails(_ref) {
|
|
|
164
163
|
rel: 'noopener noreferrer',
|
|
165
164
|
style: { height: 30, width: 30 }
|
|
166
165
|
}),
|
|
166
|
+
partnerDetails.instagram && React__default.createElement(reactSocialIcons_1, {
|
|
167
|
+
url: '' + partnerDetails.instagram + (partnerDetails.instagram.slice(-1) === '/' ? '' : '/'),
|
|
168
|
+
target: '_blank',
|
|
169
|
+
rel: 'noopener noreferrer',
|
|
170
|
+
style: { height: 30, width: 30 }
|
|
171
|
+
}),
|
|
167
172
|
partnerDetails.youtube && partnerDetails.youtubeIcon && React__default.createElement(reactSocialIcons_1, { url: partnerDetails.youtube, target: '_blank', rel: 'noopener noreferrer', style: { height: 30, width: 30, marginLeft: '0.25rem' } }),
|
|
168
173
|
(partnerDetails.twitter && partnerDetails.facebook || !partnerDetails.twitter && partnerDetails.facebook && checkIsFacebookGroup(partnerDetails.facebook)) && (partnerDetails.twitterIcon ? React__default.createElement(reactSocialIcons_1, { url: partnerDetails.twitter, target: '_blank', rel: 'noopener noreferrer', style: { height: 30, width: 30, marginLeft: '0.25rem' } }) : React__default.createElement(reactSocialIcons_1, { url: partnerDetails.facebook, target: '_blank', rel: 'noopener noreferrer', style: { height: 30, width: 30, marginLeft: '0.25rem' } }))
|
|
169
174
|
)
|
|
@@ -241,7 +246,7 @@ PartnerDetails.returnGetInitialProps = function () {
|
|
|
241
246
|
case 0:
|
|
242
247
|
today = moment().utc().format();
|
|
243
248
|
featureQuery = '*[_type == \'feature\' && is_active == true && feature_url == \'/' + partnerPageUrl + '/' + (category ? category + '/' : null) + identifier + '\'] | order(_updatedAt asc)[0..5]{\n ...,\n \'feature_img\' : feature_img.asset->\n }';
|
|
244
|
-
partnerQuery = '*[_type == \'documentGroup\' \n && !(_id in path("drafts.**"))\n && references(\'' + partnerDocumentGroupID + '\')\n && identifier.current == \'' + identifier + '\'] | order(name asc) [0] {\n description,\n name,\n identifier,\n thumbnail{ ..., asset-> },\n twitter,\n facebook,\n linkedin,\n twitterIcon,\n youtube,\n youtubeIcon,\n "affiliates": description[_type==\'slideshows\']{\n ...,\n slides->{...}\n }\n }';
|
|
249
|
+
partnerQuery = '*[_type == \'documentGroup\' \n && !(_id in path("drafts.**"))\n && references(\'' + partnerDocumentGroupID + '\')\n && identifier.current == \'' + identifier + '\'] | order(name asc) [0] {\n description,\n name,\n identifier,\n thumbnail{ ..., asset-> },\n twitter,\n facebook,\n linkedin,\n instagram,\n twitterIcon,\n youtube,\n youtubeIcon,\n "affiliates": description[_type==\'slideshows\']{\n ...,\n slides->{...}\n }\n }';
|
|
245
250
|
|
|
246
251
|
|
|
247
252
|
if (category) {
|
|
@@ -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-75e169f5.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-75e169f5.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-75e169f5.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-75e169f5.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,7 +904,6 @@ 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,
|
|
908
907
|
_props$article = props.article,
|
|
909
908
|
title = _props$article.title,
|
|
910
909
|
_props$article$passwo = _props$article.passwordLock,
|
|
@@ -1202,14 +1201,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1202
1201
|
return React__default.createElement(
|
|
1203
1202
|
'div',
|
|
1204
1203
|
null,
|
|
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(
|
|
1204
|
+
useSegmentRecommendedArticles ? React__default.createElement(Recommended, { client: client, article: article, index: props.index, Settings: props.Settings, showRelatedArticleFallbackImage: props.showRelatedArticleFallbackImage, cpModificationRequired: cpModificationRequired }) : React__default.createElement(
|
|
1213
1205
|
'section',
|
|
1214
1206
|
{ id: 'related-content-section', className: 'my-1' },
|
|
1215
1207
|
(article.relatedArticle || RelevantTopics()) && React__default.createElement(
|
|
@@ -1312,7 +1304,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1312
1304
|
React__default.Fragment,
|
|
1313
1305
|
null,
|
|
1314
1306
|
React__default.createElement(BlockContent, _extends({
|
|
1315
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight
|
|
1307
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1316
1308
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, selectedIndex))),
|
|
1317
1309
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1318
1310
|
}, client.config())),
|
|
@@ -1321,7 +1313,9 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1321
1313
|
React__default.createElement(
|
|
1322
1314
|
'div',
|
|
1323
1315
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
1324
|
-
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
1316
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
1317
|
+
refreshFlag: refreshFlag
|
|
1318
|
+
}))
|
|
1325
1319
|
),
|
|
1326
1320
|
React__default.createElement(
|
|
1327
1321
|
'style',
|
|
@@ -1335,7 +1329,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1335
1329
|
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsVideoAdFound }))
|
|
1336
1330
|
),
|
|
1337
1331
|
React__default.createElement(BlockContent, _extends({
|
|
1338
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight
|
|
1332
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1339
1333
|
blocks: [].concat(_toConsumableArray(articleBody.slice(selectedIndex))),
|
|
1340
1334
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1341
1335
|
}, client.config()))
|
|
@@ -1363,7 +1357,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1363
1357
|
React__default.Fragment,
|
|
1364
1358
|
null,
|
|
1365
1359
|
React__default.createElement(BlockContent, _extends({
|
|
1366
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight
|
|
1360
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1367
1361
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex))),
|
|
1368
1362
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1369
1363
|
}, client.config())),
|
|
@@ -1375,7 +1369,9 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1375
1369
|
React__default.createElement(
|
|
1376
1370
|
'div',
|
|
1377
1371
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
1378
|
-
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
1372
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
1373
|
+
refreshFlag: refreshFlag
|
|
1374
|
+
}))
|
|
1379
1375
|
),
|
|
1380
1376
|
React__default.createElement(
|
|
1381
1377
|
'style',
|
|
@@ -1385,7 +1381,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1385
1381
|
),
|
|
1386
1382
|
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
1387
1383
|
React__default.createElement(BlockContent, _extends({
|
|
1388
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight
|
|
1384
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1389
1385
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex))),
|
|
1390
1386
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1391
1387
|
}, client.config()))
|
|
@@ -1418,7 +1414,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1418
1414
|
React__default.Fragment,
|
|
1419
1415
|
null,
|
|
1420
1416
|
React__default.createElement(BlockContent, _extends({
|
|
1421
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight
|
|
1417
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1422
1418
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex2))),
|
|
1423
1419
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1424
1420
|
}, client.config())),
|
|
@@ -1430,7 +1426,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1430
1426
|
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsAdFound }))
|
|
1431
1427
|
),
|
|
1432
1428
|
React__default.createElement(BlockContent, _extends({
|
|
1433
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight
|
|
1429
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1434
1430
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex2))),
|
|
1435
1431
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1436
1432
|
}, client.config()))
|
|
@@ -1445,13 +1441,13 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1445
1441
|
'div',
|
|
1446
1442
|
null,
|
|
1447
1443
|
React__default.createElement(BlockContent, _extends({
|
|
1448
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight
|
|
1444
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1449
1445
|
blocks: article.documentGroup && article.documentGroup.isSeries ? [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex3))) : articleBody,
|
|
1450
1446
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1451
1447
|
}, client.config())),
|
|
1452
1448
|
article.documentGroup && article.documentGroup.isSeries && sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: logicforDisplayingEpisodeNumber }),
|
|
1453
1449
|
article.documentGroup && article.documentGroup.isSeries && React__default.createElement(BlockContent, _extends({
|
|
1454
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight
|
|
1450
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1455
1451
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex3))),
|
|
1456
1452
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1457
1453
|
}, client.config()))
|
|
@@ -1559,6 +1555,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1559
1555
|
partialVisibility: true,
|
|
1560
1556
|
offset: { bottom: triggerOffset, top: containerHeight && containerHeight },
|
|
1561
1557
|
onChange: function onChange(isVisible) {
|
|
1558
|
+
|
|
1562
1559
|
if (isVisible && !isFirstArticle) {
|
|
1563
1560
|
var pageviewProperties = _extends({}, targeting, {
|
|
1564
1561
|
category: article && article.category ? article.category.name : ''
|
|
@@ -1861,6 +1858,7 @@ var _this$1 = undefined;
|
|
|
1861
1858
|
|
|
1862
1859
|
var ArticleQueue = function ArticleQueue(props) {
|
|
1863
1860
|
var router = useRouter();
|
|
1861
|
+
|
|
1864
1862
|
var _props$prevUrl = props.prevUrl,
|
|
1865
1863
|
prevUrl = _props$prevUrl === undefined ? '/' : _props$prevUrl,
|
|
1866
1864
|
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-75e169f5.js';
|
|
4
4
|
import './BlockContent-1e73bd2c.js';
|
|
5
5
|
import './entities-6d9154b4.js';
|
|
6
6
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
@@ -7483,9 +7483,7 @@ _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
|
|
7487
|
-
_ref$audioAutoplay = _ref.audioAutoplay,
|
|
7488
|
-
audioAutoplay = _ref$audioAutoplay === undefined ? false : _ref$audioAutoplay;
|
|
7486
|
+
var node = _ref.node;
|
|
7489
7487
|
|
|
7490
7488
|
if (node.uploadAudio) {
|
|
7491
7489
|
return React__default.createElement(
|
|
@@ -7493,7 +7491,7 @@ var Audio = function Audio(_ref) {
|
|
|
7493
7491
|
{ className: 'audio d-block text-center mb-3' },
|
|
7494
7492
|
React__default.createElement(
|
|
7495
7493
|
'audio',
|
|
7496
|
-
{ controls: true, controlsList: 'nodownload', className: 'audio'
|
|
7494
|
+
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7497
7495
|
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7498
7496
|
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7499
7497
|
'Your browser does not support the audio element.'
|
|
@@ -10346,11 +10344,11 @@ var getSerializers = function getSerializers() {
|
|
|
10346
10344
|
article = props[12],
|
|
10347
10345
|
meta = props[13],
|
|
10348
10346
|
authorPrefix = props[14],
|
|
10349
|
-
authorImgHeight = props[15]
|
|
10350
|
-
audioAutoplay = props[16];
|
|
10347
|
+
authorImgHeight = props[15];
|
|
10351
10348
|
|
|
10352
10349
|
|
|
10353
10350
|
var nextVideo = article && article.nextVideo ? article.nextVideo : null;
|
|
10351
|
+
|
|
10354
10352
|
return {
|
|
10355
10353
|
types: {
|
|
10356
10354
|
undefined: function undefined$1() {
|
|
@@ -10443,7 +10441,7 @@ var getSerializers = function getSerializers() {
|
|
|
10443
10441
|
audio: function audio(_ref12) {
|
|
10444
10442
|
var node = _ref12.node;
|
|
10445
10443
|
|
|
10446
|
-
return React__default.createElement(Audio, { node: node
|
|
10444
|
+
return React__default.createElement(Audio, { node: node });
|
|
10447
10445
|
},
|
|
10448
10446
|
poll: function poll(_ref13) {
|
|
10449
10447
|
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-75e169f5.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';
|