@availity/change-password 2.2.0 → 2.3.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,15 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ # [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)
6
+
7
+
8
+ ### Features
9
+
10
+ * **change-password:** add initialFields prop ([ac01d42](https://github.com/Availity/availity-react/commit/ac01d42f3d589d0b2f3c5be4f8e51fe35ec36b3a))
11
+
12
+
13
+
5
14
  # [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
15
 
7
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@availity/change-password",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "Easy to use change-password components",
5
5
  "keywords": [
6
6
  "react",
@@ -31,6 +31,7 @@ const ChangePasswordForm = ({
31
31
  setSuccess,
32
32
  resource,
33
33
  schema,
34
+ initialValues,
34
35
  currentPasswordIconRef,
35
36
  newPasswordIconRef,
36
37
  confirmNewPasswordIconRef,
@@ -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;
@@ -4,6 +4,7 @@ export interface ChangePasswordFormProps {
4
4
  additionalButtons?: React.ReactNode;
5
5
  additionalFields?: React.ReactNode;
6
6
  header?: React.ReactNode;
7
+ initialFields?: any;
7
8
  maxLength?: number;
8
9
  currentPasswordProps?: any;
9
10
  showCurrentPassword?: boolean;