@aws-amplify/ui-angular 3.2.15 → 3.2.17

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 (21) hide show
  1. package/bundles/aws-amplify-ui-angular.umd.js +147 -101
  2. package/bundles/aws-amplify-ui-angular.umd.js.map +1 -1
  3. package/esm2015/lib/components/authenticator/components/authenticator/authenticator.component.js +7 -11
  4. package/esm2015/lib/services/authenticator.service.js +52 -15
  5. package/esm2015/version.js +2 -2
  6. package/fesm2015/aws-amplify-ui-angular.js +57 -25
  7. package/fesm2015/aws-amplify-ui-angular.js.map +1 -1
  8. package/lib/components/authenticator/components/authenticator/authenticator.component.d.ts +1 -2
  9. package/lib/components/authenticator/components/confirm-reset-password/amplify-confirm-reset-password.component.d.ts +1 -1
  10. package/lib/components/authenticator/components/confirm-sign-in/confirm-sign-in.component.d.ts +1 -1
  11. package/lib/components/authenticator/components/confirm-sign-up/confirm-sign-up.component.d.ts +1 -1
  12. package/lib/components/authenticator/components/confirm-verify-user/amplify-confirm-verify-user.component.d.ts +1 -1
  13. package/lib/components/authenticator/components/force-new-password/force-new-password.component.d.ts +1 -1
  14. package/lib/components/authenticator/components/reset-password/reset-password.component.d.ts +1 -1
  15. package/lib/components/authenticator/components/setup-totp/setup-totp.component.d.ts +1 -1
  16. package/lib/components/authenticator/components/sign-in/sign-in.component.d.ts +1 -1
  17. package/lib/components/authenticator/components/sign-up/sign-up.component.d.ts +1 -1
  18. package/lib/components/authenticator/components/verify-user/verify-user.component.d.ts +1 -1
  19. package/lib/services/authenticator.service.d.ts +12 -3
  20. package/package.json +2 -2
  21. package/version.d.ts +1 -1
@@ -21,7 +21,6 @@ export declare class AuthenticatorComponent implements OnInit, AfterContentInit,
21
21
  private hasInitialized;
22
22
  private isHandlingHubEvent;
23
23
  private unsubscribeMachine;
24
- private unsubscribeHub;
25
24
  constructor(authenticator: AuthenticatorService, contextService: CustomComponentsService, changeDetector: ChangeDetectorRef);
26
25
  ngOnInit(): void;
