react-instantsearch-core 6.38.3 → 6.39.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.
- package/dist/cjs/core/version.js +1 -1
- package/dist/es/core/version.js +1 -1
- package/dist/umd/ReactInstantSearchCore.js +29 -3
- package/dist/umd/ReactInstantSearchCore.js.map +1 -1
- package/dist/umd/ReactInstantSearchCore.min.js +1 -1
- package/dist/umd/ReactInstantSearchCore.min.js.map +1 -1
- package/package.json +3 -3
package/dist/cjs/core/version.js
CHANGED
package/dist/es/core/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '6.
|
|
1
|
+
export default '6.39.1';
|
|
@@ -871,7 +871,7 @@
|
|
|
871
871
|
});
|
|
872
872
|
}
|
|
873
873
|
|
|
874
|
-
var version = '6.
|
|
874
|
+
var version = '6.39.1';
|
|
875
875
|
|
|
876
876
|
function translatable(defaultTranslations) {
|
|
877
877
|
return function (Composed) {
|
|
@@ -4052,7 +4052,33 @@
|
|
|
4052
4052
|
};
|
|
4053
4053
|
});
|
|
4054
4054
|
} else if (results._state.isHierarchicalFacet(attribute)) {
|
|
4055
|
-
|
|
4055
|
+
var hierarchicalFacetValues = find$1(results.hierarchicalFacets, predicate);
|
|
4056
|
+
if (!hierarchicalFacetValues) return hierarchicalFacetValues;
|
|
4057
|
+
|
|
4058
|
+
var hierarchicalFacet = results._state.getHierarchicalFacetByName(attribute);
|
|
4059
|
+
var currentRefinementSplit = unescapeFacetValue$3(
|
|
4060
|
+
results._state.getHierarchicalRefinement(attribute)[0] || ''
|
|
4061
|
+
).split(results._state._getHierarchicalFacetSeparator(hierarchicalFacet));
|
|
4062
|
+
currentRefinementSplit.unshift(attribute);
|
|
4063
|
+
|
|
4064
|
+
setIsRefined(hierarchicalFacetValues, currentRefinementSplit, 0);
|
|
4065
|
+
|
|
4066
|
+
return hierarchicalFacetValues;
|
|
4067
|
+
}
|
|
4068
|
+
}
|
|
4069
|
+
|
|
4070
|
+
/**
|
|
4071
|
+
* Set the isRefined of a hierarchical facet result based on the current state.
|
|
4072
|
+
* @param {SearchResults.HierarchicalFacet} item Hierarchical facet to fix
|
|
4073
|
+
* @param {string[]} currentRefinementSplit array of parts of the current hierarchical refinement
|
|
4074
|
+
* @param {number} depth recursion depth in the currentRefinement
|
|
4075
|
+
*/
|
|
4076
|
+
function setIsRefined(item, currentRefinement, depth) {
|
|
4077
|
+
item.isRefined = item.name === currentRefinement[depth];
|
|
4078
|
+
if (item.data) {
|
|
4079
|
+
item.data.forEach(function(child) {
|
|
4080
|
+
setIsRefined(child, currentRefinement, depth + 1);
|
|
4081
|
+
});
|
|
4056
4082
|
}
|
|
4057
4083
|
}
|
|
4058
4084
|
|
|
@@ -5141,7 +5167,7 @@
|
|
|
5141
5167
|
|
|
5142
5168
|
var requestBuilder_1 = requestBuilder;
|
|
5143
5169
|
|
|
5144
|
-
var version$1 = '3.11.
|
|
5170
|
+
var version$1 = '3.11.3';
|
|
5145
5171
|
|
|
5146
5172
|
var escapeFacetValue$3 = escapeFacetValue_1.escapeFacetValue;
|
|
5147
5173
|
|