@rspress/plugin-playground 1.26.2 → 1.27.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/web/esm/index.d.ts +3 -2
- package/package.json +9 -9
package/dist/web/esm/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EditorProps as EditorProps$1 } from '@monaco-editor/react';
|
|
2
2
|
export { default as MonacoEditor, loader as MonacoEditorLoader, EditorProps as MonacoEditorProps } from '@monaco-editor/react';
|
|
3
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
4
|
import React, { Component, HTMLAttributes } from 'react';
|
|
4
5
|
|
|
5
6
|
declare global {
|
|
@@ -7,7 +8,7 @@ declare global {
|
|
|
7
8
|
const __PLAYGROUND_MONACO_OPTIONS__: any;
|
|
8
9
|
}
|
|
9
10
|
type EditorProps = Partial<EditorProps$1>;
|
|
10
|
-
declare function Editor(props: EditorProps): JSX.Element;
|
|
11
|
+
declare function Editor(props: EditorProps): react_jsx_runtime.JSX.Element;
|
|
11
12
|
|
|
12
13
|
interface RunnerProps extends HTMLAttributes<HTMLDivElement> {
|
|
13
14
|
code: string;
|
|
@@ -30,7 +31,7 @@ declare class Runner extends Component<RunnerProps, RunnerState> {
|
|
|
30
31
|
componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
|
|
31
32
|
componentDidMount(): void;
|
|
32
33
|
componentDidUpdate(prevProps: RunnerProps): void;
|
|
33
|
-
render(): JSX.Element;
|
|
34
|
+
render(): react_jsx_runtime.JSX.Element;
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
export { Editor, Runner };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspress/plugin-playground",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.27.0",
|
|
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": {
|
|
@@ -33,27 +33,27 @@
|
|
|
33
33
|
"@oxidation-compiler/napi": "^0.2.0",
|
|
34
34
|
"remark-gfm": "3.0.1",
|
|
35
35
|
"rspack-plugin-virtual-module": "0.1.12",
|
|
36
|
-
"@rspress/shared": "1.
|
|
36
|
+
"@rspress/shared": "1.27.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@babel/types": "^7.
|
|
39
|
+
"@babel/types": "^7.25.0",
|
|
40
40
|
"@types/babel__core": "^7.20.1",
|
|
41
41
|
"@types/babel__standalone": "^7.1.4",
|
|
42
42
|
"@types/babel__traverse": "^7.20.1",
|
|
43
43
|
"@types/mdast": "^3.0.10",
|
|
44
44
|
"@types/node": "^18.11.17",
|
|
45
|
-
"@types/react": "^18",
|
|
46
|
-
"@types/react-dom": "^18",
|
|
45
|
+
"@types/react": "^18.3.3",
|
|
46
|
+
"@types/react-dom": "^18.3.0",
|
|
47
47
|
"mdast-util-mdxjs-esm": "^1.3.0",
|
|
48
|
-
"react": "^18.
|
|
49
|
-
"react-dom": "^18.
|
|
48
|
+
"react": "^18.3.1",
|
|
49
|
+
"react-dom": "^18.3.1",
|
|
50
50
|
"react-router-dom": "^6.8.1",
|
|
51
|
-
"typescript": "^5",
|
|
51
|
+
"typescript": "^5.5.3",
|
|
52
52
|
"unified": "^10.1.2",
|
|
53
53
|
"unist-util-visit": "^4.1.1"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@rspress/core": "^1.0
|
|
56
|
+
"@rspress/core": "^1.27.0",
|
|
57
57
|
"react": ">=17.0.0",
|
|
58
58
|
"react-router-dom": "^6.8.1"
|
|
59
59
|
},
|