react-router 0.0.0-experimental-a6d1d1d4e → 0.0.0-experimental-1d760f6a6
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 +12 -0
- package/dist/development/{chunk-OEAMHMGQ.mjs → chunk-QBMD7MNB.mjs} +293 -1025
- package/dist/development/dom-export.d.mts +2 -2
- package/dist/development/dom-export.d.ts +2 -2
- package/dist/development/dom-export.js +69 -103
- package/dist/development/dom-export.mjs +2 -2
- package/dist/development/{fog-of-war-DrUCUQQ-.d.ts → fog-of-war-BLArG-qZ.d.ts} +81 -168
- package/dist/{production/fog-of-war-C5L_Yd5M.d.mts → development/fog-of-war-D2zsXvum.d.mts} +81 -168
- package/dist/development/index.d.mts +8 -15
- package/dist/development/index.d.ts +8 -15
- package/dist/development/index.js +291 -1032
- package/dist/development/index.mjs +2 -19
- package/dist/development/lib/types/route-module.d.mts +1 -1
- package/dist/development/lib/types/route-module.d.ts +1 -1
- package/dist/development/lib/types/route-module.js +1 -1
- package/dist/development/lib/types/route-module.mjs +1 -1
- package/dist/development/{route-data-BIYebJr3.d.ts → route-data-C12CLHiN.d.mts} +1 -11
- package/dist/{production/route-data-BIYebJr3.d.mts → development/route-data-C12CLHiN.d.ts} +1 -11
- package/dist/production/{chunk-I2N4LFMP.mjs → chunk-DSJGM2GU.mjs} +293 -1025
- package/dist/production/dom-export.d.mts +2 -2
- package/dist/production/dom-export.d.ts +2 -2
- package/dist/production/dom-export.js +69 -103
- package/dist/production/dom-export.mjs +2 -2
- package/dist/production/{fog-of-war-DrUCUQQ-.d.ts → fog-of-war-BLArG-qZ.d.ts} +81 -168
- package/dist/{development/fog-of-war-C5L_Yd5M.d.mts → production/fog-of-war-D2zsXvum.d.mts} +81 -168
- package/dist/production/index.d.mts +8 -15
- package/dist/production/index.d.ts +8 -15
- package/dist/production/index.js +291 -1032
- package/dist/production/index.mjs +2 -19
- package/dist/production/lib/types/route-module.d.mts +1 -1
- package/dist/production/lib/types/route-module.d.ts +1 -1
- package/dist/production/lib/types/route-module.js +1 -1
- package/dist/production/lib/types/route-module.mjs +1 -1
- package/dist/production/{route-data-BIYebJr3.d.ts → route-data-C12CLHiN.d.mts} +1 -11
- package/dist/{development/route-data-BIYebJr3.d.mts → production/route-data-C12CLHiN.d.ts} +1 -11
- package/package.json +2 -33
- package/dist/development/rsc-export.d.mts +0 -1553
- package/dist/development/rsc-export.d.ts +0 -1553
- package/dist/development/rsc-export.js +0 -2413
- package/dist/development/rsc-export.mjs +0 -2385
- package/dist/production/rsc-export.d.mts +0 -1553
- package/dist/production/rsc-export.d.ts +0 -1553
- package/dist/production/rsc-export.js +0 -2413
- package/dist/production/rsc-export.mjs +0 -2385
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-1d760f6a6
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @license MIT
|
|
10
10
|
*/
|
|
11
|
-
"use client";
|
|
12
11
|
import {
|
|
13
12
|
Action,
|
|
14
13
|
Await,
|
|
@@ -34,8 +33,6 @@ import {
|
|
|
34
33
|
NavigationContext,
|
|
35
34
|
Outlet,
|
|
36
35
|
PrefetchPageLinks,
|
|
37
|
-
RSCHydratedRouter,
|
|
38
|
-
RSCStaticRouter,
|
|
39
36
|
RemixErrorBoundary,
|
|
40
37
|
Route,
|
|
41
38
|
RouteContext,
|
|
@@ -50,12 +47,8 @@ import {
|
|
|
50
47
|
StaticRouter,
|
|
51
48
|
StaticRouterProvider,
|
|
52
49
|
ViewTransitionContext,
|
|
53
|
-
WithErrorBoundaryProps,
|
|
54
|
-
WithHydrateFallbackProps,
|
|
55
|
-
WithRouteComponentProps,
|
|
56
50
|
createBrowserHistory,
|
|
57
51
|
createBrowserRouter,
|
|
58
|
-
createCallServer,
|
|
59
52
|
createClientRoutes,
|
|
60
53
|
createClientRoutesWithHMRRevalidationOptOut,
|
|
61
54
|
createCookie,
|
|
@@ -80,7 +73,6 @@ import {
|
|
|
80
73
|
generatePath,
|
|
81
74
|
getHydrationData,
|
|
82
75
|
getPatchRoutesOnNavigationFunction,
|
|
83
|
-
getServerStream,
|
|
84
76
|
getTurboStreamSingleFetchDataStrategy,
|
|
85
77
|
href,
|
|
86
78
|
hydrationRouteProperties,
|
|
@@ -97,7 +89,6 @@ import {
|
|
|
97
89
|
renderMatches,
|
|
98
90
|
replace,
|
|
99
91
|
resolvePath,
|
|
100
|
-
routeRSCServerRequest,
|
|
101
92
|
setDevServerHooks,
|
|
102
93
|
shouldHydrateRouteLoader,
|
|
103
94
|
unstable_RouterContextProvider,
|
|
@@ -134,7 +125,7 @@ import {
|
|
|
134
125
|
useSearchParams,
|
|
135
126
|
useSubmit,
|
|
136
127
|
useViewTransitionState
|
|
137
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-QBMD7MNB.mjs";
|
|
138
129
|
export {
|
|
139
130
|
Await,
|
|
140
131
|
BrowserRouter,
|
|
@@ -152,8 +143,6 @@ export {
|
|
|
152
143
|
Action as NavigationType,
|
|
153
144
|
Outlet,
|
|
154
145
|
PrefetchPageLinks,
|
|
155
|
-
RSCHydratedRouter,
|
|
156
|
-
RSCStaticRouter,
|
|
157
146
|
Route,
|
|
158
147
|
Router,
|
|
159
148
|
RouterProvider,
|
|
@@ -175,9 +164,6 @@ export {
|
|
|
175
164
|
ServerMode as UNSAFE_ServerMode,
|
|
176
165
|
SingleFetchRedirectSymbol as UNSAFE_SingleFetchRedirectSymbol,
|
|
177
166
|
ViewTransitionContext as UNSAFE_ViewTransitionContext,
|
|
178
|
-
WithErrorBoundaryProps as UNSAFE_WithErrorBoundaryProps,
|
|
179
|
-
WithHydrateFallbackProps as UNSAFE_WithHydrateFallbackProps,
|
|
180
|
-
WithRouteComponentProps as UNSAFE_WithRouteComponentProps,
|
|
181
167
|
createBrowserHistory as UNSAFE_createBrowserHistory,
|
|
182
168
|
createClientRoutes as UNSAFE_createClientRoutes,
|
|
183
169
|
createClientRoutesWithHMRRevalidationOptOut as UNSAFE_createClientRoutesWithHMRRevalidationOptOut,
|
|
@@ -194,7 +180,6 @@ export {
|
|
|
194
180
|
useFogOFWarDiscovery as UNSAFE_useFogOFWarDiscovery,
|
|
195
181
|
useScrollRestoration as UNSAFE_useScrollRestoration,
|
|
196
182
|
createBrowserRouter,
|
|
197
|
-
createCallServer,
|
|
198
183
|
createCookie,
|
|
199
184
|
createCookieSessionStorage,
|
|
200
185
|
createHashRouter,
|
|
@@ -212,7 +197,6 @@ export {
|
|
|
212
197
|
createStaticRouter,
|
|
213
198
|
data,
|
|
214
199
|
generatePath,
|
|
215
|
-
getServerStream,
|
|
216
200
|
href,
|
|
217
201
|
isCookie,
|
|
218
202
|
isRouteErrorResponse,
|
|
@@ -225,7 +209,6 @@ export {
|
|
|
225
209
|
renderMatches,
|
|
226
210
|
replace,
|
|
227
211
|
resolvePath,
|
|
228
|
-
routeRSCServerRequest,
|
|
229
212
|
HistoryRouter as unstable_HistoryRouter,
|
|
230
213
|
unstable_RouterContextProvider,
|
|
231
214
|
unstable_createContext,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aF as LinkDescriptor, aC as MetaDescriptor, aU as ServerDataFrom, aV as ClientDataFrom, aW as Func, aX as unstable_MiddlewareNextFunction, E as Equal, u as unstable_RouterContextProvider, M as MiddlewareEnabled, aY as Pretty } from '../../route-data-
|
|
1
|
+
import { aF as LinkDescriptor, aC as MetaDescriptor, aU as ServerDataFrom, aV as ClientDataFrom, aW as Func, aX as unstable_MiddlewareNextFunction, E as Equal, u as unstable_RouterContextProvider, M as MiddlewareEnabled, aY as Pretty } from '../../route-data-C12CLHiN.mjs';
|
|
2
2
|
import { A as AppLoadContext } from '../../data-CQbyyGzl.mjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aF as LinkDescriptor, aC as MetaDescriptor, aU as ServerDataFrom, aV as ClientDataFrom, aW as Func, aX as unstable_MiddlewareNextFunction, E as Equal, u as unstable_RouterContextProvider, M as MiddlewareEnabled, aY as Pretty } from '../../route-data-
|
|
1
|
+
import { aF as LinkDescriptor, aC as MetaDescriptor, aU as ServerDataFrom, aV as ClientDataFrom, aW as Func, aX as unstable_MiddlewareNextFunction, E as Equal, u as unstable_RouterContextProvider, M as MiddlewareEnabled, aY as Pretty } from '../../route-data-C12CLHiN.js';
|
|
2
2
|
import { A as AppLoadContext } from '../../data-CQbyyGzl.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
|
|
@@ -912,11 +912,8 @@ interface Router {
|
|
|
912
912
|
* @param routeId The parent route id or a callback function accepting `patch`
|
|
913
913
|
* to perform batch patching
|
|
914
914
|
* @param children The additional children routes
|
|
915
|
-
* @param unstable_allowElementMutations Allow mutation or route elements on
|
|
916
|
-
* existing routes. Intended for RSC-usage
|
|
917
|
-
* only.
|
|
918
915
|
*/
|
|
919
|
-
patchRoutes(routeId: string | null, children: AgnosticRouteObject[]
|
|
916
|
+
patchRoutes(routeId: string | null, children: AgnosticRouteObject[]): void;
|
|
920
917
|
/**
|
|
921
918
|
* @private
|
|
922
919
|
* PRIVATE - DO NOT USE
|
|
@@ -925,13 +922,6 @@ interface Router {
|
|
|
925
922
|
* TODO: Replace this with granular route update APIs (addRoute, updateRoute, deleteRoute)
|
|
926
923
|
*/
|
|
927
924
|
_internalSetRoutes(routes: AgnosticRouteObject[]): void;
|
|
928
|
-
/**
|
|
929
|
-
* @private
|
|
930
|
-
* PRIVATE - DO NOT USE
|
|
931
|
-
*
|
|
932
|
-
* Cause subscribers to re-render. This is used to force a re-render.
|
|
933
|
-
*/
|
|
934
|
-
_internalSetStateDoNotUseOrYouWillBreakYourApp(state: Partial<RouterState>): void;
|
|
935
925
|
/**
|
|
936
926
|
* @private
|
|
937
927
|
* PRIVATE - DO NOT USE
|
|
@@ -912,11 +912,8 @@ interface Router {
|
|
|
912
912
|
* @param routeId The parent route id or a callback function accepting `patch`
|
|
913
913
|
* to perform batch patching
|
|
914
914
|
* @param children The additional children routes
|
|
915
|
-
* @param unstable_allowElementMutations Allow mutation or route elements on
|
|
916
|
-
* existing routes. Intended for RSC-usage
|
|
917
|
-
* only.
|
|
918
915
|
*/
|
|
919
|
-
patchRoutes(routeId: string | null, children: AgnosticRouteObject[]
|
|
916
|
+
patchRoutes(routeId: string | null, children: AgnosticRouteObject[]): void;
|
|
920
917
|
/**
|
|
921
918
|
* @private
|
|
922
919
|
* PRIVATE - DO NOT USE
|
|
@@ -925,13 +922,6 @@ interface Router {
|
|
|
925
922
|
* TODO: Replace this with granular route update APIs (addRoute, updateRoute, deleteRoute)
|
|
926
923
|
*/
|
|
927
924
|
_internalSetRoutes(routes: AgnosticRouteObject[]): void;
|
|
928
|
-
/**
|
|
929
|
-
* @private
|
|
930
|
-
* PRIVATE - DO NOT USE
|
|
931
|
-
*
|
|
932
|
-
* Cause subscribers to re-render. This is used to force a re-render.
|
|
933
|
-
*/
|
|
934
|
-
_internalSetStateDoNotUseOrYouWillBreakYourApp(state: Partial<RouterState>): void;
|
|
935
925
|
/**
|
|
936
926
|
* @private
|
|
937
927
|
* PRIVATE - DO NOT USE
|