@bigbinary/neeto-filters-frontend 2.14.4 → 2.14.5

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.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$search = _ref.search,
1244
- search = _ref$search === void 0 ? "" : _ref$search;
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, search], function () {
1246
+ return useQuery([SEGMENTS_LIST, entity, searchTerm], function () {
1247
1247
  return segmentsApi.fetch({
1248
1248
  entity: entity,
1249
- search: search
1249
+ searchTerm: searchTerm
1250
1250
  });
1251
1251
  }, mergeRight({
1252
1252
  staleTime: SEGMENTS_STALE_TIME,
@@ -4870,7 +4870,8 @@ var Pane = function Pane(_ref) {
4870
4870
  size: size,
4871
4871
  onClose: handleClose
4872
4872
  }, otherProps), /*#__PURE__*/React.createElement(Slider.Header, {
4873
- className: "neeto-filters-pane-filter__header"
4873
+ className: "neeto-filters-pane-filter__header",
4874
+ "data-cy": "neeto-filters-pane-header"
4874
4875
  }, /*#__PURE__*/React.createElement(Typography, {
4875
4876
  style: "h2",
4876
4877
  weight: "semibold"
@@ -5146,7 +5147,7 @@ var ManagePane = function ManagePane(_ref) {
5146
5147
  var debouncedSearchTerm = useDebounce(searchTerm);
5147
5148
  var _useFetchSegments = useFetchSegments({
5148
5149
  entity: entity,
5149
- search: debouncedSearchTerm
5150
+ searchTerm: debouncedSearchTerm
5150
5151
  }),
5151
5152
  _useFetchSegments$dat = _useFetchSegments.data,
5152
5153
  segments = _useFetchSegments$dat === void 0 ? [] : _useFetchSegments$dat,
@@ -5202,7 +5203,7 @@ var MenuBlocks = function MenuBlocks(_ref) {
5202
5203
  segmentId = _Object$fromEntries.segmentId;
5203
5204
  var _useFetchSegments = useFetchSegments({
5204
5205
  entity: entity,
5205
- search: searchTerm
5206
+ searchTerm: searchTerm
5206
5207
  }),
5207
5208
  _useFetchSegments$dat = _useFetchSegments.data,
5208
5209
  segments = _useFetchSegments$dat === void 0 ? [] : _useFetchSegments$dat,