vitepress 2.0.0-alpha.2 → 2.0.0-alpha.21

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 (286) hide show
  1. package/README.md +34 -2
  2. package/THIRD-PARTY-NOTICES.md +1736 -0
  3. package/bin/vitepress.js +14 -0
  4. package/client.d.ts +9 -0
  5. package/dist/client/app/components/ClientOnly.d.ts +5 -0
  6. package/dist/client/app/components/ClientOnly.js +11 -10
  7. package/dist/client/app/components/Content.d.ts +17 -0
  8. package/dist/client/app/components/Content.js +25 -22
  9. package/dist/client/app/composables/codeGroups.d.ts +3 -0
  10. package/dist/client/app/composables/codeGroups.js +36 -39
  11. package/dist/client/app/composables/copyCode.d.ts +3 -0
  12. package/dist/client/app/composables/copyCode.js +59 -70
  13. package/dist/client/app/composables/head.d.ts +5 -0
  14. package/dist/client/app/composables/head.js +56 -74
  15. package/dist/client/app/composables/icon.d.ts +12 -0
  16. package/dist/client/app/composables/icon.js +56 -0
  17. package/dist/client/app/composables/preFetch.d.ts +3 -0
  18. package/dist/client/app/composables/preFetch.js +64 -96
  19. package/dist/client/app/data.d.ts +9 -0
  20. package/dist/client/app/data.js +34 -59
  21. package/dist/client/app/devtools.d.ts +7 -0
  22. package/dist/client/app/devtools.js +29 -28
  23. package/dist/client/app/index.d.ts +11 -0
  24. package/dist/client/app/index.js +106 -131
  25. package/dist/client/app/router.d.ts +49 -0
  26. package/dist/client/app/router.js +198 -239
  27. package/dist/client/app/ssr.d.ts +4 -0
  28. package/dist/client/app/ssr.js +14 -9
  29. package/dist/client/app/theme.d.ts +24 -0
  30. package/dist/client/app/theme.js +0 -1
  31. package/dist/client/app/utils.d.ts +35 -0
  32. package/dist/client/app/utils.js +77 -110
  33. package/dist/client/index.d.ts +21 -137
  34. package/dist/client/index.js +8 -9
  35. package/dist/client/shared.d.ts +88 -0
  36. package/dist/client/shared.js +265 -141
  37. package/dist/client/theme-default/Layout.d.vue.ts +79 -0
  38. package/dist/client/theme-default/Layout.vue +33 -36
  39. package/dist/client/theme-default/NotFound.d.vue.ts +3 -0
  40. package/dist/client/theme-default/NotFound.vue +33 -35
  41. package/dist/client/theme-default/components/VPAlgoliaSearchBox.d.vue.ts +11 -0
  42. package/dist/client/theme-default/components/VPAlgoliaSearchBox.vue +202 -70
  43. package/dist/client/theme-default/components/VPBackdrop.d.vue.ts +6 -0
  44. package/dist/client/theme-default/components/VPBackdrop.vue +8 -12
  45. package/dist/client/theme-default/components/VPBadge.d.vue.ts +19 -0
  46. package/dist/client/theme-default/components/VPBadge.vue +49 -26
  47. package/dist/client/theme-default/components/VPButton.d.vue.ts +25 -0
  48. package/dist/client/theme-default/components/VPButton.vue +53 -36
  49. package/dist/client/theme-default/components/VPCarbonAds.d.vue.ts +7 -0
  50. package/dist/client/theme-default/components/VPCarbonAds.vue +51 -52
  51. package/dist/client/theme-default/components/VPContent.d.vue.ts +59 -0
  52. package/dist/client/theme-default/components/VPContent.vue +27 -26
  53. package/dist/client/theme-default/components/VPDoc.d.vue.ts +33 -0
  54. package/dist/client/theme-default/components/VPDoc.vue +52 -48
  55. package/dist/client/theme-default/components/VPDocAside.d.vue.ts +23 -0
  56. package/dist/client/theme-default/components/VPDocAside.vue +7 -8
  57. package/dist/client/theme-default/components/VPDocAsideCarbonAds.d.vue.ts +7 -0
  58. package/dist/client/theme-default/components/VPDocAsideCarbonAds.vue +7 -11
  59. package/dist/client/theme-default/components/VPDocAsideOutline.d.vue.ts +3 -0
  60. package/dist/client/theme-default/components/VPDocAsideOutline.vue +22 -38
  61. package/dist/client/theme-default/components/VPDocAsideSponsors.d.vue.ts +10 -0
  62. package/dist/client/theme-default/components/VPDocAsideSponsors.vue +17 -11
  63. package/dist/client/theme-default/components/VPDocFooter.d.vue.ts +13 -0
  64. package/dist/client/theme-default/components/VPDocFooter.vue +38 -45
  65. package/dist/client/theme-default/components/VPDocFooterLastUpdated.d.vue.ts +3 -0
  66. package/dist/client/theme-default/components/VPDocFooterLastUpdated.vue +30 -29
  67. package/dist/client/theme-default/components/VPDocOutlineItem.d.vue.ts +8 -0
  68. package/dist/client/theme-default/components/VPDocOutlineItem.vue +20 -19
  69. package/dist/client/theme-default/components/VPFeature.d.vue.ts +13 -0
  70. package/dist/client/theme-default/components/VPFeature.vue +62 -36
  71. package/dist/client/theme-default/components/VPFeatures.d.vue.ts +16 -0
  72. package/dist/client/theme-default/components/VPFeatures.vue +35 -48
  73. package/dist/client/theme-default/components/VPFlyout.d.vue.ts +26 -0
  74. package/dist/client/theme-default/components/VPFlyout.vue +111 -47
  75. package/dist/client/theme-default/components/VPFooter.d.vue.ts +3 -0
  76. package/dist/client/theme-default/components/VPFooter.vue +22 -15
  77. package/dist/client/theme-default/components/VPHero.d.vue.ts +38 -0
  78. package/dist/client/theme-default/components/VPHero.vue +109 -99
  79. package/dist/client/theme-default/components/VPHome.d.vue.ts +31 -0
  80. package/dist/client/theme-default/components/VPHome.vue +15 -15
  81. package/dist/client/theme-default/components/VPHomeContent.d.vue.ts +13 -0
  82. package/dist/client/theme-default/components/VPHomeContent.vue +9 -27
  83. package/dist/client/theme-default/components/VPHomeFeatures.d.vue.ts +3 -0
  84. package/dist/client/theme-default/components/VPHomeFeatures.vue +4 -5
  85. package/dist/client/theme-default/components/VPHomeHero.d.vue.ts +23 -0
  86. package/dist/client/theme-default/components/VPHomeHero.vue +5 -5
  87. package/dist/client/theme-default/components/VPHomeSponsors.d.vue.ts +21 -0
  88. package/dist/client/theme-default/components/VPHomeSponsors.vue +42 -43
  89. package/dist/client/theme-default/components/VPIcon.d.vue.ts +8 -0
  90. package/dist/client/theme-default/components/VPIcon.vue +29 -0
  91. package/dist/client/theme-default/components/VPImage.d.vue.ts +8 -0
  92. package/dist/client/theme-default/components/VPImage.vue +20 -14
  93. package/dist/client/theme-default/components/VPLink.d.vue.ts +23 -0
  94. package/dist/client/theme-default/components/VPLink.vue +42 -23
  95. package/dist/client/theme-default/components/VPLocalNav.d.vue.ts +10 -0
  96. package/dist/client/theme-default/components/VPLocalNav.vue +69 -86
  97. package/dist/client/theme-default/components/VPLocalNavOutlineDropdown.d.vue.ts +8 -0
  98. package/dist/client/theme-default/components/VPLocalNavOutlineDropdown.vue +98 -96
  99. package/dist/client/theme-default/components/VPLocalSearchBox.d.vue.ts +7 -0
  100. package/dist/client/theme-default/components/VPLocalSearchBox.vue +391 -454
  101. package/dist/client/theme-default/components/VPMenu.d.vue.ts +23 -0
  102. package/dist/client/theme-default/components/VPMenu.vue +19 -31
  103. package/dist/client/theme-default/components/VPMenuGroup.d.vue.ts +22 -0
  104. package/dist/client/theme-default/components/VPMenuGroup.vue +72 -18
  105. package/dist/client/theme-default/components/VPMenuLink.d.vue.ts +22 -0
  106. package/dist/client/theme-default/components/VPMenuLink.vue +65 -31
  107. package/dist/client/theme-default/components/VPNav.d.vue.ts +23 -0
  108. package/dist/client/theme-default/components/VPNav.vue +18 -24
  109. package/dist/client/theme-default/components/VPNavAppearance.d.vue.ts +9 -0
  110. package/dist/client/theme-default/components/VPNavAppearance.vue +88 -0
  111. package/dist/client/theme-default/components/VPNavBar.d.vue.ts +26 -0
  112. package/dist/client/theme-default/components/VPNavBar.vue +170 -142
  113. package/dist/client/theme-default/components/VPNavBarAskAiButton.d.vue.ts +3 -0
  114. package/dist/client/theme-default/components/VPNavBarAskAiButton.vue +31 -0
  115. package/dist/client/theme-default/components/VPNavBarExtra.d.vue.ts +3 -0
  116. package/dist/client/theme-default/components/VPNavBarExtra.vue +51 -73
  117. package/dist/client/theme-default/components/VPNavBarHamburger.d.vue.ts +10 -0
  118. package/dist/client/theme-default/components/VPNavBarHamburger.vue +38 -28
  119. package/dist/client/theme-default/components/VPNavBarSearch.d.vue.ts +3 -0
  120. package/dist/client/theme-default/components/VPNavBarSearch.vue +129 -160
  121. package/dist/client/theme-default/components/VPNavBarSearchButton.d.vue.ts +6 -0
  122. package/dist/client/theme-default/components/VPNavBarSearchButton.vue +48 -182
  123. package/dist/client/theme-default/components/VPNavBarTitle.d.vue.ts +15 -0
  124. package/dist/client/theme-default/components/VPNavBarTitle.vue +39 -38
  125. package/dist/client/theme-default/components/VPNavMenu.d.vue.ts +6 -0
  126. package/dist/client/theme-default/components/VPNavMenu.vue +76 -0
  127. package/dist/client/theme-default/components/VPNavMenuGroup.d.vue.ts +11 -0
  128. package/dist/client/theme-default/components/VPNavMenuGroup.vue +140 -0
  129. package/dist/client/theme-default/components/VPNavMenuLink.d.vue.ts +8 -0
  130. package/dist/client/theme-default/components/VPNavMenuLink.vue +69 -0
  131. package/dist/client/theme-default/components/VPNavScreen.d.vue.ts +18 -0
  132. package/dist/client/theme-default/components/VPNavScreen.vue +36 -34
  133. package/dist/client/theme-default/components/VPNavSocialLinks.d.vue.ts +6 -0
  134. package/dist/client/theme-default/components/VPNavSocialLinks.vue +36 -0
  135. package/dist/client/theme-default/components/VPNavTranslations.d.vue.ts +9 -0
  136. package/dist/client/theme-default/components/VPNavTranslations.vue +170 -0
  137. package/dist/client/theme-default/components/VPPage.d.vue.ts +15 -0
  138. package/dist/client/theme-default/components/VPSidebar.d.vue.ts +18 -0
  139. package/dist/client/theme-default/components/VPSidebar.vue +40 -53
  140. package/dist/client/theme-default/components/VPSidebarGroup.d.vue.ts +7 -0
  141. package/dist/client/theme-default/components/VPSidebarGroup.vue +24 -29
  142. package/dist/client/theme-default/components/VPSidebarItem.d.vue.ts +8 -0
  143. package/dist/client/theme-default/components/VPSidebarItem.vue +60 -93
  144. package/dist/client/theme-default/components/VPSkipLink.d.vue.ts +6 -0
  145. package/dist/client/theme-default/components/VPSkipLink.vue +23 -42
  146. package/dist/client/theme-default/components/VPSocialLink.d.vue.ts +11 -0
  147. package/dist/client/theme-default/components/VPSocialLink.vue +42 -49
  148. package/dist/client/theme-default/components/VPSocialLinks.d.vue.ts +10 -0
  149. package/dist/client/theme-default/components/VPSocialLinks.vue +26 -16
  150. package/dist/client/theme-default/components/VPSponsors.d.vue.ts +18 -0
  151. package/dist/client/theme-default/components/VPSponsors.vue +34 -33
  152. package/dist/client/theme-default/components/VPSponsorsGrid.d.vue.ts +15 -0
  153. package/dist/client/theme-default/components/VPSponsorsGrid.vue +23 -26
  154. package/dist/client/theme-default/components/VPSwitch.d.vue.ts +13 -0
  155. package/dist/client/theme-default/components/VPSwitch.vue +12 -13
  156. package/dist/client/theme-default/components/VPSwitchAppearance.d.vue.ts +3 -0
  157. package/dist/client/theme-default/components/VPSwitchAppearance.vue +16 -21
  158. package/dist/client/theme-default/components/VPTeamMembers.d.vue.ts +10 -0
  159. package/dist/client/theme-default/components/VPTeamMembers.vue +59 -32
  160. package/dist/client/theme-default/components/VPTeamMembersItem.d.vue.ts +10 -0
  161. package/dist/client/theme-default/components/VPTeamMembersItem.vue +62 -58
  162. package/dist/client/theme-default/components/VPTeamPage.d.vue.ts +13 -0
  163. package/dist/client/theme-default/components/VPTeamPage.vue +14 -14
  164. package/dist/client/theme-default/components/VPTeamPageSection.d.vue.ts +17 -0
  165. package/dist/client/theme-default/components/VPTeamPageSection.vue +20 -19
  166. package/dist/client/theme-default/components/VPTeamPageTitle.d.vue.ts +15 -0
  167. package/dist/client/theme-default/components/VPTeamPageTitle.vue +22 -22
  168. package/dist/client/theme-default/composables/data.d.ts +5 -0
  169. package/dist/client/theme-default/composables/data.js +5 -2
  170. package/dist/client/theme-default/composables/edit-link.d.ts +6 -0
  171. package/dist/client/theme-default/composables/edit-link.js +17 -15
  172. package/dist/client/theme-default/composables/flyout.d.ts +10 -0
  173. package/dist/client/theme-default/composables/flyout.js +33 -32
  174. package/dist/client/theme-default/composables/langs.d.ts +44 -0
  175. package/dist/client/theme-default/composables/langs.js +48 -24
  176. package/dist/client/theme-default/composables/layout.d.ts +13 -0
  177. package/dist/client/theme-default/composables/layout.js +68 -0
  178. package/dist/client/theme-default/composables/nav-overflow.d.ts +54 -0
  179. package/dist/client/theme-default/composables/nav-overflow.js +179 -0
  180. package/dist/client/theme-default/composables/nav.d.ts +25 -0
  181. package/dist/client/theme-default/composables/nav.js +58 -29
  182. package/dist/client/theme-default/composables/outline.d.ts +8 -0
  183. package/dist/client/theme-default/composables/outline.js +144 -166
  184. package/dist/client/theme-default/composables/prev-next.d.ts +16 -0
  185. package/dist/client/theme-default/composables/prev-next.js +34 -56
  186. package/dist/client/theme-default/composables/scroll-lock.d.ts +4 -0
  187. package/dist/client/theme-default/composables/scroll-lock.js +95 -0
  188. package/dist/client/theme-default/composables/sidebar.d.ts +25 -0
  189. package/dist/client/theme-default/composables/sidebar.js +96 -133
  190. package/dist/client/theme-default/composables/sponsor-grid.d.ts +10 -0
  191. package/dist/client/theme-default/composables/sponsor-grid.js +69 -76
  192. package/dist/client/theme-default/fonts/inter-italic-cyrillic-ext.woff2 +0 -0
  193. package/dist/client/theme-default/fonts/inter-italic-cyrillic.woff2 +0 -0
  194. package/dist/client/theme-default/fonts/inter-italic-greek-ext.woff2 +0 -0
  195. package/dist/client/theme-default/fonts/inter-italic-greek.woff2 +0 -0
  196. package/dist/client/theme-default/fonts/inter-italic-latin-ext.woff2 +0 -0
  197. package/dist/client/theme-default/fonts/inter-italic-latin.woff2 +0 -0
  198. package/dist/client/theme-default/fonts/inter-italic-symbols.woff2 +0 -0
  199. package/dist/client/theme-default/fonts/inter-italic-vietnamese.woff2 +0 -0
  200. package/dist/client/theme-default/fonts/inter-roman-cyrillic-ext.woff2 +0 -0
  201. package/dist/client/theme-default/fonts/inter-roman-cyrillic.woff2 +0 -0
  202. package/dist/client/theme-default/fonts/inter-roman-greek-ext.woff2 +0 -0
  203. package/dist/client/theme-default/fonts/inter-roman-greek.woff2 +0 -0
  204. package/dist/client/theme-default/fonts/inter-roman-latin-ext.woff2 +0 -0
  205. package/dist/client/theme-default/fonts/inter-roman-latin.woff2 +0 -0
  206. package/dist/client/theme-default/fonts/inter-roman-symbols.woff2 +0 -0
  207. package/dist/client/theme-default/fonts/inter-roman-vietnamese.woff2 +0 -0
  208. package/dist/client/theme-default/index.d.ts +3 -0
  209. package/dist/client/theme-default/index.js +4 -3
  210. package/dist/client/theme-default/styles/base.css +279 -211
  211. package/dist/client/theme-default/styles/components/custom-block.css +12 -7
  212. package/dist/client/theme-default/styles/components/vp-code-group.css +13 -16
  213. package/dist/client/theme-default/styles/components/vp-code.css +10 -2
  214. package/dist/client/theme-default/styles/components/vp-doc.css +188 -142
  215. package/dist/client/theme-default/styles/components/vp-sponsor.css +48 -37
  216. package/dist/client/theme-default/styles/docsearch.css +138 -0
  217. package/dist/client/theme-default/styles/fonts.css +216 -55
  218. package/dist/client/theme-default/styles/icons.css +42 -22
  219. package/dist/client/theme-default/styles/vars.css +111 -46
  220. package/dist/client/theme-default/support/docsearch.d.ts +57 -0
  221. package/dist/client/theme-default/support/docsearch.js +145 -0
  222. package/dist/client/theme-default/support/local-search.d.ts +9 -0
  223. package/dist/client/theme-default/support/local-search.js +31 -0
  224. package/dist/client/theme-default/support/lru.d.ts +11 -0
  225. package/dist/client/theme-default/support/lru.js +30 -33
  226. package/dist/client/theme-default/support/reactivity.d.ts +4 -0
  227. package/dist/client/theme-default/support/reactivity.js +10 -0
  228. package/dist/client/theme-default/support/sidebar.d.ts +27 -0
  229. package/dist/client/theme-default/support/sidebar.js +69 -80
  230. package/dist/client/theme-default/support/translation.d.ts +6 -0
  231. package/dist/client/theme-default/support/translation.js +33 -47
  232. package/dist/client/theme-default/support/utils.d.ts +7 -0
  233. package/dist/client/theme-default/support/utils.js +39 -30
  234. package/dist/client/theme-default/without-fonts.d.ts +25 -0
  235. package/dist/client/theme-default/without-fonts.js +37 -36
  236. package/dist/node/chunk-BjrVv9r8.js +28627 -0
  237. package/dist/node/cli.d.ts +1 -0
  238. package/dist/node/cli.js +160 -423
  239. package/dist/node/index.d.ts +1761 -2476
  240. package/dist/node/index.js +1 -121
  241. package/dist/web-types.json +75 -0
  242. package/package.json +89 -98
  243. package/template/.vitepress/config.js +3 -1
  244. package/template/.vitepress/theme/style.css +3 -11
  245. package/theme.d.ts +30 -23
  246. package/types/default-theme.d.ts +109 -113
  247. package/types/docsearch.d.ts +61 -142
  248. package/types/shared.d.ts +469 -50
  249. package/dist/client/theme-default/components/VPNavBarAppearance.vue +0 -32
  250. package/dist/client/theme-default/components/VPNavBarMenu.vue +0 -40
  251. package/dist/client/theme-default/components/VPNavBarMenuGroup.vue +0 -42
  252. package/dist/client/theme-default/components/VPNavBarMenuLink.vue +0 -53
  253. package/dist/client/theme-default/components/VPNavBarSocialLinks.vue +0 -27
  254. package/dist/client/theme-default/components/VPNavBarTranslations.vue +0 -47
  255. package/dist/client/theme-default/components/VPNavScreenAppearance.vue +0 -40
  256. package/dist/client/theme-default/components/VPNavScreenMenu.vue +0 -26
  257. package/dist/client/theme-default/components/VPNavScreenMenuGroup.vue +0 -112
  258. package/dist/client/theme-default/components/VPNavScreenMenuGroupLink.vue +0 -40
  259. package/dist/client/theme-default/components/VPNavScreenMenuGroupSection.vue +0 -34
  260. package/dist/client/theme-default/components/VPNavScreenMenuLink.vue +0 -43
  261. package/dist/client/theme-default/components/VPNavScreenSocialLinks.vue +0 -14
  262. package/dist/client/theme-default/components/VPNavScreenTranslations.vue +0 -73
  263. package/dist/client/theme-default/components/icons/VPIconAlignJustify.vue +0 -8
  264. package/dist/client/theme-default/components/icons/VPIconAlignLeft.vue +0 -8
  265. package/dist/client/theme-default/components/icons/VPIconAlignRight.vue +0 -8
  266. package/dist/client/theme-default/components/icons/VPIconArrowLeft.vue +0 -7
  267. package/dist/client/theme-default/components/icons/VPIconArrowRight.vue +0 -7
  268. package/dist/client/theme-default/components/icons/VPIconChevronDown.vue +0 -5
  269. package/dist/client/theme-default/components/icons/VPIconChevronLeft.vue +0 -5
  270. package/dist/client/theme-default/components/icons/VPIconChevronRight.vue +0 -5
  271. package/dist/client/theme-default/components/icons/VPIconChevronUp.vue +0 -5
  272. package/dist/client/theme-default/components/icons/VPIconEdit.vue +0 -6
  273. package/dist/client/theme-default/components/icons/VPIconHeart.vue +0 -5
  274. package/dist/client/theme-default/components/icons/VPIconLanguages.vue +0 -9
  275. package/dist/client/theme-default/components/icons/VPIconMinus.vue +0 -5
  276. package/dist/client/theme-default/components/icons/VPIconMinusSquare.vue +0 -6
  277. package/dist/client/theme-default/components/icons/VPIconMoon.vue +0 -5
  278. package/dist/client/theme-default/components/icons/VPIconMoreHorizontal.vue +0 -7
  279. package/dist/client/theme-default/components/icons/VPIconPlus.vue +0 -5
  280. package/dist/client/theme-default/components/icons/VPIconPlusSquare.vue +0 -6
  281. package/dist/client/theme-default/components/icons/VPIconSun.vue +0 -13
  282. package/dist/client/theme-default/composables/aside.js +0 -17
  283. package/dist/client/theme-default/composables/local-nav.js +0 -18
  284. package/dist/node/chunk-C-d2RJOW.js +0 -470
  285. package/dist/node/chunk-CxQfvv8o.js +0 -49065
  286. package/dist/node/worker_shikiResolveLang.js +0 -13
@@ -1,26 +1,31 @@
1
- <script setup lang="ts">
2
- import { type Ref, inject } from 'vue'
3
- import type { DefaultTheme } from 'vitepress/theme'
4
- import VPButton from './VPButton.vue'
5
- import VPImage from './VPImage.vue'
6
-
7
- export interface HeroAction {
8
- theme?: 'brand' | 'alt'
9
- text: string
10
- link: string
11
- target?: string
12
- rel?: string
13
- }
14
-
15
- defineProps<{
16
- name?: string
17
- text?: string
18
- tagline?: string
19
- image?: DefaultTheme.ThemeableImage
20
- actions?: HeroAction[]
21
- }>()
22
-
23
- const heroImageSlotExists = inject('hero-image-slot-exists') as Ref<boolean>
1
+ <script setup>
2
+ import { computed, inject } from "vue";
3
+ import { layoutInfoInjectionKey } from "../composables/layout";
4
+ import VPButton from "./VPButton.vue";
5
+ import VPImage from "./VPImage.vue";
6
+ defineProps({
7
+ name: {
8
+ type: String,
9
+ required: false
10
+ },
11
+ text: {
12
+ type: String,
13
+ required: false
14
+ },
15
+ tagline: {
16
+ type: String,
17
+ required: false
18
+ },
19
+ image: {
20
+ type: [String, Object],
21
+ required: false
22
+ },
23
+ actions: {
24
+ type: Array,
25
+ required: false
26
+ }
27
+ });
28
+ const { heroImageSlotExists } = inject(layoutInfoInjectionKey, { heroImageSlotExists: computed(() => false) });
24
29
  </script>
25
30
 
26
31
  <template>
@@ -30,14 +35,15 @@ const heroImageSlotExists = inject('hero-image-slot-exists') as Ref<boolean>
30
35
  <slot name="home-hero-info-before" />
31
36
  <slot name="home-hero-info">
32
37
  <h1 class="heading">
33
- <span v-if="name" v-html="name" class="name clip"></span>
34
- <span v-if="text" v-html="text" class="text"></span>
38
+ <span v-if="name" dir="auto" v-html="name" class="name clip"></span>
39
+ <span v-if="text" dir="auto" v-html="text" class="text"></span>
35
40
  </h1>
36
- <p v-if="tagline" v-html="tagline" class="tagline"></p>
41
+ <p v-if="tagline" class="tagline"><bdi v-html="tagline" /></p>
37
42
  </slot>
38
43
  <slot name="home-hero-info-after" />
39
44
 
40
45
  <div v-if="actions" class="actions">
46
+ <slot name="home-hero-actions-before-actions" />
41
47
  <div v-for="action in actions" :key="action.link" class="action">
42
48
  <VPButton
43
49
  tag="a"
@@ -57,7 +63,7 @@ const heroImageSlotExists = inject('hero-image-slot-exists') as Ref<boolean>
57
63
  <div class="image-container">
