@rh-support/troubleshoot 2.2.114 → 2.2.116

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.
Files changed (32) hide show
  1. package/lib/esm/components/AccountInfo/OwnerSelector.d.ts.map +1 -1
  2. package/lib/esm/components/AccountInfo/OwnerSelector.js +15 -7
  3. package/lib/esm/components/CaseEditView/CaseOverview/index.js +2 -2
  4. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.js +1 -1
  5. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseDetailsManagement.js +2 -2
  6. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberConfirmAlert.d.ts.map +1 -1
  7. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberConfirmAlert.js +4 -2
  8. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/{CasePhoneNumberTopConfirmAlert.d.ts → CasePhoneNumberSev1ConfirmAlert.d.ts} +2 -2
  9. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberSev1ConfirmAlert.d.ts.map +1 -0
  10. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/{CasePhoneNumberTopConfirmAlert.js → CasePhoneNumberSev1ConfirmAlert.js} +4 -4
  11. package/lib/esm/components/CaseInformation/ContactPhoneNumber.d.ts.map +1 -1
  12. package/lib/esm/components/CaseInformation/ContactPhoneNumber.js +1 -3
  13. package/lib/esm/components/CaseInformation/ContactPhoneNumberAlert.d.ts.map +1 -1
  14. package/lib/esm/components/CaseInformation/ContactPhoneNumberAlert.js +13 -2
  15. package/lib/esm/components/ConfirmationModals/PreCaseConfirmationModals.d.ts.map +1 -1
  16. package/lib/esm/components/ConfirmationModals/PreCaseConfirmationModals.js +0 -2
  17. package/lib/esm/components/wizardLayout/MainSection.js +8 -8
  18. package/lib/esm/components/wizardLayout/WizardLayout.d.ts.map +1 -1
  19. package/lib/esm/components/wizardLayout/WizardLayout.js +2 -6
  20. package/lib/esm/components/wizardLayout/WizardMain.d.ts +1 -1
  21. package/lib/esm/components/wizardLayout/WizardMain.d.ts.map +1 -1
  22. package/lib/esm/components/wizardLayout/WizardNavigation.d.ts +1 -1
  23. package/lib/esm/components/wizardLayout/WizardNavigation.d.ts.map +1 -1
  24. package/lib/esm/components/wizardLayout/WizardNavigation.js +4 -6
  25. package/lib/esm/reducers/CaseConstNTypes.d.ts +1 -0
  26. package/lib/esm/reducers/CaseConstNTypes.d.ts.map +1 -1
  27. package/lib/esm/reducers/CaseConstNTypes.js +1 -0
  28. package/package.json +8 -8
  29. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberTopConfirmAlert.d.ts.map +0 -1
  30. package/lib/esm/components/ConfirmationModals/ConfirmedStateSideSupportModal.d.ts +0 -8
  31. package/lib/esm/components/ConfirmationModals/ConfirmedStateSideSupportModal.d.ts.map +0 -1
  32. package/lib/esm/components/ConfirmationModals/ConfirmedStateSideSupportModal.js +0 -21