27
26
  /**
@@ -45,7 +44,7 @@ export declare class AuthenticatorComponent implements OnInit, AfterContentInit,
45
44
  toSignIn: (data?: import("@aws-amplify/ui").AuthEventData) => void;
46
45
  toSignUp: (data?: import("@aws-amplify/ui").AuthEventData) => void;
47
46
  skipVerification: (data?: import("@aws-amplify/ui").AuthEventData) => void;
48
- authStatus: "authenticated" | "configuring" | "unauthenticated";
47
+ authStatus: import("@aws-amplify/ui").AuthStatus;
49
48
  codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
50
49
  error: string;
51
50
  hasValidationErrors: boolean;
@@ -23,7 +23,7 @@ export declare class ConfirmResetPasswordComponent {
23
23
  toSignIn: (data?: import("@aws-amplify/ui").AuthEventData) => void;
24
24
  toSignUp: (data?: import("@aws-amplify/ui").AuthEventData) => void;
25
25
  skipVerification: (data?: import("@aws-amplify/ui").AuthEventData) => void;
26
- authStatus: "authenticated" | "configuring" | "unauthenticated";
26
+ authStatus: import("@aws-amplify/ui").AuthStatus;
27
27
  codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
28
28
  error: string;
29
29
  hasValidationErrors: boolean;
@@ -24,7 +24,7 @@ export declare class ConfirmSignInComponent implements OnInit {
24
24
  toSignIn: (data?: import("@aws-amplify/ui").AuthEventData) => void;
25
25
  toSignUp: (data?: import("@aws-amplify/ui").AuthEventData) => void;
26
26
  skipVerification: (data?: import("@aws-amplify/ui").AuthEventData) => void;
27
- authStatus: "authenticated" | "configuring" | "unauthenticated";
27
+ authStatus: import("@aws-amplify/ui").AuthStatus;
28
28
  codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
29
29
  error: string;
30
30
  hasValidationErrors: boolean;
@@ -21,7 +21,7 @@ export declare class ConfirmSignUpComponent {
21
21
  toSignIn: (data?: import("@aws-amplify/ui").AuthEventData) => void;
22
22
  toSignUp: (data?: import("@aws-amplify/ui").AuthEventData) => void;
23
23
  skipVerification: (data?: import("@aws-amplify/ui").AuthEventData) => void;
24
- authStatus: "authenticated" | "configuring" | "unauthenticated";
24
+ authStatus: import("@aws-amplify/ui").AuthStatus;
25
25
  codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
26
26
  error: string;
27
27
  hasValidationErrors: boolean;
@@ -22,7 +22,7 @@ export declare class ConfirmVerifyUserComponent {
22
22
  toSignIn: (data?: import("@aws-amplify/ui").AuthEventData) => void;
23
23
  toSignUp: (data?: import("@aws-amplify/ui").AuthEventData) => void;
24
24
  skipVerification: (data?: import("@aws-amplify/ui").AuthEventData) => void;
25
- authStatus: "authenticated" | "configuring" | "unauthenticated";
25
+ authStatus: import("@aws-amplify/ui").AuthStatus;
26
26
  codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
27
27
  error: string;
28
28
  hasValidationErrors: boolean;
@@ -20,7 +20,7 @@ export declare class ForceNewPasswordComponent {
20
20
  toSignIn: (data?: import("@aws-amplify/ui").AuthEventData) => void;
21
21
  toSignUp: (data?: import("@aws-amplify/ui").AuthEventData) => void;
22
22
  skipVerification: (data?: import("@aws-amplify/ui").AuthEventData) => void;
23
- authStatus: "authenticated" | "configuring" | "unauthenticated";
23
+ authStatus: import("@aws-amplify/ui").AuthStatus;
24
24
  codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
25
25
  error: string;
26
26
  hasValidationErrors: boolean;
@@ -22,7 +22,7 @@ export declare class ResetPasswordComponent {
22
22
  toSignIn: (data?: import("@aws-amplify/ui").AuthEventData) => void;
23
23
  toSignUp: (data?: import("@aws-amplify/ui").AuthEventData) => void;
24
24
  skipVerification: (data?: import("@aws-amplify/ui").AuthEventData) => void;
25
- authStatus: "authenticated" | "configuring" | "unauthenticated";
25
+ authStatus: import("@aws-amplify/ui").AuthStatus;
26
26
  codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
27
27
  error: string;
28
28
  hasValidationErrors: boolean;
@@ -27,7 +27,7 @@ export declare class SetupTotpComponent implements OnInit {
27
27
  toSignIn: (data?: import("@aws-amplify/ui").AuthEventData) => void;
28
28
  toSignUp: (data?: import("@aws-amplify/ui").AuthEventData) => void;
29
29
  skipVerification: (data?: import("@aws-amplify/ui").AuthEventData) => void;
30
- authStatus: "authenticated" | "configuring" | "unauthenticated";
30
+ authStatus: import("@aws-amplify/ui").AuthStatus;
31
31
  codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
32
32
  error: string;
33
33
  hasValidationErrors: boolean;
@@ -21,7 +21,7 @@ export declare class SignInComponent {
21
21
  toSignIn: (data?: import("@aws-amplify/ui").AuthEventData) => void;
22
22
  toSignUp: (data?: import("@aws-amplify/ui").AuthEventData) => void;
23
23
  skipVerification: (data?: import("@aws-amplify/ui").AuthEventData) => void;
24
- authStatus: "authenticated" | "configuring" | "unauthenticated";
24
+ authStatus: import("@aws-amplify/ui").AuthStatus;
25
25
  codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
26
26
  error: string;
27
27
  hasValidationErrors: boolean;
@@ -18,7 +18,7 @@ export declare class SignUpComponent {
18
18
  toSignIn: (data?: import("@aws-amplify/ui").AuthEventData) => void;
19
19
  toSignUp: (data?: import("@aws-amplify/ui").AuthEventData) => void;
20
20
  skipVerification: (data?: import("@aws-amplify/ui").AuthEventData) => void;
21
- authStatus: "authenticated" | "configuring" | "unauthenticated";
21
+ authStatus: import("@aws-amplify/ui").AuthStatus;
22
22
  codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
23
23
  error: string;
24
24
  hasValidationErrors: boolean;
@@ -24,7 +24,7 @@ export declare class VerifyUserComponent implements OnInit {
24
24
  toSignIn: (data?: import("@aws-amplify/ui").AuthEventData) => void;
25
25
  toSignUp: (data?: import("@aws-amplify/ui").AuthEventData) => void;
26
26
  skipVerification: (data?: import("@aws-amplify/ui").AuthEventData) => void;
27
- authStatus: "authenticated" | "configuring" | "unauthenticated";
27
+ authStatus: import("@aws-amplify/ui").AuthStatus;
28
28
  codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
29
29
  error: string;
30
30
  hasValidationErrors: boolean;
@@ -1,6 +1,7 @@
1
1
  import { OnDestroy } from '@angular/core';
2
- import { AuthContext, AuthEvent, AuthInterpreter, AuthMachineState } from '@aws-amplify/ui';
2
+ import { Subject } from 'rxjs';
3
3
  import { Event, Subscription } from 'xstate';
4
+ import { AuthContext, AuthEvent, AuthInterpreter, AuthMachineState, AuthStatus } from '@aws-amplify/ui';
4
5
  import { AuthSubscriptionCallback } from '../common';
5
6
  import * as i0 from "@angular/core";
6
7
  /**
@@ -8,9 +9,12 @@ import * as i0 from "@angular/core";
8
9
  */
