1. make `knip` a part of `packages/thirdweb`
2. clean up all the things
3. ???
4. profit
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on removing unused files, updating types, and deprecating constants.
### Detailed summary
- Removed unused files related to benchmarks, wallets, and UI components
- Updated type definitions in various files
- Deprecated and replaced constant `ADDRESS_ZERO` with `ZERO_ADDRESS`
> The following files were skipped due to too many changes: `packages/thirdweb/src/react/web/ui/ConnectWallet/Details.tsx`, `packages/thirdweb/src/pay/utils/definitions.ts`, `packages/thirdweb/src/utils/hashing/sha256.ts`, `packages/thirdweb/src/wallets/eip5792/show-calls-status.ts`, `packages/thirdweb/src/extensions/modules/ClaimableERC20/mint.ts`, `packages/thirdweb/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx`, `apps/portal/package.json`, `packages/thirdweb/src/extensions/modules/ClaimableERC721/mint.ts`, `packages/thirdweb/src/utils/hashing/hashMessage.ts`, `packages/thirdweb/src/react/native/ui/components/text.tsx`, `packages/thirdweb/src/utils/promise/resolve-promised-value.ts`, `packages/thirdweb/src/auth/core/verify-jwt.ts`, `packages/thirdweb/src/utils/hashing/keccak256.ts`, `packages/thirdweb/src/utils/uint8-array.ts`, `packages/thirdweb/src/react/core/design-system/CustomThemeProvider.tsx`, `packages/thirdweb/src/react/native/ui/connect/SendScreen.tsx`, `packages/thirdweb/src/react/web/ui/MediaRenderer/MediaRenderer.tsx`, `packages/thirdweb/src/gas/estimate-l1-fee.ts`, `packages/thirdweb/src/react/web/ui/ConnectWallet/WalletSelector.tsx`, `packages/thirdweb/src/extensions/modules/MintableERC721/mintWithSignature.ts`, `packages/thirdweb/src/react/native/ui/connect/ExternalWalletsList.tsx`, `packages/thirdweb/src/exports/extensions/erc1155.ts`, `packages/thirdweb/src/extensions/modules/ClaimableERC1155/mint.ts`, `packages/thirdweb/src/extensions/modules/MintableERC1155/mintWithSignature.ts`, `packages/thirdweb/src/utils/encoding/helpers/trim.ts`, `packages/thirdweb/src/wallets/utils/getTokenBalance.ts`, `apps/dashboard/knip.json`, `packages/thirdweb/src/react/native/ui/connect/TokenListScreen.tsx`, `packages/thirdweb/src/extensions/vote/write/executeProposal.ts`, `packages/thirdweb/src/react/native/ui/components/spinner.tsx`, `packages/thirdweb/src/react/web/ui/MediaRenderer/ModelViewer.tsx`, `packages/thirdweb/src/transaction/extract-error.ts`, `packages/thirdweb/src/react/native/ui/components/button.tsx`, `packages/thirdweb/src/extensions/erc1155/write/updateTokenURI.ts`, `packages/thirdweb/src/wallets/interfaces/wallet.ts`, `packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/swap/useSwapSupportedChains.ts`, `packages/thirdweb/src/utils/storage/walletStorage.ts`, `packages/thirdweb/src/wallets/in-app/native/native-connector.ts`, `packages/thirdweb/src/extensions/erc20/write/sigMint.ts`, `packages/thirdweb/src/extensions/erc721/write/updateTokenURI.ts`, `packages/thirdweb/src/react/web/wallets/ecosystem/EcosystemWalletFormUI.tsx`, `packages/thirdweb/src/wallets/eip5792/wait-for-bundle.ts`, `packages/thirdweb/src/utils/jwt/jwt-header.ts`, `packages/thirdweb/src/extensions/modules/MintableERC20/mintWithSignature.ts`, `packages/thirdweb/src/exports/modules.ts`, `packages/thirdweb/src/react/web/wallets/in-app/InAppWalletFormUI.tsx`, `packages/thirdweb/src/transaction/actions/wait-for-tx-receipt.ts`, `packages/thirdweb/src/auth/core/generate-jwt.ts`, `packages/thirdweb/src/react/core/hooks/transaction/useSendTransaction.ts`, `packages/thirdweb/src/exports/extensions/erc1271.ts`, `packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/main/useBuyTxStates.ts`, `packages/thirdweb/src/contract/deployment/publisher.ts`, `packages/thirdweb/src/extensions/erc721/drops/write/updateMetadata.ts`, `packages/thirdweb/src/extensions/erc1155/drops/write/updateMetadata.ts`, `packages/thirdweb/src/extensions/prebuilts/deploy-marketplace.ts`, `packages/thirdweb/src/wallets/in-app/native/auth/index.ts`, `packages/thirdweb/src/wallets/in-app/native/helpers/auth/middleware.ts`, `packages/thirdweb/src/utils/platform.ts`, `.github/CODEOWNERS`, `packages/thirdweb/src/wallets/in-app/web/lib/auth/index.ts`, `packages/thirdweb/src/react/core/utils/structuralSharing.ts`, `packages/thirdweb/src/react/core/hooks/transaction/useSendAndConfirmTransaction.ts`, `packages/thirdweb/src/extensions/prebuilts/get-required-transactions.ts`, `packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/pay-transactions/FiatDetailsScreen.tsx`, `packages/thirdweb/src/extensions/ens/resolve-l2-name.ts`, `packages/thirdweb/src/utils/any-evm/deploy-metadata.ts`, `packages/thirdweb/src/cli/commands/generate/utils.ts`, `packages/thirdweb/src/extensions/farcaster/eip712Signatures/keyRequestSignature.ts`, `packages/thirdweb/src/extensions/airdrop/write/airdropERC20WithSignature.ts`, `packages/thirdweb/src/extensions/airdrop/write/airdropERC721WithSignature.ts`, `packages/thirdweb/src/transaction/actions/zksync/send-eip712-transaction.ts`, `packages/thirdweb/src/wallets/in-app/web/utils/iFrameCommunication/InAppWalletIframeCommunicator.ts`, `packages/thirdweb/src/utils/any-evm/zksync/constants.ts`, `packages/thirdweb/src/extensions/marketplace/direct-listings/utils.ts`, `packages/thirdweb/src/transaction/actions/gasless/send-gasless-transaction.ts`, `packages/thirdweb/src/extensions/prebuilts/deploy-vote.ts`, `packages/thirdweb/src/react/web/ui/components/Drawer.tsx`, `packages/thirdweb/src/extensions/airdrop/write/airdropERC1155WithSignature.ts`, `packages/thirdweb/src/react/core/hooks/others/useWalletBalance.ts`, `packages/thirdweb/src/extensions/permissions/utils.ts`, `packages/thirdweb/src/wallets/in-app/native/helpers/auth/logout.ts`, `packages/thirdweb/src/wallets/smart/lib/utils.ts`, `packages/thirdweb/src/react/web/ui/components/buttons.tsx`, `packages/thirdweb/src/react/web/ui/prebuilt/thirdweb/ClaimButton/index.tsx`, `packages/thirdweb/src/wallets/wallet-connect/receiver/index.ts`, `packages/thirdweb/src/transaction/actions/gasless/providers/engine.ts`, `packages/thirdweb/src/transaction/actions/gasless/providers/openzeppelin.ts`, `packages/thirdweb/src/wallets/in-app/web/types.ts`, `packages/thirdweb/src/extensions/airdrop/write/claimERC20.ts`, `packages/thirdweb/test/globalSetup.ts`, `packages/thirdweb/src/extensions/erc721/read/getAllOwners.ts`, `packages/thirdweb/src/wallets/smart/lib/userop.ts`, `packages/thirdweb/src/wallets/in-app/native/helpers/wallet/retrieval.ts`, `packages/thirdweb/src/wallets/in-app/web/lib/iframe-wallet.ts`, `packages/thirdweb/src/react/web/ui/TransactionButton/TransactionModal.tsx`, `packages/thirdweb/src/react/native/ui/connect/ConnectedModal.tsx`, `packages/thirdweb/src/extensions/erc4337/account/common.ts`, `packages/thirdweb/test/vitest.config.ts`, `packages/thirdweb/src/exports/extensions/farcaster.ts`, `packages/thirdweb/src/exports/chains.ts`, `packages/thirdweb/src/extensions/erc4337/account/permissions.test.ts`, `packages/thirdweb/src/wallets/in-app/core/constants/settings.ts`, `packages/thirdweb/scripts/typedoc.mjs`, `packages/thirdweb/src/extensions/airdrop/write/merkleInfoERC20.ts`, `packages/thirdweb/src/utils/extensions/drops/hash-entry.ts`, `packages/thirdweb/src/extensions/farcaster/eip712Signatures/registerSignature.ts`, `packages/thirdweb/src/react/native/ui/icons/svgs.ts`, `packages/thirdweb/src/transaction/actions/gasless/providers/biconomy.ts`, `packages/thirdweb/src/extensions/farcaster/eip712Signatures/addSignature.ts`, `packages/thirdweb/src/react/web/ui/AutoConnect/AutoConnect.tsx`, `packages/thirdweb/src/react/native/ui/AutoConnect/AutoConnect.tsx`, `packages/service-utils/package.json`, `packages/thirdweb/src/stories/utils.tsx`, `packages/thirdweb/src/react/core/utils/defaultTokens.ts`, `package.json`, `packages/thirdweb/knip.json`, `packages/thirdweb/src/pay/buyWithCrypto/getStatus.ts`, `packages/thirdweb/src/exports/extensions/marketplace.ts`, `packages/thirdweb/src/utils/semver.ts`, `packages/thirdweb/src/extensions/uniswap/read/getUniswapV3Pools.ts`, `apps/dashboard/package.json`, `packages/thirdweb/src/utils/royalty-engine.ts`, `packages/react-native-adapter/package.json`, `packages/thirdweb/src/wallets/in-app/core/authentication/types.ts`, `packages/thirdweb/src/contract/deployment/deploy-deterministic.ts`, `packages/thirdweb/src/contract/deployment/utils/infra.ts`, `packages/thirdweb/src/wallets/injected/index.ts`, `packages/thirdweb/src/wallets/smart/lib/packUserOp.ts`, `packages/thirdweb/src/wallets/in-app/native/helpers/storage/local.ts`, `packages/thirdweb/src/react/web/ui/components/ChainIcon.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/pay-transactions/BuyTxHistory.tsx`, `packages/thirdweb/src/wallets/in-app/native/helpers/constants.ts`, `packages/thirdweb/src/wallets/in-app/native/helpers/api/fetchers.ts`, `packages/thirdweb/package.json`, `packages/thirdweb/src/react/core/utils/walletIcon.ts`, `pnpm-lock.yaml`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
149 lines
4.9 KiB
JSON
149 lines
4.9 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",
|
|
"@n8tb1t/use-scroll-position": "^2.0.3",
|
|
"@radix-ui/react-alert-dialog": "^1.1.1",
|
|
"@radix-ui/react-aspect-ratio": "^1.0.3",
|
|
"@radix-ui/react-avatar": "^1.1.0",
|
|
"@radix-ui/react-checkbox": "^1.1.1",
|
|
"@radix-ui/react-dialog": "1.1.1",
|
|
"@radix-ui/react-dropdown-menu": "^2.1.1",
|
|
"@radix-ui/react-hover-card": "^1.1.1",
|
|
"@radix-ui/react-label": "^2.1.0",
|
|
"@radix-ui/react-popover": "^1.1.1",
|
|
"@radix-ui/react-progress": "^1.1.0",
|
|
"@radix-ui/react-radio-group": "^1.2.0",
|
|
"@radix-ui/react-select": "^2.1.1",
|
|
"@radix-ui/react-separator": "^1.1.0",
|
|
"@radix-ui/react-slot": "^1.1.0",
|
|
"@radix-ui/react-switch": "^1.1.0",
|
|
"@radix-ui/react-tooltip": "1.1.2",
|
|
"@react-icons/all-files": "^4.1.0",
|
|
"@sentry/nextjs": "8.30.0",
|
|
"@shazow/whatsabi": "^0.14.1",
|
|
"@stripe/react-stripe-js": "^2.7.3",
|
|
"@stripe/stripe-js": "^3.5.0",
|
|
"@tanstack/react-query": "5.56.2",
|
|
"@tanstack/react-table": "^8.17.3",
|
|
"@thirdweb-dev/service-utils": "workspace:*",
|
|
"@vercel/og": "^0.6.2",
|
|
"abitype": "1.0.5",
|
|
"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": "^3.6.0",
|
|
"flat": "^6.0.1",
|
|
"framer-motion": "11.5.4",
|
|
"fuse.js": "7.0.0",
|
|
"ioredis": "^5.4.1",
|
|
"ipaddr.js": "^2.2.0",
|
|
"lottie-react": "^2.4.0",
|
|
"lucide-react": "0.441.0",
|
|
"next": "14.2.12",
|
|
"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.3",
|
|
"react-hook-form": "7.52.0",
|
|
"react-icons": "^5.2.1",
|
|
"react-intersection-observer": "^9.10.3",
|
|
"react-markdown": "^9.0.1",
|
|
"react-otp-input": "^3.1.1",
|
|
"react-responsive-carousel": "^3.2.23",
|
|
"react-table": "^7.8.0",
|
|
"recharts": "^2.12.7",
|
|
"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.2",
|
|
"tailwindcss-animate": "^1.0.7",
|
|
"thirdweb": "workspace:*",
|
|
"tiny-invariant": "^1.3.3",
|
|
"use-debounce": "^10.0.1",
|
|
"zod": "3.23.8"
|
|
},
|
|
"devDependencies": {
|
|
"@chakra-ui/cli": "^2.4.1",
|
|
"@chromatic-com/storybook": "2.0.2",
|
|
"@next/bundle-analyzer": "14.2.12",
|
|
"@next/eslint-plugin-next": "14.2.12",
|
|
"@playwright/test": "1.47.1",
|
|
"@storybook/addon-essentials": "8.3.2",
|
|
"@storybook/addon-interactions": "8.3.2",
|
|
"@storybook/addon-links": "8.3.2",
|
|
"@storybook/addon-onboarding": "8.3.2",
|
|
"@storybook/addon-viewport": "8.3.1",
|
|
"@storybook/blocks": "8.3.1",
|
|
"@storybook/nextjs": "8.3.1",
|
|
"@storybook/react": "8.3.2",
|
|
"@storybook/test": "8.3.2",
|
|
"@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.8",
|
|
"@types/react-dom": "^18",
|
|
"@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.8.3",
|
|
"eslint-plugin-react-compiler": "0.0.0-experimental-ca16900-20240916",
|
|
"eslint-plugin-storybook": "^0.8.0",
|
|
"knip": "^5.30.4",
|
|
"next-sitemap": "^4.2.3",
|
|
"postcss": "8.4.47",
|
|
"storybook": "8.3.2",
|
|
"tailwindcss": "3.4.12",
|
|
"typescript": "5.6.2"
|
|
}
|
|
}
|