diff --git a/apps/web/src/app/oss-routing.module.ts b/apps/web/src/app/oss-routing.module.ts index 0300e61b73..181f0904f4 100644 --- a/apps/web/src/app/oss-routing.module.ts +++ b/apps/web/src/app/oss-routing.module.ts @@ -8,6 +8,7 @@ import { tdeDecryptionRequiredGuard, UnauthGuard, } from "@bitwarden/angular/auth/guards"; +import { AnonLayoutWrapperComponent } from "@bitwarden/auth/angular"; import { flagEnabled, Flags } from "../utils/flags"; @@ -16,7 +17,6 @@ import { FamiliesForEnterpriseSetupComponent } from "./admin-console/organizatio import { CreateOrganizationComponent } from "./admin-console/settings/create-organization.component"; import { SponsoredFamiliesComponent } from "./admin-console/settings/sponsored-families.component"; import { AcceptOrganizationComponent } from "./auth/accept-organization.component"; -import { AnonLayoutWrapperComponent } from "./auth/anon-layout-wrapper.component"; import { deepLinkGuard } from "./auth/guards/deep-link.guard"; import { HintComponent } from "./auth/hint.component"; import { LockComponent } from "./auth/lock.component"; diff --git a/apps/web/src/app/shared/shared.module.ts b/apps/web/src/app/shared/shared.module.ts index 43698e4f1e..bc775f07e2 100644 --- a/apps/web/src/app/shared/shared.module.ts +++ b/apps/web/src/app/shared/shared.module.ts @@ -7,7 +7,6 @@ import { InfiniteScrollModule } from "ngx-infinite-scroll"; import { ToastrModule } from "ngx-toastr"; import { JslibModule } from "@bitwarden/angular/jslib.module"; -import { AnonLayoutComponent } from "@bitwarden/auth/angular"; import { AsyncActionsModule, AvatarModule, @@ -81,7 +80,6 @@ import "./locales"; TabsModule, ToggleGroupModule, TypographyModule, - AnonLayoutComponent, // Web specific ], @@ -120,7 +118,6 @@ import "./locales"; TabsModule, ToggleGroupModule, TypographyModule, - AnonLayoutComponent, // Web specific ], diff --git a/apps/web/src/app/auth/anon-layout-wrapper.component.html b/libs/auth/src/angular/anon-layout/anon-layout-wrapper.component.html similarity index 100% rename from apps/web/src/app/auth/anon-layout-wrapper.component.html rename to libs/auth/src/angular/anon-layout/anon-layout-wrapper.component.html diff --git a/apps/web/src/app/auth/anon-layout-wrapper.component.ts b/libs/auth/src/angular/anon-layout/anon-layout-wrapper.component.ts similarity index 70% rename from apps/web/src/app/auth/anon-layout-wrapper.component.ts rename to libs/auth/src/angular/anon-layout/anon-layout-wrapper.component.ts index d3dfdecdd5..0c82cd28a1 100644 --- a/apps/web/src/app/auth/anon-layout-wrapper.component.ts +++ b/libs/auth/src/angular/anon-layout/anon-layout-wrapper.component.ts @@ -1,11 +1,12 @@ import { Component, OnDestroy, OnInit } from "@angular/core"; +import { RouterModule } from "@angular/router"; -import { SharedModule } from "../shared"; +import { AnonLayoutComponent } from "./anon-layout.component"; @Component({ standalone: true, templateUrl: "anon-layout-wrapper.component.html", - imports: [SharedModule], + imports: [AnonLayoutComponent, RouterModule], }) export class AnonLayoutWrapperComponent implements OnInit, OnDestroy { async ngOnInit() { diff --git a/libs/auth/src/angular/index.ts b/libs/auth/src/angular/index.ts index 067ed63b8e..474ef17d93 100644 --- a/libs/auth/src/angular/index.ts +++ b/libs/auth/src/angular/index.ts @@ -6,6 +6,7 @@ export * from "./icons"; export * from "./anon-layout/anon-layout.component"; +export * from "./anon-layout/anon-layout-wrapper.component"; export * from "./fingerprint-dialog/fingerprint-dialog.component"; export * from "./password-callout/password-callout.component";