@availity/change-password 3.0.7 → 4.0.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 +17 -0
- package/README.md +6 -0
- package/dist/index.d.ts +61 -0
- package/dist/index.js +2529 -0
- package/index.js +2 -2
- package/package.json +25 -12
- package/project.json +14 -3
- package/src/{ChangePasswordFeedback.js → ChangePasswordFeedback.jsx} +1 -1
- package/src/{ChangePasswordForm.js → ChangePasswordForm.jsx} +2 -2
- package/stories/change-password.stories.tsx +2 -2
- package/tests/{ChangePasswordFeedback.test.js → ChangePasswordFeedback.test.jsx} +4 -4
- package/tests/{ChangePasswordForm.test.js → ChangePasswordForm.test.jsx} +9 -9
- package/tsup.config.js +8 -0
- package/types/ChangePassword.d.ts +1 -1
- package/vitest.config.ts +17 -0
- package/jest.config.js +0 -8
- package/tsconfig.spec.json +0 -10
- /package/src/{ChangePassword.js → ChangePassword.jsx} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
# [4.0.0](https://github.com/Availity/availity-react/compare/@availity/change-password@3.0.7...@availity/change-password@4.0.0) (2026-06-12)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `@availity/block-ui` updated to version `3.0.7`
|
|
10
|
+
* `@availity/form` updated to version `3.0.7`
|
|
11
|
+
* `@availity/icon` updated to version `3.0.7`
|
|
12
|
+
|
|
13
|
+
* feat(change-password)!: migrate to ESM exports, vitest, and @tanstack/react-query v5 ([1ac513b](https://github.com/Availity/availity-react/commit/1ac513bb190ac980cffa46b5c0203b89045c8006))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### BREAKING CHANGES
|
|
17
|
+
|
|
18
|
+
* Package now uses ESM exports field and requires @tanstack/react-query ^5.
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
5
22
|
## [3.0.7](https://github.com/Availity/availity-react/compare/@availity/change-password@3.0.6...@availity/change-password@3.0.7) (2026-03-13)
|
|
6
23
|
|
|
7
24
|
|
package/README.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @availity/change-password
|
|
2
2
|
|
|
3
|
+
## ⚠️ Deprecated
|
|
4
|
+
|
|
5
|
+
This package is deprecated and no longer actively maintained. Future updates are not guaranteed. We recommend migrating to [`@availity/element`](https://availity.github.io/element).
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
3
9
|
> Easy to use change password component
|
|
4
10
|
|
|
5
11
|
[](https://www.npmjs.com/package/@availity/change-password)
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
interface Condition {
|
|
2
|
+
message: string;
|
|
3
|
+
passes: (passwords: {
|
|
4
|
+
currentPassword: string;
|
|
5
|
+
newPassword: string;
|
|
6
|
+
confirmNewPassword: string;
|
|
7
|
+
currentPasswordTouched: boolean;
|
|
8
|
+
newPasswordTouched: boolean;
|
|
9
|
+
confirmNewPasswordTouched: boolean;
|
|
10
|
+
}) => boolean;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
interface ChangePasswordProps {
|
|
14
|
+
resource: any;
|
|
15
|
+
schema?: object;
|
|
16
|
+
conditions?: Condition[];
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
interface ChangePasswordContext {
|
|
21
|
+
loading: boolean;
|
|
22
|
+
setLoading: () => boolean;
|
|
23
|
+
error: () => boolean;
|
|
24
|
+
setError: () => boolean;
|
|
25
|
+
success: () => boolean;
|
|
26
|
+
setSuccess: () => boolean;
|
|
27
|
+
resource: any;
|
|
28
|
+
schema: object;
|
|
29
|
+
conditions: Condition[];
|
|
30
|
+
currentPasswordIconRef: React.Ref;
|
|
31
|
+
newPasswordIconRef: React.Ref;
|
|
32
|
+
confirmNewPasswordIconRef: React.Ref;
|
|
33
|
+
currentPasswordVisible: boolean;
|
|
34
|
+
setCurrentPasswordVisible: () => boolean;
|
|
35
|
+
newPasswordVisible: boolean;
|
|
36
|
+
setNewPasswordVisible: () => boolean;
|
|
37
|
+
confirmNewPasswordVisible: boolean;
|
|
38
|
+
setConfirmNewPasswordVisible: () => boolean;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
declare function useChangePasswordContext(): ChangePasswordContext;
|
|
42
|
+
|
|
43
|
+
declare const ChangePassword: React.FC<ChangePasswordProps>;
|
|
44
|
+
|
|
45
|
+
interface ChangePasswordFormProps {
|
|
46
|
+
onHandleSubmit?: (arg: { result: any }) => void;
|
|
47
|
+
onError?: (arg: { error: Error }) => void;
|
|
48
|
+
additionalButtons?: React.ReactNode;
|
|
49
|
+
additionalFields?: React.ReactNode;
|
|
50
|
+
header?: React.ReactNode;
|
|
51
|
+
initialFields?: any;
|
|
52
|
+
maxLength?: number;
|
|
53
|
+
currentPasswordProps?: any;
|
|
54
|
+
showCurrentPassword?: boolean;
|
|
55
|
+
newPasswordProps?: any;
|
|
56
|
+
confirmNewPasswordProps?: any;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
declare const ChangePasswordForm: React.FC<ChangePasswordFormProps>;
|
|
60
|
+
|
|
61
|
+
export { type ChangePasswordContext, ChangePasswordForm, ChangePassword as default, useChangePasswordContext };
|