@vuepress/theme-default 2.0.0-rc.123 → 2.0.0-rc.125

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 (195) hide show
  1. package/{lib → dist}/client/components/VPHomeHero.vue +7 -14
  2. package/{lib → dist}/client/components/VPNavbar.vue +8 -11
  3. package/{lib → dist}/client/components/VPNavbarBrand.vue +4 -5
  4. package/dist/client/composables/index.d.ts +12 -0
  5. package/dist/client/composables/index.js +1 -0
  6. package/dist/client/composables/useDarkMode.d.ts +2 -0
  7. package/dist/client/composables/useDarkMode.js +2 -0
  8. package/dist/client/composables/useDarkMode.js.map +1 -0
  9. package/dist/client/composables/useData.d.ts +2 -0
  10. package/dist/client/composables/useData.js +2 -0
  11. package/dist/client/composables/useData.js.map +1 -0
  12. package/dist/client/composables/useEditLink.d.ts +2 -0
  13. package/dist/client/composables/useEditLink.js +2 -0
  14. package/dist/client/composables/useEditLink.js.map +1 -0
  15. package/dist/client/composables/useHeaders.d.ts +18 -0
  16. package/dist/client/composables/useHeaders.js +2 -0
  17. package/dist/client/composables/useHeaders.js.map +1 -0
  18. package/dist/client/composables/useNavbarConfig.d.ts +2 -0
  19. package/dist/client/composables/useNavbarConfig.js +2 -0
  20. package/dist/client/composables/useNavbarConfig.js.map +1 -0
  21. package/dist/client/composables/useNavbarRepo.d.ts +2 -0
  22. package/dist/client/composables/useNavbarRepo.js +2 -0
  23. package/dist/client/composables/useNavbarRepo.js.map +1 -0
  24. package/dist/client/composables/useNavbarSelectLanguage.d.ts +2 -0
  25. package/dist/client/composables/useNavbarSelectLanguage.js +2 -0
  26. package/dist/client/composables/useNavbarSelectLanguage.js.map +1 -0
  27. package/dist/client/composables/useNavigate.d.ts +2 -0
  28. package/dist/client/composables/useNavigate.js +2 -0
  29. package/dist/client/composables/useNavigate.js.map +1 -0
  30. package/dist/client/composables/useRelatedLinks.d.ts +2 -0
  31. package/dist/client/composables/useRelatedLinks.js +2 -0
  32. package/dist/client/composables/useRelatedLinks.js.map +1 -0
  33. package/dist/client/composables/useScrollPromise.d.ts +2 -0
  34. package/dist/client/composables/useScrollPromise.js +2 -0
  35. package/dist/client/composables/useScrollPromise.js.map +1 -0
  36. package/dist/client/composables/useSidebarItems.d.ts +2 -0
  37. package/dist/client/composables/useSidebarItems.js +2 -0
  38. package/dist/client/composables/useSidebarItems.js.map +1 -0
  39. package/dist/client/composables/useUpdateDeviceStatus.d.ts +2 -0
  40. package/dist/client/composables/useUpdateDeviceStatus.js +2 -0
  41. package/dist/client/composables/useUpdateDeviceStatus.js.map +1 -0
  42. package/dist/client/config.d.ts +6 -0
  43. package/dist/client/config.js +2 -0
  44. package/dist/client/config.js.map +1 -0
  45. package/dist/client/index.d.ts +21 -0
  46. package/dist/client/index.js +1 -0
  47. package/{lib → dist}/client/layouts/Layout.vue +2 -5
  48. package/{lib → dist}/client/layouts/NotFound.vue +1 -2
  49. package/{lib → dist}/client/styles/arrow.scss +1 -2
  50. package/{lib → dist}/client/styles/vars.scss +1 -2
  51. package/dist/client/utils/index.d.ts +6 -0
  52. package/dist/client/utils/index.js +1 -0
  53. package/dist/client/utils/isActiveSidebarItem.d.ts +2 -0
  54. package/dist/client/utils/isActiveSidebarItem.js +2 -0
  55. package/dist/client/utils/isActiveSidebarItem.js.map +1 -0
  56. package/dist/client/utils/resolveAutoLink.d.ts +2 -0
  57. package/dist/client/utils/resolveAutoLink.js +2 -0
  58. package/dist/client/utils/resolveAutoLink.js.map +1 -0
  59. package/dist/client/utils/resolveEditLink.d.ts +2 -0
  60. package/dist/client/utils/resolveEditLink.js +2 -0
  61. package/dist/client/utils/resolveEditLink.js.map +1 -0
  62. package/dist/client/utils/resolvePrefix.d.ts +2 -0
  63. package/dist/client/utils/resolvePrefix.js +2 -0
  64. package/dist/client/utils/resolvePrefix.js.map +1 -0
  65. package/dist/client/utils/resolveRepoType.d.ts +2 -0
  66. package/dist/client/utils/resolveRepoType.js +2 -0
  67. package/dist/client/utils/resolveRepoType.js.map +1 -0
  68. package/dist/isActiveSidebarItem-aythFTeC.d.ts +8 -0
  69. package/dist/nav-DikslSJ_.d.ts +36 -0
  70. package/dist/node/index.d.ts +108 -0
  71. package/dist/node/index.js +2 -0
  72. package/dist/node/index.js.map +1 -0
  73. package/dist/page-FWcDnzJp.d.ts +292 -0
  74. package/{lib/client/utils/resolveAutoLink.d.ts → dist/resolveAutoLink-BR2Z05MD.d.ts} +7 -2
  75. package/dist/resolveEditLink-DazcWeGf.d.ts +20 -0
  76. package/dist/resolvePrefix-BN9K9RA5.d.ts +5 -0
  77. package/dist/resolveRepoType-Wcj35_rs.d.ts +6 -0
  78. package/dist/sidebar-CF1YPYLN.d.ts +53 -0
  79. package/dist/typings-NbQSzbOn.d.ts +19 -0
  80. package/dist/useDarkMode-DLor2cV7.d.ts +19 -0
  81. package/dist/useData-JDen_Bxm.d.ts +13 -0
  82. package/dist/useEditLink-DPCTvXmM.d.ts +8 -0
  83. package/dist/useNavbarConfig-C19TGFg7.d.ts +8 -0
  84. package/dist/useNavbarRepo-DxhSIAFq.d.ts +13 -0
  85. package/dist/useNavbarSelectLanguage-4GkrPvc2.d.ts +13 -0
  86. package/dist/useNavigate-lH4xyHOV.d.ts +5 -0
  87. package/dist/useRelatedLinks-ChTW2RRU.d.ts +12 -0
  88. package/dist/useScrollPromise-BAl732Uv.d.ts +10 -0
  89. package/dist/useSidebarItems-CdpB96Ta.d.ts +80 -0
  90. package/dist/useUpdateDeviceStatus-SBnOZx8J.d.ts +14 -0
  91. package/package.json +39 -30
  92. package/lib/client/components/global/index.d.ts +0 -2
  93. package/lib/client/components/global/index.js +0 -2
  94. package/lib/client/composables/index.d.ts +0 -11
  95. package/lib/client/composables/index.js +0 -11
  96. package/lib/client/composables/useDarkMode.d.ts +0 -14
  97. package/lib/client/composables/useDarkMode.js +0 -64
  98. package/lib/client/composables/useData.d.ts +0 -8
  99. package/lib/client/composables/useData.js +0 -7
  100. package/lib/client/composables/useEditLink.d.ts +0 -3
  101. package/lib/client/composables/useEditLink.js +0 -28
  102. package/lib/client/composables/useHeaders.d.ts +0 -13
  103. package/lib/client/composables/useHeaders.js +0 -42
  104. package/lib/client/composables/useNavbarConfig.d.ts +0 -3
  105. package/lib/client/composables/useNavbarConfig.js +0 -27
  106. package/lib/client/composables/useNavbarRepo.d.ts +0 -8
  107. package/lib/client/composables/useNavbarRepo.js +0 -40
  108. package/lib/client/composables/useNavbarSelectLanguage.d.ts +0 -8
  109. package/lib/client/composables/useNavbarSelectLanguage.js +0 -60
  110. package/lib/client/composables/useNavigate.d.ts +0 -1
  111. package/lib/client/composables/useNavigate.js +0 -22
  112. package/lib/client/composables/useRelatedLinks.d.ts +0 -8
  113. package/lib/client/composables/useRelatedLinks.js +0 -95
  114. package/lib/client/composables/useScrollPromise.d.ts +0 -6
  115. package/lib/client/composables/useScrollPromise.js +0 -16
  116. package/lib/client/composables/useSidebarItems.d.ts +0 -75
  117. package/lib/client/composables/useSidebarItems.js +0 -164
  118. package/lib/client/composables/useUpdateDeviceStatus.d.ts +0 -10
  119. package/lib/client/composables/useUpdateDeviceStatus.js +0 -34
  120. package/lib/client/config.d.ts +0 -5
  121. package/lib/client/config.js +0 -35
  122. package/lib/client/index.d.ts +0 -4
  123. package/lib/client/index.js +0 -2
  124. package/lib/client/typings.d.ts +0 -13
  125. package/lib/client/typings.js +0 -1
  126. package/lib/client/utils/index.d.ts +0 -5
  127. package/lib/client/utils/index.js +0 -5
  128. package/lib/client/utils/isActiveSidebarItem.d.ts +0 -3
  129. package/lib/client/utils/isActiveSidebarItem.js +0 -20
  130. package/lib/client/utils/resolveAutoLink.js +0 -23
  131. package/lib/client/utils/resolveEditLink.d.ts +0 -9
  132. package/lib/client/utils/resolveEditLink.js +0 -29
  133. package/lib/client/utils/resolvePrefix.d.ts +0 -1
  134. package/lib/client/utils/resolvePrefix.js +0 -4
  135. package/lib/client/utils/resolveRepoType.d.ts +0 -2
  136. package/lib/client/utils/resolveRepoType.js +0 -12
  137. package/lib/node/defaultTheme.d.ts +0 -15
  138. package/lib/node/defaultTheme.js +0 -140
  139. package/lib/node/index.d.ts +0 -4
  140. package/lib/node/index.js +0 -2
  141. package/lib/node/typings.d.ts +0 -59
  142. package/lib/node/typings.js +0 -1
  143. package/lib/node/utils/assignDefaultLocaleOptions.d.ts +0 -7
  144. package/lib/node/utils/assignDefaultLocaleOptions.js +0 -51
  145. package/lib/node/utils/index.d.ts +0 -2
  146. package/lib/node/utils/index.js +0 -2
  147. package/lib/node/utils/resolveMarkdownHintLocales.d.ts +0 -12
  148. package/lib/node/utils/resolveMarkdownHintLocales.js +0 -22
  149. package/lib/shared/index.d.ts +0 -5
  150. package/lib/shared/index.js +0 -1
  151. package/lib/shared/nav.d.ts +0 -32
  152. package/lib/shared/nav.js +0 -1
  153. package/lib/shared/navbar.d.ts +0 -21
  154. package/lib/shared/navbar.js +0 -1
  155. package/lib/shared/options.d.ts +0 -244
  156. package/lib/shared/options.js +0 -1
  157. package/lib/shared/page.d.ts +0 -44
  158. package/lib/shared/page.js +0 -1
  159. package/lib/shared/sidebar.d.ts +0 -26
  160. package/lib/shared/sidebar.js +0 -1
  161. /package/{lib → dist}/client/components/VPAutoLink.vue +0 -0
  162. /package/{lib → dist}/client/components/VPDarkIcon.vue +0 -0
  163. /package/{lib → dist}/client/components/VPDropdownTransition.vue +0 -0
  164. /package/{lib → dist}/client/components/VPEditIcon.vue +0 -0
  165. /package/{lib → dist}/client/components/VPFadeSlideYTransition.vue +0 -0
  166. /package/{lib → dist}/client/components/VPHome.vue +0 -0
  167. /package/{lib → dist}/client/components/VPHomeFeatures.vue +0 -0
  168. /package/{lib → dist}/client/components/VPHomeFooter.vue +0 -0
  169. /package/{lib → dist}/client/components/VPLightIcon.vue +0 -0
  170. /package/{lib → dist}/client/components/VPNavbarDropdown.vue +0 -0
  171. /package/{lib → dist}/client/components/VPNavbarItems.vue +0 -0
  172. /package/{lib → dist}/client/components/VPPage.vue +0 -0
  173. /package/{lib → dist}/client/components/VPPageMeta.vue +0 -0
  174. /package/{lib → dist}/client/components/VPPageNav.vue +0 -0
  175. /package/{lib → dist}/client/components/VPSidebar.vue +0 -0
  176. /package/{lib → dist}/client/components/VPSidebarItem.vue +0 -0
  177. /package/{lib → dist}/client/components/VPSidebarItems.vue +0 -0
  178. /package/{lib → dist}/client/components/VPToggleColorModeButton.vue +0 -0
  179. /package/{lib → dist}/client/components/VPToggleSidebarButton.vue +0 -0
  180. /package/{lib → dist}/client/components/global/Badge.vue +0 -0
  181. /package/{lib → dist}/client/shim.d.ts +0 -0
  182. /package/{lib → dist}/client/styles/_mixins.scss +0 -0
  183. /package/{lib → dist}/client/styles/_variables.module.scss +0 -0
  184. /package/{lib → dist}/client/styles/_variables.scss +0 -0
  185. /package/{lib → dist}/client/styles/code-group.scss +0 -0
  186. /package/{lib → dist}/client/styles/content/code.scss +0 -0
  187. /package/{lib → dist}/client/styles/content/index.scss +0 -0
  188. /package/{lib → dist}/client/styles/content/normalize.scss +0 -0
  189. /package/{lib → dist}/client/styles/content/toc.scss +0 -0
  190. /package/{lib → dist}/client/styles/external-link-icon.scss +0 -0
  191. /package/{lib → dist}/client/styles/index.scss +0 -0
  192. /package/{lib → dist}/client/styles/layout.scss +0 -0
  193. /package/{lib → dist}/client/styles/normalize.scss +0 -0
  194. /package/{lib → dist}/client/styles/plugins.scss +0 -0
  195. /package/{lib → dist}/client/styles/vars-dark.scss +0 -0
