@rspress/shared 1.39.3 → 1.40.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.
@@ -48,7 +48,7 @@ interface ZoomContainer {
|
|
48
48
|
}
|
49
49
|
|
50
50
|
/**
|
51
|
-
* There are two ways to define what
|
51
|
+
* There are two ways to define what addition routes represent.
|
52
52
|
* 1. Define filepath, then the content will be read from the file.
|
53
53
|
* 2. Define content, then then content will be written to temp file and read from it.
|
54
54
|
*/
|
@@ -567,6 +567,23 @@ interface UserConfig<ThemeConfig = Config$1> {
|
|
567
567
|
*/
|
568
568
|
versions: string[];
|
569
569
|
};
|
570
|
+
/**
|
571
|
+
* Language parity checking config
|
572
|
+
*/
|
573
|
+
languageParity?: {
|
574
|
+
/**
|
575
|
+
* Whether to enable language parity checking
|
576
|
+
*/
|
577
|
+
enabled: boolean;
|
578
|
+
/**
|
579
|
+
* Directories to include in the parity check
|
580
|
+
*/
|
581
|
+
include: string[];
|
582
|
+
/**
|
583
|
+
* Directories to exclude from the parity check
|
584
|
+
*/
|
585
|
+
exclude: string[];
|
586
|
+
};
|
570
587
|
}
|
571
588
|
type RemoveUnderscoreProps<T> = {
|
572
589
|
[K in keyof T as K extends `_${string}` ? never : K]: T[K];
|
package/dist/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { A as AdditionalPage, B as BaseRuntimePageInfo, r as Config, C as DefaultThemeConfig, O as DocFooter, K as EditLink, F as Feature, t as FilterConfig, V as Footer, i as FrontMatterMeta, H as Header, f as Hero, I as Image, m as LocalSearchOptions, L as Locale, s as LocaleConfig, X as LocaleLink, W as LocaleLinks, q as MarkdownOptions, M as MdxRsOptions, u as Nav, v as NavItem, x as NavItemWithChildren, w as NavItemWithLink, y as NavItemWithLinkAndChildren, N as NormalizedConfig, N as NormalizedDefaultThemeConfig, _ as NormalizedLocales, Z as NormalizedSidebar, Y as NormalizedSidebarGroup, j as PageData, P as PageIndexInfo, g as PageModule, h as PageType, R as Plugin, e as RemotePageInfo, n as RemoteSearchIndexInfo, o as RemoteSearchOptions, c as ReplaceRule, a as Route, b as RouteMeta, k as RouteOptions, R as RspressPlugin, S as SSGConfig, l as SearchHooks, p as SearchOptions, z as Sidebar, G as SidebarDivider, D as SidebarGroup, E as SidebarItem, J as SidebarSectionHeader, d as SiteData, Q as SocialLink, T as SocialLinkIcon, U as UserConfig } from './index-
|
1
|
+
export { A as AdditionalPage, B as BaseRuntimePageInfo, r as Config, C as DefaultThemeConfig, O as DocFooter, K as EditLink, F as Feature, t as FilterConfig, V as Footer, i as FrontMatterMeta, H as Header, f as Hero, I as Image, m as LocalSearchOptions, L as Locale, s as LocaleConfig, X as LocaleLink, W as LocaleLinks, q as MarkdownOptions, M as MdxRsOptions, u as Nav, v as NavItem, x as NavItemWithChildren, w as NavItemWithLink, y as NavItemWithLinkAndChildren, N as NormalizedConfig, N as NormalizedDefaultThemeConfig, _ as NormalizedLocales, Z as NormalizedSidebar, Y as NormalizedSidebarGroup, j as PageData, P as PageIndexInfo, g as PageModule, h as PageType, R as Plugin, e as RemotePageInfo, n as RemoteSearchIndexInfo, o as RemoteSearchOptions, c as ReplaceRule, a as Route, b as RouteMeta, k as RouteOptions, R as RspressPlugin, S as SSGConfig, l as SearchHooks, p as SearchOptions, z as Sidebar, G as SidebarDivider, D as SidebarGroup, E as SidebarItem, J as SidebarSectionHeader, d as SiteData, Q as SocialLink, T as SocialLinkIcon, U as UserConfig } from './index-702898a3.js';
|
2
2
|
import '@rsbuild/core';
|
3
3
|
import 'unified';
|
4
4
|
|
package/dist/node-utils.d.ts
CHANGED
package/package.json
CHANGED
@@ -1,14 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@rspress/shared",
|
3
|
-
"version": "1.
|
4
|
-
"types": "./dist/index.d.ts",
|
5
|
-
"main": "./dist/index.js",
|
6
|
-
"module": "./dist/index.mjs",
|
3
|
+
"version": "1.40.0",
|
7
4
|
"repository": {
|
8
5
|
"type": "git",
|
9
6
|
"url": "https://github.com/web-infra-dev/rspress",
|
10
7
|
"directory": "packages/shared"
|
11
8
|
},
|
9
|
+
"license": "MIT",
|
12
10
|
"exports": {
|
13
11
|
".": {
|
14
12
|
"types": "./dist/index.d.ts",
|
@@ -41,8 +39,14 @@
|
|
41
39
|
"require": "./dist/node-utils.js"
|
42
40
|
}
|
43
41
|
},
|
42
|
+
"main": "./dist/index.js",
|
43
|
+
"module": "./dist/index.mjs",
|
44
|
+
"types": "./dist/index.d.ts",
|
45
|
+
"files": [
|
46
|
+
"dist"
|
47
|
+
],
|
44
48
|
"dependencies": {
|
45
|
-
"@rsbuild/core": "~1.1.
|
49
|
+
"@rsbuild/core": "~1.1.13",
|
46
50
|
"chalk": "5.4.1",
|
47
51
|
"execa": "5.1.1",
|
48
52
|
"fs-extra": "11.2.0",
|
@@ -60,23 +64,18 @@
|
|
60
64
|
"rimraf": "^3.0.2",
|
61
65
|
"typescript": "^5.5.3"
|
62
66
|
},
|
63
|
-
"sideEffects": [],
|
64
67
|
"publishConfig": {
|
65
68
|
"access": "public",
|
66
69
|
"provenance": true,
|
67
70
|
"registry": "https://registry.npmjs.org/"
|
68
71
|
},
|
69
|
-
"license": "MIT",
|
70
|
-
"files": [
|
71
|
-
"dist"
|
72
|
-
],
|
73
72
|
"scripts": {
|
74
|
-
"dev": "modern build -w",
|
75
73
|
"build": "modern build",
|
76
74
|
"build:watch": "modern build -w",
|
77
|
-
"
|
78
|
-
"reset": "rimraf ./**/node_modules",
|
75
|
+
"dev": "modern build -w",
|
79
76
|
"new": "modern new",
|
77
|
+
"reset": "rimraf ./**/node_modules",
|
78
|
+
"test": "vitest run",
|
80
79
|
"upgrade": "modern upgrade"
|
81
80
|
}
|
82
81
|
}
|