@rh-support/troubleshoot 2.2.114 → 2.2.115

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":"PreCaseConfirmationModals.d.ts","sourceRoot":"","sources":["../../../../src/components/ConfirmationModals/PreCaseConfirmationModals.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,oBAAY,6BAA6B;IACrC,SAAS,aAAa;IACtB,mBAAmB,sBAAsB;IACzC,UAAU,cAAc;IACxB,mBAAmB,sBAAsB;CAC5C;AAED,UAAU,MAAM;IACZ,qBAAqB,EAAE,6BAA6B,CAAC;IACrD,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,SAAS,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,KAAK,EAAE,MAAM,qBAwB9D"}
1
+ {"version":3,"file":"PreCaseConfirmationModals.d.ts","sourceRoot":"","sources":["../../../../src/components/ConfirmationModals/PreCaseConfirmationModals.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,oBAAY,6BAA6B;IACrC,SAAS,aAAa;IACtB,mBAAmB,sBAAsB;IACzC,UAAU,cAAc;IACxB,mBAAmB,sBAAsB;CAC5C;AAED,UAAU,MAAM;IACZ,qBAAqB,EAAE,6BAA6B,CAAC;IACrD,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,SAAS,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,KAAK,EAAE,MAAM,qBAqB9D"}
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import { ConfirmedStateSideSupportModal } from './ConfirmedStateSideSupportModal';
3
2
  import { NoAttachmentSelectedModal } from './NoAttachmentSelectedModal';
4
3
  import { PreferredSecureSupportModal } from './PreferredSecureSupportModal';
5
4
  import ROCMModal from './ROCMModal';
@@ -19,7 +18,6 @@ export default function PreCaseConfirmationModals(props) {
19
18
  onModalClose && onModalClose();
20
19
  };
21
20
  return (React.createElement(React.Fragment, null,
22
- confirmationModalType === PreCaseConfirmationModalsEnum.CSS_MODAL && (React.createElement(ConfirmedStateSideSupportModal, { isOpen: true, onClose: closeModal })),
23
21
  confirmationModalType === PreCaseConfirmationModalsEnum.PREFERRED_GS4_Modal && (React.createElement(PreferredSecureSupportModal, { isOpen: true, onClose: closeModal })),
24
22
  confirmationModalType === PreCaseConfirmationModalsEnum.ROCM_MODAL && (React.createElement(ROCMModal, { isOpen: true, onClose: closeModal, onConfirm: props.onConfirm })),
25
23
  confirmationModalType === PreCaseConfirmationModalsEnum.NO_ATTACHMENT_MODAL && (React.createElement(NoAttachmentSelectedModal, { isOpen: true, onClose: closeModal, onConfirm: props.onConfirm }))));
@@ -10,15 +10,15 @@ const MainSection = (props) => {
10
10
  const { globalMetadataState: { loggedInUsersAccount }, } = useContext(GlobalMetadataStateContext);
11
11
  const isConfirmedStateSideSupport = (_a = loggedInUsersAccount === null || loggedInUsersAccount === void 0 ? void 0 : loggedInUsersAccount.data) === null || _a === void 0 ? void 0 : _a.hasConfirmedStatesideSupport;
12
12
  return (React.createElement(ErrorBoundary, { isPageLevelError: true },
13
- isConfirmedStateSideSupport && (React.createElement(Alert, { isInline: true, variant: "warning", title: "You have a confirmed stateside support account", className: "pf-v5-u-mb-lg" },
14
- React.createElement("p", null,
15
- "To adhere to data regulations, open this case through",
16
- ' ',
17
- React.createElement("b", null,
18
- React.createElement("a", { href: "https://css-redhat.zendesk.com", target: "_blank", rel: "noopener noreferrer", "data-tracking-id": "stateside-support-link" }, "Confirmed Stateside Support")),
19
- ' ',
20
- "instead of traditional support."))),
21
13
  React.createElement("section", { id: `${props.section}-section`, tabIndex: -1, "aria-labelledby": `${props.section}-heading`, "aria-describedby": `${props.section}-description`, className: `main-step-content ${props.className ? props.className : ''}` },
14
+ isConfirmedStateSideSupport && (React.createElement(Alert, { isInline: true, variant: "warning", title: "You have a confirmed stateside support account", className: "pf-v5-u-mb-lg" },
15
+ React.createElement("p", null,
16
+ "To adhere to data regulations, open this case through",
17
+ ' ',
18
+ React.createElement("b", null,
19
+ React.createElement("a", { href: "https://css-redhat.zendesk.com", target: "_blank", rel: "noopener noreferrer", "data-tracking-id": "stateside-support-link" }, "Confirmed Stateside Support")),
20
+ ' ',
21
+ "instead of traditional support."))),
22
22
  React.createElement(LoadingIndicator, { show: props.isLoading, size: "lg" }),
23
23
  !props.isLoading && (React.createElement(React.Fragment, null,
24
24
  React.createElement("header", { className: "pf-v5-u-display-none-on-sm" },
@@ -1 +1 @@
1
- {"version":3,"file":"WizardLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardLayout.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAMvD,OAAO,EAAuC,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAavG,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,qBAoKzC"}
1
+ {"version":3,"file":"WizardLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardLayout.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAMvD,OAAO,EAAuC,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAavG,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,qBAiKzC"}
@@ -97,12 +97,8 @@ export function WizardLayout(props) {
97
97
  !isReSubmitting &&
98
98
  RouteUtils.navigateToSection(props.routeProps, `${RouteUtils.seBasePath}/${AppRouteSections.SUBMIT_CASE}`, false);
99
99
  });
100
- const confirmSupportModal = (isConfirmedStateSideSupport, hasPreferredSecureSupportAccount) => {
101
- // confirmed state side support show modal logic
102
- if (isConfirmedStateSideSupport) {
103
- setConfirmationModalType(PreCaseConfirmationModalsEnum.CSS_MODAL);
104
- }
105
- else if (hasPreferredSecureSupportAccount) {
100
+ const confirmSupportModal = (hasPreferredSecureSupportAccount) => {
101
+ if (hasPreferredSecureSupportAccount) {
106
102
  setConfirmationModalType(PreCaseConfirmationModalsEnum.PREFERRED_GS4_Modal);
107
103
  // track pendo event
108
104
  pendoTrackEvent(preferredSSModalOpenPendoEvent);
@@ -4,7 +4,7 @@ import { IRouteUrlParams } from '../../reducers/RouteConstNTypes';
4
4
  interface IProps {
5
5
  routeProps: RouteComponentProps<IRouteUrlParams>;
6
6
  submitCaseAndNavigate: (isReSubmitting: boolean) => void;
7
- confirmSupportModal: (isConfirmedStateSideSupport: boolean, hasPreferredSecureSupportAccount: boolean) => void;
7
+ confirmSupportModal: (hasPreferredSecureSupportAccount: boolean) => void;
8
8
  }
9
9
  declare function WizardMain(props: IProps): React.JSX.Element;
10
10
  export default WizardMain;
@@ -1 +1 @@
1
- {"version":3,"file":"WizardMain.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardMain.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAE9D,OAAO,EAAS,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAK9D,OAAO,EAAoB,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAOpF,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,qBAAqB,EAAE,CAAC,cAAc,EAAE,OAAO,KAAK,IAAI,CAAC;IACzD,mBAAmB,EAAE,CAAC,2BAA2B,EAAE,OAAO,EAAE,gCAAgC,EAAE,OAAO,KAAK,IAAI,CAAC;CAClH;AAED,iBAAS,UAAU,CAAC,KAAK,EAAE,MAAM,qBA+GhC;AACD,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"WizardMain.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardMain.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAE9D,OAAO,EAAS,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAK9D,OAAO,EAAoB,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAOpF,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,qBAAqB,EAAE,CAAC,cAAc,EAAE,OAAO,KAAK,IAAI,CAAC;IACzD,mBAAmB,EAAE,CAAC,gCAAgC,EAAE,OAAO,KAAK,IAAI,CAAC;CAC5E;AAED,iBAAS,UAAU,CAAC,KAAK,EAAE,MAAM,qBA+GhC;AACD,eAAe,UAAU,CAAC"}
@@ -7,7 +7,7 @@ interface IProps {
7
7
  onBack: () => void;
8
8
  activeStep: Partial<ISectionConfiguration>;
9
9
  onSubmit: () => void;
10
- confirmSupportModal: (isConfirmedStateSideSupport: boolean, hasPreferredSecureSupportAccount: boolean) => void;
10
+ confirmSupportModal: (hasPreferredSecureSupportAccount: boolean) => void;
11
11
  onShowRestUpdate: (flag: boolean) => void;
12
12
  }
13
13
  declare function WizardNavigation(props: IProps): React.JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"WizardNavigation.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardNavigation.tsx"],"names":[],"mappings":"AAOA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAMnD,OAAO,EAAoB,eAAe,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAK3G,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,2BAA2B,EAAE,OAAO,EAAE,gCAAgC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/G,gBAAgB,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CAC7C;AAGD,iBAAS,gBAAgB,CAAC,KAAK,EAAE,MAAM,qBA8JtC;kBA9JQ,gBAAgB;;;AAgKzB,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"WizardNavigation.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardNavigation.tsx"],"names":[],"mappings":"AAOA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAMnD,OAAO,EAAoB,eAAe,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAK3G,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;CAC7C;AAGD,iBAAS,gBAAgB,CAAC,KAAK,EAAE,MAAM,qBA0JtC;kBA1JQ,gBAAgB;;;AA4JzB,eAAe,gBAAgB,CAAC"}
@@ -47,16 +47,14 @@ function WizardNavigation(props) {
47
47
  }), isEqual);
48
48
  const caseDispatch = useCaseDispatch();
49
49
  const onNext = () => {
50
- var _a, _b;
50
+ var _a;
51
51
  updateisNextBtnClickedToShowValidationError(dispatchToRouteReducer, true);
52
52
  const userCanNotOpenCase = props.activeStep.id === AppRouteSections.TROUBLESHOOT && canCreateCase.alert();
53
53
  if (userCanNotOpenCase || !isSectionValidFn(props.activeStep.id))
54
54
  return;
55
- const isConfirmedStateSideSupport = (_a = loggedInUsersAccount === null || loggedInUsersAccount === void 0 ? void 0 : loggedInUsersAccount.data) === null || _a === void 0 ? void 0 : _a.hasConfirmedStatesideSupport;
56
- const hasPreferredSecureSupportAccount = (_b = loggedInUsersAccount === null || loggedInUsersAccount === void 0 ? void 0 : loggedInUsersAccount.data) === null || _b === void 0 ? void 0 : _b.hasPreferredSecureSupportAccount;
57
- if (props.activeStep.id === AppRouteSections.TROUBLESHOOT &&
58
- (isConfirmedStateSideSupport || hasPreferredSecureSupportAccount)) {
59
- props.confirmSupportModal(isConfirmedStateSideSupport, hasPreferredSecureSupportAccount);
55
+ const hasPreferredSecureSupportAccount = (_a = loggedInUsersAccount === null || loggedInUsersAccount === void 0 ? void 0 : loggedInUsersAccount.data) === null || _a === void 0 ? void 0 : _a.hasPreferredSecureSupportAccount;
56
+ if (props.activeStep.id === AppRouteSections.TROUBLESHOOT && hasPreferredSecureSupportAccount) {
57
+ props.confirmSupportModal(hasPreferredSecureSupportAccount);
60
58
  return;
61
59
  }
62
60
  if (props.activeStep.isLastStep) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/troubleshoot",
3
- "version": "2.2.114",
3
+ "version": "2.2.115",
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": "b97fc0dcf1be4fd610eaaaac840a568ee6bb9867"
135
135
  }
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- interface IProps {
3
- isOpen: boolean;
4
- onClose: () => void;
5
- }
6
- export declare const ConfirmedStateSideSupportModal: (props: IProps) => React.JSX.Element;
7
- export {};
8
- //# sourceMappingURL=ConfirmedStateSideSupportModal.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ConfirmedStateSideSupportModal.d.ts","sourceRoot":"","sources":["../../../../src/components/ConfirmationModals/ConfirmedStateSideSupportModal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,MAAM;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,eAAO,MAAM,8BAA8B,UAAW,MAAM,sBAiC3D,CAAC"}
@@ -1,21 +0,0 @@
1
- import { Modal, ModalVariant } from '@patternfly/react-core';
2
- import React from 'react';
3
- import { Trans, useTranslation } from 'react-i18next';
4
- export const ConfirmedStateSideSupportModal = (props) => {
5
- const { t } = useTranslation();
6
- return (React.createElement(Modal, { id: "confirmed-state-side-support-modal", title: t('Confirmed Stateside Support Account'), "aria-describedby": "confirmed-state-side-support-modal", isOpen: props.isOpen, onClose: props.onClose, showClose: true, variant: ModalVariant.small },
7
- React.createElement("p", null,
8
- React.createElement(Trans, null, "Thank you for being a Red Hat Confirmed Stateside Support customer. CSS customers receive their support via a special case management system and a separate phone support number."),
9
- "\u00A0",
10
- React.createElement(Trans, { i18nKey: "i18CSSZenDesk" },
11
- "For opening a CSS support case, please visit",
12
- ' ',
13
- React.createElement("a", { href: "https://css-redhat.zendesk.com", target: "_blank", rel: "noopener noreferrer" }, "css-redhat.zendesk.com"),
14
- ' ',
15
- "or you may dial 888-472-0031 for phone support."),
16
- React.createElement("br", null),
17
- React.createElement("br", null),
18
- React.createElement(Trans, null, "Thank You,"),
19
- React.createElement("br", null),
20
- React.createElement(Trans, null, "Red Hat Support Delivery"))));
21
- };