@rspress/runtime 2.0.0-beta.21 → 2.0.0-beta.23
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 +6 -6
- package/dist/index.js +6 -6
- package/package.json +3 -3
- package/server.js +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { DataContext, ThemeContext, useDark, useI18n, useLang, usePageData, useVersion, useViewTransition, useWindowSize, } from './hooks.js';
|
|
2
|
-
export { Content } from './Content.js';
|
|
3
|
-
export { normalizeHrefInRuntime, normalizeImagePath, withBase, removeBase, addLeadingSlash, removeTrailingSlash, normalizeSlash, isProduction, isEqualPath, } from './utils.js';
|
|
4
|
-
export { useLocation, useNavigate, matchRoutes, BrowserRouter, useSearchParams, matchPath, } from 'react-router-dom';
|
|
5
|
-
export { createPortal, flushSync, } from 'react-dom';
|
|
6
|
-
export { pathnameToRouteService, normalizeRoutePath, } from './route.js';
|
|
7
1
|
export { Head } from '@unhead/react';
|
|
2
|
+
export { createPortal, flushSync, } from 'react-dom';
|
|
3
|
+
export { BrowserRouter, matchPath, matchRoutes, useLocation, useNavigate, useSearchParams, } from 'react-router-dom';
|
|
4
|
+
export { Content } from './Content.js';
|
|
5
|
+
export { DataContext, ThemeContext, useDark, useI18n, useLang, usePageData, useVersion, useViewTransition, useWindowSize, } from './hooks.js';
|
|
8
6
|
export { NoSSR } from './NoSSR.js';
|
|
7
|
+
export { normalizeRoutePath, pathnameToRouteService, } from './route.js';
|
|
8
|
+
export { addLeadingSlash, isEqualPath, isProduction, normalizeHrefInRuntime, normalizeImagePath, normalizeSlash, removeBase, removeTrailingSlash, withBase, } from './utils.js';
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { DataContext, ThemeContext, useDark, useI18n, useLang, usePageData, useVersion, useViewTransition, useWindowSize } from "./hooks.js";
|
|
2
|
-
import { Content } from "./Content.js";
|
|
3
|
-
import { addLeadingSlash, isEqualPath, isProduction, normalizeHrefInRuntime, normalizeImagePath, normalizeSlash, removeBase, removeTrailingSlash, withBase } from "./utils.js";
|
|
4
|
-
import { BrowserRouter, matchPath, matchRoutes, useLocation, useNavigate, useSearchParams } from "react-router-dom";
|
|
5
|
-
import { createPortal, flushSync } from "react-dom";
|
|
6
|
-
import { normalizeRoutePath, pathnameToRouteService } from "./route.js";
|
|
7
1
|
import { Head } from "@unhead/react";
|
|
2
|
+
import { createPortal, flushSync } from "react-dom";
|
|
3
|
+
import { BrowserRouter, matchPath, matchRoutes, useLocation, useNavigate, useSearchParams } from "react-router-dom";
|
|
4
|
+
import { Content } from "./Content.js";
|
|
5
|
+
import { DataContext, ThemeContext, useDark, useI18n, useLang, usePageData, useVersion, useViewTransition, useWindowSize } from "./hooks.js";
|
|
8
6
|
import { NoSSR } from "./NoSSR.js";
|
|
7
|
+
import { normalizeRoutePath, pathnameToRouteService } from "./route.js";
|
|
8
|
+
import { addLeadingSlash, isEqualPath, isProduction, normalizeHrefInRuntime, normalizeImagePath, normalizeSlash, removeBase, removeTrailingSlash, withBase } from "./utils.js";
|
|
9
9
|
export { BrowserRouter, Content, DataContext, Head, NoSSR, ThemeContext, addLeadingSlash, createPortal, flushSync, isEqualPath, isProduction, matchPath, matchRoutes, normalizeHrefInRuntime, normalizeImagePath, normalizeRoutePath, normalizeSlash, pathnameToRouteService, removeBase, removeTrailingSlash, useDark, useI18n, useLang, useLocation, useNavigate, usePageData, useSearchParams, useVersion, useViewTransition, useWindowSize, withBase };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspress/runtime",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.23",
|
|
4
4
|
"description": "The Runtime of Rspress Documentation Framework",
|
|
5
5
|
"bugs": "https://github.com/web-infra-dev/rspress/issues",
|
|
6
6
|
"repository": {
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"react": "^19.1.0",
|
|
38
38
|
"react-dom": "^19.1.0",
|
|
39
39
|
"react-router-dom": "^6.29.0",
|
|
40
|
-
"@rspress/shared": "2.0.0-beta.
|
|
40
|
+
"@rspress/shared": "2.0.0-beta.23"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@rsbuild/plugin-react": "~1.3.4",
|
|
44
|
-
"@rslib/core": "0.
|
|
44
|
+
"@rslib/core": "0.11.0",
|
|
45
45
|
"@types/jest": "~29.5.14",
|
|
46
46
|
"@types/react": "^19.1.8",
|
|
47
47
|
"@types/react-dom": "^19.1.6",
|
package/server.js
CHANGED