react-router 7.14.1 → 7.15.0

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 (72) hide show
  1. package/CHANGELOG.md +105 -0
  2. package/dist/development/{browser-D-3-U2Jj.d.mts → browser-CRsXgNrY.d.mts} +2 -2
  3. package/dist/{production/browser-D-3-U2Jj.d.mts → development/browser-wDl1FZEL.d.ts} +2 -2
  4. package/dist/{production/chunk-3SUPTI2U.js → development/chunk-2D5H3HU3.js} +7 -7
  5. package/dist/development/{chunk-OE4NN4TA.mjs → chunk-5KNZJZUH.mjs} +362 -213
  6. package/dist/development/{chunk-YMKMFAYZ.js → chunk-AM3XM4LS.js} +314 -172
  7. package/dist/development/{chunk-BFXCU3MI.mjs → chunk-RMD3H4O3.mjs} +81 -62
  8. package/dist/development/{chunk-3F6IB66O.js → chunk-Z5YQYACE.js} +146 -139
  9. package/dist/{production/context-BzhbVly6.d.mts → development/context-BQs41HrG.d.mts} +94 -42
  10. package/dist/development/{routeModules-CM_clkdE.d.ts → data-BVUf681J.d.mts} +89 -56
  11. package/dist/{production/routeModules-CM_clkdE.d.ts → development/data-BqZ2x964.d.ts} +79 -46
  12. package/dist/development/dom-export.d.mts +9 -9
  13. package/dist/development/dom-export.d.ts +9 -9
  14. package/dist/development/dom-export.js +37 -40
  15. package/dist/development/dom-export.mjs +12 -15
  16. package/dist/development/{index-react-server-client-CimaPp9o.d.ts → index-react-server-client-CSv-KZBk.d.ts} +123 -121
  17. package/dist/{production/index-react-server-client-WSaoxloq.d.mts → development/index-react-server-client-Ck_yZ1qL.d.mts} +102 -100
  18. package/dist/development/index-react-server-client.d.mts +3 -3
  19. package/dist/development/index-react-server-client.d.ts +3 -3
  20. package/dist/development/index-react-server-client.js +4 -4
  21. package/dist/development/index-react-server-client.mjs +2 -2
  22. package/dist/development/index-react-server.d.mts +107 -36
  23. package/dist/development/index-react-server.d.ts +107 -36
  24. package/dist/development/index-react-server.js +60 -33
  25. package/dist/development/index-react-server.mjs +60 -33
  26. package/dist/development/index.d.mts +11 -11
  27. package/dist/development/index.d.ts +11 -11
  28. package/dist/development/index.js +174 -155
  29. package/dist/development/index.mjs +3 -3
  30. package/dist/{production/instrumentation-CMVbvxj9.d.ts → development/instrumentation-DlJ2QV7d.d.ts} +73 -21
  31. package/dist/development/lib/types/internal.d.mts +2 -2
  32. package/dist/development/lib/types/internal.d.ts +2 -2
  33. package/dist/development/lib/types/internal.js +1 -1
  34. package/dist/development/lib/types/internal.mjs +1 -1
  35. package/dist/development/{register-D1WlEpq9.d.ts → register-Bsscfj79.d.ts} +1 -1
  36. package/dist/{production/register-D1WlEpq9.d.ts → development/register-Df8okEea.d.mts} +1 -1
  37. package/dist/production/{browser-CtktEGQs.d.ts → browser-CRsXgNrY.d.mts} +2 -2
  38. package/dist/{development/browser-CtktEGQs.d.ts → production/browser-wDl1FZEL.d.ts} +2 -2
  39. package/dist/production/{chunk-G5ZWO7Q6.mjs → chunk-23ZOHYE5.mjs} +81 -62
  40. package/dist/{development/chunk-7VLQJKNG.js → production/chunk-7YXKJMLN.js} +7 -7
  41. package/dist/production/{chunk-SPR7R4GU.mjs → chunk-GM3PW4GX.mjs} +362 -213
  42. package/dist/production/{chunk-UVEQGZIH.js → chunk-LCJTIOKZ.js} +314 -172
  43. package/dist/production/{chunk-LIOP3ILM.js → chunk-YBQJ3ABE.js} +146 -139
  44. package/dist/{development/context-BzhbVly6.d.mts → production/context-BQs41HrG.d.mts} +94 -42
  45. package/dist/{development/routeModules-Djumx26z.d.mts → production/data-BVUf681J.d.mts} +79 -46
  46. package/dist/production/{routeModules-Djumx26z.d.mts → data-BqZ2x964.d.ts} +89 -56
  47. package/dist/production/dom-export.d.mts +9 -9
  48. package/dist/production/dom-export.d.ts +9 -9
  49. package/dist/production/dom-export.js +37 -40
  50. package/dist/production/dom-export.mjs +12 -15
  51. package/dist/production/{index-react-server-client-CimaPp9o.d.ts → index-react-server-client-CSv-KZBk.d.ts} +123 -121
  52. package/dist/{development/index-react-server-client-WSaoxloq.d.mts → production/index-react-server-client-Ck_yZ1qL.d.mts} +102 -100
  53. package/dist/production/index-react-server-client.d.mts +3 -3
  54. package/dist/production/index-react-server-client.d.ts +3 -3
  55. package/dist/production/index-react-server-client.js +4 -4
  56. package/dist/production/index-react-server-client.mjs +2 -2
  57. package/dist/production/index-react-server.d.mts +107 -36
  58. package/dist/production/index-react-server.d.ts +107 -36
  59. package/dist/production/index-react-server.js +60 -33
  60. package/dist/production/index-react-server.mjs +60 -33
  61. package/dist/production/index.d.mts +11 -11
  62. package/dist/production/index.d.ts +11 -11
  63. package/dist/production/index.js +174 -155
  64. package/dist/production/index.mjs +3 -3
  65. package/dist/{development/instrumentation-CMVbvxj9.d.ts → production/instrumentation-DlJ2QV7d.d.ts} +73 -21
  66. package/dist/production/lib/types/internal.d.mts +2 -2
  67. package/dist/production/lib/types/internal.d.ts +2 -2
  68. package/dist/production/lib/types/internal.js +1 -1
  69. package/dist/production/lib/types/internal.mjs +1 -1
  70. package/dist/{development/register-aE9ob3TK.d.mts → production/register-Bsscfj79.d.ts} +1 -1
  71. package/dist/production/{register-aE9ob3TK.d.mts → register-Df8okEea.d.mts} +1 -1
  72. package/package.json +1 -1
