@rspress/plugin-api-docgen 2.0.10 → 2.0.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspress/plugin-api-docgen",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.11",
|
|
4
4
|
"description": "A plugin for rspress to generate api doc.",
|
|
5
5
|
"bugs": "https://github.com/web-infra-dev/rspress/issues",
|
|
6
6
|
"repository": {
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@microsoft/api-extractor": "^7.57.7",
|
|
35
|
-
"@rslib/core": "0.21.
|
|
35
|
+
"@rslib/core": "0.21.4",
|
|
36
36
|
"@types/hast": "^3.0.4",
|
|
37
37
|
"@types/mdast": "^4.0.4",
|
|
38
38
|
"@types/node": "^22.8.1",
|
|
39
39
|
"@types/react": "^19.2.14",
|
|
40
40
|
"@types/react-dom": "^19.2.3",
|
|
41
|
-
"react": "^19.2.
|
|
42
|
-
"react-dom": "^19.2.
|
|
43
|
-
"react-router-dom": "^7.
|
|
41
|
+
"react": "^19.2.6",
|
|
42
|
+
"react-dom": "^19.2.6",
|
|
43
|
+
"react-router-dom": "^7.15.0",
|
|
44
44
|
"rsbuild-plugin-publint": "^0.3.4",
|
|
45
45
|
"rsbuild-plugin-virtual-module": "0.4.2",
|
|
46
46
|
"typescript": "^5.8.2"
|
|
@@ -4,10 +4,9 @@ import { getCustomMDXComponent } from '@theme';
|
|
|
4
4
|
import GithubSlugger from 'github-slugger';
|
|
5
5
|
import type { Content, Element, Root } from 'hast';
|
|
6
6
|
import ReactMarkdown from 'react-markdown';
|
|
7
|
+
import type { ElementType } from 'react';
|
|
7
8
|
import remarkGfm from 'remark-gfm';
|
|
8
9
|
import './API.css';
|
|
9
|
-
// biome-ignore lint/style/useImportType: <exact>
|
|
10
|
-
import React from 'react';
|
|
11
10
|
// @ts-expect-error virtual module
|
|
12
11
|
import apiDocMap from 'rspress-plugin-api-docgen-map';
|
|
13
12
|
import type { Plugin } from 'unified';
|
|
@@ -107,9 +106,7 @@ const API = (props: { moduleName: string }) => {
|
|
|
107
106
|
<ReactMarkdown
|
|
108
107
|
remarkPlugins={[[remarkGfm]]}
|
|
109
108
|
rehypePlugins={[[rehypeHeaderAnchor]]}
|
|
110
|
-
components={
|
|
111
|
-
getCustomMDXComponent() as Record<string, React.ElementType>
|
|
112
|
-
}
|
|
109
|
+
components={getCustomMDXComponent() as Record<string, ElementType>}
|
|
113
110
|
skipHtml={true}
|
|
114
111
|
>
|
|
115
112
|
{apiDoc}
|