@mjhls/mjh-framework 1.0.691-beta.5 → 1.0.691-beta.6

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 (45) hide show
  1. package/dist/cjs/ADGutter.js +4 -2
  2. package/dist/cjs/{ADInfeed-8952e375.js → ADInfeed-fd8c792f.js} +4 -2
  3. package/dist/cjs/ADSkyscraper.js +4 -2
  4. package/dist/cjs/ADSponsoredResources.js +4 -2
  5. package/dist/cjs/ADWebcast.js +4 -2
  6. package/dist/cjs/{ADlgInfeed-20c916fc.js → ADlgInfeed-40259fe0.js} +4 -2
  7. package/dist/cjs/AdSlot.js +3 -2
  8. package/dist/cjs/AdSlotsProvider.js +1 -1
  9. package/dist/cjs/Auth.js +6 -206
  10. package/dist/cjs/DeckContent.js +3 -2
  11. package/dist/cjs/ExternalResources.js +1 -1
  12. package/dist/cjs/GridContent.js +6 -4
  13. package/dist/cjs/IssueLanding.js +2 -2
  14. package/dist/cjs/MasterDeck.js +6 -4
  15. package/dist/cjs/PartnerDetailListing.js +3 -3
  16. package/dist/cjs/QueueDeckExpanded.js +6 -4
  17. package/dist/cjs/View.js +10 -8
  18. package/dist/cjs/getRelatedArticle.js +354 -5
  19. package/dist/cjs/getSerializers.js +1 -1
  20. package/dist/cjs/index-bd6c9f56.js +211 -0
  21. package/dist/cjs/index.js +6 -6
  22. package/dist/esm/ADGutter.js +4 -2
  23. package/dist/esm/{ADInfeed-1153eefc.js → ADInfeed-af6b0616.js} +4 -2
  24. package/dist/esm/ADSkyscraper.js +4 -2
  25. package/dist/esm/ADSponsoredResources.js +4 -2
  26. package/dist/esm/ADWebcast.js +4 -2
  27. package/dist/esm/{ADlgInfeed-8cb4e36a.js → ADlgInfeed-27ba8238.js} +4 -2
  28. package/dist/esm/AdSlot.js +3 -2
  29. package/dist/esm/AdSlotsProvider.js +1 -1
  30. package/dist/esm/Auth.js +1 -201
  31. package/dist/esm/DeckContent.js +3 -2
  32. package/dist/esm/ExternalResources.js +1 -1
  33. package/dist/esm/GridContent.js +6 -4
  34. package/dist/esm/IssueLanding.js +2 -2
  35. package/dist/esm/MasterDeck.js +6 -4
  36. package/dist/esm/PartnerDetailListing.js +3 -3
  37. package/dist/esm/QueueDeckExpanded.js +6 -4
  38. package/dist/esm/View.js +10 -8
  39. package/dist/esm/getRelatedArticle.js +354 -5
  40. package/dist/esm/getSerializers.js +1 -1
  41. package/dist/esm/index-db3bb315.js +207 -0
  42. package/dist/esm/index.js +5 -5
  43. package/package.json +1 -1
  44. /package/dist/cjs/{index-0fff88e9.js → index-1735f801.js} +0 -0
  45. /package/dist/esm/{index-792a492f.js → index-273cc821.js} +0 -0
@@ -23,7 +23,9 @@ import DFPAdSlot from './AdSlot.js';
23
23
  var ADSkyscraper = function ADSkyscraper(_ref) {
24
24
  var skyscraperAd = _ref.skyscraperAd,
25
25
  _ref$minScreenWidth = _ref.minScreenWidth,
26
- minScreenWidth = _ref$minScreenWidth === undefined ? 1200 : _ref$minScreenWidth;
26
+ minScreenWidth = _ref$minScreenWidth === undefined ? 1200 : _ref$minScreenWidth,
27
+ _ref$refreshFlag = _ref.refreshFlag,
28
+ refreshFlag = _ref$refreshFlag === undefined ? false : _ref$refreshFlag;
27
29
 
28
30
  // position is set to 'sky1' as default.
29
31
  var className = skyscraperAd.className,
@@ -122,7 +124,7 @@ var ADSkyscraper = function ADSkyscraper(_ref) {
122
124
  sizes: sizes,
123
125
  adUnit: adUnit,
124
126
  targeting: adTargeting,
125
- refreshFlag: false
127
+ refreshFlag: refreshFlag
126
128
  /* Passing function to check for ad creative only if it is not in preview. */
127
129
  , checkIsAdFound: previewAd ? null : checkIsAdFound
128
130
  })
