@rh-support/troubleshoot 2.5.3 → 2.5.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/lib/esm/components/CaseEditView/CaseOverview/CaseType.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/CaseType.js +1 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.js +3 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.js +13 -4
- package/lib/esm/components/CaseInformation/CaseGroup.js +2 -2
- package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.d.ts.map +1 -1
- package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.js +5 -0
- package/lib/esm/components/shared/useIsSectionValid.d.ts.map +1 -1
- package/lib/esm/components/shared/useIsSectionValid.js +4 -1
- package/lib/esm/components/shared/utils.d.ts +0 -1
- package/lib/esm/components/shared/utils.d.ts.map +1 -1
- package/lib/esm/components/shared/utils.js +0 -6
- package/lib/esm/components/wizardLayout/WizardNavigation.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardNavigation.js +6 -3
- package/package.json +9 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseType.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseOverview/CaseType.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAG5D,OAAO,KAAoC,MAAM,OAAO,CAAC;AAOzD,UAAU,MAAO,SAAQ,gBAAgB;IACrC,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,GAAG,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;CACrB;AAOD,iBAAS,QAAQ,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"CaseType.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseOverview/CaseType.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAG5D,OAAO,KAAoC,MAAM,OAAO,CAAC;AAOzD,UAAU,MAAO,SAAQ,gBAAgB;IACrC,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,GAAG,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;CACrB;AAOD,iBAAS,QAAQ,CAAC,KAAK,EAAE,MAAM,qBAqF9B;kBArFQ,QAAQ;;;AAwFjB,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductVersion.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/ProductVersion.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProductVersion.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/ProductVersion.tsx"],"names":[],"mappings":"AAyCA,OAAO,KAAkD,MAAM,OAAO,CAAC;AASvE,UAAU,MAAM;IACZ,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACvC;AAED,iBAAS,eAAe,CAAC,KAAK,EAAE,MAAM,qBA2VrC;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -15,6 +15,7 @@ import { getUniqueSortedVersions, haventLoadedMetadata, toOption, } from '@rh-su
|
|
|
15
15
|
import filter from 'lodash/filter';
|
|
16
16
|
import isEmpty from 'lodash/isEmpty';
|
|
17
17
|
import isEqual from 'lodash/isEqual';
|
|
18
|
+
import isUndefined from 'lodash/isUndefined';
|
|
18
19
|
import map from 'lodash/map';
|
|
19
20
|
import React, { useContext, useEffect, useRef, useState } from 'react';
|
|
20
21
|
import { Trans, useTranslation } from 'react-i18next';
|
|
@@ -192,8 +193,8 @@ function ProductNVersion(props) {
|
|
|
192
193
|
const list = filter(allProducts.data.productsResult, (p) => p.isEntitledProduct);
|
|
193
194
|
if (!list)
|
|
194
195
|
return [];
|
|
195
|
-
const options = shouldFilter && !isEmpty(inputValue.trim())
|
|
196
|
-
? list.filter((v) => v.name.toLowerCase().includes((inputValue || '').toLowerCase()))
|
|
196
|
+
const options = shouldFilter && !isUndefined(inputValue) && !isEmpty(inputValue === null || inputValue === void 0 ? void 0 : inputValue.trim())
|
|
197
|
+
? list.filter((v) => { var _a, _b; return (_a = v.name) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes((_b = (inputValue || '')) === null || _b === void 0 ? void 0 : _b.toLowerCase()); })
|
|
197
198
|
: list;
|
|
198
199
|
return options;
|
|
199
200
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseDiscussion.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,YAAY,EAA0B,MAAM,yCAAyC,CAAC;AAkB1G,OAAO,KAAoE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CaseDiscussion.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,YAAY,EAA0B,MAAM,yCAAyC,CAAC;AAkB1G,OAAO,KAAoE,MAAM,OAAO,CAAC;AAsCzF,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,YAAY,EAAE,CAAC;IAC7B,SAAS,EAAE,SAAS,EAAE,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;IAC/C,eAAe,EAAE,OAAO,CAAC;CAC5B;AAOD,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE,MAAM,qBAyoBnD"}
|
|
@@ -29,7 +29,6 @@ import { useCaseDiscussionTabDispatchContext, useCaseDiscussionTabStateContext,
|
|
|
29
29
|
import { clearReplyComment, discussionSortOrderConst, DiscussionType, setCommentText, setDiscussions, setFilter, setSort, updateAttachment, updateAttacmentsAfterRemoval, updateCommentStateFeedback, updateDiscussionStateAttachments, updateDiscussionStateComments, } from '../../../../reducers/CaseDiscussionTabReducer';
|
|
30
30
|
import { setCaseState } from '../../../../reducers/CaseReducer';
|
|
31
31
|
import { AttachmentContextProvider } from '../../../shared/fileUpload/reducer/AttachmentReducerContext';
|
|
32
|
-
import { removeSpecialChars } from '../../../shared/utils';
|
|
33
32
|
import { PDFContext } from '../../PDFContainer';
|
|
34
33
|
import CaseAttachment from './CaseAttachment';
|
|
35
34
|
import CaseChat from './CaseChat';
|
|
@@ -190,6 +189,15 @@ export default function CaseDiscussion(props) {
|
|
|
190
189
|
clearReplyComment(dispatchDiscussion);
|
|
191
190
|
setReplyingToPrivateComment(null);
|
|
192
191
|
};
|
|
192
|
+
const sanitizedSearchInput = (value) => {
|
|
193
|
+
if (!value)
|
|
194
|
+
return '';
|
|
195
|
+
const sanitizedValue = value.replace(/[^a-zA-Z0-9]/g, '');
|
|
196
|
+
// To escape HTML-like characters (e.g., <, >, &) in sanitizedValue
|
|
197
|
+
const div = document.createElement('div');
|
|
198
|
+
div.textContent = sanitizedValue;
|
|
199
|
+
return div.innerHTML;
|
|
200
|
+
};
|
|
193
201
|
const onCaseCommentSearch = (searchResult = [], searchV = '') => {
|
|
194
202
|
commentIndex !== -1 && setCommentIndex(-1);
|
|
195
203
|
shouldRenderRVComponent && setCanUpdateScrollTop(false);
|
|
@@ -201,11 +209,12 @@ export default function CaseDiscussion(props) {
|
|
|
201
209
|
const highlightSearchResults = (searchTerm) => {
|
|
202
210
|
setTimeout(() => {
|
|
203
211
|
// to mark attachment link button text
|
|
204
|
-
if (!isEmpty(
|
|
212
|
+
if (!isEmpty(sanitizedSearchInput(searchTerm))) {
|
|
213
|
+
const sanitizedSearchTerm = sanitizedSearchInput(searchTerm); // Sanitize the search term
|
|
205
214
|
document.querySelectorAll('button.attachment-download-btn').forEach((button) => {
|
|
206
215
|
var _a, _b;
|
|
207
|
-
if ((_a = button === null || button === void 0 ? void 0 : button.textContent) === null || _a === void 0 ? void 0 : _a.includes(
|
|
208
|
-
button.
|
|
216
|
+
if ((_a = button === null || button === void 0 ? void 0 : button.textContent) === null || _a === void 0 ? void 0 : _a.includes(sanitizedSearchTerm)) {
|
|
217
|
+
button.innerHTML = (_b = button.textContent) === null || _b === void 0 ? void 0 : _b.replace(new RegExp(sanitizedSearchTerm, 'gi'), (match) => `<mark>${match}</mark>`);
|
|
209
218
|
}
|
|
210
219
|
});
|
|
211
220
|
}
|
|
@@ -116,8 +116,8 @@ function CaseGroup(props) {
|
|
|
116
116
|
const list = ownersCaseGroups.data;
|
|
117
117
|
if (!list)
|
|
118
118
|
return [];
|
|
119
|
-
const options = shouldFilter && inputValue.trim()
|
|
120
|
-
? list.filter((v) => v.name.toLowerCase().includes(inputValue.toLowerCase()))
|
|
119
|
+
const options = shouldFilter && (inputValue === null || inputValue === void 0 ? void 0 : inputValue.trim())
|
|
120
|
+
? list.filter((v) => v.name.toLowerCase().includes(inputValue === null || inputValue === void 0 ? void 0 : inputValue.toLowerCase()))
|
|
121
121
|
: list;
|
|
122
122
|
if (isGroupMandatory) {
|
|
123
123
|
// having group selected for case is mandatory, make 'UnGrouped Case' option disabled
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateSeverityModal.d.ts","sourceRoot":"","sources":["../../../../src/components/UpdateSeverityModal/UpdateSeverityModal.tsx"],"names":[],"mappings":"AAgCA,OAAO,KAAmE,MAAM,OAAO,CAAC;AAgBxF,UAAU,MAAM;IACZ,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"UpdateSeverityModal.d.ts","sourceRoot":"","sources":["../../../../src/components/UpdateSeverityModal/UpdateSeverityModal.tsx"],"names":[],"mappings":"AAgCA,OAAO,KAAmE,MAAM,OAAO,CAAC;AAgBxF,UAAU,MAAM;IACZ,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,KAAK,EAAE,MAAM,qBAqlBxD"}
|
|
@@ -366,8 +366,13 @@ export default function UpdateSeverityModal(props) {
|
|
|
366
366
|
caseDetails.caseSeverity,
|
|
367
367
|
]);
|
|
368
368
|
useEffect(() => {
|
|
369
|
+
const phone = `${phoneCountryCode}-${phoneAreaCodePrefixLineNumber}`;
|
|
369
370
|
setLocalFts(fts);
|
|
370
371
|
setLocalFtsContact(contactInfo24x7);
|
|
372
|
+
if (contactInfo24x7 === phone) {
|
|
373
|
+
setCaseState(caseDispatch, { ftsContactSameAsOwner: true });
|
|
374
|
+
}
|
|
375
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
371
376
|
}, [fts, contactInfo24x7]);
|
|
372
377
|
// Returns the modal body with its contents
|
|
373
378
|
const modalBody = () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIsSectionValid.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/useIsSectionValid.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAuB1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAKnE,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,gBAAgB;;;;;
|
|
1
|
+
{"version":3,"file":"useIsSectionValid.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/useIsSectionValid.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAuB1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAKnE,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,gBAAgB;;;;;EA+Q9D"}
|
|
@@ -116,6 +116,7 @@ export function useIsSectionValid(sectionName) {
|
|
|
116
116
|
hasAlternateCaseIdValidLength);
|
|
117
117
|
};
|
|
118
118
|
const isTroubleshootSectionValid = () => {
|
|
119
|
+
var _a;
|
|
119
120
|
if (isBTestvariation) {
|
|
120
121
|
//if we are in the new experience and user is troubleshoot we give them those validity fields
|
|
121
122
|
if (!isCaseCreate) {
|
|
@@ -134,7 +135,9 @@ export function useIsSectionValid(sectionName) {
|
|
|
134
135
|
}
|
|
135
136
|
// don't check for entitled product if user is on search intent flow
|
|
136
137
|
const isEntitledProductLocal = isSearchIntent ? true : isEntitledProduct;
|
|
137
|
-
return !recommendationState.isLoadingRecommendations &&
|
|
138
|
+
return (!recommendationState.isLoadingRecommendations &&
|
|
139
|
+
isEntitledProductLocal &&
|
|
140
|
+
isClusterIDValid(caseState, (_a = allProducts.data) === null || _a === void 0 ? void 0 : _a.productsResult));
|
|
138
141
|
};
|
|
139
142
|
const isReviewSectionValid = () => {
|
|
140
143
|
var _a;
|
|
@@ -15,6 +15,5 @@ export declare const isPhoneValid: (countryCode: string, phoneLine: string) => b
|
|
|
15
15
|
export declare const trimAndReplacePlus: (value: string) => string;
|
|
16
16
|
export declare const removeAllSpaces: (value: string) => string;
|
|
17
17
|
export declare const removeAllChars: (value: string) => string;
|
|
18
|
-
export declare const removeSpecialChars: (value: string) => string;
|
|
19
18
|
export declare const getProductObj: (products: Partial<ISEProduct>[], product: string) => Partial<ISEProduct>;
|
|
20
19
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAGpE,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,EACpC,WAAW,EAAE,CAAC,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,KAAK,iBAAiB,EAC3D,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,KAAK,GAAG,kBAErB,CAAC,iBAAiB,CAAC,uBAQ5C;AAED,eAAO,MAAM,YAAY,gBAAiB,MAAM,aAAa,MAAM,KAAG,OAarE,CAAC;AAEF,eAAO,MAAM,kBAAkB,UAAW,MAAM,WAG/C,CAAC;AAEF,eAAO,MAAM,eAAe,UAAW,MAAM,WAI5C,CAAC;AAEF,eAAO,MAAM,cAAc,UAAW,MAAM,WAI3C,CAAC;AAEF,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAGpE,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,EACpC,WAAW,EAAE,CAAC,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,KAAK,iBAAiB,EAC3D,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,KAAK,GAAG,kBAErB,CAAC,iBAAiB,CAAC,uBAQ5C;AAED,eAAO,MAAM,YAAY,gBAAiB,MAAM,aAAa,MAAM,KAAG,OAarE,CAAC;AAEF,eAAO,MAAM,kBAAkB,UAAW,MAAM,WAG/C,CAAC;AAEF,eAAO,MAAM,eAAe,UAAW,MAAM,WAI5C,CAAC;AAEF,eAAO,MAAM,cAAc,UAAW,MAAM,WAI3C,CAAC;AAEF,eAAO,MAAM,aAAa,aAAc,OAAO,CAAC,UAAU,CAAC,EAAE,WAAW,MAAM,wBAG7E,CAAC"}
|
|
@@ -55,12 +55,6 @@ export const removeAllChars = (value) => {
|
|
|
55
55
|
// to remove all chars, brackets and have only digits
|
|
56
56
|
return value === null || value === void 0 ? void 0 : value.replace(/[^0-9]/g, '');
|
|
57
57
|
};
|
|
58
|
-
export const removeSpecialChars = (value) => {
|
|
59
|
-
if (!value)
|
|
60
|
-
return '';
|
|
61
|
-
// to allow only chars and digits
|
|
62
|
-
return value === null || value === void 0 ? void 0 : value.replace(/[^a-zA-Z0-9]/g, '');
|
|
63
|
-
};
|
|
64
58
|
export const getProductObj = (products, product) => {
|
|
65
59
|
const productIndex = findIndex(products, (p) => p.product === product);
|
|
66
60
|
return productIndex === -1 ? {} : products[productIndex];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WizardNavigation.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardNavigation.tsx"],"names":[],"mappings":"AAQA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAE/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAOvD,OAAO,EAAoB,eAAe,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAM3G,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAC3C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,mBAAmB,EAAE,CAAC,gCAAgC,EAAE,OAAO,KAAK,IAAI,CAAC;IACzE,gBAAgB,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC1C,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,0BAA0B,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IAC5E,kCAAkC,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IACpF,qCAAqC,CAAC,EAAE,OAAO,CAAC;IAChD,gCAAgC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IACjF,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,oBAAoB,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;CACxE;AAGD,iBAAS,gBAAgB,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"WizardNavigation.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardNavigation.tsx"],"names":[],"mappings":"AAQA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAE/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAOvD,OAAO,EAAoB,eAAe,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAM3G,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAC3C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,mBAAmB,EAAE,CAAC,gCAAgC,EAAE,OAAO,KAAK,IAAI,CAAC;IACzE,gBAAgB,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC1C,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,0BAA0B,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IAC5E,kCAAkC,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IACpF,qCAAqC,CAAC,EAAE,OAAO,CAAC;IAChD,gCAAgC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IACjF,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,oBAAoB,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;CACxE;AAGD,iBAAS,gBAAgB,CAAC,KAAK,EAAE,MAAM,qBA6StC;kBA7SQ,gBAAgB;;;AA+SzB,eAAe,gBAAgB,CAAC"}
|
|
@@ -195,7 +195,8 @@ function WizardNavigation(props) {
|
|
|
195
195
|
(!isEntitledProductLocal && props.activeStep.nextButtonLabel === 'Get support') ||
|
|
196
196
|
props.activeStep.nextButtonLabel === 'Troubleshoot' ||
|
|
197
197
|
(!isSectionValidFn(props.activeStep.id) && isNextBtnClickedToShowValidationError) ||
|
|
198
|
-
noValidEntitlement
|
|
198
|
+
noValidEntitlement ||
|
|
199
|
+
recommendationState.isLoadingRecommendations;
|
|
199
200
|
return value;
|
|
200
201
|
}
|
|
201
202
|
else if (isATestvariation) {
|
|
@@ -204,7 +205,8 @@ function WizardNavigation(props) {
|
|
|
204
205
|
(!isEntitledProductLocal && props.activeStep.nextButtonLabel === 'Get support') ||
|
|
205
206
|
props.activeStep.nextButtonLabel === 'Troubleshoot' ||
|
|
206
207
|
(!isSectionValidFn(props.activeStep.id) && isNextBtnClickedToShowValidationError) ||
|
|
207
|
-
noValidEntitlement
|
|
208
|
+
noValidEntitlement ||
|
|
209
|
+
recommendationState.isLoadingRecommendations;
|
|
208
210
|
return value;
|
|
209
211
|
}
|
|
210
212
|
else if (isATestvariation && !isCaseCreate) {
|
|
@@ -212,7 +214,8 @@ function WizardNavigation(props) {
|
|
|
212
214
|
isEmpty(issue) ||
|
|
213
215
|
(!isEntitledProductLocal && props.activeStep.nextButtonLabel === 'Get support') ||
|
|
214
216
|
(!isSectionValidFn(props.activeStep.id) && isNextBtnClickedToShowValidationError) ||
|
|
215
|
-
noValidEntitlement
|
|
217
|
+
noValidEntitlement ||
|
|
218
|
+
recommendationState.isLoadingRecommendations;
|
|
216
219
|
return value;
|
|
217
220
|
}
|
|
218
221
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.5",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@cee-eng/hydrajs": "4.18.0",
|
|
29
29
|
"@cee-eng/ui-toolkit": "1.1.8",
|
|
30
|
-
"@patternfly/patternfly": "5.4.
|
|
31
|
-
"@patternfly/react-core": "5.4.
|
|
30
|
+
"@patternfly/patternfly": "5.4.2",
|
|
31
|
+
"@patternfly/react-core": "5.4.2",
|
|
32
32
|
"dompurify": "^2.2.6",
|
|
33
33
|
"i18next": "^23.15.0",
|
|
34
34
|
"js-markdown-extra": "^1.2.4",
|
|
@@ -52,15 +52,15 @@
|
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@cee-eng/hydrajs": "4.18.0",
|
|
54
54
|
"@cee-eng/ui-toolkit": "1.1.8",
|
|
55
|
-
"@patternfly/patternfly": "5.4.
|
|
56
|
-
"@patternfly/react-core": "5.4.
|
|
57
|
-
"@patternfly/react-table": "5.4.
|
|
55
|
+
"@patternfly/patternfly": "5.4.2",
|
|
56
|
+
"@patternfly/react-core": "5.4.2",
|
|
57
|
+
"@patternfly/react-table": "5.4.2",
|
|
58
58
|
"@progress/kendo-drawing": "^1.6.0",
|
|
59
59
|
"@progress/kendo-licensing": "1.3.5",
|
|
60
60
|
"@progress/kendo-react-pdf": "^5.16.0",
|
|
61
61
|
"@redux-devtools/extension": "^3.3.0",
|
|
62
|
-
"@rh-support/components": "2.5.
|
|
63
|
-
"@rh-support/react-context": "2.5.
|
|
62
|
+
"@rh-support/components": "2.5.4",
|
|
63
|
+
"@rh-support/react-context": "2.5.4",
|
|
64
64
|
"@rh-support/types": "2.0.5",
|
|
65
65
|
"@rh-support/user-permissions": "2.5.1",
|
|
66
66
|
"@rh-support/utils": "2.5.1",
|
|
@@ -135,5 +135,5 @@
|
|
|
135
135
|
"defaults and supports es6-module",
|
|
136
136
|
"maintained node versions"
|
|
137
137
|
],
|
|
138
|
-
"gitHead": "
|
|
138
|
+
"gitHead": "b95b2654a27a2208fcdf880f96643b158723d16a"
|
|
139
139
|
}
|