@mjhls/mjh-framework 1.0.1012 → 1.0.1014-adwallet

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 (172) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AD300x250.js +2 -3
  3. package/dist/cjs/AD300x250x600.js +2 -3
  4. package/dist/cjs/AD728x90.js +2 -3
  5. package/dist/cjs/ADFloatingFooter.js +11 -4
  6. package/dist/cjs/ADGutter.js +11 -4
  7. package/dist/cjs/{ADInfeed-43871736.js → ADInfeed-89488c41.js} +10 -1
  8. package/dist/cjs/ADSkyscraper.js +11 -4
  9. package/dist/cjs/ADSponsoredResources.js +11 -4
  10. package/dist/cjs/ADWebcast.js +11 -4
  11. package/dist/cjs/ADWelcome.js +2 -3
  12. package/dist/cjs/{ADlgInfeed-6ca217b7.js → ADlgInfeed-9d62050b.js} +10 -1
  13. package/dist/cjs/AdSlot.js +18 -8
  14. package/dist/cjs/AdSlotsProvider.js +2 -3
  15. package/dist/cjs/AlgoliaSearch.js +49 -113
  16. package/dist/cjs/ArticleCarousel.js +1 -1
  17. package/dist/cjs/ArticleProgramLandingPage.js +3 -4
  18. package/dist/cjs/ArticleSeriesLandingPage.js +4 -5
  19. package/dist/cjs/ArticleSeriesListing.js +1 -1
  20. package/dist/cjs/Auth.js +1 -2
  21. package/dist/cjs/AuthWrapper.js +19 -89
  22. package/dist/cjs/Beam.js +1 -2
  23. package/dist/cjs/CMEDeck.js +2 -3
  24. package/dist/cjs/Column2.js +1 -2
  25. package/dist/cjs/Column3.js +2 -3
  26. package/dist/cjs/ContentCardPaginated.js +3 -4
  27. package/dist/cjs/DeckContent.js +3 -4
  28. package/dist/cjs/DeckQueue.js +1 -1
  29. package/dist/cjs/DeckQueuePaginated.js +2 -3
  30. package/dist/cjs/EventsDeck.js +1 -1
  31. package/dist/cjs/ExternalResources.js +3 -4
  32. package/dist/cjs/Feature.js +1 -1
  33. package/dist/cjs/GridContent.js +4 -5
  34. package/dist/cjs/GridContentPaginated.js +4 -5
  35. package/dist/cjs/HamMagazine.js +3 -4
  36. package/dist/cjs/HorizontalArticleListing.js +3 -4
  37. package/dist/cjs/{ImageSlider-1ec0408b.js → ImageSlider-17fdaf3b.js} +116 -156
  38. package/dist/cjs/IssueLanding.js +5 -6
  39. package/dist/cjs/LeftNav.js +2 -3
  40. package/dist/cjs/MasterDeck.js +4 -5
  41. package/dist/cjs/MasterDeckPaginated.js +4 -5
  42. package/dist/cjs/{MediaSeriesCard-775036a8.js → MediaSeriesCard-c9c38211.js} +1 -1
  43. package/dist/cjs/MediaSeriesLanding.js +8 -9
  44. package/dist/cjs/MediaSeriesLandingPaginated.js +8 -9
  45. package/dist/cjs/NavDvm.js +1 -2
  46. package/dist/cjs/NavMagazine.js +3 -4
  47. package/dist/cjs/NavNative.js +2 -3
  48. package/dist/cjs/PartnerDetailListing.js +7 -7
  49. package/dist/cjs/PartnerDetailListingPaginated.js +7 -7
  50. package/dist/cjs/PodcastsLanding.js +6 -7
  51. package/dist/cjs/PtceDeck.js +1 -2
  52. package/dist/cjs/PubSection.js +4 -5
  53. package/dist/cjs/PubToc.js +1 -2
  54. package/dist/cjs/PublicationLanding.js +96 -43
  55. package/dist/cjs/QueueDeckExpanded.js +4 -5
  56. package/dist/cjs/QueueDeckExpandedPaginated.js +4 -5
  57. package/dist/cjs/Segment.js +1 -2
  58. package/dist/cjs/SeriesListingDeck.js +2 -2
  59. package/dist/cjs/{SeriesSlider-18fc6e71.js → SeriesSlider-fc6dd07d.js} +1 -1
  60. package/dist/cjs/SideFooter.js +1 -2
  61. package/dist/cjs/{SocialSearchComponent-ca9c0c45.js → SocialSearchComponent-17a420c0.js} +1 -1
  62. package/dist/cjs/TaxonomyDescription.js +3 -4
  63. package/dist/cjs/TemplateNormal.js +3 -4
  64. package/dist/cjs/{Tooltip-71754b2a.js → Tooltip-96fe6ef6.js} +206 -248
  65. package/dist/cjs/Ustream.js +2 -3
  66. package/dist/cjs/VideoProgramLandingPage.js +3 -4
  67. package/dist/cjs/VideoSeriesFilter.js +1 -2
  68. package/dist/cjs/VideoSeriesLandingPage.js +4 -5
  69. package/dist/cjs/VideoSeriesListing.js +1 -1
  70. package/dist/cjs/View.js +4 -5
  71. package/dist/cjs/YoutubeGroup.js +1 -1
  72. package/dist/cjs/{asyncToGenerator-65df6bf8.js → asyncToGenerator-77821af0.js} +56 -8
  73. package/dist/cjs/defineProperty-e0fb52c5.js +73 -0
  74. package/dist/cjs/faundadb.js +1 -2
  75. package/dist/cjs/getPtceActivities.js +1 -2
  76. package/dist/cjs/getQuery.js +1 -1
  77. package/dist/cjs/getRelatedArticle.js +1 -2
  78. package/dist/cjs/getRootDocGroup.js +1 -2
  79. package/dist/cjs/getSerializers.js +3 -4
  80. package/dist/cjs/index-50be6759.js +105 -0
  81. package/dist/cjs/{index-7ca74b82.js → index-bf2e450a.js} +8 -20
  82. package/dist/cjs/index.js +11 -10
  83. package/dist/cjs/{main-6054981e.js → main-ae8472f3.js} +2 -1
  84. package/dist/cjs/typeof-1358762e.js +33 -0
  85. package/dist/esm/AD300x250.js +2 -3
  86. package/dist/esm/AD300x250x600.js +2 -3
  87. package/dist/esm/AD728x90.js +2 -3
  88. package/dist/esm/ADFloatingFooter.js +11 -4
  89. package/dist/esm/ADGutter.js +11 -4
  90. package/dist/esm/{ADInfeed-65b1c440.js → ADInfeed-fb3b056f.js} +10 -1
  91. package/dist/esm/ADSkyscraper.js +11 -4
  92. package/dist/esm/ADSponsoredResources.js +11 -4
  93. package/dist/esm/ADWebcast.js +11 -4
  94. package/dist/esm/ADWelcome.js +2 -3
  95. package/dist/esm/{ADlgInfeed-fccdebf4.js → ADlgInfeed-29f7b84c.js} +10 -1
  96. package/dist/esm/AdSlot.js +18 -8
  97. package/dist/esm/AdSlotsProvider.js +2 -3
  98. package/dist/esm/AlgoliaSearch.js +36 -100
  99. package/dist/esm/ArticleCarousel.js +1 -1
  100. package/dist/esm/ArticleProgramLandingPage.js +3 -4
  101. package/dist/esm/ArticleSeriesLandingPage.js +4 -5
  102. package/dist/esm/ArticleSeriesListing.js +1 -1
  103. package/dist/esm/Auth.js +1 -2
  104. package/dist/esm/AuthWrapper.js +16 -86
  105. package/dist/esm/Beam.js +1 -2
  106. package/dist/esm/CMEDeck.js +2 -3
  107. package/dist/esm/Column2.js +1 -2
  108. package/dist/esm/Column3.js +2 -3
  109. package/dist/esm/ContentCardPaginated.js +3 -4
  110. package/dist/esm/DeckContent.js +3 -4
  111. package/dist/esm/DeckQueue.js +1 -1
  112. package/dist/esm/DeckQueuePaginated.js +2 -3
  113. package/dist/esm/EventsDeck.js +1 -1
  114. package/dist/esm/ExternalResources.js +3 -4
  115. package/dist/esm/Feature.js +1 -1
  116. package/dist/esm/GridContent.js +4 -5
  117. package/dist/esm/GridContentPaginated.js +4 -5
  118. package/dist/esm/HamMagazine.js +3 -4
  119. package/dist/esm/HorizontalArticleListing.js +3 -4
  120. package/dist/esm/{ImageSlider-83913c4c.js → ImageSlider-f84174cb.js} +117 -157
  121. package/dist/esm/IssueLanding.js +5 -6
  122. package/dist/esm/LeftNav.js +2 -3
  123. package/dist/esm/MasterDeck.js +4 -5
  124. package/dist/esm/MasterDeckPaginated.js +4 -5
  125. package/dist/esm/{MediaSeriesCard-96d46dee.js → MediaSeriesCard-c79b9aea.js} +1 -1
  126. package/dist/esm/MediaSeriesLanding.js +8 -9
  127. package/dist/esm/MediaSeriesLandingPaginated.js +8 -9
  128. package/dist/esm/NavDvm.js +1 -2
  129. package/dist/esm/NavMagazine.js +3 -4
  130. package/dist/esm/NavNative.js +2 -3
  131. package/dist/esm/PartnerDetailListing.js +7 -7
  132. package/dist/esm/PartnerDetailListingPaginated.js +7 -7
  133. package/dist/esm/PodcastsLanding.js +6 -7
  134. package/dist/esm/PtceDeck.js +1 -2
  135. package/dist/esm/PubSection.js +4 -5
  136. package/dist/esm/PubToc.js +1 -2
  137. package/dist/esm/PublicationLanding.js +85 -32
  138. package/dist/esm/QueueDeckExpanded.js +4 -5
  139. package/dist/esm/QueueDeckExpandedPaginated.js +4 -5
  140. package/dist/esm/Segment.js +1 -2
  141. package/dist/esm/SeriesListingDeck.js +2 -2
  142. package/dist/esm/{SeriesSlider-5728e349.js → SeriesSlider-771918ce.js} +1 -1
  143. package/dist/esm/SideFooter.js +1 -2
  144. package/dist/esm/{SocialSearchComponent-68d948b9.js → SocialSearchComponent-5a5e11fe.js} +1 -1
  145. package/dist/esm/TaxonomyDescription.js +3 -4
  146. package/dist/esm/TemplateNormal.js +3 -4
  147. package/dist/esm/{Tooltip-8307d9d1.js → Tooltip-bc98d17e.js} +1 -43
  148. package/dist/esm/Ustream.js +2 -3
  149. package/dist/esm/VideoProgramLandingPage.js +3 -4
  150. package/dist/esm/VideoSeriesFilter.js +1 -2
  151. package/dist/esm/VideoSeriesLandingPage.js +4 -5
  152. package/dist/esm/VideoSeriesListing.js +1 -1
  153. package/dist/esm/View.js +4 -5
  154. package/dist/esm/YoutubeGroup.js +1 -1
  155. package/dist/esm/{asyncToGenerator-64822ccc.js → asyncToGenerator-958ef5fc.js} +50 -6
  156. package/dist/esm/defineProperty-23a8f8cd.js +68 -0
  157. package/dist/esm/faundadb.js +1 -2
  158. package/dist/esm/getPtceActivities.js +1 -2
  159. package/dist/esm/getQuery.js +1 -1
  160. package/dist/esm/getRelatedArticle.js +1 -2
  161. package/dist/esm/getRootDocGroup.js +1 -2
  162. package/dist/esm/getSerializers.js +3 -4
  163. package/dist/esm/{index-fbb977dc.js → index-37b5368a.js} +8 -20
  164. package/dist/esm/index-98ca9cec.js +100 -0
  165. package/dist/esm/index.js +11 -10
  166. package/dist/esm/{main-9f6806ea.js → main-754d4992.js} +2 -2
  167. package/dist/esm/typeof-2f07d0e8.js +30 -0
  168. package/package.json +1 -1
  169. package/dist/cjs/_set-species-0c7864a2.js +0 -55
  170. package/dist/cjs/index-b95410f0.js +0 -54
  171. package/dist/esm/_set-species-2cd9340f.js +0 -50
  172. package/dist/esm/index-174b5baf.js +0 -52
