@meshmakers/shared-auth 3.5.790 → 3.5.800

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshmakers/shared-auth",
3
- "version": "3.5.790",
3
+ "version": "3.5.800",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^22.0.0",
6
6
  "@angular/core": "^22.0.0",
@@ -1,23 +1,25 @@
1
- import { EnvironmentProviders } from '@angular/core';
2
- import { SessionIdentitySink } from '@meshmakers/shared-auth';
3
-
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ import { EnvironmentProviders } from "@angular/core";
5
+ import { SessionIdentitySink } from "@meshmakers/shared-auth";
4
6
  /** Signal attribute for the current tenant — the same key the backend services use (mm-common). */
5
- declare const DASH0_TENANT_ATTRIBUTE = "octo.tenant.id";
7
+ export declare const DASH0_TENANT_ATTRIBUTE = "octo.tenant.id";
6
8
  /** The subset of `@dash0/sdk-web` this adapter uses; replaceable in tests. */
7
- interface Dash0IdentityApi {
8
- identify(id?: string, opts?: {
9
- name?: string;
10
- email?: string;
11
- }): void;
12
- addSignalAttribute(name: string, value: string): void;
13
- removeSignalAttribute(name: string): void;
9
+ export interface Dash0IdentityApi {
10
+ identify(id?: string, opts?: {
11
+ name?: string;
12
+ email?: string;
13
+ }): void;
14
+ addSignalAttribute(name: string, value: string): void;
15
+ removeSignalAttribute(name: string): void;
14
16
  }
15
17
  /**
16
18
  * Maps the session identity onto Dash0 signal attributes: `user.id` (sub), `user.name`, `user.email`
17
19
  * (via `identify`) and `octo.tenant.id`. `clear` removes all four. When the Dash0 SDK was not initialised
18
20
  * in this environment, the SDK calls only touch its internal attribute list and nothing is transmitted.
19
21
  */
20
- declare function createDash0SessionIdentitySink(api?: Dash0IdentityApi): SessionIdentitySink;
22
+ export declare function createDash0SessionIdentitySink(api?: Dash0IdentityApi): SessionIdentitySink;
21
23
  /**
22
24
  * Opt-in: tells Dash0 browser monitoring who is signed in and on which tenant.
23
25
  *
@@ -29,7 +31,4 @@ declare function createDash0SessionIdentitySink(api?: Dash0IdentityApi): Session
29
31
  *
30
32
  * Name and e-mail are personal data sent to Dash0; see the shared-auth README.
31
33
  */
32
- declare function provideDash0SessionIdentity(): EnvironmentProviders;
33
-
34
- export { DASH0_TENANT_ATTRIBUTE, createDash0SessionIdentitySink, provideDash0SessionIdentity };
35
- export type { Dash0IdentityApi };
34
+ export declare function provideDash0SessionIdentity(): EnvironmentProviders;
@@ -1,44 +1,51 @@
1
- import * as i0 from '@angular/core';
2
- import { OnInit, Signal, EventEmitter } from '@angular/core';
3
- import { AuthorizeService } from '@meshmakers/shared-auth';
4
-
5
- declare class LoginAppBarSectionComponent implements OnInit {
6
- protected readonly authorizeService: AuthorizeService;
7
- private readonly _register;
8
- private _showRegister;
9
- private _showPopup;
10
- /**
11
- * Computed signal for the user's display name.
12
- */
13
- protected readonly userName: Signal<string | null>;
14
- /**
15
- * Computed signal for the user's display name.
16
- * Delegates to AuthorizeService which handles cross-tenant username derivation.
17
- */
18
- protected readonly fullName: Signal<string | null>;
19
- /**
20
- * Computed signal for the profile management URI.
21
- * Uses the tenant_id from the access token to build the correct URL.
22
- */
23
- protected readonly profileUri: Signal<string | null>;
24
- private anchor;
25
- private popup;
26
- constructor();
27
- ngOnInit(): void;
28
- get register(): EventEmitter<void>;
29
- get showPopup(): boolean;
30
- set showPopup(value: boolean);
31
- get showRegister(): boolean;
32
- set showRegister(value: boolean);
33
- keydown(event: KeyboardEvent): void;
34
- documentClick(event: MouseEvent): void;
35
- private contains;
36
- onToggle(show?: boolean): void;
37
- protected onLogin(): void;
38
- protected onLogout(): void;
39
- protected onRegister(): void;
40
- static ɵfac: i0.ɵɵFactoryDeclaration<LoginAppBarSectionComponent, never>;
41
- static ɵcmp: i0.ɵɵComponentDeclaration<LoginAppBarSectionComponent, "mm-login-app-bar-section", never, { "showRegister": { "alias": "showRegister"; "required": false; }; }, { "register": "register"; }, never, never, true, never>;
42
- }
43
-
44
- export { LoginAppBarSectionComponent };
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ import * as i0 from "@angular/core";
5
+ import { EventEmitter, OnInit, Signal } from "@angular/core";
6
+ import { AuthorizeService } from "@meshmakers/shared-auth";
7
+ export declare class LoginAppBarSectionComponent implements OnInit {
8
+ protected readonly authorizeService: AuthorizeService;
9
+ private readonly _register;
10
+ private _showRegister;
11
+ private _showPopup;
12
+ /**
13
+ * Computed signal for the user's display name.
14
+ */
15
+ protected readonly userName: Signal<string | null>;
16
+ /**
17
+ * Computed signal for the user's display name.
18
+ * Delegates to AuthorizeService which handles cross-tenant username derivation.
19
+ */
20
+ protected readonly fullName: Signal<string | null>;
21
+ /**
22
+ * Computed signal for the profile management URI.
23
+ * Uses the tenant_id from the access token to build the correct URL.
24
+ */
25
+ protected readonly profileUri: Signal<string | null>;
26
+ private anchor;
27
+ private popup;
28
+ constructor();
29
+ ngOnInit(): void;
30
+ get register(): EventEmitter<void>;
31
+ get showPopup(): boolean;
32
+ set showPopup(value: boolean);
33
+ get showRegister(): boolean;
34
+ set showRegister(value: boolean);
35
+ keydown(event: KeyboardEvent): void;
36
+ documentClick(event: MouseEvent): void;
37
+ private contains;
38
+ onToggle(show?: boolean): void;
39
+ protected onLogin(): void;
40
+ protected onLogout(): void;
41
+ protected onRegister(): void;
42
+ static ɵfac: i0.ɵɵFactoryDeclaration<LoginAppBarSectionComponent, never>;
43
+ static ɵcmp: i0.ɵɵComponentDeclaration<LoginAppBarSectionComponent, "mm-login-app-bar-section", never, {
44
+ "showRegister": {
45
+ "alias": "showRegister";
46
+ "required": false;
47
+ };
48
+ }, {
49
+ "register": "register";
50
+ }, never, never, true, never>;
51
+ }