@mjhls/mjh-framework 1.0.896 → 1.0.897
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 +1 -1
- package/dist/cjs/AlgoliaSearch.js +84 -73
- package/dist/esm/AlgoliaSearch.js +84 -73
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# mjh-framework v. 1.0.
|
|
1
|
+
# mjh-framework v. 1.0.897
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/mjh-framework) [](https://standardjs.com)
|
|
4
4
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var _extends = require('./extends-7c86182f.js');
|
|
4
|
-
var _typeof$2 = require('./typeof-567e31ff.js');
|
|
5
4
|
var inherits$1 = require('./inherits-de66ea16.js');
|
|
5
|
+
var _typeof$2 = require('./typeof-567e31ff.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var PropTypes = require('prop-types');
|
|
8
8
|
var _typeof$1 = require('./typeof-1358762e.js');
|
|
@@ -15,11 +15,11 @@ var index$1 = require('./index-eadd5035.js');
|
|
|
15
15
|
require('./_commonjsHelpers-06173234.js');
|
|
16
16
|
require('./core.get-iterator-method-5643aa10.js');
|
|
17
17
|
require('./_object-pie-083f2dd6.js');
|
|
18
|
+
require('./_object-sap-d1978572.js');
|
|
19
|
+
require('./define-property-e8404b64.js');
|
|
18
20
|
require('./web.dom.iterable-d98303e0.js');
|
|
19
21
|
require('./_is-array-54228b29.js');
|
|
20
22
|
require('./_library-dd23b178.js');
|
|
21
|
-
require('./_object-sap-d1978572.js');
|
|
22
|
-
require('./define-property-e8404b64.js');
|
|
23
23
|
require('./slicedToArray-067dd3bc.js');
|
|
24
24
|
require('./index-d48b231c.js');
|
|
25
25
|
require('react-dom');
|
|
@@ -14174,6 +14174,85 @@ var QueryRuleCustomDataWidget = function QueryRuleCustomDataWidget(props) {
|
|
|
14174
14174
|
|
|
14175
14175
|
connectQueryRules(QueryRuleCustomDataWidget);
|
|
14176
14176
|
|
|
14177
|
+
var HitComponent = function HitComponent(hits, props) {
|
|
14178
|
+
var propsObj = {
|
|
14179
|
+
styles: props.deckStyles,
|
|
14180
|
+
client: props.sanityClient,
|
|
14181
|
+
siteType: props.siteType,
|
|
14182
|
+
defaultImage: props.defaultImage,
|
|
14183
|
+
hit: hits.hit,
|
|
14184
|
+
variant: props.variant
|
|
14185
|
+
};
|
|
14186
|
+
var styles = propsObj.styles,
|
|
14187
|
+
client = propsObj.client,
|
|
14188
|
+
hit = propsObj.hit,
|
|
14189
|
+
siteType = propsObj.siteType,
|
|
14190
|
+
defaultImage = propsObj.defaultImage,
|
|
14191
|
+
variant = propsObj.variant;
|
|
14192
|
+
|
|
14193
|
+
var dateFormat = siteType === 'pharmsci' ? 'MMMM DD, YYYY' : 'MMMM Do YYYY';
|
|
14194
|
+
|
|
14195
|
+
return React__default['default'].createElement(
|
|
14196
|
+
'div',
|
|
14197
|
+
{ key: hit.url, className: 'hitResult ' + styles.article },
|
|
14198
|
+
hit.thumbnail && hit.thumbnail.asset ? imageDiv(hit, styles, client, siteType, defaultImage, variant) : !hit.thumbnail && siteType !== 'pharmsci' ? imageDiv(hit, styles, client, siteType, defaultImage, variant) : null,
|
|
14199
|
+
React__default['default'].createElement(
|
|
14200
|
+
'div',
|
|
14201
|
+
{ className: styles.info, style: props.variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
|
|
14202
|
+
React__default['default'].createElement(
|
|
14203
|
+
'a',
|
|
14204
|
+
{ href: '/view/' + hit.url },
|
|
14205
|
+
React__default['default'].createElement(
|
|
14206
|
+
'h2',
|
|
14207
|
+
null,
|
|
14208
|
+
hit.title
|
|
14209
|
+
)
|
|
14210
|
+
),
|
|
14211
|
+
hit.pubDateSort && React__default['default'].createElement(
|
|
14212
|
+
'p',
|
|
14213
|
+
{ className: styles.published },
|
|
14214
|
+
moment.moment(hit.pubDateSort).format('' + dateFormat)
|
|
14215
|
+
),
|
|
14216
|
+
hit.authorMapping && hit.authorMapping.length > 0 && React__default['default'].createElement(
|
|
14217
|
+
'p',
|
|
14218
|
+
{ className: styles.author },
|
|
14219
|
+
hit.authorMapping.map(function (author, index) {
|
|
14220
|
+
return React__default['default'].createElement(
|
|
14221
|
+
'span',
|
|
14222
|
+
{ key: author + '_' + index },
|
|
14223
|
+
author.displayName
|
|
14224
|
+
);
|
|
14225
|
+
})
|
|
14226
|
+
),
|
|
14227
|
+
hit.summary && React__default['default'].createElement('p', { dangerouslySetInnerHTML: { __html: hit.summary }, className: styles.summary })
|
|
14228
|
+
)
|
|
14229
|
+
);
|
|
14230
|
+
};
|
|
14231
|
+
|
|
14232
|
+
var imageDiv = function imageDiv(hit, styles, client, siteType, defaultImage, variant) {
|
|
14233
|
+
return React__default['default'].createElement(
|
|
14234
|
+
'a',
|
|
14235
|
+
{ href: '/view/' + hit.url, style: variant === 'right' ? { flexDirection: 'row-reverse' } : {} },
|
|
14236
|
+
React__default['default'].createElement(
|
|
14237
|
+
'div',
|
|
14238
|
+
{ className: styles.thumb },
|
|
14239
|
+
React__default['default'].createElement(
|
|
14240
|
+
'figure',
|
|
14241
|
+
null,
|
|
14242
|
+
React__default['default'].createElement(
|
|
14243
|
+
index$1.LazyLoad,
|
|
14244
|
+
{ once: true },
|
|
14245
|
+
React__default['default'].createElement('img', {
|
|
14246
|
+
src: hit.thumbnail && hit.thumbnail.asset ? urlFor({ client: client, source: hit.thumbnail }) : hit.thumbnail && _typeof$2._typeof(hit.thumbnail === 'string') ? hit.thumbnail : defaultImage
|
|
14247
|
+
})
|
|
14248
|
+
)
|
|
14249
|
+
)
|
|
14250
|
+
)
|
|
14251
|
+
);
|
|
14252
|
+
};
|
|
14253
|
+
|
|
14254
|
+
var nowTimestamp = Date.now();
|
|
14255
|
+
|
|
14177
14256
|
var AlgoliaSearch = function (_React$Component) {
|
|
14178
14257
|
inherits$1._inherits(AlgoliaSearch, _React$Component);
|
|
14179
14258
|
|
|
@@ -14184,78 +14263,10 @@ var AlgoliaSearch = function (_React$Component) {
|
|
|
14184
14263
|
}
|
|
14185
14264
|
|
|
14186
14265
|
inherits$1._createClass(AlgoliaSearch, [{
|
|
14187
|
-
key: 'Deck',
|
|
14188
|
-
value: function Deck(props) {
|
|
14189
|
-
var _props$propsObj = props.propsObj,
|
|
14190
|
-
styles = _props$propsObj.styles,
|
|
14191
|
-
client = _props$propsObj.client;
|
|
14192
|
-
|
|
14193
|
-
|
|
14194
|
-
var hit = props.hit;
|
|
14195
|
-
if (moment.moment().isSameOrBefore(props.hit.pubDateSort)) return null;
|
|
14196
|
-
return React__default['default'].createElement(
|
|
14197
|
-
'div',
|
|
14198
|
-
{ key: hit.url, className: 'hitResult ' + styles.article },
|
|
14199
|
-
React__default['default'].createElement(
|
|
14200
|
-
'a',
|
|
14201
|
-
{ href: '/view/' + hit.url, style: this.props.variant === 'right' ? { flexDirection: 'row-reverse' } : {} },
|
|
14202
|
-
React__default['default'].createElement(
|
|
14203
|
-
'div',
|
|
14204
|
-
{ className: styles.thumb },
|
|
14205
|
-
React__default['default'].createElement(
|
|
14206
|
-
'figure',
|
|
14207
|
-
null,
|
|
14208
|
-
React__default['default'].createElement(
|
|
14209
|
-
index$1.LazyLoad,
|
|
14210
|
-
{ once: true },
|
|
14211
|
-
React__default['default'].createElement('img', {
|
|
14212
|
-
src: hit.thumbnail && hit.thumbnail.asset ? urlFor({ client: client, source: hit.thumbnail }) : hit.thumbnail && _typeof$2._typeof(hit.thumbnail === 'string') ? hit.thumbnail : this.props.defaultImage
|
|
14213
|
-
})
|
|
14214
|
-
)
|
|
14215
|
-
)
|
|
14216
|
-
)
|
|
14217
|
-
),
|
|
14218
|
-
React__default['default'].createElement(
|
|
14219
|
-
'div',
|
|
14220
|
-
{ className: styles.info, style: this.props.variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
|
|
14221
|
-
React__default['default'].createElement(
|
|
14222
|
-
'a',
|
|
14223
|
-
{ href: '/view/' + hit.url },
|
|
14224
|
-
React__default['default'].createElement(
|
|
14225
|
-
'h2',
|
|
14226
|
-
null,
|
|
14227
|
-
hit.title
|
|
14228
|
-
)
|
|
14229
|
-
),
|
|
14230
|
-
hit.pubDateSort && React__default['default'].createElement(
|
|
14231
|
-
'p',
|
|
14232
|
-
{ className: styles.published },
|
|
14233
|
-
moment.moment(hit.pubDateSort).format('MMMM Do YYYY')
|
|
14234
|
-
),
|
|
14235
|
-
hit.authorMapping && hit.authorMapping.length > 0 && React__default['default'].createElement(
|
|
14236
|
-
'p',
|
|
14237
|
-
{ className: styles.author },
|
|
14238
|
-
hit.authorMapping.map(function (author) {
|
|
14239
|
-
return React__default['default'].createElement(
|
|
14240
|
-
'span',
|
|
14241
|
-
null,
|
|
14242
|
-
author.displayName
|
|
14243
|
-
);
|
|
14244
|
-
})
|
|
14245
|
-
),
|
|
14246
|
-
hit.summary && React__default['default'].createElement('p', { dangerouslySetInnerHTML: { __html: hit.summary }, className: styles.summary })
|
|
14247
|
-
)
|
|
14248
|
-
);
|
|
14249
|
-
}
|
|
14250
|
-
}, {
|
|
14251
14266
|
key: 'render',
|
|
14252
14267
|
value: function render() {
|
|
14253
14268
|
var _this2 = this;
|
|
14254
14269
|
|
|
14255
|
-
var propsObj = {
|
|
14256
|
-
styles: this.props.deckStyles,
|
|
14257
|
-
client: this.props.sanityClient
|
|
14258
|
-
};
|
|
14259
14270
|
return React__default['default'].createElement(
|
|
14260
14271
|
React__default['default'].Fragment,
|
|
14261
14272
|
null,
|
|
@@ -14270,7 +14281,7 @@ var AlgoliaSearch = function (_React$Component) {
|
|
|
14270
14281
|
indexName: this.props.indexName,
|
|
14271
14282
|
onSearchParameters: this.props.onSearchParameters
|
|
14272
14283
|
}, this.props),
|
|
14273
|
-
React__default['default'].createElement(Configure, { hitsPerPage: this.props.hitsPerPage || 20 }),
|
|
14284
|
+
React__default['default'].createElement(Configure, { hitsPerPage: this.props.hitsPerPage || 20, filters: 'pubDateSort <= ' + nowTimestamp }),
|
|
14274
14285
|
React__default['default'].createElement(
|
|
14275
14286
|
'div',
|
|
14276
14287
|
{ className: 'd-flex align-items-center' },
|
|
@@ -14300,7 +14311,7 @@ var AlgoliaSearch = function (_React$Component) {
|
|
|
14300
14311
|
'div',
|
|
14301
14312
|
{ className: 'AlgoliaResults' },
|
|
14302
14313
|
React__default['default'].createElement(Hits, { hitComponent: function hitComponent(hit) {
|
|
14303
|
-
return
|
|
14314
|
+
return HitComponent(hit, _this2.props);
|
|
14304
14315
|
} })
|
|
14305
14316
|
),
|
|
14306
14317
|
React__default['default'].createElement(Pagination, null)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as _extends$1 } from './extends-6d8e3924.js';
|
|
2
|
-
import { _ as _typeof$2 } from './typeof-e9fc0c5d.js';
|
|
3
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
|
+
import { _ as _typeof$2 } from './typeof-e9fc0c5d.js';
|
|
4
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';
|
|
@@ -13,11 +13,11 @@ import { L as LazyLoad } from './index-755f2cc2.js';
|
|
|
13
13
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
14
14
|
import './core.get-iterator-method-ea258bb1.js';
|
|
15
15
|
import './_object-pie-133f504a.js';
|
|
16
|
+
import './_object-sap-7cee6f84.js';
|
|
17
|
+
import './define-property-5f1bda73.js';
|
|
16
18
|
import './web.dom.iterable-ab4dea5c.js';
|
|
17
19
|
import './_is-array-8d21b9e3.js';
|
|
18
20
|
import './_library-528f1934.js';
|
|
19
|
-
import './_object-sap-7cee6f84.js';
|
|
20
|
-
import './define-property-5f1bda73.js';
|
|
21
21
|
import './slicedToArray-6ebcbfea.js';
|
|
22
22
|
import './index-3f5c03b2.js';
|
|
23
23
|
import 'react-dom';
|
|
@@ -14167,6 +14167,85 @@ var QueryRuleCustomDataWidget = function QueryRuleCustomDataWidget(props) {
|
|
|
14167
14167
|
|
|
14168
14168
|
connectQueryRules(QueryRuleCustomDataWidget);
|
|
14169
14169
|
|
|
14170
|
+
var HitComponent = function HitComponent(hits, props) {
|
|
14171
|
+
var propsObj = {
|
|
14172
|
+
styles: props.deckStyles,
|
|
14173
|
+
client: props.sanityClient,
|
|
14174
|
+
siteType: props.siteType,
|
|
14175
|
+
defaultImage: props.defaultImage,
|
|
14176
|
+
hit: hits.hit,
|
|
14177
|
+
variant: props.variant
|
|
14178
|
+
};
|
|
14179
|
+
var styles = propsObj.styles,
|
|
14180
|
+
client = propsObj.client,
|
|
14181
|
+
hit = propsObj.hit,
|
|
14182
|
+
siteType = propsObj.siteType,
|
|
14183
|
+
defaultImage = propsObj.defaultImage,
|
|
14184
|
+
variant = propsObj.variant;
|
|
14185
|
+
|
|
14186
|
+
var dateFormat = siteType === 'pharmsci' ? 'MMMM DD, YYYY' : 'MMMM Do YYYY';
|
|
14187
|
+
|
|
14188
|
+
return React__default.createElement(
|
|
14189
|
+
'div',
|
|
14190
|
+
{ key: hit.url, className: 'hitResult ' + styles.article },
|
|
14191
|
+
hit.thumbnail && hit.thumbnail.asset ? imageDiv(hit, styles, client, siteType, defaultImage, variant) : !hit.thumbnail && siteType !== 'pharmsci' ? imageDiv(hit, styles, client, siteType, defaultImage, variant) : null,
|
|
14192
|
+
React__default.createElement(
|
|
14193
|
+
'div',
|
|
14194
|
+
{ className: styles.info, style: props.variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
|
|
14195
|
+
React__default.createElement(
|
|
14196
|
+
'a',
|
|
14197
|
+
{ href: '/view/' + hit.url },
|
|
14198
|
+
React__default.createElement(
|
|
14199
|
+
'h2',
|
|
14200
|
+
null,
|
|
14201
|
+
hit.title
|
|
14202
|
+
)
|
|
14203
|
+
),
|
|
14204
|
+
hit.pubDateSort && React__default.createElement(
|
|
14205
|
+
'p',
|
|
14206
|
+
{ className: styles.published },
|
|
14207
|
+
moment(hit.pubDateSort).format('' + dateFormat)
|
|
14208
|
+
),
|
|
14209
|
+
hit.authorMapping && hit.authorMapping.length > 0 && React__default.createElement(
|
|
14210
|
+
'p',
|
|
14211
|
+
{ className: styles.author },
|
|
14212
|
+
hit.authorMapping.map(function (author, index) {
|
|
14213
|
+
return React__default.createElement(
|
|
14214
|
+
'span',
|
|
14215
|
+
{ key: author + '_' + index },
|
|
14216
|
+
author.displayName
|
|
14217
|
+
);
|
|
14218
|
+
})
|
|
14219
|
+
),
|
|
14220
|
+
hit.summary && React__default.createElement('p', { dangerouslySetInnerHTML: { __html: hit.summary }, className: styles.summary })
|
|
14221
|
+
)
|
|
14222
|
+
);
|
|
14223
|
+
};
|
|
14224
|
+
|
|
14225
|
+
var imageDiv = function imageDiv(hit, styles, client, siteType, defaultImage, variant) {
|
|
14226
|
+
return React__default.createElement(
|
|
14227
|
+
'a',
|
|
14228
|
+
{ href: '/view/' + hit.url, style: variant === 'right' ? { flexDirection: 'row-reverse' } : {} },
|
|
14229
|
+
React__default.createElement(
|
|
14230
|
+
'div',
|
|
14231
|
+
{ className: styles.thumb },
|
|
14232
|
+
React__default.createElement(
|
|
14233
|
+
'figure',
|
|
14234
|
+
null,
|
|
14235
|
+
React__default.createElement(
|
|
14236
|
+
LazyLoad,
|
|
14237
|
+
{ once: true },
|
|
14238
|
+
React__default.createElement('img', {
|
|
14239
|
+
src: hit.thumbnail && hit.thumbnail.asset ? urlFor({ client: client, source: hit.thumbnail }) : hit.thumbnail && _typeof$2(hit.thumbnail === 'string') ? hit.thumbnail : defaultImage
|
|
14240
|
+
})
|
|
14241
|
+
)
|
|
14242
|
+
)
|
|
14243
|
+
)
|
|
14244
|
+
);
|
|
14245
|
+
};
|
|
14246
|
+
|
|
14247
|
+
var nowTimestamp = Date.now();
|
|
14248
|
+
|
|
14170
14249
|
var AlgoliaSearch = function (_React$Component) {
|
|
14171
14250
|
_inherits$1(AlgoliaSearch, _React$Component);
|
|
14172
14251
|
|
|
@@ -14177,78 +14256,10 @@ var AlgoliaSearch = function (_React$Component) {
|
|
|
14177
14256
|
}
|
|
14178
14257
|
|
|
14179
14258
|
_createClass$1(AlgoliaSearch, [{
|
|
14180
|
-
key: 'Deck',
|
|
14181
|
-
value: function Deck(props) {
|
|
14182
|
-
var _props$propsObj = props.propsObj,
|
|
14183
|
-
styles = _props$propsObj.styles,
|
|
14184
|
-
client = _props$propsObj.client;
|
|
14185
|
-
|
|
14186
|
-
|
|
14187
|
-
var hit = props.hit;
|
|
14188
|
-
if (moment().isSameOrBefore(props.hit.pubDateSort)) return null;
|
|
14189
|
-
return React__default.createElement(
|
|
14190
|
-
'div',
|
|
14191
|
-
{ key: hit.url, className: 'hitResult ' + styles.article },
|
|
14192
|
-
React__default.createElement(
|
|
14193
|
-
'a',
|
|
14194
|
-
{ href: '/view/' + hit.url, style: this.props.variant === 'right' ? { flexDirection: 'row-reverse' } : {} },
|
|
14195
|
-
React__default.createElement(
|
|
14196
|
-
'div',
|
|
14197
|
-
{ className: styles.thumb },
|
|
14198
|
-
React__default.createElement(
|
|
14199
|
-
'figure',
|
|
14200
|
-
null,
|
|
14201
|
-
React__default.createElement(
|
|
14202
|
-
LazyLoad,
|
|
14203
|
-
{ once: true },
|
|
14204
|
-
React__default.createElement('img', {
|
|
14205
|
-
src: hit.thumbnail && hit.thumbnail.asset ? urlFor({ client: client, source: hit.thumbnail }) : hit.thumbnail && _typeof$2(hit.thumbnail === 'string') ? hit.thumbnail : this.props.defaultImage
|
|
14206
|
-
})
|
|
14207
|
-
)
|
|
14208
|
-
)
|
|
14209
|
-
)
|
|
14210
|
-
),
|
|
14211
|
-
React__default.createElement(
|
|
14212
|
-
'div',
|
|
14213
|
-
{ className: styles.info, style: this.props.variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
|
|
14214
|
-
React__default.createElement(
|
|
14215
|
-
'a',
|
|
14216
|
-
{ href: '/view/' + hit.url },
|
|
14217
|
-
React__default.createElement(
|
|
14218
|
-
'h2',
|
|
14219
|
-
null,
|
|
14220
|
-
hit.title
|
|
14221
|
-
)
|
|
14222
|
-
),
|
|
14223
|
-
hit.pubDateSort && React__default.createElement(
|
|
14224
|
-
'p',
|
|
14225
|
-
{ className: styles.published },
|
|
14226
|
-
moment(hit.pubDateSort).format('MMMM Do YYYY')
|
|
14227
|
-
),
|
|
14228
|
-
hit.authorMapping && hit.authorMapping.length > 0 && React__default.createElement(
|
|
14229
|
-
'p',
|
|
14230
|
-
{ className: styles.author },
|
|
14231
|
-
hit.authorMapping.map(function (author) {
|
|
14232
|
-
return React__default.createElement(
|
|
14233
|
-
'span',
|
|
14234
|
-
null,
|
|
14235
|
-
author.displayName
|
|
14236
|
-
);
|
|
14237
|
-
})
|
|
14238
|
-
),
|
|
14239
|
-
hit.summary && React__default.createElement('p', { dangerouslySetInnerHTML: { __html: hit.summary }, className: styles.summary })
|
|
14240
|
-
)
|
|
14241
|
-
);
|
|
14242
|
-
}
|
|
14243
|
-
}, {
|
|
14244
14259
|
key: 'render',
|
|
14245
14260
|
value: function render() {
|
|
14246
14261
|
var _this2 = this;
|
|
14247
14262
|
|
|
14248
|
-
var propsObj = {
|
|
14249
|
-
styles: this.props.deckStyles,
|
|
14250
|
-
client: this.props.sanityClient
|
|
14251
|
-
};
|
|
14252
14263
|
return React__default.createElement(
|
|
14253
14264
|
React__default.Fragment,
|
|
14254
14265
|
null,
|
|
@@ -14263,7 +14274,7 @@ var AlgoliaSearch = function (_React$Component) {
|
|
|
14263
14274
|
indexName: this.props.indexName,
|
|
14264
14275
|
onSearchParameters: this.props.onSearchParameters
|
|
14265
14276
|
}, this.props),
|
|
14266
|
-
React__default.createElement(Configure, { hitsPerPage: this.props.hitsPerPage || 20 }),
|
|
14277
|
+
React__default.createElement(Configure, { hitsPerPage: this.props.hitsPerPage || 20, filters: 'pubDateSort <= ' + nowTimestamp }),
|
|
14267
14278
|
React__default.createElement(
|
|
14268
14279
|
'div',
|
|
14269
14280
|
{ className: 'd-flex align-items-center' },
|
|
@@ -14293,7 +14304,7 @@ var AlgoliaSearch = function (_React$Component) {
|
|
|
14293
14304
|
'div',
|
|
14294
14305
|
{ className: 'AlgoliaResults' },
|
|
14295
14306
|
React__default.createElement(Hits, { hitComponent: function hitComponent(hit) {
|
|
14296
|
-
return
|
|
14307
|
+
return HitComponent(hit, _this2.props);
|
|
14297
14308
|
} })
|
|
14298
14309
|
),
|
|
14299
14310
|
React__default.createElement(Pagination, null)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mjhls/mjh-framework",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.897",
|
|
4
4
|
"description": "Foundation Framework",
|
|
5
5
|
"author": "mjh-framework",
|
|
6
6
|
"license": "MIT",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"nookies": "^2.4.0",
|
|
102
102
|
"react-cookies": "^0.1.1",
|
|
103
103
|
"react-facebook": "^8.1.4",
|
|
104
|
-
"react-instantsearch-dom": "^6.
|
|
104
|
+
"react-instantsearch-dom": "^6.12.0",
|
|
105
105
|
"react-script-tag": "^1.1.2",
|
|
106
106
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
107
107
|
"shortid": "^2.2.15",
|