@alepha/react 0.13.3 → 0.13.4

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.
@@ -1,4 +1,4 @@
1
- import * as alepha4 from "alepha";
1
+ import * as alepha18 from "alepha";
2
2
  import { Alepha, AlephaError, Async, FileLike, InstantiableClass, LogLevel, LoggerInterface, Primitive, Static, StreamLike, TArray, TFile, TObject, TRecord, TSchema, TStream, TString, TVoid } from "alepha";
3
3
  import { IncomingMessage, Server, ServerResponse } from "node:http";
4
4
  import { Readable } from "node:stream";
@@ -7,28 +7,28 @@ import dayjsDuration from "dayjs/plugin/duration.js";
7
7
  import DayjsApi, { Dayjs, ManipulateType, PluginFunc } from "dayjs";
8
8
 
9
9
  //#region ../alepha/src/security/schemas/userAccountInfoSchema.d.ts
10
- declare const userAccountInfoSchema: alepha4.TObject<{
11
- id: alepha4.TString;
12
- name: alepha4.TOptional<alepha4.TString>;
13
- email: alepha4.TOptional<alepha4.TString>;
14
- username: alepha4.TOptional<alepha4.TString>;
15
- picture: alepha4.TOptional<alepha4.TString>;
16
- sessionId: alepha4.TOptional<alepha4.TString>;
17
- organizations: alepha4.TOptional<alepha4.TArray<alepha4.TString>>;
18
- roles: alepha4.TOptional<alepha4.TArray<alepha4.TString>>;
10
+ declare const userAccountInfoSchema: alepha18.TObject<{
11
+ id: alepha18.TString;
12
+ name: alepha18.TOptional<alepha18.TString>;
13
+ email: alepha18.TOptional<alepha18.TString>;
14
+ username: alepha18.TOptional<alepha18.TString>;
15
+ picture: alepha18.TOptional<alepha18.TString>;
16
+ sessionId: alepha18.TOptional<alepha18.TString>;
17
+ organizations: alepha18.TOptional<alepha18.TArray<alepha18.TString>>;
18
+ roles: alepha18.TOptional<alepha18.TArray<alepha18.TString>>;
19
19
  }>;
20
20
  type UserAccount = Static<typeof userAccountInfoSchema>;
21
21
  //#endregion
22
22
  //#region ../alepha/src/server/schemas/errorSchema.d.ts
23
- declare const errorSchema: alepha4.TObject<{
24
- error: alepha4.TString;
25
- status: alepha4.TInteger;
26
- message: alepha4.TString;
27
- details: alepha4.TOptional<alepha4.TString>;
28
- requestId: alepha4.TOptional<alepha4.TString>;
29
- cause: alepha4.TOptional<alepha4.TObject<{
30
- name: alepha4.TString;
31
- message: alepha4.TString;
23
+ declare const errorSchema: alepha18.TObject<{
24
+ error: alepha18.TString;
25
+ status: alepha18.TInteger;
26
+ message: alepha18.TString;
27
+ details: alepha18.TOptional<alepha18.TString>;
28
+ requestId: alepha18.TOptional<alepha18.TString>;
29
+ cause: alepha18.TOptional<alepha18.TObject<{
30
+ name: alepha18.TString;
31
+ message: alepha18.TString;
32
32
  }>>;
33
33
  }>;
34
34
  type ErrorSchema = Static<typeof errorSchema>;
@@ -267,15 +267,15 @@ interface WebRequestEvent {
267
267
  }
268
268
  //#endregion
269
269
  //#region ../alepha/src/logger/schemas/logEntrySchema.d.ts
270
- declare const logEntrySchema: alepha4.TObject<{
271
- level: alepha4.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
272
- message: alepha4.TString;
273
- service: alepha4.TString;
274
- module: alepha4.TString;
275
- context: alepha4.TOptional<alepha4.TString>;
276
- app: alepha4.TOptional<alepha4.TString>;
277
- data: alepha4.TOptional<alepha4.TAny>;
278
- timestamp: alepha4.TNumber;
270
+ declare const logEntrySchema: alepha18.TObject<{
271
+ level: alepha18.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
272
+ message: alepha18.TString;
273
+ service: alepha18.TString;
274
+ module: alepha18.TString;
275
+ context: alepha18.TOptional<alepha18.TString>;
276
+ app: alepha18.TOptional<alepha18.TString>;
277
+ data: alepha18.TOptional<alepha18.TAny>;
278
+ timestamp: alepha18.TNumber;
279
279
  }>;
280
280
  type LogEntry = Static<typeof logEntrySchema>;
281
281
  //#endregion
@@ -290,8 +290,8 @@ declare class DateTimeProvider {
290
290
  protected readonly timeouts: Timeout[];
291
291
  protected readonly intervals: Interval[];
292
292
  constructor();
293
- protected readonly onStart: alepha4.HookPrimitive<"start">;
294
- protected readonly onStop: alepha4.HookPrimitive<"stop">;
293
+ protected readonly onStart: alepha18.HookPrimitive<"start">;
294
+ protected readonly onStop: alepha18.HookPrimitive<"stop">;
295
295
  setLocale(locale: string): void;
296
296
  isDateTime(value: unknown): value is DateTime;
297
297
  /**
@@ -423,7 +423,7 @@ declare class Logger implements LoggerInterface {
423
423
  }
424
424
  //#endregion
425
425
  //#region ../alepha/src/logger/index.d.ts
426
- declare const envSchema$3: alepha4.TObject<{
426
+ declare const envSchema$3: alepha18.TObject<{
427
427
  /**
428
428
  * Default log level for the application.
429
429
  *
@@ -440,14 +440,14 @@ declare const envSchema$3: alepha4.TObject<{
440
440
  * LOG_LEVEL=my.module.name:debug,info # Set debug level for my.module.name and info for all other modules
441
441
  * LOG_LEVEL=alepha:trace, info # Set trace level for all alepha modules and info for all other modules
442
442
  */
443
- LOG_LEVEL: alepha4.TOptional<alepha4.TString>;
443
+ LOG_LEVEL: alepha18.TOptional<alepha18.TString>;
444
444
  /**
445
445
  * Built-in log formats.
446
446
  * - "json" - JSON format, useful for structured logging and log aggregation. {@link JsonFormatterProvider}
447
447
  * - "pretty" - Simple text format, human-readable, with colors. {@link SimpleFormatterProvider}
448
448
  * - "raw" - Raw format, no formatting, just the message. {@link RawFormatterProvider}
449
449
  */
450
- LOG_FORMAT: alepha4.TOptional<alepha4.TUnsafe<"json" | "pretty" | "raw">>;
450
+ LOG_FORMAT: alepha18.TOptional<alepha18.TUnsafe<"json" | "pretty" | "raw">>;
451
451
  }>;
452
452
  declare module "alepha" {
453
453
  interface Env extends Partial<Static<typeof envSchema$3>> {}
@@ -484,8 +484,8 @@ declare class ServerTimingProvider {
484
484
  prefix: string;
485
485
  disabled: boolean;
486
486
  };
487
- readonly onRequest: alepha4.HookPrimitive<"server:onRequest">;
488
- readonly onResponse: alepha4.HookPrimitive<"server:onResponse">;
487
+ readonly onRequest: alepha18.HookPrimitive<"server:onRequest">;
488
+ readonly onResponse: alepha18.HookPrimitive<"server:onResponse">;
489
489
  protected get handlerName(): string;
490
490
  beginTiming(name: string): void;
491
491
  endTiming(name: string): void;
@@ -549,11 +549,11 @@ declare class ServerProvider {
549
549
  /**
550
550
  * When a Node.js HTTP request is received from outside. (Vercel, AWS Lambda, etc.)
551
551
  */
552
- protected readonly onNodeRequest: alepha4.HookPrimitive<"node:request">;
552
+ protected readonly onNodeRequest: alepha18.HookPrimitive<"node:request">;
553
553
  /**
554
554
  * When a Web (Fetch API) request is received from outside. (Netlify, Cloudflare Workers, etc.)
555
555
  */
556
- protected readonly onWebRequest: alepha4.HookPrimitive<"web:request">;
556
+ protected readonly onWebRequest: alepha18.HookPrimitive<"web:request">;
557
557
  /**
558
558
  * Handle Node.js HTTP request event.
559
559
  *
@@ -888,18 +888,18 @@ type ServerActionHandler<TConfig extends RequestConfigSchema = RequestConfigSche
888
888
  interface ServerActionRequest<TConfig extends RequestConfigSchema> extends ServerRequest<TConfig> {}
889
889
  //#endregion
890
890
  //#region ../alepha/src/server/providers/BunHttpServerProvider.d.ts
891
- declare const envSchema$2: alepha4.TObject<{
892
- SERVER_PORT: alepha4.TInteger;
893
- SERVER_HOST: alepha4.TString;
891
+ declare const envSchema$2: alepha18.TObject<{
892
+ SERVER_PORT: alepha18.TInteger;
893
+ SERVER_HOST: alepha18.TString;
894
894
  }>;
895
895
  declare module "alepha" {
896
896
  interface Env extends Partial<Static<typeof envSchema$2>> {}
897
897
  }
898
898
  //#endregion
899
899
  //#region ../alepha/src/server/providers/NodeHttpServerProvider.d.ts
900
- declare const envSchema$1: alepha4.TObject<{
901
- SERVER_PORT: alepha4.TInteger;
902
- SERVER_HOST: alepha4.TString;
900
+ declare const envSchema$1: alepha18.TObject<{
901
+ SERVER_PORT: alepha18.TInteger;
902
+ SERVER_HOST: alepha18.TString;
903
903
  }>;
904
904
  declare module "alepha" {
905
905
  interface Env extends Partial<Static<typeof envSchema$1>> {}
@@ -983,8 +983,8 @@ interface UserAccountToken extends UserAccount {
983
983
  }
984
984
  //#endregion
985
985
  //#region ../alepha/src/security/providers/SecurityProvider.d.ts
986
- declare const envSchema: alepha4.TObject<{
987
- APP_SECRET: alepha4.TString;
986
+ declare const envSchema: alepha18.TObject<{
987
+ APP_SECRET: alepha18.TString;
988
988
  }>;
989
989
  declare module "alepha" {
990
990
  interface Env extends Partial<Static<typeof envSchema>> {}
@@ -1077,23 +1077,23 @@ declare module "alepha/server" {
1077
1077
  */
1078
1078
  //#endregion
1079
1079
  //#region ../alepha/src/server-links/schemas/apiLinksResponseSchema.d.ts
1080
- declare const apiLinkSchema: alepha4.TObject<{
1081
- name: alepha4.TString;
1082
- group: alepha4.TOptional<alepha4.TString>;
1083
- path: alepha4.TString;
1084
- method: alepha4.TOptional<alepha4.TString>;
1085
- requestBodyType: alepha4.TOptional<alepha4.TString>;
1086
- service: alepha4.TOptional<alepha4.TString>;
1080
+ declare const apiLinkSchema: alepha18.TObject<{
1081
+ name: alepha18.TString;
1082
+ group: alepha18.TOptional<alepha18.TString>;
1083
+ path: alepha18.TString;
1084
+ method: alepha18.TOptional<alepha18.TString>;
1085
+ requestBodyType: alepha18.TOptional<alepha18.TString>;
1086
+ service: alepha18.TOptional<alepha18.TString>;
1087
1087
  }>;
1088
- declare const apiLinksResponseSchema: alepha4.TObject<{
1089
- prefix: alepha4.TOptional<alepha4.TString>;
1090
- links: alepha4.TArray<alepha4.TObject<{
1091
- name: alepha4.TString;
1092
- group: alepha4.TOptional<alepha4.TString>;
1093
- path: alepha4.TString;
1094
- method: alepha4.TOptional<alepha4.TString>;
1095
- requestBodyType: alepha4.TOptional<alepha4.TString>;
1096
- service: alepha4.TOptional<alepha4.TString>;
1088
+ declare const apiLinksResponseSchema: alepha18.TObject<{
1089
+ prefix: alepha18.TOptional<alepha18.TString>;
1090
+ links: alepha18.TArray<alepha18.TObject<{
1091
+ name: alepha18.TString;
1092
+ group: alepha18.TOptional<alepha18.TString>;
1093
+ path: alepha18.TString;
1094
+ method: alepha18.TOptional<alepha18.TString>;
1095
+ requestBodyType: alepha18.TOptional<alepha18.TString>;
1096
+ service: alepha18.TOptional<alepha18.TString>;
1097
1097
  }>>;
1098
1098
  }>;
1099
1099
  type ApiLinksResponse = Static<typeof apiLinksResponseSchema>;
@@ -1213,16 +1213,16 @@ declare const useAuth: <T extends object = any>() => {
1213
1213
  };
1214
1214
  //#endregion
1215
1215
  //#region ../alepha/src/server-auth/schemas/tokensSchema.d.ts
1216
- declare const tokensSchema: alepha4.TObject<{
1217
- provider: alepha4.TString;
1218
- access_token: alepha4.TString;
1219
- issued_at: alepha4.TNumber;
1220
- expires_in: alepha4.TOptional<alepha4.TNumber>;
1221
- refresh_token: alepha4.TOptional<alepha4.TString>;
1222
- refresh_token_expires_in: alepha4.TOptional<alepha4.TNumber>;
1223
- refresh_expires_in: alepha4.TOptional<alepha4.TNumber>;
1224
- id_token: alepha4.TOptional<alepha4.TString>;
1225
- scope: alepha4.TOptional<alepha4.TString>;
1216
+ declare const tokensSchema: alepha18.TObject<{
1217
+ provider: alepha18.TString;
1218
+ access_token: alepha18.TString;
1219
+ issued_at: alepha18.TNumber;
1220
+ expires_in: alepha18.TOptional<alepha18.TNumber>;
1221
+ refresh_token: alepha18.TOptional<alepha18.TString>;
1222
+ refresh_token_expires_in: alepha18.TOptional<alepha18.TNumber>;
1223
+ refresh_expires_in: alepha18.TOptional<alepha18.TNumber>;
1224
+ id_token: alepha18.TOptional<alepha18.TString>;
1225
+ scope: alepha18.TOptional<alepha18.TString>;
1226
1226
  }>;
1227
1227
  type Tokens = Static<typeof tokensSchema>;
1228
1228
  //#endregion
@@ -1292,8 +1292,8 @@ declare class ReactAuth {
1292
1292
  protected readonly alepha: Alepha;
1293
1293
  protected readonly httpClient: HttpClient;
1294
1294
  protected readonly linkProvider: LinkProvider;
1295
- protected readonly onBeginTransition: alepha4.HookPrimitive<"react:transition:begin">;
1296
- protected readonly onFetchRequest: alepha4.HookPrimitive<"client:onRequest">;
1295
+ protected readonly onBeginTransition: alepha18.HookPrimitive<"react:transition:begin">;
1296
+ protected readonly onFetchRequest: alepha18.HookPrimitive<"client:onRequest">;
1297
1297
  /**
1298
1298
  * Get the current authenticated user.
1299
1299
  *
@@ -1324,7 +1324,7 @@ declare class ReactAuth {
1324
1324
  //#region src/auth/providers/ReactAuthProvider.d.ts
1325
1325
  declare class ReactAuthProvider {
1326
1326
  protected readonly alepha: Alepha;
1327
- readonly onRender: alepha4.HookPrimitive<"react:server:render:begin">;
1327
+ readonly onRender: alepha18.HookPrimitive<"react:server:render:begin">;
1328
1328
  }
1329
1329
  //#endregion
1330
1330
  //#region src/auth/index.d.ts
@@ -1339,7 +1339,7 @@ declare module "@alepha/react" {
1339
1339
  * @see {@link ReactAuthProvider}
1340
1340
  * @module alepha.react.auth
1341
1341
  */
1342
- declare const AlephaReactAuth: alepha4.Service<alepha4.Module>;
1342
+ declare const AlephaReactAuth: alepha18.Service<alepha18.Module>;
1343
1343
  //#endregion
1344
1344
  export { AlephaReactAuth, ReactAuth, ReactAuthProvider, useAuth };
1345
1345
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import * as alepha48 from "alepha";
1
+ import * as alepha60 from "alepha";
2
2
  import { Alepha, AlephaError, Async, Atom, FileLike, Hook, Hooks, InstantiableClass, KIND, LogLevel, LoggerInterface, Primitive, Service, State, Static, StreamLike, TArray, TAtomObject, TFile, TObject, TRecord, TSchema, TStream, TString, TVoid } from "alepha";
3
3
  import * as react0 from "react";
4
4
  import React, { AnchorHTMLAttributes, CSSProperties, DependencyList, ErrorInfo, FC, PropsWithChildren, ReactNode } from "react";
@@ -10,15 +10,15 @@ import dayjsDuration from "dayjs/plugin/duration.js";
10
10
  import DayjsApi, { Dayjs, ManipulateType, PluginFunc } from "dayjs";
11
11
 
12
12
  //#region ../alepha/src/server/schemas/errorSchema.d.ts
13
- declare const errorSchema: alepha48.TObject<{
14
- error: alepha48.TString;
15
- status: alepha48.TInteger;
16
- message: alepha48.TString;
17
- details: alepha48.TOptional<alepha48.TString>;
18
- requestId: alepha48.TOptional<alepha48.TString>;
19
- cause: alepha48.TOptional<alepha48.TObject<{
20
- name: alepha48.TString;
21
- message: alepha48.TString;
13
+ declare const errorSchema: alepha60.TObject<{
14
+ error: alepha60.TString;
15
+ status: alepha60.TInteger;
16
+ message: alepha60.TString;
17
+ details: alepha60.TOptional<alepha60.TString>;
18
+ requestId: alepha60.TOptional<alepha60.TString>;
19
+ cause: alepha60.TOptional<alepha60.TObject<{
20
+ name: alepha60.TString;
21
+ message: alepha60.TString;
22
22
  }>>;
23
23
  }>;
24
24
  type ErrorSchema = Static<typeof errorSchema>;
@@ -257,15 +257,15 @@ interface WebRequestEvent {
257
257
  }
258
258
  //#endregion
259
259
  //#region ../alepha/src/logger/schemas/logEntrySchema.d.ts
260
- declare const logEntrySchema: alepha48.TObject<{
261
- level: alepha48.TUnsafe<"TRACE" | "SILENT" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
262
- message: alepha48.TString;
263
- service: alepha48.TString;
264
- module: alepha48.TString;
265
- context: alepha48.TOptional<alepha48.TString>;
266
- app: alepha48.TOptional<alepha48.TString>;
267
- data: alepha48.TOptional<alepha48.TAny>;
268
- timestamp: alepha48.TNumber;
260
+ declare const logEntrySchema: alepha60.TObject<{
261
+ level: alepha60.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
262
+ message: alepha60.TString;
263
+ service: alepha60.TString;
264
+ module: alepha60.TString;
265
+ context: alepha60.TOptional<alepha60.TString>;
266
+ app: alepha60.TOptional<alepha60.TString>;
267
+ data: alepha60.TOptional<alepha60.TAny>;
268
+ timestamp: alepha60.TNumber;
269
269
  }>;
270
270
  type LogEntry = Static<typeof logEntrySchema>;
271
271
  //#endregion
@@ -280,8 +280,8 @@ declare class DateTimeProvider {
280
280
  protected readonly timeouts: Timeout[];
281
281
  protected readonly intervals: Interval[];
282
282
  constructor();
283
- protected readonly onStart: alepha48.HookPrimitive<"start">;
284
- protected readonly onStop: alepha48.HookPrimitive<"stop">;
283
+ protected readonly onStart: alepha60.HookPrimitive<"start">;
284
+ protected readonly onStop: alepha60.HookPrimitive<"stop">;
285
285
  setLocale(locale: string): void;
286
286
  isDateTime(value: unknown): value is DateTime;
287
287
  /**
@@ -413,7 +413,7 @@ declare class Logger implements LoggerInterface {
413
413
  }
414
414
  //#endregion
415
415
  //#region ../alepha/src/logger/index.d.ts
416
- declare const envSchema$6: alepha48.TObject<{
416
+ declare const envSchema$6: alepha60.TObject<{
417
417
  /**
418
418
  * Default log level for the application.
419
419
  *
@@ -430,14 +430,14 @@ declare const envSchema$6: alepha48.TObject<{
430
430
  * LOG_LEVEL=my.module.name:debug,info # Set debug level for my.module.name and info for all other modules
431
431
  * LOG_LEVEL=alepha:trace, info # Set trace level for all alepha modules and info for all other modules
432
432
  */
433
- LOG_LEVEL: alepha48.TOptional<alepha48.TString>;
433
+ LOG_LEVEL: alepha60.TOptional<alepha60.TString>;
434
434
  /**
435
435
  * Built-in log formats.
436
436
  * - "json" - JSON format, useful for structured logging and log aggregation. {@link JsonFormatterProvider}
437
437
  * - "pretty" - Simple text format, human-readable, with colors. {@link SimpleFormatterProvider}
438
438
  * - "raw" - Raw format, no formatting, just the message. {@link RawFormatterProvider}
439
439
  */
440
- LOG_FORMAT: alepha48.TOptional<alepha48.TUnsafe<"json" | "pretty" | "raw">>;
440
+ LOG_FORMAT: alepha60.TOptional<alepha60.TUnsafe<"json" | "pretty" | "raw">>;
441
441
  }>;
442
442
  declare module "alepha" {
443
443
  interface Env extends Partial<Static<typeof envSchema$6>> {}
@@ -474,8 +474,8 @@ declare class ServerTimingProvider {
474
474
  prefix: string;
475
475
  disabled: boolean;
476
476
  };
477
- readonly onRequest: alepha48.HookPrimitive<"server:onRequest">;
478
- readonly onResponse: alepha48.HookPrimitive<"server:onResponse">;
477
+ readonly onRequest: alepha60.HookPrimitive<"server:onRequest">;
478
+ readonly onResponse: alepha60.HookPrimitive<"server:onResponse">;
479
479
  protected get handlerName(): string;
480
480
  beginTiming(name: string): void;
481
481
  endTiming(name: string): void;
@@ -539,11 +539,11 @@ declare class ServerProvider {
539
539
  /**
540
540
  * When a Node.js HTTP request is received from outside. (Vercel, AWS Lambda, etc.)
541
541
  */
542
- protected readonly onNodeRequest: alepha48.HookPrimitive<"node:request">;
542
+ protected readonly onNodeRequest: alepha60.HookPrimitive<"node:request">;
543
543
  /**
544
544
  * When a Web (Fetch API) request is received from outside. (Netlify, Cloudflare Workers, etc.)
545
545
  */
546
- protected readonly onWebRequest: alepha48.HookPrimitive<"web:request">;
546
+ protected readonly onWebRequest: alepha60.HookPrimitive<"web:request">;
547
547
  /**
548
548
  * Handle Node.js HTTP request event.
549
549
  *
@@ -878,18 +878,18 @@ type ServerActionHandler<TConfig extends RequestConfigSchema = RequestConfigSche
878
878
  interface ServerActionRequest<TConfig extends RequestConfigSchema> extends ServerRequest<TConfig> {}
879
879
  //#endregion
880
880
  //#region ../alepha/src/server/providers/BunHttpServerProvider.d.ts
881
- declare const envSchema$5: alepha48.TObject<{
882
- SERVER_PORT: alepha48.TInteger;
883
- SERVER_HOST: alepha48.TString;
881
+ declare const envSchema$5: alepha60.TObject<{
882
+ SERVER_PORT: alepha60.TInteger;
883
+ SERVER_HOST: alepha60.TString;
884
884
  }>;
885
885
  declare module "alepha" {
886
886
  interface Env extends Partial<Static<typeof envSchema$5>> {}
887
887
  }
888
888
  //#endregion
889
889
  //#region ../alepha/src/server/providers/NodeHttpServerProvider.d.ts
890
- declare const envSchema$4: alepha48.TObject<{
891
- SERVER_PORT: alepha48.TInteger;
892
- SERVER_HOST: alepha48.TString;
890
+ declare const envSchema$4: alepha60.TObject<{
891
+ SERVER_PORT: alepha60.TInteger;
892
+ SERVER_HOST: alepha60.TString;
893
893
  }>;
894
894
  declare module "alepha" {
895
895
  interface Env extends Partial<Static<typeof envSchema$4>> {}
@@ -1077,8 +1077,8 @@ declare class Redirection extends Error {
1077
1077
  }
1078
1078
  //#endregion
1079
1079
  //#region src/core/providers/ReactPageProvider.d.ts
1080
- declare const envSchema$3: alepha48.TObject<{
1081
- REACT_STRICT_MODE: alepha48.TBoolean;
1080
+ declare const envSchema$3: alepha60.TObject<{
1081
+ REACT_STRICT_MODE: alepha60.TBoolean;
1082
1082
  }>;
1083
1083
  declare module "alepha" {
1084
1084
  interface Env extends Partial<Static<typeof envSchema$3>> {}
@@ -1121,7 +1121,7 @@ declare class ReactPageProvider {
1121
1121
  }, params?: Record<string, any>): string;
1122
1122
  compile(path: string, params?: Record<string, string>): string;
1123
1123
  protected renderView(index: number, path: string, view: ReactNode | undefined, page: PageRoute): ReactNode;
1124
- protected readonly configure: alepha48.HookPrimitive<"configure">;
1124
+ protected readonly configure: alepha60.HookPrimitive<"configure">;
1125
1125
  protected map(pages: Array<PagePrimitive>, target: PagePrimitive): PageRouteEntry;
1126
1126
  add(entry: PageRouteEntry): void;
1127
1127
  protected createMatch(page: PageRoute): string;
@@ -1540,15 +1540,15 @@ type CssAnimation = {
1540
1540
  };
1541
1541
  //#endregion
1542
1542
  //#region ../alepha/src/security/schemas/userAccountInfoSchema.d.ts
1543
- declare const userAccountInfoSchema: alepha48.TObject<{
1544
- id: alepha48.TString;
1545
- name: alepha48.TOptional<alepha48.TString>;
1546
- email: alepha48.TOptional<alepha48.TString>;
1547
- username: alepha48.TOptional<alepha48.TString>;
1548
- picture: alepha48.TOptional<alepha48.TString>;
1549
- sessionId: alepha48.TOptional<alepha48.TString>;
1550
- organizations: alepha48.TOptional<alepha48.TArray<alepha48.TString>>;
1551
- roles: alepha48.TOptional<alepha48.TArray<alepha48.TString>>;
1543
+ declare const userAccountInfoSchema: alepha60.TObject<{
1544
+ id: alepha60.TString;
1545
+ name: alepha60.TOptional<alepha60.TString>;
1546
+ email: alepha60.TOptional<alepha60.TString>;
1547
+ username: alepha60.TOptional<alepha60.TString>;
1548
+ picture: alepha60.TOptional<alepha60.TString>;
1549
+ sessionId: alepha60.TOptional<alepha60.TString>;
1550
+ organizations: alepha60.TOptional<alepha60.TArray<alepha60.TString>>;
1551
+ roles: alepha60.TOptional<alepha60.TArray<alepha60.TString>>;
1552
1552
  }>;
1553
1553
  type UserAccount = Static<typeof userAccountInfoSchema>;
1554
1554
  //#endregion
@@ -1574,8 +1574,8 @@ interface UserAccountToken extends UserAccount {
1574
1574
  }
1575
1575
  //#endregion
1576
1576
  //#region ../alepha/src/security/providers/SecurityProvider.d.ts
1577
- declare const envSchema$2: alepha48.TObject<{
1578
- APP_SECRET: alepha48.TString;
1577
+ declare const envSchema$2: alepha60.TObject<{
1578
+ APP_SECRET: alepha60.TString;
1579
1579
  }>;
1580
1580
  declare module "alepha" {
1581
1581
  interface Env extends Partial<Static<typeof envSchema$2>> {}
@@ -1668,23 +1668,23 @@ declare module "alepha/server" {
1668
1668
  */
1669
1669
  //#endregion
1670
1670
  //#region ../alepha/src/server-links/schemas/apiLinksResponseSchema.d.ts
1671
- declare const apiLinkSchema: alepha48.TObject<{
1672
- name: alepha48.TString;
1673
- group: alepha48.TOptional<alepha48.TString>;
1674
- path: alepha48.TString;
1675
- method: alepha48.TOptional<alepha48.TString>;
1676
- requestBodyType: alepha48.TOptional<alepha48.TString>;
1677
- service: alepha48.TOptional<alepha48.TString>;
1671
+ declare const apiLinkSchema: alepha60.TObject<{
1672
+ name: alepha60.TString;
1673
+ group: alepha60.TOptional<alepha60.TString>;
1674
+ path: alepha60.TString;
1675
+ method: alepha60.TOptional<alepha60.TString>;
1676
+ requestBodyType: alepha60.TOptional<alepha60.TString>;
1677
+ service: alepha60.TOptional<alepha60.TString>;
1678
1678
  }>;
1679
- declare const apiLinksResponseSchema: alepha48.TObject<{
1680
- prefix: alepha48.TOptional<alepha48.TString>;
1681
- links: alepha48.TArray<alepha48.TObject<{
1682
- name: alepha48.TString;
1683
- group: alepha48.TOptional<alepha48.TString>;
1684
- path: alepha48.TString;
1685
- method: alepha48.TOptional<alepha48.TString>;
1686
- requestBodyType: alepha48.TOptional<alepha48.TString>;
1687
- service: alepha48.TOptional<alepha48.TString>;
1679
+ declare const apiLinksResponseSchema: alepha60.TObject<{
1680
+ prefix: alepha60.TOptional<alepha60.TString>;
1681
+ links: alepha60.TArray<alepha60.TObject<{
1682
+ name: alepha60.TString;
1683
+ group: alepha60.TOptional<alepha60.TString>;
1684
+ path: alepha60.TString;
1685
+ method: alepha60.TOptional<alepha60.TString>;
1686
+ requestBodyType: alepha60.TOptional<alepha60.TString>;
1687
+ service: alepha60.TOptional<alepha60.TString>;
1688
1688
  }>>;
1689
1689
  }>;
1690
1690
  type ApiLinksResponse = Static<typeof apiLinksResponseSchema>;
@@ -1790,14 +1790,14 @@ declare class ReactBrowserRouterProvider extends RouterProvider<BrowserRoute> {
1790
1790
  protected readonly alepha: Alepha;
1791
1791
  protected readonly pageApi: ReactPageProvider;
1792
1792
  add(entry: PageRouteEntry): void;
1793
- protected readonly configure: alepha48.HookPrimitive<"configure">;
1793
+ protected readonly configure: alepha60.HookPrimitive<"configure">;
1794
1794
  transition(url: URL, previous?: PreviousLayerData[], meta?: {}): Promise<string | void>;
1795
1795
  root(state: ReactRouterState): ReactNode;
1796
1796
  }
1797
1797
  //#endregion
1798
1798
  //#region src/core/providers/ReactBrowserProvider.d.ts
1799
- declare const envSchema$1: alepha48.TObject<{
1800
- REACT_ROOT_ID: alepha48.TString;
1799
+ declare const envSchema$1: alepha60.TObject<{
1800
+ REACT_ROOT_ID: alepha60.TString;
1801
1801
  }>;
1802
1802
  declare module "alepha" {
1803
1803
  interface Env extends Partial<Static<typeof envSchema$1>> {}
@@ -1805,8 +1805,8 @@ declare module "alepha" {
1805
1805
  /**
1806
1806
  * React browser renderer configuration atom
1807
1807
  */
1808
- declare const reactBrowserOptions: alepha48.Atom<alepha48.TObject<{
1809
- scrollRestoration: alepha48.TUnsafe<"top" | "manual">;
1808
+ declare const reactBrowserOptions: alepha60.Atom<alepha60.TObject<{
1809
+ scrollRestoration: alepha60.TUnsafe<"top" | "manual">;
1810
1810
  }>, "alepha.react.browser.options">;
1811
1811
  type ReactBrowserRendererOptions = Static<typeof reactBrowserOptions.schema>;
1812
1812
  declare module "alepha" {
@@ -1854,8 +1854,8 @@ declare class ReactBrowserProvider {
1854
1854
  * Get embedded layers from the server.
1855
1855
  */
1856
1856
  protected getHydrationState(): ReactHydrationState | undefined;
1857
- protected readonly onTransitionEnd: alepha48.HookPrimitive<"react:transition:end">;
1858
- readonly ready: alepha48.HookPrimitive<"ready">;
1857
+ protected readonly onTransitionEnd: alepha60.HookPrimitive<"react:transition:end">;
1858
+ readonly ready: alepha60.HookPrimitive<"ready">;
1859
1859
  }
1860
1860
  interface RouterGoOptions {
1861
1861
  replace?: boolean;
@@ -2591,7 +2591,7 @@ declare class ServerStaticProvider {
2591
2591
  protected readonly fileDetector: FileDetector;
2592
2592
  protected readonly log: Logger;
2593
2593
  protected readonly directories: ServeDirectory[];
2594
- protected readonly configure: alepha48.HookPrimitive<"configure">;
2594
+ protected readonly configure: alepha60.HookPrimitive<"configure">;
2595
2595
  createStaticServer(options: ServePrimitiveOptions): Promise<void>;
2596
2596
  createFileHandler(filepath: string, options: ServePrimitiveOptions): Promise<ServerHandler>;
2597
2597
  protected getCacheFileTypes(): string[];
@@ -2607,10 +2607,10 @@ interface ServeDirectory {
2607
2607
  }
2608
2608
  //#endregion
2609
2609
  //#region src/core/providers/ReactServerProvider.d.ts
2610
- declare const envSchema: alepha48.TObject<{
2611
- REACT_SSR_ENABLED: alepha48.TOptional<alepha48.TBoolean>;
2612
- REACT_ROOT_ID: alepha48.TString;
2613
- REACT_SERVER_TEMPLATE: alepha48.TOptional<alepha48.TString>;
2610
+ declare const envSchema: alepha60.TObject<{
2611
+ REACT_SSR_ENABLED: alepha60.TOptional<alepha60.TBoolean>;
2612
+ REACT_ROOT_ID: alepha60.TString;
2613
+ REACT_SERVER_TEMPLATE: alepha60.TOptional<alepha60.TString>;
2614
2614
  }>;
2615
2615
  declare module "alepha" {
2616
2616
  interface Env extends Partial<Static<typeof envSchema>> {}
@@ -2621,11 +2621,11 @@ declare module "alepha" {
2621
2621
  /**
2622
2622
  * React server provider configuration atom
2623
2623
  */
2624
- declare const reactServerOptions: alepha48.Atom<alepha48.TObject<{
2625
- publicDir: alepha48.TString;
2626
- staticServer: alepha48.TObject<{
2627
- disabled: alepha48.TBoolean;
2628
- path: alepha48.TString;
2624
+ declare const reactServerOptions: alepha60.Atom<alepha60.TObject<{
2625
+ publicDir: alepha60.TString;
2626
+ staticServer: alepha60.TObject<{
2627
+ disabled: alepha60.TBoolean;
2628
+ path: alepha60.TString;
2629
2629
  }>;
2630
2630
  }>, "alepha.react.server.options">;
2631
2631
  type ReactServerProviderOptions = Static<typeof reactServerOptions.schema>;
@@ -2659,7 +2659,7 @@ declare class ReactServerProvider {
2659
2659
  /**
2660
2660
  * Configure the React server provider.
2661
2661
  */
2662
- readonly onConfigure: alepha48.HookPrimitive<"configure">;
2662
+ readonly onConfigure: alepha60.HookPrimitive<"configure">;
2663
2663
  get template(): string;
2664
2664
  protected registerPages(templateLoader: TemplateLoader): Promise<void>;
2665
2665
  /**
@@ -2795,7 +2795,7 @@ declare module "alepha" {
2795
2795
  * @see {@link $page}
2796
2796
  * @module alepha.react
2797
2797
  */
2798
- declare const AlephaReact: alepha48.Service<alepha48.Module>;
2798
+ declare const AlephaReact: alepha60.Service<alepha60.Module>;
2799
2799
  //#endregion
2800
2800
  export { $page, ActionContext, AlephaContext, AlephaReact, AnchorProps, ClientOnly, ConcretePageRoute, CreateLayersResult, ErrorBoundary, ErrorHandler, ErrorViewer, Layer, Link, type LinkProps, _default as NestedView, NotFoundPage as NotFound, PageAnimation, PageConfigSchema, PagePrimitive, PagePrimitiveOptions, PagePrimitiveRenderOptions, PagePrimitiveRenderResult, PageRequestConfig, PageResolve, PageRoute, PageRouteEntry, PreviousLayerData, ReactBrowserProvider, ReactBrowserRendererOptions, ReactHydrationState, ReactPageProvider, ReactRouter, ReactRouterState, ReactServerProvider, ReactServerProviderOptions, Redirection, RouterGoOptions, RouterLayerContext, RouterLayerContextValue, RouterRenderOptions, RouterStackItem, TPropsDefault, TPropsParentDefault, TransitionOptions, UseActionOptions, UseActionReturn, UseActiveHook, UseActiveOptions, UseQueryParamsHookOptions, UseSchemaReturn, UseStoreReturn, VirtualRouter, isPageRoute, reactBrowserOptions, reactServerOptions, ssrSchemaLoading, useAction, useActive, useAlepha, useClient, useEvents, useInject, useQueryParams, useRouter, useRouterState, useSchema, useStore };
2801
2801
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import * as alepha16 from "alepha";
1
+ import * as alepha31 from "alepha";
2
2
  import { Alepha, Async, KIND, LogLevel, LoggerInterface, Primitive, Static, TSchema, TypeBoxError } from "alepha";
3
3
  import dayjsDuration from "dayjs/plugin/duration.js";
4
4
  import DayjsApi, { Dayjs, ManipulateType, PluginFunc } from "dayjs";
@@ -15,8 +15,8 @@ declare class DateTimeProvider {
15
15
  protected readonly timeouts: Timeout[];
16
16
  protected readonly intervals: Interval[];
17
17
  constructor();
18
- protected readonly onStart: alepha16.HookPrimitive<"start">;
19
- protected readonly onStop: alepha16.HookPrimitive<"stop">;
18
+ protected readonly onStart: alepha31.HookPrimitive<"start">;
19
+ protected readonly onStop: alepha31.HookPrimitive<"stop">;
20
20
  setLocale(locale: string): void;
21
21
  isDateTime(value: unknown): value is DateTime;
22
22
  /**
@@ -138,15 +138,15 @@ interface LocalizeProps {
138
138
  declare const Localize: (props: LocalizeProps) => string;
139
139
  //#endregion
140
140
  //#region ../alepha/src/logger/schemas/logEntrySchema.d.ts
141
- declare const logEntrySchema: alepha16.TObject<{
142
- level: alepha16.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
143
- message: alepha16.TString;
144
- service: alepha16.TString;
145
- module: alepha16.TString;
146
- context: alepha16.TOptional<alepha16.TString>;
147
- app: alepha16.TOptional<alepha16.TString>;
148
- data: alepha16.TOptional<alepha16.TAny>;
149
- timestamp: alepha16.TNumber;
141
+ declare const logEntrySchema: alepha31.TObject<{
142
+ level: alepha31.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
143
+ message: alepha31.TString;
144
+ service: alepha31.TString;
145
+ module: alepha31.TString;
146
+ context: alepha31.TOptional<alepha31.TString>;
147
+ app: alepha31.TOptional<alepha31.TString>;
148
+ data: alepha31.TOptional<alepha31.TAny>;
149
+ timestamp: alepha31.TNumber;
150
150
  }>;
151
151
  type LogEntry = Static<typeof logEntrySchema>;
152
152
  //#endregion
@@ -188,7 +188,7 @@ declare class Logger implements LoggerInterface {
188
188
  }
189
189
  //#endregion
190
190
  //#region ../alepha/src/logger/index.d.ts
191
- declare const envSchema: alepha16.TObject<{
191
+ declare const envSchema: alepha31.TObject<{
192
192
  /**
193
193
  * Default log level for the application.
194
194
  *
@@ -205,14 +205,14 @@ declare const envSchema: alepha16.TObject<{
205
205
  * LOG_LEVEL=my.module.name:debug,info # Set debug level for my.module.name and info for all other modules
206
206
  * LOG_LEVEL=alepha:trace, info # Set trace level for all alepha modules and info for all other modules
207
207
  */
208
- LOG_LEVEL: alepha16.TOptional<alepha16.TString>;
208
+ LOG_LEVEL: alepha31.TOptional<alepha31.TString>;
209
209
  /**
210
210
  * Built-in log formats.
211
211
  * - "json" - JSON format, useful for structured logging and log aggregation. {@link JsonFormatterProvider}
212
212
  * - "pretty" - Simple text format, human-readable, with colors. {@link SimpleFormatterProvider}
213
213
  * - "raw" - Raw format, no formatting, just the message. {@link RawFormatterProvider}
214
214
  */
215
- LOG_FORMAT: alepha16.TOptional<alepha16.TUnsafe<"json" | "pretty" | "raw">>;
215
+ LOG_FORMAT: alepha31.TOptional<alepha31.TUnsafe<"json" | "pretty" | "raw">>;
216
216
  }>;
217
217
  declare module "alepha" {
218
218
  interface Env extends Partial<Static<typeof envSchema>> {}
@@ -312,7 +312,7 @@ declare class I18nProvider<S extends object, K$1 extends keyof ServiceDictionary
312
312
  protected log: Logger;
313
313
  protected alepha: Alepha;
314
314
  protected dateTimeProvider: DateTimeProvider;
315
- protected cookie: AbstractCookiePrimitive<alepha16.TString>;
315
+ protected cookie: AbstractCookiePrimitive<alepha31.TString>;
316
316
  readonly registry: Array<{
317
317
  target: string;
318
318
  name: string;
@@ -331,11 +331,11 @@ declare class I18nProvider<S extends object, K$1 extends keyof ServiceDictionary
331
331
  };
332
332
  get languages(): string[];
333
333
  constructor();
334
- protected readonly onRender: alepha16.HookPrimitive<"server:onRequest">;
335
- protected readonly onStart: alepha16.HookPrimitive<"start">;
334
+ protected readonly onRender: alepha31.HookPrimitive<"server:onRequest">;
335
+ protected readonly onStart: alepha31.HookPrimitive<"start">;
336
336
  protected refreshLocale(): void;
337
337
  setLang: (lang: string) => Promise<void>;
338
- protected readonly mutate: alepha16.HookPrimitive<"state:mutate">;
338
+ protected readonly mutate: alepha31.HookPrimitive<"state:mutate">;
339
339
  get lang(): string;
340
340
  translate: (key: string, args?: string[]) => string;
341
341
  readonly l: (value: I18nLocalizeType, options?: I18nLocalizeOptions) => string;
@@ -431,7 +431,7 @@ declare module "alepha" {
431
431
  *
432
432
  * @module alepha.react.i18n
433
433
  */
434
- declare const AlephaReactI18n: alepha16.Service<alepha16.Module>;
434
+ declare const AlephaReactI18n: alepha31.Service<alepha31.Module>;
435
435
  //#endregion
436
436
  export { $dictionary, AlephaReactI18n, DictionaryPrimitive, DictionaryPrimitiveOptions, I18nLocalizeOptions, I18nLocalizeType, I18nProvider, Localize, type LocalizeProps, ServiceDictionary, useI18n };
437
437
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@alepha/react",
3
3
  "description": "React components and hooks for building Alepha applications.",
4
4
  "author": "Nicolas Foures",
5
- "version": "0.13.3",
5
+ "version": "0.13.4",
6
6
  "type": "module",
7
7
  "engines": {
8
8
  "node": ">=22.0.0"
@@ -25,13 +25,13 @@
25
25
  "@testing-library/react": "^16.3.0",
26
26
  "@types/react": "^19.2.7",
27
27
  "@types/react-dom": "^19.2.3",
28
- "alepha": "0.13.3",
28
+ "alepha": "0.13.4",
29
29
  "jsdom": "^27.2.0",
30
30
  "react": "^19.2.1",
31
31
  "vitest": "^4.0.15"
32
32
  },
33
33
  "peerDependencies": {
34
- "alepha": "0.13.3",
34
+ "alepha": "0.13.4",
35
35
  "react": "^19.2.0"
36
36
  },
37
37
  "scripts": {