@aws-amplify/ui-angular 2.0.2 → 2.0.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 +64 -13
- 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/authenticator/authenticator.module.js +2 -3
- package/esm2015/lib/components/authenticator/components/authenticator/authenticator.component.js +6 -2
- package/esm2015/lib/components/authenticator/components/confirm-sign-up/confirm-sign-up.component.js +18 -2
- package/esm2015/lib/components/authenticator/components/form-field/form-field.component.js +7 -3
- package/esm2015/lib/primitives/password-field/password-field.component.js +6 -4
- package/esm2015/lib/primitives/tab-item/tab-item.component.js +5 -3
- package/esm2015/lib/services/authenticator.service.js +10 -2
- package/fesm2015/aws-amplify-ui-angular.js +44 -10
- package/fesm2015/aws-amplify-ui-angular.js.map +1 -1
- package/lib/components/authenticator/components/authenticator/authenticator.component.d.ts +6 -0
- package/lib/components/authenticator/components/confirm-reset-password/amplify-confirm-reset-password.component.d.ts +5 -0
- package/lib/components/authenticator/components/confirm-sign-in/confirm-sign-in.component.d.ts +5 -0
- package/lib/components/authenticator/components/confirm-sign-up/confirm-sign-up.component.d.ts +7 -0
- package/lib/components/authenticator/components/confirm-verify-user/amplify-confirm-verify-user.component.d.ts +5 -0
- package/lib/components/authenticator/components/force-new-password/force-new-password.component.d.ts +5 -0
- package/lib/components/authenticator/components/form-field/form-field.component.d.ts +1 -0
- package/lib/components/authenticator/components/reset-password/reset-password.component.d.ts +5 -0
- package/lib/components/authenticator/components/setup-totp/setup-totp.component.d.ts +5 -0
- package/lib/components/authenticator/components/sign-in/sign-in.component.d.ts +5 -0
- package/lib/components/authenticator/components/sign-up/sign-up.component.d.ts +5 -0
- package/lib/components/authenticator/components/verify-user/verify-user.component.d.ts +5 -0
- package/lib/primitives/password-field/password-field.component.d.ts +2 -0
- package/lib/primitives/tab-item/tab-item.component.d.ts +1 -0
- package/lib/services/authenticator.service.d.ts +7 -0
- package/package.json +2 -2
- package/theme.css +12 -0
package/lib/components/authenticator/components/reset-password/reset-password.component.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="amazon-cognito-identity-js" />
|
|
1
2
|
import { OnInit } from '@angular/core';
|
|
2
3
|
import { AuthenticatorService } from '../../../../services/authenticator.service';
|
|
3
4
|
export declare class ResetPasswordComponent implements OnInit {
|
|
@@ -15,6 +16,7 @@ export declare class ResetPasswordComponent implements OnInit {
|
|
|
15
16
|
signOut: (data?: Record<string | number | symbol, any>) => void;
|
|
16
17
|
submitForm: (data?: Record<string | number | symbol, any>) => void;
|
|
17
18
|
updateForm: (data?: Record<string | number | symbol, any>) => void;
|
|
19
|
+
updateBlur: (data?: Record<string | number | symbol, any>) => void;
|
|
18
20
|
toFederatedSignIn: (data?: Record<string | number | symbol, any>) => void;
|
|
19
21
|
toResetPassword: (data?: Record<string | number | symbol, any>) => void;
|
|
20
22
|
toSignIn: (data?: Record<string | number | symbol, any>) => void;
|
|
@@ -28,11 +30,13 @@ export declare class ResetPasswordComponent implements OnInit {
|
|
|
28
30
|
validationErrors: {
|
|
29
31
|
[x: string]: string;
|
|
30
32
|
};
|
|
33
|
+
codeDeliveryDetails: import("amazon-cognito-identity-js").CodeDeliveryDetails;
|
|
31
34
|
};
|
|
32
35
|
resendCode: (data?: Record<string | number | symbol, any>) => void;
|
|
33
36
|
signOut: (data?: Record<string | number | symbol, any>) => void;
|
|
34
37
|
submitForm: (data?: Record<string | number | symbol, any>) => void;
|
|
35
38
|
updateForm: (data?: Record<string | number | symbol, any>) => void;
|
|
39
|
+
updateBlur: (data?: Record<string | number | symbol, any>) => void;
|
|
36
40
|
toFederatedSignIn: (data?: Record<string | number | symbol, any>) => void;
|
|
37
41
|
toResetPassword: (data?: Record<string | number | symbol, any>) => void;
|
|
38
42
|
toSignIn: (data?: Record<string | number | symbol, any>) => void;
|
|
@@ -46,6 +50,7 @@ export declare class ResetPasswordComponent implements OnInit {
|
|
|
46
50
|
validationErrors: {
|
|
47
51
|
[x: string]: string;
|
|
48
52
|
};
|
|
53
|
+
codeDeliveryDetails: import("amazon-cognito-identity-js").CodeDeliveryDetails;
|
|
49
54
|
};
|
|
50
55
|
onInput(event: Event): void;
|
|
51
56
|
onSubmit(event: Event): void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="amazon-cognito-identity-js" />
|
|
1
2
|
import { OnInit } from '@angular/core';
|
|
2
3
|
import { AuthenticatorService } from '../../../../services/authenticator.service';
|
|
3
4
|
export declare class SetupTotpComponent implements OnInit {
|
|
@@ -15,6 +16,7 @@ export declare class SetupTotpComponent implements OnInit {
|
|
|
15
16
|
signOut: (data?: Record<string | number | symbol, any>) => void;
|
|
16
17
|
submitForm: (data?: Record<string | number | symbol, any>) => void;
|
|
17
18
|
updateForm: (data?: Record<string | number | symbol, any>) => void;
|
|
19
|
+
updateBlur: (data?: Record<string | number | symbol, any>) => void;
|
|
18
20
|
toFederatedSignIn: (data?: Record<string | number | symbol, any>) => void;
|
|
19
21
|
toResetPassword: (data?: Record<string | number | symbol, any>) => void;
|
|
20
22
|
toSignIn: (data?: Record<string | number | symbol, any>) => void;
|
|
@@ -28,11 +30,13 @@ export declare class SetupTotpComponent implements OnInit {
|
|
|
28
30
|
validationErrors: {
|
|
29
31
|
[x: string]: string;
|
|
30
32
|
};
|
|
33
|
+
codeDeliveryDetails: import("amazon-cognito-identity-js").CodeDeliveryDetails;
|
|
31
34
|
};
|
|
32
35
|
resendCode: (data?: Record<string | number | symbol, any>) => void;
|
|
33
36
|
signOut: (data?: Record<string | number | symbol, any>) => void;
|
|
34
37
|
submitForm: (data?: Record<string | number | symbol, any>) => void;
|
|
35
38
|
updateForm: (data?: Record<string | number | symbol, any>) => void;
|
|
39
|
+
updateBlur: (data?: Record<string | number | symbol, any>) => void;
|
|
36
40
|
toFederatedSignIn: (data?: Record<string | number | symbol, any>) => void;
|
|
37
41
|
toResetPassword: (data?: Record<string | number | symbol, any>) => void;
|
|
38
42
|
toSignIn: (data?: Record<string | number | symbol, any>) => void;
|
|
@@ -46,6 +50,7 @@ export declare class SetupTotpComponent implements OnInit {
|
|
|
46
50
|
validationErrors: {
|
|
47
51
|
[x: string]: string;
|
|
48
52
|
};
|
|
53
|
+
codeDeliveryDetails: import("amazon-cognito-identity-js").CodeDeliveryDetails;
|
|
49
54
|
};
|
|
50
55
|
generateQRCode(): Promise<void>;
|
|
51
56
|
onInput(event: Event): void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="amazon-cognito-identity-js" />
|
|
1
2
|
import { AuthenticatorService } from '../../../../services/authenticator.service';
|
|
2
3
|
export declare class SignInComponent {
|
|
3
4
|
authenticator: AuthenticatorService;
|
|
@@ -11,6 +12,7 @@ export declare class SignInComponent {
|
|
|
11
12
|
signOut: (data?: Record<string | number | symbol, any>) => void;
|
|
12
13
|
submitForm: (data?: Record<string | number | symbol, any>) => void;
|
|
13
14
|
updateForm: (data?: Record<string | number | symbol, any>) => void;
|
|
15
|
+
updateBlur: (data?: Record<string | number | symbol, any>) => void;
|
|
14
16
|
toFederatedSignIn: (data?: Record<string | number | symbol, any>) => void;
|
|
15
17
|
toResetPassword: (data?: Record<string | number | symbol, any>) => void;
|
|
16
18
|
toSignIn: (data?: Record<string | number | symbol, any>) => void;
|
|
@@ -24,11 +26,13 @@ export declare class SignInComponent {
|
|
|
24
26
|
validationErrors: {
|
|
25
27
|
[x: string]: string;
|
|
26
28
|
};
|
|
29
|
+
codeDeliveryDetails: import("amazon-cognito-identity-js").CodeDeliveryDetails;
|
|
27
30
|
};
|
|
28
31
|
resendCode: (data?: Record<string | number | symbol, any>) => void;
|
|
29
32
|
signOut: (data?: Record<string | number | symbol, any>) => void;
|
|
30
33
|
submitForm: (data?: Record<string | number | symbol, any>) => void;
|
|
31
34
|
updateForm: (data?: Record<string | number | symbol, any>) => void;
|
|
35
|
+
updateBlur: (data?: Record<string | number | symbol, any>) => void;
|
|
32
36
|
toFederatedSignIn: (data?: Record<string | number | symbol, any>) => void;
|
|
33
37
|
toResetPassword: (data?: Record<string | number | symbol, any>) => void;
|
|
34
38
|
toSignIn: (data?: Record<string | number | symbol, any>) => void;
|
|
@@ -42,6 +46,7 @@ export declare class SignInComponent {
|
|
|
42
46
|
validationErrors: {
|
|
43
47
|
[x: string]: string;
|
|
44
48
|
};
|
|
49
|
+
codeDeliveryDetails: import("amazon-cognito-identity-js").CodeDeliveryDetails;
|
|
45
50
|
};
|
|
46
51
|
onInput(event: Event): void;
|
|
47
52
|
onSubmit(event: Event): void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="amazon-cognito-identity-js" />
|
|
1
2
|
import { AuthenticatorService } from '../../../../services/authenticator.service';
|
|
2
3
|
export declare class SignUpComponent {
|
|
3
4
|
authenticator: AuthenticatorService;
|
|
@@ -10,6 +11,7 @@ export declare class SignUpComponent {
|
|
|
10
11
|
signOut: (data?: Record<string | number | symbol, any>) => void;
|
|
11
12
|
submitForm: (data?: Record<string | number | symbol, any>) => void;
|
|
12
13
|
updateForm: (data?: Record<string | number | symbol, any>) => void;
|
|
14
|
+
updateBlur: (data?: Record<string | number | symbol, any>) => void;
|
|
13
15
|
toFederatedSignIn: (data?: Record<string | number | symbol, any>) => void;
|
|
14
16
|
toResetPassword: (data?: Record<string | number | symbol, any>) => void;
|
|
15
17
|
toSignIn: (data?: Record<string | number | symbol, any>) => void;
|
|
@@ -23,11 +25,13 @@ export declare class SignUpComponent {
|
|
|
23
25
|
validationErrors: {
|
|
24
26
|
[x: string]: string;
|
|
25
27
|
};
|
|
28
|
+
codeDeliveryDetails: import("amazon-cognito-identity-js").CodeDeliveryDetails;
|
|
26
29
|
};
|
|
27
30
|
resendCode: (data?: Record<string | number | symbol, any>) => void;
|
|
28
31
|
signOut: (data?: Record<string | number | symbol, any>) => void;
|
|
29
32
|
submitForm: (data?: Record<string | number | symbol, any>) => void;
|
|
30
33
|
updateForm: (data?: Record<string | number | symbol, any>) => void;
|
|
34
|
+
updateBlur: (data?: Record<string | number | symbol, any>) => void;
|
|
31
35
|
toFederatedSignIn: (data?: Record<string | number | symbol, any>) => void;
|
|
32
36
|
toResetPassword: (data?: Record<string | number | symbol, any>) => void;
|
|
33
37
|
toSignIn: (data?: Record<string | number | symbol, any>) => void;
|
|
@@ -41,6 +45,7 @@ export declare class SignUpComponent {
|
|
|
41
45
|
validationErrors: {
|
|
42
46
|
[x: string]: string;
|
|
43
47
|
};
|
|
48
|
+
codeDeliveryDetails: import("amazon-cognito-identity-js").CodeDeliveryDetails;
|
|
44
49
|
};
|
|
45
50
|
onInput(event: Event): void;
|
|
46
51
|
onSubmit(event: Event): void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="amazon-cognito-identity-js" />
|
|
1
2
|
import { OnInit } from '@angular/core';
|
|
2
3
|
import { AuthenticatorService } from '../../../../services/authenticator.service';
|
|
3
4
|
export declare class VerifyUserComponent implements OnInit {
|
|
@@ -16,6 +17,7 @@ export declare class VerifyUserComponent implements OnInit {
|
|
|
16
17
|
signOut: (data?: Record<string | number | symbol, any>) => void;
|
|
17
18
|
submitForm: (data?: Record<string | number | symbol, any>) => void;
|
|
18
19
|
updateForm: (data?: Record<string | number | symbol, any>) => void;
|
|
20
|
+
updateBlur: (data?: Record<string | number | symbol, any>) => void;
|
|
19
21
|
toFederatedSignIn: (data?: Record<string | number | symbol, any>) => void;
|
|
20
22
|
toResetPassword: (data?: Record<string | number | symbol, any>) => void;
|
|
21
23
|
toSignIn: (data?: Record<string | number | symbol, any>) => void;
|
|
@@ -29,11 +31,13 @@ export declare class VerifyUserComponent implements OnInit {
|
|
|
29
31
|
validationErrors: {
|
|
30
32
|
[x: string]: string;
|
|
31
33
|
};
|
|
34
|
+
codeDeliveryDetails: import("amazon-cognito-identity-js").CodeDeliveryDetails;
|
|
32
35
|
};
|
|
33
36
|
resendCode: (data?: Record<string | number | symbol, any>) => void;
|
|
34
37
|
signOut: (data?: Record<string | number | symbol, any>) => void;
|
|
35
38
|
submitForm: (data?: Record<string | number | symbol, any>) => void;
|
|
36
39
|
updateForm: (data?: Record<string | number | symbol, any>) => void;
|
|
40
|
+
updateBlur: (data?: Record<string | number | symbol, any>) => void;
|
|
37
41
|
toFederatedSignIn: (data?: Record<string | number | symbol, any>) => void;
|
|
38
42
|
toResetPassword: (data?: Record<string | number | symbol, any>) => void;
|
|
39
43
|
toSignIn: (data?: Record<string | number | symbol, any>) => void;
|
|
@@ -47,6 +51,7 @@ export declare class VerifyUserComponent implements OnInit {
|
|
|
47
51
|
validationErrors: {
|
|
48
52
|
[x: string]: string;
|
|
49
53
|
};
|
|
54
|
+
codeDeliveryDetails: import("amazon-cognito-identity-js").CodeDeliveryDetails;
|
|
50
55
|
};
|
|
51
56
|
getLabelForAttr(authAttr: string): string;
|
|
52
57
|
onInput(event: Event): void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
1
2
|
export declare class PasswordFieldComponent {
|
|
2
3
|
autocomplete: string;
|
|
3
4
|
disabled: boolean;
|
|
@@ -8,6 +9,7 @@ export declare class PasswordFieldComponent {
|
|
|
8
9
|
placeholder: string;
|
|
9
10
|
required: boolean;
|
|
10
11
|
labelHidden: boolean;
|
|
12
|
+
setBlur: EventEmitter<Event>;
|
|
11
13
|
type: 'text' | 'password';
|
|
12
14
|
showPassword: boolean;
|
|
13
15
|
showPasswordButtonlabel: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="amazon-cognito-identity-js" />
|
|
1
2
|
import { OnDestroy } from '@angular/core';
|
|
2
3
|
import { AuthContext, AuthenticatorMachineOptions, AuthEvent, AuthInterpreter, AuthMachineState } from '@aws-amplify/ui';
|
|
3
4
|
import { Event, Subscription } from 'xstate';
|
|
@@ -24,10 +25,12 @@ export declare class AuthenticatorService implements OnDestroy {
|
|
|
24
25
|
get validationErrors(): {
|
|
25
26
|
[x: string]: string;
|
|
26
27
|
};
|
|
28
|
+
get codeDeliveryDetails(): import("amazon-cognito-identity-js").CodeDeliveryDetails;
|
|
27
29
|
/**
|
|
28
30
|
* Service facades
|
|
29
31
|
*/
|
|
30
32
|
get updateForm(): (data?: Record<string | number | symbol, any>) => void;
|
|
33
|
+
get updateBlur(): (data?: Record<string | number | symbol, any>) => void;
|
|
31
34
|
get resendCode(): (data?: Record<string | number | symbol, any>) => void;
|
|
32
35
|
get signOut(): (data?: Record<string | number | symbol, any>) => void;
|
|
33
36
|
get submitForm(): (data?: Record<string | number | symbol, any>) => void;
|
|
@@ -55,6 +58,7 @@ export declare class AuthenticatorService implements OnDestroy {
|
|
|
55
58
|
signOut: (data?: Record<string | number | symbol, any>) => void;
|
|
56
59
|
submitForm: (data?: Record<string | number | symbol, any>) => void;
|
|
57
60
|
updateForm: (data?: Record<string | number | symbol, any>) => void;
|
|
61
|
+
updateBlur: (data?: Record<string | number | symbol, any>) => void;
|
|
58
62
|
toFederatedSignIn: (data?: Record<string | number | symbol, any>) => void;
|
|
59
63
|
toResetPassword: (data?: Record<string | number | symbol, any>) => void;
|
|
60
64
|
toSignIn: (data?: Record<string | number | symbol, any>) => void;
|
|
@@ -68,11 +72,13 @@ export declare class AuthenticatorService implements OnDestroy {
|
|
|
68
72
|
validationErrors: {
|
|
69
73
|
[x: string]: string;
|
|
70
74
|
};
|
|
75
|
+
codeDeliveryDetails: import("amazon-cognito-identity-js").CodeDeliveryDetails;
|
|
71
76
|
};
|
|
72
77
|
resendCode: (data?: Record<string | number | symbol, any>) => void;
|
|
73
78
|
signOut: (data?: Record<string | number | symbol, any>) => void;
|
|
74
79
|
submitForm: (data?: Record<string | number | symbol, any>) => void;
|
|
75
80
|
updateForm: (data?: Record<string | number | symbol, any>) => void;
|
|
81
|
+
updateBlur: (data?: Record<string | number | symbol, any>) => void;
|
|
76
82
|
toFederatedSignIn: (data?: Record<string | number | symbol, any>) => void;
|
|
77
83
|
toResetPassword: (data?: Record<string | number | symbol, any>) => void;
|
|
78
84
|
toSignIn: (data?: Record<string | number | symbol, any>) => void;
|
|
@@ -86,6 +92,7 @@ export declare class AuthenticatorService implements OnDestroy {
|
|
|
86
92
|
validationErrors: {
|
|
87
93
|
[x: string]: string;
|
|
88
94
|
};
|
|
95
|
+
codeDeliveryDetails: import("amazon-cognito-identity-js").CodeDeliveryDetails;
|
|
89
96
|
};
|
|
90
97
|
/** @deprecated For internal use only */
|
|
91
98
|
subscribe(callback: AuthSubscriptionCallback): Subscription;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/ui-angular",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.6",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"aws-amplify": "3.x.x || 4.x.x"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@aws-amplify/ui-components": "^1.7.0",
|
|
10
|
-
"@aws-amplify/ui": "3.0.
|
|
10
|
+
"@aws-amplify/ui": "3.0.6",
|
|
11
11
|
"@stencil/core": "^2.7.0",
|
|
12
12
|
"nanoid": "^3.1.25",
|
|
13
13
|
"qrcode": "^1.4.4",
|
package/theme.css
CHANGED
|
@@ -1 +1,13 @@
|
|
|
1
1
|
@import '@aws-amplify/ui/dist/styles.css';
|
|
2
|
+
|
|
3
|
+
/** These fonts are added in only temporarily until Angular has it's own theming system */
|
|
4
|
+
|
|
5
|
+
html {
|
|
6
|
+
font-family: var(--amplify-fonts-default-static);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@supports (font-variation-settings: normal) {
|
|
10
|
+
html {
|
|
11
|
+
font-family: var(--amplify-fonts-default-variable);
|
|
12
|
+
}
|
|
13
|
+
}
|