58
64
  <div class="image-bg" />
59
65
  <slot name="home-hero-image">
60
- <VPImage v-if="image" class="image-src" :image="image" />
66
+ <VPImage v-if="image" class="image-src" :image />
61
67
  </slot>
62
68
  </div>
63
69
  </div>
@@ -68,18 +74,18 @@ const heroImageSlotExists = inject('hero-image-slot-exists') as Ref<boolean>
68
74
  <style scoped>
69
75
  .VPHero {
70
76
  margin-top: calc((var(--vp-nav-height) + var(--vp-layout-top-height, 0px)) * -1);
71
- padding: calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 48px) 24px 48px;
77
+ padding: calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 3rem) 1.5rem 3rem;
72
78
  }
73
79
 
74
- @media (min-width: 640px) {
80
+ @media (min-width: 40rem) {
75
81
  .VPHero {
76
- padding: calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 80px) 48px 64px;
82
+ padding: calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 5rem) 3rem 4rem;
77
83
  }
78
84
  }
79
85
 
80
- @media (min-width: 960px) {
86
+ @media (min-width: 60rem) {
81
87
  .VPHero {
82
- padding: calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 80px) 64px 64px;
88
+ padding: calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 5rem) 4rem 4rem;
83
89
  }
84
90
  }
