@aws-amplify/ui-react-core 3.4.7 → 3.5.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/ui-react-core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/esm/index.mjs",
|
|
6
6
|
"react-native": "src/index.ts",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"typecheck": "tsc --noEmit"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@aws-amplify/ui": "6.
|
|
43
|
+
"@aws-amplify/ui": "6.14.0",
|
|
44
44
|
"@xstate/react": "^3.2.2",
|
|
45
|
-
"lodash": "4.17.
|
|
45
|
+
"lodash": "4.17.23",
|
|
46
46
|
"react-hook-form": "7.53.2",
|
|
47
47
|
"xstate": "^4.33.6"
|
|
48
48
|
},
|
|
@@ -20,6 +20,8 @@ const isPending = false;
|
|
|
20
20
|
const QRFields = null;
|
|
21
21
|
const resendCode = jest.fn();
|
|
22
22
|
const route = 'idle';
|
|
23
|
+
const toShowAuthMethods = jest.fn();
|
|
24
|
+
const selectAuthMethod = jest.fn();
|
|
23
25
|
const skipVerification = jest.fn();
|
|
24
26
|
const signOut = jest.fn();
|
|
25
27
|
const socialProviders = [] as AuthenticatorMachineContext['socialProviders'];
|
|
@@ -38,14 +40,18 @@ const validationErrors = {};
|
|
|
38
40
|
export const mockMachineContext: AuthenticatorMachineContext = {
|
|
39
41
|
allowedMfaTypes,
|
|
40
42
|
authStatus,
|
|
43
|
+
availableAuthMethods: undefined,
|
|
41
44
|
challengeName,
|
|
42
45
|
codeDeliveryDetails,
|
|
43
46
|
error,
|
|
44
47
|
hasValidationErrors,
|
|
45
48
|
initializeMachine,
|
|
46
49
|
isPending,
|
|
50
|
+
preferredChallenge: undefined,
|
|
47
51
|
resendCode,
|
|
48
52
|
route,
|
|
53
|
+
selectAuthMethod,
|
|
54
|
+
selectedAuthMethod: undefined,
|
|
49
55
|
signOut,
|
|
50
56
|
submitForm,
|
|
51
57
|
updateForm,
|
|
@@ -61,6 +67,8 @@ export const mockMachineContext: AuthenticatorMachineContext = {
|
|
|
61
67
|
unverifiedUserAttributes,
|
|
62
68
|
username: 'george',
|
|
63
69
|
validationErrors,
|
|
70
|
+
toShowAuthMethods,
|
|
71
|
+
loginMechanism: undefined,
|
|
64
72
|
};
|
|
65
73
|
|
|
66
74
|
export const mockUseAuthenticatorOutput: UseAuthenticator = {
|