@@ -22,7 +22,9 @@ import DFPAdSlot from './AdSlot.js';
22
22
  var ADSponsoredResources = function ADSponsoredResources(_ref) {
23
23
  var sponsoredAd = _ref.sponsoredAd,
24
24
  _ref$minScreenWidth = _ref.minScreenWidth,
25
- minScreenWidth = _ref$minScreenWidth === undefined ? 1200 : _ref$minScreenWidth;
25
+ minScreenWidth = _ref$minScreenWidth === undefined ? 1200 : _ref$minScreenWidth,
26
+ _ref$refreshFlag = _ref.refreshFlag,
27
+ refreshFlag = _ref$refreshFlag === undefined ? false : _ref$refreshFlag;
26
28
  var className = sponsoredAd.className,
27
29
  slotId = sponsoredAd.slotId,
28
30
  adUnit = sponsoredAd.adUnit,
@@ -117,7 +119,7 @@ var ADSponsoredResources = function ADSponsoredResources(_ref) {
117
119
  sizes: sizes,
118
120
  adUnit: adUnit,
119
121
  targeting: adTargeting,
120
- refreshFlag: false
122
+ refreshFlag: refreshFlag
121
123
  /* Passing function to check for ad creative only if it is not in preview. */
122
124
  , checkIsAdFound: previewAd ? null : checkIsAdFound
123
125
  })
@@ -23,7 +23,9 @@ import DFPAdSlot from './AdSlot.js';
23
23
  var ADWebcast = function ADWebcast(_ref) {
24
24
  var webcastAd = _ref.webcastAd,
25
25
  _ref$minScreenWidth = _ref.minScreenWidth,
26
- minScreenWidth = _ref$minScreenWidth === undefined ? 1200 : _ref$minScreenWidth;
26
+ minScreenWidth = _ref$minScreenWidth === undefined ? 1200 : _ref$minScreenWidth,
27
+ _ref$refreshFlag = _ref.refreshFlag,
28
+ refreshFlag = _ref$refreshFlag === undefined ? false : _ref$refreshFlag;
27
29
  var className = webcastAd.className,
28
30
  _webcastAd$slotId = webcastAd.slotId,
29
31
  slotId = _webcastAd$slotId === undefined ? 'webcast-ad' : _webcastAd$slotId,
@@ -123,7 +125,7 @@ var ADWebcast = function ADWebcast(_ref) {
123
125
  , sizeMapping: [{ viewport: [1200, 0], sizes: sizes }, { viewport: [0, 0], sizes: [0, 0] }],
124
126
  adUnit: adUnit,
125
127
  targeting: adTargeting,
126
- refreshFlag: false
128
+ refreshFlag: refreshFlag
127
129
  /* Passing function to check for ad creative only if it is not in preview. */
128
130
  , checkIsAdFound: previewAd ? null : checkIsAdFound
129
131
  })
