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

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
- props.containerHeight;
564
- var _props$refreshFlag = props.refreshFlag,
563
+ var containerHeight = props.containerHeight,
564
+ _props$refreshFlag = props.refreshFlag,
565
565
  refreshFlag = _props$refreshFlag === undefined ? false : _props$refreshFlag,
566
566
  disqusConfig = props.disqusConfig,
567
567
  showDisqus = props.showDisqus,
@@ -1117,6 +1117,8 @@ 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 = 20;
1120
1122
  var isVideoSeries = checkIfVideoSeries(article);
1121
1123
  var episodeNumber = fetchCurrentEpisode(props.sliderData, props.article);
1122
1124
  var isMediaSeries = article.documentGroup && article.documentGroup.isSeries ? true : false;
@@ -1128,9 +1130,9 @@ var Article = React.forwardRef(function (props, ref) {
1128
1130
  React__default['default'].createElement(
1129
1131
  visibilitySensor.VisibilitySensor,
1130
1132
  {
1131
- partialVisibility: true
1132
- // offset={{ bottom: triggerOffset, top: containerHeight - 80 }}
1133
- , onChange: function onChange(isVisible) {
1133
+ partialVisibility: true,
1134
+ offset: { bottom: triggerOffset, top: containerHeight },
1135
+ onChange: function onChange(isVisible) {
1134
1136
  if (isVisible && queueData && queueData.length > 1) {
1135
1137
  var pageviewProperties = _extends._extends({}, targeting, {
1136
1138
  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
- props.containerHeight;
554
- var _props$refreshFlag = props.refreshFlag,
553
+ var containerHeight = props.containerHeight,
554
+ _props$refreshFlag = props.refreshFlag,
555
555
  refreshFlag = _props$refreshFlag === undefined ? false : _props$refreshFlag,
556
556
  disqusConfig = props.disqusConfig,
557
557
  showDisqus = props.showDisqus,
@@ -1107,6 +1107,8 @@ 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 = 20;
1110
1112
  var isVideoSeries = checkIfVideoSeries(article);
1111
1113
  var episodeNumber = fetchCurrentEpisode(props.sliderData, props.article);
1112
1114
  var isMediaSeries = article.documentGroup && article.documentGroup.isSeries ? true : false;
@@ -1118,9 +1120,9 @@ var Article = forwardRef(function (props, ref) {
1118
1120
  React__default.createElement(
1119
1121
  VisibilitySensor,
1120
1122
  {
1121
- partialVisibility: true
1122
- // offset={{ bottom: triggerOffset, top: containerHeight - 80 }}
1123
- , onChange: function onChange(isVisible) {
1123
+ partialVisibility: true,
1124
+ offset: { bottom: triggerOffset, top: containerHeight },
1125
+ onChange: function onChange(isVisible) {
1124
1126
  if (isVisible && queueData && queueData.length > 1) {
1125
1127
  var pageviewProperties = _extends({}, targeting, {
1126
1128
  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-v3",
3
+ "version": "1.0.926-bc-fullscreen-v4",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",