@mjhls/mjh-framework 1.0.992-nofollow-v5 → 1.0.992-publication-test-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 (149) hide show
  1. package/dist/cjs/AD.js +1 -1
  2. package/dist/cjs/AD300x250.js +1 -2
  3. package/dist/cjs/AD300x250x600.js +1 -2
  4. package/dist/cjs/AD728x90.js +1 -2
  5. package/dist/cjs/ADFloatingFooter.js +1 -2
  6. package/dist/cjs/ADGutter.js +1 -2
  7. package/dist/cjs/ADSkyscraper.js +1 -2
  8. package/dist/cjs/ADSponsoredResources.js +1 -2
  9. package/dist/cjs/ADWebcast.js +1 -2
  10. package/dist/cjs/ADWelcome.js +1 -2
  11. package/dist/cjs/AdSlot.js +1 -2
  12. package/dist/cjs/AdSlotsProvider.js +1 -2
  13. package/dist/cjs/AlgoliaSearch.js +419 -53
  14. package/dist/cjs/ArticleProgramLandingPage.js +2 -4
  15. package/dist/cjs/ArticleSeriesLandingPage.js +3 -4
  16. package/dist/cjs/ArticleSeriesListing.js +1 -2
  17. package/dist/cjs/AuthWrapper.js +89 -19
  18. package/dist/cjs/CMEDeck.js +1 -2
  19. package/dist/cjs/Column2.js +4 -3
  20. package/dist/cjs/Column3.js +3 -3
  21. package/dist/cjs/ContentCardPaginated.js +2 -3
  22. package/dist/cjs/DeckContent.js +2 -3
  23. package/dist/cjs/DeckQueue.js +1 -2
  24. package/dist/cjs/DeckQueuePaginated.js +1 -2
  25. package/dist/cjs/{Dfp-c313a700.js → Dfp-67646058.js} +1 -2
  26. package/dist/cjs/EventsDeck.js +3 -30
  27. package/dist/cjs/ExternalResources.js +5 -7
  28. package/dist/cjs/GridContent.js +3 -4
  29. package/dist/cjs/GridContentPaginated.js +3 -4
  30. package/dist/cjs/HamMagazine.js +10 -10
  31. package/dist/cjs/HorizontalArticleListing.js +2 -4
  32. package/dist/cjs/{ImageSlider-17fdaf3b.js → ImageSlider-1ec0408b.js} +156 -116
  33. package/dist/cjs/IssueLanding.js +4 -6
  34. package/dist/cjs/LeftNav.js +4 -14
  35. package/dist/cjs/MasterDeck.js +3 -4
  36. package/dist/cjs/MasterDeckPaginated.js +3 -4
  37. package/dist/cjs/{MediaSeriesCard-2dcd6741.js → MediaSeriesCard-d736ac47.js} +249 -207
  38. package/dist/cjs/MediaSeriesLanding.js +6 -8
  39. package/dist/cjs/MediaSeriesLandingPaginated.js +6 -8
  40. package/dist/cjs/NavDvm.js +6 -37
  41. package/dist/cjs/{NavFooter-880e9d87.js → NavFooter-1fda6732.js} +4 -9
  42. package/dist/cjs/NavMagazine.js +5 -23
  43. package/dist/cjs/NavNative.js +4 -23
  44. package/dist/cjs/PartnerDetailListing.js +12 -30
  45. package/dist/cjs/PartnerDetailListingPaginated.js +9 -22
  46. package/dist/cjs/PubSection.js +3 -4
  47. package/dist/cjs/QueueDeckExpanded.js +3 -4
  48. package/dist/cjs/QueueDeckExpandedPaginated.js +3 -4
  49. package/dist/cjs/SeriesListingDeck.js +1 -2
  50. package/dist/cjs/SideFooter.js +6 -5
  51. package/dist/cjs/{SocialSearchComponent-ca9c0c45.js → SocialSearchComponent-bac7d6fa.js} +1 -1
  52. package/dist/cjs/TaxonomyCard.js +3 -7
  53. package/dist/cjs/TaxonomyDescription.js +2 -4
  54. package/dist/cjs/TemplateNormal.js +6 -6
  55. package/dist/cjs/VideoProgramLandingPage.js +2 -4
  56. package/dist/cjs/VideoSeriesLandingPage.js +3 -4
  57. package/dist/cjs/VideoSeriesListing.js +1 -2
  58. package/dist/cjs/View.js +2 -4
  59. package/dist/cjs/defineProperty-9673846a.js +34 -0
  60. package/dist/cjs/getQuery.js +5 -2
  61. package/dist/cjs/getRelatedArticle.js +1 -0
  62. package/dist/cjs/getSerializers.js +2 -4
  63. package/dist/cjs/{index-64fe6bc7.js → index-0befb5fb.js} +12 -4
  64. package/dist/cjs/{index-d2a6ef75.js → index-7435b964.js} +467 -2
  65. package/dist/cjs/index-b95410f0.js +54 -0
  66. package/dist/cjs/{index.esm-f59ef5b4.js → index.esm-70e78156.js} +4 -5
  67. package/dist/cjs/index.js +10 -13
  68. package/dist/esm/AD.js +1 -1
  69. package/dist/esm/AD300x250.js +1 -2
  70. package/dist/esm/AD300x250x600.js +1 -2
  71. package/dist/esm/AD728x90.js +1 -2
  72. package/dist/esm/ADFloatingFooter.js +1 -2
  73. package/dist/esm/ADGutter.js +1 -2
  74. package/dist/esm/ADSkyscraper.js +1 -2
  75. package/dist/esm/ADSponsoredResources.js +1 -2
  76. package/dist/esm/ADWebcast.js +1 -2
  77. package/dist/esm/ADWelcome.js +1 -2
  78. package/dist/esm/AdSlot.js +1 -2
  79. package/dist/esm/AdSlotsProvider.js +1 -2
  80. package/dist/esm/AlgoliaSearch.js +406 -40
  81. package/dist/esm/ArticleProgramLandingPage.js +2 -4
  82. package/dist/esm/ArticleSeriesLandingPage.js +3 -4
  83. package/dist/esm/ArticleSeriesListing.js +1 -2
  84. package/dist/esm/AuthWrapper.js +86 -16
  85. package/dist/esm/CMEDeck.js +1 -2
  86. package/dist/esm/Column2.js +4 -3
  87. package/dist/esm/Column3.js +3 -3
  88. package/dist/esm/ContentCardPaginated.js +2 -3
  89. package/dist/esm/DeckContent.js +2 -3
  90. package/dist/esm/DeckQueue.js +1 -2
  91. package/dist/esm/DeckQueuePaginated.js +1 -2
  92. package/dist/esm/{Dfp-102f0beb.js → Dfp-cf85d203.js} +1 -2
  93. package/dist/esm/EventsDeck.js +2 -29
  94. package/dist/esm/ExternalResources.js +5 -7
  95. package/dist/esm/GridContent.js +3 -4
  96. package/dist/esm/GridContentPaginated.js +3 -4
  97. package/dist/esm/HamMagazine.js +10 -10
  98. package/dist/esm/HorizontalArticleListing.js +2 -4
  99. package/dist/esm/{ImageSlider-f84174cb.js → ImageSlider-83913c4c.js} +157 -117
  100. package/dist/esm/IssueLanding.js +4 -6
  101. package/dist/esm/LeftNav.js +4 -14
  102. package/dist/esm/MasterDeck.js +3 -4
  103. package/dist/esm/MasterDeckPaginated.js +3 -4
  104. package/dist/esm/{MediaSeriesCard-75712dc0.js → MediaSeriesCard-3a4646ca.js} +44 -2
  105. package/dist/esm/MediaSeriesLanding.js +6 -8
  106. package/dist/esm/MediaSeriesLandingPaginated.js +6 -8
  107. package/dist/esm/NavDvm.js +6 -37
  108. package/dist/esm/{NavFooter-3272e9cd.js → NavFooter-e27bd93b.js} +4 -9
  109. package/dist/esm/NavMagazine.js +5 -23
  110. package/dist/esm/NavNative.js +4 -23
  111. package/dist/esm/PartnerDetailListing.js +12 -30
  112. package/dist/esm/PartnerDetailListingPaginated.js +9 -22
  113. package/dist/esm/PubSection.js +3 -4
  114. package/dist/esm/QueueDeckExpanded.js +3 -4
  115. package/dist/esm/QueueDeckExpandedPaginated.js +3 -4
  116. package/dist/esm/SeriesListingDeck.js +1 -2
  117. package/dist/esm/SideFooter.js +6 -5
  118. package/dist/esm/{SocialSearchComponent-68d948b9.js → SocialSearchComponent-c249903e.js} +1 -1
  119. package/dist/esm/TaxonomyCard.js +3 -7
  120. package/dist/esm/TaxonomyDescription.js +2 -4
  121. package/dist/esm/TemplateNormal.js +6 -6
  122. package/dist/esm/VideoProgramLandingPage.js +2 -4
  123. package/dist/esm/VideoSeriesLandingPage.js +3 -4
  124. package/dist/esm/VideoSeriesListing.js +1 -2
  125. package/dist/esm/View.js +2 -4
  126. package/dist/esm/defineProperty-8c30428f.js +32 -0
  127. package/dist/esm/getQuery.js +5 -2
  128. package/dist/esm/getRelatedArticle.js +1 -0
  129. package/dist/esm/getSerializers.js +2 -4
  130. package/dist/esm/index-174b5baf.js +52 -0
  131. package/dist/esm/{index-f0fc23eb.js → index-5cc7b406.js} +466 -1
  132. package/dist/esm/{index-19ae7235.js → index-eaa2c6b3.js} +12 -4
  133. package/dist/esm/{index.esm-07c37a92.js → index.esm-37268dca.js} +4 -5
  134. package/dist/esm/index.js +10 -13
  135. package/package.json +2 -2
  136. package/dist/cjs/checkSisterSite-b29833b2.js +0 -19
  137. package/dist/cjs/defineProperty-e0fb52c5.js +0 -73
  138. package/dist/cjs/events-1b438fe7.js +0 -469
  139. package/dist/cjs/index-50be6759.js +0 -105
  140. package/dist/cjs/typeof-1358762e.js +0 -33
  141. package/dist/esm/checkSisterSite-baa4fb6b.js +0 -17
  142. package/dist/esm/defineProperty-23a8f8cd.js +0 -68
  143. package/dist/esm/events-6c3a7a63.js +0 -467
  144. package/dist/esm/index-98ca9cec.js +0 -100
  145. package/dist/esm/typeof-2f07d0e8.js +0 -30
  146. /package/dist/cjs/{ADInfeed-f316b66a.js → ADInfeed-ef933a08.js} +0 -0
  147. /package/dist/cjs/{ADlgInfeed-2003306e.js → ADlgInfeed-0e931f24.js} +0 -0
  148. /package/dist/esm/{ADInfeed-777bb0b3.js → ADInfeed-f946441a.js} +0 -0
  149. /package/dist/esm/{ADlgInfeed-e7fd1bb6.js → ADlgInfeed-012e6f16.js} +0 -0