@@ -12,7 +12,9 @@ var ADlgInfeed = function ADlgInfeed(props) {
12
12
  targeting = _props$targeting === undefined ? {} : _props$targeting,
13
13
  networkID = props.networkID,
14
14
  sizes = props.sizes,
15
- index = props.index;
15
+ index = props.index,
16
+ _props$refreshFlag = props.refreshFlag,
17
+ refreshFlag = _props$refreshFlag === undefined ? false : _props$refreshFlag;
16
18
 
17
19
  var collapseAd = function collapseAd() {
18
20
  var parent = document.getElementById('lg-infeed-wrapper-' + (index + 1));
@@ -70,7 +72,7 @@ var ADlgInfeed = function ADlgInfeed(props) {
70
72
  sizes: sizes
71
73
  /* Passing function to check for ad creative only if it is not in preview. */
72
74
  , checkIsAdFound: previewAd ? null : checkIsAdFound,
73
- refreshFlag: false
75
+ refreshFlag: refreshFlag
74
76
  }),
75
77
  React__default.createElement(
76
78
  'style',
@@ -38,7 +38,7 @@ var DFPAdSlot = function DFPAdSlot(_ref) {
38
38
  adRendered = _useState2[0],
39
39
  setAdRendered = _useState2[1];
40
40
 
41
- var _useState3 = useState(false),
41
+ var _useState3 = useState(true),
42
42
  _useState4 = _slicedToArray(_useState3, 2),
43
43
  adRefreshable = _useState4[0],
44
44
  setAdRefreshable = _useState4[1];
@@ -147,7 +147,8 @@ var DFPAdSlot = function DFPAdSlot(_ref) {
147
147
  }
148
148
  },
149
149
  onSlotVisibilityChanged: handleVisibilityChange,
150
- shouldRefresh: function shouldRefresh() {
150
+ shouldRefresh: function shouldRefresh(event) {
151
+ event.onSlotVisibilityChanged();
151
152
  if (adRendered && adRefreshable && refreshFlag) return true;else return false;
152
153
  }
153
154
  })
@@ -25,7 +25,7 @@ var AdSlotsProvider = function AdSlotsProvider(_ref) {
25
25
  autoRefresh && main_22 && refreshADsAfterInterval();
26
26
  autoRefresh && main_22 && window.addEventListener('scroll', function () {
27
27
  clearInterval(isScrolling);
28
- autoRefresh && main_22 && refreshADsAfterInterval();
28
+ refreshADsAfterInterval();
29
29
  }, false);
30
30
  return function () {
31
31
  clearInterval(isScrolling);
package/dist/esm/Auth.js CHANGED
@@ -15,6 +15,7 @@ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7c6
15
15
  import './_set-species-cede29f8.js';
16
16
  import { Col, Form, Button, Spinner } from 'react-bootstrap';
17
17
  import { u as util } from './util-7700fc59.js';
18
+ import { s as serialize_1, p as parse_1 } from './index-db3bb315.js';
18
19
  import useSWR from 'swr';
19
20
  import Local from 'passport-local';
20
21
  import mysql from 'mysql';
@@ -1202,207 +1203,6 @@ var SignupForm$1 = function SignupForm(props) {
1202
1203
  );
1203
1204
  };
1204
1205
 
1205
- /*!
1206
- * cookie
1207
- * Copyright(c) 2012-2014 Roman Shtylman
1208
- * Copyright(c) 2015 Douglas Christopher Wilson
1209
- * MIT Licensed
1210
- */
1211
-
1212
- /**
1213
- * Module exports.
1214
- * @public
1215
- */
1216
-
1217
- var parse_1 = parse;
1218
- var serialize_1 = serialize;
1219
-
1220
- /**
1221
- * Module variables.
1222
- * @private
1223
- */
1224
-
1225
- var decode = decodeURIComponent;
1226
- var encode = encodeURIComponent;
1227
- var pairSplitRegExp = /; */;
1228
-
1229
- /**
1230
- * RegExp to match field-content in RFC 7230 sec 3.2
1231
- *
1232
- * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
1233
- * field-vchar = VCHAR / obs-text
1234
- * obs-text = %x80-FF
1235
- */
1236
-
1237
- var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
1238
-
1239
- /**
1240
- * Parse a cookie header.
1241
- *
1242
- * Parse the given cookie header string into an object
1243
- * The object has the various cookies as keys(names) => values
1244
- *
1245
- * @param {string} str
1246
- * @param {object} [options]
1247
- * @return {object}
1248
- * @public
1249
- */
1250
-
1251
- function parse(str, options) {
1252
- if (typeof str !== 'string') {
1253
- throw new TypeError('argument str must be a string');
1254
- }
1255
-
1256
- var obj = {};
1257
- var opt = options || {};
1258
- var pairs = str.split(pairSplitRegExp);
1259
- var dec = opt.decode || decode;
1260
-
1261
- for (var i = 0; i < pairs.length; i++) {
1262
- var pair = pairs[i];
1263
- var eq_idx = pair.indexOf('=');
1264
-
1265
- // skip things that don't look like key=value
1266
- if (eq_idx < 0) {
1267
- continue;
1268
- }
1269
-
1270
- var key = pair.substr(0, eq_idx).trim();
1271
- var val = pair.substr(++eq_idx, pair.length).trim();
1272
-
1273
- // quoted values
1274
- if ('"' == val[0]) {
1275
- val = val.slice(1, -1);
1276
- }
1277
-
1278
- // only assign once
1279
- if (undefined == obj[key]) {
1280
- obj[key] = tryDecode(val, dec);
1281
- }
1282
- }
1283
-
1284
- return obj;
1285
- }
1286
-
1287
- /**
1288
- * Serialize data into a cookie header.
1289
- *
1290
- * Serialize the a name value pair into a cookie string suitable for
1291
- * http headers. An optional options object specified cookie parameters.
1292
- *
1293
- * serialize('foo', 'bar', { httpOnly: true })
1294
- * => "foo=bar; httpOnly"
1295
- *
1296
- * @param {string} name
1297
- * @param {string} val
1298
- * @param {object} [options]
1299
- * @return {string}
1300
- * @public
1301
- */
1302
-
1303
- function serialize(name, val, options) {
1304
- var opt = options || {};
1305
- var enc = opt.encode || encode;
1306
-
1307
- if (typeof enc !== 'function') {
1308
- throw new TypeError('option encode is invalid');
1309
- }
1310
-
1311
- if (!fieldContentRegExp.test(name)) {
1312
- throw new TypeError('argument name is invalid');
1313
- }
1314
-
1315
- var value = enc(val);
1316
-
1317
- if (value && !fieldContentRegExp.test(value)) {
1318
- throw new TypeError('argument val is invalid');
1319
- }
1320
-
1321
- var str = name + '=' + value;
1322
-
1323
- if (null != opt.maxAge) {
1324
- var maxAge = opt.maxAge - 0;
1325
-
1326
- if (isNaN(maxAge) || !isFinite(maxAge)) {
1327
- throw new TypeError('option maxAge is invalid')
1328
- }
1329
-
1330
- str += '; Max-Age=' + Math.floor(maxAge);
1331
- }
1332
-
1333
- if (opt.domain) {
1334
- if (!fieldContentRegExp.test(opt.domain)) {
1335
- throw new TypeError('option domain is invalid');
1336
- }
1337
-
1338
- str += '; Domain=' + opt.domain;
1339
- }
1340
-
1341
- if (opt.path) {
1342
- if (!fieldContentRegExp.test(opt.path)) {
1343
- throw new TypeError('option path is invalid');
1344
- }
1345
-
1346
- str += '; Path=' + opt.path;
1347
- }
1348
-
1349
- if (opt.expires) {
1350
- if (typeof opt.expires.toUTCString !== 'function') {
1351
- throw new TypeError('option expires is invalid');
1352
- }
1353
-
1354
- str += '; Expires=' + opt.expires.toUTCString();
1355
- }
1356
-
1357
- if (opt.httpOnly) {
1358
- str += '; HttpOnly';
1359
- }
1360
-
1361
- if (opt.secure) {
1362
- str += '; Secure';
1363
- }
1364
-
1365
- if (opt.sameSite) {
1366
- var sameSite = typeof opt.sameSite === 'string'
1367
- ? opt.sameSite.toLowerCase() : opt.sameSite;
1368
-
1369
- switch (sameSite) {
1370
- case true:
1371
- str += '; SameSite=Strict';
1372
- break;
1373
- case 'lax':
1374
- str += '; SameSite=Lax';
1375
- break;
1376
- case 'strict':
1377
- str += '; SameSite=Strict';
1378
- break;
1379
- case 'none':
1380
- str += '; SameSite=None';
1381
- break;
1382
- default:
1383
- throw new TypeError('option sameSite is invalid');
1384
- }
1385
- }
1386
-
1387
- return str;
1388
- }
1389
-
1390
- /**
1391
- * Try decoding a string using a decoding function.
1392
- *
1393
- * @param {string} str
1394
- * @param {function} decode
1395
- * @private
1396
- */
1397
-
1398
- function tryDecode(str, decode) {
1399
- try {
1400
- return decode(str);
1401
- } catch (e) {
1402
- return str;
1403
- }
1404
- }
1405
-
1406
1206
  var TOKEN_NAME = 'token';
1407
1207
  var MAX_AGE = 60 * 60 * 8; // 8 hours
1408
1208
 
@@ -38,7 +38,7 @@ import './_set-species-cede29f8.js';
38
38
  import './Segment.js';
39
39
  import './Beam.js';
40
40
  import './AdSlot.js';
41
- import { A as ADInfeed } from './ADInfeed-1153eefc.js';
41
+ import { A as ADInfeed } from './ADInfeed-af6b0616.js';
42
42
 
43
43
  var DeckContent = function (_React$Component) {
44
44
  _inherits(DeckContent, _React$Component);
@@ -266,7 +266,8 @@ var DeckContent = function (_React$Component) {
266
266
  content_placement: brandInsight.targeting.content_placement,
267
267
  document_url: brandInsight.targeting.document_url
268
268
  },
269
- _type: 'BrandInsight'
269
+ _type: 'BrandInsight',
270
+ refreshFlag: brandInsight.refreshFlag ? brandInsight.refreshFlag : false
270
271
  };
271
272
 
272
273
  articles = insert(articles, pos, inFeedAd);
@@ -40,7 +40,7 @@ import './GroupDeck.js';
40
40
  import 'react-bootstrap';
41
41
  import Button from 'react-bootstrap/Button';
42
42
  import { m as momentTimezone } from './index-ef6d5dcf.js';
43
- import { g as getSerializers } from './index-792a492f.js';
43
+ import { g as getSerializers } from './index-273cc821.js';
44
44
  import './util-7700fc59.js';
45
45
  import './brightcove-react-player-loader.es-83f53e4e.js';
46
46
  import 'react-bootstrap/Pagination';
@@ -38,9 +38,9 @@ import './_set-species-cede29f8.js';
38
38
  import './Segment.js';
39
39
  import './Beam.js';
40
40
  import './AdSlot.js';
41
- import { A as ADInfeed } from './ADInfeed-1153eefc.js';
41
+ import { A as ADInfeed } from './ADInfeed-af6b0616.js';
42
42
  import { l as lodash } from './lodash-ec8c6b48.js';
43
- import { A as ADlgInfeed } from './ADlgInfeed-8cb4e36a.js';
43
+ import { A as ADlgInfeed } from './ADlgInfeed-27ba8238.js';
44
44
  import { g as getContentCategory } from './getContentCategory-15dcc413.js';
45
45
  import { g as get_1 } from './get-5ee14cda.js';
46
46
  import './AD.js';
@@ -386,7 +386,8 @@ var GridContent = function (_React$Component) {
386
386
  targeting: {
387
387
  content_placement: brandInsight.targeting.content_placement,
388
388
  document_url: brandInsight.targeting.document_url
389
- }
389
+ },
390
+ refreshFlag: brandInsight.refreshFlag ? brandInsight.refreshFlag : false
390
391
  };
391
392
  var chunks = lodash.chunk(data, 6).map(function (chunk) {
392
393
  var set = lodash.chunk(chunk, 2);
@@ -423,7 +424,8 @@ var GridContent = function (_React$Component) {
423
424
  content_placement: brandInsight.targeting.content_placement,
424
425
  document_url: brandInsight.targeting.document_url
425
426
  },
426
- _type: 'brandInsightAd'
427
+ _type: 'brandInsightAd',
428
+ refreshFlag: brandInsight.refreshFlag ? brandInsight.refreshFlag : false
427
429
  };
428
430
 
429
431
  posts = insert(posts, pos, inFeedAd);
@@ -30,9 +30,9 @@ import './_set-species-cede29f8.js';
30
30
  import './Segment.js';
31
31
  import './Beam.js';
32
32
  import './AdSlot.js';
33
- import './ADInfeed-1153eefc.js';
33
+ import './ADInfeed-af6b0616.js';
34
34
  import './lodash-ec8c6b48.js';
35
- import './ADlgInfeed-8cb4e36a.js';
35
+ import './ADlgInfeed-27ba8238.js';
36
36
  import './getContentCategory-15dcc413.js';
37
37
  import './AuthorComponent-00f13201.js';
38
38
  import 'react-bootstrap';
@@ -36,9 +36,9 @@ import './_set-species-cede29f8.js';
36
36
  import './Segment.js';
37
37
  import './Beam.js';
38
38
  import './AdSlot.js';
39
- import { A as ADInfeed } from './ADInfeed-1153eefc.js';
39
+ import { A as ADInfeed } from './ADInfeed-af6b0616.js';
40
40
  import { l as lodash } from './lodash-ec8c6b48.js';
41
- import { A as ADlgInfeed } from './ADlgInfeed-8cb4e36a.js';
41
+ import { A as ADlgInfeed } from './ADlgInfeed-27ba8238.js';
42
42
 
43
43
  var MasterDeck = function (_React$Component) {
44
44
  _inherits(MasterDeck, _React$Component);
@@ -267,7 +267,8 @@ var MasterDeck = function (_React$Component) {
267
267
  targeting: {
268
268
  content_placement: brandInsightAd.targeting.content_placement,
269
269
  document_url: brandInsightAd.targeting.document_url
270
- }
270
+ },
271
+ refreshFlag: brandInsightAd.refreshFlag ? brandInsightAd.refreshFlag : false
271
272
  };
272
273
 
273
274
  var chunks = lodash.chunk(data, 6).map(function (chunk) {
@@ -300,7 +301,8 @@ var MasterDeck = function (_React$Component) {
300
301
  content_placement: brandInsightAd.targeting.content_placement,
301
302
  document_url: brandInsightAd.targeting.document_url
302
303
  },
303
- _type: 'brandInsightAd'
304
+ _type: 'brandInsightAd',
305
+ refreshFlag: brandInsightAd.refreshFlag ? brandInsightAd.refreshFlag : false
304
306
  };
305
307
 
306
308
  data = insertBrandInsightAd(data, pos, inFeedAd);
@@ -37,9 +37,9 @@ import './_set-species-cede29f8.js';
37
37
  import './Segment.js';
38
38
  import './Beam.js';
39
39
  import './AdSlot.js';
40
- import './ADInfeed-1153eefc.js';
40
+ import './ADInfeed-af6b0616.js';
41
41
  import './lodash-ec8c6b48.js';
42
- import './ADlgInfeed-8cb4e36a.js';
42
+ import './ADlgInfeed-27ba8238.js';
43
43
  import './getContentCategory-15dcc413.js';
44
44
  import './AuthorComponent-00f13201.js';
45
45
  import { B as BlockContent } from './BlockContent-c409aca5.js';
@@ -49,7 +49,7 @@ import 'react-bootstrap';
49
49
  import './timeDifferenceCalc.js';
50
50
  import QueueDeckExpanded from './QueueDeckExpanded.js';
51
51
  import 'react-bootstrap/Button';
52
- import { g as getSerializers } from './index-792a492f.js';
52
+ import { g as getSerializers } from './index-273cc821.js';
53
53
  import './util-7700fc59.js';
54
54
  import './brightcove-react-player-loader.es-83f53e4e.js';
55
55
  import 'react-bootstrap/Pagination';
@@ -30,9 +30,9 @@ import './_set-species-cede29f8.js';
30
30
  import './Segment.js';
31
31
  import './Beam.js';
32
32
  import './AdSlot.js';
33
- import { A as ADInfeed } from './ADInfeed-1153eefc.js';
33
+ import { A as ADInfeed } from './ADInfeed-af6b0616.js';
34
34
  import { l as lodash } from './lodash-ec8c6b48.js';
35
- import { A as ADlgInfeed } from './ADlgInfeed-8cb4e36a.js';
35
+ import { A as ADlgInfeed } from './ADlgInfeed-27ba8238.js';
36
36
  import { g as getContentCategory } from './getContentCategory-15dcc413.js';
37
37
  import { A as AuthorComponent } from './AuthorComponent-00f13201.js';
38
38
  import { Container, Media } from 'react-bootstrap';
@@ -180,7 +180,8 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
180
180
  targeting: {
181
181
  content_placement: brandInsightAd.targeting.content_placement,
182
182
  document_url: brandInsightAd.targeting.document_url
183
- }
183
+ },
184
+ refreshFlag: brandInsightAd.refreshFlag ? brandInsightAd.refreshFlag : false
184
185
  };
185
186
 
186
187
  var chunks = lodash.chunk(data, 6).map(function (chunk) {
@@ -219,7 +220,8 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
219
220
  content_placement: brandInsightAd.targeting.content_placement,
220
221
  document_url: brandInsightAd.targeting.document_url
221
222
  },
222
- _type: 'brandInsightAd'
223
+ _type: 'brandInsightAd',
224
+ refreshFlag: brandInsightAd.refreshFlag ? brandInsightAd.refreshFlag : false
223
225
  };
224
226
 
225
227
  data = insertBrandInsightAd(data, pos, inFeedAd);
package/dist/esm/View.js CHANGED
@@ -43,7 +43,7 @@ import './iconBase-602d52fe.js';
43
43
  import Button from 'react-bootstrap/Button';
44
44
  import { _ as _defineProperty } from './defineProperty-b798470d.js';
45
45
  import Form from 'react-bootstrap/Form';
46
- import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-792a492f.js';
46
+ import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-273cc821.js';
47
47
  import './util-7700fc59.js';
48
48
  import './brightcove-react-player-loader.es-83f53e4e.js';
49
49
  import 'react-bootstrap/Pagination';
@@ -55,9 +55,9 @@ import { _ as _Object$keys } from './keys-fc2d4c34.js';
55
55
  import 'react-bootstrap/Dropdown';
56
56
  import { b as FaMinus, c as FaPlus } from './index.esm-cf08bf18.js';
57
57
  import getSeriesDetail from './getSeriesDetail.js';
58
- import 'nookies';
59
- import getQuery from './getQuery.js';
58
+ import './index-db3bb315.js';
60
59
  import getRelatedArticle from './getRelatedArticle.js';
60
+ import getQuery from './getQuery.js';
61
61
  import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-2acdec91.js';
62
62
  import getKeywords from './getKeywords.js';
63
63
  import urlFor from './urlFor.js';
@@ -389,7 +389,9 @@ var Article = function Article(props) {
389
389
  _props$sponsoredFlag = props.sponsoredFlag,
390
390
  sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag,
391
391
  _props$authorImgHeigh = props.authorImgHeight,
392
- authorImgHeight = _props$authorImgHeigh === undefined ? 270 : _props$authorImgHeigh;
392
+ authorImgHeight = _props$authorImgHeigh === undefined ? 270 : _props$authorImgHeigh,
393
+ _props$refreshFlag = props.refreshFlag,
394
+ refreshFlag = _props$refreshFlag === undefined ? false : _props$refreshFlag;
393
395
 
394
396
  var targeting = getTargeting(props);
395
397
  var onChangeArticle = props.onChangeArticle;
@@ -637,13 +639,13 @@ var Article = function Article(props) {
637
639
  React__default.createElement(
638
640
  'div',
639
641
  { id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
640
- React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, { refreshFlag: false, checkIsAdFound: previewAd ? null : checkIsAdFound }))
642
+ React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, { refreshFlag: refreshFlag, checkIsAdFound: previewAd ? null : checkIsAdFound }))
641
643
  ),
