@rh-support/troubleshoot 1.0.32 → 1.0.34
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.
|
@@ -72,6 +72,9 @@ function CaseActionPlan(props) {
|
|
|
72
72
|
// To parse comment from markdown to html for action plan comments
|
|
73
73
|
// DOMPurify - a XSS sanitizer for HTML, MathML and SVG.
|
|
74
74
|
const commentMarkdown = (markdown) => {
|
|
75
|
+
if (isEmpty(markdown)) {
|
|
76
|
+
return { __html: t('No action plan to display.') };
|
|
77
|
+
}
|
|
75
78
|
var cleanMarkdown = DOMPurify.sanitize(markdown);
|
|
76
79
|
const htmlString = parseCommentMarkdown(cleanMarkdown, { showButtonForAttachmentLink: true }, { openLinksInNewTab: true, gfm: true, breaks: true });
|
|
77
80
|
return { __html: htmlString };
|
|
@@ -80,7 +83,7 @@ function CaseActionPlan(props) {
|
|
|
80
83
|
React.createElement(AlertMessage, { show: isInternalWithoutSFDCUser, variant: AlertType.WARNING, isInline: true, className: "pf-u-mb-lg", title: t('You need a Salesforce (SFDC) user to edit the action plan.') }),
|
|
81
84
|
React.createElement("label", { htmlFor: "rha-action-plan", className: "sr-only" },
|
|
82
85
|
React.createElement(Trans, null, "Action plan")),
|
|
83
|
-
!canUpdateActionPlan && (React.createElement("pre", { "aria-label": t('Case Action Plan'), dangerouslySetInnerHTML:
|
|
86
|
+
!canUpdateActionPlan && (React.createElement("pre", { "aria-label": t('Case Action Plan'), dangerouslySetInnerHTML: commentMarkdown(actionPlan) })),
|
|
84
87
|
canUpdateActionPlan && (React.createElement("form", null,
|
|
85
88
|
React.createElement("div", { className: "hide-in-pdf" },
|
|
86
89
|
React.createElement(TextAreaResizable, { className: "form-control", id: "rha-action-plan", disabled: isUpdating || isInternalWithoutSFDCUser, maxLength: 32768, name: "actionPlan", value: actionPlanState, onChange: onChange, rowsMin: 3 })),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.34",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"@progress/kendo-drawing": "^1.6.0",
|
|
75
75
|
"@progress/kendo-react-pdf": "^3.12.0",
|
|
76
76
|
"@rh-support/components": "1.2.14",
|
|
77
|
-
"@rh-support/react-context": "1.0.
|
|
77
|
+
"@rh-support/react-context": "1.0.20",
|
|
78
78
|
"@rh-support/types": "0.2.0",
|
|
79
79
|
"@rh-support/user-permissions": "1.0.11",
|
|
80
80
|
"@rh-support/utils": "1.0.9",
|
|
@@ -142,5 +142,5 @@
|
|
|
142
142
|
"not ie <= 11",
|
|
143
143
|
"not op_mini all"
|
|
144
144
|
],
|
|
145
|
-
"gitHead": "
|
|
145
|
+
"gitHead": "0fd7c3e88b2360bbb751379ac0fae4d67b832591"
|
|
146
146
|
}
|