@mjhls/mjh-framework 1.0.973-ptce-test-v2 → 1.0.974-identify

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 (169) hide show
  1. package/dist/cjs/AlgoliaSearch.js +142 -18
  2. package/dist/cjs/ArticleProgramLandingPage.js +1 -1
  3. package/dist/cjs/ArticleSeriesLandingPage.js +2 -2
  4. package/dist/cjs/Auth.js +20 -17
  5. package/dist/cjs/AuthWrapper.js +18 -12
  6. package/dist/cjs/CMEDeck.js +5 -1
  7. package/dist/cjs/Column1.js +1 -1
  8. package/dist/cjs/Column2.js +1 -1
  9. package/dist/cjs/Column3.js +1 -1
  10. package/dist/cjs/ContentCardPaginated.js +2 -3
  11. package/dist/cjs/DeckContent.js +1 -1
  12. package/dist/cjs/DeckQueuePaginated.js +1 -2
  13. package/dist/cjs/Dfp-9be904d5.js +1 -1
  14. package/dist/cjs/ExternalResources.js +1 -1
  15. package/dist/cjs/GridContent.js +2 -2
  16. package/dist/cjs/GridContentPaginated.js +3 -4
  17. package/dist/cjs/HamMagazine.js +1 -1
  18. package/dist/cjs/Header.js +1 -1
  19. package/dist/cjs/HorizontalArticleListing.js +1 -1
  20. package/dist/cjs/IssueLanding.js +3 -3
  21. package/dist/cjs/LeftNav.js +1 -1
  22. package/dist/cjs/MasterDeck.js +2 -2
  23. package/dist/cjs/MasterDeckPaginated.js +3 -4
  24. package/dist/cjs/{MediaSeriesCard-5bf9813e.js → MediaSeriesCard-91982ed5.js} +65 -43
  25. package/dist/cjs/MediaSeriesLanding.js +4 -4
  26. package/dist/cjs/MediaSeriesLandingPaginated.js +5 -6
  27. package/dist/cjs/NavDvm.js +1 -1
  28. package/dist/cjs/NavMagazine.js +1 -1
  29. package/dist/cjs/NavNative.js +1 -1
  30. package/dist/cjs/Pagination-2a3d0103.js +97 -0
  31. package/dist/cjs/PartnerDetailListing.js +3 -3
  32. package/dist/cjs/PartnerDetailListingPaginated.js +4 -5
  33. package/dist/cjs/PubSection.js +2 -2
  34. package/dist/cjs/QueueDeckExpanded.js +2 -2
  35. package/dist/cjs/QueueDeckExpandedPaginated.js +3 -4
  36. package/dist/cjs/Segment.js +49 -0
  37. package/dist/cjs/TaxonomyDescription.js +1 -1
  38. package/dist/cjs/VideoProgramLandingPage.js +1 -1
  39. package/dist/cjs/VideoSeriesLandingPage.js +2 -2
  40. package/dist/cjs/View.js +165 -55
  41. package/dist/cjs/getSerializers.js +1 -1
  42. package/dist/cjs/index.js +3 -4
  43. package/dist/cjs/ustream-api-3819e4aa.js +1 -1
  44. package/dist/esm/AD.js +1 -1
  45. package/dist/esm/AD300x250.js +1 -1
  46. package/dist/esm/AD300x250x600.js +1 -1
  47. package/dist/esm/AD728x90.js +1 -1
  48. package/dist/esm/ADFloatingFooter.js +1 -1
  49. package/dist/esm/ADFooter.js +1 -1
  50. package/dist/esm/ADGutter.js +1 -1
  51. package/dist/esm/ADSkyscraper.js +1 -1
  52. package/dist/esm/ADSponsoredResources.js +1 -1
  53. package/dist/esm/ADWebcast.js +1 -1
  54. package/dist/esm/ADWelcome.js +1 -1
  55. package/dist/esm/AccordionPanel.js +1 -1
  56. package/dist/esm/AdSlot.js +1 -1
  57. package/dist/esm/AdSlotsProvider.js +1 -1
  58. package/dist/esm/AlgoliaSearch.js +144 -20
  59. package/dist/esm/AlphabeticList.js +1 -1
  60. package/dist/esm/ArticleCarousel.js +1 -1
  61. package/dist/esm/ArticleProgramLandingPage.js +2 -2
  62. package/dist/esm/ArticleSeriesLandingPage.js +3 -3
  63. package/dist/esm/ArticleSeriesListing.js +1 -1
  64. package/dist/esm/Auth.js +20 -18
  65. package/dist/esm/AuthWrapper.js +19 -13
  66. package/dist/esm/Beam.js +1 -1
  67. package/dist/esm/Breadcrumbs.js +1 -1
  68. package/dist/esm/CMEDeck.js +6 -2
  69. package/dist/esm/Column1.js +1 -2
  70. package/dist/esm/Column2.js +1 -2
  71. package/dist/esm/Column3.js +1 -2
  72. package/dist/esm/ConferenceArticleCard.js +1 -1
  73. package/dist/esm/ContentCardPaginated.js +3 -4
  74. package/dist/esm/DeckContent.js +2 -2
  75. package/dist/esm/DeckQueue.js +1 -1
  76. package/dist/esm/DeckQueuePaginated.js +2 -3
  77. package/dist/esm/Dfp-102f0beb.js +1 -1
  78. package/dist/esm/EventsDeck.js +1 -1
  79. package/dist/esm/ExternalResources.js +2 -2
  80. package/dist/esm/Feature.js +1 -1
  81. package/dist/esm/ForbesHero.js +1 -1
  82. package/dist/esm/GridContent.js +3 -3
  83. package/dist/esm/GridContentPaginated.js +4 -5
  84. package/dist/esm/GridHero.js +1 -1
  85. package/dist/esm/GroupDeck.js +1 -1
  86. package/dist/esm/HamMagazine.js +1 -2
  87. package/dist/esm/Header.js +1 -2
  88. package/dist/esm/HealthCareProfessionalModal.js +1 -1
  89. package/dist/esm/Hero.js +1 -1
  90. package/dist/esm/HighlightenVideo.js +1 -1
  91. package/dist/esm/HorizontalArticleListing.js +2 -2
  92. package/dist/esm/HorizontalHero.js +1 -1
  93. package/dist/esm/IssueContentDeck.js +1 -1
  94. package/dist/esm/IssueDeck.js +1 -1
  95. package/dist/esm/IssueLanding.js +4 -4
  96. package/dist/esm/KMTracker.js +1 -1
  97. package/dist/esm/LeftNav.js +1 -2
  98. package/dist/esm/MasterDeck.js +3 -3
  99. package/dist/esm/MasterDeckPaginated.js +4 -5
  100. package/dist/esm/{MediaSeriesCard-305a9cb3.js → MediaSeriesCard-da5c7499.js} +65 -43
  101. package/dist/esm/MediaSeriesLanding.js +5 -5
  102. package/dist/esm/MediaSeriesLandingPaginated.js +6 -7
  103. package/dist/esm/NavDvm.js +1 -2
  104. package/dist/esm/NavMagazine.js +1 -2
  105. package/dist/esm/NavNative.js +1 -2
  106. package/dist/esm/OncliveHero.js +1 -1
  107. package/dist/esm/OncliveLargeHero.js +1 -1
  108. package/dist/esm/PageFilter.js +1 -1
  109. package/dist/esm/Pagination-dc30727b.js +90 -0
  110. package/dist/esm/PartnerDetailListing.js +4 -4
  111. package/dist/esm/PartnerDetailListingPaginated.js +5 -6
  112. package/dist/esm/PdfDownload.js +1 -1
  113. package/dist/esm/PopUpModal.js +1 -1
  114. package/dist/esm/PubSection.js +3 -3
  115. package/dist/esm/PubToc.js +1 -1
  116. package/dist/esm/PublicationDeck.js +1 -1
  117. package/dist/esm/PublicationLanding.js +1 -1
  118. package/dist/esm/QueueDeckExpanded.js +3 -3
  119. package/dist/esm/QueueDeckExpandedPaginated.js +4 -5
  120. package/dist/esm/RecentNews.js +1 -1
  121. package/dist/esm/RelatedContent.js +1 -1
  122. package/dist/esm/RelatedTopicsDropdown.js +1 -1
  123. package/dist/esm/RolesDeck.js +1 -1
  124. package/dist/esm/Schema.js +1 -1
  125. package/dist/esm/Search.js +1 -1
  126. package/dist/esm/Segment.js +51 -2
  127. package/dist/esm/SeriesListingDeck.js +1 -1
  128. package/dist/esm/SetCookie.js +1 -1
  129. package/dist/esm/SideFooter.js +1 -1
  130. package/dist/esm/SocialIcons.js +1 -1
  131. package/dist/esm/SocialShare.js +1 -1
  132. package/dist/esm/TaxonomyCard.js +1 -1
  133. package/dist/esm/TaxonomyDescription.js +2 -2
  134. package/dist/esm/TemplateNormal.js +1 -1
  135. package/dist/esm/ThumbnailCard.js +1 -1
  136. package/dist/esm/Ustream.js +1 -1
  137. package/dist/esm/VerticalHero.js +1 -1
  138. package/dist/esm/VideoProgramLandingPage.js +2 -2
  139. package/dist/esm/VideoSeriesCard.js +1 -1
  140. package/dist/esm/VideoSeriesFilter.js +1 -1
  141. package/dist/esm/VideoSeriesLandingPage.js +3 -3
  142. package/dist/esm/VideoSeriesListing.js +1 -1
  143. package/dist/esm/View.js +166 -55
  144. package/dist/esm/YahooHero.js +1 -1
  145. package/dist/esm/YoutubeGroup.js +1 -1
  146. package/dist/esm/getKeywords.js +1 -1
  147. package/dist/esm/getQuery.js +1 -1
  148. package/dist/esm/getRelatedArticle.js +1 -1
  149. package/dist/esm/getRootDocGroup.js +1 -1
  150. package/dist/esm/getSerializers.js +1 -1
  151. package/dist/esm/getSeriesDetail.js +1 -1
  152. package/dist/esm/index.js +3 -4
  153. package/dist/esm/stringify-2b084bee.js +1 -1
  154. package/dist/esm/timeDifferenceCalc.js +1 -1
  155. package/dist/esm/urlFor.js +1 -1
  156. package/dist/esm/ustream-api-d3714624.js +1 -1
  157. package/package.json +1 -1
  158. package/dist/cjs/Pagination-1e0d5f1d.js +0 -90
  159. package/dist/cjs/PtceDeck.js +0 -223
  160. package/dist/cjs/getPtceActivities.js +0 -78
  161. package/dist/esm/Pagination-cd21f8c2.js +0 -82
  162. package/dist/esm/PtceDeck.js +0 -215
  163. package/dist/esm/getPtceActivities.js +0 -76
  164. /package/dist/cjs/{ADInfeed-81006615.js → ADInfeed-e87afe8a.js} +0 -0
  165. /package/dist/cjs/{ADlgInfeed-0db07099.js → ADlgInfeed-b5a3d436.js} +0 -0
  166. /package/dist/cjs/{index-eb1c583d.js → index-f064c482.js} +0 -0
  167. /package/dist/esm/{ADInfeed-6d1fc6bf.js → ADInfeed-5765a73a.js} +0 -0
  168. /package/dist/esm/{ADlgInfeed-dc36c928.js → ADlgInfeed-5e36f317.js} +0 -0
  169. /package/dist/esm/{index-264bbd3c.js → index-8f118089.js} +0 -0
