@aws-amplify/ui-angular 3.2.16 → 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.
@@ -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
  /**
@@ -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(): import("@aws-amplify/ui").AuthStatus;
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: import("@aws-amplify/ui").AuthStatus;
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.16",
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.2",
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.16";
1
+ export declare const VERSION = "3.2.17";