@vuepress/theme-default 2.0.0-rc.109 → 2.0.0-rc.110

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,5 @@
1
- import type { InjectionKey, WritableComputedRef } from 'vue';
1
+ import type { WritableComputedRef } from 'vue';
2
2
  export type DarkModeRef = WritableComputedRef<boolean>;
3
- export declare const darkModeSymbol: InjectionKey<DarkModeRef>;
4
3
  /**
5
4
  * Inject dark mode global computed
6
5
  */
@@ -1,7 +1,7 @@
1
1
  import { useData } from '@theme/useData';
2
+ import { darkModeSymbol } from '@vuepress/helper/client';
2
3
  import { usePreferredDark, useStorage, watchImmediate } from '@vueuse/core';
3
4
  import { computed, inject, onMounted, onUnmounted, provide } from 'vue';
4
- export const darkModeSymbol = Symbol(__VUEPRESS_DEV__ ? 'darkMode' : '');
5
5
  const applyDarkModeToHTML = (isDarkMode) => {
6
6
  const update = (value = isDarkMode.value) => {
7
7
  // set `class="dark"` on `<html>` element
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuepress/theme-default",
3
- "version": "2.0.0-rc.109",
3
+ "version": "2.0.0-rc.110",
4
4
  "description": "Default theme of VuePress",
5
5
  "keywords": [
6
6
  "vuepress-theme",
@@ -42,23 +42,23 @@
42
42
  "templates"
43
43
  ],
44
44
  "dependencies": {
45
- "@vuepress/helper": "2.0.0-rc.109",
45
+ "@vuepress/helper": "2.0.0-rc.110",
46
46
  "@vuepress/plugin-active-header-links": "2.0.0-rc.107",
47
- "@vuepress/plugin-back-to-top": "2.0.0-rc.109",
48
- "@vuepress/plugin-copy-code": "2.0.0-rc.109",
49
- "@vuepress/plugin-git": "2.0.0-rc.109",
50
- "@vuepress/plugin-links-check": "2.0.0-rc.109",
51
- "@vuepress/plugin-markdown-hint": "2.0.0-rc.109",
52
- "@vuepress/plugin-markdown-tab": "2.0.0-rc.109",
53
- "@vuepress/plugin-medium-zoom": "2.0.0-rc.109",
54
- "@vuepress/plugin-nprogress": "2.0.0-rc.109",
55
- "@vuepress/plugin-palette": "2.0.0-rc.109",
56
- "@vuepress/plugin-prismjs": "2.0.0-rc.109",
57
- "@vuepress/plugin-seo": "2.0.0-rc.109",
58
- "@vuepress/plugin-sitemap": "2.0.0-rc.109",
47
+ "@vuepress/plugin-back-to-top": "2.0.0-rc.110",
48
+ "@vuepress/plugin-copy-code": "2.0.0-rc.110",
49
+ "@vuepress/plugin-git": "2.0.0-rc.110",
50
+ "@vuepress/plugin-links-check": "2.0.0-rc.110",
51
+ "@vuepress/plugin-markdown-hint": "2.0.0-rc.110",
52
+ "@vuepress/plugin-markdown-tab": "2.0.0-rc.110",
53
+ "@vuepress/plugin-medium-zoom": "2.0.0-rc.110",
54
+ "@vuepress/plugin-nprogress": "2.0.0-rc.110",
55
+ "@vuepress/plugin-palette": "2.0.0-rc.110",
56
+ "@vuepress/plugin-prismjs": "2.0.0-rc.110",
57
+ "@vuepress/plugin-seo": "2.0.0-rc.110",
58
+ "@vuepress/plugin-sitemap": "2.0.0-rc.110",
59
59
  "@vuepress/plugin-theme-data": "2.0.0-rc.109",
60
60
  "@vueuse/core": "^13.3.0",
61
- "vue": "^3.5.16"
61
+ "vue": "^3.5.17"
62
62
  },
63
63
  "peerDependencies": {
64
64
  "sass": "^1.89.2",
@@ -80,5 +80,5 @@
80
80
  "publishConfig": {
81
81
  "access": "public"
82
82
  },
83
- "gitHead": "480697b497b2cccc03caf57ecd3f716eca4985e5"
83
+ "gitHead": "af227fa4de79c3aa14c47298de6c98b80d9a5d6a"
84
84
  }