Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/react-router/dist/umd/react-router.development.js
rd565449 r0c6b92a 1 1 /** 2 * React Router v6.2 6.02 * React Router v6.28.0 3 3 * 4 4 * Copyright (c) Remix Software Inc. … … 100 100 * custom links that are also accessible and preserve right-click behavior. 101 101 * 102 * @see https://reactrouter.com/ hooks/use-href102 * @see https://reactrouter.com/v6/hooks/use-href 103 103 */ 104 104 function useHref(to, _temp) { … … 139 139 * Returns true if this component is a descendant of a `<Router>`. 140 140 * 141 * @see https://reactrouter.com/ hooks/use-in-router-context141 * @see https://reactrouter.com/v6/hooks/use-in-router-context 142 142 */ 143 143 function useInRouterContext() { … … 153 153 * be able to provide something higher-level to better suit your needs. 154 154 * 155 * @see https://reactrouter.com/ hooks/use-location155 * @see https://reactrouter.com/v6/hooks/use-location 156 156 */ 157 157 function useLocation() { … … 166 166 * the current location, either by a pop, push, or replace on the history stack. 167 167 * 168 * @see https://reactrouter.com/ hooks/use-navigation-type168 * @see https://reactrouter.com/v6/hooks/use-navigation-type 169 169 */ 170 170 function useNavigationType() { … … 177 177 * `<NavLink>`. 178 178 * 179 * @see https://reactrouter.com/ hooks/use-match179 * @see https://reactrouter.com/v6/hooks/use-match 180 180 */ 181 181 function useMatch(pattern) { … … 210 210 * may also be used by other elements to change the location. 211 211 * 212 * @see https://reactrouter.com/ hooks/use-navigate212 * @see https://reactrouter.com/v6/hooks/use-navigate 213 213 */ 214 214 function useNavigate() { … … 274 274 * Returns the context (if provided) for the child route at this level of the route 275 275 * hierarchy. 276 * @see https://reactrouter.com/ hooks/use-outlet-context276 * @see https://reactrouter.com/v6/hooks/use-outlet-context 277 277 */ 278 278 function useOutletContext() { … … 284 284 * hierarchy. Used internally by `<Outlet>` to render child routes. 285 285 * 286 * @see https://reactrouter.com/ hooks/use-outlet286 * @see https://reactrouter.com/v6/hooks/use-outlet 287 287 */ 288 288 function useOutlet(context) { … … 300 300 * URL that were matched by the route path. 301 301 * 302 * @see https://reactrouter.com/ hooks/use-params302 * @see https://reactrouter.com/v6/hooks/use-params 303 303 */ 304 304 function useParams() { … … 313 313 * Resolves the pathname of the given `to` value against the current location. 314 314 * 315 * @see https://reactrouter.com/ hooks/use-resolved-path315 * @see https://reactrouter.com/v6/hooks/use-resolved-path 316 316 */ 317 317 function useResolvedPath(to, _temp2) { … … 338 338 * element. 339 339 * 340 * @see https://reactrouter.com/ hooks/use-routes340 * @see https://reactrouter.com/v6/hooks/use-routes 341 341 */ 342 342 function useRoutes(routes, locationArg) { … … 574 574 } else if ((_future = future) != null && _future.v7_partialHydration && parentMatches.length === 0 && !dataRouterState.initialized && dataRouterState.matches.length > 0) { 575 575 // Don't bail if we're initializing with partial hydration and we have 576 // router matches. That means we're actively running `patchRoutesOn Miss`576 // router matches. That means we're actively running `patchRoutesOnNavigation` 577 577 // so we should render down the partial matches to the appropriate 578 578 // `HydrateFallback`. We only do this if `parentMatches` is empty so it … … 713 713 }(DataRouterStateHook || {}); 714 714 function getDataRouterConsoleError(hookName) { 715 return hookName + " must be used within a data router. See https://reactrouter.com/ routers/picking-a-router.";715 return hookName + " must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."; 716 716 } 717 717 function useDataRouterContext(hookName) { … … 943 943 return navigate; 944 944 } 945 const alreadyWarned$1 = {}; 946 function warningOnce(key, cond, message) { 947 if (!cond && !alreadyWarned$1[key]) { 948 alreadyWarned$1[key] = true; 949 router.UNSAFE_warning(false, message) ; 950 } 951 } 952 945 953 const alreadyWarned = {}; 946 function warningOnce(key, cond, message) { 947 if (!cond && !alreadyWarned[key]) { 948 alreadyWarned[key] = true; 949 router.UNSAFE_warning(false, message) ; 954 function warnOnce(key, message) { 955 if (!alreadyWarned[message]) { 956 alreadyWarned[message] = true; 957 console.warn(message); 958 } 959 } 960 const logDeprecation = (flag, msg, link) => warnOnce(flag, "\u26A0\uFE0F React Router Future Flag Warning: " + msg + ". " + ("You can use the `" + flag + "` future flag to opt-in early. ") + ("For more information, see " + link + ".")); 961 function logV6DeprecationWarnings(renderFuture, routerFuture) { 962 if (!(renderFuture != null && renderFuture.v7_startTransition)) { 963 logDeprecation("v7_startTransition", "React Router will begin wrapping state updates in `React.startTransition` in v7", "https://reactrouter.com/v6/upgrading/future#v7_starttransition"); 964 } 965 if (!(renderFuture != null && renderFuture.v7_relativeSplatPath) && (!routerFuture || !routerFuture.v7_relativeSplatPath)) { 966 logDeprecation("v7_relativeSplatPath", "Relative route resolution within Splat routes is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"); 967 } 968 if (routerFuture) { 969 if (!routerFuture.v7_fetcherPersist) { 970 logDeprecation("v7_fetcherPersist", "The persistence behavior of fetchers is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"); 971 } 972 if (!routerFuture.v7_normalizeFormMethod) { 973 logDeprecation("v7_normalizeFormMethod", "Casing of `formMethod` fields is being normalized to uppercase in v7", "https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"); 974 } 975 if (!routerFuture.v7_partialHydration) { 976 logDeprecation("v7_partialHydration", "`RouterProvider` hydration behavior is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_partialhydration"); 977 } 978 if (!routerFuture.v7_skipActionErrorRevalidation) { 979 logDeprecation("v7_skipActionErrorRevalidation", "The revalidation behavior after 4xx/5xx `action` responses is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"); 980 } 950 981 } 951 982 } … … 1027 1058 basename 1028 1059 }), [router$1, navigator, basename]); 1060 React__namespace.useEffect(() => logV6DeprecationWarnings(future, router$1.future), [router$1, future]); 1029 1061 1030 1062 // The fragment and {null} here are important! We need them to keep React 18's … … 1063 1095 * A `<Router>` that stores all entries in memory. 1064 1096 * 1065 * @see https://reactrouter.com/ router-components/memory-router1097 * @see https://reactrouter.com/v6/router-components/memory-router 1066 1098 */ 1067 1099 function MemoryRouter(_ref3) { … … 1093 1125 }, [setStateImpl, v7_startTransition]); 1094 1126 React__namespace.useLayoutEffect(() => history.listen(setState), [history, setState]); 1127 React__namespace.useEffect(() => logV6DeprecationWarnings(future), [future]); 1095 1128 return /*#__PURE__*/React__namespace.createElement(Router, { 1096 1129 basename: basename, … … 1109 1142 * `useNavigate` hook instead. 1110 1143 * 1111 * @see https://reactrouter.com/ components/navigate1144 * @see https://reactrouter.com/v6/components/navigate 1112 1145 */ 1113 1146 function Navigate(_ref4) { … … 1148 1181 * Renders the child route's element, if there is one. 1149 1182 * 1150 * @see https://reactrouter.com/ components/outlet1183 * @see https://reactrouter.com/v6/components/outlet 1151 1184 */ 1152 1185 function Outlet(props) { … … 1156 1189 * Declares an element that should be rendered at a certain URL path. 1157 1190 * 1158 * @see https://reactrouter.com/ components/route1191 * @see https://reactrouter.com/v6/components/route 1159 1192 */ 1160 1193 function Route(_props) { … … 1168 1201 * in web browsers or a `<StaticRouter>` for server rendering. 1169 1202 * 1170 * @see https://reactrouter.com/ router-components/router1203 * @see https://reactrouter.com/v6/router-components/router 1171 1204 */ 1172 1205 function Router(_ref5) { … … 1234 1267 * that best matches the current location. 1235 1268 * 1236 * @see https://reactrouter.com/ components/routes1269 * @see https://reactrouter.com/v6/components/routes 1237 1270 */ 1238 1271 function Routes(_ref6) { … … 1375 1408 * `<Routes>` to create a route config from its children. 1376 1409 * 1377 * @see https://reactrouter.com/ utils/create-routes-from-children1410 * @see https://reactrouter.com/v6/utils/create-routes-from-children 1378 1411 */ 1379 1412 function createRoutesFromChildren(children, parentPath) { … … 1481 1514 routes, 1482 1515 mapRouteProperties, 1483 unstable_dataStrategy: opts == null ? void 0 : opts.unstable_dataStrategy,1484 unstable_patchRoutesOnMiss: opts == null ? void 0 : opts.unstable_patchRoutesOnMiss1516 dataStrategy: opts == null ? void 0 : opts.dataStrategy, 1517 patchRoutesOnNavigation: opts == null ? void 0 : opts.patchRoutesOnNavigation 1485 1518 }).initialize(); 1486 1519 } … … 1555 1588 exports.UNSAFE_NavigationContext = NavigationContext; 1556 1589 exports.UNSAFE_RouteContext = RouteContext; 1590 exports.UNSAFE_logV6DeprecationWarnings = logV6DeprecationWarnings; 1557 1591 exports.UNSAFE_mapRouteProperties = mapRouteProperties; 1558 1592 exports.UNSAFE_useRouteId = useRouteId;
Note:
See TracChangeset
for help on using the changeset viewer.