@mjhls/mjh-framework 1.0.530 → 1.0.531
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/View.js +5 -5
- package/dist/cjs/getSerializers.js +7 -6
- package/dist/esm/View.js +5 -5
- package/dist/esm/getSerializers.js +7 -6
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/cjs/View.js
CHANGED
|
@@ -481,7 +481,7 @@ var Article = function Article(props) {
|
|
|
481
481
|
React__default.Fragment,
|
|
482
482
|
null,
|
|
483
483
|
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
|
|
484
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
484
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
485
485
|
blocks: [].concat(toConsumableArray._toConsumableArray(body.slice(0, selectedIndex))),
|
|
486
486
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
487
487
|
}, client.config())),
|
|
@@ -498,7 +498,7 @@ var Article = function Article(props) {
|
|
|
498
498
|
React__default.createElement(AdSlot, _extends$1._extends({}, payload.contextualVideoAD, { refreshFlag: false, checkIsAdFound: checkIsVideoAdFound }))
|
|
499
499
|
),
|
|
500
500
|
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
|
|
501
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, drupalLeadSettings, currentPage, false),
|
|
501
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false),
|
|
502
502
|
blocks: [].concat(toConsumableArray._toConsumableArray(body.slice(selectedIndex))),
|
|
503
503
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
504
504
|
}, client.config()))
|
|
@@ -597,7 +597,7 @@ var Article = function Article(props) {
|
|
|
597
597
|
React__default.Fragment,
|
|
598
598
|
null,
|
|
599
599
|
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
|
|
600
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
600
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
601
601
|
blocks: [].concat(toConsumableArray._toConsumableArray(body.slice(0, _selectedIndex2))),
|
|
602
602
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
603
603
|
}, client.config())),
|
|
@@ -608,14 +608,14 @@ var Article = function Article(props) {
|
|
|
608
608
|
React__default.createElement(AdSlot, _extends$1._extends({}, payload.contextualVideoAD, { refreshFlag: false, checkIsAdFound: _checkIsAdFound2 }))
|
|
609
609
|
),
|
|
610
610
|
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
|
|
611
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, drupalLeadSettings, currentPage, false),
|
|
611
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false),
|
|
612
612
|
blocks: [].concat(toConsumableArray._toConsumableArray(body.slice(_selectedIndex2))),
|
|
613
613
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
614
614
|
}, client.config()))
|
|
615
615
|
);
|
|
616
616
|
} else {
|
|
617
617
|
return React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
|
|
618
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, drupalLeadSettings, currentPage, false),
|
|
618
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false),
|
|
619
619
|
blocks: articleBody,
|
|
620
620
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
621
621
|
}, client.config()));
|
|
@@ -7884,13 +7884,14 @@ var getSerializers = function getSerializers() {
|
|
|
7884
7884
|
pageview = props[1],
|
|
7885
7885
|
videoAccountIDs = props[2],
|
|
7886
7886
|
onVote = props[3],
|
|
7887
|
-
|
|
7888
|
-
|
|
7889
|
-
|
|
7887
|
+
showVotes = props[4],
|
|
7888
|
+
drupalLeadSettings = props[5],
|
|
7889
|
+
currentPage = props[6],
|
|
7890
|
+
_props$ = props[7],
|
|
7890
7891
|
autoplay = _props$ === undefined ? false : _props$,
|
|
7891
|
-
_props$2 = props[
|
|
7892
|
+
_props$2 = props[8],
|
|
7892
7893
|
contextualADFlag = _props$2 === undefined ? false : _props$2,
|
|
7893
|
-
articleId = props[
|
|
7894
|
+
articleId = props[9];
|
|
7894
7895
|
|
|
7895
7896
|
return {
|
|
7896
7897
|
types: {
|
|
@@ -7961,7 +7962,7 @@ var getSerializers = function getSerializers() {
|
|
|
7961
7962
|
poll: function poll(_ref12) {
|
|
7962
7963
|
var node = _ref12.node;
|
|
7963
7964
|
|
|
7964
|
-
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, onVote: onVote, getSerializers: getSerializers(props) });
|
|
7965
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
7965
7966
|
},
|
|
7966
7967
|
quiz: function quiz(_ref13) {
|
|
7967
7968
|
var node = _ref13.node;
|
package/dist/esm/View.js
CHANGED
|
@@ -475,7 +475,7 @@ var Article = function Article(props) {
|
|
|
475
475
|
React__default.Fragment,
|
|
476
476
|
null,
|
|
477
477
|
React__default.createElement(BlockContent, _extends({
|
|
478
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
478
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
479
479
|
blocks: [].concat(_toConsumableArray(body.slice(0, selectedIndex))),
|
|
480
480
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
481
481
|
}, client.config())),
|
|
@@ -492,7 +492,7 @@ var Article = function Article(props) {
|
|
|
492
492
|
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: false, checkIsAdFound: checkIsVideoAdFound }))
|
|
493
493
|
),
|
|
494
494
|
React__default.createElement(BlockContent, _extends({
|
|
495
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, drupalLeadSettings, currentPage, false),
|
|
495
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false),
|
|
496
496
|
blocks: [].concat(_toConsumableArray(body.slice(selectedIndex))),
|
|
497
497
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
498
498
|
}, client.config()))
|
|
@@ -591,7 +591,7 @@ var Article = function Article(props) {
|
|
|
591
591
|
React__default.Fragment,
|
|
592
592
|
null,
|
|
593
593
|
React__default.createElement(BlockContent, _extends({
|
|
594
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
594
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
595
595
|
blocks: [].concat(_toConsumableArray(body.slice(0, _selectedIndex2))),
|
|
596
596
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
597
597
|
}, client.config())),
|
|
@@ -602,14 +602,14 @@ var Article = function Article(props) {
|
|
|
602
602
|
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: false, checkIsAdFound: _checkIsAdFound2 }))
|
|
603
603
|
),
|
|
604
604
|
React__default.createElement(BlockContent, _extends({
|
|
605
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, drupalLeadSettings, currentPage, false),
|
|
605
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false),
|
|
606
606
|
blocks: [].concat(_toConsumableArray(body.slice(_selectedIndex2))),
|
|
607
607
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
608
608
|
}, client.config()))
|
|
609
609
|
);
|
|
610
610
|
} else {
|
|
611
611
|
return React__default.createElement(BlockContent, _extends({
|
|
612
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, drupalLeadSettings, currentPage, false),
|
|
612
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false),
|
|
613
613
|
blocks: articleBody,
|
|
614
614
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
615
615
|
}, client.config()));
|
|
@@ -7878,13 +7878,14 @@ var getSerializers = function getSerializers() {
|
|
|
7878
7878
|
pageview = props[1],
|
|
7879
7879
|
videoAccountIDs = props[2],
|
|
7880
7880
|
onVote = props[3],
|
|
7881
|
-
|
|
7882
|
-
|
|
7883
|
-
|
|
7881
|
+
showVotes = props[4],
|
|
7882
|
+
drupalLeadSettings = props[5],
|
|
7883
|
+
currentPage = props[6],
|
|
7884
|
+
_props$ = props[7],
|
|
7884
7885
|
autoplay = _props$ === undefined ? false : _props$,
|
|
7885
|
-
_props$2 = props[
|
|
7886
|
+
_props$2 = props[8],
|
|
7886
7887
|
contextualADFlag = _props$2 === undefined ? false : _props$2,
|
|
7887
|
-
articleId = props[
|
|
7888
|
+
articleId = props[9];
|
|
7888
7889
|
|
|
7889
7890
|
return {
|
|
7890
7891
|
types: {
|
|
@@ -7955,7 +7956,7 @@ var getSerializers = function getSerializers() {
|
|
|
7955
7956
|
poll: function poll(_ref12) {
|
|
7956
7957
|
var node = _ref12.node;
|
|
7957
7958
|
|
|
7958
|
-
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, onVote: onVote, getSerializers: getSerializers(props) });
|
|
7959
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
7959
7960
|
},
|
|
7960
7961
|
quiz: function quiz(_ref13) {
|
|
7961
7962
|
var node = _ref13.node;
|