@@ -1 +1 @@
1
- {"version":3,"file":"OwnerSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/AccountInfo/OwnerSelector.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAkB/D,UAAU,MAAM;CAAG;AAEnB,iBAAS,aAAa,CAAC,KAAK,EAAE,MAAM,qBAgXnC;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
1
+ {"version":3,"file":"OwnerSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/AccountInfo/OwnerSelector.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAkB/D,UAAU,MAAM;CAAG;AAEnB,iBAAS,aAAa,CAAC,KAAK,EAAE,MAAM,qBAyXnC;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
@@ -28,7 +28,7 @@ import { getChangedValueTooltip } from '../shared/utils';
28
28
  function OwnerSelector(props) {
29
29
  const { t } = useTranslation();
30
30
  const caseUpdateError = useCaseUpdateErrorMessage();
31
- const { accountNumber, caseNumber, selectedNotificationContacts, selectedOwner, selectedCaseGroupUsers, isCaseOwnerUpdating, caseDetailes, } = useCaseSelector((state) => ({
31
+ const { accountNumber, caseNumber, selectedNotificationContacts, selectedOwner, selectedCaseGroupUsers, isCaseOwnerUpdating, caseDetailes, hasLoggedInUserConfirmedPhoneNumber, } = useCaseSelector((state) => ({
32
32
  accountNumber: state.caseDetails.accountNumberRef,
33
33
  caseNumber: state.caseDetails.caseNumber,
34
34
  selectedNotificationContacts: state.selectedNotificationContacts,
@@ -36,6 +36,7 @@ function OwnerSelector(props) {
36
36
  selectedCaseGroupUsers: state.selectedCaseGroupUsers,
37
37
  isCaseOwnerUpdating: state.isCaseOwnerUpdating,
38
38
  caseDetailes: state.caseDetails,
39
+ hasLoggedInUserConfirmedPhoneNumber: state.hasLoggedInUserConfirmedPhoneNumber,
39
40
  }), isEqual);
40
41
  const { routeState: { isNextBtnClickedToShowValidationError }, } = useContext(RouteContext);
41
42
  const caseDispatch = useCaseDispatch();
@@ -59,7 +60,10 @@ function OwnerSelector(props) {
59
60
  setCaseDetails(caseDispatch, {
60
61
  phoneAreaCodePrefixLineNumber: loggedInUser.data.supportPhoneAreaCodePrefixLineNumber,
61
62
  phoneCountryCode: loggedInUser.data.supportPhoneCountryCode,
62
- suppliedPhoneNumberVerified: 'True',
63
+ suppliedPhoneNumberVerified: isEqual(hasLoggedInUserConfirmedPhoneNumber, 'True') || //hasLoggedInUserConfirmedPhoneNumber: global verification phone state for contactSSOName === loggedInUser.data.ssoUsername
64
+ isEqual(hasLoggedInUserConfirmedPhoneNumber, 'Deferred')
65
+ ? hasLoggedInUserConfirmedPhoneNumber
66
+ : 'False',
63
67
  });
64
68
  }
65
69
  else {
@@ -68,7 +72,10 @@ function OwnerSelector(props) {
68
72
  setCaseDetails(caseDispatch, {
69
73
  phoneAreaCodePrefixLineNumber: phoneLine,
70
74
  phoneCountryCode: countryCode,
71
- suppliedPhoneNumberVerified: phoneLine && countryCode ? 'True' : 'False',
75
+ suppliedPhoneNumberVerified: isEqual(hasLoggedInUserConfirmedPhoneNumber, 'True') ||
76
+ isEqual(hasLoggedInUserConfirmedPhoneNumber, 'Deferred')
77
+ ? hasLoggedInUserConfirmedPhoneNumber
78
+ : 'False',
72
79
  });
73
80
  }
74
81
  }
@@ -101,7 +108,7 @@ function OwnerSelector(props) {
101
108
  });
102
109
  const updatePhone = (phoneSetting) => __awaiter(this, void 0, void 0, function* () {
103
110
  yield updateCaseDetails(caseDispatch, caseNumber, phoneSetting);
104
- setCaseDetails(caseDispatch, Object.assign(Object.assign({}, caseDetailes), phoneSetting));
111
+ setCaseDetails(caseDispatch, Object.assign({}, phoneSetting));
105
112
  });
106
113
  // set owner on updating a case
107
114
  const updateContactPhoneNumber = (sso) => __awaiter(this, void 0, void 0, function* () {
@@ -113,14 +120,12 @@ function OwnerSelector(props) {
113
120
  yield updatePhone({
114
121
  phoneAreaCodePrefixLineNumber: loggedInUser.data.supportPhoneAreaCodePrefixLineNumber,
115
122
  phoneCountryCode: loggedInUser.data.supportPhoneCountryCode,
116
- suppliedPhoneNumberVerified: 'True',
117
123
  });
118
124
  }
119
125
  else {
120
126
  yield updatePhone({
121
127
  phoneAreaCodePrefixLineNumber: getPhoneObj(loggedInUser.data.phone).phoneLine || '',
122
128
  phoneCountryCode: getPhoneObj(loggedInUser.data.phone).countryCode || '',
123
- suppliedPhoneNumberVerified: 'False',
124
129
  });
125
130
  }
126
131
  }
@@ -212,6 +217,9 @@ function OwnerSelector(props) {
212
217
  setCaseState(caseDispatch, { isCaseOwnerUpdating: true });
213
218
  try {
214
219
  yield updateCaseDetails(caseDispatch, caseNumber, caseDetails);
220
+ setCaseDetails(caseDispatch, {
221
+ contactSSOName: newOwner.ssoUsername,
222
+ });
215
223
  const abortSignal = new AbortController().signal;
216
224
  yield setCaseOwner(caseDispatch, {
217
225
  ssoUsername: newOwner.ssoUsername,
@@ -221,9 +229,9 @@ function OwnerSelector(props) {
221
229
  }, '', abortSignal);
222
230
  setLocalOwnerChange(true);
223
231
  updateNotifyUsersList(newOwner);
232
+ ToastNotification.addSuccessMessage(t(`Owner has been successfully updated`));
224
233
  yield updateContactPhoneNumber(newOwner.ssoUsername);
225
234
  setCaseState(caseDispatch, { isCaseOwnerUpdating: false });
226
- ToastNotification.addSuccessMessage(t(`Owner has been successfully updated`));
227
235
  }
228
236
  catch (e) {
229
237
  setCaseState(caseDispatch, { isCaseOwnerUpdating: false });
@@ -28,7 +28,7 @@ import { ReopenCaseModal } from '../ConfirmationModals/ReopenCaseModal';
28
28
  import { PDFContext } from '../PDFContainer';
29
29
  import { CaseInformation } from '../Tabs/CaseDetails/CaseInformation';
30
30
  import { CaseContactPhoneNumberAlert } from '../Tabs/CaseDetails/CasePhoneNumberConfirmAlert';
31
- import { CasePhoneNumberTopConfirmAlert } from '../Tabs/CaseDetails/CasePhoneNumberTopConfirmAlert';
31
+ import { CasePhoneNumberSev1ConfirmAlert } from '../Tabs/CaseDetails/CasePhoneNumberSev1ConfirmAlert';
32
32
  import Summary from '../Tabs/CaseDetails/Summary';
33
33
  import CaseOwnerInfo from './CaseOwnerInfo';
34
34
  import CaseStatus from './CaseStatus';
@@ -240,7 +240,7 @@ export default function CaseOverview(props) {
240
240
  React.createElement("p", { className: "pf-v5-u-mb-sm" },
241
241
  React.createElement(Trans, null, "The customer has received two warnings regarding inactivity. This case will be closed soon if we don't receive any input."))) })))),
242
242
  React.createElement(CaseContactPhoneNumberAlert, { isReview: true, tabRef: props.tabsRef }),
243
- React.createElement(CasePhoneNumberTopConfirmAlert, { isReview: true, tabRef: props.tabsRef }),
243
+ React.createElement(CasePhoneNumberSev1ConfirmAlert, { isReview: true, tabRef: props.tabsRef }),
244
244
  React.createElement("header", null,
245
245
  React.createElement("h2", { className: "case-ID" },
246
246
  React.createElement(Trans, null, "Case"),
@@ -153,7 +153,7 @@ export function CaseContactPhoneNumber() {
153
153
  setIsShowOldPhone(false);
154
154
  }
155
155
  // eslint-disable-next-line react-hooks/exhaustive-deps
156
- }, []);
156
+ }, [phone, phoneAreaCodePrefixLineNumber, phoneCountryCode]);
157
157
  return (React.createElement("div", { className: "form-group pf-v5-u-pb-md", style: { minWidth: '200px' } },
158
158
  React.createElement("h3", { className: `subheading subheading-sm ${isExportingPDF ? 'expand-input' : ''}` },
159
159
  React.createElement(Trans, null, "Case owner's phone number"),
@@ -14,7 +14,7 @@ import { ShareWithPartner } from '../../ShareCase/PartnerShare';
14
14
  import { CaseContactPhoneNumber } from './CaseContactPhoneNumber';
15
15
  import CaseInternalStatus from './CaseInternalStatus';
16
16
  import { CaseContactPhoneNumberAlert } from './CasePhoneNumberConfirmAlert';
17
- import { CasePhoneNumberTopConfirmAlert } from './CasePhoneNumberTopConfirmAlert';
17
+ import { CasePhoneNumberSev1ConfirmAlert } from './CasePhoneNumberSev1ConfirmAlert';
18
18
  import CaseReferenceNumber from './CaseReferenceNumber';
19
19
  import CaseSbrGroups from './CaseSbrGroups';
20
20
  export default function CaseDetailsManagement(props) {
@@ -39,7 +39,7 @@ export default function CaseDetailsManagement(props) {
39
39
  React.createElement(FlexItem, { flex: { default: 'flex_1' } },
40
40
  React.createElement(CaseContactPhoneNumber, null))),
41
41
  React.createElement(CaseContactPhoneNumberAlert, { isConfirm: true }),
42
- React.createElement(CasePhoneNumberTopConfirmAlert, { isConfirm: true }),
42
+ React.createElement(CasePhoneNumberSev1ConfirmAlert, { isConfirm: true }),
43
43
  canSeeInternalStatus && React.createElement(CaseInternalStatus, null),
44
44
  canSeeSBRGroups && React.createElement(CaseSbrGroups, null),
45
45
  React.createElement(CaseGroup, null),
@@ -1 +1 @@
1
- {"version":3,"file":"CasePhoneNumberConfirmAlert.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberConfirmAlert.tsx"],"names":[],"mappings":"AAOA,OAAO,KAA+B,MAAM,OAAO,CAAC;AASpD,UAAU,MAAM;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;CACnD;AAED,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,qBAqGxD"}
1
+ {"version":3,"file":"CasePhoneNumberConfirmAlert.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberConfirmAlert.tsx"],"names":[],"mappings":"AAOA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAUpD,UAAU,MAAM;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;CACnD;AAED,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,qBAuGxD"}
@@ -23,11 +23,12 @@ import { PDFContext } from '../../PDFContainer';
23
23
  export function CaseContactPhoneNumberAlert(props) {
24
24
  const { globalMetadataState: { loggedInUser }, } = useContext(GlobalMetadataStateContext);
25
25
  const [isCaseUpdating, setCasUpdating] = useState(false);
26
- const { caseNumber, suppliedPhoneNumberVerified, contactSSOName, isCaseOwnerUpdating } = useCaseSelector((state) => ({
26
+ const { caseNumber, suppliedPhoneNumberVerified, contactSSOName, isCaseOwnerUpdating, severity } = useCaseSelector((state) => ({
27
27
  caseNumber: state.caseDetails.caseNumber,
28
28
  suppliedPhoneNumberVerified: state.caseDetails.suppliedPhoneNumberVerified,
29
29
  contactSSOName: state.caseDetails.contactSSOName,
30
30
  isCaseOwnerUpdating: state.isCaseOwnerUpdating,
31
+ severity: state.caseDetails.severity,
31
32
  }), isEqual);
32
33
  const { t } = useTranslation();
33
34
  const caseDispatch = useCaseDispatch();
@@ -51,7 +52,8 @@ export function CaseContactPhoneNumberAlert(props) {
51
52
  const isPhoneNeedsReview = !isEmpty(contactSSOName) &&
52
53
  contactSSOName === loggedInUser.data.ssoUsername &&
53
54
  suppliedPhoneNumberVerified === 'Deferred' &&
54
- !isCaseOwnerUpdating;
55
+ !isCaseOwnerUpdating &&
56
+ severity !== "1 (Urgent)" /* SeverityLevelsInternal.SEV_1 */; // we show another alert when sev is 1
55
57
  const NEW_OWNER_MSG = 'You are the new owner for this case. Is the new phone number correct?';
56
58
  if (!isPhoneNeedsReview)
57
59
  return React.createElement(React.Fragment, null);
@@ -4,6 +4,6 @@ interface IProps {
4
4
  isConfirm?: boolean;
5
5
  tabRef?: React.MutableRefObject<HTMLDivElement>;
6
6
  }
7
- export declare function CasePhoneNumberTopConfirmAlert(props: IProps): React.JSX.Element;
7
+ export declare function CasePhoneNumberSev1ConfirmAlert(props: IProps): React.JSX.Element;
8
8
  export {};
9
- //# sourceMappingURL=CasePhoneNumberTopConfirmAlert.d.ts.map
9
+ //# sourceMappingURL=CasePhoneNumberSev1ConfirmAlert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CasePhoneNumberSev1ConfirmAlert.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberSev1ConfirmAlert.tsx"],"names":[],"mappings":"AAOA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAUpD,UAAU,MAAM;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;CACnD;AAMD,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,qBAuG5D"}
@@ -24,7 +24,7 @@ import { PDFContext } from '../../PDFContainer';
24
24
  On case detail page when case owner changes the sevirity to sev1, this alert will be displayed
25
25
  // what happens when partner changes ???
26
26
  */
27
- export function CasePhoneNumberTopConfirmAlert(props) {
27
+ export function CasePhoneNumberSev1ConfirmAlert(props) {
28
28
  const { globalMetadataState: { loggedInUser }, } = useContext(GlobalMetadataStateContext);
29
29
  const [isCaseUpdating, setCasUpdating] = useState(false);
30
30
  const { caseNumber, suppliedPhoneNumberVerified, contactSSOName, severity, isCaseOwnerUpdating } = useCaseSelector((state) => ({
@@ -58,7 +58,7 @@ export function CasePhoneNumberTopConfirmAlert(props) {
58
58
  severity === "1 (Urgent)" /* SeverityLevelsInternal.SEV_1 */ &&
59
59
  suppliedPhoneNumberVerified !== 'True' &&
60
60
  !isCaseOwnerUpdating;
61
- const SEV_MSG = 'Please confirm the phone number we have on file is correct.';
61
+ const SEV1_MSG = 'This case severity is urgent. Please confirm the phone number we have on file is correct.';
62
62
  if (!isPhoneNeedsConfirm)
63
63
  return React.createElement(React.Fragment, null);
64
64
  return (React.createElement(React.Fragment, null, props.isReview && !isExportingPDF ? (React.createElement(Alert, { className: "pf-v5-u-mb-md", isInline: true, variant: AlertVariant.warning, title: t('Review phone number'), component: "p", actionLinks: [
@@ -67,9 +67,9 @@ export function CasePhoneNumberTopConfirmAlert(props) {
67
67
  }, onClick: () => goToPhoneField(), "data-tracking-id": "case-contact-phone-number-review" },
68
68
  React.createElement(Trans, null, "Review phone number")),
69
69
  ] },
70
- React.createElement(Trans, null, SEV_MSG))) : props.isConfirm && !isExportingPDF ? (React.createElement(Alert, { isInline: true, className: "pf-v5-u-mb-md", variant: AlertVariant.warning, title: t('Review phone number'), component: "p", actionLinks: [
70
+ React.createElement(Trans, null, SEV1_MSG))) : props.isConfirm && !isExportingPDF ? (React.createElement(Alert, { isInline: true, className: "pf-v5-u-mb-md", variant: AlertVariant.warning, title: t('Review phone number'), component: "p", actionLinks: [
71
71
  React.createElement(Button, { variant: ButtonVariant.link, isInline: true, onClick: () => onCaseDetailsChange({ suppliedPhoneNumberVerified: 'True' }), "data-tracking-id": "case-contact-phone-number-confirm", isLoading: isCaseUpdating, isDisabled: isCaseUpdating },
72
72
  React.createElement(Trans, null, "Confirm phone number")),
73
73
  ] },
74
- React.createElement(Trans, null, SEV_MSG))) : (React.createElement(React.Fragment, null))));
74
+ React.createElement(Trans, null, SEV1_MSG))) : (React.createElement(React.Fragment, null))));
75
75
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ContactPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/ContactPhoneNumber.tsx"],"names":[],"mappings":"AAOA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAiB/D,wBAAgB,kBAAkB,sBAgLjC"}
1
+ {"version":3,"file":"ContactPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/ContactPhoneNumber.tsx"],"names":[],"mappings":"AAOA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAiB/D,wBAAgB,kBAAkB,sBA8KjC"}
@@ -73,7 +73,6 @@ export function ContactPhoneNumber() {
73
73
  setCaseDetails(caseDispatch, {
74
74
  phoneAreaCodePrefixLineNumber: loggedInUser.data.supportPhoneAreaCodePrefixLineNumber,
75
75
  phoneCountryCode: loggedInUser.data.supportPhoneCountryCode,
76
- suppliedPhoneNumberVerified: 'True',
77
76
  });
78
77
  }
79
78
  else {
@@ -82,13 +81,12 @@ export function ContactPhoneNumber() {
82
81
  setCaseDetails(caseDispatch, {
83
82
  phoneAreaCodePrefixLineNumber: phoneLine,
84
83
  phoneCountryCode: countryCode,
85
- suppliedPhoneNumberVerified: phoneLine && countryCode ? 'True' : 'False',
86
84
  });
87
85
  }
88
86
  }
89
87
  setLocalFullPhone(phoneCountryCode + ' ' + phoneAreaCodePrefixLineNumber);
90
88
  // eslint-disable-next-line react-hooks/exhaustive-deps
91
- }, []);
89
+ }, [phoneAreaCodePrefixLineNumber, phoneCountryCode, loggedInUser.data.phone]);
92
90
  useEffect(() => {
93
91
  if (isEqual(localFullPhone.trim(), '+')) {
94
92
  setLocalFullPhone('');
@@ -1 +1 @@
1
- {"version":3,"file":"ContactPhoneNumberAlert.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/ContactPhoneNumberAlert.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAQrD,wBAAgB,uBAAuB,sBA0EtC"}
1
+ {"version":3,"file":"ContactPhoneNumberAlert.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/ContactPhoneNumberAlert.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAQrD,wBAAgB,uBAAuB,sBAwFtC"}
@@ -1,25 +1,36 @@
1
1
  import { Alert, AlertVariant, Button, ButtonVariant } from '@patternfly/react-core';
2
+ import { GlobalMetadataStateContext } from '@rh-support/react-context';
2
3
  import isEmpty from 'lodash/isEmpty';
3
4
  import isEqual from 'lodash/isEqual';
4
5
  import isUndefined from 'lodash/isUndefined';
5
6
  import React, { useContext, useEffect } from 'react';
6
7
  import { Trans, useTranslation } from 'react-i18next';
7
8
  import { useCaseDispatch, useCaseSelector } from '../../context/CaseContext';
8
- import { setCaseDetails } from '../../reducers/CaseReducer';
9
+ import { setCaseDetails, setCaseState } from '../../reducers/CaseReducer';
9
10
  import { PDFContext } from '../CaseEditView/PDFContainer';
10
11
  import { trimAndReplacePlus } from '../shared/utils';
11
12
  export function ContactPhoneNumberAlert() {
12
13
  const { t } = useTranslation();
13
14
  const caseDispatch = useCaseDispatch();
14
- const { caseDetails, phoneCountryCode = '', phoneAreaCodePrefixLineNumber = '', isExistingPhoneNumber, } = useCaseSelector((state) => ({
15
+ const { caseDetails, phoneCountryCode = '', phoneAreaCodePrefixLineNumber = '', isExistingPhoneNumber, contactSSOName, } = useCaseSelector((state) => ({
15
16
  caseDetails: state.caseDetails,
16
17
  phoneCountryCode: state.caseDetails.phoneCountryCode,
17
18
  phoneAreaCodePrefixLineNumber: state.caseDetails.phoneAreaCodePrefixLineNumber,
18
19
  isExistingPhoneNumber: state.isExistingPhoneNumber,
20
+ contactSSOName: state.caseDetails.contactSSOName,
19
21
  }), isEqual);
22
+ const { globalMetadataState: { loggedInUser }, } = useContext(GlobalMetadataStateContext);
20
23
  const { isExportingPDF } = useContext(PDFContext);
21
24
  const onCaseDetailsChange = (caseDetails) => {
22
25
  setCaseDetails(caseDispatch, caseDetails);
26
+ if (contactSSOName === loggedInUser.data.ssoUsername) {
27
+ // edge case: when loggedInUser === contactSSOName while opening a case confirms or deffers the phone
28
+ // we need to save the verification state globallly so that we don't show the phone review banner again
29
+ // to the user where he changes it to another owner and then again assigns himself as the case owner
30
+ setCaseState(caseDispatch, {
31
+ hasLoggedInUserConfirmedPhoneNumber: caseDetails.suppliedPhoneNumberVerified,
32
+ });
33
+ }
23
34
  };
24
35
  const isPhoneNumberEmpty = isEmpty(trimAndReplacePlus(phoneCountryCode)) &&
25
36
  isEmpty(phoneAreaCodePrefixLineNumber === null || phoneAreaCodePrefixLineNumber === void 0 ? void 0 : phoneAreaCodePrefixLineNumber.replace(phoneCountryCode, ''));
@@ -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) {
@@ -211,6 +211,7 @@ export interface ICaseState {
211
211
  isPostingRemoteRequestCommentCompleted?: boolean;
212
212
  isPostingRemoteRequestCommentCompletedErrorMessage?: string | undefined;
213
213
  isExistingPhoneNumber?: boolean;
214
+ hasLoggedInUserConfirmedPhoneNumber?: 'True' | 'False' | 'Deferred' | undefined;
214
215
  }
215
216
  export interface ICreateCasePayloadType extends ICaseState {
216
217
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CaseConstNTypes.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseConstNTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACjH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEnF,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,eAAO,MAAM,oBAAoB,MAAM,CAAC;AACxC,eAAO,MAAM,mCAAmC,MAAM,CAAC;AACvD,eAAO,MAAM,+BAA+B,MAAM,CAAC;AACnD,eAAO,MAAM,wBAAwB,QAAQ,CAAC;AAC9C,eAAO,MAAM,iCAAiC,QAAQ,CAAC;AACvD,eAAO,MAAM,qBAAqB,MAAM,CAAC;AACzC,eAAO,MAAM,uBAAuB,QAAQ,CAAC;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CAAC,CAAC;AAEhE,eAAO,MAAM,qCAAqC,+CAA+C,CAAC;AAClG,eAAO,MAAM,yCAAyC,+CAA+C,CAAC"}
@@ -205,6 +205,7 @@ export const initialCaseState = {
205
205
  isPostingRemoteRequestCommentCompleted: false,
206
206
  isPostingRemoteRequestCommentCompletedErrorMessage: '',
207
207
  isExistingPhoneNumber: false,
208
+ hasLoggedInUserConfirmedPhoneNumber: 'False',
208
209
  };
209
210
  export const ORG_ADMIN_SEND_NOTIFCATION_KBASE_LINK = 'https://access.redhat.com/articles/5967811';
210
211
  export const NON_ORG_ADMIN_SEND_NOTIFCATION_KBASE_LINK = 'https://access.redhat.com/articles/5967831';
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.116",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -25,7 +25,7 @@
25
25
  "lib/**/*"
26
26
  ],
27
27
  "peerDependencies": {
28
- "@cee-eng/hydrajs": "4.17.15",
28
+ "@cee-eng/hydrajs": "4.17.17",
29
29
  "@cee-eng/ui-toolkit": "1.1.8",
30
30
  "@patternfly/patternfly": "5.1.0",
31
31
  "@patternfly/react-core": "5.1.1",
@@ -51,7 +51,7 @@
51
51
  "react-virtualized": "^9.22.5"
52
52
  },
53
53
  "dependencies": {
54
- "@cee-eng/hydrajs": "4.17.15",
54
+ "@cee-eng/hydrajs": "4.17.17",
55
55
  "@cee-eng/ui-toolkit": "1.1.8",
56
56
  "@patternfly/patternfly": "5.1.0",
57
57
  "@patternfly/react-core": "5.1.1",
@@ -60,11 +60,11 @@
60
60
  "@progress/kendo-licensing": "1.3.5",
61
61
  "@progress/kendo-react-pdf": "^5.16.0",
62
62
  "@redux-devtools/extension": "^3.3.0",
63
- "@rh-support/components": "2.1.58",
64
- "@rh-support/react-context": "2.1.64",
63
+ "@rh-support/components": "2.1.59",
64
+ "@rh-support/react-context": "2.1.65",
65
65
  "@rh-support/types": "2.0.3",
66
- "@rh-support/user-permissions": "2.1.42",
67
- "@rh-support/utils": "2.1.32",
66
+ "@rh-support/user-permissions": "2.1.43",
67
+ "@rh-support/utils": "2.1.33",
68
68
  "@types/react-redux": "^7.1.33",
69
69
  "@types/redux": "^3.6.0",
70
70
  "dompurify": "^2.2.6",
@@ -131,5 +131,5 @@
131
131
  "defaults and supports es6-module",
132
132
  "maintained node versions"
133
133
  ],
134
- "gitHead": "0fa0968e831c199572669184c466e9fecd781d12"
134
+ "gitHead": "aa56a22b784978f97c2a073e1cc5868648790890"
135
135
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"CasePhoneNumberTopConfirmAlert.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberTopConfirmAlert.tsx"],"names":[],"mappings":"AAOA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAUpD,UAAU,MAAM;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;CACnD;AAMD,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,qBAuG3D"}
@@ -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
- };