@aws-amplify/ui 6.8.2 → 6.9.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.
@@ -1,5 +1,5 @@
1
1
  import { createMachine, sendUpdate } from 'xstate';
2
- import { fetchUserAttributes, resetPassword, resendSignUpCode, confirmSignIn, signInWithRedirect } from 'aws-amplify/auth';
2
+ import { fetchUserAttributes, resetPassword, confirmSignIn, signInWithRedirect } from 'aws-amplify/auth';
3
3
  import { runValidators } from '../../../validators/index.mjs';
4
4
  import ACTIONS from '../actions.mjs';
5
5
  import { defaultServices } from '../defaultServices.mjs';
@@ -277,7 +277,7 @@ function signInActor({ services }) {
277
277
  return resetPassword({ username });
278
278
  },
279
279
  handleResendSignUpCode({ username }) {
280
- return resendSignUpCode({ username });
280
+ return services.handleResendSignUpCode({ username });
281
281
  },
282
282
  handleSignIn({ formValues, username }) {
283
283
  const { password } = formValues;
@@ -1,5 +1,5 @@
1
1
  import { createMachine, sendUpdate } from 'xstate';
2
- import { autoSignIn, fetchUserAttributes, resendSignUpCode, signInWithRedirect } from 'aws-amplify/auth';
2
+ import { autoSignIn, fetchUserAttributes, signInWithRedirect } from 'aws-amplify/auth';
3
3
  import { getSignUpInput } from '../utils.mjs';
4
4
  import { runValidators } from '../../../validators/index.mjs';
5
5
  import ACTIONS from '../actions.mjs';
@@ -263,7 +263,7 @@ function signUpActor({ services }) {
263
263
  return services.handleConfirmSignUp(input);
264
264
  },
265
265
  resendSignUpCode({ username }) {
266
- return resendSignUpCode({ username });
266
+ return services.handleResendSignUpCode({ username });
267
267
  },
268
268
  signInWithRedirect(_, { data }) {
269
269
  return signInWithRedirect(data);
@@ -1,5 +1,5 @@
1
1
  import { Amplify } from 'aws-amplify';
2
- import { getCurrentUser, signIn, signUp, confirmSignIn, confirmSignUp, confirmResetPassword, resetPassword } from 'aws-amplify/auth';
2
+ import { getCurrentUser, signIn, signUp, confirmSignIn, confirmSignUp, confirmResetPassword, resetPassword, resendSignUpCode } from 'aws-amplify/auth';
3
3
  import '@aws-amplify/core/internals/utils';
4
4
  import 'aws-amplify/utils';
5
5
  import '../../utils/setUserAgent/constants.mjs';
@@ -54,6 +54,7 @@ const defaultServices = {
54
54
  handleConfirmSignUp: confirmSignUp,
55
55
  handleForgotPasswordSubmit: confirmResetPassword,
56
56
  handleForgotPassword: resetPassword,
57
+ handleResendSignUpCode: resendSignUpCode,
57
58
  // Validation hooks for overriding
58
59
  async validateCustomSignUp(_, __) { },
59
60
  async validateFormPassword(formData, touchData, passwordSettings) {
package/dist/index.js CHANGED
@@ -4137,6 +4137,7 @@ const defaultServices = {
4137
4137
  handleConfirmSignUp: auth.confirmSignUp,
4138
4138
  handleForgotPasswordSubmit: auth.confirmResetPassword,
4139
4139
  handleForgotPassword: auth.resetPassword,
4140
+ handleResendSignUpCode: auth.resendSignUpCode,
4140
4141
  // Validation hooks for overriding
4141
4142
  async validateCustomSignUp(_, __) { },
4142
4143
  async validateFormPassword(formData, touchData, passwordSettings) {
@@ -4648,7 +4649,7 @@ function signInActor({ services }) {
4648
4649
  return auth.resetPassword({ username });
4649
4650
  },
4650
4651
  handleResendSignUpCode({ username }) {
4651
- return auth.resendSignUpCode({ username });
4652
+ return services.handleResendSignUpCode({ username });
4652
4653
  },
4653
4654
  handleSignIn({ formValues, username }) {
4654
4655
  const { password } = formValues;
@@ -4948,7 +4949,7 @@ function signUpActor({ services }) {
4948
4949
  return services.handleConfirmSignUp(input);
4949
4950
  },
4950
4951
  resendSignUpCode({ username }) {
4951
- return auth.resendSignUpCode({ username });
4952
+ return services.handleResendSignUpCode({ username });
4952
4953
  },
4953
4954
  signInWithRedirect(_, { data }) {
4954
4955
  return auth.signInWithRedirect(data);
@@ -1,5 +1,5 @@
1
1
  import { UserAttributeKey } from 'aws-amplify/auth';
2
- import { confirmResetPassword, confirmSignIn, confirmSignUp, resetPassword, signIn, signUp } from 'aws-amplify/auth';
2
+ import { confirmResetPassword, confirmSignIn, confirmSignUp, resendSignUpCode, resetPassword, signIn, signUp } from 'aws-amplify/auth';
3
3
  import { AuthFormData, AuthTouchData, PasswordSettings, SocialProvider, ValidatorResult } from '../../types';
4
4
  export declare const defaultServices: {
5
5
  getAmplifyConfig(): Promise<{
@@ -221,6 +221,7 @@ export declare const defaultServices: {
221
221
  handleConfirmSignUp: typeof confirmSignUp;
222
222
  handleForgotPasswordSubmit: typeof confirmResetPassword;
223
223
  handleForgotPassword: typeof resetPassword;
224
+ handleResendSignUpCode: typeof resendSignUpCode;
224
225
  validateCustomSignUp(_: AuthFormData, __: AuthTouchData): Promise<ValidatorResult>;
225
226
  validateFormPassword(formData: AuthFormData, touchData: AuthTouchData, passwordSettings: PasswordSettings): Promise<ValidatorResult>;
226
227
  validateConfirmPassword(formData: AuthFormData, touchData: AuthTouchData): Promise<ValidatorResult>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui",
3
- "version": "6.8.2",
3
+ "version": "6.9.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.mjs",
6
6
  "exports": {