@rh-support/cases 1.0.15 → 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
|
-
|
|
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.
|
|
3
|
+
"version": "1.0.16",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -99,5 +99,5 @@
|
|
|
99
99
|
"not ie <= 11",
|
|
100
100
|
"not op_mini all"
|
|
101
101
|
],
|
|
102
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "8468319d59498558d99ab0faefce66ae714cdd8b"
|
|
103
103
|
}
|