react-router 0.0.0-experimental-e067e5e52 → 0.0.0-experimental-56b72276e
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/dist/development/{chunk-5UECWI5A.js → chunk-63U7QHOO.js} +99 -99
- package/dist/development/{chunk-SWPURLNP.mjs → chunk-66UV33R5.mjs} +2 -2
- package/dist/{production/chunk-KMR3DDYK.js → development/chunk-AEFPRTVA.js} +7 -7
- package/dist/development/{chunk-EZE2A5EE.mjs → chunk-C35YGSX6.mjs} +6 -6
- package/dist/development/{chunk-NQI6347W.js → chunk-PUKCNFVJ.js} +5 -5
- package/dist/development/dom-export.js +27 -27
- package/dist/development/dom-export.mjs +3 -3
- package/dist/development/index-react-server-client.d.mts +1 -1
- package/dist/development/index-react-server-client.d.ts +1 -1
- package/dist/development/index-react-server-client.js +4 -4
- package/dist/development/index-react-server-client.mjs +2 -2
- package/dist/development/index-react-server.js +1 -1
- package/dist/development/index-react-server.mjs +1 -1
- package/dist/development/index.d.mts +2 -2
- package/dist/development/index.d.ts +2 -2
- package/dist/development/index.js +82 -82
- package/dist/development/index.mjs +3 -3
- package/dist/development/lib/types/internal.js +1 -1
- package/dist/development/lib/types/internal.mjs +1 -1
- package/dist/{development/chunk-DGNRX45Q.js → production/chunk-CYERTBD4.js} +7 -7
- package/dist/production/{chunk-AHQTEAQI.js → chunk-DEXURW6G.js} +99 -99
- package/dist/production/{chunk-DMRAUID3.js → chunk-KDSQNTYZ.js} +5 -5
- package/dist/production/{chunk-T4I6FMSB.mjs → chunk-N2N4A2FL.mjs} +2 -2
- package/dist/production/{chunk-T33PNRK2.mjs → chunk-WUU6KOE6.mjs} +6 -6
- package/dist/production/dom-export.js +27 -27
- package/dist/production/dom-export.mjs +3 -3
- package/dist/production/index-react-server-client.d.mts +1 -1
- package/dist/production/index-react-server-client.d.ts +1 -1
- package/dist/production/index-react-server-client.js +4 -4
- package/dist/production/index-react-server-client.mjs +2 -2
- package/dist/production/index-react-server.js +1 -1
- package/dist/production/index-react-server.mjs +1 -1
- package/dist/production/index.d.mts +2 -2
- package/dist/production/index.d.ts +2 -2
- package/dist/production/index.js +82 -82
- package/dist/production/index.mjs +3 -3
- package/dist/production/lib/types/internal.js +1 -1
- package/dist/production/lib/types/internal.mjs +1 -1
- package/package.json +1 -1
- package/dist/{production/index-react-server-client-CFThihEp.d.mts → development/index-react-server-client--SGjRgyj.d.mts} +48 -48
- package/dist/development/{index-react-server-client-CtMh0QTM.d.ts → index-react-server-client-Y7cd_xTA.d.ts} +48 -48
- package/dist/{development/index-react-server-client-CFThihEp.d.mts → production/index-react-server-client--SGjRgyj.d.mts} +48 -48
- package/dist/production/{index-react-server-client-CtMh0QTM.d.ts → index-react-server-client-Y7cd_xTA.d.ts} +48 -48
package/package.json
CHANGED
|
@@ -1259,6 +1259,51 @@ interface LinkProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>,
|
|
|
1259
1259
|
* included in the relative path calculation.
|
|
1260
1260
|
*/
|
|
1261
1261
|
relative?: RelativeRoutingType;
|
|
1262
|
+
/**
|
|
1263
|
+
* Can be a string or a partial {@link Path}:
|
|
1264
|
+
*
|
|
1265
|
+
* ```tsx
|
|
1266
|
+
* <Link to="/some/path" />
|
|
1267
|
+
*
|
|
1268
|
+
* <Link
|
|
1269
|
+
* to={{
|
|
1270
|
+
* pathname: "/some/path",
|
|
1271
|
+
* search: "?query=string",
|
|
1272
|
+
* hash: "#hash",
|
|
1273
|
+
* }}
|
|
1274
|
+
* />
|
|
1275
|
+
* ```
|
|
1276
|
+
*/
|
|
1277
|
+
to: To;
|
|
1278
|
+
/**
|
|
1279
|
+
* Enables a [View Transition](https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API)
|
|
1280
|
+
* for this navigation.
|
|
1281
|
+
*
|
|
1282
|
+
* ```jsx
|
|
1283
|
+
* <Link to={to} viewTransition>
|
|
1284
|
+
* Click me
|
|
1285
|
+
* </Link>
|
|
1286
|
+
* ```
|
|
1287
|
+
*
|
|
1288
|
+
* To apply specific styles for the transition, see {@link useViewTransitionState}
|
|
1289
|
+
*/
|
|
1290
|
+
viewTransition?: boolean;
|
|
1291
|
+
/**
|
|
1292
|
+
* Specify the default revalidation behavior for the navigation.
|
|
1293
|
+
*
|
|
1294
|
+
* ```tsx
|
|
1295
|
+
* <Link to="/some/path" unstable_defaultShouldRevalidate={false} />
|
|
1296
|
+
* ```
|
|
1297
|
+
*
|
|
1298
|
+
* If no `shouldRevalidate` functions are present on the active routes, then this
|
|
1299
|
+
* value will be used directly. Otherwise it will be passed into `shouldRevalidate`
|
|
1300
|
+
* so the route can make the final determination on revalidation. This can be
|
|
1301
|
+
* useful when updating search params and you don't want to trigger a revalidation.
|
|
1302
|
+
*
|
|
1303
|
+
* By default (when not specified), loaders will revalidate according to the routers
|
|
1304
|
+
* standard revalidation behavior.
|
|
1305
|
+
*/
|
|
1306
|
+
unstable_defaultShouldRevalidate?: boolean;
|
|
1262
1307
|
/**
|
|
1263
1308
|
* Masked path for for this navigation, when you want to navigate the router to
|
|
1264
1309
|
* one location but display a separate location in the URL bar.
|
|
@@ -1307,51 +1352,6 @@ interface LinkProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>,
|
|
|
1307
1352
|
* ```
|
|
1308
1353
|
*/
|
|
1309
1354
|
unstable_mask?: To;
|
|
1310
|
-
/**
|
|
1311
|
-
* Can be a string or a partial {@link Path}:
|
|
1312
|
-
*
|
|
1313
|
-
* ```tsx
|
|
1314
|
-
* <Link to="/some/path" />
|
|
1315
|
-
*
|
|
1316
|
-
* <Link
|
|
1317
|
-
* to={{
|
|
1318
|
-
* pathname: "/some/path",
|
|
1319
|
-
* search: "?query=string",
|
|
1320
|
-
* hash: "#hash",
|
|
1321
|
-
* }}
|
|
1322
|
-
* />
|
|
1323
|
-
* ```
|
|
1324
|
-
*/
|
|
1325
|
-
to: To;
|
|
1326
|
-
/**
|
|
1327
|
-
* Enables a [View Transition](https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API)
|
|
1328
|
-
* for this navigation.
|
|
1329
|
-
*
|
|
1330
|
-
* ```jsx
|
|
1331
|
-
* <Link to={to} viewTransition>
|
|
1332
|
-
* Click me
|
|
1333
|
-
* </Link>
|
|
1334
|
-
* ```
|
|
1335
|
-
*
|
|
1336
|
-
* To apply specific styles for the transition, see {@link useViewTransitionState}
|
|
1337
|
-
*/
|
|
1338
|
-
viewTransition?: boolean;
|
|
1339
|
-
/**
|
|
1340
|
-
* Specify the default revalidation behavior for the navigation.
|
|
1341
|
-
*
|
|
1342
|
-
* ```tsx
|
|
1343
|
-
* <Link to="/some/path" unstable_defaultShouldRevalidate={false} />
|
|
1344
|
-
* ```
|
|
1345
|
-
*
|
|
1346
|
-
* If no `shouldRevalidate` functions are present on the active routes, then this
|
|
1347
|
-
* value will be used directly. Otherwise it will be passed into `shouldRevalidate`
|
|
1348
|
-
* so the route can make the final determination on revalidation. This can be
|
|
1349
|
-
* useful when updating search params and you don't want to trigger a revalidation.
|
|
1350
|
-
*
|
|
1351
|
-
* By default (when not specified), loaders will revalidate according to the routers
|
|
1352
|
-
* standard revalidation behavior.
|
|
1353
|
-
*/
|
|
1354
|
-
unstable_defaultShouldRevalidate?: boolean;
|
|
1355
1355
|
}
|
|
1356
1356
|
/**
|
|
1357
1357
|
* A progressively enhanced [`<a href>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a)
|
|
@@ -1378,11 +1378,11 @@ interface LinkProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>,
|
|
|
1378
1378
|
* @param {LinkProps.relative} props.relative n/a
|
|
1379
1379
|
* @param {LinkProps.reloadDocument} props.reloadDocument n/a
|
|
1380
1380
|
* @param {LinkProps.replace} props.replace n/a
|
|
1381
|
-
* @param {LinkProps.unstable_mask} props.unstable_mask [modes: framework, data] n/a
|
|
1382
1381
|
* @param {LinkProps.state} props.state n/a
|
|
1383
1382
|
* @param {LinkProps.to} props.to n/a
|
|
1384
1383
|
* @param {LinkProps.viewTransition} props.viewTransition [modes: framework, data] n/a
|
|
1385
1384
|
* @param {LinkProps.unstable_defaultShouldRevalidate} props.unstable_defaultShouldRevalidate n/a
|
|
1385
|
+
* @param {LinkProps.unstable_mask} props.unstable_mask [modes: framework, data] n/a
|
|
1386
1386
|
*/
|
|
1387
1387
|
declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
1388
1388
|
/**
|
|
@@ -1816,8 +1816,6 @@ declare namespace ScrollRestoration {
|
|
|
1816
1816
|
* to use for the link. Defaults to `"route"`.
|
|
1817
1817
|
* @param options.replace Whether to replace the current [`History`](https://developer.mozilla.org/en-US/docs/Web/API/History)
|
|
1818
1818
|
* entry instead of pushing a new one. Defaults to `false`.
|
|
1819
|
-
* @param options.unstable_mask Masked location to display in the browser instead
|
|
1820
|
-
* of the router location. Defaults to `undefined`.
|
|
1821
1819
|
* @param options.state The state to add to the [`History`](https://developer.mozilla.org/en-US/docs/Web/API/History)
|
|
1822
1820
|
* entry for this navigation. Defaults to `undefined`.
|
|
1823
1821
|
* @param options.target The target attribute for the link. Defaults to `undefined`.
|
|
@@ -1826,6 +1824,8 @@ declare namespace ScrollRestoration {
|
|
|
1826
1824
|
* {@link useViewTransitionState}. Defaults to `false`.
|
|
1827
1825
|
* @param options.unstable_defaultShouldRevalidate Specify the default revalidation
|
|
1828
1826
|
* behavior for the navigation. Defaults to `true`.
|
|
1827
|
+
* @param options.unstable_mask Masked location to display in the browser instead
|
|
1828
|
+
* of the router location. Defaults to `undefined`.
|
|
1829
1829
|
* @param options.unstable_useTransitions Wraps the navigation in
|
|
1830
1830
|
* [`React.startTransition`](https://react.dev/reference/react/startTransition)
|
|
1831
1831
|
* for concurrent rendering. Defaults to `false`.
|
|
@@ -1259,6 +1259,51 @@ interface LinkProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>,
|
|
|
1259
1259
|
* included in the relative path calculation.
|
|
1260
1260
|
*/
|
|
1261
1261
|
relative?: RelativeRoutingType;
|
|
1262
|
+
/**
|
|
1263
|
+
* Can be a string or a partial {@link Path}:
|
|
1264
|
+
*
|
|
1265
|
+
* ```tsx
|
|
1266
|
+
* <Link to="/some/path" />
|
|
1267
|
+
*
|
|
1268
|
+
* <Link
|
|
1269
|
+
* to={{
|
|
1270
|
+
* pathname: "/some/path",
|
|
1271
|
+
* search: "?query=string",
|
|
1272
|
+
* hash: "#hash",
|
|
1273
|
+
* }}
|
|
1274
|
+
* />
|
|
1275
|
+
* ```
|
|
1276
|
+
*/
|
|
1277
|
+
to: To;
|
|
1278
|
+
/**
|
|
1279
|
+
* Enables a [View Transition](https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API)
|
|
1280
|
+
* for this navigation.
|
|
1281
|
+
*
|
|
1282
|
+
* ```jsx
|
|
1283
|
+
* <Link to={to} viewTransition>
|
|
1284
|
+
* Click me
|
|
1285
|
+
* </Link>
|
|
1286
|
+
* ```
|
|
1287
|
+
*
|
|
1288
|
+
* To apply specific styles for the transition, see {@link useViewTransitionState}
|
|
1289
|
+
*/
|
|
1290
|
+
viewTransition?: boolean;
|
|
1291
|
+
/**
|
|
1292
|
+
* Specify the default revalidation behavior for the navigation.
|
|
1293
|
+
*
|
|
1294
|
+
* ```tsx
|
|
1295
|
+
* <Link to="/some/path" unstable_defaultShouldRevalidate={false} />
|
|
1296
|
+
* ```
|
|
1297
|
+
*
|
|
1298
|
+
* If no `shouldRevalidate` functions are present on the active routes, then this
|
|
1299
|
+
* value will be used directly. Otherwise it will be passed into `shouldRevalidate`
|
|
1300
|
+
* so the route can make the final determination on revalidation. This can be
|
|
1301
|
+
* useful when updating search params and you don't want to trigger a revalidation.
|
|
1302
|
+
*
|
|
1303
|
+
* By default (when not specified), loaders will revalidate according to the routers
|
|
1304
|
+
* standard revalidation behavior.
|
|
1305
|
+
*/
|
|
1306
|
+
unstable_defaultShouldRevalidate?: boolean;
|
|
1262
1307
|
/**
|
|
1263
1308
|
* Masked path for for this navigation, when you want to navigate the router to
|
|
1264
1309
|
* one location but display a separate location in the URL bar.
|
|
@@ -1307,51 +1352,6 @@ interface LinkProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>,
|
|
|
1307
1352
|
* ```
|
|
1308
1353
|
*/
|
|
1309
1354
|
unstable_mask?: To;
|
|
1310
|
-
/**
|
|
1311
|
-
* Can be a string or a partial {@link Path}:
|
|
1312
|
-
*
|
|
1313
|
-
* ```tsx
|
|
1314
|
-
* <Link to="/some/path" />
|
|
1315
|
-
*
|
|
1316
|
-
* <Link
|
|
1317
|
-
* to={{
|
|
1318
|
-
* pathname: "/some/path",
|
|
1319
|
-
* search: "?query=string",
|
|
1320
|
-
* hash: "#hash",
|
|
1321
|
-
* }}
|
|
1322
|
-
* />
|
|
1323
|
-
* ```
|
|
1324
|
-
*/
|
|
1325
|
-
to: To;
|
|
1326
|
-
/**
|
|
1327
|
-
* Enables a [View Transition](https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API)
|
|
1328
|
-
* for this navigation.
|
|
1329
|
-
*
|
|
1330
|
-
* ```jsx
|
|
1331
|
-
* <Link to={to} viewTransition>
|
|
1332
|
-
* Click me
|
|
1333
|
-
* </Link>
|
|
1334
|
-
* ```
|
|
1335
|
-
*
|
|
1336
|
-
* To apply specific styles for the transition, see {@link useViewTransitionState}
|
|
1337
|
-
*/
|
|
1338
|
-
viewTransition?: boolean;
|
|
1339
|
-
/**
|
|
1340
|
-
* Specify the default revalidation behavior for the navigation.
|
|
1341
|
-
*
|
|
1342
|
-
* ```tsx
|
|
1343
|
-
* <Link to="/some/path" unstable_defaultShouldRevalidate={false} />
|
|
1344
|
-
* ```
|
|
1345
|
-
*
|
|
1346
|
-
* If no `shouldRevalidate` functions are present on the active routes, then this
|
|
1347
|
-
* value will be used directly. Otherwise it will be passed into `shouldRevalidate`
|
|
1348
|
-
* so the route can make the final determination on revalidation. This can be
|
|
1349
|
-
* useful when updating search params and you don't want to trigger a revalidation.
|
|
1350
|
-
*
|
|
1351
|
-
* By default (when not specified), loaders will revalidate according to the routers
|
|
1352
|
-
* standard revalidation behavior.
|
|
1353
|
-
*/
|
|
1354
|
-
unstable_defaultShouldRevalidate?: boolean;
|
|
1355
1355
|
}
|
|
1356
1356
|
/**
|
|
1357
1357
|
* A progressively enhanced [`<a href>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a)
|
|
@@ -1378,11 +1378,11 @@ interface LinkProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>,
|
|
|
1378
1378
|
* @param {LinkProps.relative} props.relative n/a
|
|
1379
1379
|
* @param {LinkProps.reloadDocument} props.reloadDocument n/a
|
|
1380
1380
|
* @param {LinkProps.replace} props.replace n/a
|
|
1381
|
-
* @param {LinkProps.unstable_mask} props.unstable_mask [modes: framework, data] n/a
|
|
1382
1381
|
* @param {LinkProps.state} props.state n/a
|
|
1383
1382
|
* @param {LinkProps.to} props.to n/a
|
|
1384
1383
|
* @param {LinkProps.viewTransition} props.viewTransition [modes: framework, data] n/a
|
|
1385
1384
|
* @param {LinkProps.unstable_defaultShouldRevalidate} props.unstable_defaultShouldRevalidate n/a
|
|
1385
|
+
* @param {LinkProps.unstable_mask} props.unstable_mask [modes: framework, data] n/a
|
|
1386
1386
|
*/
|
|
1387
1387
|
declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
1388
1388
|
/**
|
|
@@ -1816,8 +1816,6 @@ declare namespace ScrollRestoration {
|
|
|
1816
1816
|
* to use for the link. Defaults to `"route"`.
|
|
1817
1817
|
* @param options.replace Whether to replace the current [`History`](https://developer.mozilla.org/en-US/docs/Web/API/History)
|
|
1818
1818
|
* entry instead of pushing a new one. Defaults to `false`.
|
|
1819
|
-
* @param options.unstable_mask Masked location to display in the browser instead
|
|
1820
|
-
* of the router location. Defaults to `undefined`.
|
|
1821
1819
|
* @param options.state The state to add to the [`History`](https://developer.mozilla.org/en-US/docs/Web/API/History)
|
|
1822
1820
|
* entry for this navigation. Defaults to `undefined`.
|
|
1823
1821
|
* @param options.target The target attribute for the link. Defaults to `undefined`.
|
|
@@ -1826,6 +1824,8 @@ declare namespace ScrollRestoration {
|
|
|
1826
1824
|
* {@link useViewTransitionState}. Defaults to `false`.
|
|
1827
1825
|
* @param options.unstable_defaultShouldRevalidate Specify the default revalidation
|
|
1828
1826
|
* behavior for the navigation. Defaults to `true`.
|
|
1827
|
+
* @param options.unstable_mask Masked location to display in the browser instead
|
|
1828
|
+
* of the router location. Defaults to `undefined`.
|
|
1829
1829
|
* @param options.unstable_useTransitions Wraps the navigation in
|
|
1830
1830
|
* [`React.startTransition`](https://react.dev/reference/react/startTransition)
|
|
1831
1831
|
* for concurrent rendering. Defaults to `false`.
|
|
@@ -1259,6 +1259,51 @@ interface LinkProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>,
|
|
|
1259
1259
|
* included in the relative path calculation.
|
|
1260
1260
|
*/
|
|
1261
1261
|
relative?: RelativeRoutingType;
|
|
1262
|
+
/**
|
|
1263
|
+
* Can be a string or a partial {@link Path}:
|
|
1264
|
+
*
|
|
1265
|
+
* ```tsx
|
|
1266
|
+
* <Link to="/some/path" />
|
|
1267
|
+
*
|
|
1268
|
+
* <Link
|
|
1269
|
+
* to={{
|
|
1270
|
+
* pathname: "/some/path",
|
|
1271
|
+
* search: "?query=string",
|
|
1272
|
+
* hash: "#hash",
|
|
1273
|
+
* }}
|
|
1274
|
+
* />
|
|
1275
|
+
* ```
|
|
1276
|
+
*/
|
|
1277
|
+
to: To;
|
|
1278
|
+
/**
|
|
1279
|
+
* Enables a [View Transition](https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API)
|
|
1280
|
+
* for this navigation.
|
|
1281
|
+
*
|
|
1282
|
+
* ```jsx
|
|
1283
|
+
* <Link to={to} viewTransition>
|
|
1284
|
+
* Click me
|
|
1285
|
+
* </Link>
|
|
1286
|
+
* ```
|
|
1287
|
+
*
|
|
1288
|
+
* To apply specific styles for the transition, see {@link useViewTransitionState}
|
|
1289
|
+
*/
|
|
1290
|
+
viewTransition?: boolean;
|
|
1291
|
+
/**
|
|
1292
|
+
* Specify the default revalidation behavior for the navigation.
|
|
1293
|
+
*
|
|
1294
|
+
* ```tsx
|
|
1295
|
+
* <Link to="/some/path" unstable_defaultShouldRevalidate={false} />
|
|
1296
|
+
* ```
|
|
1297
|
+
*
|
|
1298
|
+
* If no `shouldRevalidate` functions are present on the active routes, then this
|
|
1299
|
+
* value will be used directly. Otherwise it will be passed into `shouldRevalidate`
|
|
1300
|
+
* so the route can make the final determination on revalidation. This can be
|
|
1301
|
+
* useful when updating search params and you don't want to trigger a revalidation.
|
|
1302
|
+
*
|
|
1303
|
+
* By default (when not specified), loaders will revalidate according to the routers
|
|
1304
|
+
* standard revalidation behavior.
|
|
1305
|
+
*/
|
|
1306
|
+
unstable_defaultShouldRevalidate?: boolean;
|
|
1262
1307
|
/**
|
|
1263
1308
|
* Masked path for for this navigation, when you want to navigate the router to
|
|
1264
1309
|
* one location but display a separate location in the URL bar.
|
|
@@ -1307,51 +1352,6 @@ interface LinkProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>,
|
|
|
1307
1352
|
* ```
|
|
1308
1353
|
*/
|
|
1309
1354
|
unstable_mask?: To;
|
|
1310
|
-
/**
|
|
1311
|
-
* Can be a string or a partial {@link Path}:
|
|
1312
|
-
*
|
|
1313
|
-
* ```tsx
|
|
1314
|
-
* <Link to="/some/path" />
|
|
1315
|
-
*
|
|
1316
|
-
* <Link
|
|
1317
|
-
* to={{
|
|
1318
|
-
* pathname: "/some/path",
|
|
1319
|
-
* search: "?query=string",
|
|
1320
|
-
* hash: "#hash",
|
|
1321
|
-
* }}
|
|
1322
|
-
* />
|
|
1323
|
-
* ```
|
|
1324
|
-
*/
|
|
1325
|
-
to: To;
|
|
1326
|
-
/**
|
|
1327
|
-
* Enables a [View Transition](https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API)
|
|
1328
|
-
* for this navigation.
|
|
1329
|
-
*
|
|
1330
|
-
* ```jsx
|
|
1331
|
-
* <Link to={to} viewTransition>
|
|
1332
|
-
* Click me
|
|
1333
|
-
* </Link>
|
|
1334
|
-
* ```
|
|
1335
|
-
*
|
|
1336
|
-
* To apply specific styles for the transition, see {@link useViewTransitionState}
|
|
1337
|
-
*/
|
|
1338
|
-
viewTransition?: boolean;
|
|
1339
|
-
/**
|
|
1340
|
-
* Specify the default revalidation behavior for the navigation.
|
|
1341
|
-
*
|
|
1342
|
-
* ```tsx
|
|
1343
|
-
* <Link to="/some/path" unstable_defaultShouldRevalidate={false} />
|
|
1344
|
-
* ```
|
|
1345
|
-
*
|
|
1346
|
-
* If no `shouldRevalidate` functions are present on the active routes, then this
|
|
1347
|
-
* value will be used directly. Otherwise it will be passed into `shouldRevalidate`
|
|
1348
|
-
* so the route can make the final determination on revalidation. This can be
|
|
1349
|
-
* useful when updating search params and you don't want to trigger a revalidation.
|
|
1350
|
-
*
|
|
1351
|
-
* By default (when not specified), loaders will revalidate according to the routers
|
|
1352
|
-
* standard revalidation behavior.
|
|
1353
|
-
*/
|
|
1354
|
-
unstable_defaultShouldRevalidate?: boolean;
|
|
1355
1355
|
}
|
|
1356
1356
|
/**
|
|
1357
1357
|
* A progressively enhanced [`<a href>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a)
|
|
@@ -1378,11 +1378,11 @@ interface LinkProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>,
|
|
|
1378
1378
|
* @param {LinkProps.relative} props.relative n/a
|
|
1379
1379
|
* @param {LinkProps.reloadDocument} props.reloadDocument n/a
|
|
1380
1380
|
* @param {LinkProps.replace} props.replace n/a
|
|
1381
|
-
* @param {LinkProps.unstable_mask} props.unstable_mask [modes: framework, data] n/a
|
|
1382
1381
|
* @param {LinkProps.state} props.state n/a
|
|
1383
1382
|
* @param {LinkProps.to} props.to n/a
|
|
1384
1383
|
* @param {LinkProps.viewTransition} props.viewTransition [modes: framework, data] n/a
|
|
1385
1384
|
* @param {LinkProps.unstable_defaultShouldRevalidate} props.unstable_defaultShouldRevalidate n/a
|
|
1385
|
+
* @param {LinkProps.unstable_mask} props.unstable_mask [modes: framework, data] n/a
|
|
1386
1386
|
*/
|
|
1387
1387
|
declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
1388
1388
|
/**
|
|
@@ -1816,8 +1816,6 @@ declare namespace ScrollRestoration {
|
|
|
1816
1816
|
* to use for the link. Defaults to `"route"`.
|
|
1817
1817
|
* @param options.replace Whether to replace the current [`History`](https://developer.mozilla.org/en-US/docs/Web/API/History)
|
|
1818
1818
|
* entry instead of pushing a new one. Defaults to `false`.
|
|
1819
|
-
* @param options.unstable_mask Masked location to display in the browser instead
|
|
1820
|
-
* of the router location. Defaults to `undefined`.
|
|
1821
1819
|
* @param options.state The state to add to the [`History`](https://developer.mozilla.org/en-US/docs/Web/API/History)
|
|
1822
1820
|
* entry for this navigation. Defaults to `undefined`.
|
|
1823
1821
|
* @param options.target The target attribute for the link. Defaults to `undefined`.
|
|
@@ -1826,6 +1824,8 @@ declare namespace ScrollRestoration {
|
|
|
1826
1824
|
* {@link useViewTransitionState}. Defaults to `false`.
|
|
1827
1825
|
* @param options.unstable_defaultShouldRevalidate Specify the default revalidation
|
|
1828
1826
|
* behavior for the navigation. Defaults to `true`.
|
|
1827
|
+
* @param options.unstable_mask Masked location to display in the browser instead
|
|
1828
|
+
* of the router location. Defaults to `undefined`.
|
|
1829
1829
|
* @param options.unstable_useTransitions Wraps the navigation in
|
|
1830
1830
|
* [`React.startTransition`](https://react.dev/reference/react/startTransition)
|
|
1831
1831
|
* for concurrent rendering. Defaults to `false`.
|
|
@@ -1259,6 +1259,51 @@ interface LinkProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>,
|
|
|
1259
1259
|
* included in the relative path calculation.
|
|
1260
1260
|
*/
|
|
1261
1261
|
relative?: RelativeRoutingType;
|
|
1262
|
+
/**
|
|
1263
|
+
* Can be a string or a partial {@link Path}:
|
|
1264
|
+
*
|
|
1265
|
+
* ```tsx
|
|
1266
|
+
* <Link to="/some/path" />
|
|
1267
|
+
*
|
|
1268
|
+
* <Link
|
|
1269
|
+
* to={{
|
|
1270
|
+
* pathname: "/some/path",
|
|
1271
|
+
* search: "?query=string",
|
|
1272
|
+
* hash: "#hash",
|
|
1273
|
+
* }}
|
|
1274
|
+
* />
|
|
1275
|
+
* ```
|
|
1276
|
+
*/
|
|
1277
|
+
to: To;
|
|
1278
|
+
/**
|
|
1279
|
+
* Enables a [View Transition](https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API)
|
|
1280
|
+
* for this navigation.
|
|
1281
|
+
*
|
|
1282
|
+
* ```jsx
|
|
1283
|
+
* <Link to={to} viewTransition>
|
|
1284
|
+
* Click me
|
|
1285
|
+
* </Link>
|
|
1286
|
+
* ```
|
|
1287
|
+
*
|
|
1288
|
+
* To apply specific styles for the transition, see {@link useViewTransitionState}
|
|
1289
|
+
*/
|
|
1290
|
+
viewTransition?: boolean;
|
|
1291
|
+
/**
|
|
1292
|
+
* Specify the default revalidation behavior for the navigation.
|
|
1293
|
+
*
|
|
1294
|
+
* ```tsx
|
|
1295
|
+
* <Link to="/some/path" unstable_defaultShouldRevalidate={false} />
|
|
1296
|
+
* ```
|
|
1297
|
+
*
|
|
1298
|
+
* If no `shouldRevalidate` functions are present on the active routes, then this
|
|
1299
|
+
* value will be used directly. Otherwise it will be passed into `shouldRevalidate`
|
|
1300
|
+
* so the route can make the final determination on revalidation. This can be
|
|
1301
|
+
* useful when updating search params and you don't want to trigger a revalidation.
|
|
1302
|
+
*
|
|
1303
|
+
* By default (when not specified), loaders will revalidate according to the routers
|
|
1304
|
+
* standard revalidation behavior.
|
|
1305
|
+
*/
|
|
1306
|
+
unstable_defaultShouldRevalidate?: boolean;
|
|
1262
1307
|
/**
|
|
1263
1308
|
* Masked path for for this navigation, when you want to navigate the router to
|
|
1264
1309
|
* one location but display a separate location in the URL bar.
|
|
@@ -1307,51 +1352,6 @@ interface LinkProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>,
|
|
|
1307
1352
|
* ```
|
|
1308
1353
|
*/
|
|
1309
1354
|
unstable_mask?: To;
|
|
1310
|
-
/**
|
|
1311
|
-
* Can be a string or a partial {@link Path}:
|
|
1312
|
-
*
|
|
1313
|
-
* ```tsx
|
|
1314
|
-
* <Link to="/some/path" />
|
|
1315
|
-
*
|
|
1316
|
-
* <Link
|
|
1317
|
-
* to={{
|
|
1318
|
-
* pathname: "/some/path",
|
|
1319
|
-
* search: "?query=string",
|
|
1320
|
-
* hash: "#hash",
|
|
1321
|
-
* }}
|
|
1322
|
-
* />
|
|
1323
|
-
* ```
|
|
1324
|
-
*/
|
|
1325
|
-
to: To;
|
|
1326
|
-
/**
|
|
1327
|
-
* Enables a [View Transition](https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API)
|
|
1328
|
-
* for this navigation.
|
|
1329
|
-
*
|
|
1330
|
-
* ```jsx
|
|
1331
|
-
* <Link to={to} viewTransition>
|
|
1332
|
-
* Click me
|
|
1333
|
-
* </Link>
|
|
1334
|
-
* ```
|
|
1335
|
-
*
|
|
1336
|
-
* To apply specific styles for the transition, see {@link useViewTransitionState}
|
|
1337
|
-
*/
|
|
1338
|
-
viewTransition?: boolean;
|
|
1339
|
-
/**
|
|
1340
|
-
* Specify the default revalidation behavior for the navigation.
|
|
1341
|
-
*
|
|
1342
|
-
* ```tsx
|
|
1343
|
-
* <Link to="/some/path" unstable_defaultShouldRevalidate={false} />
|
|
1344
|
-
* ```
|
|
1345
|
-
*
|
|
1346
|
-
* If no `shouldRevalidate` functions are present on the active routes, then this
|
|
1347
|
-
* value will be used directly. Otherwise it will be passed into `shouldRevalidate`
|
|
1348
|
-
* so the route can make the final determination on revalidation. This can be
|
|
1349
|
-
* useful when updating search params and you don't want to trigger a revalidation.
|
|
1350
|
-
*
|
|
1351
|
-
* By default (when not specified), loaders will revalidate according to the routers
|
|
1352
|
-
* standard revalidation behavior.
|
|
1353
|
-
*/
|
|
1354
|
-
unstable_defaultShouldRevalidate?: boolean;
|
|
1355
1355
|
}
|
|
1356
1356
|
/**
|
|
1357
1357
|
* A progressively enhanced [`<a href>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a)
|
|
@@ -1378,11 +1378,11 @@ interface LinkProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>,
|
|
|
1378
1378
|
* @param {LinkProps.relative} props.relative n/a
|
|
1379
1379
|
* @param {LinkProps.reloadDocument} props.reloadDocument n/a
|
|
1380
1380
|
* @param {LinkProps.replace} props.replace n/a
|
|
1381
|
-
* @param {LinkProps.unstable_mask} props.unstable_mask [modes: framework, data] n/a
|
|
1382
1381
|
* @param {LinkProps.state} props.state n/a
|
|
1383
1382
|
* @param {LinkProps.to} props.to n/a
|
|
1384
1383
|
* @param {LinkProps.viewTransition} props.viewTransition [modes: framework, data] n/a
|
|
1385
1384
|
* @param {LinkProps.unstable_defaultShouldRevalidate} props.unstable_defaultShouldRevalidate n/a
|
|
1385
|
+
* @param {LinkProps.unstable_mask} props.unstable_mask [modes: framework, data] n/a
|
|
1386
1386
|
*/
|
|
1387
1387
|
declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
1388
1388
|
/**
|
|
@@ -1816,8 +1816,6 @@ declare namespace ScrollRestoration {
|
|
|
1816
1816
|
* to use for the link. Defaults to `"route"`.
|
|
1817
1817
|
* @param options.replace Whether to replace the current [`History`](https://developer.mozilla.org/en-US/docs/Web/API/History)
|
|
1818
1818
|
* entry instead of pushing a new one. Defaults to `false`.
|
|
1819
|
-
* @param options.unstable_mask Masked location to display in the browser instead
|
|
1820
|
-
* of the router location. Defaults to `undefined`.
|
|
1821
1819
|
* @param options.state The state to add to the [`History`](https://developer.mozilla.org/en-US/docs/Web/API/History)
|
|
1822
1820
|
* entry for this navigation. Defaults to `undefined`.
|
|
1823
1821
|
* @param options.target The target attribute for the link. Defaults to `undefined`.
|
|
@@ -1826,6 +1824,8 @@ declare namespace ScrollRestoration {
|
|
|
1826
1824
|
* {@link useViewTransitionState}. Defaults to `false`.
|
|
1827
1825
|
* @param options.unstable_defaultShouldRevalidate Specify the default revalidation
|
|
1828
1826
|
* behavior for the navigation. Defaults to `true`.
|
|
1827
|
+
* @param options.unstable_mask Masked location to display in the browser instead
|
|
1828
|
+
* of the router location. Defaults to `undefined`.
|
|
1829
1829
|
* @param options.unstable_useTransitions Wraps the navigation in
|
|
1830
1830
|
* [`React.startTransition`](https://react.dev/reference/react/startTransition)
|
|
1831
1831
|
* for concurrent rendering. Defaults to `false`.
|