react-router 7.6.1-pre.1 → 7.6.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.
Files changed (38) hide show
  1. package/CHANGELOG.md +9 -16
  2. package/dist/development/chunk-DQRVZFIR.mjs +11565 -0
  3. package/dist/development/dom-export.d.mts +2 -1
  4. package/dist/development/dom-export.js +1 -1
  5. package/dist/development/dom-export.mjs +23 -23
  6. package/dist/development/index.d.mts +260 -3751
  7. package/dist/development/index.d.ts +4 -1767
  8. package/dist/development/index.js +2 -2
  9. package/dist/development/index.mjs +121 -11439
  10. package/dist/development/lib/types/internal.d.mts +210 -0
  11. package/dist/development/lib/types/internal.d.ts +209 -0
  12. package/dist/{production/internal-export.js → development/lib/types/internal.js} +4 -4
  13. package/dist/{production/internal-export.mjs → development/lib/types/internal.mjs} +1 -1
  14. package/dist/development/lib-B8x_tOvL.d.mts +1736 -0
  15. package/dist/development/register-BkDIKxVz.d.ts +1816 -0
  16. package/dist/development/register-DeIo2iHO.d.mts +24 -0
  17. package/dist/development/route-data-WyrduLgj.d.mts +1793 -0
  18. package/dist/production/chunk-UG2XJOVM.mjs +11565 -0
  19. package/dist/production/dom-export.d.mts +2 -1
  20. package/dist/production/dom-export.js +1 -1
  21. package/dist/production/dom-export.mjs +23 -23
  22. package/dist/production/index.d.mts +260 -3751
  23. package/dist/production/index.d.ts +4 -1767
  24. package/dist/production/index.js +2 -2
  25. package/dist/production/index.mjs +121 -11439
  26. package/dist/production/lib/types/internal.d.mts +210 -0
  27. package/dist/production/lib/types/internal.d.ts +209 -0
  28. package/dist/{development/internal-export.js → production/lib/types/internal.js} +4 -4
  29. package/dist/{development/internal-export.mjs → production/lib/types/internal.mjs} +1 -1
  30. package/dist/production/lib-B8x_tOvL.d.mts +1736 -0
  31. package/dist/production/register-BkDIKxVz.d.ts +1816 -0
  32. package/dist/production/register-DeIo2iHO.d.mts +24 -0
  33. package/dist/production/route-data-WyrduLgj.d.mts +1793 -0
  34. package/package.json +4 -4
  35. package/dist/development/internal-export.d.mts +0 -504
  36. package/dist/development/internal-export.d.ts +0 -504
  37. package/dist/production/internal-export.d.mts +0 -504
  38. package/dist/production/internal-export.d.ts +0 -504
