@rh-support/components 2.5.19 → 2.5.20
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":"SupportFeedbackModal.d.ts","sourceRoot":"","sources":["../../../src/SupportFeedbackForm/SupportFeedbackModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SupportFeedbackModal.d.ts","sourceRoot":"","sources":["../../../src/SupportFeedbackForm/SupportFeedbackModal.tsx"],"names":[],"mappings":"AAWA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAanD,UAAU,MAAM;IACZ,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,OAAO,CAAC;CAC1B;AAMD,iBAAS,oBAAoB,CAAC,KAAK,EAAE,MAAM,qBAwQ1C;kBAxQQ,oBAAoB;;;AA2Q7B,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -15,6 +15,7 @@ import OutlinedGrinIcon from '@patternfly/react-icons/dist/js/icons/outlined-gri
|
|
|
15
15
|
import OutlinedMehIcon from '@patternfly/react-icons/dist/js/icons/outlined-meh-icon';
|
|
16
16
|
import OutlinedSmileIcon from '@patternfly/react-icons/dist/js/icons/outlined-smile-icon';
|
|
17
17
|
import { getUrlParsedParams } from '@rh-support/utils';
|
|
18
|
+
import emojiRegex from 'emoji-regex';
|
|
18
19
|
import isEmpty from 'lodash/isEmpty';
|
|
19
20
|
import React, { useEffect, useState } from 'react';
|
|
20
21
|
import { Trans, useTranslation } from 'react-i18next';
|
|
@@ -69,6 +70,7 @@ function SupportFeedbackModal(props) {
|
|
|
69
70
|
};
|
|
70
71
|
// To handle submit
|
|
71
72
|
const handleSubmit = (event) => __awaiter(this, void 0, void 0, function* () {
|
|
73
|
+
var _a;
|
|
72
74
|
event.preventDefault();
|
|
73
75
|
if (!isSubmitButtonValid) {
|
|
74
76
|
let updatedValues = Object.assign({}, values);
|
|
@@ -82,6 +84,7 @@ function SupportFeedbackModal(props) {
|
|
|
82
84
|
delete updatedValues.caseSummaryId;
|
|
83
85
|
}
|
|
84
86
|
try {
|
|
87
|
+
updatedValues.moreInfo = (_a = updatedValues.moreInfo) === null || _a === void 0 ? void 0 : _a.replace(emojiRegex(), (match) => encodeURIComponent(match));
|
|
85
88
|
// Call the request with the updated values
|
|
86
89
|
yield request(updatedValues, window.sessionjs, window.location.href, seSessionId);
|
|
87
90
|
setValues(formInitState); // Reset form state after successful submission
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/components",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.20",
|
|
4
4
|
"description": "Contains all reusabel components for support app",
|
|
5
5
|
"author": "Vikas Rathee <vrathee@redhat.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"@patternfly/react-table": "5.4.2",
|
|
69
69
|
"@patternfly/react-tokens": "^5.4.0",
|
|
70
70
|
"@rh-support/types": "2.0.5",
|
|
71
|
-
"@rh-support/user-permissions": "2.5.
|
|
72
|
-
"@rh-support/utils": "2.5.
|
|
71
|
+
"@rh-support/user-permissions": "2.5.13",
|
|
72
|
+
"@rh-support/utils": "2.5.12",
|
|
73
73
|
"dompurify": "^2.2.6",
|
|
74
74
|
"js-worker-search": "^1.4.1",
|
|
75
75
|
"lazysizes": "^5.3.2",
|
|
@@ -106,5 +106,5 @@
|
|
|
106
106
|
"defaults and supports es6-module",
|
|
107
107
|
"maintained node versions"
|
|
108
108
|
],
|
|
109
|
-
"gitHead": "
|
|
109
|
+
"gitHead": "1b833d4c1dfeea406f617d1b448972d280954a28"
|
|
110
110
|
}
|