Area restrita - Questionario

This commit is contained in:
2026-06-08 23:50:59 -03:00
parent f2e2400637
commit ef968f10ae
6972 changed files with 23454 additions and 2267883 deletions
+34 -39
View File
@@ -1,5 +1,5 @@
/**
* react-router v7.14.0
* react-router v7.17.0
*
* Copyright (c) Remix Software Inc.
*
@@ -14,7 +14,7 @@ import {
deserializeErrors,
getHydrationData,
populateRSCRouteModules
} from "./chunk-2UH5WJXA.mjs";
} from "./chunk-ASILSGTR.mjs";
import {
CRITICAL_CSS_DATA_ATTRIBUTE,
ErrorResponseImpl,
@@ -22,6 +22,7 @@ import {
RSCRouterContext,
RemixErrorBoundary,
RouterProvider,
URL_LIMIT,
createBrowserHistory,
createClientRoutes,
createClientRoutesWithHMRRevalidationOptOut,
@@ -43,7 +44,7 @@ import {
singleFetchUrl,
stripIndexParam,
useFogOFWarDiscovery
} from "./chunk-QFMPRPBF.mjs";
} from "./chunk-6CSD65Y2.mjs";
// lib/dom-export/dom-router-provider.tsx
import * as React from "react";
@@ -82,7 +83,7 @@ function initSsrInfo() {
}
function createHydratedRouter({
getContext,
unstable_instrumentations
instrumentations
}) {
initSsrInfo();
if (!ssrInfo) {
@@ -155,10 +156,10 @@ function createHydratedRouter({
getContext,
hydrationData,
hydrationRouteProperties,
unstable_instrumentations,
instrumentations,
mapRouteProperties,
future: {
unstable_passThroughRequests: ssrInfo.context.future.unstable_passThroughRequests
v8_passThroughRequests: ssrInfo.context.future.v8_passThroughRequests
},
dataStrategy: getTurboStreamSingleFetchDataStrategy(
() => router2,
@@ -166,7 +167,7 @@ function createHydratedRouter({
ssrInfo.routeModules,
ssrInfo.context.ssr,
ssrInfo.context.basename,
ssrInfo.context.future.unstable_trailingSlashAwareDataRequests
ssrInfo.context.future.v8_trailingSlashAwareDataRequests
),
patchRoutesOnNavigation: getPatchRoutesOnNavigationFunction(
() => router2,
@@ -192,7 +193,7 @@ function HydratedRouter(props) {
if (!router) {
router = createHydratedRouter({
getContext: props.getContext,
unstable_instrumentations: props.unstable_instrumentations
instrumentations: props.instrumentations
});
}
let [criticalCss, setCriticalCss] = React2.useState(
@@ -253,7 +254,7 @@ function HydratedRouter(props) {
RouterProvider2,
{
router,
unstable_useTransitions: props.unstable_useTransitions,
useTransitions: props.useTransitions,
onError: props.onError
}
))
@@ -538,8 +539,7 @@ function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReada
hasClientLoader: M.route.hasClientLoader,
hasComponent: M.route.hasComponent,
hasAction: M.route.hasAction,
hasClientAction: M.route.hasClientAction,
hasShouldRevalidate: M.route.hasShouldRevalidate
hasClientAction: M.route.hasClientAction
};
},
// pass map into fetchAndDecode so it can add payloads
@@ -742,10 +742,9 @@ function RSCHydratedRouter({
// These flags have no runtime impact so can always be false. If we add
// flags that drive runtime behavior they'll need to be proxied through.
v8_middleware: false,
unstable_subResourceIntegrity: false,
unstable_trailingSlashAwareDataRequests: true,
v8_trailingSlashAwareDataRequests: true,
// always on for RSC
unstable_passThroughRequests: true
v8_passThroughRequests: true
// always on for RSC
},
isSpaMode: false,
@@ -794,30 +793,28 @@ function createRouteFromServerManifest(match, payload) {
hydrateFallbackElement: match.hydrateFallbackElement,
index: match.index,
loader: match.clientLoader ? async (args, singleFetch) => {
try {
let result = await match.clientLoader({
...args,
serverLoader: () => {
preventInvalidServerHandlerCall(
"loader",
match.id,
match.hasLoader
);
if (isHydrationRequest) {
if (hasInitialData) {
return initialData;
}
if (hasInitialError) {
throw initialError;
}
let _isHydrationRequest = isHydrationRequest;
isHydrationRequest = false;
let result = await match.clientLoader({
...args,
serverLoader: () => {
preventInvalidServerHandlerCall(
"loader",
match.id,
match.hasLoader
);
if (_isHydrationRequest) {
if (hasInitialData) {
return initialData;
}
if (hasInitialError) {
throw initialError;
}
return callSingleFetch(singleFetch);
}
});
return result;
} finally {
isHydrationRequest = false;
}
return callSingleFetch(singleFetch);
}
});
return result;
} : (
// We always make the call in this RSC world since even if we don't
// have a `loader` we may need to get the `element` implementation
@@ -843,8 +840,7 @@ function createRouteFromServerManifest(match, payload) {
hasLoader: true,
hasClientLoader: match.clientLoader != null,
hasAction: match.hasAction,
hasClientAction: match.clientAction != null,
hasShouldRevalidate: match.shouldRevalidate != null
hasClientAction: match.clientAction != null
};
if (typeof dataRoute.loader === "function") {
dataRoute.loader.hydrate = shouldHydrateRouteLoader(
@@ -871,7 +867,6 @@ function preventInvalidServerHandlerCall(type, routeId, hasHandler) {
var nextPaths = /* @__PURE__ */ new Set();
var discoveredPathsMaxSize = 1e3;
var discoveredPaths = /* @__PURE__ */ new Set();
var URL_LIMIT = 7680;
function getManifestUrl(paths) {
if (paths.length === 0) {
return null;