@alepha/react 0.13.3 → 0.13.5
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/auth/index.browser.js +3 -3
- package/dist/auth/index.d.ts +117 -117
- package/dist/auth/index.js +4 -4
- package/dist/core/index.browser.js +28 -28
- package/dist/core/index.d.ts +149 -149
- package/dist/core/index.js +29 -29
- package/dist/core/index.native.js +9 -9
- package/dist/form/index.d.ts +12 -12
- package/dist/form/index.js +6 -6
- package/dist/head/index.browser.js +5 -5
- package/dist/head/index.d.ts +30 -30
- package/dist/head/index.js +6 -6
- package/dist/i18n/index.d.ts +13 -13
- package/dist/i18n/index.js +5 -5
- package/dist/websocket/index.d.ts +7 -7
- package/dist/websocket/index.js +1 -1
- package/package.json +3 -3
package/dist/core/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
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";
|
|
@@ -9,21 +9,21 @@ import { ReadableStream } from "node:stream/web";
|
|
|
9
9
|
import dayjsDuration from "dayjs/plugin/duration.js";
|
|
10
10
|
import DayjsApi, { Dayjs, ManipulateType, PluginFunc } from "dayjs";
|
|
11
11
|
|
|
12
|
-
//#region
|
|
13
|
-
declare const errorSchema:
|
|
14
|
-
error:
|
|
15
|
-
status:
|
|
16
|
-
message:
|
|
17
|
-
details:
|
|
18
|
-
requestId:
|
|
19
|
-
cause:
|
|
20
|
-
name:
|
|
21
|
-
message:
|
|
12
|
+
//#region ../../../alepha/src/server/schemas/errorSchema.d.ts
|
|
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>;
|
|
25
25
|
//#endregion
|
|
26
|
-
//#region
|
|
26
|
+
//#region ../../../alepha/src/server/errors/HttpError.d.ts
|
|
27
27
|
declare class HttpError extends AlephaError {
|
|
28
28
|
name: string;
|
|
29
29
|
static is: (error: unknown, status?: number) => error is HttpErrorLike;
|
|
@@ -42,7 +42,7 @@ interface HttpErrorLike extends Error {
|
|
|
42
42
|
status: number;
|
|
43
43
|
}
|
|
44
44
|
//#endregion
|
|
45
|
-
//#region
|
|
45
|
+
//#region ../../../alepha/src/router/providers/RouterProvider.d.ts
|
|
46
46
|
declare abstract class RouterProvider<T$1 extends Route = Route> {
|
|
47
47
|
protected routePathRegex: RegExp;
|
|
48
48
|
protected tree: Tree<T$1>;
|
|
@@ -86,11 +86,11 @@ interface Tree<T$1 extends Route> {
|
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
88
|
//#endregion
|
|
89
|
-
//#region
|
|
89
|
+
//#region ../../../alepha/src/server/constants/routeMethods.d.ts
|
|
90
90
|
declare const routeMethods: readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS", "CONNECT", "TRACE"];
|
|
91
91
|
type RouteMethod = (typeof routeMethods)[number];
|
|
92
92
|
//#endregion
|
|
93
|
-
//#region
|
|
93
|
+
//#region ../../../alepha/src/server/helpers/ServerReply.d.ts
|
|
94
94
|
/**
|
|
95
95
|
* Helper for building server replies.
|
|
96
96
|
*/
|
|
@@ -118,7 +118,7 @@ declare class ServerReply {
|
|
|
118
118
|
setBody(body: any): this;
|
|
119
119
|
}
|
|
120
120
|
//#endregion
|
|
121
|
-
//#region
|
|
121
|
+
//#region ../../../alepha/src/server/services/UserAgentParser.d.ts
|
|
122
122
|
interface UserAgentInfo {
|
|
123
123
|
os: "Windows" | "Android" | "Ubuntu" | "MacOS" | "iOS" | "Linux" | "FreeBSD" | "OpenBSD" | "ChromeOS" | "BlackBerry" | "Symbian" | "Windows Phone";
|
|
124
124
|
browser: "Chrome" | "Firefox" | "Safari" | "Edge" | "Opera" | "Internet Explorer" | "Brave" | "Vivaldi" | "Samsung Browser" | "UC Browser" | "Yandex";
|
|
@@ -134,7 +134,7 @@ declare class UserAgentParser {
|
|
|
134
134
|
parse(userAgent?: string): UserAgentInfo;
|
|
135
135
|
}
|
|
136
136
|
//#endregion
|
|
137
|
-
//#region
|
|
137
|
+
//#region ../../../alepha/src/server/interfaces/ServerRequest.d.ts
|
|
138
138
|
type TRequestBody = TObject | TString | TArray | TRecord | TStream;
|
|
139
139
|
type TResponseBody = TObject | TString | TRecord | TFile | TArray | TStream | TVoid;
|
|
140
140
|
interface RequestConfigSchema {
|
|
@@ -256,20 +256,20 @@ interface WebRequestEvent {
|
|
|
256
256
|
res?: Response;
|
|
257
257
|
}
|
|
258
258
|
//#endregion
|
|
259
|
-
//#region
|
|
260
|
-
declare const logEntrySchema:
|
|
261
|
-
level:
|
|
262
|
-
message:
|
|
263
|
-
service:
|
|
264
|
-
module:
|
|
265
|
-
context:
|
|
266
|
-
app:
|
|
267
|
-
data:
|
|
268
|
-
timestamp:
|
|
259
|
+
//#region ../../../alepha/src/logger/schemas/logEntrySchema.d.ts
|
|
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
|
|
272
|
-
//#region
|
|
272
|
+
//#region ../../../alepha/src/datetime/providers/DateTimeProvider.d.ts
|
|
273
273
|
type DateTime = DayjsApi.Dayjs;
|
|
274
274
|
type Duration = dayjsDuration.Duration;
|
|
275
275
|
type DurationLike = number | dayjsDuration.Duration | [number, ManipulateType];
|
|
@@ -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:
|
|
284
|
-
protected readonly onStop:
|
|
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
|
/**
|
|
@@ -375,17 +375,17 @@ interface Timeout {
|
|
|
375
375
|
clear: () => void;
|
|
376
376
|
}
|
|
377
377
|
//#endregion
|
|
378
|
-
//#region
|
|
378
|
+
//#region ../../../alepha/src/logger/providers/LogDestinationProvider.d.ts
|
|
379
379
|
declare abstract class LogDestinationProvider {
|
|
380
380
|
abstract write(message: string, entry: LogEntry): void;
|
|
381
381
|
}
|
|
382
382
|
//#endregion
|
|
383
|
-
//#region
|
|
383
|
+
//#region ../../../alepha/src/logger/providers/LogFormatterProvider.d.ts
|
|
384
384
|
declare abstract class LogFormatterProvider {
|
|
385
385
|
abstract format(entry: LogEntry): string;
|
|
386
386
|
}
|
|
387
387
|
//#endregion
|
|
388
|
-
//#region
|
|
388
|
+
//#region ../../../alepha/src/logger/services/Logger.d.ts
|
|
389
389
|
declare class Logger implements LoggerInterface {
|
|
390
390
|
protected readonly alepha: Alepha;
|
|
391
391
|
protected readonly formatter: LogFormatterProvider;
|
|
@@ -412,8 +412,8 @@ declare class Logger implements LoggerInterface {
|
|
|
412
412
|
protected emit(entry: LogEntry, message?: string): void;
|
|
413
413
|
}
|
|
414
414
|
//#endregion
|
|
415
|
-
//#region
|
|
416
|
-
declare const envSchema$6:
|
|
415
|
+
//#region ../../../alepha/src/logger/index.d.ts
|
|
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:
|
|
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:
|
|
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>> {}
|
|
@@ -455,7 +455,7 @@ declare module "alepha" {
|
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
457
|
//#endregion
|
|
458
|
-
//#region
|
|
458
|
+
//#region ../../../alepha/src/server/services/ServerRequestParser.d.ts
|
|
459
459
|
declare class ServerRequestParser {
|
|
460
460
|
protected readonly alepha: Alepha;
|
|
461
461
|
protected readonly userAgentParser: UserAgentParser;
|
|
@@ -465,7 +465,7 @@ declare class ServerRequestParser {
|
|
|
465
465
|
getRequestIp(request: ServerRequestData): string | undefined;
|
|
466
466
|
}
|
|
467
467
|
//#endregion
|
|
468
|
-
//#region
|
|
468
|
+
//#region ../../../alepha/src/server/providers/ServerTimingProvider.d.ts
|
|
469
469
|
type TimingMap = Record<string, [number, number]>;
|
|
470
470
|
declare class ServerTimingProvider {
|
|
471
471
|
protected readonly log: Logger;
|
|
@@ -474,15 +474,15 @@ declare class ServerTimingProvider {
|
|
|
474
474
|
prefix: string;
|
|
475
475
|
disabled: boolean;
|
|
476
476
|
};
|
|
477
|
-
readonly onRequest:
|
|
478
|
-
readonly 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;
|
|
482
482
|
protected setDuration(name: string, timing: TimingMap): void;
|
|
483
483
|
}
|
|
484
484
|
//#endregion
|
|
485
|
-
//#region
|
|
485
|
+
//#region ../../../alepha/src/server/providers/ServerRouterProvider.d.ts
|
|
486
486
|
/**
|
|
487
487
|
* Main router for all routes on the server side.
|
|
488
488
|
*
|
|
@@ -521,7 +521,7 @@ declare class ServerRouterProvider extends RouterProvider<ServerRouteMatcher> {
|
|
|
521
521
|
}, request: ServerRequestConfig): void;
|
|
522
522
|
}
|
|
523
523
|
//#endregion
|
|
524
|
-
//#region
|
|
524
|
+
//#region ../../../alepha/src/server/providers/ServerProvider.d.ts
|
|
525
525
|
/**
|
|
526
526
|
* Base server provider to handle incoming requests and route them.
|
|
527
527
|
*
|
|
@@ -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:
|
|
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:
|
|
546
|
+
protected readonly onWebRequest: alepha60.HookPrimitive<"web:request">;
|
|
547
547
|
/**
|
|
548
548
|
* Handle Node.js HTTP request event.
|
|
549
549
|
*
|
|
@@ -560,7 +560,7 @@ declare class ServerProvider {
|
|
|
560
560
|
protected isViteNotFound(url?: string, route?: Route, params?: Record<string, string>): boolean;
|
|
561
561
|
}
|
|
562
562
|
//#endregion
|
|
563
|
-
//#region
|
|
563
|
+
//#region ../../../alepha/src/cache/providers/CacheProvider.d.ts
|
|
564
564
|
/**
|
|
565
565
|
* Cache provider interface.
|
|
566
566
|
*
|
|
@@ -603,7 +603,7 @@ declare abstract class CacheProvider {
|
|
|
603
603
|
abstract clear(): Promise<void>;
|
|
604
604
|
}
|
|
605
605
|
//#endregion
|
|
606
|
-
//#region
|
|
606
|
+
//#region ../../../alepha/src/cache/primitives/$cache.d.ts
|
|
607
607
|
interface CachePrimitiveOptions<TReturn = any, TParameter extends any[] = any[]> {
|
|
608
608
|
/**
|
|
609
609
|
* The cache name. This is useful for invalidating multiple caches at once.
|
|
@@ -670,7 +670,7 @@ interface CachePrimitiveFn<TReturn = any, TParameter extends any[] = any[]> exte
|
|
|
670
670
|
(...args: TParameter): Promise<TReturn>;
|
|
671
671
|
}
|
|
672
672
|
//#endregion
|
|
673
|
-
//#region
|
|
673
|
+
//#region ../../../alepha/src/server/services/HttpClient.d.ts
|
|
674
674
|
declare class HttpClient {
|
|
675
675
|
protected readonly log: Logger;
|
|
676
676
|
protected readonly alepha: Alepha;
|
|
@@ -742,7 +742,7 @@ interface HttpAction {
|
|
|
742
742
|
};
|
|
743
743
|
}
|
|
744
744
|
//#endregion
|
|
745
|
-
//#region
|
|
745
|
+
//#region ../../../alepha/src/server/primitives/$action.d.ts
|
|
746
746
|
interface ActionPrimitiveOptions<TConfig extends RequestConfigSchema> extends Omit<ServerRoute, "handler" | "path" | "schema" | "mapParams"> {
|
|
747
747
|
/**
|
|
748
748
|
* Name of the action.
|
|
@@ -877,25 +877,25 @@ type ServerActionHandler<TConfig extends RequestConfigSchema = RequestConfigSche
|
|
|
877
877
|
*/
|
|
878
878
|
interface ServerActionRequest<TConfig extends RequestConfigSchema> extends ServerRequest<TConfig> {}
|
|
879
879
|
//#endregion
|
|
880
|
-
//#region
|
|
881
|
-
declare const envSchema$5:
|
|
882
|
-
SERVER_PORT:
|
|
883
|
-
SERVER_HOST:
|
|
880
|
+
//#region ../../../alepha/src/server/providers/BunHttpServerProvider.d.ts
|
|
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
|
-
//#region
|
|
890
|
-
declare const envSchema$4:
|
|
891
|
-
SERVER_PORT:
|
|
892
|
-
SERVER_HOST:
|
|
889
|
+
//#region ../../../alepha/src/server/providers/NodeHttpServerProvider.d.ts
|
|
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>> {}
|
|
896
896
|
}
|
|
897
897
|
//#endregion
|
|
898
|
-
//#region
|
|
898
|
+
//#region ../../../alepha/src/server/index.d.ts
|
|
899
899
|
declare module "alepha" {
|
|
900
900
|
interface State {
|
|
901
901
|
"alepha.node.server"?: Server;
|
|
@@ -951,7 +951,7 @@ declare module "alepha" {
|
|
|
951
951
|
}
|
|
952
952
|
}
|
|
953
953
|
//#endregion
|
|
954
|
-
//#region
|
|
954
|
+
//#region ../../../alepha/src/server-cache/providers/ServerCacheProvider.d.ts
|
|
955
955
|
declare module "alepha/server" {
|
|
956
956
|
interface ServerRoute {
|
|
957
957
|
/**
|
|
@@ -1048,7 +1048,7 @@ boolean
|
|
|
1048
1048
|
};
|
|
1049
1049
|
};
|
|
1050
1050
|
//#endregion
|
|
1051
|
-
//#region src/core/components/ClientOnly.d.ts
|
|
1051
|
+
//#region ../../src/core/components/ClientOnly.d.ts
|
|
1052
1052
|
interface ClientOnlyProps {
|
|
1053
1053
|
fallback?: ReactNode;
|
|
1054
1054
|
disabled?: boolean;
|
|
@@ -1065,7 +1065,7 @@ interface ClientOnlyProps {
|
|
|
1065
1065
|
*/
|
|
1066
1066
|
declare const ClientOnly: (props: PropsWithChildren<ClientOnlyProps>) => ReactNode;
|
|
1067
1067
|
//#endregion
|
|
1068
|
-
//#region src/core/errors/Redirection.d.ts
|
|
1068
|
+
//#region ../../src/core/errors/Redirection.d.ts
|
|
1069
1069
|
/**
|
|
1070
1070
|
* Used for Redirection during the page loading.
|
|
1071
1071
|
*
|
|
@@ -1076,9 +1076,9 @@ declare class Redirection extends Error {
|
|
|
1076
1076
|
constructor(redirect: string);
|
|
1077
1077
|
}
|
|
1078
1078
|
//#endregion
|
|
1079
|
-
//#region src/core/providers/ReactPageProvider.d.ts
|
|
1080
|
-
declare const envSchema$3:
|
|
1081
|
-
REACT_STRICT_MODE:
|
|
1079
|
+
//#region ../../src/core/providers/ReactPageProvider.d.ts
|
|
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:
|
|
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;
|
|
@@ -1209,7 +1209,7 @@ interface CreateLayersResult {
|
|
|
1209
1209
|
state?: ReactRouterState;
|
|
1210
1210
|
}
|
|
1211
1211
|
//#endregion
|
|
1212
|
-
//#region src/core/services/ReactPageService.d.ts
|
|
1212
|
+
//#region ../../src/core/services/ReactPageService.d.ts
|
|
1213
1213
|
declare class ReactPageService {
|
|
1214
1214
|
fetch(pathname: string, options?: PagePrimitiveRenderOptions): Promise<{
|
|
1215
1215
|
html: string;
|
|
@@ -1218,7 +1218,7 @@ declare class ReactPageService {
|
|
|
1218
1218
|
render(name: string, options?: PagePrimitiveRenderOptions): Promise<PagePrimitiveRenderResult>;
|
|
1219
1219
|
}
|
|
1220
1220
|
//#endregion
|
|
1221
|
-
//#region src/core/primitives/$page.d.ts
|
|
1221
|
+
//#region ../../src/core/primitives/$page.d.ts
|
|
1222
1222
|
/**
|
|
1223
1223
|
* Main primitive for defining a React route in the application.
|
|
1224
1224
|
*
|
|
@@ -1539,20 +1539,20 @@ type CssAnimation = {
|
|
|
1539
1539
|
timing?: string;
|
|
1540
1540
|
};
|
|
1541
1541
|
//#endregion
|
|
1542
|
-
//#region
|
|
1543
|
-
declare const userAccountInfoSchema:
|
|
1544
|
-
id:
|
|
1545
|
-
name:
|
|
1546
|
-
email:
|
|
1547
|
-
username:
|
|
1548
|
-
picture:
|
|
1549
|
-
sessionId:
|
|
1550
|
-
organizations:
|
|
1551
|
-
roles:
|
|
1542
|
+
//#region ../../../alepha/src/security/schemas/userAccountInfoSchema.d.ts
|
|
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
|
|
1555
|
-
//#region
|
|
1555
|
+
//#region ../../../alepha/src/security/interfaces/UserAccountToken.d.ts
|
|
1556
1556
|
/**
|
|
1557
1557
|
* Add contextual metadata to a user account info.
|
|
1558
1558
|
* E.g. UserAccountToken is a UserAccountInfo during a request.
|
|
@@ -1573,15 +1573,15 @@ interface UserAccountToken extends UserAccount {
|
|
|
1573
1573
|
ownership?: string | boolean;
|
|
1574
1574
|
}
|
|
1575
1575
|
//#endregion
|
|
1576
|
-
//#region
|
|
1577
|
-
declare const envSchema$2:
|
|
1578
|
-
APP_SECRET:
|
|
1576
|
+
//#region ../../../alepha/src/security/providers/SecurityProvider.d.ts
|
|
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>> {}
|
|
1582
1582
|
}
|
|
1583
1583
|
//#endregion
|
|
1584
|
-
//#region
|
|
1584
|
+
//#region ../../../alepha/src/security/index.d.ts
|
|
1585
1585
|
declare module "alepha" {
|
|
1586
1586
|
interface Hooks {
|
|
1587
1587
|
"security:user:created": {
|
|
@@ -1603,19 +1603,19 @@ declare module "alepha" {
|
|
|
1603
1603
|
* @module alepha.security
|
|
1604
1604
|
*/
|
|
1605
1605
|
//#endregion
|
|
1606
|
-
//#region
|
|
1606
|
+
//#region ../../../alepha/src/server-security/providers/ServerBasicAuthProvider.d.ts
|
|
1607
1607
|
interface BasicAuthOptions {
|
|
1608
1608
|
username: string;
|
|
1609
1609
|
password: string;
|
|
1610
1610
|
}
|
|
1611
1611
|
//#endregion
|
|
1612
|
-
//#region
|
|
1612
|
+
//#region ../../../alepha/src/server-security/providers/ServerSecurityProvider.d.ts
|
|
1613
1613
|
type ServerRouteSecure = {
|
|
1614
1614
|
realm?: string;
|
|
1615
1615
|
basic?: BasicAuthOptions;
|
|
1616
1616
|
};
|
|
1617
1617
|
//#endregion
|
|
1618
|
-
//#region
|
|
1618
|
+
//#region ../../../alepha/src/server-security/index.d.ts
|
|
1619
1619
|
declare module "alepha" {
|
|
1620
1620
|
interface State {
|
|
1621
1621
|
/**
|
|
@@ -1667,30 +1667,30 @@ declare module "alepha/server" {
|
|
|
1667
1667
|
* @module alepha.server.security
|
|
1668
1668
|
*/
|
|
1669
1669
|
//#endregion
|
|
1670
|
-
//#region
|
|
1671
|
-
declare const apiLinkSchema:
|
|
1672
|
-
name:
|
|
1673
|
-
group:
|
|
1674
|
-
path:
|
|
1675
|
-
method:
|
|
1676
|
-
requestBodyType:
|
|
1677
|
-
service:
|
|
1670
|
+
//#region ../../../alepha/src/server-links/schemas/apiLinksResponseSchema.d.ts
|
|
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:
|
|
1680
|
-
prefix:
|
|
1681
|
-
links:
|
|
1682
|
-
name:
|
|
1683
|
-
group:
|
|
1684
|
-
path:
|
|
1685
|
-
method:
|
|
1686
|
-
requestBodyType:
|
|
1687
|
-
service:
|
|
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>;
|
|
1691
1691
|
type ApiLink = Static<typeof apiLinkSchema>;
|
|
1692
1692
|
//#endregion
|
|
1693
|
-
//#region
|
|
1693
|
+
//#region ../../../alepha/src/server-links/providers/LinkProvider.d.ts
|
|
1694
1694
|
/**
|
|
1695
1695
|
* Browser, SSR friendly, service to handle links.
|
|
1696
1696
|
*/
|
|
@@ -1757,7 +1757,7 @@ interface VirtualAction<T$1 extends RequestConfigSchema> extends Pick<ActionPrim
|
|
|
1757
1757
|
can: () => boolean;
|
|
1758
1758
|
}
|
|
1759
1759
|
//#endregion
|
|
1760
|
-
//#region
|
|
1760
|
+
//#region ../../../alepha/src/server-links/index.d.ts
|
|
1761
1761
|
declare module "alepha" {
|
|
1762
1762
|
interface State {
|
|
1763
1763
|
/**
|
|
@@ -1781,7 +1781,7 @@ declare module "alepha" {
|
|
|
1781
1781
|
* @module alepha.server.links
|
|
1782
1782
|
*/
|
|
1783
1783
|
//#endregion
|
|
1784
|
-
//#region src/core/providers/ReactBrowserRouterProvider.d.ts
|
|
1784
|
+
//#region ../../src/core/providers/ReactBrowserRouterProvider.d.ts
|
|
1785
1785
|
interface BrowserRoute extends Route {
|
|
1786
1786
|
page: PageRoute;
|
|
1787
1787
|
}
|
|
@@ -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:
|
|
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
|
-
//#region src/core/providers/ReactBrowserProvider.d.ts
|
|
1799
|
-
declare const envSchema$1:
|
|
1800
|
-
REACT_ROOT_ID:
|
|
1798
|
+
//#region ../../src/core/providers/ReactBrowserProvider.d.ts
|
|
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:
|
|
1809
|
-
scrollRestoration:
|
|
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:
|
|
1858
|
-
readonly 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;
|
|
@@ -1879,10 +1879,10 @@ interface RouterRenderOptions {
|
|
|
1879
1879
|
meta?: Record<string, any>;
|
|
1880
1880
|
}
|
|
1881
1881
|
//#endregion
|
|
1882
|
-
//#region src/core/contexts/AlephaContext.d.ts
|
|
1882
|
+
//#region ../../src/core/contexts/AlephaContext.d.ts
|
|
1883
1883
|
declare const AlephaContext: react0.Context<Alepha | undefined>;
|
|
1884
1884
|
//#endregion
|
|
1885
|
-
//#region src/core/hooks/useAction.d.ts
|
|
1885
|
+
//#region ../../src/core/hooks/useAction.d.ts
|
|
1886
1886
|
/**
|
|
1887
1887
|
* Hook for handling async actions with automatic error handling and event emission.
|
|
1888
1888
|
*
|
|
@@ -2112,7 +2112,7 @@ interface UseActionReturn<Args extends any[], Result> {
|
|
|
2112
2112
|
cancel: () => void;
|
|
2113
2113
|
}
|
|
2114
2114
|
//#endregion
|
|
2115
|
-
//#region src/core/hooks/useAlepha.d.ts
|
|
2115
|
+
//#region ../../src/core/hooks/useAlepha.d.ts
|
|
2116
2116
|
/**
|
|
2117
2117
|
* Main Alepha hook.
|
|
2118
2118
|
*
|
|
@@ -2127,7 +2127,7 @@ interface UseActionReturn<Args extends any[], Result> {
|
|
|
2127
2127
|
*/
|
|
2128
2128
|
declare const useAlepha: () => Alepha;
|
|
2129
2129
|
//#endregion
|
|
2130
|
-
//#region src/core/hooks/useClient.d.ts
|
|
2130
|
+
//#region ../../src/core/hooks/useClient.d.ts
|
|
2131
2131
|
/**
|
|
2132
2132
|
* Hook to get a virtual client for the specified scope.
|
|
2133
2133
|
*
|
|
@@ -2135,7 +2135,7 @@ declare const useAlepha: () => Alepha;
|
|
|
2135
2135
|
*/
|
|
2136
2136
|
declare const useClient: <T$1 extends object>(scope?: ClientScope) => HttpVirtualClient<T$1>;
|
|
2137
2137
|
//#endregion
|
|
2138
|
-
//#region src/core/hooks/useEvents.d.ts
|
|
2138
|
+
//#region ../../src/core/hooks/useEvents.d.ts
|
|
2139
2139
|
/**
|
|
2140
2140
|
* Allow subscribing to multiple Alepha events. See {@link Hooks} for available events.
|
|
2141
2141
|
*
|
|
@@ -2162,14 +2162,14 @@ declare const useClient: <T$1 extends object>(scope?: ClientScope) => HttpVirtua
|
|
|
2162
2162
|
declare const useEvents: (opts: UseEvents, deps: DependencyList) => void;
|
|
2163
2163
|
type UseEvents = { [T in keyof Hooks]?: Hook<T> | ((payload: Hooks[T]) => Async<void>) };
|
|
2164
2164
|
//#endregion
|
|
2165
|
-
//#region src/core/hooks/useInject.d.ts
|
|
2165
|
+
//#region ../../src/core/hooks/useInject.d.ts
|
|
2166
2166
|
/**
|
|
2167
2167
|
* Hook to inject a service instance.
|
|
2168
2168
|
* It's a wrapper of `useAlepha().inject(service)` with a memoization.
|
|
2169
2169
|
*/
|
|
2170
2170
|
declare const useInject: <T$1 extends object>(service: Service<T$1>) => T$1;
|
|
2171
2171
|
//#endregion
|
|
2172
|
-
//#region src/core/hooks/useSchema.d.ts
|
|
2172
|
+
//#region ../../src/core/hooks/useSchema.d.ts
|
|
2173
2173
|
declare const useSchema: <TConfig extends RequestConfigSchema>(action: VirtualAction<TConfig>) => UseSchemaReturn<TConfig>;
|
|
2174
2174
|
type UseSchemaReturn<TConfig extends RequestConfigSchema> = TConfig & {
|
|
2175
2175
|
loading: boolean;
|
|
@@ -2181,7 +2181,7 @@ declare const ssrSchemaLoading: (alepha: Alepha, name: string) => RequestConfigS
|
|
|
2181
2181
|
loading: boolean;
|
|
2182
2182
|
};
|
|
2183
2183
|
//#endregion
|
|
2184
|
-
//#region src/core/hooks/useStore.d.ts
|
|
2184
|
+
//#region ../../src/core/hooks/useStore.d.ts
|
|
2185
2185
|
/**
|
|
2186
2186
|
* Hook to access and mutate the Alepha state.
|
|
2187
2187
|
*/
|
|
@@ -2189,7 +2189,7 @@ declare function useStore<T$1 extends TAtomObject>(target: Atom<T$1>, defaultVal
|
|
|
2189
2189
|
declare function useStore<Key extends keyof State>(target: Key, defaultValue?: State[Key]): UseStoreReturn<State[Key]>;
|
|
2190
2190
|
type UseStoreReturn<T$1> = [T$1, (value: T$1) => void];
|
|
2191
2191
|
//#endregion
|
|
2192
|
-
//#region src/core/components/ErrorBoundary.d.ts
|
|
2192
|
+
//#region ../../src/core/components/ErrorBoundary.d.ts
|
|
2193
2193
|
/**
|
|
2194
2194
|
* Props for the ErrorBoundary component.
|
|
2195
2195
|
*/
|
|
@@ -2229,7 +2229,7 @@ declare class ErrorBoundary extends React.Component<PropsWithChildren<ErrorBound
|
|
|
2229
2229
|
render(): ReactNode;
|
|
2230
2230
|
}
|
|
2231
2231
|
//#endregion
|
|
2232
|
-
//#region src/core/components/ErrorViewer.d.ts
|
|
2232
|
+
//#region ../../src/core/components/ErrorViewer.d.ts
|
|
2233
2233
|
interface ErrorViewerProps {
|
|
2234
2234
|
error: Error;
|
|
2235
2235
|
alepha: Alepha;
|
|
@@ -2239,32 +2239,32 @@ declare const ErrorViewer: ({
|
|
|
2239
2239
|
alepha
|
|
2240
2240
|
}: ErrorViewerProps) => react_jsx_runtime0.JSX.Element;
|
|
2241
2241
|
//#endregion
|
|
2242
|
-
//#region src/core/components/Link.d.ts
|
|
2242
|
+
//#region ../../src/core/components/Link.d.ts
|
|
2243
2243
|
interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
2244
2244
|
href: string;
|
|
2245
2245
|
}
|
|
2246
2246
|
declare const Link: (props: LinkProps) => react_jsx_runtime0.JSX.Element;
|
|
2247
2247
|
//#endregion
|
|
2248
|
-
//#region src/core/components/NestedView.d.ts
|
|
2248
|
+
//#region ../../src/core/components/NestedView.d.ts
|
|
2249
2249
|
interface NestedViewProps {
|
|
2250
2250
|
children?: ReactNode;
|
|
2251
2251
|
errorBoundary?: false | ((error: Error) => ReactNode);
|
|
2252
2252
|
}
|
|
2253
2253
|
declare const _default: react0.MemoExoticComponent<(props: NestedViewProps) => react_jsx_runtime0.JSX.Element>;
|
|
2254
2254
|
//#endregion
|
|
2255
|
-
//#region src/core/components/NotFound.d.ts
|
|
2255
|
+
//#region ../../src/core/components/NotFound.d.ts
|
|
2256
2256
|
declare function NotFoundPage(props: {
|
|
2257
2257
|
style?: CSSProperties;
|
|
2258
2258
|
}): react_jsx_runtime0.JSX.Element;
|
|
2259
2259
|
//#endregion
|
|
2260
|
-
//#region src/core/contexts/RouterLayerContext.d.ts
|
|
2260
|
+
//#region ../../src/core/contexts/RouterLayerContext.d.ts
|
|
2261
2261
|
interface RouterLayerContextValue {
|
|
2262
2262
|
index: number;
|
|
2263
2263
|
path: string;
|
|
2264
2264
|
}
|
|
2265
2265
|
declare const RouterLayerContext: react0.Context<RouterLayerContextValue | undefined>;
|
|
2266
2266
|
//#endregion
|
|
2267
|
-
//#region src/core/hooks/useActive.d.ts
|
|
2267
|
+
//#region ../../src/core/hooks/useActive.d.ts
|
|
2268
2268
|
interface UseActiveOptions {
|
|
2269
2269
|
href: string;
|
|
2270
2270
|
startWith?: boolean;
|
|
@@ -2276,7 +2276,7 @@ interface UseActiveHook {
|
|
|
2276
2276
|
isPending: boolean;
|
|
2277
2277
|
}
|
|
2278
2278
|
//#endregion
|
|
2279
|
-
//#region src/core/hooks/useQueryParams.d.ts
|
|
2279
|
+
//#region ../../src/core/hooks/useQueryParams.d.ts
|
|
2280
2280
|
/**
|
|
2281
2281
|
* Not well tested. Use with caution.
|
|
2282
2282
|
*/
|
|
@@ -2287,7 +2287,7 @@ interface UseQueryParamsHookOptions {
|
|
|
2287
2287
|
push?: boolean;
|
|
2288
2288
|
}
|
|
2289
2289
|
//#endregion
|
|
2290
|
-
//#region src/core/services/ReactRouter.d.ts
|
|
2290
|
+
//#region ../../src/core/services/ReactRouter.d.ts
|
|
2291
2291
|
declare class ReactRouter<T$1 extends object> {
|
|
2292
2292
|
protected readonly alepha: Alepha;
|
|
2293
2293
|
protected readonly pageApi: ReactPageProvider;
|
|
@@ -2364,7 +2364,7 @@ declare class ReactRouter<T$1 extends object> {
|
|
|
2364
2364
|
}
|
|
2365
2365
|
type VirtualRouter<T$1> = { [K in keyof T$1 as T$1[K] extends PagePrimitive ? K : never]: T$1[K] };
|
|
2366
2366
|
//#endregion
|
|
2367
|
-
//#region src/core/hooks/useRouter.d.ts
|
|
2367
|
+
//#region ../../src/core/hooks/useRouter.d.ts
|
|
2368
2368
|
/**
|
|
2369
2369
|
* Use this hook to access the React Router instance.
|
|
2370
2370
|
*
|
|
@@ -2381,10 +2381,10 @@ type VirtualRouter<T$1> = { [K in keyof T$1 as T$1[K] extends PagePrimitive ? K
|
|
|
2381
2381
|
*/
|
|
2382
2382
|
declare const useRouter: <T$1 extends object = any>() => ReactRouter<T$1>;
|
|
2383
2383
|
//#endregion
|
|
2384
|
-
//#region src/core/hooks/useRouterState.d.ts
|
|
2384
|
+
//#region ../../src/core/hooks/useRouterState.d.ts
|
|
2385
2385
|
declare const useRouterState: () => ReactRouterState;
|
|
2386
2386
|
//#endregion
|
|
2387
|
-
//#region
|
|
2387
|
+
//#region ../../../alepha/src/server-static/primitives/$serve.d.ts
|
|
2388
2388
|
interface ServePrimitiveOptions {
|
|
2389
2389
|
/**
|
|
2390
2390
|
* Prefix for the served path.
|
|
@@ -2456,7 +2456,7 @@ interface CacheControlOptions {
|
|
|
2456
2456
|
immutable: boolean;
|
|
2457
2457
|
}
|
|
2458
2458
|
//#endregion
|
|
2459
|
-
//#region
|
|
2459
|
+
//#region ../../../alepha/src/file/services/FileDetector.d.ts
|
|
2460
2460
|
interface FileTypeResult {
|
|
2461
2461
|
/**
|
|
2462
2462
|
* The detected MIME type
|
|
@@ -2583,7 +2583,7 @@ declare class FileDetector {
|
|
|
2583
2583
|
protected matchesSignature(buffer: Buffer, signature: (number | null)[]): boolean;
|
|
2584
2584
|
}
|
|
2585
2585
|
//#endregion
|
|
2586
|
-
//#region
|
|
2586
|
+
//#region ../../../alepha/src/server-static/providers/ServerStaticProvider.d.ts
|
|
2587
2587
|
declare class ServerStaticProvider {
|
|
2588
2588
|
protected readonly alepha: Alepha;
|
|
2589
2589
|
protected readonly routerProvider: ServerRouterProvider;
|
|
@@ -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:
|
|
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[];
|
|
@@ -2606,11 +2606,11 @@ interface ServeDirectory {
|
|
|
2606
2606
|
files: string[];
|
|
2607
2607
|
}
|
|
2608
2608
|
//#endregion
|
|
2609
|
-
//#region src/core/providers/ReactServerProvider.d.ts
|
|
2610
|
-
declare const envSchema:
|
|
2611
|
-
REACT_SSR_ENABLED:
|
|
2612
|
-
REACT_ROOT_ID:
|
|
2613
|
-
REACT_SERVER_TEMPLATE:
|
|
2609
|
+
//#region ../../src/core/providers/ReactServerProvider.d.ts
|
|
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:
|
|
2625
|
-
publicDir:
|
|
2626
|
-
staticServer:
|
|
2627
|
-
disabled:
|
|
2628
|
-
path:
|
|
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:
|
|
2662
|
+
readonly onConfigure: alepha60.HookPrimitive<"configure">;
|
|
2663
2663
|
get template(): string;
|
|
2664
2664
|
protected registerPages(templateLoader: TemplateLoader): Promise<void>;
|
|
2665
2665
|
/**
|
|
@@ -2693,7 +2693,7 @@ interface PreprocessedTemplate {
|
|
|
2693
2693
|
afterScript: string;
|
|
2694
2694
|
}
|
|
2695
2695
|
//#endregion
|
|
2696
|
-
//#region src/core/index.d.ts
|
|
2696
|
+
//#region ../../src/core/index.d.ts
|
|
2697
2697
|
declare module "alepha" {
|
|
2698
2698
|
interface State {
|
|
2699
2699
|
"alepha.react.router.state"?: ReactRouterState;
|
|
@@ -2795,7 +2795,7 @@ declare module "alepha" {
|
|
|
2795
2795
|
* @see {@link $page}
|
|
2796
2796
|
* @module alepha.react
|
|
2797
2797
|
*/
|
|
2798
|
-
declare const AlephaReact:
|
|
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
|