@firestitch/2fa 13.0.1 → 13.1.1

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 (95) hide show
  1. package/app/enums/index.d.ts +1 -1
  2. package/app/enums/verification-method-type.enum.d.ts +5 -5
  3. package/app/interfaces/index.d.ts +1 -1
  4. package/app/interfaces/verification-method.interface.d.ts +11 -11
  5. package/app/modules/code-input/code-input.module.d.ts +11 -11
  6. package/app/modules/code-input/components/code-input/code-input.component.d.ts +14 -14
  7. package/app/modules/code-input/components/code-input/index.d.ts +1 -1
  8. package/app/modules/code-input/index.d.ts +1 -1
  9. package/app/modules/defaulted/components/defaulted/defaulted.component.d.ts +5 -5
  10. package/app/modules/defaulted/components/defaulted/index.d.ts +1 -1
  11. package/app/modules/defaulted/defaulted.module.d.ts +7 -7
  12. package/app/modules/manage/components/2fa-manage/2fa-manage.component.d.ts +30 -30
  13. package/app/modules/manage/components/2fa-manage/index.d.ts +1 -1
  14. package/app/modules/manage/components/app/app.component.d.ts +32 -32
  15. package/app/modules/manage/components/app/index.d.ts +1 -1
  16. package/app/modules/manage/components/email/email.component.d.ts +27 -27
  17. package/app/modules/manage/components/email/index.d.ts +1 -1
  18. package/app/modules/manage/components/emails/emails.component.d.ts +19 -19
  19. package/app/modules/manage/components/emails/index.d.ts +1 -1
  20. package/app/modules/manage/components/manage-methods/index.d.ts +1 -1
  21. package/app/modules/manage/components/manage-methods/manage-methods.component.d.ts +35 -35
  22. package/app/modules/manage/components/number/index.d.ts +1 -1
  23. package/app/modules/manage/components/number/number.component.d.ts +28 -28
  24. package/app/modules/manage/components/numbers/index.d.ts +1 -1
  25. package/app/modules/manage/components/numbers/numbers.component.d.ts +20 -20
  26. package/app/modules/manage/fs-2f-manage.module.d.ts +33 -33
  27. package/app/modules/manage/services/index.d.ts +1 -1
  28. package/app/modules/manage/services/two-factor-manage.service.d.ts +52 -52
  29. package/app/modules/resend/components/resend/index.d.ts +1 -1
  30. package/app/modules/resend/components/resend/resend.component.d.ts +14 -14
  31. package/app/modules/resend/resend.module.d.ts +9 -9
  32. package/app/modules/verification/components/2fa-verification/2fa-verification.component.d.ts +39 -39
  33. package/app/modules/verification/components/2fa-verification-code/2fa-verification-code.component.d.ts +21 -21
  34. package/app/modules/verification/components/2fa-verification-methods/2fa-verification-methods.component.d.ts +22 -22
  35. package/app/modules/verification/directives/2fa-verification-resend.directive.d.ts +11 -11
  36. package/app/modules/verification/directives/index.d.ts +1 -1
  37. package/app/modules/verification/fs-2fa-verification.module.d.ts +25 -25
  38. package/app/modules/verification-methods/components/verification-methods/index.d.ts +1 -1
  39. package/app/modules/verification-methods/components/verification-methods/verification-methods.component.d.ts +26 -26
  40. package/app/modules/verification-methods/fs-2f-verification-methods.module.d.ts +14 -14
  41. package/app/modules/verification-methods/index.d.ts +1 -1
  42. package/esm2020/app/enums/index.mjs +1 -1
  43. package/esm2020/app/enums/verification-method-type.enum.mjs +6 -6
  44. package/esm2020/app/interfaces/index.mjs +1 -1
  45. package/esm2020/app/interfaces/verification-method.interface.mjs +1 -1
  46. package/esm2020/app/modules/code-input/code-input.module.mjs +37 -37
  47. package/esm2020/app/modules/code-input/components/code-input/code-input.component.mjs +36 -36
  48. package/esm2020/app/modules/code-input/components/code-input/index.mjs +1 -1
  49. package/esm2020/app/modules/code-input/index.mjs +1 -1
  50. package/esm2020/app/modules/defaulted/components/defaulted/defaulted.component.mjs +10 -10
  51. package/esm2020/app/modules/defaulted/components/defaulted/index.mjs +1 -1
  52. package/esm2020/app/modules/defaulted/defaulted.module.mjs +17 -17
  53. package/esm2020/app/modules/manage/components/2fa-manage/2fa-manage.component.mjs +97 -97
  54. package/esm2020/app/modules/manage/components/2fa-manage/index.mjs +1 -1
  55. package/esm2020/app/modules/manage/components/app/app.component.mjs +84 -84
  56. package/esm2020/app/modules/manage/components/app/index.mjs +1 -1
  57. package/esm2020/app/modules/manage/components/email/email.component.mjs +78 -78
  58. package/esm2020/app/modules/manage/components/email/index.mjs +1 -1
  59. package/esm2020/app/modules/manage/components/emails/emails.component.mjs +46 -46
  60. package/esm2020/app/modules/manage/components/emails/index.mjs +1 -1
  61. package/esm2020/app/modules/manage/components/manage-methods/index.mjs +1 -1
  62. package/esm2020/app/modules/manage/components/manage-methods/manage-methods.component.mjs +124 -124
  63. package/esm2020/app/modules/manage/components/number/index.mjs +1 -1
  64. package/esm2020/app/modules/manage/components/number/number.component.mjs +82 -82
  65. package/esm2020/app/modules/manage/components/numbers/index.mjs +1 -1
  66. package/esm2020/app/modules/manage/components/numbers/numbers.component.mjs +47 -47
  67. package/esm2020/app/modules/manage/fs-2f-manage.module.mjs +118 -117
  68. package/esm2020/app/modules/manage/services/index.mjs +1 -1
  69. package/esm2020/app/modules/manage/services/two-factor-manage.service.mjs +160 -160
  70. package/esm2020/app/modules/resend/components/resend/index.mjs +1 -1
  71. package/esm2020/app/modules/resend/components/resend/resend.component.mjs +34 -34
  72. package/esm2020/app/modules/resend/resend.module.mjs +29 -29
  73. package/esm2020/app/modules/verification/components/2fa-verification/2fa-verification.component.mjs +123 -123
  74. package/esm2020/app/modules/verification/components/2fa-verification-code/2fa-verification-code.component.mjs +56 -56
  75. package/esm2020/app/modules/verification/components/2fa-verification-methods/2fa-verification-methods.component.mjs +55 -55
  76. package/esm2020/app/modules/verification/directives/2fa-verification-resend.directive.mjs +31 -31
  77. package/esm2020/app/modules/verification/directives/index.mjs +1 -1
  78. package/esm2020/app/modules/verification/fs-2fa-verification.module.mjs +96 -96
  79. package/esm2020/app/modules/verification-methods/components/verification-methods/index.mjs +1 -1
  80. package/esm2020/app/modules/verification-methods/components/verification-methods/verification-methods.component.mjs +116 -116
  81. package/esm2020/app/modules/verification-methods/fs-2f-verification-methods.module.mjs +47 -47
  82. package/esm2020/app/modules/verification-methods/index.mjs +1 -1
  83. package/esm2020/firestitch-2fa.mjs +4 -4
  84. package/esm2020/public_api.mjs +8 -8
  85. package/fesm2015/firestitch-2fa.mjs +1249 -1275
  86. package/fesm2015/firestitch-2fa.mjs.map +1 -1
  87. package/fesm2020/firestitch-2fa.mjs +1236 -1262
  88. package/fesm2020/firestitch-2fa.mjs.map +1 -1
  89. package/firestitch-2fa.d.ts +5 -5
  90. package/package.json +1 -1
  91. package/public_api.d.ts +9 -9
  92. package/app/modules/manage/components/qr-code/index.d.ts +0 -1
  93. package/app/modules/manage/components/qr-code/qr-code.component.d.ts +0 -11
  94. package/esm2020/app/modules/manage/components/qr-code/index.mjs +0 -2
  95. package/esm2020/app/modules/manage/components/qr-code/qr-code.component.mjs +0 -32
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@firestitch/2fa" />
5
- export * from './public_api';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@firestitch/2fa" />
5
+ export * from './public_api';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestitch/2fa",
3
- "version": "13.0.1",
3
+ "version": "13.1.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/Firestitch/ngx-2fa"
package/public_api.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- export { Fs2faVerificationModule } from './app/modules/verification/fs-2fa-verification.module';
2
- export { Fs2faManageModule } from './app/modules/manage/fs-2f-manage.module';
3
- export { Fs2faVerificationMethodsModule } from './app/modules/verification-methods/fs-2f-verification-methods.module';
4
- export { Fs2faVerificationComponent } from './app/modules/verification/components/2fa-verification/2fa-verification.component';
5
- export { Fs2faManageComponent } from './app/modules/manage/components/2fa-manage/2fa-manage.component';
6
- export { VerificationMethodsComponent } from './app/modules/verification-methods/components/verification-methods/verification-methods.component';
7
- export { IFsVerificationMethod } from './app/interfaces';
8
- export { VerificationMethodType } from './app/enums';
9
- export { Fs2faVerificationResendDirective } from './app/modules/verification/directives';
1
+ export { Fs2faVerificationModule } from './app/modules/verification/fs-2fa-verification.module';
2
+ export { Fs2faManageModule } from './app/modules/manage/fs-2f-manage.module';
3
+ export { Fs2faVerificationMethodsModule } from './app/modules/verification-methods/fs-2f-verification-methods.module';
4
+ export { Fs2faVerificationComponent } from './app/modules/verification/components/2fa-verification/2fa-verification.component';
5
+ export { Fs2faManageComponent } from './app/modules/manage/components/2fa-manage/2fa-manage.component';
6
+ export { VerificationMethodsComponent } from './app/modules/verification-methods/components/verification-methods/verification-methods.component';
7
+ export { IFsVerificationMethod } from './app/interfaces';
8
+ export { VerificationMethodType } from './app/enums';
9
+ export { Fs2faVerificationResendDirective } from './app/modules/verification/directives';
@@ -1 +0,0 @@
1
- export * from './qr-code.component';
@@ -1,11 +0,0 @@
1
- import { OnInit, ChangeDetectorRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class QrCodeComponent implements OnInit {
4
- private _cdRef;
5
- value: any;
6
- image: any;
7
- constructor(_cdRef: ChangeDetectorRef);
8
- ngOnInit(): void;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<QrCodeComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<QrCodeComponent, "app-qr-code", never, { "value": "value"; }, {}, never, never>;
11
- }
@@ -1,2 +0,0 @@
1
- export * from './qr-code.component';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvbWFuYWdlL2NvbXBvbmVudHMvcXItY29kZS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHFCQUFxQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9xci1jb2RlLmNvbXBvbmVudCc7XG4iXX0=
@@ -1,32 +0,0 @@
1
- import { Component, ChangeDetectorRef, Input, ChangeDetectionStrategy, } from '@angular/core';
2
- import QRCode from 'qrcode';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "@angular/common";
5
- export class QrCodeComponent {
6
- constructor(_cdRef) {
7
- this._cdRef = _cdRef;
8
- }
9
- ngOnInit() {
10
- QRCode.toDataURL(this.value, {
11
- errorCorrectionLevel: 'H',
12
- width: 300,
13
- height: 300,
14
- })
15
- .then((url) => {
16
- this.image = url;
17
- this._cdRef.markForCheck();
18
- })
19
- .catch((err) => {
20
- console.error(err);
21
- });
22
- }
23
- }
24
- QrCodeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: QrCodeComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
25
- QrCodeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: QrCodeComponent, selector: "app-qr-code", inputs: { value: "value" }, ngImport: i0, template: "<ng-container *ngIf=\"image\">\n <img [src]=\"image\">\n</ng-container>", styles: ["img{display:flex;margin:auto}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: QrCodeComponent, decorators: [{
27
- type: Component,
28
- args: [{ selector: 'app-qr-code', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"image\">\n <img [src]=\"image\">\n</ng-container>", styles: ["img{display:flex;margin:auto}\n"] }]
29
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { value: [{
30
- type: Input
31
- }] } });
32
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXItY29kZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvbWFuY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