mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-24 20:09:02 +00:00
chore: bump deps
This commit is contained in:
@@ -7,24 +7,12 @@ description: A remark plugin to transform TypeScript codeblocks into two tabs of
|
||||
|
||||
Install dependencies:
|
||||
|
||||
```npm
|
||||
npm i fumadocs-docgen oxc-transform
|
||||
```npm tab="Fumadocs MDX"
|
||||
npm i fumadocs-docgen
|
||||
```
|
||||
|
||||
For Next.js, externalize `oxc-transform`:
|
||||
|
||||
```js title="next.config.mjs (Next.js)"
|
||||
import { createMDX } from 'fumadocs-mdx/next';
|
||||
|
||||
/** @type {import('next').NextConfig} */
|
||||
const config = {
|
||||
reactStrictMode: true,
|
||||
serverExternalPackages: ['oxc-transform'],
|
||||
};
|
||||
|
||||
const withMDX = createMDX();
|
||||
|
||||
export default withMDX(config);
|
||||
```npm tab="Satteri"
|
||||
npm i @fumadocs/satteri
|
||||
```
|
||||
|
||||
Add the remark plugin:
|
||||
|
||||
@@ -14,14 +14,7 @@ const config: NextConfig = {
|
||||
fullUrl: true,
|
||||
},
|
||||
},
|
||||
serverExternalPackages: [
|
||||
'ts-morph',
|
||||
'typescript',
|
||||
'oxc-transform',
|
||||
'twoslash',
|
||||
'shiki',
|
||||
'@takumi-rs/core',
|
||||
],
|
||||
serverExternalPackages: ['ts-morph', 'typescript', 'twoslash', 'shiki', '@takumi-rs/core'],
|
||||
images: {
|
||||
remotePatterns: [
|
||||
{
|
||||
|
||||
@@ -13,8 +13,8 @@
|
||||
"start": "next start"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ai-sdk/openai-compatible": "^3.0.7",
|
||||
"@ai-sdk/react": "^4.0.23",
|
||||
"@ai-sdk/openai-compatible": "^3.0.10",
|
||||
"@ai-sdk/react": "^4.0.30",
|
||||
"@base-ui/react": "^1.6.0",
|
||||
"@floating-ui/react-dom": "^2.1.9",
|
||||
"@fumadocs/asyncapi": "workspace:*",
|
||||
@@ -28,7 +28,7 @@
|
||||
"@orama/orama": "^3.1.18",
|
||||
"@paper-design/shaders-react": "^0.0.77",
|
||||
"@shikijs/transformers": "^4.3.1",
|
||||
"ai": "^7.0.22",
|
||||
"ai": "^7.0.28",
|
||||
"class-variance-authority": "^0.7.1",
|
||||
"cnfast": "^0.0.8",
|
||||
"d3-force": "^3.0.0",
|
||||
@@ -53,7 +53,6 @@
|
||||
"next": "16.2.10",
|
||||
"next-themes": "^0.4.6",
|
||||
"octokit": "^5.0.5",
|
||||
"oxc-transform": "^0.139.0",
|
||||
"react": "^19.2.7",
|
||||
"react-dom": "^19.2.7",
|
||||
"react-force-graph-2d": "^1.29.1",
|
||||
@@ -63,7 +62,7 @@
|
||||
"remark-rehype": "^11.1.2",
|
||||
"satteri": "^0.9.5",
|
||||
"shiki": "^4.3.1",
|
||||
"takumi-js": "^2.1.1",
|
||||
"takumi-js": "^2.2.0",
|
||||
"twoslash": "^0.3.9",
|
||||
"unist-util-visit": "^5.1.0",
|
||||
"zod": "^4.4.3"
|
||||
@@ -86,7 +85,7 @@
|
||||
"browserslist-config-baseline": "^0.5.0",
|
||||
"mcp-handler": "^1.1.0",
|
||||
"next-validate-link": "^1.6.6",
|
||||
"postcss": "^8.5.17",
|
||||
"postcss": "^8.5.19",
|
||||
"shadcn": "4.13.0",
|
||||
"tailwindcss": "^4.3.2",
|
||||
"tailwindcss-animate": "^1.0.7",
|
||||
|
||||
@@ -12,16 +12,16 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/markdown-remark": "^7.2.1",
|
||||
"@astrojs/mdx": "^7.0.2",
|
||||
"@astrojs/mdx": "^7.0.3",
|
||||
"@astrojs/react": "^6.0.1",
|
||||
"@orama/orama": "^3.1.18",
|
||||
"astro": "^7.0.7",
|
||||
"astro": "^7.0.9",
|
||||
"fumadocs-core": "workspace:*",
|
||||
"fumadocs-ui": "workspace:@fumadocs/base-ui@*",
|
||||
"react": "^19.2.7",
|
||||
"react-dom": "^19.2.7",
|
||||
"sharp": "^0.35.3",
|
||||
"takumi-js": "^2.1.1"
|
||||
"takumi-js": "^2.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tailwindcss/vite": "^4.3.2",
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
"@types/mdx": "^2.0.14",
|
||||
"@types/react": "^19.2.17",
|
||||
"@types/react-dom": "^19.2.3",
|
||||
"postcss": "^8.5.17",
|
||||
"postcss": "^8.5.19",
|
||||
"rimraf": "^6.1.3",
|
||||
"tailwindcss": "^4.3.2",
|
||||
"typescript": "^6.0.3"
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
"@types/node": "^26.1.1",
|
||||
"@types/react": "^19.2.17",
|
||||
"@types/react-dom": "^19.2.3",
|
||||
"postcss": "^8.5.17",
|
||||
"postcss": "^8.5.19",
|
||||
"tailwindcss": "^4.3.2",
|
||||
"typescript": "^6.0.3"
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
"@types/node": "26.1.1",
|
||||
"@types/react": "^19.2.17",
|
||||
"@types/react-dom": "^19.2.3",
|
||||
"postcss": "^8.5.17",
|
||||
"postcss": "^8.5.19",
|
||||
"tailwindcss": "^4.3.2",
|
||||
"typescript": "^6.0.3"
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
"@types/node": "^26.1.1",
|
||||
"@types/react": "^19.2.17",
|
||||
"@types/react-dom": "^19.2.3",
|
||||
"postcss": "^8.5.17",
|
||||
"postcss": "^8.5.19",
|
||||
"tailwindcss": "^4.3.2",
|
||||
"typescript": "^6.0.3"
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
"@types/mdx": "^2.0.14",
|
||||
"@types/react": "^19.2.17",
|
||||
"@types/react-dom": "^19.2.3",
|
||||
"postcss": "^8.5.17",
|
||||
"postcss": "^8.5.19",
|
||||
"tailwindcss": "^4.3.2",
|
||||
"typescript": "^6.0.3"
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
"@types/mdx": "^2.0.14",
|
||||
"@types/react": "^19.2.17",
|
||||
"@types/react-dom": "^19.2.3",
|
||||
"postcss": "^8.5.17",
|
||||
"postcss": "^8.5.19",
|
||||
"tailwindcss": "^4.3.2",
|
||||
"typescript": "^6.0.3"
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
"@types/node": "^26.1.1",
|
||||
"@types/react": "^19.2.17",
|
||||
"@types/react-dom": "^19.2.3",
|
||||
"postcss": "^8.5.17",
|
||||
"postcss": "^8.5.19",
|
||||
"serve": "^14.2.6",
|
||||
"tailwindcss": "^4.3.2",
|
||||
"typescript": "^6.0.3"
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
"@types/node": "^26.1.1",
|
||||
"@types/react": "^19.2.17",
|
||||
"@types/react-dom": "^19.2.3",
|
||||
"postcss": "^8.5.17",
|
||||
"postcss": "^8.5.19",
|
||||
"tailwindcss": "^4.3.2",
|
||||
"typescript": "^6.0.3"
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
"@types/mdx": "^2.0.14",
|
||||
"@types/react": "^19.2.17",
|
||||
"@types/react-dom": "^19.2.3",
|
||||
"postcss": "^8.5.17",
|
||||
"postcss": "^8.5.19",
|
||||
"tailwindcss": "^4.3.2",
|
||||
"typescript": "^6.0.3"
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
"@types/mdx": "^2.0.14",
|
||||
"@types/react": "^19.2.17",
|
||||
"@types/react-dom": "^19.2.3",
|
||||
"postcss": "^8.5.17",
|
||||
"postcss": "^8.5.19",
|
||||
"rimraf": "^6.1.3",
|
||||
"tailwindcss": "^4.3.2",
|
||||
"typescript": "^6.0.3"
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
"@types/node": "26.1.1",
|
||||
"@types/react": "^19.2.17",
|
||||
"@types/react-dom": "^19.2.3",
|
||||
"postcss": "^8.5.17",
|
||||
"postcss": "^8.5.19",
|
||||
"tailwindcss": "^4.3.2",
|
||||
"typescript": "^6.0.3"
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
"fumadocs-core": "workspace:*",
|
||||
"fumadocs-mdx": "workspace:*",
|
||||
"fumadocs-ui": "workspace:@fumadocs/base-ui@*",
|
||||
"isbot": "^5.2.0",
|
||||
"isbot": "^5.2.1",
|
||||
"react": "^19.2.7",
|
||||
"react-dom": "^19.2.7",
|
||||
"react-router": "^8.2.0"
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
"fumadocs-core": "workspace:*",
|
||||
"fumadocs-mdx": "workspace:*",
|
||||
"fumadocs-ui": "workspace:@fumadocs/base-ui@*",
|
||||
"isbot": "^5.2.0",
|
||||
"isbot": "^5.2.1",
|
||||
"react": "^19.2.7",
|
||||
"react-dom": "^19.2.7",
|
||||
"react-router": "^8.2.0"
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
"fumadocs-core": "workspace:*",
|
||||
"fumadocs-mdx": "workspace:*",
|
||||
"fumadocs-ui": "workspace:@fumadocs/base-ui@*",
|
||||
"isbot": "^5.2.0",
|
||||
"isbot": "^5.2.1",
|
||||
"react": "^19.2.7",
|
||||
"react-dom": "^19.2.7",
|
||||
"react-router": "^8.2.0"
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
"fumadocs-core": "workspace:*",
|
||||
"fumadocs-mdx": "workspace:*",
|
||||
"fumadocs-ui": "workspace:@fumadocs/base-ui@*",
|
||||
"isbot": "^5.2.0",
|
||||
"isbot": "^5.2.1",
|
||||
"lucide-react": "^1.24.0",
|
||||
"react": "^19.2.7",
|
||||
"react-dom": "^19.2.7",
|
||||
|
||||
@@ -15,12 +15,12 @@
|
||||
"fumadocs-core": "workspace:*",
|
||||
"fumadocs-mdx": "workspace:*",
|
||||
"fumadocs-ui": "workspace:@fumadocs/base-ui@*",
|
||||
"isbot": "^5.2.0",
|
||||
"isbot": "^5.2.1",
|
||||
"lucide-react": "^1.24.0",
|
||||
"react": "^19.2.7",
|
||||
"react-dom": "^19.2.7",
|
||||
"react-router": "^8.2.0",
|
||||
"takumi-js": "^2.1.1"
|
||||
"takumi-js": "^2.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@react-router/dev": "^8.2.0",
|
||||
|
||||
@@ -12,9 +12,9 @@
|
||||
"dependencies": {
|
||||
"@fumadocs/language": "workspace:*",
|
||||
"@orama/tokenizers": "^3.1.18",
|
||||
"@tanstack/react-router": "1.170.17",
|
||||
"@tanstack/react-router": "1.170.18",
|
||||
"@tanstack/react-router-devtools": "1.167.0",
|
||||
"@tanstack/react-start": "1.168.27",
|
||||
"@tanstack/react-start": "1.168.28",
|
||||
"fumadocs-core": "workspace:*",
|
||||
"fumadocs-mdx": "workspace:*",
|
||||
"fumadocs-ui": "workspace:@fumadocs/base-ui@*",
|
||||
|
||||
@@ -12,9 +12,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@fumadocs/local-md": "workspace:*",
|
||||
"@tanstack/react-router": "1.170.17",
|
||||
"@tanstack/react-router": "1.170.18",
|
||||
"@tanstack/react-router-devtools": "1.167.0",
|
||||
"@tanstack/react-start": "1.168.27",
|
||||
"@tanstack/react-start": "1.168.28",
|
||||
"cnfast": "^0.0.8",
|
||||
"fumadocs-core": "workspace:*",
|
||||
"fumadocs-ui": "workspace:@fumadocs/base-ui@*",
|
||||
|
||||
@@ -11,9 +11,9 @@
|
||||
"types:check": "fumadocs-mdx && tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tanstack/react-router": "1.170.17",
|
||||
"@tanstack/react-router": "1.170.18",
|
||||
"@tanstack/react-router-devtools": "1.167.0",
|
||||
"@tanstack/react-start": "1.168.27",
|
||||
"@tanstack/react-start": "1.168.28",
|
||||
"fumadocs-core": "workspace:*",
|
||||
"fumadocs-mdx": "workspace:*",
|
||||
"fumadocs-ui": "workspace:@fumadocs/base-ui@*",
|
||||
|
||||
@@ -11,9 +11,9 @@
|
||||
"types:check": "fumadocs-mdx && tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tanstack/react-router": "1.170.17",
|
||||
"@tanstack/react-router": "1.170.18",
|
||||
"@tanstack/react-router-devtools": "1.167.0",
|
||||
"@tanstack/react-start": "1.168.27",
|
||||
"@tanstack/react-start": "1.168.28",
|
||||
"cnfast": "^0.0.8",
|
||||
"fumadocs-core": "workspace:*",
|
||||
"fumadocs-mdx": "workspace:*",
|
||||
|
||||
@@ -12,10 +12,10 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@orama/orama": "^3.1.18",
|
||||
"@tanstack/react-router": "1.170.17",
|
||||
"@tanstack/react-router": "1.170.18",
|
||||
"@tanstack/react-router-devtools": "1.167.0",
|
||||
"@tanstack/react-start": "1.168.27",
|
||||
"@tanstack/start-static-server-functions": "1.167.18",
|
||||
"@tanstack/react-start": "1.168.28",
|
||||
"@tanstack/start-static-server-functions": "1.167.19",
|
||||
"cnfast": "^0.0.8",
|
||||
"fumadocs-core": "workspace:*",
|
||||
"fumadocs-mdx": "workspace:*",
|
||||
|
||||
@@ -11,9 +11,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@fumadocs/story": "workspace:*",
|
||||
"@tanstack/react-router": "1.170.17",
|
||||
"@tanstack/react-router": "1.170.18",
|
||||
"@tanstack/react-router-devtools": "1.167.0",
|
||||
"@tanstack/react-start": "1.168.27",
|
||||
"@tanstack/react-start": "1.168.28",
|
||||
"fumadocs-core": "workspace:*",
|
||||
"fumadocs-mdx": "workspace:*",
|
||||
"fumadocs-ui": "workspace:@fumadocs/base-ui@*",
|
||||
|
||||
@@ -11,9 +11,9 @@
|
||||
"types:check": "fumadocs-mdx && tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tanstack/react-router": "1.170.17",
|
||||
"@tanstack/react-router": "1.170.18",
|
||||
"@tanstack/react-router-devtools": "1.167.0",
|
||||
"@tanstack/react-start": "1.168.27",
|
||||
"@tanstack/react-start": "1.168.28",
|
||||
"cnfast": "^0.0.8",
|
||||
"fumadocs-core": "workspace:*",
|
||||
"fumadocs-mdx": "workspace:*",
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
"react": "^19.2.7",
|
||||
"react-dom": "^19.2.7",
|
||||
"react-server-dom-webpack": "^19.2.7",
|
||||
"takumi-js": "^2.1.1",
|
||||
"takumi-js": "^2.2.0",
|
||||
"waku": "1.0.0-beta.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
+3
-3
@@ -17,12 +17,12 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"concurrently": "^10.0.3",
|
||||
"oxfmt": "^0.58.0",
|
||||
"oxlint": "^1.73.0",
|
||||
"oxfmt": "^0.59.0",
|
||||
"oxlint": "^1.74.0",
|
||||
"rimraf": "^6.1.3",
|
||||
"tegami": "^1.2.5",
|
||||
"tinyexec": "^1.2.4",
|
||||
"turbo": "2.10.4",
|
||||
"turbo": "2.10.5",
|
||||
"typescript": "^6.0.3",
|
||||
"vitest": "^4.1.10"
|
||||
},
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
"fumadocs-ui": "workspace:@fumadocs/base-ui@*",
|
||||
"json-schema-typed": "^8.0.2",
|
||||
"tsconfig": "workspace:*",
|
||||
"tsdown": "0.22.5"
|
||||
"tsdown": "0.22.8"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@types/react": "*",
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
"json-schema-typed": "^8.0.2",
|
||||
"tailwindcss": "^4.3.2",
|
||||
"tsconfig": "workspace:*",
|
||||
"tsdown": "0.22.5"
|
||||
"tsdown": "0.22.8"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@types/react": "*",
|
||||
|
||||
@@ -143,7 +143,7 @@
|
||||
"@fumadocs/cli": "workspace:*",
|
||||
"@tailwindcss/cli": "^4.3.2",
|
||||
"@tailwindcss/oxide": "^4.3.2",
|
||||
"@tsdown/css": "^0.22.5",
|
||||
"@tsdown/css": "^0.22.8",
|
||||
"@types/hast": "^3.0.5",
|
||||
"@types/mdx": "^2.0.14",
|
||||
"@types/node": "^26.1.1",
|
||||
@@ -154,7 +154,7 @@
|
||||
"react-medium-image-zoom": "^5.4.8",
|
||||
"tailwindcss": "^4.3.2",
|
||||
"tsconfig": "workspace:*",
|
||||
"tsdown": "0.22.5",
|
||||
"tsdown": "0.22.8",
|
||||
"unified": "^11.0.5"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
"fumadocs-ui": "workspace:@fumadocs/base-ui@*",
|
||||
"react": "^19.2.7",
|
||||
"tsconfig": "workspace:*",
|
||||
"tsdown": "0.22.5",
|
||||
"tsdown": "0.22.8",
|
||||
"typescript": "^6.0.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -43,6 +43,6 @@
|
||||
"devDependencies": {
|
||||
"@types/node": "26.1.1",
|
||||
"tsconfig": "workspace:*",
|
||||
"tsdown": "0.22.5"
|
||||
"tsdown": "0.22.8"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
"@types/node": "26.1.1",
|
||||
"fumadocs-core": "workspace:*",
|
||||
"tsconfig": "workspace:*",
|
||||
"tsdown": "0.22.5"
|
||||
"tsdown": "0.22.8"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@content-collections/core": "0.x.x",
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
"fumadocs-core": "workspace:*",
|
||||
"react-dom": "^19.2.7",
|
||||
"tsconfig": "workspace:*",
|
||||
"tsdown": "0.22.5"
|
||||
"tsdown": "0.22.8"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"fuma-content": "^1.2.3",
|
||||
|
||||
@@ -114,6 +114,7 @@
|
||||
"hast-util-to-jsx-runtime": "^2.3.6",
|
||||
"mdast-util-mdx": "^3.0.0",
|
||||
"mdast-util-to-markdown": "^2.1.2",
|
||||
"npm-to-yarn": "3.0.1",
|
||||
"remark": "^15.0.1",
|
||||
"remark-gfm": "^4.0.1",
|
||||
"remark-rehype": "^11.1.2",
|
||||
@@ -132,7 +133,7 @@
|
||||
"@orama/core": "^1.2.19",
|
||||
"@oramacloud/client": "^2.1.4",
|
||||
"@shikijs/transformers": "^4.3.1",
|
||||
"@tanstack/react-router": "1.170.17",
|
||||
"@tanstack/react-router": "1.170.18",
|
||||
"@types/estree-jsx": "^1.0.5",
|
||||
"@types/hast": "^3.0.5",
|
||||
"@types/mdast": "^4.0.4",
|
||||
@@ -146,14 +147,13 @@
|
||||
"lucide-react": "^1.24.0",
|
||||
"negotiator": "^1.0.0",
|
||||
"next": "16.2.10",
|
||||
"npm-to-yarn": "^3.0.1",
|
||||
"path-to-regexp": "^8.4.2",
|
||||
"react-router": "^8.2.0",
|
||||
"remark-directive": "^4.0.0",
|
||||
"remark-mdx": "^3.1.1",
|
||||
"remove-markdown": "^0.6.4",
|
||||
"tsconfig": "workspace:*",
|
||||
"tsdown": "0.22.5",
|
||||
"tsdown": "0.22.8",
|
||||
"typescript": "^6.0.3",
|
||||
"waku": "1.0.0-beta.6",
|
||||
"zod": "4.4.3"
|
||||
@@ -240,7 +240,6 @@
|
||||
"@shikijs/transformers": "4.3.1",
|
||||
"image-size": "2.0.2",
|
||||
"negotiator": "1.0.0",
|
||||
"npm-to-yarn": "3.0.1",
|
||||
"path-to-regexp": "8.4.2",
|
||||
"remove-markdown": "0.6.4"
|
||||
}
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
"private": true,
|
||||
"description": "Used to track dependency versions in create-fumadocs-app",
|
||||
"dependencies": {
|
||||
"@biomejs/biome": "^2.5.3",
|
||||
"@biomejs/biome": "^2.5.4",
|
||||
"@orama/core": "^1.2.19",
|
||||
"fumadocs-core": "workspace:*",
|
||||
"fumadocs-mdx": "workspace:*",
|
||||
"fumadocs-ui": "workspace:*",
|
||||
"oxlint": "^1.73.0",
|
||||
"oxlint": "^1.74.0",
|
||||
"react": "^19.2.7",
|
||||
"takumi-js": "^2.1.1"
|
||||
"takumi-js": "^2.2.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
"@types/node": "26.1.1",
|
||||
"tinyglobby": "^0.2.17",
|
||||
"tsconfig": "workspace:*",
|
||||
"tsdown": "0.22.5",
|
||||
"tsdown": "0.22.8",
|
||||
"typescript": "^6.0.3"
|
||||
},
|
||||
"engines": {
|
||||
|
||||
@@ -42,10 +42,11 @@
|
||||
"estree-util-to-js": "^2.0.0",
|
||||
"estree-util-value-to-estree": "^3.5.0",
|
||||
"npm-to-yarn": "^3.0.1",
|
||||
"oxc-transform": "^0.139.0",
|
||||
"unified": "^11.0.5",
|
||||
"unist-util-visit": "^5.1.0",
|
||||
"vfile": "^6.0.3",
|
||||
"yuku-codegen": "^0.6.4",
|
||||
"yuku-parser": "^0.6.4",
|
||||
"zod": "^4.4.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
@@ -58,7 +59,7 @@
|
||||
"mdast-util-mdx": "^3.0.0",
|
||||
"remark": "^15.0.1",
|
||||
"tsconfig": "workspace:*",
|
||||
"tsdown": "0.22.5",
|
||||
"tsdown": "0.22.8",
|
||||
"typescript": "^6.0.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -45,8 +45,11 @@ export function remarkTypeScriptToJavaScript({
|
||||
defaultValue = 'ts',
|
||||
disableTrigger = false,
|
||||
}: TypeScriptToJavaScriptOptions = {}): Transformer<Root> {
|
||||
return async (tree, file) => {
|
||||
const oxc = await import('oxc-transform');
|
||||
return async (tree) => {
|
||||
const [{ parse }, { strip }] = await Promise.all([
|
||||
import('yuku-parser'),
|
||||
import('yuku-codegen'),
|
||||
]);
|
||||
const tasks: Promise<void>[] = [];
|
||||
|
||||
visit(tree, 'code', (node) => {
|
||||
@@ -58,10 +61,8 @@ export function remarkTypeScriptToJavaScript({
|
||||
|
||||
tasks.push(
|
||||
(async () => {
|
||||
const result = await oxc.transform(`${file.path ?? 'test'}.${lang}`, node.value, {
|
||||
sourcemap: false,
|
||||
jsx: 'preserve',
|
||||
});
|
||||
const { program } = parse(node.value, { lang });
|
||||
const result = strip(program);
|
||||
|
||||
const replacement = generateCodeBlockTabs({
|
||||
persist,
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ function _createMdxContent(props) {
|
||||
if (!CodeBlockTabs) _missingMdxReference("CodeBlockTabs", true);
|
||||
if (!CodeBlockTabsList) _missingMdxReference("CodeBlockTabsList", true);
|
||||
if (!CodeBlockTabsTrigger) _missingMdxReference("CodeBlockTabsTrigger", true);
|
||||
return <CodeBlockTabs defaultValue="ts"><CodeBlockTabsList><CodeBlockTabsTrigger value="ts">{"TypeScript"}</CodeBlockTabsTrigger><CodeBlockTabsTrigger value="js">{"JavaScript"}</CodeBlockTabsTrigger></CodeBlockTabsList><CodeBlockTab value="ts"><_components.pre><_components.code className="language-tsx">{"import { ReactNode } from 'react';\n\nexport default function Layout({ children }: { children: ReactNode }) {\n const v: string = 'hello world' as any;\n\n return (\n <div>\n {children} {v}\n </div>\n );\n}\n"}</_components.code></_components.pre></CodeBlockTab><CodeBlockTab value="js"><_components.pre><_components.code className="language-jsx">{"export default function Layout({ children }) {\n\tconst v = \"hello world\";\n\treturn <div>\n {children} {v}\n </div>;\n}\n\n"}</_components.code></_components.pre></CodeBlockTab></CodeBlockTabs>;
|
||||
return <CodeBlockTabs defaultValue="ts"><CodeBlockTabsList><CodeBlockTabsTrigger value="ts">{"TypeScript"}</CodeBlockTabsTrigger><CodeBlockTabsTrigger value="js">{"JavaScript"}</CodeBlockTabsTrigger></CodeBlockTabsList><CodeBlockTab value="ts"><_components.pre><_components.code className="language-tsx">{"import { ReactNode } from 'react';\n\nexport default function Layout({ children }: { children: ReactNode }) {\n const v: string = 'hello world' as any;\n\n return (\n <div>\n {children} {v}\n </div>\n );\n}\n"}</_components.code></_components.pre></CodeBlockTab><CodeBlockTab value="js"><_components.pre><_components.code className="language-jsx">{"import { ReactNode } from 'react';\nexport default function Layout({ children }) {\n const v = 'hello world';\n return (<div>\n {children} {v}\n </div>);\n}\n"}</_components.code></_components.pre></CodeBlockTab></CodeBlockTabs>;
|
||||
}
|
||||
export default function MDXContent(props = {}) {
|
||||
const {wrapper: MDXLayout} = props.components || ({});
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
"fumadocs-core": "workspace:*",
|
||||
"rimraf": "^6.0.0",
|
||||
"tsconfig": "workspace:*",
|
||||
"tsdown": "0.22.5",
|
||||
"tsdown": "0.22.8",
|
||||
"typescript": "^6.0.3",
|
||||
"vfile": "^6.0.3"
|
||||
},
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
"fumadocs-openapi": "workspace:*",
|
||||
"fumadocs-ui": "workspace:@fumadocs/base-ui@*",
|
||||
"tsconfig": "workspace:*",
|
||||
"tsdown": "0.22.5",
|
||||
"tsdown": "0.22.8",
|
||||
"typescript": "^6.0.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
"remark-rehype": "^11.1.2",
|
||||
"tinyglobby": "^0.2.17",
|
||||
"vfile": "^6.0.3",
|
||||
"ws": "^8.21.0"
|
||||
"ws": "^8.21.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/estree": "^1.0.9",
|
||||
@@ -68,7 +68,7 @@
|
||||
"react": "^19.2.7",
|
||||
"react-dom": "^19.2.7",
|
||||
"tsconfig": "workspace:*",
|
||||
"tsdown": "0.22.5",
|
||||
"tsdown": "0.22.8",
|
||||
"unified": "^11.0.5",
|
||||
"vite": "^8.1.4"
|
||||
},
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
"react": "^19.2.7",
|
||||
"tinyglobby": "^0.2.17",
|
||||
"tsconfig": "workspace:*",
|
||||
"tsdown": "0.22.5"
|
||||
"tsdown": "0.22.8"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@types/mdx": "*",
|
||||
|
||||
@@ -93,10 +93,10 @@
|
||||
"remark": "^15.0.1",
|
||||
"remark-directive": "^4.0.0",
|
||||
"remark-mdx": "^3.1.1",
|
||||
"rolldown": "^1.1.5",
|
||||
"rolldown": "^1.2.0",
|
||||
"satteri": "^0.9.5",
|
||||
"tsconfig": "workspace:*",
|
||||
"tsdown": "0.22.5",
|
||||
"tsdown": "0.22.8",
|
||||
"vite": "^8.1.4",
|
||||
"webpack": "^5.108.4"
|
||||
},
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
"fumadocs-core": "workspace:*",
|
||||
"mdast-util-mdx": "^3.0.0",
|
||||
"tsconfig": "workspace:*",
|
||||
"tsdown": "0.22.5",
|
||||
"tsdown": "0.22.8",
|
||||
"typescript": "^6.0.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
"yaml": "^2.9.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@scalar/api-client-react": "^2.0.32",
|
||||
"@scalar/api-client-react": "^2.0.33",
|
||||
"@scalar/openapi-upgrader": "^0.2.9",
|
||||
"@tailwindcss/oxide": "^4.3.2",
|
||||
"@types/node": "26.1.1",
|
||||
@@ -74,7 +74,7 @@
|
||||
"fumadocs-ui": "workspace:@fumadocs/base-ui@*",
|
||||
"json-schema-typed": "^8.0.2",
|
||||
"tsconfig": "workspace:*",
|
||||
"tsdown": "0.22.5",
|
||||
"tsdown": "0.22.8",
|
||||
"xml-js": "^1.6.11"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -38,9 +38,9 @@
|
||||
"zod": "^4.4.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@ai-sdk/react": "^4.0.23",
|
||||
"@ai-sdk/react": "^4.0.30",
|
||||
"@fumadocs/vite": "workspace:*",
|
||||
"@hono/node-server": "^2.0.8",
|
||||
"@hono/node-server": "^2.0.9",
|
||||
"@openrouter/ai-sdk-provider": "^3.0.0",
|
||||
"@tailwindcss/vite": "^4.3.2",
|
||||
"@types/hast": "^3.0.5",
|
||||
@@ -52,7 +52,7 @@
|
||||
"@types/react-dom": "^19.2.3",
|
||||
"@types/unist": "^3.0.3",
|
||||
"@types/ws": "^8.18.1",
|
||||
"ai": "^7.0.22",
|
||||
"ai": "^7.0.28",
|
||||
"beautiful-mermaid": "^1.1.3",
|
||||
"chokidar": "^5.0.0",
|
||||
"class-variance-authority": "^0.7.1",
|
||||
@@ -61,7 +61,7 @@
|
||||
"fumadocs-core": "workspace:*",
|
||||
"fumadocs-ui": "workspace:@fumadocs/base-ui@*",
|
||||
"hast-util-to-jsx-runtime": "^2.3.6",
|
||||
"hono": "^4.12.29",
|
||||
"hono": "^4.12.30",
|
||||
"ignore": "^7.0.6",
|
||||
"katex": "0.17.0",
|
||||
"lucide-react": "^1.24.0",
|
||||
@@ -74,9 +74,9 @@
|
||||
"remark-math": "^6.0.0",
|
||||
"remark-rehype": "^11.1.2",
|
||||
"tailwindcss": "^4.3.2",
|
||||
"takumi-js": "^2.1.1",
|
||||
"takumi-js": "^2.2.0",
|
||||
"tinyglobby": "^0.2.17",
|
||||
"tsdown": "0.22.5",
|
||||
"tsdown": "0.22.8",
|
||||
"typescript": "^6.0.3",
|
||||
"unified": "^11.0.5",
|
||||
"unist-util-visit": "^5.1.0",
|
||||
@@ -84,7 +84,7 @@
|
||||
"vite": "^8.1.4",
|
||||
"vitefu": "^1.1.3",
|
||||
"waku": "1.0.0-beta.6",
|
||||
"ws": "^8.21.0"
|
||||
"ws": "^8.21.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"fumadocs-ui": "*"
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
"fumadocs-core": "workspace:*",
|
||||
"fumadocs-ui": "workspace:@fumadocs/base-ui@*",
|
||||
"tsconfig": "workspace:*",
|
||||
"tsdown": "0.22.5"
|
||||
"tsdown": "0.22.8"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@types/react": "*",
|
||||
|
||||
@@ -160,7 +160,7 @@
|
||||
"@fumadocs/cli": "workspace:*",
|
||||
"@tailwindcss/cli": "^4.3.2",
|
||||
"@tailwindcss/oxide": "^4.3.2",
|
||||
"@tsdown/css": "^0.22.5",
|
||||
"@tsdown/css": "^0.22.8",
|
||||
"@types/hast": "^3.0.5",
|
||||
"@types/mdx": "^2.0.14",
|
||||
"@types/node": "^26.1.1",
|
||||
@@ -171,7 +171,7 @@
|
||||
"react-medium-image-zoom": "^5.4.8",
|
||||
"tailwindcss": "^4.3.2",
|
||||
"tsconfig": "workspace:*",
|
||||
"tsdown": "0.22.5",
|
||||
"tsdown": "0.22.8",
|
||||
"unified": "^11.0.5"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -33,18 +33,18 @@
|
||||
"@portabletext/react": "^6.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sanity/client": "^7.23.0",
|
||||
"@sanity/types": "^6.4.0",
|
||||
"@sanity/client": "^7.23.2",
|
||||
"@sanity/types": "^6.5.0",
|
||||
"@types/node": "26.1.1",
|
||||
"@types/react": "^19.2.17",
|
||||
"fuma-cli": "^0.1.1",
|
||||
"fumadocs-core": "workspace:*",
|
||||
"fumadocs-ui": "workspace:@fumadocs/base-ui@*",
|
||||
"next-sanity": "^13.1.1",
|
||||
"next-sanity": "^13.1.3",
|
||||
"react": "^19.2.7",
|
||||
"sanity": "^6.4.0",
|
||||
"sanity": "^6.5.0",
|
||||
"tsconfig": "workspace:*",
|
||||
"tsdown": "0.22.5",
|
||||
"tsdown": "0.22.8",
|
||||
"typescript": "^6.0.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -59,8 +59,9 @@
|
||||
"image-size": "^2.0.2",
|
||||
"mdast-util-gfm": "^3.1.0",
|
||||
"npm-to-yarn": "^3.0.1",
|
||||
"oxc-transform": "^0.139.0",
|
||||
"satteri": "^0.9.5"
|
||||
"satteri": "^0.9.5",
|
||||
"yuku-codegen": "^0.6.4",
|
||||
"yuku-parser": "^0.6.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/estree": "^1.0.9",
|
||||
@@ -71,7 +72,7 @@
|
||||
"mdast-util-mdx": "^3.0.0",
|
||||
"shiki": "^4.3.1",
|
||||
"tsconfig": "workspace:*",
|
||||
"tsdown": "0.22.5",
|
||||
"tsdown": "0.22.8",
|
||||
"typescript": "^6.0.3",
|
||||
"vitest": "^4.1.10"
|
||||
},
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { defineMdastPlugin } from 'satteri';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import {
|
||||
generateCodeBlockTabs,
|
||||
parseCodeBlockAttributes,
|
||||
@@ -42,12 +41,12 @@ export function remarkTs2js({
|
||||
const meta = parseCodeBlockAttributes(node.meta ?? '', ['ts2js']);
|
||||
if (!disableTrigger && !('ts2js' in meta.attributes)) return;
|
||||
|
||||
const filePath = ctx.fileURL ? fileURLToPath(ctx.fileURL) : 'test';
|
||||
const oxc = await import('oxc-transform');
|
||||
const result = await oxc.transform(`${filePath}.${lang}`, node.value, {
|
||||
sourcemap: false,
|
||||
jsx: 'preserve',
|
||||
});
|
||||
const [{ parse }, { strip }] = await Promise.all([
|
||||
import('yuku-parser'),
|
||||
import('yuku-codegen'),
|
||||
]);
|
||||
const { program } = parse(node.value, { lang });
|
||||
const result = strip(program);
|
||||
|
||||
ctx.replaceNode(
|
||||
node,
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
"shadcn": "^4.13.0",
|
||||
"tailwindcss": "^4.3.2",
|
||||
"tsconfig": "workspace:*",
|
||||
"tsdown": "0.22.5"
|
||||
"tsdown": "0.22.8"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@types/react": "*",
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
"@types/node": "26.1.1",
|
||||
"@types/react": "^19.2.17",
|
||||
"tsconfig": "workspace:*",
|
||||
"tsdown": "0.22.5"
|
||||
"tsdown": "0.22.8"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@types/react": "*",
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
"react-error-boundary": "^6.1.2",
|
||||
"tailwindcss": "^4.3.2",
|
||||
"tsconfig": "workspace:*",
|
||||
"tsdown": "0.22.5",
|
||||
"tsdown": "0.22.8",
|
||||
"vite": "^8.1.4",
|
||||
"webpack": "^5.108.4"
|
||||
},
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
"postcss-selector-parser": "^7.1.4",
|
||||
"tailwindcss": "^4.3.2",
|
||||
"tsconfig": "workspace:*",
|
||||
"tsdown": "0.22.5"
|
||||
"tsdown": "0.22.8"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"tailwindcss": "^4.0.0"
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"fumadocs-ui": "workspace:@fumadocs/base-ui@*",
|
||||
"shiki": "4.3.1",
|
||||
"tsconfig": "workspace:*",
|
||||
"tsdown": "0.22.5",
|
||||
"tsdown": "0.22.8",
|
||||
"typescript": "^6.0.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
"fumadocs-ui": "workspace:@fumadocs/base-ui@*",
|
||||
"mdast-util-mdx": "^3.0.0",
|
||||
"tsconfig": "workspace:*",
|
||||
"tsdown": "0.22.5",
|
||||
"tsdown": "0.22.8",
|
||||
"typescript": "^6.0.3",
|
||||
"vfile": "^6.0.3"
|
||||
},
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
"devDependencies": {
|
||||
"@types/node": "^26.1.1",
|
||||
"tsconfig": "workspace:*",
|
||||
"tsdown": "0.22.5",
|
||||
"tsdown": "0.22.8",
|
||||
"typescript": "^6.0.3",
|
||||
"vite": "^8.1.4"
|
||||
}
|
||||
|
||||
Generated
+1626
-1974
File diff suppressed because it is too large
Load Diff
@@ -25,6 +25,30 @@ minimumReleaseAgeExclude:
|
||||
- '@yuku-analyzer/[email protected]'
|
||||
- '@yuku-analyzer/[email protected]'
|
||||
- [email protected]
|
||||
- '@yuku-codegen/[email protected]'
|
||||
- '@yuku-codegen/[email protected]'
|
||||
- '@yuku-codegen/[email protected]'
|
||||
- '@yuku-codegen/[email protected]'
|
||||
- '@yuku-codegen/[email protected]'
|
||||
- '@yuku-codegen/[email protected]'
|
||||
- '@yuku-codegen/[email protected]'
|
||||
- '@yuku-codegen/[email protected]'
|
||||
- '@yuku-codegen/[email protected]'
|
||||
- '@yuku-codegen/[email protected]'
|
||||
- '@yuku-codegen/[email protected]'
|
||||
- '@yuku-parser/[email protected]'
|
||||
- '@yuku-parser/[email protected]'
|
||||
- '@yuku-parser/[email protected]'
|
||||
- '@yuku-parser/[email protected]'
|
||||
- '@yuku-parser/[email protected]'
|
||||
- '@yuku-parser/[email protected]'
|
||||
- '@yuku-parser/[email protected]'
|
||||
- '@yuku-parser/[email protected]'
|
||||
- '@yuku-parser/[email protected]'
|
||||
- '@yuku-parser/[email protected]'
|
||||
- '@yuku-parser/[email protected]'
|
||||
- [email protected]
|
||||
- [email protected]
|
||||
allowBuilds:
|
||||
'@parcel/watcher': false
|
||||
core-js: false
|
||||
|
||||
Reference in New Issue
Block a user