@rh-support/troubleshoot 2.5.7 → 2.5.9
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/AccountInfo/OwnerSelector.d.ts.map +1 -1
- package/lib/esm/components/AccountInfo/OwnerSelector.js +19 -6
- package/lib/esm/components/CaseManagement/SendNotifications/CaseContactSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/SendNotifications/CaseContactSelector.js +13 -6
- package/lib/esm/reducers/CaseReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseReducer.js +5 -2
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OwnerSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/AccountInfo/OwnerSelector.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAiBxE,UAAU,MAAM;CAAG;AAMnB,iBAAS,aAAa,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"OwnerSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/AccountInfo/OwnerSelector.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAiBxE,UAAU,MAAM;CAAG;AAMnB,iBAAS,aAAa,CAAC,KAAK,EAAE,MAAM,qBAqSnC;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -30,7 +30,7 @@ function getOwnerDropdownOptions(contacts) {
|
|
|
30
30
|
function OwnerSelector(props) {
|
|
31
31
|
const { t } = useTranslation();
|
|
32
32
|
const caseUpdateError = useCaseUpdateErrorMessage();
|
|
33
|
-
const { accountNumber, caseNumber, selectedNotificationContacts, selectedOwner, selectedCaseGroupUsers, isCaseOwnerUpdating, isCasePhoneUpdating, } = useCaseSelector((state) => ({
|
|
33
|
+
const { accountNumber, caseNumber, contactSsoUsername, selectedNotificationContacts, selectedOwner, selectedCaseGroupUsers, isCaseOwnerUpdating, isCasePhoneUpdating, } = useCaseSelector((state) => ({
|
|
34
34
|
accountNumber: state.caseDetails.accountNumberRef,
|
|
35
35
|
caseNumber: state.caseDetails.caseNumber,
|
|
36
36
|
selectedNotificationContacts: state.selectedNotificationContacts,
|
|
@@ -38,10 +38,11 @@ function OwnerSelector(props) {
|
|
|
38
38
|
selectedCaseGroupUsers: state.selectedCaseGroupUsers,
|
|
39
39
|
isCaseOwnerUpdating: state.isCaseOwnerUpdating,
|
|
40
40
|
isCasePhoneUpdating: state.isCasePhoneUpdating,
|
|
41
|
+
contactSsoUsername: state.caseDetails.contactSSOName,
|
|
41
42
|
}), isEqual);
|
|
42
43
|
const { routeState: { isNextBtnClickedToShowValidationError }, } = useContext(RouteContext);
|
|
43
44
|
const caseDispatch = useCaseDispatch();
|
|
44
|
-
const { globalMetadataState: { loggedInUserRights }, } = useContext(GlobalMetadataStateContext);
|
|
45
|
+
const { globalMetadataState: { loggedInUserRights, loggedInUsersAccount }, } = useContext(GlobalMetadataStateContext);
|
|
45
46
|
const previousAccountNumber = usePrevious(accountNumber);
|
|
46
47
|
const { isExportingPDF } = useContext(PDFContext);
|
|
47
48
|
const [usersWithGroupAccess, setUsersWithGroupAccess] = useState([]);
|
|
@@ -92,16 +93,22 @@ function OwnerSelector(props) {
|
|
|
92
93
|
selectedOwner.data.ssoUsername,
|
|
93
94
|
]);
|
|
94
95
|
const updateNotifyUsersList = (newOwner) => {
|
|
95
|
-
|
|
96
|
-
if (!(
|
|
97
|
-
|
|
96
|
+
let newNotifiedUsers = selectedNotificationContacts;
|
|
97
|
+
if (!isEmpty(previousCaseOwner)) {
|
|
98
|
+
newNotifiedUsers = filter(newNotifiedUsers, (c) => c.ssoUsername !== previousCaseOwner);
|
|
98
99
|
}
|
|
100
|
+
if (!(selectedNotificationContacts || []).map((item) => item.ssoUsername).includes(newOwner.ssoUsername)) {
|
|
101
|
+
newNotifiedUsers = uniqBy([...newNotifiedUsers, newOwner], 'ssoUsername');
|
|
102
|
+
}
|
|
103
|
+
setNotifiedUser(caseDispatch, newNotifiedUsers);
|
|
99
104
|
};
|
|
100
105
|
const onCaseOwnerUpdate = (newOwner) => __awaiter(this, void 0, void 0, function* () {
|
|
101
106
|
const caseDetails = { contactSSOName: newOwner.ssoUsername };
|
|
102
107
|
setCaseState(caseDispatch, { isCaseOwnerUpdating: true });
|
|
103
108
|
try {
|
|
104
109
|
yield updateCaseDetails(caseDispatch, caseNumber, caseDetails);
|
|
110
|
+
// set phone fields to empty value to triger fetching
|
|
111
|
+
// phone number for new owner
|
|
105
112
|
setCaseDetails(caseDispatch, {
|
|
106
113
|
contactSSOName: newOwner.ssoUsername,
|
|
107
114
|
phoneCountryCode: '',
|
|
@@ -154,6 +161,12 @@ function OwnerSelector(props) {
|
|
|
154
161
|
fullNameCustom: '',
|
|
155
162
|
},
|
|
156
163
|
];
|
|
164
|
+
// set phone fields to empty value to triger fetching
|
|
165
|
+
// phone number for new owner
|
|
166
|
+
setCaseDetails(caseDispatch, {
|
|
167
|
+
phoneAreaCodePrefixLineNumber: '',
|
|
168
|
+
phoneCountryCode: '',
|
|
169
|
+
});
|
|
157
170
|
onOwnerChange(customerContacts[0], previousCaseOwner, selectedNotificationContacts, caseDispatch);
|
|
158
171
|
}
|
|
159
172
|
});
|
|
@@ -195,6 +208,6 @@ function OwnerSelector(props) {
|
|
|
195
208
|
React.createElement(Trans, null, "Owner"),
|
|
196
209
|
React.createElement(ValueChangedIcon, { afterLocalChange: afterLocalChange, comparator: ownerComparator, isLocalChange: localOwnerChange, value: selectedOwner.data, getTooltipContent: getChangedValueTooltip(() => CaseValuesToWatch.owner, (v) => v.fullNameCustom) }),
|
|
197
210
|
React.createElement("span", { className: `form-required ${isExportingPDF ? 'hide-in-pdf' : ''}`, "aria-hidden": true }, "*")),
|
|
198
|
-
showUsersWithSelectedGroupAccess ? (React.createElement(OwnerTypeaheadDropdown, { id: "get-support-owner", hasClearButton: true, selected: !isEmpty(selectedOwner.data) ? [selectedOwner.data] : [], isDisabled: selectedCaseGroupUsers.isFetching || isCaseOwnerUpdating || isCasePhoneUpdating, onSelect: onCustomerContactSelect, onClearQuery: onClearQuery, onQueryUpdated: onQueryUpdated, options: ownerDropdownOptions, status: isNextBtnClickedToShowValidationError && isEmpty(selectedOwner.data) ? 'danger' : undefined })) : (React.createElement(CaseContactsSelectorExternal, { loggedInUserRights: loggedInUserRights.data, selectedAccountNumber: accountNumber, selected: !isEmpty(selectedOwner.data) ? [selectedOwner.data] : [], onChange: onCustomerContactSelect, placeholder: t(`Search by name or username`), clearButton: true, id: "get-support-owner", name: "get-support-owner", className: "react-select-custom", isUpdating: isCaseOwnerUpdating, isInvalid: isNextBtnClickedToShowValidationError && isEmpty(selectedOwner.data), isDisabled: isCasePhoneUpdating || isCaseOwnerUpdating }))));
|
|
211
|
+
showUsersWithSelectedGroupAccess && loggedInUsersAccount.data.hasGroupACLs ? (React.createElement(OwnerTypeaheadDropdown, { id: "get-support-owner", hasClearButton: true, contactSsoUsername: contactSsoUsername !== null && contactSsoUsername !== void 0 ? contactSsoUsername : '', selected: !isEmpty(selectedOwner.data) ? [selectedOwner.data] : [], isDisabled: selectedCaseGroupUsers.isFetching || isCaseOwnerUpdating || isCasePhoneUpdating, onSelect: onCustomerContactSelect, onClearQuery: onClearQuery, onQueryUpdated: onQueryUpdated, options: ownerDropdownOptions, status: isNextBtnClickedToShowValidationError && isEmpty(selectedOwner.data) ? 'danger' : undefined })) : (React.createElement(CaseContactsSelectorExternal, { loggedInUserRights: loggedInUserRights.data, selectedAccountNumber: accountNumber, contactSsoUsername: contactSsoUsername !== null && contactSsoUsername !== void 0 ? contactSsoUsername : '', selected: !isEmpty(selectedOwner.data) ? [selectedOwner.data] : [], onChange: onCustomerContactSelect, placeholder: t(`Search by name or username`), clearButton: true, id: "get-support-owner", name: "get-support-owner", className: "react-select-custom", isUpdating: isCaseOwnerUpdating, isInvalid: isNextBtnClickedToShowValidationError && isEmpty(selectedOwner.data), isDisabled: isCasePhoneUpdating || isCaseOwnerUpdating }))));
|
|
199
212
|
}
|
|
200
213
|
export { OwnerSelector };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseContactSelector.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseManagement/SendNotifications/CaseContactSelector.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CaseContactSelector.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseManagement/SendNotifications/CaseContactSelector.tsx"],"names":[],"mappings":"AA2BA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAgBvE,MAAM,WAAW,MAAM;CAAG;AAG1B,iBAAS,mBAAmB,CAAC,KAAK,EAAE,MAAM,qBA4czC;AAED,eAAe,mBAAmB,CAAC"}
|
|
@@ -12,9 +12,12 @@ import { CaseContactsSelectorExternal, getHydraContactLabel, PromisifyModal, Toa
|
|
|
12
12
|
import { GlobalMetadataStateContext, useCanEditCase } from '@rh-support/react-context';
|
|
13
13
|
import { AbilityContext, CaseDetailsFields, resourceActions, resources } from '@rh-support/user-permissions';
|
|
14
14
|
import { dtmTrackEventCaseStepEncountered } from '@rh-support/utils';
|
|
15
|
+
import difference from 'lodash/difference';
|
|
15
16
|
import differenceBy from 'lodash/differenceBy';
|
|
16
17
|
import filter from 'lodash/filter';
|
|
17
18
|
import find from 'lodash/find';
|
|
19
|
+
import intersection from 'lodash/intersection';
|
|
20
|
+
import intersectionBy from 'lodash/intersectionBy';
|
|
18
21
|
import isEmpty from 'lodash/isEmpty';
|
|
19
22
|
import isEqual from 'lodash/isEqual';
|
|
20
23
|
import map from 'lodash/map';
|
|
@@ -35,7 +38,7 @@ function CaseContactSelector(props) {
|
|
|
35
38
|
const canSeeEmailNotifications = ability.can(resourceActions.PATCH, resources.CASE_DETAILS, CaseDetailsFields.CASE_DETAILS_SEND_NOTIFICATIONS);
|
|
36
39
|
const [isAssociatesUpdating, setIsAssociatesUpdating] = useState(false);
|
|
37
40
|
const { t } = useTranslation();
|
|
38
|
-
const { accountNumber, caseNumber, contactSsoUsername, selectedNotificationContacts, selectedOwner, customEmailsList, product, selectedCaseGroupUsers, ownersCaseGroups, groupNumber, createdById, version, } = useCaseSelector((state) => ({
|
|
41
|
+
const { accountNumber, caseNumber, contactSsoUsername, selectedNotificationContacts, selectedOwner, customEmailsList, product, selectedCaseGroupUsers, ownersCaseGroups, groupNumber, createdById, version, isCaseOwnerUpdating, } = useCaseSelector((state) => ({
|
|
39
42
|
accountNumber: state.caseDetails.accountNumberRef,
|
|
40
43
|
caseNumber: state.caseDetails.caseNumber,
|
|
41
44
|
contactSsoUsername: state.caseDetails.contactSSOName,
|
|
@@ -43,6 +46,7 @@ function CaseContactSelector(props) {
|
|
|
43
46
|
selectedOwner: state.selectedOwner,
|
|
44
47
|
customEmailsList: state.customEmailsList,
|
|
45
48
|
selectedCaseGroupUsers: state.selectedCaseGroupUsers,
|
|
49
|
+
isCaseOwnerUpdating: state.isCaseOwnerUpdating,
|
|
46
50
|
groupNumber: state.caseDetails.groupNumber,
|
|
47
51
|
ownersCaseGroups: state.ownersCaseGroups,
|
|
48
52
|
createdById: state.caseDetails.createdById,
|
|
@@ -108,7 +112,7 @@ function CaseContactSelector(props) {
|
|
|
108
112
|
});
|
|
109
113
|
const processCaseContacts = (selectedContacts) => __awaiter(this, void 0, void 0, function* () {
|
|
110
114
|
const toAdd = filter(differenceBy(selectedContacts, selectedNotificationContacts, 'ssoUsername'), (item) => item.ssoUsername !== contactSsoUsername);
|
|
111
|
-
const toRemove = filter(
|
|
115
|
+
const toRemove = filter(intersectionBy(selectedContacts, selectedNotificationContacts, 'ssoUsername'), (item) => !item.isInternal && item.ssoUsername !== contactSsoUsername);
|
|
112
116
|
(toAdd.length || toRemove.length) && clearErrorState();
|
|
113
117
|
if ((toAdd || []).length > 0) {
|
|
114
118
|
if (loggedInUserRights.data.isOrgAdmin()) {
|
|
@@ -125,8 +129,8 @@ function CaseContactSelector(props) {
|
|
|
125
129
|
});
|
|
126
130
|
const processCustomEmails = (selectedCustomEmails) => __awaiter(this, void 0, void 0, function* () {
|
|
127
131
|
const currentEmails = customEmailsList.data.map((item) => item.emailAddress);
|
|
128
|
-
const toRemoveEmails =
|
|
129
|
-
const toAddEmails =
|
|
132
|
+
const toRemoveEmails = intersection(currentEmails, selectedCustomEmails);
|
|
133
|
+
const toAddEmails = difference(selectedCustomEmails, currentEmails);
|
|
130
134
|
(toAddEmails.length || toRemoveEmails.length) && clearErrorState();
|
|
131
135
|
if ((toAddEmails || []).length > 0) {
|
|
132
136
|
const result = yield addCustomEmail(toAddEmails[0], clearNonOrgTypeahead);
|
|
@@ -260,10 +264,13 @@ function CaseContactSelector(props) {
|
|
|
260
264
|
React.createElement(Trans, null, "Send notifications"),
|
|
261
265
|
loggedInUserRights.data.isOrgAdmin() ? (React.createElement(React.Fragment, null,
|
|
262
266
|
React.createElement("div", { "data-tracking-id": "send-notification-listbox" },
|
|
263
|
-
React.createElement(CaseContactsSelectorExternal, { groupContactsAndEmails: true, allowCustomEmailAdd: true, loggedInUserRights: loggedInUserRights.data, selectedAccountNumber: accountNumber, selected: [
|
|
267
|
+
React.createElement(CaseContactsSelectorExternal, { isDisabled: isUpdatingCustomEmails || isAssociatesUpdating, groupContactsAndEmails: true, allowCustomEmailAdd: true, contactSsoUsername: contactSsoUsername !== null && contactSsoUsername !== void 0 ? contactSsoUsername : '', loggedInUserRights: loggedInUserRights.data, selectedAccountNumber: accountNumber, selected: [
|
|
264
268
|
...customEmailsList.data,
|
|
265
269
|
...filter(selectedNotificationContacts, (c) => !c.isInternal),
|
|
266
|
-
], contactsToExclude: !isEmpty(selectedOwner.data) ? [selectedOwner.data] : [], onChange: onNotifiedUserChange, clearButton: true, multiple: true, placeholder: t(`Search for an email address or username of the person you want to notify`), id: "open-case-notifications", name: "open-case-notifications", className: "react-select-custom", renderToken: renderToken, isUpdating: isAssociatesUpdating ||
|
|
270
|
+
], contactsToExclude: !isEmpty(selectedOwner.data) ? [selectedOwner.data] : [], onChange: onNotifiedUserChange, clearButton: true, multiple: true, placeholder: t(`Search for an email address or username of the person you want to notify`), id: "open-case-notifications", name: "open-case-notifications", className: "react-select-custom", renderToken: renderToken, isUpdating: isAssociatesUpdating ||
|
|
271
|
+
customEmailsList.isFetching ||
|
|
272
|
+
isUpdatingCustomEmails ||
|
|
273
|
+
isCaseOwnerUpdating, isExportingPDF: isExportingPDF, customEmails: accountCustomEmails.data || [], canAddNew: onAddNew, getCreateNewText: getCreateNewText })),
|
|
267
274
|
!showGroupPermissionError && !showAccountPermissionError && (React.createElement("p", { className: "form-instructions" },
|
|
268
275
|
React.createElement(Trans, null, "Include someone from your account to inform about the status of this case."))),
|
|
269
276
|
showGroupPermissionError && !isExportingPDF && (React.createElement("p", { className: "form-instructions form-invalid" }, loggedInUserRights.data.isOrgAdmin() && (React.createElement(Trans, null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseReducer.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,qDAAqD,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAEtH,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,0BAA0B,EAA+B,MAAM,qCAAqC,CAAC;AAC9G,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAE/E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"CaseReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseReducer.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,qDAAqD,CAA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Z,QAAQ,wBACR,OAAO,CAAC,QAAQ,CAAC,kBAyDzC,CAAC;AAmCF,eAAO,MAAM,gBAAgB,aACf,uBAAuB,cACrB,MAAM,8DAwHrB,CAAC;AAEF,eAAO,MAAM,iBAAiB,aAChB,uBAAuB,cACrB,MAAM,eACL,OAAO,CAAC,YAAY,CAAC,mBACjB,OAAO,mBAsB3B,CAAC;AAEF,eAAO,MAAM,oCAAoC,aACnC,uBAAuB,SAC1B,aAAa,EAAE,gBACR,MAAM,kBAmCvB,CAAC;AAEF,eAAO,MAAM,oCAAoC,aACnC,uBAAuB,yEAInB,MAAM,kBACJ,MAAM,kBAgFzB,CAAC;AAEF,eAAO,MAAM,yCAAyC,aACxC,uBAAuB,cACrB,OAAO,iBACJ,MAAM,SAMxB,CAAC;AAIF,eAAO,MAAM,yBAAyB,aACxB,uBAAuB,iBAClB,MAAM,eACR,MAAM,sBACC,QAAQ,kBA6B/B,CAAC;AAEF,wBAAsB,2BAA2B,CAAC,QAAQ,EAAE,uBAAuB,EAAE,UAAU,EAAE,MAAM,iBAmBtG;AAGD,wBAAgB,oBAAoB,CAChC,QAAQ,EAAE,uBAAuB,EACjC,KAAK,EAAE,MAAM,EACb,gBAAgB,EAAE,mBAAmB,CAAC,OAAO,CAAC,0BAA0B,EAAE,CAAC,CAAC,EAC5E,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,0BAA0B,EAAE,QAO5D;AAED,wBAAsB,kBAAkB,CAAC,QAAQ,EAAE,uBAAuB,EAAE,OAAO,EAAE,MAAM,iBAiB1F;AAED,eAAO,MAAM,kBAAkB,aAAc,uBAAuB,QAAQ,OAAO,SAKlF,CAAC;AAEF,eAAO,MAAM,kBAAkB,aAAc,uBAAuB,mBAAmB,MAAM,SAK5F,CAAC"}
|
|
@@ -10,10 +10,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
import { accounts, contacts, kase, pcm, publicApi } from '@cee-eng/hydrajs';
|
|
11
11
|
import { formattedApiErrorMessage } from '@rh-support/components';
|
|
12
12
|
import { dtmTrackEventCaseCreationStepEncountered, getApiResourceObject } from '@rh-support/utils';
|
|
13
|
-
import
|
|
13
|
+
import delay from 'lodash/delay';
|
|
14
14
|
import filter from 'lodash/filter';
|
|
15
15
|
import find from 'lodash/find';
|
|
16
16
|
import isEmpty from 'lodash/isEmpty';
|
|
17
|
+
import isUndefined from 'lodash/isUndefined';
|
|
17
18
|
import map from 'lodash/map';
|
|
18
19
|
import uniq from 'lodash/uniq';
|
|
19
20
|
import uniqBy from 'lodash/uniqBy';
|
|
@@ -455,7 +456,9 @@ export const setCaseOwner = (dispatch_1, owner_1, product_1, abortSignalCaseGrou
|
|
|
455
456
|
});
|
|
456
457
|
canChangeGroup &&
|
|
457
458
|
fetchCaseGroupsForSSO(dispatch, owner.ssoUsername, setCaseGroupToUngroupedOrDefault, abortSignalCaseGroup, caseGroupNumberToRestore);
|
|
458
|
-
|
|
459
|
+
delay(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
460
|
+
return yield fetchCaseEntitlements(dispatch, owner.ssoUsername, product, abortSignalEntitlements, isUserUpdate, caseNumber);
|
|
461
|
+
}), 5000, 'later');
|
|
459
462
|
});
|
|
460
463
|
//changing the item values to uppercase to match the backend values
|
|
461
464
|
const slaOrder = Object.values(SupportLevelDisplay).map((item) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.9",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"@progress/kendo-licensing": "1.3.5",
|
|
59
59
|
"@progress/kendo-react-pdf": "^5.16.0",
|
|
60
60
|
"@redux-devtools/extension": "^3.3.0",
|
|
61
|
-
"@rh-support/components": "2.5.
|
|
62
|
-
"@rh-support/react-context": "2.5.
|
|
61
|
+
"@rh-support/components": "2.5.7",
|
|
62
|
+
"@rh-support/react-context": "2.5.7",
|
|
63
63
|
"@rh-support/types": "2.0.5",
|
|
64
64
|
"@rh-support/user-permissions": "2.5.3",
|
|
65
65
|
"@rh-support/utils": "2.5.3",
|
|
@@ -134,5 +134,5 @@
|
|
|
134
134
|
"defaults and supports es6-module",
|
|
135
135
|
"maintained node versions"
|
|
136
136
|
],
|
|
137
|
-
"gitHead": "
|
|
137
|
+
"gitHead": "5eaf1c740ed00678417977760f52519d0ac85ee9"
|
|
138
138
|
}
|