@rspress/plugin-preview 2.0.13 → 2.0.14

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +3 -1
  2. package/package.json +5 -5
package/dist/index.d.ts CHANGED
@@ -27,7 +27,7 @@ declare type IframeOptions = {
27
27
  export declare type Options = {
28
28
  /**
29
29
  * determine how to handle a internal code block without meta like \`\`\`tsx
30
- * @default 'preview'
30
+ * @default 'pure'
31
31
  */
32
32
  defaultRenderMode?: 'pure' | 'preview';
33
33
  /**
@@ -41,10 +41,12 @@ export declare type Options = {
41
41
  iframeOptions?: IframeOptions;
42
42
  /**
43
43
  * Supported languages to be previewed
44
+ * @default ['jsx', 'tsx']
44
45
  */
45
46
  previewLanguages?: string[];
46
47
  /**
47
48
  * Transform previewed code in custom way
49
+ * @default ({ code }) => code
48
50
  */
49
51
  previewCodeTransform?: (codeInfo: {
50
52
  language: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/plugin-preview",
3
- "version": "2.0.13",
3
+ "version": "2.0.14",
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": {
@@ -23,14 +23,14 @@
23
23
  "static"
24
24
  ],
25
25
  "dependencies": {
26
- "@rsbuild/core": "^2.0.7",
27
- "@rsbuild/plugin-babel": "~1.1.2",
28
- "@rsbuild/plugin-react": "~2.0.0",
26
+ "@rsbuild/core": "^2.0.9",
27
+ "@rsbuild/plugin-babel": "~1.2.1",
28
+ "@rsbuild/plugin-react": "~2.0.1",
29
29
  "picocolors": "^1.1.1",
30
30
  "qrcode.react": "^4.2.0"
31
31
  },
32
32
  "devDependencies": {
33
- "@rslib/core": "0.21.5",
33
+ "@rslib/core": "0.22.0",
34
34
  "@types/mdast": "^4.0.4",
35
35
  "@types/node": "^22.8.1",
36
36
  "@types/react": "^19.2.15",