@@ -0,0 +1,210 @@
1
+ import { aE as LinkDescriptor, aV as RouteModule, L as Location, aB as MetaDescriptor, aW as unstable_MiddlewareNextFunction, aX as ServerDataFrom, ac as unstable_RouterContextProvider, r as MiddlewareEnabled, s as AppLoadContext, aY as Pretty, aZ as GetLoaderData, a_ as Normalize, a$ as GetActionData } from '../../route-data-WyrduLgj.mjs';
2
+ import { a as RouteFiles, P as Pages } from '../../register-DeIo2iHO.mjs';
3
+ import 'react';
4
+
5
+ type MaybePromise<T> = T | Promise<T>;
6
+ type Props = {
7
+ params: unknown;
8
+ loaderData: unknown;
9
+ actionData: unknown;
10
+ };
11
+ type RouteInfo = Props & {
12
+ module: RouteModule;
13
+ matches: Array<MatchInfo>;
14
+ };
15
+ type MatchInfo = {
16
+ id: string;
17
+ module: RouteModule;
18
+ };
19
+ type MetaMatch<T extends MatchInfo> = Pretty<{
20
+ id: T["id"];
21
+ params: Record<string, string | undefined>;
22
+ pathname: string;
23
+ meta: MetaDescriptor[];
24
+ data: GetLoaderData<T["module"]>;
25
+ handle?: unknown;
26
+ error?: unknown;
27
+ }>;
28
+ type MetaMatches<T extends Array<MatchInfo>> = T extends [infer F extends MatchInfo, ...infer R extends Array<MatchInfo>] ? [MetaMatch<F>, ...MetaMatches<R>] : Array<MetaMatch<MatchInfo> | undefined>;
29
+ type CreateMetaArgs<T extends RouteInfo> = {
30
+ /** This is the current router `Location` object. This is useful for generating tags for routes at specific paths or query parameters. */
31
+ location: Location;
32
+ /** {@link https://reactrouter.com/start/framework/routing#dynamic-segments Dynamic route params} for the current route. */
33
+ params: T["params"];
34
+ /** The return value for this route's server loader function */
35
+ data: T["loaderData"] | undefined;
36
+ /** Thrown errors that trigger error boundaries will be passed to the meta function. This is useful for generating metadata for error pages. */
37
+ error?: unknown;
38
+ /** An array of the current {@link https://api.reactrouter.com/v7/interfaces/react_router.UIMatch.html route matches}, including parent route matches. */
39
+ matches: MetaMatches<T["matches"]>;
40
+ };
41
+ type MetaDescriptors = MetaDescriptor[];
42
+ type HeadersArgs = {
43
+ loaderHeaders: Headers;
44
+ parentHeaders: Headers;
45
+ actionHeaders: Headers;
46
+ errorHeaders: Headers | undefined;
47
+ };
48
+ type ClientDataFunctionArgs<T extends RouteInfo> = {
49
+ /**
50
+ * A {@link https://developer.mozilla.org/en-US/docs/Web/API/Request Fetch Request instance} which you can use to read the URL, the method, the "content-type" header, and the request body from the request.
51
+ *
52
+ * @note Because client data functions are called before a network request is made, the Request object does not include the headers which the browser automatically adds. React Router infers the "content-type" header from the enc-type of the form that performed the submission.
53
+ **/
54
+ request: Request;
55
+ /**
56
+ * {@link https://reactrouter.com/start/framework/routing#dynamic-segments Dynamic route params} for the current route.
57
+ * @example
58
+ * // app/routes.ts
59
+ * route("teams/:teamId", "./team.tsx"),
60
+ *
61
+ * // app/team.tsx
62
+ * export function clientLoader({
63
+ * params,
64
+ * }: Route.ClientLoaderArgs) {
65
+ * params.teamId;
66
+ * // ^ string
67
+ * }
68
+ **/
69
+ params: T["params"];
70
+ /**
71
+ * When `future.unstable_middleware` is not enabled, this is undefined.
72
+ *
73
+ * When `future.unstable_middleware` is enabled, this is an instance of
74
+ * `unstable_RouterContextProvider` and can be used to access context values
75
+ * from your route middlewares. You may pass in initial context values in your
76
+ * `<HydratedRouter unstable_getContext>` prop
77
+ */
78
+ context: unstable_RouterContextProvider;
79
+ };
80
+ type ServerDataFunctionArgs<T extends RouteInfo> = {
81
+ /** A {@link https://developer.mozilla.org/en-US/docs/Web/API/Request Fetch Request instance} which you can use to read the url, method, headers (such as cookies), and request body from the request. */
82
+ request: Request;
83
+ /**
84
+ * {@link https://reactrouter.com/start/framework/routing#dynamic-segments Dynamic route params} for the current route.
85
+ * @example
86
+ * // app/routes.ts
87
+ * route("teams/:teamId", "./team.tsx"),
88
+ *
89
+ * // app/team.tsx
90
+ * export function loader({
91
+ * params,
92
+ * }: Route.LoaderArgs) {
93
+ * params.teamId;
94
+ * // ^ string
95
+ * }
96
+ **/
97
+ params: T["params"];
98
+ /**
99
+ * Without `future.unstable_middleware` enabled, this is the context passed in
100
+ * to your server adapter's `getLoadContext` function. It's a way to bridge the
101
+ * gap between the adapter's request/response API with your React Router app.
102
+ * It is only applicable if you are using a custom server adapter.
103
+ *
104
+ * With `future.unstable_middleware` enabled, this is an instance of
105
+ * `unstable_RouterContextProvider` and can be used for type-safe access to
106
+ * context value set in your route middlewares. If you are using a custom
107
+ * server adapter, you may provide an initial set of context values from your
108
+ * `getLoadContext` function.
109
+ */
110
+ context: MiddlewareEnabled extends true ? unstable_RouterContextProvider : AppLoadContext;
111
+ };
112
+ type CreateServerMiddlewareFunction<T extends RouteInfo> = (args: ServerDataFunctionArgs<T>, next: unstable_MiddlewareNextFunction<Response>) => MaybePromise<Response | void>;
113
+ type CreateClientMiddlewareFunction<T extends RouteInfo> = (args: ClientDataFunctionArgs<T>, next: unstable_MiddlewareNextFunction<undefined>) => MaybePromise<void>;
114
+ type CreateServerLoaderArgs<T extends RouteInfo> = ServerDataFunctionArgs<T>;
115
+ type CreateClientLoaderArgs<T extends RouteInfo> = ClientDataFunctionArgs<T> & {
116
+ /** This is an asynchronous function to get the data from the server loader for this route. On client-side navigations, this will make a {@link https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API fetch} call to the React Router server loader. If you opt-into running your clientLoader on hydration, then this function will return the data that was already loaded on the server (via Promise.resolve). */
117
+ serverLoader: () => Promise<ServerDataFrom<T["module"]["loader"]>>;
118
+ };
119
+ type CreateServerActionArgs<T extends RouteInfo> = ServerDataFunctionArgs<T>;
120
+ type CreateClientActionArgs<T extends RouteInfo> = ClientDataFunctionArgs<T> & {
121
+ /** This is an asynchronous function that makes the {@link https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API fetch} call to the React Router server action for this route. */
122
+ serverAction: () => Promise<ServerDataFrom<T["module"]["action"]>>;
123
+ };
124
+ type CreateHydrateFallbackProps<T extends RouteInfo> = {
125
+ params: T["params"];
126
+ loaderData?: T["loaderData"];
127
+ actionData?: T["actionData"];
128
+ };
129
+ type Match<T extends MatchInfo> = Pretty<{
130
+ id: T["id"];
131
+ params: Record<string, string | undefined>;
132
+ pathname: string;
133
+ data: GetLoaderData<T["module"]>;
134
+ handle: unknown;
135
+ }>;
136
+ type Matches<T extends Array<MatchInfo>> = T extends [infer F extends MatchInfo, ...infer R extends Array<MatchInfo>] ? [Match<F>, ...Matches<R>] : Array<Match<MatchInfo> | undefined>;
137
+ type CreateComponentProps<T extends RouteInfo> = {
138
+ /**
139
+ * {@link https://reactrouter.com/start/framework/routing#dynamic-segments Dynamic route params} for the current route.
140
+ * @example
141
+ * // app/routes.ts
142
+ * route("teams/:teamId", "./team.tsx"),
143
+ *
144
+ * // app/team.tsx
145
+ * export default function Component({
146
+ * params,
147
+ * }: Route.ComponentProps) {
148
+ * params.teamId;
149
+ * // ^ string
150
+ * }
151
+ **/
152
+ params: T["params"];
153
+ /** The data returned from the `loader` or `clientLoader` */
154
+ loaderData: T["loaderData"];
155
+ /** The data returned from the `action` or `clientAction` following an action submission. */
156
+ actionData?: T["actionData"];
157
+ /** An array of the current {@link https://api.reactrouter.com/v7/interfaces/react_router.UIMatch.html route matches}, including parent route matches. */
158
+ matches: Matches<T["matches"]>;
159
+ };
160
+ type CreateErrorBoundaryProps<T extends RouteInfo> = {
161
+ /**
162
+ * {@link https://reactrouter.com/start/framework/routing#dynamic-segments Dynamic route params} for the current route.
163
+ * @example
164
+ * // app/routes.ts
165
+ * route("teams/:teamId", "./team.tsx"),
166
+ *
167
+ * // app/team.tsx
168
+ * export function ErrorBoundary({
169
+ * params,
170
+ * }: Route.ErrorBoundaryProps) {
171
+ * params.teamId;
172
+ * // ^ string
173
+ * }
174
+ **/
175
+ params: T["params"];
176
+ error: unknown;
177
+ loaderData?: T["loaderData"];
178
+ actionData?: T["actionData"];
179
+ };
180
+ type GetAnnotations<Info extends RouteInfo> = {
181
+ LinkDescriptors: LinkDescriptor[];
182
+ LinksFunction: () => LinkDescriptor[];
183
+ MetaArgs: CreateMetaArgs<Info>;
184
+ MetaDescriptors: MetaDescriptors;
185
+ MetaFunction: (args: CreateMetaArgs<Info>) => MetaDescriptors;
186
+ HeadersArgs: HeadersArgs;
187
+ HeadersFunction: (args: HeadersArgs) => Headers | HeadersInit;
188
+ unstable_MiddlewareFunction: CreateServerMiddlewareFunction<Info>;
189
+ unstable_ClientMiddlewareFunction: CreateClientMiddlewareFunction<Info>;
190
+ LoaderArgs: CreateServerLoaderArgs<Info>;
191
+ ClientLoaderArgs: CreateClientLoaderArgs<Info>;
192
+ ActionArgs: CreateServerActionArgs<Info>;
193
+ ClientActionArgs: CreateClientActionArgs<Info>;
194
+ HydrateFallbackProps: CreateHydrateFallbackProps<Info>;
195
+ ComponentProps: CreateComponentProps<Info>;
196
+ ErrorBoundaryProps: CreateErrorBoundaryProps<Info>;
197
+ };
198
+
199
+ type Params<RouteFile extends keyof RouteFiles> = Normalize<Pages[RouteFiles[RouteFile]["page"]]["params"]>;
200
+
201
+ type GetInfo<T extends {
202
+ file: keyof RouteFiles;
203
+ module: RouteModule;
204
+ }> = {
205
+ params: Params<T["file"]>;
206
+ loaderData: GetLoaderData<T["module"]>;
207
+ actionData: GetActionData<T["module"]>;
208
+ };
209
+
210
+ export type { GetAnnotations, GetInfo };
@@ -0,0 +1,209 @@
1
+ import { aI as LinkDescriptor, aX as RouteModule, e as Location, aG as MetaDescriptor, aY as unstable_MiddlewareNextFunction, aZ as ServerDataFrom, u as unstable_RouterContextProvider, M as MiddlewareEnabled, i as AppLoadContext, a_ as Pretty, a$ as GetLoaderData, b0 as RouteFiles, b1 as Normalize, _ as Pages, b2 as GetActionData } from '../../register-BkDIKxVz.js';
2
+ import 'react';
3
+
4
+ type MaybePromise<T> = T | Promise<T>;
5
+ type Props = {
6
+ params: unknown;
7
+ loaderData: unknown;
8
+ actionData: unknown;
9
+ };
10
+ type RouteInfo = Props & {
11
+ module: RouteModule;
12
+ matches: Array<MatchInfo>;
13
+ };
14
+ type MatchInfo = {
15
+ id: string;
16
+ module: RouteModule;
17
+ };
18
+ type MetaMatch<T extends MatchInfo> = Pretty<{
19
+ id: T["id"];
20
+ params: Record<string, string | undefined>;
21
+ pathname: string;
22
+ meta: MetaDescriptor[];
23
+ data: GetLoaderData<T["module"]>;
24
+ handle?: unknown;
25
+ error?: unknown;
26
+ }>;
27
+ type MetaMatches<T extends Array<MatchInfo>> = T extends [infer F extends MatchInfo, ...infer R extends Array<MatchInfo>] ? [MetaMatch<F>, ...MetaMatches<R>] : Array<MetaMatch<MatchInfo> | undefined>;
28
+ type CreateMetaArgs<T extends RouteInfo> = {
29
+ /** This is the current router `Location` object. This is useful for generating tags for routes at specific paths or query parameters. */
30
+ location: Location;
31
+ /** {@link https://reactrouter.com/start/framework/routing#dynamic-segments Dynamic route params} for the current route. */
32
+ params: T["params"];
33
+ /** The return value for this route's server loader function */
34
+ data: T["loaderData"] | undefined;
35
+ /** Thrown errors that trigger error boundaries will be passed to the meta function. This is useful for generating metadata for error pages. */
36
+ error?: unknown;
37
+ /** An array of the current {@link https://api.reactrouter.com/v7/interfaces/react_router.UIMatch.html route matches}, including parent route matches. */
38
+ matches: MetaMatches<T["matches"]>;
39
+ };
40
+ type MetaDescriptors = MetaDescriptor[];
41
+ type HeadersArgs = {
42
+ loaderHeaders: Headers;
43
+ parentHeaders: Headers;
44
+ actionHeaders: Headers;
45
+ errorHeaders: Headers | undefined;
46
+ };
47
+ type ClientDataFunctionArgs<T extends RouteInfo> = {
48
+ /**
49
+ * A {@link https://developer.mozilla.org/en-US/docs/Web/API/Request Fetch Request instance} which you can use to read the URL, the method, the "content-type" header, and the request body from the request.
50
+ *
51
+ * @note Because client data functions are called before a network request is made, the Request object does not include the headers which the browser automatically adds. React Router infers the "content-type" header from the enc-type of the form that performed the submission.
52
+ **/
53
+ request: Request;
54
+ /**
55
+ * {@link https://reactrouter.com/start/framework/routing#dynamic-segments Dynamic route params} for the current route.
56
+ * @example
57
+ * // app/routes.ts
58
+ * route("teams/:teamId", "./team.tsx"),
59
+ *
60
+ * // app/team.tsx
61
+ * export function clientLoader({
62
+ * params,
63
+ * }: Route.ClientLoaderArgs) {
64
+ * params.teamId;
65
+ * // ^ string
66
+ * }
67
+ **/
68
+ params: T["params"];
69
+ /**
70
+ * When `future.unstable_middleware` is not enabled, this is undefined.
71
+ *
72
+ * When `future.unstable_middleware` is enabled, this is an instance of
73
+ * `unstable_RouterContextProvider` and can be used to access context values
74
+ * from your route middlewares. You may pass in initial context values in your
75
+ * `<HydratedRouter unstable_getContext>` prop
76
+ */
77
+ context: unstable_RouterContextProvider;
78
+ };
79
+ type ServerDataFunctionArgs<T extends RouteInfo> = {
80
+ /** A {@link https://developer.mozilla.org/en-US/docs/Web/API/Request Fetch Request instance} which you can use to read the url, method, headers (such as cookies), and request body from the request. */
81
+ request: Request;
82
+ /**
83
+ * {@link https://reactrouter.com/start/framework/routing#dynamic-segments Dynamic route params} for the current route.
84
+ * @example
85
+ * // app/routes.ts
86
+ * route("teams/:teamId", "./team.tsx"),
87
+ *
88
+ * // app/team.tsx
89
+ * export function loader({
90
+ * params,
91
+ * }: Route.LoaderArgs) {
92
+ * params.teamId;
93
+ * // ^ string
94
+ * }
95
+ **/
96
+ params: T["params"];
97
+ /**
98
+ * Without `future.unstable_middleware` enabled, this is the context passed in
99
+ * to your server adapter's `getLoadContext` function. It's a way to bridge the
100
+ * gap between the adapter's request/response API with your React Router app.
101
+ * It is only applicable if you are using a custom server adapter.
102
+ *
103
+ * With `future.unstable_middleware` enabled, this is an instance of
104
+ * `unstable_RouterContextProvider` and can be used for type-safe access to
105
+ * context value set in your route middlewares. If you are using a custom
106
+ * server adapter, you may provide an initial set of context values from your
107
+ * `getLoadContext` function.
108
+ */
109
+ context: MiddlewareEnabled extends true ? unstable_RouterContextProvider : AppLoadContext;
110
+ };
111
+ type CreateServerMiddlewareFunction<T extends RouteInfo> = (args: ServerDataFunctionArgs<T>, next: unstable_MiddlewareNextFunction<Response>) => MaybePromise<Response | void>;
112
+ type CreateClientMiddlewareFunction<T extends RouteInfo> = (args: ClientDataFunctionArgs<T>, next: unstable_MiddlewareNextFunction<undefined>) => MaybePromise<void>;
113
+ type CreateServerLoaderArgs<T extends RouteInfo> = ServerDataFunctionArgs<T>;
114
+ type CreateClientLoaderArgs<T extends RouteInfo> = ClientDataFunctionArgs<T> & {
115
+ /** This is an asynchronous function to get the data from the server loader for this route. On client-side navigations, this will make a {@link https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API fetch} call to the React Router server loader. If you opt-into running your clientLoader on hydration, then this function will return the data that was already loaded on the server (via Promise.resolve). */
116
+ serverLoader: () => Promise<ServerDataFrom<T["module"]["loader"]>>;
117
+ };
118
+ type CreateServerActionArgs<T extends RouteInfo> = ServerDataFunctionArgs<T>;
119
+ type CreateClientActionArgs<T extends RouteInfo> = ClientDataFunctionArgs<T> & {
120
+ /** This is an asynchronous function that makes the {@link https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API fetch} call to the React Router server action for this route. */
121
+ serverAction: () => Promise<ServerDataFrom<T["module"]["action"]>>;
122
+ };
123
+ type CreateHydrateFallbackProps<T extends RouteInfo> = {
124
+ params: T["params"];
125
+ loaderData?: T["loaderData"];
126
+ actionData?: T["actionData"];
127
+ };
128
+ type Match<T extends MatchInfo> = Pretty<{
129
+ id: T["id"];
130
+ params: Record<string, string | undefined>;
131
+ pathname: string;
132
+ data: GetLoaderData<T["module"]>;
133
+ handle: unknown;
134
+ }>;
135
+ type Matches<T extends Array<MatchInfo>> = T extends [infer F extends MatchInfo, ...infer R extends Array<MatchInfo>] ? [Match<F>, ...Matches<R>] : Array<Match<MatchInfo> | undefined>;
136
+ type CreateComponentProps<T extends RouteInfo> = {
137
+ /**
138
+ * {@link https://reactrouter.com/start/framework/routing#dynamic-segments Dynamic route params} for the current route.
139
+ * @example
140
+ * // app/routes.ts
141
+ * route("teams/:teamId", "./team.tsx"),
142
+ *
143
+ * // app/team.tsx
144
+ * export default function Component({
145
+ * params,
146
+ * }: Route.ComponentProps) {
147
+ * params.teamId;
148
+ * // ^ string
149
+ * }
150
+ **/
151
+ params: T["params"];
152
+ /** The data returned from the `loader` or `clientLoader` */
153
+ loaderData: T["loaderData"];
154
+ /** The data returned from the `action` or `clientAction` following an action submission. */
155
+ actionData?: T["actionData"];
156
+ /** An array of the current {@link https://api.reactrouter.com/v7/interfaces/react_router.UIMatch.html route matches}, including parent route matches. */
157
+ matches: Matches<T["matches"]>;
158
+ };
159
+ type CreateErrorBoundaryProps<T extends RouteInfo> = {
160
+ /**
161
+ * {@link https://reactrouter.com/start/framework/routing#dynamic-segments Dynamic route params} for the current route.
162
+ * @example
163
+ * // app/routes.ts
164
+ * route("teams/:teamId", "./team.tsx"),
165
+ *
166
+ * // app/team.tsx
167
+ * export function ErrorBoundary({
168
+ * params,
169
+ * }: Route.ErrorBoundaryProps) {
170
+ * params.teamId;
171
+ * // ^ string
172
+ * }
173
+ **/
174
+ params: T["params"];
175
+ error: unknown;
176
+ loaderData?: T["loaderData"];
177
+ actionData?: T["actionData"];
178
+ };
179
+ type GetAnnotations<Info extends RouteInfo> = {
180
+ LinkDescriptors: LinkDescriptor[];
181
+ LinksFunction: () => LinkDescriptor[];
182
+ MetaArgs: CreateMetaArgs<Info>;
183
+ MetaDescriptors: MetaDescriptors;
184
+ MetaFunction: (args: CreateMetaArgs<Info>) => MetaDescriptors;
185
+ HeadersArgs: HeadersArgs;
186
+ HeadersFunction: (args: HeadersArgs) => Headers | HeadersInit;
187
+ unstable_MiddlewareFunction: CreateServerMiddlewareFunction<Info>;
188
+ unstable_ClientMiddlewareFunction: CreateClientMiddlewareFunction<Info>;
189
+ LoaderArgs: CreateServerLoaderArgs<Info>;
190
+ ClientLoaderArgs: CreateClientLoaderArgs<Info>;
191
+ ActionArgs: CreateServerActionArgs<Info>;
192
+ ClientActionArgs: CreateClientActionArgs<Info>;
193
+ HydrateFallbackProps: CreateHydrateFallbackProps<Info>;
194
+ ComponentProps: CreateComponentProps<Info>;
195
+ ErrorBoundaryProps: CreateErrorBoundaryProps<Info>;
196
+ };
197
+
198
+ type Params<RouteFile extends keyof RouteFiles> = Normalize<Pages[RouteFiles[RouteFile]["page"]]["params"]>;
199
+
200
+ type GetInfo<T extends {
201
+ file: keyof RouteFiles;
202
+ module: RouteModule;
203
+ }> = {
204
+ params: Params<T["file"]>;
205
+ loaderData: GetLoaderData<T["module"]>;
206
+ actionData: GetActionData<T["module"]>;
207
+ };
208
+
209
+ export type { GetAnnotations, GetInfo };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.6.1-pre.1
2
+ * react-router v7.6.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -23,6 +23,6 @@ var __copyProps = (to, from, except, desc) => {
23
23
  };
24
24
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
25
 
26
- // internal-export.ts
27
- var internal_export_exports = {};
28
- module.exports = __toCommonJS(internal_export_exports);
26
+ // lib/types/internal.ts
27
+ var internal_exports = {};
28
+ module.exports = __toCommonJS(internal_exports);
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.6.1-pre.1
2
+ * react-router v7.6.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *