@rh-support/components 2.5.222 → 2.5.223
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":"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,
|
|
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,qBAwS1C;kBAxSQ,oBAAoB;;;AA2S7B,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -42,7 +42,7 @@ function SupportFeedbackModal(props) {
|
|
|
42
42
|
const { request: requestAISummary, isFetching: isFetchingAISummary } = useFetch(pcm.AISummaryFeedback, {
|
|
43
43
|
propgateErrors: true,
|
|
44
44
|
});
|
|
45
|
-
const { request:
|
|
45
|
+
const { request: requestPcmFeedback, isFetching: isFetchingFeedback } = useFetch(pcm.submitPcmFeedback, {
|
|
46
46
|
propgateErrors: true,
|
|
47
47
|
});
|
|
48
48
|
const isFetching = isFetchingAISummary || isFetchingFeedback;
|
|
@@ -99,8 +99,22 @@ function SupportFeedbackModal(props) {
|
|
|
99
99
|
delete updatedValues.caseSummaryId;
|
|
100
100
|
const emojiRegex = /(\p{Emoji_Presentation}|\p{Emoji}\uFE0F|\p{Extended_Pictographic})+/gu;
|
|
101
101
|
updatedValues.moreInfo = (_a = updatedValues.moreInfo) === null || _a === void 0 ? void 0 : _a.replace(emojiRegex, (match) => encodeURIComponent(match));
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
const session = globalThis.sessionjs;
|
|
103
|
+
const userInfo = session.getUserInfo();
|
|
104
|
+
const payload = {
|
|
105
|
+
userName: `${userInfo.firstName} ${userInfo.lastName}`,
|
|
106
|
+
ssoUserName: userInfo.username,
|
|
107
|
+
accountNumber: userInfo.account_number || '',
|
|
108
|
+
userType: session.isInternal() ? 'internal' : 'external',
|
|
109
|
+
foundSolution: '',
|
|
110
|
+
satisfactionLevel: updatedValues.levelOfSatisfied || '',
|
|
111
|
+
savedTime: '',
|
|
112
|
+
feedback: updatedValues.moreInfo || '',
|
|
113
|
+
currentUrl: globalThis.location.href,
|
|
114
|
+
email: userInfo.email || '',
|
|
115
|
+
sessionId: seSessionId || '',
|
|
116
|
+
};
|
|
117
|
+
yield requestPcmFeedback(payload);
|
|
104
118
|
}
|
|
105
119
|
setValues(formInitState); // Reset form state after successful submission
|
|
106
120
|
ToastNotification.addSuccessMessage(t(`Thank you. We've received your feedback.`), t('Have a great day!'));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/components",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.223",
|
|
4
4
|
"description": "Contains all reusabel components for support app",
|
|
5
5
|
"author": "Vikas Rathee <vrathee@redhat.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -40,7 +40,6 @@
|
|
|
40
40
|
"prepublishOnly": "npm run build"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@cee-eng/hydrajs": "4.18.111",
|
|
44
43
|
"@cee-eng/ui-toolkit": "1.1.9",
|
|
45
44
|
"@patternfly/patternfly": "6.2.1",
|
|
46
45
|
"@patternfly/react-core": "6.2.1",
|
|
@@ -55,7 +54,7 @@
|
|
|
55
54
|
"use-deep-compare-effect": "^1.6.1"
|
|
56
55
|
},
|
|
57
56
|
"dependencies": {
|
|
58
|
-
"@cee-eng/hydrajs": "4.18.
|
|
57
|
+
"@cee-eng/hydrajs": "^4.18.115",
|
|
59
58
|
"@cee-eng/ui-toolkit": "1.1.9",
|
|
60
59
|
"@patternfly/patternfly": "6.2.1",
|
|
61
60
|
"@patternfly/react-core": "6.2.1",
|
|
@@ -101,5 +100,5 @@
|
|
|
101
100
|
"defaults and supports es6-module",
|
|
102
101
|
"maintained node versions"
|
|
103
102
|
],
|
|
104
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "91484dc6ea9833f72f85919ee4da022cba93d3c8"
|
|
105
104
|
}
|