@rh-support/react-context 2.1.59 → 2.1.61
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/SharedModals/CSSUserModal.d.ts +8 -0
- package/lib/esm/components/SharedModals/CSSUserModal.d.ts.map +1 -0
- package/lib/esm/components/SharedModals/CSSUserModal.js +34 -0
- package/lib/esm/components/SharedModals/index.d.ts +1 -0
- package/lib/esm/components/SharedModals/index.d.ts.map +1 -1
- package/lib/esm/components/SharedModals/index.js +1 -0
- package/lib/esm/reducers/GlobalMetadataReducer.d.ts +4 -1
- package/lib/esm/reducers/GlobalMetadataReducer.d.ts.map +1 -1
- package/lib/esm/reducers/GlobalMetadataReducer.js +12 -0
- package/package.json +3 -3
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
onConfirmTraditionalSupportAgreement: () => void;
|
|
4
|
+
display: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function CSSUserModal({ onConfirmTraditionalSupportAgreement, display }: IProps): React.JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=CSSUserModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CSSUserModal.d.ts","sourceRoot":"","sources":["../../../../src/components/SharedModals/CSSUserModal.tsx"],"names":[],"mappings":"AACA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAIpD,UAAU,MAAM;IACZ,oCAAoC,EAAE,MAAM,IAAI,CAAC;IACjD,OAAO,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,YAAY,CAAC,EAAE,oCAAoC,EAAE,OAAO,EAAE,EAAE,MAAM,qBA2FrF"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Button, Modal, ModalVariant } from '@patternfly/react-core';
|
|
2
|
+
import React, { useContext, useState } from 'react';
|
|
3
|
+
import { GlobalMetadataStateContext } from '../../context/GlobalMetadataContext';
|
|
4
|
+
export function CSSUserModal({ onConfirmTraditionalSupportAgreement, display }) {
|
|
5
|
+
var _a;
|
|
6
|
+
const [showSupportTypeModal, setShowSupportTypeModal] = useState(true);
|
|
7
|
+
const [showTraditionalSupportAgreement, setShowTraditionalSupportAgreement] = useState(false);
|
|
8
|
+
const { globalMetadataState: { loggedInUsersAccount }, } = useContext(GlobalMetadataStateContext);
|
|
9
|
+
const isConfirmedStateSideSupport = (_a = loggedInUsersAccount === null || loggedInUsersAccount === void 0 ? void 0 : loggedInUsersAccount.data) === null || _a === void 0 ? void 0 : _a.hasConfirmedStatesideSupport;
|
|
10
|
+
const handleCSSclick = () => {
|
|
11
|
+
window.open('https://css-redhat.zendesk.com', '_self');
|
|
12
|
+
};
|
|
13
|
+
const handleTraditionalSupportClick = () => {
|
|
14
|
+
setShowTraditionalSupportAgreement(true);
|
|
15
|
+
};
|
|
16
|
+
const handleTraditionalSupportAgreement = () => {
|
|
17
|
+
setShowTraditionalSupportAgreement(false);
|
|
18
|
+
setShowSupportTypeModal(false);
|
|
19
|
+
onConfirmTraditionalSupportAgreement && onConfirmTraditionalSupportAgreement();
|
|
20
|
+
};
|
|
21
|
+
if (!display || !isConfirmedStateSideSupport)
|
|
22
|
+
return null;
|
|
23
|
+
return (React.createElement(React.Fragment, null,
|
|
24
|
+
React.createElement(Modal, { variant: ModalVariant.medium, title: 'Choose the type of support you want', isOpen: isConfirmedStateSideSupport && showSupportTypeModal, onClose: () => setShowSupportTypeModal(false), actions: [
|
|
25
|
+
React.createElement(Button, { key: "confirmed-stateside-support-btn", "data-tracking-id": "confirmed-stateside-support-btn", "aria-label": "Confirmed stateside support", onClick: handleCSSclick }, "Confirmed Stateside Support"),
|
|
26
|
+
React.createElement(Button, { variant: "secondary", key: "traditional-support-btn", "data-tracking-id": "traditional-support-btn", "aria-label": "Traditional support", onClick: handleTraditionalSupportClick }, "Traditional Support"),
|
|
27
|
+
] }, "You have a Confirmed Stateside Support account"),
|
|
28
|
+
React.createElement(Modal, { variant: ModalVariant.medium, title: 'Traditional Support', isOpen: isConfirmedStateSideSupport && showTraditionalSupportAgreement, onClose: () => setShowTraditionalSupportAgreement(false), actions: [
|
|
29
|
+
React.createElement(Button, { variant: "secondary", key: "traditional-support-back-button", "data-tracking-id": "traditional-support-back-button", "aria-label": "Traditional support back button", onClick: () => setShowTraditionalSupportAgreement(false) }, "Back"),
|
|
30
|
+
React.createElement(Button, { key: "agree-traditional-support-button", "data-tracking-id": "agree-traditional-support-button", "aria-label": "Agree traditional support button", onClick: handleTraditionalSupportAgreement }, "I agree"),
|
|
31
|
+
] },
|
|
32
|
+
React.createElement("p", null, "By continuing you agree not to transmit Controlled Unclassified Information(CUI) or export-controlled information to the Red Hat Customer Portal."),
|
|
33
|
+
React.createElement("p", { className: "pf-v5-u-pt-md" }, "The Customer Protal is not certified to store data regulated by the US government, including data covered by ITAR or EAR (Export Administration Regulations)."))));
|
|
34
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SharedModals/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SharedModals/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC"}
|
|
@@ -77,7 +77,8 @@ export declare enum GlobalMetadataReducerConstants {
|
|
|
77
77
|
setAccountCustomEmails = "setAccountCustomEmails",
|
|
78
78
|
setReferrerUrl = "setReferrerUrl",
|
|
79
79
|
getNoclusteridreasons = "getNoclusteridreasons",
|
|
80
|
-
setIsSharingHostnameswithRHt = "setIsSharingHostnameswithRHt"
|
|
80
|
+
setIsSharingHostnameswithRHt = "setIsSharingHostnameswithRHt",
|
|
81
|
+
setCaseListTraditionalSupportAgreed = "setCaseListTraditionalSupportAgreed"
|
|
81
82
|
}
|
|
82
83
|
export type ICaseType = string;
|
|
83
84
|
export type ICaseSeverity = string;
|
|
@@ -126,6 +127,7 @@ export interface IGlobalMetadataState {
|
|
|
126
127
|
accountCustomEmails: IApiResponseDetails<IAccountNotificationAddresses[]>;
|
|
127
128
|
referrerUrl: string;
|
|
128
129
|
caseNoClusterIdReasons: IApiResponseDetails<string[]>;
|
|
130
|
+
caseListTraditionalSupportAgreed: boolean;
|
|
129
131
|
}
|
|
130
132
|
export interface IGlobalMetadataPayloadType extends IGlobalMetadataState {
|
|
131
133
|
interaction: IIntraction;
|
|
@@ -169,6 +171,7 @@ export declare const updateFeatureFlag: (dispatch: GlobalMetadataReducerDispatch
|
|
|
169
171
|
export declare const fetchAccountCustomEmails: (dispatch: GlobalMetadataReducerDispatchType, accountNumber: string) => Promise<void>;
|
|
170
172
|
export declare const setAccountCustomEmails: (dispatch: GlobalMetadataReducerDispatchType, accountCustomEmails: IAccountNotificationAddresses[]) => void;
|
|
171
173
|
export declare const fetchNoClusterIdReasonsMetadata: (dispatch: GlobalMetadataReducerDispatchType) => Promise<void>;
|
|
174
|
+
export declare const updateCaseListTraditionalSupportAgreed: (dispatch: GlobalMetadataReducerDispatchType, value: boolean) => void;
|
|
172
175
|
export declare const updateShareHostnameWithRHTState: (dispatch: GlobalMetadataReducerDispatchType, loggedInUsersAccount: Partial<IAccount>, shareHostnameWithRHT: boolean) => void;
|
|
173
176
|
export {};
|
|
174
177
|
//# sourceMappingURL=GlobalMetadataReducer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GlobalMetadataReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/GlobalMetadataReducer.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yCAAyC,CAAC;AACxF,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AACnF,OAAO,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,sBA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pC,QAAQ,eAAe,CAAC,kBAkBlC,CAAC;AAEF,eAAO,MAAM,4BAA4B,aAAoB,iCAAiC,YAAY,MAAM,kBAmF/G,CAAC;AAEF,eAAO,MAAM,uBAAuB,aACtB,iCAAiC,sBACvB,MAAM,EAAE,kBA6B/B,CAAC;AAEF,eAAO,MAAM,kBAAkB,aAAc,iCAAiC,mBAAmB,gBAAgB,SAYhH,CAAC;AAEF,eAAO,MAAM,YAAY,aAAc,iCAAiC,aAAa,iBAAiB,WAAW,CAAC,SAKjH,CAAC;AAEF,eAAO,MAAM,wBAAwB,aAAc,iCAAiC,SAEnF,CAAC;AAEF,eAAO,MAAM,oBAAoB,aACnB,iCAAiC,SACpC,QAAQ,eAAe,CAAC,kBAsBlC,CAAC;AAEF,eAAO,MAAM,qBAAqB,aACpB,iCAAiC,eAC9B,MAAM,eACN,WAAW,EAAE,cACf,KAAK,GAAG,QAAQ,2CAEJ,OAAO,kBAiCjC,CAAC;AAEF,eAAO,MAAM,iBAAiB,aAChB,iCAAiC,gBAC7B,QAAQ,aAAa,CAAC,SAMvC,CAAC;AAEF,eAAO,MAAM,wBAAwB,aAAoB,iCAAiC,iBAAiB,MAAM,kBAiBhH,CAAC;AAEF,eAAO,MAAM,sBAAsB,aACrB,iCAAiC,uBACtB,6BAA6B,EAAE,SAMvD,CAAC;AAEF,eAAO,MAAM,+BAA+B,aAAoB,iCAAiC,kBAkBhG,CAAC;AAEF,eAAO,MAAM,sCAAsC,aAAc,iCAAiC,SAAS,OAAO,SAKjH,CAAC;AAEF,eAAO,MAAM,+BAA+B,aAC9B,iCAAiC,wBACrB,QAAQ,QAAQ,CAAC,wBACjB,OAAO,SAMhC,CAAC"}
|
|
@@ -79,6 +79,7 @@ export var GlobalMetadataReducerConstants;
|
|
|
79
79
|
GlobalMetadataReducerConstants["setReferrerUrl"] = "setReferrerUrl";
|
|
80
80
|
GlobalMetadataReducerConstants["getNoclusteridreasons"] = "getNoclusteridreasons";
|
|
81
81
|
GlobalMetadataReducerConstants["setIsSharingHostnameswithRHt"] = "setIsSharingHostnameswithRHt";
|
|
82
|
+
GlobalMetadataReducerConstants["setCaseListTraditionalSupportAgreed"] = "setCaseListTraditionalSupportAgreed";
|
|
82
83
|
})(GlobalMetadataReducerConstants || (GlobalMetadataReducerConstants = {}));
|
|
83
84
|
const initialProductResponse = {
|
|
84
85
|
topProducts: [],
|
|
@@ -117,9 +118,11 @@ export const initialGlobalMetadataState = {
|
|
|
117
118
|
},
|
|
118
119
|
referrerUrl: null,
|
|
119
120
|
caseNoClusterIdReasons: getApiResourceObject([]),
|
|
121
|
+
caseListTraditionalSupportAgreed: false,
|
|
120
122
|
};
|
|
121
123
|
// Resucers
|
|
122
124
|
export const globalMetadataReducer = (pState, action) => {
|
|
125
|
+
var _a;
|
|
123
126
|
switch (action.type) {
|
|
124
127
|
case GlobalMetadataReducerConstants.setCaseTypes: {
|
|
125
128
|
return Object.assign(Object.assign({}, pState), { allCaseTypes: action.payload.allCaseTypes });
|
|
@@ -212,6 +215,9 @@ export const globalMetadataReducer = (pState, action) => {
|
|
|
212
215
|
case GlobalMetadataReducerConstants.getNoclusteridreasons: {
|
|
213
216
|
return Object.assign(Object.assign({}, pState), { caseNoClusterIdReasons: action.payload.caseNoClusterIdReasons });
|
|
214
217
|
}
|
|
218
|
+
case GlobalMetadataReducerConstants.setCaseListTraditionalSupportAgreed: {
|
|
219
|
+
return Object.assign(Object.assign({}, pState), { caseListTraditionalSupportAgreed: (_a = action.payload) === null || _a === void 0 ? void 0 : _a.caseListTraditionalSupportAgreed });
|
|
220
|
+
}
|
|
215
221
|
default: {
|
|
216
222
|
return pState;
|
|
217
223
|
}
|
|
@@ -849,6 +855,12 @@ export const fetchNoClusterIdReasonsMetadata = (dispatch) => __awaiter(void 0, v
|
|
|
849
855
|
});
|
|
850
856
|
}
|
|
851
857
|
});
|
|
858
|
+
export const updateCaseListTraditionalSupportAgreed = (dispatch, value) => {
|
|
859
|
+
dispatch({
|
|
860
|
+
type: GlobalMetadataReducerConstants.setCaseListTraditionalSupportAgreed,
|
|
861
|
+
payload: { caseListTraditionalSupportAgreed: value },
|
|
862
|
+
});
|
|
863
|
+
};
|
|
852
864
|
export const updateShareHostnameWithRHTState = (dispatch, loggedInUsersAccount, shareHostnameWithRHT) => {
|
|
853
865
|
dispatch({
|
|
854
866
|
type: GlobalMetadataReducerConstants.setLoggedInUsersAccount,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/react-context",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.61",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@cee-eng/hydrajs": "4.17.7",
|
|
41
41
|
"@patternfly/react-core": "5.1.1",
|
|
42
42
|
"@patternfly/react-icons": "5.1.1",
|
|
43
|
-
"@rh-support/components": "2.1.
|
|
43
|
+
"@rh-support/components": "2.1.55",
|
|
44
44
|
"@rh-support/types": "2.0.3",
|
|
45
45
|
"@rh-support/user-permissions": "2.1.39",
|
|
46
46
|
"@rh-support/utils": "2.1.29",
|
|
@@ -93,5 +93,5 @@
|
|
|
93
93
|
"defaults and supports es6-module",
|
|
94
94
|
"maintained node versions"
|
|
95
95
|
],
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "78f502e76b6377132fe700672387f0da8f6d3dc3"
|
|
97
97
|
}
|