@mjhls/mjh-framework 1.0.867 → 1.0.869

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 (48) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/ArticleProgramLandingPage.js +1 -1
  3. package/dist/cjs/ArticleSeriesLandingPage.js +2 -2
  4. package/dist/cjs/DeckContent.js +1 -1
  5. package/dist/cjs/ExternalResources.js +1 -1
  6. package/dist/cjs/GridContent.js +2 -2
  7. package/dist/cjs/HorizontalArticleListing.js +1 -1
  8. package/dist/cjs/IssueLanding.js +3 -3
  9. package/dist/cjs/MasterDeck.js +2 -2
  10. package/dist/cjs/MediaSeriesLanding.js +3 -3
  11. package/dist/cjs/PartnerDetailListing.js +3 -3
  12. package/dist/cjs/PubSection.js +2 -2
  13. package/dist/cjs/QueueDeckExpanded.js +2 -2
  14. package/dist/cjs/Segment.js +9 -21
  15. package/dist/cjs/TaxonomyDescription.js +1 -1
  16. package/dist/cjs/VideoProgramLandingPage.js +1 -1
  17. package/dist/cjs/VideoSeriesLandingPage.js +2 -2
  18. package/dist/cjs/View.js +14 -6
  19. package/dist/cjs/getQuery.js +1 -1
  20. package/dist/cjs/getSerializers.js +1 -1
  21. package/dist/cjs/{index-ad4e6a69.js → index-a13a767d.js} +2 -1
  22. package/dist/cjs/index.js +3 -3
  23. package/dist/esm/ArticleProgramLandingPage.js +1 -1
  24. package/dist/esm/ArticleSeriesLandingPage.js +2 -2
  25. package/dist/esm/DeckContent.js +1 -1
  26. package/dist/esm/ExternalResources.js +1 -1
  27. package/dist/esm/GridContent.js +2 -2
  28. package/dist/esm/HorizontalArticleListing.js +1 -1
  29. package/dist/esm/IssueLanding.js +3 -3
  30. package/dist/esm/MasterDeck.js +2 -2
  31. package/dist/esm/MediaSeriesLanding.js +3 -3
  32. package/dist/esm/PartnerDetailListing.js +3 -3
  33. package/dist/esm/PubSection.js +2 -2
  34. package/dist/esm/QueueDeckExpanded.js +2 -2
  35. package/dist/esm/Segment.js +9 -21
  36. package/dist/esm/TaxonomyDescription.js +1 -1
  37. package/dist/esm/VideoProgramLandingPage.js +1 -1
  38. package/dist/esm/VideoSeriesLandingPage.js +2 -2
  39. package/dist/esm/View.js +14 -6
  40. package/dist/esm/getQuery.js +1 -1
  41. package/dist/esm/getSerializers.js +1 -1
  42. package/dist/esm/{index-61397130.js → index-bd9ce1da.js} +2 -1
  43. package/dist/esm/index.js +3 -3
  44. package/package.json +1 -1
  45. /package/dist/cjs/{ADInfeed-7d13830e.js → ADInfeed-b9e5ff3f.js} +0 -0
  46. /package/dist/cjs/{ADlgInfeed-d9dbfadc.js → ADlgInfeed-3cdefebd.js} +0 -0
  47. /package/dist/esm/{ADInfeed-0cbd7bed.js → ADInfeed-6c6093ae.js} +0 -0
  48. /package/dist/esm/{ADlgInfeed-2d1a52d9.js → ADlgInfeed-5d7386e8.js} +0 -0
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # mjh-framework v. 1.0.867
1
+ # mjh-framework v. 1.0.869
2
2
 
