@hyeonqyu/typed-router-core 1.3.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/{routes.types-C4Wr8tbE.d.mts → routes.types-BOeBykBW.d.mts} +3 -3
- package/dist/{routes.types-C4Wr8tbE.d.ts → routes.types-BOeBykBW.d.ts} +3 -3
- package/dist/routes.utils.d.mts +1 -1
- package/dist/routes.utils.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as Paths, a as PathValue } from './routes.types-
|
|
2
|
-
export { A as AnyZodSchema, B as BaseMetadata, E as ExtractSearchParams, G as GetRouteNode, c as PartialRouteTree, f as ResolvedRouteTree, R as RouteNode, b as RouteNodeMetadata, e as RoutePathname, d as RouteTree, g as SearchParamsForPath, S as SimplifyPathname } from './routes.types-
|
|
1
|
+
import { P as Paths, a as PathValue } from './routes.types-BOeBykBW.mjs';
|
|
2
|
+
export { A as AnyZodSchema, B as BaseMetadata, E as ExtractSearchParams, G as GetRouteNode, c as PartialRouteTree, f as ResolvedRouteTree, R as RouteNode, b as RouteNodeMetadata, e as RoutePathname, d as RouteTree, g as SearchParamsForPath, S as SimplifyPathname } from './routes.types-BOeBykBW.mjs';
|
|
3
3
|
|
|
4
4
|
type SearchParamsValue = string | number | boolean | readonly (string | number | boolean)[];
|
|
5
5
|
type SearchParams = Record<string, SearchParamsValue>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as Paths, a as PathValue } from './routes.types-
|
|
2
|
-
export { A as AnyZodSchema, B as BaseMetadata, E as ExtractSearchParams, G as GetRouteNode, c as PartialRouteTree, f as ResolvedRouteTree, R as RouteNode, b as RouteNodeMetadata, e as RoutePathname, d as RouteTree, g as SearchParamsForPath, S as SimplifyPathname } from './routes.types-
|
|
1
|
+
import { P as Paths, a as PathValue } from './routes.types-BOeBykBW.js';
|
|
2
|
+
export { A as AnyZodSchema, B as BaseMetadata, E as ExtractSearchParams, G as GetRouteNode, c as PartialRouteTree, f as ResolvedRouteTree, R as RouteNode, b as RouteNodeMetadata, e as RoutePathname, d as RouteTree, g as SearchParamsForPath, S as SimplifyPathname } from './routes.types-BOeBykBW.js';
|
|
3
3
|
|
|
4
4
|
type SearchParamsValue = string | number | boolean | readonly (string | number | boolean)[];
|
|
5
5
|
type SearchParams = Record<string, SearchParamsValue>;
|
|
@@ -13,9 +13,9 @@ type RouteNode<TMetadata extends BaseMetadata, TContext> = {
|
|
|
13
13
|
_metadata: RouteNodeMetadata<TMetadata, TContext>;
|
|
14
14
|
};
|
|
15
15
|
type RouteNodeMetadata<TMetadata extends BaseMetadata, TContext> = {
|
|
16
|
-
title?: string;
|
|
17
|
-
label?: string;
|
|
18
|
-
description?: string;
|
|
16
|
+
title?: (context: TContext) => string;
|
|
17
|
+
label?: (context: TContext) => string;
|
|
18
|
+
description?: (context: TContext) => string;
|
|
19
19
|
href?: (context: TContext) => string;
|
|
20
20
|
accessible?: (context: TContext) => boolean;
|
|
21
21
|
searchParamsSchema?: AnyZodSchema;
|
|
@@ -13,9 +13,9 @@ type RouteNode<TMetadata extends BaseMetadata, TContext> = {
|
|
|
13
13
|
_metadata: RouteNodeMetadata<TMetadata, TContext>;
|
|
14
14
|
};
|
|
15
15
|
type RouteNodeMetadata<TMetadata extends BaseMetadata, TContext> = {
|
|
16
|
-
title?: string;
|
|
17
|
-
label?: string;
|
|
18
|
-
description?: string;
|
|
16
|
+
title?: (context: TContext) => string;
|
|
17
|
+
label?: (context: TContext) => string;
|
|
18
|
+
description?: (context: TContext) => string;
|
|
19
19
|
href?: (context: TContext) => string;
|
|
20
20
|
accessible?: (context: TContext) => boolean;
|
|
21
21
|
searchParamsSchema?: AnyZodSchema;
|
package/dist/routes.utils.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { B as BaseMetadata, c as PartialRouteTree, d as RouteTree, f as ResolvedRouteTree, e as RoutePathname, a as PathValue } from './routes.types-
|
|
3
|
+
import { B as BaseMetadata, c as PartialRouteTree, d as RouteTree, f as ResolvedRouteTree, e as RoutePathname, a as PathValue } from './routes.types-BOeBykBW.mjs';
|
|
4
4
|
|
|
5
5
|
declare const createAppRoutes: <TMetadata extends BaseMetadata, TContext>() => <TRouteTree extends PartialRouteTree<TMetadata, TContext>>(appRoutes: TRouteTree & RouteTree<TMetadata, TContext, TRouteTree>) => {
|
|
6
6
|
AppRoutesProvider: ({ children }: {
|
package/dist/routes.utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { B as BaseMetadata, c as PartialRouteTree, d as RouteTree, f as ResolvedRouteTree, e as RoutePathname, a as PathValue } from './routes.types-
|
|
3
|
+
import { B as BaseMetadata, c as PartialRouteTree, d as RouteTree, f as ResolvedRouteTree, e as RoutePathname, a as PathValue } from './routes.types-BOeBykBW.js';
|
|
4
4
|
|
|
5
5
|
declare const createAppRoutes: <TMetadata extends BaseMetadata, TContext>() => <TRouteTree extends PartialRouteTree<TMetadata, TContext>>(appRoutes: TRouteTree & RouteTree<TMetadata, TContext, TRouteTree>) => {
|
|
6
6
|
AppRoutesProvider: ({ children }: {
|