From fcf828c2a71892dad5af8d21e405f4d1e2cc280c Mon Sep 17 00:00:00 2001 From: lsh <59404696+peterroe@users.noreply.github.com> Date: Thu, 18 Jan 2024 22:53:17 +0800 Subject: [PATCH 01/55] fix(type): fix missed `VPBadge` type in `theme.d.ts` (#3470) --- theme.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/theme.d.ts b/theme.d.ts index 476fe21a..a5572666 100644 --- a/theme.d.ts +++ b/theme.d.ts @@ -16,6 +16,7 @@ export declare const useSidebar: () => DefaultTheme.DocSidebar export declare const useLocalNav: () => DefaultTheme.DocLocalNav // TODO: add props for these +export declare const VPBadge: DefineComponent export declare const VPButton: DefineComponent export declare const VPDocAsideSponsors: DefineComponent export declare const VPHomeFeatures: DefineComponent From 9510cd70c14ce9a80962ade5dd1702f7d2e2218e Mon Sep 17 00:00:00 2001 From: skirtle <65301168+skirtles-code@users.noreply.github.com> Date: Fri, 19 Jan 2024 09:15:06 +0000 Subject: [PATCH 02/55] docs: add a canonical URL `` example (#3473) --- docs/reference/site-config.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/reference/site-config.md b/docs/reference/site-config.md index 1cf9d726..f23082f8 100644 --- a/docs/reference/site-config.md +++ b/docs/reference/site-config.md @@ -645,6 +645,23 @@ export default { } ``` +#### Example: Adding a canonical URL `` + +```ts +export default { + transformHead({ page }) { + // Skip the 404 page + if (page !== '404.md') { + const canonicalUrl = `https://example.com/${page}` + .replace(/index\.md$/, '') + .replace(/\.md$/, '.html') + + return [['link', { rel: 'canonical', href: canonicalUrl }]] + } + } +} +``` + ### transformHtml - Type: `(code: string, id: string, context: TransformContext) => Awaitable` From 5e2d853e1a315216dce5fc98ee2efd15c724a25d Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Fri, 19 Jan 2024 16:24:05 +0530 Subject: [PATCH 03/55] fix(client): handle head orphans added in initial load (#3474) --- src/client/app/composables/head.ts | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/client/app/composables/head.ts b/src/client/app/composables/head.ts index 6b0e23f8..d0000a3c 100644 --- a/src/client/app/composables/head.ts +++ b/src/client/app/composables/head.ts @@ -8,14 +8,24 @@ import { import type { Route } from '../router' export function useUpdateHead(route: Route, siteDataByRouteRef: Ref) { - let managedHeadElements: (HTMLElement | undefined)[] = [] let isFirstUpdate = true + let managedHeadElements: (HTMLElement | undefined)[] = [] const updateHeadTags = (newTags: HeadConfig[]) => { if (import.meta.env.PROD && isFirstUpdate) { // in production, the initial meta tags are already pre-rendered so we // skip the first update. isFirstUpdate = false + newTags.forEach((tag) => { + const selector = toSelector(tag[0], tag[1]) + const headEl = createHeadElement(tag) + ;[...document.querySelectorAll(selector)].some((el) => { + if (el.isEqualNode(headEl)) { + managedHeadElements.push(el as HTMLElement) + return true + } + }) + }) return } @@ -96,3 +106,9 @@ function isMetaDescription(headConfig: HeadConfig) { function filterOutHeadDescription(head: HeadConfig[]) { return head.filter((h) => !isMetaDescription(h)) } + +function toSelector(tag: string, attrs: Record) { + return `${tag}${Object.keys(attrs) + .map((key) => `[${key}="${attrs[key].replace(/(["'\\])/g, '\\$1')}"]`) + .join('')}` +} From b1d01dbe8ae2be813e012119b16d5f1d1575dc53 Mon Sep 17 00:00:00 2001 From: szchixy Date: Fri, 19 Jan 2024 19:26:48 +0800 Subject: [PATCH 04/55] docs: add x SocialLinkIcon (#3475) --- docs/reference/default-theme-config.md | 1 + docs/zh/reference/default-theme-config.md | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/reference/default-theme-config.md b/docs/reference/default-theme-config.md index fb6d30b5..980fa0aa 100644 --- a/docs/reference/default-theme-config.md +++ b/docs/reference/default-theme-config.md @@ -246,6 +246,7 @@ type SocialLinkIcon = | 'mastodon' | 'slack' | 'twitter' + | 'x' | 'youtube' | { svg: string } ``` diff --git a/docs/zh/reference/default-theme-config.md b/docs/zh/reference/default-theme-config.md index bf439196..f9c3f561 100644 --- a/docs/zh/reference/default-theme-config.md +++ b/docs/zh/reference/default-theme-config.md @@ -246,6 +246,7 @@ type SocialLinkIcon = | 'mastodon' | 'slack' | 'twitter' + | 'x' | 'youtube' | { svg: string } ``` From 3a29790c813b576d7a71e0a82e228824543c6ee3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 20 Jan 2024 11:41:00 +0530 Subject: [PATCH 05/55] build(deps): bump vite from 5.0.11 to 5.0.12 (#3479) Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.0.11 to 5.0.12. - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/v5.0.12/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v5.0.12/packages/vite) --- updated-dependencies: - dependency-name: vite dependency-type: direct:production ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pnpm-lock.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2848340f..2d3fbaf4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -22,7 +22,7 @@ importers: version: 13.0.7 '@vitejs/plugin-vue': specifier: ^5.0.3 - version: 5.0.3(vite@5.0.11)(vue@3.4.14) + version: 5.0.3(vite@5.0.12)(vue@3.4.14) '@vue/devtools-api': specifier: ^6.5.1 version: 6.5.1 @@ -52,7 +52,7 @@ importers: version: 0.9.19 vite: specifier: ^5.0.11 - version: 5.0.11(@types/node@20.11.2) + version: 5.0.12(@types/node@20.11.2) vue: specifier: ^3.4.14 version: 3.4.14(typescript@5.3.3) @@ -1331,14 +1331,14 @@ packages: resolution: {integrity: sha512-g9gZnnXVq7gM7v3tJCWV/qw7w+KeOlSHAhgF9RytFyifW6AF61hdT2ucrYhPq9hLs5JIryeupHV3qGk95dH9ow==} dev: false - /@vitejs/plugin-vue@5.0.3(vite@5.0.11)(vue@3.4.14): + /@vitejs/plugin-vue@5.0.3(vite@5.0.12)(vue@3.4.14): resolution: {integrity: sha512-b8S5dVS40rgHdDrw+DQi/xOM9ed+kSRZzfm1T74bMmBDCd8XO87NKlFYInzCtwvtWwXZvo1QxE2OSspTATWrbA==} engines: {node: ^18.0.0 || >=20.0.0} peerDependencies: vite: ^5.0.0 vue: ^3.2.25 dependencies: - vite: 5.0.11(@types/node@20.11.2) + vite: 5.0.12(@types/node@20.11.2) vue: 3.4.14(typescript@5.3.3) dev: false @@ -4686,7 +4686,7 @@ packages: debug: 4.3.4(supports-color@9.4.0) pathe: 1.1.2 picocolors: 1.0.0 - vite: 5.0.11(@types/node@20.11.2) + vite: 5.0.12(@types/node@20.11.2) transitivePeerDependencies: - '@types/node' - less @@ -4698,8 +4698,8 @@ packages: - terser dev: true - /vite@5.0.11(@types/node@20.11.2): - resolution: {integrity: sha512-XBMnDjZcNAw/G1gEiskiM1v6yzM4GE5aMGvhWTlHAYYhxb7S3/V1s3m2LDHa8Vh6yIWYYB0iJwsEaS523c4oYA==} + /vite@5.0.12(@types/node@20.11.2): + resolution: {integrity: sha512-4hsnEkG3q0N4Tzf1+t6NdN9dg/L3BM+q8SWgbSPnJvrgH2kgdyzfVJwbR1ic69/4uMJJ/3dqDZZE5/WwqW8U1w==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: @@ -4777,7 +4777,7 @@ packages: strip-literal: 1.3.0 tinybench: 2.5.1 tinypool: 0.8.1 - vite: 5.0.11(@types/node@20.11.2) + vite: 5.0.12(@types/node@20.11.2) vite-node: 1.2.0(@types/node@20.11.2)(supports-color@9.4.0) why-is-node-running: 2.2.2 transitivePeerDependencies: From c882fa1469a7bd0d6e28196e7a841adf48e803f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EA=B4=80=EC=8B=9D?= <39869096+gwansikk@users.noreply.github.com> Date: Sun, 21 Jan 2024 00:14:18 +0900 Subject: [PATCH 06/55] feat(theme): add npm icon (#3483) --- docs/reference/default-theme-config.md | 1 + src/client/theme-default/support/socialIcons.ts | 1 + types/default-theme.d.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/docs/reference/default-theme-config.md b/docs/reference/default-theme-config.md index 980fa0aa..f41fb7ad 100644 --- a/docs/reference/default-theme-config.md +++ b/docs/reference/default-theme-config.md @@ -244,6 +244,7 @@ type SocialLinkIcon = | 'instagram' | 'linkedin' | 'mastodon' + | 'npm' | 'slack' | 'twitter' | 'x' diff --git a/src/client/theme-default/support/socialIcons.ts b/src/client/theme-default/support/socialIcons.ts index df427040..18c4bf8c 100644 --- a/src/client/theme-default/support/socialIcons.ts +++ b/src/client/theme-default/support/socialIcons.ts @@ -12,6 +12,7 @@ export const icons = { 'LinkedIn', mastodon: 'Mastodon', + npm: 'npm', slack: 'Slack', twitter: diff --git a/types/default-theme.d.ts b/types/default-theme.d.ts index fc8d4343..d6636643 100644 --- a/types/default-theme.d.ts +++ b/types/default-theme.d.ts @@ -334,6 +334,7 @@ export namespace DefaultTheme { | 'instagram' | 'linkedin' | 'mastodon' + | 'npm' | 'slack' | 'twitter' | 'x' From ba3c6441be38b0828c67dad35acabab0035fc816 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Sat, 20 Jan 2024 21:18:25 +0530 Subject: [PATCH 07/55] docs: update recommendation for canonical urls to use transformPageData instead --- docs/reference/site-config.md | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/docs/reference/site-config.md b/docs/reference/site-config.md index f23082f8..5e513ecc 100644 --- a/docs/reference/site-config.md +++ b/docs/reference/site-config.md @@ -645,19 +645,20 @@ export default { } ``` -#### Example: Adding a canonical URL `` +#### Example: Adding a canonical URL `` ```ts export default { - transformHead({ page }) { - // Skip the 404 page - if (page !== '404.md') { - const canonicalUrl = `https://example.com/${page}` - .replace(/index\.md$/, '') - .replace(/\.md$/, '.html') - - return [['link', { rel: 'canonical', href: canonicalUrl }]] - } + transformPageData(pageData) { + const canonicalUrl = `https://example.com/${pageData.relativePath}` + .replace(/index\.md$/, '') + .replace(/\.md$/, '.html') + + pageData.frontmatter.head ??= [] + pageData.frontmatter.head.push([ + 'link', + { rel: 'canonical', href: canonicalUrl } + ]) } } ``` From 900872769e9adb1e9fe2f0008c500c4367bee3d4 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Sun, 21 Jan 2024 00:36:20 +0530 Subject: [PATCH 08/55] refactor: simplify head tracking logic --- src/client/app/composables/head.ts | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/client/app/composables/head.ts b/src/client/app/composables/head.ts index d0000a3c..708c16eb 100644 --- a/src/client/app/composables/head.ts +++ b/src/client/app/composables/head.ts @@ -17,14 +17,13 @@ export function useUpdateHead(route: Route, siteDataByRouteRef: Ref) { // skip the first update. isFirstUpdate = false newTags.forEach((tag) => { - const selector = toSelector(tag[0], tag[1]) const headEl = createHeadElement(tag) - ;[...document.querySelectorAll(selector)].some((el) => { + for (const el of document.head.children) { if (el.isEqualNode(headEl)) { managedHeadElements.push(el as HTMLElement) - return true + return } - }) + } }) return } @@ -106,9 +105,3 @@ function isMetaDescription(headConfig: HeadConfig) { function filterOutHeadDescription(head: HeadConfig[]) { return head.filter((h) => !isMetaDescription(h)) } - -function toSelector(tag: string, attrs: Record) { - return `${tag}${Object.keys(attrs) - .map((key) => `[${key}="${attrs[key].replace(/(["'\\])/g, '\\$1')}"]`) - .join('')}` -} From bc292124a8428dafcc9c6e123bb4bc1800f0e9e9 Mon Sep 17 00:00:00 2001 From: Super Jump Date: Sun, 21 Jan 2024 16:32:31 +0800 Subject: [PATCH 09/55] docs(zh): fix chinese translation for default-theme-config.md (#3480) --- docs/zh/reference/default-theme-config.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/zh/reference/default-theme-config.md b/docs/zh/reference/default-theme-config.md index f9c3f561..70ac731a 100644 --- a/docs/zh/reference/default-theme-config.md +++ b/docs/zh/reference/default-theme-config.md @@ -29,7 +29,7 @@ export default { - 类型:`ThemeableImage` -导航栏上显示的 Logo,位于站点标题右侧。可以接受一个路径字符串,或者一个对象来设置在浅色/深色模式下不同的 Logo。 +导航栏上显示的 Logo,位于站点标题前。可以接受一个路径字符串,或者一个对象来设置在浅色/深色模式下不同的 Logo。 ```ts export default { From 77a318c2a348d341dd3ea1e1650fcf8ad3abfcd7 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Sun, 21 Jan 2024 23:12:06 +0530 Subject: [PATCH 10/55] fix(theme): avoid selecting summary on toggling details --- src/client/theme-default/styles/components/custom-block.css | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/theme-default/styles/components/custom-block.css b/src/client/theme-default/styles/components/custom-block.css index f4527868..7af89807 100644 --- a/src/client/theme-default/styles/components/custom-block.css +++ b/src/client/theme-default/styles/components/custom-block.css @@ -118,6 +118,7 @@ margin: 0 0 8px; font-weight: 700; cursor: pointer; + user-select: none; } .custom-block.details summary + p { From ac87d19ca1bbc966e5fe1cca5f433f5ea4b11be3 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Sun, 21 Jan 2024 18:47:11 +0100 Subject: [PATCH 11/55] feat: support GitHub-flavored alerts (#3482) Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> --- docs/guide/markdown.md | 36 +++++++++++ .../styles/components/custom-block.css | 60 ++++++++++++++++++ src/client/theme-default/styles/vars.css | 40 ++++++++++++ src/node/markdown/markdown.ts | 2 + src/node/markdown/plugins/containers.ts | 3 + src/node/markdown/plugins/githubAlerts.ts | 62 +++++++++++++++++++ 6 files changed, 203 insertions(+) create mode 100644 src/node/markdown/plugins/githubAlerts.ts diff --git a/docs/guide/markdown.md b/docs/guide/markdown.md index 7dccbe7e..25a7ee66 100644 --- a/docs/guide/markdown.md +++ b/docs/guide/markdown.md @@ -263,6 +263,42 @@ Wraps in a
}) ``` +## GitHub-flavored Alerts + +VitePress also supports [GitHub-flavored alerts](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts) to render as callouts. They will be rendered the same as the [custom containers](#custom-containers). + +```md +> [!NOTE] +> Highlights information that users should take into account, even when skimming. + +> [!TIP] +> Optional information to help a user be more successful. + +> [!IMPORTANT] +> Crucial information necessary for users to succeed. + +> [!WARNING] +> Critical content demanding immediate user attention due to potential risks. + +> [!CAUTION] +> Negative potential consequences of an action. +``` + +> [!NOTE] +> Highlights information that users should take into account, even when skimming. + +> [!TIP] +> Optional information to help a user be more successful. + +> [!IMPORTANT] +> Crucial information necessary for users to succeed. + +> [!WARNING] +> Critical content demanding immediate user attention due to potential risks. + +> [!CAUTION] +> Negative potential consequences of an action. + ## Syntax Highlighting in Code Blocks VitePress uses [Shikiji](https://github.com/antfu/shikiji) (an improved version of [Shiki](https://shiki.matsu.io/)) to highlight language syntax in Markdown code blocks, using coloured text. Shiki supports a wide variety of programming languages. All you need to do is append a valid language alias to the beginning backticks for the code block: diff --git a/src/client/theme-default/styles/components/custom-block.css b/src/client/theme-default/styles/components/custom-block.css index 7af89807..a960381c 100644 --- a/src/client/theme-default/styles/components/custom-block.css +++ b/src/client/theme-default/styles/components/custom-block.css @@ -27,6 +27,26 @@ background-color: var(--vp-custom-block-info-code-bg); } +.custom-block.note { + border-color: var(--vp-custom-block-note-border); + color: var(--vp-custom-block-note-text); + background-color: var(--vp-custom-block-note-bg); +} + +.custom-block.note a, +.custom-block.note code { + color: var(--vp-c-brand-1); +} + +.custom-block.note a:hover, +.custom-block.note a:hover > code { + color: var(--vp-c-brand-2); +} + +.custom-block.note code { + background-color: var(--vp-custom-block-note-code-bg); +} + .custom-block.tip { border-color: var(--vp-custom-block-tip-border); color: var(--vp-custom-block-tip-text); @@ -47,6 +67,26 @@ background-color: var(--vp-custom-block-tip-code-bg); } +.custom-block.important { + border-color: var(--vp-custom-block-important-border); + color: var(--vp-custom-block-important-text); + background-color: var(--vp-custom-block-important-bg); +} + +.custom-block.important a, +.custom-block.important code { + color: var(--vp-c-important-1); +} + +.custom-block.important a:hover, +.custom-block.important a:hover > code { + color: var(--vp-c-important-2); +} + +.custom-block.important code { + background-color: var(--vp-custom-block-important-code-bg); +} + .custom-block.warning { border-color: var(--vp-custom-block-warning-border); color: var(--vp-custom-block-warning-text); @@ -87,6 +127,26 @@ background-color: var(--vp-custom-block-danger-code-bg); } +.custom-block.caution { + border-color: var(--vp-custom-block-caution-border); + color: var(--vp-custom-block-caution-text); + background-color: var(--vp-custom-block-caution-bg); +} + +.custom-block.caution a, +.custom-block.caution code { + color: var(--vp-c-caution-1); +} + +.custom-block.caution a:hover, +.custom-block.caution a:hover > code { + color: var(--vp-c-caution-2); +} + +.custom-block.caution code { + background-color: var(--vp-custom-block-caution-code-bg); +} + .custom-block.details { border-color: var(--vp-custom-block-details-border); color: var(--vp-custom-block-details-text); diff --git a/src/client/theme-default/styles/vars.css b/src/client/theme-default/styles/vars.css index d85304cd..80525155 100644 --- a/src/client/theme-default/styles/vars.css +++ b/src/client/theme-default/styles/vars.css @@ -54,6 +54,11 @@ --vp-c-indigo-3: #5672cd; --vp-c-indigo-soft: rgba(100, 108, 255, 0.14); + --vp-c-purple-1: #6f42c1; + --vp-c-purple-2: #7e4cc9; + --vp-c-purple-3: #8e5cd9; + --vp-c-purple-soft: rgba(159, 122, 234, 0.14); + --vp-c-green-1: #18794e; --vp-c-green-2: #299764; --vp-c-green-3: #30a46c; @@ -83,6 +88,11 @@ --vp-c-indigo-3: #3e63dd; --vp-c-indigo-soft: rgba(100, 108, 255, 0.16); + --vp-c-purple-1: #c8abfa; + --vp-c-purple-2: #a879e6; + --vp-c-purple-3: #8e5cd9; + --vp-c-purple-soft: rgba(159, 122, 234, 0.16); + --vp-c-green-1: #3dd68c; --vp-c-green-2: #30a46c; --vp-c-green-3: #298459; @@ -215,11 +225,21 @@ --vp-c-tip-3: var(--vp-c-brand-3); --vp-c-tip-soft: var(--vp-c-brand-soft); + --vp-c-note-1: var(--vp-c-brand-1); + --vp-c-note-2: var(--vp-c-brand-2); + --vp-c-note-3: var(--vp-c-brand-3); + --vp-c-note-soft: var(--vp-c-brand-soft); + --vp-c-success-1: var(--vp-c-green-1); --vp-c-success-2: var(--vp-c-green-2); --vp-c-success-3: var(--vp-c-green-3); --vp-c-success-soft: var(--vp-c-green-soft); + --vp-c-important-1: var(--vp-c-purple-1); + --vp-c-important-2: var(--vp-c-purple-2); + --vp-c-important-3: var(--vp-c-purple-3); + --vp-c-important-soft: var(--vp-c-purple-soft); + --vp-c-warning-1: var(--vp-c-yellow-1); --vp-c-warning-2: var(--vp-c-yellow-2); --vp-c-warning-3: var(--vp-c-yellow-3); @@ -229,6 +249,11 @@ --vp-c-danger-2: var(--vp-c-red-2); --vp-c-danger-3: var(--vp-c-red-3); --vp-c-danger-soft: var(--vp-c-red-soft); + + --vp-c-caution-1: var(--vp-c-red-1); + --vp-c-caution-2: var(--vp-c-red-2); + --vp-c-caution-3: var(--vp-c-red-3); + --vp-c-caution-soft: var(--vp-c-red-soft); } /** @@ -394,11 +419,21 @@ --vp-custom-block-info-bg: var(--vp-c-default-soft); --vp-custom-block-info-code-bg: var(--vp-c-default-soft); + --vp-custom-block-note-border: transparent; + --vp-custom-block-note-text: var(--vp-c-text-1); + --vp-custom-block-note-bg: var(--vp-c-default-soft); + --vp-custom-block-note-code-bg: var(--vp-c-default-soft); + --vp-custom-block-tip-border: transparent; --vp-custom-block-tip-text: var(--vp-c-text-1); --vp-custom-block-tip-bg: var(--vp-c-tip-soft); --vp-custom-block-tip-code-bg: var(--vp-c-tip-soft); + --vp-custom-block-important-border: transparent; + --vp-custom-block-important-text: var(--vp-c-text-1); + --vp-custom-block-important-bg: var(--vp-c-important-soft); + --vp-custom-block-important-code-bg: var(--vp-c-important-soft); + --vp-custom-block-warning-border: transparent; --vp-custom-block-warning-text: var(--vp-c-text-1); --vp-custom-block-warning-bg: var(--vp-c-warning-soft); @@ -409,6 +444,11 @@ --vp-custom-block-danger-bg: var(--vp-c-danger-soft); --vp-custom-block-danger-code-bg: var(--vp-c-danger-soft); + --vp-custom-block-caution-border: transparent; + --vp-custom-block-caution-text: var(--vp-c-text-1); + --vp-custom-block-caution-bg: var(--vp-c-caution-soft); + --vp-custom-block-caution-code-bg: var(--vp-c-caution-soft); + --vp-custom-block-details-border: var(--vp-custom-block-info-border); --vp-custom-block-details-text: var(--vp-custom-block-info-text); --vp-custom-block-details-bg: var(--vp-custom-block-info-bg); diff --git a/src/node/markdown/markdown.ts b/src/node/markdown/markdown.ts index 5b6978c5..bf81f38d 100644 --- a/src/node/markdown/markdown.ts +++ b/src/node/markdown/markdown.ts @@ -35,6 +35,7 @@ import { lineNumberPlugin } from './plugins/lineNumbers' import { linkPlugin } from './plugins/link' import { preWrapperPlugin } from './plugins/preWrapper' import { snippetPlugin } from './plugins/snippet' +import { gitHubAlertsPlugin } from './plugins/githubAlerts' export type { Header } from '../shared' @@ -208,6 +209,7 @@ export const createMarkdownRenderer = async ( .use(preWrapperPlugin, { hasSingleTheme }) .use(snippetPlugin, srcDir) .use(containerPlugin, { hasSingleTheme }, options.container) + .use(gitHubAlertsPlugin, options.container) .use(imagePlugin, options.image) .use( linkPlugin, diff --git a/src/node/markdown/plugins/containers.ts b/src/node/markdown/plugins/containers.ts index 2a70e217..5008850b 100644 --- a/src/node/markdown/plugins/containers.ts +++ b/src/node/markdown/plugins/containers.ts @@ -129,8 +129,11 @@ function createCodeGroup(options: Options): ContainerArgs { export interface ContainerOptions { infoLabel?: string + noteLabel?: string tipLabel?: string warningLabel?: string dangerLabel?: string detailsLabel?: string + importantLabel?: string + cautionLabel?: string } diff --git a/src/node/markdown/plugins/githubAlerts.ts b/src/node/markdown/plugins/githubAlerts.ts new file mode 100644 index 00000000..fd084f59 --- /dev/null +++ b/src/node/markdown/plugins/githubAlerts.ts @@ -0,0 +1,62 @@ +import type MarkdownIt from 'markdown-it' +import type { ContainerOptions } from './containers' + +const markerRE = + /^\[\!(TIP|NOTE|INFO|IMPORTANT|WARNING|CAUTION|DANGER)\]([^\n\r]*)/i + +export const gitHubAlertsPlugin = ( + md: MarkdownIt, + options?: ContainerOptions +) => { + const titleMark = { + tip: options?.tipLabel || 'TIP', + note: options?.noteLabel || 'NOTE', + info: options?.infoLabel || 'INFO', + important: options?.importantLabel || 'IMPORTANT', + warning: options?.warningLabel || 'WARNING', + caution: options?.cautionLabel || 'CAUTION', + danger: options?.dangerLabel || 'DANGER' + } as Record + + md.core.ruler.after('block', 'github-alerts', (state) => { + const tokens = state.tokens + for (let i = 0; i < tokens.length; i++) { + if (tokens[i].type === 'blockquote_open') { + const open = tokens[i] + const startIndex = i + while (tokens[i]?.type !== 'blockquote_close' && i <= tokens.length) + i += 1 + const close = tokens[i] + const endIndex = i + const firstContent = tokens + .slice(startIndex, endIndex + 1) + .find((token) => token.type === 'inline') + if (!firstContent) continue + const match = firstContent.content.match(markerRE) + if (!match) continue + const type = match[1].toLowerCase() + const title = match[2].trim() || titleMark[type] || capitalize(type) + firstContent.content = firstContent.content + .slice(match[0].length) + .trimStart() + open.type = 'github_alert_open' + open.tag = 'div' + open.meta = { + title, + type + } + close.type = 'github_alert_close' + close.tag = 'div' + } + } + }) + md.renderer.rules.github_alert_open = function (tokens, idx) { + const { title, type } = tokens[idx].meta + const attrs = '' + return `

