@dereekb/dbx-firebase 13.11.14 → 13.11.16

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/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@dereekb/dbx-firebase",
3
- "version": "13.11.14",
3
+ "version": "13.11.16",
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.11.14",
9
- "@dereekb/dbx-analytics": "13.11.14",
10
- "@dereekb/dbx-core": "13.11.14",
11
- "@dereekb/dbx-form": "13.11.14",
12
- "@dereekb/dbx-web": "13.11.14",
13
- "@dereekb/firebase": "13.11.14",
14
- "@dereekb/model": "13.11.14",
15
- "@dereekb/rxjs": "13.11.14",
16
- "@dereekb/util": "13.11.14",
17
- "@dereekb/vitest": "13.11.14",
8
+ "@dereekb/date": "13.11.16",
9
+ "@dereekb/dbx-analytics": "13.11.16",
10
+ "@dereekb/dbx-core": "13.11.16",
11
+ "@dereekb/dbx-form": "13.11.16",
12
+ "@dereekb/dbx-web": "13.11.16",
13
+ "@dereekb/firebase": "13.11.16",
14
+ "@dereekb/model": "13.11.16",
15
+ "@dereekb/rxjs": "13.11.16",
16
+ "@dereekb/util": "13.11.16",
17
+ "@dereekb/vitest": "13.11.16",
18
18
  "@ng-forge/dynamic-forms": "0.9.0-next.10",
19
19
  "@ngrx/component-store": "^21.1.0",
20
20
  "@ngx-formly/core": "git+https://git@github.com/dereekb/ngx-formly#996d1041c8d2afbe429985a5ad394e59327bfa1d",
