@mjhls/mjh-framework 1.0.673 → 1.0.674

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.
Files changed (38) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AD300x250x600.js +16 -3
  3. package/dist/cjs/AD728x90.js +16 -3
  4. package/dist/cjs/ADFloatingFooter.js +16 -2
  5. package/dist/cjs/ADGutter.js +16 -2
  6. package/dist/cjs/{ADInfeed-9735aff2.js → ADInfeed-c676389b.js} +16 -2
  7. package/dist/cjs/ADSkyscraper.js +16 -2
  8. package/dist/cjs/ADSponsoredResources.js +16 -2
  9. package/dist/cjs/ADWebcast.js +16 -2
  10. package/dist/cjs/ADWelcome.js +16 -2
  11. package/dist/cjs/{ADlgInfeed-6bd11848.js → ADlgInfeed-57d63c87.js} +25 -1
  12. package/dist/cjs/DeckContent.js +1 -1
  13. package/dist/cjs/GridContent.js +2 -2
  14. package/dist/cjs/IssueLanding.js +2 -2
  15. package/dist/cjs/MasterDeck.js +2 -2
  16. package/dist/cjs/PartnerDetailListing.js +2 -2
  17. package/dist/cjs/QueueDeckExpanded.js +2 -2
  18. package/dist/cjs/View.js +15 -2
  19. package/dist/cjs/index.js +2 -2
  20. package/dist/esm/AD300x250x600.js +17 -4
  21. package/dist/esm/AD728x90.js +17 -4
  22. package/dist/esm/ADFloatingFooter.js +16 -2
  23. package/dist/esm/ADGutter.js +16 -2
  24. package/dist/esm/{ADInfeed-9140aa7d.js → ADInfeed-97b8cea7.js} +17 -3
  25. package/dist/esm/ADSkyscraper.js +16 -2
  26. package/dist/esm/ADSponsoredResources.js +16 -2
  27. package/dist/esm/ADWebcast.js +16 -2
  28. package/dist/esm/ADWelcome.js +16 -2
  29. package/dist/esm/{ADlgInfeed-7656ecd1.js → ADlgInfeed-3ab91c75.js} +26 -2
  30. package/dist/esm/DeckContent.js +1 -1
  31. package/dist/esm/GridContent.js +2 -2
  32. package/dist/esm/IssueLanding.js +2 -2
  33. package/dist/esm/MasterDeck.js +2 -2
  34. package/dist/esm/PartnerDetailListing.js +2 -2
  35. package/dist/esm/QueueDeckExpanded.js +2 -2
  36. package/dist/esm/View.js +15 -2
  37. package/dist/esm/index.js +2 -2
  38. package/package.json +1 -1
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- # mjh-framework v. 1.0.673
2
+ # mjh-framework v. 1.0.674
3
3
 
4
4
  > Foundation Framework
5
5
 
@@ -17,7 +17,7 @@ require('./isSymbol-04666465.js');
17
17
  require('./debounce-eb287781.js');
18
18
  var main = require('./main-b6c96c8d.js');
19
19
  var stringify = require('./stringify-7c5aff47.js');
20
- require('./slicedToArray-8f385299.js');
20
+ var slicedToArray = require('./slicedToArray-8f385299.js');
21
21
  require('./asyncToGenerator-533d476a.js');
22
22
  require('./_set-species-f92c67c5.js');
23
23
  require('./beam-7217b7e7.js');
@@ -40,6 +40,19 @@ var AD300x250x600 = function AD300x250x600(_ref) {
40
40
  pos = 'rec2-mobile';
41
41
  }
42
42
 
43
+ var _useState = React.useState(true),
44
+ _useState2 = slicedToArray._slicedToArray(_useState, 2),
45
+ previewAd = _useState2[0],
46
+ setPreviewAd = _useState2[1];
47
+
48
+ React.useEffect(function () {
49
+ var path = window && window.location && window.location.search;
50
+ // Setting flag for Ad-preview URLs
51
+ setPreviewAd(path.split('&').some(function (param) {
52
+ return param.includes('creativeId');
53
+ }));
54
+ }, []);
55
+
43
56
  var adTargeting = {
44
57
  content_placement: targeting.content_placement,
45
58
  tags: targeting.tags,
@@ -126,8 +139,8 @@ var AD300x250x600 = function AD300x250x600(_ref) {
126
139
  , sizes: ([300, 600])
127
140
  // setting responsive sizemapping to make the ads responsive.
128
141
  , sizeMapping: sizeMapping
129
- /* Passing function to check for ad creative */
130
- , checkIsAdFound: checkIsAdFound,
142
+ /* Passing function to check for ad creative only if it is not in preview. */
143
+ , checkIsAdFound: previewAd ? null : checkIsAdFound,
131
144
  style: { display: 'none' }
132
145
  }),
133
146
  React__default.createElement(
@@ -17,7 +17,7 @@ require('./isSymbol-04666465.js');
17
17
  require('./debounce-eb287781.js');
18
18
  var main = require('./main-b6c96c8d.js');
19
19
  var stringify = require('./stringify-7c5aff47.js');
20
- require('./slicedToArray-8f385299.js');
20
+ var slicedToArray = require('./slicedToArray-8f385299.js');
21
21
  require('./asyncToGenerator-533d476a.js');
22
22
  require('./_set-species-f92c67c5.js');
23
23
  require('./beam-7217b7e7.js');
@@ -40,6 +40,19 @@ var AD728x90 = function AD728x90(_ref) {
40
40
  mobileView = true;
41
41
  }
42
42
 
43
+ var _useState = React.useState(true),
44
+ _useState2 = slicedToArray._slicedToArray(_useState, 2),
45
+ previewAd = _useState2[0],
46
+ setPreviewAd = _useState2[1];
47
+
48
+ React.useEffect(function () {
49
+ var path = window && window.location && window.location.search;
50
+ // Setting flag for Ad-preview URLs
51
+ setPreviewAd(path.split('&').some(function (param) {
52
+ return param.includes('creativeId');
53
+ }));
54
+ }, []);
55
+
43
56
  var adTargeting = {
44
57
  content_placement: targeting.content_placement,
45
58
  tags: targeting.tags,
@@ -105,8 +118,8 @@ var AD728x90 = function AD728x90(_ref) {
105
118
  viewport: [1, 1],
106
119
  sizes: [[320, 50], [300, 50]]
107
120
  }]
108
- /* Passing function to check for ad creative */
109
- , checkIsAdFound: checkIsAdFound
121
+ /* Passing function to check for ad creative only if it is not in preview. */
122
+ , checkIsAdFound: previewAd ? null : checkIsAdFound
110
123
  }),
