@mjhls/mjh-framework 1.0.926-bc-fullscreen-v1 → 1.0.926-bc-fullscreen-v3

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/cjs/View.js CHANGED
@@ -560,8 +560,8 @@ var Article = React.forwardRef(function (props, ref) {
560
560
  _props$authorImgHeigh = props.authorImgHeight,
561
561
  authorImgHeight = _props$authorImgHeigh === undefined ? 270 : _props$authorImgHeigh;
562
562
  props.active;
563
- var containerHeight = props.containerHeight,
564
- _props$refreshFlag = props.refreshFlag,
563
+ props.containerHeight;
564
+ var _props$refreshFlag = props.refreshFlag,
565
565
  refreshFlag = _props$refreshFlag === undefined ? false : _props$refreshFlag,
566
566
  disqusConfig = props.disqusConfig,
567
567
  showDisqus = props.showDisqus,
@@ -684,9 +684,9 @@ var Article = React.forwardRef(function (props, ref) {
684
684
  }
685
685
  if (authorDetails && authorDetails.length) {
686
686
  authorDetails.map(function (authorDetail, index) {
687
- return fileContent += 'AU - ' + authorDetail.displayName + '\n' //Author
688
- ;
689
- });
687
+ return fileContent += 'AU - ' + authorDetail.displayName + '\n';
688
+ } //Author
689
+ );
690
690
  }
691
691
  if (issue.publication && issue.publication.name) {
692
692
  fileContent += 'T2 - ' + issue.publication.name + '\n'; //Secondary Title - T2
@@ -1117,8 +1117,6 @@ var Article = React.forwardRef(function (props, ref) {
1117
1117
  });
1118
1118
  return episode;
1119
1119
  };
1120
- // pixels from bottom of window to change trigger visibility change
1121
- var triggerOffset = 10;
1122
1120
  var isVideoSeries = checkIfVideoSeries(article);
1123
1121
  var episodeNumber = fetchCurrentEpisode(props.sliderData, props.article);
1124
1122
  var isMediaSeries = article.documentGroup && article.documentGroup.isSeries ? true : false;
@@ -1130,9 +1128,9 @@ var Article = React.forwardRef(function (props, ref) {
1130
1128
  React__default['default'].createElement(
1131
1129
  visibilitySensor.VisibilitySensor,
1132
1130
  {
1133
- partialVisibility: true,
1134
- offset: { bottom: triggerOffset, top: containerHeight - 80 },
1135
- onChange: function onChange(isVisible) {
1131
+ partialVisibility: true
1132
+ // offset={{ bottom: triggerOffset, top: containerHeight - 80 }}
1133
+ , onChange: function onChange(isVisible) {
1136
1134
  if (isVisible && queueData && queueData.length > 1) {
1137
1135
  var pageviewProperties = _extends._extends({}, targeting, {
1138
1136
  category: article && article.category ? article.category.name : ''
package/dist/esm/View.js CHANGED
@@ -550,8 +550,8 @@ var Article = forwardRef(function (props, ref) {
550
550
  _props$authorImgHeigh = props.authorImgHeight,
551
551
  authorImgHeight = _props$authorImgHeigh === undefined ? 270 : _props$authorImgHeigh;
552
552
  props.active;
553
- var containerHeight = props.containerHeight,
554
- _props$refreshFlag = props.refreshFlag,
553
+ props.containerHeight;
554
+ var _props$refreshFlag = props.refreshFlag,
555
555
  refreshFlag = _props$refreshFlag === undefined ? false : _props$refreshFlag,
556
556
  disqusConfig = props.disqusConfig,
557
557
  showDisqus = props.showDisqus,
@@ -674,9 +674,9 @@ var Article = forwardRef(function (props, ref) {
674
674
  }
675
675
  if (authorDetails && authorDetails.length) {
676
676
  authorDetails.map(function (authorDetail, index) {
677
- return fileContent += 'AU - ' + authorDetail.displayName + '\n' //Author
678
- ;
679
- });
677
+ return fileContent += 'AU - ' + authorDetail.displayName + '\n';
678
+ } //Author
679
+ );
680
680
  }
681
681
  if (issue.publication && issue.publication.name) {
682
682
  fileContent += 'T2 - ' + issue.publication.name + '\n'; //Secondary Title - T2
@@ -1107,8 +1107,6 @@ var Article = forwardRef(function (props, ref) {
1107
1107
  });
1108
1108
  return episode;
1109
1109
  };
1110
- // pixels from bottom of window to change trigger visibility change
1111
- var triggerOffset = 10;
1112
1110
  var isVideoSeries = checkIfVideoSeries(article);
1113
1111
  var episodeNumber = fetchCurrentEpisode(props.sliderData, props.article);
1114
1112
  var isMediaSeries = article.documentGroup && article.documentGroup.isSeries ? true : false;
@@ -1120,9 +1118,9 @@ var Article = forwardRef(function (props, ref) {
1120
1118
  React__default.createElement(
1121
1119
  VisibilitySensor,
1122
1120
  {
1123
- partialVisibility: true,
1124
- offset: { bottom: triggerOffset, top: containerHeight - 80 },
1125
- onChange: function onChange(isVisible) {
1121
+ partialVisibility: true
1122
+ // offset={{ bottom: triggerOffset, top: containerHeight - 80 }}
1123
+ , onChange: function onChange(isVisible) {
1126
1124
  if (isVisible && queueData && queueData.length > 1) {
1127
1125
  var pageviewProperties = _extends({}, targeting, {
1128
1126
  category: article && article.category ? article.category.name : ''
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.926-bc-fullscreen-v1",
3
+ "version": "1.0.926-bc-fullscreen-v3",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",