@rspress/plugin-playground 2.0.14 → 2.0.16
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 +6 -2
- package/dist/web/index.d.ts +2 -2
- package/package.json +7 -7
package/dist/cli/index.js
CHANGED
|
@@ -159,8 +159,12 @@ function pluginPlayground(options) {
|
|
|
159
159
|
}
|
|
160
160
|
});
|
|
161
161
|
} catch (e) {
|
|
162
|
-
|
|
163
|
-
|
|
162
|
+
const message = `[Playground]: Failed to parse ${filepath}.`;
|
|
163
|
+
if (e instanceof Error) {
|
|
164
|
+
e.message = `${message}\n${e.message}`;
|
|
165
|
+
throw e;
|
|
166
|
+
}
|
|
167
|
+
throw new Error(`${message}\n${String(e)}`);
|
|
164
168
|
}
|
|
165
169
|
}));
|
|
166
170
|
if (include) include.forEach((item)=>{
|
package/dist/web/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
2
|
import { HTMLAttributes } from 'react';
|
|
3
|
-
import { JSX } from 'react
|
|
3
|
+
import { JSX } from 'react';
|
|
4
4
|
import { default as MonacoEditor } from '@monaco-editor/react';
|
|
5
5
|
import { loader as MonacoEditorLoader } from '@monaco-editor/react';
|
|
6
6
|
import { EditorProps as MonacoEditorProps } from '@monaco-editor/react';
|
|
@@ -29,7 +29,7 @@ export declare class Runner extends Component<RunnerProps, RunnerState> {
|
|
|
29
29
|
componentDidCatch(error: Error, errorInfo: React_2.ErrorInfo): void;
|
|
30
30
|
componentDidMount(): void;
|
|
31
31
|
componentDidUpdate(prevProps: RunnerProps): void;
|
|
32
|
-
render(): JSX.Element;
|
|
32
|
+
render(): React_2.JSX.Element;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
declare interface RunnerProps extends HTMLAttributes<HTMLDivElement> {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspress/plugin-playground",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.16",
|
|
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,21 +37,21 @@
|
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@babel/types": "^7.29.7",
|
|
39
39
|
"@rsbuild/plugin-react": "~2.0.1",
|
|
40
|
-
"@rslib/core": "0.
|
|
40
|
+
"@rslib/core": "0.23.0",
|
|
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.17",
|
|
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
|
-
"rsbuild-plugin-publint": "^0.
|
|
49
|
+
"react": "^19.2.7",
|
|
50
|
+
"react-dom": "^19.2.7",
|
|
51
|
+
"rsbuild-plugin-publint": "^1.0.0",
|
|
52
52
|
"typescript": "^6.0.3",
|
|
53
53
|
"unified": "^11.0.5",
|
|
54
|
-
"@rspress/plugin-playground": "2.0.
|
|
54
|
+
"@rspress/plugin-playground": "2.0.16"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"@rspress/core": "^2.0.10",
|