Files
safe-wallet/apps/web/package.json
T
defd17df3b feat(mobile): upgrade Expo SDK to v55 (#7433)
* feat(mobile): upgrade Expo SDK to v55

Upgrade Expo SDK from v54 to v55, along with React Native 0.83.4,
React 19.2, and all related dependencies.

Key changes:
- Refactored @safe-global/theme to use sub-path exports to fix RN
  import resolution issues
- Added react-native patch for Appearance.setColorScheme bug
  (facebook/react-native#08d176453) not yet in 0.83.4 release
- Replaced Tamagui Skeleton with custom SafeSkeleton component
- Updated expo config plugins for SDK 55 compatibility

Co-authored-by: Hanzo Dev <dev@hanzo.ai>

* fix: downgrade eslint-config-next to v15 to match next.js version

eslint-config-next v16 requires next v16 but the project uses next
v15.5.8. The v16 package tries to import next/dist/compiled/babel/
eslint-parser which doesn't exist in next v15.

Co-authored-by: Hanzo Dev <dev@hanzo.ai>

* fix: migrate packages away from eslint-config-next

eslint-config-next requires next at runtime for its babel parser,
but next is only installed in apps/web. After the Expo SDK v55
upgrade changed dependency hoisting, the parser became unreachable.

- Create shared config/eslint/base.mjs using direct plugin imports
- Migrate store, theme, utils, and tx-builder to the shared config
- Add packageExtensions in .yarnrc.yml so eslint-config-next in
  apps/web can still resolve next as a peer dependency

Co-authored-by: Hanzo Dev <dev@hanzo.ai>

* chore: align react 19.2 across workspaces and fix MUI peer dep

- Bump react/react-dom to 19.2.0 in web and tx-builder to match
  mobile
- Add @mui/material as optional peer dependency in theme package to
  avoid duplicate installations causing type conflicts

Co-authored-by: Hanzo Dev <dev@hanzo.ai>

* chore(mobile): update storybook on mobile to v10

* fix(web): resolve @emotion/react hoisting issue after Expo SDK 55 upgrade

Yarn 4's node-modules hoisting shifted after dependency graph changes,
leaving @emotion/react only in apps/web/node_modules while @mui/styled-engine
remained at root. Add webpack resolve aliases to ensure Next.js finds emotion
packages from the web workspace.

Co-authored-by: Hanzo Dev <dev@hanzo.ai>

* fix(web): resolve @emotion hoisting issue in Jest config

Same hoisting fix as next.config.mjs but for Jest's module resolution.
Add moduleNameMapper entries for @emotion/react and @emotion/styled.

Co-authored-by: Hanzo Dev <dev@hanzo.ai>

* fix(tx-builder): prettier

* fix: resolve type-check errors after Expo SDK 55 upgrade

- Fix BlurView tint prop: map ColorSchemeName to valid BlurTint values
- Replace @storybook/test imports with storybook/test (merged in v10)
- Align @types/react (~19.2.10) and @types/react-dom (~19.2.0) across
  all workspaces to prevent duplicate @mui/material type mismatches
- Spread visuallyHidden into sx prop for @types/react 19.2.x compat
- Add @types/react, @types/react-dom, storybook to yarn version checker

Co-authored-by: Hanzo Dev <dev@hanzo.ai>

* chore: align more dependencies

* chore(web): update storybook snapshot

* fix(mobile): normalize color scheme and deduplicate MUI/emotion packages

- Normalize useTheme colorScheme to 'light' | 'dark', never 'unspecified'
  so TamaguiProvider always receives a valid theme name
- Update ColorScheme type to exclude 'unspecified'
- Remove redundant ?? 'light' fallbacks in SafeThemeProvider
- Align @emotion/* and @mui/icons-material versions across workspaces
  to prevent Yarn from creating duplicate lockfile resolutions
- Remove emotion webpack/Jest aliases (no longer needed after dedup)
- Add @emotion/react, @emotion/styled, @mui/material, @mui/icons-material
  to yarn version consistency checker

Co-authored-by: Hanzo Dev <dev@hanzo.ai>

---------

Co-authored-by: Hanzo Dev <dev@hanzo.ai>
2026-03-18 09:29:16 +01:00

221 lines
9.2 KiB
JSON

{
"name": "@safe-global/web",
"homepage": "https://github.com/safe-global/safe-wallet-web",
"license": "GPL-3.0",
"version": "1.84.0",
"type": "module",
"scripts": {
"dev": "cross-env USE_RSPACK=1 next dev",
"dev:full": "cross-env USE_RSPACK=0 ENABLE_PWA=1 ENABLE_EXPERIMENTAL_OPTIMIZATIONS=1 next dev",
"start": "next dev",
"build": "yarn fetch-chains && next build",
"lint": "eslint src",
"lint:fix": "eslint src --fix",
"type-check": "tsc --noEmit",
"prettier": "prettier --check . --config ../../.prettierrc --ignore-path ../../.prettierignore",
"prettier:fix": "prettier --write . --config ../../.prettierrc --ignore-path ../../.prettierignore",
"fix": "yarn lint:fix && ts-prune && yarn prettier:fix",
"knip": "knip",
"knip:exports": "knip --exports",
"test": "cross-env TZ=CET LC_ALL=C DEBUG_PRINT_LIMIT=30000 NODE_ENV=test jest",
"test:ci": "cross-env NODE_ENV=test yarn test --ci --silent --coverage --json --watchAll=false --testLocationInResults --outputFile=report.json",
"test:coverage": "cross-env NODE_ENV=test yarn test --coverage --watchAll=false",
"cmp": "./scripts/cmp.sh",
"routes": "node scripts/generate-routes.js > src/config/routes.ts && prettier -w src/config/routes.ts && cat src/config/routes.ts",
"css-vars": "npx -y tsx ./scripts/css-vars.ts > ./src/styles/vars.css && prettier -w src/styles/vars.css",
"fetch-chains": "npx -y tsx ./scripts/fetch-chains.ts",
"generate-types": "typechain --target ethers-v6 --out-dir ../../packages/utils/src/types/contracts ../../node_modules/@safe-global/safe-deployments/dist/assets/**/*.json ../../node_modules/@safe-global/safe-modules-deployments/dist/assets/**/*.json ../../node_modules/@openzeppelin/contracts/build/contracts/ERC20.json ../../node_modules/@openzeppelin/contracts/build/contracts/ERC721.json",
"after-install": "yarn generate-types",
"postinstall": "yarn after-install && yarn fetch-chains",
"analyze": "cross-env ANALYZE=true yarn build",
"cypress:open": "cross-env TZ=UTC NODE_ENV=cypress cypress open --e2e",
"cypress:canary": "cross-env TZ=UTC NODE_ENV=cypress cypress open --e2e -b chrome:canary",
"cypress:run": "cross-env NODE_ENV=cypress cypress run",
"cypress:ci": "cross-env NODE_ENV=cypress yarn cypress:run --config baseUrl=http://localhost:8080 --spec cypress/e2e/smoke/*.cy.js",
"serve": "sh -c 'npx -y serve out -p ${REVERSE_PROXY_UI_PORT:=8080}'",
"static-serve": "yarn build && yarn serve",
"storybook": "storybook dev -p 6006",
"storybook:lazy": "cross-env STORYBOOK_LAZY=true storybook dev -p 6006",
"storybook:vite": "storybook dev -p 6006 --config-dir .storybook-vite",
"build-storybook": "storybook build --quiet",
"build-storybook:vite": "storybook build --quiet --config-dir .storybook-vite",
"test:storybook": "cross-env NODE_ENV=test TZ=UTC jest --testMatch '**/*.stories.test.tsx' --testPathIgnorePatterns='/node_modules/' --testPathIgnorePatterns='/.next/'",
"test:storybook:ci": "cross-env NODE_ENV=test TZ=UTC yarn test:storybook --ci --silent --coverage=false --watchAll=false --testTimeout=30000",
"test:visual": "cross-env TZ=UTC test-storybook --url http://localhost:6006",
"test:visual:ci": "cross-env TZ=UTC test-storybook --url http://localhost:6006 --ci",
"test:visual:update": "cross-env TZ=UTC test-storybook --url http://localhost:6006 -u",
"generate:storybook-tests": "node scripts/generate-storybook-tests.cjs",
"integrity": "node scripts/integrity-hashes.cjs",
"storybook:generate-coverage": "npx tsx ../../scripts/storybook/generate-storybook-coverage.ts && prettier -w .storybook/COVERAGE.md",
"chromatic": "chromatic --project-token=$CHROMATIC_PROJECT_TOKEN"
},
"engines": {
"node": ">=18"
},
"dependencies": {
"@base-ui/react": "^1.1.0",
"@cowprotocol/widget-react": "0.14.6",
"@datadog/browser-rum": "^6.24.1",
"@ducanh2912/next-pwa": "^10.2.9",
"@emotion/cache": "^11.14.0",
"@emotion/react": "^11.14.0",
"@emotion/server": "^11.11.0",
"@emotion/styled": "^11.14.0",
"@gnosis.pm/zodiac": "^4.0.3",
"@ledgerhq/context-module": "^1.8.0",
"@ledgerhq/device-management-kit": "^0.9.1",
"@ledgerhq/device-signer-kit-ethereum": "^1.8.0",
"@ledgerhq/device-transport-kit-web-hid": "^1.2.0",
"@mui/icons-material": "^6.5.0",
"@mui/material": "^6.5.0",
"@mui/x-date-pickers": "^7.23.3",
"@next/third-parties": "^15.2.0",
"@reduxjs/toolkit": "^2.11.0",
"@reown/walletkit": "^1.2.7",
"@safe-global/api-kit": "^2.4.6",
"@safe-global/protocol-kit": "^5.2.25",
"@safe-global/safe-apps-sdk": "^9.1.0",
"@safe-global/safe-deployments": "^1.37.52",
"@safe-global/safe-modules-deployments": "^2.2.24",
"@safe-global/store": "workspace:^",
"@safe-global/theme": "workspace:^",
"@tailwindcss/postcss": "^4.1.18",
"@trezor/connect-web": "9.7.2",
"@walletconnect/core": "^2.21.10",
"@walletconnect/utils": "^2.21.10",
"@web3-onboard/coinbase": "^2.4.2",
"@web3-onboard/core": "^2.24.1",
"@web3-onboard/hw-common": "^2.3.3",
"@web3-onboard/injected-wallets": "^2.11.3",
"@web3-onboard/walletconnect": "2.6.2",
"blo": "^1.1.1",
"class-variance-authority": "^0.7.1",
"classnames": "^2.5.1",
"clsx": "^2.1.1",
"cmdk": "^1.1.1",
"date-fns": "^4.1.0",
"embla-carousel-react": "^8.6.0",
"ethers": "6.14.3",
"exponential-backoff": "^3.1.0",
"firebase": "^11.1.0",
"fuse.js": "^7.1.0",
"idb-keyval": "^6.2.1",
"input-otp": "^1.4.2",
"js-cookie": "^3.0.1",
"lodash": "^4.17.23",
"lucide-react": "^0.563.0",
"mixpanel-browser": "^2.66.0",
"next": "patch:next@15.5.8#../../.yarn/patches/next-npm-15.5.8-7d525d02b9.patch",
"next-themes": "^0.4.6",
"papaparse": "^5.3.2",
"postcss": "^8.5.6",
"qrcode.react": "^3.1.0",
"react": "19.2.0",
"react-day-picker": "^9.13.0",
"react-dom": "19.2.0",
"react-dropzone": "^14.2.3",
"react-hook-form": "7.41.1",
"react-papaparse": "^4.0.2",
"react-redux": "^9.1.2",
"react-resizable-panels": "^4.5.3",
"recharts": "2.15.4",
"semver": "^7.7.1",
"sonner": "^2.0.7",
"tailwind-merge": "^3.4.0",
"tailwindcss": "^4.1.18",
"tw-animate-css": "^1.4.0",
"vaul": "^1.1.2",
"zodiac-roles-deployments": "^2.3.4"
},
"devDependencies": {
"@argos-ci/cypress": "6.2.11",
"@chromatic-com/storybook": "^4.1.2",
"@cowprotocol/app-data": "^3.1.0",
"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.18.0",
"@faker-js/faker": "^9.0.3",
"@mdx-js/loader": "^3.0.1",
"@mdx-js/react": "^3.0.1",
"@next/bundle-analyzer": "^15.0.4",
"@next/mdx": "^15.0.4",
"@openzeppelin/contracts": "^4.9.6",
"@playwright/test": "^1.57.0",
"@rspack/plugin-react-refresh": "^1.0.0",
"@safe-global/test": "workspace:^",
"@safe-global/types-kit": "^1.0.5",
"@storybook/addon-designs": "^11.0.1",
"@storybook/addon-docs": "^10.2.6",
"@storybook/addon-links": "^10.2.6",
"@storybook/addon-onboarding": "^10.2.6",
"@storybook/addon-themes": "^10.2.6",
"@storybook/builder-webpack5": "^10.2.6",
"@storybook/nextjs": "^10.2.6",
"@storybook/nextjs-vite": "^10.2.6",
"@storybook/react": "^10.2.6",
"@storybook/react-dom-shim": "^10.2.6",
"@storybook/test-runner": "^0.24.2",
"@svgr/core": "^8.1.0",
"@svgr/plugin-jsx": "^8.1.0",
"@svgr/webpack": "^8.1.0",
"@testing-library/cypress": "^10.1.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.1.0",
"@testing-library/user-event": "^14.5.2",
"@typechain/ethers-v6": "^0.5.1",
"@types/jest": "^29.5.14",
"@types/jest-image-snapshot": "^6.4.0",
"@types/js-cookie": "^3.0.6",
"@types/lodash": "^4.14.182",
"@types/mdx": "^2.0.13",
"@types/node": "22.13.1",
"@types/qrcode": "^1.5.5",
"@types/react": "~19.2.10",
"@types/react-dom": "~19.2.0",
"@types/semver": "^7.3.10",
"@typescript-eslint/eslint-plugin": "^7.6.0",
"@typescript-eslint/parser": "^8.18.1",
"cheerio": "^1.0.0",
"chromatic": "^13.3.5",
"cross-env": "^7.0.3",
"cypress": "^15.9.0",
"eslint": "^9.29.0",
"eslint-config-next": "^15.0.4",
"eslint-plugin-no-only-tests": "^3.3.0",
"eslint-plugin-storybook": "^10.1.10",
"eslint-plugin-unused-imports": "^4.1.4",
"fake-indexeddb": "^4.0.2",
"http-server": "^14.1.1",
"husky": "^9.0.11",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-fixed-jsdom": "^0.0.10",
"jest-image-snapshot": "^6.5.1",
"knip": "^5.0.0",
"lost-pixel": "^3.22.0",
"mockdate": "^3.0.5",
"msw": "^2.7.3",
"msw-storybook-addon": "^2.0.6",
"next-rspack": "^16.0.1",
"prettier": "^3.6.2",
"remark-frontmatter": "^5.0.0",
"remark-gfm": "^4.0.0",
"remark-heading-id": "^1.0.1",
"remark-mdx-frontmatter": "^5.2.0",
"shadcn": "^3.7.0",
"storybook": "^10.2.7",
"ts-prune": "^0.10.3",
"typechain": "^8.3.2",
"typescript": "~5.9.2",
"typescript-plugin-css-modules": "^4.2.2",
"vite": "^7.3.1",
"vite-plugin-svgr": "^4.5.0",
"wait-on": "^9.0.3"
},
"nextBundleAnalysis": {
"budget": null,
"budgetPercentIncreaseRed": 20,
"minimumChangeThreshold": 0,
"showDetails": true
}
}