@alepha/react 0.11.10 → 0.11.11
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/index.d.ts +26 -26
- package/package.json +10 -10
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alepha_core20 from "@alepha/core";
|
|
2
2
|
import { Alepha, Async, Atom, Descriptor, Hook, Hooks, KIND, Service, State, Static, TAtomObject, TObject, TSchema } from "@alepha/core";
|
|
3
3
|
import { DateTimeProvider, DurationLike } from "@alepha/datetime";
|
|
4
4
|
import { RequestConfigSchema, ServerHandler, ServerProvider, ServerRequest, ServerRouterProvider, ServerTimingProvider } from "@alepha/server";
|
|
5
5
|
import { ServerRouteCache } from "@alepha/server-cache";
|
|
6
6
|
import { ClientScope, HttpVirtualClient, LinkProvider, VirtualAction } from "@alepha/server-links";
|
|
7
|
-
import * as
|
|
7
|
+
import * as _alepha_logger1 from "@alepha/logger";
|
|
8
8
|
import * as react0 from "react";
|
|
9
9
|
import React, { AnchorHTMLAttributes, CSSProperties, DependencyList, ErrorInfo, FC, PropsWithChildren, ReactNode } from "react";
|
|
10
10
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
@@ -41,14 +41,14 @@ declare class Redirection extends Error {
|
|
|
41
41
|
}
|
|
42
42
|
//#endregion
|
|
43
43
|
//#region src/providers/ReactPageProvider.d.ts
|
|
44
|
-
declare const envSchema$2:
|
|
45
|
-
REACT_STRICT_MODE:
|
|
44
|
+
declare const envSchema$2: _alepha_core20.TObject<{
|
|
45
|
+
REACT_STRICT_MODE: _alepha_core20.TBoolean;
|
|
46
46
|
}>;
|
|
47
47
|
declare module "@alepha/core" {
|
|
48
48
|
interface Env extends Partial<Static<typeof envSchema$2>> {}
|
|
49
49
|
}
|
|
50
50
|
declare class ReactPageProvider {
|
|
51
|
-
protected readonly log:
|
|
51
|
+
protected readonly log: _alepha_logger1.Logger;
|
|
52
52
|
protected readonly env: {
|
|
53
53
|
REACT_STRICT_MODE: boolean;
|
|
54
54
|
};
|
|
@@ -85,7 +85,7 @@ declare class ReactPageProvider {
|
|
|
85
85
|
}, params?: Record<string, any>): string;
|
|
86
86
|
compile(path: string, params?: Record<string, string>): string;
|
|
87
87
|
protected renderView(index: number, path: string, view: ReactNode | undefined, page: PageRoute): ReactNode;
|
|
88
|
-
protected readonly configure:
|
|
88
|
+
protected readonly configure: _alepha_core20.HookDescriptor<"configure">;
|
|
89
89
|
protected map(pages: Array<PageDescriptor>, target: PageDescriptor): PageRouteEntry;
|
|
90
90
|
add(entry: PageRouteEntry): void;
|
|
91
91
|
protected createMatch(page: PageRoute): string;
|
|
@@ -499,18 +499,18 @@ interface BrowserRoute extends Route {
|
|
|
499
499
|
page: PageRoute;
|
|
500
500
|
}
|
|
501
501
|
declare class ReactBrowserRouterProvider extends RouterProvider<BrowserRoute> {
|
|
502
|
-
protected readonly log:
|
|
502
|
+
protected readonly log: _alepha_logger1.Logger;
|
|
503
503
|
protected readonly alepha: Alepha;
|
|
504
504
|
protected readonly pageApi: ReactPageProvider;
|
|
505
505
|
add(entry: PageRouteEntry): void;
|
|
506
|
-
protected readonly configure:
|
|
506
|
+
protected readonly configure: _alepha_core20.HookDescriptor<"configure">;
|
|
507
507
|
transition(url: URL, previous?: PreviousLayerData[], meta?: {}): Promise<string | void>;
|
|
508
508
|
root(state: ReactRouterState): ReactNode;
|
|
509
509
|
}
|
|
510
510
|
//#endregion
|
|
511
511
|
//#region src/providers/ReactBrowserProvider.d.ts
|
|
512
|
-
declare const envSchema$1:
|
|
513
|
-
REACT_ROOT_ID:
|
|
512
|
+
declare const envSchema$1: _alepha_core20.TObject<{
|
|
513
|
+
REACT_ROOT_ID: _alepha_core20.TString;
|
|
514
514
|
}>;
|
|
515
515
|
declare module "@alepha/core" {
|
|
516
516
|
interface Env extends Partial<Static<typeof envSchema$1>> {}
|
|
@@ -518,7 +518,7 @@ declare module "@alepha/core" {
|
|
|
518
518
|
/**
|
|
519
519
|
* React browser renderer configuration atom
|
|
520
520
|
*/
|
|
521
|
-
declare const reactBrowserOptions:
|
|
521
|
+
declare const reactBrowserOptions: _alepha_core20.Atom<_alepha_core20.TObject<{
|
|
522
522
|
scrollRestoration: typebox0.TUnsafe<"top" | "manual">;
|
|
523
523
|
}>, "alepha.react.browser.options">;
|
|
524
524
|
type ReactBrowserRendererOptions = Static<typeof reactBrowserOptions.schema>;
|
|
@@ -531,7 +531,7 @@ declare class ReactBrowserProvider {
|
|
|
531
531
|
protected readonly env: {
|
|
532
532
|
REACT_ROOT_ID: string;
|
|
533
533
|
};
|
|
534
|
-
protected readonly log:
|
|
534
|
+
protected readonly log: _alepha_logger1.Logger;
|
|
535
535
|
protected readonly client: LinkProvider;
|
|
536
536
|
protected readonly alepha: Alepha;
|
|
537
537
|
protected readonly router: ReactBrowserRouterProvider;
|
|
@@ -567,8 +567,8 @@ declare class ReactBrowserProvider {
|
|
|
567
567
|
* Get embedded layers from the server.
|
|
568
568
|
*/
|
|
569
569
|
protected getHydrationState(): ReactHydrationState | undefined;
|
|
570
|
-
protected readonly onTransitionEnd:
|
|
571
|
-
readonly ready:
|
|
570
|
+
protected readonly onTransitionEnd: _alepha_core20.HookDescriptor<"react:transition:end">;
|
|
571
|
+
readonly ready: _alepha_core20.HookDescriptor<"ready">;
|
|
572
572
|
}
|
|
573
573
|
interface RouterGoOptions {
|
|
574
574
|
replace?: boolean;
|
|
@@ -1069,10 +1069,10 @@ declare function useStore<Key extends keyof State>(target: Key, defaultValue?: S
|
|
|
1069
1069
|
type UseStoreReturn<T$1> = [T$1, (value: T$1) => void];
|
|
1070
1070
|
//#endregion
|
|
1071
1071
|
//#region src/providers/ReactServerProvider.d.ts
|
|
1072
|
-
declare const envSchema:
|
|
1073
|
-
REACT_SSR_ENABLED:
|
|
1074
|
-
REACT_ROOT_ID:
|
|
1075
|
-
REACT_SERVER_TEMPLATE:
|
|
1072
|
+
declare const envSchema: _alepha_core20.TObject<{
|
|
1073
|
+
REACT_SSR_ENABLED: _alepha_core20.TOptional<_alepha_core20.TBoolean>;
|
|
1074
|
+
REACT_ROOT_ID: _alepha_core20.TString;
|
|
1075
|
+
REACT_SERVER_TEMPLATE: _alepha_core20.TOptional<_alepha_core20.TString>;
|
|
1076
1076
|
}>;
|
|
1077
1077
|
declare module "@alepha/core" {
|
|
1078
1078
|
interface Env extends Partial<Static<typeof envSchema>> {}
|
|
@@ -1083,11 +1083,11 @@ declare module "@alepha/core" {
|
|
|
1083
1083
|
/**
|
|
1084
1084
|
* React server provider configuration atom
|
|
1085
1085
|
*/
|
|
1086
|
-
declare const reactServerOptions:
|
|
1087
|
-
publicDir:
|
|
1088
|
-
staticServer:
|
|
1089
|
-
disabled:
|
|
1090
|
-
path:
|
|
1086
|
+
declare const reactServerOptions: _alepha_core20.Atom<_alepha_core20.TObject<{
|
|
1087
|
+
publicDir: _alepha_core20.TString;
|
|
1088
|
+
staticServer: _alepha_core20.TObject<{
|
|
1089
|
+
disabled: _alepha_core20.TBoolean;
|
|
1090
|
+
path: _alepha_core20.TString;
|
|
1091
1091
|
}>;
|
|
1092
1092
|
}>, "alepha.react.server.options">;
|
|
1093
1093
|
type ReactServerProviderOptions = Static<typeof reactServerOptions.schema>;
|
|
@@ -1097,7 +1097,7 @@ declare module "@alepha/core" {
|
|
|
1097
1097
|
}
|
|
1098
1098
|
}
|
|
1099
1099
|
declare class ReactServerProvider {
|
|
1100
|
-
protected readonly log:
|
|
1100
|
+
protected readonly log: _alepha_logger1.Logger;
|
|
1101
1101
|
protected readonly alepha: Alepha;
|
|
1102
1102
|
protected readonly env: {
|
|
1103
1103
|
REACT_SSR_ENABLED?: boolean | undefined;
|
|
@@ -1121,7 +1121,7 @@ declare class ReactServerProvider {
|
|
|
1121
1121
|
/**
|
|
1122
1122
|
* Configure the React server provider.
|
|
1123
1123
|
*/
|
|
1124
|
-
readonly onConfigure:
|
|
1124
|
+
readonly onConfigure: _alepha_core20.HookDescriptor<"configure">;
|
|
1125
1125
|
get template(): string;
|
|
1126
1126
|
protected registerPages(templateLoader: TemplateLoader): Promise<void>;
|
|
1127
1127
|
/**
|
|
@@ -1257,7 +1257,7 @@ declare module "@alepha/core" {
|
|
|
1257
1257
|
* @see {@link $page}
|
|
1258
1258
|
* @module alepha.react
|
|
1259
1259
|
*/
|
|
1260
|
-
declare const AlephaReact:
|
|
1260
|
+
declare const AlephaReact: _alepha_core20.Service<_alepha_core20.Module>;
|
|
1261
1261
|
//#endregion
|
|
1262
1262
|
export { $page, ActionContext, AlephaContext, AlephaReact, AnchorProps, ClientOnly, CreateLayersResult, ErrorBoundary, ErrorHandler, ErrorViewer, Layer, Link, type LinkProps, _default as NestedView, NotFoundPage as NotFound, PageAnimation, PageConfigSchema, PageDescriptor, PageDescriptorOptions, PageDescriptorRenderOptions, PageDescriptorRenderResult, 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 };
|
|
1263
1263
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alepha/react",
|
|
3
3
|
"description": "Build server-side rendered (SSR) or single-page React applications.",
|
|
4
|
-
"version": "0.11.
|
|
4
|
+
"version": "0.11.11",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=22.0.0"
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"src"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@alepha/core": "0.11.
|
|
21
|
-
"@alepha/datetime": "0.11.
|
|
22
|
-
"@alepha/logger": "0.11.
|
|
23
|
-
"@alepha/router": "0.11.
|
|
24
|
-
"@alepha/server": "0.11.
|
|
25
|
-
"@alepha/server-cache": "0.11.
|
|
26
|
-
"@alepha/server-links": "0.11.
|
|
27
|
-
"@alepha/server-static": "0.11.
|
|
20
|
+
"@alepha/core": "0.11.11",
|
|
21
|
+
"@alepha/datetime": "0.11.11",
|
|
22
|
+
"@alepha/logger": "0.11.11",
|
|
23
|
+
"@alepha/router": "0.11.11",
|
|
24
|
+
"@alepha/server": "0.11.11",
|
|
25
|
+
"@alepha/server-cache": "0.11.11",
|
|
26
|
+
"@alepha/server-links": "0.11.11",
|
|
27
|
+
"@alepha/server-static": "0.11.11"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@alepha/testing": "0.11.
|
|
30
|
+
"@alepha/testing": "0.11.11",
|
|
31
31
|
"@biomejs/biome": "^2.3.5",
|
|
32
32
|
"@types/react": "^19.2.5",
|
|
33
33
|
"@types/react-dom": "^19.2.3",
|