@atlasauth/angular 0.8.0 → 0.10.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.
Files changed (41) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/esm2022/lib/appearance.mjs +1 -1
  3. package/dist/esm2022/lib/atlas.service.mjs +40 -3
  4. package/dist/esm2022/lib/atlas.ui.mjs +7 -1
  5. package/dist/esm2022/lib/components/attempt-flow.component.mjs +419 -11
  6. package/dist/esm2022/lib/components/flow-controller.mjs +132 -2
  7. package/dist/esm2022/lib/components/impersonation-banner.component.mjs +75 -0
  8. package/dist/esm2022/lib/components/organization-audit-log.component.mjs +115 -0
  9. package/dist/esm2022/lib/components/organization-audit-log.mjs +40 -0
  10. package/dist/esm2022/lib/components/organization-profile.component.mjs +602 -27
  11. package/dist/esm2022/lib/components/policy-host.mjs +254 -0
  12. package/dist/esm2022/lib/components/recovery-codes.component.mjs +122 -0
  13. package/dist/esm2022/lib/components/sign-in.component.mjs +47 -4
  14. package/dist/esm2022/lib/components/sign-up-form.component.mjs +136 -10
  15. package/dist/esm2022/lib/components/sign-up.component.mjs +86 -8
  16. package/dist/esm2022/lib/i18n.mjs +61 -1
  17. package/dist/esm2022/lib/provide-atlas.mjs +4 -2
  18. package/dist/esm2022/lib/types.mjs +1 -1
  19. package/dist/esm2022/lib/version.mjs +2 -2
  20. package/dist/esm2022/public-api.mjs +6 -1
  21. package/dist/fesm2022/atlasauth-angular.mjs +2129 -95
  22. package/dist/fesm2022/atlasauth-angular.mjs.map +1 -1
  23. package/dist/lib/appearance.d.ts +1 -1
  24. package/dist/lib/atlas.service.d.ts +23 -1
  25. package/dist/lib/atlas.ui.d.ts +3 -1
  26. package/dist/lib/components/attempt-flow.component.d.ts +61 -2
  27. package/dist/lib/components/flow-controller.d.ts +73 -1
  28. package/dist/lib/components/impersonation-banner.component.d.ts +27 -0
  29. package/dist/lib/components/organization-audit-log.component.d.ts +34 -0
  30. package/dist/lib/components/organization-audit-log.d.ts +25 -0
  31. package/dist/lib/components/organization-profile.component.d.ts +55 -6
  32. package/dist/lib/components/policy-host.d.ts +88 -0
  33. package/dist/lib/components/recovery-codes.component.d.ts +26 -0
  34. package/dist/lib/components/sign-in.component.d.ts +2 -0
  35. package/dist/lib/components/sign-up-form.component.d.ts +22 -4
  36. package/dist/lib/components/sign-up.component.d.ts +13 -0
  37. package/dist/lib/provide-atlas.d.ts +3 -1
  38. package/dist/lib/types.d.ts +6 -0
  39. package/dist/lib/version.d.ts +1 -1
  40. package/dist/public-api.d.ts +5 -0
  41. package/package.json +3 -3
@@ -1,4 +1,6 @@
1
1
  import { OnDestroy, OnInit } from '@angular/core';
2
+ import { type FieldError } from '@atlasauth/js';
3
+ import { type ElementKey } from '../appearance';
2
4
  import { AtlasFlowController } from './flow-controller';
3
5
  import * as i0 from "@angular/core";
4
6
  /**
@@ -18,6 +20,17 @@ export declare class SignUpComponent implements OnInit, OnDestroy {
18
20
  /** Where to send the user once the flow completes. Reserved for host routing. */
19
21
  afterUrl?: string;
20
22
  protected readonly flow: AtlasFlowController;
