@rh-support/troubleshoot 1.0.47-beta.48 → 1.0.47-beta.52

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":"CaseContactPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.tsx"],"names":[],"mappings":"AAsBA,wBAAgB,sBAAsB,gBA2IrC"}
1
+ {"version":3,"file":"CaseContactPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.tsx"],"names":[],"mappings":"AAsBA,wBAAgB,sBAAsB,gBA4IrC"}
@@ -36,6 +36,7 @@ export function CaseContactPhoneNumber() {
36
36
  const caseDispatch = useCaseDispatch();
37
37
  const caseUpdateError = useCaseUpdateErrorMessage();
38
38
  const { t } = useTranslation();
39
+ // To handle phone change
39
40
  const onPhoneChange = (phone) => __awaiter(this, void 0, void 0, function* () {
40
41
  if (canEditCase.alert())
41
42
  return;
@@ -87,7 +87,7 @@ export default function SupportTypeSelectorPage() {
87
87
  icon: React.createElement(DocumentationIcon, null),
88
88
  oldSupportType: t(PreviousCaseTypes.USAGE_DOCUMENTATION_HELP),
89
89
  supportTypeHeading: t(NewCaseTypes.USAGE_DOCS_HELP),
90
- supportTypeDescription: t('Get product help, or log a content issue'),
90
+ supportTypeDescription: t('Suggest or request an update to content'),
91
91
  },
92
92
  {
93
93
  id: 5,
@@ -4,15 +4,16 @@
4
4
  import { AlertGroup } from '@patternfly/react-core';
5
5
  import React, { useContext } from 'react';
6
6
  import { RouteContext } from '../../context/RouteContext';
7
- import { hideSideBarClusterIdRuleToast } from '../../reducers/RouteConstNTypes';
7
+ import { hideSideBarClusterIdRuleToast, showSideBarCriticalSolutionsToast } from '../../reducers/RouteConstNTypes';
8
8
  import { ResubmitToast } from '../SubmitCase/ResubmitToast';
9
9
  import ClusterRecommendationToast from './ClusterRecommendationToast';
10
10
  import CriticalSolutionsToast from './CriticalSolutionsToast';
11
11
  const AlertToastWrapper = ({ submitCaseAndNavigate }) => {
12
12
  const { routeState: { activeSection }, } = useContext(RouteContext);
13
13
  const hideClusterIdReportModal = hideSideBarClusterIdRuleToast.includes(activeSection);
14
+ const showClusterRecommendation = showSideBarCriticalSolutionsToast.includes(activeSection);
14
15
  return (React.createElement(AlertGroup, { isToast: true },
15
- React.createElement(CriticalSolutionsToast, null),
16
+ showClusterRecommendation && React.createElement(CriticalSolutionsToast, null),
16
17
  !hideClusterIdReportModal && React.createElement(ClusterRecommendationToast, null),
17
18
  React.createElement(ResubmitToast, { submitCaseAndNavigate: submitCaseAndNavigate })));
18
19
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SubmitCase.d.ts","sourceRoot":"","sources":["../../../../src/components/SubmitCase/SubmitCase.tsx"],"names":[],"mappings":"AA2BA,MAAM,CAAC,OAAO,UAAU,UAAU,gBA8PjC"}
1
+ {"version":3,"file":"SubmitCase.d.ts","sourceRoot":"","sources":["../../../../src/components/SubmitCase/SubmitCase.tsx"],"names":[],"mappings":"AA2BA,MAAM,CAAC,OAAO,UAAU,UAAU,gBA+QjC"}
@@ -3,7 +3,7 @@ import { ActionList, ActionListItem, Button, Text, TextVariants } from '@pattern
3
3
  import CheckCircleIcon from '@patternfly/react-icons/dist/js/icons/check-circle-icon';
4
4
  import { AlertMessage, AlertType, useFetch } from '@rh-support/components';
5
5
  import { GlobalMetadataStateContext } from '@rh-support/react-context';
6
- import { getConfigField, getRedhatDotComHost, PCM_CONFIG_FIELD_TYPE } from '@rh-support/utils';
6
+ import { getConfigField, getRedhatDotComHost, PCM_CONFIG_FIELD_TYPE, PreviousCaseTypes } from '@rh-support/utils';
7
7
  import find from 'lodash/find';
8
8
  import isEmpty from 'lodash/isEmpty';
9
9
  import isEqual from 'lodash/isEqual';
@@ -20,14 +20,15 @@ import ClusterRecommendations from '../Recommendations/ClusterRecommendations';
20
20
  import InsightsResults from '../Recommendations/InsightsResults';
21
21
  import { RemoteRiderBanner } from '../RemoteRider/RemoteRiderBanner';
22
22
  import FileUploader from '../shared/fileUpload/FileUploader';
23
- import { isUploadingAttachment } from '../shared/fileUpload/reducer/AttachmentHelper';
23
+ import { isUploadedAndAnalyzed, isUploadingAttachment } from '../shared/fileUpload/reducer/AttachmentHelper';
24
24
  import { AttachmentStateContext } from '../shared/fileUpload/reducer/AttachmentReducerContext';
25
25
  import Suggestions from '../Suggestions/Suggestions';
26
26
  export default function SubmitCase() {
27
- const { entitlementSla, severity, caseNumber, version, versionsDetails, addNotifiedUserError, isCreatingCase, caseCreationError, caseCreationErrorMessage, selectedAccountDetails, } = useCaseSelector((state) => ({
27
+ const { entitlementSla, severity, caseNumber, caseType, version, versionsDetails, addNotifiedUserError, isCreatingCase, caseCreationError, caseCreationErrorMessage, selectedAccountDetails, } = useCaseSelector((state) => ({
28
28
  entitlementSla: state.caseDetails.entitlementSla,
29
29
  severity: state.caseDetails.severity,
30
30
  caseNumber: state.caseDetails.caseNumber,
31
+ caseType: state.caseDetails.caseType,
31
32
  version: state.caseDetails.version,
32
33
  versionsDetails: state.versionsDetails,
33
34
  addNotifiedUserError: state.addNotifiedUserError,
@@ -36,6 +37,7 @@ export default function SubmitCase() {
36
37
  caseCreationErrorMessage: state.caseCreationErrorMessage,
37
38
  selectedAccountDetails: state.selectedAccountDetails,
38
39
  }), isEqual);
40
+ const isIdea = caseType === PreviousCaseTypes.FEATURE_ENHANCEMENT;
39
41
  const { topContentState: { topContent }, } = useContext(TCStateContext);
40
42
  const { rulesState } = useContext(RulesStateContext);
41
43
  const { clusterRecommendationsState: { clusterRecommendations }, } = useContext(ClusterRecommendationsContext);
@@ -73,7 +75,9 @@ export default function SubmitCase() {
73
75
  const showRemoteRiderBanner = isRemoteRiderBannerVisible &&
74
76
  !loggedInUser.data.isInternal &&
75
77
  showRemoteRiderTermsInline &&
76
- !selectedAccountDetails.data.remoteSessionTermsAcked;
78
+ !selectedAccountDetails.data.remoteSessionTermsAcked &&
79
+ !isIdea;
80
+ const viewCaseDisabled = attachmentState.caseFiles.selectedLocalFiles.every((localFile) => !isUploadedAndAnalyzed(localFile));
77
81
  return (React.createElement(React.Fragment, null,
78
82
  React.createElement(AlertMessage, { className: "push-top", title: t('Failed to add user.'), variant: AlertType.DANGER, show: addNotifiedUserError }),
79
83
  React.createElement(AlertMessage, { className: "push-top", variant: AlertType.DANGER, show: caseCreationError, title: t("Sorry, we're experiencing an error"), isInline: true },
@@ -87,20 +91,19 @@ export default function SubmitCase() {
87
91
  React.createElement(CheckCircleIcon, { size: "lg" }),
88
92
  ' ',
89
93
  React.createElement(Text, { className: "pf-u-ml-md pf-u-mb-0", component: TextVariants.h1 },
90
- React.createElement(Trans, null, "We\u2019ve added your case to our queue"))),
94
+ React.createElement(Trans, null, "We've added your case to our queue"))),
91
95
  React.createElement("div", { className: "pf-u-mt-sm" },
92
96
  React.createElement(Trans, null, "Case number:"),
93
97
  "\u00A0",
94
- React.createElement(Link, { to: `/case/${caseNumber}`, "data-tracking-id": "get-support-queued-case-number" }, caseNumber)))) : (React.createElement(React.Fragment, null,
98
+ React.createElement(Link, { to: `/case/${caseNumber}`, "data-tracking-id": "get-support-queued-case-number", className: viewCaseDisabled ? 'case-link-disabled' : '' }, caseNumber)))) : (React.createElement(React.Fragment, null,
95
99
  React.createElement("div", { className: "submit-page-title" },
96
100
  React.createElement(CheckCircleIcon, { size: "lg" }),
97
101
  ' ',
98
102
  React.createElement(Text, { component: TextVariants.h1 },
99
103
  React.createElement(Trans, null, "We\u2019ve added your case to our queue"))),
100
- React.createElement("a", { href: getCaseURL(), target: "_blank", rel: "noopener noreferrer", "data-tracking-id": "get-support-case-number" },
104
+ React.createElement(React.Fragment, null,
101
105
  React.createElement(Trans, null, "Case number: "),
102
- " ",
103
- caseNumber)))),
106
+ React.createElement("a", { href: getCaseURL(), target: "_blank", rel: "noopener noreferrer", "data-tracking-id": "get-support-case-number", className: viewCaseDisabled ? 'case-link-disabled' : '' }, caseNumber))))),
104
107
  React.createElement("p", null,
105
108
  !versionsDetails.isFetching &&
106
109
  !versionsDetails.isFetching &&
@@ -127,13 +130,15 @@ export default function SubmitCase() {
127
130
  React.createElement(ActionListItem, null,
128
131
  React.createElement(Button, { component: "a", href: `${getRedhatDotComHost(Env.getEnvName())}/wapps/ugc/protected/personalInfo.html`, target: "_blank", variant: "secondary", "data-tracking-id": "get-support-update-info" }, "Update info")),
129
132
  React.createElement(ActionListItem, null,
130
- React.createElement(Button, { className: "pf-u-ml-md", component: (props) => React.createElement(Link, Object.assign({}, props, { to: `/case/${caseNumber}` })), href: getCaseURL(), variant: "primary", "data-tracking-id": "get-support-view-case" }, "View case"))))),
133
+ React.createElement(Button, { className: "pf-u-ml-md", component: (props) => React.createElement(Link, Object.assign({}, props, { to: `/case/${caseNumber}` })), href: getCaseURL(), variant: "primary", "data-tracking-id": "get-support-view-case", isDisabled: viewCaseDisabled }, "View case"))))),
131
134
  !isEmpty(attachmentState.caseFiles.selectedLocalFiles) && (React.createElement(FileUploader, { idToUploadTo: caseNumber, isSessionId: false, isSecureSupport: loggedInUsersAccount.data.secureSupport })),