@@ -1,6 +1,70 @@
1
- import { H as HydrationState, h as StaticHandlerContext, n as unstable_ServerInstrumentation, d as RelativeRoutingType, g as GetScrollRestorationKeyFunction, R as RouterInit, ah as FutureConfig$1, u as unstable_ClientInstrumentation, N as NavigateOptions, F as Fetcher, b as Router, B as BlockerFunction, ai as CreateStaticHandlerOptions$1, S as StaticHandler } from './context-BzhbVly6.mjs';
1
+ import { o as ServerInstrumentation, H as HydrationState, i as StaticHandlerContext, e as RelativeRoutingType, h as GetScrollRestorationKeyFunction, R as RouterInit, ah as FutureConfig$1, C as ClientInstrumentation, N as NavigateOptions, F as Fetcher, c as Router, B as BlockerFunction, ai as CreateStaticHandlerOptions$1, S as StaticHandler } from './context-BQs41HrG.mjs';
2
2
  import * as React from 'react';
3
- import { aD as RouteManifest, X as RouteModules, E as DataRouteObject, a as ClientLoaderFunction, aE as ServerRouteModule, p as MiddlewareEnabled, c as RouterContextProvider, q as AppLoadContext, o as LoaderFunctionArgs, a1 as ActionFunctionArgs, m as HTMLFormMethod, n as FormEncType, au as PageLinkDescriptor, T as To, s as History, z as DataStrategyFunction, B as PatchRoutesOnNavigationFunction, r as RouteObject, Y as SerializeFrom, L as Location } from './routeModules-Djumx26z.mjs';
3
+ import { J as RouteManifest, aF as ServerRouteModule, p as MiddlewareEnabled, c as RouterContextProvider, q as AppLoadContext, o as LoaderFunctionArgs, a3 as ActionFunctionArgs, Z as RouteModules, E as DataRouteObject, a as ClientLoaderFunction, I as RouteBranch, m as HTMLFormMethod, n as FormEncType, aw as PageLinkDescriptor, T as To, s as History, z as DataStrategyFunction, B as PatchRoutesOnNavigationFunction, r as RouteObject, _ as SerializeFrom, L as Location } from './data-BVUf681J.mjs';
4
+
5
+ type ServerRouteManifest = RouteManifest<Omit<ServerRoute, "children">>;
6
+ interface ServerRoute extends Route {
7
+ children: ServerRoute[];
8
+ module: ServerRouteModule;
9
+ }
10
+
11
+ type OptionalCriticalCss = CriticalCss | undefined;
12
+ /**
13
+ * The output of the compiler for the server build.
14
+ */
15
+ interface ServerBuild {
16
+ entry: {
17
+ module: ServerEntryModule;
18
+ };
19
+ routes: ServerRouteManifest;
20
+ assets: AssetsManifest;
21
+ basename?: string;
22
+ publicPath: string;
23
+ assetsBuildDirectory: string;
24
+ future: FutureConfig;
25
+ ssr: boolean;
26
+ unstable_getCriticalCss?: (args: {
27
+ pathname: string;
28
+ }) => OptionalCriticalCss | Promise<OptionalCriticalCss>;
29
+ /**
30
+ * @deprecated This is now done via a custom header during prerendering
31
+ */
32
+ isSpaMode: boolean;
33
+ prerender: string[];
34
+ routeDiscovery: {
35
+ mode: "lazy" | "initial";
36
+ manifestPath: string;
37
+ };
38
+ allowedActionOrigins?: string[] | false;
39
+ }
40
+ interface HandleDocumentRequestFunction {
41
+ (request: Request, responseStatusCode: number, responseHeaders: Headers, context: EntryContext, loadContext: MiddlewareEnabled extends true ? RouterContextProvider : AppLoadContext): Promise<Response> | Response;
42
+ }
43
+ interface HandleDataRequestFunction {
44
+ (response: Response, args: {
45
+ request: LoaderFunctionArgs["request"] | ActionFunctionArgs["request"];
46
+ context: LoaderFunctionArgs["context"] | ActionFunctionArgs["context"];
47
+ params: LoaderFunctionArgs["params"] | ActionFunctionArgs["params"];
48
+ }): Promise<Response> | Response;
49
+ }
50
+ interface HandleErrorFunction {
51
+ (error: unknown, args: {
52
+ request: LoaderFunctionArgs["request"] | ActionFunctionArgs["request"];
53
+ context: LoaderFunctionArgs["context"] | ActionFunctionArgs["context"];
54
+ params: LoaderFunctionArgs["params"] | ActionFunctionArgs["params"];
55
+ }): void;
56
+ }
57
+ /**
58
+ * A module that serves as the entry point for a Remix app during server
59
+ * rendering.
60
+ */
61
+ interface ServerEntryModule {
62
+ default: HandleDocumentRequestFunction;
63
+ handleDataRequest?: HandleDataRequestFunction;
64
+ handleError?: HandleErrorFunction;
65
+ instrumentations?: ServerInstrumentation[];
66
+ streamTimeout?: number;
67
+ }
4
68
 
