From d0ac84b5cc3e4d9dfdb93800bdf766780fc20f67 Mon Sep 17 00:00:00 2001 From: Florian <45694132+flo-bit@users.noreply.github.com> Date: Fri, 24 Apr 2026 16:41:20 +0200 Subject: [PATCH] fixes? --- custom-embeds/remark-plugin.ts | 2 +- package.json | 3 +- pnpm-lock.yaml | 90 ++++------------------ src/embeds/callouts/CautionCallout.astro | 3 +- src/embeds/callouts/ImportantCallout.astro | 3 +- src/embeds/callouts/NoteCallout.astro | 3 +- src/embeds/callouts/TipCallout.astro | 3 +- src/embeds/callouts/WarningCallout.astro | 3 +- 8 files changed, 25 insertions(+), 85 deletions(-) diff --git a/custom-embeds/remark-plugin.ts b/custom-embeds/remark-plugin.ts index 3fa4e8f..7f722fd 100644 --- a/custom-embeds/remark-plugin.ts +++ b/custom-embeds/remark-plugin.ts @@ -115,7 +115,7 @@ export default function createPlugin({ const paragraphs = selectAll("paragraph", tree); paragraphs.forEach((paragraph) => { - const link: Link | null = select(":scope > link:only-child", paragraph); + const link = select(":scope > link:only-child", paragraph) as Link | undefined; if (!link) return; const { url, children } = link; diff --git a/package.json b/package.json index 85755aa..ce29f09 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "@astrojs/tailwind": "^6.0.0", "@codesandbox/sandpack-react": "^2.20.0", "@codesandbox/sandpack-themes": "^2.0.21", - "@shikijs/transformers": "^1.24.2", + "@shikijs/transformers": "^3.23.0", "@tailwindcss/forms": "^0.5.9", "@types/react": "^19.0.10", "@types/react-dom": "^19.0.4", @@ -31,6 +31,7 @@ "astro-custom-embeds": "^0.0.1", "astro-og-canvas": "^0.7.0", "astro-pagefind": "^1.8.0", + "canvaskit-wasm": "^0.41.1", "cheerio": "^1.0.0", "lite-youtube-embed": "^0.3.3", "react": "^19.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fcf3489..10aa8a4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -42,8 +42,8 @@ importers: specifier: ^2.0.21 version: 2.0.21 '@shikijs/transformers': - specifier: ^1.24.2 - version: 1.29.2 + specifier: ^3.23.0 + version: 3.23.0 '@tailwindcss/forms': specifier: ^0.5.9 version: 0.5.11(tailwindcss@3.4.19(yaml@2.8.3)) @@ -68,6 +68,9 @@ importers: astro-pagefind: specifier: ^1.8.0 version: 1.8.6(astro@5.18.1(@types/node@24.12.2)(jiti@1.21.7)(rollup@4.60.2)(typescript@5.9.3)(yaml@2.8.3)) + canvaskit-wasm: + specifier: ^0.41.1 + version: 0.41.1 cheerio: specifier: ^1.0.0 version: 1.2.0 @@ -1094,21 +1097,12 @@ packages: cpu: [x64] os: [win32] - '@shikijs/core@1.29.2': - resolution: {integrity: sha512-vju0lY9r27jJfOY4Z7+Rt/nIOjzJpZ3y+nYpqtUZInVoXQ/TJZcfGnNOGnKjFdVZb8qexiCuSlZRKcGfhhTTZQ==} - '@shikijs/core@3.23.0': resolution: {integrity: sha512-NSWQz0riNb67xthdm5br6lAkvpDJRTgB36fxlo37ZzM2yq0PQFFzbd8psqC2XMPgCzo1fW6cVi18+ArJ44wqgA==} - '@shikijs/engine-javascript@1.29.2': - resolution: {integrity: sha512-iNEZv4IrLYPv64Q6k7EPpOCE/nuvGiKl7zxdq0WFuRPF5PAE9PRo2JGq/d8crLusM59BRemJ4eOqrFrC4wiQ+A==} - '@shikijs/engine-javascript@3.23.0': resolution: {integrity: sha512-aHt9eiGFobmWR5uqJUViySI1bHMqrAgamWE1TYSUoftkAeCCAiGawPMwM+VCadylQtF4V3VNOZ5LmfItH5f3yA==} - '@shikijs/engine-oniguruma@1.29.2': - resolution: {integrity: sha512-7iiOx3SG8+g1MnlzZVDYiaeHe7Ez2Kf2HrJzdmGwkRisT7r4rak0e655AcM/tF9JG/kg5fMNYlLLKglbN7gBqA==} - '@shikijs/engine-oniguruma@3.23.0': resolution: {integrity: sha512-1nWINwKXxKKLqPibT5f4pAFLej9oZzQTsby8942OTlsJzOBZ0MWKiwzMsd+jhzu8YPCHAswGnnN1YtQfirL35g==} @@ -1118,11 +1112,8 @@ packages: '@shikijs/themes@3.23.0': resolution: {integrity: sha512-5qySYa1ZgAT18HR/ypENL9cUSGOeI2x+4IvYJu4JgVJdizn6kG4ia5Q1jDEOi7gTbN4RbuYtmHh0W3eccOrjMA==} - '@shikijs/transformers@1.29.2': - resolution: {integrity: sha512-NHQuA+gM7zGuxGWP9/Ub4vpbwrYCrho9nQCLcCPfOe3Yc7LOYwmSuhElI688oiqIXk9dlZwDiyAG9vPBTuPJMA==} - - '@shikijs/types@1.29.2': - resolution: {integrity: sha512-VJjK0eIijTZf0QSTODEXCqinjBn0joAHQ+aPSBzrv4O2d/QSbsMw+ZeSRx03kV34Hy7NzUvV/7NqfYGRLrASmw==} + '@shikijs/transformers@3.23.0': + resolution: {integrity: sha512-F9msZVxdF+krQNSdQ4V+Ja5QemeAoTQ2jxt7nJCwhDsdF1JWS3KxIQXA3lQbyKwS3J61oHRUSv4jYWv3CkaKTQ==} '@shikijs/types@3.23.0': resolution: {integrity: sha512-3JZ5HXOZfYjsYSk0yPwBrkupyYSLpAE26Qc0HLghhZNGTZg/SKxXIIgoxOpmmeQP0RRSDJTk1/vPfw9tbw+jSQ==} @@ -1433,6 +1424,9 @@ packages: canvaskit-wasm@0.40.0: resolution: {integrity: sha512-Od2o+ZmoEw9PBdN/yCGvzfu0WVqlufBPEWNG452wY7E9aT8RBE+ChpZF526doOlg7zumO4iCS+RAeht4P0Gbpw==} + canvaskit-wasm@0.41.1: + resolution: {integrity: sha512-gO2rNMIE0lOQ8MaarM4qNeq2zZAEknAObKP2XAKidMSAY8P5sURGdFkrx1TSdHuBFqTf5w35JqjuUzjibqkD5g==} + ccount@2.0.1: resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==} @@ -1661,9 +1655,6 @@ packages: emmet@2.4.11: resolution: {integrity: sha512-23QPJB3moh/U9sT4rQzGgeyyGIrcM+GH5uVYg2C6wZIxAIJq7Ng3QLT79tl8FUwDXhyq9SusfknOrofAKqvgyQ==} - emoji-regex-xs@1.0.0: - resolution: {integrity: sha512-LRlerrMYoIDrT6jgpeZ2YYl/L8EulRTt5hQcYjy5AInh7HWXKimpqx68aknBFpGL2+/IcogTcaydJEgaTmOpDg==} - emoji-regex@10.6.0: resolution: {integrity: sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==} @@ -2356,9 +2347,6 @@ packages: oniguruma-parser@0.12.2: resolution: {integrity: sha512-6HVa5oIrgMC6aA6WF6XyyqbhRPJrKR02L20+2+zpDtO5QAzGHAUGw5TKQvwi5vctNnRHkJYmjAhRVQF2EKdTQw==} - oniguruma-to-es@2.3.0: - resolution: {integrity: sha512-bwALDxriqfKGfUufKGGepCzu9x7nJQuoRoAFp4AnwehhC2crqrDIAP/uN2qdlsAvSMpeRC3+Yzhqc7hLmle5+g==} - oniguruma-to-es@4.3.6: resolution: {integrity: sha512-csuQ9x3Yr0cEIs/Zgx/OEt9iBw9vqIunAPQkx19R/fiMq2oGVTgcMqO/V3Ybqefr1TBvosI6jU539ksaBULJyA==} @@ -2564,18 +2552,12 @@ packages: recma-stringify@1.0.0: resolution: {integrity: sha512-cjwII1MdIIVloKvC9ErQ+OgAtwHBmcZ0Bg4ciz78FtbT8In39aAYbaA7zvxQ61xVMSPE8WxhLwLbhif4Js2C+g==} - regex-recursion@5.1.1: - resolution: {integrity: sha512-ae7SBCbzVNrIjgSbh7wMznPcQel1DNlDtzensnFxpiNpXt1U2ju/bHugH422r+4LAVS1FpW1YCwilmnNsjum9w==} - regex-recursion@6.0.2: resolution: {integrity: sha512-0YCaSCq2VRIebiaUviZNs0cBz1kg5kVS2UKUfNIx8YVs1cN3AV7NTctO5FOKBA+UT2BPJIWZauYHPqJODG50cg==} regex-utilities@2.3.0: resolution: {integrity: sha512-8VhliFJAWRaUiVvREIiW2NXXTmHs4vMNnSzuJVhscgmGav3g9VDxLrQndI3dZZVVdp0ZO/5v0xmX516/7M9cng==} - regex@5.1.1: - resolution: {integrity: sha512-dN5I359AVGPnwzJm2jN1k0W9LPZ+ePvoOeVMMfqIMFz53sSwXkxaJoxr50ptnsC771lK95BnTrVSZxq0b9yCGw==} - regex@6.1.0: resolution: {integrity: sha512-6VwtthbV4o/7+OaAF9I5L5V3llLEsoPyq9P1JVXkedTP33c7MfCG0/5NOPcSJn0TzXcG9YUrR0gQSWioew3LDg==} @@ -4237,15 +4219,6 @@ snapshots: '@rollup/rollup-win32-x64-msvc@4.60.2': optional: true - '@shikijs/core@1.29.2': - dependencies: - '@shikijs/engine-javascript': 1.29.2 - '@shikijs/engine-oniguruma': 1.29.2 - '@shikijs/types': 1.29.2 - '@shikijs/vscode-textmate': 10.0.2 - '@types/hast': 3.0.4 - hast-util-to-html: 9.0.5 - '@shikijs/core@3.23.0': dependencies: '@shikijs/types': 3.23.0 @@ -4253,23 +4226,12 @@ snapshots: '@types/hast': 3.0.4 hast-util-to-html: 9.0.5 - '@shikijs/engine-javascript@1.29.2': - dependencies: - '@shikijs/types': 1.29.2 - '@shikijs/vscode-textmate': 10.0.2 - oniguruma-to-es: 2.3.0 - '@shikijs/engine-javascript@3.23.0': dependencies: '@shikijs/types': 3.23.0 '@shikijs/vscode-textmate': 10.0.2 oniguruma-to-es: 4.3.6 - '@shikijs/engine-oniguruma@1.29.2': - dependencies: - '@shikijs/types': 1.29.2 - '@shikijs/vscode-textmate': 10.0.2 - '@shikijs/engine-oniguruma@3.23.0': dependencies: '@shikijs/types': 3.23.0 @@ -4283,15 +4245,10 @@ snapshots: dependencies: '@shikijs/types': 3.23.0 - '@shikijs/transformers@1.29.2': - dependencies: - '@shikijs/core': 1.29.2 - '@shikijs/types': 1.29.2 - - '@shikijs/types@1.29.2': + '@shikijs/transformers@3.23.0': dependencies: - '@shikijs/vscode-textmate': 10.0.2 - '@types/hast': 3.0.4 + '@shikijs/core': 3.23.0 + '@shikijs/types': 3.23.0 '@shikijs/types@3.23.0': dependencies: @@ -4726,6 +4683,10 @@ snapshots: dependencies: '@webgpu/types': 0.1.21 + canvaskit-wasm@0.41.1: + dependencies: + '@webgpu/types': 0.1.21 + ccount@2.0.1: {} chalk@5.6.2: {} @@ -4934,8 +4895,6 @@ snapshots: '@emmetio/abbreviation': 2.3.3 '@emmetio/css-abbreviation': 2.1.8 - emoji-regex-xs@1.0.0: {} - emoji-regex@10.6.0: {} emoji-regex@8.0.0: {} @@ -6031,12 +5990,6 @@ snapshots: oniguruma-parser@0.12.2: {} - oniguruma-to-es@2.3.0: - dependencies: - emoji-regex-xs: 1.0.0 - regex: 5.1.1 - regex-recursion: 5.1.1 - oniguruma-to-es@4.3.6: dependencies: oniguruma-parser: 0.12.2 @@ -6239,21 +6192,12 @@ snapshots: unified: 11.0.5 vfile: 6.0.3 - regex-recursion@5.1.1: - dependencies: - regex: 5.1.1 - regex-utilities: 2.3.0 - regex-recursion@6.0.2: dependencies: regex-utilities: 2.3.0 regex-utilities@2.3.0: {} - regex@5.1.1: - dependencies: - regex-utilities: 2.3.0 - regex@6.1.0: dependencies: regex-utilities: 2.3.0 diff --git a/src/embeds/callouts/CautionCallout.astro b/src/embeds/callouts/CautionCallout.astro index 5974a28..65c7c5d 100644 --- a/src/embeds/callouts/CautionCallout.astro +++ b/src/embeds/callouts/CautionCallout.astro @@ -1,10 +1,9 @@ --- interface Props { - title: string; class?: string; } -const { title, class: className } = Astro.props; +const { class: className } = Astro.props; ---