@mjhls/mjh-framework 1.0.905 → 1.0.907
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/IssueLanding.js +1 -1
- package/dist/cjs/{MediaSeriesCard-f38e0b15.js → MediaSeriesCard-d46317f0.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 +34 -12
- package/dist/cjs/VideoProgramLandingPage.js +1 -1
- package/dist/cjs/View.js +16 -2
- package/dist/cjs/getSerializers.js +1 -1
- package/dist/cjs/{index-2a3d37a1.js → index-5ce5e821.js} +10 -2
- 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-8ed9005f.js → MediaSeriesCard-b1845b19.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 +34 -12
- package/dist/esm/VideoProgramLandingPage.js +1 -1
- package/dist/esm/View.js +16 -2
- package/dist/esm/getSerializers.js +1 -1
- package/dist/esm/{index-681431c9.js → index-490f4f21.js} +10 -2
- package/dist/esm/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# mjh-framework v. 1.0.
|
|
1
|
+
# mjh-framework v. 1.0.907
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/mjh-framework) [](https://standardjs.com)
|
|
4
4
|
|
|
@@ -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-5ce5e821.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-5ce5e821.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-5ce5e821.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-5ce5e821.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-5ce5e821.js');
|
|
15
15
|
|
|
16
16
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
17
17
|
|
|
@@ -6,13 +6,13 @@ var _typeof = require('./typeof-567e31ff.js');
|
|
|
6
6
|
var _extends = require('./extends-7c86182f.js');
|
|
7
7
|
var slicedToArray = require('./slicedToArray-067dd3bc.js');
|
|
8
8
|
var React = require('react');
|
|
9
|
-
var MediaSeriesCard = require('./MediaSeriesCard-
|
|
9
|
+
var MediaSeriesCard = require('./MediaSeriesCard-d46317f0.js');
|
|
10
10
|
require('./index-50be6759.js');
|
|
11
11
|
require('react-dom');
|
|
12
12
|
var Link = require('next/link');
|
|
13
13
|
var MasterDeck = require('./MasterDeck.js');
|
|
14
14
|
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
15
|
-
var getSerializers = require('./index-
|
|
15
|
+
var getSerializers = require('./index-5ce5e821.js');
|
|
16
16
|
require('./_commonjsHelpers-06173234.js');
|
|
17
17
|
require('./define-property-e8404b64.js');
|
|
18
18
|
require('./core.get-iterator-method-5643aa10.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-d46317f0.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-5ce5e821.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-5ce5e821.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-5ce5e821.js');
|
|
17
17
|
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
18
18
|
require('./_commonjsHelpers-06173234.js');
|
|
19
19
|
require('./core.get-iterator-method-5643aa10.js');
|
|
@@ -6,7 +6,7 @@ var React = require('react');
|
|
|
6
6
|
var Router = require('next/router');
|
|
7
7
|
var Head = require('next/head');
|
|
8
8
|
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
9
|
-
var getSerializers = require('./index-
|
|
9
|
+
var getSerializers = require('./index-5ce5e821.js');
|
|
10
10
|
require('./_commonjsHelpers-06173234.js');
|
|
11
11
|
require('./core.get-iterator-method-5643aa10.js');
|
|
12
12
|
require('./web.dom.iterable-d98303e0.js');
|
|
@@ -123,37 +123,59 @@ TaxonomyDescription.getDescription = function () {
|
|
|
123
123
|
var _ref2 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee() {
|
|
124
124
|
var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
125
125
|
var client = arguments[1];
|
|
126
|
-
var
|
|
126
|
+
var currentPath = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
127
|
+
var query, summary, querySeoManager, description;
|
|
127
128
|
return asyncToGenerator.regenerator.wrap(function _callee$(_context) {
|
|
128
129
|
while (1) {
|
|
129
130
|
switch (_context.prev = _context.next) {
|
|
130
131
|
case 0:
|
|
131
132
|
query = '*[_type == \'taxonomy\' && identifier == \'' + url + '\'][0].summary';
|
|
132
133
|
summary = [];
|
|
133
|
-
|
|
134
|
-
|
|
134
|
+
|
|
135
|
+
if (!currentPath) {
|
|
136
|
+
_context.next = 9;
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
querySeoManager = '*[_type == \'seoManager\' && urlSeo == \'' + currentPath + '\'][0].metaDescription';
|
|
141
|
+
_context.next = 6;
|
|
142
|
+
return client.fetch(querySeoManager);
|
|
143
|
+
|
|
144
|
+
case 6:
|
|
145
|
+
description = _context.sent;
|
|
146
|
+
|
|
147
|
+
if (!(description && description != null)) {
|
|
148
|
+
_context.next = 9;
|
|
149
|
+
break;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
return _context.abrupt('return', description);
|
|
153
|
+
|
|
154
|
+
case 9:
|
|
155
|
+
_context.prev = 9;
|
|
156
|
+
_context.next = 12;
|
|
135
157
|
return client.fetch(query);
|
|
136
158
|
|
|
137
|
-
case
|
|
159
|
+
case 12:
|
|
138
160
|
summary = _context.sent;
|
|
139
|
-
_context.next =
|
|
161
|
+
_context.next = 18;
|
|
140
162
|
break;
|
|
141
163
|
|
|
142
|
-
case
|
|
143
|
-
_context.prev =
|
|
144
|
-
_context.t0 = _context['catch'](
|
|
164
|
+
case 15:
|
|
165
|
+
_context.prev = 15;
|
|
166
|
+
_context.t0 = _context['catch'](9);
|
|
145
167
|
|
|
146
168
|
console.error(_context.t0);
|
|
147
169
|
|
|
148
|
-
case
|
|
170
|
+
case 18:
|
|
149
171
|
return _context.abrupt('return', summary);
|
|
150
172
|
|
|
151
|
-
case
|
|
173
|
+
case 19:
|
|
152
174
|
case 'end':
|
|
153
175
|
return _context.stop();
|
|
154
176
|
}
|
|
155
177
|
}
|
|
156
|
-
}, _callee, _this, [[
|
|
178
|
+
}, _callee, _this, [[9, 15]]);
|
|
157
179
|
}));
|
|
158
180
|
|
|
159
181
|
return function () {
|
|
@@ -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-5ce5e821.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-5ce5e821.js');
|
|
21
21
|
var AdSlot = require('./AdSlot.js');
|
|
22
22
|
var SeriesSlider = require('./SeriesSlider-ba0c5d1a.js');
|
|
23
23
|
var getTargeting = require('./getTargeting-9d509319.js');
|
|
@@ -559,7 +559,21 @@ var Article = React.forwardRef(function (props, ref) {
|
|
|
559
559
|
disqusConfig = props.disqusConfig,
|
|
560
560
|
showDisqus = props.showDisqus;
|
|
561
561
|
|
|
562
|
+
|
|
562
563
|
var targeting = getTargeting.getTargeting(props);
|
|
564
|
+
//next video url
|
|
565
|
+
if (props.sliderData) {
|
|
566
|
+
var nextArticle = void 0;
|
|
567
|
+
props.sliderData.forEach(function (data, index) {
|
|
568
|
+
if (data.url.current === props.article.url.current) {
|
|
569
|
+
nextArticle = index + 1;
|
|
570
|
+
}
|
|
571
|
+
});
|
|
572
|
+
|
|
573
|
+
if (nextArticle && props.sliderData[nextArticle]) {
|
|
574
|
+
article.nextVideo = props.sliderData[nextArticle].url.current;
|
|
575
|
+
}
|
|
576
|
+
}
|
|
563
577
|
|
|
564
578
|
//if showSocialShare is not disabled for entire site, check article taxonomy, docgroup, authors for showSocialShare === false
|
|
565
579
|
if (showSocialShare) {
|
|
@@ -698,7 +712,7 @@ var Article = React.forwardRef(function (props, ref) {
|
|
|
698
712
|
React__default['default'].createElement(
|
|
699
713
|
'style',
|
|
700
714
|
{ jsx: 'true' },
|
|
701
|
-
'\n
|
|
715
|
+
'\n .related-link:not(:first-child):before {\n content: \' | \';\n }\n '
|
|
702
716
|
)
|
|
703
717
|
);
|
|
704
718
|
}
|
|
@@ -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-5ce5e821.js');
|
|
6
6
|
require('./BlockContent-9ebd251f.js');
|
|
7
7
|
require('./entities-df1aed86.js');
|
|
8
8
|
require('./_commonjsHelpers-06173234.js');
|
|
@@ -2357,7 +2357,9 @@ var Video = function Video(_ref) {
|
|
|
2357
2357
|
_ref$autoplayNextVide = _ref.autoplayNextVideo,
|
|
2358
2358
|
autoplayNextVideo = _ref$autoplayNextVide === undefined ? function () {} : _ref$autoplayNextVide,
|
|
2359
2359
|
_ref$targeting = _ref.targeting,
|
|
2360
|
-
targeting = _ref$targeting === undefined ? null : _ref$targeting
|
|
2360
|
+
targeting = _ref$targeting === undefined ? null : _ref$targeting,
|
|
2361
|
+
_ref$nextVideo = _ref.nextVideo,
|
|
2362
|
+
nextVideo = _ref$nextVideo === undefined ? null : _ref$nextVideo;
|
|
2361
2363
|
var source = node.source,
|
|
2362
2364
|
videoID = node.videoID,
|
|
2363
2365
|
playlistID = node.playlistID,
|
|
@@ -2471,7 +2473,11 @@ var Video = function Video(_ref) {
|
|
|
2471
2473
|
var segment = Math.floor(current / queue);
|
|
2472
2474
|
//Beam.report_beam_video('End', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2473
2475
|
Segment.report_video_event('Video End', main.main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2476
|
+
//This is for old series format
|
|
2474
2477
|
autoplayNextVideo(evt);
|
|
2478
|
+
if (nextVideo) {
|
|
2479
|
+
window.location.href = '/view/' + nextVideo;
|
|
2480
|
+
}
|
|
2475
2481
|
});
|
|
2476
2482
|
|
|
2477
2483
|
var queueProgress = [];
|
|
@@ -9976,6 +9982,8 @@ var getSerializers = function getSerializers() {
|
|
|
9976
9982
|
authorImgHeight = props[15];
|
|
9977
9983
|
|
|
9978
9984
|
|
|
9985
|
+
var nextVideo = article && article.nextVideo ? article.nextVideo : null;
|
|
9986
|
+
|
|
9979
9987
|
return {
|
|
9980
9988
|
types: {
|
|
9981
9989
|
undefined: function undefined$1() {
|
|
@@ -10063,7 +10071,7 @@ var getSerializers = function getSerializers() {
|
|
|
10063
10071
|
video: function video(_ref11) {
|
|
10064
10072
|
var node = _ref11.node;
|
|
10065
10073
|
|
|
10066
|
-
return React__default['default'].createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
10074
|
+
return React__default['default'].createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting, nextVideo: nextVideo });
|
|
10067
10075
|
},
|
|
10068
10076
|
audio: function audio(_ref12) {
|
|
10069
10077
|
var node = _ref12.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-5ce5e821.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-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-490f4f21.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-490f4f21.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-490f4f21.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-490f4f21.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-490f4f21.js';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -4,13 +4,13 @@ import { _ as _typeof } from './typeof-e9fc0c5d.js';
|
|
|
4
4
|
import { _ as _extends } from './extends-6d8e3924.js';
|
|
5
5
|
import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
6
6
|
import React__default, { useState, useEffect } from 'react';
|
|
7
|
-
import { M as MediaSeriesCard, D as DropdownButton, a as Dropdown } from './MediaSeriesCard-
|
|
7
|
+
import { M as MediaSeriesCard, D as DropdownButton, a as Dropdown } from './MediaSeriesCard-b1845b19.js';
|
|
8
8
|
import './index-98ca9cec.js';
|
|
9
9
|
import 'react-dom';
|
|
10
10
|
import Link from 'next/link';
|
|
11
11
|
import MasterDeck from './MasterDeck.js';
|
|
12
12
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
13
|
-
import { g as getSerializers } from './index-
|
|
13
|
+
import { g as getSerializers } from './index-490f4f21.js';
|
|
14
14
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
15
15
|
import './define-property-5f1bda73.js';
|
|
16
16
|
import './core.get-iterator-method-ea258bb1.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-b1845b19.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-490f4f21.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-490f4f21.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-490f4f21.js';
|
|
15
15
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
16
16
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
17
17
|
import './core.get-iterator-method-ea258bb1.js';
|
|
@@ -4,7 +4,7 @@ import React__default from 'react';
|
|
|
4
4
|
import { useRouter } from 'next/router';
|
|
5
5
|
import Head from 'next/head';
|
|
6
6
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
7
|
-
import { g as getSerializers } from './index-
|
|
7
|
+
import { g as getSerializers } from './index-490f4f21.js';
|
|
8
8
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
9
9
|
import './core.get-iterator-method-ea258bb1.js';
|
|
10
10
|
import './web.dom.iterable-ab4dea5c.js';
|
|
@@ -116,37 +116,59 @@ TaxonomyDescription.getDescription = function () {
|
|
|
116
116
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
|
|
117
117
|
var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
118
118
|
var client = arguments[1];
|
|
119
|
-
var
|
|
119
|
+
var currentPath = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
120
|
+
var query, summary, querySeoManager, description;
|
|
120
121
|
return regenerator.wrap(function _callee$(_context) {
|
|
121
122
|
while (1) {
|
|
122
123
|
switch (_context.prev = _context.next) {
|
|
123
124
|
case 0:
|
|
124
125
|
query = '*[_type == \'taxonomy\' && identifier == \'' + url + '\'][0].summary';
|
|
125
126
|
summary = [];
|
|
126
|
-
|
|
127
|
-
|
|
127
|
+
|
|
128
|
+
if (!currentPath) {
|
|
129
|
+
_context.next = 9;
|
|
130
|
+
break;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
querySeoManager = '*[_type == \'seoManager\' && urlSeo == \'' + currentPath + '\'][0].metaDescription';
|
|
134
|
+
_context.next = 6;
|
|
135
|
+
return client.fetch(querySeoManager);
|
|
136
|
+
|
|
137
|
+
case 6:
|
|
138
|
+
description = _context.sent;
|
|
139
|
+
|
|
140
|
+
if (!(description && description != null)) {
|
|
141
|
+
_context.next = 9;
|
|
142
|
+
break;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
return _context.abrupt('return', description);
|
|
146
|
+
|
|
147
|
+
case 9:
|
|
148
|
+
_context.prev = 9;
|
|
149
|
+
_context.next = 12;
|
|
128
150
|
return client.fetch(query);
|
|
129
151
|
|
|
130
|
-
case
|
|
152
|
+
case 12:
|
|
131
153
|
summary = _context.sent;
|
|
132
|
-
_context.next =
|
|
154
|
+
_context.next = 18;
|
|
133
155
|
break;
|
|
134
156
|
|
|
135
|
-
case
|
|
136
|
-
_context.prev =
|
|
137
|
-
_context.t0 = _context['catch'](
|
|
157
|
+
case 15:
|
|
158
|
+
_context.prev = 15;
|
|
159
|
+
_context.t0 = _context['catch'](9);
|
|
138
160
|
|
|
139
161
|
console.error(_context.t0);
|
|
140
162
|
|
|
141
|
-
case
|
|
163
|
+
case 18:
|
|
142
164
|
return _context.abrupt('return', summary);
|
|
143
165
|
|
|
144
|
-
case
|
|
166
|
+
case 19:
|
|
145
167
|
case 'end':
|
|
146
168
|
return _context.stop();
|
|
147
169
|
}
|
|
148
170
|
}
|
|
149
|
-
}, _callee, _this, [[
|
|
171
|
+
}, _callee, _this, [[9, 15]]);
|
|
150
172
|
}));
|
|
151
173
|
|
|
152
174
|
return function () {
|
|
@@ -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-490f4f21.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-490f4f21.js';
|
|
19
19
|
import DFPAdSlot from './AdSlot.js';
|
|
20
20
|
import { S as SeriesSlider } from './SeriesSlider-45adb8dc.js';
|
|
21
21
|
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-4061f839.js';
|
|
@@ -549,7 +549,21 @@ var Article = forwardRef(function (props, ref) {
|
|
|
549
549
|
disqusConfig = props.disqusConfig,
|
|
550
550
|
showDisqus = props.showDisqus;
|
|
551
551
|
|
|
552
|
+
|
|
552
553
|
var targeting = getTargeting(props);
|
|
554
|
+
//next video url
|
|
555
|
+
if (props.sliderData) {
|
|
556
|
+
var nextArticle = void 0;
|
|
557
|
+
props.sliderData.forEach(function (data, index) {
|
|
558
|
+
if (data.url.current === props.article.url.current) {
|
|
559
|
+
nextArticle = index + 1;
|
|
560
|
+
}
|
|
561
|
+
});
|
|
562
|
+
|
|
563
|
+
if (nextArticle && props.sliderData[nextArticle]) {
|
|
564
|
+
article.nextVideo = props.sliderData[nextArticle].url.current;
|
|
565
|
+
}
|
|
566
|
+
}
|
|
553
567
|
|
|
554
568
|
//if showSocialShare is not disabled for entire site, check article taxonomy, docgroup, authors for showSocialShare === false
|
|
555
569
|
if (showSocialShare) {
|
|
@@ -688,7 +702,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
688
702
|
React__default.createElement(
|
|
689
703
|
'style',
|
|
690
704
|
{ jsx: 'true' },
|
|
691
|
-
'\n
|
|
705
|
+
'\n .related-link:not(:first-child):before {\n content: \' | \';\n }\n '
|
|
692
706
|
)
|
|
693
707
|
);
|
|
694
708
|
}
|
|
@@ -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-490f4f21.js';
|
|
4
4
|
import './BlockContent-1e73bd2c.js';
|
|
5
5
|
import './entities-6d9154b4.js';
|
|
6
6
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
@@ -2340,7 +2340,9 @@ var Video = function Video(_ref) {
|
|
|
2340
2340
|
_ref$autoplayNextVide = _ref.autoplayNextVideo,
|
|
2341
2341
|
autoplayNextVideo = _ref$autoplayNextVide === undefined ? function () {} : _ref$autoplayNextVide,
|
|
2342
2342
|
_ref$targeting = _ref.targeting,
|
|
2343
|
-
targeting = _ref$targeting === undefined ? null : _ref$targeting
|
|
2343
|
+
targeting = _ref$targeting === undefined ? null : _ref$targeting,
|
|
2344
|
+
_ref$nextVideo = _ref.nextVideo,
|
|
2345
|
+
nextVideo = _ref$nextVideo === undefined ? null : _ref$nextVideo;
|
|
2344
2346
|
var source = node.source,
|
|
2345
2347
|
videoID = node.videoID,
|
|
2346
2348
|
playlistID = node.playlistID,
|
|
@@ -2454,7 +2456,11 @@ var Video = function Video(_ref) {
|
|
|
2454
2456
|
var segment = Math.floor(current / queue);
|
|
2455
2457
|
//Beam.report_beam_video('End', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
|
|
2456
2458
|
Segment.report_video_event('Video End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2459
|
+
//This is for old series format
|
|
2457
2460
|
autoplayNextVideo(evt);
|
|
2461
|
+
if (nextVideo) {
|
|
2462
|
+
window.location.href = '/view/' + nextVideo;
|
|
2463
|
+
}
|
|
2458
2464
|
});
|
|
2459
2465
|
|
|
2460
2466
|
var queueProgress = [];
|
|
@@ -9959,6 +9965,8 @@ var getSerializers = function getSerializers() {
|
|
|
9959
9965
|
authorImgHeight = props[15];
|
|
9960
9966
|
|
|
9961
9967
|
|
|
9968
|
+
var nextVideo = article && article.nextVideo ? article.nextVideo : null;
|
|
9969
|
+
|
|
9962
9970
|
return {
|
|
9963
9971
|
types: {
|
|
9964
9972
|
undefined: function undefined$1() {
|
|
@@ -10046,7 +10054,7 @@ var getSerializers = function getSerializers() {
|
|
|
10046
10054
|
video: function video(_ref11) {
|
|
10047
10055
|
var node = _ref11.node;
|
|
10048
10056
|
|
|
10049
|
-
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
10057
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting, nextVideo: nextVideo });
|
|
10050
10058
|
},
|
|
10051
10059
|
audio: function audio(_ref12) {
|
|
10052
10060
|
var node = _ref12.node;
|
package/dist/esm/index.js
CHANGED
|
@@ -79,7 +79,7 @@ export { default as VerticalHero } from './VerticalHero.js';
|
|
|
79
79
|
export { default as YahooHero } from './YahooHero.js';
|
|
80
80
|
export { default as GridHero } from './GridHero.js';
|
|
81
81
|
export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
|
|
82
|
-
export { g as getSerializers } from './index-
|
|
82
|
+
export { g as getSerializers } from './index-490f4f21.js';
|
|
83
83
|
export { default as Beam } from './Beam.js';
|
|
84
84
|
export { default as Segment } from './Segment.js';
|
|
85
85
|
export { default as KMTracker } from './KMTracker.js';
|