react-router 0.0.0-experimental-6b51a129b → 0.0.0-experimental-2bfe0a2f2
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-P6R3I7EZ.mjs → chunk-MADJIA3T.mjs} +85 -28
- package/dist/development/dom-export.d.mts +2 -2
- package/dist/development/dom-export.d.ts +2 -2
- package/dist/development/dom-export.js +34 -23
- package/dist/development/dom-export.mjs +2 -2
- package/dist/development/{fog-of-war-bBShLkWZ.d.mts → fog-of-war-BGx5gCsj.d.mts} +1 -1
- package/dist/{production/fog-of-war-Bw4B6JoE.d.ts → development/fog-of-war-BtD7bJau.d.ts} +1 -1
- package/dist/development/index.d.mts +4 -5
- package/dist/development/index.d.ts +4 -5
- package/dist/development/index.js +85 -28
- package/dist/development/index.mjs +2 -2
- package/dist/development/lib/types/route-module.d.mts +9 -7
- package/dist/development/lib/types/route-module.d.ts +9 -7
- package/dist/development/lib/types/route-module.js +1 -1
- package/dist/development/lib/types/route-module.mjs +1 -1
- package/dist/{production/route-data-CcXs0cOY.d.mts → development/route-data-C8zta6G6.d.mts} +25 -6
- package/dist/development/{route-data-CcXs0cOY.d.mts → route-data-C8zta6G6.d.ts} +25 -6
- package/dist/production/{chunk-SWYN3NN4.mjs → chunk-6RN32PD3.mjs} +85 -28
- package/dist/production/dom-export.d.mts +2 -2
- package/dist/production/dom-export.d.ts +2 -2
- package/dist/production/dom-export.js +34 -23
- package/dist/production/dom-export.mjs +2 -2
- package/dist/production/{fog-of-war-bBShLkWZ.d.mts → fog-of-war-BGx5gCsj.d.mts} +1 -1
- package/dist/{development/fog-of-war-Bw4B6JoE.d.ts → production/fog-of-war-BtD7bJau.d.ts} +1 -1
- package/dist/production/index.d.mts +4 -5
- package/dist/production/index.d.ts +4 -5
- package/dist/production/index.js +85 -28
- package/dist/production/index.mjs +2 -2
- package/dist/production/lib/types/route-module.d.mts +9 -7
- package/dist/production/lib/types/route-module.d.ts +9 -7
- package/dist/production/lib/types/route-module.js +1 -1
- package/dist/production/lib/types/route-module.mjs +1 -1
- package/dist/{development/route-data-CcXs0cOY.d.ts → production/route-data-C8zta6G6.d.mts} +25 -6
- package/dist/production/{route-data-CcXs0cOY.d.ts → route-data-C8zta6G6.d.ts} +25 -6
- package/package.json +1 -1
- package/dist/development/data-CQbyyGzl.d.mts +0 -11
- package/dist/development/data-CQbyyGzl.d.ts +0 -11
- package/dist/production/data-CQbyyGzl.d.mts +0 -11
- package/dist/production/data-CQbyyGzl.d.ts +0 -11
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-2bfe0a2f2
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -2628,6 +2628,7 @@ function createStaticHandler(routes, opts) {
|
|
|
2628
2628
|
try {
|
|
2629
2629
|
let tailIdx = [...matches].reverse().findIndex((m) => !filterMatchesToLoad || filterMatchesToLoad(m));
|
|
2630
2630
|
let lowestLoadingIdx = tailIdx < 0 ? 0 : matches.length - 1 - tailIdx;
|
|
2631
|
+
let renderedStaticContext;
|
|
2631
2632
|
let response = await runMiddlewarePipeline(
|
|
2632
2633
|
{
|
|
2633
2634
|
request,
|
|
@@ -2652,11 +2653,46 @@ function createStaticHandler(routes, opts) {
|
|
|
2652
2653
|
if (isResponse(result)) {
|
|
2653
2654
|
return result;
|
|
2654
2655
|
}
|
|
2655
|
-
|
|
2656
|
+
renderedStaticContext = {
|
|
2656
2657
|
location,
|
|
2657
2658
|
basename,
|
|
2658
2659
|
...result
|
|
2659
|
-
}
|
|
2660
|
+
};
|
|
2661
|
+
let res = await respond(renderedStaticContext);
|
|
2662
|
+
return res;
|
|
2663
|
+
},
|
|
2664
|
+
async (e) => {
|
|
2665
|
+
if (isResponse(e.error)) {
|
|
2666
|
+
return e.error;
|
|
2667
|
+
}
|
|
2668
|
+
let boundary = findNearestBoundary(matches, e.routeId);
|
|
2669
|
+
let errorContext;
|
|
2670
|
+
if (renderedStaticContext) {
|
|
2671
|
+
if (e.routeId in renderedStaticContext.loaderData) {
|
|
2672
|
+
renderedStaticContext.loaderData[e.routeId] = void 0;
|
|
2673
|
+
}
|
|
2674
|
+
errorContext = getStaticContextFromError(
|
|
2675
|
+
dataRoutes,
|
|
2676
|
+
renderedStaticContext,
|
|
2677
|
+
e.error,
|
|
2678
|
+
boundary.route.id
|
|
2679
|
+
);
|
|
2680
|
+
} else {
|
|
2681
|
+
errorContext = {
|
|
2682
|
+
matches,
|
|
2683
|
+
location,
|
|
2684
|
+
basename,
|
|
2685
|
+
loaderData: {},
|
|
2686
|
+
actionData: null,
|
|
2687
|
+
errors: {
|
|
2688
|
+
[boundary.route.id]: e.error
|
|
2689
|
+
},
|
|
2690
|
+
statusCode: isRouteErrorResponse(e.error) ? e.error.status : 500,
|
|
2691
|
+
actionHeaders: {},
|
|
2692
|
+
loaderHeaders: {}
|
|
2693
|
+
};
|
|
2694
|
+
}
|
|
2695
|
+
let res = await respond(errorContext);
|
|
2660
2696
|
return res;
|
|
2661
2697
|
}
|
|
2662
2698
|
);
|
|
@@ -2749,6 +2785,15 @@ function createStaticHandler(routes, opts) {
|
|
|
2749
2785
|
throw error;
|
|
2750
2786
|
}
|
|
2751
2787
|
throw new Error("Expected a response from queryRoute");
|
|
2788
|
+
},
|
|
2789
|
+
(e) => {
|
|
2790
|
+
if (isResponse(e.error)) {
|
|
2791
|
+
return respond(e.error);
|
|
2792
|
+
}
|
|
2793
|
+
return new Response(String(e.error), {
|
|
2794
|
+
status: 500,
|
|
2795
|
+
statusText: "Unexpected Server Error"
|
|
2796
|
+
});
|
|
2752
2797
|
}
|
|
2753
2798
|
);
|
|
2754
2799
|
return response;
|
|
@@ -3059,12 +3104,13 @@ function createStaticHandler(routes, opts) {
|
|
|
3059
3104
|
queryRoute
|
|
3060
3105
|
};
|
|
3061
3106
|
}
|
|
3062
|
-
function getStaticContextFromError(routes, handlerContext, error) {
|
|
3107
|
+
function getStaticContextFromError(routes, handlerContext, error, boundaryId) {
|
|
3108
|
+
let errorBoundaryId = boundaryId || handlerContext._deepestRenderedBoundaryId || routes[0].id;
|
|
3063
3109
|
return {
|
|
3064
3110
|
...handlerContext,
|
|
3065
3111
|
statusCode: isRouteErrorResponse(error) ? error.status : 500,
|
|
3066
3112
|
errors: {
|
|
3067
|
-
[
|
|
3113
|
+
[errorBoundaryId]: error
|
|
3068
3114
|
}
|
|
3069
3115
|
};
|
|
3070
3116
|
}
|
|
@@ -3486,6 +3532,11 @@ async function defaultDataStrategy(args) {
|
|
|
3486
3532
|
results2.forEach((result, i) => {
|
|
3487
3533
|
keyedResults[matchesToLoad[i].route.id] = result;
|
|
3488
3534
|
});
|
|
3535
|
+
},
|
|
3536
|
+
(e, keyedResults) => {
|
|
3537
|
+
Object.assign(keyedResults, {
|
|
3538
|
+
[e.routeId]: { type: "error", result: e.error }
|
|
3539
|
+
});
|
|
3489
3540
|
}
|
|
3490
3541
|
);
|
|
3491
3542
|
return results;
|
|
@@ -3495,8 +3546,11 @@ async function runMiddlewarePipeline({
|
|
|
3495
3546
|
params,
|
|
3496
3547
|
context,
|
|
3497
3548
|
matches
|
|
3498
|
-
}, lastIndex, propagateResult, handler) {
|
|
3499
|
-
let
|
|
3549
|
+
}, lastIndex, propagateResult, handler, errorHandler) {
|
|
3550
|
+
let middlewareState = {
|
|
3551
|
+
keyedResults: {},
|
|
3552
|
+
propagateResult
|
|
3553
|
+
};
|
|
3500
3554
|
try {
|
|
3501
3555
|
let result = await callRouteMiddleware(
|
|
3502
3556
|
matches.slice(0, lastIndex + 1).flatMap(
|
|
@@ -3504,11 +3558,10 @@ async function runMiddlewarePipeline({
|
|
|
3504
3558
|
),
|
|
3505
3559
|
0,
|
|
3506
3560
|
{ request, params, context },
|
|
3507
|
-
|
|
3508
|
-
propagateResult,
|
|
3561
|
+
middlewareState,
|
|
3509
3562
|
handler
|
|
3510
3563
|
);
|
|
3511
|
-
return propagateResult ? result : keyedResults;
|
|
3564
|
+
return middlewareState.propagateResult ? result : middlewareState.keyedResults;
|
|
3512
3565
|
} catch (e) {
|
|
3513
3566
|
if (!(e instanceof MiddlewareError)) {
|
|
3514
3567
|
throw e;
|
|
@@ -3516,10 +3569,8 @@ async function runMiddlewarePipeline({
|
|
|
3516
3569
|
if (propagateResult && isResponse(e.error)) {
|
|
3517
3570
|
throw e.error;
|
|
3518
3571
|
}
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
[e.routeId]: { type: "error", result: e.error }
|
|
3522
|
-
};
|
|
3572
|
+
let result = await errorHandler(e, middlewareState.keyedResults);
|
|
3573
|
+
return middlewareState.propagateResult ? result : middlewareState.keyedResults;
|
|
3523
3574
|
}
|
|
3524
3575
|
}
|
|
3525
3576
|
var MiddlewareError = class {
|
|
@@ -3528,7 +3579,7 @@ var MiddlewareError = class {
|
|
|
3528
3579
|
this.error = error;
|
|
3529
3580
|
}
|
|
3530
3581
|
};
|
|
3531
|
-
async function callRouteMiddleware(middlewares, idx, args,
|
|
3582
|
+
async function callRouteMiddleware(middlewares, idx, args, middlewareState, handler) {
|
|
3532
3583
|
let { request } = args;
|
|
3533
3584
|
if (request.signal.aborted) {
|
|
3534
3585
|
if (request.signal.reason) {
|
|
@@ -3540,7 +3591,7 @@ async function callRouteMiddleware(middlewares, idx, args, keyedResults, propaga
|
|
|
3540
3591
|
}
|
|
3541
3592
|
let tuple = middlewares[idx];
|
|
3542
3593
|
if (!tuple) {
|
|
3543
|
-
let result = await handler(keyedResults);
|
|
3594
|
+
let result = await handler(middlewareState.keyedResults);
|
|
3544
3595
|
return result;
|
|
3545
3596
|
}
|
|
3546
3597
|
let [routeId, middleware] = tuple;
|
|
@@ -3554,18 +3605,16 @@ async function callRouteMiddleware(middlewares, idx, args, keyedResults, propaga
|
|
|
3554
3605
|
middlewares,
|
|
3555
3606
|
idx + 1,
|
|
3556
3607
|
args,
|
|
3557
|
-
|
|
3558
|
-
propagateResult,
|
|
3608
|
+
middlewareState,
|
|
3559
3609
|
handler
|
|
3560
3610
|
);
|
|
3561
|
-
|
|
3611
|
+
if (middlewareState.propagateResult) {
|
|
3612
|
+
return result;
|
|
3613
|
+
}
|
|
3562
3614
|
};
|
|
3563
3615
|
try {
|
|
3564
|
-
let result = await middleware(args, next);
|
|
3565
|
-
|
|
3566
|
-
result = await next();
|
|
3567
|
-
}
|
|
3568
|
-
return result;
|
|
3616
|
+
let result = await middleware({ ...args, next });
|
|
3617
|
+
return nextCalled ? result : next();
|
|
3569
3618
|
} catch (e) {
|
|
3570
3619
|
if (e instanceof MiddlewareError) {
|
|
3571
3620
|
throw e;
|
|
@@ -5897,6 +5946,11 @@ function StreamTransfer({
|
|
|
5897
5946
|
)));
|
|
5898
5947
|
}
|
|
5899
5948
|
}
|
|
5949
|
+
function middlewareErrorHandler(e, keyedResults) {
|
|
5950
|
+
Object.assign(keyedResults, {
|
|
5951
|
+
[e.routeId]: { type: "error", result: e.error }
|
|
5952
|
+
});
|
|
5953
|
+
}
|
|
5900
5954
|
function getSingleFetchDataStrategy(manifest, routeModules, getRouter) {
|
|
5901
5955
|
return async (args) => {
|
|
5902
5956
|
let { request, matches, fetcherKey } = args;
|
|
@@ -5908,7 +5962,8 @@ function getSingleFetchDataStrategy(manifest, routeModules, getRouter) {
|
|
|
5908
5962
|
async (keyedResults) => {
|
|
5909
5963
|
let results = await singleFetchActionStrategy(request, matches);
|
|
5910
5964
|
Object.assign(keyedResults, results);
|
|
5911
|
-
}
|
|
5965
|
+
},
|
|
5966
|
+
middlewareErrorHandler
|
|
5912
5967
|
);
|
|
5913
5968
|
}
|
|
5914
5969
|
if (fetcherKey) {
|
|
@@ -5922,7 +5977,8 @@ function getSingleFetchDataStrategy(manifest, routeModules, getRouter) {
|
|
|
5922
5977
|
matches
|
|
5923
5978
|
);
|
|
5924
5979
|
Object.assign(keyedResults, results);
|
|
5925
|
-
}
|
|
5980
|
+
},
|
|
5981
|
+
middlewareErrorHandler
|
|
5926
5982
|
);
|
|
5927
5983
|
}
|
|
5928
5984
|
let lowestLoadingIndex = getLowestLoadingIndex(
|
|
@@ -5944,7 +6000,8 @@ function getSingleFetchDataStrategy(manifest, routeModules, getRouter) {
|
|
|
5944
6000
|
matches
|
|
5945
6001
|
);
|
|
5946
6002
|
Object.assign(keyedResults, results);
|
|
5947
|
-
}
|
|
6003
|
+
},
|
|
6004
|
+
middlewareErrorHandler
|
|
5948
6005
|
);
|
|
5949
6006
|
};
|
|
5950
6007
|
}
|
|
@@ -7287,7 +7344,7 @@ function mergeRefs(...refs) {
|
|
|
7287
7344
|
var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
|
|
7288
7345
|
try {
|
|
7289
7346
|
if (isBrowser) {
|
|
7290
|
-
window.__reactRouterVersion = "0.0.0-experimental-
|
|
7347
|
+
window.__reactRouterVersion = "0.0.0-experimental-2bfe0a2f2";
|
|
7291
7348
|
}
|
|
7292
7349
|
} catch (e) {
|
|
7293
7350
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { R as RouterProviderProps$1 } from './fog-of-war-
|
|
3
|
-
import { D as DefaultRouterContext } from './route-data-
|
|
2
|
+
import { R as RouterProviderProps$1 } from './fog-of-war-BGx5gCsj.mjs';
|
|
3
|
+
import { D as DefaultRouterContext } from './route-data-C8zta6G6.mjs';
|
|
4
4
|
|
|
5
5
|
type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
|
|
6
6
|
declare function RouterProvider(props: Omit<RouterProviderProps, "flushSync">): React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { R as RouterProviderProps$1 } from './fog-of-war-
|
|
3
|
-
import { D as DefaultRouterContext } from './route-data-
|
|
2
|
+
import { R as RouterProviderProps$1 } from './fog-of-war-BtD7bJau.js';
|
|
3
|
+
import { D as DefaultRouterContext } from './route-data-C8zta6G6.js';
|
|
4
4
|
|
|
5
5
|
type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
|
|
6
6
|
declare function RouterProvider(props: Omit<RouterProviderProps, "flushSync">): React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-2bfe0a2f2
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -2822,6 +2822,11 @@ async function defaultDataStrategy(args) {
|
|
|
2822
2822
|
results2.forEach((result, i) => {
|
|
2823
2823
|
keyedResults[matchesToLoad[i].route.id] = result;
|
|
2824
2824
|
});
|
|
2825
|
+
},
|
|
2826
|
+
(e, keyedResults) => {
|
|
2827
|
+
Object.assign(keyedResults, {
|
|
2828
|
+
[e.routeId]: { type: "error", result: e.error }
|
|
2829
|
+
});
|
|
2825
2830
|
}
|
|
2826
2831
|
);
|
|
2827
2832
|
return results;
|
|
@@ -2831,8 +2836,11 @@ async function runMiddlewarePipeline({
|
|
|
2831
2836
|
params,
|
|
2832
2837
|
context,
|
|
2833
2838
|
matches
|
|
2834
|
-
}, lastIndex, propagateResult, handler) {
|
|
2835
|
-
let
|
|
2839
|
+
}, lastIndex, propagateResult, handler, errorHandler) {
|
|
2840
|
+
let middlewareState = {
|
|
2841
|
+
keyedResults: {},
|
|
2842
|
+
propagateResult
|
|
2843
|
+
};
|
|
2836
2844
|
try {
|
|
2837
2845
|
let result = await callRouteMiddleware(
|
|
2838
2846
|
matches.slice(0, lastIndex + 1).flatMap(
|
|
@@ -2840,11 +2848,10 @@ async function runMiddlewarePipeline({
|
|
|
2840
2848
|
),
|
|
2841
2849
|
0,
|
|
2842
2850
|
{ request, params, context },
|
|
2843
|
-
|
|
2844
|
-
propagateResult,
|
|
2851
|
+
middlewareState,
|
|
2845
2852
|
handler
|
|
2846
2853
|
);
|
|
2847
|
-
return propagateResult ? result : keyedResults;
|
|
2854
|
+
return middlewareState.propagateResult ? result : middlewareState.keyedResults;
|
|
2848
2855
|
} catch (e) {
|
|
2849
2856
|
if (!(e instanceof MiddlewareError)) {
|
|
2850
2857
|
throw e;
|
|
@@ -2852,10 +2859,8 @@ async function runMiddlewarePipeline({
|
|
|
2852
2859
|
if (propagateResult && isResponse(e.error)) {
|
|
2853
2860
|
throw e.error;
|
|
2854
2861
|
}
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
[e.routeId]: { type: "error", result: e.error }
|
|
2858
|
-
};
|
|
2862
|
+
let result = await errorHandler(e, middlewareState.keyedResults);
|
|
2863
|
+
return middlewareState.propagateResult ? result : middlewareState.keyedResults;
|
|
2859
2864
|
}
|
|
2860
2865
|
}
|
|
2861
2866
|
var MiddlewareError = class {
|
|
@@ -2864,7 +2869,7 @@ var MiddlewareError = class {
|
|
|
2864
2869
|
this.error = error;
|
|
2865
2870
|
}
|
|
2866
2871
|
};
|
|
2867
|
-
async function callRouteMiddleware(middlewares, idx, args,
|
|
2872
|
+
async function callRouteMiddleware(middlewares, idx, args, middlewareState, handler) {
|
|
2868
2873
|
let { request } = args;
|
|
2869
2874
|
if (request.signal.aborted) {
|
|
2870
2875
|
if (request.signal.reason) {
|
|
@@ -2876,7 +2881,7 @@ async function callRouteMiddleware(middlewares, idx, args, keyedResults, propaga
|
|
|
2876
2881
|
}
|
|
2877
2882
|
let tuple = middlewares[idx];
|
|
2878
2883
|
if (!tuple) {
|
|
2879
|
-
let result = await handler(keyedResults);
|
|
2884
|
+
let result = await handler(middlewareState.keyedResults);
|
|
2880
2885
|
return result;
|
|
2881
2886
|
}
|
|
2882
2887
|
let [routeId, middleware] = tuple;
|
|
@@ -2890,18 +2895,16 @@ async function callRouteMiddleware(middlewares, idx, args, keyedResults, propaga
|
|
|
2890
2895
|
middlewares,
|
|
2891
2896
|
idx + 1,
|
|
2892
2897
|
args,
|
|
2893
|
-
|
|
2894
|
-
propagateResult,
|
|
2898
|
+
middlewareState,
|
|
2895
2899
|
handler
|
|
2896
2900
|
);
|
|
2897
|
-
|
|
2901
|
+
if (middlewareState.propagateResult) {
|
|
2902
|
+
return result;
|
|
2903
|
+
}
|
|
2898
2904
|
};
|
|
2899
2905
|
try {
|
|
2900
|
-
let result = await middleware(args, next);
|
|
2901
|
-
|
|
2902
|
-
result = await next();
|
|
2903
|
-
}
|
|
2904
|
-
return result;
|
|
2906
|
+
let result = await middleware({ ...args, next });
|
|
2907
|
+
return nextCalled ? result : next();
|
|
2905
2908
|
} catch (e) {
|
|
2906
2909
|
if (e instanceof MiddlewareError) {
|
|
2907
2910
|
throw e;
|
|
@@ -4416,6 +4419,11 @@ async function createRequestInit(request) {
|
|
|
4416
4419
|
|
|
4417
4420
|
// lib/dom/ssr/single-fetch.tsx
|
|
4418
4421
|
var SingleFetchRedirectSymbol = Symbol("SingleFetchRedirect");
|
|
4422
|
+
function middlewareErrorHandler(e, keyedResults) {
|
|
4423
|
+
Object.assign(keyedResults, {
|
|
4424
|
+
[e.routeId]: { type: "error", result: e.error }
|
|
4425
|
+
});
|
|
4426
|
+
}
|
|
4419
4427
|
function getSingleFetchDataStrategy(manifest, routeModules, getRouter) {
|
|
4420
4428
|
return async (args) => {
|
|
4421
4429
|
let { request, matches, fetcherKey } = args;
|
|
@@ -4427,7 +4435,8 @@ function getSingleFetchDataStrategy(manifest, routeModules, getRouter) {
|
|
|
4427
4435
|
async (keyedResults) => {
|
|
4428
4436
|
let results = await singleFetchActionStrategy(request, matches);
|
|
4429
4437
|
Object.assign(keyedResults, results);
|
|
4430
|
-
}
|
|
4438
|
+
},
|
|
4439
|
+
middlewareErrorHandler
|
|
4431
4440
|
);
|
|
4432
4441
|
}
|
|
4433
4442
|
if (fetcherKey) {
|
|
@@ -4441,7 +4450,8 @@ function getSingleFetchDataStrategy(manifest, routeModules, getRouter) {
|
|
|
4441
4450
|
matches
|
|
4442
4451
|
);
|
|
4443
4452
|
Object.assign(keyedResults, results);
|
|
4444
|
-
}
|
|
4453
|
+
},
|
|
4454
|
+
middlewareErrorHandler
|
|
4445
4455
|
);
|
|
4446
4456
|
}
|
|
4447
4457
|
let lowestLoadingIndex = getLowestLoadingIndex(
|
|
@@ -4463,7 +4473,8 @@ function getSingleFetchDataStrategy(manifest, routeModules, getRouter) {
|
|
|
4463
4473
|
matches
|
|
4464
4474
|
);
|
|
4465
4475
|
Object.assign(keyedResults, results);
|
|
4466
|
-
}
|
|
4476
|
+
},
|
|
4477
|
+
middlewareErrorHandler
|
|
4467
4478
|
);
|
|
4468
4479
|
};
|
|
4469
4480
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-2bfe0a2f2
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
matchRoutes,
|
|
26
26
|
shouldHydrateRouteLoader,
|
|
27
27
|
useFogOFWarDiscovery
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-MADJIA3T.mjs";
|
|
29
29
|
|
|
30
30
|
// lib/dom-export/dom-router-provider.tsx
|
|
31
31
|
import * as React from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { r as RouteObject, D as DefaultRouterContext, F as FutureConfig$1, H as HydrationState, I as InitialEntry, b as DataStrategyFunction, aq as PatchRoutesOnNavigationFunction, a as Router$1, T as To, k as RelativeRoutingType, z as NonIndexRouteObject, a4 as LazyRouteFunction, y as IndexRouteObject, l as Location, m as Action, ap as Navigator, as as RouteMatch, v as StaticHandlerContext, g as RouteManifest, R as RouteModules, ao as DataRouteObject, aL as RouteModule, a3 as HTMLFormMethod, a1 as FormEncType, ax as PageLinkDescriptor, aM as History, J as GetScrollRestorationKeyFunction, N as NavigateOptions, K as Fetcher, S as SerializeFrom, B as BlockerFunction } from './route-data-C8zta6G6.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @private
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { r as RouteObject, D as DefaultRouterContext, F as FutureConfig$1, H as HydrationState, I as InitialEntry, b as DataStrategyFunction, aq as PatchRoutesOnNavigationFunction, a as Router$1, T as To, k as RelativeRoutingType, z as NonIndexRouteObject, a4 as LazyRouteFunction, y as IndexRouteObject, l as Location, m as Action, ap as Navigator, as as RouteMatch, v as StaticHandlerContext, g as RouteManifest, R as RouteModules, ao as DataRouteObject, aL as RouteModule, a3 as HTMLFormMethod, a1 as FormEncType, ax as PageLinkDescriptor, aM as History, J as GetScrollRestorationKeyFunction, N as NavigateOptions, K as Fetcher, S as SerializeFrom, B as BlockerFunction } from './route-data-C8zta6G6.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @private
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { R as RouteModules, a as Router, b as DataStrategyFunction, A as ActionFunction, L as LoaderFunction, M as MiddlewareFunction, C as ClientActionFunction, c as ClientLoaderFunction, d as ClientMiddlewareFunction, e as LinksFunction, f as MetaFunction, g as RouteManifest, h as
|
|
2
|
-
export {
|
|
3
|
-
import { A as AssetsManifest, a as Route, F as FutureConfig, E as EntryContext } from './fog-of-war-
|
|
4
|
-
export { g as Await, b as AwaitProps, Q as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, w as FetcherFormProps, C as FetcherSubmitFunction, a6 as FetcherSubmitOptions, G as FetcherWithComponents, X as Form, x as FormProps, T as HashRouter, H as HashRouterProps, s as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, U as Link, t as LinkProps, ad as Links, h as MemoryRouter, M as MemoryRouterOpts, c as MemoryRouterProps, ac as Meta, W as NavLink, u as NavLinkProps, v as NavLinkRenderProps, i as Navigate, N as NavigateProps, j as Outlet, O as OutletProps, a7 as ParamKeyValuePair, P as PathRouteProps, af as PrefetchPageLinks, k as Route, d as RouteProps, l as Router, e as RouterProps, m as RouterProvider, R as RouterProviderProps, n as Routes, f as RoutesProps, ae as Scripts, ag as ScriptsProps, Y as ScrollRestoration, S as ScrollRestorationProps, y as SetURLSearchParams, z as SubmitFunction, a8 as SubmitOptions, aa as SubmitTarget, ai as UNSAFE_FrameworkContext, al as UNSAFE_createClientRoutes, am as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, aj as UNSAFE_getPatchRoutesOnNavigationFunction, ah as UNSAFE_mapRouteProperties, an as UNSAFE_shouldHydrateRouteLoader, ak as UNSAFE_useFogOFWarDiscovery, ao as UNSAFE_useScrollRestoration, a9 as URLSearchParamsInit, J as createBrowserRouter, K as createHashRouter, o as createMemoryRouter, p as createRoutesFromChildren, q as createRoutesFromElements, ab as createSearchParams, r as renderMatches, V as unstable_HistoryRouter, a4 as unstable_usePrompt, a3 as useBeforeUnload, a1 as useFetcher, a2 as useFetchers, a0 as useFormAction, Z as useLinkClickHandler, _ as useSearchParams, $ as useSubmit, a5 as useViewTransitionState } from './fog-of-war-
|
|
1
|
+
import { R as RouteModules, a as Router, b as DataStrategyFunction, A as ActionFunction, L as LoaderFunction, M as MiddlewareFunction, C as ClientActionFunction, c as ClientLoaderFunction, d as ClientMiddlewareFunction, e as LinksFunction, f as MetaFunction, g as RouteManifest, h as AppLoadContext, i as LoaderFunctionArgs, j as ActionFunctionArgs, T as To, k as RelativeRoutingType, l as Location, m as Action, P as ParamParseKey, n as Path, o as PathPattern, p as PathMatch, N as NavigateOptions, q as Params, r as RouteObject, s as Navigation, t as RevalidationState, U as UIMatch, S as SerializeFrom, B as BlockerFunction, u as Blocker, v as StaticHandlerContext, w as StaticHandler, F as FutureConfig$1, x as CreateStaticHandlerOptions$1, I as InitialEntry, H as HydrationState, y as IndexRouteObject, z as NonIndexRouteObject, E as RouterState } from './route-data-C8zta6G6.mjs';
|
|
2
|
+
export { at as ClientActionFunctionArgs, au as ClientLoaderFunctionArgs, an as DataRouteMatch, ao as DataRouteObject, Y as DataStrategyFunctionArgs, Z as DataStrategyMatch, _ as DataStrategyResult, a0 as ErrorResponse, K as Fetcher, a1 as FormEncType, a2 as FormMethod, G as GetScrollPositionFunction, J as GetScrollRestorationKeyFunction, a3 as HTMLFormMethod, ay as HtmlLinkDescriptor, ad as IDLE_BLOCKER, ac as IDLE_FETCHER, ab as IDLE_NAVIGATION, a4 as LazyRouteFunction, az as LinkDescriptor, av as MetaArgs, aw as MetaDescriptor, O as NavigationStates, ap as Navigator, ax as PageLinkDescriptor, aq as PatchRoutesOnNavigationFunction, ar as PatchRoutesOnNavigationFunctionArgs, a5 as PathParam, a6 as RedirectFunction, as as RouteMatch, X as RouterFetchOptions, Q as RouterInit, W as RouterNavigateOptions, V as RouterSubscriber, a7 as ShouldRevalidateFunction, a8 as ShouldRevalidateFunctionArgs, aE as UNSAFE_DataRouterContext, aF as UNSAFE_DataRouterStateContext, $ as UNSAFE_DataWithResponseInit, aD as UNSAFE_ErrorResponseImpl, aG as UNSAFE_FetchersContext, aH as UNSAFE_LocationContext, aI as UNSAFE_NavigationContext, aJ as UNSAFE_RouteContext, aK as UNSAFE_ViewTransitionContext, aA as UNSAFE_createBrowserHistory, aC as UNSAFE_createRouter, aB as UNSAFE_invariant, a9 as createPath, ae as data, af as generatePath, ag as isRouteErrorResponse, ah as matchPath, ai as matchRoutes, aa as parsePath, aj as redirect, ak as redirectDocument, al as replace, am as resolvePath } from './route-data-C8zta6G6.mjs';
|
|
3
|
+
import { A as AssetsManifest, a as Route, F as FutureConfig, E as EntryContext } from './fog-of-war-BGx5gCsj.mjs';
|
|
4
|
+
export { g as Await, b as AwaitProps, Q as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, w as FetcherFormProps, C as FetcherSubmitFunction, a6 as FetcherSubmitOptions, G as FetcherWithComponents, X as Form, x as FormProps, T as HashRouter, H as HashRouterProps, s as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, U as Link, t as LinkProps, ad as Links, h as MemoryRouter, M as MemoryRouterOpts, c as MemoryRouterProps, ac as Meta, W as NavLink, u as NavLinkProps, v as NavLinkRenderProps, i as Navigate, N as NavigateProps, j as Outlet, O as OutletProps, a7 as ParamKeyValuePair, P as PathRouteProps, af as PrefetchPageLinks, k as Route, d as RouteProps, l as Router, e as RouterProps, m as RouterProvider, R as RouterProviderProps, n as Routes, f as RoutesProps, ae as Scripts, ag as ScriptsProps, Y as ScrollRestoration, S as ScrollRestorationProps, y as SetURLSearchParams, z as SubmitFunction, a8 as SubmitOptions, aa as SubmitTarget, ai as UNSAFE_FrameworkContext, al as UNSAFE_createClientRoutes, am as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, aj as UNSAFE_getPatchRoutesOnNavigationFunction, ah as UNSAFE_mapRouteProperties, an as UNSAFE_shouldHydrateRouteLoader, ak as UNSAFE_useFogOFWarDiscovery, ao as UNSAFE_useScrollRestoration, a9 as URLSearchParamsInit, J as createBrowserRouter, K as createHashRouter, o as createMemoryRouter, p as createRoutesFromChildren, q as createRoutesFromElements, ab as createSearchParams, r as renderMatches, V as unstable_HistoryRouter, a4 as unstable_usePrompt, a3 as useBeforeUnload, a1 as useFetcher, a2 as useFetchers, a0 as useFormAction, Z as useLinkClickHandler, _ as useSearchParams, $ as useSubmit, a5 as useViewTransitionState } from './fog-of-war-BGx5gCsj.mjs';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { ReactElement } from 'react';
|
|
7
|
-
import { A as AppLoadContext } from './data-CQbyyGzl.mjs';
|
|
8
7
|
import { ParseOptions, SerializeOptions } from 'cookie';
|
|
9
8
|
export { ParseOptions as CookieParseOptions, SerializeOptions as CookieSerializeOptions } from 'cookie';
|
|
10
9
|
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { R as RouteModules, a as Router, b as DataStrategyFunction, A as ActionFunction, L as LoaderFunction, M as MiddlewareFunction, C as ClientActionFunction, c as ClientLoaderFunction, d as ClientMiddlewareFunction, e as LinksFunction, f as MetaFunction, g as RouteManifest, h as
|
|
2
|
-
export {
|
|
3
|
-
import { A as AssetsManifest, a as Route, F as FutureConfig, E as EntryContext } from './fog-of-war-
|
|
4
|
-
export { g as Await, b as AwaitProps, Q as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, w as FetcherFormProps, C as FetcherSubmitFunction, a6 as FetcherSubmitOptions, G as FetcherWithComponents, X as Form, x as FormProps, T as HashRouter, H as HashRouterProps, s as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, U as Link, t as LinkProps, ad as Links, h as MemoryRouter, M as MemoryRouterOpts, c as MemoryRouterProps, ac as Meta, W as NavLink, u as NavLinkProps, v as NavLinkRenderProps, i as Navigate, N as NavigateProps, j as Outlet, O as OutletProps, a7 as ParamKeyValuePair, P as PathRouteProps, af as PrefetchPageLinks, k as Route, d as RouteProps, l as Router, e as RouterProps, m as RouterProvider, R as RouterProviderProps, n as Routes, f as RoutesProps, ae as Scripts, ag as ScriptsProps, Y as ScrollRestoration, S as ScrollRestorationProps, y as SetURLSearchParams, z as SubmitFunction, a8 as SubmitOptions, aa as SubmitTarget, ai as UNSAFE_FrameworkContext, al as UNSAFE_createClientRoutes, am as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, aj as UNSAFE_getPatchRoutesOnNavigationFunction, ah as UNSAFE_mapRouteProperties, an as UNSAFE_shouldHydrateRouteLoader, ak as UNSAFE_useFogOFWarDiscovery, ao as UNSAFE_useScrollRestoration, a9 as URLSearchParamsInit, J as createBrowserRouter, K as createHashRouter, o as createMemoryRouter, p as createRoutesFromChildren, q as createRoutesFromElements, ab as createSearchParams, r as renderMatches, V as unstable_HistoryRouter, a4 as unstable_usePrompt, a3 as useBeforeUnload, a1 as useFetcher, a2 as useFetchers, a0 as useFormAction, Z as useLinkClickHandler, _ as useSearchParams, $ as useSubmit, a5 as useViewTransitionState } from './fog-of-war-
|
|
1
|
+
import { R as RouteModules, a as Router, b as DataStrategyFunction, A as ActionFunction, L as LoaderFunction, M as MiddlewareFunction, C as ClientActionFunction, c as ClientLoaderFunction, d as ClientMiddlewareFunction, e as LinksFunction, f as MetaFunction, g as RouteManifest, h as AppLoadContext, i as LoaderFunctionArgs, j as ActionFunctionArgs, T as To, k as RelativeRoutingType, l as Location, m as Action, P as ParamParseKey, n as Path, o as PathPattern, p as PathMatch, N as NavigateOptions, q as Params, r as RouteObject, s as Navigation, t as RevalidationState, U as UIMatch, S as SerializeFrom, B as BlockerFunction, u as Blocker, v as StaticHandlerContext, w as StaticHandler, F as FutureConfig$1, x as CreateStaticHandlerOptions$1, I as InitialEntry, H as HydrationState, y as IndexRouteObject, z as NonIndexRouteObject, E as RouterState } from './route-data-C8zta6G6.js';
|
|
2
|
+
export { at as ClientActionFunctionArgs, au as ClientLoaderFunctionArgs, an as DataRouteMatch, ao as DataRouteObject, Y as DataStrategyFunctionArgs, Z as DataStrategyMatch, _ as DataStrategyResult, a0 as ErrorResponse, K as Fetcher, a1 as FormEncType, a2 as FormMethod, G as GetScrollPositionFunction, J as GetScrollRestorationKeyFunction, a3 as HTMLFormMethod, ay as HtmlLinkDescriptor, ad as IDLE_BLOCKER, ac as IDLE_FETCHER, ab as IDLE_NAVIGATION, a4 as LazyRouteFunction, az as LinkDescriptor, av as MetaArgs, aw as MetaDescriptor, O as NavigationStates, ap as Navigator, ax as PageLinkDescriptor, aq as PatchRoutesOnNavigationFunction, ar as PatchRoutesOnNavigationFunctionArgs, a5 as PathParam, a6 as RedirectFunction, as as RouteMatch, X as RouterFetchOptions, Q as RouterInit, W as RouterNavigateOptions, V as RouterSubscriber, a7 as ShouldRevalidateFunction, a8 as ShouldRevalidateFunctionArgs, aE as UNSAFE_DataRouterContext, aF as UNSAFE_DataRouterStateContext, $ as UNSAFE_DataWithResponseInit, aD as UNSAFE_ErrorResponseImpl, aG as UNSAFE_FetchersContext, aH as UNSAFE_LocationContext, aI as UNSAFE_NavigationContext, aJ as UNSAFE_RouteContext, aK as UNSAFE_ViewTransitionContext, aA as UNSAFE_createBrowserHistory, aC as UNSAFE_createRouter, aB as UNSAFE_invariant, a9 as createPath, ae as data, af as generatePath, ag as isRouteErrorResponse, ah as matchPath, ai as matchRoutes, aa as parsePath, aj as redirect, ak as redirectDocument, al as replace, am as resolvePath } from './route-data-C8zta6G6.js';
|
|
3
|
+
import { A as AssetsManifest, a as Route, F as FutureConfig, E as EntryContext } from './fog-of-war-BtD7bJau.js';
|
|
4
|
+
export { g as Await, b as AwaitProps, Q as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, w as FetcherFormProps, C as FetcherSubmitFunction, a6 as FetcherSubmitOptions, G as FetcherWithComponents, X as Form, x as FormProps, T as HashRouter, H as HashRouterProps, s as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, U as Link, t as LinkProps, ad as Links, h as MemoryRouter, M as MemoryRouterOpts, c as MemoryRouterProps, ac as Meta, W as NavLink, u as NavLinkProps, v as NavLinkRenderProps, i as Navigate, N as NavigateProps, j as Outlet, O as OutletProps, a7 as ParamKeyValuePair, P as PathRouteProps, af as PrefetchPageLinks, k as Route, d as RouteProps, l as Router, e as RouterProps, m as RouterProvider, R as RouterProviderProps, n as Routes, f as RoutesProps, ae as Scripts, ag as ScriptsProps, Y as ScrollRestoration, S as ScrollRestorationProps, y as SetURLSearchParams, z as SubmitFunction, a8 as SubmitOptions, aa as SubmitTarget, ai as UNSAFE_FrameworkContext, al as UNSAFE_createClientRoutes, am as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, aj as UNSAFE_getPatchRoutesOnNavigationFunction, ah as UNSAFE_mapRouteProperties, an as UNSAFE_shouldHydrateRouteLoader, ak as UNSAFE_useFogOFWarDiscovery, ao as UNSAFE_useScrollRestoration, a9 as URLSearchParamsInit, J as createBrowserRouter, K as createHashRouter, o as createMemoryRouter, p as createRoutesFromChildren, q as createRoutesFromElements, ab as createSearchParams, r as renderMatches, V as unstable_HistoryRouter, a4 as unstable_usePrompt, a3 as useBeforeUnload, a1 as useFetcher, a2 as useFetchers, a0 as useFormAction, Z as useLinkClickHandler, _ as useSearchParams, $ as useSubmit, a5 as useViewTransitionState } from './fog-of-war-BtD7bJau.js';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { ReactElement } from 'react';
|
|
7
|
-
import { A as AppLoadContext } from './data-CQbyyGzl.js';
|
|
8
7
|
import { ParseOptions, SerializeOptions } from 'cookie';
|
|
9
8
|
export { ParseOptions as CookieParseOptions, SerializeOptions as CookieSerializeOptions } from 'cookie';
|
|
10
9
|
|