From 2c44526ccb45e5242b0745421699b432ff1547ea Mon Sep 17 00:00:00 2001 From: tokdaniel Date: Thu, 2 Nov 2023 13:10:24 +0100 Subject: [PATCH] added route to load invoice and prefill email --- apps/frontend/pnpm-lock.yaml | 393 ++++++++---------- apps/frontend/src/backend-openapi-client.d.ts | 69 +-- apps/frontend/src/pages/[product].tsx | 5 +- apps/frontend/src/pages/invoice/[id].tsx | 87 ++++ apps/frontend/src/pages/pricing.tsx | 5 + 5 files changed, 301 insertions(+), 258 deletions(-) create mode 100644 apps/frontend/src/pages/invoice/[id].tsx diff --git a/apps/frontend/pnpm-lock.yaml b/apps/frontend/pnpm-lock.yaml index 8122d0d..b606cb2 100644 --- a/apps/frontend/pnpm-lock.yaml +++ b/apps/frontend/pnpm-lock.yaml @@ -1,4 +1,4 @@ -lockfileVersion: '6.0' +lockfileVersion: '6.1' settings: autoInstallPeers: true @@ -10,22 +10,22 @@ dependencies: version: 11.11.0 '@emotion/react': specifier: latest - version: 11.11.1(@types/react@18.2.34)(react@18.2.0) + version: 11.11.1(@types/react@18.2.28)(react@18.2.0) '@emotion/server': specifier: latest version: 11.11.0 '@emotion/styled': specifier: latest - version: 11.11.0(@emotion/react@11.11.1)(@types/react@18.2.34)(react@18.2.0) + version: 11.11.0(@emotion/react@11.11.1)(@types/react@18.2.28)(react@18.2.0) '@mui/icons-material': specifier: latest - version: 5.14.16(@mui/material@5.14.16)(@types/react@18.2.34)(react@18.2.0) + version: 5.14.14(@mui/material@5.14.14)(@types/react@18.2.28)(react@18.2.0) '@mui/material': specifier: latest - version: 5.14.16(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(@types/react@18.2.34)(react-dom@18.2.0)(react@18.2.0) + version: 5.14.14(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(@types/react@18.2.28)(react-dom@18.2.0)(react@18.2.0) '@superfluid-finance/widget': specifier: 0.0.0-dev-20231026111944 - version: 0.0.0-dev-20231026111944(@mui/material@5.14.16)(@types/react@18.2.34)(typescript@5.2.2)(viem@1.17.1)(wagmi@1.4.5) + version: 0.0.0-dev-20231026111944(@mui/material@5.14.14)(@types/react@18.2.28)(typescript@5.2.2)(viem@1.17.1)(wagmi@1.4.5) clsx: specifier: ^2.0.0 version: 2.0.0 @@ -34,7 +34,7 @@ dependencies: version: 1.5.3(@babel/core@7.23.2)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0)(viem@1.17.1)(wagmi@1.4.5) next: specifier: latest - version: 14.0.1(@babel/core@7.23.2)(react-dom@18.2.0)(react@18.2.0) + version: 13.5.5(@babel/core@7.23.2)(react-dom@18.2.0)(react@18.2.0) openapi-fetch: specifier: ^0.8.1 version: 0.8.1 @@ -55,7 +55,7 @@ dependencies: version: 1.17.1(typescript@5.2.2)(zod@3.22.4) wagmi: specifier: ^1.4.5 - version: 1.4.5(@types/react@18.2.34)(immer@10.0.3)(react-dom@18.2.0)(react@18.2.0)(typescript@5.2.2)(viem@1.17.1)(zod@3.22.4) + version: 1.4.5(@types/react@18.2.28)(immer@10.0.3)(react-dom@18.2.0)(react@18.2.0)(typescript@5.2.2)(viem@1.17.1)(zod@3.22.4) zod: specifier: ^3.22.4 version: 3.22.4 @@ -66,13 +66,13 @@ devDependencies: version: 20.8.9 '@types/react': specifier: latest - version: 18.2.34 + version: 18.2.28 eslint: specifier: ^8.52.0 version: 8.52.0 eslint-config-next: specifier: latest - version: 14.0.1(eslint@8.52.0)(typescript@5.2.2) + version: 13.5.5(eslint@8.52.0)(typescript@5.2.2) npm-run-all: specifier: ^4.1.5 version: 4.1.5 @@ -403,7 +403,7 @@ packages: resolution: {integrity: sha512-W2P2c/VRW1/1tLox0mVUalvnWXxavmv/Oum2aPsRcoDJuob75FC3Y8FbpfLwUegRcxINtGUMPq0tFCvYNTBXNA==} dev: false - /@emotion/react@11.11.1(@types/react@18.2.34)(react@18.2.0): + /@emotion/react@11.11.1(@types/react@18.2.28)(react@18.2.0): resolution: {integrity: sha512-5mlW1DquU5HaxjLkfkGN1GA/fvVGdyHURRiX/0FHl2cfIfRxSOfmxEH5YS43edp0OldZrZ+dkBKbngxcNCdZvA==} peerDependencies: '@types/react': '*' @@ -419,7 +419,7 @@ packages: '@emotion/use-insertion-effect-with-fallbacks': 1.0.1(react@18.2.0) '@emotion/utils': 1.2.1 '@emotion/weak-memoize': 0.3.1 - '@types/react': 18.2.34 + '@types/react': 18.2.28 hoist-non-react-statics: 3.3.2 react: 18.2.0 dev: false @@ -452,7 +452,7 @@ packages: resolution: {integrity: sha512-0QBtGvaqtWi+nx6doRwDdBIzhNdZrXUppvTM4dtZZWEGTXL/XE/yJxLMGlDT1Gt+UHH5IX1n+jkXyytE/av7OA==} dev: false - /@emotion/styled@11.11.0(@emotion/react@11.11.1)(@types/react@18.2.34)(react@18.2.0): + /@emotion/styled@11.11.0(@emotion/react@11.11.1)(@types/react@18.2.28)(react@18.2.0): resolution: {integrity: sha512-hM5Nnvu9P3midq5aaXj4I+lnSfNi7Pmd4EWk1fOZ3pxookaQTNew6bp4JaCBYM4HVFZF9g7UjJmsUmC2JlxOng==} peerDependencies: '@emotion/react': ^11.0.0-rc.0 @@ -465,11 +465,11 @@ packages: '@babel/runtime': 7.23.2 '@emotion/babel-plugin': 11.11.0 '@emotion/is-prop-valid': 1.2.1 - '@emotion/react': 11.11.1(@types/react@18.2.34)(react@18.2.0) + '@emotion/react': 11.11.1(@types/react@18.2.28)(react@18.2.0) '@emotion/serialize': 1.1.2 '@emotion/use-insertion-effect-with-fallbacks': 1.0.1(react@18.2.0) '@emotion/utils': 1.2.1 - '@types/react': 18.2.34 + '@types/react': 18.2.28 react: 18.2.0 dev: false @@ -731,7 +731,7 @@ packages: tslib: 2.6.2 dev: false - /@mui/base@5.0.0-beta.18(@types/react@18.2.34)(react-dom@18.2.0)(react@18.2.0): + /@mui/base@5.0.0-beta.18(@types/react@18.2.28)(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-e9ZCy/ndhyt5MTshAS3qAUy/40UiO0jX+kAo6a+XirrPJE+rrQW+mKPSI0uyp+5z4Vh+z0pvNoJ2S2gSrNz3BQ==} engines: {node: '>=12.0.0'} peerDependencies: @@ -744,18 +744,18 @@ packages: dependencies: '@babel/runtime': 7.23.2 '@floating-ui/react-dom': 2.0.2(react-dom@18.2.0)(react@18.2.0) - '@mui/types': 7.2.7(@types/react@18.2.34) - '@mui/utils': 5.14.15(@types/react@18.2.34)(react@18.2.0) + '@mui/types': 7.2.8(@types/react@18.2.28) + '@mui/utils': 5.14.16(@types/react@18.2.28)(react@18.2.0) '@popperjs/core': 2.11.8 - '@types/react': 18.2.34 + '@types/react': 18.2.28 clsx: 2.0.0 prop-types: 15.8.1 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) dev: false - /@mui/base@5.0.0-beta.22(@types/react@18.2.34)(react-dom@18.2.0)(react@18.2.0): - resolution: {integrity: sha512-l4asGID5tmyerx9emJfXOKLyXzaBtdXNIFE3M+IrSZaFtGFvaQKHhc3+nxxSxPf1+G44psjczM0ekRQCdXx9HA==} + /@mui/base@5.0.0-beta.20(@types/react@18.2.28)(react-dom@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-CS2pUuqxST7ch9VNDCklRYDbJ3rru20Tx7na92QvVVKfu3RL4z/QLuVIc8jYGsdCnauMaeUSlFNLAJNb0yXe6w==} engines: {node: '>=12.0.0'} peerDependencies: '@types/react': ^17.0.0 || ^18.0.0 @@ -767,10 +767,10 @@ packages: dependencies: '@babel/runtime': 7.23.2 '@floating-ui/react-dom': 2.0.2(react-dom@18.2.0)(react@18.2.0) - '@mui/types': 7.2.8(@types/react@18.2.34) - '@mui/utils': 5.14.16(@types/react@18.2.34)(react@18.2.0) + '@mui/types': 7.2.8(@types/react@18.2.28) + '@mui/utils': 5.14.16(@types/react@18.2.28)(react@18.2.0) '@popperjs/core': 2.11.8 - '@types/react': 18.2.34 + '@types/react': 18.2.28 clsx: 2.0.0 prop-types: 15.8.1 react: 18.2.0 @@ -781,7 +781,24 @@ packages: resolution: {integrity: sha512-97isBjzH2v1K7oB4UH2f4NOkBShOynY6dhnoR2XlUk/g6bb7ZBv2I3D1hvvqPtpEigKu93e7f/jAYr5d9LOc5w==} dev: false - /@mui/icons-material@5.14.16(@mui/material@5.14.16)(@types/react@18.2.34)(react@18.2.0): + /@mui/icons-material@5.14.14(@mui/material@5.14.14)(@types/react@18.2.28)(react@18.2.0): + resolution: {integrity: sha512-vwuaMsKvI7AWTeYqR8wYbpXijuU8PzMAJWRAq2DDIuOZPxjKyHlr8WQ25+azZYkIXtJ7AqnVb1ZmHdEyB4/kug==} + engines: {node: '>=12.0.0'} + peerDependencies: + '@mui/material': ^5.0.0 + '@types/react': ^17.0.0 || ^18.0.0 + react: ^17.0.0 || ^18.0.0 + peerDependenciesMeta: + '@types/react': + optional: true + dependencies: + '@babel/runtime': 7.23.2 + '@mui/material': 5.14.14(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(@types/react@18.2.28)(react-dom@18.2.0)(react@18.2.0) + '@types/react': 18.2.28 + react: 18.2.0 + dev: false + + /@mui/icons-material@5.14.16(@mui/material@5.14.14)(@types/react@18.2.28)(react@18.2.0): resolution: {integrity: sha512-wmOgslMEGvbHZjFLru8uH5E+pif/ciXAvKNw16q6joK6EWVWU5rDYWFknDaZhCvz8ZE/K8ZnJQ+lMG6GgHzXbg==} engines: {node: '>=12.0.0'} peerDependencies: @@ -793,12 +810,12 @@ packages: optional: true dependencies: '@babel/runtime': 7.23.2 - '@mui/material': 5.14.16(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(@types/react@18.2.34)(react-dom@18.2.0)(react@18.2.0) - '@types/react': 18.2.34 + '@mui/material': 5.14.14(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(@types/react@18.2.28)(react-dom@18.2.0)(react@18.2.0) + '@types/react': 18.2.28 react: 18.2.0 dev: false - /@mui/lab@5.0.0-alpha.147(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(@mui/material@5.14.16)(@types/react@18.2.34)(react-dom@18.2.0)(react@18.2.0): + /@mui/lab@5.0.0-alpha.147(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(@mui/material@5.14.14)(@types/react@18.2.28)(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-AZjDEl31/co9baYrOBHMlXI8BCrV9JTCGDE2+IswVm32HNPYL5V2gHL3wKqn+MIFeCEg+z2es+8CU/Bau0JNSQ==} engines: {node: '>=12.0.0'} peerDependencies: @@ -817,23 +834,23 @@ packages: optional: true dependencies: '@babel/runtime': 7.23.2 - '@emotion/react': 11.11.1(@types/react@18.2.34)(react@18.2.0) - '@emotion/styled': 11.11.0(@emotion/react@11.11.1)(@types/react@18.2.34)(react@18.2.0) - '@mui/base': 5.0.0-beta.18(@types/react@18.2.34)(react-dom@18.2.0)(react@18.2.0) - '@mui/material': 5.14.16(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(@types/react@18.2.34)(react-dom@18.2.0)(react@18.2.0) - '@mui/system': 5.14.15(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(@types/react@18.2.34)(react@18.2.0) - '@mui/types': 7.2.7(@types/react@18.2.34) - '@mui/utils': 5.14.15(@types/react@18.2.34)(react@18.2.0) - '@mui/x-tree-view': 6.0.0-alpha.1(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(@mui/base@5.0.0-beta.18)(@mui/material@5.14.16)(@mui/system@5.14.15)(@types/react@18.2.34)(react-dom@18.2.0)(react@18.2.0) - '@types/react': 18.2.34 + '@emotion/react': 11.11.1(@types/react@18.2.28)(react@18.2.0) + '@emotion/styled': 11.11.0(@emotion/react@11.11.1)(@types/react@18.2.28)(react@18.2.0) + '@mui/base': 5.0.0-beta.18(@types/react@18.2.28)(react-dom@18.2.0)(react@18.2.0) + '@mui/material': 5.14.14(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(@types/react@18.2.28)(react-dom@18.2.0)(react@18.2.0) + '@mui/system': 5.14.16(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(@types/react@18.2.28)(react@18.2.0) + '@mui/types': 7.2.8(@types/react@18.2.28) + '@mui/utils': 5.14.16(@types/react@18.2.28)(react@18.2.0) + '@mui/x-tree-view': 6.0.0-alpha.1(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(@mui/base@5.0.0-beta.18)(@mui/material@5.14.14)(@mui/system@5.14.16)(@types/react@18.2.28)(react-dom@18.2.0)(react@18.2.0) + '@types/react': 18.2.28 clsx: 2.0.0 prop-types: 15.8.1 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) dev: false - /@mui/material@5.14.16(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(@types/react@18.2.34)(react-dom@18.2.0)(react@18.2.0): - resolution: {integrity: sha512-W4zZ4vnxgGk6/HqBwgsDHKU7x2l2NhX+r8gAwfg58Rhu3ikfY7NkIS6y8Gl3NkATc4GG1FNaGjjpQKfJx3U6Jw==} + /@mui/material@5.14.14(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(@types/react@18.2.28)(react-dom@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-cAmCwAHFQXxb44kWbVFkhKATN8tACgMsFwrXo8ro6WzYW73U/qsR5AcCiJIhCyYYg+gcftfkmNcpRaV3JjhHCg==} engines: {node: '>=12.0.0'} peerDependencies: '@emotion/react': ^11.5.0 @@ -850,14 +867,14 @@ packages: optional: true dependencies: '@babel/runtime': 7.23.2 - '@emotion/react': 11.11.1(@types/react@18.2.34)(react@18.2.0) - '@emotion/styled': 11.11.0(@emotion/react@11.11.1)(@types/react@18.2.34)(react@18.2.0) - '@mui/base': 5.0.0-beta.22(@types/react@18.2.34)(react-dom@18.2.0)(react@18.2.0) + '@emotion/react': 11.11.1(@types/react@18.2.28)(react@18.2.0) + '@emotion/styled': 11.11.0(@emotion/react@11.11.1)(@types/react@18.2.28)(react@18.2.0) + '@mui/base': 5.0.0-beta.20(@types/react@18.2.28)(react-dom@18.2.0)(react@18.2.0) '@mui/core-downloads-tracker': 5.14.16 - '@mui/system': 5.14.16(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(@types/react@18.2.34)(react@18.2.0) - '@mui/types': 7.2.8(@types/react@18.2.34) - '@mui/utils': 5.14.16(@types/react@18.2.34)(react@18.2.0) - '@types/react': 18.2.34 + '@mui/system': 5.14.16(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(@types/react@18.2.28)(react@18.2.0) + '@mui/types': 7.2.8(@types/react@18.2.28) + '@mui/utils': 5.14.16(@types/react@18.2.28)(react@18.2.0) + '@types/react': 18.2.28 '@types/react-transition-group': 4.4.8 clsx: 2.0.0 csstype: 3.1.2 @@ -868,24 +885,7 @@ packages: react-transition-group: 4.4.5(react-dom@18.2.0)(react@18.2.0) dev: false - /@mui/private-theming@5.14.15(@types/react@18.2.34)(react@18.2.0): - resolution: {integrity: sha512-V2Xh+Tu6A07NoSpup0P9m29GwvNMYl5DegsGWqlOTJyAV7cuuVjmVPqxgvL8xBng4R85xqIQJRMjtYYktoPNuQ==} - engines: {node: '>=12.0.0'} - peerDependencies: - '@types/react': ^17.0.0 || ^18.0.0 - react: ^17.0.0 || ^18.0.0 - peerDependenciesMeta: - '@types/react': - optional: true - dependencies: - '@babel/runtime': 7.23.2 - '@mui/utils': 5.14.15(@types/react@18.2.34)(react@18.2.0) - '@types/react': 18.2.34 - prop-types: 15.8.1 - react: 18.2.0 - dev: false - - /@mui/private-theming@5.14.16(@types/react@18.2.34)(react@18.2.0): + /@mui/private-theming@5.14.16(@types/react@18.2.28)(react@18.2.0): resolution: {integrity: sha512-FNlL0pTSEBh8nXsVWreCHDSHk+jG8cBx1sxRbT8JVtL+PYbYPi802zfV4B00Kkf0LNRVRvAVQwojMWSR/MYGng==} engines: {node: '>=12.0.0'} peerDependencies: @@ -896,30 +896,8 @@ packages: optional: true dependencies: '@babel/runtime': 7.23.2 - '@mui/utils': 5.14.16(@types/react@18.2.34)(react@18.2.0) - '@types/react': 18.2.34 - prop-types: 15.8.1 - react: 18.2.0 - dev: false - - /@mui/styled-engine@5.14.15(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(react@18.2.0): - resolution: {integrity: sha512-mbOjRf867BysNpexe5Z/P8s3bWzDPNowmKhi7gtNDP/LPEeqAfiDSuC4WPTXmtvse1dCl30Nl755OLUYuoi7Mw==} - engines: {node: '>=12.0.0'} - peerDependencies: - '@emotion/react': ^11.4.1 - '@emotion/styled': ^11.3.0 - react: ^17.0.0 || ^18.0.0 - peerDependenciesMeta: - '@emotion/react': - optional: true - '@emotion/styled': - optional: true - dependencies: - '@babel/runtime': 7.23.2 - '@emotion/cache': 11.11.0 - '@emotion/react': 11.11.1(@types/react@18.2.34)(react@18.2.0) - '@emotion/styled': 11.11.0(@emotion/react@11.11.1)(@types/react@18.2.34)(react@18.2.0) - csstype: 3.1.2 + '@mui/utils': 5.14.16(@types/react@18.2.28)(react@18.2.0) + '@types/react': 18.2.28 prop-types: 15.8.1 react: 18.2.0 dev: false @@ -939,44 +917,14 @@ packages: dependencies: '@babel/runtime': 7.23.2 '@emotion/cache': 11.11.0 - '@emotion/react': 11.11.1(@types/react@18.2.34)(react@18.2.0) - '@emotion/styled': 11.11.0(@emotion/react@11.11.1)(@types/react@18.2.34)(react@18.2.0) + '@emotion/react': 11.11.1(@types/react@18.2.28)(react@18.2.0) + '@emotion/styled': 11.11.0(@emotion/react@11.11.1)(@types/react@18.2.28)(react@18.2.0) csstype: 3.1.2 prop-types: 15.8.1 react: 18.2.0 dev: false - /@mui/system@5.14.15(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(@types/react@18.2.34)(react@18.2.0): - resolution: {integrity: sha512-zr0Gdk1RgKiEk+tCMB900LaOpEC8NaGvxtkmMdL/CXgkqQZSVZOt2PQsxJWaw7kE4YVkIe4VukFVc43qcq9u3w==} - engines: {node: '>=12.0.0'} - peerDependencies: - '@emotion/react': ^11.5.0 - '@emotion/styled': ^11.3.0 - '@types/react': ^17.0.0 || ^18.0.0 - react: ^17.0.0 || ^18.0.0 - peerDependenciesMeta: - '@emotion/react': - optional: true - '@emotion/styled': - optional: true - '@types/react': - optional: true - dependencies: - '@babel/runtime': 7.23.2 - '@emotion/react': 11.11.1(@types/react@18.2.34)(react@18.2.0) - '@emotion/styled': 11.11.0(@emotion/react@11.11.1)(@types/react@18.2.34)(react@18.2.0) - '@mui/private-theming': 5.14.15(@types/react@18.2.34)(react@18.2.0) - '@mui/styled-engine': 5.14.15(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(react@18.2.0) - '@mui/types': 7.2.7(@types/react@18.2.34) - '@mui/utils': 5.14.15(@types/react@18.2.34)(react@18.2.0) - '@types/react': 18.2.34 - clsx: 2.0.0 - csstype: 3.1.2 - prop-types: 15.8.1 - react: 18.2.0 - dev: false - - /@mui/system@5.14.16(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(@types/react@18.2.34)(react@18.2.0): + /@mui/system@5.14.16(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(@types/react@18.2.28)(react@18.2.0): resolution: {integrity: sha512-uKnPfsDqDs8bbN54TviAuoGWOmFiQLwNZ3Wvj+OBkJCzwA6QnLb/sSeCB7Pk3ilH4h4jQ0BHtbR+Xpjy9wlOuA==} engines: {node: '>=12.0.0'} peerDependencies: @@ -993,31 +941,20 @@ packages: optional: true dependencies: '@babel/runtime': 7.23.2 - '@emotion/react': 11.11.1(@types/react@18.2.34)(react@18.2.0) - '@emotion/styled': 11.11.0(@emotion/react@11.11.1)(@types/react@18.2.34)(react@18.2.0) - '@mui/private-theming': 5.14.16(@types/react@18.2.34)(react@18.2.0) + '@emotion/react': 11.11.1(@types/react@18.2.28)(react@18.2.0) + '@emotion/styled': 11.11.0(@emotion/react@11.11.1)(@types/react@18.2.28)(react@18.2.0) + '@mui/private-theming': 5.14.16(@types/react@18.2.28)(react@18.2.0) '@mui/styled-engine': 5.14.16(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(react@18.2.0) - '@mui/types': 7.2.8(@types/react@18.2.34) - '@mui/utils': 5.14.16(@types/react@18.2.34)(react@18.2.0) - '@types/react': 18.2.34 + '@mui/types': 7.2.8(@types/react@18.2.28) + '@mui/utils': 5.14.16(@types/react@18.2.28)(react@18.2.0) + '@types/react': 18.2.28 clsx: 2.0.0 csstype: 3.1.2 prop-types: 15.8.1 react: 18.2.0 dev: false - /@mui/types@7.2.7(@types/react@18.2.34): - resolution: {integrity: sha512-sofpWmcBqOlTzRbr1cLQuUDKaUYVZTw8ENQrtL39TECRNENEzwgnNPh6WMfqMZlMvf1Aj9DLg74XPjnLr0izUQ==} - peerDependencies: - '@types/react': ^17.0.0 || ^18.0.0 - peerDependenciesMeta: - '@types/react': - optional: true - dependencies: - '@types/react': 18.2.34 - dev: false - - /@mui/types@7.2.8(@types/react@18.2.34): + /@mui/types@7.2.8(@types/react@18.2.28): resolution: {integrity: sha512-9u0ji+xspl96WPqvrYJF/iO+1tQ1L5GTaDOeG3vCR893yy7VcWwRNiVMmPdPNpMDqx0WV1wtEW9OMwK9acWJzQ==} peerDependencies: '@types/react': ^17.0.0 || ^18.0.0 @@ -1025,10 +962,10 @@ packages: '@types/react': optional: true dependencies: - '@types/react': 18.2.34 + '@types/react': 18.2.28 dev: false - /@mui/utils@5.14.15(@types/react@18.2.34)(react@18.2.0): + /@mui/utils@5.14.15(@types/react@18.2.28)(react@18.2.0): resolution: {integrity: sha512-QBfHovAvTa0J1jXuYDaXGk+Yyp7+Fm8GSqx6nK2JbezGqzCFfirNdop/+bL9Flh/OQ/64PeXcW4HGDdOge+n3A==} engines: {node: '>=12.0.0'} peerDependencies: @@ -1039,14 +976,14 @@ packages: optional: true dependencies: '@babel/runtime': 7.23.2 - '@types/prop-types': 15.7.8 - '@types/react': 18.2.34 + '@types/prop-types': 15.7.9 + '@types/react': 18.2.28 prop-types: 15.8.1 react: 18.2.0 react-is: 18.2.0 dev: false - /@mui/utils@5.14.16(@types/react@18.2.34)(react@18.2.0): + /@mui/utils@5.14.16(@types/react@18.2.28)(react@18.2.0): resolution: {integrity: sha512-3xV31GposHkwRbQzwJJuooWpK2ybWdEdeUPtRjv/6vjomyi97F3+68l+QVj9tPTvmfSbr2sx5c/NuvDulrdRmA==} engines: {node: '>=12.0.0'} peerDependencies: @@ -1058,13 +995,13 @@ packages: dependencies: '@babel/runtime': 7.23.2 '@types/prop-types': 15.7.9 - '@types/react': 18.2.34 + '@types/react': 18.2.28 prop-types: 15.8.1 react: 18.2.0 react-is: 18.2.0 dev: false - /@mui/x-tree-view@6.0.0-alpha.1(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(@mui/base@5.0.0-beta.18)(@mui/material@5.14.16)(@mui/system@5.14.15)(@types/react@18.2.34)(react-dom@18.2.0)(react@18.2.0): + /@mui/x-tree-view@6.0.0-alpha.1(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(@mui/base@5.0.0-beta.18)(@mui/material@5.14.14)(@mui/system@5.14.16)(@types/react@18.2.28)(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-JUG3HmBrmGEALbCFg1b+i7h726e1dWYZs4db3syO1j+Q++E3nbvE4Lehp5yGTFm+8esH0Tny50tuJaa4WX6VSA==} engines: {node: '>=14.0.0'} peerDependencies: @@ -1077,13 +1014,13 @@ packages: react-dom: ^17.0.0 || ^18.0.0 dependencies: '@babel/runtime': 7.23.2 - '@emotion/react': 11.11.1(@types/react@18.2.34)(react@18.2.0) - '@emotion/styled': 11.11.0(@emotion/react@11.11.1)(@types/react@18.2.34)(react@18.2.0) - '@mui/base': 5.0.0-beta.18(@types/react@18.2.34)(react-dom@18.2.0)(react@18.2.0) - '@mui/material': 5.14.16(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(@types/react@18.2.34)(react-dom@18.2.0)(react@18.2.0) - '@mui/system': 5.14.15(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(@types/react@18.2.34)(react@18.2.0) - '@mui/utils': 5.14.15(@types/react@18.2.34)(react@18.2.0) - '@types/react-transition-group': 4.4.7 + '@emotion/react': 11.11.1(@types/react@18.2.28)(react@18.2.0) + '@emotion/styled': 11.11.0(@emotion/react@11.11.1)(@types/react@18.2.28)(react@18.2.0) + '@mui/base': 5.0.0-beta.18(@types/react@18.2.28)(react-dom@18.2.0)(react@18.2.0) + '@mui/material': 5.14.14(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(@types/react@18.2.28)(react-dom@18.2.0)(react@18.2.0) + '@mui/system': 5.14.16(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(@types/react@18.2.28)(react@18.2.0) + '@mui/utils': 5.14.16(@types/react@18.2.28)(react@18.2.0) + '@types/react-transition-group': 4.4.8 clsx: 2.0.0 prop-types: 15.8.1 react: 18.2.0 @@ -1093,18 +1030,18 @@ packages: - '@types/react' dev: false - /@next/env@14.0.1: - resolution: {integrity: sha512-Ms8ZswqY65/YfcjrlcIwMPD7Rg/dVjdLapMcSHG26W6O67EJDF435ShW4H4LXi1xKO1oRc97tLXUpx8jpLe86A==} + /@next/env@13.5.5: + resolution: {integrity: sha512-agvIhYWp+ilbScg81s/sLueZo8CNEYLjNOqhISxheLmD/AQI4/VxV7bV76i/KzxH4iHy/va0YS9z0AOwGnw4Fg==} dev: false - /@next/eslint-plugin-next@14.0.1: - resolution: {integrity: sha512-bLjJMwXdzvhnQOnxvHoTTUh/+PYk6FF/DCgHi4BXwXCINer+o1ZYfL9aVeezj/oI7wqGJOqwGIXrlBvPbAId3w==} + /@next/eslint-plugin-next@13.5.5: + resolution: {integrity: sha512-S/32s4S+SCOpW58lHKdmILAAPRdnsSei7Y3L1oZSoe5Eh0QSlzbG1nYyIpnpwWgz3T7qe3imdq7cJ6Hf29epRA==} dependencies: glob: 7.1.7 dev: true - /@next/swc-darwin-arm64@14.0.1: - resolution: {integrity: sha512-JyxnGCS4qT67hdOKQ0CkgFTp+PXub5W1wsGvIq98TNbF3YEIN7iDekYhYsZzc8Ov0pWEsghQt+tANdidITCLaw==} + /@next/swc-darwin-arm64@13.5.5: + resolution: {integrity: sha512-FvTdcJdTA7H1FGY8dKPPbf/O0oDC041/znHZwXA7liiGUhgw5hOQ+9z8tWvuz0M5a/SDjY/IRPBAb5FIFogYww==} engines: {node: '>= 10'} cpu: [arm64] os: [darwin] @@ -1112,8 +1049,8 @@ packages: dev: false optional: true - /@next/swc-darwin-x64@14.0.1: - resolution: {integrity: sha512-625Z7bb5AyIzswF9hvfZWa+HTwFZw+Jn3lOBNZB87lUS0iuCYDHqk3ujuHCkiyPtSC0xFBtYDLcrZ11mF/ap3w==} + /@next/swc-darwin-x64@13.5.5: + resolution: {integrity: sha512-mTqNIecaojmyia7appVO2QggBe1Z2fdzxgn6jb3x9qlAk8yY2sy4MAcsj71kC9RlenCqDmr9vtC/ESFf110TPA==} engines: {node: '>= 10'} cpu: [x64] os: [darwin] @@ -1121,8 +1058,8 @@ packages: dev: false optional: true - /@next/swc-linux-arm64-gnu@14.0.1: - resolution: {integrity: sha512-iVpn3KG3DprFXzVHM09kvb//4CNNXBQ9NB/pTm8LO+vnnnaObnzFdS5KM+w1okwa32xH0g8EvZIhoB3fI3mS1g==} + /@next/swc-linux-arm64-gnu@13.5.5: + resolution: {integrity: sha512-U9e+kNkfvwh/T8yo+xcslvNXgyMzPPX1IbwCwnHHFmX5ckb1Uc3XZSInNjFQEQR5xhJpB5sFdal+IiBIiLYkZA==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] @@ -1130,8 +1067,8 @@ packages: dev: false optional: true - /@next/swc-linux-arm64-musl@14.0.1: - resolution: {integrity: sha512-mVsGyMxTLWZXyD5sen6kGOTYVOO67lZjLApIj/JsTEEohDDt1im2nkspzfV5MvhfS7diDw6Rp/xvAQaWZTv1Ww==} + /@next/swc-linux-arm64-musl@13.5.5: + resolution: {integrity: sha512-h7b58eIoNCSmKVC5fr167U0HWZ/yGLbkKD9wIller0nGdyl5zfTji0SsPKJvrG8jvKPFt2xOkVBmXlFOtuKynw==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] @@ -1139,8 +1076,8 @@ packages: dev: false optional: true - /@next/swc-linux-x64-gnu@14.0.1: - resolution: {integrity: sha512-wMqf90uDWN001NqCM/auRl3+qVVeKfjJdT9XW+RMIOf+rhUzadmYJu++tp2y+hUbb6GTRhT+VjQzcgg/QTD9NQ==} + /@next/swc-linux-x64-gnu@13.5.5: + resolution: {integrity: sha512-6U4y21T1J6FfcpM9uqzBJicxycpB5gJKLyQ3g6KOfBzT8H1sMwfHTRrvHKB09GIn1BCRy5YJHrA1G26DzqR46w==} engines: {node: '>= 10'} cpu: [x64] os: [linux] @@ -1148,8 +1085,8 @@ packages: dev: false optional: true - /@next/swc-linux-x64-musl@14.0.1: - resolution: {integrity: sha512-ol1X1e24w4j4QwdeNjfX0f+Nza25n+ymY0T2frTyalVczUmzkVD7QGgPTZMHfR1aLrO69hBs0G3QBYaj22J5GQ==} + /@next/swc-linux-x64-musl@13.5.5: + resolution: {integrity: sha512-OuqWSAQHJQM2EsapPFTSU/FLQ0wKm7UeRNatiR/jLeCe1V02aB9xmzuWYo2Neaxxag4rss3S8fj+lvMLzwDaFA==} engines: {node: '>= 10'} cpu: [x64] os: [linux] @@ -1157,8 +1094,8 @@ packages: dev: false optional: true - /@next/swc-win32-arm64-msvc@14.0.1: - resolution: {integrity: sha512-WEmTEeWs6yRUEnUlahTgvZteh5RJc4sEjCQIodJlZZ5/VJwVP8p2L7l6VhzQhT4h7KvLx/Ed4UViBdne6zpIsw==} + /@next/swc-win32-arm64-msvc@13.5.5: + resolution: {integrity: sha512-+yLrOZIIZDY4uGn9bLOc0wTgs+M8RuOUFSUK3BhmcLav9e+tcAj0jyBHD4aXv2qWhppUeuYMsyBo1I58/eE6Dg==} engines: {node: '>= 10'} cpu: [arm64] os: [win32] @@ -1166,8 +1103,8 @@ packages: dev: false optional: true - /@next/swc-win32-ia32-msvc@14.0.1: - resolution: {integrity: sha512-oFpHphN4ygAgZUKjzga7SoH2VGbEJXZa/KL8bHCAwCjDWle6R1SpiGOdUdA8EJ9YsG1TYWpzY6FTbUA+iAJeww==} + /@next/swc-win32-ia32-msvc@13.5.5: + resolution: {integrity: sha512-SyMxXyJtf9ScMH0Dh87THJMXNFvfkRAk841xyW9SeOX3KxM1buXX3hN7vof4kMGk0Yg996OGsX+7C9ueS8ugsw==} engines: {node: '>= 10'} cpu: [ia32] os: [win32] @@ -1175,8 +1112,8 @@ packages: dev: false optional: true - /@next/swc-win32-x64-msvc@14.0.1: - resolution: {integrity: sha512-FFp3nOJ/5qSpeWT0BZQ+YE1pSMk4IMpkME/1DwKBwhg4mJLB9L+6EXuJi4JEwaJdl5iN+UUlmUD3IsR1kx5fAg==} + /@next/swc-win32-x64-msvc@13.5.5: + resolution: {integrity: sha512-n5KVf2Ok0BbLwofAaHiiKf+BQCj1M8WmTujiER4/qzYAVngnsNSjqEWvJ03raeN9eURqxDO+yL5VRoDrR33H9A==} engines: {node: '>= 10'} cpu: [x64] os: [win32] @@ -1438,18 +1375,18 @@ packages: '@uniswap/token-lists': 1.0.0-beta.33 dev: false - /@superfluid-finance/widget@0.0.0-dev-20231026111944(@mui/material@5.14.16)(@types/react@18.2.34)(typescript@5.2.2)(viem@1.17.1)(wagmi@1.4.5): + /@superfluid-finance/widget@0.0.0-dev-20231026111944(@mui/material@5.14.14)(@types/react@18.2.28)(typescript@5.2.2)(viem@1.17.1)(wagmi@1.4.5): resolution: {integrity: sha512-nPqPqhY5Yygo6LZmIWmyaqlvqzQx+4EuRnpIHVga1rksFHMBFi8R1q5qweDavMKG3xcabA047LtisDfSVQN4OQ==} peerDependencies: viem: '>=1' wagmi: '>=1' dependencies: - '@emotion/react': 11.11.1(@types/react@18.2.34)(react@18.2.0) - '@emotion/styled': 11.11.0(@emotion/react@11.11.1)(@types/react@18.2.34)(react@18.2.0) + '@emotion/react': 11.11.1(@types/react@18.2.28)(react@18.2.0) + '@emotion/styled': 11.11.0(@emotion/react@11.11.1)(@types/react@18.2.28)(react@18.2.0) '@hookform/resolvers': 3.3.2(react-hook-form@7.47.0) - '@mui/icons-material': 5.14.16(@mui/material@5.14.16)(@types/react@18.2.34)(react@18.2.0) - '@mui/lab': 5.0.0-alpha.147(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(@mui/material@5.14.16)(@types/react@18.2.34)(react-dom@18.2.0)(react@18.2.0) - '@mui/utils': 5.14.15(@types/react@18.2.34)(react@18.2.0) + '@mui/icons-material': 5.14.16(@mui/material@5.14.14)(@types/react@18.2.28)(react@18.2.0) + '@mui/lab': 5.0.0-alpha.147(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(@mui/material@5.14.14)(@types/react@18.2.28)(react-dom@18.2.0)(react@18.2.0) + '@mui/utils': 5.14.15(@types/react@18.2.28)(react@18.2.0) '@superfluid-finance/metadata': 1.1.18 '@superfluid-finance/tokenlist': 3.3.2 abitype: 0.10.1(typescript@5.2.2)(zod@3.22.4) @@ -1465,7 +1402,7 @@ packages: react-hook-form: 7.47.0(react@18.2.0) use-immer: 0.9.0(immer@10.0.3)(react@18.2.0) viem: 1.17.1(typescript@5.2.2)(zod@3.22.4) - wagmi: 1.4.5(@types/react@18.2.34)(immer@10.0.3)(react-dom@18.2.0)(react@18.2.0)(typescript@5.2.2)(viem@1.17.1)(zod@3.22.4) + wagmi: 1.4.5(@types/react@18.2.28)(immer@10.0.3)(react-dom@18.2.0)(react@18.2.0)(typescript@5.2.2)(viem@1.17.1)(zod@3.22.4) zod: 3.22.4 zod-validation-error: 1.5.0(zod@3.22.4) transitivePeerDependencies: @@ -1556,18 +1493,8 @@ packages: resolution: {integrity: sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==} dev: false - /@types/prop-types@15.7.8: - resolution: {integrity: sha512-kMpQpfZKSCBqltAJwskgePRaYRFukDkm1oItcAbC3gNELR20XIBcN9VRgg4+m8DKsTfkWeA4m4Imp4DDuWy7FQ==} - /@types/prop-types@15.7.9: resolution: {integrity: sha512-n1yyPsugYNSmHgxDFjicaI2+gCNjsBck8UX9kuofAKlc0h1bL+20oSF72KeNaW2DUlesbEVCFgyV2dPGTiY42g==} - dev: false - - /@types/react-transition-group@4.4.7: - resolution: {integrity: sha512-ICCyBl5mvyqYp8Qeq9B5G/fyBSRC0zx3XM3sCC6KkcMsNeAHqXBKkmat4GqdJET5jtYUpZXrxI5flve5qhi2Eg==} - dependencies: - '@types/react': 18.2.34 - dev: false /@types/react-transition-group@4.4.8: resolution: {integrity: sha512-QmQ22q+Pb+HQSn04NL3HtrqHwYMf4h3QKArOy5F8U5nEVMaihBs3SR10WiOM1iwPz5jIo8x/u11al+iEGZZrvg==} @@ -1575,12 +1502,20 @@ packages: '@types/react': 18.2.34 dev: false + /@types/react@18.2.28: + resolution: {integrity: sha512-ad4aa/RaaJS3hyGz0BGegdnSRXQBkd1CCYDCdNjBPg90UUpLgo+WlJqb9fMYUxtehmzF3PJaTWqRZjko6BRzBg==} + dependencies: + '@types/prop-types': 15.7.9 + '@types/scheduler': 0.16.4 + csstype: 3.1.2 + /@types/react@18.2.34: resolution: {integrity: sha512-U6eW/alrRk37FU/MS2RYMjx0Va2JGIVXELTODaTIYgvWGCV4Y4TfTUzG8DdmpDNIT0Xpj/R7GfyHOJJrDttcvg==} dependencies: - '@types/prop-types': 15.7.8 + '@types/prop-types': 15.7.9 '@types/scheduler': 0.16.4 csstype: 3.1.2 + dev: false /@types/scheduler@0.16.4: resolution: {integrity: sha512-2L9ifAGl7wmXwP4v3pN4p2FLhD0O1qsJpvKmNin5VA8+UvNVb447UDaAEV6UdrkA+m/Xs58U1RFps44x6TFsVQ==} @@ -1667,7 +1602,7 @@ packages: engines: {node: '>=10'} dev: false - /@wagmi/connectors@3.1.3(@types/react@18.2.34)(react@18.2.0)(typescript@5.2.2)(viem@1.17.1)(zod@3.22.4): + /@wagmi/connectors@3.1.3(@types/react@18.2.28)(react@18.2.0)(typescript@5.2.2)(viem@1.17.1)(zod@3.22.4): resolution: {integrity: sha512-UgwsQKQDFObJVJMf9pDfFoXTv710o4zrTHyhIWKBTMMkLpCMsMxN5+ZaDhBYt/BgoRinfRYQo8uwuwLhxE6Log==} peerDependencies: typescript: '>=5.0.4' @@ -1682,7 +1617,7 @@ packages: '@safe-global/safe-apps-sdk': 8.1.0(typescript@5.2.2)(zod@3.22.4) '@walletconnect/ethereum-provider': 2.10.2(@walletconnect/modal@2.6.2) '@walletconnect/legacy-provider': 2.0.0 - '@walletconnect/modal': 2.6.2(@types/react@18.2.34)(react@18.2.0) + '@walletconnect/modal': 2.6.2(@types/react@18.2.28)(react@18.2.0) '@walletconnect/utils': 2.10.2 abitype: 0.8.7(typescript@5.2.2)(zod@3.22.4) eventemitter3: 4.0.7 @@ -1700,7 +1635,7 @@ packages: - zod dev: false - /@wagmi/core@1.4.5(@types/react@18.2.34)(immer@10.0.3)(react@18.2.0)(typescript@5.2.2)(viem@1.17.1)(zod@3.22.4): + /@wagmi/core@1.4.5(@types/react@18.2.28)(immer@10.0.3)(react@18.2.0)(typescript@5.2.2)(viem@1.17.1)(zod@3.22.4): resolution: {integrity: sha512-N9luRb1Uk4tBN9kaYcQSWKE9AsRt/rvZaFt5IZech4JPzNN2sQlfhKd9GEjOXYRDqEPHdDvos7qyBKiDNTz4GA==} peerDependencies: typescript: '>=5.0.4' @@ -1709,12 +1644,12 @@ packages: typescript: optional: true dependencies: - '@wagmi/connectors': 3.1.3(@types/react@18.2.34)(react@18.2.0)(typescript@5.2.2)(viem@1.17.1)(zod@3.22.4) + '@wagmi/connectors': 3.1.3(@types/react@18.2.28)(react@18.2.0)(typescript@5.2.2)(viem@1.17.1)(zod@3.22.4) abitype: 0.8.7(typescript@5.2.2)(zod@3.22.4) eventemitter3: 4.0.7 typescript: 5.2.2 viem: 1.17.1(typescript@5.2.2)(zod@3.22.4) - zustand: 4.4.4(@types/react@18.2.34)(immer@10.0.3)(react@18.2.0) + zustand: 4.4.4(@types/react@18.2.28)(immer@10.0.3)(react@18.2.0) transitivePeerDependencies: - '@react-native-async-storage/async-storage' - '@types/react' @@ -1791,7 +1726,7 @@ packages: '@walletconnect/jsonrpc-provider': 1.0.13 '@walletconnect/jsonrpc-types': 1.0.3 '@walletconnect/jsonrpc-utils': 1.0.8 - '@walletconnect/modal': 2.6.2(@types/react@18.2.34)(react@18.2.0) + '@walletconnect/modal': 2.6.2(@types/react@18.2.28)(react@18.2.0) '@walletconnect/sign-client': 2.10.2 '@walletconnect/types': 2.10.2 '@walletconnect/universal-provider': 2.10.2 @@ -1946,19 +1881,19 @@ packages: tslib: 1.14.1 dev: false - /@walletconnect/modal-core@2.6.2(@types/react@18.2.34)(react@18.2.0): + /@walletconnect/modal-core@2.6.2(@types/react@18.2.28)(react@18.2.0): resolution: {integrity: sha512-cv8ibvdOJQv2B+nyxP9IIFdxvQznMz8OOr/oR/AaUZym4hjXNL/l1a2UlSQBXrVjo3xxbouMxLb3kBsHoYP2CA==} dependencies: - valtio: 1.11.2(@types/react@18.2.34)(react@18.2.0) + valtio: 1.11.2(@types/react@18.2.28)(react@18.2.0) transitivePeerDependencies: - '@types/react' - react dev: false - /@walletconnect/modal-ui@2.6.2(@types/react@18.2.34)(react@18.2.0): + /@walletconnect/modal-ui@2.6.2(@types/react@18.2.28)(react@18.2.0): resolution: {integrity: sha512-rbdstM1HPGvr7jprQkyPggX7rP4XiCG85ZA+zWBEX0dVQg8PpAgRUqpeub4xQKDgY7pY/xLRXSiCVdWGqvG2HA==} dependencies: - '@walletconnect/modal-core': 2.6.2(@types/react@18.2.34)(react@18.2.0) + '@walletconnect/modal-core': 2.6.2(@types/react@18.2.28)(react@18.2.0) lit: 2.8.0 motion: 10.16.2 qrcode: 1.5.3 @@ -1967,11 +1902,11 @@ packages: - react dev: false - /@walletconnect/modal@2.6.2(@types/react@18.2.34)(react@18.2.0): + /@walletconnect/modal@2.6.2(@types/react@18.2.28)(react@18.2.0): resolution: {integrity: sha512-eFopgKi8AjKf/0U4SemvcYw9zlLpx9njVN8sf6DAkowC2Md0gPU/UNEbH1Wwj407pEKnEds98pKWib1NN1ACoA==} dependencies: - '@walletconnect/modal-core': 2.6.2(@types/react@18.2.34)(react@18.2.0) - '@walletconnect/modal-ui': 2.6.2(@types/react@18.2.34)(react@18.2.0) + '@walletconnect/modal-core': 2.6.2(@types/react@18.2.28)(react@18.2.0) + '@walletconnect/modal-ui': 2.6.2(@types/react@18.2.28)(react@18.2.0) transitivePeerDependencies: - '@types/react' - react @@ -2567,7 +2502,7 @@ packages: resize-observer-polyfill: 1.5.1 styled-components: 5.3.11(@babel/core@7.23.2)(react-dom@18.2.0)(react-is@18.2.0)(react@18.2.0) viem: 1.17.1(typescript@5.2.2)(zod@3.22.4) - wagmi: 1.4.5(@types/react@18.2.34)(immer@10.0.3)(react-dom@18.2.0)(react@18.2.0)(typescript@5.2.2)(viem@1.17.1)(zod@3.22.4) + wagmi: 1.4.5(@types/react@18.2.28)(immer@10.0.3)(react-dom@18.2.0)(react@18.2.0)(typescript@5.2.2)(viem@1.17.1)(zod@3.22.4) transitivePeerDependencies: - '@babel/core' - react-is @@ -2915,8 +2850,8 @@ packages: resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} engines: {node: '>=10'} - /eslint-config-next@14.0.1(eslint@8.52.0)(typescript@5.2.2): - resolution: {integrity: sha512-QfIFK2WD39H4WOespjgf6PLv9Bpsd7KGGelCtmq4l67nGvnlsGpuvj0hIT+aIy6p5gKH+lAChYILsyDlxP52yg==} + /eslint-config-next@13.5.5(eslint@8.52.0)(typescript@5.2.2): + resolution: {integrity: sha512-kQr/eevFyzeVt0yCKTchQp3MTIx8ZmBsAKLW+7bzmAXHcf2vvxIqAt2N/afb9SZpuXXhSb/8yrKQGVUVpYmafQ==} peerDependencies: eslint: ^7.23.0 || ^8.0.0 typescript: '>=3.3.1' @@ -2924,7 +2859,7 @@ packages: typescript: optional: true dependencies: - '@next/eslint-plugin-next': 14.0.1 + '@next/eslint-plugin-next': 13.5.5 '@rushstack/eslint-patch': 1.5.1 '@typescript-eslint/parser': 6.7.4(eslint@8.52.0)(typescript@5.2.2) eslint: 8.52.0 @@ -4132,9 +4067,9 @@ packages: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} dev: true - /next@14.0.1(@babel/core@7.23.2)(react-dom@18.2.0)(react@18.2.0): - resolution: {integrity: sha512-s4YaLpE4b0gmb3ggtmpmV+wt+lPRuGtANzojMQ2+gmBpgX9w5fTbjsy6dXByBuENsdCX5pukZH/GxdFgO62+pA==} - engines: {node: '>=18.17.0'} + /next@13.5.5(@babel/core@7.23.2)(react-dom@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-LddFJjpfrtrMMw8Q9VLhIURuSidiCNcMQjRqcPtrKd+Fx07MsG7hYndJb/f2d3I+mTbTotsTJfCnn0eZ/YPk8w==} + engines: {node: '>=16.14.0'} hasBin: true peerDependencies: '@opentelemetry/api': ^1.1.0 @@ -4147,7 +4082,7 @@ packages: sass: optional: true dependencies: - '@next/env': 14.0.1 + '@next/env': 13.5.5 '@swc/helpers': 0.5.2 busboy: 1.6.0 caniuse-lite: 1.0.30001554 @@ -4157,15 +4092,15 @@ packages: styled-jsx: 5.1.1(@babel/core@7.23.2)(react@18.2.0) watchpack: 2.4.0 optionalDependencies: - '@next/swc-darwin-arm64': 14.0.1 - '@next/swc-darwin-x64': 14.0.1 - '@next/swc-linux-arm64-gnu': 14.0.1 - '@next/swc-linux-arm64-musl': 14.0.1 - '@next/swc-linux-x64-gnu': 14.0.1 - '@next/swc-linux-x64-musl': 14.0.1 - '@next/swc-win32-arm64-msvc': 14.0.1 - '@next/swc-win32-ia32-msvc': 14.0.1 - '@next/swc-win32-x64-msvc': 14.0.1 + '@next/swc-darwin-arm64': 13.5.5 + '@next/swc-darwin-x64': 13.5.5 + '@next/swc-linux-arm64-gnu': 13.5.5 + '@next/swc-linux-arm64-musl': 13.5.5 + '@next/swc-linux-x64-gnu': 13.5.5 + '@next/swc-linux-x64-musl': 13.5.5 + '@next/swc-win32-arm64-msvc': 13.5.5 + '@next/swc-win32-ia32-msvc': 13.5.5 + '@next/swc-win32-x64-msvc': 13.5.5 transitivePeerDependencies: - '@babel/core' - babel-plugin-macros @@ -5425,7 +5360,7 @@ packages: spdx-expression-parse: 3.0.1 dev: true - /valtio@1.11.2(@types/react@18.2.34)(react@18.2.0): + /valtio@1.11.2(@types/react@18.2.28)(react@18.2.0): resolution: {integrity: sha512-1XfIxnUXzyswPAPXo1P3Pdx2mq/pIqZICkWN60Hby0d9Iqb+MEIpqgYVlbflvHdrp2YR/q3jyKWRPJJ100yxaw==} engines: {node: '>=12.20.0'} peerDependencies: @@ -5437,7 +5372,7 @@ packages: react: optional: true dependencies: - '@types/react': 18.2.34 + '@types/react': 18.2.28 proxy-compare: 2.5.1 react: 18.2.0 use-sync-external-store: 1.2.0(react@18.2.0) @@ -5466,7 +5401,7 @@ packages: - zod dev: false - /wagmi@1.4.5(@types/react@18.2.34)(immer@10.0.3)(react-dom@18.2.0)(react@18.2.0)(typescript@5.2.2)(viem@1.17.1)(zod@3.22.4): + /wagmi@1.4.5(@types/react@18.2.28)(immer@10.0.3)(react-dom@18.2.0)(react@18.2.0)(typescript@5.2.2)(viem@1.17.1)(zod@3.22.4): resolution: {integrity: sha512-Ph62E6cO5n2Z8Z5LTyZrkaNprxTsbC4w0qZJT4OJdXrEELziI8z/b4FO6amVFXdu2rDp/wpvF56e4mhKC8/Kdw==} peerDependencies: react: '>=17.0.0' @@ -5479,7 +5414,7 @@ packages: '@tanstack/query-sync-storage-persister': 4.35.7 '@tanstack/react-query': 4.35.7(react-dom@18.2.0)(react@18.2.0) '@tanstack/react-query-persist-client': 4.35.7(@tanstack/react-query@4.35.7) - '@wagmi/core': 1.4.5(@types/react@18.2.34)(immer@10.0.3)(react@18.2.0)(typescript@5.2.2)(viem@1.17.1)(zod@3.22.4) + '@wagmi/core': 1.4.5(@types/react@18.2.28)(immer@10.0.3)(react@18.2.0)(typescript@5.2.2)(viem@1.17.1)(zod@3.22.4) abitype: 0.8.7(typescript@5.2.2)(zod@3.22.4) react: 18.2.0 typescript: 5.2.2 @@ -5714,7 +5649,7 @@ packages: resolution: {integrity: sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==} dev: false - /zustand@4.4.4(@types/react@18.2.34)(immer@10.0.3)(react@18.2.0): + /zustand@4.4.4(@types/react@18.2.28)(immer@10.0.3)(react@18.2.0): resolution: {integrity: sha512-5UTUIAiHMNf5+mFp7/AnzJXS7+XxktULFN0+D1sCiZWyX7ZG+AQpqs2qpYrynRij4QvoDdCD+U+bmg/cG3Ucxw==} engines: {node: '>=12.7.0'} peerDependencies: @@ -5729,7 +5664,7 @@ packages: react: optional: true dependencies: - '@types/react': 18.2.34 + '@types/react': 18.2.28 immer: 10.0.3 react: 18.2.0 use-sync-external-store: 1.2.0(react@18.2.0) diff --git a/apps/frontend/src/backend-openapi-client.d.ts b/apps/frontend/src/backend-openapi-client.d.ts index a3c4322..a637cfb 100644 --- a/apps/frontend/src/backend-openapi-client.d.ts +++ b/apps/frontend/src/backend-openapi-client.d.ts @@ -3,24 +3,28 @@ * Do not make direct changes to the file. */ + export interface paths { - '/stripe/webhook': { - post: operations['StripeWebhookController_handleWebhook']; + "/stripe/webhook": { + post: operations["StripeWebhookController_handleWebhook"]; + }; + "/checkout-session/create": { + post: operations["CheckoutSessionController_createSession"]; }; - '/checkout-session/create': { - post: operations['CheckoutSessionController_createSession']; + "/superfluid-stripe-converter/product": { + get: operations["SuperfluidStripeConverterController_mapStripeProductToCheckoutWidget"]; }; - '/superfluid-stripe-converter/product': { - get: operations['SuperfluidStripeConverterController_mapStripeProductToCheckoutWidget']; + "/superfluid-stripe-converter/products": { + get: operations["SuperfluidStripeConverterController_products"]; }; - '/superfluid-stripe-converter/products': { - get: operations['SuperfluidStripeConverterController_products']; + "/superfluid-stripe-converter/look-and-feel": { + get: operations["SuperfluidStripeConverterController_lookAndFeel"]; }; - '/superfluid-stripe-converter/look-and-feel': { - get: operations['SuperfluidStripeConverterController_lookAndFeel']; + "/superfluid-stripe-converter/invoice": { + get: operations["SuperfluidStripeConverterController_invoice"]; }; - '/health': { - get: operations['HealthController_check']; + "/health": { + get: operations["HealthController_check"]; }; } @@ -49,10 +53,11 @@ export type $defs = Record; export type external = Record; export interface operations { + StripeWebhookController_handleWebhook: { parameters: { header: { - 'stripe-signature': string; + "stripe-signature": string; }; }; responses: { @@ -64,12 +69,12 @@ export interface operations { CheckoutSessionController_createSession: { parameters: { header: { - 'x-api-key': string; + "x-api-key": string; }; }; requestBody: { content: { - 'application/json': components['schemas']['CreateSessionData']; + "application/json": components["schemas"]["CreateSessionData"]; }; }; responses: { @@ -81,7 +86,7 @@ export interface operations { SuperfluidStripeConverterController_mapStripeProductToCheckoutWidget: { parameters: { query: { - 'product-id': string; + "product-id": string; }; }; responses: { @@ -104,12 +109,24 @@ export interface operations { }; }; }; + SuperfluidStripeConverterController_invoice: { + parameters: { + query: { + "invoice-id": string; + }; + }; + responses: { + 200: { + content: never; + }; + }; + }; HealthController_check: { responses: { /** @description The Health Check is successful */ 200: { content: { - 'application/json': { + "application/json": { /** @example ok */ status?: string; /** @@ -119,19 +136,19 @@ export interface operations { * } * } */ - info?: { + info?: ({ [key: string]: { status?: string; [key: string]: string | undefined; }; - } | null; + }) | null; /** @example {} */ - error?: { + error?: ({ [key: string]: { status?: string; [key: string]: string | undefined; }; - } | null; + }) | null; /** * @example { * "database": { @@ -151,7 +168,7 @@ export interface operations { /** @description The Health Check is not successful */ 503: { content: { - 'application/json': { + "application/json": { /** @example error */ status?: string; /** @@ -161,12 +178,12 @@ export interface operations { * } * } */ - info?: { + info?: ({ [key: string]: { status?: string; [key: string]: string | undefined; }; - } | null; + }) | null; /** * @example { * "redis": { @@ -175,12 +192,12 @@ export interface operations { * } * } */ - error?: { + error?: ({ [key: string]: { status?: string; [key: string]: string | undefined; }; - } | null; + }) | null; /** * @example { * "database": { diff --git a/apps/frontend/src/pages/[product].tsx b/apps/frontend/src/pages/[product].tsx index e085e2e..9bd3ad4 100644 --- a/apps/frontend/src/pages/[product].tsx +++ b/apps/frontend/src/pages/[product].tsx @@ -3,10 +3,9 @@ import Layout from '@/components/Layout'; import SupefluidWidgetProvider from '@/components/SuperfluidWidgetProvider'; import WagmiProvider from '@/components/WagmiProvider'; import internalConfig from '@/internalConfig'; -import { Box, ThemeOptions } from '@mui/material'; -import { WidgetProps } from '@superfluid-finance/widget'; +import { ThemeOptions } from '@mui/material'; import { GetServerSideProps } from 'next'; -import { use, useEffect, useState } from 'react'; +import { useEffect, useState } from 'react'; import { paths } from '@/backend-openapi-client'; import createClient from 'openapi-fetch'; import { LookAndFeelConfig, ProductConfig } from './pricing'; diff --git a/apps/frontend/src/pages/invoice/[id].tsx b/apps/frontend/src/pages/invoice/[id].tsx new file mode 100644 index 0000000..05f11b1 --- /dev/null +++ b/apps/frontend/src/pages/invoice/[id].tsx @@ -0,0 +1,87 @@ +import ConnectKitProvider from '@/components/ConnectKitProvider'; +import Layout from '@/components/Layout'; +import SupefluidWidgetProvider from '@/components/SuperfluidWidgetProvider'; +import WagmiProvider from '@/components/WagmiProvider'; +import internalConfig from '@/internalConfig'; +import { ThemeOptions } from '@mui/material'; +import { GetServerSideProps } from 'next'; +import { useEffect, useState } from 'react'; +import { paths } from '@/backend-openapi-client'; +import createClient from 'openapi-fetch'; +import { InvoiceConfig, LookAndFeelConfig, ProductConfig } from '../pricing'; + +type Props = { + invoiceConfig: InvoiceConfig; + theme: ThemeOptions; +}; + +export default function Invoice({ invoiceConfig, theme }: Props) { + const [mounted, setMounted] = useState(false); + useEffect(() => setMounted(true), []); + + const { productConfig, stripeInvoice } = invoiceConfig; + + console.log(invoiceConfig); + + // TODO(KK): handle theme any + return ( + + + + {!!invoiceConfig && mounted && ( + + )} + + + + ); +} + +export const getServerSideProps = (async (context) => { + const invoiceId = context.query.id as string; + + const client = createClient({ + baseUrl: internalConfig.getBackendBaseUrl().toString(), + }); + + const [{ response: invoiceResponse }, { response: lookAndFeelResponse }] = await Promise.all([ + client.GET('/superfluid-stripe-converter/invoice', { + params: { + query: { + 'invoice-id': invoiceId, + }, + }, + }), + client.GET('/superfluid-stripe-converter/look-and-feel'), + ]); + + const invoiceConfig = (await invoiceResponse.json()) as InvoiceConfig; + const { theme } = (await lookAndFeelResponse.json()) as LookAndFeelConfig; + + return { + props: { + invoiceConfig, + theme, + }, + }; +}) satisfies GetServerSideProps; diff --git a/apps/frontend/src/pages/pricing.tsx b/apps/frontend/src/pages/pricing.tsx index 726d733..448ec8c 100644 --- a/apps/frontend/src/pages/pricing.tsx +++ b/apps/frontend/src/pages/pricing.tsx @@ -33,6 +33,11 @@ export type ProductConfig = { paymentDetails: WidgetProps['paymentDetails']; }; +export type InvoiceConfig = { + stripeInvoice: Stripe.Invoice; + productConfig: ProductConfig; +}; + export type LookAndFeelConfig = { theme: ThemeOptions }; type Props = {