@rh-support/cases 2.7.49 → 2.7.50
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/lib/esm/components/case-list/case-list-filters/AccountsBookmarkedGroupFilter.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-list-filters/AccountsBookmarkedGroupFilter.js +2 -1
- package/lib/esm/components/case-list/case-list-filters/CreatorSsoNameFilter.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-list-filters/CreatorSsoNameFilter.js +2 -1
- package/lib/esm/components/case-list/case-list-filters/ProductsFilter.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-list-filters/ProductsFilter.js +2 -2
- package/lib/esm/components/case-list/case-search/advance-search-modal/ProductVersionDrilldownSelect.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-search/advance-search-modal/ProductVersionDrilldownSelect.js +2 -2
- package/package.json +2 -2
package/lib/esm/components/case-list/case-list-filters/AccountsBookmarkedGroupFilter.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountsBookmarkedGroupFilter.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-list-filters/AccountsBookmarkedGroupFilter.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AccountsBookmarkedGroupFilter.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-list-filters/AccountsBookmarkedGroupFilter.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAS7D,eAAO,MAAM,YAAY,GAAI,YAAY,MAAM,sBAQ9C,CAAC;AAEF,UAAU,MAAM;IACZ,uBAAuB,EAAE,OAAO,CAAC;IACjC,wBAAwB,EAAE,OAAO,CAAC;IAClC,yBAAyB,EAAE,OAAO,CAAC;CACtC;AAOD,eAAO,MAAM,QAAQ,GAAI,WAAW,MAAM,EAAE,aAAa,MAAM,WACiB,CAAC;AAEjF,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,qBAqL1D"}
|
|
@@ -3,6 +3,7 @@ import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-ic
|
|
|
3
3
|
import { LoadingIndicator } from '@rh-support/components';
|
|
4
4
|
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
5
5
|
import { getDropdownBtnPlaceholder } from '@rh-support/utils';
|
|
6
|
+
import escapeRegExp from 'lodash/escapeRegExp';
|
|
6
7
|
import groupBy from 'lodash/groupBy';
|
|
7
8
|
import isEmpty from 'lodash/isEmpty';
|
|
8
9
|
import isEqual from 'lodash/isEqual';
|
|
@@ -81,7 +82,7 @@ export function AccountsBookmarkedGroupFilter(props) {
|
|
|
81
82
|
* Adding loading spinner since bookmarked accounts are getting loaded in the background for the globalMetadataState
|
|
82
83
|
*/
|
|
83
84
|
const getFilteredBookmarksOptions = (filterValue = '') => {
|
|
84
|
-
const regex = new RegExp(filterValue, 'i');
|
|
85
|
+
const regex = new RegExp(escapeRegExp(filterValue), 'i');
|
|
85
86
|
const filteredOptions = filterValue ? dropdownOptions.filter((b) => regex.test(b.value)) : dropdownOptions;
|
|
86
87
|
return [
|
|
87
88
|
...filteredOptions.map((b, id) => (React.createElement(SelectOption, { key: id, value: b, className: "pf-v6-c-select__menu-wrapper", role: "presentation" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreatorSsoNameFilter.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-list-filters/CreatorSsoNameFilter.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CreatorSsoNameFilter.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-list-filters/CreatorSsoNameFilter.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAA2D,MAAM,OAAO,CAAC;AAYhF,eAAO,MAAM,WAAW,GAAI,YAAO,WAIlC,CAAC;AAYF,eAAO,MAAM,eAAe,GAAI,gBAAW,EAAE,QAAG;;;;;;;GAAyD,CAAC;AAE1G,eAAO,MAAM,kBAAkB,GAAI,iBAAY,EAAE,eAAU,EAAE,QAAG,EAAE,MAAC,UAyClE,CAAC;AAEF,wBAAgB,oBAAoB,sBAiQnC"}
|
|
@@ -13,6 +13,7 @@ import TimesCircleIcon from '@patternfly/react-icons/dist/js/icons/times-circle-
|
|
|
13
13
|
import { LoadingIndicator, useSelectKeyboardNavigator } from '@rh-support/components';
|
|
14
14
|
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
15
15
|
import { fetchLoggedInUserAccountContactsFromGraphQL, getDropdownBtnPlaceholder } from '@rh-support/utils';
|
|
16
|
+
import escapeRegExp from 'lodash/escapeRegExp';
|
|
16
17
|
import isEmpty from 'lodash/isEmpty';
|
|
17
18
|
import isNull from 'lodash/isNull';
|
|
18
19
|
import isUndefined from 'lodash/isUndefined';
|
|
@@ -121,7 +122,7 @@ export function CreatorSsoNameFilter() {
|
|
|
121
122
|
];
|
|
122
123
|
const filteredOptions = useMemo(() => {
|
|
123
124
|
const filteredValues = getFilterValues(externalContactList, own);
|
|
124
|
-
const input = new RegExp(externalQuery, 'i');
|
|
125
|
+
const input = new RegExp(escapeRegExp(externalQuery), 'i');
|
|
125
126
|
const newOptions = filteredValues.filter((v) => input.test(v.label || ''));
|
|
126
127
|
setNoResults(isEmpty(newOptions));
|
|
127
128
|
return newOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductsFilter.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-list-filters/ProductsFilter.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProductsFilter.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-list-filters/ProductsFilter.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAQvE,UAAU,cAAc;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,UAAU,MAAM;IACZ,WAAW,EAAE,cAAc,EAAE,CAAC;CACjC;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,qBAuL3C"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { MenuToggle, Select, SelectList, SelectOption, TextInputGroup, TextInputGroupMain, } from '@patternfly/react-core';
|
|
2
2
|
import { useSelectKeyboardNavigator } from '@rh-support/components';
|
|
3
3
|
import { getDropdownBtnPlaceholder } from '@rh-support/utils';
|
|
4
|
+
import escapeRegExp from 'lodash/escapeRegExp';
|
|
4
5
|
import isEmpty from 'lodash/isEmpty';
|
|
5
6
|
import isUndefined from 'lodash/isUndefined';
|
|
6
7
|
import React, { useContext, useEffect, useRef, useState } from 'react';
|
|
@@ -58,8 +59,7 @@ export function ProductsFilter(props) {
|
|
|
58
59
|
const getFilteredOptions = () => {
|
|
59
60
|
if (!inputValue)
|
|
60
61
|
return productOptions;
|
|
61
|
-
const
|
|
62
|
-
const input = new RegExp(formattedValue, 'i');
|
|
62
|
+
const input = new RegExp(escapeRegExp(inputValue), 'i');
|
|
63
63
|
return productOptions.filter((product) => input.test(product.value));
|
|
64
64
|
};
|
|
65
65
|
// Integrate the keyboard navigator hook
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductVersionDrilldownSelect.d.ts","sourceRoot":"","sources":["../../../../../../src/components/case-list/case-search/advance-search-modal/ProductVersionDrilldownSelect.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProductVersionDrilldownSelect.d.ts","sourceRoot":"","sources":["../../../../../../src/components/case-list/case-search/advance-search-modal/ProductVersionDrilldownSelect.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAgD,MAAM,OAAO,CAAC;AAIrE,OAAO,EAAE,cAAc,EAAuB,MAAM,6BAA6B,CAAC;AAclF,UAAU,MAAM;IACZ,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,QAAQ,EAAE,CAAC,QAAQ,EAAE,cAAc,EAAE,KAAK,IAAI,CAAC;CAClD;AAED,wBAAgB,6BAA6B,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,MAAM,qBAqZ3E"}
|
|
@@ -2,6 +2,7 @@ import { useApolloClient } from '@apollo/client/react';
|
|
|
2
2
|
import { Badge, Divider, DrilldownMenu, Flex, FlexItem, Menu, MenuContainer, MenuContent, MenuItem, MenuList, MenuToggle, SearchInput, Spinner, } from '@patternfly/react-core';
|
|
3
3
|
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
4
4
|
import { compareVersions, GET_PRODUCTS, handleGraphQLVersionsResponse } from '@rh-support/utils';
|
|
5
|
+
import escapeRegExp from 'lodash/escapeRegExp';
|
|
5
6
|
import React, { useContext, useMemo, useRef, useState } from 'react';
|
|
6
7
|
import { useTranslation } from 'react-i18next';
|
|
7
8
|
import { SolrKeys } from '../../../../enums/filters';
|
|
@@ -32,8 +33,7 @@ export function ProductVersionDrilldownSelect({ products, onChange }) {
|
|
|
32
33
|
if (!productSearch.trim()) {
|
|
33
34
|
return productOptions;
|
|
34
35
|
}
|
|
35
|
-
const
|
|
36
|
-
const searchPattern = new RegExp(formattedValue, 'i');
|
|
36
|
+
const searchPattern = new RegExp(escapeRegExp(productSearch), 'i');
|
|
37
37
|
return productOptions.filter((product) => searchPattern.test(product.name));
|
|
38
38
|
}, [productOptions, productSearch]);
|
|
39
39
|
const selectedFilterCount = useMemo(() => products.reduce((count, product) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/cases",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.50",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"defaults and supports es6-module",
|
|
95
95
|
"maintained node versions"
|
|
96
96
|
],
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "5a336df94c9c7666ff522b5cf7f3267b05dccd74"
|
|
98
98
|
}
|