instantsearch.js 4.56.3 → 4.56.4
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/cjs/lib/version.js +1 -1
- package/cjs/middlewares/createRouterMiddleware.js +3 -1
- package/dist/instantsearch.development.js +5 -3
- 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/connectors/toggle-refinement/types.d.ts +5 -40
- package/es/lib/version.d.ts +1 -1
- package/es/lib/version.js +1 -1
- package/es/middlewares/createRouterMiddleware.js +3 -1
- package/package.json +5 -5
package/cjs/lib/version.js
CHANGED
|
@@ -51,7 +51,9 @@ var createRouterMiddleware = function createRouterMiddleware() {
|
|
|
51
51
|
subscribe: function subscribe() {
|
|
52
52
|
instantSearchInstance._initialUiState = _objectSpread(_objectSpread({}, initialUiState), stateMapping.routeToState(router.read()));
|
|
53
53
|
router.onUpdate(function (route) {
|
|
54
|
-
instantSearchInstance.
|
|
54
|
+
if (instantSearchInstance.mainIndex.getWidgets().length > 0) {
|
|
55
|
+
instantSearchInstance.setUiState(stateMapping.routeToState(route));
|
|
56
|
+
}
|
|
55
57
|
});
|
|
56
58
|
},
|
|
57
59
|
started: function started() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! InstantSearch.js 4.56.
|
|
1
|
+
/*! InstantSearch.js 4.56.4 | © Algolia, Inc. and contributors; MIT License | https://github.com/algolia/instantsearch.js */
|
|
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) :
|
|
@@ -13498,7 +13498,9 @@
|
|
|
13498
13498
|
subscribe: function subscribe() {
|
|
13499
13499
|
instantSearchInstance._initialUiState = _objectSpread2(_objectSpread2({}, initialUiState), stateMapping.routeToState(router.read()));
|
|
13500
13500
|
router.onUpdate(function (route) {
|
|
13501
|
-
instantSearchInstance.
|
|
13501
|
+
if (instantSearchInstance.mainIndex.getWidgets().length > 0) {
|
|
13502
|
+
instantSearchInstance.setUiState(stateMapping.routeToState(route));
|
|
13503
|
+
}
|
|
13502
13504
|
});
|
|
13503
13505
|
},
|
|
13504
13506
|
started: function started() {
|
|
@@ -14047,7 +14049,7 @@
|
|
|
14047
14049
|
};
|
|
14048
14050
|
}
|
|
14049
14051
|
|
|
14050
|
-
var version$1 = '4.56.
|
|
14052
|
+
var version$1 = '4.56.4';
|
|
14051
14053
|
|
|
14052
14054
|
var withUsage$r = createDocumentationMessageGenerator({
|
|
14053
14055
|
name: 'instantsearch'
|