@flemo/react 1.0.6 → 1.1.0
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.
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { TransitionName } from '@flemo/core';
|
|
2
2
|
import { RegisterRoute } from '../Route';
|
|
3
|
+
interface DistanceOptions {
|
|
4
|
+
skip?: number;
|
|
5
|
+
until?: keyof RegisterRoute;
|
|
6
|
+
}
|
|
3
7
|
export default function useNavigate(): {
|
|
4
|
-
push: <T extends keyof RegisterRoute>(path: T, params?: RegisterRoute[T], options?: {
|
|
8
|
+
push: <T extends keyof RegisterRoute>(path: T, params?: RegisterRoute[T], options?: DistanceOptions & {
|
|
5
9
|
layoutId?: string | number;
|
|
6
10
|
transitionName?: TransitionName;
|
|
7
11
|
}) => Promise<void>;
|
|
8
|
-
replace: <T extends keyof RegisterRoute>(path: T, params?: RegisterRoute[T], options?: {
|
|
12
|
+
replace: <T extends keyof RegisterRoute>(path: T, params?: RegisterRoute[T], options?: DistanceOptions & {
|
|
9
13
|
layoutId?: string | number;
|
|
10
14
|
transitionName?: TransitionName;
|
|
11
15
|
}) => Promise<void>;
|
|
12
|
-
pop: () => Promise<void>;
|
|
16
|
+
pop: (options?: DistanceOptions) => Promise<void>;
|
|
13
17
|
};
|
|
18
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flemo/react",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "React bindings for flemo — Router, Route, Screen, and the screen-transition runtime.",
|
|
5
5
|
"main": "./dist/index.mjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"path-to-regexp": "^8.2.0",
|
|
38
38
|
"zustand": "^5.0.11",
|
|
39
|
-
"@flemo/core": "1.
|
|
39
|
+
"@flemo/core": "1.2.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@testing-library/jest-dom": "^6.6.3",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"vite": "^7.1.5",
|
|
55
55
|
"vite-plugin-dts": "^4.5.4",
|
|
56
56
|
"vitest": "^2.1.8",
|
|
57
|
-
"@flemo/
|
|
58
|
-
"@flemo/
|
|
57
|
+
"@flemo/tsconfig": "0.0.0",
|
|
58
|
+
"@flemo/eslint-config": "0.0.0"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"react": "^19.2.0",
|