Skip to content
This repository was archived by the owner on Aug 27, 2025. It is now read-only.

Commit 8248da2

Browse files
authored
Merge pull request #49 from Crossbell-Box/feat/integrate-connect-kit
feat: update `@crossbell/connect-kit` to `1.4.8`
2 parents 87919a6 + a39c291 commit 8248da2

17 files changed

Lines changed: 2202 additions & 3357 deletions

next.config.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,29 @@ const nextConfig = {
2222
async generateBuildId() {
2323
return execSync(lastCommitCommand).toString().trim()
2424
},
25+
26+
webpack: (config) => {
27+
// https://github.com/WalletConnect/walletconnect-monorepo/blob/7716e164281c2f531145d682c3658f761fa0a823/providers/universal-provider/src/utils/deepLinks.ts#L39
28+
// @walletconnect/universal-provider imports react-native conditionally.
29+
// Since this is a NextJS app, simply mark it as external to avoid the webpack bundling warning.
30+
config.externals.push("react-native")
31+
32+
// https://github.com/WalletConnect/walletconnect-monorepo/issues/1908#issuecomment-1487801131
33+
config.externals.push("pino-pretty", "lokijs", "encoding")
34+
35+
// https://github.com/WalletConnect/walletconnect-legacy/blob/main/packages/client/src/socket.ts#L19
36+
// @walletconnect/legacy-client imports 'ws' for the NodeJS environment, which causes bundle errors.
37+
// Since we use 'walletconnect' only in the browser, mark it as external to avoid webpack bundling warnings.
38+
config.externals.push("ws")
39+
40+
// https://github.com/WalletConnect/walletconnect-utils/blob/b7d7dc003c25dd33ef74c2fac483140f71a51d86/jsonrpc/http-connection/src/http.ts#L2
41+
// `@walletconnect/jsonrpc-http-connection` imports `cross-fetch` to support fetch in Node.js. It's unnecessary for Next.JS app.
42+
config.resolve.alias["cross-fetch"] = require.resolve(
43+
"next/dist/build/polyfills/fetch/index.js",
44+
)
45+
46+
return config
47+
},
2548
}
2649

2750
module.exports = nextConfig

package.json

