@aws-amplify/ui-react-native 2.0.0 → 2.0.2
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/dist/Authenticator/Defaults/ForgotPassword/ForgotPassword.d.ts +2 -2
- package/dist/Authenticator/Defaults/ForgotPassword/ForgotPassword.js +6 -6
- package/dist/Authenticator/Defaults/types.d.ts +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/lib/Authenticator/Defaults/ForgotPassword/ForgotPassword.js +6 -6
- package/lib/version.js +1 -1
- package/package.json +4 -4
- package/src/Authenticator/Defaults/ForgotPassword/ForgotPassword.tsx +6 -6
- package/src/Authenticator/Defaults/types.ts +2 -2
- package/src/version.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { DefaultFooter, DefaultHeader } from '../../common';
|
|
3
3
|
import { DefaultForgotPasswordProps } from '../types';
|
|
4
|
-
declare const
|
|
4
|
+
declare const ForgotPassword: {
|
|
5
5
|
({ fields, handleBlur, handleChange, handleSubmit, isPending, toSignIn, validationErrors, ...rest }: DefaultForgotPasswordProps): JSX.Element;
|
|
6
6
|
Footer: typeof DefaultFooter;
|
|
7
7
|
FormFields: {
|
|
@@ -11,4 +11,4 @@ declare const ResetPassword: {
|
|
|
11
11
|
Header: typeof DefaultHeader;
|
|
12
12
|
displayName: string;
|
|
13
13
|
};
|
|
14
|
-
export default
|
|
14
|
+
export default ForgotPassword;
|
|
@@ -4,7 +4,7 @@ import { DefaultContent, DefaultFooter, DefaultTextFormFields, DefaultHeader, }
|
|
|
4
4
|
import { useFieldValues } from '../../hooks';
|
|
5
5
|
const COMPONENT_NAME = 'ForgotPassword';
|
|
6
6
|
const { getResetYourPasswordText, getSendCodeText, getSendingText, getBackToSignInText, } = authenticatorTextUtil;
|
|
7
|
-
const
|
|
7
|
+
const ForgotPassword = ({ fields, handleBlur, handleChange, handleSubmit, isPending, toSignIn, validationErrors, ...rest }) => {
|
|
8
8
|
const { disableFormSubmit: disabled, fields: fieldsWithHandlers, fieldValidationErrors, handleFormSubmit, } = useFieldValues({
|
|
9
9
|
componentName: COMPONENT_NAME,
|
|
10
10
|
fields,
|
|
@@ -32,8 +32,8 @@ const ResetPassword = ({ fields, handleBlur, handleChange, handleSubmit, isPendi
|
|
|
32
32
|
]);
|
|
33
33
|
return (<DefaultContent {...rest} buttons={buttons} headerText={headerText} fields={fieldsWithHandlers} isPending={isPending} validationErrors={fieldValidationErrors}/>);
|
|
34
34
|
};
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
export default
|
|
35
|
+
ForgotPassword.Footer = DefaultFooter;
|
|
36
|
+
ForgotPassword.FormFields = DefaultTextFormFields;
|
|
37
|
+
ForgotPassword.Header = DefaultHeader;
|
|
38
|
+
ForgotPassword.displayName = COMPONENT_NAME;
|
|
39
|
+
export default ForgotPassword;
|
|
@@ -71,7 +71,7 @@ type ConfirmVerifyUserComponent<P = {}> = OverrideComponents<TextFieldOptionsTyp
|
|
|
71
71
|
type ForceNewPasswordComponent<P = {}> = OverrideComponents<TextFieldOptionsType, {
|
|
72
72
|
style?: ForceNewPasswordStyle;
|
|
73
73
|
} & P>['ForceNewPassword'];
|
|
74
|
-
type
|
|
74
|
+
type ForgotPasswordComponent<P = {}> = OverrideComponents<TextFieldOptionsType, {
|
|
75
75
|
style?: ResetPasswordStyle;
|
|
76
76
|
} & P>['ForgotPassword'];
|
|
77
77
|
type SetupTotpComponent<P = {}> = OverrideComponents<TextFieldOptionsType, {
|
|
@@ -95,7 +95,7 @@ export interface Components {
|
|
|
95
95
|
ConfirmResetPassword?: ConfirmResetPasswordComponent;
|
|
96
96
|
ConfirmVerifyUser?: ConfirmVerifyUserComponent;
|
|
97
97
|
ForceNewPassword?: ForceNewPasswordComponent;
|
|
98
|
-
|
|
98
|
+
ForgotPassword?: ForgotPasswordComponent;
|
|
99
99
|
SetupTotp?: SetupTotpComponent;
|
|
100
100
|
SignIn?: SignInComponent;
|
|
101
101
|
SignUp?: SignUpComponent;
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "
|
|
1
|
+
export declare const VERSION = "2.0.2";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '
|
|
1
|
+
export const VERSION = '2.0.2';
|
|
@@ -7,7 +7,7 @@ const common_1 = require("../../common");
|
|
|
7
7
|
const hooks_1 = require("../../hooks");
|
|
8
8
|
const COMPONENT_NAME = 'ForgotPassword';
|
|
9
9
|
const { getResetYourPasswordText, getSendCodeText, getSendingText, getBackToSignInText, } = ui_1.authenticatorTextUtil;
|
|
10
|
-
const
|
|
10
|
+
const ForgotPassword = ({ fields, handleBlur, handleChange, handleSubmit, isPending, toSignIn, validationErrors, ...rest }) => {
|
|
11
11
|
const { disableFormSubmit: disabled, fields: fieldsWithHandlers, fieldValidationErrors, handleFormSubmit, } = (0, hooks_1.useFieldValues)({
|
|
12
12
|
componentName: COMPONENT_NAME,
|
|
13
13
|
fields,
|
|
@@ -35,8 +35,8 @@ const ResetPassword = ({ fields, handleBlur, handleChange, handleSubmit, isPendi
|
|
|
35
35
|
]);
|
|
36
36
|
return (<common_1.DefaultContent {...rest} buttons={buttons} headerText={headerText} fields={fieldsWithHandlers} isPending={isPending} validationErrors={fieldValidationErrors}/>);
|
|
37
37
|
};
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
exports.default =
|
|
38
|
+
ForgotPassword.Footer = common_1.DefaultFooter;
|
|
39
|
+
ForgotPassword.FormFields = common_1.DefaultTextFormFields;
|
|
40
|
+
ForgotPassword.Header = common_1.DefaultHeader;
|
|
41
|
+
ForgotPassword.displayName = COMPONENT_NAME;
|
|
42
|
+
exports.default = ForgotPassword;
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/ui-react-native",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"react-native": "src/index.ts",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"react-native-safe-area-context": "^4.7.3"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@aws-amplify/ui": "6.0.
|
|
33
|
-
"@aws-amplify/ui-react-core": "3.0.
|
|
34
|
-
"@aws-amplify/ui-react-core-notifications": "2.0.
|
|
32
|
+
"@aws-amplify/ui": "6.0.1",
|
|
33
|
+
"@aws-amplify/ui-react-core": "3.0.1",
|
|
34
|
+
"@aws-amplify/ui-react-core-notifications": "2.0.1"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"aws-amplify": "^6.0.2",
|
|
@@ -19,7 +19,7 @@ const {
|
|
|
19
19
|
getBackToSignInText,
|
|
20
20
|
} = authenticatorTextUtil;
|
|
21
21
|
|
|
22
|
-
const
|
|
22
|
+
const ForgotPassword = ({
|
|
23
23
|
fields,
|
|
24
24
|
handleBlur,
|
|
25
25
|
handleChange,
|
|
@@ -77,9 +77,9 @@ const ResetPassword = ({
|
|
|
77
77
|
);
|
|
78
78
|
};
|
|
79
79
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
ForgotPassword.Footer = DefaultFooter;
|
|
81
|
+
ForgotPassword.FormFields = DefaultTextFormFields;
|
|
82
|
+
ForgotPassword.Header = DefaultHeader;
|
|
83
83
|
|
|
84
|
-
|
|
85
|
-
export default
|
|
84
|
+
ForgotPassword.displayName = COMPONENT_NAME;
|
|
85
|
+
export default ForgotPassword;
|
|
@@ -118,7 +118,7 @@ type ForceNewPasswordComponent<P = {}> = OverrideComponents<
|
|
|
118
118
|
{ style?: ForceNewPasswordStyle } & P
|
|
119
119
|
>['ForceNewPassword'];
|
|
120
120
|
|
|
121
|
-
type
|
|
121
|
+
type ForgotPasswordComponent<P = {}> = OverrideComponents<
|
|
122
122
|
TextFieldOptionsType,
|
|
123
123
|
{ style?: ResetPasswordStyle } & P
|
|
124
124
|
>['ForgotPassword'];
|
|
@@ -152,7 +152,7 @@ export interface Components {
|
|
|
152
152
|
ConfirmResetPassword?: ConfirmResetPasswordComponent;
|
|
153
153
|
ConfirmVerifyUser?: ConfirmVerifyUserComponent;
|
|
154
154
|
ForceNewPassword?: ForceNewPasswordComponent;
|
|
155
|
-
|
|
155
|
+
ForgotPassword?: ForgotPasswordComponent;
|
|
156
156
|
SetupTotp?: SetupTotpComponent;
|
|
157
157
|
SignIn?: SignInComponent;
|
|
158
158
|
SignUp?: SignUpComponent;
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '
|
|
1
|
+
export const VERSION = '2.0.2';
|