react-router 7.8.2 → 7.9.0-pre.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 (60) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/development/{chunk-5UALIXAM.mjs → chunk-AVXIT45F.mjs} +94 -70
  3. package/dist/development/{chunk-PVWAREVJ.mjs → chunk-QZH3B547.mjs} +47 -50
  4. package/dist/development/{chunk-ZO66TDGB.js → chunk-RGB6BZUL.js} +41 -44
  5. package/dist/development/{chunk-CSDGKXLR.js → chunk-XYB2GISA.js} +135 -135
  6. package/dist/{production/context-jKip1TFB.d.mts → development/context-BH6Jwdoy.d.mts} +39 -32
  7. package/dist/development/dom-export.d.mts +3 -3
  8. package/dist/development/dom-export.d.ts +2 -2
  9. package/dist/development/dom-export.js +14 -14
  10. package/dist/development/dom-export.mjs +14 -14
  11. package/dist/development/{index-react-server-client-DRhjXpk2.d.mts → index-react-server-client-1cWMpKk4.d.mts} +13 -13
  12. package/dist/{production/index-react-server-client-BKpa2trA.d.ts → development/index-react-server-client-CMC2eQAY.d.ts} +12 -12
  13. package/dist/development/index-react-server-client.d.mts +3 -3
  14. package/dist/development/index-react-server-client.d.ts +2 -2
  15. package/dist/development/index-react-server-client.js +4 -4
  16. package/dist/development/index-react-server-client.mjs +4 -4
  17. package/dist/development/index-react-server.d.mts +229 -37
  18. package/dist/development/index-react-server.d.ts +229 -37
  19. package/dist/development/index-react-server.js +89 -39
  20. package/dist/development/index-react-server.mjs +88 -36
  21. package/dist/development/index.d.mts +31 -24
  22. package/dist/development/index.d.ts +29 -22
  23. package/dist/development/index.js +184 -158
  24. package/dist/development/index.mjs +9 -7
  25. package/dist/development/lib/types/internal.d.mts +6 -6
  26. package/dist/development/lib/types/internal.d.ts +5 -5
  27. package/dist/development/lib/types/internal.js +1 -1
  28. package/dist/development/lib/types/internal.mjs +1 -1
  29. package/dist/development/{route-data-DAVP2QQ0.d.mts → route-data-BQkq8Erj.d.mts} +12 -12
  30. package/dist/development/{routeModules-rOzWJJ9x.d.ts → routeModules-DSKAn01V.d.ts} +175 -168
  31. package/dist/production/{chunk-Z56HUDN5.js → chunk-A6EU7LHU.js} +41 -44
  32. package/dist/production/{chunk-REDRD2MB.mjs → chunk-BQLQLXP4.mjs} +47 -50
  33. package/dist/production/{chunk-JNT5PWCQ.js → chunk-IR3XRH6J.js} +135 -135
  34. package/dist/production/{chunk-KWHRV2I7.mjs → chunk-WMHWIEJV.mjs} +94 -70
  35. package/dist/{development/context-jKip1TFB.d.mts → production/context-BH6Jwdoy.d.mts} +39 -32
  36. package/dist/production/dom-export.d.mts +3 -3
  37. package/dist/production/dom-export.d.ts +2 -2
  38. package/dist/production/dom-export.js +14 -14
  39. package/dist/production/dom-export.mjs +14 -14
  40. package/dist/production/{index-react-server-client-DRhjXpk2.d.mts → index-react-server-client-1cWMpKk4.d.mts} +13 -13
  41. package/dist/{development/index-react-server-client-BKpa2trA.d.ts → production/index-react-server-client-CMC2eQAY.d.ts} +12 -12
  42. package/dist/production/index-react-server-client.d.mts +3 -3
  43. package/dist/production/index-react-server-client.d.ts +2 -2
  44. package/dist/production/index-react-server-client.js +4 -4
  45. package/dist/production/index-react-server-client.mjs +4 -4
  46. package/dist/production/index-react-server.d.mts +229 -37
  47. package/dist/production/index-react-server.d.ts +229 -37
  48. package/dist/production/index-react-server.js +89 -39
  49. package/dist/production/index-react-server.mjs +88 -36
  50. package/dist/production/index.d.mts +31 -24
  51. package/dist/production/index.d.ts +29 -22
  52. package/dist/production/index.js +184 -158
  53. package/dist/production/index.mjs +9 -7
  54. package/dist/production/lib/types/internal.d.mts +6 -6
  55. package/dist/production/lib/types/internal.d.ts +5 -5
  56. package/dist/production/lib/types/internal.js +1 -1
  57. package/dist/production/lib/types/internal.mjs +1 -1
  58. package/dist/production/{route-data-DAVP2QQ0.d.mts → route-data-BQkq8Erj.d.mts} +12 -12
  59. package/dist/production/{routeModules-rOzWJJ9x.d.ts → routeModules-DSKAn01V.d.ts} +175 -168
  60. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }/**
2
- * react-router v7.8.2
2
+ * react-router v7.9.0-pre.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -11,7 +11,7 @@
11
11
  "use client";
12
12
 
13
13
 
14
- var _chunkZ56HUDN5js = require('./chunk-Z56HUDN5.js');
14
+ var _chunkA6EU7LHUjs = require('./chunk-A6EU7LHU.js');
15
15
 
16
16
  // lib/dom-export/dom-router-provider.tsx
17
17
  var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react);
@@ -67,7 +67,7 @@ function initSsrInfo() {
67
67
  }
68
68
  }
69
69
  function createHydratedRouter({
70
- unstable_getContext
70
+ getContext
71
71
  }) {
72
72
  initSsrInfo();
73
73
  if (!ssrInfo) {
@@ -111,18 +111,18 @@ function createHydratedRouter({
111
111
  };
112
112
  }
113
113
  } else {
114
- hydrationData = _reactrouter.UNSAFE_getHydrationData.call(void 0,
115
- ssrInfo.context.state,
114
+ hydrationData = _reactrouter.UNSAFE_getHydrationData.call(void 0, {
115
+ state: ssrInfo.context.state,
116
116
  routes,
117
- (routeId) => ({
117
+ getRouteInfo: (routeId) => ({
118
118
  clientLoader: _optionalChain([ssrInfo, 'access', _6 => _6.routeModules, 'access', _7 => _7[routeId], 'optionalAccess', _8 => _8.clientLoader]),
119
119
  hasLoader: _optionalChain([ssrInfo, 'access', _9 => _9.manifest, 'access', _10 => _10.routes, 'access', _11 => _11[routeId], 'optionalAccess', _12 => _12.hasLoader]) === true,
120
120
  hasHydrateFallback: _optionalChain([ssrInfo, 'access', _13 => _13.routeModules, 'access', _14 => _14[routeId], 'optionalAccess', _15 => _15.HydrateFallback]) != null
121
121
  }),
122
- window.location,
123
- _optionalChain([window, 'access', _16 => _16.__reactRouterContext, 'optionalAccess', _17 => _17.basename]),
124
- ssrInfo.context.isSpaMode
125
- );
122
+ location: window.location,
123
+ basename: _optionalChain([window, 'access', _16 => _16.__reactRouterContext, 'optionalAccess', _17 => _17.basename]),
124
+ isSpaMode: ssrInfo.context.isSpaMode
125
+ });
126
126
  if (hydrationData && hydrationData.errors) {
127
127
  hydrationData.errors = _reactrouter.UNSAFE_deserializeErrors.call(void 0, hydrationData.errors);
128
128
  }
@@ -131,12 +131,12 @@ function createHydratedRouter({
131
131
  routes,
132
132
  history: _reactrouter.UNSAFE_createBrowserHistory.call(void 0, ),
133
133
  basename: ssrInfo.context.basename,
134
- unstable_getContext,
134
+ getContext,
135
135
  hydrationData,
136
136
  hydrationRouteProperties: _reactrouter.UNSAFE_hydrationRouteProperties,
137
137
  mapRouteProperties: _reactrouter.UNSAFE_mapRouteProperties,
138
138
  future: {
139
- unstable_middleware: ssrInfo.context.future.unstable_middleware
139
+ middleware: ssrInfo.context.future.v8_middleware
140
140
  },
141
141
  dataStrategy: _reactrouter.UNSAFE_getTurboStreamSingleFetchDataStrategy.call(void 0,
142
142
  () => router2,
@@ -167,7 +167,7 @@ function createHydratedRouter({
167
167
  function HydratedRouter(props) {
168
168
  if (!router) {
169
169
  router = createHydratedRouter({
170
- unstable_getContext: props.unstable_getContext
170
+ getContext: props.getContext
171
171
  });
172
172
  }
173
173
  let [criticalCss, setCriticalCss] = React2.useState(
@@ -180,7 +180,7 @@ function HydratedRouter(props) {
180
180
  }, []);
181
181
  React2.useEffect(() => {
182
182
  if (process.env.NODE_ENV === "development" && criticalCss === void 0) {
183
- document.querySelectorAll(`[${_chunkZ56HUDN5js.CRITICAL_CSS_DATA_ATTRIBUTE}]`).forEach((element) => element.remove());
183
+ document.querySelectorAll(`[${_chunkA6EU7LHUjs.CRITICAL_CSS_DATA_ATTRIBUTE}]`).forEach((element) => element.remove());
184
184
  }
185
185
  }, [criticalCss]);
186
186
  let [location, setLocation] = React2.useState(router.state.location);
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.8.2
2
+ * react-router v7.9.0-pre.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -12,7 +12,7 @@
12
12
  import {
13
13
  deserializeErrors,
14
14
  getHydrationData
15
- } from "./chunk-KWHRV2I7.mjs";
15
+ } from "./chunk-WMHWIEJV.mjs";
16
16
  import {
17
17
  CRITICAL_CSS_DATA_ATTRIBUTE,
18
18
  FrameworkContext,
@@ -29,7 +29,7 @@ import {
29
29
  invariant,
30
30
  mapRouteProperties,
31
31
  useFogOFWarDiscovery
32
- } from "./chunk-REDRD2MB.mjs";
32
+ } from "./chunk-BQLQLXP4.mjs";
33
33
 
34
34
  // lib/dom-export/dom-router-provider.tsx
35
35
  import * as React from "react";
@@ -67,7 +67,7 @@ function initSsrInfo() {
67
67
  }
68
68
  }
69
69
  function createHydratedRouter({
70
- unstable_getContext
70
+ getContext
71
71
  }) {
72
72
  initSsrInfo();
73
73
  if (!ssrInfo) {
@@ -111,18 +111,18 @@ function createHydratedRouter({
111
111
  };
112
112
  }
113
113
  } else {
114
- hydrationData = getHydrationData(
115
- ssrInfo.context.state,
114
+ hydrationData = getHydrationData({
115
+ state: ssrInfo.context.state,
116
116
  routes,
117
- (routeId) => ({
117
+ getRouteInfo: (routeId) => ({
118
118
  clientLoader: ssrInfo.routeModules[routeId]?.clientLoader,
119
119
  hasLoader: ssrInfo.manifest.routes[routeId]?.hasLoader === true,
120
120
  hasHydrateFallback: ssrInfo.routeModules[routeId]?.HydrateFallback != null
121
121
  }),
122
- window.location,
123
- window.__reactRouterContext?.basename,
124
- ssrInfo.context.isSpaMode
125
- );
122
+ location: window.location,
123
+ basename: window.__reactRouterContext?.basename,
124
+ isSpaMode: ssrInfo.context.isSpaMode
125
+ });
126
126
  if (hydrationData && hydrationData.errors) {
127
127
  hydrationData.errors = deserializeErrors(hydrationData.errors);
128
128
  }
@@ -131,12 +131,12 @@ function createHydratedRouter({
131
131
  routes,
132
132
  history: createBrowserHistory(),
133
133
  basename: ssrInfo.context.basename,
134
- unstable_getContext,
134
+ getContext,
135
135
  hydrationData,
136
136
  hydrationRouteProperties,
137
137
  mapRouteProperties,
138
138
  future: {
139
- unstable_middleware: ssrInfo.context.future.unstable_middleware
139
+ middleware: ssrInfo.context.future.v8_middleware
140
140
  },
141
141
  dataStrategy: getTurboStreamSingleFetchDataStrategy(
142
142
  () => router2,
@@ -167,7 +167,7 @@ function createHydratedRouter({
167
167
  function HydratedRouter(props) {
168
168
  if (!router) {
169
169
  router = createHydratedRouter({
170
- unstable_getContext: props.unstable_getContext
170
+ getContext: props.getContext
171
171
  });
172
172
  }
173
173
  let [criticalCss, setCriticalCss] = React2.useState(
@@ -1,6 +1,6 @@
1
- import { b6 as RouteManifest, M as MiddlewareEnabled, h as unstable_RouterContextProvider, c as LoaderFunctionArgs, A as ActionFunctionArgs, O as StaticHandlerContext, H as HydrationState, F as DataRouteObject, a3 as HTMLFormMethod, a1 as FormEncType, m as RelativeRoutingType, T as To, b7 as History, K as GetScrollRestorationKeyFunction, a as RouterInit, b8 as FutureConfig$1, k as DataStrategyFunction, C as PatchRoutesOnNavigationFunction, N as NavigateOptions, Q as Fetcher, t as RouteObject, j as Router, B as BlockerFunction, L as Location, b9 as CreateStaticHandlerOptions$1, G as StaticHandler } from './context-jKip1TFB.mjs';
1
+ import { b7 as RouteManifest, i as MiddlewareEnabled, g as RouterContextProvider, b as LoaderFunctionArgs, A as ActionFunctionArgs, O as StaticHandlerContext, H as HydrationState, F as DataRouteObject, a3 as HTMLFormMethod, a1 as FormEncType, m as RelativeRoutingType, T as To, b8 as History, K as GetScrollRestorationKeyFunction, a as RouterInit, b9 as FutureConfig$1, k as DataStrategyFunction, C as PatchRoutesOnNavigationFunction, N as NavigateOptions, Q as Fetcher, t as RouteObject, j as Router, B as BlockerFunction, L as Location, ba as CreateStaticHandlerOptions$1, G as StaticHandler } from './context-BH6Jwdoy.mjs';
2
2
  import * as React from 'react';
3
- import { o as ServerRouteModule, A as AppLoadContext, c as RouteModules, h as ClientLoaderFunction, m as PageLinkDescriptor, d as SerializeFrom } from './route-data-DAVP2QQ0.mjs';
3
+ import { o as ServerRouteModule, A as AppLoadContext, c as RouteModules, h as ClientLoaderFunction, m as PageLinkDescriptor, d as SerializeFrom } from './route-data-BQkq8Erj.mjs';
4
4
 
5
5
  type ServerRouteManifest = RouteManifest<Omit<ServerRoute, "children">>;
6
6
  interface ServerRoute extends Route {
@@ -37,7 +37,7 @@ interface ServerBuild {
37
37
  };
38
38
  }
39
39
  interface HandleDocumentRequestFunction {
40
- (request: Request, responseStatusCode: number, responseHeaders: Headers, context: EntryContext, loadContext: MiddlewareEnabled extends true ? unstable_RouterContextProvider : AppLoadContext): Promise<Response> | Response;
40
+ (request: Request, responseStatusCode: number, responseHeaders: Headers, context: EntryContext, loadContext: MiddlewareEnabled extends true ? RouterContextProvider : AppLoadContext): Promise<Response> | Response;
41
41
  }
42
42
  interface HandleDataRequestFunction {
43
43
  (response: Response, args: LoaderFunctionArgs | ActionFunctionArgs): Promise<Response> | Response;
@@ -87,7 +87,7 @@ interface EntryContext extends FrameworkContextObject {
87
87
  }
88
88
  interface FutureConfig {
89
89
  unstable_subResourceIntegrity: boolean;
90
- unstable_middleware: boolean;
90
+ v8_middleware: boolean;
91
91
  }
92
92
  type CriticalCss = string | {
93
93
  rel: "stylesheet";
@@ -425,7 +425,7 @@ interface DOMRouterOpts {
425
425
  */
