@mjhls/mjh-framework 1.0.650 → 1.0.652
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/ExternalResources.js +1 -1
- package/dist/cjs/GridContent.js +8 -6
- package/dist/cjs/IssueLanding.js +3 -1
- package/dist/cjs/PartnerDetailListing.js +2 -1
- package/dist/cjs/QueueDeckExpanded.js +13 -10
- package/dist/cjs/View.js +1 -1
- package/dist/cjs/getContentCategory-f38a4c00.js +11 -0
- package/dist/cjs/getSerializers.js +1 -1
- package/dist/cjs/{index-4f22007d.js → index-94418bc4.js} +1 -1
- package/dist/cjs/index.js +2 -1
- package/dist/esm/ExternalResources.js +1 -1
- package/dist/esm/GridContent.js +8 -6
- package/dist/esm/IssueLanding.js +3 -1
- package/dist/esm/PartnerDetailListing.js +2 -1
- package/dist/esm/QueueDeckExpanded.js +13 -10
- package/dist/esm/View.js +1 -1
- package/dist/esm/getContentCategory-15dcc413.js +9 -0
- package/dist/esm/getSerializers.js +1 -1
- package/dist/esm/{index-f11c723f.js → index-d493a594.js} +1 -1
- package/dist/esm/index.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -45,7 +45,7 @@ require('./GroupDeck.js');
|
|
|
45
45
|
require('react-bootstrap');
|
|
46
46
|
var Button = _interopDefault(require('react-bootstrap/Button'));
|
|
47
47
|
var index$3 = require('./index-5be2866f.js');
|
|
48
|
-
var getSerializers = require('./index-
|
|
48
|
+
var getSerializers = require('./index-94418bc4.js');
|
|
49
49
|
require('./util-f2c1b65b.js');
|
|
50
50
|
require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
51
51
|
require('react-bootstrap/Pagination');
|
package/dist/cjs/GridContent.js
CHANGED
|
@@ -46,6 +46,7 @@ require('./AdSlot.js');
|
|
|
46
46
|
var ADInfeed = require('./ADInfeed-eaa6c661.js');
|
|
47
47
|
var lodash = require('./lodash-fc2922d0.js');
|
|
48
48
|
var ADlgInfeed = require('./ADlgInfeed-f25eb4f7.js');
|
|
49
|
+
var getContentCategory = require('./getContentCategory-f38a4c00.js');
|
|
49
50
|
var get = require('./get-68c52cb1.js');
|
|
50
51
|
require('./AD.js');
|
|
51
52
|
var AuthorComponent = require('./AuthorComponent-bb831b74.js');
|
|
@@ -75,7 +76,8 @@ var GridContent = function (_React$Component) {
|
|
|
75
76
|
query: _this.query,
|
|
76
77
|
currentPage: _this.props.currentPage || 1,
|
|
77
78
|
lgInfeedAd: _this.props.lgInfeedAd ? _this.props.lgInfeedAd : false,
|
|
78
|
-
showCategory: _this.props.showCategory ? _this.props.showCategory : false
|
|
79
|
+
showCategory: _this.props.showCategory ? _this.props.showCategory : false,
|
|
80
|
+
contentCategoryMapping: _this.props.contentCategoryMapping ? contentCategoryMapping : []
|
|
79
81
|
}, _this.loadMore = debounce.debounce_1(function () {
|
|
80
82
|
_this.setState(function (state) {
|
|
81
83
|
var page = state.page,
|
|
@@ -260,7 +262,7 @@ var GridContent = function (_React$Component) {
|
|
|
260
262
|
|
|
261
263
|
inherits._createClass(GridContent, [{
|
|
262
264
|
key: 'cardLoader',
|
|
263
|
-
value: function cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, lgInfeedAd) {
|
|
265
|
+
value: function cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, lgInfeedAd, contentCategoryMapping) {
|
|
264
266
|
var _this2 = this;
|
|
265
267
|
|
|
266
268
|
var lgVar = Math.floor(12 / columns);
|
|
@@ -335,7 +337,7 @@ var GridContent = function (_React$Component) {
|
|
|
335
337
|
padding: '0 .25rem',
|
|
336
338
|
fontSize: '.8rem'
|
|
337
339
|
} },
|
|
338
|
-
|
|
340
|
+
getContentCategory.getContentCategory(row.contentCategory.name, contentCategoryMapping)
|
|
339
341
|
)
|
|
340
342
|
),
|
|
341
343
|
React__default.createElement(
|
|
@@ -669,7 +671,7 @@ var GridContent = function (_React$Component) {
|
|
|
669
671
|
padding: '0 .25rem',
|
|
670
672
|
fontSize: '.8rem'
|
|
671
673
|
} },
|
|
672
|
-
|
|
674
|
+
getContentCategory.getContentCategory(row.contentCategory.name, contentCategoryMapping)
|
|
673
675
|
)
|
|
674
676
|
),
|
|
675
677
|
React__default.createElement(
|
|
@@ -725,7 +727,7 @@ var GridContent = function (_React$Component) {
|
|
|
725
727
|
React__default.createElement(
|
|
726
728
|
Container,
|
|
727
729
|
null,
|
|
728
|
-
this.cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, this.state.lgInfeedAd)
|
|
730
|
+
this.cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, this.state.lgInfeedAd, this.state.contentCategoryMapping)
|
|
729
731
|
)
|
|
730
732
|
) : React__default.createElement(
|
|
731
733
|
React__default.Fragment,
|
|
@@ -733,7 +735,7 @@ var GridContent = function (_React$Component) {
|
|
|
733
735
|
React__default.createElement(
|
|
734
736
|
Container,
|
|
735
737
|
null,
|
|
736
|
-
this.cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, this.state.lgInfeedAd)
|
|
738
|
+
this.cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, this.state.lgInfeedAd, this.state.contentCategoryMapping)
|
|
737
739
|
),
|
|
738
740
|
React__default.createElement(
|
|
739
741
|
'div',
|
package/dist/cjs/IssueLanding.js
CHANGED
|
@@ -37,6 +37,7 @@ require('./AdSlot.js');
|
|
|
37
37
|
require('./ADInfeed-eaa6c661.js');
|
|
38
38
|
require('./lodash-fc2922d0.js');
|
|
39
39
|
require('./ADlgInfeed-f25eb4f7.js');
|
|
40
|
+
require('./getContentCategory-f38a4c00.js');
|
|
40
41
|
require('./AuthorComponent-bb831b74.js');
|
|
41
42
|
require('react-bootstrap');
|
|
42
43
|
var QueueDeckExpanded = require('./QueueDeckExpanded.js');
|
|
@@ -122,7 +123,8 @@ var IssueLanding = function IssueLanding(props) {
|
|
|
122
123
|
rightItems: rightItems,
|
|
123
124
|
showPubInfo: showPubInfo,
|
|
124
125
|
columns: 'rotate',
|
|
125
|
-
variant: 'top'
|
|
126
|
+
variant: 'top',
|
|
127
|
+
contentCategoryMapping: settings.contentCategoryMapping ? settings.contentCategoryMapping : []
|
|
126
128
|
})
|
|
127
129
|
);
|
|
128
130
|
};
|
|
@@ -44,6 +44,7 @@ require('./AdSlot.js');
|
|
|
44
44
|
require('./ADInfeed-eaa6c661.js');
|
|
45
45
|
require('./lodash-fc2922d0.js');
|
|
46
46
|
require('./ADlgInfeed-f25eb4f7.js');
|
|
47
|
+
require('./getContentCategory-f38a4c00.js');
|
|
47
48
|
require('./AuthorComponent-bb831b74.js');
|
|
48
49
|
var BlockContent = require('./BlockContent-88f69acd.js');
|
|
49
50
|
var smoothscroll = require('./smoothscroll-95231a70.js');
|
|
@@ -51,7 +52,7 @@ require('./GroupDeck.js');
|
|
|
51
52
|
require('react-bootstrap');
|
|
52
53
|
var QueueDeckExpanded = require('./QueueDeckExpanded.js');
|
|
53
54
|
require('react-bootstrap/Button');
|
|
54
|
-
var getSerializers = require('./index-
|
|
55
|
+
var getSerializers = require('./index-94418bc4.js');
|
|
55
56
|
require('./util-f2c1b65b.js');
|
|
56
57
|
require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
57
58
|
require('react-bootstrap/Pagination');
|
|
@@ -38,6 +38,7 @@ require('./AdSlot.js');
|
|
|
38
38
|
var ADInfeed = require('./ADInfeed-eaa6c661.js');
|
|
39
39
|
var lodash = require('./lodash-fc2922d0.js');
|
|
40
40
|
var ADlgInfeed = require('./ADlgInfeed-f25eb4f7.js');
|
|
41
|
+
var getContentCategory = require('./getContentCategory-f38a4c00.js');
|
|
41
42
|
var AuthorComponent = require('./AuthorComponent-bb831b74.js');
|
|
42
43
|
var reactBootstrap = require('react-bootstrap');
|
|
43
44
|
|
|
@@ -154,7 +155,7 @@ var checkExternalUrl = function checkExternalUrl(url) {
|
|
|
154
155
|
return new RegExp(['http', 'https'].join('|')).test(url);
|
|
155
156
|
};
|
|
156
157
|
|
|
157
|
-
var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo) {
|
|
158
|
+
var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo, contentCategoryMapping) {
|
|
158
159
|
var numberOfItemsBeforeAd = 6;
|
|
159
160
|
var insertBrandInsightAd = function insertBrandInsightAd(arr, index, newElement) {
|
|
160
161
|
return [].concat(toConsumableArray._toConsumableArray(arr.slice(0, index)), [newElement], toConsumableArray._toConsumableArray(arr.slice(index)));
|
|
@@ -341,7 +342,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
341
342
|
padding: '0 .25rem',
|
|
342
343
|
fontSize: '.8rem'
|
|
343
344
|
} },
|
|
344
|
-
|
|
345
|
+
getContentCategory.getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
345
346
|
),
|
|
346
347
|
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
347
348
|
'p',
|
|
@@ -464,7 +465,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
464
465
|
padding: '0 .25rem',
|
|
465
466
|
fontSize: '.8rem'
|
|
466
467
|
} },
|
|
467
|
-
|
|
468
|
+
getContentCategory.getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
468
469
|
),
|
|
469
470
|
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
470
471
|
'p',
|
|
@@ -596,7 +597,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
596
597
|
padding: '0 .25rem',
|
|
597
598
|
fontSize: '.8rem'
|
|
598
599
|
} },
|
|
599
|
-
|
|
600
|
+
getContentCategory.getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
600
601
|
),
|
|
601
602
|
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
602
603
|
'p',
|
|
@@ -736,7 +737,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
736
737
|
padding: '0 .25rem',
|
|
737
738
|
fontSize: '.8rem'
|
|
738
739
|
} },
|
|
739
|
-
|
|
740
|
+
getContentCategory.getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
740
741
|
),
|
|
741
742
|
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
742
743
|
'p',
|
|
@@ -859,7 +860,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
859
860
|
padding: '0 .25rem',
|
|
860
861
|
fontSize: '.8rem'
|
|
861
862
|
} },
|
|
862
|
-
|
|
863
|
+
getContentCategory.getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
863
864
|
),
|
|
864
865
|
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
865
866
|
'p',
|
|
@@ -991,7 +992,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
991
992
|
padding: '0 .25rem',
|
|
992
993
|
fontSize: '.8rem'
|
|
993
994
|
} },
|
|
994
|
-
|
|
995
|
+
getContentCategory.getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
995
996
|
),
|
|
996
997
|
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
997
998
|
'p',
|
|
@@ -1128,7 +1129,9 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
|
1128
1129
|
_props$lgInfeedAd = props.lgInfeedAd,
|
|
1129
1130
|
lgInfeedAd = _props$lgInfeedAd === undefined ? false : _props$lgInfeedAd,
|
|
1130
1131
|
_props$showPubInfo = props.showPubInfo,
|
|
1131
|
-
showPubInfo = _props$showPubInfo === undefined ? false : _props$showPubInfo
|
|
1132
|
+
showPubInfo = _props$showPubInfo === undefined ? false : _props$showPubInfo,
|
|
1133
|
+
_props$contentCategor = props.contentCategoryMapping,
|
|
1134
|
+
contentCategoryMapping = _props$contentCategor === undefined ? [] : _props$contentCategor;
|
|
1132
1135
|
var initialCurrentPage = props.currentPage,
|
|
1133
1136
|
showPublished = props.showPublished;
|
|
1134
1137
|
|
|
@@ -1245,7 +1248,7 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
|
1245
1248
|
React__default.createElement(
|
|
1246
1249
|
reactBootstrap.Container,
|
|
1247
1250
|
null,
|
|
1248
|
-
cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo)
|
|
1251
|
+
cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo, contentCategoryMapping)
|
|
1249
1252
|
)
|
|
1250
1253
|
),
|
|
1251
1254
|
React__default.createElement(
|
|
@@ -1259,7 +1262,7 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
|
1259
1262
|
React__default.createElement(
|
|
1260
1263
|
reactBootstrap.Container,
|
|
1261
1264
|
null,
|
|
1262
|
-
cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo)
|
|
1265
|
+
cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo, contentCategoryMapping)
|
|
1263
1266
|
),
|
|
1264
1267
|
React__default.createElement(
|
|
1265
1268
|
'div',
|
package/dist/cjs/View.js
CHANGED
|
@@ -47,7 +47,7 @@ require('react-bootstrap');
|
|
|
47
47
|
var Button = _interopDefault(require('react-bootstrap/Button'));
|
|
48
48
|
var defineProperty$1 = require('./defineProperty-55548b25.js');
|
|
49
49
|
var Form = _interopDefault(require('react-bootstrap/Form'));
|
|
50
|
-
var getSerializers = require('./index-
|
|
50
|
+
var getSerializers = require('./index-94418bc4.js');
|
|
51
51
|
require('./util-f2c1b65b.js');
|
|
52
52
|
require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
53
53
|
require('react-bootstrap/Pagination');
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var getContentCategory = function getContentCategory(name, contentCategoryMapping) {
|
|
4
|
+
if (!contentCategoryMapping.includes(name)) {
|
|
5
|
+
return name.slice(0, name.length - 1);
|
|
6
|
+
} else {
|
|
7
|
+
return name;
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
exports.getContentCategory = getContentCategory;
|
|
@@ -40,7 +40,7 @@ require('./smoothscroll-95231a70.js');
|
|
|
40
40
|
require('./GroupDeck.js');
|
|
41
41
|
require('react-bootstrap');
|
|
42
42
|
require('react-bootstrap/Button');
|
|
43
|
-
var getSerializers = require('./index-
|
|
43
|
+
var getSerializers = require('./index-94418bc4.js');
|
|
44
44
|
require('./util-f2c1b65b.js');
|
|
45
45
|
require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
46
46
|
require('react-bootstrap/Pagination');
|
|
@@ -8385,7 +8385,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8385
8385
|
React__default.createElement(
|
|
8386
8386
|
'style',
|
|
8387
8387
|
{ jsx: 'true' },
|
|
8388
|
-
'\n .block-content > div p {\n padding: 0;\n }\n\n h2.article-title {\n padding: 0;\n font-weight: 500;\n }\n h4.article-title {\n padding: 0;\n font-weight: 500;\n }\n h4.prevNext-title {\n padding: 0;\n font-size: 1rem;\n font-weight: 500;\n }\n .article-wrapper {\n border: 1px solid #252525;\n border-radius: 5px;\n padding: 1rem 1rem 0 1rem;\n margin-bottom: 1rem;\n }\n .prevNext-reading {\n margin-top: -10px;\n width: 75%;\n text-align: center;\n background: white;\n border: 1px solid #252525;\n align-self: center;\n display: none;\n }\n .showReading {\n display: block;\n }\n .author-details-wrapper a {\n color: #252525;\n }\n .objective-prevNext-Wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n .objective-title {\n padding: 0 !important;\n }\n .prevNext-thumbnail {\n display: flex;\n flex-direction: column;\n min-width: 225px;\n max-width: 225px;\n overflow: hidden;\n align-items: center;\n object-fit: contain;\n border-radius: 15px;\n }\n .prevNext-thumbnail img {\n height:
|
|
8388
|
+
'\n .block-content > div p {\n padding: 0;\n }\n\n h2.article-title {\n padding: 0;\n font-weight: 500;\n }\n h4.article-title {\n padding: 0;\n font-weight: 500;\n }\n h4.prevNext-title {\n padding: 0;\n font-size: 1rem;\n font-weight: 500;\n }\n .article-wrapper {\n border: 1px solid #252525;\n border-radius: 5px;\n padding: 1rem 1rem 0 1rem;\n margin-bottom: 1rem;\n }\n .prevNext-reading {\n margin-top: -10px;\n width: 75%;\n text-align: center;\n background: white;\n border: 1px solid #252525;\n align-self: center;\n display: none;\n }\n .showReading {\n display: block;\n }\n .author-details-wrapper a {\n color: #252525;\n }\n .objective-prevNext-Wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n .objective-title {\n padding: 0 !important;\n }\n .prevNext-thumbnail {\n display: flex;\n flex-direction: column;\n min-width: 225px;\n max-width: 225px;\n overflow: hidden;\n align-items: center;\n object-fit: contain;\n border-radius: 15px;\n }\n .prevNext-thumbnail img {\n height: 125px;\n object-fit: contain;\n border-radius: 15px;\n }\n .prevNext-summary {\n text-align: center;\n }\n .prevNext-publishDate {\n font-size: 0.75rem;\n margin-top: 0.5rem;\n }\n .prevNext-title {\n padding: 0 !important;\n line-height: 1 !important;\n font-weight: 500;\n }\n .prevNextWrapper {\n display: flex;\n flex-direction: row;\n justify-content: space-evenly;\n flex-wrap: wrap;\n }\n .prevNextWrapper a {\n display: flex;\n flex-direction: column;\n color: #252525;\n align-items: center;\n }\n .prevNextCards {\n max-width: 250px;\n margin-bottom: 1rem;\n }\n @media only screen and (max-width: 568px) {\n .prevNextWrapper {\n flex-direction: column;\n align-items: center;\n }\n .prevNextCards {\n margin-bottom: 2rem;\n }\n }\n @media only screen and (max-width: 568px) {\n }\n '
|
|
8389
8389
|
)
|
|
8390
8390
|
)
|
|
8391
8391
|
);
|
package/dist/cjs/index.js
CHANGED
|
@@ -45,6 +45,7 @@ require('./ADInfeed-eaa6c661.js');
|
|
|
45
45
|
var DeckContent = require('./DeckContent.js');
|
|
46
46
|
require('./lodash-fc2922d0.js');
|
|
47
47
|
require('./ADlgInfeed-f25eb4f7.js');
|
|
48
|
+
require('./getContentCategory-f38a4c00.js');
|
|
48
49
|
require('./get-68c52cb1.js');
|
|
49
50
|
var AD = require('./AD.js');
|
|
50
51
|
require('./AuthorComponent-bb831b74.js');
|
|
@@ -78,7 +79,7 @@ require('react-bootstrap/Form');
|
|
|
78
79
|
require('./index-5be2866f.js');
|
|
79
80
|
require('./js.cookie-a511c430.js');
|
|
80
81
|
var CMEDeck = require('./CMEDeck.js');
|
|
81
|
-
var getSerializers = require('./index-
|
|
82
|
+
var getSerializers = require('./index-94418bc4.js');
|
|
82
83
|
require('./util-f2c1b65b.js');
|
|
83
84
|
require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
84
85
|
require('react-bootstrap/Pagination');
|
|
@@ -39,7 +39,7 @@ import './GroupDeck.js';
|
|
|
39
39
|
import 'react-bootstrap';
|
|
40
40
|
import Button from 'react-bootstrap/Button';
|
|
41
41
|
import { m as momentTimezone } from './index-d2f90501.js';
|
|
42
|
-
import { g as getSerializers } from './index-
|
|
42
|
+
import { g as getSerializers } from './index-d493a594.js';
|
|
43
43
|
import './util-7700fc59.js';
|
|
44
44
|
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
45
45
|
import 'react-bootstrap/Pagination';
|
package/dist/esm/GridContent.js
CHANGED
|
@@ -40,6 +40,7 @@ import './AdSlot.js';
|
|
|
40
40
|
import { A as ADInfeed } from './ADInfeed-c27997a3.js';
|
|
41
41
|
import { l as lodash } from './lodash-17fdfebb.js';
|
|
42
42
|
import { A as ADlgInfeed } from './ADlgInfeed-41c3909c.js';
|
|
43
|
+
import { g as getContentCategory } from './getContentCategory-15dcc413.js';
|
|
43
44
|
import { g as get_1 } from './get-5ee14cda.js';
|
|
44
45
|
import './AD.js';
|
|
45
46
|
import { A as AuthorComponent } from './AuthorComponent-00f13201.js';
|
|
@@ -69,7 +70,8 @@ var GridContent = function (_React$Component) {
|
|
|
69
70
|
query: _this.query,
|
|
70
71
|
currentPage: _this.props.currentPage || 1,
|
|
71
72
|
lgInfeedAd: _this.props.lgInfeedAd ? _this.props.lgInfeedAd : false,
|
|
72
|
-
showCategory: _this.props.showCategory ? _this.props.showCategory : false
|
|
73
|
+
showCategory: _this.props.showCategory ? _this.props.showCategory : false,
|
|
74
|
+
contentCategoryMapping: _this.props.contentCategoryMapping ? contentCategoryMapping : []
|
|
73
75
|
}, _this.loadMore = debounce_1(function () {
|
|
74
76
|
_this.setState(function (state) {
|
|
75
77
|
var page = state.page,
|
|
@@ -254,7 +256,7 @@ var GridContent = function (_React$Component) {
|
|
|
254
256
|
|
|
255
257
|
_createClass(GridContent, [{
|
|
256
258
|
key: 'cardLoader',
|
|
257
|
-
value: function cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, lgInfeedAd) {
|
|
259
|
+
value: function cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, lgInfeedAd, contentCategoryMapping) {
|
|
258
260
|
var _this2 = this;
|
|
259
261
|
|
|
260
262
|
var lgVar = Math.floor(12 / columns);
|
|
@@ -329,7 +331,7 @@ var GridContent = function (_React$Component) {
|
|
|
329
331
|
padding: '0 .25rem',
|
|
330
332
|
fontSize: '.8rem'
|
|
331
333
|
} },
|
|
332
|
-
row.contentCategory.name
|
|
334
|
+
getContentCategory(row.contentCategory.name, contentCategoryMapping)
|
|
333
335
|
)
|
|
334
336
|
),
|
|
335
337
|
React__default.createElement(
|
|
@@ -663,7 +665,7 @@ var GridContent = function (_React$Component) {
|
|
|
663
665
|
padding: '0 .25rem',
|
|
664
666
|
fontSize: '.8rem'
|
|
665
667
|
} },
|
|
666
|
-
row.contentCategory.name
|
|
668
|
+
getContentCategory(row.contentCategory.name, contentCategoryMapping)
|
|
667
669
|
)
|
|
668
670
|
),
|
|
669
671
|
React__default.createElement(
|
|
@@ -719,7 +721,7 @@ var GridContent = function (_React$Component) {
|
|
|
719
721
|
React__default.createElement(
|
|
720
722
|
Container,
|
|
721
723
|
null,
|
|
722
|
-
this.cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, this.state.lgInfeedAd)
|
|
724
|
+
this.cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, this.state.lgInfeedAd, this.state.contentCategoryMapping)
|
|
723
725
|
)
|
|
724
726
|
) : React__default.createElement(
|
|
725
727
|
React__default.Fragment,
|
|
@@ -727,7 +729,7 @@ var GridContent = function (_React$Component) {
|
|
|
727
729
|
React__default.createElement(
|
|
728
730
|
Container,
|
|
729
731
|
null,
|
|
730
|
-
this.cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, this.state.lgInfeedAd)
|
|
732
|
+
this.cardLoader(page, columns, variant, showVideo, VideoPlayer, showBI, brandInsight, this.state.lgInfeedAd, this.state.contentCategoryMapping)
|
|
731
733
|
),
|
|
732
734
|
React__default.createElement(
|
|
733
735
|
'div',
|
package/dist/esm/IssueLanding.js
CHANGED
|
@@ -32,6 +32,7 @@ import './AdSlot.js';
|
|
|
32
32
|
import './ADInfeed-c27997a3.js';
|
|
33
33
|
import './lodash-17fdfebb.js';
|
|
34
34
|
import './ADlgInfeed-41c3909c.js';
|
|
35
|
+
import './getContentCategory-15dcc413.js';
|
|
35
36
|
import './AuthorComponent-00f13201.js';
|
|
36
37
|
import 'react-bootstrap';
|
|
37
38
|
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
@@ -117,7 +118,8 @@ var IssueLanding = function IssueLanding(props) {
|
|
|
117
118
|
rightItems: rightItems,
|
|
118
119
|
showPubInfo: showPubInfo,
|
|
119
120
|
columns: 'rotate',
|
|
120
|
-
variant: 'top'
|
|
121
|
+
variant: 'top',
|
|
122
|
+
contentCategoryMapping: settings.contentCategoryMapping ? settings.contentCategoryMapping : []
|
|
121
123
|
})
|
|
122
124
|
);
|
|
123
125
|
};
|
|
@@ -39,6 +39,7 @@ import './AdSlot.js';
|
|
|
39
39
|
import './ADInfeed-c27997a3.js';
|
|
40
40
|
import './lodash-17fdfebb.js';
|
|
41
41
|
import './ADlgInfeed-41c3909c.js';
|
|
42
|
+
import './getContentCategory-15dcc413.js';
|
|
42
43
|
import './AuthorComponent-00f13201.js';
|
|
43
44
|
import { B as BlockContent } from './BlockContent-a614acdf.js';
|
|
44
45
|
import { s as smoothscroll } from './smoothscroll-4b699764.js';
|
|
@@ -46,7 +47,7 @@ import './GroupDeck.js';
|
|
|
46
47
|
import 'react-bootstrap';
|
|
47
48
|
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
48
49
|
import 'react-bootstrap/Button';
|
|
49
|
-
import { g as getSerializers } from './index-
|
|
50
|
+
import { g as getSerializers } from './index-d493a594.js';
|
|
50
51
|
import './util-7700fc59.js';
|
|
51
52
|
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
52
53
|
import 'react-bootstrap/Pagination';
|
|
@@ -32,6 +32,7 @@ import './AdSlot.js';
|
|
|
32
32
|
import { A as ADInfeed } from './ADInfeed-c27997a3.js';
|
|
33
33
|
import { l as lodash } from './lodash-17fdfebb.js';
|
|
34
34
|
import { A as ADlgInfeed } from './ADlgInfeed-41c3909c.js';
|
|
35
|
+
import { g as getContentCategory } from './getContentCategory-15dcc413.js';
|
|
35
36
|
import { A as AuthorComponent } from './AuthorComponent-00f13201.js';
|
|
36
37
|
import { Container, Media } from 'react-bootstrap';
|
|
37
38
|
|
|
@@ -148,7 +149,7 @@ var checkExternalUrl = function checkExternalUrl(url) {
|
|
|
148
149
|
return new RegExp(['http', 'https'].join('|')).test(url);
|
|
149
150
|
};
|
|
150
151
|
|
|
151
|
-
var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo) {
|
|
152
|
+
var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo, contentCategoryMapping) {
|
|
152
153
|
var numberOfItemsBeforeAd = 6;
|
|
153
154
|
var insertBrandInsightAd = function insertBrandInsightAd(arr, index, newElement) {
|
|
154
155
|
return [].concat(_toConsumableArray(arr.slice(0, index)), [newElement], _toConsumableArray(arr.slice(index)));
|
|
@@ -335,7 +336,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
335
336
|
padding: '0 .25rem',
|
|
336
337
|
fontSize: '.8rem'
|
|
337
338
|
} },
|
|
338
|
-
article.contentCategory.name
|
|
339
|
+
getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
339
340
|
),
|
|
340
341
|
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
341
342
|
'p',
|
|
@@ -458,7 +459,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
458
459
|
padding: '0 .25rem',
|
|
459
460
|
fontSize: '.8rem'
|
|
460
461
|
} },
|
|
461
|
-
article.contentCategory.name
|
|
462
|
+
getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
462
463
|
),
|
|
463
464
|
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
464
465
|
'p',
|
|
@@ -590,7 +591,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
590
591
|
padding: '0 .25rem',
|
|
591
592
|
fontSize: '.8rem'
|
|
592
593
|
} },
|
|
593
|
-
article.contentCategory.name
|
|
594
|
+
getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
594
595
|
),
|
|
595
596
|
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
596
597
|
'p',
|
|
@@ -730,7 +731,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
730
731
|
padding: '0 .25rem',
|
|
731
732
|
fontSize: '.8rem'
|
|
732
733
|
} },
|
|
733
|
-
article.contentCategory.name
|
|
734
|
+
getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
734
735
|
),
|
|
735
736
|
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
736
737
|
'p',
|
|
@@ -853,7 +854,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
853
854
|
padding: '0 .25rem',
|
|
854
855
|
fontSize: '.8rem'
|
|
855
856
|
} },
|
|
856
|
-
article.contentCategory.name
|
|
857
|
+
getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
857
858
|
),
|
|
858
859
|
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
859
860
|
'p',
|
|
@@ -985,7 +986,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
985
986
|
padding: '0 .25rem',
|
|
986
987
|
fontSize: '.8rem'
|
|
987
988
|
} },
|
|
988
|
-
article.contentCategory.name
|
|
989
|
+
getContentCategory(article.contentCategory.name, contentCategoryMapping)
|
|
989
990
|
),
|
|
990
991
|
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
991
992
|
'p',
|
|
@@ -1122,7 +1123,9 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
|
1122
1123
|
_props$lgInfeedAd = props.lgInfeedAd,
|
|
1123
1124
|
lgInfeedAd = _props$lgInfeedAd === undefined ? false : _props$lgInfeedAd,
|
|
1124
1125
|
_props$showPubInfo = props.showPubInfo,
|
|
1125
|
-
showPubInfo = _props$showPubInfo === undefined ? false : _props$showPubInfo
|
|
1126
|
+
showPubInfo = _props$showPubInfo === undefined ? false : _props$showPubInfo,
|
|
1127
|
+
_props$contentCategor = props.contentCategoryMapping,
|
|
1128
|
+
contentCategoryMapping = _props$contentCategor === undefined ? [] : _props$contentCategor;
|
|
1126
1129
|
var initialCurrentPage = props.currentPage,
|
|
1127
1130
|
showPublished = props.showPublished;
|
|
1128
1131
|
|
|
@@ -1239,7 +1242,7 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
|
1239
1242
|
React__default.createElement(
|
|
1240
1243
|
Container,
|
|
1241
1244
|
null,
|
|
1242
|
-
cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo)
|
|
1245
|
+
cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo, contentCategoryMapping)
|
|
1243
1246
|
)
|
|
1244
1247
|
),
|
|
1245
1248
|
React__default.createElement(
|
|
@@ -1253,7 +1256,7 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
|
1253
1256
|
React__default.createElement(
|
|
1254
1257
|
Container,
|
|
1255
1258
|
null,
|
|
1256
|
-
cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo)
|
|
1259
|
+
cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo, contentCategoryMapping)
|
|
1257
1260
|
),
|
|
1258
1261
|
React__default.createElement(
|
|
1259
1262
|
'div',
|
package/dist/esm/View.js
CHANGED
|
@@ -41,7 +41,7 @@ import 'react-bootstrap';
|
|
|
41
41
|
import Button from 'react-bootstrap/Button';
|
|
42
42
|
import { _ as _defineProperty } from './defineProperty-b798470d.js';
|
|
43
43
|
import Form from 'react-bootstrap/Form';
|
|
44
|
-
import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-
|
|
44
|
+
import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-d493a594.js';
|
|
45
45
|
import './util-7700fc59.js';
|
|
46
46
|
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
47
47
|
import 'react-bootstrap/Pagination';
|
|
@@ -38,7 +38,7 @@ import './smoothscroll-4b699764.js';
|
|
|
38
38
|
import './GroupDeck.js';
|
|
39
39
|
import 'react-bootstrap';
|
|
40
40
|
import 'react-bootstrap/Button';
|
|
41
|
-
export { g as default } from './index-
|
|
41
|
+
export { g as default } from './index-d493a594.js';
|
|
42
42
|
import './util-7700fc59.js';
|
|
43
43
|
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
44
44
|
import 'react-bootstrap/Pagination';
|
|
@@ -8378,7 +8378,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8378
8378
|
React__default.createElement(
|
|
8379
8379
|
'style',
|
|
8380
8380
|
{ jsx: 'true' },
|
|
8381
|
-
'\n .block-content > div p {\n padding: 0;\n }\n\n h2.article-title {\n padding: 0;\n font-weight: 500;\n }\n h4.article-title {\n padding: 0;\n font-weight: 500;\n }\n h4.prevNext-title {\n padding: 0;\n font-size: 1rem;\n font-weight: 500;\n }\n .article-wrapper {\n border: 1px solid #252525;\n border-radius: 5px;\n padding: 1rem 1rem 0 1rem;\n margin-bottom: 1rem;\n }\n .prevNext-reading {\n margin-top: -10px;\n width: 75%;\n text-align: center;\n background: white;\n border: 1px solid #252525;\n align-self: center;\n display: none;\n }\n .showReading {\n display: block;\n }\n .author-details-wrapper a {\n color: #252525;\n }\n .objective-prevNext-Wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n .objective-title {\n padding: 0 !important;\n }\n .prevNext-thumbnail {\n display: flex;\n flex-direction: column;\n min-width: 225px;\n max-width: 225px;\n overflow: hidden;\n align-items: center;\n object-fit: contain;\n border-radius: 15px;\n }\n .prevNext-thumbnail img {\n height:
|
|
8381
|
+
'\n .block-content > div p {\n padding: 0;\n }\n\n h2.article-title {\n padding: 0;\n font-weight: 500;\n }\n h4.article-title {\n padding: 0;\n font-weight: 500;\n }\n h4.prevNext-title {\n padding: 0;\n font-size: 1rem;\n font-weight: 500;\n }\n .article-wrapper {\n border: 1px solid #252525;\n border-radius: 5px;\n padding: 1rem 1rem 0 1rem;\n margin-bottom: 1rem;\n }\n .prevNext-reading {\n margin-top: -10px;\n width: 75%;\n text-align: center;\n background: white;\n border: 1px solid #252525;\n align-self: center;\n display: none;\n }\n .showReading {\n display: block;\n }\n .author-details-wrapper a {\n color: #252525;\n }\n .objective-prevNext-Wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n .objective-title {\n padding: 0 !important;\n }\n .prevNext-thumbnail {\n display: flex;\n flex-direction: column;\n min-width: 225px;\n max-width: 225px;\n overflow: hidden;\n align-items: center;\n object-fit: contain;\n border-radius: 15px;\n }\n .prevNext-thumbnail img {\n height: 125px;\n object-fit: contain;\n border-radius: 15px;\n }\n .prevNext-summary {\n text-align: center;\n }\n .prevNext-publishDate {\n font-size: 0.75rem;\n margin-top: 0.5rem;\n }\n .prevNext-title {\n padding: 0 !important;\n line-height: 1 !important;\n font-weight: 500;\n }\n .prevNextWrapper {\n display: flex;\n flex-direction: row;\n justify-content: space-evenly;\n flex-wrap: wrap;\n }\n .prevNextWrapper a {\n display: flex;\n flex-direction: column;\n color: #252525;\n align-items: center;\n }\n .prevNextCards {\n max-width: 250px;\n margin-bottom: 1rem;\n }\n @media only screen and (max-width: 568px) {\n .prevNextWrapper {\n flex-direction: column;\n align-items: center;\n }\n .prevNextCards {\n margin-bottom: 2rem;\n }\n }\n @media only screen and (max-width: 568px) {\n }\n '
|
|
8382
8382
|
)
|
|
8383
8383
|
)
|
|
8384
8384
|
);
|
package/dist/esm/index.js
CHANGED
|
@@ -41,6 +41,7 @@ import './ADInfeed-c27997a3.js';
|
|
|
41
41
|
export { default as DeckContent } from './DeckContent.js';
|
|
42
42
|
import './lodash-17fdfebb.js';
|
|
43
43
|
import './ADlgInfeed-41c3909c.js';
|
|
44
|
+
import './getContentCategory-15dcc413.js';
|
|
44
45
|
import './get-5ee14cda.js';
|
|
45
46
|
export { default as AD } from './AD.js';
|
|
46
47
|
import './AuthorComponent-00f13201.js';
|
|
@@ -74,7 +75,7 @@ import 'react-bootstrap/Form';
|
|
|
74
75
|
import './index-d2f90501.js';
|
|
75
76
|
import './js.cookie-6874175c.js';
|
|
76
77
|
export { default as CMEDeck } from './CMEDeck.js';
|
|
77
|
-
export { g as getSerializers } from './index-
|
|
78
|
+
export { g as getSerializers } from './index-d493a594.js';
|
|
78
79
|
import './util-7700fc59.js';
|
|
79
80
|
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
80
81
|
import 'react-bootstrap/Pagination';
|