@aws-amplify/ui-angular 2.0.1-next.5 → 2.0.1-next.6

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,7 +1,6 @@
1
1
  import { AfterContentInit, OnInit } from '@angular/core';
2
- import { LoginMechanism } from '@aws-amplify/ui';
2
+ import { AuthenticatorMachineOptions } from '@aws-amplify/ui';
3
3
  import { CustomComponents } from '../../common';
4
- import { AuthState } from '../../common/types';
5
4
  import { AuthPropService } from '../../services/authenticator-context.service';
6
5
  import { StateMachineService } from '../../services/state-machine.service';
7
6
  export declare class AmplifyAuthenticatorComponent implements OnInit, AfterContentInit {
@@ -10,8 +9,8 @@ export declare class AmplifyAuthenticatorComponent implements OnInit, AfterConte
10
9
  /**
11
10
  * TODO: Add back custom events
12
11
  */
13
- initialState: AuthState;
14
- loginMechanisms: LoginMechanism[];
12
+ initialState: AuthenticatorMachineOptions['initialState'];
13
+ loginMechanisms: AuthenticatorMachineOptions['loginMechanisms'];
15
14
  private customComponentQuery;
16
15
  customComponents: CustomComponents;
17
16
  signInTitle: string;
@@ -1,4 +1,4 @@
1
- import { AuthContext, AuthEvent, AuthInterpreter, AuthMachineState, LoginMechanism } from '@aws-amplify/ui';
1
+ import { AuthContext, AuthenticatorMachineOptions, AuthEvent, AuthInterpreter, AuthMachineState } from '@aws-amplify/ui';
2
2
  import { Event } from 'xstate';
3
3
  /**
4
4
  * AmplifyContextService contains access to the xstate machine
@@ -9,7 +9,7 @@ export declare class StateMachineService {
9
9
  private _authService;
10
10
  private _user;
11
11
  private _services;
12
- startMachine(loginMechanisms?: LoginMechanism[]): void;
12
+ startMachine({ initialState, loginMechanisms, }: AuthenticatorMachineOptions): void;
13
13
  get services(): {
14
14
  readonly change: (data?: Record<string | number | symbol, any>) => void;
15
15
  readonly federatedSignIn: (data?: Record<string | number | symbol, any>) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui-angular",
3
- "version": "2.0.1-next.5",
3
+ "version": "2.0.1-next.6",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^11.2.4",
6
6
  "@angular/core": "^11.2.4",
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "dependencies": {
10
10
  "@aws-amplify/ui-components": "^1.7.0",
11
- "@aws-amplify/ui": "3.0.1-next.5",
11
+ "@aws-amplify/ui": "3.0.1-next.6",
12
12
  "@stencil/core": "^2.7.0",
13
13
  "nanoid": "^3.1.25",
14
14
  "qrcode": "^1.4.4",
@@ -1,9 +1,4 @@
1
1
  [data-amplify-authenticator] {
2
- margin-left: auto;
3
- margin-right: auto;
4
- max-width: 36rem;
5
- overflow: hidden;
6
- border-radius: 0.375rem;
7
2
  font-size: 1rem;
8
3
  line-height: 1.5rem;
9
4
  --tw-text-opacity: 1;