@aws-amplify/ui-angular 2.4.19 → 2.4.20

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.
Files changed (23) hide show
  1. package/aws-amplify-ui-angular.metadata.json +1 -1
  2. package/bundles/aws-amplify-ui-angular.umd.js +27 -19
  3. package/bundles/aws-amplify-ui-angular.umd.js.map +1 -1
  4. package/bundles/aws-amplify-ui-angular.umd.min.js +1 -1
  5. package/bundles/aws-amplify-ui-angular.umd.min.js.map +1 -1
  6. package/esm2015/lib/components/authenticator/components/confirm-sign-in/confirm-sign-in.component.js +4 -4
  7. package/esm2015/lib/components/authenticator/components/setup-totp/setup-totp.component.js +9 -8
  8. package/esm2015/lib/services/authenticator.service.js +1 -1
  9. package/fesm2015/aws-amplify-ui-angular.js +10 -9
  10. package/fesm2015/aws-amplify-ui-angular.js.map +1 -1
  11. package/lib/components/authenticator/components/authenticator/authenticator.component.d.ts +11 -15
  12. package/lib/components/authenticator/components/confirm-reset-password/amplify-confirm-reset-password.component.d.ts +10 -14
  13. package/lib/components/authenticator/components/confirm-sign-in/confirm-sign-in.component.d.ts +10 -14
  14. package/lib/components/authenticator/components/confirm-sign-up/confirm-sign-up.component.d.ts +10 -14
  15. package/lib/components/authenticator/components/confirm-verify-user/amplify-confirm-verify-user.component.d.ts +10 -14
  16. package/lib/components/authenticator/components/force-new-password/force-new-password.component.d.ts +10 -14
  17. package/lib/components/authenticator/components/reset-password/reset-password.component.d.ts +10 -14
  18. package/lib/components/authenticator/components/setup-totp/setup-totp.component.d.ts +12 -17
  19. package/lib/components/authenticator/components/sign-in/sign-in.component.d.ts +10 -14
  20. package/lib/components/authenticator/components/sign-up/sign-up.component.d.ts +10 -14
  21. package/lib/components/authenticator/components/verify-user/verify-user.component.d.ts +10 -14
  22. package/lib/services/authenticator.service.d.ts +15 -25
  23. package/package.json +2 -2
