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/umd/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.
     
    251251  }
    252252
    253   const _excluded = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "unstable_viewTransition"],
    254     _excluded2 = ["aria-current", "caseSensitive", "className", "end", "style", "to", "unstable_viewTransition", "children"],
    255     _excluded3 = ["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "relative", "preventScrollReset", "unstable_viewTransition"];
     253  const _excluded = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "viewTransition"],
     254    _excluded2 = ["aria-current", "caseSensitive", "className", "end", "style", "to", "viewTransition", "children"],
     255    _excluded3 = ["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "relative", "preventScrollReset", "viewTransition"];
    256256  //#endregion
    257257  // HEY YOU! DON'T TOUCH THIS VARIABLE!
     
    286286      routes,
    287287      mapRouteProperties: reactRouter.UNSAFE_mapRouteProperties,
    288       unstable_dataStrategy: opts == null ? void 0 : opts.unstable_dataStrategy,
    289       unstable_patchRoutesOnMiss: opts == null ? void 0 : opts.unstable_patchRoutesOnMiss,
     288      dataStrategy: opts == null ? void 0 : opts.dataStrategy,
     289      patchRoutesOnNavigation: opts == null ? void 0 : opts.patchRoutesOnNavigation,
    290290      window: opts == null ? void 0 : opts.window
    291291    }).initialize();
     
    303303      routes,
    304304      mapRouteProperties: reactRouter.UNSAFE_mapRouteProperties,
    305       unstable_dataStrategy: opts == null ? void 0 : opts.unstable_dataStrategy,
    306       unstable_patchRoutesOnMiss: opts == null ? void 0 : opts.unstable_patchRoutesOnMiss,
     305      dataStrategy: opts == null ? void 0 : opts.dataStrategy,
     306      patchRoutesOnNavigation: opts == null ? void 0 : opts.patchRoutesOnNavigation,
    307307      window: opts == null ? void 0 : opts.window
    308308    }).initialize();
     
    479479      let {
    480480        deletedFetchers,
    481         unstable_flushSync: flushSync,
    482         unstable_viewTransitionOpts: viewTransitionOpts
     481        flushSync: flushSync,
     482        viewTransitionOpts: viewTransitionOpts
    483483      } = _ref2;
    484484      deletedFetchers.forEach(key => fetcherData.current.delete(key));
     
    649649      v7_relativeSplatPath: router$1.future.v7_relativeSplatPath
    650650    }), [router$1.future.v7_relativeSplatPath]);
     651    React__namespace.useEffect(() => reactRouter.UNSAFE_logV6DeprecationWarnings(future, router$1.future), [future, router$1.future]);
    651652
    652653    // The fragment and {null} here are important!  We need them to keep React 18's
     
    716717    }, [setStateImpl, v7_startTransition]);
    717718    React__namespace.useLayoutEffect(() => history.listen(setState), [history, setState]);
     719    React__namespace.useEffect(() => reactRouter.UNSAFE_logV6DeprecationWarnings(future), [future]);
    718720    return /*#__PURE__*/React__namespace.createElement(reactRouter.Router, {
    719721      basename: basename,
     
    755757    }, [setStateImpl, v7_startTransition]);
    756758    React__namespace.useLayoutEffect(() => history.listen(setState), [history, setState]);
     759    React__namespace.useEffect(() => reactRouter.UNSAFE_logV6DeprecationWarnings(future), [future]);
    757760    return /*#__PURE__*/React__namespace.createElement(reactRouter.Router, {
    758761      basename: basename,
     
    788791    }, [setStateImpl, v7_startTransition]);
    789792    React__namespace.useLayoutEffect(() => history.listen(setState), [history, setState]);
     793    React__namespace.useEffect(() => reactRouter.UNSAFE_logV6DeprecationWarnings(future), [future]);
    790794    return /*#__PURE__*/React__namespace.createElement(reactRouter.Router, {
    791795      basename: basename,
     
    816820        to,
    817821        preventScrollReset,
    818         unstable_viewTransition
     822        viewTransition
    819823      } = _ref7,
    820824      rest = _objectWithoutPropertiesLoose(_ref7, _excluded);
     
    859863      preventScrollReset,
    860864      relative,
    861       unstable_viewTransition
     865      viewTransition
    862866    });
    863867    function handleClick(event) {
     
    892896        style: styleProp,
    893897        to,
    894         unstable_viewTransition,
     898        viewTransition,
    895899        children
    896900      } = _ref8,
     
    908912    // Conditional usage is OK here because the usage of a data router is static
    909913    // eslint-disable-next-line react-hooks/rules-of-hooks
    910     useViewTransitionState(path) && unstable_viewTransition === true;
     914    useViewTransitionState(path) && viewTransition === true;
    911915    let toPathname = navigator.encodeLocation ? navigator.encodeLocation(path).pathname : path.pathname;
    912916    let locationPathname = location.pathname;
     
    953957      style: style,
    954958      to: to,
    955       unstable_viewTransition: unstable_viewTransition
     959      viewTransition: viewTransition
    956960    }), typeof children === "function" ? children(renderProps) : children);
    957961  });
     
    990994        relative,
    991995        preventScrollReset,
    992         unstable_viewTransition
     996        viewTransition
    993997      } = _ref9,
    994998      props = _objectWithoutPropertiesLoose(_ref9, _excluded3);
     
    10121016        relative,
    10131017        preventScrollReset,
    1014         unstable_viewTransition
     1018        viewTransition
    10151019      });
    10161020    };
     
    10631067  }(DataRouterStateHook || {}); // Internal hooks
    10641068  function getDataRouterConsoleError(hookName) {
    1065     return hookName + " must be used within a data router.  See https://reactrouter.com/routers/picking-a-router.";
     1069    return hookName + " must be used within a data router.  See https://reactrouter.com/v6/routers/picking-a-router.";
    10661070  }
    10671071  function useDataRouterContext(hookName) {
     
    10901094      preventScrollReset,
    10911095      relative,
    1092       unstable_viewTransition
     1096      viewTransition
    10931097    } = _temp === void 0 ? {} : _temp;
    10941098    let navigate = reactRouter.useNavigate();
     
    11091113          preventScrollReset,
    11101114          relative,
    1111           unstable_viewTransition
     1115          viewTransition
    11121116        });
    11131117      }
    1114     }, [location, navigate, path, replaceProp, state, target, to, preventScrollReset, relative, unstable_viewTransition]);
     1118    }, [location, navigate, path, replaceProp, state, target, to, preventScrollReset, relative, viewTransition]);
    11151119  }
    11161120
     
    11861190          formMethod: options.method || method,
    11871191          formEncType: options.encType || encType,
    1188           unstable_flushSync: options.unstable_flushSync
     1192          flushSync: options.flushSync
    11891193        });
    11901194      } else {
     
    11981202          state: options.state,
    11991203          fromRouteId: currentRouteId,
    1200           unstable_flushSync: options.unstable_flushSync,
    1201           unstable_viewTransition: options.unstable_viewTransition
     1204          flushSync: options.flushSync,
     1205          viewTransition: options.viewTransition
    12021206        });
    12031207      }
     
    12361240      // on match.route.index below
    12371241      let params = new URLSearchParams(path.search);
    1238       if (params.has("index") && params.get("index") === "") {
     1242      let indexValues = params.getAll("index");
     1243      let hasNakedIndexParam = indexValues.some(v => v === "");
     1244      if (hasNakedIndexParam) {
    12391245        params.delete("index");
    1240         path.search = params.toString() ? "?" + params.toString() : "";
     1246        indexValues.filter(v => v).forEach(v => params.append("index", v));
     1247        let qs = params.toString();
     1248        path.search = qs ? "?" + qs : "";
    12411249      }
    12421250    }
     
    15491557    }
    15501558    let vtContext = React__namespace.useContext(ViewTransitionContext);
    1551     !(vtContext != null) ? router.UNSAFE_invariant(false, "`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  " + "Did you accidentally import `RouterProvider` from `react-router`?")  : void 0;
     1559    !(vtContext != null) ? router.UNSAFE_invariant(false, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  " + "Did you accidentally import `RouterProvider` from `react-router`?")  : void 0;
    15521560    let {
    15531561      basename
     
    15661574    // an indicated transition apply.  I.e., on the list view you have:
    15671575    //
    1568     //   <NavLink to="/details/1" unstable_viewTransition>
     1576    //   <NavLink to="/details/1" viewTransition>
    15691577    //
    15701578    // If you click the breadcrumb back to the list view:
    15711579    //
    1572     //   <NavLink to="/list" unstable_viewTransition>
     1580    //   <NavLink to="/list" viewTransition>
    15731581    //
    15741582    // We should apply the transition because it's indicated as active going
     
    18071815  exports.unstable_HistoryRouter = HistoryRouter;
    18081816  exports.unstable_usePrompt = usePrompt;
    1809   exports.unstable_useViewTransitionState = useViewTransitionState;
    18101817  exports.useBeforeUnload = useBeforeUnload;
    18111818  exports.useFetcher = useFetcher;
     
    18151822  exports.useSearchParams = useSearchParams;
    18161823  exports.useSubmit = useSubmit;
     1824  exports.useViewTransitionState = useViewTransitionState;
    18171825
    18181826  Object.defineProperty(exports, '__esModule', { value: true });
Note: See TracChangeset for help on using the changeset viewer.