@vuepress/theme-default 2.0.0-rc.127 → 2.0.0-rc.130

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.
Files changed (70) hide show
  1. package/dist/client/components/VPAutoLink.vue +1 -3
  2. package/dist/client/components/VPNavbarDropdown.vue +4 -5
  3. package/dist/client/components/VPSidebarItem.vue +2 -6
  4. package/dist/client/components/global/Badge.vue +3 -9
  5. package/dist/client/composables/index.d.ts +11 -11
  6. package/dist/client/composables/useDarkMode.d.ts +1 -1
  7. package/dist/client/composables/useDarkMode.js.map +1 -1
  8. package/dist/client/composables/useData.d.ts +1 -1
  9. package/dist/client/composables/useData.js.map +1 -1
  10. package/dist/client/composables/useEditLink.d.ts +1 -1
  11. package/dist/client/composables/useEditLink.js.map +1 -1
  12. package/dist/client/composables/useHeaders.js.map +1 -1
  13. package/dist/client/composables/useNavbarConfig.d.ts +1 -1
  14. package/dist/client/composables/useNavbarConfig.js.map +1 -1
  15. package/dist/client/composables/useNavbarRepo.d.ts +1 -1
  16. package/dist/client/composables/useNavbarRepo.js.map +1 -1
  17. package/dist/client/composables/useNavbarSelectLanguage.d.ts +1 -1
  18. package/dist/client/composables/useNavbarSelectLanguage.js.map +1 -1
  19. package/dist/client/composables/useNavigate.d.ts +1 -1
  20. package/dist/client/composables/useNavigate.js.map +1 -1
  21. package/dist/client/composables/useRelatedLinks.d.ts +1 -1
  22. package/dist/client/composables/useRelatedLinks.js.map +1 -1
  23. package/dist/client/composables/useScrollPromise.d.ts +1 -1
  24. package/dist/client/composables/useScrollPromise.js.map +1 -1
  25. package/dist/client/composables/useSidebarItems.d.ts +1 -1
  26. package/dist/client/composables/useSidebarItems.js.map +1 -1
  27. package/dist/client/composables/useUpdateDeviceStatus.d.ts +1 -1
  28. package/dist/client/composables/useUpdateDeviceStatus.js +1 -1
  29. package/dist/client/composables/useUpdateDeviceStatus.js.map +1 -1
  30. package/dist/client/config.js.map +1 -1
  31. package/dist/client/index.d.ts +18 -20
  32. package/dist/client/styles/index.scss +0 -1
  33. package/dist/client/utils/index.d.ts +5 -5
  34. package/dist/client/utils/isActiveSidebarItem.d.ts +1 -1
  35. package/dist/client/utils/isActiveSidebarItem.js +1 -1
  36. package/dist/client/utils/isActiveSidebarItem.js.map +1 -1
  37. package/dist/client/utils/resolveAutoLink.d.ts +1 -1
  38. package/dist/client/utils/resolveAutoLink.js.map +1 -1
  39. package/dist/client/utils/resolveEditLink.d.ts +1 -1
  40. package/dist/client/utils/resolveEditLink.js +1 -1
  41. package/dist/client/utils/resolveEditLink.js.map +1 -1
  42. package/dist/client/utils/resolvePrefix.d.ts +1 -1
  43. package/dist/client/utils/resolvePrefix.js.map +1 -1
  44. package/dist/client/utils/resolveRepoType.d.ts +1 -1
  45. package/dist/client/utils/resolveRepoType.js +1 -1
  46. package/dist/client/utils/resolveRepoType.js.map +1 -1
  47. package/dist/{page-FWcDnzJp.d.ts → index-BNjRb2Mr.d.ts} +73 -34
  48. package/dist/{isActiveSidebarItem-aythFTeC.d.ts → isActiveSidebarItem-DE0Ymo1m.d.ts} +2 -2
  49. package/dist/node/index.d.ts +15 -46
  50. package/dist/node/index.js +1 -1
  51. package/dist/node/index.js.map +1 -1
  52. package/dist/{resolveAutoLink-BR2Z05MD.d.ts → resolveAutoLink-bQLxrWMd.d.ts} +6 -6
  53. package/dist/{resolveEditLink-DazcWeGf.d.ts → resolveEditLink-DRtLIWXz.d.ts} +1 -1
  54. package/dist/{resolvePrefix-BN9K9RA5.d.ts → resolvePrefix-DEl0CDB0.d.ts} +1 -1
  55. package/dist/{resolveRepoType-Wcj35_rs.d.ts → resolveRepoType-DefRTDOt.d.ts} +1 -1
  56. package/dist/{typings-NbQSzbOn.d.ts → typings-D-rXvaET.d.ts} +2 -3
  57. package/dist/{useDarkMode-DLor2cV7.d.ts → useDarkMode-Zrmg4e6i.d.ts} +2 -4
  58. package/dist/{useData-JDen_Bxm.d.ts → useData-BFB4h32K.d.ts} +2 -2
  59. package/dist/{useEditLink-DPCTvXmM.d.ts → useEditLink-m723nvlZ.d.ts} +1 -1
  60. package/dist/{useNavbarConfig-C19TGFg7.d.ts → useNavbarConfig-BnkOLDyM.d.ts} +2 -2
  61. package/dist/{useNavbarRepo-DxhSIAFq.d.ts → useNavbarRepo-BT8z2mBp.d.ts} +2 -2
  62. package/dist/{useNavbarSelectLanguage-4GkrPvc2.d.ts → useNavbarSelectLanguage-DMcyeLfA.d.ts} +2 -2
  63. package/dist/{useNavigate-lH4xyHOV.d.ts → useNavigate-D__eeZa2.d.ts} +1 -1
  64. package/dist/{useRelatedLinks-ChTW2RRU.d.ts → useRelatedLinks-CoqxjiuJ.d.ts} +2 -2
  65. package/dist/{useScrollPromise-BAl732Uv.d.ts → useScrollPromise-DtXkT3fi.d.ts} +1 -1
  66. package/dist/{useSidebarItems-CdpB96Ta.d.ts → useSidebarItems-nMm3AAZ3.d.ts} +33 -37
  67. package/dist/{useUpdateDeviceStatus-SBnOZx8J.d.ts → useUpdateDeviceStatus-B3bXVdPs.d.ts} +4 -3
  68. package/package.json +23 -23
  69. package/dist/nav-DikslSJ_.d.ts +0 -36
  70. package/dist/sidebar-CF1YPYLN.d.ts +0 -53