426
426
  basename?: string;
427
427
  /**
428
- * A function that returns an {@link unstable_RouterContextProvider} instance
428
+ * A function that returns an {@link RouterContextProvider} instance
429
429
  * which is provided as the `context` argument to client [`action`](../../start/data/route-object#action)s,
430
430
  * [`loader`](../../start/data/route-object#loader)s and [middleware](../../how-to/middleware).
431
431
  * This function is called to generate a fresh `context` instance on each
@@ -433,22 +433,22 @@ interface DOMRouterOpts {
433
433
  *
434
434
  * ```tsx
435
435
  * import {
436
- * unstable_createContext,
437
- * unstable_RouterContextProvider,
436
+ * createContext,
437
+ * RouterContextProvider,
438
438
  * } from "react-router";
439
439
  *
440
- * const apiClientContext = unstable_createContext<APIClient>();
440
+ * const apiClientContext = createContext<APIClient>();
441
441
  *
442
442
  * function createBrowserRouter(routes, {
443
- * unstable_getContext() {
444
- * let context = new unstable_RouterContextProvider();
443
+ * getContext() {
444
+ * let context = new RouterContextProvider();
445
445
  * context.set(apiClientContext, getApiClient());
446
446
  * return context;
447
447
  * }
448
448
  * })
449
449
  * ```
450
450
  */
