@rh-support/react-context 2.1.35 → 2.1.38
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/README.md +2 -0
- package/lib/esm/components/AccountSelector/AccountSelectorInternal.js +1 -1
- package/lib/esm/components/SharedModals/index.d.ts +0 -1
- package/lib/esm/components/SharedModals/index.d.ts.map +1 -1
- package/lib/esm/components/SharedModals/index.js +0 -1
- package/lib/esm/context/GlobalTranslationProvider.d.ts.map +1 -1
- package/lib/esm/context/GlobalTranslationProvider.js +0 -1
- package/lib/esm/reducers/GlobalMetadataReducer.d.ts +1 -7
- package/lib/esm/reducers/GlobalMetadataReducer.d.ts.map +1 -1
- package/lib/esm/reducers/GlobalMetadataReducer.js +0 -23
- package/package.json +12 -13
- package/lib/esm/components/SharedModals/CSSUserModal.d.ts +0 -7
- package/lib/esm/components/SharedModals/CSSUserModal.d.ts.map +0 -1
- package/lib/esm/components/SharedModals/CSSUserModal.js +0 -36
package/README.md
CHANGED
|
@@ -12,9 +12,9 @@ import { Button, Flex, FlexItem, MenuToggle, Select, SelectList, SelectOption, T
|
|
|
12
12
|
import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
|
|
13
13
|
import TimesCircleIcon from '@patternfly/react-icons/dist/js/icons/times-circle-icon';
|
|
14
14
|
import { LoadingIndicator, useFetch } from '@rh-support/components';
|
|
15
|
-
import { isUndefined } from 'lodash';
|
|
16
15
|
import isEmpty from 'lodash/isEmpty';
|
|
17
16
|
import isNull from 'lodash/isNull';
|
|
17
|
+
import isUndefined from 'lodash/isUndefined';
|
|
18
18
|
import uniqBy from 'lodash/uniqBy';
|
|
19
19
|
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
|
20
20
|
import { Trans, useTranslation } from 'react-i18next';
|
|
@@ -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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GlobalTranslationProvider.d.ts","sourceRoot":"","sources":["../../../src/context/GlobalTranslationProvider.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAc,MAAM,mBAAmB,CAAC;AAMlE,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,UAAU,MAAM;IACZ,QAAQ,EAAE,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;IACtC,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;CAC9C;AAED,UAAU,mBAAmB;IACzB,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACtD,mBAAmB,EAAE,OAAO,CAAC;CAChC;AAgBD,eAAO,MAAM,uBAAuB,4BAA4B,CAAC;AAEjE,eAAO,MAAM,UAAU,2BAA4E,CAAC;AAEpG,eAAO,MAAM,wBAAwB,oCAAiD,CAAC;AAEvF,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"GlobalTranslationProvider.d.ts","sourceRoot":"","sources":["../../../src/context/GlobalTranslationProvider.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAc,MAAM,mBAAmB,CAAC;AAMlE,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,UAAU,MAAM;IACZ,QAAQ,EAAE,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;IACtC,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;CAC9C;AAED,UAAU,mBAAmB;IACzB,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACtD,mBAAmB,EAAE,OAAO,CAAC;CAChC;AAgBD,eAAO,MAAM,uBAAuB,4BAA4B,CAAC;AAEjE,eAAO,MAAM,UAAU,2BAA4E,CAAC;AAEpG,eAAO,MAAM,wBAAwB,oCAAiD,CAAC;AAEvF,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,eAwEtD"}
|
|
@@ -77,9 +77,7 @@ export declare enum GlobalMetadataReducerConstants {
|
|
|
77
77
|
setAccountCustomEmails = "setAccountCustomEmails",
|
|
78
78
|
setReferrerUrl = "setReferrerUrl",
|
|
79
79
|
getNoclusteridreasons = "getNoclusteridreasons",
|
|
80
|
-
setIsSharingHostnameswithRHt = "setIsSharingHostnameswithRHt"
|
|
81
|
-
setCaseListTraditionalSupportAgreed = "setCaseListTraditionalSupportAgreed",
|
|
82
|
-
setTroubleshootTraditionalSupportAgreed = "setTroubleshootTraditionalSupportAgreed"
|
|
80
|
+
setIsSharingHostnameswithRHt = "setIsSharingHostnameswithRHt"
|
|
83
81
|
}
|
|
84
82
|
export declare type ICaseType = string;
|
|
85
83
|
export declare type ICaseSeverity = string;
|
|
@@ -128,8 +126,6 @@ export interface IGlobalMetadataState {
|
|
|
128
126
|
accountCustomEmails: IApiResponseDetails<IAccountNotificationAddresses[]>;
|
|
129
127
|
referrerUrl: string;
|
|
130
128
|
caseNoClusterIdReasons: IApiResponseDetails<string[]>;
|
|
131
|
-
caseListTraditionalSupportAgreed: boolean;
|
|
132
|
-
troubleshootTraditionalSupportAgreed: boolean;
|
|
133
129
|
}
|
|
134
130
|
export interface IGlobalMetadataPayloadType extends IGlobalMetadataState {
|
|
135
131
|
interaction: IIntraction;
|
|
@@ -173,7 +169,5 @@ export declare const updateFeatureFlag: (dispatch: GlobalMetadataReducerDispatch
|
|
|
173
169
|
export declare const fetchAccountCustomEmails: (dispatch: GlobalMetadataReducerDispatchType, accountNumber: string) => Promise<void>;
|
|
174
170
|
export declare const setAccountCustomEmails: (dispatch: GlobalMetadataReducerDispatchType, accountCustomEmails: IAccountNotificationAddresses[]) => void;
|
|
175
171
|
export declare const fetchNoClusterIdReasonsMetadata: (dispatch: GlobalMetadataReducerDispatchType) => Promise<void>;
|
|
176
|
-
export declare const updateCaseListTraditionalSupportAgreed: (dispatch: GlobalMetadataReducerDispatchType, value: boolean) => void;
|
|
177
|
-
export declare const updateTroubleshootTraditionalSupportAgreed: (dispatch: GlobalMetadataReducerDispatchType, value: boolean) => void;
|
|
178
172
|
export {};
|
|
179
173
|
//# 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,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAC1F,OAAO,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AAErE,OAAO,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAA0B,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AACtG,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AACzF,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAIH,4BAA4B,EAE/B,MAAM,mBAAmB,CAAC;AAQ3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAA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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"}
|
|
@@ -79,8 +79,6 @@ export var GlobalMetadataReducerConstants;
|
|
|
79
79
|
GlobalMetadataReducerConstants["setReferrerUrl"] = "setReferrerUrl";
|
|
80
80
|
GlobalMetadataReducerConstants["getNoclusteridreasons"] = "getNoclusteridreasons";
|
|
81
81
|
GlobalMetadataReducerConstants["setIsSharingHostnameswithRHt"] = "setIsSharingHostnameswithRHt";
|
|
82
|
-
GlobalMetadataReducerConstants["setCaseListTraditionalSupportAgreed"] = "setCaseListTraditionalSupportAgreed";
|
|
83
|
-
GlobalMetadataReducerConstants["setTroubleshootTraditionalSupportAgreed"] = "setTroubleshootTraditionalSupportAgreed";
|
|
84
82
|
})(GlobalMetadataReducerConstants || (GlobalMetadataReducerConstants = {}));
|
|
85
83
|
const initialProductResponse = {
|
|
86
84
|
topProducts: [],
|
|
@@ -119,12 +117,9 @@ export const initialGlobalMetadataState = {
|
|
|
119
117
|
},
|
|
120
118
|
referrerUrl: null,
|
|
121
119
|
caseNoClusterIdReasons: getApiResourceObject([]),
|
|
122
|
-
caseListTraditionalSupportAgreed: false,
|
|
123
|
-
troubleshootTraditionalSupportAgreed: false,
|
|
124
120
|
};
|
|
125
121
|
// Resucers
|
|
126
122
|
export const globalMetadataReducer = (pState, action) => {
|
|
127
|
-
var _a, _b;
|
|
128
123
|
switch (action.type) {
|
|
129
124
|
case GlobalMetadataReducerConstants.setCaseTypes: {
|
|
130
125
|
return Object.assign(Object.assign({}, pState), { allCaseTypes: action.payload.allCaseTypes });
|
|
@@ -217,12 +212,6 @@ export const globalMetadataReducer = (pState, action) => {
|
|
|
217
212
|
case GlobalMetadataReducerConstants.getNoclusteridreasons: {
|
|
218
213
|
return Object.assign(Object.assign({}, pState), { caseNoClusterIdReasons: action.payload.caseNoClusterIdReasons });
|
|
219
214
|
}
|
|
220
|
-
case GlobalMetadataReducerConstants.setCaseListTraditionalSupportAgreed: {
|
|
221
|
-
return Object.assign(Object.assign({}, pState), { caseListTraditionalSupportAgreed: (_a = action.payload) === null || _a === void 0 ? void 0 : _a.caseListTraditionalSupportAgreed });
|
|
222
|
-
}
|
|
223
|
-
case GlobalMetadataReducerConstants.setTroubleshootTraditionalSupportAgreed: {
|
|
224
|
-
return Object.assign(Object.assign({}, pState), { troubleshootTraditionalSupportAgreed: (_b = action.payload) === null || _b === void 0 ? void 0 : _b.troubleshootTraditionalSupportAgreed });
|
|
225
|
-
}
|
|
226
215
|
default: {
|
|
227
216
|
return pState;
|
|
228
217
|
}
|
|
@@ -860,15 +849,3 @@ export const fetchNoClusterIdReasonsMetadata = (dispatch) => __awaiter(void 0, v
|
|
|
860
849
|
});
|
|
861
850
|
}
|
|
862
851
|
});
|
|
863
|
-
export const updateCaseListTraditionalSupportAgreed = (dispatch, value) => {
|
|
864
|
-
dispatch({
|
|
865
|
-
type: GlobalMetadataReducerConstants.setCaseListTraditionalSupportAgreed,
|
|
866
|
-
payload: { caseListTraditionalSupportAgreed: value },
|
|
867
|
-
});
|
|
868
|
-
};
|
|
869
|
-
export const updateTroubleshootTraditionalSupportAgreed = (dispatch, value) => {
|
|
870
|
-
dispatch({
|
|
871
|
-
type: GlobalMetadataReducerConstants.setTroubleshootTraditionalSupportAgreed,
|
|
872
|
-
payload: { troubleshootTraditionalSupportAgreed: value },
|
|
873
|
-
});
|
|
874
|
-
};
|
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.38",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -26,39 +26,38 @@
|
|
|
26
26
|
"lib/**/*"
|
|
27
27
|
],
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@cee-eng/hydrajs": "4.
|
|
29
|
+
"@cee-eng/hydrajs": "4.17.1",
|
|
30
30
|
"@patternfly/react-core": "5.1.1",
|
|
31
31
|
"@patternfly/react-icons": "5.1.1",
|
|
32
|
-
"i18next": "^
|
|
32
|
+
"i18next": "^22.5.1",
|
|
33
33
|
"lodash": "^4.17.21",
|
|
34
34
|
"react": "17.0.2",
|
|
35
35
|
"react-dom": "17.0.2",
|
|
36
|
-
"react-i18next": "^
|
|
36
|
+
"react-i18next": "^12.3.1",
|
|
37
37
|
"react-test-renderer": "17.0.1"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@cee-eng/hydrajs": "4.
|
|
40
|
+
"@cee-eng/hydrajs": "4.17.1",
|
|
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.35",
|
|
44
44
|
"@rh-support/types": "2.0.2",
|
|
45
|
-
"@rh-support/user-permissions": "2.1.
|
|
46
|
-
"@rh-support/utils": "2.1.
|
|
47
|
-
"i18next": "^
|
|
45
|
+
"@rh-support/user-permissions": "2.1.25",
|
|
46
|
+
"@rh-support/utils": "2.1.17",
|
|
47
|
+
"i18next": "^22.5.1",
|
|
48
48
|
"localforage": "^1.10.0",
|
|
49
49
|
"lodash": "^4.17.21",
|
|
50
50
|
"react": "17.0.2",
|
|
51
51
|
"react-dom": "17.0.2",
|
|
52
|
-
"react-i18next": "^
|
|
52
|
+
"react-i18next": "^12.3.1",
|
|
53
53
|
"react-router-dom": "^5.1.2",
|
|
54
|
-
"react-test-renderer": "
|
|
54
|
+
"react-test-renderer": "17.0.2"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@testing-library/jest-dom": "^5.16.5",
|
|
58
58
|
"@testing-library/react": "^12.0.0",
|
|
59
59
|
"@testing-library/react-hooks": "^5.1.2",
|
|
60
60
|
"@testing-library/user-event": "^13.1.9",
|
|
61
|
-
"@types/i18next": "^12.1.0",
|
|
62
61
|
"@types/lodash": "^4.14.136",
|
|
63
62
|
"@types/react": "^17.0.14",
|
|
64
63
|
"@types/react-router-dom": "^5.1.2",
|
|
@@ -84,5 +83,5 @@
|
|
|
84
83
|
"defaults and supports es6-module",
|
|
85
84
|
"maintained node versions"
|
|
86
85
|
],
|
|
87
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "6ccb5b388d58ad076886f1da22615f3225d667f6"
|
|
88
87
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CSSUserModal.d.ts","sourceRoot":"","sources":["../../../../src/components/SharedModals/CSSUserModal.tsx"],"names":[],"mappings":"AAKA,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,eAuErF"}
|
|
@@ -1,36 +0,0 @@
|
|
|
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://redhatgov.servicenowservices.com/css?id=csm_login', '_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", onClick: handleCSSclick }, "Confirmed Stateside Support"),
|
|
26
|
-
React.createElement(Button, { variant: "secondary", key: "traditional-support-btn", 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: "back-btn", onClick: () => setShowTraditionalSupportAgreement(false) }, "Back"),
|
|
30
|
-
React.createElement(Button, { key: "agree-traditional-support-btn", onClick: handleTraditionalSupportAgreement }, "I agree"),
|
|
31
|
-
] },
|
|
32
|
-
"By continuing you agree not to transmit Controlled Unclassified Information(CUI) or export-controlled information to the Red Hat Customer Portal.",
|
|
33
|
-
React.createElement("br", null),
|
|
34
|
-
React.createElement("br", null),
|
|
35
|
-
"The Customer Protal is not certified to store data regulated by the US government, including data covered by ITAR or EAR (Export Administration Regulations).")));
|
|
36
|
-
}
|