@mjhls/mjh-framework 1.0.387 → 1.0.389

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.387
2
+ # mjh-framework v. 1.0.389
3
3
 
4
4
 
5
5
  > Foundation Framework
@@ -214,12 +214,16 @@ var MasterDeck = function (_React$Component) {
214
214
  onChange: function onChange(isVisible) {
215
215
  isVisible && _this.changePageNumber(pageNumber);
216
216
  } },
217
- React__default.createElement(_this2.Deck, { data: row, variant: variant, index: index, client: _this.props.client, defaultImage: _this.defaultImage })
218
- ),
219
- main.main_39 && _this.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
220
- 'div',
221
- { style: { margin: '0 auto' } },
222
- _this.renderMobileAd(index, numberOfItemsBeforeAd, _this.rightItems)
217
+ React__default.createElement(
218
+ 'div',
219
+ null,
220
+ React__default.createElement(_this2.Deck, { data: row, variant: variant, index: index, client: _this.props.client, defaultImage: _this.defaultImage }),
221
+ main.main_39 && _this.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
222
+ 'div',
223
+ { className: 'ad-container', style: { margin: '0 auto' } },
224
+ _this.renderMobileAd(index, numberOfItemsBeforeAd, _this.rightItems)
225
+ )
226
+ )
223
227
  )
224
228
  );
225
229
  })
@@ -228,7 +232,7 @@ var MasterDeck = function (_React$Component) {
228
232
  var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
229
233
  return React__default.createElement(
230
234
  'div',
231
- { style: { display: 'flex', flex: '1 0 auto', width: '100%', textAlign: 'center', marginBottom: '2rem' } },
235
+ { className: 'ad-container', style: { display: 'flex', flex: '1 0 auto', width: '100%', textAlign: 'center', marginBottom: '2rem' } },
232
236
  rightItems[i].component
233
237
  );
234
238
  }, _this.renderManualPagination = function () {
package/dist/cjs/index.js CHANGED
@@ -16412,7 +16412,7 @@ var GridHero = function GridHero(props) {
16412
16412
  return React__default.createElement(
16413
16413
  'div',
16414
16414
  { key: index, className: 'grid-sub-article sub-grid-' + (index + 1) },
16415
- articleThumbnail.length && React__default.createElement(
16415
+ articleThumbnail && React__default.createElement(
16416
16416
  'a',
16417
16417
  { href: '/view/' + article.url.current },
16418
16418
  React__default.createElement('img', { src: articleThumbnail, alt: articleAltText })
@@ -208,12 +208,16 @@ var MasterDeck = function (_React$Component) {
208
208
  onChange: function onChange(isVisible) {
209
209
  isVisible && _this.changePageNumber(pageNumber);
210
210
  } },
211
- React__default.createElement(_this2.Deck, { data: row, variant: variant, index: index, client: _this.props.client, defaultImage: _this.defaultImage })
212
- ),
213
- main_39 && _this.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
214
- 'div',
215
- { style: { margin: '0 auto' } },
216
- _this.renderMobileAd(index, numberOfItemsBeforeAd, _this.rightItems)
211
+ React__default.createElement(
212
+ 'div',
213
+ null,
214
+ React__default.createElement(_this2.Deck, { data: row, variant: variant, index: index, client: _this.props.client, defaultImage: _this.defaultImage }),
215
+ main_39 && _this.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
216
+ 'div',
217
+ { className: 'ad-container', style: { margin: '0 auto' } },
218
+ _this.renderMobileAd(index, numberOfItemsBeforeAd, _this.rightItems)
219
+ )
220
+ )
217
221
  )
218
222
  );
219
223
  })
@@ -222,7 +226,7 @@ var MasterDeck = function (_React$Component) {
222
226
  var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
223
227
  return React__default.createElement(
224
228
  'div',
225
- { style: { display: 'flex', flex: '1 0 auto', width: '100%', textAlign: 'center', marginBottom: '2rem' } },
229
+ { className: 'ad-container', style: { display: 'flex', flex: '1 0 auto', width: '100%', textAlign: 'center', marginBottom: '2rem' } },
226
230
  rightItems[i].component
227
231
  );
228
232
  }, _this.renderManualPagination = function () {
package/dist/esm/index.js CHANGED
@@ -16409,7 +16409,7 @@ var GridHero = function GridHero(props) {
16409
16409
  return React__default.createElement(
16410
16410
  'div',
16411
16411
  { key: index, className: 'grid-sub-article sub-grid-' + (index + 1) },
16412
- articleThumbnail.length && React__default.createElement(
16412
+ articleThumbnail && React__default.createElement(
16413
16413
  'a',
16414
16414
  { href: '/view/' + article.url.current },
16415
16415
  React__default.createElement('img', { src: articleThumbnail, alt: articleAltText })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.387",
3
+ "version": "1.0.389",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",