@rh-support/troubleshoot 2.2.98 → 2.2.99
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WizardAside.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardAside.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAInD,OAAO,EAGH,eAAe,EAKlB,MAAM,iCAAiC,CAAC;AASzC,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,2BAA2B,EAAE,OAAO,CAAC;CACxC;AAGD,iBAAS,WAAW,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"WizardAside.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardAside.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAInD,OAAO,EAGH,eAAe,EAKlB,MAAM,iCAAiC,CAAC;AASzC,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,2BAA2B,EAAE,OAAO,CAAC;CACxC;AAGD,iBAAS,WAAW,CAAC,KAAK,EAAE,MAAM,qBAsDjC;kBAtDQ,WAAW;;;AAwDpB,eAAe,WAAW,CAAC"}
|
|
@@ -33,8 +33,7 @@ function WizardAside(props) {
|
|
|
33
33
|
const canShowRecommendationTips = showRecommendationTipsSections.includes(activeSection);
|
|
34
34
|
return (React.createElement("aside", null,
|
|
35
35
|
React.createElement("section", { className: "grid-aside-content" },
|
|
36
|
-
React.createElement(InsightsResults, null),
|
|
37
|
-
" ",
|
|
36
|
+
canShowFileUploadWidget() && React.createElement(InsightsResults, null),
|
|
38
37
|
canShowFileUploadWidget() && React.createElement(FileDiag, { className: "pf-v5-u-mb-md" }),
|
|
39
38
|
canshowEARuleWidget && React.createElement(EARuleWidget, null),
|
|
40
39
|
!(isIdea && activeSection === 'submit-case') && (React.createElement(AsideResults, { routeProps: props.routeProps, className: "pf-v5-u-mb-md pf-v5-u-mt-0" })),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWizard.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWizard.tsx"],"names":[],"mappings":"AA+BA,wBAAgB,SAAS,CAAC,UAAU,KAAA;
|
|
1
|
+
{"version":3,"file":"useWizard.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWizard.tsx"],"names":[],"mappings":"AA+BA,wBAAgB,SAAS,CAAC,UAAU,KAAA;iCA8OG,OAAO;EAwC7C"}
|
|
@@ -38,21 +38,12 @@ export function useWizard(routeProps) {
|
|
|
38
38
|
enableNext: false,
|
|
39
39
|
nextButtonLabel: 'Continue',
|
|
40
40
|
};
|
|
41
|
-
const focusWizardMainPanel = () => {
|
|
42
|
-
setTimeout(() => {
|
|
43
|
-
var _a;
|
|
44
|
-
(_a = document.querySelector('.main-step-content')) === null || _a === void 0 ? void 0 : _a.focus();
|
|
45
|
-
}, 250);
|
|
46
|
-
};
|
|
47
41
|
const alertMessage = () => {
|
|
48
42
|
// alert title and variant based on multiple conditions for two different sections
|
|
49
43
|
const isLoading = topContent.isFetching || (isLoadingRecommendations && summary);
|
|
50
44
|
const title = isLoading
|
|
51
45
|
? t('Please wait while recommendations are loading')
|
|
52
46
|
: t('Please address the errors to proceed');
|
|
53
|
-
if (isNextBtnClickedToShowValidationError) {
|
|
54
|
-
focusWizardMainPanel();
|
|
55
|
-
}
|
|
56
47
|
return (React.createElement(AlertMessage, { show: isNextBtnClickedToShowValidationError && !isActiveSectionValid, variant: (isLoadingRecommendations && summary) || topContent.isFetching ? AlertType.INFO : AlertType.DANGER, isInline: true, title: title, className: "pf-v5-u-mb-lg", "data-tracking-id": isLoading ? 'wait-recommendations-loading' : 'proceed-address-errors' }));
|
|
57
48
|
};
|
|
58
49
|
// components that are used in wizard steps
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.99",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -131,5 +131,5 @@
|
|
|
131
131
|
"defaults and supports es6-module",
|
|
132
132
|
"maintained node versions"
|
|
133
133
|
],
|
|
134
|
-
"gitHead": "
|
|
134
|
+
"gitHead": "597e442ef0cee495b9e72ebaf3536804d057fa4e"
|
|
135
135
|
}
|