@mjhls/mjh-framework 1.0.415 → 1.0.416
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 +1 -1
- package/dist/cjs/index.js +6 -3
- package/dist/esm/index.js +6 -3
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/cjs/index.js
CHANGED
|
@@ -22516,7 +22516,7 @@ var ArticleQueue$1 = function ArticleQueue(props) {
|
|
|
22516
22516
|
return item.url.current === path;
|
|
22517
22517
|
});
|
|
22518
22518
|
|
|
22519
|
-
var targeting = getTargeting({ article: activeArticle, position: props.position, prevUrl: prevUrl });
|
|
22519
|
+
var targeting = getTargeting({ article: activeArticle, cpModificationRequired: cpModificationRequired, position: props.position, prevUrl: prevUrl });
|
|
22520
22520
|
|
|
22521
22521
|
debounce.lib_3.getGoogletag().then(function (googletag) {
|
|
22522
22522
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -22578,9 +22578,11 @@ var ArticleQueue$1 = function ArticleQueue(props) {
|
|
|
22578
22578
|
var params = props.params;
|
|
22579
22579
|
if (queueData && queueData.length < maxListLength) {
|
|
22580
22580
|
params.index = queueData.length - 1;
|
|
22581
|
+
console.log('params:', params);
|
|
22582
|
+
console.log('query:', query);
|
|
22581
22583
|
props.client.fetch(query, params).then(function (article) {
|
|
22582
22584
|
if (article && article._id) {
|
|
22583
|
-
var targeting = getTargeting({ article: article, prevUrl: prevUrl });
|
|
22585
|
+
var targeting = getTargeting({ article: article, cpModificationRequired: cpModificationRequired, prevUrl: prevUrl });
|
|
22584
22586
|
article.Ads = Ads.getRightItems(targeting);
|
|
22585
22587
|
setQueueData([].concat(toConsumableArray._toConsumableArray(queueData), [article]));
|
|
22586
22588
|
}
|
|
@@ -22646,6 +22648,7 @@ var Articles = function Articles(props) {
|
|
|
22646
22648
|
|
|
22647
22649
|
var videoAccountIDs = props.videoAccountIDs,
|
|
22648
22650
|
Ads = props.Ads,
|
|
22651
|
+
cpModificationRequired = props.cpModificationRequired,
|
|
22649
22652
|
Settings = props.Settings,
|
|
22650
22653
|
ISIContent = props.ISIContent,
|
|
22651
22654
|
prevUrl = props.prevUrl,
|
|
@@ -22704,7 +22707,7 @@ var Articles = function Articles(props) {
|
|
|
22704
22707
|
Ads: WAds,
|
|
22705
22708
|
regionalPages: regionalPages,
|
|
22706
22709
|
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',
|
|
22710
|
+
}, _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
22711
|
};
|
|
22709
22712
|
|
|
22710
22713
|
var View = function View(props) {
|
package/dist/esm/index.js
CHANGED
|
@@ -22513,7 +22513,7 @@ var ArticleQueue$1 = function ArticleQueue(props) {
|
|
|
22513
22513
|
return item.url.current === path;
|
|
22514
22514
|
});
|
|
22515
22515
|
|
|
22516
|
-
var targeting = getTargeting({ article: activeArticle, position: props.position, prevUrl: prevUrl });
|
|
22516
|
+
var targeting = getTargeting({ article: activeArticle, cpModificationRequired: cpModificationRequired, position: props.position, prevUrl: prevUrl });
|
|
22517
22517
|
|
|
22518
22518
|
lib_3.getGoogletag().then(function (googletag) {
|
|
22519
22519
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -22575,9 +22575,11 @@ var ArticleQueue$1 = function ArticleQueue(props) {
|
|
|
22575
22575
|
var params = props.params;
|
|
22576
22576
|
if (queueData && queueData.length < maxListLength) {
|
|
22577
22577
|
params.index = queueData.length - 1;
|
|
22578
|
+
console.log('params:', params);
|
|
22579
|
+
console.log('query:', query);
|
|
22578
22580
|
props.client.fetch(query, params).then(function (article) {
|
|
22579
22581
|
if (article && article._id) {
|
|
22580
|
-
var targeting = getTargeting({ article: article, prevUrl: prevUrl });
|
|
22582
|
+
var targeting = getTargeting({ article: article, cpModificationRequired: cpModificationRequired, prevUrl: prevUrl });
|
|
22581
22583
|
article.Ads = Ads.getRightItems(targeting);
|
|
22582
22584
|
setQueueData([].concat(_toConsumableArray(queueData), [article]));
|
|
22583
22585
|
}
|
|
@@ -22643,6 +22645,7 @@ var Articles = function Articles(props) {
|
|
|
22643
22645
|
|
|
22644
22646
|
var videoAccountIDs = props.videoAccountIDs,
|
|
22645
22647
|
Ads = props.Ads,
|
|
22648
|
+
cpModificationRequired = props.cpModificationRequired,
|
|
22646
22649
|
Settings = props.Settings,
|
|
22647
22650
|
ISIContent = props.ISIContent,
|
|
22648
22651
|
prevUrl = props.prevUrl,
|
|
@@ -22701,7 +22704,7 @@ var Articles = function Articles(props) {
|
|
|
22701
22704
|
Ads: WAds,
|
|
22702
22705
|
regionalPages: regionalPages,
|
|
22703
22706
|
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',
|
|
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', cpModificationRequired), _defineProperty$1(_extends2, 'Settings', Settings), _extends2), props));
|
|
22705
22708
|
};
|
|
22706
22709
|
|
|
22707
22710
|
var View = function View(props) {
|