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.
- package/CHANGELOG.md +266 -0
- package/dist/development/{chunk-HA7DTUK3.mjs → chunk-3XNZT7XE.mjs} +782 -340
- package/dist/development/dom-export.d.mts +13 -3
- package/dist/development/dom-export.d.ts +13 -3
- package/dist/development/dom-export.js +306 -83
- package/dist/development/dom-export.mjs +14 -5
- package/dist/development/{fog-of-war-Cm1iXIp7.d.ts → fog-of-war-CvttGpNz.d.ts} +93 -9
- package/dist/{production/fog-of-war-Cm1iXIp7.d.ts → development/fog-of-war-Da8gpnoZ.d.mts} +93 -9
- package/dist/{production/data-CQbyyGzl.d.mts → development/future-ldDp5FKH.d.mts} +11 -1
- package/dist/development/{data-CQbyyGzl.d.mts → future-ldDp5FKH.d.ts} +11 -1
- package/dist/development/index.d.mts +16 -14
- package/dist/development/index.d.ts +16 -14
- package/dist/development/index.js +784 -340
- package/dist/development/index.mjs +6 -2
- package/dist/development/lib/types/route-module.d.mts +25 -6
- package/dist/development/lib/types/route-module.d.ts +25 -6
- package/dist/development/lib/types/route-module.js +1 -1
- package/dist/development/lib/types/route-module.mjs +1 -1
- package/dist/{production/route-data-BmvbmBej.d.mts → development/route-data-H2S3hwhf.d.mts} +66 -13
- package/dist/development/{route-data-BmvbmBej.d.mts → route-data-H2S3hwhf.d.ts} +66 -13
- package/dist/production/{chunk-Z4EF7MSU.mjs → chunk-ZGBK665M.mjs} +782 -340
- package/dist/production/dom-export.d.mts +13 -3
- package/dist/production/dom-export.d.ts +13 -3
- package/dist/production/dom-export.js +306 -83
- package/dist/production/dom-export.mjs +14 -5
- package/dist/production/{fog-of-war-BALYJxf_.d.mts → fog-of-war-CvttGpNz.d.ts} +93 -9
- package/dist/{development/fog-of-war-BALYJxf_.d.mts → production/fog-of-war-Da8gpnoZ.d.mts} +93 -9
- package/dist/{development/data-CQbyyGzl.d.ts → production/future-ldDp5FKH.d.mts} +11 -1
- package/dist/production/{data-CQbyyGzl.d.ts → future-ldDp5FKH.d.ts} +11 -1
- package/dist/production/index.d.mts +16 -14
- package/dist/production/index.d.ts +16 -14
- package/dist/production/index.js +784 -340
- package/dist/production/index.mjs +6 -2
- package/dist/production/lib/types/route-module.d.mts +25 -6
- package/dist/production/lib/types/route-module.d.ts +25 -6
- package/dist/production/lib/types/route-module.js +1 -1
- package/dist/production/lib/types/route-module.mjs +1 -1
- package/dist/{development/route-data-BmvbmBej.d.ts → production/route-data-H2S3hwhf.d.mts} +66 -13
- package/dist/production/{route-data-BmvbmBej.d.ts → route-data-H2S3hwhf.d.ts} +66 -13
- 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-
|
|
3
|
-
import './route-data-
|
|
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-
|
|
3
|
-
import './route-data-
|
|
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 };
|