132
135
  React.createElement("div", null,
133
- (!isEmpty(topContent.data) || !rulesState.EARules.rules || !clusterRecommendations) && (React.createElement(Text, { className: "pf-u-mt-2xl pf-u-font-weight-light", component: TextVariants.h2 },
136
+ (!isEmpty(topContent.data) || !rulesState.EARules.rules || !clusterRecommendations) &&
137
+ !isIdea && (React.createElement(Text, { className: "pf-u-mt-2xl pf-u-font-weight-light", component: TextVariants.h2 },
134
138
  React.createElement(Trans, null, "Troubleshoot this case"))),
135
- React.createElement(InsightsResults, { isDisplayOnMain: true }),
139
+ React.createElement("div", { className: isIdea ? 'pf-u-mt-lg' : '' },
140
+ React.createElement(InsightsResults, { isDisplayOnMain: true })),
136
141
  React.createElement(ClusterRecommendations, { showClusterRecommendationsModal: false }),
137
- !isEmpty(topContent.data) && (React.createElement(Suggestions, { title: "Product recommendations", showTitleDescription: true, showMax: 6 }))),
138
- !isEmpty(attachmentState.caseFiles.selectedLocalFiles) && (React.createElement(FileUploader, { idToUploadTo: caseNumber, isSessionId: false, isSecureSupport: loggedInUsersAccount.data.secureSupport }))))));
142
+ !isEmpty(topContent.data) && (React.createElement("div", { className: "pf-u-mt-lg" },
143
+ React.createElement(Suggestions, { title: isIdea ? t('Search recommendations') : t('Product recommendations'), showTitleDescription: true, showMax: 6 }))))))));
139
144
  }
