@vuepress/theme-default 2.0.0-rc.132 → 2.0.0-rc.135

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 (45) hide show
  1. package/dist/client/composables/index.d.ts +7 -7
  2. package/dist/client/composables/index.js +1 -1
  3. package/dist/client/composables/useData.d.ts +1 -1
  4. package/dist/client/composables/useHeaders.d.ts +4 -5
  5. package/dist/client/composables/useNavbarConfig.d.ts +1 -1
  6. package/dist/client/composables/useNavbarRepo.d.ts +1 -1
  7. package/dist/client/composables/useNavbarSelectLanguage.d.ts +1 -1
  8. package/dist/client/composables/useRelatedLinks.d.ts +1 -1
  9. package/dist/client/composables/useSidebarItems.d.ts +1 -1
  10. package/dist/client/composables/useUpdateDeviceStatus.js +1 -1
  11. package/dist/client/config.d.ts +3 -2
  12. package/dist/client/config.js +1 -1
  13. package/dist/client/config.js.map +1 -1
  14. package/dist/client/index.d.ts +13 -13
  15. package/dist/client/index.js +1 -1
  16. package/dist/client/utils/index.d.ts +4 -4
  17. package/dist/client/utils/index.js +1 -1
  18. package/dist/client/utils/isActiveSidebarItem.d.ts +1 -1
  19. package/dist/client/utils/isActiveSidebarItem.js +1 -1
  20. package/dist/client/utils/resolveAutoLink.d.ts +1 -1
  21. package/dist/client/utils/resolveRepoType.d.ts +1 -1
  22. package/dist/index-CKVw8AvB.d.ts +3 -0
  23. package/dist/index-D1ZnfV_H.d.ts +8 -0
  24. package/dist/{index-DkAtp85h.d.ts → index-DnNaefpa.d.ts} +6 -6
  25. package/dist/isActiveSidebarItem-CdmUcp0l.js +2 -0
  26. package/dist/{isActiveSidebarItem-BQHhsM53.js.map → isActiveSidebarItem-CdmUcp0l.js.map} +1 -1
  27. package/dist/{isActiveSidebarItem-DdHcB4fJ.d.ts → isActiveSidebarItem-CimWaCAf.d.ts} +2 -2
  28. package/dist/node/index.d.ts +8 -8
  29. package/dist/node/index.js.map +1 -1
  30. package/dist/{resolveAutoLink-LfZfSGFX.d.ts → resolveAutoLink-JDq36I7k.d.ts} +2 -2
  31. package/dist/{resolveRepoType-DEy0Gvc4.d.ts → resolveRepoType-DmT6nK6z.d.ts} +2 -2
  32. package/dist/{typings-Dsy2lPQS.d.ts → typings-Cbpr0bFc.d.ts} +2 -2
  33. package/dist/{useData-B20ETmVf.d.ts → useData-DLY6oMFR.d.ts} +3 -3
  34. package/dist/{useNavbarConfig-CXdLjfSJ.d.ts → useNavbarConfig-jIUipXMq.d.ts} +2 -2
  35. package/dist/{useNavbarRepo-BQ2wiq-1.d.ts → useNavbarRepo-B9pyDtUq.d.ts} +2 -2
  36. package/dist/{useNavbarSelectLanguage-Cd32nqUA.d.ts → useNavbarSelectLanguage-zG8uc9ys.d.ts} +2 -2
  37. package/dist/{useRelatedLinks-B5Hq7BUl.d.ts → useRelatedLinks-Ds7UdilB.d.ts} +2 -2
  38. package/dist/{useSidebarItems-xWOsGwcx.d.ts → useSidebarItems-C7_FZHit.d.ts} +3 -3
  39. package/dist/useUpdateDeviceStatus-eEm3JFFI.js +2 -0
  40. package/dist/{useUpdateDeviceStatus-DMKiVB3W.js.map → useUpdateDeviceStatus-eEm3JFFI.js.map} +1 -1
  41. package/package.json +23 -23
  42. package/dist/index-BIWlrErN.d.ts +0 -3
  43. package/dist/index-DgnmBYGr.d.ts +0 -8
  44. package/dist/isActiveSidebarItem-BQHhsM53.js +0 -2
  45. package/dist/useUpdateDeviceStatus-DMKiVB3W.js +0 -2
@@ -1,13 +1,13 @@
1
1
  import { n as setupDarkMode, r as useDarkMode, t as DarkModeRef } from "../../useDarkMode-DmWka_eQ.js";
2
- import { n as useData, t as Data } from "../../useData-B20ETmVf.js";
2
+ import { n as useData, t as Data } from "../../useData-DLY6oMFR.js";
3
3
  import { t as useEditLink } from "../../useEditLink-DXlW5QzK.js";
4
4
  import { t as useNavigate } from "../../useNavigate-zqYnxkd_.js";
5
- import { t as useNavbarConfig } from "../../useNavbarConfig-CXdLjfSJ.js";
6
- import { t as useNavbarRepo } from "../../useNavbarRepo-BQ2wiq-1.js";
7
- import { t as useNavbarSelectLanguage } from "../../useNavbarSelectLanguage-Cd32nqUA.js";
8
- import { t as useRelatedLinks } from "../../useRelatedLinks-B5Hq7BUl.js";
5
+ import { t as useNavbarConfig } from "../../useNavbarConfig-jIUipXMq.js";
6
+ import { t as useNavbarRepo } from "../../useNavbarRepo-B9pyDtUq.js";
7
+ import { t as useNavbarSelectLanguage } from "../../useNavbarSelectLanguage-zG8uc9ys.js";
8
+ import { t as useRelatedLinks } from "../../useRelatedLinks-Ds7UdilB.js";
9
9
  import { n as useScrollPromise, t as ScrollPromise } from "../../useScrollPromise-TwtWBE3d.js";
10
- import { a as resolveSidebarItems, c as setupSidebarItems, i as resolveSidebarHeadingItem, l as sidebarItemsSymbol, n as resolveArraySidebarItems, o as resolveSidebarPageHeader, r as resolveMultiSidebarItems, s as resolveSidebarPageHeaders, t as SidebarItemsRef, u as useSidebarItems } from "../../useSidebarItems-xWOsGwcx.js";
10
+ import { a as resolveSidebarItems, c as setupSidebarItems, i as resolveSidebarHeadingItem, l as sidebarItemsSymbol, n as resolveArraySidebarItems, o as resolveSidebarPageHeader, r as resolveMultiSidebarItems, s as resolveSidebarPageHeaders, t as SidebarItemsRef, u as useSidebarItems } from "../../useSidebarItems-C7_FZHit.js";
11
11
  import { n as useUpdateDeviceStatus, t as DeviceType } from "../../useUpdateDeviceStatus-CsrJ_Qqv.js";
12
- import "../../index-DgnmBYGr.js";
12
+ import "../../index-D1ZnfV_H.js";
13
13
  export { DarkModeRef, Data, DeviceType, ScrollPromise, SidebarItemsRef, resolveArraySidebarItems, resolveMultiSidebarItems, resolveSidebarHeadingItem, resolveSidebarItems, resolveSidebarPageHeader, resolveSidebarPageHeaders, setupDarkMode, setupSidebarItems, sidebarItemsSymbol, useDarkMode, useData, useEditLink, useNavbarConfig, useNavbarRepo, useNavbarSelectLanguage, useNavigate, useRelatedLinks, useScrollPromise, useSidebarItems, useUpdateDeviceStatus };
