🎥 Make videos programmatically with React
replace a file
Jonny Burger5f07e7f3a0ed
diff --git a/packages/convert/app/components/ConvertUi.tsx b/packages/convert/app/components/ConvertUi.tsxindex 94c49717dc..905ee04899 100644--- a/packages/convert/app/components/ConvertUi.tsx+++ b/packages/convert/app/components/ConvertUi.tsx@@ -541,7 +541,7 @@ export default function ConvertUI({</div><div className="h-8" /><Button- className="block w-full font-brand"+ className="block w-full"type="button"variant="brand"disabled={disableSubmit}diff --git a/packages/convert/app/components/FileAvailable.tsx b/packages/convert/app/components/FileAvailable.tsxindex a0123df734..ea19d7578e 100644--- a/packages/convert/app/components/FileAvailable.tsx+++ b/packages/convert/app/components/FileAvailable.tsx@@ -10,6 +10,7 @@ import {BackButton} from './BackButton';import ConvertUI from './ConvertUi';import {Footer} from './Footer';import {Probe} from './Probe';+import {ReplaceVideo} from './ReplaceVideo';import {VideoThumbnailRef} from './VideoThumbnail';import {getBrightnessOfFrame} from './get-brightness-of-frame';import {useProbe} from './use-probe';@@ -149,6 +150,7 @@ export const FileAvailable: React.FC<{</div><div className="h-16" /><Footer />+ <ReplaceVideo setSrc={setSrc} /></div></div></div>diff --git a/packages/convert/app/components/Main.tsx b/packages/convert/app/components/Main.tsxindex 18e0655198..15f01ea969 100644--- a/packages/convert/app/components/Main.tsx+++ b/packages/convert/app/components/Main.tsx@@ -11,9 +11,9 @@ export const Main: React.FC<{const location = useLocation();const [url] = useState(new URLSearchParams(location.search));- const [src, setSrc] = useState<Source | null>(- url.has('url') ? {type: 'url', url: url.get('url') as string} : null,- );+ const [src, setSrc] = useState<Source | null>(() => {+ return url.has('url') ? {type: 'url', url: url.get('url') as string} : null;+ });useEffect(() => {document.title = getPageTitle(routeAction);diff --git a/packages/convert/app/components/ReplaceVideo.tsx b/packages/convert/app/components/ReplaceVideo.tsxnew file mode 100644index 0000000000..2f374a0f00--- /dev/null+++ b/packages/convert/app/components/ReplaceVideo.tsx@@ -0,0 +1,82 @@+import React, {useCallback, useEffect, useState} from 'react';+import {Source} from '~/lib/convert-state';+import {Button} from './ui/button';+import {+ Dialog,+ DialogContent,+ DialogDescription,+ DialogHeader,+ DialogTitle,+} from './ui/dialog';++export const ReplaceVideo: React.FC<{+ readonly setSrc: React.Dispatch<React.SetStateAction<Source | null>>;+}> = ({setSrc}) => {+ const [fileToReplace, setFileToReplace] = useState<File | null>(null);++ useEffect(() => {+ if (fileToReplace) {+ return;+ }++ const onDragOver = (e: DragEvent) => {+ e.preventDefault();+ };++ const onDrop = (e: DragEvent) => {+ e.preventDefault();+ const file = e.dataTransfer?.files[0];+ if (file) {+ setFileToReplace(file);+ }+ };++ document.body.addEventListener('dragover', onDragOver);+ document.body.addEventListener('drop', onDrop);++ return () => {+ document.body.removeEventListener('dragover', onDragOver);+ document.body.removeEventListener('drop', onDrop);+ };+ }, [fileToReplace]);++ const keepCurrent = useCallback(() => {+ setFileToReplace(null);+ }, []);++ const replace = useCallback(() => {+ if (!fileToReplace) {+ throw new Error('No file to replace');+ }++ setSrc({type: 'file', file: fileToReplace});+ setFileToReplace(null);+ }, [fileToReplace, setSrc]);++ const onOpenChange = useCallback((open: boolean) => {+ if (!open) {+ setFileToReplace(null);+ }+ }, []);++ return (+ <Dialog open={Boolean(fileToReplace)} onOpenChange={onOpenChange}>+ <DialogContent>+ <DialogHeader>+ <DialogTitle className="font-brand">Replace video?</DialogTitle>+ <div className="h-1" />+ <DialogDescription>+ The currently loaded video will be discarded.+ </DialogDescription>+ <div className="h-2" />+ <Button variant="brand" onClick={replace}>+ Replace video+ </Button>+ <Button variant="brandsecondary" onClick={keepCurrent}>+ Keep current video+ </Button>+ </DialogHeader>+ </DialogContent>+ </Dialog>+ );+};diff --git a/packages/convert/app/components/ui/button.tsx b/packages/convert/app/components/ui/button.tsxindex 47568add18..260a300e76 100644--- a/packages/convert/app/components/ui/button.tsx+++ b/packages/convert/app/components/ui/button.tsx@@ -12,7 +12,9 @@ const buttonVariants = cva(variant: {default: 'bg-primary text-primary-foreground hover:bg-primary/90',brand:- 'bg-brand text-primary-foreground border-2 border-black border-b-4',+ 'bg-brand text-primary-foreground border-2 border-black border-b-4 font-brand',+ brandsecondary:+ 'bg-white text-black border-2 border-black border-b-4 font-brand',destructive:'bg-destructive text-destructive-foreground hover:bg-destructive/90',outline:diff --git a/packages/convert/app/components/ui/dialog.tsx b/packages/convert/app/components/ui/dialog.tsxnew file mode 100644index 0000000000..0239300d04--- /dev/null+++ b/packages/convert/app/components/ui/dialog.tsx@@ -0,0 +1,122 @@+'use client';++import * as DialogPrimitive from '@radix-ui/react-dialog';+import {X} from 'lucide-react';+import * as React from 'react';++import {cn} from '@/lib/utils';++const Dialog = DialogPrimitive.Root;++const DialogTrigger = DialogPrimitive.Trigger;++const DialogPortal = DialogPrimitive.Portal;++const DialogClose = DialogPrimitive.Close;++const DialogOverlay = React.forwardRef<+ React.ElementRef<typeof DialogPrimitive.Overlay>,+ React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>+>(({className, ...props}, ref) => (+ <DialogPrimitive.Overlay+ ref={ref}+ className={cn(+ 'fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',+ className,+ )}+ {...props}+ />+));+DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;++const DialogContent = React.forwardRef<+ React.ElementRef<typeof DialogPrimitive.Content>,+ React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>+>(({className, children, ...props}, ref) => (+ <DialogPortal>+ <DialogOverlay />+ <DialogPrimitive.Content+ ref={ref}+ className={cn(+ 'fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg',+ className,+ )}+ {...props}+ >+ {children}+ <DialogPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground">+ <X className="h-4 w-4" />+ <span className="sr-only">Close</span>+ </DialogPrimitive.Close>+ </DialogPrimitive.Content>+ </DialogPortal>+));+DialogContent.displayName = DialogPrimitive.Content.displayName;++const DialogHeader = ({+ className,+ ...props+}: React.HTMLAttributes<HTMLDivElement>) => (+ <div+ className={cn(+ 'flex flex-col space-y-1.5 text-center sm:text-left',+ className,+ )}+ {...props}+ />+);+DialogHeader.displayName = 'DialogHeader';++const DialogFooter = ({+ className,+ ...props+}: React.HTMLAttributes<HTMLDivElement>) => (+ <div+ className={cn(+ 'flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2',+ className,+ )}+ {...props}+ />+);+DialogFooter.displayName = 'DialogFooter';++const DialogTitle = React.forwardRef<+ React.ElementRef<typeof DialogPrimitive.Title>,+ React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>+>(({className, ...props}, ref) => (+ <DialogPrimitive.Title+ ref={ref}+ className={cn(+ 'text-lg font-semibold leading-none tracking-tight',+ className,+ )}+ {...props}+ />+));+DialogTitle.displayName = DialogPrimitive.Title.displayName;++const DialogDescription = React.forwardRef<+ React.ElementRef<typeof DialogPrimitive.Description>,+ React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>+>(({className, ...props}, ref) => (+ <DialogPrimitive.Description+ ref={ref}+ className={cn('text-sm text-muted-foreground', className)}+ {...props}+ />+));+DialogDescription.displayName = DialogPrimitive.Description.displayName;++export {+ Dialog,+ DialogClose,+ DialogContent,+ DialogDescription,+ DialogFooter,+ DialogHeader,+ DialogOverlay,+ DialogPortal,+ DialogTitle,+ DialogTrigger,+};diff --git a/packages/convert/package.json b/packages/convert/package.jsonindex 875ba650df..9c4ffa33d5 100644--- a/packages/convert/package.json+++ b/packages/convert/package.json@@ -19,6 +19,7 @@"@radix-ui/react-select": "^2.1.1","@radix-ui/react-separator": "^1.1.0","@radix-ui/react-slot": "^1.1.0",+ "@radix-ui/react-dialog": "^1.1.0","@remix-run/node": "^2.11.2","@remix-run/react": "^2.11.2","@remix-run/serve": "^2.11.2",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex f25e57ac26..733c3767ef 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -370,6 +370,9 @@ importers:'@radix-ui/react-checkbox':specifier: ^1.1.2version: 1.1.2(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-dialog':+ specifier: ^1.1.0+ version: 1.1.4(@types/[email protected])(@types/[email protected])([email protected])([email protected])'@radix-ui/react-label':specifier: ^2.1.0version: 2.1.0(@types/[email protected])(@types/[email protected])([email protected])([email protected])@@ -10945,6 +10948,10 @@ packages:resolution: {integrity: sha512-4Z8dn6Upk0qk4P74xBhZ6Hd/w0mPEzOOLxy4xiPXOXqjF7jZS0VAKk7/x/H6FyY2zCkYJqePf1G5KmkmNJ4RBA==}dev: false+ /@radix-ui/[email protected]:+ resolution: {integrity: sha512-SJ31y+Q/zAyShtXJc8x83i9TYdbAfHZ++tUZnvjJJqFjzsdUnKsxPL6IEtBlxKkU7yzer//GQtZSV4GbldL3YA==}+ dev: false+/@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):resolution: {integrity: sha512-FmlW1rCg7hBpEBwFbjHwCW6AmWLQM6g/v0Sn8XbP9NvmSZ2San1FpQeyPtufzOMSIx7Y4dzjlHoifhp+7NkZhw==}peerDependencies:@@ -11028,6 +11035,19 @@ packages:react: 19.0.0dev: false+ resolution: {integrity: sha512-Y9VzoRDSJtgFMUCoiZBDVo084VQ5hfpXxVE+NgkdNsjiDBByiImMZKKhxMwCbdHvhlENG6a833CbFkOQvTricw==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ dependencies:+ '@types/react': 19.0.0+ react: 19.0.0+ dev: false+resolution: {integrity: sha512-OKrckBy+sMEgYM/sMmqmErVn0kZqrHPJze+Ql3DzYsDDp0hl0L62nx/2122/Bvps1qz645jlcu2tD9lrRSdf8A==}peerDependencies:@@ -11054,6 +11074,39 @@ packages:react: 19.0.0dev: false+ /@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):+ resolution: {integrity: sha512-Ur7EV1IwQGCyaAuyDRiOLA5JIUZxELJljF+MbM/2NC0BYwfuRrbpS30BiQBJrVruscgUkieKkqXYDOoByaxIoA==}+ 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.1+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-focus-guards': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.1(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-portal': 1.1.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-presence': 1.1.2(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-slot': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0+ aria-hidden: 1.2.4+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ react-remove-scroll: 2.6.2(@types/[email protected])([email protected])+ dev: false+resolution: {integrity: sha512-BUuBvgThEiAXh2DWu93XsT+a3aWrGqolGlqqw5VU1kG7p/ZH2cuDlM1sRLNnY3QcBS69UIz2mcKhMxDsdewhjg==}peerDependencies:@@ -11091,6 +11144,30 @@ packages:react-dom: 19.0.0([email protected])dev: false+ /@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):+ resolution: {integrity: sha512-onrWn/72lQoEucDmJnr8uczSNTujT0vJnA/X5+3AkChVPowr8n1yvIKIabhWyMQeMvvmdpsvcyDqx3X1LEXCPg==}+ 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.1+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.1(@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-escape-keydown': 1.1.0(@types/[email protected])([email protected])+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ dev: false+resolution: {integrity: sha512-w6XZNUPVv6xCpZUqb/yN9DL6auvpGX3C/ee6Hdi16v2UUy25HV2Q5bcflsiDyT/g5RwbPQ/GIT1vLkeRb+ITBw==}peerDependencies:@@ -11104,6 +11181,19 @@ packages:react: 19.0.0dev: false+ resolution: {integrity: sha512-pSIwfrT1a6sIoDASCSpFwOasEwKTZWDw/iBdtnqKO7v6FeOzYJ7U53cPzYFVR3geGGXgVHaH+CdngrrAzqUGxg==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ dependencies:+ '@types/react': 19.0.0+ react: 19.0.0+ dev: false+/@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):resolution: {integrity: sha512-200UD8zylvEyL8Bx+z76RJnASR2gRMuxlgFCPAe/Q/679a/r0eK3MBVYMb7vZODZcffZBdob1EGnky78xmVvcA==}peerDependencies:@@ -11126,6 +11216,28 @@ packages:react-dom: 19.0.0([email protected])dev: false+ /@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):+ resolution: {integrity: sha512-01omzJAYRxXdG2/he/+xy+c8a8gCydoQ1yOxnWNcRhrrBW5W+RQJ22EK1SaO8tb3WoUsuEw7mJjBozPzihDFjA==}+ 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.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ dev: false+resolution: {integrity: sha512-EJUrI8yYh7WOjNOqpoJaf1jlFIH2LvtgAl+YcFqNCa+4hj64ZXmPkAKOFs/ukjz3byN6bdb/AVUqHkI8/uWWMA==}peerDependencies:@@ -11210,6 +11322,27 @@ packages:react-dom: 19.0.0([email protected])dev: false+ /@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):+ resolution: {integrity: sha512-NciRqhXnGojhT93RPyDaMPfLH3ZSl4jjIFbZQ1b/vxvZEdHsBZ49wP9w8L3HzUQwep01LcWtkUvm0OVB5JAHTw==}+ 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-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ dev: false+/@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):resolution: {integrity: sha512-Gq6wuRN/asf9H/E/VzdKoUtT8GC9PQc9z40/vEr0VCJ4u5XvvhWIrSsCB6vD2/cH7ugTdSfYq9fLJCcM00acrQ==}peerDependencies:@@ -11252,6 +11385,27 @@ packages:react-dom: 19.0.0([email protected])dev: false+ /@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):+ resolution: {integrity: sha512-18TFr80t5EVgL9x1SwF/YGtfG+l0BS0PRAlCWBDoBEiDQjeKgnNZRVJp/oVBl24sr3Gbfwc/Qpj4OcWTQMsAEg==}+ 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.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ dev: false+/@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):resolution: {integrity: sha512-ZSpFm0/uHa8zTvKBDjLFWLo8dkr4MBsiDLz0g3gMUwqgLHz9rTaRRGYDgvZPtBJgYCBKXkS9fzmoySgr8CO6Cw==}peerDependencies:@@ -11272,6 +11426,26 @@ packages:react-dom: 19.0.0([email protected])dev: false+ /@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):+ resolution: {integrity: sha512-sHCWTtxwNn3L3fH8qAfnF3WbUZycW93SM1j3NFDzXBiz8D6F5UTTy8G1+WFEaiCdvCVRJWj6N2R4Xq6HdiHmDg==}+ 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.1(@types/[email protected])([email protected])+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ dev: false+/@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):resolution: {integrity: sha512-9ArIZ9HWhsrfqS765h+GZuLoxaRHD/j0ZWOWilsCvYTpYJp8XwCqNG7Dt9Nu/TItKOdgLGkOPCodQvDc+UMwYg==}peerDependencies:@@ -11374,6 +11548,20 @@ packages:react: 19.0.0dev: false+ resolution: {integrity: sha512-RApLLOcINYJA+dMVbOju7MYv1Mb2EBp2nH4HdDzXTSyaR5optlm6Otrz1euW3HbdOR8UmmFK06TD+A9frYWv+g==}+ 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.1(@types/[email protected])([email protected])+ '@types/react': 19.0.0+ react: 19.0.0+ dev: false+resolution: {integrity: sha512-CasTfvsy+frcFkbXtSJ2Zu9JHpN8TYKxkgJGWbjiZhFivxaeW7rMeZt7QELGVLaYVfFMsKHjb7Ak0nMEe+2Vfw==}peerDependencies:@@ -25858,6 +26046,22 @@ packages:tslib: 2.6.2dev: false+ resolution: {integrity: sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q==}+ engines: {node: '>=10'}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0+ peerDependenciesMeta:+ '@types/react':+ optional: true+ dependencies:+ '@types/react': 19.0.0+ react: 19.0.0+ react-style-singleton: 2.2.3(@types/[email protected])([email protected])+ tslib: 2.6.2+ dev: false+resolution: {integrity: sha512-FnrTWO4L7/Bhhf3CYBNArEG/yROV0tKmTv7/3h9QCFvH6sndeFf1wPqOcbFVu5VAulS5dV1wGT3GZZ/1GawqiA==}engines: {node: '>=10'}@@ -25877,6 +26081,25 @@ packages:use-sidecar: 1.1.2(@types/[email protected])([email protected])dev: false+ resolution: {integrity: sha512-KmONPx5fnlXYJQqC62Q+lwIeAk64ws/cUw6omIumRzMRPqgnYqhSSti99nbj0Ry13bv7dF+BKn7NB+OqkdZGTw==}+ engines: {node: '>=10'}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ dependencies:+ '@types/react': 19.0.0+ react: 19.0.0+ react-remove-scroll-bar: 2.3.8(@types/[email protected])([email protected])+ react-style-singleton: 2.2.1(@types/[email protected])([email protected])+ tslib: 2.6.2+ use-callback-ref: 1.3.3(@types/[email protected])([email protected])+ use-sidecar: 1.1.2(@types/[email protected])([email protected])+ dev: false+resolution: {integrity: sha512-DuanZjaD8mQp1ppHjgnnUnyOlqYXZVjnov/JzFhjLEwd3Z4dYjMSnqrEzzGThH47vpCOqPPwJM2FtthLeJ8Pbg==}peerDependencies:@@ -25979,6 +26202,22 @@ packages:tslib: 2.6.2dev: false+ resolution: {integrity: sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ==}+ engines: {node: '>=10'}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ dependencies:+ '@types/react': 19.0.0+ get-nonce: 1.0.1+ react: 19.0.0+ tslib: 2.6.2+ dev: false+resolution: {integrity: sha512-x+VL6wbT4JRVPm7EGxXhZ8w8LTROaxPXOqhlGyVSrv0sB1jkyFGgXxJ8LVoPRLvPR6/CIZGFmfzqUa2NYeMr2A==}engines: {node: '>=0.10.0'}@@ -28917,6 +29156,21 @@ packages:tslib: 2.6.2dev: false+ resolution: {integrity: sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg==}+ engines: {node: '>=10'}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ dependencies:+ '@types/react': 19.0.0+ react: 19.0.0+ tslib: 2.6.2+ dev: false+resolution: {integrity: sha512-epTbsLuzZ7lPClpz2TyryBfztm7m+28DlEv2ZCQ3MDr5ssiwyOwGH/e5F9CkfWjJ1t4clvI58yF822/GUkjjhw==}engines: {node: '>=10'}