@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.
@@ -1,4 +1,4 @@
1
1
  export * from './composables/index.js';
2
- export * from './typings.js';
2
+ export type * from './typings.js';
3
3
  export * from './utils/index.js';
4
4
  export type * from '../shared/index.js';
@@ -1,3 +1,2 @@
1
1
  export * from './composables/index.js';
2
- export * from './typings.js';
3
2
  export * from './utils/index.js';
@@ -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
+ }
@@ -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
  })
@@ -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
@@ -1,6 +1,5 @@
1
1
  import { defaultTheme } from './defaultTheme.js';
2
2
  export * from './defaultTheme.js';
3
- export * from './typings.js';
4
3
  export * from './utils/index.js';
5
4
  /** @deprecated Use named export instead */
6
5
  export default defaultTheme;
@@ -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';
@@ -1,5 +1 @@
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 {};
@@ -1,10 +1,11 @@
1
1
  import type { GitPluginPageData } from '@vuepress/plugin-git';
2
- import type { AutoLinkConfig } from 'vuepress/client';
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?: AutoLinkConfig | string;
42
- next?: AutoLinkConfig | string;
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.49",
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.47",
41
- "@vuepress/plugin-active-header-links": "2.0.0-rc.47",
42
- "@vuepress/plugin-back-to-top": "2.0.0-rc.47",
43
- "@vuepress/plugin-copy-code": "2.0.0-rc.47",
44
- "@vuepress/plugin-git": "2.0.0-rc.44",
45
- "@vuepress/plugin-links-check": "2.0.0-rc.47",
46
- "@vuepress/plugin-markdown-hint": "2.0.0-rc.47",
47
- "@vuepress/plugin-markdown-tab": "2.0.0-rc.47",
48
- "@vuepress/plugin-medium-zoom": "2.0.0-rc.47",
49
- "@vuepress/plugin-nprogress": "2.0.0-rc.47",
50
- "@vuepress/plugin-palette": "2.0.0-rc.47",
51
- "@vuepress/plugin-prismjs": "2.0.0-rc.49",
52
- "@vuepress/plugin-seo": "2.0.0-rc.47",
53
- "@vuepress/plugin-sitemap": "2.0.0-rc.47",
54
- "@vuepress/plugin-theme-data": "2.0.0-rc.47",
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.8"
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.15"
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": "832f89ef80dbfcf36c8492c7f0c686e6f1cd8359"
78
+ "gitHead": "0c0a6501082d7abdbfc4a3e4b6de48d902011c07"
79
79
  }