From c6987795110af9ef64785f1bae93a42703a093b4 Mon Sep 17 00:00:00 2001 From: --global <> Date: Fri, 20 Dec 2024 21:46:41 -0500 Subject: [PATCH] suggested changes --- .../tools/exposed-passwords-report.component.ts | 4 ++-- .../tools/inactive-two-factor-report.component.ts | 4 ++-- .../tools/reused-passwords-report.component.ts | 4 ++-- .../tools/unsecured-websites-report.component.ts | 4 ++-- .../tools/weak-passwords-report.component.ts | 4 ++-- .../app/tools/reports/pages/cipher-report.component.ts | 4 ++-- .../pages/exposed-passwords-report.component.spec.ts | 7 ++++--- .../reports/pages/exposed-passwords-report.component.ts | 4 ++-- .../pages/inactive-two-factor-report.component.spec.ts | 7 ++++--- .../pages/inactive-two-factor-report.component.ts | 4 ++-- .../pages/reused-passwords-report.component.spec.ts | 7 ++++--- .../reports/pages/reused-passwords-report.component.ts | 4 ++-- .../pages/unsecured-websites-report.component.spec.ts | 7 ++++--- .../reports/pages/unsecured-websites-report.component.ts | 4 ++-- .../pages/weak-passwords-report.component.spec.ts | 7 ++++--- .../reports/pages/weak-passwords-report.component.ts | 4 ++-- apps/web/src/app/tools/reports/reports.module.ts | 9 +++++++-- 17 files changed, 49 insertions(+), 39 deletions(-) diff --git a/apps/web/src/app/admin-console/organizations/tools/exposed-passwords-report.component.ts b/apps/web/src/app/admin-console/organizations/tools/exposed-passwords-report.component.ts index 7c1cadd3fb..857ca02540 100644 --- a/apps/web/src/app/admin-console/organizations/tools/exposed-passwords-report.component.ts +++ b/apps/web/src/app/admin-console/organizations/tools/exposed-passwords-report.component.ts @@ -11,7 +11,7 @@ import { SyncService } from "@bitwarden/common/vault/abstractions/sync/sync.serv import { Cipher } from "@bitwarden/common/vault/models/domain/cipher"; import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view"; import { DialogService } from "@bitwarden/components"; -import { PasswordRepromptService, DefaultCipherFormConfigService } from "@bitwarden/vault"; +import { PasswordRepromptService, CipherFormConfigService } from "@bitwarden/vault"; // eslint-disable-next-line no-restricted-imports import { ExposedPasswordsReportComponent as BaseExposedPasswordsReportComponent } from "../../../tools/reports/pages/exposed-passwords-report.component"; @@ -36,7 +36,7 @@ export class ExposedPasswordsReportComponent passwordRepromptService: PasswordRepromptService, i18nService: I18nService, syncService: SyncService, - cipherFormService: DefaultCipherFormConfigService, + cipherFormService: CipherFormConfigService, ) { super( cipherService, diff --git a/apps/web/src/app/admin-console/organizations/tools/inactive-two-factor-report.component.ts b/apps/web/src/app/admin-console/organizations/tools/inactive-two-factor-report.component.ts index 422d81e092..7594849aeb 100644 --- a/apps/web/src/app/admin-console/organizations/tools/inactive-two-factor-report.component.ts +++ b/apps/web/src/app/admin-console/organizations/tools/inactive-two-factor-report.component.ts @@ -10,7 +10,7 @@ import { CipherService } from "@bitwarden/common/vault/abstractions/cipher.servi import { SyncService } from "@bitwarden/common/vault/abstractions/sync/sync.service.abstraction"; import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view"; import { DialogService } from "@bitwarden/components"; -import { DefaultCipherFormConfigService, PasswordRepromptService } from "@bitwarden/vault"; +import { CipherFormConfigService, PasswordRepromptService } from "@bitwarden/vault"; // eslint-disable-next-line no-restricted-imports import { InactiveTwoFactorReportComponent as BaseInactiveTwoFactorReportComponent } from "../../../tools/reports/pages/inactive-two-factor-report.component"; @@ -33,7 +33,7 @@ export class InactiveTwoFactorReportComponent organizationService: OrganizationService, i18nService: I18nService, syncService: SyncService, - cipherFormConfigService: DefaultCipherFormConfigService, + cipherFormConfigService: CipherFormConfigService, ) { super( cipherService, diff --git a/apps/web/src/app/admin-console/organizations/tools/reused-passwords-report.component.ts b/apps/web/src/app/admin-console/organizations/tools/reused-passwords-report.component.ts index 2e2beba7c3..b791008031 100644 --- a/apps/web/src/app/admin-console/organizations/tools/reused-passwords-report.component.ts +++ b/apps/web/src/app/admin-console/organizations/tools/reused-passwords-report.component.ts @@ -10,7 +10,7 @@ import { SyncService } from "@bitwarden/common/vault/abstractions/sync/sync.serv import { Cipher } from "@bitwarden/common/vault/models/domain/cipher"; import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view"; import { DialogService } from "@bitwarden/components"; -import { DefaultCipherFormConfigService, PasswordRepromptService } from "@bitwarden/vault"; +import { CipherFormConfigService, PasswordRepromptService } from "@bitwarden/vault"; // eslint-disable-next-line no-restricted-imports import { ReusedPasswordsReportComponent as BaseReusedPasswordsReportComponent } from "../../../tools/reports/pages/reused-passwords-report.component"; @@ -34,7 +34,7 @@ export class ReusedPasswordsReportComponent passwordRepromptService: PasswordRepromptService, i18nService: I18nService, syncService: SyncService, - cipherFormConfigService: DefaultCipherFormConfigService, + cipherFormConfigService: CipherFormConfigService, ) { super( cipherService, diff --git a/apps/web/src/app/admin-console/organizations/tools/unsecured-websites-report.component.ts b/apps/web/src/app/admin-console/organizations/tools/unsecured-websites-report.component.ts index 2f558df385..4cdaddfcf7 100644 --- a/apps/web/src/app/admin-console/organizations/tools/unsecured-websites-report.component.ts +++ b/apps/web/src/app/admin-console/organizations/tools/unsecured-websites-report.component.ts @@ -10,7 +10,7 @@ import { CipherService } from "@bitwarden/common/vault/abstractions/cipher.servi import { SyncService } from "@bitwarden/common/vault/abstractions/sync/sync.service.abstraction"; import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view"; import { DialogService } from "@bitwarden/components"; -import { DefaultCipherFormConfigService, PasswordRepromptService } from "@bitwarden/vault"; +import { CipherFormConfigService, PasswordRepromptService } from "@bitwarden/vault"; // eslint-disable-next-line no-restricted-imports import { UnsecuredWebsitesReportComponent as BaseUnsecuredWebsitesReportComponent } from "../../../tools/reports/pages/unsecured-websites-report.component"; @@ -33,7 +33,7 @@ export class UnsecuredWebsitesReportComponent i18nService: I18nService, syncService: SyncService, collectionService: CollectionService, - cipherFormConfigService: DefaultCipherFormConfigService, + cipherFormConfigService: CipherFormConfigService, ) { super( cipherService, diff --git a/apps/web/src/app/admin-console/organizations/tools/weak-passwords-report.component.ts b/apps/web/src/app/admin-console/organizations/tools/weak-passwords-report.component.ts index ca9e7bbbca..5e52b3be1f 100644 --- a/apps/web/src/app/admin-console/organizations/tools/weak-passwords-report.component.ts +++ b/apps/web/src/app/admin-console/organizations/tools/weak-passwords-report.component.ts @@ -11,7 +11,7 @@ import { SyncService } from "@bitwarden/common/vault/abstractions/sync/sync.serv import { Cipher } from "@bitwarden/common/vault/models/domain/cipher"; import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view"; import { DialogService } from "@bitwarden/components"; -import { DefaultCipherFormConfigService, PasswordRepromptService } from "@bitwarden/vault"; +import { CipherFormConfigService, PasswordRepromptService } from "@bitwarden/vault"; // eslint-disable-next-line no-restricted-imports import { WeakPasswordsReportComponent as BaseWeakPasswordsReportComponent } from "../../../tools/reports/pages/weak-passwords-report.component"; @@ -36,7 +36,7 @@ export class WeakPasswordsReportComponent passwordRepromptService: PasswordRepromptService, i18nService: I18nService, syncService: SyncService, - cipherFormConfigService: DefaultCipherFormConfigService, + cipherFormConfigService: CipherFormConfigService, ) { super( cipherService, diff --git a/apps/web/src/app/tools/reports/pages/cipher-report.component.ts b/apps/web/src/app/tools/reports/pages/cipher-report.component.ts index e72539de51..ff0df32273 100644 --- a/apps/web/src/app/tools/reports/pages/cipher-report.component.ts +++ b/apps/web/src/app/tools/reports/pages/cipher-report.component.ts @@ -16,7 +16,7 @@ import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view"; import { DialogService, TableDataSource } from "@bitwarden/components"; import { CipherFormConfig, - DefaultCipherFormConfigService, + CipherFormConfigService, PasswordRepromptService, } from "@bitwarden/vault"; @@ -56,7 +56,7 @@ export class CipherReportComponent implements OnDestroy { protected organizationService: OrganizationService, protected i18nService: I18nService, private syncService: SyncService, - private cipherFormConfigService: DefaultCipherFormConfigService, + private cipherFormConfigService: CipherFormConfigService, ) { this.organizations$ = this.organizationService.organizations$; this.organizations$.pipe(takeUntil(this.destroyed$)).subscribe((orgs) => { diff --git a/apps/web/src/app/tools/reports/pages/exposed-passwords-report.component.spec.ts b/apps/web/src/app/tools/reports/pages/exposed-passwords-report.component.spec.ts index 335e327722..9d8cba025a 100644 --- a/apps/web/src/app/tools/reports/pages/exposed-passwords-report.component.spec.ts +++ b/apps/web/src/app/tools/reports/pages/exposed-passwords-report.component.spec.ts @@ -10,7 +10,7 @@ import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.servic import { CipherService } from "@bitwarden/common/vault/abstractions/cipher.service"; import { SyncService } from "@bitwarden/common/vault/abstractions/sync/sync.service.abstraction"; import { DialogService } from "@bitwarden/components"; -import { DefaultCipherFormConfigService, PasswordRepromptService } from "@bitwarden/vault"; +import { CipherFormConfigService, PasswordRepromptService } from "@bitwarden/vault"; import { ExposedPasswordsReportComponent } from "./exposed-passwords-report.component"; import { cipherData } from "./reports-ciphers.mock"; @@ -23,6 +23,7 @@ describe("ExposedPasswordsReportComponent", () => { let syncServiceMock: MockProxy; beforeEach(() => { + let cipherFormConfigServiceMock: MockProxy; syncServiceMock = mock(); auditService = mock(); organizationService = mock(); @@ -61,8 +62,8 @@ describe("ExposedPasswordsReportComponent", () => { useValue: mock(), }, { - provide: DefaultCipherFormConfigService, - useValue: mock(), + provide: CipherFormConfigService, + useValue: cipherFormConfigServiceMock, }, ], schemas: [], diff --git a/apps/web/src/app/tools/reports/pages/exposed-passwords-report.component.ts b/apps/web/src/app/tools/reports/pages/exposed-passwords-report.component.ts index 731c7604f7..b6f2770d65 100644 --- a/apps/web/src/app/tools/reports/pages/exposed-passwords-report.component.ts +++ b/apps/web/src/app/tools/reports/pages/exposed-passwords-report.component.ts @@ -8,7 +8,7 @@ import { SyncService } from "@bitwarden/common/vault/abstractions/sync/sync.serv import { CipherType } from "@bitwarden/common/vault/enums"; import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view"; import { DialogService } from "@bitwarden/components"; -import { DefaultCipherFormConfigService, PasswordRepromptService } from "@bitwarden/vault"; +import { CipherFormConfigService, PasswordRepromptService } from "@bitwarden/vault"; import { CipherReportComponent } from "./cipher-report.component"; @@ -29,7 +29,7 @@ export class ExposedPasswordsReportComponent extends CipherReportComponent imple passwordRepromptService: PasswordRepromptService, i18nService: I18nService, syncService: SyncService, - cipherFormConfigService: DefaultCipherFormConfigService, + cipherFormConfigService: CipherFormConfigService, ) { super( cipherService, diff --git a/apps/web/src/app/tools/reports/pages/inactive-two-factor-report.component.spec.ts b/apps/web/src/app/tools/reports/pages/inactive-two-factor-report.component.spec.ts index df2517edf6..65e2734a43 100644 --- a/apps/web/src/app/tools/reports/pages/inactive-two-factor-report.component.spec.ts +++ b/apps/web/src/app/tools/reports/pages/inactive-two-factor-report.component.spec.ts @@ -10,7 +10,7 @@ import { LogService } from "@bitwarden/common/platform/abstractions/log.service" import { CipherService } from "@bitwarden/common/vault/abstractions/cipher.service"; import { SyncService } from "@bitwarden/common/vault/abstractions/sync/sync.service.abstraction"; import { DialogService } from "@bitwarden/components"; -import { DefaultCipherFormConfigService, PasswordRepromptService } from "@bitwarden/vault"; +import { CipherFormConfigService, PasswordRepromptService } from "@bitwarden/vault"; import { CipherReportComponent } from "./cipher-report.component"; import { InactiveTwoFactorReportComponent } from "./inactive-two-factor-report.component"; @@ -23,6 +23,7 @@ describe("InactiveTwoFactorReportComponent", () => { let syncServiceMock: MockProxy; beforeEach(() => { + let cipherFormConfigServiceMock: MockProxy; organizationService = mock(); organizationService.organizations$ = of([]); syncServiceMock = mock(); @@ -60,8 +61,8 @@ describe("InactiveTwoFactorReportComponent", () => { useValue: mock(), }, { - provide: DefaultCipherFormConfigService, - useValue: mock(), + provide: CipherFormConfigService, + useValue: cipherFormConfigServiceMock, }, { provide: CipherReportComponent, diff --git a/apps/web/src/app/tools/reports/pages/inactive-two-factor-report.component.ts b/apps/web/src/app/tools/reports/pages/inactive-two-factor-report.component.ts index ad80cfaf22..35d4f4b65c 100644 --- a/apps/web/src/app/tools/reports/pages/inactive-two-factor-report.component.ts +++ b/apps/web/src/app/tools/reports/pages/inactive-two-factor-report.component.ts @@ -11,7 +11,7 @@ import { SyncService } from "@bitwarden/common/vault/abstractions/sync/sync.serv import { CipherType } from "@bitwarden/common/vault/enums"; import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view"; import { DialogService } from "@bitwarden/components"; -import { DefaultCipherFormConfigService, PasswordRepromptService } from "@bitwarden/vault"; +import { CipherFormConfigService, PasswordRepromptService } from "@bitwarden/vault"; import { CipherReportComponent } from "./cipher-report.component"; @@ -32,7 +32,7 @@ export class InactiveTwoFactorReportComponent extends CipherReportComponent impl passwordRepromptService: PasswordRepromptService, i18nService: I18nService, syncService: SyncService, - cipherFormConfigService: DefaultCipherFormConfigService, + cipherFormConfigService: CipherFormConfigService, ) { super( cipherService, diff --git a/apps/web/src/app/tools/reports/pages/reused-passwords-report.component.spec.ts b/apps/web/src/app/tools/reports/pages/reused-passwords-report.component.spec.ts index 18435c1b53..9d06a1b298 100644 --- a/apps/web/src/app/tools/reports/pages/reused-passwords-report.component.spec.ts +++ b/apps/web/src/app/tools/reports/pages/reused-passwords-report.component.spec.ts @@ -9,7 +9,7 @@ import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.servic import { CipherService } from "@bitwarden/common/vault/abstractions/cipher.service"; import { SyncService } from "@bitwarden/common/vault/abstractions/sync/sync.service.abstraction"; import { DialogService } from "@bitwarden/components"; -import { DefaultCipherFormConfigService, PasswordRepromptService } from "@bitwarden/vault"; +import { CipherFormConfigService, PasswordRepromptService } from "@bitwarden/vault"; import { cipherData } from "./reports-ciphers.mock"; import { ReusedPasswordsReportComponent } from "./reused-passwords-report.component"; @@ -21,6 +21,7 @@ describe("ReusedPasswordsReportComponent", () => { let syncServiceMock: MockProxy; beforeEach(() => { + let cipherFormConfigServiceMock: MockProxy; organizationService = mock(); organizationService.organizations$ = of([]); syncServiceMock = mock(); @@ -54,8 +55,8 @@ describe("ReusedPasswordsReportComponent", () => { useValue: mock(), }, { - provide: DefaultCipherFormConfigService, - useValue: mock(), + provide: CipherFormConfigService, + useValue: cipherFormConfigServiceMock, }, ], schemas: [], diff --git a/apps/web/src/app/tools/reports/pages/reused-passwords-report.component.ts b/apps/web/src/app/tools/reports/pages/reused-passwords-report.component.ts index 6b0b5bc6ac..1f4253438a 100644 --- a/apps/web/src/app/tools/reports/pages/reused-passwords-report.component.ts +++ b/apps/web/src/app/tools/reports/pages/reused-passwords-report.component.ts @@ -9,7 +9,7 @@ import { SyncService } from "@bitwarden/common/vault/abstractions/sync/sync.serv import { CipherType } from "@bitwarden/common/vault/enums"; import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view"; import { DialogService } from "@bitwarden/components"; -import { DefaultCipherFormConfigService, PasswordRepromptService } from "@bitwarden/vault"; +import { CipherFormConfigService, PasswordRepromptService } from "@bitwarden/vault"; import { CipherReportComponent } from "./cipher-report.component"; @@ -28,7 +28,7 @@ export class ReusedPasswordsReportComponent extends CipherReportComponent implem passwordRepromptService: PasswordRepromptService, i18nService: I18nService, syncService: SyncService, - cipherFormConfigService: DefaultCipherFormConfigService, + cipherFormConfigService: CipherFormConfigService, ) { super( cipherService, diff --git a/apps/web/src/app/tools/reports/pages/unsecured-websites-report.component.spec.ts b/apps/web/src/app/tools/reports/pages/unsecured-websites-report.component.spec.ts index 41c9cb5c13..61762cf00b 100644 --- a/apps/web/src/app/tools/reports/pages/unsecured-websites-report.component.spec.ts +++ b/apps/web/src/app/tools/reports/pages/unsecured-websites-report.component.spec.ts @@ -10,7 +10,7 @@ import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.servic import { CipherService } from "@bitwarden/common/vault/abstractions/cipher.service"; import { SyncService } from "@bitwarden/common/vault/abstractions/sync/sync.service.abstraction"; import { DialogService } from "@bitwarden/components"; -import { DefaultCipherFormConfigService, PasswordRepromptService } from "@bitwarden/vault"; +import { CipherFormConfigService, PasswordRepromptService } from "@bitwarden/vault"; import { cipherData } from "./reports-ciphers.mock"; import { UnsecuredWebsitesReportComponent } from "./unsecured-websites-report.component"; @@ -23,6 +23,7 @@ describe("UnsecuredWebsitesReportComponent", () => { let collectionService: MockProxy; beforeEach(() => { + let cipherFormConfigServiceMock: MockProxy; organizationService = mock(); organizationService.organizations$ = of([]); syncServiceMock = mock(); @@ -61,8 +62,8 @@ describe("UnsecuredWebsitesReportComponent", () => { useValue: collectionService, }, { - provide: DefaultCipherFormConfigService, - useValue: mock(), + provide: CipherFormConfigService, + useValue: cipherFormConfigServiceMock, }, ], schemas: [], diff --git a/apps/web/src/app/tools/reports/pages/unsecured-websites-report.component.ts b/apps/web/src/app/tools/reports/pages/unsecured-websites-report.component.ts index 2386cb3bf6..85d1e4f609 100644 --- a/apps/web/src/app/tools/reports/pages/unsecured-websites-report.component.ts +++ b/apps/web/src/app/tools/reports/pages/unsecured-websites-report.component.ts @@ -8,7 +8,7 @@ import { SyncService } from "@bitwarden/common/vault/abstractions/sync/sync.serv import { CipherType } from "@bitwarden/common/vault/enums"; import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view"; import { DialogService } from "@bitwarden/components"; -import { DefaultCipherFormConfigService, PasswordRepromptService } from "@bitwarden/vault"; +import { CipherFormConfigService, PasswordRepromptService } from "@bitwarden/vault"; import { CipherReportComponent } from "./cipher-report.component"; @@ -27,7 +27,7 @@ export class UnsecuredWebsitesReportComponent extends CipherReportComponent impl i18nService: I18nService, syncService: SyncService, private collectionService: CollectionService, - cipherFormConfigService: DefaultCipherFormConfigService, + cipherFormConfigService: CipherFormConfigService, ) { super( cipherService, diff --git a/apps/web/src/app/tools/reports/pages/weak-passwords-report.component.spec.ts b/apps/web/src/app/tools/reports/pages/weak-passwords-report.component.spec.ts index ab8dc6e979..5f7bb3a541 100644 --- a/apps/web/src/app/tools/reports/pages/weak-passwords-report.component.spec.ts +++ b/apps/web/src/app/tools/reports/pages/weak-passwords-report.component.spec.ts @@ -10,7 +10,7 @@ import { PasswordStrengthServiceAbstraction } from "@bitwarden/common/tools/pass import { CipherService } from "@bitwarden/common/vault/abstractions/cipher.service"; import { SyncService } from "@bitwarden/common/vault/abstractions/sync/sync.service.abstraction"; import { DialogService } from "@bitwarden/components"; -import { DefaultCipherFormConfigService, PasswordRepromptService } from "@bitwarden/vault"; +import { CipherFormConfigService, PasswordRepromptService } from "@bitwarden/vault"; import { cipherData } from "./reports-ciphers.mock"; import { WeakPasswordsReportComponent } from "./weak-passwords-report.component"; @@ -23,6 +23,7 @@ describe("WeakPasswordsReportComponent", () => { let syncServiceMock: MockProxy; beforeEach(() => { + let cipherFormConfigServiceMock: MockProxy; syncServiceMock = mock(); passwordStrengthService = mock(); organizationService = mock(); @@ -61,8 +62,8 @@ describe("WeakPasswordsReportComponent", () => { useValue: mock(), }, { - provide: DefaultCipherFormConfigService, - useValue: mock(), + provide: CipherFormConfigService, + useValue: cipherFormConfigServiceMock, }, ], schemas: [], diff --git a/apps/web/src/app/tools/reports/pages/weak-passwords-report.component.ts b/apps/web/src/app/tools/reports/pages/weak-passwords-report.component.ts index 43f31c4666..9552a35bb4 100644 --- a/apps/web/src/app/tools/reports/pages/weak-passwords-report.component.ts +++ b/apps/web/src/app/tools/reports/pages/weak-passwords-report.component.ts @@ -11,7 +11,7 @@ import { SyncService } from "@bitwarden/common/vault/abstractions/sync/sync.serv import { CipherType } from "@bitwarden/common/vault/enums"; import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view"; import { BadgeVariant, DialogService } from "@bitwarden/components"; -import { DefaultCipherFormConfigService, PasswordRepromptService } from "@bitwarden/vault"; +import { CipherFormConfigService, PasswordRepromptService } from "@bitwarden/vault"; import { CipherReportComponent } from "./cipher-report.component"; @@ -35,7 +35,7 @@ export class WeakPasswordsReportComponent extends CipherReportComponent implemen passwordRepromptService: PasswordRepromptService, i18nService: I18nService, syncService: SyncService, - cipherFormConfigService: DefaultCipherFormConfigService, + cipherFormConfigService: CipherFormConfigService, ) { super( cipherService, diff --git a/apps/web/src/app/tools/reports/reports.module.ts b/apps/web/src/app/tools/reports/reports.module.ts index 27ed65828b..097548d630 100644 --- a/apps/web/src/app/tools/reports/reports.module.ts +++ b/apps/web/src/app/tools/reports/reports.module.ts @@ -1,7 +1,7 @@ import { CommonModule } from "@angular/common"; import { NgModule } from "@angular/core"; -import { DefaultCipherFormConfigService } from "@bitwarden/vault"; +import { CipherFormConfigService, DefaultCipherFormConfigService } from "@bitwarden/vault"; import { HeaderModule } from "../../layouts/header/header.module"; import { SharedModule } from "../../shared"; @@ -39,6 +39,11 @@ import { ReportsSharedModule } from "./shared"; UnsecuredWebsitesReportComponent, WeakPasswordsReportComponent, ], - providers: [DefaultCipherFormConfigService], + providers: [ + { + provide: CipherFormConfigService, + useClass: DefaultCipherFormConfigService, + }, + ], }) export class ReportsModule {}