@bigbinary/neeto-filters-frontend 3.2.1 → 3.2.2

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
@@ -3,9 +3,9 @@ import classnames from 'classnames';
3
3
  import i18next, { t as t$1 } from 'i18next';
4
4
  import { findBy, isNotEmpty, capitalize, removeBy, humanize, hyphenate, noop, toLabelAndValue, replaceBy, isPresent, existsBy, isNotPresent, filterBy } from '@bigbinary/neeto-cist';
5
5
  import { useMutationWithInvalidation, useQueryParams, useDebounce, withT } from '@bigbinary/neeto-commons-frontend/react-utils';
6
- import { getQueryParams, dateFormat, buildUrl } from '@bigbinary/neeto-commons-frontend/utils';
6
+ import { buildUrl, getQueryParams, dateFormat } from '@bigbinary/neeto-commons-frontend/utils';
7
7
  import { Tooltip, Typography, Dropdown as Dropdown$2, Button, Pane as Pane$1, Alert, Select, DatePicker, TimePicker, Input as Input$1, Accordion, Spinner } from '@bigbinary/neetoui';
8
- import { groupBy, anyPass, isNil, isEmpty, any, concat, omit, toLower, mergeLeft, identity, mergeRight, toPairs, not, pluck, either, has, equals, pick, modify, prop, isNotNil, append, last, mergeDeepRight } from 'ramda';
8
+ import { groupBy, anyPass, isNil, isEmpty, any, concat, omit, mergeLeft, toLower, identity, mergeRight, toPairs, not, pluck, either, has, equals, pick, modify, prop, isNotNil, append, last, mergeDeepRight } from 'ramda';
9
9
  import { useTranslation, Trans } from 'react-i18next';
10
10
  import { useHistory, useLocation } from 'react-router-dom';
11
11
  import useHotkeys from '@bigbinary/neeto-hotkeys';
@@ -858,7 +858,7 @@ var buildUrlFromFilters = function buildUrlFromFilters(_ref16) {
858
858
  if (isEmpty(omit([SEGMENT_ID_KEY], searchParams))) {
859
859
  delete searchParams[SEGMENT_ID_KEY];
860
860
  }
861
- return new URLSearchParams(searchParams).toString();
861
+ return buildUrl("", searchParams).slice(1);
862
862
  };
863
863
  var createUrlParamStringForSegments = function createUrlParamStringForSegments(_ref18) {
864
864
  var filter = _ref18.filter,
@@ -893,7 +893,7 @@ var buildUrlFromSegment = function buildUrlFromSegment(_ref19) {
893
893
  });
894
894
  return acc;
895
895
  }, isNotEmpty(id) ? _defineProperty({}, SEGMENT_ID_KEY, id) : {});
896
- return new URLSearchParams(_objectSpread$4(_objectSpread$4({}, searchParams), newSearchParams)).toString();
896
+ return buildUrl("", mergeLeft(newSearchParams, searchParams)).slice(1);
897
897
  };
898
898
  var getSearchTermFromUrl = function getSearchTermFromUrl() {
899
899
  return getQueryParams().searchTerm || "";