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/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.
     
    5050 * custom links that are also accessible and preserve right-click behavior.
    5151 *
    52  * @see https://reactrouter.com/hooks/use-href
     52 * @see https://reactrouter.com/v6/hooks/use-href
    5353 */
    5454function useHref(to, {
     
    8787 * Returns true if this component is a descendant of a `<Router>`.
    8888 *
    89  * @see https://reactrouter.com/hooks/use-in-router-context
     89 * @see https://reactrouter.com/v6/hooks/use-in-router-context
    9090 */
    9191function useInRouterContext() {
     
    100100 * be able to provide something higher-level to better suit your needs.
    101101 *
    102  * @see https://reactrouter.com/hooks/use-location
     102 * @see https://reactrouter.com/v6/hooks/use-location
    103103 */
    104104function useLocation() {
     
    113113 * the current location, either by a pop, push, or replace on the history stack.
    114114 *
    115  * @see https://reactrouter.com/hooks/use-navigation-type
     115 * @see https://reactrouter.com/v6/hooks/use-navigation-type
    116116 */
    117117function useNavigationType() {
     
    123123 * `<NavLink>`.
    124124 *
    125  * @see https://reactrouter.com/hooks/use-match
     125 * @see https://reactrouter.com/v6/hooks/use-match
    126126 */
    127127function useMatch(pattern) {
     
    150150 * may also be used by other elements to change the location.
    151151 *
    152  * @see https://reactrouter.com/hooks/use-navigate
     152 * @see https://reactrouter.com/v6/hooks/use-navigate
    153153 */
    154154function useNavigate() {
     
    209209 * Returns the context (if provided) for the child route at this level of the route
    210210 * hierarchy.
    211  * @see https://reactrouter.com/hooks/use-outlet-context
     211 * @see https://reactrouter.com/v6/hooks/use-outlet-context
    212212 */
    213213function useOutletContext() {
     
    218218 * hierarchy. Used internally by `<Outlet>` to render child routes.
    219219 *
    220  * @see https://reactrouter.com/hooks/use-outlet
     220 * @see https://reactrouter.com/v6/hooks/use-outlet
    221221 */
    222222function useOutlet(context) {
     
    233233 * URL that were matched by the route path.
    234234 *
    235  * @see https://reactrouter.com/hooks/use-params
     235 * @see https://reactrouter.com/v6/hooks/use-params
    236236 */
    237237function useParams() {
     
    245245 * Resolves the pathname of the given `to` value against the current location.
    246246 *
    247  * @see https://reactrouter.com/hooks/use-resolved-path
     247 * @see https://reactrouter.com/v6/hooks/use-resolved-path
    248248 */
    249249function useResolvedPath(to, {
     
    268268 * element.
    269269 *
    270  * @see https://reactrouter.com/hooks/use-routes
     270 * @see https://reactrouter.com/v6/hooks/use-routes
    271271 */
    272272function useRoutes(routes, locationArg) {
     
    489489    } else if (future?.v7_partialHydration && parentMatches.length === 0 && !dataRouterState.initialized && dataRouterState.matches.length > 0) {
    490490      // Don't bail if we're initializing with partial hydration and we have
    491       // router matches.  That means we're actively running `patchRoutesOnMiss`
     491      // router matches.  That means we're actively running `patchRoutesOnNavigation`
    492492      // so we should render down the partial matches to the appropriate
    493493      // `HydrateFallback`.  We only do this if `parentMatches` is empty so it
     
    626626})(DataRouterStateHook || (DataRouterStateHook = {}));
    627627function getDataRouterConsoleError(hookName) {
    628   return `${hookName} must be used within a data router.  See https://reactrouter.com/routers/picking-a-router.`;
     628  return `${hookName} must be used within a data router.  See https://reactrouter.com/v6/routers/picking-a-router.`;
    629629}
    630630function useDataRouterContext(hookName) {
     
    835835  return navigate;
    836836}
     837const alreadyWarned$1 = {};
     838function warningOnce(key, cond, message) {
     839  if (!cond && !alreadyWarned$1[key]) {
     840    alreadyWarned$1[key] = true;
     841    UNSAFE_warning(false, message) ;
     842  }
     843}
     844
    837845const alreadyWarned = {};
    838 function warningOnce(key, cond, message) {
    839   if (!cond && !alreadyWarned[key]) {
    840     alreadyWarned[key] = true;
    841     UNSAFE_warning(false, message) ;
     846function warnOnce(key, message) {
     847  if (!alreadyWarned[message]) {
     848    alreadyWarned[message] = true;
     849    console.warn(message);
     850  }
     851}
     852const logDeprecation = (flag, msg, link) => warnOnce(flag, `⚠️ React Router Future Flag Warning: ${msg}. ` + `You can use the \`${flag}\` future flag to opt-in early. ` + `For more information, see ${link}.`);
     853function logV6DeprecationWarnings(renderFuture, routerFuture) {
     854  if (!renderFuture?.v7_startTransition) {
     855    logDeprecation("v7_startTransition", "React Router will begin wrapping state updates in `React.startTransition` in v7", "https://reactrouter.com/v6/upgrading/future#v7_starttransition");
     856  }
     857  if (!renderFuture?.v7_relativeSplatPath && (!routerFuture || !routerFuture.v7_relativeSplatPath)) {
     858    logDeprecation("v7_relativeSplatPath", "Relative route resolution within Splat routes is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath");
     859  }
     860  if (routerFuture) {
     861    if (!routerFuture.v7_fetcherPersist) {
     862      logDeprecation("v7_fetcherPersist", "The persistence behavior of fetchers is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist");
     863    }
     864    if (!routerFuture.v7_normalizeFormMethod) {
     865      logDeprecation("v7_normalizeFormMethod", "Casing of `formMethod` fields is being normalized to uppercase in v7", "https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod");
     866    }
     867    if (!routerFuture.v7_partialHydration) {
     868      logDeprecation("v7_partialHydration", "`RouterProvider` hydration behavior is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_partialhydration");
     869    }
     870    if (!routerFuture.v7_skipActionErrorRevalidation) {
     871      logDeprecation("v7_skipActionErrorRevalidation", "The revalidation behavior after 4xx/5xx `action` responses is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation");
     872    }
    842873  }
    843874}
     
    916947    basename
    917948  }), [router, navigator, basename]);
     949  React.useEffect(() => logV6DeprecationWarnings(future, router.future), [router, future]);
    918950  // The fragment and {null} here are important!  We need them to keep React 18's
    919951  // useId happy when we are server-rendering since we may have a <script> here
     
    950982 * A `<Router>` that stores all entries in memory.
    951983 *
    952  * @see https://reactrouter.com/router-components/memory-router
     984 * @see https://reactrouter.com/v6/router-components/memory-router
    953985 */
    954986function MemoryRouter({
     
    9791011  }, [setStateImpl, v7_startTransition]);
    9801012  React.useLayoutEffect(() => history.listen(setState), [history, setState]);
     1013  React.useEffect(() => logV6DeprecationWarnings(future), [future]);
    9811014  return /*#__PURE__*/React.createElement(Router, {
    9821015    basename: basename,
     
    9951028 * `useNavigate` hook instead.
    9961029 *
    997  * @see https://reactrouter.com/components/navigate
     1030 * @see https://reactrouter.com/v6/components/navigate
    9981031 */
    9991032function Navigate({
     
    10331066 * Renders the child route's element, if there is one.
    10341067 *
    1035  * @see https://reactrouter.com/components/outlet
     1068 * @see https://reactrouter.com/v6/components/outlet
    10361069 */
    10371070function Outlet(props) {
     
    10411074 * Declares an element that should be rendered at a certain URL path.
    10421075 *
    1043  * @see https://reactrouter.com/components/route
     1076 * @see https://reactrouter.com/v6/components/route
    10441077 */
    10451078function Route(_props) {
     
    10531086 * in web browsers or a `<StaticRouter>` for server rendering.
    10541087 *
    1055  * @see https://reactrouter.com/router-components/router
     1088 * @see https://reactrouter.com/v6/router-components/router
    10561089 */
    10571090function Router({
     
    11181151 * that best matches the current location.
    11191152 *
    1120  * @see https://reactrouter.com/components/routes
     1153 * @see https://reactrouter.com/v6/components/routes
    11211154 */
    11221155function Routes({
     
    12521285 * `<Routes>` to create a route config from its children.
    12531286 *
    1254  * @see https://reactrouter.com/utils/create-routes-from-children
     1287 * @see https://reactrouter.com/v6/utils/create-routes-from-children
    12551288 */
    12561289function createRoutesFromChildren(children, parentPath = []) {
     
    13551388    routes,
    13561389    mapRouteProperties,
    1357     unstable_dataStrategy: opts?.unstable_dataStrategy,
    1358     unstable_patchRoutesOnMiss: opts?.unstable_patchRoutesOnMiss
     1390    dataStrategy: opts?.dataStrategy,
     1391    patchRoutesOnNavigation: opts?.patchRoutesOnNavigation
    13591392  }).initialize();
    13601393}
    13611394
    1362 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 };
     1395export { 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 };
    13631396//# sourceMappingURL=react-router.development.js.map
Note: See TracChangeset for help on using the changeset viewer.