@firestitch/2fa 12.4.1 → 12.4.4

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 (22) hide show
  1. package/app/modules/manage/components/email/email.component.d.ts +3 -2
  2. package/app/modules/manage/components/number/number.component.d.ts +3 -2
  3. package/app/modules/manage/fs-2f-manage.module.d.ts +2 -1
  4. package/app/modules/resend/components/resend/index.d.ts +1 -0
  5. package/app/modules/resend/components/resend/resend.component.d.ts +14 -0
  6. package/app/modules/resend/resend.module.d.ts +9 -0
  7. package/app/modules/verification/components/2fa-verification/2fa-verification.component.d.ts +1 -2
  8. package/app/modules/verification/fs-2fa-verification.module.d.ts +9 -9
  9. package/bundles/firestitch-2fa.umd.js +175 -114
  10. package/bundles/firestitch-2fa.umd.js.map +1 -1
  11. package/esm2015/app/modules/manage/components/email/email.component.js +16 -15
  12. package/esm2015/app/modules/manage/components/number/number.component.js +16 -15
  13. package/esm2015/app/modules/manage/fs-2f-manage.module.js +6 -2
  14. package/esm2015/app/modules/resend/components/resend/index.js +2 -0
  15. package/esm2015/app/modules/resend/components/resend/resend.component.js +40 -0
  16. package/esm2015/app/modules/resend/resend.module.js +30 -0
  17. package/esm2015/app/modules/verification/components/2fa-verification/2fa-verification.component.js +12 -16
  18. package/esm2015/app/modules/verification/components/2fa-verification-code/2fa-verification-code.component.js +2 -2
  19. package/esm2015/app/modules/verification/fs-2fa-verification.module.js +17 -17
  20. package/fesm2015/firestitch-2fa.js +121 -63
  21. package/fesm2015/firestitch-2fa.js.map +1 -1
  22. package/package.json +1 -1
@@ -2,6 +2,7 @@ import { ChangeDetectorRef } from '@angular/core';
2
2
  import { MatDialogRef } from '@angular/material/dialog';
3
3
  import { FsMessage } from '@firestitch/message';
4
4
  import { FsFormDirective } from '@firestitch/form';