5
69
  interface Route {
6
70
  index?: boolean;
@@ -55,12 +119,12 @@ interface FrameworkContextObject {
55
119
  };
56
120
  }
57
121
  interface EntryContext extends FrameworkContextObject {
122
+ branches: RouteBranch<DataRouteObject>[];
58
123
  staticHandlerContext: StaticHandlerContext;
59
124
  serverHandoffStream?: ReadableStream<Uint8Array>;
60
125
  }
61
126
  interface FutureConfig {
62
- unstable_passThroughRequests: boolean;
63
- unstable_subResourceIntegrity: boolean;
127
+ v8_passThroughRequests: boolean;
64
128
  unstable_trailingSlashAwareDataRequests: boolean;
65
129
  v8_middleware: boolean;
66
130
  }
@@ -83,70 +147,6 @@ interface AssetsManifest {
83
147
  sri?: Record<string, string> | true;
84
148
  }
85
149
 
86
- type ServerRouteManifest = RouteManifest<Omit<ServerRoute, "children">>;
87
- interface ServerRoute extends Route {
88
- children: ServerRoute[];
89
- module: ServerRouteModule;
90
- }
91
-
92
- type OptionalCriticalCss = CriticalCss | undefined;
93
- /**
94
- * The output of the compiler for the server build.
95
- */
96
- interface ServerBuild {
97
- entry: {
98
- module: ServerEntryModule;
99
- };
100
- routes: ServerRouteManifest;
101
- assets: AssetsManifest;
102
- basename?: string;
103
- publicPath: string;
104
- assetsBuildDirectory: string;
105
- future: FutureConfig;
106
- ssr: boolean;
107
- unstable_getCriticalCss?: (args: {
108
- pathname: string;
109
- }) => OptionalCriticalCss | Promise<OptionalCriticalCss>;
110
- /**
111
- * @deprecated This is now done via a custom header during prerendering
112
- */
113
- isSpaMode: boolean;
114
- prerender: string[];
115
- routeDiscovery: {
116
- mode: "lazy" | "initial";
117
- manifestPath: string;
118
- };
119
- allowedActionOrigins?: string[] | false;
120
- }
121
- interface HandleDocumentRequestFunction {
122
- (request: Request, responseStatusCode: number, responseHeaders: Headers, context: EntryContext, loadContext: MiddlewareEnabled extends true ? RouterContextProvider : AppLoadContext): Promise<Response> | Response;
123
- }
124
- interface HandleDataRequestFunction {
125
- (response: Response, args: {
126
- request: LoaderFunctionArgs["request"] | ActionFunctionArgs["request"];
127
- context: LoaderFunctionArgs["context"] | ActionFunctionArgs["context"];
128
- params: LoaderFunctionArgs["params"] | ActionFunctionArgs["params"];
129
- }): Promise<Response> | Response;
130
- }
131
- interface HandleErrorFunction {
132
- (error: unknown, args: {
133
- request: LoaderFunctionArgs["request"] | ActionFunctionArgs["request"];
134
- context: LoaderFunctionArgs["context"] | ActionFunctionArgs["context"];
135
- params: LoaderFunctionArgs["params"] | ActionFunctionArgs["params"];
136
- }): void;
137
- }
138
- /**
139
- * A module that serves as the entry point for a Remix app during server
140
- * rendering.
141
- */
142
- interface ServerEntryModule {
143
- default: HandleDocumentRequestFunction;
144
- handleDataRequest?: HandleDataRequestFunction;
145
- handleError?: HandleErrorFunction;
146
- unstable_instrumentations?: unstable_ServerInstrumentation[];
147
- streamTimeout?: number;
148
- }
149
-
150
150
  type ParamKeyValuePair = [string, string];