451
- unstable_getContext?: RouterInit["unstable_getContext"];
451
+ getContext?: RouterInit["getContext"];
452
452
  /**
453
453
  * Future flags to enable for the router.
454
454
  */
@@ -1025,7 +1025,7 @@ interface DOMRouterOpts {
1025
1025
  * @param {DOMRouterOpts.basename} opts.basename n/a
1026
1026
  * @param {DOMRouterOpts.dataStrategy} opts.dataStrategy n/a
1027
1027
  * @param {DOMRouterOpts.future} opts.future n/a
1028
- * @param {DOMRouterOpts.unstable_getContext} opts.unstable_getContext n/a
1028
+ * @param {DOMRouterOpts.getContext} opts.getContext n/a
1029
1029
  * @param {DOMRouterOpts.hydrationData} opts.hydrationData n/a
1030
1030
  * @param {DOMRouterOpts.patchRoutesOnNavigation} opts.patchRoutesOnNavigation n/a
1031
1031
  * @param {DOMRouterOpts.window} opts.window n/a
@@ -1043,7 +1043,7 @@ declare function createBrowserRouter(routes: RouteObject[], opts?: DOMRouterOpts
1043
1043
  * @param opts Options
1044
1044
  * @param {DOMRouterOpts.basename} opts.basename n/a
1045
1045
  * @param {DOMRouterOpts.future} opts.future n/a
1046
- * @param {DOMRouterOpts.unstable_getContext} opts.unstable_getContext n/a
1046
+ * @param {DOMRouterOpts.getContext} opts.getContext n/a
1047
1047
  * @param {DOMRouterOpts.hydrationData} opts.hydrationData n/a
1048
1048
  * @param {DOMRouterOpts.dataStrategy} opts.dataStrategy n/a
1049
1049
  * @param {DOMRouterOpts.patchRoutesOnNavigation} opts.patchRoutesOnNavigation n/a
@@ -1,4 +1,4 @@
1
- import { ai as HTMLFormMethod, ag as FormEncType, j as RelativeRoutingType, bx as RouteManifest, by as ServerRouteModule, O as MiddlewareEnabled, K as unstable_RouterContextProvider, J as AppLoadContext, ak as LoaderFunctionArgs, ab as ActionFunctionArgs, e as RouteModules, H as HydrationState, a0 as DataRouteObject, W as ClientLoaderFunction, a4 as StaticHandlerContext, ba as PageLinkDescriptor, T as To, bz as History, a3 as GetScrollRestorationKeyFunction, Z as RouterInit, bA as FutureConfig$1, f as DataStrategyFunction, $ as PatchRoutesOnNavigationFunction, g as NavigateOptions, a5 as Fetcher, q as RouteObject, d as Router, i as SerializeFrom, B as BlockerFunction, a as Location, bB as CreateStaticHandlerOptions$1, a1 as StaticHandler } from './routeModules-rOzWJJ9x.js';
1
+ import { ai as HTMLFormMethod, ag as FormEncType, k as RelativeRoutingType, by as RouteManifest, bz as ServerRouteModule, O as MiddlewareEnabled, K as RouterContextProvider, J as AppLoadContext, ak as LoaderFunctionArgs, ab as ActionFunctionArgs, f as RouteModules, H as HydrationState, a0 as DataRouteObject, W as ClientLoaderFunction, a4 as StaticHandlerContext, bb as PageLinkDescriptor, T as To, bA as History, a3 as GetScrollRestorationKeyFunction, Z as RouterInit, bB as FutureConfig$1, g as DataStrategyFunction, $ as PatchRoutesOnNavigationFunction, h as NavigateOptions, a5 as Fetcher, r as RouteObject, e as Router, j as SerializeFrom, B as BlockerFunction, a as Location, bC as CreateStaticHandlerOptions$1, a1 as StaticHandler } from './routeModules-DSKAn01V.js';
2
2
  import * as React from 'react';
3
3
 
4
4
  type ParamKeyValuePair = [string, string];
@@ -142,7 +142,7 @@ interface ServerBuild {
142
142
  };
143
143
  }
144
144
  interface HandleDocumentRequestFunction {
145
- (request: Request, responseStatusCode: number, responseHeaders: Headers, context: EntryContext, loadContext: MiddlewareEnabled extends true ? unstable_RouterContextProvider : AppLoadContext): Promise<Response> | Response;
145
+ (request: Request, responseStatusCode: number, responseHeaders: Headers, context: EntryContext, loadContext: MiddlewareEnabled extends true ? RouterContextProvider : AppLoadContext): Promise<Response> | Response;
146
146
  }
147
147
  interface HandleDataRequestFunction {
148
148
  (response: Response, args: LoaderFunctionArgs | ActionFunctionArgs): Promise<Response> | Response;
@@ -219,7 +219,7 @@ interface EntryContext extends FrameworkContextObject {
219
219
  }
220
220
  interface FutureConfig {
221
221
  unstable_subResourceIntegrity: boolean;
222
- unstable_middleware: boolean;
222
+ v8_middleware: boolean;
223
223
  }
224
224
  type CriticalCss = string | {
225
225
  rel: "stylesheet";
@@ -424,7 +424,7 @@ interface DOMRouterOpts {
424
424
  */
425
425
  basename?: string;
426
426
  /**
427
- * A function that returns an {@link unstable_RouterContextProvider} instance
427
+ * A function that returns an {@link RouterContextProvider} instance
428
428
  * which is provided as the `context` argument to client [`action`](../../start/data/route-object#action)s,
429
429
  * [`loader`](../../start/data/route-object#loader)s and [middleware](../../how-to/middleware).
430
430
  * This function is called to generate a fresh `context` instance on each
@@ -432,22 +432,22 @@ interface DOMRouterOpts {
432
432
  *
433
433
  * ```tsx
434
434
  * import {
435
- * unstable_createContext,
436
- * unstable_RouterContextProvider,
435
+ * createContext,
436
+ * RouterContextProvider,
437
437
  * } from "react-router";
438
438
  *
439
- * const apiClientContext = unstable_createContext<APIClient>();
439
+ * const apiClientContext = createContext<APIClient>();
440
440
  *
441
441
  * function createBrowserRouter(routes, {
442
- * unstable_getContext() {
443
- * let context = new unstable_RouterContextProvider();
442
+ * getContext() {
443
+ * let context = new RouterContextProvider();
444
444
  * context.set(apiClientContext, getApiClient());
445
445
  * return context;
446
446
  * }
447
447
  * })
448
448
  * ```
449
449
  */
450
- unstable_getContext?: RouterInit["unstable_getContext"];
450
+ getContext?: RouterInit["getContext"];
451
451
  /**
452
452
  * Future flags to enable for the router.
453
453
  */
@@ -1024,7 +1024,7 @@ interface DOMRouterOpts {
1024
1024
  * @param {DOMRouterOpts.basename} opts.basename n/a
1025
1025
  * @param {DOMRouterOpts.dataStrategy} opts.dataStrategy n/a
1026
1026
  * @param {DOMRouterOpts.future} opts.future n/a
1027
- * @param {DOMRouterOpts.unstable_getContext} opts.unstable_getContext n/a
1027
+ * @param {DOMRouterOpts.getContext} opts.getContext n/a
1028
1028
  * @param {DOMRouterOpts.hydrationData} opts.hydrationData n/a
1029
1029
  * @param {DOMRouterOpts.patchRoutesOnNavigation} opts.patchRoutesOnNavigation n/a
1030
1030
  * @param {DOMRouterOpts.window} opts.window n/a
@@ -1042,7 +1042,7 @@ declare function createBrowserRouter(routes: RouteObject[], opts?: DOMRouterOpts
1042
1042
  * @param opts Options
1043
1043
  * @param {DOMRouterOpts.basename} opts.basename n/a
1044
1044
  * @param {DOMRouterOpts.future} opts.future n/a
1045
- * @param {DOMRouterOpts.unstable_getContext} opts.unstable_getContext n/a
1045
+ * @param {DOMRouterOpts.getContext} opts.getContext n/a
1046
1046
  * @param {DOMRouterOpts.hydrationData} opts.hydrationData n/a
1047
1047
  * @param {DOMRouterOpts.dataStrategy} opts.dataStrategy n/a
1048
1048
  * @param {DOMRouterOpts.patchRoutesOnNavigation} opts.patchRoutesOnNavigation n/a
@@ -1,4 +1,4 @@
1
- export { aC as Await, aD as MemoryRouter, aE as Navigate, aF as Outlet, aG as Route, aH as Router, aI as RouterProvider, aJ as Routes, b0 as UNSAFE_WithComponentProps, b4 as UNSAFE_WithErrorBoundaryProps, b2 as UNSAFE_WithHydrateFallbackProps } from './context-jKip1TFB.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-DRhjXpk2.mjs';
1
+ export { aE as MemoryRouter, aF as Navigate, aG as Outlet, aH as Route, aI as Router, aJ as RouterProvider, aK as Routes, ar as UNSAFE_AwaitContextProvider, b1 as UNSAFE_WithComponentProps, b5 as UNSAFE_WithErrorBoundaryProps, b3 as UNSAFE_WithHydrateFallbackProps } from './context-BH6Jwdoy.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-1cWMpKk4.mjs';
3
3
  import 'react';
4
- import './route-data-DAVP2QQ0.mjs';
4
+ import './route-data-BQkq8Erj.mjs';
@@ -1,3 +1,3 @@
1
- export { aW as Await, aX as MemoryRouter, aY as Navigate, aZ as Outlet, a_ as Route, a$ as Router, b0 as RouterProvider, b1 as Routes, br as UNSAFE_WithComponentProps, bv as UNSAFE_WithErrorBoundaryProps, bt as UNSAFE_WithHydrateFallbackProps } from './routeModules-rOzWJJ9x.js';
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-BKpa2trA.js';
1
+ export { aY as MemoryRouter, aZ as Navigate, a_ as Outlet, a$ as Route, b0 as Router, b1 as RouterProvider, b2 as Routes, aJ as UNSAFE_AwaitContextProvider, bs as UNSAFE_WithComponentProps, bw as UNSAFE_WithErrorBoundaryProps, bu as UNSAFE_WithHydrateFallbackProps } from './routeModules-DSKAn01V.js';
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-CMC2eQAY.js';
3
3
  import 'react';
@@ -1,5 +1,5 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});/**
2
- * react-router v7.8.2
2
+ * react-router v7.9.0-pre.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -29,12 +29,12 @@
29
29
 
30
30
 
31
31
 
32
+ var _chunkIR3XRH6Jjs = require('./chunk-IR3XRH6J.js');
32
33
 
33
- var _chunkJNT5PWCQjs = require('./chunk-JNT5PWCQ.js');
34
34
 
35
35
 
36
36
 
37
- var _chunkZ56HUDN5js = require('./chunk-Z56HUDN5.js');
37
+ var _chunkA6EU7LHUjs = require('./chunk-A6EU7LHU.js');
38
38
 
39
39
 
40
40
 
@@ -58,4 +58,4 @@ var _chunkZ56HUDN5js = require('./chunk-Z56HUDN5.js');
58
58
 
59
59
 
60
60
 
61
- exports.Await = _chunkJNT5PWCQjs.Await; exports.BrowserRouter = _chunkJNT5PWCQjs.BrowserRouter; exports.Form = _chunkJNT5PWCQjs.Form; exports.HashRouter = _chunkJNT5PWCQjs.HashRouter; exports.Link = _chunkJNT5PWCQjs.Link; exports.Links = _chunkZ56HUDN5js.Links; exports.MemoryRouter = _chunkJNT5PWCQjs.MemoryRouter; exports.Meta = _chunkZ56HUDN5js.Meta; exports.NavLink = _chunkJNT5PWCQjs.NavLink; exports.Navigate = _chunkJNT5PWCQjs.Navigate; exports.Outlet = _chunkJNT5PWCQjs.Outlet; exports.Route = _chunkJNT5PWCQjs.Route; exports.Router = _chunkJNT5PWCQjs.Router; exports.RouterProvider = _chunkJNT5PWCQjs.RouterProvider; exports.Routes = _chunkJNT5PWCQjs.Routes; exports.ScrollRestoration = _chunkJNT5PWCQjs.ScrollRestoration; exports.StaticRouter = _chunkJNT5PWCQjs.StaticRouter; exports.StaticRouterProvider = _chunkJNT5PWCQjs.StaticRouterProvider; exports.UNSAFE_WithComponentProps = _chunkJNT5PWCQjs.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkJNT5PWCQjs.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkJNT5PWCQjs.WithHydrateFallbackProps; exports.unstable_HistoryRouter = _chunkJNT5PWCQjs.HistoryRouter;
61
+ exports.BrowserRouter = _chunkIR3XRH6Jjs.BrowserRouter; exports.Form = _chunkIR3XRH6Jjs.Form; exports.HashRouter = _chunkIR3XRH6Jjs.HashRouter; exports.Link = _chunkIR3XRH6Jjs.Link; exports.Links = _chunkA6EU7LHUjs.Links; exports.MemoryRouter = _chunkIR3XRH6Jjs.MemoryRouter; exports.Meta = _chunkA6EU7LHUjs.Meta; exports.NavLink = _chunkIR3XRH6Jjs.NavLink; exports.Navigate = _chunkIR3XRH6Jjs.Navigate; exports.Outlet = _chunkIR3XRH6Jjs.Outlet; exports.Route = _chunkIR3XRH6Jjs.Route; exports.Router = _chunkIR3XRH6Jjs.Router; exports.RouterProvider = _chunkIR3XRH6Jjs.RouterProvider; exports.Routes = _chunkIR3XRH6Jjs.Routes; exports.ScrollRestoration = _chunkIR3XRH6Jjs.ScrollRestoration; exports.StaticRouter = _chunkIR3XRH6Jjs.StaticRouter; exports.StaticRouterProvider = _chunkIR3XRH6Jjs.StaticRouterProvider; exports.UNSAFE_AwaitContextProvider = _chunkA6EU7LHUjs.AwaitContextProvider; exports.UNSAFE_WithComponentProps = _chunkIR3XRH6Jjs.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkIR3XRH6Jjs.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkIR3XRH6Jjs.WithHydrateFallbackProps; exports.unstable_HistoryRouter = _chunkIR3XRH6Jjs.HistoryRouter;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.8.2
2
+ * react-router v7.9.0-pre.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -10,7 +10,7 @@
10
10
  */
11
11
  "use client";
12
12
  import {
13
- Await,
13
+ AwaitContextProvider,
14
14
  BrowserRouter,
15
15
  Form,
16
16
  HashRouter,
@@ -32,9 +32,8 @@ import {
32
32
  WithComponentProps,
33
33
  WithErrorBoundaryProps,
34
34
  WithHydrateFallbackProps
35
- } from "./chunk-REDRD2MB.mjs";
35
+ } from "./chunk-BQLQLXP4.mjs";
36
36
  export {
37
- Await,
38
37
  BrowserRouter,
39
38
  Form,
40
39
  HashRouter,
@@ -52,6 +51,7 @@ export {
52
51
  ScrollRestoration,
53
52
  StaticRouter,
54
53
  StaticRouterProvider,
54
+ AwaitContextProvider as UNSAFE_AwaitContextProvider,
55
55
  WithComponentProps as UNSAFE_WithComponentProps,
56
56
  WithErrorBoundaryProps as UNSAFE_WithErrorBoundaryProps,
57
57
  WithHydrateFallbackProps as UNSAFE_WithHydrateFallbackProps,