@mjhls/mjh-framework 1.0.642-iOS-mobile-fix → 1.0.642-multi-doc-group-v2

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 (160) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +5 -5
  4. package/dist/cjs/AD300x250x600.js +5 -5
  5. package/dist/cjs/AD728x90.js +6 -6
  6. package/dist/cjs/ADFloatingFooter.js +4 -4
  7. package/dist/cjs/ADGutter.js +4 -4
  8. package/dist/cjs/ADSkyscraper.js +4 -4
  9. package/dist/cjs/ADSponsoredResources.js +4 -4
  10. package/dist/cjs/ADWebcast.js +4 -4
  11. package/dist/cjs/ADWelcome.js +4 -4
  12. package/dist/cjs/AdSlot.js +4 -4
  13. package/dist/cjs/AdSlotsProvider.js +1 -1
  14. package/dist/cjs/ArticleSeriesListing.js +6 -6
  15. package/dist/cjs/Auth.js +506 -255
  16. package/dist/cjs/{BlockContent-80b15fac.js → BlockContent-88f69acd.js} +1 -1
  17. package/dist/cjs/CMEDeck.js +7 -7
  18. package/dist/cjs/Column2.js +2 -3
  19. package/dist/cjs/Column3.js +7 -8
  20. package/dist/cjs/ConferenceArticleCard.js +13 -29
  21. package/dist/cjs/DeckContent.js +9 -9
  22. package/dist/cjs/DeckQueue.js +9 -10
  23. package/dist/cjs/{Dfp-7a66946e.js → Dfp-b2bc3b97.js} +3 -3
  24. package/dist/cjs/EventsDeck.js +5 -5
  25. package/dist/cjs/ExternalResources.js +9 -9
  26. package/dist/cjs/Feature.js +3 -3
  27. package/dist/cjs/ForbesHero.js +2 -2
  28. package/dist/cjs/GridContent.js +14 -15
  29. package/dist/cjs/GridHero.js +2 -2
  30. package/dist/cjs/GroupDeck.js +1 -1
  31. package/dist/cjs/HamMagazine.js +4 -4
  32. package/dist/cjs/Hero.js +1 -1
  33. package/dist/cjs/HorizontalHero.js +2 -2
  34. package/dist/cjs/IssueContentDeck.js +2 -2
  35. package/dist/cjs/IssueDeck.js +2 -2
  36. package/dist/cjs/IssueLanding.js +10 -10
  37. package/dist/cjs/LeftNav.js +4 -4
  38. package/dist/cjs/MasterDeck.js +11 -11
  39. package/dist/cjs/NavMagazine.js +5 -5
  40. package/dist/cjs/NavNative.js +2 -2
  41. package/dist/cjs/OncliveHero.js +2 -2
  42. package/dist/cjs/OncliveLargeHero.js +2 -2
  43. package/dist/cjs/PartnerDetailListing.js +16 -1213
  44. package/dist/cjs/PublicationDeck.js +2 -2
  45. package/dist/cjs/QueueDeckExpanded.js +12 -12
  46. package/dist/cjs/RecentNews.js +2 -2
  47. package/dist/cjs/RelatedContent.js +2 -32
  48. package/dist/cjs/SideFooter.js +2 -3
  49. package/dist/cjs/{SocialSearchComponent-b52e39a7.js → SocialSearchComponent-bf750093.js} +5 -5
  50. package/dist/cjs/TaxonomyCard.js +2 -2
  51. package/dist/cjs/TemplateNormal.js +6 -7
  52. package/dist/cjs/ThumbnailCard.js +1 -1
  53. package/dist/cjs/Ustream.js +2 -2
  54. package/dist/cjs/VerticalHero.js +2 -2
  55. package/dist/cjs/VideoSeriesCard.js +2 -2
  56. package/dist/cjs/VideoSeriesListing.js +5 -5
  57. package/dist/cjs/View.js +67 -40
  58. package/dist/cjs/YahooHero.js +2 -2
  59. package/dist/cjs/YoutubeGroup.js +1 -1
  60. package/dist/cjs/{debounce-32e57002.js → debounce-eb287781.js} +1 -2
  61. package/dist/cjs/{get-5dfcdc33.js → get-68c52cb1.js} +90 -7
  62. package/dist/cjs/getQuery.js +2 -2
  63. package/dist/cjs/getRelatedArticle.js +5 -354
  64. package/dist/cjs/getSerializers.js +8 -8
  65. package/dist/cjs/{index-40bd0e4f.js → index-04c709c4.js} +14 -14
  66. package/dist/cjs/{index-099d45ae.js → index-2d0a4911.js} +4 -6
  67. package/dist/cjs/{index-3294d3bc.js → index-5be2866f.js} +1 -1
  68. package/dist/cjs/{index-39beccb3.js → index-b5eb3ff8.js} +18 -18
  69. package/dist/cjs/{index.es-9110add6.js → index.es-ab3f2690.js} +3 -1
  70. package/dist/cjs/index.js +21 -23
  71. package/dist/cjs/{isSymbol-488934a7.js → isSymbol-04666465.js} +0 -2
  72. package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
  73. package/dist/cjs/{main-a4cb15bb.js → main-b6c96c8d.js} +67 -36
  74. package/dist/cjs/{moment-575fe24c.js → moment-66a6a284.js} +1 -1
  75. package/dist/cjs/urlFor.js +1 -1
  76. package/dist/esm/AD.js +1 -1
  77. package/dist/esm/AD300x250.js +5 -5
  78. package/dist/esm/AD300x250x600.js +5 -5
  79. package/dist/esm/AD728x90.js +6 -6
  80. package/dist/esm/ADFloatingFooter.js +4 -4
  81. package/dist/esm/ADGutter.js +4 -4
  82. package/dist/esm/ADSkyscraper.js +4 -4
  83. package/dist/esm/ADSponsoredResources.js +4 -4
  84. package/dist/esm/ADWebcast.js +4 -4
  85. package/dist/esm/ADWelcome.js +4 -4
  86. package/dist/esm/AdSlot.js +4 -4
  87. package/dist/esm/AdSlotsProvider.js +1 -1
  88. package/dist/esm/ArticleSeriesListing.js +6 -6
  89. package/dist/esm/Auth.js +501 -250
  90. package/dist/esm/{BlockContent-c409aca5.js → BlockContent-a614acdf.js} +1 -1
  91. package/dist/esm/CMEDeck.js +7 -7
  92. package/dist/esm/Column2.js +2 -3
  93. package/dist/esm/Column3.js +7 -8
  94. package/dist/esm/ConferenceArticleCard.js +13 -29
  95. package/dist/esm/DeckContent.js +9 -9
  96. package/dist/esm/DeckQueue.js +9 -10
  97. package/dist/esm/{Dfp-64ed29cf.js → Dfp-43d61e01.js} +3 -3
  98. package/dist/esm/EventsDeck.js +5 -5
  99. package/dist/esm/ExternalResources.js +9 -9
  100. package/dist/esm/Feature.js +3 -3
  101. package/dist/esm/ForbesHero.js +2 -2
  102. package/dist/esm/GridContent.js +14 -15
  103. package/dist/esm/GridHero.js +2 -2
  104. package/dist/esm/GroupDeck.js +1 -1
  105. package/dist/esm/HamMagazine.js +4 -4
  106. package/dist/esm/Hero.js +1 -1
  107. package/dist/esm/HorizontalHero.js +2 -2
  108. package/dist/esm/IssueContentDeck.js +2 -2
  109. package/dist/esm/IssueDeck.js +2 -2
  110. package/dist/esm/IssueLanding.js +10 -10
  111. package/dist/esm/LeftNav.js +4 -4
  112. package/dist/esm/MasterDeck.js +11 -11
  113. package/dist/esm/NavMagazine.js +5 -5
  114. package/dist/esm/NavNative.js +2 -2
  115. package/dist/esm/OncliveHero.js +2 -2
  116. package/dist/esm/OncliveLargeHero.js +2 -2
  117. package/dist/esm/PartnerDetailListing.js +16 -1212
  118. package/dist/esm/PublicationDeck.js +2 -2
  119. package/dist/esm/QueueDeckExpanded.js +12 -12
  120. package/dist/esm/RecentNews.js +2 -2
  121. package/dist/esm/RelatedContent.js +2 -32
  122. package/dist/esm/SideFooter.js +2 -3
  123. package/dist/esm/{SocialSearchComponent-a45b3379.js → SocialSearchComponent-6d144699.js} +5 -5
  124. package/dist/esm/TaxonomyCard.js +2 -2
  125. package/dist/esm/TemplateNormal.js +6 -7
  126. package/dist/esm/ThumbnailCard.js +1 -1
  127. package/dist/esm/Ustream.js +2 -2
  128. package/dist/esm/VerticalHero.js +2 -2
  129. package/dist/esm/VideoSeriesCard.js +2 -2
  130. package/dist/esm/VideoSeriesListing.js +5 -5
  131. package/dist/esm/View.js +64 -37
  132. package/dist/esm/YahooHero.js +2 -2
  133. package/dist/esm/YoutubeGroup.js +1 -1
  134. package/dist/esm/{debounce-a0d9abca.js → debounce-1a993acf.js} +2 -2
  135. package/dist/esm/{get-58d2f7cc.js → get-5ee14cda.js} +85 -2
  136. package/dist/esm/getQuery.js +2 -2
  137. package/dist/esm/getRelatedArticle.js +5 -354
  138. package/dist/esm/getSerializers.js +8 -8
  139. package/dist/esm/{index-3849e3fe.js → index-51a80699.js} +18 -18
  140. package/dist/esm/{index-3f4dd6f2.js → index-93ec3c59.js} +4 -6
  141. package/dist/esm/{index-c017d31a.js → index-c3ffdcd7.js} +14 -14
  142. package/dist/esm/{index-ef6d5dcf.js → index-d2f90501.js} +1 -1
  143. package/dist/esm/{index.es-29c1cef5.js → index.es-938a3a58.js} +3 -1
  144. package/dist/esm/index.js +19 -20
  145. package/dist/esm/{isSymbol-47f5ff3b.js → isSymbol-807e927e.js} +1 -1
  146. package/dist/esm/{lodash-ec8c6b48.js → lodash-17fdfebb.js} +22 -71
  147. package/dist/esm/{main-5d1e4bd3.js → main-0465b2a0.js} +65 -34
  148. package/dist/esm/{moment-e2f9b20c.js → moment-12415288.js} +1 -1
  149. package/dist/esm/urlFor.js +1 -1
  150. package/package.json +3 -3
  151. package/dist/cjs/ArticleQueue.js +0 -1689
  152. package/dist/cjs/_arrayMap-3b4a0f75.js +0 -91
  153. package/dist/cjs/index-bd6c9f56.js +0 -211
  154. package/dist/esm/ArticleQueue.js +0 -1684
  155. package/dist/esm/_arrayMap-818441dd.js +0 -87
  156. package/dist/esm/index-db3bb315.js +0 -207
  157. /package/dist/cjs/{ADInfeed-bdb4dc62.js → ADInfeed-eaa6c661.js} +0 -0
  158. /package/dist/cjs/{ADlgInfeed-56376f48.js → ADlgInfeed-f25eb4f7.js} +0 -0
  159. /package/dist/esm/{ADInfeed-34a87706.js → ADInfeed-3c4773f8.js} +0 -0
  160. /package/dist/esm/{ADlgInfeed-2a864f1d.js → ADlgInfeed-5a52301f.js} +0 -0
