Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
feat: workOS (SAML) integration
Richie McIlroy0b043f12e871
diff --git a/apps/web/app/api/settings/workspace/lookup/route.ts b/apps/web/app/api/settings/workspace/lookup/route.tsnew file mode 100644index 000000000..b15e8979c--- /dev/null+++ b/apps/web/app/api/settings/workspace/lookup/route.ts@@ -0,0 +1,63 @@+import { type NextRequest } from "next/server";+import { db } from "@cap/database";+import { spaces } from "@cap/database/schema";+import { eq } from "drizzle-orm";++export async function GET(request: NextRequest) {+ console.log("[workspace/lookup] Received request");+ const searchParams = new URL(request.url).searchParams;+ const spaceId = searchParams.get("spaceId");++ if (!spaceId) {+ console.log("[workspace/lookup] Missing spaceId parameter");+ return new Response(+ JSON.stringify({ error: "Space ID parameter is required" }),+ {+ status: 400,+ headers: {+ "Content-Type": "application/json",+ },+ }+ );+ }++ console.log("[workspace/lookup] Looking up space:", spaceId);+ const [space] = await db+ .select({+ workosOrganizationId: spaces.workosOrganizationId,+ workosConnectionId: spaces.workosConnectionId,+ name: spaces.name,+ })+ .from(spaces)+ .where(eq(spaces.id, spaceId));++ console.log("[workspace/lookup] Found space:", space);++ if (!space || !space.workosOrganizationId || !space.workosConnectionId) {+ console.log("[workspace/lookup] Space not found or missing SSO config");+ return new Response(+ JSON.stringify({ error: "Space not found or SSO not configured" }),+ {+ status: 404,+ headers: {+ "Content-Type": "application/json",+ },+ }+ );+ }++ console.log("[workspace/lookup] Found space:", space.name);+ return new Response(+ JSON.stringify({+ organizationId: space.workosOrganizationId,+ connectionId: space.workosConnectionId,+ name: space.name,+ }),+ {+ status: 200,+ headers: {+ "Content-Type": "application/json",+ },+ }+ );+}\ No newline at end of filediff --git a/apps/web/app/api/settings/workspace/sso/route.ts b/apps/web/app/api/settings/workspace/sso/route.tsnew file mode 100644index 000000000..a8ba97889--- /dev/null+++ b/apps/web/app/api/settings/workspace/sso/route.ts@@ -0,0 +1,51 @@+import { type NextRequest } from "next/server";+import { getCurrentUser } from "@cap/database/auth/session";+import { spaces } from "@cap/database/schema";+import { db } from "@cap/database";+import { eq } from "drizzle-orm";++export async function POST(request: NextRequest) {+ const user = await getCurrentUser();+ const { spaceId, workosOrganizationId, workosConnectionId } = await request.json();++ if (!user) {+ return new Response(JSON.stringify({ error: "Unauthorized" }), {+ status: 401,+ headers: {+ "Content-Type": "application/json",+ },+ });+ }++ const [space] = await db+ .select()+ .from(spaces)+ .where(eq(spaces.id, spaceId));++ if (!space || space.ownerId !== user.id) {+ return new Response(JSON.stringify({ error: "Unauthorized" }), {+ status: 403,+ headers: {+ "Content-Type": "application/json",+ },+ });+ }++ await db+ .update(spaces)+ .set({+ workosOrganizationId,+ workosConnectionId,+ })+ .where(eq(spaces.id, spaceId));++ return new Response(+ JSON.stringify({ success: true }),+ {+ status: 200,+ headers: {+ "Content-Type": "application/json",+ },+ }+ );+}\ No newline at end of filediff --git a/apps/web/app/login/form.tsx b/apps/web/app/login/form.tsxindex 1d296c872..0e99a5a3c 100644--- a/apps/web/app/login/form.tsx+++ b/apps/web/app/login/form.tsx@@ -5,6 +5,7 @@ import { signIn } from "next-auth/react";import { useSearchParams } from "next/navigation";import { useEffect, useState } from "react";import { toast } from "react-hot-toast";+import { Input, Label } from "@cap/ui";export function LoginForm() {const searchParams = useSearchParams();@@ -13,12 +14,26 @@ export function LoginForm() {const [loading, setLoading] = useState(false);const [emailSent, setEmailSent] = useState(false);const [oauthError, setOauthError] = useState(false);+ const [showOrgInput, setShowOrgInput] = useState(false);+ const [organizationId, setOrganizationId] = useState("");+ const [spaceId, setSpaceId] = useState("");+ const [spaceName, setSpaceName] = useState<string | null>(null);useEffect(() => {const error = searchParams?.get("error");+ const errorDesc = searchParams?.get("error_description");+if (error === "OAuthAccountNotLinked") {setOauthError(true);- toast.error(error);+ toast.error(+ "This email is already associated with a different sign-in method"+ );+ } else if (error === "profile_not_allowed_outside_organization") {+ toast.error(+ "Your email domain is not authorized for SSO access. Please use your work email or contact your administrator."+ );+ } else if (error && errorDesc) {+ toast.error(errorDesc);}}, [searchParams]);@@ -52,49 +67,80 @@ export function LoginForm() {});};+ const handleSpaceLookup = async (e: React.FormEvent) => {+ e.preventDefault();+ if (!spaceId) {+ toast.error("Please enter a space ID");+ return;+ }++ try {+ const response = await fetch(+ `/api/settings/workspace/lookup?spaceId=${encodeURIComponent(spaceId)}`+ );+ const data = await response.json();++ if (!response.ok) {+ throw new Error(data.error || "Failed to look up workspace");+ }++ signIn("workos", undefined, {+ organization: data.organizationId,+ connection: data.connectionId,+ });+ } catch (error) {+ console.error("Lookup Error:", error);+ toast.error("Space not found or SSO not configured");+ }+ };+return (<><div className="flex flex-col space-y-3 fade-in-down animate-delay-2">- {process.env.NODE_ENV !== "development" && !oauthError && (+ {!oauthError && (<>- <Button- variant="dark"- size="lg"- className="h-12 text-lg flex items-center justify-center space-x-2"- onClick={handleGoogleSignIn}- disabled={loading}- >- <svg- className="w-4 h-4"- xmlns="http://www.w3.org/2000/svg"- fill="none"- viewBox="0 0 12 12"+ {showOrgInput === false && (+ <Button+ variant="dark"+ size="lg"+ className="h-12 text-lg flex items-center justify-center space-x-2"+ onClick={handleGoogleSignIn}+ disabled={loading}>- <g fill="#E1E1E6" clipPath="url(#clip0)">- <path d="M11.762 6.138c0-.408-.033-.818-.104-1.22h-5.66V7.23H9.24a2.78 2.78 0 0 1-1.2 1.823v1.5h1.934c1.135-1.046 1.788-2.589 1.788-4.414"></path>- <path d="M5.999 12c1.618 0 2.983-.531 3.977-1.448l-1.933-1.5c-.538.367-1.233.574-2.042.574-1.565 0-2.892-1.056-3.369-2.476H.637v1.545A6 6 0 0 0 6 12"></path>- <path d="M2.63 7.15a3.6 3.6 0 0 1 0-2.297V3.307H.637a6 6 0 0 0 0 5.388z"></path>- <path d="M5.999 2.374a3.26 3.26 0 0 1 2.302.9l1.713-1.713A5.77 5.77 0 0 0 5.999 0 6 6 0 0 0 .637 3.307L2.63 4.852C3.104 3.43 4.434 2.374 6 2.374"></path>- </g>- <defs>- <clipPath id="clip0">- <path fill="#fff" d="M0 0h11.762v12H0z"></path>- </clipPath>- </defs>- </svg>- <span className="text-gray-50">Continue with Google</span>- </Button>+ <svg+ className="w-4 h-4"+ xmlns="http://www.w3.org/2000/svg"+ fill="none"+ viewBox="0 0 12 12"+ >+ <g fill="#E1E1E6" clipPath="url(#clip0)">+ <path d="M11.762 6.138c0-.408-.033-.818-.104-1.22h-5.66V7.23H9.24a2.78 2.78 0 0 1-1.2 1.823v1.5h1.934c1.135-1.046 1.788-2.589 1.788-4.414"></path>+ <path d="M5.999 12c1.618 0 2.983-.531 3.977-1.448l-1.933-1.5c-.538.367-1.233.574-2.042.574-1.565 0-2.892-1.056-3.369-2.476H.637v1.545A6 6 0 0 0 6 12"></path>+ <path d="M2.63 7.15a3.6 3.6 0 0 1 0-2.297V3.307H.637a6 6 0 0 0 0 5.388z"></path>+ <path d="M5.999 2.374a3.26 3.26 0 0 1 2.302.9l1.713-1.713A5.77 5.77 0 0 0 5.999 0 6 6 0 0 0 .637 3.307L2.63 4.852C3.104 3.43 4.434 2.374 6 2.374"></path>+ </g>+ <defs>+ <clipPath id="clip0">+ <path fill="#fff" d="M0 0h11.762v12H0z"></path>+ </clipPath>+ </defs>+ </svg>+ <span className="text-gray-50">Continue with Google</span>+ </Button>+ )}- <div className="relative">- <div className="absolute inset-0 flex items-center">- <div className="w-full border-t border-blue-100" />- </div>- <div className="relative flex justify-center">- <span className="bg-white px-2 text-gray-500 rounded-xl text-xs">- Or- </span>+ {showOrgInput === false && (+ <div className="relative">+ <div className="absolute inset-0 flex items-center">+ <div className="w-full border-t border-blue-100" />+ </div>+ <div className="relative flex justify-center">+ <span className="bg-white px-2 text-gray-500 rounded-xl text-xs">+ Or+ </span>+ </div></div>- </div>+ )}</>)}@@ -137,67 +183,110 @@ export function LoginForm() {}}className="flex flex-col space-y-3">- <div>- <input- id="email"- name="email"- autoFocus- type="email"- placeholder={emailSent ? "" : "[email protected]"}- autoComplete="email"- required- value={email}- disabled={emailSent}- onChange={(e) => {- setEmail(e.target.value);- }}- className="block w-full appearance-none rounded-full border border-gray-300 px-3 h-12 placeholder-gray-400 shadow-sm focus:border-black focus:outline-none focus:ring-black text-lg"- />- {process.env.NODE_ENV === "development" && (- <div className="py-3 px-6 flex items-center justify-center bg-red-600 rounded-xl mt-3">- <p className="text-white text-lg">- <span className="font-bold text-white">- Development mode:- </span>{" "}- Auth URL will be logged to your dev console.- </p>+ {showOrgInput === false && (+ <>+ <div>+ <input+ id="email"+ name="email"+ autoFocus+ type="email"+ placeholder={emailSent ? "" : "[email protected]"}+ autoComplete="email"+ required+ value={email}+ disabled={emailSent}+ onChange={(e) => {+ setEmail(e.target.value);+ }}+ className="block w-full appearance-none rounded-full border border-gray-300 px-3 h-12 placeholder-gray-400 shadow-sm focus:border-black focus:outline-none focus:ring-black text-lg"+ />+ {process.env.NODE_ENV === "development" && (+ <div className="py-3 px-6 flex items-center justify-center bg-red-600 rounded-xl mt-3">+ <p className="text-white text-lg">+ <span className="font-bold text-white">+ Development mode:+ </span>{" "}+ Auth URL will be logged to your dev console.+ </p>+ </div>+ )}</div>- )}- </div>- <Button- variant="primary"- size="lg"- className="h-12 text-lg"- type="submit"- disabled={loading || emailSent}- >- {emailSent- ? process.env.NODE_ENV === "development"- ? "Email sent to your terminal"- : "Email sent to your inbox"- : "Continue with Email"}- </Button>- <p className="text-xs text-gray-500 pt-2">- By typing your email and clicking continue, you acknowledge that you- have both read and agree to Cap's{" "}- <a- href="/terms"- target="_blank"- className="text-gray-600 font-semibold text-xs"- >- Terms of Service- </a>{" "}- and{" "}- <a- href="/privacy"- target="_blank"- className="text-gray-600 font-semibold text-xs"+ <Button+ variant="primary"+ size="lg"+ className="h-12 text-lg"+ type="submit"+ disabled={loading || emailSent}+ >+ {emailSent+ ? process.env.NODE_ENV === "development"+ ? "Email sent to your terminal"+ : "Email sent to your inbox"+ : "Continue with Email"}+ </Button>+ </>+ )}++ {showOrgInput === false && (+ <Button+ variant="white"+ size="sm"+ className="h-9 text-lg flex items-center justify-center space-x-2 border-gray-300"+ onClick={() => setShowOrgInput(true)}+ disabled={loading}>- Privacy Policy- </a>- .- </p>+ <span className="text-gray-500">Continue with SAML SSO</span>+ </Button>+ )}</form>+ {showOrgInput && (+ <form onSubmit={handleSpaceLookup} className="space-y-2">+ <div>+ <Label htmlFor="spaceId">Space ID</Label>+ <Input+ id="spaceId"+ value={spaceId}+ onChange={(e) => setSpaceId(e.target.value)}+ className="w-full max-w-full"+ />+ </div>+ {spaceName && (+ <p className="text-sm text-gray-500">+ Signing in to: {spaceName}+ </p>+ )}+ <div>+ <Button+ type="submit"+ variant="dark"+ className="w-full max-w-full"+ >+ Continue with SSO+ </Button>+ </div>+ </form>+ )}+ <p className="text-xs text-gray-500 pt-2">+ By typing your email and clicking continue, you acknowledge that you+ have both read and agree to Cap's{" "}+ <a+ href="/terms"+ target="_blank"+ className="text-gray-600 font-semibold text-xs"+ >+ Terms of Service+ </a>{" "}+ and{" "}+ <a+ href="/privacy"+ target="_blank"+ className="text-gray-600 font-semibold text-xs"+ >+ Privacy Policy+ </a>+ .+ </p></div>{emailSent && (<div>diff --git a/apps/web/package.json b/apps/web/package.jsonindex 331204d39..257d3afa1 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -31,6 +31,7 @@"@tanstack/react-query": "^5.51.11","@tanstack/react-store": "^0.5.5","@tanstack/store": "^0.5.5",+ "@workos-inc/node": "^7.34.0","aws-sdk": "^2.1530.0","clsx": "^2.0.0","cookies-next": "^4.1.0",diff --git a/packages/database/auth/auth-options.ts b/packages/database/auth/auth-options.tsindex d9a7dc1eb..9900a01d2 100644--- a/packages/database/auth/auth-options.ts+++ b/packages/database/auth/auth-options.ts@@ -8,7 +8,8 @@ import type { NextAuthOptions } from "next-auth";import { sendEmail } from "../emails/config";import { LoginLink } from "../emails/login-link";import { nanoId } from "../helpers";-import { stripe } from "@cap/utils";+import WorkOSProvider from 'next-auth/providers/workos';+export const config = {maxDuration: 120,@@ -43,6 +44,20 @@ export const authOptions: NextAuthOptions = {}}}),+ WorkOSProvider({+ clientId: process.env.WORKOS_CLIENT_ID as string,+ clientSecret: process.env.WORKOS_API_KEY as string,+ profile(profile) {+ return {+ id: profile.id,+ name: profile.first_name+ ? `${profile.first_name} ${profile.last_name || ''}`+ : profile.email?.split('@')[0] || profile.id,+ email: profile.email,+ image: profile.profile_picture_url,+ };+ },+ }),EmailProvider({sendVerificationRequest({ identifier, url }) {console.log({ NODE_ENV: process.env.NODE_ENV });diff --git a/packages/database/schema.ts b/packages/database/schema.tsindex 9e9310d69..405e9bb4c 100644--- a/packages/database/schema.ts+++ b/packages/database/schema.ts@@ -135,6 +135,8 @@ export const spaces = mysqlTable(allowedEmailDomain: varchar("allowedEmailDomain", { length: 255 }),createdAt: timestamp("createdAt").notNull().defaultNow(),updatedAt: timestamp("updatedAt").notNull().defaultNow().onUpdateNow(),+ workosOrganizationId: varchar("workosOrganizationId", { length: 255 }),+ workosConnectionId: varchar("workosConnectionId", { length: 255 }),},(table) => ({ownerIdIndex: index("owner_id_idx").on(table.ownerId),diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex cdf4c3fb3..9cc2d0377 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -500,6 +500,9 @@ importers:'@tanstack/store':specifier: ^0.5.5version: 0.5.5+ '@workos-inc/node':+ specifier: ^7.34.0+ version: 7.34.0([email protected])([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))aws-sdk:specifier: ^2.1530.0version: 2.1691.0@@ -3090,6 +3093,17 @@ packages:resolution: {integrity: sha512-HNjmfLQEVRZmHRET336f20H/8kOozUGwk7yajvsonjNxbj2wBTK1WsQuHkD5yYh9RxFGL2EyDHryOihOwUoKDA==}engines: {node: '>= 10.0.0'}+ '@peculiar/[email protected]':+ resolution: {integrity: sha512-3Xq3a01WkHRZL8X04Zsfg//mGaA21xlL4tlVn4v2xGT0JStiztATRkMwa5b+f/HXmY2smsiLXYK46Gwgzvfg3g==}++ '@peculiar/[email protected]':+ resolution: {integrity: sha512-coUfuoMeIB7B8/NMekxaDzLhaYmp0HZNPEjYRm9goRou8UZIC3z21s0sL9AWoCw4EG876QyO3kYrc61WNF9B/w==}+ engines: {node: '>=8.0.0'}++ '@peculiar/[email protected]':+ resolution: {integrity: sha512-BRs5XUAwiyCDQMsVA9IDvDa7UBR9gAvPHgugOeGng3YN6vJ9JYonyDc0lNczErgtCWtucjR5N7VtaonboD/ezg==}+ engines: {node: '>=10.12.0'}+'@pkgjs/[email protected]':resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==}engines: {node: '>=14'}@@ -4271,10 +4285,10 @@ packages:react-dom:optional: true- '@storybook/[email protected]':- resolution: {integrity: sha512-w0pwGHXz5q+AoLwxlPVxWjsiqNs3oTYrwS4f+iVWJGCaAHDa5re6qMdVpOnS7s/W0PdJsutfi1DcAq5POyD5Zw==}+ '@storybook/[email protected]':+ resolution: {integrity: sha512-VUET1tIFRG0PwMiL9M1dF1CGGvuY2rN1ntvLW8T84GkV1CHjkNnpY8kKL3whMaDnWhAFHeeeZMTvXJ30MJBNag==}peerDependencies:- storybook: ^8.5.0-alpha.16+ storybook: ^8.5.0-alpha.17vite: ^4.0.0 || ^5.0.0 || ^6.0.0'@storybook/[email protected]':@@ -4285,10 +4299,10 @@ packages:peerDependencies:storybook: ^8.3.3- '@storybook/[email protected]':- resolution: {integrity: sha512-VD06zT7yrneVWzJwB+Jv+pNXtS1TSfxh9ONaY4OPLncbGJeXQaYkyv7HSoIU+PWBcdd132+0FzO+7j3UeIgKXw==}+ '@storybook/[email protected]':+ resolution: {integrity: sha512-oQaIfeBBcitICVIR/WboYNg0jYyK8NizYduElnNGlt7yGtxf0Y090tqd1mC6gNRYPM6aAb9Eo9ui+3uKoMjOYQ==}peerDependencies:- storybook: ^8.5.0-alpha.16+ storybook: ^8.5.0-alpha.17'@storybook/[email protected]':resolution: {integrity: sha512-dHYFQH3mA+EtnCkHXzicbLgsvzYjcDJ1JWsogbItZogkPHgSJM/Wr71uMkcvw8v9mmCyP4NpXJuu6bPoVsOnzg==}@@ -4600,6 +4614,9 @@ packages:resolution: {integrity: sha512-3uYg2b5TWCiupetbDFMbBFMHl33xQTvp5DNg0fZSYal73Z9AlFH9yWabHWMYw6ywmwM1evkYRpTVA2n7GgqT5A==}hasBin: true+ '@types/[email protected]':+ resolution: {integrity: sha512-Pay9fq2lM2wXPWbteBsRAGiWH2hig4ZE2asK+mm7kUzlxRTfL961rj89I6zV/E3PcIkDqyuBEcMxFT7rccugeQ==}+'@types/[email protected]':resolution: {integrity: sha512-veQTnWP+1D/xbxVrPC3zHnCZRjSrKfhbMUlEA43iMZLu7EsnTtkJklIuwrCPbOi8YkvDQAiW05VQQFvvz9oieQ==}@@ -4627,12 +4644,21 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==}+ '@types/[email protected]':+ resolution: {integrity: sha512-QVSSvno3dE0MgO76pJhmv4Qyi/j0Yk9pBp0Y7TJ2Tlj+KCgJWY6qX7nnxCOLkZ3VYRSIk1WTxCvwUSdx6CCLdg==}++ '@types/[email protected]':+ resolution: {integrity: sha512-7z/eR6O859gyWIAjuvBWFzNURmf2oPBmJlfVWkwehU5nzIyjwBsTh7WMmEEV4JFnHuQ3ex4oyTvfKzcyJVDBNA==}+'@types/[email protected]':resolution: {integrity: sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA==}'@types/[email protected]':resolution: {integrity: sha512-he+DHOWReW0nghN24E1WUqM0efK4kI9oTqDm6XmK8ZPe2djZ90BSNdGnIyCLzCPw7/pogPlGbzI2wHGGmi4O/Q==}+ '@types/[email protected]':+ resolution: {integrity: sha512-40Zk8qR147RABiQ7NQnBzWzDcjKzNrntB5BAmeGCb2p/MIyOE+4BVvc17wumsUqUw00bJYqoXFHYygQnEFh4/Q==}+'@types/[email protected]':resolution: {integrity: sha512-8CGDvrBj1zgo2qE+oS3pOCyYNqCPryMWY2bGfwA0dcfopWGgxs+78df0Rs3rc9THP4JkOhLsAa+15VdpAqkcUA==}@@ -4672,6 +4698,9 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==}+ '@types/[email protected]':+ resolution: {integrity: sha512-TTEwmtjgVbYAzZYWyeHPrrtWnfVkm8tQkP8P21uQifPgMRgjrow3XDEYqucuC8SKZJT7pUnhU/JymvjggxO9vw==}+'@types/[email protected]':resolution: {integrity: sha512-D0CFMMtydbJAegzOyHjtiKPLlvnm3iTZyZRSZoLq2mRhDdmLfIWOCYPfQJ4cu2erKghU++QvjcUjp/5h7hESpA==}@@ -4702,6 +4731,15 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==}+ '@types/[email protected]':+ resolution: {integrity: sha512-lZuNAY9xeJt7Bx4t4dx0rYCDqGPW8RXhQZK1td7d4H6E9zYbLoOtjBvfwdTKpsyxQI/2jv+armjX/RW+ZNpXOQ==}++ '@types/[email protected]':+ resolution: {integrity: sha512-4Olc63RY+MKvxMwVknCUDhRQX1pFQoBZ/lXcRLP69PQkEpze/0cr8LNqJQe5NFb/b19DWi2a5bTi2VAlQzhJuA==}++ '@types/[email protected]':+ resolution: {integrity: sha512-7QFsywoE5URbuVnG3loe03QXuGajrnotr3gQkXcEBShORai23MePfFYdhz90FEtBBpkyIYQbVD+evKtloCgX3g==}+'@types/[email protected]':resolution: {integrity: sha512-w9iWudx1XWOHW5lQRS9iKpK/XuRhnN+0T7HvdCCd802FYkT1AMTnxndJHGrNJwRoRHkslGr4S29tjm1cT7x/7w==}@@ -4738,6 +4776,9 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-24xFj9R5+rfQJLRyM56qh+wnVSYhyXC2tkoBndtY0U+vubqNsYXGjufB2nn8Q6gt0LrARwL6UBtMCSVCwl4B1g==}+ '@types/[email protected]':+ resolution: {integrity: sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==}+'@types/[email protected]':resolution: {integrity: sha512-GLxgUgHhDKO1Edw9Q0lvMbiO/IQXJwJlMaqxSGBXMpPy8uhkCs2iiPFaB2Q/gmobnFkckD3rqTBMVjXdwq+nKg==}@@ -5002,6 +5043,10 @@ packages:'@vitest/[email protected]':resolution: {integrity: sha512-Y6Q9TsI+qJ2CC0ZKj6VBb+T8UPz593N113nnUykqwANqhgf3QkZeHFlusgKLTqrnVHbj/XDKZcDHol+dxVT+rQ==}+ '@workos-inc/[email protected]':+ resolution: {integrity: sha512-YxUnNQbu40eDrTk+MCsDqwRemp7gH7AhhDRlYY2Oj4i5fvP0nnrg/jxZoKxjO/AayYiVb8tv2quBZzlUXR3WmA==}+ engines: {node: '>=16'}+'@xmldom/[email protected]':resolution: {integrity: sha512-2WALfTl4xo2SkGCYRt6rDTFfk9R1czmBvUQy12gK2KuRKIpWEhcbbzy8EZXtz/jkRqHX8bFEc6FC1HjX4TUWYw==}engines: {node: '>=10.0.0'}@@ -5228,6 +5273,10 @@ packages:resolution: {integrity: sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==}+ resolution: {integrity: sha512-FVnvrKJwpt9LP2lAMl8qZswRNm3T4q9CON+bxldk2iwk3FFpuwhx2FfinyitizWHsVYyaY+y5JzDR0rCMV5yTQ==}+ engines: {node: '>=12.0.0'}+resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==}engines: {node: '>=12'}@@ -7343,6 +7392,24 @@ packages:resolution: {integrity: sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==}engines: {node: '>= 0.10'}+ resolution: {integrity: sha512-3UJ7y2vk/WomAtEySmPgM6qtYF1cZ3tXuWX5GsVX4PJXAcs5y/sV9HuSfpjKS6HkTL/OhZcTDWJNLZ7w+Erx3A==}+ engines: {node: '>=12'}+ peerDependencies:+ express: '>=4'+ koa: '>=2'+ next: '>=10'+ peerDependenciesMeta:+ express:+ optional: true+ koa:+ optional: true+ next:+ optional: true++ resolution: {integrity: sha512-YPdCvjFMOBjXaYuDj5tiHst5CEk6Xw84Jo8Y2+jzhMceclAnb3+vNPP/CTtb5fO2ZEuXEaO4N+w62Vfko757KA==}+resolution: {integrity: sha512-feOM6FaSr6rEABp/eDfVseKyTMDt+KGpeB35SkVn9Tyn0CqvVsY3EwI0v5i8nMHyJnzCIQf7nsy3p41TPkJZhg==}@@ -7793,6 +7860,9 @@ packages:resolution: {integrity: sha512-1vUQX+IdDMVPj4k8kOxgUqlcK518yluMuGZwqlr44FS1ppZB/5GWh4rZG89erpOBOJjU/OBsnCVFfapsRz6nEA==}+ resolution: {integrity: sha512-1Jh//hEEwMhNYPDDLwXHa2ePWgWiFNNUadVmguAAw2IJ6sj9mNxV5tGXJNqlMkJAybF6Lgw1mISDxTePP/187g==}+resolution: {integrity: sha512-ESjNzSlt/sWE8sciZH8kBF8BPlwXPwhR6pWKAw8bw4Bwj+iZcnKW6ONWUutJ7eObuBZQpiIb8S7OYspWrKt7rA==}engines: {node: '>=14'}@@ -9065,6 +9135,10 @@ packages:resolution: {integrity: sha512-+ifYuSSqOQ8CqP4MbZA5hDpb97n3E8SVWdJe+Wms9kj745lmd3b7EZJiqvmLwAlmRfjrI7Hi5z3kdBJ93lFNPA==}+ resolution: {integrity: sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==}+ engines: {node: '>=4'}+resolution: {integrity: sha512-OBatVyC/N7SCW/FaDHrSd+vn0o5cS855TOmYi4OkdWUMSJCET/xip//ch8xGUvtr3i44X9LVyWwQlRMTN3pwSA==}engines: {node: '>=10'}@@ -9226,6 +9300,13 @@ packages:resolution: {integrity: sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==}+ resolution: {integrity: sha512-PLgQXQ6H2FWCaeRak8vvk1GW462lMxB5s3Jm673N82zI4vqtVUPuZdffdZbPDFRoU8kAhItWFtPCWiPpp4/EDg==}++ resolution: {integrity: sha512-pMpnA0qRdFp32b1sJl1wOJNxZLQ2cbQx+k6tjNtZ8CpvVhNqEPRgivZ2WOUev2YMajecdH7ctUPDvEe87nariQ==}+ engines: {node: '>=6.0.0'}+resolution: {integrity: sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==}engines: {node: '>=0.6'}@@ -10384,6 +10465,9 @@ packages:resolution: {integrity: sha512-jWVzBLplnCmoaTr13V9dYbiQ99wvZRd0vNWaDRg+aVYRcjDF3nDksxFDE/+fkXnKhpnUUkmx5pK/v8mCtLVqZA==}+ resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}+resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==}engines: {node: '>= 6'}@@ -10979,6 +11063,9 @@ packages:resolution: {integrity: sha512-orPnYDqIbUQLQgJI6tkfZvlOULu71cpylnAK8Wh5Hgo0v84mhPHgCbbzKtqn6m6QP7yVAlNrHD+snVhqcGVFfA==}+ resolution: {integrity: sha512-P+x1MvlNCXlKbLSOY4cYrdreqPG5hbzkmawbcXLKN/mf6DZW0SdNNkZ+sjwsqVkI4A4Ko2sPZmkZtCKY58w83A==}+resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==}@@ -13592,6 +13679,24 @@ snapshots:'@parcel/watcher-win32-ia32': 2.4.1'@parcel/watcher-win32-x64': 2.4.1+ '@peculiar/[email protected]':+ dependencies:+ asn1js: 3.0.5+ pvtsutils: 1.3.6+ tslib: 2.8.0++ '@peculiar/[email protected]':+ dependencies:+ tslib: 2.8.0++ '@peculiar/[email protected]':+ dependencies:+ '@peculiar/asn1-schema': 2.3.13+ '@peculiar/json-schema': 1.1.12+ pvtsutils: 1.3.6+ tslib: 2.8.0+ webcrypto-core: 1.8.1+'@pkgjs/[email protected]':optional: true@@ -14938,9 +15043,9 @@ snapshots:react: 18.3.1react-dom: 18.3.1([email protected])- '@storybook/[email protected]([email protected])([email protected](@types/[email protected])([email protected]))':+ '@storybook/[email protected]([email protected])([email protected](@types/[email protected])([email protected]))':dependencies:- '@storybook/csf-plugin': 8.5.0-alpha.16([email protected])+ '@storybook/csf-plugin': 8.5.0-alpha.17([email protected])browser-assert: 1.2.1storybook: 8.3.3ts-dedent: 2.2.0@@ -14973,7 +15078,7 @@ snapshots:transitivePeerDependencies:- webpack-sources- '@storybook/[email protected]([email protected])':+ '@storybook/[email protected]([email protected])':dependencies:storybook: 8.3.3unplugin: 1.16.0@@ -15297,6 +15402,10 @@ snapshots:semver: 7.6.3update-check: 1.5.4+ '@types/[email protected]':+ dependencies:+ '@types/node': 20.16.9+'@types/[email protected]':dependencies:'@types/estree': 1.0.6@@ -15335,10 +15444,21 @@ snapshots:dependencies:'@types/node': 20.16.9+ '@types/[email protected]': {}++ '@types/[email protected]': {}+'@types/[email protected]': {}'@types/[email protected]': {}+ '@types/[email protected]':+ dependencies:+ '@types/connect': 3.4.38+ '@types/express': 4.17.21+ '@types/keygrip': 1.0.6+ '@types/node': 20.16.9+'@types/[email protected]':dependencies:'@types/node': 20.16.9@@ -15392,6 +15512,8 @@ snapshots:dependencies:'@types/unist': 3.0.3+ '@types/[email protected]': {}+'@types/[email protected]': {}'@types/[email protected]':@@ -15424,6 +15546,23 @@ snapshots:'@types/[email protected]': {}+ '@types/[email protected]': {}++ '@types/[email protected]':+ dependencies:+ '@types/koa': 2.15.0++ '@types/[email protected]':+ dependencies:+ '@types/accepts': 1.3.7+ '@types/content-disposition': 0.5.8+ '@types/cookies': 0.9.0+ '@types/http-assert': 1.5.6+ '@types/http-errors': 2.0.4+ '@types/keygrip': 1.0.6+ '@types/koa-compose': 3.2.8+ '@types/node': 20.16.9+'@types/[email protected]': {}'@types/[email protected]':@@ -15459,6 +15598,8 @@ snapshots:'@types/node': 20.16.9form-data: 4.0.0+ '@types/[email protected]': {}+'@types/[email protected]':dependencies:undici-types: 5.26.5@@ -15866,6 +16007,16 @@ snapshots:loupe: 3.1.1tinyrainbow: 1.2.0+ '@workos-inc/[email protected]([email protected])([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))':+ dependencies:+ iron-session: 6.3.1([email protected])([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))+ jose: 5.6.3+ pluralize: 8.0.0+ transitivePeerDependencies:+ - express+ - koa+ - next+'@xmldom/[email protected]': {}@@ -16127,6 +16278,12 @@ snapshots:+ dependencies:+ pvtsutils: 1.3.6+ pvutils: 1.1.3+ tslib: 2.8.0+@@ -18887,6 +19044,23 @@ snapshots:+ [email protected]([email protected])([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected])):+ dependencies:+ '@peculiar/webcrypto': 1.5.0+ '@types/cookie': 0.5.4+ '@types/express': 4.17.21+ '@types/koa': 2.15.0+ '@types/node': 17.0.45+ cookie: 0.5.0+ iron-webcrypto: 0.2.8+ optionalDependencies:+ express: 4.21.0+ next: 14.2.3(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])++ dependencies:+ buffer: 6.0.3+@@ -19482,6 +19656,8 @@ snapshots:+ [email protected]: {}+dependencies:config-chain: 1.1.13@@ -21399,6 +21575,8 @@ snapshots:mlly: 1.7.1pathe: 1.1.2+ [email protected]: {}+dependencies:'@babel/runtime': 7.25.6@@ -21570,6 +21748,12 @@ snapshots:+ dependencies:+ tslib: 2.8.1++ [email protected]: {}+dependencies:side-channel: 1.0.6@@ -22432,7 +22616,7 @@ snapshots:[email protected]([email protected])([email protected](@types/[email protected])([email protected])):dependencies:- '@storybook/builder-vite': 8.5.0-alpha.16([email protected])([email protected](@types/[email protected])([email protected]))+ '@storybook/builder-vite': 8.5.0-alpha.17([email protected])([email protected](@types/[email protected])([email protected]))transitivePeerDependencies:- storybook- vite@@ -22915,6 +23099,8 @@ snapshots:+ [email protected]: {}+dependencies:tslib: 1.14.1@@ -23558,6 +23744,14 @@ snapshots:+ dependencies:+ '@peculiar/asn1-schema': 2.3.13+ '@peculiar/json-schema': 1.1.12+ asn1js: 3.0.5+ pvtsutils: 1.3.6+ tslib: 2.8.0+