@@ -6,7 +6,7 @@ import { l as lib_3, a as lib_2 } from './index-5cc7b406.js';
6
6
  import { d as debounce_1 } from './debounce-533d9748.js';
7
7
  import './Beam.js';
8
8
  import Segment from './Segment.js';
9
- import './main-9f6806ea.js';
9
+ import { d as main_22 } from './main-754d4992.js';
10
10
  import './_commonjsHelpers-0c4b6f40.js';
11
11
  import './core.get-iterator-method-ea258bb1.js';
12
12
  import './_object-pie-133f504a.js';
@@ -14,9 +14,8 @@ import './web.dom.iterable-ab4dea5c.js';
14
14
  import './isSymbol-a7e9aafe.js';
15
15
  import './toNumber-5aeba6e7.js';
16
16
  import './stringify-2b084bee.js';
17
- import './asyncToGenerator-64822ccc.js';
17
+ import './asyncToGenerator-958ef5fc.js';
18
18
  import './_library-528f1934.js';
19
- import './_set-species-2cd9340f.js';
20
19
  import './_iter-detect-98db3b07.js';
21
20
 
22
21
  var initialLoadIsDone = false;
@@ -111,6 +110,11 @@ var DFPAdSlot = function DFPAdSlot(_ref) {
111
110
  _useState6[0];
112
111
  _useState6[1];
113
112
 
113
+ var _useState7 = useState(refreshFlag),
114
+ _useState8 = _slicedToArray(_useState7, 2),
115
+ adRefreshFlag = _useState8[0],
116
+ setAdRefreshFlag = _useState8[1];
117
+
114
118
  targeting.ksg = typeof window !== 'undefined' && window.Krux ? window.Krux.segments : null;
115
119
  targeting.kuid = typeof window !== 'undefined' && window.Krux ? window.Krux.user : null;
116
120
 
@@ -126,6 +130,12 @@ var DFPAdSlot = function DFPAdSlot(_ref) {
126
130
  }
127
131
  }, 500);
