@mjhls/mjh-framework 1.0.403 → 1.0.404

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.403
2
+ # mjh-framework v. 1.0.404
3
3
 
4
4
 
5
5
  > Foundation Framework
@@ -36,8 +36,7 @@ var FigureComponent = function FigureComponent(props) {
36
36
  if (typeof window === 'undefined') return null;
37
37
 
38
38
  var node = props.node,
39
- client = props.client,
40
- contextualADFlag = props.contextualADFlag;
39
+ client = props.client;
41
40
 
42
41
 
43
42
  if (!node.asset) return null;
@@ -129,7 +128,6 @@ var FigureComponent = function FigureComponent(props) {
129
128
  caption && React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } })
130
129
  )
131
130
  ),
132
- contextualADFlag && React__default.createElement('p', { className: 'clearfix' }),
133
131
  React__default.createElement(
134
132
  'div',
135
133
  { className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
package/dist/cjs/index.js CHANGED
@@ -14230,7 +14230,7 @@ var MultiFigure = function MultiFigure(props) {
14230
14230
  };
14231
14231
 
14232
14232
  var Figure = dynamic(function () {
14233
- return Promise.resolve().then(function () { return require('./Figure-04d4a60d.js'); });
14233
+ return Promise.resolve().then(function () { return require('./Figure-9e886c5b.js'); });
14234
14234
  }, { ssr: false });
14235
14235
 
14236
14236
  var checkUrlIsExternal = function checkUrlIsExternal(url) {
@@ -17689,7 +17689,7 @@ var Article = function Article(props) {
17689
17689
  parent.style.display = 'none';
17690
17690
  setContextualADFlag(false);
17691
17691
  } else {
17692
- if (body[1]._type === 'figure') {
17692
+ if (body[0]._type === 'figure' || body[1]._type === 'figure' || body[2]._type === 'figure' || body[3]._type === 'figure') {
17693
17693
  setContextualADFlag(true);
17694
17694
  }
17695
17695
  }
@@ -17699,16 +17699,17 @@ var Article = function Article(props) {
17699
17699
  React__default.Fragment,
17700
17700
  null,
17701
17701
  React__default.createElement(TaxonomyCard.BlockContent, _extends$2._extends({
17702
- serializers: getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage, false, contextualADFlag),
17702
+ serializers: getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage, false),
17703
17703
  blocks: [].concat(toConsumableArray._toConsumableArray(body.slice(0, _selectedIndex))),
17704
17704
  imageOptions: { w: 320, h: 240, fit: 'max' }
17705
17705
  }, client.config())),
17706
- React__default.createElement('span', { className: 'clearfix' }),
17706
+ contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
17707
17707
  React__default.createElement(
17708
17708
  'div',
17709
17709
  { id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
17710
17710
  React__default.createElement(AdSlot.DFPAdSlot, _extends$2._extends({}, payload.contextualAD, { refreshFlag: false, checkIsAdFound: _checkIsAdFound }))
17711
17711
  ),
17712
+ contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
17712
17713
  React__default.createElement(TaxonomyCard.BlockContent, _extends$2._extends({
17713
17714
  serializers: getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage, false),
17714
17715
  blocks: [].concat(toConsumableArray._toConsumableArray(body.slice(_selectedIndex))),
@@ -31,8 +31,7 @@ var FigureComponent = function FigureComponent(props) {
31
31
  if (typeof window === 'undefined') return null;
32
32
 
33
33
  var node = props.node,
34
- client = props.client,
35
- contextualADFlag = props.contextualADFlag;
34
+ client = props.client;
36
35
 
37
36
 
38
37
  if (!node.asset) return null;
@@ -124,7 +123,6 @@ var FigureComponent = function FigureComponent(props) {
124
123
  caption && React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } })
125
124
  )
126
125
  ),
127
- contextualADFlag && React__default.createElement('p', { className: 'clearfix' }),
128
126
  React__default.createElement(
129
127
  'div',
130
128
  { className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
package/dist/esm/index.js CHANGED
@@ -14227,7 +14227,7 @@ var MultiFigure = function MultiFigure(props) {
14227
14227
  };
14228
14228
 
14229
14229
  var Figure = dynamic(function () {
14230
- return import('./Figure-e32f60c5.js');
14230
+ return import('./Figure-cc1affbe.js');
14231
14231
  }, { ssr: false });
14232
14232
 
14233
14233
  var checkUrlIsExternal = function checkUrlIsExternal(url) {
@@ -17686,7 +17686,7 @@ var Article = function Article(props) {
17686
17686
  parent.style.display = 'none';
17687
17687
  setContextualADFlag(false);
17688
17688
  } else {
17689
- if (body[1]._type === 'figure') {
17689
+ if (body[0]._type === 'figure' || body[1]._type === 'figure' || body[2]._type === 'figure' || body[3]._type === 'figure') {
17690
17690
  setContextualADFlag(true);
17691
17691
  }
17692
17692
  }
@@ -17696,16 +17696,17 @@ var Article = function Article(props) {
17696
17696
  React__default.Fragment,
17697
17697
  null,
17698
17698
  React__default.createElement(BlockContent, _extends$2({
17699
- serializers: getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage, false, contextualADFlag),
17699
+ serializers: getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage, false),
17700
17700
  blocks: [].concat(_toConsumableArray(body.slice(0, _selectedIndex))),
17701
17701
  imageOptions: { w: 320, h: 240, fit: 'max' }
17702
17702
  }, client.config())),
17703
- React__default.createElement('span', { className: 'clearfix' }),
17703
+ contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
17704
17704
  React__default.createElement(
17705
17705
  'div',
17706
17706
  { id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
17707
17707
  React__default.createElement(DFPAdSlot, _extends$2({}, payload.contextualAD, { refreshFlag: false, checkIsAdFound: _checkIsAdFound }))
17708
17708
  ),
17709
+ contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
17709
17710
  React__default.createElement(BlockContent, _extends$2({
17710
17711
  serializers: getSerializers(client, pageview, videoAccountIDs, function () {}, true, drupalLeadSettings, currentPage, false),
17711
17712
  blocks: [].concat(_toConsumableArray(body.slice(_selectedIndex))),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.403",
3
+ "version": "1.0.404",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",