@mjhls/mjh-framework 1.0.893-ris-v5 → 1.0.893-video-series-listing-thumbnail-v2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/AlgoliaSearch.js +15 -131
- package/dist/cjs/CMEDeck.js +1 -5
- package/dist/cjs/VideoProgramLandingPage.js +1 -1
- package/dist/cjs/VideoSeriesFilter.js +1 -1
- package/dist/cjs/View.js +9 -68
- package/dist/cjs/getQuery.js +1 -1
- package/dist/esm/AlgoliaSearch.js +16 -132
- package/dist/esm/CMEDeck.js +1 -5
- package/dist/esm/VideoProgramLandingPage.js +1 -1
- package/dist/esm/VideoSeriesFilter.js +1 -1
- package/dist/esm/View.js +9 -68
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/stringify-2b084bee.js +1 -1
- package/package.json +1 -2
|
@@ -829,7 +829,7 @@ function parseAlgoliaHit(_ref2) {
|
|
|
829
829
|
});
|
|
830
830
|
}
|
|
831
831
|
|
|
832
|
-
var version$1 = '6.
|
|
832
|
+
var version$1 = '6.11.1';
|
|
833
833
|
|
|
834
834
|
var withKeysPropType = function withKeysPropType(keys) {
|
|
835
835
|
return function (props, propName, componentName) {
|
|
@@ -911,10 +911,6 @@ function translatable(defaultTranslations) {
|
|
|
911
911
|
function getIndexId(context) {
|
|
912
912
|
return hasMultipleIndices(context) ? context.multiIndexContext.targetedIndex : context.ais.mainTargetedIndex;
|
|
913
913
|
}
|
|
914
|
-
/**
|
|
915
|
-
* @returns {import('algoliasearch-helper').SearchResults} results
|
|
916
|
-
*/
|
|
917
|
-
|
|
918
914
|
function getResults(searchResults, context) {
|
|
919
915
|
if (searchResults.results) {
|
|
920
916
|
if (searchResults.results.hits) {
|
|
@@ -4779,7 +4775,7 @@ var requestBuilder = {
|
|
|
4779
4775
|
|
|
4780
4776
|
var requestBuilder_1 = requestBuilder;
|
|
4781
4777
|
|
|
4782
|
-
var version = '3.5.
|
|
4778
|
+
var version = '3.5.3';
|
|
4783
4779
|
|
|
4784
4780
|
/**
|
|
4785
4781
|
* Event triggered when a parameter is set or updated
|
|
@@ -6427,87 +6423,6 @@ ConfigureRelatedItems.propTypes = {
|
|
|
6427
6423
|
};
|
|
6428
6424
|
connectConfigureRelatedItems(ConfigureRelatedItems);
|
|
6429
6425
|
|
|
6430
|
-
var connectDynamicWidgets = createConnectorWithContext({
|
|
6431
|
-
displayName: 'AlgoliaDynamicWidgets',
|
|
6432
|
-
defaultProps: {
|
|
6433
|
-
transformItems: function transformItems(items) {
|
|
6434
|
-
return items;
|
|
6435
|
-
}
|
|
6436
|
-
},
|
|
6437
|
-
propTypes: {
|
|
6438
|
-
transformItems: PropTypes__default['default'].func
|
|
6439
|
-
},
|
|
6440
|
-
getProvidedProps: function getProvidedProps(props, _searchState, searchResults) {
|
|
6441
|
-
var results = getResults(searchResults, {
|
|
6442
|
-
ais: props.contextValue,
|
|
6443
|
-
multiIndexContext: props.indexContextValue
|
|
6444
|
-
});
|
|
6445
|
-
|
|
6446
|
-
if (!results) {
|
|
6447
|
-
return {
|
|
6448
|
-
attributesToRender: []
|
|
6449
|
-
};
|
|
6450
|
-
}
|
|
6451
|
-
|
|
6452
|
-
var facetOrder = results.renderingContent && results.renderingContent.facetOrdering && results.renderingContent.facetOrdering.facets && results.renderingContent.facetOrdering.facets.order || [];
|
|
6453
|
-
return {
|
|
6454
|
-
attributesToRender: props.transformItems(facetOrder, {
|
|
6455
|
-
results: results
|
|
6456
|
-
})
|
|
6457
|
-
};
|
|
6458
|
-
}
|
|
6459
|
-
});
|
|
6460
|
-
|
|
6461
|
-
function getAttribute(component) {
|
|
6462
|
-
if (_typeof(component) !== 'object') {
|
|
6463
|
-
return undefined;
|
|
6464
|
-
}
|
|
6465
|
-
|
|
6466
|
-
if (component.props.attribute) {
|
|
6467
|
-
return component.props.attribute;
|
|
6468
|
-
}
|
|
6469
|
-
|
|
6470
|
-
if (Array.isArray(component.props.attributes)) {
|
|
6471
|
-
return component.props.attributes[0];
|
|
6472
|
-
}
|
|
6473
|
-
|
|
6474
|
-
if (component.props.children) {
|
|
6475
|
-
return getAttribute(React__default['default'].Children.only(component.props.children));
|
|
6476
|
-
}
|
|
6477
|
-
|
|
6478
|
-
return undefined;
|
|
6479
|
-
}
|
|
6480
|
-
|
|
6481
|
-
function DynamicWidgets(_ref) {
|
|
6482
|
-
var children = _ref.children,
|
|
6483
|
-
attributesToRender = _ref.attributesToRender,
|
|
6484
|
-
_ref$fallbackComponen = _ref.fallbackComponent,
|
|
6485
|
-
Fallback = _ref$fallbackComponen === void 0 ? function () {
|
|
6486
|
-
return null;
|
|
6487
|
-
} : _ref$fallbackComponen;
|
|
6488
|
-
var widgets = new Map();
|
|
6489
|
-
React__default['default'].Children.forEach(children, function (child) {
|
|
6490
|
-
var attribute = getAttribute(child);
|
|
6491
|
-
|
|
6492
|
-
if (!attribute) {
|
|
6493
|
-
throw new Error("Could not find \"attribute\" prop for ".concat(getDisplayName(child), "."));
|
|
6494
|
-
}
|
|
6495
|
-
|
|
6496
|
-
widgets.set(attribute, child);
|
|
6497
|
-
}); // on initial render this will be empty, but React InstantSearch keeps
|
|
6498
|
-
// search state for unmounted components in place, so routing works.
|
|
6499
|
-
|
|
6500
|
-
return React__default['default'].createElement(React__default['default'].Fragment, null, attributesToRender.map(function (attribute) {
|
|
6501
|
-
return React__default['default'].createElement(React.Fragment, {
|
|
6502
|
-
key: attribute
|
|
6503
|
-
}, widgets.get(attribute) || React__default['default'].createElement(Fallback, {
|
|
6504
|
-
attribute: attribute
|
|
6505
|
-
}));
|
|
6506
|
-
}));
|
|
6507
|
-
}
|
|
6508
|
-
|
|
6509
|
-
connectDynamicWidgets(DynamicWidgets);
|
|
6510
|
-
|
|
6511
6426
|
// A context rule must consist only of alphanumeric characters, hyphens, and underscores.
|
|
6512
6427
|
// See https://www.algolia.com/doc/guides/managing-results/refine-results/merchandising-and-promoting/in-depth/implementing-query-rules/#context
|
|
6513
6428
|
function escapeRuleContext(ruleName) {
|
|
@@ -7917,8 +7832,7 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7917
7832
|
showMore: PropTypes__default['default'].bool,
|
|
7918
7833
|
limit: PropTypes__default['default'].number,
|
|
7919
7834
|
showMoreLimit: PropTypes__default['default'].number,
|
|
7920
|
-
transformItems: PropTypes__default['default'].func
|
|
7921
|
-
facetOrdering: PropTypes__default['default'].bool
|
|
7835
|
+
transformItems: PropTypes__default['default'].func
|
|
7922
7836
|
},
|
|
7923
7837
|
defaultProps: {
|
|
7924
7838
|
showMore: false,
|
|
@@ -7926,14 +7840,12 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7926
7840
|
showMoreLimit: 20,
|
|
7927
7841
|
separator: ' > ',
|
|
7928
7842
|
rootPath: null,
|
|
7929
|
-
showParentLevel: true
|
|
7930
|
-
facetOrdering: true
|
|
7843
|
+
showParentLevel: true
|
|
7931
7844
|
},
|
|
7932
7845
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
|
|
7933
7846
|
var showMore = props.showMore,
|
|
7934
7847
|
limit = props.limit,
|
|
7935
|
-
showMoreLimit = props.showMoreLimit
|
|
7936
|
-
facetOrdering = props.facetOrdering;
|
|
7848
|
+
showMoreLimit = props.showMoreLimit;
|
|
7937
7849
|
var id = getId$c(props);
|
|
7938
7850
|
var results = getResults(searchResults, {
|
|
7939
7851
|
ais: props.contextValue,
|
|
@@ -7954,8 +7866,7 @@ var connectHierarchicalMenu = createConnectorWithContext({
|
|
|
7954
7866
|
|
|
7955
7867
|
var itemsLimit = showMore ? showMoreLimit : limit;
|
|
7956
7868
|
var value = results.getFacetValues(id, {
|
|
7957
|
-
sortBy: sortBy$1
|
|
7958
|
-
facetOrdering: facetOrdering
|
|
7869
|
+
sortBy: sortBy$1
|
|
7959
7870
|
});
|
|
7960
7871
|
var items = value.data ? transformValue(value.data, props, searchState, {
|
|
7961
7872
|
ais: props.contextValue,
|
|
@@ -8507,20 +8418,17 @@ var connectMenu = createConnectorWithContext({
|
|
|
8507
8418
|
showMoreLimit: PropTypes__default['default'].number,
|
|
8508
8419
|
defaultRefinement: PropTypes__default['default'].string,
|
|
8509
8420
|
transformItems: PropTypes__default['default'].func,
|
|
8510
|
-
searchable: PropTypes__default['default'].bool
|
|
8511
|
-
facetOrdering: PropTypes__default['default'].bool
|
|
8421
|
+
searchable: PropTypes__default['default'].bool
|
|
8512
8422
|
},
|
|
8513
8423
|
defaultProps: {
|
|
8514
8424
|
showMore: false,
|
|
8515
8425
|
limit: 10,
|
|
8516
|
-
showMoreLimit: 20
|
|
8517
|
-
facetOrdering: true
|
|
8426
|
+
showMoreLimit: 20
|
|
8518
8427
|
},
|
|
8519
8428
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults, meta, searchForFacetValuesResults) {
|
|
8520
8429
|
var attribute = props.attribute,
|
|
8521
8430
|
searchable = props.searchable,
|
|
8522
|
-
indexContextValue = props.indexContextValue
|
|
8523
|
-
facetOrdering = props.facetOrdering;
|
|
8431
|
+
indexContextValue = props.indexContextValue;
|
|
8524
8432
|
var results = getResults(searchResults, {
|
|
8525
8433
|
ais: props.contextValue,
|
|
8526
8434
|
multiIndexContext: props.indexContextValue
|
|
@@ -8566,8 +8474,7 @@ var connectMenu = createConnectorWithContext({
|
|
|
8566
8474
|
});
|
|
8567
8475
|
} else {
|
|
8568
8476
|
items = results.getFacetValues(attribute, {
|
|
8569
|
-
sortBy: searchable ? undefined : defaultSortBy
|
|
8570
|
-
facetOrdering: facetOrdering
|
|
8477
|
+
sortBy: searchable ? undefined : defaultSortBy
|
|
8571
8478
|
}).map(function (v) {
|
|
8572
8479
|
return {
|
|
8573
8480
|
label: v.name,
|
|
@@ -9424,21 +9331,18 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9424
9331
|
showMoreLimit: PropTypes__default['default'].number,
|
|
9425
9332
|
defaultRefinement: PropTypes__default['default'].arrayOf(PropTypes__default['default'].oneOfType([PropTypes__default['default'].string, PropTypes__default['default'].number])),
|
|
9426
9333
|
searchable: PropTypes__default['default'].bool,
|
|
9427
|
-
transformItems: PropTypes__default['default'].func
|
|
9428
|
-
facetOrdering: PropTypes__default['default'].bool
|
|
9334
|
+
transformItems: PropTypes__default['default'].func
|
|
9429
9335
|
},
|
|
9430
9336
|
defaultProps: {
|
|
9431
9337
|
operator: 'or',
|
|
9432
9338
|
showMore: false,
|
|
9433
9339
|
limit: 10,
|
|
9434
|
-
showMoreLimit: 20
|
|
9435
|
-
facetOrdering: true
|
|
9340
|
+
showMoreLimit: 20
|
|
9436
9341
|
},
|
|
9437
9342
|
getProvidedProps: function getProvidedProps(props, searchState, searchResults, metadata, searchForFacetValuesResults) {
|
|
9438
9343
|
var attribute = props.attribute,
|
|
9439
9344
|
searchable = props.searchable,
|
|
9440
|
-
indexContextValue = props.indexContextValue
|
|
9441
|
-
facetOrdering = props.facetOrdering;
|
|
9345
|
+
indexContextValue = props.indexContextValue;
|
|
9442
9346
|
var results = getResults(searchResults, {
|
|
9443
9347
|
ais: props.contextValue,
|
|
9444
9348
|
multiIndexContext: props.indexContextValue
|
|
@@ -9479,8 +9383,7 @@ var connectRefinementList = createConnectorWithContext({
|
|
|
9479
9383
|
isRefined: v.isRefined
|
|
9480
9384
|
};
|
|
9481
9385
|
}) : results.getFacetValues(attribute, {
|
|
9482
|
-
sortBy: sortBy
|
|
9483
|
-
facetOrdering: facetOrdering
|
|
9386
|
+
sortBy: sortBy
|
|
9484
9387
|
}).map(function (v) {
|
|
9485
9388
|
return {
|
|
9486
9389
|
label: v.name,
|
|
@@ -10980,7 +10883,6 @@ function (_Component) {
|
|
|
10980
10883
|
|
|
10981
10884
|
var _this$props4 = this.props,
|
|
10982
10885
|
className = _this$props4.className,
|
|
10983
|
-
inputId = _this$props4.inputId,
|
|
10984
10886
|
translate = _this$props4.translate,
|
|
10985
10887
|
autoFocus = _this$props4.autoFocus,
|
|
10986
10888
|
loadingIndicator = _this$props4.loadingIndicator,
|
|
@@ -11008,7 +10910,6 @@ function (_Component) {
|
|
|
11008
10910
|
role: "search"
|
|
11009
10911
|
}, React__default['default'].createElement("input", index._extends({
|
|
11010
10912
|
ref: this.onInputMount,
|
|
11011
|
-
id: inputId,
|
|
11012
10913
|
type: "search",
|
|
11013
10914
|
placeholder: translate('placeholder'),
|
|
11014
10915
|
autoFocus: autoFocus,
|
|
@@ -11060,8 +10961,7 @@ _defineProperty(SearchBox$1, "propTypes", {
|
|
|
11060
10961
|
showLoadingIndicator: PropTypes__default['default'].bool,
|
|
11061
10962
|
inputRef: PropTypes__default['default'].oneOfType([PropTypes__default['default'].func, PropTypes__default['default'].exact({
|
|
11062
10963
|
current: PropTypes__default['default'].object
|
|
11063
|
-
})])
|
|
11064
|
-
inputId: PropTypes__default['default'].string
|
|
10964
|
+
})])
|
|
11065
10965
|
});
|
|
11066
10966
|
|
|
11067
10967
|
_defineProperty(SearchBox$1, "defaultProps", {
|
|
@@ -11700,11 +11600,9 @@ function (_Component) {
|
|
|
11700
11600
|
value: function render() {
|
|
11701
11601
|
var _this$props = this.props,
|
|
11702
11602
|
cx = _this$props.cx,
|
|
11703
|
-
id = _this$props.id,
|
|
11704
11603
|
items = _this$props.items,
|
|
11705
11604
|
selectedItem = _this$props.selectedItem;
|
|
11706
11605
|
return React__default['default'].createElement("select", {
|
|
11707
|
-
id: id,
|
|
11708
11606
|
className: cx('select'),
|
|
11709
11607
|
value: selectedItem,
|
|
11710
11608
|
onChange: this.onChange
|
|
@@ -11724,7 +11622,6 @@ function (_Component) {
|
|
|
11724
11622
|
|
|
11725
11623
|
_defineProperty(Select, "propTypes", {
|
|
11726
11624
|
cx: PropTypes__default['default'].func.isRequired,
|
|
11727
|
-
id: PropTypes__default['default'].string,
|
|
11728
11625
|
onSelect: PropTypes__default['default'].func.isRequired,
|
|
11729
11626
|
items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
11730
11627
|
value: PropTypes__default['default'].oneOfType([PropTypes__default['default'].string, PropTypes__default['default'].number]).isRequired,
|
|
@@ -11752,7 +11649,6 @@ function (_Component) {
|
|
|
11752
11649
|
key: "render",
|
|
11753
11650
|
value: function render() {
|
|
11754
11651
|
var _this$props = this.props,
|
|
11755
|
-
id = _this$props.id,
|
|
11756
11652
|
items = _this$props.items,
|
|
11757
11653
|
currentRefinement = _this$props.currentRefinement,
|
|
11758
11654
|
refine = _this$props.refine,
|
|
@@ -11760,7 +11656,6 @@ function (_Component) {
|
|
|
11760
11656
|
return React__default['default'].createElement("div", {
|
|
11761
11657
|
className: index.classnames(cx$h(''), className)
|
|
11762
11658
|
}, React__default['default'].createElement(Select, {
|
|
11763
|
-
id: id,
|
|
11764
11659
|
onSelect: refine,
|
|
11765
11660
|
selectedItem: currentRefinement,
|
|
11766
11661
|
items: items,
|
|
@@ -11773,7 +11668,6 @@ function (_Component) {
|
|
|
11773
11668
|
}(React.Component);
|
|
11774
11669
|
|
|
11775
11670
|
_defineProperty(HitsPerPage, "propTypes", {
|
|
11776
|
-
id: PropTypes__default['default'].string,
|
|
11777
11671
|
items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
11778
11672
|
value: PropTypes__default['default'].number.isRequired,
|
|
11779
11673
|
label: PropTypes__default['default'].string
|
|
@@ -11796,7 +11690,6 @@ _defineProperty(HitsPerPage, "defaultProps", {
|
|
|
11796
11690
|
*
|
|
11797
11691
|
* @name HitsPerPage
|
|
11798
11692
|
* @kind widget
|
|
11799
|
-
* @propType {string} id - The id of the select input
|
|
11800
11693
|
* @propType {{value: number, label: string}[]} items - List of available options.
|
|
11801
11694
|
* @propType {number} defaultRefinement - The number of items selected by default
|
|
11802
11695
|
* @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.
|
|
@@ -12165,7 +12058,6 @@ function (_Component) {
|
|
|
12165
12058
|
key: "render",
|
|
12166
12059
|
value: function render() {
|
|
12167
12060
|
var _this$props = this.props,
|
|
12168
|
-
id = _this$props.id,
|
|
12169
12061
|
items = _this$props.items,
|
|
12170
12062
|
canRefine = _this$props.canRefine,
|
|
12171
12063
|
translate = _this$props.translate,
|
|
@@ -12173,7 +12065,6 @@ function (_Component) {
|
|
|
12173
12065
|
return React__default['default'].createElement("div", {
|
|
12174
12066
|
className: index.classnames(cx$e('', !canRefine && '-noRefinement'), className)
|
|
12175
12067
|
}, React__default['default'].createElement("select", {
|
|
12176
|
-
id: id,
|
|
12177
12068
|
value: this.selectedValue,
|
|
12178
12069
|
onChange: this.handleSelectChange,
|
|
12179
12070
|
className: cx$e('select')
|
|
@@ -12206,7 +12097,6 @@ function (_Component) {
|
|
|
12206
12097
|
}(React.Component);
|
|
12207
12098
|
|
|
12208
12099
|
_defineProperty(MenuSelect, "propTypes", {
|
|
12209
|
-
id: PropTypes__default['default'].string,
|
|
12210
12100
|
items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
12211
12101
|
label: PropTypes__default['default'].string.isRequired,
|
|
12212
12102
|
value: PropTypes__default['default'].string.isRequired,
|
|
@@ -12233,7 +12123,6 @@ var MenuSelect$1 = translatable({
|
|
|
12233
12123
|
* @kind widget
|
|
12234
12124
|
* @requirements The attribute passed to the `attribute` prop must be present in "attributes for faceting"
|
|
12235
12125
|
* on the Algolia dashboard or configured as `attributesForFaceting` via a set settings call to the Algolia API.
|
|
12236
|
-
* @propType {string} id - the id of the select input
|
|
12237
12126
|
* @propType {string} attribute - the name of the attribute in the record
|
|
12238
12127
|
* @propType {string} [defaultRefinement] - the value of the item selected by default
|
|
12239
12128
|
* @propType {number} [limit=10] - the minimum number of diplayed items
|
|
@@ -13565,7 +13454,6 @@ connectScrollTo(ScrollTo);
|
|
|
13565
13454
|
* @propType {node} [reset] - Change the apparence of the default reset button (cross).
|
|
13566
13455
|
* @propType {node} [loadingIndicator] - Change the apparence of the default loading indicator (spinning circle).
|
|
13567
13456
|
* @propType {string} [defaultRefinement] - Provide default refinement value when component is mounted.
|
|
13568
|
-
* @propType {string} [inputId] - The id of the search input
|
|
13569
13457
|
* @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.
|
|
13570
13458
|
* @themeKey ais-SearchBox - the root div of the widget
|
|
13571
13459
|
* @themeKey ais-SearchBox-form - the wrapping form
|
|
@@ -13716,7 +13604,6 @@ function (_Component) {
|
|
|
13716
13604
|
key: "render",
|
|
13717
13605
|
value: function render() {
|
|
13718
13606
|
var _this$props = this.props,
|
|
13719
|
-
id = _this$props.id,
|
|
13720
13607
|
items = _this$props.items,
|
|
13721
13608
|
currentRefinement = _this$props.currentRefinement,
|
|
13722
13609
|
refine = _this$props.refine,
|
|
@@ -13724,7 +13611,6 @@ function (_Component) {
|
|
|
13724
13611
|
return React__default['default'].createElement("div", {
|
|
13725
13612
|
className: index.classnames(cx$4(''), className)
|
|
13726
13613
|
}, React__default['default'].createElement(Select, {
|
|
13727
|
-
id: id,
|
|
13728
13614
|
cx: cx$4,
|
|
13729
13615
|
items: items,
|
|
13730
13616
|
selectedItem: currentRefinement,
|
|
@@ -13737,7 +13623,6 @@ function (_Component) {
|
|
|
13737
13623
|
}(React.Component);
|
|
13738
13624
|
|
|
13739
13625
|
_defineProperty(SortBy, "propTypes", {
|
|
13740
|
-
id: PropTypes__default['default'].string,
|
|
13741
13626
|
items: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
|
|
13742
13627
|
label: PropTypes__default['default'].string,
|
|
13743
13628
|
value: PropTypes__default['default'].string.isRequired
|
|
@@ -13757,7 +13642,6 @@ _defineProperty(SortBy, "defaultProps", {
|
|
|
13757
13642
|
* @requirements Algolia handles sorting by creating replica indices. [Read more about sorting](https://www.algolia.com/doc/guides/relevance/sorting/) on
|
|
13758
13643
|
* the Algolia website.
|
|
13759
13644
|
* @kind widget
|
|
13760
|
-
* @propType {string} id - The id of the select input
|
|
13761
13645
|
* @propType {{value: string, label: string}[]} items - The list of indexes to search in.
|
|
13762
13646
|
* @propType {string} defaultRefinement - The default selected index.
|
|
13763
13647
|
* @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/cjs/CMEDeck.js
CHANGED
|
@@ -315,11 +315,7 @@ var CMEDeck = function CMEDeck(_ref) {
|
|
|
315
315
|
return React__default['default'].createElement(
|
|
316
316
|
'div',
|
|
317
317
|
{ className: 'd-flex justify-content-between' },
|
|
318
|
-
currentPage
|
|
319
|
-
'a',
|
|
320
|
-
{ href: '?page=' + (currentPage - 1) },
|
|
321
|
-
'<< Previous'
|
|
322
|
-
),
|
|
318
|
+
currentPage > 1 ,
|
|
323
319
|
React__default['default'].createElement(
|
|
324
320
|
'a',
|
|
325
321
|
{ href: '?page=' + (currentPage + 1) },
|
|
@@ -234,7 +234,7 @@ VideoProgramLandingPage.getInitialData = function () {
|
|
|
234
234
|
url: pathname
|
|
235
235
|
};
|
|
236
236
|
|
|
237
|
-
query = '*[\n _type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible == true\n && dateTime(published) <= dateTime(now())\n && references(\'' + taxonomyId + '\')\n ' + (topicId ? '&& references(\'' + topicId + '\')' : '') + '\n ] | order(published desc) [$from...$to]{\n \t\t...,\n \t\ttitle,\n \t\tsummary,\n \t\tpublished,\n \t\tthumbnail,\n \t\turl,\n \t\ttaxonomy,\n \t\tcontentCategory->,\n \t\tbody[_type == "youtubeGallery"],\n \t\t\'pageNumber\': ' + currentPage + '\n \t}';
|
|
237
|
+
query = '*[\n _type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible == true\n && dateTime(published) <= dateTime(now())\n && references(\'' + taxonomyId + '\')\n ' + (topicId ? '&& references(\'' + topicId + '\')' : '') + '\n ] | order(published desc) [$from...$to]{\n \t\t...,\n \t\ttitle,\n \t\tsummary,\n \t\tpublished,\n \t\tthumbnail{ ..., asset->},\n \t\turl,\n \t\ttaxonomy,\n \t\tcontentCategory->,\n \t\tbody[_type == "youtubeGallery"]{\n ...,\n videos[]{\n ...,\n thumbnail{...,asset->}\n }\n },\n \t\t\'pageNumber\': ' + currentPage + '\n \t}';
|
|
238
238
|
_context.next = 26;
|
|
239
239
|
return client.fetch(query, params);
|
|
240
240
|
|
|
@@ -44,7 +44,7 @@ var VideoSeriesFilter = function VideoSeriesFilter(props) {
|
|
|
44
44
|
case 0:
|
|
45
45
|
loadingStatus && loadingStatus(true);
|
|
46
46
|
filteredList(null);
|
|
47
|
-
query = '*[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url) ' + (filter.id ? ' && references(\'' + filter.id + '\')' : '') + '\n && references(\'' + taxonomyID + '\')\n && is_visible == true\n && published <= now()\n && passwordLock != true\n ] | order(published desc) [$from...$to]{\n ...,\n title,\n summary,\n published,\n thumbnail,\n url,\n taxonomy,\n contentCategory->,\n body[_type == "youtubeGallery"],\n \'pageNumber\': ' + currentPage + '\n }';
|
|
47
|
+
query = '*[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url) ' + (filter.id ? ' && references(\'' + filter.id + '\')' : '') + '\n && references(\'' + taxonomyID + '\')\n && is_visible == true\n && published <= now()\n && passwordLock != true\n ] | order(published desc) [$from...$to]{\n ...,\n title,\n summary,\n published,\n thumbnail{ ..., asset->},\n url,\n taxonomy,\n contentCategory->,\n body[_type == "youtubeGallery"]{\n ...,\n videos[]{\n ...,\n thumbnail{...,asset->}\n }\n },\n \'pageNumber\': ' + currentPage + '\n }';
|
|
48
48
|
_context.next = 5;
|
|
49
49
|
return client.fetch(query, params).then(function (res) {
|
|
50
50
|
filteredList({ posts: res, query: query });
|
package/dist/cjs/View.js
CHANGED
|
@@ -29,13 +29,13 @@ var styleInject_es = require('./style-inject.es-dcee06b6.js');
|
|
|
29
29
|
require('./index-eadd5035.js');
|
|
30
30
|
var disqusReact = require('disqus-react');
|
|
31
31
|
var Schema = require('./Schema.js');
|
|
32
|
-
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
33
32
|
var keys = require('./keys-e982b3fa.js');
|
|
34
33
|
var index_es = require('./index.es-f3e47207.js');
|
|
35
34
|
var index = require('./index-fc2f1ca2.js');
|
|
36
35
|
var getRelatedArticle = require('./getRelatedArticle.js');
|
|
37
36
|
var getQuery = require('./getQuery.js');
|
|
38
37
|
var getSeriesDetail = require('./getSeriesDetail.js');
|
|
38
|
+
require('./_commonjsHelpers-06173234.js');
|
|
39
39
|
require('./core.get-iterator-method-5643aa10.js');
|
|
40
40
|
require('./web.dom.iterable-d98303e0.js');
|
|
41
41
|
require('./_library-dd23b178.js');
|
|
@@ -446,12 +446,6 @@ var getSocialShareDisableFlag = function getSocialShareDisableFlag(article) {
|
|
|
446
446
|
return showSocialShare;
|
|
447
447
|
};
|
|
448
448
|
|
|
449
|
-
var FileSaver_min = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
450
|
-
(function(a,b){b();})(_commonjsHelpers.commonjsGlobal,function(){function b(a,b){return "undefined"==typeof b?b={autoBom:!1}:"object"!=typeof b&&(console.warn("Deprecated: Expected third argument to be a object"),b={autoBom:!b}),b.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a}function c(a,b,c){var d=new XMLHttpRequest;d.open("GET",a),d.responseType="blob",d.onload=function(){g(d.response,b,c);},d.onerror=function(){console.error("could not download file");},d.send();}function d(a){var b=new XMLHttpRequest;b.open("HEAD",a,!1);try{b.send();}catch(a){}return 200<=b.status&&299>=b.status}function e(a){try{a.dispatchEvent(new MouseEvent("click"));}catch(c){var b=document.createEvent("MouseEvents");b.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(b);}}var f="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof _commonjsHelpers.commonjsGlobal&&_commonjsHelpers.commonjsGlobal.global===_commonjsHelpers.commonjsGlobal?_commonjsHelpers.commonjsGlobal:void 0,a=f.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),g=f.saveAs||("object"!=typeof window||window!==f?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(b,g,h){var i=f.URL||f.webkitURL,j=document.createElement("a");g=g||b.name||"download",j.download=g,j.rel="noopener","string"==typeof b?(j.href=b,j.origin===location.origin?e(j):d(j.href)?c(b,g,h):e(j,j.target="_blank")):(j.href=i.createObjectURL(b),setTimeout(function(){i.revokeObjectURL(j.href);},4E4),setTimeout(function(){e(j);},0));}:"msSaveOrOpenBlob"in navigator?function(f,g,h){if(g=g||f.name||"download","string"!=typeof f)navigator.msSaveOrOpenBlob(b(f,h),g);else if(d(f))c(f,g,h);else {var i=document.createElement("a");i.href=f,i.target="_blank",setTimeout(function(){e(i);});}}:function(b,d,e,g){if(g=g||open("","_blank"),g&&(g.document.title=g.document.body.innerText="downloading..."),"string"==typeof b)return c(b,d,e);var h="application/octet-stream"===b.type,i=/constructor/i.test(f.HTMLElement)||f.safari,j=/CriOS\/[\d]+/.test(navigator.userAgent);if((j||h&&i||a)&&"undefined"!=typeof FileReader){var k=new FileReader;k.onloadend=function(){var a=k.result;a=j?a:a.replace(/^data:[^;]*;/,"data:attachment/file;"),g?g.location.href=a:location=a,g=null;},k.readAsDataURL(b);}else {var l=f.URL||f.webkitURL,m=l.createObjectURL(b);g?g.location=m:location.href=m,g=null,setTimeout(function(){l.revokeObjectURL(m);},4E4);}});f.saveAs=g.saveAs=g,(module.exports=g);});
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
});
|
|
454
|
-
|
|
455
449
|
var Article = React.forwardRef(function (props, ref) {
|
|
456
450
|
var onVote = function () {
|
|
457
451
|
var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee(nodeKey, selectedChoice) {
|
|
@@ -658,48 +652,6 @@ var Article = React.forwardRef(function (props, ref) {
|
|
|
658
652
|
}
|
|
659
653
|
return null;
|
|
660
654
|
};
|
|
661
|
-
var generateRIS = function generateRIS() {
|
|
662
|
-
var fileContent = 'TY - JOUR\n';
|
|
663
|
-
if (issue) {
|
|
664
|
-
if (article.title) {
|
|
665
|
-
fileContent += 'TI - ' + article.title + '\n'; //Title - TI
|
|
666
|
-
fileContent += 'T1 - ' + article.title + '\n'; //Title - T1
|
|
667
|
-
}
|
|
668
|
-
if (issue.publication && issue.publication.name) {
|
|
669
|
-
fileContent += 'T2 - ' + issue.publication.name + '\n'; //Secondary Title - T2
|
|
670
|
-
fileContent += 'JF - ' + issue.publication.name + '\n'; //Journal Name - JF
|
|
671
|
-
fileContent += 'JO - ' + issue.publication.name + '\n'; //Journal Name - JO
|
|
672
|
-
}
|
|
673
|
-
if (article.summary) fileContent += 'N2 - ' + article.summary + '\n'; //Abstract - N2
|
|
674
|
-
if (issue.issueNumber) fileContent += 'IS - ' + issue.issueNumber + '\n'; //Issue Number - IS
|
|
675
|
-
fileContent += 'PB - MJH Life Sciences\n'; //Publisher - PB
|
|
676
|
-
if (issue.year) fileContent += 'PY - ' + issue.year + '\n'; //Published Year - PY
|
|
677
|
-
if (issue.volume) fileContent += 'VL - ' + issue.volume + '\n'; //Volume - VL
|
|
678
|
-
if (issue.url) fileContent += 'L1 - ' + issue.url + '\n'; //Link to PDF - L1
|
|
679
|
-
if (shareOptions && shareOptions.shareBaseUrl) {
|
|
680
|
-
fileContent += 'L2 - ' + (shareOptions.shareBaseUrl + url) + '\n'; //Link to Full-text - L2
|
|
681
|
-
fileContent += 'UR - ' + (shareOptions.shareBaseUrl + url) + '\n'; //Doc URL - UR
|
|
682
|
-
}
|
|
683
|
-
if (props.Website) fileContent += 'LK - https://' + props.Website.liveDomain + '\n'; //Website Link - LK
|
|
684
|
-
if (pageNumber) {
|
|
685
|
-
if (pageNumber.includes('-')) {
|
|
686
|
-
fileContent += 'SP - ' + pageNumber.split('-')[0] + '\n'; //Start Page - SP
|
|
687
|
-
fileContent += 'EP - ' + pageNumber.split('-')[1] + '\n'; //End Page - EP
|
|
688
|
-
} else {
|
|
689
|
-
fileContent += 'SP - ' + pageNumber + '\n';
|
|
690
|
-
}
|
|
691
|
-
}
|
|
692
|
-
if (article.published) fileContent += 'Y1 - ' + moment.moment(published).format('DD-MMMM-YYYY') + '\n'; //Primary Date - Y1
|
|
693
|
-
fileContent += 'Y2 - ' + moment.moment().format('DD-MMMM-YYYY') + '\n'; //Access Date - Y2
|
|
694
|
-
}
|
|
695
|
-
fileContent += 'ER -\n'; //End of Record
|
|
696
|
-
return fileContent;
|
|
697
|
-
};
|
|
698
|
-
var downloadRIS = function downloadRIS() {
|
|
699
|
-
var fileContent = generateRIS();
|
|
700
|
-
var file = new File([fileContent], 'citation-' + url + '.ris', { type: 'application/x-research-info-systems;charset=utf-8' });
|
|
701
|
-
FileSaver_min.saveAs(file, 'citation-' + url + '.ris');
|
|
702
|
-
};
|
|
703
655
|
|
|
704
656
|
var RelevantTopics = function RelevantTopics() {
|
|
705
657
|
if (content_placement && content_placement.length > 0 || documentGroupMapping && documentGroupMapping.length > 0) {
|
|
@@ -746,7 +698,7 @@ var Article = React.forwardRef(function (props, ref) {
|
|
|
746
698
|
React__default['default'].createElement(
|
|
747
699
|
'style',
|
|
748
700
|
{ jsx: 'true' },
|
|
749
|
-
'\n
|
|
701
|
+
'\n .related-link:not(:first-child):before {\n content: \' | \';\n }\n '
|
|
750
702
|
)
|
|
751
703
|
);
|
|
752
704
|
}
|
|
@@ -1043,7 +995,7 @@ var Article = React.forwardRef(function (props, ref) {
|
|
|
1043
995
|
var shareTitle = article.title;
|
|
1044
996
|
var shareSummary = article.summary;
|
|
1045
997
|
var shareImage = thumbnail && thumbnail.asset ? urlFor({ client: props.client, source: thumbnail.asset }) : shareImageDefault;
|
|
1046
|
-
var siteName = props.
|
|
998
|
+
var siteName = props.website && props.website.title ? props.website.title : '';
|
|
1047
999
|
var shareKeywords = getKeywords(props.article).join(',');
|
|
1048
1000
|
|
|
1049
1001
|
var meta = {
|
|
@@ -1290,23 +1242,12 @@ var Article = React.forwardRef(function (props, ref) {
|
|
|
1290
1242
|
)
|
|
1291
1243
|
)
|
|
1292
1244
|
),
|
|
1293
|
-
React__default['default'].createElement(
|
|
1294
|
-
'
|
|
1295
|
-
{
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
return downloadRIS();
|
|
1300
|
-
} },
|
|
1301
|
-
'Download RIS'
|
|
1302
|
-
),
|
|
1303
|
-
issue && issue.url && React__default['default'].createElement(
|
|
1304
|
-
'a',
|
|
1305
|
-
{ rel: 'noopener', href: issue.url, target: '_blank', title: 'Download issue' },
|
|
1306
|
-
React__default['default'].createElement('img', { style: { margin: '1rem', maxHeight: '40px', maxWidth: '40px' }, src: '/download.png', alt: 'download issue' }),
|
|
1307
|
-
'Download Issue : ',
|
|
1308
|
-
issue.name
|
|
1309
|
-
)
|
|
1245
|
+
issue && issue.url && React__default['default'].createElement(
|
|
1246
|
+
'a',
|
|
1247
|
+
{ rel: 'noopener', href: issue.url, target: '_blank', title: 'Download issue' },
|
|
1248
|
+
React__default['default'].createElement('img', { style: { margin: '1rem', maxHeight: '40px', maxWidth: '40px' }, src: '/download.png', alt: 'download issue' }),
|
|
1249
|
+
'Download Issue : ',
|
|
1250
|
+
issue.name
|
|
1310
1251
|
)
|
|
1311
1252
|
),
|
|
1312
1253
|
React__default['default'].createElement('div', { className: 'clearfix', style: { minHeight: '1px' } }),
|
package/dist/cjs/getQuery.js
CHANGED
|
@@ -12,7 +12,7 @@ var getQuery = function getQuery(type) {
|
|
|
12
12
|
case 'related':
|
|
13
13
|
return '*[\n _type == "article"\n && defined(title)\n && defined(url)\n && !(_id in path("drafts.**"))\n && is_visible == true\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock!=true\n && taxonomyMapping[]._ref in $taxonomy\n && taxonomyMapping[].disableAds != \'true\'\n && contentCategory->.name != \'Poll\'\n && contentCategory->.name != \'Slideshows\'\n && contentCategory->.disableAds != \'true\'\n && ExcludeFromInfiniteScroll !=true\n && url.current != $url\n && !defined(body[].videos)\n ' + conditions + '\n ]| order(published desc)[' + (articleCount ? articleCount : '$index') + ']{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n asset->,\n images[]{\n ...,\n asset->\n },\n content[]{\n ...,\n asset->\n },\n videos[]{\n ...,\n thumbnail{\n _type,\n asset->\n }\n },\n response[]{\n ...,\n asset->\n },\n quizzes[]{\n ...,\n answer[]{\n ...,\n asset->\n },\n question[]{\n ...,\n asset->\n }\n },\n poster {\n _type,\n asset->\n },\n slides[]{\n ...,\n slideshowImage{\n ...,\n asset->\n }\n },\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n }\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'content_placement\': taxonomyMapping[]-> {\n _id,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n disableAds,\n showSocialShare\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url\n }\n }';
|
|
14
14
|
case 'article':
|
|
15
|
-
return '*[\n _type == "article"\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible != false\n && url.current == $url\n ' + conditions + '\n ][0]{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n issueGroup-> { _id, name, identifier, parent-> },\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n asset->,\n images[]{\n ...,\n asset->\n },\n content[]{\n ...,\n asset->\n },\n videos[]{\n ...,\n thumbnail{\n _type,\n asset->\n }\n },\n response[]{\n ...,\n asset->\n },\n quizzes[]{\n ...,\n answer[]{\n ...,\n asset->\n },\n question[]{\n ...,\n asset->\n }\n },\n poster {\n _type,\n asset->\n },\n slides[]{\n ...,\n slideshowImage{\n ...,\n asset->\n }\n },\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n medias[]{\n ...,\n upload_doc {\n _type,\n asset-> \n },\n poster {\n _type,\n asset-> \n }\n },\n articles[]{\n ...,\n thumbnail{\n ...,\n asset-> \n },\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n text[]{\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n }\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n ...,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n showSocialShare\n },\n documentGroup-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n isSeries,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n volume,\n
|
|
15
|
+
return '*[\n _type == "article"\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible != false\n && url.current == $url\n ' + conditions + '\n ][0]{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n issueGroup-> { _id, name, identifier, parent-> },\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n asset->,\n images[]{\n ...,\n asset->\n },\n content[]{\n ...,\n asset->\n },\n videos[]{\n ...,\n thumbnail{\n _type,\n asset->\n }\n },\n response[]{\n ...,\n asset->\n },\n quizzes[]{\n ...,\n answer[]{\n ...,\n asset->\n },\n question[]{\n ...,\n asset->\n }\n },\n poster {\n _type,\n asset->\n },\n slides[]{\n ...,\n slideshowImage{\n ...,\n asset->\n }\n },\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n medias[]{\n ...,\n upload_doc {\n _type,\n asset-> \n },\n poster {\n _type,\n asset-> \n }\n },\n articles[]{\n ...,\n thumbnail{\n ...,\n asset-> \n },\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n text[]{\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n }\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n ...,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n showSocialShare\n },\n documentGroup-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n isSeries,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n volume,\n \'issueNumber\': number,\n \'articleSource\': source,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url\n }\n\n }';
|
|
16
16
|
case 'publication':
|
|
17
17
|
return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issues\': *[_type == \'publication\'\n && is_visible\n && references(^._id)\n && defined(identifier)] {\n ...,\n thumbnail{ ..., asset-> },\n taxonomyMapping[]->,\n pdf{asset->},\n } | order(year desc, month desc)\n }';
|
|
18
18
|
case 'issue':
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as _extends$1 } from './extends-6d8e3924.js';
|
|
2
2
|
import { _ as _typeof$2 } from './typeof-e9fc0c5d.js';
|
|
3
3
|
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-a6ba2ec4.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.1';
|
|
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/CMEDeck.js
CHANGED
|
@@ -309,11 +309,7 @@ var CMEDeck = function CMEDeck(_ref) {
|
|
|
309
309
|
return React__default.createElement(
|
|
310
310
|
'div',
|
|
311
311
|
{ className: 'd-flex justify-content-between' },
|
|
312
|
-
currentPage
|
|
313
|
-
'a',
|
|
314
|
-
{ href: '?page=' + (currentPage - 1) },
|
|
315
|
-
'<< Previous'
|
|
316
|
-
),
|
|
312
|
+
currentPage > 1 ,
|
|
317
313
|
React__default.createElement(
|
|
318
314
|
'a',
|
|
319
315
|
{ href: '?page=' + (currentPage + 1) },
|
|
@@ -225,7 +225,7 @@ VideoProgramLandingPage.getInitialData = function () {
|
|
|
225
225
|
url: pathname
|
|
226
226
|
};
|
|
227
227
|
|
|
228
|
-
query = '*[\n _type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible == true\n && dateTime(published) <= dateTime(now())\n && references(\'' + taxonomyId + '\')\n ' + (topicId ? '&& references(\'' + topicId + '\')' : '') + '\n ] | order(published desc) [$from...$to]{\n \t\t...,\n \t\ttitle,\n \t\tsummary,\n \t\tpublished,\n \t\tthumbnail,\n \t\turl,\n \t\ttaxonomy,\n \t\tcontentCategory->,\n \t\tbody[_type == "youtubeGallery"],\n \t\t\'pageNumber\': ' + currentPage + '\n \t}';
|
|
228
|
+
query = '*[\n _type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible == true\n && dateTime(published) <= dateTime(now())\n && references(\'' + taxonomyId + '\')\n ' + (topicId ? '&& references(\'' + topicId + '\')' : '') + '\n ] | order(published desc) [$from...$to]{\n \t\t...,\n \t\ttitle,\n \t\tsummary,\n \t\tpublished,\n \t\tthumbnail{ ..., asset->},\n \t\turl,\n \t\ttaxonomy,\n \t\tcontentCategory->,\n \t\tbody[_type == "youtubeGallery"]{\n ...,\n videos[]{\n ...,\n thumbnail{...,asset->}\n }\n },\n \t\t\'pageNumber\': ' + currentPage + '\n \t}';
|
|
229
229
|
_context.next = 26;
|
|
230
230
|
return client.fetch(query, params);
|
|
231
231
|
|
|
@@ -38,7 +38,7 @@ var VideoSeriesFilter = function VideoSeriesFilter(props) {
|
|
|
38
38
|
case 0:
|
|
39
39
|
loadingStatus && loadingStatus(true);
|
|
40
40
|
filteredList(null);
|
|
41
|
-
query = '*[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url) ' + (filter.id ? ' && references(\'' + filter.id + '\')' : '') + '\n && references(\'' + taxonomyID + '\')\n && is_visible == true\n && published <= now()\n && passwordLock != true\n ] | order(published desc) [$from...$to]{\n ...,\n title,\n summary,\n published,\n thumbnail,\n url,\n taxonomy,\n contentCategory->,\n body[_type == "youtubeGallery"],\n \'pageNumber\': ' + currentPage + '\n }';
|
|
41
|
+
query = '*[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url) ' + (filter.id ? ' && references(\'' + filter.id + '\')' : '') + '\n && references(\'' + taxonomyID + '\')\n && is_visible == true\n && published <= now()\n && passwordLock != true\n ] | order(published desc) [$from...$to]{\n ...,\n title,\n summary,\n published,\n thumbnail{ ..., asset->},\n url,\n taxonomy,\n contentCategory->,\n body[_type == "youtubeGallery"]{\n ...,\n videos[]{\n ...,\n thumbnail{...,asset->}\n }\n },\n \'pageNumber\': ' + currentPage + '\n }';
|
|
42
42
|
_context.next = 5;
|
|
43
43
|
return client.fetch(query, params).then(function (res) {
|
|
44
44
|
filteredList({ posts: res, query: query });
|
package/dist/esm/View.js
CHANGED
|
@@ -27,13 +27,13 @@ import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
|
27
27
|
import './index-755f2cc2.js';
|
|
28
28
|
import { DiscussionEmbed } from 'disqus-react';
|
|
29
29
|
import Schema from './Schema.js';
|
|
30
|
-
import { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
|
|
31
30
|
import { _ as _Object$keys } from './keys-31dcdb31.js';
|
|
32
31
|
import { I as InfiniteScroll } from './index.es-a6137319.js';
|
|
33
32
|
import { l as lib_3 } from './index-f0fc23eb.js';
|
|
34
33
|
import getRelatedArticle from './getRelatedArticle.js';
|
|
35
34
|
import getQuery from './getQuery.js';
|
|
36
35
|
import getSeriesDetail from './getSeriesDetail.js';
|
|
36
|
+
import './_commonjsHelpers-0c4b6f40.js';
|
|
37
37
|
import './core.get-iterator-method-ea258bb1.js';
|
|
38
38
|
import './web.dom.iterable-ab4dea5c.js';
|
|
39
39
|
import './_library-528f1934.js';
|
|
@@ -436,12 +436,6 @@ var getSocialShareDisableFlag = function getSocialShareDisableFlag(article) {
|
|
|
436
436
|
return showSocialShare;
|
|
437
437
|
};
|
|
438
438
|
|
|
439
|
-
var FileSaver_min = createCommonjsModule(function (module, exports) {
|
|
440
|
-
(function(a,b){b();})(commonjsGlobal,function(){function b(a,b){return "undefined"==typeof b?b={autoBom:!1}:"object"!=typeof b&&(console.warn("Deprecated: Expected third argument to be a object"),b={autoBom:!b}),b.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a}function c(a,b,c){var d=new XMLHttpRequest;d.open("GET",a),d.responseType="blob",d.onload=function(){g(d.response,b,c);},d.onerror=function(){console.error("could not download file");},d.send();}function d(a){var b=new XMLHttpRequest;b.open("HEAD",a,!1);try{b.send();}catch(a){}return 200<=b.status&&299>=b.status}function e(a){try{a.dispatchEvent(new MouseEvent("click"));}catch(c){var b=document.createEvent("MouseEvents");b.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(b);}}var f="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof commonjsGlobal&&commonjsGlobal.global===commonjsGlobal?commonjsGlobal:void 0,a=f.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),g=f.saveAs||("object"!=typeof window||window!==f?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(b,g,h){var i=f.URL||f.webkitURL,j=document.createElement("a");g=g||b.name||"download",j.download=g,j.rel="noopener","string"==typeof b?(j.href=b,j.origin===location.origin?e(j):d(j.href)?c(b,g,h):e(j,j.target="_blank")):(j.href=i.createObjectURL(b),setTimeout(function(){i.revokeObjectURL(j.href);},4E4),setTimeout(function(){e(j);},0));}:"msSaveOrOpenBlob"in navigator?function(f,g,h){if(g=g||f.name||"download","string"!=typeof f)navigator.msSaveOrOpenBlob(b(f,h),g);else if(d(f))c(f,g,h);else {var i=document.createElement("a");i.href=f,i.target="_blank",setTimeout(function(){e(i);});}}:function(b,d,e,g){if(g=g||open("","_blank"),g&&(g.document.title=g.document.body.innerText="downloading..."),"string"==typeof b)return c(b,d,e);var h="application/octet-stream"===b.type,i=/constructor/i.test(f.HTMLElement)||f.safari,j=/CriOS\/[\d]+/.test(navigator.userAgent);if((j||h&&i||a)&&"undefined"!=typeof FileReader){var k=new FileReader;k.onloadend=function(){var a=k.result;a=j?a:a.replace(/^data:[^;]*;/,"data:attachment/file;"),g?g.location.href=a:location=a,g=null;},k.readAsDataURL(b);}else {var l=f.URL||f.webkitURL,m=l.createObjectURL(b);g?g.location=m:location.href=m,g=null,setTimeout(function(){l.revokeObjectURL(m);},4E4);}});f.saveAs=g.saveAs=g,(module.exports=g);});
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
});
|
|
444
|
-
|
|
445
439
|
var Article = forwardRef(function (props, ref) {
|
|
446
440
|
var onVote = function () {
|
|
447
441
|
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(nodeKey, selectedChoice) {
|
|
@@ -648,48 +642,6 @@ var Article = forwardRef(function (props, ref) {
|
|
|
648
642
|
}
|
|
649
643
|
return null;
|
|
650
644
|
};
|
|
651
|
-
var generateRIS = function generateRIS() {
|
|
652
|
-
var fileContent = 'TY - JOUR\n';
|
|
653
|
-
if (issue) {
|
|
654
|
-
if (article.title) {
|
|
655
|
-
fileContent += 'TI - ' + article.title + '\n'; //Title - TI
|
|
656
|
-
fileContent += 'T1 - ' + article.title + '\n'; //Title - T1
|
|
657
|
-
}
|
|
658
|
-
if (issue.publication && issue.publication.name) {
|
|
659
|
-
fileContent += 'T2 - ' + issue.publication.name + '\n'; //Secondary Title - T2
|
|
660
|
-
fileContent += 'JF - ' + issue.publication.name + '\n'; //Journal Name - JF
|
|
661
|
-
fileContent += 'JO - ' + issue.publication.name + '\n'; //Journal Name - JO
|
|
662
|
-
}
|
|
663
|
-
if (article.summary) fileContent += 'N2 - ' + article.summary + '\n'; //Abstract - N2
|
|
664
|
-
if (issue.issueNumber) fileContent += 'IS - ' + issue.issueNumber + '\n'; //Issue Number - IS
|
|
665
|
-
fileContent += 'PB - MJH Life Sciences\n'; //Publisher - PB
|
|
666
|
-
if (issue.year) fileContent += 'PY - ' + issue.year + '\n'; //Published Year - PY
|
|
667
|
-
if (issue.volume) fileContent += 'VL - ' + issue.volume + '\n'; //Volume - VL
|
|
668
|
-
if (issue.url) fileContent += 'L1 - ' + issue.url + '\n'; //Link to PDF - L1
|
|
669
|
-
if (shareOptions && shareOptions.shareBaseUrl) {
|
|
670
|
-
fileContent += 'L2 - ' + (shareOptions.shareBaseUrl + url) + '\n'; //Link to Full-text - L2
|
|
671
|
-
fileContent += 'UR - ' + (shareOptions.shareBaseUrl + url) + '\n'; //Doc URL - UR
|
|
672
|
-
}
|
|
673
|
-
if (props.Website) fileContent += 'LK - https://' + props.Website.liveDomain + '\n'; //Website Link - LK
|
|
674
|
-
if (pageNumber) {
|
|
675
|
-
if (pageNumber.includes('-')) {
|
|
676
|
-
fileContent += 'SP - ' + pageNumber.split('-')[0] + '\n'; //Start Page - SP
|
|
677
|
-
fileContent += 'EP - ' + pageNumber.split('-')[1] + '\n'; //End Page - EP
|
|
678
|
-
} else {
|
|
679
|
-
fileContent += 'SP - ' + pageNumber + '\n';
|
|
680
|
-
}
|
|
681
|
-
}
|
|
682
|
-
if (article.published) fileContent += 'Y1 - ' + moment(published).format('DD-MMMM-YYYY') + '\n'; //Primary Date - Y1
|
|
683
|
-
fileContent += 'Y2 - ' + moment().format('DD-MMMM-YYYY') + '\n'; //Access Date - Y2
|
|
684
|
-
}
|
|
685
|
-
fileContent += 'ER -\n'; //End of Record
|
|
686
|
-
return fileContent;
|
|
687
|
-
};
|
|
688
|
-
var downloadRIS = function downloadRIS() {
|
|
689
|
-
var fileContent = generateRIS();
|
|
690
|
-
var file = new File([fileContent], 'citation-' + url + '.ris', { type: 'application/x-research-info-systems;charset=utf-8' });
|
|
691
|
-
FileSaver_min.saveAs(file, 'citation-' + url + '.ris');
|
|
692
|
-
};
|
|
693
645
|
|
|
694
646
|
var RelevantTopics = function RelevantTopics() {
|
|
695
647
|
if (content_placement && content_placement.length > 0 || documentGroupMapping && documentGroupMapping.length > 0) {
|
|
@@ -736,7 +688,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
736
688
|
React__default.createElement(
|
|
737
689
|
'style',
|
|
738
690
|
{ jsx: 'true' },
|
|
739
|
-
'\n
|
|
691
|
+
'\n .related-link:not(:first-child):before {\n content: \' | \';\n }\n '
|
|
740
692
|
)
|
|
741
693
|
);
|
|
742
694
|
}
|
|
@@ -1033,7 +985,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1033
985
|
var shareTitle = article.title;
|
|
1034
986
|
var shareSummary = article.summary;
|
|
1035
987
|
var shareImage = thumbnail && thumbnail.asset ? urlFor({ client: props.client, source: thumbnail.asset }) : shareImageDefault;
|
|
1036
|
-
var siteName = props.
|
|
988
|
+
var siteName = props.website && props.website.title ? props.website.title : '';
|
|
1037
989
|
var shareKeywords = getKeywords(props.article).join(',');
|
|
1038
990
|
|
|
1039
991
|
var meta = {
|
|
@@ -1280,23 +1232,12 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1280
1232
|
)
|
|
1281
1233
|
)
|
|
1282
1234
|
),
|
|
1283
|
-
React__default.createElement(
|
|
1284
|
-
'
|
|
1285
|
-
{
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
return downloadRIS();
|
|
1290
|
-
} },
|
|
1291
|
-
'Download RIS'
|
|
1292
|
-
),
|
|
1293
|
-
issue && issue.url && React__default.createElement(
|
|
1294
|
-
'a',
|
|
1295
|
-
{ rel: 'noopener', href: issue.url, target: '_blank', title: 'Download issue' },
|
|
1296
|
-
React__default.createElement('img', { style: { margin: '1rem', maxHeight: '40px', maxWidth: '40px' }, src: '/download.png', alt: 'download issue' }),
|
|
1297
|
-
'Download Issue : ',
|
|
1298
|
-
issue.name
|
|
1299
|
-
)
|
|
1235
|
+
issue && issue.url && React__default.createElement(
|
|
1236
|
+
'a',
|
|
1237
|
+
{ rel: 'noopener', href: issue.url, target: '_blank', title: 'Download issue' },
|
|
1238
|
+
React__default.createElement('img', { style: { margin: '1rem', maxHeight: '40px', maxWidth: '40px' }, src: '/download.png', alt: 'download issue' }),
|
|
1239
|
+
'Download Issue : ',
|
|
1240
|
+
issue.name
|
|
1300
1241
|
)
|
|
1301
1242
|
),
|
|
1302
1243
|
React__default.createElement('div', { className: 'clearfix', style: { minHeight: '1px' } }),
|
package/dist/esm/getQuery.js
CHANGED
|
@@ -10,7 +10,7 @@ var getQuery = function getQuery(type) {
|
|
|
10
10
|
case 'related':
|
|
11
11
|
return '*[\n _type == "article"\n && defined(title)\n && defined(url)\n && !(_id in path("drafts.**"))\n && is_visible == true\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock!=true\n && taxonomyMapping[]._ref in $taxonomy\n && taxonomyMapping[].disableAds != \'true\'\n && contentCategory->.name != \'Poll\'\n && contentCategory->.name != \'Slideshows\'\n && contentCategory->.disableAds != \'true\'\n && ExcludeFromInfiniteScroll !=true\n && url.current != $url\n && !defined(body[].videos)\n ' + conditions + '\n ]| order(published desc)[' + (articleCount ? articleCount : '$index') + ']{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n asset->,\n images[]{\n ...,\n asset->\n },\n content[]{\n ...,\n asset->\n },\n videos[]{\n ...,\n thumbnail{\n _type,\n asset->\n }\n },\n response[]{\n ...,\n asset->\n },\n quizzes[]{\n ...,\n answer[]{\n ...,\n asset->\n },\n question[]{\n ...,\n asset->\n }\n },\n poster {\n _type,\n asset->\n },\n slides[]{\n ...,\n slideshowImage{\n ...,\n asset->\n }\n },\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n }\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'content_placement\': taxonomyMapping[]-> {\n _id,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n disableAds,\n showSocialShare\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url\n }\n }';
|
|
12
12
|
case 'article':
|
|
13
|
-
return '*[\n _type == "article"\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible != false\n && url.current == $url\n ' + conditions + '\n ][0]{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n issueGroup-> { _id, name, identifier, parent-> },\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n asset->,\n images[]{\n ...,\n asset->\n },\n content[]{\n ...,\n asset->\n },\n videos[]{\n ...,\n thumbnail{\n _type,\n asset->\n }\n },\n response[]{\n ...,\n asset->\n },\n quizzes[]{\n ...,\n answer[]{\n ...,\n asset->\n },\n question[]{\n ...,\n asset->\n }\n },\n poster {\n _type,\n asset->\n },\n slides[]{\n ...,\n slideshowImage{\n ...,\n asset->\n }\n },\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n medias[]{\n ...,\n upload_doc {\n _type,\n asset-> \n },\n poster {\n _type,\n asset-> \n }\n },\n articles[]{\n ...,\n thumbnail{\n ...,\n asset-> \n },\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n text[]{\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n }\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n ...,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n showSocialShare\n },\n documentGroup-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n isSeries,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n volume,\n
|
|
13
|
+
return '*[\n _type == "article"\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible != false\n && url.current == $url\n ' + conditions + '\n ][0]{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n issueGroup-> { _id, name, identifier, parent-> },\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n asset->,\n images[]{\n ...,\n asset->\n },\n content[]{\n ...,\n asset->\n },\n videos[]{\n ...,\n thumbnail{\n _type,\n asset->\n }\n },\n response[]{\n ...,\n asset->\n },\n quizzes[]{\n ...,\n answer[]{\n ...,\n asset->\n },\n question[]{\n ...,\n asset->\n }\n },\n poster {\n _type,\n asset->\n },\n slides[]{\n ...,\n slideshowImage{\n ...,\n asset->\n }\n },\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n medias[]{\n ...,\n upload_doc {\n _type,\n asset-> \n },\n poster {\n _type,\n asset-> \n }\n },\n articles[]{\n ...,\n thumbnail{\n ...,\n asset-> \n },\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n text[]{\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n }\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n ...,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n showSocialShare\n },\n documentGroup-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n isSeries,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n volume,\n \'issueNumber\': number,\n \'articleSource\': source,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url\n }\n\n }';
|
|
14
14
|
case 'publication':
|
|
15
15
|
return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issues\': *[_type == \'publication\'\n && is_visible\n && references(^._id)\n && defined(identifier)] {\n ...,\n thumbnail{ ..., asset-> },\n taxonomyMapping[]->,\n pdf{asset->},\n } | order(year desc, month desc)\n }';
|
|
16
16
|
case 'issue':
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { u as unwrapExports, c as createCommonjsModule } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import { a as _core } from './core.get-iterator-method-ea258bb1.js';
|
|
3
3
|
|
|
4
4
|
var $JSON = _core.JSON || (_core.JSON = { stringify: JSON.stringify });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mjhls/mjh-framework",
|
|
3
|
-
"version": "1.0.893-
|
|
3
|
+
"version": "1.0.893-video-series-listing-thumbnail-v2",
|
|
4
4
|
"description": "Foundation Framework",
|
|
5
5
|
"author": "mjh-framework",
|
|
6
6
|
"license": "MIT",
|
|
@@ -56,7 +56,6 @@
|
|
|
56
56
|
"eslint-plugin-react": "^7.10.0",
|
|
57
57
|
"eslint-plugin-react-hooks": "^2.3.0",
|
|
58
58
|
"eslint-plugin-standard": "^3.1.0",
|
|
59
|
-
"file-saver": "^2.0.5",
|
|
60
59
|
"get-youtube-id": "^1.0.1",
|
|
61
60
|
"gh-pages": "^1.2.0",
|
|
62
61
|
"lodash": "^4.17.15",
|