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/react-router-dom.development.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';
     
    238238    routes,
    239239    mapRouteProperties: UNSAFE_mapRouteProperties,
    240     unstable_dataStrategy: opts?.unstable_dataStrategy,
    241     unstable_patchRoutesOnMiss: opts?.unstable_patchRoutesOnMiss,
     240    dataStrategy: opts?.dataStrategy,
     241    patchRoutesOnNavigation: opts?.patchRoutesOnNavigation,
    242242    window: opts?.window
    243243  }).initialize();
     
    256256    routes,
    257257    mapRouteProperties: UNSAFE_mapRouteProperties,
    258     unstable_dataStrategy: opts?.unstable_dataStrategy,
    259     unstable_patchRoutesOnMiss: opts?.unstable_patchRoutesOnMiss,
     258    dataStrategy: opts?.dataStrategy,
     259    patchRoutesOnNavigation: opts?.patchRoutesOnNavigation,
    260260    window: opts?.window
    261261  }).initialize();
     
    431431  let setState = React.useCallback((newState, {
    432432    deletedFetchers,
    433     unstable_flushSync: flushSync,
    434     unstable_viewTransitionOpts: viewTransitionOpts
     433    flushSync: flushSync,
     434    viewTransitionOpts: viewTransitionOpts
    435435  }) => {
    436436    deletedFetchers.forEach(key => fetcherData.current.delete(key));
     
    601601    v7_relativeSplatPath: router.future.v7_relativeSplatPath
    602602  }), [router.future.v7_relativeSplatPath]);
     603  React.useEffect(() => UNSAFE_logV6DeprecationWarnings(future, router.future), [future, router.future]);
    603604
    604605  // The fragment and {null} here are important!  We need them to keep React 18's
     
    666667  }, [setStateImpl, v7_startTransition]);
    667668  React.useLayoutEffect(() => history.listen(setState), [history, setState]);
     669  React.useEffect(() => UNSAFE_logV6DeprecationWarnings(future), [future]);
    668670  return /*#__PURE__*/React.createElement(Router, {
    669671    basename: basename,
     
    704706  }, [setStateImpl, v7_startTransition]);
    705707  React.useLayoutEffect(() => history.listen(setState), [history, setState]);
     708  React.useEffect(() => UNSAFE_logV6DeprecationWarnings(future), [future]);
    706709  return /*#__PURE__*/React.createElement(Router, {
    707710    basename: basename,
     
    736739  }, [setStateImpl, v7_startTransition]);
    737740  React.useLayoutEffect(() => history.listen(setState), [history, setState]);
     741  React.useEffect(() => UNSAFE_logV6DeprecationWarnings(future), [future]);
    738742  return /*#__PURE__*/React.createElement(Router, {
    739743    basename: basename,
     
    763767  to,
    764768  preventScrollReset,
    765   unstable_viewTransition,
     769  viewTransition,
    766770  ...rest
    767771}, ref) {
     
    806810    preventScrollReset,
    807811    relative,
    808     unstable_viewTransition
     812    viewTransition
    809813  });
    810814  function handleClick(event) {
     
    838842  style: styleProp,
    839843  to,
    840   unstable_viewTransition,
     844  viewTransition,
    841845  children,
    842846  ...rest
     
    854858  // Conditional usage is OK here because the usage of a data router is static
    855859  // eslint-disable-next-line react-hooks/rules-of-hooks
    856   useViewTransitionState(path) && unstable_viewTransition === true;
     860  useViewTransitionState(path) && viewTransition === true;
    857861  let toPathname = navigator.encodeLocation ? navigator.encodeLocation(path).pathname : path.pathname;
    858862  let locationPathname = location.pathname;
     
    899903    style: style,
    900904    to: to,
    901     unstable_viewTransition: unstable_viewTransition
     905    viewTransition: viewTransition
    902906  }), typeof children === "function" ? children(renderProps) : children);
    903907});
     
    935939  relative,
    936940  preventScrollReset,
    937   unstable_viewTransition,
     941  viewTransition,
    938942  ...props
    939943}, forwardedRef) => {
     
    957961      relative,
    958962      preventScrollReset,
    959       unstable_viewTransition
     963      viewTransition
    960964    });
    961965  };
     
    10071011}(DataRouterStateHook || {}); // Internal hooks
    10081012function getDataRouterConsoleError(hookName) {
    1009   return `${hookName} must be used within a data router.  See https://reactrouter.com/routers/picking-a-router.`;
     1013  return `${hookName} must be used within a data router.  See https://reactrouter.com/v6/routers/picking-a-router.`;
    10101014}
    10111015function useDataRouterContext(hookName) {
     
    10331037  preventScrollReset,
    10341038  relative,
    1035   unstable_viewTransition
     1039  viewTransition
    10361040} = {}) {
    10371041  let navigate = useNavigate();
     
    10521056        preventScrollReset,
    10531057        relative,
    1054         unstable_viewTransition
     1058        viewTransition
    10551059      });
    10561060    }
    1057   }, [location, navigate, path, replaceProp, state, target, to, preventScrollReset, relative, unstable_viewTransition]);
     1061  }, [location, navigate, path, replaceProp, state, target, to, preventScrollReset, relative, viewTransition]);
    10581062}
    10591063
     
    11261130        formMethod: options.method || method,
    11271131        formEncType: options.encType || encType,
    1128         unstable_flushSync: options.unstable_flushSync
     1132        flushSync: options.flushSync
    11291133      });
    11301134    } else {
     
    11381142        state: options.state,
    11391143        fromRouteId: currentRouteId,
    1140         unstable_flushSync: options.unstable_flushSync,
    1141         unstable_viewTransition: options.unstable_viewTransition
     1144        flushSync: options.flushSync,
     1145        viewTransition: options.viewTransition
    11421146      });
    11431147    }
     
    11771181    // on match.route.index below
    11781182    let params = new URLSearchParams(path.search);
    1179     if (params.has("index") && params.get("index") === "") {
     1183    let indexValues = params.getAll("index");
     1184    let hasNakedIndexParam = indexValues.some(v => v === "");
     1185    if (hasNakedIndexParam) {
    11801186      params.delete("index");
    1181       path.search = params.toString() ? `?${params.toString()}` : "";
     1187      indexValues.filter(v => v).forEach(v => params.append("index", v));
     1188      let qs = params.toString();
     1189      path.search = qs ? `?${qs}` : "";
    11821190    }
    11831191  }
     
    14841492function useViewTransitionState(to, opts = {}) {
    14851493  let vtContext = React.useContext(ViewTransitionContext);
    1486   !(vtContext != null) ? UNSAFE_invariant(false, "`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  " + "Did you accidentally import `RouterProvider` from `react-router`?")  : void 0;
     1494  !(vtContext != null) ? UNSAFE_invariant(false, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  " + "Did you accidentally import `RouterProvider` from `react-router`?")  : void 0;
    14871495  let {
    14881496    basename
     
    15011509  // an indicated transition apply.  I.e., on the list view you have:
    15021510  //
    1503   //   <NavLink to="/details/1" unstable_viewTransition>
     1511  //   <NavLink to="/details/1" viewTransition>
    15041512  //
    15051513  // If you click the breadcrumb back to the list view:
    15061514  //
    1507   //   <NavLink to="/list" unstable_viewTransition>
     1515  //   <NavLink to="/list" viewTransition>
    15081516  //
    15091517  // We should apply the transition because it's indicated as active going
     
    15151523//#endregion
    15161524
    1517 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 };
     1525export { 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 };
    15181526//# sourceMappingURL=react-router-dom.development.js.map
Note: See TracChangeset for help on using the changeset viewer.