@@ -58,35 +58,35 @@ function parseSource(source) {
58
58
  if (typeof source === 'string' && isUrl(source)) {
59
59
  // Someone passed an existing image url?
60
60
  image = {
61
- asset: { _ref: urlToId(source) }
61
+ asset: { _ref: urlToId(source) },
62
62
  };
63
63
  }
64
64
  else if (typeof source === 'string') {
65
65
  // Just an asset id
66
66
  image = {
67
- asset: { _ref: source }
67
+ asset: { _ref: source },
68
68
  };
69
69
  }
70
70
  else if (isRef(source)) {
71
71
  // We just got passed an asset directly
72
72
  image = {
73
- asset: source
73
+ asset: source,
74
74
  };
75
75
  }
76
76
  else if (isAsset(source)) {
77
77
  // If we were passed an image asset document
78
78
  image = {
79
79
  asset: {
80
- _ref: source._id || ''
81
- }
80
+ _ref: source._id || '',
81
+ },
82
82
  };
83
83
  }
84
84
  else if (isAssetStub(source)) {
85
85
  // If we were passed a partial asset (`url`, but no `_id`)
86
86
  image = {
87
87
  asset: {
88
- _ref: urlToId(source.asset.url)
89
- }
88
+ _ref: urlToId(source.asset.url),
89
+ },
90
90
  };
