instantsearch.js 4.78.0 → 4.78.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.
- package/README.md +1 -1
- package/cjs/lib/version.js +1 -1
- package/dist/instantsearch.development.js +17 -5
- package/dist/instantsearch.development.js.map +1 -1
- package/dist/instantsearch.production.min.js +2 -2
- package/dist/instantsearch.production.min.js.map +1 -1
- package/es/lib/version.d.ts +1 -1
- package/es/lib/version.js +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -131,7 +131,7 @@ The documentation is available on the [Algolia website](https://www.algolia.com/
|
|
|
131
131
|
|
|
132
132
|
| E-commerce | Media | Travel |
|
|
133
133
|
| --- | --- | --- |
|
|
134
|
-
| <a href="https://instantsearchjs.netlify.
|
|
134
|
+
| <a href="https://instantsearchjs.netlify.app/examples/e-commerce/"><img src="https://www.algolia.com/doc/assets/images/build-search-ui/demos/e-commerce-2c7ed6b6.png" width="250" alt="E-commerce demo preview"></a> | <a href="https://instantsearchjs.netlify.app/examples/media/"><img src="https://www.algolia.com/doc/assets/images/build-search-ui/demos/media-articles-abc153ab.png" width="250" alt="Media demo preview"></a> | <a href="https://instantsearchjs.netlify.app/examples/tourism/"><img src="https://instantsearchjs.netlify.app/examples/tourism/capture.png" width="250" alt="Tourism demo preview"></a> |
|
|
135
135
|
|
|
136
136
|
See more demos [on the website](https://www.algolia.com/doc/guides/building-search-ui/resources/demos/js/).
|
|
137
137
|
|
package/cjs/lib/version.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! InstantSearch.js 4.78.
|
|
1
|
+
/*! InstantSearch.js 4.78.2 | © 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
|
-
|
|
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))
|
|
@@ -6553,11 +6562,13 @@
|
|
|
6553
6562
|
});
|
|
6554
6563
|
}
|
|
6555
6564
|
|
|
6556
|
-
function sortAndMergeRecommendations(results) {
|
|
6565
|
+
function sortAndMergeRecommendations(objectIDs, results) {
|
|
6557
6566
|
var indexTracker = {};
|
|
6558
6567
|
|
|
6559
6568
|
results.forEach(function (hits) {
|
|
6560
6569
|
hits.forEach(function (hit, index) {
|
|
6570
|
+
if (objectIDs.includes(hit.objectID)) return;
|
|
6571
|
+
|
|
6561
6572
|
if (!indexTracker[hit.objectID]) {
|
|
6562
6573
|
indexTracker[hit.objectID] = { indexSum: index, count: 1 };
|
|
6563
6574
|
} else {
|
|
@@ -6587,7 +6598,7 @@
|
|
|
6587
6598
|
|
|
6588
6599
|
var sortAndMergeRecommendations_1 = sortAndMergeRecommendations;
|
|
6589
6600
|
|
|
6590
|
-
var version = '3.
|
|
6601
|
+
var version = '3.25.0';
|
|
6591
6602
|
|
|
6592
6603
|
var escapeFacetValue$4 = escapeFacetValue_1.escapeFacetValue;
|
|
6593
6604
|
|
|
@@ -8508,6 +8519,7 @@
|
|
|
8508
8519
|
}
|
|
8509
8520
|
cache[id] = Object.assign({}, firstResult, {
|
|
8510
8521
|
hits: sortAndMergeRecommendations_1(
|
|
8522
|
+
ids,
|
|
8511
8523
|
indices.map(function (idx) {
|
|
8512
8524
|
return content.results[idx].hits;
|
|
8513
8525
|
})
|
|
@@ -16402,7 +16414,7 @@
|
|
|
16402
16414
|
};
|
|
16403
16415
|
}
|
|
16404
16416
|
|
|
16405
|
-
var version$1 = '4.78.
|
|
16417
|
+
var version$1 = '4.78.2';
|
|
16406
16418
|
|
|
16407
16419
|
var withUsage$v = createDocumentationMessageGenerator({
|
|
16408
16420
|
name: 'instantsearch'
|