@rspress/runtime 1.28.2 → 1.29.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.
- package/dist/hooks.d.ts +1 -1
- package/package.json +3 -3
- package/src/hooks.ts +2 -1
package/dist/hooks.d.ts
CHANGED
@@ -22,7 +22,7 @@ export declare function useDark(): boolean;
|
|
22
22
|
export declare function useI18n<T = Record<string, Record<string, string>>>(): (key: keyof T) => any;
|
23
23
|
declare global {
|
24
24
|
interface Document {
|
25
|
-
startViewTransition: (callback: () => void) =>
|
25
|
+
startViewTransition: (callback: () => void) => any;
|
26
26
|
}
|
27
27
|
}
|
28
28
|
export declare function useViewTransition(dom: ReactElement): ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@rspress/runtime",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.29.0",
|
4
4
|
"description": "The Runtime of Rspress Documentation Framework",
|
5
5
|
"bugs": "https://github.com/web-infra-dev/rspress/issues",
|
6
6
|
"repository": {
|
@@ -29,10 +29,10 @@
|
|
29
29
|
"react-dom": "^18.3.1",
|
30
30
|
"react-helmet-async": "^1.3.0",
|
31
31
|
"react-router-dom": "^6.8.1",
|
32
|
-
"@rspress/shared": "1.
|
32
|
+
"@rspress/shared": "1.29.0"
|
33
33
|
},
|
34
34
|
"devDependencies": {
|
35
|
-
"@modern-js/tsconfig": "2.58.
|
35
|
+
"@modern-js/tsconfig": "2.58.3",
|
36
36
|
"@types/jest": "~29.5.12",
|
37
37
|
"@types/react": "^18.3.3",
|
38
38
|
"@types/react-dom": "^18.3.0",
|
package/src/hooks.ts
CHANGED
@@ -58,7 +58,8 @@ export function useI18n<T = Record<string, Record<string, string>>>() {
|
|
58
58
|
|
59
59
|
declare global {
|
60
60
|
interface Document {
|
61
|
-
|
61
|
+
// @ts-ignore view-transition new API type is failed in tsc, but it works in vscode
|
62
|
+
startViewTransition: (callback: () => void) => any;
|
62
63
|
}
|
63
64
|
}
|
64
65
|
|