151
151
  type URLSearchParamsInit = string | ParamKeyValuePair[] | Record<string, string | string[]> | URLSearchParams;
152
152
  /**
@@ -230,7 +230,7 @@ interface SharedSubmitOptions {
230
230
  * By default (when not specified), loaders will revalidate according to the routers
231
231
  * standard revalidation behavior.
232
232
  */
233
- unstable_defaultShouldRevalidate?: boolean;
233
+ defaultShouldRevalidate?: boolean;
234
234
  }
235
235
  /**
236
236
  * Submit options available to fetchers
@@ -564,7 +564,7 @@ interface DOMRouterOpts {
564
564
  *
565
565
  * ```tsx
566
566
  * let router = createBrowserRouter(routes, {
567
- * unstable_instrumentations: [logging]
567
+ * instrumentations: [logging]
568
568
  * });
569
569
  *
570
570
  *
@@ -602,7 +602,7 @@ interface DOMRouterOpts {
602
602
  * }
603
603
  * ```
604
604
  */
605
- unstable_instrumentations?: unstable_ClientInstrumentation[];
605
+ instrumentations?: ClientInstrumentation[];
606
606
  /**
607
607
  * Override the default data strategy of running loaders in parallel -
608
608
  * see the [docs](../../how-to/data-strategy) for more information.
@@ -951,7 +951,7 @@ interface DOMRouterOpts {
951
951
  * @param {DOMRouterOpts.future} opts.future n/a
952
952
  * @param {DOMRouterOpts.getContext} opts.getContext n/a
953
953
  * @param {DOMRouterOpts.hydrationData} opts.hydrationData n/a
954
- * @param {DOMRouterOpts.unstable_instrumentations} opts.unstable_instrumentations n/a
954
+ * @param {DOMRouterOpts.instrumentations} opts.instrumentations n/a
955
955
  * @param {DOMRouterOpts.patchRoutesOnNavigation} opts.patchRoutesOnNavigation n/a
956
956
  * @param {DOMRouterOpts.window} opts.window n/a
957
957
  * @returns An initialized {@link DataRouter| data router} to pass to {@link RouterProvider | `<RouterProvider>`}
@@ -970,7 +970,7 @@ declare function createBrowserRouter(routes: RouteObject[], opts?: DOMRouterOpts
970
970
  * @param {DOMRouterOpts.future} opts.future n/a
971
971
  * @param {DOMRouterOpts.getContext} opts.getContext n/a
972
972
  * @param {DOMRouterOpts.hydrationData} opts.hydrationData n/a
973
- * @param {DOMRouterOpts.unstable_instrumentations} opts.unstable_instrumentations n/a
973
+ * @param {DOMRouterOpts.instrumentations} opts.instrumentations n/a
974
974
  * @param {DOMRouterOpts.dataStrategy} opts.dataStrategy n/a
975
975
  * @param {DOMRouterOpts.patchRoutesOnNavigation} opts.patchRoutesOnNavigation n/a
976
976
  * @param {DOMRouterOpts.window} opts.window n/a
@@ -1001,9 +1001,9 @@ interface BrowserRouterProps {
1001
1001
  * - When set to `false`, the router will not leverage `React.startTransition`
1002
1002
  * on any navigations or state changes.
1003
1003
  *
1004
- * For more information, please see the [docs](https://reactrouter.com/explanation/react-transitions).
1004
+ * For more information, please see the [docs](../../explanation/react-transitions).
1005
1005
  */
