@availity/feedback 10.0.5 → 10.0.6
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/CHANGELOG.md +8 -0
- package/dist/index.js +4 -4
- package/package.json +3 -3
- package/src/FeedbackButton.jsx +1 -1
- package/src/FeedbackForm.jsx +1 -0
- package/src/SmileField.jsx +2 -2
- package/src/SupportForm.jsx +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [10.0.6](https://github.com/Availity/availity-react/compare/@availity/feedback@10.0.5...@availity/feedback@10.0.6) (2026-09-16)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `@availity/form` updated to version `10.0.5`
|
|
10
|
+
* `@availity/select` updated to version `10.0.5`
|
|
11
|
+
|
|
12
|
+
|
|
5
13
|
## [10.0.5](https://github.com/Availity/availity-react/compare/@availity/feedback@10.0.4...@availity/feedback@10.0.5) (2026-09-15)
|
|
6
14
|
|
|
7
15
|
### Dependency Updates
|
package/dist/index.js
CHANGED
|
@@ -5019,7 +5019,7 @@ var FeedbackButton = ({ onClick, icon, active, children, iconSize = "", ...rest
|
|
|
5019
5019
|
onClick: () => {
|
|
5020
5020
|
onClick(icon);
|
|
5021
5021
|
},
|
|
5022
|
-
onKeyDown: ({
|
|
5022
|
+
onKeyDown: ({ key }) => key === "Enter" && onClick(icon),
|
|
5023
5023
|
...rest,
|
|
5024
5024
|
children: [
|
|
5025
5025
|
/* @__PURE__ */ jsx(Icon, { "data-testid": "feedback-icon", name: icon, size: iconSize, style: iconStyles }),
|
|
@@ -5064,10 +5064,10 @@ var SmileField = ({ name, options = defaultOptions, onChange, autoFocusFeedbackB
|
|
|
5064
5064
|
{
|
|
5065
5065
|
autoFocus: i === 0 && autoFocusFeedbackButton,
|
|
5066
5066
|
onKeyDown: (e) => {
|
|
5067
|
-
if (e.shiftKey && e.
|
|
5067
|
+
if (e.shiftKey && e.key === "Tab" && i === 0 && !modal) {
|
|
5068
5068
|
onClose();
|
|
5069
5069
|
}
|
|
5070
|
-
if (e.
|
|
5070
|
+
if (e.key === "Enter") {
|
|
5071
5071
|
setFieldValue(name, option);
|
|
5072
5072
|
if (onChange) {
|
|
5073
5073
|
onChange(option);
|
|
@@ -5520,7 +5520,7 @@ var SupportForm = ({ setSupportIsActive, setBlocking, feedbackToggle }) => /* @_
|
|
|
5520
5520
|
onClick: () => setSupportIsActive(false),
|
|
5521
5521
|
color: "secondary",
|
|
5522
5522
|
type: "button",
|
|
5523
|
-
onKeyDown: ({
|
|
5523
|
+
onKeyDown: ({ key }) => key === "Enter" && setSupportIsActive(false),
|
|
5524
5524
|
children: "Close"
|
|
5525
5525
|
}
|
|
5526
5526
|
),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@availity/feedback",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.6",
|
|
4
4
|
"description": "Availity feedback with smiley faces react component.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@availity/block-ui": "^2.0.1",
|
|
31
|
-
"@availity/form": "2.0.
|
|
31
|
+
"@availity/form": "2.0.6",
|
|
32
32
|
"@availity/hooks": "7.0.1",
|
|
33
33
|
"@availity/icon": "1.0.1",
|
|
34
34
|
"@availity/native-form": "^8.2.1",
|
|
35
|
-
"@availity/select": "5.0.
|
|
35
|
+
"@availity/select": "5.0.6",
|
|
36
36
|
"prop-types": "^15.8.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
package/src/FeedbackButton.jsx
CHANGED
|
@@ -14,7 +14,7 @@ const FeedbackButton = ({ onClick, icon, active, children, iconSize = '', ...res
|
|
|
14
14
|
onClick={() => {
|
|
15
15
|
onClick(icon);
|
|
16
16
|
}}
|
|
17
|
-
onKeyDown={({
|
|
17
|
+
onKeyDown={({ key }) => key === 'Enter' && onClick(icon)}
|
|
18
18
|
{...rest}
|
|
19
19
|
>
|
|
20
20
|
<Icon data-testid="feedback-icon" name={icon} size={iconSize} style={iconStyles} />
|
package/src/FeedbackForm.jsx
CHANGED
|
@@ -9,6 +9,7 @@ import * as yup from 'yup';
|
|
|
9
9
|
import SmileField from './SmileField.jsx';
|
|
10
10
|
|
|
11
11
|
yup.addMethod(yup.string, 'isRequired', function format(isRequired, msg) {
|
|
12
|
+
// eslint-disable-next-line unicorn/no-this-outside-of-class
|
|
12
13
|
return this.test({
|
|
13
14
|
name: 'dateRange',
|
|
14
15
|
exclusive: true,
|
package/src/SmileField.jsx
CHANGED
|
@@ -31,10 +31,10 @@ const SmileField = ({ name, options = defaultOptions, onChange, autoFocusFeedbac
|
|
|
31
31
|
<FeedbackButton
|
|
32
32
|
autoFocus={i === 0 && autoFocusFeedbackButton}
|
|
33
33
|
onKeyDown={(e) => {
|
|
34
|
-
if (e.shiftKey && e.
|
|
34
|
+
if (e.shiftKey && e.key === 'Tab' && i === 0 && !modal) {
|
|
35
35
|
onClose();
|
|
36
36
|
}
|
|
37
|
-
if (e.
|
|
37
|
+
if (e.key === 'Enter') {
|
|
38
38
|
setFieldValue(name, option);
|
|
39
39
|
if (onChange) {
|
|
40
40
|
onChange(option);
|
package/src/SupportForm.jsx
CHANGED
|
@@ -78,6 +78,7 @@ function orgSelectTest(msg) {
|
|
|
78
78
|
name: yup.string().isRequired(true, ORG_VALIDATION_MESSAGE),
|
|
79
79
|
});
|
|
80
80
|
|
|
81
|
+
// eslint-disable-next-line unicorn/no-this-outside-of-class
|
|
81
82
|
return this.test({
|
|
82
83
|
name: 'orgSelectTest',
|
|
83
84
|
exclusive: true,
|
|
@@ -128,7 +129,7 @@ const SupportForm = ({ setSupportIsActive, setBlocking, feedbackToggle }) => (
|
|
|
128
129
|
onClick={() => setSupportIsActive(false)}
|
|
129
130
|
color="secondary"
|
|
130
131
|
type="button"
|
|
131
|
-
onKeyDown={({
|
|
132
|
+
onKeyDown={({ key }) => key === 'Enter' && setSupportIsActive(false)}
|
|
132
133
|
>
|
|
133
134
|
Close
|
|
134
135
|
</Button>
|