@rspress/plugin-api-docgen 2.0.0-beta.21 → 2.0.0-beta.22
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/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.d.ts +1 -1
- package/package.json +3 -3
- package/static/global-components/API.tsx +1 -1
package/dist/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { CompilerOptions } from 'typescript';
|
2
2
|
import type { ParserOptions } from 'react-docgen-typescript';
|
3
|
-
import type { RspressPlugin } from 'rspress/core';
|
3
|
+
import type { RspressPlugin } from '@rspress/core';
|
4
4
|
|
5
5
|
declare type ApiParseTool = 'documentation' | 'react-docgen-typescript';
|
6
6
|
|
package/dist/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import node_fs from "node:fs";
|
2
2
|
import node_path from "node:path";
|
3
|
-
import { RSPRESS_TEMP_DIR, logger } from "rspress/core";
|
3
|
+
import { RSPRESS_TEMP_DIR, logger } from "@rspress/core";
|
4
4
|
import chokidar from "chokidar";
|
5
5
|
import { withCompilerOptions, withCustomConfig, withDefaultConfig } from "react-docgen-typescript";
|
6
6
|
node_path.join(__dirname, '..');
|
package/index.d.ts
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@rspress/plugin-api-docgen",
|
3
|
-
"version": "2.0.0-beta.
|
3
|
+
"version": "2.0.0-beta.22",
|
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": {
|
@@ -34,7 +34,7 @@
|
|
34
34
|
},
|
35
35
|
"devDependencies": {
|
36
36
|
"@microsoft/api-extractor": "^7.52.8",
|
37
|
-
"@rslib/core": "0.10.
|
37
|
+
"@rslib/core": "0.10.6",
|
38
38
|
"@types/hast": "^3.0.4",
|
39
39
|
"@types/mdast": "^4.0.4",
|
40
40
|
"@types/node": "^22.8.1",
|
@@ -47,7 +47,7 @@
|
|
47
47
|
"typescript": "^5.8.2"
|
48
48
|
},
|
49
49
|
"peerDependencies": {
|
50
|
-
"rspress": "^2.0.0-beta.
|
50
|
+
"@rspress/core": "^2.0.0-beta.22",
|
51
51
|
"typescript": "^5.8.2"
|
52
52
|
},
|
53
53
|
"peerDependenciesMeta": {
|
@@ -1,10 +1,10 @@
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
2
2
|
|
3
|
+
import { useLang, usePageData } from '@rspress/core/runtime';
|
3
4
|
// @ts-ignore @theme is overridden by alias in @rspress/core
|
4
5
|
import { getCustomMDXComponent } from '@theme';
|
5
6
|
import ReactMarkdown from 'react-markdown';
|
6
7
|
import remarkGfm from 'remark-gfm';
|
7
|
-
import { useLang, usePageData } from 'rspress/runtime';
|
8
8
|
import './API.css';
|
9
9
|
import GithubSlugger from 'github-slugger';
|
10
10
|
import type { Content, Element, Root } from 'hast';
|