@rspress/core 1.39.2 → 1.39.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/core",
3
- "version": "1.39.2",
3
+ "version": "1.39.4",
4
4
  "description": "The Rspress Documentation Framework",
5
5
  "bugs": "https://github.com/web-infra-dev/rspress/issues",
6
6
  "repository": {
@@ -9,11 +9,16 @@
9
9
  "directory": "packages/cli/core"
10
10
  },
11
11
  "license": "MIT",
12
+ "sideEffects": [
13
+ "*.css",
14
+ "*.less",
15
+ "*.sass",
16
+ "*.scss",
17
+ "**/virtual-global-styles.js",
18
+ "virtual-global-styles",
19
+ "./src/theme-default/styles/index.ts"
20
+ ],
12
21
  "type": "module",
13
- "jsnext:source": "./src/index.ts",
14
- "types": "./dist/index.d.ts",
15
- "main": "./dist/index.js",
16
- "module": "./dist/node/index.js",
17
22
  "exports": {
18
23
  ".": {
19
24
  "types": "./dist/index.d.ts",
@@ -29,14 +34,25 @@
29
34
  "default": "./runtime.ts"
30
35
  }
31
36
  },
32
- "engines": {
33
- "node": ">=14.17.6"
34
- },
37
+ "main": "./dist/index.js",
38
+ "module": "./dist/node/index.js",
39
+ "types": "./dist/index.d.ts",
40
+ "files": [
41
+ "dist",
42
+ "src/runtime",
43
+ "src/theme-default",
44
+ "src/shared",
45
+ "index.html",
46
+ "runtime.ts",
47
+ "theme.ts",
48
+ "loader.cjs",
49
+ "compiled"
50
+ ],
35
51
  "dependencies": {
36
52
  "@mdx-js/loader": "2.3.0",
37
53
  "@mdx-js/mdx": "2.3.0",
38
54
  "@mdx-js/react": "2.3.0",
39
- "@rsbuild/core": "~1.1.12",
55
+ "@rsbuild/core": "~1.1.13",
40
56
  "@rsbuild/plugin-less": "~1.1.0",
41
57
  "@rsbuild/plugin-react": "~1.1.0",
42
58
  "@rsbuild/plugin-sass": "~1.1.2",
@@ -61,17 +77,17 @@
61
77
  "unified": "^10.1.2",
62
78
  "unist-util-visit": "^4.1.2",
63
79
  "unist-util-visit-children": "^3.0.0",
64
- "@rspress/plugin-auto-nav-sidebar": "1.39.2",
65
- "@rspress/plugin-container-syntax": "1.39.2",
66
- "@rspress/plugin-last-updated": "1.39.2",
67
- "@rspress/plugin-medium-zoom": "1.39.2",
68
- "@rspress/theme-default": "1.39.2",
69
- "@rspress/runtime": "1.39.2",
70
- "@rspress/shared": "1.39.2"
80
+ "@rspress/plugin-auto-nav-sidebar": "1.39.4",
81
+ "@rspress/plugin-container-syntax": "1.39.4",
82
+ "@rspress/plugin-last-updated": "1.39.4",
83
+ "@rspress/runtime": "1.39.4",
84
+ "@rspress/shared": "1.39.4",
85
+ "@rspress/plugin-medium-zoom": "1.39.4",
86
+ "@rspress/theme-default": "1.39.4"
71
87
  },
72
88
  "devDependencies": {
73
- "@modern-js/plugin-tailwindcss": "2.63.3",
74
- "@modern-js/tsconfig": "2.63.3",
89
+ "@modern-js/plugin-tailwindcss": "2.63.5",
90
+ "@modern-js/tsconfig": "2.63.5",
75
91
  "@types/hast": "3.0.4",
76
92
  "@types/html-to-text": "^9.0.4",
77
93
  "@types/jest": "~29.5.14",
@@ -89,34 +105,18 @@
89
105
  "typescript": "^5.5.3",
90
106
  "vitest": "2.1.8"
91
107
  },
92
- "sideEffects": [
93
- "*.css",
94
- "*.less",
95
- "*.sass",
96
- "*.scss",
97
- "**/virtual-global-styles.js",
98
- "virtual-global-styles",
99
- "./src/theme-default/styles/index.ts"
100
- ],
101
- "files": [
102
- "dist",
103
- "src/runtime",
104
- "src/theme-default",
105
- "src/shared",
106
- "index.html",
107
- "runtime.ts",
108
- "theme.ts",
109
- "loader.cjs",
110
- "compiled"
111
- ],
108
+ "engines": {
109
+ "node": ">=14.17.6"
110
+ },
112
111
  "publishConfig": {
113
112
  "access": "public",
114
113
  "provenance": true,
115
114
  "registry": "https://registry.npmjs.org/"
116
115
  },
116
+ "jsnext:source": "./src/index.ts",
117
117
  "scripts": {
118
- "dev": "modern build -w",
119
118
  "build": "modern build",
119
+ "dev": "modern build -w",
120
120
  "reset": "rimraf ./**/node_modules",
121
121
  "test": "vitest run --passWithNoTests"
122
122
  }
@@ -1,21 +1,21 @@
1
- import siteData from 'virtual-site-data';
2
1
  import {
3
- matchRoutes,
4
- useLocation,
2
+ DataContext,
5
3
  isEqualPath,
4
+ matchRoutes,
6
5
  normalizeRoutePath,
7
- DataContext,
6
+ useLocation,
8
7
  } from '@rspress/runtime';
9
- import { HelmetProvider } from 'react-helmet-async';
10
- import React, { useContext, useLayoutEffect } from 'react';
11
8
  import {
12
9
  type Header,
10
+ MDX_REGEXP,
13
11
  type PageData,
14
12
  cleanUrl,
15
- MDX_REGEXP,
16
13
  } from '@rspress/shared';
17
- import globalComponents from 'virtual-global-components';
18
14
  import Theme from '@theme';
15
+ import React, { useContext, useLayoutEffect } from 'react';
16
+ import { HelmetProvider } from 'react-helmet-async';
17
+ import globalComponents from 'virtual-global-components';
18
+ import siteData from 'virtual-site-data';
19
19
  import 'virtual-global-styles';
20
20
 
21
21
  export enum QueryStatus {
@@ -1,12 +1,12 @@
1
- import { useState, useMemo } from 'react';
2
- import { isProduction } from '@rspress/shared';
3
- import siteData from 'virtual-site-data';
4
1
  import {
2
+ BrowserRouter,
5
3
  DataContext,
6
4
  ThemeContext,
7
5
  normalizeRoutePath,
8
- BrowserRouter,
9
6
  } from '@rspress/runtime';
7
+ import { isProduction } from '@rspress/shared';
8
+ import { useMemo, useState } from 'react';
9
+ import siteData from 'virtual-site-data';
10
10
  import { App, initPageData } from './App';
11
11
 
12
12
  const enableSSG = siteData.ssg;
@@ -1,7 +1,7 @@
1
- import { renderToString } from 'react-dom/server';
2
- import type { PageData } from '@rspress/shared';
3
1
  import { DataContext, ThemeContext } from '@rspress/runtime';
4
2
  import { StaticRouter } from '@rspress/runtime/server';
3
+ import type { PageData } from '@rspress/shared';
4
+ import { renderToString } from 'react-dom/server';
5
5
  import { App, initPageData } from './App';
6
6
 
7
7
  const DEFAULT_THEME = 'light';