@sneat/auth-ui 0.27.50 → 0.27.51
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/esm2022/lib/pages/login-page/auth-panel.component.js +38 -8
- package/esm2022/lib/pages/login-page/auth-panel.component.js.map +1 -1
- package/esm2022/lib/pages/login-page/login-with-telegram.component.js +49 -4
- package/esm2022/lib/pages/login-page/login-with-telegram.component.js.map +1 -1
- package/esm2022/lib/pages/login-page/sign-in-failure-notice.component.js +109 -0
- package/esm2022/lib/pages/login-page/sign-in-failure-notice.component.js.map +1 -0
- package/lib/pages/login-page/auth-panel.component.d.ts +7 -1
- package/lib/pages/login-page/login-with-telegram.component.d.ts +9 -0
- package/lib/pages/login-page/sign-in-failure-notice.component.d.ts +15 -0
- package/package.json +1 -1
- package/tsconfig.lib.prod.tsbuildinfo +1 -1
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { ITelegramOIDCNonce, SneatAuthWithTelegramService } from './sneat-auth-with-telegram.service';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* A request that got no HTTP response at all: blocked by CORS, offline, or
|
|
6
|
+
* DNS. Angular reports these as status 0; fetch rejects with a TypeError
|
|
7
|
+
* whose message is browser-specific. Any other TypeError is a bug, not a
|
|
8
|
+
* network failure, and keeps the legacy-widget fallback.
|
|
9
|
+
*/
|
|
10
|
+
export declare function isNetworkError(err: unknown): boolean;
|
|
4
11
|
/**
|
|
5
12
|
* Telegram login button. Bots with OpenID login configured server-side use
|
|
6
13
|
* Telegram's OpenID popup (telegram-login.js); others keep the legacy Login
|
|
@@ -25,6 +32,8 @@ export declare class LoginWithTelegramComponent implements OnInit {
|
|
|
25
32
|
readonly size: import("@angular/core").InputSignal<"medium" | "small" | "large">;
|
|
26
33
|
readonly requestAccess: import("@angular/core").InputSignal<"write" | "read">;
|
|
27
34
|
readonly userPic: import("@angular/core").InputSignal<boolean>;
|
|
35
|
+
/** Set when the nonce request never reached the server (CORS, offline). */
|
|
36
|
+
protected readonly unreachable: import("@angular/core").WritableSignal<boolean>;
|
|
28
37
|
/** Set once the OpenID popup can be offered: Client ID plus a live nonce. */
|
|
29
38
|
protected readonly oidc: import("@angular/core").WritableSignal<ITelegramOIDCNonce | undefined>;
|
|
30
39
|
ngOnInit(): void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ISignInFailure } from '@sneat/auth-core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Explains why the user is still on the sign-in form: a short summary, what
|
|
5
|
+
* to try, and the technical details support needs. Non-blocking — the sign-in
|
|
6
|
+
* methods stay usable below it.
|
|
7
|
+
*/
|
|
8
|
+
export declare class SignInFailureNoticeComponent {
|
|
9
|
+
readonly failure: import("@angular/core").InputSignal<ISignInFailure | undefined>;
|
|
10
|
+
readonly canRetry: import("@angular/core").InputSignal<boolean>;
|
|
11
|
+
readonly retry: import("@angular/core").OutputEmitterRef<void>;
|
|
12
|
+
readonly dismiss: import("@angular/core").OutputEmitterRef<void>;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SignInFailureNoticeComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SignInFailureNoticeComponent, "sneat-sign-in-failure-notice", never, { "failure": { "alias": "failure"; "required": false; "isSignal": true; }; "canRetry": { "alias": "canRetry"; "required": false; "isSignal": true; }; }, { "retry": "retry"; "dismiss": "dismiss"; }, never, never, true, never>;
|
|
15
|
+
}
|