update dependencies

This commit is contained in:
Hölting, Moritz (Intern) 2025-08-06 10:08:04 +02:00
parent 398318cae2
commit 8dc0d2cbaf
6 changed files with 2824 additions and 2540 deletions

View File

@ -29,9 +29,9 @@ export default defineConfig({
}, },
favicon: '/favicon.ico', favicon: '/favicon.ico',
description: 'A simple and powerful scripting language for Minecraft datapacks.', description: 'A simple and powerful scripting language for Minecraft datapacks.',
social: { social: [
email: 'mailto:shulkerscript@hoelting.dev', { icon: 'email', label: 'E-Mail', href: 'mailto:shulkerscript@hoelting.dev' },
}, ],
tableOfContents: { minHeadingLevel: 1, maxHeadingLevel: 3 }, tableOfContents: { minHeadingLevel: 1, maxHeadingLevel: 3 },
defaultLocale: 'root', defaultLocale: 'root',
locales: { locales: {

View File

@ -11,36 +11,36 @@
"astro": "astro" "astro": "astro"
}, },
"dependencies": { "dependencies": {
"@astrojs/check": "^0.9.3", "@astrojs/check": "^0.9.4",
"@astrojs/react": "^3.6.0", "@astrojs/react": "^4.3.0",
"@astrojs/starlight": "^0.28.2", "@astrojs/starlight": "^0.35.2",
"@emotion/react": "^11.11.4", "@emotion/react": "^11.14.0",
"@emotion/styled": "^11.11.5", "@emotion/styled": "^11.14.1",
"@lorenzo_lewis/starlight-utils": "^0.1.1", "@lorenzo_lewis/starlight-utils": "^0.3.2",
"@monaco-editor/react": "^4.6.0", "@monaco-editor/react": "^4.7.0",
"@mui/icons-material": "^6.1.1", "@mui/icons-material": "^7.3.0",
"@mui/material": "^6.1.1", "@mui/material": "^7.3.0",
"@shikijs/monaco": "^1.7.0", "@shikijs/monaco": "^3.9.2",
"@types/mdast": "^4.0.4", "@types/mdast": "^4.0.4",
"@types/react": "^18.3.3", "@types/react": "^19.1.9",
"@types/react-dom": "^18.3.0", "@types/react-dom": "^19.1.7",
"@types/unist": "^3.0.3", "@types/unist": "^3.0.3",
"astro": "^4.15.9", "astro": "^5.12.8",
"react": "^18.3.1", "react": "^19.1.1",
"react-dom": "^18.3.1", "react-dom": "^19.1.1",
"react-icons": "^5.2.1", "react-icons": "^5.5.0",
"sharp": "^0.33.5", "sharp": "^0.34.3",
"shiki": "^1.7.0", "shiki": "^3.9.2",
"starlight-links-validator": "^0.12.1", "starlight-links-validator": "^0.17.0",
"tm-themes": "^1.4.3", "tm-themes": "^1.10.7",
"typescript": "^5.4.5", "typescript": "^5.9.2",
"unified": "^11.0.5", "unified": "^11.0.5",
"unist-util-visit": "^5.0.0", "unist-util-visit": "^5.0.0",
"use-immer": "^0.10.0", "use-immer": "^0.11.0",
"vite-plugin-wasm": "^3.3.0" "vite-plugin-wasm": "^3.5.0"
}, },
"devDependencies": { "devDependencies": {
"sass": "^1.77.6" "sass": "^1.90.0"
}, },
"packageManager": "pnpm@9.7.0" "packageManager": "pnpm@9.7.0"
} }

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
import { useEffect, useState } from "react"; import { useEffect, useState } from "react";
import { useMonaco, type Monaco } from "@monaco-editor/react"; import { useMonaco, type Monaco } from "@monaco-editor/react";
import { useImmer, type Updater } from "use-immer"; import { useImmer, type Updater } from "use-immer";
import ThemeProvider from "@mui/material/styles/ThemeProvider"; import { ThemeProvider } from "@mui/material/styles";
import ErrorDisplay from "./playground/ErrorDisplay"; import ErrorDisplay from "./playground/ErrorDisplay";
import FileView from "./playground/FileView"; import FileView from "./playground/FileView";
import Editor from "./playground/Editor"; import Editor from "./playground/Editor";

View File

@ -1,6 +1,6 @@
import type { File } from "@utils/playground"; import type { File } from "@utils/playground";
import MonacoEditor, { useMonaco } from "@monaco-editor/react"; import MonacoEditor, { useMonaco } from "@monaco-editor/react";
import { getHighlighter, type Highlighter } from "shiki"; import { createHighlighter, type Highlighter } from "shiki";
import { shikiToMonaco } from "@shikijs/monaco"; import { shikiToMonaco } from "@shikijs/monaco";
import { useEffect, useState } from "react"; import { useEffect, useState } from "react";
import darkPlus from "tm-themes/themes/dark-plus.json"; import darkPlus from "tm-themes/themes/dark-plus.json";
@ -24,7 +24,7 @@ export default function Editor({
useEffect(() => { useEffect(() => {
if (monaco) { if (monaco) {
if (highlighter == null) { if (highlighter == null) {
getHighlighter({ createHighlighter({
themes: [darkPlus as any, lightPlus], themes: [darkPlus as any, lightPlus],
langs: ["toml", shulkerscriptGrammar, mcfunctionGrammar], langs: ["toml", shulkerscriptGrammar, mcfunctionGrammar],
}).then((highlighter) => { }).then((highlighter) => {

View File

@ -1,7 +1,7 @@
import { visit } from 'unist-util-visit'; import { visit } from 'unist-util-visit';
import type { Plugin } from 'unified'; import type { Plugin } from 'unified';
import type { Parent } from 'unist'; import type { Parent } from 'unist';
import type { Paragraph, Text } from 'mdast'; import type { Paragraph } from 'mdast';
const INLINE_REGEX = /!(since|changed|deprecated)\[([^\]]+)\]/g; const INLINE_REGEX = /!(since|changed|deprecated)\[([^\]]+)\]/g;