@dereekb/dbx-firebase 13.17.0 → 13.18.0
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/fesm2022/dereekb-dbx-firebase-oidc.mjs +6 -6
- package/fesm2022/dereekb-dbx-firebase-oidc.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-firebase-style-demo.mjs +139 -0
- package/fesm2022/dereekb-dbx-firebase-style-demo.mjs.map +1 -0
- package/fesm2022/dereekb-dbx-firebase.mjs +3 -3
- package/fesm2022/dereekb-dbx-firebase.mjs.map +1 -1
- package/package.json +15 -12
- package/style-demo/README.md +7 -0
- package/types/dereekb-dbx-firebase-style-demo.d.ts +41 -0
- package/types/dereekb-dbx-firebase.d.ts +6 -6
package/package.json
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-firebase",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.18.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "21.2.11",
|
|
6
6
|
"@angular/core": "21.2.11",
|
|
7
7
|
"@angular/material": "^21.2.9",
|
|
8
|
-
"@dereekb/date": "13.
|
|
9
|
-
"@dereekb/dbx-analytics": "13.
|
|
10
|
-
"@dereekb/dbx-core": "13.
|
|
11
|
-
"@dereekb/dbx-form": "13.
|
|
12
|
-
"@dereekb/dbx-web": "13.
|
|
13
|
-
"@dereekb/firebase": "13.
|
|
14
|
-
"@dereekb/model": "13.
|
|
15
|
-
"@dereekb/rxjs": "13.
|
|
16
|
-
"@dereekb/util": "13.
|
|
17
|
-
"@dereekb/vitest": "13.
|
|
8
|
+
"@dereekb/date": "13.18.0",
|
|
9
|
+
"@dereekb/dbx-analytics": "13.18.0",
|
|
10
|
+
"@dereekb/dbx-core": "13.18.0",
|
|
11
|
+
"@dereekb/dbx-form": "13.18.0",
|
|
12
|
+
"@dereekb/dbx-web": "13.18.0",
|
|
13
|
+
"@dereekb/firebase": "13.18.0",
|
|
14
|
+
"@dereekb/model": "13.18.0",
|
|
15
|
+
"@dereekb/rxjs": "13.18.0",
|
|
16
|
+
"@dereekb/util": "13.18.0",
|
|
17
|
+
"@dereekb/vitest": "13.18.0",
|
|
18
18
|
"@ng-forge/dynamic-forms": "0.10.0-next.4",
|
|
19
19
|
"@ngrx/component-store": "^21.1.0",
|
|
20
|
-
"@ngx-formly/core": "git+https://git@github.com/dereekb/ngx-formly#996d1041c8d2afbe429985a5ad394e59327bfa1d",
|
|
21
20
|
"firebase": "^12.12.1",
|
|
22
21
|
"make-error": "^1.3.6",
|
|
23
22
|
"ng-overlay-container": "^21.0.1",
|
|
@@ -36,6 +35,10 @@
|
|
|
36
35
|
"types": "./types/dereekb-dbx-firebase-oidc.d.ts",
|
|
37
36
|
"default": "./fesm2022/dereekb-dbx-firebase-oidc.mjs"
|
|
38
37
|
},
|
|
38
|
+
"./style-demo": {
|
|
39
|
+
"types": "./types/dereekb-dbx-firebase-style-demo.d.ts",
|
|
40
|
+
"default": "./fesm2022/dereekb-dbx-firebase-style-demo.mjs"
|
|
41
|
+
},
|
|
39
42
|
"./package.json": {
|
|
40
43
|
"default": "./package.json"
|
|
41
44
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# @dereekb/dbx-firebase/style-demo
|
|
2
|
+
|
|
3
|
+
Plumbing entry that registers `@dereekb/dbx-firebase` sections with the `<dbx-style-demo>` showcase shell from `@dereekb/dbx-web/style-demo`.
|
|
4
|
+
|
|
5
|
+
Wire `provideDbxFirebaseStyleDemo()` into an app alongside `provideDbxStyleDemo()` (the shell) and `provideDbxWebStyleDemo()` (the web sections) to add Firebase-styling sections to the playground.
|
|
6
|
+
|
|
7
|
+
> Phase 1 ships the plumbing only (a placeholder section). Real Firebase-styling sections arrive in a later phase.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EnvironmentProviders } from '@angular/core';
|
|
3
|
+
import { DbxStyleDemoSectionGroup } from '@dereekb/dbx-web/style-demo';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Style-demo section showing the presentational `dbx-firebase-oauth-login-view` in its three render states —
|
|
7
|
+
* `no_user` (projecting the real `dbx-firebase-login` provider buttons), `submitting`, and `error` — so the login
|
|
8
|
+
* surfaces are visible in the playground. Rendering makes no network calls; the provider buttons resolve from the
|
|
9
|
+
* host app's login configuration at render time.
|
|
10
|
+
*
|
|
11
|
+
* @dbxDocsUiExample
|
|
12
|
+
* @dbxDocsUiExampleSlug style-demo-firebase-login
|
|
13
|
+
* @dbxDocsUiExampleCategory style-demo
|
|
14
|
+
* @dbxDocsUiExampleSummary The dbx-firebase-oauth-login-view in its no_user, submitting, and error render states.
|
|
15
|
+
* @dbxDocsUiExampleRelated dbx-firebase-login
|
|
16
|
+
*/
|
|
17
|
+
declare class DbxFirebaseStyleDemoLoginSectionComponent {
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseStyleDemoLoginSectionComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFirebaseStyleDemoLoginSectionComponent, "dbx-firebase-style-demo-login-section", never, {}, {}, never, never, true, never>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* The `@dereekb/dbx-firebase/style-demo` section group.
|
|
24
|
+
*/
|
|
25
|
+
declare const DBX_FIREBASE_STYLE_DEMO_SECTION_GROUP: DbxStyleDemoSectionGroup;
|
|
26
|
+
/**
|
|
27
|
+
* Registers the `@dereekb/dbx-firebase/style-demo` sections with the `<dbx-style-demo>` playground.
|
|
28
|
+
*
|
|
29
|
+
* The Firebase Login section renders `dbx-firebase-oauth-login-view` (with `dbx-firebase-login` projected for the
|
|
30
|
+
* `no_user` state), so the host app must provide Firebase auth (`provideDbxFirebase`) and login configuration
|
|
31
|
+
* (`provideDbxFirebaseLogin({ enabledLoginMethods, ... })`). Rendering makes no network calls until a button is clicked.
|
|
32
|
+
*
|
|
33
|
+
* Pair with `provideDbxStyleDemo()` (the shell from `@dereekb/dbx-web/style-demo`).
|
|
34
|
+
*
|
|
35
|
+
* @returns EnvironmentProviders contributing the firebase sections.
|
|
36
|
+
*
|
|
37
|
+
* @__NO_SIDE_EFFECTS__
|
|
38
|
+
*/
|
|
39
|
+
declare function provideDbxFirebaseStyleDemo(): EnvironmentProviders;
|
|
40
|
+
|
|
41
|
+
export { DBX_FIREBASE_STYLE_DEMO_SECTION_GROUP, DbxFirebaseStyleDemoLoginSectionComponent, provideDbxFirebaseStyleDemo };
|
|
@@ -12,7 +12,7 @@ import * as i0 from '@angular/core';
|
|
|
12
12
|
import { EnvironmentProviders, Type, InjectionToken, OnInit, Component, EventEmitter, Injector, AfterViewInit, ElementRef, Signal, Provider, PipeTransform } from '@angular/core';
|
|
13
13
|
import { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/common/http';
|
|
14
14
|
import * as _dereekb_dbx_form from '@dereekb/dbx-form';
|
|
15
|
-
import {
|
|
15
|
+
import { DbxForgeTextPasswordFieldPasswordParameters, AbstractSyncForgeFormDirective, AbstractConfigAsyncForgeFormDirective, DbxForgeDefaultUsernameLoginFieldsValue, DbxForgeTextPasswordFieldConfig, SourceSelectLoadSource } from '@dereekb/dbx-form';
|
|
16
16
|
import * as _dereekb_dbx_firebase from '@dereekb/dbx-firebase';
|
|
17
17
|
import * as _dereekb_rxjs from '@dereekb/rxjs';
|
|
18
18
|
import { WorkUsingContext, WorkUsingObservable, ObservableOrValue, IsModifiedFunction, PageListLoadingState, ItemAccumulatorNextPageUntilResultsCountResult, SubscriptionObject, ObservableDecisionFunction, ListLoadingState, LoadingState, MaybeObservableOrValue, SwitchMapToDefaultFilterFunction, MaybeObservableOrValueGetter } from '@dereekb/rxjs';
|
|
@@ -404,7 +404,7 @@ type DbxFirebaseLoginMode = 'login' | 'register' | 'link' | 'unlink';
|
|
|
404
404
|
/**
|
|
405
405
|
* Password validation configuration for Firebase email/password login forms.
|
|
406
406
|
*/
|
|
407
|
-
type DbxFirebaseAuthLoginPasswordConfig =
|
|
407
|
+
type DbxFirebaseAuthLoginPasswordConfig = DbxForgeTextPasswordFieldPasswordParameters;
|
|
408
408
|
/**
|
|
409
409
|
* Default password config requiring a minimum of 6 characters (Firebase Auth minimum).
|
|
410
410
|
*/
|
|
@@ -458,7 +458,7 @@ declare function provideDbxFirebaseLogin(config: ProvideDbxFirebaseLoginConfig):
|
|
|
458
458
|
*/
|
|
459
459
|
declare const DEFAULT_FIREBASE_AUTH_LOGIN_PROVIDERS_TOKEN: InjectionToken<DbxFirebaseAuthLoginProvider<unknown>[]>;
|
|
460
460
|
declare const DEFAULT_FIREBASE_AUTH_LOGIN_TERMS_COMPONENT_CLASS_TOKEN: InjectionToken<Type<unknown>>;
|
|
461
|
-
declare const DEFAULT_FIREBASE_AUTH_LOGIN_PASSWORD_CONFIG_TOKEN: InjectionToken<Partial<Pick<dist_packages_dbx_form_types_dereekb_dbx_form.
|
|
461
|
+
declare const DEFAULT_FIREBASE_AUTH_LOGIN_PASSWORD_CONFIG_TOKEN: InjectionToken<Partial<Pick<dist_packages_dbx_form_types_dereekb_dbx_form.DbxForgeTextFieldConfig, "maxLength" | "minLength" | "pattern">>>;
|
|
462
462
|
interface DbxFirebaseAuthLoginProvider<D = unknown> {
|
|
463
463
|
/**
|
|
464
464
|
* Category for this login method.
|
|
@@ -589,7 +589,7 @@ declare class DbxFirebaseAuthLoginService {
|
|
|
589
589
|
*/
|
|
590
590
|
getAllProviderAssets(): Map<FirebaseLoginMethodType, DbxFirebaseAuthLoginProviderAssets>;
|
|
591
591
|
getProviderAssets(type: FirebaseLoginMethodType): Maybe<DbxFirebaseAuthLoginProviderAssets>;
|
|
592
|
-
getPasswordConfig(): Partial<Pick<dist_packages_dbx_form_types_dereekb_dbx_form.
|
|
592
|
+
getPasswordConfig(): Partial<Pick<dist_packages_dbx_form_types_dereekb_dbx_form.DbxForgeTextFieldConfig, "maxLength" | "minLength" | "pattern">>;
|
|
593
593
|
setPasswordConfig(passwordConfig: DbxFirebaseAuthLoginPasswordConfig): void;
|
|
594
594
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseAuthLoginService, never>;
|
|
595
595
|
static ɵprov: i0.ɵɵInjectableDeclaration<DbxFirebaseAuthLoginService>;
|
|
@@ -804,7 +804,7 @@ declare class DbxFirebaseEmailRecoveryForgeFormComponent extends AbstractSyncFor
|
|
|
804
804
|
/**
|
|
805
805
|
* Form value containing email (username) and password fields.
|
|
806
806
|
*/
|
|
807
|
-
type DbxFirebaseEmailFormValue =
|
|
807
|
+
type DbxFirebaseEmailFormValue = DbxForgeDefaultUsernameLoginFieldsValue;
|
|
808
808
|
/**
|
|
809
809
|
* Configuration for the email login form, specifying mode and optional password constraints.
|
|
810
810
|
*/
|
|
@@ -845,7 +845,7 @@ declare class DbxFirebaseLoginEmailContentComponent {
|
|
|
845
845
|
private readonly _emailFormValueSignal;
|
|
846
846
|
private readonly _recoveryFormValueSignal;
|
|
847
847
|
private readonly _emailModeSignal;
|
|
848
|
-
readonly emailFormValueSignal: i0.Signal<Maybe<_dereekb_dbx_form.
|
|
848
|
+
readonly emailFormValueSignal: i0.Signal<Maybe<_dereekb_dbx_form.DbxForgeDefaultUsernameLoginFieldsValue>>;
|
|
849
849
|
readonly recoveryFormValueSignal: i0.Signal<Maybe<DbxFirebaseEmailRecoveryFormValue>>;
|
|
850
850
|
readonly emailModeSignal: i0.Signal<DbxFirebaseLoginEmailContentMode>;
|
|
851
851
|
readonly forgotAnchor: ClickableAnchor;
|