@@ -1 +1 @@
1
- import{n as e,t}from"../../useDarkMode-BfKvIN6K.js";import{t as n}from"../../useData-nv4hwlgW.js";import{t as r}from"../../useEditLink-BmoW42FE.js";import{t as i}from"../../useNavigate-mlFey3ew.js";import{t as a}from"../../useNavbarConfig-CxVplYul.js";import{t as o}from"../../useNavbarRepo-BScd94be.js";import{t as s}from"../../useNavbarSelectLanguage-FHyzHFEW.js";import{t as c}from"../../useRelatedLinks-BwsPumn1.js";import{t as l}from"../../useScrollPromise-CB6ZLciv.js";import{a as u,c as d,i as f,l as p,n as m,o as h,r as g,s as _,t as v}from"../../useSidebarItems-D1vD1QQp.js";import{n as y,t as b}from"../../useUpdateDeviceStatus-DMKiVB3W.js";import"../../composables-CAISgiXf.js";export{b as DeviceType,v as resolveArraySidebarItems,m as resolveMultiSidebarItems,g as resolveSidebarHeadingItem,f as resolveSidebarItems,u as resolveSidebarPageHeader,h as resolveSidebarPageHeaders,t as setupDarkMode,_ as setupSidebarItems,d as sidebarItemsSymbol,e as useDarkMode,n as useData,r as useEditLink,a as useNavbarConfig,o as useNavbarRepo,s as useNavbarSelectLanguage,i as useNavigate,c as useRelatedLinks,l as useScrollPromise,p as useSidebarItems,y as useUpdateDeviceStatus};
1
+ import{n as e,t}from"../../useDarkMode-BfKvIN6K.js";import{t as n}from"../../useData-nv4hwlgW.js";import{t as r}from"../../useEditLink-BmoW42FE.js";import{t as i}from"../../useNavigate-mlFey3ew.js";import{t as a}from"../../useNavbarConfig-CxVplYul.js";import{t as o}from"../../useNavbarRepo-BScd94be.js";import{t as s}from"../../useNavbarSelectLanguage-FHyzHFEW.js";import{t as c}from"../../useRelatedLinks-BwsPumn1.js";import{t as l}from"../../useScrollPromise-CB6ZLciv.js";import{a as u,c as d,i as f,l as p,n as m,o as h,r as g,s as _,t as v}from"../../useSidebarItems-D1vD1QQp.js";import{n as y,t as b}from"../../useUpdateDeviceStatus-eEm3JFFI.js";import"../../composables-CAISgiXf.js";export{b as DeviceType,v as resolveArraySidebarItems,m as resolveMultiSidebarItems,g as resolveSidebarHeadingItem,f as resolveSidebarItems,u as resolveSidebarPageHeader,h as resolveSidebarPageHeaders,t as setupDarkMode,_ as setupSidebarItems,d as sidebarItemsSymbol,e as useDarkMode,n as useData,r as useEditLink,a as useNavbarConfig,o as useNavbarRepo,s as useNavbarSelectLanguage,i as useNavigate,c as useRelatedLinks,l as useScrollPromise,p as useSidebarItems,y as useUpdateDeviceStatus};
@@ -1,2 +1,2 @@
1
- import { n as useData, t as Data } from "../../useData-B20ETmVf.js";
1
+ import { n as useData, t as Data } from "../../useData-DLY6oMFR.js";
2
2
  export { Data, useData };
@@ -1,8 +1,8 @@
1
1
  import { HeaderItem } from "@vuepress/helper/client";
2
2
  import { InjectionKey, Ref } from "vue";
3
3
  //#region src/client/composables/useHeaders.d.ts
4
- type HeadersRef = Ref<HeaderItem[]>;
5
- declare const headersSymbol: InjectionKey<HeadersRef>;
4
+ export type HeadersRef = Ref<HeaderItem[]>;
5
+ export declare const headersSymbol: InjectionKey<HeadersRef>;
6
6
  /**
7
7
  * Inject headers
8
8
  *
@@ -10,8 +10,7 @@ declare const headersSymbol: InjectionKey<HeadersRef>;
10
10
  *
11
11
  * @returns Headers ref / 标题引用
12
12
  */
13
- declare const useHeaders: () => HeadersRef;
14
- declare const setupHeaders: () => void;
13
+ export declare const useHeaders: () => HeadersRef;
14
+ export declare const setupHeaders: () => void;
15
15
  //#endregion
16
- export { HeadersRef, headersSymbol, setupHeaders, useHeaders };
17
16
  //# sourceMappingURL=useHeaders.d.ts.map
@@ -1,2 +1,2 @@
1
- import { t as useNavbarConfig } from "../../useNavbarConfig-CXdLjfSJ.js";
1
+ import { t as useNavbarConfig } from "../../useNavbarConfig-jIUipXMq.js";
2
2
  export { useNavbarConfig };
@@ -1,2 +1,2 @@
1
- import { t as useNavbarRepo } from "../../useNavbarRepo-BQ2wiq-1.js";
1
+ import { t as useNavbarRepo } from "../../useNavbarRepo-B9pyDtUq.js";
2
2
  export { useNavbarRepo };
@@ -1,2 +1,2 @@
1
- import { t as useNavbarSelectLanguage } from "../../useNavbarSelectLanguage-Cd32nqUA.js";
1
+ import { t as useNavbarSelectLanguage } from "../../useNavbarSelectLanguage-zG8uc9ys.js";
2
2
  export { useNavbarSelectLanguage };
@@ -1,2 +1,2 @@
1
- import { t as useRelatedLinks } from "../../useRelatedLinks-B5Hq7BUl.js";
1
+ import { t as useRelatedLinks } from "../../useRelatedLinks-Ds7UdilB.js";
2
2
  export { useRelatedLinks };
@@ -1,2 +1,2 @@
1
- import { a as resolveSidebarItems, c as setupSidebarItems, i as resolveSidebarHeadingItem, l as sidebarItemsSymbol, n as resolveArraySidebarItems, o as resolveSidebarPageHeader, r as resolveMultiSidebarItems, s as resolveSidebarPageHeaders, t as SidebarItemsRef, u as useSidebarItems } from "../../useSidebarItems-xWOsGwcx.js";
1
+ import { a as resolveSidebarItems, c as setupSidebarItems, i as resolveSidebarHeadingItem, l as sidebarItemsSymbol, n as resolveArraySidebarItems, o as resolveSidebarPageHeader, r as resolveMultiSidebarItems, s as resolveSidebarPageHeaders, t as SidebarItemsRef, u as useSidebarItems } from "../../useSidebarItems-C7_FZHit.js";
2
2
  export { SidebarItemsRef, resolveArraySidebarItems, resolveMultiSidebarItems, resolveSidebarHeadingItem, resolveSidebarItems, resolveSidebarPageHeader, resolveSidebarPageHeaders, setupSidebarItems, sidebarItemsSymbol, useSidebarItems };
@@ -1 +1 @@
1
- import{n as e,t}from"../../useUpdateDeviceStatus-DMKiVB3W.js";export{t as DeviceType,e as useUpdateDeviceStatus};
1
+ import{n as e,t}from"../../useUpdateDeviceStatus-eEm3JFFI.js";export{t as DeviceType,e as useUpdateDeviceStatus};
@@ -1,8 +1,9 @@
1
+ import { ClientConfig } from "vuepress/client";
1
2
  import "@vuepress/helper/colors.css";
2
3
  import "@vuepress/helper/normalize.css";
3
4
  import "./styles/index.scss";
4
5
  //#region src/client/config.d.ts
5
- declare const _default: import("vuepress/client").ClientConfig;
6
+ export declare const clientConfig: ClientConfig;
6
7
  //#endregion
7
- export { _default as default };
8
+ export { clientConfig as default };
8
9
  //# sourceMappingURL=config.d.ts.map
@@ -1,2 +1,2 @@
1
- import{hasGlobalComponent as e}from"@vuepress/helper/client";import{defineClientConfig as t}from"vuepress/client";import{setupDarkMode as n}from"@theme/useDarkMode";import{setupHeaders as r}from"@theme/useHeaders";import{useScrollPromise as i}from"@theme/useScrollPromise";import{setupSidebarItems as a}from"@theme/useSidebarItems";import o from"./components/global/Badge.vue";import s from"./layouts/Layout.vue";import c from"./layouts/NotFound.vue";import"@vuepress/helper/colors.css";import"@vuepress/helper/normalize.css";import"./styles/index.scss";var l=t({enhance({app:t,router:n}){e(`Badge`)||t.component(`Badge`,o);let r=n.options.scrollBehavior;n.options.scrollBehavior=async(...e)=>(await i().wait(),r(...e))},setup(){n(),r(),a()},layouts:{Layout:s,NotFound:c}});export{l as default};
1
+ import{hasGlobalComponent as e}from"@vuepress/helper/client";import{defineClientConfig as t}from"vuepress/client";import{setupDarkMode as n}from"@theme/useDarkMode";import{setupHeaders as r}from"@theme/useHeaders";import{useScrollPromise as i}from"@theme/useScrollPromise";import{setupSidebarItems as a}from"@theme/useSidebarItems";import o from"./components/global/Badge.vue";import s from"./layouts/Layout.vue";import c from"./layouts/NotFound.vue";import"@vuepress/helper/colors.css";import"@vuepress/helper/normalize.css";import"./styles/index.scss";const l=t({enhance({app:t,router:n}){e(`Badge`)||t.component(`Badge`,o);let r=n.options.scrollBehavior;n.options.scrollBehavior=async(...e)=>(await i().wait(),r(...e))},setup(){n(),r(),a()},layouts:{Layout:s,NotFound:c}});export{l as clientConfig,l as default};
2
2
  //# sourceMappingURL=config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","names":[],"sources":["../../src/client/config.ts"],"sourcesContent":["import { hasGlobalComponent } from '@vuepress/helper/client'\nimport { defineClientConfig } from 'vuepress/client'\n\nimport { setupDarkMode } from '@theme/useDarkMode'\nimport { setupHeaders } from '@theme/useHeaders'\nimport { useScrollPromise } from '@theme/useScrollPromise'\nimport { setupSidebarItems } from '@theme/useSidebarItems'\n\nimport { Badge } from './components/global/index.js'\nimport Layout from './layouts/Layout.vue'\nimport NotFound from './layouts/NotFound.vue'\n\nimport '@vuepress/helper/colors.css'\nimport '@vuepress/helper/normalize.css'\nimport './styles/index.scss'\n\nexport default defineClientConfig({\n enhance({ app, router }) {\n if (!hasGlobalComponent('Badge')) app.component('Badge', Badge)\n\n // handle scrollBehavior with transition\n const scrollBehavior = router.options.scrollBehavior!\n\n // scrollBehavior is a bit hard to typed here\n // oxlint-disable-next-line typescript/explicit-function-return-type\n router.options.scrollBehavior = async (...args) => {\n await useScrollPromise().wait()\n return scrollBehavior(...args)\n }\n },\n\n setup() {\n setupDarkMode()\n setupHeaders()\n setupSidebarItems()\n },\n\n layouts: {\n Layout,\n NotFound,\n },\n})\n"],"mappings":"0iBAgBA,IAAA,EAAe,EAAmB,CAChC,QAAQ,CAAE,MAAK,UAAU,CAClB,EAAmB,OAAO,GAAG,EAAI,UAAU,QAAS,CAAK,EAG9D,IAAM,EAAiB,EAAO,QAAQ,eAItC,EAAO,QAAQ,eAAiB,MAAO,GAAG,KACxC,MAAM,EAAiB,CAAC,CAAC,KAAK,EACvB,EAAe,GAAG,CAAI,EAEjC,EAEA,OAAQ,CACN,EAAc,EACd,EAAa,EACb,EAAkB,CACpB,EAEA,QAAS,CACP,SACA,UACF,CACF,CAAC"}
