react-router 0.0.0-experimental-7b411a741 → 0.0.0-experimental-4ed3f5da9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3 -7
- package/dist/index.js +254 -108
- package/dist/index.js.map +1 -1
- package/dist/lib/components.d.ts +176 -17
- package/dist/lib/dom/lib.d.ts +285 -17
- package/dist/lib/dom/ssr/components.d.ts +46 -13
- package/dist/lib/hooks.d.ts +40 -11
- package/dist/lib/router/history.d.ts +2 -3
- package/dist/lib/router/router.d.ts +4 -0
- package/dist/main.js +1 -1
- package/dist/react-router.development.js +294 -105
- package/dist/react-router.development.js.map +1 -1
- package/dist/react-router.production.min.js +2 -2
- package/dist/react-router.production.min.js.map +1 -1
- package/dist/umd/react-router.development.js +294 -106
- package/dist/umd/react-router.development.js.map +1 -1
- package/dist/umd/react-router.production.min.js +2 -2
- package/dist/umd/react-router.production.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,10 +6,6 @@ import type { DataRouteMatch, DataRouteObject, IndexRouteObject, NavigateOptions
|
|
|
6
6
|
import { DataRouterContext, DataRouterStateContext, LocationContext, NavigationContext, RouteContext } from "./lib/context";
|
|
7
7
|
import type { NavigateFunction } from "./lib/hooks";
|
|
8
8
|
import { useActionData, useAsyncError, useAsyncValue, useBlocker, useHref, useInRouterContext, useLoaderData, useLocation, useMatch, useMatches, useNavigate, useNavigation, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRevalidator, useRouteError, useRouteId, useRouteLoaderData, useRoutes, useRoutesImpl } from "./lib/hooks";
|
|
9
|
-
declare global {
|
|
10
|
-
const __DEV__: boolean;
|
|
11
|
-
}
|
|
12
|
-
export {};
|
|
13
9
|
type Hash = string;
|
|
14
10
|
type Pathname = string;
|
|
15
11
|
type Search = string;
|
|
@@ -18,7 +14,7 @@ export { AbortedDeferredError, Await, MemoryRouter, Navigate, NavigationType, Ou
|
|
|
18
14
|
export type { AgnosticDataIndexRouteObject, AgnosticDataNonIndexRouteObject, AgnosticDataRouteMatch, AgnosticDataRouteObject, AgnosticIndexRouteObject, AgnosticNonIndexRouteObject, AgnosticRouteMatch, AgnosticRouteObject, HydrationState, InitialEntry, StaticHandler, TrackedPromise, UNSAFE_DeferredData, } from "./lib/router";
|
|
19
15
|
export { getStaticContextFromError, stripBasename, UNSAFE_DEFERRED_SYMBOL, UNSAFE_convertRoutesToDataRoutes, } from "./lib/router";
|
|
20
16
|
export type { FormEncType, FormMethod, GetScrollRestorationKeyFunction, StaticHandlerContext, V7_FormMethod, } from "./lib/router";
|
|
21
|
-
export type { BrowserRouterProps, HashRouterProps, HistoryRouterProps, LinkProps, NavLinkProps, FetcherFormProps, FormProps, ScrollRestorationProps, SetURLSearchParams, SubmitFunction, FetcherSubmitFunction, FetcherWithComponents, } from "./lib/dom/lib";
|
|
17
|
+
export type { BrowserRouterProps, HashRouterProps, HistoryRouterProps, LinkProps, NavLinkProps, NavLinkRenderProps, FetcherFormProps, FormProps, ScrollRestorationProps, SetURLSearchParams, SubmitFunction, FetcherSubmitFunction, FetcherWithComponents, } from "./lib/dom/lib";
|
|
22
18
|
export { createBrowserRouter, createHashRouter, BrowserRouter, HashRouter, Link, UNSAFE_ViewTransitionContext, UNSAFE_FetchersContext, unstable_HistoryRouter, NavLink, Form, ScrollRestoration, useLinkClickHandler, useSearchParams, useSubmit, useFormAction, useFetcher, useFetchers, UNSAFE_useScrollRestoration, useBeforeUnload, unstable_usePrompt, unstable_useViewTransitionState, } from "./lib/dom/lib";
|
|
23
19
|
export type { ParamKeyValuePair, SubmitOptions, URLSearchParamsInit, } from "./lib/dom/dom";
|
|
24
20
|
export { createSearchParams } from "./lib/dom/dom";
|
|
@@ -26,8 +22,8 @@ export type { StaticRouterProps, StaticRouterProviderProps, } from "./lib/dom/se
|
|
|
26
22
|
export { createStaticHandler, createStaticRouter, StaticRouter, StaticRouterProvider, } from "./lib/dom/server";
|
|
27
23
|
export { HydratedRouter } from "./lib/dom/ssr/browser";
|
|
28
24
|
export { Meta, Links, Scripts, PrefetchPageLinks, } from "./lib/dom/ssr/components";
|
|
29
|
-
export type { HtmlLinkDescriptor } from "./lib/dom/ssr/links";
|
|
30
|
-
export type { ClientActionFunction, ClientActionFunctionArgs, ClientLoaderFunction, ClientLoaderFunctionArgs, MetaArgs, MetaDescriptor, MetaFunction, } from "./lib/dom/ssr/routeModules";
|
|
25
|
+
export type { HtmlLinkDescriptor, LinkDescriptor, PrefetchPageDescriptor, } from "./lib/dom/ssr/links";
|
|
26
|
+
export type { ClientActionFunction, ClientActionFunctionArgs, ClientLoaderFunction, ClientLoaderFunctionArgs, MetaArgs, MetaDescriptor, MetaFunction, LinksFunction, } from "./lib/dom/ssr/routeModules";
|
|
31
27
|
export type { RemixServerProps } from "./lib/dom/ssr/server";
|
|
32
28
|
export { RemixServer } from "./lib/dom/ssr/server";
|
|
33
29
|
export type { RemixStubProps } from "./lib/dom/ssr/create-remix-stub";
|