@rh-support/troubleshoot 2.2.55 → 2.2.57
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/CaseEditView/Tabs/CaseDiscussion/CaseAttachment.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseAttachment.js +4 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.js +2 -2
- package/lib/esm/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.js +2 -2
- package/lib/esm/components/CaseEditView/index.d.ts +0 -7
- package/lib/esm/components/CaseEditView/index.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/index.js +0 -7
- package/lib/esm/components/Recommendations/AsideResults.js +1 -1
- package/lib/esm/components/Recommendations/CriticalSolutionsToast.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/CriticalSolutionsToast.js +1 -1
- package/lib/esm/components/Recommendations/InsightsResults.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/InsightsResults.js +1 -1
- package/lib/esm/components/Recommendations/Recommendations.js +1 -1
- package/lib/esm/components/SessionRestore/SessionRestore.d.ts.map +1 -1
- package/lib/esm/components/SessionRestore/SessionRestore.js +13 -4
- package/lib/esm/components/SubmitCase/SubmitCase.d.ts.map +1 -1
- package/lib/esm/components/SubmitCase/SubmitCase.js +15 -5
- package/lib/esm/components/Suggestions/TopContent.d.ts +0 -1
- package/lib/esm/components/Suggestions/TopContent.d.ts.map +1 -1
- package/lib/esm/components/Suggestions/TopContent.js +0 -1
- package/lib/esm/components/wizardLayout/index.d.ts +0 -2
- package/lib/esm/components/wizardLayout/index.d.ts.map +1 -1
- package/lib/esm/reducers/SessionRestoreReducer.d.ts +2 -0
- package/lib/esm/reducers/SessionRestoreReducer.d.ts.map +1 -1
- package/lib/esm/reducers/SessionRestoreReducer.js +22 -0
- package/lib/esm/scss/_pf-overrides.scss +14 -1
- package/package.json +6 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseAttachment.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDiscussion/CaseAttachment.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"CaseAttachment.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDiscussion/CaseAttachment.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAexE,OAAO,KAAuC,MAAM,OAAO,CAAC;AAS5D,UAAU,MAAM;IACZ,UAAU,EAAE,WAAW,CAAC;IACxB,kBAAkB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,iBAAiB,EAAE,WAAW,KAAK,IAAI,CAAC;IACzE,eAAe,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,kBAAkB,EAAE,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CAChH;AAED,QAAA,MAAM,cAAc,4EAmPlB,CAAC;AAEH,eAAe,cAAc,CAAC"}
|
|
@@ -8,7 +8,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { caseAttachments, kase } from '@cee-eng/hydrajs';
|
|
11
|
-
import { Button, ButtonVariant, Tooltip, TooltipPosition } from '@patternfly/react-core';
|
|
11
|
+
import { Button, ButtonVariant, Icon, Tooltip, TooltipPosition } from '@patternfly/react-core';
|
|
12
|
+
import PaperclipIcon from '@patternfly/react-icons/dist/js/icons/paperclip-icon';
|
|
12
13
|
import { InlineEdit, LoadingIndicator, ToastNotification, useConfirmation, useCopyToClipboard, useFetch, } from '@rh-support/components';
|
|
13
14
|
import { GlobalMetadataStateContext, useCanEditCase } from '@rh-support/react-context';
|
|
14
15
|
import { ability, CaseDiscussionFields, resourceActions, resources } from '@rh-support/user-permissions';
|
|
@@ -122,7 +123,8 @@ const CaseAttachment = React.forwardRef((props, ref) => {
|
|
|
122
123
|
return (React.createElement("section", { ref: ref, id: props.attachment.id, className: `prevent-split support-comment comment-attachment ${!isCardIsDeleted ? 'showcard' : ''} ${ref ? 'selected-case-comment' : ''} ${props.attachment.isPrivate ? 'private' : ''}` },
|
|
123
124
|
React.createElement("header", null,
|
|
124
125
|
React.createElement("h4", null,
|
|
125
|
-
React.createElement(
|
|
126
|
+
React.createElement(Icon, { className: "pf-v5-u-mr-xs" },
|
|
127
|
+
React.createElement(PaperclipIcon, null)),
|
|
126
128
|
props.attachment.modifiedBy),
|
|
127
129
|
React.createElement("time", { className: "text-right" }, formatDateTime(props.attachment.lastModifiedDate))),
|
|
128
130
|
React.createElement("div", { className: "comment-body" },
|
|
@@ -110,11 +110,11 @@ const CaseComments = React.forwardRef((props, ref) => {
|
|
|
110
110
|
return (React.createElement("img", { src: "https://static.redhat.com/libs/redhat/brand-assets/2/corp/logo--hat-only.svg", height: "18", width: "18", "aria-hidden": "true", alt: "Red Hat associate comment", title: "Red Hat associate", style: { verticalAlign: '-0.125em', marginRight: '6px' } }));
|
|
111
111
|
}
|
|
112
112
|
else if (comment.createdByType === 'Customer') {
|
|
113
|
-
return (React.createElement(Icon, { size: "
|
|
113
|
+
return (React.createElement(Icon, { size: "md" },
|
|
114
114
|
React.createElement(UserCircleIcon, { style: { verticalAlign: '-0.125em', marginRight: '6px', color: '#1D4174' } })));
|
|
115
115
|
}
|
|
116
116
|
else {
|
|
117
|
-
return (React.createElement(Icon, { size: "
|
|
117
|
+
return (React.createElement(Icon, { size: "md" },
|
|
118
118
|
React.createElement(UserCircleIcon, { style: { verticalAlign: '-0.125em', marginRight: '6px', color: '#1D4174' } })));
|
|
119
119
|
}
|
|
120
120
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RMEEscalationList.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAqB,MAAM,2CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"RMEEscalationList.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAqB,MAAM,2CAA2C,CAAC;AA+B/F,UAAU,MAAM;IACZ,WAAW,EAAE,eAAe,EAAE,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;CACtB;AAOD,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,KAAK,EAAE,MAAM,eAsMtD"}
|
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import { escalations, publicApi } from '@cee-eng/hydrajs';
|
|
11
11
|
import { Button, ButtonVariant, Flex, FlexItem } from '@patternfly/react-core';
|
|
12
|
-
import { LoadingIndicator, PFTable,
|
|
12
|
+
import { LoadingIndicator, PFTable, TableComponent, ToastNotification, useFetch, } from '@rh-support/components';
|
|
13
13
|
import { ability, resourceActions, resources } from '@rh-support/user-permissions';
|
|
14
14
|
import { formatDate, sendToSentry } from '@rh-support/utils';
|
|
15
15
|
import find from 'lodash/find';
|
|
@@ -168,6 +168,6 @@ export default function RMEEscalationList(props) {
|
|
|
168
168
|
if ((props.escalations || []).length < 1)
|
|
169
169
|
return (React.createElement("p", { className: "card card-light card-sm push-top-narrow" },
|
|
170
170
|
React.createElement(Trans, null, "No escalations")));
|
|
171
|
-
return (React.createElement(
|
|
171
|
+
return (React.createElement(TableComponent, { columns: columns, data: escalationList },
|
|
172
172
|
React.createElement(PFTable, { "aria-label": "request-managament-escalation-list", className: "rme-list-table", pagination: false })));
|
|
173
173
|
}
|
|
@@ -1,24 +1,17 @@
|
|
|
1
1
|
import '../../css/app.css';
|
|
2
2
|
import '../../css/case.css';
|
|
3
|
-
import { IPfeCollapse } from '@rh-support/types/pfe/pfe-collapse';
|
|
4
3
|
import { RouteComponentProps } from 'react-router-dom';
|
|
5
4
|
declare global {
|
|
6
5
|
interface Window {
|
|
7
6
|
sessionjs: any;
|
|
8
7
|
MSInputMethodContext: any;
|
|
9
|
-
chrometwo_require: (component: string[], callback: (...params: any[]) => any) => any;
|
|
10
8
|
portal: any;
|
|
11
9
|
Raven: any;
|
|
12
|
-
chrometwo_ready: any;
|
|
13
10
|
seVersionInfo: {
|
|
14
11
|
packageVersion: string;
|
|
15
12
|
hydrajs: string;
|
|
16
13
|
};
|
|
17
14
|
}
|
|
18
|
-
namespace JSX {
|
|
19
|
-
interface IntrinsicElements extends IPfeCollapse {
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
15
|
interface Document {
|
|
23
16
|
documentMode: any;
|
|
24
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,CAAC;AAC3B,OAAO,oBAAoB,CAAC;AAI5B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,CAAC;AAC3B,OAAO,oBAAoB,CAAC;AAI5B,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAUvD,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,SAAS,EAAE,GAAG,CAAC;QACf,oBAAoB,EAAE,GAAG,CAAC;QAC1B,MAAM,EAAE,GAAG,CAAC;QACZ,KAAK,EAAE,GAAG,CAAC;QACX,aAAa,EAAE;YACX,cAAc,EAAE,MAAM,CAAC;YACvB,OAAO,EAAE,MAAM,CAAC;SACnB,CAAC;KACL;IAED,UAAU,QAAQ;QACd,YAAY,EAAE,GAAG,CAAC;KACrB;CACJ;AAED,UAAU,MAAM;CAAG;AAEnB,wBAAgB,OAAO,CAAC,UAAU,EAAE,mBAAmB,CAAC,MAAM,CAAC,eAoB9D"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import '../../css/app.css';
|
|
2
2
|
import '../../css/case.css';
|
|
3
3
|
import { ConfirmationServiceProvider, ErrorBoundary } from '@rh-support/components';
|
|
4
|
-
import { CustomElements, requireCustomElement } from '@rh-support/utils';
|
|
5
4
|
import React from 'react';
|
|
6
5
|
import { CaseContextProvider } from '../../context/CaseContext';
|
|
7
6
|
import { CaseDetailsPageContextProvider } from '../../context/CaseDetailsPageContext';
|
|
@@ -10,12 +9,6 @@ import { CaseOverviewContextProvider } from '../../context/CaseOverviewContext';
|
|
|
10
9
|
import { RecommendationContextProvider } from '../../context/RecommendationContext';
|
|
11
10
|
import Case from './Case';
|
|
12
11
|
import { PDFContainer } from './PDFContainer';
|
|
13
|
-
requireCustomElement([
|
|
14
|
-
{
|
|
15
|
-
element: CustomElements.pfeCollapse,
|
|
16
|
-
requireCb: () => require('@patternfly/pfe-collapse'),
|
|
17
|
-
},
|
|
18
|
-
]);
|
|
19
12
|
export function CaseApp(routeProps) {
|
|
20
13
|
return (React.createElement(ErrorBoundary, { isPageLevelError: true },
|
|
21
14
|
React.createElement(CaseContextProvider, null,
|
|
@@ -148,7 +148,7 @@ export function AsideResults(props) {
|
|
|
148
148
|
return (React.createElement("li", { className: "result", key: doc.id },
|
|
149
149
|
React.createElement("header", { className: "result-header" },
|
|
150
150
|
React.createElement("a", { href: `${doc.view_uri}?${RouteUtils.getSEResourceQueryParams(activeSessionId, (_b = (_a = sessionResourceTracking[SessionResourceSource.RECOMMENDATIONS_ASIDE]) === null || _a === void 0 ? void 0 : _a.resourceOriginId) !== null && _b !== void 0 ? _b : '', SessionResourceSource.RECOMMENDATIONS_ASIDE)}`, className: "se-recommended ts-result-aside", "data-tracking-id": `se-recommended-sidebar-recommendations-${index}`, rel: "noopener noreferrer", target: "_blank", onClick: onResourceClick(doc, index), dangerouslySetInnerHTML: computeRecommendationTitle(doc) })),
|
|
151
|
-
isFetchingRecommendationsFromWatsonX && (React.createElement(ShowRank, { index: index, originalRank: doc.original_rank, routeProps: props.routeProps })),
|
|
151
|
+
isFetchingRecommendationsFromWatsonX && !isRerankEnabled && (React.createElement(ShowRank, { index: index, originalRank: doc.original_rank, routeProps: props.routeProps })),
|
|
152
152
|
React.createElement("p", { className: "result-body", dangerouslySetInnerHTML: computeRecommendationAbstract(doc, 150) })));
|
|
153
153
|
})))));
|
|
154
154
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CriticalSolutionsToast.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/CriticalSolutionsToast.tsx"],"names":[],"mappings":"AAGA,OAAc,EAAE,EAAE,EAAmC,MAAM,OAAO,CAAC;AAOnE,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,QAAA,MAAM,sBAAsB,EAAE,EAAE,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"CriticalSolutionsToast.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/CriticalSolutionsToast.tsx"],"names":[],"mappings":"AAGA,OAAc,EAAE,EAAE,EAAmC,MAAM,OAAO,CAAC;AAOnE,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,QAAA,MAAM,sBAAsB,EAAE,EAAE,CAAC,MAAM,CAkEtC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -45,6 +45,6 @@ const CriticalSolutionsToast = (props) => {
|
|
|
45
45
|
if (!showNotification && !rulesState.triggerRuleNotification)
|
|
46
46
|
return null;
|
|
47
47
|
return (React.createElement(Alert, { isLiveRegion: true, variant: "success", title: t('File recommendations are ready to view'), actionLinks: React.createElement(Button, { isInline: true, variant: "link", onClick: viewCriticalSolution, "data-tracking-id": "critical-solutions-alert-view" },
|
|
48
|
-
React.createElement(Trans, null, "Troubleshooting specific for your uploaded files.")), actionClose: React.createElement(AlertActionCloseButton, { variantLabel: "success alert", onClose: onClose }), timeout: caseType !== PreviousCaseTypes.FEATURE_ENHANCEMENT, "data-tracking-id": "critical-solutions-alert" }));
|
|
48
|
+
React.createElement(Trans, null, "Troubleshooting specific for your uploaded files.")), actionClose: React.createElement(AlertActionCloseButton, { variantLabel: "success alert", onClose: onClose }), timeout: caseType !== PreviousCaseTypes.FEATURE_ENHANCEMENT, "data-tracking-id": "critical-solutions-alert", className: "critical-solutions-file-upload-alert" }));
|
|
49
49
|
};
|
|
50
50
|
export default CriticalSolutionsToast;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightsResults.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/InsightsResults.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAgC,MAAM,0CAA0C,CAAC;AAG7G,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAwB5D,UAAU,MAAO,SAAQ,gBAAgB;IACrC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC7B;AASD,MAAM,WAAW,wBAAyB,SAAQ,mBAAmB;IACjE,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,OAAO,CAAC;CAClB;AAED,iBAAS,eAAe,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"InsightsResults.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/InsightsResults.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAgC,MAAM,0CAA0C,CAAC;AAG7G,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAwB5D,UAAU,MAAO,SAAQ,gBAAgB;IACrC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC7B;AASD,MAAM,WAAW,wBAAyB,SAAQ,mBAAmB;IACjE,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,OAAO,CAAC;CAClB;AAED,iBAAS,eAAe,CAAC,KAAK,EAAE,MAAM,eA2PrC;kBA3PQ,eAAe;;;AA8PxB,eAAe,eAAe,CAAC"}
|
|
@@ -239,7 +239,7 @@ function InsightsResults(props) {
|
|
|
239
239
|
return (React.createElement(InsightResultModal, { EARule: validEARules, onModalToggle: insightsModalToggle, isOpen: isRuleModalVisible, insightResults: allResults, isRenderedMain: true }));
|
|
240
240
|
}
|
|
241
241
|
return (React.createElement(React.Fragment, null,
|
|
242
|
-
!rulesState.triggerRuleNotification && caseType !== PreviousCaseTypes.FEATURE_ENHANCEMENT && (React.createElement(Alert, { isInline: true, title: t('File recommendations are ready to view'), "data-tracking-id": "inline-view-critical-solution-alert", children: React.createElement("p", null,
|
|
242
|
+
!rulesState.triggerRuleNotification && caseType !== PreviousCaseTypes.FEATURE_ENHANCEMENT && (React.createElement(Alert, { isInline: true, variant: "custom", title: t('File recommendations are ready to view'), "data-tracking-id": "inline-view-critical-solution-alert", children: React.createElement("p", null,
|
|
243
243
|
React.createElement(Trans, null, "Troubleshooting specific for your uploaded files.")), className: "file-recommendations-file-upload-alert" })),
|
|
244
244
|
React.createElement(InsightResultModal, { EARule: validEARules, onModalToggle: insightsModalToggle, isOpen: isRuleModalVisible, insightResults: allResults })));
|
|
245
245
|
}
|
|
@@ -154,7 +154,7 @@ export default function Recommendations(props) {
|
|
|
154
154
|
React.createElement("span", { className: "meta" }, doc.documentKind),
|
|
155
155
|
React.createElement("span", { className: "list-separator" }, "\u2013"),
|
|
156
156
|
React.createElement("time", { className: "moment_date meta", title: doc.lastModifiedDate.toString() }, formatDate(doc.lastModifiedDate)))),
|
|
157
|
-
isFetchingRecommendationsFromWatsonX && (React.createElement(ShowRank, { index: i, originalRank: doc.original_rank, routeProps: props.routeProps, perPage: recPageSize, pageNo: recommendationState.currentPage })),
|
|
157
|
+
isFetchingRecommendationsFromWatsonX && !isRerankEnabled && (React.createElement(ShowRank, { index: i, originalRank: doc.original_rank, routeProps: props.routeProps, perPage: recPageSize, pageNo: recommendationState.currentPage })),
|
|
158
158
|
React.createElement("p", { className: "result-body", dangerouslySetInnerHTML: computeRecommendationAbstract(doc, 300) })));
|
|
159
159
|
})),
|
|
160
160
|
recommendationState.numFound !== 0 && recommendationState.numFound > DEFAULTPAGESIZE && (React.createElement("div", { className: "pagination-footer" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionRestore.d.ts","sourceRoot":"","sources":["../../../../src/components/SessionRestore/SessionRestore.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAQvD,OAAO,EAGH,eAAe,EAElB,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"SessionRestore.d.ts","sourceRoot":"","sources":["../../../../src/components/SessionRestore/SessionRestore.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAQvD,OAAO,EAGH,eAAe,EAElB,MAAM,iCAAiC,CAAC;AAiBzC,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,eAsV3C"}
|
|
@@ -16,7 +16,7 @@ import includes from 'lodash/includes';
|
|
|
16
16
|
import isEmpty from 'lodash/isEmpty';
|
|
17
17
|
import isEqual from 'lodash/isEqual';
|
|
18
18
|
import orderBy from 'lodash/orderBy';
|
|
19
|
-
import React, { useContext, useEffect, useState } from 'react';
|
|
19
|
+
import React, { useContext, useEffect, useRef, useState } from 'react';
|
|
20
20
|
import { useCaseDispatch, useCaseSelector } from '../../context/CaseContext';
|
|
21
21
|
import { RouteContext } from '../../context/RouteContext';
|
|
22
22
|
import { SessionRestoreDispatchContext, SessionRestoreStateContext } from '../../context/SessionRestoreContext';
|
|
@@ -24,7 +24,7 @@ import { CaseReducerConstants, SESSION_REFERRER_URL_LIMIT } from '../../reducers
|
|
|
24
24
|
import { getSessionDetailsFromCase } from '../../reducers/CaseHelpers';
|
|
25
25
|
import { setCaseAccountNumber, setCaseOwner, setCaseState, updateCaseWithSession } from '../../reducers/CaseReducer';
|
|
26
26
|
import { AppRouteSections, sessionRestoreCardSections, } from '../../reducers/RouteConstNTypes';
|
|
27
|
-
import { createSession, getRelevantSessionFromSessions, loadPreviousSessions, markAllSessionsUnresolved, updateActiveSessionId, updateSession, } from '../../reducers/SessionRestoreReducer';
|
|
27
|
+
import { createSession, getIndividualSessionById, getRelevantSessionFromSessions, loadPreviousSessions, markAllSessionsUnresolved, updateActiveSessionId, updateSession, } from '../../reducers/SessionRestoreReducer';
|
|
28
28
|
import RouteUtils from '../../utils/routeUtils';
|
|
29
29
|
import { resetAttachment } from '../shared/fileUpload';
|
|
30
30
|
import { restoreFilesFromSession } from '../shared/fileUpload/reducer/AttachmentHelper';
|
|
@@ -52,11 +52,14 @@ export function SessionRestore(props) {
|
|
|
52
52
|
const [isRestoring, setIsRestoring] = useState(false);
|
|
53
53
|
const [previousSessions, setPreviousSessions] = useState([]);
|
|
54
54
|
const previousActiveSessionId = usePrevious(sessionRestore.activeSessionId);
|
|
55
|
+
const isFirstMountRef = useRef(true);
|
|
55
56
|
/**
|
|
56
57
|
* Fetching previous sessions on load
|
|
57
58
|
*/
|
|
58
59
|
useEffect(() => {
|
|
60
|
+
currentUrlSeSessionId && getIndividualSessionById(sessionRestoreDispatch, currentUrlSeSessionId);
|
|
59
61
|
loadPreviousSessions(sessionRestoreDispatch, caseDispatch);
|
|
62
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
60
63
|
}, [sessionRestoreDispatch, caseDispatch]);
|
|
61
64
|
/**
|
|
62
65
|
* Creating/use existing session new session if one doesn't exist when:
|
|
@@ -71,9 +74,15 @@ export function SessionRestore(props) {
|
|
|
71
74
|
* 5. The session doesn't have any visited resource the last time.
|
|
72
75
|
*/
|
|
73
76
|
useEffect(() => {
|
|
74
|
-
if (!sessionRestore.hasFetchedPreviousSessions)
|
|
75
|
-
return;
|
|
76
77
|
const hasProductVersionOrSummary = (!isEmpty(caseDetails.product) && !isEmpty(caseDetails.version)) || !isEmpty(caseDetails.summary);
|
|
78
|
+
// Need to skip on the first mount as case details is not reset when navigating from case create page to case list and back.
|
|
79
|
+
// we will just skip if we have product, version or summary in the case details context or we don't have session id in the url.
|
|
80
|
+
if (isFirstMountRef.current) {
|
|
81
|
+
isFirstMountRef.current = false;
|
|
82
|
+
if (hasProductVersionOrSummary || !currentUrlSeSessionId) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
77
86
|
const currentRelevantSession = getRelevantSessionFromSessions(sessionRestoreDispatch, currentUrlSeSessionId, sessionRestore.previousSessions.data, caseDetails);
|
|
78
87
|
const relevantSession = sessionRestore.previousSessions.data[currentRelevantSession];
|
|
79
88
|
const needsNewSessionId = hasProductVersionOrSummary && isEmpty(relevantSession);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubmitCase.d.ts","sourceRoot":"","sources":["../../../../src/components/SubmitCase/SubmitCase.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAQ,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAO7D,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAWlE,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"SubmitCase.d.ts","sourceRoot":"","sources":["../../../../src/components/SubmitCase/SubmitCase.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAQ,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAO7D,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAWlE,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,MAAM,eAkU/C"}
|
|
@@ -26,7 +26,7 @@ import { AttachmentStateContext } from '../shared/fileUpload/reducer/AttachmentR
|
|
|
26
26
|
import Suggestions from '../Suggestions/Suggestions';
|
|
27
27
|
export default function SubmitCase(props) {
|
|
28
28
|
var _a;
|
|
29
|
-
const { entitlementSla, severity, caseType, version, versionsDetails, addNotifiedUserError, isCreatingCase, caseCreationError, caseCreationErrorMessage, selectedAccountDetails, caseNoOfCreatedCase, product, screenSessionRequested, } = useCaseSelector((state) => ({
|
|
29
|
+
const { entitlementSla, severity, caseType, version, versionsDetails, addNotifiedUserError, isCreatingCase, caseCreationError, caseCreationErrorMessage, selectedAccountDetails, caseNoOfCreatedCase, product, screenSessionRequested, phoneCountryCode, phoneAreaCodePrefixLineNumber, } = useCaseSelector((state) => ({
|
|
30
30
|
entitlementSla: state.caseDetails.entitlementSla,
|
|
31
31
|
severity: state.caseDetails.severity,
|
|
32
32
|
caseType: state.caseDetails.caseType,
|
|
@@ -40,6 +40,8 @@ export default function SubmitCase(props) {
|
|
|
40
40
|
caseNoOfCreatedCase: state.caseNoOfCreatedCase,
|
|
41
41
|
product: state.caseDetails.product,
|
|
42
42
|
screenSessionRequested: state.caseDetails.screenSessionRequested,
|
|
43
|
+
phoneCountryCode: state.caseDetails.phoneCountryCode,
|
|
44
|
+
phoneAreaCodePrefixLineNumber: state.caseDetails.phoneAreaCodePrefixLineNumber,
|
|
43
45
|
}), isEqual);
|
|
44
46
|
const isIdea = caseType === PreviousCaseTypes.FEATURE_ENHANCEMENT;
|
|
45
47
|
const { topContentState: { topContent }, } = useContext(TCStateContext);
|
|
@@ -62,9 +64,9 @@ export default function SubmitCase(props) {
|
|
|
62
64
|
// when on product version detail doNotShowIRT is true, we don't show Initial Response Time info
|
|
63
65
|
const versionDetail = (versionsDetails === null || versionsDetails === void 0 ? void 0 : versionsDetails.data) && find(versionsDetails.data, (vDetail) => vDetail.name === version);
|
|
64
66
|
return isEmpty(irt || (versionDetail === null || versionDetail === void 0 ? void 0 : versionDetail.doNotShowIRT)) ? (React.createElement(React.Fragment, null)) : (React.createElement(Trans, null,
|
|
65
|
-
"Our response time is ",
|
|
67
|
+
"Our initial response time is ",
|
|
66
68
|
React.createElement("strong", null, finalORT),
|
|
67
|
-
", or
|
|
69
|
+
", or the time specified in your"));
|
|
68
70
|
};
|
|
69
71
|
useEffect(() => {
|
|
70
72
|
getBusinessHours.request(loggedInUser.data.normalizedTZ);
|
|
@@ -120,7 +122,8 @@ export default function SubmitCase(props) {
|
|
|
120
122
|
!versionsDetails.isFetching &&
|
|
121
123
|
getResponseTimeMessage(entitlementSla, severity),
|
|
122
124
|
React.createElement("a", { className: "inline-link", rel: "noopener noreferrer", href: "/support/offerings/production/sla", target: "_blank", "data-tracking-id": "get-support-sla" },
|
|
123
|
-
React.createElement(Trans, null, "Service Level Agreement
|
|
125
|
+
React.createElement(Trans, null, "Service Level Agreement"),
|
|
126
|
+
".")),
|
|
124
127
|
React.createElement("div", { className: "submit-page-contact-info pf-v5-u-mt-lg pf-v5-u-mb-sm" },
|
|
125
128
|
React.createElement("p", { className: "contact-info-title pf-v5-u-mb-sm" },
|
|
126
129
|
React.createElement(Trans, null, "Is this contact information correct?")),
|
|
@@ -128,7 +131,14 @@ export default function SubmitCase(props) {
|
|
|
128
131
|
React.createElement("strong", null,
|
|
129
132
|
React.createElement(Trans, null, "Email:")),
|
|
130
133
|
' ',
|
|
131
|
-
userEmail
|
|
134
|
+
userEmail,
|
|
135
|
+
React.createElement("br", null),
|
|
136
|
+
React.createElement("strong", null,
|
|
137
|
+
React.createElement(Trans, null, "Phone Number:")),
|
|
138
|
+
' ',
|
|
139
|
+
phoneCountryCode,
|
|
140
|
+
" ",
|
|
141
|
+
phoneAreaCodePrefixLineNumber)),
|
|
132
142
|
React.createElement("div", null,
|
|
133
143
|
React.createElement(ActionList, null,
|
|
134
144
|
React.createElement(ActionListItem, null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopContent.d.ts","sourceRoot":"","sources":["../../../../src/components/Suggestions/TopContent.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TopContent.d.ts","sourceRoot":"","sources":["../../../../src/components/Suggestions/TopContent.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,2DAA2D,CAAC;AAaxF,UAAU,MAAM;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,MAAM,eA8I/C"}
|
|
@@ -14,10 +14,8 @@ declare global {
|
|
|
14
14
|
interface Window {
|
|
15
15
|
sessionjs: any;
|
|
16
16
|
MSInputMethodContext: any;
|
|
17
|
-
chrometwo_require: (component: string[], callback: (...params: any[]) => any) => any;
|
|
18
17
|
portal: any;
|
|
19
18
|
Raven: any;
|
|
20
|
-
chrometwo_ready: any;
|
|
21
19
|
seVersionInfo: {
|
|
22
20
|
packageVersion: string;
|
|
23
21
|
hydrajs: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/index.tsx"],"names":[],"mappings":"AAAA,OAAO,6CAA6C,CAAC;AACrD,OAAO,mBAAmB,CAAC;AAC3B,OAAO,0BAA0B,CAAC;AAClC,OAAO,+BAA+B,CAAC;AACvC,OAAO,uBAAuB,CAAC;AAC/B,OAAO,2CAA2C,CAAC;AAKnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAIvD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAIlE,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,SAAS,EAAE,GAAG,CAAC;QACf,oBAAoB,EAAE,GAAG,CAAC;QAC1B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/index.tsx"],"names":[],"mappings":"AAAA,OAAO,6CAA6C,CAAC;AACrD,OAAO,mBAAmB,CAAC;AAC3B,OAAO,0BAA0B,CAAC;AAClC,OAAO,+BAA+B,CAAC;AACvC,OAAO,uBAAuB,CAAC;AAC/B,OAAO,2CAA2C,CAAC;AAKnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAIvD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAIlE,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,SAAS,EAAE,GAAG,CAAC;QACf,oBAAoB,EAAE,GAAG,CAAC;QAC1B,MAAM,EAAE,GAAG,CAAC;QACZ,KAAK,EAAE,GAAG,CAAC;QACX,aAAa,EAAE;YACX,cAAc,EAAE,MAAM,CAAC;YACvB,OAAO,EAAE,MAAM,CAAC;SACnB,CAAC;KACL;IAED,UAAU,QAAQ;QACd,YAAY,EAAE,GAAG,CAAC;KACrB;CACJ;AAED,eAAO,MAAM,YAAY,UAAW,MAAM,gBAgBzC,CAAC"}
|
|
@@ -44,6 +44,7 @@ export declare enum SessionRestoreConstants {
|
|
|
44
44
|
getSessions = "getSessions",
|
|
45
45
|
patchSession = "patchSession",
|
|
46
46
|
createSession = "createSession",
|
|
47
|
+
setIndividualSession = "setIndividualSession",
|
|
47
48
|
setActiveSessionId = "setActiveSessionId",
|
|
48
49
|
setSessionCreationState = "setSessionCreationState",
|
|
49
50
|
setSessionUpdationState = "setSessionUpdationState",
|
|
@@ -54,6 +55,7 @@ export declare enum SessionRestoreConstants {
|
|
|
54
55
|
export declare const initialSessionRestoreState: ISessionRestoreState;
|
|
55
56
|
export declare type SessionRestoreDispatchType = (value: IActionType) => void;
|
|
56
57
|
export declare const sessionRestoreReducer: (state: ISessionRestoreState, action: IActionType) => ISessionRestoreState;
|
|
58
|
+
export declare const getIndividualSessionById: (dispatch: SessionReducerDispatchType, sessionId: string | undefined) => Promise<void>;
|
|
57
59
|
export declare const loadPreviousSessions: (dispatch: SessionReducerDispatchType, caseDispatch: CaseReducerDispatchType) => Promise<void>;
|
|
58
60
|
export declare const createSession: (dispatch: SessionReducerDispatchType, sessionDetails: ISessionDetails, session: ISession) => Promise<string>;
|
|
59
61
|
export declare const updateSession: (dispatch: SessionReducerDispatchType, sessionId: string, sessionDetails: ISessionDetails, session?: ISession) => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionRestoreReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/SessionRestoreReducer.ts"],"names":[],"mappings":"AACA,OAAO,EACH,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,qBAAqB,IAAI,sBAAsB,EAC/C,yBAAyB,IAAI,0BAA0B,EAC1D,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,2DAA2D,CAAC;AACzG,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAkB1G,OAAO,EAAwB,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAWlF,MAAM,WAAW,aAAa;IAC1B,CAAC,SAAS,EAAE,MAAM,GAAG,YAAY,CAAC;CACrC;AAED,MAAM,WAAW,iBAAiB;IAC9B,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,gBAAgB,EAAE,gBAAgB,EAAE,CAAC;IACrC,kBAAkB,EAAE,gBAAgB,EAAE,CAAC;CAC1C;AACD,MAAM,WAAW,yBAAyB;IACtC,CAAC,MAAM,EAAE,MAAM,GAAG,iBAAiB,CAAC;CACvC;AACD,MAAM,WAAW,oBAAoB;IACjC,gBAAgB,EAAE,mBAAmB,CAAC,aAAa,CAAC,CAAC;IACrD,eAAe,EAAE,MAAM,CAAC;IACxB,0BAA0B,EAAE,OAAO,CAAC;IACpC,qBAAqB,EAAE,eAAe,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A0B,iCAErC,MAAM,KACd,gBAMD,CAAC;AAEH,eAAO,MAAM,cAAc,gFAa1B,CAAC;AAEF,eAAO,MAAM,qBAAqB,gFAajC,CAAC;AAGF,eAAO,MAAM,gBAAgB,QACpB,MAAM,oBACO,0BAA0B,6BAE7C,gBAKD,CAAC;AAGH,eAAO,MAAM,mCAAmC,QACvC,MAAM,oBACO,0BAA0B,6BAE7C,gBAKD,CAAC;AAEH,wBAAgB,oCAAoC,CAChD,IAAI,KAAA,EACJ,gBAAgB,EAAE,0BAA0B,GAC7C,gBAAgB,EAAE,CAIpB;AAID,eAAO,MAAM,YAAY,eACT,mBAAmB,mBACd,mBAAmB,EAAE,YAC7B,mBAAmB,EAAE,uBAWjC,CAAC"}
|
|
@@ -25,6 +25,7 @@ export var SessionRestoreConstants;
|
|
|
25
25
|
SessionRestoreConstants["getSessions"] = "getSessions";
|
|
26
26
|
SessionRestoreConstants["patchSession"] = "patchSession";
|
|
27
27
|
SessionRestoreConstants["createSession"] = "createSession";
|
|
28
|
+
SessionRestoreConstants["setIndividualSession"] = "setIndividualSession";
|
|
28
29
|
SessionRestoreConstants["setActiveSessionId"] = "setActiveSessionId";
|
|
29
30
|
SessionRestoreConstants["setSessionCreationState"] = "setSessionCreationState";
|
|
30
31
|
SessionRestoreConstants["setSessionUpdationState"] = "setSessionUpdationState";
|
|
@@ -74,6 +75,13 @@ export const sessionRestoreReducer = (state, action) => {
|
|
|
74
75
|
newState.activeSessionId = action.payload.sessionItem.session.id;
|
|
75
76
|
return newState;
|
|
76
77
|
}
|
|
78
|
+
case SessionRestoreConstants.setIndividualSession: {
|
|
79
|
+
if (isEmpty(action.payload.sessionItem))
|
|
80
|
+
return state;
|
|
81
|
+
const newState = cloneDeep(state);
|
|
82
|
+
newState.previousSessions.data[action.payload.sessionItem.session.id] = action.payload.sessionItem;
|
|
83
|
+
return newState;
|
|
84
|
+
}
|
|
77
85
|
case SessionRestoreConstants.setActiveSessionId: {
|
|
78
86
|
if (state.activeSessionId === action.payload.activeSessionId)
|
|
79
87
|
return state;
|
|
@@ -112,6 +120,20 @@ export const sessionRestoreReducer = (state, action) => {
|
|
|
112
120
|
}
|
|
113
121
|
}
|
|
114
122
|
};
|
|
123
|
+
// Function to get individual Session by id
|
|
124
|
+
export const getIndividualSessionById = (dispatch, sessionId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
125
|
+
if (isEmpty(sessionId))
|
|
126
|
+
return;
|
|
127
|
+
try {
|
|
128
|
+
const sessions = yield getSessions({
|
|
129
|
+
sessionId: sessionId,
|
|
130
|
+
});
|
|
131
|
+
if (!isEmpty(sessions)) {
|
|
132
|
+
dispatch({ type: SessionRestoreConstants.setIndividualSession, payload: { sessionItem: sessions[0] } });
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
catch (error) { }
|
|
136
|
+
});
|
|
115
137
|
// Function to Load Previous Session
|
|
116
138
|
export const loadPreviousSessions = (dispatch, caseDispatch) => __awaiter(void 0, void 0, void 0, function* () {
|
|
117
139
|
dispatch({
|
|
@@ -586,7 +586,14 @@ span.pf-v5-c-input-group__text {
|
|
|
586
586
|
|
|
587
587
|
.file-recommendations-file-upload-alert {
|
|
588
588
|
.pf-v5-c-alert__icon {
|
|
589
|
-
margin-top:
|
|
589
|
+
margin-top: 5px;
|
|
590
|
+
}
|
|
591
|
+
margin-bottom: 20px;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
.critical-solutions-file-upload-alert {
|
|
595
|
+
.pf-v5-c-alert__icon {
|
|
596
|
+
margin-top: 5px;
|
|
590
597
|
}
|
|
591
598
|
}
|
|
592
599
|
|
|
@@ -615,3 +622,9 @@ div.related-tasks-search-input-container#related-tasks-search-container {
|
|
|
615
622
|
button.pf-v5-c-toggle-group__button {
|
|
616
623
|
z-index: 1;
|
|
617
624
|
}
|
|
625
|
+
|
|
626
|
+
.top-content-suggestion-accordion {
|
|
627
|
+
.pf-v5-c-accordion__toggle {
|
|
628
|
+
padding: 10px !important;
|
|
629
|
+
}
|
|
630
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.57",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -29,9 +29,6 @@
|
|
|
29
29
|
"@cee-eng/hydrajs": "4.16.43",
|
|
30
30
|
"@cee-eng/ui-toolkit": "1.1.6",
|
|
31
31
|
"@patternfly/patternfly": "5.1.0",
|
|
32
|
-
"@patternfly/pfe-accordion": "1.12.3",
|
|
33
|
-
"@patternfly/pfe-collapse": "1.12.3",
|
|
34
|
-
"@patternfly/pfe-tabs": "1.12.3",
|
|
35
32
|
"@patternfly/react-core": "5.1.1",
|
|
36
33
|
"dompurify": "^2.2.6",
|
|
37
34
|
"downshift": "^6.0.5",
|
|
@@ -58,19 +55,15 @@
|
|
|
58
55
|
"@cee-eng/hydrajs": "4.16.43",
|
|
59
56
|
"@cee-eng/ui-toolkit": "1.1.6",
|
|
60
57
|
"@patternfly/patternfly": "5.1.0",
|
|
61
|
-
"@patternfly/pfe-accordion": "1.12.3",
|
|
62
|
-
"@patternfly/pfe-collapse": "1.12.3",
|
|
63
|
-
"@patternfly/pfe-icon": "^1.12.3",
|
|
64
|
-
"@patternfly/pfe-tabs": "1.12.3",
|
|
65
58
|
"@patternfly/react-core": "5.1.1",
|
|
66
59
|
"@patternfly/react-table": "^5.1.1",
|
|
67
60
|
"@progress/kendo-drawing": "^1.6.0",
|
|
68
61
|
"@progress/kendo-react-pdf": "^3.12.0",
|
|
69
|
-
"@rh-support/components": "2.1.
|
|
70
|
-
"@rh-support/react-context": "2.1.
|
|
62
|
+
"@rh-support/components": "2.1.31",
|
|
63
|
+
"@rh-support/react-context": "2.1.34",
|
|
71
64
|
"@rh-support/types": "2.0.2",
|
|
72
|
-
"@rh-support/user-permissions": "2.1.
|
|
73
|
-
"@rh-support/utils": "2.1.
|
|
65
|
+
"@rh-support/user-permissions": "2.1.22",
|
|
66
|
+
"@rh-support/utils": "2.1.15",
|
|
74
67
|
"@types/react-redux": "^7.1.12",
|
|
75
68
|
"@types/redux": "^3.6.0",
|
|
76
69
|
"dompurify": "^2.4.1",
|
|
@@ -108,7 +101,6 @@
|
|
|
108
101
|
"@types/react": "^17.0.14",
|
|
109
102
|
"@types/react-bootstrap-typeahead": "^5.1.3",
|
|
110
103
|
"@types/react-dom": "^17.0.9",
|
|
111
|
-
"@types/react-i18next": "^8.1.0",
|
|
112
104
|
"@types/react-router-dom": "^5.1.2",
|
|
113
105
|
"faker": "^5.5.3"
|
|
114
106
|
},
|
|
@@ -132,5 +124,5 @@
|
|
|
132
124
|
"defaults and supports es6-module",
|
|
133
125
|
"maintained node versions"
|
|
134
126
|
],
|
|
135
|
-
"gitHead": "
|
|
127
|
+
"gitHead": "7ffed161af2758a2f960f77bc8d3a04de4bc7598"
|
|
136
128
|
}
|