@mjhls/mjh-framework 1.0.986-rec-article-test → 1.0.987
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.
- package/dist/cjs/AlgoliaSearch.js +18 -142
- package/dist/cjs/ArticleProgramLandingPage.js +1 -1
- package/dist/cjs/ArticleSeriesLandingPage.js +2 -2
- package/dist/cjs/Auth.js +17 -20
- package/dist/cjs/AuthWrapper.js +12 -18
- package/dist/cjs/CMEDeck.js +1 -5
- package/dist/cjs/Column1.js +1 -1
- package/dist/cjs/Column2.js +1 -1
- package/dist/cjs/Column3.js +1 -1
- package/dist/cjs/ContentCardPaginated.js +3 -2
- package/dist/cjs/DeckContent.js +1 -1
- package/dist/cjs/DeckQueuePaginated.js +2 -1
- package/dist/cjs/Dfp-9be904d5.js +1 -1
- package/dist/cjs/ExternalResources.js +1 -1
- package/dist/cjs/GridContent.js +2 -2
- package/dist/cjs/GridContentPaginated.js +4 -3
- package/dist/cjs/HamMagazine.js +1 -1
- package/dist/cjs/Header.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +1 -1
- package/dist/cjs/IssueLanding.js +3 -3
- package/dist/cjs/LeftNav.js +1 -1
- package/dist/cjs/MasterDeck.js +2 -2
- package/dist/cjs/MasterDeckPaginated.js +4 -3
- package/dist/cjs/{MediaSeriesCard-1b1bd850.js → MediaSeriesCard-90875937.js} +43 -65
- package/dist/cjs/MediaSeriesLanding.js +4 -4
- package/dist/cjs/MediaSeriesLandingPaginated.js +6 -5
- package/dist/cjs/NavDvm.js +1 -1
- package/dist/cjs/NavMagazine.js +1 -1
- package/dist/cjs/NavNative.js +1 -1
- package/dist/cjs/Pagination-1e0d5f1d.js +90 -0
- package/dist/cjs/PartnerDetailListing.js +3 -3
- package/dist/cjs/PartnerDetailListingPaginated.js +5 -4
- package/dist/cjs/PubSection.js +2 -2
- package/dist/cjs/QueueDeckExpanded.js +2 -2
- package/dist/cjs/QueueDeckExpandedPaginated.js +4 -3
- package/dist/cjs/Segment.js +0 -49
- package/dist/cjs/TaxonomyDescription.js +1 -1
- package/dist/cjs/VideoProgramLandingPage.js +1 -1
- package/dist/cjs/VideoSeriesLandingPage.js +2 -2
- package/dist/cjs/View.js +66 -154
- package/dist/cjs/getSerializers.js +1 -1
- package/dist/cjs/{getTargeting-3c5754ac.js → getTargeting-ba942d9a.js} +4 -2
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/index.js +5 -4
- package/dist/cjs/ustream-api-3819e4aa.js +1 -1
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +1 -1
- package/dist/esm/AD300x250x600.js +1 -1
- package/dist/esm/AD728x90.js +1 -1
- package/dist/esm/ADFloatingFooter.js +1 -1
- package/dist/esm/ADFooter.js +1 -1
- package/dist/esm/ADGutter.js +1 -1
- package/dist/esm/ADSkyscraper.js +1 -1
- package/dist/esm/ADSponsoredResources.js +1 -1
- package/dist/esm/ADWebcast.js +1 -1
- package/dist/esm/ADWelcome.js +1 -1
- package/dist/esm/AccordionPanel.js +1 -1
- package/dist/esm/AdSlot.js +1 -1
- package/dist/esm/AdSlotsProvider.js +1 -1
- package/dist/esm/AlgoliaSearch.js +20 -144
- package/dist/esm/AlphabeticList.js +1 -1
- package/dist/esm/ArticleCarousel.js +1 -1
- package/dist/esm/ArticleProgramLandingPage.js +2 -2
- package/dist/esm/ArticleSeriesLandingPage.js +3 -3
- package/dist/esm/ArticleSeriesListing.js +1 -1
- package/dist/esm/Auth.js +18 -20
- package/dist/esm/AuthWrapper.js +13 -19
- package/dist/esm/Beam.js +1 -1
- package/dist/esm/Breadcrumbs.js +1 -1
- package/dist/esm/CMEDeck.js +2 -6
- package/dist/esm/Column1.js +2 -1
- package/dist/esm/Column2.js +2 -1
- package/dist/esm/Column3.js +2 -1
- package/dist/esm/ConferenceArticleCard.js +1 -1
- package/dist/esm/ContentCardPaginated.js +4 -3
- package/dist/esm/DeckContent.js +2 -2
- package/dist/esm/DeckQueue.js +1 -1
- package/dist/esm/DeckQueuePaginated.js +3 -2
- package/dist/esm/Dfp-102f0beb.js +1 -1
- package/dist/esm/EventsDeck.js +1 -1
- package/dist/esm/ExternalResources.js +2 -2
- package/dist/esm/Feature.js +1 -1
- package/dist/esm/ForbesHero.js +1 -1
- package/dist/esm/GridContent.js +3 -3
- package/dist/esm/GridContentPaginated.js +5 -4
- package/dist/esm/GridHero.js +1 -1
- package/dist/esm/GroupDeck.js +1 -1
- package/dist/esm/HamMagazine.js +2 -1
- package/dist/esm/Header.js +2 -1
- package/dist/esm/HealthCareProfessionalModal.js +1 -1
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HighlightenVideo.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +2 -2
- package/dist/esm/HorizontalHero.js +1 -1
- package/dist/esm/IssueContentDeck.js +1 -1
- package/dist/esm/IssueDeck.js +1 -1
- package/dist/esm/IssueLanding.js +4 -4
- package/dist/esm/KMTracker.js +1 -1
- package/dist/esm/LeftNav.js +2 -1
- package/dist/esm/MasterDeck.js +3 -3
- package/dist/esm/MasterDeckPaginated.js +5 -4
- package/dist/esm/{MediaSeriesCard-029542ab.js → MediaSeriesCard-767d6d90.js} +43 -65
- package/dist/esm/MediaSeriesLanding.js +5 -5
- package/dist/esm/MediaSeriesLandingPaginated.js +7 -6
- package/dist/esm/NavDvm.js +2 -1
- package/dist/esm/NavMagazine.js +2 -1
- package/dist/esm/NavNative.js +2 -1
- package/dist/esm/OncliveHero.js +1 -1
- package/dist/esm/OncliveLargeHero.js +1 -1
- package/dist/esm/PageFilter.js +1 -1
- package/dist/esm/Pagination-cd21f8c2.js +82 -0
- package/dist/esm/PartnerDetailListing.js +4 -4
- package/dist/esm/PartnerDetailListingPaginated.js +6 -5
- package/dist/esm/PdfDownload.js +1 -1
- package/dist/esm/PopUpModal.js +1 -1
- package/dist/esm/PtceDeck.js +1 -1
- package/dist/esm/PubSection.js +3 -3
- package/dist/esm/PubToc.js +1 -1
- package/dist/esm/PublicationDeck.js +1 -1
- package/dist/esm/PublicationLanding.js +1 -1
- package/dist/esm/QueueDeckExpanded.js +3 -3
- package/dist/esm/QueueDeckExpandedPaginated.js +5 -4
- package/dist/esm/RecentNews.js +1 -1
- package/dist/esm/RelatedContent.js +1 -1
- package/dist/esm/RelatedTopicsDropdown.js +1 -1
- package/dist/esm/RolesDeck.js +1 -1
- package/dist/esm/Schema.js +1 -1
- package/dist/esm/Search.js +1 -1
- package/dist/esm/Segment.js +2 -51
- package/dist/esm/SeriesListingDeck.js +1 -1
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +1 -1
- package/dist/esm/SocialIcons.js +1 -1
- package/dist/esm/SocialShare.js +1 -1
- package/dist/esm/TaxonomyCard.js +1 -1
- package/dist/esm/TaxonomyDescription.js +2 -2
- package/dist/esm/TemplateNormal.js +1 -1
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/Ustream.js +1 -1
- package/dist/esm/VerticalHero.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +2 -2
- package/dist/esm/VideoSeriesCard.js +1 -1
- package/dist/esm/VideoSeriesFilter.js +1 -1
- package/dist/esm/VideoSeriesLandingPage.js +3 -3
- package/dist/esm/VideoSeriesListing.js +1 -1
- package/dist/esm/View.js +66 -155
- package/dist/esm/YahooHero.js +1 -1
- package/dist/esm/YoutubeGroup.js +1 -1
- package/dist/esm/getKeywords.js +1 -1
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +1 -1
- package/dist/esm/getRootDocGroup.js +1 -1
- package/dist/esm/getSerializers.js +1 -1
- package/dist/esm/getSeriesDetail.js +1 -1
- package/dist/esm/{getTargeting-42f9b439.js → getTargeting-9bd28724.js} +4 -2
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/index.js +5 -4
- package/dist/esm/stringify-2b084bee.js +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/ustream-api-d3714624.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/Pagination-2a3d0103.js +0 -97
- package/dist/esm/Pagination-dc30727b.js +0 -90
- /package/dist/cjs/{ADInfeed-e87afe8a.js → ADInfeed-81006615.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-b5a3d436.js → ADlgInfeed-0db07099.js} +0 -0
- /package/dist/cjs/{index-c5778fcd.js → index-869cab56.js} +0 -0
- /package/dist/esm/{ADInfeed-5765a73a.js → ADInfeed-6d1fc6bf.js} +0 -0
- /package/dist/esm/{ADlgInfeed-5e36f317.js → ADlgInfeed-dc36c928.js} +0 -0
- /package/dist/esm/{index-98646d5c.js → index-4959f8e7.js} +0 -0
|
@@ -24,7 +24,9 @@ var getTargeting = function getTargeting(props) {
|
|
|
24
24
|
position = props.position,
|
|
25
25
|
prevUrl = props.prevUrl,
|
|
26
26
|
_props$cpModification = props.cpModificationRequired,
|
|
27
|
-
cpModificationRequired = _props$cpModification === undefined ? true : _props$cpModification
|
|
27
|
+
cpModificationRequired = _props$cpModification === undefined ? true : _props$cpModification,
|
|
28
|
+
_props$disablePrevUrl = props.disablePrevUrlCheckContentPlacement,
|
|
29
|
+
disablePrevUrlCheckContentPlacement = _props$disablePrevUrl === undefined ? false : _props$disablePrevUrl;
|
|
28
30
|
|
|
29
31
|
|
|
30
32
|
if (positionOverride) {
|
|
@@ -60,7 +62,7 @@ var getTargeting = function getTargeting(props) {
|
|
|
60
62
|
context = context && context.split('?')[0];
|
|
61
63
|
context = context && context.split('&')[0];
|
|
62
64
|
var content_placement_urls = [];
|
|
63
|
-
if (content_placement && prevUrl && prevUrl.length) {
|
|
65
|
+
if (content_placement && prevUrl && prevUrl.length && !disablePrevUrlCheckContentPlacement) {
|
|
64
66
|
content_placement.forEach(function (item) {
|
|
65
67
|
var path = item.path;
|
|
66
68
|
if (cpModificationRequired) {
|
package/dist/cjs/getTargeting.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./extends-7c86182f.js');
|
|
4
4
|
require('./toConsumableArray-d7797c2b.js');
|
|
5
|
-
var getTargeting = require('./getTargeting-
|
|
5
|
+
var getTargeting = require('./getTargeting-ba942d9a.js');
|
|
6
6
|
require('./_commonjsHelpers-06173234.js');
|
|
7
7
|
require('./core.get-iterator-method-5643aa10.js');
|
|
8
8
|
require('./_object-pie-083f2dd6.js');
|
package/dist/cjs/index.js
CHANGED
|
@@ -90,7 +90,7 @@ var VerticalHero = require('./VerticalHero.js');
|
|
|
90
90
|
var YahooHero = require('./YahooHero.js');
|
|
91
91
|
var GridHero = require('./GridHero.js');
|
|
92
92
|
var ConferenceArticleCard = require('./ConferenceArticleCard.js');
|
|
93
|
-
var getSerializers = require('./index-
|
|
93
|
+
var getSerializers = require('./index-869cab56.js');
|
|
94
94
|
var Beam = require('./Beam.js');
|
|
95
95
|
var Segment = require('./Segment.js');
|
|
96
96
|
var KMTracker = require('./KMTracker.js');
|
|
@@ -105,7 +105,7 @@ var VideoSeriesLandingPage = require('./VideoSeriesLandingPage.js');
|
|
|
105
105
|
var ArticleProgramLandingPage = require('./ArticleProgramLandingPage.js');
|
|
106
106
|
var ArticleSeriesLandingPage = require('./ArticleSeriesLandingPage.js');
|
|
107
107
|
var Schema = require('./Schema.js');
|
|
108
|
-
var getTargeting = require('./getTargeting-
|
|
108
|
+
var getTargeting = require('./getTargeting-ba942d9a.js');
|
|
109
109
|
var getKeywords = require('./getKeywords.js');
|
|
110
110
|
var getQuery = require('./getQuery.js');
|
|
111
111
|
require('./toConsumableArray-d7797c2b.js');
|
|
@@ -134,9 +134,9 @@ require('./visibility-sensor-eb2c5b69.js');
|
|
|
134
134
|
require('react-dom');
|
|
135
135
|
require('./main-f1c77adb.js');
|
|
136
136
|
require('./entities-df1aed86.js');
|
|
137
|
-
require('./ADInfeed-
|
|
137
|
+
require('./ADInfeed-81006615.js');
|
|
138
138
|
require('./lodash-f0783643.js');
|
|
139
|
-
require('./ADlgInfeed-
|
|
139
|
+
require('./ADlgInfeed-0db07099.js');
|
|
140
140
|
require('./getContentCategory-f38a4c00.js');
|
|
141
141
|
require('./get-5839e5b5.js');
|
|
142
142
|
require('./eq-5fc26c07.js');
|
|
@@ -198,6 +198,7 @@ require('./md5-e1ca5797.js');
|
|
|
198
198
|
require('./SeriesSlider-594b19eb.js');
|
|
199
199
|
require('./style-inject.es-dcee06b6.js');
|
|
200
200
|
require('disqus-react');
|
|
201
|
+
require('file-saver');
|
|
201
202
|
require('react-twitter-embed');
|
|
202
203
|
require('./ImageSlider-6c00b878.js');
|
|
203
204
|
require('./defineProperty-e0fb52c5.js');
|
package/dist/esm/AD.js
CHANGED
package/dist/esm/AD300x250.js
CHANGED
package/dist/esm/AD728x90.js
CHANGED
package/dist/esm/ADFooter.js
CHANGED
package/dist/esm/ADGutter.js
CHANGED
package/dist/esm/ADSkyscraper.js
CHANGED
package/dist/esm/ADWebcast.js
CHANGED
package/dist/esm/ADWelcome.js
CHANGED
package/dist/esm/AdSlot.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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
3
|
import { _ as _typeof$2 } from './typeof-e9fc0c5d.js';
|
|
4
|
-
import React__default, { createContext, Component,
|
|
4
|
+
import React__default, { createContext, Component, Children, version as version$2 } from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { _ as _typeof$1 } from './typeof-2f07d0e8.js';
|
|
7
7
|
import { _ as _objectWithoutPropertiesLoose$1, a as _setPrototypeOf, b as _extends, c as classnames } from './index-98ca9cec.js';
|
|
@@ -108,8 +108,6 @@ function _assertThisInitialized(self) {
|
|
|
108
108
|
function _possibleConstructorReturn(self, call) {
|
|
109
109
|
if (call && (_typeof$1(call) === "object" || typeof call === "function")) {
|
|
110
110
|
return call;
|
|
111
|
-
} else if (call !== void 0) {
|
|
112
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
113
111
|
}
|
|
114
112
|
|
|
115
113
|
return _assertThisInitialized(self);
|
|
@@ -824,7 +822,7 @@ function parseAlgoliaHit(_ref2) {
|
|
|
824
822
|
});
|
|
825
823
|
}
|
|
826
824
|
|
|
827
|
-
var version$1 = '6.
|
|
825
|
+
var version$1 = '6.11.2';
|
|
828
826
|
|
|
829
827
|
var withKeysPropType = function withKeysPropType(keys) {
|
|
830
828
|
return function (props, propName, componentName) {
|
|
@@ -906,10 +904,6 @@ function translatable(defaultTranslations) {
|
|
|
906
904
|
function getIndexId(context) {
|
|
907
905
|
return hasMultipleIndices(context) ? context.multiIndexContext.targetedIndex : context.ais.mainTargetedIndex;
|
|
908
906
|
}
|
|
909
|
-
/**
|
|
910
|
-
* @returns {import('algoliasearch-helper').SearchResults} results
|
|
911
|
-
*/
|
|
912
|
-
|
|
913
907
|
function getResults(searchResults, context) {
|
|
914
908
|
if (searchResults.results) {
|
|
915
909
|
if (searchResults.results.hits) {
|
|
@@ -4774,7 +4768,7 @@ var requestBuilder = {
|
|
|
4774
4768
|
|
|
4775
4769
|
var requestBuilder_1 = requestBuilder;
|
|
4776
4770
|
|
|
4777
|
-
var version = '3.5.
|
|
4771
|
+
var version = '3.5.3';
|
|
4778
4772
|
|
|
4779
4773
|
/**
|
|
4780
4774
|
* Event triggered when a parameter is set or updated
|
|
@@ -6422,87 +6416,6 @@ ConfigureRelatedItems.propTypes = {
|
|
|
6422
6416
|
};
|
|
6423
6417
|
connectConfigureRelatedItems(ConfigureRelatedItems);
|
|
6424
6418
|
|
|
6425
|
-
var connectDynamicWidgets = createConnectorWithContext({
|
|
6426
|
-
displayName: 'AlgoliaDynamicWidgets',
|
|
6427
|
-
defaultProps: {
|
|
6428
|
-
transformItems: function transformItems(items) {
|
|
6429
|
-
return items;
|
|
6430
|
-
}
|
|
6431
|
-
},
|
|
6432
|
-
propTypes: {
|
|
6433
|
-
transformItems: PropTypes.func
|
|
6434
|
-
},
|
|
6435
|
-
getProvidedProps: function getProvidedProps(props, _searchState, searchResults) {
|
|
6436
|
-
var results = getResults(searchResults, {
|
|
6437
|
-
ais: props.contextValue,
|
|
6438
|
-
multiIndexContext: props.indexContextValue
|
|
6439
|
-
});
|
|
6440
|
-
|
|
6441
|
-
if (!results) {
|
|
6442
|
-
return {
|
|
6443
|
-
attributesToRender: []
|
|
6444
|
-
};
|
|
6445
|
-
}
|
|
6446
|
-
|
|
6447
|
-
var facetOrder = results.renderingContent && results.renderingContent.facetOrdering && results.renderingContent.facetOrdering.facets && results.renderingContent.facetOrdering.facets.order || [];
|
|
6448
|
-
return {
|
|
6449
|
-
attributesToRender: props.transformItems(facetOrder, {
|
|
6450
|
-
results: results
|
|
6451
|
-
})
|
|
6452
|
-
};
|
|
6453
|
-
}
|
|
6454
|
-
});
|
|
6455
|
-
|
|
6456
|
-
function getAttribute(component) {
|
|
6457
|
-
if (_typeof(component) !== 'object') {
|
|
6458
|
-
return undefined;
|
|
6459
|
-
}
|
|
6460
|
-
|
|
6461
|
-
if (component.props.attribute) {
|
|
6462
|
-
return component.props.attribute;
|
|
6463
|
-
}
|
|
6464
|
-
|
|
6465
|
-
if (Array.isArray(component.props.attributes)) {
|
|
6466
|
-
return component.props.attributes[0];
|
|
6467
|
-
}
|
|
6468
|
-
|
|
6469
|
-
if (component.props.children) {
|
|
6470
|
-
return getAttribute(React__default.Children.only(component.props.children));
|
|
6471
|
-
}
|
|
6472
|
-
|
|
6473
|
-
return undefined;
|
|
6474
|
-
}
|
|
6475
|
-
|
|
6476
|
-
function DynamicWidgets(_ref) {
|
|
6477
|
-
var children = _ref.children,
|
|
6478
|
-
attributesToRender = _ref.attributesToRender,
|
|
6479
|
-
_ref$fallbackComponen = _ref.fallbackComponent,
|
|
6480
|
-
Fallback = _ref$fallbackComponen === void 0 ? function () {
|
|
6481
|
-
return null;
|
|
6482
|
-
} : _ref$fallbackComponen;
|
|
6483
|
-
var widgets = new Map();
|
|
6484
|
-
React__default.Children.forEach(children, function (child) {
|
|
6485
|
-
var attribute = getAttribute(child);
|
|
6486
|
-
|
|
6487
|
-
if (!attribute) {
|
|
6488
|
-
throw new Error("Could not find \"attribute\" prop for ".concat(getDisplayName(child), "."));
|
|
6489
|
-
}
|
|
6490
|
-
|
|
6491
|
-
widgets.set(attribute, child);
|
|
6492
|
-
}); // on initial render this will be empty, but React InstantSearch keeps
|
|
6493
|
-
// search state for unmounted components in place, so routing works.
|
|
6494
|
-
|
|
6495
|
-
return React__default.createElement(React__default.Fragment, null, attributesToRender.map(function (attribute) {
|
|
6496
|
-
return React__default.createElement(Fragment, {
|
|
6497
|
-
key: attribute
|
|
6498
|
-
}, widgets.get(attribute) || React__default.createElement(Fallback, {
|
|
6499
|
-
attribute: attribute
|
|
6500
|
-
}));
|
|
6501
|
-
}));
|
|
6502
|
-
}
|
|
6503
|
-
|
|
6504
|
-
connectDynamicWidgets(DynamicWidgets);
|
|
6505
|
-
|
|
6506
6419
|
// A context rule must consist only of alphanumeric characters, hyphens, and underscores.
|
|
6507
6420
|
// See https://www.algolia.com/doc/guides/managing-results/refine-results/merchandising-and-promoting/in-depth/implementing-query-rules/#context
|
|
6508
6421
|
function escapeRuleContext(ruleName) {
|
|
@@ -7348,21 +7261,15 @@ function hydrateMetadata(resultsState) {
|
|
|
7348
7261
|
|
|
7349
7262
|
return resultsState.metadata.map(function (datum) {
|
|
7350
7263
|
return _objectSpread({
|
|
7351
|
-
value: function value() {
|
|
7352
|
-
return {};
|
|
7353
|
-
}
|
|
7264
|
+
value: function value() {}
|
|
7354
7265
|
}, datum, {
|
|
7355
7266
|
items: datum.items && datum.items.map(function (item) {
|
|
7356
7267
|
return _objectSpread({
|
|
7357
|
-
value: function value() {
|
|
7358
|
-
return {};
|
|
7359
|
-
}
|
|
7268
|
+
value: function value() {}
|
|
7360
7269
|
}, item, {
|
|
7361
7270
|
items: item.items && item.items.map(function (nestedItem) {
|
|
7362
7271
|
return _objectSpread({
|
|
7363
|
-
value: function value() {
|
|
7364
|
-
return {};
|
|
7365
|
-
}
|
|
7272
|
+
value: function value() {}
|
|
7366
7273
|
}, nestedItem);
|
|
7367
7274
|
})
|
|
7368
7275
|
});
|
|
@@ -7918,8 +7825,7 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7918
7825
|
showMore: PropTypes.bool,
|
|
7919
7826
|
limit: PropTypes.number,
|
|
7920
7827
|
showMoreLimit: PropTypes.number,
|
|
7921
|
-
transformItems: PropTypes.func
|
|
7922
|
-
facetOrdering: PropTypes.bool
|
|
7828
|
+
transformItems: PropTypes.func
|
|
7923
7829
|
},
|
|
7924
7830
|
defaultProps: {
|
|
7925
7831
|
showMore: false,
|
|
@@ -7927,14 +7833,12 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7927
7833
|
showMoreLimit: 20,
|
|
7928
7834
|
separator: ' > ',
|
|
7929
7835
|
rootPath: null,
|
|
7930
|
-
showParentLevel: true
|
|
7931
|
-
facetOrdering: true
|
|
7836
|
+
showParentLevel: true
|
|
7932
7837
|
},
|
|
7933
7838
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
7934
7839
|
var showMore = props.showMore,
|
|
7935
7840
|
limit = props.limit,
|
|
7936
|
-
showMoreLimit = props.showMoreLimit
|
|
7937
|
-
facetOrdering = props.facetOrdering;
|
|
7841
|
+
showMoreLimit = props.showMoreLimit;
|
|
7938
7842
|
var id = getId$c(props);
|
|
7939
7843
|
var results = getResults(searchResults, {
|
|
7940
7844
|
ais: props.contextValue,
|
|
@@ -7955,8 +7859,7 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7955
7859
|
|
|
7956
7860
|
var itemsLimit = showMore ? showMoreLimit : limit;
|
|
7957
7861
|
var value = results.getFacetValues(id, {
|
|
7958
|
-
sortBy: sortBy$1
|
|
7959
|
-
facetOrdering: facetOrdering
|
|
7862
|
+
sortBy: sortBy$1
|
|
7960
7863
|
});
|
|
7961
7864
|
var items = value.data ? transformValue(value.data, props, searchState, {
|
|
7962
7865
|
ais: props.contextValue,
|
|
@@ -8508,20 +8411,17 @@ var connectMenu = createConnectorWithContext({
|
|
|
8508
8411
|
showMoreLimit: PropTypes.number,
|
|
8509
8412
|
defaultRefinement: PropTypes.string,
|
|
8510
8413
|
transformItems: PropTypes.func,
|
|
8511
|
-
searchable: PropTypes.bool
|
|
8512
|
-
facetOrdering: PropTypes.bool
|
|
8414
|
+
searchable: PropTypes.bool
|
|
8513
8415
|
},
|
|
8514
8416
|
defaultProps: {
|
|
8515
8417
|
showMore: false,
|
|
8516
8418
|
limit: 10,
|
|
8517
|
-
showMoreLimit: 20
|
|
8518
|
-
facetOrdering: true
|
|
8419
|
+
showMoreLimit: 20
|
|
8519
8420
|
},
|
|
8520
8421
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults, meta, searchForFacetValuesResults) {
|
|
8521
8422
|
var attribute = props.attribute,
|
|
8522
8423
|
searchable = props.searchable,
|
|
8523
|
-
indexContextValue = props.indexContextValue
|
|
8524
|
-
facetOrdering = props.facetOrdering;
|
|
8424
|
+
indexContextValue = props.indexContextValue;
|
|
8525
8425
|
var results = getResults(searchResults, {
|
|
8526
8426
|
ais: props.contextValue,
|
|
8527
8427
|
multiIndexContext: props.indexContextValue
|
|
@@ -8567,8 +8467,7 @@ var connectMenu = createConnectorWithContext({
|
|
|
8567
8467
|
});
|
|
8568
8468
|
} else {
|
|
8569
8469
|
items = results.getFacetValues(attribute, {
|
|
8570
|
-
sortBy: searchable ? undefined : defaultSortBy
|
|
8571
|
-
facetOrdering: facetOrdering
|
|
8470
|
+
sortBy: searchable ? undefined : defaultSortBy
|
|
8572
8471
|
}).map(function (v) {
|
|
8573
8472
|
return {
|
|
8574
8473
|
label: v.name,
|
|
@@ -9425,21 +9324,18 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9425
9324
|
showMoreLimit: PropTypes.number,
|
|
9426
9325
|
defaultRefinement: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number])),
|
|
9427
9326
|
searchable: PropTypes.bool,
|
|
9428
|
-
transformItems: PropTypes.func
|
|
9429
|
-
facetOrdering: PropTypes.bool
|
|
9327
|
+
transformItems: PropTypes.func
|
|
9430
9328
|
},
|
|
9431
9329
|
defaultProps: {
|
|
9432
9330
|
operator: 'or',
|
|
9433
9331
|
showMore: false,
|
|
9434
9332
|
limit: 10,
|
|
9435
|
-
showMoreLimit: 20
|
|
9436
|
-
facetOrdering: true
|
|
9333
|
+
showMoreLimit: 20
|
|
9437
9334
|
},
|
|
9438
9335
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults, metadata, searchForFacetValuesResults) {
|
|
9439
9336
|
var attribute = props.attribute,
|
|
9440
9337
|
searchable = props.searchable,
|
|
9441
|
-
indexContextValue = props.indexContextValue
|
|
9442
|
-
facetOrdering = props.facetOrdering;
|
|
9338
|
+
indexContextValue = props.indexContextValue;
|
|
9443
9339
|
var results = getResults(searchResults, {
|
|
9444
9340
|
ais: props.contextValue,
|
|
9445
9341
|
multiIndexContext: props.indexContextValue
|
|
@@ -9480,8 +9376,7 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9480
9376
|
isRefined: v.isRefined
|
|
9481
9377
|
};
|
|
9482
9378
|
}) : results.getFacetValues(attribute, {
|
|
9483
|
-
sortBy: sortBy
|
|
9484
|
-
facetOrdering: facetOrdering
|
|
9379
|
+
sortBy: sortBy
|
|
9485
9380
|
}).map(function (v) {
|
|
9486
9381
|
return {
|
|
9487
9382
|
label: v.name,
|
|
@@ -10981,7 +10876,6 @@ function (_Component) {
|
|
|
10981
10876
|
|
|
10982
10877
|
var _this$props4 = this.props,
|
|
10983
10878
|
className = _this$props4.className,
|
|
10984
|
-
inputId = _this$props4.inputId,
|
|
10985
10879
|
translate = _this$props4.translate,
|
|
10986
10880
|
autoFocus = _this$props4.autoFocus,
|
|
10987
10881
|
loadingIndicator = _this$props4.loadingIndicator,
|
|
@@ -11009,7 +10903,6 @@ function (_Component) {
|
|
|
11009
10903
|
role: "search"
|
|
11010
10904
|
}, React__default.createElement("input", _extends({
|
|
11011
10905
|
ref: this.onInputMount,
|
|
11012
|
-
id: inputId,
|
|
11013
10906
|
type: "search",
|
|
11014
10907
|
placeholder: translate('placeholder'),
|
|
11015
10908
|
autoFocus: autoFocus,
|
|
@@ -11061,8 +10954,7 @@ _defineProperty(SearchBox$1, "propTypes", {
|
|
|
11061
10954
|
showLoadingIndicator: PropTypes.bool,
|
|
11062
10955
|
inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.exact({
|
|
11063
10956
|
current: PropTypes.object
|
|
11064
|
-
})])
|
|
11065
|
-
inputId: PropTypes.string
|
|
10957
|
+
})])
|
|
11066
10958
|
});
|
|
11067
10959
|
|
|
11068
10960
|
_defineProperty(SearchBox$1, "defaultProps", {
|
|
@@ -11701,11 +11593,9 @@ function (_Component) {
|
|
|
11701
11593
|
value: function render() {
|
|
11702
11594
|
var _this$props = this.props,
|
|
11703
11595
|
cx = _this$props.cx,
|
|
11704
|
-
id = _this$props.id,
|
|
11705
11596
|
items = _this$props.items,
|
|
11706
11597
|
selectedItem = _this$props.selectedItem;
|
|
11707
11598
|
return React__default.createElement("select", {
|
|
11708
|
-
id: id,
|
|
11709
11599
|
className: cx('select'),
|
|
11710
11600
|
value: selectedItem,
|
|
11711
11601
|
onChange: this.onChange
|
|
@@ -11725,7 +11615,6 @@ function (_Component) {
|
|
|
11725
11615
|
|
|
11726
11616
|
_defineProperty(Select, "propTypes", {
|
|
11727
11617
|
cx: PropTypes.func.isRequired,
|
|
11728
|
-
id: PropTypes.string,
|
|
11729
11618
|
onSelect: PropTypes.func.isRequired,
|
|
11730
11619
|
items: PropTypes.arrayOf(PropTypes.shape({
|
|
11731
11620
|
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
|
|
@@ -11753,7 +11642,6 @@ function (_Component) {
|
|
|
11753
11642
|
key: "render",
|
|
11754
11643
|
value: function render() {
|
|
11755
11644
|
var _this$props = this.props,
|
|
11756
|
-
id = _this$props.id,
|
|
11757
11645
|
items = _this$props.items,
|
|
11758
11646
|
currentRefinement = _this$props.currentRefinement,
|
|
11759
11647
|
refine = _this$props.refine,
|
|
@@ -11761,7 +11649,6 @@ function (_Component) {
|
|
|
11761
11649
|
return React__default.createElement("div", {
|
|
11762
11650
|
className: classnames(cx$h(''), className)
|
|
11763
11651
|
}, React__default.createElement(Select, {
|
|
11764
|
-
id: id,
|
|
11765
11652
|
onSelect: refine,
|
|
11766
11653
|
selectedItem: currentRefinement,
|
|
11767
11654
|
items: items,
|
|
@@ -11774,7 +11661,6 @@ function (_Component) {
|
|
|
11774
11661
|
}(Component);
|
|
11775
11662
|
|
|
11776
11663
|
_defineProperty(HitsPerPage, "propTypes", {
|
|
11777
|
-
id: PropTypes.string,
|
|
11778
11664
|
items: PropTypes.arrayOf(PropTypes.shape({
|
|
11779
11665
|
value: PropTypes.number.isRequired,
|
|
11780
11666
|
label: PropTypes.string
|
|
@@ -11797,7 +11683,6 @@ _defineProperty(HitsPerPage, "defaultProps", {
|
|
|
11797
11683
|
*
|
|
11798
11684
|
* @name HitsPerPage
|
|
11799
11685
|
* @kind widget
|
|
11800
|
-
* @propType {string} id - The id of the select input
|
|
11801
11686
|
* @propType {{value: number, label: string}[]} items - List of available options.
|
|
11802
11687
|
* @propType {number} defaultRefinement - The number of items selected by default
|
|
11803
11688
|
* @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.
|
|
@@ -12166,7 +12051,6 @@ function (_Component) {
|
|
|
12166
12051
|
key: "render",
|
|
12167
12052
|
value: function render() {
|
|
12168
12053
|
var _this$props = this.props,
|
|
12169
|
-
id = _this$props.id,
|
|
12170
12054
|
items = _this$props.items,
|
|
12171
12055
|
canRefine = _this$props.canRefine,
|
|
12172
12056
|
translate = _this$props.translate,
|
|
@@ -12174,7 +12058,6 @@ function (_Component) {
|
|
|
12174
12058
|
return React__default.createElement("div", {
|
|
12175
12059
|
className: classnames(cx$e('', !canRefine && '-noRefinement'), className)
|
|
12176
12060
|
}, React__default.createElement("select", {
|
|
12177
|
-
id: id,
|
|
12178
12061
|
value: this.selectedValue,
|
|
12179
12062
|
onChange: this.handleSelectChange,
|
|
12180
12063
|
className: cx$e('select')
|
|
@@ -12207,7 +12090,6 @@ function (_Component) {
|
|
|
12207
12090
|
}(Component);
|
|
12208
12091
|
|
|
12209
12092
|
_defineProperty(MenuSelect, "propTypes", {
|
|
12210
|
-
id: PropTypes.string,
|
|
12211
12093
|
items: PropTypes.arrayOf(PropTypes.shape({
|
|
12212
12094
|
label: PropTypes.string.isRequired,
|
|
12213
12095
|
value: PropTypes.string.isRequired,
|
|
@@ -12234,7 +12116,6 @@ var MenuSelect$1 = translatable({
|
|
|
12234
12116
|
* @kind widget
|
|
12235
12117
|
* @requirements The attribute passed to the `attribute` prop must be present in "attributes for faceting"
|
|
12236
12118
|
* on the Algolia dashboard or configured as `attributesForFaceting` via a set settings call to the Algolia API.
|
|
12237
|
-
* @propType {string} id - the id of the select input
|
|
12238
12119
|
* @propType {string} attribute - the name of the attribute in the record
|
|
12239
12120
|
* @propType {string} [defaultRefinement] - the value of the item selected by default
|
|
12240
12121
|
* @propType {number} [limit=10] - the minimum number of diplayed items
|
|
@@ -13566,7 +13447,6 @@ connectScrollTo(ScrollTo);
|
|
|
13566
13447
|
* @propType {node} [reset] - Change the apparence of the default reset button (cross).
|
|
13567
13448
|
* @propType {node} [loadingIndicator] - Change the apparence of the default loading indicator (spinning circle).
|
|
13568
13449
|
* @propType {string} [defaultRefinement] - Provide default refinement value when component is mounted.
|
|
13569
|
-
* @propType {string} [inputId] - The id of the search input
|
|
13570
13450
|
* @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.
|
|
13571
13451
|
* @themeKey ais-SearchBox - the root div of the widget
|
|
13572
13452
|
* @themeKey ais-SearchBox-form - the wrapping form
|
|
@@ -13717,7 +13597,6 @@ function (_Component) {
|
|
|
13717
13597
|
key: "render",
|
|
13718
13598
|
value: function render() {
|
|
13719
13599
|
var _this$props = this.props,
|
|
13720
|
-
id = _this$props.id,
|
|
13721
13600
|
items = _this$props.items,
|
|
13722
13601
|
currentRefinement = _this$props.currentRefinement,
|
|
13723
13602
|
refine = _this$props.refine,
|
|
@@ -13725,7 +13604,6 @@ function (_Component) {
|
|
|
13725
13604
|
return React__default.createElement("div", {
|
|
13726
13605
|
className: classnames(cx$4(''), className)
|
|
13727
13606
|
}, React__default.createElement(Select, {
|
|
13728
|
-
id: id,
|
|
13729
13607
|
cx: cx$4,
|
|
13730
13608
|
items: items,
|
|
13731
13609
|
selectedItem: currentRefinement,
|
|
@@ -13738,7 +13616,6 @@ function (_Component) {
|
|
|
13738
13616
|
}(Component);
|
|
13739
13617
|
|
|
13740
13618
|
_defineProperty(SortBy, "propTypes", {
|
|
13741
|
-
id: PropTypes.string,
|
|
13742
13619
|
items: PropTypes.arrayOf(PropTypes.shape({
|
|
13743
13620
|
label: PropTypes.string,
|
|
13744
13621
|
value: PropTypes.string.isRequired
|
|
@@ -13758,7 +13635,6 @@ _defineProperty(SortBy, "defaultProps", {
|
|
|
13758
13635
|
* @requirements Algolia handles sorting by creating replica indices. [Read more about sorting](https://www.algolia.com/doc/guides/relevance/sorting/) on
|
|
13759
13636
|
* the Algolia website.
|
|
13760
13637
|
* @kind widget
|
|
13761
|
-
* @propType {string} id - The id of the select input
|
|
13762
13638
|
* @propType {{value: string, label: string}[]} items - The list of indexes to search in.
|
|
13763
13639
|
* @propType {string} defaultRefinement - The default selected index.
|
|
13764
13640
|
* @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.
|
|
@@ -14456,4 +14332,4 @@ AlgoliaSearch.propTypes = {
|
|
|
14456
14332
|
refinementAttributes: PropTypes.array
|
|
14457
14333
|
};
|
|
14458
14334
|
|
|
14459
|
-
export
|
|
14335
|
+
export default AlgoliaSearch;
|
|
@@ -3,7 +3,7 @@ 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-
|
|
6
|
+
import { g as getSerializers } from './index-4959f8e7.js';
|
|
7
7
|
import ArticleSeriesListing from './ArticleSeriesListing.js';
|
|
8
8
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
9
9
|
import './core.get-iterator-method-ea258bb1.js';
|
|
@@ -177,4 +177,4 @@ _context.next = 14;
|
|
|
177
177
|
};
|
|
178
178
|
}();
|
|
179
179
|
|
|
180
|
-
export
|
|
180
|
+
export default ArticleProgramLandingPage;
|
|
@@ -32,13 +32,13 @@ import './visibility-sensor-72fd8f8b.js';
|
|
|
32
32
|
import 'react-dom';
|
|
33
33
|
import './slicedToArray-6ebcbfea.js';
|
|
34
34
|
import './index-3f5c03b2.js';
|
|
35
|
-
import './ADlgInfeed-
|
|
35
|
+
import './ADlgInfeed-dc36c928.js';
|
|
36
36
|
import './AdSlot.js';
|
|
37
37
|
import './Beam.js';
|
|
38
38
|
import './stringify-2b084bee.js';
|
|
39
39
|
import './Segment.js';
|
|
40
40
|
import './main-1894c974.js';
|
|
41
|
-
import './ADInfeed-
|
|
41
|
+
import './ADInfeed-6d1fc6bf.js';
|
|
42
42
|
|
|
43
43
|
var _this = undefined;
|
|
44
44
|
|
|
@@ -154,4 +154,4 @@ ArticleSeriesLandingPage.getInitialData = function () {
|
|
|
154
154
|
};
|
|
155
155
|
}();
|
|
156
156
|
|
|
157
|
-
export
|
|
157
|
+
export default ArticleSeriesLandingPage;
|