react-router 7.2.0 → 7.3.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 (40) hide show
  1. package/CHANGELOG.md +266 -0
  2. package/dist/development/{chunk-HA7DTUK3.mjs → chunk-3XNZT7XE.mjs} +782 -340
  3. package/dist/development/dom-export.d.mts +13 -3
  4. package/dist/development/dom-export.d.ts +13 -3
  5. package/dist/development/dom-export.js +306 -83
  6. package/dist/development/dom-export.mjs +14 -5
  7. package/dist/development/{fog-of-war-Cm1iXIp7.d.ts → fog-of-war-CvttGpNz.d.ts} +93 -9
  8. package/dist/{production/fog-of-war-Cm1iXIp7.d.ts → development/fog-of-war-Da8gpnoZ.d.mts} +93 -9
  9. package/dist/{production/data-CQbyyGzl.d.mts → development/future-ldDp5FKH.d.mts} +11 -1
  10. package/dist/development/{data-CQbyyGzl.d.mts → future-ldDp5FKH.d.ts} +11 -1
  11. package/dist/development/index.d.mts +16 -14
  12. package/dist/development/index.d.ts +16 -14
  13. package/dist/development/index.js +784 -340
  14. package/dist/development/index.mjs +6 -2
  15. package/dist/development/lib/types/route-module.d.mts +25 -6
  16. package/dist/development/lib/types/route-module.d.ts +25 -6
  17. package/dist/development/lib/types/route-module.js +1 -1
  18. package/dist/development/lib/types/route-module.mjs +1 -1
  19. package/dist/{production/route-data-BmvbmBej.d.mts → development/route-data-H2S3hwhf.d.mts} +66 -13
  20. package/dist/development/{route-data-BmvbmBej.d.mts → route-data-H2S3hwhf.d.ts} +66 -13
  21. package/dist/production/{chunk-Z4EF7MSU.mjs → chunk-ZGBK665M.mjs} +782 -340
  22. package/dist/production/dom-export.d.mts +13 -3
  23. package/dist/production/dom-export.d.ts +13 -3
  24. package/dist/production/dom-export.js +306 -83
  25. package/dist/production/dom-export.mjs +14 -5
  26. package/dist/production/{fog-of-war-BALYJxf_.d.mts → fog-of-war-CvttGpNz.d.ts} +93 -9
  27. package/dist/{development/fog-of-war-BALYJxf_.d.mts → production/fog-of-war-Da8gpnoZ.d.mts} +93 -9
  28. package/dist/{development/data-CQbyyGzl.d.ts → production/future-ldDp5FKH.d.mts} +11 -1
  29. package/dist/production/{data-CQbyyGzl.d.ts → future-ldDp5FKH.d.ts} +11 -1
  30. package/dist/production/index.d.mts +16 -14
  31. package/dist/production/index.d.ts +16 -14
  32. package/dist/production/index.js +784 -340
  33. package/dist/production/index.mjs +6 -2
  34. package/dist/production/lib/types/route-module.d.mts +25 -6
  35. package/dist/production/lib/types/route-module.d.ts +25 -6
  36. package/dist/production/lib/types/route-module.js +1 -1
  37. package/dist/production/lib/types/route-module.mjs +1 -1
  38. package/dist/{development/route-data-BmvbmBej.d.ts → production/route-data-H2S3hwhf.d.mts} +66 -13
  39. package/dist/production/{route-data-BmvbmBej.d.ts → route-data-H2S3hwhf.d.ts} +66 -13
  40. package/package.json +3 -2
@@ -1,13 +1,23 @@
1
1
  import * as React from 'react';
2
- import { R as RouterProviderProps$1 } from './fog-of-war-BALYJxf_.mjs';
3
- import './route-data-BmvbmBej.mjs';
2
+ import { R as RouterProviderProps$1 } from './fog-of-war-Da8gpnoZ.mjs';
3
+ import { R as RouterInit } from './route-data-H2S3hwhf.mjs';
4
4
 
5
5
  type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
6
6
  declare function RouterProvider(props: Omit<RouterProviderProps, "flushSync">): React.JSX.Element;
7
7
 
8
+ interface HydratedRouterProps {
9
+ /**
10
+ * Context object to passed through to `createBrowserRouter` and made available
11
+ * to `clientLoader`/`clientActon` functions
12
+ */
13
+ unstable_getContext?: RouterInit["unstable_getContext"];
14
+ }
8
15
  /**
16
+ * Framework-mode router component to be used in `entry.client.tsx` to hydrate a
17
+ * router from a `ServerRouter`
18
+ *
9
19
  * @category Component Routers
10
20
  */
11
- declare function HydratedRouter(): React.JSX.Element;
21
+ declare function HydratedRouter(props: HydratedRouterProps): React.JSX.Element;
12
22
 
13
23
  export { HydratedRouter, RouterProvider, type RouterProviderProps };
@@ -1,13 +1,23 @@
1
1
  import * as React from 'react';
2
- import { R as RouterProviderProps$1 } from './fog-of-war-Cm1iXIp7.js';
3
- import './route-data-BmvbmBej.js';
2
+ import { R as RouterProviderProps$1 } from './fog-of-war-CvttGpNz.js';
3
+ import { R as RouterInit } from './route-data-H2S3hwhf.js';
4
4
 
5
5
  type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
6
6
  declare function RouterProvider(props: Omit<RouterProviderProps, "flushSync">): React.JSX.Element;
7
7
 
8
+ interface HydratedRouterProps {
9
+ /**
10
+ * Context object to passed through to `createBrowserRouter` and made available
11
+ * to `clientLoader`/`clientActon` functions
12
+ */
13
+ unstable_getContext?: RouterInit["unstable_getContext"];
14
+ }
8
15
  /**
16
+ * Framework-mode router component to be used in `entry.client.tsx` to hydrate a
17
+ * router from a `ServerRouter`
18
+ *
9
19
  * @category Component Routers
10
20
  */
11
- declare function HydratedRouter(): React.JSX.Element;
21
+ declare function HydratedRouter(props: HydratedRouterProps): React.JSX.Element;
12
22
 
13
23
  export { HydratedRouter, RouterProvider, type RouterProviderProps };