@angular/fire 7.1.0-rc.3 → 7.1.1-canary.5ecf875
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.
- package/analytics/analytics.module.d.ts +9 -6
- package/analytics/firebase.d.ts +2 -2
- package/analytics/overrides.d.ts +1 -0
- package/analytics/public_api.d.ts +2 -0
- package/analytics/screen-tracking.service.d.ts +40 -0
- package/analytics/user-tracking.service.d.ts +11 -0
- package/app/app.module.d.ts +3 -3
- package/app-check/app-check.module.d.ts +3 -3
- package/auth/auth.module.d.ts +3 -3
- package/auth-guard/angular-fire-auth-guard.d.ts +5 -0
- package/auth-guard/auth-guard.d.ts +29 -0
- package/auth-guard/auth-guard.module.d.ts +7 -0
- package/auth-guard/package.json +11 -0
- package/auth-guard/public_api.d.ts +2 -0
- package/bundles/angular-fire-analytics.umd.js +548 -41
- package/bundles/angular-fire-analytics.umd.js.map +1 -1
- package/bundles/angular-fire-app-check.umd.js +336 -18
- package/bundles/angular-fire-app-check.umd.js.map +1 -1
- package/bundles/angular-fire-app.umd.js +323 -3
- package/bundles/angular-fire-app.umd.js.map +1 -1
- package/bundles/angular-fire-auth-guard.umd.js +109 -0
- package/bundles/angular-fire-auth-guard.umd.js.map +1 -0
- package/bundles/angular-fire-auth.umd.js +324 -9
- package/bundles/angular-fire-auth.umd.js.map +1 -1
- package/bundles/angular-fire-compat-analytics.umd.js +16 -112
- package/bundles/angular-fire-compat-analytics.umd.js.map +1 -1
- package/bundles/angular-fire-compat-auth.umd.js +1 -1
- package/bundles/angular-fire-compat-auth.umd.js.map +1 -1
- package/bundles/angular-fire-compat-database.umd.js +1 -1
- package/bundles/angular-fire-compat-database.umd.js.map +1 -1
- package/bundles/angular-fire-compat-firestore.umd.js +1 -1
- package/bundles/angular-fire-compat-firestore.umd.js.map +1 -1
- package/bundles/angular-fire-compat-functions.umd.js +1 -1
- package/bundles/angular-fire-compat-functions.umd.js.map +1 -1
- package/bundles/angular-fire-compat-messaging.umd.js +5 -5
- package/bundles/angular-fire-compat-messaging.umd.js.map +1 -1
- package/bundles/angular-fire-compat-performance.umd.js +5 -5
- package/bundles/angular-fire-compat-performance.umd.js.map +1 -1
- package/bundles/angular-fire-compat-remote-config.umd.js +5 -5
- package/bundles/angular-fire-compat-remote-config.umd.js.map +1 -1
- package/bundles/angular-fire-compat-storage.umd.js +2 -1
- package/bundles/angular-fire-compat-storage.umd.js.map +1 -1
- package/bundles/angular-fire-compat.umd.js +38 -2
- package/bundles/angular-fire-compat.umd.js.map +1 -1
- package/bundles/angular-fire-database.umd.js +323 -6
- package/bundles/angular-fire-database.umd.js.map +1 -1
- package/bundles/angular-fire-firestore-lite.umd.js +327 -9
- package/bundles/angular-fire-firestore-lite.umd.js.map +1 -1
- package/bundles/angular-fire-firestore.umd.js +323 -8
- package/bundles/angular-fire-firestore.umd.js.map +1 -1
- package/bundles/angular-fire-functions.umd.js +323 -6
- package/bundles/angular-fire-functions.umd.js.map +1 -1
- package/bundles/angular-fire-messaging.umd.js +339 -24
- package/bundles/angular-fire-messaging.umd.js.map +1 -1
- package/bundles/angular-fire-performance.umd.js +339 -11
- package/bundles/angular-fire-performance.umd.js.map +1 -1
- package/bundles/angular-fire-remote-config.umd.js +342 -6
- package/bundles/angular-fire-remote-config.umd.js.map +1 -1
- package/bundles/angular-fire-storage.umd.js +324 -7
- package/bundles/angular-fire-storage.umd.js.map +1 -1
- package/bundles/angular-fire.umd.js +43 -371
- package/bundles/angular-fire.umd.js.map +1 -1
- package/compat/analytics/screen-tracking.service.d.ts +2 -2
- package/compat/cache.d.ts +1 -0
- package/compat/public_api.d.ts +1 -0
- package/compat/storage/interfaces.d.ts +1 -0
- package/compat/storage/ref.d.ts +2 -1
- package/core.d.ts +13 -3
- package/database/database.module.d.ts +3 -3
- package/docs/deploy/getting-started.md +62 -1
- package/docs/version-7-upgrade.md +1 -1
- package/esm2015/analytics/analytics.module.js +33 -27
- package/esm2015/analytics/firebase.js +3 -3
- package/esm2015/analytics/overrides.js +3 -0
- package/esm2015/analytics/public_api.js +3 -1
- package/esm2015/analytics/screen-tracking.service.js +139 -0
- package/esm2015/analytics/user-tracking.service.js +43 -0
- package/esm2015/app/app.module.js +12 -7
- package/esm2015/app-check/app-check.js +1 -2
- package/esm2015/app-check/app-check.module.js +19 -14
- package/esm2015/auth/auth.js +1 -2
- package/esm2015/auth/auth.module.js +10 -9
- package/esm2015/auth-guard/angular-fire-auth-guard.js +5 -0
- package/esm2015/auth-guard/auth-guard.js +49 -0
- package/esm2015/auth-guard/auth-guard.module.js +20 -0
- package/esm2015/auth-guard/public_api.js +3 -0
- package/esm2015/compat/analytics/analytics.js +2 -3
- package/esm2015/compat/analytics/screen-tracking.service.js +11 -100
- package/esm2015/compat/auth/auth.js +2 -3
- package/esm2015/compat/cache.js +32 -0
- package/esm2015/compat/database/database.js +2 -3
- package/esm2015/compat/firestore/firestore.js +2 -3
- package/esm2015/compat/functions/functions.js +2 -3
- package/esm2015/compat/messaging/messaging.js +3 -3
- package/esm2015/compat/performance/performance.js +2 -3
- package/esm2015/compat/public_api.js +2 -1
- package/esm2015/compat/remote-config/remote-config.js +4 -5
- package/esm2015/compat/storage/interfaces.js +1 -1
- package/esm2015/compat/storage/ref.js +2 -1
- package/esm2015/compat/storage/storage.js +3 -3
- package/esm2015/core.js +44 -52
- package/esm2015/database/database.module.js +9 -7
- package/esm2015/firestore/firestore.module.js +9 -9
- package/esm2015/firestore/lite/lite.module.js +11 -7
- package/esm2015/functions/functions.module.js +9 -7
- package/esm2015/messaging/firebase.js +3 -3
- package/esm2015/messaging/messaging.module.js +19 -21
- package/esm2015/messaging/overrides.js +3 -0
- package/esm2015/performance/performance.module.js +22 -8
- package/esm2015/remote-config/firebase.js +2 -1
- package/esm2015/remote-config/overrides.js +3 -0
- package/esm2015/remote-config/remote-config.module.js +25 -7
- package/esm2015/storage/storage.module.js +10 -8
- package/esm2015/zones.js +3 -2
- package/fesm2015/angular-fire-analytics.js +209 -40
- package/fesm2015/angular-fire-analytics.js.map +1 -1
- package/fesm2015/angular-fire-app-check.js +18 -14
- package/fesm2015/angular-fire-app-check.js.map +1 -1
- package/fesm2015/angular-fire-app.js +11 -6
- package/fesm2015/angular-fire-app.js.map +1 -1
- package/fesm2015/angular-fire-auth-guard.js +72 -0
- package/fesm2015/angular-fire-auth-guard.js.map +1 -0
- package/fesm2015/angular-fire-auth.js +9 -9
- package/fesm2015/angular-fire-auth.js.map +1 -1
- package/fesm2015/angular-fire-compat-analytics.js +10 -98
- package/fesm2015/angular-fire-compat-analytics.js.map +1 -1
- package/fesm2015/angular-fire-compat-auth.js +2 -2
- package/fesm2015/angular-fire-compat-auth.js.map +1 -1
- package/fesm2015/angular-fire-compat-database.js +2 -2
- package/fesm2015/angular-fire-compat-database.js.map +1 -1
- package/fesm2015/angular-fire-compat-firestore.js +2 -2
- package/fesm2015/angular-fire-compat-firestore.js.map +1 -1
- package/fesm2015/angular-fire-compat-functions.js +2 -2
- package/fesm2015/angular-fire-compat-functions.js.map +1 -1
- package/fesm2015/angular-fire-compat-messaging.js +2 -2
- package/fesm2015/angular-fire-compat-messaging.js.map +1 -1
- package/fesm2015/angular-fire-compat-performance.js +2 -2
- package/fesm2015/angular-fire-compat-performance.js.map +1 -1
- package/fesm2015/angular-fire-compat-remote-config.js +4 -4
- package/fesm2015/angular-fire-compat-remote-config.js.map +1 -1
- package/fesm2015/angular-fire-compat-storage.js +3 -2
- package/fesm2015/angular-fire-compat-storage.js.map +1 -1
- package/fesm2015/angular-fire-compat.js +34 -3
- package/fesm2015/angular-fire-compat.js.map +1 -1
- package/fesm2015/angular-fire-database.js +8 -6
- package/fesm2015/angular-fire-database.js.map +1 -1
- package/fesm2015/angular-fire-firestore-lite.js +10 -6
- package/fesm2015/angular-fire-firestore-lite.js.map +1 -1
- package/fesm2015/angular-fire-firestore.js +8 -8
- package/fesm2015/angular-fire-firestore.js.map +1 -1
- package/fesm2015/angular-fire-functions.js +8 -6
- package/fesm2015/angular-fire-functions.js.map +1 -1
- package/fesm2015/angular-fire-messaging.js +22 -22
- package/fesm2015/angular-fire-messaging.js.map +1 -1
- package/fesm2015/angular-fire-performance.js +21 -7
- package/fesm2015/angular-fire-performance.js.map +1 -1
- package/fesm2015/angular-fire-remote-config.js +27 -7
- package/fesm2015/angular-fire-remote-config.js.map +1 -1
- package/fesm2015/angular-fire-storage.js +9 -7
- package/fesm2015/angular-fire-storage.js.map +1 -1
- package/fesm2015/angular-fire.js +46 -53
- package/fesm2015/angular-fire.js.map +1 -1
- package/firestore/firestore.module.d.ts +3 -3
- package/firestore/lite/lite.module.d.ts +3 -3
- package/functions/functions.module.d.ts +3 -3
- package/messaging/firebase.d.ts +2 -2
- package/messaging/messaging.module.d.ts +4 -4
- package/messaging/overrides.d.ts +1 -0
- package/package.json +9 -3
- package/performance/performance.module.d.ts +4 -4
- package/remote-config/firebase.d.ts +1 -0
- package/remote-config/overrides.d.ts +1 -0
- package/remote-config/remote-config.module.d.ts +3 -3
- package/schematics/deploy/actions.js +40 -26
- package/schematics/deploy/schema.json +4 -0
- package/schematics/firebaseTools.js +22 -2
- package/schematics/setup/index.js +9 -2
- package/schematics/setup/prompts.js +1 -1
- package/schematics/setup/ssr.js +7 -1
- package/schematics/setup/static.js +9 -3
- package/schematics/utils.js +1 -1
- package/schematics/versions.json +1 -1
- package/storage/storage.module.d.ts +3 -3
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import { NgZone, ModuleWithProviders } from '@angular/core';
|
|
1
|
+
import { NgZone, InjectionToken, ModuleWithProviders, Injector } from '@angular/core';
|
|
2
2
|
import { Analytics as FirebaseAnalytics } from 'firebase/analytics';
|
|
3
3
|
import { Analytics } from './analytics';
|
|
4
4
|
import { FirebaseApp } from '@angular/fire/app';
|
|
5
|
+
import { ScreenTrackingService } from './screen-tracking.service';
|
|
6
|
+
import { UserTrackingService } from './user-tracking.service';
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare
|
|
7
|
-
export declare function
|
|
8
|
+
export declare const PROVIDED_ANALYTICS_INSTANCES: InjectionToken<Analytics[]>;
|
|
9
|
+
export declare function defaultAnalyticsInstanceFactory(provided: FirebaseAnalytics[] | undefined, defaultApp: FirebaseApp): Analytics;
|
|
10
|
+
export declare function analyticsInstanceFactory(fn: (injector: Injector) => FirebaseAnalytics): (zone: NgZone, injector: Injector) => Analytics;
|
|
8
11
|
export declare class AnalyticsModule {
|
|
9
|
-
constructor();
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AnalyticsModule,
|
|
12
|
+
constructor(_screenTrackingService: ScreenTrackingService, _userTrackingService: UserTrackingService);
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AnalyticsModule, [{ optional: true; }, { optional: true; }]>;
|
|
11
14
|
static ɵmod: i0.ɵɵNgModuleDeclaration<AnalyticsModule, never, never, never>;
|
|
12
15
|
static ɵinj: i0.ɵɵInjectorDeclaration<AnalyticsModule>;
|
|
13
16
|
}
|
|
14
|
-
export declare function provideAnalytics(fn: () => FirebaseAnalytics): ModuleWithProviders<AnalyticsModule>;
|
|
17
|
+
export declare function provideAnalytics(fn: (injector: Injector) => FirebaseAnalytics, ...deps: any[]): ModuleWithProviders<AnalyticsModule>;
|
package/analytics/firebase.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from 'firebase/analytics';
|
|
2
|
-
import { getAnalytics as _getAnalytics, initializeAnalytics as _initializeAnalytics,
|
|
2
|
+
import { getAnalytics as _getAnalytics, initializeAnalytics as _initializeAnalytics, logEvent as _logEvent, setAnalyticsCollectionEnabled as _setAnalyticsCollectionEnabled, setCurrentScreen as _setCurrentScreen, settings as _settings, setUserId as _setUserId, setUserProperties as _setUserProperties } from 'firebase/analytics';
|
|
3
|
+
export { isSupported } from './overrides';
|
|
3
4
|
export declare const getAnalytics: typeof _getAnalytics;
|
|
4
5
|
export declare const initializeAnalytics: typeof _initializeAnalytics;
|
|
5
|
-
export declare const isSupported: typeof _isSupported;
|
|
6
6
|
export declare const logEvent: typeof _logEvent;
|
|
7
7
|
export declare const setAnalyticsCollectionEnabled: typeof _setAnalyticsCollectionEnabled;
|
|
8
8
|
export declare const setCurrentScreen: typeof _setCurrentScreen;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isSupported: () => any;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ComponentFactoryResolver, NgZone, OnDestroy, Injector } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { Router } from '@angular/router';
|
|
4
|
+
import { Title } from '@angular/platform-browser';
|
|
5
|
+
import { UserTrackingService } from './user-tracking.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
declare const FIREBASE_EVENT_ORIGIN_KEY = "firebase_event_origin";
|
|
8
|
+
declare const FIREBASE_PREVIOUS_SCREEN_CLASS_KEY = "firebase_previous_class";
|
|
9
|
+
declare const FIREBASE_PREVIOUS_SCREEN_INSTANCE_ID_KEY = "firebase_previous_id";
|
|
10
|
+
declare const FIREBASE_PREVIOUS_SCREEN_NAME_KEY = "firebase_previous_screen";
|
|
11
|
+
declare const FIREBASE_SCREEN_CLASS_KEY = "firebase_screen_class";
|
|
12
|
+
declare const FIREBASE_SCREEN_INSTANCE_ID_KEY = "firebase_screen_id";
|
|
13
|
+
declare const FIREBASE_SCREEN_NAME_KEY = "firebase_screen";
|
|
14
|
+
declare const OUTLET_KEY = "outlet";
|
|
15
|
+
declare const PAGE_PATH_KEY = "page_path";
|
|
16
|
+
declare const PAGE_TITLE_KEY = "page_title";
|
|
17
|
+
declare const SCREEN_CLASS_KEY = "screen_class";
|
|
18
|
+
declare const SCREEN_NAME_KEY = "screen_name";
|
|
19
|
+
export declare const ɵscreenViewEvent: (router: Router, title: Title | null, componentFactoryResolver: ComponentFactoryResolver) => Observable<{
|
|
20
|
+
[SCREEN_NAME_KEY]: string;
|
|
21
|
+
[PAGE_PATH_KEY]: string;
|
|
22
|
+
[FIREBASE_EVENT_ORIGIN_KEY]: 'auto';
|
|
23
|
+
[FIREBASE_SCREEN_NAME_KEY]: string;
|
|
24
|
+
[OUTLET_KEY]: string;
|
|
25
|
+
[PAGE_TITLE_KEY]?: string;
|
|
26
|
+
[SCREEN_CLASS_KEY]: string;
|
|
27
|
+
[FIREBASE_SCREEN_CLASS_KEY]: string;
|
|
28
|
+
[FIREBASE_SCREEN_INSTANCE_ID_KEY]: number;
|
|
29
|
+
[FIREBASE_PREVIOUS_SCREEN_CLASS_KEY]: string;
|
|
30
|
+
[FIREBASE_PREVIOUS_SCREEN_NAME_KEY]: string;
|
|
31
|
+
[FIREBASE_PREVIOUS_SCREEN_INSTANCE_ID_KEY]: number;
|
|
32
|
+
}>;
|
|
33
|
+
export declare class ScreenTrackingService implements OnDestroy {
|
|
34
|
+
private disposable;
|
|
35
|
+
constructor(router: Router, title: Title, componentFactoryResolver: ComponentFactoryResolver, zone: NgZone, userTrackingService: UserTrackingService, injector: Injector);
|
|
36
|
+
ngOnDestroy(): void;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScreenTrackingService, [{ optional: true; }, { optional: true; }, null, null, { optional: true; }, null]>;
|
|
38
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ScreenTrackingService>;
|
|
39
|
+
}
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Injector, NgZone, OnDestroy } from '@angular/core';
|
|
2
|
+
import { Auth } from '@angular/fire/auth';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class UserTrackingService implements OnDestroy {
|
|
5
|
+
readonly initialized: Promise<void>;
|
|
6
|
+
private disposables;
|
|
7
|
+
constructor(auth: Auth, zone: NgZone, injector: Injector);
|
|
8
|
+
ngOnDestroy(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserTrackingService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UserTrackingService>;
|
|
11
|
+
}
|
package/app/app.module.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { InjectionToken, ModuleWithProviders, NgZone } from '@angular/core';
|
|
1
|
+
import { InjectionToken, Injector, ModuleWithProviders, NgZone } from '@angular/core';
|
|
2
2
|
import { FirebaseApp as IFirebaseApp } from 'firebase/app';
|
|
3
3
|
import { FirebaseApp } from './app';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare function defaultFirebaseAppFactory(provided: FirebaseApp[] | undefined): FirebaseApp;
|
|
6
6
|
export declare const PROVIDED_FIREBASE_APPS: InjectionToken<FirebaseApp[]>;
|
|
7
|
-
export declare function firebaseAppFactory(fn: () => IFirebaseApp): (zone: NgZone) => FirebaseApp;
|
|
7
|
+
export declare function firebaseAppFactory(fn: (injector: Injector) => IFirebaseApp): (zone: NgZone, injector: Injector) => FirebaseApp;
|
|
8
8
|
export declare class FirebaseAppModule {
|
|
9
9
|
constructor(platformId: Object);
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<FirebaseAppModule, never>;
|
|
11
11
|
static ɵmod: i0.ɵɵNgModuleDeclaration<FirebaseAppModule, never, never, never>;
|
|
12
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<FirebaseAppModule>;
|
|
13
13
|
}
|
|
14
|
-
export declare function provideFirebaseApp(fn: () => IFirebaseApp): ModuleWithProviders<FirebaseAppModule>;
|
|
14
|
+
export declare function provideFirebaseApp(fn: () => IFirebaseApp, ...deps: any[]): ModuleWithProviders<FirebaseAppModule>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NgZone, InjectionToken, ModuleWithProviders } from '@angular/core';
|
|
1
|
+
import { NgZone, InjectionToken, ModuleWithProviders, Injector } from '@angular/core';
|
|
2
2
|
import { AppCheck as FirebaseAppCheck } from 'firebase/app-check';
|
|
3
3
|
import { AppCheck } from './app-check';
|
|
4
4
|
import { FirebaseApp } from '@angular/fire/app';
|
|
@@ -6,11 +6,11 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
export declare const PROVIDED_APP_CHECK_INSTANCES: InjectionToken<AppCheck[]>;
|
|
7
7
|
export declare const APP_CHECK_NAMESPACE_SYMBOL: unique symbol;
|
|
8
8
|
export declare function defaultAppCheckInstanceFactory(provided: FirebaseAppCheck[] | undefined, defaultApp: FirebaseApp): AppCheck;
|
|
9
|
-
export declare function appCheckInstanceFactory(fn: () => FirebaseAppCheck): (zone: NgZone) =>
|
|
9
|
+
export declare function appCheckInstanceFactory(fn: (injector: Injector) => FirebaseAppCheck): (zone: NgZone, injector: Injector, platformId: Object) => AppCheck;
|
|
10
10
|
export declare class AppCheckModule {
|
|
11
11
|
constructor();
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppCheckModule, never>;
|
|
13
13
|
static ɵmod: i0.ɵɵNgModuleDeclaration<AppCheckModule, never, never, never>;
|
|
14
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<AppCheckModule>;
|
|
15
15
|
}
|
|
16
|
-
export declare function provideAppCheck(fn: () => FirebaseAppCheck): ModuleWithProviders<AppCheckModule>;
|
|
16
|
+
export declare function provideAppCheck(fn: (injector: Injector) => FirebaseAppCheck, ...deps: any[]): ModuleWithProviders<AppCheckModule>;
|
package/auth/auth.module.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { NgZone, InjectionToken, ModuleWithProviders } from '@angular/core';
|
|
1
|
+
import { NgZone, InjectionToken, ModuleWithProviders, Injector } from '@angular/core';
|
|
2
2
|
import { Auth as FirebaseAuth } from 'firebase/auth';
|
|
3
3
|
import { Auth } from './auth';
|
|
4
4
|
import { FirebaseApp } from '@angular/fire/app';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare const PROVIDED_AUTH_INSTANCES: InjectionToken<Auth[]>;
|
|
7
7
|
export declare function defaultAuthInstanceFactory(provided: FirebaseAuth[] | undefined, defaultApp: FirebaseApp): Auth;
|
|
8
|
-
export declare function authInstanceFactory(fn: () => FirebaseAuth): (zone: NgZone) =>
|
|
8
|
+
export declare function authInstanceFactory(fn: (injector: Injector) => FirebaseAuth): (zone: NgZone, injector: Injector) => Auth;
|
|
9
9
|
export declare class AuthModule {
|
|
10
10
|
constructor();
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<AuthModule, never>;
|
|
12
12
|
static ɵmod: i0.ɵɵNgModuleDeclaration<AuthModule, never, never, never>;
|
|
13
13
|
static ɵinj: i0.ɵɵInjectorDeclaration<AuthModule>;
|
|
14
14
|
}
|
|
15
|
-
export declare function provideAuth(fn: () => FirebaseAuth): ModuleWithProviders<AuthModule>;
|
|
15
|
+
export declare function provideAuth(fn: () => FirebaseAuth, ...deps: any[]): ModuleWithProviders<AuthModule>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot } from '@angular/router';
|
|
2
|
+
import { Observable, UnaryFunction } from 'rxjs';
|
|
3
|
+
import { Auth } from '@angular/fire/auth';
|
|
4
|
+
import { User } from 'firebase/auth';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare type AuthPipeGenerator = (next: ActivatedRouteSnapshot, state: RouterStateSnapshot) => AuthPipe;
|
|
7
|
+
export declare type AuthPipe = UnaryFunction<Observable<User | null>, Observable<boolean | string | any[]>>;
|
|
8
|
+
export declare const loggedIn: AuthPipe;
|
|
9
|
+
export declare class AuthGuard implements CanActivate {
|
|
10
|
+
private router;
|
|
11
|
+
private auth;
|
|
12
|
+
constructor(router: Router, auth: Auth);
|
|
13
|
+
canActivate: (next: ActivatedRouteSnapshot, state: RouterStateSnapshot) => Observable<boolean | import("@angular/router").UrlTree>;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthGuard, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuthGuard>;
|
|
16
|
+
}
|
|
17
|
+
export declare const canActivate: (pipe: AuthPipeGenerator) => {
|
|
18
|
+
canActivate: (typeof AuthGuard)[];
|
|
19
|
+
data: {
|
|
20
|
+
authGuardPipe: AuthPipeGenerator;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export declare const isNotAnonymous: AuthPipe;
|
|
24
|
+
export declare const idTokenResult: import("rxjs").OperatorFunction<User, any>;
|
|
25
|
+
export declare const emailVerified: AuthPipe;
|
|
26
|
+
export declare const customClaims: UnaryFunction<Observable<User>, Observable<any>>;
|
|
27
|
+
export declare const hasCustomClaim: (claim: string) => AuthPipe;
|
|
28
|
+
export declare const redirectUnauthorizedTo: (redirect: string | any[]) => AuthPipe;
|
|
29
|
+
export declare const redirectLoggedInTo: (redirect: string | any[]) => AuthPipe;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class AuthGuardModule {
|
|
3
|
+
constructor();
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthGuardModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AuthGuardModule, never, never, never>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AuthGuardModule>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../../node_modules/ng-packagr/package.schema.json",
|
|
3
|
+
"main": "../bundles/angular-fire-auth-guard.umd.js",
|
|
4
|
+
"module": "../fesm2015/angular-fire-auth-guard.js",
|
|
5
|
+
"es2015": "../fesm2015/angular-fire-auth-guard.js",
|
|
6
|
+
"esm2015": "../esm2015/auth-guard/angular-fire-auth-guard.js",
|
|
7
|
+
"fesm2015": "../fesm2015/angular-fire-auth-guard.js",
|
|
8
|
+
"typings": "angular-fire-auth-guard.d.ts",
|
|
9
|
+
"sideEffects": false,
|
|
10
|
+
"name": "@angular/fire/auth-guard"
|
|
11
|
+
}
|