@atlasauth/angular 0.10.0 → 0.12.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.
@@ -11,6 +11,7 @@ import { OrganizationSwitcherComponent } from './components/organization-switche
11
11
  import { UserProfileComponent } from './components/user-profile.component';
12
12
  import { OrganizationProfileComponent } from './components/organization-profile.component';
13
13
  import { OrganizationAuditLogComponent } from './components/organization-audit-log.component';
14
+ import { ManageCibaComponent } from './components/manage-ciba.component';
14
15
  import { AtlasPoliciesDirective, PolicyAcceptStepComponent, PolicyGateComponent } from './components/policy-host';
15
16
  /**
16
17
  * Every standalone directive and component the SDK ships. Import the array in a
@@ -21,4 +22,4 @@ import { AtlasPoliciesDirective, PolicyAcceptStepComponent, PolicyGateComponent
21
22
  * @Component({ standalone: true, imports: [...ATLAS_UI], template: '…' })
22
23
  * ```
23
24
  */
24
- export declare const ATLAS_UI: readonly [typeof AtlasSignedInDirective, typeof AtlasSignedOutDirective, typeof AtlasLoadingDirective, typeof AtlasLoadedDirective, typeof AtlasProtectDirective, typeof AtlasRootDirective, typeof SignInComponent, typeof SignUpComponent, typeof UserButtonComponent, typeof OrganizationSwitcherComponent, typeof UserProfileComponent, typeof OrganizationProfileComponent, typeof OrganizationAuditLogComponent, typeof AtlasPoliciesDirective, typeof PolicyAcceptStepComponent, typeof PolicyGateComponent];
25
+ export declare const ATLAS_UI: readonly [typeof AtlasSignedInDirective, typeof AtlasSignedOutDirective, typeof AtlasLoadingDirective, typeof AtlasLoadedDirective, typeof AtlasProtectDirective, typeof AtlasRootDirective, typeof SignInComponent, typeof SignUpComponent, typeof UserButtonComponent, typeof OrganizationSwitcherComponent, typeof UserProfileComponent, typeof OrganizationProfileComponent, typeof OrganizationAuditLogComponent, typeof ManageCibaComponent, typeof AtlasPoliciesDirective, typeof PolicyAcceptStepComponent, typeof PolicyGateComponent];
@@ -0,0 +1,28 @@
1
+ import { type OnInit } from '@angular/core';
2
+ import { type CibaPinStatus, type CibaRequest } from '@atlasauth/js';
3
+ import { AtlasService } from '../atlas.service';
4
+ import { type ElementKey } from '../appearance';
5
+ import * as i0 from "@angular/core";
6
+ /**
7
+ * `<atlas-manage-ciba>` — sign-in requests apps start on the user's behalf (CIBA), with approve and deny, and
8
+ * the optional CIBA PIN apps must send as the user code. The Angular peer of React's `<ManageCiba/>`. Renders
9
+ * nothing when there is no request, no PIN and no app that could ask.
10
+ */
11
+ export declare class ManageCibaComponent implements OnInit {
12
+ protected readonly atlas: AtlasService;
13
+ protected readonly requests: import("@angular/core").WritableSignal<CibaRequest[]>;
14
+ protected readonly pin: import("@angular/core").WritableSignal<CibaPinStatus>;
15
+ protected readonly newPin: import("@angular/core").WritableSignal<string>;
16
+ protected readonly password: import("@angular/core").WritableSignal<string>;
17
+ protected readonly message: import("@angular/core").WritableSignal<string>;
18
+ private readonly client;
19
+ ngOnInit(): void;
20
+ private load;
21
+ private run;
22
+ protected decide(id: string, decision: 'approve' | 'deny'): Promise<void>;
23
+ protected save(event: Event): Promise<void>;
24
+ protected remove(): Promise<void>;
25
+ protected cls(key: ElementKey, base: string): string;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<ManageCibaComponent, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<ManageCibaComponent, "atlas-manage-ciba", never, {}, {}, never, never, true, never>;
28
+ }
@@ -14,7 +14,8 @@ import * as i10 from "./components/organization-switcher.component";
14
14
  import * as i11 from "./components/user-profile.component";
15
15
  import * as i12 from "./components/organization-profile.component";
16
16
  import * as i13 from "./components/organization-audit-log.component";
