Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

add presets

Kiran K209b9bbc8bbc
diff --git a/apps/web/lib/api/tokens/scopes.ts b/apps/web/lib/api/tokens/scopes.ts
index 787d1218fd..fcf4e32af6 100644
--- a/apps/web/lib/api/tokens/scopes.ts
+++ b/apps/web/lib/api/tokens/scopes.ts
@@ -13,6 +13,8 @@ export const availableScopes = [
"tokens.read",
"tokens.write",
"conversions.write",
+ "apis.all", // All API scopes
+ "apis.read", // All read scopes
] as const;
export type Scope = (typeof availableScopes)[number];
@@ -170,6 +172,8 @@ export const roleScopesMapping = resourcePermissions.reduce<
);
export const scopeMapping = {
+ "apis.all": availableScopes,
+ "apis.read": availableScopes.filter((scope) => scope.endsWith(".read")),
"workspaces.write": ["workspaces.write", "workspaces.read"],
"links.write": ["links.write", "links.read"],
"tags.write": ["tags.write", "tags.read"],
diff --git a/apps/web/ui/modals/add-edit-token-modal.tsx b/apps/web/ui/modals/add-edit-token-modal.tsx
index 054fc267c2..eeb3b4bd25 100644
--- a/apps/web/ui/modals/add-edit-token-modal.tsx
+++ b/apps/web/ui/modals/add-edit-token-modal.tsx
@@ -1,4 +1,4 @@
-import { resourcePermissions } from "@/lib/api/tokens/scopes";
+import { Scope, resourcePermissions } from "@/lib/api/tokens/scopes";
import useWorkspace from "@/lib/swr/use-workspace";
import {
BlurImage,
@@ -11,11 +11,13 @@ import {
RadioGroup,
RadioGroupItem,
} from "@dub/ui";
+import { ToggleGroup, ToggleGroupItem } from "@dub/ui/src/toggle-group";
import {
Dispatch,
FormEvent,
SetStateAction,
useCallback,
+ useEffect,
useMemo,
useState,
} from "react";
@@ -25,13 +27,15 @@ import { mutate } from "swr";
type APIKeyProps = {
id?: string;
name: string;
- scopes: { [key: string]: string };
+ scopes: { [key: string]: Scope };
isMachine: boolean;
};
+type ScopePreset = "all_access" | "read_only" | "restricted";
+
const newToken: APIKeyProps = {
name: "",
- scopes: {},
+ scopes: { api: "apis.all" },
isMachine: false,
};
@@ -49,6 +53,21 @@ function AddEditTokenModal({
const [saving, setSaving] = useState(false);
const { id: workspaceId, logo, slug, betaTester } = useWorkspace();
const [data, setData] = useState<APIKeyProps>(token || newToken);
+ const [preset, setPreset] = useState<ScopePreset>("all_access");
+
+ useEffect(() => {
+ if (!token) return;
+
+ const scopes = Object.values(token.scopes);
+
+ if (scopes.includes("apis.all")) {
+ setPreset("all_access");
+ } else if (scopes.includes("apis.read")) {
+ setPreset("read_only");
+ } else {
+ setPreset("restricted");
+ }
+ }, [token]);
// Determine the endpoint
const endpoint = useMemo(() => {
@@ -182,58 +201,99 @@ function AddEditTokenModal({
</div>
</div>
- <span className="text-sm text-gray-500">
- These permissions apply when the API key is used to make requests to
- Dub APIs.
- </span>
+ <div className="flex flex-col gap-2">
+ <h2 className="text-sm font-medium text-gray-900">Permissions</h2>
+ <span className="text-sm text-gray-500">
+ These permissions apply when the API key is used to make requests
+ to Dub APIs.
+ </span>
+ <div className="flex">
+ <ToggleGroup
+ type="single"
+ variant="outline"
+ value={preset}
+ defaultChecked
+ onValueChange={(value: ScopePreset) => {
+ setPreset(value);
- <div className="flex flex-col divide-y text-sm">
- {resourcePermissions
- .filter(
- // filter out beta features
- (resource) => !resource.betaFeature || betaTester,
- )
- .map((resource) => (
- <div
- className="flex items-center justify-between py-4"
- key={resource.key}
+ if (value === "all_access") {
+ setData({ ...data, scopes: { api: "apis.all" } });
+ } else if (value === "read_only") {
+ setData({ ...data, scopes: { api: "apis.read" } });
+ } else {
+ setData({ ...data, scopes: {} });
+ }
+ }}
+ className="gap-2"
+ >
+ <ToggleGroupItem value="all_access" aria-label="All scopes">
+ All
+ </ToggleGroupItem>
+ <ToggleGroupItem
+ value="read_only"
+ aria-label="Read only scopes"
>
- <div className="flex items-center gap-1.5 text-gray-500">
- <p>{resource.name}</p>
- <InfoTooltip content={resource.description} />
- </div>
- <div>
- <RadioGroup
- defaultValue={scopes[resource.key] || ""}
- className="flex gap-4"
- onValueChange={(v) => {
- setData({
- ...data,
- scopes: {
- ...scopes,
- [resource.key]: v,
- },
- });
- }}
- >
- <div className="flex items-center space-x-2">
- <RadioGroupItem value="" />
- <div>None</div>
- </div>
- {resource.permissions.map((permission) => (
- <div
- className="flex items-center space-x-2"
- key={permission.scope}
- >
- <RadioGroupItem value={permission.scope} />
- <div>{permission.permission}</div>
+ Read Only
+ </ToggleGroupItem>
+ <ToggleGroupItem
+ value="restricted"
+ aria-label="Restricted scopes"
+ >
+ Restricted
+ </ToggleGroupItem>
+ </ToggleGroup>
+ </div>
+ </div>
+
+ {preset === "restricted" && (
+ <div className="flex flex-col divide-y text-sm">
+ {resourcePermissions
+ .filter(
+ // filter out beta features
+ (resource) => !resource.betaFeature || betaTester,
+ )
+ .map((resource) => (
+ <div
+ className="flex items-center justify-between py-4"
+ key={resource.key}
+ >
+ <div className="flex items-center gap-1.5 text-gray-500">
+ <p>{resource.name}</p>
+ <InfoTooltip content={resource.description} />
+ </div>
+ <div>
+ <RadioGroup
+ defaultValue={scopes[resource.key] || ""}
+ className="flex gap-4"
+ onValueChange={(v: Scope) => {
+ setData({
+ ...data,
+ scopes: {
+ ...scopes,
+ [resource.key]: v,
+ },
+ });
+ }}
+ >
+ <div className="flex items-center space-x-2">
+ <RadioGroupItem value="" />
+ <div>None</div>
</div>
- ))}
- </RadioGroup>
+ {resource.permissions.map((permission) => (
+ <div
+ className="flex items-center space-x-2"
+ key={permission.scope}
+ >
+ <RadioGroupItem value={permission.scope} />
+ <div>{permission.permission}</div>
+ </div>
+ ))}
+ </RadioGroup>
+ </div>
</div>
- </div>
- ))}
- </div>
+ ))}
+ </div>
+ )}
<Button
text={token ? "Save changes" : "Create API key"}
diff --git a/packages/ui/package.json b/packages/ui/package.json
index a51246735b..c29fd1e2cb 100644
--- a/packages/ui/package.json
+++ b/packages/ui/package.json
@@ -47,6 +47,8 @@
"@radix-ui/react-radio-group": "^1.1.3",
"@radix-ui/react-slot": "1.0.1",
"@radix-ui/react-switch": "^1.0.1",
+ "@radix-ui/react-toggle": "^1.1.0",
+ "@radix-ui/react-toggle-group": "^1.1.0",
"@radix-ui/react-tooltip": "^1.0.7",
"@react-aria/datepicker": "^3.10.0",
"@react-stately/datepicker": "^3.9.3",
diff --git a/packages/ui/src/toggle-group.tsx b/packages/ui/src/toggle-group.tsx
new file mode 100644
index 0000000000..ed59b46860
--- /dev/null
+++ b/packages/ui/src/toggle-group.tsx
@@ -0,0 +1,60 @@
+"use client";
+
+import { cn } from "@dub/utils";
+import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
+import { VariantProps } from "class-variance-authority";
+import * as React from "react";
+import { toggleVariants } from "./toggle";
+
+const ToggleGroupContext = React.createContext<
+ VariantProps<typeof toggleVariants>
+>({
+ size: "default",
+ variant: "default",
+});
+
+const ToggleGroup = React.forwardRef<
+ React.ElementRef<typeof ToggleGroupPrimitive.Root>,
+ React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root> &
+ VariantProps<typeof toggleVariants>
+>(({ className, variant, size, children, ...props }, ref) => (
+ <ToggleGroupPrimitive.Root
+ ref={ref}
+ className={cn("flex items-center justify-center gap-1", className)}
+ {...props}
+ >
+ <ToggleGroupContext.Provider value={{ variant, size }}>
+ {children}
+ </ToggleGroupContext.Provider>
+ </ToggleGroupPrimitive.Root>
+));
+
+ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
+
+const ToggleGroupItem = React.forwardRef<
+ React.ElementRef<typeof ToggleGroupPrimitive.Item>,
+ React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item> &
+ VariantProps<typeof toggleVariants>
+>(({ className, children, variant, size, ...props }, ref) => {
+ const context = React.useContext(ToggleGroupContext);
+
+ return (
+ <ToggleGroupPrimitive.Item
+ ref={ref}
+ className={cn(
+ toggleVariants({
+ variant: context.variant || variant,
+ size: context.size || size,
+ }),
+ className,
+ )}
+ {...props}
+ >
+ {children}
+ </ToggleGroupPrimitive.Item>
+ );
+});
+
+ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
+
+export { ToggleGroup, ToggleGroupItem };
diff --git a/packages/ui/src/toggle.tsx b/packages/ui/src/toggle.tsx
new file mode 100644
index 0000000000..e7fcf7add3
--- /dev/null
+++ b/packages/ui/src/toggle.tsx
@@ -0,0 +1,44 @@
+"use client";
+
+import { cn } from "@dub/utils";
+import * as TogglePrimitive from "@radix-ui/react-toggle";
+import { cva, type VariantProps } from "class-variance-authority";
+import * as React from "react";
+
+const toggleVariants = cva(
+ "inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-gray-300 data-[state=on]:text-accent-foreground",
+ {
+ variants: {
+ variant: {
+ default: "bg-transparent",
+ outline:
+ "border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground",
+ },
+ size: {
+ default: "h-9 px-3",
+ sm: "h-8 px-2",
+ lg: "h-10 px-3",
+ },
+ },
+ defaultVariants: {
+ variant: "default",
+ size: "default",
+ },
+ },
+);
+
+const Toggle = React.forwardRef<
+ React.ElementRef<typeof TogglePrimitive.Root>,
+ React.ComponentPropsWithoutRef<typeof TogglePrimitive.Root> &
+ VariantProps<typeof toggleVariants>
+>(({ className, variant, size, ...props }, ref) => (
+ <TogglePrimitive.Root
+ ref={ref}
+ className={cn(toggleVariants({ variant, size, className }))}
+ {...props}
+ />
+));
+
+Toggle.displayName = TogglePrimitive.Root.displayName;
+
+export { Toggle, toggleVariants };
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 6194e9bd7c..a74925f293 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -453,6 +453,12 @@ importers:
'@radix-ui/react-switch':
specifier: ^1.0.1
+ '@radix-ui/react-toggle':
+ specifier: ^1.1.0
+ '@radix-ui/react-toggle-group':
+ specifier: ^1.1.0
'@radix-ui/react-tooltip':
specifier: ^1.0.7
@@ -4862,6 +4868,10 @@ packages:
'@babel/runtime': 7.23.2
dev: false
+ /@radix-ui/[email protected]:
+ resolution: {integrity: sha512-4Z8dn6Upk0qk4P74xBhZ6Hd/w0mPEzOOLxy4xiPXOXqjF7jZS0VAKk7/x/H6FyY2zCkYJqePf1G5KmkmNJ4RBA==}
+ dev: false
+
resolution: {integrity: sha512-Ka7BQoyRRPwsOb0YEv0fQU8V8aCXCxAzNVI5BRN7WmPG2E1zQKKxmb86NVDqIj6uSnaahJ1E5S6bX5Lk9hTK+g==}
peerDependencies:
@@ -5031,6 +5041,29 @@ packages:
react-dom: 18.2.0([email protected])
dev: false
+ resolution: {integrity: sha512-GZsZslMJEyo1VKm5L1ZJY8tGDxZNPAoUeQUIbKeJfoi7Q4kmig5AsgLMYYuyYbfjd8fBmFORAIwYAkXMnXZgZw==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+ dependencies:
+ '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.1.0(@types/[email protected])([email protected])
+ '@radix-ui/react-primitive': 2.0.0(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-slot': 1.1.0(@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-0KaSv6sx787/hK3eF53iOkiSLwAGlFMx5lotrqD2pTjB18KbybKoEIgkNZTKC60YECDQTKGTRcDBILwZVqVKvA==}
peerDependencies:
@@ -5054,6 +5087,19 @@ packages:
react: 18.2.0
dev: false
+ resolution: {integrity: sha512-b4inOtiaOnYf9KWyO3jAeeCG6FeyfY6ldiEPanbUjWd+xIk5wZeHa8yVwmrJ2vderhu/BQvzCrJI0lHd+wIiqw==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ dependencies:
+ '@types/react': 18.2.48
+ react: 18.2.0
+ dev: false
+
resolution: {integrity: sha512-1pVM9RfOQ+n/N5PJK33kRSKsr1glNxomxONs5c49MliinBY6Yw2Q995qfBUUo0/Mbg05B/sGA0gkgPI7kmSHBg==}
peerDependencies:
@@ -5077,6 +5123,19 @@ packages:
react: 18.2.0
dev: false
+ resolution: {integrity: sha512-OKrckBy+sMEgYM/sMmqmErVn0kZqrHPJze+Ql3DzYsDDp0hl0L62nx/2122/Bvps1qz645jlcu2tD9lrRSdf8A==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ dependencies:
+ '@types/react': 18.2.48
+ react: 18.2.0
+ dev: false
+
resolution: {integrity: sha512-Yn9YU+QlHYLWwV1XfKiqnGVpWYWk6MeBVM6x/bcoyPvxgjQGoeT35482viLPctTMWoMw0PoHgqfSox7Ig+957Q==}
peerDependencies:
@@ -5161,6 +5220,19 @@ packages:
react: 18.2.0
dev: false
+ resolution: {integrity: sha512-BUuBvgThEiAXh2DWu93XsT+a3aWrGqolGlqqw5VU1kG7p/ZH2cuDlM1sRLNnY3QcBS69UIz2mcKhMxDsdewhjg==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ dependencies:
+ '@types/react': 18.2.48
+ react: 18.2.0
+ dev: false
+
resolution: {integrity: sha512-n7kDRfx+LB1zLueRDvZ1Pd0bxdJWDUZNQ/GWoxDn2prnuJKRdxsjulejX/ePkOsLi2tTm6P24mDqlMSgQpsT6g==}
peerDependencies:
@@ -5351,6 +5423,20 @@ packages:
react: 18.2.0
dev: false
+ resolution: {integrity: sha512-EJUrI8yYh7WOjNOqpoJaf1jlFIH2LvtgAl+YcFqNCa+4hj64ZXmPkAKOFs/ukjz3byN6bdb/AVUqHkI8/uWWMA==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ dependencies:
+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])
+ '@types/react': 18.2.48
+ react: 18.2.0
+ dev: false
+
resolution: {integrity: sha512-N5ehvlM7qoTLx7nWPodsPYPgMzA5WM8zZChQg8nyFJKnDO5WHdba1vv5/H6IO5LtJMfD2Q3wh1qHFGNtK0w3bQ==}
peerDependencies:
@@ -5673,6 +5759,26 @@ packages:
react-dom: 18.2.0([email protected])
dev: false
+ resolution: {integrity: sha512-ZSpFm0/uHa8zTvKBDjLFWLo8dkr4MBsiDLz0g3gMUwqgLHz9rTaRRGYDgvZPtBJgYCBKXkS9fzmoySgr8CO6Cw==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+ dependencies:
+ '@radix-ui/react-slot': 1.1.0(@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-x+yELayyefNeKeTx4fjK6j99Fs6c4qKm3aY38G3swQVTN6xMpsrbigC0uHs2L//g8q4qR7qOcww8430jJmi2ag==}
peerDependencies:
@@ -5732,6 +5838,34 @@ packages:
react-dom: 18.2.0([email protected])
dev: false
+ resolution: {integrity: sha512-EA6AMGeq9AEeQDeSH0aZgG198qkfHSbvWTf1HvoDmOB5bBG/qTxjYMWUKMnYiV6J/iP/J8MEFSuB2zRU2n7ODA==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+ dependencies:
+ '@radix-ui/primitive': 1.1.0
+ '@radix-ui/react-collection': 1.1.0(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.1.0(@types/[email protected])([email protected])
+ '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])
+ '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])
+ '@radix-ui/react-primitive': 2.0.0(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.1.0(@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-3mrKauI/tWXo1Ll+gN5dHcxDPdm/Df1ufcDLCecn+pnCIVcdWE7CujXo8QaXOWRJyZyQWWbpB8eFwHzWXlv5mQ==}
peerDependencies:
@@ -5767,6 +5901,20 @@ packages:
react: 18.2.0
dev: false
+ resolution: {integrity: sha512-FUCf5XMfmW4dtYl69pdS4DbxKy8nj4M7SafBgPllysxmdachynNflAdp/gCsnYWNDnge6tI9onzMp5ARYc1KNw==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ dependencies:
+ '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])
+ '@types/react': 18.2.48
+ react: 18.2.0
+ dev: false
+
resolution: {integrity: sha512-tTxGluMtwrc5ffgAiOSMrYIx0r3vSTcgM4Vl8rqfpXcHt6ryB9B0OlFKUOiDpKASXlhvzfHf4Y0AYKJdpzjL8w==}
peerDependencies:
@@ -5812,6 +5960,32 @@ packages:
react-dom: 18.2.0([email protected])
dev: false
+ resolution: {integrity: sha512-PpTJV68dZU2oqqgq75Uzto5o/XfOVgkrJ9rulVmfTKxWp3HfUjHE6CP/WLRR4AzPX9HWxw7vFow2me85Yu+Naw==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+ dependencies:
+ '@radix-ui/primitive': 1.1.0
+ '@radix-ui/react-context': 1.1.0(@types/[email protected])([email protected])
+ '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])
+ '@radix-ui/react-primitive': 2.0.0(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-roving-focus': 1.1.0(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-toggle': 1.1.0(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.1.0(@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-Pkqg3+Bc98ftZGsl60CLANXQBBQ4W3mTFS9EJvNxKMZ7magklKV69/id1mlAlOFDDfHvlCms0fx8fA4CMKDJHg==}
peerDependencies:
@@ -5835,6 +6009,28 @@ packages:
react-dom: 18.2.0([email protected])
dev: false
+ resolution: {integrity: sha512-gwoxaKZ0oJ4vIgzsfESBuSgJNdc0rv12VhHgcqN0TEJmmZixXG/2XpsLK8kzNWYcnaoRIEEQc0bEi3dIvdUpjw==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+ dependencies:
+ '@radix-ui/primitive': 1.1.0
+ '@radix-ui/react-primitive': 2.0.0(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.1.0(@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-DmNFOiwEc2UDigsYj6clJENma58OelxD24O4IODoZ+3sQc3Zb+L8w1EP+y9laTuKCLAysPw4fD6/v0j4KNV8rg==}
peerDependencies:
@@ -5922,6 +6118,19 @@ packages:
react: 18.2.0
dev: false
+ resolution: {integrity: sha512-CasTfvsy+frcFkbXtSJ2Zu9JHpN8TYKxkgJGWbjiZhFivxaeW7rMeZt7QELGVLaYVfFMsKHjb7Ak0nMEe+2Vfw==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ dependencies:
+ '@types/react': 18.2.48
+ react: 18.2.0
+ dev: false
+
resolution: {integrity: sha512-FohDoZvk3mEXh9AWAVyRTYR4Sq7/gavuofglmiXB2g1aKyboUD4YtgWxKj8O5n+Uak52gXQ4wKz5IFST4vtJHg==}
peerDependencies:
@@ -5947,6 +6156,20 @@ packages:
react: 18.2.0
dev: false
+ resolution: {integrity: sha512-MtfMVJiSr2NjzS0Aa90NPTnvTSg6C/JLCV7ma0W6+OMV78vd8OyRpID+Ng9LxzsPbLeuBnWBA1Nq30AtBIDChw==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ dependencies:
+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])
+ '@types/react': 18.2.48
+ react: 18.2.0
+ dev: false
+
resolution: {integrity: sha512-JwfBCUIfhXRxKExgIqGa4CQsiMemo1Xt0W/B4ei3fpzpvPENKpMKQ8mZSB6Acj3ebrAEgi2xiQvcI1PAAodvyg==}
peerDependencies:
@@ -6005,6 +6228,19 @@ packages:
react: 18.2.0
dev: false
+ resolution: {integrity: sha512-+FPE0rOdziWSrH9athwI1R0HDVbWlEhd+FR+aSDk4uWGmSJ9Z54sdZVDQPZAinJhJXwfT+qnj969mCsT2gfm5w==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ dependencies:
+ '@types/react': 18.2.48
+ react: 18.2.0
+ dev: false
+
resolution: {integrity: sha512-RG2K8z/K7InnOKpq6YLDmT49HGjNmrK+fr82UCVKT2sW0GYfVnYp4wZWBooT/EYfQ5faA9uIjvsuMMhH61rheg==}
peerDependencies: