react-router 0.0.0-experimental-5156b75de → 0.0.0-experimental-7e26cc4bc
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-3LP5H5HU.js → chunk-3YTFW4RY.js} +7 -7
- package/dist/development/{chunk-QVOIPXGA.mjs → chunk-56SMQD4K.mjs} +2 -2
- package/dist/{production/chunk-6L23XUAA.js → development/chunk-HSALI2PM.js} +1 -1
- package/dist/{production/chunk-JENMDRZA.mjs → development/chunk-PYQXJ6RG.mjs} +2 -2
- package/dist/development/{chunk-4IEMGSQV.mjs → chunk-VYYOGKZK.mjs} +3 -2
- package/dist/development/{chunk-VZKJ76PK.js → chunk-XRIXEOUS.js} +3 -2
- 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 +16 -16
- package/dist/development/index-react-server.mjs +1 -1
- package/dist/development/index.js +95 -95
- 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/development/rsc-export.js +16 -16
- package/dist/development/rsc-export.mjs +1 -1
- package/dist/{development/chunk-6L23XUAA.js → production/chunk-HSALI2PM.js} +1 -1
- package/dist/{development/chunk-74IRDAE2.mjs → production/chunk-KOJUI52M.mjs} +2 -2
- package/dist/production/{chunk-WUECUUXN.js → chunk-QAXU5P47.js} +7 -7
- package/dist/production/{chunk-4IEMGSQV.mjs → chunk-VYYOGKZK.mjs} +3 -2
- package/dist/production/{chunk-VZKJ76PK.js → chunk-XRIXEOUS.js} +3 -2
- package/dist/production/{chunk-57DSZHLO.mjs → chunk-ZTTMHY4Q.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 +16 -16
- package/dist/production/index-react-server.mjs +1 -1
- package/dist/production/index.js +95 -95
- 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/dist/production/rsc-export.js +16 -16
- package/dist/production/rsc-export.mjs +1 -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 v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-7e26cc4bc
|
|
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 _chunkHSALI2PMjs = require('./chunk-HSALI2PM.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
|
+
_chunkHSALI2PMjs.__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 (_chunkHSALI2PMjs.__privateGet.call(void 0, this, _map).has(context)) {
|
|
378
|
+
return _chunkHSALI2PMjs.__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
|
+
_chunkHSALI2PMjs.__privateGet.call(void 0, this, _map).set(context, value);
|
|
387
387
|
}
|
|
388
388
|
};
|
|
389
389
|
_map = new WeakMap();
|
|
@@ -8793,7 +8793,7 @@ var isBrowser = typeof window !== "undefined" && typeof window.document !== "und
|
|
|
8793
8793
|
try {
|
|
8794
8794
|
if (isBrowser) {
|
|
8795
8795
|
window.__reactRouterVersion = // @ts-expect-error
|
|
8796
|
-
"0.0.0-experimental-
|
|
8796
|
+
"0.0.0-experimental-7e26cc4bc";
|
|
8797
8797
|
}
|
|
8798
8798
|
} catch (e) {
|
|
8799
8799
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-7e26cc4bc
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -8795,7 +8795,7 @@ var isBrowser = typeof window !== "undefined" && typeof window.document !== "und
|
|
|
8795
8795
|
try {
|
|
8796
8796
|
if (isBrowser) {
|
|
8797
8797
|
window.__reactRouterVersion = // @ts-expect-error
|
|
8798
|
-
"0.0.0-experimental-
|
|
8798
|
+
"0.0.0-experimental-7e26cc4bc";
|
|
8799
8799
|
}
|
|
8800
8800
|
} catch (e) {
|
|
8801
8801
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-7e26cc4bc
|
|
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-56SMQD4K.mjs";
|
|
61
61
|
|
|
62
62
|
// lib/dom/ssr/server.tsx
|
|
63
63
|
import * as React from "react";
|
|
@@ -4,7 +4,7 @@ import { splitCookiesString } from 'set-cookie-parser';
|
|
|
4
4
|
import { serialize, parse } from 'cookie';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* react-router v0.0.0-experimental-
|
|
7
|
+
* react-router v0.0.0-experimental-7e26cc4bc
|
|
8
8
|
*
|
|
9
9
|
* Copyright (c) Remix Software Inc.
|
|
10
10
|
*
|
|
@@ -2102,7 +2102,8 @@ function prependCookies(parentHeaders, childHeaders) {
|
|
|
2102
2102
|
var SINGLE_FETCH_REDIRECT_STATUS = 202;
|
|
2103
2103
|
|
|
2104
2104
|
// lib/rsc/server.rsc.ts
|
|
2105
|
-
var
|
|
2105
|
+
var globalVar = typeof globalThis !== "undefined" ? globalThis : global;
|
|
2106
|
+
var ServerStorage = globalVar.___reactRouterServerStorage___ ?? (globalVar.___reactRouterServerStorage___ = new AsyncLocalStorage());
|
|
2106
2107
|
var redirect2 = (...args) => {
|
|
2107
2108
|
const response = redirect(...args);
|
|
2108
2109
|
const ctx = ServerStorage.getStore();
|
|
@@ -26,7 +26,7 @@ function _interopNamespace(e) {
|
|
|
26
26
|
var React2__namespace = /*#__PURE__*/_interopNamespace(React2);
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* react-router v0.0.0-experimental-
|
|
29
|
+
* react-router v0.0.0-experimental-7e26cc4bc
|
|
30
30
|
*
|
|
31
31
|
* Copyright (c) Remix Software Inc.
|
|
32
32
|
*
|
|
@@ -2124,7 +2124,8 @@ function prependCookies(parentHeaders, childHeaders) {
|
|
|
2124
2124
|
var SINGLE_FETCH_REDIRECT_STATUS = 202;
|
|
2125
2125
|
|
|
2126
2126
|
// lib/rsc/server.rsc.ts
|
|
2127
|
-
var
|
|
2127
|
+
var globalVar = typeof globalThis !== "undefined" ? globalThis : global;
|
|
2128
|
+
var ServerStorage = globalVar.___reactRouterServerStorage___ ?? (globalVar.___reactRouterServerStorage___ = new node_async_hooks.AsyncLocalStorage());
|
|
2128
2129
|
var redirect2 = (...args) => {
|
|
2129
2130
|
const response = redirect(...args);
|
|
2130
2131
|
const ctx = ServerStorage.getStore();
|
|
@@ -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-7e26cc4bc
|
|
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-HSALI2PM.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-7e26cc4bc
|
|
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-PYQXJ6RG.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-56SMQD4K.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-7e26cc4bc
|
|
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 _chunk3YTFW4RYjs = require('./chunk-3YTFW4RY.js');
|
|
33
|
+
require('./chunk-HSALI2PM.js');
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
@@ -51,4 +51,4 @@ require('./chunk-6L23XUAA.js');
|
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
exports.Await =
|
|
54
|
+
exports.Await = _chunk3YTFW4RYjs.Await; exports.BrowserRouter = _chunk3YTFW4RYjs.BrowserRouter; exports.Form = _chunk3YTFW4RYjs.Form; exports.HashRouter = _chunk3YTFW4RYjs.HashRouter; exports.Link = _chunk3YTFW4RYjs.Link; exports.Links = _chunk3YTFW4RYjs.Links; exports.MemoryRouter = _chunk3YTFW4RYjs.MemoryRouter; exports.Meta = _chunk3YTFW4RYjs.Meta; exports.NavLink = _chunk3YTFW4RYjs.NavLink; exports.Navigate = _chunk3YTFW4RYjs.Navigate; exports.Outlet = _chunk3YTFW4RYjs.Outlet; exports.Route = _chunk3YTFW4RYjs.Route; exports.Router = _chunk3YTFW4RYjs.Router; exports.RouterProvider = _chunk3YTFW4RYjs.RouterProvider; exports.Routes = _chunk3YTFW4RYjs.Routes; exports.ScrollRestoration = _chunk3YTFW4RYjs.ScrollRestoration; exports.StaticRouter = _chunk3YTFW4RYjs.StaticRouter; exports.StaticRouterProvider = _chunk3YTFW4RYjs.StaticRouterProvider; exports.unstable_HistoryRouter = _chunk3YTFW4RYjs.HistoryRouter;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-7e26cc4bc
|
|
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-56SMQD4K.mjs";
|
|
33
33
|
export {
|
|
34
34
|
Await,
|
|
35
35
|
BrowserRouter,
|
|
@@ -1,69 +1,69 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkXRIXEOUS_js = require('./chunk-XRIXEOUS.js');
|
|
4
4
|
var reactServerClient = require('react-router/internal/react-server-client');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "createCookie", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkXRIXEOUS_js.createCookie; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "createCookieSessionStorage", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkXRIXEOUS_js.createCookieSessionStorage; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "createMemorySessionStorage", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkXRIXEOUS_js.createMemorySessionStorage; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "createSession", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkXRIXEOUS_js.createSession; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "createSessionStorage", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkXRIXEOUS_js.createSessionStorage; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "createStaticHandler", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkXRIXEOUS_js.createStaticHandler; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "data", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkXRIXEOUS_js.data; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "isCookie", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkXRIXEOUS_js.isCookie; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "isSession", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkXRIXEOUS_js.isSession; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "matchRoutes", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkXRIXEOUS_js.matchRoutes; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "redirect", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkXRIXEOUS_js.redirect; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "redirectDocument", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkXRIXEOUS_js.redirectDocument; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "replace", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkXRIXEOUS_js.replace; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "unstable_createContext", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkXRIXEOUS_js.unstable_createContext; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "unstable_matchRSCServerRequest", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkXRIXEOUS_js.matchRSCServerRequest; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "Await", {
|
|
69
69
|
enumerable: true,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { createCookie, createCookieSessionStorage, createMemorySessionStorage, createSession, createSessionStorage, createStaticHandler, data, isCookie, isSession, matchRoutes, redirect, redirectDocument, replace, unstable_createContext, matchRSCServerRequest as unstable_matchRSCServerRequest } from './chunk-
|
|
1
|
+
export { createCookie, createCookieSessionStorage, createMemorySessionStorage, createSession, createSessionStorage, createStaticHandler, data, isCookie, isSession, matchRoutes, redirect, redirectDocument, replace, unstable_createContext, matchRSCServerRequest as unstable_matchRSCServerRequest } from './chunk-VYYOGKZK.mjs';
|
|
2
2
|
export { Await, BrowserRouter, Form, HashRouter, Link, Links, MemoryRouter, Meta, NavLink, Navigate, Outlet, Route, Router, RouterProvider, Routes, ScrollRestoration, StaticRouter, StaticRouterProvider, unstable_HistoryRouter } from 'react-router/internal/react-server-client';
|