642
644
  React__default.createElement('span', { className: 'clearfix' }),
643
645
  React__default.createElement(
644
646
  'div',
645
647
  { id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
646
- React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: false, checkIsAdFound: checkIsVideoAdFound }))
648
+ React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsVideoAdFound }))
647
649
  ),
648
650
  React__default.createElement(BlockContent, _extends({
649
651
  serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, null, null, null, targeting),
@@ -709,7 +711,7 @@ var Article = function Article(props) {
709
711
  (visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) && React__default.createElement(
710
712
  'div',
711
713
  { id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
712
- React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, { refreshFlag: false, checkIsAdFound: previewAd ? null : _checkIsAdFound }))
714
+ React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, { refreshFlag: refreshFlag, checkIsAdFound: previewAd ? null : _checkIsAdFound }))
713
715
  ),
714
716
  contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
715
717
  React__default.createElement(BlockContent, _extends({
@@ -752,7 +754,7 @@ var Article = function Article(props) {
752
754
  React__default.createElement(
753
755
  'div',
754
756
  { id: 'contextual-video-ad-' + payload._id, className: 'contextual-video-ad' },
755
- React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: false, checkIsAdFound: _checkIsAdFound2 }))
757
+ React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: _checkIsAdFound2 }))
756
758
  ),
757
759
  React__default.createElement(BlockContent, _extends({
758
760
  serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, null, null, null, targeting),