@@ -44,7 +44,7 @@ type OidcLoginStateCase = 'unknown' | 'no_user' | 'user' | 'submitting' | 'error
44
44
  declare class DbxFirebaseOAuthLoginViewComponent {
45
45
  readonly loginStateCase: i0.InputSignal<OidcLoginStateCase>;
46
46
  readonly error: i0.InputSignal<Maybe<string | ErrorInput>>;
47
- readonly resolvedError: i0.Signal<Maybe<ErrorInput>>;
47
+ readonly resolvedErrorSignal: i0.Signal<Maybe<ErrorInput>>;
48
48
  readonly retryClick: i0.OutputEmitterRef<void>;
49
49
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseOAuthLoginViewComponent, never>;
50
50
  static ɵcmp: i0.ɵɵComponentDeclaration<DbxFirebaseOAuthLoginViewComponent, "dbx-firebase-oauth-login-view", never, { "loginStateCase": { "alias": "loginStateCase"; "required": true; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; }, { "retryClick": "retryClick"; }, never, ["*"], true, never>;
@@ -63,7 +63,7 @@ declare const OAUTH_CONSENT_SCOPES_REQUIRED_VALIDATOR_KIND = "mustSelectAtLeastO
63
63
  /**
64
64
  * Default message shown when the user has cleared every optional scope.
65
65
  */
66
- declare const OAUTH_CONSENT_SCOPES_REQUIRED_VALIDATOR_DEFAULT_MESSAGE = "Select at least one scope to grant.";
66
+ declare const DEFAULT_OAUTH_CONSENT_SCOPES_REQUIRED_VALIDATOR_MESSAGE = "Select at least one scope to grant.";
67
67
  /**
68
68
  * Form value emitted by the consent scopes form.
69
69
  *
@@ -162,11 +162,11 @@ declare class DbxFirebaseOAuthConsentViewComponent {
162
162
  * No value is passed (`dbxActionValue` provides an empty payload).
163
163
  */
164
164
  readonly denyHandler: i0.InputSignal<WorkUsingContext<void, OAuthInteractionConsentResponse>>;
165
- readonly clientName: Signal<string>;
166
- readonly clientUri: Signal<Maybe<string>>;
167
- readonly logoUri: Signal<Maybe<string>>;
168
- readonly scopes: Signal<OidcScope[]>;
169
- readonly resolvedScopeInjectionConfig: Signal<DbxInjectionComponentConfig<unknown>>;
165
+ readonly clientNameSignal: Signal<string>;
166
+ readonly clientUriSignal: Signal<Maybe<string>>;
167
+ readonly logoUriSignal: Signal<Maybe<string>>;
168
+ readonly scopesSignal: Signal<OidcScope[]>;
169
+ readonly resolvedScopeInjectionConfigSignal: Signal<DbxInjectionComponentConfig<unknown>>;
170
170
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseOAuthConsentViewComponent, never>;
171
171
  static ɵcmp: i0.ɵɵComponentDeclaration<DbxFirebaseOAuthConsentViewComponent, "dbx-firebase-oauth-consent-view", never, { "details": { "alias": "details"; "required": false; "isSignal": true; }; "consentStateCase": { "alias": "consentStateCase"; "required": true; "isSignal": true; }; "scopeInjectionConfig": { "alias": "scopeInjectionConfig"; "required": true; "isSignal": true; }; "requiredScopes": { "alias": "requiredScopes"; "required": false; "isSignal": true; }; "approveHandler": { "alias": "approveHandler"; "required": true; "isSignal": true; }; "denyHandler": { "alias": "denyHandler"; "required": true; "isSignal": true; }; }, {}, never, ["*"], true, never>;
172
172
  }
@@ -307,10 +307,10 @@ declare class DbxFirebaseOAuthConsentScopeFormComponent extends AbstractConfigAs
307
307
  declare class DbxFirebaseOAuthConsentScopeDefaultViewComponent {
308
308
  private readonly _oidcConfigService;
309
309
  private readonly _data;
310
- readonly mappedScopes: i0.Signal<OAuthConsentScope<string>[]>;
311
- readonly optionalScopes: i0.Signal<OAuthConsentScope<string>[]>;
312
- readonly alwaysGrantedLabel: i0.Signal<string | null>;
313
- readonly formFieldsConfig: i0.Signal<OAuthConsentScopesFormFieldsConfig>;
310
+ readonly mappedScopesSignal: i0.Signal<OAuthConsentScope<string>[]>;
311
+ readonly optionalScopesSignal: i0.Signal<OAuthConsentScope<string>[]>;
312
+ readonly alwaysGrantedLabelSignal: i0.Signal<Maybe<string>>;
313
+ readonly formFieldsConfigSignal: i0.Signal<OAuthConsentScopesFormFieldsConfig>;
314
314
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseOAuthConsentScopeDefaultViewComponent, never>;
315
315
  static ɵcmp: i0.ɵɵComponentDeclaration<DbxFirebaseOAuthConsentScopeDefaultViewComponent, "dbx-firebase-oauth-consent-scope-default-view", never, {}, {}, never, never, true, never>;
316
316
  }
@@ -336,8 +336,8 @@ declare class DbxFirebaseOAuthLoginComponent implements OnDestroy {
336
336
  readonly interactionUid: Signal<Maybe<OidcInteractionUid>>;
337
337
  readonly isLoggedIn: Signal<Maybe<boolean>>;
338
338
  readonly submitting: i0.WritableSignal<boolean>;
339
- readonly errorMessage: i0.WritableSignal<string | null>;
340
- readonly loginStateCase: Signal<OidcLoginStateCase>;
339
+ readonly errorMessage: i0.WritableSignal<Maybe<string>>;
340
+ readonly loginStateCaseSignal: Signal<OidcLoginStateCase>;
341
341
  constructor();
342
342
  ngOnDestroy(): void;
343
343
  retry(): void;
@@ -391,26 +391,32 @@ declare class DbxOAuthConsentComponent implements OnDestroy {
391
391
  private readonly routeLogoUri;
392
392
  private readonly routeScopes;
393
393
  readonly isLoggedIn: Signal<Maybe<boolean>>;
394
- readonly resolvedInteractionUid: Signal<Maybe<string>>;
395
- readonly resolvedDetails: Signal<Maybe<OAuthInteractionLoginDetails<string>>>;
396
- readonly scopeInjectionConfig: Signal<DbxInjectionComponentConfig<unknown>>;
394
+ readonly resolvedInteractionUidSignal: Signal<Maybe<string>>;
395
+ readonly resolvedDetailsSignal: Signal<Maybe<OAuthInteractionLoginDetails<string>>>;
396
+ readonly scopeInjectionConfigSignal: Signal<DbxInjectionComponentConfig<unknown>>;
397
397
  /**
398
398
  * Scopes the user cannot deselect. Forwarded to the view, which shows
399
399
  * them as a static "Always granted" hint above the selection list.
400
400
  */
401
401
  readonly requiredScopes: readonly OidcScope[];
402
- readonly consentStateCase: Signal<OidcConsentStateCase>;
402
+ readonly consentStateCaseSignal: Signal<OidcConsentStateCase>;
403
403
  ngOnDestroy(): void;
404
404
  /**
405
405
  * Handles the Approve action. Pulls the form's selected scope array
406
406
  * straight off the form value (it already matches the API field name
407
407
  * `grantedOIDCScopes`) and forwards it through `submitConsent`. On a
408
408
  * successful response, hard-navigates to the OIDC server's redirect URL.
409
+ *
410
+ * @param formValue - Submitted form value containing the granted scope array.
411
+ * @param context - The Work context driving the approval flow.
409
412
  */
410
413
  readonly handleApprove: WorkUsingContext<OAuthConsentScopesFormValue, OAuthInteractionConsentResponse>;
411
414
  /**
412
415
  * Handles the Deny action. No payload is sent — the server returns
413
416
  * `access_denied` to the OAuth client.
417
+ *
418
+ * @param _value - Unused form payload.
419
+ * @param context - The Work context driving the denial flow.
414
420
  */
415
421
  readonly handleDeny: WorkUsingContext<void, OAuthInteractionConsentResponse>;
416
422
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxOAuthConsentComponent, never>;
@@ -716,11 +722,11 @@ declare class DbxFirebaseOidcEntryClientTestComponent {
716
722
  * Path to the authorization endpoint. Overrides the service default when provided.
717
723
  */
718
724
  readonly oidcAuthorizationEndpointApiPath: i0.InputSignal<Maybe<string>>;
719
- readonly resolvedAvailableScopes: i0.Signal<OidcScopeDetails[]>;
720
- readonly resolvedAuthorizationEndpointPath: i0.Signal<string>;
725
+ readonly resolvedAvailableScopesSignal: i0.Signal<OidcScopeDetails[]>;
726
+ readonly resolvedAuthorizationEndpointPathSignal: i0.Signal<string>;
721
727
  readonly redirectUrisSignal: i0.Signal<string[] | undefined>;
722
728
  readonly clientIdSignal: i0.Signal<string | undefined>;
723
- readonly formConfig: i0.Signal<OidcEntryClientTestFormFieldsConfig>;
729
+ readonly formConfigSignal: i0.Signal<OidcEntryClientTestFormFieldsConfig>;
724
730
  readonly formTemplate$: rxjs.Observable<DbxFirebaseOidcModelClientTestFormValue>;
725
731
  readonly codeVerifier: i0.WritableSignal<string>;
726
732
  readonly codeChallenge: i0.WritableSignal<string>;
@@ -866,6 +872,7 @@ declare class DbxFirebaseOidcConfigService {
866
872
  *
867
873
  * @param appCollection - The application's Firestore collection that must implement {@link OidcModelFirestoreCollections}.
868
874
  * @returns The validated OidcModelFirestoreCollections instance.
875
+ * @throws {Error} When `appCollection` does not expose an `oidcEntryCollection`.
869
876
  */
870
877
  declare function provideOidcModelFirestoreCollections(appCollection: OidcModelFirestoreCollections): OidcModelFirestoreCollections;
871
878
  /**
@@ -951,5 +958,5 @@ declare class DbxFirebaseOidcInteractionService {
951
958
  static ɵprov: i0.ɵɵInjectableDeclaration<DbxFirebaseOidcInteractionService>;
952
959
  }
953
960
 
954
- export { AbstractDbxFirebaseOAuthConsentScopeViewComponent, DEFAULT_OIDC_AUTHORIZATION_ENDPOINT_PATH, DEFAULT_OIDC_CLIENT_ID_PARAM_KEY, DEFAULT_OIDC_CLIENT_NAME_PARAM_KEY, DEFAULT_OIDC_CLIENT_URI_PARAM_KEY, DEFAULT_OIDC_INTERACTION_ENDPOINT_PATH, DEFAULT_OIDC_INTERACTION_UID_PARAM_KEY, DEFAULT_OIDC_LOGO_URI_PARAM_KEY, DEFAULT_OIDC_SCOPES_PARAM_KEY, DEFAULT_OIDC_TOKEN_ENDPOINT_AUTH_METHODS, DbxFirebaseOAuthConsentScopeDefaultViewComponent, DbxFirebaseOAuthConsentScopeFormComponent, DbxFirebaseOAuthConsentScopeListComponent, DbxFirebaseOAuthConsentScopeListItemComponent, DbxFirebaseOAuthConsentScopeListViewComponent, DbxFirebaseOAuthConsentViewComponent, DbxFirebaseOAuthLoginComponent, DbxFirebaseOAuthLoginViewComponent, DbxFirebaseOidcConfig, DbxFirebaseOidcConfigService, DbxFirebaseOidcEntryClientCreateComponent, DbxFirebaseOidcEntryClientForgeFormComponent, DbxFirebaseOidcEntryClientListComponent, DbxFirebaseOidcEntryClientListViewComponent, DbxFirebaseOidcEntryClientListViewItemClientComponent, DbxFirebaseOidcEntryClientListViewItemComponent, DbxFirebaseOidcEntryClientListViewItemDefaultComponent, DbxFirebaseOidcEntryClientTestComponent, DbxFirebaseOidcEntryClientTestForgeFormComponent, DbxFirebaseOidcEntryClientUpdateComponent, DbxFirebaseOidcEntryClientViewComponent, DbxFirebaseOidcEntryGrantListComponent, DbxFirebaseOidcEntryGrantListContainerComponent, DbxFirebaseOidcEntryGrantListViewComponent, DbxFirebaseOidcEntryGrantListViewItemComponent, DbxFirebaseOidcInteractionService, DbxOAuthConsentComponent, OAUTH_CONSENT_SCOPES_REQUIRED_VALIDATOR_DEFAULT_MESSAGE, OAUTH_CONSENT_SCOPES_REQUIRED_VALIDATOR_KIND, OidcEntryCollectionStore, OidcEntryCollectionStoreDirective, OidcEntryDocumentStore, OidcEntryDocumentStoreDirective, oauthConsentScopesFormConfig, oidcClientHomepageUriForgeField, oidcClientJwksUriForgeField, oidcClientLogoUriForgeField, oidcClientNameForgeField, oidcClientRedirectUrisForgeField, oidcClientTestClientIdForgeField, oidcClientTestRedirectUriForgeField, oidcClientTestScopesForgeField, oidcClientTokenEndpointAuthMethodForgeField, oidcEntryClientForgeFormFields, oidcEntryClientTestForgeFormFields, oidcEntryClientUpdateForgeFormFields, provideDbxFirebaseOidc, provideOidcModelFirestoreCollections };
961
+ export { AbstractDbxFirebaseOAuthConsentScopeViewComponent, DEFAULT_OAUTH_CONSENT_SCOPES_REQUIRED_VALIDATOR_MESSAGE, DEFAULT_OIDC_AUTHORIZATION_ENDPOINT_PATH, DEFAULT_OIDC_CLIENT_ID_PARAM_KEY, DEFAULT_OIDC_CLIENT_NAME_PARAM_KEY, DEFAULT_OIDC_CLIENT_URI_PARAM_KEY, DEFAULT_OIDC_INTERACTION_ENDPOINT_PATH, DEFAULT_OIDC_INTERACTION_UID_PARAM_KEY, DEFAULT_OIDC_LOGO_URI_PARAM_KEY, DEFAULT_OIDC_SCOPES_PARAM_KEY, DEFAULT_OIDC_TOKEN_ENDPOINT_AUTH_METHODS, DbxFirebaseOAuthConsentScopeDefaultViewComponent, DbxFirebaseOAuthConsentScopeFormComponent, DbxFirebaseOAuthConsentScopeListComponent, DbxFirebaseOAuthConsentScopeListItemComponent, DbxFirebaseOAuthConsentScopeListViewComponent, DbxFirebaseOAuthConsentViewComponent, DbxFirebaseOAuthLoginComponent, DbxFirebaseOAuthLoginViewComponent, DbxFirebaseOidcConfig, DbxFirebaseOidcConfigService, DbxFirebaseOidcEntryClientCreateComponent, DbxFirebaseOidcEntryClientForgeFormComponent, DbxFirebaseOidcEntryClientListComponent, DbxFirebaseOidcEntryClientListViewComponent, DbxFirebaseOidcEntryClientListViewItemClientComponent, DbxFirebaseOidcEntryClientListViewItemComponent, DbxFirebaseOidcEntryClientListViewItemDefaultComponent, DbxFirebaseOidcEntryClientTestComponent, DbxFirebaseOidcEntryClientTestForgeFormComponent, DbxFirebaseOidcEntryClientUpdateComponent, DbxFirebaseOidcEntryClientViewComponent, DbxFirebaseOidcEntryGrantListComponent, DbxFirebaseOidcEntryGrantListContainerComponent, DbxFirebaseOidcEntryGrantListViewComponent, DbxFirebaseOidcEntryGrantListViewItemComponent, DbxFirebaseOidcInteractionService, DbxOAuthConsentComponent, OAUTH_CONSENT_SCOPES_REQUIRED_VALIDATOR_KIND, OidcEntryCollectionStore, OidcEntryCollectionStoreDirective, OidcEntryDocumentStore, OidcEntryDocumentStoreDirective, oauthConsentScopesFormConfig, oidcClientHomepageUriForgeField, oidcClientJwksUriForgeField, oidcClientLogoUriForgeField, oidcClientNameForgeField, oidcClientRedirectUrisForgeField, oidcClientTestClientIdForgeField, oidcClientTestRedirectUriForgeField, oidcClientTestScopesForgeField, oidcClientTokenEndpointAuthMethodForgeField, oidcEntryClientForgeFormFields, oidcEntryClientTestForgeFormFields, oidcEntryClientUpdateForgeFormFields, provideDbxFirebaseOidc, provideOidcModelFirestoreCollections };
955
962
  export type { DbxFirebaseOAuthConsentScopesViewData, DbxFirebaseOidcEntryClientFormComponentConfig, DbxFirebaseOidcEntryClientTestFormComponentConfig, DbxFirebaseOidcModelClientFormValue, DbxFirebaseOidcModelClientTestFormValue, DbxFirebaseOidcModelClientUpdateFormValue, DbxOAuthConsentComponentConfig, OAuthConsentScope, OAuthConsentScopesFormFieldsConfig, OAuthConsentScopesFormValue, OidcConsentStateCase, OidcEntryClientFormFieldsConfig, OidcEntryClientTestFormFieldsConfig, OidcEntryWithSelection, OidcLoginStateCase, ProvideDbxFirebaseOidcConfig };