1
+ {"version":3,"file":"config.js","names":[],"sources":["../../src/client/config.ts"],"sourcesContent":["import { hasGlobalComponent } from '@vuepress/helper/client'\nimport type { ClientConfig } from 'vuepress/client'\nimport { defineClientConfig } from 'vuepress/client'\n\nimport { setupDarkMode } from '@theme/useDarkMode'\nimport { setupHeaders } from '@theme/useHeaders'\nimport { useScrollPromise } from '@theme/useScrollPromise'\nimport { setupSidebarItems } from '@theme/useSidebarItems'\n\nimport { Badge } from './components/global/index.js'\nimport Layout from './layouts/Layout.vue'\nimport NotFound from './layouts/NotFound.vue'\n\nimport '@vuepress/helper/colors.css'\nimport '@vuepress/helper/normalize.css'\nimport './styles/index.scss'\n\nexport const clientConfig: ClientConfig = defineClientConfig({\n enhance({ app, router }) {\n if (!hasGlobalComponent('Badge')) app.component('Badge', Badge)\n\n // handle scrollBehavior with transition\n const scrollBehavior = router.options.scrollBehavior!\n\n // scrollBehavior is a bit hard to typed here\n // oxlint-disable-next-line typescript/explicit-function-return-type\n router.options.scrollBehavior = async (...args) => {\n await useScrollPromise().wait()\n return scrollBehavior(...args)\n }\n },\n\n setup() {\n setupDarkMode()\n setupHeaders()\n setupSidebarItems()\n },\n\n layouts: {\n Layout,\n NotFound,\n },\n})\n\nexport default clientConfig\n"],"mappings":"0iBAiBA,MAAa,EAA6B,EAAmB,CAC3D,QAAQ,CAAE,MAAK,UAAU,CAClB,EAAmB,OAAO,GAAG,EAAI,UAAU,QAAS,CAAK,EAG9D,IAAM,EAAiB,EAAO,QAAQ,eAItC,EAAO,QAAQ,eAAiB,MAAO,GAAG,KACxC,MAAM,EAAiB,CAAC,CAAC,KAAK,EACvB,EAAe,GAAG,CAAI,EAEjC,EAEA,OAAQ,CACN,EAAc,EACd,EAAa,EACb,EAAkB,CACpB,EAEA,QAAS,CACP,SACA,UACF,CACF,CAAC"}
@@ -1,21 +1,21 @@
1
1
  import { n as setupDarkMode, r as useDarkMode, t as DarkModeRef } from "../useDarkMode-DmWka_eQ.js";
2
- import { _ as NavbarOptions, a as DefaultThemeData, c as SidebarArrayOptions, d as SidebarLinkOptions, f as SidebarObjectOptions, g as NavbarLinkOptions, h as NavbarGroupOptions, i as DefaultThemePageFrontmatter, l as SidebarGroupOptions, m as NavGroup, n as DefaultThemeNormalPageFrontmatter, o as DefaultThemeLocaleData, p as SidebarOptions, r as DefaultThemePageData, s as DefaultThemeLocaleOptions, t as DefaultThemeHomePageFrontmatter, u as SidebarItemOptions, v as AutoLinkOptions, y as NavItemOptions } from "../index-DkAtp85h.js";
3
- import { n as useData, t as Data } from "../useData-B20ETmVf.js";
2
+ import { _ as NavbarOptions, a as DefaultThemeData, c as SidebarArrayOptions, d as SidebarLinkOptions, f as SidebarObjectOptions, g as NavbarLinkOptions, h as NavbarGroupOptions, i as DefaultThemePageFrontmatter, l as SidebarGroupOptions, m as NavGroup, n as DefaultThemeNormalPageFrontmatter, o as DefaultThemeLocaleData, p as SidebarOptions, r as DefaultThemePageData, s as DefaultThemeLocaleOptions, t as DefaultThemeHomePageFrontmatter, u as SidebarItemOptions, v as AutoLinkOptions, y as NavItemOptions } from "../index-DnNaefpa.js";
3
+ import { n as useData, t as Data } from "../useData-DLY6oMFR.js";
4
4
  import { t as useEditLink } from "../useEditLink-DXlW5QzK.js";
5
5
  import { t as useNavigate } from "../useNavigate-zqYnxkd_.js";
6
- import { a as SidebarLinkItem, i as SidebarItem, n as SidebarGroupItem, r as SidebarHeaderItem, t as NavbarItem } from "../typings-Dsy2lPQS.js";
7
- import { t as useNavbarConfig } from "../useNavbarConfig-CXdLjfSJ.js";
8
- import { t as useNavbarRepo } from "../useNavbarRepo-BQ2wiq-1.js";
9
- import { t as useNavbarSelectLanguage } from "../useNavbarSelectLanguage-Cd32nqUA.js";
10
- import { t as useRelatedLinks } from "../useRelatedLinks-B5Hq7BUl.js";
6
+ import { a as SidebarLinkItem, i as SidebarItem, n as SidebarGroupItem, r as SidebarHeaderItem, t as NavbarItem } from "../typings-Cbpr0bFc.js";
7
+ import { t as useNavbarConfig } from "../useNavbarConfig-jIUipXMq.js";
8
+ import { t as useNavbarRepo } from "../useNavbarRepo-B9pyDtUq.js";
9
+ import { t as useNavbarSelectLanguage } from "../useNavbarSelectLanguage-zG8uc9ys.js";
10
+ import { t as useRelatedLinks } from "../useRelatedLinks-Ds7UdilB.js";
11
11
  import { n as useScrollPromise, t as ScrollPromise } from "../useScrollPromise-TwtWBE3d.js";
12
- import { a as resolveSidebarItems, c as setupSidebarItems, i as resolveSidebarHeadingItem, l as sidebarItemsSymbol, n as resolveArraySidebarItems, o as resolveSidebarPageHeader, r as resolveMultiSidebarItems, s as resolveSidebarPageHeaders, t as SidebarItemsRef, u as useSidebarItems } from "../useSidebarItems-xWOsGwcx.js";
12
+ import { a as resolveSidebarItems, c as setupSidebarItems, i as resolveSidebarHeadingItem, l as sidebarItemsSymbol, n as resolveArraySidebarItems, o as resolveSidebarPageHeader, r as resolveMultiSidebarItems, s as resolveSidebarPageHeaders, t as SidebarItemsRef, u as useSidebarItems } from "../useSidebarItems-C7_FZHit.js";
13
13
  import { n as useUpdateDeviceStatus, t as DeviceType } from "../useUpdateDeviceStatus-CsrJ_Qqv.js";
14
- import "../index-DgnmBYGr.js";
15
- import { t as isActiveSidebarItem } from "../isActiveSidebarItem-DdHcB4fJ.js";
16
- import { t as resolveAutoLink } from "../resolveAutoLink-LfZfSGFX.js";
14
+ import "../index-D1ZnfV_H.js";
15
+ import { t as isActiveSidebarItem } from "../isActiveSidebarItem-CimWaCAf.js";
16
+ import { t as resolveAutoLink } from "../resolveAutoLink-JDq36I7k.js";
17
17
  import { n as resolveEditLink, t as EDIT_LINK_PATTERNS } from "../resolveEditLink-VYO59JxD.js";
18
18
  import { t as resolvePrefix } from "../resolvePrefix-BXZhEIJn.js";
