@mjhls/mjh-framework 1.0.646 → 1.0.648

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 (86) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +2 -2
  4. package/dist/cjs/AD300x250x600.js +2 -2
  5. package/dist/cjs/AD728x90.js +2 -2
  6. package/dist/cjs/ADFloatingFooter.js +2 -2
  7. package/dist/cjs/ADGutter.js +2 -2
  8. package/dist/cjs/ADSkyscraper.js +2 -2
  9. package/dist/cjs/ADSponsoredResources.js +2 -2
  10. package/dist/cjs/ADWebcast.js +2 -2
  11. package/dist/cjs/ADWelcome.js +2 -2
  12. package/dist/cjs/AdSlot.js +2 -2
  13. package/dist/cjs/ArticleSeriesListing.js +2 -2
  14. package/dist/cjs/CMEDeck.js +2 -2
  15. package/dist/cjs/Column2.js +2 -3
  16. package/dist/cjs/Column3.js +3 -4
  17. package/dist/cjs/DeckContent.js +3 -3
  18. package/dist/cjs/DeckQueue.js +3 -4
  19. package/dist/cjs/{Dfp-ffaf5981.js → Dfp-b2bc3b97.js} +2 -2
  20. package/dist/cjs/ExternalResources.js +3 -3
  21. package/dist/cjs/GridContent.js +5 -6
  22. package/dist/cjs/IssueLanding.js +4 -4
  23. package/dist/cjs/LeftNav.js +2 -2
  24. package/dist/cjs/MasterDeck.js +4 -4
  25. package/dist/cjs/PartnerDetailListing.js +5 -5
  26. package/dist/cjs/QueueDeckExpanded.js +4 -4
  27. package/dist/cjs/SideFooter.js +2 -3
  28. package/dist/cjs/TemplateNormal.js +3 -4
  29. package/dist/cjs/VideoSeriesListing.js +2 -2
  30. package/dist/cjs/View.js +33 -26
  31. package/dist/cjs/{debounce-32e57002.js → debounce-eb287781.js} +1 -2
  32. package/dist/cjs/{get-5dfcdc33.js → get-68c52cb1.js} +90 -7
  33. package/dist/cjs/getQuery.js +2 -2
  34. package/dist/cjs/getSerializers.js +3 -3
  35. package/dist/cjs/{getTargeting-87eb9994.js → getTargeting-fee8c429.js} +32 -1
  36. package/dist/cjs/getTargeting.js +1 -1
  37. package/dist/cjs/index.js +9 -12
  38. package/dist/cjs/{isSymbol-488934a7.js → isSymbol-04666465.js} +0 -2
  39. package/dist/esm/AD.js +1 -1
  40. package/dist/esm/AD300x250.js +2 -2
  41. package/dist/esm/AD300x250x600.js +2 -2
  42. package/dist/esm/AD728x90.js +2 -2
  43. package/dist/esm/ADFloatingFooter.js +2 -2
  44. package/dist/esm/ADGutter.js +2 -2
  45. package/dist/esm/ADSkyscraper.js +2 -2
  46. package/dist/esm/ADSponsoredResources.js +2 -2
  47. package/dist/esm/ADWebcast.js +2 -2
  48. package/dist/esm/ADWelcome.js +2 -2
  49. package/dist/esm/AdSlot.js +2 -2
  50. package/dist/esm/ArticleSeriesListing.js +2 -2
  51. package/dist/esm/CMEDeck.js +2 -2
  52. package/dist/esm/Column2.js +2 -3
  53. package/dist/esm/Column3.js +3 -4
  54. package/dist/esm/DeckContent.js +3 -3
  55. package/dist/esm/DeckQueue.js +3 -4
  56. package/dist/esm/{Dfp-4f966af0.js → Dfp-43d61e01.js} +2 -2
  57. package/dist/esm/ExternalResources.js +3 -3
  58. package/dist/esm/GridContent.js +5 -6
  59. package/dist/esm/IssueLanding.js +4 -4
  60. package/dist/esm/LeftNav.js +2 -2
  61. package/dist/esm/MasterDeck.js +4 -4
  62. package/dist/esm/PartnerDetailListing.js +5 -5
  63. package/dist/esm/QueueDeckExpanded.js +4 -4
  64. package/dist/esm/SideFooter.js +2 -3
  65. package/dist/esm/TemplateNormal.js +3 -4
  66. package/dist/esm/VideoSeriesListing.js +2 -2
  67. package/dist/esm/View.js +30 -23
  68. package/dist/esm/{debounce-a0d9abca.js → debounce-1a993acf.js} +2 -2
  69. package/dist/esm/{get-58d2f7cc.js → get-5ee14cda.js} +85 -2
  70. package/dist/esm/getQuery.js +2 -2
  71. package/dist/esm/getSerializers.js +3 -3
  72. package/dist/esm/{getTargeting-3cc3f97d.js → getTargeting-11d623e4.js} +32 -1
  73. package/dist/esm/getTargeting.js +1 -1
  74. package/dist/esm/index.js +8 -10
  75. package/dist/esm/{isSymbol-47f5ff3b.js → isSymbol-807e927e.js} +1 -1
  76. package/package.json +1 -1
  77. package/dist/cjs/ArticleQueue.js +0 -1689
  78. package/dist/cjs/_arrayMap-3b4a0f75.js +0 -91
  79. package/dist/esm/ArticleQueue.js +0 -1684
  80. package/dist/esm/_arrayMap-818441dd.js +0 -87
  81. /package/dist/cjs/{ADInfeed-350decaa.js → ADInfeed-eaa6c661.js} +0 -0
  82. /package/dist/cjs/{ADlgInfeed-7d61609b.js → ADlgInfeed-f25eb4f7.js} +0 -0
  83. /package/dist/cjs/{index-1620daac.js → index-4f22007d.js} +0 -0
  84. /package/dist/esm/{ADInfeed-fd7a62b1.js → ADInfeed-3c4773f8.js} +0 -0
  85. /package/dist/esm/{ADlgInfeed-79c771d6.js → ADlgInfeed-5a52301f.js} +0 -0
  86. /package/dist/esm/{index-fe4d6d6e.js → index-4b48a31f.js} +0 -0
