@availity/change-password 2.2.0 → 2.3.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 +1 -1
- package/src/ChangePasswordForm.js +3 -1
- package/types/ChangePasswordForm.d.ts +1 -0
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
|
+
## [2.3.1](https://github.com/Availity/availity-react/compare/@availity/change-password@2.3.0...@availity/change-password@2.3.1) (2024-12-19)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **change-password:** retrieve initialValues from props over context ([b89e59f](https://github.com/Availity/availity-react/commit/b89e59f1296251be683d4086dcf5325d080b6ba5))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [2.3.0](https://github.com/Availity/availity-react/compare/@availity/change-password@2.2.0...@availity/change-password@2.3.0) (2024-12-02)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **change-password:** add initialFields prop ([ac01d42](https://github.com/Availity/availity-react/commit/ac01d42f3d589d0b2f3c5be4f8e51fe35ec36b3a))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
5
23
|
# [2.2.0](https://github.com/Availity/availity-react/compare/@availity/change-password@2.1.6...@availity/change-password@2.2.0) (2024-11-27)
|
|
6
24
|
|
|
7
25
|
|
package/package.json
CHANGED
|
@@ -15,6 +15,7 @@ const ChangePasswordForm = ({
|
|
|
15
15
|
onError,
|
|
16
16
|
additionalButtons,
|
|
17
17
|
additionalFields,
|
|
18
|
+
initialValues,
|
|
18
19
|
header,
|
|
19
20
|
maxLength = 30,
|
|
20
21
|
currentPasswordProps,
|
|
@@ -74,7 +75,7 @@ const ChangePasswordForm = ({
|
|
|
74
75
|
return (
|
|
75
76
|
<BlockUI blocking={loading}>
|
|
76
77
|
<Form
|
|
77
|
-
initialValues={{ currentPassword: '', newPassword: '', confirmNewPassword: '' }}
|
|
78
|
+
initialValues={{ currentPassword: '', newPassword: '', confirmNewPassword: '', ...initialValues }}
|
|
78
79
|
validationSchema={schema}
|
|
79
80
|
onSubmit={handleSubmit}
|
|
80
81
|
>
|
|
@@ -223,6 +224,7 @@ ChangePasswordForm.propTypes = {
|
|
|
223
224
|
showCurrentPassword: PropTypes.bool,
|
|
224
225
|
newPasswordProps: PropTypes.object,
|
|
225
226
|
confirmNewPasswordProps: PropTypes.object,
|
|
227
|
+
initialValues: PropTypes.object,
|
|
226
228
|
};
|
|
227
229
|
|
|
228
230
|
export default ChangePasswordForm;
|