instantsearch.js 4.56.1 → 4.56.2
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/cjs/connectors/infinite-hits/connectInfiniteHits.js +4 -2
- package/cjs/lib/version.js +1 -1
- package/dist/instantsearch.development.js +6 -4
- package/dist/instantsearch.development.js.map +1 -1
- package/dist/instantsearch.production.min.js +2 -2
- package/dist/instantsearch.production.min.js.map +1 -1
- package/es/connectors/infinite-hits/connectInfiniteHits.js +4 -2
- package/es/lib/version.d.ts +1 -1
- package/es/lib/version.js +1 -1
- package/package.json +5 -5
|
@@ -171,7 +171,7 @@ var connectInfiniteHits = function connectInfiniteHits(renderFn) {
|
|
|
171
171
|
});
|
|
172
172
|
isFirstPage = state.page === undefined || getFirstReceivedPage(state, cachedHits) === 0;
|
|
173
173
|
} else {
|
|
174
|
-
var
|
|
174
|
+
var _state$disjunctiveFac, _state$hierarchicalFa;
|
|
175
175
|
var _state$page3 = state.page,
|
|
176
176
|
_page = _state$page3 === void 0 ? 0 : _state$page3;
|
|
177
177
|
if (escapeHTML && results.hits.length > 0) {
|
|
@@ -195,7 +195,9 @@ var connectInfiniteHits = function connectInfiniteHits(renderFn) {
|
|
|
195
195
|
hasDynamicWidgets = true;
|
|
196
196
|
}
|
|
197
197
|
});
|
|
198
|
-
var hasNoFacets = !((
|
|
198
|
+
var hasNoFacets = !((_state$disjunctiveFac = state.disjunctiveFacets) !== null && _state$disjunctiveFac !== void 0 && _state$disjunctiveFac.length) && !(state.facets || []).filter(function (f) {
|
|
199
|
+
return f !== '*';
|
|
200
|
+
}).length && !((_state$hierarchicalFa = state.hierarchicalFacets) !== null && _state$hierarchicalFa !== void 0 && _state$hierarchicalFa.length);
|
|
199
201
|
if (cachedHits[_page] === undefined && !results.__isArtificial && instantSearchInstance.status === 'idle' && !(hasDynamicWidgets && hasNoFacets)) {
|
|
200
202
|
cachedHits[_page] = transformedHits;
|
|
201
203
|
cache.write({
|
package/cjs/lib/version.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! InstantSearch.js 4.56.
|
|
1
|
+
/*! InstantSearch.js 4.56.2 | © Algolia, Inc. and contributors; MIT License | https://github.com/algolia/instantsearch.js */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
@@ -3079,7 +3079,7 @@
|
|
|
3079
3079
|
});
|
|
3080
3080
|
isFirstPage = state.page === undefined || getFirstReceivedPage(state, cachedHits) === 0;
|
|
3081
3081
|
} else {
|
|
3082
|
-
var
|
|
3082
|
+
var _state$disjunctiveFac, _state$hierarchicalFa;
|
|
3083
3083
|
var _state$page3 = state.page,
|
|
3084
3084
|
_page = _state$page3 === void 0 ? 0 : _state$page3;
|
|
3085
3085
|
if (escapeHTML && results.hits.length > 0) {
|
|
@@ -3103,7 +3103,9 @@
|
|
|
3103
3103
|
hasDynamicWidgets = true;
|
|
3104
3104
|
}
|
|
3105
3105
|
});
|
|
3106
|
-
var hasNoFacets = !((
|
|
3106
|
+
var hasNoFacets = !((_state$disjunctiveFac = state.disjunctiveFacets) !== null && _state$disjunctiveFac !== void 0 && _state$disjunctiveFac.length) && !(state.facets || []).filter(function (f) {
|
|
3107
|
+
return f !== '*';
|
|
3108
|
+
}).length && !((_state$hierarchicalFa = state.hierarchicalFacets) !== null && _state$hierarchicalFa !== void 0 && _state$hierarchicalFa.length);
|
|
3107
3109
|
if (cachedHits[_page] === undefined && !results.__isArtificial && instantSearchInstance.status === 'idle' && !(hasDynamicWidgets && hasNoFacets)) {
|
|
3108
3110
|
cachedHits[_page] = transformedHits;
|
|
3109
3111
|
cache.write({
|
|
@@ -14032,7 +14034,7 @@
|
|
|
14032
14034
|
};
|
|
14033
14035
|
}
|
|
14034
14036
|
|
|
14035
|
-
var version$1 = '4.56.
|
|
14037
|
+
var version$1 = '4.56.2';
|
|
14036
14038
|
|
|
14037
14039
|
var withUsage$r = createDocumentationMessageGenerator({
|
|
14038
14040
|
name: 'instantsearch'
|