From 98ae8aa8092deae53397729b8569f33962d6e8f7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 15 Oct 2024 21:01:49 +0300 Subject: [PATCH 1/3] Bump markdown-to-jsx from 6.11.4 to 7.4.0 (#3462) Bumps [markdown-to-jsx](https://github.com/quantizor/markdown-to-jsx) from 6.11.4 to 7.4.0. - [Release notes](https://github.com/quantizor/markdown-to-jsx/releases) - [Changelog](https://github.com/quantizor/markdown-to-jsx/blob/main/CHANGELOG.md) - [Commits](https://github.com/quantizor/markdown-to-jsx/compare/6.11.4...v7.4.0) --- updated-dependencies: - dependency-name: markdown-to-jsx dependency-type: direct:production ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- examples/swr-site/package.json | 2 +- pnpm-lock.yaml | 31 ++++++++++++++----------------- 2 files changed, 15 insertions(+), 18 deletions(-) diff --git a/examples/swr-site/package.json b/examples/swr-site/package.json index ef4043f0d3..ce5d34fe8e 100644 --- a/examples/swr-site/package.json +++ b/examples/swr-site/package.json @@ -16,7 +16,7 @@ "types:check": "tsc --noEmit" }, "dependencies": { - "markdown-to-jsx": "^6.11.4", + "markdown-to-jsx": "^7.4.0", "next": "^14.2.5", "nextra": "workspace:*", "nextra-theme-docs": "workspace:*", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 19dcc46220..8ddcbe5bac 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -156,7 +156,7 @@ importers: version: file:packages/nextra(@types/react@18.3.11)(next@14.2.15)(react-dom@18.3.1)(react@18.3.1)(typescript@5.6.3) nextra-theme-blog: specifier: workspace:* - version: file:packages/nextra-theme-blog(next@14.2.15)(nextra@3.0.11)(react-dom@18.3.1)(react@18.3.1) + version: file:packages/nextra-theme-blog(next@14.2.15)(nextra@3.0.12)(react-dom@18.3.1)(react@18.3.1) react: specifier: ^18.2.0 version: 18.3.1 @@ -179,7 +179,7 @@ importers: version: file:packages/nextra(@types/react@18.3.11)(next@14.2.15)(react-dom@18.3.1)(react@18.3.1)(typescript@5.6.3) nextra-theme-docs: specifier: workspace:* - version: file:packages/nextra-theme-docs(next@14.2.15)(nextra@3.0.11)(react-dom@18.3.1)(react@18.3.1) + version: file:packages/nextra-theme-docs(next@14.2.15)(nextra@3.0.12)(react-dom@18.3.1)(react@18.3.1) react: specifier: ^18.2.0 version: 18.3.1 @@ -195,8 +195,8 @@ importers: examples/swr-site: dependencies: markdown-to-jsx: - specifier: ^6.11.4 - version: 6.11.4(react@18.3.1) + specifier: ^7.4.0 + version: 7.4.0(react@18.3.1) next: specifier: 14.2.15 version: 14.2.15(@babel/core@7.25.2)(react-dom@18.3.1)(react@18.3.1) @@ -205,7 +205,7 @@ importers: version: file:packages/nextra(@types/react@18.3.11)(next@14.2.15)(react-dom@18.3.1)(react@18.3.1)(typescript@5.6.3) nextra-theme-docs: specifier: workspace:* - version: file:packages/nextra-theme-docs(next@14.2.15)(nextra@3.0.11)(react-dom@18.3.1)(react@18.3.1) + version: file:packages/nextra-theme-docs(next@14.2.15)(nextra@3.0.12)(react-dom@18.3.1)(react@18.3.1) react: specifier: ^18.2.0 version: 18.3.1 @@ -1735,7 +1735,7 @@ packages: dependencies: '@babel/core': 7.25.2 '@babel/helper-create-regexp-features-plugin': 7.25.7(@babel/core@7.25.2) - '@babel/helper-plugin-utils': 7.25.7 + '@babel/helper-plugin-utils': 7.24.8 dev: true /@babel/plugin-transform-arrow-functions@7.24.7(@babel/core@7.24.9): @@ -10128,15 +10128,13 @@ packages: resolution: {integrity: sha512-y8j3a5/DkJCmS5x4dMCQL+OR0+2EAq3DOtio1COSHsmW2BGXnNCK3v12hJt1LrUz5iZH5g0LmuYOjDdI+czghA==} dev: false - /markdown-to-jsx@6.11.4(react@18.3.1): - resolution: {integrity: sha512-3lRCD5Sh+tfA52iGgfs/XZiw33f7fFX9Bn55aNnVNUd2GzLDkOWyKYYD8Yju2B1Vn+feiEdgJs8T6Tg0xNokPw==} - engines: {node: '>= 4'} + /markdown-to-jsx@7.4.0(react@18.3.1): + resolution: {integrity: sha512-zilc+MIkVVXPyTb4iIUTIz9yyqfcWjszGXnwF9K/aiBWcHXFcmdEMTkG01/oQhwSCH7SY1BnG6+ev5BzWmbPrg==} + engines: {node: '>= 10'} peerDependencies: react: '>= 0.14.0' dependencies: - prop-types: 15.8.1 react: 18.3.1 - unquote: 1.1.1 dev: false /marked@13.0.3: @@ -11118,6 +11116,7 @@ packages: /object-assign@4.1.1: resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} engines: {node: '>=0.10.0'} + dev: true /object-hash@3.0.0: resolution: {integrity: sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==} @@ -11778,6 +11777,7 @@ packages: loose-envify: 1.4.0 object-assign: 4.1.1 react-is: 16.13.1 + dev: true /property-information@6.1.1: resolution: {integrity: sha512-hrzC564QIl0r0vy4l6MvRLhafmUowhO/O3KgVSoXIbbA2Sz4j8HGpJc6T2cubRVwMwpdiG/vKGfhT4IixmKN9w==} @@ -11834,6 +11834,7 @@ packages: /react-is@16.13.1: resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==} + dev: true /react-is@17.0.2: resolution: {integrity: sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==} @@ -13556,10 +13557,6 @@ packages: engines: {node: '>= 10.0.0'} dev: true - /unquote@1.1.1: - resolution: {integrity: sha512-vRCqFv6UhXpWxZPyGDh/F3ZpNv8/qo7w6iufLpQg9aKnQ71qM4B5KiI7Mia9COcjEhrO9LueHpMYjYzsWH3OIg==} - dev: false - /update-browserslist-db@1.1.0(browserslist@4.23.3): resolution: {integrity: sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ==} hasBin: true @@ -14202,7 +14199,7 @@ packages: - typescript dev: false - file:packages/nextra-theme-blog(next@14.2.15)(nextra@3.0.11)(react-dom@18.3.1)(react@18.3.1): + file:packages/nextra-theme-blog(next@14.2.15)(nextra@3.0.12)(react-dom@18.3.1)(react@18.3.1): resolution: {directory: packages/nextra-theme-blog, type: directory} id: file:packages/nextra-theme-blog name: nextra-theme-blog @@ -14223,7 +14220,7 @@ packages: react-dom: 18.3.1(react@18.3.1) dev: false - file:packages/nextra-theme-docs(next@14.2.15)(nextra@3.0.11)(react-dom@18.3.1)(react@18.3.1): + file:packages/nextra-theme-docs(next@14.2.15)(nextra@3.0.12)(react-dom@18.3.1)(react@18.3.1): resolution: {directory: packages/nextra-theme-docs, type: directory} id: file:packages/nextra-theme-docs name: nextra-theme-docs From f1815ac8e54554cdb1be9aac77ae174237a4de20 Mon Sep 17 00:00:00 2001 From: Wayne Shih <0x26@wayneshih.com> Date: Wed, 16 Oct 2024 13:43:53 +1300 Subject: [PATCH 2/3] fix(mdx-components): link no underline hover (#3465) * fix(mdx-components): link no underline hover * Create cold-cooks-train.md --------- Co-authored-by: Dimitri POSTOLOV --- .changeset/cold-cooks-train.md | 7 +++++++ packages/nextra-theme-docs/src/mdx-components.tsx | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .changeset/cold-cooks-train.md diff --git a/.changeset/cold-cooks-train.md b/.changeset/cold-cooks-train.md new file mode 100644 index 0000000000..3930a82236 --- /dev/null +++ b/.changeset/cold-cooks-train.md @@ -0,0 +1,7 @@ +--- +"nextra-theme-docs": patch +--- + +From an accessibility POV (WCAG G13) there's a need of additional visual differentiation factor for hovers. Article achieves this but mdx doesn't. + +So changing the mdx link behaviour so on hover the underline disappears. diff --git a/packages/nextra-theme-docs/src/mdx-components.tsx b/packages/nextra-theme-docs/src/mdx-components.tsx index 15f4f6c885..d033270f39 100644 --- a/packages/nextra-theme-docs/src/mdx-components.tsx +++ b/packages/nextra-theme-docs/src/mdx-components.tsx @@ -212,7 +212,7 @@ export const Link = ({ href = '', className, ...props }: AnchorProps) => ( href={href} newWindow={EXTERNAL_HREF_REGEX.test(href)} className={cn( - '_text-primary-600 _underline _decoration-from-font [text-underline-position:from-font]', + '_text-primary-600 _underline hover:_no-underline _decoration-from-font [text-underline-position:from-font]', className )} {...props} From 5d37b3d8396551f9b30d855fd694e9a7f53cbba0 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 16 Oct 2024 03:46:12 +0300 Subject: [PATCH 3/3] Version Packages (#3467) Co-authored-by: github-actions[bot] --- .changeset/cold-cooks-train.md | 7 ------- packages/nextra-theme-blog/CHANGELOG.md | 6 ++++++ packages/nextra-theme-blog/package.json | 2 +- packages/nextra-theme-docs/CHANGELOG.md | 12 ++++++++++++ packages/nextra-theme-docs/package.json | 2 +- packages/nextra/CHANGELOG.md | 2 ++ packages/nextra/package.json | 2 +- 7 files changed, 23 insertions(+), 10 deletions(-) delete mode 100644 .changeset/cold-cooks-train.md diff --git a/.changeset/cold-cooks-train.md b/.changeset/cold-cooks-train.md deleted file mode 100644 index 3930a82236..0000000000 --- a/.changeset/cold-cooks-train.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"nextra-theme-docs": patch ---- - -From an accessibility POV (WCAG G13) there's a need of additional visual differentiation factor for hovers. Article achieves this but mdx doesn't. - -So changing the mdx link behaviour so on hover the underline disappears. diff --git a/packages/nextra-theme-blog/CHANGELOG.md b/packages/nextra-theme-blog/CHANGELOG.md index 6b0aa4ecbc..e982f814d5 100644 --- a/packages/nextra-theme-blog/CHANGELOG.md +++ b/packages/nextra-theme-blog/CHANGELOG.md @@ -1,5 +1,11 @@ # nextra-theme-blog +## 3.0.13 + +### Patch Changes + +- nextra@3.0.13 + ## 3.0.12 ### Patch Changes diff --git a/packages/nextra-theme-blog/package.json b/packages/nextra-theme-blog/package.json index b9d36fe68a..88e8e91646 100644 --- a/packages/nextra-theme-blog/package.json +++ b/packages/nextra-theme-blog/package.json @@ -1,6 +1,6 @@ { "name": "nextra-theme-blog", - "version": "3.0.12", + "version": "3.0.13", "description": "A Nextra theme for blogs.", "repository": "https://github.com/shuding/nextra", "author": "Shu Ding ", diff --git a/packages/nextra-theme-docs/CHANGELOG.md b/packages/nextra-theme-docs/CHANGELOG.md index cf4fa88f0d..23c92467f5 100644 --- a/packages/nextra-theme-docs/CHANGELOG.md +++ b/packages/nextra-theme-docs/CHANGELOG.md @@ -1,5 +1,17 @@ # nextra-theme-docs +## 3.0.13 + +### Patch Changes + +- f1815ac: From an accessibility POV (WCAG G13) there's a need of additional + visual differentiation factor for hovers. Article achieves this but mdx + doesn't. + + So changing the mdx link behaviour so on hover the underline disappears. + + - nextra@3.0.13 + ## 3.0.12 ### Patch Changes diff --git a/packages/nextra-theme-docs/package.json b/packages/nextra-theme-docs/package.json index f0b9c15de9..b745360aa4 100644 --- a/packages/nextra-theme-docs/package.json +++ b/packages/nextra-theme-docs/package.json @@ -1,6 +1,6 @@ { "name": "nextra-theme-docs", - "version": "3.0.12", + "version": "3.0.13", "description": "A Nextra theme for documentation sites.", "repository": "https://github.com/shuding/nextra", "author": "Shu Ding ", diff --git a/packages/nextra/CHANGELOG.md b/packages/nextra/CHANGELOG.md index dbd9c33cf5..31599da955 100644 --- a/packages/nextra/CHANGELOG.md +++ b/packages/nextra/CHANGELOG.md @@ -1,5 +1,7 @@ # nextra +## 3.0.13 + ## 3.0.12 ### Patch Changes diff --git a/packages/nextra/package.json b/packages/nextra/package.json index 448274806a..7e955c0155 100644 --- a/packages/nextra/package.json +++ b/packages/nextra/package.json @@ -1,6 +1,6 @@ { "name": "nextra", - "version": "3.0.12", + "version": "3.0.13", "type": "module", "description": "Next.js and MDX based site generator.", "repository": "https://github.com/shuding/nextra",