@mjhls/mjh-framework 1.0.986 → 1.0.987
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 +6 -4
- package/dist/cjs/{getTargeting-3c5754ac.js → getTargeting-ba942d9a.js} +4 -2
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/esm/View.js +6 -4
- package/dist/esm/{getTargeting-42f9b439.js → getTargeting-9bd28724.js} +4 -2
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/index.js +1 -1
- package/package.json +1 -1
package/dist/cjs/View.js
CHANGED
|
@@ -20,7 +20,7 @@ var SocialShare = require('./SocialShare.js');
|
|
|
20
20
|
var getSerializers = require('./index-869cab56.js');
|
|
21
21
|
var AdSlot = require('./AdSlot.js');
|
|
22
22
|
var SeriesSlider = require('./SeriesSlider-594b19eb.js');
|
|
23
|
-
var getTargeting = require('./getTargeting-
|
|
23
|
+
var getTargeting = require('./getTargeting-ba942d9a.js');
|
|
24
24
|
var getKeywords = require('./getKeywords.js');
|
|
25
25
|
var urlFor = require('./urlFor.js');
|
|
26
26
|
var urlForFile = require('./urlForFile-29d3815a.js');
|
|
@@ -1960,7 +1960,9 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1960
1960
|
_props$authorPrefix = props.authorPrefix,
|
|
1961
1961
|
authorPrefix = _props$authorPrefix === undefined ? 'authors' : _props$authorPrefix,
|
|
1962
1962
|
showRelatedArticles = props.showRelatedArticles,
|
|
1963
|
-
canonicalTag = props.canonicalTag
|
|
1963
|
+
canonicalTag = props.canonicalTag,
|
|
1964
|
+
_props$disablePrevUrl = props.disablePrevUrlCheckContentPlacement,
|
|
1965
|
+
disablePrevUrlCheckContentPlacement = _props$disablePrevUrl === undefined ? false : _props$disablePrevUrl;
|
|
1964
1966
|
|
|
1965
1967
|
var _useState = React.useState(0),
|
|
1966
1968
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -2010,7 +2012,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
2010
2012
|
var activeArticle = queueData.find(function (item) {
|
|
2011
2013
|
return item.url.current === path;
|
|
2012
2014
|
});
|
|
2013
|
-
var targeting = getTargeting.getTargeting({ article: activeArticle, cpModificationRequired: cpModificationRequired, position: props.position, prevUrl: prevUrl });
|
|
2015
|
+
var targeting = getTargeting.getTargeting({ article: activeArticle, cpModificationRequired: cpModificationRequired, position: props.position, prevUrl: prevUrl, disablePrevUrlCheckContentPlacement: disablePrevUrlCheckContentPlacement });
|
|
2014
2016
|
if (!main.main_43) {
|
|
2015
2017
|
index.lib_3.getGoogletag().then(function (googletag) {
|
|
2016
2018
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -2122,7 +2124,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
2122
2124
|
console.error(_context.t1);
|
|
2123
2125
|
|
|
2124
2126
|
case 24:
|
|
2125
|
-
targeting = getTargeting.getTargeting({ article: article, cpModificationRequired: cpModificationRequired, prevUrl: prevUrl });
|
|
2127
|
+
targeting = getTargeting.getTargeting({ article: article, cpModificationRequired: cpModificationRequired, prevUrl: prevUrl, disablePrevUrlCheckContentPlacement: disablePrevUrlCheckContentPlacement });
|
|
2126
2128
|
|
|
2127
2129
|
article.Ads = Ads.getRightItems(targeting);
|
|
2128
2130
|
setQueueData([].concat(toConsumableArray._toConsumableArray(queueData), [article]));
|
|
@@ -24,7 +24,9 @@ var getTargeting = function getTargeting(props) {
|
|
|
24
24
|
position = props.position,
|
|
25
25
|
prevUrl = props.prevUrl,
|
|
26
26
|
_props$cpModification = props.cpModificationRequired,
|
|
27
|
-
cpModificationRequired = _props$cpModification === undefined ? true : _props$cpModification
|
|
27
|
+
cpModificationRequired = _props$cpModification === undefined ? true : _props$cpModification,
|
|
28
|
+
_props$disablePrevUrl = props.disablePrevUrlCheckContentPlacement,
|
|
29
|
+
disablePrevUrlCheckContentPlacement = _props$disablePrevUrl === undefined ? false : _props$disablePrevUrl;
|
|
28
30
|
|
|
29
31
|
|
|
30
32
|
if (positionOverride) {
|
|
@@ -60,7 +62,7 @@ var getTargeting = function getTargeting(props) {
|
|
|
60
62
|
context = context && context.split('?')[0];
|
|
61
63
|
context = context && context.split('&')[0];
|
|
62
64
|
var content_placement_urls = [];
|
|
63
|
-
if (content_placement && prevUrl && prevUrl.length) {
|
|
65
|
+
if (content_placement && prevUrl && prevUrl.length && !disablePrevUrlCheckContentPlacement) {
|
|
64
66
|
content_placement.forEach(function (item) {
|
|
65
67
|
var path = item.path;
|
|
66
68
|
if (cpModificationRequired) {
|
package/dist/cjs/getTargeting.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./extends-7c86182f.js');
|
|
4
4
|
require('./toConsumableArray-d7797c2b.js');
|
|
5
|
-
var getTargeting = require('./getTargeting-
|
|
5
|
+
var getTargeting = require('./getTargeting-ba942d9a.js');
|
|
6
6
|
require('./_commonjsHelpers-06173234.js');
|
|
7
7
|
require('./core.get-iterator-method-5643aa10.js');
|
|
8
8
|
require('./_object-pie-083f2dd6.js');
|
package/dist/cjs/index.js
CHANGED
|
@@ -105,7 +105,7 @@ var VideoSeriesLandingPage = require('./VideoSeriesLandingPage.js');
|
|
|
105
105
|
var ArticleProgramLandingPage = require('./ArticleProgramLandingPage.js');
|
|
106
106
|
var ArticleSeriesLandingPage = require('./ArticleSeriesLandingPage.js');
|
|
107
107
|
var Schema = require('./Schema.js');
|
|
108
|
-
var getTargeting = require('./getTargeting-
|
|
108
|
+
var getTargeting = require('./getTargeting-ba942d9a.js');
|
|
109
109
|
var getKeywords = require('./getKeywords.js');
|
|
110
110
|
var getQuery = require('./getQuery.js');
|
|
111
111
|
require('./toConsumableArray-d7797c2b.js');
|
package/dist/esm/View.js
CHANGED
|
@@ -18,7 +18,7 @@ import SocialShare from './SocialShare.js';
|
|
|
18
18
|
import { r as renderAuthor, g as getSerializers } from './index-4959f8e7.js';
|
|
19
19
|
import DFPAdSlot from './AdSlot.js';
|
|
20
20
|
import { S as SeriesSlider } from './SeriesSlider-f771e20d.js';
|
|
21
|
-
import { a as getContentPlacementUrl, g as getTargeting } from './getTargeting-
|
|
21
|
+
import { a as getContentPlacementUrl, g as getTargeting } from './getTargeting-9bd28724.js';
|
|
22
22
|
import getKeywords from './getKeywords.js';
|
|
23
23
|
import urlFor from './urlFor.js';
|
|
24
24
|
import { u as urlForFile } from './urlForFile-b69adffc.js';
|
|
@@ -1949,7 +1949,9 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1949
1949
|
_props$authorPrefix = props.authorPrefix,
|
|
1950
1950
|
authorPrefix = _props$authorPrefix === undefined ? 'authors' : _props$authorPrefix,
|
|
1951
1951
|
showRelatedArticles = props.showRelatedArticles,
|
|
1952
|
-
canonicalTag = props.canonicalTag
|
|
1952
|
+
canonicalTag = props.canonicalTag,
|
|
1953
|
+
_props$disablePrevUrl = props.disablePrevUrlCheckContentPlacement,
|
|
1954
|
+
disablePrevUrlCheckContentPlacement = _props$disablePrevUrl === undefined ? false : _props$disablePrevUrl;
|
|
1953
1955
|
|
|
1954
1956
|
var _useState = useState(0),
|
|
1955
1957
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -1999,7 +2001,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1999
2001
|
var activeArticle = queueData.find(function (item) {
|
|
2000
2002
|
return item.url.current === path;
|
|
2001
2003
|
});
|
|
2002
|
-
var targeting = getTargeting({ article: activeArticle, cpModificationRequired: cpModificationRequired, position: props.position, prevUrl: prevUrl });
|
|
2004
|
+
var targeting = getTargeting({ article: activeArticle, cpModificationRequired: cpModificationRequired, position: props.position, prevUrl: prevUrl, disablePrevUrlCheckContentPlacement: disablePrevUrlCheckContentPlacement });
|
|
2003
2005
|
if (!main_43) {
|
|
2004
2006
|
lib_3.getGoogletag().then(function (googletag) {
|
|
2005
2007
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -2111,7 +2113,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
2111
2113
|
console.error(_context.t1);
|
|
2112
2114
|
|
|
2113
2115
|
case 24:
|
|
2114
|
-
targeting = getTargeting({ article: article, cpModificationRequired: cpModificationRequired, prevUrl: prevUrl });
|
|
2116
|
+
targeting = getTargeting({ article: article, cpModificationRequired: cpModificationRequired, prevUrl: prevUrl, disablePrevUrlCheckContentPlacement: disablePrevUrlCheckContentPlacement });
|
|
2115
2117
|
|
|
2116
2118
|
article.Ads = Ads.getRightItems(targeting);
|
|
2117
2119
|
setQueueData([].concat(_toConsumableArray(queueData), [article]));
|
|
@@ -22,7 +22,9 @@ var getTargeting = function getTargeting(props) {
|
|
|
22
22
|
position = props.position,
|
|
23
23
|
prevUrl = props.prevUrl,
|
|
24
24
|
_props$cpModification = props.cpModificationRequired,
|
|
25
|
-
cpModificationRequired = _props$cpModification === undefined ? true : _props$cpModification
|
|
25
|
+
cpModificationRequired = _props$cpModification === undefined ? true : _props$cpModification,
|
|
26
|
+
_props$disablePrevUrl = props.disablePrevUrlCheckContentPlacement,
|
|
27
|
+
disablePrevUrlCheckContentPlacement = _props$disablePrevUrl === undefined ? false : _props$disablePrevUrl;
|
|
26
28
|
|
|
27
29
|
|
|
28
30
|
if (positionOverride) {
|
|
@@ -58,7 +60,7 @@ var getTargeting = function getTargeting(props) {
|
|
|
58
60
|
context = context && context.split('?')[0];
|
|
59
61
|
context = context && context.split('&')[0];
|
|
60
62
|
var content_placement_urls = [];
|
|
61
|
-
if (content_placement && prevUrl && prevUrl.length) {
|
|
63
|
+
if (content_placement && prevUrl && prevUrl.length && !disablePrevUrlCheckContentPlacement) {
|
|
62
64
|
content_placement.forEach(function (item) {
|
|
63
65
|
var path = item.path;
|
|
64
66
|
if (cpModificationRequired) {
|
package/dist/esm/getTargeting.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './extends-6d8e3924.js';
|
|
2
2
|
import './toConsumableArray-f7074d7c.js';
|
|
3
|
-
export { g as default } from './getTargeting-
|
|
3
|
+
export { g as default } from './getTargeting-9bd28724.js';
|
|
4
4
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
5
5
|
import './core.get-iterator-method-ea258bb1.js';
|
|
6
6
|
import './_object-pie-133f504a.js';
|
package/dist/esm/index.js
CHANGED
|
@@ -102,7 +102,7 @@ export { default as VideoSeriesLandingPage } from './VideoSeriesLandingPage.js';
|
|
|
102
102
|
export { default as ArticleProgramLandingPage } from './ArticleProgramLandingPage.js';
|
|
103
103
|
export { default as ArticleSeriesLandingPage } from './ArticleSeriesLandingPage.js';
|
|
104
104
|
export { default as Schema } from './Schema.js';
|
|
105
|
-
export { g as getTargeting } from './getTargeting-
|
|
105
|
+
export { g as getTargeting } from './getTargeting-9bd28724.js';
|
|
106
106
|
export { default as getKeywords } from './getKeywords.js';
|
|
107
107
|
export { default as getQuery } from './getQuery.js';
|
|
108
108
|
import './toConsumableArray-f7074d7c.js';
|