react-router 0.0.0-experimental-7e26cc4bc → 0.0.0-experimental-0089ff6bc

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.
Files changed (53) hide show
  1. package/dist/development/{browser-DYcG-QSM.d.mts → browser-Db0sq1MO.d.mts} +15 -13
  2. package/dist/development/{chunk-3YTFW4RY.js → chunk-2K6IOQUH.js} +7 -7
  3. package/dist/{production/chunk-HSALI2PM.js → development/chunk-5U3LXK6G.js} +1 -1
  4. package/dist/development/{chunk-PYQXJ6RG.mjs → chunk-DLFGBVUM.mjs} +33 -23
  5. package/dist/development/{chunk-56SMQD4K.mjs → chunk-E6YMPTVT.mjs} +2 -2
  6. package/dist/development/dom-export.d.mts +1 -1
  7. package/dist/development/dom-export.js +2 -2
  8. package/dist/development/dom-export.mjs +3 -3
  9. package/dist/development/index-react-server-client.js +4 -4
  10. package/dist/development/index-react-server-client.mjs +2 -2
  11. package/dist/development/index-react-server.d.mts +10 -8
  12. package/dist/development/index-react-server.d.ts +10 -8
  13. package/dist/development/index-react-server.js +3026 -60
  14. package/dist/development/index-react-server.mjs +2996 -1
  15. package/dist/development/index.d.mts +4 -4
  16. package/dist/development/index.d.ts +17 -15
  17. package/dist/development/index.js +126 -116
  18. package/dist/development/index.mjs +3 -3
  19. package/dist/development/lib/types/internal.js +1 -1
  20. package/dist/development/lib/types/internal.mjs +1 -1
  21. package/dist/production/{browser-DYcG-QSM.d.mts → browser-Db0sq1MO.d.mts} +15 -13
  22. package/dist/production/{chunk-KOJUI52M.mjs → chunk-23GVDX6O.mjs} +33 -23
  23. package/dist/{development/chunk-HSALI2PM.js → production/chunk-5U3LXK6G.js} +1 -1
  24. package/dist/production/{chunk-QAXU5P47.js → chunk-AT6XRLIC.js} +7 -7
  25. package/dist/production/{chunk-ZTTMHY4Q.mjs → chunk-O6UYOOAU.mjs} +2 -2
  26. package/dist/production/dom-export.d.mts +1 -1
  27. package/dist/production/dom-export.js +2 -2
  28. package/dist/production/dom-export.mjs +3 -3
  29. package/dist/production/index-react-server-client.js +4 -4
  30. package/dist/production/index-react-server-client.mjs +2 -2
  31. package/dist/production/index-react-server.d.mts +10 -8
  32. package/dist/production/index-react-server.d.ts +10 -8
  33. package/dist/production/index-react-server.js +3026 -60
  34. package/dist/production/index-react-server.mjs +2996 -1
  35. package/dist/production/index.d.mts +4 -4
  36. package/dist/production/index.d.ts +17 -15
  37. package/dist/production/index.js +126 -116
  38. package/dist/production/index.mjs +3 -3
  39. package/dist/production/lib/types/internal.js +1 -1
  40. package/dist/production/lib/types/internal.mjs +1 -1
  41. package/package.json +1 -1
  42. package/dist/development/chunk-VYYOGKZK.mjs +0 -2992
  43. package/dist/development/chunk-XRIXEOUS.js +0 -3028
  44. package/dist/development/rsc-export.d.mts +0 -5
  45. package/dist/development/rsc-export.d.ts +0 -5
  46. package/dist/development/rsc-export.js +0 -66
  47. package/dist/development/rsc-export.mjs +0 -1
  48. package/dist/production/chunk-VYYOGKZK.mjs +0 -2992
  49. package/dist/production/chunk-XRIXEOUS.js +0 -3028
  50. package/dist/production/rsc-export.d.mts +0 -5
  51. package/dist/production/rsc-export.d.ts +0 -5
  52. package/dist/production/rsc-export.js +0 -66
  53. package/dist/production/rsc-export.mjs +0 -1
