@mjhls/mjh-framework 1.0.415 → 1.0.417

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.415
2
+ # mjh-framework v. 1.0.417
3
3
 
4
4
  > Foundation Framework
5
5
 
@@ -84,7 +84,6 @@ var loadData = function loadData(values, query, client, params, setData, setScro
84
84
  };
85
85
 
86
86
  var changePageNumber = function changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage, itemsPerPage, itemIndex) {
87
- console.log('pageNumber:', pageNumber);
88
87
 
89
88
  if (seoPaginate) {
90
89
  var path = router.asPath;
@@ -60,8 +60,6 @@ var Ustream = function Ustream(_ref) {
60
60
  setWidth('100%');
61
61
  // aspect ratio
62
62
  var newHeight = 9 / 16 * ustreamContainer.current.clientWidth;
63
- console.log(newHeight);
64
- console.log(ustreamContainer);
65
63
  setHeight(newHeight);
66
64
  document.querySelector('.ustream-minimize').remove();
67
65
  var closeBtn = document.querySelector('.ustream-close');
@@ -6,7 +6,7 @@ require('./web.dom.iterable-5c889cf1.js');
6
6
  require('react');
7
7
  require('./slicedToArray-419d467a.js');
8
8
  require('./index.esm-340d3792.js');
9
- var Ustream = require('./Ustream-c7baf022.js');
9
+ var Ustream = require('./Ustream-6aebd935.js');
10
10
 
11
11
 
12
12
 
package/dist/cjs/index.js CHANGED
@@ -76,7 +76,7 @@ var Carousel = _interopDefault(require('react-bootstrap/Carousel'));
76
76
  var Breadcrumb = _interopDefault(require('react-bootstrap/Breadcrumb'));
77
77
  var DropdownButton = _interopDefault(require('react-bootstrap/DropdownButton'));
78
78
  var Dropdown = _interopDefault(require('react-bootstrap/Dropdown'));
79
- var Ustream = require('./Ustream-c7baf022.js');
79
+ var Ustream = require('./Ustream-6aebd935.js');
80
80
  var Modal = _interopDefault(require('react-bootstrap/Modal'));
81
81
  var useSWR = _interopDefault(require('swr'));
82
82
  var Local = _interopDefault(require('passport-local'));
@@ -1875,7 +1875,6 @@ var EventsDeck = function EventsDeck(_ref) {
1875
1875
  return event.testMode === false;
1876
1876
  });
1877
1877
  var sortedEventsByStartData = filteredEventsByTestMode.sort(function (a, b) {
1878
- console.log(a.start);
1879
1878
  if (a.start.indexOf('TBD') >= 0 || b.start.indexOf('TBD') >= 0) {
1880
1879
  return -1;
1881
1880
  }
@@ -16771,8 +16770,6 @@ var InscreenSensor = function (_React$Component) {
16771
16770
  var _this = inherits$2._possibleConstructorReturn(this, (InscreenSensor.__proto__ || inherits$2._Object$getPrototypeOf(InscreenSensor)).call(this, props));
16772
16771
 
16773
16772
  _this.scrollHandler = function () {
16774
- // this.checkInside()
16775
-
16776
16773
  var visible = _this.checkInside();
16777
16774
  if (visible !== _this.visible) {
16778
16775
  _this.visible = visible;
@@ -16782,7 +16779,6 @@ var InscreenSensor = function (_React$Component) {
16782
16779
 
16783
16780
  _this.checkInside = function () {
16784
16781
  var rect = _this.wraperRef.current.getBoundingClientRect();
16785
-
16786
16782
  var _this$props$offSetTop = _this.props.offSetTop,
16787
16783
  offSetTop = _this$props$offSetTop === undefined ? 0 : _this$props$offSetTop;
16788
16784
  var top = rect.top,
@@ -21699,8 +21695,6 @@ var getDocumentGroupUrl = function getDocumentGroupUrl(docGroup) {
21699
21695
  }
21700
21696
  var url = void 0;
21701
21697
  if (docGroup.path.includes('/')) {
21702
- console.log(docGroup);
21703
- console.log(docGroup.path);
21704
21698
  return "/" + docGroup.path;
21705
21699
  }
21706
21700
 
@@ -22516,7 +22510,7 @@ var ArticleQueue$1 = function ArticleQueue(props) {
22516
22510
  return item.url.current === path;
22517
22511
  });
22518
22512
 
22519
- var targeting = getTargeting({ article: activeArticle, position: props.position, prevUrl: prevUrl });
22513
+ var targeting = getTargeting({ article: activeArticle, cpModificationRequired: cpModificationRequired, position: props.position, prevUrl: prevUrl });
22520
22514
 
22521
22515
  debounce.lib_3.getGoogletag().then(function (googletag) {
22522
22516
  if (window.googletag && googletag.pubadsReady) {
@@ -22580,7 +22574,7 @@ var ArticleQueue$1 = function ArticleQueue(props) {
22580
22574
  params.index = queueData.length - 1;
22581
22575
  props.client.fetch(query, params).then(function (article) {
22582
22576
  if (article && article._id) {
22583
- var targeting = getTargeting({ article: article, prevUrl: prevUrl });
22577
+ var targeting = getTargeting({ article: article, cpModificationRequired: cpModificationRequired, prevUrl: prevUrl });
22584
22578
  article.Ads = Ads.getRightItems(targeting);
22585
22579
  setQueueData([].concat(toConsumableArray._toConsumableArray(queueData), [article]));
22586
22580
  }
@@ -22646,6 +22640,7 @@ var Articles = function Articles(props) {
22646
22640
 
22647
22641
  var videoAccountIDs = props.videoAccountIDs,
22648
22642
  Ads = props.Ads,
22643
+ cpModificationRequired = props.cpModificationRequired,
22649
22644
  Settings = props.Settings,
22650
22645
  ISIContent = props.ISIContent,
22651
22646
  prevUrl = props.prevUrl,
@@ -22704,7 +22699,7 @@ var Articles = function Articles(props) {
22704
22699
  Ads: WAds,
22705
22700
  regionalPages: regionalPages,
22706
22701
  nationalPage: nationalPage
22707
- }, _defineProperty$1(_extends2, 'pageview', pageview), _defineProperty$1(_extends2, 'onVote', function onVote() {}), _defineProperty$1(_extends2, 'ISIContent', ISIContent), _defineProperty$1(_extends2, 'videoAccountIDs', videoAccountIDs), _defineProperty$1(_extends2, 'sponsoredTaxonomies', []), _defineProperty$1(_extends2, 'cpModificationRequired', true), _defineProperty$1(_extends2, 'Settings', Settings), _extends2), props));
22702
+ }, _defineProperty$1(_extends2, 'pageview', pageview), _defineProperty$1(_extends2, 'onVote', function onVote() {}), _defineProperty$1(_extends2, 'ISIContent', ISIContent), _defineProperty$1(_extends2, 'videoAccountIDs', videoAccountIDs), _defineProperty$1(_extends2, 'sponsoredTaxonomies', []), _defineProperty$1(_extends2, 'cpModificationRequired', cpModificationRequired), _defineProperty$1(_extends2, 'Settings', Settings), _extends2), props));
22708
22703
  };
22709
22704
 
22710
22705
  var View = function View(props) {
@@ -78,7 +78,6 @@ var loadData = function loadData(values, query, client, params, setData, setScro
78
78
  };
79
79
 
80
80
  var changePageNumber = function changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage, itemsPerPage, itemIndex) {
81
- console.log('pageNumber:', pageNumber);
82
81
 
83
82
  if (seoPaginate) {
84
83
  var path = router.asPath;
@@ -55,8 +55,6 @@ var Ustream = function Ustream(_ref) {
55
55
  setWidth('100%');
56
56
  // aspect ratio
57
57
  var newHeight = 9 / 16 * ustreamContainer.current.clientWidth;
58
- console.log(newHeight);
59
- console.log(ustreamContainer);
60
58
  setHeight(newHeight);
61
59
  document.querySelector('.ustream-minimize').remove();
62
60
  var closeBtn = document.querySelector('.ustream-close');
@@ -4,4 +4,4 @@ import './web.dom.iterable-e6bf2bf6.js';
4
4
  import 'react';
5
5
  import './slicedToArray-04e02710.js';
6
6
  import './index.esm-536609db.js';
7
- export { U as default } from './Ustream-ee7aeeef.js';
7
+ export { U as default } from './Ustream-914ce145.js';
package/dist/esm/index.js CHANGED
@@ -72,8 +72,8 @@ import Carousel$1 from 'react-bootstrap/Carousel';
72
72
  import Breadcrumb from 'react-bootstrap/Breadcrumb';
73
73
  import DropdownButton from 'react-bootstrap/DropdownButton';
74
74
  import Dropdown from 'react-bootstrap/Dropdown';
75
- import { F as FaLongArrowAltRight } from './Ustream-ee7aeeef.js';
76
- export { U as Ustream } from './Ustream-ee7aeeef.js';
75
+ import { F as FaLongArrowAltRight } from './Ustream-914ce145.js';
76
+ export { U as Ustream } from './Ustream-914ce145.js';
77
77
  import Modal from 'react-bootstrap/Modal';
78
78
  import useSWR from 'swr';
79
79
  import Local from 'passport-local';
@@ -1872,7 +1872,6 @@ var EventsDeck = function EventsDeck(_ref) {
1872
1872
  return event.testMode === false;
1873
1873
  });
1874
1874
  var sortedEventsByStartData = filteredEventsByTestMode.sort(function (a, b) {
1875
- console.log(a.start);
1876
1875
  if (a.start.indexOf('TBD') >= 0 || b.start.indexOf('TBD') >= 0) {
1877
1876
  return -1;
1878
1877
  }
@@ -16768,8 +16767,6 @@ var InscreenSensor = function (_React$Component) {
16768
16767
  var _this = _possibleConstructorReturn$1(this, (InscreenSensor.__proto__ || _Object$getPrototypeOf(InscreenSensor)).call(this, props));
16769
16768
 
16770
16769
  _this.scrollHandler = function () {
16771
- // this.checkInside()
16772
-
16773
16770
  var visible = _this.checkInside();
16774
16771
  if (visible !== _this.visible) {
16775
16772
  _this.visible = visible;
@@ -16779,7 +16776,6 @@ var InscreenSensor = function (_React$Component) {
16779
16776
 
16780
16777
  _this.checkInside = function () {
16781
16778
  var rect = _this.wraperRef.current.getBoundingClientRect();
16782
-
16783
16779
  var _this$props$offSetTop = _this.props.offSetTop,
16784
16780
  offSetTop = _this$props$offSetTop === undefined ? 0 : _this$props$offSetTop;
16785
16781
  var top = rect.top,
@@ -21696,8 +21692,6 @@ var getDocumentGroupUrl = function getDocumentGroupUrl(docGroup) {
21696
21692
  }
21697
21693
  var url = void 0;
21698
21694
  if (docGroup.path.includes('/')) {
21699
- console.log(docGroup);
21700
- console.log(docGroup.path);
21701
21695
  return "/" + docGroup.path;
21702
21696
  }
21703
21697
 
@@ -22513,7 +22507,7 @@ var ArticleQueue$1 = function ArticleQueue(props) {
22513
22507
  return item.url.current === path;
22514
22508
  });
22515
22509
 
22516
- var targeting = getTargeting({ article: activeArticle, position: props.position, prevUrl: prevUrl });
22510
+ var targeting = getTargeting({ article: activeArticle, cpModificationRequired: cpModificationRequired, position: props.position, prevUrl: prevUrl });
22517
22511
 
22518
22512
  lib_3.getGoogletag().then(function (googletag) {
22519
22513
  if (window.googletag && googletag.pubadsReady) {
@@ -22577,7 +22571,7 @@ var ArticleQueue$1 = function ArticleQueue(props) {
22577
22571
  params.index = queueData.length - 1;
22578
22572
  props.client.fetch(query, params).then(function (article) {
22579
22573
  if (article && article._id) {
22580
- var targeting = getTargeting({ article: article, prevUrl: prevUrl });
22574
+ var targeting = getTargeting({ article: article, cpModificationRequired: cpModificationRequired, prevUrl: prevUrl });
22581
22575
  article.Ads = Ads.getRightItems(targeting);
22582
22576
  setQueueData([].concat(_toConsumableArray(queueData), [article]));
22583
22577
  }
@@ -22643,6 +22637,7 @@ var Articles = function Articles(props) {
22643
22637
 
22644
22638
  var videoAccountIDs = props.videoAccountIDs,
22645
22639
  Ads = props.Ads,
22640
+ cpModificationRequired = props.cpModificationRequired,
22646
22641
  Settings = props.Settings,
22647
22642
  ISIContent = props.ISIContent,
22648
22643
  prevUrl = props.prevUrl,
@@ -22701,7 +22696,7 @@ var Articles = function Articles(props) {
22701
22696
  Ads: WAds,
22702
22697
  regionalPages: regionalPages,
22703
22698
  nationalPage: nationalPage
22704
- }, _defineProperty$1(_extends2, 'pageview', pageview), _defineProperty$1(_extends2, 'onVote', function onVote() {}), _defineProperty$1(_extends2, 'ISIContent', ISIContent), _defineProperty$1(_extends2, 'videoAccountIDs', videoAccountIDs), _defineProperty$1(_extends2, 'sponsoredTaxonomies', []), _defineProperty$1(_extends2, 'cpModificationRequired', true), _defineProperty$1(_extends2, 'Settings', Settings), _extends2), props));
22699
+ }, _defineProperty$1(_extends2, 'pageview', pageview), _defineProperty$1(_extends2, 'onVote', function onVote() {}), _defineProperty$1(_extends2, 'ISIContent', ISIContent), _defineProperty$1(_extends2, 'videoAccountIDs', videoAccountIDs), _defineProperty$1(_extends2, 'sponsoredTaxonomies', []), _defineProperty$1(_extends2, 'cpModificationRequired', cpModificationRequired), _defineProperty$1(_extends2, 'Settings', Settings), _extends2), props));
22705
22700
  };
22706
22701
 
22707
22702
  var View = function View(props) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.415",
3
+ "version": "1.0.417",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",