@@ -14,8 +14,8 @@ import 'prop-types';
14
14
  import 'react-bootstrap/Card';
15
15
  import './moment-12415288.js';
16
16
  import 'next/router';
17
- import './isSymbol-47f5ff3b.js';
18
- import './debounce-a0d9abca.js';
17
+ import './isSymbol-807e927e.js';
18
+ import './debounce-1a993acf.js';
19
19
  import './index.es-938a3a58.js';
20
20
  import 'react-dom';
21
21
  import './visibility-sensor-0baa4eea.js';
@@ -29,9 +29,9 @@ import './asyncToGenerator-271a52f3.js';
29
29
  import './_set-species-41cbf140.js';
30
30
  import './beam-c4d8f8f6.js';
31
31
  import './AdSlot.js';
32
- import './ADInfeed-fd7a62b1.js';
32
+ import './ADInfeed-3c4773f8.js';
33
33
  import './lodash-17fdfebb.js';
34
- import './ADlgInfeed-79c771d6.js';
34
+ import './ADlgInfeed-5a52301f.js';
35
35
  import './AuthorComponent-1ea27faa.js';
36
36
  import 'react-bootstrap';
37
37
  import QueueDeckExpanded from './QueueDeckExpanded.js';
@@ -8,8 +8,8 @@ import './web.dom.iterable-03c5ba1c.js';
8
8
  import React__default, { useRef, useEffect } from 'react';
9
9
  import './index-93ec3c59.js';
10
10
  import 'prop-types';
11
- import './isSymbol-47f5ff3b.js';
12
- import './debounce-a0d9abca.js';
11
+ import './isSymbol-807e927e.js';
12
+ import './debounce-1a993acf.js';
13
13
  import './main-0465b2a0.js';
14
14
  import './stringify-feadff37.js';
15
15
  import './slicedToArray-5fb01661.js';
@@ -22,8 +22,8 @@ import 'react-bootstrap/Col';
22
22
  import 'react-bootstrap/Card';
23
23
  import './moment-12415288.js';
24
24
  import { withRouter } from 'next/router';
25
- import './isSymbol-47f5ff3b.js';
26
- import { d as debounce_1 } from './debounce-a0d9abca.js';
25
+ import './isSymbol-807e927e.js';
26
+ import { d as debounce_1 } from './debounce-1a993acf.js';
27
27
  import { I as InfiniteScroll } from './index.es-938a3a58.js';
28
28
  import 'react-dom';
29
29
  import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
@@ -35,9 +35,9 @@ import { _ as _Promise } from './asyncToGenerator-271a52f3.js';
35
35
  import './_set-species-41cbf140.js';
36
36
  import './beam-c4d8f8f6.js';
37
37
  import './AdSlot.js';
38
- import { A as ADInfeed } from './ADInfeed-fd7a62b1.js';
38
+ import { A as ADInfeed } from './ADInfeed-3c4773f8.js';
39
39
  import { l as lodash } from './lodash-17fdfebb.js';
40
- import { A as ADlgInfeed } from './ADlgInfeed-79c771d6.js';
40
+ import { A as ADlgInfeed } from './ADlgInfeed-5a52301f.js';
41
41
 
42
42
  var MasterDeck = function (_React$Component) {
43
43
  _inherits(MasterDeck, _React$Component);
@@ -21,8 +21,8 @@ import 'react-bootstrap/Col';
21
21
  import 'react-bootstrap/Card';
22
22
  import { m as moment } from './moment-12415288.js';
23
23
  import 'next/router';
24
- import './isSymbol-47f5ff3b.js';
25
- import './debounce-a0d9abca.js';
24
+ import './isSymbol-807e927e.js';
25
+ import './debounce-1a993acf.js';
26
26
  import './index.es-938a3a58.js';
27
27
  import 'react-dom';
28
28
  import './visibility-sensor-0baa4eea.js';
@@ -36,9 +36,9 @@ import { a as _asyncToGenerator, r as regenerator, _ as _Promise } from './async
36
36
  import './_set-species-41cbf140.js';
37
37
  import './beam-c4d8f8f6.js';
38
38
  import './AdSlot.js';
39
- import './ADInfeed-fd7a62b1.js';
39
+ import './ADInfeed-3c4773f8.js';
40
40
  import './lodash-17fdfebb.js';
41
- import './ADlgInfeed-79c771d6.js';
41
+ import './ADlgInfeed-5a52301f.js';
42
42
  import './AuthorComponent-1ea27faa.js';
43
43
  import { B as BlockContent } from './BlockContent-a614acdf.js';
44
44
  import { s as smoothscroll } from './smoothscroll-4b699764.js';
@@ -46,7 +46,7 @@ import './GroupDeck.js';
46
46
  import 'react-bootstrap';
47
47
  import QueueDeckExpanded from './QueueDeckExpanded.js';
48
48
  import 'react-bootstrap/Button';
49
- import { g as getSerializers } from './index-fe4d6d6e.js';
49
+ import { g as getSerializers } from './index-4b48a31f.js';
50
50
  import './util-7700fc59.js';
51
51
  import './brightcove-react-player-loader.es-83f53e4e.js';
52
52
  import 'react-bootstrap/Pagination';
@@ -14,8 +14,8 @@ import 'prop-types';
14
14
  import 'react-bootstrap/Card';
15
15
  import { m as moment } from './moment-12415288.js';
16
16
  import { useRouter } from 'next/router';
17
- import './isSymbol-47f5ff3b.js';
18
- import './debounce-a0d9abca.js';
17
+ import './isSymbol-807e927e.js';
18
+ import './debounce-1a993acf.js';
19
19
  import { I as InfiniteScroll } from './index.es-938a3a58.js';
20
20
  import 'react-dom';
21
21
  import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
@@ -29,9 +29,9 @@ import './asyncToGenerator-271a52f3.js';
29
29
  import './_set-species-41cbf140.js';
30
30
  import './beam-c4d8f8f6.js';
31
31
  import './AdSlot.js';
32
- import { A as ADInfeed } from './ADInfeed-fd7a62b1.js';
32
+ import { A as ADInfeed } from './ADInfeed-3c4773f8.js';
33
33
  import { l as lodash } from './lodash-17fdfebb.js';
34
- import { A as ADlgInfeed } from './ADlgInfeed-79c771d6.js';
34
+ import { A as ADlgInfeed } from './ADlgInfeed-5a52301f.js';
35
35
  import { A as AuthorComponent } from './AuthorComponent-1ea27faa.js';
36
36
  import { Container, Media } from 'react-bootstrap';
37
37
 
@@ -8,13 +8,12 @@ import './define-property-99e9c0ad.js';
8
8
  import './web.dom.iterable-03c5ba1c.js';
9
9
  import React__default, { useRef, useEffect } from 'react';
10
10
  import 'prop-types';
11
- import './isSymbol-47f5ff3b.js';
11
+ import './isSymbol-807e927e.js';
12
12
  import './stringify-feadff37.js';
13
13
  import './asyncToGenerator-271a52f3.js';
14
14
  import './_set-species-41cbf140.js';
15
15
  import { S as Segment } from './beam-c4d8f8f6.js';
16
- import './_arrayMap-818441dd.js';
17
- import { g as get_1 } from './get-58d2f7cc.js';
16
+ import { g as get_1 } from './get-5ee14cda.js';
18
17
  import { r as reactSocialIcons_1 } from './react-social-icons-a7d5c5c7.js';
19
18
  import { _ as _defineProperty } from './defineProperty-fa14766d.js';
20
19
 
@@ -13,8 +13,8 @@ import Container from 'react-bootstrap/Container';
13
13
  import 'react-bootstrap/Row';
14
14
  import 'react-bootstrap/Col';
15
15
  import { useRouter } from 'next/router';
16
- import './isSymbol-47f5ff3b.js';
17
- import './debounce-a0d9abca.js';
16
+ import './isSymbol-807e927e.js';
17
+ import './debounce-1a993acf.js';
18
18
  import './main-0465b2a0.js';
19
19
  import './stringify-feadff37.js';
20
20
  import { _ as _slicedToArray } from './slicedToArray-5fb01661.js';
@@ -22,8 +22,7 @@ import './asyncToGenerator-271a52f3.js';
22
22
  import './_set-species-41cbf140.js';
23
23
  import './beam-c4d8f8f6.js';
24
24
  import './AdSlot.js';
25
- import './_arrayMap-818441dd.js';
26
- import './get-58d2f7cc.js';
25
+ import './get-5ee14cda.js';
27
26
  import './react-social-icons-a7d5c5c7.js';
28
27
  import 'react-bootstrap';
29
28
  import './iconBase-602d52fe.js';
@@ -16,8 +16,8 @@ import { l as lib_3 } from './index-93ec3c59.js';
16
16
  import 'prop-types';
17
17
  import Container from 'react-bootstrap/Container';
18
18
  import { withRouter } from 'next/router';
19
- import './isSymbol-47f5ff3b.js';
20
- import { d as debounce_1 } from './debounce-a0d9abca.js';
19
+ import './isSymbol-807e927e.js';
20
+ import { d as debounce_1 } from './debounce-1a993acf.js';
21
21
  import { I as InfiniteScroll } from './index.es-938a3a58.js';
22
22
  import 'react-dom';
23
23
  import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
package/dist/esm/View.js CHANGED
@@ -20,8 +20,8 @@ import 'react-bootstrap/Row';
20
20
  import 'react-bootstrap/Col';
21
21
  import { m as moment } from './moment-12415288.js';
22
22
  import { useRouter } from 'next/router';
23
- import './isSymbol-47f5ff3b.js';
24
- import './debounce-a0d9abca.js';
23
+ import './isSymbol-807e927e.js';
24
+ import './debounce-1a993acf.js';
25
25
  import { I as InfiniteScroll } from './index.es-938a3a58.js';
26
26
  import 'react-dom';
27
27
  import './index-51a80699.js';
@@ -39,7 +39,7 @@ import './smoothscroll-4b699764.js';
39
39
  import './GroupDeck.js';
40
40
  import 'react-bootstrap';
41
41
  import Button from 'react-bootstrap/Button';
42
- import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-fe4d6d6e.js';
42
+ import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-4b48a31f.js';
43
43
  import './util-7700fc59.js';
44
44
  import './brightcove-react-player-loader.es-83f53e4e.js';
45
45
  import 'react-bootstrap/Pagination';
@@ -51,12 +51,12 @@ import Form from 'react-bootstrap/Form';
51
51
  import FormControl from 'react-bootstrap/FormControl';
52
52
  import { _ as _Object$keys } from './keys-941eccc4.js';
53
53
  import 'react-bootstrap/Dropdown';
54
- import getKeywords from './getKeywords.js';
55
54
  import getSeriesDetail from './getSeriesDetail.js';
56
55
  import 'nookies';
57
56
  import getQuery from './getQuery.js';
58
57
  import getRelatedArticle from './getRelatedArticle.js';
59
- import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-3cc3f97d.js';
58
+ import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-11d623e4.js';
59
+ import getKeywords from './getKeywords.js';
60
60
  import urlFor from './urlFor.js';
61
61
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
62
62
 
@@ -118,6 +118,7 @@ var DocumentGroup = function DocumentGroup(_ref) {
118
118
  if (!article.documentGroup) {
119
119
  return null;
120
120
  }
121
+
121
122
  var name = getDocumentGroupName(article.documentGroup);
122
123
  var url = getDocumentGroupUrl(article.documentGroup);
123
124
  var thumbnailUrl = false;
@@ -308,7 +309,7 @@ var Article = function Article(props) {
308
309
  var url = _props$article$url.current,
309
310
  issue = _props$article.issue,
310
311
  source = _props$article.source,
311
- documentGroup = _props$article.documentGroup,
312
+ documentGroupMapping = _props$article.documentGroupMapping,
312
313
  regionalPages = props.regionalPages,
313
314
  nationalPage = props.nationalPage,
314
315
  ISIContent = props.ISIContent,
@@ -399,7 +400,7 @@ var Article = function Article(props) {
399
400
  };
400
401
 
401
402
  var RelevantTopics = function RelevantTopics() {
402
- if (content_placement && content_placement.length > 0 || documentGroup) {
403
+ if (content_placement && content_placement.length > 0 || documentGroupMapping) {
403
404
  return React__default.createElement(
404
405
  'div',
405
406
  { style: { color: '#262626' } },
@@ -412,23 +413,29 @@ var Article = function Article(props) {
412
413
  'Related Content:'
413
414
  )
414
415
  ),
415
- documentGroup && documentGroup.parent && React__default.createElement(
416
- React__default.Fragment,
417
- null,
418
- React__default.createElement(
419
- 'span',
420
- { className: '' },
416
+ documentGroupMapping && documentGroupMapping.map(function (documentGroup) {
417
+ if (!documentGroup.parent) {
418
+ return null;
419
+ }
420
+
421
+ return React__default.createElement(
422
+ React__default.Fragment,
423
+ null,
421
424
  React__default.createElement(
422
- 'a',
423
- {
424
- className: 'related-links',
425
- style: { color: 'blue' },
426
- href: cpModificationRequired ? '/' + documentGroup.parent.identifier.current + '/' + documentGroup.path : '/' + documentGroup.path },
427
- documentGroup.name
428
- )
429
- ),
430
- content_placement && content_placement.length ? ' | ' : null
431
- ),
425
+ 'span',
426
+ { className: '' },
427
+ React__default.createElement(
428
+ 'a',
429
+ {
430
+ className: 'related-links',
431
+ style: { color: 'blue' },
432
+ href: cpModificationRequired ? '/' + documentGroup.parent.identifier.current + '/' + documentGroup.path : '/' + documentGroup.path },
433
+ documentGroup.name
434
+ )
435
+ ),
436
+ content_placement && content_placement.length ? ' | ' : null
437
+ );
438
+ }),
432
439
  content_placement && content_placement.length > 0 ? content_placement.map(function (cp, index) {
433
440
  var cp_url = cpModificationRequired ? getContentPlacementUrl(cp) : cp.path;
434
441
  var href = '/' + cp_url;
@@ -1,4 +1,4 @@
1
- import { a as _root, c as isSymbol_1, d as isObject_1 } from './isSymbol-47f5ff3b.js';
1
+ import { _ as _root, i as isSymbol_1, a as isObject_1 } from './isSymbol-807e927e.js';
2
2
 
3
3
  /**
4
4
  * Gets the timestamp of the number of milliseconds that have elapsed since
@@ -274,4 +274,4 @@ function debounce(func, wait, options) {
274
274
 
275
275
  var debounce_1 = debounce;
276
276
 
277
- export { debounce_1 as d, toNumber_1 as t };
277
+ export { debounce_1 as d };
@@ -1,5 +1,31 @@
1
- import { c as isSymbol_1, a as _root, d as isObject_1, e as _Symbol } from './isSymbol-47f5ff3b.js';
2
- import { a as isArray_1, i as isFunction_1, _ as _arrayMap } from './_arrayMap-818441dd.js';
1
+ import { i as isSymbol_1, a as isObject_1, b as _baseGetTag, _ as _root, c as _Symbol } from './isSymbol-807e927e.js';
2
+
3
+ /**
4
+ * Checks if `value` is classified as an `Array` object.
5
+ *
6
+ * @static
7
+ * @memberOf _
8
+ * @since 0.1.0
9
+ * @category Lang
10
+ * @param {*} value The value to check.
11
+ * @returns {boolean} Returns `true` if `value` is an array, else `false`.
12
+ * @example
13
+ *
14
+ * _.isArray([1, 2, 3]);
15
+ * // => true
16
+ *
17
+ * _.isArray(document.body.children);
18
+ * // => false
19
+ *
20
+ * _.isArray('abc');
21
+ * // => false
22
+ *
23
+ * _.isArray(_.noop);
24
+ * // => false
25
+ */
26
+ var isArray = Array.isArray;
27
+
28
+ var isArray_1 = isArray;
3
29
 
4
30
  /** Used to match property names within property paths. */
5
31
  var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
@@ -28,6 +54,41 @@ function isKey(value, object) {
28
54
 
29
55
  var _isKey = isKey;
30
56
 
57
+ /** `Object#toString` result references. */
58
+ var asyncTag = '[object AsyncFunction]',
59
+ funcTag = '[object Function]',
60
+ genTag = '[object GeneratorFunction]',
61
+ proxyTag = '[object Proxy]';
62
+
63
+ /**
64
+ * Checks if `value` is classified as a `Function` object.
65
+ *
66
+ * @static
67
+ * @memberOf _
68
+ * @since 0.1.0
69
+ * @category Lang
70
+ * @param {*} value The value to check.
71
+ * @returns {boolean} Returns `true` if `value` is a function, else `false`.
72
+ * @example
73
+ *
74
+ * _.isFunction(_);
75
+ * // => true
76
+ *
77
+ * _.isFunction(/abc/);
78
+ * // => false
79
+ */
80
+ function isFunction(value) {
81
+ if (!isObject_1(value)) {
82
+ return false;
83
+ }
84
+ // The use of `Object#toString` avoids issues with the `typeof` operator
85
+ // in Safari 9 which returns 'object' for typed arrays and other constructors.
86
+ var tag = _baseGetTag(value);
87
+ return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
88
+ }
89
+
90
+ var isFunction_1 = isFunction;
91
+
31
92
  /** Used to detect overreaching core-js shims. */
32
93
  var coreJsData = _root['__core-js_shared__'];
33
94
 
@@ -753,6 +814,28 @@ var stringToPath = _memoizeCapped(function(string) {
753
814
 
754
815
  var _stringToPath = stringToPath;
755
816
 
817
+ /**
818
+ * A specialized version of `_.map` for arrays without support for iteratee
819
+ * shorthands.
820
+ *
821
+ * @private
822
+ * @param {Array} [array] The array to iterate over.
823
+ * @param {Function} iteratee The function invoked per iteration.
824
+ * @returns {Array} Returns the new mapped array.
825
+ */
826
+ function arrayMap(array, iteratee) {
827
+ var index = -1,
828
+ length = array == null ? 0 : array.length,
829
+ result = Array(length);
830
+
831
+ while (++index < length) {
832
+ result[index] = iteratee(array[index], index, array);
833
+ }
834
+ return result;
835
+ }
836
+
837
+ var _arrayMap = arrayMap;
838
+
756
839
  /** Used as references for various `Number` constants. */
757
840
  var INFINITY = 1 / 0;
758
841
 
@@ -8,9 +8,9 @@ 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 && published <= 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 },\n body[] {\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n disableAds\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n \'path\': identifier.current\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 && published <= 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 },\n body[] {\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n disableAds\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n \'path\': identifier.current\n },\n documentGroupMapping[]-> {\n name,\n thumbnail,\n parent->{...,parent->},\n \'path\': identifier.current\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
- return '*[\n _type == "article"\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && url.current == $url\n ' + conditions + '\n ][0]{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography },\n body[] {\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 },\n articles[]{\n ...,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography },\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n ...,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\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 }';
13
+ return '*[\n _type == "article"\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && url.current == $url\n ' + conditions + '\n ][0]{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography },\n body[] {\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 },\n articles[]{\n ...,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography },\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n ...,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n \'path\': identifier.current\n },\n documentGroupMapping[]-> {\n name,\n thumbnail,\n parent->{...,parent->},\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':
15
15
  return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issues\': *[_type == \'publication\'\n && is_visible\n && references(^._id)\n && defined(identifier)] {\n ...,\n pdf{asset->}\n } | order(year desc, month desc)\n }';
16
16
  case 'issue':
@@ -20,8 +20,8 @@ import 'react-bootstrap/Row';
20
20
  import 'react-bootstrap/Col';
21
21
  import './moment-12415288.js';
22
22
  import 'next/router';
23
- import './isSymbol-47f5ff3b.js';
24
- import './debounce-a0d9abca.js';
23
+ import './isSymbol-807e927e.js';
24
+ import './debounce-1a993acf.js';
25
25
  import 'react-dom';
26
26
  import './index-51a80699.js';
27
27
  import './index-5f9f807a.js';
@@ -38,7 +38,7 @@ import './smoothscroll-4b699764.js';
38
38
  import './GroupDeck.js';
39
39
  import 'react-bootstrap';
40
40
  import 'react-bootstrap/Button';
41
- export { g as default } from './index-fe4d6d6e.js';
41
+ export { g as default } from './index-4b48a31f.js';
42
42
  import './util-7700fc59.js';
43
43
  import './brightcove-react-player-loader.es-83f53e4e.js';
44
44
  import 'react-bootstrap/Pagination';
@@ -47,6 +47,7 @@ var getTargeting = function getTargeting(props) {
47
47
  path: ''
48
48
  } : _article$documentGrou;
49
49
  var document_group = _article$documentGrou.path,
50
+ document_groups = article.document_groups,
50
51
  content_placement = article.content_placement;
51
52
 
52
53
  var context = url;
@@ -84,10 +85,40 @@ var getTargeting = function getTargeting(props) {
84
85
  } else {
85
86
  content_placement_urls = ['/'];
86
87
  }
88
+
89
+ var document_group_urls = [];
90
+ if (document_groups && prevUrl && prevUrl.length) {
91
+ document_groups.forEach(function (item) {
92
+ var path = item.path;
93
+ if (cpModificationRequired) {
94
+ path = getContentPlacementUrl(item);
95
+ }
96
+
97
+ var previous_url_to_check = prevUrl;
98
+ if (prevUrl.includes('?')) {
99
+ previous_url_to_check = prevUrl.split('?')[0];
100
+ }
101
+
102
+ if (previous_url_to_check.endsWith(path)) {
103
+ document_group_urls.push(path);
104
+ }
105
+ });
106
+ }
107
+
108
+ if (document_groups) {
109
+ if (document_group_urls.length === 0) {
110
+ document_group_urls = document_groups.map(function (item) {
111
+ return cpModificationRequired ? getContentPlacementUrl(item) : item.path;
112
+ });
113
+ }
114
+ } else {
115
+ document_group_urls = [document_group];
116
+ }
117
+
87
118
  var articleKeywords = [].concat(_toConsumableArray(internalTag), _toConsumableArray(userDefinedTag), _toConsumableArray(SponsorshipTag), _toConsumableArray(seoTag));
88
119
  var targeting = {
89
120
  tags: articleKeywords,
90
- document_group: [document_group],
121
+ document_group: document_group_urls,
91
122
  document_url: [url],
92
123
  content_placement: content_placement_urls
93
124
  };
@@ -6,4 +6,4 @@ import './toConsumableArray-e7f3f5a6.js';
6
6
  import './core.get-iterator-method-e41daf74.js';
7
7
  import './_object-pie-33c40e79.js';
8
8
  import './extends-229166d5.js';
9
- export { g as default } from './getTargeting-3cc3f97d.js';
9
+ export { g as default } from './getTargeting-11d623e4.js';
package/dist/esm/index.js CHANGED
@@ -22,8 +22,8 @@ import 'react-bootstrap/Col';
22
22
  import 'react-bootstrap/Card';
23
23
  import './moment-12415288.js';
24
24
  import 'next/router';
25
- import './isSymbol-47f5ff3b.js';
26
- import './debounce-a0d9abca.js';
25
+ import './isSymbol-807e927e.js';
26
+ import './debounce-1a993acf.js';
27
27
  import './index.es-938a3a58.js';
28
28
  import 'react-dom';
29
29
  import './visibility-sensor-0baa4eea.js';
@@ -37,12 +37,11 @@ import './asyncToGenerator-271a52f3.js';
37
37
  import './_set-species-41cbf140.js';
38
38
  export { B as Beam, S as Segment } from './beam-c4d8f8f6.js';
39
39
  export { default as AdSlot } from './AdSlot.js';
40
- import './ADInfeed-fd7a62b1.js';
40
+ import './ADInfeed-3c4773f8.js';
41
41
  export { default as DeckContent } from './DeckContent.js';
42
42
  import './lodash-17fdfebb.js';
43
- import './ADlgInfeed-79c771d6.js';
44
- import './_arrayMap-818441dd.js';
45
- import './get-58d2f7cc.js';
43
+ import './ADlgInfeed-5a52301f.js';
44
+ import './get-5ee14cda.js';
46
45
  export { default as AD } from './AD.js';
47
46
  import './AuthorComponent-1ea27faa.js';
48
47
  export { default as GridContent } from './GridContent.js';
@@ -73,7 +72,7 @@ import './index-d2f90501.js';
73
72
  import './js.cookie-6874175c.js';
74
73
  export { default as EventsDeck } from './EventsDeck.js';
75
74
  export { default as CMEDeck } from './CMEDeck.js';
76
- export { g as getSerializers } from './index-fe4d6d6e.js';
75
+ export { g as getSerializers } from './index-4b48a31f.js';
77
76
  import './util-7700fc59.js';
78
77
  import './brightcove-react-player-loader.es-83f53e4e.js';
79
78
  import 'react-bootstrap/Pagination';
@@ -141,8 +140,6 @@ export { default as PublicationLanding } from './PublicationLanding.js';
141
140
  export { default as IssueLanding } from './IssueLanding.js';
142
141
  import 'react-bootstrap/Modal';
143
142
  export { default as PopUpModal } from './PopUpModal.js';
144
- export { default as ArticleQueue } from './ArticleQueue.js';
145
- export { default as getKeywords } from './getKeywords.js';
146
143
  export { default as RelatedContent } from './RelatedContent.js';
147
144
  export { default as ForbesHero } from './ForbesHero.js';
148
145
  export { default as HorizontalHero } from './HorizontalHero.js';
@@ -162,8 +159,9 @@ export { default as Auth } from './Auth.js';
162
159
  import 'swr';
163
160
  import 'passport-local';
164
161
  import 'mysql';
165
- export { g as getTargeting } from './getTargeting-3cc3f97d.js';
162
+ export { g as getTargeting } from './getTargeting-11d623e4.js';
166
163
  export { default as View } from './View.js';
164
+ export { default as getKeywords } from './getKeywords.js';
167
165
  export { default as urlFor } from './urlFor.js';
168
166
  import './style-inject.es-1f59c1d0.js';
169
167
  import 'react-twitter-embed';
@@ -200,4 +200,4 @@ function isSymbol(value) {
200
200
 
201
201
  var isSymbol_1 = isSymbol;
202
202
 
203
- export { _baseGetTag as _, _root as a, _freeGlobal as b, isSymbol_1 as c, isObject_1 as d, _Symbol as e, isObjectLike_1 as i };
203
+ export { _root as _, isObject_1 as a, _baseGetTag as b, _Symbol as c, isSymbol_1 as i };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.646",
3
+ "version": "1.0.648",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",