19
- import { n as resolveRepoType, t as RepoType } from "../resolveRepoType-DEy0Gvc4.js";
20
- import "../index-BIWlrErN.js";
19
+ import { n as resolveRepoType, t as RepoType } from "../resolveRepoType-DmT6nK6z.js";
20
+ import "../index-CKVw8AvB.js";
21
21
  export { type AutoLinkOptions, DarkModeRef, Data, type DefaultThemeData, type DefaultThemeHomePageFrontmatter, type DefaultThemeLocaleData, type DefaultThemeLocaleOptions, type DefaultThemeNormalPageFrontmatter, type DefaultThemePageData, type DefaultThemePageFrontmatter, DeviceType, EDIT_LINK_PATTERNS, type NavGroup, type NavItemOptions, type NavbarGroupOptions, type NavbarItem, type NavbarLinkOptions, type NavbarOptions, RepoType, ScrollPromise, type SidebarArrayOptions, type SidebarGroupItem, type SidebarGroupOptions, type SidebarHeaderItem, type SidebarItem, type SidebarItemOptions, SidebarItemsRef, type SidebarLinkItem, type SidebarLinkOptions, type SidebarObjectOptions, type SidebarOptions, isActiveSidebarItem, resolveArraySidebarItems, resolveAutoLink, resolveEditLink, resolveMultiSidebarItems, resolvePrefix, resolveRepoType, resolveSidebarHeadingItem, resolveSidebarItems, resolveSidebarPageHeader, resolveSidebarPageHeaders, setupDarkMode, setupSidebarItems, sidebarItemsSymbol, useDarkMode, useData, useEditLink, useNavbarConfig, useNavbarRepo, useNavbarSelectLanguage, useNavigate, useRelatedLinks, useScrollPromise, useSidebarItems, useUpdateDeviceStatus };
@@ -1 +1 @@
1
- import{n as e,t}from"../useDarkMode-BfKvIN6K.js";import{t as n}from"../useData-nv4hwlgW.js";import{t as r}from"../useEditLink-BmoW42FE.js";import{t as i}from"../useNavigate-mlFey3ew.js";import{t as a}from"../useNavbarConfig-CxVplYul.js";import{t as o}from"../useNavbarRepo-BScd94be.js";import{t as s}from"../useNavbarSelectLanguage-FHyzHFEW.js";import{t as c}from"../useRelatedLinks-BwsPumn1.js";import{t as l}from"../useScrollPromise-CB6ZLciv.js";import{a as u,c as d,i as f,l as p,n as m,o as h,r as g,s as _,t as v}from"../useSidebarItems-D1vD1QQp.js";import{n as y,t as b}from"../useUpdateDeviceStatus-DMKiVB3W.js";import{t as x}from"../isActiveSidebarItem-BQHhsM53.js";import{t as S}from"../resolveAutoLink-XUJwl3Kb.js";import{n as C,t as w}from"../resolveEditLink-lteF0-Mv.js";import{t as T}from"../resolvePrefix-CQnTmTk4.js";import{t as E}from"../resolveRepoType-BfcHRhpi.js";export{b as DeviceType,w as EDIT_LINK_PATTERNS,x as isActiveSidebarItem,v as resolveArraySidebarItems,S as resolveAutoLink,C as resolveEditLink,m as resolveMultiSidebarItems,T as resolvePrefix,E as resolveRepoType,g as resolveSidebarHeadingItem,f as resolveSidebarItems,u as resolveSidebarPageHeader,h as resolveSidebarPageHeaders,t as setupDarkMode,_ as setupSidebarItems,d as sidebarItemsSymbol,e as useDarkMode,n as useData,r as useEditLink,a as useNavbarConfig,o as useNavbarRepo,s as useNavbarSelectLanguage,i as useNavigate,c as useRelatedLinks,l as useScrollPromise,p as useSidebarItems,y as useUpdateDeviceStatus};
1
+ import{n as e,t}from"../useDarkMode-BfKvIN6K.js";import{t as n}from"../useData-nv4hwlgW.js";import{t as r}from"../useEditLink-BmoW42FE.js";import{t as i}from"../useNavigate-mlFey3ew.js";import{t as a}from"../useNavbarConfig-CxVplYul.js";import{t as o}from"../useNavbarRepo-BScd94be.js";import{t as s}from"../useNavbarSelectLanguage-FHyzHFEW.js";import{t as c}from"../useRelatedLinks-BwsPumn1.js";import{t as l}from"../useScrollPromise-CB6ZLciv.js";import{a as u,c as d,i as f,l as p,n as m,o as h,r as g,s as _,t as v}from"../useSidebarItems-D1vD1QQp.js";import{n as y,t as b}from"../useUpdateDeviceStatus-eEm3JFFI.js";import{t as x}from"../isActiveSidebarItem-CdmUcp0l.js";import{t as S}from"../resolveAutoLink-XUJwl3Kb.js";import{n as C,t as w}from"../resolveEditLink-lteF0-Mv.js";import{t as T}from"../resolvePrefix-CQnTmTk4.js";import{t as E}from"../resolveRepoType-BfcHRhpi.js";export{b as DeviceType,w as EDIT_LINK_PATTERNS,x as isActiveSidebarItem,v as resolveArraySidebarItems,S as resolveAutoLink,C as resolveEditLink,m as resolveMultiSidebarItems,T as resolvePrefix,E as resolveRepoType,g as resolveSidebarHeadingItem,f as resolveSidebarItems,u as resolveSidebarPageHeader,h as resolveSidebarPageHeaders,t as setupDarkMode,_ as setupSidebarItems,d as sidebarItemsSymbol,e as useDarkMode,n as useData,r as useEditLink,a as useNavbarConfig,o as useNavbarRepo,s as useNavbarSelectLanguage,i as useNavigate,c as useRelatedLinks,l as useScrollPromise,p as useSidebarItems,y as useUpdateDeviceStatus};
@@ -1,7 +1,7 @@
1
- import { t as isActiveSidebarItem } from "../../isActiveSidebarItem-DdHcB4fJ.js";
2
- import { t as resolveAutoLink } from "../../resolveAutoLink-LfZfSGFX.js";
1
+ import { t as isActiveSidebarItem } from "../../isActiveSidebarItem-CimWaCAf.js";
2
+ import { t as resolveAutoLink } from "../../resolveAutoLink-JDq36I7k.js";
3
3
  import { n as resolveEditLink, t as EDIT_LINK_PATTERNS } from "../../resolveEditLink-VYO59JxD.js";
4
4
  import { t as resolvePrefix } from "../../resolvePrefix-BXZhEIJn.js";
5
- import { n as resolveRepoType, t as RepoType } from "../../resolveRepoType-DEy0Gvc4.js";
6
- import "../../index-BIWlrErN.js";
5
+ import { n as resolveRepoType, t as RepoType } from "../../resolveRepoType-DmT6nK6z.js";
6
+ import "../../index-CKVw8AvB.js";
7
7
  export { EDIT_LINK_PATTERNS, RepoType, isActiveSidebarItem, resolveAutoLink, resolveEditLink, resolvePrefix, resolveRepoType };
@@ -1 +1 @@
1
- import{t as e}from"../../isActiveSidebarItem-BQHhsM53.js";import{t}from"../../resolveAutoLink-XUJwl3Kb.js";import{n,t as r}from"../../resolveEditLink-lteF0-Mv.js";import{t as i}from"../../resolvePrefix-CQnTmTk4.js";import{t as a}from"../../resolveRepoType-BfcHRhpi.js";import"../../utils-CAISgiXf.js";export{r as EDIT_LINK_PATTERNS,e as isActiveSidebarItem,t as resolveAutoLink,n as resolveEditLink,i as resolvePrefix,a as resolveRepoType};
1
+ import{t as e}from"../../isActiveSidebarItem-CdmUcp0l.js";import{t}from"../../resolveAutoLink-XUJwl3Kb.js";import{n,t as r}from"../../resolveEditLink-lteF0-Mv.js";import{t as i}from"../../resolvePrefix-CQnTmTk4.js";import{t as a}from"../../resolveRepoType-BfcHRhpi.js";import"../../utils-CAISgiXf.js";export{r as EDIT_LINK_PATTERNS,e as isActiveSidebarItem,t as resolveAutoLink,n as resolveEditLink,i as resolvePrefix,a as resolveRepoType};
@@ -1,2 +1,2 @@
1
- import { t as isActiveSidebarItem } from "../../isActiveSidebarItem-DdHcB4fJ.js";
1
+ import { t as isActiveSidebarItem } from "../../isActiveSidebarItem-CimWaCAf.js";
2
2
  export { isActiveSidebarItem };
@@ -1 +1 @@
1
- import{t as e}from"../../isActiveSidebarItem-BQHhsM53.js";export{e as isActiveSidebarItem};
1
+ import{t as e}from"../../isActiveSidebarItem-CdmUcp0l.js";export{e as isActiveSidebarItem};
@@ -1,2 +1,2 @@
1
- import { t as resolveAutoLink } from "../../resolveAutoLink-LfZfSGFX.js";
1
+ import { t as resolveAutoLink } from "../../resolveAutoLink-JDq36I7k.js";
2
2
  export { resolveAutoLink };
