@vuepress/theme-default 2.0.0-rc.49 → 2.0.0-rc.52
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/lib/client/index.d.ts +1 -1
- package/lib/client/index.js +0 -1
- package/lib/client/styles/plugins.scss +8 -0
- package/lib/node/defaultTheme.js +0 -2
- package/lib/node/index.d.ts +1 -1
- package/lib/node/index.js +0 -1
- package/lib/shared/index.d.ts +5 -5
- package/lib/shared/index.js +1 -5
- package/lib/shared/page.d.ts +5 -4
- package/package.json +19 -19
package/lib/client/index.d.ts
CHANGED
package/lib/client/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use 'mixins';
|
|
2
|
+
@import 'variables';
|
|
2
3
|
|
|
3
4
|
// plugin-comment
|
|
4
5
|
.vp-comment {
|
|
@@ -18,3 +19,10 @@
|
|
|
18
19
|
flex: 0 0 auto;
|
|
19
20
|
}
|
|
20
21
|
}
|
|
22
|
+
|
|
23
|
+
// plugin-markdown-hint
|
|
24
|
+
.hint-container {
|
|
25
|
+
@media screen and (max-width: $MQMobile) {
|
|
26
|
+
margin-inline: -0.75rem;
|
|
27
|
+
}
|
|
28
|
+
}
|
package/lib/node/defaultTheme.js
CHANGED
|
@@ -81,8 +81,6 @@ export const defaultTheme = ({ hostname, themePlugins = {}, ...localeOptions } =
|
|
|
81
81
|
// @vuepress/plugin-active-header-link
|
|
82
82
|
themePlugins.activeHeaderLinks !== false
|
|
83
83
|
? activeHeaderLinksPlugin({
|
|
84
|
-
headerLinkSelector: 'a.vp-sidebar-item',
|
|
85
|
-
headerAnchorSelector: '.header-anchor',
|
|
86
84
|
// should greater than page transition duration
|
|
87
85
|
delay: 300,
|
|
88
86
|
})
|
package/lib/node/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defaultTheme } from './defaultTheme.js';
|
|
2
2
|
export * from './defaultTheme.js';
|
|
3
|
-
export * from './typings.js';
|
|
3
|
+
export type * from './typings.js';
|
|
4
4
|
export * from './utils/index.js';
|
|
5
5
|
export type * from '../shared/index.js';
|
|
6
6
|
/** @deprecated Use named export instead */
|
package/lib/node/index.js
CHANGED
package/lib/shared/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './nav.js';
|
|
2
|
-
export * from './navbar.js';
|
|
3
|
-
export * from './options.js';
|
|
4
|
-
export * from './page.js';
|
|
5
|
-
export * from './sidebar.js';
|
|
1
|
+
export type * from './nav.js';
|
|
2
|
+
export type * from './navbar.js';
|
|
3
|
+
export type * from './options.js';
|
|
4
|
+
export type * from './page.js';
|
|
5
|
+
export type * from './sidebar.js';
|
package/lib/shared/index.js
CHANGED
package/lib/shared/page.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { GitPluginPageData } from '@vuepress/plugin-git';
|
|
2
|
-
import type {
|
|
2
|
+
import type { PageFrontmatter } from 'vuepress/shared';
|
|
3
|
+
import type { AutoLinkOptions } from './nav.js';
|
|
3
4
|
import type { SidebarArrayOptions } from './sidebar.js';
|
|
4
5
|
export interface DefaultThemePageData extends Partial<GitPluginPageData> {
|
|
5
6
|
filePathRelative: string | null;
|
|
6
7
|
}
|
|
7
|
-
export interface DefaultThemePageFrontmatter {
|
|
8
|
+
export interface DefaultThemePageFrontmatter extends PageFrontmatter {
|
|
8
9
|
home?: boolean;
|
|
9
10
|
navbar?: boolean;
|
|
10
11
|
pageClass?: string;
|
|
@@ -38,6 +39,6 @@ export interface DefaultThemeNormalPageFrontmatter extends DefaultThemePageFront
|
|
|
38
39
|
contributors?: boolean;
|
|
39
40
|
sidebar?: SidebarArrayOptions | 'heading' | false;
|
|
40
41
|
sidebarDepth?: number;
|
|
41
|
-
prev?:
|
|
42
|
-
next?:
|
|
42
|
+
prev?: AutoLinkOptions | string;
|
|
43
|
+
next?: AutoLinkOptions | string;
|
|
43
44
|
}
|
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.52",
|
|
4
4
|
"description": "Default theme of VuePress",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vuepress-theme",
|
|
@@ -37,29 +37,29 @@
|
|
|
37
37
|
"templates"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@vuepress/helper": "2.0.0-rc.
|
|
41
|
-
"@vuepress/plugin-active-header-links": "2.0.0-rc.
|
|
42
|
-
"@vuepress/plugin-back-to-top": "2.0.0-rc.
|
|
43
|
-
"@vuepress/plugin-copy-code": "2.0.0-rc.
|
|
44
|
-
"@vuepress/plugin-git": "2.0.0-rc.
|
|
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.
|
|
54
|
-
"@vuepress/plugin-theme-data": "2.0.0-rc.
|
|
40
|
+
"@vuepress/helper": "2.0.0-rc.52",
|
|
41
|
+
"@vuepress/plugin-active-header-links": "2.0.0-rc.52",
|
|
42
|
+
"@vuepress/plugin-back-to-top": "2.0.0-rc.52",
|
|
43
|
+
"@vuepress/plugin-copy-code": "2.0.0-rc.52",
|
|
44
|
+
"@vuepress/plugin-git": "2.0.0-rc.52",
|
|
45
|
+
"@vuepress/plugin-links-check": "2.0.0-rc.52",
|
|
46
|
+
"@vuepress/plugin-markdown-hint": "2.0.0-rc.52",
|
|
47
|
+
"@vuepress/plugin-markdown-tab": "2.0.0-rc.52",
|
|
48
|
+
"@vuepress/plugin-medium-zoom": "2.0.0-rc.52",
|
|
49
|
+
"@vuepress/plugin-nprogress": "2.0.0-rc.52",
|
|
50
|
+
"@vuepress/plugin-palette": "2.0.0-rc.52",
|
|
51
|
+
"@vuepress/plugin-prismjs": "2.0.0-rc.52",
|
|
52
|
+
"@vuepress/plugin-seo": "2.0.0-rc.52",
|
|
53
|
+
"@vuepress/plugin-sitemap": "2.0.0-rc.52",
|
|
54
|
+
"@vuepress/plugin-theme-data": "2.0.0-rc.52",
|
|
55
55
|
"@vueuse/core": "^11.1.0",
|
|
56
|
-
"vue": "^3.5.
|
|
56
|
+
"vue": "^3.5.10"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"sass": "^1.79.2",
|
|
60
60
|
"sass-embedded": "^1.79.2",
|
|
61
61
|
"sass-loader": "^16.0.1",
|
|
62
|
-
"vuepress": "2.0.0-rc.
|
|
62
|
+
"vuepress": "2.0.0-rc.17"
|
|
63
63
|
},
|
|
64
64
|
"peerDependenciesMeta": {
|
|
65
65
|
"sass": {
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"publishConfig": {
|
|
76
76
|
"access": "public"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "0c0a6501082d7abdbfc4a3e4b6de48d902011c07"
|
|
79
79
|
}
|