@@ -3,12 +3,13 @@ declare enum DeviceType {
3
3
  Mobile = "mobile"
4
4
  }
5
5
  /**
6
- * add listener to detect screen though device type
6
+ * Add listener to detect screen though device type
7
7
  *
8
8
  * @param deviceType - Device type to detect / 要检测的设备类型
9
- * @param callback - Callback function to call when device status changes / 设备状态改变时调用的回调函数
9
+ * @param callback - Callback function to call when device status changes /
10
+ * 设备状态改变时调用的回调函数
10
11
  */
11
12
  declare const useUpdateDeviceStatus: (deviceType: DeviceType, callback: (width: number) => void) => void;
12
13
  //#endregion
13
14
  export { useUpdateDeviceStatus as n, DeviceType as t };
14
- //# sourceMappingURL=useUpdateDeviceStatus-SBnOZx8J.d.ts.map
15
+ //# sourceMappingURL=useUpdateDeviceStatus-B3bXVdPs.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuepress/theme-default",
3
- "version": "2.0.0-rc.127",
3
+ "version": "2.0.0-rc.130",
4
4
  "description": "Default theme of VuePress",
5
5
  "keywords": [
6
6
  "default",
@@ -54,29 +54,29 @@
54
54
  "access": "public"
55
55
  },
56
56
  "dependencies": {
57
- "@vuepress/helper": "2.0.0-rc.127",
58
- "@vuepress/plugin-active-header-links": "2.0.0-rc.126",
59
- "@vuepress/plugin-back-to-top": "2.0.0-rc.127",
60
- "@vuepress/plugin-copy-code": "2.0.0-rc.127",
61
- "@vuepress/plugin-git": "2.0.0-rc.127",
62
- "@vuepress/plugin-links-check": "2.0.0-rc.127",
63
- "@vuepress/plugin-markdown-hint": "2.0.0-rc.127",
64
- "@vuepress/plugin-markdown-tab": "2.0.0-rc.127",
65
- "@vuepress/plugin-medium-zoom": "2.0.0-rc.127",
66
- "@vuepress/plugin-nprogress": "2.0.0-rc.127",
67
- "@vuepress/plugin-palette": "2.0.0-rc.127",
68
- "@vuepress/plugin-prismjs": "2.0.0-rc.127",
69
- "@vuepress/plugin-seo": "2.0.0-rc.127",
70
- "@vuepress/plugin-sitemap": "2.0.0-rc.127",
71
- "@vuepress/plugin-theme-data": "2.0.0-rc.126",
72
- "@vueuse/core": "^14.2.1",
73
- "vue": "^3.5.31"
57
+ "@vuepress/helper": "2.0.0-rc.130",
58
+ "@vuepress/plugin-active-header-links": "2.0.0-rc.130",
59
+ "@vuepress/plugin-back-to-top": "2.0.0-rc.130",
60
+ "@vuepress/plugin-copy-code": "2.0.0-rc.130",
61
+ "@vuepress/plugin-git": "2.0.0-rc.130",
62
+ "@vuepress/plugin-links-check": "2.0.0-rc.130",
63
+ "@vuepress/plugin-markdown-hint": "2.0.0-rc.130",
64
+ "@vuepress/plugin-markdown-tab": "2.0.0-rc.130",
65
+ "@vuepress/plugin-medium-zoom": "2.0.0-rc.130",
66
+ "@vuepress/plugin-nprogress": "2.0.0-rc.130",
67
+ "@vuepress/plugin-palette": "2.0.0-rc.130",
68
+ "@vuepress/plugin-prismjs": "2.0.0-rc.130",
69
+ "@vuepress/plugin-seo": "2.0.0-rc.130",
70
+ "@vuepress/plugin-sitemap": "2.0.0-rc.130",
71
+ "@vuepress/plugin-theme-data": "2.0.0-rc.130",
72
+ "@vueuse/core": "^14.3.0",
73
+ "vue": "^3.5.34"
74
74
  },