23
+ /** Password or passkey-only sign-up (the latter when the instance offers it). */
24
+ protected readonly mode: import("@angular/core").WritableSignal<"password" | "passkey">;
25
+ protected canPasskey(): boolean;
26
+ protected passkeyForm(): {
27
+ email: 'off' | 'optional' | 'required';
28
+ } | null;
29
+ protected toggleMode(): void;
30
+ protected awaitingPasskey(): boolean;
31
+ protected t(key: string): string;
32
+ protected cls(key: ElementKey, base: string): string;
33
+ protected errorText(error: FieldError): string;
21
34
  ngOnInit(): void;
22
35
  ngOnDestroy(): void;
23
36
  static ɵfac: i0.ɵɵFactoryDeclaration<SignUpComponent, never>;
@@ -13,6 +13,8 @@ import * as i9 from "./components/user-button.component";
13
13
  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
+ import * as i13 from "./components/organization-audit-log.component";
17
+ import * as i14 from "./components/policy-host";
16
18
  /**
17
19
  * Standalone-provider entry point (Angular 17+). Register Atlas once at the
18
20
  * application root — the direct analogue of wrapping the tree in React's
@@ -41,6 +43,6 @@ export declare function provideAtlas(options: AtlasOptions): EnvironmentProvider
41
43
  export declare class AtlasModule {
42
44
  static forRoot(options: AtlasOptions): ModuleWithProviders<AtlasModule>;
43
45
  static ɵfac: i0.ɵɵFactoryDeclaration<AtlasModule, never>;
44
- 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 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]>;
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]>;
45
47
  static ɵinj: i0.ɵɵInjectorDeclaration<AtlasModule>;
46
48
  }
@@ -43,6 +43,12 @@ export interface AtlasSession {
43
43
  id: string;
44
44
  status: string;
45
45
  last_active_organization_id: string | null;
46
+ /** On an impersonation session: who is acting (the token's `act` claim). */
47
+ actor?: {
48
+ sub: string;
49
+ } | null;
50
+ /** On an impersonation session: the impersonator's own session that "return to admin" resumes, or null. */
51
+ actor_session_id?: string | null;
46
52
  }
47
53
  /** The three-state auth lifecycle, identical to the React provider's. */
48
54
  export type AuthStatus = 'loading' | 'signed_in' | 'signed_out';
@@ -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.8.0";
3
+ export declare const ATLAS_ANGULAR_VERSION = "0.9.0";
4
4
  export declare const ATLAS_ANGULAR_SDK: AtlasSdkInfo;
@@ -17,9 +17,14 @@ 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 { OrganizationAuditLogComponent } from './lib/components/organization-audit-log.component';
21
+ export { AtlasOrganizationAuditLog } from './lib/components/organization-audit-log';
22
+ export type { OrganizationAuditLogEntry, OrganizationAuditLogState, OrganizationAuditLogOptions } from '@atlasauth/js';
23
+ export { ImpersonationBannerComponent } from './lib/components/impersonation-banner.component';
20
24
  export { AttemptFlowComponent } from './lib/components/attempt-flow.component';
21
25
  export { SignUpFormComponent, type SignUpFormSubmit, } from './lib/components/sign-up-form.component';
22
26
  export { AtlasCaptchaSlotDirective } from './lib/directives/captcha-slot.directive';
27
+ export { AtlasPoliciesDirective, PolicyAcceptStepComponent, PolicyGateComponent } from './lib/components/policy-host';
23
28
  export { AtlasFlowController } from './lib/components/flow-controller';
24
29
  export { ATLAS_UI } from './lib/atlas.ui';
25
30
  export { atlasGuard, atlasChildGuard, type AtlasGuardOptions, } from './lib/guards/atlas.guard';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlasauth/angular",
3
- "version": "0.8.0",
3
+ "version": "0.10.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",
22
23
  "@atlasauth/design": "0.2.0",
23
- "@atlasauth/js": "0.15.0",
24
- "@atlasauth/authz": "0.1.1"
24
+ "@atlasauth/authz": "0.2.0"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "@angular/core": ">=17",