@rh-support/cases 1.0.14 → 1.0.16

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.
@@ -117,13 +117,14 @@ export function BookmarkedSearchesSelector(props) {
117
117
  toggleMenu(!isMenuOpen);
118
118
  };
119
119
  const onBookmarkSelectorChange = (selectedItem, searchQuery, doToggle) => () => {
120
+ var _a;
120
121
  isUpdatingFilters.current = true;
121
122
  // reset all filters
122
123
  clearFilters(dispatch, true);
123
124
  setSelectedSearch(selectedItem);
124
125
  const { filterState: filterStateSaved, queryString, type, sortState } = searchQuery;
125
126
  if (type === CaseSearchQueryType.ADVANCED) {
126
- const newFilterState = createFilterStateFromAdvancedQuery(parse(queryString).replace(/ and /g, ' AND ').replace(/ or /g, ' OR '), globalMetadataState, initialCaseFilterState, queryString, type);
127
+ const newFilterState = createFilterStateFromAdvancedQuery((_a = parse(queryString)) === null || _a === void 0 ? void 0 : _a.replace(/ and /g, ' AND ').replace(/ or /g, ' OR '), globalMetadataState, initialCaseFilterState, queryString, type);
127
128
  updateFilterState(dispatch, newFilterState);
128
129
  }
129
130
  else {
@@ -8,7 +8,8 @@ export default function useAdvanceSearchParser({ onInit }) {
8
8
  const { globalMetadataState: { caseGroups, loggedInUsersAccount, bookmarkedGroupAccounts, allCaseTypes }, } = useGlobalStateContext();
9
9
  const parserRef = useRef(null);
10
10
  const parse = (stringQuery) => {
11
- return parserRef.current.parse(stringQuery.replace(/ +/g, ' '));
11
+ var _a;
12
+ return (_a = parserRef === null || parserRef === void 0 ? void 0 : parserRef.current) === null || _a === void 0 ? void 0 : _a.parse(stringQuery.replace(/ +/g, ' '));
12
13
  };
13
14
  const parseSafe = (stringQuery) => {
14
15
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/cases",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -51,11 +51,11 @@
51
51
  "@patternfly/pfe-collapse": "1.12.3",
52
52
  "@patternfly/react-core": "4.202.16",
53
53
  "@patternfly/react-table": "4.71.16",
54
- "@rh-support/components": "1.2.6",
55
- "@rh-support/react-context": "1.0.7",
54
+ "@rh-support/components": "1.2.7",
55
+ "@rh-support/react-context": "1.0.8",
56
56
  "@rh-support/types": "0.2.0",
57
- "@rh-support/user-permissions": "1.0.6",
58
- "@rh-support/utils": "1.0.4",
57
+ "@rh-support/user-permissions": "1.0.7",
58
+ "@rh-support/utils": "1.0.5",
59
59
  "i18next": "^19.0.1",
60
60
  "localforage": "^1.7.3",
61
61
  "lodash": "^4.17.21",
@@ -99,5 +99,5 @@
99
99
  "not ie <= 11",
100
100
  "not op_mini all"
101
101
  ],
102
- "gitHead": "f90643b9bd305410f525aa17ec54bfce08efb7e7"
102
+ "gitHead": "8468319d59498558d99ab0faefce66ae714cdd8b"
103
103
  }