@mjhls/mjh-framework 1.0.1008 → 1.0.1010
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-aa63ea9e.js → MediaSeriesCard-7f8ea2ea.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 +33 -17
- package/dist/cjs/getSerializers.js +1 -1
- package/dist/cjs/{index-312148a5.js → index-b41ea6a0.js} +25 -5
- package/dist/cjs/index.js +1 -1
- package/dist/esm/ArticleProgramLandingPage.js +1 -1
- package/dist/esm/ExternalResources.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +1 -1
- package/dist/esm/IssueLanding.js +1 -1
- package/dist/esm/{MediaSeriesCard-7c59d797.js → MediaSeriesCard-478f939a.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 +33 -17
- package/dist/esm/getSerializers.js +1 -1
- package/dist/esm/{index-d5ac0b7c.js → index-dd204fd9.js} +25 -5
- 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.1010
|
|
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-96b44364.js');
|
|
8
|
-
var getSerializers = require('./index-
|
|
8
|
+
var getSerializers = require('./index-b41ea6a0.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-96b44364.js');
|
|
7
|
-
var getSerializers = require('./index-
|
|
7
|
+
var getSerializers = require('./index-b41ea6a0.js');
|
|
8
8
|
var index = require('./index-96c331fd.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-96b44364.js');
|
|
8
|
-
var getSerializers = require('./index-
|
|
8
|
+
var getSerializers = require('./index-b41ea6a0.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-96b44364.js');
|
|
8
|
-
var getSerializers = require('./index-
|
|
8
|
+
var getSerializers = require('./index-b41ea6a0.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-96b44364.js');
|
|
10
|
-
var getSerializers = require('./index-
|
|
10
|
+
var getSerializers = require('./index-b41ea6a0.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-b95410f0.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-7f8ea2ea.js');
|
|
14
14
|
var BlockContent = require('./BlockContent-96b44364.js');
|
|
15
|
-
var getSerializers = require('./index-
|
|
15
|
+
var getSerializers = require('./index-b41ea6a0.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-96b44364.js');
|
|
13
13
|
var MasterDeckPaginated = require('./MasterDeckPaginated.js');
|
|
14
|
-
var MediaSeriesCard = require('./MediaSeriesCard-
|
|
15
|
-
var getSerializers = require('./index-
|
|
14
|
+
var MediaSeriesCard = require('./MediaSeriesCard-7f8ea2ea.js');
|
|
15
|
+
var getSerializers = require('./index-b41ea6a0.js');
|
|
16
16
|
require('./_commonjsHelpers-06173234.js');
|
|
17
17
|
require('./core.get-iterator-method-5643aa10.js');
|
|
18
18
|
require('./web.dom.iterable-d98303e0.js');
|
|
@@ -12,7 +12,7 @@ var QueueDeckExpanded = require('./QueueDeckExpanded.js');
|
|
|
12
12
|
var Breadcrumbs = require('./Breadcrumbs.js');
|
|
13
13
|
var Feature = require('./Feature.js');
|
|
14
14
|
var urlFor = require('./urlFor.js');
|
|
15
|
-
var getSerializers = require('./index-
|
|
15
|
+
var getSerializers = require('./index-b41ea6a0.js');
|
|
16
16
|
var BlockContent = require('./BlockContent-96b44364.js');
|
|
17
17
|
var checkSisterSite = require('./checkSisterSite-b29833b2.js');
|
|
18
18
|
require('./_commonjsHelpers-06173234.js');
|
|
@@ -12,7 +12,7 @@ var QueueDeckExpandedPaginated = require('./QueueDeckExpandedPaginated.js');
|
|
|
12
12
|
var Breadcrumbs = require('./Breadcrumbs.js');
|
|
13
13
|
var Feature = require('./Feature.js');
|
|
14
14
|
var urlFor = require('./urlFor.js');
|
|
15
|
-
var getSerializers = require('./index-
|
|
15
|
+
var getSerializers = require('./index-b41ea6a0.js');
|
|
16
16
|
var BlockContent = require('./BlockContent-96b44364.js');
|
|
17
17
|
var checkSisterSite = require('./checkSisterSite-b29833b2.js');
|
|
18
18
|
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-7f8ea2ea.js');
|
|
10
10
|
var BlockContent = require('./BlockContent-96b44364.js');
|
|
11
|
-
var getSerializers = require('./index-
|
|
11
|
+
var getSerializers = require('./index-b41ea6a0.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-96b44364.js');
|
|
10
|
-
var getSerializers = require('./index-
|
|
10
|
+
var getSerializers = require('./index-b41ea6a0.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-96b44364.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-b41ea6a0.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-56020df6.js');
|
|
19
19
|
var SocialShare = require('./SocialShare.js');
|
|
20
|
-
var getSerializers = require('./index-
|
|
20
|
+
var getSerializers = require('./index-b41ea6a0.js');
|
|
21
21
|
var AdSlot = require('./AdSlot.js');
|
|
22
22
|
var SeriesSlider = require('./SeriesSlider-18fc6e71.js');
|
|
23
23
|
var getTargeting = require('./getTargeting-ba942d9a.js');
|
|
@@ -189,21 +189,30 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
189
189
|
if (mediaSeriesGroup.thumbnail) {
|
|
190
190
|
thumbnailUrl = urlFor({ client: client, source: mediaSeriesGroup.thumbnail });
|
|
191
191
|
}
|
|
192
|
-
|
|
192
|
+
var margin = article.documentGroupMapping && article.documentGroupMapping[0] && article.documentGroupMapping[0].parent && article.documentGroupMapping[0].parent.parent && article.documentGroupMapping[0].parent.parent.contextText || article.documentGroup && article.documentGroup.parent && article.documentGroup.parent.parent && article.documentGroup.parent.parent.contextText ? 'none' : '1rem';
|
|
193
193
|
return React__default["default"].createElement(
|
|
194
|
-
'
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
style: {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
194
|
+
'div',
|
|
195
|
+
null,
|
|
196
|
+
React__default["default"].createElement(
|
|
197
|
+
'p',
|
|
198
|
+
{ style: { textAlign: 'center', fontWeight: 600 } },
|
|
199
|
+
article.documentGroupMapping && article.documentGroupMapping[0] && article.documentGroupMapping[0].parent && article.documentGroupMapping[0].parent.parent && article.documentGroupMapping[0].parent.parent.contextText ? article.documentGroupMapping[0].parent.parent.contextText : article.documentGroup && article.documentGroup.parent && article.documentGroup.parent.parent && article.documentGroup.parent.parent.contextText ? article.documentGroup.parent.parent.contextText : null
|
|
200
|
+
),
|
|
201
|
+
React__default["default"].createElement(
|
|
202
|
+
'a',
|
|
203
|
+
{
|
|
204
|
+
href: url,
|
|
205
|
+
className: 'doc-group',
|
|
206
|
+
style: { display: 'flex', flexDirection: 'column', padding: '0 1rem', justifyContent: thumbnailUrl ? 'center' : 'flex-start', alignItems: 'center' } },
|
|
207
|
+
thumbnailUrl && !disableThumbnail && React__default["default"].createElement('img', { style: { maxWidth: '210px', maxHeight: '100px', marginTop: margin }, src: thumbnailUrl, alt: name }),
|
|
208
|
+
(disableThumbnail || !thumbnailUrl) && React__default["default"].createElement('p', {
|
|
209
|
+
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main.main_43 ? 'left' : 'right', marginTop: '.25rem' },
|
|
210
|
+
dangerouslySetInnerHTML: { __html: name } }),
|
|
211
|
+
main.main_43 && !thumbnailUrl && React__default["default"].createElement(
|
|
212
|
+
'style',
|
|
213
|
+
{ jsx: 'true' },
|
|
214
|
+
'\n a.doc-group {\n display: block !important;\n padding: 0 !important;\n }\n '
|
|
215
|
+
)
|
|
207
216
|
)
|
|
208
217
|
);
|
|
209
218
|
};
|
|
@@ -1057,7 +1066,7 @@ var Article = React__default["default"].memo(React.forwardRef(function (props, r
|
|
|
1057
1066
|
ind === 0 ? articleRecsQuery = articleRecsQuery.concat('[\'' + rec + '\', ') : ind === articleRecs.length - 1 ? articleRecsQuery = articleRecsQuery.concat('\'' + rec + '\']]') : articleRecsQuery = articleRecsQuery.concat('\'' + rec + '\', ');
|
|
1058
1067
|
});
|
|
1059
1068
|
}
|
|
1060
|
-
//next video url
|
|
1069
|
+
// next video url
|
|
1061
1070
|
if (sliderData) {
|
|
1062
1071
|
var nextArticle = void 0;
|
|
1063
1072
|
sliderData.forEach(function (data, index) {
|
|
@@ -1741,7 +1750,14 @@ var Article = React__default["default"].memo(React.forwardRef(function (props, r
|
|
|
1741
1750
|
),
|
|
1742
1751
|
React__default["default"].createElement(
|
|
1743
1752
|
'div',
|
|
1744
|
-
{ className: 'mb-3 doc-group-container',
|
|
1753
|
+
{ className: 'mb-3 doc-group-container',
|
|
1754
|
+
style: {
|
|
1755
|
+
display: 'flex',
|
|
1756
|
+
justifyContent: 'space-between',
|
|
1757
|
+
alignItems: article.documentGroupMapping && article.documentGroupMapping[0] && article.documentGroupMapping[0].parent && article.documentGroupMapping[0].parent.parent && article.documentGroupMapping[0].parent.parent.contextText || article.documentGroup && article.documentGroup.parent && article.documentGroup.parent.parent && article.documentGroup.parent.parent.contextText ? 'flex-start' : 'flex-end',
|
|
1758
|
+
margin: '0, 0, 1rem, 0'
|
|
1759
|
+
// margin: article.documentGroup && article.documentGroup.thumbnail && article.documentGroup.thumbnail.caption ? '1rem 0 1rem 0' : '0 0 1rem 0'
|
|
1760
|
+
} },
|
|
1745
1761
|
React__default["default"].createElement(
|
|
1746
1762
|
'style',
|
|
1747
1763
|
{ jsx: 'true' },
|
|
@@ -10379,6 +10379,7 @@ var BlockTable = function BlockTable(props) {
|
|
|
10379
10379
|
|
|
10380
10380
|
var _borderColor = borderColor ? borderColor.hex : '#000000';
|
|
10381
10381
|
var holder = React.useRef();
|
|
10382
|
+
|
|
10382
10383
|
React.useEffect(function () {
|
|
10383
10384
|
var handleResize = function handleResize() {
|
|
10384
10385
|
var holderWidth = holder.current.offsetWidth;
|
|
@@ -10394,20 +10395,39 @@ var BlockTable = function BlockTable(props) {
|
|
|
10394
10395
|
return window.removeEventListener('resize', handleResize);
|
|
10395
10396
|
};
|
|
10396
10397
|
}, []);
|
|
10398
|
+
|
|
10399
|
+
var styles = {
|
|
10400
|
+
blockTableRow: { display: 'flex', borderTop: showBorders ? borderWidth + 'px solid ' + _borderColor : 'none' },
|
|
10401
|
+
blockTableRowLast: {
|
|
10402
|
+
display: 'flex',
|
|
10403
|
+
borderTop: showBorders ? borderWidth + 'px solid ' + _borderColor : 'none',
|
|
10404
|
+
borderBottom: showBorders ? borderWidth + 'px solid ' + _borderColor : 'none'
|
|
10405
|
+
},
|
|
10406
|
+
blockTableCell: {
|
|
10407
|
+
padding: '.5rem',
|
|
10408
|
+
borderLeft: showBorders ? borderWidth + 'px solid ' + _borderColor : 'none'
|
|
10409
|
+
},
|
|
10410
|
+
blockTableCellLast: {
|
|
10411
|
+
padding: '.5rem',
|
|
10412
|
+
borderLeft: showBorders ? borderWidth + 'px solid ' + _borderColor : 'none',
|
|
10413
|
+
borderRight: showBorders ? borderWidth + 'px solid ' + _borderColor : 'none'
|
|
10414
|
+
}
|
|
10415
|
+
};
|
|
10416
|
+
|
|
10397
10417
|
return React__default["default"].createElement(
|
|
10398
10418
|
'div',
|
|
10399
10419
|
{ className: 'blockTableHolder', ref: holder },
|
|
10400
10420
|
React__default["default"].createElement(
|
|
10401
10421
|
'div',
|
|
10402
10422
|
{ className: 'blockTable' },
|
|
10403
|
-
rows && rows.map(function (row) {
|
|
10423
|
+
rows && rows.map(function (row, index) {
|
|
10404
10424
|
return React__default["default"].createElement(
|
|
10405
10425
|
'div',
|
|
10406
|
-
{ className: 'blockTableRow' },
|
|
10407
|
-
row.cells && row.cells.map(function (cell) {
|
|
10426
|
+
{ key: 'tr-' + index, className: 'blockTableRow', style: index == rows.length - 1 ? styles.blockTableRowLast : styles.blockTableRow },
|
|
10427
|
+
row.cells && row.cells.map(function (cell, cellIndex) {
|
|
10408
10428
|
return React__default["default"].createElement(
|
|
10409
10429
|
'div',
|
|
10410
|
-
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
10430
|
+
{ key: 'cell-' + cellIndex, className: 'blockTableCell', style: cellIndex == row.cells.length - 1 ? _extends._extends({ width: (100 / row.cells.length).toFixed(2) + '%' }, styles.blockTableCellLast) : _extends._extends({ width: (100 / row.cells.length).toFixed(2) + '%' }, styles.blockTableCell) },
|
|
10411
10431
|
React__default["default"].createElement(BlockContent.BlockContent, _extends._extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
10412
10432
|
);
|
|
10413
10433
|
})
|
|
@@ -10417,7 +10437,7 @@ var BlockTable = function BlockTable(props) {
|
|
|
10417
10437
|
React__default["default"].createElement(
|
|
10418
10438
|
'style',
|
|
10419
10439
|
{ jsx: true },
|
|
10420
|
-
'\n .
|
|
10440
|
+
'\n .blockTable {\n min-width: ' + minTableWidth + 'px;\n }\n\n .blockTableCell > div {\n width: 100%;\n }\n .blockTableCell > div p {\n margin: 0;\n }\n .blockTableCell > div figure {\n margin: 0 !important;\n }\n .blockTableCell > div figure img {\n margin: 0 !important;\n }\n\n @media only screen and (max-width: 800px) {\n .blockTableCell {\n padding: 0.25rem;\n }\n }\n '
|
|
10421
10441
|
)
|
|
10422
10442
|
);
|
|
10423
10443
|
};
|
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-b41ea6a0.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-dd204fd9.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-dd204fd9.js';
|
|
6
6
|
import { m as momentTimezone } from './index-30a6257d.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-dd204fd9.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-dd204fd9.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-dd204fd9.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-174b5baf.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-478f939a.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-dd204fd9.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-478f939a.js';
|
|
13
|
+
import { g as getSerializers } from './index-dd204fd9.js';
|
|
14
14
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
15
15
|
import './core.get-iterator-method-ea258bb1.js';
|
|
16
16
|
import './web.dom.iterable-ab4dea5c.js';
|
|
@@ -10,7 +10,7 @@ import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
|
10
10
|
import Breadcrumbs from './Breadcrumbs.js';
|
|
11
11
|
import Feature from './Feature.js';
|
|
12
12
|
import urlFor from './urlFor.js';
|
|
13
|
-
import { g as getSerializers } from './index-
|
|
13
|
+
import { g as getSerializers } from './index-dd204fd9.js';
|
|
14
14
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
15
15
|
import { c as checkSisterSite } from './checkSisterSite-baa4fb6b.js';
|
|
16
16
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
@@ -10,7 +10,7 @@ import QueueDeckExpanded from './QueueDeckExpandedPaginated.js';
|
|
|
10
10
|
import Breadcrumbs from './Breadcrumbs.js';
|
|
11
11
|
import Feature from './Feature.js';
|
|
12
12
|
import urlFor from './urlFor.js';
|
|
13
|
-
import { g as getSerializers } from './index-
|
|
13
|
+
import { g as getSerializers } from './index-dd204fd9.js';
|
|
14
14
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
15
15
|
import { c as checkSisterSite } from './checkSisterSite-baa4fb6b.js';
|
|
16
16
|
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-478f939a.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-dd204fd9.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-dd204fd9.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-dd204fd9.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-dd204fd9.js';
|
|
19
19
|
import DFPAdSlot from './AdSlot.js';
|
|
20
20
|
import { S as SeriesSlider } from './SeriesSlider-5728e349.js';
|
|
21
21
|
import { a as getContentPlacementUrl, g as getTargeting } from './getTargeting-9bd28724.js';
|
|
@@ -179,21 +179,30 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
179
179
|
if (mediaSeriesGroup.thumbnail) {
|
|
180
180
|
thumbnailUrl = urlFor({ client: client, source: mediaSeriesGroup.thumbnail });
|
|
181
181
|
}
|
|
182
|
-
|
|
182
|
+
var margin = article.documentGroupMapping && article.documentGroupMapping[0] && article.documentGroupMapping[0].parent && article.documentGroupMapping[0].parent.parent && article.documentGroupMapping[0].parent.parent.contextText || article.documentGroup && article.documentGroup.parent && article.documentGroup.parent.parent && article.documentGroup.parent.parent.contextText ? 'none' : '1rem';
|
|
183
183
|
return React__default.createElement(
|
|
184
|
-
'
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
style: {
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
184
|
+
'div',
|
|
185
|
+
null,
|
|
186
|
+
React__default.createElement(
|
|
187
|
+
'p',
|
|
188
|
+
{ style: { textAlign: 'center', fontWeight: 600 } },
|
|
189
|
+
article.documentGroupMapping && article.documentGroupMapping[0] && article.documentGroupMapping[0].parent && article.documentGroupMapping[0].parent.parent && article.documentGroupMapping[0].parent.parent.contextText ? article.documentGroupMapping[0].parent.parent.contextText : article.documentGroup && article.documentGroup.parent && article.documentGroup.parent.parent && article.documentGroup.parent.parent.contextText ? article.documentGroup.parent.parent.contextText : null
|
|
190
|
+
),
|
|
191
|
+
React__default.createElement(
|
|
192
|
+
'a',
|
|
193
|
+
{
|
|
194
|
+
href: url,
|
|
195
|
+
className: 'doc-group',
|
|
196
|
+
style: { display: 'flex', flexDirection: 'column', padding: '0 1rem', justifyContent: thumbnailUrl ? 'center' : 'flex-start', alignItems: 'center' } },
|
|
197
|
+
thumbnailUrl && !disableThumbnail && React__default.createElement('img', { style: { maxWidth: '210px', maxHeight: '100px', marginTop: margin }, src: thumbnailUrl, alt: name }),
|
|
198
|
+
(disableThumbnail || !thumbnailUrl) && React__default.createElement('p', {
|
|
199
|
+
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main_43 ? 'left' : 'right', marginTop: '.25rem' },
|
|
200
|
+
dangerouslySetInnerHTML: { __html: name } }),
|
|
201
|
+
main_43 && !thumbnailUrl && React__default.createElement(
|
|
202
|
+
'style',
|
|
203
|
+
{ jsx: 'true' },
|
|
204
|
+
'\n a.doc-group {\n display: block !important;\n padding: 0 !important;\n }\n '
|
|
205
|
+
)
|
|
197
206
|
)
|
|
198
207
|
);
|
|
199
208
|
};
|
|
@@ -1047,7 +1056,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1047
1056
|
ind === 0 ? articleRecsQuery = articleRecsQuery.concat('[\'' + rec + '\', ') : ind === articleRecs.length - 1 ? articleRecsQuery = articleRecsQuery.concat('\'' + rec + '\']]') : articleRecsQuery = articleRecsQuery.concat('\'' + rec + '\', ');
|
|
1048
1057
|
});
|
|
1049
1058
|
}
|
|
1050
|
-
//next video url
|
|
1059
|
+
// next video url
|
|
1051
1060
|
if (sliderData) {
|
|
1052
1061
|
var nextArticle = void 0;
|
|
1053
1062
|
sliderData.forEach(function (data, index) {
|
|
@@ -1731,7 +1740,14 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1731
1740
|
),
|
|
1732
1741
|
React__default.createElement(
|
|
1733
1742
|
'div',
|
|
1734
|
-
{ className: 'mb-3 doc-group-container',
|
|
1743
|
+
{ className: 'mb-3 doc-group-container',
|
|
1744
|
+
style: {
|
|
1745
|
+
display: 'flex',
|
|
1746
|
+
justifyContent: 'space-between',
|
|
1747
|
+
alignItems: article.documentGroupMapping && article.documentGroupMapping[0] && article.documentGroupMapping[0].parent && article.documentGroupMapping[0].parent.parent && article.documentGroupMapping[0].parent.parent.contextText || article.documentGroup && article.documentGroup.parent && article.documentGroup.parent.parent && article.documentGroup.parent.parent.contextText ? 'flex-start' : 'flex-end',
|
|
1748
|
+
margin: '0, 0, 1rem, 0'
|
|
1749
|
+
// margin: article.documentGroup && article.documentGroup.thumbnail && article.documentGroup.thumbnail.caption ? '1rem 0 1rem 0' : '0 0 1rem 0'
|
|
1750
|
+
} },
|
|
1735
1751
|
React__default.createElement(
|
|
1736
1752
|
'style',
|
|
1737
1753
|
{ jsx: 'true' },
|
|
@@ -10359,6 +10359,7 @@ var BlockTable = function BlockTable(props) {
|
|
|
10359
10359
|
|
|
10360
10360
|
var _borderColor = borderColor ? borderColor.hex : '#000000';
|
|
10361
10361
|
var holder = useRef();
|
|
10362
|
+
|
|
10362
10363
|
useEffect(function () {
|
|
10363
10364
|
var handleResize = function handleResize() {
|
|
10364
10365
|
var holderWidth = holder.current.offsetWidth;
|
|
@@ -10374,20 +10375,39 @@ var BlockTable = function BlockTable(props) {
|
|
|
10374
10375
|
return window.removeEventListener('resize', handleResize);
|
|
10375
10376
|
};
|
|
10376
10377
|
}, []);
|
|
10378
|
+
|
|
10379
|
+
var styles = {
|
|
10380
|
+
blockTableRow: { display: 'flex', borderTop: showBorders ? borderWidth + 'px solid ' + _borderColor : 'none' },
|
|
10381
|
+
blockTableRowLast: {
|
|
10382
|
+
display: 'flex',
|
|
10383
|
+
borderTop: showBorders ? borderWidth + 'px solid ' + _borderColor : 'none',
|
|
10384
|
+
borderBottom: showBorders ? borderWidth + 'px solid ' + _borderColor : 'none'
|
|
10385
|
+
},
|
|
10386
|
+
blockTableCell: {
|
|
10387
|
+
padding: '.5rem',
|
|
10388
|
+
borderLeft: showBorders ? borderWidth + 'px solid ' + _borderColor : 'none'
|
|
10389
|
+
},
|
|
10390
|
+
blockTableCellLast: {
|
|
10391
|
+
padding: '.5rem',
|
|
10392
|
+
borderLeft: showBorders ? borderWidth + 'px solid ' + _borderColor : 'none',
|
|
10393
|
+
borderRight: showBorders ? borderWidth + 'px solid ' + _borderColor : 'none'
|
|
10394
|
+
}
|
|
10395
|
+
};
|
|
10396
|
+
|
|
10377
10397
|
return React__default.createElement(
|
|
10378
10398
|
'div',
|
|
10379
10399
|
{ className: 'blockTableHolder', ref: holder },
|
|
10380
10400
|
React__default.createElement(
|
|
10381
10401
|
'div',
|
|
10382
10402
|
{ className: 'blockTable' },
|
|
10383
|
-
rows && rows.map(function (row) {
|
|
10403
|
+
rows && rows.map(function (row, index) {
|
|
10384
10404
|
return React__default.createElement(
|
|
10385
10405
|
'div',
|
|
10386
|
-
{ className: 'blockTableRow' },
|
|
10387
|
-
row.cells && row.cells.map(function (cell) {
|
|
10406
|
+
{ key: 'tr-' + index, className: 'blockTableRow', style: index == rows.length - 1 ? styles.blockTableRowLast : styles.blockTableRow },
|
|
10407
|
+
row.cells && row.cells.map(function (cell, cellIndex) {
|
|
10388
10408
|
return React__default.createElement(
|
|
10389
10409
|
'div',
|
|
10390
|
-
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
10410
|
+
{ key: 'cell-' + cellIndex, className: 'blockTableCell', style: cellIndex == row.cells.length - 1 ? _extends({ width: (100 / row.cells.length).toFixed(2) + '%' }, styles.blockTableCellLast) : _extends({ width: (100 / row.cells.length).toFixed(2) + '%' }, styles.blockTableCell) },
|
|
10391
10411
|
React__default.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
10392
10412
|
);
|
|
10393
10413
|
})
|
|
@@ -10397,7 +10417,7 @@ var BlockTable = function BlockTable(props) {
|
|
|
10397
10417
|
React__default.createElement(
|
|
10398
10418
|
'style',
|
|
10399
10419
|
{ jsx: true },
|
|
10400
|
-
'\n .
|
|
10420
|
+
'\n .blockTable {\n min-width: ' + minTableWidth + 'px;\n }\n\n .blockTableCell > div {\n width: 100%;\n }\n .blockTableCell > div p {\n margin: 0;\n }\n .blockTableCell > div figure {\n margin: 0 !important;\n }\n .blockTableCell > div figure img {\n margin: 0 !important;\n }\n\n @media only screen and (max-width: 800px) {\n .blockTableCell {\n padding: 0.25rem;\n }\n }\n '
|
|
10401
10421
|
)
|
|
10402
10422
|
);
|
|
10403
10423
|
};
|
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-dd204fd9.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';
|