@mjhls/mjh-framework 1.0.484 → 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 CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- # mjh-framework v. 1.0.484
2
+ # mjh-framework v. 1.0.485
3
3
 
4
4
 
5
5
  > Foundation Framework
@@ -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) && React__default.createElement(
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' });
@@ -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) && React__default.createElement(
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' });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.484",
3
+ "version": "1.0.485",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",