Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/react-router/dist/index.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. … … 78 78 * custom links that are also accessible and preserve right-click behavior. 79 79 * 80 * @see https://reactrouter.com/ hooks/use-href80 * @see https://reactrouter.com/v6/hooks/use-href 81 81 */ 82 82 function useHref(to, _temp) { … … 117 117 * Returns true if this component is a descendant of a `<Router>`. 118 118 * 119 * @see https://reactrouter.com/ hooks/use-in-router-context119 * @see https://reactrouter.com/v6/hooks/use-in-router-context 120 120 */ 121 121 function useInRouterContext() { … … 131 131 * be able to provide something higher-level to better suit your needs. 132 132 * 133 * @see https://reactrouter.com/ hooks/use-location133 * @see https://reactrouter.com/v6/hooks/use-location 134 134 */ 135 135 function useLocation() { … … 144 144 * the current location, either by a pop, push, or replace on the history stack. 145 145 * 146 * @see https://reactrouter.com/ hooks/use-navigation-type146 * @see https://reactrouter.com/v6/hooks/use-navigation-type 147 147 */ 148 148 function useNavigationType() { … … 155 155 * `<NavLink>`. 156 156 * 157 * @see https://reactrouter.com/ hooks/use-match157 * @see https://reactrouter.com/v6/hooks/use-match 158 158 */ 159 159 function useMatch(pattern) { … … 188 188 * may also be used by other elements to change the location. 189 189 * 190 * @see https://reactrouter.com/ hooks/use-navigate190 * @see https://reactrouter.com/v6/hooks/use-navigate 191 191 */ 192 192 function useNavigate() { … … 252 252 * Returns the context (if provided) for the child route at this level of the route 253 253 * hierarchy. 254 * @see https://reactrouter.com/ hooks/use-outlet-context254 * @see https://reactrouter.com/v6/hooks/use-outlet-context 255 255 */ 256 256 function useOutletContext() { … … 262 262 * hierarchy. Used internally by `<Outlet>` to render child routes. 263 263 * 264 * @see https://reactrouter.com/ hooks/use-outlet264 * @see https://reactrouter.com/v6/hooks/use-outlet 265 265 */ 266 266 function useOutlet(context) { … … 278 278 * URL that were matched by the route path. 279 279 * 280 * @see https://reactrouter.com/ hooks/use-params280 * @see https://reactrouter.com/v6/hooks/use-params 281 281 */ 282 282 function useParams() { … … 291 291 * Resolves the pathname of the given `to` value against the current location. 292 292 * 293 * @see https://reactrouter.com/ hooks/use-resolved-path293 * @see https://reactrouter.com/v6/hooks/use-resolved-path 294 294 */ 295 295 function useResolvedPath(to, _temp2) { … … 316 316 * element. 317 317 * 318 * @see https://reactrouter.com/ hooks/use-routes318 * @see https://reactrouter.com/v6/hooks/use-routes 319 319 */ 320 320 function useRoutes(routes, locationArg) { … … 552 552 } else if ((_future = future) != null && _future.v7_partialHydration && parentMatches.length === 0 && !dataRouterState.initialized && dataRouterState.matches.length > 0) { 553 553 // Don't bail if we're initializing with partial hydration and we have 554 // router matches. That means we're actively running `patchRoutesOn Miss`554 // router matches. That means we're actively running `patchRoutesOnNavigation` 555 555 // so we should render down the partial matches to the appropriate 556 556 // `HydrateFallback`. We only do this if `parentMatches` is empty so it … … 691 691 }(DataRouterStateHook || {}); 692 692 function getDataRouterConsoleError(hookName) { 693 return hookName + " must be used within a data router. See https://reactrouter.com/ routers/picking-a-router.";693 return hookName + " must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."; 694 694 } 695 695 function useDataRouterContext(hookName) { … … 921 921 return navigate; 922 922 } 923 const alreadyWarned$1 = {}; 924 function warningOnce(key, cond, message) { 925 if (!cond && !alreadyWarned$1[key]) { 926 alreadyWarned$1[key] = true; 927 process.env.NODE_ENV !== "production" ? UNSAFE_warning(false, message) : void 0; 928 } 929 } 930 923 931 const alreadyWarned = {}; 924 function warningOnce(key, cond, message) { 925 if (!cond && !alreadyWarned[key]) { 926 alreadyWarned[key] = true; 927 process.env.NODE_ENV !== "production" ? UNSAFE_warning(false, message) : void 0; 932 function warnOnce(key, message) { 933 if (!alreadyWarned[message]) { 934 alreadyWarned[message] = true; 935 console.warn(message); 936 } 937 } 938 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 + ".")); 939 function logV6DeprecationWarnings(renderFuture, routerFuture) { 940 if (!(renderFuture != null && renderFuture.v7_startTransition)) { 941 logDeprecation("v7_startTransition", "React Router will begin wrapping state updates in `React.startTransition` in v7", "https://reactrouter.com/v6/upgrading/future#v7_starttransition"); 942 } 943 if (!(renderFuture != null && renderFuture.v7_relativeSplatPath) && (!routerFuture || !routerFuture.v7_relativeSplatPath)) { 944 logDeprecation("v7_relativeSplatPath", "Relative route resolution within Splat routes is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"); 945 } 946 if (routerFuture) { 947 if (!routerFuture.v7_fetcherPersist) { 948 logDeprecation("v7_fetcherPersist", "The persistence behavior of fetchers is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"); 949 } 950 if (!routerFuture.v7_normalizeFormMethod) { 951 logDeprecation("v7_normalizeFormMethod", "Casing of `formMethod` fields is being normalized to uppercase in v7", "https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"); 952 } 953 if (!routerFuture.v7_partialHydration) { 954 logDeprecation("v7_partialHydration", "`RouterProvider` hydration behavior is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_partialhydration"); 955 } 956 if (!routerFuture.v7_skipActionErrorRevalidation) { 957 logDeprecation("v7_skipActionErrorRevalidation", "The revalidation behavior after 4xx/5xx `action` responses is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"); 958 } 928 959 } 929 960 } … … 1005 1036 basename 1006 1037 }), [router, navigator, basename]); 1038 React.useEffect(() => logV6DeprecationWarnings(future, router.future), [router, future]); 1007 1039 1008 1040 // The fragment and {null} here are important! We need them to keep React 18's … … 1041 1073 * A `<Router>` that stores all entries in memory. 1042 1074 * 1043 * @see https://reactrouter.com/ router-components/memory-router1075 * @see https://reactrouter.com/v6/router-components/memory-router 1044 1076 */ 1045 1077 function MemoryRouter(_ref3) { … … 1071 1103 }, [setStateImpl, v7_startTransition]); 1072 1104 React.useLayoutEffect(() => history.listen(setState), [history, setState]); 1105 React.useEffect(() => logV6DeprecationWarnings(future), [future]); 1073 1106 return /*#__PURE__*/React.createElement(Router, { 1074 1107 basename: basename, … … 1087 1120 * `useNavigate` hook instead. 1088 1121 * 1089 * @see https://reactrouter.com/ components/navigate1122 * @see https://reactrouter.com/v6/components/navigate 1090 1123 */ 1091 1124 function Navigate(_ref4) { … … 1126 1159 * Renders the child route's element, if there is one. 1127 1160 * 1128 * @see https://reactrouter.com/ components/outlet1161 * @see https://reactrouter.com/v6/components/outlet 1129 1162 */ 1130 1163 function Outlet(props) { … … 1134 1167 * Declares an element that should be rendered at a certain URL path. 1135 1168 * 1136 * @see https://reactrouter.com/ components/route1169 * @see https://reactrouter.com/v6/components/route 1137 1170 */ 1138 1171 function Route(_props) { … … 1146 1179 * in web browsers or a `<StaticRouter>` for server rendering. 1147 1180 * 1148 * @see https://reactrouter.com/ router-components/router1181 * @see https://reactrouter.com/v6/router-components/router 1149 1182 */ 1150 1183 function Router(_ref5) { … … 1212 1245 * that best matches the current location. 1213 1246 * 1214 * @see https://reactrouter.com/ components/routes1247 * @see https://reactrouter.com/v6/components/routes 1215 1248 */ 1216 1249 function Routes(_ref6) { … … 1353 1386 * `<Routes>` to create a route config from its children. 1354 1387 * 1355 * @see https://reactrouter.com/ utils/create-routes-from-children1388 * @see https://reactrouter.com/v6/utils/create-routes-from-children 1356 1389 */ 1357 1390 function createRoutesFromChildren(children, parentPath) { … … 1459 1492 routes, 1460 1493 mapRouteProperties, 1461 unstable_dataStrategy: opts == null ? void 0 : opts.unstable_dataStrategy,1462 unstable_patchRoutesOnMiss: opts == null ? void 0 : opts.unstable_patchRoutesOnMiss1494 dataStrategy: opts == null ? void 0 : opts.dataStrategy, 1495 patchRoutesOnNavigation: opts == null ? void 0 : opts.patchRoutesOnNavigation 1463 1496 }).initialize(); 1464 1497 } 1465 1498 1466 export { Await, MemoryRouter, Navigate, Outlet, Route, Router, RouterProvider, Routes, DataRouterContext as UNSAFE_DataRouterContext, DataRouterStateContext as UNSAFE_DataRouterStateContext, LocationContext as UNSAFE_LocationContext, NavigationContext as UNSAFE_NavigationContext, RouteContext as UNSAFE_RouteContext, mapRouteProperties as UNSAFE_mapRouteProperties, useRouteId as UNSAFE_useRouteId, useRoutesImpl as UNSAFE_useRoutesImpl, createMemoryRouter, createRoutesFromChildren, createRoutesFromChildren as createRoutesFromElements, renderMatches, useActionData, useAsyncError, useAsyncValue, useBlocker, useHref, useInRouterContext, useLoaderData, useLocation, useMatch, useMatches, useNavigate, useNavigation, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRevalidator, useRouteError, useRouteLoaderData, useRoutes };1499 export { Await, MemoryRouter, Navigate, Outlet, Route, Router, RouterProvider, Routes, DataRouterContext as UNSAFE_DataRouterContext, DataRouterStateContext as UNSAFE_DataRouterStateContext, LocationContext as UNSAFE_LocationContext, NavigationContext as UNSAFE_NavigationContext, RouteContext as UNSAFE_RouteContext, logV6DeprecationWarnings as UNSAFE_logV6DeprecationWarnings, mapRouteProperties as UNSAFE_mapRouteProperties, useRouteId as UNSAFE_useRouteId, useRoutesImpl as UNSAFE_useRoutesImpl, createMemoryRouter, createRoutesFromChildren, createRoutesFromChildren as createRoutesFromElements, renderMatches, useActionData, useAsyncError, useAsyncValue, useBlocker, useHref, useInRouterContext, useLoaderData, useLocation, useMatch, useMatches, useNavigate, useNavigation, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRevalidator, useRouteError, useRouteLoaderData, useRoutes }; 1467 1500 //# sourceMappingURL=index.js.map
Note:
See TracChangeset
for help on using the changeset viewer.