75
75
  "peerDependencies": {
76
- "sass": "^1.98.0",
77
- "sass-embedded": "^1.98.0",
78
- "sass-loader": "^16.0.7",
79
- "vuepress": "2.0.0-rc.27"
76
+ "sass": "^1.99.0",
77
+ "sass-embedded": "^1.99.0",
78
+ "sass-loader": "^16.0.8",
79
+ "vuepress": "2.0.0-rc.30"
80
80
  },
81
81
  "peerDependenciesMeta": {
82
82
  "sass": {
@@ -89,5 +89,5 @@
89
89
  "optional": true
90
90
  }
91
91
  },
92
- "gitHead": "405b7cdccc7ed0ee2efea0dfa2b3f0036cc25e87"
92
+ "gitHead": "3612bba34c7299f3bad032390904c8c27cd417cc"
93
93
  }
@@ -1,36 +0,0 @@
1
- //#region src/shared/nav.d.ts
2
- /**
3
- * Base nav item, displayed as text
4
- */
5
- interface NavItemOptions {
6
- text: string;
7
- ariaLabel?: string;
8
- }
9
- /**
10
- * Options for `<AutoLink>`
11
- */
12
- interface AutoLinkOptions extends NavItemOptions {
13
- /**
14
- * Link of item
15
- */
16
- link: string;
17
- /**
18
- * Rel of `<a>` tag
19
- */
20
- rel?: string;
21
- /**
22
- * Target of `<a>` tag
23
- */
24
- target?: string;
25
- /**
26
- * Regexp mode to be active
27
- */
28
- activeMatch?: string;
29
- /**
30
- * Whether it's active only when exact match
31
- */
32
- exact?: boolean;
33
- }
34
- //#endregion
35
- export { NavItemOptions as n, AutoLinkOptions as t };
36
- //# sourceMappingURL=nav-DikslSJ_.d.ts.map
@@ -1,53 +0,0 @@
1
- import { n as NavItemOptions, t as AutoLinkOptions } from "./nav-DikslSJ_.js";
2
-
3
- //#region src/shared/navbar.d.ts
4
- /**
5
- * Base nav group, has nav items children
6
- */
7
- interface NavGroup<T> extends NavItemOptions {
8
- /**
9
- * Link prefix of current group
10
- */
11
- prefix?: string;
12
- /**
13
- * Link of current group
14
- */
15
- link?: string;
16
- /**
17
- * Children of current group
18
- */
19
- children: T[];
20
- }
21
- type NavbarLinkOptions = AutoLinkOptions | string;
22
- type NavbarGroupOptions = NavGroup<NavbarLinkOptions | NavGroup<NavbarLinkOptions>>;
23
- type NavbarOptions = (NavbarGroupOptions | NavbarLinkOptions)[] | false;
24
- //#endregion
25
- //#region src/shared/sidebar.d.ts
26
- type SidebarLinkOptions = AutoLinkOptions;
27
- interface SidebarGroupOptions extends NavItemOptions {
28
- /**
29
- * Link prefix of current group
30
- */
31
- prefix?: string;
32
- /**
33
- * Link of current group
34
- */
35
- link?: string;
36
- /**
37
- * Whether current group is collapsible
38
- *
39
- * @default false
40
- */
41
- collapsible?: boolean;
42
- /**
43
- * Children of current group
44
- */
45
- children: SidebarItemOptions[];
46
- }
47
- type SidebarItemOptions = SidebarGroupOptions | SidebarLinkOptions | string;
48
- type SidebarArrayOptions = SidebarItemOptions[];
49
- type SidebarObjectOptions = Record<string, SidebarArrayOptions | 'heading' | false>;
50
- type SidebarOptions = SidebarArrayOptions | SidebarObjectOptions | 'heading';
51
- //#endregion
52
- export { SidebarObjectOptions as a, NavbarGroupOptions as c, SidebarLinkOptions as i, NavbarLinkOptions as l, SidebarGroupOptions as n, SidebarOptions as o, SidebarItemOptions as r, NavGroup as s, SidebarArrayOptions as t, NavbarOptions as u };
53
- //# sourceMappingURL=sidebar-CF1YPYLN.d.ts.map