@@ -23,21 +23,30 @@ import {
2323 inject ,
2424} from "@angular/core" ;
2525import { FirebaseApps } from "@angular/fire/app" ;
26- import { type FirebaseUI as FirebaseUIType , getTranslation } from "@firebase-ui/core" ;
26+ import {
27+ type FirebaseUI as FirebaseUIType ,
28+ getTranslation ,
29+ } from "@firebase-ui/core" ;
2730import { distinctUntilChanged , map , takeUntil } from "rxjs/operators" ;
2831import { Observable , ReplaySubject } from "rxjs" ;
2932import { Store } from "nanostores" ;
3033import { TranslationCategory , TranslationKey } from "@firebase-ui/translations" ;
3134
32- const FIREBASE_UI_STORE = new InjectionToken < FirebaseUIType > ( "firebaseui.store" ) ;
33- const FIREBASE_UI_POLICIES = new InjectionToken < PolicyConfig > ( "firebaseui.policies" ) ;
35+ const FIREBASE_UI_STORE = new InjectionToken < FirebaseUIType > (
36+ "firebaseui.store"
37+ ) ;
38+ const FIREBASE_UI_POLICIES = new InjectionToken < PolicyConfig > (
39+ "firebaseui.policies"
40+ ) ;
3441
3542type PolicyConfig = {
3643 termsOfServiceUrl : string ;
3744 privacyPolicyUrl : string ;
3845} ;
3946
40- export function provideFirebaseUI ( uiFactory : ( apps : FirebaseApps ) => FirebaseUIType ) : EnvironmentProviders {
47+ export function provideFirebaseUI (
48+ uiFactory : ( apps : FirebaseApps ) => FirebaseUIType
49+ ) : EnvironmentProviders {
4150 const providers : Provider [ ] = [
4251 // TODO: This should depend on the FirebaseAuth provider via deps,
4352 // see https://github.com/angular/angularfire/blob/35e0a9859299010488852b1826e4083abe56528f/src/firestore/firestore.module.ts#L76
@@ -64,8 +73,13 @@ export class FirebaseUI {
6473 return this . useStore ( this . store ) ;
6574 }
6675
67- translation < T extends TranslationCategory > ( category : T , key : TranslationKey < T > ) {
68- return this . config ( ) . pipe ( map ( ( config ) => getTranslation ( config , category , key ) ) ) ;
76+ translation < T extends TranslationCategory > (
77+ category : T ,
78+ key : TranslationKey < T >
79+ ) {
80+ return this . config ( ) . pipe (
81+ map ( ( config ) => getTranslation ( config , category , key ) )
82+ ) ;
6983 }
7084
7185 useStore < T > ( store : Store < T > ) : Observable < T > {
0 commit comments