@@ -1,2 +1,2 @@
1
- import { n as resolveRepoType, t as RepoType } from "../../resolveRepoType-DEy0Gvc4.js";
1
+ import { n as resolveRepoType, t as RepoType } from "../../resolveRepoType-DmT6nK6z.js";
2
2
  export { RepoType, resolveRepoType };
@@ -0,0 +1,3 @@
1
+ import "./isActiveSidebarItem-CimWaCAf.js";
2
+ import "./resolveAutoLink-JDq36I7k.js";
3
+ import "./resolveEditLink-VYO59JxD.js";
@@ -0,0 +1,8 @@
1
+ import "./useDarkMode-DmWka_eQ.js";
2
+ import "./useData-DLY6oMFR.js";
3
+ import "./useEditLink-DXlW5QzK.js";
4
+ import "./useNavbarConfig-jIUipXMq.js";
5
+ import "./useNavbarRepo-B9pyDtUq.js";
6
+ import "./useNavbarSelectLanguage-zG8uc9ys.js";
7
+ import "./useRelatedLinks-Ds7UdilB.js";
8
+ import "./useSidebarItems-C7_FZHit.js";
@@ -53,8 +53,8 @@ interface SidebarGroupOptions extends NavItemOptions {
53
53
  }
54
54
  type SidebarItemOptions = SidebarGroupOptions | SidebarLinkOptions | string;
55
55
  type SidebarArrayOptions = SidebarItemOptions[];
56
- type SidebarObjectOptions = Record<string, SidebarArrayOptions | 'heading' | false>;
57
- type SidebarOptions = SidebarArrayOptions | SidebarObjectOptions | 'heading';
56
+ type SidebarObjectOptions = Record<string, SidebarArrayOptions | "heading" | false>;
57
+ type SidebarOptions = SidebarArrayOptions | SidebarObjectOptions | "heading";
58
58
  //#endregion
59
59
  //#region src/shared/options.d.ts
60
60
  type DefaultThemeLocaleOptions = DefaultThemeData;
@@ -65,7 +65,7 @@ interface DefaultThemeLocaleData extends LocaleData {
65
65
  *
66
66
  * @default 'auto'
67
67
  */
68
- colorMode?: 'auto' | 'dark' | 'light';
68
+ colorMode?: "auto" | "dark" | "light";
69
69
  /**
70
70
  * Enable color mode switching and display a button in navbar or not
71
71
  *
@@ -305,7 +305,7 @@ interface DefaultThemeHomePageFrontmatter extends DefaultThemePageFrontmatter {
305
305
  actions?: {
306
306
  text: string;
307
307
  link: string;
308
- type?: 'primary' | 'secondary';
308
+ type?: "primary" | "secondary";
309
309
  }[];
310
310
  features?: {
311
311
  title: string;
@@ -320,11 +320,11 @@ interface DefaultThemeNormalPageFrontmatter extends DefaultThemePageFrontmatter
320
320
  editLinkPattern?: string;
321
321
  lastUpdated?: boolean;
322
322
  contributors?: boolean;
323
- sidebar?: SidebarArrayOptions | 'heading' | false;
323
+ sidebar?: SidebarArrayOptions | "heading" | false;
324
324
  sidebarDepth?: number;
325
325
  prev?: AutoLinkOptions | string;
326
326
  next?: AutoLinkOptions | string;
327
327
  }
328
328
  //#endregion
329
329
  export { NavbarOptions as _, DefaultThemeData as a, SidebarArrayOptions as c, SidebarLinkOptions as d, SidebarObjectOptions as f, NavbarLinkOptions as g, NavbarGroupOptions as h, DefaultThemePageFrontmatter as i, SidebarGroupOptions as l, NavGroup as m, DefaultThemeNormalPageFrontmatter as n, DefaultThemeLocaleData as o, SidebarOptions as p, DefaultThemePageData as r, DefaultThemeLocaleOptions as s, DefaultThemeHomePageFrontmatter as t, SidebarItemOptions as u, AutoLinkOptions as v, NavItemOptions as y };
330
- //# sourceMappingURL=index-DkAtp85h.d.ts.map
330
+ //# sourceMappingURL=index-DnNaefpa.d.ts.map
@@ -0,0 +1,2 @@
1
+ import{normalizePath as e}from"@vuepress/helper/client";const t=(t,n)=>n.hash===t||e(decodeURI(n.path),!0)===e(decodeURI(t),!0),n=(e,r)=>e.link&&t(e.link,r)?!0:`children`in e&&e.children.some(e=>n(e,r));export{n as t};
2
+ //# sourceMappingURL=isActiveSidebarItem-CdmUcp0l.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"isActiveSidebarItem-BQHhsM53.js","names":[],"sources":["../src/client/utils/isActiveSidebarItem.ts"],"sourcesContent":["import { normalizePath } from '@vuepress/helper/client'\nimport type { RouteLocationNormalizedLoaded } from 'vuepress/client'\n\nimport type { SidebarItem } from '../typings.js'\n\nconst isActiveLink = (\n link: string,\n route: RouteLocationNormalizedLoaded,\n): boolean => {\n if (route.hash === link) return true\n\n const currentPath = normalizePath(decodeURI(route.path), true)\n const targetPath = normalizePath(decodeURI(link), true)\n return currentPath === targetPath\n}\n\nexport const isActiveSidebarItem = (\n item: SidebarItem,\n route: RouteLocationNormalizedLoaded,\n): boolean => {\n if (item.link && isActiveLink(item.link, route)) return true\n\n if ('children' in item)\n return item.children.some((child) => isActiveSidebarItem(child, route))\n\n return false\n}\n"],"mappings":"wDAKA,MAAM,GACJ,EACA,IAEI,EAAM,OAAS,EAAa,GAEZ,EAAc,UAAU,EAAM,IAAI,EAAG,EAExC,IADE,EAAc,UAAU,CAAI,EAAG,EAClB,EAGrB,GACX,EACA,IAEI,EAAK,MAAQ,EAAa,EAAK,KAAM,CAAK,EAAU,GAEpD,aAAc,EACT,EAAK,SAAS,KAAM,GAAU,EAAoB,EAAO,CAAK,CAAC,EAEjE"}
1
+ {"version":3,"file":"isActiveSidebarItem-CdmUcp0l.js","names":[],"sources":["../src/client/utils/isActiveSidebarItem.ts"],"sourcesContent":["import { normalizePath } from '@vuepress/helper/client'\nimport type { RouteLocationNormalizedLoaded } from 'vuepress/client'\n\nimport type { SidebarItem } from '../typings.js'\n\nconst isActiveLink = (\n link: string,\n route: RouteLocationNormalizedLoaded,\n): boolean => {\n if (route.hash === link) return true\n\n const currentPath = normalizePath(decodeURI(route.path), true)\n const targetPath = normalizePath(decodeURI(link), true)\n return currentPath === targetPath\n}\n\nexport const isActiveSidebarItem = (\n item: SidebarItem,\n route: RouteLocationNormalizedLoaded,\n): boolean => {\n if (item.link && isActiveLink(item.link, route)) return true\n\n if ('children' in item)\n return item.children.some((child) => isActiveSidebarItem(child, route))\n\n return false\n}\n"],"mappings":"wDAKA,MAAM,GACJ,EACA,IAEI,EAAM,OAAS,GAEC,EAAc,UAAU,EAAM,IAAI,EAAG,EAExC,IADE,EAAc,UAAU,CAAI,EAAG,EAClB,EAGrB,GACX,EACA,IAEI,EAAK,MAAQ,EAAa,EAAK,KAAM,CAAK,EAAU,GAEpD,aAAc,GACT,EAAK,SAAS,KAAM,GAAU,EAAoB,EAAO,CAAK,CAAC"}
@@ -1,7 +1,7 @@
1
- import { i as SidebarItem } from "./typings-Dsy2lPQS.js";
1
+ import { i as SidebarItem } from "./typings-Cbpr0bFc.js";
2
2
  import { RouteLocationNormalizedLoaded } from "vuepress/client";
3
3
  //#region src/client/utils/isActiveSidebarItem.d.ts
4
4
  declare const isActiveSidebarItem: (item: SidebarItem, route: RouteLocationNormalizedLoaded) => boolean;
5
5
  //#endregion
6
6
  export { isActiveSidebarItem as t };
7
- //# sourceMappingURL=isActiveSidebarItem-DdHcB4fJ.d.ts.map
7
+ //# sourceMappingURL=isActiveSidebarItem-CimWaCAf.d.ts.map
@@ -1,4 +1,4 @@
1
- import { _ as NavbarOptions, a as DefaultThemeData, c as SidebarArrayOptions, d as SidebarLinkOptions, f as SidebarObjectOptions, g as NavbarLinkOptions, h as NavbarGroupOptions, i as DefaultThemePageFrontmatter, l as SidebarGroupOptions, m as NavGroup, n as DefaultThemeNormalPageFrontmatter, o as DefaultThemeLocaleData, p as SidebarOptions, r as DefaultThemePageData, s as DefaultThemeLocaleOptions, t as DefaultThemeHomePageFrontmatter, u as SidebarItemOptions, v as AutoLinkOptions, y as NavItemOptions } from "../index-DkAtp85h.js";
1
+ import { _ as NavbarOptions, a as DefaultThemeData, c as SidebarArrayOptions, d as SidebarLinkOptions, f as SidebarObjectOptions, g as NavbarLinkOptions, h as NavbarGroupOptions, i as DefaultThemePageFrontmatter, l as SidebarGroupOptions, m as NavGroup, n as DefaultThemeNormalPageFrontmatter, o as DefaultThemeLocaleData, p as SidebarOptions, r as DefaultThemePageData, s as DefaultThemeLocaleOptions, t as DefaultThemeHomePageFrontmatter, u as SidebarItemOptions, v as AutoLinkOptions, y as NavItemOptions } from "../index-DnNaefpa.js";
2
2
  import { BackToTopPluginOptions } from "@vuepress/plugin-back-to-top";
3
3
  import { CopyCodePluginOptions } from "@vuepress/plugin-copy-code";
4
4
  import { GitPluginOptions } from "@vuepress/plugin-git";
@@ -39,23 +39,23 @@ interface DefaultThemePluginsOptions {
39
39
  }
40
40
  //#endregion
41
41
  //#region src/node/defaultTheme.d.ts
42
- interface DefaultThemeOptions extends DefaultThemeLocaleOptions {
42
+ export interface DefaultThemeOptions extends DefaultThemeLocaleOptions {
43
43
  /** Deployed hostname */
44
44
  hostname?: string;
45
45
  /** To avoid confusion with the root `plugins` option, we use `themePlugins` */
46
46
  themePlugins?: DefaultThemePluginsOptions;
47
47
  }
