@mjhls/mjh-framework 1.0.959-ris-update-v2 → 1.0.959-test
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/README.md +168 -168
- package/dist/cjs/AlgoliaSearch.js +15 -131
- package/dist/cjs/ArticleProgramLandingPage.js +1 -1
- package/dist/cjs/AuthWrapper.js +1 -1
- package/dist/cjs/ConferenceArticleCard.js +15 -15
- package/dist/cjs/ContentCardPaginated.js +2 -1
- package/dist/cjs/DeckContent.js +8 -8
- package/dist/cjs/DeckQueuePaginated.js +2 -1
- package/dist/cjs/EventsDeck.js +17 -17
- package/dist/cjs/ExternalResources.js +1 -1
- package/dist/cjs/GridContentPaginated.js +2 -1
- package/dist/cjs/HamMagazine.js +9 -9
- package/dist/cjs/HealthCareProfessionalModal.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +1 -1
- package/dist/cjs/IssueLanding.js +30 -30
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/MasterDeck.js +8 -8
- package/dist/cjs/MasterDeckPaginated.js +10 -9
- package/dist/cjs/{MediaSeriesCard-dffbfadb.js → MediaSeriesCard-c19315f5.js} +2 -2
- package/dist/cjs/MediaSeriesLanding.js +7 -7
- package/dist/cjs/MediaSeriesLandingPaginated.js +9 -8
- package/dist/cjs/NavMagazine.js +10 -10
- package/dist/cjs/NavNative.js +9 -9
- package/dist/cjs/Pagination-c63770a3.js +90 -0
- package/dist/cjs/PartnerDetailListing.js +1 -1
- package/dist/cjs/PartnerDetailListingPaginated.js +3 -2
- package/dist/cjs/PublicationLanding.js +26 -26
- package/dist/cjs/QueueDeckExpandedPaginated.js +2 -1
- package/dist/cjs/RelatedContent.js +28 -28
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SeriesListingDeck.js +1 -1
- package/dist/cjs/{SeriesSlider-74546d19.js → SeriesSlider-594b19eb.js} +4 -4
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/TaxonomyDescription.js +1 -1
- package/dist/cjs/VideoProgramLandingPage.js +1 -1
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/View.js +43 -85
- package/dist/cjs/YoutubeGroup.js +4 -4
- package/dist/cjs/getQuery.js +3 -3
- package/dist/cjs/getSerializers.js +1 -1
- package/dist/cjs/{getTargeting-77bb50ae.js → getTargeting-232688b0.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index-d92837fc.js → index-8419338d.js} +1 -1
- package/dist/cjs/index.js +4 -3
- package/dist/esm/AlgoliaSearch.js +16 -132
- package/dist/esm/ArticleProgramLandingPage.js +1 -1
- package/dist/esm/AuthWrapper.js +1 -1
- package/dist/esm/ConferenceArticleCard.js +15 -15
- package/dist/esm/ContentCardPaginated.js +2 -1
- package/dist/esm/DeckContent.js +8 -8
- package/dist/esm/DeckQueuePaginated.js +2 -1
- package/dist/esm/EventsDeck.js +17 -17
- package/dist/esm/ExternalResources.js +1 -1
- package/dist/esm/GridContentPaginated.js +2 -1
- package/dist/esm/HamMagazine.js +9 -9
- package/dist/esm/HealthCareProfessionalModal.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +1 -1
- package/dist/esm/IssueLanding.js +30 -30
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/MasterDeck.js +8 -8
- package/dist/esm/MasterDeckPaginated.js +10 -9
- package/dist/esm/{MediaSeriesCard-7003e532.js → MediaSeriesCard-0d93f580.js} +2 -2
- package/dist/esm/MediaSeriesLanding.js +7 -7
- package/dist/esm/MediaSeriesLandingPaginated.js +9 -8
- package/dist/esm/NavMagazine.js +10 -10
- package/dist/esm/NavNative.js +9 -9
- package/dist/esm/Pagination-6f8d5327.js +82 -0
- package/dist/esm/PartnerDetailListing.js +1 -1
- package/dist/esm/PartnerDetailListingPaginated.js +3 -2
- package/dist/esm/PublicationLanding.js +26 -26
- package/dist/esm/QueueDeckExpandedPaginated.js +2 -1
- package/dist/esm/RelatedContent.js +28 -28
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/SeriesListingDeck.js +1 -1
- package/dist/esm/{SeriesSlider-b853a8cf.js → SeriesSlider-19bf6ce4.js} +4 -4
- package/dist/esm/SideFooter.js +2 -2
- package/dist/esm/TaxonomyDescription.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +1 -1
- package/dist/esm/VideoSeriesCard.js +1 -1
- package/dist/esm/View.js +42 -85
- package/dist/esm/YoutubeGroup.js +4 -4
- package/dist/esm/getQuery.js +3 -3
- package/dist/esm/getSerializers.js +1 -1
- package/dist/esm/{getTargeting-f8f94212.js → getTargeting-d519d2b6.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-8864f662.js → index-aac8e09e.js} +1 -1
- package/dist/esm/index.js +4 -3
- package/package.json +115 -115
- package/dist/cjs/Pagination-30bb1ca1.js +0 -97
- package/dist/esm/Pagination-194dd03f.js +0 -90
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as _extends$1 } from './extends-19fcf571.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-44a60f2b.js';
|
|
3
3
|
import { _ as _typeof$2 } from './typeof-af09aa11.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';
|
|
@@ -823,7 +823,7 @@ function parseAlgoliaHit(_ref2) {
|
|
|
823
823
|
});
|
|
824
824
|
}
|
|
825
825
|
|
|
826
|
-
var version$1 = '6.
|
|
826
|
+
var version$1 = '6.11.2';
|
|
827
827
|
|
|
828
828
|
var withKeysPropType = function withKeysPropType(keys) {
|
|
829
829
|
return function (props, propName, componentName) {
|
|
@@ -905,10 +905,6 @@ function translatable(defaultTranslations) {
|
|
|
905
905
|
function getIndexId(context) {
|
|
906
906
|
return hasMultipleIndices(context) ? context.multiIndexContext.targetedIndex : context.ais.mainTargetedIndex;
|
|
907
907
|
}
|
|
908
|
-
/**
|
|
909
|
-
* @returns {import('algoliasearch-helper').SearchResults} results
|
|
910
|
-
*/
|
|
911
|
-
|
|
912
908
|
function getResults(searchResults, context) {
|
|
913
909
|
if (searchResults.results) {
|
|
914
910
|
if (searchResults.results.hits) {
|
|
@@ -4773,7 +4769,7 @@ var requestBuilder = {
|
|
|
4773
4769
|
|
|
4774
4770
|
var requestBuilder_1 = requestBuilder;
|
|
4775
4771
|
|
|
4776
|
-
var version = '3.5.
|
|
4772
|
+
var version = '3.5.3';
|
|
4777
4773
|
|
|
4778
4774
|
/**
|
|
4779
4775
|
* Event triggered when a parameter is set or updated
|
|
@@ -6421,87 +6417,6 @@ ConfigureRelatedItems.propTypes = {
|
|
|
6421
6417
|
};
|
|
6422
6418
|
connectConfigureRelatedItems(ConfigureRelatedItems);
|
|
6423
6419
|
|
|
6424
|
-
var connectDynamicWidgets = createConnectorWithContext({
|
|
6425
|
-
displayName: 'AlgoliaDynamicWidgets',
|
|
6426
|
-
defaultProps: {
|
|
6427
|
-
transformItems: function transformItems(items) {
|
|
6428
|
-
return items;
|
|
6429
|
-
}
|
|
6430
|
-
},
|
|
6431
|
-
propTypes: {
|
|
6432
|
-
transformItems: PropTypes.func
|
|
6433
|
-
},
|
|
6434
|
-
getProvidedProps: function getProvidedProps(props, _searchState, searchResults) {
|
|
6435
|
-
var results = getResults(searchResults, {
|
|
6436
|
-
ais: props.contextValue,
|
|
6437
|
-
multiIndexContext: props.indexContextValue
|
|
6438
|
-
});
|
|
6439
|
-
|
|
6440
|
-
if (!results) {
|
|
6441
|
-
return {
|
|
6442
|
-
attributesToRender: []
|
|
6443
|
-
};
|
|
6444
|
-
}
|
|
6445
|
-
|
|
6446
|
-
var facetOrder = results.renderingContent && results.renderingContent.facetOrdering && results.renderingContent.facetOrdering.facets && results.renderingContent.facetOrdering.facets.order || [];
|
|
6447
|
-
return {
|
|
6448
|
-
attributesToRender: props.transformItems(facetOrder, {
|
|
6449
|
-
results: results
|
|
6450
|
-
})
|
|
6451
|
-
};
|
|
6452
|
-
}
|
|
6453
|
-
});
|
|
6454
|
-
|
|
6455
|
-
function getAttribute(component) {
|
|
6456
|
-
if (_typeof(component) !== 'object') {
|
|
6457
|
-
return undefined;
|
|
6458
|
-
}
|
|
6459
|
-
|
|
6460
|
-
if (component.props.attribute) {
|
|
6461
|
-
return component.props.attribute;
|
|
6462
|
-
}
|
|
6463
|
-
|
|
6464
|
-
if (Array.isArray(component.props.attributes)) {
|
|
6465
|
-
return component.props.attributes[0];
|
|
6466
|
-
}
|
|
6467
|
-
|
|
6468
|
-
if (component.props.children) {
|
|
6469
|
-
return getAttribute(React__default.Children.only(component.props.children));
|
|
6470
|
-
}
|
|
6471
|
-
|
|
6472
|
-
return undefined;
|
|
6473
|
-
}
|
|
6474
|
-
|
|
6475
|
-
function DynamicWidgets(_ref) {
|
|
6476
|
-
var children = _ref.children,
|
|
6477
|
-
attributesToRender = _ref.attributesToRender,
|
|
6478
|
-
_ref$fallbackComponen = _ref.fallbackComponent,
|
|
6479
|
-
Fallback = _ref$fallbackComponen === void 0 ? function () {
|
|
6480
|
-
return null;
|
|
6481
|
-
} : _ref$fallbackComponen;
|
|
6482
|
-
var widgets = new Map();
|
|
6483
|
-
React__default.Children.forEach(children, function (child) {
|
|
6484
|
-
var attribute = getAttribute(child);
|
|
6485
|
-
|
|
6486
|
-
if (!attribute) {
|
|
6487
|
-
throw new Error("Could not find \"attribute\" prop for ".concat(getDisplayName(child), "."));
|
|
6488
|
-
}
|
|
6489
|
-
|
|
6490
|
-
widgets.set(attribute, child);
|
|
6491
|
-
}); // on initial render this will be empty, but React InstantSearch keeps
|
|
6492
|
-
// search state for unmounted components in place, so routing works.
|
|
6493
|
-
|
|
6494
|
-
return React__default.createElement(React__default.Fragment, null, attributesToRender.map(function (attribute) {
|
|
6495
|
-
return React__default.createElement(Fragment, {
|
|
6496
|
-
key: attribute
|
|
6497
|
-
}, widgets.get(attribute) || React__default.createElement(Fallback, {
|
|
6498
|
-
attribute: attribute
|
|
6499
|
-
}));
|
|
6500
|
-
}));
|
|
6501
|
-
}
|
|
6502
|
-
|
|
6503
|
-
connectDynamicWidgets(DynamicWidgets);
|
|
6504
|
-
|
|
6505
6420
|
// A context rule must consist only of alphanumeric characters, hyphens, and underscores.
|
|
6506
6421
|
// See https://www.algolia.com/doc/guides/managing-results/refine-results/merchandising-and-promoting/in-depth/implementing-query-rules/#context
|
|
6507
6422
|
function escapeRuleContext(ruleName) {
|
|
@@ -7911,8 +7826,7 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7911
7826
|
showMore: PropTypes.bool,
|
|
7912
7827
|
limit: PropTypes.number,
|
|
7913
7828
|
showMoreLimit: PropTypes.number,
|
|
7914
|
-
transformItems: PropTypes.func
|
|
7915
|
-
facetOrdering: PropTypes.bool
|
|
7829
|
+
transformItems: PropTypes.func
|
|
7916
7830
|
},
|
|
7917
7831
|
defaultProps: {
|
|
7918
7832
|
showMore: false,
|
|
@@ -7920,14 +7834,12 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7920
7834
|
showMoreLimit: 20,
|
|
7921
7835
|
separator: ' > ',
|
|
7922
7836
|
rootPath: null,
|
|
7923
|
-
showParentLevel: true
|
|
7924
|
-
facetOrdering: true
|
|
7837
|
+
showParentLevel: true
|
|
7925
7838
|
},
|
|
7926
7839
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
7927
7840
|
var showMore = props.showMore,
|
|
7928
7841
|
limit = props.limit,
|
|
7929
|
-
showMoreLimit = props.showMoreLimit
|
|
7930
|
-
facetOrdering = props.facetOrdering;
|
|
7842
|
+
showMoreLimit = props.showMoreLimit;
|
|
7931
7843
|
var id = getId$c(props);
|
|
7932
7844
|
var results = getResults(searchResults, {
|
|
7933
7845
|
ais: props.contextValue,
|
|
@@ -7948,8 +7860,7 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7948
7860
|
|
|
7949
7861
|
var itemsLimit = showMore ? showMoreLimit : limit;
|
|
7950
7862
|
var value = results.getFacetValues(id, {
|
|
7951
|
-
sortBy: sortBy$1
|
|
7952
|
-
facetOrdering: facetOrdering
|
|
7863
|
+
sortBy: sortBy$1
|
|
7953
7864
|
});
|
|
7954
7865
|
var items = value.data ? transformValue(value.data, props, searchState, {
|
|
7955
7866
|
ais: props.contextValue,
|
|
@@ -8501,20 +8412,17 @@ var connectMenu = createConnectorWithContext({
|
|
|
8501
8412
|
showMoreLimit: PropTypes.number,
|
|
8502
8413
|
defaultRefinement: PropTypes.string,
|
|
8503
8414
|
transformItems: PropTypes.func,
|
|
8504
|
-
searchable: PropTypes.bool
|
|
8505
|
-
facetOrdering: PropTypes.bool
|
|
8415
|
+
searchable: PropTypes.bool
|
|
8506
8416
|
},
|
|
8507
8417
|
defaultProps: {
|
|
8508
8418
|
showMore: false,
|
|
8509
8419
|
limit: 10,
|
|
8510
|
-
showMoreLimit: 20
|
|
8511
|
-
facetOrdering: true
|
|
8420
|
+
showMoreLimit: 20
|
|
8512
8421
|
},
|
|
8513
8422
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults, meta, searchForFacetValuesResults) {
|
|
8514
8423
|
var attribute = props.attribute,
|
|
8515
8424
|
searchable = props.searchable,
|
|
8516
|
-
indexContextValue = props.indexContextValue
|
|
8517
|
-
facetOrdering = props.facetOrdering;
|
|
8425
|
+
indexContextValue = props.indexContextValue;
|
|
8518
8426
|
var results = getResults(searchResults, {
|
|
8519
8427
|
ais: props.contextValue,
|
|
8520
8428
|
multiIndexContext: props.indexContextValue
|
|
@@ -8560,8 +8468,7 @@ var connectMenu = createConnectorWithContext({
|
|
|
8560
8468
|
});
|
|
8561
8469
|
} else {
|
|
8562
8470
|
items = results.getFacetValues(attribute, {
|
|
8563
|
-
sortBy: searchable ? undefined : defaultSortBy
|
|
8564
|
-
facetOrdering: facetOrdering
|
|
8471
|
+
sortBy: searchable ? undefined : defaultSortBy
|
|
8565
8472
|
}).map(function (v) {
|
|
8566
8473
|
return {
|
|
8567
8474
|
label: v.name,
|
|
@@ -9418,21 +9325,18 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9418
9325
|
showMoreLimit: PropTypes.number,
|
|
9419
9326
|
defaultRefinement: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number])),
|
|
9420
9327
|
searchable: PropTypes.bool,
|
|
9421
|
-
transformItems: PropTypes.func
|
|
9422
|
-
facetOrdering: PropTypes.bool
|
|
9328
|
+
transformItems: PropTypes.func
|
|
9423
9329
|
},
|
|
9424
9330
|
defaultProps: {
|
|
9425
9331
|
operator: 'or',
|
|
9426
9332
|
showMore: false,
|
|
9427
9333
|
limit: 10,
|
|
9428
|
-
showMoreLimit: 20
|
|
9429
|
-
facetOrdering: true
|
|
9334
|
+
showMoreLimit: 20
|
|
9430
9335
|
},
|
|
9431
9336
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults, metadata, searchForFacetValuesResults) {
|
|
9432
9337
|
var attribute = props.attribute,
|
|
9433
9338
|
searchable = props.searchable,
|
|
9434
|
-
indexContextValue = props.indexContextValue
|
|
9435
|
-
facetOrdering = props.facetOrdering;
|
|
9339
|
+
indexContextValue = props.indexContextValue;
|
|
9436
9340
|
var results = getResults(searchResults, {
|
|
9437
9341
|
ais: props.contextValue,
|
|
9438
9342
|
multiIndexContext: props.indexContextValue
|
|
@@ -9473,8 +9377,7 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9473
9377
|
isRefined: v.isRefined
|
|
9474
9378
|
};
|
|
9475
9379
|
}) : results.getFacetValues(attribute, {
|
|
9476
|
-
sortBy: sortBy
|
|
9477
|
-
facetOrdering: facetOrdering
|
|
9380
|
+
sortBy: sortBy
|
|
9478
9381
|
}).map(function (v) {
|
|
9479
9382
|
return {
|
|
9480
9383
|
label: v.name,
|
|
@@ -10974,7 +10877,6 @@ function (_Component) {
|
|
|
10974
10877
|
|
|
10975
10878
|
var _this$props4 = this.props,
|
|
10976
10879
|
className = _this$props4.className,
|
|
10977
|
-
inputId = _this$props4.inputId,
|
|
10978
10880
|
translate = _this$props4.translate,
|
|
10979
10881
|
autoFocus = _this$props4.autoFocus,
|
|
10980
10882
|
loadingIndicator = _this$props4.loadingIndicator,
|
|
@@ -11002,7 +10904,6 @@ function (_Component) {
|
|
|
11002
10904
|
role: "search"
|
|
11003
10905
|
}, React__default.createElement("input", _extends({
|
|
11004
10906
|
ref: this.onInputMount,
|
|
11005
|
-
id: inputId,
|
|
11006
10907
|
type: "search",
|
|
11007
10908
|
placeholder: translate('placeholder'),
|
|
11008
10909
|
autoFocus: autoFocus,
|
|
@@ -11054,8 +10955,7 @@ _defineProperty(SearchBox$1, "propTypes", {
|
|
|
11054
10955
|
showLoadingIndicator: PropTypes.bool,
|
|
11055
10956
|
inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.exact({
|
|
11056
10957
|
current: PropTypes.object
|
|
11057
|
-
})])
|
|
11058
|
-
inputId: PropTypes.string
|
|
10958
|
+
})])
|
|
11059
10959
|
});
|
|
11060
10960
|
|
|
11061
10961
|
_defineProperty(SearchBox$1, "defaultProps", {
|
|
@@ -11694,11 +11594,9 @@ function (_Component) {
|
|
|
11694
11594
|
value: function render() {
|
|
11695
11595
|
var _this$props = this.props,
|
|
11696
11596
|
cx = _this$props.cx,
|
|
11697
|
-
id = _this$props.id,
|
|
11698
11597
|
items = _this$props.items,
|
|
11699
11598
|
selectedItem = _this$props.selectedItem;
|
|
11700
11599
|
return React__default.createElement("select", {
|
|
11701
|
-
id: id,
|
|
11702
11600
|
className: cx('select'),
|
|
11703
11601
|
value: selectedItem,
|
|
11704
11602
|
onChange: this.onChange
|
|
@@ -11718,7 +11616,6 @@ function (_Component) {
|
|
|
11718
11616
|
|
|
11719
11617
|
_defineProperty(Select, "propTypes", {
|
|
11720
11618
|
cx: PropTypes.func.isRequired,
|
|
11721
|
-
id: PropTypes.string,
|
|
11722
11619
|
onSelect: PropTypes.func.isRequired,
|
|
11723
11620
|
items: PropTypes.arrayOf(PropTypes.shape({
|
|
11724
11621
|
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
|
|
@@ -11746,7 +11643,6 @@ function (_Component) {
|
|
|
11746
11643
|
key: "render",
|
|
11747
11644
|
value: function render() {
|
|
11748
11645
|
var _this$props = this.props,
|
|
11749
|
-
id = _this$props.id,
|
|
11750
11646
|
items = _this$props.items,
|
|
11751
11647
|
currentRefinement = _this$props.currentRefinement,
|
|
11752
11648
|
refine = _this$props.refine,
|
|
@@ -11754,7 +11650,6 @@ function (_Component) {
|
|
|
11754
11650
|
return React__default.createElement("div", {
|
|
11755
11651
|
className: classnames(cx$h(''), className)
|
|
11756
11652
|
}, React__default.createElement(Select, {
|
|
11757
|
-
id: id,
|
|
11758
11653
|
onSelect: refine,
|
|
11759
11654
|
selectedItem: currentRefinement,
|
|
11760
11655
|
items: items,
|
|
@@ -11767,7 +11662,6 @@ function (_Component) {
|
|
|
11767
11662
|
}(Component);
|
|
11768
11663
|
|
|
11769
11664
|
_defineProperty(HitsPerPage, "propTypes", {
|
|
11770
|
-
id: PropTypes.string,
|
|
11771
11665
|
items: PropTypes.arrayOf(PropTypes.shape({
|
|
11772
11666
|
value: PropTypes.number.isRequired,
|
|
11773
11667
|
label: PropTypes.string
|
|
@@ -11790,7 +11684,6 @@ _defineProperty(HitsPerPage, "defaultProps", {
|
|
|
11790
11684
|
*
|
|
11791
11685
|
* @name HitsPerPage
|
|
11792
11686
|
* @kind widget
|
|
11793
|
-
* @propType {string} id - The id of the select input
|
|
11794
11687
|
* @propType {{value: number, label: string}[]} items - List of available options.
|
|
11795
11688
|
* @propType {number} defaultRefinement - The number of items selected by default
|
|
11796
11689
|
* @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.
|
|
@@ -12159,7 +12052,6 @@ function (_Component) {
|
|
|
12159
12052
|
key: "render",
|
|
12160
12053
|
value: function render() {
|
|
12161
12054
|
var _this$props = this.props,
|
|
12162
|
-
id = _this$props.id,
|
|
12163
12055
|
items = _this$props.items,
|
|
12164
12056
|
canRefine = _this$props.canRefine,
|
|
12165
12057
|
translate = _this$props.translate,
|
|
@@ -12167,7 +12059,6 @@ function (_Component) {
|
|
|
12167
12059
|
return React__default.createElement("div", {
|
|
12168
12060
|
className: classnames(cx$e('', !canRefine && '-noRefinement'), className)
|
|
12169
12061
|
}, React__default.createElement("select", {
|
|
12170
|
-
id: id,
|
|
12171
12062
|
value: this.selectedValue,
|
|
12172
12063
|
onChange: this.handleSelectChange,
|
|
12173
12064
|
className: cx$e('select')
|
|
@@ -12200,7 +12091,6 @@ function (_Component) {
|
|
|
12200
12091
|
}(Component);
|
|
12201
12092
|
|
|
12202
12093
|
_defineProperty(MenuSelect, "propTypes", {
|
|
12203
|
-
id: PropTypes.string,
|
|
12204
12094
|
items: PropTypes.arrayOf(PropTypes.shape({
|
|
12205
12095
|
label: PropTypes.string.isRequired,
|
|
12206
12096
|
value: PropTypes.string.isRequired,
|
|
@@ -12227,7 +12117,6 @@ var MenuSelect$1 = translatable({
|
|
|
12227
12117
|
* @kind widget
|
|
12228
12118
|
* @requirements The attribute passed to the `attribute` prop must be present in "attributes for faceting"
|
|
12229
12119
|
* on the Algolia dashboard or configured as `attributesForFaceting` via a set settings call to the Algolia API.
|
|
12230
|
-
* @propType {string} id - the id of the select input
|
|
12231
12120
|
* @propType {string} attribute - the name of the attribute in the record
|
|
12232
12121
|
* @propType {string} [defaultRefinement] - the value of the item selected by default
|
|
12233
12122
|
* @propType {number} [limit=10] - the minimum number of diplayed items
|
|
@@ -13559,7 +13448,6 @@ connectScrollTo(ScrollTo);
|
|
|
13559
13448
|
* @propType {node} [reset] - Change the apparence of the default reset button (cross).
|
|
13560
13449
|
* @propType {node} [loadingIndicator] - Change the apparence of the default loading indicator (spinning circle).
|
|
13561
13450
|
* @propType {string} [defaultRefinement] - Provide default refinement value when component is mounted.
|
|
13562
|
-
* @propType {string} [inputId] - The id of the search input
|
|
13563
13451
|
* @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.
|
|
13564
13452
|
* @themeKey ais-SearchBox - the root div of the widget
|
|
13565
13453
|
* @themeKey ais-SearchBox-form - the wrapping form
|
|
@@ -13710,7 +13598,6 @@ function (_Component) {
|
|
|
13710
13598
|
key: "render",
|
|
13711
13599
|
value: function render() {
|
|
13712
13600
|
var _this$props = this.props,
|
|
13713
|
-
id = _this$props.id,
|
|
13714
13601
|
items = _this$props.items,
|
|
13715
13602
|
currentRefinement = _this$props.currentRefinement,
|
|
13716
13603
|
refine = _this$props.refine,
|
|
@@ -13718,7 +13605,6 @@ function (_Component) {
|
|
|
13718
13605
|
return React__default.createElement("div", {
|
|
13719
13606
|
className: classnames(cx$4(''), className)
|
|
13720
13607
|
}, React__default.createElement(Select, {
|
|
13721
|
-
id: id,
|
|
13722
13608
|
cx: cx$4,
|
|
13723
13609
|
items: items,
|
|
13724
13610
|
selectedItem: currentRefinement,
|
|
@@ -13731,7 +13617,6 @@ function (_Component) {
|
|
|
13731
13617
|
}(Component);
|
|
13732
13618
|
|
|
13733
13619
|
_defineProperty(SortBy, "propTypes", {
|
|
13734
|
-
id: PropTypes.string,
|
|
13735
13620
|
items: PropTypes.arrayOf(PropTypes.shape({
|
|
13736
13621
|
label: PropTypes.string,
|
|
13737
13622
|
value: PropTypes.string.isRequired
|
|
@@ -13751,7 +13636,6 @@ _defineProperty(SortBy, "defaultProps", {
|
|
|
13751
13636
|
* @requirements Algolia handles sorting by creating replica indices. [Read more about sorting](https://www.algolia.com/doc/guides/relevance/sorting/) on
|
|
13752
13637
|
* the Algolia website.
|
|
13753
13638
|
* @kind widget
|
|
13754
|
-
* @propType {string} id - The id of the select input
|
|
13755
13639
|
* @propType {{value: string, label: string}[]} items - The list of indexes to search in.
|
|
13756
13640
|
* @propType {string} defaultRefinement - The default selected index.
|
|
13757
13641
|
* @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.
|
|
@@ -3,7 +3,7 @@ import { _ as _slicedToArray } from './slicedToArray-a5ed2ac8.js';
|
|
|
3
3
|
import { _ as _extends } from './extends-19fcf571.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-aac8e09e.js';
|
|
7
7
|
import ArticleSeriesListing from './ArticleSeriesListing.js';
|
|
8
8
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
9
9
|
import './core.get-iterator-method-2623c4c7.js';
|
package/dist/esm/AuthWrapper.js
CHANGED
|
@@ -1761,7 +1761,7 @@ client$1.Provider;
|
|
|
1761
1761
|
|
|
1762
1762
|
var client = client$1.default;
|
|
1763
1763
|
|
|
1764
|
-
var css = ".AuthWrapper-module_loginBox__3l-BE {\
|
|
1764
|
+
var css = ".AuthWrapper-module_loginBox__3l-BE {\n margin-bottom: 2rem;\n width: 350px;\n max-width: 90vw;\n margin-left: auto;\n margin-right: auto;\n /* box-shadow: 2px 5px 12px rgba(0, 0, 0, 0.15); */\n background: #fff;\n z-index: 1;\n}\n.AuthWrapper-module_loginBox_title__12rGD {\n margin-bottom: 2rem;\n text-align: center;\n}\n.AuthWrapper-module_bar__1dafn {\n background: #eee;\n margin-left: unset;\n margin-right: unset;\n}\n.AuthWrapper-module_bar__1dafn:nth-child(1) {\n float: left;\n border-right: 1rem solid #fff;\n background: rgb(245, 245, 245);\n height: 10rem;\n width: 25%;\n margin-left: auto;\n margin-right: auto;\n margin-bottom: 2rem;\n}\n.AuthWrapper-module_bar__1dafn:nth-child(2n) {\n width: 97%;\n height: 1.5rem;\n margin-bottom: 0.25rem;\n}\n.AuthWrapper-module_bar__1dafn.AuthWrapper-module_bar__1dafn:nth-child(3n) {\n width: 96%;\n height: 1.5rem;\n margin-bottom: 1.5rem;\n}\n.AuthWrapper-module_bar__1dafn.AuthWrapper-module_bar__1dafn:nth-child(4n) {\n width: 72%;\n height: 1.5rem;\n margin-bottom: 0.25rem;\n}\n.AuthWrapper-module_bar__1dafn.AuthWrapper-module_bar__1dafn:nth-child(5n) {\n width: 88%;\n height: 1.5rem;\n margin-bottom: 0.25rem;\n}\n\n.AuthWrapper-module_iframe__2wDJW {\n margin-top: -3rem;\n border: none;\n width: 100%;\n height: 1900px;\n}";
|
|
1765
1765
|
var styles = { "loginBox": "AuthWrapper-module_loginBox__3l-BE", "loginBox_title": "AuthWrapper-module_loginBox_title__12rGD", "bar": "AuthWrapper-module_bar__1dafn", "iframe": "AuthWrapper-module_iframe__2wDJW" };
|
|
1766
1766
|
styleInject(css);
|
|
1767
1767
|
|
|
@@ -7,21 +7,21 @@ import './web.dom.iterable-357ab671.js';
|
|
|
7
7
|
import './core.get-iterator-method-2623c4c7.js';
|
|
8
8
|
import './index-3f5c03b2.js';
|
|
9
9
|
|
|
10
|
-
/*
|
|
11
|
-
Example usage - targetedonc.com/latest-conference
|
|
12
|
-
const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
|
|
13
|
-
...,
|
|
14
|
-
title,
|
|
15
|
-
summary,
|
|
16
|
-
thumbnail,
|
|
17
|
-
url,
|
|
18
|
-
published,
|
|
19
|
-
documentGroup->,
|
|
20
|
-
contentCategory->,
|
|
21
|
-
'pageNumber': ${currentPage}
|
|
22
|
-
}`
|
|
23
|
-
|
|
24
|
-
const posts = await client.fetch(query, params)
|
|
10
|
+
/*
|
|
11
|
+
Example usage - targetedonc.com/latest-conference
|
|
12
|
+
const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
|
|
13
|
+
...,
|
|
14
|
+
title,
|
|
15
|
+
summary,
|
|
16
|
+
thumbnail,
|
|
17
|
+
url,
|
|
18
|
+
published,
|
|
19
|
+
documentGroup->,
|
|
20
|
+
contentCategory->,
|
|
21
|
+
'pageNumber': ${currentPage}
|
|
22
|
+
}`
|
|
23
|
+
|
|
24
|
+
const posts = await client.fetch(query, params)
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
27
|
var ConferenceArticleCard = function ConferenceArticleCard(props) {
|
|
@@ -15,7 +15,7 @@ import { L as LazyLoad } from './index-755f2cc2.js';
|
|
|
15
15
|
import { m as main_43 } from './main-1894c974.js';
|
|
16
16
|
import { c as clean_html_1 } from './entities-6d9154b4.js';
|
|
17
17
|
import { A as ADInfeed } from './ADInfeed-c977de2e.js';
|
|
18
|
-
import { P as Pagination } from './Pagination-
|
|
18
|
+
import { P as Pagination } from './Pagination-6f8d5327.js';
|
|
19
19
|
import Spinner from 'react-bootstrap/Spinner';
|
|
20
20
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
21
21
|
import './core.get-iterator-method-2623c4c7.js';
|
|
@@ -40,6 +40,7 @@ import './toNumber-5aeba6e7.js';
|
|
|
40
40
|
import './Beam.js';
|
|
41
41
|
import './stringify-e20934cc.js';
|
|
42
42
|
import './Segment.js';
|
|
43
|
+
import 'react-paginate';
|
|
43
44
|
import 'react-bootstrap/Button';
|
|
44
45
|
import './index.esm-1bd8a0a8.js';
|
|
45
46
|
import './iconBase-ccc56b97.js';
|
package/dist/esm/DeckContent.js
CHANGED
|
@@ -183,14 +183,14 @@ var DeckContent = function (_React$Component) {
|
|
|
183
183
|
var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
|
|
184
184
|
|
|
185
185
|
// please leave this for later debug purpose : Yong Jun.
|
|
186
|
-
/* console.log('page change reported', {
|
|
187
|
-
currentPage: currentPage,
|
|
188
|
-
pageNumber: pageNumber,
|
|
189
|
-
pathname: pathname,
|
|
190
|
-
path: path,
|
|
191
|
-
newPath: newPath,
|
|
192
|
-
firstPage: pageNumber === 1,
|
|
193
|
-
queryString: queryString
|
|
186
|
+
/* console.log('page change reported', {
|
|
187
|
+
currentPage: currentPage,
|
|
188
|
+
pageNumber: pageNumber,
|
|
189
|
+
pathname: pathname,
|
|
190
|
+
path: path,
|
|
191
|
+
newPath: newPath,
|
|
192
|
+
firstPage: pageNumber === 1,
|
|
193
|
+
queryString: queryString
|
|
194
194
|
}) */
|
|
195
195
|
|
|
196
196
|
if (pageview) {
|
|
@@ -16,7 +16,7 @@ import { g as get_1 } from './get-3c308da4.js';
|
|
|
16
16
|
import { m as main_43 } from './main-1894c974.js';
|
|
17
17
|
import urlFor from './urlFor.js';
|
|
18
18
|
import { c as clean_html_1 } from './entities-6d9154b4.js';
|
|
19
|
-
import { P as Pagination } from './Pagination-
|
|
19
|
+
import { P as Pagination } from './Pagination-6f8d5327.js';
|
|
20
20
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
21
21
|
import './core.get-iterator-method-2623c4c7.js';
|
|
22
22
|
import './web.dom.iterable-357ab671.js';
|
|
@@ -35,6 +35,7 @@ import './isSymbol-a7e9aafe.js';
|
|
|
35
35
|
import './eq-bdcbf886.js';
|
|
36
36
|
import './slicedToArray-a5ed2ac8.js';
|
|
37
37
|
import './index-3f5c03b2.js';
|
|
38
|
+
import 'react-paginate';
|
|
38
39
|
import 'react-bootstrap/Button';
|
|
39
40
|
import './index.esm-1bd8a0a8.js';
|
|
40
41
|
import './iconBase-ccc56b97.js';
|
package/dist/esm/EventsDeck.js
CHANGED
|
@@ -246,23 +246,23 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
246
246
|
if (cventAccessToken && cventAccessToken !== 'undefined') {
|
|
247
247
|
setAccessToken(cventAccessToken);
|
|
248
248
|
} else {
|
|
249
|
-
/*const encodedData = window.btoa(clientId + ':' + clientSecret)
|
|
250
|
-
//const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
|
|
251
|
-
const url = `https://api-platform.cvent.com/ea/oauth2/token`
|
|
252
|
-
fetch(url, {
|
|
253
|
-
headers: {
|
|
254
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
255
|
-
Authorization: `Basic ${encodedData}`
|
|
256
|
-
},
|
|
257
|
-
method: 'POST',
|
|
258
|
-
body: `grant_type=client_credentials&client_id=${clientId}`
|
|
259
|
-
})
|
|
260
|
-
.then((response) => response.json())
|
|
261
|
-
.then((json) => {
|
|
262
|
-
const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
|
|
263
|
-
Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
|
|
264
|
-
setAccessToken(json.access_token)
|
|
265
|
-
})
|
|
249
|
+
/*const encodedData = window.btoa(clientId + ':' + clientSecret)
|
|
250
|
+
//const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
|
|
251
|
+
const url = `https://api-platform.cvent.com/ea/oauth2/token`
|
|
252
|
+
fetch(url, {
|
|
253
|
+
headers: {
|
|
254
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
|
255
|
+
Authorization: `Basic ${encodedData}`
|
|
256
|
+
},
|
|
257
|
+
method: 'POST',
|
|
258
|
+
body: `grant_type=client_credentials&client_id=${clientId}`
|
|
259
|
+
})
|
|
260
|
+
.then((response) => response.json())
|
|
261
|
+
.then((json) => {
|
|
262
|
+
const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
|
|
263
|
+
Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
|
|
264
|
+
setAccessToken(json.access_token)
|
|
265
|
+
})
|
|
266
266
|
.catch((e) => console.log(e))*/
|
|
267
267
|
// hello
|
|
268
268
|
var url = 'https://beam.mjhlifesciences.com/api/cvent/token';
|
|
@@ -2,7 +2,7 @@ import { _ as _extends } from './extends-19fcf571.js';
|
|
|
2
2
|
import { _ as _slicedToArray } from './slicedToArray-a5ed2ac8.js';
|
|
3
3
|
import React__default, { useState, useEffect } from 'react';
|
|
4
4
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
5
|
-
import { g as getSerializers } from './index-
|
|
5
|
+
import { g as getSerializers } from './index-aac8e09e.js';
|
|
6
6
|
import { m as momentTimezone } from './index-79cfd25c.js';
|
|
7
7
|
import { useRouter } from 'next/router';
|
|
8
8
|
import Button from 'react-bootstrap/Button';
|
|
@@ -22,7 +22,7 @@ import urlFor from './urlFor.js';
|
|
|
22
22
|
import { m as main_43 } from './main-1894c974.js';
|
|
23
23
|
import { A as AuthorComponent } from './AuthorComponent-0ee8667f.js';
|
|
24
24
|
import { P as PublicationFeature } from './PublicationFeature-c65b005a.js';
|
|
25
|
-
import { P as Pagination } from './Pagination-
|
|
25
|
+
import { P as Pagination } from './Pagination-6f8d5327.js';
|
|
26
26
|
import Spinner from 'react-bootstrap/Spinner';
|
|
27
27
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
28
28
|
import './core.get-iterator-method-2623c4c7.js';
|
|
@@ -48,6 +48,7 @@ import './Segment.js';
|
|
|
48
48
|
import './eq-bdcbf886.js';
|
|
49
49
|
import './index-3f5c03b2.js';
|
|
50
50
|
import 'react-bootstrap/Button';
|
|
51
|
+
import 'react-paginate';
|
|
51
52
|
import './index.esm-1bd8a0a8.js';
|
|
52
53
|
import './iconBase-ccc56b97.js';
|
|
53
54
|
|
package/dist/esm/HamMagazine.js
CHANGED
|
@@ -28,15 +28,15 @@ import './_library-528f1934.js';
|
|
|
28
28
|
import './_iter-detect-c9bd22b3.js';
|
|
29
29
|
|
|
30
30
|
var HamMagazine = function HamMagazine(props) {
|
|
31
|
-
/*
|
|
32
|
-
Example Nav with acceptable props
|
|
33
|
-
<MagazineNav
|
|
34
|
-
showLogin
|
|
35
|
-
logo={props.settings.logo}
|
|
36
|
-
dataObject={props.cache.mainNavCache}
|
|
37
|
-
website={website}
|
|
38
|
-
subNav={props.cache.subNavCache}
|
|
39
|
-
/>
|
|
31
|
+
/*
|
|
32
|
+
Example Nav with acceptable props
|
|
33
|
+
<MagazineNav
|
|
34
|
+
showLogin
|
|
35
|
+
logo={props.settings.logo}
|
|
36
|
+
dataObject={props.cache.mainNavCache}
|
|
37
|
+
website={website}
|
|
38
|
+
subNav={props.cache.subNavCache}
|
|
39
|
+
/>
|
|
40
40
|
*/
|
|
41
41
|
|
|
42
42
|
// Setting 'socialIconVariant' as 'light' as default to make the social icons and search icon black
|
|
@@ -4,7 +4,7 @@ import Modal from 'react-bootstrap/Modal';
|
|
|
4
4
|
import Button from 'react-bootstrap/Button';
|
|
5
5
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
6
6
|
|
|
7
|
-
var css = ".HealthcareProfessionalModal-module_container__HUaSr {\
|
|
7
|
+
var css = ".HealthcareProfessionalModal-module_container__HUaSr {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n background: rgba(0,0,0,.1);\n z-index: 9999999999;\n display: grid;\n place-items: center;\n}\n.HealthcareProfessionalModal-module_modal__31CzM{\n background: #fff;\n padding: 1.5rem;\n text-align: center;\n position: relative;\n width: 400px;\n max-width: 90vw;\n\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\n animation: HealthcareProfessionalModal-module_show__3soMo .5s forwards;\n transform: translateY(0);\n opacity:1;\n}\n.HealthcareProfessionalModal-module_header__3uIr7 {\n background-color: #0d335a;\nposition: absolute;\n padding: 1rem;\n width: 80%;\ntop: 0;\nleft: 50%;\ntransform: translateX(-50%) translateY(-50%) ;\n border-radius: 15px;\n}\n.HealthcareProfessionalModal-module_body__3bnyN {\n color: #202020;\n}\n.HealthcareProfessionalModal-module_body__3bnyN span{\n font-weight: bold;\n}\n.HealthcareProfessionalModal-module_body__3bnyN .HealthcareProfessionalModal-module_title__27l5n {\n font-size: 24px;\n margin-bottom: 1rem;\n}\n.HealthcareProfessionalModal-module_controls__1wXJl button {\n margin: 1.5rem 1rem;\n border-radius: 5px;\n font-size: 1rem;\n}\n@keyframes HealthcareProfessionalModal-module_show__3soMo {\n from{\n transform: translateY(25px);\n opacity: 0;\n }\n to {\n transform: translateY(0);\n opacity:1;\n }\n}";
|
|
8
8
|
var styles = { "container": "HealthcareProfessionalModal-module_container__HUaSr", "modal": "HealthcareProfessionalModal-module_modal__31CzM", "show": "HealthcareProfessionalModal-module_show__3soMo", "header": "HealthcareProfessionalModal-module_header__3uIr7", "body": "HealthcareProfessionalModal-module_body__3bnyN", "title": "HealthcareProfessionalModal-module_title__27l5n", "controls": "HealthcareProfessionalModal-module_controls__1wXJl" };
|
|
9
9
|
styleInject(css);
|
|
10
10
|
|
|
@@ -3,7 +3,7 @@ import React__default from 'react';
|
|
|
3
3
|
import ArticleCarousel from './ArticleCarousel.js';
|
|
4
4
|
import { I as IoIosArrowForward } from './index.esm-eb1e8e80.js';
|
|
5
5
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
6
|
-
import { g as getSerializers } from './index-
|
|
6
|
+
import { g as getSerializers } from './index-aac8e09e.js';
|
|
7
7
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
8
8
|
import './assign-b681604f.js';
|
|
9
9
|
import './core.get-iterator-method-2623c4c7.js';
|