react-router 0.0.0-experimental-1b459f580 → 0.0.0-experimental-b3337fc38
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-L4LRRCSD.mjs → chunk-ISVZLDGL.mjs} +2 -2
- package/dist/development/{chunk-RZCZIS3B.js → chunk-QLBVPI4D.js} +7 -7
- package/dist/development/{chunk-4VIKRD7L.mjs → chunk-RDWX4F5I.mjs} +2 -2
- package/dist/{production/chunk-OLOTDUGY.js → development/chunk-RPYL6BQS.js} +1 -1
- package/dist/development/dom-export.js +2 -2
- package/dist/development/dom-export.mjs +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.js +4 -9
- package/dist/development/index-react-server.mjs +4 -9
- package/dist/development/index.js +97 -97
- package/dist/development/index.mjs +3 -3
- package/dist/development/lib/types/internal.js +1 -1
- package/dist/development/lib/types/internal.mjs +1 -1
- package/dist/production/{chunk-PFSXYEQ3.mjs → chunk-NVWALROP.mjs} +2 -2
- package/dist/{development/chunk-OLOTDUGY.js → production/chunk-RPYL6BQS.js} +1 -1
- package/dist/production/{chunk-6P3A53A7.js → chunk-TYKNASTB.js} +7 -7
- package/dist/production/{chunk-SFXFO2NO.mjs → chunk-WTUXEIMV.mjs} +2 -2
- package/dist/production/dom-export.js +2 -2
- package/dist/production/dom-export.mjs +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.js +4 -9
- package/dist/production/index-react-server.mjs +4 -9
- package/dist/production/index.js +97 -97
- package/dist/production/index.mjs +3 -3
- package/dist/production/lib/types/internal.js +1 -1
- package/dist/production/lib/types/internal.mjs +1 -1
- 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-b3337fc38
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -8801,7 +8801,7 @@ var isBrowser = typeof window !== "undefined" && typeof window.document !== "und
|
|
|
8801
8801
|
try {
|
|
8802
8802
|
if (isBrowser) {
|
|
8803
8803
|
window.__reactRouterVersion = // @ts-expect-error
|
|
8804
|
-
"0.0.0-experimental-
|
|
8804
|
+
"0.0.0-experimental-b3337fc38";
|
|
8805
8805
|
}
|
|
8806
8806
|
} catch (e) {
|
|
8807
8807
|
}
|
|
@@ -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 v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-b3337fc38
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkRPYL6BQSjs = require('./chunk-RPYL6BQS.js');
|
|
15
15
|
|
|
16
16
|
// lib/router/history.ts
|
|
17
17
|
var Action = /* @__PURE__ */ ((Action2) => {
|
|
@@ -366,7 +366,7 @@ function unstable_createContext(defaultValue) {
|
|
|
366
366
|
var _map;
|
|
367
367
|
var unstable_RouterContextProvider = class {
|
|
368
368
|
constructor(init) {
|
|
369
|
-
|
|
369
|
+
_chunkRPYL6BQSjs.__privateAdd.call(void 0, this, _map, /* @__PURE__ */ new Map());
|
|
370
370
|
if (init) {
|
|
371
371
|
for (let [context, value] of init) {
|
|
372
372
|
this.set(context, value);
|
|
@@ -374,8 +374,8 @@ var unstable_RouterContextProvider = class {
|
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
376
|
get(context) {
|
|
377
|
-
if (
|
|
378
|
-
return
|
|
377
|
+
if (_chunkRPYL6BQSjs.__privateGet.call(void 0, this, _map).has(context)) {
|
|
378
|
+
return _chunkRPYL6BQSjs.__privateGet.call(void 0, this, _map).get(context);
|
|
379
379
|
}
|
|
380
380
|
if (context.defaultValue !== void 0) {
|
|
381
381
|
return context.defaultValue;
|
|
@@ -383,7 +383,7 @@ var unstable_RouterContextProvider = class {
|
|
|
383
383
|
throw new Error("No value found for context");
|
|
384
384
|
}
|
|
385
385
|
set(context, value) {
|
|
386
|
-
|
|
386
|
+
_chunkRPYL6BQSjs.__privateGet.call(void 0, this, _map).set(context, value);
|
|
387
387
|
}
|
|
388
388
|
};
|
|
389
389
|
_map = new WeakMap();
|
|
@@ -8799,7 +8799,7 @@ var isBrowser = typeof window !== "undefined" && typeof window.document !== "und
|
|
|
8799
8799
|
try {
|
|
8800
8800
|
if (isBrowser) {
|
|
8801
8801
|
window.__reactRouterVersion = // @ts-expect-error
|
|
8802
|
-
"0.0.0-experimental-
|
|
8802
|
+
"0.0.0-experimental-b3337fc38";
|
|
8803
8803
|
}
|
|
8804
8804
|
} catch (e) {
|
|
8805
8805
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-b3337fc38
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
withComponentProps,
|
|
58
58
|
withErrorBoundaryProps,
|
|
59
59
|
withHydrateFallbackProps
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-ISVZLDGL.mjs";
|
|
61
61
|
|
|
62
62
|
// lib/dom/ssr/server.tsx
|
|
63
63
|
import * as React from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-b3337fc38
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* @license MIT
|
|
10
10
|
*/
|
|
11
11
|
"use client";
|
|
12
|
-
require('./chunk-
|
|
12
|
+
require('./chunk-RPYL6BQS.js');
|
|
13
13
|
|
|
14
14
|
// lib/dom-export/dom-router-provider.tsx
|
|
15
15
|
var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-b3337fc38
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
import {
|
|
13
13
|
deserializeErrors,
|
|
14
14
|
getHydrationData
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-RDWX4F5I.mjs";
|
|
16
16
|
import {
|
|
17
17
|
FrameworkContext,
|
|
18
18
|
RemixErrorBoundary,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
invariant,
|
|
29
29
|
mapRouteProperties,
|
|
30
30
|
useFogOFWarDiscovery
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-ISVZLDGL.mjs";
|
|
32
32
|
|
|
33
33
|
// lib/dom-export/dom-router-provider.tsx
|
|
34
34
|
import * as React from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-b3337fc38
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
33
|
-
require('./chunk-
|
|
32
|
+
var _chunkQLBVPI4Djs = require('./chunk-QLBVPI4D.js');
|
|
33
|
+
require('./chunk-RPYL6BQS.js');
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
@@ -51,4 +51,4 @@ require('./chunk-OLOTDUGY.js');
|
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
exports.Await =
|
|
54
|
+
exports.Await = _chunkQLBVPI4Djs.Await; exports.BrowserRouter = _chunkQLBVPI4Djs.BrowserRouter; exports.Form = _chunkQLBVPI4Djs.Form; exports.HashRouter = _chunkQLBVPI4Djs.HashRouter; exports.Link = _chunkQLBVPI4Djs.Link; exports.Links = _chunkQLBVPI4Djs.Links; exports.MemoryRouter = _chunkQLBVPI4Djs.MemoryRouter; exports.Meta = _chunkQLBVPI4Djs.Meta; exports.NavLink = _chunkQLBVPI4Djs.NavLink; exports.Navigate = _chunkQLBVPI4Djs.Navigate; exports.Outlet = _chunkQLBVPI4Djs.Outlet; exports.Route = _chunkQLBVPI4Djs.Route; exports.Router = _chunkQLBVPI4Djs.Router; exports.RouterProvider = _chunkQLBVPI4Djs.RouterProvider; exports.Routes = _chunkQLBVPI4Djs.Routes; exports.ScrollRestoration = _chunkQLBVPI4Djs.ScrollRestoration; exports.StaticRouter = _chunkQLBVPI4Djs.StaticRouter; exports.StaticRouterProvider = _chunkQLBVPI4Djs.StaticRouterProvider; exports.unstable_HistoryRouter = _chunkQLBVPI4Djs.HistoryRouter;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-b3337fc38
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
ScrollRestoration,
|
|
30
30
|
StaticRouter,
|
|
31
31
|
StaticRouterProvider
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-ISVZLDGL.mjs";
|
|
33
33
|
export {
|
|
34
34
|
Await,
|
|
35
35
|
BrowserRouter,
|
|
@@ -27,7 +27,7 @@ function _interopNamespace(e) {
|
|
|
27
27
|
var React2__namespace = /*#__PURE__*/_interopNamespace(React2);
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* react-router v0.0.0-experimental-
|
|
30
|
+
* react-router v0.0.0-experimental-b3337fc38
|
|
31
31
|
*
|
|
32
32
|
* Copyright (c) Remix Software Inc.
|
|
33
33
|
*
|
|
@@ -2597,12 +2597,12 @@ async function getRenderPayload(baseRenderPayload, routes, basename, routeIdsToL
|
|
|
2597
2597
|
);
|
|
2598
2598
|
})
|
|
2599
2599
|
);
|
|
2600
|
-
let patchesPromise =
|
|
2600
|
+
let patchesPromise = getAdditionalRoutePatches(
|
|
2601
2601
|
[staticContext.location.pathname],
|
|
2602
2602
|
routes,
|
|
2603
2603
|
basename,
|
|
2604
2604
|
staticContext.matches.map((m) => m.route.id)
|
|
2605
|
-
)
|
|
2605
|
+
);
|
|
2606
2606
|
let [matches, patches] = await Promise.all([matchesPromise, patchesPromise]);
|
|
2607
2607
|
return {
|
|
2608
2608
|
...baseRenderPayload,
|
|
@@ -2636,12 +2636,7 @@ async function getRSCRouteMatch(staticContext, match, shouldRenderComponent, par
|
|
|
2636
2636
|
);
|
|
2637
2637
|
let error = void 0;
|
|
2638
2638
|
if (ErrorBoundary && staticContext.errors) {
|
|
2639
|
-
|
|
2640
|
-
if (match2.route.id in staticContext.errors) {
|
|
2641
|
-
error = staticContext.errors[match2.route.id];
|
|
2642
|
-
break;
|
|
2643
|
-
}
|
|
2644
|
-
}
|
|
2639
|
+
error = staticContext.errors[match.route.id];
|
|
2645
2640
|
}
|
|
2646
2641
|
const errorElement = ErrorBoundary ? React2__namespace.createElement(
|
|
2647
2642
|
Layout,
|
|
@@ -5,7 +5,7 @@ export { Await, BrowserRouter, Form, HashRouter, Link, Links, MemoryRouter, Meta
|
|
|
5
5
|
import { serialize, parse } from 'cookie';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* react-router v0.0.0-experimental-
|
|
8
|
+
* react-router v0.0.0-experimental-b3337fc38
|
|
9
9
|
*
|
|
10
10
|
* Copyright (c) Remix Software Inc.
|
|
11
11
|
*
|
|
@@ -2575,12 +2575,12 @@ async function getRenderPayload(baseRenderPayload, routes, basename, routeIdsToL
|
|
|
2575
2575
|
);
|
|
2576
2576
|
})
|
|
2577
2577
|
);
|
|
2578
|
-
let patchesPromise =
|
|
2578
|
+
let patchesPromise = getAdditionalRoutePatches(
|
|
2579
2579
|
[staticContext.location.pathname],
|
|
2580
2580
|
routes,
|
|
2581
2581
|
basename,
|
|
2582
2582
|
staticContext.matches.map((m) => m.route.id)
|
|
2583
|
-
)
|
|
2583
|
+
);
|
|
2584
2584
|
let [matches, patches] = await Promise.all([matchesPromise, patchesPromise]);
|
|
2585
2585
|
return {
|
|
2586
2586
|
...baseRenderPayload,
|
|
@@ -2614,12 +2614,7 @@ async function getRSCRouteMatch(staticContext, match, shouldRenderComponent, par
|
|
|
2614
2614
|
);
|
|
2615
2615
|
let error = void 0;
|
|
2616
2616
|
if (ErrorBoundary && staticContext.errors) {
|
|
2617
|
-
|
|
2618
|
-
if (match2.route.id in staticContext.errors) {
|
|
2619
|
-
error = staticContext.errors[match2.route.id];
|
|
2620
|
-
break;
|
|
2621
|
-
}
|
|
2622
|
-
}
|
|
2617
|
+
error = staticContext.errors[match.route.id];
|
|
2623
2618
|
}
|
|
2624
2619
|
const errorElement = ErrorBoundary ? React2.createElement(
|
|
2625
2620
|
Layout,
|