@tanstack/react-router 0.0.1-beta.20 → 0.0.1-beta.21
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/build/cjs/react-router/src/index.js +23 -0
- package/build/cjs/react-router/src/index.js.map +1 -1
- package/build/esm/index.js +20 -1
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +27 -27
- package/build/types/index.d.ts +34 -36
- package/build/umd/index.development.js +23 -0
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +2 -2
- package/src/index.tsx +109 -77
package/build/stats-html.html
CHANGED
|
@@ -4014,7 +4014,7 @@ var drawChart = (function (exports) {
|
|
|
4014
4014
|
</script>
|
|
4015
4015
|
<script>
|
|
4016
4016
|
/*<!--*/
|
|
4017
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"uid":"
|
|
4017
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"uid":"d45b-59","name":"\u0000rollupPluginBabelHelpers.js"},{"name":"packages","children":[{"name":"router-core/build/esm/index.js","uid":"d45b-61"},{"name":"react-router/src/index.tsx","uid":"d45b-63"}]}]}],"isRoot":true},"nodeParts":{"d45b-59":{"renderedLength":798,"gzipLength":366,"brotliLength":0,"mainUid":"d45b-58"},"d45b-61":{"renderedLength":75162,"gzipLength":15777,"brotliLength":0,"mainUid":"d45b-60"},"d45b-63":{"renderedLength":12795,"gzipLength":3210,"brotliLength":0,"mainUid":"d45b-62"}},"nodeMetas":{"d45b-58":{"id":"\u0000rollupPluginBabelHelpers.js","moduleParts":{"index.production.js":"d45b-59"},"imported":[],"importedBy":[{"uid":"d45b-62"}]},"d45b-60":{"id":"/packages/router-core/build/esm/index.js","moduleParts":{"index.production.js":"d45b-61"},"imported":[],"importedBy":[{"uid":"d45b-62"}]},"d45b-62":{"id":"/packages/react-router/src/index.tsx","moduleParts":{"index.production.js":"d45b-63"},"imported":[{"uid":"d45b-58"},{"uid":"d45b-64"},{"uid":"d45b-65"},{"uid":"d45b-60"}],"importedBy":[],"isEntry":true},"d45b-64":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"d45b-62"}],"isExternal":true},"d45b-65":{"id":"use-sync-external-store/shim","moduleParts":{},"imported":[],"importedBy":[{"uid":"d45b-62"}],"isExternal":true}},"env":{"rollup":"2.77.2"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
|
|
4018
4018
|
|
|
4019
4019
|
const run = () => {
|
|
4020
4020
|
const width = window.innerWidth;
|
package/build/stats-react.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"name": "index.production.js",
|
|
8
8
|
"children": [
|
|
9
9
|
{
|
|
10
|
-
"uid": "
|
|
10
|
+
"uid": "d45b-67",
|
|
11
11
|
"name": "\u0000rollupPluginBabelHelpers.js"
|
|
12
12
|
},
|
|
13
13
|
{
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
"children": [
|
|
16
16
|
{
|
|
17
17
|
"name": "router-core/build/esm/index.js",
|
|
18
|
-
"uid": "
|
|
18
|
+
"uid": "d45b-69"
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
"name": "react-router/src/index.tsx",
|
|
22
|
-
"uid": "
|
|
22
|
+
"uid": "d45b-71"
|
|
23
23
|
}
|
|
24
24
|
]
|
|
25
25
|
}
|
|
@@ -29,90 +29,90 @@
|
|
|
29
29
|
"isRoot": true
|
|
30
30
|
},
|
|
31
31
|
"nodeParts": {
|
|
32
|
-
"
|
|
32
|
+
"d45b-67": {
|
|
33
33
|
"renderedLength": 798,
|
|
34
34
|
"gzipLength": 366,
|
|
35
35
|
"brotliLength": 0,
|
|
36
|
-
"mainUid": "
|
|
36
|
+
"mainUid": "d45b-66"
|
|
37
37
|
},
|
|
38
|
-
"
|
|
38
|
+
"d45b-69": {
|
|
39
39
|
"renderedLength": 75162,
|
|
40
40
|
"gzipLength": 15777,
|
|
41
41
|
"brotliLength": 0,
|
|
42
|
-
"mainUid": "
|
|
42
|
+
"mainUid": "d45b-68"
|
|
43
43
|
},
|
|
44
|
-
"
|
|
45
|
-
"renderedLength":
|
|
46
|
-
"gzipLength":
|
|
44
|
+
"d45b-71": {
|
|
45
|
+
"renderedLength": 12795,
|
|
46
|
+
"gzipLength": 3210,
|
|
47
47
|
"brotliLength": 0,
|
|
48
|
-
"mainUid": "
|
|
48
|
+
"mainUid": "d45b-70"
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
"nodeMetas": {
|
|
52
|
-
"
|
|
52
|
+
"d45b-66": {
|
|
53
53
|
"id": "\u0000rollupPluginBabelHelpers.js",
|
|
54
54
|
"moduleParts": {
|
|
55
|
-
"index.production.js": "
|
|
55
|
+
"index.production.js": "d45b-67"
|
|
56
56
|
},
|
|
57
57
|
"imported": [],
|
|
58
58
|
"importedBy": [
|
|
59
59
|
{
|
|
60
|
-
"uid": "
|
|
60
|
+
"uid": "d45b-70"
|
|
61
61
|
}
|
|
62
62
|
]
|
|
63
63
|
},
|
|
64
|
-
"
|
|
64
|
+
"d45b-68": {
|
|
65
65
|
"id": "/packages/router-core/build/esm/index.js",
|
|
66
66
|
"moduleParts": {
|
|
67
|
-
"index.production.js": "
|
|
67
|
+
"index.production.js": "d45b-69"
|
|
68
68
|
},
|
|
69
69
|
"imported": [],
|
|
70
70
|
"importedBy": [
|
|
71
71
|
{
|
|
72
|
-
"uid": "
|
|
72
|
+
"uid": "d45b-70"
|
|
73
73
|
}
|
|
74
74
|
]
|
|
75
75
|
},
|
|
76
|
-
"
|
|
76
|
+
"d45b-70": {
|
|
77
77
|
"id": "/packages/react-router/src/index.tsx",
|
|
78
78
|
"moduleParts": {
|
|
79
|
-
"index.production.js": "
|
|
79
|
+
"index.production.js": "d45b-71"
|
|
80
80
|
},
|
|
81
81
|
"imported": [
|
|
82
82
|
{
|
|
83
|
-
"uid": "
|
|
83
|
+
"uid": "d45b-66"
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
|
-
"uid": "
|
|
86
|
+
"uid": "d45b-72"
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
|
-
"uid": "
|
|
89
|
+
"uid": "d45b-73"
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
|
-
"uid": "
|
|
92
|
+
"uid": "d45b-68"
|
|
93
93
|
}
|
|
94
94
|
],
|
|
95
95
|
"importedBy": [],
|
|
96
96
|
"isEntry": true
|
|
97
97
|
},
|
|
98
|
-
"
|
|
98
|
+
"d45b-72": {
|
|
99
99
|
"id": "react",
|
|
100
100
|
"moduleParts": {},
|
|
101
101
|
"imported": [],
|
|
102
102
|
"importedBy": [
|
|
103
103
|
{
|
|
104
|
-
"uid": "
|
|
104
|
+
"uid": "d45b-70"
|
|
105
105
|
}
|
|
106
106
|
],
|
|
107
107
|
"isExternal": true
|
|
108
108
|
},
|
|
109
|
-
"
|
|
109
|
+
"d45b-73": {
|
|
110
110
|
"id": "use-sync-external-store/shim",
|
|
111
111
|
"moduleParts": {},
|
|
112
112
|
"imported": [],
|
|
113
113
|
"importedBy": [
|
|
114
114
|
{
|
|
115
|
-
"uid": "
|
|
115
|
+
"uid": "d45b-70"
|
|
116
116
|
}
|
|
117
117
|
],
|
|
118
118
|
"isExternal": true
|
package/build/types/index.d.ts
CHANGED
|
@@ -9,15 +9,15 @@
|
|
|
9
9
|
* @license MIT
|
|
10
10
|
*/
|
|
11
11
|
import * as React from 'react';
|
|
12
|
-
import { AnyRouteConfig, RouteConfig, AnyAllRouteInfo, AllRouteInfo, RouterState, RouteMatch,
|
|
12
|
+
import { AnyRouteConfig, RouteConfig, AnyAllRouteInfo, AllRouteInfo, RouterState, RouteMatch, RouteInfo, DefaultAllRouteInfo, AnyRouteInfo, ResolveRelativePath, NoInfer, CheckId, ToIdOption, Router, ValidFromPath, ToOptions, MatchRouteOptions, RouteInfoByPath, RouterOptions, Route, LinkOptions } from '@tanstack/router-core';
|
|
13
13
|
export * from '@tanstack/router-core';
|
|
14
14
|
|
|
15
15
|
interface RegisterRouter {
|
|
16
16
|
}
|
|
17
|
-
type
|
|
17
|
+
type RegisteredRouter = RegisterRouter extends {
|
|
18
18
|
router: Router<infer TRouteConfig, infer TAllRouteInfo>;
|
|
19
19
|
} ? Router<TRouteConfig, TAllRouteInfo> : Router;
|
|
20
|
-
type
|
|
20
|
+
type RegisteredAllRouteInfo = RegisterRouter extends {
|
|
21
21
|
router: Router<infer TRouteConfig, infer TAllRouteInfo>;
|
|
22
22
|
} ? TAllRouteInfo : AnyAllRouteInfo;
|
|
23
23
|
type SyncRouteComponent = (props?: {}) => JSX.Element | React.ReactNode;
|
|
@@ -27,6 +27,19 @@ type RouteComponent = SyncRouteComponent & {
|
|
|
27
27
|
declare function lazy(importer: () => Promise<{
|
|
28
28
|
default: SyncRouteComponent;
|
|
29
29
|
}>): RouteComponent;
|
|
30
|
+
type LinkPropsOptions<TAllRouteInfo extends AnyAllRouteInfo, TFrom extends ValidFromPath<TAllRouteInfo>, TTo extends string> = LinkOptions<TAllRouteInfo, TFrom, TTo> & {
|
|
31
|
+
activeProps?: React.AnchorHTMLAttributes<HTMLAnchorElement> | (() => React.AnchorHTMLAttributes<HTMLAnchorElement>);
|
|
32
|
+
inactiveProps?: React.AnchorHTMLAttributes<HTMLAnchorElement> | (() => React.AnchorHTMLAttributes<HTMLAnchorElement>);
|
|
33
|
+
};
|
|
34
|
+
type MakeMatchRouteOptions<TAllRouteInfo extends AnyAllRouteInfo, TFrom extends ValidFromPath<TAllRouteInfo>, TTo extends string> = ToOptions<TAllRouteInfo, TFrom, TTo> & MatchRouteOptions & {
|
|
35
|
+
children?: React.ReactNode | ((params: RouteInfoByPath<TAllRouteInfo, ResolveRelativePath<TFrom, NoInfer<TTo>>>['allParams']) => React.ReactNode);
|
|
36
|
+
};
|
|
37
|
+
type MakeLinkPropsOptions<TAllRouteInfo extends AnyAllRouteInfo, TFrom extends ValidFromPath<TAllRouteInfo>, TTo extends string> = LinkPropsOptions<TAllRouteInfo, TFrom, TTo> & React.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
38
|
+
type MakeLinkOptions<TAllRouteInfo extends AnyAllRouteInfo, TFrom extends ValidFromPath<TAllRouteInfo>, TTo extends string> = LinkPropsOptions<TAllRouteInfo, TFrom, TTo> & React.AnchorHTMLAttributes<HTMLAnchorElement> & Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'children'> & {
|
|
39
|
+
children?: React.ReactNode | ((state: {
|
|
40
|
+
isActive: boolean;
|
|
41
|
+
}) => React.ReactNode);
|
|
42
|
+
};
|
|
30
43
|
declare module '@tanstack/router-core' {
|
|
31
44
|
interface FrameworkGenerics {
|
|
32
45
|
Component: RouteComponent;
|
|
@@ -34,51 +47,32 @@ declare module '@tanstack/router-core' {
|
|
|
34
47
|
interface Router<TRouteConfig extends AnyRouteConfig = RouteConfig, TAllRouteInfo extends AnyAllRouteInfo = AllRouteInfo<TRouteConfig>> {
|
|
35
48
|
useState: () => RouterState;
|
|
36
49
|
useRoute: <TId extends keyof TAllRouteInfo['routeInfoById']>(routeId: TId) => Route<TAllRouteInfo, TAllRouteInfo['routeInfoById'][TId]>;
|
|
37
|
-
|
|
50
|
+
useNearestMatch: () => RouteMatch<TAllRouteInfo, RouteInfo>;
|
|
51
|
+
useMatch: <TId extends keyof TAllRouteInfo['routeInfoById'], TStrict extends boolean = true>(routeId: TId, opts?: {
|
|
38
52
|
strict?: TStrict;
|
|
39
53
|
}) => TStrict extends true ? RouteMatch<TAllRouteInfo, TAllRouteInfo['routeInfoById'][TId]> : RouteMatch<TAllRouteInfo, TAllRouteInfo['routeInfoById'][TId]> | undefined;
|
|
40
|
-
linkProps: <TTo extends string = '.'>(props:
|
|
41
|
-
Link: <TTo extends string = '.'>(props:
|
|
42
|
-
|
|
43
|
-
isActive: boolean;
|
|
44
|
-
}) => React.ReactNode);
|
|
45
|
-
}) => JSX.Element;
|
|
46
|
-
MatchRoute: <TTo extends string = '.'>(props: ToOptions<TAllRouteInfo, '/', TTo> & MatchRouteOptions & {
|
|
47
|
-
children?: React.ReactNode | ((params: RouteInfoByPath<TAllRouteInfo, ResolveRelativePath<'/', NoInfer<TTo>>>['allParams']) => React.ReactNode);
|
|
48
|
-
}) => JSX.Element;
|
|
54
|
+
linkProps: <TTo extends string = '.'>(props: MakeLinkPropsOptions<TAllRouteInfo, '/', TTo>) => React.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
55
|
+
Link: <TTo extends string = '.'>(props: MakeLinkOptions<TAllRouteInfo, '/', TTo>) => JSX.Element;
|
|
56
|
+
MatchRoute: <TTo extends string = '.'>(props: MakeMatchRouteOptions<TAllRouteInfo, '/', TTo>) => JSX.Element;
|
|
49
57
|
}
|
|
50
58
|
interface Route<TAllRouteInfo extends AnyAllRouteInfo = DefaultAllRouteInfo, TRouteInfo extends AnyRouteInfo = RouteInfo> {
|
|
51
59
|
useRoute: <TTo extends string = '.', TResolved extends string = ResolveRelativePath<TRouteInfo['id'], NoInfer<TTo>>>(routeId: CheckId<TAllRouteInfo, TResolved, ToIdOption<TAllRouteInfo, TRouteInfo['id'], TTo>>, opts?: {
|
|
52
60
|
strict?: boolean;
|
|
53
61
|
}) => Route<TAllRouteInfo, TAllRouteInfo['routeInfoById'][TResolved]>;
|
|
54
|
-
linkProps: <TTo extends string = '.'>(props:
|
|
55
|
-
Link: <TTo extends string = '.'>(props:
|
|
56
|
-
|
|
57
|
-
isActive: boolean;
|
|
58
|
-
}) => React.ReactNode);
|
|
59
|
-
}) => JSX.Element;
|
|
60
|
-
MatchRoute: <TTo extends string = '.'>(props: ToOptions<TAllRouteInfo, TRouteInfo['fullPath'], TTo> & MatchRouteOptions & {
|
|
61
|
-
children?: React.ReactNode | ((params: RouteInfoByPath<TAllRouteInfo, ResolveRelativePath<TRouteInfo['fullPath'], NoInfer<TTo>>>['allParams']) => React.ReactNode);
|
|
62
|
-
}) => JSX.Element;
|
|
62
|
+
linkProps: <TTo extends string = '.'>(props: MakeLinkPropsOptions<TAllRouteInfo, TRouteInfo['fullPath'], TTo>) => React.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
63
|
+
Link: <TTo extends string = '.'>(props: MakeLinkOptions<TAllRouteInfo, TRouteInfo['fullPath'], TTo>) => JSX.Element;
|
|
64
|
+
MatchRoute: <TTo extends string = '.'>(props: MakeMatchRouteOptions<TAllRouteInfo, TRouteInfo['fullPath'], TTo>) => JSX.Element;
|
|
63
65
|
}
|
|
64
66
|
}
|
|
65
|
-
type LinkPropsOptions<TAllRouteInfo extends AnyAllRouteInfo = DefaultAllRouteInfo, TFrom extends ValidFromPath<TAllRouteInfo> = '/', TTo extends string = '.'> = LinkOptions<TAllRouteInfo, TFrom, TTo> & {
|
|
66
|
-
activeProps?: React.AnchorHTMLAttributes<HTMLAnchorElement> | (() => React.AnchorHTMLAttributes<HTMLAnchorElement>);
|
|
67
|
-
inactiveProps?: React.AnchorHTMLAttributes<HTMLAnchorElement> | (() => React.AnchorHTMLAttributes<HTMLAnchorElement>);
|
|
68
|
-
};
|
|
69
67
|
type PromptProps = {
|
|
70
68
|
message: string;
|
|
71
69
|
when?: boolean | any;
|
|
72
70
|
children?: React.ReactNode;
|
|
73
71
|
};
|
|
74
|
-
declare function Link<TTo extends string = '.'>(props:
|
|
75
|
-
children?: React.ReactNode | ((state: {
|
|
76
|
-
isActive: boolean;
|
|
77
|
-
}) => React.ReactNode);
|
|
78
|
-
}): JSX.Element;
|
|
72
|
+
declare function Link<TTo extends string = '.'>(props: MakeLinkOptions<RegisteredAllRouteInfo, '/', TTo>): JSX.Element;
|
|
79
73
|
declare const matchesContext: React.Context<RouteMatch<DefaultAllRouteInfo, RouteInfo<string, string, string, string, {}, {}, {}, unknown, unknown, {}, {}, {}, {}, Record<never, string>, {}>>[]>;
|
|
80
74
|
declare const routerContext: React.Context<{
|
|
81
|
-
router:
|
|
75
|
+
router: RegisteredRouter;
|
|
82
76
|
}>;
|
|
83
77
|
type MatchesProviderProps = {
|
|
84
78
|
value: RouteMatch[];
|
|
@@ -91,11 +85,15 @@ type RouterProps<TRouteConfig extends AnyRouteConfig = RouteConfig, TAllRouteInf
|
|
|
91
85
|
children?: React.ReactNode;
|
|
92
86
|
};
|
|
93
87
|
declare function RouterProvider<TRouteConfig extends AnyRouteConfig = RouteConfig, TAllRouteInfo extends AnyAllRouteInfo = DefaultAllRouteInfo>({ children, router, ...rest }: RouterProps<TRouteConfig, TAllRouteInfo>): JSX.Element;
|
|
94
|
-
declare function useRouter():
|
|
88
|
+
declare function useRouter(): RegisteredRouter;
|
|
95
89
|
declare function useMatches(): RouteMatch[];
|
|
96
|
-
declare function useMatch<TId extends keyof
|
|
90
|
+
declare function useMatch<TId extends keyof RegisteredAllRouteInfo['routeInfoById'], TStrict extends boolean = true>(routeId: TId, opts?: {
|
|
97
91
|
strict?: TStrict;
|
|
98
|
-
}): TStrict extends true ? RouteMatch<
|
|
92
|
+
}): TStrict extends true ? RouteMatch<RegisteredAllRouteInfo, RegisteredAllRouteInfo['routeInfoById'][TId]> : RouteMatch<RegisteredAllRouteInfo, RegisteredAllRouteInfo['routeInfoById'][TId]> | undefined;
|
|
93
|
+
declare function useNearestMatch(): RouteMatch<RegisteredAllRouteInfo, RouteInfo>;
|
|
94
|
+
declare function useRoute<TId extends keyof RegisteredAllRouteInfo['routeInfoById']>(routeId: TId): Route<RegisteredAllRouteInfo, RegisteredAllRouteInfo['routeInfoById'][TId]>;
|
|
95
|
+
declare function linkProps<TTo extends string = '.'>(props: MakeLinkPropsOptions<RegisteredAllRouteInfo, '/', TTo>): React.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
96
|
+
declare function MatchRoute<TTo extends string = '.'>(props: MakeMatchRouteOptions<RegisteredAllRouteInfo, '/', TTo>): JSX.Element;
|
|
99
97
|
declare function Outlet(): JSX.Element | null;
|
|
100
98
|
declare function DefaultErrorBoundary({ error }: {
|
|
101
99
|
error: any;
|
|
@@ -103,4 +101,4 @@ declare function DefaultErrorBoundary({ error }: {
|
|
|
103
101
|
declare function usePrompt(message: string, when: boolean | any): void;
|
|
104
102
|
declare function Prompt({ message, when, children }: PromptProps): React.ReactNode;
|
|
105
103
|
|
|
106
|
-
export { DefaultErrorBoundary, Link, MatchesProvider, MatchesProviderProps, Outlet, Prompt, PromptProps, RegisterRouter,
|
|
104
|
+
export { DefaultErrorBoundary, Link, MatchRoute, MatchesProvider, MatchesProviderProps, Outlet, Prompt, PromptProps, RegisterRouter, RegisteredAllRouteInfo, RegisteredRouter, RouteComponent, RouterProps, RouterProvider, SyncRouteComponent, createReactRouter, lazy, linkProps, matchesContext, routerContext, useMatch, useMatches, useNearestMatch, usePrompt, useRoute, useRouter };
|
|
@@ -2778,6 +2778,25 @@
|
|
|
2778
2778
|
const router = useRouter();
|
|
2779
2779
|
return router.useMatch(routeId, opts);
|
|
2780
2780
|
}
|
|
2781
|
+
function useNearestMatch() {
|
|
2782
|
+
var _useMatches2;
|
|
2783
|
+
|
|
2784
|
+
const runtimeMatch = (_useMatches2 = useMatches()) == null ? void 0 : _useMatches2[0];
|
|
2785
|
+
invariant(runtimeMatch, "Could not find a nearest match!");
|
|
2786
|
+
return runtimeMatch;
|
|
2787
|
+
}
|
|
2788
|
+
function useRoute(routeId) {
|
|
2789
|
+
const router = useRouter();
|
|
2790
|
+
return router.useRoute(routeId);
|
|
2791
|
+
}
|
|
2792
|
+
function linkProps(props) {
|
|
2793
|
+
const router = useRouter();
|
|
2794
|
+
return router.linkProps(props);
|
|
2795
|
+
}
|
|
2796
|
+
function MatchRoute(props) {
|
|
2797
|
+
const router = useRouter();
|
|
2798
|
+
return /*#__PURE__*/React__namespace.createElement(router.MatchRoute, props);
|
|
2799
|
+
}
|
|
2781
2800
|
function Outlet() {
|
|
2782
2801
|
var _ref3, _match$__$pendingComp, _match$__$errorCompon;
|
|
2783
2802
|
|
|
@@ -2898,6 +2917,7 @@
|
|
|
2898
2917
|
|
|
2899
2918
|
exports.DefaultErrorBoundary = DefaultErrorBoundary;
|
|
2900
2919
|
exports.Link = Link;
|
|
2920
|
+
exports.MatchRoute = MatchRoute;
|
|
2901
2921
|
exports.MatchesProvider = MatchesProvider;
|
|
2902
2922
|
exports.Outlet = Outlet;
|
|
2903
2923
|
exports.Prompt = Prompt;
|
|
@@ -2921,6 +2941,7 @@
|
|
|
2921
2941
|
exports.joinPaths = joinPaths;
|
|
2922
2942
|
exports.last = last;
|
|
2923
2943
|
exports.lazy = lazy;
|
|
2944
|
+
exports.linkProps = linkProps;
|
|
2924
2945
|
exports.matchByPath = matchByPath;
|
|
2925
2946
|
exports.matchPathname = matchPathname;
|
|
2926
2947
|
exports.matchesContext = matchesContext;
|
|
@@ -2937,7 +2958,9 @@
|
|
|
2937
2958
|
exports.trimPathRight = trimPathRight;
|
|
2938
2959
|
exports.useMatch = useMatch;
|
|
2939
2960
|
exports.useMatches = useMatches;
|
|
2961
|
+
exports.useNearestMatch = useNearestMatch;
|
|
2940
2962
|
exports.usePrompt = usePrompt;
|
|
2963
|
+
exports.useRoute = useRoute;
|
|
2941
2964
|
exports.useRouter = useRouter;
|
|
2942
2965
|
exports.warning = warning;
|
|
2943
2966
|
|