91
91
  }
92
92
  else if (typeof source.asset === 'object') {
@@ -127,7 +127,7 @@ function applyDefaults(image) {
127
127
  left: 0,
128
128
  top: 0,
129
129
  bottom: 0,
130
- right: 0
130
+ right: 0,
131
131
  };
132
132
  }
133
133
  if (!result.hotspot) {
@@ -135,7 +135,7 @@ function applyDefaults(image) {
135
135
  x: 0.5,
136
136
  y: 0.5,
137
137
  height: 1.0,
138
- width: 1.0
138
+ width: 1.0,
139
139
  };
140
140
  }
141
141
  return result;
@@ -182,7 +182,7 @@ exports.SPEC_NAME_TO_URL_NAME_MAPPINGS = [
182
182
  ['crop', 'crop'],
183
183
  ['saturation', 'sat'],
184
184
  ['auto', 'auto'],
185
- ['dpr', 'dpr']
185
+ ['dpr', 'dpr'],
186
186
  ];
187
187
  function urlForImage(options) {
188
188
  var spec = __assign({}, (options || {}));
@@ -201,7 +201,7 @@ function urlForImage(options) {
201
201
  left: cropLeft,
202
202
  top: cropTop,
203
203
  width: Math.round(asset.width - image.crop.right * asset.width - cropLeft),
204
- height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop)
204
+ height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop),
205
205
  };
206
206
  // Compute hot spot rect in terms of pixel coordinates
207
207
  var hotSpotVerticalRadius = (image.hotspot.height * asset.height) / 2;
@@ -212,7 +212,7 @@ function urlForImage(options) {
212
212
  left: hotSpotCenterX - hotSpotHorizontalRadius,
213
213
  top: hotSpotCenterY - hotSpotVerticalRadius,
214
214
  right: hotSpotCenterX + hotSpotHorizontalRadius,
215
- bottom: hotSpotCenterY + hotSpotVerticalRadius
215
+ bottom: hotSpotCenterY + hotSpotVerticalRadius,
216
216
  };
217
217
  // If irrelevant, or if we are requested to: don't perform crop/fit based on
218
218
  // the crop/hotspot.
@@ -294,7 +294,7 @@ function fit(source, spec) {
294
294
  left: Math.round(left),
295
295
  top: Math.round(top_2),
296
296
  width: Math.round(width),
297
- height: Math.round(height)
297
+ height: Math.round(height),
298
298
  };
