@mjhls/mjh-framework 1.0.972-masterdeck-pagination-v1 → 1.0.972
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/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/GridContentPaginated.js +2 -1
- package/dist/cjs/HamMagazine.js +9 -9
- package/dist/cjs/HealthCareProfessionalModal.js +1 -1
- package/dist/cjs/IssueLanding.js +29 -29
- 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-b81ba298.js → MediaSeriesCard-5bf9813e.js} +1 -1
- package/dist/cjs/MediaSeriesLanding.js +6 -6
- package/dist/cjs/MediaSeriesLandingPaginated.js +8 -7
- 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/PartnerDetailListingPaginated.js +2 -1
- 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/VideoSeriesCard.js +1 -1
- package/dist/cjs/View.js +8 -12
- package/dist/cjs/YoutubeGroup.js +4 -4
- package/dist/cjs/{getTargeting-dab97fe1.js → getTargeting-3c5754ac.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/index.js +3 -2
- package/dist/esm/AlgoliaSearch.js +16 -132
- 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/GridContentPaginated.js +2 -1
- package/dist/esm/HamMagazine.js +9 -9
- package/dist/esm/HealthCareProfessionalModal.js +1 -1
- package/dist/esm/IssueLanding.js +29 -29
- 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-e3b52a0f.js → MediaSeriesCard-305a9cb3.js} +1 -1
- package/dist/esm/MediaSeriesLanding.js +6 -6
- package/dist/esm/MediaSeriesLandingPaginated.js +8 -7
- 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/PartnerDetailListingPaginated.js +2 -1
- 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-e495571f.js → SeriesSlider-f771e20d.js} +4 -4
- package/dist/esm/SideFooter.js +2 -2
- package/dist/esm/VideoSeriesCard.js +1 -1
- package/dist/esm/View.js +7 -12
- package/dist/esm/YoutubeGroup.js +4 -4
- package/dist/esm/{getTargeting-04d979c9.js → getTargeting-42f9b439.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/index.js +3 -2
- package/package.json +115 -115
- package/dist/cjs/Pagination-2a3d0103.js +0 -97
- package/dist/esm/Pagination-dc30727b.js +0 -90
|
@@ -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';
|
|
@@ -822,7 +822,7 @@ function parseAlgoliaHit(_ref2) {
|
|
|
822
822
|
});
|
|
823
823
|
}
|
|
824
824
|
|
|
825
|
-
var version$1 = '6.
|
|
825
|
+
var version$1 = '6.11.2';
|
|
826
826
|
|
|
827
827
|
var withKeysPropType = function withKeysPropType(keys) {
|
|
828
828
|
return function (props, propName, componentName) {
|
|
@@ -904,10 +904,6 @@ function translatable(defaultTranslations) {
|
|
|
904
904
|
function getIndexId(context) {
|
|
905
905
|
return hasMultipleIndices(context) ? context.multiIndexContext.targetedIndex : context.ais.mainTargetedIndex;
|
|
906
906
|
}
|
|
907
|
-
/**
|
|
908
|
-
* @returns {import('algoliasearch-helper').SearchResults} results
|
|
909
|
-
*/
|
|
910
|
-
|
|
911
907
|
function getResults(searchResults, context) {
|
|
912
908
|
if (searchResults.results) {
|
|
913
909
|
if (searchResults.results.hits) {
|
|
@@ -4772,7 +4768,7 @@ var requestBuilder = {
|
|
|
4772
4768
|
|
|
4773
4769
|
var requestBuilder_1 = requestBuilder;
|
|
4774
4770
|
|
|
4775
|
-
var version = '3.5.
|
|
4771
|
+
var version = '3.5.3';
|
|
4776
4772
|
|
|
4777
4773
|
/**
|
|
4778
4774
|
* Event triggered when a parameter is set or updated
|
|
@@ -6420,87 +6416,6 @@ ConfigureRelatedItems.propTypes = {
|
|
|
6420
6416
|
};
|
|
6421
6417
|
connectConfigureRelatedItems(ConfigureRelatedItems);
|
|
6422
6418
|
|
|
6423
|
-
var connectDynamicWidgets = createConnectorWithContext({
|
|
6424
|
-
displayName: 'AlgoliaDynamicWidgets',
|
|
6425
|
-
defaultProps: {
|
|
6426
|
-
transformItems: function transformItems(items) {
|
|
6427
|
-
return items;
|
|
6428
|
-
}
|
|
6429
|
-
},
|
|
6430
|
-
propTypes: {
|
|
6431
|
-
transformItems: PropTypes.func
|
|
6432
|
-
},
|
|
6433
|
-
getProvidedProps: function getProvidedProps(props, _searchState, searchResults) {
|
|
6434
|
-
var results = getResults(searchResults, {
|
|
6435
|
-
ais: props.contextValue,
|
|
6436
|
-
multiIndexContext: props.indexContextValue
|
|
6437
|
-
});
|
|
6438
|
-
|
|
6439
|
-
if (!results) {
|
|
6440
|
-
return {
|
|
6441
|
-
attributesToRender: []
|
|
6442
|
-
};
|
|
6443
|
-
}
|
|
6444
|
-
|
|
6445
|
-
var facetOrder = results.renderingContent && results.renderingContent.facetOrdering && results.renderingContent.facetOrdering.facets && results.renderingContent.facetOrdering.facets.order || [];
|
|
6446
|
-
return {
|
|
6447
|
-
attributesToRender: props.transformItems(facetOrder, {
|
|
6448
|
-
results: results
|
|
6449
|
-
})
|
|
6450
|
-
};
|
|
6451
|
-
}
|
|
6452
|
-
});
|
|
6453
|
-
|
|
6454
|
-
function getAttribute(component) {
|
|
6455
|
-
if (_typeof(component) !== 'object') {
|
|
6456
|
-
return undefined;
|
|
6457
|
-
}
|
|
6458
|
-
|
|
6459
|
-
if (component.props.attribute) {
|
|
6460
|
-
return component.props.attribute;
|
|
6461
|
-
}
|
|
6462
|
-
|
|
6463
|
-
if (Array.isArray(component.props.attributes)) {
|
|
6464
|
-
return component.props.attributes[0];
|
|
6465
|
-
}
|
|
6466
|
-
|
|
6467
|
-
if (component.props.children) {
|
|
6468
|
-
return getAttribute(React__default.Children.only(component.props.children));
|
|
6469
|
-
}
|
|
6470
|
-
|
|
6471
|
-
return undefined;
|
|
6472
|
-
}
|
|
6473
|
-
|
|
6474
|
-
function DynamicWidgets(_ref) {
|
|
6475
|
-
var children = _ref.children,
|
|
6476
|
-
attributesToRender = _ref.attributesToRender,
|
|
6477
|
-
_ref$fallbackComponen = _ref.fallbackComponent,
|
|
6478
|
-
Fallback = _ref$fallbackComponen === void 0 ? function () {
|
|
6479
|
-
return null;
|
|
6480
|
-
} : _ref$fallbackComponen;
|
|
6481
|
-
var widgets = new Map();
|
|
6482
|
-
React__default.Children.forEach(children, function (child) {
|
|
6483
|
-
var attribute = getAttribute(child);
|
|
6484
|
-
|
|
6485
|
-
if (!attribute) {
|
|
6486
|
-
throw new Error("Could not find \"attribute\" prop for ".concat(getDisplayName(child), "."));
|
|
6487
|
-
}
|
|
6488
|
-
|
|
6489
|
-
widgets.set(attribute, child);
|
|
6490
|
-
}); // on initial render this will be empty, but React InstantSearch keeps
|
|
6491
|
-
// search state for unmounted components in place, so routing works.
|
|
6492
|
-
|
|
6493
|
-
return React__default.createElement(React__default.Fragment, null, attributesToRender.map(function (attribute) {
|
|
6494
|
-
return React__default.createElement(Fragment, {
|
|
6495
|
-
key: attribute
|
|
6496
|
-
}, widgets.get(attribute) || React__default.createElement(Fallback, {
|
|
6497
|
-
attribute: attribute
|
|
6498
|
-
}));
|
|
6499
|
-
}));
|
|
6500
|
-
}
|
|
6501
|
-
|
|
6502
|
-
connectDynamicWidgets(DynamicWidgets);
|
|
6503
|
-
|
|
6504
6419
|
// A context rule must consist only of alphanumeric characters, hyphens, and underscores.
|
|
6505
6420
|
// See https://www.algolia.com/doc/guides/managing-results/refine-results/merchandising-and-promoting/in-depth/implementing-query-rules/#context
|
|
6506
6421
|
function escapeRuleContext(ruleName) {
|
|
@@ -7910,8 +7825,7 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7910
7825
|
showMore: PropTypes.bool,
|
|
7911
7826
|
limit: PropTypes.number,
|
|
7912
7827
|
showMoreLimit: PropTypes.number,
|
|
7913
|
-
transformItems: PropTypes.func
|
|
7914
|
-
facetOrdering: PropTypes.bool
|
|
7828
|
+
transformItems: PropTypes.func
|
|
7915
7829
|
},
|
|
7916
7830
|
defaultProps: {
|
|
7917
7831
|
showMore: false,
|
|
@@ -7919,14 +7833,12 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7919
7833
|
showMoreLimit: 20,
|
|
7920
7834
|
separator: ' > ',
|
|
7921
7835
|
rootPath: null,
|
|
7922
|
-
showParentLevel: true
|
|
7923
|
-
facetOrdering: true
|
|
7836
|
+
showParentLevel: true
|
|
7924
7837
|
},
|
|
7925
7838
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
7926
7839
|
var showMore = props.showMore,
|
|
7927
7840
|
limit = props.limit,
|
|
7928
|
-
showMoreLimit = props.showMoreLimit
|
|
7929
|
-
facetOrdering = props.facetOrdering;
|
|
7841
|
+
showMoreLimit = props.showMoreLimit;
|
|
7930
7842
|
var id = getId$c(props);
|
|
7931
7843
|
var results = getResults(searchResults, {
|
|
7932
7844
|
ais: props.contextValue,
|
|
@@ -7947,8 +7859,7 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7947
7859
|
|
|
7948
7860
|
var itemsLimit = showMore ? showMoreLimit : limit;
|
|
7949
7861
|
var value = results.getFacetValues(id, {
|
|
7950
|
-
sortBy: sortBy$1
|
|
7951
|
-
facetOrdering: facetOrdering
|
|
7862
|
+
sortBy: sortBy$1
|
|
7952
7863
|
});
|
|
7953
7864
|
var items = value.data ? transformValue(value.data, props, searchState, {
|
|
7954
7865
|
ais: props.contextValue,
|
|
@@ -8500,20 +8411,17 @@ var connectMenu = createConnectorWithContext({
|
|
|
8500
8411
|
showMoreLimit: PropTypes.number,
|
|
8501
8412
|
defaultRefinement: PropTypes.string,
|
|
8502
8413
|
transformItems: PropTypes.func,
|
|
8503
|
-
searchable: PropTypes.bool
|
|
8504
|
-
facetOrdering: PropTypes.bool
|
|
8414
|
+
searchable: PropTypes.bool
|
|
8505
8415
|
},
|
|
8506
8416
|
defaultProps: {
|
|
8507
8417
|
showMore: false,
|
|
8508
8418
|
limit: 10,
|
|
8509
|
-
showMoreLimit: 20
|
|
8510
|
-
facetOrdering: true
|
|
8419
|
+
showMoreLimit: 20
|
|
8511
8420
|
},
|
|
8512
8421
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults, meta, searchForFacetValuesResults) {
|
|
8513
8422
|
var attribute = props.attribute,
|
|
8514
8423
|
searchable = props.searchable,
|
|
8515
|
-
indexContextValue = props.indexContextValue
|
|
8516
|
-
facetOrdering = props.facetOrdering;
|
|
8424
|
+
indexContextValue = props.indexContextValue;
|
|
8517
8425
|
var results = getResults(searchResults, {
|
|
8518
8426
|
ais: props.contextValue,
|
|
8519
8427
|
multiIndexContext: props.indexContextValue
|
|
@@ -8559,8 +8467,7 @@ var connectMenu = createConnectorWithContext({
|
|
|
8559
8467
|
});
|
|
8560
8468
|
} else {
|
|
8561
8469
|
items = results.getFacetValues(attribute, {
|
|
8562
|
-
sortBy: searchable ? undefined : defaultSortBy
|
|
8563
|
-
facetOrdering: facetOrdering
|
|
8470
|
+
sortBy: searchable ? undefined : defaultSortBy
|
|
8564
8471
|
}).map(function (v) {
|
|
8565
8472
|
return {
|
|
8566
8473
|
label: v.name,
|
|
@@ -9417,21 +9324,18 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9417
9324
|
showMoreLimit: PropTypes.number,
|
|
9418
9325
|
defaultRefinement: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number])),
|
|
9419
9326
|
searchable: PropTypes.bool,
|
|
9420
|
-
transformItems: PropTypes.func
|
|
9421
|
-
facetOrdering: PropTypes.bool
|
|
9327
|
+
transformItems: PropTypes.func
|
|
9422
9328
|
},
|
|
9423
9329
|
defaultProps: {
|
|
9424
9330
|
operator: 'or',
|
|
9425
9331
|
showMore: false,
|
|
9426
9332
|
limit: 10,
|
|
9427
|
-
showMoreLimit: 20
|
|
9428
|
-
facetOrdering: true
|
|
9333
|
+
showMoreLimit: 20
|
|
9429
9334
|
},
|
|
9430
9335
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults, metadata, searchForFacetValuesResults) {
|
|
9431
9336
|
var attribute = props.attribute,
|
|
9432
9337
|
searchable = props.searchable,
|
|
9433
|
-
indexContextValue = props.indexContextValue
|
|
9434
|
-
facetOrdering = props.facetOrdering;
|
|
9338
|
+
indexContextValue = props.indexContextValue;
|
|
9435
9339
|
var results = getResults(searchResults, {
|
|
9436
9340
|
ais: props.contextValue,
|
|
9437
9341
|
multiIndexContext: props.indexContextValue
|
|
@@ -9472,8 +9376,7 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9472
9376
|
isRefined: v.isRefined
|
|
9473
9377
|
};
|
|
9474
9378
|
}) : results.getFacetValues(attribute, {
|
|
9475
|
-
sortBy: sortBy
|
|
9476
|
-
facetOrdering: facetOrdering
|
|
9379
|
+
sortBy: sortBy
|
|
9477
9380
|
}).map(function (v) {
|
|
9478
9381
|
return {
|
|
9479
9382
|
label: v.name,
|
|
@@ -10973,7 +10876,6 @@ function (_Component) {
|
|
|
10973
10876
|
|
|
10974
10877
|
var _this$props4 = this.props,
|
|
10975
10878
|
className = _this$props4.className,
|
|
10976
|
-
inputId = _this$props4.inputId,
|
|
10977
10879
|
translate = _this$props4.translate,
|
|
10978
10880
|
autoFocus = _this$props4.autoFocus,
|
|
10979
10881
|
loadingIndicator = _this$props4.loadingIndicator,
|
|
@@ -11001,7 +10903,6 @@ function (_Component) {
|
|
|
11001
10903
|
role: "search"
|
|
11002
10904
|
}, React__default.createElement("input", _extends({
|
|
11003
10905
|
ref: this.onInputMount,
|
|
11004
|
-
id: inputId,
|
|
11005
10906
|
type: "search",
|
|
11006
10907
|
placeholder: translate('placeholder'),
|
|
11007
10908
|
autoFocus: autoFocus,
|
|
@@ -11053,8 +10954,7 @@ _defineProperty(SearchBox$1, "propTypes", {
|
|
|
11053
10954
|
showLoadingIndicator: PropTypes.bool,
|
|
11054
10955
|
inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.exact({
|
|
11055
10956
|
current: PropTypes.object
|
|
11056
|
-
})])
|
|
11057
|
-
inputId: PropTypes.string
|
|
10957
|
+
})])
|
|
11058
10958
|
});
|
|
11059
10959
|
|
|
11060
10960
|
_defineProperty(SearchBox$1, "defaultProps", {
|
|
@@ -11693,11 +11593,9 @@ function (_Component) {
|
|
|
11693
11593
|
value: function render() {
|
|
11694
11594
|
var _this$props = this.props,
|
|
11695
11595
|
cx = _this$props.cx,
|
|
11696
|
-
id = _this$props.id,
|
|
11697
11596
|
items = _this$props.items,
|
|
11698
11597
|
selectedItem = _this$props.selectedItem;
|
|
11699
11598
|
return React__default.createElement("select", {
|
|
11700
|
-
id: id,
|
|
11701
11599
|
className: cx('select'),
|
|
11702
11600
|
value: selectedItem,
|
|
11703
11601
|
onChange: this.onChange
|
|
@@ -11717,7 +11615,6 @@ function (_Component) {
|
|
|
11717
11615
|
|
|
11718
11616
|
_defineProperty(Select, "propTypes", {
|
|
11719
11617
|
cx: PropTypes.func.isRequired,
|
|
11720
|
-
id: PropTypes.string,
|
|
11721
11618
|
onSelect: PropTypes.func.isRequired,
|
|
11722
11619
|
items: PropTypes.arrayOf(PropTypes.shape({
|
|
11723
11620
|
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
|
|
@@ -11745,7 +11642,6 @@ function (_Component) {
|
|
|
11745
11642
|
key: "render",
|
|
11746
11643
|
value: function render() {
|
|
11747
11644
|
var _this$props = this.props,
|
|
11748
|
-
id = _this$props.id,
|
|
11749
11645
|
items = _this$props.items,
|
|
11750
11646
|
currentRefinement = _this$props.currentRefinement,
|
|
11751
11647
|
refine = _this$props.refine,
|
|
@@ -11753,7 +11649,6 @@ function (_Component) {
|
|
|
11753
11649
|
return React__default.createElement("div", {
|
|
11754
11650
|
className: classnames(cx$h(''), className)
|
|
11755
11651
|
}, React__default.createElement(Select, {
|
|
11756
|
-
id: id,
|
|
11757
11652
|
onSelect: refine,
|
|
11758
11653
|
selectedItem: currentRefinement,
|
|
11759
11654
|
items: items,
|
|
@@ -11766,7 +11661,6 @@ function (_Component) {
|
|
|
11766
11661
|
}(Component);
|
|
11767
11662
|
|
|
11768
11663
|
_defineProperty(HitsPerPage, "propTypes", {
|
|
11769
|
-
id: PropTypes.string,
|
|
11770
11664
|
items: PropTypes.arrayOf(PropTypes.shape({
|
|
11771
11665
|
value: PropTypes.number.isRequired,
|
|
11772
11666
|
label: PropTypes.string
|
|
@@ -11789,7 +11683,6 @@ _defineProperty(HitsPerPage, "defaultProps", {
|
|
|
11789
11683
|
*
|
|
11790
11684
|
* @name HitsPerPage
|
|
11791
11685
|
* @kind widget
|
|
11792
|
-
* @propType {string} id - The id of the select input
|
|
11793
11686
|
* @propType {{value: number, label: string}[]} items - List of available options.
|
|
11794
11687
|
* @propType {number} defaultRefinement - The number of items selected by default
|
|
11795
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.
|
|
@@ -12158,7 +12051,6 @@ function (_Component) {
|
|
|
12158
12051
|
key: "render",
|
|
12159
12052
|
value: function render() {
|
|
12160
12053
|
var _this$props = this.props,
|
|
12161
|
-
id = _this$props.id,
|
|
12162
12054
|
items = _this$props.items,
|
|
12163
12055
|
canRefine = _this$props.canRefine,
|
|
12164
12056
|
translate = _this$props.translate,
|
|
@@ -12166,7 +12058,6 @@ function (_Component) {
|
|
|
12166
12058
|
return React__default.createElement("div", {
|
|
12167
12059
|
className: classnames(cx$e('', !canRefine && '-noRefinement'), className)
|
|
12168
12060
|
}, React__default.createElement("select", {
|
|
12169
|
-
id: id,
|
|
12170
12061
|
value: this.selectedValue,
|
|
12171
12062
|
onChange: this.handleSelectChange,
|
|
12172
12063
|
className: cx$e('select')
|
|
@@ -12199,7 +12090,6 @@ function (_Component) {
|
|
|
12199
12090
|
}(Component);
|
|
12200
12091
|
|
|
12201
12092
|
_defineProperty(MenuSelect, "propTypes", {
|
|
12202
|
-
id: PropTypes.string,
|
|
12203
12093
|
items: PropTypes.arrayOf(PropTypes.shape({
|
|
12204
12094
|
label: PropTypes.string.isRequired,
|
|
12205
12095
|
value: PropTypes.string.isRequired,
|
|
@@ -12226,7 +12116,6 @@ var MenuSelect$1 = translatable({
|
|
|
12226
12116
|
* @kind widget
|
|
12227
12117
|
* @requirements The attribute passed to the `attribute` prop must be present in "attributes for faceting"
|
|
12228
12118
|
* on the Algolia dashboard or configured as `attributesForFaceting` via a set settings call to the Algolia API.
|
|
12229
|
-
* @propType {string} id - the id of the select input
|
|
12230
12119
|
* @propType {string} attribute - the name of the attribute in the record
|
|
12231
12120
|
* @propType {string} [defaultRefinement] - the value of the item selected by default
|
|
12232
12121
|
* @propType {number} [limit=10] - the minimum number of diplayed items
|
|
@@ -13558,7 +13447,6 @@ connectScrollTo(ScrollTo);
|
|
|
13558
13447
|
* @propType {node} [reset] - Change the apparence of the default reset button (cross).
|
|
13559
13448
|
* @propType {node} [loadingIndicator] - Change the apparence of the default loading indicator (spinning circle).
|
|
13560
13449
|
* @propType {string} [defaultRefinement] - Provide default refinement value when component is mounted.
|
|
13561
|
-
* @propType {string} [inputId] - The id of the search input
|
|
13562
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.
|
|
13563
13451
|
* @themeKey ais-SearchBox - the root div of the widget
|
|
13564
13452
|
* @themeKey ais-SearchBox-form - the wrapping form
|
|
@@ -13709,7 +13597,6 @@ function (_Component) {
|
|
|
13709
13597
|
key: "render",
|
|
13710
13598
|
value: function render() {
|
|
13711
13599
|
var _this$props = this.props,
|
|
13712
|
-
id = _this$props.id,
|
|
13713
13600
|
items = _this$props.items,
|
|
13714
13601
|
currentRefinement = _this$props.currentRefinement,
|
|
13715
13602
|
refine = _this$props.refine,
|
|
@@ -13717,7 +13604,6 @@ function (_Component) {
|
|
|
13717
13604
|
return React__default.createElement("div", {
|
|
13718
13605
|
className: classnames(cx$4(''), className)
|
|
13719
13606
|
}, React__default.createElement(Select, {
|
|
13720
|
-
id: id,
|
|
13721
13607
|
cx: cx$4,
|
|
13722
13608
|
items: items,
|
|
13723
13609
|
selectedItem: currentRefinement,
|
|
@@ -13730,7 +13616,6 @@ function (_Component) {
|
|
|
13730
13616
|
}(Component);
|
|
13731
13617
|
|
|
13732
13618
|
_defineProperty(SortBy, "propTypes", {
|
|
13733
|
-
id: PropTypes.string,
|
|
13734
13619
|
items: PropTypes.arrayOf(PropTypes.shape({
|
|
13735
13620
|
label: PropTypes.string,
|
|
13736
13621
|
value: PropTypes.string.isRequired
|
|
@@ -13750,7 +13635,6 @@ _defineProperty(SortBy, "defaultProps", {
|
|
|
13750
13635
|
* @requirements Algolia handles sorting by creating replica indices. [Read more about sorting](https://www.algolia.com/doc/guides/relevance/sorting/) on
|
|
13751
13636
|
* the Algolia website.
|
|
13752
13637
|
* @kind widget
|
|
13753
|
-
* @propType {string} id - The id of the select input
|
|
13754
13638
|
* @propType {{value: string, label: string}[]} items - The list of indexes to search in.
|
|
13755
13639
|
* @propType {string} defaultRefinement - The default selected index.
|
|
13756
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.
|
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-ab4dea5c.js';
|
|
|
7
7
|
import './core.get-iterator-method-ea258bb1.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-6d1fc6bf.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-ea258bb1.js';
|
|
@@ -39,6 +39,7 @@ import './toNumber-5aeba6e7.js';
|
|
|
39
39
|
import './Beam.js';
|
|
40
40
|
import './stringify-2b084bee.js';
|
|
41
41
|
import './Segment.js';
|
|
42
|
+
import 'react-paginate';
|
|
42
43
|
import 'react-bootstrap/Button';
|
|
43
44
|
import './index.esm-1bd8a0a8.js';
|
|
44
45
|
import './iconBase-ccc56b97.js';
|
package/dist/esm/DeckContent.js
CHANGED
|
@@ -182,14 +182,14 @@ var DeckContent = function (_React$Component) {
|
|
|
182
182
|
var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
|
|
183
183
|
|
|
184
184
|
// please leave this for later debug purpose : Yong Jun.
|
|
185
|
-
/* console.log('page change reported', {
|
|
186
|
-
currentPage: currentPage,
|
|
187
|
-
pageNumber: pageNumber,
|
|
188
|
-
pathname: pathname,
|
|
189
|
-
path: path,
|
|
190
|
-
newPath: newPath,
|
|
191
|
-
firstPage: pageNumber === 1,
|
|
192
|
-
queryString: queryString
|
|
185
|
+
/* console.log('page change reported', {
|
|
186
|
+
currentPage: currentPage,
|
|
187
|
+
pageNumber: pageNumber,
|
|
188
|
+
pathname: pathname,
|
|
189
|
+
path: path,
|
|
190
|
+
newPath: newPath,
|
|
191
|
+
firstPage: pageNumber === 1,
|
|
192
|
+
queryString: queryString
|
|
193
193
|
}) */
|
|
194
194
|
|
|
195
195
|
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-ea258bb1.js';
|
|
22
22
|
import './web.dom.iterable-ab4dea5c.js';
|
|
@@ -34,6 +34,7 @@ import './isSymbol-a7e9aafe.js';
|
|
|
34
34
|
import './eq-bdcbf886.js';
|
|
35
35
|
import './slicedToArray-6ebcbfea.js';
|
|
36
36
|
import './index-3f5c03b2.js';
|
|
37
|
+
import 'react-paginate';
|
|
37
38
|
import 'react-bootstrap/Button';
|
|
38
39
|
import './index.esm-1bd8a0a8.js';
|
|
39
40
|
import './iconBase-ccc56b97.js';
|
package/dist/esm/EventsDeck.js
CHANGED
|
@@ -245,23 +245,23 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
245
245
|
if (cventAccessToken && cventAccessToken !== 'undefined') {
|
|
246
246
|
setAccessToken(cventAccessToken);
|
|
247
247
|
} else {
|
|
248
|
-
/*const encodedData = window.btoa(clientId + ':' + clientSecret)
|
|
249
|
-
//const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
|
|
250
|
-
const url = `https://api-platform.cvent.com/ea/oauth2/token`
|
|
251
|
-
fetch(url, {
|
|
252
|
-
headers: {
|
|
253
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
254
|
-
Authorization: `Basic ${encodedData}`
|
|
255
|
-
},
|
|
256
|
-
method: 'POST',
|
|
257
|
-
body: `grant_type=client_credentials&client_id=${clientId}`
|
|
258
|
-
})
|
|
259
|
-
.then((response) => response.json())
|
|
260
|
-
.then((json) => {
|
|
261
|
-
const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
|
|
262
|
-
Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
|
|
263
|
-
setAccessToken(json.access_token)
|
|
264
|
-
})
|
|
248
|
+
/*const encodedData = window.btoa(clientId + ':' + clientSecret)
|
|
249
|
+
//const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
|
|
250
|
+
const url = `https://api-platform.cvent.com/ea/oauth2/token`
|
|
251
|
+
fetch(url, {
|
|
252
|
+
headers: {
|
|
253
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
|
254
|
+
Authorization: `Basic ${encodedData}`
|
|
255
|
+
},
|
|
256
|
+
method: 'POST',
|
|
257
|
+
body: `grant_type=client_credentials&client_id=${clientId}`
|
|
258
|
+
})
|
|
259
|
+
.then((response) => response.json())
|
|
260
|
+
.then((json) => {
|
|
261
|
+
const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
|
|
262
|
+
Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
|
|
263
|
+
setAccessToken(json.access_token)
|
|
264
|
+
})
|
|
265
265
|
.catch((e) => console.log(e))*/
|
|
266
266
|
// hello
|
|
267
267
|
var url = 'https://beam.mjhlifesciences.com/api/cvent/token';
|
|
@@ -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-11adff02.js';
|
|
24
24
|
import { P as PublicationFeature } from './PublicationFeature-d88e76b9.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-ea258bb1.js';
|
|
@@ -47,6 +47,7 @@ import './Segment.js';
|
|
|
47
47
|
import './eq-bdcbf886.js';
|
|
48
48
|
import './index-3f5c03b2.js';
|
|
49
49
|
import 'react-bootstrap/Button';
|
|
50
|
+
import 'react-paginate';
|
|
50
51
|
import './index.esm-1bd8a0a8.js';
|
|
51
52
|
import './iconBase-ccc56b97.js';
|
|
52
53
|
|
package/dist/esm/HamMagazine.js
CHANGED
|
@@ -26,15 +26,15 @@ import './_library-528f1934.js';
|
|
|
26
26
|
import './_iter-detect-98db3b07.js';
|
|
27
27
|
|
|
28
28
|
var HamMagazine = function HamMagazine(props) {
|
|
29
|
-
/*
|
|
30
|
-
Example Nav with acceptable props
|
|
31
|
-
<MagazineNav
|
|
32
|
-
showLogin
|
|
33
|
-
logo={props.settings.logo}
|
|
34
|
-
dataObject={props.cache.mainNavCache}
|
|
35
|
-
website={website}
|
|
36
|
-
subNav={props.cache.subNavCache}
|
|
37
|
-
/>
|
|
29
|
+
/*
|
|
30
|
+
Example Nav with acceptable props
|
|
31
|
+
<MagazineNav
|
|
32
|
+
showLogin
|
|
33
|
+
logo={props.settings.logo}
|
|
34
|
+
dataObject={props.cache.mainNavCache}
|
|
35
|
+
website={website}
|
|
36
|
+
subNav={props.cache.subNavCache}
|
|
37
|
+
/>
|
|
38
38
|
*/
|
|
39
39
|
|
|
40
40
|
// 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
|
|
package/dist/esm/IssueLanding.js
CHANGED
|
@@ -71,35 +71,35 @@ import 'react-bootstrap/OverlayTrigger';
|
|
|
71
71
|
import 'react-bootstrap/Tooltip';
|
|
72
72
|
import 'react-bootstrap/Popover';
|
|
73
73
|
|
|
74
|
-
/* usage
|
|
75
|
-
import Settings, { Ads } from '../../../../settings'
|
|
76
|
-
import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
|
|
77
|
-
import client from '../../../../client'
|
|
78
|
-
import moment from 'moment'
|
|
79
|
-
import Shell from '../../../../components/2.0/Shell'
|
|
80
|
-
import { pageview } from '../../../../utilities/gtag'
|
|
81
|
-
|
|
82
|
-
const Issue = (props) => {
|
|
83
|
-
const { pubIssue, cache } = props
|
|
84
|
-
const targeting = {
|
|
85
|
-
content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
86
|
-
document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
87
|
-
}
|
|
88
|
-
return (
|
|
89
|
-
<Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
|
|
90
|
-
<IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
|
|
91
|
-
</Shell>
|
|
92
|
-
)
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
Issue.getInitialProps = async (ctx) => {
|
|
96
|
-
const { query } = ctx
|
|
97
|
-
const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
|
|
98
|
-
)
|
|
99
|
-
return { pubIssue }
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export default Issue
|
|
74
|
+
/* usage
|
|
75
|
+
import Settings, { Ads } from '../../../../settings'
|
|
76
|
+
import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
|
|
77
|
+
import client from '../../../../client'
|
|
78
|
+
import moment from 'moment'
|
|
79
|
+
import Shell from '../../../../components/2.0/Shell'
|
|
80
|
+
import { pageview } from '../../../../utilities/gtag'
|
|
81
|
+
|
|
82
|
+
const Issue = (props) => {
|
|
83
|
+
const { pubIssue, cache } = props
|
|
84
|
+
const targeting = {
|
|
85
|
+
content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
86
|
+
document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
87
|
+
}
|
|
88
|
+
return (
|
|
89
|
+
<Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
|
|
90
|
+
<IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
|
|
91
|
+
</Shell>
|
|
92
|
+
)
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
Issue.getInitialProps = async (ctx) => {
|
|
96
|
+
const { query } = ctx
|
|
97
|
+
const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
|
|
98
|
+
)
|
|
99
|
+
return { pubIssue }
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export default Issue
|
|
103
103
|
*/
|
|
104
104
|
|
|
105
105
|
var IssueLanding = function IssueLanding(props) {
|