@@ -7,8 +7,7 @@ import './core.get-iterator-method-ea258bb1.js';
7
7
  import './extends-6d8e3924.js';
8
8
  import './_object-pie-133f504a.js';
9
9
  import 'prop-types';
10
- import './index-f0fc23eb.js';
11
- import './events-6c3a7a63.js';
10
+ import './index-5cc7b406.js';
12
11
  import './debounce-533d9748.js';
13
12
  import './isSymbol-a7e9aafe.js';
14
13
  import './toNumber-5aeba6e7.js';
@@ -7,8 +7,7 @@ import './core.get-iterator-method-ea258bb1.js';
7
7
  import './extends-6d8e3924.js';
8
8
  import './_object-pie-133f504a.js';
9
9
  import 'prop-types';
10
- import './index-f0fc23eb.js';
11
- import './events-6c3a7a63.js';
10
+ import './index-5cc7b406.js';
12
11
  import './debounce-533d9748.js';
13
12
  import './isSymbol-a7e9aafe.js';
14
13
  import './toNumber-5aeba6e7.js';
@@ -7,8 +7,7 @@ import './core.get-iterator-method-ea258bb1.js';
7
7
  import './extends-6d8e3924.js';
8
8
  import './_object-pie-133f504a.js';
9
9
  import 'prop-types';
