@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.
- package/aws-amplify-ui-angular.metadata.json +1 -1
- package/bundles/aws-amplify-ui-angular.umd.js +11 -14
- package/bundles/aws-amplify-ui-angular.umd.js.map +1 -1
- package/bundles/aws-amplify-ui-angular.umd.min.js +1 -1
- package/bundles/aws-amplify-ui-angular.umd.min.js.map +1 -1
- package/esm2015/lib/components/amplify-authenticator/amplify-authenticator.component.js +4 -8
- package/esm2015/lib/primitives/phone-number-field/phone-number-field.component.js +2 -2
- package/esm2015/lib/primitives/tabs/tabs.component.js +3 -2
- package/esm2015/lib/services/state-machine.service.js +6 -7
- package/fesm2015/aws-amplify-ui-angular.js +11 -15
- package/fesm2015/aws-amplify-ui-angular.js.map +1 -1
- package/lib/components/amplify-authenticator/amplify-authenticator.component.d.ts +3 -4
- package/lib/services/state-machine.service.d.ts +2 -2
- package/package.json +2 -2
- package/styles/component.css +0 -5
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { AfterContentInit, OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
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:
|
|
14
|
-
loginMechanisms:
|
|
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
|
|
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
|
|
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.
|
|
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.
|
|
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",
|