@aws-amplify/ui-angular 2.4.9 → 2.4.12

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 (28) hide show
  1. package/aws-amplify-ui-angular.metadata.json +1 -1
  2. package/bundles/aws-amplify-ui-angular.umd.js +26 -8
  3. package/bundles/aws-amplify-ui-angular.umd.js.map +1 -1
  4. package/bundles/aws-amplify-ui-angular.umd.min.js +1 -1
  5. package/bundles/aws-amplify-ui-angular.umd.min.js.map +1 -1
  6. package/esm2015/lib/components/authenticator/components/form-field/form-field.component.js +11 -2
  7. package/esm2015/lib/primitives/password-field/password-field.component.js +4 -2
  8. package/esm2015/lib/primitives/phone-number-field/phone-number-field.component.js +4 -2
  9. package/esm2015/lib/primitives/text-field/text-field.component.js +4 -2
  10. package/fesm2015/aws-amplify-ui-angular.js +19 -5
  11. package/fesm2015/aws-amplify-ui-angular.js.map +1 -1
  12. package/lib/components/authenticator/components/authenticator/authenticator.component.d.ts +2 -3
  13. package/lib/components/authenticator/components/confirm-reset-password/amplify-confirm-reset-password.component.d.ts +2 -3
  14. package/lib/components/authenticator/components/confirm-sign-in/confirm-sign-in.component.d.ts +2 -3
  15. package/lib/components/authenticator/components/confirm-sign-up/confirm-sign-up.component.d.ts +2 -3
  16. package/lib/components/authenticator/components/confirm-verify-user/amplify-confirm-verify-user.component.d.ts +2 -3
  17. package/lib/components/authenticator/components/force-new-password/force-new-password.component.d.ts +2 -3
  18. package/lib/components/authenticator/components/form-field/form-field.component.d.ts +3 -0
  19. package/lib/components/authenticator/components/reset-password/reset-password.component.d.ts +2 -3
  20. package/lib/components/authenticator/components/setup-totp/setup-totp.component.d.ts +2 -3
  21. package/lib/components/authenticator/components/sign-in/sign-in.component.d.ts +2 -3
  22. package/lib/components/authenticator/components/sign-up/sign-up.component.d.ts +2 -3
  23. package/lib/components/authenticator/components/verify-user/verify-user.component.d.ts +2 -3
  24. package/lib/primitives/password-field/password-field.component.d.ts +2 -0
  25. package/lib/primitives/phone-number-field/phone-number-field.component.d.ts +2 -0
  26. package/lib/primitives/text-field/text-field.component.d.ts +2 -0
  27. package/lib/services/authenticator.service.d.ts +9 -6
  28. package/package.json +2 -2
@@ -1,4 +1,3 @@
1
- /// <reference types="amazon-cognito-identity-js" />
2
1
  import { AuthenticatorService } from '../../../../services/authenticator.service';
3
2
  import { FormFieldsArray } from '@aws-amplify/ui';