10
- import './index-f0fc23eb.js';
11
- import './events-6c3a7a63.js';
10
+ import './index-5cc7b406.js';
12
11
  import './debounce-533d9748.js';
13
12
  import './isSymbol-a7e9aafe.js';
14
13
  import './toNumber-5aeba6e7.js';
@@ -7,8 +7,7 @@ import './core.get-iterator-method-ea258bb1.js';
7
7
  import './extends-6d8e3924.js';
8
8
  import './_object-pie-133f504a.js';
9
9
  import 'prop-types';
10
- import './index-f0fc23eb.js';
11
- import './events-6c3a7a63.js';
10
+ import './index-5cc7b406.js';
12
11
  import './debounce-533d9748.js';
13
12
  import './isSymbol-a7e9aafe.js';
14
13
  import './toNumber-5aeba6e7.js';
@@ -7,8 +7,7 @@ import './core.get-iterator-method-ea258bb1.js';
7
7
  import './extends-6d8e3924.js';
8
8
  import './_object-pie-133f504a.js';
9
9
  import 'prop-types';
10
- import './index-f0fc23eb.js';
11
- import './events-6c3a7a63.js';
10
+ import './index-5cc7b406.js';
12
11
  import './debounce-533d9748.js';
13
12
  import './isSymbol-a7e9aafe.js';
