react-router 0.0.0-experimental-a65d6f5 → 0.0.0-experimental-e0b6ce9
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-CWSJ6RYI.mjs → chunk-4FI4BC6Y.mjs} +2 -2
- package/dist/development/{chunk-47MIYFLC.mjs → chunk-F6CT5MEB.mjs} +173 -169
- package/dist/development/{chunk-QOFB7XZ5.js → chunk-INO4IHBF.js} +172 -168
- package/dist/{production/chunk-4SPSFXAZ.js → development/chunk-ITZFCV4J.js} +134 -134
- package/dist/development/dom-export.d.mts +1 -1
- package/dist/development/dom-export.d.ts +1 -1
- package/dist/development/dom-export.js +3 -3
- package/dist/development/dom-export.mjs +3 -3
- package/dist/{production/index-react-server-client-lf74v6ET.d.mts → development/index-react-server-client-CYIi6gi0.d.mts} +2 -2
- package/dist/development/{index-react-server-client-Iw2PMej2.d.ts → index-react-server-client-ChBGplLn.d.ts} +2 -2
- package/dist/development/index-react-server-client.d.mts +3 -3
- package/dist/development/index-react-server-client.d.ts +3 -3
- 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 +23 -39
- package/dist/development/index-react-server.d.ts +23 -39
- package/dist/development/index-react-server.js +101 -95
- package/dist/development/index-react-server.mjs +101 -95
- package/dist/development/index.d.mts +6 -6
- package/dist/development/index.d.ts +6 -6
- package/dist/development/index.js +98 -98
- package/dist/development/index.mjs +3 -3
- package/dist/development/{instrumentation-BWRz1MRU.d.ts → instrumentation-BGrNA7uj.d.ts} +23 -39
- package/dist/development/lib/types/internal.d.mts +2 -2
- package/dist/development/lib/types/internal.d.ts +2 -2
- package/dist/development/lib/types/internal.js +1 -1
- package/dist/development/lib/types/internal.mjs +1 -1
- package/dist/development/{routeModules--SgCTStn.d.mts → routeModules-Cy4Xsfoi.d.mts} +1 -1
- package/dist/{production/routeModules-rxNxBmdR.d.ts → development/routeModules-DqotkItD.d.ts} +1 -1
- package/dist/development/{router-DQIRhYoj.d.mts → router-DWv6Clt-.d.mts} +23 -39
- package/dist/production/{chunk-UAAA7FTX.mjs → chunk-52MYED7O.mjs} +2 -2
- package/dist/{development/chunk-ZLVXSGFL.js → production/chunk-DASXXYNZ.js} +134 -134
- package/dist/production/{chunk-ZOHTOBOT.js → chunk-K7VXYOZD.js} +172 -168
- package/dist/production/{chunk-MMAHTIVZ.mjs → chunk-LKSLGWXX.mjs} +173 -169
- package/dist/production/dom-export.d.mts +1 -1
- package/dist/production/dom-export.d.ts +1 -1
- package/dist/production/dom-export.js +3 -3
- package/dist/production/dom-export.mjs +3 -3
- package/dist/{development/index-react-server-client-lf74v6ET.d.mts → production/index-react-server-client-CYIi6gi0.d.mts} +2 -2
- package/dist/production/{index-react-server-client-Iw2PMej2.d.ts → index-react-server-client-ChBGplLn.d.ts} +2 -2
- package/dist/production/index-react-server-client.d.mts +3 -3
- package/dist/production/index-react-server-client.d.ts +3 -3
- 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 +23 -39
- package/dist/production/index-react-server.d.ts +23 -39
- package/dist/production/index-react-server.js +101 -95
- package/dist/production/index-react-server.mjs +101 -95
- package/dist/production/index.d.mts +6 -6
- package/dist/production/index.d.ts +6 -6
- package/dist/production/index.js +98 -98
- package/dist/production/index.mjs +3 -3
- package/dist/production/{instrumentation-BWRz1MRU.d.ts → instrumentation-BGrNA7uj.d.ts} +23 -39
- package/dist/production/lib/types/internal.d.mts +2 -2
- package/dist/production/lib/types/internal.d.ts +2 -2
- package/dist/production/lib/types/internal.js +1 -1
- package/dist/production/lib/types/internal.mjs +1 -1
- package/dist/production/{routeModules--SgCTStn.d.mts → routeModules-Cy4Xsfoi.d.mts} +1 -1
- package/dist/{development/routeModules-rxNxBmdR.d.ts → production/routeModules-DqotkItD.d.ts} +1 -1
- package/dist/production/{router-DQIRhYoj.d.mts → router-DWv6Clt-.d.mts} +23 -39
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-e0b6ce9
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
isSession,
|
|
32
32
|
routeRSCServerRequest,
|
|
33
33
|
setDevServerHooks
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-4FI4BC6Y.mjs";
|
|
35
35
|
import {
|
|
36
36
|
Action,
|
|
37
37
|
Await,
|
|
@@ -141,7 +141,7 @@ import {
|
|
|
141
141
|
withComponentProps,
|
|
142
142
|
withErrorBoundaryProps,
|
|
143
143
|
withHydrateFallbackProps
|
|
144
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-F6CT5MEB.mjs";
|
|
145
145
|
export {
|
|
146
146
|
Await,
|
|
147
147
|
BrowserRouter,
|
|
@@ -1053,9 +1053,15 @@ type unstable_ClientInstrumentation = {
|
|
|
1053
1053
|
type unstable_InstrumentRequestHandlerFunction = (handler: InstrumentableRequestHandler) => void;
|
|
1054
1054
|
type unstable_InstrumentRouterFunction = (router: InstrumentableRouter) => void;
|
|
1055
1055
|
type unstable_InstrumentRouteFunction = (route: InstrumentableRoute) => void;
|
|
1056
|
-
interface
|
|
1057
|
-
(handler: () => Promise<void>, info:
|
|
1056
|
+
interface InstrumentFunction<T> {
|
|
1057
|
+
(handler: () => Promise<void>, info: T): Promise<void>;
|
|
1058
1058
|
}
|
|
1059
|
+
type ReadonlyRequest = {
|
|
1060
|
+
method: string;
|
|
1061
|
+
url: string;
|
|
1062
|
+
headers: Pick<Headers, "get">;
|
|
1063
|
+
};
|
|
1064
|
+
type ReadonlyContext = Pick<RouterContextProvider, "get">;
|
|
1059
1065
|
type InstrumentableRoute = {
|
|
1060
1066
|
id: string;
|
|
1061
1067
|
index: boolean | undefined;
|
|
@@ -1063,36 +1069,27 @@ type InstrumentableRoute = {
|
|
|
1063
1069
|
instrument(instrumentations: RouteInstrumentations): void;
|
|
1064
1070
|
};
|
|
1065
1071
|
type RouteInstrumentations = {
|
|
1066
|
-
lazy?:
|
|
1067
|
-
"lazy.loader"?:
|
|
1068
|
-
"lazy.action"?:
|
|
1069
|
-
"lazy.middleware"?:
|
|
1070
|
-
middleware?:
|
|
1071
|
-
loader?:
|
|
1072
|
-
action?:
|
|
1072
|
+
lazy?: InstrumentFunction<RouteLazyInstrumentationInfo>;
|
|
1073
|
+
"lazy.loader"?: InstrumentFunction<RouteLazyInstrumentationInfo>;
|
|
1074
|
+
"lazy.action"?: InstrumentFunction<RouteLazyInstrumentationInfo>;
|
|
1075
|
+
"lazy.middleware"?: InstrumentFunction<RouteLazyInstrumentationInfo>;
|
|
1076
|
+
middleware?: InstrumentFunction<RouteHandlerInstrumentationInfo>;
|
|
1077
|
+
loader?: InstrumentFunction<RouteHandlerInstrumentationInfo>;
|
|
1078
|
+
action?: InstrumentFunction<RouteHandlerInstrumentationInfo>;
|
|
1073
1079
|
};
|
|
1080
|
+
type RouteLazyInstrumentationInfo = undefined;
|
|
1074
1081
|
type RouteHandlerInstrumentationInfo = Readonly<{
|
|
1075
|
-
request:
|
|
1076
|
-
method: string;
|
|
1077
|
-
url: string;
|
|
1078
|
-
headers: Pick<Headers, "get">;
|
|
1079
|
-
};
|
|
1082
|
+
request: ReadonlyRequest;
|
|
1080
1083
|
params: LoaderFunctionArgs["params"];
|
|
1081
1084
|
unstable_pattern: string;
|
|
1082
|
-
context:
|
|
1085
|
+
context: ReadonlyContext;
|
|
1083
1086
|
}>;
|
|
1084
|
-
interface InstrumentLazyFunction extends GenericInstrumentFunction {
|
|
1085
|
-
(handler: () => Promise<void>): Promise<void>;
|
|
1086
|
-
}
|
|
1087
|
-
interface InstrumentRouteHandlerFunction extends GenericInstrumentFunction {
|
|
1088
|
-
(handler: () => Promise<void>, info: RouteHandlerInstrumentationInfo): Promise<void>;
|
|
1089
|
-
}
|
|
1090
1087
|
type InstrumentableRouter = {
|
|
1091
1088
|
instrument(instrumentations: RouterInstrumentations): void;
|
|
1092
1089
|
};
|
|
1093
1090
|
type RouterInstrumentations = {
|
|
1094
|
-
navigate?:
|
|
1095
|
-
fetch?:
|
|
1091
|
+
navigate?: InstrumentFunction<RouterNavigationInstrumentationInfo>;
|
|
1092
|
+
fetch?: InstrumentFunction<RouterFetchInstrumentationInfo>;
|
|
1096
1093
|
};
|
|
1097
1094
|
type RouterNavigationInstrumentationInfo = Readonly<{
|
|
1098
1095
|
to: string | number;
|
|
@@ -1111,28 +1108,15 @@ type RouterFetchInstrumentationInfo = Readonly<{
|
|
|
1111
1108
|
formData?: FormData;
|
|
1112
1109
|
body?: any;
|
|
1113
1110
|
}>;
|
|
1114
|
-
interface InstrumentNavigateFunction extends GenericInstrumentFunction {
|
|
1115
|
-
(handler: () => Promise<void>, info: RouterNavigationInstrumentationInfo): MaybePromise<void>;
|
|
1116
|
-
}
|
|
1117
|
-
interface InstrumentFetchFunction extends GenericInstrumentFunction {
|
|
1118
|
-
(handler: () => Promise<void>, info: RouterFetchInstrumentationInfo): MaybePromise<void>;
|
|
1119
|
-
}
|
|
1120
1111
|
type InstrumentableRequestHandler = {
|
|
1121
1112
|
instrument(instrumentations: RequestHandlerInstrumentations): void;
|
|
1122
1113
|
};
|
|
1123
1114
|
type RequestHandlerInstrumentations = {
|
|
1124
|
-
request?:
|
|
1115
|
+
request?: InstrumentFunction<RequestHandlerInstrumentationInfo>;
|
|
1125
1116
|
};
|
|
1126
1117
|
type RequestHandlerInstrumentationInfo = Readonly<{
|
|
1127
|
-
request:
|
|
1128
|
-
|
|
1129
|
-
url: string;
|
|
1130
|
-
headers: Pick<Headers, "get">;
|
|
1131
|
-
};
|
|
1132
|
-
context: Pick<RouterContextProvider, "get">;
|
|
1118
|
+
request: ReadonlyRequest;
|
|
1119
|
+
context: ReadonlyContext;
|
|
1133
1120
|
}>;
|
|
1134
|
-
interface InstrumentRequestHandlerFunction extends GenericInstrumentFunction {
|
|
1135
|
-
(handler: () => Promise<void>, info: RequestHandlerInstrumentationInfo): MaybePromise<void>;
|
|
1136
|
-
}
|
|
1137
1121
|
|
|
1138
1122
|
export { type unstable_InstrumentRequestHandlerFunction as $, type AgnosticRouteObject as A, type ShouldRevalidateFunction as B, type ParamParseKey as C, type DataStrategyResult as D, type PathPattern as E, type FormEncType as F, type PathMatch as G, type History as H, type InitialEntry as I, type DataStrategyFunctionArgs as J, type DataStrategyMatch as K, type Location as L, type MiddlewareNextFunction as M, type ErrorResponse as N, type FormMethod as O, type Path as P, type PathParam as Q, RouterContextProvider as R, type Submission as S, type To as T, type UIMatch as U, type RedirectFunction as V, type RouterContext as W, type ShouldRevalidateFunctionArgs as X, createContext as Y, createPath as Z, parsePath as _, type MaybePromise as a, type unstable_InstrumentRouterFunction as a0, type unstable_InstrumentRouteFunction as a1, data as a2, generatePath as a3, isRouteErrorResponse as a4, matchPath as a5, matchRoutes as a6, redirect as a7, redirectDocument as a8, replace as a9, resolvePath as aa, type Future as ab, createBrowserHistory as ac, invariant as ad, ErrorResponseImpl as ae, type RouteManifest as af, type MapRoutePropertiesFunction as b, Action as c, type AgnosticDataRouteMatch as d, type RouteData as e, type DataStrategyFunction as f, type AgnosticPatchRoutesOnNavigationFunction as g, type AgnosticDataRouteObject as h, type HTMLFormMethod as i, type unstable_ServerInstrumentation as j, type LazyRouteFunction as k, type Params as l, type TrackedPromise as m, type AgnosticNonIndexRouteObject as n, type AgnosticIndexRouteObject as o, type LazyRouteDefinition as p, type AgnosticRouteMatch as q, type AgnosticPatchRoutesOnNavigationFunctionArgs as r, DataWithResponseInit as s, type MiddlewareEnabled as t, type unstable_ClientInstrumentation as u, type ActionFunctionArgs as v, type LoaderFunctionArgs as w, type ActionFunction as x, type LoaderFunction as y, type MiddlewareFunction as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RouteModule, L as LinkDescriptor, F as Func, P as Pretty, M as MetaDescriptor, G as GetLoaderData, S as ServerDataFunctionArgs, C as ClientDataFunctionArgs, a as ServerDataFrom, N as Normalize, b as GetActionData } from '../../routeModules
|
|
2
|
-
import { L as Location, M as MiddlewareNextFunction, D as DataStrategyResult } from '../../router-
|
|
1
|
+
import { R as RouteModule, L as LinkDescriptor, F as Func, P as Pretty, M as MetaDescriptor, G as GetLoaderData, S as ServerDataFunctionArgs, C as ClientDataFunctionArgs, a as ServerDataFrom, N as Normalize, b as GetActionData } from '../../routeModules-Cy4Xsfoi.mjs';
|
|
2
|
+
import { L as Location, M as MiddlewareNextFunction, D as DataStrategyResult } from '../../router-DWv6Clt-.mjs';
|
|
3
3
|
import { R as RouteFiles, P as Pages } from '../../register-DiOIlEq5.mjs';
|
|
4
4
|
import 'react';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RouteModule, L as LinkDescriptor, F as Func, P as Pretty, M as MetaDescriptor, G as GetLoaderData, S as ServerDataFunctionArgs, C as ClientDataFunctionArgs, a as ServerDataFrom, N as Normalize, b as GetActionData } from '../../routeModules-
|
|
2
|
-
import { L as Location, M as MiddlewareNextFunction, D as DataStrategyResult } from '../../instrumentation-
|
|
1
|
+
import { R as RouteModule, L as LinkDescriptor, F as Func, P as Pretty, M as MetaDescriptor, G as GetLoaderData, S as ServerDataFunctionArgs, C as ClientDataFunctionArgs, a as ServerDataFrom, N as Normalize, b as GetActionData } from '../../routeModules-DqotkItD.js';
|
|
2
|
+
import { L as Location, M as MiddlewareNextFunction, D as DataStrategyResult } from '../../instrumentation-BGrNA7uj.js';
|
|
3
3
|
import { R as RouteFiles, P as Pages } from '../../register-DiOIlEq5.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentType, ReactElement } from 'react';
|
|
2
|
-
import { c as RouterContextProvider, d as DataWithResponseInit, e as MiddlewareEnabled, A as ActionFunctionArgs, f as LoaderFunctionArgs, g as ActionFunction, h as LoaderFunction, P as Params, L as Location, i as DataRouteMatch, j as MiddlewareFunction, D as DataStrategyResult, S as ShouldRevalidateFunction } from './router-
|
|
2
|
+
import { c as RouterContextProvider, d as DataWithResponseInit, e as MiddlewareEnabled, A as ActionFunctionArgs, f as LoaderFunctionArgs, g as ActionFunction, h as LoaderFunction, P as Params, L as Location, i as DataRouteMatch, j as MiddlewareFunction, D as DataStrategyResult, S as ShouldRevalidateFunction } from './router-DWv6Clt-.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* An object of unknown type for route loaders and actions provided by the
|
package/dist/{production/routeModules-rxNxBmdR.d.ts → development/routeModules-DqotkItD.d.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ComponentType, ReactElement } from 'react';
|
|
3
|
-
import { A as AgnosticRouteObject, H as History, a as MaybePromise, R as RouterContextProvider, u as unstable_ClientInstrumentation, b as MapRoutePropertiesFunction, c as Action, L as Location, d as AgnosticDataRouteMatch, S as Submission, e as RouteData, f as DataStrategyFunction, g as AgnosticPatchRoutesOnNavigationFunction, h as AgnosticDataRouteObject, U as UIMatch, T as To, i as HTMLFormMethod, F as FormEncType, P as Path, j as unstable_ServerInstrumentation, I as InitialEntry, k as LazyRouteFunction, l as Params, m as TrackedPromise, n as AgnosticNonIndexRouteObject, o as AgnosticIndexRouteObject, p as LazyRouteDefinition, q as AgnosticRouteMatch, r as AgnosticPatchRoutesOnNavigationFunctionArgs, s as DataWithResponseInit, t as MiddlewareEnabled, v as ActionFunctionArgs, w as LoaderFunctionArgs, x as ActionFunction, y as LoaderFunction, z as MiddlewareFunction, D as DataStrategyResult, B as ShouldRevalidateFunction } from './instrumentation-
|
|
3
|
+
import { A as AgnosticRouteObject, H as History, a as MaybePromise, R as RouterContextProvider, u as unstable_ClientInstrumentation, b as MapRoutePropertiesFunction, c as Action, L as Location, d as AgnosticDataRouteMatch, S as Submission, e as RouteData, f as DataStrategyFunction, g as AgnosticPatchRoutesOnNavigationFunction, h as AgnosticDataRouteObject, U as UIMatch, T as To, i as HTMLFormMethod, F as FormEncType, P as Path, j as unstable_ServerInstrumentation, I as InitialEntry, k as LazyRouteFunction, l as Params, m as TrackedPromise, n as AgnosticNonIndexRouteObject, o as AgnosticIndexRouteObject, p as LazyRouteDefinition, q as AgnosticRouteMatch, r as AgnosticPatchRoutesOnNavigationFunctionArgs, s as DataWithResponseInit, t as MiddlewareEnabled, v as ActionFunctionArgs, w as LoaderFunctionArgs, x as ActionFunction, y as LoaderFunction, z as MiddlewareFunction, D as DataStrategyResult, B as ShouldRevalidateFunction } from './instrumentation-BGrNA7uj.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* An object of unknown type for route loaders and actions provided by the
|
|
@@ -2074,9 +2074,15 @@ type unstable_ClientInstrumentation = {
|
|
|
2074
2074
|
type unstable_InstrumentRequestHandlerFunction = (handler: InstrumentableRequestHandler) => void;
|
|
2075
2075
|
type unstable_InstrumentRouterFunction = (router: InstrumentableRouter) => void;
|
|
2076
2076
|
type unstable_InstrumentRouteFunction = (route: InstrumentableRoute) => void;
|
|
2077
|
-
interface
|
|
2078
|
-
(handler: () => Promise<void>, info:
|
|
2077
|
+
interface InstrumentFunction<T> {
|
|
2078
|
+
(handler: () => Promise<void>, info: T): Promise<void>;
|
|
2079
2079
|
}
|
|
2080
|
+
type ReadonlyRequest = {
|
|
2081
|
+
method: string;
|
|
2082
|
+
url: string;
|
|
2083
|
+
headers: Pick<Headers, "get">;
|
|
2084
|
+
};
|
|
2085
|
+
type ReadonlyContext = Pick<RouterContextProvider, "get">;
|
|
2080
2086
|
type InstrumentableRoute = {
|
|
2081
2087
|
id: string;
|
|
2082
2088
|
index: boolean | undefined;
|
|
@@ -2084,36 +2090,27 @@ type InstrumentableRoute = {
|
|
|
2084
2090
|
instrument(instrumentations: RouteInstrumentations): void;
|
|
2085
2091
|
};
|
|
2086
2092
|
type RouteInstrumentations = {
|
|
2087
|
-
lazy?:
|
|
2088
|
-
"lazy.loader"?:
|
|
2089
|
-
"lazy.action"?:
|
|
2090
|
-
"lazy.middleware"?:
|
|
2091
|
-
middleware?:
|
|
2092
|
-
loader?:
|
|
2093
|
-
action?:
|
|
2093
|
+
lazy?: InstrumentFunction<RouteLazyInstrumentationInfo>;
|
|
2094
|
+
"lazy.loader"?: InstrumentFunction<RouteLazyInstrumentationInfo>;
|
|
2095
|
+
"lazy.action"?: InstrumentFunction<RouteLazyInstrumentationInfo>;
|
|
2096
|
+
"lazy.middleware"?: InstrumentFunction<RouteLazyInstrumentationInfo>;
|
|
2097
|
+
middleware?: InstrumentFunction<RouteHandlerInstrumentationInfo>;
|
|
2098
|
+
loader?: InstrumentFunction<RouteHandlerInstrumentationInfo>;
|
|
2099
|
+
action?: InstrumentFunction<RouteHandlerInstrumentationInfo>;
|
|
2094
2100
|
};
|
|
2101
|
+
type RouteLazyInstrumentationInfo = undefined;
|
|
2095
2102
|
type RouteHandlerInstrumentationInfo = Readonly<{
|
|
2096
|
-
request:
|
|
2097
|
-
method: string;
|
|
2098
|
-
url: string;
|
|
2099
|
-
headers: Pick<Headers, "get">;
|
|
2100
|
-
};
|
|
2103
|
+
request: ReadonlyRequest;
|
|
2101
2104
|
params: LoaderFunctionArgs["params"];
|
|
2102
2105
|
unstable_pattern: string;
|
|
2103
|
-
context:
|
|
2106
|
+
context: ReadonlyContext;
|
|
2104
2107
|
}>;
|
|
2105
|
-
interface InstrumentLazyFunction extends GenericInstrumentFunction {
|
|
2106
|
-
(handler: () => Promise<void>): Promise<void>;
|
|
2107
|
-
}
|
|
2108
|
-
interface InstrumentRouteHandlerFunction extends GenericInstrumentFunction {
|
|
2109
|
-
(handler: () => Promise<void>, info: RouteHandlerInstrumentationInfo): Promise<void>;
|
|
2110
|
-
}
|
|
2111
2108
|
type InstrumentableRouter = {
|
|
2112
2109
|
instrument(instrumentations: RouterInstrumentations): void;
|
|
2113
2110
|
};
|
|
2114
2111
|
type RouterInstrumentations = {
|
|
2115
|
-
navigate?:
|
|
2116
|
-
fetch?:
|
|
2112
|
+
navigate?: InstrumentFunction<RouterNavigationInstrumentationInfo>;
|
|
2113
|
+
fetch?: InstrumentFunction<RouterFetchInstrumentationInfo>;
|
|
2117
2114
|
};
|
|
2118
2115
|
type RouterNavigationInstrumentationInfo = Readonly<{
|
|
2119
2116
|
to: string | number;
|
|
@@ -2132,29 +2129,16 @@ type RouterFetchInstrumentationInfo = Readonly<{
|
|
|
2132
2129
|
formData?: FormData;
|
|
2133
2130
|
body?: any;
|
|
2134
2131
|
}>;
|
|
2135
|
-
interface InstrumentNavigateFunction extends GenericInstrumentFunction {
|
|
2136
|
-
(handler: () => Promise<void>, info: RouterNavigationInstrumentationInfo): MaybePromise<void>;
|
|
2137
|
-
}
|
|
2138
|
-
interface InstrumentFetchFunction extends GenericInstrumentFunction {
|
|
2139
|
-
(handler: () => Promise<void>, info: RouterFetchInstrumentationInfo): MaybePromise<void>;
|
|
2140
|
-
}
|
|
2141
2132
|
type InstrumentableRequestHandler = {
|
|
2142
2133
|
instrument(instrumentations: RequestHandlerInstrumentations): void;
|
|
2143
2134
|
};
|
|
2144
2135
|
type RequestHandlerInstrumentations = {
|
|
2145
|
-
request?:
|
|
2136
|
+
request?: InstrumentFunction<RequestHandlerInstrumentationInfo>;
|
|
2146
2137
|
};
|
|
2147
2138
|
type RequestHandlerInstrumentationInfo = Readonly<{
|
|
2148
|
-
request:
|
|
2149
|
-
|
|
2150
|
-
url: string;
|
|
2151
|
-
headers: Pick<Headers, "get">;
|
|
2152
|
-
};
|
|
2153
|
-
context: Pick<RouterContextProvider, "get">;
|
|
2139
|
+
request: ReadonlyRequest;
|
|
2140
|
+
context: ReadonlyContext;
|
|
2154
2141
|
}>;
|
|
2155
|
-
interface InstrumentRequestHandlerFunction extends GenericInstrumentFunction {
|
|
2156
|
-
(handler: () => Promise<void>, info: RequestHandlerInstrumentationInfo): MaybePromise<void>;
|
|
2157
|
-
}
|
|
2158
2142
|
|
|
2159
2143
|
/**
|
|
2160
2144
|
* A Router instance manages all navigation and data loading/mutations
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-e0b6ce9
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
withComponentProps,
|
|
62
62
|
withErrorBoundaryProps,
|
|
63
63
|
withHydrateFallbackProps
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-LKSLGWXX.mjs";
|
|
65
65
|
|
|
66
66
|
// lib/dom/ssr/server.tsx
|
|
67
67
|
import * as React from "react";
|