4
3
  export declare class ResetPasswordComponent {
@@ -30,7 +29,7 @@ export declare class ResetPasswordComponent {
30
29
  validationErrors: {
31
30
  [x: string]: string | string[];
32
31
  };
33
- codeDeliveryDetails: import("amazon-cognito-identity-js").CodeDeliveryDetails;
32
+ codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
34
33
  };
35
34
  resendCode: (data?: Record<string | number | symbol, any>) => void;
36
35
  signOut: (data?: Record<string | number | symbol, any>) => void;
@@ -51,7 +50,7 @@ export declare class ResetPasswordComponent {
51
50
  validationErrors: {
52
51
  [x: string]: string | string[];
53
52
  };
54
- codeDeliveryDetails: import("amazon-cognito-identity-js").CodeDeliveryDetails;
53
+ codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
55
54
  };
56
55
  onInput(event: Event): void;
57
56
  onSubmit(event: Event): void;
@@ -1,4 +1,3 @@
1
- /// <reference types="amazon-cognito-identity-js" />
2
1
  import { OnInit } from '@angular/core';
3
2
  import { FormFields, FormFieldsArray } from '@aws-amplify/ui';
4
3
  import { AuthenticatorService } from '../../../../services/authenticator.service';
@@ -36,7 +35,7 @@ export declare class SetupTotpComponent implements OnInit {
36
35
  validationErrors: {
37
36
  [x: string]: string | string[];
38
37
  };
39
- codeDeliveryDetails: import("amazon-cognito-identity-js").CodeDeliveryDetails;
38
+ codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
40
39
  };
41
40
  resendCode: (data?: Record<string | number | symbol, any>) => void;
42
41
  signOut: (data?: Record<string | number | symbol, any>) => void;
@@ -57,7 +56,7 @@ export declare class SetupTotpComponent implements OnInit {
57
56
  validationErrors: {
58
57
  [x: string]: string | string[];
59
58
  };
60
- codeDeliveryDetails: import("amazon-cognito-identity-js").CodeDeliveryDetails;
59
+ codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
61
60
  };
62
61
  generateQRCode(): Promise<void>;
63
62
  onInput(event: Event): void;
@@ -1,4 +1,3 @@
1
- /// <reference types="amazon-cognito-identity-js" />
2
1
  import { AuthenticatorService } from '../../../../services/authenticator.service';
3
2
  import { FormFieldsArray } from '@aws-amplify/ui';
4
3
  export declare class SignInComponent {
@@ -29,7 +28,7 @@ export declare class SignInComponent {
29
28
  validationErrors: {
30
29
  [x: string]: string | string[];
31
30
  };
32
- codeDeliveryDetails: import("amazon-cognito-identity-js").CodeDeliveryDetails;
31
+ codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
33
32
  };
34
33
  resendCode: (data?: Record<string | number | symbol, any>) => void;
35
34
  signOut: (data?: Record<string | number | symbol, any>) => void;
@@ -50,7 +49,7 @@ export declare class SignInComponent {
50
49
  validationErrors: {
51
50
  [x: string]: string | string[];
52
51
  };
53
- codeDeliveryDetails: import("amazon-cognito-identity-js").CodeDeliveryDetails;
52
+ codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
54
53
  };
55
54
  onInput(event: Event): void;
56
55
  onSubmit(event: Event): void;
@@ -1,4 +1,3 @@
1
- /// <reference types="amazon-cognito-identity-js" />
2
1
  import { AuthenticatorService } from '../../../../services/authenticator.service';
3
2
  export declare class SignUpComponent {
4
3
  authenticator: AuthenticatorService;
@@ -26,7 +25,7 @@ export declare class SignUpComponent {
26
25
  validationErrors: {
27
26
  [x: string]: string | string[];
28
27
  };
29
- codeDeliveryDetails: import("amazon-cognito-identity-js").CodeDeliveryDetails;
28
+ codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
30
29
  };
31
30
  resendCode: (data?: Record<string | number | symbol, any>) => void;
32
31
  signOut: (data?: Record<string | number | symbol, any>) => void;
@@ -47,7 +46,7 @@ export declare class SignUpComponent {
47
46
  validationErrors: {
48
47
  [x: string]: string | string[];
49
48
  };
50
- codeDeliveryDetails: import("amazon-cognito-identity-js").CodeDeliveryDetails;
49
+ codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
51
50
  };
52
51
  onInput(event: Event): void;
53
52
  onSubmit(event: Event): void;
@@ -1,4 +1,3 @@
1
- /// <reference types="amazon-cognito-identity-js" />
2
1
  import { OnInit } from '@angular/core';
3
2
  import { AuthenticatorService } from '../../../../services/authenticator.service';
4
3
  export declare class VerifyUserComponent implements OnInit {
@@ -32,7 +31,7 @@ export declare class VerifyUserComponent implements OnInit {
32
31
  validationErrors: {
33
32
  [x: string]: string | string[];
34
33
  };
35
- codeDeliveryDetails: import("amazon-cognito-identity-js").CodeDeliveryDetails;
34
+ codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
36
35
  };
37
36
  resendCode: (data?: Record<string | number | symbol, any>) => void;
38
37
  signOut: (data?: Record<string | number | symbol, any>) => void;
@@ -53,7 +52,7 @@ export declare class VerifyUserComponent implements OnInit {
53
52
  validationErrors: {
54
53
  [x: string]: string | string[];
55
54
  };
56
- codeDeliveryDetails: import("amazon-cognito-identity-js").CodeDeliveryDetails;
55
+ codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
57
56
  };
58
57
  getLabelForAttr(authAttr: string): string;
59
58
  onInput(event: Event): void;
@@ -9,6 +9,8 @@ export declare class PasswordFieldComponent {
9
9
  placeholder: string;
10
10
  required: boolean;
11
11
  labelHidden: boolean;
12
+ hasError: boolean;
13
+ describedBy: string;
12
14
  setBlur: EventEmitter<Event>;
13
15
  type: 'text' | 'password';
14
16
  showPassword: boolean;
@@ -13,6 +13,8 @@ export declare class PhoneNumberFieldComponent implements OnInit {
13
13
  type: string;
14
14
  labelHidden: boolean;
15
15
  dialCodeList: Array<string>;
16
+ hasError: boolean;
17
+ describedBy: string;
16
18
  display: string;
17
19
  countryDialCodesValues: Array<string>;
18
20
  ngOnInit(): void;
@@ -9,5 +9,7 @@ export declare class TextFieldComponent {
9
9
  required: boolean;
10
10
  type: string;
11
11
  labelHidden: boolean;
12
+ hasError: boolean;
13
+ describedBy: string;
12
14
  display: string;
13
15
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="amazon-cognito-identity-js" />
2
1
  import { OnDestroy } from '@angular/core';
3
2
  import { AuthContext, AuthEvent, AuthInterpreter, AuthMachineState } from '@aws-amplify/ui';
4
3
  import { Event, Subscription } from 'xstate';
@@ -26,7 +25,7 @@ export declare class AuthenticatorService implements OnDestroy {
26
25
  get validationErrors(): {
27
26
  [x: string]: string | string[];
28
27
  };
29
- get codeDeliveryDetails(): import("amazon-cognito-identity-js").CodeDeliveryDetails;
28
+ get codeDeliveryDetails(): import("@aws-amplify/ui").CodeDeliveryDetails;
30
29
  /**
31
30
  * Service facades
32
31
  */
@@ -67,14 +66,16 @@ export declare class AuthenticatorService implements OnDestroy {
67
66
  skipVerification: (data?: Record<string | number | symbol, any>) => void;
68
67
  error: string;
69
68
  hasValidationErrors: boolean;
70
- isPending: boolean;
69
+ isPending: boolean; /**
70
+ * Context facades
71
+ */
71
72
  route: string;
72
73
  authStatus: string;
73
74
  user: import("@aws-amplify/ui").CognitoUserAmplify;
74
75
  validationErrors: {
75
76
  [x: string]: string | string[];
76
77
  };
77
- codeDeliveryDetails: import("amazon-cognito-identity-js").CodeDeliveryDetails;
78
+ codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
78
79
  };
79
80
  resendCode: (data?: Record<string | number | symbol, any>) => void;
80
81
  signOut: (data?: Record<string | number | symbol, any>) => void;
@@ -88,14 +89,16 @@ export declare class AuthenticatorService implements OnDestroy {
88
89
  skipVerification: (data?: Record<string | number | symbol, any>) => void;
89
90
  error: string;
90
91
  hasValidationErrors: boolean;
91
- isPending: boolean;
92
+ isPending: boolean; /**
93
+ * Context facades
94
+ */
92
95
  route: string;
93
96
  authStatus: string;
94
97
  user: import("@aws-amplify/ui").CognitoUserAmplify;
95
98
  validationErrors: {
96
99
  [x: string]: string | string[];
97
100
  };
98
- codeDeliveryDetails: import("amazon-cognito-identity-js").CodeDeliveryDetails;
101
+ codeDeliveryDetails: import("@aws-amplify/ui").CodeDeliveryDetails;
99
102
  };
100
103
  /** @deprecated For internal use only */
101
104
  subscribe(callback: AuthSubscriptionCallback): Subscription;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui-angular",
3
- "version": "2.4.9",
3
+ "version": "2.4.12",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "@aws-amplify/ui-components": "^1.7.0",
15
- "@aws-amplify/ui": "3.10.0",
15
+ "@aws-amplify/ui": "3.12.0",
16
16
  "@stencil/core": "2.8.0",
17
17
  "nanoid": "3.1.31",
18
18
  "qrcode": "1.5.0",