14
13
  import './toNumber-5aeba6e7.js';
@@ -7,8 +7,7 @@ import './core.get-iterator-method-ea258bb1.js';
7
7
  import './extends-6d8e3924.js';
8
8
  import './_object-pie-133f504a.js';
9
9
  import 'prop-types';
10
- import './index-f0fc23eb.js';
11
- import './events-6c3a7a63.js';
10
+ import './index-5cc7b406.js';
12
11
  import './debounce-533d9748.js';
13
12
  import './isSymbol-a7e9aafe.js';
14
13
  import './toNumber-5aeba6e7.js';
@@ -2,7 +2,7 @@ import { _ as _extends } from './extends-6d8e3924.js';
2
2
  import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
3
3
  import React__default, { useState, useEffect } from 'react';
4
4
  import PropTypes from 'prop-types';
5
- import { l as lib_3, a as lib_2 } from './index-f0fc23eb.js';
5
+ 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';
@@ -11,7 +11,6 @@ import './_commonjsHelpers-0c4b6f40.js';
11
11
  import './core.get-iterator-method-ea258bb1.js';
12
12
  import './_object-pie-133f504a.js';
13
13
  import './web.dom.iterable-ab4dea5c.js';
14
- import './events-6c3a7a63.js';
15
14
  import './isSymbol-a7e9aafe.js';
16
15
  import './toNumber-5aeba6e7.js';
17
16
  import './stringify-2b084bee.js';
@@ -2,14 +2,13 @@ import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958
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
- import { l as lib_3, b as lib_1 } from './index-f0fc23eb.js';
5
+ import { l as lib_3, b as lib_1 } from './index-5cc7b406.js';
6
6
  import { d as main_24, m as main_43 } from './main-9f6806ea.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
11
  import './_iter-detect-98db3b07.js';
12
- import './events-6c3a7a63.js';
13
12
  import 'prop-types';
14
13
 
15
14
  var _this = undefined;
@@ -1,11 +1,9 @@
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$2 } from './typeof-e9fc0c5d.js';
3
+ import { _ as _typeof$1 } 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 { _ 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';
8
- import { E as EventEmitter } from './events-6c3a7a63.js';
6
+ import { c as classnames } from './index-174b5baf.js';
9
7
  import { DropdownButton } from 'react-bootstrap';
10
8
  import urlFor from './urlFor.js';
11
9
  import { m as moment } from './moment-bc12cb97.js';
@@ -22,6 +20,39 @@ import './slicedToArray-6ebcbfea.js';
22
20
  import './index-3f5c03b2.js';
23
21
  import 'react-dom';
24
22
 
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
+
25
56
  function _objectWithoutProperties(source, excluded) {
26
57
  if (source == null) return {};
27
58
  var target = _objectWithoutPropertiesLoose$1(source, excluded);
@@ -71,6 +102,15 @@ function _assertThisInitialized(self) {
71
102
  return self;
72
103
  }
73
104
 
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
+
74
114
  function _inherits(subClass, superClass) {
75
115
  if (typeof superClass !== "function" && superClass !== null) {
76
116
  throw new TypeError("Super expression must either be null or a function");
@@ -86,11 +126,25 @@ function _inherits(subClass, superClass) {
86
126
  if (superClass) _setPrototypeOf(subClass, superClass);
87
127
  }
88
128
 
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
+
89
145
  function _possibleConstructorReturn(self, call) {
90
- if (call && (_typeof$1(call) === "object" || typeof call === "function")) {
146
+ if (call && (_typeof(call) === "object" || typeof call === "function")) {
91
147
  return call;
92
- } else if (call !== void 0) {
93
- throw new TypeError("Derived constructors may only return object or undefined");
94
148
  }
95
149
 
96
150
  return _assertThisInitialized(self);
@@ -253,22 +307,6 @@ var reactFastCompare = function isEqual(a, b) {
253
307
  }
254
308
  };
255
309
 
256
- function _typeof(obj) {
257
- "@babel/helpers - typeof";
258
-
259
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
260
- _typeof = function _typeof(obj) {
261
- return typeof obj;
262
- };
263
- } else {
264
- _typeof = function _typeof(obj) {
265
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
266
- };
267
- }
268
-
269
- return _typeof(obj);
270
- }
271
-
272
310
  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; }
273
311
 
274
312
  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; }
@@ -821,7 +859,7 @@ function parseAlgoliaHit(_ref2) {
821
859
  });
822
860
  }
