@mjhls/mjh-framework 1.0.160 → 1.0.162

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/dist/index.js CHANGED
@@ -8406,7 +8406,7 @@ var MasterDeck = function (_React$Component) {
8406
8406
  args[_key] = arguments[_key];
8407
8407
  }
8408
8408
 
8409
- return _ret = (_temp = (_this = possibleConstructorReturn(this, (_ref = MasterDeck.__proto__ || Object.getPrototypeOf(MasterDeck)).call.apply(_ref, [this].concat(args))), _this), _this.Deck = _this.props.deck, _this.variant = _this.props.variant, _this.mapping = _this.props.mapping, _this.data = _this.props.dataRecord || [], _this.query = _this.props.query, _this.params = _this.props.params, _this.pointer = _this.props.pointer ? _this.props.pointer : false, _this.pointerArray = _this.props.pointerArray ? _this.props.pointerArray : false, _this.defaultImage = _this.props.defaultImage ? _this.props.defaultImage : '/placeholder.jpg', _this.state = {
8409
+ return _ret = (_temp = (_this = possibleConstructorReturn(this, (_ref = MasterDeck.__proto__ || Object.getPrototypeOf(MasterDeck)).call.apply(_ref, [this].concat(args))), _this), _this.Deck = _this.props.deck, _this.variant = _this.props.variant, _this.mapping = _this.props.mapping, _this.data = _this.props.dataRecord || [], _this.query = _this.props.query, _this.params = _this.props.params, _this.pointer = _this.props.pointer ? _this.props.pointer : false, _this.pointerArray = _this.props.pointerArray ? _this.props.pointerArray : false, _this.defaultImage = _this.props.defaultImage ? _this.props.defaultImage : '/placeholder.jpg', _this.rightItems = _this.props.rightItems ? _this.props.rightItems : false, _this.state = {
8410
8410
  data: _this.data,
8411
8411
  dataKeptToCompareNewDatarecord: _this.data,
8412
8412
  per: _this.params ? _this.params.to : 2,
@@ -8613,8 +8613,7 @@ var MasterDeck = function (_React$Component) {
8613
8613
  }
8614
8614
  } else return null;
8615
8615
  }, _this.cardLoader = function (page, columns, variant) {
8616
-
8617
- var itemCounter = 0;
8616
+ var numberOfItemsBeforeAd = 6;
8618
8617
  return React__default.createElement(
8619
8618
  Row,
8620
8619
  null,
@@ -8624,7 +8623,7 @@ var MasterDeck = function (_React$Component) {
8624
8623
 
8625
8624
  return React__default.createElement(
8626
8625
  React__default.Fragment,
8627
- { key: itemCounter },
8626
+ { key: index$$1 },
8628
8627
  React__default.createElement(
8629
8628
  VisibilitySensor,
8630
8629
  {
@@ -8632,17 +8631,20 @@ var MasterDeck = function (_React$Component) {
8632
8631
  isVisible && _this.changePageNumber(pageNumber);
8633
8632
  } },
8634
8633
  React__default.createElement(_this2.Deck, { data: row, variant: variant, index: index$$1 })
8634
+ ),
8635
+ main_36 && _this.rightItems && (index$$1 + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
8636
+ 'div',
8637
+ { style: { margin: '0 auto' } },
8638
+ _this.renderMobileAd(index$$1, numberOfItemsBeforeAd, _this.rightItems)
8635
8639
  )
8636
8640
  );
8637
8641
  })
8638
8642
  );
8639
- }, _this.renderMobileAd = function (index$$1, numberOfItemsBeforeAd) {
8640
- var rightItems = _this.props.rightItems;
8641
-
8643
+ }, _this.renderMobileAd = function (index$$1, numberOfItemsBeforeAd, rightItems) {
8642
8644
  var i = ((index$$1 + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
8643
8645
  return React__default.createElement(
8644
8646
  'div',
8645
- { style: { display: 'flex', flex: '1 0 auto' } },
8647
+ { style: { display: 'flex', flex: '1 0 auto', width: '100%', textAlign: 'center', marginBottom: '2rem' } },
8646
8648
  rightItems[i].component
8647
8649
  );
8648
8650
  }, _this.renderManualPagination = function () {
@@ -9488,6 +9490,11 @@ var SocialShare = function SocialShare(props) {
9488
9490
  { url: shareUrl, title: shareTitle, via: shareVia },
9489
9491
  React__default.createElement(reactShare.TwitterIcon, { size: size, round: true })
9490
9492
  ),
9493
+ React__default.createElement(
9494
+ reactShare.LinkedinShareButton,
9495
+ { url: shareUrl, title: shareTitle, via: shareVia },
9496
+ React__default.createElement(reactShare.LinkedinIcon, { size: size, round: true })
9497
+ ),
9491
9498
  React__default.createElement(
9492
9499
  reactShare.PinterestShareButton,
9493
9500
  { url: shareUrl, media: shareImage, description: shareSummary },
@@ -16004,7 +16011,7 @@ var Ustream = function Ustream(_ref) {
16004
16011
  React__default.createElement('iframe', {
16005
16012
  id: 'ustream-iframe',
16006
16013
  src: src,
16007
- webkitallowfullscreen: true,
16014
+ webkitallowfullscreen: 'true',
16008
16015
  allowFullScreen: true,
16009
16016
  frameBorder: 'no',
16010
16017
  style: { maxWidth: '100%', height: currentHeight, width: currentWidth } })