@rh-support/components 2.5.21 → 2.5.23

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,qBAwQ1C;kBAxQQ,oBAAoB;;;AA2Q7B,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
1
+ {"version":3,"file":"SupportFeedbackModal.d.ts","sourceRoot":"","sources":["../../../src/SupportFeedbackForm/SupportFeedbackModal.tsx"],"names":[],"mappings":"AAUA,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,qBA0Q1C;kBA1QQ,oBAAoB;;;AA6Q7B,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
@@ -15,7 +15,6 @@ 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';
19
18
  import isEmpty from 'lodash/isEmpty';
20
19
  import React, { useEffect, useState } from 'react';
21
20
  import { Trans, useTranslation } from 'react-i18next';
@@ -84,7 +83,8 @@ function SupportFeedbackModal(props) {
84
83
  delete updatedValues.caseSummaryId;
85
84
  }
86
85
  try {
87
- updatedValues.moreInfo = (_a = updatedValues.moreInfo) === null || _a === void 0 ? void 0 : _a.replace(emojiRegex(), (match) => encodeURIComponent(match));
86
+ const emojiRegex = /(\p{Emoji_Presentation}|\p{Emoji}\uFE0F|\p{Extended_Pictographic})+/gu;
87
+ updatedValues.moreInfo = (_a = updatedValues.moreInfo) === null || _a === void 0 ? void 0 : _a.replace(emojiRegex, (match) => encodeURIComponent(match));
88
88
  // Call the request with the updated values
89
89
  yield request(updatedValues, window.sessionjs, window.location.href, seSessionId);
90
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.21",
3
+ "version": "2.5.23",
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.14",
72
- "@rh-support/utils": "2.5.13",
71
+ "@rh-support/user-permissions": "2.5.15",
72
+ "@rh-support/utils": "2.5.14",
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": "dbb149c331bc0fefa148b6158467e0181e49f0bb"
109
+ "gitHead": "7828199cf1dfc847c3bafb3a3719405d237ac9d3"
110
110
  }