@@ -0,0 +1,36 @@
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
@@ -0,0 +1,108 @@
1
+ import { n as NavItemOptions, t as AutoLinkOptions } from "../nav-DikslSJ_.js";
2
+ import { a as SidebarObjectOptions, c as NavbarGroupOptions, i as SidebarLinkOptions, l as NavbarLinkOptions, n as SidebarGroupOptions, o as SidebarOptions, r as SidebarItemOptions, s as NavGroup, t as SidebarArrayOptions, u as NavbarOptions } from "../sidebar-CF1YPYLN.js";
3
+ import { a as DefaultThemeData, i as DefaultThemePageFrontmatter, n as DefaultThemeNormalPageFrontmatter, o as DefaultThemeLocaleData, r as DefaultThemePageData, s as DefaultThemeLocaleOptions, t as DefaultThemeHomePageFrontmatter } from "../page-FWcDnzJp.js";
4
+ import { BackToTopPluginOptions } from "@vuepress/plugin-back-to-top";
5
+ import { CopyCodePluginOptions } from "@vuepress/plugin-copy-code";
6
+ import { GitPluginOptions } from "@vuepress/plugin-git";
7
+ import { LinksCheckPluginOptions } from "@vuepress/plugin-links-check";
8
+ import { MarkdownHintPluginLocaleData, MarkdownHintPluginOptions } from "@vuepress/plugin-markdown-hint";
9
+ import { MarkdownTabPluginOptions } from "@vuepress/plugin-markdown-tab";
10
+ import { PrismjsPluginOptions } from "@vuepress/plugin-prismjs";
11
+ import { SeoPluginOptions } from "@vuepress/plugin-seo";
12
+ import { SitemapPluginOptions } from "@vuepress/plugin-sitemap";
13
+ import { LocaleConfig } from "vuepress/shared";
14
+ import { Theme } from "vuepress/core";
15
+
16
+ //#region src/node/typings.d.ts
17
+ interface DefaultThemePluginsOptions {
18
+ /**
19
+ * Enable `@vuepress/plugin-active-header-links` or not
20
+ */
21
+ activeHeaderLinks?: boolean;
22
+ /**
23
+ * Enable `@vuepress/plugin-back-to-top` or not
24
+ */
25
+ backToTop?: BackToTopPluginOptions | boolean;
26
+ /**
27
+ * Enable `@vuepress/plugin-copy-code` or not
28
+ */
29
+ copyCode?: CopyCodePluginOptions | boolean;
30
+ /**
31
+ * Enable `@vuepress/plugin-git` or not
32
+ */
33
+ git?: GitPluginOptions | boolean;
34
+ /**
35
+ * Enable `@vuepress/plugin-markdown-hint` or not
36
+ */
37
+ hint?: MarkdownHintPluginOptions | boolean;
38
+ /**
39
+ * Enable `@vuepress/plugin-links-check` or not
40
+ */
41
+ linksCheck?: LinksCheckPluginOptions | boolean;
42
+ /**
43
+ * Enable `@vuepress/plugin-medium-zoom` or not
44
+ */
45
+ mediumZoom?: boolean;
46
+ /**
47
+ * Enable `@vuepress/plugin-nprogress` or not
48
+ */
49
+ nprogress?: boolean;
50
+ /**
51
+ * Enable `@vuepress/plugin-prismjs` or not
52
+ */
53
+ prismjs?: PrismjsPluginOptions | boolean;
54
+ /**
55
+ * Enable `@vuepress/plugin-seo` or not
56
+ */
57
+ seo?: Partial<SeoPluginOptions> | boolean;
58
+ /**
59
+ * Enable `@vuepress/plugin-sitemap` or not
60
+ */
61
+ sitemap?: Partial<SitemapPluginOptions> | boolean;
62
+ /**
63
+ * Enable `@vuepress/plugin-markdown-tab` or not
64
+ */
65
+ tab?: MarkdownTabPluginOptions | boolean;
66
+ }
67
+ //#endregion
68
+ //#region src/node/defaultTheme.d.ts
69
+ interface DefaultThemeOptions extends DefaultThemeLocaleOptions {
70
+ /**
71
+ * deployed hostname
72
+ */
73
+ hostname?: string;
74
+ /**
75
+ * To avoid confusion with the root `plugins` option,
76
+ * we use `themePlugins`
77
+ */
78
+ themePlugins?: DefaultThemePluginsOptions;
79
+ }
80
+ declare const defaultTheme: ({
81
+ hostname,
82
+ themePlugins,
83
+ ...localeOptions
84
+ }?: DefaultThemeOptions) => Theme;
85
+ //#endregion
86
+ //#region src/node/utils/assignDefaultLocaleOptions.d.ts
87
+ declare const DEFAULT_LOCALE_OPTIONS: DefaultThemeLocaleOptions;
88
+ declare const DEFAULT_LOCALE_DATA: DefaultThemeLocaleData;
89
+ /**
90
+ * Assign default options
91
+ *
92
+ * @param localeOptions - Locale options to assign default options
93
+ */
94
+ declare const assignDefaultLocaleOptions: (localeOptions: DefaultThemeLocaleOptions) => void;
95
+ //#endregion
96
+ //#region src/node/utils/resolveMarkdownHintLocales.d.ts
97
+ /**
98
+ * Resolve options for `@vuepress/plugin-markdown-container`
99
+ *
100
+ * For custom containers default title
101
+ *
102
+ * @param localeOptions - Locales config from theme options
103
+ * @returns Locales config for `@vuepress/plugin-markdown-container`
104
+ */
105
+ declare const resolveMarkdownHintLocales: (localeOptions: DefaultThemeData) => LocaleConfig<MarkdownHintPluginLocaleData>;
106
+ //#endregion
107
+ export { AutoLinkOptions, DEFAULT_LOCALE_DATA, DEFAULT_LOCALE_OPTIONS, DefaultThemeData, DefaultThemeHomePageFrontmatter, DefaultThemeLocaleData, DefaultThemeLocaleOptions, DefaultThemeNormalPageFrontmatter, DefaultThemeOptions, DefaultThemePageData, DefaultThemePageFrontmatter, DefaultThemePluginsOptions, NavGroup, NavItemOptions, NavbarGroupOptions, NavbarLinkOptions, NavbarOptions, SidebarArrayOptions, SidebarGroupOptions, SidebarItemOptions, SidebarLinkOptions, SidebarObjectOptions, SidebarOptions, assignDefaultLocaleOptions, defaultTheme, resolveMarkdownHintLocales };
108
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,2 @@
1
+ import{addViteOptimizeDepsExclude as e}from"@vuepress/helper";import{activeHeaderLinksPlugin as t}from"@vuepress/plugin-active-header-links";import{backToTopPlugin as n}from"@vuepress/plugin-back-to-top";import{copyCodePlugin as r}from"@vuepress/plugin-copy-code";import{gitPlugin as i}from"@vuepress/plugin-git";import{linksCheckPlugin as a}from"@vuepress/plugin-links-check";import{markdownHintPlugin as o}from"@vuepress/plugin-markdown-hint";import{markdownTabPlugin as s}from"@vuepress/plugin-markdown-tab";import{mediumZoomPlugin as c}from"@vuepress/plugin-medium-zoom";import{nprogressPlugin as l}from"@vuepress/plugin-nprogress";import{palettePlugin as u}from"@vuepress/plugin-palette";import{prismjsPlugin as d}from"@vuepress/plugin-prismjs";import{seoPlugin as f}from"@vuepress/plugin-seo";import{sitemapPlugin as p}from"@vuepress/plugin-sitemap";import{themeDataPlugin as m}from"@vuepress/plugin-theme-data";import{isPlainObject as h}from"vuepress/shared";import{fs as g,getDirname as _,path as v}from"vuepress/utils";const y={colorMode:`auto`,colorModeSwitch:!0,navbar:[],logo:null,repo:null,selectLanguageText:`Languages`,selectLanguageAriaLabel:`Select language`,sidebar:`heading`,sidebarDepth:2,editLink:!0,editLinkText:`Edit this page`,lastUpdated:!0,contributors:!0,contributorsText:`Contributors`,notFound:[`There's nothing here.`,`How did we get here?`,`That's a Four-Oh-Four.`,`Looks like we've got some broken links.`],backToHome:`Take me home`,openInNewWindow:`open in new window`,toggleColorMode:`toggle color mode`,toggleSidebar:`toggle sidebar`},b={selectLanguageName:`English`},x=e=>{e.locales??={},Object.assign(e,{...y,...e}),e.locales[`/`]??={},Object.assign(e.locales[`/`],{...b,...e.locales[`/`]})},S=e=>Object.entries(e.locales??{}).reduce((e,[t,n])=>(e[t]={},n.tip&&(e[t].tip=n.tip),n.warning&&(e[t].warning=n.warning),n.danger&&(e[t].caution=n.danger),n.important&&(e[t].important=n.important),n.note&&(e[t].note=n.note),e),{}),C=import.meta.dirname||_(import.meta.url),w=({hostname:_,themePlugins:y={},...b}={})=>(x(b),{name:`@vuepress/theme-default`,templateBuild:v.resolve(C,`../../templates/build.html`),alias:{...Object.fromEntries(g.readdirSync(v.resolve(C,`../client/components`)).filter(e=>e.endsWith(`.vue`)).map(e=>[`@theme/${e}`,v.resolve(C,`../client/components`,e)])),...Object.fromEntries(g.readdirSync(v.resolve(C,`../client/composables`)).filter(e=>e.endsWith(`.js`)).map(e=>[`@theme/${e.slice(0,-3)}`,v.resolve(C,`../client/composables`,e)])),...Object.fromEntries(g.readdirSync(v.resolve(C,`../client/utils`)).filter(e=>e.endsWith(`.js`)).map(e=>[`@theme/${e.slice(0,-3)}`,v.resolve(C,`../client/utils`,e)]))},clientConfigFile:v.resolve(C,`../client/config.js`),extendsBundlerOptions:(t,n)=>{e(t,n,`@theme`)},extendsPage:e=>{e.data.filePathRelative=e.filePathRelative,e.routeMeta.title=e.title},plugins:[y.activeHeaderLinks??!0?t({delay:300}):[],y.backToTop??!0?n(h(y.backToTop)?y.backToTop:{}):[],y.copyCode??!0?r({...h(y.copyCode)?y.copyCode:{}}):[],y.hint??!0?o({locales:S(b),...h(y.hint)?y.hint:{}}):[],y.git??!0?i({createdTime:!1,updatedTime:b.lastUpdated??!0,changelog:{repoUrl:b.repo||``},...h(y.git)?y.git:{}}):[],y.linksCheck??!0?a(h(y.linksCheck)?y.linksCheck:{}):[],y.mediumZoom??!0?c():[],y.nprogress??!0?l():[],u({preset:`sass`}),y.prismjs??!0?d(h(y.prismjs)?y.prismjs:{}):[],_&&(y.seo??!0)?f({hostname:_,...h(y.seo)?y.seo:{}}):[],_&&(y.sitemap??!0)?p({hostname:_,...h(y.sitemap)?y.sitemap:{}}):[],y.tab??!0?s(h(y.tab)?y.tab:{codeTabs:!0,tabs:!0}):[],m({themeData:b})]});export{b as DEFAULT_LOCALE_DATA,y as DEFAULT_LOCALE_OPTIONS,x as assignDefaultLocaleOptions,w as defaultTheme,S as resolveMarkdownHintLocales};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/node/utils/assignDefaultLocaleOptions.ts","../../src/node/utils/resolveMarkdownHintLocales.ts","../../src/node/defaultTheme.ts"],"sourcesContent":["import type {\n DefaultThemeLocaleData,\n DefaultThemeLocaleOptions,\n} from '../../shared/index.js'\n\nexport const DEFAULT_LOCALE_OPTIONS: DefaultThemeLocaleOptions = {\n // color mode\n colorMode: 'auto',\n colorModeSwitch: true,\n\n // navbar\n navbar: [],\n logo: null,\n repo: null,\n selectLanguageText: 'Languages',\n selectLanguageAriaLabel: 'Select language',\n\n // sidebar\n sidebar: 'heading',\n sidebarDepth: 2,\n\n // page meta\n editLink: true,\n editLinkText: 'Edit this page',\n lastUpdated: true,\n contributors: true,\n contributorsText: 'Contributors',\n\n // 404 page messages\n notFound: [\n `There's nothing here.`,\n `How did we get here?`,\n `That's a Four-Oh-Four.`,\n `Looks like we've got some broken links.`,\n ],\n backToHome: 'Take me home',\n\n // a11y\n openInNewWindow: 'open in new window',\n toggleColorMode: 'toggle color mode',\n toggleSidebar: 'toggle sidebar',\n}\n\nexport const DEFAULT_LOCALE_DATA: DefaultThemeLocaleData = {\n // navbar\n selectLanguageName: 'English',\n}\n\n/**\n * Assign default options\n *\n * @param localeOptions - Locale options to assign default options\n */\nexport const assignDefaultLocaleOptions = (\n localeOptions: DefaultThemeLocaleOptions,\n): void => {\n localeOptions.locales ??= {}\n Object.assign(localeOptions, {\n ...DEFAULT_LOCALE_OPTIONS,\n ...localeOptions,\n })\n localeOptions.locales['/'] ??= {}\n Object.assign(localeOptions.locales['/'], {\n ...DEFAULT_LOCALE_DATA,\n ...localeOptions.locales['/'],\n })\n}\n","import type { MarkdownHintPluginLocaleData } from '@vuepress/plugin-markdown-hint'\nimport type { LocaleConfig } from 'vuepress/shared'\nimport type { DefaultThemeData } from '../../shared/index.js'\n\n/**\n * Resolve options for `@vuepress/plugin-markdown-container`\n *\n * For custom containers default title\n *\n * @param localeOptions - Locales config from theme options\n * @returns Locales config for `@vuepress/plugin-markdown-container`\n */\nexport const resolveMarkdownHintLocales = (\n localeOptions: DefaultThemeData,\n): LocaleConfig<MarkdownHintPluginLocaleData> =>\n Object.entries(localeOptions.locales ?? {}).reduce<\n LocaleConfig<MarkdownHintPluginLocaleData>\n >((result, [key, value]) => {\n result[key] = {}\n\n if (value.tip) result[key].tip = value.tip\n if (value.warning) result[key].warning = value.warning\n if (value.danger) result[key].caution = value.danger\n if (value.important) result[key].important = value.important\n if (value.note) result[key].note = value.note\n\n return result\n }, {})\n","import { addViteOptimizeDepsExclude } from '@vuepress/helper'\nimport { activeHeaderLinksPlugin } from '@vuepress/plugin-active-header-links'\nimport { backToTopPlugin } from '@vuepress/plugin-back-to-top'\nimport { copyCodePlugin } from '@vuepress/plugin-copy-code'\nimport { gitPlugin } from '@vuepress/plugin-git'\nimport { linksCheckPlugin } from '@vuepress/plugin-links-check'\nimport { markdownHintPlugin } from '@vuepress/plugin-markdown-hint'\nimport { markdownTabPlugin } from '@vuepress/plugin-markdown-tab'\nimport { mediumZoomPlugin } from '@vuepress/plugin-medium-zoom'\nimport { nprogressPlugin } from '@vuepress/plugin-nprogress'\nimport { palettePlugin } from '@vuepress/plugin-palette'\nimport { prismjsPlugin } from '@vuepress/plugin-prismjs'\nimport { seoPlugin } from '@vuepress/plugin-seo'\nimport { sitemapPlugin } from '@vuepress/plugin-sitemap'\nimport { themeDataPlugin } from '@vuepress/plugin-theme-data'\nimport type { Page, Theme } from 'vuepress/core'\nimport { isPlainObject } from 'vuepress/shared'\nimport { fs, getDirname, path } from 'vuepress/utils'\nimport type {\n DefaultThemeLocaleOptions,\n DefaultThemePageData,\n} from '../shared/index.js'\nimport type { DefaultThemePluginsOptions } from './typings.js'\nimport {\n assignDefaultLocaleOptions,\n resolveMarkdownHintLocales,\n} from './utils/index.js'\n\nconst __dirname = import.meta.dirname || getDirname(import.meta.url)\n\nexport interface DefaultThemeOptions extends DefaultThemeLocaleOptions {\n /**\n * deployed hostname\n */\n hostname?: string\n\n /**\n * To avoid confusion with the root `plugins` option,\n * we use `themePlugins`\n */\n themePlugins?: DefaultThemePluginsOptions\n}\n\nexport const defaultTheme = ({\n hostname,\n themePlugins = {},\n ...localeOptions\n}: DefaultThemeOptions = {}): Theme => {\n assignDefaultLocaleOptions(localeOptions)\n\n return {\n name: '@vuepress/theme-default',\n\n templateBuild: path.resolve(__dirname, '../../templates/build.html'),\n\n alias: {\n // use alias to make all components replaceable\n ...Object.fromEntries(\n fs\n .readdirSync(path.resolve(__dirname, '../client/components'))\n .filter((file) => file.endsWith('.vue'))\n .map((file) => [\n `@theme/${file}`,\n path.resolve(__dirname, '../client/components', file),\n ]),\n ),\n // use alias to make all composables replaceable\n ...Object.fromEntries(\n fs\n .readdirSync(path.resolve(__dirname, '../client/composables'))\n .filter((file) => file.endsWith('.js'))\n .map((file) => [\n `@theme/${file.slice(0, -3)}`,\n path.resolve(__dirname, '../client/composables', file),\n ]),\n ),\n // use alias to make all utils replaceable\n ...Object.fromEntries(\n fs\n .readdirSync(path.resolve(__dirname, '../client/utils'))\n .filter((file) => file.endsWith('.js'))\n .map((file) => [\n `@theme/${file.slice(0, -3)}`,\n path.resolve(__dirname, '../client/utils', file),\n ]),\n ),\n },\n\n clientConfigFile: path.resolve(__dirname, '../client/config.js'),\n\n extendsBundlerOptions: (bundlerOptions, app) => {\n // ensure theme alias is not optimized by Vite\n addViteOptimizeDepsExclude(bundlerOptions, app, '@theme')\n },\n\n extendsPage: (page: Page<Partial<DefaultThemePageData>>) => {\n // save relative file path into page data to generate edit link\n page.data.filePathRelative = page.filePathRelative\n // save title into route meta to generate navbar and sidebar\n page.routeMeta.title = page.title\n },\n\n plugins: [\n // @vuepress/plugin-active-header-link\n (themePlugins.activeHeaderLinks ?? true)\n ? activeHeaderLinksPlugin({\n // should greater than page transition duration\n delay: 300,\n })\n : [],\n\n // @vuepress/plugin-back-to-top\n (themePlugins.backToTop ?? true)\n ? backToTopPlugin(\n isPlainObject(themePlugins.backToTop) ? themePlugins.backToTop : {},\n )\n : [],\n\n // @vuepress/plugin-copy-code\n (themePlugins.copyCode ?? true)\n ? copyCodePlugin({\n ...(isPlainObject(themePlugins.copyCode)\n ? themePlugins.copyCode\n : {}),\n })\n : [],\n\n // @vuepress/plugin-markdown-container\n (themePlugins.hint ?? true)\n ? markdownHintPlugin({\n locales: resolveMarkdownHintLocales(localeOptions),\n ...(isPlainObject(themePlugins.hint) ? themePlugins.hint : {}),\n })\n : [],\n\n // @vuepress/plugin-git\n (themePlugins.git ?? true)\n ? gitPlugin({\n createdTime: false,\n updatedTime: localeOptions.lastUpdated ?? true,\n changelog: { repoUrl: localeOptions.repo || '' },\n ...(isPlainObject(themePlugins.git) ? themePlugins.git : {}),\n })\n : [],\n\n // @vuepress/plugin-links-check\n (themePlugins.linksCheck ?? true)\n ? linksCheckPlugin(\n isPlainObject(themePlugins.linksCheck)\n ? themePlugins.linksCheck\n : {},\n )\n : [],\n\n // @vuepress/plugin-medium-zoom\n (themePlugins.mediumZoom ?? true) ? mediumZoomPlugin() : [],\n\n // @vuepress/plugin-nprogress\n (themePlugins.nprogress ?? true) ? nprogressPlugin() : [],\n\n // @vuepress/plugin-palette\n palettePlugin({ preset: 'sass' }),\n\n // @vuepress/plugin-prismjs\n (themePlugins.prismjs ?? true)\n ? prismjsPlugin(\n isPlainObject(themePlugins.prismjs) ? themePlugins.prismjs : {},\n )\n : [],\n\n // @vuepress/plugin-seo\n hostname && (themePlugins.seo ?? true)\n ? seoPlugin({\n hostname,\n ...(isPlainObject(themePlugins.seo) ? themePlugins.seo : {}),\n })\n : [],\n\n // @vuepress/plugin-sitemap\n hostname && (themePlugins.sitemap ?? true)\n ? sitemapPlugin({\n hostname,\n ...(isPlainObject(themePlugins.sitemap)\n ? themePlugins.sitemap\n : {}),\n })\n : [],\n\n // @vuepress/plugin-markdown-tab\n (themePlugins.tab ?? true)\n ? markdownTabPlugin(\n isPlainObject(themePlugins.tab)\n ? themePlugins.tab\n : { codeTabs: true, tabs: true },\n )\n : [],\n\n // @vuepress/plugin-theme-data\n themeDataPlugin({ themeData: localeOptions }),\n ],\n }\n}\n"],"mappings":"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"}
@@ -0,0 +1,292 @@
1
+ import { t as AutoLinkOptions } from "./nav-DikslSJ_.js";
2
+ import { o as SidebarOptions, t as SidebarArrayOptions, u as NavbarOptions } from "./sidebar-CF1YPYLN.js";
3
+ import { GitPluginPageData } from "@vuepress/plugin-git";
4
+ import { ThemeData } from "@vuepress/plugin-theme-data";
5
+ import { LocaleData, PageFrontmatter } from "vuepress/shared";
6
+
7
+ //#region src/shared/options.d.ts
8
+ type DefaultThemeLocaleOptions = DefaultThemeData;
9
+ type DefaultThemeData = ThemeData<DefaultThemeLocaleData>;
10
+ interface DefaultThemeLocaleData extends LocaleData {
11
+ /**
12
+ * Default color mode
13
+ *
14
+ * @default 'auto'
15
+ */
16
+ colorMode?: 'auto' | 'dark' | 'light';
17
+ /**
18
+ * Enable color mode switching and display a button in navbar or not
19
+ *
20
+ * @default true
21
+ */
22
+ colorModeSwitch?: boolean;
23
+ /**
24
+ * Whether show external link icon
25
+ *
26
+ * @default true
27
+ */
28
+ externalLinkIcon?: boolean;
29
+ /**
30
+ * Home path of current locale
31
+ *
32
+ * Used as the link of back-to-home and navbar logo
33
+ */
34
+ home?: string;
35
+ /**
36
+ * Navbar config
37
+ *
38
+ * Set to `false` to disable navbar in current locale
39
+ */
40
+ navbar?: NavbarOptions;
41
+ /**
42
+ * Navbar label used for screen readers using the `aria-label` attribute
43
+ */
44
+ navbarLabel?: string | null;
45
+ /**
46
+ * Page navbar label used for screen readers using the `aria-label` attribute
47
+ */
48
+ pageNavbarLabel?: string | null;
49
+ /**
50
+ * Navbar logo config
51
+ *
52
+ * Logo to display in navbar
53
+ */
54
+ logo?: string | null;
55
+ /**
56
+ * Navbar logo config for dark mode
57
+ *
58
+ * Logo to display in navbar in dark mode
59
+ */
60
+ logoDark?: string | null;
61
+ /**
62
+ * The alt text of navbar logo.
63
+ * Defaults to the site title if not specified.
64
+ * If the value is the same as the site title, the site title rendered in the navbar will be
65
+ * hidden from screen readers to avoid duplication.
66
+ */
67
+ logoAlt?: string | null;
68
+ /**
69
+ * Navbar repository config
70
+ *
71
+ * Used for the repository link of navbar
72
+ */
73
+ repo?: string | null;
74
+ /**
75
+ * Navbar repository config
76
+ *
77
+ * Used for the repository text of navbar
78
+ */
79
+ repoLabel?: string;
80
+ /**
81
+ * Navbar language selection config
82
+ *
83
+ * Text of the language selection dropdown
84
+ */
85
+ selectLanguageText?: string;
86
+ /**
87
+ * Navbar language selection config
88
+ *
89
+ * Aria label of of the language selection dropdown
90
+ */
91
+ selectLanguageAriaLabel?: string;
92
+ /**
93
+ * Navbar language selection config
94
+ *
95
+ * Language name of current locale
96
+ *
97
+ * Displayed inside the language selection dropdown
98
+ */
99
+ selectLanguageName?: string;
100
+ /**
101
+ * Sidebar config
102
+ *
103
+ * Set to `false` to disable sidebar in current locale
104
+ */
105
+ sidebar?: SidebarOptions | false;
106
+ /**
107
+ * Sidebar depth
108
+ *
109
+ * - Set to `0` to disable all levels
110
+ * - Set to `1` to include `<h2>`
111
+ * - Set to `2` to include `<h2>` and `<h3>`
112
+ * - ...
113
+ *
114
+ * The max value depends on which headers you have extracted
115
+ * via `markdown.headers.level`.
116
+ *
117
+ * The default value of `markdown.headers.level` is `[2, 3]`,
118
+ * so the default max value of `sidebarDepth` is `2`
119
+ */
120
+ sidebarDepth?: number;
121
+ /**
122
+ * Page meta - edit link config
123
+ *
124
+ * Whether to show "Edit this page" or not
125
+ */
126
+ editLink?: boolean;
127
+ /**
128
+ * Page meta - edit link config
129
+ *
130
+ * The text to replace the default "Edit this page"
131
+ */
132
+ editLinkText?: string;
133
+ /**
134
+ * Page meta - edit link config
135
+ *
136
+ * Pattern of edit link
137
+ *
138
+ * @example ':repo/edit/:branch/:path'
139
+ */
140
+ editLinkPattern?: string;
141
+ /**
142
+ * Page meta - edit link config
143
+ *
144
+ * Use `repo` config by default
145
+ *
146
+ * Set this config if your docs is placed in a different repo
147
+ */
148
+ docsRepo?: string;
149
+ /**
150
+ * Page meta - edit link config
151
+ *
152
+ * Set this config if the branch of your docs is not 'main'
153
+ */
154
+ docsBranch?: string;
155
+ /**
156
+ * Page meta - edit link config
157
+ *
158
+ * Set this config if your docs is placed in sub dir of your `docsRepo`
159
+ */
160
+ docsDir?: string;
161
+ /**
162
+ * Page meta - last updated config
163
+ *
164
+ * Whether to show "Last Updated" or not
165
+ */
166
+ lastUpdated?: boolean;
167
+ /**
168
+ * Page meta - last updated config
169
+ *
170
+ * The text to replace the default "Last Updated"
171
+ */
172
+ lastUpdatedText?: string;
173
+ /**
174
+ * Page meta - contributors config
175
+ *
176
+ * Whether to show "Contributors" or not
177
+ */
178
+ contributors?: boolean;
179
+ /**
180
+ * Page meta - contributors config
181
+ *
182
+ * The text to replace the default "Contributors"
183
+ */
184
+ contributorsText?: string;
185
+ /**
186
+ * Custom block config
187
+ *
188
+ * Default title of TIP custom block
189
+ */
190
+ tip?: string;
191
+ /**
192
+ * Custom block config
193
+ *
194
+ * Default title of WARNING custom block
195
+ */
196
+ warning?: string;
197
+ /**
198
+ * Custom block config
199
+ *
200
+ * Default title of DANGER custom block
201
+ */
202
+ danger?: string;
203
+ /**
204
+ * Custom block config
205
+ *
206
+ * Default title of IMPORTANT custom block
207
+ */
208
+ important?: string;
209
+ /**
210
+ * Custom block config
211
+ *
212
+ * Default title of NOTE custom block
213
+ */
214
+ note?: string;
215
+ /**
216
+ * 404 page config
217
+ *
218
+ * Not Found messages for 404 page
219
+ */
220
+ notFound?: string[];
221
+ /**
222
+ * 404 page config
223
+ *
224
+ * Text of back-to-home link in 404 page
225
+ */
226
+ backToHome?: string;
227
+ /**
228
+ * A11y text for external link icon
229
+ */
230
+ openInNewWindow?: string;
231
+ /**
232
+ * A11y text for color mode toggle button
233
+ */
234
+ toggleColorMode?: string;
235
+ /**
236
+ * A11y text for sidebar toggle button
237
+ */
238
+ toggleSidebar?: string;
239
+ /**
240
+ * text for prev link
241
+ */
242
+ prev?: string | false;
243
+ /**
244
+ * text for next link
245
+ */
246
+ next?: string | false;
247
+ }
248
+ //#endregion
249
+ //#region src/shared/page.d.ts
250
+ interface DefaultThemePageData extends Partial<GitPluginPageData> {
251
+ filePathRelative: string | null;
252
+ }
253
+ interface DefaultThemePageFrontmatter extends PageFrontmatter {
254
+ home?: boolean;
255
+ navbar?: boolean;
256
+ pageClass?: string;
257
+ externalLinkIcon?: boolean;
258
+ }
259
+ interface DefaultThemeHomePageFrontmatter extends DefaultThemePageFrontmatter {
260
+ home: true;
261
+ heroImage?: string;
262
+ heroImageDark?: string;
263
+ heroAlt?: string;
264
+ heroHeight?: number;
265
+ heroText?: string | null;
266
+ tagline?: string | null;
267
+ actions?: {
268
+ text: string;
269
+ link: string;
270
+ type?: 'primary' | 'secondary';
271
+ }[];
272
+ features?: {
273
+ title: string;
274
+ details: string;
275
+ }[];
276
+ footer?: string;
277
+ footerHtml?: boolean;
278
+ }
279
+ interface DefaultThemeNormalPageFrontmatter extends DefaultThemePageFrontmatter {
280
+ home?: false;
281
+ editLink?: boolean;
282
+ editLinkPattern?: string;
283
+ lastUpdated?: boolean;
284
+ contributors?: boolean;
285
+ sidebar?: SidebarArrayOptions | 'heading' | false;
286
+ sidebarDepth?: number;
287
+ prev?: AutoLinkOptions | string;
288
+ next?: AutoLinkOptions | string;
289
+ }
290
+ //#endregion
291
+ export { DefaultThemeData as a, DefaultThemePageFrontmatter as i, DefaultThemeNormalPageFrontmatter as n, DefaultThemeLocaleData as o, DefaultThemePageData as r, DefaultThemeLocaleOptions as s, DefaultThemeHomePageFrontmatter as t };
292
+ //# sourceMappingURL=page-FWcDnzJp.d.ts.map
@@ -1,4 +1,6 @@
1
- import type { AutoLinkOptions } from '../../shared/index.js';
1
+ import { t as AutoLinkOptions } from "./nav-DikslSJ_.js";
2
+
3
+ //#region src/client/utils/resolveAutoLink.d.ts
2
4
  /**
3
5
  * Resolve AutoLink props from string
4
6
  *
@@ -12,4 +14,7 @@ import type { AutoLinkOptions } from '../../shared/index.js';
12
14
  * - Input: '/README.md'
13
15
  * - Output: { text: 'Home', link: '/' }
14
16
  */
15
- export declare const resolveAutoLink: (config: string, currentPath?: string) => AutoLinkOptions;
17
+ declare const resolveAutoLink: (config: string, currentPath?: string) => AutoLinkOptions;
18
+ //#endregion
19
+ export { resolveAutoLink as t };
20
+ //# sourceMappingURL=resolveAutoLink-BR2Z05MD.d.ts.map
@@ -0,0 +1,20 @@
1
+ import { RepoType } from "@theme/resolveRepoType";
2
+
3
+ //#region src/client/utils/resolveEditLink.d.ts
4
+ declare const EDIT_LINK_PATTERNS: Record<Exclude<RepoType, null>, string>;
5
+ declare const resolveEditLink: ({
6
+ docsRepo,
7
+ docsBranch,
8
+ docsDir,
9
+ filePathRelative,
10
+ editLinkPattern
11
+ }: {
12
+ docsRepo: string;
13
+ docsBranch: string;
14
+ docsDir: string;
15
+ filePathRelative: string | null;
16
+ editLinkPattern?: string;
17
+ }) => string | null;
18
+ //#endregion
19
+ export { resolveEditLink as n, EDIT_LINK_PATTERNS as t };
20
+ //# sourceMappingURL=resolveEditLink-DazcWeGf.d.ts.map
@@ -0,0 +1,5 @@
1
+ //#region src/client/utils/resolvePrefix.d.ts
2
+ declare const resolvePrefix: (prefix?: string, path?: string) => string;
3
+ //#endregion
4
+ export { resolvePrefix as t };
5
+ //# sourceMappingURL=resolvePrefix-BN9K9RA5.d.ts.map
@@ -0,0 +1,6 @@
1
+ //#region src/client/utils/resolveRepoType.d.ts
2
+ type RepoType = 'Bitbucket' | 'Gitee' | 'GitHub' | 'GitLab' | null;
3
+ declare const resolveRepoType: (repo: string) => RepoType;
4
+ //#endregion
5
+ export { resolveRepoType as n, RepoType as t };
6
+ //# sourceMappingURL=resolveRepoType-Wcj35_rs.d.ts.map
@@ -0,0 +1,53 @@
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
@@ -0,0 +1,19 @@
1
+ import { t as AutoLinkOptions } from "./nav-DikslSJ_.js";
2
+ import { i as SidebarLinkOptions, n as SidebarGroupOptions, s as NavGroup } from "./sidebar-CF1YPYLN.js";
3
+
4
+ //#region src/client/typings.d.ts
5
+ type NavbarItem = AutoLinkOptions | NavGroup<NavbarItem>;
6
+ type SidebarLinkItem = SidebarLinkOptions;
7
+ interface SidebarHeaderItem {
8
+ text: string;
9
+ link: string;
10
+ children?: SidebarHeaderItem[];
11
+ }
12
+ interface SidebarGroupItem extends SidebarGroupOptions {
13
+ prefix?: string;
14
+ children: (SidebarHeaderItem | SidebarItem)[];
15
+ }
16
+ type SidebarItem = SidebarGroupItem | SidebarLinkItem;
17
+ //#endregion
18
+ export { SidebarLinkItem as a, SidebarItem as i, SidebarGroupItem as n, SidebarHeaderItem as r, NavbarItem as t };
19
+ //# sourceMappingURL=typings-NbQSzbOn.d.ts.map
@@ -0,0 +1,19 @@
1
+ import { WritableComputedRef } from "vue";
2
+
3
+ //#region src/client/composables/useDarkMode.d.ts
4
+ type DarkModeRef = WritableComputedRef<boolean>;
5
+ /**
6
+ * Inject dark mode global computed
7
+ *
8
+ * 注入暗色模式全局计算属性
9
+ *
10
+ * @returns Dark mode ref / 暗色模式引用
11
+ */
12
+ declare const useDarkMode: () => DarkModeRef;
13
+ /**
14
+ * Create dark mode ref and provide as global computed in setup
15
+ */
16
+ declare const setupDarkMode: () => void;
17
+ //#endregion
18
+ export { setupDarkMode as n, useDarkMode as r, DarkModeRef as t };
19
+ //# sourceMappingURL=useDarkMode-DLor2cV7.d.ts.map
@@ -0,0 +1,13 @@
1
+ import { a as DefaultThemeData, n as DefaultThemeNormalPageFrontmatter, r as DefaultThemePageData } from "./page-FWcDnzJp.js";
2
+ import { ClientData } from "vuepress/client";
3
+ import { ThemeDataRef, ThemeLocaleDataRef } from "@vuepress/plugin-theme-data/client";
4
+
5
+ //#region src/client/composables/useData.d.ts
6
+ interface Data<PageFrontmatter extends Record<string, unknown> = DefaultThemeNormalPageFrontmatter, PageData extends Record<string, unknown> = DefaultThemePageData> extends Pick<ClientData<PageFrontmatter, PageData>, 'frontmatter' | 'head' | 'headTitle' | 'lang' | 'layouts' | 'page' | 'pageComponent' | 'pageLayout' | 'redirects' | 'routeLocale' | 'routePath' | 'routes' | 'site' | 'siteLocale'> {
7
+ theme: ThemeDataRef<DefaultThemeData>;
8
+ themeLocale: ThemeLocaleDataRef<DefaultThemeData>;
9
+ }
10
+ declare const useData$1: <PageFrontmatter extends Record<string, unknown> = DefaultThemeNormalPageFrontmatter, PageData extends Record<string, unknown> = DefaultThemePageData>() => Data<PageFrontmatter, PageData>;
11
+ //#endregion
12
+ export { useData$1 as n, Data as t };
13
+ //# sourceMappingURL=useData-JDen_Bxm.d.ts.map
@@ -0,0 +1,8 @@
1
+ import { AutoLinkConfig } from "vuepress/client";
2
+ import { ComputedRef } from "vue";
3
+
4
+ //#region src/client/composables/useEditLink.d.ts
5
+ declare const useEditLink: () => ComputedRef<AutoLinkConfig | null>;
6
+ //#endregion
7
+ export { useEditLink as t };
8
+ //# sourceMappingURL=useEditLink-DPCTvXmM.d.ts.map
@@ -0,0 +1,8 @@
1
+ import { t as NavbarItem } from "./typings-NbQSzbOn.js";
2
+ import { ComputedRef } from "vue";
3
+
4
+ //#region src/client/composables/useNavbarConfig.d.ts
5
+ declare const useNavbarConfig: () => ComputedRef<NavbarItem[]>;
6
+ //#endregion
7
+ export { useNavbarConfig as t };
8
+ //# sourceMappingURL=useNavbarConfig-C19TGFg7.d.ts.map
@@ -0,0 +1,13 @@
1
+ import { t as NavbarItem } from "./typings-NbQSzbOn.js";
2
+ import { ComputedRef } from "vue";
3
+
4
+ //#region src/client/composables/useNavbarRepo.d.ts
5
+ /**
6
+ * Repository link in navbar
7
+ *
8
+ * @returns Navbar config of repository link / 仓库链接的导航栏配置
9
+ */
10
+ declare const useNavbarRepo: () => ComputedRef<NavbarItem[]>;
11
+ //#endregion
12
+ export { useNavbarRepo as t };
13
+ //# sourceMappingURL=useNavbarRepo-DxhSIAFq.d.ts.map