@availity/feedback 9.0.5 → 9.1.1
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 +18 -0
- package/package.json +2 -2
- package/src/FeedbackForm.js +7 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [9.1.1](https://github.com/Availity/availity-react/compare/@availity/feedback@9.1.0...@availity/feedback@9.1.1) (2024-11-12)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `@availity/form` updated to version `9.1.0`
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
# [9.1.0](https://github.com/Availity/availity-react/compare/@availity/feedback@9.0.5...@availity/feedback@9.1.0) (2024-10-23)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* ON-10523 added unit test for feedbackText Prop ([938fd5a](https://github.com/Availity/availity-react/commit/938fd5af5a92b4228e4547c4dd74a1a1421af0b1))
|
|
18
|
+
* ON-10523 feedback text area optional in feedback form component ([95d9182](https://github.com/Availity/availity-react/commit/95d9182ff6bea73a8c27ef7764b78862fcc76177))
|
|
19
|
+
* ON-10523 modified unit test for feedbackText Prop ([eed0e83](https://github.com/Availity/availity-react/commit/eed0e830dfdfc95165a493b719a1f0204e978e19))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
5
23
|
## [9.0.5](https://github.com/Availity/availity-react/compare/@availity/feedback@9.0.4...@availity/feedback@9.0.5) (2024-10-16)
|
|
6
24
|
|
|
7
25
|
### Dependency Updates
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@availity/feedback",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.1.1",
|
|
4
4
|
"description": "Availity feedback with smiley faces react component.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@availity/block-ui": "^1.1.5",
|
|
29
|
-
"@availity/form": "1.
|
|
29
|
+
"@availity/form": "1.10.0",
|
|
30
30
|
"@availity/hooks": "5.1.2",
|
|
31
31
|
"@availity/icon": "0.11.9",
|
|
32
32
|
"@availity/native-form": "^6.0.3",
|
package/src/FeedbackForm.js
CHANGED
|
@@ -30,6 +30,7 @@ const FeedbackForm = ({
|
|
|
30
30
|
onClose,
|
|
31
31
|
faceOptions,
|
|
32
32
|
aboutOptions = [],
|
|
33
|
+
feedbackText = true,
|
|
33
34
|
aboutLabel = 'This is about',
|
|
34
35
|
onFeedbackSent,
|
|
35
36
|
prompt,
|
|
@@ -129,7 +130,10 @@ const FeedbackForm = ({
|
|
|
129
130
|
smileField: undefined,
|
|
130
131
|
}}
|
|
131
132
|
validationSchema={yup.object().shape({
|
|
132
|
-
feedback: yup
|
|
133
|
+
feedback: yup
|
|
134
|
+
.string()
|
|
135
|
+
.max(200, 'Feedback cannot exceed 200 characters.')
|
|
136
|
+
.isRequired(feedbackText, 'This field is required.'),
|
|
133
137
|
additionalFeedback: yup.string().max(200, 'Additional Feedback cannot exceed 200 characters.'),
|
|
134
138
|
smileField: yup
|
|
135
139
|
.object()
|
|
@@ -276,6 +280,8 @@ FeedbackForm.propTypes = {
|
|
|
276
280
|
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
277
281
|
})
|
|
278
282
|
),
|
|
283
|
+
/** If false, then feedback text area is made optional */
|
|
284
|
+
feedbackText: PropTypes.bool,
|
|
279
285
|
/** Label text for the dropdown created via the aboutOptions prop. Default: "This is about".
|
|
280
286
|
*Previously aboutPlaceholder. All placeholders replaced with labels starting v6.0.0. */
|
|
281
287
|
aboutLabel: PropTypes.node,
|