@mjhls/mjh-framework 1.0.483 → 1.0.485
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/AD728x90.js +2 -2
- package/dist/cjs/ArticleQueue.js +2 -0
- package/dist/cjs/View.js +6 -2
- package/dist/cjs/getSerializers.js +1 -1
- package/dist/esm/AD728x90.js +2 -2
- package/dist/esm/ArticleQueue.js +2 -0
- package/dist/esm/View.js +6 -2
- package/dist/esm/getSerializers.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/cjs/AD728x90.js
CHANGED
|
@@ -39,7 +39,7 @@ var AD728x90 = function AD728x90(_ref) {
|
|
|
39
39
|
}
|
|
40
40
|
//If ad rendered, should turn this to true and enable sticky position
|
|
41
41
|
|
|
42
|
-
var _useState = React.useState(
|
|
42
|
+
var _useState = React.useState(true),
|
|
43
43
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
44
44
|
stickyAd = _useState2[0],
|
|
45
45
|
setStickyAd = _useState2[1];
|
|
@@ -116,7 +116,7 @@ var AD728x90 = function AD728x90(_ref) {
|
|
|
116
116
|
React__default.createElement(
|
|
117
117
|
'style',
|
|
118
118
|
{ jsx: 'true' },
|
|
119
|
-
'\n .leaderboard-ad-wrapper {\n min-height: 90px;\n }\n @media screen and (max-width: 768px) {\n .leaderboard-ad-wrapper {\n min-height: calc(50px + 1rem);\n }\n }\n '
|
|
119
|
+
'\n .leaderboard-ad-wrapper {\n min-height: 90px;\n }\n @media screen and (max-width: 768px) {\n .leaderboard-ad-wrapper {\n min-height: calc(50px + 1rem);\n }\n .leaderboard-ad-wrapper .AD728x90 div[id*=\'google_ads_iframe\']:empty {\n height: 0!important;\n }\n }\n '
|
|
120
120
|
)
|
|
121
121
|
);
|
|
122
122
|
};
|
package/dist/cjs/ArticleQueue.js
CHANGED
|
@@ -361,6 +361,8 @@ var Article = function Article(props) {
|
|
|
361
361
|
_parent.style.height = adData.event.size[1] + 'px';
|
|
362
362
|
}
|
|
363
363
|
_parent.style.margin = 'auto';
|
|
364
|
+
// Adding margin below to create a seperation from text.
|
|
365
|
+
_parent.style.marginBottom = '15px';
|
|
364
366
|
}
|
|
365
367
|
if (body[0]._type === 'figure' || body[1]._type === 'figure' || body[2]._type === 'figure' || body[3]._type === 'figure') {
|
|
366
368
|
setContextualADFlag(true);
|
package/dist/cjs/View.js
CHANGED
|
@@ -526,8 +526,8 @@ var Article = function Article(props) {
|
|
|
526
526
|
var _selectedIndex = indexes[1] + 1;
|
|
527
527
|
|
|
528
528
|
var _checkIsAdFound = function _checkIsAdFound(isFound) {
|
|
529
|
+
var parent = document.getElementById('contextual-native-ad-' + payload._id);
|
|
529
530
|
if (!isFound) {
|
|
530
|
-
var parent = document.getElementById('contextual-native-ad-' + payload._id);
|
|
531
531
|
parent.style.height = '0%';
|
|
532
532
|
parent.style.width = '0%';
|
|
533
533
|
parent.style.display = 'none';
|
|
@@ -536,6 +536,8 @@ var Article = function Article(props) {
|
|
|
536
536
|
if (body && body[1] && body[1]._type === 'figure') {
|
|
537
537
|
setContextualADFlag(true);
|
|
538
538
|
}
|
|
539
|
+
// Adding margin below to create a seperation from text.
|
|
540
|
+
if (parent && parent.style) parent.style.marginBottom = '15px';
|
|
539
541
|
}
|
|
540
542
|
};
|
|
541
543
|
|
|
@@ -548,7 +550,9 @@ var Article = function Article(props) {
|
|
|
548
550
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
549
551
|
}, client.config())),
|
|
550
552
|
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
551
|
-
(visibleFlag || queueData && queueData.length === 1) &&
|
|
553
|
+
(visibleFlag || queueData && queueData.length === 1) &&
|
|
554
|
+
// Adding margin below to create a seperation from text.
|
|
555
|
+
React__default.createElement(
|
|
552
556
|
'div',
|
|
553
557
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
554
558
|
React__default.createElement(AdSlot, _extends._extends({}, payload.contextualAD, { refreshFlag: false, checkIsAdFound: _checkIsAdFound }))
|
|
@@ -7963,7 +7963,7 @@ var getSerializers = function getSerializers() {
|
|
|
7963
7963
|
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
7964
7964
|
},
|
|
7965
7965
|
hrtag: function hrtag() {
|
|
7966
|
-
return React__default.createElement('hr', { className: 'horizontal-rule' });
|
|
7966
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
7967
7967
|
},
|
|
7968
7968
|
brtag: function brtag() {
|
|
7969
7969
|
return React__default.createElement('br', { className: 'line-break' });
|
package/dist/esm/AD728x90.js
CHANGED
|
@@ -34,7 +34,7 @@ var AD728x90 = function AD728x90(_ref) {
|
|
|
34
34
|
}
|
|
35
35
|
//If ad rendered, should turn this to true and enable sticky position
|
|
36
36
|
|
|
37
|
-
var _useState = useState(
|
|
37
|
+
var _useState = useState(true),
|
|
38
38
|
_useState2 = _slicedToArray(_useState, 2),
|
|
39
39
|
stickyAd = _useState2[0],
|
|
40
40
|
setStickyAd = _useState2[1];
|
|
@@ -111,7 +111,7 @@ var AD728x90 = function AD728x90(_ref) {
|
|
|
111
111
|
React__default.createElement(
|
|
112
112
|
'style',
|
|
113
113
|
{ jsx: 'true' },
|
|
114
|
-
'\n .leaderboard-ad-wrapper {\n min-height: 90px;\n }\n @media screen and (max-width: 768px) {\n .leaderboard-ad-wrapper {\n min-height: calc(50px + 1rem);\n }\n }\n '
|
|
114
|
+
'\n .leaderboard-ad-wrapper {\n min-height: 90px;\n }\n @media screen and (max-width: 768px) {\n .leaderboard-ad-wrapper {\n min-height: calc(50px + 1rem);\n }\n .leaderboard-ad-wrapper .AD728x90 div[id*=\'google_ads_iframe\']:empty {\n height: 0!important;\n }\n }\n '
|
|
115
115
|
)
|
|
116
116
|
);
|
|
117
117
|
};
|
package/dist/esm/ArticleQueue.js
CHANGED
|
@@ -356,6 +356,8 @@ var Article = function Article(props) {
|
|
|
356
356
|
_parent.style.height = adData.event.size[1] + 'px';
|
|
357
357
|
}
|
|
358
358
|
_parent.style.margin = 'auto';
|
|
359
|
+
// Adding margin below to create a seperation from text.
|
|
360
|
+
_parent.style.marginBottom = '15px';
|
|
359
361
|
}
|
|
360
362
|
if (body[0]._type === 'figure' || body[1]._type === 'figure' || body[2]._type === 'figure' || body[3]._type === 'figure') {
|
|
361
363
|
setContextualADFlag(true);
|
package/dist/esm/View.js
CHANGED
|
@@ -521,8 +521,8 @@ var Article = function Article(props) {
|
|
|
521
521
|
var _selectedIndex = indexes[1] + 1;
|
|
522
522
|
|
|
523
523
|
var _checkIsAdFound = function _checkIsAdFound(isFound) {
|
|
524
|
+
var parent = document.getElementById('contextual-native-ad-' + payload._id);
|
|
524
525
|
if (!isFound) {
|
|
525
|
-
var parent = document.getElementById('contextual-native-ad-' + payload._id);
|
|
526
526
|
parent.style.height = '0%';
|
|
527
527
|
parent.style.width = '0%';
|
|
528
528
|
parent.style.display = 'none';
|
|
@@ -531,6 +531,8 @@ var Article = function Article(props) {
|
|
|
531
531
|
if (body && body[1] && body[1]._type === 'figure') {
|
|
532
532
|
setContextualADFlag(true);
|
|
533
533
|
}
|
|
534
|
+
// Adding margin below to create a seperation from text.
|
|
535
|
+
if (parent && parent.style) parent.style.marginBottom = '15px';
|
|
534
536
|
}
|
|
535
537
|
};
|
|
536
538
|
|
|
@@ -543,7 +545,9 @@ var Article = function Article(props) {
|
|
|
543
545
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
544
546
|
}, client.config())),
|
|
545
547
|
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
546
|
-
(visibleFlag || queueData && queueData.length === 1) &&
|
|
548
|
+
(visibleFlag || queueData && queueData.length === 1) &&
|
|
549
|
+
// Adding margin below to create a seperation from text.
|
|
550
|
+
React__default.createElement(
|
|
547
551
|
'div',
|
|
548
552
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
549
553
|
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, { refreshFlag: false, checkIsAdFound: _checkIsAdFound }))
|
|
@@ -7957,7 +7957,7 @@ var getSerializers = function getSerializers() {
|
|
|
7957
7957
|
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
7958
7958
|
},
|
|
7959
7959
|
hrtag: function hrtag() {
|
|
7960
|
-
return React__default.createElement('hr', { className: 'horizontal-rule' });
|
|
7960
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
7961
7961
|
},
|
|
7962
7962
|
brtag: function brtag() {
|
|
7963
7963
|
return React__default.createElement('br', { className: 'line-break' });
|