@shuvi/router-react 1.0.0-rc.1 → 1.0.0-rc.4
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/esm/contexts.d.ts +0 -3
- package/esm/hooks.d.ts +0 -3
- package/lib/contexts.d.ts +0 -3
- package/lib/hooks.d.ts +0 -3
- package/package.json +16 -16
package/esm/contexts.d.ts
CHANGED
|
@@ -10,8 +10,5 @@ export declare const RouteContext: React.Context<IRoute<{
|
|
|
10
10
|
props?: import("@shuvi/router").IRouteComponentProps | undefined;
|
|
11
11
|
path: string;
|
|
12
12
|
filepath?: string | undefined;
|
|
13
|
-
id?: string | undefined;
|
|
14
|
-
__componentSourceWithAffix__?: string | undefined;
|
|
15
|
-
__resolveWeak__?: (() => any) | undefined;
|
|
16
13
|
}>>;
|
|
17
14
|
export declare const MatchedRouteContext: React.Context<IRouteContextObject<{}>>;
|
package/esm/hooks.d.ts
CHANGED
|
@@ -11,9 +11,6 @@ export declare function useCurrentRoute(): import("@shuvi/router").IRoute<{
|
|
|
11
11
|
props?: import("@shuvi/router").IRouteComponentProps | undefined;
|
|
12
12
|
path: string;
|
|
13
13
|
filepath?: string | undefined;
|
|
14
|
-
id?: string | undefined;
|
|
15
|
-
__componentSourceWithAffix__?: string | undefined;
|
|
16
|
-
__resolveWeak__?: (() => any) | undefined;
|
|
17
14
|
}>;
|
|
18
15
|
/**
|
|
19
16
|
* Blocks all navigation attempts. This is useful for preventing the page from
|
package/lib/contexts.d.ts
CHANGED
|
@@ -10,8 +10,5 @@ export declare const RouteContext: React.Context<IRoute<{
|
|
|
10
10
|
props?: import("@shuvi/router").IRouteComponentProps | undefined;
|
|
11
11
|
path: string;
|
|
12
12
|
filepath?: string | undefined;
|
|
13
|
-
id?: string | undefined;
|
|
14
|
-
__componentSourceWithAffix__?: string | undefined;
|
|
15
|
-
__resolveWeak__?: (() => any) | undefined;
|
|
16
13
|
}>>;
|
|
17
14
|
export declare const MatchedRouteContext: React.Context<IRouteContextObject<{}>>;
|
package/lib/hooks.d.ts
CHANGED
|
@@ -11,9 +11,6 @@ export declare function useCurrentRoute(): import("@shuvi/router").IRoute<{
|
|
|
11
11
|
props?: import("@shuvi/router").IRouteComponentProps | undefined;
|
|
12
12
|
path: string;
|
|
13
13
|
filepath?: string | undefined;
|
|
14
|
-
id?: string | undefined;
|
|
15
|
-
__componentSourceWithAffix__?: string | undefined;
|
|
16
|
-
__resolveWeak__?: (() => any) | undefined;
|
|
17
14
|
}>;
|
|
18
15
|
/**
|
|
19
16
|
* Blocks all navigation attempts. This is useful for preventing the page from
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shuvi/router-react",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.4",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/shuvijs/shuvi.git",
|
|
@@ -15,33 +15,33 @@
|
|
|
15
15
|
"lib",
|
|
16
16
|
"esm"
|
|
17
17
|
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"dev": "run-p watch:*",
|
|
20
|
+
"watch:esm": "tsc -p tsconfig.build.json -m esnext --outDir esm -w",
|
|
21
|
+
"watch:cjs": "tsc -p tsconfig.build.json -m commonjs --outDir lib -w",
|
|
22
|
+
"prebuild": "rimraf lib esm",
|
|
23
|
+
"build": "run-p build:*",
|
|
24
|
+
"build:esm": "tsc -p tsconfig.build.json -m esnext --outDir esm",
|
|
25
|
+
"build:cjs": "tsc -p tsconfig.build.json -m commonjs --outDir lib"
|
|
26
|
+
},
|
|
18
27
|
"engines": {
|
|
19
28
|
"node": ">= 12.0.0"
|
|
20
29
|
},
|
|
21
30
|
"dependencies": {
|
|
22
|
-
"@shuvi/router": "1.0.0-rc.
|
|
23
|
-
"@shuvi/platform-shared": "1.0.0-rc.
|
|
24
|
-
"@shuvi/utils": "1.0.0-rc.
|
|
31
|
+
"@shuvi/router": "1.0.0-rc.4",
|
|
32
|
+
"@shuvi/platform-shared": "1.0.0-rc.4",
|
|
33
|
+
"@shuvi/utils": "1.0.0-rc.4",
|
|
25
34
|
"prop-types": "^15.8.1"
|
|
26
35
|
},
|
|
27
36
|
"devDependencies": {
|
|
28
37
|
"@types/prop-types": "^15.7.5",
|
|
29
|
-
"@types/react": "
|
|
30
|
-
"@types/react-test-renderer": "
|
|
38
|
+
"@types/react": "18.0.9",
|
|
39
|
+
"@types/react-test-renderer": "18.0.0",
|
|
31
40
|
"react-test-renderer": "^18.1.0",
|
|
32
41
|
"react": "18.1.0",
|
|
33
42
|
"react-dom": "18.1.0"
|
|
34
43
|
},
|
|
35
44
|
"peerDependencies": {
|
|
36
45
|
"react": ">=16.8.0"
|
|
37
|
-
},
|
|
38
|
-
"scripts": {
|
|
39
|
-
"dev": "run-p watch:*",
|
|
40
|
-
"watch:esm": "tsc -p tsconfig.build.json -m esnext --outDir esm -w",
|
|
41
|
-
"watch:cjs": "tsc -p tsconfig.build.json -m commonjs --outDir lib -w",
|
|
42
|
-
"prebuild": "rimraf lib esm",
|
|
43
|
-
"build": "run-p build:*",
|
|
44
|
-
"build:esm": "tsc -p tsconfig.build.json -m esnext --outDir esm",
|
|
45
|
-
"build:cjs": "tsc -p tsconfig.build.json -m commonjs --outDir lib"
|
|
46
46
|
}
|
|
47
|
-
}
|
|
47
|
+
}
|