@mjhls/mjh-framework 1.0.859-segment-targeting-v2 → 1.0.859

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 (148) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +2 -3
  4. package/dist/cjs/AD300x250x600.js +2 -3
  5. package/dist/cjs/AD728x90.js +2 -3
  6. package/dist/cjs/ADFloatingFooter.js +2 -3
  7. package/dist/cjs/ADGutter.js +2 -3
  8. package/dist/cjs/ADSkyscraper.js +2 -3
  9. package/dist/cjs/ADSponsoredResources.js +2 -3
  10. package/dist/cjs/ADWebcast.js +2 -3
  11. package/dist/cjs/ADWelcome.js +2 -3
  12. package/dist/cjs/AdSlot.js +2 -3
  13. package/dist/cjs/AdSlotsProvider.js +1 -2
  14. package/dist/cjs/AlgoliaSearch.js +17 -14090
  15. package/dist/cjs/AlphabeticList.js +1 -1
  16. package/dist/cjs/ArticleCarousel.js +1 -1
  17. package/dist/cjs/ArticleProgramLandingPage.js +5 -5
  18. package/dist/cjs/ArticleSeriesLandingPage.js +5 -6
  19. package/dist/cjs/ArticleSeriesListing.js +3 -4
  20. package/dist/cjs/Auth.js +1 -1
  21. package/dist/cjs/AuthWrapper.js +6 -622
  22. package/dist/cjs/CMEDeck.js +1 -2
  23. package/dist/cjs/Column3.js +2 -3
  24. package/dist/cjs/ConferenceArticleCard.js +15 -15
  25. package/dist/cjs/DeckContent.js +12 -13
  26. package/dist/cjs/DeckQueue.js +3 -4
  27. package/dist/cjs/{Dfp-391fd124.js → Dfp-0bf098b5.js} +1 -2
  28. package/dist/cjs/EventsDeck.js +19 -19
  29. package/dist/cjs/ExternalResources.js +6 -6
  30. package/dist/cjs/GridContent.js +5 -6
  31. package/dist/cjs/HamMagazine.js +9 -9
  32. package/dist/cjs/HorizontalArticleListing.js +5 -5
  33. package/dist/cjs/IssueDeck.js +1 -1
  34. package/dist/cjs/IssueLanding.js +36 -36
  35. package/dist/cjs/KMTracker.js +15 -15
  36. package/dist/cjs/LeftNav.js +2 -3
  37. package/dist/cjs/MasterDeck.js +13 -14
  38. package/dist/cjs/MediaSeriesLanding.js +407 -462
  39. package/dist/cjs/NavMagazine.js +10 -10
  40. package/dist/cjs/NavNative.js +9 -9
  41. package/dist/cjs/PartnerDetailListing.js +1208 -11
  42. package/dist/cjs/PubSection.js +4 -5
  43. package/dist/cjs/PublicationLanding.js +27 -27
  44. package/dist/cjs/QueueDeckExpanded.js +4 -5
  45. package/dist/cjs/RelatedContent.js +28 -28
  46. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  47. package/dist/cjs/Segment.js +21 -9
  48. package/dist/cjs/SeriesListingDeck.js +3 -4
  49. package/dist/cjs/{SeriesSlider-0d3bf265.js → SeriesSlider-60fa1342.js} +4 -4
  50. package/dist/cjs/SideFooter.js +2 -2
  51. package/dist/cjs/TaxonomyCard.js +1 -1
  52. package/dist/cjs/TaxonomyDescription.js +5 -5
  53. package/dist/cjs/TemplateNormal.js +2 -3
  54. package/dist/cjs/VideoProgramLandingPage.js +5 -5
  55. package/dist/cjs/VideoSeriesCard.js +1 -1
  56. package/dist/cjs/VideoSeriesLandingPage.js +5 -6
  57. package/dist/cjs/VideoSeriesListing.js +3 -4
  58. package/dist/cjs/View.js +12 -18
  59. package/dist/cjs/YoutubeGroup.js +4 -4
  60. package/dist/cjs/{extends-0a918631.js → extends-60837c34.js} +0 -1
  61. package/dist/cjs/getQuery.js +1 -1
  62. package/dist/cjs/getRelatedArticle.js +1 -1
  63. package/dist/cjs/getSerializers.js +5 -5
  64. package/dist/cjs/{getTargeting-a9a871f0.js → getTargeting-3e45e4d4.js} +10 -10
  65. package/dist/cjs/getTargeting.js +2 -2
  66. package/dist/cjs/{index-2cf30c83.js → index-44481153.js} +485 -39
  67. package/dist/cjs/{index-6367b7bf.js → index-99edf08a.js} +16 -15
  68. package/dist/cjs/{index-84332690.js → index-cf3e6aca.js} +8 -258
  69. package/dist/cjs/index.js +11 -12
  70. package/dist/cjs/{inherits-0c7830c5.js → inherits-87492b40.js} +0 -3
  71. package/dist/esm/AD.js +1 -1
  72. package/dist/esm/AD300x250.js +2 -3
  73. package/dist/esm/AD300x250x600.js +2 -3
  74. package/dist/esm/AD728x90.js +2 -3
  75. package/dist/esm/ADFloatingFooter.js +2 -3
  76. package/dist/esm/ADGutter.js +2 -3
  77. package/dist/esm/ADSkyscraper.js +2 -3
  78. package/dist/esm/ADSponsoredResources.js +2 -3
  79. package/dist/esm/ADWebcast.js +2 -3
  80. package/dist/esm/ADWelcome.js +2 -3
  81. package/dist/esm/AdSlot.js +2 -3
  82. package/dist/esm/AdSlotsProvider.js +1 -2
  83. package/dist/esm/AlgoliaSearch.js +16 -14089
  84. package/dist/esm/AlphabeticList.js +1 -1
  85. package/dist/esm/ArticleCarousel.js +1 -1
  86. package/dist/esm/ArticleProgramLandingPage.js +5 -5
  87. package/dist/esm/ArticleSeriesLandingPage.js +5 -6
  88. package/dist/esm/ArticleSeriesListing.js +3 -4
  89. package/dist/esm/Auth.js +1 -1
  90. package/dist/esm/AuthWrapper.js +5 -622
  91. package/dist/esm/CMEDeck.js +1 -2
  92. package/dist/esm/Column3.js +2 -3
  93. package/dist/esm/ConferenceArticleCard.js +15 -15
  94. package/dist/esm/DeckContent.js +12 -13
  95. package/dist/esm/DeckQueue.js +3 -4
  96. package/dist/esm/{Dfp-2f9796e1.js → Dfp-85c9513e.js} +1 -2
  97. package/dist/esm/EventsDeck.js +19 -19
  98. package/dist/esm/ExternalResources.js +6 -6
  99. package/dist/esm/GridContent.js +5 -6
  100. package/dist/esm/HamMagazine.js +9 -9
  101. package/dist/esm/HorizontalArticleListing.js +5 -5
  102. package/dist/esm/IssueDeck.js +1 -1
  103. package/dist/esm/IssueLanding.js +36 -36
  104. package/dist/esm/KMTracker.js +15 -15
  105. package/dist/esm/LeftNav.js +2 -3
  106. package/dist/esm/MasterDeck.js +13 -14
  107. package/dist/esm/MediaSeriesLanding.js +132 -187
  108. package/dist/esm/NavMagazine.js +10 -10
  109. package/dist/esm/NavNative.js +9 -9
  110. package/dist/esm/PartnerDetailListing.js +1207 -11
  111. package/dist/esm/PubSection.js +4 -5
  112. package/dist/esm/PublicationLanding.js +27 -27
  113. package/dist/esm/QueueDeckExpanded.js +4 -5
  114. package/dist/esm/RelatedContent.js +28 -28
  115. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  116. package/dist/esm/Segment.js +21 -9
  117. package/dist/esm/SeriesListingDeck.js +3 -4
  118. package/dist/esm/{SeriesSlider-7d89f4d9.js → SeriesSlider-05ecb544.js} +4 -4
  119. package/dist/esm/SideFooter.js +2 -2
  120. package/dist/esm/TaxonomyCard.js +1 -1
  121. package/dist/esm/TaxonomyDescription.js +5 -5
  122. package/dist/esm/TemplateNormal.js +2 -3
  123. package/dist/esm/VideoProgramLandingPage.js +5 -5
  124. package/dist/esm/VideoSeriesCard.js +1 -1
  125. package/dist/esm/VideoSeriesLandingPage.js +5 -6
  126. package/dist/esm/VideoSeriesListing.js +3 -4
  127. package/dist/esm/View.js +12 -18
  128. package/dist/esm/YoutubeGroup.js +4 -4
  129. package/dist/esm/{extends-6f2fcc99.js → extends-eb69e8ac.js} +1 -1
  130. package/dist/esm/getQuery.js +1 -1
  131. package/dist/esm/getRelatedArticle.js +1 -1
  132. package/dist/esm/getSerializers.js +5 -5
  133. package/dist/esm/{getTargeting-bd800589.js → getTargeting-9cb7e014.js} +10 -10
  134. package/dist/esm/getTargeting.js +2 -2
  135. package/dist/esm/{index-f7fb1e25.js → index-1819118a.js} +484 -38
  136. package/dist/esm/{index-95d38271.js → index-9bed8450.js} +6 -257
  137. package/dist/esm/{index-c00b0bbb.js → index-fa2ffe86.js} +16 -15
  138. package/dist/esm/index.js +11 -12
  139. package/dist/esm/{inherits-75d45541.js → inherits-0d8cda6e.js} +1 -1
  140. package/package.json +110 -110
  141. package/dist/cjs/events-1b438fe7.js +0 -469
  142. package/dist/cjs/index-e2e62963.js +0 -89
  143. package/dist/esm/events-6c3a7a63.js +0 -467
  144. package/dist/esm/index-aaa2dae0.js +0 -85
  145. /package/dist/cjs/{ADInfeed-87d1627b.js → ADInfeed-ff26342c.js} +0 -0
  146. /package/dist/cjs/{ADlgInfeed-0070c9c4.js → ADlgInfeed-ad4953d4.js} +0 -0
  147. /package/dist/esm/{ADInfeed-f7a68557.js → ADInfeed-422ad6e6.js} +0 -0
  148. /package/dist/esm/{ADlgInfeed-b0a8a43b.js → ADlgInfeed-f7468db8.js} +0 -0
@@ -18,10 +18,10 @@ import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
18
18
  import { g as getYoutubeId } from './index-c7e2ac95.js';
19
19
  import { s as smoothscroll } from './smoothscroll-0cd4c7a6.js';
20
20
 
21
- /*
22
- GROQ query -
23
- accepts an array of title, URL
24
- `https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
21
+ /*
22
+ GROQ query -
23
+ accepts an array of title, URL
24
+ `https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
25
25
  */
26
26
 
27
27
  var YoutubeGroup = function YoutubeGroup(props) {
@@ -80,4 +80,4 @@ exports.default = _assign2.default || function (target) {
80
80
 
81
81
  var _extends$1 = unwrapExports(_extends);
82
82
 
83
- export { _extends$1 as _, _Object$assign as a, _extends as b };
83
+ export { _extends$1 as _, _Object$assign as a };
@@ -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 slides[]{\n ...,\n slideshowImage{\n ...,\n "width": asset->.metadata.dimensions.width,\n "height": asset->.metadata.dimensions.height,\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 }';
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 slides[]{\n ...,\n slideshowImage{\n ...,\n "width": asset->.metadata.dimensions.width,\n "height": asset->.metadata.dimensions.height,\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 }';
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 slides[]{\n ...,\n slideshowImage{\n ...,\n "width": asset->.metadata.dimensions.width,\n "height": asset->.metadata.dimensions.height,\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 },\n articles[]{\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':
@@ -303,7 +303,7 @@ function setCookie$1(ctx, name, value, options) {
303
303
  var cookiesToSet_1 = [];
304
304
  parsedCookies.forEach(function (parsedCookie) {
305
305
  if (!areCookiesEqual(parsedCookie, createCookie(name, value, options))) {
306
- cookiesToSet_1.push(cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({ encode: function (val) { return val; } }, parsedCookie)));
306
+ cookiesToSet_1.push(cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({}, parsedCookie)));
307
307
  }
308
308
  });
309
309
  cookiesToSet_1.push(cookie.serialize(name, value, options));
@@ -6,16 +6,15 @@ import './_iter-detect-5d49a330.js';
6
6
  import './toConsumableArray-43aa614d.js';
7
7
  import './core.get-iterator-method-e1de7503.js';
8
8
  import './_object-pie-33c40e79.js';
9
- import './extends-6f2fcc99.js';
9
+ import './extends-eb69e8ac.js';
10
10
  import './_object-sap-964b6feb.js';
11
- import './inherits-75d45541.js';
11
+ import './inherits-0d8cda6e.js';
12
12
  import './define-property-8af5f002.js';
13
13
  import './web.dom.iterable-4439f05a.js';
14
14
  import './typeof-af9c50d8.js';
15
15
  import './_is-array-58e95429.js';
16
16
  import 'react';
17
- import './events-6c3a7a63.js';
18
- import './index-f7fb1e25.js';
17
+ import './index-1819118a.js';
19
18
  import 'prop-types';
20
19
  import 'react-bootstrap/Row';
21
20
  import 'react-bootstrap/Col';
@@ -44,7 +43,7 @@ import './GroupDeck.js';
44
43
  import 'react-bootstrap';
45
44
  import './iconBase-602d52fe.js';
46
45
  import './index.esm-3fdda599.js';
47
- export { g as default } from './index-95d38271.js';
46
+ export { g as default } from './index-9bed8450.js';
48
47
  import './util-7700fc59.js';
49
48
  import './brightcove-react-player-loader.es-4abff0b1.js';
50
49
  import 'next/head';
@@ -56,3 +55,4 @@ import 'react-bootstrap/Figure';
56
55
  import 'react-bootstrap/OverlayTrigger';
57
56
  import 'react-bootstrap/Tooltip';
58
57
  import 'react-bootstrap/Popover';
58
+ import 'react-script-tag';
@@ -1,19 +1,19 @@
1
1
  import { _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
2
- import { _ as _extends } from './extends-6f2fcc99.js';
2
+ import { _ as _extends } from './extends-eb69e8ac.js';
3
3
 
4
4
  var getContentPlacementUrl = function getContentPlacementUrl(cp) {
5
- var cp_url = '';
6
- if (cp.ancestor && typeof cp.ancestor == 'string') {
7
- cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
8
- }
5
+ var cp_url = '';
6
+ if (cp.ancestor && typeof cp.ancestor == 'string') {
7
+ cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
8
+ }
9
9
 
10
- if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
11
- cp_url += (cp_url === '' ? '' : '/') + cp.parent;
12
- }
10
+ if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
11
+ cp_url += (cp_url === '' ? '' : '/') + cp.parent;
12
+ }
13
13
 
14
- cp_url += (cp_url === '' ? '' : '/') + (cp.adTargetingURL ? adTargetingURL : cp.path);
14
+ cp_url += (cp_url === '' ? '' : '/') + (cp.adTargetingURL ? adTargetingURL : cp.path);
15
15
 
16
- return cp_url;
16
+ return cp_url;
17
17
  };
18
18
 
19
19
  var getTargeting = function getTargeting(props) {
@@ -5,5 +5,5 @@ import './_iter-detect-5d49a330.js';
5
5
  import './toConsumableArray-43aa614d.js';
6
6
  import './core.get-iterator-method-e1de7503.js';
7
7
  import './_object-pie-33c40e79.js';
8
- import './extends-6f2fcc99.js';
9
- export { g as default } from './getTargeting-bd800589.js';
8
+ import './extends-eb69e8ac.js';
9
+ export { g as default } from './getTargeting-9cb7e014.js';