@vuepress/theme-default 2.0.0-rc.72 → 2.0.0-rc.73
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { HeaderItem } from '@vuepress/helper/client';
|
|
2
2
|
import type { InjectionKey, Ref } from 'vue';
|
|
3
|
-
export type HeadersRef = Ref<
|
|
3
|
+
export type HeadersRef = Ref<HeaderItem[]>;
|
|
4
4
|
export declare const headersSymbol: InjectionKey<HeadersRef>;
|
|
5
5
|
/**
|
|
6
6
|
* Inject headers
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { HeaderItem } from '@vuepress/helper/client';
|
|
2
2
|
import type { ComputedRef, InjectionKey } from 'vue';
|
|
3
3
|
import type { PageData } from 'vuepress/client';
|
|
4
4
|
import type { SidebarArrayOptions, SidebarObjectOptions, SidebarOptions } from '../../shared/index.js';
|
|
@@ -6,20 +6,20 @@ import type { SidebarHeaderItem, SidebarItem } from '../typings.js';
|
|
|
6
6
|
/**
|
|
7
7
|
* Util to transform page header to sidebar item
|
|
8
8
|
*/
|
|
9
|
-
export declare const resolveSidebarHeaderItem: (header:
|
|
10
|
-
export declare const resolveSidebarHeaderItems: (headers?:
|
|
9
|
+
export declare const resolveSidebarHeaderItem: (header: HeaderItem) => SidebarHeaderItem;
|
|
10
|
+
export declare const resolveSidebarHeaderItems: (headers?: HeaderItem[]) => SidebarHeaderItem[];
|
|
11
11
|
/**
|
|
12
12
|
* Resolve current page and its header to sidebar items if the config is `heading`
|
|
13
13
|
*/
|
|
14
|
-
export declare const resolveSidebarHeadingItem: (page: PageData, headers:
|
|
14
|
+
export declare const resolveSidebarHeadingItem: (page: PageData, headers: HeaderItem[]) => SidebarItem[];
|
|
15
15
|
/**
|
|
16
16
|
* Resolve sidebar items if the config is an array
|
|
17
17
|
*/
|
|
18
|
-
export declare const resolveArraySidebarItems: (sidebarConfig: SidebarArrayOptions, headers:
|
|
18
|
+
export declare const resolveArraySidebarItems: (sidebarConfig: SidebarArrayOptions, headers: HeaderItem[], path: string, prefix?: string) => SidebarItem[];
|
|
19
19
|
/**
|
|
20
20
|
* Resolve sidebar items if the config is a key -> value (path-prefix -> array) object
|
|
21
21
|
*/
|
|
22
|
-
export declare const resolveMultiSidebarItems: (sidebarConfig: SidebarObjectOptions, page: PageData, headers:
|
|
22
|
+
export declare const resolveMultiSidebarItems: (sidebarConfig: SidebarObjectOptions, page: PageData, headers: HeaderItem[], path: string) => SidebarItem[];
|
|
23
23
|
export type SidebarItemsRef = ComputedRef<SidebarItem[]>;
|
|
24
24
|
export declare const sidebarItemsSymbol: InjectionKey<SidebarItemsRef>;
|
|
25
25
|
/**
|
|
@@ -31,7 +31,7 @@ export declare const useSidebarItems: () => SidebarItemsRef;
|
|
|
31
31
|
*
|
|
32
32
|
* It should only be resolved and provided once
|
|
33
33
|
*/
|
|
34
|
-
export declare const resolveSidebarItems: (sidebarConfig: SidebarOptions | false, page: PageData, path: string, routeLocale: string, headers:
|
|
34
|
+
export declare const resolveSidebarItems: (sidebarConfig: SidebarOptions | false, page: PageData, path: string, routeLocale: string, headers: HeaderItem[]) => SidebarItem[];
|
|
35
35
|
/**
|
|
36
36
|
* Create sidebar items ref and provide as global computed in setup
|
|
37
37
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuepress/theme-default",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.73",
|
|
4
4
|
"description": "Default theme of VuePress",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vuepress-theme",
|
|
@@ -37,20 +37,20 @@
|
|
|
37
37
|
"templates"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@vuepress/helper": "2.0.0-rc.
|
|
40
|
+
"@vuepress/helper": "2.0.0-rc.73",
|
|
41
41
|
"@vuepress/plugin-active-header-links": "2.0.0-rc.70",
|
|
42
|
-
"@vuepress/plugin-back-to-top": "2.0.0-rc.
|
|
43
|
-
"@vuepress/plugin-copy-code": "2.0.0-rc.
|
|
42
|
+
"@vuepress/plugin-back-to-top": "2.0.0-rc.73",
|
|
43
|
+
"@vuepress/plugin-copy-code": "2.0.0-rc.73",
|
|
44
44
|
"@vuepress/plugin-git": "2.0.0-rc.68",
|
|
45
|
-
"@vuepress/plugin-links-check": "2.0.0-rc.
|
|
46
|
-
"@vuepress/plugin-markdown-hint": "2.0.0-rc.
|
|
47
|
-
"@vuepress/plugin-markdown-tab": "2.0.0-rc.
|
|
48
|
-
"@vuepress/plugin-medium-zoom": "2.0.0-rc.
|
|
49
|
-
"@vuepress/plugin-nprogress": "2.0.0-rc.
|
|
50
|
-
"@vuepress/plugin-palette": "2.0.0-rc.
|
|
51
|
-
"@vuepress/plugin-prismjs": "2.0.0-rc.
|
|
52
|
-
"@vuepress/plugin-seo": "2.0.0-rc.
|
|
53
|
-
"@vuepress/plugin-sitemap": "2.0.0-rc.
|
|
45
|
+
"@vuepress/plugin-links-check": "2.0.0-rc.73",
|
|
46
|
+
"@vuepress/plugin-markdown-hint": "2.0.0-rc.73",
|
|
47
|
+
"@vuepress/plugin-markdown-tab": "2.0.0-rc.73",
|
|
48
|
+
"@vuepress/plugin-medium-zoom": "2.0.0-rc.73",
|
|
49
|
+
"@vuepress/plugin-nprogress": "2.0.0-rc.73",
|
|
50
|
+
"@vuepress/plugin-palette": "2.0.0-rc.73",
|
|
51
|
+
"@vuepress/plugin-prismjs": "2.0.0-rc.73",
|
|
52
|
+
"@vuepress/plugin-seo": "2.0.0-rc.73",
|
|
53
|
+
"@vuepress/plugin-sitemap": "2.0.0-rc.73",
|
|
54
54
|
"@vuepress/plugin-theme-data": "2.0.0-rc.70",
|
|
55
55
|
"@vueuse/core": "^12.4.0",
|
|
56
56
|
"vue": "^3.5.13"
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"publishConfig": {
|
|
76
76
|
"access": "public"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "b66125e05a01e5e97aa1c0f8d901322c55d0bfa2"
|
|
79
79
|
}
|