@bigbinary/neeto-filters-frontend 2.14.3 → 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.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$search = _ref.search,
1280
- search = _ref$search === void 0 ? "" : _ref$search;
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, search], function () {
1282
+ return reactQuery.useQuery([SEGMENTS_LIST, entity, searchTerm], function () {
1283
1283
  return segmentsApi.fetch({
1284
1284
  entity: entity,
1285
- search: search
1285
+ searchTerm: searchTerm
1286
1286
  });
1287
1287
  }, ramda.mergeRight({
1288
1288
  staleTime: SEGMENTS_STALE_TIME,
@@ -4906,7 +4906,8 @@ var Pane = function Pane(_ref) {
4906
4906
  size: size,
4907
4907
  onClose: handleClose
4908
4908
  }, otherProps), /*#__PURE__*/React__default["default"].createElement(Slider.Header, {
4909
- className: "neeto-filters-pane-filter__header"
4909
+ className: "neeto-filters-pane-filter__header",
4910
+ "data-cy": "neeto-filters-pane-header"
4910
4911
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
4911
4912
  style: "h2",
4912
4913
  weight: "semibold"
@@ -5182,7 +5183,7 @@ var ManagePane = function ManagePane(_ref) {
5182
5183
  var debouncedSearchTerm = reactUtils.useDebounce(searchTerm);
5183
5184
  var _useFetchSegments = useFetchSegments({
5184
5185
  entity: entity,
5185
- search: debouncedSearchTerm
5186
+ searchTerm: debouncedSearchTerm
5186
5187
  }),
5187
5188
  _useFetchSegments$dat = _useFetchSegments.data,
5188
5189
  segments = _useFetchSegments$dat === void 0 ? [] : _useFetchSegments$dat,
@@ -5238,7 +5239,7 @@ var MenuBlocks = function MenuBlocks(_ref) {
5238
5239
  segmentId = _Object$fromEntries.segmentId;
5239
5240
  var _useFetchSegments = useFetchSegments({
5240
5241
  entity: entity,
5241
- search: searchTerm
5242
+ searchTerm: searchTerm
5242
5243
  }),
5243
5244
  _useFetchSegments$dat = _useFetchSegments.data,
5244
5245
  segments = _useFetchSegments$dat === void 0 ? [] : _useFetchSegments$dat,
@@ -5375,88 +5376,6 @@ var Segments = function Segments(_ref) {
5375
5376
  };
5376
5377
  var index = /*#__PURE__*/React__default["default"].memo(Segments);
5377
5378
 
5378
- var neetoFilters = {
5379
- common: {
5380
- clearFilters: "Clear filters",
5381
- columns: "Columns",
5382
- "delete": "Delete",
5383
- done: "Done",
5384
- filter: "Filter",
5385
- filters: "Filters",
5386
- no: "No",
5387
- proceed: "Proceed",
5388
- rename: "Rename",
5389
- segments: "Segments",
5390
- userCount: "{{count}} Users",
5391
- yes: "Yes",
5392
- update: "Update"
5393
- },
5394
- messages: {
5395
- enterResource: "Enter {{resource}}",
5396
- noResourcesFound: "No {{resources}} found",
5397
- searchResources: "Search {{resources}}",
5398
- selectResource: "Select {{resource}}",
5399
- selectOption: "Select an option"
5400
- },
5401
- rules: {
5402
- contains: "Contains",
5403
- doesNotContain: "Does not contain",
5404
- exactly: "Exactly",
5405
- notExactly: "Not exactly",
5406
- startsWith: "Starts with",
5407
- doesNotStartWith: "Does not start with",
5408
- endsWith: "Ends with",
5409
- doesNotEndWith: "Does not end with",
5410
- greaterThan: "Greater than",
5411
- lessThan: "Less than"
5412
- },
5413
- errors: {
5414
- cannotPassMultipleModels: "Cannot pass multiple Models except for keyword searching"
5415
- },
5416
- shortcuts: {
5417
- deleteBlock: "Delete block",
5418
- openFilterPane: "Open filter pane",
5419
- closePane: "Close pane"
5420
- },
5421
- segments: {
5422
- addNewSegment: "Add new segment",
5423
- deleteAlertMessage: "You are permanently deleting the segment <strong>{{entity}}</strong>. This can't be undone.",
5424
- deleteAlertTitle: "Delete segment?",
5425
- manageSegments: "Manage segments",
5426
- name: "Segment name",
5427
- noSegmentsFound: "No segments found",
5428
- saveSegment: "Save segment",
5429
- saveAsSegment: "Save as segment",
5430
- saveAsNewSegment: "Save as new segment",
5431
- searchSegments: "Search segments",
5432
- segmentName: "Segment name",
5433
- showLess: "See less",
5434
- showMoreNumbers: "See {{entity}} more",
5435
- updateSegment: "Update segment?",
5436
- updateSegmentMessage: "You are trying to update the current segment."
5437
- },
5438
- labels: {
5439
- keyword: "Keyword"
5440
- }
5441
- };
5442
- var en = {
5443
- neetoFilters: neetoFilters
5444
- };
5445
-
5446
- i18next__default["default"].use(reactI18next.initReactI18next).init({
5447
- resources: {
5448
- en: {
5449
- translation: en
5450
- }
5451
- },
5452
- lng: "en",
5453
- fallbackLng: "en",
5454
- interpolation: {
5455
- escapeValue: false,
5456
- skipOnVariables: false
5457
- }
5458
- });
5459
-
5460
5379
  exports.Bar = Bar;
5461
5380
  exports.Filters = Filters;
5462
5381
  exports.Segments = index;