@@ -97,21 +97,23 @@ type ServerMatch = {
97
97
  headers: Headers;
98
98
  payload: ServerPayload;
99
99
  };
100
- type DecodeCallServerFunction = (id: string, reply: FormData | string) => Promise<() => Promise<unknown>>;
101
- type DecodeFormActionFunction = (formData: FormData) => Promise<() => Promise<void>>;
100
+ type DecodeActionFunction = (formData: FormData) => Promise<() => Promise<void>>;
102
101
  type DecodeFormStateFunction = (result: unknown, formData: FormData) => unknown;
103
- declare function matchRSCServerRequest({ decodeCallServer, decodeFormAction, decodeFormState, onError, request, routes, generateResponse, }: {
104
- decodeCallServer?: DecodeCallServerFunction;
105
- decodeFormAction?: DecodeFormActionFunction;
102
+ type DecodeReplyFunction = (reply: FormData | string) => Promise<unknown[]>;
103
+ type LoadServerActionFunction = (id: string) => Promise<Function>;
104
+ declare function matchRSCServerRequest({ decodeReply, loadServerAction, decodeAction, decodeFormState, onError, request, routes, generateResponse, }: {
105
+ decodeReply?: DecodeReplyFunction;
106
+ decodeAction?: DecodeActionFunction;
106
107
  decodeFormState?: DecodeFormStateFunction;
108
+ loadServerAction?: LoadServerActionFunction;
107
109
  onError?: (error: unknown) => void;
108
110
  request: Request;
109
111
  routes: ServerRouteObject[];
110
112
  generateResponse: (match: ServerMatch) => Response;
111
113
  }): Promise<Response>;
112
114
 
113
- type DecodeServerResponseFunction = (body: ReadableStream<Uint8Array>) => Promise<ServerPayload>;
114
- type EncodeActionFunction = (args: unknown[]) => Promise<BodyInit>;
115
+ type CreateFromReadableStreamFunction = (body: ReadableStream<Uint8Array>) => Promise<unknown>;
116
+ type EncodeReplyFunction = (args: unknown[]) => Promise<BodyInit>;
115
117
  declare global {
116
118
  interface Window {
117
119
  __router: Router;
@@ -119,13 +121,13 @@ declare global {
119
121
  __routerActionID: number;
120
122
  }
121
123
  }
122
- declare function createCallServer({ decode, encodeAction, fetch: fetchImplementation, }: {
123
- decode: DecodeServerResponseFunction;
124
- encodeAction: EncodeActionFunction;
124
+ declare function createCallServer({ createFromReadableStream, encodeReply, fetch: fetchImplementation, }: {
125
+ createFromReadableStream: CreateFromReadableStreamFunction;
126
+ encodeReply: EncodeReplyFunction;
125
127
  fetch?: (request: Request) => Promise<Response>;
126
128
  }): (id: string, args: unknown[]) => Promise<unknown>;
127
- declare function RSCHydratedRouter({ decode, fetch: fetchImplementation, payload, routeDiscovery, }: {
128
- decode: DecodeServerResponseFunction;
129
+ declare function RSCHydratedRouter({ createFromReadableStream, fetch: fetchImplementation, payload, routeDiscovery, }: {
130
+ createFromReadableStream: CreateFromReadableStreamFunction;
129
131
  fetch?: (request: Request) => Promise<Response>;
130
132
  payload: ServerPayload;
131
133
  routeDiscovery?: "eager" | "lazy";
@@ -138,4 +140,4 @@ declare global {
138
140
  }
139
141
  declare function getServerStream(): ReadableStream<any>;
140
142
 
141
- export { type DecodeServerResponseFunction as D, type EncodeActionFunction as E, RSCHydratedRouter as R, type ServerPayload as S, type DecodeCallServerFunction as a, type DecodeFormActionFunction as b, createCallServer as c, type ServerManifestPayload as d, type ServerMatch as e, type ServerRenderPayload as f, getServerStream as g, type RenderedRoute as h, type ServerRouteMatch as i, type ServerRouteObject as j, matchRSCServerRequest as m };
143
+ export { type CreateFromReadableStreamFunction as C, type DecodeActionFunction as D, type EncodeReplyFunction as E, type LoadServerActionFunction as L, RSCHydratedRouter as R, type ServerPayload as S, type DecodeFormStateFunction as a, type DecodeReplyFunction as b, createCallServer as c, type ServerManifestPayload as d, type ServerMatch as e, type ServerRenderPayload as f, getServerStream as g, type RenderedRoute as h, type ServerRouteMatch as i, type ServerRouteObject as j, matchRSCServerRequest as m };
@@ -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-7e26cc4bc
2
+ * react-router v0.0.0-experimental-0089ff6bc
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -11,7 +11,7 @@
11
11
 
12
12
 
13
13
 
14
- var _chunkHSALI2PMjs = require('./chunk-HSALI2PM.js');
14
+ var _chunk5U3LXK6Gjs = require('./chunk-5U3LXK6G.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
- _chunkHSALI2PMjs.__privateAdd.call(void 0, this, _map, /* @__PURE__ */ new Map());
369
+ _chunk5U3LXK6Gjs.__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 (_chunkHSALI2PMjs.__privateGet.call(void 0, this, _map).has(context)) {
378
- return _chunkHSALI2PMjs.__privateGet.call(void 0, this, _map).get(context);
377
+ if (_chunk5U3LXK6Gjs.__privateGet.call(void 0, this, _map).has(context)) {
378
+ return _chunk5U3LXK6Gjs.__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
- _chunkHSALI2PMjs.__privateGet.call(void 0, this, _map).set(context, value);
386
+ _chunk5U3LXK6Gjs.__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-7e26cc4bc";
8796
+ "0.0.0-experimental-0089ff6bc";
8797
8797
  }
8798
8798
  } catch (e) {
8799
8799
  }
@@ -1,5 +1,5 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});/**
2
- * react-router v0.0.0-experimental-7e26cc4bc
2
+ * react-router v0.0.0-experimental-0089ff6bc
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v0.0.0-experimental-7e26cc4bc
2
+ * react-router v0.0.0-experimental-0089ff6bc
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-56SMQD4K.mjs";
60
+ } from "./chunk-E6YMPTVT.mjs";
61
61
 
62
62
  // lib/dom/ssr/server.tsx
63
63
  import * as React from "react";
@@ -1793,8 +1793,8 @@ function RSCDefaultRootErrorBoundary({
1793
1793
 
1794
1794
  // lib/rsc/browser.tsx
1795
1795
  function createCallServer({
1796
- decode,
1797
- encodeAction,
1796
+ createFromReadableStream,
1797
+ encodeReply,
1798
1798
  fetch: fetchImplementation = fetch
1799
1799
  }) {
1800
1800
  let landedActionId = 0;
@@ -1802,7 +1802,7 @@ function createCallServer({
1802
1802
  let actionId = window.__routerActionID = (window.__routerActionID ?? (window.__routerActionID = 0)) + 1;
1803
1803
  const response = await fetchImplementation(
1804
1804
  new Request(location.href, {
1805
- body: await encodeAction(args),
1805
+ body: await encodeReply(args),
1806
1806
  method: "POST",
1807
1807
  headers: {
1808
1808
  Accept: "text/x-component",
@@ -1813,7 +1813,9 @@ function createCallServer({
1813
1813
  if (!response.body) {
1814
1814
  throw new Error("No response body");
1815
1815
  }
1816
- const payload = await decode(response.body);
1816
+ const payload = await createFromReadableStream(
1817
+ response.body
1818
+ );
1817
1819
  if (payload.type === "redirect") {
1818
1820
  if (payload.reload) {
1819
1821
  window.location.href = payload.location;
@@ -1875,7 +1877,7 @@ function createCallServer({
1875
1877
  }
1876
1878
  function createRouterFromPayload({
1877
1879
  fetchImplementation,
1878
- decode,
1880
+ createFromReadableStream,
1879
1881
  payload
1880
1882
  }) {
1881
1883
  if (window.__router) return window.__router;
@@ -1934,7 +1936,7 @@ function createRouterFromPayload({
1934
1936
  }
1935
1937
  await fetchAndApplyManifestPatches(
1936
1938
  [path],
1937
- decode,
1939
+ createFromReadableStream,
1938
1940
  fetchImplementation,
1939
1941
  signal
1940
1942
  );
@@ -1944,7 +1946,7 @@ function createRouterFromPayload({
1944
1946
  () => window.__router,
1945
1947
  true,
1946
1948
  void 0,
1947
- decode,
1949
+ createFromReadableStream,
1948
1950
  fetchImplementation
1949
1951
  )
1950
1952
  });
@@ -1963,7 +1965,7 @@ function createRouterFromPayload({
1963
1965
  return window.__router;
1964
1966
  }
1965
1967
  var renderedRoutesContext = unstable_createContext();
1966
- function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, decode, fetchImplementation) {
1968
+ function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReadableStream, fetchImplementation) {
1967
1969
  let dataStrategy = getSingleFetchDataStrategyImpl(
1968
1970
  getRouter,
1969
1971
  (match) => {
@@ -1978,7 +1980,7 @@ function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, decode, fetchIm
1978
1980
  };
1979
1981
  },
1980
1982
  // pass map into fetchAndDecode so it can add payloads
1981
- getFetchAndDecodeViaRSC(decode, fetchImplementation),
1983
+ getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation),
1982
1984
  ssr,
1983
1985
  basename,
1984
1986
  // If the route has a component but we don't have an element, we need to hit
@@ -2015,7 +2017,7 @@ function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, decode, fetchIm
2015
2017
  return results;
2016
2018
  });
2017
2019
  }
2018
- function getFetchAndDecodeViaRSC(decode, fetchImplementation) {
2020
+ function getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation) {
2019
2021
  return async (args, basename, targetRoutes) => {
2020
2022
  let { request, context } = args;
2021
2023
  let url = singleFetchUrl(request.url, basename, "rsc");
@@ -2033,7 +2035,9 @@ function getFetchAndDecodeViaRSC(decode, fetchImplementation) {
2033
2035
  }
2034
2036
  invariant(res.body, "No response body to decode");
2035
2037
  try {
2036
- const payload = await decode(res.body);
2038
+ const payload = await createFromReadableStream(
2039
+ res.body
2040
+ );
2037
2041
  if (payload.type === "redirect") {
2038
2042
  return {
2039
2043
  status: res.status,
@@ -2069,7 +2073,7 @@ function getFetchAndDecodeViaRSC(decode, fetchImplementation) {
2069
2073
  };
2070
2074
  }
2071
2075
  function RSCHydratedRouter({
2072
- decode,
2076
+ createFromReadableStream,
2073
2077
  fetch: fetchImplementation = fetch,
2074
2078
  payload,
2075
2079
  routeDiscovery = "eager"
@@ -2077,11 +2081,11 @@ function RSCHydratedRouter({
2077
2081
  if (payload.type !== "render") throw new Error("Invalid payload type");
2078
2082
  let router = React4.useMemo(
2079
2083
  () => createRouterFromPayload({
2080
- decode,
2081
2084
  payload,
2082
- fetchImplementation
2085
+ fetchImplementation,
2086
+ createFromReadableStream
2083
2087
  }),
2084
- [decode, payload, fetchImplementation]
2088
+ [createFromReadableStream, payload, fetchImplementation]
2085
2089
  );
2086
2090
  React4.useLayoutEffect(() => {
2087
2091
  if (!window.__routerInitialized) {
@@ -2126,7 +2130,11 @@ function RSCHydratedRouter({
2126
2130
  return;
2127
2131
  }
2128
2132
  try {
2129
- await fetchAndApplyManifestPatches(paths, decode, fetchImplementation);
2133
+ await fetchAndApplyManifestPatches(
2134
+ paths,
2135
+ createFromReadableStream,
2136
+ fetchImplementation
2137
+ );
2130
2138
  } catch (e) {
2131
2139
  console.error("Failed to fetch manifest patches", e);
2132
2140
  }
@@ -2140,7 +2148,7 @@ function RSCHydratedRouter({
2140
2148
  attributes: true,
2141
2149
  attributeFilter: ["data-discover", "href", "action"]
2142
2150
  });
2143
- }, [routeDiscovery, decode, fetchImplementation]);
2151
+ }, [routeDiscovery, createFromReadableStream, fetchImplementation]);
2144
2152
  const frameworkContext = {
2145
2153
  future: {
2146
2154
  // These flags have no runtime impact so can always be false. If we add
@@ -2273,7 +2281,7 @@ function getManifestUrl(paths) {
2273
2281
  paths.sort().forEach((path) => url.searchParams.append("p", path));
2274
2282
  return url;
2275
2283
  }
2276
- async function fetchAndApplyManifestPatches(paths, decode, fetchImplementation, signal) {
2284
+ async function fetchAndApplyManifestPatches(paths, createFromReadableStream, fetchImplementation, signal) {
2277
2285
  let url = getManifestUrl(paths);
2278
2286
  if (url == null) {
2279
2287
  return;
@@ -2286,7 +2294,9 @@ async function fetchAndApplyManifestPatches(paths, decode, fetchImplementation,
2286
2294
  if (!response.body || response.status < 200 || response.status >= 300) {
2287
2295
  throw new Error("Unable to fetch new route matches from the server");
2288
2296
  }
2289
- let payload = await decode(response.body);
2297
+ let payload = await createFromReadableStream(
2298
+ response.body
2299
+ );
2290
2300
  if (payload.type !== "manifest") {
2291
2301
  throw new Error("Failed to patch routes");
2292
2302
  }
@@ -2406,7 +2416,7 @@ function escapeScript(script) {
2406
2416
  // lib/rsc/server.ssr.tsx
2407
2417
  async function routeRSCServerRequest({
2408
2418
  request,
2409
- callServer,
2419
+ fetchServer,
2410
2420
  decode,
2411
2421
  renderHTML,
2412
2422
  hydrate = true
@@ -2414,7 +2424,7 @@ async function routeRSCServerRequest({
2414
2424
  const url = new URL(request.url);
2415
2425
  const isDataRequest = isReactServerRequest(url);
2416
2426
  const respondWithRSCPayload = isDataRequest || isManifestRequest(url) || request.headers.has("rsc-action-id");
2417
- const serverResponse = await callServer(request);
2427
+ const serverResponse = await fetchServer(request);
2418
2428
  if (respondWithRSCPayload || serverResponse.headers.get("React-Router-Resource") === "true") {
2419
2429
  return serverResponse;
2420
2430
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v0.0.0-experimental-7e26cc4bc
2
+ * react-router v0.0.0-experimental-0089ff6bc
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-7e26cc4bc";
8798
+ "0.0.0-experimental-0089ff6bc";
8799
8799
  }
8800
8800
  } catch (e) {
8801
8801
  }
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { R as RouterProviderProps$1 } from './components-CwtESh53.mjs';
3
- import './browser-DYcG-QSM.mjs';
3
+ import './browser-Db0sq1MO.mjs';
4
4
  import { R as RouterInit } from './route-data-Csr8hE3v.mjs';
5
5
  import 'node:async_hooks';
6
6
 
@@ -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-7e26cc4bc
2
+ * react-router v0.0.0-experimental-0089ff6bc
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-HSALI2PM.js');
12
+ require('./chunk-5U3LXK6G.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-7e26cc4bc
2
+ * react-router v0.0.0-experimental-0089ff6bc
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-PYQXJ6RG.mjs";
15
+ } from "./chunk-DLFGBVUM.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-56SMQD4K.mjs";
31
+ } from "./chunk-E6YMPTVT.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-7e26cc4bc
2
+ * react-router v0.0.0-experimental-0089ff6bc
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -29,8 +29,8 @@
29
29
 
30
30
 
31
31
 
32
- var _chunk3YTFW4RYjs = require('./chunk-3YTFW4RY.js');
33
- require('./chunk-HSALI2PM.js');
32
+ var _chunk2K6IOQUHjs = require('./chunk-2K6IOQUH.js');
33
+ require('./chunk-5U3LXK6G.js');
34
34
 
35
35
 
36
36
 
@@ -51,4 +51,4 @@ require('./chunk-HSALI2PM.js');
51
51
 
52
52
 
53
53
 
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;
54
+ exports.Await = _chunk2K6IOQUHjs.Await; exports.BrowserRouter = _chunk2K6IOQUHjs.BrowserRouter; exports.Form = _chunk2K6IOQUHjs.Form; exports.HashRouter = _chunk2K6IOQUHjs.HashRouter; exports.Link = _chunk2K6IOQUHjs.Link; exports.Links = _chunk2K6IOQUHjs.Links; exports.MemoryRouter = _chunk2K6IOQUHjs.MemoryRouter; exports.Meta = _chunk2K6IOQUHjs.Meta; exports.NavLink = _chunk2K6IOQUHjs.NavLink; exports.Navigate = _chunk2K6IOQUHjs.Navigate; exports.Outlet = _chunk2K6IOQUHjs.Outlet; exports.Route = _chunk2K6IOQUHjs.Route; exports.Router = _chunk2K6IOQUHjs.Router; exports.RouterProvider = _chunk2K6IOQUHjs.RouterProvider; exports.Routes = _chunk2K6IOQUHjs.Routes; exports.ScrollRestoration = _chunk2K6IOQUHjs.ScrollRestoration; exports.StaticRouter = _chunk2K6IOQUHjs.StaticRouter; exports.StaticRouterProvider = _chunk2K6IOQUHjs.StaticRouterProvider; exports.unstable_HistoryRouter = _chunk2K6IOQUHjs.HistoryRouter;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v0.0.0-experimental-7e26cc4bc
2
+ * react-router v0.0.0-experimental-0089ff6bc
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-56SMQD4K.mjs";
32
+ } from "./chunk-E6YMPTVT.mjs";
33
33
  export {
34
34
  Await,
35
35
  BrowserRouter,
@@ -1,8 +1,8 @@
1
+ import { AsyncLocalStorage } from 'node:async_hooks';
2
+ import * as React from 'react';
1
3
  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';
2
4
  import { ParseOptions, SerializeOptions } from 'cookie';
3
5
  export { ParseOptions as CookieParseOptions, SerializeOptions as CookieSerializeOptions } from 'cookie';
4
- import { AsyncLocalStorage } from 'node:async_hooks';
5
- import * as React from 'react';
6
6
 
7
7
  /**
8
8
  * Actions represent the type of change to a location value.
@@ -1607,13 +1607,15 @@ type ServerMatch = {
1607
1607
  headers: Headers;
1608
1608
  payload: ServerPayload;
1609
1609
  };
1610
- type DecodeCallServerFunction = (id: string, reply: FormData | string) => Promise<() => Promise<unknown>>;
1611
- type DecodeFormActionFunction = (formData: FormData) => Promise<() => Promise<void>>;
1610
+ type DecodeActionFunction = (formData: FormData) => Promise<() => Promise<void>>;
1612
1611
  type DecodeFormStateFunction = (result: unknown, formData: FormData) => unknown;
1613
- declare function matchRSCServerRequest({ decodeCallServer, decodeFormAction, decodeFormState, onError, request, routes, generateResponse, }: {
1614
- decodeCallServer?: DecodeCallServerFunction;
1615
- decodeFormAction?: DecodeFormActionFunction;
1612
+ type DecodeReplyFunction = (reply: FormData | string) => Promise<unknown[]>;
1613
+ type LoadServerActionFunction = (id: string) => Promise<Function>;
1614
+ declare function matchRSCServerRequest({ decodeReply, loadServerAction, decodeAction, decodeFormState, onError, request, routes, generateResponse, }: {
1615
+ decodeReply?: DecodeReplyFunction;
1616
+ decodeAction?: DecodeActionFunction;
1616
1617
  decodeFormState?: DecodeFormStateFunction;
1618
+ loadServerAction?: LoadServerActionFunction;
1617
1619
  onError?: (error: unknown) => void;
1618
1620
  request: Request;
1619
1621
  routes: ServerRouteObject[];
@@ -1850,4 +1852,4 @@ interface MemorySessionStorageOptions {
1850
1852
  */
1851
1853
  declare function createMemorySessionStorage<Data = SessionData, FlashData = Data>({ cookie }?: MemorySessionStorageOptions): SessionStorage<Data, FlashData>;
1852
1854
 
1853
- export { type Cookie, type CookieOptions, type CookieSignatureOptions, type FlashSessionData, type IsCookieFunction, type IsSessionFunction, type RenderedRoute as ServerRouteManifest, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, createCookie, createCookieSessionStorage, createMemorySessionStorage, createSession, createSessionStorage, createStaticHandler, data, isCookie, isSession, matchRoutes, redirect, redirectDocument, replace, type DecodeCallServerFunction as unstable_DecodeCallServerFunction, type DecodeFormActionFunction as unstable_DecodeFormActionFunction, type unstable_MiddlewareFunction, type unstable_MiddlewareNextFunction, type unstable_RouterContext, unstable_RouterContextProvider, type ServerManifestPayload as unstable_ServerManifestPayload, type ServerMatch as unstable_ServerMatch, type ServerPayload as unstable_ServerPayload, type ServerRenderPayload as unstable_ServerRenderPayload, type ServerRouteMatch as unstable_ServerRouteMatch, type ServerRouteObject as unstable_ServerRouteObject, unstable_createContext, matchRSCServerRequest as unstable_matchRSCServerRequest };
1855
+ export { type Cookie, type CookieOptions, type CookieSignatureOptions, type FlashSessionData, type IsCookieFunction, type IsSessionFunction, type RenderedRoute as ServerRouteManifest, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, createCookie, createCookieSessionStorage, createMemorySessionStorage, createSession, createSessionStorage, createStaticHandler, data, isCookie, isSession, matchRoutes, redirect, redirectDocument, replace, type DecodeActionFunction as unstable_DecodeActionFunction, type DecodeFormStateFunction as unstable_DecodeFormStateFunction, type DecodeReplyFunction as unstable_DecodeReplyFunction, type LoadServerActionFunction as unstable_LoadServerActionFunction, type unstable_MiddlewareFunction, type unstable_MiddlewareNextFunction, type unstable_RouterContext, unstable_RouterContextProvider, type ServerManifestPayload as unstable_ServerManifestPayload, type ServerMatch as unstable_ServerMatch, type ServerPayload as unstable_ServerPayload, type ServerRenderPayload as unstable_ServerRenderPayload, type ServerRouteMatch as unstable_ServerRouteMatch, type ServerRouteObject as unstable_ServerRouteObject, unstable_createContext, matchRSCServerRequest as unstable_matchRSCServerRequest };
@@ -1,8 +1,8 @@
1
+ import { AsyncLocalStorage } from 'node:async_hooks';
2
+ import * as React from 'react';
1
3
  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';
2
4
  import { ParseOptions, SerializeOptions } from 'cookie';
3
5
  export { ParseOptions as CookieParseOptions, SerializeOptions as CookieSerializeOptions } from 'cookie';
4
- import { AsyncLocalStorage } from 'node:async_hooks';
5
- import * as React from 'react';
6
6
 
7
7
  /**
8
8
  * Actions represent the type of change to a location value.
@@ -1607,13 +1607,15 @@ type ServerMatch = {
1607
1607
  headers: Headers;
1608
1608
  payload: ServerPayload;
1609
1609
  };
1610
- type DecodeCallServerFunction = (id: string, reply: FormData | string) => Promise<() => Promise<unknown>>;
1611
- type DecodeFormActionFunction = (formData: FormData) => Promise<() => Promise<void>>;
1610
+ type DecodeActionFunction = (formData: FormData) => Promise<() => Promise<void>>;
1612
1611
  type DecodeFormStateFunction = (result: unknown, formData: FormData) => unknown;
1613
- declare function matchRSCServerRequest({ decodeCallServer, decodeFormAction, decodeFormState, onError, request, routes, generateResponse, }: {
1614
- decodeCallServer?: DecodeCallServerFunction;
1615
- decodeFormAction?: DecodeFormActionFunction;
1612
+ type DecodeReplyFunction = (reply: FormData | string) => Promise<unknown[]>;
1613
+ type LoadServerActionFunction = (id: string) => Promise<Function>;
1614
+ declare function matchRSCServerRequest({ decodeReply, loadServerAction, decodeAction, decodeFormState, onError, request, routes, generateResponse, }: {
1615
+ decodeReply?: DecodeReplyFunction;
1616
+ decodeAction?: DecodeActionFunction;
1616
1617
  decodeFormState?: DecodeFormStateFunction;
1618
+ loadServerAction?: LoadServerActionFunction;
1617
1619
  onError?: (error: unknown) => void;
1618
1620
  request: Request;
1619
1621
  routes: ServerRouteObject[];
@@ -1850,4 +1852,4 @@ interface MemorySessionStorageOptions {
1850
1852
  */
1851
1853
  declare function createMemorySessionStorage<Data = SessionData, FlashData = Data>({ cookie }?: MemorySessionStorageOptions): SessionStorage<Data, FlashData>;
1852
1854
 
1853
- export { type Cookie, type CookieOptions, type CookieSignatureOptions, type FlashSessionData, type IsCookieFunction, type IsSessionFunction, type RenderedRoute as ServerRouteManifest, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, createCookie, createCookieSessionStorage, createMemorySessionStorage, createSession, createSessionStorage, createStaticHandler, data, isCookie, isSession, matchRoutes, redirect, redirectDocument, replace, type DecodeCallServerFunction as unstable_DecodeCallServerFunction, type DecodeFormActionFunction as unstable_DecodeFormActionFunction, type unstable_MiddlewareFunction, type unstable_MiddlewareNextFunction, type unstable_RouterContext, unstable_RouterContextProvider, type ServerManifestPayload as unstable_ServerManifestPayload, type ServerMatch as unstable_ServerMatch, type ServerPayload as unstable_ServerPayload, type ServerRenderPayload as unstable_ServerRenderPayload, type ServerRouteMatch as unstable_ServerRouteMatch, type ServerRouteObject as unstable_ServerRouteObject, unstable_createContext, matchRSCServerRequest as unstable_matchRSCServerRequest };
1855
+ export { type Cookie, type CookieOptions, type CookieSignatureOptions, type FlashSessionData, type IsCookieFunction, type IsSessionFunction, type RenderedRoute as ServerRouteManifest, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, createCookie, createCookieSessionStorage, createMemorySessionStorage, createSession, createSessionStorage, createStaticHandler, data, isCookie, isSession, matchRoutes, redirect, redirectDocument, replace, type DecodeActionFunction as unstable_DecodeActionFunction, type DecodeFormStateFunction as unstable_DecodeFormStateFunction, type DecodeReplyFunction as unstable_DecodeReplyFunction, type LoadServerActionFunction as unstable_LoadServerActionFunction, type unstable_MiddlewareFunction, type unstable_MiddlewareNextFunction, type unstable_RouterContext, unstable_RouterContextProvider, type ServerManifestPayload as unstable_ServerManifestPayload, type ServerMatch as unstable_ServerMatch, type ServerPayload as unstable_ServerPayload, type ServerRenderPayload as unstable_ServerRenderPayload, type ServerRouteMatch as unstable_ServerRouteMatch, type ServerRouteObject as unstable_ServerRouteObject, unstable_createContext, matchRSCServerRequest as unstable_matchRSCServerRequest };