@atlasauth/angular 0.7.0 → 0.8.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 +12 -0
- package/dist/esm2022/lib/atlas.service.mjs +8 -4
- package/dist/esm2022/lib/components/attempt-flow.component.mjs +16 -2
- package/dist/esm2022/lib/components/flow-controller.mjs +13 -6
- package/dist/esm2022/lib/components/sign-in.component.mjs +43 -3
- package/dist/esm2022/lib/components/sign-up.component.mjs +4 -2
- package/dist/esm2022/lib/i18n.mjs +3 -1
- package/dist/esm2022/lib/version.mjs +2 -2
- package/dist/fesm2022/atlasauth-angular.mjs +81 -13
- package/dist/fesm2022/atlasauth-angular.mjs.map +1 -1
- package/dist/lib/atlas.service.d.ts +2 -1
- package/dist/lib/components/attempt-flow.component.d.ts +4 -2
- package/dist/lib/components/flow-controller.d.ts +1 -1
- package/dist/lib/components/sign-in.component.d.ts +9 -1
- package/dist/lib/version.d.ts +1 -1
- package/package.json +2 -2
|
@@ -166,7 +166,8 @@ export declare class AtlasService implements OnDestroy {
|
|
|
166
166
|
*/
|
|
167
167
|
setActiveOrganization(organizationId: string | null): Promise<void>;
|
|
168
168
|
/** Re-read `/v1/client`: refresh user, session, memberships and status. */
|
|
169
|
-
|
|
169
|
+
/** Re-boot from the Frontend API. Resolves true when a session now exists in this browser. */
|
|
170
|
+
reload(): Promise<boolean>;
|
|
170
171
|
/**
|
|
171
172
|
* §6.3 step 3: complete a redirect-based sign-in, then boot. An OAuth or
|
|
172
173
|
* hosted-page flow lands back with a one-time ticket in the URL; exchange it
|
|
@@ -9,7 +9,7 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
* minor. For a `message` row, `labelKey` carries the message's i18n key.
|
|
10
10
|
*/
|
|
11
11
|
interface StepField {
|
|
12
|
-
kind: 'input' | 'message';
|
|
12
|
+
kind: 'input' | 'message' | 'alert';
|
|
13
13
|
name: string;
|
|
14
14
|
labelKey: string;
|
|
15
15
|
type: string;
|
|
@@ -29,6 +29,8 @@ export declare class AttemptFlowComponent {
|
|
|
29
29
|
attempt: AttemptView | null;
|
|
30
30
|
busy: boolean;
|
|
31
31
|
errors: FieldError[];
|
|
32
|
+
/** `FlowState.sessionKept`: whether this browser kept the session the sign-in created. */
|
|
33
|
+
sessionKept: boolean | undefined;
|
|
32
34
|
titleKey: string;
|
|
33
35
|
/**
|
|
34
36
|
* The sign-in captcha, drawn above the submit button on the identifier step
|
|
@@ -67,6 +69,6 @@ export declare class AttemptFlowComponent {
|
|
|
67
69
|
protected showSubmit(): boolean;
|
|
68
70
|
protected fields(): StepField[];
|
|
69
71
|
static ɵfac: i0.ɵɵFactoryDeclaration<AttemptFlowComponent, never>;
|
|
70
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AttemptFlowComponent, "atlas-attempt-flow", never, { "attempt": { "alias": "attempt"; "required": false; }; "busy": { "alias": "busy"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; "titleKey": { "alias": "titleKey"; "required": false; }; "captcha": { "alias": "captcha"; "required": false; }; "firstFactors": { "alias": "firstFactors"; "required": false; }; "preparedFactor": { "alias": "preparedFactor"; "required": false; }; }, { "submitFlow": "submitFlow"; "chooseFactor": "chooseFactor"; }, never, never, true, never>;
|
|
72
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AttemptFlowComponent, "atlas-attempt-flow", never, { "attempt": { "alias": "attempt"; "required": false; }; "busy": { "alias": "busy"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; "sessionKept": { "alias": "sessionKept"; "required": false; }; "titleKey": { "alias": "titleKey"; "required": false; }; "captcha": { "alias": "captcha"; "required": false; }; "firstFactors": { "alias": "firstFactors"; "required": false; }; "preparedFactor": { "alias": "preparedFactor"; "required": false; }; }, { "submitFlow": "submitFlow"; "chooseFactor": "chooseFactor"; }, never, never, true, never>;
|
|
71
73
|
}
|
|
72
74
|
export {};
|
|
@@ -42,7 +42,7 @@ export declare class AtlasFlowController {
|
|
|
42
42
|
readonly preparedFactor: WritableSignal<"email_code">;
|
|
43
43
|
private pollTimer;
|
|
44
44
|
private identifier;
|
|
45
|
-
constructor(client: FapiClient, reload: () => Promise<
|
|
45
|
+
constructor(client: FapiClient, reload: () => Promise<boolean>, pending: {
|
|
46
46
|
id: string;
|
|
47
47
|
status: string;
|
|
48
48
|
} | null,
|
|
@@ -15,9 +15,17 @@ export declare class SignInComponent implements OnInit, OnDestroy {
|
|
|
15
15
|
private readonly atlas;
|
|
16
16
|
/** Where to send the user once the flow completes. Reserved for host routing. */
|
|
17
17
|
afterUrl?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Where "No account? Sign up" goes. Default: the instance's hosted sign-up
|
|
20
|
+
* page (carrying the visitor's referral). `null` hides it. Always shown, never
|
|
21
|
+
* only after a failed sign-in, so it says nothing about whether an email has an account.
|
|
22
|
+
*/
|
|
23
|
+
signUpUrl?: string | null;
|
|
24
|
+
protected t(key: string): string;
|
|
25
|
+
protected signUpHref(): string | null;
|
|
18
26
|
protected readonly flow: AtlasFlowController;
|
|
19
27
|
ngOnInit(): void;
|
|
20
28
|
ngOnDestroy(): void;
|
|
21
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<SignInComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SignInComponent, "atlas-sign-in", never, { "afterUrl": { "alias": "afterUrl"; "required": false; }; }, {}, never, never, true, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SignInComponent, "atlas-sign-in", never, { "afterUrl": { "alias": "afterUrl"; "required": false; }; "signUpUrl": { "alias": "signUpUrl"; "required": false; }; }, {}, never, never, true, never>;
|
|
23
31
|
}
|
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.8.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.8.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,7 +20,7 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"tslib": "^2.6.3",
|
|
22
22
|
"@atlasauth/design": "0.2.0",
|
|
23
|
-
"@atlasauth/js": "0.
|
|
23
|
+
"@atlasauth/js": "0.15.0",
|
|
24
24
|
"@atlasauth/authz": "0.1.1"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|