@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.cjs.js
CHANGED
|
@@ -1276,13 +1276,13 @@ function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) {
|
|
|
1276
1276
|
var SEGMENTS_LIST = QUERY_KEYS.SEGMENTS_LIST;
|
|
1277
1277
|
var useFetchSegments = function useFetchSegments(_ref) {
|
|
1278
1278
|
var entity = _ref.entity,
|
|
1279
|
-
_ref$
|
|
1280
|
-
|
|
1279
|
+
_ref$searchTerm = _ref.searchTerm,
|
|
1280
|
+
searchTerm = _ref$searchTerm === void 0 ? "" : _ref$searchTerm;
|
|
1281
1281
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
1282
|
-
return reactQuery.useQuery([SEGMENTS_LIST, entity,
|
|
1282
|
+
return reactQuery.useQuery([SEGMENTS_LIST, entity, searchTerm], function () {
|
|
1283
1283
|
return segmentsApi.fetch({
|
|
1284
1284
|
entity: entity,
|
|
1285
|
-
|
|
1285
|
+
searchTerm: searchTerm
|
|
1286
1286
|
});
|
|
1287
1287
|
}, ramda.mergeRight({
|
|
1288
1288
|
staleTime: SEGMENTS_STALE_TIME,
|
|
@@ -4039,6 +4039,7 @@ var Slider = function Slider(_ref) {
|
|
|
4039
4039
|
}, otherProps), /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
|
|
4040
4040
|
"aria-label": "Close",
|
|
4041
4041
|
className: "neeto-filters-slider__close",
|
|
4042
|
+
"data-cy": "neeto-filters-close-button",
|
|
4042
4043
|
"data-testid": "close-button",
|
|
4043
4044
|
icon: neetoIcons.Close,
|
|
4044
4045
|
size: "small",
|
|
@@ -4906,7 +4907,8 @@ var Pane = function Pane(_ref) {
|
|
|
4906
4907
|
size: size,
|
|
4907
4908
|
onClose: handleClose
|
|
4908
4909
|
}, otherProps), /*#__PURE__*/React__default["default"].createElement(Slider.Header, {
|
|
4909
|
-
className: "neeto-filters-pane-filter__header"
|
|
4910
|
+
className: "neeto-filters-pane-filter__header",
|
|
4911
|
+
"data-cy": "neeto-filters-pane-header"
|
|
4910
4912
|
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
4911
4913
|
style: "h2",
|
|
4912
4914
|
weight: "semibold"
|
|
@@ -5182,7 +5184,7 @@ var ManagePane = function ManagePane(_ref) {
|
|
|
5182
5184
|
var debouncedSearchTerm = reactUtils.useDebounce(searchTerm);
|
|
5183
5185
|
var _useFetchSegments = useFetchSegments({
|
|
5184
5186
|
entity: entity,
|
|
5185
|
-
|
|
5187
|
+
searchTerm: debouncedSearchTerm
|
|
5186
5188
|
}),
|
|
5187
5189
|
_useFetchSegments$dat = _useFetchSegments.data,
|
|
5188
5190
|
segments = _useFetchSegments$dat === void 0 ? [] : _useFetchSegments$dat,
|
|
@@ -5238,7 +5240,7 @@ var MenuBlocks = function MenuBlocks(_ref) {
|
|
|
5238
5240
|
segmentId = _Object$fromEntries.segmentId;
|
|
5239
5241
|
var _useFetchSegments = useFetchSegments({
|
|
5240
5242
|
entity: entity,
|
|
5241
|
-
|
|
5243
|
+
searchTerm: searchTerm
|
|
5242
5244
|
}),
|
|
5243
5245
|
_useFetchSegments$dat = _useFetchSegments.data,
|
|
5244
5246
|
segments = _useFetchSegments$dat === void 0 ? [] : _useFetchSegments$dat,
|