@vuepress/theme-default 2.0.0-rc.60 → 2.0.0-rc.62

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.
@@ -7,7 +7,7 @@ import { useThemeLocaleData } from '@theme/useThemeData'
7
7
  import { DeviceType, useUpdateDeviceStatus } from '@theme/useUpdateDeviceStatus'
8
8
  import { hasGlobalComponent } from '@vuepress/helper/client'
9
9
  import type { VNode } from 'vue'
10
- import { computed, ref, resolveComponent } from 'vue'
10
+ import { computed, ref, useTemplateRef, resolveComponent } from 'vue'
11
11
 
12
12
  defineEmits<{
13
13
  toggleSidebar: []
@@ -24,8 +24,8 @@ const SearchBox = hasGlobalComponent('SearchBox')
24
24
 
25
25
  const themeLocale = useThemeLocaleData()
26
26
 
27
- const navbar = ref<HTMLElement | null>(null)
28
- const navbarBrand = ref<HTMLElement | null>(null)
27
+ const navbar = useTemplateRef<HTMLElement | null>('navbar')
28
+ const navbarBrand = useTemplateRef<HTMLElement | null>('navbar-brand')
29
29
 
30
30
  const linksWrapperMaxWidth = ref(0)
31
31
  const linksWrapperStyle = computed(() => {
@@ -71,7 +71,7 @@ useUpdateDeviceStatus(
71
71
  <header ref="navbar" class="vp-navbar" vp-navbar>
72
72
  <VPToggleSidebarButton @toggle="$emit('toggleSidebar')" />
73
73
 
74
- <span ref="navbarBrand">
74
+ <span ref="navbar-brand">
75
75
  <VPNavbarBrand />
76
76
  </span>
77
77
 
@@ -1,19 +1,11 @@
1
1
  declare module '*.vue' {
2
2
  import type { ComponentOptions } from 'vue'
3
3
 
4
- const comp: ComponentOptions
5
- export default comp
6
- }
7
-
8
- declare module '*.css' {
9
- export {}
4
+ const component: ComponentOptions
5
+ export default component
10
6
  }
11
7
 
12
8
  declare module '*/styles/_variables.module.scss' {
13
9
  const cSSVariables: Record<string, string>
14
10
  export default cSSVariables
15
11
  }
16
-
17
- declare module '*.scss' {
18
- export {}
19
- }
@@ -54,8 +54,9 @@
54
54
  --badge-c-note-bg: var(--vp-c-grey-soft);
55
55
 
56
56
  // font vars
57
- --font-family: -apple-system, 'BlinkMacSystemFont', 'Segoe UI', roboto, oxygen,
58
- ubuntu, cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
57
+ --font-family: -apple-system, 'BlinkMacSystemFont', 'Segoe UI', roboto,
58
+ oxygen, ubuntu, cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
59
+ sans-serif;
59
60
 
60
61
  // layout vars
61
62
  --navbar-height: 3.6rem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuepress/theme-default",
3
- "version": "2.0.0-rc.60",
3
+ "version": "2.0.0-rc.62",
4
4
  "description": "Default theme of VuePress",
5
5
  "keywords": [
6
6
  "vuepress-theme",
@@ -37,23 +37,23 @@
37
37
  "templates"
38
38
  ],
39
39
  "dependencies": {
40
- "@vuepress/helper": "2.0.0-rc.60",
41
- "@vuepress/plugin-active-header-links": "2.0.0-rc.60",
42
- "@vuepress/plugin-back-to-top": "2.0.0-rc.60",
43
- "@vuepress/plugin-copy-code": "2.0.0-rc.60",
44
- "@vuepress/plugin-git": "2.0.0-rc.60",
45
- "@vuepress/plugin-links-check": "2.0.0-rc.60",
46
- "@vuepress/plugin-markdown-hint": "2.0.0-rc.60",
47
- "@vuepress/plugin-markdown-tab": "2.0.0-rc.60",
48
- "@vuepress/plugin-medium-zoom": "2.0.0-rc.60",
49
- "@vuepress/plugin-nprogress": "2.0.0-rc.60",
50
- "@vuepress/plugin-palette": "2.0.0-rc.60",
51
- "@vuepress/plugin-prismjs": "2.0.0-rc.60",
52
- "@vuepress/plugin-seo": "2.0.0-rc.60",
53
- "@vuepress/plugin-sitemap": "2.0.0-rc.60",
54
- "@vuepress/plugin-theme-data": "2.0.0-rc.60",
55
- "@vueuse/core": "^11.2.0",
56
- "vue": "^3.5.12"
40
+ "@vuepress/helper": "2.0.0-rc.62",
41
+ "@vuepress/plugin-active-header-links": "2.0.0-rc.62",
42
+ "@vuepress/plugin-back-to-top": "2.0.0-rc.62",
43
+ "@vuepress/plugin-copy-code": "2.0.0-rc.62",
44
+ "@vuepress/plugin-git": "2.0.0-rc.62",
45
+ "@vuepress/plugin-links-check": "2.0.0-rc.62",
46
+ "@vuepress/plugin-markdown-hint": "2.0.0-rc.62",
47
+ "@vuepress/plugin-markdown-tab": "2.0.0-rc.62",
48
+ "@vuepress/plugin-medium-zoom": "2.0.0-rc.62",
49
+ "@vuepress/plugin-nprogress": "2.0.0-rc.62",
50
+ "@vuepress/plugin-palette": "2.0.0-rc.62",
51
+ "@vuepress/plugin-prismjs": "2.0.0-rc.62",
52
+ "@vuepress/plugin-seo": "2.0.0-rc.62",
53
+ "@vuepress/plugin-sitemap": "2.0.0-rc.62",
54
+ "@vuepress/plugin-theme-data": "2.0.0-rc.62",
55
+ "@vueuse/core": "^12.0.0",
56
+ "vue": "^3.5.13"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "sass": "^1.80.3",
@@ -75,5 +75,5 @@
75
75
  "publishConfig": {
76
76
  "access": "public"
77
77
  },
78
- "gitHead": "b6e9b2877a6b09509031ddecc09c3421da7d90f1"
78
+ "gitHead": "a5a4ac11410cda10dc303da08a033410eb921d1b"
79
79
  }