1006
- unstable_useTransitions?: boolean;
1006
+ useTransitions?: boolean;
1007
1007
  /**
1008
1008
  * [`Window`](https://developer.mozilla.org/en-US/docs/Web/API/Window) object
1009
1009
  * override. Defaults to the global `window` instance
@@ -1020,12 +1020,12 @@ interface BrowserRouterProps {
1020
1020
  * @param props Props
1021
1021
  * @param {BrowserRouterProps.basename} props.basename n/a
1022
1022
  * @param {BrowserRouterProps.children} props.children n/a
1023
- * @param {BrowserRouterProps.unstable_useTransitions} props.unstable_useTransitions n/a
1023
+ * @param {BrowserRouterProps.useTransitions} props.useTransitions n/a
1024
1024
  * @param {BrowserRouterProps.window} props.window n/a
1025
1025
  * @returns A declarative {@link Router | `<Router>`} using the browser [`History`](https://developer.mozilla.org/en-US/docs/Web/API/History)
1026
1026
  * API for client-side routing.
1027
1027
  */
1028
- declare function BrowserRouter({ basename, children, unstable_useTransitions, window, }: BrowserRouterProps): React.JSX.Element;
1028
+ declare function BrowserRouter({ basename, children, useTransitions, window, }: BrowserRouterProps): React.JSX.Element;
1029
1029
  /**
1030
1030
  * @category Types
1031
1031
  */