48
- declare const defaultTheme: ({ hostname, themePlugins, ...localeOptions }?: DefaultThemeOptions) => Theme;
48
+ export declare const defaultTheme: ({ hostname, themePlugins, ...localeOptions }?: DefaultThemeOptions) => Theme;
49
49
  //#endregion
50
50
  //#region src/node/utils/assignDefaultLocaleOptions.d.ts
51
- declare const DEFAULT_LOCALE_OPTIONS: DefaultThemeLocaleOptions;
52
- declare const DEFAULT_LOCALE_DATA: DefaultThemeLocaleData;
51
+ export declare const DEFAULT_LOCALE_OPTIONS: DefaultThemeLocaleOptions;
52
+ export declare const DEFAULT_LOCALE_DATA: DefaultThemeLocaleData;
53
53
  /**
54
54
  * Assign default options
55
55
  *
56
56
  * @param localeOptions - Locale options to assign default options
57
57
  */
58
- declare const assignDefaultLocaleOptions: (localeOptions: DefaultThemeLocaleOptions) => void;
58
+ export declare const assignDefaultLocaleOptions: (localeOptions: DefaultThemeLocaleOptions) => void;
59
59
  //#endregion
60
60
  //#region src/node/utils/resolveMarkdownHintLocales.d.ts
61
61
  /**
@@ -66,7 +66,7 @@ declare const assignDefaultLocaleOptions: (localeOptions: DefaultThemeLocaleOpti
66
66
  * @param localeOptions - Locales config from theme options
67
67
  * @returns Locales config for `@vuepress/plugin-markdown-container`
68
68
  */
69
- declare const resolveMarkdownHintLocales: (localeOptions: DefaultThemeData) => LocaleConfig<MarkdownHintPluginLocaleData>;
69
+ export declare const resolveMarkdownHintLocales: (localeOptions: DefaultThemeData) => LocaleConfig<MarkdownHintPluginLocaleData>;
70
70
  //#endregion
