@@ -570,7 +570,7 @@ function requireReact_production () {
570570 react_production.useTransition = function () {
571571 return ReactSharedInternals.H.useTransition();
572572 };
573- react_production.version = "19.1.0 ";
573+ react_production.version = "19.1.1 ";
574574 return react_production;
575575}
576576
@@ -3895,7 +3895,7 @@ function useFalconApiContext() {
38953895}
38963896
38973897/**
3898- * react-router v7.7.0
3898+ * react-router v7.7.1
38993899 *
39003900 * Copyright (c) Remix Software Inc.
39013901 *
@@ -4640,68 +4640,71 @@ function _renderMatches(matches, parentMatches = [], dataRouterState = null, fut
46404640 }
46414641 }
46424642 }
4643- return renderedMatches.reduceRight((outlet, match, index) => {
4644- let error;
4645- let shouldRenderHydrateFallback = false;
4646- let errorElement = null;
4647- let hydrateFallbackElement = null;
4648- if (dataRouterState) {
4649- error = errors && match.route.id ? errors[match.route.id] : void 0;
4650- errorElement = match.route.errorElement || defaultErrorElement;
4651- if (renderFallback) {
4652- if (fallbackIndex < 0 && index === 0) {
4653- warningOnce(
4654- "route-fallback",
4655- false,
4656- "No `HydrateFallback` element provided to render during initial hydration"
4657- );
4658- shouldRenderHydrateFallback = true;
4659- hydrateFallbackElement = null;
4660- } else if (fallbackIndex === index) {
4661- shouldRenderHydrateFallback = true;
4662- hydrateFallbackElement = match.route.hydrateFallbackElement || null;
4643+ return renderedMatches.reduceRight(
4644+ (outlet, match, index) => {
4645+ let error;
4646+ let shouldRenderHydrateFallback = false;
4647+ let errorElement = null;
4648+ let hydrateFallbackElement = null;
4649+ if (dataRouterState) {
4650+ error = errors && match.route.id ? errors[match.route.id] : void 0;
4651+ errorElement = match.route.errorElement || defaultErrorElement;
4652+ if (renderFallback) {
4653+ if (fallbackIndex < 0 && index === 0) {
4654+ warningOnce(
4655+ "route-fallback",
4656+ false,
4657+ "No `HydrateFallback` element provided to render during initial hydration"
4658+ );
4659+ shouldRenderHydrateFallback = true;
4660+ hydrateFallbackElement = null;
4661+ } else if (fallbackIndex === index) {
4662+ shouldRenderHydrateFallback = true;
4663+ hydrateFallbackElement = match.route.hydrateFallbackElement || null;
4664+ }
46634665 }
46644666 }
4665- }
4666- let matches2 = parentMatches.concat(renderedMatches.slice(0, index + 1));
4667- let getChildren = () => {
4668- let children;
4669- if (error) {
4670- children = errorElement;
4671- } else if (shouldRenderHydrateFallback) {
4672- children = hydrateFallbackElement;
4673- } else if (match.route.Component) {
4674- children = /* @__PURE__ */ reactExports.createElement(match.route.Component, null);
4675- } else if (match.route.element) {
4676- children = match.route.element;
4677- } else {
4678- children = outlet;
4679- }
4680- return /* @__PURE__ */ reactExports.createElement(
4681- RenderedRoute,
4667+ let matches2 = parentMatches.concat(renderedMatches.slice(0, index + 1));
4668+ let getChildren = () => {
4669+ let children;
4670+ if (error) {
4671+ children = errorElement;
4672+ } else if (shouldRenderHydrateFallback) {
4673+ children = hydrateFallbackElement;
4674+ } else if (match.route.Component) {
4675+ children = /* @__PURE__ */ reactExports.createElement(match.route.Component, null);
4676+ } else if (match.route.element) {
4677+ children = match.route.element;
4678+ } else {
4679+ children = outlet;
4680+ }
4681+ return /* @__PURE__ */ reactExports.createElement(
4682+ RenderedRoute,
4683+ {
4684+ match,
4685+ routeContext: {
4686+ outlet,
4687+ matches: matches2,
4688+ isDataRoute: dataRouterState != null
4689+ },
4690+ children
4691+ }
4692+ );
4693+ };
4694+ return dataRouterState && (match.route.ErrorBoundary || match.route.errorElement || index === 0) ? /* @__PURE__ */ reactExports.createElement(
4695+ RenderErrorBoundary,
46824696 {
4683- match,
4684- routeContext: {
4685- outlet,
4686- matches: matches2,
4687- isDataRoute: dataRouterState != null
4688- },
4689- children
4697+ location: dataRouterState.location,
4698+ revalidation: dataRouterState.revalidation,
4699+ component: errorElement,
4700+ error,
4701+ children: getChildren(),
4702+ routeContext: { outlet: null, matches: matches2, isDataRoute: true }
46904703 }
4691- );
4692- };
4693- return dataRouterState && (match.route.ErrorBoundary || match.route.errorElement || index === 0) ? /* @__PURE__ */ reactExports.createElement(
4694- RenderErrorBoundary,
4695- {
4696- location: dataRouterState.location,
4697- revalidation: dataRouterState.revalidation,
4698- component: errorElement,
4699- error,
4700- children: getChildren(),
4701- routeContext: { outlet: null, matches: matches2, isDataRoute: true }
4702- }
4703- ) : getChildren();
4704- }, null);
4704+ ) : getChildren();
4705+ },
4706+ null
4707+ );
47054708}
47064709function getDataRouterConsoleError(hookName) {
47074710 return `${hookName} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
@@ -5147,10 +5150,7 @@ function composeEventHandlers(theirHandler, ourHandler) {
51475150 }
51485151 };
51495152}
5150- function PrefetchPageLinks({
5151- page,
5152- ...dataLinkProps
5153- }) {
5153+ function PrefetchPageLinks({ page, ...linkProps }) {
51545154 let { router } = useDataRouterContext2();
51555155 let matches = reactExports.useMemo(
51565156 () => matchRoutes(router.routes, page, router.basename),
@@ -5159,7 +5159,7 @@ function PrefetchPageLinks({
51595159 if (!matches) {
51605160 return null;
51615161 }
5162- return /* @__PURE__ */ reactExports.createElement(PrefetchPageLinksImpl, { page, matches, ...dataLinkProps });
5162+ return /* @__PURE__ */ reactExports.createElement(PrefetchPageLinksImpl, { page, matches, ...linkProps });
51635163}
51645164function useKeyedPrefetchLinks(matches) {
51655165 let { manifest, routeModules } = useFrameworkContext();
@@ -5276,7 +5276,7 @@ var isBrowser = typeof window !== "undefined" && typeof window.document !== "und
52765276try {
52775277 if (isBrowser) {
52785278 window.__reactRouterVersion = // @ts-expect-error
5279- "7.7.0 ";
5279+ "7.7.1 ";
52805280 }
52815281} catch (e) {
52825282}
@@ -5590,7 +5590,7 @@ function useFormAction(action, { relative } = {}) {
55905590 }
55915591 return createPath(path);
55925592}
5593- function useViewTransitionState(to, opts = {}) {
5593+ function useViewTransitionState(to, { relative } = {}) {
55945594 let vtContext = reactExports.useContext(ViewTransitionContext);
55955595 invariant(
55965596 vtContext != null,
@@ -5599,7 +5599,7 @@ function useViewTransitionState(to, opts = {}) {
55995599 let { basename } = useDataRouterContext3(
56005600 "useViewTransitionState" /* useViewTransitionState */
56015601 );
5602- let path = useResolvedPath(to, { relative: opts.relative });
5602+ let path = useResolvedPath(to, { relative });
56035603 if (!vtContext.isTransitioning) {
56045604 return false;
56055605 }
@@ -5825,7 +5825,7 @@ function requireReactDom_production () {
58255825 reactDom_production.useFormStatus = function () {
58265826 return ReactSharedInternals.H.useHostTransitionStatus();
58275827 };
5828- reactDom_production.version = "19.1.0 ";
5828+ reactDom_production.version = "19.1.1 ";
58295829 return reactDom_production;
58305830}
58315831
@@ -43689,14 +43689,14 @@ function requireReactDomClient_production () {
4368943689 };
4369043690 var isomorphicReactPackageVersion$jscomp$inline_1785 = React.version;
4369143691 if (
43692- "19.1.0 " !==
43692+ "19.1.1 " !==
4369343693 isomorphicReactPackageVersion$jscomp$inline_1785
4369443694 )
4369543695 throw Error(
4369643696 formatProdErrorMessage(
4369743697 527,
4369843698 isomorphicReactPackageVersion$jscomp$inline_1785,
43699- "19.1.0 "
43699+ "19.1.1 "
4370043700 )
4370143701 );
4370243702 ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -43718,10 +43718,10 @@ function requireReactDomClient_production () {
4371843718 };
4371943719 var internals$jscomp$inline_2256 = {
4372043720 bundleType: 0,
43721- version: "19.1.0 ",
43721+ version: "19.1.1 ",
4372243722 rendererPackageName: "react-dom",
4372343723 currentDispatcherRef: ReactSharedInternals,
43724- reconcilerVersion: "19.1.0 "
43724+ reconcilerVersion: "19.1.1 "
4372543725 };
4372643726 if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
4372743727 var hook$jscomp$inline_2257 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -43825,7 +43825,7 @@ function requireReactDomClient_production () {
4382543825 listenToAllSupportedEvents(container);
4382643826 return new ReactDOMHydrationRoot(initialChildren);
4382743827 };
43828- reactDomClient_production.version = "19.1.0 ";
43828+ reactDomClient_production.version = "19.1.1 ";
4382943829 return reactDomClient_production;
4383043830}
4383143831
0 commit comments