Skip to content

Commit

Permalink
chore: update deps & render widget after mount (#225)
Browse files Browse the repository at this point in the history
* render widget after mount & update deps

* update deps again
  • Loading branch information
kasparkallas authored Oct 26, 2023
1 parent b073691 commit 5a167d0
Show file tree
Hide file tree
Showing 18 changed files with 1,458 additions and 1,427 deletions.
5 changes: 5 additions & 0 deletions .changeset/curly-socks-worry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@superfluid-finance/widget": patch
---

Render widget after mount (no SSR)
5 changes: 5 additions & 0 deletions .changeset/mean-hounds-yawn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@superfluid-finance/widget": patch
---

Update deps
24 changes: 12 additions & 12 deletions apps/hosted-widget/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"build": "next build",
"dev": "next dev",
"dev": "next dev --port 3001",
"lint": "next lint",
"post-update": "echo \"codesandbox preview only, need an update\" && yarn upgrade --latest",
"start": "next start",
Expand All @@ -15,10 +15,10 @@
"@emotion/react": "^11.11.1",
"@emotion/server": "^11.11.0",
"@emotion/styled": "^11.11.0",
"@mui/icons-material": "^5.14.12",
"@mui/material": "^5.14.12",
"@segment/analytics-next": "^1.56.0",
"@sentry/nextjs": "^7.72.0",
"@mui/icons-material": "^5.14.15",
"@mui/material": "^5.14.15",
"@segment/analytics-next": "^1.59.0",
"@sentry/nextjs": "^7.75.1",
"@superfluid-finance/widget": "workspace:*",
"@web3modal/ethereum": "^2.7.1",
"@web3modal/react": "^2.7.1",
Expand All @@ -27,16 +27,16 @@
"react": "^18.2.0",
"react-blockies": "^1.4.1",
"react-dom": "^18.2.0",
"viem": "^1.16.2",
"wagmi": "^1.4.3",
"viem": "^1.17.1",
"wagmi": "^1.4.5",
"zod": "^3.22.4"
},
"devDependencies": {
"@types/node": "^20.8.4",
"@types/react": "^18.2.27",
"@types/react-blockies": "^1.4.2",
"eslint": "^8.51.0",
"eslint-config-next": "^13.5.4",
"@types/node": "^20.8.9",
"@types/react": "^18.2.33",
"@types/react-blockies": "^1.4.3",
"eslint": "^8.52.0",
"eslint-config-next": "^13.5.6",
"typescript": "^5.2.2"
}
}
34 changes: 17 additions & 17 deletions apps/widget-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"build": "next build",
"dev": "next dev",
"dev": "next dev --port 3000",
"lint": "next lint",
"post-update": "echo \"codesandbox preview only, need an update\" && yarn upgrade --latest",
"start": "next start",
Expand All @@ -15,43 +15,43 @@
"@emotion/react": "^11.11.1",
"@emotion/server": "^11.11.0",
"@emotion/styled": "^11.11.0",
"@faker-js/faker": "^8.1.0",
"@faker-js/faker": "^8.2.0",
"@monaco-editor/react": "^4.6.0",
"@mui/icons-material": "^5.14.12",
"@mui/icons-material": "^5.14.15",
"@mui/lab": "5.0.0-alpha.147",
"@mui/material": "^5.14.12",
"@mui/material": "^5.14.15",
"@pinata/sdk": "^2.1.0",
"@segment/analytics-next": "^1.56.0",
"@sentry/nextjs": "^7.72.0",
"@segment/analytics-next": "^1.59.0",
"@sentry/nextjs": "^7.75.1",
"@superfluid-finance/widget": "workspace:*",
"@web3modal/ethereum": "^2.7.1",
"@web3modal/react": "^2.7.1",
"clsx": "^2.0.0",
"lodash": "^4.17.21",
"lru-cache": "^10.0.1",
"monaco-editor": "^0.44.0",
"mui-color-input": "^2.0.0",
"mui-color-input": "^2.0.1",
"next": "13.4.19",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-google-recaptcha": "^3.1.0",
"react-hook-form": "~7.47.0",
"request-ip": "^3.3.0",
"viem": "^1.16.2",
"wagmi": "^1.4.3",
"viem": "^1.17.1",
"wagmi": "^1.4.5",
"zod": "^3.22.4",
"zod-to-json-schema": "^3.21.4"
},
"devDependencies": {
"@hookform/devtools": "^4.3.1",
"@types/lodash": "^4.14.199",
"@types/node": "^20.8.4",
"@types/react": "^18.2.27",
"@types/react-dom": "^18.2.12",
"@types/react-google-recaptcha": "^2.1.6",
"@types/request-ip": "^0.0.39",
"eslint": "^8.51.0",
"eslint-config-next": "^13.5.4",
"@types/lodash": "^4.14.200",
"@types/node": "^20.8.9",
"@types/react": "^18.2.33",
"@types/react-dom": "^18.2.14",
"@types/react-google-recaptcha": "^2.1.7",
"@types/request-ip": "^0.0.40",
"eslint": "^8.52.0",
"eslint-config-next": "^13.5.6",
"typescript": "^5.2.2"
}
}
12 changes: 6 additions & 6 deletions examples/b2b-service-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@
"tsc": "tsc --noEmit"
},
"dependencies": {
"@sentry/nextjs": "^7.72.0",
"@sentry/nextjs": "^7.75.1",
"@superfluid-finance/widget": "workspace:*",
"@web3modal/ethereum": "^2.7.1",
"@web3modal/react": "^2.7.1",
"next": "13.4.19",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-use-intercom": "^5.1.4",
"viem": "^1.16.2",
"wagmi": "^1.4.3",
"viem": "^1.17.1",
"wagmi": "^1.4.5",
"zod": "^3.22.4"
},
"devDependencies": {
"@types/node": "20.8.4",
"@types/react": "18.2.27",
"@types/react-dom": "18.2.12",
"@types/node": "20.8.9",
"@types/react": "18.2.33",
"@types/react-dom": "18.2.14",
"typescript": "5.2.2"
}
}
12 changes: 6 additions & 6 deletions examples/donation-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@
"tsc": "tsc --noEmit"
},
"dependencies": {
"@sentry/nextjs": "^7.72.0",
"@sentry/nextjs": "^7.75.1",
"@superfluid-finance/widget": "workspace:*",
"@web3modal/ethereum": "^2.7.1",
"@web3modal/react": "^2.7.1",
"next": "13.4.19",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-use-intercom": "^5.1.4",
"viem": "^1.16.2",
"wagmi": "^1.4.3",
"viem": "^1.17.1",
"wagmi": "^1.4.5",
"zod": "^3.22.4"
},
"devDependencies": {
"@types/node": "20.8.4",
"@types/react": "18.2.27",
"@types/react-dom": "18.2.12",
"@types/node": "20.8.9",
"@types/react": "18.2.33",
"@types/react-dom": "18.2.14",
"typescript": "5.2.2"
}
}
1 change: 0 additions & 1 deletion examples/donation-demo/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ export default function App({ Component, pageProps }: AppProps) {
<IntercomProvider appId={IntercomAppID}>
<WagmiConfig config={demoConfig}>
<Component {...pageProps} />

<Web3Modal
projectId={WalletConnectProjectID}
ethereumClient={ethereumClient}
Expand Down
12 changes: 6 additions & 6 deletions examples/gated-community-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@
"tsc": "tsc --noEmit"
},
"dependencies": {
"@sentry/nextjs": "^7.72.0",
"@sentry/nextjs": "^7.75.1",
"@superfluid-finance/widget": "workspace:*",
"@web3modal/ethereum": "^2.7.1",
"@web3modal/react": "^2.7.1",
"next": "13.4.19",
"react": "18.2.0",
"react-dom": "18.2.0",
"viem": "^1.16.2",
"wagmi": "^1.4.3",
"viem": "^1.17.1",
"wagmi": "^1.4.5",
"zod": "^3.22.4"
},
"devDependencies": {
"@types/node": "20.8.4",
"@types/react": "18.2.27",
"@types/react-dom": "18.2.12",
"@types/node": "20.8.9",
"@types/react": "18.2.33",
"@types/react-dom": "18.2.14",
"typescript": "5.2.2"
}
}
18 changes: 9 additions & 9 deletions examples/widget-vite-react-rainbowkit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,24 @@
"tsc": "tsc --noEmit"
},
"dependencies": {
"@rainbow-me/rainbowkit": "^1.1.1",
"@rainbow-me/rainbowkit": "^1.1.3",
"@superfluid-finance/widget": "workspace:*",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"viem": "^1.16.2",
"wagmi": "^1.4.3",
"viem": "^1.17.1",
"wagmi": "^1.4.5",
"zod": "^3.22.4"
},
"devDependencies": {
"@types/react": "^18.2.27",
"@types/react-dom": "^18.2.12",
"@typescript-eslint/eslint-plugin": "^6.7.5",
"@typescript-eslint/parser": "^6.7.5",
"@types/react": "^18.2.33",
"@types/react-dom": "^18.2.14",
"@typescript-eslint/eslint-plugin": "^6.9.0",
"@typescript-eslint/parser": "^6.9.0",
"@vitejs/plugin-react": "^4.1.0",
"eslint": "^8.51.0",
"eslint": "^8.52.0",
"eslint-plugin-react-hooks": "5.0.0-canary-41f0e9dae-20230907",
"eslint-plugin-react-refresh": "^0.4.3",
"typescript": "^5.2.2",
"vite": "^4.4.11"
"vite": "^4.5.0"
}
}
16 changes: 8 additions & 8 deletions examples/widget-vite-react-web3modal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@
"@web3modal/react": "^2.7.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"viem": "^1.16.2",
"wagmi": "^1.4.3",
"viem": "^1.17.1",
"wagmi": "^1.4.5",
"zod": "^3.22.4"
},
"devDependencies": {
"@types/react": "^18.2.27",
"@types/react-dom": "^18.2.12",
"@typescript-eslint/eslint-plugin": "^6.7.5",
"@typescript-eslint/parser": "^6.7.5",
"@types/react": "^18.2.33",
"@types/react-dom": "^18.2.14",
"@typescript-eslint/eslint-plugin": "^6.9.0",
"@typescript-eslint/parser": "^6.9.0",
"@vitejs/plugin-react": "^4.1.0",
"eslint": "^8.51.0",
"eslint": "^8.52.0",
"eslint-plugin-react-hooks": "5.0.0-canary-41f0e9dae-20230907",
"eslint-plugin-react-refresh": "^0.4.3",
"typescript": "^5.2.2",
"vite": "^4.4.11"
"vite": "^4.5.0"
}
}
4 changes: 2 additions & 2 deletions examples/widget-webcomponent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
"tsc": "tsc --noEmit"
},
"dependencies": {
"@superfluid-finance/tokenlist": "^3.2.0",
"@superfluid-finance/tokenlist": "^3.3.2",
"@superfluid-finance/widget": "workspace:*"
},
"devDependencies": {
"typescript": "^5.2.2",
"vite": "^4.4.11"
"vite": "^4.5.0"
}
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@
},
"devDependencies": {
"@changesets/cli": "^2.26.2",
"eslint": "^8.51.0",
"eslint": "^8.52.0",
"eslint-config-custom": "workspace:*",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-unused-imports": "^3.0.0",
"husky": "^8.0.3",
"lint-staged": "^14.0.0",
"lint-staged": "^15.0.2",
"npm-run-all": "^4.1.5",
"prettier": "^3.0.3",
"turbo": "^1.10.15",
"turbo": "^1.10.16",
"typescript": "^5.2.2"
},
"packageManager": "pnpm@8.6.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-config-custom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"license": "MIT",
"main": "index.js",
"dependencies": {
"eslint-config-next": "^13.5.4",
"eslint-config-next": "^13.5.6",
"eslint-config-prettier": "^9.0.0",
"eslint-config-turbo": "^1.10.15",
"eslint-config-turbo": "^1.10.16",
"eslint-plugin-react": "^7.33.2"
},
"publishConfig": {
Expand Down
30 changes: 15 additions & 15 deletions packages/widget/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,19 @@
"dependencies": {
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@hookform/resolvers": "^3.3.1",
"@mui/icons-material": "^5.14.12",
"@hookform/resolvers": "^3.3.2",
"@mui/icons-material": "^5.14.15",
"@mui/lab": "5.0.0-alpha.147",
"@mui/utils": "^5.14.12",
"@superfluid-finance/metadata": "^1.1.17",
"@superfluid-finance/tokenlist": "^3.2.0",
"abitype": "^0.9.10",
"@mui/utils": "^5.14.15",
"@superfluid-finance/metadata": "^1.1.18",
"@superfluid-finance/tokenlist": "^3.3.2",
"abitype": "^0.10.1",
"blockies-ts": "^1.0.0",
"immer": "^10.0.3",
"lodash.isequal": "^4.5.0",
"lodash.memoize": "^4.1.2",
"lodash.uniqwith": "^4.5.0",
"nanoid": "^5.0.1",
"nanoid": "^5.0.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-error-boundary": "^4.0.11",
Expand All @@ -83,23 +83,23 @@
"zod-validation-error": "^1.4.0"
},
"devDependencies": {
"@mui/material": "^5.14.12",
"@mui/material": "^5.14.15",
"@superfluid-finance/ethereum-contracts": "^1.8.1",
"@testing-library/react": "^14.0.0",
"@types/lodash.isequal": "^4.5.6",
"@types/lodash.memoize": "^4.1.7",
"@types/lodash.uniqwith": "^4.5.7",
"@types/react": "^18.2.27",
"@types/react-dom": "^18.2.12",
"@types/lodash.isequal": "^4.5.7",
"@types/lodash.memoize": "^4.1.8",
"@types/lodash.uniqwith": "^4.5.8",
"@types/react": "^18.2.33",
"@types/react-dom": "^18.2.14",
"@vitejs/plugin-react": "^4.1.0",
"@wagmi/cli": "^1.5.2",
"jsdom": "^22.1.0",
"tsconfig": "workspace:*",
"typedoc": "^0.25.2",
"typescript": "^5.2.2",
"viem": "^1.16.2",
"viem": "^1.17.1",
"vitest": "^0.34.6",
"wagmi": "^1.4.3"
"wagmi": "^1.4.5"
},
"peerDependencies": {
"viem": ">=1",
Expand Down
Loading

6 comments on commit 5a167d0

@vercel
Copy link

@vercel vercel bot commented on 5a167d0 Oct 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 5a167d0 Oct 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 5a167d0 Oct 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 5a167d0 Oct 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 5a167d0 Oct 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 5a167d0 Oct 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.