@availity/feedback 7.1.2 → 7.1.3

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,10 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [7.1.3](https://github.com/Availity/availity-react/compare/@availity/feedback@7.1.2...@availity/feedback@7.1.3) (2022-12-01)
6
+
7
+
8
+
5
9
  ## [7.1.2](https://github.com/Availity/availity-react/compare/@availity/feedback@7.1.1...@availity/feedback@7.1.2) (2022-08-08)
6
10
 
7
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@availity/feedback",
3
- "version": "7.1.2",
3
+ "version": "7.1.3",
4
4
  "description": "Availity feedback with smiley faces react component.",
5
5
  "keywords": [
6
6
  "react",
@@ -25,7 +25,7 @@
25
25
  "publish:canary": "yarn npm publish --access public --tag canary"
26
26
  },
27
27
  "dependencies": {
28
- "@availity/form": "1.5.1",
28
+ "@availity/form": "1.7.1",
29
29
  "@availity/hooks": "3.3.1",
30
30
  "@availity/icon": "0.11.1",
31
31
  "@availity/native-form": "^5.0.1",
package/src/Feedback.js CHANGED
@@ -73,21 +73,32 @@ const Feedback = ({
73
73
  };
74
74
 
75
75
  Feedback.propTypes = {
76
+ analytics: PropTypes.shape({
77
+ info: PropTypes.func.isRequired,
78
+ }),
79
+ /** The name of the application this feedback is for. It is used in the API request to indicate where the feedback came from. */
76
80
  appName: PropTypes.string,
81
+ /** Whether to open the FeedbackForm in a modal */
77
82
  modal: PropTypes.bool,
83
+ /** Allows for overriding the z-indexvalue from react-strap Modalcomponent. */
78
84
  zIndex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
85
+ /** Allows for overriding the z-index value from reactstrap Support Modal component. */
79
86
  supportZIndex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
87
+ /** The text to display on the submit button. */
80
88
  children: PropTypes.node,
81
89
  className: PropTypes.string,
90
+ /** Indicates if the button should use the "outline" styles or not. */
82
91
  outline: PropTypes.bool,
92
+ /** The color of the button. Default: "light". */
83
93
  color: PropTypes.string,
94
+ /** Props to be spread to the underlying FeedbackForm. See the FeedbackForm Props. */
84
95
  formProps: PropTypes.object,
96
+ /** Text that prompts the user to provider feedback. Default: "Tell us what you think about ${appName}.". */
85
97
  prompt: PropTypes.string,
98
+ /** Callback for when the feedback is submitted. It is called with the feedback object. */
86
99
  onFeedbackSent: PropTypes.func,
87
100
  onModalOpenChange: PropTypes.func,
88
- analytics: PropTypes.shape({
89
- info: PropTypes.func.isRequired,
90
- }),
101
+ /** Toggle whether or not to show the "Open a Support ticket" link in the FeedbackForm */
91
102
  showSupport: PropTypes.bool,
92
103
  };
93
104
 
@@ -249,8 +249,14 @@ const FeedbackForm = ({
249
249
  };
250
250
 
251
251
  FeedbackForm.propTypes = {
252
+ /** The name of the application this feedback is for. It is used in the API request to indicate where the feedback came from. */
252
253
  name: PropTypes.string.isRequired,
254
+ /** Callback for when the feedback is submitted. It is called with the feedback object. */
253
255
  onFeedbackSent: PropTypes.func,
256
+ /** Array of Objects containing icon (String), description (String), and label (String) properties.
257
+ * Allows you to override the smiley face options which appear.
258
+ * Default: Smiley Face, Meh Face, and Frowny Face.
259
+ * Previous placeholder property removed as of v6.0.0. Use label instead. */
254
260
  faceOptions: PropTypes.arrayOf(
255
261
  PropTypes.shape({
256
262
  icon: PropTypes.string,
@@ -258,23 +264,37 @@ FeedbackForm.propTypes = {
258
264
  label: PropTypes.string,
259
265
  })
260
266
  ),
267
+ /** Array of Objects containing value (String,Number) and label (String) properties.
268
+ * Allows a dropdown displaying the options provided to let the user indicate what the feedback is about. */
261
269
  aboutOptions: PropTypes.arrayOf(
262
270
  PropTypes.shape({
263
271
  name: PropTypes.string,
264
272
  value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
265
273
  })
266
274
  ),
275
+ /** Label text for the dropdown created via the aboutOptions prop. Default: "This is about".
276
+ *Previously aboutPlaceholder. All placeholders replaced with labels starting v6.0.0. */
267
277
  aboutLabel: PropTypes.node,
278
+ /** When provided, a "Close" button is rendered and onClose is excuted when it's clicked. */
268
279
  onClose: PropTypes.func,
280
+ /** Text that prompts the user to provider feedback. Default: "Tell us what you think about ${appName}.". */
269
281
  prompt: PropTypes.string,
282
+ /** If true, shows an optional comments field below. */
270
283
  additionalComments: PropTypes.bool,
284
+ /** Static (non-user-entered) key/value pairs to be sent in feedback submission. */
271
285
  staticFields: PropTypes.object,
286
+ /** Props to be spread onto the <ModalHeader /> rendered inside of the <FeedbackForm />. See ModalHeader
287
+ *For accessibility use className instead of tag to adjust size and style of header. */
272
288
  modalHeaderProps: PropTypes.shape({ ...ModalHeader.propTypes }),
289
+ /** Override the analytics instance that is passed in. Default avLogMessagesApi */
273
290
  analytics: PropTypes.shape({
274
291
  info: PropTypes.func.isRequired,
275
292
  }),
293
+ /** Toggle whether or not to show the "Open a Support ticket" link in the FeedbackForm */
276
294
  showSupport: PropTypes.bool,
277
295
  setSupportIsActive: PropTypes.func,
296
+ /** Default: true. When set to false, the first feedback button is not focused.
297
+ * This is to avoid issues with focus causing other elements to close (e.g. dropdowns) */
278
298
  autoFocusFeedbackButton: PropTypes.bool,
279
299
  modal: PropTypes.bool,
280
300
  };