react-router 7.14.0 → 7.14.2

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 (72) hide show
  1. package/CHANGELOG.md +63 -24
  2. package/dist/development/{browser-C9Ar1yxG.d.ts → browser-C-UvoYvi.d.ts} +2 -2
  3. package/dist/development/{browser-vtIR1Kpe.d.mts → browser-I6n6wVSO.d.mts} +2 -2
  4. package/dist/development/{chunk-QFMPRPBF.mjs → chunk-EVOBXE3Y.mjs} +45 -19
  5. package/dist/development/{chunk-WAVMRYR2.js → chunk-PZFPF4X7.js} +7 -7
  6. package/dist/{production/chunk-X5LK27NZ.mjs → development/chunk-YQSHRJWW.mjs} +3 -3
  7. package/dist/{production/chunk-FPT5DLVJ.js → development/chunk-YZKCRDTN.js} +99 -99
  8. package/dist/development/{chunk-IK6APEEG.js → chunk-ZZNWZ5Q3.js} +82 -56
  9. package/dist/{production/context-phCt_zmH.d.mts → development/context-DGGUoDIu.d.mts} +1 -1
  10. package/dist/development/dom-export.d.mts +4 -4
  11. package/dist/development/dom-export.d.ts +4 -4
  12. package/dist/development/dom-export.js +27 -27
  13. package/dist/development/dom-export.mjs +3 -3
  14. package/dist/development/{index-react-server-client-luDbagNU.d.ts → index-react-server-client-BBd0A0TL.d.ts} +2 -2
  15. package/dist/{production/index-react-server-client-BwWaHAr3.d.mts → development/index-react-server-client-BjhKIe3u.d.mts} +2 -2
  16. package/dist/development/index-react-server-client.d.mts +3 -3
  17. package/dist/development/index-react-server-client.d.ts +3 -3
  18. package/dist/development/index-react-server-client.js +4 -4
  19. package/dist/development/index-react-server-client.mjs +2 -2
  20. package/dist/development/index-react-server.d.mts +6 -0
  21. package/dist/development/index-react-server.d.ts +6 -0
  22. package/dist/development/index-react-server.js +9 -6
  23. package/dist/development/index-react-server.mjs +9 -6
  24. package/dist/development/index.d.mts +11 -11
  25. package/dist/development/index.d.ts +11 -11
  26. package/dist/development/index.js +96 -96
  27. package/dist/development/index.mjs +3 -3
  28. package/dist/{production/instrumentation-BYr6ff5D.d.ts → development/instrumentation-g0dG8UL0.d.ts} +1 -1
  29. package/dist/development/lib/types/internal.d.mts +2 -2
  30. package/dist/development/lib/types/internal.d.ts +2 -2
  31. package/dist/development/lib/types/internal.js +1 -1
  32. package/dist/development/lib/types/internal.mjs +1 -1
  33. package/dist/development/{register-CTxsJBKQ.d.mts → register-D9d2sMQ7.d.mts} +1 -1
  34. package/dist/development/{register-CkcGwv27.d.ts → register-DcBltf5q.d.ts} +1 -1
  35. package/dist/development/{routeModules-CA7kSxJJ.d.ts → routeModules-7rtk67cd.d.ts} +32 -11
  36. package/dist/development/{routeModules-BRrCYrSL.d.mts → routeModules-BW4a8k3I.d.mts} +32 -11
  37. package/dist/production/{browser-C9Ar1yxG.d.ts → browser-C-UvoYvi.d.ts} +2 -2
  38. package/dist/production/{browser-vtIR1Kpe.d.mts → browser-I6n6wVSO.d.mts} +2 -2
  39. package/dist/{development/chunk-2UH5WJXA.mjs → production/chunk-2WLZNCK5.mjs} +3 -3
  40. package/dist/production/{chunk-HZQGQD2X.mjs → chunk-LK6U7ULH.mjs} +45 -19
  41. package/dist/production/{chunk-355DUZMC.js → chunk-PQL4HLVQ.js} +7 -7
  42. package/dist/{development/chunk-NXTEWSJO.js → production/chunk-UJQ4OJF4.js} +99 -99
  43. package/dist/production/{chunk-4TJ7T2OQ.js → chunk-X5SKXJ4A.js} +82 -56
  44. package/dist/{development/context-phCt_zmH.d.mts → production/context-DGGUoDIu.d.mts} +1 -1
  45. package/dist/production/dom-export.d.mts +4 -4
  46. package/dist/production/dom-export.d.ts +4 -4
  47. package/dist/production/dom-export.js +27 -27
  48. package/dist/production/dom-export.mjs +3 -3
  49. package/dist/production/{index-react-server-client-luDbagNU.d.ts → index-react-server-client-BBd0A0TL.d.ts} +2 -2
  50. package/dist/{development/index-react-server-client-BwWaHAr3.d.mts → production/index-react-server-client-BjhKIe3u.d.mts} +2 -2
  51. package/dist/production/index-react-server-client.d.mts +3 -3
  52. package/dist/production/index-react-server-client.d.ts +3 -3
  53. package/dist/production/index-react-server-client.js +4 -4
  54. package/dist/production/index-react-server-client.mjs +2 -2
  55. package/dist/production/index-react-server.d.mts +6 -0
  56. package/dist/production/index-react-server.d.ts +6 -0
  57. package/dist/production/index-react-server.js +9 -6
  58. package/dist/production/index-react-server.mjs +9 -6
  59. package/dist/production/index.d.mts +11 -11
  60. package/dist/production/index.d.ts +11 -11
  61. package/dist/production/index.js +96 -96
  62. package/dist/production/index.mjs +3 -3
  63. package/dist/{development/instrumentation-BYr6ff5D.d.ts → production/instrumentation-g0dG8UL0.d.ts} +1 -1
  64. package/dist/production/lib/types/internal.d.mts +2 -2
  65. package/dist/production/lib/types/internal.d.ts +2 -2
  66. package/dist/production/lib/types/internal.js +1 -1
  67. package/dist/production/lib/types/internal.mjs +1 -1
  68. package/dist/production/{register-CTxsJBKQ.d.mts → register-D9d2sMQ7.d.mts} +1 -1
  69. package/dist/production/{register-CkcGwv27.d.ts → register-DcBltf5q.d.ts} +1 -1
  70. package/dist/production/{routeModules-CA7kSxJJ.d.ts → routeModules-7rtk67cd.d.ts} +32 -11
  71. package/dist/production/{routeModules-BRrCYrSL.d.mts → routeModules-BW4a8k3I.d.mts} +32 -11
  72. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.14.0
