@rspress/plugin-playground 2.0.0-rc.1 → 2.0.0-rc.3
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/cli/index.js +4 -4
- package/dist/web/index.js +2 -1
- package/package.json +8 -8
package/dist/cli/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { fileURLToPath as
|
|
2
|
-
import { dirname as
|
|
1
|
+
import { fileURLToPath as __rspack_fileURLToPath } from "node:url";
|
|
2
|
+
import { dirname as __rspack_dirname } from "node:path";
|
|
3
3
|
import node_fs from "node:fs";
|
|
4
4
|
import node_path, { join, resolve } from "node:path";
|
|
5
5
|
import { getNodeAttribute } from "@rspress/core";
|
|
@@ -82,7 +82,7 @@ const remarkPlugin = ({ getRouteMeta, editorPosition, defaultRenderMode })=>{
|
|
|
82
82
|
});
|
|
83
83
|
};
|
|
84
84
|
};
|
|
85
|
-
var cli_dirname =
|
|
85
|
+
var cli_dirname = __rspack_dirname(__rspack_fileURLToPath(import.meta.url));
|
|
86
86
|
const pkgRootPath = node_path.join(cli_dirname, '../../');
|
|
87
87
|
const staticPath = node_path.join(pkgRootPath, 'static');
|
|
88
88
|
let cli_routeMeta;
|
|
@@ -238,4 +238,4 @@ function pluginPlayground(options) {
|
|
|
238
238
|
globalStyles: node_path.join(staticPath, 'global-styles', 'web.css')
|
|
239
239
|
};
|
|
240
240
|
}
|
|
241
|
-
export {
|
|
241
|
+
export { cli_routeMeta as routeMeta, pluginPlayground };
|
package/dist/web/index.js
CHANGED
|
@@ -267,4 +267,5 @@ class Runner extends Component {
|
|
|
267
267
|
});
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
|
-
export {
|
|
270
|
+
export { default as MonacoEditor, loader as MonacoEditorLoader } from "@monaco-editor/react";
|
|
271
|
+
export { Editor, Runner };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspress/plugin-playground",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.3",
|
|
4
4
|
"description": "A plugin for rspress to preview the code block in markdown/mdx file.",
|
|
5
5
|
"bugs": "https://github.com/web-infra-dev/rspress/issues",
|
|
6
6
|
"repository": {
|
|
@@ -37,25 +37,25 @@
|
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@babel/types": "^7.28.5",
|
|
39
39
|
"@rsbuild/plugin-react": "~1.4.2",
|
|
40
|
-
"@rslib/core": "0.
|
|
40
|
+
"@rslib/core": "0.18.5",
|
|
41
41
|
"@types/babel__core": "^7.20.5",
|
|
42
42
|
"@types/babel__standalone": "^7.1.9",
|
|
43
43
|
"@types/babel__traverse": "^7.28.0",
|
|
44
44
|
"@types/mdast": "^4.0.4",
|
|
45
45
|
"@types/node": "^22.8.1",
|
|
46
|
-
"@types/react": "^19.2.
|
|
46
|
+
"@types/react": "^19.2.7",
|
|
47
47
|
"@types/react-dom": "^19.2.3",
|
|
48
48
|
"mdast-util-mdx-jsx": "^3.2.0",
|
|
49
|
-
"react": "^19.2.
|
|
50
|
-
"react-dom": "^19.2.
|
|
51
|
-
"react-router-dom": "^
|
|
49
|
+
"react": "^19.2.3",
|
|
50
|
+
"react-dom": "^19.2.3",
|
|
51
|
+
"react-router-dom": "^7.11.0",
|
|
52
52
|
"rsbuild-plugin-publint": "^0.3.3",
|
|
53
53
|
"typescript": "^5.8.2",
|
|
54
54
|
"unified": "^11.0.5",
|
|
55
|
-
"@rspress/plugin-playground": "2.0.0-rc.
|
|
55
|
+
"@rspress/plugin-playground": "2.0.0-rc.3"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@rspress/core": "^2.0.0-rc.
|
|
58
|
+
"@rspress/core": "^2.0.0-rc.3",
|
|
59
59
|
"react": ">=18.0.0",
|
|
60
60
|
"react-router-dom": "^6.8.1"
|
|
61
61
|
},
|