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 K7a9f6d101771
diff --cc apps/web/lib/auth/index.tsindex 1fb4d37ca6,4ec98b8006..1e2c3a3f53--- a/apps/web/lib/auth/index.ts+++ b/apps/web/lib/auth/index.ts@@@ -93,269 -91,281 +93,267 @@@ export const withAuthlet session: Session | undefined;let headers = {};- // if there's no projectSlug defined- if (!slug) {- if (allowAnonymous) {- // @ts-expect-error- return handler({- req,- params: params || {},- searchParams,- headers,- });- } else {- return new Response(- "Project slug not found. Did you forget to include a `projectSlug` query parameter?",- {- status: 400,- },- );+ try {+ // if there's no projectSlug defined+ if (!slug) {+ if (allowAnonymous) {+ // @ts-expect-error+ return handler({+ req,+ params: params || {},+ searchParams,+ headers,+ });+ } else {+ throw new DubApiError({+ code: "not_found",+ message:+ "Project slug not found. Did you forget to include a `projectSlug` query parameter?",+ });+ }}- }- const authorizationHeader = req.headers.get("Authorization");- if (authorizationHeader) {- if (!authorizationHeader.includes("Bearer ")) {- return new Response(- "Misconfigured authorization header. Did you forget to add 'Bearer '? Learn more: https://dub.sh/auth ",- {- status: 400,- },- );- }- const apiKey = authorizationHeader.replace("Bearer ", "");+ const authorizationHeader = req.headers.get("Authorization");+ if (authorizationHeader) {+ if (!authorizationHeader.includes("Bearer ")) {+ throw new DubApiError({+ code: "bad_request",+ message:+ "Misconfigured authorization header. Did you forget to add 'Bearer '? Learn more: https://dub.sh/auth",+ });+ }+ const apiKey = authorizationHeader.replace("Bearer ", "");- const url = new URL(req.url || "", API_DOMAIN);+ const url = new URL(req.url || "", API_DOMAIN);- if (url.pathname.includes("/stats")) {- return new Response("API access is not available for stats yet.", {- status: 403,- });- }+ if (url.pathname.includes("/stats")) {+ throw new DubApiError({+ code: "forbidden",+ message: "API access is not available for stats yet.",+ });+ }- const hashedKey = hashToken(apiKey, {- noSecret: true,- });+ const hashedKey = hashToken(apiKey, {+ noSecret: true,+ });- const user = await prisma.user.findFirst({- where: {- tokens: {- some: {- hashedKey,+ const user = await prisma.user.findFirst({+ where: {+ tokens: {+ some: {+ hashedKey,+ },},},- },- select: {- id: true,- name: true,- email: true,- },- });- if (!user) {- return new Response("Unauthorized: Invalid API key.", {- status: 401,+ select: {+ id: true,+ name: true,+ email: true,+ },});- }+ if (!user) {+ throw new DubApiError({+ code: "unauthorized",+ message: "Unauthorized: Invalid API key.",+ });+ }- const { success, limit, reset, remaining } = await ratelimit(- 10,- "1 s",- ).limit(apiKey);-- headers = {- "Retry-After": reset.toString(),- "X-RateLimit-Limit": limit.toString(),- "X-RateLimit-Remaining": remaining.toString(),- "X-RateLimit-Reset": reset.toString(),- };-- if (!success) {- return new Response("Too many requests.", {- status: 429,- headers,- });- }- await prisma.token.update({- where: {- hashedKey,- },- data: {- lastUsed: new Date(),- },- });- session = {- user: {- id: user.id,- name: user.name || "",- email: user.email || "",- },- };- } else {- session = await getSession();- if (!session?.user?.id) {- return new Response("Unauthorized: Login required.", {- status: 401,- headers,+ const { success, limit, reset, remaining } = await ratelimit(+ 10,+ "1 s",+ ).limit(apiKey);++ headers = {+ "Retry-After": reset.toString(),+ "X-RateLimit-Limit": limit.toString(),+ "X-RateLimit-Remaining": remaining.toString(),+ "X-RateLimit-Reset": reset.toString(),+ };++ if (!success) {+ throw new DubApiError({+ code: "rate_limit_exceeded",+ message: "Too many requests.",+ });+ }+ await prisma.token.update({+ where: {+ hashedKey,+ },+ data: {+ lastUsed: new Date(),+ },});+ session = {+ user: {+ id: user.id,+ name: user.name || "",+ email: user.email || "",+ },+ };+ } else {+ session = await getSession();+ if (!session?.user?.id) {+ throw new DubApiError({+ code: "unauthorized",+ message: "Unauthorized: Login required.",+ });+ }}- }- const [project, link] = (await Promise.all([- prisma.project.findUnique({- where: {- slug,- },- select: {- id: true,- name: true,- slug: true,- logo: true,- usage: true,- usageLimit: true,- linksUsage: true,- linksLimit: true,- domainsLimit: true,- tagsLimit: true,- usersLimit: true,- plan: true,- stripeId: true,- billingCycleStart: true,- createdAt: true,- users: {- where: {- userId: session.user.id,- },- select: {- role: true,- },+ const [project, link] = (await Promise.all([+ prisma.project.findUnique({+ where: {+ slug,},- domains: {- select: {- slug: true,- primary: true,- },- },- metadata: true,- },- }),- linkId- ? prisma.link.findUnique({- where: {- id: linkId,+ select: {+ id: true,+ name: true,+ slug: true,+ logo: true,+ usage: true,+ usageLimit: true,+ linksUsage: true,+ linksLimit: true,+ domainsLimit: true,+ tagsLimit: true,+ usersLimit: true,+ plan: true,+ stripeId: true,+ billingCycleStart: true,+ createdAt: true,+ users: {+ where: {+ userId: session.user.id,+ },+ select: {+ role: true,+ },},- })- : domain && key && key !== "_root"- ? prisma.link.findUnique({- where: {- domain_key: {- domain,- key,+ domains: {+ select: {+ slug: true,+ primary: true,},},- })- : undefined,- ])) as [ProjectProps, LinkProps | undefined];-- if (!project || !project.users) {- // project doesn't exist- return new Response("Project not found.", {- status: 404,- headers,- });- }-- // prevent unauthorized access to domains that don't belong to the project- if (- domain &&- !isDubDomain(domain) &&- !project.domains.find((d) => d.slug === domain)- ) {- return new Response("Domain does not belong to project.", {- status: 403,- headers,- });- }-- // project exists but user is not part of it- if (project.users.length === 0) {- const pendingInvites = await prisma.projectInvite.findUnique({- where: {- email_projectId: {- email: session.user.email,- projectId: project.id,+ metadata: true,},- },- select: {- expires: true,- },- });- if (!pendingInvites) {- return new Response("Project not found.", {- status: 404,- headers,+ }),+ linkId+ ? prisma.link.findUnique({+ where: {+ id: linkId,+ },+ })+ : domain && key && key !== "_root"+ ? prisma.link.findUnique({+ where: {+ domain_key: {+ domain,+ key,+ },+ },+ })+ : undefined,+ ])) as [ProjectProps, LinkProps | undefined];++ if (!project || !project.users) {+ // project doesn't exist+ throw new DubApiError({+ code: "not_found",+ message: "Project not found.",});- } else if (pendingInvites.expires < new Date()) {- return new Response("Project invite expired.", {- status: 410,- headers,+ }++ // prevent unauthorized access to domains that don't belong to the project+ if (+ domain &&+ !isDubDomain(domain) &&+ !project.domains.find((d) => d.slug === domain)+ ) {+ throw new DubApiError({+ code: "forbidden",+ message: "Domain does not belong to project.",});- } else {- return new Response("Project invite pending.", {- status: 409,- headers,+ }++ // project exists but user is not part of it+ if (project.users.length === 0) {+ const pendingInvites = await prisma.projectInvite.findUnique({+ where: {+ email_projectId: {+ email: session.user.email,+ projectId: project.id,+ },+ },+ select: {+ expires: true,+ },});+ if (!pendingInvites) {+ throw new DubApiError({+ code: "not_found",+ message: "Project not found.",+ });+ } else if (pendingInvites.expires < new Date()) {+ throw new DubApiError({+ code: "invite_expired",+ message: "Project invite expired.",+ });+ } else {+ throw new DubApiError({+ code: "invite_pending",+ message: "Project invite pending.",+ });+ }}- }- // project role checks (enterprise only)- // project role checks- if (- !requiredRole.includes(project.users[0].role) &&- !(allowSelf && searchParams.userId === session.user.id)- ) {- return new Response("Unauthorized: Insufficient permissions.", {- status: 403,- headers,- });- }++ // project role checks+ if (- requiredRole &&- project.plan === "enterprise" &&+ !requiredRole.includes(project.users[0].role) &&+ !(allowSelf && searchParams.userId === session.user.id)+ ) {+ throw new DubApiError({+ code: "forbidden",+ message: "Unauthorized: Insufficient permissions.",+ });+ }- // clicks usage overage checks- if (needNotExceededClicks && project.usage > project.usageLimit) {- return new Response(- exceededLimitError({- plan: project.plan,- limit: project.usageLimit,- type: "clicks",- }),- {- status: 403,- headers,- },- );- }+ // clicks usage overage checks+ if (needNotExceededClicks && project.usage > project.usageLimit) {+ throw new DubApiError({+ code: "forbidden",+ message: exceededLimitError({+ plan: project.plan,+ limit: project.usageLimit,+ type: "clicks",+ }),+ });+ }- // links usage overage checks- if (- needNotExceededLinks &&- project.linksUsage > project.linksLimit &&- (project.plan === "free" || project.plan === "pro")- ) {- return new Response(- exceededLimitError({- plan: project.plan,- limit: project.linksLimit,- type: "links",- }),- {- status: 403,- headers,- },- );- }+ // links usage overage checks+ if (+ needNotExceededLinks &&+ project.linksUsage > project.linksLimit &&+ (project.plan === "free" || project.plan === "pro")+ ) {+ throw new DubApiError({+ code: "forbidden",+ message: exceededLimitError({+ plan: project.plan,+ limit: project.linksLimit,+ type: "links",+ }),+ });+ }- // plan checks- if (!requiredPlan.includes(project.plan)) {- // return res.status(403).end("Unauthorized: Need higher plan.");- return new Response("Unauthorized: Need higher plan.", {- status: 403,- headers,- });- }+ // plan checks+ if (!requiredPlan.includes(project.plan)) {+ // return res.status(403).end("Unauthorized: Need higher plan.");- // link checks (if linkId or domain and key are provided)- if ((linkId || (domain && key && key !== "_root")) && !skipLinkChecks) {- // if link doesn't exist- if (!link) {- return new Response("Link not found.", {- status: 404,- headers,+ throw new DubApiError({+ code: "forbidden",+ message: "Unauthorized: Need higher plan.",});}diff --cc pnpm-lock.yamlindex 9c8a6c9bc9,0feb93813b..391eb7707e--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@@ -4119,10 -4436,20 +4119,10 @@@ packagesresolution: {integrity: sha512-dvNzrArTfe3VY1VIscpb3E2e7SZ1qwFe82WGzpOVbxilT3JcsnVGYF/uq8Jj1qKWPI5C/aePNXwA97JRNAXpRQ==}dev: false-- /@next/[email protected]:-- resolution: {integrity: sha512-lKlL94ooMtKMtTzIuZfYkDqXQoODb91GXURp71vvgqTSbtmzFWJlrghc2Gd1uKYe5OHhSk4YL8ENVNqidopXoA==}- dev: false-+ /@next/[email protected]:+ resolution: {integrity: sha512-v6FRSD3aZ1lf9sLAaGBlvGccffSRx3NhbANdFO2yrj6TVdFkAOvemhwL6GBZ2V+2MlAbTqWtVW7oJie+GgQWoA==}dev: false- /@next/[email protected]:- resolution: {integrity: sha512-ck1lI+7r1mMJpqLNa3LJ5pxCfOB1lfJncKmRJeJxcJqcngaFwylreLP7da6Rrjr6u2gVRTfmnkSkjc80IiQCwQ==}- dependencies:- glob: 7.1.7- dev: true-/@next/[email protected]:resolution: {integrity: sha512-F3/6Z8LH/pGlPzR1AcjPFxx35mPqjE5xZcf+IL+KgbW9tMkp7CYi1y7qKrEWU7W4AumxX/8OINnDQWLiwLasLQ==}engines: {node: '>= 10'}@@@ -4168,8 -4495,17 +4168,8 @@@dev: falseoptional: true-- /@next/[email protected]:-- resolution: {integrity: sha512-8hztLH9EbtWWtOb/dh7ICXM1oIq4xgIYnnF+ml62EB1YBrrahZuSqmFQ4ORk50uHrP4yR2N7k+dsNbY6r4ngBA==}- engines: {node: '>= 10'}- cpu: [arm64]- os: [darwin]- requiresBuild: true- dev: false- optional: true-+ /@next/[email protected]:+ resolution: {integrity: sha512-9E38as2/pXDXiNILNESv8jyajghyBzQ4Vki9V2cMD2o48pfC97ZuewCZmV5pYkoAqY9iC2jHsWodyypNwHlS4w==}engines: {node: '>= 10'}cpu: [arm64]os: [darwin]@@@ -4204,8 -4540,17 +4204,8 @@@dev: falseoptional: true-- /@next/[email protected]:-- resolution: {integrity: sha512-1TraatcS7+8NX0Yv5tbXYTD44gCY+3X3VFEdcBMoj1ZHdb/ApcVgAcoCR1qpq2x4EntbWMRp+TxEtq/+nuVq7Q==}- engines: {node: '>= 10'}- cpu: [x64]- os: [darwin]- requiresBuild: true- dev: false- optional: true-+ /@next/[email protected]:+ resolution: {integrity: sha512-BQ7p8U3N+Zijh5oWfUDKoyTurw38jSUFs38K9vAoE3EZQJB+WFtHkS5X01K50YwacdgryjTlje5Bxf9PrqCvVA==}engines: {node: '>= 10'}cpu: [x64]os: [darwin]@@@ -4258,8 -4603,17 +4258,8 @@@dev: falseoptional: true-- /@next/[email protected]:-- resolution: {integrity: sha512-rfQRIDMpvn6TI4uzXa/kbNw+9FY9DljBHl8iDLOCC456iHqaLOK9aAJxJ4Sr1qk4AFnDG2HuTMQE/KeoRoRtTg==}- engines: {node: '>= 10'}- cpu: [arm64]- os: [linux]- requiresBuild: true- dev: false- optional: true-+ /@next/[email protected]:+ resolution: {integrity: sha512-/kcfFxteFg52mtEbNMt1emKTSJaHx0t2FDCrZNsasrWEbsx3T8d3J3ROUNLRiLpvDCeYaTDZO1PU52TYfj50dA==}engines: {node: '>= 10'}cpu: [arm64]os: [linux]@@@ -4294,8 -4648,17 +4294,8 @@@dev: falseoptional: true-- /@next/[email protected]:-- resolution: {integrity: sha512-ctVykTVa62PmyaMPW0txoIW9WfMqR3cInNZc2bkWj8fJBiWWEtsEehv9+HCm+5Mvk156qlVuJqmAAgWZjGPmBA==}- engines: {node: '>= 10'}- cpu: [arm64]- os: [linux]- requiresBuild: true- dev: false- optional: true-+ /@next/[email protected]:+ resolution: {integrity: sha512-Liugqgu29KODzg+GiJLxDyDdT42v4WgzqjOr+Xq3jUv7v28IBfyx1MRPlOrOUFoD2jOr8XHo02JLBlURg/0oLA==}engines: {node: '>= 10'}cpu: [arm64]os: [linux]@@@ -4330,8 -4693,17 +4330,8 @@@dev: falseoptional: true-- /@next/[email protected]:-- resolution: {integrity: sha512-ijPrsn/sdIz1Y04tDvIxz+1hRbPldUoScPS3k0O9EUIUFEQwVE6YEzQLod4138GunUyncDkZT20ZdWrMxIWetg==}- engines: {node: '>= 10'}- cpu: [x64]- os: [linux]- requiresBuild: true- dev: false- optional: true-+ /@next/[email protected]:+ resolution: {integrity: sha512-rWEdjhteOKBNN5IgX/xq+nJgUoh1qlZU4IZkM5G1R90f/HzNG/uux7k3GLiunAEx3cBZCKwmHXMwyUd8QY4KcQ==}engines: {node: '>= 10'}cpu: [x64]os: [linux]@@@ -4366,8 -4738,17 +4366,8 @@@dev: falseoptional: true-- /@next/[email protected]:-- resolution: {integrity: sha512-WJiCQC3CmxMiK30di8PAjistG98I5okJoz9ciMuHpq/lu3R5tm4fl9AH0HWvSQJ5+2+GRqS9Ej0dhQJEkhEo3Q==}- engines: {node: '>= 10'}- cpu: [x64]- os: [linux]- requiresBuild: true- dev: false- optional: true-+ /@next/[email protected]:+ resolution: {integrity: sha512-oXrh9UxTEoZI0kuiGcs2XHuI8VSdipBnIvZAAiOokY+GCkv163DgQh2IpKM/RlPso++m2a8Ch671pSWN8Zd4Iw==}engines: {node: '>= 10'}cpu: [x64]os: [linux]@@@ -4402,8 -4783,17 +4402,8 @@@dev: falseoptional: true-- /@next/[email protected]:-- resolution: {integrity: sha512-3XJ2FTwPxuiv6pCIs43CljTEjH/tJa4HCrs7YKd9JiggZcNUd+oqIP4B+u2r7lSkIG1h9DRAHW6CSgx5T4woJw==}- engines: {node: '>= 10'}- cpu: [arm64]- os: [win32]- requiresBuild: true- dev: false- optional: true-+ /@next/[email protected]:+ resolution: {integrity: sha512-fQsn+Y66UpFeppIe6TDMjM9BfMUM8h7WKh+gA/zCKBBpWv6BEo0QZTOHtoVbwYlb3VwDQi9T8yT8Ad3dl7TP2g==}engines: {node: '>= 10'}cpu: [arm64]os: [win32]@@@ -4438,8 -4828,17 +4438,8 @@@dev: falseoptional: true-- /@next/[email protected]:-- resolution: {integrity: sha512-+p7G+VrLbu73ZXmzTf30NJ2q/sW0Fs+lIwpDjzYSVBRUX+rDfCmE6ieeTIUIJocZQF018gTCe4w3KOsQQkkRdA==}- engines: {node: '>= 10'}- cpu: [ia32]- os: [win32]- requiresBuild: true- dev: false- optional: true-+ /@next/[email protected]:+ resolution: {integrity: sha512-iLdMJG8hzJ2+a+YTalqqhjl0vuX+VC9SBJMs0nPth3XiKvhmwWtwOqQU7PiK1Ea8OgIvJvF+o1GAq+P/SeC5jA==}engines: {node: '>= 10'}cpu: [ia32]os: [win32]@@@ -4474,8 -4873,17 +4474,8 @@@dev: falseoptional: true-- /@next/[email protected]:-- resolution: {integrity: sha512-k7vTwIkD7Pfe+dgIGtI30dh4fKShz4NClgnpY0y9X2egZ8r6PUWSiozziHqgKys8RQm9p60ziWCu4wK1xLlRjQ==}- engines: {node: '>= 10'}- cpu: [x64]- os: [win32]- requiresBuild: true- dev: false- optional: true-+ /@next/[email protected]:+ resolution: {integrity: sha512-EpIJEBSWVig3E82wnNkaLgwkw6HkZ4+x6x5YB2wurHQZJt9+jFLFJex3wt7rO9XJI8R5sn+kVHwF2g25BJUihQ==}engines: {node: '>= 10'}cpu: [x64]os: [win32]@@@ -4843,8 -5237,8 +4843,8 @@@'@radix-ui/primitive': 1.0.1'@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])'@radix-ui/react-context': 1.0.1(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.0.1(@types/[email protected])(@types/[email protected])([email protected])([email protected])- '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-primitive': 1.0.3(@types/[email protected])([email protected])([email protected])'@radix-ui/react-use-controllable-state': 1.0.1(@types/[email protected])([email protected])'@radix-ui/react-use-previous': 1.0.1(@types/[email protected])([email protected])'@radix-ui/react-use-size': 1.0.1(@types/[email protected])([email protected])@@@ -5101,13 -5527,13 +5101,13 @@@'@radix-ui/primitive': 1.0.1'@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])'@radix-ui/react-context': 1.0.1(@types/[email protected])([email protected])- '@radix-ui/react-dismissable-layer': 1.0.5(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.0.5(@types/[email protected])([email protected])([email protected])'@radix-ui/react-focus-guards': 1.0.1(@types/[email protected])([email protected])- '@radix-ui/react-focus-scope': 1.0.4(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.0.4(@types/[email protected])([email protected])([email protected])'@radix-ui/react-id': 1.0.1(@types/[email protected])([email protected])- '@radix-ui/react-portal': 1.0.4(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-presence': 1.0.1(@types/[email protected])(@types/[email protected])([email protected])([email protected])- '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-primitive': 1.0.3(@types/[email protected])([email protected])([email protected])'@radix-ui/react-slot': 1.0.2(@types/[email protected])([email protected])'@radix-ui/react-use-controllable-state': 1.0.1(@types/[email protected])([email protected])'@types/react': 18.2.48@@@ -5473,14 -5989,14 +5473,14 @@@'@radix-ui/primitive': 1.0.1'@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])'@radix-ui/react-context': 1.0.1(@types/[email protected])([email protected])- '@radix-ui/react-dismissable-layer': 1.0.5(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.0.5(@types/[email protected])([email protected])([email protected])'@radix-ui/react-focus-guards': 1.0.1(@types/[email protected])([email protected])- '@radix-ui/react-focus-scope': 1.0.4(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.0.4(@types/[email protected])([email protected])([email protected])'@radix-ui/react-id': 1.0.1(@types/[email protected])([email protected])- '@radix-ui/react-portal': 1.0.4(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-presence': 1.0.1(@types/[email protected])(@types/[email protected])([email protected])([email protected])- '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-primitive': 1.0.3(@types/[email protected])([email protected])([email protected])'@radix-ui/react-slot': 1.0.2(@types/[email protected])([email protected])'@radix-ui/react-use-controllable-state': 1.0.1(@types/[email protected])([email protected])'@types/react': 18.2.48@@@ -5636,29 -6187,29 +5636,7 @@@react-dom: 18.2.0([email protected])dev: false- /@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):- resolution: {integrity: sha512-UXLW4UAbIY5ZjcvzjfRFo5gxva8QirC9hF7wRE4U5gz+TP0DbRk+//qyuAQ1McDxBt1xNMBTaciFGvEmJvAZCg==}- peerDependencies:- '@types/react': '*'- '@types/react-dom': '*'- react: ^16.8 || ^17.0 || ^18.0- react-dom: ^16.8 || ^17.0 || ^18.0- peerDependenciesMeta:- '@types/react':- optional: true- '@types/react-dom':- optional: true- dependencies:- '@babel/runtime': 7.23.2- '@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])- '@radix-ui/react-use-layout-effect': 1.0.1(@types/[email protected])([email protected])- '@types/react': 18.0.25- '@types/react-dom': 18.0.9- react: 18.2.0- react-dom: 18.2.0([email protected])- dev: false-/@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):- resolution: {integrity: sha512-UXLW4UAbIY5ZjcvzjfRFo5gxva8QirC9hF7wRE4U5gz+TP0DbRk+//qyuAQ1McDxBt1xNMBTaciFGvEmJvAZCg==}- peerDependencies:- '@types/react': '*'- '@types/react-dom': '*'- react: ^16.8 || ^17.0 || ^18.0- react-dom: ^16.8 || ^17.0 || ^18.0- peerDependenciesMeta:- '@types/react':- optional: true- '@types/react-dom':- optional: true- dependencies:- '@babel/runtime': 7.23.9- '@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])- '@radix-ui/react-use-layout-effect': 1.0.1(@types/[email protected])([email protected])- '@types/react': 18.2.48- '@types/react-dom': 18.2.14- react: 18.2.0- react-dom: 18.2.0([email protected])- dev: false-resolution: {integrity: sha512-UXLW4UAbIY5ZjcvzjfRFo5gxva8QirC9hF7wRE4U5gz+TP0DbRk+//qyuAQ1McDxBt1xNMBTaciFGvEmJvAZCg==}peerDependencies:'@types/react': '*'@@@ -5774,9 -6327,9 +5753,9 @@@'@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])'@radix-ui/react-context': 1.0.1(@types/[email protected])([email protected])'@radix-ui/react-direction': 1.0.1(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.0.1(@types/[email protected])(@types/[email protected])([email protected])([email protected])- '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])- '@radix-ui/react-roving-focus': 1.0.4(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-primitive': 1.0.3(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-roving-focus': 1.0.4(@types/[email protected])([email protected])([email protected])'@radix-ui/react-use-controllable-state': 1.0.1(@types/[email protected])([email protected])'@radix-ui/react-use-previous': 1.0.1(@types/[email protected])([email protected])'@radix-ui/react-use-size': 1.0.1(@types/[email protected])([email protected])@@@ -5994,15 -6611,15 +5973,15 @@@'@radix-ui/primitive': 1.0.1'@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])'@radix-ui/react-context': 1.0.1(@types/[email protected])([email protected])- '@radix-ui/react-dismissable-layer': 1.0.5(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.0.5(@types/[email protected])([email protected])([email protected])'@radix-ui/react-id': 1.0.1(@types/[email protected])([email protected])- '@radix-ui/react-portal': 1.0.4(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-presence': 1.0.1(@types/[email protected])(@types/[email protected])([email protected])([email protected])- '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-primitive': 1.0.3(@types/[email protected])([email protected])([email protected])'@radix-ui/react-slot': 1.0.2(@types/[email protected])([email protected])'@radix-ui/react-use-controllable-state': 1.0.1(@types/[email protected])([email protected])- '@radix-ui/react-visually-hidden': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-visually-hidden': 1.0.3(@types/[email protected])([email protected])([email protected])'@types/react': 18.2.48react: 18.2.0react-dom: 18.2.0([email protected])@@@ -13247,7 -14566,33 +13230,7 @@@resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==}dev: false- resolution: {integrity: sha512-5DGffi+OpkbU62vPQIJ1z+hFnmow+ec5Qrn9m6eoglIO51m0DlrmLxBduZEwKAYDEg9k2joi1yelgmq1vqK3aQ==}- peerDependencies:- next: ^12.2.5 || ^13 || ^14- nodemailer: ^6.6.5- react: ^17.0.2 || ^18- react-dom: ^17.0.2 || ^18- peerDependenciesMeta:- nodemailer:- optional: true- dependencies:- '@babel/runtime': 7.23.2- '@panva/hkdf': 1.1.1- cookie: 0.5.0- jose: 4.15.4- next: 14.0.5-canary.55(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])- nodemailer: 6.9.3- oauth: 0.9.15- openid-client: 5.6.1- preact: 10.18.1- preact-render-to-string: 5.2.6([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])- uuid: 8.3.2- dev: false-resolution: {integrity: sha512-5DGffi+OpkbU62vPQIJ1z+hFnmow+ec5Qrn9m6eoglIO51m0DlrmLxBduZEwKAYDEg9k2joi1yelgmq1vqK3aQ==}peerDependencies:next: ^12.2.5 || ^13 || ^14@@@ -13262,18 -14607,62 +13245,18 @@@'@panva/hkdf': 1.1.1cookie: 0.5.0jose: 4.15.4- next: 14.0.5-canary.55(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])+ next: 14.1.1-canary.27(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])nodemailer: 6.9.3- oauth: 0.9.15- openid-client: 5.6.1- preact: 10.18.1- preact-render-to-string: 5.2.6([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])- uuid: 8.3.2- dev: false-- resolution: {integrity: sha512-hHlbhKPj9pW+Cymvfzc15lvhaOZ54l+8sXDXJWm3OBNBzgrVj6hwGPmqqsXg40xO1Leq+kXpllzRPuncpC0Phw==}- engines: {node: '>=14.6.0'}- hasBin: true- peerDependencies:- fibers: '>= 3.1.0'- node-sass: ^6.0.0 || ^7.0.0- react: ^18.2.0- react-dom: ^18.2.0- sass: ^1.3.0- peerDependenciesMeta:- fibers:- optional: true- node-sass:- optional: true- sass:- optional: true- dependencies:- '@next/env': 13.1.6- '@swc/helpers': 0.4.14- caniuse-lite: 1.0.30001546- postcss: 8.4.14- react: 18.2.0- react-dom: 18.2.0([email protected])- styled-jsx: 5.1.1(@babel/[email protected])([email protected])- optionalDependencies:- '@next/swc-android-arm-eabi': 13.1.6- '@next/swc-android-arm64': 13.1.6- '@next/swc-darwin-arm64': 13.1.6- '@next/swc-darwin-x64': 13.1.6- '@next/swc-freebsd-x64': 13.1.6- '@next/swc-linux-arm-gnueabihf': 13.1.6- '@next/swc-linux-arm64-gnu': 13.1.6- '@next/swc-linux-arm64-musl': 13.1.6- '@next/swc-linux-x64-gnu': 13.1.6- '@next/swc-linux-x64-musl': 13.1.6- '@next/swc-win32-arm64-msvc': 13.1.6- '@next/swc-win32-ia32-msvc': 13.1.6- '@next/swc-win32-x64-msvc': 13.1.6- transitivePeerDependencies:- - '@babel/core'- - babel-plugin-macros+ oauth: 0.9.15+ openid-client: 5.6.1+ preact: 10.18.1+ preact-render-to-string: 5.2.6([email protected])+ react: 18.2.0+ react-dom: 18.2.0([email protected])+ uuid: 8.3.2dev: falseresolution: {integrity: sha512-hHlbhKPj9pW+Cymvfzc15lvhaOZ54l+8sXDXJWm3OBNBzgrVj6hwGPmqqsXg40xO1Leq+kXpllzRPuncpC0Phw==}engines: {node: '>=14.6.0'}hasBin: true@@@ -13396,8 -14785,88 +13379,8 @@@- 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-u8yiAK7L+fl/U9yFmq3VOpkHlImx5wg3OoDz3qxTXhPmmMzNcPbblWgxBf5d6Z+aik8BEn27L31k/tXCRzwFxA==}- 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.46- '@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.46- '@next/swc-darwin-x64': 14.0.5-canary.46- '@next/swc-linux-arm64-gnu': 14.0.5-canary.46- '@next/swc-linux-arm64-musl': 14.0.5-canary.46- '@next/swc-linux-x64-gnu': 14.0.5-canary.46- '@next/swc-linux-x64-musl': 14.0.5-canary.46- '@next/swc-win32-arm64-msvc': 14.0.5-canary.46- '@next/swc-win32-ia32-msvc': 14.0.5-canary.46- '@next/swc-win32-x64-msvc': 14.0.5-canary.46- transitivePeerDependencies:- - '@babel/core'- - babel-plugin-macros- dev: false-- /[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-DedZm3VgO4i4Owt6xVeSs6VbwspdxyEXPzCE+gWz7c3QJSBa/0J3hV+uPETeZ2YexdVvWYAj5YxJMNTfLTKTqw==}engines: {node: '>=18.17.0'}hasBin: truepeerDependencies: