@aws-amplify/ui 6.15.3 → 6.15.4

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.
@@ -265,6 +265,11 @@ function signUpActor({ services }) {
265
265
  actions: ['setNextSignUpStep', 'clearFormValues'],
266
266
  target: '#signUpActor.autoSignIn',
267
267
  },
268
+ {
269
+ cond: 'shouldManualSignIn',
270
+ actions: ['clearFormValues', 'setSignInStep'],
271
+ target: '#signUpActor.resolved',
272
+ },
268
273
  {
269
274
  actions: 'setNextSignUpStep',
270
275
  target: '#signUpActor.init',
@@ -9,6 +9,8 @@ const shouldConfirmSignInWithNewPassword = (_, { data }) => data?.nextStep.signI
9
9
  const shouldResetPasswordFromSignIn = (_, { data }) => data?.nextStep?.signInStep === 'RESET_PASSWORD';
10
10
  const shouldConfirmSignUpFromSignIn = (_, { data }) => data?.nextStep.signInStep === 'CONFIRM_SIGN_UP';
11
11
  const shouldAutoSignIn = (_, { data }) => data?.nextStep.signUpStep === 'COMPLETE_AUTO_SIGN_IN';
12
+ const shouldManualSignIn = (context, { data }) => data?.nextStep.signUpStep === 'DONE' &&
13
+ context.step === 'CONFIRM_SIGN_UP';
12
14
  const hasCompletedSignIn = (_, { data }) => data?.nextStep.signInStep === 'DONE';
13
15
  const hasCompletedSignUp = (_, { data }) => data?.nextStep.signUpStep === 'DONE';
14
16
  const hasCompletedResetPassword = (_, { data }) => data?.nextStep.resetPasswordStep === 'DONE';
@@ -110,6 +112,7 @@ const GUARDS = {
110
112
  isShouldConfirmUserAttributeStep,
111
113
  isUserAlreadyConfirmed,
112
114
  shouldAutoSignIn,
115
+ shouldManualSignIn,
113
116
  shouldConfirmResetPassword,
114
117
  shouldConfirmSignIn,
115
118
  shouldConfirmSignInWithNewPassword,
package/dist/index.js CHANGED
@@ -4608,6 +4608,8 @@ const shouldConfirmSignInWithNewPassword = (_, { data }) => data?.nextStep.signI
4608
4608
  const shouldResetPasswordFromSignIn = (_, { data }) => data?.nextStep?.signInStep === 'RESET_PASSWORD';
4609
4609
  const shouldConfirmSignUpFromSignIn = (_, { data }) => data?.nextStep.signInStep === 'CONFIRM_SIGN_UP';
4610
4610
  const shouldAutoSignIn = (_, { data }) => data?.nextStep.signUpStep === 'COMPLETE_AUTO_SIGN_IN';
4611
+ const shouldManualSignIn = (context, { data }) => data?.nextStep.signUpStep === 'DONE' &&
4612
+ context.step === 'CONFIRM_SIGN_UP';
4611
4613
  const hasCompletedSignIn = (_, { data }) => data?.nextStep.signInStep === 'DONE';
4612
4614
  const hasCompletedSignUp = (_, { data }) => data?.nextStep.signUpStep === 'DONE';
4613
4615
  const hasCompletedResetPassword = (_, { data }) => data?.nextStep.resetPasswordStep === 'DONE';
@@ -4709,6 +4711,7 @@ const GUARDS = {
4709
4711
  isShouldConfirmUserAttributeStep,
4710
4712
  isUserAlreadyConfirmed,
4711
4713
  shouldAutoSignIn,
4714
+ shouldManualSignIn,
4712
4715
  shouldConfirmResetPassword,
4713
4716
  shouldConfirmSignIn,
4714
4717
  shouldConfirmSignInWithNewPassword,
@@ -5802,6 +5805,11 @@ function signUpActor({ services }) {
5802
5805
  actions: ['setNextSignUpStep', 'clearFormValues'],
5803
5806
  target: '#signUpActor.autoSignIn',
5804
5807
  },
5808
+ {
5809
+ cond: 'shouldManualSignIn',
5810
+ actions: ['clearFormValues', 'setSignInStep'],
5811
+ target: '#signUpActor.resolved',
5812
+ },
5805
5813
  {
5806
5814
  actions: 'setNextSignUpStep',
5807
5815
  target: '#signUpActor.init',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui",
3
- "version": "6.15.3",
3
+ "version": "6.15.4",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.mjs",
6
6
  "exports": {