UI: fix broken tsdown CSS logic

This commit is contained in:
Fuma Nama
2026-03-11 17:07:54 +08:00
parent c1c954d1e5
commit 86d3abb8c0
53 changed files with 2066 additions and 1959 deletions
+6
View File
@@ -0,0 +1,6 @@
---
'fumadocs-ui': patch
'@fumadocs/base-ui': patch
---
fix broken tsdown CSS logic
+11 -11
View File
@@ -24,9 +24,9 @@
"@radix-ui/react-hover-card": "^1.1.15",
"@radix-ui/react-presence": "^1.1.5",
"@radix-ui/react-tooltip": "^1.2.8",
"@shikijs/rehype": "^4.0.1",
"@shikijs/transformers": "^4.0.1",
"@takumi-rs/image-response": "^0.70.4",
"@shikijs/rehype": "^4.0.2",
"@shikijs/transformers": "^4.0.2",
"@takumi-rs/image-response": "^0.71.7",
"ai": "^6.0.116",
"class-variance-authority": "^0.7.1",
"d3-force": "^3.0.0",
@@ -42,14 +42,14 @@
"fumadocs-typescript": "workspace:^",
"fumadocs-ui": "workspace:*",
"hast-util-to-jsx-runtime": "^2.3.6",
"katex": "0.16.37",
"katex": "0.16.38",
"lucide-react": "^0.577.0",
"mermaid": "^11.12.3",
"motion": "^12.35.0",
"mermaid": "^11.13.0",
"motion": "^12.35.2",
"next": "16.1.6",
"next-themes": "^0.4.6",
"octokit": "^5.0.5",
"oxc-transform": "^0.116.0",
"oxc-transform": "^0.117.0",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"react-force-graph-2d": "^1.29.1",
@@ -60,7 +60,7 @@
"remark-math": "^6.0.0",
"remark-mdx": "^3.1.1",
"remark-rehype": "^11.1.2",
"shiki": "^4.0.1",
"shiki": "^4.0.2",
"tailwind-merge": "^3.5.0",
"twoslash": "^0.3.6",
"unist-util-visit": "^5.1.0",
@@ -77,18 +77,18 @@
"@types/hast": "^3.0.4",
"@types/mdast": "^4.0.4",
"@types/mdx": "^2.0.13",
"@types/node": "25.3.5",
"@types/node": "25.4.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@types/three": "^0.183.1",
"algoliasearch": "5.49.1",
"algoliasearch": "5.49.2",
"browserslist-config-baseline": "^0.5.0",
"eslint-config-custom": "workspace:*",
"gray-matter": "^4.0.3",
"mcp-handler": "^1.0.7",
"next-validate-link": "^1.6.4",
"postcss": "^8.5.8",
"shadcn": "4.0.0",
"shadcn": "4.0.5",
"tailwindcss": "^4.2.1",
"tailwindcss-animate": "^1.0.7",
"tinyexec": "^1.0.2",
+3 -3
View File
@@ -11,10 +11,10 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/mdx": "^4.3.13",
"@astrojs/react": "^4.4.2",
"@astrojs/mdx": "^5.0.0",
"@astrojs/react": "^5.0.0",
"@orama/orama": "^3.1.18",
"astro": "^5.18.0",
"astro": "^6.0.2",
"fumadocs-core": "workspace:*",
"fumadocs-ui": "workspace:*",
"react": "^19.2.4",
+1 -1
View File
@@ -21,7 +21,7 @@
"devDependencies": {
"@tailwindcss/postcss": "^4.2.1",
"@types/mdx": "^2.0.13",
"@types/node": "^25.3.5",
"@types/node": "^25.4.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"postcss": "^8.5.8",
+2 -2
View File
@@ -15,11 +15,11 @@
"next": "16.1.6",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"shiki": "^4.0.1"
"shiki": "^4.0.2"
},
"devDependencies": {
"@tailwindcss/postcss": "^4.2.1",
"@types/node": "25.3.5",
"@types/node": "25.4.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"postcss": "^8.5.8",
+1 -1
View File
@@ -22,7 +22,7 @@
"devDependencies": {
"@tailwindcss/postcss": "^4.2.1",
"@types/mdx": "^2.0.13",
"@types/node": "^25.3.5",
"@types/node": "^25.4.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"postcss": "^8.5.8",
+1 -1
View File
@@ -21,7 +21,7 @@
"devDependencies": {
"@tailwindcss/postcss": "^4.2.1",
"@types/mdx": "^2.0.13",
"@types/node": "^25.3.5",
"@types/node": "^25.4.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"postcss": "^8.5.8",
+1 -1
View File
@@ -17,7 +17,7 @@
"next": "16.1.6",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"shiki": "^4.0.1"
"shiki": "^4.0.2"
},
"devDependencies": {
"@tailwindcss/postcss": "^4.2.1",
+1 -1
View File
@@ -22,7 +22,7 @@
"devDependencies": {
"@tailwindcss/postcss": "^4.2.1",
"@types/mdx": "^2.0.13",
"@types/node": "25.3.5",
"@types/node": "25.4.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"postcss": "^8.5.8",
+2 -2
View File
@@ -15,7 +15,7 @@
"fumadocs-core": "workspace:*",
"fumadocs-mdx": "workspace:*",
"fumadocs-ui": "workspace:*",
"isbot": "^5.1.35",
"isbot": "^5.1.36",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"react-router": "^7.13.1"
@@ -24,7 +24,7 @@
"@react-router/dev": "^7.13.1",
"@tailwindcss/vite": "^4.2.1",
"@types/mdx": "^2.0.13",
"@types/node": "^25.3.5",
"@types/node": "^25.4.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"react-router-devtools": "^6.2.0",
+2 -2
View File
@@ -14,7 +14,7 @@
"fumadocs-core": "workspace:*",
"fumadocs-mdx": "workspace:*",
"fumadocs-ui": "workspace:*",
"isbot": "^5.1.35",
"isbot": "^5.1.36",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"react-router": "^7.13.1"
@@ -23,7 +23,7 @@
"@react-router/dev": "^7.13.1",
"@tailwindcss/vite": "^4.2.1",
"@types/mdx": "^2.0.13",
"@types/node": "^25.3.5",
"@types/node": "^25.4.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"react-router-devtools": "^6.2.0",
+2 -2
View File
@@ -14,7 +14,7 @@
"fumadocs-core": "workspace:*",
"fumadocs-mdx": "workspace:*",
"fumadocs-ui": "workspace:*",
"isbot": "^5.1.35",
"isbot": "^5.1.36",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"react-router": "^7.13.1"
@@ -23,7 +23,7 @@
"@react-router/dev": "^7.13.1",
"@tailwindcss/vite": "^4.2.1",
"@types/mdx": "^2.0.13",
"@types/node": "^25.3.5",
"@types/node": "^25.4.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-rsc": "^0.5.21",
+2 -2
View File
@@ -14,7 +14,7 @@
"fumadocs-core": "workspace:*",
"fumadocs-mdx": "workspace:*",
"fumadocs-ui": "workspace:*",
"isbot": "^5.1.35",
"isbot": "^5.1.36",
"lucide-react": "^0.577.0",
"react": "^19.2.4",
"react-dom": "^19.2.4",
@@ -25,7 +25,7 @@
"@react-router/dev": "^7.13.1",
"@tailwindcss/vite": "^4.2.1",
"@types/mdx": "^2.0.13",
"@types/node": "^25.3.5",
"@types/node": "^25.4.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"react-router-devtools": "^6.2.0",
+3 -3
View File
@@ -11,11 +11,11 @@
"dependencies": {
"@react-router/node": "^7.13.1",
"@react-router/serve": "^7.13.1",
"@takumi-rs/image-response": "^0.70.4",
"@takumi-rs/image-response": "^0.71.7",
"fumadocs-core": "workspace:*",
"fumadocs-mdx": "workspace:*",
"fumadocs-ui": "workspace:*",
"isbot": "^5.1.35",
"isbot": "^5.1.36",
"lucide-react": "^0.577.0",
"react": "^19.2.4",
"react-dom": "^19.2.4",
@@ -26,7 +26,7 @@
"@react-router/dev": "^7.13.1",
"@tailwindcss/vite": "^4.2.1",
"@types/mdx": "^2.0.13",
"@types/node": "^25.3.5",
"@types/node": "^25.4.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"react-router-devtools": "^6.2.0",
+4 -4
View File
@@ -11,9 +11,9 @@
},
"dependencies": {
"@orama/tokenizers": "^3.1.18",
"@tanstack/react-router": "1.166.2",
"@tanstack/react-router-devtools": "1.166.2",
"@tanstack/react-start": "1.166.2",
"@tanstack/react-router": "1.166.7",
"@tanstack/react-router-devtools": "1.166.7",
"@tanstack/react-start": "1.166.7",
"fumadocs-core": "workspace:*",
"fumadocs-mdx": "workspace:*",
"fumadocs-ui": "workspace:*",
@@ -26,7 +26,7 @@
"devDependencies": {
"@tailwindcss/vite": "^4.2.1",
"@types/mdx": "^2.0.13",
"@types/node": "^25.3.5",
"@types/node": "^25.4.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^5.1.4",
+5 -5
View File
@@ -11,9 +11,9 @@
"types:check": "fumadocs-mdx && tsc --noEmit"
},
"dependencies": {
"@tanstack/react-router": "1.166.2",
"@tanstack/react-router-devtools": "1.166.2",
"@tanstack/react-start": "1.166.2",
"@tanstack/react-router": "1.166.7",
"@tanstack/react-router-devtools": "1.166.7",
"@tanstack/react-start": "1.166.7",
"fumadocs-core": "workspace:*",
"fumadocs-mdx": "workspace:*",
"fumadocs-ui": "workspace:*",
@@ -25,12 +25,12 @@
"devDependencies": {
"@tailwindcss/vite": "^4.2.1",
"@types/mdx": "^2.0.13",
"@types/node": "^25.3.5",
"@types/node": "^25.4.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^5.1.4",
"nitro": "npm:[email protected]",
"srvx": "^0.11.8",
"srvx": "^0.11.9",
"tailwindcss": "^4.2.1",
"typescript": "^5.9.3",
"vite-tsconfig-paths": "^6.1.1"
+6 -6
View File
@@ -12,10 +12,10 @@
},
"dependencies": {
"@orama/orama": "^3.1.18",
"@tanstack/react-router": "1.166.2",
"@tanstack/react-router-devtools": "1.166.2",
"@tanstack/react-start": "1.166.2",
"@tanstack/start-static-server-functions": "1.166.2",
"@tanstack/react-router": "1.166.7",
"@tanstack/react-router-devtools": "1.166.7",
"@tanstack/react-start": "1.166.7",
"@tanstack/start-static-server-functions": "1.166.7",
"fumadocs-core": "workspace:*",
"fumadocs-mdx": "workspace:*",
"fumadocs-ui": "workspace:*",
@@ -28,13 +28,13 @@
"devDependencies": {
"@tailwindcss/vite": "^4.2.1",
"@types/mdx": "^2.0.13",
"@types/node": "^25.3.5",
"@types/node": "^25.4.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^5.1.4",
"nitro": "npm:[email protected]",
"serve": "^14.2.6",
"srvx": "^0.11.8",
"srvx": "^0.11.9",
"tailwindcss": "^4.2.1",
"typescript": "^5.9.3",
"vite-tsconfig-paths": "^6.1.1"
+4 -4
View File
@@ -11,9 +11,9 @@
},
"dependencies": {
"@fumadocs/story": "workspace:*",
"@tanstack/react-router": "1.166.2",
"@tanstack/react-router-devtools": "1.166.2",
"@tanstack/react-start": "1.166.2",
"@tanstack/react-router": "1.166.7",
"@tanstack/react-router-devtools": "1.166.7",
"@tanstack/react-start": "1.166.7",
"fumadocs-core": "workspace:*",
"fumadocs-mdx": "workspace:*",
"fumadocs-ui": "workspace:*",
@@ -27,7 +27,7 @@
"devDependencies": {
"@tailwindcss/vite": "^4.2.1",
"@types/mdx": "^2.0.13",
"@types/node": "^25.3.5",
"@types/node": "^25.4.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^5.1.4",
+5 -5
View File
@@ -11,9 +11,9 @@
"types:check": "fumadocs-mdx && tsc --noEmit"
},
"dependencies": {
"@tanstack/react-router": "1.166.2",
"@tanstack/react-router-devtools": "1.166.2",
"@tanstack/react-start": "1.166.2",
"@tanstack/react-router": "1.166.7",
"@tanstack/react-router-devtools": "1.166.7",
"@tanstack/react-start": "1.166.7",
"fumadocs-core": "workspace:*",
"fumadocs-mdx": "workspace:*",
"fumadocs-ui": "workspace:*",
@@ -26,12 +26,12 @@
"devDependencies": {
"@tailwindcss/vite": "^4.2.1",
"@types/mdx": "^2.0.13",
"@types/node": "^25.3.5",
"@types/node": "^25.4.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^5.1.4",
"nitro": "npm:[email protected]",
"srvx": "^0.11.8",
"srvx": "^0.11.9",
"tailwindcss": "^4.2.1",
"typescript": "^5.9.3",
"vite-tsconfig-paths": "^6.1.1"
+1 -1
View File
@@ -22,7 +22,7 @@
"devDependencies": {
"@tailwindcss/vite": "^4.2.1",
"@types/mdx": "^2.0.13",
"@types/node": "^25.3.5",
"@types/node": "^25.4.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"tailwindcss": "^4.2.1",
+2 -2
View File
@@ -10,7 +10,7 @@
"types:check": "fumadocs-mdx && tsc --noEmit"
},
"dependencies": {
"@takumi-rs/image-response": "^0.70.4",
"@takumi-rs/image-response": "^0.71.7",
"fumadocs-core": "workspace:*",
"fumadocs-mdx": "workspace:*",
"fumadocs-ui": "workspace:*",
@@ -24,7 +24,7 @@
"devDependencies": {
"@tailwindcss/vite": "^4.2.1",
"@types/mdx": "^2.0.13",
"@types/node": "^25.3.5",
"@types/node": "^25.4.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"tailwindcss": "^4 .2.1",
+3 -3
View File
@@ -25,11 +25,11 @@
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "7.0.1",
"eslint-plugin-tailwindcss": "^3.18.2",
"oxfmt": "^0.36.0",
"oxfmt": "^0.38.0",
"rimraf": "^6.1.3",
"turbo": "2.8.14",
"turbo": "2.8.16",
"typescript": "^5.9.3",
"typescript-eslint": "^8.56.1",
"typescript-eslint": "^8.57.0",
"vitest": "^4.0.18"
},
"engines": {
-3
View File
@@ -1,6 +1,3 @@
@import './shiki.css';
@plugin '../../dist/tailwind/typography.js';
:root {
--fd-sidebar-drawer-offset: 100%;
}
+4
View File
@@ -1,4 +1,8 @@
@import './lib/base.css';
@import './lib/shiki.css';
@import './lib/image-zoom.css';
@plugin '../dist/tailwind/typography.js';
/* TODO: remove them on next major */
@import './generated/flux.css';
+5 -5
View File
@@ -104,9 +104,9 @@
"scripts": {
"build": "pnpm build:layout && pnpm build:tailwind",
"build:layout": "tsdown --config-loader unrun",
"build:tailwind": "tailwindcss -i css/style.css -o ./dist/style.css && tailwindcss -i src/components/image-zoom.css -o dist/components/image-zoom.css",
"build:tailwind": "tailwindcss -i css/style.css -o ./dist/style.css",
"clean": "rimraf dist",
"dev": "concurrently \"tsdown --watch --clean false\" \"tailwindcss -i css/style.css -o ./dist/style.css -w\" \"tailwindcss -i src/components/image-zoom.css -o dist/components/image-zoom.css -w\"",
"dev": "concurrently \"tsdown --watch --clean false\" \"tailwindcss -i css/style.css -o ./dist/style.css -w\"",
"lint": "eslint .",
"types:check": "tsc --noEmit"
},
@@ -115,7 +115,7 @@
"@fumadocs/tailwind": "workspace:*",
"class-variance-authority": "^0.7.1",
"lucide-react": "^0.577.0",
"motion": "^12.35.0",
"motion": "^12.35.2",
"next-themes": "^0.4.6",
"react-medium-image-zoom": "^5.4.1",
"react-remove-scroll": "^2.7.2",
@@ -129,14 +129,14 @@
"@tailwindcss/cli": "^4.2.1",
"@types/hast": "^3.0.4",
"@types/mdx": "^2.0.13",
"@types/node": "^25.3.5",
"@types/node": "^25.4.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"eslint-config-custom": "workspace:*",
"fumadocs-core": "workspace:*",
"tailwindcss": "^4.2.1",
"tsconfig": "workspace:*",
"tsdown": "0.21.0",
"tsdown": "0.21.1",
"unified": "^11.0.5"
},
"peerDependencies": {
@@ -3,7 +3,6 @@
import { Image, type ImageProps } from 'fumadocs-core/framework';
import type { ComponentProps } from 'react';
import Zoom, { type UncontrolledProps } from 'react-medium-image-zoom';
import './image-zoom.css';
export type ImageZoomProps = ImageProps & {
/**
+5 -5
View File
@@ -38,7 +38,7 @@
"@clack/prompts": "^1.1.0",
"commander": "^14.0.3",
"magic-string": "^0.30.21",
"oxc-parser": "^0.116.0",
"oxc-parser": "^0.117.0",
"oxc-resolver": "^11.19.1",
"package-manager-detector": "^1.6.0",
"picocolors": "^1.1.1",
@@ -46,11 +46,11 @@
"zod": "^4.3.6"
},
"devDependencies": {
"@oxc-project/types": "^0.116.0",
"@types/node": "25.3.5",
"@oxc-project/types": "^0.117.0",
"@types/node": "25.4.0",
"eslint-config-custom": "workspace:*",
"shadcn": "4.0.0",
"shadcn": "4.0.5",
"tsconfig": "workspace:*",
"tsdown": "0.21.0"
"tsdown": "0.21.1"
}
}
+2 -2
View File
@@ -44,11 +44,11 @@
"devDependencies": {
"@content-collections/core": "^0.14.2",
"@content-collections/mdx": "^0.2.2",
"@types/node": "25.3.5",
"@types/node": "25.4.0",
"eslint-config-custom": "workspace:*",
"fumadocs-core": "workspace:*",
"tsconfig": "workspace:*",
"tsdown": "0.21.0"
"tsdown": "0.21.1"
},
"peerDependencies": {
"@content-collections/core": "0.x.x",
+7 -8
View File
@@ -125,8 +125,8 @@
"dependencies": {
"@formatjs/intl-localematcher": "^0.8.1",
"@orama/orama": "^3.1.18",
"@shikijs/rehype": "^4.0.1",
"@shikijs/transformers": "^4.0.1",
"@shikijs/rehype": "^4.0.2",
"@shikijs/transformers": "^4.0.2",
"estree-util-value-to-estree": "^3.5.0",
"github-slugger": "^2.0.0",
"hast-util-to-estree": "^3.1.3",
@@ -141,7 +141,7 @@
"remark-gfm": "^4.0.1",
"remark-rehype": "^11.1.2",
"scroll-into-view-if-needed": "^3.1.0",
"shiki": "^4.0.1",
"shiki": "^4.0.2",
"tinyglobby": "^0.2.15",
"unified": "^11.0.5",
"unist-util-visit": "^5.1.0",
@@ -152,16 +152,15 @@
"@mixedbread/sdk": "^0.57.0",
"@orama/core": "^1.2.19",
"@oramacloud/client": "^2.1.4",
"@tanstack/react-router": "1.166.2",
"@tanstack/react-router": "1.166.7",
"@types/estree-jsx": "^1.0.5",
"@types/flexsearch": "^0.7.42",
"@types/hast": "^3.0.4",
"@types/mdast": "^4.0.4",
"@types/negotiator": "^0.6.4",
"@types/node": "25.3.5",
"@types/node": "25.4.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"algoliasearch": "5.49.1",
"algoliasearch": "5.49.2",
"eslint-config-custom": "workspace:*",
"flexsearch": "^0.8.212",
"lucide-react": "^0.577.0",
@@ -171,7 +170,7 @@
"remark-mdx": "^3.1.1",
"remove-markdown": "^0.6.3",
"tsconfig": "workspace:*",
"tsdown": "0.21.0",
"tsdown": "0.21.1",
"typescript": "^5.9.3",
"waku": "1.0.0-alpha.5",
"zod": "^4.3.6"
+1 -1
View File
@@ -6,7 +6,7 @@
"dependencies": {
"@biomejs/biome": "^2.4.6",
"@orama/core": "^1.2.19",
"@takumi-rs/image-response": "^0.70.4",
"@takumi-rs/image-response": "^0.71.7",
"eslint": "^10.0.3",
"fumadocs-core": "workspace:*",
"fumadocs-mdx": "workspace:*",
+2 -2
View File
@@ -51,11 +51,11 @@
},
"devDependencies": {
"@types/cross-spawn": "^6.0.6",
"@types/node": "25.3.5",
"@types/node": "25.4.0",
"eslint-config-custom": "workspace:*",
"tinyglobby": "^0.2.15",
"tsconfig": "workspace:*",
"tsdown": "0.21.0",
"tsdown": "0.21.1",
"typescript": "^5.9.3"
},
"engines": {
+3 -3
View File
@@ -42,7 +42,7 @@
"estree-util-to-js": "^2.0.0",
"estree-util-value-to-estree": "^3.5.0",
"npm-to-yarn": "^3.0.1",
"oxc-transform": "^0.116.0",
"oxc-transform": "^0.117.0",
"unified": "^11.0.5",
"unist-util-visit": "^5.1.0",
"vfile": "^6.0.3",
@@ -53,13 +53,13 @@
"@types/estree": "^1.0.8",
"@types/hast": "^3.0.4",
"@types/mdast": "^4.0.4",
"@types/node": "25.3.5",
"@types/node": "25.4.0",
"eslint-config-custom": "workspace:*",
"fumadocs-core": "workspace:*",
"mdast-util-mdx": "^3.0.0",
"remark": "^15.0.1",
"tsconfig": "workspace:*",
"tsdown": "0.21.0",
"tsdown": "0.21.1",
"typescript": "^5.9.3"
},
"peerDependencies": {
+2 -2
View File
@@ -45,12 +45,12 @@
},
"devDependencies": {
"@types/mdast": "^4.0.4",
"@types/node": "25.3.5",
"@types/node": "25.4.0",
"eslint-config-custom": "workspace:*",
"fumadocs-core": "workspace:*",
"rimraf": "^6.0.0",
"tsconfig": "workspace:*",
"tsdown": "0.21.0",
"tsdown": "0.21.1",
"typescript": "^5.9.3",
"vfile": "^6.0.3"
},
+2 -2
View File
@@ -45,14 +45,14 @@
},
"devDependencies": {
"@types/mdx": "^2.0.13",
"@types/node": "25.3.5",
"@types/node": "25.4.0",
"@types/react": "^19.2.14",
"eslint-config-custom": "workspace:*",
"fumadocs-core": "workspace:*",
"react": "^19.2.4",
"tinyglobby": "^0.2.15",
"tsconfig": "workspace:*",
"tsdown": "0.21.0"
"tsdown": "0.21.1"
},
"peerDependencies": {
"@types/mdx": "*",
+2 -2
View File
@@ -91,7 +91,7 @@
"@types/js-yaml": "^4.0.9",
"@types/mdast": "^4.0.4",
"@types/mdx": "^2.0.13",
"@types/node": "^25.3.5",
"@types/node": "^25.4.0",
"@types/picomatch": "^4.0.2",
"@types/react": "^19.2.14",
"eslint-config-custom": "workspace:*",
@@ -104,7 +104,7 @@
"remark-mdx": "^3.1.1",
"rollup": "^4.59.0",
"tsconfig": "workspace:*",
"tsdown": "0.21.0",
"tsdown": "0.21.1",
"vite": "^7.3.1",
"webpack": "^5.105.4"
},
+2 -2
View File
@@ -61,14 +61,14 @@
"@types/estree": "^1.0.8",
"@types/js-yaml": "^4.0.9",
"@types/mdast": "^4.0.4",
"@types/node": "25.3.5",
"@types/node": "25.4.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"eslint-config-custom": "workspace:*",
"fumadocs-core": "workspace:*",
"mdast-util-mdx": "^3.0.0",
"tsconfig": "workspace:*",
"tsdown": "0.21.0",
"tsdown": "0.21.1",
"typescript": "^5.9.3"
},
"peerDependencies": {
+6 -6
View File
@@ -55,17 +55,17 @@
"@radix-ui/react-dialog": "^1.1.15",
"@radix-ui/react-select": "^2.2.6",
"@radix-ui/react-slot": "^1.2.4",
"@scalar/json-magic": "^0.12.0",
"@scalar/json-magic": "^0.12.2",
"@scalar/openapi-upgrader": "^0.2.0",
"ajv": "^8.18.0",
"class-variance-authority": "^0.7.1",
"dereference-json-schema": "^0.2.1",
"dereference-json-schema": "^0.2.2",
"github-slugger": "^2.0.0",
"hast-util-to-jsx-runtime": "^2.3.6",
"js-yaml": "^4.1.1",
"lucide-react": "^0.577.0",
"next-themes": "^0.4.6",
"openapi-sampler": "^1.7.1",
"openapi-sampler": "^1.7.2",
"react-hook-form": "^7.71.2",
"remark": "^15.0.1",
"remark-rehype": "^11.1.2",
@@ -74,9 +74,9 @@
},
"devDependencies": {
"@fumadocs/tailwind": "workspace:*",
"@scalar/api-client-react": "^1.4.1",
"@scalar/api-client-react": "^1.4.5",
"@types/js-yaml": "^4.0.9",
"@types/node": "25.3.5",
"@types/node": "25.4.0",
"@types/openapi-sampler": "^1.0.3",
"@types/react": "^19.2.14",
"eslint-config-custom": "workspace:*",
@@ -85,7 +85,7 @@
"json-schema-typed": "^8.0.2",
"tailwindcss": "^4.2.1",
"tsconfig": "workspace:*",
"tsdown": "0.21.0"
"tsdown": "0.21.1"
},
"peerDependencies": {
"@scalar/api-client-react": "*",
+6 -6
View File
@@ -33,14 +33,14 @@
"types:check": "tsc --noEmit"
},
"dependencies": {
"@takumi-rs/image-response": "^0.70.4",
"@takumi-rs/image-response": "^0.71.7",
"chokidar": "^5.0.0",
"commander": "^14.0.3",
"dotenv": "^17.3.1",
"fumadocs-core": "workspace:*",
"fumadocs-ui": "workspace:*",
"tinyglobby": "^0.2.15",
"unrun": "^0.2.30",
"unrun": "^0.2.31",
"waku": "1.0.0-alpha.5",
"zod": "^4.3.6"
},
@@ -51,7 +51,7 @@
"@types/hast": "^3.0.4",
"@types/mdast": "^4.0.4",
"@types/mdx": "^2.0.13",
"@types/node": "^25.3.5",
"@types/node": "^25.4.0",
"@types/picomatch": "^4.0.2",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
@@ -59,9 +59,9 @@
"beautiful-mermaid": "^1.1.3",
"gray-matter": "^4.0.3",
"hast-util-to-jsx-runtime": "^2.3.6",
"hono": "^4.12.5",
"hono": "^4.12.7",
"ignore": "^7.0.5",
"katex": "0.16.37",
"katex": "0.16.38",
"lucide-react": "^0.577.0",
"react": "^19.2.4",
"react-dom": "^19.2.4",
@@ -72,7 +72,7 @@
"remark-rehype": "^11.1.2",
"tailwind-merge": "^3.5.0",
"tailwindcss": "^4.2.1",
"tsdown": "0.21.0",
"tsdown": "0.21.1",
"typescript": "^5.9.3",
"unified": "^11.0.5",
"vfile": "^6.0.3",
+2 -2
View File
@@ -49,13 +49,13 @@
},
"devDependencies": {
"@types/js-yaml": "^4.0.9",
"@types/node": "^25.3.5",
"@types/node": "^25.4.0",
"@types/react": "^19.2.14",
"eslint-config-custom": "workspace:*",
"fumadocs-core": "workspace:*",
"fumadocs-ui": "workspace:*",
"tsconfig": "workspace:*",
"tsdown": "0.21.0"
"tsdown": "0.21.1"
},
"peerDependencies": {
"@types/react": "*",
-3
View File
@@ -1,6 +1,3 @@
@import './shiki.css';
@plugin '../../dist/tailwind/typography.js';
:root {
--fd-sidebar-drawer-offset: 100%;
}
+4
View File
@@ -1,4 +1,8 @@
@import './lib/base.css';
@import './lib/shiki.css';
@import './lib/image-zoom.css';
@plugin '../dist/tailwind/typography.js';
/* TODO: remove them on next major */
@import './generated/docs.css';
+5 -5
View File
@@ -112,9 +112,9 @@
"scripts": {
"build": "pnpm build:layout && pnpm build:tailwind",
"build:layout": "tsdown --config-loader unrun",
"build:tailwind": "tailwindcss -i css/style.css -o ./dist/style.css && tailwindcss -i src/components/image-zoom.css -o dist/components/image-zoom.css",
"build:tailwind": "tailwindcss -i css/style.css -o ./dist/style.css",
"clean": "rimraf dist",
"dev": "concurrently \"tsdown --watch --clean false\" \"tailwindcss -i css/style.css -o ./dist/style.css -w\" \"tailwindcss -i src/components/image-zoom.css -o dist/components/image-zoom.css -w\"",
"dev": "concurrently \"tsdown --watch --clean false\" \"tailwindcss -i css/style.css -o ./dist/style.css -w\"",
"lint": "eslint .",
"types:check": "tsc --noEmit"
},
@@ -132,7 +132,7 @@
"@radix-ui/react-tabs": "^1.1.13",
"class-variance-authority": "^0.7.1",
"lucide-react": "^0.577.0",
"motion": "^12.35.0",
"motion": "^12.35.2",
"next-themes": "^0.4.6",
"react-medium-image-zoom": "^5.4.1",
"react-remove-scroll": "^2.7.2",
@@ -146,14 +146,14 @@
"@tailwindcss/cli": "^4.2.1",
"@types/hast": "^3.0.4",
"@types/mdx": "^2.0.13",
"@types/node": "^25.3.5",
"@types/node": "^25.4.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"eslint-config-custom": "workspace:*",
"fumadocs-core": "workspace:*",
"tailwindcss": "^4.2.1",
"tsconfig": "workspace:*",
"tsdown": "0.21.0",
"tsdown": "0.21.1",
"unified": "^11.0.5"
},
"peerDependencies": {
@@ -3,7 +3,6 @@
import { Image, type ImageProps } from 'fumadocs-core/framework';
import type { ComponentProps } from 'react';
import Zoom, { type UncontrolledProps } from 'react-medium-image-zoom';
import './image-zoom.css';
export type ImageZoomProps = ImageProps & {
/**
-6
View File
@@ -1,5 +1,4 @@
import { defineConfig } from 'tsdown';
import fs from 'node:fs/promises';
import { compileInline } from './scripts/compile-inline.utils';
export default defineConfig({
@@ -17,11 +16,6 @@ export default defineConfig({
},
async onSuccess() {
await compileInline();
// wait until https://github.com/rolldown/tsdown/issues/472
let content = (await fs.readFile('dist/components/image-zoom.js')).toString();
content = content.replaceAll(`import "./image-zoom2.js";`, `import "./image-zoom.css";`);
await fs.writeFile('dist/components/image-zoom.js', content);
console.log('CSS import updated');
},
deps: {
onlyAllowBundle: [],
+1 -1
View File
@@ -3,7 +3,7 @@
"private": true,
"devDependencies": {
"@fumadocs/cli": "workspace:*",
"@types/node": "^25.3.5",
"@types/node": "^25.4.0",
"eslint-config-custom": "workspace:*",
"tsconfig": "workspace:*"
}
+2 -2
View File
@@ -26,11 +26,11 @@
"types:check": "tsc --noEmit"
},
"devDependencies": {
"@types/node": "25.3.5",
"@types/node": "25.4.0",
"@types/react": "^19.2.14",
"eslint-config-custom": "workspace:*",
"tsconfig": "workspace:*",
"tsdown": "0.21.0"
"tsdown": "0.21.1"
},
"peerDependencies": {
"@types/react": "*",
+2 -2
View File
@@ -39,7 +39,7 @@
},
"devDependencies": {
"@fastify/deepmerge": "^3.2.1",
"@types/node": "25.3.5",
"@types/node": "25.4.0",
"@types/react": "^19.2.14",
"@types/ungap__structured-clone": "^1.2.0",
"@ungap/structured-clone": "^1.3.0",
@@ -47,7 +47,7 @@
"fumadocs-ui": "workspace:*",
"tailwindcss": "^4.2.1",
"tsconfig": "workspace:*",
"tsdown": "0.21.0"
"tsdown": "0.21.1"
},
"peerDependencies": {
"@types/react": "*",
+2 -2
View File
@@ -40,12 +40,12 @@
"devDependencies": {
"@tailwindcss/oxide": "^4.2.1",
"@types/lodash.merge": "^4.6.9",
"@types/node": "^25.3.5",
"@types/node": "^25.4.0",
"eslint-config-custom": "workspace:*",
"lodash.merge": "^4.6.2",
"tailwindcss": "^4.2.1",
"tsconfig": "workspace:*",
"tsdown": "0.21.0"
"tsdown": "0.21.1"
},
"peerDependencies": {
"tailwindcss": "^4.0.0"
+4 -4
View File
@@ -45,23 +45,23 @@
},
"dependencies": {
"@radix-ui/react-popover": "^1.1.15",
"@shikijs/twoslash": "^4.0.1",
"@shikijs/twoslash": "^4.0.2",
"mdast-util-from-markdown": "^2.0.3",
"mdast-util-gfm": "^3.1.0",
"mdast-util-to-hast": "^13.2.1",
"shiki": "^4.0.1",
"shiki": "^4.0.2",
"tailwind-merge": "^3.5.0",
"twoslash": "^0.3.6"
},
"devDependencies": {
"@types/hast": "^3.0.4",
"@types/mdast": "^4.0.4",
"@types/node": "25.3.5",
"@types/node": "25.4.0",
"@types/react": "^19.2.14",
"eslint-config-custom": "workspace:*",
"fumadocs-ui": "workspace:*",
"tsconfig": "workspace:*",
"tsdown": "0.21.0"
"tsdown": "0.21.1"
},
"peerDependencies": {
"@types/react": "*",
+2 -2
View File
@@ -52,7 +52,7 @@
"@types/estree": "^1.0.8",
"@types/hast": "^3.0.4",
"@types/mdast": "^4.0.4",
"@types/node": "25.3.5",
"@types/node": "25.4.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"eslint-config-custom": "workspace:*",
@@ -60,7 +60,7 @@
"fumadocs-ui": "workspace:*",
"mdast-util-mdx": "^3.0.0",
"tsconfig": "workspace:*",
"tsdown": "0.21.0",
"tsdown": "0.21.1",
"typescript": "^5.9.3",
"vfile": "^6.0.3"
},
+1925 -1817
View File
File diff suppressed because it is too large Load Diff