algolia-experiences 1.5.8 → 1.5.10
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.
|
@@ -2014,7 +2014,16 @@
|
|
|
2014
2014
|
var facets = state.facets
|
|
2015
2015
|
.concat(
|
|
2016
2016
|
state.disjunctiveFacets.map(function (value) {
|
|
2017
|
-
|
|
2017
|
+
if (
|
|
2018
|
+
state.disjunctiveFacetsRefinements &&
|
|
2019
|
+
state.disjunctiveFacetsRefinements[value] &&
|
|
2020
|
+
state.disjunctiveFacetsRefinements[value].length > 0
|
|
2021
|
+
) {
|
|
2022
|
+
// only tag a disjunctiveFacet as disjunctive if it has a value selected
|
|
2023
|
+
// this helps avoid hitting the limit of 20 disjunctive facets in the Composition API
|
|
2024
|
+
return 'disjunctive(' + value + ')';
|
|
2025
|
+
}
|
|
2026
|
+
return value;
|
|
2018
2027
|
})
|
|
2019
2028
|
)
|
|
2020
2029
|
.concat(requestBuilder._getHitsHierarchicalFacetsAttributes(state))
|
|
@@ -5799,11 +5808,13 @@
|
|
|
5799
5808
|
});
|
|
5800
5809
|
}
|
|
5801
5810
|
|
|
5802
|
-
function sortAndMergeRecommendations(results) {
|
|
5811
|
+
function sortAndMergeRecommendations(objectIDs, results) {
|
|
5803
5812
|
var indexTracker = {};
|
|
5804
5813
|
|
|
5805
5814
|
results.forEach(function (hits) {
|
|
5806
5815
|
hits.forEach(function (hit, index) {
|
|
5816
|
+
if (objectIDs.includes(hit.objectID)) return;
|
|
5817
|
+
|
|
5807
5818
|
if (!indexTracker[hit.objectID]) {
|
|
5808
5819
|
indexTracker[hit.objectID] = { indexSum: index, count: 1 };
|
|
5809
5820
|
} else {
|
|
@@ -5833,7 +5844,7 @@
|
|
|
5833
5844
|
|
|
5834
5845
|
var sortAndMergeRecommendations_1 = sortAndMergeRecommendations;
|
|
5835
5846
|
|
|
5836
|
-
var version = '3.
|
|
5847
|
+
var version = '3.25.0';
|
|
5837
5848
|
|
|
5838
5849
|
var escapeFacetValue$3 = escapeFacetValue_1.escapeFacetValue;
|
|
5839
5850
|
|
|
@@ -7754,6 +7765,7 @@
|
|
|
7754
7765
|
}
|
|
7755
7766
|
cache[id] = Object.assign({}, firstResult, {
|
|
7756
7767
|
hits: sortAndMergeRecommendations_1(
|
|
7768
|
+
ids,
|
|
7757
7769
|
indices.map(function (idx) {
|
|
7758
7770
|
return content.results[idx].hits;
|
|
7759
7771
|
})
|
|
@@ -13039,7 +13051,7 @@
|
|
|
13039
13051
|
};
|
|
13040
13052
|
}
|
|
13041
13053
|
|
|
13042
|
-
var version$1 = '4.78.
|
|
13054
|
+
var version$1 = '4.78.2';
|
|
13043
13055
|
|
|
13044
13056
|
function _typeof$j(o) {
|
|
13045
13057
|
"@babel/helpers - typeof";
|