111
124
  React__default.createElement(
112
125
  'style',
@@ -54,6 +54,19 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
54
54
  widthFlag = _useState2[0],
55
55
  setWidthFlag = _useState2[1];
56
56
 
57
+ var _useState3 = React.useState(true),
58
+ _useState4 = slicedToArray._slicedToArray(_useState3, 2),
59
+ previewAd = _useState4[0],
60
+ setPreviewAd = _useState4[1];
61
+
62
+ React.useEffect(function () {
63
+ var path = window && window.location && window.location.search;
64
+ // Setting flag for Ad-preview URLs
65
+ setPreviewAd(path.split('&').some(function (param) {
66
+ return param.includes('creativeId');
67
+ }));
68
+ }, []);
69
+
57
70
  React.useEffect(function () {
58
71
  if (window && window.innerWidth > minScreenWidth) {
59
72
  setWidthFlag(true);
@@ -119,8 +132,9 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
119
132
  sizes: [[1025, 100]],
120
133
  adUnit: adUnit,
121
134
  targeting: adTargeting,
122
- refreshFlag: refreshFlag,
123
- checkIsAdFound: checkIsAdFound
135
+ refreshFlag: refreshFlag
136
+ /* Passing function to check for ad creative only if it is not in preview. */
137
+ , checkIsAdFound: previewAd ? null : checkIsAdFound
124
138
  }),
125
139
  React__default.createElement(
126
140
  'div',
@@ -55,6 +55,19 @@ var ADGutter = function ADGutter(_ref) {
55
55
  widthFlag = _useState2[0],
56
56
  setWidthFlag = _useState2[1];
57
57
 
58
+ var _useState3 = React.useState(true),
59
+ _useState4 = slicedToArray._slicedToArray(_useState3, 2),
60
+ previewAd = _useState4[0],
61
+ setPreviewAd = _useState4[1];
62
+
63
+ React.useEffect(function () {
64
+ var path = window && window.location && window.location.search;
65
+ // Setting flag for Ad-preview URLs
66
+ setPreviewAd(path.split('&').some(function (param) {
67
+ return param.includes('creativeId');
68
+ }));
69
+ }, []);
70
+
58
71
  React.useEffect(function () {
59
72
  if (window && window.innerWidth >= minScreenWidth) {
60
73
  setWidthFlag(true);
@@ -110,8 +123,9 @@ var ADGutter = function ADGutter(_ref) {
110
123
  sizes: sizes,
111
124
  adUnit: adUnit,
112
125
  targeting: adTargeting,
113
- refreshFlag: false,
114
- checkIsAdFound: checkIsAdFound
126
+ refreshFlag: false
127
+ /* Passing function to check for ad creative only if it is not in preview. */
128
+ , checkIsAdFound: previewAd ? null : checkIsAdFound
115
129
  })
116
130
  )
117
131
  ),
@@ -6,6 +6,7 @@ var React = require('react');
6
6
  var React__default = _interopDefault(React);
7
7
  var Card = _interopDefault(require('react-bootstrap/Card'));
8
8
  var stringify = require('./stringify-7c5aff47.js');
9
+ var slicedToArray = require('./slicedToArray-8f385299.js');
9
10
  var AdSlot = require('./AdSlot.js');
10
11
 
11
12
  var ADInfeed = function ADInfeed(_ref) {
@@ -19,6 +20,18 @@ var ADInfeed = function ADInfeed(_ref) {
19
20
  networkID = infeedAd.networkID,
20
21
  sizes = infeedAd.sizes;
21
22
 
23
+ var _useState = React.useState(true),
24
+ _useState2 = slicedToArray._slicedToArray(_useState, 2),
25
+ previewAd = _useState2[0],
26
+ setPreviewAd = _useState2[1];
27
+
28
+ React.useEffect(function () {
29
+ var path = window && window.location && window.location.search;
30
+ // Setting flag for Ad-preview URLs
31
+ setPreviewAd(path.split('&').some(function (param) {
32
+ return param.includes('creativeId');
33
+ }));
34
+ }, []);
22
35
 
23
36
  var collapseAd = function collapseAd() {
24
37
  var parent = document.getElementById('brand-insight-wrapper-' + (index + 1));
@@ -63,8 +76,9 @@ var ADInfeed = function ADInfeed(_ref) {
63
76
  adUnit: adUnit,
64
77
  slotId: slotId,
65
78
  targeting: targeting,
66
- sizes: sizes,
67
- checkIsAdFound: checkIsAdFound,
79
+ sizes: sizes
80
+ /* Passing function to check for ad creative only if it is not in preview. */
81
+ , checkIsAdFound: previewAd ? null : checkIsAdFound,
68
82
  refreshFlag: false
69
83
  })
70
84
  ),
@@ -57,6 +57,19 @@ var ADSkyscraper = function ADSkyscraper(_ref) {
57
57
  widthFlag = _useState2[0],
58
58
  setWidthFlag = _useState2[1];
59
59
 
60
+ var _useState3 = React.useState(true),
61
+ _useState4 = slicedToArray._slicedToArray(_useState3, 2),
62
+ previewAd = _useState4[0],
63
+ setPreviewAd = _useState4[1];
64
+
65
+ React.useEffect(function () {
66
+ var path = window && window.location && window.location.search;
67
+ // Setting flag for Ad-preview URLs
68
+ setPreviewAd(path.split('&').some(function (param) {
69
+ return param.includes('creativeId');
70
+ }));
71
+ }, []);
72
+
60
73
  React.useEffect(function () {
61
74
  // Setting flag to hide ad in screens < 1200px.
62
75
  if (window && window.innerWidth >= minScreenWidth) {
@@ -113,8 +126,9 @@ var ADSkyscraper = function ADSkyscraper(_ref) {
113
126
  sizes: sizes,
114
127
  adUnit: adUnit,
115
128
  targeting: adTargeting,
116
- refreshFlag: false,
117
- checkIsAdFound: checkIsAdFound
129
+ refreshFlag: false
130
+ /* Passing function to check for ad creative only if it is not in preview. */
131
+ , checkIsAdFound: previewAd ? null : checkIsAdFound
118
132
  })
119
133
  ),
120
134
  React__default.createElement(
@@ -54,6 +54,19 @@ var ADSponsoredResources = function ADSponsoredResources(_ref) {
54
54
  widthFlag = _useState2[0],
55
55
  setWidthFlag = _useState2[1];
56
56
 
57
+ var _useState3 = React.useState(true),
58
+ _useState4 = slicedToArray._slicedToArray(_useState3, 2),
59
+ previewAd = _useState4[0],
60
+ setPreviewAd = _useState4[1];
61
+
62
+ React.useEffect(function () {
63
+ var path = window && window.location && window.location.search;
64
+ // Setting flag for Ad-preview URLs
65
+ setPreviewAd(path.split('&').some(function (param) {
66
+ return param.includes('creativeId');
67
+ }));
68
+ }, []);
69
+
57
70
  React.useEffect(function () {
58
71
  if (window && window.innerWidth >= minScreenWidth) {
59
72
  setWidthFlag(true);
@@ -108,8 +121,9 @@ var ADSponsoredResources = function ADSponsoredResources(_ref) {
108
121
  sizes: sizes,
109
122
  adUnit: adUnit,
110
123
  targeting: adTargeting,
111
- refreshFlag: false,
112
- checkIsAdFound: checkIsAdFound
124
+ refreshFlag: false
125
+ /* Passing function to check for ad creative only if it is not in preview. */
126
+ , checkIsAdFound: previewAd ? null : checkIsAdFound
113
127
  })
114
128
  ),
115
129
  React__default.createElement(
@@ -57,6 +57,19 @@ var ADWebcast = function ADWebcast(_ref) {
57
57
  widthFlag = _useState2[0],
58
58
  setWidthFlag = _useState2[1];
59
59
 
60
+ var _useState3 = React.useState(true),
61
+ _useState4 = slicedToArray._slicedToArray(_useState3, 2),
62
+ previewAd = _useState4[0],
63
+ setPreviewAd = _useState4[1];
64
+
65
+ React.useEffect(function () {
66
+ var path = window && window.location && window.location.search;
67
+ // Setting flag for Ad-preview URLs
68
+ setPreviewAd(path.split('&').some(function (param) {
69
+ return param.includes('creativeId');
70
+ }));
71
+ }, []);
72
+
60
73
  React.useEffect(function () {
61
74
  if (window && window.innerWidth >= minScreenWidth) {
62
75
  setWidthFlag(true);
@@ -114,8 +127,9 @@ var ADWebcast = function ADWebcast(_ref) {
114
127
  , sizeMapping: [{ viewport: [1200, 0], sizes: sizes }, { viewport: [0, 0], sizes: [0, 0] }],
115
128
  adUnit: adUnit,
116
129
  targeting: adTargeting,
117
- refreshFlag: false,
118
- checkIsAdFound: checkIsAdFound
130
+ refreshFlag: false
131
+ /* Passing function to check for ad creative only if it is not in preview. */
132
+ , checkIsAdFound: previewAd ? null : checkIsAdFound
119
133
  })
120
134
  ),
121
135
  React__default.createElement(
@@ -59,6 +59,19 @@ var ADWelcome = function ADWelcome(_ref) {
59
59
  timeLeft = _useState2[0],
60
60
  setTimeLeft = _useState2[1];
61
61
 
62
+ var _useState3 = React.useState(true),
63
+ _useState4 = slicedToArray._slicedToArray(_useState3, 2),
64
+ previewAd = _useState4[0],
65
+ setPreviewAd = _useState4[1];
66
+
67
+ React.useEffect(function () {
68
+ var path = window && window.location && window.location.search;
69
+ // Setting flag for Ad-preview URLs
70
+ setPreviewAd(path.split('&').some(function (param) {
71
+ return param.includes('creativeId');
72
+ }));
73
+ }, []);
74
+
62
75
  React.useEffect(function () {
63
76
  if (timeLeft > 0) {
64
77
  setTimeout(function () {
@@ -151,8 +164,9 @@ var ADWelcome = function ADWelcome(_ref) {
151
164
  sizes: sizes,
152
165
  adUnit: adUnit,
153
166
  targeting: adTargeting,
154
- refreshFlag: false,
155
- checkIsAdFound: checkIsAdFound
167
+ refreshFlag: false
168
+ /* Passing function to check for ad creative only if it is not in preview. */
169
+ , checkIsAdFound: previewAd ? null : checkIsAdFound
156
170
  })
157
171
  ),
158
172
  React__default.createElement(
@@ -6,6 +6,7 @@ var React = require('react');
6
6
  var React__default = _interopDefault(React);
7
7
  require('react-bootstrap/Card');
8
8
  var stringify = require('./stringify-7c5aff47.js');
9
+ var slicedToArray = require('./slicedToArray-8f385299.js');
9
10
  var AdSlot = require('./AdSlot.js');
10
11
 
11
12
  var ADlgInfeed = function ADlgInfeed(props) {
@@ -25,6 +26,19 @@ var ADlgInfeed = function ADlgInfeed(props) {
25
26
  parent.style.display = 'none';
26
27
  };
27
28
 
29
+ var _useState = React.useState(true),
30
+ _useState2 = slicedToArray._slicedToArray(_useState, 2),
31
+ previewAd = _useState2[0],
32
+ setPreviewAd = _useState2[1];
33
+
34
+ React.useEffect(function () {
35
+ var path = window && window.location && window.location.search;
36
+ // Setting flag for Ad-preview URLs
37
+ setPreviewAd(path.split('&').some(function (param) {
38
+ return param.includes('creativeId');
39
+ }));
40
+ }, []);
41
+
28
42
  var checkIsAdFound = function checkIsAdFound(isFound, adData) {
29
43
  if (isFound) {
30
44
  var parent = document.getElementById('lg-infeed-wrapper-' + (index + 1));
@@ -52,7 +66,17 @@ var ADlgInfeed = function ADlgInfeed(props) {
52
66
  return React__default.createElement(
53
67
  'div',
54
68
  { id: 'lg-infeed-wrapper-' + (index + 1), className: 'lg-infeed-wrapper', style: { display: 'none', flex: '1 0 auto' } },
55
- React__default.createElement(AdSlot, { className: className, networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, sizes: sizes, checkIsAdFound: checkIsAdFound, refreshFlag: false }),
69
+ React__default.createElement(AdSlot, {
70
+ className: className,
71
+ networkID: networkID,
72
+ adUnit: adUnit,
73
+ slotId: slotId,
74
+ targeting: targeting,
75
+ sizes: sizes
76
+ /* Passing function to check for ad creative only if it is not in preview. */
77
+ , checkIsAdFound: previewAd ? null : checkIsAdFound,
78
+ refreshFlag: false
79
+ }),
56
80
  React__default.createElement(
57
81
  'style',
58
82
  { jsx: 'true' },
@@ -43,7 +43,7 @@ require('./asyncToGenerator-533d476a.js');
43
43
  require('./_set-species-f92c67c5.js');
44
44
  require('./beam-7217b7e7.js');
45
45
  require('./AdSlot.js');
46
- var ADInfeed = require('./ADInfeed-9735aff2.js');
46
+ var ADInfeed = require('./ADInfeed-c676389b.js');
47
47
 
48
48
  var DeckContent = function (_React$Component) {
49
49
  inherits._inherits(DeckContent, _React$Component);
@@ -43,9 +43,9 @@ require('./asyncToGenerator-533d476a.js');
43
43
  require('./_set-species-f92c67c5.js');
44
44
  require('./beam-7217b7e7.js');
45
45
  require('./AdSlot.js');
46
- var ADInfeed = require('./ADInfeed-9735aff2.js');
46
+ var ADInfeed = require('./ADInfeed-c676389b.js');
47
47
  var lodash = require('./lodash-fc2922d0.js');
48
- var ADlgInfeed = require('./ADlgInfeed-6bd11848.js');
48
+ var ADlgInfeed = require('./ADlgInfeed-57d63c87.js');
49
49
  var getContentCategory = require('./getContentCategory-f38a4c00.js');
50
50
  var get = require('./get-68c52cb1.js');
51
51
  require('./AD.js');
@@ -34,9 +34,9 @@ require('./asyncToGenerator-533d476a.js');
34
34
  require('./_set-species-f92c67c5.js');
35
35
  require('./beam-7217b7e7.js');
36
36
  require('./AdSlot.js');
37
- require('./ADInfeed-9735aff2.js');
37
+ require('./ADInfeed-c676389b.js');
38
38
  require('./lodash-fc2922d0.js');
39
- require('./ADlgInfeed-6bd11848.js');
39
+ require('./ADlgInfeed-57d63c87.js');
40
40
  require('./getContentCategory-f38a4c00.js');
41
41
  require('./AuthorComponent-bb831b74.js');
42
42
  require('react-bootstrap');
@@ -41,9 +41,9 @@ var asyncToGenerator = require('./asyncToGenerator-533d476a.js');
41
41
  require('./_set-species-f92c67c5.js');
42
42
  require('./beam-7217b7e7.js');
43
43
  require('./AdSlot.js');
44
- var ADInfeed = require('./ADInfeed-9735aff2.js');
44
+ var ADInfeed = require('./ADInfeed-c676389b.js');
45
45
  var lodash = require('./lodash-fc2922d0.js');
46
- var ADlgInfeed = require('./ADlgInfeed-6bd11848.js');
46
+ var ADlgInfeed = require('./ADlgInfeed-57d63c87.js');
47
47
 
48
48
  var MasterDeck = function (_React$Component) {
49
49
  inherits._inherits(MasterDeck, _React$Component);
@@ -41,9 +41,9 @@ var asyncToGenerator = require('./asyncToGenerator-533d476a.js');
41
41
  require('./_set-species-f92c67c5.js');
42
42
  require('./beam-7217b7e7.js');
43
43
  require('./AdSlot.js');
44
- require('./ADInfeed-9735aff2.js');
44
+ require('./ADInfeed-c676389b.js');
45
45
  require('./lodash-fc2922d0.js');
46
- require('./ADlgInfeed-6bd11848.js');
46
+ require('./ADlgInfeed-57d63c87.js');
47
47
  require('./getContentCategory-f38a4c00.js');
48
48
  require('./AuthorComponent-bb831b74.js');
49
49
  var BlockContent = require('./BlockContent-88f69acd.js');
@@ -35,9 +35,9 @@ require('./asyncToGenerator-533d476a.js');
35
35
  require('./_set-species-f92c67c5.js');
36
36
  require('./beam-7217b7e7.js');
37
37
  require('./AdSlot.js');
38
- var ADInfeed = require('./ADInfeed-9735aff2.js');
38
+ var ADInfeed = require('./ADInfeed-c676389b.js');
39
39
  var lodash = require('./lodash-fc2922d0.js');
40
- var ADlgInfeed = require('./ADlgInfeed-6bd11848.js');
40
+ var ADlgInfeed = require('./ADlgInfeed-57d63c87.js');
41
41
  var getContentCategory = require('./getContentCategory-f38a4c00.js');
42
42
  var AuthorComponent = require('./AuthorComponent-bb831b74.js');
43
43
  var reactBootstrap = require('react-bootstrap');
package/dist/cjs/View.js CHANGED
@@ -446,6 +446,19 @@ var Article = function Article(props) {
446
446
  articleBody = _useState10[0],
447
447
  setArticleBody = _useState10[1];
448
448
 
449
+ var _useState11 = React.useState(true),
450
+ _useState12 = slicedToArray._slicedToArray(_useState11, 2),
451
+ previewAd = _useState12[0],
452
+ setPreviewAd = _useState12[1];
453
+
454
+ React.useEffect(function () {
455
+ var path = window && window.location && window.location.search;
456
+ // Setting flag for Ad-preview URLs
457
+ setPreviewAd(path.split('&').some(function (param) {
458
+ return param.includes('creativeId');
459
+ }));
460
+ }, []);
461
+
449
462
  var isCutomPage = function isCutomPage(article) {
450
463
  var url = article.url.current;
451
464
 
@@ -629,7 +642,7 @@ var Article = function Article(props) {
629
642
  React__default.createElement(
630
643
  'div',
631
644
  { id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
632
- React__default.createElement(AdSlot, _extends._extends({}, payload.contextualAD, { refreshFlag: false, checkIsAdFound: checkIsAdFound }))
645
+ React__default.createElement(AdSlot, _extends._extends({}, payload.contextualAD, { refreshFlag: false, checkIsAdFound: previewAd ? null : checkIsAdFound }))
633
646
  ),
634
647
  React__default.createElement('span', { className: 'clearfix' }),
635
648
  React__default.createElement(
@@ -701,7 +714,7 @@ var Article = function Article(props) {
701
714
  (visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) && React__default.createElement(
702
715
  'div',
703
716
  { id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
704
- React__default.createElement(AdSlot, _extends._extends({}, payload.contextualAD, { refreshFlag: false, checkIsAdFound: _checkIsAdFound }))
717
+ React__default.createElement(AdSlot, _extends._extends({}, payload.contextualAD, { refreshFlag: false, checkIsAdFound: previewAd ? null : _checkIsAdFound }))
705
718
  ),
706
719
  contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
707
720
  React__default.createElement(BlockContent.BlockContent, _extends._extends({
package/dist/cjs/index.js CHANGED
@@ -41,10 +41,10 @@ require('./asyncToGenerator-533d476a.js');
41
41
  require('./_set-species-f92c67c5.js');
42
42
  var Segment = require('./beam-7217b7e7.js');
43
43
  var AdSlot = require('./AdSlot.js');
44
- require('./ADInfeed-9735aff2.js');
44
+ require('./ADInfeed-c676389b.js');
45
45
  var DeckContent = require('./DeckContent.js');
46
46
  require('./lodash-fc2922d0.js');
47
- require('./ADlgInfeed-6bd11848.js');
47
+ require('./ADlgInfeed-57d63c87.js');
48
48
  require('./getContentCategory-f38a4c00.js');
49
49
  require('./get-68c52cb1.js');
50
50
  var AD = require('./AD.js');
@@ -5,14 +5,14 @@ import './_library-528f1934.js';
5
5
  import './_iter-detect-59409a32.js';
6
6
  import './core.get-iterator-method-54d2e411.js';
7
7
  import './web.dom.iterable-8956f9a5.js';
8
- import React__default from 'react';
8
+ import React__default, { useState, useEffect } from 'react';
9
9
  import './index-93ec3c59.js';
10
10
  import 'prop-types';
11
11
  import './isSymbol-807e927e.js';
12
12
  import './debounce-1a993acf.js';
13
13
  import { m as main_39 } from './main-0465b2a0.js';
14
14
  import { _ as _JSON$stringify } from './stringify-008c8802.js';
15
- import './slicedToArray-7021e5df.js';
15
+ import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
16
16
  import './asyncToGenerator-7c654f36.js';
17
17
  import './_set-species-cede29f8.js';
18
18
  import './beam-681a9749.js';
@@ -35,6 +35,19 @@ var AD300x250x600 = function AD300x250x600(_ref) {
35
35
  pos = 'rec2-mobile';
36
36
  }
37
37
 
38
+ var _useState = useState(true),
39
+ _useState2 = _slicedToArray(_useState, 2),
40
+ previewAd = _useState2[0],
41
+ setPreviewAd = _useState2[1];
42
+
43
+ useEffect(function () {
44
+ var path = window && window.location && window.location.search;
45
+ // Setting flag for Ad-preview URLs
46
+ setPreviewAd(path.split('&').some(function (param) {
47
+ return param.includes('creativeId');
48
+ }));
49
+ }, []);
50
+
38
51
  var adTargeting = {
39
52
  content_placement: targeting.content_placement,
40
53
  tags: targeting.tags,
@@ -121,8 +134,8 @@ var AD300x250x600 = function AD300x250x600(_ref) {
121
134
  , sizes: ([300, 600])
122
135
  // setting responsive sizemapping to make the ads responsive.
123
136
  , sizeMapping: sizeMapping
124
- /* Passing function to check for ad creative */
125
- , checkIsAdFound: checkIsAdFound,
137
+ /* Passing function to check for ad creative only if it is not in preview. */
138
+ , checkIsAdFound: previewAd ? null : checkIsAdFound,
126
139
  style: { display: 'none' }
127
140
  }),
128
141
  React__default.createElement(
@@ -5,14 +5,14 @@ import './_library-528f1934.js';
5
5
  import './_iter-detect-59409a32.js';
6
6
  import './core.get-iterator-method-54d2e411.js';
7
7
  import './web.dom.iterable-8956f9a5.js';
8
- import React__default from 'react';
8
+ import React__default, { useState, useEffect } from 'react';
9
9
  import './index-93ec3c59.js';
10
10
  import 'prop-types';
11
11
  import './isSymbol-807e927e.js';
12
12
  import './debounce-1a993acf.js';
13
13
  import { m as main_39 } from './main-0465b2a0.js';
14
14
  import { _ as _JSON$stringify } from './stringify-008c8802.js';
15
- import './slicedToArray-7021e5df.js';
15
+ import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
16
16
  import './asyncToGenerator-7c654f36.js';
17
17
  import './_set-species-cede29f8.js';
18
18
  import './beam-681a9749.js';
@@ -35,6 +35,19 @@ var AD728x90 = function AD728x90(_ref) {
35
35
  mobileView = true;
36
36
  }
37
37
 
38
+ var _useState = useState(true),
39
+ _useState2 = _slicedToArray(_useState, 2),
40
+ previewAd = _useState2[0],
41
+ setPreviewAd = _useState2[1];
42
+
43
+ useEffect(function () {
44
+ var path = window && window.location && window.location.search;
45
+ // Setting flag for Ad-preview URLs
46
+ setPreviewAd(path.split('&').some(function (param) {
47
+ return param.includes('creativeId');
48
+ }));
49
+ }, []);
50
+
38
51
  var adTargeting = {
39
52
  content_placement: targeting.content_placement,
40
53
  tags: targeting.tags,
@@ -100,8 +113,8 @@ var AD728x90 = function AD728x90(_ref) {
100
113
  viewport: [1, 1],
101
114
  sizes: [[320, 50], [300, 50]]
102
115
  }]
103
- /* Passing function to check for ad creative */
104
- , checkIsAdFound: checkIsAdFound
116
+ /* Passing function to check for ad creative only if it is not in preview. */
117
+ , checkIsAdFound: previewAd ? null : checkIsAdFound
105
118
  }),
106
119
  React__default.createElement(
107
120
  'style',
@@ -49,6 +49,19 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
49
49
  widthFlag = _useState2[0],
50
50
  setWidthFlag = _useState2[1];
51
51
 
52
+ var _useState3 = useState(true),
53
+ _useState4 = _slicedToArray(_useState3, 2),
54
+ previewAd = _useState4[0],
55
+ setPreviewAd = _useState4[1];
56
+
57
+ useEffect(function () {
58
+ var path = window && window.location && window.location.search;
59
+ // Setting flag for Ad-preview URLs
60
+ setPreviewAd(path.split('&').some(function (param) {
61
+ return param.includes('creativeId');
62
+ }));
63
+ }, []);
64
+
52
65
  useEffect(function () {
53
66
  if (window && window.innerWidth > minScreenWidth) {
54
67
  setWidthFlag(true);
@@ -114,8 +127,9 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
114
127
  sizes: [[1025, 100]],
115
128
  adUnit: adUnit,
116
129
  targeting: adTargeting,
117
- refreshFlag: refreshFlag,
118
- checkIsAdFound: checkIsAdFound
130
+ refreshFlag: refreshFlag
131
+ /* Passing function to check for ad creative only if it is not in preview. */
132
+ , checkIsAdFound: previewAd ? null : checkIsAdFound
119
133
  }),
120
134
  React__default.createElement(
121
135
  'div',
@@ -50,6 +50,19 @@ var ADGutter = function ADGutter(_ref) {
50
50
  widthFlag = _useState2[0],
51
51
  setWidthFlag = _useState2[1];
52
52
 
53
+ var _useState3 = useState(true),
54
+ _useState4 = _slicedToArray(_useState3, 2),
55
+ previewAd = _useState4[0],
56
+ setPreviewAd = _useState4[1];
57
+
58
+ useEffect(function () {
59
+ var path = window && window.location && window.location.search;
60
+ // Setting flag for Ad-preview URLs
61
+ setPreviewAd(path.split('&').some(function (param) {
62
+ return param.includes('creativeId');
63
+ }));
64
+ }, []);
65
+
53
66
  useEffect(function () {
54
67
  if (window && window.innerWidth >= minScreenWidth) {
55
68
  setWidthFlag(true);
@@ -105,8 +118,9 @@ var ADGutter = function ADGutter(_ref) {
105
118
  sizes: sizes,
106
119
  adUnit: adUnit,
107
120
  targeting: adTargeting,
108
- refreshFlag: false,
109
- checkIsAdFound: checkIsAdFound
121
+ refreshFlag: false
122
+ /* Passing function to check for ad creative only if it is not in preview. */
123
+ , checkIsAdFound: previewAd ? null : checkIsAdFound
110
124
  })
111
125
  )
112
126
  ),
@@ -1,6 +1,7 @@
1
- import React__default from 'react';
1
+ import React__default, { useState, useEffect } from 'react';
2
2
  import Card from 'react-bootstrap/Card';
3
3
  import { _ as _JSON$stringify } from './stringify-008c8802.js';
4
+ import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
4
5
  import DFPAdSlot from './AdSlot.js';
5
6
 
6
7
  var ADInfeed = function ADInfeed(_ref) {
@@ -14,6 +15,18 @@ var ADInfeed = function ADInfeed(_ref) {
14
15
  networkID = infeedAd.networkID,
15
16
  sizes = infeedAd.sizes;
16
17
 
18
+ var _useState = useState(true),
19
+ _useState2 = _slicedToArray(_useState, 2),
20
+ previewAd = _useState2[0],
21
+ setPreviewAd = _useState2[1];
22
+
23
+ useEffect(function () {
24
+ var path = window && window.location && window.location.search;
25
+ // Setting flag for Ad-preview URLs
26
+ setPreviewAd(path.split('&').some(function (param) {
27
+ return param.includes('creativeId');
28
+ }));
29
+ }, []);
17
30
 
18
31
  var collapseAd = function collapseAd() {
19
32
  var parent = document.getElementById('brand-insight-wrapper-' + (index + 1));
@@ -58,8 +71,9 @@ var ADInfeed = function ADInfeed(_ref) {
58
71
  adUnit: adUnit,
59
72
  slotId: slotId,
60
73
  targeting: targeting,
61
- sizes: sizes,
62
- checkIsAdFound: checkIsAdFound,
74
+ sizes: sizes
75
+ /* Passing function to check for ad creative only if it is not in preview. */
76
+ , checkIsAdFound: previewAd ? null : checkIsAdFound,
63
77
  refreshFlag: false
64
78
  })
65
79
  ),
@@ -52,6 +52,19 @@ var ADSkyscraper = function ADSkyscraper(_ref) {
52
52
  widthFlag = _useState2[0],
53
53
  setWidthFlag = _useState2[1];
54
54
 
55
+ var _useState3 = useState(true),
56
+ _useState4 = _slicedToArray(_useState3, 2),
57
+ previewAd = _useState4[0],
58
+ setPreviewAd = _useState4[1];
59
+
60
+ useEffect(function () {
61
+ var path = window && window.location && window.location.search;
62
+ // Setting flag for Ad-preview URLs
63
+ setPreviewAd(path.split('&').some(function (param) {
64
+ return param.includes('creativeId');
65
+ }));
66
+ }, []);
67
+
55
68
  useEffect(function () {
56
69
  // Setting flag to hide ad in screens < 1200px.
57
70
  if (window && window.innerWidth >= minScreenWidth) {
@@ -108,8 +121,9 @@ var ADSkyscraper = function ADSkyscraper(_ref) {
108
121
  sizes: sizes,
109
122
  adUnit: adUnit,
110
123
  targeting: adTargeting,
111
- refreshFlag: false,
112
- checkIsAdFound: checkIsAdFound
124
+ refreshFlag: false
125
+ /* Passing function to check for ad creative only if it is not in preview. */
126
+ , checkIsAdFound: previewAd ? null : checkIsAdFound
113
127
  })
114
128
  ),
115
129
  React__default.createElement(
@@ -49,6 +49,19 @@ var ADSponsoredResources = function ADSponsoredResources(_ref) {
49
49
  widthFlag = _useState2[0],
50
50
  setWidthFlag = _useState2[1];
51
51
 
52
+ var _useState3 = useState(true),
53
+ _useState4 = _slicedToArray(_useState3, 2),
54
+ previewAd = _useState4[0],
55
+ setPreviewAd = _useState4[1];
56
+
57
+ useEffect(function () {
58
+ var path = window && window.location && window.location.search;
59
+ // Setting flag for Ad-preview URLs
60
+ setPreviewAd(path.split('&').some(function (param) {
61
+ return param.includes('creativeId');
62
+ }));
63
+ }, []);
64
+
52
65
  useEffect(function () {
53
66
  if (window && window.innerWidth >= minScreenWidth) {
54
67
  setWidthFlag(true);
@@ -103,8 +116,9 @@ var ADSponsoredResources = function ADSponsoredResources(_ref) {
103
116
  sizes: sizes,
104
117
  adUnit: adUnit,
105
118
  targeting: adTargeting,
106
- refreshFlag: false,
107
- checkIsAdFound: checkIsAdFound
119
+ refreshFlag: false
120
+ /* Passing function to check for ad creative only if it is not in preview. */
121
+ , checkIsAdFound: previewAd ? null : checkIsAdFound
108
122
  })
109
123
  ),
110
124
  React__default.createElement(
@@ -52,6 +52,19 @@ var ADWebcast = function ADWebcast(_ref) {
52
52
  widthFlag = _useState2[0],
53
53
  setWidthFlag = _useState2[1];
54
54
 
55
+ var _useState3 = useState(true),
56
+ _useState4 = _slicedToArray(_useState3, 2),
57
+ previewAd = _useState4[0],
58
+ setPreviewAd = _useState4[1];
59
+
60
+ useEffect(function () {
61
+ var path = window && window.location && window.location.search;
62
+ // Setting flag for Ad-preview URLs
63
+ setPreviewAd(path.split('&').some(function (param) {
64
+ return param.includes('creativeId');
65
+ }));
66
+ }, []);
67
+
55
68
  useEffect(function () {
56
69
  if (window && window.innerWidth >= minScreenWidth) {
57
70
  setWidthFlag(true);
@@ -109,8 +122,9 @@ var ADWebcast = function ADWebcast(_ref) {
109
122
  , sizeMapping: [{ viewport: [1200, 0], sizes: sizes }, { viewport: [0, 0], sizes: [0, 0] }],
110
123
  adUnit: adUnit,
111
124
  targeting: adTargeting,
112
- refreshFlag: false,
113
- checkIsAdFound: checkIsAdFound
125
+ refreshFlag: false
126
+ /* Passing function to check for ad creative only if it is not in preview. */
127
+ , checkIsAdFound: previewAd ? null : checkIsAdFound
114
128
  })
115
129
  ),
116
130
  React__default.createElement(
@@ -54,6 +54,19 @@ var ADWelcome = function ADWelcome(_ref) {
54
54
  timeLeft = _useState2[0],
55
55
  setTimeLeft = _useState2[1];
56
56
 
57
+ var _useState3 = useState(true),
58
+ _useState4 = _slicedToArray(_useState3, 2),
59
+ previewAd = _useState4[0],
60
+ setPreviewAd = _useState4[1];
61
+
62
+ useEffect(function () {
63
+ var path = window && window.location && window.location.search;
64
+ // Setting flag for Ad-preview URLs
65
+ setPreviewAd(path.split('&').some(function (param) {
66
+ return param.includes('creativeId');
67
+ }));
68
+ }, []);
69
+
57
70
  useEffect(function () {
58
71
  if (timeLeft > 0) {
59
72
  setTimeout(function () {
@@ -146,8 +159,9 @@ var ADWelcome = function ADWelcome(_ref) {
146
159
  sizes: sizes,
147
160
  adUnit: adUnit,
148
161
  targeting: adTargeting,
149
- refreshFlag: false,
150
- checkIsAdFound: checkIsAdFound
162
+ refreshFlag: false
163
+ /* Passing function to check for ad creative only if it is not in preview. */
164
+ , checkIsAdFound: previewAd ? null : checkIsAdFound
151
165
  })
152
166
  ),
153
167
  React__default.createElement(
@@ -1,6 +1,7 @@
1
- import React__default from 'react';
1
+ import React__default, { useState, useEffect } from 'react';
2
2
  import 'react-bootstrap/Card';
3
3
  import { _ as _JSON$stringify } from './stringify-008c8802.js';
4
+ import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
4
5
  import DFPAdSlot from './AdSlot.js';
5
6
 
6
7
  var ADlgInfeed = function ADlgInfeed(props) {
@@ -20,6 +21,19 @@ var ADlgInfeed = function ADlgInfeed(props) {
20
21
  parent.style.display = 'none';
21
22
  };
22
23
 
24
+ var _useState = useState(true),
25
+ _useState2 = _slicedToArray(_useState, 2),
26
+ previewAd = _useState2[0],
27
+ setPreviewAd = _useState2[1];
28
+
29
+ useEffect(function () {
30
+ var path = window && window.location && window.location.search;
31
+ // Setting flag for Ad-preview URLs
32
+ setPreviewAd(path.split('&').some(function (param) {
33
+ return param.includes('creativeId');
34
+ }));
35
+ }, []);
36
+
23
37
  var checkIsAdFound = function checkIsAdFound(isFound, adData) {
24
38
  if (isFound) {
25
39
  var parent = document.getElementById('lg-infeed-wrapper-' + (index + 1));
@@ -47,7 +61,17 @@ var ADlgInfeed = function ADlgInfeed(props) {
47
61
  return React__default.createElement(
48
62
  'div',
49
63
  { id: 'lg-infeed-wrapper-' + (index + 1), className: 'lg-infeed-wrapper', style: { display: 'none', flex: '1 0 auto' } },
50
- React__default.createElement(DFPAdSlot, { className: className, networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, sizes: sizes, checkIsAdFound: checkIsAdFound, refreshFlag: false }),
64
+ React__default.createElement(DFPAdSlot, {
65
+ className: className,
66
+ networkID: networkID,
67
+ adUnit: adUnit,
68
+ slotId: slotId,
69
+ targeting: targeting,
70
+ sizes: sizes
71
+ /* Passing function to check for ad creative only if it is not in preview. */
72
+ , checkIsAdFound: previewAd ? null : checkIsAdFound,
73
+ refreshFlag: false
74
+ }),
51
75
  React__default.createElement(
52
76
  'style',
53
77
  { jsx: 'true' },
@@ -37,7 +37,7 @@ import './asyncToGenerator-7c654f36.js';
37
37
  import './_set-species-cede29f8.js';
38
38
  import './beam-681a9749.js';
39
39
  import './AdSlot.js';
40
- import { A as ADInfeed } from './ADInfeed-9140aa7d.js';
40
+ import { A as ADInfeed } from './ADInfeed-97b8cea7.js';
41
41
 
42
42
  var DeckContent = function (_React$Component) {
43
43
  _inherits(DeckContent, _React$Component);
@@ -37,9 +37,9 @@ import './asyncToGenerator-7c654f36.js';
37
37
  import './_set-species-cede29f8.js';
38
38
  import './beam-681a9749.js';
39
39
  import './AdSlot.js';
40
- import { A as ADInfeed } from './ADInfeed-9140aa7d.js';
40
+ import { A as ADInfeed } from './ADInfeed-97b8cea7.js';
41
41
  import { l as lodash } from './lodash-17fdfebb.js';
42
- import { A as ADlgInfeed } from './ADlgInfeed-7656ecd1.js';
42
+ import { A as ADlgInfeed } from './ADlgInfeed-3ab91c75.js';
43
43
  import { g as getContentCategory } from './getContentCategory-15dcc413.js';
44
44
  import { g as get_1 } from './get-5ee14cda.js';
45
45
  import './AD.js';
@@ -29,9 +29,9 @@ import './asyncToGenerator-7c654f36.js';
29
29
  import './_set-species-cede29f8.js';
30
30
  import './beam-681a9749.js';
31
31
  import './AdSlot.js';
32
- import './ADInfeed-9140aa7d.js';
32
+ import './ADInfeed-97b8cea7.js';
33
33
  import './lodash-17fdfebb.js';
34
- import './ADlgInfeed-7656ecd1.js';
34
+ import './ADlgInfeed-3ab91c75.js';
35
35
  import './getContentCategory-15dcc413.js';
36
36
  import './AuthorComponent-00f13201.js';
37
37
  import 'react-bootstrap';
@@ -35,9 +35,9 @@ import { _ as _Promise } from './asyncToGenerator-7c654f36.js';
35
35
  import './_set-species-cede29f8.js';
36
36
  import './beam-681a9749.js';
37
37
  import './AdSlot.js';
38
- import { A as ADInfeed } from './ADInfeed-9140aa7d.js';
38
+ import { A as ADInfeed } from './ADInfeed-97b8cea7.js';
39
39
  import { l as lodash } from './lodash-17fdfebb.js';
40
- import { A as ADlgInfeed } from './ADlgInfeed-7656ecd1.js';
40
+ import { A as ADlgInfeed } from './ADlgInfeed-3ab91c75.js';
41
41
 
42
42
  var MasterDeck = function (_React$Component) {
43
43
  _inherits(MasterDeck, _React$Component);
@@ -36,9 +36,9 @@ import { a as _asyncToGenerator, r as regenerator, _ as _Promise } from './async
36
36
  import './_set-species-cede29f8.js';
37
37
  import './beam-681a9749.js';
38
38
  import './AdSlot.js';
39
- import './ADInfeed-9140aa7d.js';
39
+ import './ADInfeed-97b8cea7.js';
40
40
  import './lodash-17fdfebb.js';
41
- import './ADlgInfeed-7656ecd1.js';
41
+ import './ADlgInfeed-3ab91c75.js';
42
42
  import './getContentCategory-15dcc413.js';
43
43
  import './AuthorComponent-00f13201.js';
44
44
  import { B as BlockContent } from './BlockContent-a614acdf.js';
@@ -29,9 +29,9 @@ import './asyncToGenerator-7c654f36.js';
29
29
  import './_set-species-cede29f8.js';
30
30
  import './beam-681a9749.js';
31
31
  import './AdSlot.js';
32
- import { A as ADInfeed } from './ADInfeed-9140aa7d.js';
32
+ import { A as ADInfeed } from './ADInfeed-97b8cea7.js';
33
33
  import { l as lodash } from './lodash-17fdfebb.js';
34
- import { A as ADlgInfeed } from './ADlgInfeed-7656ecd1.js';
34
+ import { A as ADlgInfeed } from './ADlgInfeed-3ab91c75.js';
35
35
  import { g as getContentCategory } from './getContentCategory-15dcc413.js';
36
36
  import { A as AuthorComponent } from './AuthorComponent-00f13201.js';
37
37
  import { Container, Media } from 'react-bootstrap';
package/dist/esm/View.js CHANGED
@@ -440,6 +440,19 @@ var Article = function Article(props) {
440
440
  articleBody = _useState10[0],
441
441
  setArticleBody = _useState10[1];
442
442
 
443
+ var _useState11 = useState(true),
444
+ _useState12 = _slicedToArray(_useState11, 2),
445
+ previewAd = _useState12[0],
446
+ setPreviewAd = _useState12[1];
447
+
448
+ useEffect(function () {
449
+ var path = window && window.location && window.location.search;
450
+ // Setting flag for Ad-preview URLs
451
+ setPreviewAd(path.split('&').some(function (param) {
452
+ return param.includes('creativeId');
453
+ }));
454
+ }, []);
455
+
443
456
  var isCutomPage = function isCutomPage(article) {
444
457
  var url = article.url.current;
445
458
 
@@ -623,7 +636,7 @@ var Article = function Article(props) {
623
636
  React__default.createElement(
624
637
  'div',
625
638
  { id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
626
- React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, { refreshFlag: false, checkIsAdFound: checkIsAdFound }))
639
+ React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, { refreshFlag: false, checkIsAdFound: previewAd ? null : checkIsAdFound }))
627
640
  ),
628
641
  React__default.createElement('span', { className: 'clearfix' }),
629
642
  React__default.createElement(
@@ -695,7 +708,7 @@ var Article = function Article(props) {
695
708
  (visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) && React__default.createElement(
696
709
  'div',
697
710
  { id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
698
- React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, { refreshFlag: false, checkIsAdFound: _checkIsAdFound }))
711
+ React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, { refreshFlag: false, checkIsAdFound: previewAd ? null : _checkIsAdFound }))
699
712
  ),
700
713
  contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
701
714
  React__default.createElement(BlockContent, _extends({
package/dist/esm/index.js CHANGED
@@ -37,10 +37,10 @@ import './asyncToGenerator-7c654f36.js';
37
37
  import './_set-species-cede29f8.js';
38
38
  export { B as Beam, S as Segment } from './beam-681a9749.js';
39
39
  export { default as AdSlot } from './AdSlot.js';
40
- import './ADInfeed-9140aa7d.js';
40
+ import './ADInfeed-97b8cea7.js';
41
41
  export { default as DeckContent } from './DeckContent.js';
42
42
  import './lodash-17fdfebb.js';
43
- import './ADlgInfeed-7656ecd1.js';
43
+ import './ADlgInfeed-3ab91c75.js';
44
44
  import './getContentCategory-15dcc413.js';
45
45
  import './get-5ee14cda.js';
46
46
  export { default as AD } from './AD.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.673",
3
+ "version": "1.0.674",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",