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/umd/react-router.development.js

    rd565449 r0c6b92a  
    11/**
    2  * React Router v6.26.0
     2 * React Router v6.28.0
    33 *
    44 * Copyright (c) Remix Software Inc.
     
    100100   * custom links that are also accessible and preserve right-click behavior.
    101101   *
    102    * @see https://reactrouter.com/hooks/use-href
     102   * @see https://reactrouter.com/v6/hooks/use-href
    103103   */
    104104  function useHref(to, _temp) {
     
    139139   * Returns true if this component is a descendant of a `<Router>`.
    140140   *
    141    * @see https://reactrouter.com/hooks/use-in-router-context
     141   * @see https://reactrouter.com/v6/hooks/use-in-router-context
    142142   */
    143143  function useInRouterContext() {
     
    153153   * be able to provide something higher-level to better suit your needs.
    154154   *
    155    * @see https://reactrouter.com/hooks/use-location
     155   * @see https://reactrouter.com/v6/hooks/use-location
    156156   */
    157157  function useLocation() {
     
    166166   * the current location, either by a pop, push, or replace on the history stack.
    167167   *
    168    * @see https://reactrouter.com/hooks/use-navigation-type
     168   * @see https://reactrouter.com/v6/hooks/use-navigation-type
    169169   */
    170170  function useNavigationType() {
     
    177177   * `<NavLink>`.
    178178   *
    179    * @see https://reactrouter.com/hooks/use-match
     179   * @see https://reactrouter.com/v6/hooks/use-match
    180180   */
    181181  function useMatch(pattern) {
     
    210210   * may also be used by other elements to change the location.
    211211   *
    212    * @see https://reactrouter.com/hooks/use-navigate
     212   * @see https://reactrouter.com/v6/hooks/use-navigate
    213213   */
    214214  function useNavigate() {
     
    274274   * Returns the context (if provided) for the child route at this level of the route
    275275   * hierarchy.
    276    * @see https://reactrouter.com/hooks/use-outlet-context
     276   * @see https://reactrouter.com/v6/hooks/use-outlet-context
    277277   */
    278278  function useOutletContext() {
     
    284284   * hierarchy. Used internally by `<Outlet>` to render child routes.
    285285   *
    286    * @see https://reactrouter.com/hooks/use-outlet
     286   * @see https://reactrouter.com/v6/hooks/use-outlet
    287287   */
    288288  function useOutlet(context) {
     
    300300   * URL that were matched by the route path.
    301301   *
    302    * @see https://reactrouter.com/hooks/use-params
     302   * @see https://reactrouter.com/v6/hooks/use-params
    303303   */
    304304  function useParams() {
     
    313313   * Resolves the pathname of the given `to` value against the current location.
    314314   *
    315    * @see https://reactrouter.com/hooks/use-resolved-path
     315   * @see https://reactrouter.com/v6/hooks/use-resolved-path
    316316   */
    317317  function useResolvedPath(to, _temp2) {
     
    338338   * element.
    339339   *
    340    * @see https://reactrouter.com/hooks/use-routes
     340   * @see https://reactrouter.com/v6/hooks/use-routes
    341341   */
    342342  function useRoutes(routes, locationArg) {
     
    574574      } else if ((_future = future) != null && _future.v7_partialHydration && parentMatches.length === 0 && !dataRouterState.initialized && dataRouterState.matches.length > 0) {
    575575        // Don't bail if we're initializing with partial hydration and we have
    576         // router matches.  That means we're actively running `patchRoutesOnMiss`
     576        // router matches.  That means we're actively running `patchRoutesOnNavigation`
    577577        // so we should render down the partial matches to the appropriate
    578578        // `HydrateFallback`.  We only do this if `parentMatches` is empty so it
     
    713713  }(DataRouterStateHook || {});
    714714  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.";
    716716  }
    717717  function useDataRouterContext(hookName) {
     
    943943    return navigate;
    944944  }
     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
    945953  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      }
    950981    }
    951982  }
     
    10271058      basename
    10281059    }), [router$1, navigator, basename]);
     1060    React__namespace.useEffect(() => logV6DeprecationWarnings(future, router$1.future), [router$1, future]);
    10291061
    10301062    // The fragment and {null} here are important!  We need them to keep React 18's
     
    10631095   * A `<Router>` that stores all entries in memory.
    10641096   *
    1065    * @see https://reactrouter.com/router-components/memory-router
     1097   * @see https://reactrouter.com/v6/router-components/memory-router
    10661098   */
    10671099  function MemoryRouter(_ref3) {
     
    10931125    }, [setStateImpl, v7_startTransition]);
    10941126    React__namespace.useLayoutEffect(() => history.listen(setState), [history, setState]);
     1127    React__namespace.useEffect(() => logV6DeprecationWarnings(future), [future]);
    10951128    return /*#__PURE__*/React__namespace.createElement(Router, {
    10961129      basename: basename,
     
    11091142   * `useNavigate` hook instead.
    11101143   *
    1111    * @see https://reactrouter.com/components/navigate
     1144   * @see https://reactrouter.com/v6/components/navigate
    11121145   */
    11131146  function Navigate(_ref4) {
     
    11481181   * Renders the child route's element, if there is one.
    11491182   *
    1150    * @see https://reactrouter.com/components/outlet
     1183   * @see https://reactrouter.com/v6/components/outlet
    11511184   */
    11521185  function Outlet(props) {
     
    11561189   * Declares an element that should be rendered at a certain URL path.
    11571190   *
    1158    * @see https://reactrouter.com/components/route
     1191   * @see https://reactrouter.com/v6/components/route
    11591192   */
    11601193  function Route(_props) {
     
    11681201   * in web browsers or a `<StaticRouter>` for server rendering.
    11691202   *
    1170    * @see https://reactrouter.com/router-components/router
     1203   * @see https://reactrouter.com/v6/router-components/router
    11711204   */
    11721205  function Router(_ref5) {
     
    12341267   * that best matches the current location.
    12351268   *
    1236    * @see https://reactrouter.com/components/routes
     1269   * @see https://reactrouter.com/v6/components/routes
    12371270   */
    12381271  function Routes(_ref6) {
     
    13751408   * `<Routes>` to create a route config from its children.
    13761409   *
    1377    * @see https://reactrouter.com/utils/create-routes-from-children
     1410   * @see https://reactrouter.com/v6/utils/create-routes-from-children
    13781411   */
    13791412  function createRoutesFromChildren(children, parentPath) {
     
    14811514      routes,
    14821515      mapRouteProperties,
    1483       unstable_dataStrategy: opts == null ? void 0 : opts.unstable_dataStrategy,
    1484       unstable_patchRoutesOnMiss: opts == null ? void 0 : opts.unstable_patchRoutesOnMiss
     1516      dataStrategy: opts == null ? void 0 : opts.dataStrategy,
     1517      patchRoutesOnNavigation: opts == null ? void 0 : opts.patchRoutesOnNavigation
    14851518    }).initialize();
    14861519  }
     
    15551588  exports.UNSAFE_NavigationContext = NavigationContext;
    15561589  exports.UNSAFE_RouteContext = RouteContext;
     1590  exports.UNSAFE_logV6DeprecationWarnings = logV6DeprecationWarnings;
    15571591  exports.UNSAFE_mapRouteProperties = mapRouteProperties;
    15581592  exports.UNSAFE_useRouteId = useRouteId;
Note: See TracChangeset for help on using the changeset viewer.