mirror of
https://github.com/supabase/supabase.git
synced 2026-12-03 23:18:57 +00:00
Removes the `next` dependency from `packages/dev-tools` so it works cleanly across both Next.js apps (`www`, `docs`) and TanStack Start (`studio`). **Removed:** - `next/image` imports in `DevToolbar` and `DevToolbarTrigger` - `next/image` mock and `next/navigation` test mock in `packages/dev-tools` - `next` and `next-router-mock` from `packages/dev-tools/package.json` - `apps/studio/public/img/logo-pixel-small-light.png` (now unused) **Added:** - `DevToolbarLogo` component using an inline data URI for the 244-byte pixel logo (also fixes the missing `/img/logo-pixel-small-light.png` icon in `docs` and `www`). It's decorative (`alt=""` + `aria-hidden`) since the trigger and sheet are already labelled ## To test - Open the dev toolbar in Studio, Docs, and WWW in local dev (`window.devToolbar()`) and verify the pixel logo renders in both the trigger button and the toolbar header - Run `packages/dev-tools` tests and typecheck (`getEventCountBadge > returns a capped pill for large counts` also fails on master and isn't touched here) --------- Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
43 lines
1.0 KiB
JSON
43 lines
1.0 KiB
JSON
{
|
|
"name": "dev-tools",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"sideEffects": false,
|
|
"type": "module",
|
|
"main": "./index.ts",
|
|
"types": "./index.ts",
|
|
"exports": {
|
|
".": "./index.ts"
|
|
},
|
|
"scripts": {
|
|
"preinstall": "npx only-allow pnpm",
|
|
"clean": "rimraf .turbo dist tsconfig.tsbuildinfo",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"common": "workspace:*",
|
|
"lucide-react": "catalog:",
|
|
"ui": "workspace:*"
|
|
},
|
|
"devDependencies": {
|
|
"@testing-library/dom": "^10.0.0",
|
|
"@testing-library/jest-dom": "^7.0.1",
|
|
"@testing-library/react": "^16.3.3",
|
|
"@testing-library/user-event": "^14.0.0",
|
|
"@types/node": "catalog:",
|
|
"@types/react": "catalog:",
|
|
"@types/react-dom": "catalog:",
|
|
"config": "workspace:*",
|
|
"tailwindcss": "catalog:",
|
|
"tsconfig": "workspace:*",
|
|
"@typescript/native": "catalog:",
|
|
"typescript": "catalog:",
|
|
"vite": "catalog:",
|
|
"vitest": "catalog:",
|
|
"react": "catalog:",
|
|
"react-dom": "catalog:"
|
|
}
|
|
}
|