instantsearch.js 4.63.0 → 4.63.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/cjs/components/RefinementList/RefinementList.js +4 -4
- package/cjs/connectors/search-box/connectSearchBox.js +2 -2
- package/cjs/lib/version.js +1 -1
- package/dist/instantsearch.development.d.ts +1 -3
- package/dist/instantsearch.development.js +8 -8
- package/dist/instantsearch.development.js.map +1 -1
- package/dist/instantsearch.production.d.ts +1 -3
- package/dist/instantsearch.production.min.d.ts +1 -3
- package/dist/instantsearch.production.min.js +2 -2
- package/dist/instantsearch.production.min.js.map +1 -1
- package/es/components/RefinementList/RefinementList.js +4 -4
- package/es/connectors/search-box/connectSearchBox.js +2 -2
- package/es/lib/version.d.ts +1 -1
- package/es/lib/version.js +1 -1
- package/es/widgets/toggle-refinement/toggle-refinement.d.ts +2 -4
- package/package.json +5 -5
|
@@ -118,18 +118,18 @@ var RefinementList = /*#__PURE__*/function (_Component) {
|
|
|
118
118
|
// if one special key is down
|
|
119
119
|
return;
|
|
120
120
|
}
|
|
121
|
-
|
|
121
|
+
var parent = originalEvent.target;
|
|
122
|
+
if (parent === null || parent.parentNode === null) {
|
|
122
123
|
return;
|
|
123
124
|
}
|
|
124
|
-
if (isRefined &&
|
|
125
|
+
if (isRefined && parent.parentNode.querySelector('input[type="radio"]:checked')) {
|
|
125
126
|
// Prevent refinement for being reset if the user clicks on an already checked radio button
|
|
126
127
|
return;
|
|
127
128
|
}
|
|
128
|
-
if (
|
|
129
|
+
if (parent.tagName === 'INPUT') {
|
|
129
130
|
_this.refine(facetValueToRefine);
|
|
130
131
|
return;
|
|
131
132
|
}
|
|
132
|
-
var parent = originalEvent.target;
|
|
133
133
|
while (parent !== originalEvent.currentTarget) {
|
|
134
134
|
if (parent.tagName === 'LABEL' && (parent.querySelector('input[type="checkbox"]') || parent.querySelector('input[type="radio"]'))) {
|
|
135
135
|
return;
|
|
@@ -70,7 +70,7 @@ var connectSearchBox = function connectSearchBox(renderFn) {
|
|
|
70
70
|
},
|
|
71
71
|
getWidgetRenderState: function getWidgetRenderState(_ref3) {
|
|
72
72
|
var helper = _ref3.helper,
|
|
73
|
-
|
|
73
|
+
instantSearchInstance = _ref3.instantSearchInstance,
|
|
74
74
|
state = _ref3.state;
|
|
75
75
|
if (!_refine) {
|
|
76
76
|
_refine = function _refine(query) {
|
|
@@ -87,7 +87,7 @@ var connectSearchBox = function connectSearchBox(renderFn) {
|
|
|
87
87
|
refine: _refine,
|
|
88
88
|
clear: _clear,
|
|
89
89
|
widgetParams: widgetParams,
|
|
90
|
-
isSearchStalled:
|
|
90
|
+
isSearchStalled: instantSearchInstance.status === 'stalled'
|
|
91
91
|
};
|
|
92
92
|
},
|
|
93
93
|
getWidgetUiState: function getWidgetUiState(uiState, _ref4) {
|
package/cjs/lib/version.js
CHANGED
|
@@ -5336,9 +5336,7 @@ declare type ToggleRefinementTemplates = Partial<{
|
|
|
5336
5336
|
/**
|
|
5337
5337
|
* the text that describes the toggle action
|
|
5338
5338
|
*/
|
|
5339
|
-
labelText: Template<
|
|
5340
|
-
name: string;
|
|
5341
|
-
}>;
|
|
5339
|
+
labelText: Template<ToggleRefinementRenderState['value']>;
|
|
5342
5340
|
}>;
|
|
5343
5341
|
|
|
5344
5342
|
declare type ToggleRefinementValue = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! InstantSearch.js 4.63.
|
|
1
|
+
/*! InstantSearch.js 4.63.1 | © 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) :
|
|
@@ -4566,7 +4566,7 @@
|
|
|
4566
4566
|
},
|
|
4567
4567
|
getWidgetRenderState: function getWidgetRenderState(_ref3) {
|
|
4568
4568
|
var helper = _ref3.helper,
|
|
4569
|
-
|
|
4569
|
+
instantSearchInstance = _ref3.instantSearchInstance,
|
|
4570
4570
|
state = _ref3.state;
|
|
4571
4571
|
if (!_refine) {
|
|
4572
4572
|
_refine = function _refine(query) {
|
|
@@ -4583,7 +4583,7 @@
|
|
|
4583
4583
|
refine: _refine,
|
|
4584
4584
|
clear: _clear,
|
|
4585
4585
|
widgetParams: widgetParams,
|
|
4586
|
-
isSearchStalled:
|
|
4586
|
+
isSearchStalled: instantSearchInstance.status === 'stalled'
|
|
4587
4587
|
};
|
|
4588
4588
|
},
|
|
4589
4589
|
getWidgetUiState: function getWidgetUiState(uiState, _ref4) {
|
|
@@ -14847,7 +14847,7 @@
|
|
|
14847
14847
|
};
|
|
14848
14848
|
}
|
|
14849
14849
|
|
|
14850
|
-
var version$1 = '4.63.
|
|
14850
|
+
var version$1 = '4.63.1';
|
|
14851
14851
|
|
|
14852
14852
|
var withUsage$r = createDocumentationMessageGenerator({
|
|
14853
14853
|
name: 'instantsearch'
|
|
@@ -18312,18 +18312,18 @@
|
|
|
18312
18312
|
// if one special key is down
|
|
18313
18313
|
return;
|
|
18314
18314
|
}
|
|
18315
|
-
|
|
18315
|
+
var parent = originalEvent.target;
|
|
18316
|
+
if (parent === null || parent.parentNode === null) {
|
|
18316
18317
|
return;
|
|
18317
18318
|
}
|
|
18318
|
-
if (isRefined &&
|
|
18319
|
+
if (isRefined && parent.parentNode.querySelector('input[type="radio"]:checked')) {
|
|
18319
18320
|
// Prevent refinement for being reset if the user clicks on an already checked radio button
|
|
18320
18321
|
return;
|
|
18321
18322
|
}
|
|
18322
|
-
if (
|
|
18323
|
+
if (parent.tagName === 'INPUT') {
|
|
18323
18324
|
_this.refine(facetValueToRefine);
|
|
18324
18325
|
return;
|
|
18325
18326
|
}
|
|
18326
|
-
var parent = originalEvent.target;
|
|
18327
18327
|
while (parent !== originalEvent.currentTarget) {
|
|
18328
18328
|
if (parent.tagName === 'LABEL' && (parent.querySelector('input[type="checkbox"]') || parent.querySelector('input[type="radio"]'))) {
|
|
18329
18329
|
return;
|