@rspress/core 1.4.0 → 1.5.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/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/runtime/App.js +1 -1
- package/package.json +16 -16
- package/src/runtime/App.tsx +1 -1
package/dist/runtime/App.js
CHANGED
|
@@ -12,7 +12,7 @@ import React, { useContext, useLayoutEffect } from "react";
|
|
|
12
12
|
import { cleanUrl, isProduction } from "@rspress/shared";
|
|
13
13
|
import globalComponents from "virtual-global-components";
|
|
14
14
|
import "virtual-global-styles";
|
|
15
|
-
const { default: Theme } = require("@
|
|
15
|
+
const { default: Theme } = require("@theme");
|
|
16
16
|
async function initPageData(routePath) {
|
|
17
17
|
const { routes } = process.env.__SSR__ ? require("virtual-routes-ssr") : require("virtual-routes");
|
|
18
18
|
const matched = matchRoutes(routes, routePath);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspress/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "The Rspress Documentation Framework",
|
|
5
5
|
"bugs": "https://github.com/web-infra-dev/rspress/issues",
|
|
6
6
|
"repository": {
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"@mdx-js/loader": "2.2.1",
|
|
41
41
|
"@mdx-js/mdx": "2.2.1",
|
|
42
42
|
"@mdx-js/react": "2.2.1",
|
|
43
|
-
"@modern-js/utils": "2.39.
|
|
44
|
-
"@rsbuild/core": "0.0.
|
|
45
|
-
"@rsbuild/plugin-react": "0.0.
|
|
46
|
-
"@rsbuild/plugin-svgr": "0.0.
|
|
43
|
+
"@modern-js/utils": "2.39.2",
|
|
44
|
+
"@rsbuild/core": "0.0.13",
|
|
45
|
+
"@rsbuild/plugin-react": "0.0.13",
|
|
46
|
+
"@rsbuild/plugin-svgr": "0.0.13",
|
|
47
47
|
"@rspress/mdx-rs": "0.4.1",
|
|
48
48
|
"@types/compression": "^1.7.2",
|
|
49
49
|
"@types/polka": "^0.5.4",
|
|
@@ -91,19 +91,19 @@
|
|
|
91
91
|
"unist-util-visit": "^4.1.1",
|
|
92
92
|
"unist-util-visit-children": "^2.0.1",
|
|
93
93
|
"yaml-front-matter": "^4.1.1",
|
|
94
|
-
"@rspress/
|
|
95
|
-
"@rspress/
|
|
96
|
-
"@rspress/
|
|
97
|
-
"@rspress/plugin-
|
|
98
|
-
"@rspress/plugin-
|
|
99
|
-
"@rspress/
|
|
100
|
-
"@rspress/
|
|
94
|
+
"@rspress/runtime": "1.5.0",
|
|
95
|
+
"@rspress/plugin-last-updated": "1.5.0",
|
|
96
|
+
"@rspress/theme-default": "1.5.0",
|
|
97
|
+
"@rspress/plugin-medium-zoom": "1.5.0",
|
|
98
|
+
"@rspress/plugin-container-syntax": "1.5.0",
|
|
99
|
+
"@rspress/shared": "1.5.0",
|
|
100
|
+
"@rspress/plugin-auto-nav-sidebar": "1.5.0"
|
|
101
101
|
},
|
|
102
102
|
"devDependencies": {
|
|
103
|
-
"@modern-js/plugin-tailwindcss": "2.39.
|
|
104
|
-
"@modern-js/plugin-testing": "2.39.
|
|
105
|
-
"@modern-js/tsconfig": "2.39.
|
|
106
|
-
"@modern-js/types": "2.39.
|
|
103
|
+
"@modern-js/plugin-tailwindcss": "2.39.2",
|
|
104
|
+
"@modern-js/plugin-testing": "2.39.2",
|
|
105
|
+
"@modern-js/tsconfig": "2.39.2",
|
|
106
|
+
"@modern-js/types": "2.39.2",
|
|
107
107
|
"@types/body-scroll-lock": "^3.1.0",
|
|
108
108
|
"@types/fs-extra": "^9.0.13",
|
|
109
109
|
"@types/hast": "^2.3.4",
|
package/src/runtime/App.tsx
CHANGED
|
@@ -13,7 +13,7 @@ import globalComponents from 'virtual-global-components';
|
|
|
13
13
|
import 'virtual-global-styles';
|
|
14
14
|
|
|
15
15
|
// eslint-disable-next-line import/no-commonjs
|
|
16
|
-
const { default: Theme } = require('@
|
|
16
|
+
const { default: Theme } = require('@theme');
|
|
17
17
|
|
|
18
18
|
type RspressPageMeta = Record<
|
|
19
19
|
string,
|