Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Virtualization: adding videos dialog (#663)

Ameer Al Ashhab72e5ca8b9636
diff --git a/apps/web/app/dashboard/_components/DashboardInner.tsx b/apps/web/app/dashboard/_components/DashboardInner.tsx
index 8ddee69ae..a3856af4a 100644
--- a/apps/web/app/dashboard/_components/DashboardInner.tsx
+++ b/apps/web/app/dashboard/_components/DashboardInner.tsx
@@ -147,12 +147,22 @@ const User = () => {
className="flex gap-2 justify-between items-center p-2 rounded-xl border data-[state=open]:border-gray-3 data-[state=open]:bg-gray-3 border-transparent transition-colors cursor-pointer group lg:gap-6 hover:border-gray-3"
>
<div className="flex items-center">
- <Avatar
- letterClass="text-xs lg:text-md"
- name={user.name ?? "User"}
- className="size-[24px] text-gray-12"
- />
- <span className="ml-2 text-sm lg:ml-2 lg:text-md text-gray-12">
+ {user.image ? (
+ <Image
+ src={user.image}
+ alt={user.name ?? "User"}
+ width={24}
+ height={24}
+ className="rounded-full"
+ />
+ ) : (
+ <Avatar
+ letterClass="text-xs lg:text-md"
+ name={user.name ?? "User"}
+ className="size-[24px] text-gray-12"
+ />
+ )}
+ <span className="ml-2 text-sm truncate lg:ml-2 lg:text-md text-gray-12">
{user.name ?? "User"}
</span>
</div>
diff --git a/apps/web/app/dashboard/spaces/[spaceId]/components/AddVideosDialogBase.tsx b/apps/web/app/dashboard/spaces/[spaceId]/components/AddVideosDialogBase.tsx
index f9e987c35..7880259a7 100644
--- a/apps/web/app/dashboard/spaces/[spaceId]/components/AddVideosDialogBase.tsx
+++ b/apps/web/app/dashboard/spaces/[spaceId]/components/AddVideosDialogBase.tsx
@@ -2,7 +2,7 @@
import { zodResolver } from "@hookform/resolvers/zod";
import * as z from "zod";
-import React, { useState, useEffect } from "react";
+import React, { useState, useEffect, useMemo, useCallback } from "react";
import {
Dialog,
DialogContent,
@@ -15,14 +15,10 @@ import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faVideo } from "@fortawesome/free-solid-svg-icons";
-import { VideoThumbnail } from "@/components/VideoThumbnail";
import { useMutation, useQuery } from "@tanstack/react-query";
import { Search } from "lucide-react";
-import { Check, Minus, Plus } from "lucide-react";
-import moment from "moment";
import clsx from "clsx";
-import { motion } from "framer-motion";
-import { Tooltip } from "@/components/Tooltip";
+import VirtualizedVideoGrid from "./VirtualizedVideoGrid";
interface AddVideosDialogBaseProps {
open: boolean;
@@ -36,7 +32,7 @@ interface AddVideosDialogBaseProps {
getEntityVideoIds: (entityId: string) => Promise<any>;
}
-interface Video {
+export interface Video {
id: string;
ownerId: string;
name: string;
@@ -75,7 +71,7 @@ const AddVideosDialogBase: React.FC<AddVideosDialogBaseProps> = ({
},
});
- const { data: videosData, isLoading } = useQuery({
+ const { data: videosData, isLoading } = useQuery<Video[]>({
queryKey: ["user-videos"],
queryFn: async () => {
const result = await getVideos(50);
@@ -85,9 +81,10 @@ const AddVideosDialogBase: React.FC<AddVideosDialogBaseProps> = ({
return result.data;
},
enabled: open,
+ refetchOnWindowFocus: false // Don't refetch when window regains focus
});
- const { data: entityVideoIds } = useQuery({
+ const { data: entityVideoIds } = useQuery<string[]>({
queryKey: ["entity-video-ids", entityId],
queryFn: async () => {
const result = await getEntityVideoIds(entityId);
@@ -97,6 +94,7 @@ const AddVideosDialogBase: React.FC<AddVideosDialogBaseProps> = ({
return result.data;
},
enabled: open,
+ refetchOnWindowFocus: false // Don't refetch when window regains focus
});
const updateVideosMutation = useMutation({
@@ -131,26 +129,28 @@ const AddVideosDialogBase: React.FC<AddVideosDialogBaseProps> = ({
// Tab state: 'all', 'added', or 'notAdded'
const [videoTab, setVideoTab] = useState<typeof filterTabs[number]>('all');
- // Filter videos by search
- let filteredVideos: Video[] = videosData?.filter((video: Video) =>
- video.name.toLowerCase().includes(searchTerm.toLowerCase())
- ) || [];
-
- // Further filter by tab
- if (videoTab === 'added') {
- filteredVideos = filteredVideos.filter(video => entityVideoIds?.includes(video.id));
- } else if (videoTab === 'notAdded') {
- filteredVideos = filteredVideos.filter(video => !entityVideoIds?.includes(video.id));
- }
+ // Memoize filtered videos for stable reference
+ const filteredVideos: Video[] = useMemo(() => {
+ let vids = videosData?.filter((video: Video) =>
+ video.name.toLowerCase().includes(searchTerm.toLowerCase())
+ ) || [];
+ if (videoTab === 'added') {
+ vids = vids.filter((video: Video) => entityVideoIds?.includes(video.id));
+ } else if (videoTab === 'notAdded') {
+ vids = vids.filter((video: Video) => !entityVideoIds?.includes(video.id));
+ }
+ return vids;
+ }, [videosData, searchTerm, videoTab, entityVideoIds]);
- const handleVideoToggle = (videoId: string) => {
+ // Memoize handleVideoToggle for stable reference
+ const handleVideoToggle = useCallback((videoId: string) => {
setSelectedVideos((prev) =>
prev.includes(videoId)
? prev.filter((id) => id !== videoId)
: [...prev, videoId]
);
- };
+ }, []);
const handleUpdateVideos = () => {
if (!entityVideoIds) return;
@@ -171,7 +171,7 @@ const AddVideosDialogBase: React.FC<AddVideosDialogBaseProps> = ({
return (
<Dialog open={open} onOpenChange={(open) => !open && onClose()}>
- <DialogContent className="flex flex-col p-0 w-full max-w-2xl rounded-xl border bg-gray-2 border-gray-4">
+ <DialogContent className="flex flex-col p-0 w-[calc(100%-20px)] max-w-2xl rounded-xl border bg-gray-2 border-gray-4">
<DialogHeader
icon={<FontAwesomeIcon icon={faVideo} />}
description={
@@ -212,7 +212,7 @@ const AddVideosDialogBase: React.FC<AddVideosDialogBaseProps> = ({
</div>
<div className="flex overflow-hidden flex-col flex-1 px-4 py-4 min-h-0 sm:px-8 sm:py-6">
- <div className="flex-shrink-0 px-2 mb-3">
+ <div className="flex-shrink-0 mb-3">
<div className="flex relative w-full">
<div className="flex absolute inset-y-0 left-3 items-center pointer-events-none">
<Search className="size-4 text-gray-9" />
@@ -226,7 +226,7 @@ const AddVideosDialogBase: React.FC<AddVideosDialogBaseProps> = ({
</div>
</div>
- <div className="overflow-y-auto flex-1 px-1 min-h-0">
+ <div className="flex-1 w-full">
{isLoading ? (
<div className="flex justify-center items-center h-64">
<div className="w-8 h-8 rounded-full border-b-2 border-blue-500 animate-spin"></div>
@@ -257,19 +257,16 @@ const AddVideosDialogBase: React.FC<AddVideosDialogBaseProps> = ({
</p>
</div>
) : (
- <div className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-3 max-h-[400px] overflow-y-auto custom-scroll pt-2">
- {filteredVideos.map((video) => (
- <VideoCard
- key={video.id}
- video={video}
- isSelected={selectedVideos.includes(video.id)}
- onToggle={() => handleVideoToggle(video.id)}
- isAlreadyInEntity={
- entityVideoIds?.includes(video.id) || false
- }
- />
- ))}
- </div>
+ <VirtualizedVideoGrid
+ videos={filteredVideos}
+ selectedVideos={selectedVideos}
+ handleVideoToggle={handleVideoToggle}
+ entityVideoIds={entityVideoIds || []}
+ height={300}
+ columnCount={3}
+ rowHeight={200}
+ columnWidth={200}
+ />
)}
</div>
</div>
@@ -312,101 +309,5 @@ const AddVideosDialogBase: React.FC<AddVideosDialogBaseProps> = ({
);
};
-interface VideoCardProps {
- video: Video;
- isSelected: boolean;
- onToggle: () => void;
- isAlreadyInEntity: boolean;
-}
-
-const VideoCard: React.FC<VideoCardProps> = ({
- video,
- isSelected,
- onToggle,
- isAlreadyInEntity,
-}) => {
- const effectiveDate = video.metadata?.customCreatedAt
- ? new Date(video.metadata.customCreatedAt)
- : video.createdAt;
-
- return (
- <div
- onClick={onToggle}
- className={clsx(
- "flex relative flex-col p-3 h-full rounded-xl border transition-all duration-200 group",
- isAlreadyInEntity && isSelected && "border-red-500",
- isAlreadyInEntity && !isSelected && "border-blue-500",
- !isAlreadyInEntity && isSelected && "border-green-500",
- !isAlreadyInEntity && !isSelected && "border-gray-4",
- isAlreadyInEntity ? "bg-gray-3" : isSelected ? "bg-gray-3" : "bg-transparent cursor-pointer hover:bg-gray-3 hover:border-gray-5"
- )}
- >
- {(isSelected || isAlreadyInEntity) && (
- <motion.div
- key={video.id + (isAlreadyInEntity ? '-added' : '-selected')}
- animate={{
- scale: isSelected || isAlreadyInEntity ? 1 : 0,
- }}
- initial={{
- scale: isSelected || isAlreadyInEntity ? 1 : 0,
- }}
- transition={{
- type: "spring",
- stiffness: 300,
- damping: 20,
- }}
- className={clsx(
- "flex absolute -top-2 -right-2 z-10 justify-center items-center rounded-full size-5",
- isSelected && !isAlreadyInEntity && "bg-green-500",
- isSelected && isAlreadyInEntity && "bg-red-500",
- !isSelected && isAlreadyInEntity && "bg-blue-500"
- )}
- >
- {isSelected && isAlreadyInEntity ? (
- <Minus className="text-white" size={14} />
- ) : isSelected && !isAlreadyInEntity ? (
- <Check className="text-white" size={14} />
- ) : (
- <Plus className="text-white" size={14} />
- )}
- </motion.div>
- )}
-
- <div
- className={clsx(
- "overflow-visible relative mb-2 w-full h-32 rounded-lg border transition-colors bg-gray-3 border-gray-5"
- )}
- >
- <VideoThumbnail
- imageClass="w-full h-full transition-all duration-200 group-hover:scale-105"
- userId={video.ownerId}
- videoId={video.id}
- alt={`${video.name} Thumbnail`}
- objectFit="cover"
- containerClass="min-h-full !rounded-lg !border-b-0"
- />
-
- </div>
-
- <div className="space-y-1">
- {/* Title Second */}
- <Tooltip content={video.name}>
- <h3
- className={clsx(
- "text-sm font-medium leading-tight truncate",
- isAlreadyInEntity ? "text-gray-11" : "text-gray-12"
- )}
- >
- {video.name}
- </h3>
- </Tooltip>
-
- <p className="text-xs text-gray-9">
- {moment(effectiveDate).format("MMM D, YYYY")}
- </p>
- </div>
- </div>
- );
-};
export default AddVideosDialogBase;
diff --git a/apps/web/app/dashboard/spaces/[spaceId]/components/VideoCard.tsx b/apps/web/app/dashboard/spaces/[spaceId]/components/VideoCard.tsx
new file mode 100644
index 000000000..a326fce88
--- /dev/null
+++ b/apps/web/app/dashboard/spaces/[spaceId]/components/VideoCard.tsx
@@ -0,0 +1,129 @@
+import React, { memo } from "react";
+import { Check, Minus, Plus } from "lucide-react";
+import { motion, AnimatePresence } from "framer-motion";
+import { Tooltip } from "@/components/Tooltip";
+import { VideoThumbnail } from "@/components/VideoThumbnail";
+import moment from "moment";
+import clsx from "clsx";
+import { Video } from "./AddVideosDialogBase";
+
+interface VideoCardProps {
+ video: Video
+ isSelected: boolean;
+ onToggle: () => void;
+ isAlreadyInEntity: boolean;
+ className?: string;
+}
+
+const VideoCard: React.FC<VideoCardProps> = memo(({
+ video,
+ isSelected,
+ onToggle,
+ isAlreadyInEntity,
+ className,
+}) => {
+ const effectiveDate = video.metadata?.customCreatedAt
+ ? new Date(video.metadata.customCreatedAt)
+ : video.createdAt;
+
+ return (
+ <div
+ onClick={onToggle}
+ className={clsx(
+ "flex relative flex-col p-3 w-full min-h-fit rounded-xl border transition-all duration-200 group",
+ className,
+ isAlreadyInEntity && isSelected && "border-red-500",
+ isAlreadyInEntity && !isSelected && "border-blue-500",
+ !isAlreadyInEntity && isSelected && "border-green-500",
+ !isAlreadyInEntity && !isSelected && "border-gray-4",
+ isAlreadyInEntity ? "bg-gray-3" : isSelected ? "bg-gray-3" : "bg-transparent cursor-pointer hover:bg-gray-3 hover:border-gray-5"
+ )}
+ >
+
+ <motion.div
+ animate={{
+ scale: isSelected || isAlreadyInEntity ? 1 : 0,
+ }}
+ initial={false}
+ transition={{
+ type: "spring",
+ duration: 0.2,
+ }}
+ className={clsx(
+ "flex absolute -top-2 -right-2 z-10 justify-center items-center rounded-full size-5",
+ isSelected && isAlreadyInEntity && "bg-red-500",
+ isSelected && !isAlreadyInEntity && "bg-green-500",
+ !isSelected && isAlreadyInEntity && "bg-blue-500"
+ )}
+ >
+ {/* Use AnimatePresence to properly handle icon transitions */}
+ <AnimatePresence mode="wait" initial={false}>
+ {isSelected && isAlreadyInEntity ? (
+ <motion.div
+ key="minus"
+ initial={{ opacity: 0 }}
+ animate={{ opacity: 1 }}
+ exit={{ opacity: 0 }}
+ transition={{ duration: 0.1 }}
+ >
+ <Minus className="text-white" size={14} />
+ </motion.div>
+ ) : isSelected && !isAlreadyInEntity ? (
+ <motion.div
+ key="check"
+ initial={{ opacity: 0 }}
+ animate={{ opacity: 1 }}
+ exit={{ opacity: 0 }}
+ transition={{ duration: 0.1 }}
+ >
+ <Check className="text-white" size={14} />
+ </motion.div>
+ ) : isAlreadyInEntity && (
+ <motion.div
+ key="plus"
+ initial={{ opacity: 0 }}
+ animate={{ opacity: 1 }}
+ exit={{ opacity: 0 }}
+ transition={{ duration: 0.1 }}
+ >
+ <Plus className="text-white" size={14} />
+ </motion.div>
+ )}
+ </AnimatePresence>
+ </motion.div>
+
+ <div
+ className={clsx(
+ "overflow-visible relative mb-2 w-full h-32 rounded-lg border transition-colors bg-gray-3 border-gray-5"
+ )}
+ >
+ <VideoThumbnail
+ imageClass="w-full h-full transition-all duration-200 group-hover:scale-105"
+ userId={video.ownerId}
+ videoId={video.id}
+ alt={`${video.name} Thumbnail`}
+ objectFit="cover"
+ containerClass="!h-full !rounded-lg !border-b-0"
+ />
+ </div>
+
+ <div className="space-y-1 min-h-fit">
+ <Tooltip content={video.name}>
+ <h3
+ className={clsx(
+ "text-sm font-medium leading-tight truncate",
+ isAlreadyInEntity ? "text-gray-11" : "text-gray-12"
+ )}
+ >
+ {video.name}
+ </h3>
+ </Tooltip>
+ <p className="text-xs text-gray-9">
+ {moment(effectiveDate).format("MMM D, YYYY")}
+ </p>
+ </div>
+ </div>
+ );
+});
+
+export default VideoCard;
diff --git a/apps/web/app/dashboard/spaces/[spaceId]/components/VirtualizedVideoGrid.tsx b/apps/web/app/dashboard/spaces/[spaceId]/components/VirtualizedVideoGrid.tsx
new file mode 100644
index 000000000..b1a5879e3
--- /dev/null
+++ b/apps/web/app/dashboard/spaces/[spaceId]/components/VirtualizedVideoGrid.tsx
@@ -0,0 +1,98 @@
+import React, { useRef, useState, useEffect } from "react";
+import { Grid, useGrid } from '@virtual-grid/react';
+import VideoCard from "./VideoCard";
+import { Video } from "./AddVideosDialogBase";
+
+interface VirtualizedVideoGridProps {
+ videos: Video[];
+ selectedVideos: string[];
+ handleVideoToggle: (id: string) => void;
+ entityVideoIds: string[];
+ height?: number;
+ columnCount?: number;
+ rowHeight?: number;
+ columnWidth?: number;
+}
+
+const VirtualizedVideoGrid = ({
+ videos,
+ selectedVideos,
+ handleVideoToggle,
+ entityVideoIds,
+ height = 400,
+ columnCount = 3,
+ rowHeight = 200,
+ columnWidth = 200,
+}: VirtualizedVideoGridProps) => {
+ // Create a ref for the scrollable container
+ const scrollRef = useRef<HTMLDivElement>(null);
+
+ // State for responsive column count and width
+ const [responsiveColumnCount, setResponsiveColumnCount] = useState(columnCount);
+
+ // Handle responsive column count
+ useEffect(() => {
+ // Function to update column count and width based on screen size
+ const updateResponsiveLayout = () => {
+ const isMobile = window.matchMedia('(max-width: 640px)').matches;
+ setResponsiveColumnCount(isMobile ? 1 : columnCount);
+ };
+
+ // Set initial value
+ updateResponsiveLayout();
+
+ // Add event listener for window resize
+ window.addEventListener('resize', updateResponsiveLayout);
+
+ // Clean up
+ return () => window.removeEventListener('resize', updateResponsiveLayout);
+ }, [columnCount]);
+
+ // Initialize the grid with responsive column count
+ const grid = useGrid({
+ scrollRef,
+ count: videos.length,
+ columns: responsiveColumnCount,
+ gap: 12,
+ size: {
+ height: rowHeight,
+ }
+ });
+
+ return (
+ <div
+ ref={scrollRef}
+ style={{
+ height,
+ overflowX: 'hidden',
+ }}
+ className="pt-2 custom-scroll"
+ >
+ <Grid grid={grid}>
+ {(index) => {
+ // Skip rendering if index is out of bounds
+ if (index >= videos.length) return null;
+
+ // Get the video at this index (we know it exists because of the check above)
+ const video = videos[index]!;
+
+ return (
+ <div
+ className="px-2 mx-auto md:mx-0 md:px-0"
+ >
+ <VideoCard
+ key={video.id}
+ video={video}
+ isSelected={selectedVideos.includes(video.id)}
+ onToggle={() => handleVideoToggle(video.id)}
+ isAlreadyInEntity={entityVideoIds?.includes(video.id) || false}
+ />
+ </div>
+ );
+ }}
+ </Grid>
+ </div>
+ );
+}
+
+export default VirtualizedVideoGrid;
diff --git a/apps/web/package.json b/apps/web/package.json
index 183ba85e1..537dc1fbb 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -50,6 +50,7 @@
"@ts-rest/core": "^3.52.1",
"@types/js-cookie": "^3.0.6",
"@uidotdev/usehooks": "^2.4.1",
+ "@virtual-grid/react": "^2.0.3",
"@workos-inc/node": "^7.34.0",
"aws-sdk": "^2.1530.0",
"clsx": "^2.0.0",
diff --git a/packages/ui/src/components/Dialog.tsx b/packages/ui/src/components/Dialog.tsx
index 72fc5597f..42b05b432 100644
--- a/packages/ui/src/components/Dialog.tsx
+++ b/packages/ui/src/components/Dialog.tsx
@@ -67,13 +67,13 @@ const DialogHeader = ({
}: DialogHeaderProps) => (
<div
className={classNames(
- "flex gap-3 items-center p-5 border-b border-gray-4",
+ "flex flex-col gap-3 items-start p-5 border-b md:items-center md:flex-row border-gray-4",
className
)}
{...props}
>
{icon && (
- <div className="flex justify-center items-center rounded-full border text-gray-12 border-gray-5 bg-gray-3 size-10">
+ <div className="flex justify-center items-center rounded-full border md:mb-0 text-gray-12 border-gray-5 bg-gray-3 size-10">
{icon}
</div>
)}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index bd55257fa..2c86252a5 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -516,6 +516,9 @@ importers:
'@uidotdev/usehooks':
specifier: ^2.4.1
+ '@virtual-grid/react':
+ specifier: ^2.0.3
'@workos-inc/node':
specifier: ^7.34.0
@@ -2907,6 +2910,9 @@ packages:
peerDependencies:
tslib: '2'
+ '@juggle/[email protected]':
+ resolution: {integrity: sha512-dfLbk+PwWvFzSxwk3n5ySL0hfBog779o8h68wK/7/APo/7cgyWp5jcXockbxdk5kFRkbeXWm4Fbi9FrdN381sA==}
+
'@kobalte/[email protected]':
resolution: {integrity: sha512-TkeSpgNy7I5k8jwjqT9CK3teAxN0aFb3yyL9ODb06JVYMwXIk+UKrizoAF1ahLUP85lKnxv44B4Y5cXkHShgqw==}
peerDependencies:
@@ -5179,10 +5185,10 @@ packages:
react-dom:
optional: true
- '@storybook/[email protected]':
- resolution: {integrity: sha512-N4RdEjLptun71RH/h4vQA551SKRtr+gyQGx5sVCyamdE52QRPnDOyoM5Kj1IOqTtqLPjYV4D7c0WV2mDIDYazg==}
+ '@storybook/[email protected]':
+ resolution: {integrity: sha512-Ka0ZeQTAgbZlbmlX5xbFPY5RyL7q5ijFhUJ/8keRVo3vJgScQbe7eSsJseod6U46enufIvnpqa1Oadx7y4julA==}
peerDependencies:
- storybook: ^9.1.0-alpha.2
+ storybook: ^9.1.0-alpha.6
vite: ^5.0.0 || ^6.0.0
'@storybook/[email protected]':
@@ -5198,10 +5204,10 @@ packages:
peerDependencies:
storybook: ^8.6.12
- '@storybook/[email protected]':
- resolution: {integrity: sha512-h2zb2J9lst1QMphSDpv3exNyw8fq4w8krV0aNJ+42E/GfHs11jI2zO4aamMCacWl0wSHSDeJaVxFUgXbZbLGcA==}
+ '@storybook/[email protected]':
+ resolution: {integrity: sha512-aP/lvZj9cxyVdLt2vBHL2GKti3koqKT49pe76NEcYqs/BmVEFal+vnquqmMsQtcXcauIf/jZ1Ibdc5NG5xR7NQ==}
peerDependencies:
- storybook: ^9.1.0-alpha.2
+ storybook: ^9.1.0-alpha.6
'@storybook/[email protected]':
resolution: {integrity: sha512-bOmTNJE4FM6+3/1hPQVgha8cLxX2Nyi/4Z+tYq0pCDEyQqGRTD2KXre9XsSCnziRaGxiW80OrKkmqWY8Otuu4A==}
@@ -6115,6 +6121,17 @@ packages:
peerDependencies:
vinxi: ^0.5.5
+ '@virtual-grid/[email protected]':
+ resolution: {integrity: sha512-ZqhtuVGMVM89W/8PFljGqaWV0f8Jce+x68y4hWXpgCHlhSwpGrAKE5awgG1qHDsbTcM0kv1cL88KOFWknbnyWQ==}
+
+ '@virtual-grid/[email protected]':
+ resolution: {integrity: sha512-vIEW2dLbkc7UVvQy5xkA3q7mPiEWq5S0726m+2NOdXoYTbu/XkZEGwRq3W1o0SnGySBH9A/KIykKw5/0B1tHsg==}
+ peerDependencies:
+ react: ^17.0.2 || ^18.0.0
+
+ '@virtual-grid/[email protected]':
+ resolution: {integrity: sha512-E0krspmtVOGRg/qAgDKUjhTRV7VXmFp7Q05ljT87Llffh8g5JoXVsAUPV7JiRKnrSRFShpiVdCy9eq0VvVeifA==}
+
'@vitejs/[email protected]':
resolution: {integrity: sha512-IpEm5ZmeXAP/osiBXVVP5KjFMzbWOonMs0NaQQl+xYnUAcq4oHUBsF2+p4MgKWG4YMmFYJU8A6sxRPuowllm6w==}
engines: {node: ^14.18.0 || >=16.0.0}
@@ -11101,6 +11118,15 @@ packages:
react: '>=16'
react-dom: '>=16'
+ resolution: {integrity: sha512-w9nJSEp+DrW9KmQmeWHQyfaP6b03v+TdXynaoA964Wxt7mdR3An11z4NNCQgL4gKSK7y1ver2Fq+JKH6CWEzUA==}
+ peerDependencies:
+ react: ^17.0.0 || ^18.0.0 || ^19.0.0
+ react-dom: ^17.0.0 || ^18.0.0 || ^19.0.0
+ peerDependenciesMeta:
+ react-dom:
+ optional: true
+
resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==}
@@ -12716,6 +12742,17 @@ packages:
'@types/react':
optional: true
+ resolution: {integrity: sha512-94iG+dEdEP/Sl3WWde+w9StIunlV8Dgj+vkt5wTwMoFQLaijiEZSXXy8KtcStpmEDtIptRJiNeD4ACTtVvnIKA==}
+ peerDependencies:
+ react: '>=16.8.0'
+
+ resolution: {integrity: sha512-R25VqO9Wb3asSD4eqtcxk8sJalvIOYBqS8MNZlpDSQ4l4xMQxC/J7Id9HoTqPq8FwULIn0PVW+OAqF2dyYbjow==}
+ peerDependencies:
+ react: 16.8.0 - 18
+ react-dom: 16.8.0 - 18
+
resolution: {integrity: sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==}
engines: {node: '>=10'}
@@ -14422,7 +14459,7 @@ snapshots:
dependencies:
'@types/resolve': 1.20.6
- debug: 4.4.0([email protected])
+ debug: 4.4.0
esbuild: 0.25.4
escape-string-regexp: 4.0.0
resolve: 1.22.10
@@ -14870,7 +14907,7 @@ snapshots:
'@eslint/[email protected]':
dependencies:
ajv: 6.12.6
- debug: 4.4.0([email protected])
+ debug: 4.4.0
espree: 9.6.1
globals: 13.24.0
ignore: 5.3.2
@@ -14964,7 +15001,7 @@ snapshots:
'@humanwhocodes/[email protected]':
dependencies:
'@humanwhocodes/object-schema': 2.0.3
- debug: 4.4.0([email protected])
+ debug: 4.4.0
minimatch: 3.1.2
transitivePeerDependencies:
- supports-color
@@ -15327,6 +15364,8 @@ snapshots:
dependencies:
tslib: 2.8.1
+ '@juggle/[email protected]': {}
+
dependencies:
'@floating-ui/dom': 1.7.0
@@ -18140,9 +18179,9 @@ snapshots:
react: 18.3.1
react-dom: 18.3.1([email protected])
dependencies:
- '@storybook/csf-plugin': 9.1.0-alpha.2([email protected]([email protected]))
+ '@storybook/csf-plugin': 9.1.0-alpha.6([email protected]([email protected]))
storybook: 8.6.12([email protected])
ts-dedent: 2.2.0
@@ -18173,7 +18212,7 @@ snapshots:
storybook: 8.6.12([email protected])
unplugin: 1.16.1
dependencies:
storybook: 8.6.12([email protected])
unplugin: 1.16.1
@@ -18956,7 +18995,7 @@ snapshots:
'@typescript-eslint/scope-manager': 5.62.0
'@typescript-eslint/types': 5.62.0
'@typescript-eslint/typescript-estree': 5.62.0([email protected])
- debug: 4.4.0([email protected])
+ debug: 4.4.0
eslint: 8.57.1
optionalDependencies:
typescript: 5.8.3
@@ -19018,7 +19057,7 @@ snapshots:
dependencies:
'@typescript-eslint/types': 5.62.0
'@typescript-eslint/visitor-keys': 5.62.0
- debug: 4.4.0([email protected])
+ debug: 4.4.0
globby: 11.1.0
is-glob: 4.0.3
semver: 7.7.1
@@ -19245,6 +19284,22 @@ snapshots:
recast: 0.23.11
+ '@virtual-grid/[email protected]': {}
+
+ dependencies:
+ '@tanstack/react-virtual': 3.13.8([email protected]([email protected]))([email protected])
+ '@virtual-grid/core': 2.0.1
+ '@virtual-grid/shared': 2.0.1
+ react: 18.3.1
+ react-intersection-observer: 9.16.0([email protected]([email protected]))([email protected])
+ use-deep-compare: 1.3.0([email protected])
+ transitivePeerDependencies:
+ - react-dom
+
+ '@virtual-grid/[email protected]': {}
+
dependencies:
'@babel/core': 7.27.1
@@ -19881,7 +19936,7 @@ snapshots:
dependencies:
bytes: 3.1.2
content-type: 1.0.5
- debug: 4.4.0([email protected])
+ debug: 4.4.0
http-errors: 2.0.0
iconv-lite: 0.6.3
on-finished: 2.4.1
@@ -20489,6 +20544,10 @@ snapshots:
dependencies:
ms: 2.1.3
+ dependencies:
+ ms: 2.1.3
+
dependencies:
ms: 2.1.3
@@ -21148,7 +21207,7 @@ snapshots:
eslint: 8.57.1
eslint-import-resolver-node: 0.3.9
eslint-import-resolver-typescript: 3.10.1([email protected])([email protected])
+ eslint-plugin-import: 2.31.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])
eslint-plugin-jsx-a11y: 6.10.2([email protected])
eslint-plugin-react: 7.37.5([email protected])
eslint-plugin-react-hooks: 4.6.2([email protected])
@@ -21198,7 +21257,7 @@ snapshots:
dependencies:
'@nolyfill/is-core-module': 1.0.39
- debug: 4.4.0([email protected])
+ debug: 4.4.0
eslint: 8.57.1
get-tsconfig: 4.10.0
is-bun-module: 2.0.0
@@ -21225,6 +21284,17 @@ snapshots:
transitivePeerDependencies:
- supports-color
+ dependencies:
+ debug: 3.2.7
+ optionalDependencies:
+ '@typescript-eslint/parser': 5.62.0([email protected])([email protected])
+ eslint: 8.57.1
+ eslint-import-resolver-node: 0.3.9
+ eslint-import-resolver-typescript: 3.10.1([email protected]([email protected]))([email protected])
+ transitivePeerDependencies:
+ - supports-color
+
dependencies:
debug: 3.2.7
@@ -21248,6 +21318,35 @@ snapshots:
- supports-color
+ dependencies:
+ '@rtsao/scc': 1.1.0
+ array-includes: 3.1.8
+ array.prototype.findlastindex: 1.2.6
+ array.prototype.flat: 1.3.3
+ array.prototype.flatmap: 1.3.3
+ debug: 3.2.7
+ doctrine: 2.1.0
+ eslint: 8.57.1
+ eslint-import-resolver-node: 0.3.9
+ hasown: 2.0.2
+ is-core-module: 2.16.1
+ is-glob: 4.0.3
+ minimatch: 3.1.2
+ object.fromentries: 2.0.8
+ object.groupby: 1.0.3
+ object.values: 1.2.1
+ semver: 6.3.1
+ string.prototype.trimend: 1.0.9
+ tsconfig-paths: 3.15.0
+ optionalDependencies:
+ '@typescript-eslint/parser': 5.62.0([email protected])([email protected])
+ transitivePeerDependencies:
+ - eslint-import-resolver-typescript
+ - eslint-import-resolver-webpack
+ - supports-color
+
dependencies:
'@rtsao/scc': 1.1.0
array-includes: 3.1.8
@@ -21452,7 +21551,7 @@ snapshots:
ajv: 6.12.6
chalk: 4.1.2
cross-spawn: 7.0.6
- debug: 4.4.0([email protected])
+ debug: 4.4.0
doctrine: 3.0.0
escape-string-regexp: 4.0.0
eslint-scope: 7.2.2
@@ -21692,7 +21791,7 @@ snapshots:
content-type: 1.0.5
cookie: 0.7.2
cookie-signature: 1.2.2
- debug: 4.4.0([email protected])
+ debug: 4.4.0
encodeurl: 2.0.0
escape-html: 1.0.3
etag: 1.8.1
@@ -21835,7 +21934,7 @@ snapshots:
dependencies:
- debug: 4.4.0([email protected])
+ debug: 4.4.0
encodeurl: 2.0.0
escape-html: 1.0.3
on-finished: 2.4.1
@@ -24186,7 +24285,7 @@ snapshots:
dependencies:
'@types/debug': 4.1.12
- debug: 4.4.0([email protected])
+ debug: 4.4.0
decode-named-character-reference: 1.1.0
micromark-core-commonmark: 1.1.0
micromark-factory-space: 1.1.0
@@ -24208,7 +24307,7 @@ snapshots:
dependencies:
'@types/debug': 4.1.12
- debug: 4.4.0([email protected])
+ debug: 4.4.0
decode-named-character-reference: 1.1.0
devlop: 1.1.0
micromark-core-commonmark: 2.0.3
@@ -25589,6 +25688,12 @@ snapshots:
react: 18.3.1
react-dom: 18.3.1([email protected])
+ dependencies:
+ react: 18.3.1
+ optionalDependencies:
+ react-dom: 18.3.1([email protected])
+
@@ -26050,7 +26155,7 @@ snapshots:
dependencies:
- debug: 4.4.0([email protected])
+ debug: 4.4.0
depd: 2.0.0
is-promise: 4.0.0
parseurl: 1.3.3
@@ -26136,7 +26241,7 @@ snapshots:
dependencies:
- debug: 4.4.0([email protected])
+ debug: 4.4.0
encodeurl: 2.0.0
escape-html: 1.0.3
etag: 1.8.1
@@ -26524,7 +26629,7 @@ snapshots:
dependencies:
'@storybook/types': 9.0.0-alpha.1([email protected]([email protected]))
magic-string: 0.30.17
solid-js: 1.9.6
@@ -27545,6 +27650,17 @@ snapshots:
optionalDependencies:
'@types/react': 18.3.21
+ dependencies:
+ dequal: 2.0.3
+ react: 18.3.1
+
+ dependencies:
+ '@juggle/resize-observer': 3.4.0
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
dependencies:
detect-node-es: 1.1.0