## Problem solved
Short description of the bug fixed or feature added
<!-- start pr-codex -->
---
## PR-Codex overview
This PR introduces support for Cloudflare Turnstile captcha validation in the faucet functionality of the dashboard application, enhancing security during fund claims. It also updates dependencies and configuration for the new feature.
### Detailed summary
- Added `TURNSTILE_SITE_KEY` constant to `env.ts`.
- Updated `package.json` to include `@marsidev/react-turnstile`.
- Modified `.env.example` to add `NEXT_PUBLIC_TURNSTILE_SITE_KEY` and `TURNSTILE_SECRET_KEY`.
- Updated `next.config.js` to allow scripts from Cloudflare.
- Enhanced `POST` handler in `route.ts` to validate `turnstileToken`.
- Updated `FaucetButton.tsx` to integrate Turnstile captcha and form handling.
- Introduced `claimFaucetSchema` for form validation using `zod`.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
147 lines
4.8 KiB
JSON
147 lines
4.8 KiB
JSON
{
|
|
"name": "thirdweb-dashboard",
|
|
"version": "3.0.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"preinstall": "npx only-allow pnpm",
|
|
"dev": "next dev --turbo",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"format": "biome format ./src --write",
|
|
"lint": "biome check ./src && knip && eslint ./src",
|
|
"fix": "biome check ./src --fix && eslint ./src --fix",
|
|
"typecheck": "tsc --noEmit",
|
|
"gen:theme-typings": "chakra-cli tokens src/theme/index.ts",
|
|
"postinstall": "pnpm run gen:theme-typings",
|
|
"postbuild": "next-sitemap",
|
|
"build:analyze": "ANALYZE=true pnpm run build",
|
|
"knip": "knip",
|
|
"playwright": "playwright test",
|
|
"update-checkly": "npx checkly deploy",
|
|
"storybook": "storybook dev -p 6006",
|
|
"build-storybook": "storybook build"
|
|
},
|
|
"dependencies": {
|
|
"@chakra-ui/react": "^2.8.2",
|
|
"@chakra-ui/styled-system": "^2.9.2",
|
|
"@chakra-ui/theme-tools": "^2.1.2",
|
|
"@coinbase/onchainkit": "^0.14.2",
|
|
"@emotion/react": "11.13.3",
|
|
"@emotion/styled": "11.13.0",
|
|
"@hookform/resolvers": "^3.9.0",
|
|
"@marsidev/react-turnstile": "^1.0.2",
|
|
"@n8tb1t/use-scroll-position": "^2.0.3",
|
|
"@radix-ui/react-alert-dialog": "^1.1.2",
|
|
"@radix-ui/react-avatar": "^1.1.1",
|
|
"@radix-ui/react-checkbox": "^1.1.2",
|
|
"@radix-ui/react-dialog": "1.1.2",
|
|
"@radix-ui/react-dropdown-menu": "^2.1.2",
|
|
"@radix-ui/react-hover-card": "^1.1.2",
|
|
"@radix-ui/react-label": "^2.1.0",
|
|
"@radix-ui/react-popover": "^1.1.2",
|
|
"@radix-ui/react-progress": "^1.1.0",
|
|
"@radix-ui/react-radio-group": "^1.2.1",
|
|
"@radix-ui/react-select": "^2.1.2",
|
|
"@radix-ui/react-separator": "^1.1.0",
|
|
"@radix-ui/react-slot": "^1.1.0",
|
|
"@radix-ui/react-switch": "^1.1.1",
|
|
"@radix-ui/react-tooltip": "1.1.3",
|
|
"@sentry/nextjs": "8.34.0",
|
|
"@shazow/whatsabi": "^0.15.3",
|
|
"@stripe/react-stripe-js": "^2.8.1",
|
|
"@stripe/stripe-js": "^3.5.0",
|
|
"@tanstack/react-query": "5.59.13",
|
|
"@tanstack/react-table": "^8.17.3",
|
|
"@thirdweb-dev/service-utils": "workspace:*",
|
|
"@vercel/og": "^0.6.2",
|
|
"abitype": "1.0.6",
|
|
"chakra-react-select": "^4.7.6",
|
|
"class-variance-authority": "^0.7.0",
|
|
"clsx": "^2.1.1",
|
|
"color": "^4.2.3",
|
|
"compare-versions": "^6.1.0",
|
|
"date-fns": "4.1.0",
|
|
"flat": "^6.0.1",
|
|
"framer-motion": "11.11.8",
|
|
"fuse.js": "7.0.0",
|
|
"input-otp": "^1.2.4",
|
|
"ioredis": "^5.4.1",
|
|
"ipaddr.js": "^2.2.0",
|
|
"lottie-react": "^2.4.0",
|
|
"lucide-react": "0.452.0",
|
|
"next": "14.2.15",
|
|
"next-plausible": "^3.12.0",
|
|
"next-seo": "^6.5.0",
|
|
"next-themes": "^0.3.0",
|
|
"nextjs-toploader": "^1.6.12",
|
|
"papaparse": "^5.4.1",
|
|
"pluralize": "^8.0.0",
|
|
"posthog-js": "1.67.1",
|
|
"prism-react-renderer": "^2.3.1",
|
|
"prismjs": "^1.29.0",
|
|
"qrcode": "^1.5.3",
|
|
"react": "18.3.1",
|
|
"react-children-utilities": "^2.10.0",
|
|
"react-day-picker": "^8.10.1",
|
|
"react-dom": "18.3.1",
|
|
"react-dropzone": "^14.2.9",
|
|
"react-hook-form": "7.52.0",
|
|
"react-intersection-observer": "^9.10.3",
|
|
"react-markdown": "^9.0.1",
|
|
"react-responsive-carousel": "^3.2.23",
|
|
"react-table": "^7.8.0",
|
|
"recharts": "^2.13.0",
|
|
"remark-gfm": "^4.0.0",
|
|
"server-only": "^0.0.1",
|
|
"sonner": "^1.5.0",
|
|
"spdx-correct": "^3.2.0",
|
|
"swagger-ui-react": "^5.17.14",
|
|
"tailwind-merge": "^2.5.4",
|
|
"tailwindcss-animate": "^1.0.7",
|
|
"thirdweb": "workspace:*",
|
|
"tiny-invariant": "^1.3.3",
|
|
"use-debounce": "^10.0.4",
|
|
"zod": "3.23.8"
|
|
},
|
|
"devDependencies": {
|
|
"@chakra-ui/cli": "^2.4.1",
|
|
"@chromatic-com/storybook": "2.0.2",
|
|
"@next/bundle-analyzer": "14.2.15",
|
|
"@next/eslint-plugin-next": "14.2.15",
|
|
"@playwright/test": "1.47.2",
|
|
"@storybook/addon-essentials": "8.3.5",
|
|
"@storybook/addon-interactions": "8.3.5",
|
|
"@storybook/addon-links": "8.3.5",
|
|
"@storybook/addon-onboarding": "8.3.5",
|
|
"@storybook/addon-viewport": "8.3.5",
|
|
"@storybook/blocks": "8.3.5",
|
|
"@storybook/nextjs": "8.3.5",
|
|
"@storybook/react": "8.3.5",
|
|
"@storybook/test": "8.3.5",
|
|
"@types/color": "^3.0.6",
|
|
"@types/node": "20.14.9",
|
|
"@types/papaparse": "^5.3.14",
|
|
"@types/pluralize": "^0.0.33",
|
|
"@types/qrcode": "^1.5.5",
|
|
"@types/react": "^18.3.11",
|
|
"@types/react-dom": "^18.3.1",
|
|
"@types/react-table": "^7.7.20",
|
|
"@types/spdx-correct": "^3.1.3",
|
|
"@types/swagger-ui-react": "^4.18.3",
|
|
"@typescript-eslint/eslint-plugin": "7.14.1",
|
|
"@typescript-eslint/parser": "7.14.1",
|
|
"autoprefixer": "^10.4.19",
|
|
"checkly": "^4.8.1",
|
|
"eslint": "8.57.0",
|
|
"eslint-config-biome": "1.9.3",
|
|
"eslint-plugin-react-compiler": "0.0.0-experimental-fa06e2c-20241014",
|
|
"eslint-plugin-storybook": "^0.9.0",
|
|
"knip": "^5.33.3",
|
|
"next-sitemap": "^4.2.3",
|
|
"postcss": "8.4.47",
|
|
"storybook": "8.3.5",
|
|
"tailwindcss": "3.4.13",
|
|
"typescript": "5.6.3"
|
|
}
|
|
}
|