@@ -115,6 +115,8 @@ function _assertThisInitialized(self) {
115
115
  function _possibleConstructorReturn(self, call) {
116
116
  if (call && (_typeof$1._typeof(call) === "object" || typeof call === "function")) {
117
117
  return call;
118
+ } else if (call !== void 0) {
119
+ throw new TypeError("Derived constructors may only return object or undefined");
118
120
  }
119
121
 
120
122
  return _assertThisInitialized(self);
@@ -829,7 +831,7 @@ function parseAlgoliaHit(_ref2) {
829
831
  });
830
832
  }
831
833
 
832
- var version$1 = '6.11.2';
834
+ var version$1 = '6.12.1';
833
835
 
834
836
  var withKeysPropType = function withKeysPropType(keys) {
835
837
  return function (props, propName, componentName) {
@@ -911,6 +913,10 @@ function translatable(defaultTranslations) {
911
913
  function getIndexId(context) {
912
914
  return hasMultipleIndices(context) ? context.multiIndexContext.targetedIndex : context.ais.mainTargetedIndex;
913
915
  }
916
+ /**
917
+ * @returns {import('algoliasearch-helper').SearchResults} results
918
+ */
919
+
914
920
  function getResults(searchResults, context) {
915
921
  if (searchResults.results) {
916
922
  if (searchResults.results.hits) {
@@ -4775,7 +4781,7 @@ var requestBuilder = {
4775
4781
 
4776
4782
  var requestBuilder_1 = requestBuilder;
4777
4783
 
4778
- var version = '3.5.3';
4784
+ var version = '3.5.5';
4779
4785
 
4780
4786
  /**
4781
4787
  * Event triggered when a parameter is set or updated
@@ -6423,6 +6429,87 @@ ConfigureRelatedItems.propTypes = {
6423
6429
  };
6424
6430
  connectConfigureRelatedItems(ConfigureRelatedItems);
6425
6431
 
6432
+ var connectDynamicWidgets = createConnectorWithContext({
6433
+ displayName: 'AlgoliaDynamicWidgets',
6434
+ defaultProps: {
6435
+ transformItems: function transformItems(items) {
6436
+ return items;
6437
+ }
6438
+ },
6439
+ propTypes: {
6440
+ transformItems: PropTypes__default['default'].func
6441
+ },
6442
+ getProvidedProps: function getProvidedProps(props, _searchState, searchResults) {
6443
+ var results = getResults(searchResults, {
6444
+ ais: props.contextValue,
6445
+ multiIndexContext: props.indexContextValue
6446
+ });
6447
+
6448
+ if (!results) {
6449
+ return {
6450
+ attributesToRender: []
6451
+ };
6452
+ }
6453
+
6454
+ var facetOrder = results.renderingContent && results.renderingContent.facetOrdering && results.renderingContent.facetOrdering.facets && results.renderingContent.facetOrdering.facets.order || [];
6455
+ return {
6456
+ attributesToRender: props.transformItems(facetOrder, {
6457
+ results: results
6458
+ })
6459
+ };
6460
+ }
6461
+ });
6462
+
6463
+ function getAttribute(component) {
6464
+ if (_typeof(component) !== 'object') {
6465
+ return undefined;
6466
+ }
6467
+
6468
+ if (component.props.attribute) {
6469
+ return component.props.attribute;
6470
+ }
6471
+
6472
+ if (Array.isArray(component.props.attributes)) {
6473
+ return component.props.attributes[0];
6474
+ }
6475
+
6476
+ if (component.props.children) {
6477
+ return getAttribute(React__default['default'].Children.only(component.props.children));
6478
+ }
6479
+
6480
+ return undefined;
6481
+ }
6482
+
6483
+ function DynamicWidgets(_ref) {
6484
+ var children = _ref.children,
6485
+ attributesToRender = _ref.attributesToRender,
6486
+ _ref$fallbackComponen = _ref.fallbackComponent,
6487
+ Fallback = _ref$fallbackComponen === void 0 ? function () {
6488
+ return null;
6489
+ } : _ref$fallbackComponen;
6490
+ var widgets = new Map();
6491
+ React__default['default'].Children.forEach(children, function (child) {
6492
+ var attribute = getAttribute(child);
6493
+
6494
+ if (!attribute) {
6495
+ throw new Error("Could not find \"attribute\" prop for ".concat(getDisplayName(child), "."));
6496
+ }
6497
+
6498
+ widgets.set(attribute, child);
6499
+ }); // on initial render this will be empty, but React InstantSearch keeps
6500
+ // search state for unmounted components in place, so routing works.
6501
+
6502
+ return React__default['default'].createElement(React__default['default'].Fragment, null, attributesToRender.map(function (attribute) {
6503
+ return React__default['default'].createElement(React.Fragment, {
6504
+ key: attribute
6505
+ }, widgets.get(attribute) || React__default['default'].createElement(Fallback, {
6506
+ attribute: attribute
6507
+ }));
6508
+ }));
6509
+ }
6510
+
6511
+ connectDynamicWidgets(DynamicWidgets);
6512
+
6426
6513
  // A context rule must consist only of alphanumeric characters, hyphens, and underscores.
6427
6514
  // See https://www.algolia.com/doc/guides/managing-results/refine-results/merchandising-and-promoting/in-depth/implementing-query-rules/#context
6428
6515
  function escapeRuleContext(ruleName) {
@@ -7268,15 +7355,21 @@ function hydrateMetadata(resultsState) {
7268
7355
 
7269
7356
  return resultsState.metadata.map(function (datum) {
7270
7357
  return _objectSpread({
7271
- value: function value() {}
7358
+ value: function value() {
7359
+ return {};
7360
+ }
7272
7361
  }, datum, {
7273
7362
  items: datum.items && datum.items.map(function (item) {
7274
7363
  return _objectSpread({
7275
- value: function value() {}
7364
+ value: function value() {
7365
+ return {};
7366
+ }
7276
7367
  }, item, {
7277
7368
  items: item.items && item.items.map(function (nestedItem) {
7278
7369
  return _objectSpread({
7279
- value: function value() {}
7370
+ value: function value() {
7371
+ return {};
7372
+ }
7280
7373
  }, nestedItem);
7281
7374
  })
7282
7375
  });
@@ -7832,7 +7925,8 @@ var connectHierarchicalMenu = createConnectorWithContext({
7832
7925
  showMore: PropTypes__default['default'].bool,
7833
7926
  limit: PropTypes__default['default'].number,
7834
7927
  showMoreLimit: PropTypes__default['default'].number,
7835
- transformItems: PropTypes__default['default'].func
7928
+ transformItems: PropTypes__default['default'].func,
7929
+ facetOrdering: PropTypes__default['default'].bool
7836
7930
  },
7837
7931
  defaultProps: {
7838
7932
  showMore: false,
@@ -7840,12 +7934,14 @@ var connectHierarchicalMenu = createConnectorWithContext({
7840
7934
  showMoreLimit: 20,
7841
7935
  separator: ' > ',
7842
7936
  rootPath: null,
7843
- showParentLevel: true
7937
+ showParentLevel: true,
7938
+ facetOrdering: true
7844
7939
  },
7845
7940
  getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
7846
7941
  var showMore = props.showMore,
7847
7942
  limit = props.limit,
7848
- showMoreLimit = props.showMoreLimit;
7943
+ showMoreLimit = props.showMoreLimit,
7944
+ facetOrdering = props.facetOrdering;
7849
7945
  var id = getId$c(props);
7850
7946
  var results = getResults(searchResults, {
7851
7947
  ais: props.contextValue,
@@ -7866,7 +7962,8 @@ var connectHierarchicalMenu = createConnectorWithContext({
7866
7962
 
7867
7963
  var itemsLimit = showMore ? showMoreLimit : limit;
7868
7964
  var value = results.getFacetValues(id, {
7869
- sortBy: sortBy$1
7965
+ sortBy: sortBy$1,
7966
+ facetOrdering: facetOrdering
7870
7967
  });
7871
7968
  var items = value.data ? transformValue(value.data, props, searchState, {
7872
7969
  ais: props.contextValue,
@@ -8418,17 +8515,20 @@ var connectMenu = createConnectorWithContext({
8418
8515
  showMoreLimit: PropTypes__default['default'].number,
8419
8516
  defaultRefinement: PropTypes__default['default'].string,
8420
8517
  transformItems: PropTypes__default['default'].func,
8421
- searchable: PropTypes__default['default'].bool
8518
+ searchable: PropTypes__default['default'].bool,
8519
+ facetOrdering: PropTypes__default['default'].bool
8422
8520
  },
8423
8521
  defaultProps: {
8424
8522
  showMore: false,
8425
8523
  limit: 10,
8426
- showMoreLimit: 20
8524
+ showMoreLimit: 20,
8525
+ facetOrdering: true
8427
8526
  },
8428
8527
  getProvidedProps: function getProvidedProps(props, searchState, searchResults, meta, searchForFacetValuesResults) {
8429
8528
  var attribute = props.attribute,
8430
8529
  searchable = props.searchable,
8431
- indexContextValue = props.indexContextValue;
8530
+ indexContextValue = props.indexContextValue,
8531
+ facetOrdering = props.facetOrdering;
8432
8532
  var results = getResults(searchResults, {
8433
8533
  ais: props.contextValue,
8434
8534
  multiIndexContext: props.indexContextValue
@@ -8474,7 +8574,8 @@ var connectMenu = createConnectorWithContext({
8474
8574
  });
8475
8575
  } else {
8476
8576
  items = results.getFacetValues(attribute, {
8477
- sortBy: searchable ? undefined : defaultSortBy
8577
+ sortBy: searchable ? undefined : defaultSortBy,
8578
+ facetOrdering: facetOrdering
8478
8579
  }).map(function (v) {
8479
8580
  return {
8480
8581
  label: v.name,
@@ -9331,18 +9432,21 @@ var connectRefinementList = createConnectorWithContext({
9331
9432
  showMoreLimit: PropTypes__default['default'].number,
9332
9433
  defaultRefinement: PropTypes__default['default'].arrayOf(PropTypes__default['default'].oneOfType([PropTypes__default['default'].string, PropTypes__default['default'].number])),
9333
9434
  searchable: PropTypes__default['default'].bool,
9334
- transformItems: PropTypes__default['default'].func
9435
+ transformItems: PropTypes__default['default'].func,
9436
+ facetOrdering: PropTypes__default['default'].bool
9335
9437
  },
9336
9438
  defaultProps: {
9337
9439
  operator: 'or',
9338
9440
  showMore: false,
9339
9441
  limit: 10,
9340
- showMoreLimit: 20
9442
+ showMoreLimit: 20,
9443
+ facetOrdering: true
9341
9444
  },
9342
9445
  getProvidedProps: function getProvidedProps(props, searchState, searchResults, metadata, searchForFacetValuesResults) {
9343
9446
  var attribute = props.attribute,
9344
9447
  searchable = props.searchable,
9345
- indexContextValue = props.indexContextValue;
9448
+ indexContextValue = props.indexContextValue,
9449
+ facetOrdering = props.facetOrdering;
9346
9450
  var results = getResults(searchResults, {
9347
9451
  ais: props.contextValue,
9348
9452
  multiIndexContext: props.indexContextValue
@@ -9383,7 +9487,8 @@ var connectRefinementList = createConnectorWithContext({
9383
9487
  isRefined: v.isRefined
9384
9488
  };
9385
9489
  }) : results.getFacetValues(attribute, {
9386
- sortBy: sortBy
9490
+ sortBy: sortBy,
9491
+ facetOrdering: facetOrdering
9387
9492
  }).map(function (v) {
9388
9493
  return {
9389
9494
  label: v.name,
@@ -10883,6 +10988,7 @@ function (_Component) {
10883
10988
 
10884
10989
  var _this$props4 = this.props,
10885
10990
  className = _this$props4.className,
10991
+ inputId = _this$props4.inputId,
10886
10992
  translate = _this$props4.translate,
10887
10993
  autoFocus = _this$props4.autoFocus,
10888
10994
  loadingIndicator = _this$props4.loadingIndicator,
@@ -10910,6 +11016,7 @@ function (_Component) {
10910
11016
  role: "search"
10911
11017
  }, React__default['default'].createElement("input", index._extends({
10912
11018
  ref: this.onInputMount,
11019
+ id: inputId,
10913
11020
  type: "search",
10914
11021
  placeholder: translate('placeholder'),
10915
11022
  autoFocus: autoFocus,
@@ -10961,7 +11068,8 @@ _defineProperty(SearchBox$1, "propTypes", {
10961
11068
  showLoadingIndicator: PropTypes__default['default'].bool,
10962
11069
  inputRef: PropTypes__default['default'].oneOfType([PropTypes__default['default'].func, PropTypes__default['default'].exact({
10963
11070
  current: PropTypes__default['default'].object
10964
- })])
11071
+ })]),
11072
+ inputId: PropTypes__default['default'].string
10965
11073
  });
10966
11074
 
10967
11075
  _defineProperty(SearchBox$1, "defaultProps", {
@@ -11600,9 +11708,11 @@ function (_Component) {
11600
11708
  value: function render() {
11601
11709
  var _this$props = this.props,
11602
11710
  cx = _this$props.cx,
11711
+ id = _this$props.id,
11603
11712
  items = _this$props.items,
11604
11713
  selectedItem = _this$props.selectedItem;
11605
11714
  return React__default['default'].createElement("select", {
11715
+ id: id,
11606
11716
  className: cx('select'),
11607
11717
  value: selectedItem,
11608
11718
  onChange: this.onChange
@@ -11622,6 +11732,7 @@ function (_Component) {
11622
11732
 
11623
11733
  _defineProperty(Select, "propTypes", {
11624
11734
  cx: PropTypes__default['default'].func.isRequired,
11735
+ id: PropTypes__default['default'].string,
11625
11736
  onSelect: PropTypes__default['default'].func.isRequired,
11626
11737
  items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
11627
11738
  value: PropTypes__default['default'].oneOfType([PropTypes__default['default'].string, PropTypes__default['default'].number]).isRequired,
@@ -11649,6 +11760,7 @@ function (_Component) {
11649
11760
  key: "render",
11650
11761
  value: function render() {
11651
11762
  var _this$props = this.props,
11763
+ id = _this$props.id,
11652
11764
  items = _this$props.items,
11653
11765
  currentRefinement = _this$props.currentRefinement,
11654
11766
  refine = _this$props.refine,
@@ -11656,6 +11768,7 @@ function (_Component) {
11656
11768
  return React__default['default'].createElement("div", {
11657
11769
  className: index.classnames(cx$h(''), className)
11658
11770
  }, React__default['default'].createElement(Select, {
11771
+ id: id,
11659
11772
  onSelect: refine,
11660
11773
  selectedItem: currentRefinement,
11661
11774
  items: items,
@@ -11668,6 +11781,7 @@ function (_Component) {
11668
11781
  }(React.Component);
11669
11782
 
11670
11783
  _defineProperty(HitsPerPage, "propTypes", {
11784
+ id: PropTypes__default['default'].string,
11671
11785
  items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
11672
11786
  value: PropTypes__default['default'].number.isRequired,
11673
11787
  label: PropTypes__default['default'].string
@@ -11690,6 +11804,7 @@ _defineProperty(HitsPerPage, "defaultProps", {
11690
11804
  *
11691
11805
  * @name HitsPerPage
11692
11806
  * @kind widget
11807
+ * @propType {string} id - The id of the select input
11693
11808
  * @propType {{value: number, label: string}[]} items - List of available options.
11694
11809
  * @propType {number} defaultRefinement - The number of items selected by default
11695
11810
  * @propType {function} [transformItems] - Function to modify the items being displayed, e.g. for filtering or sorting them. Takes an items as parameter and expects it back in return.
@@ -12058,6 +12173,7 @@ function (_Component) {
12058
12173
  key: "render",
12059
12174
  value: function render() {
12060
12175
  var _this$props = this.props,
12176
+ id = _this$props.id,
12061
12177
  items = _this$props.items,
12062
12178
  canRefine = _this$props.canRefine,
12063
12179
  translate = _this$props.translate,
@@ -12065,6 +12181,7 @@ function (_Component) {
12065
12181
  return React__default['default'].createElement("div", {
12066
12182
  className: index.classnames(cx$e('', !canRefine && '-noRefinement'), className)
12067
12183
  }, React__default['default'].createElement("select", {
12184
+ id: id,
12068
12185
  value: this.selectedValue,
12069
12186
  onChange: this.handleSelectChange,
12070
12187
  className: cx$e('select')
@@ -12097,6 +12214,7 @@ function (_Component) {
12097
12214
  }(React.Component);
12098
12215
 
12099
12216
  _defineProperty(MenuSelect, "propTypes", {
12217
+ id: PropTypes__default['default'].string,
12100
12218
  items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
12101
12219
  label: PropTypes__default['default'].string.isRequired,
12102
12220
  value: PropTypes__default['default'].string.isRequired,
@@ -12123,6 +12241,7 @@ var MenuSelect$1 = translatable({
12123
12241
  * @kind widget
12124
12242
  * @requirements The attribute passed to the `attribute` prop must be present in "attributes for faceting"
12125
12243
  * on the Algolia dashboard or configured as `attributesForFaceting` via a set settings call to the Algolia API.
12244
+ * @propType {string} id - the id of the select input
12126
12245
  * @propType {string} attribute - the name of the attribute in the record
12127
12246
  * @propType {string} [defaultRefinement] - the value of the item selected by default
12128
12247
  * @propType {number} [limit=10] - the minimum number of diplayed items
@@ -13454,6 +13573,7 @@ connectScrollTo(ScrollTo);
13454
13573
  * @propType {node} [reset] - Change the apparence of the default reset button (cross).
13455
13574
  * @propType {node} [loadingIndicator] - Change the apparence of the default loading indicator (spinning circle).
13456
13575
  * @propType {string} [defaultRefinement] - Provide default refinement value when component is mounted.
13576
+ * @propType {string} [inputId] - The id of the search input
13457
13577
  * @propType {boolean} [showLoadingIndicator=false] - Display that the search is loading. This only happens after a certain amount of time to avoid a blinking effect. This timer can be configured with `stalledSearchDelay` props on <InstantSearch>. By default, the value is 200ms.
13458
13578
  * @themeKey ais-SearchBox - the root div of the widget
13459
13579
  * @themeKey ais-SearchBox-form - the wrapping form
@@ -13604,6 +13724,7 @@ function (_Component) {
13604
13724
  key: "render",
13605
13725
  value: function render() {
13606
13726
  var _this$props = this.props,
13727
+ id = _this$props.id,
13607
13728
  items = _this$props.items,
13608
13729
  currentRefinement = _this$props.currentRefinement,
13609
13730
  refine = _this$props.refine,
@@ -13611,6 +13732,7 @@ function (_Component) {
13611
13732
  return React__default['default'].createElement("div", {
13612
13733
  className: index.classnames(cx$4(''), className)
13613
13734
  }, React__default['default'].createElement(Select, {
13735
+ id: id,
13614
13736
  cx: cx$4,
13615
13737
  items: items,
13616
13738
  selectedItem: currentRefinement,
@@ -13623,6 +13745,7 @@ function (_Component) {
13623
13745
  }(React.Component);
13624
13746
 
13625
13747
  _defineProperty(SortBy, "propTypes", {
13748
+ id: PropTypes__default['default'].string,
13626
13749
  items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
13627
13750
  label: PropTypes__default['default'].string,
13628
13751
  value: PropTypes__default['default'].string.isRequired
@@ -13642,6 +13765,7 @@ _defineProperty(SortBy, "defaultProps", {
13642
13765
  * @requirements Algolia handles sorting by creating replica indices. [Read more about sorting](https://www.algolia.com/doc/guides/relevance/sorting/) on
13643
13766
  * the Algolia website.
13644
13767
  * @kind widget
13768
+ * @propType {string} id - The id of the select input
13645
13769
  * @propType {{value: string, label: string}[]} items - The list of indexes to search in.
13646
13770
  * @propType {string} defaultRefinement - The default selected index.
13647
13771
  * @propType {function} [transformItems] - Function to modify the items being displayed, e.g. for filtering or sorting them. Takes an items as parameter and expects it back in return.
@@ -5,7 +5,7 @@ var slicedToArray = require('./slicedToArray-067dd3bc.js');
5
5
  var _extends = require('./extends-7c86182f.js');
6
6
  var React = require('react');
7
7
  var BlockContent = require('./BlockContent-9ebd251f.js');
8
- var getSerializers = require('./index-eb1c583d.js');
8
+ var getSerializers = require('./index-f064c482.js');
9
9
  var ArticleSeriesListing = require('./ArticleSeriesListing.js');
10
10
  require('./_commonjsHelpers-06173234.js');
11
11
  require('./core.get-iterator-method-5643aa10.js');
@@ -34,13 +34,13 @@ require('./visibility-sensor-eb2c5b69.js');
34
34
  require('react-dom');
35
35
  require('./slicedToArray-067dd3bc.js');
36
36
  require('./index-d48b231c.js');
37
- require('./ADlgInfeed-0db07099.js');
37
+ require('./ADlgInfeed-b5a3d436.js');
38
38
  require('./AdSlot.js');
39
39
  require('./Beam.js');
40
40
  require('./stringify-f7a37a8d.js');
41
41
  require('./Segment.js');
42
42
  require('./main-f1c77adb.js');
43
- require('./ADInfeed-81006615.js');
43
+ require('./ADInfeed-e87afe8a.js');
44
44
 
45
45
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
46
46
 
package/dist/cjs/Auth.js CHANGED
@@ -1491,7 +1491,7 @@ keysShim.shim = function shimObjectKeys() {
1491
1491
 
1492
1492
  var objectKeys = keysShim;
1493
1493
 
1494
- var hasSymbols$4 = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
1494
+ var hasSymbols$3 = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
1495
1495
 
1496
1496
  var toStr$3 = Object.prototype.toString;
1497
1497
  var concat = Array.prototype.concat;
@@ -1535,7 +1535,7 @@ var defineProperty = function (object, name, value, predicate) {
1535
1535
  var defineProperties = function (object, map) {
1536
1536
  var predicates = arguments.length > 2 ? arguments[2] : {};
1537
1537
  var props = objectKeys(map);
1538
- if (hasSymbols$4) {
1538
+ if (hasSymbols$3) {
1539
1539
  props = concat.call(props, Object.getOwnPropertySymbols(map));
1540
1540
  }
1541
1541
  for (var i = 0; i < props.length; i += 1) {
@@ -1601,7 +1601,7 @@ var implementation$2 = function bind(that) {
1601
1601
  var functionBind = Function.prototype.bind || implementation$2;
1602
1602
 
1603
1603
  /* eslint complexity: [2, 18], max-statements: [2, 33] */
1604
- var shams = function hasSymbols() {
1604
+ var shams$1 = function hasSymbols() {
1605
1605
  if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
1606
1606
  if (typeof Symbol.iterator === 'symbol') { return true; }
1607
1607
 
@@ -1644,13 +1644,13 @@ var shams = function hasSymbols() {
1644
1644
  var origSymbol = typeof Symbol !== 'undefined' && Symbol;
1645
1645
 
1646
1646
 
1647
- var hasSymbols$3 = function hasNativeSymbols() {
1647
+ var hasSymbols$2 = function hasNativeSymbols() {
1648
1648
  if (typeof origSymbol !== 'function') { return false; }
1649
1649
  if (typeof Symbol !== 'function') { return false; }
1650
1650
  if (typeof origSymbol('foo') !== 'symbol') { return false; }
1651
1651
  if (typeof Symbol('bar') !== 'symbol') { return false; }
1652
1652
 
1653
- return shams();
1653
+ return shams$1();
1654
1654
  };
1655
1655
 
1656
1656
  var src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
@@ -1697,7 +1697,7 @@ var ThrowTypeError = $gOPD$2
1697
1697
  }())
1698
1698
  : throwTypeError;
1699
1699
 
1700
- var hasSymbols$2 = hasSymbols$3();
1700
+ var hasSymbols$1 = hasSymbols$2();
1701
1701
 
1702
1702
  var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
1703
1703
 
@@ -1709,7 +1709,7 @@ var INTRINSICS = {
1709
1709
  '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
1710
1710
  '%Array%': Array,
1711
1711
  '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
1712
- '%ArrayIteratorPrototype%': hasSymbols$2 ? getProto([][Symbol.iterator]()) : undefined$1,
1712
+ '%ArrayIteratorPrototype%': hasSymbols$1 ? getProto([][Symbol.iterator]()) : undefined$1,
1713
1713
  '%AsyncFromSyncIteratorPrototype%': undefined$1,
1714
1714
  '%AsyncFunction%': needsEval,
1715
1715
  '%AsyncGenerator%': needsEval,
@@ -1737,10 +1737,10 @@ var INTRINSICS = {
1737
1737
  '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
1738
1738
  '%isFinite%': isFinite,
1739
1739
  '%isNaN%': isNaN,
1740
- '%IteratorPrototype%': hasSymbols$2 ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
1740
+ '%IteratorPrototype%': hasSymbols$1 ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
1741
1741
  '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
1742
1742
  '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
1743
- '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$2 ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
1743
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$1 ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
1744
1744
  '%Math%': Math,
1745
1745
  '%Number%': Number,
1746
1746
  '%Object%': Object,
@@ -1753,11 +1753,11 @@ var INTRINSICS = {
1753
1753
  '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
1754
1754
  '%RegExp%': RegExp,
1755
1755
  '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
1756
- '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$2 ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
1756
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$1 ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
1757
1757
  '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
1758
1758
  '%String%': String,
1759
- '%StringIteratorPrototype%': hasSymbols$2 ? getProto(''[Symbol.iterator]()) : undefined$1,
1760
- '%Symbol%': hasSymbols$2 ? Symbol : undefined$1,
1759
+ '%StringIteratorPrototype%': hasSymbols$1 ? getProto(''[Symbol.iterator]()) : undefined$1,
1760
+ '%Symbol%': hasSymbols$1 ? Symbol : undefined$1,
1761
1761
  '%SyntaxError%': $SyntaxError$1,
1762
1762
  '%ThrowTypeError%': ThrowTypeError,
1763
1763
  '%TypedArray%': TypedArray,
@@ -2226,8 +2226,11 @@ var IsPropertyKey = function IsPropertyKey(argument) {
2226
2226
  return typeof argument === 'string' || typeof argument === 'symbol';
2227
2227
  };
2228
2228
 
2229
- var hasSymbols$1 = shams();
2230
- var hasToStringTag$1 = hasSymbols$1 && !!Symbol.toStringTag;
2229
+ var shams = function hasToStringTagShams() {
2230
+ return shams$1() && !!Symbol.toStringTag;
2231
+ };
2232
+
2233
+ var hasToStringTag$1 = shams();
2231
2234
  var has;
2232
2235
  var $exec;
2233
2236
  var isRegexMarker;
@@ -2353,7 +2356,7 @@ var tryFunctionObject = function tryFunctionToStr(value) {
2353
2356
  var toStr = Object.prototype.toString;
2354
2357
  var fnClass = '[object Function]';
2355
2358
  var genClass = '[object GeneratorFunction]';
2356
- var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
2359
+ var hasToStringTag = typeof Symbol === 'function' && !!Symbol.toStringTag; // better: use `has-tostringtag`
2357
2360
  /* globals document: false */
2358
2361
  var documentDotAll = typeof document === 'object' && typeof document.all === 'undefined' && document.all !== undefined ? document.all : {};
2359
2362
 
@@ -2669,7 +2672,7 @@ var $slice = callBound('Array.prototype.slice');
2669
2672
  var $concat = callBound('Array.prototype.concat');
2670
2673
  var $forEach = callBound('Array.prototype.forEach');
2671
2674
 
2672
- var hasSymbols = hasSymbols$3();
2675
+ var hasSymbols = hasSymbols$2();
2673
2676
 
2674
2677
  var kCustomPromisifiedSymbol = hasSymbols ? Symbol('util.promisify.custom') : null;
2675
2678
  var kCustomPromisifyArgsSymbol = hasSymbols ? Symbol('customPromisifyArgs') : null;
@@ -3647,4 +3650,4 @@ exports.ProcessData = ProcessData_1;
3647
3650
  exports.ProfileForm = ProfileForm_1;
3648
3651
  exports.SignupForm = SignupForm_1;
3649
3652
  exports.User = User_1;
3650
- exports.default = auth;
3653
+ exports['default'] = auth;
@@ -115,9 +115,9 @@ var runtime = (function (exports) {
115
115
  // This is a polyfill for %IteratorPrototype% for environments that
116
116
  // don't natively support it.
117
117
  var IteratorPrototype = {};
118
- IteratorPrototype[iteratorSymbol] = function () {
118
+ define(IteratorPrototype, iteratorSymbol, function () {
119
119
  return this;
120
- };
120
+ });
121
121
 
122
122
  var getProto = Object.getPrototypeOf;
123
123
  var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
@@ -131,8 +131,9 @@ var runtime = (function (exports) {
131
131
 
132
132
  var Gp = GeneratorFunctionPrototype.prototype =
133
133
  Generator.prototype = Object.create(IteratorPrototype);
134
- GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
135
- GeneratorFunctionPrototype.constructor = GeneratorFunction;
134
+ GeneratorFunction.prototype = GeneratorFunctionPrototype;
135
+ define(Gp, "constructor", GeneratorFunctionPrototype);
136
+ define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
136
137
  GeneratorFunction.displayName = define(
137
138
  GeneratorFunctionPrototype,
138
139
  toStringTagSymbol,
@@ -246,9 +247,9 @@ var runtime = (function (exports) {
246
247
  }
247
248
 
248
249
  defineIteratorMethods(AsyncIterator.prototype);
249
- AsyncIterator.prototype[asyncIteratorSymbol] = function () {
250
+ define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
250
251
  return this;
251
- };
252
+ });
252
253
  exports.AsyncIterator = AsyncIterator;
253
254
 
254
255
  // Note that simple async functions are implemented on top of
@@ -441,13 +442,13 @@ var runtime = (function (exports) {
441
442
  // iterator prototype chain incorrectly implement this, causing the Generator
442
443
  // object to not be returned from this call. This ensures that doesn't happen.
443
444
  // See https://github.com/facebook/regenerator/issues/274 for more details.
444
- Gp[iteratorSymbol] = function() {
445
+ define(Gp, iteratorSymbol, function() {
445
446
  return this;
446
- };
447
+ });
447
448
 
448
- Gp.toString = function() {
449
+ define(Gp, "toString", function() {
449
450
  return "[object Generator]";
450
- };
451
+ });
451
452
 
452
453
  function pushTryEntry(locs) {
453
454
  var entry = { tryLoc: locs[0] };
@@ -766,14 +767,19 @@ try {
766
767
  } catch (accidentalStrictMode) {
767
768
  // This module should not be running in strict mode, so the above
768
769
  // assignment should always work unless something is misconfigured. Just
769
- // in case runtime.js accidentally runs in strict mode, we can escape
770
+ // in case runtime.js accidentally runs in strict mode, in modern engines
771
+ // we can explicitly access globalThis. In older engines we can escape
770
772
  // strict mode using a global Function call. This could conceivably fail
771
773
  // if a Content Security Policy forbids using Function, but in that case
772
774
  // the proper solution is to fix the accidental strict mode problem. If
773
775
  // you've misconfigured your bundler to force strict mode and applied a
774
776
  // CSP to forbid Function, and you're not willing to fix either of those
775
777
  // problems, please detail your unique predicament in a GitHub issue.
776
- Function("r", "regeneratorRuntime = r")(runtime);
778
+ if (typeof globalThis === "object") {
779
+ globalThis.regeneratorRuntime = runtime;
780
+ } else {
781
+ Function("r", "regeneratorRuntime = r")(runtime);
782
+ }
777
783
  }
778
784
  });
779
785
 
@@ -315,7 +315,11 @@ var CMEDeck = function CMEDeck(_ref) {
315
315
  return React__default['default'].createElement(
316
316
  'div',
317
317
  { className: 'd-flex justify-content-between' },
318
- currentPage > 1 ,
318
+ currentPage && currentPage > 1 && React__default['default'].createElement(
319
+ 'a',
320
+ { href: '?page=' + (currentPage - 1) },
321
+ '<< Previous'
322
+ ),
319
323
  React__default['default'].createElement(
320
324
  'a',
321
325
  { href: '?page=' + (currentPage + 1) },
@@ -36,4 +36,4 @@ var Column1 = function Column1(props) {
36
36
  };
37
37
 
38
38
  exports.Column1 = Column1;
39
- exports.default = Column1;
39
+ exports['default'] = Column1;
@@ -72,4 +72,4 @@ var Column2 = function Column2(props) {
72
72
  };
73
73
 
74
74
  exports.Column2 = Column2;
75
- exports.default = Column2;
75
+ exports['default'] = Column2;
@@ -142,4 +142,4 @@ var Column3 = function Column3(props) {
142
142
  };
143
143
 
144
144
  exports.Column3 = Column3;
145
- exports.default = Column3;
145
+ exports['default'] = Column3;