@aws-amplify/ui 6.0.9 → 6.0.10
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.
|
@@ -31,7 +31,7 @@ const stopActor = (machineId) => stop(machineId);
|
|
|
31
31
|
const LEGACY_WAIT_CONFIG = {
|
|
32
32
|
on: {
|
|
33
33
|
INIT: {
|
|
34
|
-
actions:
|
|
34
|
+
actions: 'configure',
|
|
35
35
|
target: 'getConfig',
|
|
36
36
|
},
|
|
37
37
|
SIGN_OUT: '#authenticator.signOut',
|
|
@@ -39,7 +39,7 @@ const LEGACY_WAIT_CONFIG = {
|
|
|
39
39
|
};
|
|
40
40
|
// setup step proceeds directly to configure
|
|
41
41
|
const NEXT_WAIT_CONFIG = {
|
|
42
|
-
always: { actions:
|
|
42
|
+
always: { actions: 'configure', target: 'getConfig' },
|
|
43
43
|
};
|
|
44
44
|
function createAuthenticatorMachine(options) {
|
|
45
45
|
const { useNextWaitConfig, ...overrideConfigServices } = options ?? {};
|
|
@@ -165,6 +165,11 @@ function createAuthenticatorMachine(options) {
|
|
|
165
165
|
cond: 'hasCompletedAttributeConfirmation',
|
|
166
166
|
target: '#authenticator.getCurrentUser',
|
|
167
167
|
},
|
|
168
|
+
{
|
|
169
|
+
cond: 'isShouldConfirmUserAttributeStep',
|
|
170
|
+
actions: 'setActorDoneData',
|
|
171
|
+
target: '#authenticator.verifyUserAttributesActor',
|
|
172
|
+
},
|
|
168
173
|
{
|
|
169
174
|
cond: 'isConfirmUserAttributeStep',
|
|
170
175
|
target: '#authenticator.verifyUserAttributesActor',
|
package/dist/index.js
CHANGED
|
@@ -4643,7 +4643,7 @@ const stopActor = (machineId) => stop(machineId);
|
|
|
4643
4643
|
const LEGACY_WAIT_CONFIG = {
|
|
4644
4644
|
on: {
|
|
4645
4645
|
INIT: {
|
|
4646
|
-
actions:
|
|
4646
|
+
actions: 'configure',
|
|
4647
4647
|
target: 'getConfig',
|
|
4648
4648
|
},
|
|
4649
4649
|
SIGN_OUT: '#authenticator.signOut',
|
|
@@ -4651,7 +4651,7 @@ const LEGACY_WAIT_CONFIG = {
|
|
|
4651
4651
|
};
|
|
4652
4652
|
// setup step proceeds directly to configure
|
|
4653
4653
|
const NEXT_WAIT_CONFIG = {
|
|
4654
|
-
always: { actions:
|
|
4654
|
+
always: { actions: 'configure', target: 'getConfig' },
|
|
4655
4655
|
};
|
|
4656
4656
|
function createAuthenticatorMachine(options) {
|
|
4657
4657
|
const { useNextWaitConfig, ...overrideConfigServices } = options ?? {};
|
|
@@ -4777,6 +4777,11 @@ function createAuthenticatorMachine(options) {
|
|
|
4777
4777
|
cond: 'hasCompletedAttributeConfirmation',
|
|
4778
4778
|
target: '#authenticator.getCurrentUser',
|
|
4779
4779
|
},
|
|
4780
|
+
{
|
|
4781
|
+
cond: 'isShouldConfirmUserAttributeStep',
|
|
4782
|
+
actions: 'setActorDoneData',
|
|
4783
|
+
target: '#authenticator.verifyUserAttributesActor',
|
|
4784
|
+
},
|
|
4780
4785
|
{
|
|
4781
4786
|
cond: 'isConfirmUserAttributeStep',
|
|
4782
4787
|
target: '#authenticator.verifyUserAttributesActor',
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { GetRoute } from './getRoute';
|
|
2
|
+
/**
|
|
3
|
+
* @internal Not to be used in production
|
|
4
|
+
* @description Debugging tool for logging `state` and `actorState`
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```ts
|
|
8
|
+
* const getRouteWithLogs = logRouteChanges(getRoute);
|
|
9
|
+
* ```
|
|
10
|
+
*/
|
|
11
|
+
export declare const logRouteChanges: (fn: GetRoute) => GetRoute;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
import { AuthActorState, AuthMachineState } from '../../machines/authenticator/types';
|
|
2
|
-
|
|
2
|
+
import { AuthenticatorRoute } from './facade';
|
|
3
|
+
export type GetRoute = (state: AuthMachineState, actorState: AuthActorState) => AuthenticatorRoute;
|
|
4
|
+
export declare const getRoute: (state: AuthMachineState, actorState: AuthActorState) => AuthenticatorRoute;
|