299
299
  }
300
300
  else {
@@ -316,13 +316,13 @@ function fit(source, spec) {
316
316
  left: Math.max(0, Math.floor(left)),
317
317
  top: Math.max(0, Math.floor(top_3)),
318
318
  width: Math.round(width),
319
- height: Math.round(height)
319
+ height: Math.round(height),
320
320
  };
321
321
  }
322
322
  return {
323
323
  width: imgWidth,
324
324
  height: imgHeight,
325
- rect: cropRect
325
+ rect: cropRect,
326
326
  };
327
327
  }
328
328
 
@@ -380,7 +380,7 @@ function urlBuilder(options) {
380
380
  return new ImageUrlBuilder(null, {
381
381
  baseUrl: apiHost.replace(/^https:\/\/api\./, 'https://cdn.'),
382
382
  projectId: projectId,
383
- dataset: dataset
383
+ dataset: dataset,
384
384
  });
385
385
  }
386
386
  // Or just accept the options as given
@@ -393,7 +393,7 @@ var ImageUrlBuilder = /** @class */ (function () {
393
393
  ? __assign(__assign({}, (parent.options || {})), (options || {})) : __assign({}, (options || {})); // Copy options
394
394
  }
395
395
  ImageUrlBuilder.prototype.withOptions = function (options) {
396
- var baseUrl = options.baseUrl || '';
396
+ var baseUrl = options.baseUrl || this.options.baseUrl;
397
397
  var newOptions = { baseUrl: baseUrl };
398
398
  for (var key in options) {
399
399
  if (options.hasOwnProperty(key)) {
@@ -521,7 +521,7 @@ var ImageUrlBuilder = /** @class */ (function () {
521
521
  ImageUrlBuilder.prototype.url = function () {
522
522
  return urlForImage_1$1.default(this.options);
523
523
  };
524
- // Synonym for url()
524
+ // Alias for url()
525
525
  ImageUrlBuilder.prototype.toString = function () {
526
526
  return this.url();
527
527
  };
@@ -821,15 +821,13 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
821
821
  });
822
822
 
823
823
  if (_this5.lazyLoadIsEnabled()) {
824
- var args = [];
825
-
826
824
  var config = _this5.getLazyLoadConfig();
827
825
 
828
- if (config !== null) {
829
- args.push(config);
826
+ if (config) {
827
+ pubadsService.enableLazyLoad(config);
828
+ } else {
829
+ pubadsService.enableLazyLoad();
830
830
  }
831
-
832
- pubadsService.enableLazyLoad.call(args);
833
831
  }
834
832
 
835
833
  if (_this5.singleRequestIsEnabled()) {
@@ -4,20 +4,20 @@ import { _ as _extends } from './extends-229166d5.js';
4
4
  import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-9ddef7b3.js';
5
5
  import { _ as _typeof$1 } from './typeof-fea75829.js';
6
6
  import React__default, { useState, useEffect, useRef } from 'react';
7
- import { l as lib_3 } from './index-3f4dd6f2.js';
7
+ import { l as lib_3 } from './index-93ec3c59.js';
8
8
  import PropTypes from 'prop-types';
9
9
  import Row from 'react-bootstrap/Row';
10
10
  import Col from 'react-bootstrap/Col';
11
- import { m as moment } from './moment-e2f9b20c.js';
11
+ import { m as moment } from './moment-12415288.js';
12
12
  import Router, { useRouter } from 'next/router';
13
- import { i as imageUrlBuilder } from './index-3849e3fe.js';
13
+ import { i as imageUrlBuilder } from './index-51a80699.js';
14
14
  import { L as LazyLoad } from './index-5f9f807a.js';
15
- import { b as main_16, c as main_35, m as main_36 } from './main-5d1e4bd3.js';
15
+ import { b as main_16, c as main_38, m as main_39 } from './main-0465b2a0.js';
16
16
  import { h as html_decode_1 } from './entities-7cc3bf45.js';
17
17
  import { _ as _slicedToArray } from './slicedToArray-5fb01661.js';
18
18
  import { B as Beam, S as Segment } from './beam-c4d8f8f6.js';
19
19
  import DFPAdSlot from './AdSlot.js';
20
- import { B as BlockContent } from './BlockContent-c409aca5.js';
20
+ import { B as BlockContent } from './BlockContent-a614acdf.js';
21
21
  import { g as getYoutubeId } from './smoothscroll-4b699764.js';
22
22
  import GroupDeck from './GroupDeck.js';
23
23
  import { Carousel, Table, Figure as Figure$1, Button, ProgressBar, Card, Row as Row$1, Col as Col$1 } from 'react-bootstrap';
@@ -7497,7 +7497,7 @@ var Poll = function Poll(_ref) {
7497
7497
  );
7498
7498
  };
7499
7499
 
7500
- var numberOfPaginations = main_35 ? 4 : 10;
7500
+ var numberOfPaginations = main_38 ? 4 : 10;
7501
7501
 
7502
7502
  var Quiz = function Quiz(_ref) {
7503
7503
  var quizzes = _ref.quizzes,
@@ -7610,7 +7610,7 @@ var Quiz = function Quiz(_ref) {
7610
7610
  var renderPagination = function renderPagination() {
7611
7611
  return React__default.createElement(
7612
7612
  Pagination,
7613
- { className: 'p-0 m-0', size: main_35 && 'sm' },
7613
+ { className: 'p-0 m-0', size: main_38 && 'sm' },
7614
7614
  React__default.createElement(Pagination.First, { onClick: function onClick() {
7615
7615
  return changePage('first');
7616
7616
  }, disabled: currentPage === 1 }),
@@ -8030,7 +8030,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8030
8030
  var refArray = useRef([]);
8031
8031
  var adRefArray = useRef([]);
8032
8032
 
8033
- var _ref2 = main_36 ? useState(100) : useState(-25),
8033
+ var _ref2 = main_39 ? useState(100) : useState(-25),
8034
8034
  _ref3 = _slicedToArray(_ref2, 2),
8035
8035
  NavoffsetTop = _ref3[0],
8036
8036
  setNavoffsetTop = _ref3[1];
@@ -8108,7 +8108,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8108
8108
 
8109
8109
  useEffect(function () {
8110
8110
  try {
8111
- if (main_36) {
8111
+ if (main_39) {
8112
8112
  setNavoffsetTop(document.getElementById('navbar-ham').offsetHeight - 15);
8113
8113
  }
8114
8114
  } catch (e) {}
@@ -8188,7 +8188,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8188
8188
 
8189
8189
  useEffect(function () {
8190
8190
  if (!firstLoad) {
8191
- if (main_36) {
8191
+ if (main_39) {
8192
8192
  grabLoadedAds();
8193
8193
  } else {
8194
8194
  scrollToArticle();
@@ -8212,7 +8212,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8212
8212
  //const activeArticle = path
8213
8213
  //let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
8214
8214
 
8215
- if (!main_36) {
8215
+ if (!main_39) {
8216
8216
  lib_3.getGoogletag().then(function (googletag) {
8217
8217
  if (window.googletag && googletag.pubadsReady) {
8218
8218
  lib_3.refresh();
@@ -8220,7 +8220,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8220
8220
  });
8221
8221
  }
8222
8222
  //Refresh leaderboard ad on mobile
8223
- if (main_36) {
8223
+ if (main_39) {
8224
8224
  var leaderboardSlotId = '';
8225
8225
  lib_3.getGoogletag().then(function (googletag) {
8226
8226
  if (window.googletag && googletag.pubadsReady) {
@@ -8252,7 +8252,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8252
8252
  React__default.createElement(
8253
8253
  'div',
8254
8254
  { className: 'ad-box', style: { textAlign: 'center' } },
8255
- main_36 && Ads.map(function (ad, index) {
8255
+ main_39 && Ads.map(function (ad, index) {
8256
8256
  if (index === 0) {
8257
8257
  return React__default.createElement(
8258
8258
  'div',
@@ -8350,7 +8350,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8350
8350
  React__default.createElement(
8351
8351
  'div',
8352
8352
  { className: 'ad-box', style: { textAlign: 'center' } },
8353
- main_36 && nodes.articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
8353
+ main_39 && nodes.articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
8354
8354
  if (innerIndex === 0) {
8355
8355
  return React__default.createElement(
8356
8356
  'div',
@@ -1,5 +1,5 @@
1
1
  import { c as createCommonjsModule, a as commonjsGlobal, g as getCjsExportFromNamespace } from './_commonjsHelpers-0c4b6f40.js';
2
- import { m as moment } from './moment-e2f9b20c.js';
2
+ import { m as moment } from './moment-12415288.js';
3
3
 
4
4
  var momentTimezone = createCommonjsModule(function (module) {
5
5
  //! moment-timezone.js
@@ -263,6 +263,9 @@ var InfiniteScroll = /** @class */ (function (_super) {
263
263
  _this.dragging = false;
264
264
  if (_this.state.pullToRefreshThresholdBreached) {
265
265
  _this.props.refreshFunction && _this.props.refreshFunction();
266
+ _this.setState({
267
+ pullToRefreshThresholdBreached: false,
268
+ });
266
269
  }
267
270
  requestAnimationFrame(function () {
268
271
  // this._infScroll
@@ -369,7 +372,6 @@ var InfiniteScroll = /** @class */ (function (_super) {
369
372
  // update state when new data was sent in
370
373
  this.setState({
371
374
  showLoader: false,
372
- pullToRefreshThresholdBreached: false,
373
375
  });
374
376
  };
375
377
  InfiniteScroll.prototype.isElementAtBottom = function (target, scrollThreshold) {
package/dist/esm/index.js CHANGED
@@ -14,22 +14,22 @@ import './web.dom.iterable-03c5ba1c.js';
14
14
  import './typeof-fea75829.js';
15
15
  import './_is-array-ced12663.js';
16
16
  import 'react';
17
- import './index-3f4dd6f2.js';
17
+ import './index-93ec3c59.js';
18
18
  import 'prop-types';
19
19
  import 'react-bootstrap/Container';
20
20
  import 'react-bootstrap/Row';
21
21
  import 'react-bootstrap/Col';
22
22
  import 'react-bootstrap/Card';
23
- import './moment-e2f9b20c.js';
23
+ import './moment-12415288.js';
24
24
  import 'next/router';
25
- import './isSymbol-47f5ff3b.js';
26
- import './debounce-a0d9abca.js';
27
- import './index.es-29c1cef5.js';
25
+ import './isSymbol-807e927e.js';
26
+ import './debounce-1a993acf.js';
27
+ import './index.es-938a3a58.js';
28
28
  import 'react-dom';
29
29
  import './visibility-sensor-0baa4eea.js';
30
- import './index-3849e3fe.js';
30
+ import './index-51a80699.js';
31
31
  import './index-5f9f807a.js';
32
- import './main-5d1e4bd3.js';
32
+ import './main-0465b2a0.js';
33
33
  import './entities-7cc3bf45.js';
34
34
  import './stringify-feadff37.js';
35
35
  import './slicedToArray-5fb01661.js';
@@ -37,19 +37,18 @@ 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-34a87706.js';
40
+ import './ADInfeed-3c4773f8.js';
41
41
  export { default as DeckContent } from './DeckContent.js';
42
- import './lodash-ec8c6b48.js';
43
- import './ADlgInfeed-2a864f1d.js';
44
- import './_arrayMap-818441dd.js';
45
- import './get-58d2f7cc.js';
42
+ import './lodash-17fdfebb.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';
49
48
  export { default as DeckQueue } from './DeckQueue.js';
50
49
  import 'react-bootstrap/Media';
51
50
  export { default as ThumbnailCard } from './ThumbnailCard.js';
52
- import './BlockContent-c409aca5.js';
51
+ import './BlockContent-a614acdf.js';
53
52
  import './react-social-icons-a7d5c5c7.js';
54
53
  export { default as TaxonomyCard } from './TaxonomyCard.js';
55
54
  export { default as RolesDeck } from './RolesDeck.js';
@@ -69,11 +68,11 @@ export { default as IssueDeck } from './IssueDeck.js';
69
68
  import 'react-bootstrap/Badge';
70
69
  export { default as IssueContentDeck } from './IssueContentDeck.js';
71
70
  import 'react-bootstrap/Spinner';
72
- import './index-ef6d5dcf.js';
71
+ 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-c017d31a.js';
75
+ export { g as getSerializers } from './index-c3ffdcd7.js';
77
76
  import './util-7700fc59.js';
78
77
  import './brightcove-react-player-loader.es-83f53e4e.js';
79
78
  import 'react-bootstrap/Pagination';
@@ -106,7 +105,7 @@ import './index.esm-73e847d2.js';
106
105
  export { default as SocialIcons } from './SocialIcons.js';
107
106
  import 'react-bootstrap/Form';
108
107
  import 'react-bootstrap/FormControl';
109
- import './SocialSearchComponent-a45b3379.js';
108
+ import './SocialSearchComponent-6d144699.js';
110
109
  export { default as NavMagazine } from './NavMagazine.js';
111
110
  export { NavNative } from './NavNative.js';
112
111
  export { default as Search } from './Search.js';
@@ -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';
@@ -155,15 +152,17 @@ export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
155
152
  export { default as KMTracker } from './KMTracker.js';
156
153
  export { default as getSeriesDetail } from './getSeriesDetail.js';
157
154
  export { default as SetCookie } from './SetCookie.js';
158
- import './index-db3bb315.js';
159
- export { default as getRelatedArticle } from './getRelatedArticle.js';
155
+ import 'nookies';
160
156
  export { default as getQuery } from './getQuery.js';
157
+ export { default as getRelatedArticle } from './getRelatedArticle.js';
161
158
  export { default as Auth } from './Auth.js';
162
159
  import 'swr';
163
160
  import 'passport-local';
164
161
  import 'mysql';
165
162
  export { g as getTargeting } from './getTargeting-3cc3f97d.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';
167
+ import 'react-twitter-embed';
169
168
  export { default as PartnerDetailListing } from './PartnerDetailListing.js';
@@ -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 };
@@ -7,7 +7,7 @@ var lodash = createCommonjsModule(function (module, exports) {
7
7
  var undefined$1;
8
8
 
9
9
  /** Used as the semantic version number. */
10
- var VERSION = '4.17.20';
10
+ var VERSION = '4.17.15';
11
11
 
12
12
  /** Used as the size to enable large array optimizations. */
13
13
  var LARGE_ARRAY_SIZE = 200;
@@ -3714,21 +3714,8 @@ var lodash = createCommonjsModule(function (module, exports) {
3714
3714
  * @returns {Array} Returns the new sorted array.
3715
3715
  */
3716
3716
  function baseOrderBy(collection, iteratees, orders) {
3717
- if (iteratees.length) {
3718
- iteratees = arrayMap(iteratees, function(iteratee) {
3719
- if (isArray(iteratee)) {
3720
- return function(value) {
3721
- return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);
3722
- }
3723
- }
3724
- return iteratee;
3725
- });
3726
- } else {
3727
- iteratees = [identity];
3728
- }
3729
-
3730
3717
  var index = -1;
3731
- iteratees = arrayMap(iteratees, baseUnary(getIteratee()));
3718
+ iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(getIteratee()));
3732
3719
 
3733
3720
  var result = baseMap(collection, function(value, key, collection) {
3734
3721
  var criteria = arrayMap(iteratees, function(iteratee) {
@@ -3985,10 +3972,6 @@ var lodash = createCommonjsModule(function (module, exports) {
3985
3972
  var key = toKey(path[index]),
3986
3973
  newValue = value;
3987
3974
 
3988
- if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
3989
- return object;
3990
- }
3991
-
3992
3975
  if (index != lastIndex) {
3993
3976
  var objValue = nested[key];
3994
3977
  newValue = customizer ? customizer(objValue, key, nested) : undefined$1;
@@ -4141,14 +4124,11 @@ var lodash = createCommonjsModule(function (module, exports) {
4141
4124
  * into `array`.
4142
4125
  */
4143
4126
  function baseSortedIndexBy(array, value, iteratee, retHighest) {
4144
- var low = 0,
4145
- high = array == null ? 0 : array.length;
4146
- if (high === 0) {
4147
- return 0;
4148
- }
4149
-
4150
4127
  value = iteratee(value);
4151
- var valIsNaN = value !== value,
4128
+
4129
+ var low = 0,
4130
+ high = array == null ? 0 : array.length,
4131
+ valIsNaN = value !== value,
4152
4132
  valIsNull = value === null,
4153
4133
  valIsSymbol = isSymbol(value),
4154
4134
  valIsUndefined = value === undefined$1;
@@ -5633,11 +5613,10 @@ var lodash = createCommonjsModule(function (module, exports) {
5633
5613
  if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
5634
5614
  return false;
5635
5615
  }
5636
- // Check that cyclic values are equal.
5637
- var arrStacked = stack.get(array);
5638
- var othStacked = stack.get(other);
5639
- if (arrStacked && othStacked) {
5640
- return arrStacked == other && othStacked == array;
5616
+ // Assume cyclic values are equal.
5617
+ var stacked = stack.get(array);
5618
+ if (stacked && stack.get(other)) {
5619
+ return stacked == other;
5641
5620
  }
5642
5621
  var index = -1,
5643
5622
  result = true,
@@ -5799,11 +5778,10 @@ var lodash = createCommonjsModule(function (module, exports) {
5799
5778
  return false;
5800
5779
  }
5801
5780
  }
5802
- // Check that cyclic values are equal.
5803
- var objStacked = stack.get(object);
5804
- var othStacked = stack.get(other);
5805
- if (objStacked && othStacked) {
5806
- return objStacked == other && othStacked == object;
5781
+ // Assume cyclic values are equal.
5782
+ var stacked = stack.get(object);
5783
+ if (stacked && stack.get(other)) {
5784
+ return stacked == other;
5807
5785
  }
5808
5786
  var result = true;
5809
5787
  stack.set(object, other);
@@ -9184,10 +9162,6 @@ var lodash = createCommonjsModule(function (module, exports) {
9184
9162
  * // The `_.property` iteratee shorthand.
9185
9163
  * _.filter(users, 'active');
9186
9164
  * // => objects for ['barney']
9187
- *
9188
- * // Combining several predicates using `_.overEvery` or `_.overSome`.
9189
- * _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));
9190
- * // => objects for ['fred', 'barney']
9191
9165
  */
9192
9166
  function filter(collection, predicate) {
9193
9167
  var func = isArray(collection) ? arrayFilter : baseFilter;
@@ -9937,15 +9911,15 @@ var lodash = createCommonjsModule(function (module, exports) {
9937
9911
  * var users = [
9938
9912
  * { 'user': 'fred', 'age': 48 },
9939
9913
  * { 'user': 'barney', 'age': 36 },
9940
- * { 'user': 'fred', 'age': 30 },
9914
+ * { 'user': 'fred', 'age': 40 },
9941
9915
  * { 'user': 'barney', 'age': 34 }
9942
9916
  * ];
9943
9917
  *
9944
9918
  * _.sortBy(users, [function(o) { return o.user; }]);
9945
- * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]
9919
+ * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
9946
9920
  *
9947
9921
  * _.sortBy(users, ['user', 'age']);
9948
- * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]
9922
+ * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]
9949
9923
  */
9950
9924
  var sortBy = baseRest(function(collection, iteratees) {
9951
9925
  if (collection == null) {
@@ -14820,11 +14794,11 @@ var lodash = createCommonjsModule(function (module, exports) {
14820
14794
 
14821
14795
  // Use a sourceURL for easier debugging.
14822
14796
  // The sourceURL gets injected into the source that's eval-ed, so be careful
14823
- // to normalize all kinds of whitespace, so e.g. newlines (and unicode versions of it) can't sneak in
14824
- // and escape the comment, thus injecting code that gets evaled.
14797
+ // with lookup (in case of e.g. prototype pollution), and strip newlines if any.
14798
+ // A newline wouldn't be a valid sourceURL anyway, and it'd enable code injection.
14825
14799
  var sourceURL = '//# sourceURL=' +
14826
14800
  (hasOwnProperty.call(options, 'sourceURL')
14827
- ? (options.sourceURL + '').replace(/\s/g, ' ')
14801
+ ? (options.sourceURL + '').replace(/[\r\n]/g, ' ')
14828
14802
  : ('lodash.templateSources[' + (++templateCounter) + ']')
14829
14803
  ) + '\n';
14830
14804
 
@@ -14857,6 +14831,8 @@ var lodash = createCommonjsModule(function (module, exports) {
14857
14831
 
14858
14832
  // If `variable` is not specified wrap a with-statement around the generated
14859
14833
  // code to add the data object to the top of the scope chain.
14834
+ // Like with sourceURL, we take care to not check the option's prototype,
14835
+ // as this configuration is a code injection vector.
14860
14836
  var variable = hasOwnProperty.call(options, 'variable') && options.variable;
14861
14837
  if (!variable) {
14862
14838
  source = 'with (obj) {\n' + source + '\n}\n';
@@ -15563,9 +15539,6 @@ var lodash = createCommonjsModule(function (module, exports) {
15563
15539
  * values against any array or object value, respectively. See `_.isEqual`
15564
15540
  * for a list of supported value comparisons.
15565
15541
  *
15566
- * **Note:** Multiple values can be checked by combining several matchers
15567
- * using `_.overSome`
15568
- *
15569
15542
  * @static
15570
15543
  * @memberOf _
15571
15544
  * @since 3.0.0
@@ -15581,10 +15554,6 @@ var lodash = createCommonjsModule(function (module, exports) {
15581
15554
  *
15582
15555
  * _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));
15583
15556
  * // => [{ 'a': 4, 'b': 5, 'c': 6 }]
15584
- *
15585
- * // Checking for several possible values
15586
- * _.filter(objects, _.overSome([_.matches({ 'a': 1 }), _.matches({ 'a': 4 })]));
15587
- * // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]
15588
15557
  */
15589
15558
  function matches(source) {
15590
15559
  return baseMatches(baseClone(source, CLONE_DEEP_FLAG));
@@ -15599,9 +15568,6 @@ var lodash = createCommonjsModule(function (module, exports) {
15599
15568
  * `srcValue` values against any array or object value, respectively. See
15600
15569
  * `_.isEqual` for a list of supported value comparisons.
15601
15570
  *
15602
- * **Note:** Multiple values can be checked by combining several matchers
15603
- * using `_.overSome`
15604
- *
15605
15571
  * @static
15606
15572
  * @memberOf _
15607
15573
  * @since 3.2.0
@@ -15618,10 +15584,6 @@ var lodash = createCommonjsModule(function (module, exports) {
15618
15584
  *
15619
15585
  * _.find(objects, _.matchesProperty('a', 4));
15620
15586
  * // => { 'a': 4, 'b': 5, 'c': 6 }
15621
- *
15622
- * // Checking for several possible values
15623
- * _.filter(objects, _.overSome([_.matchesProperty('a', 1), _.matchesProperty('a', 4)]));
15624
- * // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]
15625
15587
  */
15626
15588
  function matchesProperty(path, srcValue) {
15627
15589
  return baseMatchesProperty(path, baseClone(srcValue, CLONE_DEEP_FLAG));
@@ -15845,10 +15807,6 @@ var lodash = createCommonjsModule(function (module, exports) {
15845
15807
  * Creates a function that checks if **all** of the `predicates` return
15846
15808
  * truthy when invoked with the arguments it receives.
15847
15809
  *
15848
- * Following shorthands are possible for providing predicates.
15849
- * Pass an `Object` and it will be used as an parameter for `_.matches` to create the predicate.
15850
- * Pass an `Array` of parameters for `_.matchesProperty` and the predicate will be created using them.
15851
- *
15852
15810
  * @static
15853
15811
  * @memberOf _
15854
15812
  * @since 4.0.0
@@ -15875,10 +15833,6 @@ var lodash = createCommonjsModule(function (module, exports) {
15875
15833
  * Creates a function that checks if **any** of the `predicates` return
15876
15834
  * truthy when invoked with the arguments it receives.
15877
15835
  *
15878
- * Following shorthands are possible for providing predicates.
15879
- * Pass an `Object` and it will be used as an parameter for `_.matches` to create the predicate.
15880
- * Pass an `Array` of parameters for `_.matchesProperty` and the predicate will be created using them.
15881
- *
15882
15836
  * @static
15883
15837
  * @memberOf _
15884
15838
  * @since 4.0.0
@@ -15898,9 +15852,6 @@ var lodash = createCommonjsModule(function (module, exports) {
15898
15852
  *
15899
15853
  * func(NaN);
15900
15854
  * // => false
15901
- *
15902
- * var matchesFunc = _.overSome([{ 'a': 1 }, { 'a': 2 }])
15903
- * var matchesPropertyFunc = _.overSome([['a', 1], ['a', 2]])
15904
15855
  */
15905
15856
  var overSome = createOver(arraySome);
15906
15857