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-dom/dist/index.js

    rd565449 r0c6b92a  
    11/**
    2  * React Router DOM v6.26.0
     2 * React Router DOM v6.28.0
    33 *
    44 * Copyright (c) Remix Software Inc.
     
    1111import * as React from 'react';
    1212import * as ReactDOM from 'react-dom';
    13 import { UNSAFE_mapRouteProperties, UNSAFE_DataRouterContext, UNSAFE_DataRouterStateContext, Router, UNSAFE_useRoutesImpl, UNSAFE_NavigationContext, useHref, useResolvedPath, useLocation, useNavigate, createPath, UNSAFE_useRouteId, UNSAFE_RouteContext, useMatches, useNavigation, useBlocker } from 'react-router';
     13import { UNSAFE_mapRouteProperties, UNSAFE_logV6DeprecationWarnings, UNSAFE_DataRouterContext, UNSAFE_DataRouterStateContext, Router, UNSAFE_useRoutesImpl, UNSAFE_NavigationContext, useHref, useResolvedPath, useLocation, useNavigate, createPath, UNSAFE_useRouteId, UNSAFE_RouteContext, useMatches, useNavigation, useBlocker } from 'react-router';
    1414export { AbortedDeferredError, Await, MemoryRouter, Navigate, NavigationType, Outlet, Route, Router, Routes, UNSAFE_DataRouterContext, UNSAFE_DataRouterStateContext, UNSAFE_LocationContext, UNSAFE_NavigationContext, UNSAFE_RouteContext, UNSAFE_useRouteId, createMemoryRouter, createPath, createRoutesFromChildren, createRoutesFromElements, defer, generatePath, isRouteErrorResponse, json, matchPath, matchRoutes, parsePath, redirect, redirectDocument, renderMatches, replace, resolvePath, useActionData, useAsyncError, useAsyncValue, useBlocker, useHref, useInRouterContext, useLoaderData, useLocation, useMatch, useMatches, useNavigate, useNavigation, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRevalidator, useRouteError, useRouteLoaderData, useRoutes } from 'react-router';
    1515import { stripBasename, UNSAFE_warning, createRouter, createBrowserHistory, createHashHistory, UNSAFE_ErrorResponseImpl, UNSAFE_invariant, joinPaths, IDLE_FETCHER, matchPath } from '@remix-run/router';
     
    209209}
    210210
    211 const _excluded = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "unstable_viewTransition"],
    212   _excluded2 = ["aria-current", "caseSensitive", "className", "end", "style", "to", "unstable_viewTransition", "children"],
    213   _excluded3 = ["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "relative", "preventScrollReset", "unstable_viewTransition"];
     211const _excluded = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "viewTransition"],
     212  _excluded2 = ["aria-current", "caseSensitive", "className", "end", "style", "to", "viewTransition", "children"],
     213  _excluded3 = ["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "relative", "preventScrollReset", "viewTransition"];
    214214// HEY YOU! DON'T TOUCH THIS VARIABLE!
    215215//
     
    239239    routes,
    240240    mapRouteProperties: UNSAFE_mapRouteProperties,
    241     unstable_dataStrategy: opts == null ? void 0 : opts.unstable_dataStrategy,
    242     unstable_patchRoutesOnMiss: opts == null ? void 0 : opts.unstable_patchRoutesOnMiss,
     241    dataStrategy: opts == null ? void 0 : opts.dataStrategy,
     242    patchRoutesOnNavigation: opts == null ? void 0 : opts.patchRoutesOnNavigation,
    243243    window: opts == null ? void 0 : opts.window
    244244  }).initialize();
     
    256256    routes,
    257257    mapRouteProperties: UNSAFE_mapRouteProperties,
    258     unstable_dataStrategy: opts == null ? void 0 : opts.unstable_dataStrategy,
    259     unstable_patchRoutesOnMiss: opts == null ? void 0 : opts.unstable_patchRoutesOnMiss,
     258    dataStrategy: opts == null ? void 0 : opts.dataStrategy,
     259    patchRoutesOnNavigation: opts == null ? void 0 : opts.patchRoutesOnNavigation,
    260260    window: opts == null ? void 0 : opts.window
    261261  }).initialize();
     
    415415    let {
    416416      deletedFetchers,
    417       unstable_flushSync: flushSync,
    418       unstable_viewTransitionOpts: viewTransitionOpts
     417      flushSync: flushSync,
     418      viewTransitionOpts: viewTransitionOpts
    419419    } = _ref2;
    420420    deletedFetchers.forEach(key => fetcherData.current.delete(key));
     
    575575    v7_relativeSplatPath: router.future.v7_relativeSplatPath
    576576  }), [router.future.v7_relativeSplatPath]);
     577  React.useEffect(() => UNSAFE_logV6DeprecationWarnings(future, router.future), [future, router.future]);
    577578  // The fragment and {null} here are important!  We need them to keep React 18's
    578579  // useId happy when we are server-rendering since we may have a <script> here
     
    640641  }, [setStateImpl, v7_startTransition]);
    641642  React.useLayoutEffect(() => history.listen(setState), [history, setState]);
     643  React.useEffect(() => UNSAFE_logV6DeprecationWarnings(future), [future]);
    642644  return /*#__PURE__*/React.createElement(Router, {
    643645    basename: basename,
     
    679681  }, [setStateImpl, v7_startTransition]);
    680682  React.useLayoutEffect(() => history.listen(setState), [history, setState]);
     683  React.useEffect(() => UNSAFE_logV6DeprecationWarnings(future), [future]);
    681684  return /*#__PURE__*/React.createElement(Router, {
    682685    basename: basename,
     
    712715  }, [setStateImpl, v7_startTransition]);
    713716  React.useLayoutEffect(() => history.listen(setState), [history, setState]);
     717  React.useEffect(() => UNSAFE_logV6DeprecationWarnings(future), [future]);
    714718  return /*#__PURE__*/React.createElement(Router, {
    715719    basename: basename,
     
    739743      to,
    740744      preventScrollReset,
    741       unstable_viewTransition
     745      viewTransition
    742746    } = _ref7,
    743747    rest = _objectWithoutPropertiesLoose(_ref7, _excluded);
     
    779783    preventScrollReset,
    780784    relative,
    781     unstable_viewTransition
     785    viewTransition
    782786  });
    783787  function handleClick(event) {
     
    812816      style: styleProp,
    813817      to,
    814       unstable_viewTransition,
     818      viewTransition,
    815819      children
    816820    } = _ref8,
     
    828832  // Conditional usage is OK here because the usage of a data router is static
    829833  // eslint-disable-next-line react-hooks/rules-of-hooks
    830   useViewTransitionState(path) && unstable_viewTransition === true;
     834  useViewTransitionState(path) && viewTransition === true;
    831835  let toPathname = navigator.encodeLocation ? navigator.encodeLocation(path).pathname : path.pathname;
    832836  let locationPathname = location.pathname;
     
    872876    style: style,
    873877    to: to,
    874     unstable_viewTransition: unstable_viewTransition
     878    viewTransition: viewTransition
    875879  }), typeof children === "function" ? children(renderProps) : children);
    876880});
     
    896900      relative,
    897901      preventScrollReset,
    898       unstable_viewTransition
     902      viewTransition
    899903    } = _ref9,
    900904    props = _objectWithoutPropertiesLoose(_ref9, _excluded3);
     
    918922      relative,
    919923      preventScrollReset,
    920       unstable_viewTransition
     924      viewTransition
    921925    });
    922926  };
     
    969973// Internal hooks
    970974function getDataRouterConsoleError(hookName) {
    971   return hookName + " must be used within a data router.  See https://reactrouter.com/routers/picking-a-router.";
     975  return hookName + " must be used within a data router.  See https://reactrouter.com/v6/routers/picking-a-router.";
    972976}
    973977function useDataRouterContext(hookName) {
     
    994998    preventScrollReset,
    995999    relative,
    996     unstable_viewTransition
     1000    viewTransition
    9971001  } = _temp === void 0 ? {} : _temp;
    9981002  let navigate = useNavigate();
     
    10121016        preventScrollReset,
    10131017        relative,
    1014         unstable_viewTransition
     1018        viewTransition
    10151019      });
    10161020    }
    1017   }, [location, navigate, path, replaceProp, state, target, to, preventScrollReset, relative, unstable_viewTransition]);
     1021  }, [location, navigate, path, replaceProp, state, target, to, preventScrollReset, relative, viewTransition]);
    10181022}
    10191023/**
     
    10781082        formMethod: options.method || method,
    10791083        formEncType: options.encType || encType,
    1080         unstable_flushSync: options.unstable_flushSync
     1084        flushSync: options.flushSync
    10811085      });
    10821086    } else {
     
    10901094        state: options.state,
    10911095        fromRouteId: currentRouteId,
    1092         unstable_flushSync: options.unstable_flushSync,
    1093         unstable_viewTransition: options.unstable_viewTransition
     1096        flushSync: options.flushSync,
     1097        viewTransition: options.viewTransition
    10941098      });
    10951099    }
     
    11251129    // on match.route.index below
    11261130    let params = new URLSearchParams(path.search);
    1127     if (params.has("index") && params.get("index") === "") {
     1131    let indexValues = params.getAll("index");
     1132    let hasNakedIndexParam = indexValues.some(v => v === "");
     1133    if (hasNakedIndexParam) {
    11281134      params.delete("index");
    1129       path.search = params.toString() ? "?" + params.toString() : "";
     1135      indexValues.filter(v => v).forEach(v => params.append("index", v));
     1136      let qs = params.toString();
     1137      path.search = qs ? "?" + qs : "";
    11301138    }
    11311139  }
     
    14181426  }
    14191427  let vtContext = React.useContext(ViewTransitionContext);
    1420   !(vtContext != null) ? process.env.NODE_ENV !== "production" ? UNSAFE_invariant(false, "`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  " + "Did you accidentally import `RouterProvider` from `react-router`?") : UNSAFE_invariant(false) : void 0;
     1428  !(vtContext != null) ? process.env.NODE_ENV !== "production" ? UNSAFE_invariant(false, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  " + "Did you accidentally import `RouterProvider` from `react-router`?") : UNSAFE_invariant(false) : void 0;
    14211429  let {
    14221430    basename
     
    14341442  // an indicated transition apply.  I.e., on the list view you have:
    14351443  //
    1436   //   <NavLink to="/details/1" unstable_viewTransition>
     1444  //   <NavLink to="/details/1" viewTransition>
    14371445  //
    14381446  // If you click the breadcrumb back to the list view:
    14391447  //
    1440   //   <NavLink to="/list" unstable_viewTransition>
     1448  //   <NavLink to="/list" viewTransition>
    14411449  //
    14421450  // We should apply the transition because it's indicated as active going
     
    14471455//#endregion
    14481456
    1449 export { BrowserRouter, Form, HashRouter, Link, NavLink, RouterProvider, ScrollRestoration, FetchersContext as UNSAFE_FetchersContext, ViewTransitionContext as UNSAFE_ViewTransitionContext, useScrollRestoration as UNSAFE_useScrollRestoration, createBrowserRouter, createHashRouter, createSearchParams, HistoryRouter as unstable_HistoryRouter, usePrompt as unstable_usePrompt, useViewTransitionState as unstable_useViewTransitionState, useBeforeUnload, useFetcher, useFetchers, useFormAction, useLinkClickHandler, useSearchParams, useSubmit };
     1457export { BrowserRouter, Form, HashRouter, Link, NavLink, RouterProvider, ScrollRestoration, FetchersContext as UNSAFE_FetchersContext, ViewTransitionContext as UNSAFE_ViewTransitionContext, useScrollRestoration as UNSAFE_useScrollRestoration, createBrowserRouter, createHashRouter, createSearchParams, HistoryRouter as unstable_HistoryRouter, usePrompt as unstable_usePrompt, useBeforeUnload, useFetcher, useFetchers, useFormAction, useLinkClickHandler, useSearchParams, useSubmit, useViewTransitionState };
    14501458//# sourceMappingURL=index.js.map
Note: See TracChangeset for help on using the changeset viewer.