71
- export { type AutoLinkOptions, DEFAULT_LOCALE_DATA, DEFAULT_LOCALE_OPTIONS, type DefaultThemeData, type DefaultThemeHomePageFrontmatter, type DefaultThemeLocaleData, type DefaultThemeLocaleOptions, type DefaultThemeNormalPageFrontmatter, DefaultThemeOptions, type DefaultThemePageData, type DefaultThemePageFrontmatter, type DefaultThemePluginsOptions, type NavGroup, type NavItemOptions, type NavbarGroupOptions, type NavbarLinkOptions, type NavbarOptions, type SidebarArrayOptions, type SidebarGroupOptions, type SidebarItemOptions, type SidebarLinkOptions, type SidebarObjectOptions, type SidebarOptions, assignDefaultLocaleOptions, defaultTheme, resolveMarkdownHintLocales };
71
+ export type { AutoLinkOptions, DefaultThemeData, DefaultThemeHomePageFrontmatter, DefaultThemeLocaleData, DefaultThemeLocaleOptions, DefaultThemeNormalPageFrontmatter, DefaultThemePageData, DefaultThemePageFrontmatter, DefaultThemePluginsOptions, NavGroup, NavItemOptions, NavbarGroupOptions, NavbarLinkOptions, NavbarOptions, SidebarArrayOptions, SidebarGroupOptions, SidebarItemOptions, SidebarLinkOptions, SidebarObjectOptions, SidebarOptions };
72
72
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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'\n\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'\n\nimport type { DefaultThemeLocaleOptions } 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\nconst [componentFiles, composableFiles, utilFiles] = await Promise.all([\n fs.readdir(path.resolve(__dirname, '../client/components')),\n fs.readdir(path.resolve(__dirname, '../client/composables')),\n fs.readdir(path.resolve(__dirname, '../client/utils')),\n])\n\nexport interface DefaultThemeOptions extends DefaultThemeLocaleOptions {\n /** Deployed hostname */\n hostname?: string\n\n /** To avoid confusion with the root `plugins` option, we use `themePlugins` */\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 userStyle: '.vuepress/styles/index.scss',\n\n templateBuild: path.resolve(__dirname, '../../templates/build.html'),\n\n alias: {\n // use alias to make all components replaceable\n ...Object.fromEntries(\n componentFiles\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 composableFiles\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 utilFiles\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) => {\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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"}
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'\n\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'\n\nimport type { DefaultThemeLocaleOptions } 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\n// oxlint-disable-next-line node/no-top-level-await\nconst [componentFiles, composableFiles, utilFiles] = await Promise.all([\n fs.readdir(path.resolve(__dirname, '../client/components')),\n fs.readdir(path.resolve(__dirname, '../client/composables')),\n fs.readdir(path.resolve(__dirname, '../client/utils')),\n])\n\nexport interface DefaultThemeOptions extends DefaultThemeLocaleOptions {\n /** Deployed hostname */\n hostname?: string\n\n /** To avoid confusion with the root `plugins` option, we use `themePlugins` */\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 userStyle: '.vuepress/styles/index.scss',\n\n templateBuild: path.resolve(__dirname, '../../templates/build.html'),\n\n alias: {\n // use alias to make all components replaceable\n ...Object.fromEntries(\n componentFiles\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 composableFiles\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 utilFiles\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) => {\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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"}
@@ -1,4 +1,4 @@
1
- import { v as AutoLinkOptions } from "./index-DkAtp85h.js";
1
+ import { v as AutoLinkOptions } from "./index-DnNaefpa.js";
2
2
  //#region src/client/utils/resolveAutoLink.d.ts
3
3
  /**
4
4
  * Resolve AutoLink props from string
@@ -16,4 +16,4 @@ import { v as AutoLinkOptions } from "./index-DkAtp85h.js";
16
16
  declare const resolveAutoLink: (config: string, currentPath?: string) => AutoLinkOptions;
17
17
  //#endregion
18
18
  export { resolveAutoLink as t };
19
- //# sourceMappingURL=resolveAutoLink-LfZfSGFX.d.ts.map
19
+ //# sourceMappingURL=resolveAutoLink-JDq36I7k.d.ts.map
@@ -1,6 +1,6 @@
1
1
  //#region src/client/utils/resolveRepoType.d.ts
2
- type RepoType = 'Bitbucket' | 'Gitee' | 'GitHub' | 'GitLab' | null;
2
+ type RepoType = "Bitbucket" | "Gitee" | "GitHub" | "GitLab" | null;
3
3
  declare const resolveRepoType: (repo: string) => RepoType;
4
4
  //#endregion
5
5
  export { resolveRepoType as n, RepoType as t };
6
- //# sourceMappingURL=resolveRepoType-DEy0Gvc4.d.ts.map
6
+ //# sourceMappingURL=resolveRepoType-DmT6nK6z.d.ts.map
@@ -1,4 +1,4 @@
1
- import { d as SidebarLinkOptions, l as SidebarGroupOptions, m as NavGroup, v as AutoLinkOptions } from "./index-DkAtp85h.js";
1
+ import { d as SidebarLinkOptions, l as SidebarGroupOptions, m as NavGroup, v as AutoLinkOptions } from "./index-DnNaefpa.js";
2
2
  //#region src/client/typings.d.ts
3
3
  type NavbarItem = AutoLinkOptions | NavGroup<NavbarItem>;
4
4
  type SidebarLinkItem = SidebarLinkOptions;
@@ -14,4 +14,4 @@ interface SidebarGroupItem extends SidebarGroupOptions {
14
14
  type SidebarItem = SidebarGroupItem | SidebarLinkItem;
15
15
  //#endregion
16
16
  export { SidebarLinkItem as a, SidebarItem as i, SidebarGroupItem as n, SidebarHeaderItem as r, NavbarItem as t };
17
- //# sourceMappingURL=typings-Dsy2lPQS.d.ts.map
17
+ //# sourceMappingURL=typings-Cbpr0bFc.d.ts.map
@@ -1,12 +1,12 @@
1
- import { a as DefaultThemeData, n as DefaultThemeNormalPageFrontmatter, r as DefaultThemePageData } from "./index-DkAtp85h.js";
1
+ import { a as DefaultThemeData, n as DefaultThemeNormalPageFrontmatter, r as DefaultThemePageData } from "./index-DnNaefpa.js";
2
2
  import { ClientData } from "vuepress/client";
3
3
  import { ThemeDataRef, ThemeLocaleDataRef } from "@vuepress/plugin-theme-data/client";
4
4
  //#region src/client/composables/useData.d.ts
5
- 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'> {
5
+ 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"> {
6
6
  theme: ThemeDataRef<DefaultThemeData>;
7
7
  themeLocale: ThemeLocaleDataRef<DefaultThemeData>;
8
8
  }
9
9
  declare const useData$1: <PageFrontmatter extends Record<string, unknown> = DefaultThemeNormalPageFrontmatter, PageData extends Record<string, unknown> = DefaultThemePageData>() => Data<PageFrontmatter, PageData>;
10
10
  //#endregion
11
11
  export { useData$1 as n, Data as t };
12
- //# sourceMappingURL=useData-B20ETmVf.d.ts.map
12
+ //# sourceMappingURL=useData-DLY6oMFR.d.ts.map
@@ -1,7 +1,7 @@
1
- import { t as NavbarItem } from "./typings-Dsy2lPQS.js";
1
+ import { t as NavbarItem } from "./typings-Cbpr0bFc.js";
2
2
  import { ComputedRef } from "vue";
3
3
  //#region src/client/composables/useNavbarConfig.d.ts
4
4
  declare const useNavbarConfig: () => ComputedRef<NavbarItem[]>;
5
5
  //#endregion
6
6
  export { useNavbarConfig as t };
7
- //# sourceMappingURL=useNavbarConfig-CXdLjfSJ.d.ts.map
7
+ //# sourceMappingURL=useNavbarConfig-jIUipXMq.d.ts.map
@@ -1,4 +1,4 @@
1
- import { t as NavbarItem } from "./typings-Dsy2lPQS.js";
1
+ import { t as NavbarItem } from "./typings-Cbpr0bFc.js";
2
2
  import { ComputedRef } from "vue";
3
3
  //#region src/client/composables/useNavbarRepo.d.ts
4
4
  /**
@@ -9,4 +9,4 @@ import { ComputedRef } from "vue";
9
9
  declare const useNavbarRepo: () => ComputedRef<NavbarItem[]>;
10
10
  //#endregion
11
11
  export { useNavbarRepo as t };
12
- //# sourceMappingURL=useNavbarRepo-BQ2wiq-1.d.ts.map
12
+ //# sourceMappingURL=useNavbarRepo-B9pyDtUq.d.ts.map
@@ -1,4 +1,4 @@
1
- import { t as NavbarItem } from "./typings-Dsy2lPQS.js";
1
+ import { t as NavbarItem } from "./typings-Cbpr0bFc.js";
2
2
  import { ComputedRef } from "vue";
3
3
  //#region src/client/composables/useNavbarSelectLanguage.d.ts
4
4
  /**
@@ -9,4 +9,4 @@ import { ComputedRef } from "vue";
9
9
  declare const useNavbarSelectLanguage: () => ComputedRef<NavbarItem[]>;
10
10
  //#endregion
11
11
  export { useNavbarSelectLanguage as t };
12
- //# sourceMappingURL=useNavbarSelectLanguage-Cd32nqUA.d.ts.map
12
+ //# sourceMappingURL=useNavbarSelectLanguage-zG8uc9ys.d.ts.map
@@ -1,4 +1,4 @@
1
- import { v as AutoLinkOptions } from "./index-DkAtp85h.js";
1
+ import { v as AutoLinkOptions } from "./index-DnNaefpa.js";
2
2
  import { ComputedRef } from "vue";
3
3
  //#region src/client/composables/useRelatedLinks.d.ts
4
4
  interface RelatedLinks {
@@ -8,4 +8,4 @@ interface RelatedLinks {
8
8
  declare const useRelatedLinks: () => RelatedLinks;
9
9
  //#endregion
10
10
  export { useRelatedLinks as t };
11
- //# sourceMappingURL=useRelatedLinks-B5Hq7BUl.d.ts.map
11
+ //# sourceMappingURL=useRelatedLinks-Ds7UdilB.d.ts.map
@@ -1,5 +1,5 @@
1
- import { c as SidebarArrayOptions, f as SidebarObjectOptions, p as SidebarOptions } from "./index-DkAtp85h.js";
2
- import { i as SidebarItem, r as SidebarHeaderItem } from "./typings-Dsy2lPQS.js";
1
+ import { c as SidebarArrayOptions, f as SidebarObjectOptions, p as SidebarOptions } from "./index-DnNaefpa.js";
2
+ import { i as SidebarItem, r as SidebarHeaderItem } from "./typings-Cbpr0bFc.js";
3
3
  import { PageData, PageHeader } from "vuepress/client";
4
4
  import { ComputedRef, InjectionKey } from "vue";
5
5
  //#region src/client/composables/useSidebarItems.d.ts
@@ -72,4 +72,4 @@ declare const resolveSidebarItems: (sidebarConfig: SidebarOptions | false, page:
72
72
  declare const setupSidebarItems: () => void;
73
73
  //#endregion
74
74
  export { resolveSidebarItems as a, setupSidebarItems as c, resolveSidebarHeadingItem as i, sidebarItemsSymbol as l, resolveArraySidebarItems as n, resolveSidebarPageHeader as o, resolveMultiSidebarItems as r, resolveSidebarPageHeaders as s, SidebarItemsRef as t, useSidebarItems as u };
75
- //# sourceMappingURL=useSidebarItems-xWOsGwcx.d.ts.map
75
+ //# sourceMappingURL=useSidebarItems-C7_FZHit.d.ts.map
@@ -0,0 +1,2 @@
1
+ import{useEventListener as e}from"@vueuse/core";import{onMounted as t}from"vue";import n from"./client/styles/_variables.module.scss";let r=/* @__PURE__ */ function(e){return e.Mobile=`mobile`,e}({});const i={mobile:Number(n.mobile.replace(`px`,``))},a=(n,r)=>{let a=i[n];if(!Number.isInteger(a)){if(__VUEPRESS_DEV__)throw Error(`device width must be a integer`);return}e(`orientationchange`,()=>{r(a)}),e(`resize`,()=>{r(a)}),t(()=>{r(a)})};export{a as n,r as t};
2
+ //# sourceMappingURL=useUpdateDeviceStatus-eEm3JFFI.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useUpdateDeviceStatus-DMKiVB3W.js","names":[],"sources":["../src/client/composables/useUpdateDeviceStatus.ts"],"sourcesContent":["// oxlint-disable promise/prefer-await-to-callbacks\nimport { useEventListener } from '@vueuse/core'\nimport { onMounted } from 'vue'\n\nimport cssVariables from '../styles/_variables.module.scss'\n\nexport enum DeviceType {\n Mobile = 'mobile',\n}\n\nconst DeviceTypeMap = {\n [DeviceType.Mobile]: Number(cssVariables.mobile.replace('px', '')),\n}\n\n/**\n * Add listener to detect screen though device type\n *\n * @param deviceType - Device type to detect / 要检测的设备类型\n * @param callback - Callback function to call when device status changes /\n * 设备状态改变时调用的回调函数\n */\nexport const useUpdateDeviceStatus = (\n deviceType: DeviceType,\n callback: (width: number) => void,\n): void => {\n const width = DeviceTypeMap[deviceType]\n if (!Number.isInteger(width)) {\n if (__VUEPRESS_DEV__) throw new Error('device width must be a integer')\n return\n }\n\n useEventListener('orientationchange', () => {\n callback(width)\n })\n useEventListener('resize', () => {\n callback(width)\n })\n\n onMounted(() => {\n callback(width)\n })\n}\n"],"mappings":"sIAMA,IAAY,EAAL,SAAA,EAAA,OACL,GAAA,OAAA,UACF,EAAA,CAAA,CAAA,EAEA,MAAM,EAAgB,CAAA,OACC,OAAO,EAAa,OAAO,QAAQ,KAAM,EAAE,CAAC,CACnE,EASa,GACX,EACA,IACS,CACT,IAAM,EAAQ,EAAc,GAC5B,GAAI,CAAC,OAAO,UAAU,CAAK,EAAG,CAC5B,GAAI,iBAAkB,MAAU,MAAM,gCAAgC,EACtE,MACF,CAEA,EAAiB,wBAA2B,CAC1C,EAAS,CAAK,CAChB,CAAC,EACD,EAAiB,aAAgB,CAC/B,EAAS,CAAK,CAChB,CAAC,EAED,MAAgB,CACd,EAAS,CAAK,CAChB,CAAC,CACH"}
1
+ {"version":3,"file":"useUpdateDeviceStatus-eEm3JFFI.js","names":[],"sources":["../src/client/composables/useUpdateDeviceStatus.ts"],"sourcesContent":["// oxlint-disable promise/prefer-await-to-callbacks\nimport { useEventListener } from '@vueuse/core'\nimport { onMounted } from 'vue'\n\nimport cssVariables from '../styles/_variables.module.scss'\n\nexport enum DeviceType {\n Mobile = 'mobile',\n}\n\nconst DeviceTypeMap = {\n [DeviceType.Mobile]: Number(cssVariables.mobile.replace('px', '')),\n}\n\n/**\n * Add listener to detect screen though device type\n *\n * @param deviceType - Device type to detect / 要检测的设备类型\n * @param callback - Callback function to call when device status changes /\n * 设备状态改变时调用的回调函数\n */\nexport const useUpdateDeviceStatus = (\n deviceType: DeviceType,\n callback: (width: number) => void,\n): void => {\n const width = DeviceTypeMap[deviceType]\n if (!Number.isInteger(width)) {\n if (__VUEPRESS_DEV__) throw new Error('device width must be a integer')\n return\n }\n\n useEventListener('orientationchange', () => {\n callback(width)\n })\n useEventListener('resize', () => {\n callback(width)\n })\n\n onMounted(() => {\n callback(width)\n })\n}\n"],"mappings":"sIAMA,IAAY,EAAL,yBAAA,EAAA,OACL,GAAA,OAAA,UACF,EAAA,CAAA,CAAA,EAEA,MAAM,EAAgB,CAAA,OACC,OAAO,EAAa,OAAO,QAAQ,KAAM,EAAE,CAAC,CACnE,EASa,GACX,EACA,IACS,CACT,IAAM,EAAQ,EAAc,GAC5B,GAAI,CAAC,OAAO,UAAU,CAAK,EAAG,CAC5B,GAAI,iBAAkB,MAAU,MAAM,gCAAgC,EACtE,MACF,CAEA,EAAiB,wBAA2B,CAC1C,EAAS,CAAK,CAChB,CAAC,EACD,EAAiB,aAAgB,CAC/B,EAAS,CAAK,CAChB,CAAC,EAED,MAAgB,CACd,EAAS,CAAK,CAChB,CAAC,CACH"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuepress/theme-default",
3
- "version": "2.0.0-rc.132",
3
+ "version": "2.0.0-rc.135",
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.131",
58
- "@vuepress/plugin-active-header-links": "2.0.0-rc.131",
59
- "@vuepress/plugin-back-to-top": "2.0.0-rc.131",
60
- "@vuepress/plugin-copy-code": "2.0.0-rc.131",
61
- "@vuepress/plugin-git": "2.0.0-rc.132",
62
- "@vuepress/plugin-links-check": "2.0.0-rc.131",
63
- "@vuepress/plugin-markdown-hint": "2.0.0-rc.132",
64
- "@vuepress/plugin-markdown-tab": "2.0.0-rc.132",
65
- "@vuepress/plugin-medium-zoom": "2.0.0-rc.131",
66
- "@vuepress/plugin-nprogress": "2.0.0-rc.131",
67
- "@vuepress/plugin-palette": "2.0.0-rc.131",
68
- "@vuepress/plugin-prismjs": "2.0.0-rc.132",
69
- "@vuepress/plugin-seo": "2.0.0-rc.132",
70
- "@vuepress/plugin-sitemap": "2.0.0-rc.132",
71
- "@vuepress/plugin-theme-data": "2.0.0-rc.131",
72
- "@vueuse/core": "^14.3.0",
73
- "vue": "^3.5.39"
57
+ "@vuepress/helper": "2.0.0-rc.135",
58
+ "@vuepress/plugin-active-header-links": "2.0.0-rc.135",
59
+ "@vuepress/plugin-back-to-top": "2.0.0-rc.135",
60
+ "@vuepress/plugin-copy-code": "2.0.0-rc.135",
61
+ "@vuepress/plugin-git": "2.0.0-rc.135",
62
+ "@vuepress/plugin-links-check": "2.0.0-rc.135",
63
+ "@vuepress/plugin-markdown-hint": "2.0.0-rc.135",
64
+ "@vuepress/plugin-markdown-tab": "2.0.0-rc.135",
65
+ "@vuepress/plugin-medium-zoom": "2.0.0-rc.135",
66
+ "@vuepress/plugin-nprogress": "2.0.0-rc.135",
67
+ "@vuepress/plugin-palette": "2.0.0-rc.135",
68
+ "@vuepress/plugin-prismjs": "2.0.0-rc.135",
69
+ "@vuepress/plugin-seo": "2.0.0-rc.135",
70
+ "@vuepress/plugin-sitemap": "2.0.0-rc.135",
71
+ "@vuepress/plugin-theme-data": "2.0.0-rc.135",
72
+ "@vueuse/core": "^15.0.0",
73
+ "vue": "^3.5.43"
74
74
  },
75
75
  "peerDependencies": {
76
- "sass": "^1.101.0",
77
- "sass-embedded": "^1.100.0",
78
- "sass-loader": "^17.0.0",
79
- "vuepress": "2.0.0-rc.30"
76
+ "sass": "^1.105.0",
77
+ "sass-embedded": "^1.105.0",
78
+ "sass-loader": "^17.0.1",
79
+ "vuepress": "2.0.0-rc.31"
80
80
  },
81
81
  "peerDependenciesMeta": {
82
82
  "sass": {
@@ -89,5 +89,5 @@
89
89
  "optional": true
90
90
  }
91
91
  },
92
- "gitHead": "700c97e4337ea7a488ef5a0c1fd5f4f41b4ded00"
92
+ "gitHead": "05e2533c381a4bbf50a5e12cc2e6dba1fb3d3fad"
93
93
  }
@@ -1,3 +0,0 @@
1
- import "./isActiveSidebarItem-DdHcB4fJ.js";
2
- import "./resolveAutoLink-LfZfSGFX.js";
3
- import "./resolveEditLink-VYO59JxD.js";
@@ -1,8 +0,0 @@
1
- import "./useDarkMode-DmWka_eQ.js";
2
- import "./useData-B20ETmVf.js";
3
- import "./useEditLink-DXlW5QzK.js";
4
- import "./useNavbarConfig-CXdLjfSJ.js";
5
- import "./useNavbarRepo-BQ2wiq-1.js";
6
- import "./useNavbarSelectLanguage-Cd32nqUA.js";
7
- import "./useRelatedLinks-B5Hq7BUl.js";
8
- import "./useSidebarItems-xWOsGwcx.js";
@@ -1,2 +0,0 @@
1
- import{normalizePath as e}from"@vuepress/helper/client";const t=(t,n)=>n.hash===t?!0:e(decodeURI(n.path),!0)===e(decodeURI(t),!0),n=(e,r)=>e.link&&t(e.link,r)?!0:`children`in e?e.children.some(e=>n(e,r)):!1;export{n as t};
2
- //# sourceMappingURL=isActiveSidebarItem-BQHhsM53.js.map
@@ -1,2 +0,0 @@
1
- import{useEventListener as e}from"@vueuse/core";import{onMounted as t}from"vue";import n from"./client/styles/_variables.module.scss";let r=function(e){return e.Mobile=`mobile`,e}({});const i={mobile:Number(n.mobile.replace(`px`,``))},a=(n,r)=>{let a=i[n];if(!Number.isInteger(a)){if(__VUEPRESS_DEV__)throw Error(`device width must be a integer`);return}e(`orientationchange`,()=>{r(a)}),e(`resize`,()=>{r(a)}),t(()=>{r(a)})};export{a as n,r as t};
2
- //# sourceMappingURL=useUpdateDeviceStatus-DMKiVB3W.js.map