@mjhls/mjh-framework 1.0.527 → 1.0.529
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/AD300x250.js +1 -1
- package/dist/cjs/AD300x250x600.js +2 -2
- package/dist/cjs/View.js +10 -10
- package/dist/esm/AD300x250.js +1 -1
- package/dist/esm/AD300x250x600.js +2 -2
- package/dist/esm/View.js +10 -10
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/cjs/AD300x250.js
CHANGED
|
@@ -50,7 +50,7 @@ var AD300x250 = function AD300x250(_ref) {
|
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
var browserSizes = [[300, 250], [300, 100]];
|
|
53
|
-
var mobileSizes = [[300,
|
|
53
|
+
var mobileSizes = [[300, 250], [300, 100]];
|
|
54
54
|
|
|
55
55
|
return React__default['default'].createElement(AdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: adTargeting, className: 'AD300x250', sizes: mobileView ? mobileSizes : browserSizes });
|
|
56
56
|
};
|
|
@@ -57,13 +57,13 @@ var AD300x250x600 = function AD300x250x600(_ref) {
|
|
|
57
57
|
sizes: [[300, 100], [300, 250]]
|
|
58
58
|
}, {
|
|
59
59
|
viewport: [1, 1],
|
|
60
|
-
sizes: [[300,
|
|
60
|
+
sizes: [[300, 100], [300, 250]]
|
|
61
61
|
}] : [{
|
|
62
62
|
viewport: [768, 0],
|
|
63
63
|
sizes: [[300, 100], [300, 250], [300, 600]]
|
|
64
64
|
}, {
|
|
65
65
|
viewport: [1, 1],
|
|
66
|
-
sizes: [[300,
|
|
66
|
+
sizes: [[300, 100], [300, 250]]
|
|
67
67
|
}];
|
|
68
68
|
|
|
69
69
|
return React__default['default'].createElement(AdSlot, {
|
package/dist/cjs/View.js
CHANGED
|
@@ -240,7 +240,7 @@ var Article = function Article(props) {
|
|
|
240
240
|
case 6:
|
|
241
241
|
result = _context.sent;
|
|
242
242
|
|
|
243
|
-
|
|
243
|
+
setArticleBody(result.body);
|
|
244
244
|
|
|
245
245
|
console.log('Voted successfully');
|
|
246
246
|
_context.next = 12;
|
|
@@ -278,7 +278,7 @@ var Article = function Article(props) {
|
|
|
278
278
|
published = _props$article.published,
|
|
279
279
|
_props$article$showPu = _props$article.showPublished,
|
|
280
280
|
showPublished = _props$article$showPu === undefined ? true : _props$article$showPu,
|
|
281
|
-
|
|
281
|
+
body = _props$article.body,
|
|
282
282
|
thumbnail = _props$article.thumbnail,
|
|
283
283
|
content_placement = _props$article.content_placement,
|
|
284
284
|
_props$article$url = _props$article.url;
|
|
@@ -340,10 +340,10 @@ var Article = function Article(props) {
|
|
|
340
340
|
passwordKey = _useState8[0],
|
|
341
341
|
setPasswordKey = _useState8[1];
|
|
342
342
|
|
|
343
|
-
var _useState9 = React.useState(
|
|
343
|
+
var _useState9 = React.useState(body),
|
|
344
344
|
_useState10 = slicedToArray._slicedToArray(_useState9, 2),
|
|
345
|
-
|
|
346
|
-
|
|
345
|
+
articleBody = _useState10[0],
|
|
346
|
+
setArticleBody = _useState10[1];
|
|
347
347
|
|
|
348
348
|
var isCutomPage = function isCutomPage(article) {
|
|
349
349
|
var url = article.url.current;
|
|
@@ -486,7 +486,7 @@ var Article = function Article(props) {
|
|
|
486
486
|
React__default['default'].Fragment,
|
|
487
487
|
null,
|
|
488
488
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
489
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote,
|
|
489
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
490
490
|
blocks: [].concat(toConsumableArray._toConsumableArray(body.slice(0, selectedIndex))),
|
|
491
491
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
492
492
|
}, client.config())),
|
|
@@ -503,7 +503,7 @@ var Article = function Article(props) {
|
|
|
503
503
|
React__default['default'].createElement(AdSlot, _extends._extends({}, payload.contextualVideoAD, { refreshFlag: false, checkIsAdFound: checkIsVideoAdFound }))
|
|
504
504
|
),
|
|
505
505
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
506
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote,
|
|
506
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, drupalLeadSettings, currentPage, false),
|
|
507
507
|
blocks: [].concat(toConsumableArray._toConsumableArray(body.slice(selectedIndex))),
|
|
508
508
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
509
509
|
}, client.config()))
|
|
@@ -602,7 +602,7 @@ var Article = function Article(props) {
|
|
|
602
602
|
React__default['default'].Fragment,
|
|
603
603
|
null,
|
|
604
604
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
605
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote,
|
|
605
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
606
606
|
blocks: [].concat(toConsumableArray._toConsumableArray(body.slice(0, _selectedIndex2))),
|
|
607
607
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
608
608
|
}, client.config())),
|
|
@@ -613,14 +613,14 @@ var Article = function Article(props) {
|
|
|
613
613
|
React__default['default'].createElement(AdSlot, _extends._extends({}, payload.contextualVideoAD, { refreshFlag: false, checkIsAdFound: _checkIsAdFound2 }))
|
|
614
614
|
),
|
|
615
615
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
616
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote,
|
|
616
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, drupalLeadSettings, currentPage, false),
|
|
617
617
|
blocks: [].concat(toConsumableArray._toConsumableArray(body.slice(_selectedIndex2))),
|
|
618
618
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
619
619
|
}, client.config()))
|
|
620
620
|
);
|
|
621
621
|
} else {
|
|
622
622
|
return React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
623
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote,
|
|
623
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, drupalLeadSettings, currentPage, false),
|
|
624
624
|
blocks: articleBody,
|
|
625
625
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
626
626
|
}, client.config()));
|
package/dist/esm/AD300x250.js
CHANGED
|
@@ -44,7 +44,7 @@ var AD300x250 = function AD300x250(_ref) {
|
|
|
44
44
|
};
|
|
45
45
|
|
|
46
46
|
var browserSizes = [[300, 250], [300, 100]];
|
|
47
|
-
var mobileSizes = [[300,
|
|
47
|
+
var mobileSizes = [[300, 250], [300, 100]];
|
|
48
48
|
|
|
49
49
|
return React.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: adTargeting, className: 'AD300x250', sizes: mobileView ? mobileSizes : browserSizes });
|
|
50
50
|
};
|
|
@@ -51,13 +51,13 @@ var AD300x250x600 = function AD300x250x600(_ref) {
|
|
|
51
51
|
sizes: [[300, 100], [300, 250]]
|
|
52
52
|
}, {
|
|
53
53
|
viewport: [1, 1],
|
|
54
|
-
sizes: [[300,
|
|
54
|
+
sizes: [[300, 100], [300, 250]]
|
|
55
55
|
}] : [{
|
|
56
56
|
viewport: [768, 0],
|
|
57
57
|
sizes: [[300, 100], [300, 250], [300, 600]]
|
|
58
58
|
}, {
|
|
59
59
|
viewport: [1, 1],
|
|
60
|
-
sizes: [[300,
|
|
60
|
+
sizes: [[300, 100], [300, 250]]
|
|
61
61
|
}];
|
|
62
62
|
|
|
63
63
|
return React.createElement(DFPAdSlot, {
|
package/dist/esm/View.js
CHANGED
|
@@ -229,7 +229,7 @@ var Article = function Article(props) {
|
|
|
229
229
|
case 6:
|
|
230
230
|
result = _context.sent;
|
|
231
231
|
|
|
232
|
-
|
|
232
|
+
setArticleBody(result.body);
|
|
233
233
|
|
|
234
234
|
console.log('Voted successfully');
|
|
235
235
|
_context.next = 12;
|
|
@@ -267,7 +267,7 @@ var Article = function Article(props) {
|
|
|
267
267
|
published = _props$article.published,
|
|
268
268
|
_props$article$showPu = _props$article.showPublished,
|
|
269
269
|
showPublished = _props$article$showPu === undefined ? true : _props$article$showPu,
|
|
270
|
-
|
|
270
|
+
body = _props$article.body,
|
|
271
271
|
thumbnail = _props$article.thumbnail,
|
|
272
272
|
content_placement = _props$article.content_placement,
|
|
273
273
|
_props$article$url = _props$article.url;
|
|
@@ -329,10 +329,10 @@ var Article = function Article(props) {
|
|
|
329
329
|
passwordKey = _useState8[0],
|
|
330
330
|
setPasswordKey = _useState8[1];
|
|
331
331
|
|
|
332
|
-
var _useState9 = useState(
|
|
332
|
+
var _useState9 = useState(body),
|
|
333
333
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
334
|
-
|
|
335
|
-
|
|
334
|
+
articleBody = _useState10[0],
|
|
335
|
+
setArticleBody = _useState10[1];
|
|
336
336
|
|
|
337
337
|
var isCutomPage = function isCutomPage(article) {
|
|
338
338
|
var url = article.url.current;
|
|
@@ -475,7 +475,7 @@ var Article = function Article(props) {
|
|
|
475
475
|
React.Fragment,
|
|
476
476
|
null,
|
|
477
477
|
React.createElement(BlockContent, _extends({
|
|
478
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote,
|
|
478
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, 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.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: false, checkIsAdFound: checkIsVideoAdFound }))
|
|
493
493
|
),
|
|
494
494
|
React.createElement(BlockContent, _extends({
|
|
495
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote,
|
|
495
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, 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.Fragment,
|
|
592
592
|
null,
|
|
593
593
|
React.createElement(BlockContent, _extends({
|
|
594
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote,
|
|
594
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, 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.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: false, checkIsAdFound: _checkIsAdFound2 }))
|
|
603
603
|
),
|
|
604
604
|
React.createElement(BlockContent, _extends({
|
|
605
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote,
|
|
605
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, 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.createElement(BlockContent, _extends({
|
|
612
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote,
|
|
612
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, drupalLeadSettings, currentPage, false),
|
|
613
613
|
blocks: articleBody,
|
|
614
614
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
615
615
|
}, client.config()));
|