9
10
  export declare class AuthenticatorService implements OnDestroy {
10
11
  private _authState;
12
+ private _authStatus;
11
13
  private _authService;
12
14
  private _machineSubscription;
13
15
  private _facade;
16
+ private _hubSubject;
17
+ private _unsubscribeHub;
14
18
  constructor();
15
19
  ngOnDestroy(): void;
16
20
  /**
@@ -20,7 +24,7 @@ export declare class AuthenticatorService implements OnDestroy {
20
24
  get hasValidationErrors(): boolean;
21
25
  get isPending(): boolean;
22
26
  get route(): import("@aws-amplify/ui").AuthenticatorRoute;
23
- get authStatus(): "authenticated" | "configuring" | "unauthenticated";
27
+ get authStatus(): AuthStatus;
24
28
  get user(): import("@aws-amplify/ui").AmplifyUser;
25
29
  get validationErrors(): import("@aws-amplify/ui").ValidationError;
26
30
  get codeDeliveryDetails(): import("@aws-amplify/ui").CodeDeliveryDetails;
@@ -65,7 +69,7 @@ export declare class AuthenticatorService implements OnDestroy {
65
69
  toSignIn: (data?: import("@aws-amplify/ui").AuthEventData) => void;
66
70
  toSignUp: (data?: import("@aws-amplify/ui").AuthEventData) => void;
67
71
  skipVerification: (data?: import("@aws-amplify/ui").AuthEventData) => void;
68
- authStatus: "authenticated" | "configuring" | "unauthenticated";
72
+ authStatus: AuthStatus;
69
73
  codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
70
74
  error: string;
71
75
  hasValidationErrors: boolean;
@@ -77,9 +81,14 @@ export declare class AuthenticatorService implements OnDestroy {
77
81
  user: import("@aws-amplify/ui").AmplifyUser;
78
82
  validationErrors: import("@aws-amplify/ui").ValidationError;
79
83
  };
84
+ /** @deprecated For internal use only */
85
+ get hubSubject(): Subject<void>;
80
86
  subscribe(callback: AuthSubscriptionCallback): Subscription;
81
87
  /** @deprecated For internal use only */
82
88
  send(event: Event<AuthEvent>): void;
89
+ private getInitialAuthStatus;
90
+ private setupHubListener;
91
+ private setupMachineSubscription;
83
92
  static ɵfac: i0.ɵɵFactoryDeclaration<AuthenticatorService, never>;
84
93
  static ɵprov: i0.ɵɵInjectableDeclaration<AuthenticatorService>;
85
94
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui-angular",
3
- "version": "3.2.15",
3
+ "version": "3.2.17",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -11,7 +11,7 @@
11
11
  "aws-amplify": ">= 5.0.1"
12
12
  },
13
13
  "dependencies": {
14
- "@aws-amplify/ui": "5.6.1",
14
+ "@aws-amplify/ui": "5.6.3",
15
15
  "classnames": "2.3.1",
16
16
  "nanoid": "3.1.31",
17
17
  "qrcode": "1.5.0",
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "3.2.15";
1
+ export declare const VERSION = "3.2.17";