@rh-support/troubleshoot 2.2.97 → 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.
@@ -71,7 +71,7 @@ export const NewProductDropdownSelector = (props) => {
71
71
  };
72
72
  return (React.createElement("div", null,
73
73
  React.createElement(Select, { variant: SelectVariant.typeahead, typeAheadAriaLabel: t('Search for or select a product'), onToggle: (_event, isOpen) => onToggle(isOpen), onSelect: onSelect, isOpen: isOpen, placeholderText: t('Search for or select a product'), "aria-labelledby": t('Product-selector'), onFilter: onFilter, selections: product, validated: isEmpty(product) && showValidationLocal ? 'error' : 'default', "data-tracking-id": "get-support-product-dropdown-selector" }, getOptions()),
74
- !isSelectedProductSupportedForCustomer && (React.createElement("div", { className: "pf-v5-u-ml-xs pf-v5-u-mt-sm" },
74
+ !isSelectedProductSupportedForCustomer && (React.createElement("div", { className: "pf-v5-u-ml-xs pf-v5-u-mt-sm pf-v5-u-font-size-xs small-font-warning-line-height" },
75
75
  React.createElement(Trans, null, "Red Hat must confirm your subscription status before providing support."),
76
76
  React.createElement("br", null),
77
77
  React.createElement(Trans, null, "We'll contact you if we have question.")))));
@@ -160,5 +160,5 @@ export default function SubmitCase(props) {
160
160
  React.createElement(InsightsResults, { isDisplayOnMain: true })),
161
161
  React.createElement(ClusterRecommendations, { showClusterRecommendationsModal: false }))),
162
162
  React.createElement("div", { className: "pf-v5-u-mt-lg" }, isIdea ? (React.createElement(AsideResults, { routeProps: props.routeProps })) : (!isEmpty(topContent.data) &&
163
- isNotAnIdea && (React.createElement(Suggestions, { title: isIdea ? t('Search recommendations') : t('Product recommendations'), showTitleDescription: true, showMax: 6 })))))))));
163
+ isNotAnIdea && (React.createElement(Suggestions, { title: t('RedHat recommended results'), showTitleDescription: true, showMax: 6 })))))))));
164
164
  }
@@ -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,qBAkDjC;kBAlDQ,WAAW;;;AAoDpB,eAAe,WAAW,CAAC"}
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;iCAsPG,OAAO;EAwC7C"}
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
@@ -968,3 +968,7 @@ svg.pf-v5-u-ml-xs.icon-size {
968
968
  --pf-v5-c-button--PaddingLeft: var(--pf-v5-global--spacer--xs);
969
969
  }
970
970
  }
971
+
972
+ .small-font-warning-line-height {
973
+ line-height: 1rem;
974
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/troubleshoot",
3
- "version": "2.2.97",
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": "0fa0968e831c199572669184c466e9fecd781d12"
134
+ "gitHead": "597e442ef0cee495b9e72ebaf3536804d057fa4e"
135
135
  }