@mjhls/mjh-framework 1.0.592 → 1.0.594
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/ArticleQueue.js +11 -10
- package/dist/cjs/DeckContent.js +1 -1
- package/dist/cjs/DeckQueue.js +1 -1
- package/dist/cjs/ExternalResources.js +4 -3
- package/dist/cjs/GridContent.js +2 -2
- package/dist/cjs/{InscreenSensor-3aec8492.js → InscreenSensor-e7f3579f.js} +1 -1
- package/dist/cjs/MasterDeck.js +1 -1
- package/dist/cjs/PartnerDetailListing.js +2 -2
- package/dist/cjs/VideoSeriesListing.js +1 -1
- package/dist/cjs/View.js +16 -73
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getSerializers.js +31 -8305
- package/dist/cjs/getSeriesDetail.js +0 -1
- package/dist/cjs/index-e7f86168.js +8562 -0
- package/dist/cjs/index.js +6 -6
- package/dist/cjs/{inherits-14962339.js → inherits-93684212.js} +4 -4
- package/dist/esm/ArticleQueue.js +2 -1
- package/dist/esm/ExternalResources.js +2 -1
- package/dist/esm/GridContent.js +1 -1
- package/dist/esm/PartnerDetailListing.js +1 -1
- package/dist/esm/View.js +3 -60
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getSerializers.js +27 -8301
- package/dist/esm/getSeriesDetail.js +0 -1
- package/dist/esm/index-80cb5ee6.js +8555 -0
- package/dist/esm/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/cjs/ArticleQueue.js
CHANGED
|
@@ -12,7 +12,7 @@ var toConsumableArray = require('./toConsumableArray-ca04303b.js');
|
|
|
12
12
|
require('./_object-pie-68c5bcbc.js');
|
|
13
13
|
var _extends = require('./extends-60837c34.js');
|
|
14
14
|
require('./_object-sap-5e74ba08.js');
|
|
15
|
-
require('./inherits-
|
|
15
|
+
require('./inherits-93684212.js');
|
|
16
16
|
require('./web.dom.iterable-43c3e277.js');
|
|
17
17
|
var _typeof = require('./typeof-1869832c.js');
|
|
18
18
|
require('./_is-array-754e012d.js');
|
|
@@ -38,13 +38,14 @@ require('./asyncToGenerator-8e707718.js');
|
|
|
38
38
|
require('./_set-species-4458e975.js');
|
|
39
39
|
require('./beam-d22818d3.js');
|
|
40
40
|
var AdSlot = require('./AdSlot.js');
|
|
41
|
+
require('./lodash-fc2922d0.js');
|
|
41
42
|
var _arrayMap = require('./_arrayMap-3b4a0f75.js');
|
|
42
43
|
var BlockContent = require('./BlockContent-f942392e.js');
|
|
43
44
|
require('./smoothscroll-95231a70.js');
|
|
44
45
|
require('./GroupDeck.js');
|
|
45
46
|
require('react-bootstrap');
|
|
46
47
|
require('react-bootstrap/Button');
|
|
47
|
-
var getSerializers = require('./
|
|
48
|
+
var getSerializers = require('./index-e7f86168.js');
|
|
48
49
|
require('./util-f2c1b65b.js');
|
|
49
50
|
require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
50
51
|
require('react-bootstrap/Pagination');
|
|
@@ -53,7 +54,7 @@ require('react-share');
|
|
|
53
54
|
var SocialShare = require('./SocialShare.js');
|
|
54
55
|
var keys$1 = require('./keys-a586b7a0.js');
|
|
55
56
|
var Dropdown = _interopDefault(require('react-bootstrap/Dropdown'));
|
|
56
|
-
var InscreenSensor = require('./InscreenSensor-
|
|
57
|
+
var InscreenSensor = require('./InscreenSensor-e7f3579f.js');
|
|
57
58
|
var getKeywords = require('./getKeywords.js');
|
|
58
59
|
|
|
59
60
|
/**
|
|
@@ -792,7 +793,7 @@ var Article = function Article(props) {
|
|
|
792
793
|
React__default.Fragment,
|
|
793
794
|
null,
|
|
794
795
|
React__default.createElement(BlockContent.BlockContent, _extends._extends({
|
|
795
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage, false, contextualADFlag, articleId),
|
|
796
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage, false, contextualADFlag, articleId),
|
|
796
797
|
blocks: [].concat(toConsumableArray._toConsumableArray(body.slice(0, selectedIndex))),
|
|
797
798
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
798
799
|
}, client.config())),
|
|
@@ -809,7 +810,7 @@ var Article = function Article(props) {
|
|
|
809
810
|
React__default.createElement(AdSlot, _extends._extends({}, payload.contextualVideoAD, { refreshFlag: false, checkIsAdFound: checkIsVideoAdFound }))
|
|
810
811
|
),
|
|
811
812
|
React__default.createElement(BlockContent.BlockContent, _extends._extends({
|
|
812
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage, false, undefined, articleId),
|
|
813
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage, false, undefined, articleId),
|
|
813
814
|
blocks: [].concat(toConsumableArray._toConsumableArray(body.slice(selectedIndex))),
|
|
814
815
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
815
816
|
}, client.config()))
|
|
@@ -863,7 +864,7 @@ var Article = function Article(props) {
|
|
|
863
864
|
React__default.Fragment,
|
|
864
865
|
null,
|
|
865
866
|
React__default.createElement(BlockContent.BlockContent, _extends._extends({
|
|
866
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage, false, undefined, articleId),
|
|
867
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage, false, undefined, articleId),
|
|
867
868
|
blocks: [].concat(toConsumableArray._toConsumableArray(body.slice(0, _selectedIndex))),
|
|
868
869
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
869
870
|
}, client.config())),
|
|
@@ -875,7 +876,7 @@ var Article = function Article(props) {
|
|
|
875
876
|
),
|
|
876
877
|
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
877
878
|
React__default.createElement(BlockContent.BlockContent, _extends._extends({
|
|
878
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage, false, undefined, articleId),
|
|
879
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage, false, undefined, articleId),
|
|
879
880
|
blocks: [].concat(toConsumableArray._toConsumableArray(body.slice(_selectedIndex))),
|
|
880
881
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
881
882
|
}, client.config()))
|
|
@@ -906,7 +907,7 @@ var Article = function Article(props) {
|
|
|
906
907
|
React__default.Fragment,
|
|
907
908
|
null,
|
|
908
909
|
React__default.createElement(BlockContent.BlockContent, _extends._extends({
|
|
909
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage, false, contextualADFlag, articleId),
|
|
910
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage, false, contextualADFlag, articleId),
|
|
910
911
|
blocks: [].concat(toConsumableArray._toConsumableArray(body.slice(0, _selectedIndex2))),
|
|
911
912
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
912
913
|
}, client.config())),
|
|
@@ -917,14 +918,14 @@ var Article = function Article(props) {
|
|
|
917
918
|
React__default.createElement(AdSlot, _extends._extends({}, payload.contextualVideoAD, { refreshFlag: false, checkIsAdFound: _checkIsAdFound2 }))
|
|
918
919
|
),
|
|
919
920
|
React__default.createElement(BlockContent.BlockContent, _extends._extends({
|
|
920
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage, false, undefined, articleId),
|
|
921
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage, false, undefined, articleId),
|
|
921
922
|
blocks: [].concat(toConsumableArray._toConsumableArray(body.slice(_selectedIndex2))),
|
|
922
923
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
923
924
|
}, client.config()))
|
|
924
925
|
);
|
|
925
926
|
} else {
|
|
926
927
|
return React__default.createElement(BlockContent.BlockContent, _extends._extends({
|
|
927
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage, false, undefined, articleId),
|
|
928
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage, false, undefined, articleId),
|
|
928
929
|
blocks: articleBody,
|
|
929
930
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
930
931
|
}, client.config()));
|
package/dist/cjs/DeckContent.js
CHANGED
|
@@ -12,7 +12,7 @@ var toConsumableArray = require('./toConsumableArray-ca04303b.js');
|
|
|
12
12
|
require('./_object-pie-68c5bcbc.js');
|
|
13
13
|
var _extends = require('./extends-60837c34.js');
|
|
14
14
|
require('./_object-sap-5e74ba08.js');
|
|
15
|
-
var inherits = require('./inherits-
|
|
15
|
+
var inherits = require('./inherits-93684212.js');
|
|
16
16
|
require('./web.dom.iterable-43c3e277.js');
|
|
17
17
|
require('./typeof-1869832c.js');
|
|
18
18
|
require('./_is-array-754e012d.js');
|
package/dist/cjs/DeckQueue.js
CHANGED
|
@@ -12,7 +12,7 @@ var toConsumableArray = require('./toConsumableArray-ca04303b.js');
|
|
|
12
12
|
require('./_object-pie-68c5bcbc.js');
|
|
13
13
|
var _extends = require('./extends-60837c34.js');
|
|
14
14
|
require('./_object-sap-5e74ba08.js');
|
|
15
|
-
var inherits = require('./inherits-
|
|
15
|
+
var inherits = require('./inherits-93684212.js');
|
|
16
16
|
require('./web.dom.iterable-43c3e277.js');
|
|
17
17
|
require('./typeof-1869832c.js');
|
|
18
18
|
require('./_is-array-754e012d.js');
|
|
@@ -35,13 +35,14 @@ require('./asyncToGenerator-8e707718.js');
|
|
|
35
35
|
require('./_set-species-4458e975.js');
|
|
36
36
|
require('./beam-d22818d3.js');
|
|
37
37
|
require('./AdSlot.js');
|
|
38
|
+
require('./lodash-fc2922d0.js');
|
|
38
39
|
var BlockContent = require('./BlockContent-f942392e.js');
|
|
39
40
|
require('./smoothscroll-95231a70.js');
|
|
40
41
|
require('./GroupDeck.js');
|
|
41
42
|
require('react-bootstrap');
|
|
42
43
|
var Button = _interopDefault(require('react-bootstrap/Button'));
|
|
43
44
|
var index$3 = require('./index-5be2866f.js');
|
|
44
|
-
var getSerializers = require('./
|
|
45
|
+
var getSerializers = require('./index-e7f86168.js');
|
|
45
46
|
require('./util-f2c1b65b.js');
|
|
46
47
|
require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
47
48
|
require('react-bootstrap/Pagination');
|
|
@@ -116,7 +117,7 @@ var ExternalResources = function ExternalResources(props) {
|
|
|
116
117
|
r.intro && React__default.createElement(
|
|
117
118
|
'div',
|
|
118
119
|
{ id: 'intro' },
|
|
119
|
-
React__default.createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers(client), blocks: r.intro }, client.config()))
|
|
120
|
+
React__default.createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers.getSerializers(client), blocks: r.intro }, client.config()))
|
|
120
121
|
),
|
|
121
122
|
React__default.createElement(
|
|
122
123
|
'div',
|
|
@@ -140,7 +141,7 @@ var ExternalResources = function ExternalResources(props) {
|
|
|
140
141
|
{ style: { fontWeight: 'bold' } },
|
|
141
142
|
'Speakers:'
|
|
142
143
|
),
|
|
143
|
-
React__default.createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers(client), blocks: r.speakers }, client.config()))
|
|
144
|
+
React__default.createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers.getSerializers(client), blocks: r.speakers }, client.config()))
|
|
144
145
|
),
|
|
145
146
|
r.location && React__default.createElement(
|
|
146
147
|
'div',
|
package/dist/cjs/GridContent.js
CHANGED
|
@@ -12,7 +12,7 @@ var toConsumableArray = require('./toConsumableArray-ca04303b.js');
|
|
|
12
12
|
require('./_object-pie-68c5bcbc.js');
|
|
13
13
|
var _extends = require('./extends-60837c34.js');
|
|
14
14
|
require('./_object-sap-5e74ba08.js');
|
|
15
|
-
var inherits = require('./inherits-
|
|
15
|
+
var inherits = require('./inherits-93684212.js');
|
|
16
16
|
require('./web.dom.iterable-43c3e277.js');
|
|
17
17
|
require('./typeof-1869832c.js');
|
|
18
18
|
require('./_is-array-754e012d.js');
|
|
@@ -389,7 +389,7 @@ var GridContent = function (_React$Component) {
|
|
|
389
389
|
// Checking lgInfeedAd flag in desktop view ( window >= 1400px ).
|
|
390
390
|
if (lgInfeedAd && typeof window !== 'undefined' && window.innerWidth >= 1400) {
|
|
391
391
|
brandInsight.interval = 8;
|
|
392
|
-
} else {
|
|
392
|
+
} else if (typeof window !== 'undefined' && window.innerWidth < 1400) {
|
|
393
393
|
brandInsight.interval = 5;
|
|
394
394
|
posts = data;
|
|
395
395
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
4
|
|
|
5
5
|
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
6
|
-
var inherits = require('./inherits-
|
|
6
|
+
var inherits = require('./inherits-93684212.js');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var React__default = _interopDefault(React);
|
|
9
9
|
var isSymbol = require('./isSymbol-488934a7.js');
|
package/dist/cjs/MasterDeck.js
CHANGED
|
@@ -12,7 +12,7 @@ var toConsumableArray = require('./toConsumableArray-ca04303b.js');
|
|
|
12
12
|
require('./_object-pie-68c5bcbc.js');
|
|
13
13
|
var _extends = require('./extends-60837c34.js');
|
|
14
14
|
require('./_object-sap-5e74ba08.js');
|
|
15
|
-
var inherits = require('./inherits-
|
|
15
|
+
var inherits = require('./inherits-93684212.js');
|
|
16
16
|
require('./web.dom.iterable-43c3e277.js');
|
|
17
17
|
require('./typeof-1869832c.js');
|
|
18
18
|
require('./_is-array-754e012d.js');
|
|
@@ -48,7 +48,7 @@ require('./GroupDeck.js');
|
|
|
48
48
|
require('react-bootstrap');
|
|
49
49
|
var QueueDeckExpanded = require('./QueueDeckExpanded.js');
|
|
50
50
|
require('react-bootstrap/Button');
|
|
51
|
-
var getSerializers = require('./
|
|
51
|
+
var getSerializers = require('./index-e7f86168.js');
|
|
52
52
|
require('./util-f2c1b65b.js');
|
|
53
53
|
require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
54
54
|
require('react-bootstrap/Pagination');
|
|
@@ -207,7 +207,7 @@ var PartnerDetails = function PartnerDetails(_ref) {
|
|
|
207
207
|
partnerDetails.description && React__default.createElement(
|
|
208
208
|
'div',
|
|
209
209
|
{ className: 'block-content-partners my-4', style: { maxWidth: '100%', paddingLeft: '2rem', flex: '1 1 auto' } },
|
|
210
|
-
React__default.createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers(client), blocks: partnerDetails.description, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
210
|
+
React__default.createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers.getSerializers(client), blocks: partnerDetails.description, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
211
211
|
)
|
|
212
212
|
),
|
|
213
213
|
partnerDetails.affiliates && partnerDetails.affiliates[0] && partnerDetails.affiliates[0].slides && React__default.createElement(
|
|
@@ -9,7 +9,7 @@ require('./_library-dd23b178.js');
|
|
|
9
9
|
require('./_object-pie-68c5bcbc.js');
|
|
10
10
|
var _extends = require('./extends-60837c34.js');
|
|
11
11
|
require('./_object-sap-5e74ba08.js');
|
|
12
|
-
var inherits = require('./inherits-
|
|
12
|
+
var inherits = require('./inherits-93684212.js');
|
|
13
13
|
require('./web.dom.iterable-43c3e277.js');
|
|
14
14
|
require('./typeof-1869832c.js');
|
|
15
15
|
require('./_is-array-754e012d.js');
|
package/dist/cjs/View.js
CHANGED
|
@@ -12,9 +12,9 @@ var toConsumableArray = require('./toConsumableArray-ca04303b.js');
|
|
|
12
12
|
require('./_object-pie-68c5bcbc.js');
|
|
13
13
|
var _extends = require('./extends-60837c34.js');
|
|
14
14
|
require('./_object-sap-5e74ba08.js');
|
|
15
|
-
var inherits = require('./inherits-
|
|
15
|
+
var inherits = require('./inherits-93684212.js');
|
|
16
16
|
require('./web.dom.iterable-43c3e277.js');
|
|
17
|
-
var _typeof
|
|
17
|
+
var _typeof = require('./typeof-1869832c.js');
|
|
18
18
|
require('./_is-array-754e012d.js');
|
|
19
19
|
var React = require('react');
|
|
20
20
|
var React__default = _interopDefault(React);
|
|
@@ -39,12 +39,13 @@ var asyncToGenerator = require('./asyncToGenerator-8e707718.js');
|
|
|
39
39
|
require('./_set-species-4458e975.js');
|
|
40
40
|
require('./beam-d22818d3.js');
|
|
41
41
|
var AdSlot = require('./AdSlot.js');
|
|
42
|
+
require('./lodash-fc2922d0.js');
|
|
42
43
|
var BlockContent = require('./BlockContent-f942392e.js');
|
|
43
44
|
require('./smoothscroll-95231a70.js');
|
|
44
45
|
require('./GroupDeck.js');
|
|
45
|
-
|
|
46
|
+
require('react-bootstrap');
|
|
46
47
|
var Button = _interopDefault(require('react-bootstrap/Button'));
|
|
47
|
-
var getSerializers = require('./
|
|
48
|
+
var getSerializers = require('./index-e7f86168.js');
|
|
48
49
|
require('./util-f2c1b65b.js');
|
|
49
50
|
require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
50
51
|
require('react-bootstrap/Pagination');
|
|
@@ -55,7 +56,7 @@ var Form = _interopDefault(require('react-bootstrap/Form'));
|
|
|
55
56
|
var FormControl = _interopDefault(require('react-bootstrap/FormControl'));
|
|
56
57
|
var keys$1 = require('./keys-a586b7a0.js');
|
|
57
58
|
var Dropdown = _interopDefault(require('react-bootstrap/Dropdown'));
|
|
58
|
-
var InscreenSensor = require('./InscreenSensor-
|
|
59
|
+
var InscreenSensor = require('./InscreenSensor-e7f3579f.js');
|
|
59
60
|
var getKeywords = require('./getKeywords.js');
|
|
60
61
|
var getSeriesDetail = require('./getSeriesDetail.js');
|
|
61
62
|
require('nookies');
|
|
@@ -64,64 +65,6 @@ var getRelatedArticle = require('./getRelatedArticle.js');
|
|
|
64
65
|
var getTargeting = require('./getTargeting-b15993cb.js');
|
|
65
66
|
var urlFor = require('./urlFor.js');
|
|
66
67
|
|
|
67
|
-
var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
68
|
-
var defaultUrl = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 'authors';
|
|
69
|
-
var biography = arguments[5];
|
|
70
|
-
var profileImage = arguments[6];
|
|
71
|
-
|
|
72
|
-
if (authorName && authorURL) {
|
|
73
|
-
return React__default.createElement(
|
|
74
|
-
'span',
|
|
75
|
-
null,
|
|
76
|
-
React__default.createElement(
|
|
77
|
-
'a',
|
|
78
|
-
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
79
|
-
authorName
|
|
80
|
-
),
|
|
81
|
-
React__default.createElement(
|
|
82
|
-
reactBootstrap.Card,
|
|
83
|
-
{ className: 'author-details-card-' + index },
|
|
84
|
-
React__default.createElement(
|
|
85
|
-
reactBootstrap.Row,
|
|
86
|
-
null,
|
|
87
|
-
profileImage && React__default.createElement(
|
|
88
|
-
reactBootstrap.Col,
|
|
89
|
-
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
90
|
-
React__default.createElement(reactBootstrap.Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
91
|
-
),
|
|
92
|
-
React__default.createElement(
|
|
93
|
-
reactBootstrap.Col,
|
|
94
|
-
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
95
|
-
React__default.createElement(
|
|
96
|
-
'h5',
|
|
97
|
-
null,
|
|
98
|
-
authorName
|
|
99
|
-
),
|
|
100
|
-
React__default.createElement(
|
|
101
|
-
'p',
|
|
102
|
-
null,
|
|
103
|
-
biography
|
|
104
|
-
)
|
|
105
|
-
)
|
|
106
|
-
)
|
|
107
|
-
),
|
|
108
|
-
React__default.createElement(
|
|
109
|
-
'style',
|
|
110
|
-
{ jsx: 'true' },
|
|
111
|
-
'\n .author-details-card-' + index + ' {\n display: none;\n position: absolute;\n width: 90%;\n max-width: 450px;\n z-index: 9999;\n }\n .author-details-card-' + index + ' h5 {\n font-weight: 500;\n }\n .author-details-link-' + index + ':hover + .author-details-card-' + index + ', .author-details-card-' + index + ':hover {\n display: block;\n box-shadow: 0px 0px 5px #aaa;\n padding: 15px;\n border-radius: 5px;\n }\n '
|
|
112
|
-
),
|
|
113
|
-
length !== index + 1 && ' , '
|
|
114
|
-
);
|
|
115
|
-
} else if (authorName) {
|
|
116
|
-
return React__default.createElement(
|
|
117
|
-
'span',
|
|
118
|
-
{ key: index },
|
|
119
|
-
authorName,
|
|
120
|
-
length !== index + 1 && ' , '
|
|
121
|
-
);
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
|
|
125
68
|
var getArticleSummary = function getArticleSummary(article) {
|
|
126
69
|
if (article.summary && article.summary.length > 0) {
|
|
127
70
|
return article.summary;
|
|
@@ -208,7 +151,7 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
208
151
|
|
|
209
152
|
var findIndex = function findIndex(arr) {
|
|
210
153
|
var indexes = [];
|
|
211
|
-
if ((typeof arr === 'undefined' ? 'undefined' : _typeof
|
|
154
|
+
if ((typeof arr === 'undefined' ? 'undefined' : _typeof._typeof(arr)) === 'object') {
|
|
212
155
|
var _iteratorNormalCompletion = true;
|
|
213
156
|
var _didIteratorError = false;
|
|
214
157
|
var _iteratorError = undefined;
|
|
@@ -389,7 +332,7 @@ var Article = function Article(props) {
|
|
|
389
332
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
390
333
|
if (biography) {
|
|
391
334
|
return React__default.createElement(BlockContent.BlockContent, _extends._extends({
|
|
392
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
335
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
393
336
|
blocks: [biography]
|
|
394
337
|
}, client.config()));
|
|
395
338
|
}
|
|
@@ -525,7 +468,7 @@ var Article = function Article(props) {
|
|
|
525
468
|
React__default.Fragment,
|
|
526
469
|
null,
|
|
527
470
|
React__default.createElement(BlockContent.BlockContent, _extends._extends({
|
|
528
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
471
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
529
472
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(0, selectedIndex))),
|
|
530
473
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
531
474
|
}, client.config())),
|
|
@@ -542,7 +485,7 @@ var Article = function Article(props) {
|
|
|
542
485
|
React__default.createElement(AdSlot, _extends._extends({}, payload.contextualVideoAD, { refreshFlag: false, checkIsAdFound: checkIsVideoAdFound }))
|
|
543
486
|
),
|
|
544
487
|
React__default.createElement(BlockContent.BlockContent, _extends._extends({
|
|
545
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false),
|
|
488
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false),
|
|
546
489
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(selectedIndex))),
|
|
547
490
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
548
491
|
}, client.config()))
|
|
@@ -597,7 +540,7 @@ var Article = function Article(props) {
|
|
|
597
540
|
React__default.Fragment,
|
|
598
541
|
null,
|
|
599
542
|
React__default.createElement(BlockContent.BlockContent, _extends._extends({
|
|
600
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
543
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
601
544
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(0, _selectedIndex))),
|
|
602
545
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
603
546
|
}, client.config())),
|
|
@@ -609,7 +552,7 @@ var Article = function Article(props) {
|
|
|
609
552
|
),
|
|
610
553
|
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
611
554
|
React__default.createElement(BlockContent.BlockContent, _extends._extends({
|
|
612
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false),
|
|
555
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false),
|
|
613
556
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(_selectedIndex))),
|
|
614
557
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
615
558
|
}, client.config()))
|
|
@@ -640,7 +583,7 @@ var Article = function Article(props) {
|
|
|
640
583
|
React__default.Fragment,
|
|
641
584
|
null,
|
|
642
585
|
React__default.createElement(BlockContent.BlockContent, _extends._extends({
|
|
643
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
586
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
644
587
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(0, _selectedIndex2))),
|
|
645
588
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
646
589
|
}, client.config())),
|
|
@@ -651,14 +594,14 @@ var Article = function Article(props) {
|
|
|
651
594
|
React__default.createElement(AdSlot, _extends._extends({}, payload.contextualVideoAD, { refreshFlag: false, checkIsAdFound: _checkIsAdFound2 }))
|
|
652
595
|
),
|
|
653
596
|
React__default.createElement(BlockContent.BlockContent, _extends._extends({
|
|
654
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false),
|
|
597
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false),
|
|
655
598
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(_selectedIndex2))),
|
|
656
599
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
657
600
|
}, client.config()))
|
|
658
601
|
);
|
|
659
602
|
} else {
|
|
660
603
|
return React__default.createElement(BlockContent.BlockContent, _extends._extends({
|
|
661
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false),
|
|
604
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false),
|
|
662
605
|
blocks: articleBody,
|
|
663
606
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
664
607
|
}, client.config()));
|
|
@@ -747,7 +690,7 @@ var Article = function Article(props) {
|
|
|
747
690
|
return React__default.createElement(
|
|
748
691
|
'span',
|
|
749
692
|
{ key: index },
|
|
750
|
-
renderAuthor(authorDetail.displayName, authorDetail.url, index, authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor(props.client, authorDetail.profileImage).url())
|
|
693
|
+
getSerializers.renderAuthor(authorDetail.displayName, authorDetail.url, index, authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor(props.client, authorDetail.profileImage).url())
|
|
751
694
|
);
|
|
752
695
|
}),
|
|
753
696
|
React__default.createElement(
|
package/dist/cjs/getQuery.js
CHANGED
|
@@ -14,7 +14,7 @@ var getQuery = function getQuery(type) {
|
|
|
14
14
|
case 'related':
|
|
15
15
|
return '*[\n _type == "article"\n && defined(title)\n && defined(url)\n && !(_id in path("drafts.**"))\n && is_visible == true\n && published <= now()\n && passwordLock!=true\n && taxonomyMapping[]._ref in $taxonomy\n && taxonomyMapping[].disableAds != \'true\'\n && contentCategory->.name != \'Poll\'\n && contentCategory->.name != \'Slideshows\'\n && contentCategory->.disableAds != \'true\'\n && ExcludeFromInfiniteScroll !=true\n && url.current != $url\n && !defined(body[].videos)\n ' + conditions + '\n ]| order(published desc)[$index]{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography },\n body[] {\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n disableAds\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n \'path\': identifier.current\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url\n }\n }';
|
|
16
16
|
case 'article':
|
|
17
|
-
return '*[\n _type == "article"\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && url.current == $url\n ' + conditions + '\n ][0]{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography },\n body[] {\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n medias[]{ \n ...,\n upload_doc { \n _type,\n asset-> \n } \n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n ...,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n \'path\': identifier.current\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n volume,\n \'issueNumber\': number,\n \'articleSource\': source,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url\n }\n\n }';
|
|
17
|
+
return '*[\n _type == "article"\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && url.current == $url\n ' + conditions + '\n ][0]{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography },\n body[] {\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n medias[]{ \n ...,\n upload_doc { \n _type,\n asset-> \n } \n },\n articles[]{\n ...,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography },\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n ...,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n \'path\': identifier.current\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n volume,\n \'issueNumber\': number,\n \'articleSource\': source,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url\n }\n\n }';
|
|
18
18
|
case 'publication':
|
|
19
19
|
return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issues\': *[_type == \'publication\'\n && is_visible\n && references(^._id)\n && defined(identifier)] {\n ...,\n pdf{asset->}\n } | order(year desc, month desc)\n }';
|
|
20
20
|
case 'issue':
|