@dereekb/dbx-firebase 9.19.3 → 9.19.5
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/esm2020/lib/analytics/analytics.user.source.mjs +50 -0
- package/esm2020/lib/analytics/index.mjs +2 -0
- package/esm2020/lib/index.mjs +2 -1
- package/esm2020/lib/model/store/index.mjs +2 -1
- package/esm2020/lib/model/store/model.store.module.mjs +6 -4
- package/esm2020/lib/model/store/store.document.mjs +3 -2
- package/esm2020/lib/model/store/store.document.router.directive.mjs +2 -2
- package/esm2020/lib/model/store/store.document.router.key.directive.mjs +67 -0
- package/esm2020/lib/router/id.param.redirect.mjs +11 -6
- package/fesm2015/dereekb-dbx-firebase.mjs +229 -114
- package/fesm2015/dereekb-dbx-firebase.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-firebase.mjs +222 -110
- package/fesm2020/dereekb-dbx-firebase.mjs.map +1 -1
- package/lib/analytics/analytics.user.source.d.ts +22 -0
- package/lib/analytics/index.d.ts +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/model/store/index.d.ts +1 -0
- package/lib/model/store/model.store.module.d.ts +7 -6
- package/lib/model/store/store.document.d.ts +6 -1
- package/lib/model/store/store.document.router.key.directive.d.ts +31 -0
- package/lib/router/id.param.redirect.d.ts +11 -2
- package/package.json +5 -7
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
import { urlWithoutParameters, AUTH_ADMIN_ROLE, cachedGetter, addToSet, removeFromSet, filterMaybeValues, mapIterable, asArray, excludeValuesFromArray, containsStringAnyCase, addToSetCopy, iterableToArray, PromiseUtility, forEachKeyValue, readableError, isMaybeSo, firstValue } from '@dereekb/util';
|
|
2
1
|
import * as i0 from '@angular/core';
|
|
3
|
-
import {
|
|
2
|
+
import { Injectable, Optional, InjectionToken, Inject, Component, Input, Directive, EventEmitter, Output, NgModule, Injector, ViewChild, HostListener, forwardRef, Host } from '@angular/core';
|
|
3
|
+
import { switchMap, of, shareReplay, map, distinctUntilChanged, catchError, firstValueFrom, BehaviorSubject, combineLatest, from, first, tap, interval, exhaustMap, filter, take, startWith, EMPTY, Subject, throttleTime, NEVER } from 'rxjs';
|
|
4
|
+
import { __awaiter } from 'tslib';
|
|
5
|
+
import { asObservable, timeoutStartWith, filterMaybe, isNot, SubscriptionObject, lazyFrom, switchMapWhileTrue, loadingStateFromObs, tapLog, cleanupDestroyable, accumulatorFlattenPageListLoadingState, useFirst, pageLoadingStateFromObs, useAsObservable, successResult, beginLoading, errorResult, cleanup, mapLoadingState } from '@dereekb/rxjs';
|
|
6
|
+
import * as i2$2 from '@dereekb/dbx-core';
|
|
7
|
+
import { loggedInObsFromIsLoggedIn, loggedOutObsFromIsLoggedIn, authUserIdentifier, DbxInjectionContext, AbstractForwardDbxInjectionContextDirective, DBX_INJECTION_COMPONENT_DATA, DbxInjectionComponentModule, DbxAuthService, AbstractIfDirective, AbstractSubscriptionDirective, DbxRouteParamReaderInstance, DbxRouteParamDefaultRedirectInstance, LockSetComponentStore } from '@dereekb/dbx-core';
|
|
8
|
+
import * as i1 from '@angular/fire/auth';
|
|
9
|
+
import { authState, idToken, GoogleAuthProvider, FacebookAuthProvider, TwitterAuthProvider, GithubAuthProvider, signInWithPopup, createUserWithEmailAndPassword, signInWithEmailAndPassword, signInAnonymously, provideAuth, getAuth, connectAuthEmulator } from '@angular/fire/auth';
|
|
10
|
+
import { AUTH_ADMIN_ROLE, cachedGetter, urlWithoutParameters, addToSet, removeFromSet, filterMaybeValues, mapIterable, asArray, excludeValuesFromArray, containsStringAnyCase, addToSetCopy, iterableToArray, PromiseUtility, forEachKeyValue, readableError, isMaybeSo, firstValue } from '@dereekb/util';
|
|
11
|
+
import { sendPasswordResetEmail } from 'firebase/auth';
|
|
4
12
|
import { getToken, initializeAppCheck, ReCaptchaV3Provider } from 'firebase/app-check';
|
|
5
|
-
import
|
|
6
|
-
import * as i1 from '@angular/fire/app-check';
|
|
13
|
+
import * as i1$1 from '@angular/fire/app-check';
|
|
7
14
|
import { provideAppCheck } from '@angular/fire/app-check';
|
|
8
15
|
import * as i3 from '@angular/material/button';
|
|
9
16
|
import { MatButtonModule } from '@angular/material/button';
|
|
@@ -11,17 +18,10 @@ import * as i2$1 from '@angular/material/icon';
|
|
|
11
18
|
import { MatIconModule } from '@angular/material/icon';
|
|
12
19
|
import * as i2 from '@angular/common';
|
|
13
20
|
import { CommonModule } from '@angular/common';
|
|
14
|
-
import * as i2$2 from '@dereekb/dbx-core';
|
|
15
|
-
import { loggedInObsFromIsLoggedIn, loggedOutObsFromIsLoggedIn, authUserIdentifier, DbxInjectionContext, AbstractForwardDbxInjectionContextDirective, DBX_INJECTION_COMPONENT_DATA, DbxInjectionComponentModule, DbxAuthService, AbstractIfDirective, AbstractSubscriptionDirective, DbxRouteParamReaderInstance, DbxRouteParamDefaultRedirectInstance, LockSetComponentStore } from '@dereekb/dbx-core';
|
|
16
21
|
import * as i1$2 from '@dereekb/dbx-web';
|
|
17
22
|
import { DbxRouterAnchorModule, DbxReadableErrorModule, DbxActionModule, DbxButtonModule, AbstractDbxSelectionListWrapperDirective, provideDbxListViewWrapper, DEFAULT_LIST_WRAPPER_DIRECTIVE_TEMPLATE, AbstractDbxSelectionListViewDirective, provideDbxListView, DEFAULT_DBX_SELECTION_VALUE_LIST_DIRECTIVE_TEMPLATE, AbstractDbxValueListViewItemComponent, DBX_VALUE_LIST_VIEW_ITEM, TwoColumnsContextStore, AbstractPopupDirective, DbxWidgetModule, DbxTextModule, DbxBlockLayoutModule, DbxTwoColumnLayoutModule, DbxPopupInteractionModule, DbxListLayoutModule } from '@dereekb/dbx-web';
|
|
18
|
-
import { __awaiter } from 'tslib';
|
|
19
|
-
import { asObservable, timeoutStartWith, filterMaybe, isNot, SubscriptionObject, lazyFrom, switchMapWhileTrue, loadingStateFromObs, tapLog, cleanupDestroyable, accumulatorFlattenPageListLoadingState, useFirst, pageLoadingStateFromObs, useAsObservable, successResult, beginLoading, errorResult, cleanup, mapLoadingState } from '@dereekb/rxjs';
|
|
20
|
-
import * as i1$1 from '@angular/fire/auth';
|
|
21
|
-
import { authState, idToken, GoogleAuthProvider, FacebookAuthProvider, TwitterAuthProvider, GithubAuthProvider, signInWithPopup, createUserWithEmailAndPassword, signInWithEmailAndPassword, signInAnonymously, provideAuth, getAuth, connectAuthEmulator } from '@angular/fire/auth';
|
|
22
|
-
import { sendPasswordResetEmail } from 'firebase/auth';
|
|
23
23
|
import * as i1$4 from '@dereekb/firebase';
|
|
24
|
-
import { firebaseAuthErrorToReadableError, ScheduledFunctionDevelopmentFunctionTypeEnum, clientFirebaseFirestoreContextFactory, SystemStateFirestoreCollections, FIREBASE_DEVELOPMENT_FUNCTIONS_MAP_KEY, FirebaseDevelopmentFunctions, iterationQueryDocChangeWatcher, firebaseQuerySnapshotAccumulator, firebaseQueryItemAccumulator, firestoreModelKeysFromDocuments, firestoreModelIdsFromDocuments, documentReferencesFromDocuments, getDocumentSnapshots, getDataFromDocumentSnapshots, latestSnapshotsFromDocuments, dataFromDocumentSnapshots, loadDocumentsForKeys, loadDocumentsForDocumentReferences, loadDocumentsForIds, FirestoreAccessorStreamMode, firestoreModelIdsFromKey, firestoreModelKeyPartPairs, firestoreModelKeyPairObject, documentDataWithIdAndKey, clientFirebaseStorageContextFactory } from '@dereekb/firebase';
|
|
24
|
+
import { firebaseAuthErrorToReadableError, ScheduledFunctionDevelopmentFunctionTypeEnum, clientFirebaseFirestoreContextFactory, SystemStateFirestoreCollections, FIREBASE_DEVELOPMENT_FUNCTIONS_MAP_KEY, FirebaseDevelopmentFunctions, iterationQueryDocChangeWatcher, firebaseQuerySnapshotAccumulator, firebaseQueryItemAccumulator, firestoreModelKeysFromDocuments, firestoreModelIdsFromDocuments, documentReferencesFromDocuments, getDocumentSnapshots, getDataFromDocumentSnapshots, latestSnapshotsFromDocuments, dataFromDocumentSnapshots, loadDocumentsForKeys, loadDocumentsForDocumentReferences, loadDocumentsForIds, FirestoreAccessorStreamMode, firestoreModelIdsFromKey, firestoreModelKeyPartPairs, firestoreModelKeyPairObject, documentDataWithIdAndKey, inferKeyFromTwoWayFlatFirestoreModelKey, clientFirebaseStorageContextFactory } from '@dereekb/firebase';
|
|
25
25
|
import * as i1$3 from '@dereekb/dbx-form';
|
|
26
26
|
import { AbstractAsyncFormlyFormDirective, usernamePasswordLoginFields, provideFormlyContext, AbstractSyncFormlyFormDirective, emailField, DbxFormIoModule, DbxFormModule, DbxFormlyModule, DbxFormActionModule, DbxFormFormlyTextFieldModule, AbstractConfigAsyncFormlyFormDirective, pickableItemChipField, filterPickableItemFieldValuesByLabel } from '@dereekb/dbx-form';
|
|
27
27
|
import { msToSeconds } from '@dereekb/date';
|
|
@@ -37,94 +37,6 @@ import { provideFirestore, getFirestore, connectFirestoreEmulator, enableIndexed
|
|
|
37
37
|
import { HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
38
38
|
import * as i2$3 from '@angular/material/snack-bar';
|
|
39
39
|
|
|
40
|
-
/**
|
|
41
|
-
* Enables debug token generation for AppCheck by setting FIREBASE_APPCHECK_DEBUG_TOKEN in the browser's self/window.
|
|
42
|
-
*
|
|
43
|
-
* https://firebase.google.com/docs/app-check/web/debug-provider
|
|
44
|
-
*
|
|
45
|
-
* @param enable
|
|
46
|
-
*/
|
|
47
|
-
function enableAppCheckDebugTokenGeneration(enable = true) {
|
|
48
|
-
self.FIREBASE_APPCHECK_DEBUG_TOKEN = enable;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
const DBX_FIREBASE_OPTIONS_TOKEN = new InjectionToken('DbxFirebaseOptions');
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* HTTP Interceptor that sets the X-Firebase-AppCheck for any requests to the routes configured in DbxFirebaseOptions.
|
|
55
|
-
*/
|
|
56
|
-
class DbxFirebaseAppCheckHttpInterceptor {
|
|
57
|
-
constructor(dbxFirebaseOptions, appCheck) {
|
|
58
|
-
var _a, _b;
|
|
59
|
-
this.dbxFirebaseOptions = dbxFirebaseOptions;
|
|
60
|
-
this.appCheck = appCheck;
|
|
61
|
-
let routes = [];
|
|
62
|
-
if (appCheck != null) {
|
|
63
|
-
routes = ((_b = (_a = this.dbxFirebaseOptions.appCheck) === null || _a === void 0 ? void 0 : _a.appCheckRoutes) !== null && _b !== void 0 ? _b : ['/api/*']).map((route) => {
|
|
64
|
-
const wildcardIndex = route.indexOf('*');
|
|
65
|
-
const isWildcard = wildcardIndex === route.length - 1;
|
|
66
|
-
const match = isWildcard ? route.substring(0, wildcardIndex) : route;
|
|
67
|
-
return {
|
|
68
|
-
isWildcard,
|
|
69
|
-
match
|
|
70
|
-
};
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
this._appCheckRoutes = routes;
|
|
74
|
-
this._isEnabled = routes.length > 0;
|
|
75
|
-
}
|
|
76
|
-
intercept(req, next) {
|
|
77
|
-
let obs;
|
|
78
|
-
if (this._isEnabled) {
|
|
79
|
-
obs = this.matchesAnyRoute(req.url).pipe(switchMap((isMatch) => {
|
|
80
|
-
let nextEvent;
|
|
81
|
-
if (isMatch) {
|
|
82
|
-
nextEvent = from(getToken(this.appCheck).then((appCheckTokenResponse) => {
|
|
83
|
-
const token = appCheckTokenResponse.token;
|
|
84
|
-
let nextRequest = req;
|
|
85
|
-
if (token) {
|
|
86
|
-
nextRequest = req.clone({
|
|
87
|
-
headers: req.headers.set('X-Firebase-AppCheck', token)
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
return nextRequest;
|
|
91
|
-
})).pipe(switchMap((nextRequest) => next.handle(nextRequest)));
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
nextEvent = next.handle(req);
|
|
95
|
-
}
|
|
96
|
-
return nextEvent;
|
|
97
|
-
}));
|
|
98
|
-
}
|
|
99
|
-
else {
|
|
100
|
-
obs = next.handle(req);
|
|
101
|
-
}
|
|
102
|
-
return obs;
|
|
103
|
-
}
|
|
104
|
-
matchesAnyRoute(inputUrl) {
|
|
105
|
-
const url = urlWithoutParameters(inputUrl);
|
|
106
|
-
function isEnabledRouteMatch(enabledRoute) {
|
|
107
|
-
if (enabledRoute.isWildcard) {
|
|
108
|
-
return url.startsWith(enabledRoute.match);
|
|
109
|
-
}
|
|
110
|
-
else {
|
|
111
|
-
return url === enabledRoute.match;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
return from(this._appCheckRoutes).pipe(first((route) => isEnabledRouteMatch(route), false), map((x) => Boolean(x)));
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
DbxFirebaseAppCheckHttpInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxFirebaseAppCheckHttpInterceptor, deps: [{ token: DBX_FIREBASE_OPTIONS_TOKEN }, { token: i1.AppCheck }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
118
|
-
DbxFirebaseAppCheckHttpInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxFirebaseAppCheckHttpInterceptor });
|
|
119
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxFirebaseAppCheckHttpInterceptor, decorators: [{
|
|
120
|
-
type: Injectable
|
|
121
|
-
}], ctorParameters: function () {
|
|
122
|
-
return [{ type: undefined, decorators: [{
|
|
123
|
-
type: Inject,
|
|
124
|
-
args: [DBX_FIREBASE_OPTIONS_TOKEN]
|
|
125
|
-
}] }, { type: i1.AppCheck }];
|
|
126
|
-
} });
|
|
127
|
-
|
|
128
40
|
function authUserInfoFromAuthUser(user) {
|
|
129
41
|
return {
|
|
130
42
|
displayName: user === null || user === void 0 ? void 0 : user.displayName,
|
|
@@ -323,12 +235,12 @@ class DbxFirebaseAuthService {
|
|
|
323
235
|
return this.firebaseAuth.signOut();
|
|
324
236
|
}
|
|
325
237
|
}
|
|
326
|
-
DbxFirebaseAuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxFirebaseAuthService, deps: [{ token: i1
|
|
238
|
+
DbxFirebaseAuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxFirebaseAuthService, deps: [{ token: i1.Auth }, { token: DbxFirebaseAuthServiceDelegate, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
327
239
|
DbxFirebaseAuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxFirebaseAuthService });
|
|
328
240
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxFirebaseAuthService, decorators: [{
|
|
329
241
|
type: Injectable
|
|
330
242
|
}], ctorParameters: function () {
|
|
331
|
-
return [{ type: i1
|
|
243
|
+
return [{ type: i1.Auth }, { type: DbxFirebaseAuthServiceDelegate, decorators: [{
|
|
332
244
|
type: Optional
|
|
333
245
|
}] }];
|
|
334
246
|
} });
|
|
@@ -361,6 +273,140 @@ class DbxFirebaseAuthContextInfo {
|
|
|
361
273
|
}
|
|
362
274
|
}
|
|
363
275
|
|
|
276
|
+
function readDbxAnalyticsUserPropertiesFromAuthUserInfo(user) {
|
|
277
|
+
var _a, _b;
|
|
278
|
+
const properties = {
|
|
279
|
+
name: (_a = user.displayName) !== null && _a !== void 0 ? _a : '',
|
|
280
|
+
email: (_b = user.email) !== null && _b !== void 0 ? _b : ''
|
|
281
|
+
};
|
|
282
|
+
return properties;
|
|
283
|
+
}
|
|
284
|
+
const DEFAULT_DBX_FIREBASE_ANALYTICS_USER_PROPERTIES_FACTORY = (authUserInfo) => of(readDbxAnalyticsUserPropertiesFromAuthUserInfo(authUserInfo));
|
|
285
|
+
/**
|
|
286
|
+
* DbxAnalyticsUserSource implementation that uses the DbxFirebaseAuthService.
|
|
287
|
+
*/
|
|
288
|
+
class DbxFirebaseAnalyticsUserSource {
|
|
289
|
+
constructor(dbxFirebaseAuthService) {
|
|
290
|
+
this.dbxFirebaseAuthService = dbxFirebaseAuthService;
|
|
291
|
+
this._userPropertiesFactory = new BehaviorSubject(DEFAULT_DBX_FIREBASE_ANALYTICS_USER_PROPERTIES_FACTORY);
|
|
292
|
+
this.analyticsUser$ = combineLatest([this._userPropertiesFactory, this.dbxFirebaseAuthService.currentAuthUserInfo$]).pipe(switchMap(([userPropertiesFactory, x]) => {
|
|
293
|
+
let analyticsUser;
|
|
294
|
+
if (x != null) {
|
|
295
|
+
analyticsUser = userPropertiesFactory(x).pipe(map((properties) => ({
|
|
296
|
+
user: x.uid,
|
|
297
|
+
properties
|
|
298
|
+
})));
|
|
299
|
+
}
|
|
300
|
+
else {
|
|
301
|
+
analyticsUser = of(null);
|
|
302
|
+
}
|
|
303
|
+
return analyticsUser;
|
|
304
|
+
}), shareReplay(1));
|
|
305
|
+
}
|
|
306
|
+
get userPropertiesFactory() {
|
|
307
|
+
return this._userPropertiesFactory.value;
|
|
308
|
+
}
|
|
309
|
+
set userPropertiesFactory(userPropertiesFactory) {
|
|
310
|
+
this._userPropertiesFactory.next(userPropertiesFactory);
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
DbxFirebaseAnalyticsUserSource.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxFirebaseAnalyticsUserSource, deps: [{ token: DbxFirebaseAuthService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
314
|
+
DbxFirebaseAnalyticsUserSource.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxFirebaseAnalyticsUserSource, providedIn: 'root' });
|
|
315
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxFirebaseAnalyticsUserSource, decorators: [{
|
|
316
|
+
type: Injectable,
|
|
317
|
+
args: [{
|
|
318
|
+
providedIn: 'root'
|
|
319
|
+
}]
|
|
320
|
+
}], ctorParameters: function () { return [{ type: DbxFirebaseAuthService }]; } });
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* Enables debug token generation for AppCheck by setting FIREBASE_APPCHECK_DEBUG_TOKEN in the browser's self/window.
|
|
324
|
+
*
|
|
325
|
+
* https://firebase.google.com/docs/app-check/web/debug-provider
|
|
326
|
+
*
|
|
327
|
+
* @param enable
|
|
328
|
+
*/
|
|
329
|
+
function enableAppCheckDebugTokenGeneration(enable = true) {
|
|
330
|
+
self.FIREBASE_APPCHECK_DEBUG_TOKEN = enable;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
const DBX_FIREBASE_OPTIONS_TOKEN = new InjectionToken('DbxFirebaseOptions');
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* HTTP Interceptor that sets the X-Firebase-AppCheck for any requests to the routes configured in DbxFirebaseOptions.
|
|
337
|
+
*/
|
|
338
|
+
class DbxFirebaseAppCheckHttpInterceptor {
|
|
339
|
+
constructor(dbxFirebaseOptions, appCheck) {
|
|
340
|
+
var _a, _b;
|
|
341
|
+
this.dbxFirebaseOptions = dbxFirebaseOptions;
|
|
342
|
+
this.appCheck = appCheck;
|
|
343
|
+
let routes = [];
|
|
344
|
+
if (appCheck != null) {
|
|
345
|
+
routes = ((_b = (_a = this.dbxFirebaseOptions.appCheck) === null || _a === void 0 ? void 0 : _a.appCheckRoutes) !== null && _b !== void 0 ? _b : ['/api/*']).map((route) => {
|
|
346
|
+
const wildcardIndex = route.indexOf('*');
|
|
347
|
+
const isWildcard = wildcardIndex === route.length - 1;
|
|
348
|
+
const match = isWildcard ? route.substring(0, wildcardIndex) : route;
|
|
349
|
+
return {
|
|
350
|
+
isWildcard,
|
|
351
|
+
match
|
|
352
|
+
};
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
this._appCheckRoutes = routes;
|
|
356
|
+
this._isEnabled = routes.length > 0;
|
|
357
|
+
}
|
|
358
|
+
intercept(req, next) {
|
|
359
|
+
let obs;
|
|
360
|
+
if (this._isEnabled) {
|
|
361
|
+
obs = this.matchesAnyRoute(req.url).pipe(switchMap((isMatch) => {
|
|
362
|
+
let nextEvent;
|
|
363
|
+
if (isMatch) {
|
|
364
|
+
nextEvent = from(getToken(this.appCheck).then((appCheckTokenResponse) => {
|
|
365
|
+
const token = appCheckTokenResponse.token;
|
|
366
|
+
let nextRequest = req;
|
|
367
|
+
if (token) {
|
|
368
|
+
nextRequest = req.clone({
|
|
369
|
+
headers: req.headers.set('X-Firebase-AppCheck', token)
|
|
370
|
+
});
|
|
371
|
+
}
|
|
372
|
+
return nextRequest;
|
|
373
|
+
})).pipe(switchMap((nextRequest) => next.handle(nextRequest)));
|
|
374
|
+
}
|
|
375
|
+
else {
|
|
376
|
+
nextEvent = next.handle(req);
|
|
377
|
+
}
|
|
378
|
+
return nextEvent;
|
|
379
|
+
}));
|
|
380
|
+
}
|
|
381
|
+
else {
|
|
382
|
+
obs = next.handle(req);
|
|
383
|
+
}
|
|
384
|
+
return obs;
|
|
385
|
+
}
|
|
386
|
+
matchesAnyRoute(inputUrl) {
|
|
387
|
+
const url = urlWithoutParameters(inputUrl);
|
|
388
|
+
function isEnabledRouteMatch(enabledRoute) {
|
|
389
|
+
if (enabledRoute.isWildcard) {
|
|
390
|
+
return url.startsWith(enabledRoute.match);
|
|
391
|
+
}
|
|
392
|
+
else {
|
|
393
|
+
return url === enabledRoute.match;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
return from(this._appCheckRoutes).pipe(first((route) => isEnabledRouteMatch(route), false), map((x) => Boolean(x)));
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
DbxFirebaseAppCheckHttpInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxFirebaseAppCheckHttpInterceptor, deps: [{ token: DBX_FIREBASE_OPTIONS_TOKEN }, { token: i1$1.AppCheck }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
400
|
+
DbxFirebaseAppCheckHttpInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxFirebaseAppCheckHttpInterceptor });
|
|
401
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxFirebaseAppCheckHttpInterceptor, decorators: [{
|
|
402
|
+
type: Injectable
|
|
403
|
+
}], ctorParameters: function () {
|
|
404
|
+
return [{ type: undefined, decorators: [{
|
|
405
|
+
type: Inject,
|
|
406
|
+
args: [DBX_FIREBASE_OPTIONS_TOKEN]
|
|
407
|
+
}] }, { type: i1$1.AppCheck }];
|
|
408
|
+
} });
|
|
409
|
+
|
|
364
410
|
class DbxFirebaseLoginTermsConfig {
|
|
365
411
|
}
|
|
366
412
|
|
|
@@ -1774,7 +1820,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
1774
1820
|
class DbxFirebaseDefaultAppCheckProviderModule {
|
|
1775
1821
|
}
|
|
1776
1822
|
DbxFirebaseDefaultAppCheckProviderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxFirebaseDefaultAppCheckProviderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1777
|
-
DbxFirebaseDefaultAppCheckProviderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: DbxFirebaseDefaultAppCheckProviderModule, imports: [i1.AppCheckModule] });
|
|
1823
|
+
DbxFirebaseDefaultAppCheckProviderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: DbxFirebaseDefaultAppCheckProviderModule, imports: [i1$1.AppCheckModule] });
|
|
1778
1824
|
DbxFirebaseDefaultAppCheckProviderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxFirebaseDefaultAppCheckProviderModule, providers: [
|
|
1779
1825
|
{
|
|
1780
1826
|
provide: HTTP_INTERCEPTORS,
|
|
@@ -1855,7 +1901,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
1855
1901
|
class DbxFirebaseDefaultAuthProviderModule {
|
|
1856
1902
|
}
|
|
1857
1903
|
DbxFirebaseDefaultAuthProviderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxFirebaseDefaultAuthProviderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1858
|
-
DbxFirebaseDefaultAuthProviderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: DbxFirebaseDefaultAuthProviderModule, imports: [i1
|
|
1904
|
+
DbxFirebaseDefaultAuthProviderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: DbxFirebaseDefaultAuthProviderModule, imports: [i1.AuthModule] });
|
|
1859
1905
|
DbxFirebaseDefaultAuthProviderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxFirebaseDefaultAuthProviderModule, imports: [provideAuth((injector) => {
|
|
1860
1906
|
const firebaseApp = injector.get(FirebaseApp);
|
|
1861
1907
|
const auth = getAuth(firebaseApp);
|
|
@@ -3082,14 +3128,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
3082
3128
|
} });
|
|
3083
3129
|
|
|
3084
3130
|
const DBX_FIREBASE_ID_ROUTER_PARAM_DEFAULT_ID_PARAM_KEY = 'id';
|
|
3131
|
+
const DBX_FIREBASE_ID_ROUTER_PARAM_DEFAULT_KEY_PARAM_KEY = 'key';
|
|
3085
3132
|
const DBX_FIREBASE_ID_ROUTER_PARAM_DEFAULT_USE_PARAM_VALUE = '0';
|
|
3086
3133
|
/**
|
|
3087
3134
|
* DbxFirebaseIdRouteParamRedirect instance
|
|
3088
3135
|
*/
|
|
3089
3136
|
class DbxFirebaseIdRouteParamRedirectInstance {
|
|
3090
|
-
constructor(dbxRouterService) {
|
|
3137
|
+
constructor(dbxRouterService, defaultParamKey = DBX_FIREBASE_ID_ROUTER_PARAM_DEFAULT_ID_PARAM_KEY) {
|
|
3091
3138
|
this.dbxRouterService = dbxRouterService;
|
|
3092
|
-
this.
|
|
3139
|
+
this.defaultParamKey = defaultParamKey;
|
|
3140
|
+
this._paramReader = new DbxRouteParamReaderInstance(this.dbxRouterService, this.defaultParamKey);
|
|
3093
3141
|
this._paramRedirect = new DbxRouteParamDefaultRedirectInstance(this._paramReader);
|
|
3094
3142
|
this._useDefaultParamDecider = new BehaviorSubject(DBX_FIREBASE_ID_ROUTER_PARAM_DEFAULT_USE_PARAM_VALUE);
|
|
3095
3143
|
this._useDefaultParam$ = this._useDefaultParamDecider.pipe(map((x) => {
|
|
@@ -3123,7 +3171,7 @@ class DbxFirebaseIdRouteParamRedirectInstance {
|
|
|
3123
3171
|
return this._paramReader.paramKey;
|
|
3124
3172
|
}
|
|
3125
3173
|
set paramKey(paramKey) {
|
|
3126
|
-
this._paramReader.paramKey = paramKey;
|
|
3174
|
+
this._paramReader.paramKey = paramKey || this.defaultParamKey;
|
|
3127
3175
|
}
|
|
3128
3176
|
setDefaultValue(defaultValue) {
|
|
3129
3177
|
this._paramReader.setDefaultValue(defaultValue);
|
|
@@ -3138,8 +3186,11 @@ class DbxFirebaseIdRouteParamRedirectInstance {
|
|
|
3138
3186
|
this._paramReader.setParamValue(value);
|
|
3139
3187
|
}
|
|
3140
3188
|
}
|
|
3141
|
-
function dbxFirebaseIdRouteParamRedirect(dbxRouterService) {
|
|
3142
|
-
return new DbxFirebaseIdRouteParamRedirectInstance(dbxRouterService);
|
|
3189
|
+
function dbxFirebaseIdRouteParamRedirect(dbxRouterService, defaultParamKey) {
|
|
3190
|
+
return new DbxFirebaseIdRouteParamRedirectInstance(dbxRouterService, defaultParamKey);
|
|
3191
|
+
}
|
|
3192
|
+
function dbxFirebaseKeyRouteParamRedirect(dbxRouterService, defaultParamKey = DBX_FIREBASE_ID_ROUTER_PARAM_DEFAULT_KEY_PARAM_KEY) {
|
|
3193
|
+
return new DbxFirebaseIdRouteParamRedirectInstance(dbxRouterService, defaultParamKey);
|
|
3143
3194
|
}
|
|
3144
3195
|
|
|
3145
3196
|
/**
|
|
@@ -3155,7 +3206,7 @@ class DbxFirebaseDocumentStoreRouteIdDirective extends AbstractSubscriptionDirec
|
|
|
3155
3206
|
this.id$ = this._redirectInstance.value$;
|
|
3156
3207
|
}
|
|
3157
3208
|
ngOnInit() {
|
|
3158
|
-
this.sub = this.dbxFirebaseDocumentStoreDirective.store.setId(this.idFromParams$);
|
|
3209
|
+
this.sub = this.dbxFirebaseDocumentStoreDirective.store.setId(this.idFromParams$); // use from the params, as the params should get updated eventually to the id$ value
|
|
3159
3210
|
this._redirectInstance.init();
|
|
3160
3211
|
}
|
|
3161
3212
|
ngOnDestroy() {
|
|
@@ -3204,17 +3255,80 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
3204
3255
|
type: Input
|
|
3205
3256
|
}] } });
|
|
3206
3257
|
|
|
3258
|
+
/**
|
|
3259
|
+
* Used for synchronizing the document store key to the param of the route. The param is interpreted as a TwoWayFlatFirestoreModelKey.
|
|
3260
|
+
*/
|
|
3261
|
+
class DbxFirebaseDocumentStoreRouteKeyDirective extends AbstractSubscriptionDirective {
|
|
3262
|
+
constructor(dbxFirebaseDocumentStoreDirective, dbxRouterService) {
|
|
3263
|
+
super();
|
|
3264
|
+
this.dbxFirebaseDocumentStoreDirective = dbxFirebaseDocumentStoreDirective;
|
|
3265
|
+
this.dbxRouterService = dbxRouterService;
|
|
3266
|
+
this._redirectInstance = dbxFirebaseKeyRouteParamRedirect(this.dbxRouterService);
|
|
3267
|
+
this.keyFromParams$ = this._redirectInstance.paramValue$;
|
|
3268
|
+
this.key$ = this._redirectInstance.value$;
|
|
3269
|
+
}
|
|
3270
|
+
ngOnInit() {
|
|
3271
|
+
this.sub = this.dbxFirebaseDocumentStoreDirective.store.setFlatKey(this.keyFromParams$); // use from the params, as the params should get updated eventually to the key$ value
|
|
3272
|
+
this._redirectInstance.init();
|
|
3273
|
+
}
|
|
3274
|
+
ngOnDestroy() {
|
|
3275
|
+
super.ngOnDestroy();
|
|
3276
|
+
this._redirectInstance.destroy();
|
|
3277
|
+
}
|
|
3278
|
+
// MARK: Input
|
|
3279
|
+
get keyParam() {
|
|
3280
|
+
return this._redirectInstance.paramKey;
|
|
3281
|
+
}
|
|
3282
|
+
set keyParam(keyParam) {
|
|
3283
|
+
this._redirectInstance.paramKey = keyParam;
|
|
3284
|
+
}
|
|
3285
|
+
set dbxFirebaseDocumentStoreRouteKeyDefault(defaultValue) {
|
|
3286
|
+
this._redirectInstance.setDefaultValue(defaultValue);
|
|
3287
|
+
}
|
|
3288
|
+
/**
|
|
3289
|
+
* Whether or not to enable the redirection. Is enabled by default.
|
|
3290
|
+
*/
|
|
3291
|
+
set dbxFirebaseDocumentStoreRouteKeyDefaultRedirect(redirect) {
|
|
3292
|
+
this._redirectInstance.setRedirectEnabled(redirect !== false); // true by default
|
|
3293
|
+
}
|
|
3294
|
+
set dbxFirebaseDocumentStoreRouteKeyDefaultDecision(decider) {
|
|
3295
|
+
this._redirectInstance.setDecider(decider);
|
|
3296
|
+
}
|
|
3297
|
+
}
|
|
3298
|
+
DbxFirebaseDocumentStoreRouteKeyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxFirebaseDocumentStoreRouteKeyDirective, deps: [{ token: DbxFirebaseDocumentStoreDirective, host: true }, { token: i2$2.DbxRouterService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3299
|
+
DbxFirebaseDocumentStoreRouteKeyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: DbxFirebaseDocumentStoreRouteKeyDirective, selector: "[dbxFirebaseDocumentStoreRouteKey]", inputs: { keyParam: ["dbxFirebaseDocumentStoreRouteKey", "keyParam"], dbxFirebaseDocumentStoreRouteKeyDefault: "dbxFirebaseDocumentStoreRouteKeyDefault", dbxFirebaseDocumentStoreRouteKeyDefaultRedirect: "dbxFirebaseDocumentStoreRouteKeyDefaultRedirect", dbxFirebaseDocumentStoreRouteKeyDefaultDecision: "dbxFirebaseDocumentStoreRouteKeyDefaultDecision" }, usesInheritance: true, ngImport: i0 });
|
|
3300
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxFirebaseDocumentStoreRouteKeyDirective, decorators: [{
|
|
3301
|
+
type: Directive,
|
|
3302
|
+
args: [{
|
|
3303
|
+
selector: '[dbxFirebaseDocumentStoreRouteKey]'
|
|
3304
|
+
}]
|
|
3305
|
+
}], ctorParameters: function () {
|
|
3306
|
+
return [{ type: DbxFirebaseDocumentStoreDirective, decorators: [{
|
|
3307
|
+
type: Host
|
|
3308
|
+
}] }, { type: i2$2.DbxRouterService }];
|
|
3309
|
+
}, propDecorators: { keyParam: [{
|
|
3310
|
+
type: Input,
|
|
3311
|
+
args: ['dbxFirebaseDocumentStoreRouteKey']
|
|
3312
|
+
}], dbxFirebaseDocumentStoreRouteKeyDefault: [{
|
|
3313
|
+
type: Input
|
|
3314
|
+
}], dbxFirebaseDocumentStoreRouteKeyDefaultRedirect: [{
|
|
3315
|
+
type: Input
|
|
3316
|
+
}], dbxFirebaseDocumentStoreRouteKeyDefaultDecision: [{
|
|
3317
|
+
type: Input
|
|
3318
|
+
}] } });
|
|
3319
|
+
|
|
3320
|
+
const declarations = [DbxFirebaseDocumentStoreRouteKeyDirective, DbxFirebaseCollectionListDirective, DbxFirebaseCollectionChangeDirective, DbxFirebaseCollectionHasChangeDirective, DbxFirebaseDocumentStoreRouteIdDirective, DbxFirebaseDocumentAuthIdDirective];
|
|
3207
3321
|
class DbxFirebaseModelStoreModule {
|
|
3208
3322
|
}
|
|
3209
3323
|
DbxFirebaseModelStoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxFirebaseModelStoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3210
|
-
DbxFirebaseModelStoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: DbxFirebaseModelStoreModule, declarations: [DbxFirebaseCollectionListDirective, DbxFirebaseCollectionChangeDirective, DbxFirebaseCollectionHasChangeDirective, DbxFirebaseDocumentStoreRouteIdDirective, DbxFirebaseDocumentAuthIdDirective], exports: [DbxFirebaseCollectionListDirective, DbxFirebaseCollectionChangeDirective, DbxFirebaseCollectionHasChangeDirective, DbxFirebaseDocumentStoreRouteIdDirective, DbxFirebaseDocumentAuthIdDirective] });
|
|
3324
|
+
DbxFirebaseModelStoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: DbxFirebaseModelStoreModule, declarations: [DbxFirebaseDocumentStoreRouteKeyDirective, DbxFirebaseCollectionListDirective, DbxFirebaseCollectionChangeDirective, DbxFirebaseCollectionHasChangeDirective, DbxFirebaseDocumentStoreRouteIdDirective, DbxFirebaseDocumentAuthIdDirective], exports: [DbxFirebaseDocumentStoreRouteKeyDirective, DbxFirebaseCollectionListDirective, DbxFirebaseCollectionChangeDirective, DbxFirebaseCollectionHasChangeDirective, DbxFirebaseDocumentStoreRouteIdDirective, DbxFirebaseDocumentAuthIdDirective] });
|
|
3211
3325
|
DbxFirebaseModelStoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxFirebaseModelStoreModule });
|
|
3212
3326
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxFirebaseModelStoreModule, decorators: [{
|
|
3213
3327
|
type: NgModule,
|
|
3214
3328
|
args: [{
|
|
3215
3329
|
imports: [],
|
|
3216
|
-
declarations
|
|
3217
|
-
exports:
|
|
3330
|
+
declarations,
|
|
3331
|
+
exports: declarations
|
|
3218
3332
|
}]
|
|
3219
3333
|
}] });
|
|
3220
3334
|
|
|
@@ -3356,6 +3470,7 @@ class AbstractDbxFirebaseDocumentStore extends LockSetComponentStore {
|
|
|
3356
3470
|
// MARK: State Changes
|
|
3357
3471
|
this.setId = this.updater((state, id) => (id ? Object.assign(Object.assign({}, state), { id, key: undefined, ref: undefined }) : Object.assign(Object.assign({}, state), { id })));
|
|
3358
3472
|
this.setKey = this.updater((state, key) => (key ? Object.assign(Object.assign({}, state), { key, id: undefined, ref: undefined }) : Object.assign(Object.assign({}, state), { key })));
|
|
3473
|
+
this.setFlatKey = this.updater((state, key) => (key ? Object.assign(Object.assign({}, state), { key: inferKeyFromTwoWayFlatFirestoreModelKey(key), id: undefined, ref: undefined }) : Object.assign(Object.assign({}, state), { key })));
|
|
3359
3474
|
this.setRef = this.updater((state, ref) => (ref ? Object.assign(Object.assign({}, state), { key: undefined, id: undefined, ref }) : Object.assign(Object.assign({}, state), { ref })));
|
|
3360
3475
|
this.setStreamMode = this.updater((state, streamMode) => (Object.assign(Object.assign({}, state), { streamMode })));
|
|
3361
3476
|
this.clearRefs = this.updater((state) => (Object.assign(Object.assign({}, state), { id: undefined, key: undefined, ref: undefined })));
|
|
@@ -3836,5 +3951,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
3836
3951
|
* Generated bundle index. Do not edit.
|
|
3837
3952
|
*/
|
|
3838
3953
|
|
|
3839
|
-
export { AbstractConfiguredDbxFirebaseLoginButtonDirective, AbstractDbxFirebaseCollectionStore, AbstractDbxFirebaseCollectionWithParentStore, AbstractDbxFirebaseDocumentStore, AbstractDbxFirebaseDocumentWithParentStore, AbstractSingleItemDbxFirebaseDocument, AbstractSystemStateDocumentStoreAccessor, DBX_FIREBASE_ID_ROUTER_PARAM_DEFAULT_ID_PARAM_KEY, DBX_FIREBASE_ID_ROUTER_PARAM_DEFAULT_USE_PARAM_VALUE, DBX_FIREBASE_MODEL_DOES_NOT_EXIST_ERROR, DBX_FIREBASE_OPTIONS_TOKEN, DBX_FIREBASE_STORAGE_CONTEXT_CONFIG_TOKEN, DBX_FIREBASE_STORAGE_CONTEXT_TOKEN, DBX_FIRESTORE_CONTEXT_TOKEN, DEFAULT_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_TEMPLATE, DEFAULT_DBX_FIREBASE_AUTH_SERVICE_DELEGATE, DEFAULT_FIREBASE_AUTH_LOGIN_PASSWORD_CONFIG, DEFAULT_FIREBASE_AUTH_LOGIN_PASSWORD_CONFIG_TOKEN, DEFAULT_FIREBASE_AUTH_LOGIN_PROVIDERS_TOKEN, DEFAULT_FIREBASE_AUTH_LOGIN_TERMS_COMPONENT_CLASS_TOKEN, DEFAULT_FIREBASE_COLLECTION_CHANGE_TRIGGER_FUNCTION, DEFAULT_FIREBASE_DEVELOPMENT_ENABLED_TOKEN, DEFAULT_FIREBASE_DEVELOPMENT_POPUP_KEY, DEFAULT_FIREBASE_DEVELOPMENT_SCHEDULER_ENABLED_TOKEN, DEFAULT_FIREBASE_DEVELOPMENT_WIDGET_PROVIDERS_TOKEN, DEFAULT_FIREBASE_LOGIN_METHOD_CATEGORY, DEVELOPMENT_FIREBASE_SERVER_SCHEDULER_WIDGET_KEY, DbxFirebaseAppCheckHttpInterceptor, DbxFirebaseAuthContextInfo, DbxFirebaseAuthLoginService, DbxFirebaseAuthModule, DbxFirebaseAuthService, DbxFirebaseAuthServiceDelegate, DbxFirebaseCollectionChangeDirective, DbxFirebaseCollectionChangeTriggerInstance, DbxFirebaseCollectionChangeWatcherInstance, DbxFirebaseCollectionHasChangeDirective, DbxFirebaseCollectionListDirective, DbxFirebaseCollectionLoaderInstance, DbxFirebaseCollectionStoreDirective, DbxFirebaseCollectionWithParentStoreDirective, DbxFirebaseDefaultAppCheckProviderModule, DbxFirebaseDefaultAuthProviderModule, DbxFirebaseDefaultFirebaseProvidersModule, DbxFirebaseDefaultFirestoreProviderModule, DbxFirebaseDefaultFunctionsProviderModule, DbxFirebaseDefaultStorageProviderModule, DbxFirebaseDevelopmentDirective, DbxFirebaseDevelopmentModule, DbxFirebaseDevelopmentModuleRootConfig, DbxFirebaseDevelopmentPopupComponent, DbxFirebaseDevelopmentPopupContentComponent, DbxFirebaseDevelopmentPopupContentFormComponent, DbxFirebaseDevelopmentSchedulerListComponent, DbxFirebaseDevelopmentSchedulerListViewComponent, DbxFirebaseDevelopmentSchedulerListViewItemComponent, DbxFirebaseDevelopmentSchedulerService, DbxFirebaseDevelopmentSchedulerWidgetComponent, DbxFirebaseDevelopmentService, DbxFirebaseDevelopmentWidgetService, DbxFirebaseDocumentAuthIdDirective, DbxFirebaseDocumentLoaderInstance, DbxFirebaseDocumentStoreDirective, DbxFirebaseDocumentStoreRouteIdDirective, DbxFirebaseEmailFormComponent, DbxFirebaseEmailRecoveryFormComponent, DbxFirebaseEmulatorModule, DbxFirebaseEmulatorService, DbxFirebaseFirestoreCollectionModule, DbxFirebaseFunctionsModule, DbxFirebaseIdRouteParamRedirectInstance, DbxFirebaseInContextFirebaseModelServiceInstance, DbxFirebaseLoginAnonymousComponent, DbxFirebaseLoginAppleComponent, DbxFirebaseLoginButtonComponent, DbxFirebaseLoginButtonContainerComponent, DbxFirebaseLoginComponent, DbxFirebaseLoginContext, DbxFirebaseLoginContextBackButtonComponent, DbxFirebaseLoginContextDirective, DbxFirebaseLoginEmailComponent, DbxFirebaseLoginEmailContentComponent, DbxFirebaseLoginFacebookComponent, DbxFirebaseLoginGitHubComponent, DbxFirebaseLoginGoogleComponent, DbxFirebaseLoginListComponent, DbxFirebaseLoginMicrosoftComponent, DbxFirebaseLoginModule, DbxFirebaseLoginModuleRootConfig, DbxFirebaseLoginTermsComponent, DbxFirebaseLoginTermsSimpleComponent, DbxFirebaseLoginTwitterComponent, DbxFirebaseModelModule, DbxFirebaseModelStoreModule, DbxFirebaseModule, DbxFirebaseParsedEmulatorsConfig, DbxFirebaseRegisterComponent, DbxFirebaseRegisterEmailComponent, DbxFirebaseStorageModule, DbxFirebaseStorageService, DbxFirebaseSystemStateCollectionStoreDirective, DbxFirebaseSystemStateDocumentStoreDirective, DbxFirestoreContextService, DbxLimitedFirebaseDocumentLoaderInstance, OAUTH_FIREBASE_LOGIN_METHOD_CATEGORY, SystemStateCollectionStore, SystemStateDocumentStore, authRolesObsWithClaimsService, authUserInfoFromAuthUser, authUserStateFromFirebaseAuthServiceFunction, dbxFirebaseCollectionChangeTrigger, dbxFirebaseCollectionChangeTriggerForStore, dbxFirebaseCollectionChangeTriggerForWatcher, dbxFirebaseCollectionChangeWatcher, dbxFirebaseCollectionLoaderInstance, dbxFirebaseCollectionLoaderInstanceWithCollection, dbxFirebaseDocumentLoaderInstance, dbxFirebaseDocumentLoaderInstanceWithAccessor, dbxFirebaseIdRouteParamRedirect, dbxFirebaseStorageModuleContextConfigFactory, dbxLimitedFirebaseDocumentLoaderInstance, dbxLimitedFirebaseDocumentLoaderInstanceWithAccessor, defaultDbxFirebaseAuthServiceDelegateWithClaimsService, defaultFirebaseAuthLoginProvidersFactory, developmentFirebaseServerSchedulerWidgetEntry, enableAppCheckDebugTokenGeneration, firebaseAuthTokenFromUser, firebaseDocumentStoreCreateFunction, firebaseDocumentStoreCrudFunction, firebaseDocumentStoreDeleteFunction, firebaseDocumentStoreReadFunction, firebaseDocumentStoreUpdateFunction, modelDoesNotExistError, provideDbxFirebaseCollectionStoreDirective, provideDbxFirebaseCollectionWithParentStoreDirective, provideDbxFirebaseDocumentStoreDirective, provideSystemStateFirestoreCollections, readValueFromIdToken, setParentStoreEffect, stateFromTokenForLoggedInUserFunction };
|
|
3954
|
+
export { AbstractConfiguredDbxFirebaseLoginButtonDirective, AbstractDbxFirebaseCollectionStore, AbstractDbxFirebaseCollectionWithParentStore, AbstractDbxFirebaseDocumentStore, AbstractDbxFirebaseDocumentWithParentStore, AbstractSingleItemDbxFirebaseDocument, AbstractSystemStateDocumentStoreAccessor, DBX_FIREBASE_ID_ROUTER_PARAM_DEFAULT_ID_PARAM_KEY, DBX_FIREBASE_ID_ROUTER_PARAM_DEFAULT_KEY_PARAM_KEY, DBX_FIREBASE_ID_ROUTER_PARAM_DEFAULT_USE_PARAM_VALUE, DBX_FIREBASE_MODEL_DOES_NOT_EXIST_ERROR, DBX_FIREBASE_OPTIONS_TOKEN, DBX_FIREBASE_STORAGE_CONTEXT_CONFIG_TOKEN, DBX_FIREBASE_STORAGE_CONTEXT_TOKEN, DBX_FIRESTORE_CONTEXT_TOKEN, DEFAULT_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_TEMPLATE, DEFAULT_DBX_FIREBASE_ANALYTICS_USER_PROPERTIES_FACTORY, DEFAULT_DBX_FIREBASE_AUTH_SERVICE_DELEGATE, DEFAULT_FIREBASE_AUTH_LOGIN_PASSWORD_CONFIG, DEFAULT_FIREBASE_AUTH_LOGIN_PASSWORD_CONFIG_TOKEN, DEFAULT_FIREBASE_AUTH_LOGIN_PROVIDERS_TOKEN, DEFAULT_FIREBASE_AUTH_LOGIN_TERMS_COMPONENT_CLASS_TOKEN, DEFAULT_FIREBASE_COLLECTION_CHANGE_TRIGGER_FUNCTION, DEFAULT_FIREBASE_DEVELOPMENT_ENABLED_TOKEN, DEFAULT_FIREBASE_DEVELOPMENT_POPUP_KEY, DEFAULT_FIREBASE_DEVELOPMENT_SCHEDULER_ENABLED_TOKEN, DEFAULT_FIREBASE_DEVELOPMENT_WIDGET_PROVIDERS_TOKEN, DEFAULT_FIREBASE_LOGIN_METHOD_CATEGORY, DEVELOPMENT_FIREBASE_SERVER_SCHEDULER_WIDGET_KEY, DbxFirebaseAnalyticsUserSource, DbxFirebaseAppCheckHttpInterceptor, DbxFirebaseAuthContextInfo, DbxFirebaseAuthLoginService, DbxFirebaseAuthModule, DbxFirebaseAuthService, DbxFirebaseAuthServiceDelegate, DbxFirebaseCollectionChangeDirective, DbxFirebaseCollectionChangeTriggerInstance, DbxFirebaseCollectionChangeWatcherInstance, DbxFirebaseCollectionHasChangeDirective, DbxFirebaseCollectionListDirective, DbxFirebaseCollectionLoaderInstance, DbxFirebaseCollectionStoreDirective, DbxFirebaseCollectionWithParentStoreDirective, DbxFirebaseDefaultAppCheckProviderModule, DbxFirebaseDefaultAuthProviderModule, DbxFirebaseDefaultFirebaseProvidersModule, DbxFirebaseDefaultFirestoreProviderModule, DbxFirebaseDefaultFunctionsProviderModule, DbxFirebaseDefaultStorageProviderModule, DbxFirebaseDevelopmentDirective, DbxFirebaseDevelopmentModule, DbxFirebaseDevelopmentModuleRootConfig, DbxFirebaseDevelopmentPopupComponent, DbxFirebaseDevelopmentPopupContentComponent, DbxFirebaseDevelopmentPopupContentFormComponent, DbxFirebaseDevelopmentSchedulerListComponent, DbxFirebaseDevelopmentSchedulerListViewComponent, DbxFirebaseDevelopmentSchedulerListViewItemComponent, DbxFirebaseDevelopmentSchedulerService, DbxFirebaseDevelopmentSchedulerWidgetComponent, DbxFirebaseDevelopmentService, DbxFirebaseDevelopmentWidgetService, DbxFirebaseDocumentAuthIdDirective, DbxFirebaseDocumentLoaderInstance, DbxFirebaseDocumentStoreDirective, DbxFirebaseDocumentStoreRouteIdDirective, DbxFirebaseDocumentStoreRouteKeyDirective, DbxFirebaseEmailFormComponent, DbxFirebaseEmailRecoveryFormComponent, DbxFirebaseEmulatorModule, DbxFirebaseEmulatorService, DbxFirebaseFirestoreCollectionModule, DbxFirebaseFunctionsModule, DbxFirebaseIdRouteParamRedirectInstance, DbxFirebaseInContextFirebaseModelServiceInstance, DbxFirebaseLoginAnonymousComponent, DbxFirebaseLoginAppleComponent, DbxFirebaseLoginButtonComponent, DbxFirebaseLoginButtonContainerComponent, DbxFirebaseLoginComponent, DbxFirebaseLoginContext, DbxFirebaseLoginContextBackButtonComponent, DbxFirebaseLoginContextDirective, DbxFirebaseLoginEmailComponent, DbxFirebaseLoginEmailContentComponent, DbxFirebaseLoginFacebookComponent, DbxFirebaseLoginGitHubComponent, DbxFirebaseLoginGoogleComponent, DbxFirebaseLoginListComponent, DbxFirebaseLoginMicrosoftComponent, DbxFirebaseLoginModule, DbxFirebaseLoginModuleRootConfig, DbxFirebaseLoginTermsComponent, DbxFirebaseLoginTermsSimpleComponent, DbxFirebaseLoginTwitterComponent, DbxFirebaseModelModule, DbxFirebaseModelStoreModule, DbxFirebaseModule, DbxFirebaseParsedEmulatorsConfig, DbxFirebaseRegisterComponent, DbxFirebaseRegisterEmailComponent, DbxFirebaseStorageModule, DbxFirebaseStorageService, DbxFirebaseSystemStateCollectionStoreDirective, DbxFirebaseSystemStateDocumentStoreDirective, DbxFirestoreContextService, DbxLimitedFirebaseDocumentLoaderInstance, OAUTH_FIREBASE_LOGIN_METHOD_CATEGORY, SystemStateCollectionStore, SystemStateDocumentStore, authRolesObsWithClaimsService, authUserInfoFromAuthUser, authUserStateFromFirebaseAuthServiceFunction, dbxFirebaseCollectionChangeTrigger, dbxFirebaseCollectionChangeTriggerForStore, dbxFirebaseCollectionChangeTriggerForWatcher, dbxFirebaseCollectionChangeWatcher, dbxFirebaseCollectionLoaderInstance, dbxFirebaseCollectionLoaderInstanceWithCollection, dbxFirebaseDocumentLoaderInstance, dbxFirebaseDocumentLoaderInstanceWithAccessor, dbxFirebaseIdRouteParamRedirect, dbxFirebaseKeyRouteParamRedirect, dbxFirebaseStorageModuleContextConfigFactory, dbxLimitedFirebaseDocumentLoaderInstance, dbxLimitedFirebaseDocumentLoaderInstanceWithAccessor, defaultDbxFirebaseAuthServiceDelegateWithClaimsService, defaultFirebaseAuthLoginProvidersFactory, developmentFirebaseServerSchedulerWidgetEntry, enableAppCheckDebugTokenGeneration, firebaseAuthTokenFromUser, firebaseDocumentStoreCreateFunction, firebaseDocumentStoreCrudFunction, firebaseDocumentStoreDeleteFunction, firebaseDocumentStoreReadFunction, firebaseDocumentStoreUpdateFunction, modelDoesNotExistError, provideDbxFirebaseCollectionStoreDirective, provideDbxFirebaseCollectionWithParentStoreDirective, provideDbxFirebaseDocumentStoreDirective, provideSystemStateFirestoreCollections, readDbxAnalyticsUserPropertiesFromAuthUserInfo, readValueFromIdToken, setParentStoreEffect, stateFromTokenForLoggedInUserFunction };
|
|
3840
3955
|
//# sourceMappingURL=dereekb-dbx-firebase.mjs.map
|