@bigbinary/neeto-filters-frontend 2.14.4 → 2.14.6
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/index.cjs.js +9 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +9 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1240,13 +1240,13 @@ function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) {
|
|
|
1240
1240
|
var SEGMENTS_LIST = QUERY_KEYS.SEGMENTS_LIST;
|
|
1241
1241
|
var useFetchSegments = function useFetchSegments(_ref) {
|
|
1242
1242
|
var entity = _ref.entity,
|
|
1243
|
-
_ref$
|
|
1244
|
-
|
|
1243
|
+
_ref$searchTerm = _ref.searchTerm,
|
|
1244
|
+
searchTerm = _ref$searchTerm === void 0 ? "" : _ref$searchTerm;
|
|
1245
1245
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
1246
|
-
return useQuery([SEGMENTS_LIST, entity,
|
|
1246
|
+
return useQuery([SEGMENTS_LIST, entity, searchTerm], function () {
|
|
1247
1247
|
return segmentsApi.fetch({
|
|
1248
1248
|
entity: entity,
|
|
1249
|
-
|
|
1249
|
+
searchTerm: searchTerm
|
|
1250
1250
|
});
|
|
1251
1251
|
}, mergeRight({
|
|
1252
1252
|
staleTime: SEGMENTS_STALE_TIME,
|
|
@@ -4003,6 +4003,7 @@ var Slider = function Slider(_ref) {
|
|
|
4003
4003
|
}, otherProps), /*#__PURE__*/React.createElement(Button, {
|
|
4004
4004
|
"aria-label": "Close",
|
|
4005
4005
|
className: "neeto-filters-slider__close",
|
|
4006
|
+
"data-cy": "neeto-filters-close-button",
|
|
4006
4007
|
"data-testid": "close-button",
|
|
4007
4008
|
icon: Close,
|
|
4008
4009
|
size: "small",
|
|
@@ -4870,7 +4871,8 @@ var Pane = function Pane(_ref) {
|
|
|
4870
4871
|
size: size,
|
|
4871
4872
|
onClose: handleClose
|
|
4872
4873
|
}, otherProps), /*#__PURE__*/React.createElement(Slider.Header, {
|
|
4873
|
-
className: "neeto-filters-pane-filter__header"
|
|
4874
|
+
className: "neeto-filters-pane-filter__header",
|
|
4875
|
+
"data-cy": "neeto-filters-pane-header"
|
|
4874
4876
|
}, /*#__PURE__*/React.createElement(Typography, {
|
|
4875
4877
|
style: "h2",
|
|
4876
4878
|
weight: "semibold"
|
|
@@ -5146,7 +5148,7 @@ var ManagePane = function ManagePane(_ref) {
|
|
|
5146
5148
|
var debouncedSearchTerm = useDebounce(searchTerm);
|
|
5147
5149
|
var _useFetchSegments = useFetchSegments({
|
|
5148
5150
|
entity: entity,
|
|
5149
|
-
|
|
5151
|
+
searchTerm: debouncedSearchTerm
|
|
5150
5152
|
}),
|
|
5151
5153
|
_useFetchSegments$dat = _useFetchSegments.data,
|
|
5152
5154
|
segments = _useFetchSegments$dat === void 0 ? [] : _useFetchSegments$dat,
|
|
@@ -5202,7 +5204,7 @@ var MenuBlocks = function MenuBlocks(_ref) {
|
|
|
5202
5204
|
segmentId = _Object$fromEntries.segmentId;
|
|
5203
5205
|
var _useFetchSegments = useFetchSegments({
|
|
5204
5206
|
entity: entity,
|
|
5205
|
-
|
|
5207
|
+
searchTerm: searchTerm
|
|
5206
5208
|
}),
|
|
5207
5209
|
_useFetchSegments$dat = _useFetchSegments.data,
|
|
5208
5210
|
segments = _useFetchSegments$dat === void 0 ? [] : _useFetchSegments$dat,
|