@rh-support/troubleshoot 2.2.165 → 2.2.167
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/ShareCase/PartnerShare.js +2 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseActionPlan/CaseActionPlan.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseActionPlan/CaseActionPlan.js +3 -15
- package/lib/esm/scss/_pf-overrides.scss +2 -37
- package/package.json +9 -9
|
@@ -113,11 +113,11 @@ export function ShareWithPartner(props) {
|
|
|
113
113
|
yield populatePartners(caseNumber, accountNumber);
|
|
114
114
|
setSelected([]);
|
|
115
115
|
setIsUpdating(false);
|
|
116
|
-
ToastNotification.addSuccessMessage(t('Partner removed successfully'));
|
|
116
|
+
ToastNotification.addSuccessMessage(t('Partner access removed successfully'));
|
|
117
117
|
}
|
|
118
118
|
catch (e) {
|
|
119
119
|
setIsUpdating(false);
|
|
120
|
-
ToastNotification.addDangerMessage(t('Failed to remove partner'));
|
|
120
|
+
ToastNotification.addDangerMessage(t('Failed to remove partner access'));
|
|
121
121
|
}
|
|
122
122
|
});
|
|
123
123
|
if (!canShareWithPartner || (partners.savedPartners.length === 0 && partners.eligiblePartners.length === 0)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseActionPlan.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseActionPlan/CaseActionPlan.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CaseActionPlan.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseActionPlan/CaseActionPlan.tsx"],"names":[],"mappings":"AAYA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAQ/D,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;CACtB;AAMD,iBAAS,cAAc,CAAC,KAAK,EAAE,MAAM,qBAuHpC;kBAvHQ,cAAc;;;AA0HvB,eAAe,cAAc,CAAC"}
|
|
@@ -7,11 +7,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import {
|
|
10
|
+
import { CodeBlock, CodeBlockCode } from '@patternfly/react-core'; // Import PatternFly CodeBlock components
|
|
11
11
|
import { AlertMessage, AlertType, LoadingIndicator, TextAreaResizable, ToastNotification, } from '@rh-support/components';
|
|
12
12
|
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
13
13
|
import { AbilityContext, CaseDetailsFields, resourceActions, resources } from '@rh-support/user-permissions';
|
|
14
|
-
import DOMPurify from 'dompurify';
|
|
15
14
|
import isEmpty from 'lodash/isEmpty';
|
|
16
15
|
import React, { useContext, useEffect, useState } from 'react';
|
|
17
16
|
import { Trans, useTranslation } from 'react-i18next';
|
|
@@ -71,23 +70,12 @@ function CaseActionPlan(props) {
|
|
|
71
70
|
};
|
|
72
71
|
const isInternalWithoutSFDCUser = loggedInUserRights.data.isInternalWithoutSFDCUser();
|
|
73
72
|
const isActionPlanEmpty = isEmpty(actionPlanState === null || actionPlanState === void 0 ? void 0 : actionPlanState.trim());
|
|
74
|
-
const CommentMarkdown = ({ markdown }) => {
|
|
75
|
-
const commentMarkdown = (markdown) => {
|
|
76
|
-
if (isEmpty(markdown)) {
|
|
77
|
-
return { __html: t('No action plan to display.') };
|
|
78
|
-
}
|
|
79
|
-
var cleanMarkdown = DOMPurify.sanitize(markdown);
|
|
80
|
-
const htmlString = parseCommentMarkdown(cleanMarkdown, { showButtonForAttachmentLink: true }, { openLinksInNewTab: true, gfm: true, breaks: true });
|
|
81
|
-
return { __html: htmlString };
|
|
82
|
-
};
|
|
83
|
-
return (React.createElement("div", { className: "markdown-content", "aria-label": t('Case Action Plan'), dangerouslySetInnerHTML: commentMarkdown(markdown) }));
|
|
84
|
-
};
|
|
85
73
|
return (React.createElement(React.Fragment, null,
|
|
86
74
|
React.createElement(AlertMessage, { show: isInternalWithoutSFDCUser, variant: AlertType.WARNING, isInline: true, className: "pf-v5-u-mb-lg", title: t('You need a Salesforce (SFDC) user to edit the action plan.') }),
|
|
87
75
|
React.createElement("label", { htmlFor: "rha-action-plan", className: "sr-only" },
|
|
88
76
|
React.createElement(Trans, null, "Action plan")),
|
|
89
|
-
!canUpdateActionPlan
|
|
90
|
-
|
|
77
|
+
!canUpdateActionPlan ? (React.createElement(CodeBlock, null,
|
|
78
|
+
React.createElement(CodeBlockCode, null, isEmpty(actionPlan) ? t('No action plan to display.') : actionPlan))) : (React.createElement("form", null,
|
|
91
79
|
React.createElement("div", { className: isExportingPDF ? 'hide-in-pdf' : '' },
|
|
92
80
|
React.createElement(TextAreaResizable, { id: "rha-action-plan", disabled: isUpdating || isInternalWithoutSFDCUser, maxLength: 32768, name: "actionPlan", value: actionPlanState, onChange: onChange, rowsMin: 3 })),
|
|
93
81
|
!isInternalWithoutSFDCUser && (React.createElement("div", { className: `${isExportingPDF ? 'hide-in-pdf' : ''} push-top-narrow` },
|
|
@@ -763,41 +763,6 @@ a.case-resource-recommendation-link {
|
|
|
763
763
|
padding: 0;
|
|
764
764
|
margin-bottom: 1rem;
|
|
765
765
|
}
|
|
766
|
-
.
|
|
767
|
-
|
|
768
|
-
.markdown-content h3,
|
|
769
|
-
.markdown-content h4,
|
|
770
|
-
.markdown-content h5,
|
|
771
|
-
.markdown-content h6 {
|
|
772
|
-
margin-top: 24px;
|
|
773
|
-
margin-bottom: 16px;
|
|
774
|
-
font-weight: 600;
|
|
775
|
-
line-height: 1.25;
|
|
776
|
-
}
|
|
777
|
-
|
|
778
|
-
.markdown-content p {
|
|
779
|
-
margin-bottom: 16px;
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
.markdown-content ul,
|
|
783
|
-
.markdown-content ol {
|
|
784
|
-
margin-bottom: 16px;
|
|
785
|
-
padding-left: 2em;
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
.markdown-content code {
|
|
789
|
-
padding: 0.2em 0.4em;
|
|
790
|
-
margin: 0;
|
|
791
|
-
font-size: 85%;
|
|
792
|
-
background-color: rgba(27, 31, 35, 0.05);
|
|
793
|
-
border-radius: 3px;
|
|
794
|
-
}
|
|
795
|
-
|
|
796
|
-
.markdown-content pre {
|
|
797
|
-
padding: 16px;
|
|
798
|
-
overflow: auto;
|
|
799
|
-
font-size: 85%;
|
|
800
|
-
line-height: 1.45;
|
|
801
|
-
background-color: #f6f8fa;
|
|
802
|
-
border-radius: 3px;
|
|
766
|
+
div.case-details-tabs pre {
|
|
767
|
+
background-color: white;
|
|
803
768
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.167",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@cee-eng/hydrajs": "4.17.24",
|
|
29
29
|
"@cee-eng/ui-toolkit": "1.1.8",
|
|
30
|
-
"@patternfly/patternfly": "5.
|
|
31
|
-
"@patternfly/react-core": "5.
|
|
30
|
+
"@patternfly/patternfly": "5.4.0",
|
|
31
|
+
"@patternfly/react-core": "5.4.0",
|
|
32
32
|
"dompurify": "^2.2.6",
|
|
33
33
|
"downshift": "^6.0.5",
|
|
34
34
|
"i18next": "^19.0.1",
|
|
@@ -53,15 +53,15 @@
|
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@cee-eng/hydrajs": "4.17.24",
|
|
55
55
|
"@cee-eng/ui-toolkit": "1.1.8",
|
|
56
|
-
"@patternfly/patternfly": "5.
|
|
57
|
-
"@patternfly/react-core": "5.
|
|
58
|
-
"@patternfly/react-table": "
|
|
56
|
+
"@patternfly/patternfly": "5.4.0",
|
|
57
|
+
"@patternfly/react-core": "5.4.0",
|
|
58
|
+
"@patternfly/react-table": "5.4.0",
|
|
59
59
|
"@progress/kendo-drawing": "^1.6.0",
|
|
60
60
|
"@progress/kendo-licensing": "1.3.5",
|
|
61
61
|
"@progress/kendo-react-pdf": "^5.16.0",
|
|
62
62
|
"@redux-devtools/extension": "^3.3.0",
|
|
63
|
-
"@rh-support/components": "2.1.
|
|
64
|
-
"@rh-support/react-context": "2.1.
|
|
63
|
+
"@rh-support/components": "2.1.82",
|
|
64
|
+
"@rh-support/react-context": "2.1.91",
|
|
65
65
|
"@rh-support/types": "2.0.4",
|
|
66
66
|
"@rh-support/user-permissions": "2.1.50",
|
|
67
67
|
"@rh-support/utils": "2.1.39",
|
|
@@ -131,5 +131,5 @@
|
|
|
131
131
|
"defaults and supports es6-module",
|
|
132
132
|
"maintained node versions"
|
|
133
133
|
],
|
|
134
|
-
"gitHead": "
|
|
134
|
+
"gitHead": "d867a78014ee4a08aa8d7bf9e0dc9bd08ce6ac5a"
|
|
135
135
|
}
|