@real-router/preact 0.17.2 → 0.17.3
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/cjs/index.d.ts +2 -10
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/ssr.d.ts +6 -24
- package/dist/cjs/ssr.d.ts.map +1 -1
- package/dist/esm/index.d.mts +2 -10
- package/dist/esm/index.d.mts.map +1 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/ssr.d.mts +6 -24
- package/dist/esm/ssr.d.mts.map +1 -1
- package/package.json +4 -4
package/dist/cjs/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { ComponentChildren, Context, FunctionComponent, HTMLAttributes, VNode }
|
|
|
2
2
|
import { NavigationOptions, Navigator, Navigator as Navigator$1, Params, Router, RouterError, State } from "@real-router/core";
|
|
3
3
|
import { RouteUtils } from "@real-router/route-utils";
|
|
4
4
|
import { RouterTransitionSnapshot, RouterTransitionSnapshot as RouterTransitionSnapshot$1 } from "@real-router/sources";
|
|
5
|
-
|
|
6
5
|
//#region src/components/RouteView/types.d.ts
|
|
7
6
|
interface RouteViewProps {
|
|
8
7
|
readonly nodeName: string;
|
|
@@ -39,10 +38,7 @@ declare namespace NotFound {
|
|
|
39
38
|
}
|
|
40
39
|
//#endregion
|
|
41
40
|
//#region src/components/RouteView/RouteView.d.ts
|
|
42
|
-
declare function RouteViewRoot({
|
|
43
|
-
nodeName,
|
|
44
|
-
children
|
|
45
|
-
}: Readonly<RouteViewProps>): VNode | null;
|
|
41
|
+
declare function RouteViewRoot({ nodeName, children }: Readonly<RouteViewProps>): VNode | null;
|
|
46
42
|
declare namespace RouteViewRoot {
|
|
47
43
|
var displayName: string;
|
|
48
44
|
}
|
|
@@ -106,11 +102,7 @@ interface RouterErrorBoundaryProps {
|
|
|
106
102
|
* (e.g. `preact-iso/ErrorBoundary` or a custom `componentDidCatch` class) —
|
|
107
103
|
* the two can coexist.
|
|
108
104
|
*/
|
|
109
|
-
declare function RouterErrorBoundary({
|
|
110
|
-
children,
|
|
111
|
-
fallback,
|
|
112
|
-
onError
|
|
113
|
-
}: RouterErrorBoundaryProps): VNode;
|
|
105
|
+
declare function RouterErrorBoundary({ children, fallback, onError }: RouterErrorBoundaryProps): VNode;
|
|
114
106
|
//#endregion
|
|
115
107
|
//#region src/hooks/useRouter.d.ts
|
|
116
108
|
declare const useRouter: () => Router;
|
package/dist/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/components/RouteView/types.ts","../../src/components/RouteView/components.tsx","../../src/components/RouteView/RouteView.tsx","../../src/types.ts","../../src/components/Link.tsx","../../src/components/RouterErrorBoundary.tsx","../../src/hooks/useRouter.tsx","../../src/hooks/useNavigator.tsx","../../src/hooks/useRouteUtils.tsx","../../src/hooks/useRoute.tsx","../../src/hooks/useRouteNode.tsx","../../src/hooks/useRouterTransition.tsx","../../src/hooks/useRouteExit.tsx","../../src/hooks/useRouteEnter.tsx","../../../../shared/dom-utils/route-announcer.ts","../../../../shared/dom-utils/scroll-restore.ts","../../../../shared/dom-utils/scroll-spy.ts","../../src/RouterProvider.tsx","../../src/context.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/components/RouteView/types.ts","../../src/components/RouteView/components.tsx","../../src/components/RouteView/RouteView.tsx","../../src/types.ts","../../src/components/Link.tsx","../../src/components/RouterErrorBoundary.tsx","../../src/hooks/useRouter.tsx","../../src/hooks/useNavigator.tsx","../../src/hooks/useRouteUtils.tsx","../../src/hooks/useRoute.tsx","../../src/hooks/useRouteNode.tsx","../../src/hooks/useRouterTransition.tsx","../../src/hooks/useRouteExit.tsx","../../src/hooks/useRouteEnter.tsx","../../../../shared/dom-utils/route-announcer.ts","../../../../shared/dom-utils/scroll-restore.ts","../../../../shared/dom-utils/scroll-spy.ts","../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