2
+ * react-router v7.14.2
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -28,7 +28,7 @@ import {
28
28
  isSession,
29
29
  routeRSCServerRequest,
30
30
  setDevServerHooks
31
- } from "./chunk-2UH5WJXA.mjs";
31
+ } from "./chunk-YQSHRJWW.mjs";
32
32
  import {
33
33
  Action,
34
34
  Await,
@@ -141,7 +141,7 @@ import {
141
141
  withComponentProps,
142
142
  withErrorBoundaryProps,
143
143
  withHydrateFallbackProps
144
- } from "./chunk-QFMPRPBF.mjs";
144
+ } from "./chunk-EVOBXE3Y.mjs";
145
145
  export {
146
146
  Await,
147
147
  BrowserRouter,
@@ -1,4 +1,4 @@
1
- import { e as RouteObject, f as History, g as MaybePromise, c as RouterContextProvider, h as MapRoutePropertiesFunction, i as Action, L as Location, D as DataRouteMatch, j as Submission, k as RouteData, l as DataStrategyFunction, m as PatchRoutesOnNavigationFunction, n as DataRouteObject, U as UIMatch, T as To, o as HTMLFormMethod, F as FormEncType, p as Path, q as LoaderFunctionArgs, r as MiddlewareEnabled, s as AppLoadContext } from './routeModules-CA7kSxJJ.js';
1
+ import { e as RouteObject, f as History, g as MaybePromise, c as RouterContextProvider, h as MapRoutePropertiesFunction, i as Action, L as Location, D as DataRouteMatch, j as Submission, k as RouteData, l as DataStrategyFunction, m as PatchRoutesOnNavigationFunction, n as DataRouteObject, U as UIMatch, T as To, o as HTMLFormMethod, F as FormEncType, p as Path, q as LoaderFunctionArgs, r as MiddlewareEnabled, s as AppLoadContext } from './routeModules-7rtk67cd.js';
2
2
 
3
3
  /**
4
4
  * A Router instance manages all navigation and data loading/mutations
@@ -1,5 +1,5 @@
1
- import { R as RouteModule, e as LinkDescriptor, L as Location, F as Func, f as Pretty, g as MetaDescriptor, G as GetLoaderData, h as ServerDataFunctionArgs, i as MiddlewareNextFunction, j as ClientDataFunctionArgs, D as DataStrategyResult, k as ServerDataFrom, N as Normalize, l as GetActionData } from '../../routeModules-BRrCYrSL.mjs';
2
- import { R as RouteFiles, P as Pages } from '../../register-CTxsJBKQ.mjs';
1
+ import { R as RouteModule, e as LinkDescriptor, L as Location, F as Func, f as Pretty, g as MetaDescriptor, G as GetLoaderData, h as ServerDataFunctionArgs, i as MiddlewareNextFunction, j as ClientDataFunctionArgs, D as DataStrategyResult, k as ServerDataFrom, N as Normalize, l as GetActionData } from '../../routeModules-BW4a8k3I.mjs';
2
+ import { R as RouteFiles, P as Pages } from '../../register-D9d2sMQ7.mjs';
3
3
  import 'react';
4
4
 
5
5
  type MaybePromise<T> = T | Promise<T>;
@@ -1,5 +1,5 @@
1
- import { R as RouteModule, t as LinkDescriptor, L as Location, u as Func, v as Pretty, w as MetaDescriptor, G as GetLoaderData, x as ServerDataFunctionArgs, y as MiddlewareNextFunction, z as ClientDataFunctionArgs, B as DataStrategyResult, E as ServerDataFrom, N as Normalize, I as GetActionData } from '../../routeModules-CA7kSxJJ.js';
2
- import { R as RouteFiles, P as Pages } from '../../register-CkcGwv27.js';
1
+ import { R as RouteModule, t as LinkDescriptor, L as Location, u as Func, v as Pretty, w as MetaDescriptor, G as GetLoaderData, x as ServerDataFunctionArgs, y as MiddlewareNextFunction, z as ClientDataFunctionArgs, B as DataStrategyResult, E as ServerDataFrom, N as Normalize, I as GetActionData } from '../../routeModules-7rtk67cd.js';
2
+ import { R as RouteFiles, P as Pages } from '../../register-DcBltf5q.js';
3
3
  import 'react';
4
4
 
5
5
  type MaybePromise<T> = T | Promise<T>;
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * react-router v7.14.0
2
+ * react-router v7.14.2
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.14.0
2
+ * react-router v7.14.2
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,4 +1,4 @@
1
- import { R as RouteModule } from './routeModules-BRrCYrSL.mjs';
1
+ import { R as RouteModule } from './routeModules-BW4a8k3I.mjs';
2
2
 
3
3
  /**
4
4
  * Apps can use this interface to "register" app-wide types for React Router via interface declaration merging and module augmentation.
@@ -1,4 +1,4 @@
1
- import { R as RouteModule } from './routeModules-CA7kSxJJ.js';
1
+ import { R as RouteModule } from './routeModules-7rtk67cd.js';
2
2
 
3
3
  /**
4
4
  * Apps can use this interface to "register" app-wide types for React Router via interface declaration merging and module augmentation.
@@ -846,13 +846,30 @@ type DataNonIndexRouteObject = NonIndexRouteObject & {
846
846
  type DataRouteObject = DataIndexRouteObject | DataNonIndexRouteObject;
847
847
  type RouteManifest<R = DataRouteObject> = Record<string, R | undefined>;
848
848
  type Regex_az = "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
849
- type Regez_AZ = "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z";
849
+ type Regex_AZ = Uppercase<Regex_az>;
850
850
  type Regex_09 = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9";
851
- type Regex_w = Regex_az | Regez_AZ | Regex_09 | "_";
852
- type ParamChar = Regex_w | "-";
853
- type RegexMatchPlus<CharPattern extends string, T extends string> = T extends `${infer First}${infer Rest}` ? First extends CharPattern ? RegexMatchPlus<CharPattern, Rest> extends never ? First : `${First}${RegexMatchPlus<CharPattern, Rest>}` : never : never;
854
- type _PathParam<Path extends string> = Path extends `${infer L}/${infer R}` ? _PathParam<L> | _PathParam<R> : Path extends `:${infer Param}` ? Param extends `${infer Optional}?${string}` ? RegexMatchPlus<ParamChar, Optional> : RegexMatchPlus<ParamChar, Param> : never;
855
- type PathParam<Path extends string> = Path extends "*" | "/*" ? "*" : Path extends `${infer Rest}/*` ? "*" | _PathParam<Rest> : _PathParam<Path>;
851
+ type Regex_w = Regex_az | Regex_AZ | Regex_09 | "_";
852
+ /** Emulates Regex `+` operator */
853
+ type RegexMatchPlus<char extends string, T extends string> = _RegexMatchPlus<char, T> extends infer result extends string ? result extends '' ? never : result : never;
854
+ type _RegexMatchPlus<char extends string, T extends string> = T extends `${infer head extends char}${infer rest}` ? `${head}${_RegexMatchPlus<char, rest>}` : '';
855
+ type ParamNameChar = Regex_w | "-";
856
+ type Simplify<T> = {
857
+ [K in keyof T]: T[K];
858
+ } & {};
859
+ type GeneratePathParams<path extends string> = Simplify<ParseParams<path> & {
860
+ [key in string]: string | null | undefined;
861
+ }>;
862
+ type ParseParams<path extends string> = path extends '*' ? {
863
+ '*': string;
864
+ } : path extends `${infer rest}/*` ? {
865
+ '*': string;
866
+ } & ParseParams<rest> : _ParseParams<path>;
867
+ type _ParseParams<path extends string> = path extends `${infer left}/${infer right}` ? _ParseParams<left> & _ParseParams<right> : path extends `:${infer param}?${string}` ? {
868
+ [key in RegexMatchPlus<ParamNameChar, param>]?: string | null | undefined;
869
+ } : path extends `:${infer param}` ? {
870
+ [key in RegexMatchPlus<ParamNameChar, param>]: string;
871
+ } : {};
872
+ type PathParam<path extends string> = (keyof ParseParams<path>) & string;
856
873
  type ParamParseKey<Segment extends string> = [
857
874
  PathParam<Segment>
858
875
  ] extends [never] ? string : PathParam<Segment>;
@@ -953,9 +970,7 @@ interface UIMatch<Data = unknown, Handle = unknown> {
953
970
  * @param params The parameters to interpolate into the path.
954
971
  * @returns The generated path with parameters interpolated.
955
972
  */
956
- declare function generatePath<Path extends string>(originalPath: Path, params?: {
957
- [key in PathParam<Path>]: string | null;
958
- }): string;
973
+ declare function generatePath<Path extends string>(originalPath: Path, params?: GeneratePathParams<Path>): string;
959
974
  /**
960
975
  * Used to match on some portion of a URL pathname.
961
976
  */
@@ -1011,7 +1026,7 @@ interface PathMatch<ParamKey extends string = string> {
1011
1026
  * @returns A path match object if the pattern matches the pathname,
1012
1027
  * or `null` if it does not match.
1013
1028
  */
1014
- declare function matchPath<ParamKey extends ParamParseKey<Path>, Path extends string>(pattern: PathPattern<Path> | Path, pathname: string): PathMatch<ParamKey> | null;
1029
+ declare function matchPath<Path extends string>(pattern: PathPattern<Path> | Path, pathname: string): PathMatch<ParamParseKey<Path>> | null;
1015
1030
  /**
1016
1031
  * Returns a resolved {@link Path} object relative to the given pathname.
1017
1032
  *
@@ -1067,6 +1082,9 @@ type RedirectFunction = (url: string, init?: number | ResponseInit) => Response;
1067
1082
  * Sets the status code and the [`Location`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Location)
1068
1083
  * header. Defaults to [`302 Found`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302).
1069
1084
  *
1085
+ * This utility accepts absolute URLs and can navigate to external domains, so
1086
+ * the application should validate any user-supplied inputs to redirects.
1087
+ *
1070
1088
  * @example
1071
1089
  * import { redirect } from "react-router";
1072
1090
  *
@@ -1096,6 +1114,9 @@ declare const redirect: RedirectFunction;
1096
1114
  * and the [`Location`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Location)
1097
1115
  * header. Defaults to [`302 Found`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302).
1098
1116
  *
1117
+ * This utility accepts absolute URLs and can navigate to external domains, so
1118
+ * the application should validate any user-supplied inputs to redirects.
1119
+ *
1099
1120
  * ```tsx filename=routes/logout.tsx
1100
1121
  * import { redirectDocument } from "react-router";
1101
1122
  *
@@ -1690,4 +1711,4 @@ type RouteComponent = ComponentType<{}>;
1690
1711
  */
1691
1712
  type RouteHandle = unknown;
1692
1713
 
1693
- export { type BaseRouteObject as $, type ActionFunction as A, type DataStrategyResult as B, type ClientActionFunction as C, type DataRouteMatch as D, type ServerDataFrom as E, type FormEncType as F, type GetLoaderData as G, type HeadersFunction as H, type GetActionData as I, type RouteModules as J, type SerializeFrom as K, type Location as L, type MetaFunction as M, type Normalize as N, type ParamParseKey as O, type Params as P, type PathPattern as Q, type RouteModule$1 as R, type ShouldRevalidateFunction as S, type To as T, type UIMatch as U, type PathMatch as V, type InitialEntry as W, type IndexRouteObject as X, type NonIndexRouteObject as Y, type Equal as Z, type ActionFunctionArgs as _, type ClientLoaderFunction as a, type DataStrategyFunctionArgs as a0, type DataStrategyMatch as a1, DataWithResponseInit as a2, type ErrorResponse as a3, type FormMethod as a4, type LazyRouteFunction as a5, type MiddlewareFunction as a6, type PatchRoutesOnNavigationFunctionArgs as a7, type PathParam as a8, type RedirectFunction as a9, invariant as aA, ErrorResponseImpl as aB, type RouteManifest as aC, type ServerRouteModule as aD, type TrackedPromise as aE, type RouteMatch as aa, type RouterContext as ab, type ShouldRevalidateFunctionArgs as ac, createContext as ad, createPath as ae, parsePath as af, data as ag, generatePath as ah, isRouteErrorResponse as ai, matchPath as aj, matchRoutes as ak, redirect as al, redirectDocument as am, replace as an, resolvePath as ao, type ClientActionFunctionArgs as ap, type ClientLoaderFunctionArgs as aq, type HeadersArgs as ar, type MetaArgs as as, type PageLinkDescriptor as at, type HtmlLinkDescriptor as au, type Future as av, type unstable_SerializesTo as aw, createMemoryHistory as ax, createBrowserHistory as ay, createHashHistory as az, type LinksFunction as b, RouterContextProvider as c, type LoaderFunction as d, type RouteObject as e, type History as f, type MaybePromise as g, type MapRoutePropertiesFunction as h, Action as i, type Submission as j, type RouteData as k, type DataStrategyFunction as l, type PatchRoutesOnNavigationFunction as m, type DataRouteObject as n, type HTMLFormMethod as o, type Path as p, type LoaderFunctionArgs as q, type MiddlewareEnabled as r, type AppLoadContext as s, type LinkDescriptor as t, type Func as u, type Pretty as v, type MetaDescriptor as w, type ServerDataFunctionArgs as x, type MiddlewareNextFunction as y, type ClientDataFunctionArgs as z };
1714
+ export { type BaseRouteObject as $, type ActionFunction as A, type DataStrategyResult as B, type ClientActionFunction as C, type DataRouteMatch as D, type ServerDataFrom as E, type FormEncType as F, type GetLoaderData as G, type HeadersFunction as H, type GetActionData as I, type RouteModules as J, type SerializeFrom as K, type Location as L, type MetaFunction as M, type Normalize as N, type PathPattern as O, type Params as P, type PathMatch as Q, type RouteModule$1 as R, type ShouldRevalidateFunction as S, type To as T, type UIMatch as U, type ParamParseKey as V, type InitialEntry as W, type IndexRouteObject as X, type NonIndexRouteObject as Y, type Equal as Z, type ActionFunctionArgs as _, type ClientLoaderFunction as a, type DataStrategyFunctionArgs as a0, type DataStrategyMatch as a1, DataWithResponseInit as a2, type ErrorResponse as a3, type FormMethod as a4, type LazyRouteFunction as a5, type MiddlewareFunction as a6, type PatchRoutesOnNavigationFunctionArgs as a7, type PathParam as a8, type RedirectFunction as a9, invariant as aA, ErrorResponseImpl as aB, type RouteManifest as aC, type ServerRouteModule as aD, type TrackedPromise as aE, type RouteMatch as aa, type RouterContext as ab, type ShouldRevalidateFunctionArgs as ac, createContext as ad, createPath as ae, parsePath as af, data as ag, generatePath as ah, isRouteErrorResponse as ai, matchPath as aj, matchRoutes as ak, redirect as al, redirectDocument as am, replace as an, resolvePath as ao, type ClientActionFunctionArgs as ap, type ClientLoaderFunctionArgs as aq, type HeadersArgs as ar, type MetaArgs as as, type PageLinkDescriptor as at, type HtmlLinkDescriptor as au, type Future as av, type unstable_SerializesTo as aw, createMemoryHistory as ax, createBrowserHistory as ay, createHashHistory as az, type LinksFunction as b, RouterContextProvider as c, type LoaderFunction as d, type RouteObject as e, type History as f, type MaybePromise as g, type MapRoutePropertiesFunction as h, Action as i, type Submission as j, type RouteData as k, type DataStrategyFunction as l, type PatchRoutesOnNavigationFunction as m, type DataRouteObject as n, type HTMLFormMethod as o, type Path as p, type LoaderFunctionArgs as q, type MiddlewareEnabled as r, type AppLoadContext as s, type LinkDescriptor as t, type Func as u, type Pretty as v, type MetaDescriptor as w, type ServerDataFunctionArgs as x, type MiddlewareNextFunction as y, type ClientDataFunctionArgs as z };
@@ -846,13 +846,30 @@ type DataNonIndexRouteObject = NonIndexRouteObject & {
846
846
  type DataRouteObject = DataIndexRouteObject | DataNonIndexRouteObject;
847
847
  type RouteManifest<R = DataRouteObject> = Record<string, R | undefined>;
848
848
  type Regex_az = "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
849
- type Regez_AZ = "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z";
849
+ type Regex_AZ = Uppercase<Regex_az>;
850
850
  type Regex_09 = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9";
851
- type Regex_w = Regex_az | Regez_AZ | Regex_09 | "_";
852
- type ParamChar = Regex_w | "-";
853
- type RegexMatchPlus<CharPattern extends string, T extends string> = T extends `${infer First}${infer Rest}` ? First extends CharPattern ? RegexMatchPlus<CharPattern, Rest> extends never ? First : `${First}${RegexMatchPlus<CharPattern, Rest>}` : never : never;
854
- type _PathParam<Path extends string> = Path extends `${infer L}/${infer R}` ? _PathParam<L> | _PathParam<R> : Path extends `:${infer Param}` ? Param extends `${infer Optional}?${string}` ? RegexMatchPlus<ParamChar, Optional> : RegexMatchPlus<ParamChar, Param> : never;
855
- type PathParam<Path extends string> = Path extends "*" | "/*" ? "*" : Path extends `${infer Rest}/*` ? "*" | _PathParam<Rest> : _PathParam<Path>;
851
+ type Regex_w = Regex_az | Regex_AZ | Regex_09 | "_";
852
+ /** Emulates Regex `+` operator */
853
+ type RegexMatchPlus<char extends string, T extends string> = _RegexMatchPlus<char, T> extends infer result extends string ? result extends '' ? never : result : never;
854
+ type _RegexMatchPlus<char extends string, T extends string> = T extends `${infer head extends char}${infer rest}` ? `${head}${_RegexMatchPlus<char, rest>}` : '';
855
+ type ParamNameChar = Regex_w | "-";
856
+ type Simplify<T> = {
857
+ [K in keyof T]: T[K];
858
+ } & {};
859
+ type GeneratePathParams<path extends string> = Simplify<ParseParams<path> & {
860
+ [key in string]: string | null | undefined;
861
+ }>;
862
+ type ParseParams<path extends string> = path extends '*' ? {
863
+ '*': string;
864
+ } : path extends `${infer rest}/*` ? {
865
+ '*': string;
866
+ } & ParseParams<rest> : _ParseParams<path>;
867
+ type _ParseParams<path extends string> = path extends `${infer left}/${infer right}` ? _ParseParams<left> & _ParseParams<right> : path extends `:${infer param}?${string}` ? {
868
+ [key in RegexMatchPlus<ParamNameChar, param>]?: string | null | undefined;
869
+ } : path extends `:${infer param}` ? {
870
+ [key in RegexMatchPlus<ParamNameChar, param>]: string;
871
+ } : {};
872
+ type PathParam<path extends string> = (keyof ParseParams<path>) & string;
856
873
  type ParamParseKey<Segment extends string> = [
857
874
  PathParam<Segment>
858
875
  ] extends [never] ? string : PathParam<Segment>;
@@ -953,9 +970,7 @@ interface UIMatch<Data = unknown, Handle = unknown> {
953
970
  * @param params The parameters to interpolate into the path.
954
971
  * @returns The generated path with parameters interpolated.
955
972
  */
956
- declare function generatePath<Path extends string>(originalPath: Path, params?: {
957
- [key in PathParam<Path>]: string | null;
958
- }): string;
973
+ declare function generatePath<Path extends string>(originalPath: Path, params?: GeneratePathParams<Path>): string;
959
974
  /**
960
975
  * Used to match on some portion of a URL pathname.
961
976
  */
@@ -1011,7 +1026,7 @@ interface PathMatch<ParamKey extends string = string> {
1011
1026
  * @returns A path match object if the pattern matches the pathname,
1012
1027
  * or `null` if it does not match.
1013
1028
  */
1014
- declare function matchPath<ParamKey extends ParamParseKey<Path>, Path extends string>(pattern: PathPattern<Path> | Path, pathname: string): PathMatch<ParamKey> | null;
1029
+ declare function matchPath<Path extends string>(pattern: PathPattern<Path> | Path, pathname: string): PathMatch<ParamParseKey<Path>> | null;
1015
1030
  /**
1016
1031
  * Returns a resolved {@link Path} object relative to the given pathname.
1017
1032
  *
@@ -1067,6 +1082,9 @@ type RedirectFunction = (url: string, init?: number | ResponseInit) => Response;
1067
1082
  * Sets the status code and the [`Location`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Location)
1068
1083
  * header. Defaults to [`302 Found`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302).
1069
1084
  *
1085
+ * This utility accepts absolute URLs and can navigate to external domains, so
1086
+ * the application should validate any user-supplied inputs to redirects.
1087
+ *
1070
1088
  * @example
1071
1089
  * import { redirect } from "react-router";
1072
1090
  *
@@ -1096,6 +1114,9 @@ declare const redirect: RedirectFunction;
1096
1114
  * and the [`Location`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Location)
1097
1115
  * header. Defaults to [`302 Found`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302).
1098
1116
  *
1117
+ * This utility accepts absolute URLs and can navigate to external domains, so
1118
+ * the application should validate any user-supplied inputs to redirects.
1119
+ *
1099
1120
  * ```tsx filename=routes/logout.tsx
1100
1121
  * import { redirectDocument } from "react-router";
1101
1122
  *
@@ -1690,4 +1711,4 @@ type RouteComponent = ComponentType<{}>;
1690
1711
  */
1691
1712
  type RouteHandle = unknown;
1692
1713
 
1693
- export { type PathMatch as $, type ActionFunction as A, type PatchRoutesOnNavigationFunction as B, type ClientActionFunction as C, type DataStrategyResult as D, type DataRouteObject as E, type Func as F, type GetLoaderData as G, type HeadersFunction as H, type Path as I, type InitialEntry as J, type NonIndexRouteObject as K, type Location as L, type MetaFunction as M, type Normalize as N, type LazyRouteFunction as O, type Params as P, type IndexRouteObject as Q, type RouteModule$1 as R, type ShouldRevalidateFunction as S, type To as T, type UIMatch as U, type RouteMatch as V, type TrackedPromise as W, type RouteModules as X, type SerializeFrom as Y, type ParamParseKey as Z, type PathPattern as _, type ClientLoaderFunction as a, type Equal as a0, type ActionFunctionArgs as a1, type BaseRouteObject as a2, type DataStrategyFunctionArgs as a3, type DataStrategyMatch as a4, DataWithResponseInit as a5, type ErrorResponse as a6, type FormMethod as a7, type MiddlewareFunction as a8, type PatchRoutesOnNavigationFunctionArgs as a9, createHashHistory as aA, invariant as aB, ErrorResponseImpl as aC, type RouteManifest as aD, type ServerRouteModule as aE, type PathParam as aa, type RedirectFunction as ab, type RouterContext as ac, type ShouldRevalidateFunctionArgs as ad, createContext as ae, createPath as af, parsePath as ag, data as ah, generatePath as ai, isRouteErrorResponse as aj, matchPath as ak, matchRoutes as al, redirect as am, redirectDocument as an, replace as ao, resolvePath as ap, type ClientActionFunctionArgs as aq, type ClientLoaderFunctionArgs as ar, type HeadersArgs as as, type MetaArgs as at, type PageLinkDescriptor as au, type HtmlLinkDescriptor as av, type Future as aw, type unstable_SerializesTo as ax, createMemoryHistory as ay, createBrowserHistory as az, type LinksFunction as b, RouterContextProvider as c, type LoaderFunction as d, type LinkDescriptor as e, type Pretty as f, type MetaDescriptor as g, type ServerDataFunctionArgs as h, type MiddlewareNextFunction as i, type ClientDataFunctionArgs as j, type ServerDataFrom as k, type GetActionData as l, type HTMLFormMethod as m, type FormEncType as n, type LoaderFunctionArgs as o, type MiddlewareEnabled as p, type AppLoadContext as q, type RouteObject as r, type History as s, type MaybePromise as t, type MapRoutePropertiesFunction as u, Action as v, type DataRouteMatch as w, type Submission as x, type RouteData as y, type DataStrategyFunction as z };
1714
+ export { type ParamParseKey as $, type ActionFunction as A, type PatchRoutesOnNavigationFunction as B, type ClientActionFunction as C, type DataStrategyResult as D, type DataRouteObject as E, type Func as F, type GetLoaderData as G, type HeadersFunction as H, type Path as I, type InitialEntry as J, type NonIndexRouteObject as K, type Location as L, type MetaFunction as M, type Normalize as N, type LazyRouteFunction as O, type Params as P, type IndexRouteObject as Q, type RouteModule$1 as R, type ShouldRevalidateFunction as S, type To as T, type UIMatch as U, type RouteMatch as V, type TrackedPromise as W, type RouteModules as X, type SerializeFrom as Y, type PathPattern as Z, type PathMatch as _, type ClientLoaderFunction as a, type Equal as a0, type ActionFunctionArgs as a1, type BaseRouteObject as a2, type DataStrategyFunctionArgs as a3, type DataStrategyMatch as a4, DataWithResponseInit as a5, type ErrorResponse as a6, type FormMethod as a7, type MiddlewareFunction as a8, type PatchRoutesOnNavigationFunctionArgs as a9, createHashHistory as aA, invariant as aB, ErrorResponseImpl as aC, type RouteManifest as aD, type ServerRouteModule as aE, type PathParam as aa, type RedirectFunction as ab, type RouterContext as ac, type ShouldRevalidateFunctionArgs as ad, createContext as ae, createPath as af, parsePath as ag, data as ah, generatePath as ai, isRouteErrorResponse as aj, matchPath as ak, matchRoutes as al, redirect as am, redirectDocument as an, replace as ao, resolvePath as ap, type ClientActionFunctionArgs as aq, type ClientLoaderFunctionArgs as ar, type HeadersArgs as as, type MetaArgs as at, type PageLinkDescriptor as au, type HtmlLinkDescriptor as av, type Future as aw, type unstable_SerializesTo as ax, createMemoryHistory as ay, createBrowserHistory as az, type LinksFunction as b, RouterContextProvider as c, type LoaderFunction as d, type LinkDescriptor as e, type Pretty as f, type MetaDescriptor as g, type ServerDataFunctionArgs as h, type MiddlewareNextFunction as i, type ClientDataFunctionArgs as j, type ServerDataFrom as k, type GetActionData as l, type HTMLFormMethod as m, type FormEncType as n, type LoaderFunctionArgs as o, type MiddlewareEnabled as p, type AppLoadContext as q, type RouteObject as r, type History as s, type MaybePromise as t, type MapRoutePropertiesFunction as u, Action as v, type DataRouteMatch as w, type Submission as x, type RouteData as y, type DataStrategyFunction as z };
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { R as RouterInit } from './instrumentation-BYr6ff5D.js';
3
- import { L as Location, C as ClientActionFunction, a as ClientLoaderFunction, b as LinksFunction, M as MetaFunction, S as ShouldRevalidateFunction, P as Params, c as RouterContextProvider, A as ActionFunction, H as HeadersFunction, d as LoaderFunction } from './routeModules-CA7kSxJJ.js';
2
+ import { R as RouterInit } from './instrumentation-g0dG8UL0.js';
3
+ import { L as Location, C as ClientActionFunction, a as ClientLoaderFunction, b as LinksFunction, M as MetaFunction, S as ShouldRevalidateFunction, P as Params, c as RouterContextProvider, A as ActionFunction, H as HeadersFunction, d as LoaderFunction } from './routeModules-7rtk67cd.js';
4
4
 
5
5
  declare function getRequest(): Request;
6
6
  type RSCRouteConfigEntryBase = {
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { R as RouterInit } from './context-phCt_zmH.mjs';
3
- import { L as Location, C as ClientActionFunction, a as ClientLoaderFunction, b as LinksFunction, M as MetaFunction, S as ShouldRevalidateFunction, P as Params, c as RouterContextProvider, A as ActionFunction, H as HeadersFunction, d as LoaderFunction } from './routeModules-BRrCYrSL.mjs';
2
+ import { R as RouterInit } from './context-DGGUoDIu.mjs';
3
+ import { L as Location, C as ClientActionFunction, a as ClientLoaderFunction, b as LinksFunction, M as MetaFunction, S as ShouldRevalidateFunction, P as Params, c as RouterContextProvider, A as ActionFunction, H as HeadersFunction, d as LoaderFunction } from './routeModules-BW4a8k3I.mjs';
4
4
 
5
5
  declare function getRequest(): Request;
6
6
  type RSCRouteConfigEntryBase = {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.14.0
2
+ * react-router v7.14.2
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -51,7 +51,7 @@ import {
51
51
  withComponentProps,
52
52
  withErrorBoundaryProps,
53
53
  withHydrateFallbackProps
54
- } from "./chunk-QFMPRPBF.mjs";
54
+ } from "./chunk-LK6U7ULH.mjs";
55
55
 
56
56
  // lib/dom/ssr/server.tsx
57
57
  import * as React from "react";
@@ -579,7 +579,7 @@ function getDevServerHooks() {
579
579
  function getBuildTimeHeader(request, headerName) {
580
580
  if (typeof process !== "undefined") {
581
581
  try {
582
- if (process.env?.IS_RR_BUILD_REQUEST === "yes") {
582
+ if (process.env.hasOwnProperty("IS_RR_BUILD_REQUEST") && process.env.IS_RR_BUILD_REQUEST === "yes") {
583
583
  return request.headers.get(headerName);
584
584
  }
585
585
  } catch (e) {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.14.0
2
+ * react-router v7.14.2
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -723,8 +723,7 @@ function generatePath(originalPath, params = {}) {
723
723
  const segments = path.split(/\/+/).map((segment, index, array) => {
724
724
  const isLastSegment = index === array.length - 1;
725
725
  if (isLastSegment && segment === "*") {
726
- const star = "*";
727
- return stringify2(params[star]);
726
+ return stringify2(params["*"]);
728
727
  }
729
728
  const keyMatch = segment.match(/^:([\w-]+)(\??)(.*)/);
730
729
  if (keyMatch) {
@@ -845,7 +844,7 @@ function resolvePath(to, fromPathname = "/") {
845
844
  } = typeof to === "string" ? parsePath(to) : to;
846
845
  let pathname;
847
846
  if (toPathname) {
848
- toPathname = toPathname.replace(/\/\/+/g, "/");
847
+ toPathname = removeDoubleSlashes(toPathname);
849
848
  if (toPathname.startsWith("/")) {
850
849
  pathname = resolvePathname(toPathname.substring(1), "/");
851
850
  } else {
@@ -861,7 +860,7 @@ function resolvePath(to, fromPathname = "/") {
861
860
  };
862
861
  }
863
862
  function resolvePathname(relativePath, fromPathname) {
864
- let segments = fromPathname.replace(/\/+$/, "").split("/");
863
+ let segments = removeTrailingSlash(fromPathname).split("/");
865
864
  let relativeSegments = relativePath.split("/");
866
865
  relativeSegments.forEach((segment) => {
867
866
  if (segment === "..") {
@@ -932,8 +931,10 @@ function resolveTo(toArg, routePathnames, locationPathname, isPathRelative = fal
932
931
  }
933
932
  return path;
934
933
  }
935
- var joinPaths = (paths) => paths.join("/").replace(/\/\/+/g, "/");
936
- var normalizePathname = (pathname) => pathname.replace(/\/+$/, "").replace(/^\/*/, "/");
934
+ var removeDoubleSlashes = (path) => path.replace(/\/\/+/g, "/");
935
+ var joinPaths = (paths) => removeDoubleSlashes(paths.join("/"));
936
+ var removeTrailingSlash = (path) => path.replace(/\/+$/, "");
937
+ var normalizePathname = (pathname) => removeTrailingSlash(pathname).replace(/^\/*/, "/");
937
938
  var normalizeSearch = (search) => !search || search === "?" ? "" : search.startsWith("?") ? search : "?" + search;
938
939
  var normalizeHash = (hash) => !hash || hash === "#" ? "" : hash.startsWith("#") ? hash : "#" + hash;
939
940
  var DataWithResponseInit = class {
@@ -987,7 +988,8 @@ function isRouteErrorResponse(error) {
987
988
  return error != null && typeof error.status === "number" && typeof error.statusText === "string" && typeof error.internal === "boolean" && "data" in error;
988
989
  }
989
990
  function getRoutePattern(matches) {
990
- return matches.map((m) => m.route.path).filter(Boolean).join("/").replace(/\/\/*/g, "/") || "/";
991
+ let parts = matches.map((m) => m.route.path).filter(Boolean);
992
+ return joinPaths(parts) || "/";
991
993
  }
992
994
  var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
993
995
  function parseToInfo(_to, basename) {
@@ -2656,6 +2658,14 @@ function createRouter(init) {
2656
2658
  key
2657
2659
  );
2658
2660
  let result = results[match.route.id];
2661
+ if (!result) {
2662
+ for (let match2 of matches) {
2663
+ if (results[match2.route.id]) {
2664
+ result = results[match2.route.id];
2665
+ break;
2666
+ }
2667
+ }
2668
+ }
2659
2669
  if (fetchControllers.get(key) === abortController) {
2660
2670
  fetchControllers.delete(key);
2661
2671
  }
@@ -5022,7 +5032,7 @@ function normalizeRedirectLocation(location, currentUrl, basename, historyInstan
5022
5032
  }
5023
5033
  let isSameBasename = stripBasename(url.pathname, basename) != null;
5024
5034
  if (url.origin === currentUrl.origin && isSameBasename) {
5025
- return url.pathname + url.search + url.hash;
5035
+ return removeDoubleSlashes(url.pathname) + url.search + url.hash;
5026
5036
  }
5027
5037
  }
5028
5038
  try {
@@ -5732,7 +5742,7 @@ function useOutlet(context) {
5732
5742
  function useParams() {
5733
5743
  let { matches } = React2.useContext(RouteContext);
5734
5744
  let routeMatch = matches[matches.length - 1];
5735
- return routeMatch ? routeMatch.params : {};
5745
+ return routeMatch?.params ?? {};
5736
5746
  }
5737
5747
  function useResolvedPath(to, { relative } = {}) {
5738
5748
  let { matches } = React2.useContext(RouteContext);
@@ -6503,6 +6513,16 @@ function RouterProvider({
6503
6513
  ]
6504
6514
  );
6505
6515
  React3.useLayoutEffect(() => router.subscribe(setState), [router, setState]);
6516
+ let initialized = state.initialized;
6517
+ React3.useLayoutEffect(() => {
6518
+ if (!initialized && router.state.initialized) {
6519
+ setState(router.state, {
6520
+ deletedFetchers: [],
6521
+ flushSync: false,
6522
+ newErrors: null
6523
+ });
6524
+ }
6525
+ }, [initialized, setState, router.state]);
6506
6526
  React3.useEffect(() => {
6507
6527
  if (vtContext.isTransitioning && !vtContext.flushSync) {
6508
6528
  setRenderDfd(new Deferred());
@@ -7152,6 +7172,14 @@ var TYPE_SET = "S";
7152
7172
  var TYPE_SYMBOL = "Y";
7153
7173
  var TYPE_URL = "U";
7154
7174
  var TYPE_PREVIOUS_RESOLVED = "Z";
7175
+ var SUPPORTED_ERROR_TYPES = [
7176
+ "EvalError",
7177
+ "RangeError",
7178
+ "ReferenceError",
7179
+ "SyntaxError",
7180
+ "TypeError",
7181
+ "URIError"
7182
+ ];
7155
7183
  var Deferred2 = class {
7156
7184
  constructor() {
7157
7185
  this.promise = new Promise((resolve, reject) => {
@@ -7513,7 +7541,7 @@ function hydrate(index) {
7513
7541
  continue;
7514
7542
  case TYPE_ERROR:
7515
7543
  const [, message, errorType] = value;
7516
- let error = errorType && globalObj && globalObj[errorType] ? new globalObj[errorType](message) : new Error(message);
7544
+ let error = errorType && globalObj && SUPPORTED_ERROR_TYPES.includes(errorType) && errorType in globalObj && typeof globalObj[errorType] === "function" ? new globalObj[errorType](message) : new Error(message);
7517
7545
  hydrated[index2] = error;
7518
7546
  set(error);
7519
7547
  continue;
@@ -8219,9 +8247,9 @@ function singleFetchUrl(reqUrl, basename, trailingSlashAware, extension) {
8219
8247
  if (url.pathname === "/") {
8220
8248
  url.pathname = `_root.${extension}`;
8221
8249
  } else if (basename && stripBasename(url.pathname, basename) === "/") {
8222
- url.pathname = `${basename.replace(/\/$/, "")}/_root.${extension}`;
8250
+ url.pathname = `${removeTrailingSlash(basename)}/_root.${extension}`;
8223
8251
  } else {
8224
- url.pathname = `${url.pathname.replace(/\/$/, "")}.${extension}`;
8252
+ url.pathname = `${removeTrailingSlash(url.pathname)}.${extension}`;
8225
8253
  }
8226
8254
  }
8227
8255
  return url;
@@ -8296,7 +8324,8 @@ function decodeViaTurboStream(body, global) {
8296
8324
  if (type === "SanitizedError") {
8297
8325
  let [name, message, stack] = rest;
8298
8326
  let Constructor = Error;
8299
- if (name && name in global && typeof global[name] === "function") {
8327
+ if (name && SUPPORTED_ERROR_TYPES.includes(name) && name in global && // @ts-expect-error
8328
+ typeof global[name] === "function") {
8300
8329
  Constructor = global[name];
8301
8330
  }
8302
8331
  let error = new Constructor(message);
@@ -9177,10 +9206,7 @@ function useFogOFWarDiscovery(router, manifest, routeModules, ssr, routeDiscover
9177
9206
  }
9178
9207
  function getManifestPath(_manifestPath, basename) {
9179
9208
  let manifestPath = _manifestPath || "/__manifest";
9180
- if (basename == null) {
9181
- return manifestPath;
9182
- }
9183
- return `${basename}${manifestPath}`.replace(/\/+/g, "/");
9209
+ return basename == null ? manifestPath : joinPaths([basename, manifestPath]);
9184
9210
  }
9185
9211
  var MANIFEST_VERSION_STORAGE_KEY = "react-router-manifest-version";
9186
9212
  async function fetchAndApplyManifestPatches(paths, errorReloadPath, manifest, routeModules, ssr, isSpaMode, basename, manifestPath, patchRoutes, signal) {
@@ -9970,7 +9996,7 @@ var isBrowser2 = typeof window !== "undefined" && typeof window.document !== "un
9970
9996
  try {
9971
9997
  if (isBrowser2) {
9972
9998
  window.__reactRouterVersion = // @ts-expect-error
9973
- "7.14.0";
9999
+ "7.14.2";
9974
10000
  }
9975
10001
  } catch (e) {
9976
10002
  }
@@ -1,5 +1,5 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }/**
2
- * react-router v7.14.0
2
+ * react-router v7.14.2
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -14,7 +14,7 @@
14
14
 
15
15
 
16
16
 
17
- var _chunk4TJ7T2OQjs = require('./chunk-4TJ7T2OQ.js');
17
+ var _chunkX5SKXJ4Ajs = require('./chunk-X5SKXJ4A.js');
18
18
 
19
19
  // lib/dom/ssr/hydration.tsx
20
20
  function getHydrationData({
@@ -29,12 +29,12 @@ function getHydrationData({
29
29
  ...state,
30
30
  loaderData: { ...state.loaderData }
31
31
  };
32
- let initialMatches = _chunk4TJ7T2OQjs.matchRoutes.call(void 0, routes, location, basename);
32
+ let initialMatches = _chunkX5SKXJ4Ajs.matchRoutes.call(void 0, routes, location, basename);
33
33
  if (initialMatches) {
34
34
  for (let match of initialMatches) {
35
35
  let routeId = match.route.id;
36
36
  let routeInfo = getRouteInfo(routeId);
37
- if (_chunk4TJ7T2OQjs.shouldHydrateRouteLoader.call(void 0,
37
+ if (_chunkX5SKXJ4Ajs.shouldHydrateRouteLoader.call(void 0,
38
38
  routeId,
39
39
  routeInfo.clientLoader,
40
40
  routeInfo.hasLoader,
@@ -112,7 +112,7 @@ function RSCDefaultRootErrorBoundaryImpl({
112
112
  }
113
113
  }
114
114
  );
115
- if (_chunk4TJ7T2OQjs.isRouteErrorResponse.call(void 0, error)) {
115
+ if (_chunkX5SKXJ4Ajs.isRouteErrorResponse.call(void 0, error)) {
116
116
  return /* @__PURE__ */ _react2.default.createElement(
117
117
  ErrorWrapper,
118
118
  {
@@ -120,7 +120,7 @@ function RSCDefaultRootErrorBoundaryImpl({
120
120
  title: "Unhandled Thrown Response!"
121
121
  },
122
122
  /* @__PURE__ */ _react2.default.createElement("h1", { style: { fontSize: "24px" } }, error.status, " ", error.statusText),
123
- _chunk4TJ7T2OQjs.ENABLE_DEV_WARNINGS ? heyDeveloper : null
123
+ _chunkX5SKXJ4Ajs.ENABLE_DEV_WARNINGS ? heyDeveloper : null
124
124
  );
125
125
  }
126
126
  let errorInstance;
@@ -146,7 +146,7 @@ function RSCDefaultRootErrorBoundaryImpl({
146
146
  function RSCDefaultRootErrorBoundary({
147
147
  hasRootLayout
148
148
  }) {
149
- let error = _chunk4TJ7T2OQjs.useRouteError.call(void 0, );
149
+ let error = _chunkX5SKXJ4Ajs.useRouteError.call(void 0, );
150
150
  if (hasRootLayout === void 0) {
151
151
  throw new Error("Missing 'hasRootLayout' prop");
152
152
  }