@atlasauth/angular 0.12.0 → 0.13.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/CHANGELOG.md +4 -0
- package/dist/esm2022/lib/components/attempt-flow.component.mjs +5 -2
- package/dist/esm2022/lib/components/flow-controller.mjs +37 -2
- package/dist/esm2022/lib/components/sign-in.component.mjs +58 -5
- package/dist/esm2022/lib/i18n.mjs +4 -1
- package/dist/esm2022/lib/version.mjs +2 -2
- package/dist/fesm2022/atlasauth-angular.mjs +99 -5
- package/dist/fesm2022/atlasauth-angular.mjs.map +1 -1
- package/dist/lib/components/attempt-flow.component.d.ts +1 -0
- package/dist/lib/components/flow-controller.d.ts +17 -1
- package/dist/lib/components/sign-in.component.d.ts +5 -0
- package/dist/lib/version.d.ts +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WritableSignal } from '@angular/core';
|
|
2
|
-
import { FapiClient, PolicyAcceptanceController, type CaptchaController, type FlowState, type InstanceSettings, type MfaChoices, type MfaEnrollmentController, type MfaEnrollmentState } from '@atlasauth/js';
|
|
2
|
+
import { FapiClient, PolicyAcceptanceController, type CaptchaController, type FlowState, type InstanceSettings, type MfaChoices, type MfaEnrollmentController, type MfaEnrollmentState, type PasskeySignInController } from '@atlasauth/js';
|
|
3
3
|
/**
|
|
4
4
|
* The server-driven sign-in / sign-up engine, shared by `<atlas-sign-in>` and
|
|
5
5
|
* `<atlas-sign-up>` — the Angular counterpart of React's `useFlow` hook.
|
|
@@ -73,6 +73,13 @@ export declare class AtlasFlowController {
|
|
|
73
73
|
* {@link create} sends their acceptances and reloads them after a refusal.
|
|
74
74
|
*/
|
|
75
75
|
readonly policies: PolicyAcceptanceController;
|
|
76
|
+
/**
|
|
77
|
+
* Passkey sign-in (the "Sign in with a passkey" button and passkey autofill on
|
|
78
|
+
* the identifier field). The outcome goes through the same completion as every sign-in.
|
|
79
|
+
*/
|
|
80
|
+
readonly passkey: PasskeySignInController;
|
|
81
|
+
/** Whether this browser can run WebAuthn; `<atlas-sign-in>` sets it after it is created in a browser. */
|
|
82
|
+
readonly passkeySupported: WritableSignal<boolean>;
|
|
76
83
|
private pollTimer;
|
|
77
84
|
private identifier;
|
|
78
85
|
constructor(client: FapiClient, reload: () => Promise<boolean>, pending: {
|
|
@@ -81,6 +88,15 @@ export declare class AtlasFlowController {
|
|
|
81
88
|
} | null,
|
|
82
89
|
/** Resolves the captcha messages' catalog keys. Defaults to en-US. */
|
|
83
90
|
t?: (key: string) => string);
|
|
91
|
+
/** Why "Continue with Atlas" could not start (the server's message); null otherwise. */
|
|
92
|
+
readonly signInWithAtlasError: WritableSignal<string>;
|
|
93
|
+
/**
|
|
94
|
+
* "Continue with Atlas" (when `settings().signInWithAtlas` is set): starts the
|
|
95
|
+
* SSO sign-in and sends the browser to Atlas.
|
|
96
|
+
*/
|
|
97
|
+
signInWithAtlas(connectionId: string): Promise<void>;
|
|
98
|
+
/** "Sign in with a passkey" is offered: the first step, the instance turned passkey sign-in on, and the browser can. */
|
|
99
|
+
passkeyOffered(): boolean;
|
|
84
100
|
/** What the app lets the MFA steps offer (from {@link settings}). */
|
|
85
101
|
mfaChoices(): MfaChoices;
|
|
86
102
|
/** Start the enrolment step for its attempt, or reset it once the flow leaves. */
|
|
@@ -24,8 +24,13 @@ export declare class SignInComponent implements OnInit, OnDestroy {
|
|
|
24
24
|
protected t(key: string): string;
|
|
25
25
|
/** "Last used: Password" on the identifier step, when the instance shows the hint. */
|
|
26
26
|
protected lastUsedLabel(): string | null;
|
|
27
|
+
/** The "Sign in with Atlas" connection, on the first step, when the instance has it on. */
|
|
28
|
+
protected atlasConnection(): string | null;
|
|
27
29
|
protected signUpHref(): string | null;
|
|
28
30
|
protected readonly flow: AtlasFlowController;
|
|
31
|
+
private readonly passkeyOffered;
|
|
32
|
+
protected readonly passkeyAutofill: import("@angular/core").EffectRef;
|
|
33
|
+
protected submitIdentifier(values: Record<string, string>): void;
|
|
29
34
|
ngOnInit(): void;
|
|
30
35
|
ngOnDestroy(): void;
|
|
31
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<SignInComponent, never>;
|
package/dist/lib/version.d.ts
CHANGED
|
@@ -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.
|
|
3
|
+
export declare const ATLAS_ANGULAR_VERSION = "0.13.0";
|
|
4
4
|
export declare const ATLAS_ANGULAR_SDK: AtlasSdkInfo;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlasauth/angular",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.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",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"tslib": "^2.6.3",
|
|
22
22
|
"@atlasauth/design": "0.3.0",
|
|
23
|
-
"@atlasauth/
|
|
24
|
-
"@atlasauth/
|
|
23
|
+
"@atlasauth/authz": "0.3.0",
|
|
24
|
+
"@atlasauth/js": "0.27.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"@angular/core": ">=17",
|