${title}

\n` + } +} + +function capitalize(str: string) { + return str.charAt(0).toUpperCase() + str.slice(1) +} From e541a18ec81e1563a188a8ddefd502f57250d75f Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Mon, 22 Jan 2024 12:13:05 +0100 Subject: [PATCH 12/55] chore: upgrade shikiji to v0.10 (#3488) --- package.json | 6 +++--- pnpm-lock.yaml | 28 ++++++++++++++-------------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index 0ca8f6cc..6afc3aa8 100644 --- a/package.json +++ b/package.json @@ -102,9 +102,9 @@ "focus-trap": "^7.5.4", "mark.js": "8.11.1", "minisearch": "^6.3.0", - "shikiji": "^0.9.19", - "shikiji-core": "^0.9.19", - "shikiji-transformers": "^0.9.19", + "shikiji": "^0.10.0", + "shikiji-core": "^0.10.0", + "shikiji-transformers": "^0.10.0", "vite": "^5.0.11", "vue": "^3.4.14" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2d3fbaf4..6ad4f890 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -42,14 +42,14 @@ importers: specifier: ^6.3.0 version: 6.3.0 shikiji: - specifier: ^0.9.19 - version: 0.9.19 + specifier: ^0.10.0 + version: 0.10.0 shikiji-core: - specifier: ^0.9.19 - version: 0.9.19 + specifier: ^0.10.0 + version: 0.10.0 shikiji-transformers: - specifier: ^0.9.19 - version: 0.9.19 + specifier: ^0.10.0 + version: 0.10.0 vite: specifier: ^5.0.11 version: 5.0.12(@types/node@20.11.2) @@ -4160,20 +4160,20 @@ packages: resolution: {integrity: sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==} dev: true - /shikiji-core@0.9.19: - resolution: {integrity: sha512-AFJu/vcNT21t0e6YrfadZ+9q86gvPum6iywRyt1OtIPjPFe25RQnYJyxHQPMLKCCWA992TPxmEmbNcOZCAJclw==} + /shikiji-core@0.10.0: + resolution: {integrity: sha512-imG+bvRkuNlZUi2q9tMVfegRRouTpDxMFejpfF/6J+bFX3NDKtlW9T9iIAkBYnw4pcCtSwirW0AvkwlQR4wyxg==} dev: false - /shikiji-transformers@0.9.19: - resolution: {integrity: sha512-lGLI7Z8frQrIBbhZ74/eiJtxMoCQRbpaHEB+gcfvdIy+ZFaAtXncJGnc52932/UET+Y4GyKtwwC/vjWUCp+c/Q==} + /shikiji-transformers@0.10.0: + resolution: {integrity: sha512-x9oYybeF/XOrIc6Mm8G1gU5ezunMxdgD4WwBTKrZ5tAmFFaNIWCjwZENgRt1uR4iMi0+pGH0g9bmrbraSC41nA==} dependencies: - shikiji: 0.9.19 + shikiji: 0.10.0 dev: false - /shikiji@0.9.19: - resolution: {integrity: sha512-Kw2NHWktdcdypCj1GkKpXH4o6Vxz8B8TykPlPuLHOGSV8VkhoCLcFOH4k19K4LXAQYRQmxg+0X/eM+m2sLhAkg==} + /shikiji@0.10.0: + resolution: {integrity: sha512-1dAzIOWbtM7B4Sem5BvE+CEdsebDsRA34SfCxM4qJ4PLgR73ZD92VEtNfbcoZ3xOLSqvtV0J9i4WpCgVsmQteg==} dependencies: - shikiji-core: 0.9.19 + shikiji-core: 0.10.0 dev: false /side-channel@1.0.4: From bf0700365d9d8da600fd0998685b2db13466ea8b Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Mon, 22 Jan 2024 16:45:27 +0530 Subject: [PATCH 13/55] chore: bump deps --- package.json | 18 +-- pnpm-lock.yaml | 428 ++++++++++++++++++++++++------------------------- 2 files changed, 223 insertions(+), 223 deletions(-) diff --git a/package.json b/package.json index 6afc3aa8..654f9466 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "1.0.0-rc.39", "description": "Vite & Vue powered static site generator", "type": "module", - "packageManager": "pnpm@8.14.1", + "packageManager": "pnpm@8.14.2", "main": "dist/node/index.js", "types": "types/index.d.ts", "exports": { @@ -105,8 +105,8 @@ "shikiji": "^0.10.0", "shikiji-core": "^0.10.0", "shikiji-transformers": "^0.10.0", - "vite": "^5.0.11", - "vue": "^3.4.14" + "vite": "^5.0.12", + "vue": "^3.4.15" }, "peerDependencies": { "markdown-it-mathjax3": "^4.3.2", @@ -146,10 +146,10 @@ "@types/markdown-it-emoji": "^2.0.4", "@types/micromatch": "^4.0.6", "@types/minimist": "^1.2.5", - "@types/node": "^20.11.2", + "@types/node": "^20.11.5", "@types/postcss-prefix-selector": "^1.16.3", "@types/prompts": "^2.4.9", - "@vue/shared": "^3.4.14", + "@vue/shared": "^3.4.15", "chokidar": "^3.5.3", "compression": "^1.7.4", "conventional-changelog-cli": "^4.1.0", @@ -180,14 +180,14 @@ "path-to-regexp": "^6.2.1", "picocolors": "^1.0.0", "pkg-dir": "^8.0.0", - "playwright-chromium": "^1.40.1", + "playwright-chromium": "^1.41.1", "polka": "1.0.0-next.23", "postcss-prefix-selector": "^1.16.0", - "prettier": "^3.2.2", + "prettier": "^3.2.4", "prompts": "^2.4.2", "punycode": "^2.3.1", "rimraf": "^5.0.5", - "rollup": "^4.9.5", + "rollup": "^4.9.6", "rollup-plugin-dts": "^6.1.0", "rollup-plugin-esbuild": "^6.1.0", "semver": "^7.5.4", @@ -196,7 +196,7 @@ "sitemap": "^7.1.1", "supports-color": "^9.4.0", "typescript": "^5.3.3", - "vitest": "^1.2.0", + "vitest": "^1.2.1", "vue-tsc": "^1.8.27", "wait-on": "^7.2.0" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6ad4f890..a7a01be7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -22,16 +22,16 @@ importers: version: 13.0.7 '@vitejs/plugin-vue': specifier: ^5.0.3 - version: 5.0.3(vite@5.0.12)(vue@3.4.14) + version: 5.0.3(vite@5.0.12)(vue@3.4.15) '@vue/devtools-api': specifier: ^6.5.1 version: 6.5.1 '@vueuse/core': specifier: ^10.7.2 - version: 10.7.2(vue@3.4.14) + version: 10.7.2(vue@3.4.15) '@vueuse/integrations': specifier: ^10.7.2 - version: 10.7.2(focus-trap@7.5.4)(vue@3.4.14) + version: 10.7.2(focus-trap@7.5.4)(vue@3.4.15) focus-trap: specifier: ^7.5.4 version: 7.5.4 @@ -51,11 +51,11 @@ importers: specifier: ^0.10.0 version: 0.10.0 vite: - specifier: ^5.0.11 - version: 5.0.12(@types/node@20.11.2) + specifier: ^5.0.12 + version: 5.0.12(@types/node@20.11.5) vue: - specifier: ^3.4.14 - version: 3.4.14(typescript@5.3.3) + specifier: ^3.4.15 + version: 3.4.15(typescript@5.3.3) devDependencies: '@clack/prompts': specifier: ^0.7.0 @@ -83,19 +83,19 @@ importers: version: 2.0.0 '@rollup/plugin-alias': specifier: ^5.1.0 - version: 5.1.0(rollup@4.9.5) + version: 5.1.0(rollup@4.9.6) '@rollup/plugin-commonjs': specifier: ^25.0.7 - version: 25.0.7(rollup@4.9.5) + version: 25.0.7(rollup@4.9.6) '@rollup/plugin-json': specifier: ^6.1.0 - version: 6.1.0(rollup@4.9.5) + version: 6.1.0(rollup@4.9.6) '@rollup/plugin-node-resolve': specifier: ^15.2.3 - version: 15.2.3(rollup@4.9.5) + version: 15.2.3(rollup@4.9.6) '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.9.5) + version: 5.0.5(rollup@4.9.6) '@types/compression': specifier: ^1.7.5 version: 1.7.5 @@ -133,8 +133,8 @@ importers: specifier: ^1.2.5 version: 1.2.5 '@types/node': - specifier: ^20.11.2 - version: 20.11.2 + specifier: ^20.11.5 + version: 20.11.5 '@types/postcss-prefix-selector': specifier: ^1.16.3 version: 1.16.3 @@ -142,8 +142,8 @@ importers: specifier: ^2.4.9 version: 2.4.9 '@vue/shared': - specifier: ^3.4.14 - version: 3.4.14 + specifier: ^3.4.15 + version: 3.4.15 chokidar: specifier: ^3.5.3 version: 3.5.3 @@ -235,8 +235,8 @@ importers: specifier: ^8.0.0 version: 8.0.0 playwright-chromium: - specifier: ^1.40.1 - version: 1.40.1 + specifier: ^1.41.1 + version: 1.41.1 polka: specifier: 1.0.0-next.23 version: 1.0.0-next.23 @@ -244,8 +244,8 @@ importers: specifier: ^1.16.0 version: 1.16.0 prettier: - specifier: ^3.2.2 - version: 3.2.2 + specifier: ^3.2.4 + version: 3.2.4 prompts: specifier: ^2.4.2 version: 2.4.2 @@ -256,14 +256,14 @@ importers: specifier: ^5.0.5 version: 5.0.5 rollup: - specifier: ^4.9.5 - version: 4.9.5 + specifier: ^4.9.6 + version: 4.9.6 rollup-plugin-dts: specifier: ^6.1.0 - version: 6.1.0(rollup@4.9.5)(typescript@5.3.3) + version: 6.1.0(rollup@4.9.6)(typescript@5.3.3) rollup-plugin-esbuild: specifier: ^6.1.0 - version: 6.1.0(esbuild@0.19.11)(rollup@4.9.5)(supports-color@9.4.0) + version: 6.1.0(esbuild@0.19.11)(rollup@4.9.6)(supports-color@9.4.0) semver: specifier: ^7.5.4 version: 7.5.4 @@ -283,8 +283,8 @@ importers: specifier: ^5.3.3 version: 5.3.3 vitest: - specifier: ^1.2.0 - version: 1.2.0(@types/node@20.11.2)(supports-color@9.4.0) + specifier: ^1.2.1 + version: 1.2.1(@types/node@20.11.5)(supports-color@9.4.0) vue-tsc: specifier: ^1.8.27 version: 1.8.27(typescript@5.3.3) @@ -308,7 +308,7 @@ importers: devDependencies: '@lunariajs/core': specifier: npm:@brc-dd/lunaria-core@latest - version: /@brc-dd/lunaria-core@0.0.25-dev.7838358(supports-color@9.4.0) + version: /@brc-dd/lunaria-core@0.0.27-dev.e0b15f4(supports-color@9.4.0) markdown-it-mathjax3: specifier: ^4.3.2 version: 4.3.2 @@ -502,8 +502,8 @@ packages: '@babel/helper-validator-identifier': 7.22.20 to-fast-properties: 2.0.0 - /@brc-dd/lunaria-core@0.0.25-dev.7838358(supports-color@9.4.0): - resolution: {integrity: sha512-hzERgK/7KGMe2Y++j2mn2M+C/LK5Ck7e83LId0vA/2VV6sX+nhQRXOOYWeGXSFvtKchgk3xw7VvX+m8QjKwHWw==} + /@brc-dd/lunaria-core@0.0.27-dev.e0b15f4(supports-color@9.4.0): + resolution: {integrity: sha512-mF67Gh0RFE1Hwi/KkWhgfyxzk/wFpX9FM1aUFkU1m6LkLMeEiIezXdqGjp9Y028H3So2ag48HSc2MzcZjO/o9w==} engines: {node: '>=18.17.0'} hasBin: true dependencies: @@ -909,7 +909,7 @@ packages: resolution: {integrity: sha512-2LuNTFBIO0m7kKIQvvPHN6UE63VjpmL9rnEEaOOaiSPbZK+zUOYIzBAWcED+3XYzhYsd/0mD57VdxAEqqV52CQ==} dev: true - /@rollup/plugin-alias@5.1.0(rollup@4.9.5): + /@rollup/plugin-alias@5.1.0(rollup@4.9.6): resolution: {integrity: sha512-lpA3RZ9PdIG7qqhEfv79tBffNaoDuukFDrmhLqg9ifv99u/ehn+lOg30x2zmhf8AQqQUZaMk/B9fZraQ6/acDQ==} engines: {node: '>=14.0.0'} peerDependencies: @@ -918,11 +918,11 @@ packages: rollup: optional: true dependencies: - rollup: 4.9.5 + rollup: 4.9.6 slash: 4.0.0 dev: true - /@rollup/plugin-commonjs@25.0.7(rollup@4.9.5): + /@rollup/plugin-commonjs@25.0.7(rollup@4.9.6): resolution: {integrity: sha512-nEvcR+LRjEjsaSsc4x3XZfCCvZIaSMenZu/OiwOKGN2UhQpAYI7ru7czFvyWbErlpoGjnSX3D5Ch5FcMA3kRWQ==} engines: {node: '>=14.0.0'} peerDependencies: @@ -931,16 +931,16 @@ packages: rollup: optional: true dependencies: - '@rollup/pluginutils': 5.1.0(rollup@4.9.5) + '@rollup/pluginutils': 5.1.0(rollup@4.9.6) commondir: 1.0.1 estree-walker: 2.0.2 glob: 8.1.0 is-reference: 1.2.1 magic-string: 0.30.5 - rollup: 4.9.5 + rollup: 4.9.6 dev: true - /@rollup/plugin-json@6.1.0(rollup@4.9.5): + /@rollup/plugin-json@6.1.0(rollup@4.9.6): resolution: {integrity: sha512-EGI2te5ENk1coGeADSIwZ7G2Q8CJS2sF120T7jLw4xFw9n7wIOXHo+kIYRAoVpJAN+kmqZSoO3Fp4JtoNF4ReA==} engines: {node: '>=14.0.0'} peerDependencies: @@ -949,11 +949,11 @@ packages: rollup: optional: true dependencies: - '@rollup/pluginutils': 5.1.0(rollup@4.9.5) - rollup: 4.9.5 + '@rollup/pluginutils': 5.1.0(rollup@4.9.6) + rollup: 4.9.6 dev: true - /@rollup/plugin-node-resolve@15.2.3(rollup@4.9.5): + /@rollup/plugin-node-resolve@15.2.3(rollup@4.9.6): resolution: {integrity: sha512-j/lym8nf5E21LwBT4Df1VD6hRO2L2iwUeUmP7litikRsVp1H6NWx20NEp0Y7su+7XGc476GnXXc4kFeZNGmaSQ==} engines: {node: '>=14.0.0'} peerDependencies: @@ -962,16 +962,16 @@ packages: rollup: optional: true dependencies: - '@rollup/pluginutils': 5.1.0(rollup@4.9.5) + '@rollup/pluginutils': 5.1.0(rollup@4.9.6) '@types/resolve': 1.20.2 deepmerge: 4.3.1 is-builtin-module: 3.2.1 is-module: 1.0.0 resolve: 1.22.8 - rollup: 4.9.5 + rollup: 4.9.6 dev: true - /@rollup/plugin-replace@5.0.5(rollup@4.9.5): + /@rollup/plugin-replace@5.0.5(rollup@4.9.6): resolution: {integrity: sha512-rYO4fOi8lMaTg/z5Jb+hKnrHHVn8j2lwkqwyS4kTRhKyWOLf2wST2sWXr4WzWiTcoHTp2sTjqUbqIj2E39slKQ==} engines: {node: '>=14.0.0'} peerDependencies: @@ -980,12 +980,12 @@ packages: rollup: optional: true dependencies: - '@rollup/pluginutils': 5.1.0(rollup@4.9.5) + '@rollup/pluginutils': 5.1.0(rollup@4.9.6) magic-string: 0.30.5 - rollup: 4.9.5 + rollup: 4.9.6 dev: true - /@rollup/pluginutils@5.1.0(rollup@4.9.5): + /@rollup/pluginutils@5.1.0(rollup@4.9.6): resolution: {integrity: sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==} engines: {node: '>=14.0.0'} peerDependencies: @@ -997,95 +997,95 @@ packages: '@types/estree': 1.0.5 estree-walker: 2.0.2 picomatch: 2.3.1 - rollup: 4.9.5 + rollup: 4.9.6 dev: true - /@rollup/rollup-android-arm-eabi@4.9.5: - resolution: {integrity: sha512-idWaG8xeSRCfRq9KpRysDHJ/rEHBEXcHuJ82XY0yYFIWnLMjZv9vF/7DOq8djQ2n3Lk6+3qfSH8AqlmHlmi1MA==} + /@rollup/rollup-android-arm-eabi@4.9.6: + resolution: {integrity: sha512-MVNXSSYN6QXOulbHpLMKYi60ppyO13W9my1qogeiAqtjb2yR4LSmfU2+POvDkLzhjYLXz9Rf9+9a3zFHW1Lecg==} cpu: [arm] os: [android] requiresBuild: true optional: true - /@rollup/rollup-android-arm64@4.9.5: - resolution: {integrity: sha512-f14d7uhAMtsCGjAYwZGv6TwuS3IFaM4ZnGMUn3aCBgkcHAYErhV1Ad97WzBvS2o0aaDv4mVz+syiN0ElMyfBPg==} + /@rollup/rollup-android-arm64@4.9.6: + resolution: {integrity: sha512-T14aNLpqJ5wzKNf5jEDpv5zgyIqcpn1MlwCrUXLrwoADr2RkWA0vOWP4XxbO9aiO3dvMCQICZdKeDrFl7UMClw==} cpu: [arm64] os: [android] requiresBuild: true optional: true - /@rollup/rollup-darwin-arm64@4.9.5: - resolution: {integrity: sha512-ndoXeLx455FffL68OIUrVr89Xu1WLzAG4n65R8roDlCoYiQcGGg6MALvs2Ap9zs7AHg8mpHtMpwC8jBBjZrT/w==} + /@rollup/rollup-darwin-arm64@4.9.6: + resolution: {integrity: sha512-CqNNAyhRkTbo8VVZ5R85X73H3R5NX9ONnKbXuHisGWC0qRbTTxnF1U4V9NafzJbgGM0sHZpdO83pLPzq8uOZFw==} cpu: [arm64] os: [darwin] requiresBuild: true optional: true - /@rollup/rollup-darwin-x64@4.9.5: - resolution: {integrity: sha512-UmElV1OY2m/1KEEqTlIjieKfVwRg0Zwg4PLgNf0s3glAHXBN99KLpw5A5lrSYCa1Kp63czTpVll2MAqbZYIHoA==} + /@rollup/rollup-darwin-x64@4.9.6: + resolution: {integrity: sha512-zRDtdJuRvA1dc9Mp6BWYqAsU5oeLixdfUvkTHuiYOHwqYuQ4YgSmi6+/lPvSsqc/I0Omw3DdICx4Tfacdzmhog==} cpu: [x64] os: [darwin] requiresBuild: true optional: true - /@rollup/rollup-linux-arm-gnueabihf@4.9.5: - resolution: {integrity: sha512-Q0LcU61v92tQB6ae+udZvOyZ0wfpGojtAKrrpAaIqmJ7+psq4cMIhT/9lfV6UQIpeItnq/2QDROhNLo00lOD1g==} + /@rollup/rollup-linux-arm-gnueabihf@4.9.6: + resolution: {integrity: sha512-oNk8YXDDnNyG4qlNb6is1ojTOGL/tRhbbKeE/YuccItzerEZT68Z9gHrY3ROh7axDc974+zYAPxK5SH0j/G+QQ==} cpu: [arm] os: [linux] requiresBuild: true optional: true - /@rollup/rollup-linux-arm64-gnu@4.9.5: - resolution: {integrity: sha512-dkRscpM+RrR2Ee3eOQmRWFjmV/payHEOrjyq1VZegRUa5OrZJ2MAxBNs05bZuY0YCtpqETDy1Ix4i/hRqX98cA==} + /@rollup/rollup-linux-arm64-gnu@4.9.6: + resolution: {integrity: sha512-Z3O60yxPtuCYobrtzjo0wlmvDdx2qZfeAWTyfOjEDqd08kthDKexLpV97KfAeUXPosENKd8uyJMRDfFMxcYkDQ==} cpu: [arm64] os: [linux] requiresBuild: true optional: true - /@rollup/rollup-linux-arm64-musl@4.9.5: - resolution: {integrity: sha512-QaKFVOzzST2xzY4MAmiDmURagWLFh+zZtttuEnuNn19AiZ0T3fhPyjPPGwLNdiDT82ZE91hnfJsUiDwF9DClIQ==} + /@rollup/rollup-linux-arm64-musl@4.9.6: + resolution: {integrity: sha512-gpiG0qQJNdYEVad+1iAsGAbgAnZ8j07FapmnIAQgODKcOTjLEWM9sRb+MbQyVsYCnA0Im6M6QIq6ax7liws6eQ==} cpu: [arm64] os: [linux] requiresBuild: true optional: true - /@rollup/rollup-linux-riscv64-gnu@4.9.5: - resolution: {integrity: sha512-HeGqmRJuyVg6/X6MpE2ur7GbymBPS8Np0S/vQFHDmocfORT+Zt76qu+69NUoxXzGqVP1pzaY6QIi0FJWLC3OPA==} + /@rollup/rollup-linux-riscv64-gnu@4.9.6: + resolution: {integrity: sha512-+uCOcvVmFUYvVDr27aiyun9WgZk0tXe7ThuzoUTAukZJOwS5MrGbmSlNOhx1j80GdpqbOty05XqSl5w4dQvcOA==} cpu: [riscv64] os: [linux] requiresBuild: true optional: true - /@rollup/rollup-linux-x64-gnu@4.9.5: - resolution: {integrity: sha512-Dq1bqBdLaZ1Gb/l2e5/+o3B18+8TI9ANlA1SkejZqDgdU/jK/ThYaMPMJpVMMXy2uRHvGKbkz9vheVGdq3cJfA==} + /@rollup/rollup-linux-x64-gnu@4.9.6: + resolution: {integrity: sha512-HUNqM32dGzfBKuaDUBqFB7tP6VMN74eLZ33Q9Y1TBqRDn+qDonkAUyKWwF9BR9unV7QUzffLnz9GrnKvMqC/fw==} cpu: [x64] os: [linux] requiresBuild: true optional: true - /@rollup/rollup-linux-x64-musl@4.9.5: - resolution: {integrity: sha512-ezyFUOwldYpj7AbkwyW9AJ203peub81CaAIVvckdkyH8EvhEIoKzaMFJj0G4qYJ5sw3BpqhFrsCc30t54HV8vg==} + /@rollup/rollup-linux-x64-musl@4.9.6: + resolution: {integrity: sha512-ch7M+9Tr5R4FK40FHQk8VnML0Szi2KRujUgHXd/HjuH9ifH72GUmw6lStZBo3c3GB82vHa0ZoUfjfcM7JiiMrQ==} cpu: [x64] os: [linux] requiresBuild: true optional: true - /@rollup/rollup-win32-arm64-msvc@4.9.5: - resolution: {integrity: sha512-aHSsMnUw+0UETB0Hlv7B/ZHOGY5bQdwMKJSzGfDfvyhnpmVxLMGnQPGNE9wgqkLUs3+gbG1Qx02S2LLfJ5GaRQ==} + /@rollup/rollup-win32-arm64-msvc@4.9.6: + resolution: {integrity: sha512-VD6qnR99dhmTQ1mJhIzXsRcTBvTjbfbGGwKAHcu+52cVl15AC/kplkhxzW/uT0Xl62Y/meBKDZvoJSJN+vTeGA==} cpu: [arm64] os: [win32] requiresBuild: true optional: true - /@rollup/rollup-win32-ia32-msvc@4.9.5: - resolution: {integrity: sha512-AiqiLkb9KSf7Lj/o1U3SEP9Zn+5NuVKgFdRIZkvd4N0+bYrTOovVd0+LmYCPQGbocT4kvFyK+LXCDiXPBF3fyA==} + /@rollup/rollup-win32-ia32-msvc@4.9.6: + resolution: {integrity: sha512-J9AFDq/xiRI58eR2NIDfyVmTYGyIZmRcvcAoJ48oDld/NTR8wyiPUu2X/v1navJ+N/FGg68LEbX3Ejd6l8B7MQ==} cpu: [ia32] os: [win32] requiresBuild: true optional: true - /@rollup/rollup-win32-x64-msvc@4.9.5: - resolution: {integrity: sha512-1q+mykKE3Vot1kaFJIDoUFv5TuW+QQVaf2FmTT9krg86pQrGStOSJJ0Zil7CFagyxDuouTepzt5Y5TVzyajOdQ==} + /@rollup/rollup-win32-x64-msvc@4.9.6: + resolution: {integrity: sha512-jqzNLhNDvIZOrt69Ce4UjGRpXJBzhUBzawMwnaDAwyHriki3XollsewxWzOzz+4yOFDkuJHtTsZFwMxhYJWmLQ==} cpu: [x64] os: [win32] requiresBuild: true @@ -1117,7 +1117,7 @@ packages: resolution: {integrity: sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==} dependencies: '@types/connect': 3.4.38 - '@types/node': 20.11.2 + '@types/node': 20.11.5 dev: true /@types/braces@3.0.4: @@ -1133,13 +1133,13 @@ packages: /@types/connect@3.4.38: resolution: {integrity: sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==} dependencies: - '@types/node': 20.11.2 + '@types/node': 20.11.5 dev: true /@types/cross-spawn@6.0.6: resolution: {integrity: sha512-fXRhhUkG4H3TQk5dBhQ7m/JDdSNHKwR2BBia62lhwEIq9xGiQKLxd6LymNhn47SjXhsUEPmxi+PKw2OkW4LLjA==} dependencies: - '@types/node': 20.11.2 + '@types/node': 20.11.5 dev: true /@types/debug@4.1.12: @@ -1158,7 +1158,7 @@ packages: /@types/express-serve-static-core@4.17.41: resolution: {integrity: sha512-OaJ7XLaelTgrvlZD8/aa0vvvxZdUmlCn6MtWeB7TkiKW70BQLc9XEPpDLPdbo52ZhXUCrznlWdCHWxJWtdyajA==} dependencies: - '@types/node': 20.11.2 + '@types/node': 20.11.5 '@types/qs': 6.9.11 '@types/range-parser': 1.2.7 '@types/send': 0.17.4 @@ -1177,7 +1177,7 @@ packages: resolution: {integrity: sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ==} dependencies: '@types/jsonfile': 6.1.4 - '@types/node': 20.11.2 + '@types/node': 20.11.5 dev: true /@types/http-errors@2.0.4: @@ -1193,7 +1193,7 @@ packages: /@types/jsonfile@6.1.4: resolution: {integrity: sha512-D5qGUYwjvnNNextdU59/+fI+spnwtTFmyQP0h+PfIOSkNfpU6AOICUOkm4i0OnSk+NyjdPJrxCDro0sJsWlRpQ==} dependencies: - '@types/node': 20.11.2 + '@types/node': 20.11.5 dev: true /@types/linkify-it@3.0.5: @@ -1268,8 +1268,8 @@ packages: resolution: {integrity: sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==} dev: true - /@types/node@20.11.2: - resolution: {integrity: sha512-cZShBaVa+UO1LjWWBPmWRR4+/eY/JR/UIEcDlVsw3okjWEu+rB7/mH6X3B/L+qJVHDLjk9QW/y2upp9wp1yDXA==} + /@types/node@20.11.5: + resolution: {integrity: sha512-g557vgQjUUfN76MZAN/dt1z3dzcUsimuysco0KeluHgrPdJXkP/XdAURgyO2W9fZWHRtRBiVKzKn8vyOAwlG+w==} dependencies: undici-types: 5.26.5 @@ -1286,7 +1286,7 @@ packages: /@types/prompts@2.4.9: resolution: {integrity: sha512-qTxFi6Buiu8+50/+3DGIWLHM6QuWsEKugJnnP6iv2Mc4ncxE4A/OJkjuVOA+5X0X1S/nq5VJRa8Lu+nwcvbrKA==} dependencies: - '@types/node': 20.11.2 + '@types/node': 20.11.5 kleur: 3.0.3 dev: true @@ -1305,14 +1305,14 @@ packages: /@types/sax@1.2.7: resolution: {integrity: sha512-rO73L89PJxeYM3s3pPPjiPgVVcymqU490g0YO5n5By0k2Erzj6tay/4lr1CHAAU4JyOWd1rpQ8bCf6cZfHU96A==} dependencies: - '@types/node': 20.11.2 + '@types/node': 20.11.5 dev: true /@types/send@0.17.4: resolution: {integrity: sha512-x2EM6TJOybec7c52BX0ZspPodMsQUd5L6PRwOunVyVUhXiBSKf3AezDL8Dgvgt5o0UfKNfuA0eMLr2wLT4AiBA==} dependencies: '@types/mime': 1.3.5 - '@types/node': 20.11.2 + '@types/node': 20.11.5 dev: true /@types/serve-static@1.15.5: @@ -1320,7 +1320,7 @@ packages: dependencies: '@types/http-errors': 2.0.4 '@types/mime': 3.0.4 - '@types/node': 20.11.2 + '@types/node': 20.11.5 dev: true /@types/sizzle@2.3.8: @@ -1331,49 +1331,49 @@ packages: resolution: {integrity: sha512-g9gZnnXVq7gM7v3tJCWV/qw7w+KeOlSHAhgF9RytFyifW6AF61hdT2ucrYhPq9hLs5JIryeupHV3qGk95dH9ow==} dev: false - /@vitejs/plugin-vue@5.0.3(vite@5.0.12)(vue@3.4.14): + /@vitejs/plugin-vue@5.0.3(vite@5.0.12)(vue@3.4.15): resolution: {integrity: sha512-b8S5dVS40rgHdDrw+DQi/xOM9ed+kSRZzfm1T74bMmBDCd8XO87NKlFYInzCtwvtWwXZvo1QxE2OSspTATWrbA==} engines: {node: ^18.0.0 || >=20.0.0} peerDependencies: vite: ^5.0.0 vue: ^3.2.25 dependencies: - vite: 5.0.12(@types/node@20.11.2) - vue: 3.4.14(typescript@5.3.3) + vite: 5.0.12(@types/node@20.11.5) + vue: 3.4.15(typescript@5.3.3) dev: false - /@vitest/expect@1.2.0: - resolution: {integrity: sha512-H+2bHzhyvgp32o7Pgj2h9RTHN0pgYaoi26Oo3mE+dCi1PAqV31kIIVfTbqMO3Bvshd5mIrJLc73EwSRrbol9Lw==} + /@vitest/expect@1.2.1: + resolution: {integrity: sha512-/bqGXcHfyKgFWYwIgFr1QYDaR9e64pRKxgBNWNXPefPFRhgm+K3+a/dS0cUGEreWngets3dlr8w8SBRw2fCfFQ==} dependencies: - '@vitest/spy': 1.2.0 - '@vitest/utils': 1.2.0 + '@vitest/spy': 1.2.1 + '@vitest/utils': 1.2.1 chai: 4.4.1 dev: true - /@vitest/runner@1.2.0: - resolution: {integrity: sha512-vaJkDoQaNUTroT70OhM0NPznP7H3WyRwt4LvGwCVYs/llLaqhoSLnlIhUClZpbF5RgAee29KRcNz0FEhYcgxqA==} + /@vitest/runner@1.2.1: + resolution: {integrity: sha512-zc2dP5LQpzNzbpaBt7OeYAvmIsRS1KpZQw4G3WM/yqSV1cQKNKwLGmnm79GyZZjMhQGlRcSFMImLjZaUQvNVZQ==} dependencies: - '@vitest/utils': 1.2.0 + '@vitest/utils': 1.2.1 p-limit: 5.0.0 pathe: 1.1.2 dev: true - /@vitest/snapshot@1.2.0: - resolution: {integrity: sha512-P33EE7TrVgB3HDLllrjK/GG6WSnmUtWohbwcQqmm7TAk9AVHpdgf7M3F3qRHKm6vhr7x3eGIln7VH052Smo6Kw==} + /@vitest/snapshot@1.2.1: + resolution: {integrity: sha512-Tmp/IcYEemKaqAYCS08sh0vORLJkMr0NRV76Gl8sHGxXT5151cITJCET20063wk0Yr/1koQ6dnmP6eEqezmd/Q==} dependencies: magic-string: 0.30.5 pathe: 1.1.2 pretty-format: 29.7.0 dev: true - /@vitest/spy@1.2.0: - resolution: {integrity: sha512-MNxSAfxUaCeowqyyGwC293yZgk7cECZU9wGb8N1pYQ0yOn/SIr8t0l9XnGRdQZvNV/ZHBYu6GO/W3tj5K3VN1Q==} + /@vitest/spy@1.2.1: + resolution: {integrity: sha512-vG3a/b7INKH7L49Lbp0IWrG6sw9j4waWAucwnksPB1r1FTJgV7nkBByd9ufzu6VWya/QTvQW4V9FShZbZIB2UQ==} dependencies: tinyspy: 2.2.0 dev: true - /@vitest/utils@1.2.0: - resolution: {integrity: sha512-FyD5bpugsXlwVpTcGLDf3wSPYy8g541fQt14qtzo8mJ4LdEpDKZ9mQy2+qdJm2TZRpjY5JLXihXCgIxiRJgi5g==} + /@vitest/utils@1.2.1: + resolution: {integrity: sha512-bsH6WVZYe/J2v3+81M5LDU8kW76xWObKIURpPrOXm2pjBniBu2MERI/XP60GpS4PHU3jyK50LUutOwrx4CyHUg==} dependencies: diff-sequences: 29.6.3 estree-walker: 3.0.3 @@ -1400,40 +1400,40 @@ packages: path-browserify: 1.0.1 dev: true - /@vue/compiler-core@3.4.14: - resolution: {integrity: sha512-ro4Zzl/MPdWs7XwxT7omHRxAjMbDFRZEEjD+2m3NBf8YzAe3HuoSEZosXQo+m1GQ1G3LQ1LdmNh1RKTYe+ssEg==} + /@vue/compiler-core@3.4.15: + resolution: {integrity: sha512-XcJQVOaxTKCnth1vCxEChteGuwG6wqnUHxAm1DO3gCz0+uXKaJNx8/digSz4dLALCy8n2lKq24jSUs8segoqIw==} dependencies: '@babel/parser': 7.23.6 - '@vue/shared': 3.4.14 + '@vue/shared': 3.4.15 entities: 4.5.0 estree-walker: 2.0.2 source-map-js: 1.0.2 - /@vue/compiler-dom@3.4.14: - resolution: {integrity: sha512-nOZTY+veWNa0DKAceNWxorAbWm0INHdQq7cejFaWM1WYnoNSJbSEKYtE7Ir6lR/+mo9fttZpPVI9ZFGJ1juUEQ==} + /@vue/compiler-dom@3.4.15: + resolution: {integrity: sha512-wox0aasVV74zoXyblarOM3AZQz/Z+OunYcIHe1OsGclCHt8RsRm04DObjefaI82u6XDzv+qGWZ24tIsRAIi5MQ==} dependencies: - '@vue/compiler-core': 3.4.14 - '@vue/shared': 3.4.14 + '@vue/compiler-core': 3.4.15 + '@vue/shared': 3.4.15 - /@vue/compiler-sfc@3.4.14: - resolution: {integrity: sha512-1vHc9Kv1jV+YBZC/RJxQJ9JCxildTI+qrhtDh6tPkR1O8S+olBUekimY0km0ZNn8nG1wjtFAe9XHij+YLR8cRQ==} + /@vue/compiler-sfc@3.4.15: + resolution: {integrity: sha512-LCn5M6QpkpFsh3GQvs2mJUOAlBQcCco8D60Bcqmf3O3w5a+KWS5GvYbrrJBkgvL1BDnTp+e8q0lXCLgHhKguBA==} dependencies: '@babel/parser': 7.23.6 - '@vue/compiler-core': 3.4.14 - '@vue/compiler-dom': 3.4.14 - '@vue/compiler-ssr': 3.4.14 - '@vue/shared': 3.4.14 + '@vue/compiler-core': 3.4.15 + '@vue/compiler-dom': 3.4.15 + '@vue/compiler-ssr': 3.4.15 + '@vue/shared': 3.4.15 estree-walker: 2.0.2 magic-string: 0.30.5 postcss: 8.4.33 source-map-js: 1.0.2 dev: false - /@vue/compiler-ssr@3.4.14: - resolution: {integrity: sha512-bXT6+oAGlFjTYVOTtFJ4l4Jab1wjsC0cfSfOe2B4Z0N2vD2zOBSQ9w694RsCfhjk+bC2DY5Gubb1rHZVii107Q==} + /@vue/compiler-ssr@3.4.15: + resolution: {integrity: sha512-1jdeQyiGznr8gjFDadVmOJqZiLNSsMa5ZgqavkPZ8O2wjHv0tVuAEsw5hTdUoUW4232vpBbL/wJhzVW/JwY1Uw==} dependencies: - '@vue/compiler-dom': 3.4.14 - '@vue/shared': 3.4.14 + '@vue/compiler-dom': 3.4.15 + '@vue/shared': 3.4.15 dev: false /@vue/devtools-api@6.5.1: @@ -1450,8 +1450,8 @@ packages: dependencies: '@volar/language-core': 1.11.1 '@volar/source-map': 1.11.1 - '@vue/compiler-dom': 3.4.14 - '@vue/shared': 3.4.14 + '@vue/compiler-dom': 3.4.15 + '@vue/shared': 3.4.15 computeds: 0.0.1 minimatch: 9.0.3 muggle-string: 0.3.1 @@ -1460,53 +1460,53 @@ packages: vue-template-compiler: 2.7.16 dev: true - /@vue/reactivity@3.4.14: - resolution: {integrity: sha512-xRYwze5Q4tK7tT2J4uy4XLhK/AIXdU5EBUu9PLnIHcOKXO0uyXpNNMzlQKuq7B+zwtq6K2wuUL39pHA6ZQzObw==} + /@vue/reactivity@3.4.15: + resolution: {integrity: sha512-55yJh2bsff20K5O84MxSvXKPHHt17I2EomHznvFiJCAZpJTNW8IuLj1xZWMLELRhBK3kkFV/1ErZGHJfah7i7w==} dependencies: - '@vue/shared': 3.4.14 + '@vue/shared': 3.4.15 dev: false - /@vue/runtime-core@3.4.14: - resolution: {integrity: sha512-qu+NMkfujCoZL6cfqK5NOfxgXJROSlP2ZPs4CTcVR+mLrwl4TtycF5Tgo0QupkdBL+2kigc6EsJlTcuuZC1NaQ==} + /@vue/runtime-core@3.4.15: + resolution: {integrity: sha512-6E3by5m6v1AkW0McCeAyhHTw+3y17YCOKG0U0HDKDscV4Hs0kgNT5G+GCHak16jKgcCDHpI9xe5NKb8sdLCLdw==} dependencies: - '@vue/reactivity': 3.4.14 - '@vue/shared': 3.4.14 + '@vue/reactivity': 3.4.15 + '@vue/shared': 3.4.15 dev: false - /@vue/runtime-dom@3.4.14: - resolution: {integrity: sha512-B85XmcR4E7XsirEHVqhmy4HPbRT9WLFWV9Uhie3OapV9m1MEN9+Er6hmUIE6d8/l2sUygpK9RstFM2bmHEUigA==} + /@vue/runtime-dom@3.4.15: + resolution: {integrity: sha512-EVW8D6vfFVq3V/yDKNPBFkZKGMFSvZrUQmx196o/v2tHKdwWdiZjYUBS+0Ez3+ohRyF8Njwy/6FH5gYJ75liUw==} dependencies: - '@vue/runtime-core': 3.4.14 - '@vue/shared': 3.4.14 + '@vue/runtime-core': 3.4.15 + '@vue/shared': 3.4.15 csstype: 3.1.3 dev: false - /@vue/server-renderer@3.4.14(vue@3.4.14): - resolution: {integrity: sha512-pwSKXQfYdJBTpvWHGEYI+akDE18TXAiLcGn+Q/2Fj8wQSHWztoo7PSvfMNqu6NDhp309QXXbPFEGCU5p85HqkA==} + /@vue/server-renderer@3.4.15(vue@3.4.15): + resolution: {integrity: sha512-3HYzaidu9cHjrT+qGUuDhFYvF/j643bHC6uUN9BgM11DVy+pM6ATsG6uPBLnkwOgs7BpJABReLmpL3ZPAsUaqw==} peerDependencies: - vue: 3.4.14 + vue: 3.4.15 dependencies: - '@vue/compiler-ssr': 3.4.14 - '@vue/shared': 3.4.14 - vue: 3.4.14(typescript@5.3.3) + '@vue/compiler-ssr': 3.4.15 + '@vue/shared': 3.4.15 + vue: 3.4.15(typescript@5.3.3) dev: false - /@vue/shared@3.4.14: - resolution: {integrity: sha512-nmi3BtLpvqXAWoRZ6HQ+pFJOHBU4UnH3vD3opgmwXac7vhaHKA9nj1VeGjMggdB9eLtW83eHyPCmOU1qzdsC7Q==} + /@vue/shared@3.4.15: + resolution: {integrity: sha512-KzfPTxVaWfB+eGcGdbSf4CWdaXcGDqckoeXUh7SB3fZdEtzPCK2Vq9B/lRRL3yutax/LWITz+SwvgyOxz5V75g==} - /@vueuse/core@10.7.2(vue@3.4.14): + /@vueuse/core@10.7.2(vue@3.4.15): resolution: {integrity: sha512-AOyAL2rK0By62Hm+iqQn6Rbu8bfmbgaIMXcE3TSr7BdQ42wnSFlwIdPjInO62onYsEMK/yDMU8C6oGfDAtZ2qQ==} dependencies: '@types/web-bluetooth': 0.0.20 '@vueuse/metadata': 10.7.2 - '@vueuse/shared': 10.7.2(vue@3.4.14) - vue-demi: 0.14.6(vue@3.4.14) + '@vueuse/shared': 10.7.2(vue@3.4.15) + vue-demi: 0.14.6(vue@3.4.15) transitivePeerDependencies: - '@vue/composition-api' - vue dev: false - /@vueuse/integrations@10.7.2(focus-trap@7.5.4)(vue@3.4.14): + /@vueuse/integrations@10.7.2(focus-trap@7.5.4)(vue@3.4.15): resolution: {integrity: sha512-+u3RLPFedjASs5EKPc69Ge49WNgqeMfSxFn+qrQTzblPXZg6+EFzhjarS5edj2qAf6xQ93f95TUxRwKStXj/sQ==} peerDependencies: async-validator: '*' @@ -1547,10 +1547,10 @@ packages: universal-cookie: optional: true dependencies: - '@vueuse/core': 10.7.2(vue@3.4.14) - '@vueuse/shared': 10.7.2(vue@3.4.14) + '@vueuse/core': 10.7.2(vue@3.4.15) + '@vueuse/shared': 10.7.2(vue@3.4.15) focus-trap: 7.5.4 - vue-demi: 0.14.6(vue@3.4.14) + vue-demi: 0.14.6(vue@3.4.15) transitivePeerDependencies: - '@vue/composition-api' - vue @@ -1560,10 +1560,10 @@ packages: resolution: {integrity: sha512-kCWPb4J2KGrwLtn1eJwaJD742u1k5h6v/St5wFe8Quih90+k2a0JP8BS4Zp34XUuJqS2AxFYMb1wjUL8HfhWsQ==} dev: false - /@vueuse/shared@10.7.2(vue@3.4.14): + /@vueuse/shared@10.7.2(vue@3.4.15): resolution: {integrity: sha512-qFbXoxS44pi2FkgFjPvF4h7c9oMDutpyBdcJdMYIMg9XyXli2meFMuaKn+UMgsClo//Th6+beeCgqweT/79BVA==} dependencies: - vue-demi: 0.14.6(vue@3.4.14) + vue-demi: 0.14.6(vue@3.4.15) transitivePeerDependencies: - '@vue/composition-api' - vue @@ -1885,7 +1885,7 @@ packages: engines: {node: '>=18'} dependencies: slice-ansi: 5.0.0 - string-width: 7.0.0 + string-width: 7.1.0 dev: true /color-convert@1.9.3: @@ -3069,8 +3069,8 @@ packages: hasBin: true dev: true - /joi@17.11.1: - resolution: {integrity: sha512-671acnrx+w96PCcQOzvm0VYQVwNL2PVgZmDRaFuSsx8sIUmGzYElPw5lU8F3Cr0jOuPs1oM56p7W2a1cdDOwcw==} + /joi@17.12.0: + resolution: {integrity: sha512-HSLsmSmXz+PV9PYoi3p7cgIbj06WnEBNT28n+bbBNcPZXZFqCzzvGqpTBPujx/Z0nh1+KNQPDrNgdmQ8dq0qYw==} dependencies: '@hapi/hoek': 9.3.0 '@hapi/topo': 5.1.0 @@ -3189,7 +3189,7 @@ packages: colorette: 2.0.20 eventemitter3: 5.0.1 log-update: 6.0.0 - rfdc: 1.3.0 + rfdc: 1.3.1 wrap-ansi: 9.0.0 dev: true @@ -3798,17 +3798,17 @@ packages: pathe: 1.1.2 dev: true - /playwright-chromium@1.40.1: - resolution: {integrity: sha512-3atylP47OCTBW0siGI7LOEG/XKL/vnrFH8xdr4uaTnqMsc0Xq4gOLk2gGwniPJ76LSc++9ASc0w/nfqtLAmm3A==} + /playwright-chromium@1.41.1: + resolution: {integrity: sha512-Nr1/rnmRB4QzoAQwCors1Qsa9PLSdipsKiI4FZCQjSDzoBVBzoQqfXGtcIEnoAXEEEpzxuCPqjJNQwCVA66tCw==} engines: {node: '>=16'} hasBin: true requiresBuild: true dependencies: - playwright-core: 1.40.1 + playwright-core: 1.41.1 dev: true - /playwright-core@1.40.1: - resolution: {integrity: sha512-+hkOycxPiV534c4HhpfX6yrlawqVUzITRKwHAmYfmsVreltEl6fAZJ3DPfLMOODw0H3s1Itd6MDCWmP1fl/QvQ==} + /playwright-core@1.41.1: + resolution: {integrity: sha512-/KPO5DzXSMlxSX77wy+HihKGOunh3hqndhqeo/nMxfigiKzogn8kfL0ZBDu0L1RKgan5XHCPmn6zXd2NUJgjhg==} engines: {node: '>=16'} hasBin: true dev: true @@ -3842,8 +3842,8 @@ packages: resolution: {integrity: sha512-nHHTeFVBTHRGxJXKkKu5hT8C/YWBkPso4/Gad6xuj5dbptt9iF9NZr9pHbPhBrnT2klheu7mHTxTZ/LjwJiEiQ==} dev: false - /prettier@3.2.2: - resolution: {integrity: sha512-HTByuKZzw7utPiDO523Tt2pLtEyK7OibUD9suEJQrPUCYQqrHr74GGX6VidMrovbf/I50mPqr8j/II6oBAuc5A==} + /prettier@3.2.4: + resolution: {integrity: sha512-FWu1oLHKCrtpO1ypU6J0SbK2d9Ckwysq6bHj/uaCP26DxrPpppCLQRGVuqAxSTvhF00AcvDRyYrLNW7ocBhFFQ==} engines: {node: '>=14'} hasBin: true dev: true @@ -3978,8 +3978,8 @@ packages: engines: {iojs: '>=1.0.0', node: '>=0.10.0'} dev: true - /rfdc@1.3.0: - resolution: {integrity: sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA==} + /rfdc@1.3.1: + resolution: {integrity: sha512-r5a3l5HzYlIC68TpmYKlxWjmOP6wiPJ1vWv2HeLhNsRZMrCkxeqxiHlQ21oXmQ4F3SiryXBHhAD7JZqvOJjFmg==} dev: true /rimraf@5.0.5: @@ -3990,7 +3990,7 @@ packages: glob: 10.3.10 dev: true - /rollup-plugin-dts@6.1.0(rollup@4.9.5)(typescript@5.3.3): + /rollup-plugin-dts@6.1.0(rollup@4.9.6)(typescript@5.3.3): resolution: {integrity: sha512-ijSCPICkRMDKDLBK9torss07+8dl9UpY9z1N/zTeA1cIqdzMlpkV3MOOC7zukyvQfDyxa1s3Dl2+DeiP/G6DOw==} engines: {node: '>=16'} peerDependencies: @@ -3998,49 +3998,49 @@ packages: typescript: ^4.5 || ^5.0 dependencies: magic-string: 0.30.5 - rollup: 4.9.5 + rollup: 4.9.6 typescript: 5.3.3 optionalDependencies: '@babel/code-frame': 7.23.5 dev: true - /rollup-plugin-esbuild@6.1.0(esbuild@0.19.11)(rollup@4.9.5)(supports-color@9.4.0): + /rollup-plugin-esbuild@6.1.0(esbuild@0.19.11)(rollup@4.9.6)(supports-color@9.4.0): resolution: {integrity: sha512-HPpXU65V8bSpW8eSYPahtUJaJHmbxJGybuf/M8B3bz/6i11YaYHlNNJIQ38gSEV0FyohQOgVxJ2YMEEZtEmwvA==} engines: {node: '>=14.18.0'} peerDependencies: esbuild: '>=0.18.0' rollup: ^1.20.0 || ^2.0.0 || ^3.0.0 || ^4.0.0 dependencies: - '@rollup/pluginutils': 5.1.0(rollup@4.9.5) + '@rollup/pluginutils': 5.1.0(rollup@4.9.6) debug: 4.3.4(supports-color@9.4.0) es-module-lexer: 1.4.1 esbuild: 0.19.11 get-tsconfig: 4.7.2 - rollup: 4.9.5 + rollup: 4.9.6 transitivePeerDependencies: - supports-color dev: true - /rollup@4.9.5: - resolution: {integrity: sha512-E4vQW0H/mbNMw2yLSqJyjtkHY9dslf/p0zuT1xehNRqUTBOFMqEjguDvqhXr7N7r/4ttb2jr4T41d3dncmIgbQ==} + /rollup@4.9.6: + resolution: {integrity: sha512-05lzkCS2uASX0CiLFybYfVkwNbKZG5NFQ6Go0VWyogFTXXbR039UVsegViTntkk4OglHBdF54ccApXRRuXRbsg==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true dependencies: '@types/estree': 1.0.5 optionalDependencies: - '@rollup/rollup-android-arm-eabi': 4.9.5 - '@rollup/rollup-android-arm64': 4.9.5 - '@rollup/rollup-darwin-arm64': 4.9.5 - '@rollup/rollup-darwin-x64': 4.9.5 - '@rollup/rollup-linux-arm-gnueabihf': 4.9.5 - '@rollup/rollup-linux-arm64-gnu': 4.9.5 - '@rollup/rollup-linux-arm64-musl': 4.9.5 - '@rollup/rollup-linux-riscv64-gnu': 4.9.5 - '@rollup/rollup-linux-x64-gnu': 4.9.5 - '@rollup/rollup-linux-x64-musl': 4.9.5 - '@rollup/rollup-win32-arm64-msvc': 4.9.5 - '@rollup/rollup-win32-ia32-msvc': 4.9.5 - '@rollup/rollup-win32-x64-msvc': 4.9.5 + '@rollup/rollup-android-arm-eabi': 4.9.6 + '@rollup/rollup-android-arm64': 4.9.6 + '@rollup/rollup-darwin-arm64': 4.9.6 + '@rollup/rollup-darwin-x64': 4.9.6 + '@rollup/rollup-linux-arm-gnueabihf': 4.9.6 + '@rollup/rollup-linux-arm64-gnu': 4.9.6 + '@rollup/rollup-linux-arm64-musl': 4.9.6 + '@rollup/rollup-linux-riscv64-gnu': 4.9.6 + '@rollup/rollup-linux-x64-gnu': 4.9.6 + '@rollup/rollup-linux-x64-musl': 4.9.6 + '@rollup/rollup-win32-arm64-msvc': 4.9.6 + '@rollup/rollup-win32-ia32-msvc': 4.9.6 + '@rollup/rollup-win32-x64-msvc': 4.9.6 fsevents: 2.3.3 /run-applescript@7.0.0: @@ -4347,8 +4347,8 @@ packages: strip-ansi: 7.1.0 dev: true - /string-width@7.0.0: - resolution: {integrity: sha512-GPQHj7row82Hjo9hKZieKcHIhaAIKOJvFSIZXuCU9OASVZrMNUaZuz++SPVrBjnLsnk4k+z9f2EIypgxf2vNFw==} + /string-width@7.1.0: + resolution: {integrity: sha512-SEIJCWiX7Kg4c129n48aDRwLbFb2LJmXXFrWBG4NGaRtMQ3myKPKbwrD1BKqQn74oCoNMBVrfDEr5M9YxCsrkw==} engines: {node: '>=18'} dependencies: emoji-regex: 10.3.0 @@ -4491,12 +4491,12 @@ packages: resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==} dev: true - /tinybench@2.5.1: - resolution: {integrity: sha512-65NKvSuAVDP/n4CqH+a9w2kTlLReS9vhsAP06MWx+/89nMinJyB2icyl58RIcqCmIggpojIGeuJGhjU1aGMBSg==} + /tinybench@2.6.0: + resolution: {integrity: sha512-N8hW3PG/3aOoZAN5V/NSAEDz0ZixDSSt5b/a05iqtpgfLWMSVuCo7w0k2vVvEjdrIoeGqZzweX2WlyioNIHchA==} dev: true - /tinypool@0.8.1: - resolution: {integrity: sha512-zBTCK0cCgRROxvs9c0CGK838sPkeokNGdQVUUwHAbynHFlmyJYj825f/oRs528HaIJ97lo0pLIlDUzwN+IorWg==} + /tinypool@0.8.2: + resolution: {integrity: sha512-SUszKYe5wgsxnNOVlBYO6IC+8VGWdVGZWAqUxp3UErNBtptZvWbwyUOyzNL59zigz2rCA92QiL3wvG+JDSdJdQ==} engines: {node: '>=14.0.0'} dev: true @@ -4677,8 +4677,8 @@ packages: engines: {node: '>= 0.8'} dev: true - /vite-node@1.2.0(@types/node@20.11.2)(supports-color@9.4.0): - resolution: {integrity: sha512-ETnQTHeAbbOxl7/pyBck9oAPZZZo+kYnFt1uQDD+hPReOc+wCjXw4r4jHriBRuVDB5isHmPXxrfc1yJnfBERqg==} + /vite-node@1.2.1(@types/node@20.11.5)(supports-color@9.4.0): + resolution: {integrity: sha512-fNzHmQUSOY+y30naohBvSW7pPn/xn3Ib/uqm+5wAJQJiqQsU0NBR78XdRJb04l4bOFKjpTWld0XAfkKlrDbySg==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true dependencies: @@ -4686,7 +4686,7 @@ packages: debug: 4.3.4(supports-color@9.4.0) pathe: 1.1.2 picocolors: 1.0.0 - vite: 5.0.12(@types/node@20.11.2) + vite: 5.0.12(@types/node@20.11.5) transitivePeerDependencies: - '@types/node' - less @@ -4698,7 +4698,7 @@ packages: - terser dev: true - /vite@5.0.12(@types/node@20.11.2): + /vite@5.0.12(@types/node@20.11.5): resolution: {integrity: sha512-4hsnEkG3q0N4Tzf1+t6NdN9dg/L3BM+q8SWgbSPnJvrgH2kgdyzfVJwbR1ic69/4uMJJ/3dqDZZE5/WwqW8U1w==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -4726,15 +4726,15 @@ packages: terser: optional: true dependencies: - '@types/node': 20.11.2 + '@types/node': 20.11.5 esbuild: 0.19.11 postcss: 8.4.33 - rollup: 4.9.5 + rollup: 4.9.6 optionalDependencies: fsevents: 2.3.3 - /vitest@1.2.0(@types/node@20.11.2)(supports-color@9.4.0): - resolution: {integrity: sha512-Ixs5m7BjqvLHXcibkzKRQUvD/XLw0E3rvqaCMlrm/0LMsA0309ZqYvTlPzkhh81VlEyVZXFlwWnkhb6/UMtcaQ==} + /vitest@1.2.1(@types/node@20.11.5)(supports-color@9.4.0): + resolution: {integrity: sha512-TRph8N8rnSDa5M2wKWJCMnztCZS9cDcgVTQ6tsTFTG/odHJ4l5yNVqvbeDJYJRZ6is3uxaEpFs8LL6QM+YFSdA==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: @@ -4758,12 +4758,12 @@ packages: jsdom: optional: true dependencies: - '@types/node': 20.11.2 - '@vitest/expect': 1.2.0 - '@vitest/runner': 1.2.0 - '@vitest/snapshot': 1.2.0 - '@vitest/spy': 1.2.0 - '@vitest/utils': 1.2.0 + '@types/node': 20.11.5 + '@vitest/expect': 1.2.1 + '@vitest/runner': 1.2.1 + '@vitest/snapshot': 1.2.1 + '@vitest/spy': 1.2.1 + '@vitest/utils': 1.2.1 acorn-walk: 8.3.2 cac: 6.7.14 chai: 4.4.1 @@ -4775,10 +4775,10 @@ packages: picocolors: 1.0.0 std-env: 3.7.0 strip-literal: 1.3.0 - tinybench: 2.5.1 - tinypool: 0.8.1 - vite: 5.0.12(@types/node@20.11.2) - vite-node: 1.2.0(@types/node@20.11.2)(supports-color@9.4.0) + tinybench: 2.6.0 + tinypool: 0.8.2 + vite: 5.0.12(@types/node@20.11.5) + vite-node: 1.2.1(@types/node@20.11.5)(supports-color@9.4.0) why-is-node-running: 2.2.2 transitivePeerDependencies: - less @@ -4790,7 +4790,7 @@ packages: - terser dev: true - /vue-demi@0.14.6(vue@3.4.14): + /vue-demi@0.14.6(vue@3.4.15): resolution: {integrity: sha512-8QA7wrYSHKaYgUxDA5ZC24w+eHm3sYCbp0EzcDwKqN3p6HqtTCGR/GVsPyZW92unff4UlcSh++lmqDWN3ZIq4w==} engines: {node: '>=12'} hasBin: true @@ -4802,7 +4802,7 @@ packages: '@vue/composition-api': optional: true dependencies: - vue: 3.4.14(typescript@5.3.3) + vue: 3.4.15(typescript@5.3.3) dev: false /vue-template-compiler@2.7.16: @@ -4824,19 +4824,19 @@ packages: typescript: 5.3.3 dev: true - /vue@3.4.14(typescript@5.3.3): - resolution: {integrity: sha512-Rop5Al/ZcBbBz+KjPZaZDgHDX0kUP4duEzDbm+1o91uxYUNmJrZSBuegsNIJvUGy+epLevNRNhLjm08VKTgGyw==} + /vue@3.4.15(typescript@5.3.3): + resolution: {integrity: sha512-jC0GH4KkWLWJOEQjOpkqU1bQsBwf4R1rsFtw5GQJbjHVKWDzO6P0nWWBTmjp1xSemAioDFj1jdaK1qa3DnMQoQ==} peerDependencies: typescript: '*' peerDependenciesMeta: typescript: optional: true dependencies: - '@vue/compiler-dom': 3.4.14 - '@vue/compiler-sfc': 3.4.14 - '@vue/runtime-dom': 3.4.14 - '@vue/server-renderer': 3.4.14(vue@3.4.14) - '@vue/shared': 3.4.14 + '@vue/compiler-dom': 3.4.15 + '@vue/compiler-sfc': 3.4.15 + '@vue/runtime-dom': 3.4.15 + '@vue/server-renderer': 3.4.15(vue@3.4.15) + '@vue/shared': 3.4.15 typescript: 5.3.3 dev: false @@ -4846,7 +4846,7 @@ packages: hasBin: true dependencies: axios: 1.6.5(debug@4.3.4) - joi: 17.11.1 + joi: 17.12.0 lodash: 4.17.21 minimist: 1.2.8 rxjs: 7.8.1 @@ -4955,7 +4955,7 @@ packages: engines: {node: '>=18'} dependencies: ansi-styles: 6.2.1 - string-width: 7.0.0 + string-width: 7.1.0 strip-ansi: 7.1.0 dev: true From 3792f806e51593ddcba8e9e72e0ee69ad3e0a53b Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Mon, 22 Jan 2024 16:46:26 +0530 Subject: [PATCH 14/55] release: v1.0.0-rc.40 --- CHANGELOG.md | 15 +++++++++++++++ package.json | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a89b2515..3f07d9ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,18 @@ +# [1.0.0-rc.40](https://github.com/vuejs/vitepress/compare/v1.0.0-rc.39...v1.0.0-rc.40) (2024-1-22) + +### Bug Fixes + +- **client:** handle head orphans added in initial load ([#3474](https://github.com/vuejs/vitepress/issues/3474)) ([5e2d853](https://github.com/vuejs/vitepress/commit/5e2d853e1a315216dce5fc98ee2efd15c724a25d)) +- **theme:** avoid selecting summary on toggling details ([77a318c](https://github.com/vuejs/vitepress/commit/77a318c2a348d341dd3ea1e1650fcf8ad3abfcd7)) +- **theme:** hover color for code links inside custom containers ([#3467](https://github.com/vuejs/vitepress/issues/3467)) ([d529ed4](https://github.com/vuejs/vitepress/commit/d529ed49756841f055024c559d09875501bc6d76)) +- **type:** fix missed `VPBadge` type in `theme.d.ts` ([#3470](https://github.com/vuejs/vitepress/issues/3470)) ([fcf828c](https://github.com/vuejs/vitepress/commit/fcf828c2a71892dad5af8d21e405f4d1e2cc280c)) + +### Features + +- support GitHub-flavored alerts ([#3482](https://github.com/vuejs/vitepress/issues/3482)) ([ac87d19](https://github.com/vuejs/vitepress/commit/ac87d19ca1bbc966e5fe1cca5f433f5ea4b11be3)) +- support specifying custom extensions to escape routing ([#3466](https://github.com/vuejs/vitepress/issues/3466)) ([c22f5d9](https://github.com/vuejs/vitepress/commit/c22f5d983f3e5d5c4f0ed0683a93ece564487c13)) +- **theme:** add npm icon ([#3483](https://github.com/vuejs/vitepress/issues/3483)) ([c882fa1](https://github.com/vuejs/vitepress/commit/c882fa1469a7bd0d6e28196e7a841adf48e803f1)) + # [1.0.0-rc.39](https://github.com/vuejs/vitepress/compare/v1.0.0-rc.38...v1.0.0-rc.39) (2024-01-16) ### Bug Fixes diff --git a/package.json b/package.json index 654f9466..40012206 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vitepress", - "version": "1.0.0-rc.39", + "version": "1.0.0-rc.40", "description": "Vite & Vue powered static site generator", "type": "module", "packageManager": "pnpm@8.14.2", From d01a0a5c66e08e8b86ef1784ddae6d1c327bbebb Mon Sep 17 00:00:00 2001 From: Bpoi <57349905+Hellokugou520@users.noreply.github.com> Date: Wed, 24 Jan 2024 11:11:53 +0800 Subject: [PATCH 15/55] docs(zh): update frontmatter.md (#3489) --- docs/zh/guide/frontmatter.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/zh/guide/frontmatter.md b/docs/zh/guide/frontmatter.md index 778b8111..4bcec7ea 100644 --- a/docs/zh/guide/frontmatter.md +++ b/docs/zh/guide/frontmatter.md @@ -2,7 +2,7 @@ ## 用法 {#usage} -VitePress 支持在所有 Markdown 文件中使用 YAML frontmatter,并使用 [gray-matter](https://github.com/jonschlinkert/gray-matter) 解析。frontmatter 必须位于 Markdown 文件的顶部 (在任何元素之前,包括 ` diff --git a/src/client/theme-default/components/VPSwitchAppearance.vue b/src/client/theme-default/components/VPSwitchAppearance.vue index f63d1ce4..7b13355f 100644 --- a/src/client/theme-default/components/VPSwitchAppearance.vue +++ b/src/client/theme-default/components/VPSwitchAppearance.vue @@ -2,8 +2,6 @@ import { inject, computed } from 'vue' import { useData } from '../composables/data' import VPSwitch from './VPSwitch.vue' -import VPIconMoon from './icons/VPIconMoon.vue' -import VPIconSun from './icons/VPIconSun.vue' const { isDark, theme } = useData() @@ -25,8 +23,8 @@ const switchTitle = computed(() => { :aria-checked="isDark" @click="toggleAppearance" > - - + + diff --git a/src/client/theme-default/components/VPTeamMembersItem.vue b/src/client/theme-default/components/VPTeamMembersItem.vue index 5acb21e8..f84bdc03 100644 --- a/src/client/theme-default/components/VPTeamMembersItem.vue +++ b/src/client/theme-default/components/VPTeamMembersItem.vue @@ -1,6 +1,5 @@ diff --git a/src/client/theme-default/components/VPHomeContent.vue b/src/client/theme-default/components/VPHomeContent.vue new file mode 100644 index 00000000..fe689b6e --- /dev/null +++ b/src/client/theme-default/components/VPHomeContent.vue @@ -0,0 +1,52 @@ + + + + + diff --git a/src/client/theme-default/components/VPHomeSponsors.vue b/src/client/theme-default/components/VPHomeSponsors.vue index 44878a94..1343e776 100644 --- a/src/client/theme-default/components/VPHomeSponsors.vue +++ b/src/client/theme-default/components/VPHomeSponsors.vue @@ -49,8 +49,33 @@ withDefaults(defineProps(), {