mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-03 08:07:21 +00:00
Replace the v3-authored shadcn components with their new-york-v4 equivalents via `npx shadcn add --overwrite`. The new components use the `radix-ui` meta-package, inline `cva` variants, `data-slot` attributes, and the v4 aria-invalid/focus-ring patterns. Also: - Remove now-unused @radix-ui/react-* packages (only react-toast is kept for the preserved toast/toaster). - Delete orphaned *-variants.ts / *-utils.ts files (variants are inline in v4). - Drop duplicate src/hooks/use-mobile.ts; sidebar now imports the existing useIsMobile hook. - Rewrite src/index.css in the shadcn v4 idiom: raw hsl() values on --background etc., with @theme inline remapping to --color-*. Switch --sidebar-background to --sidebar to match the new sidebar classes. - Keep toast.tsx, toaster.tsx, and qrcode.tsx untouched.
69 lines
2.2 KiB
JSON
69 lines
2.2 KiB
JSON
{
|
|
"name": "mkstack",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "npm i --silent && vite",
|
|
"build": "npm i --silent && vite build -l error && cp dist/index.html dist/404.html && echo 'Project built successfully!'",
|
|
"test": "npm i --silent && tsc --noEmit && eslint && vitest run --reporter=dot --silent && vite build -l error && cp dist/index.html dist/404.html && echo 'All tests passed!'"
|
|
},
|
|
"dependencies": {
|
|
"@fontsource-variable/inter": "^5.2.6",
|
|
"@hookform/resolvers": "^5.2.2",
|
|
"@nostrify/nostrify": "^0.51.0",
|
|
"@nostrify/react": "^0.4.0",
|
|
"@radix-ui/react-toast": "^1.2.1",
|
|
"@tanstack/react-query": "^5.56.2",
|
|
"@unhead/addons": "^2.0.10",
|
|
"@unhead/react": "^2.0.10",
|
|
"buffer": "^6.0.3",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"cmdk": "^1.1.1",
|
|
"date-fns": "^3.6.0",
|
|
"embla-carousel-react": "^8.6.0",
|
|
"input-otp": "^1.4.2",
|
|
"lucide-react": "^0.462.0",
|
|
"nostr-tools": "^2.13.0",
|
|
"qrcode": "^1.5.4",
|
|
"radix-ui": "^1.4.3",
|
|
"react": "^19.2.4",
|
|
"react-day-picker": "^9.14.0",
|
|
"react-dom": "^19.2.4",
|
|
"react-hook-form": "^7.74.0",
|
|
"react-intersection-observer": "^9.16.0",
|
|
"react-resizable-panels": "^4.10.0",
|
|
"react-router-dom": "^6.26.2",
|
|
"recharts": "^3.8.0",
|
|
"tailwind-merge": "^2.5.2",
|
|
"tw-animate-css": "^1.2.0",
|
|
"vaul": "^1.1.2",
|
|
"zod": "^4.3.6"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.9.0",
|
|
"@html-eslint/eslint-plugin": "^0.41.0",
|
|
"@html-eslint/parser": "^0.41.0",
|
|
"@tailwindcss/typography": "^0.5.16",
|
|
"@tailwindcss/vite": "^4.1.0",
|
|
"@testing-library/jest-dom": "^6.6.3",
|
|
"@testing-library/react": "^16.3.0",
|
|
"@types/node": "^22.5.5",
|
|
"@types/qrcode": "^1.5.5",
|
|
"@types/react": "^19.2.14",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@vitejs/plugin-react": "^6.0.1",
|
|
"eslint": "^9.9.0",
|
|
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
|
|
"eslint-plugin-react-refresh": "^0.4.9",
|
|
"globals": "^15.9.0",
|
|
"jsdom": "^26.1.0",
|
|
"tailwindcss": "^4.1.0",
|
|
"typescript": "^5.5.3",
|
|
"typescript-eslint": "^8.0.1",
|
|
"vite": "^8.0.3",
|
|
"vitest": "^4.1.2"
|
|
}
|
|
}
|