17
- import * as i14 from "./components/policy-host";
17
+ import * as i14 from "./components/manage-ciba.component";
18
+ import * as i15 from "./components/policy-host";
18
19
  /**
19
20
  * Standalone-provider entry point (Angular 17+). Register Atlas once at the
20
21
  * application root — the direct analogue of wrapping the tree in React's
@@ -43,6 +44,6 @@ export declare function provideAtlas(options: AtlasOptions): EnvironmentProvider
43
44
  export declare class AtlasModule {
44
45
  static forRoot(options: AtlasOptions): ModuleWithProviders<AtlasModule>;
45
46
  static ɵfac: i0.ɵɵFactoryDeclaration<AtlasModule, never>;
46
- static ɵmod: i0.ɵɵNgModuleDeclaration<AtlasModule, never, [typeof i1.AtlasSignedInDirective, typeof i2.AtlasSignedOutDirective, typeof i3.AtlasLoadingDirective, typeof i4.AtlasLoadedDirective, typeof i5.AtlasProtectDirective, typeof i6.AtlasRootDirective, typeof i7.SignInComponent, typeof i8.SignUpComponent, typeof i9.UserButtonComponent, typeof i10.OrganizationSwitcherComponent, typeof i11.UserProfileComponent, typeof i12.OrganizationProfileComponent, typeof i13.OrganizationAuditLogComponent, typeof i14.AtlasPoliciesDirective, typeof i14.PolicyAcceptStepComponent, typeof i14.PolicyGateComponent], [typeof i1.AtlasSignedInDirective, typeof i2.AtlasSignedOutDirective, typeof i3.AtlasLoadingDirective, typeof i4.AtlasLoadedDirective, typeof i5.AtlasProtectDirective, typeof i6.AtlasRootDirective, typeof i7.SignInComponent, typeof i8.SignUpComponent, typeof i9.UserButtonComponent, typeof i10.OrganizationSwitcherComponent, typeof i11.UserProfileComponent, typeof i12.OrganizationProfileComponent, typeof i13.OrganizationAuditLogComponent, typeof i14.AtlasPoliciesDirective, typeof i14.PolicyAcceptStepComponent, typeof i14.PolicyGateComponent]>;
47
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AtlasModule, never, [typeof i1.AtlasSignedInDirective, typeof i2.AtlasSignedOutDirective, typeof i3.AtlasLoadingDirective, typeof i4.AtlasLoadedDirective, typeof i5.AtlasProtectDirective, typeof i6.AtlasRootDirective, typeof i7.SignInComponent, typeof i8.SignUpComponent, typeof i9.UserButtonComponent, typeof i10.OrganizationSwitcherComponent, typeof i11.UserProfileComponent, typeof i12.OrganizationProfileComponent, typeof i13.OrganizationAuditLogComponent, typeof i14.ManageCibaComponent, typeof i15.AtlasPoliciesDirective, typeof i15.PolicyAcceptStepComponent, typeof i15.PolicyGateComponent], [typeof i1.AtlasSignedInDirective, typeof i2.AtlasSignedOutDirective, typeof i3.AtlasLoadingDirective, typeof i4.AtlasLoadedDirective, typeof i5.AtlasProtectDirective, typeof i6.AtlasRootDirective, typeof i7.SignInComponent, typeof i8.SignUpComponent, typeof i9.UserButtonComponent, typeof i10.OrganizationSwitcherComponent, typeof i11.UserProfileComponent, typeof i12.OrganizationProfileComponent, typeof i13.OrganizationAuditLogComponent, typeof i14.ManageCibaComponent, typeof i15.AtlasPoliciesDirective, typeof i15.PolicyAcceptStepComponent, typeof i15.PolicyGateComponent]>;
47
48
  static ɵinj: i0.ɵɵInjectorDeclaration<AtlasModule>;
48
49
  }
@@ -1,4 +1,4 @@
1
1
  import type { AtlasSdkInfo } from '@atlasauth/js';
2
2
  /** This package's version, sent as `X-Atlas-SDK` (kept in step with package.json by a test). */
3
- export declare const ATLAS_ANGULAR_VERSION = "0.9.0";
3
+ export declare const ATLAS_ANGULAR_VERSION = "0.11.0";
4
4
  export declare const ATLAS_ANGULAR_SDK: AtlasSdkInfo;
@@ -17,6 +17,7 @@ export { UserButtonComponent } from './lib/components/user-button.component';
17
17
  export { OrganizationSwitcherComponent } from './lib/components/organization-switcher.component';
18
18
  export { UserProfileComponent } from './lib/components/user-profile.component';
19
19
  export { OrganizationProfileComponent } from './lib/components/organization-profile.component';
20
+ export { ManageCibaComponent } from './lib/components/manage-ciba.component';
20
21
  export { OrganizationAuditLogComponent } from './lib/components/organization-audit-log.component';
21
22
  export { AtlasOrganizationAuditLog } from './lib/components/organization-audit-log';
22
23
  export type { OrganizationAuditLogEntry, OrganizationAuditLogState, OrganizationAuditLogOptions } from '@atlasauth/js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlasauth/angular",
3
- "version": "0.10.0",
3
+ "version": "0.12.0",
4
4
  "description": "Official Angular SDK for Atlas — the Angular peer of @atlasauth/react.",
5
5
  "license": "MIT",
6
6
  "module": "./dist/fesm2022/atlas-angular.mjs",
@@ -19,9 +19,9 @@
19
19
  "sideEffects": false,
20
20
  "dependencies": {
21
21
  "tslib": "^2.6.3",
22
- "@atlasauth/js": "0.19.0",
23
- "@atlasauth/design": "0.2.0",
24
- "@atlasauth/authz": "0.2.0"
22
+ "@atlasauth/design": "0.3.0",
23
+ "@atlasauth/js": "0.26.1",
24
+ "@atlasauth/authz": "0.3.0"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "@angular/core": ">=17",
@@ -64,7 +64,7 @@
64
64
  },
65
65
  "scripts": {
66
66
  "build": "ng-packagr -p ng-package.json",
67
- "typecheck": "tsc -p tsconfig.json --noEmit",
67
+ "typecheck": "tsgo -p tsconfig.json --noEmit --incremental --tsBuildInfoFile node_modules/.cache/typecheck.tsbuildinfo",
68
68
  "test": "vitest run"
69
69
  }
70
70
  }