@rspress/shared 0.0.0-next-20240407073144 → 0.0.0-next-20240408090346
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 +4 -4
- package/package.json +14 -14
package/dist/index.d.ts
CHANGED
@@ -201,7 +201,6 @@ type Image = string | {
|
|
201
201
|
src: string;
|
202
202
|
alt?: string;
|
203
203
|
};
|
204
|
-
type OverViewDepth = 'h1' | 'h2';
|
205
204
|
interface Sidebar {
|
206
205
|
[path: string]: (SidebarGroup | SidebarItem | SidebarDivider | SidebarSectionHeader)[];
|
207
206
|
}
|
@@ -216,7 +215,7 @@ interface SidebarGroup {
|
|
216
215
|
* For hmr usage in development
|
217
216
|
*/
|
218
217
|
_fileKey?: string;
|
219
|
-
|
218
|
+
overviewHeaders?: number[];
|
220
219
|
}
|
221
220
|
type SidebarItem = {
|
222
221
|
text: string;
|
@@ -226,7 +225,7 @@ type SidebarItem = {
|
|
226
225
|
* For hmr usage in development
|
227
226
|
*/
|
228
227
|
_fileKey?: string;
|
229
|
-
|
228
|
+
overviewHeaders?: number[];
|
230
229
|
};
|
231
230
|
type SidebarDivider = {
|
232
231
|
dividerType: 'dashed' | 'solid';
|
@@ -618,6 +617,7 @@ interface FrontMatterMeta {
|
|
618
617
|
sidebar?: boolean;
|
619
618
|
outline?: boolean;
|
620
619
|
lineNumbers?: boolean;
|
620
|
+
overviewHeaders?: number;
|
621
621
|
}
|
622
622
|
interface PageData {
|
623
623
|
siteData: SiteData<Config$1>;
|
@@ -761,4 +761,4 @@ declare function removeBase(url: string, base: string): string;
|
|
761
761
|
declare function withoutHash(url: string): string;
|
762
762
|
declare const mergeDocConfig: (...configs: UserConfig[]) => UserConfig;
|
763
763
|
|
764
|
-
export { APPEARANCE_KEY, type AdditionalPage, type BaseRuntimePageInfo, type Config, DEFAULT_HIGHLIGHT_LANGUAGES, type Config$1 as DefaultThemeConfig, type DocFooter, type EditLink, type Feature, type Footer, type FrontMatterMeta, HASH_REGEXP, type Header, type Hero, type Image, type LocalSearchOptions, type Locale, type LocaleConfig, type LocaleLink, type LocaleLinks, MDX_REGEXP, type MarkdownOptions, type MdxRsOptions, type Nav, type NavItem, type NavItemWithChildren, type NavItemWithLink, type NavItemWithLinkAndChildren, type NormalizedConfig, type NormalizedConfig as NormalizedDefaultThemeConfig, type NormalizedLocales, type NormalizedSidebar, type NormalizedSidebarGroup, type
|
764
|
+
export { APPEARANCE_KEY, type AdditionalPage, type BaseRuntimePageInfo, type Config, DEFAULT_HIGHLIGHT_LANGUAGES, type Config$1 as DefaultThemeConfig, type DocFooter, type EditLink, type Feature, type Footer, type FrontMatterMeta, HASH_REGEXP, type Header, type Hero, type Image, type LocalSearchOptions, type Locale, type LocaleConfig, type LocaleLink, type LocaleLinks, MDX_REGEXP, type MarkdownOptions, type MdxRsOptions, type Nav, type NavItem, type NavItemWithChildren, type NavItemWithLink, type NavItemWithLinkAndChildren, type NormalizedConfig, type NormalizedConfig as NormalizedDefaultThemeConfig, type NormalizedLocales, type NormalizedSidebar, type NormalizedSidebarGroup, type PageData, type PageIndexInfo, type PageModule, type PageType, type RspressPlugin as Plugin, QUERY_REGEXP, RSPRESS_TEMP_DIR, type RemotePageInfo, type RemoteSearchIndexInfo, type RemoteSearchOptions, type ReplaceRule, type Route, type RouteMeta, type RouteOptions, type RspressPlugin, SEARCH_INDEX_NAME, type SearchHooks, type SearchOptions, type Sidebar, type SidebarDivider, type SidebarGroup, type SidebarItem, type SidebarSectionHeader, type SiteData, type SocialLink, type SocialLinkIcon, type UserConfig, addLeadingSlash, addTrailingSlash, cleanUrl, inBrowser, isDataUrl, isDebugMode, isExternalUrl, isProduction, isSCM, mergeDocConfig, normalizeHref, normalizePosixPath, normalizeSlash, omit, parseUrl, removeBase, removeHash, removeLeadingSlash, removeTrailingSlash, replaceLang, replaceVersion, slash, withBase, withoutBase, withoutHash, withoutLang };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@rspress/shared",
|
3
|
-
"version": "0.0.0-next-
|
3
|
+
"version": "0.0.0-next-20240408090346",
|
4
4
|
"types": "./dist/index.d.ts",
|
5
5
|
"main": "./dist/index.js",
|
6
6
|
"module": "./dist/index.mjs",
|
@@ -11,34 +11,34 @@
|
|
11
11
|
},
|
12
12
|
"exports": {
|
13
13
|
".": {
|
14
|
+
"types": "./dist/index.d.ts",
|
14
15
|
"import": "./dist/index.mjs",
|
15
|
-
"require": "./dist/index.js"
|
16
|
-
"types": "./dist/index.d.ts"
|
16
|
+
"require": "./dist/index.js"
|
17
17
|
},
|
18
18
|
"./execa": {
|
19
|
+
"types": "./dist/execa.d.ts",
|
19
20
|
"import": "./dist/execa.mjs",
|
20
|
-
"require": "./dist/execa.js"
|
21
|
-
"types": "./dist/execa.d.ts"
|
21
|
+
"require": "./dist/execa.js"
|
22
22
|
},
|
23
23
|
"./chalk": {
|
24
|
+
"types": "./dist/chalk.d.ts",
|
24
25
|
"import": "./dist/chalk.mjs",
|
25
|
-
"require": "./dist/chalk.js"
|
26
|
-
"types": "./dist/chalk.d.ts"
|
26
|
+
"require": "./dist/chalk.js"
|
27
27
|
},
|
28
28
|
"./fs-extra": {
|
29
|
+
"types": "./dist/fs-extra.d.ts",
|
29
30
|
"import": "./dist/fs-extra.mjs",
|
30
|
-
"require": "./dist/fs-extra.js"
|
31
|
-
"types": "./dist/fs-extra.d.ts"
|
31
|
+
"require": "./dist/fs-extra.js"
|
32
32
|
},
|
33
33
|
"./logger": {
|
34
|
+
"types": "./dist/logger.d.ts",
|
34
35
|
"import": "./dist/logger.mjs",
|
35
|
-
"require": "./dist/logger.js"
|
36
|
-
"types": "./dist/logger.d.ts"
|
36
|
+
"require": "./dist/logger.js"
|
37
37
|
},
|
38
38
|
"./node-utils": {
|
39
|
+
"types": "./dist/node-utils.d.ts",
|
39
40
|
"import": "./dist/node-utils.mjs",
|
40
|
-
"require": "./dist/node-utils.js"
|
41
|
-
"types": "./dist/node-utils.d.ts"
|
41
|
+
"require": "./dist/node-utils.js"
|
42
42
|
}
|
43
43
|
},
|
44
44
|
"dependencies": {
|
@@ -53,7 +53,7 @@
|
|
53
53
|
"lodash-es": "^4.17.21",
|
54
54
|
"@types/interpret": "^1.1.1",
|
55
55
|
"@types/jest": "~29.2.4",
|
56
|
-
"@types/lodash": "^4.
|
56
|
+
"@types/lodash": "^4.17.0",
|
57
57
|
"@types/lodash-es": "^4.17.8",
|
58
58
|
"@types/node": "~16.11.7",
|
59
59
|
"@types/react": "~18.0.26",
|