| 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 DataRouterDataContext = React$1.createContext(null);
|
| 18 | DataRouterDataContext.displayName = "DataRouterData";
|
| 19 | const DataRouterNavigationContext = React$1.createContext(null);
|
| 20 | DataRouterNavigationContext.displayName = "DataRouterNavigation";
|
| 21 | const RSCRouterContext = React$1.createContext(false);
|
| 22 | function useIsRSCRouterContext() {
|
| 23 | return React$1.useContext(RSCRouterContext);
|
| 24 | }
|
| 25 | const ViewTransitionContext = React$1.createContext({ isTransitioning: false });
|
| 26 | ViewTransitionContext.displayName = "ViewTransition";
|
| 27 | const FetchersContext = React$1.createContext(null);
|
| 28 | FetchersContext.displayName = "Fetchers";
|
| 29 | const AwaitContext = React$1.createContext(null);
|
| 30 | AwaitContext.displayName = "Await";
|
| 31 | const AwaitContextProvider = (props) => React$1.createElement(AwaitContext.Provider, props);
|
| 32 | const NavigationContext = React$1.createContext(null);
|
| 33 | NavigationContext.displayName = "Navigation";
|
| 34 | const LocationContext = React$1.createContext(null);
|
| 35 | LocationContext.displayName = "Location";
|
| 36 | const RouteContext = React$1.createContext({
|
| 37 | outlet: null,
|
| 38 | matches: [],
|
| 39 | isDataRoute: false
|
| 40 | });
|
| 41 | RouteContext.displayName = "Route";
|
| 42 | const IsDataRouteContext = React$1.createContext(false);
|
| 43 | IsDataRouteContext.displayName = "IsDataRoute";
|
| 44 | const RouteIdContext = React$1.createContext(void 0);
|
| 45 | RouteIdContext.displayName = "RouteId";
|
| 46 | const RouteErrorContext = React$1.createContext(null);
|
| 47 | RouteErrorContext.displayName = "RouteError";
|
| 48 |
|
| 49 | export { AwaitContext, AwaitContextProvider, DataRouterContext, DataRouterDataContext, DataRouterNavigationContext, DataRouterStateContext, FetchersContext, IsDataRouteContext, LocationContext, NavigationContext, RSCRouterContext, RouteContext, RouteErrorContext, RouteIdContext, ViewTransitionContext, useIsRSCRouterContext };
|