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.
@@ -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 _results$disjunctiveF, _results$facets, _results$hierarchical;
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 = !((_results$disjunctiveF = results.disjunctiveFacets) !== null && _results$disjunctiveF !== void 0 && _results$disjunctiveF.length) && !((_results$facets = results.facets) !== null && _results$facets !== void 0 && _results$facets.length) && !((_results$hierarchical = results.hierarchicalFacets) !== null && _results$hierarchical !== void 0 && _results$hierarchical.length);
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({
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _default = '4.56.1';
7
+ var _default = '4.56.2';
8
8
  exports.default = _default;
@@ -1,4 +1,4 @@
1
- /*! InstantSearch.js 4.56.1 | © Algolia, Inc. and contributors; MIT License | https://github.com/algolia/instantsearch.js */
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 _results$disjunctiveF, _results$facets, _results$hierarchical;
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 = !((_results$disjunctiveF = results.disjunctiveFacets) !== null && _results$disjunctiveF !== void 0 && _results$disjunctiveF.length) && !((_results$facets = results.facets) !== null && _results$facets !== void 0 && _results$facets.length) && !((_results$hierarchical = results.hierarchicalFacets) !== null && _results$hierarchical !== void 0 && _results$hierarchical.length);
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.1';
14037
+ var version$1 = '4.56.2';
14036
14038
 
14037
14039
  var withUsage$r = createDocumentationMessageGenerator({
14038
14040
  name: 'instantsearch'