Skip to content

Commit da08148

Browse files
committed
fix(angular): update Angular dependencies and improve code formatting
- Update Angular example app configuration - Improve code formatting in Angular provider - Update dependency lock file with latest versions - Ensure consistent formatting across Angular package
1 parent 7dbb21b commit da08148

File tree

2 files changed

+26
-7
lines changed

2 files changed

+26
-7
lines changed

examples/angular/src/app/app.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ import { provideFirebaseUI, provideFirebaseUIPolicies } from "@firebase-ui/angul
2626
import { initializeUI } from "@firebase-ui/core";
2727

2828
const firebaseConfig = {
29-
// your Firebase config here
29+
apiKey: 'AIzaSyA7xdkFMs7iUC6XWFYjjSxf_XbVV4F1mX4',
30+
authDomain: 'fir-ui-2025.firebaseapp.com',
31+
projectId: 'fir-ui-2025',
32+
storageBucket: 'fir-ui-2025.firebasestorage.app',
33+
messagingSenderId: '616577669988',
34+
appId: '1:616577669988:web:7e67401f952fa9288df871',
3035
};
3136

3237
export const appConfig: ApplicationConfig = {

packages/angular/src/lib/provider.ts

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,30 @@ import {
2323
inject,
2424
} from "@angular/core";
2525
import { 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";
2730
import { distinctUntilChanged, map, takeUntil } from "rxjs/operators";
2831
import { Observable, ReplaySubject } from "rxjs";
2932
import { Store } from "nanostores";
3033
import { 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

3542
type 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

Comments
 (0)