The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Merge branch 'main' into feat/improve-api
Kiran Ke4aba829f90e
diff --cc apps/web/package.jsonindex 3f397e7b7a,4ffdb6dc64..47f41e5a98--- a/apps/web/package.json+++ b/apps/web/package.json@@@ -85,14 -84,9 +85,13 @@@"topojson-client": "^3.1.0","unsplash-js": "^7.0.18","use-debounce": "^8.0.4",- "vaul": "^0.6.8"+ "vaul": "^0.6.8",+ "zod": "^3.22.4",+ "zod-error": "^1.5.0",+ "zod-openapi": "^2.12.0",+ "zod-prisma-types": "^3.1.6"},"devDependencies": {- "@trivago/prettier-plugin-sort-imports": "^4.0.0","@types/dotenv-flow": "^3.3.2","@types/he": "^1.2.3","@types/html-escaper": "^3.0.0",diff --cc apps/web/ui/modals/remove-teammate-modal.tsxindex d63cfdd3cb,fc5dafe618..53ec67f44b--- a/apps/web/ui/modals/remove-teammate-modal.tsx+++ b/apps/web/ui/modals/remove-teammate-modal.tsx@@@ -112,12 -112,12 +112,12 @@@ function RemoveTeammateModal(session?.user?.email === email? "You have left the project!": invite- ? "Successfully revoked invitation!"- : "Successfully removed teammate!",+ ? "Successfully revoked invitation!"+ : "Successfully removed teammate!",);} else {- const error = await res.text();- toast.error(error);+ const { error } = await res.json();+ toast.error(error.message);}setRemoving(false);});diff --cc pnpm-lock.yamlindex 2b48d8f441,73e2ea98c1..a12b819cc0--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@@ -259,22 -256,7 +259,19 @@@ importersvaul:specifier: ^0.6.8version: 0.6.8(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ zod:+ specifier: ^3.22.4+ version: 3.22.4+ zod-error:+ specifier: ^1.5.0+ version: 1.5.0+ zod-openapi:+ specifier: ^2.12.0+ version: 2.12.0([email protected])+ zod-prisma-types:+ specifier: ^3.1.6+ version: 3.1.6devDependencies:- '@trivago/prettier-plugin-sort-imports':- specifier: ^4.0.0- version: 4.0.0(@vue/[email protected])([email protected])'@types/dotenv-flow':specifier: ^3.3.2version: 3.3.2@@@ -7696,25 -7789,13 +7026,6 @@@ packagesengines: {node: '>= 10'}dev: false- resolution: {integrity: sha512-Tyuk5ZY4a0e2MNFLdluQO9F6d1awFQYXVVujEPFfvKPPXz8DADNHzz73NMhwCSXGSuGGZcA/rKOyZBrxVNMxaA==}- peerDependencies:- '@vue/compiler-sfc': 3.x- prettier: 2.x- /@types/[email protected]:- resolution: {integrity: sha512-zeOWb0JGBoVmlQoznvqXbE0tEC/HONsnoUNH19Hc96NFsTAwTXbTqb8FMYkru1F/iqp7a18Ws3nWJvtA1sHD1A==}- deprecated: This is a stub types definition. classnames provides its own type definitions, so you do not need this installed.-- dependencies:- '@babel/core': 7.17.8- '@babel/generator': 7.17.7- '@babel/parser': 7.18.9- '@babel/traverse': 7.17.3- '@babel/types': 7.17.0- '@vue/compiler-sfc': 3.3.4- javascript-natural-sort: 0.7.1- lodash: 4.17.21- prettier: 3.0.3- transitivePeerDependencies:- - supports-color- classnames: 2.3.2-- dev: true--/@types/[email protected]:resolution: {integrity: sha512-WFHg/KFLCdUQl3m27WSQu0NEaLzoHGmgZHlsSYr0Y0iIvItMcBq7opZc6AGXPXqf+btIM6vTBJyLvuDAihB+zQ==}dev: false@@@ -7996,31 -8093,93 +7307,31 @@@dependencies:'@types/yargs-parser': 21.0.1dev: false-- /@types/[email protected]:- resolution: {integrity: sha512-oTP7/Q13GSPrgcwEwdlnkoZSQ1Hg9THe644qq8PG6hhJzjZ3qj1JjEFPIwWV/IXVs5XGIVqtkNOS9kh63WIJ+A==}- dependencies:- '@types/yargs-parser': 21.0.1- dev: false-- /@types/[email protected]:- resolution: {integrity: sha512-N3e3fkS86hNhtk6BEnc0rj3zcehaxx8QWhCROJkqpl5Zaoi7nAic3jH8q94jVD3zu5LGk+PUB6KAiDmimYOEQw==}- dependencies:- '@types/yargs-parser': 21.0.1- dev: false-- /@types/[email protected]:- resolution: {integrity: sha512-S9q47ByT2pPvD65IvrWp7qppVMpk9WGMbVq9wbWZOHg6tnXSD4vyhao6nOSBwwfDdV2p3Kx9evA9vI+XWTfDvw==}- dev: false-- resolution: {integrity: sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- peerDependencies:- eslint: ^6.0.0 || ^7.0.0 || ^8.0.0- typescript: '*'- peerDependenciesMeta:- typescript:- optional: true- dependencies:- '@typescript-eslint/scope-manager': 5.62.0- '@typescript-eslint/types': 5.62.0- '@typescript-eslint/typescript-estree': 5.62.0([email protected])- debug: 4.3.4- eslint: 8.36.0- typescript: 4.9.3- transitivePeerDependencies:- - supports-color- dev: true-- /@typescript-eslint/[email protected]:- resolution: {integrity: sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- dependencies:- '@typescript-eslint/types': 5.62.0- '@typescript-eslint/visitor-keys': 5.62.0- dev: true-- /@typescript-eslint/[email protected]:- resolution: {integrity: sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- dev: true-- /@typescript-eslint/[email protected]([email protected]):- resolution: {integrity: sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- peerDependencies:- typescript: '*'- peerDependenciesMeta:- typescript:- optional: true++ /@types/[email protected]:+ resolution: {integrity: sha512-oTP7/Q13GSPrgcwEwdlnkoZSQ1Hg9THe644qq8PG6hhJzjZ3qj1JjEFPIwWV/IXVs5XGIVqtkNOS9kh63WIJ+A==}dependencies:- '@typescript-eslint/types': 5.62.0- '@typescript-eslint/visitor-keys': 5.62.0- debug: 4.3.4- globby: 11.1.0- is-glob: 4.0.3- semver: 7.5.4- tsutils: 3.21.0([email protected])- typescript: 4.9.3- transitivePeerDependencies:- - supports-color- dev: true+ '@types/yargs-parser': 21.0.1+ dev: false- /@typescript-eslint/[email protected]:- resolution: {integrity: sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}+ /@types/[email protected]:+ resolution: {integrity: sha512-N3e3fkS86hNhtk6BEnc0rj3zcehaxx8QWhCROJkqpl5Zaoi7nAic3jH8q94jVD3zu5LGk+PUB6KAiDmimYOEQw==}dependencies:- '@typescript-eslint/types': 5.62.0- eslint-visitor-keys: 3.4.3- dev: true+ '@types/yargs-parser': 21.0.1+ dev: false++ /@types/[email protected]:+ resolution: {integrity: sha512-S9q47ByT2pPvD65IvrWp7qppVMpk9WGMbVq9wbWZOHg6tnXSD4vyhao6nOSBwwfDdV2p3Kx9evA9vI+XWTfDvw==}+ dev: falseresolution: {integrity: sha512-81kK0rCpNunSJOhr37mTufqbNE3JhssA2RQsSjNxzq2nR/FCPK3RZWvQxuZoJrfO4vPl2FfytZAy02jTyUVpjg==}engines: {node: '>=16.0.0'}dependencies:'@upstash/redis': 1.25.1react: 18.2.0- zod: 3.22.3+ zod: 3.22.4transitivePeerDependencies:- '@babel/core'- babel-plugin-macros@@@ -13396,7 -13906,47 +12510,7 @@@- babel-plugin-macrosdev: false- /[email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]):- /[email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]):- resolution: {integrity: sha512-tVgaJmsBjqc0NX3Ww4ZqTYJpqtNmhvyGS7X9UytDiYGNEzG/m0L+ts1a/LSbtXpVcnRYAAZZvBSa+4s/jKUCiw==}- engines: {node: '>=18.17.0'}- hasBin: true- peerDependencies:- '@opentelemetry/api': ^1.1.0- react: ^18.2.0- react-dom: ^18.2.0- sass: ^1.3.0- peerDependenciesMeta:- '@opentelemetry/api':- optional: true- sass:- optional: true- dependencies:- '@next/env': 14.0.5-canary.55- '@opentelemetry/api': 1.4.1- '@swc/helpers': 0.5.2- busboy: 1.6.0- caniuse-lite: 1.0.30001546- graceful-fs: 4.2.11- postcss: 8.4.31- react: 18.2.0- react-dom: 18.2.0([email protected])- styled-jsx: 5.1.1(@babel/[email protected])([email protected])- optionalDependencies:- '@next/swc-darwin-arm64': 14.0.5-canary.55- '@next/swc-darwin-x64': 14.0.5-canary.55- '@next/swc-linux-arm64-gnu': 14.0.5-canary.55- '@next/swc-linux-arm64-musl': 14.0.5-canary.55- '@next/swc-linux-x64-gnu': 14.0.5-canary.55- '@next/swc-linux-x64-musl': 14.0.5-canary.55- '@next/swc-win32-arm64-msvc': 14.0.5-canary.55- '@next/swc-win32-ia32-msvc': 14.0.5-canary.55- '@next/swc-win32-x64-msvc': 14.0.5-canary.55- transitivePeerDependencies:- - '@babel/core'- - babel-plugin-macros- dev: false-+ /[email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]):resolution: {integrity: sha512-AXuIZO7hRY8o6FZBkeoZnDRMKLfjmIBE4dN0DiVv9m1G0SzCaEbhuMnrpbUAmRrCeaVK+iMzmFhng5h1A3lYkQ==}engines: {node: '>=18.17.0'}hasBin: true@@@ -14356,12 -14995,18 +13459,12 @@@prettier-plugin-twig-melody:optional: truedependencies:- prettier: 3.0.3- prettier-plugin-organize-imports: 3.2.3([email protected])([email protected])+ prettier: 3.2.5+ prettier-plugin-organize-imports: 3.2.4([email protected])([email protected])dev: true- resolution: {integrity: sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==}- resolution: {integrity: sha512-vIS4Rlc2FNh0BySk3Wkd6xmwxB0FpOndW5fisM5H8hsZSxU2VWVB5CWIkIjWvrHjIhxk2g3bfMKM87zNTrZddw==}- engines: {node: '>=10.13.0'}- hasBin: true- dev: true-+ resolution: {integrity: sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==}engines: {node: '>=14'}hasBin: truedev: true@@@ -14572,7 -15223,69 +13675,7 @@@react: 18.2.0scheduler: 0.23.0- /[email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]):- /[email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]):- resolution: {integrity: sha512-XzxyWkrfZC3zF9HnAjWwB823u9eTMpAQCy+SjLMtNSh4i8WuV8Fr5LriTTz/p1RRt6aXoiV3c/ZthaDt0nvBEA==}- engines: {node: '>=18.0.0'}- hasBin: true- dependencies:- '@radix-ui/colors': 1.0.1- '@radix-ui/react-collapsible': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])- '@radix-ui/react-popover': 1.0.6(@types/[email protected])(@types/[email protected])([email protected])([email protected])- '@radix-ui/react-slot': 1.0.2(@types/[email protected])([email protected])- '@radix-ui/react-toggle-group': 1.0.4(@types/[email protected])(@types/[email protected])([email protected])([email protected])- '@radix-ui/react-tooltip': 1.0.6(@types/[email protected])(@types/[email protected])([email protected])([email protected])- '@react-email/components': 0.0.14(@types/[email protected])([email protected])- '@react-email/render': 0.0.12- '@swc/core': 1.3.101- '@types/react': 18.2.48- '@types/react-dom': 18.2.14- '@types/webpack': 5.28.5(@swc/[email protected])([email protected])- autoprefixer: 10.4.14([email protected])- chalk: 4.1.2- chokidar: 3.5.3- clsx: 2.1.0- commander: 11.1.0- debounce: 2.0.0- esbuild: 0.19.11- eslint-config-prettier: 9.0.0([email protected])- eslint-config-turbo: 1.10.12([email protected])- framer-motion: 10.17.4([email protected])([email protected])- glob: 10.3.4- log-symbols: 4.1.0- mime-types: 2.1.35- next: 14.0.5-canary.46(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])- normalize-path: 3.0.0- ora: 5.4.1- postcss: 8.4.32- prism-react-renderer: 2.1.0([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])- shelljs: 0.8.5- socket.io: 4.7.3- socket.io-client: 4.7.3- sonner: 1.3.1([email protected])([email protected])- source-map-js: 1.0.2- stacktrace-parser: 0.1.10- tailwind-merge: 2.2.0- tailwindcss: 3.4.0- tree-cli: 0.6.7- typescript: 5.1.6- transitivePeerDependencies:- - '@babel/core'- - '@opentelemetry/api'- - '@swc/helpers'- - babel-plugin-macros- - bufferutil- - eslint- - sass- - supports-color- - ts-node- - uglify-js- - utf-8-validate- - webpack-cli- dev: false-+ /[email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]):resolution: {integrity: sha512-XzxyWkrfZC3zF9HnAjWwB823u9eTMpAQCy+SjLMtNSh4i8WuV8Fr5LriTTz/p1RRt6aXoiV3c/ZthaDt0nvBEA==}engines: {node: '>=18.0.0'}hasBin: true