@rspress/plugin-api-docgen 1.43.0-canary-202503021900 → 1.43.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.
Files changed (2) hide show
  1. package/dist/index.js +2 -22
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -99,22 +99,6 @@ var __webpack_exports__ = {};
99
99
  type: 'Type',
100
100
  defaultValue: 'Default Value',
101
101
  overview: 'Overview'
102
- },
103
- ru: {
104
- copy: 'Копировать',
105
- copied: 'Скопировано успешно',
106
- expand: 'Развернуть код',
107
- collapse: 'Свернуть код',
108
- className: 'Имя класса узла',
109
- style: 'Стиль узла',
110
- children: 'Дочерние элементы',
111
- disabled: 'Отключено',
112
- required: 'Обязательно',
113
- property: 'Свойство',
114
- description: 'Описание',
115
- type: 'Тип',
116
- defaultValue: 'Значение по умолчанию',
117
- overview: 'Обзор'
118
102
  }
119
103
  };
120
104
  const isToolEntries = (obj)=>!!obj.documentation || !!obj["react-docgen-typescript"];
@@ -273,12 +257,8 @@ var __webpack_exports__ = {};
273
257
  async beforeBuild (config, isProd) {
274
258
  var _config_themeConfig_locales, _config_themeConfig, _config_locales;
275
259
  const languages = ((null === (_config_themeConfig = config.themeConfig) || void 0 === _config_themeConfig ? void 0 : null === (_config_themeConfig_locales = _config_themeConfig.locales) || void 0 === _config_themeConfig_locales ? void 0 : _config_themeConfig_locales.map((locale)=>locale.lang)) || (null === (_config_locales = config.locales) || void 0 === _config_locales ? void 0 : _config_locales.map((locale)=>locale.lang)) || [
276
- config.lang || 'en'
277
- ]).filter((lang)=>[
278
- 'zh',
279
- 'en',
280
- 'ru'
281
- ].includes(lang));
260
+ config.lang
261
+ ]).filter((lang)=>'zh' === lang || 'en' === lang);
282
262
  await docgen({
283
263
  entries,
284
264
  apiParseTool,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/plugin-api-docgen",
3
- "version": "1.43.0-canary-202503021900",
3
+ "version": "1.43.0",
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": {
@@ -23,7 +23,7 @@
23
23
  "react-docgen-typescript": "2.2.2",
24
24
  "react-markdown": "8.0.7",
25
25
  "remark-gfm": "3.0.1",
26
- "@rspress/shared": "1.43.0-canary-202503021900"
26
+ "@rspress/shared": "1.43.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@microsoft/api-extractor": "^7.49.2",
@@ -40,7 +40,7 @@
40
40
  "unist-util-visit": "^4.1.2"
41
41
  },
42
42
  "peerDependencies": {
43
- "@rspress/core": "^1.42.1",
43
+ "@rspress/core": "^1.43.0",
44
44
  "react": ">=17.0.0",
45
45
  "react-router-dom": "^6.8.1",
46
46
  "typescript": "^5.5.3"