instantsearch.js 4.78.0 → 4.78.1

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.
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _default = exports.default = '4.78.0';
7
+ var _default = exports.default = '4.78.1';
@@ -1,4 +1,4 @@
1
- /*! InstantSearch.js 4.78.0 | © Algolia, Inc. and contributors; MIT License | https://github.com/algolia/instantsearch */
1
+ /*! InstantSearch.js 4.78.1 | © Algolia, Inc. and contributors; MIT License | https://github.com/algolia/instantsearch */
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) :
@@ -2768,7 +2768,16 @@
2768
2768
  var facets = state.facets
2769
2769
  .concat(
2770
2770
  state.disjunctiveFacets.map(function (value) {
2771
- return 'disjunctive(' + value + ')';
2771
+ if (
2772
+ state.disjunctiveFacetsRefinements &&
2773
+ state.disjunctiveFacetsRefinements[value] &&
2774
+ state.disjunctiveFacetsRefinements[value].length > 0
2775
+ ) {
2776
+ // only tag a disjunctiveFacet as disjunctive if it has a value selected
2777
+ // this helps avoid hitting the limit of 20 disjunctive facets in the Composition API
2778
+ return 'disjunctive(' + value + ')';
2779
+ }
2780
+ return value;
2772
2781
  })
2773
2782
  )
2774
2783
  .concat(requestBuilder._getHitsHierarchicalFacetsAttributes(state))
@@ -6587,7 +6596,7 @@
6587
6596
 
6588
6597
  var sortAndMergeRecommendations_1 = sortAndMergeRecommendations;
6589
6598
 
6590
- var version = '3.24.2';
6599
+ var version = '3.24.3';
6591
6600
 
6592
6601
  var escapeFacetValue$4 = escapeFacetValue_1.escapeFacetValue;
6593
6602
 
@@ -16402,7 +16411,7 @@
16402
16411
  };
16403
16412
  }
16404
16413
 
16405
- var version$1 = '4.78.0';
16414
+ var version$1 = '4.78.1';
16406
16415
 
16407
16416
  var withUsage$v = createDocumentationMessageGenerator({
16408
16417
  name: 'instantsearch'