85
91
 
@@ -87,10 +93,10 @@ const heroImageSlotExists = inject('hero-image-slot-exists') as Ref<boolean>
87
93
  display: flex;
88
94
  flex-direction: column;
89
95
  margin: 0 auto;
90
- max-width: 1152px;
96
+ max-width: 72rem;
91
97
  }
92
98
 
93
- @media (min-width: 960px) {
99
+ @media (min-width: 60rem) {
94
100
  .container {
95
101
  flex-direction: row;
96
102
  }
@@ -108,20 +114,20 @@ const heroImageSlotExists = inject('hero-image-slot-exists') as Ref<boolean>
108
114
  text-align: center;
109
115
  }
110
116
 
111
- @media (min-width: 960px) {
117
+ @media (min-width: 60rem) {
112
118
  .VPHero.has-image .container {
113
- text-align: left;
119
+ text-align: start;
114
120
  }
115
121
  }
116
122
 
117
- @media (min-width: 960px) {
123
+ @media (min-width: 60rem) {
118
124
  .main {
119
125
  order: 1;
120
126
  width: calc((100% / 3) * 2);
121
127
  }
122
128
 
123
129
  .VPHero.has-image .main {
124
- max-width: 592px;
130
+ max-width: 37rem;
125
131
  }
126
132
  }
127
133
 
@@ -133,12 +139,17 @@ const heroImageSlotExists = inject('hero-image-slot-exists') as Ref<boolean>
133
139
  .name,
134
140
  .text {
135
141
  width: fit-content;
136
- max-width: 392px;
137
- letter-spacing: -0.4px;
138
- line-height: 40px;
139
- font-size: 32px;
142
+ max-width: 24.5rem;
143
+ letter-spacing: -0.025rem;
144
+ line-height: 1.25;
145
+ font-size: 2rem;
140
146
  font-weight: 700;
141
147
  white-space: pre-wrap;
148
+
149
+ &:lang(ja) {
150
+ font-feature-settings: 'palt';
151
+ word-break: auto-phrase;
152
+ }
142
153
  }
143
154
 
144
155
  .VPHero.has-image .name,
@@ -157,20 +168,20 @@ const heroImageSlotExists = inject('hero-image-slot-exists') as Ref<boolean>
157
168
  -webkit-text-fill-color: var(--vp-home-hero-name-color);
158
169
  }
159
170
 
160
- @media (min-width: 640px) {
171
+ @media (min-width: 40rem) {
161
172
  .name,
162
173
  .text {
163
- max-width: 576px;
164
- line-height: 56px;
165
- font-size: 48px;
174
+ max-width: 36rem;
175
+ line-height: 1.1666667;
176
+ font-size: 3rem;
166
177
  }
167
178
  }
168
179
 
169
- @media (min-width: 960px) {
180
+ @media (min-width: 60rem) {
170
181
  .name,
171
182
  .text {
172
- line-height: 64px;
173
- font-size: 56px;
183
+ line-height: 1.1428571;
184
+ font-size: 3.5rem;
174
185
  }
175
186
 
176
187
  .VPHero.has-image .name,
@@ -180,10 +191,10 @@ const heroImageSlotExists = inject('hero-image-slot-exists') as Ref<boolean>
180
191
  }
181
192
 
182
193
  .tagline {
183
- padding-top: 8px;
184
- max-width: 392px;
185
- line-height: 28px;
186
- font-size: 18px;
194
+ padding-top: 0.5rem;
195
+ max-width: 24.5rem;
196
+ line-height: 1.5555556;
197
+ font-size: 1.125rem;
187
198
  font-weight: 500;
188
199
  white-space: pre-wrap;
189
200
  color: var(--vp-c-text-2);
@@ -193,19 +204,19 @@ const heroImageSlotExists = inject('hero-image-slot-exists') as Ref<boolean>
193
204
  margin: 0 auto;
194
205
  }
195
206
 
196
- @media (min-width: 640px) {
207
+ @media (min-width: 40rem) {
197
208
  .tagline {
198
- padding-top: 12px;
199
- max-width: 576px;
200
- line-height: 32px;
201
- font-size: 20px;
209
+ padding-top: 0.75rem;
210
+ max-width: 36rem;
211
+ line-height: 1.6;
212
+ font-size: 1.25rem;
202
213
  }
203
214
  }
204
215
 
205
- @media (min-width: 960px) {
216
+ @media (min-width: 60rem) {
206
217
  .tagline {
207
- line-height: 36px;
208
- font-size: 24px;
218
+ line-height: 1.5;
219
+ font-size: 1.5rem;
209
220
  }
210
221
 
211
222
  .VPHero.has-image .tagline {
@@ -216,21 +227,21 @@ const heroImageSlotExists = inject('hero-image-slot-exists') as Ref<boolean>
216
227
  .actions {
217
228
  display: flex;
218
229
  flex-wrap: wrap;
219
- margin: -6px;
220
- padding-top: 24px;
230
+ margin: -0.375rem;
231
+ padding-top: 1.5rem;
221
232
  }
222
233
 
223
234
  .VPHero.has-image .actions {
224
235
  justify-content: center;
225
236
  }
226
237
 
227
- @media (min-width: 640px) {
238
+ @media (min-width: 40rem) {
228
239
  .actions {
229
- padding-top: 32px;
240
+ padding-top: 2rem;
230
241
  }
231
242
  }
232
243
 
233
- @media (min-width: 960px) {
244
+ @media (min-width: 60rem) {
234
245
  .VPHero.has-image .actions {
235
246
  justify-content: flex-start;
236
247
  }
@@ -238,21 +249,21 @@ const heroImageSlotExists = inject('hero-image-slot-exists') as Ref<boolean>
238
249
 
239
250
  .action {
240
251
  flex-shrink: 0;
241
- padding: 6px;
252
+ padding: 0.375rem;
242
253
  }
243
254
 
244
255
  .image {
245
256
  order: 1;
246
- margin: -76px -24px -48px;
257
+ margin: -4.75rem -1.5rem -3rem;
247
258
  }
248
259
 
249
- @media (min-width: 640px) {
260
+ @media (min-width: 40rem) {
250
261
  .image {
251
- margin: -108px -24px -48px;
262
+ margin: -6.75rem -1.5rem -3rem;
252
263
  }
253
264
  }
254
265
 
255
- @media (min-width: 960px) {
266
+ @media (min-width: 60rem) {
256
267
  .image {
257
268
  flex-grow: 1;
258
269
  order: 2;
@@ -264,79 +275,78 @@ const heroImageSlotExists = inject('hero-image-slot-exists') as Ref<boolean>
264
275
  .image-container {
265
276
  position: relative;
266
277
  margin: 0 auto;
267
- width: 320px;
268
- height: 320px;
278
+ width: 20rem;
279
+ height: 20rem;
269
280
  }
270
281
 
271
- @media (min-width: 640px) {
282
+ @media (min-width: 40rem) {
272
283
  .image-container {
273
- width: 392px;
274
- height: 392px;
284
+ width: 24.5rem;
285
+ height: 24.5rem;
275
286
  }
276
287
  }
277
288
 
278
- @media (min-width: 960px) {
289
+ @media (min-width: 60rem) {
279
290
  .image-container {
280
291
  display: flex;
281
292
  justify-content: center;
282
293
  align-items: center;
283
294
  width: 100%;
284
295
  height: 100%;
285
- /*rtl:ignore*/
286
- transform: translate(-32px, -32px);
296
+ transform: translate(calc(-2rem * var(--vp-direction-multiplier)), -2rem);
287
297
  }
288
298
  }
289
299
 
290
300
  .image-bg {
291
301
  position: absolute;
292
302
  top: 50%;
293
- /*rtl:ignore*/
294
303
  left: 50%;
295
304
  border-radius: 50%;
296
- width: 192px;
297
- height: 192px;
305
+ width: 12rem;
306
+ height: 12rem;
298
307
  background-image: var(--vp-home-hero-image-background-image);
308
+ will-change: filter;
299
309
  filter: var(--vp-home-hero-image-filter);
300
- /*rtl:ignore*/
301
310
  transform: translate(-50%, -50%);
302
311
  }
303
312
 
304
- @media (min-width: 640px) {
313
+ @media (min-width: 40rem) {
305
314
  .image-bg {
306
- width: 256px;
307
- height: 256px;
315
+ width: 16rem;
316
+ height: 16rem;
308
317
  }
309
318
  }
310
319
 
311
- @media (min-width: 960px) {
320
+ @media (min-width: 60rem) {
312
321
  .image-bg {
313
- width: 320px;
314
- height: 320px;
322
+ width: 20rem;
323
+ height: 20rem;
315
324
  }
316
325
  }
317
326
 
318
327
  :deep(.image-src) {
319
328
  position: absolute;
320
329
  top: 50%;
321
- /*rtl:ignore*/
322
330
  left: 50%;
323
- max-width: 192px;
324
- max-height: 192px;
325
- /*rtl:ignore*/
331
+ max-width: 12rem;
332
+ max-height: 12rem;
333
+ width: 100%;
334
+ height: 100%;
335
+ object-fit: contain;
326
336
  transform: translate(-50%, -50%);
327
337
  }
328
338
 
329
- @media (min-width: 640px) {
339
+ @media (min-width: 40rem) {
330
340
  :deep(.image-src) {
331
- max-width: 256px;
332
- max-height: 256px;
341
+ max-width: 16rem;
342
+ max-height: 16rem;
333
343
  }
334
344
  }
335
345
 
336
- @media (min-width: 960px) {
346
+ @media (min-width: 60rem) {
337
347
  :deep(.image-src) {
338
- max-width: 320px;
339
- max-height: 320px;
348
+ max-width: 20rem;
349
+ max-height: 20rem;
340
350
  }
341
351
  }
342
352
  </style>
@@ -0,0 +1,31 @@
1
+ declare var __VLS_1: {}, __VLS_10: {}, __VLS_13: {}, __VLS_16: {}, __VLS_19: {}, __VLS_22: {}, __VLS_25: {}, __VLS_27: {}, __VLS_29: {}, __VLS_36: {};
2
+ type __VLS_Slots = {} & {
3
+ 'home-hero-before'?: (props: typeof __VLS_1) => any;
4
+ } & {
5
+ 'home-hero-info-before'?: (props: typeof __VLS_10) => any;
6
+ } & {
7
+ 'home-hero-info'?: (props: typeof __VLS_13) => any;
8
+ } & {
9
+ 'home-hero-info-after'?: (props: typeof __VLS_16) => any;
10
+ } & {
11
+ 'home-hero-actions-after'?: (props: typeof __VLS_19) => any;
12
+ } & {
13
+ 'home-hero-actions-before-actions'?: (props: typeof __VLS_22) => any;
14
+ } & {
15
+ 'home-hero-image'?: (props: typeof __VLS_25) => any;
16
+ } & {
17
+ 'home-hero-after'?: (props: typeof __VLS_27) => any;
18
+ } & {
19
+ 'home-features-before'?: (props: typeof __VLS_29) => any;
20
+ } & {
21
+ 'home-features-after'?: (props: typeof __VLS_36) => any;
22
+ };
23
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
24
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
25
+ declare const _default: typeof __VLS_export;
26
+ export default _default;
27
+ type __VLS_WithSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
@@ -1,24 +1,23 @@
1
- <script setup lang="ts">
2
- import VPHomeHero from './VPHomeHero.vue'
3
- import VPHomeFeatures from './VPHomeFeatures.vue'
4
- import VPHomeContent from './VPHomeContent.vue'
5
- import { useData } from '../composables/data'
6
-
7
- const { frontmatter, theme } = useData()
1
+ <script setup>
2
+ import { useData } from "../composables/data";
3
+ import VPHomeContent from "./VPHomeContent.vue";
4
+ import VPHomeFeatures from "./VPHomeFeatures.vue";
5
+ import VPHomeHero from "./VPHomeHero.vue";
6
+ const { frontmatter, theme } = useData();
8
7
  </script>
9
8
 
10
9
  <template>
11
- <div
12
- class="VPHome"
13
- :class="{
14
- 'external-link-icon-enabled': theme.externalLinkIcon
15
- }">
10
+ <div
11
+ class="VPHome"
12
+ :class="{ 'external-link-icon-enabled': theme.externalLinkIcon }"
13
+ >
16
14
  <slot name="home-hero-before" />
17
15
  <VPHomeHero>
18
16
  <template #home-hero-info-before><slot name="home-hero-info-before" /></template>
19
17
  <template #home-hero-info><slot name="home-hero-info" /></template>
20
18
  <template #home-hero-info-after><slot name="home-hero-info-after" /></template>
21
19
  <template #home-hero-actions-after><slot name="home-hero-actions-after" /></template>
20
+ <template #home-hero-actions-before-actions><slot name="home-hero-actions-before-actions" /></template>
22
21
  <template #home-hero-image><slot name="home-hero-image" /></template>
23
22
  </VPHomeHero>
24
23
  <slot name="home-hero-after" />
@@ -36,12 +35,13 @@ const { frontmatter, theme } = useData()
36
35
 
37
36
  <style scoped>
38
37
  .VPHome {
39
- margin-bottom: 96px;
38
+ overflow-x: clip;
39
+ margin-bottom: 6rem;
40
40
  }
41
41
 
42
- @media (min-width: 768px) {
42
+ @media (min-width: 48rem) {
43
43
  .VPHome {
44
- margin-bottom: 128px;
44
+ margin-bottom: 8rem;
45
45
  }
46
46
  }
47
47
  </style>
@@ -0,0 +1,13 @@
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
@@ -1,17 +1,5 @@
1
- <script setup lang="ts">
2
- import { useWindowSize } from '@vueuse/core'
3
-
4
- const { width: vw } = useWindowSize({
5
- initialWidth: 0,
6
- includeScrollbar: false
7
- })
8
- </script>
9
-
10
1
  <template>
11
- <div
12
- class="vp-doc container"
13
- :style="vw ? { '--vp-offset': `calc(50% - ${vw / 2}px)` } : {}"
14
- >
2
+ <div class="VPHomeContent vp-doc container">
15
3
  <slot />
16
4
  </div>
17
5
  </template>
@@ -20,35 +8,29 @@ const { width: vw } = useWindowSize({
20
8
  .container {
21
9
  margin: auto;
22
10
  width: 100%;
23
- max-width: 1280px;
24
- padding: 0 24px;
11
+ max-width: 80rem;
12
+ padding: 0 1.5rem;
25
13
  }
26
14
 
27
- @media (min-width: 640px) {
15
+ @media (min-width: 40rem) {
28
16
  .container {
29
- padding: 0 48px;
17
+ padding: 0 3rem;
30
18
  }
31
19
  }
32
20
 
33
- @media (min-width: 960px) {
21
+ @media (min-width: 60rem) {
34
22
  .container {
35
23
  width: 100%;
36
- padding: 0 64px;
24
+ padding: 0 4rem;
37
25
  }
38
26
  }
39
27
 
28
+ /* stretch to full viewport width, overflow is clipped by .VPHome */
40
29
  .vp-doc :deep(.VPHomeSponsors),
41
30
  .vp-doc :deep(.VPTeamPage) {
42
- margin-left: var(--vp-offset, calc(50% - 50vw));
43
- margin-right: var(--vp-offset, calc(50% - 50vw));
44
- }
45
-
46
- .vp-doc :deep(.VPHomeSponsors h2) {
47
- border-top: none;
48
- letter-spacing: normal;
31
+ margin-inline: calc(50% - 50vw);
49
32
  }
50
33
 
51
- .vp-doc :deep(.VPHomeSponsors a),
52
34
  .vp-doc :deep(.VPTeamPage a) {
53
35
  text-decoration: none;
54
36
  }
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -1,8 +1,7 @@
1
- <script setup lang="ts">
2
- import { useData } from '../composables/data'
3
- import VPFeatures from './VPFeatures.vue'
4
-
5
- const { frontmatter: fm } = useData()
1
+ <script setup>
2
+ import { useData } from "../composables/data";
3
+ import VPFeatures from "./VPFeatures.vue";
4
+ const { frontmatter: fm } = useData();
6
5
  </script>
7
6
 
8
7
  <template>
@@ -0,0 +1,23 @@
1
+ declare var __VLS_8: {}, __VLS_11: {}, __VLS_14: {}, __VLS_17: {}, __VLS_20: {}, __VLS_23: {};
2
+ type __VLS_Slots = {} & {
3
+ 'home-hero-info-before'?: (props: typeof __VLS_8) => any;
4
+ } & {
5
+ 'home-hero-info'?: (props: typeof __VLS_11) => any;
6
+ } & {
7
+ 'home-hero-info-after'?: (props: typeof __VLS_14) => any;
8
+ } & {
9
+ 'home-hero-actions-after'?: (props: typeof __VLS_17) => any;
10
+ } & {
11
+ 'home-hero-actions-before-actions'?: (props: typeof __VLS_20) => any;
12
+ } & {
13
+ 'home-hero-image'?: (props: typeof __VLS_23) => any;
14
+ };
15
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
16
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
19
+ type __VLS_WithSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -1,8 +1,7 @@
1
- <script setup lang="ts">
2
- import { useData } from '../composables/data'
3
- import VPHero from './VPHero.vue'
4
-
5
- const { frontmatter: fm } = useData()
1
+ <script setup>
2
+ import { useData } from "../composables/data";
3
+ import VPHero from "./VPHero.vue";
4
+ const { frontmatter: fm } = useData();
6
5
  </script>
7
6
 
8
7
  <template>
@@ -19,6 +18,7 @@ const { frontmatter: fm } = useData()
19
18
  <template #home-hero-info><slot name="home-hero-info" /></template>
20
19
  <template #home-hero-info-after><slot name="home-hero-info-after" /></template>
21
20
  <template #home-hero-actions-after><slot name="home-hero-actions-after" /></template>
21
+ <template #home-hero-actions-before-actions><slot name="home-hero-actions-before-actions" /></template>
22
22
  <template #home-hero-image><slot name="home-hero-image" /></template>
23
23
  </VPHero>
24
24
  </template>
@@ -0,0 +1,21 @@
1
+ export interface Sponsors {
2
+ tier: string;
3
+ size?: 'medium' | 'big';
4
+ items: Sponsor[];
5
+ }
6
+ export interface Sponsor {
7
+ name: string;
8
+ img: string;
9
+ url: string;
10
+ }
11
+ interface Props {
12
+ message?: string;
13
+ actionText?: string;
14
+ actionLink?: string;
15
+ data: Sponsors[];
16
+ }
17
+ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
18
+ actionText: string;
19
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;