5
+ import { Observable } from 'rxjs';
5
6
  import { TwoFactorManageService } from '../../services';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class EmailComponent {
@@ -16,8 +17,8 @@ export declare class EmailComponent {
16
17
  verificationMethod: any;
17
18
  twoFactorManageService: TwoFactorManageService;
18
19
  constructor(_data: any, _dialogRef: MatDialogRef<EmailComponent>, _cdRef: ChangeDetectorRef, _message: FsMessage);
19
- resend(): void;
20
- submit: () => import("rxjs").Observable<any>;
20
+ resend: () => Observable<void>;
21
+ submit: () => Observable<any>;
21
22
  codeCompleted(): void;
22
23
  codeChanged(code: any): void;
23
24
  static ɵfac: i0.ɵɵFactoryDeclaration<EmailComponent, never>;
@@ -2,6 +2,7 @@ import { ChangeDetectorRef } from '@angular/core';
2
2
  import { MatDialogRef } from '@angular/material/dialog';
3
3
  import { FsMessage } from '@firestitch/message';
4
4
  import { FsFormDirective } from '@firestitch/form';
5
+ import { Observable } from 'rxjs';
5
6
  import { TwoFactorManageService } from '../../services';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class NumberComponent {
@@ -17,8 +18,8 @@ export declare class NumberComponent {
17
18
  defaultCountry: any;
18
19
  twoFactorManageService: TwoFactorManageService;
19
20
  constructor(_data: any, _dialogRef: MatDialogRef<NumberComponent>, _cdRef: ChangeDetectorRef, _message: FsMessage);
20
- resend(): void;
21
- submit: () => import("rxjs").Observable<any>;
21
+ resend: () => Observable<void>;
22
+ submit: () => Observable<any>;
22
23
  codeCompleted(): void;
23
24
  codeChanged(code: any): void;
24
25
  static ɵfac: i0.ɵɵFactoryDeclaration<NumberComponent, never>;
@@ -24,8 +24,9 @@ import * as i22 from "@firestitch/skeleton";
24
24
  import * as i23 from "@firestitch/country";
25
25
  import * as i24 from "../code-input/code-input.module";
26
26
  import * as i25 from "ng-qrcode";
27
+ import * as i26 from "../resend/resend.module";
27
28
  export declare class Fs2faManageModule {
28
29
  static ɵfac: i0.ɵɵFactoryDeclaration<Fs2faManageModule, never>;
29
- static ɵmod: i0.ɵɵNgModuleDeclaration<Fs2faManageModule, [typeof i1.Fs2faManageComponent, typeof i2.ManageMethodsComponent, typeof i3.NumbersComponent, typeof i4.AppComponent, typeof i5.EmailComponent, typeof i6.VerificationMethodsComponent, typeof i7.NumberComponent, typeof i8.EmailsComponent, typeof i9.DefaultedComponent], [typeof i10.CommonModule, typeof i11.FormsModule, typeof i12.MatButtonModule, typeof i13.MatDialogModule, typeof i14.MatInputModule, typeof i15.MatIconModule, typeof i16.MatCheckboxModule, typeof i17.FsDialogModule, typeof i18.FsListModule, typeof i19.FsFormModule, typeof i20.FsLabelModule, typeof i21.FsPhoneModule, typeof i22.FsSkeletonModule, typeof i23.FsCountryModule, typeof i24.CodeInputModule, typeof i25.QrCodeModule], [typeof i1.Fs2faManageComponent]>;
30
+ static ɵmod: i0.ɵɵNgModuleDeclaration<Fs2faManageModule, [typeof i1.Fs2faManageComponent, typeof i2.ManageMethodsComponent, typeof i3.NumbersComponent, typeof i4.AppComponent, typeof i5.EmailComponent, typeof i6.VerificationMethodsComponent, typeof i7.NumberComponent, typeof i8.EmailsComponent, typeof i9.DefaultedComponent], [typeof i10.CommonModule, typeof i11.FormsModule, typeof i12.MatButtonModule, typeof i13.MatDialogModule, typeof i14.MatInputModule, typeof i15.MatIconModule, typeof i16.MatCheckboxModule, typeof i17.FsDialogModule, typeof i18.FsListModule, typeof i19.FsFormModule, typeof i20.FsLabelModule, typeof i21.FsPhoneModule, typeof i22.FsSkeletonModule, typeof i23.FsCountryModule, typeof i24.CodeInputModule, typeof i25.QrCodeModule, typeof i26.ResendModule], [typeof i1.Fs2faManageComponent]>;
30
31
  static ɵinj: i0.ɵɵInjectorDeclaration<Fs2faManageModule>;
31
32
  }
@@ -0,0 +1 @@
1
+ export * from './resend.component';
@@ -0,0 +1,14 @@
1
+ import { ChangeDetectorRef } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ResendComponent {
5
+ private _cdRef;
6
+ resend: () => Observable<any>;
7
+ resendInProgress: boolean;
8
+ private _destroy$;
9
+ constructor(_cdRef: ChangeDetectorRef);
10
+ resendClick(): void;
11
+ ngOnDestroy(): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<ResendComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<ResendComponent, "app-resend", never, { "resend": "resend"; }, {}, never, never>;
14
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./components/resend/resend.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/material/progress-spinner";
5
+ export declare class ResendModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<ResendModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ResendModule, [typeof i1.ResendComponent], [typeof i2.CommonModule, typeof i3.MatProgressSpinnerModule], [typeof i1.ResendComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<ResendModule>;
9
+ }
@@ -17,7 +17,6 @@ export declare class Fs2faVerificationComponent implements OnDestroy, AfterViewI
17
17
  verified: EventEmitter<unknown>;
18
18
  codeChanged: EventEmitter<unknown>;
19
19
  codeCompleted: EventEmitter<unknown>;
20
- resendInProgress: boolean;
21
20
  code: string;
22
21
  trustedDevice: boolean;
23
22
  VerificationMethodType: typeof VerificationMethodType;
@@ -27,7 +26,7 @@ export declare class Fs2faVerificationComponent implements OnDestroy, AfterViewI
27
26
  ngOnInit(): void;
28
27
  ngOnDestroy(): void;
29
28
  ngAfterViewInit(): void;
30
- resendCode(): void;
29
+ resendCode: () => Observable<void>;
31
30
  showVerificationMethods(): void;
32
31
  static ɵfac: i0.ɵɵFactoryDeclaration<Fs2faVerificationComponent, never>;
33
32
  static ɵcmp: i0.ɵɵComponentDeclaration<Fs2faVerificationComponent, "fs-2fa-verification", never, { "verificationMethod": "verificationMethod"; "resend": "resend"; "showTrustedDevice": "showTrustedDevice"; "getVerificationMethods": "getVerificationMethods"; "selectVerificationMethod": "selectVerificationMethod"; }, { "verified": "verified"; "codeChanged": "codeChanged"; "codeCompleted": "codeCompleted"; }, never, never>;
@@ -7,17 +7,17 @@ import * as i5 from "@angular/forms";
7
7
  import * as i6 from "@angular/material/form-field";
8
8
  import * as i7 from "@angular/material/input";
9
9
  import * as i8 from "@angular/material/button";
10
- import * as i9 from "@firestitch/form";
11
- import * as i10 from "@firestitch/radiogroup";
12
- import * as i11 from "@firestitch/dialog";
13
- import * as i12 from "../code-input/code-input.module";
14
- import * as i13 from "@angular/material/checkbox";
15
- import * as i14 from "@angular/material/progress-spinner";
10
+ import * as i9 from "@angular/material/icon";
11
+ import * as i10 from "@angular/material/radio";
12
+ import * as i11 from "@angular/material/checkbox";
13
+ import * as i12 from "@firestitch/form";
14
+ import * as i13 from "@firestitch/radiogroup";
15
+ import * as i14 from "@firestitch/dialog";
16
16
  import * as i15 from "@firestitch/skeleton";
17
- import * as i16 from "@angular/material/icon";
18
- import * as i17 from "@angular/material/radio";
17
+ import * as i16 from "../resend/resend.module";
18
+ import * as i17 from "../code-input/code-input.module";
19
19
  export declare class Fs2faVerificationModule {
20
20
  static ɵfac: i0.ɵɵFactoryDeclaration<Fs2faVerificationModule, never>;
21
- static ɵmod: i0.ɵɵNgModuleDeclaration<Fs2faVerificationModule, [typeof i1.Fs2faVerificationComponent, typeof i2.Fs2faVerificationCodeComponent, typeof i3.Fs2faVerificationMethodsComponent], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i6.MatFormFieldModule, typeof i7.MatInputModule, typeof i8.MatButtonModule, typeof i9.FsFormModule, typeof i10.FsRadioGroupModule, typeof i11.FsDialogModule, typeof i12.CodeInputModule, typeof i13.MatCheckboxModule, typeof i14.MatProgressSpinnerModule, typeof i15.FsSkeletonModule, typeof i15.FsSkeletonModule, typeof i16.MatIconModule, typeof i17.MatRadioModule], [typeof i1.Fs2faVerificationComponent]>;
21
+ static ɵmod: i0.ɵɵNgModuleDeclaration<Fs2faVerificationModule, [typeof i1.Fs2faVerificationComponent, typeof i2.Fs2faVerificationCodeComponent, typeof i3.Fs2faVerificationMethodsComponent], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i6.MatFormFieldModule, typeof i7.MatInputModule, typeof i8.MatButtonModule, typeof i9.MatIconModule, typeof i10.MatRadioModule, typeof i11.MatCheckboxModule, typeof i12.FsFormModule, typeof i13.FsRadioGroupModule, typeof i14.FsDialogModule, typeof i15.FsSkeletonModule, typeof i15.FsSkeletonModule, typeof i16.ResendModule, typeof i17.CodeInputModule], [typeof i1.Fs2faVerificationComponent]>;
22
22
  static ɵinj: i0.ɵɵInjectorDeclaration<Fs2faVerificationModule>;
23
23
  }