@rspress/plugin-playground 2.0.0-beta.10 → 2.0.0-beta.11

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.
@@ -1,13 +1,13 @@
1
1
  import { Component } from 'react';
2
2
  import { HTMLAttributes } from 'react';
3
- import { JSX as JSX_2 } from 'react/jsx-runtime';
3
+ import { JSX } from 'react/jsx-runtime';
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';
7
7
  import { default as React_2 } from 'react';
8
8
  import { ReactElement } from 'react';
9
9
 
10
- export declare function Editor(props: EditorProps): JSX_2.Element;
10
+ export declare function Editor(props: EditorProps): JSX.Element;
11
11
 
12
12
  declare type EditorProps = Partial<MonacoEditorProps>;
13
13
 
@@ -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_2.Element;
32
+ render(): 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.0-beta.10",
3
+ "version": "2.0.0-beta.11",
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,7 +33,7 @@
33
33
  "remark-gfm": "^4.0.1",
34
34
  "rspack-plugin-virtual-module": "1.0.1",
35
35
  "unist-util-visit": "^5.0.0",
36
- "@rspress/shared": "2.0.0-beta.10"
36
+ "@rspress/shared": "2.0.0-beta.11"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@babel/types": "^7.27.1",
@@ -44,8 +44,8 @@
44
44
  "@types/babel__traverse": "^7.20.7",
45
45
  "@types/mdast": "^4.0.4",
46
46
  "@types/node": "^22.8.1",
47
- "@types/react": "^18.3.22",
48
- "@types/react-dom": "^18.3.7",
47
+ "@types/react": "^19.1.6",
48
+ "@types/react-dom": "^19.1.6",
49
49
  "mdast-util-mdx-jsx": "^3.2.0",
50
50
  "react": "^19.1.0",
51
51
  "react-dom": "^19.1.0",
@@ -53,10 +53,10 @@
53
53
  "rsbuild-plugin-publint": "^0.3.2",
54
54
  "typescript": "^5.8.2",
55
55
  "unified": "^11.0.5",
56
- "@rspress/plugin-playground": "2.0.0-beta.10"
56
+ "@rspress/plugin-playground": "2.0.0-beta.11"
57
57
  },
58
58
  "peerDependencies": {
59
- "@rspress/core": "^2.0.0-beta.10",
59
+ "@rspress/core": "^2.0.0-beta.11",
60
60
  "react": ">=18.0.0",
61
61
  "react-router-dom": "^6.8.1"
62
62
  },