react-router 7.9.5-pre.0 → 7.9.6-pre.0
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 +33 -1
- package/dist/development/{browser-DM83uryY.d.ts → browser-BbBXFHbO.d.ts} +1 -1
- package/dist/development/{browser-DfMfSvsC.d.mts → browser-C07r42Tt.d.mts} +1 -1
- package/dist/development/{chunk-76L3QNAV.mjs → chunk-7TW6LJC6.mjs} +71 -20
- package/dist/development/{chunk-KXZSW2DO.js → chunk-DB25NZIA.js} +7 -7
- package/dist/development/{chunk-FXLUBU25.js → chunk-IR7LYQCC.js} +93 -93
- package/dist/{production/chunk-4JX2RDWY.mjs → development/chunk-P6ZEAD4C.mjs} +2 -2
- package/dist/development/{chunk-TSYPWE43.js → chunk-TUTX3ERH.js} +100 -49
- package/dist/development/dom-export.d.mts +2 -2
- package/dist/development/dom-export.d.ts +2 -2
- package/dist/development/dom-export.js +26 -26
- package/dist/development/dom-export.mjs +3 -3
- package/dist/development/{index-react-server-client-BSxMvS7Z.d.ts → index-react-server-client-Da3kmxNd.d.ts} +1 -1
- package/dist/development/{index-react-server-client-B0vnxMMk.d.mts → index-react-server-client-rcoGPJhU.d.mts} +1 -1
- 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.js +1 -1
- package/dist/development/index-react-server.mjs +1 -1
- package/dist/development/index.d.mts +8 -8
- package/dist/development/index.d.ts +8 -8
- package/dist/development/index.js +76 -76
- package/dist/development/index.mjs +3 -3
- package/dist/{production/instrumentation-iAqbU5Q4.d.ts → development/instrumentation-Unc20tLk.d.ts} +5 -1
- 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/{register-c-dooqKE.d.ts → register-BpU9rFBJ.d.ts} +1 -1
- package/dist/development/{register-_G476ptB.d.mts → register-QkB3HGjm.d.mts} +1 -1
- package/dist/{production/router-DIAPGK5f.d.mts → development/router-CAvh_Drx.d.mts} +5 -1
- package/dist/production/{browser-DM83uryY.d.ts → browser-BbBXFHbO.d.ts} +1 -1
- package/dist/production/{browser-DfMfSvsC.d.mts → browser-C07r42Tt.d.mts} +1 -1
- package/dist/{development/chunk-B6QYCHJF.mjs → production/chunk-4MBU4DF6.mjs} +2 -2
- package/dist/production/{chunk-7EXEUENX.mjs → chunk-GG2LAVOQ.mjs} +71 -20
- package/dist/production/{chunk-4SZHQXEM.js → chunk-MKF3AQDO.js} +7 -7
- package/dist/production/{chunk-ARKB3I5K.js → chunk-RBZEEJIK.js} +100 -49
- package/dist/production/{chunk-OB3KSCCZ.js → chunk-ZHTTD7UY.js} +93 -93
- package/dist/production/dom-export.d.mts +2 -2
- package/dist/production/dom-export.d.ts +2 -2
- package/dist/production/dom-export.js +26 -26
- package/dist/production/dom-export.mjs +3 -3
- package/dist/production/{index-react-server-client-BSxMvS7Z.d.ts → index-react-server-client-Da3kmxNd.d.ts} +1 -1
- package/dist/production/{index-react-server-client-B0vnxMMk.d.mts → index-react-server-client-rcoGPJhU.d.mts} +1 -1
- 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.js +1 -1
- package/dist/production/index-react-server.mjs +1 -1
- package/dist/production/index.d.mts +8 -8
- package/dist/production/index.d.ts +8 -8
- package/dist/production/index.js +76 -76
- package/dist/production/index.mjs +3 -3
- package/dist/{development/instrumentation-iAqbU5Q4.d.ts → production/instrumentation-Unc20tLk.d.ts} +5 -1
- 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/{register-c-dooqKE.d.ts → register-BpU9rFBJ.d.ts} +1 -1
- package/dist/production/{register-_G476ptB.d.mts → register-QkB3HGjm.d.mts} +1 -1
- package/dist/{development/router-DIAPGK5f.d.mts → production/router-CAvh_Drx.d.mts} +5 -1
- package/package.json +1 -1
|
@@ -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 _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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 v7.9.
|
|
2
|
+
* react-router v7.9.6-pre.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -2306,6 +2306,14 @@ function createRouter(init) {
|
|
|
2306
2306
|
key
|
|
2307
2307
|
);
|
|
2308
2308
|
let actionResult = actionResults[match.route.id];
|
|
2309
|
+
if (!actionResult) {
|
|
2310
|
+
for (let match2 of fetchMatches) {
|
|
2311
|
+
if (actionResults[match2.route.id]) {
|
|
2312
|
+
actionResult = actionResults[match2.route.id];
|
|
2313
|
+
break;
|
|
2314
|
+
}
|
|
2315
|
+
}
|
|
2316
|
+
}
|
|
2309
2317
|
if (fetchRequest.signal.aborted) {
|
|
2310
2318
|
if (fetchControllers.get(key) === abortController) {
|
|
2311
2319
|
fetchControllers.delete(key);
|
|
@@ -2962,23 +2970,43 @@ function createRouter(init) {
|
|
|
2962
2970
|
return { type: "aborted" };
|
|
2963
2971
|
}
|
|
2964
2972
|
let newMatches = matchRoutes(routesToUse, pathname, basename);
|
|
2973
|
+
let newPartialMatches = null;
|
|
2965
2974
|
if (newMatches) {
|
|
2966
|
-
|
|
2975
|
+
if (Object.keys(newMatches[0].params).length === 0) {
|
|
2976
|
+
return { type: "success", matches: newMatches };
|
|
2977
|
+
} else {
|
|
2978
|
+
newPartialMatches = matchRoutesImpl(
|
|
2979
|
+
routesToUse,
|
|
2980
|
+
pathname,
|
|
2981
|
+
basename,
|
|
2982
|
+
true
|
|
2983
|
+
);
|
|
2984
|
+
let matchedDeeper = newPartialMatches && partialMatches.length < newPartialMatches.length && compareMatches(
|
|
2985
|
+
partialMatches,
|
|
2986
|
+
newPartialMatches.slice(0, partialMatches.length)
|
|
2987
|
+
);
|
|
2988
|
+
if (!matchedDeeper) {
|
|
2989
|
+
return { type: "success", matches: newMatches };
|
|
2990
|
+
}
|
|
2991
|
+
}
|
|
2967
2992
|
}
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
)) {
|
|
2993
|
+
if (!newPartialMatches) {
|
|
2994
|
+
newPartialMatches = matchRoutesImpl(
|
|
2995
|
+
routesToUse,
|
|
2996
|
+
pathname,
|
|
2997
|
+
basename,
|
|
2998
|
+
true
|
|
2999
|
+
);
|
|
3000
|
+
}
|
|
3001
|
+
if (!newPartialMatches || compareMatches(partialMatches, newPartialMatches)) {
|
|
2977
3002
|
return { type: "success", matches: null };
|
|
2978
3003
|
}
|
|
2979
3004
|
partialMatches = newPartialMatches;
|
|
2980
3005
|
}
|
|
2981
3006
|
}
|
|
3007
|
+
function compareMatches(a, b) {
|
|
3008
|
+
return a.length === b.length && a.every((m, i) => m.route.id === b[i].route.id);
|
|
3009
|
+
}
|
|
2982
3010
|
function _internalSetRoutes(newRoutes) {
|
|
2983
3011
|
manifest = {};
|
|
2984
3012
|
inFlightDataRoutes = convertRoutesToDataRoutes(
|
|
@@ -6767,8 +6795,8 @@ var RenderErrorBoundary = class extends React3.Component {
|
|
|
6767
6795
|
};
|
|
6768
6796
|
}
|
|
6769
6797
|
componentDidCatch(error, errorInfo) {
|
|
6770
|
-
if (this.props.
|
|
6771
|
-
this.props.
|
|
6798
|
+
if (this.props.onError) {
|
|
6799
|
+
this.props.onError(error, errorInfo);
|
|
6772
6800
|
} else {
|
|
6773
6801
|
console.error(
|
|
6774
6802
|
"React Router caught the following error during render",
|
|
@@ -6846,6 +6874,13 @@ function _renderMatches(matches, parentMatches = [], dataRouterState = null, uns
|
|
|
6846
6874
|
}
|
|
6847
6875
|
}
|
|
6848
6876
|
}
|
|
6877
|
+
let onError = dataRouterState && unstable_onError ? (error, errorInfo) => {
|
|
6878
|
+
unstable_onError(error, {
|
|
6879
|
+
location: dataRouterState.location,
|
|
6880
|
+
params: _nullishCoalesce(_optionalChain([dataRouterState, 'access', _76 => _76.matches, 'optionalAccess', _77 => _77[0], 'optionalAccess', _78 => _78.params]), () => ( {})),
|
|
6881
|
+
errorInfo
|
|
6882
|
+
});
|
|
6883
|
+
} : void 0;
|
|
6849
6884
|
return renderedMatches.reduceRight(
|
|
6850
6885
|
(outlet, match, index) => {
|
|
6851
6886
|
let error;
|
|
@@ -6906,7 +6941,7 @@ function _renderMatches(matches, parentMatches = [], dataRouterState = null, uns
|
|
|
6906
6941
|
error,
|
|
6907
6942
|
children: getChildren(),
|
|
6908
6943
|
routeContext: { outlet: null, matches: matches2, isDataRoute: true },
|
|
6909
|
-
|
|
6944
|
+
onError
|
|
6910
6945
|
}
|
|
6911
6946
|
) : getChildren();
|
|
6912
6947
|
},
|
|
@@ -6988,15 +7023,15 @@ function useRouteError() {
|
|
|
6988
7023
|
if (error !== void 0) {
|
|
6989
7024
|
return error;
|
|
6990
7025
|
}
|
|
6991
|
-
return _optionalChain([state, 'access',
|
|
7026
|
+
return _optionalChain([state, 'access', _79 => _79.errors, 'optionalAccess', _80 => _80[routeId]]);
|
|
6992
7027
|
}
|
|
6993
7028
|
function useAsyncValue() {
|
|
6994
7029
|
let value = React3.useContext(AwaitContext);
|
|
6995
|
-
return _optionalChain([value, 'optionalAccess',
|
|
7030
|
+
return _optionalChain([value, 'optionalAccess', _81 => _81._data]);
|
|
6996
7031
|
}
|
|
6997
7032
|
function useAsyncError() {
|
|
6998
7033
|
let value = React3.useContext(AwaitContext);
|
|
6999
|
-
return _optionalChain([value, 'optionalAccess',
|
|
7034
|
+
return _optionalChain([value, 'optionalAccess', _82 => _82._error]);
|
|
7000
7035
|
}
|
|
7001
7036
|
var blockerId = 0;
|
|
7002
7037
|
function useBlocker(shouldBlock) {
|
|
@@ -7077,7 +7112,7 @@ function useRoute(...args) {
|
|
|
7077
7112
|
return {
|
|
7078
7113
|
handle: route.route.handle,
|
|
7079
7114
|
loaderData: state.loaderData[id],
|
|
7080
|
-
actionData: _optionalChain([state, 'access',
|
|
7115
|
+
actionData: _optionalChain([state, 'access', _83 => _83.actionData, 'optionalAccess', _84 => _84[id]])
|
|
7081
7116
|
};
|
|
7082
7117
|
}
|
|
7083
7118
|
|
|
@@ -7122,7 +7157,7 @@ function getKeyedLinksForMatches(matches, routeModules, manifest) {
|
|
|
7122
7157
|
let route = manifest.routes[match.route.id];
|
|
7123
7158
|
return [
|
|
7124
7159
|
route && route.css ? route.css.map((href) => ({ rel: "stylesheet", href })) : [],
|
|
7125
|
-
_optionalChain([module, 'optionalAccess',
|
|
7160
|
+
_optionalChain([module, 'optionalAccess', _85 => _85.links, 'optionalCall', _86 => _86()]) || []
|
|
7126
7161
|
];
|
|
7127
7162
|
}).flat(2);
|
|
7128
7163
|
let preloads = getModuleLinkHrefs(matches, manifest);
|
|
@@ -7223,7 +7258,7 @@ function getNewMatchesForLinks(page, nextMatches, currentMatches, manifest, loca
|
|
|
7223
7258
|
// param change, /users/123 -> /users/456
|
|
7224
7259
|
currentMatches[index].pathname !== match.pathname || // splat param changed, which is not present in match.path
|
|
7225
7260
|
// e.g. /files/images/avatar.jpg -> files/finances.xls
|
|
7226
|
-
_optionalChain([currentMatches, 'access',
|
|
7261
|
+
_optionalChain([currentMatches, 'access', _87 => _87[index], 'access', _88 => _88.route, 'access', _89 => _89.path, 'optionalAccess', _90 => _90.endsWith, 'call', _91 => _91("*")]) && currentMatches[index].params["*"] !== match.params["*"]
|
|
7227
7262
|
);
|
|
7228
7263
|
};
|
|
7229
7264
|
if (mode === "assets") {
|
|
@@ -7246,7 +7281,7 @@ function getNewMatchesForLinks(page, nextMatches, currentMatches, manifest, loca
|
|
|
7246
7281
|
location.pathname + location.search + location.hash,
|
|
7247
7282
|
window.origin
|
|
7248
7283
|
),
|
|
7249
|
-
currentParams: _optionalChain([currentMatches, 'access',
|
|
7284
|
+
currentParams: _optionalChain([currentMatches, 'access', _92 => _92[0], 'optionalAccess', _93 => _93.params]) || {},
|
|
7250
7285
|
nextUrl: new URL(page, window.origin),
|
|
7251
7286
|
nextParams: match.params,
|
|
7252
7287
|
defaultShouldRevalidate: true
|
|
@@ -7518,10 +7553,10 @@ function createClientRoutes(manifest, routeModulesCache, initialState, ssr, isSp
|
|
|
7518
7553
|
)
|
|
7519
7554
|
});
|
|
7520
7555
|
let hasInitialData = initialState && initialState.loaderData && route.id in initialState.loaderData;
|
|
7521
|
-
let initialData = hasInitialData ? _optionalChain([initialState, 'optionalAccess',
|
|
7556
|
+
let initialData = hasInitialData ? _optionalChain([initialState, 'optionalAccess', _94 => _94.loaderData, 'optionalAccess', _95 => _95[route.id]]) : void 0;
|
|
7522
7557
|
let hasInitialError = initialState && initialState.errors && route.id in initialState.errors;
|
|
7523
|
-
let initialError = hasInitialError ? _optionalChain([initialState, 'optionalAccess',
|
|
7524
|
-
let isHydrationRequest = needsRevalidation == null && (_optionalChain([routeModule, 'access',
|
|
7558
|
+
let initialError = hasInitialError ? _optionalChain([initialState, 'optionalAccess', _96 => _96.errors, 'optionalAccess', _97 => _97[route.id]]) : void 0;
|
|
7559
|
+
let isHydrationRequest = needsRevalidation == null && (_optionalChain([routeModule, 'access', _98 => _98.clientLoader, 'optionalAccess', _99 => _99.hydrate]) === true || !route.hasLoader);
|
|
7525
7560
|
dataRoute.loader = async ({ request, params, context, unstable_pattern }, singleFetch) => {
|
|
7526
7561
|
try {
|
|
7527
7562
|
let result = await prefetchStylesAndCallHandler(async () => {
|
|
@@ -7817,7 +7852,7 @@ function getPatchRoutesOnNavigationFunction(manifest, routeModules, ssr, routeDi
|
|
|
7817
7852
|
function useFogOFWarDiscovery(router, manifest, routeModules, ssr, routeDiscovery, isSpaMode) {
|
|
7818
7853
|
React6.useEffect(() => {
|
|
7819
7854
|
if (!isFogOfWarEnabled(routeDiscovery, ssr) || // @ts-expect-error - TS doesn't know about this yet
|
|
7820
|
-
_optionalChain([window, 'access',
|
|
7855
|
+
_optionalChain([window, 'access', _100 => _100.navigator, 'optionalAccess', _101 => _101.connection, 'optionalAccess', _102 => _102.saveData]) === true) {
|
|
7821
7856
|
return;
|
|
7822
7857
|
}
|
|
7823
7858
|
function registerElement(el) {
|
|
@@ -7926,7 +7961,7 @@ async function fetchAndApplyManifestPatches(paths, errorReloadPath, manifest, ro
|
|
|
7926
7961
|
}
|
|
7927
7962
|
serverPatches = await res.json();
|
|
7928
7963
|
} catch (e) {
|
|
7929
|
-
if (_optionalChain([signal, 'optionalAccess',
|
|
7964
|
+
if (_optionalChain([signal, 'optionalAccess', _103 => _103.aborted])) return;
|
|
7930
7965
|
throw e;
|
|
7931
7966
|
}
|
|
7932
7967
|
let knownRoutes = new Set(Object.keys(manifest.routes));
|
|
@@ -8167,7 +8202,7 @@ function PrefetchPageLinksImpl({
|
|
|
8167
8202
|
if (!manifestRoute || !manifestRoute.hasLoader) {
|
|
8168
8203
|
return;
|
|
8169
8204
|
}
|
|
8170
|
-
if (!newMatchesForData.some((m2) => m2.route.id === m.route.id) && m.route.id in loaderData && _optionalChain([routeModules, 'access',
|
|
8205
|
+
if (!newMatchesForData.some((m2) => m2.route.id === m.route.id) && m.route.id in loaderData && _optionalChain([routeModules, 'access', _104 => _104[m.route.id], 'optionalAccess', _105 => _105.shouldRevalidate])) {
|
|
8171
8206
|
foundOptOutRoute = true;
|
|
8172
8207
|
} else if (manifestRoute.hasClientLoader) {
|
|
8173
8208
|
foundOptOutRoute = true;
|
|
@@ -8241,7 +8276,7 @@ function Meta() {
|
|
|
8241
8276
|
error
|
|
8242
8277
|
};
|
|
8243
8278
|
matches[i] = match;
|
|
8244
|
-
if (_optionalChain([routeModule, 'optionalAccess',
|
|
8279
|
+
if (_optionalChain([routeModule, 'optionalAccess', _106 => _106.meta])) {
|
|
8245
8280
|
routeMeta = typeof routeModule.meta === "function" ? routeModule.meta({
|
|
8246
8281
|
data: data2,
|
|
8247
8282
|
loaderData: data2,
|
|
@@ -8340,7 +8375,7 @@ function Scripts(scriptProps) {
|
|
|
8340
8375
|
}
|
|
8341
8376
|
let streamScript = "window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());";
|
|
8342
8377
|
let contextScript = staticContext ? `window.__reactRouterContext = ${serverHandoffString};${streamScript}` : " ";
|
|
8343
|
-
let routeModulesScript = !isStatic ? " " : `${_optionalChain([manifest, 'access',
|
|
8378
|
+
let routeModulesScript = !isStatic ? " " : `${_optionalChain([manifest, 'access', _107 => _107.hmr, 'optionalAccess', _108 => _108.runtime]) ? `import ${JSON.stringify(manifest.hmr.runtime)};` : ""}${!enableFogOfWar ? `import ${JSON.stringify(manifest.url)}` : ""};
|
|
8344
8379
|
${matches.map((match, routeIndex) => {
|
|
8345
8380
|
let routeVarName = `route${routeIndex}`;
|
|
8346
8381
|
let manifestEntry = manifest.routes[match.route.id];
|
|
@@ -8570,7 +8605,7 @@ function BoundaryShell({
|
|
|
8570
8605
|
children
|
|
8571
8606
|
}) {
|
|
8572
8607
|
let { routeModules } = useFrameworkContext();
|
|
8573
|
-
if (_optionalChain([routeModules, 'access',
|
|
8608
|
+
if (_optionalChain([routeModules, 'access', _109 => _109.root, 'optionalAccess', _110 => _110.Layout]) && !isOutsideRemixApp) {
|
|
8574
8609
|
return children;
|
|
8575
8610
|
}
|
|
8576
8611
|
return /* @__PURE__ */ React8.createElement("html", { lang: "en" }, /* @__PURE__ */ React8.createElement("head", null, /* @__PURE__ */ React8.createElement("meta", { charSet: "utf-8" }), /* @__PURE__ */ React8.createElement(
|
|
@@ -8640,20 +8675,20 @@ var hydrationRouteProperties = [
|
|
|
8640
8675
|
];
|
|
8641
8676
|
function createMemoryRouter(routes, opts) {
|
|
8642
8677
|
return createRouter({
|
|
8643
|
-
basename: _optionalChain([opts, 'optionalAccess',
|
|
8644
|
-
getContext: _optionalChain([opts, 'optionalAccess',
|
|
8645
|
-
future: _optionalChain([opts, 'optionalAccess',
|
|
8678
|
+
basename: _optionalChain([opts, 'optionalAccess', _111 => _111.basename]),
|
|
8679
|
+
getContext: _optionalChain([opts, 'optionalAccess', _112 => _112.getContext]),
|
|
8680
|
+
future: _optionalChain([opts, 'optionalAccess', _113 => _113.future]),
|
|
8646
8681
|
history: createMemoryHistory({
|
|
8647
|
-
initialEntries: _optionalChain([opts, 'optionalAccess',
|
|
8648
|
-
initialIndex: _optionalChain([opts, 'optionalAccess',
|
|
8682
|
+
initialEntries: _optionalChain([opts, 'optionalAccess', _114 => _114.initialEntries]),
|
|
8683
|
+
initialIndex: _optionalChain([opts, 'optionalAccess', _115 => _115.initialIndex])
|
|
8649
8684
|
}),
|
|
8650
|
-
hydrationData: _optionalChain([opts, 'optionalAccess',
|
|
8685
|
+
hydrationData: _optionalChain([opts, 'optionalAccess', _116 => _116.hydrationData]),
|
|
8651
8686
|
routes,
|
|
8652
8687
|
hydrationRouteProperties,
|
|
8653
8688
|
mapRouteProperties,
|
|
8654
|
-
dataStrategy: _optionalChain([opts, 'optionalAccess',
|
|
8655
|
-
patchRoutesOnNavigation: _optionalChain([opts, 'optionalAccess',
|
|
8656
|
-
unstable_instrumentations: _optionalChain([opts, 'optionalAccess',
|
|
8689
|
+
dataStrategy: _optionalChain([opts, 'optionalAccess', _117 => _117.dataStrategy]),
|
|
8690
|
+
patchRoutesOnNavigation: _optionalChain([opts, 'optionalAccess', _118 => _118.patchRoutesOnNavigation]),
|
|
8691
|
+
unstable_instrumentations: _optionalChain([opts, 'optionalAccess', _119 => _119.unstable_instrumentations])
|
|
8657
8692
|
}).initialize();
|
|
8658
8693
|
}
|
|
8659
8694
|
var Deferred2 = class {
|
|
@@ -8715,12 +8750,12 @@ function UNSTABLE_TransitionEnabledRouterProvider({
|
|
|
8715
8750
|
go: (n) => router.navigate(n),
|
|
8716
8751
|
push: (to, state2, opts) => router.navigate(to, {
|
|
8717
8752
|
state: state2,
|
|
8718
|
-
preventScrollReset: _optionalChain([opts, 'optionalAccess',
|
|
8753
|
+
preventScrollReset: _optionalChain([opts, 'optionalAccess', _120 => _120.preventScrollReset])
|
|
8719
8754
|
}),
|
|
8720
8755
|
replace: (to, state2, opts) => router.navigate(to, {
|
|
8721
8756
|
replace: true,
|
|
8722
8757
|
state: state2,
|
|
8723
|
-
preventScrollReset: _optionalChain([opts, 'optionalAccess',
|
|
8758
|
+
preventScrollReset: _optionalChain([opts, 'optionalAccess', _121 => _121.preventScrollReset])
|
|
8724
8759
|
})
|
|
8725
8760
|
};
|
|
8726
8761
|
}, [router]);
|
|
@@ -8807,8 +8842,11 @@ function RouterProvider({
|
|
|
8807
8842
|
setStateImpl((prevState) => {
|
|
8808
8843
|
if (newState.errors && unstable_onError) {
|
|
8809
8844
|
Object.entries(newState.errors).forEach(([routeId, error]) => {
|
|
8810
|
-
if (_optionalChain([prevState, 'access',
|
|
8811
|
-
unstable_onError(error
|
|
8845
|
+
if (_optionalChain([prevState, 'access', _122 => _122.errors, 'optionalAccess', _123 => _123[routeId]]) !== error) {
|
|
8846
|
+
unstable_onError(error, {
|
|
8847
|
+
location: newState.location,
|
|
8848
|
+
params: _nullishCoalesce(_optionalChain([newState, 'access', _124 => _124.matches, 'access', _125 => _125[0], 'optionalAccess', _126 => _126.params]), () => ( {}))
|
|
8849
|
+
});
|
|
8812
8850
|
}
|
|
8813
8851
|
});
|
|
8814
8852
|
}
|
|
@@ -8942,12 +8980,12 @@ function RouterProvider({
|
|
|
8942
8980
|
go: (n) => router.navigate(n),
|
|
8943
8981
|
push: (to, state2, opts) => router.navigate(to, {
|
|
8944
8982
|
state: state2,
|
|
8945
|
-
preventScrollReset: _optionalChain([opts, 'optionalAccess',
|
|
8983
|
+
preventScrollReset: _optionalChain([opts, 'optionalAccess', _127 => _127.preventScrollReset])
|
|
8946
8984
|
}),
|
|
8947
8985
|
replace: (to, state2, opts) => router.navigate(to, {
|
|
8948
8986
|
replace: true,
|
|
8949
8987
|
state: state2,
|
|
8950
|
-
preventScrollReset: _optionalChain([opts, 'optionalAccess',
|
|
8988
|
+
preventScrollReset: _optionalChain([opts, 'optionalAccess', _128 => _128.preventScrollReset])
|
|
8951
8989
|
})
|
|
8952
8990
|
};
|
|
8953
8991
|
}, [router]);
|
|
@@ -9137,12 +9175,25 @@ function Await({
|
|
|
9137
9175
|
resolve
|
|
9138
9176
|
}) {
|
|
9139
9177
|
let dataRouterContext = React9.useContext(DataRouterContext);
|
|
9178
|
+
let dataRouterStateContext = React9.useContext(DataRouterStateContext);
|
|
9179
|
+
let onError = React9.useCallback(
|
|
9180
|
+
(error, errorInfo) => {
|
|
9181
|
+
if (dataRouterContext && dataRouterContext.unstable_onError && dataRouterStateContext) {
|
|
9182
|
+
dataRouterContext.unstable_onError(error, {
|
|
9183
|
+
location: dataRouterStateContext.location,
|
|
9184
|
+
params: _optionalChain([dataRouterStateContext, 'access', _129 => _129.matches, 'optionalAccess', _130 => _130[0], 'optionalAccess', _131 => _131.params]) || {},
|
|
9185
|
+
errorInfo
|
|
9186
|
+
});
|
|
9187
|
+
}
|
|
9188
|
+
},
|
|
9189
|
+
[dataRouterContext, dataRouterStateContext]
|
|
9190
|
+
);
|
|
9140
9191
|
return /* @__PURE__ */ React9.createElement(
|
|
9141
9192
|
AwaitErrorBoundary,
|
|
9142
9193
|
{
|
|
9143
9194
|
resolve,
|
|
9144
9195
|
errorElement,
|
|
9145
|
-
|
|
9196
|
+
onError
|
|
9146
9197
|
},
|
|
9147
9198
|
/* @__PURE__ */ React9.createElement(ResolveAwait, null, children)
|
|
9148
9199
|
);
|
|
@@ -9156,8 +9207,8 @@ var AwaitErrorBoundary = class extends React9.Component {
|
|
|
9156
9207
|
return { error };
|
|
9157
9208
|
}
|
|
9158
9209
|
componentDidCatch(error, errorInfo) {
|
|
9159
|
-
if (this.props.
|
|
9160
|
-
this.props.
|
|
9210
|
+
if (this.props.onError) {
|
|
9211
|
+
this.props.onError(error, errorInfo);
|
|
9161
9212
|
} else {
|
|
9162
9213
|
console.error(
|
|
9163
9214
|
"<Await> caught the following error during render",
|
|
@@ -9191,7 +9242,7 @@ var AwaitErrorBoundary = class extends React9.Component {
|
|
|
9191
9242
|
promise = resolve.then(
|
|
9192
9243
|
(data2) => Object.defineProperty(resolve, "_data", { get: () => data2 }),
|
|
9193
9244
|
(error) => {
|
|
9194
|
-
_optionalChain([this, 'access',
|
|
9245
|
+
_optionalChain([this, 'access', _132 => _132.props, 'access', _133 => _133.onError, 'optionalCall', _134 => _134(error)]);
|
|
9195
9246
|
Object.defineProperty(resolve, "_error", { get: () => error });
|
|
9196
9247
|
}
|
|
9197
9248
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { f as RouterProviderProps$1, e as RouterInit, u as unstable_ClientInstrumentation, g as unstable_ClientOnErrorFunction } from './router-
|
|
3
|
-
export { D as unstable_DecodeActionFunction, a as unstable_DecodeFormStateFunction, b as unstable_DecodeReplyFunction, R as unstable_RSCHydratedRouter, d as unstable_RSCManifestPayload, e as unstable_RSCPayload, f as unstable_RSCRenderPayload, c as unstable_createCallServer } from './browser-
|
|
2
|
+
import { f as RouterProviderProps$1, e as RouterInit, u as unstable_ClientInstrumentation, g as unstable_ClientOnErrorFunction } from './router-CAvh_Drx.mjs';
|
|
3
|
+
export { D as unstable_DecodeActionFunction, a as unstable_DecodeFormStateFunction, b as unstable_DecodeReplyFunction, R as unstable_RSCHydratedRouter, d as unstable_RSCManifestPayload, e as unstable_RSCPayload, f as unstable_RSCRenderPayload, c as unstable_createCallServer } from './browser-C07r42Tt.mjs';
|
|
4
4
|
|
|
5
5
|
type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
|
|
6
6
|
declare function RouterProvider(props: Omit<RouterProviderProps, "flushSync">): React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { RouterProviderProps as RouterProviderProps$1, RouterInit, unstable_ClientOnErrorFunction } from 'react-router';
|
|
3
|
-
import { u as unstable_ClientInstrumentation } from './instrumentation-
|
|
4
|
-
export { D as unstable_DecodeActionFunction, a as unstable_DecodeFormStateFunction, b as unstable_DecodeReplyFunction, R as unstable_RSCHydratedRouter, d as unstable_RSCManifestPayload, e as unstable_RSCPayload, f as unstable_RSCRenderPayload, c as unstable_createCallServer } from './browser-
|
|
3
|
+
import { u as unstable_ClientInstrumentation } from './instrumentation-Unc20tLk.js';
|
|
4
|
+
export { D as unstable_DecodeActionFunction, a as unstable_DecodeFormStateFunction, b as unstable_DecodeReplyFunction, R as unstable_RSCHydratedRouter, d as unstable_RSCManifestPayload, e as unstable_RSCPayload, f as unstable_RSCRenderPayload, c as unstable_createCallServer } from './browser-BbBXFHbO.js';
|
|
5
5
|
|
|
6
6
|
type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
|
|
7
7
|
declare function RouterProvider(props: Omit<RouterProviderProps, "flushSync">): React.JSX.Element;
|
|
@@ -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 _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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 v7.9.
|
|
2
|
+
* react-router v7.9.6-pre.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkDB25NZIAjs = require('./chunk-DB25NZIA.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
@@ -32,7 +32,7 @@ var _chunkKXZSW2DOjs = require('./chunk-KXZSW2DO.js');
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkTUTX3ERHjs = require('./chunk-TUTX3ERH.js');
|
|
36
36
|
|
|
37
37
|
// lib/dom-export/dom-router-provider.tsx
|
|
38
38
|
var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react); var React3 = _interopRequireWildcard(_react);
|
|
@@ -204,7 +204,7 @@ function HydratedRouter(props) {
|
|
|
204
204
|
}, []);
|
|
205
205
|
React2.useEffect(() => {
|
|
206
206
|
if (process.env.NODE_ENV === "development" && criticalCss === void 0) {
|
|
207
|
-
document.querySelectorAll(`[${
|
|
207
|
+
document.querySelectorAll(`[${_chunkTUTX3ERHjs.CRITICAL_CSS_DATA_ATTRIBUTE}]`).forEach((element) => element.remove());
|
|
208
208
|
}
|
|
209
209
|
}, [criticalCss]);
|
|
210
210
|
let [location2, setLocation] = React2.useState(router.state.location);
|
|
@@ -373,10 +373,10 @@ function createRouterFromPayload({
|
|
|
373
373
|
};
|
|
374
374
|
if (payload.type !== "render") throw new Error("Invalid payload type");
|
|
375
375
|
globalVar.__reactRouterRouteModules = _nullishCoalesce(globalVar.__reactRouterRouteModules, () => ( {}));
|
|
376
|
-
|
|
376
|
+
_chunkDB25NZIAjs.populateRSCRouteModules.call(void 0, globalVar.__reactRouterRouteModules, payload.matches);
|
|
377
377
|
let patches = /* @__PURE__ */ new Map();
|
|
378
378
|
_optionalChain([payload, 'access', _22 => _22.patches, 'optionalAccess', _23 => _23.forEach, 'call', _24 => _24((patch) => {
|
|
379
|
-
|
|
379
|
+
_chunkTUTX3ERHjs.invariant.call(void 0, patch.parentId, "Invalid patch parentId");
|
|
380
380
|
if (!patches.has(patch.parentId)) {
|
|
381
381
|
patches.set(patch.parentId, []);
|
|
382
382
|
}
|
|
@@ -398,12 +398,12 @@ function createRouterFromPayload({
|
|
|
398
398
|
}
|
|
399
399
|
return [route];
|
|
400
400
|
}, []);
|
|
401
|
-
globalVar.__reactRouterDataRouter =
|
|
401
|
+
globalVar.__reactRouterDataRouter = _chunkTUTX3ERHjs.createRouter.call(void 0, {
|
|
402
402
|
routes,
|
|
403
403
|
getContext,
|
|
404
404
|
basename: payload.basename,
|
|
405
|
-
history:
|
|
406
|
-
hydrationData:
|
|
405
|
+
history: _chunkTUTX3ERHjs.createBrowserHistory.call(void 0, ),
|
|
406
|
+
hydrationData: _chunkDB25NZIAjs.getHydrationData.call(void 0, {
|
|
407
407
|
state: {
|
|
408
408
|
loaderData: payload.loaderData,
|
|
409
409
|
actionData: payload.actionData,
|
|
@@ -412,7 +412,7 @@ function createRouterFromPayload({
|
|
|
412
412
|
routes,
|
|
413
413
|
getRouteInfo: (routeId) => {
|
|
414
414
|
let match = payload.matches.find((m) => m.id === routeId);
|
|
415
|
-
|
|
415
|
+
_chunkTUTX3ERHjs.invariant.call(void 0, match, "Route not found in payload");
|
|
416
416
|
return {
|
|
417
417
|
clientLoader: match.clientLoader,
|
|
418
418
|
hasLoader: match.hasLoader,
|
|
@@ -510,9 +510,9 @@ function createRouterFromPayload({
|
|
|
510
510
|
routeModules: globalVar.__reactRouterRouteModules
|
|
511
511
|
};
|
|
512
512
|
}
|
|
513
|
-
var renderedRoutesContext =
|
|
513
|
+
var renderedRoutesContext = _chunkTUTX3ERHjs.createContext.call(void 0, );
|
|
514
514
|
function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReadableStream, fetchImplementation) {
|
|
515
|
-
let dataStrategy =
|
|
515
|
+
let dataStrategy = _chunkTUTX3ERHjs.getSingleFetchDataStrategyImpl.call(void 0,
|
|
516
516
|
getRouter,
|
|
517
517
|
(match) => {
|
|
518
518
|
let M = match;
|
|
@@ -566,20 +566,20 @@ function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReada
|
|
|
566
566
|
function getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation) {
|
|
567
567
|
return async (args, basename, targetRoutes) => {
|
|
568
568
|
let { request, context } = args;
|
|
569
|
-
let url =
|
|
569
|
+
let url = _chunkTUTX3ERHjs.singleFetchUrl.call(void 0, request.url, basename, "rsc");
|
|
570
570
|
if (request.method === "GET") {
|
|
571
|
-
url =
|
|
571
|
+
url = _chunkTUTX3ERHjs.stripIndexParam.call(void 0, url);
|
|
572
572
|
if (targetRoutes) {
|
|
573
573
|
url.searchParams.set("_routes", targetRoutes.join(","));
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
576
|
let res = await fetchImplementation(
|
|
577
|
-
new Request(url, await
|
|
577
|
+
new Request(url, await _chunkTUTX3ERHjs.createRequestInit.call(void 0, request))
|
|
578
578
|
);
|
|
579
579
|
if (res.status >= 400 && !res.headers.has("X-Remix-Response")) {
|
|
580
|
-
throw new (0,
|
|
580
|
+
throw new (0, _chunkTUTX3ERHjs.ErrorResponseImpl)(res.status, res.statusText, await res.text());
|
|
581
581
|
}
|
|
582
|
-
|
|
582
|
+
_chunkTUTX3ERHjs.invariant.call(void 0, res.body, "No response body to decode");
|
|
583
583
|
try {
|
|
584
584
|
const payload = await createFromReadableStream(res.body, {
|
|
585
585
|
temporaryReferences: void 0
|
|
@@ -603,7 +603,7 @@ function getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation)
|
|
|
603
603
|
}
|
|
604
604
|
context.get(renderedRoutesContext).push(...payload.matches);
|
|
605
605
|
let results = { routes: {} };
|
|
606
|
-
const dataKey =
|
|
606
|
+
const dataKey = _chunkTUTX3ERHjs.isMutationMethod.call(void 0, request.method) ? "actionData" : "loaderData";
|
|
607
607
|
for (let [routeId, data] of Object.entries(payload[dataKey] || {})) {
|
|
608
608
|
results.routes[routeId] = { data };
|
|
609
609
|
}
|
|
@@ -636,7 +636,7 @@ function RSCHydratedRouter({
|
|
|
636
636
|
[createFromReadableStream, payload, fetchImplementation, getContext]
|
|
637
637
|
);
|
|
638
638
|
React3.useEffect(() => {
|
|
639
|
-
|
|
639
|
+
_chunkTUTX3ERHjs.setIsHydrated.call(void 0, );
|
|
640
640
|
}, []);
|
|
641
641
|
React3.useLayoutEffect(() => {
|
|
642
642
|
const globalVar = window;
|
|
@@ -723,7 +723,7 @@ function RSCHydratedRouter({
|
|
|
723
723
|
routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" },
|
|
724
724
|
routeModules
|
|
725
725
|
};
|
|
726
|
-
return /* @__PURE__ */ React3.createElement(
|
|
726
|
+
return /* @__PURE__ */ React3.createElement(_chunkTUTX3ERHjs.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React3.createElement(_chunkDB25NZIAjs.RSCRouterGlobalErrorBoundary, { location: location2 }, /* @__PURE__ */ React3.createElement(_chunkTUTX3ERHjs.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React3.createElement(_chunkTUTX3ERHjs.UNSTABLE_TransitionEnabledRouterProvider, { router: router2, flushSync: ReactDOM2.flushSync }))));
|
|
727
727
|
}
|
|
728
728
|
function createRouteFromServerManifest(match, payload) {
|
|
729
729
|
let hasInitialData = payload && match.id in payload.loaderData;
|
|
@@ -734,8 +734,8 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
734
734
|
// the server loader flow regardless of whether the client loader calls
|
|
735
735
|
// `serverLoader` or not, otherwise we'll have nothing to render.
|
|
736
736
|
match.hasComponent && !match.element;
|
|
737
|
-
|
|
738
|
-
|
|
737
|
+
_chunkTUTX3ERHjs.invariant.call(void 0, window.__reactRouterRouteModules);
|
|
738
|
+
_chunkDB25NZIAjs.populateRSCRouteModules.call(void 0, window.__reactRouterRouteModules, match);
|
|
739
739
|
let dataRoute = {
|
|
740
740
|
id: match.id,
|
|
741
741
|
element: match.element,
|
|
@@ -785,7 +785,7 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
785
785
|
return await callSingleFetch(singleFetch);
|
|
786
786
|
}
|
|
787
787
|
}) : match.hasAction ? (_, singleFetch) => callSingleFetch(singleFetch) : () => {
|
|
788
|
-
throw
|
|
788
|
+
throw _chunkTUTX3ERHjs.noActionDefinedError.call(void 0, "action", match.id);
|
|
789
789
|
},
|
|
790
790
|
path: match.path,
|
|
791
791
|
shouldRevalidate: match.shouldRevalidate,
|
|
@@ -798,7 +798,7 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
798
798
|
hasShouldRevalidate: match.shouldRevalidate != null
|
|
799
799
|
};
|
|
800
800
|
if (typeof dataRoute.loader === "function") {
|
|
801
|
-
dataRoute.loader.hydrate =
|
|
801
|
+
dataRoute.loader.hydrate = _chunkTUTX3ERHjs.shouldHydrateRouteLoader.call(void 0,
|
|
802
802
|
match.id,
|
|
803
803
|
match.clientLoader,
|
|
804
804
|
match.hasLoader,
|
|
@@ -808,7 +808,7 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
808
808
|
return dataRoute;
|
|
809
809
|
}
|
|
810
810
|
function callSingleFetch(singleFetch) {
|
|
811
|
-
|
|
811
|
+
_chunkTUTX3ERHjs.invariant.call(void 0, typeof singleFetch === "function", "Invalid singleFetch parameter");
|
|
812
812
|
return singleFetch();
|
|
813
813
|
}
|
|
814
814
|
function preventInvalidServerHandlerCall(type, routeId, hasHandler) {
|
|
@@ -816,7 +816,7 @@ function preventInvalidServerHandlerCall(type, routeId, hasHandler) {
|
|
|
816
816
|
let fn = type === "action" ? "serverAction()" : "serverLoader()";
|
|
817
817
|
let msg = `You are trying to call ${fn} on a route that does not have a server ${type} (routeId: "${routeId}")`;
|
|
818
818
|
console.error(msg);
|
|
819
|
-
throw new (0,
|
|
819
|
+
throw new (0, _chunkTUTX3ERHjs.ErrorResponseImpl)(400, "Bad Request", new Error(msg), true);
|
|
820
820
|
}
|
|
821
821
|
}
|
|
822
822
|
var nextPaths = /* @__PURE__ */ new Set();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v7.9.
|
|
2
|
+
* react-router v7.9.6-pre.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
deserializeErrors,
|
|
15
15
|
getHydrationData,
|
|
16
16
|
populateRSCRouteModules
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-P6ZEAD4C.mjs";
|
|
18
18
|
import {
|
|
19
19
|
CRITICAL_CSS_DATA_ATTRIBUTE,
|
|
20
20
|
ErrorResponseImpl,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
singleFetchUrl,
|
|
44
44
|
stripIndexParam,
|
|
45
45
|
useFogOFWarDiscovery
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-7TW6LJC6.mjs";
|
|
47
47
|
|
|
48
48
|
// lib/dom-export/dom-router-provider.tsx
|
|
49
49
|
import * as React from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bE as RouteManifest, o as RouteModules, Q as HydrationState, a1 as DataRouteObject, a as ClientLoaderFunction, a5 as StaticHandlerContext, bF as ServerRouteModule, q as MiddlewareEnabled, c as RouterContextProvider, r as AppLoadContext, al as LoaderFunctionArgs, ac as ActionFunctionArgs, au as unstable_ServerInstrumentation, aj as HTMLFormMethod, ah as FormEncType, w as RelativeRoutingType, bh as PageLinkDescriptor, T as To, bG as History, a4 as GetScrollRestorationKeyFunction, e as RouterInit, bH as FutureConfig$1, u as unstable_ClientInstrumentation, p as DataStrategyFunction, a0 as PatchRoutesOnNavigationFunction, s as NavigateOptions, a6 as Fetcher, K as RouteObject, n as Router, v as SerializeFrom, B as BlockerFunction, L as Location, bI as CreateStaticHandlerOptions$1, a2 as StaticHandler } from './instrumentation-
|
|
1
|
+
import { bE as RouteManifest, o as RouteModules, Q as HydrationState, a1 as DataRouteObject, a as ClientLoaderFunction, a5 as StaticHandlerContext, bF as ServerRouteModule, q as MiddlewareEnabled, c as RouterContextProvider, r as AppLoadContext, al as LoaderFunctionArgs, ac as ActionFunctionArgs, au as unstable_ServerInstrumentation, aj as HTMLFormMethod, ah as FormEncType, w as RelativeRoutingType, bh as PageLinkDescriptor, T as To, bG as History, a4 as GetScrollRestorationKeyFunction, e as RouterInit, bH as FutureConfig$1, u as unstable_ClientInstrumentation, p as DataStrategyFunction, a0 as PatchRoutesOnNavigationFunction, s as NavigateOptions, a6 as Fetcher, K as RouteObject, n as Router, v as SerializeFrom, B as BlockerFunction, L as Location, bI as CreateStaticHandlerOptions$1, a2 as StaticHandler } from './instrumentation-Unc20tLk.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
|
|
4
4
|
interface Route {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bE as RouteManifest, q as RouteModules, W as HydrationState, a3 as DataRouteObject, a as ClientLoaderFunction, a7 as StaticHandlerContext, bF as ServerRouteModule, s as MiddlewareEnabled, c as RouterContextProvider, t as AppLoadContext, an as LoaderFunctionArgs, ae as ActionFunctionArgs, aw as unstable_ServerInstrumentation, al as HTMLFormMethod, aj as FormEncType, y as RelativeRoutingType, bh as PageLinkDescriptor, T as To, bG as History, a6 as GetScrollRestorationKeyFunction, e as RouterInit, bH as FutureConfig$1, u as unstable_ClientInstrumentation, r as DataStrategyFunction, a2 as PatchRoutesOnNavigationFunction, v as NavigateOptions, a8 as Fetcher, Q as RouteObject, p as Router, x as SerializeFrom, B as BlockerFunction, L as Location, bI as CreateStaticHandlerOptions$1, a4 as StaticHandler } from './router-
|
|
1
|
+
import { bE as RouteManifest, q as RouteModules, W as HydrationState, a3 as DataRouteObject, a as ClientLoaderFunction, a7 as StaticHandlerContext, bF as ServerRouteModule, s as MiddlewareEnabled, c as RouterContextProvider, t as AppLoadContext, an as LoaderFunctionArgs, ae as ActionFunctionArgs, aw as unstable_ServerInstrumentation, al as HTMLFormMethod, aj as FormEncType, y as RelativeRoutingType, bh as PageLinkDescriptor, T as To, bG as History, a6 as GetScrollRestorationKeyFunction, e as RouterInit, bH as FutureConfig$1, u as unstable_ClientInstrumentation, r as DataStrategyFunction, a2 as PatchRoutesOnNavigationFunction, v as NavigateOptions, a8 as Fetcher, Q as RouteObject, p as Router, x as SerializeFrom, B as BlockerFunction, L as Location, bI as CreateStaticHandlerOptions$1, a4 as StaticHandler } from './router-CAvh_Drx.mjs';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
|
|
4
4
|
interface Route {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { b2 as MemoryRouter, b3 as Navigate, b4 as Outlet, b5 as Route, b6 as Router, b7 as RouterProvider, b8 as Routes, aR as UNSAFE_AwaitContextProvider, by as UNSAFE_WithComponentProps, bC as UNSAFE_WithErrorBoundaryProps, bA as UNSAFE_WithHydrateFallbackProps } from './router-
|
|
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 { b2 as MemoryRouter, b3 as Navigate, b4 as Outlet, b5 as Route, b6 as Router, b7 as RouterProvider, b8 as Routes, aR as UNSAFE_AwaitContextProvider, by as UNSAFE_WithComponentProps, bC as UNSAFE_WithErrorBoundaryProps, bA as UNSAFE_WithHydrateFallbackProps } from './router-CAvh_Drx.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-rcoGPJhU.mjs';
|
|
3
3
|
import 'react';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { b2 as MemoryRouter, b3 as Navigate, b4 as Outlet, b5 as Route, b6 as Router, b7 as RouterProvider, b8 as Routes, aP as UNSAFE_AwaitContextProvider, by as UNSAFE_WithComponentProps, bC as UNSAFE_WithErrorBoundaryProps, bA as UNSAFE_WithHydrateFallbackProps } from './instrumentation-
|
|
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 { b2 as MemoryRouter, b3 as Navigate, b4 as Outlet, b5 as Route, b6 as Router, b7 as RouterProvider, b8 as Routes, aP as UNSAFE_AwaitContextProvider, by as UNSAFE_WithComponentProps, bC as UNSAFE_WithErrorBoundaryProps, bA as UNSAFE_WithHydrateFallbackProps } from './instrumentation-Unc20tLk.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-Da3kmxNd.js';
|
|
3
3
|
import 'react';
|