3
3
  [![NPM](https://img.shields.io/npm/v/mjh-framework.svg)](https://www.npmjs.com/package/mjh-framework) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
4
4
 
@@ -5,7 +5,7 @@ var slicedToArray = require('./slicedToArray-067dd3bc.js');
5
5
  var _extends = require('./extends-7c86182f.js');
6
6
  var React = require('react');
7
7
  var BlockContent = require('./BlockContent-36e54d77.js');
8
- var getSerializers = require('./index-ad4e6a69.js');
8
+ var getSerializers = require('./index-a13a767d.js');
9
9
  var ArticleSeriesListing = require('./ArticleSeriesListing.js');
10
10
  require('./_commonjsHelpers-06173234.js');
11
11
  require('./core.get-iterator-method-5643aa10.js');
@@ -34,13 +34,13 @@ require('./visibility-sensor-eb2c5b69.js');
34
34
  require('react-dom');
35
35
  require('./slicedToArray-067dd3bc.js');
36
36
  require('./index-efca863c.js');
37
- require('./ADlgInfeed-d9dbfadc.js');
37
+ require('./ADlgInfeed-3cdefebd.js');
38
38
  require('./AdSlot.js');
39
39
  require('./Beam.js');
40
40
  require('./stringify-f7a37a8d.js');
41
41
  require('./Segment.js');
42
42
  require('./main-025fdc78.js');
43
- require('./ADInfeed-7d13830e.js');
43
+ require('./ADInfeed-b9e5ff3f.js');
44
44
 
45
45
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
46
46
 
@@ -18,7 +18,7 @@ var urlFor = require('./urlFor.js');
18
18
  var index$1 = require('./index-eadd5035.js');
19
19
  var main = require('./main-025fdc78.js');
20
20
  var entities = require('./entities-3f9d0f2f.js');
21
- var ADInfeed = require('./ADInfeed-7d13830e.js');
21
+ var ADInfeed = require('./ADInfeed-b9e5ff3f.js');
22
22
  require('./_commonjsHelpers-06173234.js');
23
23
  require('./core.get-iterator-method-5643aa10.js');
24
24
  require('./_iter-detect-b1df62f0.js');
@@ -4,7 +4,7 @@ var _extends = require('./extends-7c86182f.js');
4
4
  var slicedToArray = require('./slicedToArray-067dd3bc.js');
5
5
  var React = require('react');
6
6
  var BlockContent = require('./BlockContent-36e54d77.js');
7
- var getSerializers = require('./index-ad4e6a69.js');
7
+ var getSerializers = require('./index-a13a767d.js');
8
8
  var index = require('./index-f86bb269.js');
9
9
  var Router = require('next/router');
10
10
  var Button = require('react-bootstrap/Button');
@@ -14,9 +14,9 @@ var moment = require('./moment-aca40de1.js');
14
14
  var Router = require('next/router');
15
15
  var index = require('./index-eadd5035.js');
16
16
  var entities = require('./entities-3f9d0f2f.js');
17
- var ADInfeed = require('./ADInfeed-7d13830e.js');
17
+ var ADInfeed = require('./ADInfeed-b9e5ff3f.js');
18
18
  var lodash = require('./lodash-f0783643.js');
19
- var ADlgInfeed = require('./ADlgInfeed-d9dbfadc.js');
19
+ var ADlgInfeed = require('./ADlgInfeed-3cdefebd.js');
20
20
  var getContentCategory = require('./getContentCategory-f38a4c00.js');
21
21
  var get = require('./get-5839e5b5.js');
22
22
  var debounce = require('./debounce-d4a2369b.js');
@@ -5,7 +5,7 @@ var React = require('react');
5
5
  var ArticleCarousel = require('./ArticleCarousel.js');
6
6
  var index_esm = require('./index.esm-974f47d9.js');
7
7
  var BlockContent = require('./BlockContent-36e54d77.js');
8
- var getSerializers = require('./index-ad4e6a69.js');
8
+ var getSerializers = require('./index-a13a767d.js');
9
9
  require('./_commonjsHelpers-06173234.js');
10
10
  require('./core.get-iterator-method-5643aa10.js');
11
11
  require('./_object-pie-083f2dd6.js');
@@ -5,7 +5,7 @@ var React = require('react');
5
5
  var QueueDeckExpanded = require('./QueueDeckExpanded.js');
6
6
  var Breadcrumbs = require('./Breadcrumbs.js');
7
7
  var BlockContent = require('./BlockContent-36e54d77.js');
8
- var getSerializers = require('./index-ad4e6a69.js');
8
+ var getSerializers = require('./index-a13a767d.js');
9
9
  require('./_commonjsHelpers-06173234.js');
10
10
  require('./core.get-iterator-method-5643aa10.js');
11
11
  require('./_object-pie-083f2dd6.js');
@@ -27,7 +27,7 @@ require('next/router');
27
27
  require('./index-eadd5035.js');
28
28
  require('./main-025fdc78.js');
29
29
  require('./entities-3f9d0f2f.js');
30
- require('./ADInfeed-7d13830e.js');
30
+ require('./ADInfeed-b9e5ff3f.js');
31
31
  require('react-bootstrap/Card');
32
32
  require('./AdSlot.js');
33
33
  require('./debounce-d4a2369b.js');
@@ -40,7 +40,7 @@ require('./_library-dd23b178.js');
40
40
  require('./Segment.js');
41
41
  require('./AuthorComponent-39b37d84.js');
42
42
  require('./lodash-f0783643.js');
43
- require('./ADlgInfeed-d9dbfadc.js');
43
+ require('./ADlgInfeed-3cdefebd.js');
44
44
  require('./getContentCategory-f38a4c00.js');
45
45
  require('./timeDifferenceCalc.js');
46
46
  require('react-bootstrap/Breadcrumb');
@@ -18,8 +18,8 @@ var index_es = require('./index.es-f3e47207.js');
18
18
  var visibilitySensor = require('./visibility-sensor-eb2c5b69.js');
19
19
  require('./slicedToArray-067dd3bc.js');
20
20
  require('./index-efca863c.js');
21
- var ADlgInfeed = require('./ADlgInfeed-d9dbfadc.js');
22
- var ADInfeed = require('./ADInfeed-7d13830e.js');
21
+ var ADlgInfeed = require('./ADlgInfeed-3cdefebd.js');
22
+ var ADInfeed = require('./ADInfeed-b9e5ff3f.js');
23
23
  require('./main-025fdc78.js');
24
24
  require('./_commonjsHelpers-06173234.js');
25
25
  require('./core.get-iterator-method-5643aa10.js');
@@ -17,7 +17,7 @@ var urlFor = require('./urlFor.js');
17
17
  var moment = require('./moment-aca40de1.js');
18
18
  var styleInject_es = require('./style-inject.es-dcee06b6.js');
19
19
  var BlockContent = require('./BlockContent-36e54d77.js');
20
- var getSerializers = require('./index-ad4e6a69.js');
20
+ var getSerializers = require('./index-a13a767d.js');
21
21
  require('./define-property-e8404b64.js');
22
22
  require('./core.get-iterator-method-5643aa10.js');
23
23
  require('./web.dom.iterable-d98303e0.js');
@@ -42,13 +42,13 @@ require('./toNumber-5e1fac58.js');
42
42
  require('./index.es-f3e47207.js');
43
43
  require('./visibility-sensor-eb2c5b69.js');
44
44
  require('./index-efca863c.js');
45
- require('./ADlgInfeed-d9dbfadc.js');
45
+ require('./ADlgInfeed-3cdefebd.js');
46
46
  require('./AdSlot.js');
47
47
  require('./Beam.js');
48
48
  require('./stringify-f7a37a8d.js');
49
49
  require('./Segment.js');
50
50
  require('./main-025fdc78.js');
51
- require('./ADInfeed-7d13830e.js');
51
+ require('./ADInfeed-b9e5ff3f.js');
52
52
  require('react-bootstrap');
53
53
  require('./index-187c967e.js');
54
54
  require('./util-6f784d85.js');
@@ -13,7 +13,7 @@ var moment = require('./moment-aca40de1.js');
13
13
  var QueueDeckExpanded = require('./QueueDeckExpanded.js');
14
14
  var Breadcrumbs = require('./Breadcrumbs.js');
15
15
  var Feature = require('./Feature.js');
16
- var getSerializers = require('./index-ad4e6a69.js');
16
+ var getSerializers = require('./index-a13a767d.js');
17
17
  var BlockContent = require('./BlockContent-36e54d77.js');
18
18
  require('./_commonjsHelpers-06173234.js');
19
19
  require('./core.get-iterator-method-5643aa10.js');
@@ -34,7 +34,7 @@ require('next/router');
34
34
  require('./index-eadd5035.js');
35
35
  require('./main-025fdc78.js');
36
36
  require('./entities-3f9d0f2f.js');
37
- require('./ADInfeed-7d13830e.js');
37
+ require('./ADInfeed-b9e5ff3f.js');
38
38
  require('react-bootstrap/Card');
39
39
  require('./AdSlot.js');
40
40
  require('./debounce-d4a2369b.js');
@@ -45,7 +45,7 @@ require('./stringify-f7a37a8d.js');
45
45
  require('./Segment.js');
46
46
  require('./AuthorComponent-39b37d84.js');
47
47
  require('./lodash-f0783643.js');
48
- require('./ADlgInfeed-d9dbfadc.js');
48
+ require('./ADlgInfeed-3cdefebd.js');
49
49
  require('./getContentCategory-f38a4c00.js');
50
50
  require('./timeDifferenceCalc.js');
51
51
  require('react-bootstrap/Breadcrumb');
@@ -26,7 +26,7 @@ require('next/router');
26
26
  require('./index-eadd5035.js');
27
27
  require('./main-025fdc78.js');
28
28
  require('./entities-3f9d0f2f.js');
29
- require('./ADInfeed-7d13830e.js');
29
+ require('./ADInfeed-b9e5ff3f.js');
30
30
  require('react-bootstrap/Card');
31
31
  require('./AdSlot.js');
32
32
  require('./debounce-d4a2369b.js');
@@ -37,7 +37,7 @@ require('./stringify-f7a37a8d.js');
37
37
  require('./Segment.js');
38
38
  require('./AuthorComponent-39b37d84.js');
39
39
  require('./lodash-f0783643.js');
40
- require('./ADlgInfeed-d9dbfadc.js');
40
+ require('./ADlgInfeed-3cdefebd.js');
41
41
  require('./getContentCategory-f38a4c00.js');
42
42
  require('./timeDifferenceCalc.js');
43
43
 
@@ -14,10 +14,10 @@ var Router = require('next/router');
14
14
  var index = require('./index-eadd5035.js');
15
15
  var main = require('./main-025fdc78.js');
16
16
  var entities = require('./entities-3f9d0f2f.js');
17
- var ADInfeed = require('./ADInfeed-7d13830e.js');
17
+ var ADInfeed = require('./ADInfeed-b9e5ff3f.js');
18
18
  var AuthorComponent = require('./AuthorComponent-39b37d84.js');
19
19
  var lodash = require('./lodash-f0783643.js');
20
- var ADlgInfeed = require('./ADlgInfeed-d9dbfadc.js');
20
+ var ADlgInfeed = require('./ADlgInfeed-3cdefebd.js');
21
21
  var getContentCategory = require('./getContentCategory-f38a4c00.js');
22
22
  var timeDifferenceCalc = require('./timeDifferenceCalc.js');
23
23
  require('./_commonjsHelpers-06173234.js');
@@ -110,6 +110,7 @@ var Segment = {
110
110
  pageview: function pageview(domain) {
111
111
  var _this2 = this;
112
112
 
113
+ var properties = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
113
114
  return asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee2() {
114
115
  var result, beam_id, session_id;
115
116
  return asyncToGenerator.regenerator.wrap(function _callee2$(_context2) {
@@ -133,18 +134,17 @@ var Segment = {
133
134
  beam_id = result.beam_id ? result.beam_id : '';
134
135
  session_id = result.session_id ? result.session_id : '';
135
136
 
136
- analytics.page({
137
- keywords: _this2.getMeta('keywords')
138
- });
139
137
  analytics.track('pageviews', {
140
138
  beamid: beam_id,
141
139
  sessionid: session_id,
142
- category: '',
140
+ category: properties.category ? properties.category : '',
141
+ content_placement: properties.content_placement && properties.content_placement.length > 0 ? properties.content_placement : '',
142
+ document_group: properties.document_group && properties.document_group.length > 0 ? properties.document_group : '',
143
143
  domain: domain,
144
144
  keywords: _this2.getMeta('keywords')
145
145
  });
146
146
 
147
- case 10:
147
+ case 9:
148
148
  case 'end':
149
149
  return _context2.stop();
150
150
  }
@@ -203,12 +203,9 @@ var Segment = {
203
203
 
204
204
 
205
205
  console.log('Segment ' + videoType, action, data);
206
- analytics.page({
207
- keywords: _this3.getMeta('keywords')
208
- });
209
206
  analytics.track(action, data);
210
207
 
211
- case 13:
208
+ case 12:
212
209
  case 'end':
213
210
  return _context3.stop();
214
211
  }
@@ -264,12 +261,9 @@ var Segment = {
264
261
 
265
262
 
266
263
  console.log('Segment ' + adType, action, data);
267
- analytics.page({
268
- keywords: _this4.getMeta('keywords')
269
- });
270
264
  analytics.track(action, data);
271
265
 
272
- case 13:
266
+ case 12:
273
267
  case 'end':
274
268
  return _context4.stop();
275
269
  }
@@ -303,9 +297,6 @@ var Segment = {
303
297
  beam_id = result.beam_id ? result.beam_id : '';
304
298
  session_id = result.session_id ? result.session_id : '';
305
299
 
306
- analytics.page({
307
- keywords: _this5.getMeta('keywords')
308
- });
309
300
  analytics.track('Ad Clicked', {
310
301
  beamid: beam_id,
311
302
  sessionid: session_id,
@@ -321,7 +312,7 @@ var Segment = {
321
312
  keywords: _this5.getMeta('keywords')
322
313
  });
323
314
 
324
- case 10:
315
+ case 9:
325
316
  case 'end':
326
317
  return _context5.stop();
327
318
  }
@@ -355,9 +346,6 @@ var Segment = {
355
346
  beam_id = result.beam_id ? result.beam_id : '';
356
347
  session_id = result.session_id ? result.session_id : '';
357
348
 
358
- analytics.page({
359
- keywords: _this6.getMeta('keywords')
360
- });
361
349
  analytics.track('Impression Viewed', {
362
350
  beamid: beam_id,
363
351
  sessionid: session_id,
@@ -373,7 +361,7 @@ var Segment = {
373
361
  keywords: _this6.getMeta('keywords')
374
362
  });
375
363
 
376
- case 10:
364
+ case 9:
377
365
  case 'end':
378
366
  return _context6.stop();
379
367
  }
@@ -6,7 +6,7 @@ var React = require('react');
6
6
  var Router = require('next/router');
7
7
  var Head = require('next/head');
8
8
  var BlockContent = require('./BlockContent-36e54d77.js');
9
- var getSerializers = require('./index-ad4e6a69.js');
9
+ var getSerializers = require('./index-a13a767d.js');
10
10
  require('./_commonjsHelpers-06173234.js');
11
11
  require('./core.get-iterator-method-5643aa10.js');
12
12
  require('./web.dom.iterable-d98303e0.js');
@@ -7,7 +7,7 @@ var BlockContent = require('./BlockContent-36e54d77.js');
7
7
  var Col = require('react-bootstrap/Col');
8
8
  var Form = require('react-bootstrap/Form');
9
9
  var Button = require('react-bootstrap/Button');
10
- var getSerializers = require('./index-ad4e6a69.js');
10
+ var getSerializers = require('./index-a13a767d.js');
11
11
  var VideoSeriesListing = require('./VideoSeriesListing.js');
12
12
  require('./_commonjsHelpers-06173234.js');
13
13
  require('./core.get-iterator-method-5643aa10.js');
@@ -38,13 +38,13 @@ require('./index.es-f3e47207.js');
38
38
  require('./visibility-sensor-eb2c5b69.js');
39
39
  require('react-dom');
40
40
  require('./index-efca863c.js');
41
- require('./ADlgInfeed-d9dbfadc.js');
41
+ require('./ADlgInfeed-3cdefebd.js');
42
42
  require('./AdSlot.js');
43
43
  require('./Beam.js');
44
44
  require('./stringify-f7a37a8d.js');
45
45
  require('./Segment.js');
46
46
  require('./main-025fdc78.js');
47
- require('./ADInfeed-7d13830e.js');
47
+ require('./ADInfeed-b9e5ff3f.js');
48
48
  require('./index-eadd5035.js');
49
49
  require('./urlFor.js');
50
50
  require('./style-inject.es-dcee06b6.js');
package/dist/cjs/View.js CHANGED
@@ -17,7 +17,7 @@ var FormControl = require('react-bootstrap/FormControl');
17
17
  var Button = require('react-bootstrap/Button');
18
18
  var visibilitySensor = require('./visibility-sensor-eb2c5b69.js');
19
19
  var SocialShare = require('./SocialShare.js');
20
- var getSerializers = require('./index-ad4e6a69.js');
20
+ var getSerializers = require('./index-a13a767d.js');
21
21
  var AdSlot = require('./AdSlot.js');
22
22
  var SeriesSlider = require('./SeriesSlider-ce3261cb.js');
23
23
  var getTargeting = require('./getTargeting-9d509319.js');
@@ -590,6 +590,8 @@ var Article = React.forwardRef(function (props, ref) {
590
590
  videoAccountIDs = props.videoAccountIDs,
591
591
  drupalLeadSettings = props.drupalLeadSettings,
592
592
  currentPage = props.currentPage,
593
+ _props$showAuthorDeta = props.showAuthorDetails,
594
+ showAuthorDetails = _props$showAuthorDeta === undefined ? false : _props$showAuthorDeta,
593
595
  _props$article = props.article,
594
596
  title = _props$article.title,
595
597
  _props$article$passwo = _props$article.passwordLock,
@@ -1113,7 +1115,10 @@ var Article = React.forwardRef(function (props, ref) {
1113
1115
  offset: { bottom: triggerOffset, top: containerHeight - 80 },
1114
1116
  onChange: function onChange(isVisible) {
1115
1117
  if (isVisible && queueData && queueData.length > 1) {
1116
- onChangeArticle(url, meta);
1118
+ var pageviewProperties = _extends._extends({}, targeting, {
1119
+ category: article && article.category ? article.category.name : ''
1120
+ });
1121
+ onChangeArticle(url, meta, pageviewProperties);
1117
1122
  setVisibleFlag(function () {
1118
1123
  return true;
1119
1124
  });
@@ -1173,7 +1178,7 @@ var Article = React.forwardRef(function (props, ref) {
1173
1178
  return React__default['default'].createElement(
1174
1179
  'span',
1175
1180
  { key: index },
1176
- getSerializers.renderAuthor(authorDetail.displayName, authorDetail.url, index, authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: props.client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
1181
+ getSerializers.renderAuthor(authorDetail.displayName, authorDetail.url, index, authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: props.client, source: authorDetail.profileImage, imageHeight: authorImgHeight }), showAuthorDetails)
1177
1182
  );
1178
1183
  }),
1179
1184
  React__default['default'].createElement(
@@ -1628,7 +1633,7 @@ var ArticleQueue = function ArticleQueue(props) {
1628
1633
  }
1629
1634
  };
1630
1635
 
1631
- var onChangeArticle = function onChangeArticle(path, meta) {
1636
+ var onChangeArticle = function onChangeArticle(path, meta, pageviewProperties) {
1632
1637
  var newPath = '/view/' + path;
1633
1638
  var activeArticle = queueData.find(function (item) {
1634
1639
  return item.url.current === path;
@@ -1647,7 +1652,7 @@ var ArticleQueue = function ArticleQueue(props) {
1647
1652
  if (props.setCustomDimensions) {
1648
1653
  props.setCustomDimensions(activeArticle, '200', prevUrl);
1649
1654
  }
1650
- if (props.pageview) props.pageview(newPath);
1655
+ if (props.pageview) props.pageview(newPath, pageviewProperties);
1651
1656
  refreshAD(path);
1652
1657
  };
1653
1658
 
@@ -1716,10 +1721,13 @@ var View = function View(props) {
1716
1721
  React.useEffect(function () {
1717
1722
  if (pageview && setCustomDimensions) {
1718
1723
  var timer = void 0;
1724
+ var pageviewProperties = _extends._extends({}, getTargeting.getTargeting(props), {
1725
+ category: article && article.category ? article.category.name : ''
1726
+ });
1719
1727
  var waitAndExicute = function waitAndExicute() {
1720
1728
  if (typeof window.GA_INITIALIZED !== 'undefined') {
1721
1729
  setCustomDimensions(article, statusCode, prevUrl);
1722
- pageview(router.asPath);
1730
+ pageview(router.asPath, pageviewProperties);
1723
1731
  } else timer = setTimeout(waitAndExicute, 1000);
1724
1732
  };
1725
1733
  waitAndExicute();
@@ -10,7 +10,7 @@ var getQuery = function getQuery(type) {
10
10
 
11
11
  switch (type) {
12
12
  case 'related':
13
- return '*[\n _type == "article"\n && defined(title)\n && defined(url)\n && !(_id in path("drafts.**"))\n && is_visible == true\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock!=true\n && taxonomyMapping[]._ref in $taxonomy\n && taxonomyMapping[].disableAds != \'true\'\n && contentCategory->.name != \'Poll\'\n && contentCategory->.name != \'Slideshows\'\n && contentCategory->.disableAds != \'true\'\n && ExcludeFromInfiniteScroll !=true\n && url.current != $url\n && !defined(body[].videos)\n ' + conditions + '\n ]| order(published desc)[' + (articleCount ? articleCount : '$index') + ']{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n asset->,\n images[]{\n ...,\n asset->\n },\n content[]{\n ...,\n asset->\n },\n videos[]{\n ...,\n thumbnail{\n _type,\n asset->\n }\n },\n response[]{\n ...,\n asset->\n },\n quizzes[]{\n ...,\n answer[]{\n ...,\n asset->\n },\n question[]{\n ...,\n asset->\n }\n },\n poster {\n _type,\n asset->\n },\n slides[]{\n ...,\n slideshowImage{\n ...,\n asset->\n }\n },\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n _id,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n disableAds,\n showSocialShare\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url\n }\n }';
13
+ return '*[\n _type == "article"\n && defined(title)\n && defined(url)\n && !(_id in path("drafts.**"))\n && is_visible == true\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock!=true\n && taxonomyMapping[]._ref in $taxonomy\n && taxonomyMapping[].disableAds != \'true\'\n && contentCategory->.name != \'Poll\'\n && contentCategory->.name != \'Slideshows\'\n && contentCategory->.disableAds != \'true\'\n && ExcludeFromInfiniteScroll !=true\n && url.current != $url\n && !defined(body[].videos)\n ' + conditions + '\n ]| order(published desc)[' + (articleCount ? articleCount : '$index') + ']{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n asset->,\n images[]{\n ...,\n asset->\n },\n content[]{\n ...,\n asset->\n },\n videos[]{\n ...,\n thumbnail{\n _type,\n asset->\n }\n },\n response[]{\n ...,\n asset->\n },\n quizzes[]{\n ...,\n answer[]{\n ...,\n asset->\n },\n question[]{\n ...,\n asset->\n }\n },\n poster {\n _type,\n asset->\n },\n slides[]{\n ...,\n slideshowImage{\n ...,\n asset->\n }\n },\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n }\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'content_placement\': taxonomyMapping[]-> {\n _id,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n disableAds,\n showSocialShare\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url\n }\n }';
14
14
  case 'article':
15
15
  return '*[\n _type == "article"\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible != false\n && url.current == $url\n ' + conditions + '\n ][0]{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n issueGroup-> { _id, name, identifier, parent-> },\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n asset->,\n images[]{\n ...,\n asset->\n },\n content[]{\n ...,\n asset->\n },\n videos[]{\n ...,\n thumbnail{\n _type,\n asset->\n }\n },\n response[]{\n ...,\n asset->\n },\n quizzes[]{\n ...,\n answer[]{\n ...,\n asset->\n },\n question[]{\n ...,\n asset->\n }\n },\n poster {\n _type,\n asset->\n },\n slides[]{\n ...,\n slideshowImage{\n ...,\n asset->\n }\n },\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n medias[]{\n ...,\n upload_doc {\n _type,\n asset-> \n },\n poster {\n _type,\n asset-> \n }\n },\n articles[]{\n ...,\n thumbnail{\n ...,\n asset-> \n },\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n text[]{\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n }\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n ...,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n showSocialShare\n },\n documentGroup-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n isSeries,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n volume,\n \'issueNumber\': number,\n \'articleSource\': source,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url\n }\n\n }';
16
16
  case 'publication':
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./extends-7c86182f.js');
4
4
  require('react');
5
- var getSerializers = require('./index-ad4e6a69.js');
5
+ var getSerializers = require('./index-a13a767d.js');
6
6
  require('./BlockContent-36e54d77.js');
7
7
  require('./entities-3f9d0f2f.js');
8
8
  require('./_commonjsHelpers-06173234.js');
@@ -7118,6 +7118,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
7118
7118
  var defaultUrl = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 'authors';
7119
7119
  var biography = arguments[5];
7120
7120
  var profileImage = arguments[6];
7121
+ var showAuthorDetails = arguments[7];
7121
7122
 
7122
7123
  if (authorName && authorURL) {
7123
7124
  return React__default['default'].createElement(
@@ -7128,7 +7129,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
7128
7129
  { className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
7129
7130
  authorName
7130
7131
  ),
7131
- React__default['default'].createElement(
7132
+ showAuthorDetails && React__default['default'].createElement(
7132
7133
  reactBootstrap.Card,
7133
7134
  { className: 'author-details-card-' + index },
7134
7135
  React__default['default'].createElement(
package/dist/cjs/index.js CHANGED
@@ -82,7 +82,7 @@ var VerticalHero = require('./VerticalHero.js');
82
82
  var YahooHero = require('./YahooHero.js');
83
83
  var GridHero = require('./GridHero.js');
84
84
  var ConferenceArticleCard = require('./ConferenceArticleCard.js');
85
- var getSerializers = require('./index-ad4e6a69.js');
85
+ var getSerializers = require('./index-a13a767d.js');
86
86
  var Beam = require('./Beam.js');
87
87
  var Segment = require('./Segment.js');
88
88
  var KMTracker = require('./KMTracker.js');
@@ -127,10 +127,10 @@ require('./visibility-sensor-eb2c5b69.js');
127
127
  require('react-dom');
128
128
  require('./main-025fdc78.js');
129
129
  require('./entities-3f9d0f2f.js');
130
- require('./ADInfeed-7d13830e.js');
130
+ require('./ADInfeed-b9e5ff3f.js');
131
131
  require('./slicedToArray-067dd3bc.js');
132
132
  require('./lodash-f0783643.js');
133
- require('./ADlgInfeed-d9dbfadc.js');
133
+ require('./ADlgInfeed-3cdefebd.js');
134
134
  require('./getContentCategory-f38a4c00.js');
135
135
  require('./get-5839e5b5.js');
136
136
  require('./eq-5fc26c07.js');
@@ -3,7 +3,7 @@ import { _ as _slicedToArray } from './slicedToArray-ca2c8b8d.js';
3
3
  import { _ as _extends } from './extends-dc6a71fd.js';
4
4
  import React from 'react';
5
5
  import { B as BlockContent } from './BlockContent-52cf21c5.js';
6
- import { g as getSerializers } from './index-61397130.js';
6
+ import { g as getSerializers } from './index-bd9ce1da.js';
7
7
  import ArticleSeriesListing from './ArticleSeriesListing.js';
8
8
  import './_commonjsHelpers-0c4b6f40.js';
9
9
  import './core.get-iterator-method-e903ff31.js';
@@ -32,13 +32,13 @@ import './visibility-sensor-f40c2564.js';
32
32
  import 'react-dom';
33
33
  import './slicedToArray-ca2c8b8d.js';
34
34
  import './index-0dbff1d1.js';
35
- import './ADlgInfeed-2d1a52d9.js';
35
+ import './ADlgInfeed-5d7386e8.js';
36
36
  import './AdSlot.js';
37
37
  import './Beam.js';
38
38
  import './stringify-c21932b3.js';
39
39
  import './Segment.js';
40
40
  import './main-b5c5aac1.js';
41
- import './ADInfeed-0cbd7bed.js';
41
+ import './ADInfeed-6c6093ae.js';
42
42
 
43
43
  var _this = undefined;
44
44
 
@@ -16,7 +16,7 @@ import urlFor from './urlFor.js';
16
16
  import { L as LazyLoad } from './index-35bdcc81.js';
17
17
  import { m as main_43 } from './main-b5c5aac1.js';
18
18
  import { c as clean_html_1 } from './entities-932b50cf.js';
19
- import { A as ADInfeed } from './ADInfeed-0cbd7bed.js';
19
+ import { A as ADInfeed } from './ADInfeed-6c6093ae.js';
20
20
  import './_commonjsHelpers-0c4b6f40.js';
21
21
  import './core.get-iterator-method-e903ff31.js';
22
22
  import './_iter-detect-f089461c.js';
@@ -2,7 +2,7 @@ import { _ as _extends } from './extends-dc6a71fd.js';
2
2
  import { _ as _slicedToArray } from './slicedToArray-ca2c8b8d.js';
3
3
  import React, { useState, useEffect } from 'react';
4
4
  import { B as BlockContent } from './BlockContent-52cf21c5.js';
5
- import { g as getSerializers } from './index-61397130.js';
5
+ import { g as getSerializers } from './index-bd9ce1da.js';
6
6
  import { m as momentTimezone } from './index-79cfd25c.js';
7
7
  import { useRouter } from 'next/router';
8
8
  import Button from 'react-bootstrap/Button';
@@ -12,9 +12,9 @@ import { m as moment } from './moment-bc12cb97.js';
12
12
  import { withRouter } from 'next/router';
13
13
  import { L as LazyLoad } from './index-35bdcc81.js';
14
14
  import { c as clean_html_1 } from './entities-932b50cf.js';
15
- import { A as ADInfeed } from './ADInfeed-0cbd7bed.js';
15
+ import { A as ADInfeed } from './ADInfeed-6c6093ae.js';
16
16
  import { l as lodash } from './lodash-f97fd99a.js';
17
- import { A as ADlgInfeed } from './ADlgInfeed-2d1a52d9.js';
17
+ import { A as ADlgInfeed } from './ADlgInfeed-5d7386e8.js';
18
18
  import { g as getContentCategory } from './getContentCategory-15dcc413.js';
19
19
  import { g as get_1 } from './get-3c308da4.js';
20
20
  import { d as debounce_1 } from './debounce-533d9748.js';
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import ArticleCarousel from './ArticleCarousel.js';
4
4
  import { I as IoIosArrowForward } from './index.esm-3fdda599.js';
5
5
  import { B as BlockContent } from './BlockContent-52cf21c5.js';
6
- import { g as getSerializers } from './index-61397130.js';
6
+ import { g as getSerializers } from './index-bd9ce1da.js';
7
7
  import './_commonjsHelpers-0c4b6f40.js';
8
8
  import './core.get-iterator-method-e903ff31.js';
9
9
  import './_object-pie-133f504a.js';
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import QueueDeckExpanded from './QueueDeckExpanded.js';
4
4
  import Breadcrumbs from './Breadcrumbs.js';
5
5
  import { B as BlockContent } from './BlockContent-52cf21c5.js';
6
- import { g as getSerializers } from './index-61397130.js';
6
+ import { g as getSerializers } from './index-bd9ce1da.js';
7
7
  import './_commonjsHelpers-0c4b6f40.js';
8
8
  import './core.get-iterator-method-e903ff31.js';
9
9
  import './_object-pie-133f504a.js';
@@ -25,7 +25,7 @@ import 'next/router';
25
25
  import './index-35bdcc81.js';
26
26
  import './main-b5c5aac1.js';
27
27
  import './entities-932b50cf.js';
28
- import './ADInfeed-0cbd7bed.js';
28
+ import './ADInfeed-6c6093ae.js';
29
29
  import 'react-bootstrap/Card';
30
30
  import './AdSlot.js';
31
31
  import './debounce-533d9748.js';
@@ -38,7 +38,7 @@ import './_library-528f1934.js';
38
38
  import './Segment.js';
39
39
  import './AuthorComponent-46a745ba.js';
40
40
  import './lodash-f97fd99a.js';
41
- import './ADlgInfeed-2d1a52d9.js';
41
+ import './ADlgInfeed-5d7386e8.js';
42
42
  import './getContentCategory-15dcc413.js';
43
43
  import './timeDifferenceCalc.js';
44
44
  import 'react-bootstrap/Breadcrumb';
@@ -16,8 +16,8 @@ import { I as InfiniteScroll } from './index.es-c6222053.js';
16
16
  import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
17
17
  import './slicedToArray-ca2c8b8d.js';
18
18
  import './index-0dbff1d1.js';
19
- import { A as ADlgInfeed } from './ADlgInfeed-2d1a52d9.js';
20
- import { A as ADInfeed } from './ADInfeed-0cbd7bed.js';
19
+ import { A as ADlgInfeed } from './ADlgInfeed-5d7386e8.js';
20
+ import { A as ADInfeed } from './ADInfeed-6c6093ae.js';
21
21
  import './main-b5c5aac1.js';
22
22
  import './_commonjsHelpers-0c4b6f40.js';
23
23
  import './core.get-iterator-method-e903ff31.js';
@@ -15,7 +15,7 @@ import urlFor from './urlFor.js';
15
15
  import { m as moment } from './moment-bc12cb97.js';
16
16
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
17
17
  import { B as BlockContent } from './BlockContent-52cf21c5.js';
18
- import { g as getSerializers } from './index-61397130.js';
18
+ import { g as getSerializers } from './index-bd9ce1da.js';
19
19
  import './define-property-99e66838.js';
20
20
  import './core.get-iterator-method-e903ff31.js';
21
21
  import './web.dom.iterable-fdf034f5.js';
@@ -40,13 +40,13 @@ import './toNumber-5aeba6e7.js';
40
40
  import './index.es-c6222053.js';
41
41
  import './visibility-sensor-f40c2564.js';
42
42
  import './index-0dbff1d1.js';
43
- import './ADlgInfeed-2d1a52d9.js';
43
+ import './ADlgInfeed-5d7386e8.js';
44
44
  import './AdSlot.js';
45
45
  import './Beam.js';
46
46
  import './stringify-c21932b3.js';
47
47
  import './Segment.js';
48
48
  import './main-b5c5aac1.js';
49
- import './ADInfeed-0cbd7bed.js';
49
+ import './ADInfeed-6c6093ae.js';
50
50
  import 'react-bootstrap';
51
51
  import './index-c7e2ac95.js';
52
52
  import './util-3ab476bf.js';
@@ -11,7 +11,7 @@ import { m as moment } from './moment-bc12cb97.js';
11
11
  import QueueDeckExpanded from './QueueDeckExpanded.js';
12
12
  import Breadcrumbs from './Breadcrumbs.js';
13
13
  import Feature from './Feature.js';
14
- import { g as getSerializers } from './index-61397130.js';
14
+ import { g as getSerializers } from './index-bd9ce1da.js';
15
15
  import { B as BlockContent } from './BlockContent-52cf21c5.js';
16
16
  import './_commonjsHelpers-0c4b6f40.js';
17
17
  import './core.get-iterator-method-e903ff31.js';
@@ -32,7 +32,7 @@ import 'next/router';
32
32
  import './index-35bdcc81.js';
33
33
  import './main-b5c5aac1.js';
34
34
  import './entities-932b50cf.js';
35
- import './ADInfeed-0cbd7bed.js';
35
+ import './ADInfeed-6c6093ae.js';
36
36
  import 'react-bootstrap/Card';
37
37
  import './AdSlot.js';
38
38
  import './debounce-533d9748.js';
@@ -43,7 +43,7 @@ import './stringify-c21932b3.js';
43
43
  import './Segment.js';
44
44
  import './AuthorComponent-46a745ba.js';
45
45
  import './lodash-f97fd99a.js';
46
- import './ADlgInfeed-2d1a52d9.js';
46
+ import './ADlgInfeed-5d7386e8.js';
47
47
  import './getContentCategory-15dcc413.js';
48
48
  import './timeDifferenceCalc.js';
49
49
  import 'react-bootstrap/Breadcrumb';
@@ -24,7 +24,7 @@ import 'next/router';
24
24
  import './index-35bdcc81.js';
25
25
  import './main-b5c5aac1.js';
26
26
  import './entities-932b50cf.js';
27
- import './ADInfeed-0cbd7bed.js';
27
+ import './ADInfeed-6c6093ae.js';
28
28
  import 'react-bootstrap/Card';
29
29
  import './AdSlot.js';
30
30
  import './debounce-533d9748.js';
@@ -35,7 +35,7 @@ import './stringify-c21932b3.js';
35
35
  import './Segment.js';
36
36
  import './AuthorComponent-46a745ba.js';
37
37
  import './lodash-f97fd99a.js';
38
- import './ADlgInfeed-2d1a52d9.js';
38
+ import './ADlgInfeed-5d7386e8.js';
39
39
  import './getContentCategory-15dcc413.js';
40
40
  import './timeDifferenceCalc.js';
41
41
 
@@ -12,10 +12,10 @@ import { useRouter } from 'next/router';
12
12
  import { L as LazyLoad } from './index-35bdcc81.js';
13
13
  import { m as main_43 } from './main-b5c5aac1.js';
14
14
  import { c as clean_html_1 } from './entities-932b50cf.js';
15
- import { A as ADInfeed } from './ADInfeed-0cbd7bed.js';
15
+ import { A as ADInfeed } from './ADInfeed-6c6093ae.js';
16
16
  import { A as AuthorComponent } from './AuthorComponent-46a745ba.js';
17
17
  import { l as lodash } from './lodash-f97fd99a.js';
18
- import { A as ADlgInfeed } from './ADlgInfeed-2d1a52d9.js';
18
+ import { A as ADlgInfeed } from './ADlgInfeed-5d7386e8.js';
19
19
  import { g as getContentCategory } from './getContentCategory-15dcc413.js';
20
20
  import timeDifferenceCalc from './timeDifferenceCalc.js';
21
21
  import './_commonjsHelpers-0c4b6f40.js';
@@ -108,6 +108,7 @@ var Segment = {
108
108
  pageview: function pageview(domain) {
109
109
  var _this2 = this;
110
110
 
111
+ var properties = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
111
112
  return _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2() {
112
113
  var result, beam_id, session_id;
113
114
  return regenerator.wrap(function _callee2$(_context2) {
@@ -131,18 +132,17 @@ var Segment = {
131
132
  beam_id = result.beam_id ? result.beam_id : '';
132
133
  session_id = result.session_id ? result.session_id : '';
133
134
 
134
- analytics.page({
135
- keywords: _this2.getMeta('keywords')
136
- });
137
135
  analytics.track('pageviews', {
138
136
  beamid: beam_id,
139
137
  sessionid: session_id,
140
- category: '',
138
+ category: properties.category ? properties.category : '',
139
+ content_placement: properties.content_placement && properties.content_placement.length > 0 ? properties.content_placement : '',
140
+ document_group: properties.document_group && properties.document_group.length > 0 ? properties.document_group : '',
141
141
  domain: domain,
142
142
  keywords: _this2.getMeta('keywords')
143
143
  });
144
144
 
145
- case 10:
145
+ case 9:
146
146
  case 'end':
147
147
  return _context2.stop();
148
148
  }
@@ -201,12 +201,9 @@ var Segment = {
201
201
 
202
202
 
203
203
  console.log('Segment ' + videoType, action, data);
204
- analytics.page({
205
- keywords: _this3.getMeta('keywords')
206
- });
207
204
  analytics.track(action, data);
208
205
 
209
- case 13:
206
+ case 12:
210
207
  case 'end':
211
208
  return _context3.stop();
212
209
  }
@@ -262,12 +259,9 @@ var Segment = {
262
259
 
263
260
 
264
261
  console.log('Segment ' + adType, action, data);
265
- analytics.page({
266
- keywords: _this4.getMeta('keywords')
267
- });
268
262
  analytics.track(action, data);
269
263
 
270
- case 13:
264
+ case 12:
271
265
  case 'end':
272
266
  return _context4.stop();
273
267
  }
@@ -301,9 +295,6 @@ var Segment = {
301
295
  beam_id = result.beam_id ? result.beam_id : '';
302
296
  session_id = result.session_id ? result.session_id : '';
303
297
 
304
- analytics.page({
305
- keywords: _this5.getMeta('keywords')
306
- });
307
298
  analytics.track('Ad Clicked', {
308
299
  beamid: beam_id,
309
300
  sessionid: session_id,
@@ -319,7 +310,7 @@ var Segment = {
319
310
  keywords: _this5.getMeta('keywords')
320
311
  });
321
312
 
322
- case 10:
313
+ case 9:
323
314
  case 'end':
324
315
  return _context5.stop();
325
316
  }
@@ -353,9 +344,6 @@ var Segment = {
353
344
  beam_id = result.beam_id ? result.beam_id : '';
354
345
  session_id = result.session_id ? result.session_id : '';
355
346
 
356
- analytics.page({
357
- keywords: _this6.getMeta('keywords')
358
- });
359
347
  analytics.track('Impression Viewed', {
360
348
  beamid: beam_id,
361
349
  sessionid: session_id,
@@ -371,7 +359,7 @@ var Segment = {
371
359
  keywords: _this6.getMeta('keywords')
372
360
  });
373
361
 
374
- case 10:
362
+ case 9:
375
363
  case 'end':
376
364
  return _context6.stop();
377
365
  }
@@ -4,7 +4,7 @@ import React from 'react';
4
4
  import { useRouter } from 'next/router';
5
5
  import Head from 'next/head';
6
6
  import { B as BlockContent } from './BlockContent-52cf21c5.js';
7
- import { g as getSerializers } from './index-61397130.js';
7
+ import { g as getSerializers } from './index-bd9ce1da.js';
8
8
  import './_commonjsHelpers-0c4b6f40.js';
9
9
  import './core.get-iterator-method-e903ff31.js';
10
10
  import './web.dom.iterable-fdf034f5.js';
@@ -5,7 +5,7 @@ import { B as BlockContent } from './BlockContent-52cf21c5.js';
5
5
  import Col from 'react-bootstrap/Col';
6
6
  import Form from 'react-bootstrap/Form';
7
7
  import Button from 'react-bootstrap/Button';
8
- import { g as getSerializers } from './index-61397130.js';
8
+ import { g as getSerializers } from './index-bd9ce1da.js';
9
9
  import VideoSeriesListing from './VideoSeriesListing.js';
10
10
  import './_commonjsHelpers-0c4b6f40.js';
11
11
  import './core.get-iterator-method-e903ff31.js';
@@ -36,13 +36,13 @@ import './index.es-c6222053.js';
36
36
  import './visibility-sensor-f40c2564.js';
37
37
  import 'react-dom';
38
38
  import './index-0dbff1d1.js';
39
- import './ADlgInfeed-2d1a52d9.js';
39
+ import './ADlgInfeed-5d7386e8.js';
40
40
  import './AdSlot.js';
41
41
  import './Beam.js';
42
42
  import './stringify-c21932b3.js';
43
43
  import './Segment.js';
44
44
  import './main-b5c5aac1.js';
45
- import './ADInfeed-0cbd7bed.js';
45
+ import './ADInfeed-6c6093ae.js';
46
46
  import './index-35bdcc81.js';
47
47
  import './urlFor.js';
48
48
  import './style-inject.es-1f59c1d0.js';
package/dist/esm/View.js CHANGED
@@ -15,7 +15,7 @@ import FormControl from 'react-bootstrap/FormControl';
15
15
  import Button from 'react-bootstrap/Button';
16
16
  import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
17
17
  import SocialShare from './SocialShare.js';
18
- import { r as renderAuthor, g as getSerializers } from './index-61397130.js';
18
+ import { r as renderAuthor, g as getSerializers } from './index-bd9ce1da.js';
19
19
  import DFPAdSlot from './AdSlot.js';
20
20
  import { S as SeriesSlider } from './SeriesSlider-485f514e.js';
21
21
  import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-ff2c9409.js';
@@ -580,6 +580,8 @@ var Article = forwardRef(function (props, ref) {
580
580
  videoAccountIDs = props.videoAccountIDs,
581
581
  drupalLeadSettings = props.drupalLeadSettings,
582
582
  currentPage = props.currentPage,
583
+ _props$showAuthorDeta = props.showAuthorDetails,
584
+ showAuthorDetails = _props$showAuthorDeta === undefined ? false : _props$showAuthorDeta,
583
585
  _props$article = props.article,
584
586
  title = _props$article.title,
585
587
  _props$article$passwo = _props$article.passwordLock,
@@ -1103,7 +1105,10 @@ var Article = forwardRef(function (props, ref) {
1103
1105
  offset: { bottom: triggerOffset, top: containerHeight - 80 },
1104
1106
  onChange: function onChange(isVisible) {
1105
1107
  if (isVisible && queueData && queueData.length > 1) {
1106
- onChangeArticle(url, meta);
1108
+ var pageviewProperties = _extends({}, targeting, {
1109
+ category: article && article.category ? article.category.name : ''
1110
+ });
1111
+ onChangeArticle(url, meta, pageviewProperties);
1107
1112
  setVisibleFlag(function () {
1108
1113
  return true;
1109
1114
  });
@@ -1163,7 +1168,7 @@ var Article = forwardRef(function (props, ref) {
1163
1168
  return React.createElement(
1164
1169
  'span',
1165
1170
  { key: index },
1166
- renderAuthor(authorDetail.displayName, authorDetail.url, index, authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: props.client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
1171
+ renderAuthor(authorDetail.displayName, authorDetail.url, index, authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: props.client, source: authorDetail.profileImage, imageHeight: authorImgHeight }), showAuthorDetails)
1167
1172
  );
1168
1173
  }),
1169
1174
  React.createElement(
@@ -1618,7 +1623,7 @@ var ArticleQueue = function ArticleQueue(props) {
1618
1623
  }
1619
1624
  };
1620
1625
 
1621
- var onChangeArticle = function onChangeArticle(path, meta) {
1626
+ var onChangeArticle = function onChangeArticle(path, meta, pageviewProperties) {
1622
1627
  var newPath = '/view/' + path;
1623
1628
  var activeArticle = queueData.find(function (item) {
1624
1629
  return item.url.current === path;
@@ -1637,7 +1642,7 @@ var ArticleQueue = function ArticleQueue(props) {
1637
1642
  if (props.setCustomDimensions) {
1638
1643
  props.setCustomDimensions(activeArticle, '200', prevUrl);
1639
1644
  }
1640
- if (props.pageview) props.pageview(newPath);
1645
+ if (props.pageview) props.pageview(newPath, pageviewProperties);
1641
1646
  refreshAD(path);
1642
1647
  };
1643
1648
 
@@ -1706,10 +1711,13 @@ var View = function View(props) {
1706
1711
  useEffect(function () {
1707
1712
  if (pageview && setCustomDimensions) {
1708
1713
  var timer = void 0;
1714
+ var pageviewProperties = _extends({}, getTargeting(props), {
1715
+ category: article && article.category ? article.category.name : ''
1716
+ });
1709
1717
  var waitAndExicute = function waitAndExicute() {
1710
1718
  if (typeof window.GA_INITIALIZED !== 'undefined') {
1711
1719
  setCustomDimensions(article, statusCode, prevUrl);
1712
- pageview(router.asPath);
1720
+ pageview(router.asPath, pageviewProperties);
1713
1721
  } else timer = setTimeout(waitAndExicute, 1000);
1714
1722
  };
1715
1723
  waitAndExicute();
@@ -8,7 +8,7 @@ var getQuery = function getQuery(type) {
8
8
 
9
9
  switch (type) {
10
10
  case 'related':
11
- return '*[\n _type == "article"\n && defined(title)\n && defined(url)\n && !(_id in path("drafts.**"))\n && is_visible == true\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock!=true\n && taxonomyMapping[]._ref in $taxonomy\n && taxonomyMapping[].disableAds != \'true\'\n && contentCategory->.name != \'Poll\'\n && contentCategory->.name != \'Slideshows\'\n && contentCategory->.disableAds != \'true\'\n && ExcludeFromInfiniteScroll !=true\n && url.current != $url\n && !defined(body[].videos)\n ' + conditions + '\n ]| order(published desc)[' + (articleCount ? articleCount : '$index') + ']{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n asset->,\n images[]{\n ...,\n asset->\n },\n content[]{\n ...,\n asset->\n },\n videos[]{\n ...,\n thumbnail{\n _type,\n asset->\n }\n },\n response[]{\n ...,\n asset->\n },\n quizzes[]{\n ...,\n answer[]{\n ...,\n asset->\n },\n question[]{\n ...,\n asset->\n }\n },\n poster {\n _type,\n asset->\n },\n slides[]{\n ...,\n slideshowImage{\n ...,\n asset->\n }\n },\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n _id,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n disableAds,\n showSocialShare\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url\n }\n }';
11
+ return '*[\n _type == "article"\n && defined(title)\n && defined(url)\n && !(_id in path("drafts.**"))\n && is_visible == true\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock!=true\n && taxonomyMapping[]._ref in $taxonomy\n && taxonomyMapping[].disableAds != \'true\'\n && contentCategory->.name != \'Poll\'\n && contentCategory->.name != \'Slideshows\'\n && contentCategory->.disableAds != \'true\'\n && ExcludeFromInfiniteScroll !=true\n && url.current != $url\n && !defined(body[].videos)\n ' + conditions + '\n ]| order(published desc)[' + (articleCount ? articleCount : '$index') + ']{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n asset->,\n images[]{\n ...,\n asset->\n },\n content[]{\n ...,\n asset->\n },\n videos[]{\n ...,\n thumbnail{\n _type,\n asset->\n }\n },\n response[]{\n ...,\n asset->\n },\n quizzes[]{\n ...,\n answer[]{\n ...,\n asset->\n },\n question[]{\n ...,\n asset->\n }\n },\n poster {\n _type,\n asset->\n },\n slides[]{\n ...,\n slideshowImage{\n ...,\n asset->\n }\n },\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n }\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'content_placement\': taxonomyMapping[]-> {\n _id,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n disableAds,\n showSocialShare\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url\n }\n }';
12
12
  case 'article':
13
13
  return '*[\n _type == "article"\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible != false\n && url.current == $url\n ' + conditions + '\n ][0]{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n issueGroup-> { _id, name, identifier, parent-> },\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n asset->,\n images[]{\n ...,\n asset->\n },\n content[]{\n ...,\n asset->\n },\n videos[]{\n ...,\n thumbnail{\n _type,\n asset->\n }\n },\n response[]{\n ...,\n asset->\n },\n quizzes[]{\n ...,\n answer[]{\n ...,\n asset->\n },\n question[]{\n ...,\n asset->\n }\n },\n poster {\n _type,\n asset->\n },\n slides[]{\n ...,\n slideshowImage{\n ...,\n asset->\n }\n },\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n medias[]{\n ...,\n upload_doc {\n _type,\n asset-> \n },\n poster {\n _type,\n asset-> \n }\n },\n articles[]{\n ...,\n thumbnail{\n ...,\n asset-> \n },\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n text[]{\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n }\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n ...,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n showSocialShare\n },\n documentGroup-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n isSeries,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n volume,\n \'issueNumber\': number,\n \'articleSource\': source,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url\n }\n\n }';
14
14
  case 'publication':
@@ -1,6 +1,6 @@
1
1
  import './extends-dc6a71fd.js';
2
2
  import 'react';
3
- export { g as default } from './index-61397130.js';
3
+ export { g as default } from './index-bd9ce1da.js';
4
4
  import './BlockContent-52cf21c5.js';
5
5
  import './entities-932b50cf.js';
6
6
  import './_commonjsHelpers-0c4b6f40.js';
@@ -7101,6 +7101,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
7101
7101
  var defaultUrl = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 'authors';
7102
7102
  var biography = arguments[5];
7103
7103
  var profileImage = arguments[6];
7104
+ var showAuthorDetails = arguments[7];
7104
7105
 
7105
7106
  if (authorName && authorURL) {
7106
7107
  return React.createElement(
@@ -7111,7 +7112,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
7111
7112
  { className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
7112
7113
  authorName
7113
7114
  ),
7114
- React.createElement(
7115
+ showAuthorDetails && React.createElement(
7115
7116
  Card,
7116
7117
  { className: 'author-details-card-' + index },
7117
7118
  React.createElement(
package/dist/esm/index.js CHANGED
@@ -79,7 +79,7 @@ export { default as VerticalHero } from './VerticalHero.js';
79
79
  export { default as YahooHero } from './YahooHero.js';
80
80
  export { default as GridHero } from './GridHero.js';
81
81
  export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
82
- export { g as getSerializers } from './index-61397130.js';
82
+ export { g as getSerializers } from './index-bd9ce1da.js';
83
83
  export { default as Beam } from './Beam.js';
84
84
  export { default as Segment } from './Segment.js';
85
85
  export { default as KMTracker } from './KMTracker.js';
@@ -124,10 +124,10 @@ import './visibility-sensor-f40c2564.js';
124
124
  import 'react-dom';
125
125
  import './main-b5c5aac1.js';
126
126
  import './entities-932b50cf.js';
127
- import './ADInfeed-0cbd7bed.js';
127
+ import './ADInfeed-6c6093ae.js';
128
128
  import './slicedToArray-ca2c8b8d.js';
129
129
  import './lodash-f97fd99a.js';
130
- import './ADlgInfeed-2d1a52d9.js';
130
+ import './ADlgInfeed-5d7386e8.js';
131
131
  import './getContentCategory-15dcc413.js';
132
132
  import './get-3c308da4.js';
133
133
  import './eq-bdcbf886.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.867",
3
+ "version": "1.0.869",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",