@aws-amplify/ui-react-core 2.1.23 → 2.1.24
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.
|
@@ -12,6 +12,7 @@ const COMMON_ROUTE_MACHINE_KEYS = [
|
|
|
12
12
|
];
|
|
13
13
|
const CONFIRM_RESET_PASSWORD_MACHINE_KEYS = [
|
|
14
14
|
...COMMON_ROUTE_MACHINE_KEYS,
|
|
15
|
+
'hasValidationErrors',
|
|
15
16
|
'resendCode',
|
|
16
17
|
'validationErrors',
|
|
17
18
|
];
|
|
@@ -31,6 +32,7 @@ const CONFIRM_VERIFY_USER_MACHINE_KEYS = [
|
|
|
31
32
|
];
|
|
32
33
|
const FORCE_NEW_PASSWORD_MACHINE_KEYS = [
|
|
33
34
|
...COMMON_ROUTE_MACHINE_KEYS,
|
|
35
|
+
'hasValidationErrors',
|
|
34
36
|
'toSignIn',
|
|
35
37
|
'validationErrors',
|
|
36
38
|
];
|
|
@@ -46,6 +48,7 @@ const SIGN_IN_MACHINE_KEYS = [
|
|
|
46
48
|
];
|
|
47
49
|
const SIGN_UP_MACHINE_KEYS = [
|
|
48
50
|
...COMMON_ROUTE_MACHINE_KEYS,
|
|
51
|
+
'hasValidationErrors',
|
|
49
52
|
'toSignIn',
|
|
50
53
|
'validationErrors',
|
|
51
54
|
];
|
package/dist/index.js
CHANGED
|
@@ -257,6 +257,7 @@ const COMMON_ROUTE_MACHINE_KEYS = [
|
|
|
257
257
|
];
|
|
258
258
|
const CONFIRM_RESET_PASSWORD_MACHINE_KEYS = [
|
|
259
259
|
...COMMON_ROUTE_MACHINE_KEYS,
|
|
260
|
+
'hasValidationErrors',
|
|
260
261
|
'resendCode',
|
|
261
262
|
'validationErrors',
|
|
262
263
|
];
|
|
@@ -276,6 +277,7 @@ const CONFIRM_VERIFY_USER_MACHINE_KEYS = [
|
|
|
276
277
|
];
|
|
277
278
|
const FORCE_NEW_PASSWORD_MACHINE_KEYS = [
|
|
278
279
|
...COMMON_ROUTE_MACHINE_KEYS,
|
|
280
|
+
'hasValidationErrors',
|
|
279
281
|
'toSignIn',
|
|
280
282
|
'validationErrors',
|
|
281
283
|
];
|
|
@@ -291,6 +293,7 @@ const SIGN_IN_MACHINE_KEYS = [
|
|
|
291
293
|
];
|
|
292
294
|
const SIGN_UP_MACHINE_KEYS = [
|
|
293
295
|
...COMMON_ROUTE_MACHINE_KEYS,
|
|
296
|
+
'hasValidationErrors',
|
|
294
297
|
'toSignIn',
|
|
295
298
|
'validationErrors',
|
|
296
299
|
];
|
|
@@ -41,13 +41,16 @@ export type CommonRouteProps = {
|
|
|
41
41
|
handleChange: UseAuthenticator['updateForm'];
|
|
42
42
|
handleSubmit: UseAuthenticator['submitForm'];
|
|
43
43
|
};
|
|
44
|
+
export interface ValidationProps {
|
|
45
|
+
hasValidationErrors: UseAuthenticator['hasValidationErrors'];
|
|
46
|
+
validationErrors?: UseAuthenticator['validationErrors'];
|
|
47
|
+
}
|
|
44
48
|
/**
|
|
45
49
|
* Base Route component props
|
|
46
50
|
*/
|
|
47
51
|
export type ConfirmResetPasswordBaseProps<FieldType = {}> = {
|
|
48
52
|
resendCode: UseAuthenticator['resendCode'];
|
|
49
|
-
|
|
50
|
-
} & CommonRouteProps & ComponentSlots<FieldType>;
|
|
53
|
+
} & CommonRouteProps & ComponentSlots<FieldType> & ValidationProps;
|
|
51
54
|
export type ConfirmSignInBaseProps<FieldType = {}> = {
|
|
52
55
|
challengeName: AuthChallengeName;
|
|
53
56
|
toSignIn: UseAuthenticator['toSignIn'];
|
|
@@ -61,8 +64,7 @@ export type ConfirmVerifyUserProps<FieldType = {}> = {
|
|
|
61
64
|
} & CommonRouteProps & ComponentSlots<FieldType>;
|
|
62
65
|
export type ForceResetPasswordBaseProps<FieldType = {}> = {
|
|
63
66
|
toSignIn: UseAuthenticator['toSignIn'];
|
|
64
|
-
|
|
65
|
-
} & CommonRouteProps & ComponentSlots<FieldType>;
|
|
67
|
+
} & CommonRouteProps & ComponentSlots<FieldType> & ValidationProps;
|
|
66
68
|
export type ResetPasswordBaseProps<FieldType = {}> = {
|
|
67
69
|
toSignIn: UseAuthenticator['toSignIn'];
|
|
68
70
|
} & CommonRouteProps & ComponentSlots<FieldType>;
|
|
@@ -80,8 +82,7 @@ export type SignUpBaseProps<FieldType = {}> = {
|
|
|
80
82
|
hideSignIn?: boolean;
|
|
81
83
|
toFederatedSignIn: UseAuthenticator['toFederatedSignIn'];
|
|
82
84
|
toSignIn: UseAuthenticator['toSignIn'];
|
|
83
|
-
|
|
84
|
-
} & CommonRouteProps & ComponentSlots<FieldType>;
|
|
85
|
+
} & CommonRouteProps & ComponentSlots<FieldType> & ValidationProps;
|
|
85
86
|
export type VerifyUserProps<FieldType = {}> = {
|
|
86
87
|
skipVerification: UseAuthenticator['skipVerification'];
|
|
87
88
|
} & CommonRouteProps & ComponentSlots<FieldType>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/ui-react-core",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.24",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/esm/index.mjs",
|
|
6
6
|
"react-native": "dist/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"typecheck": "tsc --noEmit"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@aws-amplify/ui": "5.6.
|
|
34
|
+
"@aws-amplify/ui": "5.6.5",
|
|
35
35
|
"@xstate/react": "3.0.1",
|
|
36
36
|
"lodash": "4.17.21",
|
|
37
37
|
"xstate": "^4.33.6"
|