@@ -12,8 +12,8 @@ export declare class ConfirmSignInComponent implements OnInit {
12
12
  ngOnInit(): void;
13
13
  get context(): {
14
14
  $implicit: {
15
- resendCode: (data?: Record<string | number | symbol, any>) => void;
16
15
  signOut: (data?: Record<string | number | symbol, any>) => void;
16
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
17
17
  submitForm: (data?: Record<string | number | symbol, any>) => void;
18
18
  updateForm: (data?: Record<string | number | symbol, any>) => void;
19
19
  updateBlur: (data?: Record<string | number | symbol, any>) => void;
@@ -22,19 +22,17 @@ export declare class ConfirmSignInComponent implements OnInit {
22
22
  toSignIn: (data?: Record<string | number | symbol, any>) => void;
23
23
  toSignUp: (data?: Record<string | number | symbol, any>) => void;
24
24
  skipVerification: (data?: Record<string | number | symbol, any>) => void;
25
+ authStatus: "authenticated" | "configuring" | "unauthenticated";
26
+ codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
25
27
  error: string;
26
28
  hasValidationErrors: boolean;
27
29
  isPending: boolean;
28
- route: string;
29
- authStatus: string;
30
+ route: "idle" | "signIn" | "signUp" | "forceNewPassword" | "confirmResetPassword" | "confirmSignIn" | "confirmSignUp" | "confirmVerifyUser" | "resetPassword" | "setupTOTP" | "setup" | "authenticated" | "autoSignIn" | "signOut" | "verifyUser";
30
31
  user: import("@aws-amplify/ui").CognitoUserAmplify;
31
- validationErrors: {
32
- [x: string]: string | string[];
33
- };
34
- codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
32
+ validationErrors: Record<string, string | string[]>;
35
33
  };
36
- resendCode: (data?: Record<string | number | symbol, any>) => void;
37
34
  signOut: (data?: Record<string | number | symbol, any>) => void;
35
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
38
36
  submitForm: (data?: Record<string | number | symbol, any>) => void;
39
37
  updateForm: (data?: Record<string | number | symbol, any>) => void;
40
38
  updateBlur: (data?: Record<string | number | symbol, any>) => void;
@@ -43,16 +41,14 @@ export declare class ConfirmSignInComponent implements OnInit {
43
41
  toSignIn: (data?: Record<string | number | symbol, any>) => void;
44
42
  toSignUp: (data?: Record<string | number | symbol, any>) => void;
45
43
  skipVerification: (data?: Record<string | number | symbol, any>) => void;
44
+ authStatus: "authenticated" | "configuring" | "unauthenticated";
45
+ codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
46
46
  error: string;
47
47
  hasValidationErrors: boolean;
48
48
  isPending: boolean;
49
- route: string;
50
- authStatus: string;
49
+ route: "idle" | "signIn" | "signUp" | "forceNewPassword" | "confirmResetPassword" | "confirmSignIn" | "confirmSignUp" | "confirmVerifyUser" | "resetPassword" | "setupTOTP" | "setup" | "authenticated" | "autoSignIn" | "signOut" | "verifyUser";
51
50
  user: import("@aws-amplify/ui").CognitoUserAmplify;
52
- validationErrors: {
53
- [x: string]: string | string[];
54
- };
55
- codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
51
+ validationErrors: Record<string, string | string[]>;
56
52
  };
57
53
  setHeaderText(): void;
58
54
  onInput(event: Event): void;
@@ -14,8 +14,8 @@ export declare class ConfirmSignUpComponent {
14
14
  constructor(authenticator: AuthenticatorService);
15
15
  get context(): {
16
16
  $implicit: {
17
- resendCode: (data?: Record<string | number | symbol, any>) => void;
18
17
  signOut: (data?: Record<string | number | symbol, any>) => void;
18
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
19
19
  submitForm: (data?: Record<string | number | symbol, any>) => void;
20
20
  updateForm: (data?: Record<string | number | symbol, any>) => void;
21
21
  updateBlur: (data?: Record<string | number | symbol, any>) => void;
@@ -24,19 +24,17 @@ export declare class ConfirmSignUpComponent {
24
24
  toSignIn: (data?: Record<string | number | symbol, any>) => void;
25
25
  toSignUp: (data?: Record<string | number | symbol, any>) => void;
26
26
  skipVerification: (data?: Record<string | number | symbol, any>) => void;
27
+ authStatus: "authenticated" | "configuring" | "unauthenticated";
28
+ codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
27
29
  error: string;
28
30
  hasValidationErrors: boolean;
29
31
  isPending: boolean;
30
- route: string;
31
- authStatus: string;
32
+ route: "idle" | "signIn" | "signUp" | "forceNewPassword" | "confirmResetPassword" | "confirmSignIn" | "confirmSignUp" | "confirmVerifyUser" | "resetPassword" | "setupTOTP" | "setup" | "authenticated" | "autoSignIn" | "signOut" | "verifyUser";
32
33
  user: import("@aws-amplify/ui").CognitoUserAmplify;
33
- validationErrors: {
34
- [x: string]: string | string[];
35
- };
36
- codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
34
+ validationErrors: Record<string, string | string[]>;
37
35
  };
38
- resendCode: (data?: Record<string | number | symbol, any>) => void;
39
36
  signOut: (data?: Record<string | number | symbol, any>) => void;
37
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
40
38
  submitForm: (data?: Record<string | number | symbol, any>) => void;
41
39
  updateForm: (data?: Record<string | number | symbol, any>) => void;
42
40
  updateBlur: (data?: Record<string | number | symbol, any>) => void;
@@ -45,16 +43,14 @@ export declare class ConfirmSignUpComponent {
45
43
  toSignIn: (data?: Record<string | number | symbol, any>) => void;
46
44
  toSignUp: (data?: Record<string | number | symbol, any>) => void;
47
45
  skipVerification: (data?: Record<string | number | symbol, any>) => void;
46
+ authStatus: "authenticated" | "configuring" | "unauthenticated";
47
+ codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
48
48
  error: string;
49
49
  hasValidationErrors: boolean;
50
50
  isPending: boolean;
51
- route: string;
52
- authStatus: string;
51
+ route: "idle" | "signIn" | "signUp" | "forceNewPassword" | "confirmResetPassword" | "confirmSignIn" | "confirmSignUp" | "confirmVerifyUser" | "resetPassword" | "setupTOTP" | "setup" | "authenticated" | "autoSignIn" | "signOut" | "verifyUser";
53
52
  user: import("@aws-amplify/ui").CognitoUserAmplify;
54
- validationErrors: {
55
- [x: string]: string | string[];
56
- };
57
- codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
53
+ validationErrors: Record<string, string | string[]>;
58
54
  };
59
55
  get confirmSignUpHeading(): string;
60
56
  get subtitleText(): string;
@@ -10,8 +10,8 @@ export declare class ConfirmVerifyUserComponent {
10
10
  constructor(authenticator: AuthenticatorService);
11
11
  get context(): {
12
12
  $implicit: {
13
- resendCode: (data?: Record<string | number | symbol, any>) => void;
14
13
  signOut: (data?: Record<string | number | symbol, any>) => void;
14
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
15
15
  submitForm: (data?: Record<string | number | symbol, any>) => void;
16
16
  updateForm: (data?: Record<string | number | symbol, any>) => void;
17
17
  updateBlur: (data?: Record<string | number | symbol, any>) => void;
@@ -20,19 +20,17 @@ export declare class ConfirmVerifyUserComponent {
20
20
  toSignIn: (data?: Record<string | number | symbol, any>) => void;
21
21
  toSignUp: (data?: Record<string | number | symbol, any>) => void;
22
22
  skipVerification: (data?: Record<string | number | symbol, any>) => void;
23
+ authStatus: "authenticated" | "configuring" | "unauthenticated";
24
+ codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
23
25
  error: string;
24
26
  hasValidationErrors: boolean;
25
27
  isPending: boolean;
26
- route: string;
27
- authStatus: string;
28
+ route: "idle" | "signIn" | "signUp" | "forceNewPassword" | "confirmResetPassword" | "confirmSignIn" | "confirmSignUp" | "confirmVerifyUser" | "resetPassword" | "setupTOTP" | "setup" | "authenticated" | "autoSignIn" | "signOut" | "verifyUser";
28
29
  user: import("@aws-amplify/ui").CognitoUserAmplify;
29
- validationErrors: {
30
- [x: string]: string | string[];
31
- };
32
- codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
30
+ validationErrors: Record<string, string | string[]>;
33
31
  };
34
- resendCode: (data?: Record<string | number | symbol, any>) => void;
35
32
  signOut: (data?: Record<string | number | symbol, any>) => void;
33
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
36
34
  submitForm: (data?: Record<string | number | symbol, any>) => void;
37
35
  updateForm: (data?: Record<string | number | symbol, any>) => void;
38
36
  updateBlur: (data?: Record<string | number | symbol, any>) => void;
@@ -41,16 +39,14 @@ export declare class ConfirmVerifyUserComponent {
41
39
  toSignIn: (data?: Record<string | number | symbol, any>) => void;
42
40
  toSignUp: (data?: Record<string | number | symbol, any>) => void;
43
41
  skipVerification: (data?: Record<string | number | symbol, any>) => void;
42
+ authStatus: "authenticated" | "configuring" | "unauthenticated";
43
+ codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
44
44
  error: string;
45
45
  hasValidationErrors: boolean;
46
46
  isPending: boolean;
47
- route: string;
48
- authStatus: string;
47
+ route: "idle" | "signIn" | "signUp" | "forceNewPassword" | "confirmResetPassword" | "confirmSignIn" | "confirmSignUp" | "confirmVerifyUser" | "resetPassword" | "setupTOTP" | "setup" | "authenticated" | "autoSignIn" | "signOut" | "verifyUser";
49
48
  user: import("@aws-amplify/ui").CognitoUserAmplify;
50
- validationErrors: {
51
- [x: string]: string | string[];
52
- };
53
- codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
49
+ validationErrors: Record<string, string | string[]>;
54
50
  };
55
51
  onInput(event: Event): void;
56
52
  onSubmit(event: Event): void;
@@ -8,8 +8,8 @@ export declare class ForceNewPasswordComponent {
8
8
  constructor(authenticator: AuthenticatorService);
9
9
  get context(): {
10
10
  $implicit: {
11
- resendCode: (data?: Record<string | number | symbol, any>) => void;
12
11
  signOut: (data?: Record<string | number | symbol, any>) => void;
12
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
13
13
  submitForm: (data?: Record<string | number | symbol, any>) => void;
14
14
  updateForm: (data?: Record<string | number | symbol, any>) => void;
15
15
  updateBlur: (data?: Record<string | number | symbol, any>) => void;
@@ -18,19 +18,17 @@ export declare class ForceNewPasswordComponent {
18
18
  toSignIn: (data?: Record<string | number | symbol, any>) => void;
19
19
  toSignUp: (data?: Record<string | number | symbol, any>) => void;
20
20
  skipVerification: (data?: Record<string | number | symbol, any>) => void;
21
+ authStatus: "authenticated" | "configuring" | "unauthenticated";
22
+ codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
21
23
  error: string;
22
24
  hasValidationErrors: boolean;
23
25
  isPending: boolean;
24
- route: string;
25
- authStatus: string;
26
+ route: "idle" | "signIn" | "signUp" | "forceNewPassword" | "confirmResetPassword" | "confirmSignIn" | "confirmSignUp" | "confirmVerifyUser" | "resetPassword" | "setupTOTP" | "setup" | "authenticated" | "autoSignIn" | "signOut" | "verifyUser";
26
27
  user: import("@aws-amplify/ui").CognitoUserAmplify;
27
- validationErrors: {
28
- [x: string]: string | string[];
29
- };
30
- codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
28
+ validationErrors: Record<string, string | string[]>;
31
29
  };
32
- resendCode: (data?: Record<string | number | symbol, any>) => void;
33
30
  signOut: (data?: Record<string | number | symbol, any>) => void;
31
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
34
32
  submitForm: (data?: Record<string | number | symbol, any>) => void;
35
33
  updateForm: (data?: Record<string | number | symbol, any>) => void;
36
34
  updateBlur: (data?: Record<string | number | symbol, any>) => void;
@@ -39,16 +37,14 @@ export declare class ForceNewPasswordComponent {
39
37
  toSignIn: (data?: Record<string | number | symbol, any>) => void;
40
38
  toSignUp: (data?: Record<string | number | symbol, any>) => void;
41
39
  skipVerification: (data?: Record<string | number | symbol, any>) => void;
40
+ authStatus: "authenticated" | "configuring" | "unauthenticated";
41
+ codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
42
42
  error: string;
43
43
  hasValidationErrors: boolean;
44
44
  isPending: boolean;
45
- route: string;
46
- authStatus: string;
45
+ route: "idle" | "signIn" | "signUp" | "forceNewPassword" | "confirmResetPassword" | "confirmSignIn" | "confirmSignUp" | "confirmVerifyUser" | "resetPassword" | "setupTOTP" | "setup" | "authenticated" | "autoSignIn" | "signOut" | "verifyUser";
47
46
  user: import("@aws-amplify/ui").CognitoUserAmplify;
48
- validationErrors: {
49
- [x: string]: string | string[];
50
- };
51
- codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
47
+ validationErrors: Record<string, string | string[]>;
52
48
  };
53
49
  onInput(event: Event): void;
54
50
  onSubmit(event: Event): void;
@@ -10,8 +10,8 @@ export declare class ResetPasswordComponent {
10
10
  constructor(authenticator: AuthenticatorService);
11
11
  get context(): {
12
12
  $implicit: {
13
- resendCode: (data?: Record<string | number | symbol, any>) => void;
14
13
  signOut: (data?: Record<string | number | symbol, any>) => void;
14
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
15
15
  submitForm: (data?: Record<string | number | symbol, any>) => void;
16
16
  updateForm: (data?: Record<string | number | symbol, any>) => void;
17
17
  updateBlur: (data?: Record<string | number | symbol, any>) => void;
@@ -20,19 +20,17 @@ export declare class ResetPasswordComponent {
20
20
  toSignIn: (data?: Record<string | number | symbol, any>) => void;
21
21
  toSignUp: (data?: Record<string | number | symbol, any>) => void;
22
22
  skipVerification: (data?: Record<string | number | symbol, any>) => void;
23
+ authStatus: "authenticated" | "configuring" | "unauthenticated";
24
+ codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
23
25
  error: string;
24
26
  hasValidationErrors: boolean;
25
27
  isPending: boolean;
26
- route: string;
27
- authStatus: string;
28
+ route: "idle" | "signIn" | "signUp" | "forceNewPassword" | "confirmResetPassword" | "confirmSignIn" | "confirmSignUp" | "confirmVerifyUser" | "resetPassword" | "setupTOTP" | "setup" | "authenticated" | "autoSignIn" | "signOut" | "verifyUser";
28
29
  user: import("@aws-amplify/ui").CognitoUserAmplify;
29
- validationErrors: {
30
- [x: string]: string | string[];
31
- };
32
- codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
30
+ validationErrors: Record<string, string | string[]>;
33
31
  };
34
- resendCode: (data?: Record<string | number | symbol, any>) => void;
35
32
  signOut: (data?: Record<string | number | symbol, any>) => void;
33
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
36
34
  submitForm: (data?: Record<string | number | symbol, any>) => void;
37
35
  updateForm: (data?: Record<string | number | symbol, any>) => void;
38
36
  updateBlur: (data?: Record<string | number | symbol, any>) => void;
@@ -41,16 +39,14 @@ export declare class ResetPasswordComponent {
41
39
  toSignIn: (data?: Record<string | number | symbol, any>) => void;
42
40
  toSignUp: (data?: Record<string | number | symbol, any>) => void;
43
41
  skipVerification: (data?: Record<string | number | symbol, any>) => void;
42
+ authStatus: "authenticated" | "configuring" | "unauthenticated";
43
+ codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
44
44
  error: string;
45
45
  hasValidationErrors: boolean;
46
46
  isPending: boolean;
47
- route: string;
48
- authStatus: string;
47
+ route: "idle" | "signIn" | "signUp" | "forceNewPassword" | "confirmResetPassword" | "confirmSignIn" | "confirmSignUp" | "confirmVerifyUser" | "resetPassword" | "setupTOTP" | "setup" | "authenticated" | "autoSignIn" | "signOut" | "verifyUser";
49
48
  user: import("@aws-amplify/ui").CognitoUserAmplify;
50
- validationErrors: {
51
- [x: string]: string | string[];
52
- };
53
- codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
49
+ validationErrors: Record<string, string | string[]>;
54
50
  };
55
51
  onInput(event: Event): void;
56
52
  onSubmit(event: Event): void;
@@ -1,5 +1,5 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { FormFields, FormFieldsArray } from '@aws-amplify/ui';
2
+ import { FormFieldsArray } from '@aws-amplify/ui';
3
3
  import { AuthenticatorService } from '../../../../services/authenticator.service';
4
4
  export declare class SetupTotpComponent implements OnInit {
5
5
  authenticator: AuthenticatorService;
@@ -11,13 +11,12 @@ export declare class SetupTotpComponent implements OnInit {
11
11
  backToSignInText: string;
12
12
  confirmText: string;
13
13
  sortedFormFields: FormFieldsArray;
14
- formOverrides: FormFields;
15
14
  constructor(authenticator: AuthenticatorService);
16
- ngOnInit(): void;
15
+ ngOnInit(): Promise<void>;
17
16
  get context(): {
18
17
  $implicit: {
19
- resendCode: (data?: Record<string | number | symbol, any>) => void;
20
18
  signOut: (data?: Record<string | number | symbol, any>) => void;
19
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
21
20
  submitForm: (data?: Record<string | number | symbol, any>) => void;
22
21
  updateForm: (data?: Record<string | number | symbol, any>) => void;
23
22
  updateBlur: (data?: Record<string | number | symbol, any>) => void;
@@ -26,19 +25,17 @@ export declare class SetupTotpComponent implements OnInit {
26
25
  toSignIn: (data?: Record<string | number | symbol, any>) => void;
27
26
  toSignUp: (data?: Record<string | number | symbol, any>) => void;
28
27
  skipVerification: (data?: Record<string | number | symbol, any>) => void;
28
+ authStatus: "authenticated" | "configuring" | "unauthenticated";
29
+ codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
29
30
  error: string;
30
31
  hasValidationErrors: boolean;
31
32
  isPending: boolean;
32
- route: string;
33
- authStatus: string;
33
+ route: "idle" | "signIn" | "signUp" | "forceNewPassword" | "confirmResetPassword" | "confirmSignIn" | "confirmSignUp" | "confirmVerifyUser" | "resetPassword" | "setupTOTP" | "setup" | "authenticated" | "autoSignIn" | "signOut" | "verifyUser";
34
34
  user: import("@aws-amplify/ui").CognitoUserAmplify;
35
- validationErrors: {
36
- [x: string]: string | string[];
37
- };
38
- codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
35
+ validationErrors: Record<string, string | string[]>;
39
36
  };
40
- resendCode: (data?: Record<string | number | symbol, any>) => void;
41
37
  signOut: (data?: Record<string | number | symbol, any>) => void;
38
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
42
39
  submitForm: (data?: Record<string | number | symbol, any>) => void;
43
40
  updateForm: (data?: Record<string | number | symbol, any>) => void;
44
41
  updateBlur: (data?: Record<string | number | symbol, any>) => void;
@@ -47,16 +44,14 @@ export declare class SetupTotpComponent implements OnInit {
47
44
  toSignIn: (data?: Record<string | number | symbol, any>) => void;
48
45
  toSignUp: (data?: Record<string | number | symbol, any>) => void;
49
46
  skipVerification: (data?: Record<string | number | symbol, any>) => void;
47
+ authStatus: "authenticated" | "configuring" | "unauthenticated";
48
+ codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
50
49
  error: string;
51
50
  hasValidationErrors: boolean;
52
51
  isPending: boolean;
53
- route: string;
54
- authStatus: string;
52
+ route: "idle" | "signIn" | "signUp" | "forceNewPassword" | "confirmResetPassword" | "confirmSignIn" | "confirmSignUp" | "confirmVerifyUser" | "resetPassword" | "setupTOTP" | "setup" | "authenticated" | "autoSignIn" | "signOut" | "verifyUser";
55
53
  user: import("@aws-amplify/ui").CognitoUserAmplify;
56
- validationErrors: {
57
- [x: string]: string | string[];
58
- };
59
- codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
54
+ validationErrors: Record<string, string | string[]>;
60
55
  };
61
56
  generateQRCode(): Promise<void>;
62
57
  onInput(event: Event): void;
@@ -9,8 +9,8 @@ export declare class SignInComponent {
9
9
  constructor(authenticator: AuthenticatorService);
10
10
  get context(): {
11
11
  $implicit: {
12
- resendCode: (data?: Record<string | number | symbol, any>) => void;
13
12
  signOut: (data?: Record<string | number | symbol, any>) => void;
13
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
14
14
  submitForm: (data?: Record<string | number | symbol, any>) => void;
15
15
  updateForm: (data?: Record<string | number | symbol, any>) => void;
16
16
  updateBlur: (data?: Record<string | number | symbol, any>) => void;
@@ -19,19 +19,17 @@ export declare class SignInComponent {
19
19
  toSignIn: (data?: Record<string | number | symbol, any>) => void;
20
20
  toSignUp: (data?: Record<string | number | symbol, any>) => void;
21
21
  skipVerification: (data?: Record<string | number | symbol, any>) => void;
22
+ authStatus: "authenticated" | "configuring" | "unauthenticated";
23
+ codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
22
24
  error: string;
23
25
  hasValidationErrors: boolean;
24
26
  isPending: boolean;
25
- route: string;
26
- authStatus: string;
27
+ route: "idle" | "signIn" | "signUp" | "forceNewPassword" | "confirmResetPassword" | "confirmSignIn" | "confirmSignUp" | "confirmVerifyUser" | "resetPassword" | "setupTOTP" | "setup" | "authenticated" | "autoSignIn" | "signOut" | "verifyUser";
27
28
  user: import("@aws-amplify/ui").CognitoUserAmplify;
28
- validationErrors: {
29
- [x: string]: string | string[];
30
- };
31
- codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
29
+ validationErrors: Record<string, string | string[]>;
32
30
  };
33
- resendCode: (data?: Record<string | number | symbol, any>) => void;
34
31
  signOut: (data?: Record<string | number | symbol, any>) => void;
32
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
35
33
  submitForm: (data?: Record<string | number | symbol, any>) => void;
36
34
  updateForm: (data?: Record<string | number | symbol, any>) => void;
37
35
  updateBlur: (data?: Record<string | number | symbol, any>) => void;
@@ -40,16 +38,14 @@ export declare class SignInComponent {
40
38
  toSignIn: (data?: Record<string | number | symbol, any>) => void;
41
39
  toSignUp: (data?: Record<string | number | symbol, any>) => void;
42
40
  skipVerification: (data?: Record<string | number | symbol, any>) => void;
41
+ authStatus: "authenticated" | "configuring" | "unauthenticated";
42
+ codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
43
43
  error: string;
44
44
  hasValidationErrors: boolean;
45
45
  isPending: boolean;
46
- route: string;
47
- authStatus: string;
46
+ route: "idle" | "signIn" | "signUp" | "forceNewPassword" | "confirmResetPassword" | "confirmSignIn" | "confirmSignUp" | "confirmVerifyUser" | "resetPassword" | "setupTOTP" | "setup" | "authenticated" | "autoSignIn" | "signOut" | "verifyUser";
48
47
  user: import("@aws-amplify/ui").CognitoUserAmplify;
49
- validationErrors: {
50
- [x: string]: string | string[];
51
- };
52
- codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
48
+ validationErrors: Record<string, string | string[]>;
53
49
  };
54
50
  onInput(event: Event): void;
55
51
  onSubmit(event: Event): void;
@@ -6,8 +6,8 @@ export declare class SignUpComponent {
6
6
  constructor(authenticator: AuthenticatorService);
7
7
  get context(): {
8
8
  $implicit: {
9
- resendCode: (data?: Record<string | number | symbol, any>) => void;
10
9
  signOut: (data?: Record<string | number | symbol, any>) => void;
10
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
11
11
  submitForm: (data?: Record<string | number | symbol, any>) => void;
12
12
  updateForm: (data?: Record<string | number | symbol, any>) => void;
13
13
  updateBlur: (data?: Record<string | number | symbol, any>) => void;
@@ -16,19 +16,17 @@ export declare class SignUpComponent {
16
16
  toSignIn: (data?: Record<string | number | symbol, any>) => void;
17
17
  toSignUp: (data?: Record<string | number | symbol, any>) => void;
18
18
  skipVerification: (data?: Record<string | number | symbol, any>) => void;
19
+ authStatus: "authenticated" | "configuring" | "unauthenticated";
20
+ codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
19
21
  error: string;
20
22
  hasValidationErrors: boolean;
21
23
  isPending: boolean;
22
- route: string;
23
- authStatus: string;
24
+ route: "idle" | "signIn" | "signUp" | "forceNewPassword" | "confirmResetPassword" | "confirmSignIn" | "confirmSignUp" | "confirmVerifyUser" | "resetPassword" | "setupTOTP" | "setup" | "authenticated" | "autoSignIn" | "signOut" | "verifyUser";
24
25
  user: import("@aws-amplify/ui").CognitoUserAmplify;
25
- validationErrors: {
26
- [x: string]: string | string[];
27
- };
28
- codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
26
+ validationErrors: Record<string, string | string[]>;
29
27
  };
30
- resendCode: (data?: Record<string | number | symbol, any>) => void;
31
28
  signOut: (data?: Record<string | number | symbol, any>) => void;
29
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
32
30
  submitForm: (data?: Record<string | number | symbol, any>) => void;
33
31
  updateForm: (data?: Record<string | number | symbol, any>) => void;
34
32
  updateBlur: (data?: Record<string | number | symbol, any>) => void;
@@ -37,16 +35,14 @@ export declare class SignUpComponent {
37
35
  toSignIn: (data?: Record<string | number | symbol, any>) => void;
38
36
  toSignUp: (data?: Record<string | number | symbol, any>) => void;
39
37
  skipVerification: (data?: Record<string | number | symbol, any>) => void;
38
+ authStatus: "authenticated" | "configuring" | "unauthenticated";
39
+ codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
40
40
  error: string;
41
41
  hasValidationErrors: boolean;
42
42
  isPending: boolean;
43
- route: string;
44
- authStatus: string;
43
+ route: "idle" | "signIn" | "signUp" | "forceNewPassword" | "confirmResetPassword" | "confirmSignIn" | "confirmSignUp" | "confirmVerifyUser" | "resetPassword" | "setupTOTP" | "setup" | "authenticated" | "autoSignIn" | "signOut" | "verifyUser";
45
44
  user: import("@aws-amplify/ui").CognitoUserAmplify;
46
- validationErrors: {
47
- [x: string]: string | string[];
48
- };
49
- codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
45
+ validationErrors: Record<string, string | string[]>;
50
46
  };
51
47
  onInput(event: Event): void;
52
48
  onSubmit(event: Event): void;
@@ -12,8 +12,8 @@ export declare class VerifyUserComponent implements OnInit {
12
12
  ngOnInit(): void;
13
13
  get context(): {
14
14
  $implicit: {
15
- resendCode: (data?: Record<string | number | symbol, any>) => void;
16
15
  signOut: (data?: Record<string | number | symbol, any>) => void;
16
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
17
17
  submitForm: (data?: Record<string | number | symbol, any>) => void;
18
18
  updateForm: (data?: Record<string | number | symbol, any>) => void;
19
19
  updateBlur: (data?: Record<string | number | symbol, any>) => void;
@@ -22,19 +22,17 @@ export declare class VerifyUserComponent implements OnInit {
22
22
  toSignIn: (data?: Record<string | number | symbol, any>) => void;
23
23
  toSignUp: (data?: Record<string | number | symbol, any>) => void;
24
24
  skipVerification: (data?: Record<string | number | symbol, any>) => void;
25
+ authStatus: "authenticated" | "configuring" | "unauthenticated";
26
+ codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
25
27
  error: string;
26
28
  hasValidationErrors: boolean;
27
29
  isPending: boolean;
28
- route: string;
29
- authStatus: string;
30
+ route: "idle" | "signIn" | "signUp" | "forceNewPassword" | "confirmResetPassword" | "confirmSignIn" | "confirmSignUp" | "confirmVerifyUser" | "resetPassword" | "setupTOTP" | "setup" | "authenticated" | "autoSignIn" | "signOut" | "verifyUser";
30
31
  user: import("@aws-amplify/ui").CognitoUserAmplify;
31
- validationErrors: {
32
- [x: string]: string | string[];
33
- };
34
- codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
32
+ validationErrors: Record<string, string | string[]>;
35
33
  };
36
- resendCode: (data?: Record<string | number | symbol, any>) => void;
37
34
  signOut: (data?: Record<string | number | symbol, any>) => void;
35
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
38
36
  submitForm: (data?: Record<string | number | symbol, any>) => void;
39
37
  updateForm: (data?: Record<string | number | symbol, any>) => void;
40
38
  updateBlur: (data?: Record<string | number | symbol, any>) => void;
@@ -43,16 +41,14 @@ export declare class VerifyUserComponent implements OnInit {
43
41
  toSignIn: (data?: Record<string | number | symbol, any>) => void;
44
42
  toSignUp: (data?: Record<string | number | symbol, any>) => void;
45
43
  skipVerification: (data?: Record<string | number | symbol, any>) => void;
44
+ authStatus: "authenticated" | "configuring" | "unauthenticated";
45
+ codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
46
46
  error: string;
47
47
  hasValidationErrors: boolean;
48
48
  isPending: boolean;
49
- route: string;
50
- authStatus: string;
49
+ route: "idle" | "signIn" | "signUp" | "forceNewPassword" | "confirmResetPassword" | "confirmSignIn" | "confirmSignUp" | "confirmVerifyUser" | "resetPassword" | "setupTOTP" | "setup" | "authenticated" | "autoSignIn" | "signOut" | "verifyUser";
51
50
  user: import("@aws-amplify/ui").CognitoUserAmplify;
52
- validationErrors: {
53
- [x: string]: string | string[];
54
- };
55
- codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
51
+ validationErrors: Record<string, string | string[]>;
56
52
  };
57
53
  getLabelForAttr(authAttr: string): string;
58
54
  onInput(event: Event): void;
@@ -19,12 +19,10 @@ export declare class AuthenticatorService implements OnDestroy {
19
19
  get error(): string;
20
20
  get hasValidationErrors(): boolean;
21
21
  get isPending(): boolean;
22
- get route(): string;
23
- get authStatus(): string;
22
+ get route(): "idle" | "signIn" | "signUp" | "forceNewPassword" | "confirmResetPassword" | "confirmSignIn" | "confirmSignUp" | "confirmVerifyUser" | "resetPassword" | "setupTOTP" | "setup" | "authenticated" | "autoSignIn" | "signOut" | "verifyUser";
23
+ get authStatus(): "authenticated" | "configuring" | "unauthenticated";
24
24
  get user(): import("@aws-amplify/ui").CognitoUserAmplify;
25
- get validationErrors(): {
26
- [x: string]: string | string[];
27
- };
25
+ get validationErrors(): Record<string, string | string[]>;
28
26
  get codeDeliveryDetails(): import("@aws-amplify/ui").CodeDeliveryDetails;
29
27
  /**
30
28
  * Service facades
@@ -54,8 +52,8 @@ export declare class AuthenticatorService implements OnDestroy {
54
52
  /** @deprecated For internal use only */
55
53
  get slotContext(): {
56
54
  $implicit: {
57
- resendCode: (data?: Record<string | number | symbol, any>) => void;
58
55
  signOut: (data?: Record<string | number | symbol, any>) => void;
56
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
59
57
  submitForm: (data?: Record<string | number | symbol, any>) => void;
60
58
  updateForm: (data?: Record<string | number | symbol, any>) => void;
61
59
  updateBlur: (data?: Record<string | number | symbol, any>) => void;
@@ -64,21 +62,17 @@ export declare class AuthenticatorService implements OnDestroy {
64
62
  toSignIn: (data?: Record<string | number | symbol, any>) => void;
65
63
  toSignUp: (data?: Record<string | number | symbol, any>) => void;
66
64
  skipVerification: (data?: Record<string | number | symbol, any>) => void;
65
+ authStatus: "authenticated" | "configuring" | "unauthenticated";
66
+ codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
67
67
  error: string;
68
68
  hasValidationErrors: boolean;
69
- isPending: boolean; /**
70
- * Context facades
71
- */
72
- route: string;
73
- authStatus: string;
69
+ isPending: boolean;
70
+ route: "idle" | "signIn" | "signUp" | "forceNewPassword" | "confirmResetPassword" | "confirmSignIn" | "confirmSignUp" | "confirmVerifyUser" | "resetPassword" | "setupTOTP" | "setup" | "authenticated" | "autoSignIn" | "signOut" | "verifyUser";
74
71
  user: import("@aws-amplify/ui").CognitoUserAmplify;
75
- validationErrors: {
76
- [x: string]: string | string[];
77
- };
78
- codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
72
+ validationErrors: Record<string, string | string[]>;
79
73
  };
80
- resendCode: (data?: Record<string | number | symbol, any>) => void;
81
74
  signOut: (data?: Record<string | number | symbol, any>) => void;
75
+ resendCode: (data?: Record<string | number | symbol, any>) => void;
82
76
  submitForm: (data?: Record<string | number | symbol, any>) => void;
83
77
  updateForm: (data?: Record<string | number | symbol, any>) => void;
84
78
  updateBlur: (data?: Record<string | number | symbol, any>) => void;
@@ -87,18 +81,14 @@ export declare class AuthenticatorService implements OnDestroy {
87
81
  toSignIn: (data?: Record<string | number | symbol, any>) => void;
88
82
  toSignUp: (data?: Record<string | number | symbol, any>) => void;
89
83
  skipVerification: (data?: Record<string | number | symbol, any>) => void;
84
+ authStatus: "authenticated" | "configuring" | "unauthenticated";
85
+ codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
90
86
  error: string;
91
87
  hasValidationErrors: boolean;
92
- isPending: boolean; /**
93
- * Context facades
94
- */
95
- route: string;
96
- authStatus: string;
88
+ isPending: boolean;
89
+ route: "idle" | "signIn" | "signUp" | "forceNewPassword" | "confirmResetPassword" | "confirmSignIn" | "confirmSignUp" | "confirmVerifyUser" | "resetPassword" | "setupTOTP" | "setup" | "authenticated" | "autoSignIn" | "signOut" | "verifyUser";
97
90
  user: import("@aws-amplify/ui").CognitoUserAmplify;
98
- validationErrors: {
99
- [x: string]: string | string[];
100
- };
101
- codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
91
+ validationErrors: Record<string, string | string[]>;
102
92
  };
103
93
  /** @deprecated For internal use only */
104
94
  subscribe(callback: AuthSubscriptionCallback): Subscription;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui-angular",
3
- "version": "2.4.19",
3
+ "version": "2.4.20",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "@aws-amplify/ui-components": "^1.7.0",
15
- "@aws-amplify/ui": "3.13.1",
15
+ "@aws-amplify/ui": "3.13.2",
16
16
  "@stencil/core": "2.8.0",
17
17
  "nanoid": "3.1.31",
18
18
  "qrcode": "1.5.0",