@rspress/core 1.43.9 → 1.43.10

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 CHANGED
@@ -1549,7 +1549,7 @@ async function dev(options) {
1549
1549
  }
1550
1550
  }
1551
1551
  var package_namespaceObject = {
1552
- i8: "1.43.9"
1552
+ i8: "1.43.10"
1553
1553
  };
1554
1554
  async function renderFrontmatterHead(route) {
1555
1555
  if (!isRouteMeta(route)) return '';
@@ -1,16 +1,13 @@
1
- import * as __WEBPACK_EXTERNAL_MODULE__theme_75e53063__ from "@theme";
2
1
  import * as __WEBPACK_EXTERNAL_MODULE_react_dom_7136dc57__ from "react-dom";
3
2
  import * as __WEBPACK_EXTERNAL_MODULE_react_dom_client_76b1397c__ from "react-dom/client";
4
3
  import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
5
4
  import * as __WEBPACK_EXTERNAL_MODULE__rspress_runtime_0abd3046__ from "@rspress/runtime";
6
5
  import * as __WEBPACK_EXTERNAL_MODULE__rspress_shared_baa012d0__ from "@rspress/shared";
6
+ import * as __WEBPACK_EXTERNAL_MODULE__theme_75e53063__ from "@theme";
7
7
  import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
8
8
  import * as __WEBPACK_EXTERNAL_MODULE_virtual_site_data_fa42d4c0__ from "virtual-site-data";
9
9
  import * as __WEBPACK_EXTERNAL_MODULE__App_js_3638e61b__ from "./App.js";
10
10
  var __webpack_modules__ = {
11
- "@theme": function(module) {
12
- module.exports = __WEBPACK_EXTERNAL_MODULE__theme_75e53063__;
13
- },
14
11
  "react-dom": function(module) {
15
12
  module.exports = __WEBPACK_EXTERNAL_MODULE_react_dom_7136dc57__;
16
13
  },
@@ -29,14 +26,13 @@ function __webpack_require__(moduleId) {
29
26
  return module.exports;
30
27
  }
31
28
  const enableSSG = __WEBPACK_EXTERNAL_MODULE_virtual_site_data_fa42d4c0__["default"].ssg;
32
- const { default: Theme, useThemeState } = __webpack_require__("@theme");
33
29
  async function renderInBrowser() {
34
30
  const container = document.getElementById('root');
35
31
  const enhancedApp = async ()=>{
36
32
  const initialPageData = await (0, __WEBPACK_EXTERNAL_MODULE__App_js_3638e61b__.initPageData)(window.location.pathname);
37
33
  return function() {
38
34
  const [data, setData] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(initialPageData);
39
- const [theme, setTheme] = useThemeState();
35
+ const [theme, setTheme] = (0, __WEBPACK_EXTERNAL_MODULE__theme_75e53063__.useThemeState)();
40
36
  return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__rspress_runtime_0abd3046__.ThemeContext.Provider, {
41
37
  value: (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>({
42
38
  theme,
@@ -71,7 +67,5 @@ async function renderInBrowser() {
71
67
  else ReactDOM.render(/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(RootApp, {}), container);
72
68
  }
73
69
  }
74
- renderInBrowser().then(()=>{
75
- Theme.setup();
76
- });
70
+ renderInBrowser();
77
71
  export { renderInBrowser };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/core",
3
- "version": "1.43.9",
3
+ "version": "1.43.10",
4
4
  "description": "The Rspress Documentation Framework",
5
5
  "bugs": "https://github.com/web-infra-dev/rspress/issues",
6
6
  "repository": {
@@ -73,13 +73,13 @@
73
73
  "unified": "^10.1.2",
74
74
  "unist-util-visit": "^4.1.2",
75
75
  "unist-util-visit-children": "^2.0.2",
76
- "@rspress/plugin-auto-nav-sidebar": "1.43.9",
77
- "@rspress/plugin-container-syntax": "1.43.9",
78
- "@rspress/plugin-last-updated": "1.43.9",
79
- "@rspress/runtime": "1.43.9",
80
- "@rspress/shared": "1.43.9",
81
- "@rspress/plugin-medium-zoom": "1.43.9",
82
- "@rspress/theme-default": "1.43.9"
76
+ "@rspress/plugin-auto-nav-sidebar": "1.43.10",
77
+ "@rspress/plugin-container-syntax": "1.43.10",
78
+ "@rspress/plugin-last-updated": "1.43.10",
79
+ "@rspress/plugin-medium-zoom": "1.43.10",
80
+ "@rspress/runtime": "1.43.10",
81
+ "@rspress/theme-default": "1.43.10",
82
+ "@rspress/shared": "1.43.10"
83
83
  },
84
84
  "devDependencies": {
85
85
  "@microsoft/api-extractor": "^7.49.2",