| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 |
|
| 11 | import * as React$1 from "react";
|
| 12 |
|
| 13 | const DataRouterContext = React$1.createContext(null);
|
| 14 | DataRouterContext.displayName = "DataRouter";
|
| 15 | const DataRouterStateContext = React$1.createContext(null);
|
| 16 | DataRouterStateContext.displayName = "DataRouterState";
|
| 17 | const RSCRouterContext = React$1.createContext(false);
|
| 18 | function useIsRSCRouterContext() {
|
| 19 | return React$1.useContext(RSCRouterContext);
|
| 20 | }
|
| 21 | const ViewTransitionContext = React$1.createContext({ isTransitioning: false });
|
| 22 | ViewTransitionContext.displayName = "ViewTransition";
|
| 23 | const FetchersContext = React$1.createContext( new Map());
|
| 24 | FetchersContext.displayName = "Fetchers";
|
| 25 | const AwaitContext = React$1.createContext(null);
|
| 26 | AwaitContext.displayName = "Await";
|
| 27 | const AwaitContextProvider = (props) => React$1.createElement(AwaitContext.Provider, props);
|
| 28 | const NavigationContext = React$1.createContext(null);
|
| 29 | NavigationContext.displayName = "Navigation";
|
| 30 | const LocationContext = React$1.createContext(null);
|
| 31 | LocationContext.displayName = "Location";
|
| 32 | const RouteContext = React$1.createContext({
|
| 33 | outlet: null,
|
| 34 | matches: [],
|
| 35 | isDataRoute: false
|
| 36 | });
|
| 37 | RouteContext.displayName = "Route";
|
| 38 | const RouteErrorContext = React$1.createContext(null);
|
| 39 | RouteErrorContext.displayName = "RouteError";
|
| 40 |
|
| 41 | export { AwaitContext, AwaitContextProvider, DataRouterContext, DataRouterStateContext, FetchersContext, LocationContext, NavigationContext, RSCRouterContext, RouteContext, RouteErrorContext, ViewTransitionContext, useIsRSCRouterContext };
|