react-router 0.0.0-experimental-3d7dcee → 0.0.0-experimental-426e5caec
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 +39 -2
- package/dist/development/{chunk-WJ2QP6HN.mjs → chunk-5HELVQDL.mjs} +179 -249
- package/dist/development/{chunk-S2WJDCRE.js → chunk-KCPD675I.js} +173 -243
- package/dist/{production/chunk-NIW37A6Q.js → development/chunk-KPVSYEOF.js} +135 -135
- package/dist/development/{chunk-QMIAKNRH.mjs → chunk-ZOYSFAC5.mjs} +56 -102
- package/dist/{production/context-DnZM5brG.d.mts → development/context-EwD9faH7.d.mts} +34 -33
- package/dist/development/dom-export.d.mts +3 -3
- package/dist/development/dom-export.d.ts +2 -2
- package/dist/development/dom-export.js +7 -7
- package/dist/development/dom-export.mjs +7 -7
- package/dist/development/{index-react-server-client-zr5eNeut.d.ts → index-react-server-client-CjrUmqhw.d.ts} +12 -12
- package/dist/{production/index-react-server-client-9rHNv-U3.d.mts → development/index-react-server-client-DDdP8ud2.d.mts} +13 -13
- package/dist/development/index-react-server-client.d.mts +3 -3
- 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 +76 -38
- package/dist/development/index-react-server.d.ts +76 -38
- package/dist/development/index-react-server.js +116 -112
- package/dist/development/index-react-server.mjs +114 -111
- package/dist/development/index.d.mts +53 -15
- package/dist/development/index.d.ts +51 -13
- package/dist/development/index.js +138 -184
- package/dist/development/index.mjs +7 -7
- package/dist/development/lib/types/internal.d.mts +11 -8
- package/dist/development/lib/types/internal.d.ts +10 -7
- package/dist/development/lib/types/internal.js +1 -1
- package/dist/development/lib/types/internal.mjs +1 -1
- package/dist/development/{route-data-C24VEkoE.d.mts → route-data-CAnRKu1U.d.mts} +14 -14
- package/dist/development/{routeModules-FY5IBiA_.d.ts → routeModules-CQWjJ9NX.d.ts} +46 -45
- package/dist/production/{chunk-2BFZ6QQU.mjs → chunk-5W7O3ZZ2.mjs} +179 -249
- package/dist/production/{chunk-OFC37UQM.mjs → chunk-DZS627TW.mjs} +56 -102
- package/dist/production/{chunk-7CWVKQLP.js → chunk-NLCKEFES.js} +173 -243
- package/dist/{development/chunk-LSB26UC6.js → production/chunk-TC5SCO6O.js} +135 -135
- package/dist/{development/context-DnZM5brG.d.mts → production/context-EwD9faH7.d.mts} +34 -33
- package/dist/production/dom-export.d.mts +3 -3
- package/dist/production/dom-export.d.ts +2 -2
- package/dist/production/dom-export.js +7 -7
- package/dist/production/dom-export.mjs +7 -7
- package/dist/production/{index-react-server-client-zr5eNeut.d.ts → index-react-server-client-CjrUmqhw.d.ts} +12 -12
- package/dist/{development/index-react-server-client-9rHNv-U3.d.mts → production/index-react-server-client-DDdP8ud2.d.mts} +13 -13
- package/dist/production/index-react-server-client.d.mts +3 -3
- 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 +76 -38
- package/dist/production/index-react-server.d.ts +76 -38
- package/dist/production/index-react-server.js +116 -112
- package/dist/production/index-react-server.mjs +114 -111
- package/dist/production/index.d.mts +53 -15
- package/dist/production/index.d.ts +51 -13
- package/dist/production/index.js +138 -184
- package/dist/production/index.mjs +7 -7
- package/dist/production/lib/types/internal.d.mts +11 -8
- package/dist/production/lib/types/internal.d.ts +10 -7
- package/dist/production/lib/types/internal.js +1 -1
- package/dist/production/lib/types/internal.mjs +1 -1
- package/dist/production/{route-data-C24VEkoE.d.mts → route-data-CAnRKu1U.d.mts} +14 -14
- package/dist/production/{routeModules-FY5IBiA_.d.ts → routeModules-CQWjJ9NX.d.ts} +46 -45
- package/package.json +1 -1
|
@@ -212,7 +212,7 @@ type UrlHistoryOptions = {
|
|
|
212
212
|
interface Future {
|
|
213
213
|
}
|
|
214
214
|
type MiddlewareEnabled = Future extends {
|
|
215
|
-
|
|
215
|
+
middleware: infer T extends boolean;
|
|
216
216
|
} ? T : false;
|
|
217
217
|
|
|
218
218
|
type MaybePromise<T> = T | Promise<T>;
|
|
@@ -272,14 +272,14 @@ type Submission = {
|
|
|
272
272
|
};
|
|
273
273
|
/**
|
|
274
274
|
* A context instance used as the key for the `get`/`set` methods of a
|
|
275
|
-
* {@link
|
|
275
|
+
* {@link RouterContextProvider}. Accepts an optional default
|
|
276
276
|
* value to be returned if no value has been set.
|
|
277
277
|
*/
|
|
278
|
-
interface
|
|
278
|
+
interface RouterContext<T = unknown> {
|
|
279
279
|
defaultValue?: T;
|
|
280
280
|
}
|
|
281
281
|
/**
|
|
282
|
-
* Creates a type-safe {@link
|
|
282
|
+
* Creates a type-safe {@link RouterContext} object that can be used to
|
|
283
283
|
* store and retrieve arbitrary values in [`action`](../../start/framework/route-module#action)s,
|
|
284
284
|
* [`loader`](../../start/framework/route-module#loader)s, and [middleware](../../how-to/middleware).
|
|
285
285
|
* Similar to React's [`createContext`](https://react.dev/reference/react/createContext),
|
|
@@ -290,11 +290,11 @@ interface unstable_RouterContext<T = unknown> {
|
|
|
290
290
|
* when no value has been set will throw an error.
|
|
291
291
|
*
|
|
292
292
|
* ```tsx filename=app/context.ts
|
|
293
|
-
* import {
|
|
293
|
+
* import { createContext } from "react-router";
|
|
294
294
|
*
|
|
295
295
|
* // Create a context for user data
|
|
296
296
|
* export const userContext =
|
|
297
|
-
*
|
|
297
|
+
* createContext<User | null>(null);
|
|
298
298
|
* ```
|
|
299
299
|
*
|
|
300
300
|
* ```tsx filename=app/middleware/auth.ts
|
|
@@ -332,23 +332,23 @@ interface unstable_RouterContext<T = unknown> {
|
|
|
332
332
|
* @mode data
|
|
333
333
|
* @param defaultValue An optional default value for the context. This value
|
|
334
334
|
* will be returned if no value has been set for this context.
|
|
335
|
-
* @returns A {@link
|
|
335
|
+
* @returns A {@link RouterContext} object that can be used with
|
|
336
336
|
* `context.get()` and `context.set()` in [`action`](../../start/framework/route-module#action)s,
|
|
337
337
|
* [`loader`](../../start/framework/route-module#loader)s, and [middleware](../../how-to/middleware).
|
|
338
338
|
*/
|
|
339
|
-
declare function
|
|
339
|
+
declare function createContext<T>(defaultValue?: T): RouterContext<T>;
|
|
340
340
|
/**
|
|
341
341
|
* Provides methods for writing/reading values in application context in a
|
|
342
342
|
* type-safe way. Primarily for usage with [middleware](../../how-to/middleware).
|
|
343
343
|
*
|
|
344
344
|
* @example
|
|
345
345
|
* import {
|
|
346
|
-
*
|
|
347
|
-
*
|
|
346
|
+
* createContext,
|
|
347
|
+
* RouterContextProvider
|
|
348
348
|
* } from "react-router";
|
|
349
349
|
*
|
|
350
|
-
* const userContext =
|
|
351
|
-
* const contextProvider = new
|
|
350
|
+
* const userContext = createContext<User | null>(null);
|
|
351
|
+
* const contextProvider = new RouterContextProvider();
|
|
352
352
|
* contextProvider.set(userContext, getUser());
|
|
353
353
|
* // ^ Type-safe
|
|
354
354
|
* const user = contextProvider.get(userContext);
|
|
@@ -359,13 +359,13 @@ declare function unstable_createContext<T>(defaultValue?: T): unstable_RouterCon
|
|
|
359
359
|
* @mode framework
|
|
360
360
|
* @mode data
|
|
361
361
|
*/
|
|
362
|
-
declare class
|
|
362
|
+
declare class RouterContextProvider {
|
|
363
363
|
#private;
|
|
364
364
|
/**
|
|
365
|
-
* Create a new `
|
|
365
|
+
* Create a new `RouterContextProvider` instance
|
|
366
366
|
* @param init An optional initial context map to populate the provider with
|
|
367
367
|
*/
|
|
368
|
-
constructor(init?: Map<
|
|
368
|
+
constructor(init?: Map<RouterContext, unknown>);
|
|
369
369
|
/**
|
|
370
370
|
* Access a value from the context. If no value has been set for the context,
|
|
371
371
|
* it will return the context's `defaultValue` if provided, or throw an error
|
|
@@ -374,7 +374,7 @@ declare class unstable_RouterContextProvider {
|
|
|
374
374
|
* @returns The value for the context, or the context's `defaultValue` if no
|
|
375
375
|
* value was set
|
|
376
376
|
*/
|
|
377
|
-
get<T>(context:
|
|
377
|
+
get<T>(context: RouterContext<T>): T;
|
|
378
378
|
/**
|
|
379
379
|
* Set a value for the context. If the context already has a value set, this
|
|
380
380
|
* will overwrite it.
|
|
@@ -383,9 +383,9 @@ declare class unstable_RouterContextProvider {
|
|
|
383
383
|
* @param value The value to set for the context
|
|
384
384
|
* @returns {void}
|
|
385
385
|
*/
|
|
386
|
-
set<C extends
|
|
386
|
+
set<C extends RouterContext>(context: C, value: C extends RouterContext<infer T> ? T : never): void;
|
|
387
387
|
}
|
|
388
|
-
type DefaultContext = MiddlewareEnabled extends true ? Readonly<
|
|
388
|
+
type DefaultContext = MiddlewareEnabled extends true ? Readonly<RouterContextProvider> : any;
|
|
389
389
|
/**
|
|
390
390
|
* @private
|
|
391
391
|
* Arguments passed to route loader/action functions. Same for now but we keep
|
|
@@ -420,7 +420,7 @@ interface DataFunctionArgs<Context> {
|
|
|
420
420
|
* Route middleware `next` function to call downstream handlers and then complete
|
|
421
421
|
* middlewares from the bottom-up
|
|
422
422
|
*/
|
|
423
|
-
interface
|
|
423
|
+
interface MiddlewareNextFunction<Result = unknown> {
|
|
424
424
|
(): Promise<Result>;
|
|
425
425
|
}
|
|
426
426
|
/**
|
|
@@ -429,7 +429,7 @@ interface unstable_MiddlewareNextFunction<Result = unknown> {
|
|
|
429
429
|
* a `next` function as the second parameter which will call downstream handlers
|
|
430
430
|
* and then complete middlewares from the bottom-up
|
|
431
431
|
*/
|
|
432
|
-
type
|
|
432
|
+
type MiddlewareFunction<Result = unknown> = (args: DataFunctionArgs<Readonly<RouterContextProvider>>, next: MiddlewareNextFunction<Result>) => MaybePromise<Result | void>;
|
|
433
433
|
/**
|
|
434
434
|
* Arguments passed to loader functions
|
|
435
435
|
*/
|
|
@@ -584,7 +584,7 @@ interface DataStrategyFunctionArgs<Context = DefaultContext> extends DataFunctio
|
|
|
584
584
|
* Matches for this route extended with Data strategy APIs
|
|
585
585
|
*/
|
|
586
586
|
matches: DataStrategyMatch[];
|
|
587
|
-
|
|
587
|
+
runClientMiddleware: (cb: DataStrategyFunction<Context>) => Promise<Record<string, DataStrategyResult>>;
|
|
588
588
|
/**
|
|
589
589
|
* The key of the fetcher we are calling `dataStrategy` for, otherwise `null`
|
|
590
590
|
* for navigational executions
|
|
@@ -629,7 +629,7 @@ type UnsupportedLazyRouteObjectKey = "lazy" | "caseSensitive" | "path" | "id" |
|
|
|
629
629
|
* onto the route. Either they're meaningful to the router, or they'll get
|
|
630
630
|
* ignored.
|
|
631
631
|
*/
|
|
632
|
-
type UnsupportedLazyRouteFunctionKey = UnsupportedLazyRouteObjectKey | "
|
|
632
|
+
type UnsupportedLazyRouteFunctionKey = UnsupportedLazyRouteObjectKey | "middleware";
|
|
633
633
|
/**
|
|
634
634
|
* lazy object to load route properties, which can add non-matching
|
|
635
635
|
* related properties to a route
|
|
@@ -652,7 +652,7 @@ type AgnosticBaseRouteObject = {
|
|
|
652
652
|
caseSensitive?: boolean;
|
|
653
653
|
path?: string;
|
|
654
654
|
id?: string;
|
|
655
|
-
|
|
655
|
+
middleware?: MiddlewareFunction[];
|
|
656
656
|
loader?: LoaderFunction | boolean;
|
|
657
657
|
action?: ActionFunction | boolean;
|
|
658
658
|
hasErrorBoundary?: boolean;
|
|
@@ -1299,7 +1299,6 @@ type HydrationState = Partial<Pick<RouterState, "loaderData" | "actionData" | "e
|
|
|
1299
1299
|
* Future flags to toggle new feature behavior
|
|
1300
1300
|
*/
|
|
1301
1301
|
interface FutureConfig {
|
|
1302
|
-
unstable_middleware: boolean;
|
|
1303
1302
|
}
|
|
1304
1303
|
/**
|
|
1305
1304
|
* Initialization options for createRouter
|
|
@@ -1308,7 +1307,7 @@ interface RouterInit {
|
|
|
1308
1307
|
routes: AgnosticRouteObject[];
|
|
1309
1308
|
history: History;
|
|
1310
1309
|
basename?: string;
|
|
1311
|
-
|
|
1310
|
+
getContext?: () => MaybePromise<RouterContextProvider>;
|
|
1312
1311
|
mapRouteProperties?: MapRoutePropertiesFunction;
|
|
1313
1312
|
future?: Partial<FutureConfig>;
|
|
1314
1313
|
hydrationRouteProperties?: string[];
|
|
@@ -1343,13 +1342,15 @@ interface StaticHandler {
|
|
|
1343
1342
|
skipLoaderErrorBubbling?: boolean;
|
|
1344
1343
|
skipRevalidation?: boolean;
|
|
1345
1344
|
dataStrategy?: DataStrategyFunction<unknown>;
|
|
1346
|
-
|
|
1345
|
+
generateMiddlewareResponse?: (query: (r: Request, args?: {
|
|
1346
|
+
filterMatchesToLoad?: (match: AgnosticDataRouteMatch) => boolean;
|
|
1347
|
+
}) => Promise<StaticHandlerContext | Response>) => MaybePromise<Response>;
|
|
1347
1348
|
}): Promise<StaticHandlerContext | Response>;
|
|
1348
1349
|
queryRoute(request: Request, opts?: {
|
|
1349
1350
|
routeId?: string;
|
|
1350
1351
|
requestContext?: unknown;
|
|
1351
1352
|
dataStrategy?: DataStrategyFunction<unknown>;
|
|
1352
|
-
|
|
1353
|
+
generateMiddlewareResponse?: (queryRoute: (r: Request) => Promise<Response>) => MaybePromise<Response>;
|
|
1353
1354
|
}): Promise<any>;
|
|
1354
1355
|
}
|
|
1355
1356
|
type ViewTransitionOpts = {
|
|
@@ -1596,13 +1597,13 @@ interface MemoryRouterOpts {
|
|
|
1596
1597
|
*/
|
|
1597
1598
|
basename?: string;
|
|
1598
1599
|
/**
|
|
1599
|
-
* A function that returns an {@link
|
|
1600
|
+
* A function that returns an {@link RouterContextProvider} instance
|
|
1600
1601
|
* which is provided as the `context` argument to client [`action`](../../start/data/route-object#action)s,
|
|
1601
1602
|
* [`loader`](../../start/data/route-object#loader)s and [middleware](../../how-to/middleware).
|
|
1602
1603
|
* This function is called to generate a fresh `context` instance on each
|
|
1603
1604
|
* navigation or fetcher call.
|
|
1604
1605
|
*/
|
|
1605
|
-
|
|
1606
|
+
getContext?: RouterInit["getContext"];
|
|
1606
1607
|
/**
|
|
1607
1608
|
* Future flags to enable for the router.
|
|
1608
1609
|
*/
|
|
@@ -1643,7 +1644,7 @@ interface MemoryRouterOpts {
|
|
|
1643
1644
|
* @param {MemoryRouterOpts.basename} opts.basename n/a
|
|
1644
1645
|
* @param {MemoryRouterOpts.dataStrategy} opts.dataStrategy n/a
|
|
1645
1646
|
* @param {MemoryRouterOpts.future} opts.future n/a
|
|
1646
|
-
* @param {MemoryRouterOpts.
|
|
1647
|
+
* @param {MemoryRouterOpts.getContext} opts.getContext n/a
|
|
1647
1648
|
* @param {MemoryRouterOpts.hydrationData} opts.hydrationData n/a
|
|
1648
1649
|
* @param {MemoryRouterOpts.initialEntries} opts.initialEntries n/a
|
|
1649
1650
|
* @param {MemoryRouterOpts.initialIndex} opts.initialIndex n/a
|
|
@@ -2423,7 +2424,7 @@ interface IndexRouteObject {
|
|
|
2423
2424
|
caseSensitive?: AgnosticIndexRouteObject["caseSensitive"];
|
|
2424
2425
|
path?: AgnosticIndexRouteObject["path"];
|
|
2425
2426
|
id?: AgnosticIndexRouteObject["id"];
|
|
2426
|
-
|
|
2427
|
+
middleware?: AgnosticIndexRouteObject["middleware"];
|
|
2427
2428
|
loader?: AgnosticIndexRouteObject["loader"];
|
|
2428
2429
|
action?: AgnosticIndexRouteObject["action"];
|
|
2429
2430
|
hasErrorBoundary?: AgnosticIndexRouteObject["hasErrorBoundary"];
|
|
@@ -2443,7 +2444,7 @@ interface NonIndexRouteObject {
|
|
|
2443
2444
|
caseSensitive?: AgnosticNonIndexRouteObject["caseSensitive"];
|
|
2444
2445
|
path?: AgnosticNonIndexRouteObject["path"];
|
|
2445
2446
|
id?: AgnosticNonIndexRouteObject["id"];
|
|
2446
|
-
|
|
2447
|
+
middleware?: AgnosticNonIndexRouteObject["middleware"];
|
|
2447
2448
|
loader?: AgnosticNonIndexRouteObject["loader"];
|
|
2448
2449
|
action?: AgnosticNonIndexRouteObject["action"];
|
|
2449
2450
|
hasErrorBoundary?: AgnosticNonIndexRouteObject["hasErrorBoundary"];
|
|
@@ -2537,4 +2538,4 @@ interface RouteContextObject {
|
|
|
2537
2538
|
}
|
|
2538
2539
|
declare const RouteContext: React.Context<RouteContextObject>;
|
|
2539
2540
|
|
|
2540
|
-
export { type
|
|
2541
|
+
export { type DataStrategyMatch as $, type ActionFunctionArgs as A, type BlockerFunction as B, type PatchRoutesOnNavigationFunction as C, type DataStrategyResult as D, type ErrorBoundaryType as E, type DataRouteObject as F, type StaticHandler as G, type HydrationState as H, type InitialEntry as I, type GetScrollPositionFunction as J, type GetScrollRestorationKeyFunction as K, type Location as L, type MiddlewareNextFunction as M, type NavigateOptions as N, type StaticHandlerContext as O, type Params as P, type Fetcher as Q, type RouterProviderProps as R, type ShouldRevalidateFunction as S, type To as T, type UIMatch as U, type NavigationStates as V, type RouterSubscriber as W, type RouterNavigateOptions as X, type RouterFetchOptions as Y, type RevalidationState as Z, type DataStrategyFunctionArgs as _, type RouterInit as a, mapRouteProperties as a$, type ErrorResponse as a0, type FormEncType as a1, type FormMethod as a2, type HTMLFormMethod as a3, type LazyRouteFunction as a4, type PathParam as a5, type RedirectFunction as a6, type RouterContext as a7, type ShouldRevalidateFunctionArgs as a8, createContext as a9, type RouterProps as aA, type RoutesProps as aB, Await as aC, MemoryRouter as aD, Navigate as aE, Outlet as aF, Route as aG, Router as aH, RouterProvider as aI, Routes as aJ, createMemoryRouter as aK, createRoutesFromChildren as aL, createRoutesFromElements as aM, renderMatches as aN, type Future as aO, createBrowserHistory as aP, invariant as aQ, createRouter as aR, ErrorResponseImpl as aS, DataRouterContext as aT, DataRouterStateContext as aU, FetchersContext as aV, LocationContext as aW, NavigationContext as aX, RouteContext as aY, ViewTransitionContext as aZ, hydrationRouteProperties as a_, createPath as aa, parsePath as ab, IDLE_NAVIGATION as ac, IDLE_FETCHER as ad, IDLE_BLOCKER as ae, data as af, generatePath as ag, isRouteErrorResponse as ah, matchPath as ai, matchRoutes as aj, redirect as ak, redirectDocument as al, replace as am, resolvePath as an, type Navigator as ao, type PatchRoutesOnNavigationFunctionArgs as ap, type RouteMatch as aq, type AwaitProps as ar, type IndexRouteProps as as, type LayoutRouteProps as at, type MemoryRouterOpts as au, type MemoryRouterProps as av, type NavigateProps as aw, type OutletProps as ax, type PathRouteProps as ay, type RouteProps as az, type LoaderFunctionArgs as b, WithComponentProps as b0, withComponentProps as b1, WithHydrateFallbackProps as b2, withHydrateFallbackProps as b3, WithErrorBoundaryProps as b4, withErrorBoundaryProps as b5, type RouteManifest as b6, type History as b7, type FutureConfig as b8, type CreateStaticHandlerOptions as b9, type ActionFunction as c, type LoaderFunction as d, type DataRouteMatch as e, type MiddlewareFunction as f, RouterContextProvider as g, DataWithResponseInit as h, type MiddlewareEnabled as i, type Router$1 as j, type DataStrategyFunction as k, type Blocker as l, type RelativeRoutingType as m, type ParamParseKey as n, type Path as o, type PathPattern as p, type PathMatch as q, type Navigation as r, Action as s, type RouteObject as t, type unstable_ClientOnErrorFunction as u, type IndexRouteObject as v, type RouteComponentType as w, type HydrateFallbackType as x, type NonIndexRouteObject as y, type RouterState as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { R as RouterProviderProps$1, a as RouterInit, u as unstable_ClientOnErrorFunction } from './context-
|
|
2
|
+
import { R as RouterProviderProps$1, a as RouterInit, u as unstable_ClientOnErrorFunction } from './context-EwD9faH7.mjs';
|
|
3
3
|
import './browser-z32v5KVN.mjs';
|
|
4
4
|
|
|
5
5
|
type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
|
|
@@ -17,7 +17,7 @@ interface HydratedRouterProps {
|
|
|
17
17
|
* [`clientAction`](../../start/framework/route-module#clientAction)/[`clientLoader`](../../start/framework/route-module#clientLoader)
|
|
18
18
|
* functions
|
|
19
19
|
*/
|
|
20
|
-
|
|
20
|
+
getContext?: RouterInit["getContext"];
|
|
21
21
|
/**
|
|
22
22
|
* An error handler function that will be called for any loader/action/render
|
|
23
23
|
* errors that are encountered in your application. This is useful for
|
|
@@ -45,7 +45,7 @@ interface HydratedRouterProps {
|
|
|
45
45
|
* @category Framework Routers
|
|
46
46
|
* @mode framework
|
|
47
47
|
* @param props Props
|
|
48
|
-
* @param {dom.HydratedRouterProps.
|
|
48
|
+
* @param {dom.HydratedRouterProps.getContext} props.getContext n/a
|
|
49
49
|
* @param {dom.HydratedRouterProps.unstable_onError} props.unstable_onError n/a
|
|
50
50
|
* @returns A React element that represents the hydrated application.
|
|
51
51
|
*/
|
|
@@ -16,7 +16,7 @@ interface HydratedRouterProps {
|
|
|
16
16
|
* [`clientAction`](../../start/framework/route-module#clientAction)/[`clientLoader`](../../start/framework/route-module#clientLoader)
|
|
17
17
|
* functions
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
getContext?: RouterInit["getContext"];
|
|
20
20
|
/**
|
|
21
21
|
* An error handler function that will be called for any loader/action/render
|
|
22
22
|
* errors that are encountered in your application. This is useful for
|
|
@@ -44,7 +44,7 @@ interface HydratedRouterProps {
|
|
|
44
44
|
* @category Framework Routers
|
|
45
45
|
* @mode framework
|
|
46
46
|
* @param props Props
|
|
47
|
-
* @param {dom.HydratedRouterProps.
|
|
47
|
+
* @param {dom.HydratedRouterProps.getContext} props.getContext n/a
|
|
48
48
|
* @param {dom.HydratedRouterProps.unstable_onError} props.unstable_onError n/a
|
|
49
49
|
* @returns A React element that represents the hydrated application.
|
|
50
50
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-426e5caec
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"use client";
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkNLCKEFESjs = require('./chunk-NLCKEFES.js');
|
|
15
15
|
|
|
16
16
|
// lib/dom-export/dom-router-provider.tsx
|
|
17
17
|
var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react);
|
|
@@ -67,7 +67,7 @@ function initSsrInfo() {
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
function createHydratedRouter({
|
|
70
|
-
|
|
70
|
+
getContext
|
|
71
71
|
}) {
|
|
72
72
|
initSsrInfo();
|
|
73
73
|
if (!ssrInfo) {
|
|
@@ -131,12 +131,12 @@ function createHydratedRouter({
|
|
|
131
131
|
routes,
|
|
132
132
|
history: _reactrouter.UNSAFE_createBrowserHistory.call(void 0, ),
|
|
133
133
|
basename: ssrInfo.context.basename,
|
|
134
|
-
|
|
134
|
+
getContext,
|
|
135
135
|
hydrationData,
|
|
136
136
|
hydrationRouteProperties: _reactrouter.UNSAFE_hydrationRouteProperties,
|
|
137
137
|
mapRouteProperties: _reactrouter.UNSAFE_mapRouteProperties,
|
|
138
138
|
future: {
|
|
139
|
-
|
|
139
|
+
middleware: ssrInfo.context.future.v8_middleware
|
|
140
140
|
},
|
|
141
141
|
dataStrategy: _reactrouter.UNSAFE_getTurboStreamSingleFetchDataStrategy.call(void 0,
|
|
142
142
|
() => router2,
|
|
@@ -167,7 +167,7 @@ function createHydratedRouter({
|
|
|
167
167
|
function HydratedRouter(props) {
|
|
168
168
|
if (!router) {
|
|
169
169
|
router = createHydratedRouter({
|
|
170
|
-
|
|
170
|
+
getContext: props.getContext
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
173
|
let [criticalCss, setCriticalCss] = React2.useState(
|
|
@@ -180,7 +180,7 @@ function HydratedRouter(props) {
|
|
|
180
180
|
}, []);
|
|
181
181
|
React2.useEffect(() => {
|
|
182
182
|
if (process.env.NODE_ENV === "development" && criticalCss === void 0) {
|
|
183
|
-
document.querySelectorAll(`[${
|
|
183
|
+
document.querySelectorAll(`[${_chunkNLCKEFESjs.CRITICAL_CSS_DATA_ATTRIBUTE}]`).forEach((element) => element.remove());
|
|
184
184
|
}
|
|
185
185
|
}, [criticalCss]);
|
|
186
186
|
let [location, setLocation] = React2.useState(router.state.location);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-426e5caec
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
import {
|
|
13
13
|
deserializeErrors,
|
|
14
14
|
getHydrationData
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DZS627TW.mjs";
|
|
16
16
|
import {
|
|
17
17
|
CRITICAL_CSS_DATA_ATTRIBUTE,
|
|
18
18
|
FrameworkContext,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
invariant,
|
|
30
30
|
mapRouteProperties,
|
|
31
31
|
useFogOFWarDiscovery
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-5W7O3ZZ2.mjs";
|
|
33
33
|
|
|
34
34
|
// lib/dom-export/dom-router-provider.tsx
|
|
35
35
|
import * as React from "react";
|
|
@@ -67,7 +67,7 @@ function initSsrInfo() {
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
function createHydratedRouter({
|
|
70
|
-
|
|
70
|
+
getContext
|
|
71
71
|
}) {
|
|
72
72
|
initSsrInfo();
|
|
73
73
|
if (!ssrInfo) {
|
|
@@ -131,12 +131,12 @@ function createHydratedRouter({
|
|
|
131
131
|
routes,
|
|
132
132
|
history: createBrowserHistory(),
|
|
133
133
|
basename: ssrInfo.context.basename,
|
|
134
|
-
|
|
134
|
+
getContext,
|
|
135
135
|
hydrationData,
|
|
136
136
|
hydrationRouteProperties,
|
|
137
137
|
mapRouteProperties,
|
|
138
138
|
future: {
|
|
139
|
-
|
|
139
|
+
middleware: ssrInfo.context.future.v8_middleware
|
|
140
140
|
},
|
|
141
141
|
dataStrategy: getTurboStreamSingleFetchDataStrategy(
|
|
142
142
|
() => router2,
|
|
@@ -167,7 +167,7 @@ function createHydratedRouter({
|
|
|
167
167
|
function HydratedRouter(props) {
|
|
168
168
|
if (!router) {
|
|
169
169
|
router = createHydratedRouter({
|
|
170
|
-
|
|
170
|
+
getContext: props.getContext
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
173
|
let [criticalCss, setCriticalCss] = React2.useState(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ai as HTMLFormMethod, ag as FormEncType, k as RelativeRoutingType, bx as RouteManifest, by as ServerRouteModule, O as MiddlewareEnabled, K as RouterContextProvider, J as AppLoadContext, ak as LoaderFunctionArgs, ab as ActionFunctionArgs, f as RouteModules, H as HydrationState, a0 as DataRouteObject, W as ClientLoaderFunction, a4 as StaticHandlerContext, ba as PageLinkDescriptor, T as To, bz as History, a3 as GetScrollRestorationKeyFunction, Z as RouterInit, bA as FutureConfig$1, g as DataStrategyFunction, $ as PatchRoutesOnNavigationFunction, h as NavigateOptions, a5 as Fetcher, r as RouteObject, e as Router, j as SerializeFrom, B as BlockerFunction, a as Location, bB as CreateStaticHandlerOptions$1, a1 as StaticHandler } from './routeModules-CQWjJ9NX.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
|
|
4
4
|
type ParamKeyValuePair = [string, string];
|
|
@@ -142,7 +142,7 @@ interface ServerBuild {
|
|
|
142
142
|
};
|
|
143
143
|
}
|
|
144
144
|
interface HandleDocumentRequestFunction {
|
|
145
|
-
(request: Request, responseStatusCode: number, responseHeaders: Headers, context: EntryContext, loadContext: MiddlewareEnabled extends true ?
|
|
145
|
+
(request: Request, responseStatusCode: number, responseHeaders: Headers, context: EntryContext, loadContext: MiddlewareEnabled extends true ? RouterContextProvider : AppLoadContext): Promise<Response> | Response;
|
|
146
146
|
}
|
|
147
147
|
interface HandleDataRequestFunction {
|
|
148
148
|
(response: Response, args: LoaderFunctionArgs | ActionFunctionArgs): Promise<Response> | Response;
|
|
@@ -219,7 +219,7 @@ interface EntryContext extends FrameworkContextObject {
|
|
|
219
219
|
}
|
|
220
220
|
interface FutureConfig {
|
|
221
221
|
unstable_subResourceIntegrity: boolean;
|
|
222
|
-
|
|
222
|
+
v8_middleware: boolean;
|
|
223
223
|
}
|
|
224
224
|
type CriticalCss = string | {
|
|
225
225
|
rel: "stylesheet";
|
|
@@ -424,7 +424,7 @@ interface DOMRouterOpts {
|
|
|
424
424
|
*/
|
|
425
425
|
basename?: string;
|
|
426
426
|
/**
|
|
427
|
-
* A function that returns an {@link
|
|
427
|
+
* A function that returns an {@link RouterContextProvider} instance
|
|
428
428
|
* which is provided as the `context` argument to client [`action`](../../start/data/route-object#action)s,
|
|
429
429
|
* [`loader`](../../start/data/route-object#loader)s and [middleware](../../how-to/middleware).
|
|
430
430
|
* This function is called to generate a fresh `context` instance on each
|
|
@@ -432,22 +432,22 @@ interface DOMRouterOpts {
|
|
|
432
432
|
*
|
|
433
433
|
* ```tsx
|
|
434
434
|
* import {
|
|
435
|
-
*
|
|
436
|
-
*
|
|
435
|
+
* createContext,
|
|
436
|
+
* RouterContextProvider,
|
|
437
437
|
* } from "react-router";
|
|
438
438
|
*
|
|
439
|
-
* const apiClientContext =
|
|
439
|
+
* const apiClientContext = createContext<APIClient>();
|
|
440
440
|
*
|
|
441
441
|
* function createBrowserRouter(routes, {
|
|
442
|
-
*
|
|
443
|
-
* let context = new
|
|
442
|
+
* getContext() {
|
|
443
|
+
* let context = new RouterContextProvider();
|
|
444
444
|
* context.set(apiClientContext, getApiClient());
|
|
445
445
|
* return context;
|
|
446
446
|
* }
|
|
447
447
|
* })
|
|
448
448
|
* ```
|
|
449
449
|
*/
|
|
450
|
-
|
|
450
|
+
getContext?: RouterInit["getContext"];
|
|
451
451
|
/**
|
|
452
452
|
* Future flags to enable for the router.
|
|
453
453
|
*/
|
|
@@ -1024,7 +1024,7 @@ interface DOMRouterOpts {
|
|
|
1024
1024
|
* @param {DOMRouterOpts.basename} opts.basename n/a
|
|
1025
1025
|
* @param {DOMRouterOpts.dataStrategy} opts.dataStrategy n/a
|
|
1026
1026
|
* @param {DOMRouterOpts.future} opts.future n/a
|
|
1027
|
-
* @param {DOMRouterOpts.
|
|
1027
|
+
* @param {DOMRouterOpts.getContext} opts.getContext n/a
|
|
1028
1028
|
* @param {DOMRouterOpts.hydrationData} opts.hydrationData n/a
|
|
1029
1029
|
* @param {DOMRouterOpts.patchRoutesOnNavigation} opts.patchRoutesOnNavigation n/a
|
|
1030
1030
|
* @param {DOMRouterOpts.window} opts.window n/a
|
|
@@ -1042,7 +1042,7 @@ declare function createBrowserRouter(routes: RouteObject[], opts?: DOMRouterOpts
|
|
|
1042
1042
|
* @param opts Options
|
|
1043
1043
|
* @param {DOMRouterOpts.basename} opts.basename n/a
|
|
1044
1044
|
* @param {DOMRouterOpts.future} opts.future n/a
|
|
1045
|
-
* @param {DOMRouterOpts.
|
|
1045
|
+
* @param {DOMRouterOpts.getContext} opts.getContext n/a
|
|
1046
1046
|
* @param {DOMRouterOpts.hydrationData} opts.hydrationData n/a
|
|
1047
1047
|
* @param {DOMRouterOpts.dataStrategy} opts.dataStrategy n/a
|
|
1048
1048
|
* @param {DOMRouterOpts.patchRoutesOnNavigation} opts.patchRoutesOnNavigation n/a
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b6 as RouteManifest,
|
|
1
|
+
import { b6 as RouteManifest, i as MiddlewareEnabled, g as RouterContextProvider, b as LoaderFunctionArgs, A as ActionFunctionArgs, O as StaticHandlerContext, H as HydrationState, F as DataRouteObject, a3 as HTMLFormMethod, a1 as FormEncType, m as RelativeRoutingType, T as To, b7 as History, K as GetScrollRestorationKeyFunction, a as RouterInit, b8 as FutureConfig$1, k as DataStrategyFunction, C as PatchRoutesOnNavigationFunction, N as NavigateOptions, Q as Fetcher, t as RouteObject, j as Router, B as BlockerFunction, L as Location, b9 as CreateStaticHandlerOptions$1, G as StaticHandler } from './context-EwD9faH7.mjs';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { o as ServerRouteModule, A as AppLoadContext, c as RouteModules, h as ClientLoaderFunction, m as PageLinkDescriptor, d as SerializeFrom } from './route-data-
|
|
3
|
+
import { o as ServerRouteModule, A as AppLoadContext, c as RouteModules, h as ClientLoaderFunction, m as PageLinkDescriptor, d as SerializeFrom } from './route-data-CAnRKu1U.mjs';
|
|
4
4
|
|
|
5
5
|
type ServerRouteManifest = RouteManifest<Omit<ServerRoute, "children">>;
|
|
6
6
|
interface ServerRoute extends Route {
|
|
@@ -37,7 +37,7 @@ interface ServerBuild {
|
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
interface HandleDocumentRequestFunction {
|
|
40
|
-
(request: Request, responseStatusCode: number, responseHeaders: Headers, context: EntryContext, loadContext: MiddlewareEnabled extends true ?
|
|
40
|
+
(request: Request, responseStatusCode: number, responseHeaders: Headers, context: EntryContext, loadContext: MiddlewareEnabled extends true ? RouterContextProvider : AppLoadContext): Promise<Response> | Response;
|
|
41
41
|
}
|
|
42
42
|
interface HandleDataRequestFunction {
|
|
43
43
|
(response: Response, args: LoaderFunctionArgs | ActionFunctionArgs): Promise<Response> | Response;
|
|
@@ -87,7 +87,7 @@ interface EntryContext extends FrameworkContextObject {
|
|
|
87
87
|
}
|
|
88
88
|
interface FutureConfig {
|
|
89
89
|
unstable_subResourceIntegrity: boolean;
|
|
90
|
-
|
|
90
|
+
v8_middleware: boolean;
|
|
91
91
|
}
|
|
92
92
|
type CriticalCss = string | {
|
|
93
93
|
rel: "stylesheet";
|
|
@@ -425,7 +425,7 @@ interface DOMRouterOpts {
|
|
|
425
425
|
*/
|
|
426
426
|
basename?: string;
|
|
427
427
|
/**
|
|
428
|
-
* A function that returns an {@link
|
|
428
|
+
* A function that returns an {@link RouterContextProvider} instance
|
|
429
429
|
* which is provided as the `context` argument to client [`action`](../../start/data/route-object#action)s,
|
|
430
430
|
* [`loader`](../../start/data/route-object#loader)s and [middleware](../../how-to/middleware).
|
|
431
431
|
* This function is called to generate a fresh `context` instance on each
|
|
@@ -433,22 +433,22 @@ interface DOMRouterOpts {
|
|
|
433
433
|
*
|
|
434
434
|
* ```tsx
|
|
435
435
|
* import {
|
|
436
|
-
*
|
|
437
|
-
*
|
|
436
|
+
* createContext,
|
|
437
|
+
* RouterContextProvider,
|
|
438
438
|
* } from "react-router";
|
|
439
439
|
*
|
|
440
|
-
* const apiClientContext =
|
|
440
|
+
* const apiClientContext = createContext<APIClient>();
|
|
441
441
|
*
|
|
442
442
|
* function createBrowserRouter(routes, {
|
|
443
|
-
*
|
|
444
|
-
* let context = new
|
|
443
|
+
* getContext() {
|
|
444
|
+
* let context = new RouterContextProvider();
|
|
445
445
|
* context.set(apiClientContext, getApiClient());
|
|
446
446
|
* return context;
|
|
447
447
|
* }
|
|
448
448
|
* })
|
|
449
449
|
* ```
|
|
450
450
|
*/
|
|
451
|
-
|
|
451
|
+
getContext?: RouterInit["getContext"];
|
|
452
452
|
/**
|
|
453
453
|
* Future flags to enable for the router.
|
|
454
454
|
*/
|
|
@@ -1025,7 +1025,7 @@ interface DOMRouterOpts {
|
|
|
1025
1025
|
* @param {DOMRouterOpts.basename} opts.basename n/a
|
|
1026
1026
|
* @param {DOMRouterOpts.dataStrategy} opts.dataStrategy n/a
|
|
1027
1027
|
* @param {DOMRouterOpts.future} opts.future n/a
|
|
1028
|
-
* @param {DOMRouterOpts.
|
|
1028
|
+
* @param {DOMRouterOpts.getContext} opts.getContext n/a
|
|
1029
1029
|
* @param {DOMRouterOpts.hydrationData} opts.hydrationData n/a
|
|
1030
1030
|
* @param {DOMRouterOpts.patchRoutesOnNavigation} opts.patchRoutesOnNavigation n/a
|
|
1031
1031
|
* @param {DOMRouterOpts.window} opts.window n/a
|
|
@@ -1043,7 +1043,7 @@ declare function createBrowserRouter(routes: RouteObject[], opts?: DOMRouterOpts
|
|
|
1043
1043
|
* @param opts Options
|
|
1044
1044
|
* @param {DOMRouterOpts.basename} opts.basename n/a
|
|
1045
1045
|
* @param {DOMRouterOpts.future} opts.future n/a
|
|
1046
|
-
* @param {DOMRouterOpts.
|
|
1046
|
+
* @param {DOMRouterOpts.getContext} opts.getContext n/a
|
|
1047
1047
|
* @param {DOMRouterOpts.hydrationData} opts.hydrationData n/a
|
|
1048
1048
|
* @param {DOMRouterOpts.dataStrategy} opts.dataStrategy n/a
|
|
1049
1049
|
* @param {DOMRouterOpts.patchRoutesOnNavigation} opts.patchRoutesOnNavigation n/a
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { aC as Await, aD as MemoryRouter, aE as Navigate, aF as Outlet, aG as Route, aH as Router, aI as RouterProvider, aJ as Routes, b0 as UNSAFE_WithComponentProps, b4 as UNSAFE_WithErrorBoundaryProps, b2 as UNSAFE_WithHydrateFallbackProps } from './context-
|
|
2
|
-
export { l as BrowserRouter, q as Form, m as HashRouter, n as Link, X as Links, W as Meta, p as NavLink, r as ScrollRestoration, T as StaticRouter, V as StaticRouterProvider, o as unstable_HistoryRouter } from './index-react-server-client-
|
|
1
|
+
export { aC as Await, aD as MemoryRouter, aE as Navigate, aF as Outlet, aG as Route, aH as Router, aI as RouterProvider, aJ as Routes, b0 as UNSAFE_WithComponentProps, b4 as UNSAFE_WithErrorBoundaryProps, b2 as UNSAFE_WithHydrateFallbackProps } from './context-EwD9faH7.mjs';
|
|
2
|
+
export { l as BrowserRouter, q as Form, m as HashRouter, n as Link, X as Links, W as Meta, p as NavLink, r as ScrollRestoration, T as StaticRouter, V as StaticRouterProvider, o as unstable_HistoryRouter } from './index-react-server-client-DDdP8ud2.mjs';
|
|
3
3
|
import 'react';
|
|
4
|
-
import './route-data-
|
|
4
|
+
import './route-data-CAnRKu1U.mjs';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { l as BrowserRouter, q as Form, m as HashRouter, n as Link, X as Links, W as Meta, p as NavLink, r as ScrollRestoration, T as StaticRouter, V as StaticRouterProvider, o as unstable_HistoryRouter } from './index-react-server-client-
|
|
1
|
+
export { aW as Await, aX as MemoryRouter, aY as Navigate, aZ as Outlet, a_ as Route, a$ as Router, b0 as RouterProvider, b1 as Routes, br as UNSAFE_WithComponentProps, bv as UNSAFE_WithErrorBoundaryProps, bt as UNSAFE_WithHydrateFallbackProps } from './routeModules-CQWjJ9NX.js';
|
|
2
|
+
export { l as BrowserRouter, q as Form, m as HashRouter, n as Link, X as Links, W as Meta, p as NavLink, r as ScrollRestoration, T as StaticRouter, V as StaticRouterProvider, o as unstable_HistoryRouter } from './index-react-server-client-CjrUmqhw.js';
|
|
3
3
|
import 'react';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-426e5caec
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var _chunkTC5SCO6Ojs = require('./chunk-TC5SCO6O.js');
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var _chunkNLCKEFESjs = require('./chunk-NLCKEFES.js');
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
@@ -58,4 +58,4 @@ var _chunk7CWVKQLPjs = require('./chunk-7CWVKQLP.js');
|
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
exports.Await =
|
|
61
|
+
exports.Await = _chunkTC5SCO6Ojs.Await; exports.BrowserRouter = _chunkTC5SCO6Ojs.BrowserRouter; exports.Form = _chunkTC5SCO6Ojs.Form; exports.HashRouter = _chunkTC5SCO6Ojs.HashRouter; exports.Link = _chunkTC5SCO6Ojs.Link; exports.Links = _chunkNLCKEFESjs.Links; exports.MemoryRouter = _chunkTC5SCO6Ojs.MemoryRouter; exports.Meta = _chunkNLCKEFESjs.Meta; exports.NavLink = _chunkTC5SCO6Ojs.NavLink; exports.Navigate = _chunkTC5SCO6Ojs.Navigate; exports.Outlet = _chunkTC5SCO6Ojs.Outlet; exports.Route = _chunkTC5SCO6Ojs.Route; exports.Router = _chunkTC5SCO6Ojs.Router; exports.RouterProvider = _chunkTC5SCO6Ojs.RouterProvider; exports.Routes = _chunkTC5SCO6Ojs.Routes; exports.ScrollRestoration = _chunkTC5SCO6Ojs.ScrollRestoration; exports.StaticRouter = _chunkTC5SCO6Ojs.StaticRouter; exports.StaticRouterProvider = _chunkTC5SCO6Ojs.StaticRouterProvider; exports.UNSAFE_WithComponentProps = _chunkTC5SCO6Ojs.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkTC5SCO6Ojs.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkTC5SCO6Ojs.WithHydrateFallbackProps; exports.unstable_HistoryRouter = _chunkTC5SCO6Ojs.HistoryRouter;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-426e5caec
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
WithComponentProps,
|
|
33
33
|
WithErrorBoundaryProps,
|
|
34
34
|
WithHydrateFallbackProps
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-5W7O3ZZ2.mjs";
|
|
36
36
|
export {
|
|
37
37
|
Await,
|
|
38
38
|
BrowserRouter,
|