Ignore:
Timestamp:
12/12/24 17:06:06 (5 weeks ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Parents:
d565449
Message:

Pred finalna verzija

File:
1 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/react-router/dist/index.js

    rd565449 r0c6b92a  
    11/**
    2  * React Router v6.26.0
     2 * React Router v6.28.0
    33 *
    44 * Copyright (c) Remix Software Inc.
     
    7878 * custom links that are also accessible and preserve right-click behavior.
    7979 *
    80  * @see https://reactrouter.com/hooks/use-href
     80 * @see https://reactrouter.com/v6/hooks/use-href
    8181 */
    8282function useHref(to, _temp) {
     
    117117 * Returns true if this component is a descendant of a `<Router>`.
    118118 *
    119  * @see https://reactrouter.com/hooks/use-in-router-context
     119 * @see https://reactrouter.com/v6/hooks/use-in-router-context
    120120 */
    121121function useInRouterContext() {
     
    131131 * be able to provide something higher-level to better suit your needs.
    132132 *
    133  * @see https://reactrouter.com/hooks/use-location
     133 * @see https://reactrouter.com/v6/hooks/use-location
    134134 */
    135135function useLocation() {
     
    144144 * the current location, either by a pop, push, or replace on the history stack.
    145145 *
    146  * @see https://reactrouter.com/hooks/use-navigation-type
     146 * @see https://reactrouter.com/v6/hooks/use-navigation-type
    147147 */
    148148function useNavigationType() {
     
    155155 * `<NavLink>`.
    156156 *
    157  * @see https://reactrouter.com/hooks/use-match
     157 * @see https://reactrouter.com/v6/hooks/use-match
    158158 */
    159159function useMatch(pattern) {
     
    188188 * may also be used by other elements to change the location.
    189189 *
    190  * @see https://reactrouter.com/hooks/use-navigate
     190 * @see https://reactrouter.com/v6/hooks/use-navigate
    191191 */
    192192function useNavigate() {
     
    252252 * Returns the context (if provided) for the child route at this level of the route
    253253 * hierarchy.
    254  * @see https://reactrouter.com/hooks/use-outlet-context
     254 * @see https://reactrouter.com/v6/hooks/use-outlet-context
    255255 */
    256256function useOutletContext() {
     
    262262 * hierarchy. Used internally by `<Outlet>` to render child routes.
    263263 *
    264  * @see https://reactrouter.com/hooks/use-outlet
     264 * @see https://reactrouter.com/v6/hooks/use-outlet
    265265 */
    266266function useOutlet(context) {
     
    278278 * URL that were matched by the route path.
    279279 *
    280  * @see https://reactrouter.com/hooks/use-params
     280 * @see https://reactrouter.com/v6/hooks/use-params
    281281 */
    282282function useParams() {
     
    291291 * Resolves the pathname of the given `to` value against the current location.
    292292 *
    293  * @see https://reactrouter.com/hooks/use-resolved-path
     293 * @see https://reactrouter.com/v6/hooks/use-resolved-path
    294294 */
    295295function useResolvedPath(to, _temp2) {
     
    316316 * element.
    317317 *
    318  * @see https://reactrouter.com/hooks/use-routes
     318 * @see https://reactrouter.com/v6/hooks/use-routes
    319319 */
    320320function useRoutes(routes, locationArg) {
     
    552552    } else if ((_future = future) != null && _future.v7_partialHydration && parentMatches.length === 0 && !dataRouterState.initialized && dataRouterState.matches.length > 0) {
    553553      // Don't bail if we're initializing with partial hydration and we have
    554       // router matches.  That means we're actively running `patchRoutesOnMiss`
     554      // router matches.  That means we're actively running `patchRoutesOnNavigation`
    555555      // so we should render down the partial matches to the appropriate
    556556      // `HydrateFallback`.  We only do this if `parentMatches` is empty so it
     
    691691}(DataRouterStateHook || {});
    692692function 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.";
    694694}
    695695function useDataRouterContext(hookName) {
     
    921921  return navigate;
    922922}
     923const alreadyWarned$1 = {};
     924function 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
    923931const 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;
     932function warnOnce(key, message) {
     933  if (!alreadyWarned[message]) {
     934    alreadyWarned[message] = true;
     935    console.warn(message);
     936  }
     937}
     938const 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 + "."));
     939function 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    }
    928959  }
    929960}
     
    10051036    basename
    10061037  }), [router, navigator, basename]);
     1038  React.useEffect(() => logV6DeprecationWarnings(future, router.future), [router, future]);
    10071039
    10081040  // The fragment and {null} here are important!  We need them to keep React 18's
     
    10411073 * A `<Router>` that stores all entries in memory.
    10421074 *
    1043  * @see https://reactrouter.com/router-components/memory-router
     1075 * @see https://reactrouter.com/v6/router-components/memory-router
    10441076 */
    10451077function MemoryRouter(_ref3) {
     
    10711103  }, [setStateImpl, v7_startTransition]);
    10721104  React.useLayoutEffect(() => history.listen(setState), [history, setState]);
     1105  React.useEffect(() => logV6DeprecationWarnings(future), [future]);
    10731106  return /*#__PURE__*/React.createElement(Router, {
    10741107    basename: basename,
     
    10871120 * `useNavigate` hook instead.
    10881121 *
    1089  * @see https://reactrouter.com/components/navigate
     1122 * @see https://reactrouter.com/v6/components/navigate
    10901123 */
    10911124function Navigate(_ref4) {
     
    11261159 * Renders the child route's element, if there is one.
    11271160 *
    1128  * @see https://reactrouter.com/components/outlet
     1161 * @see https://reactrouter.com/v6/components/outlet
    11291162 */
    11301163function Outlet(props) {
     
    11341167 * Declares an element that should be rendered at a certain URL path.
    11351168 *
    1136  * @see https://reactrouter.com/components/route
     1169 * @see https://reactrouter.com/v6/components/route
    11371170 */
    11381171function Route(_props) {
     
    11461179 * in web browsers or a `<StaticRouter>` for server rendering.
    11471180 *
    1148  * @see https://reactrouter.com/router-components/router
     1181 * @see https://reactrouter.com/v6/router-components/router
    11491182 */
    11501183function Router(_ref5) {
     
    12121245 * that best matches the current location.
    12131246 *
    1214  * @see https://reactrouter.com/components/routes
     1247 * @see https://reactrouter.com/v6/components/routes
    12151248 */
    12161249function Routes(_ref6) {
     
    13531386 * `<Routes>` to create a route config from its children.
    13541387 *
    1355  * @see https://reactrouter.com/utils/create-routes-from-children
     1388 * @see https://reactrouter.com/v6/utils/create-routes-from-children
    13561389 */
    13571390function createRoutesFromChildren(children, parentPath) {
     
    14591492    routes,
    14601493    mapRouteProperties,
    1461     unstable_dataStrategy: opts == null ? void 0 : opts.unstable_dataStrategy,
    1462     unstable_patchRoutesOnMiss: opts == null ? void 0 : opts.unstable_patchRoutesOnMiss
     1494    dataStrategy: opts == null ? void 0 : opts.dataStrategy,
     1495    patchRoutesOnNavigation: opts == null ? void 0 : opts.patchRoutesOnNavigation
    14631496  }).initialize();
    14641497}
    14651498
    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 };
     1499export { 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 };
    14671500//# sourceMappingURL=index.js.map
Note: See TracChangeset for help on using the changeset viewer.