@alepha/ui 0.12.1 → 0.13.1
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/dist/admin/{AdminFiles-CllAxb1B.js → AdminFiles-BjofP3OC.js} +11 -11
- package/dist/admin/AdminFiles-BjofP3OC.js.map +1 -0
- package/dist/admin/AdminFiles-DldZB7oo.js +3 -0
- package/dist/admin/AdminJobs-BOq6AZOW.js +3 -0
- package/dist/admin/{AdminJobs-BXkFtlVo.js → AdminJobs-CDnVxEv6.js} +11 -11
- package/dist/admin/AdminJobs-CDnVxEv6.js.map +1 -0
- package/dist/admin/AdminLayout-Bgx25J8m.js +3 -0
- package/dist/admin/{AdminLayout-CtkVYk-u.js → AdminLayout-CervL8LV.js} +6 -6
- package/dist/admin/AdminLayout-CervL8LV.js.map +1 -0
- package/dist/admin/AdminNotifications-BDQXt3-e.js +3 -0
- package/dist/admin/{AdminNotifications-DnnulNNV.js → AdminNotifications-DvI2989x.js} +6 -6
- package/dist/admin/AdminNotifications-DvI2989x.js.map +1 -0
- package/dist/admin/{AdminParameters-B3hvpLpu.js → AdminParameters-CWi7crdn.js} +6 -6
- package/dist/admin/AdminParameters-CWi7crdn.js.map +1 -0
- package/dist/admin/AdminParameters-DKRAVen3.js +3 -0
- package/dist/admin/{AdminSessions-Pjdz-iZx.js → AdminSessions-CmDVneE2.js} +11 -11
- package/dist/admin/AdminSessions-CmDVneE2.js.map +1 -0
- package/dist/admin/AdminSessions-Dkk_fzWK.js +3 -0
- package/dist/admin/{AdminUsers-C1HsrRxn.js → AdminUsers-88De5pev.js} +9 -9
- package/dist/admin/AdminUsers-88De5pev.js.map +1 -0
- package/dist/admin/AdminUsers-oyAXqZ5l.js +3 -0
- package/dist/admin/AdminVerifications-D93TKymL.js +3 -0
- package/dist/admin/{AdminVerifications-VMpm30mS.js → AdminVerifications-DBVEoqJe.js} +6 -6
- package/dist/admin/AdminVerifications-DBVEoqJe.js.map +1 -0
- package/dist/admin/index.d.ts +80 -80
- package/dist/admin/index.js +17 -17
- package/dist/auth/{IconGoogle-Bfmuv9Rv.js → IconGoogle-v_58os2T.js} +1 -1
- package/dist/auth/{IconGoogle-Bfmuv9Rv.js.map → IconGoogle-v_58os2T.js.map} +1 -1
- package/dist/auth/Login-BC2jTczq.js +4 -0
- package/dist/auth/{Login-JeXFsUf5.js → Login-OCrvjs9U.js} +12 -12
- package/dist/auth/Login-OCrvjs9U.js.map +1 -0
- package/dist/auth/Register-Dh0lsQmI.js +4 -0
- package/dist/auth/{Register-CPQnvXCZ.js → Register-Ei34GSba.js} +16 -16
- package/dist/auth/Register-Ei34GSba.js.map +1 -0
- package/dist/auth/ResetPassword-BnlAQAOE.js +3 -0
- package/dist/auth/{ResetPassword-BzUjGG_-.js → ResetPassword-tO0oMzfo.js} +12 -12
- package/dist/auth/ResetPassword-tO0oMzfo.js.map +1 -0
- package/dist/auth/index.d.ts +413 -830
- package/dist/auth/index.js +10 -10
- package/dist/auth/index.js.map +1 -1
- package/dist/core/index.d.ts +92 -92
- package/package.json +6 -9
- package/dist/admin/AdminFiles-BM6_7_5A.cjs +0 -4
- package/dist/admin/AdminFiles-BaCIMeNt.js +0 -4
- package/dist/admin/AdminFiles-CllAxb1B.js.map +0 -1
- package/dist/admin/AdminFiles-DC3T8uWZ.cjs +0 -122
- package/dist/admin/AdminFiles-DC3T8uWZ.cjs.map +0 -1
- package/dist/admin/AdminJobs-BXkFtlVo.js.map +0 -1
- package/dist/admin/AdminJobs-C428qrNQ.cjs +0 -130
- package/dist/admin/AdminJobs-C428qrNQ.cjs.map +0 -1
- package/dist/admin/AdminJobs-DCPPaJ4i.cjs +0 -4
- package/dist/admin/AdminJobs-yC6DarGO.js +0 -4
- package/dist/admin/AdminLayout-Bqo4cd33.cjs +0 -4
- package/dist/admin/AdminLayout-CQpxfko6.js +0 -4
- package/dist/admin/AdminLayout-CiLlywAQ.cjs +0 -93
- package/dist/admin/AdminLayout-CiLlywAQ.cjs.map +0 -1
- package/dist/admin/AdminLayout-CtkVYk-u.js.map +0 -1
- package/dist/admin/AdminNotifications-DNUeJ-PW.cjs +0 -44
- package/dist/admin/AdminNotifications-DNUeJ-PW.cjs.map +0 -1
- package/dist/admin/AdminNotifications-DaMu1AQ4.js +0 -4
- package/dist/admin/AdminNotifications-DnnulNNV.js.map +0 -1
- package/dist/admin/AdminNotifications-ihgbKVCx.cjs +0 -4
- package/dist/admin/AdminParameters-B3hvpLpu.js.map +0 -1
- package/dist/admin/AdminParameters-U4lU1rUF.cjs +0 -4
- package/dist/admin/AdminParameters-gdf7036N.cjs +0 -44
- package/dist/admin/AdminParameters-gdf7036N.cjs.map +0 -1
- package/dist/admin/AdminParameters-prMcCgxf.js +0 -4
- package/dist/admin/AdminSessions-BF_P4lHs.cjs +0 -128
- package/dist/admin/AdminSessions-BF_P4lHs.cjs.map +0 -1
- package/dist/admin/AdminSessions-CATIU61I.cjs +0 -4
- package/dist/admin/AdminSessions-DqOXOpYR.js +0 -4
- package/dist/admin/AdminSessions-Pjdz-iZx.js.map +0 -1
- package/dist/admin/AdminUsers-BgTL-zSY.js +0 -4
- package/dist/admin/AdminUsers-C1HsrRxn.js.map +0 -1
- package/dist/admin/AdminUsers-HqvxwNGZ.cjs +0 -4
- package/dist/admin/AdminUsers-M2uEQbp5.cjs +0 -109
- package/dist/admin/AdminUsers-M2uEQbp5.cjs.map +0 -1
- package/dist/admin/AdminVerifications-BVssbtfU.cjs +0 -44
- package/dist/admin/AdminVerifications-BVssbtfU.cjs.map +0 -1
- package/dist/admin/AdminVerifications-Df6DRgNo.js +0 -4
- package/dist/admin/AdminVerifications-DxAtcYUR.cjs +0 -4
- package/dist/admin/AdminVerifications-VMpm30mS.js.map +0 -1
- package/dist/admin/core-CzO6aavT.js +0 -2507
- package/dist/admin/core-CzO6aavT.js.map +0 -1
- package/dist/admin/core-aFtK4l9I.cjs +0 -2530
- package/dist/admin/core-aFtK4l9I.cjs.map +0 -1
- package/dist/admin/index.cjs +0 -87
- package/dist/admin/index.cjs.map +0 -1
- package/dist/admin/index.d.cts +0 -1739
- package/dist/auth/IconGoogle-B17BTQyD.cjs +0 -69
- package/dist/auth/IconGoogle-B17BTQyD.cjs.map +0 -1
- package/dist/auth/Login-BTBmbnWl.cjs +0 -181
- package/dist/auth/Login-BTBmbnWl.cjs.map +0 -1
- package/dist/auth/Login-BcQOtG3v.js +0 -5
- package/dist/auth/Login-Btmd70Um.cjs +0 -5
- package/dist/auth/Login-JeXFsUf5.js.map +0 -1
- package/dist/auth/Register-CPQnvXCZ.js.map +0 -1
- package/dist/auth/Register-CbesZal3.cjs +0 -5
- package/dist/auth/Register-DpI_JdyO.js +0 -5
- package/dist/auth/Register-HP3rP71B.cjs +0 -323
- package/dist/auth/Register-HP3rP71B.cjs.map +0 -1
- package/dist/auth/ResetPassword-B-tkzV7g.cjs +0 -248
- package/dist/auth/ResetPassword-B-tkzV7g.cjs.map +0 -1
- package/dist/auth/ResetPassword-BlK3xEpU.js +0 -4
- package/dist/auth/ResetPassword-BzUjGG_-.js.map +0 -1
- package/dist/auth/ResetPassword-W3xjOnWy.cjs +0 -4
- package/dist/auth/chunk-DhGyd7sr.js +0 -28
- package/dist/auth/core-D1MHij1j.js +0 -1795
- package/dist/auth/core-D1MHij1j.js.map +0 -1
- package/dist/auth/core-rDZ9d92K.cjs +0 -1824
- package/dist/auth/core-rDZ9d92K.cjs.map +0 -1
- package/dist/auth/index.cjs +0 -211
- package/dist/auth/index.cjs.map +0 -1
- package/dist/auth/index.d.cts +0 -6265
- package/dist/core/index.cjs +0 -2620
- package/dist/core/index.cjs.map +0 -1
- package/dist/core/index.d.cts +0 -2737
package/dist/admin/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as alepha84 from "alepha";
|
|
2
2
|
import { Alepha, AlephaError, Async, Descriptor, FileLike, InstantiableClass, LogLevel, LoggerInterface, Static, StreamLike, TArray, TFile, TObject, TRecord, TSchema, TStream, TString, TVoid } from "alepha";
|
|
3
|
-
import * as
|
|
4
|
-
import { FC, ReactNode } from "react";
|
|
3
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
5
4
|
import { IncomingMessage, Server, ServerResponse } from "node:http";
|
|
6
5
|
import "dayjs/plugin/relativeTime.js";
|
|
7
6
|
import dayjsDuration from "dayjs/plugin/duration.js";
|
|
@@ -13,17 +12,18 @@ import "dayjs/locale/fr.js";
|
|
|
13
12
|
import DayjsApi, { Dayjs, ManipulateType, PluginFunc } from "dayjs";
|
|
14
13
|
import { Readable } from "node:stream";
|
|
15
14
|
import { ReadableStream } from "node:stream/web";
|
|
15
|
+
import { FC, ReactNode } from "react";
|
|
16
16
|
|
|
17
17
|
//#region ../alepha/src/logger/schemas/logEntrySchema.d.ts
|
|
18
|
-
declare const logEntrySchema:
|
|
19
|
-
level:
|
|
20
|
-
message:
|
|
21
|
-
service:
|
|
22
|
-
module:
|
|
23
|
-
context:
|
|
24
|
-
app:
|
|
25
|
-
data:
|
|
26
|
-
timestamp:
|
|
18
|
+
declare const logEntrySchema: alepha84.TObject<{
|
|
19
|
+
level: alepha84.TUnsafe<"TRACE" | "SILENT" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
20
|
+
message: alepha84.TString;
|
|
21
|
+
service: alepha84.TString;
|
|
22
|
+
module: alepha84.TString;
|
|
23
|
+
context: alepha84.TOptional<alepha84.TString>;
|
|
24
|
+
app: alepha84.TOptional<alepha84.TString>;
|
|
25
|
+
data: alepha84.TOptional<alepha84.TAny>;
|
|
26
|
+
timestamp: alepha84.TNumber;
|
|
27
27
|
}>;
|
|
28
28
|
type LogEntry = Static<typeof logEntrySchema>;
|
|
29
29
|
//#endregion
|
|
@@ -38,8 +38,8 @@ declare class DateTimeProvider {
|
|
|
38
38
|
protected readonly timeouts: Timeout[];
|
|
39
39
|
protected readonly intervals: Interval[];
|
|
40
40
|
constructor();
|
|
41
|
-
protected readonly onStart:
|
|
42
|
-
protected readonly onStop:
|
|
41
|
+
protected readonly onStart: alepha84.HookDescriptor<"start">;
|
|
42
|
+
protected readonly onStop: alepha84.HookDescriptor<"stop">;
|
|
43
43
|
setLocale(locale: string): void;
|
|
44
44
|
isDateTime(value: unknown): value is DateTime;
|
|
45
45
|
/**
|
|
@@ -171,7 +171,7 @@ declare class Logger implements LoggerInterface {
|
|
|
171
171
|
}
|
|
172
172
|
//#endregion
|
|
173
173
|
//#region ../alepha/src/logger/index.d.ts
|
|
174
|
-
declare const envSchema$6:
|
|
174
|
+
declare const envSchema$6: alepha84.TObject<{
|
|
175
175
|
/**
|
|
176
176
|
* Default log level for the application.
|
|
177
177
|
*
|
|
@@ -188,14 +188,14 @@ declare const envSchema$6: alepha89.TObject<{
|
|
|
188
188
|
* LOG_LEVEL=my.module.name:debug,info # Set debug level for my.module.name and info for all other modules
|
|
189
189
|
* LOG_LEVEL=alepha:trace, info # Set trace level for all alepha modules and info for all other modules
|
|
190
190
|
*/
|
|
191
|
-
LOG_LEVEL:
|
|
191
|
+
LOG_LEVEL: alepha84.TOptional<alepha84.TString>;
|
|
192
192
|
/**
|
|
193
193
|
* Built-in log formats.
|
|
194
194
|
* - "json" - JSON format, useful for structured logging and log aggregation. {@link JsonFormatterProvider}
|
|
195
195
|
* - "pretty" - Simple text format, human-readable, with colors. {@link SimpleFormatterProvider}
|
|
196
196
|
* - "raw" - Raw format, no formatting, just the message. {@link RawFormatterProvider}
|
|
197
197
|
*/
|
|
198
|
-
LOG_FORMAT:
|
|
198
|
+
LOG_FORMAT: alepha84.TOptional<alepha84.TUnsafe<"json" | "pretty" | "raw">>;
|
|
199
199
|
}>;
|
|
200
200
|
declare module "alepha" {
|
|
201
201
|
interface Env extends Partial<Static<typeof envSchema$6>> {}
|
|
@@ -446,8 +446,8 @@ declare class ServerTimingProvider {
|
|
|
446
446
|
prefix: string;
|
|
447
447
|
disabled: boolean;
|
|
448
448
|
};
|
|
449
|
-
readonly onRequest:
|
|
450
|
-
readonly onResponse:
|
|
449
|
+
readonly onRequest: alepha84.HookDescriptor<"server:onRequest">;
|
|
450
|
+
readonly onResponse: alepha84.HookDescriptor<"server:onResponse">;
|
|
451
451
|
protected get handlerName(): string;
|
|
452
452
|
beginTiming(name: string): void;
|
|
453
453
|
endTiming(name: string): void;
|
|
@@ -511,11 +511,11 @@ declare class ServerProvider {
|
|
|
511
511
|
/**
|
|
512
512
|
* When a Node.js HTTP request is received from outside. (Vercel, AWS Lambda, etc.)
|
|
513
513
|
*/
|
|
514
|
-
protected readonly onNodeRequest:
|
|
514
|
+
protected readonly onNodeRequest: alepha84.HookDescriptor<"node:request">;
|
|
515
515
|
/**
|
|
516
516
|
* When a Web (Fetch API) request is received from outside. (Netlify, Cloudflare Workers, etc.)
|
|
517
517
|
*/
|
|
518
|
-
protected readonly onWebRequest:
|
|
518
|
+
protected readonly onWebRequest: alepha84.HookDescriptor<"web:request">;
|
|
519
519
|
/**
|
|
520
520
|
* Handle Node.js HTTP request event.
|
|
521
521
|
*
|
|
@@ -850,15 +850,15 @@ type ServerActionHandler<TConfig extends RequestConfigSchema = RequestConfigSche
|
|
|
850
850
|
interface ServerActionRequest<TConfig extends RequestConfigSchema> extends ServerRequest<TConfig> {}
|
|
851
851
|
//#endregion
|
|
852
852
|
//#region ../alepha/src/server/schemas/errorSchema.d.ts
|
|
853
|
-
declare const errorSchema:
|
|
854
|
-
error:
|
|
855
|
-
status:
|
|
856
|
-
message:
|
|
857
|
-
details:
|
|
858
|
-
requestId:
|
|
859
|
-
cause:
|
|
860
|
-
name:
|
|
861
|
-
message:
|
|
853
|
+
declare const errorSchema: alepha84.TObject<{
|
|
854
|
+
error: alepha84.TString;
|
|
855
|
+
status: alepha84.TInteger;
|
|
856
|
+
message: alepha84.TString;
|
|
857
|
+
details: alepha84.TOptional<alepha84.TString>;
|
|
858
|
+
requestId: alepha84.TOptional<alepha84.TString>;
|
|
859
|
+
cause: alepha84.TOptional<alepha84.TObject<{
|
|
860
|
+
name: alepha84.TString;
|
|
861
|
+
message: alepha84.TString;
|
|
862
862
|
}>>;
|
|
863
863
|
}>;
|
|
864
864
|
type ErrorSchema = Static<typeof errorSchema>;
|
|
@@ -883,18 +883,18 @@ interface HttpErrorLike extends Error {
|
|
|
883
883
|
}
|
|
884
884
|
//#endregion
|
|
885
885
|
//#region ../alepha/src/server/providers/BunHttpServerProvider.d.ts
|
|
886
|
-
declare const envSchema$5:
|
|
887
|
-
SERVER_PORT:
|
|
888
|
-
SERVER_HOST:
|
|
886
|
+
declare const envSchema$5: alepha84.TObject<{
|
|
887
|
+
SERVER_PORT: alepha84.TInteger;
|
|
888
|
+
SERVER_HOST: alepha84.TString;
|
|
889
889
|
}>;
|
|
890
890
|
declare module "alepha" {
|
|
891
891
|
interface Env extends Partial<Static<typeof envSchema$5>> {}
|
|
892
892
|
}
|
|
893
893
|
//#endregion
|
|
894
894
|
//#region ../alepha/src/server/providers/NodeHttpServerProvider.d.ts
|
|
895
|
-
declare const envSchema$4:
|
|
896
|
-
SERVER_PORT:
|
|
897
|
-
SERVER_HOST:
|
|
895
|
+
declare const envSchema$4: alepha84.TObject<{
|
|
896
|
+
SERVER_PORT: alepha84.TInteger;
|
|
897
|
+
SERVER_HOST: alepha84.TString;
|
|
898
898
|
}>;
|
|
899
899
|
declare module "alepha" {
|
|
900
900
|
interface Env extends Partial<Static<typeof envSchema$4>> {}
|
|
@@ -1071,8 +1071,8 @@ declare class Redirection extends Error {
|
|
|
1071
1071
|
}
|
|
1072
1072
|
//#endregion
|
|
1073
1073
|
//#region ../react/src/core/providers/ReactPageProvider.d.ts
|
|
1074
|
-
declare const envSchema$3:
|
|
1075
|
-
REACT_STRICT_MODE:
|
|
1074
|
+
declare const envSchema$3: alepha84.TObject<{
|
|
1075
|
+
REACT_STRICT_MODE: alepha84.TBoolean;
|
|
1076
1076
|
}>;
|
|
1077
1077
|
declare module "alepha" {
|
|
1078
1078
|
interface Env extends Partial<Static<typeof envSchema$3>> {}
|
|
@@ -1369,15 +1369,15 @@ type CssAnimation = {
|
|
|
1369
1369
|
};
|
|
1370
1370
|
//#endregion
|
|
1371
1371
|
//#region ../alepha/src/security/schemas/userAccountInfoSchema.d.ts
|
|
1372
|
-
declare const userAccountInfoSchema:
|
|
1373
|
-
id:
|
|
1374
|
-
name:
|
|
1375
|
-
email:
|
|
1376
|
-
username:
|
|
1377
|
-
picture:
|
|
1378
|
-
sessionId:
|
|
1379
|
-
organizations:
|
|
1380
|
-
roles:
|
|
1372
|
+
declare const userAccountInfoSchema: alepha84.TObject<{
|
|
1373
|
+
id: alepha84.TString;
|
|
1374
|
+
name: alepha84.TOptional<alepha84.TString>;
|
|
1375
|
+
email: alepha84.TOptional<alepha84.TString>;
|
|
1376
|
+
username: alepha84.TOptional<alepha84.TString>;
|
|
1377
|
+
picture: alepha84.TOptional<alepha84.TString>;
|
|
1378
|
+
sessionId: alepha84.TOptional<alepha84.TString>;
|
|
1379
|
+
organizations: alepha84.TOptional<alepha84.TArray<alepha84.TString>>;
|
|
1380
|
+
roles: alepha84.TOptional<alepha84.TArray<alepha84.TString>>;
|
|
1381
1381
|
}>;
|
|
1382
1382
|
type UserAccount = Static<typeof userAccountInfoSchema>;
|
|
1383
1383
|
//#endregion
|
|
@@ -1403,8 +1403,8 @@ interface UserAccountToken extends UserAccount {
|
|
|
1403
1403
|
}
|
|
1404
1404
|
//#endregion
|
|
1405
1405
|
//#region ../alepha/src/security/providers/SecurityProvider.d.ts
|
|
1406
|
-
declare const envSchema$2:
|
|
1407
|
-
APP_SECRET:
|
|
1406
|
+
declare const envSchema$2: alepha84.TObject<{
|
|
1407
|
+
APP_SECRET: alepha84.TString;
|
|
1408
1408
|
}>;
|
|
1409
1409
|
declare module "alepha" {
|
|
1410
1410
|
interface Env extends Partial<Static<typeof envSchema$2>> {}
|
|
@@ -1497,15 +1497,15 @@ declare module "alepha/server" {
|
|
|
1497
1497
|
*/
|
|
1498
1498
|
//#endregion
|
|
1499
1499
|
//#region ../alepha/src/server-links/schemas/apiLinksResponseSchema.d.ts
|
|
1500
|
-
declare const apiLinksResponseSchema:
|
|
1501
|
-
prefix:
|
|
1502
|
-
links:
|
|
1503
|
-
name:
|
|
1504
|
-
group:
|
|
1505
|
-
path:
|
|
1506
|
-
method:
|
|
1507
|
-
requestBodyType:
|
|
1508
|
-
service:
|
|
1500
|
+
declare const apiLinksResponseSchema: alepha84.TObject<{
|
|
1501
|
+
prefix: alepha84.TOptional<alepha84.TString>;
|
|
1502
|
+
links: alepha84.TArray<alepha84.TObject<{
|
|
1503
|
+
name: alepha84.TString;
|
|
1504
|
+
group: alepha84.TOptional<alepha84.TString>;
|
|
1505
|
+
path: alepha84.TString;
|
|
1506
|
+
method: alepha84.TOptional<alepha84.TString>;
|
|
1507
|
+
requestBodyType: alepha84.TOptional<alepha84.TString>;
|
|
1508
|
+
service: alepha84.TOptional<alepha84.TString>;
|
|
1509
1509
|
}>>;
|
|
1510
1510
|
}>;
|
|
1511
1511
|
type ApiLinksResponse = Static<typeof apiLinksResponseSchema>;
|
|
@@ -1535,8 +1535,8 @@ declare module "alepha" {
|
|
|
1535
1535
|
*/
|
|
1536
1536
|
//#endregion
|
|
1537
1537
|
//#region ../react/src/core/providers/ReactBrowserProvider.d.ts
|
|
1538
|
-
declare const envSchema$1:
|
|
1539
|
-
REACT_ROOT_ID:
|
|
1538
|
+
declare const envSchema$1: alepha84.TObject<{
|
|
1539
|
+
REACT_ROOT_ID: alepha84.TString;
|
|
1540
1540
|
}>;
|
|
1541
1541
|
declare module "alepha" {
|
|
1542
1542
|
interface Env extends Partial<Static<typeof envSchema$1>> {}
|
|
@@ -1544,8 +1544,8 @@ declare module "alepha" {
|
|
|
1544
1544
|
/**
|
|
1545
1545
|
* React browser renderer configuration atom
|
|
1546
1546
|
*/
|
|
1547
|
-
declare const reactBrowserOptions:
|
|
1548
|
-
scrollRestoration:
|
|
1547
|
+
declare const reactBrowserOptions: alepha84.Atom<alepha84.TObject<{
|
|
1548
|
+
scrollRestoration: alepha84.TUnsafe<"top" | "manual">;
|
|
1549
1549
|
}>, "alepha.react.browser.options">;
|
|
1550
1550
|
type ReactBrowserRendererOptions = Static<typeof reactBrowserOptions.schema>;
|
|
1551
1551
|
declare module "alepha" {
|
|
@@ -1560,10 +1560,10 @@ type ReactHydrationState = {
|
|
|
1560
1560
|
};
|
|
1561
1561
|
//#endregion
|
|
1562
1562
|
//#region ../react/src/core/providers/ReactServerProvider.d.ts
|
|
1563
|
-
declare const envSchema:
|
|
1564
|
-
REACT_SSR_ENABLED:
|
|
1565
|
-
REACT_ROOT_ID:
|
|
1566
|
-
REACT_SERVER_TEMPLATE:
|
|
1563
|
+
declare const envSchema: alepha84.TObject<{
|
|
1564
|
+
REACT_SSR_ENABLED: alepha84.TOptional<alepha84.TBoolean>;
|
|
1565
|
+
REACT_ROOT_ID: alepha84.TString;
|
|
1566
|
+
REACT_SERVER_TEMPLATE: alepha84.TOptional<alepha84.TString>;
|
|
1567
1567
|
}>;
|
|
1568
1568
|
declare module "alepha" {
|
|
1569
1569
|
interface Env extends Partial<Static<typeof envSchema>> {}
|
|
@@ -1574,11 +1574,11 @@ declare module "alepha" {
|
|
|
1574
1574
|
/**
|
|
1575
1575
|
* React server provider configuration atom
|
|
1576
1576
|
*/
|
|
1577
|
-
declare const reactServerOptions:
|
|
1578
|
-
publicDir:
|
|
1579
|
-
staticServer:
|
|
1580
|
-
disabled:
|
|
1581
|
-
path:
|
|
1577
|
+
declare const reactServerOptions: alepha84.Atom<alepha84.TObject<{
|
|
1578
|
+
publicDir: alepha84.TString;
|
|
1579
|
+
staticServer: alepha84.TObject<{
|
|
1580
|
+
disabled: alepha84.TBoolean;
|
|
1581
|
+
path: alepha84.TString;
|
|
1582
1582
|
}>;
|
|
1583
1583
|
}>, "alepha.react.server.options">;
|
|
1584
1584
|
type ReactServerProviderOptions = Static<typeof reactServerOptions.schema>;
|
|
@@ -1704,34 +1704,34 @@ declare class AdminRouter {
|
|
|
1704
1704
|
}
|
|
1705
1705
|
//#endregion
|
|
1706
1706
|
//#region src/admin/components/AdminFiles.d.ts
|
|
1707
|
-
declare const AdminFiles: () =>
|
|
1707
|
+
declare const AdminFiles: () => react_jsx_runtime1.JSX.Element;
|
|
1708
1708
|
//#endregion
|
|
1709
1709
|
//#region src/admin/components/AdminJobs.d.ts
|
|
1710
|
-
declare const AdminJobs: () =>
|
|
1710
|
+
declare const AdminJobs: () => react_jsx_runtime1.JSX.Element;
|
|
1711
1711
|
//#endregion
|
|
1712
1712
|
//#region src/admin/components/AdminLayout.d.ts
|
|
1713
|
-
declare const AdminLayout: () =>
|
|
1713
|
+
declare const AdminLayout: () => react_jsx_runtime1.JSX.Element;
|
|
1714
1714
|
//#endregion
|
|
1715
1715
|
//#region src/admin/components/AdminNotifications.d.ts
|
|
1716
|
-
declare const AdminNotifications: () =>
|
|
1716
|
+
declare const AdminNotifications: () => react_jsx_runtime1.JSX.Element;
|
|
1717
1717
|
//#endregion
|
|
1718
1718
|
//#region src/admin/components/AdminParameters.d.ts
|
|
1719
|
-
declare const AdminParameters: () =>
|
|
1719
|
+
declare const AdminParameters: () => react_jsx_runtime1.JSX.Element;
|
|
1720
1720
|
//#endregion
|
|
1721
1721
|
//#region src/admin/components/AdminSessions.d.ts
|
|
1722
1722
|
interface AdminSessionsProps {
|
|
1723
1723
|
userRealmName?: string;
|
|
1724
1724
|
}
|
|
1725
|
-
declare const AdminSessions: (props: AdminSessionsProps) =>
|
|
1725
|
+
declare const AdminSessions: (props: AdminSessionsProps) => react_jsx_runtime1.JSX.Element;
|
|
1726
1726
|
//#endregion
|
|
1727
1727
|
//#region src/admin/components/AdminUsers.d.ts
|
|
1728
1728
|
interface AdminUsersProps {
|
|
1729
1729
|
userRealmName?: string;
|
|
1730
1730
|
}
|
|
1731
|
-
declare const AdminUsers: (props: AdminUsersProps) =>
|
|
1731
|
+
declare const AdminUsers: (props: AdminUsersProps) => react_jsx_runtime1.JSX.Element;
|
|
1732
1732
|
//#endregion
|
|
1733
1733
|
//#region src/admin/components/AdminVerifications.d.ts
|
|
1734
|
-
declare const AdminVerifications: () =>
|
|
1734
|
+
declare const AdminVerifications: () => react_jsx_runtime1.JSX.Element;
|
|
1735
1735
|
//#endregion
|
|
1736
1736
|
//#region src/admin/index.d.ts
|
|
1737
1737
|
/**
|
|
@@ -1739,7 +1739,7 @@ declare const AdminVerifications: () => react_jsx_runtime0.JSX.Element;
|
|
|
1739
1739
|
*
|
|
1740
1740
|
* @module alepha.ui.admin
|
|
1741
1741
|
*/
|
|
1742
|
-
declare const AlephaUIAdmin:
|
|
1742
|
+
declare const AlephaUIAdmin: alepha84.Service<alepha84.Module>;
|
|
1743
1743
|
//#endregion
|
|
1744
1744
|
export { AdminFiles, AdminJobs, AdminLayout, AdminNotifications, AdminParameters, AdminRouter, AdminSessions, type AdminSessionsProps, AdminUsers, type AdminUsersProps, AdminVerifications, AlephaUIAdmin };
|
|
1745
1745
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/admin/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import {
|
|
1
|
+
import { t as AdminFiles_default } from "./AdminFiles-BjofP3OC.js";
|
|
2
|
+
import { t as AdminJobs_default } from "./AdminJobs-CDnVxEv6.js";
|
|
3
|
+
import { t as AdminLayout_default } from "./AdminLayout-CervL8LV.js";
|
|
4
|
+
import { t as AdminNotifications_default } from "./AdminNotifications-DvI2989x.js";
|
|
5
|
+
import { t as AdminParameters_default } from "./AdminParameters-CWi7crdn.js";
|
|
6
|
+
import { t as AdminSessions_default } from "./AdminSessions-CmDVneE2.js";
|
|
7
|
+
import { t as AdminUsers_default } from "./AdminUsers-88De5pev.js";
|
|
8
|
+
import { t as AdminVerifications_default } from "./AdminVerifications-DBVEoqJe.js";
|
|
9
|
+
import { AlephaUI } from "@alepha/ui";
|
|
10
10
|
import { $module } from "alepha";
|
|
11
11
|
import { $page } from "@alepha/react";
|
|
12
12
|
|
|
@@ -15,49 +15,49 @@ var AdminRouter = class {
|
|
|
15
15
|
admin = $page({
|
|
16
16
|
path: "/admin",
|
|
17
17
|
label: "Admin",
|
|
18
|
-
lazy: () => import("./AdminLayout-
|
|
18
|
+
lazy: () => import("./AdminLayout-Bgx25J8m.js")
|
|
19
19
|
});
|
|
20
20
|
adminUsers = $page({
|
|
21
21
|
parent: this.admin,
|
|
22
22
|
path: "/users",
|
|
23
23
|
label: "Users",
|
|
24
|
-
lazy: () => import("./AdminUsers-
|
|
24
|
+
lazy: () => import("./AdminUsers-oyAXqZ5l.js")
|
|
25
25
|
});
|
|
26
26
|
adminNotifications = $page({
|
|
27
27
|
parent: this.admin,
|
|
28
28
|
path: "/notifications",
|
|
29
29
|
label: "Notifications",
|
|
30
|
-
lazy: () => import("./AdminNotifications-
|
|
30
|
+
lazy: () => import("./AdminNotifications-BDQXt3-e.js")
|
|
31
31
|
});
|
|
32
32
|
adminSessions = $page({
|
|
33
33
|
parent: this.admin,
|
|
34
34
|
path: "/sessions",
|
|
35
35
|
label: "Sessions",
|
|
36
|
-
lazy: () => import("./AdminSessions-
|
|
36
|
+
lazy: () => import("./AdminSessions-Dkk_fzWK.js")
|
|
37
37
|
});
|
|
38
38
|
adminVerifications = $page({
|
|
39
39
|
parent: this.admin,
|
|
40
40
|
path: "/verifications",
|
|
41
41
|
label: "Verifications",
|
|
42
|
-
lazy: () => import("./AdminVerifications-
|
|
42
|
+
lazy: () => import("./AdminVerifications-D93TKymL.js")
|
|
43
43
|
});
|
|
44
44
|
adminJobs = $page({
|
|
45
45
|
parent: this.admin,
|
|
46
46
|
path: "/jobs",
|
|
47
47
|
label: "Jobs",
|
|
48
|
-
lazy: () => import("./AdminJobs-
|
|
48
|
+
lazy: () => import("./AdminJobs-BOq6AZOW.js")
|
|
49
49
|
});
|
|
50
50
|
adminParameters = $page({
|
|
51
51
|
parent: this.admin,
|
|
52
52
|
path: "/parameters",
|
|
53
53
|
label: "Parameters",
|
|
54
|
-
lazy: () => import("./AdminParameters-
|
|
54
|
+
lazy: () => import("./AdminParameters-DKRAVen3.js")
|
|
55
55
|
});
|
|
56
56
|
adminFiles = $page({
|
|
57
57
|
parent: this.admin,
|
|
58
58
|
path: "/files",
|
|
59
59
|
label: "Files",
|
|
60
|
-
lazy: () => import("./AdminFiles-
|
|
60
|
+
lazy: () => import("./AdminFiles-DldZB7oo.js")
|
|
61
61
|
});
|
|
62
62
|
};
|
|
63
63
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconGoogle-
|
|
1
|
+
{"version":3,"file":"IconGoogle-v_58os2T.js","names":[],"sources":["../../src/auth/components/icons/IconGithub.tsx","../../src/auth/components/icons/IconGoogle.tsx"],"sourcesContent":["const IconGithub = () => {\n return (\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 1024 1024\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M8 0C3.58 0 0 3.58 0 8C0 11.54 2.29 14.53 5.47 15.59C5.87 15.66 6.02 15.42 6.02 15.21C6.02 15.02 6.01 14.39 6.01 13.72C4 14.09 3.48 13.23 3.32 12.78C3.23 12.55 2.84 11.84 2.5 11.65C2.22 11.5 1.82 11.13 2.49 11.12C3.12 11.11 3.57 11.7 3.72 11.94C4.44 13.15 5.59 12.81 6.05 12.6C6.12 12.08 6.33 11.73 6.56 11.53C4.78 11.33 2.92 10.64 2.92 7.58C2.92 6.71 3.23 5.99 3.74 5.43C3.66 5.23 3.38 4.41 3.82 3.31C3.82 3.31 4.49 3.1 6.02 4.13C6.66 3.95 7.34 3.86 8.02 3.86C8.7 3.86 9.38 3.95 10.02 4.13C11.55 3.09 12.22 3.31 12.22 3.31C12.66 4.41 12.38 5.23 12.3 5.43C12.81 5.99 13.12 6.7 13.12 7.58C13.12 10.65 11.25 11.33 9.47 11.53C9.76 11.78 10.01 12.26 10.01 13.01C10.01 14.08 10 14.94 10 15.21C10 15.42 10.15 15.67 10.55 15.59C13.71 14.53 16 11.53 16 8C16 3.58 12.42 0 8 0Z\"\n transform=\"scale(64)\"\n fill={\"var(--alepha-text)\"}\n />\n </svg>\n );\n};\n\nexport default IconGithub;\n","const IconGoogle = () => {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n width=\"24\"\n >\n <path\n d=\"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z\"\n fill=\"#4285F4\"\n />\n <path\n d=\"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z\"\n fill=\"#34A853\"\n />\n <path\n d=\"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z\"\n fill=\"#FBBC05\"\n />\n <path\n d=\"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z\"\n fill=\"#EA4335\"\n />\n <path d=\"M1 1h22v22H1z\" fill=\"none\" />\n </svg>\n );\n};\n\nexport default IconGoogle;\n"],"mappings":";;;AAAA,MAAM,mBAAmB;AACvB,QACE,oBAAC;EACC,OAAM;EACN,QAAO;EACP,SAAQ;EACR,MAAK;EACL,OAAM;YAEN,oBAAC;GACC,UAAS;GACT,UAAS;GACT,GAAE;GACF,WAAU;GACV,MAAM;IACN;GACE;;AAIV,yBAAe;;;;ACpBf,MAAM,mBAAmB;AACvB,QACE,qBAAC;EACC,OAAM;EACN,QAAO;EACP,SAAQ;EACR,OAAM;;GAEN,oBAAC;IACC,GAAE;IACF,MAAK;KACL;GACF,oBAAC;IACC,GAAE;IACF,MAAK;KACL;GACF,oBAAC;IACC,GAAE;IACF,MAAK;KACL;GACF,oBAAC;IACC,GAAE;IACF,MAAK;KACL;GACF,oBAAC;IAAK,GAAE;IAAgB,MAAK;KAAS;;GAClC;;AAIV,yBAAe"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as IconGithub_default, t as IconGoogle_default } from "./IconGoogle-Bfmuv9Rv.js";
|
|
1
|
+
import { n as IconGithub_default, t as IconGoogle_default } from "./IconGoogle-v_58os2T.js";
|
|
3
2
|
import { useAuth } from "@alepha/react/auth";
|
|
4
3
|
import { useI18n } from "@alepha/react/i18n";
|
|
5
|
-
import {
|
|
4
|
+
import { ActionButton, Control, capitalize } from "@alepha/ui";
|
|
6
5
|
import { t } from "alepha";
|
|
7
6
|
import { useRouter } from "@alepha/react";
|
|
8
7
|
import { Card, Flex, Group, Stack, Text } from "@mantine/core";
|
|
9
8
|
import { IconLock, IconUser } from "@tabler/icons-react";
|
|
10
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
-
import {
|
|
10
|
+
import { FormValidationError, useForm } from "@alepha/react/form";
|
|
12
11
|
import { HttpError } from "alepha/server";
|
|
12
|
+
import { useMemo } from "react";
|
|
13
13
|
|
|
14
14
|
//#region src/auth/components/Login.tsx
|
|
15
15
|
const Login = (props) => {
|
|
@@ -82,19 +82,19 @@ const Login = (props) => {
|
|
|
82
82
|
flex: 1,
|
|
83
83
|
gap: "md",
|
|
84
84
|
children: [
|
|
85
|
-
/* @__PURE__ */ jsx(
|
|
85
|
+
/* @__PURE__ */ jsx(Control, {
|
|
86
86
|
title: identifierTitle,
|
|
87
87
|
input: form.input.identifier,
|
|
88
88
|
icon: IconUser,
|
|
89
89
|
text: { autoComplete: loginMethods.includes("email") ? "email" : "username" }
|
|
90
90
|
}),
|
|
91
|
-
/* @__PURE__ */ jsx(
|
|
91
|
+
/* @__PURE__ */ jsx(Control, {
|
|
92
92
|
title: tr("loginPassword"),
|
|
93
93
|
input: form.input.password,
|
|
94
94
|
icon: IconLock,
|
|
95
95
|
password: { autoComplete: "current-password" }
|
|
96
96
|
}),
|
|
97
|
-
/* @__PURE__ */ jsx(
|
|
97
|
+
/* @__PURE__ */ jsx(ActionButton, {
|
|
98
98
|
variant: "filled",
|
|
99
99
|
form,
|
|
100
100
|
children: tr("loginSignIn")
|
|
@@ -106,7 +106,7 @@ const Login = (props) => {
|
|
|
106
106
|
children: [settings.resetPasswordAllowed && /* @__PURE__ */ jsx(Text, {
|
|
107
107
|
size: "sm",
|
|
108
108
|
ta: "center",
|
|
109
|
-
children: /* @__PURE__ */ jsx(
|
|
109
|
+
children: /* @__PURE__ */ jsx(ActionButton, {
|
|
110
110
|
href: router.path("resetPassword"),
|
|
111
111
|
anchorProps: { inherit: true },
|
|
112
112
|
children: tr("loginForgotPassword")
|
|
@@ -135,7 +135,7 @@ const Login = (props) => {
|
|
|
135
135
|
})] }),
|
|
136
136
|
/* @__PURE__ */ jsx(Stack, {
|
|
137
137
|
gap: "sm",
|
|
138
|
-
children: props.realmConfig.authenticationMethods.map((method) => method.type !== "CREDENTIALS" && /* @__PURE__ */ jsx(
|
|
138
|
+
children: props.realmConfig.authenticationMethods.map((method) => method.type !== "CREDENTIALS" && /* @__PURE__ */ jsx(ActionButton, {
|
|
139
139
|
variant: "default",
|
|
140
140
|
leftSection: leftSection(method.name.toLowerCase()),
|
|
141
141
|
onClick: () => auth.login(method.name, { redirect }),
|
|
@@ -148,7 +148,7 @@ const Login = (props) => {
|
|
|
148
148
|
children: [
|
|
149
149
|
tr("loginNoAccount"),
|
|
150
150
|
" ",
|
|
151
|
-
/* @__PURE__ */ jsx(
|
|
151
|
+
/* @__PURE__ */ jsx(ActionButton, {
|
|
152
152
|
href: router.path("register"),
|
|
153
153
|
anchorProps: { inherit: true },
|
|
154
154
|
children: tr("loginSignUp")
|
|
@@ -157,7 +157,7 @@ const Login = (props) => {
|
|
|
157
157
|
})
|
|
158
158
|
]
|
|
159
159
|
})
|
|
160
|
-
}), /* @__PURE__ */ jsx(
|
|
160
|
+
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
161
161
|
variant: "subtle",
|
|
162
162
|
href: redirect,
|
|
163
163
|
children: tr("loginCancel")
|
|
@@ -173,4 +173,4 @@ const leftSection = (name) => {
|
|
|
173
173
|
|
|
174
174
|
//#endregion
|
|
175
175
|
export { Login_default as t };
|
|
176
|
-
//# sourceMappingURL=Login-
|
|
176
|
+
//# sourceMappingURL=Login-OCrvjs9U.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Login-OCrvjs9U.js","names":["IconGoogle","IconGithub"],"sources":["../../src/auth/components/Login.tsx"],"sourcesContent":["import { useRouter } from \"@alepha/react\";\nimport { useAuth } from \"@alepha/react/auth\";\nimport { FormValidationError, useForm } from \"@alepha/react/form\";\nimport { useI18n } from \"@alepha/react/i18n\";\nimport { ActionButton, Control, capitalize } from \"@alepha/ui\";\nimport { Card, Flex, Group, Stack, Text } from \"@mantine/core\";\nimport { IconLock, IconUser } from \"@tabler/icons-react\";\nimport { t } from \"alepha\";\nimport type { UserRealmConfig } from \"alepha/api/users\";\nimport { HttpError } from \"alepha/server\";\nimport { useMemo } from \"react\";\nimport type { AuthI18n } from \"../AuthI18n.ts\";\nimport type { AuthRouter } from \"../AuthRouter.ts\";\nimport IconGithub from \"./icons/IconGithub.tsx\";\nimport IconGoogle from \"./icons/IconGoogle.tsx\";\n\nexport interface LoginProps {\n realmConfig: UserRealmConfig;\n}\n\nconst Login = (props: LoginProps) => {\n const auth = useAuth();\n const router = useRouter<AuthRouter>();\n const { tr } = useI18n<AuthI18n, \"en\">();\n const redirect = router.query.redirect || \"/\";\n\n const hasUsernamePassword = props.realmConfig.authenticationMethods.find(\n (it) => it.type === \"CREDENTIALS\",\n );\n\n const settings = props.realmConfig.settings;\n\n // Determine what login methods are available\n const loginMethods = useMemo(() => {\n const methods = [];\n if (settings.usernameEnabled !== false) methods.push(\"username\");\n if (settings.emailEnabled !== false) methods.push(\"email\");\n if (settings.phoneEnabled === true) methods.push(\"phone\");\n return methods;\n }, [settings]);\n\n // Create identifier title based on enabled methods\n const identifierTitle = useMemo(() => {\n if (loginMethods.length === 0) return tr(\"loginUsername\");\n if (loginMethods.length === 1) {\n if (loginMethods[0] === \"username\") return tr(\"loginUsername\");\n if (loginMethods[0] === \"email\") return tr(\"loginEmail\");\n if (loginMethods[0] === \"phone\") return tr(\"loginPhone\");\n }\n const labels = loginMethods.map((m) => {\n if (m === \"username\") return tr(\"loginUsername\").toLowerCase();\n if (m === \"email\") return tr(\"loginEmail\").toLowerCase();\n if (m === \"phone\") return tr(\"loginPhone\").toLowerCase();\n return m;\n });\n return capitalize(\n `${labels.slice(0, -1).join(\", \")} or ${labels[labels.length - 1]}`,\n );\n }, [loginMethods, tr]);\n\n const form = useForm({\n schema: t.object({\n identifier: t.string({\n minLength: 1,\n }),\n password: t.string({\n minLength: settings.passwordPolicy?.minLength || 6,\n }),\n }),\n handler: async (data) => {\n try {\n await auth.login(\"credentials\", {\n username: data.identifier,\n password: data.password,\n });\n await router.go(router.query.r || \"/\");\n } catch (error) {\n if (\n error instanceof HttpError &&\n error.error === \"InvalidCredentialsError\"\n ) {\n throw new FormValidationError({\n message: \"Invalid identifier or password\",\n path: \"/password\",\n });\n }\n throw error;\n }\n },\n });\n\n return (\n <Flex flex={1} justify={\"center\"} align={\"center\"}>\n <Stack gap={\"sm\"} w={360}>\n <Card withBorder p={\"lg\"} bg={\"var(--alepha-elevated)\"}>\n <Stack gap={\"md\"}>\n {hasUsernamePassword && (\n <>\n <form {...form.props}>\n <Stack flex={1} gap={\"md\"}>\n <Control\n title={identifierTitle}\n input={form.input.identifier}\n icon={IconUser}\n text={{\n autoComplete: loginMethods.includes(\"email\")\n ? \"email\"\n : \"username\",\n }}\n />\n <Control\n title={tr(\"loginPassword\")}\n input={form.input.password}\n icon={IconLock}\n password={{\n autoComplete: \"current-password\",\n }}\n />\n <ActionButton variant={\"filled\"} form={form}>\n {tr(\"loginSignIn\")}\n </ActionButton>\n </Stack>\n </form>\n <Stack gap=\"xs\">\n {settings.resetPasswordAllowed && (\n <Text size=\"sm\" ta=\"center\">\n <ActionButton\n href={router.path(\"resetPassword\")}\n anchorProps={{ inherit: true }}\n >\n {tr(\"loginForgotPassword\")}\n </ActionButton>\n </Text>\n )}\n <Group align=\"center\" justify=\"center\" gap={\"md\"}>\n <Flex flex={1} h={\"1px\"} bg={\"var(--alepha-text-muted)\"} />\n <Text size=\"xs\">{tr(\"loginOr\")}</Text>\n <Flex flex={1} h={\"1px\"} bg={\"var(--alepha-text-muted)\"} />\n </Group>\n </Stack>\n </>\n )}\n <Stack gap={\"sm\"}>\n {props.realmConfig.authenticationMethods.map(\n (method) =>\n method.type !== \"CREDENTIALS\" && (\n <ActionButton\n variant={\"default\"}\n key={method.type}\n leftSection={leftSection(method.name.toLowerCase())}\n onClick={() =>\n auth.login(method.name, {\n redirect,\n })\n }\n >\n {tr(\"loginContinueWith\", {\n args: [capitalize(method.name)],\n })}\n </ActionButton>\n ),\n )}\n </Stack>\n <Text size=\"sm\" ta=\"center\">\n {tr(\"loginNoAccount\")}{\" \"}\n <ActionButton\n href={router.path(\"register\")}\n anchorProps={{ inherit: true }}\n >\n {tr(\"loginSignUp\")}\n </ActionButton>\n </Text>\n </Stack>\n </Card>\n <ActionButton variant={\"subtle\"} href={redirect}>\n {tr(\"loginCancel\")}\n </ActionButton>\n </Stack>\n </Flex>\n );\n};\n\nexport default Login;\n\nconst leftSection = (name: string) => {\n if (name === \"google\") {\n return <IconGoogle />;\n }\n\n if (name === \"github\") {\n return <IconGithub />;\n }\n};\n"],"mappings":";;;;;;;;;;;;;;AAoBA,MAAM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