823
861
 
824
- var version$1 = '6.16.0';
862
+ var version$1 = '6.18.0';
825
863
 
826
864
  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); }; }
827
865
 
@@ -832,6 +870,7 @@ var withKeysPropType = function withKeysPropType(keys) {
832
870
  var prop = props[propName];
833
871
 
834
872
  if (prop) {
873
+ // eslint-disable-next-line no-restricted-syntax
835
874
  for (var _i = 0, _Object$keys = Object.keys(prop); _i < _Object$keys.length; _i++) {
836
875
  var key = _Object$keys[_i];
837
876
 
@@ -1264,7 +1303,7 @@ function _arrayWithoutHoles(arr) {
1264
1303
  }
1265
1304
 
1266
1305
  function _iterableToArray(iter) {
1267
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1306
+ if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
1268
1307
  }
1269
1308
 
1270
1309
  function _unsupportedIterableToArray(o, minLen) {
@@ -4434,6 +4473,309 @@ function getHierarchicalRefinement(state, attributeName, name, resultsFacets) {
4434
4473
 
4435
4474
  var SearchResults_1 = SearchResults;
4436
4475
 
4476
+ // Copyright Joyent, Inc. and other Node contributors.
4477
+ //
4478
+ // Permission is hereby granted, free of charge, to any person obtaining a
4479
+ // copy of this software and associated documentation files (the
4480
+ // "Software"), to deal in the Software without restriction, including
4481
+ // without limitation the rights to use, copy, modify, merge, publish,
4482
+ // distribute, sublicense, and/or sell copies of the Software, and to permit
4483
+ // persons to whom the Software is furnished to do so, subject to the
4484
+ // following conditions:
4485
+ //
4486
+ // The above copyright notice and this permission notice shall be included
4487
+ // in all copies or substantial portions of the Software.
4488
+ //
4489
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
4490
+ // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
4491
+ // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
4492
+ // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
4493
+ // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
4494
+ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
4495
+ // USE OR OTHER DEALINGS IN THE SOFTWARE.
4496
+
4497
+ function EventEmitter() {
4498
+ this._events = this._events || {};
4499
+ this._maxListeners = this._maxListeners || undefined;
4500
+ }
4501
+ var events = EventEmitter;
4502
+
4503
+ // Backwards-compat with node 0.10.x
4504
+ // EventEmitter.EventEmitter = EventEmitter;
4505
+
4506
+ EventEmitter.prototype._events = undefined;
4507
+ EventEmitter.prototype._maxListeners = undefined;
4508
+
4509
+ // By default EventEmitters will print a warning if more than 10 listeners are
4510
+ // added to it. This is a useful default which helps finding memory leaks.
4511
+ EventEmitter.defaultMaxListeners = 10;
4512
+
4513
+ // Obviously not all Emitters should be limited to 10. This function allows
4514
+ // that to be increased. Set to zero for unlimited.
4515
+ EventEmitter.prototype.setMaxListeners = function(n) {
4516
+ if (!isNumber(n) || n < 0 || isNaN(n))
4517
+ throw TypeError('n must be a positive number');
4518
+ this._maxListeners = n;
4519
+ return this;
4520
+ };
4521
+
4522
+ EventEmitter.prototype.emit = function(type) {
4523
+ var er, handler, len, args, i, listeners;
4524
+
4525
+ if (!this._events)
4526
+ this._events = {};
4527
+
4528
+ // If there is no 'error' event listener then throw.
4529
+ if (type === 'error') {
4530
+ if (!this._events.error ||
4531
+ (isObject(this._events.error) && !this._events.error.length)) {
4532
+ er = arguments[1];
4533
+ if (er instanceof Error) {
4534
+ throw er; // Unhandled 'error' event
4535
+ } else {
4536
+ // At least give some kind of context to the user
4537
+ var err = new Error('Uncaught, unspecified "error" event. (' + er + ')');
4538
+ err.context = er;
4539
+ throw err;
4540
+ }
4541
+ }
4542
+ }
4543
+
4544
+ handler = this._events[type];
4545
+
4546
+ if (isUndefined(handler))
4547
+ return false;
4548
+
4549
+ if (isFunction(handler)) {
4550
+ switch (arguments.length) {
4551
+ // fast cases
4552
+ case 1:
4553
+ handler.call(this);
4554
+ break;
4555
+ case 2:
4556
+ handler.call(this, arguments[1]);
4557
+ break;
4558
+ case 3:
4559
+ handler.call(this, arguments[1], arguments[2]);
4560
+ break;
4561
+ // slower
4562
+ default:
4563
+ args = Array.prototype.slice.call(arguments, 1);
4564
+ handler.apply(this, args);
4565
+ }
4566
+ } else if (isObject(handler)) {
4567
+ args = Array.prototype.slice.call(arguments, 1);
4568
+ listeners = handler.slice();
4569
+ len = listeners.length;
4570
+ for (i = 0; i < len; i++)
4571
+ listeners[i].apply(this, args);
4572
+ }
4573
+
4574
+ return true;
4575
+ };
4576
+
4577
+ EventEmitter.prototype.addListener = function(type, listener) {
4578
+ var m;
4579
+
4580
+ if (!isFunction(listener))
4581
+ throw TypeError('listener must be a function');
4582
+
4583
+ if (!this._events)
4584
+ this._events = {};
4585
+
4586
+ // To avoid recursion in the case that type === "newListener"! Before
4587
+ // adding it to the listeners, first emit "newListener".
4588
+ if (this._events.newListener)
4589
+ this.emit('newListener', type,
4590
+ isFunction(listener.listener) ?
4591
+ listener.listener : listener);
4592
+
4593
+ if (!this._events[type])
4594
+ // Optimize the case of one listener. Don't need the extra array object.
4595
+ this._events[type] = listener;
4596
+ else if (isObject(this._events[type]))
4597
+ // If we've already got an array, just append.
4598
+ this._events[type].push(listener);
4599
+ else
4600
+ // Adding the second element, need to change to array.
4601
+ this._events[type] = [this._events[type], listener];
4602
+
4603
+ // Check for listener leak
4604
+ if (isObject(this._events[type]) && !this._events[type].warned) {
4605
+ if (!isUndefined(this._maxListeners)) {
4606
+ m = this._maxListeners;
4607
+ } else {
4608
+ m = EventEmitter.defaultMaxListeners;
4609
+ }
4610
+
4611
+ if (m && m > 0 && this._events[type].length > m) {
4612
+ this._events[type].warned = true;
4613
+ console.error('(node) warning: possible EventEmitter memory ' +
4614
+ 'leak detected. %d listeners added. ' +
4615
+ 'Use emitter.setMaxListeners() to increase limit.',
4616
+ this._events[type].length);
4617
+ if (typeof console.trace === 'function') {
4618
+ // not supported in IE 10
4619
+ console.trace();
4620
+ }
4621
+ }
4622
+ }
4623
+
4624
+ return this;
4625
+ };
4626
+
4627
+ EventEmitter.prototype.on = EventEmitter.prototype.addListener;
4628
+
4629
+ EventEmitter.prototype.once = function(type, listener) {
4630
+ if (!isFunction(listener))
4631
+ throw TypeError('listener must be a function');
4632
+
4633
+ var fired = false;
4634
+
4635
+ function g() {
4636
+ this.removeListener(type, g);
4637
+
4638
+ if (!fired) {
4639
+ fired = true;
4640
+ listener.apply(this, arguments);
4641
+ }
4642
+ }
4643
+
4644
+ g.listener = listener;
4645
+ this.on(type, g);
4646
+
4647
+ return this;
4648
+ };
4649
+
4650
+ // emits a 'removeListener' event iff the listener was removed
4651
+ EventEmitter.prototype.removeListener = function(type, listener) {
4652
+ var list, position, length, i;
4653
+
4654
+ if (!isFunction(listener))
4655
+ throw TypeError('listener must be a function');
4656
+
4657
+ if (!this._events || !this._events[type])
4658
+ return this;
4659
+
4660
+ list = this._events[type];
4661
+ length = list.length;
4662
+ position = -1;
4663
+
4664
+ if (list === listener ||
4665
+ (isFunction(list.listener) && list.listener === listener)) {
4666
+ delete this._events[type];
4667
+ if (this._events.removeListener)
4668
+ this.emit('removeListener', type, listener);
4669
+
4670
+ } else if (isObject(list)) {
4671
+ for (i = length; i-- > 0;) {
4672
+ if (list[i] === listener ||
4673
+ (list[i].listener && list[i].listener === listener)) {
4674
+ position = i;
4675
+ break;
4676
+ }
4677
+ }
4678
+
4679
+ if (position < 0)
4680
+ return this;
4681
+
4682
+ if (list.length === 1) {
4683
+ list.length = 0;
4684
+ delete this._events[type];
4685
+ } else {
4686
+ list.splice(position, 1);
4687
+ }
4688
+
4689
+ if (this._events.removeListener)
4690
+ this.emit('removeListener', type, listener);
4691
+ }
4692
+
4693
+ return this;
4694
+ };
4695
+
4696
+ EventEmitter.prototype.removeAllListeners = function(type) {
4697
+ var key, listeners;
4698
+
4699
+ if (!this._events)
4700
+ return this;
4701
+
4702
+ // not listening for removeListener, no need to emit
4703
+ if (!this._events.removeListener) {
4704
+ if (arguments.length === 0)
4705
+ this._events = {};
4706
+ else if (this._events[type])
4707
+ delete this._events[type];
4708
+ return this;
4709
+ }
4710
+
4711
+ // emit removeListener for all listeners on all events
4712
+ if (arguments.length === 0) {
4713
+ for (key in this._events) {
4714
+ if (key === 'removeListener') continue;
4715
+ this.removeAllListeners(key);
4716
+ }
4717
+ this.removeAllListeners('removeListener');
4718
+ this._events = {};
4719
+ return this;
4720
+ }
4721
+
4722
+ listeners = this._events[type];
4723
+
4724
+ if (isFunction(listeners)) {
4725
+ this.removeListener(type, listeners);
4726
+ } else if (listeners) {
4727
+ // LIFO order
4728
+ while (listeners.length)
4729
+ this.removeListener(type, listeners[listeners.length - 1]);
4730
+ }
4731
+ delete this._events[type];
4732
+
4733
+ return this;
4734
+ };
4735
+
4736
+ EventEmitter.prototype.listeners = function(type) {
4737
+ var ret;
4738
+ if (!this._events || !this._events[type])
4739
+ ret = [];
4740
+ else if (isFunction(this._events[type]))
4741
+ ret = [this._events[type]];
4742
+ else
4743
+ ret = this._events[type].slice();
4744
+ return ret;
4745
+ };
4746
+
4747
+ EventEmitter.prototype.listenerCount = function(type) {
4748
+ if (this._events) {
4749
+ var evlistener = this._events[type];
4750
+
4751
+ if (isFunction(evlistener))
4752
+ return 1;
4753
+ else if (evlistener)
4754
+ return evlistener.length;
4755
+ }
4756
+ return 0;
4757
+ };
4758
+
4759
+ EventEmitter.listenerCount = function(emitter, type) {
4760
+ return emitter.listenerCount(type);
4761
+ };
4762
+
4763
+ function isFunction(arg) {
4764
+ return typeof arg === 'function';
4765
+ }
4766
+
4767
+ function isNumber(arg) {
4768
+ return typeof arg === 'number';
4769
+ }
4770
+
4771
+ function isObject(arg) {
4772
+ return typeof arg === 'object' && arg !== null;
4773
+ }
4774
+
4775
+ function isUndefined(arg) {
4776
+ return arg === void 0;
4777
+ }
4778
+
4437
4779
  function inherits(ctor, superCtor) {
4438
4780
  ctor.prototype = Object.create(superCtor.prototype, {
4439
4781
  constructor: {
@@ -4463,7 +4805,7 @@ function DerivedHelper(mainHelper, fn) {
4463
4805
  this.lastResults = null;
4464
4806
  }
4465
4807
 
4466
- inherits_1(DerivedHelper, EventEmitter.EventEmitter);
4808
+ inherits_1(DerivedHelper, events);
4467
4809
 
4468
4810
  /**
4469
4811
  * Detach this helper from the main helper
@@ -4799,7 +5141,7 @@ var requestBuilder = {
4799
5141
 
4800
5142
  var requestBuilder_1 = requestBuilder;
4801
5143
 
4802
- var version = '3.6.2';
5144
+ var version = '3.7.0';
4803
5145
 
4804
5146
  /**
4805
5147
  * Event triggered when a parameter is set or updated
@@ -4920,7 +5262,7 @@ function AlgoliaSearchHelper(client, index, options) {
4920
5262
  this._currentNbQueries = 0;
4921
5263
  }
4922
5264
 
4923
- inherits_1(AlgoliaSearchHelper, EventEmitter.EventEmitter);
5265
+ inherits_1(AlgoliaSearchHelper, events);
4924
5266
 
4925
5267
  /**
4926
5268
  * Start the search with the parameters set in the state. When the
@@ -6451,15 +6793,19 @@ ConfigureRelatedItems.propTypes = {
6451
6793
  };
6452
6794
  connectConfigureRelatedItems(ConfigureRelatedItems);
6453
6795
 
6796
+ var MAX_WILDCARD_FACETS = 20;
6454
6797
  var connectDynamicWidgets = createConnectorWithContext({
6455
6798
  displayName: 'AlgoliaDynamicWidgets',
6456
6799
  defaultProps: {
6457
6800
  transformItems: function transformItems(items) {
6458
6801
  return items;
6459
- }
6802
+ },
6803
+ maxValuesPerFacet: 20
6460
6804
  },
6461
6805
  propTypes: {
6462
- transformItems: PropTypes.func
6806
+ transformItems: PropTypes.func,
6807
+ facets: PropTypes.arrayOf(PropTypes.string),
6808
+ maxValuesPerFacet: PropTypes.number
6463
6809
  },
6464
6810
  getProvidedProps: function getProvidedProps(props, _searchState, searchResults) {
6465
6811
  var results = getResults(searchResults, {
@@ -6467,6 +6813,10 @@ var connectDynamicWidgets = createConnectorWithContext({
6467
6813
  multiIndexContext: props.indexContextValue
6468
6814
  });
6469
6815
 
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
+
6470
6820
  if (!results) {
6471
6821
  return {
6472
6822
  attributesToRender: []
@@ -6474,11 +6824,30 @@ var connectDynamicWidgets = createConnectorWithContext({
6474
6824
  }
6475
6825
 
6476
6826
  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
+
6477
6841
  return {
6478
- attributesToRender: props.transformItems(facetOrder, {
6479
- results: results
6480
- })
6842
+ attributesToRender: attributesToRender
6481
6843
  };
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
+ }));
6482
6851
  }
6483
6852
  });
6484
6853
 
@@ -8766,17 +9135,14 @@ function _arrayWithHoles(arr) {
8766
9135
  }
8767
9136
 
8768
9137
  function _iterableToArrayLimit(arr, i) {
8769
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
8770
-
8771
- if (_i == null) return;
9138
+ if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
8772
9139
  var _arr = [];
8773
9140
  var _n = true;
8774
9141
  var _d = false;
8775
-
8776
- var _s, _e;
9142
+ var _e = undefined;
8777
9143
 
8778
9144
  try {
8779
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
9145
+ for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
8780
9146
  _arr.push(_s.value);
8781
9147
 
8782
9148
  if (i && _arr.length === i) break;
@@ -14541,7 +14907,7 @@ var imageDiv = function imageDiv(hit, styles, client, siteType, defaultImage, va
14541
14907
  LazyLoad,
14542
14908
  { once: true },
14543
14909
  React__default.createElement('img', {
14544
- src: hit.thumbnail && hit.thumbnail.asset ? urlFor({ client: client, source: hit.thumbnail }) : hit.thumbnail && _typeof$2(hit.thumbnail === 'string') ? hit.thumbnail : defaultImage
14910
+ src: hit.thumbnail && hit.thumbnail.asset ? urlFor({ client: client, source: hit.thumbnail }) : hit.thumbnail && _typeof$1(hit.thumbnail === 'string') ? hit.thumbnail : defaultImage
14545
14911
  })
14546
14912
  )
14547
14913
  )