@mjhls/mjh-framework 1.0.998-D4S-2830 → 1.0.998-D4S-2830v2
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-8b65ad21.js → MediaSeriesCard-2e5cd247.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/PodcastsLanding.js +2 -2
- package/dist/cjs/TaxonomyDescription.js +1 -1
- package/dist/cjs/VideoProgramLandingPage.js +1 -1
- package/dist/cjs/View.js +5 -3
- package/dist/cjs/getSerializers.js +1 -1
- package/dist/cjs/{index-19170d97.js → index-f95a3c0f.js} +18 -6
- 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-86cca9d6.js → MediaSeriesCard-afb517a5.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/PodcastsLanding.js +2 -2
- package/dist/esm/TaxonomyDescription.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +1 -1
- package/dist/esm/View.js +5 -3
- package/dist/esm/getSerializers.js +1 -1
- package/dist/esm/{index-e8430905.js → index-04817712.js} +18 -6
- 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-f95a3c0f.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-f95a3c0f.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-f95a3c0f.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-f95a3c0f.js');
|
|
9
9
|
require('./_commonjsHelpers-06173234.js');
|
|
10
10
|
require('./core.get-iterator-method-5643aa10.js');
|
|
11
11
|
require('./_object-pie-083f2dd6.js');
|
|
@@ -7,7 +7,7 @@ var urlFor = require('./urlFor.js');
|
|
|
7
7
|
var moment = require('./moment-aca40de1.js');
|
|
8
8
|
var styleInject_es = require('./style-inject.es-dcee06b6.js');
|
|
9
9
|
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
10
|
-
var getSerializers = require('./index-
|
|
10
|
+
var getSerializers = require('./index-f95a3c0f.js');
|
|
11
11
|
|
|
12
12
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
13
|
|
|
@@ -10,9 +10,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
|
-
var MediaSeriesCard = require('./MediaSeriesCard-
|
|
13
|
+
var MediaSeriesCard = require('./MediaSeriesCard-2e5cd247.js');
|
|
14
14
|
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
15
|
-
var getSerializers = require('./index-
|
|
15
|
+
var getSerializers = require('./index-f95a3c0f.js');
|
|
16
16
|
require('./_commonjsHelpers-06173234.js');
|
|
17
17
|
require('./core.get-iterator-method-5643aa10.js');
|
|
18
18
|
require('./web.dom.iterable-d98303e0.js');
|
|
@@ -11,8 +11,8 @@ 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 MediaSeriesCard = require('./MediaSeriesCard-
|
|
15
|
-
var getSerializers = require('./index-
|
|
14
|
+
var MediaSeriesCard = require('./MediaSeriesCard-2e5cd247.js');
|
|
15
|
+
var getSerializers = require('./index-f95a3c0f.js');
|
|
16
16
|
require('./_commonjsHelpers-06173234.js');
|
|
17
17
|
require('./core.get-iterator-method-5643aa10.js');
|
|
18
18
|
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-f95a3c0f.js');
|
|
17
17
|
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
18
18
|
var checkSisterSite = require('./checkSisterSite-b29833b2.js');
|
|
19
19
|
require('./_commonjsHelpers-06173234.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-f95a3c0f.js');
|
|
17
17
|
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
18
18
|
var checkSisterSite = require('./checkSisterSite-b29833b2.js');
|
|
19
19
|
require('./_commonjsHelpers-06173234.js');
|
|
@@ -6,9 +6,9 @@ var slicedToArray = require('./slicedToArray-067dd3bc.js');
|
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var Link = require('next/link');
|
|
8
8
|
var MasterDeck = require('./MasterDeck.js');
|
|
9
|
-
var MediaSeriesCard = require('./MediaSeriesCard-
|
|
9
|
+
var MediaSeriesCard = require('./MediaSeriesCard-2e5cd247.js');
|
|
10
10
|
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
11
|
-
var getSerializers = require('./index-
|
|
11
|
+
var getSerializers = require('./index-f95a3c0f.js');
|
|
12
12
|
require('./_commonjsHelpers-06173234.js');
|
|
13
13
|
require('./core.get-iterator-method-5643aa10.js');
|
|
14
14
|
require('./web.dom.iterable-d98303e0.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-f95a3c0f.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-f95a3c0f.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-f95a3c0f.js');
|
|
21
21
|
var AdSlot = require('./AdSlot.js');
|
|
22
22
|
var SeriesSlider = require('./SeriesSlider-594b19eb.js');
|
|
23
23
|
var getTargeting = require('./getTargeting-ba942d9a.js');
|
|
@@ -2297,7 +2297,9 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
2297
2297
|
// Passing queueData to check for single article
|
|
2298
2298
|
, queueData: queueData,
|
|
2299
2299
|
showRelatedArticles: showRelatedArticles,
|
|
2300
|
-
index: index
|
|
2300
|
+
index: index,
|
|
2301
|
+
showPageNumber: article.issueGroup && article.issueGroup.parent ? article.issueGroup.parent.showPageNumber : null,
|
|
2302
|
+
showIssueNameOnly: article.issueGroup && article.issueGroup.parent ? article.issueGroup.parent.showIssueNameOnly : null
|
|
2301
2303
|
}))
|
|
2302
2304
|
);
|
|
2303
2305
|
})
|
|
@@ -2509,7 +2511,7 @@ var View = function View(props) {
|
|
|
2509
2511
|
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React__default['default'].createElement('link', { rel: 'next', href: props.article.seriesDetail.nextUrl })
|
|
2510
2512
|
)
|
|
2511
2513
|
),
|
|
2512
|
-
!needInfiniteScroll ? React__default['default'].createElement(Article, _extends._extends({ infiniteScroll: false, showRelatedArticles: showRelatedArticles, showDisqus: showDisqus, emailList: emailList, articleRecs: articleRecs }, props)) : React__default['default'].createElement(ArticleQueue, _extends._extends({
|
|
2514
|
+
!needInfiniteScroll ? React__default['default'].createElement(Article, _extends._extends({ infiniteScroll: false, showRelatedArticles: showRelatedArticles, showDisqus: showDisqus, emailList: emailList, articleRecs: articleRecs }, props, { showIssueNameOnly: article.issueGroup && article.issueGroup.parent ? article.issueGroup.parent.showIssueNameOnly : null, showPageNumber: article.issueGroup && article.issueGroup.parent ? article.issueGroup.parent.showPageNumber : null })) : React__default['default'].createElement(ArticleQueue, _extends._extends({
|
|
2513
2515
|
infiniteScroll: true,
|
|
2514
2516
|
showRelatedArticles: showRelatedArticles,
|
|
2515
2517
|
canonicalTag: canonicalTag,
|
|
@@ -1648,11 +1648,13 @@ function shouldUpdateVideo(prevProps, props) {
|
|
|
1648
1648
|
|
|
1649
1649
|
function filterResetOptions(opts) {
|
|
1650
1650
|
return _objectSpread(_objectSpread({}, opts), {}, {
|
|
1651
|
-
|
|
1651
|
+
height: 0,
|
|
1652
|
+
width: 0,
|
|
1653
|
+
playerVars: _objectSpread(_objectSpread({}, opts.playerVars), {}, {
|
|
1652
1654
|
autoplay: 0,
|
|
1653
1655
|
start: 0,
|
|
1654
1656
|
end: 0
|
|
1655
|
-
}
|
|
1657
|
+
})
|
|
1656
1658
|
});
|
|
1657
1659
|
}
|
|
1658
1660
|
/**
|
|
@@ -1667,7 +1669,7 @@ function filterResetOptions(opts) {
|
|
|
1667
1669
|
|
|
1668
1670
|
|
|
1669
1671
|
function shouldResetPlayer(prevProps, props) {
|
|
1670
|
-
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1672
|
+
return prevProps.videoId !== props.videoId || !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1671
1673
|
}
|
|
1672
1674
|
/**
|
|
1673
1675
|
* Check whether a props change should result in an id or className update.
|
|
@@ -1678,7 +1680,7 @@ function shouldResetPlayer(prevProps, props) {
|
|
|
1678
1680
|
|
|
1679
1681
|
|
|
1680
1682
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1681
|
-
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1683
|
+
return prevProps.id !== props.id || prevProps.className !== props.className || prevProps.opts.width !== props.opts.width || prevProps.opts.height !== props.opts.height || prevProps.title !== props.title;
|
|
1682
1684
|
}
|
|
1683
1685
|
|
|
1684
1686
|
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
@@ -1765,6 +1767,9 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1765
1767
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1766
1768
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1767
1769
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1770
|
+
if (_this.props.opts && _this.props.opts.width) iframe.setAttribute('width', _this.props.opts.width);else iframe.removeAttribute('width');
|
|
1771
|
+
if (_this.props.opts && _this.props.opts.height) iframe.setAttribute('height', _this.props.opts.height);else iframe.removeAttribute('height');
|
|
1772
|
+
if (typeof _this.props.title === 'string') iframe.setAttribute('title', _this.props.title);else iframe.setAttribute('title', 'YouTube video player');
|
|
1768
1773
|
});
|
|
1769
1774
|
});
|
|
1770
1775
|
|
|
@@ -1863,7 +1868,8 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1863
1868
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1864
1869
|
id: this.props.id,
|
|
1865
1870
|
className: this.props.className,
|
|
1866
|
-
ref: this.refContainer
|
|
1871
|
+
ref: this.refContainer,
|
|
1872
|
+
loading: this.props.loading
|
|
1867
1873
|
}));
|
|
1868
1874
|
}
|
|
1869
1875
|
}]);
|
|
@@ -1888,6 +1894,10 @@ YouTube.propTypes = {
|
|
|
1888
1894
|
className: PropTypes__default['default'].string,
|
|
1889
1895
|
// custom class name for player container element
|
|
1890
1896
|
containerClassName: PropTypes__default['default'].string,
|
|
1897
|
+
// custom title for the iFrame, see https://www.w3.org/TR/WCAG20-TECHS/H64.html
|
|
1898
|
+
title: PropTypes__default['default'].string,
|
|
1899
|
+
// custom loading for player element
|
|
1900
|
+
loading: PropTypes__default['default'].oneOf(['lazy', 'eager', 'auto']),
|
|
1891
1901
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1892
1902
|
opts: PropTypes__default['default'].objectOf(PropTypes__default['default'].any),
|
|
1893
1903
|
// event subscriptions
|
|
@@ -1904,6 +1914,7 @@ YouTube.defaultProps = {
|
|
|
1904
1914
|
videoId: null,
|
|
1905
1915
|
id: null,
|
|
1906
1916
|
className: null,
|
|
1917
|
+
loading: null,
|
|
1907
1918
|
opts: {},
|
|
1908
1919
|
containerClassName: '',
|
|
1909
1920
|
onReady: function onReady() {},
|
|
@@ -1913,7 +1924,8 @@ YouTube.defaultProps = {
|
|
|
1913
1924
|
onEnd: function onEnd() {},
|
|
1914
1925
|
onStateChange: function onStateChange() {},
|
|
1915
1926
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1916
|
-
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1927
|
+
onPlaybackQualityChange: function onPlaybackQualityChange() {},
|
|
1928
|
+
title: null
|
|
1917
1929
|
};
|
|
1918
1930
|
|
|
1919
1931
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
package/dist/cjs/index.js
CHANGED
|
@@ -90,7 +90,7 @@ var VerticalHero = require('./VerticalHero.js');
|
|
|
90
90
|
var YahooHero = require('./YahooHero.js');
|
|
91
91
|
var GridHero = require('./GridHero.js');
|
|
92
92
|
var ConferenceArticleCard = require('./ConferenceArticleCard.js');
|
|
93
|
-
var getSerializers = require('./index-
|
|
93
|
+
var getSerializers = require('./index-f95a3c0f.js');
|
|
94
94
|
var Beam = require('./Beam.js');
|
|
95
95
|
var Segment = require('./Segment.js');
|
|
96
96
|
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-04817712.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-04817712.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-04817712.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-04817712.js';
|
|
7
7
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
8
8
|
import './core.get-iterator-method-ea258bb1.js';
|
|
9
9
|
import './_object-pie-133f504a.js';
|
|
@@ -5,7 +5,7 @@ import urlFor from './urlFor.js';
|
|
|
5
5
|
import { m as moment } from './moment-bc12cb97.js';
|
|
6
6
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
7
7
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
8
|
-
import { g as getSerializers } from './index-
|
|
8
|
+
import { g as getSerializers } from './index-04817712.js';
|
|
9
9
|
|
|
10
10
|
var css = ".MediaSeriesCard-module_article__SAFYK {\n width: 100%;\n margin: 0 0 1rem 0;\n}\n.MediaSeriesCard-module_article__SAFYK a {\n display: flex;\n width: 100%;\n color: #000000;\n}\n.MediaSeriesCard-module_thumb__3jRAU {\n width: 25%;\n}\n.MediaSeriesCard-module_thumb__3jRAU img {\n width: 100%;\n height: auto;\n}\n.MediaSeriesCard-module_info__3L7_o {\n width: 75%;\n font-size: 1rem;\n}\n.MediaSeriesCard-module_info__3L7_o h2 {\n font-weight: bold;\n font-size: 1.25rem;\n margin: 0;\n}\n.MediaSeriesCard-module_published__E4oiz {\n color: #6d6d6d;\n margin: 0;\n}\n.MediaSeriesCard-module_summary__1xanh {\n margin: 0.5rem 0 0 0;\n}\n.MediaSeriesCard-module_author__e5fuR {\n margin: 0;\n}\n.MediaSeriesCard-module_author__e5fuR span {\n color: #6d6d6d;\n}\n.MediaSeriesCard-module_name__2m5KY {\n font-size: 1.3rem;\n font-weight: bold;\n}\n@media only screen and (max-width: 568px) {\n .MediaSeriesCard-module_article__SAFYK {\n margin: 1rem 0;\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\n }\n .MediaSeriesCard-module_article__SAFYK a {\n flex-direction: column;\n align-items: center;\n }\n .MediaSeriesCard-module_thumb__3jRAU {\n overflow: hidden;\n width: 100%;\n margin-bottom: 1rem;\n }\n .MediaSeriesCard-module_thumb__3jRAU img{\n border-radius: 10px 10px 0 0; \n }\n .MediaSeriesCard-module_thumb__3jRAU figure {\n margin: 0;\n }\n .MediaSeriesCard-module_info__3L7_o {\n width: 90%;\n padding: 0rem !important;\n }\n .MediaSeriesCard-module_info__3L7_o h2 {\n font-size: 1rem;\n }\n .MediaSeriesCard-module_name__2m5KY {\n font-size: 1rem;\n \n }\n}\n";
|
|
11
11
|
var styles = { "article": "MediaSeriesCard-module_article__SAFYK", "thumb": "MediaSeriesCard-module_thumb__3jRAU", "info": "MediaSeriesCard-module_info__3L7_o", "published": "MediaSeriesCard-module_published__E4oiz", "summary": "MediaSeriesCard-module_summary__1xanh", "author": "MediaSeriesCard-module_author__e5fuR", "name": "MediaSeriesCard-module_name__2m5KY" };
|
|
@@ -8,9 +8,9 @@ import './index-98ca9cec.js';
|
|
|
8
8
|
import 'react-dom';
|
|
9
9
|
import Link from 'next/link';
|
|
10
10
|
import MasterDeck from './MasterDeck.js';
|
|
11
|
-
import { M as MediaSeriesCard } from './MediaSeriesCard-
|
|
11
|
+
import { M as MediaSeriesCard } from './MediaSeriesCard-afb517a5.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-04817712.js';
|
|
14
14
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
15
15
|
import './core.get-iterator-method-ea258bb1.js';
|
|
16
16
|
import './web.dom.iterable-ab4dea5c.js';
|
|
@@ -9,8 +9,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 { M as MediaSeriesCard } from './MediaSeriesCard-
|
|
13
|
-
import { g as getSerializers } from './index-
|
|
12
|
+
import { M as MediaSeriesCard } from './MediaSeriesCard-afb517a5.js';
|
|
13
|
+
import { g as getSerializers } from './index-04817712.js';
|
|
14
14
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
15
15
|
import './core.get-iterator-method-ea258bb1.js';
|
|
16
16
|
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-04817712.js';
|
|
15
15
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
16
16
|
import { c as checkSisterSite } from './checkSisterSite-baa4fb6b.js';
|
|
17
17
|
import './_commonjsHelpers-0c4b6f40.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-04817712.js';
|
|
15
15
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
16
16
|
import { c as checkSisterSite } from './checkSisterSite-baa4fb6b.js';
|
|
17
17
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
@@ -4,9 +4,9 @@ import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
|
4
4
|
import React__default, { useState } from 'react';
|
|
5
5
|
import Link from 'next/link';
|
|
6
6
|
import MasterDeck from './MasterDeck.js';
|
|
7
|
-
import { M as MediaSeriesCard } from './MediaSeriesCard-
|
|
7
|
+
import { M as MediaSeriesCard } from './MediaSeriesCard-afb517a5.js';
|
|
8
8
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
9
|
-
import { g as getSerializers } from './index-
|
|
9
|
+
import { g as getSerializers } from './index-04817712.js';
|
|
10
10
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
11
11
|
import './core.get-iterator-method-ea258bb1.js';
|
|
12
12
|
import './web.dom.iterable-ab4dea5c.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-04817712.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-04817712.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-04817712.js';
|
|
19
19
|
import DFPAdSlot from './AdSlot.js';
|
|
20
20
|
import { S as SeriesSlider } from './SeriesSlider-f771e20d.js';
|
|
21
21
|
import { a as getContentPlacementUrl, g as getTargeting } from './getTargeting-9bd28724.js';
|
|
@@ -2287,7 +2287,9 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
2287
2287
|
// Passing queueData to check for single article
|
|
2288
2288
|
, queueData: queueData,
|
|
2289
2289
|
showRelatedArticles: showRelatedArticles,
|
|
2290
|
-
index: index
|
|
2290
|
+
index: index,
|
|
2291
|
+
showPageNumber: article.issueGroup && article.issueGroup.parent ? article.issueGroup.parent.showPageNumber : null,
|
|
2292
|
+
showIssueNameOnly: article.issueGroup && article.issueGroup.parent ? article.issueGroup.parent.showIssueNameOnly : null
|
|
2291
2293
|
}))
|
|
2292
2294
|
);
|
|
2293
2295
|
})
|
|
@@ -2499,7 +2501,7 @@ var View = function View(props) {
|
|
|
2499
2501
|
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React__default.createElement('link', { rel: 'next', href: props.article.seriesDetail.nextUrl })
|
|
2500
2502
|
)
|
|
2501
2503
|
),
|
|
2502
|
-
!needInfiniteScroll ? React__default.createElement(Article, _extends({ infiniteScroll: false, showRelatedArticles: showRelatedArticles, showDisqus: showDisqus, emailList: emailList, articleRecs: articleRecs }, props)) : React__default.createElement(ArticleQueue, _extends({
|
|
2504
|
+
!needInfiniteScroll ? React__default.createElement(Article, _extends({ infiniteScroll: false, showRelatedArticles: showRelatedArticles, showDisqus: showDisqus, emailList: emailList, articleRecs: articleRecs }, props, { showIssueNameOnly: article.issueGroup && article.issueGroup.parent ? article.issueGroup.parent.showIssueNameOnly : null, showPageNumber: article.issueGroup && article.issueGroup.parent ? article.issueGroup.parent.showPageNumber : null })) : React__default.createElement(ArticleQueue, _extends({
|
|
2503
2505
|
infiniteScroll: true,
|
|
2504
2506
|
showRelatedArticles: showRelatedArticles,
|
|
2505
2507
|
canonicalTag: canonicalTag,
|
|
@@ -1628,11 +1628,13 @@ function shouldUpdateVideo(prevProps, props) {
|
|
|
1628
1628
|
|
|
1629
1629
|
function filterResetOptions(opts) {
|
|
1630
1630
|
return _objectSpread(_objectSpread({}, opts), {}, {
|
|
1631
|
-
|
|
1631
|
+
height: 0,
|
|
1632
|
+
width: 0,
|
|
1633
|
+
playerVars: _objectSpread(_objectSpread({}, opts.playerVars), {}, {
|
|
1632
1634
|
autoplay: 0,
|
|
1633
1635
|
start: 0,
|
|
1634
1636
|
end: 0
|
|
1635
|
-
}
|
|
1637
|
+
})
|
|
1636
1638
|
});
|
|
1637
1639
|
}
|
|
1638
1640
|
/**
|
|
@@ -1647,7 +1649,7 @@ function filterResetOptions(opts) {
|
|
|
1647
1649
|
|
|
1648
1650
|
|
|
1649
1651
|
function shouldResetPlayer(prevProps, props) {
|
|
1650
|
-
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1652
|
+
return prevProps.videoId !== props.videoId || !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1651
1653
|
}
|
|
1652
1654
|
/**
|
|
1653
1655
|
* Check whether a props change should result in an id or className update.
|
|
@@ -1658,7 +1660,7 @@ function shouldResetPlayer(prevProps, props) {
|
|
|
1658
1660
|
|
|
1659
1661
|
|
|
1660
1662
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1661
|
-
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1663
|
+
return prevProps.id !== props.id || prevProps.className !== props.className || prevProps.opts.width !== props.opts.width || prevProps.opts.height !== props.opts.height || prevProps.title !== props.title;
|
|
1662
1664
|
}
|
|
1663
1665
|
|
|
1664
1666
|
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
@@ -1745,6 +1747,9 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1745
1747
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1746
1748
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1747
1749
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1750
|
+
if (_this.props.opts && _this.props.opts.width) iframe.setAttribute('width', _this.props.opts.width);else iframe.removeAttribute('width');
|
|
1751
|
+
if (_this.props.opts && _this.props.opts.height) iframe.setAttribute('height', _this.props.opts.height);else iframe.removeAttribute('height');
|
|
1752
|
+
if (typeof _this.props.title === 'string') iframe.setAttribute('title', _this.props.title);else iframe.setAttribute('title', 'YouTube video player');
|
|
1748
1753
|
});
|
|
1749
1754
|
});
|
|
1750
1755
|
|
|
@@ -1843,7 +1848,8 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1843
1848
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1844
1849
|
id: this.props.id,
|
|
1845
1850
|
className: this.props.className,
|
|
1846
|
-
ref: this.refContainer
|
|
1851
|
+
ref: this.refContainer,
|
|
1852
|
+
loading: this.props.loading
|
|
1847
1853
|
}));
|
|
1848
1854
|
}
|
|
1849
1855
|
}]);
|
|
@@ -1868,6 +1874,10 @@ YouTube.propTypes = {
|
|
|
1868
1874
|
className: PropTypes.string,
|
|
1869
1875
|
// custom class name for player container element
|
|
1870
1876
|
containerClassName: PropTypes.string,
|
|
1877
|
+
// custom title for the iFrame, see https://www.w3.org/TR/WCAG20-TECHS/H64.html
|
|
1878
|
+
title: PropTypes.string,
|
|
1879
|
+
// custom loading for player element
|
|
1880
|
+
loading: PropTypes.oneOf(['lazy', 'eager', 'auto']),
|
|
1871
1881
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1872
1882
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1873
1883
|
// event subscriptions
|
|
@@ -1884,6 +1894,7 @@ YouTube.defaultProps = {
|
|
|
1884
1894
|
videoId: null,
|
|
1885
1895
|
id: null,
|
|
1886
1896
|
className: null,
|
|
1897
|
+
loading: null,
|
|
1887
1898
|
opts: {},
|
|
1888
1899
|
containerClassName: '',
|
|
1889
1900
|
onReady: function onReady() {},
|
|
@@ -1893,7 +1904,8 @@ YouTube.defaultProps = {
|
|
|
1893
1904
|
onEnd: function onEnd() {},
|
|
1894
1905
|
onStateChange: function onStateChange() {},
|
|
1895
1906
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1896
|
-
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1907
|
+
onPlaybackQualityChange: function onPlaybackQualityChange() {},
|
|
1908
|
+
title: null
|
|
1897
1909
|
};
|
|
1898
1910
|
|
|
1899
1911
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
package/dist/esm/index.js
CHANGED
|
@@ -87,7 +87,7 @@ export { default as VerticalHero } from './VerticalHero.js';
|
|
|
87
87
|
export { default as YahooHero } from './YahooHero.js';
|
|
88
88
|
export { default as GridHero } from './GridHero.js';
|
|
89
89
|
export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
|
|
90
|
-
export { g as getSerializers } from './index-
|
|
90
|
+
export { g as getSerializers } from './index-04817712.js';
|
|
91
91
|
export { default as Beam } from './Beam.js';
|
|
92
92
|
export { default as Segment } from './Segment.js';
|
|
93
93
|
export { default as KMTracker } from './KMTracker.js';
|