Lines changed: 50 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -13,82 +13,83 @@
1313
"**/*": "prettier --write --ignore-unknown"
1414
},
1515
"dependencies": {
16-
"@crossbell/connect-kit": "0.0.55",
17-
"@crossbell/contract": "0.0.55",
18-
"@crossbell/indexer": "0.0.55",
19-
"@crossbell/notification": "^0.0.55",
20-
"@crossbell/ui": "0.0.55",
21-
"@crossbell/util-ethers": "0.0.55",
22-
"@crossbell/util-hooks": "0.0.55",
23-
"@crossbell/util-metadata": "0.0.55",
24-
"@ctrl/tinycolor": "^3.5.0",
25-
"@emotion/react": "^11.10.5",
26-
"@floating-ui/react": "^0.19.1",
16+
"@crossbell/connect-kit": "1.4.8",
17+
"@crossbell/contract": "1.4.8",
18+
"@crossbell/indexer": "1.4.8",
19+
"@crossbell/notification": "^1.4.8",
20+
"@crossbell/ui": "1.4.8",
21+
"@crossbell/util-ethers": "1.4.0",
22+
"@crossbell/util-hooks": "1.4.4",
23+
"@crossbell/util-metadata": "1.4.0",
24+
"@ctrl/tinycolor": "^3.6.0",
25+
"@emotion/react": "^11.11.1",
26+
"@floating-ui/react": "^0.24.3",
2727
"@floating-ui/react-dom-interactions": "^0.13.3",
28-
"@heroicons/react": "^2.0.15",
29-
"@mantine/core": "^5.10.3",
30-
"@mantine/hooks": "^5.10.3",
31-
"@tanstack/react-query": "^4.24.4",
32-
"@tanstack/react-query-persist-client": "^4.24.4",
33-
"axios": "^1.3.2",
28+
"@heroicons/react": "^2.0.18",
29+
"@mantine/core": "^6.0.14",
30+
"@mantine/hooks": "^6.0.14",
31+
"@tanstack/react-query": "^4.29.17",
32+
"@tanstack/react-query-persist-client": "^4.29.17",
33+
"axios": "^1.4.0",
3434
"clsx": "^1.2.1",
35-
"crossbell.js": "^0.19.5",
36-
"dayjs": "^1.11.7",
37-
"downshift": "^7.2.0",
35+
"crossbell": "^1.4.0",
36+
"dayjs": "^1.11.8",
37+
"downshift": "^7.6.0",
3838
"hast": "^1.0.0",
39-
"idb-keyval": "^6.2.0",
40-
"immer": "^9.0.19",
41-
"ioredis": "^5.3.0",
39+
"idb-keyval": "^6.2.1",
40+
"immer": "^10.0.2",
41+
"ioredis": "^5.3.2",
4242
"js-yaml": "^4.1.0",
43-
"mdast-util-to-string": "^3.1.1",
44-
"next": "13.1.6",
43+
"mdast-util-to-string": "^3.2.0",
44+
"next": "13.4.7",
4545
"nextjs-progressbar": "^0.0.16",
4646
"react": "18.2.0",
4747
"react-dom": "18.2.0",
48-
"react-hook-form": "^7.43.1",
49-
"react-hot-toast": "^2.4.0",
48+
"react-hook-form": "^7.45.0",
49+
"react-hot-toast": "^2.4.1",
5050
"react-infinite-scroller": "^1.2.6",
51-
"react-parallax-tilt": "^1.7.100",
51+
"react-parallax-tilt": "^1.7.150",
5252
"react-scroll": "^1.8.9",
53-
"refractor": "^4.8.0",
53+
"refractor": "^4.8.1",
5454
"rehype-infer-description-meta": "^1.1.0",
55-
"rehype-prism-plus": "^1.5.1",
55+
"rehype-prism-plus": "^1.6.1",
5656
"rehype-raw": "^6.1.1",
57-
"rehype-react": "^7.1.2",
57+
"rehype-react": "^7.2.0",
5858
"rehype-sanitize": "^5.0.1",
5959
"rehype-stringify": "^9.0.3",
6060
"remark-directive": "^2.0.1",
6161
"remark-directive-rehype": "^0.4.2",
6262
"remark-frontmatter": "^4.0.1",
6363
"remark-gfm": "^3.0.1",
64-
"remark-parse": "^10.0.1",
64+
"remark-parse": "^10.0.2",
6565
"remark-rehype": "^10.1.0",
66-
"sharp": "^0.31.3",
66+
"sharp": "^0.32.1",
6767
"underscore": "^1.13.6",
6868
"unified": "^10.1.2",
6969
"unist-builder": "^3.0.1",
7070
"unist-util-visit": "^4.1.2",
71-
"wagmi": "0.12.7",
72-
"zustand": "^4.3.2"
71+
"viem": "^1.1.7",
72+
"wagmi": "1.3.0",
73+
"zustand": "^4.3.8"
7374
},
7475
"devDependencies": {
75-
"@tailwindcss/line-clamp": "^0.4.2",
76+
"@tailwindcss/line-clamp": "^0.4.4",
7677
"@types/hast": "^2.3.4",
7778
"@types/js-yaml": "^4.0.5",
78-
"@types/node": "18.13.0",
79-
"@types/react": "18.0.27",
80-
"@types/react-dom": "18.0.10",
79+
"@types/node": "20.3.2",
80+
"@types/react": "18.2.14",
81+
"@types/react-dom": "18.2.6",
8182
"@types/react-infinite-scroller": "^1.2.3",
82-
"@types/react-scroll": "^1.8.6",
83-
"@types/underscore": "^1.11.4",
84-
"autoprefixer": "^10.4.13",
85-
"eslint": "8.33.0",
86-
"eslint-config-next": "13.1.6",
83+
"@types/react-scroll": "^1.8.7",
84+
"@types/underscore": "^1.11.5",
85+
"autoprefixer": "^10.4.14",
86+
"eslint": "8.43.0",
87+
"eslint-config-next": "13.4.7",
8788
"husky": "^8.0.3",
88-
"lint-staged": "^13.1.1",
89-
"postcss": "^8.4.21",
90-
"prettier": "^2.8.4",
91-
"tailwindcss": "^3.2.6",
92-
"typescript": "4.9.5"
89+
"lint-staged": "^13.2.2",
90+
"postcss": "^8.4.24",
91+
"prettier": "^2.8.8",
92+
"tailwindcss": "^3.3.2",
93+
"typescript": "5.1.3"
9394
}
9495
}

0 commit comments

Comments
 (0)