react-instantsearch-core 7.15.5 → 7.15.7

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 = '7.15.5';
7
+ var _default = exports.default = '7.15.7';
@@ -1,2 +1,2 @@
1
- declare const _default: "7.15.5";
1
+ declare const _default: "7.15.7";
2
2
  export default _default;
@@ -1 +1 @@
1
- export default '7.15.5';
1
+ export default '7.15.7';
@@ -7,7 +7,7 @@
7
7
 
8
8
  var React__default = 'default' in React ? React['default'] : React;
9
9
 
10
- var version = '7.15.5';
10
+ var version = '7.15.7';
11
11
 
12
12
  function _iterableToArrayLimit(r, l) {
13
13
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
@@ -4733,11 +4733,13 @@
4733
4733
  });
4734
4734
  }
4735
4735
 
4736
- function sortAndMergeRecommendations(results) {
4736
+ function sortAndMergeRecommendations(objectIDs, results) {
4737
4737
  var indexTracker = {};
4738
4738
 
4739
4739
  results.forEach(function (hits) {
4740
4740
  hits.forEach(function (hit, index) {
4741
+ if (objectIDs.includes(hit.objectID)) return;
4742
+
4741
4743
  if (!indexTracker[hit.objectID]) {
4742
4744
  indexTracker[hit.objectID] = { indexSum: index, count: 1 };
4743
4745
  } else {
@@ -4767,7 +4769,7 @@
4767
4769
 
4768
4770
  var sortAndMergeRecommendations_1 = sortAndMergeRecommendations;
4769
4771
 
4770
- var version$1 = '3.24.3';
4772
+ var version$1 = '3.25.0';
4771
4773
 
4772
4774
  var escapeFacetValue$3 = escapeFacetValue_1.escapeFacetValue;
4773
4775
 
@@ -6688,6 +6690,7 @@
6688
6690
  }
6689
6691
  cache[id] = Object.assign({}, firstResult, {
6690
6692
  hits: sortAndMergeRecommendations_1(
6693
+ ids,
6691
6694
  indices.map(function (idx) {
6692
6695
  return content.results[idx].hits;
6693
6696
  })
@@ -11138,10 +11141,14 @@
11138
11141
  var insightsClientWithLocalCredentials = insightsClient;
11139
11142
  if (isModernInsightsClient(insightsClient)) {
11140
11143
  insightsClientWithLocalCredentials = function insightsClientWithLocalCredentials(method, payload) {
11144
+ var _getAppIdAndApiKey3 = getAppIdAndApiKey(instantSearchInstance.client),
11145
+ _getAppIdAndApiKey4 = _slicedToArray$5(_getAppIdAndApiKey3, 2),
11146
+ latestAppId = _getAppIdAndApiKey4[0],
11147
+ latestApiKey = _getAppIdAndApiKey4[1];
11141
11148
  var extraParams = {
11142
11149
  headers: {
11143
- 'X-Algolia-Application-Id': appId,
11144
- 'X-Algolia-API-Key': apiKey
11150
+ 'X-Algolia-Application-Id': latestAppId,
11151
+ 'X-Algolia-API-Key': latestApiKey
11145
11152
  }
11146
11153
  };
11147
11154
 
@@ -12874,7 +12881,7 @@
12874
12881
  };
12875
12882
  }
12876
12883
 
12877
- var version$2 = '4.78.1';
12884
+ var version$2 = '4.78.3';
12878
12885
 
12879
12886
  function _typeof$l(o) {
12880
12887
  "@babel/helpers - typeof";