128
132
 
133
+ useEffect(function () {
134
+ if (main_22.toLowerCase().indexOf('adwallet') >= 0) {
135
+ setAdRefreshFlag(false);
136
+ }
137
+ }, []);
138
+
129
139
  useEffect(function () {
130
140
  // Setting hostname into AD targetting
131
141
  if (window && window.location && window.location.hostname) {
@@ -133,10 +143,10 @@ var DFPAdSlot = function DFPAdSlot(_ref) {
133
143
  }
134
144
  }, [adTargeting]);
135
145
 
136
- var _useState7 = useState(null),
137
- _useState8 = _slicedToArray(_useState7, 2),
138
- eventData = _useState8[0],
139
- setEventData = _useState8[1];
146
+ var _useState9 = useState(null),
147
+ _useState10 = _slicedToArray(_useState9, 2),
148
+ eventData = _useState10[0],
149
+ setEventData = _useState10[1];
140
150
 
141
151
  return React__default.createElement(
142
152
  'div',
@@ -223,7 +233,7 @@ var DFPAdSlot = function DFPAdSlot(_ref) {
223
233
  },
224
234
  onSlotVisibilityChanged: handleVisibilityChange,
225
235
  shouldRefresh: function shouldRefresh(event) {
226
- if (adRendered && adRefreshable && refreshFlag) return true;else return false;
236
+ if (adRendered && adRefreshable && adRefreshFlag) return true;else return false;
227
237
  },
228
238
  onSlotRegister: function onSlotRegister(e) {
229
239
  window.PQ && setTimeout(function () {
@@ -1,14 +1,13 @@
1
- import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-64822ccc.js';
1
+ import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
2
2
  import { _ as _toConsumableArray } from './toConsumableArray-f7074d7c.js';
3
3
  import React__default, { useEffect } from 'react';
4
4
  import ReactGA from 'react-ga';
5
5
  import { l as lib_3, b as lib_1 } from './index-5cc7b406.js';
6
- import { d as main_24, m as main_43 } from './main-9f6806ea.js';
6
+ import { e as main_24, m as main_43 } from './main-754d4992.js';
7
7
  import './_commonjsHelpers-0c4b6f40.js';
8
8
  import './core.get-iterator-method-ea258bb1.js';
9
9
  import './web.dom.iterable-ab4dea5c.js';
10
10
  import './_library-528f1934.js';
11
- import './_set-species-2cd9340f.js';
12
11
  import './_iter-detect-98db3b07.js';
13
12
  import 'prop-types';
14
13
 
@@ -1,9 +1,10 @@
1
1
  import { _ as _extends$1 } from './extends-6d8e3924.js';
2
2
  import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-a6ba2ec4.js';
3
- import { _ as _typeof$1 } from './typeof-e9fc0c5d.js';
3
+ import { _ as _typeof$2 } from './typeof-e9fc0c5d.js';
4
4
  import React__default, { createContext, Component, Fragment, Children, version as version$2 } from 'react';
5
5
  import PropTypes from 'prop-types';
6
- import { c as classnames } from './index-174b5baf.js';
6
+ import { _ as _typeof$1 } from './typeof-2f07d0e8.js';
7
+ import { _ as _objectWithoutPropertiesLoose$1, a as _setPrototypeOf, b as _extends, c as classnames } from './index-98ca9cec.js';
7
8
  import { DropdownButton } from 'react-bootstrap';
8
9
  import urlFor from './urlFor.js';
9
10
  import { m as moment } from './moment-bc12cb97.js';
@@ -20,39 +21,6 @@ import './slicedToArray-6ebcbfea.js';
20
21
  import './index-3f5c03b2.js';
21
22
  import 'react-dom';
22
23
 
23
- function _extends() {
24
- _extends = Object.assign || function (target) {
25
- for (var i = 1; i < arguments.length; i++) {
26
- var source = arguments[i];
27
-
28
- for (var key in source) {
29
- if (Object.prototype.hasOwnProperty.call(source, key)) {
30
- target[key] = source[key];
31
- }
32
- }
33
- }
34
-
35
- return target;
36
- };
37
-
38
- return _extends.apply(this, arguments);
39
- }
40
-
41
- function _objectWithoutPropertiesLoose$1(source, excluded) {
42
- if (source == null) return {};
43
- var target = {};
44
- var sourceKeys = Object.keys(source);
45
- var key, i;
46
-
47
- for (i = 0; i < sourceKeys.length; i++) {
48
- key = sourceKeys[i];
49
- if (excluded.indexOf(key) >= 0) continue;
50
- target[key] = source[key];
51
- }
52
-
53
- return target;
54
- }
55
-
56
24
  function _objectWithoutProperties(source, excluded) {
57
25
  if (source == null) return {};
58
26
  var target = _objectWithoutPropertiesLoose$1(source, excluded);
@@ -102,15 +70,6 @@ function _assertThisInitialized(self) {
102
70
  return self;
103
71
  }
104
72
 
105
- function _setPrototypeOf(o, p) {
106
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
107
- o.__proto__ = p;
108
- return o;
109
- };
110
-
111
- return _setPrototypeOf(o, p);
112
- }
113
-
114
73
  function _inherits(subClass, superClass) {
115
74
  if (typeof superClass !== "function" && superClass !== null) {
116
75
  throw new TypeError("Super expression must either be null or a function");
@@ -126,25 +85,11 @@ function _inherits(subClass, superClass) {
126
85
  if (superClass) _setPrototypeOf(subClass, superClass);
127
86
  }
128
87
 
129
- function _typeof(obj) {
130
- "@babel/helpers - typeof";
131
-
132
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
133
- _typeof = function _typeof(obj) {
134
- return typeof obj;
135
- };
136
- } else {
137
- _typeof = function _typeof(obj) {
138
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
139
- };
140
- }
141
-
142
- return _typeof(obj);
143
- }
144
-
145
88
  function _possibleConstructorReturn(self, call) {
146
- if (call && (_typeof(call) === "object" || typeof call === "function")) {
89
+ if (call && (_typeof$1(call) === "object" || typeof call === "function")) {
147
90
  return call;
91
+ } else if (call !== void 0) {
92
+ throw new TypeError("Derived constructors may only return object or undefined");
148
93
  }
149
94
 
150
95
  return _assertThisInitialized(self);
@@ -307,6 +252,22 @@ var reactFastCompare = function isEqual(a, b) {
307
252
  }
308
253
  };
309
254
 
255
+ function _typeof(obj) {
256
+ "@babel/helpers - typeof";
257
+
258
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
259
+ _typeof = function _typeof(obj) {
260
+ return typeof obj;
261
+ };
262
+ } else {
263
+ _typeof = function _typeof(obj) {
264
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
265
+ };
266
+ }
267
+
268
+ return _typeof(obj);
269
+ }
270
+
310
271
  function ownKeys$f(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
311
272
 
312
273
  function _objectSpread$f(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$f(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$f(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
@@ -859,7 +820,7 @@ function parseAlgoliaHit(_ref2) {
859
820
  });
860
821
  }
861
822
 
862
- var version$1 = '6.18.0';
823
+ var version$1 = '6.17.0';
863
824
 
864
825
  function _createSuper$p(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$p(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
865
826
 
@@ -870,7 +831,6 @@ var withKeysPropType = function withKeysPropType(keys) {
870
831
  var prop = props[propName];
871
832
 
872
833
  if (prop) {
873
- // eslint-disable-next-line no-restricted-syntax
874
834
  for (var _i = 0, _Object$keys = Object.keys(prop); _i < _Object$keys.length; _i++) {
875
835
  var key = _Object$keys[_i];
876
836
 
@@ -1303,7 +1263,7 @@ function _arrayWithoutHoles(arr) {
1303
1263
  }
1304
1264
 
1305
1265
  function _iterableToArray(iter) {
1306
- if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
1266
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1307
1267
  }
1308
1268
 
1309
1269
  function _unsupportedIterableToArray(o, minLen) {
@@ -6793,19 +6753,15 @@ ConfigureRelatedItems.propTypes = {
6793
6753
  };
6794
6754
  connectConfigureRelatedItems(ConfigureRelatedItems);
6795
6755
 
6796
- var MAX_WILDCARD_FACETS = 20;
6797
6756
  var connectDynamicWidgets = createConnectorWithContext({
6798
6757
  displayName: 'AlgoliaDynamicWidgets',
6799
6758
  defaultProps: {
6800
6759
  transformItems: function transformItems(items) {
6801
6760
  return items;
6802
- },
6803
- maxValuesPerFacet: 20
6761
+ }
6804
6762
  },
6805
6763
  propTypes: {
6806
- transformItems: PropTypes.func,
6807
- facets: PropTypes.arrayOf(PropTypes.string),
6808
- maxValuesPerFacet: PropTypes.number
6764
+ transformItems: PropTypes.func
6809
6765
  },
6810
6766
  getProvidedProps: function getProvidedProps(props, _searchState, searchResults) {
6811
6767
  var results = getResults(searchResults, {
@@ -6813,10 +6769,6 @@ var connectDynamicWidgets = createConnectorWithContext({
6813
6769
  multiIndexContext: props.indexContextValue
6814
6770
  });
6815
6771
 
6816
- if (props.facets && !(Array.isArray(props.facets) && props.facets.length <= 1 && (props.facets[0] === '*' || props.facets[0] === undefined))) {
6817
- throw new Error("The `facets` prop only accepts [] or [\"*\"], you passed ".concat(JSON.stringify(props.facets)));
6818
- }
6819
-
6820
6772
  if (!results) {
6821
6773
  return {
6822
6774
  attributesToRender: []
@@ -6824,30 +6776,11 @@ var connectDynamicWidgets = createConnectorWithContext({
6824
6776
  }
6825
6777
 
6826
6778
  var facetOrder = results.renderingContent && results.renderingContent.facetOrdering && results.renderingContent.facetOrdering.facets && results.renderingContent.facetOrdering.facets.order || [];
6827
- var attributesToRender = props.transformItems(facetOrder, {
6828
- results: results
6829
- });
6830
-
6831
- if (attributesToRender.length > MAX_WILDCARD_FACETS && !props.facets) {
6832
- // eslint-disable-next-line no-console
6833
- console.warn("More than ".concat(MAX_WILDCARD_FACETS, " facets are requested to be displayed without explicitly setting which facets to retrieve. This could have a performance impact. Set \"facets\" to [] to do two smaller network requests, or explicitly to ['*'] to avoid this warning."));
6834
- }
6835
-
6836
- if (props.maxValuesPerFacet < results._state.maxValuesPerFacet) {
6837
- // eslint-disable-next-line no-console
6838
- console.warn("The maxValuesPerFacet set by dynamic widgets (".concat(props.maxValuesPerFacet, ") is smaller than one of the limits set by a widget (").concat(results._state.maxValuesPerFacet, "). This causes a mismatch in query parameters and thus an extra network request when that widget is mounted."));
6839
- }
6840
-
6841
6779
  return {
6842
- attributesToRender: attributesToRender
6780
+ attributesToRender: props.transformItems(facetOrder, {
6781
+ results: results
6782
+ })
6843
6783
  };
6844
- },
6845
- getSearchParameters: function getSearchParameters(searchParameters, props) {
6846
- return (props.facets || ['*']).reduce(function (acc, curr) {
6847
- return acc.addFacet(curr);
6848
- }, searchParameters.setQueryParameters({
6849
- maxValuesPerFacet: Math.max(props.maxValuesPerFacet || 0, searchParameters.maxValuesPerFacet || 0)
6850
- }));
6851
6784
  }
6852
6785
  });
6853
6786
 
@@ -9135,14 +9068,17 @@ function _arrayWithHoles(arr) {
9135
9068
  }
9136
9069
 
9137
9070
  function _iterableToArrayLimit(arr, i) {
9138
- if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
9071
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
9072
+
9073
+ if (_i == null) return;
9139
9074
  var _arr = [];
9140
9075
  var _n = true;
9141
9076
  var _d = false;
9142
- var _e = undefined;
9077
+
9078
+ var _s, _e;
9143
9079
 
9144
9080
  try {
9145
- for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
9081
+ for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
9146
9082
  _arr.push(_s.value);
9147
9083
 
9148
9084
  if (i && _arr.length === i) break;
@@ -14908,7 +14844,7 @@ var imageDiv = function imageDiv(hit, styles, client, siteType, defaultImage, va
14908
14844
  LazyLoad,
14909
14845
  { once: true },
14910
14846
  React__default.createElement('img', {
14911
- src: hit.thumbnail && hit.thumbnail.asset ? urlFor({ client: client, source: hit.thumbnail }) : hit.thumbnail && _typeof$1(hit.thumbnail === 'string') ? hit.thumbnail : defaultImage
14847
+ src: hit.thumbnail && hit.thumbnail.asset ? urlFor({ client: client, source: hit.thumbnail }) : hit.thumbnail && _typeof$2(hit.thumbnail === 'string') ? hit.thumbnail : defaultImage
14912
14848
  })
14913
14849
  )
14914
14850
  )
@@ -13,7 +13,7 @@ import 'prop-types';
13
13
  import './smoothscroll-fa4e3f8c.js';
14
14
  import './urlFor.js';
15
15
  import './index-3f5c03b2.js';
16
- import './main-9f6806ea.js';
16
+ import './main-754d4992.js';
17
17
 
18
18
  function ArticleCarousel(props) {
19
19
  //Passed in array of articles to pass into YoutubeGroup
@@ -1,15 +1,14 @@
1
- import { _ as _asyncToGenerator, r as regenerator, a as _Promise } from './asyncToGenerator-64822ccc.js';
1
+ import { _ as _asyncToGenerator, r as regenerator, a as _Promise } from './asyncToGenerator-958ef5fc.js';
2
2
  import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
3
3
  import { _ as _extends } from './extends-6d8e3924.js';
4
4
  import React__default from 'react';
5
5
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
6
- import { g as getSerializers } from './index-fbb977dc.js';
6
+ import { g as getSerializers } from './index-37b5368a.js';
7
7
  import ArticleSeriesListing from './ArticleSeriesListing.js';
8
8
  import './_commonjsHelpers-0c4b6f40.js';
9
9
  import './core.get-iterator-method-ea258bb1.js';
10
10
  import './web.dom.iterable-ab4dea5c.js';
11
11
  import './_library-528f1934.js';
12
- import './_set-species-2cd9340f.js';
13
12
  import './_iter-detect-98db3b07.js';
14
13
  import './_object-pie-133f504a.js';
15
14
  import 'prop-types';
@@ -23,7 +22,7 @@ import './util-8ed16d48.js';
23
22
  import './Beam.js';
24
23
  import './stringify-2b084bee.js';
25
24
  import './Segment.js';
26
- import './main-9f6806ea.js';
25
+ import './main-754d4992.js';
27
26
  import './urlForFile-b69adffc.js';
28
27
  import './index-755f2cc2.js';
29
28
  import 'react-dom';
@@ -1,11 +1,10 @@
1
- import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-64822ccc.js';
1
+ import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
2
2
  import React__default from 'react';
3
3
  import MasterDeck from './MasterDeck.js';
4
4
  import './_commonjsHelpers-0c4b6f40.js';
5
5
  import './core.get-iterator-method-ea258bb1.js';
6
6
  import './web.dom.iterable-ab4dea5c.js';
7
7
  import './_library-528f1934.js';
8
- import './_set-species-2cd9340f.js';
9
8
  import './_iter-detect-98db3b07.js';
10
9
  import './toConsumableArray-f7074d7c.js';
11
10
  import './extends-6d8e3924.js';
@@ -32,13 +31,13 @@ import './visibility-sensor-72fd8f8b.js';
32
31
  import 'react-dom';
33
32
  import './slicedToArray-6ebcbfea.js';
34
33
  import './index-3f5c03b2.js';
35
- import './ADlgInfeed-fccdebf4.js';
34
+ import './ADlgInfeed-29f7b84c.js';
36
35
  import './AdSlot.js';
37
36
  import './Beam.js';
38
37
  import './stringify-2b084bee.js';
39
38
  import './Segment.js';
40
- import './main-9f6806ea.js';
41
- import './ADInfeed-65b1c440.js';
39
+ import './main-754d4992.js';
40
+ import './ADInfeed-fb3b056f.js';
42
41
 
43
42
  var _this = undefined;
44
43
 
@@ -28,7 +28,7 @@ import './index-755f2cc2.js';
28
28
  import './smoothscroll-fa4e3f8c.js';
29
29
  import './urlFor.js';
30
30
  import './index-3f5c03b2.js';
31
- import './main-9f6806ea.js';
31
+ import './main-754d4992.js';
32
32
  import './isSymbol-a7e9aafe.js';
33
33
  import './toNumber-5aeba6e7.js';
34
34
 
package/dist/esm/Auth.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-64822ccc.js';
1
+ import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
2
2
  import { _ as _JSON$stringify } from './stringify-2b084bee.js';
3
3
  import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-6ebcbfea.js';
4
4
  import React__default, { useEffect, useState } from 'react';
@@ -15,7 +15,6 @@ import { m as md5 } from './md5-4e42248e.js';
15
15
  import './core.get-iterator-method-ea258bb1.js';
16
16
  import './web.dom.iterable-ab4dea5c.js';
17
17
  import './_library-528f1934.js';
18
- import './_set-species-2cd9340f.js';
19
18
  import './_iter-detect-98db3b07.js';
20
19
  import './_object-pie-133f504a.js';
21
20
 
@@ -1,5 +1,7 @@
1
1
  import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
2
2
  import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
3
+ import { a as _typeof_1 } from './typeof-2f07d0e8.js';
4
+ import { d as defineProperty, b as asyncToGenerator } from './defineProperty-23a8f8cd.js';
3
5
  import React__default, { useState, useEffect } from 'react';
4
6
  import { Form } from 'react-bootstrap';
5
7
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
@@ -13,27 +15,12 @@ function _interopRequireDefault(obj) {
13
15
  };
14
16
  }
15
17
 
16
- module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
18
+ module.exports = _interopRequireDefault;
19
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
17
20
  });
18
21
 
19
22
  unwrapExports(interopRequireDefault);
20
23
 
21
- var _typeof_1 = createCommonjsModule(function (module) {
22
- function _typeof(obj) {
23
- "@babel/helpers - typeof";
24
-
25
- return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
26
- return typeof obj;
27
- } : function (obj) {
28
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
29
- }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
30
- }
31
-
32
- module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
33
- });
34
-
35
- unwrapExports(_typeof_1);
36
-
37
24
  var runtime_1 = createCommonjsModule(function (module) {
38
25
  /**
39
26
  * Copyright (c) 2014-present, Facebook, Inc.
@@ -792,75 +779,13 @@ try {
792
779
 
793
780
  var regenerator = runtime_1;
794
781
 
795
- var defineProperty = createCommonjsModule(function (module) {
796
- function _defineProperty(obj, key, value) {
797
- if (key in obj) {
798
- Object.defineProperty(obj, key, {
799
- value: value,
800
- enumerable: true,
801
- configurable: true,
802
- writable: true
803
- });
804
- } else {
805
- obj[key] = value;
806
- }
807
-
808
- return obj;
809
- }
810
-
811
- module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
812
- });
813
-
814
- unwrapExports(defineProperty);
815
-
816
- var asyncToGenerator = createCommonjsModule(function (module) {
817
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
818
- try {
819
- var info = gen[key](arg);
820
- var value = info.value;
821
- } catch (error) {
822
- reject(error);
823
- return;
824
- }
825
-
826
- if (info.done) {
827
- resolve(value);
828
- } else {
829
- Promise.resolve(value).then(_next, _throw);
830
- }
831
- }
832
-
833
- function _asyncToGenerator(fn) {
834
- return function () {
835
- var self = this,
836
- args = arguments;
837
- return new Promise(function (resolve, reject) {
838
- var gen = fn.apply(self, args);
839
-
840
- function _next(value) {
841
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
842
- }
843
-
844
- function _throw(err) {
845
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
846
- }
847
-
848
- _next(undefined);
849
- });
850
- };
851
- }
852
-
853
- module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
854
- });
855
-
856
- unwrapExports(asyncToGenerator);
857
-
858
782
  var arrayWithHoles = createCommonjsModule(function (module) {
859
783
  function _arrayWithHoles(arr) {
860
784
  if (Array.isArray(arr)) return arr;
861
785
  }
862
786
 
863
- module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
787
+ module.exports = _arrayWithHoles;
788
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
864
789
  });
865
790
 
866
791
  unwrapExports(arrayWithHoles);
@@ -896,7 +821,8 @@ function _iterableToArrayLimit(arr, i) {
896
821
  return _arr;
897
822
  }
898
823
 
899
- module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
824
+ module.exports = _iterableToArrayLimit;
825
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
900
826
  });
901
827
 
902
828
  unwrapExports(iterableToArrayLimit);
@@ -912,7 +838,8 @@ function _arrayLikeToArray(arr, len) {
912
838
  return arr2;
913
839
  }
914
840
 
915
- module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
841
+ module.exports = _arrayLikeToArray;
842
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
916
843
  });
917
844
 
918
845
  unwrapExports(arrayLikeToArray);
@@ -927,7 +854,8 @@ function _unsupportedIterableToArray(o, minLen) {
927
854
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
928
855
  }
929
856
 
930
- module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
857
+ module.exports = _unsupportedIterableToArray;
858
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
931
859
  });
932
860
 
933
861
  unwrapExports(unsupportedIterableToArray);
@@ -937,7 +865,8 @@ function _nonIterableRest() {
937
865
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
938
866
  }
939
867
 
940
- module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
868
+ module.exports = _nonIterableRest;
869
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
941
870
  });
942
871
 
943
872
  unwrapExports(nonIterableRest);
@@ -947,7 +876,8 @@ function _slicedToArray(arr, i) {
947
876
  return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
948
877
  }
949
878
 
950
- module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
879
+ module.exports = _slicedToArray;
880
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
951
881
  });
952
882
 
953
883
  unwrapExports(slicedToArray);
package/dist/esm/Beam.js CHANGED
@@ -1,11 +1,10 @@
1
1
  import { _ as _JSON$stringify } from './stringify-2b084bee.js';
2
- import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-64822ccc.js';
2
+ import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
3
3
  import Segment from './Segment.js';
4
4
  import './_commonjsHelpers-0c4b6f40.js';
5
5
  import './core.get-iterator-method-ea258bb1.js';
6
6
  import './web.dom.iterable-ab4dea5c.js';
7
7
  import './_library-528f1934.js';
8
- import './_set-species-2cd9340f.js';
9
8
  import './_iter-detect-98db3b07.js';
10
9
 
11
10
  require("babel-polyfill");
@@ -1,4 +1,4 @@
1
- import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-64822ccc.js';
1
+ import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
2
2
  import { _ as _toConsumableArray } from './toConsumableArray-f7074d7c.js';
3
3
  import { _ as _JSON$stringify } from './stringify-2b084bee.js';
4
4
  import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
@@ -6,7 +6,7 @@ import React__default, { useState, useRef, useEffect } from 'react';
6
6
  import { Spinner, Container, Row, Col } from 'react-bootstrap';
7
7
  import { I as InfiniteScroll } from './index.es-a6137319.js';
8
8
  import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
9
- import { m as main_43 } from './main-9f6806ea.js';
9
+ import { m as main_43 } from './main-754d4992.js';
10
10
  import { d as debounce_1 } from './debounce-533d9748.js';
11
11
  import { useRouter } from 'next/router';
12
12
  import { l as lib_3 } from './index-5cc7b406.js';
@@ -14,7 +14,6 @@ import './_commonjsHelpers-0c4b6f40.js';
14
14
  import './core.get-iterator-method-ea258bb1.js';
15
15
  import './web.dom.iterable-ab4dea5c.js';
16
16
  import './_library-528f1934.js';
17
- import './_set-species-2cd9340f.js';
18
17
  import './_iter-detect-98db3b07.js';
19
18
  import 'react-dom';
20
19
  import './isSymbol-a7e9aafe.js';
@@ -10,11 +10,10 @@ import './get-3c308da4.js';
10
10
  import './isSymbol-a7e9aafe.js';
11
11
  import './eq-bdcbf886.js';
12
12
  import './Segment.js';
13
- import './asyncToGenerator-64822ccc.js';
13
+ import './asyncToGenerator-958ef5fc.js';
14
14
  import './core.get-iterator-method-ea258bb1.js';
15
15
  import './web.dom.iterable-ab4dea5c.js';
16
16
  import './_library-528f1934.js';
17
- import './_set-species-2cd9340f.js';
18
17
  import './_iter-detect-98db3b07.js';
19
18
  import './checkSisterSite-baa4fb6b.js';
20
19
 
@@ -6,7 +6,7 @@ import LeftNav from './LeftNav.js';
6
6
  import SideFooter from './SideFooter.js';
7
7
  import { C as ConferenceBanner } from './ConferenceBanner-8792ebd2.js';
8
8
  import PageFilter from './PageFilter.js';
9
- import { m as main_43 } from './main-9f6806ea.js';
9
+ import { m as main_43 } from './main-754d4992.js';
10
10
  import './slicedToArray-6ebcbfea.js';
11
11
  import './_commonjsHelpers-0c4b6f40.js';
12
12
  import './web.dom.iterable-ab4dea5c.js';
@@ -21,9 +21,8 @@ import './isSymbol-a7e9aafe.js';
21
21
  import './toNumber-5aeba6e7.js';
22
22
  import './Beam.js';
23
23
  import './stringify-2b084bee.js';
24
- import './asyncToGenerator-64822ccc.js';
24
+ import './asyncToGenerator-958ef5fc.js';
25
25
  import './_library-528f1934.js';
26
- import './_set-species-2cd9340f.js';
27
26
  import './_iter-detect-98db3b07.js';
28
27
  import './Segment.js';
29
28
  import 'react-bootstrap/ListGroup';