@alepha/react 0.7.7 → 0.8.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/README.md +153 -1
- package/dist/index.browser.js +61 -26
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +175 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +198 -41
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.ts +197 -40
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +180 -31
- package/dist/index.js.map +1 -1
- package/package.json +8 -7
- package/src/components/NestedView.tsx +3 -1
- package/src/descriptors/$page.ts +50 -42
- package/src/hooks/RouterHookApi.ts +17 -0
- package/src/hooks/useRouter.ts +1 -0
- package/src/index.browser.ts +4 -0
- package/src/index.shared.ts +1 -0
- package/src/index.ts +127 -3
- package/src/providers/BrowserRouterProvider.ts +1 -1
- package/src/providers/PageDescriptorProvider.ts +39 -23
- package/src/providers/ReactBrowserProvider.ts +38 -5
- package/src/providers/ReactBrowserRenderer.ts +21 -1
- package/src/providers/ReactServerProvider.ts +5 -5
- package/dist/index.browser.d.ts +0 -523
package/dist/index.d.ts
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _alepha_core11 from "@alepha/core";
|
|
2
|
+
import * as _alepha_core24 from "@alepha/core";
|
|
3
3
|
import * as _alepha_core16 from "@alepha/core";
|
|
4
|
-
import * as
|
|
4
|
+
import * as _alepha_core1 from "@alepha/core";
|
|
5
5
|
import { Alepha, Async, KIND, Module, OPTIONS, Service, Static, TObject, TSchema } from "@alepha/core";
|
|
6
6
|
import { ApiLinksResponse, ServerHandler, ServerRequest, ServerRouterProvider, ServerTimingProvider } from "@alepha/server";
|
|
7
7
|
import { ServerRouteCache } from "@alepha/server-cache";
|
|
8
|
-
import
|
|
8
|
+
import { ClientScope, HttpVirtualClient, LinkProvider } from "@alepha/server-links";
|
|
9
9
|
import * as react20 from "react";
|
|
10
|
+
import * as react23 from "react";
|
|
10
11
|
import React, { AnchorHTMLAttributes, ErrorInfo, FC, PropsWithChildren, ReactNode } from "react";
|
|
11
|
-
import * as
|
|
12
|
+
import * as react_jsx_runtime18 from "react/jsx-runtime";
|
|
12
13
|
import * as react_jsx_runtime21 from "react/jsx-runtime";
|
|
13
|
-
import
|
|
14
|
+
import * as react_jsx_runtime22 from "react/jsx-runtime";
|
|
14
15
|
import { ServerStaticProvider } from "@alepha/server-static";
|
|
15
16
|
import { Route, RouterProvider } from "@alepha/router";
|
|
16
|
-
import * as _sinclair_typebox11 from "@sinclair/typebox";
|
|
17
|
-
import * as _sinclair_typebox1 from "@sinclair/typebox";
|
|
18
17
|
import { Root } from "react-dom/client";
|
|
19
18
|
|
|
20
19
|
//#region src/components/ClientOnly.d.ts
|
|
@@ -36,6 +35,13 @@ declare const ClientOnly: (props: PropsWithChildren<ClientOnlyProps>) => ReactNo
|
|
|
36
35
|
//#endregion
|
|
37
36
|
//#region src/descriptors/$page.d.ts
|
|
38
37
|
declare const KEY = "PAGE";
|
|
38
|
+
/**
|
|
39
|
+
* Main descriptor for defining a React route in the application.
|
|
40
|
+
*/
|
|
41
|
+
declare const $page: {
|
|
42
|
+
<TConfig extends PageConfigSchema = PageConfigSchema, TProps extends object = any, TPropsParent extends object = TPropsParentDefault>(options: PageDescriptorOptions<TConfig, TProps, TPropsParent>): PageDescriptor<TConfig, TProps, TPropsParent>;
|
|
43
|
+
[KIND]: string;
|
|
44
|
+
};
|
|
39
45
|
interface PageConfigSchema {
|
|
40
46
|
query?: TSchema;
|
|
41
47
|
params?: TSchema;
|
|
@@ -107,13 +113,21 @@ interface PageDescriptorOptions<TConfig extends PageConfigSchema = PageConfigSch
|
|
|
107
113
|
*/
|
|
108
114
|
children?: Array<{
|
|
109
115
|
[OPTIONS]: PageDescriptorOptions;
|
|
110
|
-
}
|
|
116
|
+
}> | (() => Array<{
|
|
117
|
+
[OPTIONS]: PageDescriptorOptions;
|
|
118
|
+
}>);
|
|
111
119
|
parent?: {
|
|
112
120
|
[OPTIONS]: PageDescriptorOptions<PageConfigSchema, TPropsParent>;
|
|
113
121
|
};
|
|
114
122
|
can?: () => boolean;
|
|
115
123
|
errorHandler?: (error: Error) => ReactNode;
|
|
116
|
-
|
|
124
|
+
/**
|
|
125
|
+
* If true, the page will be rendered on the build time.
|
|
126
|
+
* Works only with viteAlepha plugin.
|
|
127
|
+
*
|
|
128
|
+
* Replace boolean by an object to define static entries. (e.g. list of params/query)
|
|
129
|
+
*/
|
|
130
|
+
static?: boolean | {
|
|
117
131
|
entries?: Array<Partial<PageRequestConfig<TConfig>>>;
|
|
118
132
|
};
|
|
119
133
|
/**
|
|
@@ -132,13 +146,6 @@ interface PageDescriptor<TConfig extends PageConfigSchema = PageConfigSchema, TP
|
|
|
132
146
|
*/
|
|
133
147
|
render: (options?: PageDescriptorRenderOptions) => Promise<PageDescriptorRenderResult>;
|
|
134
148
|
}
|
|
135
|
-
/**
|
|
136
|
-
* Main descriptor for defining a React route in the application.
|
|
137
|
-
*/
|
|
138
|
-
declare const $page: {
|
|
139
|
-
<TConfig extends PageConfigSchema = PageConfigSchema, TProps extends object = any, TPropsParent extends object = TPropsParentDefault>(options: PageDescriptorOptions<TConfig, TProps, TPropsParent>): PageDescriptor<TConfig, TProps, TPropsParent>;
|
|
140
|
-
[KIND]: string;
|
|
141
|
-
};
|
|
142
149
|
interface PageDescriptorRenderOptions {
|
|
143
150
|
params?: Record<string, string>;
|
|
144
151
|
query?: Record<string, string>;
|
|
@@ -156,14 +163,14 @@ interface PageRequestConfig<TConfig extends PageConfigSchema = PageConfigSchema>
|
|
|
156
163
|
type PageResolve<TConfig extends PageConfigSchema = PageConfigSchema, TPropsParent extends object = TPropsParentDefault> = PageRequestConfig<TConfig> & TPropsParent & PageReactContext;
|
|
157
164
|
//#endregion
|
|
158
165
|
//#region src/providers/PageDescriptorProvider.d.ts
|
|
159
|
-
declare const envSchema$1:
|
|
160
|
-
REACT_STRICT_MODE:
|
|
166
|
+
declare const envSchema$1: _alepha_core11.TObject<{
|
|
167
|
+
REACT_STRICT_MODE: _alepha_core11.TBoolean;
|
|
161
168
|
}>;
|
|
162
169
|
declare module "@alepha/core" {
|
|
163
170
|
interface Env extends Partial<Static<typeof envSchema$1>> {}
|
|
164
171
|
}
|
|
165
172
|
declare class PageDescriptorProvider {
|
|
166
|
-
protected readonly log:
|
|
173
|
+
protected readonly log: _alepha_core11.Logger;
|
|
167
174
|
protected readonly env: {
|
|
168
175
|
REACT_STRICT_MODE: boolean;
|
|
169
176
|
};
|
|
@@ -188,7 +195,7 @@ declare class PageDescriptorProvider {
|
|
|
188
195
|
}, params?: Record<string, any>): string;
|
|
189
196
|
compile(path: string, params?: Record<string, string>): string;
|
|
190
197
|
protected renderView(index: number, path: string, view: ReactNode | undefined, page: PageRoute): ReactNode;
|
|
191
|
-
protected readonly configure:
|
|
198
|
+
protected readonly configure: _alepha_core11.HookDescriptor<"configure">;
|
|
192
199
|
protected map(pages: Array<{
|
|
193
200
|
value: {
|
|
194
201
|
[OPTIONS]: PageDescriptorOptions;
|
|
@@ -225,6 +232,7 @@ interface Layer {
|
|
|
225
232
|
index: number;
|
|
226
233
|
path: string;
|
|
227
234
|
route?: PageRoute;
|
|
235
|
+
cache?: boolean;
|
|
228
236
|
}
|
|
229
237
|
type PreviousLayerData = Omit<Layer, "element" | "index" | "path">;
|
|
230
238
|
interface AnchorProps {
|
|
@@ -246,6 +254,7 @@ interface RouterStackItem {
|
|
|
246
254
|
config?: Record<string, any>;
|
|
247
255
|
props?: Record<string, any>;
|
|
248
256
|
error?: Error;
|
|
257
|
+
cache?: boolean;
|
|
249
258
|
}
|
|
250
259
|
interface RouterRenderResult {
|
|
251
260
|
state: RouterState;
|
|
@@ -275,14 +284,15 @@ interface BrowserRoute extends Route {
|
|
|
275
284
|
page: PageRoute;
|
|
276
285
|
}
|
|
277
286
|
declare class BrowserRouterProvider extends RouterProvider<BrowserRoute> {
|
|
278
|
-
protected readonly log:
|
|
287
|
+
protected readonly log: _alepha_core24.Logger;
|
|
279
288
|
protected readonly alepha: Alepha;
|
|
280
289
|
protected readonly pageDescriptorProvider: PageDescriptorProvider;
|
|
281
290
|
add(entry: PageRouteEntry): void;
|
|
282
|
-
protected readonly configure:
|
|
291
|
+
protected readonly configure: _alepha_core24.HookDescriptor<"configure">;
|
|
283
292
|
transition(url: URL, options?: TransitionOptions): Promise<RouterRenderResult>;
|
|
284
293
|
root(state: RouterState, context: PageReactContext): ReactNode;
|
|
285
294
|
}
|
|
295
|
+
//# sourceMappingURL=BrowserRouterProvider.d.ts.map
|
|
286
296
|
//#endregion
|
|
287
297
|
//#region src/providers/ReactBrowserProvider.d.ts
|
|
288
298
|
declare class ReactBrowserProvider {
|
|
@@ -297,7 +307,9 @@ declare class ReactBrowserProvider {
|
|
|
297
307
|
state: RouterState;
|
|
298
308
|
get document(): Document;
|
|
299
309
|
get history(): History;
|
|
310
|
+
get location(): Location;
|
|
300
311
|
get url(): string;
|
|
312
|
+
pushState(url: string, replace?: boolean): void;
|
|
301
313
|
invalidate(props?: Record<string, any>): Promise<void>;
|
|
302
314
|
go(url: string, options?: RouterGoOptions): Promise<void>;
|
|
303
315
|
protected render(options?: {
|
|
@@ -319,6 +331,7 @@ interface ReactHydrationState {
|
|
|
319
331
|
layers?: Array<PreviousLayerData>;
|
|
320
332
|
links?: ApiLinksResponse;
|
|
321
333
|
}
|
|
334
|
+
//# sourceMappingURL=ReactBrowserProvider.d.ts.map
|
|
322
335
|
//#endregion
|
|
323
336
|
//#region src/components/ErrorBoundary.d.ts
|
|
324
337
|
/**
|
|
@@ -365,7 +378,7 @@ interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
|
365
378
|
to: string | PageDescriptor;
|
|
366
379
|
children?: React.ReactNode;
|
|
367
380
|
}
|
|
368
|
-
declare const Link: (props: LinkProps) =>
|
|
381
|
+
declare const Link: (props: LinkProps) => react_jsx_runtime18.JSX.Element | null;
|
|
369
382
|
//#endregion
|
|
370
383
|
//#region src/components/NestedView.d.ts
|
|
371
384
|
interface NestedViewProps {
|
|
@@ -394,30 +407,39 @@ interface NestedViewProps {
|
|
|
394
407
|
*/
|
|
395
408
|
declare const NestedView: (props: NestedViewProps) => react_jsx_runtime21.JSX.Element;
|
|
396
409
|
//#endregion
|
|
410
|
+
//#region src/components/NotFound.d.ts
|
|
411
|
+
declare function NotFoundPage(): react_jsx_runtime22.JSX.Element;
|
|
412
|
+
//# sourceMappingURL=NotFound.d.ts.map
|
|
413
|
+
//#endregion
|
|
397
414
|
//#region src/contexts/RouterContext.d.ts
|
|
398
415
|
interface RouterContextValue {
|
|
399
416
|
alepha: Alepha;
|
|
400
417
|
state: RouterState;
|
|
401
418
|
context: PageReactContext;
|
|
402
419
|
}
|
|
403
|
-
declare const RouterContext:
|
|
420
|
+
declare const RouterContext: react20.Context<RouterContextValue | undefined>;
|
|
421
|
+
//# sourceMappingURL=RouterContext.d.ts.map
|
|
404
422
|
//#endregion
|
|
405
423
|
//#region src/contexts/RouterLayerContext.d.ts
|
|
406
424
|
interface RouterLayerContextValue {
|
|
407
425
|
index: number;
|
|
408
426
|
path: string;
|
|
409
427
|
}
|
|
410
|
-
declare const RouterLayerContext:
|
|
428
|
+
declare const RouterLayerContext: react23.Context<RouterLayerContextValue | undefined>;
|
|
429
|
+
//# sourceMappingURL=RouterLayerContext.d.ts.map
|
|
411
430
|
//#endregion
|
|
412
431
|
//#region src/hooks/RouterHookApi.d.ts
|
|
413
432
|
declare class RouterHookApi {
|
|
414
433
|
private readonly pages;
|
|
434
|
+
private readonly context;
|
|
415
435
|
private readonly state;
|
|
416
436
|
private readonly layer;
|
|
417
437
|
private readonly browser?;
|
|
418
|
-
constructor(pages: PageRoute[], state: RouterState, layer: {
|
|
438
|
+
constructor(pages: PageRoute[], context: PageReactContext, state: RouterState, layer: {
|
|
419
439
|
path: string;
|
|
420
440
|
}, browser?: ReactBrowserProvider | undefined);
|
|
441
|
+
getURL(): URL;
|
|
442
|
+
get location(): Location;
|
|
421
443
|
get current(): RouterState;
|
|
422
444
|
get pathname(): string;
|
|
423
445
|
get query(): Record<string, string>;
|
|
@@ -463,12 +485,14 @@ type HrefLike = string | {
|
|
|
463
485
|
};
|
|
464
486
|
};
|
|
465
487
|
type VirtualRouter<T> = { [K in keyof T as T[K] extends PageDescriptor ? K : never]: T[K] };
|
|
488
|
+
//# sourceMappingURL=RouterHookApi.d.ts.map
|
|
466
489
|
//#endregion
|
|
467
490
|
//#region src/errors/RedirectionError.d.ts
|
|
468
491
|
declare class RedirectionError extends Error {
|
|
469
492
|
readonly page: HrefLike;
|
|
470
493
|
constructor(page: HrefLike);
|
|
471
494
|
}
|
|
495
|
+
//# sourceMappingURL=RedirectionError.d.ts.map
|
|
472
496
|
//#endregion
|
|
473
497
|
//#region src/hooks/useActive.d.ts
|
|
474
498
|
declare const useActive: (path: HrefLike) => UseActiveHook;
|
|
@@ -478,15 +502,19 @@ interface UseActiveHook {
|
|
|
478
502
|
isPending: boolean;
|
|
479
503
|
name?: string;
|
|
480
504
|
}
|
|
505
|
+
//# sourceMappingURL=useActive.d.ts.map
|
|
481
506
|
//#endregion
|
|
482
507
|
//#region src/hooks/useAlepha.d.ts
|
|
483
508
|
declare const useAlepha: () => Alepha;
|
|
509
|
+
//# sourceMappingURL=useAlepha.d.ts.map
|
|
484
510
|
//#endregion
|
|
485
511
|
//#region src/hooks/useClient.d.ts
|
|
486
512
|
declare const useClient: <T extends object>(_scope?: ClientScope) => HttpVirtualClient<T>;
|
|
513
|
+
//# sourceMappingURL=useClient.d.ts.map
|
|
487
514
|
//#endregion
|
|
488
515
|
//#region src/hooks/useInject.d.ts
|
|
489
516
|
declare const useInject: <T extends object>(clazz: Service<T>) => T;
|
|
517
|
+
//# sourceMappingURL=useInject.d.ts.map
|
|
490
518
|
//#endregion
|
|
491
519
|
//#region src/hooks/useQueryParams.d.ts
|
|
492
520
|
interface UseQueryParamsHookOptions {
|
|
@@ -495,9 +523,11 @@ interface UseQueryParamsHookOptions {
|
|
|
495
523
|
push?: boolean;
|
|
496
524
|
}
|
|
497
525
|
declare const useQueryParams: <T extends TObject>(schema: T, options?: UseQueryParamsHookOptions) => [Static<T>, (data: Static<T>) => void];
|
|
526
|
+
//# sourceMappingURL=useQueryParams.d.ts.map
|
|
498
527
|
//#endregion
|
|
499
528
|
//#region src/hooks/useRouter.d.ts
|
|
500
529
|
declare const useRouter: () => RouterHookApi;
|
|
530
|
+
//# sourceMappingURL=useRouter.d.ts.map
|
|
501
531
|
//#endregion
|
|
502
532
|
//#region src/hooks/useRouterEvents.d.ts
|
|
503
533
|
declare const useRouterEvents: (opts?: {
|
|
@@ -512,26 +542,29 @@ declare const useRouterEvents: (opts?: {
|
|
|
512
542
|
error: Error;
|
|
513
543
|
}) => void;
|
|
514
544
|
}, deps?: any[]) => void;
|
|
545
|
+
//# sourceMappingURL=useRouterEvents.d.ts.map
|
|
515
546
|
//#endregion
|
|
516
547
|
//#region src/hooks/useRouterState.d.ts
|
|
517
548
|
declare const useRouterState: () => RouterState;
|
|
549
|
+
//# sourceMappingURL=useRouterState.d.ts.map
|
|
550
|
+
|
|
518
551
|
//#endregion
|
|
519
552
|
//#region src/providers/ReactServerProvider.d.ts
|
|
520
|
-
declare const envSchema:
|
|
521
|
-
REACT_SERVER_DIST:
|
|
522
|
-
REACT_SERVER_PREFIX:
|
|
523
|
-
REACT_SSR_ENABLED:
|
|
524
|
-
REACT_ROOT_ID:
|
|
553
|
+
declare const envSchema: _alepha_core1.TObject<{
|
|
554
|
+
REACT_SERVER_DIST: _alepha_core1.TString;
|
|
555
|
+
REACT_SERVER_PREFIX: _alepha_core1.TString;
|
|
556
|
+
REACT_SSR_ENABLED: _alepha_core1.TOptional<_alepha_core1.TBoolean>;
|
|
557
|
+
REACT_ROOT_ID: _alepha_core1.TString;
|
|
525
558
|
}>;
|
|
526
559
|
declare module "@alepha/core" {
|
|
527
560
|
interface Env extends Partial<Static<typeof envSchema>> {}
|
|
528
561
|
interface State {
|
|
529
|
-
"
|
|
530
|
-
"
|
|
562
|
+
"react.server.template"?: string;
|
|
563
|
+
"react.server.ssr"?: boolean;
|
|
531
564
|
}
|
|
532
565
|
}
|
|
533
566
|
declare class ReactServerProvider {
|
|
534
|
-
protected readonly log:
|
|
567
|
+
protected readonly log: _alepha_core1.Logger;
|
|
535
568
|
protected readonly alepha: Alepha;
|
|
536
569
|
protected readonly pageDescriptorProvider: PageDescriptorProvider;
|
|
537
570
|
protected readonly serverStaticProvider: ServerStaticProvider;
|
|
@@ -544,7 +577,7 @@ declare class ReactServerProvider {
|
|
|
544
577
|
REACT_ROOT_ID: string;
|
|
545
578
|
};
|
|
546
579
|
protected readonly ROOT_DIV_REGEX: RegExp;
|
|
547
|
-
readonly onConfigure:
|
|
580
|
+
readonly onConfigure: _alepha_core1.HookDescriptor<"configure">;
|
|
548
581
|
get template(): string;
|
|
549
582
|
protected registerPages(templateLoader: TemplateLoader): Promise<void>;
|
|
550
583
|
protected getPublicDirectory(): string;
|
|
@@ -612,10 +645,132 @@ declare module "@alepha/core" {
|
|
|
612
645
|
}
|
|
613
646
|
}
|
|
614
647
|
/**
|
|
615
|
-
*
|
|
648
|
+
* Provides full-stack React development with declarative routing, server-side rendering, and client-side hydration.
|
|
649
|
+
*
|
|
650
|
+
* The React module enables building modern React applications using the `$page` descriptor on class properties.
|
|
651
|
+
* It delivers seamless server-side rendering, automatic code splitting, and client-side navigation with full
|
|
652
|
+
* type safety and schema validation for route parameters and data.
|
|
653
|
+
*
|
|
654
|
+
* **Key Features:**
|
|
655
|
+
* - Declarative page definition with `$page` descriptor
|
|
656
|
+
* - Server-side rendering (SSR) with automatic hydration
|
|
657
|
+
* - Type-safe routing with parameter validation
|
|
658
|
+
* - Schema-based data resolution and validation
|
|
659
|
+
* - SEO-friendly meta tag management
|
|
660
|
+
* - Automatic code splitting and lazy loading
|
|
661
|
+
* - Client-side navigation with browser history
|
|
662
|
+
*
|
|
663
|
+
* **Basic Usage:**
|
|
664
|
+
* ```ts
|
|
665
|
+
* import { Alepha, run, t } from "alepha";
|
|
666
|
+
* import { AlephaReact, $page } from "alepha/react";
|
|
667
|
+
*
|
|
668
|
+
* class AppRoutes {
|
|
669
|
+
* // Home page
|
|
670
|
+
* home = $page({
|
|
671
|
+
* path: "/",
|
|
672
|
+
* component: () => (
|
|
673
|
+
* <div>
|
|
674
|
+
* <h1>Welcome to Alepha</h1>
|
|
675
|
+
* <p>Build amazing React applications!</p>
|
|
676
|
+
* </div>
|
|
677
|
+
* ),
|
|
678
|
+
* });
|
|
679
|
+
*
|
|
680
|
+
* // About page with meta tags
|
|
681
|
+
* about = $page({
|
|
682
|
+
* path: "/about",
|
|
683
|
+
* head: {
|
|
684
|
+
* title: "About Us",
|
|
685
|
+
* description: "Learn more about our mission",
|
|
686
|
+
* },
|
|
687
|
+
* component: () => (
|
|
688
|
+
* <div>
|
|
689
|
+
* <h1>About Us</h1>
|
|
690
|
+
* <p>Learn more about our mission.</p>
|
|
691
|
+
* </div>
|
|
692
|
+
* ),
|
|
693
|
+
* });
|
|
694
|
+
* }
|
|
695
|
+
*
|
|
696
|
+
* const alepha = Alepha.create()
|
|
697
|
+
* .with(AlephaReact)
|
|
698
|
+
* .with(AppRoutes);
|
|
699
|
+
*
|
|
700
|
+
* run(alepha);
|
|
701
|
+
* ```
|
|
616
702
|
*
|
|
617
|
-
*
|
|
618
|
-
*
|
|
703
|
+
* **Dynamic Routes with Parameters:**
|
|
704
|
+
* ```tsx
|
|
705
|
+
* class UserRoutes {
|
|
706
|
+
* userProfile = $page({
|
|
707
|
+
* path: "/users/:id",
|
|
708
|
+
* schema: {
|
|
709
|
+
* params: t.object({
|
|
710
|
+
* id: t.string(),
|
|
711
|
+
* }),
|
|
712
|
+
* },
|
|
713
|
+
* resolve: async ({ params }) => {
|
|
714
|
+
* // Fetch user data server-side
|
|
715
|
+
* const user = await getUserById(params.id);
|
|
716
|
+
* return { user };
|
|
717
|
+
* },
|
|
718
|
+
* head: ({ user }) => ({
|
|
719
|
+
* title: `${user.name} - Profile`,
|
|
720
|
+
* description: `View ${user.name}'s profile`,
|
|
721
|
+
* }),
|
|
722
|
+
* component: ({ user }) => (
|
|
723
|
+
* <div>
|
|
724
|
+
* <h1>{user.name}</h1>
|
|
725
|
+
* <p>Email: {user.email}</p>
|
|
726
|
+
* </div>
|
|
727
|
+
* ),
|
|
728
|
+
* });
|
|
729
|
+
*
|
|
730
|
+
* userSettings = $page({
|
|
731
|
+
* path: "/users/:id/settings",
|
|
732
|
+
* schema: {
|
|
733
|
+
* params: t.object({
|
|
734
|
+
* id: t.string(),
|
|
735
|
+
* }),
|
|
736
|
+
* },
|
|
737
|
+
* component: ({ params }) => (
|
|
738
|
+
* <UserSettings userId={params.id} />
|
|
739
|
+
* ),
|
|
740
|
+
* });
|
|
741
|
+
* }
|
|
742
|
+
* ```
|
|
743
|
+
*
|
|
744
|
+
* **Static Generation:**
|
|
745
|
+
* ```tsx
|
|
746
|
+
* class BlogRoutes {
|
|
747
|
+
* blogPost = $page({
|
|
748
|
+
* path: "/blog/:slug",
|
|
749
|
+
* schema: {
|
|
750
|
+
* params: t.object({
|
|
751
|
+
* slug: t.string(),
|
|
752
|
+
* }),
|
|
753
|
+
* },
|
|
754
|
+
* static: {
|
|
755
|
+
* entries: [
|
|
756
|
+
* { params: { slug: "getting-started" } },
|
|
757
|
+
* { params: { slug: "advanced-features" } },
|
|
758
|
+
* { params: { slug: "deployment" } },
|
|
759
|
+
* ],
|
|
760
|
+
* },
|
|
761
|
+
* resolve: ({ params }) => {
|
|
762
|
+
* const post = getBlogPost(params.slug);
|
|
763
|
+
* return { post };
|
|
764
|
+
* },
|
|
765
|
+
* component: ({ post }) => (
|
|
766
|
+
* <article>
|
|
767
|
+
* <h1>{post.title}</h1>
|
|
768
|
+
* <div>{post.content}</div>
|
|
769
|
+
* </article>
|
|
770
|
+
* ),
|
|
771
|
+
* });
|
|
772
|
+
* }
|
|
773
|
+
* ```
|
|
619
774
|
*
|
|
620
775
|
* @see {@link $page}
|
|
621
776
|
* @module alepha.react
|
|
@@ -624,6 +779,8 @@ declare class AlephaReact implements Module {
|
|
|
624
779
|
readonly name = "alepha.react";
|
|
625
780
|
readonly $services: (alepha: Alepha) => Alepha;
|
|
626
781
|
}
|
|
782
|
+
//# sourceMappingURL=index.d.ts.map
|
|
783
|
+
|
|
627
784
|
//#endregion
|
|
628
|
-
export { $page, AlephaReact, AnchorProps, ClientOnly, CreateLayersResult, ErrorBoundary, HrefLike, Layer, Link, NestedView, PageConfigSchema, PageDescriptor, PageDescriptorOptions, PageDescriptorProvider, PageDescriptorRenderOptions, PageDescriptorRenderResult, PageReactContext, PageRequest, PageRequestConfig, PageResolve, PageRoute, PageRouteEntry, PreviousLayerData, ReactBrowserProvider, ReactHydrationState, ReactServerProvider, RedirectionError, RouterContext, RouterContextValue, RouterGoOptions, RouterHookApi, RouterLayerContext, RouterLayerContextValue, RouterRenderResult, RouterStackItem, RouterState, TPropsDefault, TPropsParentDefault, TransitionOptions, UseActiveHook, UseQueryParamsHookOptions, VirtualRouter, isPageRoute, useActive, useAlepha, useClient, useInject, useQueryParams, useRouter, useRouterEvents, useRouterState };
|
|
785
|
+
export { $page, AlephaReact, AnchorProps, ClientOnly, CreateLayersResult, ErrorBoundary, HrefLike, Layer, Link, NestedView, NotFoundPage as NotFound, PageConfigSchema, PageDescriptor, PageDescriptorOptions, PageDescriptorProvider, PageDescriptorRenderOptions, PageDescriptorRenderResult, PageReactContext, PageRequest, PageRequestConfig, PageResolve, PageRoute, PageRouteEntry, PreviousLayerData, ReactBrowserProvider, ReactHydrationState, ReactServerProvider, RedirectionError, RouterContext, RouterContextValue, RouterGoOptions, RouterHookApi, RouterLayerContext, RouterLayerContextValue, RouterRenderResult, RouterStackItem, RouterState, TPropsDefault, TPropsParentDefault, TransitionOptions, UseActiveHook, UseQueryParamsHookOptions, VirtualRouter, isPageRoute, useActive, useAlepha, useClient, useInject, useQueryParams, useRouter, useRouterEvents, useRouterState };
|
|
629
786
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/components/ClientOnly.tsx","../src/descriptors/$page.ts","../src/providers/PageDescriptorProvider.ts","../src/providers/BrowserRouterProvider.ts","../src/providers/ReactBrowserProvider.ts","../src/components/ErrorBoundary.tsx","../src/components/Link.tsx","../src/components/NestedView.tsx","../src/components/NotFound.tsx","../src/contexts/RouterContext.ts","../src/contexts/RouterLayerContext.ts","../src/hooks/RouterHookApi.ts","../src/errors/RedirectionError.ts","../src/hooks/useActive.ts","../src/hooks/useAlepha.ts","../src/hooks/useClient.ts","../src/hooks/useInject.ts","../src/hooks/useQueryParams.ts","../src/hooks/useRouter.ts","../src/hooks/useRouterEvents.ts","../src/hooks/useRouterState.ts","../src/providers/ReactServerProvider.ts","../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;UAOiB,eAAA;aACL;;;;;;;;;;;;;cAcN,oBAAqB,kBAAkB,qBAAgB;;;cCPvD,GAAA;;;;cAKO;mBACI,mBAAgB,6EAEL,8BAElB,sBAAsB,SAAS,QAAQ,gBAC9C,eAAe,SAAS,QAAQ;GAAlB,IAAA;;UA+BA,gBAAA;UACR;WACC;;KAGE,aAAA;ADvDK,KCyDL,mBAAA,GDxDA,CAAA,CAAA;AAcN,UC4CW,qBDlChB,CAAA,gBCmCgB,gBDnChB,GCmCmC,gBDnCnC,EAAA,eAAA,MAAA,GCoCwB,aDpCxB,EAAA,qBAAA,MAAA,GCqC8B,mBDrC9B,CAAA,CAAA;EAAA;;;;AAAA;;;;ACnB8E;EAOlE,WA+BZ,CAAA,EAAA,MAAA;EAAA;;;;;;;EA1B4D,IAAnD,CAAA,EAAA,MAAA;EAAqB;;;;;WAwErB;EAxCO;;;;AAEA;AAGjB;AAEA;AAEA;;;;;;;EA+BiB,OAgBgB,CAAA,EAAA,CAAA,OAAA,EAA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