@@ -44,7 +44,7 @@ export default function Suggestions(props) {
44
44
  return (React.createElement("div", null,
45
45
  showTitleDescription && (React.createElement("div", { className: "card card-support" },
46
46
  !isTCSearchEnabled && (React.createElement(Trans, null,
47
- React.createElement("h3", { className: "card-heading popular-solutions" }, props.title ? 'Product recommendations' : 'Popular solutions and docs'))),
47
+ React.createElement("h3", { className: "card-heading popular-solutions" }, props.title ? props.title : 'Popular solutions and docs'))),
48
48
  isTCSearchEnabled && (React.createElement("div", { className: "card-body" },
49
49
  React.createElement(TopContentSearch, { topContentData: topContent.data, topContentResultsWrapperRef: accordionRef, onSearch: onSearchChange, dataTrackingId: "top-content-filter-troubleshoot", enableEventTracking: true }))))),
50
50
  React.createElement("pfe-accordion", { ref: accordionRef }, map(filteredTC.slice(0, maxTC), (sug, index) => {
@@ -1 +1 @@
1
- {"version":3,"file":"TroubleshootSection.d.ts","sourceRoot":"","sources":["../../../../src/components/TroubleshootSection/TroubleshootSection.tsx"],"names":[],"mappings":"AAcA,UAAU,MAAM;IACZ,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AASD,iBAAS,mBAAmB,CAAC,KAAK,EAAE,MAAM,eAiDzC;kBAjDQ,mBAAmB;;;AAoD5B,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"TroubleshootSection.d.ts","sourceRoot":"","sources":["../../../../src/components/TroubleshootSection/TroubleshootSection.tsx"],"names":[],"mappings":"AAcA,UAAU,MAAM;IACZ,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AASD,iBAAS,mBAAmB,CAAC,KAAK,EAAE,MAAM,eAmDzC;kBAnDQ,mBAAmB;;;AAsD5B,eAAe,mBAAmB,CAAC"}
@@ -33,11 +33,11 @@ function TroubleshootSection(props) {
33
33
  React.createElement(OpenShiftClusterId, null))),
34
34
  React.createElement("section", null,
35
35
  React.createElement("header", null,
36
- React.createElement("h3", null,
36
+ topContent.data.length > 0 && (React.createElement("h3", null,
37
37
  React.createElement(Trans, null,
38
38
  "Because you selected",
39
39
  ' ',
40
- React.createElement("p", { className: "pf-u-font-weight-bold selected-product-suggestion" }, product))),
40
+ React.createElement("p", { className: "pf-u-font-weight-bold selected-product-suggestion" }, product)))),
41
41
  React.createElement(LoadingDots, { show: topContent.isFetching }),
42
42
  React.createElement(ErrorBoundary, { errorMsgInfo: { message: t('There was an error loading suggestions') } }, canShowTopContent && !isEmpty(version) && React.createElement(Suggestions, null)),
43
43
  !isCreatingCase && React.createElement(ClusterRecommendations, { className: "push-top" }))),
@@ -1 +1 @@
1
- {"version":3,"file":"FileLister.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/fileUpload/FileLister.tsx"],"names":[],"mappings":"AA0BA,OAAO,EAAiB,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAGxE,eAAO,MAAM,qBAAqB,2FAAyC,CAAC;AAiB5E,UAAU,MAAM;IACZ,kBAAkB,EAAE,UAAU,EAAE,CAAC;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AAK,EAAE,MAAM,eAiR/C"}
@@ -2,10 +2,13 @@ import { pcm } from '@cee-eng/hydrajs';
2
2
  import { Button, ButtonVariant, Label, Progress, ProgressMeasureLocation } from '@patternfly/react-core';
3
3
  import { CircularProgressbar } from '@rh-support/components';
4
4
  import { humanizeSize } from '@rh-support/utils';
5
- import { capitalize, isEmpty } from 'lodash';
5
+ import capitalize from 'lodash/capitalize';
6
+ import isEmpty from 'lodash/isEmpty';
7
+ import isEqual from 'lodash/isEqual';
6
8
  import map from 'lodash/map';
7
9
  import React from 'react';
8
10
  import { Trans, useTranslation } from 'react-i18next';
11
+ import { useCaseSelector } from '../../../context/CaseContext';
9
12
  import { isAnalysingFile, isAnalysisFailed, isFileDeleted, isUploadAborted, isUploadedAndAnalysisFailed, isUploadedAndAnalysisSkipped, isUploadedAndAnalyzed, isUploadFailed, isUploading, isUploadingAttachment, isUploadingOnCase, isUploadingOnSession, isUploadOnTrack, isVerifyingUpload, shouldHideDescription, } from './reducer/AttachmentHelper';
10
13
  import { FileStatusHelper } from './reducer/FileStatusHelper';
11
14
  export const CaseDiagnosticsStatus = pcm.preCase.diag.CaseDiagnosticsStatus;
@@ -32,10 +35,21 @@ export default function FileLister(props) {
32
35
  props.onFileEdit &&
33
36
  props.onFileEdit(editedLocalFile, indexToEdit, { description: editedLocalFile.description.trim() });
34
37
  };
38
+ const { summary } = useCaseSelector((state) => ({
39
+ summary: state.caseDetails.summary,
40
+ }), isEqual);
35
41
  // To retry file upload
36
42
  const onRetry = (index) => () => {
37
43
  props.onRetry && props.onRetry(index);
38
44
  };
45
+ const sosReportErrorText = (errorText) => {
46
+ const isSummaryEmpty = isEmpty(summary === null || summary === void 0 ? void 0 : summary.trim());
47
+ if (isSummaryEmpty) {
48
+ return t('please detail your issue summary first');
49
+ }
50
+ else
51
+ return errorText;
52
+ };
39
53
  const onRetryAnalysis = (index) => () => {
40
54
  props.onRetryAnalysis && props.onRetryAnalysis(index);
41
55
  };
@@ -124,9 +138,11 @@ export default function FileLister(props) {
124
138
  React.createElement(Trans, null, "Try analyzing again.")))),
