@availity/feedback 9.0.4 → 9.1.0

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 CHANGED
@@ -2,6 +2,28 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ # [9.1.0](https://github.com/Availity/availity-react/compare/@availity/feedback@9.0.5...@availity/feedback@9.1.0) (2024-10-23)
6
+
7
+
8
+ ### Features
9
+
10
+ * ON-10523 added unit test for feedbackText Prop ([938fd5a](https://github.com/Availity/availity-react/commit/938fd5af5a92b4228e4547c4dd74a1a1421af0b1))
11
+ * ON-10523 feedback text area optional in feedback form component ([95d9182](https://github.com/Availity/availity-react/commit/95d9182ff6bea73a8c27ef7764b78862fcc76177))
12
+ * ON-10523 modified unit test for feedbackText Prop ([eed0e83](https://github.com/Availity/availity-react/commit/eed0e830dfdfc95165a493b719a1f0204e978e19))
13
+
14
+
15
+
16
+ ## [9.0.5](https://github.com/Availity/availity-react/compare/@availity/feedback@9.0.4...@availity/feedback@9.0.5) (2024-10-16)
17
+
18
+ ### Dependency Updates
19
+
20
+ * `@availity/block-ui` updated to version `9.0.4`
21
+ * `@availity/form` updated to version `9.0.4`
22
+ * `@availity/hooks` updated to version `9.0.4`
23
+ * `@availity/icon` updated to version `9.0.4`
24
+ * `@availity/select` updated to version `9.0.4`
25
+
26
+
5
27
  ## [9.0.4](https://github.com/Availity/availity-react/compare/@availity/feedback@9.0.3...@availity/feedback@9.0.4) (2024-10-02)
6
28
 
7
29
  ### Dependency Updates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@availity/feedback",
3
- "version": "9.0.4",
3
+ "version": "9.1.0",
4
4
  "description": "Availity feedback with smiley faces react component.",
5
5
  "keywords": [
6
6
  "react",
@@ -25,17 +25,17 @@
25
25
  "publish:canary": "yarn npm publish --access public --tag canary"
26
26
  },
27
27
  "dependencies": {
28
- "@availity/block-ui": "^1.1.4",
29
- "@availity/form": "1.9.3",
30
- "@availity/hooks": "5.1.1",
31
- "@availity/icon": "0.11.8",
32
- "@availity/native-form": "^6.0.0",
33
- "@availity/select": "4.2.2",
28
+ "@availity/block-ui": "^1.1.5",
29
+ "@availity/form": "1.9.4",
30
+ "@availity/hooks": "5.1.2",
31
+ "@availity/icon": "0.11.9",
32
+ "@availity/native-form": "^6.0.3",
33
+ "@availity/select": "4.2.3",
34
34
  "prop-types": "^15.8.1"
35
35
  },
36
36
  "devDependencies": {
37
- "@availity/api-axios": "^9.0.0",
38
- "@availity/yup": "^6.0.0",
37
+ "@availity/api-axios": "^9.0.3",
38
+ "@availity/yup": "^6.0.1",
39
39
  "axios": "^1.7.4",
40
40
  "formik": "^2.4.6",
41
41
  "react": "^18.3.1",
@@ -43,12 +43,12 @@
43
43
  "reactstrap": "^8.10.1"
44
44
  },
45
45
  "peerDependencies": {
46
- "@availity/api-axios": "^8.0.0",
47
- "@availity/yup": "^5.1.0",
46
+ "@availity/api-axios": "^9.0.3",
47
+ "@availity/yup": "^6.0.1",
48
48
  "axios": "^1.7.4",
49
- "formik": "^2.0.1",
50
- "react": ">=16.3.0",
51
- "reactstrap": "^8.0.0"
49
+ "formik": "^2.4.6",
50
+ "react": "^18.0.0",
51
+ "reactstrap": "^8.10.1"
52
52
  },
53
53
  "publishConfig": {
54
54
  "access": "public"
@@ -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.string().max(200, 'Feedback cannot exceed 200 characters.').required('This field is required.'),
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,