@@ -1050,9 +1050,9 @@ interface HashRouterProps {
1050
1050
  * - When set to `false`, the router will not leverage `React.startTransition`
1051
1051
  * on any navigations or state changes.
1052
1052
  *
1053
- * For more information, please see the [docs](https://reactrouter.com/explanation/react-transitions).
1053
+ * For more information, please see the [docs](../../explanation/react-transitions).
1054
1054
  */
1055
- unstable_useTransitions?: boolean;
1055
+ useTransitions?: boolean;
1056
1056
  /**
1057
1057
  * [`Window`](https://developer.mozilla.org/en-US/docs/Web/API/Window) object
1058
1058
  * override. Defaults to the global `window` instance
@@ -1070,12 +1070,12 @@ interface HashRouterProps {
1070
1070
  * @param props Props
1071
1071
  * @param {HashRouterProps.basename} props.basename n/a
1072
1072
  * @param {HashRouterProps.children} props.children n/a
1073
- * @param {HashRouterProps.unstable_useTransitions} props.unstable_useTransitions n/a
1073
+ * @param {HashRouterProps.useTransitions} props.useTransitions n/a
1074
1074
  * @param {HashRouterProps.window} props.window n/a
1075
1075
  * @returns A declarative {@link Router | `<Router>`} using the URL [`hash`](https://developer.mozilla.org/en-US/docs/Web/API/URL/hash)
1076
1076
  * for client-side routing.
1077
1077
  */
1078
- declare function HashRouter({ basename, children, unstable_useTransitions, window, }: HashRouterProps): React.JSX.Element;
1078
+ declare function HashRouter({ basename, children, useTransitions, window, }: HashRouterProps): React.JSX.Element;
1079
1079
  /**
1080
1080
  * @category Types
1081
1081
  */
@@ -1104,9 +1104,9 @@ interface HistoryRouterProps {
1104
1104
  * - When set to `false`, the router will not leverage `React.startTransition`
1105
1105
  * on any navigations or state changes.
1106
1106
  *
1107
- * For more information, please see the [docs](https://reactrouter.com/explanation/react-transitions).
1107
+ * For more information, please see the [docs](../../explanation/react-transitions).
1108
1108
  */
1109
- unstable_useTransitions?: boolean;
1109
+ useTransitions?: boolean;
1110
1110
  }
1111
1111
  /**
1112
1112
  * A declarative {@link Router | `<Router>`} that accepts a pre-instantiated
@@ -1123,11 +1123,11 @@ interface HistoryRouterProps {
1123
1123
  * @param {HistoryRouterProps.basename} props.basename n/a
1124
1124
  * @param {HistoryRouterProps.children} props.children n/a
1125
1125
  * @param {HistoryRouterProps.history} props.history n/a
1126
- * @param {HistoryRouterProps.unstable_useTransitions} props.unstable_useTransitions n/a
1126
+ * @param {HistoryRouterProps.useTransitions} props.useTransitions n/a
1127
1127
  * @returns A declarative {@link Router | `<Router>`} using the provided history
1128
1128
  * implementation for client-side routing.
1129
1129
  */
1130
- declare function HistoryRouter({ basename, children, history, unstable_useTransitions, }: HistoryRouterProps): React.JSX.Element;
1130
+ declare function HistoryRouter({ basename, children, history, useTransitions, }: HistoryRouterProps): React.JSX.Element;
1131
1131
  declare namespace HistoryRouter {
1132
1132
  var displayName: string;
1133
1133
  }
@@ -1294,7 +1294,7 @@ interface LinkProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>,
1294
1294
  * Specify the default revalidation behavior for the navigation.
1295
1295
  *
1296
1296
  * ```tsx
1297
- * <Link to="/some/path" unstable_defaultShouldRevalidate={false} />
1297
+ * <Link to="/some/path" defaultShouldRevalidate={false} />
1298
1298
  * ```
1299
1299
  *
1300
1300
  * If no `shouldRevalidate` functions are present on the active routes, then this
@@ -1305,7 +1305,7 @@ interface LinkProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>,
1305
1305
  * By default (when not specified), loaders will revalidate according to the routers
1306
1306
  * standard revalidation behavior.
1307
1307
  */
1308
- unstable_defaultShouldRevalidate?: boolean;
1308
+ defaultShouldRevalidate?: boolean;
1309
1309
  /**
1310
1310
  * Masked path for this navigation, when you want to navigate the router to
1311
1311
  * one location but display a separate location in the URL bar.
@@ -1336,7 +1336,7 @@ interface LinkProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>,
1336
1336
  * <Link
1337
1337
  * key={image.id}
1338
1338
  * to={`/gallery?image=${image.id}`}
1339
- * unstable_mask={`/images/${image.id}`}
1339
+ * mask={`/images/${image.id}`}
1340
1340
  * >
1341
1341
  * <img src={image.url} alt={image.alt} />
1342
1342
  * </Link>
@@ -1353,7 +1353,7 @@ interface LinkProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>,
1353
1353
  * }
1354
1354
  * ```
1355
1355
  */
1356
- unstable_mask?: To;
1356
+ mask?: To;
1357
1357
  }
1358
1358
  /**
1359
1359
  * A progressively enhanced [`<a href>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a)
@@ -1383,8 +1383,8 @@ interface LinkProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>,
1383
1383
  * @param {LinkProps.state} props.state n/a
1384
1384
  * @param {LinkProps.to} props.to n/a
1385
1385
  * @param {LinkProps.viewTransition} props.viewTransition [modes: framework, data] n/a
1386
- * @param {LinkProps.unstable_defaultShouldRevalidate} props.unstable_defaultShouldRevalidate n/a
1387
- * @param {LinkProps.unstable_mask} props.unstable_mask [modes: framework, data] n/a
1386
+ * @param {LinkProps.defaultShouldRevalidate} props.defaultShouldRevalidate n/a
1387
+ * @param {LinkProps.mask} props.mask [modes: framework, data] n/a
1388
1388
  */
1389
1389
  declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
1390
1390
  /**
@@ -1625,7 +1625,7 @@ interface SharedFormProps extends React.FormHTMLAttributes<HTMLFormElement> {
1625
1625
  * By default (when not specified), loaders will revalidate according to the routers
1626
1626
  * standard revalidation behavior.
1627
1627
  */
1628
- unstable_defaultShouldRevalidate?: boolean;
1628
+ defaultShouldRevalidate?: boolean;
1629
1629
  }
1630
1630
  /**
1631
1631
  * Form props available to fetchers
@@ -1733,7 +1733,7 @@ interface FormProps extends SharedFormProps {
1733
1733
  * @param {FormProps.replace} replace n/a
1734
1734
  * @param {FormProps.state} state n/a
1735
1735
  * @param {FormProps.viewTransition} viewTransition n/a
1736
- * @param {FormProps.unstable_defaultShouldRevalidate} unstable_defaultShouldRevalidate n/a
1736
+ * @param {FormProps.defaultShouldRevalidate} defaultShouldRevalidate n/a
1737
1737
  * @returns A progressively enhanced [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form) component
1738
1738
  */
1739
1739
  declare const Form: React.ForwardRefExoticComponent<FormProps & React.RefAttributes<HTMLFormElement>>;
@@ -1824,25 +1824,25 @@ declare namespace ScrollRestoration {
1824
1824
  * @param options.viewTransition Enables a [View Transition](https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API)
1825
1825
  * for this navigation. To apply specific styles during the transition, see
1826
1826
  * {@link useViewTransitionState}. Defaults to `false`.
1827
- * @param options.unstable_defaultShouldRevalidate Specify the default revalidation
1827
+ * @param options.defaultShouldRevalidate Specify the default revalidation
1828
1828
  * behavior for the navigation. Defaults to `true`.
1829
- * @param options.unstable_mask Masked location to display in the browser instead
1829
+ * @param options.mask Masked location to display in the browser instead
1830
1830
  * of the router location. Defaults to `undefined`.
1831
- * @param options.unstable_useTransitions Wraps the navigation in
1831
+ * @param options.useTransitions Wraps the navigation in
1832
1832
  * [`React.startTransition`](https://react.dev/reference/react/startTransition)
1833
1833
  * for concurrent rendering. Defaults to `false`.
1834
1834
  * @returns A click handler function that can be used in a custom {@link Link} component.
1835
1835
  */
1836
- declare function useLinkClickHandler<E extends Element = HTMLAnchorElement>(to: To, { target, replace: replaceProp, unstable_mask, state, preventScrollReset, relative, viewTransition, unstable_defaultShouldRevalidate, unstable_useTransitions, }?: {
1836
+ declare function useLinkClickHandler<E extends Element = HTMLAnchorElement>(to: To, { target, replace: replaceProp, mask, state, preventScrollReset, relative, viewTransition, defaultShouldRevalidate, useTransitions, }?: {
1837
1837
  target?: React.HTMLAttributeAnchorTarget;
1838
1838
  replace?: boolean;
1839
- unstable_mask?: To;
1839
+ mask?: To;
1840
1840
  state?: any;
1841
1841
  preventScrollReset?: boolean;
1842
1842
  relative?: RelativeRoutingType;
1843
1843
  viewTransition?: boolean;
1844
- unstable_defaultShouldRevalidate?: boolean;
1845
- unstable_useTransitions?: boolean;
1844
+ defaultShouldRevalidate?: boolean;
1845
+ useTransitions?: boolean;
1846
1846
  }): (event: React.MouseEvent<E, MouseEvent>) => void;
1847
1847
  /**
1848
1848
  * Returns a tuple of the current URL's [`URLSearchParams`](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams)
@@ -2581,9 +2581,11 @@ declare function createStaticHandler(routes: RouteObject[], opts?: CreateStaticH
2581
2581
  * `query`
2582
2582
  * @param opts Options
2583
2583
  * @param opts.future Future flags for the static {@link DataRouter}
2584
+ * @param opts.branches Optional pre-computed route branches
2584
2585
  * @returns A static {@link DataRouter} that can be used to render the provided routes
2585
2586
  */
2586
2587
  declare function createStaticRouter(routes: RouteObject[], context: StaticHandlerContext, opts?: {
2588
+ branches?: RouteBranch<DataRouteObject>[];
2587
2589
  future?: Partial<FutureConfig$1>;
2588
2590
  }): Router;
2589
2591
 
@@ -1,4 +1,4 @@
1
- export { Q as MemoryRouter, T as Navigate, U as Outlet, V as Route, W as Router, X as RouterProvider, Y as Routes, A as UNSAFE_AwaitContextProvider, ab as UNSAFE_WithComponentProps, af as UNSAFE_WithErrorBoundaryProps, ad as UNSAFE_WithHydrateFallbackProps } from './context-BzhbVly6.mjs';
2
- export { l as BrowserRouter, q as Form, m as HashRouter, n as Link, X as Links, W as Meta, p as NavLink, r as ScrollRestoration, T as StaticRouter, V as StaticRouterProvider, o as unstable_HistoryRouter } from './index-react-server-client-WSaoxloq.mjs';
3
- import './routeModules-Djumx26z.mjs';
1
+ export { Q as MemoryRouter, T as Navigate, U as Outlet, V as Route, W as Router, X as RouterProvider, Y as Routes, A as UNSAFE_AwaitContextProvider, ab as UNSAFE_WithComponentProps, af as UNSAFE_WithErrorBoundaryProps, ad as UNSAFE_WithHydrateFallbackProps } from './context-BQs41HrG.mjs';
2
+ export { l as BrowserRouter, q as Form, m as HashRouter, n as Link, X as Links, W as Meta, p as NavLink, r as ScrollRestoration, T as StaticRouter, V as StaticRouterProvider, o as unstable_HistoryRouter } from './index-react-server-client-Ck_yZ1qL.mjs';
3
+ import './data-BVUf681J.mjs';
4
4
  import 'react';
@@ -1,4 +1,4 @@
1
- export { W as BrowserRouter, $ as Form, X as HashRouter, Y as Link, an as Links, j as MemoryRouter, am as Meta, _ as NavLink, k as Navigate, l as Outlet, m as Route, n as Router, o as RouterProvider, p as Routes, a0 as ScrollRestoration, ak as StaticRouter, al as StaticRouterProvider, b as UNSAFE_AwaitContextProvider, aH as UNSAFE_WithComponentProps, aL as UNSAFE_WithErrorBoundaryProps, aJ as UNSAFE_WithHydrateFallbackProps, Z as unstable_HistoryRouter } from './index-react-server-client-CimaPp9o.js';
2
- import './instrumentation-CMVbvxj9.js';
3
- import './routeModules-CM_clkdE.js';
1
+ export { W as BrowserRouter, $ as Form, X as HashRouter, Y as Link, an as Links, j as MemoryRouter, am as Meta, _ as NavLink, k as Navigate, l as Outlet, m as Route, n as Router, o as RouterProvider, p as Routes, a0 as ScrollRestoration, ak as StaticRouter, al as StaticRouterProvider, b as UNSAFE_AwaitContextProvider, aH as UNSAFE_WithComponentProps, aL as UNSAFE_WithErrorBoundaryProps, aJ as UNSAFE_WithHydrateFallbackProps, Z as unstable_HistoryRouter } from './index-react-server-client-CSv-KZBk.js';
2
+ import './instrumentation-DlJ2QV7d.js';
3
+ import './data-BqZ2x964.js';
4
4
  import 'react';
@@ -1,5 +1,5 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});/**
2
- * react-router v7.14.1
2
+ * react-router v7.15.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -19,7 +19,7 @@
19
19
 
20
20
 
21
21
 
22
- var _chunk3F6IB66Ojs = require('./chunk-3F6IB66O.js');
22
+ var _chunkZ5YQYACEjs = require('./chunk-Z5YQYACE.js');
23
23
 
24
24
 
25
25
 
@@ -34,7 +34,7 @@ var _chunk3F6IB66Ojs = require('./chunk-3F6IB66O.js');
34
34
 
35
35
 
36
36
 
37
- var _chunkYMKMFAYZjs = require('./chunk-YMKMFAYZ.js');
37
+ var _chunkAM3XM4LSjs = require('./chunk-AM3XM4LS.js');
38
38
 
39
39
 
40
40
 
@@ -58,4 +58,4 @@ var _chunkYMKMFAYZjs = require('./chunk-YMKMFAYZ.js');
58
58
 
59
59
 
60
60
 
61
- exports.BrowserRouter = _chunk3F6IB66Ojs.BrowserRouter; exports.Form = _chunk3F6IB66Ojs.Form; exports.HashRouter = _chunk3F6IB66Ojs.HashRouter; exports.Link = _chunk3F6IB66Ojs.Link; exports.Links = _chunkYMKMFAYZjs.Links; exports.MemoryRouter = _chunkYMKMFAYZjs.MemoryRouter; exports.Meta = _chunkYMKMFAYZjs.Meta; exports.NavLink = _chunk3F6IB66Ojs.NavLink; exports.Navigate = _chunkYMKMFAYZjs.Navigate; exports.Outlet = _chunkYMKMFAYZjs.Outlet; exports.Route = _chunkYMKMFAYZjs.Route; exports.Router = _chunkYMKMFAYZjs.Router; exports.RouterProvider = _chunkYMKMFAYZjs.RouterProvider; exports.Routes = _chunkYMKMFAYZjs.Routes; exports.ScrollRestoration = _chunk3F6IB66Ojs.ScrollRestoration; exports.StaticRouter = _chunk3F6IB66Ojs.StaticRouter; exports.StaticRouterProvider = _chunk3F6IB66Ojs.StaticRouterProvider; exports.UNSAFE_AwaitContextProvider = _chunkYMKMFAYZjs.AwaitContextProvider; exports.UNSAFE_WithComponentProps = _chunkYMKMFAYZjs.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkYMKMFAYZjs.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkYMKMFAYZjs.WithHydrateFallbackProps; exports.unstable_HistoryRouter = _chunk3F6IB66Ojs.HistoryRouter;
61
+ exports.BrowserRouter = _chunkZ5YQYACEjs.BrowserRouter; exports.Form = _chunkZ5YQYACEjs.Form; exports.HashRouter = _chunkZ5YQYACEjs.HashRouter; exports.Link = _chunkZ5YQYACEjs.Link; exports.Links = _chunkAM3XM4LSjs.Links; exports.MemoryRouter = _chunkAM3XM4LSjs.MemoryRouter; exports.Meta = _chunkAM3XM4LSjs.Meta; exports.NavLink = _chunkZ5YQYACEjs.NavLink; exports.Navigate = _chunkAM3XM4LSjs.Navigate; exports.Outlet = _chunkAM3XM4LSjs.Outlet; exports.Route = _chunkAM3XM4LSjs.Route; exports.Router = _chunkAM3XM4LSjs.Router; exports.RouterProvider = _chunkAM3XM4LSjs.RouterProvider; exports.Routes = _chunkAM3XM4LSjs.Routes; exports.ScrollRestoration = _chunkZ5YQYACEjs.ScrollRestoration; exports.StaticRouter = _chunkZ5YQYACEjs.StaticRouter; exports.StaticRouterProvider = _chunkZ5YQYACEjs.StaticRouterProvider; exports.UNSAFE_AwaitContextProvider = _chunkAM3XM4LSjs.AwaitContextProvider; exports.UNSAFE_WithComponentProps = _chunkAM3XM4LSjs.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkAM3XM4LSjs.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkAM3XM4LSjs.WithHydrateFallbackProps; exports.unstable_HistoryRouter = _chunkZ5YQYACEjs.HistoryRouter;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.14.1
2
+ * react-router v7.15.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -32,7 +32,7 @@ import {
32
32
  WithComponentProps,
33
33
  WithErrorBoundaryProps,
34
34
  WithHydrateFallbackProps
35
- } from "./chunk-OE4NN4TA.mjs";
35
+ } from "./chunk-5KNZJZUH.mjs";
36
36
  export {
37
37
  BrowserRouter,
38
38
  Form,