125
139
  isUploadFailed(localFile.uploadProgress.uploadStatus) && (React.createElement("span", { className: "text-danger" },
126
140
  React.createElement(Trans, null,
127
- "Upload Failed, ",
128
- localFile.uploadProgress.uploadErrorMessage,
129
- ". "),
141
+ "Upload Failed,",
142
+ ' ',
143
+ sosReportErrorText(localFile.uploadProgress.uploadErrorMessage),
144
+ ".",
145
+ ' '),
130
146
  React.createElement(Button, { onClick: onRetry(index), isInline: true, variant: ButtonVariant.link },
131
147
  React.createElement(Trans, null, "Try again"))))));
132
148
  })),
@@ -25,5 +25,6 @@ export declare const showSideBarEARuleWidgetSections: AppRouteSections[];
25
25
  export declare const showSideBarClusterIdRuleWidgetSections: AppRouteSections[];
26
26
  export declare const showSideBarFileRecommendationSections: AppRouteSections[];
27
27
  export declare const hideSideBarClusterIdRuleToast: AppRouteSections[];
28
+ export declare const showSideBarCriticalSolutionsToast: AppRouteSections[];
28
29
  export declare const hiddengetSupportSections: AppRouteSections[];
29
30
  //# sourceMappingURL=RouteConstNTypes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RouteConstNTypes.d.ts","sourceRoot":"","sources":["../../../src/reducers/RouteConstNTypes.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IAIrB,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AACD,MAAM,WAAW,eAAe;CAAG;AACnC,oBAAY,gBAAgB;IACxB,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;IAC/B,UAAU,eAAe;IACzB,MAAM,WAAW;IAC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CAAiC,oBAA+B,CAAC;AAE9E,eAAO,MAAM,wBAAwB,EAAE,gBAAgB,EAKtD,CAAC"}
@@ -26,6 +26,7 @@ export const showSidebarRecommendationsSections = [
26
26
  export const showSideBarEARuleWidgetSections = [
27
27
  AppRouteSections.DESCRIBE_MORE,
28
28
  AppRouteSections.DESCRIBE_IDEA,
29
+ AppRouteSections.TROUBLESHOOT,
29
30
  AppRouteSections.MANAGEMENT,
30
31
  AppRouteSections.GET_SUPPORT,
31
32
  ];
@@ -34,12 +35,9 @@ export const showSideBarClusterIdRuleWidgetSections = [
34
35
  AppRouteSections.REVIEW,
35
36
  AppRouteSections.SUBMIT_CASE,
36
37
  ];
37
- export const showSideBarFileRecommendationSections = [
38
- AppRouteSections.TROUBLESHOOT,
39
- AppRouteSections.DESCRIBE_MORE,
40
- AppRouteSections.MANAGEMENT,
41
- ];
38
+ export const showSideBarFileRecommendationSections = [AppRouteSections.DESCRIBE_MORE, AppRouteSections.MANAGEMENT];
42
39
  export const hideSideBarClusterIdRuleToast = [AppRouteSections.REVIEW, AppRouteSections.SUBMIT_CASE];
40
+ export const showSideBarCriticalSolutionsToast = [AppRouteSections.SUMMARIZE];
43
41
  export const hiddengetSupportSections = [
44
42
  AppRouteSections.TROUBLESHOOT,
45
43
  AppRouteSections.DESCRIBE_MORE,
@@ -1782,3 +1782,11 @@ div.case-details-ref-number {
1782
1782
  }
1783
1783
  margin-bottom: 0 !important;
1784
1784
  }
1785
+
1786
+ .case-link-disabled {
1787
+ pointer-events: none;
1788
+ a:link,
1789
+ a:visited {
1790
+ color: var(--pf-global--Color--100) !important;
1791
+ }
1792
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/troubleshoot",
3
- "version": "1.0.47-beta.48",
3
+ "version": "1.0.47-beta.52",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -26,7 +26,7 @@
26
26
  "lib/**/*"
27
27
  ],
28
28
  "peerDependencies": {
29
- "@cee-eng/hydrajs": "4.15.64",
29
+ "@cee-eng/hydrajs": "4.15.71",
30
30
  "@cee-eng/ui-toolkit": "1.1.6",
31
31
  "@patternfly/patternfly": "4.196.7",
32
32
  "@patternfly/pfe-accordion": "1.12.3",
@@ -63,7 +63,7 @@
63
63
  "react-virtualized": "^9.21.2"
64
64
  },
65
65
  "dependencies": {
66
- "@cee-eng/hydrajs": "4.15.64",
66
+ "@cee-eng/hydrajs": "4.15.71",
67
67
  "@cee-eng/ui-toolkit": "1.1.6",
68
68
  "@patternfly/patternfly": "4.196.7",
69
69
  "@patternfly/pfe-accordion": "1.12.3",
@@ -73,11 +73,11 @@
73
73
  "@patternfly/react-core": "4.264.0",
74
74
  "@progress/kendo-drawing": "^1.6.0",
75
75
  "@progress/kendo-react-pdf": "^3.12.0",
76
- "@rh-support/components": "1.2.22-beta.44",
77
- "@rh-support/react-context": "1.0.30-beta.44",
76
+ "@rh-support/components": "1.2.22-beta.52",
77
+ "@rh-support/react-context": "1.0.30-beta.52",
78
78
  "@rh-support/types": "0.2.1-beta.33",
79
- "@rh-support/user-permissions": "1.0.12-beta.34",
80
- "@rh-support/utils": "1.0.10-beta.34",
79
+ "@rh-support/user-permissions": "1.0.12-beta.52",
80
+ "@rh-support/utils": "1.0.10-beta.52",
81
81
  "@types/react-redux": "^7.1.12",
82
82
  "@types/redux": "^3.6.0",
83
83
  "@webcomponents/webcomponentsjs": "^2.2.10",
@@ -145,5 +145,5 @@
145
145
  "not ie <= 11",
146
146
  "not op_mini all"
147
147
  ],
148
- "gitHead": "a838f12ee4b3494c59beab55eaea67791422d862"
148
+ "gitHead": "4e640a09555885046a05d3f5a552d0bf90f46d9c"
149
149
  }