@jobber/components-native 0.67.4 → 0.67.5

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.
@@ -51,7 +51,10 @@ export interface FormProps<T extends FieldValues, SubmitResponseType> {
51
51
  */
52
52
  onBeforeSubmit?: (data: FormValues<T>) => Promise<boolean>;
53
53
  /**
54
- * A callback function that handles the submission of form data
54
+ * A callback function that handles the submission of form data.
55
+ * If an error occurs during submission, it should not be caught and handled silently; the error must be thrown again.
56
+ * If the submission is successful and no error is thrown, the `onSubmitSuccess` callback will be called.
57
+ * If an error is thrown, the `onSubmitError` callback will be called.
55
58
  */
56
59
  onSubmit: (data: FormValues<T>) => Promise<SubmitResponseType>;
57
60
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components-native",
3
- "version": "0.67.4",
3
+ "version": "0.67.5",
4
4
  "license": "MIT",
5
5
  "description": "React Native implementation of Atlantis",
6
6
  "repository": {
@@ -84,5 +84,5 @@
84
84
  "react-native-safe-area-context": "^4.5.2",
85
85
  "react-native-svg": ">=12.0.0"
86
86
  },
87
- "gitHead": "e1c7ea3e923799f684c8cccf4e9f6f245cdf2497"
87
+ "gitHead": "b402581a5a67e7ac3c59e8a9610b11b067636493"
88
88
  }
package/src/Form/types.ts CHANGED
@@ -73,7 +73,10 @@ export interface FormProps<T extends FieldValues, SubmitResponseType> {
73
73
  onBeforeSubmit?: (data: FormValues<T>) => Promise<boolean>;
74
74
 
75
75
  /**
76
- * A callback function that handles the submission of form data
76
+ * A callback function that handles the submission of form data.
77
+ * If an error occurs during submission, it should not be caught and handled silently; the error must be thrown again.
78
+ * If the submission is successful and no error is thrown, the `onSubmitSuccess` callback will be called.
79
+ * If an error is thrown, the `onSubmitError` callback will be called.
77
80
  */
78
81
  onSubmit: (data: FormValues<T>) => Promise<SubmitResponseType>;
79
82