@vuepress/theme-default 2.0.0-rc.7 → 2.0.0-rc.9

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.
@@ -97,6 +97,7 @@
97
97
  .back-to-top {
98
98
  --back-to-top-color: var(--c-brand);
99
99
  --back-to-top-color-hover: var(--c-brand-light);
100
+ --back-to-top-bg-color: var(--c-bg);
100
101
  }
101
102
 
102
103
  // plugin-docsearch
@@ -48,7 +48,9 @@ export const defaultTheme = ({ hostname, themePlugins = {}, ...localeOptions } =
48
48
  })
49
49
  : [],
50
50
  // @vuepress/plugin-back-to-top
51
- themePlugins.backToTop !== false ? backToTopPlugin() : [],
51
+ themePlugins.backToTop !== false
52
+ ? backToTopPlugin(isPlainObject(themePlugins.backToTop) ? themePlugins.backToTop : {})
53
+ : [],
52
54
  // @vuepress/plugin-copy-code
53
55
  themePlugins.copyCode !== false
54
56
  ? copyCodePlugin({
@@ -1,3 +1,4 @@
1
+ import type { BackToTopPluginOptions } from '@vuepress/plugin-back-to-top';
1
2
  import type { CopyCodePluginOptions } from '@vuepress/plugin-copy-code';
2
3
  import type { SeoPluginOptions } from '@vuepress/plugin-seo';
3
4
  import type { SitemapPluginOptions } from '@vuepress/plugin-sitemap';
@@ -12,7 +13,7 @@ export interface DefaultThemePluginsOptions {
12
13
  /**
13
14
  * Enable @vuepress/plugin-back-to-top or not
14
15
  */
15
- backToTop?: boolean;
16
+ backToTop?: BackToTopPluginOptions | boolean;
16
17
  /**
17
18
  * Enable @vuepress/plugin-container or not
18
19
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuepress/theme-default",
3
- "version": "2.0.0-rc.7",
3
+ "version": "2.0.0-rc.9",
4
4
  "description": "Default theme of VuePress",
5
5
  "keywords": [
6
6
  "vuepress-theme",
@@ -42,19 +42,19 @@
42
42
  "copy": "cpx \"src/**/*.{d.ts,vue,scss}\" lib"
43
43
  },
44
44
  "dependencies": {
45
- "@vuepress/helper": "2.0.0-rc.7",
45
+ "@vuepress/helper": "2.0.0-rc.9",
46
46
  "@vuepress/plugin-active-header-links": "2.0.0-rc.7",
47
- "@vuepress/plugin-back-to-top": "2.0.0-rc.7",
47
+ "@vuepress/plugin-back-to-top": "2.0.0-rc.9",
48
48
  "@vuepress/plugin-container": "2.0.0-rc.7",
49
- "@vuepress/plugin-copy-code": "2.0.0-rc.7",
49
+ "@vuepress/plugin-copy-code": "2.0.0-rc.9",
50
50
  "@vuepress/plugin-external-link-icon": "2.0.0-rc.7",
51
51
  "@vuepress/plugin-git": "2.0.0-rc.7",
52
52
  "@vuepress/plugin-medium-zoom": "2.0.0-rc.7",
53
53
  "@vuepress/plugin-nprogress": "2.0.0-rc.7",
54
54
  "@vuepress/plugin-palette": "2.0.0-rc.7",
55
55
  "@vuepress/plugin-prismjs": "2.0.0-rc.7",
56
- "@vuepress/plugin-seo": "2.0.0-rc.7",
57
- "@vuepress/plugin-sitemap": "2.0.0-rc.7",
56
+ "@vuepress/plugin-seo": "2.0.0-rc.9",
57
+ "@vuepress/plugin-sitemap": "2.0.0-rc.9",
58
58
  "@vuepress/plugin-theme-data": "2.0.0-rc.7",
59
59
  "@vueuse/core": "^10.7.2",
60
60
  "sass": "^1.70.0",
@@ -73,5 +73,5 @@
73
73
  "publishConfig": {
74
74
  "access": "public"
75
75
  },
76
- "gitHead": "79b14124cc0746a2463414ccbe6de316e8e4ecc5"
76
+ "gitHead": "12c12dadd0758df4ad5256851fc3cb3c949873e8"
77
77
  }