@rspress/plugin-client-redirects 2.0.0-beta.20 → 2.0.0-beta.21
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 +1 -1
- package/package.json +3 -6
- package/static/Redirect.tsx +2 -2
package/dist/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspress/plugin-client-redirects",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.21",
|
|
4
4
|
"description": "A plugin for rspress to client redirect in docs.",
|
|
5
5
|
"bugs": "https://github.com/web-infra-dev/rspress/issues",
|
|
6
6
|
"repository": {
|
|
@@ -28,12 +28,9 @@
|
|
|
28
28
|
"dist",
|
|
29
29
|
"static"
|
|
30
30
|
],
|
|
31
|
-
"dependencies": {
|
|
32
|
-
"@rspress/shared": "2.0.0-beta.20"
|
|
33
|
-
},
|
|
34
31
|
"devDependencies": {
|
|
35
32
|
"@microsoft/api-extractor": "^7.52.8",
|
|
36
|
-
"@rslib/core": "0.10.
|
|
33
|
+
"@rslib/core": "0.10.5",
|
|
37
34
|
"@types/node": "^22.8.1",
|
|
38
35
|
"@types/react": "^19.1.8",
|
|
39
36
|
"@types/react-dom": "^19.1.6",
|
|
@@ -43,7 +40,7 @@
|
|
|
43
40
|
"@rspress/config": "1.0.0"
|
|
44
41
|
},
|
|
45
42
|
"peerDependencies": {
|
|
46
|
-
"
|
|
43
|
+
"rspress": "^2.0.0-beta.21"
|
|
47
44
|
},
|
|
48
45
|
"engines": {
|
|
49
46
|
"node": ">=18.0.0"
|
package/static/Redirect.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { useLocation } from '@rspress/runtime';
|
|
2
|
-
import { isExternalUrl } from '@rspress/shared';
|
|
3
1
|
import { useEffect, useMemo } from 'react';
|
|
2
|
+
import { isExternalUrl } from 'rspress/runtime';
|
|
3
|
+
import { useLocation } from 'rspress/runtime';
|
|
4
4
|
|
|
5
5
|
// these are types copied from src/types.ts
|
|
6
6
|
type RedirectRule = {
|