react-router 7.15.0 → 7.15.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 +50 -10
- package/dist/development/{browser-CRsXgNrY.d.mts → browser-3AnU12UI.d.mts} +1 -1
- package/dist/development/{browser-wDl1FZEL.d.ts → browser-BOdXz9dK.d.ts} +1 -1
- package/dist/development/{chunk-5KNZJZUH.mjs → chunk-4N6VE7H7.mjs} +230 -113
- package/dist/{production/chunk-7YXKJMLN.js → development/chunk-4YRVXM2U.js} +7 -7
- package/dist/development/{chunk-Z5YQYACE.js → chunk-66UKHEGQ.js} +106 -103
- package/dist/development/{chunk-AM3XM4LS.js → chunk-D6LUOGOQ.js} +251 -137
- package/dist/development/{chunk-RMD3H4O3.mjs → chunk-RJYABSBD.mjs} +22 -21
- package/dist/{production/context-BQs41HrG.d.mts → development/context-ByvtofY2.d.mts} +7 -1
- package/dist/development/dom-export.d.mts +2 -2
- package/dist/development/dom-export.d.ts +2 -2
- package/dist/development/dom-export.js +48 -50
- package/dist/development/dom-export.mjs +23 -25
- package/dist/{production/index-react-server-client-CSv-KZBk.d.ts → development/index-react-server-client-BS5F89FR.d.ts} +10 -2
- package/dist/{production/index-react-server-client-Ck_yZ1qL.d.mts → development/index-react-server-client-DY04-103.d.mts} +10 -2
- package/dist/development/index-react-server-client.d.mts +2 -2
- package/dist/development/index-react-server-client.d.ts +2 -2
- 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.d.mts +6 -0
- package/dist/development/index-react-server.d.ts +6 -0
- package/dist/development/index-react-server.js +4 -4
- package/dist/development/index-react-server.mjs +4 -4
- package/dist/development/index.d.mts +91 -9
- package/dist/development/index.d.ts +91 -9
- package/dist/development/index.js +103 -100
- package/dist/development/index.mjs +5 -3
- package/dist/{production/instrumentation-DlJ2QV7d.d.ts → development/instrumentation-cRWWLfsU.d.ts} +7 -1
- package/dist/development/lib/types/internal.js +1 -1
- package/dist/development/lib/types/internal.mjs +1 -1
- package/dist/production/{browser-CRsXgNrY.d.mts → browser-3AnU12UI.d.mts} +1 -1
- package/dist/production/{browser-wDl1FZEL.d.ts → browser-BOdXz9dK.d.ts} +1 -1
- package/dist/production/{chunk-23ZOHYE5.mjs → chunk-6S4627ZB.mjs} +22 -21
- package/dist/production/{chunk-LCJTIOKZ.js → chunk-HUBUW7R3.js} +251 -137
- package/dist/production/{chunk-GM3PW4GX.mjs → chunk-JAKZPQZC.mjs} +230 -113
- package/dist/production/{chunk-YBQJ3ABE.js → chunk-PNZCCTKT.js} +106 -103
- package/dist/{development/chunk-2D5H3HU3.js → production/chunk-Y6IFXO7V.js} +7 -7
- package/dist/{development/context-BQs41HrG.d.mts → production/context-ByvtofY2.d.mts} +7 -1
- package/dist/production/dom-export.d.mts +2 -2
- package/dist/production/dom-export.d.ts +2 -2
- package/dist/production/dom-export.js +48 -50
- package/dist/production/dom-export.mjs +23 -25
- package/dist/{development/index-react-server-client-CSv-KZBk.d.ts → production/index-react-server-client-BS5F89FR.d.ts} +10 -2
- package/dist/{development/index-react-server-client-Ck_yZ1qL.d.mts → production/index-react-server-client-DY04-103.d.mts} +10 -2
- package/dist/production/index-react-server-client.d.mts +2 -2
- package/dist/production/index-react-server-client.d.ts +2 -2
- 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.d.mts +6 -0
- package/dist/production/index-react-server.d.ts +6 -0
- package/dist/production/index-react-server.js +4 -4
- package/dist/production/index-react-server.mjs +4 -4
- package/dist/production/index.d.mts +91 -9
- package/dist/production/index.d.ts +91 -9
- package/dist/production/index.js +103 -100
- package/dist/production/index.mjs +5 -3
- package/dist/{development/instrumentation-DlJ2QV7d.d.ts → production/instrumentation-cRWWLfsU.d.ts} +7 -1
- package/dist/production/lib/types/internal.js +1 -1
- package/dist/production/lib/types/internal.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v7.15.
|
|
2
|
+
* react-router v7.15.1
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
isSession,
|
|
29
29
|
routeRSCServerRequest,
|
|
30
30
|
setDevServerHooks
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-6S4627ZB.mjs";
|
|
32
32
|
import {
|
|
33
33
|
Action,
|
|
34
34
|
Await,
|
|
@@ -133,6 +133,7 @@ import {
|
|
|
133
133
|
useRoute,
|
|
134
134
|
useRouteError,
|
|
135
135
|
useRouteLoaderData,
|
|
136
|
+
useRouterState,
|
|
136
137
|
useRoutes,
|
|
137
138
|
useScrollRestoration,
|
|
138
139
|
useSearchParams,
|
|
@@ -141,7 +142,7 @@ import {
|
|
|
141
142
|
withComponentProps,
|
|
142
143
|
withErrorBoundaryProps,
|
|
143
144
|
withHydrateFallbackProps
|
|
144
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-JAKZPQZC.mjs";
|
|
145
146
|
export {
|
|
146
147
|
Await,
|
|
147
148
|
BrowserRouter,
|
|
@@ -243,6 +244,7 @@ export {
|
|
|
243
244
|
setDevServerHooks as unstable_setDevServerHooks,
|
|
244
245
|
usePrompt as unstable_usePrompt,
|
|
245
246
|
useRoute as unstable_useRoute,
|
|
247
|
+
useRouterState as unstable_useRouterState,
|
|
246
248
|
useActionData,
|
|
247
249
|
useAsyncError,
|
|
248
250
|
useAsyncValue,
|
package/dist/{development/instrumentation-DlJ2QV7d.d.ts → production/instrumentation-cRWWLfsU.d.ts}
RENAMED
|
@@ -480,6 +480,8 @@ type NavigationStates = {
|
|
|
480
480
|
Idle: {
|
|
481
481
|
state: "idle";
|
|
482
482
|
location: undefined;
|
|
483
|
+
matches: undefined;
|
|
484
|
+
historyAction: undefined;
|
|
483
485
|
formMethod: undefined;
|
|
484
486
|
formAction: undefined;
|
|
485
487
|
formEncType: undefined;
|
|
@@ -490,6 +492,8 @@ type NavigationStates = {
|
|
|
490
492
|
Loading: {
|
|
491
493
|
state: "loading";
|
|
492
494
|
location: Location;
|
|
495
|
+
matches: DataRouteMatch[];
|
|
496
|
+
historyAction: Action;
|
|
493
497
|
formMethod: Submission["formMethod"] | undefined;
|
|
494
498
|
formAction: Submission["formAction"] | undefined;
|
|
495
499
|
formEncType: Submission["formEncType"] | undefined;
|
|
@@ -500,6 +504,8 @@ type NavigationStates = {
|
|
|
500
504
|
Submitting: {
|
|
501
505
|
state: "submitting";
|
|
502
506
|
location: Location;
|
|
507
|
+
matches: DataRouteMatch[];
|
|
508
|
+
historyAction: Action;
|
|
503
509
|
formMethod: Submission["formMethod"];
|
|
504
510
|
formAction: Submission["formAction"];
|
|
505
511
|
formEncType: Submission["formEncType"];
|
|
@@ -706,4 +712,4 @@ type RequestHandlerInstrumentationInfo = Readonly<{
|
|
|
706
712
|
context: ReadonlyContext | undefined;
|
|
707
713
|
}>;
|
|
708
714
|
|
|
709
|
-
export { type BlockerFunction as B, type ClientInstrumentation as C, type Fetcher as F, type GetScrollPositionFunction as G, type HydrationState as H, type InstrumentRequestHandlerFunction as I, type
|
|
715
|
+
export { type BlockerFunction as B, type ClientInstrumentation as C, type Fetcher as F, type GetScrollPositionFunction as G, type HydrationState as H, type InstrumentRequestHandlerFunction as I, type NavigationStates as N, type RouterInit as R, type StaticHandler as S, type Router as a, type Blocker as b, type RelativeRoutingType as c, type Navigation as d, type RouterState as e, type GetScrollRestorationKeyFunction as f, type StaticHandlerContext as g, type RouterSubscriber as h, type RouterNavigateOptions as i, type RouterFetchOptions as j, type RevalidationState as k, type ServerInstrumentation as l, type InstrumentRouterFunction as m, type InstrumentRouteFunction as n, type InstrumentationHandlerResult as o, IDLE_NAVIGATION as p, IDLE_FETCHER as q, IDLE_BLOCKER as r, createRouter as s, type FutureConfig as t, type CreateStaticHandlerOptions as u };
|