clear-react-router 1.0.6 → 1.0.8
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.
|
@@ -7,5 +7,5 @@ type LinkProps = {
|
|
|
7
7
|
}>;
|
|
8
8
|
prefetch?: boolean;
|
|
9
9
|
};
|
|
10
|
-
export declare const Link: ({ children, to, prefetch }: LinkProps) => import("react").JSX.Element;
|
|
10
|
+
export declare const Link: ({ children, to, prefetch }: LinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -3,5 +3,5 @@ type RouterProps = {
|
|
|
3
3
|
routeList: RouteItem[];
|
|
4
4
|
context?: Record<string, unknown>;
|
|
5
5
|
};
|
|
6
|
-
export declare const Router: ({ routeList, context: initialContext }: RouterProps) => import("react").JSX.Element;
|
|
6
|
+
export declare const Router: ({ routeList, context: initialContext }: RouterProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -3,5 +3,5 @@ import { type ActionsContextValue, type DataContextValue, type NavigationContext
|
|
|
3
3
|
type RouterProviderProps = NavigationContextValue & ActionsContextValue & DataContextValue & {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
};
|
|
6
|
-
export declare const RouterProvider: ({ children, setContext, context, updateBlockedRoute, updateLocation, location, params, prefetchLoader, loaderCache, blockerState, }: RouterProviderProps) => import("react").JSX.Element;
|
|
6
|
+
export declare const RouterProvider: ({ children, setContext, context, updateBlockedRoute, updateLocation, location, params, prefetchLoader, loaderCache, blockerState, }: RouterProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type ReactElement } from 'react';
|
|
2
|
-
export declare const renderElement: (Component?: (() => ReactElement) | ReactElement) => import("react").JSX.Element | null;
|
|
2
|
+
export declare const renderElement: (Component?: (() => ReactElement) | ReactElement) => import("react/jsx-runtime").JSX.Element | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clear-react-router",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "A lightweight, type-safe routing library for React applications",
|
|
5
5
|
"author": "Andrew Bubnov",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -34,8 +34,7 @@
|
|
|
34
34
|
"exports": {
|
|
35
35
|
".": {
|
|
36
36
|
"types": "./dist/index.d.ts",
|
|
37
|
-
"import": "./dist/index.js"
|
|
38
|
-
"require": "./dist/index.js"
|
|
37
|
+
"import": "./dist/index.js"
|
|
39
38
|
}
|
|
40
39
|
},
|
|
41
40
|
"devDependencies": {
|