Skip to content

A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.

feat: move to vite

dextmorgnd71cac653abb
diff --git a/flowsint-api/app/api/routes/sketches.py b/flowsint-api/app/api/routes/sketches.py
index 8f8a3866..01b2061e 100644
--- a/flowsint-api/app/api/routes/sketches.py
+++ b/flowsint-api/app/api/routes/sketches.py
@@ -64,7 +64,7 @@ async def get_sketch_nodes(id: str, db: Session = Depends(get_db), current_user:
MATCH (n)
WHERE n.sketch_id = $sketch_id
RETURN elementId(n) as id, labels(n) as labels, properties(n) as data
- LIMIT 5000
+ LIMIT 50000
"""
nodes_result = neo4j_connection.query(nodes_query, parameters={"sketch_id": id})
diff --git a/flowsint-app/main.js b/flowsint-app/main.js
new file mode 100644
index 00000000..0016486d
--- /dev/null
+++ b/flowsint-app/main.js
@@ -0,0 +1,40 @@
+import { app, BrowserWindow } from 'electron';
+import path from 'path';
+import { fileURLToPath } from 'url';
+
+const __filename = fileURLToPath(import.meta.url);
+const __dirname = path.dirname(__filename);
+
+const isDev = !app.isPackaged;
+
+function createWindow() {
+ const win = new BrowserWindow({
+ width: 1200,
+ height: 800,
+ webPreferences: {
+ preload: path.join(__dirname, 'preload.js'),
+ },
+ });
+
+ if (isDev) {
+ win.loadURL('http://localhost:5173').catch((err) => {
+ console.error('Failed to load Vite dev server:', err);
+ });
+ } else {
+ win.loadFile(path.join(__dirname, 'dist/index.html')).catch((err) => {
+ console.error('Failed to load index.html:', err);
+ });
+ }
+}
+
+app.whenReady().then(() => {
+ createWindow();
+
+ app.on('activate', () => {
+ if (BrowserWindow.getAllWindows().length === 0) createWindow();
+ });
+});
+
+app.on('window-all-closed', () => {
+ if (process.platform !== 'darwin') app.quit();
+});
diff --git a/flowsint-app/package.json b/flowsint-app/package.json
index 8b831003..17a0b3ee 100644
--- a/flowsint-app/package.json
+++ b/flowsint-app/package.json
@@ -2,9 +2,11 @@
"name": "flowsint-app",
"private": true,
"type": "module",
+ "main": "main.js",
"scripts": {
"dev": "vite --port 3000",
"start": "vite --port 3000",
+ "electron": "electron .",
"build": "vite build && tsc",
"serve": "vite preview",
"test": "vitest run",
@@ -48,6 +50,7 @@
"@tanstack/react-query-devtools": "^5.66.5",
"@tanstack/react-router": "^1.114.3",
"@tanstack/react-router-devtools": "^1.114.3",
+ "@tanstack/react-virtual": "^3.13.9",
"@tanstack/router-plugin": "^1.114.3",
"@types/node": "^22.15.21",
"@xyflow/react": "^12.6.4",
@@ -56,6 +59,7 @@
"cmdk": "^1.1.1",
"d3-force": "^3.0.0",
"date-fns": "^4.1.0",
+ "electron": "^36.2.1",
"embla-carousel-react": "^8.6.0",
"framer-motion": "^12.12.1",
"input-otp": "^1.4.2",
diff --git a/flowsint-app/preload.js b/flowsint-app/preload.js
new file mode 100644
index 00000000..318d558e
--- /dev/null
+++ b/flowsint-app/preload.js
@@ -0,0 +1,6 @@
+// preload.js
+const { contextBridge } = require('electron');
+
+contextBridge.exposeInMainWorld('api', {
+ // expose des fonctions ici si besoin
+});
diff --git a/flowsint-app/src/api/investigation-service.ts b/flowsint-app/src/api/investigation-service.ts
index dc766ede..88d14bbb 100644
--- a/flowsint-app/src/api/investigation-service.ts
+++ b/flowsint-app/src/api/investigation-service.ts
@@ -13,6 +13,7 @@ export const investigationService = {
});
},
create: async (body: BodyInit): Promise<any> => {
+ console.log(body)
return fetchWithAuth(`/api/investigations/create`, {
method: 'POST',
body: body
diff --git a/flowsint-app/src/api/sketch-service.ts b/flowsint-app/src/api/sketch-service.ts
index 1675f13a..fc7a1afc 100644
--- a/flowsint-app/src/api/sketch-service.ts
+++ b/flowsint-app/src/api/sketch-service.ts
@@ -8,6 +8,11 @@ export const sketchService = {
});
},
getById: async (sketchId: string): Promise<any> => {
+ return fetchWithAuth(`/api/sketches/${sketchId}`, {
+ method: 'GET',
+ });
+ },
+ getGraphDataById: async (sketchId: string): Promise<any> => {
return fetchWithAuth(`/api/sketches/${sketchId}/graph`, {
method: 'GET',
});
@@ -24,4 +29,10 @@ export const sketchService = {
body: body
});
},
+ addEdge: async (sketchId: string, body: BodyInit): Promise<any> => {
+ return fetchWithAuth(`/api/sketches/${sketchId}/edges/add`, {
+ method: 'POST',
+ body: body
+ });
+ },
};
\ No newline at end of file
diff --git a/flowsint-app/src/api/transfrom-service.ts b/flowsint-app/src/api/transfrom-service.ts
index 919e98af..3c313323 100644
--- a/flowsint-app/src/api/transfrom-service.ts
+++ b/flowsint-app/src/api/transfrom-service.ts
@@ -2,8 +2,9 @@ import { fetchWithAuth } from './api';
export const transformService = {
- get: async (): Promise<any> => {
- return fetchWithAuth('/api/transforms', {
+ get: async (type?: string): Promise<any> => {
+ const url = type ? `/api/transforms?category=${type}` : "/api/transforms"
+ return fetchWithAuth(url, {
method: 'GET',
});
},
@@ -37,7 +38,7 @@ export const transformService = {
});
},
getRawMaterial: async (): Promise<any> => {
- return fetchWithAuth(`/api/transforms/raw_material`, {
+ return fetchWithAuth(`/api/transforms/raw_materials`, {
method: 'GET',
});
},
diff --git a/flowsint-app/src/components/graphs/create-relation.tsx b/flowsint-app/src/components/graphs/create-relation.tsx
new file mode 100644
index 00000000..623f8113
--- /dev/null
+++ b/flowsint-app/src/components/graphs/create-relation.tsx
@@ -0,0 +1,142 @@
+import { useState } from "react"
+import { useSketchStore } from "@/store/sketch-store"
+import { Button } from "@/components/ui/button"
+import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle } from "@/components/ui/dialog"
+import { Input } from "@/components/ui/input"
+import { ArrowRight, ArrowLeftRight } from "lucide-react"
+import { Badge } from "@/components/ui/badge"
+import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"
+import { toast } from "sonner"
+import { sketchService } from "@/api/sketch-service"
+import { useParams } from "@tanstack/react-router"
+
+export function CreateRelationDialog() {
+
+ const { id: sketchId } = useParams({ strict: false })
+ const selectedNodes = useSketchStore((state) => state.selectedNodes || [])
+ const addEdge = useSketchStore((state) => state.addEdge)
+ const openAddRelationDialog = useSketchStore((state) => state.openAddRelationDialog)
+ const setOpenAddRelationDialog = useSketchStore((state) => state.setOpenAddRelationDialog)
+ const [relationType, setRelationType] = useState("IS_RELATED_TO")
+ const [direction, setDirection] = useState<"one-way" | "two-way">("one-way")
+
+ const handleSubmit = async (e: { preventDefault: () => void }) => {
+ e.preventDefault()
+ try {
+ const newEdge = {
+ source: selectedNodes[0],
+ target: selectedNodes[1],
+ type: direction,
+ label: relationType,
+ sketch_id: sketchId
+ }
+ const newEdgeObject = { type: newEdge.type, label: relationType, from: newEdge.source.id, to: newEdge.target.id } as any
+ if (addEdge) addEdge(newEdgeObject)
+ toast.success("Relation successfully added.")
+ setOpenAddRelationDialog(false)
+ await sketchService.addEdge(sketchId as string, newEdgeObject)
+ } catch (error) {
+ toast.error("Unexpected error during node creation.")
+ } finally {
+ setOpenAddRelationDialog(false)
+ }
+ }
+
+ const getNodeDisplayName = (node: any) => {
+ return node.data?.label || node.data?.username || node.id
+ }
+
+ return (
+ <Dialog open={openAddRelationDialog} onOpenChange={setOpenAddRelationDialog}>
+ <DialogContent className="!w-full !max-w-[730px]">
+ <DialogHeader>
+ <DialogTitle>New relationship</DialogTitle>
+ </DialogHeader>
+ <form onSubmit={handleSubmit} className="space-y-6">
+ <Tabs
+ defaultValue="one-way"
+ className="w-full"
+ onValueChange={(value) => setDirection(value as "one-way" | "two-way")}
+ >
+ <TabsList className="grid w-full grid-cols-2">
+ <TabsTrigger value="one-way" className="flex items-center justify-center gap-2">
+ <ArrowRight className="h-4 w-4" />
+ <span>One-way</span>
+ </TabsTrigger>
+ <TabsTrigger value="two-way" className="flex items-center justify-center gap-2">
+ <ArrowLeftRight className="h-4 w-4" />
+ <span>Two-way</span>
+ </TabsTrigger>
+ </TabsList>
+ <TabsContent value="one-way" className="mt-4">
+ <div className="flex items-center gap-2 p-4 border justify-between rounded-lg bg-background">
+ <div className="flex-col min-w-0 items-start">
+ <div className="text-xs font-medium mb-2">From</div>
+ <div className="flex flex-wrap gap-1">
+ {selectedNodes.slice(0, selectedNodes.length - 1).map((node) => (
+ <Badge key={node.id} variant="outline" className="max-w-full truncate">
+ {getNodeDisplayName(node)}
+ </Badge>
+ ))}
+ </div>
+ </div>
+ <div className="flex flex-col w-full items-center justify-center px-2">
+ <ArrowRight className="h-5 w-5 text-muted-foreground my-1" />
+ <Input
+ placeholder="IS_RELATED_TO"
+ className="w-2/3 mx-auto text-center text-sm"
+ value={relationType}
+ onChange={(e) => setRelationType(e.target.value)}
+ required
+ />
+ </div>
+ <div className="flex-col min-w-0 items-end">
+ <div className="text-xs font-medium mb-2">To</div>
+ <div className="flex flex-wrap gap-1">
+ {selectedNodes.slice(-1).map((node) => (
+ <Badge key={node.id} variant="outline" className="max-w-full truncate">
+ {getNodeDisplayName(node)}
+ </Badge>
+ ))}
+ </div>
+ </div>
+ </div>
+ </TabsContent>
+ <TabsContent value="two-way" className="mt-4">
+ <div className="flex items-center gap-2 p-4 border rounded-lg bg-background">
+ <div className="flex-1 min-w-0">
+ <div className="text-xs font-medium mb-2">Nodes</div>
+ <div className="flex flex-wrap gap-1">
+ {selectedNodes.map((node) => (
+ <Badge key={node.id} variant="outline" className="max-w-full truncate">
+ {getNodeDisplayName(node)}
+ </Badge>
+ ))}
+ </div>
+ </div>
+ <div className="flex flex-col items-center px-2">
+ <ArrowLeftRight className="h-5 w-5 text-muted-foreground my-1" />
+ <Input
+ placeholder="Type de relation"
+ className="w-32 text-center text-sm"
+ value={relationType}
+ onChange={(e) => setRelationType(e.target.value)}
+ required
+ />
+ </div>
+ </div>
+ </TabsContent>
+ </Tabs>
+ <DialogFooter>
+ <Button type="button" variant="outline" onClick={() => setOpenAddRelationDialog(false)}>
+ Cancel
+ </Button>
+ <Button type="submit" disabled={!relationType.trim()}>
+ Create
+ </Button>
+ </DialogFooter>
+ </form>
+ </DialogContent>
+ </Dialog>
+ )
+}
diff --git a/flowsint-app/src/components/graphs/details-panel.tsx b/flowsint-app/src/components/graphs/details-panel.tsx
new file mode 100644
index 00000000..20f52591
--- /dev/null
+++ b/flowsint-app/src/components/graphs/details-panel.tsx
@@ -0,0 +1,46 @@
+"use client"
+import { memo } from "react"
+import { cn } from "@/lib/utils"
+import { CopyButton } from "@/components/copy"
+import LaunchTransform from "./launch-transform"
+
+export default function DetailsPanel({ data }: { data: any }) {
+ return (
+ <div className="overflow-y-auto overflow-x-hidden h-full">
+ <div className="flex items-center sticky bg-card top-0 border-b justify-start px-4 py-2 gap-2 z-50">
+ <h1 className="text-md font-semibold truncate">{data?.label}</h1>
+ <div className="grow" />
+ <div className="flex items-center gap-2">
+ <LaunchTransform values={[data.label]} type={data?.type} />
+ </div>
+ </div>
+ <KeyValueDisplay data={data} />
+ </div>
+ )
+}
+
+interface KeyValueDisplayProps {
+ data: Record<string, any>
+ className?: string
+}
+
+function KeyValueDisplay({ data, className }: KeyValueDisplayProps) {
+ return (
+ <div className={cn("w-full border-collapse", className)}>
+ {data && Object.entries(data)
+ .filter(([key]) => !["sketch_id", "caption", "size", "color"].includes(key))
+ .map(([key, value], index) => {
+ const val = Array.isArray(value) ? `${value.length} items` : value?.toString() || null
+ const display = (typeof val === "string" && val.startsWith("https://")) ? <a href={val} className="underline text-primary" target="_blank">{val}</a> : val
+ return (
+ <div key={index} className="flex w-full bg-card items-center divide-x divide-border p-0 border-b border-border">
+ <div className="w-1/2 px-4 p-2 text-sm text-muted-foreground font-normal">{key}</div>
+ <div className="w-1/2 px-4 p-2 text-sm font-medium flex items-center justify-between"><div className="truncate font-semibold">{display || <span className="italic text-muted-foreground">N/A</span>}</div> <div>{display && <CopyButton className="h-6 w-6" content={val} />}</div></div>
+ </div>
+ )
+ })}
+ </div>
+ )
+}
+
+export const MemoizedKeyValueDisplay = memo(KeyValueDisplay)
\ No newline at end of file
diff --git a/flowsint-app/src/components/graphs/draggable-item.tsx b/flowsint-app/src/components/graphs/draggable-item.tsx
new file mode 100644
index 00000000..a8529398
--- /dev/null
+++ b/flowsint-app/src/components/graphs/draggable-item.tsx
@@ -0,0 +1,71 @@
+"use client"
+
+import type { LucideIcon } from "lucide-react"
+import { memo, useState } from "react"
+import { IconContainer } from "@/components/icon-container"
+import { useSketchStore } from "@/store/sketch-store"
+import { cn } from "@/lib/utils"
+
+interface DraggableItemProps {
+ label: string
+ icon: LucideIcon
+ type: string
+ color?: string
+ disabled?: boolean
+ description: string
+ itemKey: string
+}
+
+export const DraggableItem = memo(function DraggableItem({
+ label,
+ icon,
+ type,
+ color,
+ itemKey,
+ disabled = false,
+ description,
+}: DraggableItemProps) {
+ const handleOpenFormModal = useSketchStore((s) => s.handleOpenFormModal)
+ const [isDragging, setIsDragging] = useState(false)
+
+ const handleDragStart = (e: React.DragEvent<HTMLButtonElement>) => {
+ const itemData = JSON.stringify({ label, type, color, description, itemKey })
+ e.dataTransfer.setData("text/plain", itemData)
+ setIsDragging(true)
+ }
+
+ const handleDragEnd = () => {
+ setIsDragging(false)
+ }
+
+ const onClick = () => {
+ if (disabled) return
+ handleOpenFormModal(itemKey)
+ }
+
+ return (
+ <button
+ draggable={!disabled}
+ onClick={onClick}
+ onDragStart={handleDragStart}
+ onDragEnd={handleDragEnd}
+ className={cn(
+ "px-2 py-1 rounded-md relative overflow-hidden border-l-4 bg-card border hover:shadow-md transition-shadow w-full text-left",
+ {
+ "opacity-50": isDragging || disabled,
+ "cursor-not-allowed": disabled,
+ "cursor-grab": !disabled,
+ }
+ )}
+ style={{ borderLeftColor: color }}
+ >
+ <div className="flex justify-start items-center w-full gap-2">
+ <IconContainer icon={icon} color={color} type={type} />
+ <div className="space-y-1 truncate">
+ <h3 className="text-sm font-medium truncate">{label}</h3>
+ <p className="text-xs text-muted-foreground truncate">{description || label}</p>
+ </div>
+ </div>
+ </button>
+ )
+})
diff --git a/flowsint-app/src/components/graphs/graph-navigation.tsx b/flowsint-app/src/components/graphs/graph-navigation.tsx
new file mode 100644
index 00000000..e641c969
--- /dev/null
+++ b/flowsint-app/src/components/graphs/graph-navigation.tsx
@@ -0,0 +1,40 @@
+import { useSketchStore } from "@/store/sketch-store"
+import NodesPanel from "./nodes-panel"
+import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"
+import { UserPlus, Users } from "lucide-react"
+import { ItemsPanel } from "./items-panel"
+import DetailsPanel from "./details-panel"
+import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from "../ui/resizable"
+
+const GraphNavigation = () => {
+ const nodes = useSketchStore((s) => s.nodes)
+ const currentNode = useSketchStore((s) => s.currentNode)
+ return (
+ <div className="h-full w-full">
+ <Tabs defaultValue="entities" className="w-full h-full gap-0 border-b">
+ <TabsList className="w-full p-0 rounded-none my-0 border-b" >
+ <TabsTrigger value="entities"><Users className="h-3 w-3 opacity-60" /> Entities</TabsTrigger>
+ <TabsTrigger value="items"><UserPlus className="h-3 w-3 opacity-60" /> Items</TabsTrigger>
+ </TabsList>
+ <TabsContent value="entities" className="my-0">
+ <ResizablePanelGroup autoSaveId="conditional" direction="vertical">
+ {currentNode && (
+ <>
+ <ResizablePanel order={2} id="infos" defaultSize={30}>
+ <DetailsPanel data={currentNode.data} />
+ </ResizablePanel>
+ <ResizableHandle withHandle />
+ </>
+ )}
+ <ResizablePanel order={3} id="nodes" defaultSize={40}>
+ <NodesPanel nodes={nodes} />
+ </ResizablePanel>
+ </ResizablePanelGroup>
+ </TabsContent>
+ <TabsContent value="items"><ItemsPanel /></TabsContent>
+ </Tabs>
+ </div>
+ )
+}
+
+export default GraphNavigation
\ No newline at end of file
diff --git a/flowsint-app/src/components/graphs/graph-panel.tsx b/flowsint-app/src/components/graphs/graph-panel.tsx
new file mode 100644
index 00000000..b896098c
--- /dev/null
+++ b/flowsint-app/src/components/graphs/graph-panel.tsx
@@ -0,0 +1,102 @@
+import { sketchService } from '@/api/sketch-service'
+import { useQuery } from '@tanstack/react-query'
+import Graph from '../sketches/graph'
+import { useEffect, useRef, useState } from 'react'
+import type { EdgeData } from '@/types'
+import { useSketchStore } from '@/store/sketch-store'
+import LoadingSpinner from '../shared/loader'
+import SketchLayout from '../layout/sketch.layout'
+import { useParams } from '@tanstack/react-router'
+import { ArrowDownToLineIcon } from 'lucide-react'
+import { cn } from '@/lib/utils'
+import { CreateRelationDialog } from './create-relation'
+// Helper functions
+const randomIntFromInterval = (min: number, max: number): number => {
+ return Math.floor(Math.random() * (max - min + 1) + min)
+}
+
+const getRandDate = (): Date => {
+ return new Date(randomIntFromInterval(0, 10000000))
+}
+const GraphPanel = () => {
+ const { investigationId, id } = useParams({ from: "/_auth/dashboard/investigations/$investigationId/$type/$id" })
+ const [isDraggingOver, setIsDraggingOver] = useState(false)
+ const handleOpenFormModal = useSketchStore(s => s.handleOpenFormModal)
+ const graphPanelRef = useRef<HTMLDivElement>(null)
+
+ const handleDragOver = (e: React.DragEvent<HTMLDivElement>) => {
+ e.preventDefault()
+ setIsDraggingOver(true)
+ }
+
+ const handleDragEnter = (e: React.DragEvent<HTMLDivElement>) => {
+ e.preventDefault()
+ setIsDraggingOver(true)
+ }
+
+ const handleDragLeave = () => {
+ setIsDraggingOver(false)
+ }
+
+ const handleDrop = (e: React.DragEvent<HTMLDivElement>) => {
+ e.preventDefault()
+ setIsDraggingOver(false)
+ const data = e.dataTransfer.getData("text/plain")
+ if (data) {
+ try {
+ const parsedData = JSON.parse(data)
+ handleOpenFormModal(parsedData.itemKey)
+ } catch (error) {
+ return
+ }
+ }
+ }
+
+ const updateGraphData = useSketchStore(state => state.updateGraphData)
+ const { data, isLoading, error } = useQuery({
+ queryKey: [investigationId, 'sketches', id],
+ queryFn: () => {
+ return sketchService.getGraphDataById(id as string)
+ },
+ enabled: !!id,
+ })
+ useEffect(() => {
+ if (!data || isLoading) return
+
+ const processedEdges = data.rls ? data.rls.map((edge: EdgeData) => ({
+ ...edge,
+ source: edge.from,
+ target: edge.to,
+ id: `${edge.from}-${edge.to}`,
+ date: getRandDate()
+ })) : undefined
+
+ // Update both in a single operation
+ updateGraphData(data.nds, processedEdges)
+ }, [data, isLoading, updateGraphData])
+
+ if (isLoading) return <div className='h-full w-full flex items-center justify-center gap-2'><LoadingSpinner /> Loading sketch...</div>
+ if (error) return <div className='h-full w-full flex items-center justify-center gap-2'>Error: {(error as Error).message}</div>
+
+ return (
+ <SketchLayout>
+ <div
+ ref={graphPanelRef}
+ className={cn('h-full w-full relative outline-2 outline-transparent bg-background')} onDragOver={handleDragOver}
+ onDragEnter={handleDragEnter}
+ onDragLeave={handleDragLeave}
+ onDrop={handleDrop}
+ >
+ <Graph isLoading={isLoading} />
+ {isDraggingOver &&
+ <div className={cn('absolute flex items-center justify-center inset-0 bg-primary/5 backdrop-blur-xs gap-1')}>
+ <p className="font-medium">Drop here to add node</p> <ArrowDownToLineIcon className="opacity-60" />
+ </div>
+ }
+ </div>
+ <CreateRelationDialog />
+ </SketchLayout>
+ )
+}
+
+export default GraphPanel
\ No newline at end of file
diff --git a/flowsint-app/src/components/graphs/items-panel.tsx b/flowsint-app/src/components/graphs/items-panel.tsx
new file mode 100644
index 00000000..8fe1a5a5
--- /dev/null
+++ b/flowsint-app/src/components/graphs/items-panel.tsx
@@ -0,0 +1,96 @@
+"use client"
+
+import { Button } from "@/components/ui/button"
+import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "@/components/ui/accordion"
+import { PlusIcon, Search } from "lucide-react"
+import { memo, useCallback, useState } from "react"
+import { type ActionItem, actionItems } from "@/lib/action-items"
+import { DraggableItem } from "./draggable-item"
+import { Input } from "@/components/ui/input"
+import NewActions from "@/components/sketches/new-actions"
+
+export const ItemsPanel = memo(function LeftPanel() {
+ const [searchQuery, setSearchQuery] = useState<string>("")
+
+ const handleSearchChange = useCallback((e: React.ChangeEvent<HTMLInputElement>) => {
+ setSearchQuery(e.target.value)
+ }, [])
+
+ return (
+ <div className="grow w-full overflow-auto ">
+ <div className=" bg-card h-full flex flex-col w-full !p-0 !m-0">
+ <div className="p-4">
+ <div className="flex items-center gap-2 mb-3">
+ <div className="relative grow">
+ <Search className="absolute left-2.5 top-1.5 h-4 w-4 text-muted-foreground" />
+ <Input
+ type="search"
+ placeholder="Search type..."
+ className="pl-8 h-7"
+ value={searchQuery}
+ onChange={handleSearchChange}
+ />
+ </div>
+ <div>
+ <NewActions>
+ <Button
+ className="h-7 !w-7 bg-gradient-to-r from-primary to-primary/80 hover:from-primary/90 hover:to-primary transition-all duration-300 text-white border-none"
+ size="icon"
+ variant={"ghost"}
+ >
+ <PlusIcon />
+ </Button>
+ </NewActions>
+ </div>
+ </div>
+ <div className="grid grid-cols-1 gap-2">
+ {actionItems.map((item: ActionItem) => {
+ if (item.children && item.children.length > 0) {
+ return (
+ <Accordion key={item.id} type="single" defaultValue={item.id.toString()} collapsible className="border-b border-border">
+ <AccordionItem value={item.id.toString()}>
+ <AccordionTrigger className="py-1 text-sm">
+ <div className="flex items-center gap-2">
+ <span>{item.label}</span>
+ {item.comingSoon && <span className="ml-1 text-xs text-muted-foreground">(Soon)</span>}
+ </div>
+ </AccordionTrigger>
+ <AccordionContent>
+ <div className="grid grid-cols-1 gap-2 p-2">
+ {item.children.map((childItem) => (
+ <DraggableItem
+ key={childItem.id}
+ itemKey={childItem.key}
+ label={childItem.label}
+ icon={childItem.icon}
+ type={childItem.type}
+ color={childItem.color}
+ disabled={childItem.disabled}
+ description={childItem.fields.map((n) => n.name).join(", ")}
+ />
+ ))}
+ </div>
+ </AccordionContent>
+ </AccordionItem>
+ </Accordion>
+ )
+ }
+ return (
+ <DraggableItem
+ key={item.id}
+ label={item.label}
+ itemKey={item.key}
+ icon={item.icon}
+ type={item.type}
+ color={item.color}
+ disabled={item.disabled}
+ description={item.fields.map((n) => n.name).join(", ")}
+ />
+ )
+ })}
+ </div>
+ </div>
+ </div>
+ </div>
+ )
+})
diff --git a/flowsint-app/src/components/graphs/launch-transform.tsx b/flowsint-app/src/components/graphs/launch-transform.tsx
new file mode 100644
index 00000000..ad522f5b
--- /dev/null
+++ b/flowsint-app/src/components/graphs/launch-transform.tsx
@@ -0,0 +1,134 @@
+"use client"
+
+import { useState } from "react"
+import { Button } from "@/components/ui/button"
+import { Sparkles } from "lucide-react"
+import {
+ Sheet,
+ SheetContent,
+ SheetHeader,
+ SheetTitle,
+ SheetDescription,
+ SheetFooter,
+} from "@/components/ui/sheet"
+import { Card, CardHeader, CardTitle, CardDescription } from "@/components/ui/card"
+import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group"
+import { Label } from "@/components/ui/label"
+import { useLaunchTransform } from "@/hooks/use-launch-transform"
+import { formatDistanceToNow } from "date-fns"
+import { useQuery } from "@tanstack/react-query"
+import { transformService } from "@/api/transfrom-service"
+import { useParams } from "@tanstack/react-router"
+
+interface Transform {
+ id: string
+ name: string
+ description: string
+ category: string
+ created_at: string
+ last_updated_at: string
+}
+
+const LaunchTransform = ({ values, type }: { values: string[], type: string }) => {
+ const { launchTransform } = useLaunchTransform()
+ const { id: sketch_id } = useParams({ strict: false })
+ const [isOpen, setIsOpen] = useState(false)
+ const [selectedTransform, setSelectedTransform] = useState<Transform | null>(null)
+
+ const { data: transforms, isLoading } = useQuery({
+ queryKey: ["dashboard", "transforms", type],
+ queryFn: () => transformService.get(type),
+ refetchOnWindowFocus: true,
+ })
+
+
+ const handleOpenModal = () => {
+ setIsOpen(true)
+ }
+
+ const handleCloseModal = () => {
+ setIsOpen(false)
+ }
+
+ const handleSelectTransform = (transform: Transform) => {
+ setSelectedTransform(transform)
+ }
+
+ const handleLaunchTransform = () => {
+ if (selectedTransform) {
+ launchTransform(values, selectedTransform.id, sketch_id)
+ handleCloseModal()
+ }
+ }
+
+ return (
+ <div>
+ <Button
+ onClick={handleOpenModal}
+ disabled={isLoading || !transforms?.length}
+ className="relative min-w-[80px] h-8 overflow-hidden truncate bg-gradient-to-r from-primary to-primary/80 hover:from-primary/90 hover:to-primary transition-all duration-300 px-4 py-2 text-white border-none font-medium rounded-full"
+ >
+ <span className="flex items-center gap-2">
+ <Sparkles className={"h-4 w-4 transition-transform duration-300"} />
+ <span>Search</span>
+ </span>
+ </Button>
+
+ <Sheet open={isOpen} onOpenChange={setIsOpen}>
+ <SheetContent className="sm:max-w-xl">
+ <SheetHeader>
+ <SheetTitle>Select a Transform</SheetTitle>
+ <SheetDescription>Choose a transform to launch from the list below.</SheetDescription>
+ </SheetHeader>
+
+ <div className="p-4 grow overflow-auto">
+ <RadioGroup value={selectedTransform?.id} className="space-y-3">
+ {transforms?.map((transform: Transform) => (
+ <Card
+ key={transform.id}
+ className={`cursor-pointer border transition-all ${selectedTransform?.id === transform.id ? "border-primary bg-primary/5" : "hover:border-primary/50"}`}
+ onClick={() => handleSelectTransform(transform)}
+ >
+ <CardHeader className="p-4 pb-2">
+ <div className="flex items-start space-x-3">
+ <RadioGroupItem value={transform.id} id={transform.id} className="mt-1" />
+ <div className="flex-1">
+ <Label htmlFor={transform.id} className="cursor-pointer">
+ <CardTitle className="text-base">{transform.name}</CardTitle>
+ {transform.description && (
+ <CardDescription className="text-sm mt-1">
+ {transform.description || "No description available"}
+ </CardDescription>
+ )}
+ <div className="mt-2 mb-3 text-xs text-muted-foreground">
+ <div>Created: {formatDistanceToNow(transform.created_at, { addSuffix: true })}</div>
+ <div>Last updated: {formatDistanceToNow(transform.last_updated_at, { addSuffix: true })}</div>
+ </div>
+ </Label>
+ </div>
+ </div>
+ </CardHeader>
+ </Card>
+ ))}
+ </RadioGroup>
+ </div>
+
+ <SheetFooter>
+ <Button variant="outline" onClick={handleCloseModal} className="mr-2">
+ Cancel
+ </Button>
+ <Button
+ onClick={handleLaunchTransform}
+ disabled={!selectedTransform}
+ className="bg-gradient-to-r from-primary to-primary/80 hover:from-primary/90 hover:to-primary"
+ >
+ Launch transform
+ </Button>
+ </SheetFooter>
+ </SheetContent>
+ </Sheet>
+ </div>
+ )
+}
+
+export default LaunchTransform
diff --git a/flowsint-app/src/components/graphs/nodes-panel.tsx b/flowsint-app/src/components/graphs/nodes-panel.tsx
new file mode 100644
index 00000000..6160f1fb
--- /dev/null
+++ b/flowsint-app/src/components/graphs/nodes-panel.tsx
@@ -0,0 +1,360 @@
+"use client"
+
+import type React from "react"
+import { memo, useMemo, useState, useCallback, useRef } from "react"
+import { useVirtualizer } from '@tanstack/react-virtual'
+import { useSketchStore } from "@/store/sketch-store"
+import { Button } from "@/components/ui/button"
+import { Badge } from "@/components/ui/badge"
+import { TypeBadge } from "@/components/type-badge"
+import { Search, FilterIcon, XIcon } from "lucide-react"
+import { usePlatformIcons } from "@/hooks/use-platform-icons"
+import { Input } from "@/components/ui/input"
+import { actionItems } from "@/lib/action-items"
+import { cn } from "@/lib/utils"
+import {
+ DropdownMenu,
+ DropdownMenuContent,
+ DropdownMenuItem,
+ DropdownMenuLabel,
+ DropdownMenuSeparator,
+ DropdownMenuTrigger,
+} from "@/components/ui/dropdown-menu"
+import Loader from "@/components/loader"
+import type { NodeData } from "@/types"
+import { Checkbox } from "@/components/ui/checkbox"
+
+// Hauteur fixe pour chaque item (en pixels)
+const ITEM_HEIGHT = 40
+
+// Mémoiser le composant SocialNode
+const SocialNode = memo(
+ ({
+ node,
+ setCurrentNode,
+ onCheckboxChange,
+ isNodeChecked,
+ }: {
+ node: any
+ setCurrentNode: (node: NodeData) => void
+ onCheckboxChange: (node: NodeData, checked: boolean) => void
+ isNodeChecked: (nodeId: string) => boolean
+ }) => {
+ const platformsIcons = usePlatformIcons()
+ const platformIcon = useMemo(() => {
+ // @ts-ignore
+ return platformsIcons?.[node?.data?.platform]?.icon
+ }, [platformsIcons, node?.data?.platform])
+
+ const handleClick = useCallback(() => setCurrentNode(node), [node, setCurrentNode])
+
+ const handleCheckboxChange = useCallback(
+ (checked: boolean) => {
+ onCheckboxChange(node, checked)
+ },
+ [node, onCheckboxChange],
+ )
+
+ return (
+ <div className="flex items-center border-b h-full">
+ <div className="pl-2">
+ <Checkbox checked={isNodeChecked(node.id)} onCheckedChange={handleCheckboxChange} className="mr-1" />
+ </div>
+ <Button
+ variant={"ghost"}
+ className={cn(
+ "flex-1 flex items-center justify-start p-4 !py-5 rounded-none text-left border-l-2 border-l-transparent h-full",
+ )}
+ onClick={handleClick}
+ >
+ <Badge variant="secondary" className="h-7 w-7 p-0 rounded-full">
+ {platformIcon}
+ </Badge>
+ <div className="grow truncate text-ellipsis">
+ {node?.data?.username || <span className="italic opacity-60">Unknown</span>}
+ </div>
+ <TypeBadge type={node?.data?.type as string} />
+ </Button>
+ </div>
+ )
+ },
+)
+
+// Mémoiser le composant NodeRenderer
+const NodeRenderer = memo(
+ ({
+ node,
+ setCurrentNode,
+ onCheckboxChange,
+ isNodeChecked,
+ }: {
+ node: any
+ setCurrentNode: (node: NodeData) => void
+ onCheckboxChange: (node: NodeData, checked: boolean) => void
+ isNodeChecked: (nodeId: string) => boolean
+ }) => {
+ const handleClick = useCallback(() => setCurrentNode(node), [node, setCurrentNode])
+ const handleCheckboxChange = useCallback(
+ (checked: boolean) => {
+ onCheckboxChange(node, checked)
+ },
+ [node, onCheckboxChange],
+ )
+
+ if (node.data?.type === "social") {
+ return (
+ <SocialNode
+ setCurrentNode={setCurrentNode}
+ node={node}
+ onCheckboxChange={onCheckboxChange}
+ isNodeChecked={isNodeChecked}
+ />
+ )
+ }
+
+ return (
+ <div className="flex items-center hover:bg-muted border-b h-full">
+ <div className="pl-2">
+ <Checkbox checked={isNodeChecked(node.id)} onCheckedChange={handleCheckboxChange} className="mr-1" />
+ </div>
+ <Button
+ variant={"ghost"}
+ className={cn(
+ "flex-1 flex truncate items-center justify-start p-4 !py-5 rounded-none text-left border-l-2 border-l-transparent h-full",
+ )}
+ onClick={handleClick}
+ >
+ <div className="grow truncate text-ellipsis">{node?.data?.label}</div>
+ <TypeBadge type={node?.data?.type} />
+ </Button>
+ </div>
+ )
+ },
+)
+
+// Composant pour un item virtualisé
+const VirtualizedItem = memo(({
+ node,
+ setCurrentNode,
+ onCheckboxChange,
+ isNodeChecked
+}: {
+ index: number
+ node: NodeData
+ setCurrentNode: (node: NodeData) => void
+ onCheckboxChange: (node: NodeData, checked: boolean) => void
+ isNodeChecked: (nodeId: string) => boolean
+}) => {
+ return (
+ <NodeRenderer
+ node={node}
+ setCurrentNode={setCurrentNode}
+ onCheckboxChange={onCheckboxChange}
+ isNodeChecked={isNodeChecked}
+ />
+ )
+})
+
+const NodesPanel = memo(({ nodes, isLoading }: { nodes: NodeData[]; isLoading?: boolean }) => {
+ const setCurrentNode = useSketchStore((state) => state.setCurrentNode)
+ const setSelectedNodes = useSketchStore((state) => state.setSelectedNodes)
+ const selectedNodes = useSketchStore((state) => state.selectedNodes || [])
+ const [searchQuery, setSearchQuery] = useState<string>("")
+ const [filters, setFilters] = useState<null | string[]>(null)
+
+ // Ref pour le conteneur parent du virtualizer
+ const parentRef = useRef<HTMLDivElement>(null)
+
+ const filteredNodes = useMemo(() => {
+ const searchText = searchQuery.toLowerCase()
+ return nodes?.filter((node) => {
+ const matchesSearch =
+ //@ts-ignore
+ node?.data?.label?.toLowerCase().includes(searchText) || node?.id?.toLowerCase().includes(searchText)
+
+ const matchesFilter = !filters || filters.includes(node?.data?.type as string)
+
+ return matchesSearch && matchesFilter
+ })
+ }, [nodes, searchQuery, filters])
+
+ // Configuration du virtualizer
+ const virtualizer = useVirtualizer({
+ count: filteredNodes?.length || 0,
+ getScrollElement: () => parentRef.current,
+ estimateSize: () => ITEM_HEIGHT,
+ overscan: 5, // Nombre d'éléments à pré-rendre en dehors de la zone visible
+ })
+
+ const toggleFilter = useCallback((filter: string | null) => {
+ if (filter === null) {
+ setFilters(null)
+ } else {
+ setFilters((prev) => {
+ if (prev === null) return [filter]
+ const next = prev.includes(filter) ? prev.filter((f) => f !== filter) : [...prev, filter]
+ return next.length === 0 ? null : next
+ })
+ }
+ }, [])
+
+ const handleSearchChange = useCallback((e: React.ChangeEvent<HTMLInputElement>) => {
+ setSearchQuery(e.target.value)
+ }, [])
+
+ const clearFilters = useCallback(() => {
+ setFilters(null)
+ }, [])
+
+ const isNodeChecked = useCallback(
+ (nodeId: string) => {
+ return selectedNodes.some((node) => node.id === nodeId)
+ },
+ [selectedNodes],
+ )
+
+ const handleCheckboxChange = useCallback(
+ (node: NodeData, checked: boolean) => {
+ if (checked) {
+ setSelectedNodes([...selectedNodes.filter((n) => n.id !== node.id), node])
+ } else {
+ setSelectedNodes(selectedNodes.filter((n) => n.id !== node.id))
+ }
+ },
+ [selectedNodes, setSelectedNodes],
+ )
+
+ return (
+ <div className="overflow-hidden bg-card h-full flex flex-col w-full !p-0 !m-0">
+ {/* Header fixe */}
+ <div className="sticky border-b top-0 p-2 bg-card z-10 flex-shrink-0">
+ <div className="flex items-center gap-2">
+ <Badge className="h-7" variant={"outline"}>
+ <span className="font-semibold">{nodes?.length || 0}</span>{" "}
+ <span className="font-normal opacity-60">nodes</span>
+ </Badge>
+ <div className="relative grow">
+ <Search className="absolute left-2.5 top-1.5 h-4 w-4 text-muted-foreground" />
+ <Input
+ type="search"
+ placeholder="Search..."
+ className="pl-8 h-7 border-border"
+ value={searchQuery}
+ onChange={handleSearchChange}
+ />
+ </div>
+ <DropdownMenu>
+ <div>
+ <DropdownMenuTrigger asChild>
+ <Button variant={"outline"} className="h-7 w-8 relative border-border border" size={"icon"}>
+ <FilterIcon className={cn("opacity-60 h-3 w-3", filters && "opacity-100")} />
+ {filters && (
+ <Badge className="absolute -top-2 -right-1 text-xs rounded-full h-4 w-4" variant={"default"}>
+ {filters.length}
+ </Badge>
+ )}
+ </Button>
+ </DropdownMenuTrigger>
+ </div>
+ <DropdownMenuContent className="w-48 max-h-[50vh] space-y-1 overflow-y-auto">
+ <DropdownMenuLabel>
+ {filters ? (
+ <Badge variant={"outline"} className="flex items-center gap-1 pr-1">
+ {filters?.length} filter(s)
+ <Button size={"icon"} variant={"ghost"} className="h-5 w-5 rounded-full" onClick={clearFilters}>
+ <XIcon className="h-3 w-3" />
+ </Button>
+ </Badge>
+ ) : (
+ "filters"
+ )}
+ </DropdownMenuLabel>
+ <DropdownMenuSeparator />
+ <DropdownMenuItem className={cn(filters == null && "bg-primary")} onClick={() => toggleFilter(null)}>
+ All
+ </DropdownMenuItem>
+ {actionItems.map((item) => (
+ <DropdownMenuItem
+ className={cn(filters?.includes(item?.type) && "bg-primary/30")}
+ key={item.id}
+ onClick={() => toggleFilter(item?.type)}
+ >
+ {item?.type || "unknown"}
+ </DropdownMenuItem>
+ ))}
+ </DropdownMenuContent>
+ </DropdownMenu>
+ </div>
+ </div>
+
+ {/* Contenu principal */}
+ <div className="flex-1 min-h-0">
+ {isLoading && (
+ <div className="text-sm p-4 text-center">
+ <Loader label="Loading..." />
+ </div>
+ )}
+
+ {!isLoading && filteredNodes?.length === 0 && searchQuery === "" && (
+ <div className="text-sm p-4 text-center">
+ <p className="border rounded-md border-dashed p-4 text-center">
+ Right click on the panel to add your first investigation item.
+ </p>
+ </div>
+ )}
+
+ {filteredNodes?.length === 0 && searchQuery && (
+ <div className="p-4 text-center text-muted-foreground">
+ No nodes match your search
+ </div>
+ )}
+
+ {/* Liste virtualisée */}
+ {!isLoading && filteredNodes && filteredNodes.length > 0 && (
+ <div
+ ref={parentRef}
+ className="h-full overflow-auto"
+ style={{
+ contain: 'strict',
+ }}
+ >
+ <div
+ style={{
+ height: `${virtualizer.getTotalSize()}px`,
+ width: '100%',
+ position: 'relative',
+ }}
+ >
+ {virtualizer.getVirtualItems().map((virtualItem) => {
+ const node = filteredNodes[virtualItem.index]
+ return (
+ <div
+ key={virtualItem.key}
+ style={{
+ position: 'absolute',
+ top: 0,
+ left: 0,
+ width: '100%',
+ height: `${virtualItem.size}px`,
+ transform: `translateY(${virtualItem.start}px)`,
+ }}
+ >
+ <VirtualizedItem
+ index={virtualItem.index}
+ node={node}
+ setCurrentNode={setCurrentNode}
+ onCheckboxChange={handleCheckboxChange}
+ isNodeChecked={isNodeChecked}
+ />
+ </div>
+ )
+ })}
+ </div>
+ </div>
+ )}
+ </div>
+ </div>
+ )
+})
+
+export default NodesPanel
\ No newline at end of file
diff --git a/flowsint-app/src/components/icon-container.tsx b/flowsint-app/src/components/icon-container.tsx
new file mode 100644
index 00000000..3daec235
--- /dev/null
+++ b/flowsint-app/src/components/icon-container.tsx
@@ -0,0 +1,39 @@
+import { useNodesDisplaySettings } from "@/store/node-display-settings"
+import type { LucideIcon } from "lucide-react"
+import { useMemo } from "react"
+
+// Helper function to convert hex to rgba
+const hexToRgba = (hex: string, alpha: number) => {
+ const r = Number.parseInt(hex.slice(1, 3), 16)
+ const g = Number.parseInt(hex.slice(3, 5), 16)
+ const b = Number.parseInt(hex.slice(5, 7), 16)
+ return `rgba(${r}, ${g}, ${b}, ${alpha})`
+}
+
+interface IconContainerProps {
+ type: string
+ icon: LucideIcon
+ size?: number
+ color?: string
+}
+
+export function IconContainer({ type, color, icon: Icon, size = 12 }: IconContainerProps) {
+ const containerSize = size + 16 // Make container slightly larger than icon
+ const col = color ? color : useNodesDisplaySettings((state) => state.colors[type as keyof typeof state.colors] || "#000000")
+ const bgColor = useMemo(() => hexToRgba(col, 0.3), [color])
+
+ return (
+ <div>
+ <div
+ style={{
+ border: `${size / 4}px solid ${bgColor}`,
+ width: `${containerSize}px`,
+ height: `${containerSize}px`,
+ }}
+ className="flex bg-card items-center justify-center rounded-full"
+ >
+ <Icon size={size} className="text-foreground" />
+ </div>
+ </div>
+ )
+}
\ No newline at end of file
diff --git a/flowsint-app/src/components/investigations/graph-panel.tsx b/flowsint-app/src/components/investigations/graph-panel.tsx
deleted file mode 100644
index ad8036d0..00000000
--- a/flowsint-app/src/components/investigations/graph-panel.tsx
+++ /dev/null
@@ -1,53 +0,0 @@
-import { sketchService } from '@/api/sketch-service'
-import { useQuery } from '@tanstack/react-query'
-import Graph from '../sketches/graph'
-import { useEffect } from 'react'
-import type { EdgeData } from '@/types'
-import { useSketchStore } from '@/store/sketch-store'
-import LoadingSpinner from '../shared/loader'
-import SketchLayout from '../layout/sketch.layout'
-import { useActiveTabId } from '@/hooks/active-tab-helper'
-// Helper functions
-const randomIntFromInterval = (min: number, max: number): number => {
- return Math.floor(Math.random() * (max - min + 1) + min)
-}
-
-const getRandDate = (): Date => {
- return new Date(randomIntFromInterval(0, 10000000))
-}
-const GraphPanel = () => {
- const activeTabId = useActiveTabId()
- const updateGraphData = useSketchStore(state => state.updateGraphData)
- const { data, isLoading, error } = useQuery({
- queryKey: ['sketches', activeTabId],
- queryFn: () => {
- return sketchService.getById(activeTabId as string)
- },
- enabled: !!activeTabId,
- })
- useEffect(() => {
- if (!data || isLoading) return
-
- const processedEdges = data.rls ? data.rls.map((edge: EdgeData) => ({
- ...edge,
- source: edge.from,
- target: edge.to,
- id: `${edge.from}-${edge.to}`,
- date: getRandDate()
- })) : undefined
-
- // Update both in a single operation
- updateGraphData(data.nds, processedEdges)
- }, [data, isLoading, updateGraphData])
-
- if (isLoading) return <div className='h-full w-full flex items-center justify-center gap-2'><LoadingSpinner /> Loading sketch...</div>
- if (error) return <div className='h-full w-full flex items-center justify-center gap-2'>Error: {(error as Error).message}</div>
-
- return (
- <SketchLayout>
- <Graph isLoading={isLoading} />
- </SketchLayout>
- )
-}
-
-export default GraphPanel
\ No newline at end of file
diff --git a/flowsint-app/src/components/investigations/graph-tabs.tsx b/flowsint-app/src/components/investigations/graph-tabs.tsx
deleted file mode 100644
index 15aa3474..00000000
--- a/flowsint-app/src/components/investigations/graph-tabs.tsx
+++ /dev/null
@@ -1,62 +0,0 @@
-"use client"
-
-import type React from "react"
-
-import { useTabEditorStore, type GraphTab } from "@/store/tab-editor-store"
-import { Waypoints, X } from "lucide-react"
-import { cn } from "@/lib/utils"
-import { Badge } from "../ui/badge"
-import { useActiveTabId, useSetActiveTab } from "@/hooks/active-tab-helper"
-
-export function GraphTabs() {
- const tabs = useTabEditorStore((s: any) => s.tabs)
- const activeTabId = useActiveTabId()
- const setActiveTab = useSetActiveTab()
- const closeTab = useTabEditorStore((s: any) => s.closeTab)
-
- const handleCloseTab = (e: React.MouseEvent, id: string) => {
- e.stopPropagation()
- closeTab(id)
- }
- return (
- <div className="flex bg-background w-full h-10 border-b overflow-x-auto">
- {tabs.map((tab: GraphTab) => (
- <TabButton
- key={tab.id}
- tab={tab}
- isActive={tab.id === activeTabId}
- onClick={() => setActiveTab(tab.id)}
- onClose={(e) => handleCloseTab(e, tab.id)}
- />
- ))}
- </div>
- )
-}
-
-interface TabButtonProps {
- tab: GraphTab
- isActive: boolean
- onClick: () => void
- onClose: (e: React.MouseEvent) => void
-}
-
-function TabButton({ tab, isActive, onClick, onClose }: TabButtonProps) {
- return (
- <div
- className={cn(
- "group flex items-center text-muted-foreground h-full px-3 text-sm border-b-2 border-b-transparent border-r cursor-pointer",
- isActive ? "border-b-primary text-foreground" : "hover:text-foreground",
- )}
- onClick={onClick}
- >
- <span className="truncate flex items-center gap-1 max-w-40">
- <Badge variant={"outline"} className="text-[.5rem] p-1 !py-.5 text-yellow-500 border-none"><Waypoints className="h-3 w-3" /> SKETCH</Badge>
- {tab.title}
- {tab.isDirty && " •"}
- </span>
- <button className="ml-2 opacity-50 group-hover:opacity-100 hover:bg-[#3c3c3c] rounded p-0.5" onClick={onClose}>
- <X size={14} />
- </button>
- </div>
- )
-}
diff --git a/flowsint-app/src/components/investigations/investigation-list.tsx b/flowsint-app/src/components/investigations/investigation-list.tsx
index 625196f8..06191f66 100644
--- a/flowsint-app/src/components/investigations/investigation-list.tsx
+++ b/flowsint-app/src/components/investigations/investigation-list.tsx
@@ -1,5 +1,3 @@
-"use client"
-
import { investigationService } from "@/api/investigation-service"
import type { Investigation } from "@/types/investigation"
import { useQuery } from "@tanstack/react-query"
@@ -13,15 +11,14 @@ import { cn } from "@/lib/utils"
import NewSketch from "../sketches/new-sketch"
import Loader from "../loader"
import { Badge } from "../ui/badge"
-import { useActiveTabId, useSetActiveTab } from "@/hooks/active-tab-helper"
+import { Link, useParams } from "@tanstack/react-router"
const InvestigationList = () => {
const { data, isLoading, error } = useQuery({
- queryKey: ["investigations"],
+ queryKey: ["investigations", "list"],
queryFn: investigationService.get,
})
- const activeTabId = useActiveTabId()
- const setActiveTab = useSetActiveTab()
+ const { id } = useParams({ strict: false })
if (error) return <div>Error: {(error as Error).message}</div>
@@ -35,7 +32,7 @@ const InvestigationList = () => {
</div>
{isLoading ? <div className="flex items-center"><Loader /> Loading...</div> :
<Accordion type="multiple" defaultValue={data?.map((d: Investigation) => d.id)} className="w-full rounded-none">
- {data?.map((investigation: Investigation) => (
+ {Array.isArray(data) && data?.map((investigation: Investigation) => (
<AccordionItem key={investigation.id} value={investigation.id.toString()}>
<AccordionTrigger className={cn("px-4 py-1 border-l-2 border-l-transparent text-left rounded-none hover:bg-muted/50")}>
<div className="font-medium">{investigation.name}</div>
@@ -44,15 +41,14 @@ const InvestigationList = () => {
{investigation.sketches && investigation.sketches.length > 0 ? (
<ul className="py-2 border-l">
{investigation.sketches.map((sketch: Sketch) => (
- <li key={sketch.id} className={cn("pr-2 pl-6 text-muted-foreground hover:text-foreground hover:bg-muted/50 border-l-2 border-l-transparent", activeTabId === sketch.id && "border-l-primary bg-muted text-foreground")}>
- <button
- onClick={() => {
- setActiveTab(sketch.id)
- }}
+ <li key={sketch.id} className={cn("pr-2 pl-6 text-muted-foreground hover:text-foreground hover:bg-muted/50 border-l-2 border-l-transparent", id === sketch.id && "border-l-primary bg-muted text-foreground")}>
+ <Link
+ to="/dashboard/investigations/$investigationId/$type/$id"
+ params={{ investigationId: investigation.id, type: "graph", id: sketch.id }}
className="text-left flex items-center gap-2 w-full py-1 h-full"
>
<Badge variant={"outline"} className="text-[.5rem] p-1 !py-.5 text-yellow-500 border-none"><Waypoints className="h-3 w-3" /> SKETCH</Badge> {sketch.title}
- </button>
+ </Link>
</li>
))}
</ul>
diff --git a/flowsint-app/src/components/investigations/new-investigation.tsx b/flowsint-app/src/components/investigations/new-investigation.tsx
index 6edfb27e..14938b32 100644
--- a/flowsint-app/src/components/investigations/new-investigation.tsx
+++ b/flowsint-app/src/components/investigations/new-investigation.tsx
@@ -1,8 +1,10 @@
"use client"
import type React from "react"
-
import { useState } from "react"
+import { useForm } from "react-hook-form"
+import { zodResolver } from "@hookform/resolvers/zod"
+import * as z from "zod"
import { investigationService } from "@/api/investigation-service"
import { Button } from "@/components/ui/button"
import {
@@ -15,39 +17,140 @@ import {
} from "@/components/ui/dialog"
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "@/components/ui/dropdown-menu"
import { Input } from "@/components/ui/input"
-import { Label } from "@/components/ui/label"
-import { useFormStatus } from "react-dom"
+import {
+ Form,
+ FormControl,
+ FormField,
+ FormItem,
+ FormLabel,
+ FormMessage,
+} from "@/components/ui/form"
import { toast } from "sonner"
import { useRouter } from "@tanstack/react-router"
import { DialogTrigger } from "@radix-ui/react-dialog"
-function SubmitButton() {
- const { pending } = useFormStatus()
+// Schema de validation Zod
+const investigationSchema = z.object({
+ name: z.string()
+ .min(1, "Investigation name is required")
+ .min(3, "Investigation name must be at least 3 characters")
+ .max(100, "Investigation name must be less than 100 characters"),
+ description: z.string()
+ .max(500, "Description must be less than 500 characters")
+ .optional()
+})
- return (
- <Button type="submit" disabled={pending}>
- {pending ? "Saving..." : "Save"}
- </Button>
- )
+type InvestigationFormData = z.infer<typeof investigationSchema>
+
+interface NewInvestigationProps {
+ children: React.ReactNode
+ noDropDown?: boolean
}
-export default function NewInvestigation({ children, noDropDown }: { children: React.ReactNode, noDropDown?: boolean }) {
+export default function NewInvestigation({ children, noDropDown }: NewInvestigationProps) {
const [open, setOpen] = useState(false)
const router = useRouter()
- async function handleNewInvestigation(formData: FormData) {
- const result = await investigationService.create(formData)
- if (result.success) {
- toast.success("New investigation created.")
- router.navigate({ to: `/dashboard/investigations/${result.id}` })
- setOpen(false)
- } else {
- toast.error(result.error)
+ const form = useForm<InvestigationFormData>({
+ resolver: zodResolver(investigationSchema),
+ defaultValues: {
+ name: "",
+ description: ""
+ }
+ })
+
+ const { handleSubmit, formState: { isSubmitting }, reset } = form
+
+ const onSubmit = async (data: InvestigationFormData) => {
+ try {
+ // Créer un FormData pour maintenir la compatibilité avec votre service
+ const formData = new FormData()
+ formData.append('name', data.name.trim())
+ formData.append('description', data.description?.trim() || '')
+
+ const result = await investigationService.create(formData)
+
+ if (result.success) {
+ toast.success("New investigation created.")
+ router.navigate({ to: `/dashboard/investigations/${result.id}` })
+ handleClose()
+ } else {
+ toast.error(result.error || "Failed to create investigation")
+ }
+ } catch (error) {
+ console.error('Error creating investigation:', error)
+ toast.error("An unexpected error occurred")
}
}
- if (noDropDown) return (
- <>
+ const handleClose = () => {
+ setOpen(false)
+ reset() // Reset du formulaire avec React Hook Form
+ }
+
+ const InvestigationForm = () => (
+ <Form {...form}>
+ <form onSubmit={handleSubmit(onSubmit)} className="space-y-4">
+ <div className="grid gap-4 py-4">
+ <FormField
+ control={form.control}
+ name="name"
+ render={({ field }) => (
+ <FormItem>
+ <FormLabel>Investigation name</FormLabel>
+ <FormControl>
+ <Input
+ placeholder="Suspicion de fraude"
+ disabled={isSubmitting}
+ {...field}
+ />
+ </FormControl>
+ <FormMessage />
+ </FormItem>
+ )}
+ />
+
+ <FormField
+ control={form.control}
+ name="description"
+ render={({ field }) => (
+ <FormItem>
+ <FormLabel>Description</FormLabel>
+ <FormControl>
+ <Input
+ placeholder="Investigation sur une campagne de phishing via LinkedIn."
+ disabled={isSubmitting}
+ {...field}
+ />
+ </FormControl>
+ <FormMessage />
+ </FormItem>
+ )}
+ />
+ </div>
+
+ <DialogFooter>
+ <Button
+ type="button"
+ variant="outline"
+ onClick={handleClose}
+ disabled={isSubmitting}
+ >
+ Cancel
+ </Button>
+ <Button
+ type="submit"
+ disabled={isSubmitting}
+ >
+ {isSubmitting ? "Creating..." : "Create Investigation"}
+ </Button>
+ </DialogFooter>
+ </form>
+ </Form>
+ )
+
+ if (noDropDown) {
+ return (
<Dialog open={open} onOpenChange={setOpen}>
<DialogTrigger asChild>{children}</DialogTrigger>
<DialogContent className="sm:max-w-[425px]">
@@ -55,32 +158,12 @@ export default function NewInvestigation({ children, noDropDown }: { children: R
<DialogTitle>New investigation</DialogTitle>
<DialogDescription>Create a new blank investigation.</DialogDescription>
</DialogHeader>
- <form action={handleNewInvestigation}>
- <div className="grid gap-4 py-4">
- <div className="grid gap-2">
- <Label htmlFor="name">investigation name</Label>
- <Input id="name" name="name" placeholder="Suspicion de fraude" required />
- </div>
- <div className="grid gap-2">
- <Label htmlFor="description">Description</Label>
- <Input
- id="description"
- name="description"
- placeholder="Investigation sur une campagne de phishing via LinkedIn."
- />
- </div>
- </div>
- <DialogFooter>
- <Button type="button" variant="outline" onClick={() => setOpen(false)}>
- Cancel
- </Button>
- <SubmitButton />
- </DialogFooter>
- </form>
+ <InvestigationForm />
</DialogContent>
</Dialog>
- </>
- )
+ )
+ }
+
return (
<>
<DropdownMenu>
@@ -98,31 +181,9 @@ export default function NewInvestigation({ children, noDropDown }: { children: R
<DialogTitle>New investigation</DialogTitle>
<DialogDescription>Create a new blank investigation.</DialogDescription>
</DialogHeader>
- <form action={handleNewInvestigation}>
- <div className="grid gap-4 py-4">
- <div className="grid gap-2">
- <Label htmlFor="name">investigation name</Label>
- <Input id="name" name="name" placeholder="Suspicion de fraude" required />
- </div>
- <div className="grid gap-2">
- <Label htmlFor="description">Description</Label>
- <Input
- id="description"
- name="description"
- placeholder="Investigation sur une campagne de phishing via LinkedIn."
- />
- </div>
- </div>
- <DialogFooter>
- <Button type="button" variant="outline" onClick={() => setOpen(false)}>
- Cancel
- </Button>
- <SubmitButton />
- </DialogFooter>
- </form>
+ <InvestigationForm />
</DialogContent>
</Dialog>
</>
)
}
-
diff --git a/flowsint-app/src/components/layout/investigations.layout.tsx b/flowsint-app/src/components/layout/investigations.layout.tsx
deleted file mode 100644
index 116f3c00..00000000
--- a/flowsint-app/src/components/layout/investigations.layout.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-import { type ReactNode } from "react"
-import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from "@/components/ui/resizable"
-import InvestigationList from "../investigations/investigation-list"
-
-interface LayoutProps {
- children: ReactNode
-}
-
-export default function InvestigationsLayout({ children }: LayoutProps) {
-
- return (
- <ResizablePanelGroup direction="horizontal" className="flex-1">
- <ResizablePanel defaultSize={18} minSize={15} maxSize={40}>
- <InvestigationList />
- </ResizablePanel>
- <ResizableHandle />
- <ResizablePanel defaultSize={75}>
- {children}
- </ResizablePanel>
- </ResizablePanelGroup>
- )
-}
\ No newline at end of file
diff --git a/flowsint-app/src/components/layout/root.layout.tsx b/flowsint-app/src/components/layout/root.layout.tsx
index 75e974d3..b51c9fa5 100644
--- a/flowsint-app/src/components/layout/root.layout.tsx
+++ b/flowsint-app/src/components/layout/root.layout.tsx
@@ -2,6 +2,9 @@ import { type ReactNode } from "react"
import { Sidebar } from "./sidebar"
import { TopNavbar } from "./top-navbar"
import { StatusBar } from "./status-bar"
+import { ResizablePanelGroup, ResizablePanel, ResizableHandle } from "../ui/resizable"
+import { GraphTabs } from "./tabs"
+import SecondaryNavigation from "./secondary-navigation"
interface LayoutProps {
children: ReactNode
@@ -14,9 +17,16 @@ export default function RootLayout({ children }: LayoutProps) {
<TopNavbar />
<div className="flex grow overflow-hidden">
<Sidebar />
- <div className="flex bg-background flex-col w-full h-full grow">
- {children}
- </div>
+ <ResizablePanelGroup direction="horizontal" className="flex-1 h-full">
+ <ResizablePanel defaultSize={18} minSize={15} maxSize={40} className="h-full">
+ <SecondaryNavigation />
+ </ResizablePanel>
+ <ResizableHandle />
+ <ResizablePanel defaultSize={75}>
+ <GraphTabs />
+ {children}
+ </ResizablePanel>
+ </ResizablePanelGroup>
</div>
<div>
<StatusBar />
diff --git a/flowsint-app/src/components/layout/secondary-navigation.tsx b/flowsint-app/src/components/layout/secondary-navigation.tsx
new file mode 100644
index 00000000..df8e078f
--- /dev/null
+++ b/flowsint-app/src/components/layout/secondary-navigation.tsx
@@ -0,0 +1,44 @@
+import { useLocation, useParams } from "@tanstack/react-router"
+import InvestigationList from "../investigations/investigation-list"
+import GraphNavigation from "../graphs/graph-navigation"
+import TransformNavigation from "../transforms/transform-navigation"
+
+const SecondaryNavigation = () => {
+
+ const { id, investigationId, type } = useParams({ strict: false })
+ const { pathname } = useLocation()
+
+ if (!investigationId && !id && !pathname.startsWith("/dashboard/transforms")) {
+ return (
+ <InvestigationList />
+ )
+ }
+ if (investigationId && !id) {
+ return (
+ <div>
+ This will show the sketches + walls
+ </div>
+ )
+ }
+ if (investigationId && id && type === "graph") {
+ return (
+ <GraphNavigation />
+ )
+ }
+
+ if (investigationId && id && type === "wall") {
+ return (
+ <div>
+ (WALL) THis will show: entities, items
+ </div>
+ )
+ }
+ if (pathname.startsWith("/dashboard/transforms")) {
+ return <TransformNavigation />
+ }
+ return (
+ <div>secondary-navigation</div>
+ )
+}
+
+export default SecondaryNavigation
\ No newline at end of file
diff --git a/flowsint-app/src/components/layout/tabs.tsx b/flowsint-app/src/components/layout/tabs.tsx
new file mode 100644
index 00000000..869a6034
--- /dev/null
+++ b/flowsint-app/src/components/layout/tabs.tsx
@@ -0,0 +1,53 @@
+import { Link, useParams } from '@tanstack/react-router'
+import { useTabEditorStore } from "@/store/tab-editor-store"
+import { Waypoints, X } from "lucide-react"
+import { Badge } from "../ui/badge"
+import { cn } from "@/lib/utils"
+
+export function GraphTabs() {
+ const tabs = useTabEditorStore((s) => s.tabs)
+ const closeTab = useTabEditorStore((s) => s.closeTab)
+ const { id, type, investigationId } = useParams({ strict: false })
+
+ return (
+ <div className="flex bg-background w-full h-10 border-b overflow-x-auto">
+ {tabs.map((tab) => (
+ <Link
+ key={`${tab.investigationId}-${tab.type}-${tab.id}`}
+ to="/dashboard/investigations/$investigationId/$type/$id"
+ params={{
+ investigationId: tab.investigationId,
+ type: tab.type,
+ id: tab.id,
+ }}
+ className={cn(
+ "group flex items-center text-muted-foreground h-full px-3 text-sm border-b-2 border-b-transparent border-r cursor-pointer",
+ id === tab.id &&
+ type === tab.type &&
+ investigationId === tab.investigationId &&
+ "border-b-primary text-foreground",
+ id !== tab.id && "hover:text-foreground"
+ )}
+ >
+ <span className="truncate flex items-center gap-1 max-w-40">
+ <Badge variant="outline" className="text-[.5rem] p-1 !py-.5 text-yellow-500 border-none">
+ <Waypoints className="h-3 w-3" />
+ </Badge>
+ {tab.title}
+ {tab.isDirty && " •"}
+ </span>
+ <button
+ className="ml-2 opacity-50 group-hover:opacity-100 hover:bg-[#3c3c3c] rounded p-0.5"
+ onClick={(e) => {
+ e.preventDefault()
+ e.stopPropagation()
+ closeTab(tab.id)
+ }}
+ >
+ <X size={14} />
+ </button>
+ </Link>
+ ))}
+ </div>
+ )
+}
diff --git a/flowsint-app/src/components/layout/transforms.layout.tsx b/flowsint-app/src/components/layout/transforms.layout.tsx
deleted file mode 100644
index 9c6bd01c..00000000
--- a/flowsint-app/src/components/layout/transforms.layout.tsx
+++ /dev/null
@@ -1,97 +0,0 @@
-import { useMemo, useState, type ReactNode } from "react"
-import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from "@/components/ui/resizable"
-import { Search, X } from "lucide-react"
-import { categoryColors } from "../transforms/scanner-data"
-import ScannerItem, { type Scanner } from "../transforms/scanner-item"
-import { Input } from "../ui/input"
-import type { NodesData } from "@/types"
-import { Button } from "../ui/button"
-
-interface LayoutProps {
- children: ReactNode
- nodesData: NodesData
- transforms: any
- transform: any
-}
-
-export default function TransformLayout({ children, nodesData, transforms, transform }: LayoutProps) {
- const [searchTerm, setSearchTerm] = useState<string>("")
-
- const filteredScanners = useMemo(() => {
- const result: Record<string, Scanner[]> = {}
- if (!searchTerm.trim()) {
- return nodesData.items
- }
- const term = searchTerm.toLowerCase()
-
- Object.entries(nodesData.items).forEach(([category, items]) => {
- // @ts-ignore
- const filtered = items.filter(
- (item: any) =>
- item.name.toLowerCase().includes(term) ||
- item.class_name.toLowerCase().includes(term) ||
- (item.doc && item.doc.toLowerCase().includes(term)),
- )
-
- if (filtered.length > 0) {
- result[category] = filtered
- }
- })
-
- return result
- }, [searchTerm])
- return (
- <ResizablePanelGroup direction="horizontal" className="flex-1">
- <ResizablePanel defaultSize={25} minSize={15} maxSize={40}>
- <div className="h-full bg-card p-4 overflow-y-auto">
- <div className="relative mb-4">
- <Search className="absolute left-2 top-2.5 h-4 w-4 text-muted-foreground" />
- <Input
- type="text"
- placeholder="Search scanners..."
- className="pl-8"
- value={searchTerm}
- onChange={(e) => setSearchTerm(e.target.value)}
- />
- {searchTerm && (
- <Button
- variant="ghost"
- size="icon"
- className="absolute right-1 top-1.5 h-6 w-6"
- onClick={() => setSearchTerm("")}
- >
- <X className="h-4 w-4" />
- </Button>
- )}
- </div>
- <div className="space-y-4">
- {Object.entries(filteredScanners).map(([category, scanners]) => (
- <div key={category} className="space-y-2">
- <h3 className="text-sm font-medium capitalize pb-1">{category.replace("_", " ")}</h3>
- <div className="space-y-2">
- {scanners.map((scanner: Scanner) => (
- <ScannerItem
- key={scanner.name}
- scanner={scanner}
- category={category}
- color={categoryColors[category] || categoryColors[scanner.type] || "#94a3b8"}
- />
- ))}
- </div>
- </div>
- ))}
- {Object.keys(filteredScanners).length === 0 && (
- <div className="text-center py-4 text-muted-foreground">
- No scanners found matching "{searchTerm}"
- </div>
- )}
- </div>
- </div>
- </ResizablePanel>
- <ResizableHandle />
- <ResizablePanel defaultSize={75}>
- {children}
- </ResizablePanel>
- </ResizablePanelGroup>
- )
-}
\ No newline at end of file
diff --git a/flowsint-app/src/components/sketches/graph.tsx b/flowsint-app/src/components/sketches/graph.tsx
index cc49edf3..6d111ef2 100644
--- a/flowsint-app/src/components/sketches/graph.tsx
+++ b/flowsint-app/src/components/sketches/graph.tsx
@@ -1,5 +1,5 @@
import { useCallback, useEffect } from "react"
-import { Cosmograph, CosmographProvider, useCosmograph } from '@cosmograph/react'
+import { Cosmograph, CosmographProvider, CosmographTimeline, useCosmograph } from '@cosmograph/react'
import { useSketchStore } from "@/store/sketch-store"
import { useNodesDisplaySettings } from "@/store/node-display-settings"
import Loader from "@/components/shared/loader"
@@ -9,6 +9,7 @@ import { PlusIcon } from "lucide-react"
import { useGraphControls } from "@/store/graph-controls-store"
// @ts-ignore
import { type CosmosInputNode } from "@cosmograph/cosmos"
+import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from "../ui/resizable"
interface GraphProps {
isLoading: boolean
@@ -73,8 +74,8 @@ const GraphContent = () => {
<Cosmograph
simulationCenter={.05}
simulationDecay={100}
- simulationRepulsion={210}
- simulationLinkDistance={10}
+ simulationRepulsion={50}
+ simulationLinkDistance={1}
onLabelClick={onLabelClick}
onClick={onNodeClick}
// disableSimulation={true}
@@ -111,7 +112,22 @@ const Graph: React.FC<GraphProps> = ({ isLoading }) => {
return (
<div className="relative h-full w-full flex flex-col bg-background">
<CosmographProvider nodes={nodes} links={edges}>
- <GraphContent />
+ <ResizablePanelGroup direction="vertical" className="h-full">
+ {/* Panneau principal pour le graphique */}
+ <ResizablePanel defaultSize={75} minSize={30}>
+ <GraphContent />
+ </ResizablePanel>
+ <ResizableHandle />
+ <ResizablePanel defaultSize={10} minSize={7}>
+ <CosmographTimeline
+ // @ts-ignore
+ accessor={d => d.date}
+ animationSpeed={20}
+ showAnimationControls
+ onAnimationPlay={() => console.log('Animation started')}
+ />
+ </ResizablePanel>
+ </ResizablePanelGroup>
</CosmographProvider>
</div>
)
diff --git a/flowsint-app/src/components/sketches/new-actions.tsx b/flowsint-app/src/components/sketches/new-actions.tsx
index cb59e0d4..502594d2 100644
--- a/flowsint-app/src/components/sketches/new-actions.tsx
+++ b/flowsint-app/src/components/sketches/new-actions.tsx
@@ -16,7 +16,7 @@ import { useNodesDisplaySettings } from "@/store/node-display-settings"
import { useSketchStore } from "@/store/sketch-store"
import { DialogTrigger } from "@radix-ui/react-dialog"
import { sketchService } from "@/api/sketch-service"
-import { useSearch } from "@tanstack/react-router"
+import { useParams } from "@tanstack/react-router"
interface ActionDialogProps {
children: React.ReactNode
@@ -32,7 +32,7 @@ export default function ActionDialog({ children, setCurrentNode }: ActionDialogP
const openFormDialog = useSketchStore(state => state.openFormDialog)
const setOpenFormDialog = useSketchStore(state => state.setOpenFormDialog)
const addNode = useSketchStore(state => state.addNode)
- const { graph: activeTabId } = useSearch({ from: "/_auth/dashboard/investigations/$investigationId" })
+ const { id } = useParams({ strict: false })
const [currentParent, setCurrentParent] = useState<ActionItem | null>(null)
@@ -40,7 +40,7 @@ export default function ActionDialog({ children, setCurrentNode }: ActionDialogP
const handleAddNode = async (data: any) => {
try {
- if (!currentNodeType || !activeTabId) {
+ if (!currentNodeType || !id) {
toast.error("Invalid node type or sketch ID.")
return
}
@@ -62,7 +62,7 @@ export default function ActionDialog({ children, setCurrentNode }: ActionDialogP
if (addNode) addNode(newNode as any)
setOpenFormDialog(false)
toast.success("New node added.")
- await sketchService.addNode(activeTabId, JSON.stringify(newNode))
+ await sketchService.addNode(id, JSON.stringify(newNode))
if (setCurrentNode) setCurrentNode(newNode)
} catch (error) {
toast.error("Unexpected error during node creation.")
diff --git a/flowsint-app/src/components/sketches/toolbar.tsx b/flowsint-app/src/components/sketches/toolbar.tsx
index 47609915..c4c04cf7 100644
--- a/flowsint-app/src/components/sketches/toolbar.tsx
+++ b/flowsint-app/src/components/sketches/toolbar.tsx
@@ -28,7 +28,6 @@ import {
import { memo, useCallback } from "react"
import { toast } from "sonner"
import { Separator } from "../ui/separator"
-import { useActiveTabId } from "@/hooks/active-tab-helper"
// Tooltip wrapper component to avoid repetition
const ToolbarButton = memo(function ToolbarButton({
@@ -60,7 +59,7 @@ const ToolbarButton = memo(function ToolbarButton({
)
})
export const Toolbar = memo(function Toolbar() {
- const { investigationId } = useParams({ strict: false })
+ const { investigationId, id } = useParams({ strict: false })
const selectedNodes = useSketchStore((state) => state.selectedNodes || [])
const setOpenAddRelationDialog = useSketchStore((state) => state.setOpenAddRelationDialog)
const removeNodes = useSketchStore((state) => state.removeNodes)
@@ -69,12 +68,11 @@ export const Toolbar = memo(function Toolbar() {
const zoomIn = useGraphControls((s) => s.zoomIn);
const zoomOut = useGraphControls((s) => s.zoomOut);
const { confirm } = useConfirm()
- const activeTabId = useActiveTabId()
const { refetch, isRefetching } = useQuery({
- queryKey: ["investigations", 'sketches', activeTabId, "data"],
+ queryKey: ["investigations", 'sketches', id, "data"],
queryFn: async () => {
- const res = await fetch(`/api/investigations/${investigationId}/sketches/${activeTabId}/sketch`)
+ const res = await fetch(`/api/investigations/${investigationId}/sketches/${id}/sketch`)
if (!res.ok) {
toast.error("An error occured.")
}
diff --git a/flowsint-app/src/components/transforms/raw-material.tsx b/flowsint-app/src/components/transforms/raw-material.tsx
new file mode 100644
index 00000000..c2950276
--- /dev/null
+++ b/flowsint-app/src/components/transforms/raw-material.tsx
@@ -0,0 +1,93 @@
+import { useMemo, useState } from "react"
+import { Search, X } from "lucide-react"
+import { categoryColors } from "../transforms/scanner-data"
+import ScannerItem, { type Scanner } from "../transforms/scanner-item"
+import { Input } from "../ui/input"
+import { Button } from "../ui/button"
+import { transformService } from "@/api/transfrom-service"
+import { useQuery } from "@tanstack/react-query"
+
+
+export default function RawMaterial() {
+
+ const { data: materials, isLoading, error } = useQuery({
+ queryKey: ["investigations"],
+ queryFn: transformService.getRawMaterial,
+ })
+ const [searchTerm, setSearchTerm] = useState<string>("")
+
+ const filteredScanners = useMemo(() => {
+ if (!materials?.items) return {}
+ const result: Record<string, Scanner[]> = {}
+ if (!searchTerm.trim()) {
+ return materials?.items
+ }
+ const term = searchTerm.toLowerCase()
+
+ Object.entries(materials?.items).forEach(([category, items]) => {
+ // @ts-ignore
+ const filtered = items.filter(
+ (item: any) =>
+ item.name.toLowerCase().includes(term) ||
+ item.class_name.toLowerCase().includes(term) ||
+ (item.doc && item.doc.toLowerCase().includes(term)),
+ )
+ if (filtered.length > 0) {
+ result[category] = filtered
+ }
+ })
+
+ return result
+ }, [searchTerm, materials?.items])
+
+ if (error) return <div>error</div>
+
+ if (isLoading) return <div>loading</div>
+ return (
+ <div className="h-full bg-card p-4 overflow-y-auto">
+ <div className="relative mb-4">
+ <Search className="absolute left-2 top-2.5 h-4 w-4 text-muted-foreground" />
+ <Input
+ type="text"
+ placeholder="Search scanners..."
+ className="pl-8"
+ value={searchTerm}
+ onChange={(e) => setSearchTerm(e.target.value)}
+ />
+ {searchTerm && (
+ <Button
+ variant="ghost"
+ size="icon"
+ className="absolute right-1 top-1.5 h-6 w-6"
+ onClick={() => setSearchTerm("")}
+ >
+ <X className="h-4 w-4" />
+ </Button>
+ )}
+ </div>
+ <div className="space-y-4">
+ {Object.entries(filteredScanners).map(([category, scanners]) => (
+ <div key={category} className="space-y-2">
+ <h3 className="text-sm font-medium capitalize pb-1">{category.replace("_", " ")}</h3>
+ <div className="space-y-2">
+ {/* @ts-ignore */}
+ {scanners.map((scanner: Scanner) => (
+ <ScannerItem
+ key={scanner.name}
+ scanner={scanner}
+ category={category}
+ color={categoryColors[category] || categoryColors[scanner.type] || "#94a3b8"}
+ />
+ ))}
+ </div>
+ </div>
+ ))}
+ {Object.keys(filteredScanners).length === 0 && (
+ <div className="text-center py-4 text-muted-foreground">
+ No scanners found matching "{searchTerm}"
+ </div>
+ )}
+ </div>
+ </div>
+ )
+}
\ No newline at end of file
diff --git a/flowsint-app/src/components/transforms/transform-navigation.tsx b/flowsint-app/src/components/transforms/transform-navigation.tsx
new file mode 100644
index 00000000..bd0e30e6
--- /dev/null
+++ b/flowsint-app/src/components/transforms/transform-navigation.tsx
@@ -0,0 +1,25 @@
+import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"
+import { UserPlus, Users } from "lucide-react"
+import RawMaterial from "./raw-material"
+import TransformsList from "./transforms-list"
+
+const TransformNavigation = () => {
+ return (
+ <div className="h-full w-full">
+ <Tabs defaultValue="transforms" className="w-full h-full gap-0 border-b">
+ <TabsList className="w-full p-0 rounded-none my-0 border-b" >
+ <TabsTrigger value="transforms"><Users className="h-3 w-3 opacity-60" /> Transforms</TabsTrigger>
+ <TabsTrigger value="items"><UserPlus className="h-3 w-3 opacity-60" /> Items</TabsTrigger>
+ </TabsList>
+ <TabsContent value="transforms" className="my-0">
+ <TransformsList />
+ </TabsContent>
+ <TabsContent value="items">
+ <RawMaterial />
+ </TabsContent>
+ </Tabs>
+ </div>
+ )
+}
+
+export default TransformNavigation
\ No newline at end of file
diff --git a/flowsint-app/src/components/transforms/transforms-list.tsx b/flowsint-app/src/components/transforms/transforms-list.tsx
new file mode 100644
index 00000000..48ec31d8
--- /dev/null
+++ b/flowsint-app/src/components/transforms/transforms-list.tsx
@@ -0,0 +1,15 @@
+import { transformService } from "@/api/transfrom-service"
+import { useQuery } from "@tanstack/react-query"
+
+const TransformsList = () => {
+ const { data: transforms, isLoading } = useQuery({
+ queryKey: ["transforms"],
+ queryFn: () => transformService.get(),
+ })
+ if (isLoading) return <div>loading</div>
+ return (
+ <div className="h-full">{JSON.stringify(transforms)}</div>
+ )
+}
+
+export default TransformsList
\ No newline at end of file
diff --git a/flowsint-app/src/components/type-badge.tsx b/flowsint-app/src/components/type-badge.tsx
new file mode 100644
index 00000000..50a2b569
--- /dev/null
+++ b/flowsint-app/src/components/type-badge.tsx
@@ -0,0 +1,26 @@
+import { Badge } from "@/components/ui/badge"
+import { cn, hexToRgba } from "@/lib/utils"
+import { useNodesDisplaySettings } from "@/store/node-display-settings"
+import { memo } from "react"
+
+type TypeBadgeProps = {
+ type: string
+ className?: string
+}
+
+function TypeBadgeComponent({ type, className }: TypeBadgeProps) {
+ const { colors } = useNodesDisplaySettings()
+ const color = colors[type as keyof typeof colors] || "bg-gray-100 text-gray-800 hover:bg-gray-100/80 dark:bg-gray-800/50 dark:text-gray-300 dark:hover:bg-gray-800/60"
+
+ return (
+ <Badge
+ variant="outline"
+ style={{ backgroundColor: hexToRgba(color, 0.3) }}
+ className={cn("font-medium border-transparent", className)}
+ >
+ {type}
+ </Badge>
+ )
+}
+
+export const TypeBadge = memo(TypeBadgeComponent)
diff --git a/flowsint-app/src/components/ui/sonner.tsx b/flowsint-app/src/components/ui/sonner.tsx
index 33d2d2ad..b5c2405b 100644
--- a/flowsint-app/src/components/ui/sonner.tsx
+++ b/flowsint-app/src/components/ui/sonner.tsx
@@ -1,12 +1,9 @@
-import { useTheme } from "next-themes"
import { Toaster as Sonner, type ToasterProps } from "sonner"
const Toaster = ({ ...props }: ToasterProps) => {
- const { theme = "system" } = useTheme()
-
return (
<Sonner
- theme={theme as ToasterProps["theme"]}
+ theme={"dark" as ToasterProps["theme"]}
className="toaster group"
style={
{
diff --git a/flowsint-app/src/components/ui/tabs.tsx b/flowsint-app/src/components/ui/tabs.tsx
index 497ba5ea..251530ab 100644
--- a/flowsint-app/src/components/ui/tabs.tsx
+++ b/flowsint-app/src/components/ui/tabs.tsx
@@ -26,7 +26,7 @@ function TabsList({
<TabsPrimitive.List
data-slot="tabs-list"
className={cn(
- "bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",
+ "bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center",
className
)}
{...props}
@@ -42,7 +42,7 @@ function TabsTrigger({
<TabsPrimitive.Trigger
data-slot="tabs-trigger"
className={cn(
- "data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
+ "data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-card text-foreground dark:text-muted-foreground inline-flex h-full flex-1 items-center justify-center gap-1.5 px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
className
)}
{...props}
diff --git a/flowsint-app/src/hooks/active-tab-helper.ts b/flowsint-app/src/hooks/active-tab-helper.ts
deleted file mode 100644
index 3126bce6..00000000
--- a/flowsint-app/src/hooks/active-tab-helper.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-import { useTabEditorStore } from "@/store/tab-editor-store"
-import { useNavigate, useSearch } from "@tanstack/react-router"
-
-export function useSetActiveTab() {
- const navigate = useNavigate()
- const addTab = useTabEditorStore(s => s.addTab)
- return (id: string) => {
- addTab(id)
- navigate({
- //@ts-ignore
- search: (prev) => ({ ...prev, graph: id }),
- })
- }
-}
-
-export function useActiveTabId(): string | undefined {
- const { graph } = useSearch({ from: "/_auth/dashboard/investigations/$investigationId" }) // chemin de la route
- return graph
-}
diff --git a/flowsint-app/src/hooks/use-launch-transform.ts b/flowsint-app/src/hooks/use-launch-transform.ts
index f90ae2b3..db648f77 100644
--- a/flowsint-app/src/hooks/use-launch-transform.ts
+++ b/flowsint-app/src/hooks/use-launch-transform.ts
@@ -5,7 +5,8 @@ import { transformService } from "@/api/transfrom-service"
export function useLaunchTransform(askUser: boolean = false) {
const { confirm } = useConfirm()
- const launchTransform = async (values: string[], transform_id: string, sketch_id: string | null) => {
+ const launchTransform = async (values: string[], transform_id: string, sketch_id: string | undefined) => {
+ if (!sketch_id) return toast.error("Could not find the graph.")
if (askUser) {
const confirmed = await confirm({
title: `${transform_id} scan`,
diff --git a/flowsint-app/src/hooks/use-platform-icons.tsx b/flowsint-app/src/hooks/use-platform-icons.tsx
new file mode 100644
index 00000000..ee8f25dd
--- /dev/null
+++ b/flowsint-app/src/hooks/use-platform-icons.tsx
@@ -0,0 +1,19 @@
+import { type JSX, useMemo } from "react";
+import { actionItems, type ActionItem } from "@/lib/action-items"
+
+export const usePlatformIcons = () => {
+ return useMemo(() => {
+ const socials = actionItems.find((item) => item.type === "social")?.children
+ if (!socials)
+ return {};
+ return socials.reduce((acc: Record<string, { icon: JSX.Element, color: string }>, item: ActionItem) => {
+ const platform = item.key.split("_")[2];
+ acc[platform] = {
+ icon: <item.icon style={{ color: item.color }} />,
+ color: item.color ?? "lightgray",
+ };
+ return acc;
+ }, {} as Record<string, { icon: JSX.Element, color: string }>);
+ }, []);
+};
+
diff --git a/flowsint-app/src/routeTree.gen.ts b/flowsint-app/src/routeTree.gen.ts
index 8ae172b7..26c81a38 100644
--- a/flowsint-app/src/routeTree.gen.ts
+++ b/flowsint-app/src/routeTree.gen.ts
@@ -17,10 +17,13 @@ import { Route as LoginImport } from './routes/login'
import { Route as AuthImport } from './routes/_auth'
import { Route as IndexImport } from './routes/index'
import { Route as AuthDashboardImport } from './routes/_auth.dashboard'
+import { Route as AuthDashboardIndexImport } from './routes/_auth.dashboard.index'
import { Route as AuthDashboardTransformsImport } from './routes/_auth.dashboard.transforms'
-import { Route as AuthDashboardInvestigationsImport } from './routes/_auth.dashboard.investigations'
+import { Route as AuthDashboardInvestigationsIndexImport } from './routes/_auth.dashboard.investigations.index'
import { Route as AuthDashboardTransformsTransformIdImport } from './routes/_auth.dashboard.transforms.$transformId'
import { Route as AuthDashboardInvestigationsInvestigationIdImport } from './routes/_auth.dashboard.investigations.$investigationId'
+import { Route as AuthDashboardInvestigationsInvestigationIdIndexImport } from './routes/_auth.dashboard.investigations.$investigationId.index'
+import { Route as AuthDashboardInvestigationsInvestigationIdTypeIdImport } from './routes/_auth.dashboard.investigations.$investigationId.$type.$id'
// Create/Update Routes
@@ -59,16 +62,22 @@ const AuthDashboardRoute = AuthDashboardImport.update({
getParentRoute: () => AuthRoute,
} as any)
+const AuthDashboardIndexRoute = AuthDashboardIndexImport.update({
+ id: '/',
+ path: '/',
+ getParentRoute: () => AuthDashboardRoute,
+} as any)
+
const AuthDashboardTransformsRoute = AuthDashboardTransformsImport.update({
id: '/transforms',
path: '/transforms',
getParentRoute: () => AuthDashboardRoute,
} as any)
-const AuthDashboardInvestigationsRoute =
- AuthDashboardInvestigationsImport.update({
- id: '/investigations',
- path: '/investigations',
+const AuthDashboardInvestigationsIndexRoute =
+ AuthDashboardInvestigationsIndexImport.update({
+ id: '/investigations/',
+ path: '/investigations/',
getParentRoute: () => AuthDashboardRoute,
} as any)
@@ -81,9 +90,23 @@ const AuthDashboardTransformsTransformIdRoute =
const AuthDashboardInvestigationsInvestigationIdRoute =
AuthDashboardInvestigationsInvestigationIdImport.update({
- id: '/$investigationId',
- path: '/$investigationId',
- getParentRoute: () => AuthDashboardInvestigationsRoute,
+ id: '/investigations/$investigationId',
+ path: '/investigations/$investigationId',
+ getParentRoute: () => AuthDashboardRoute,
+ } as any)
+
+const AuthDashboardInvestigationsInvestigationIdIndexRoute =
+ AuthDashboardInvestigationsInvestigationIdIndexImport.update({
+ id: '/',
+ path: '/',
+ getParentRoute: () => AuthDashboardInvestigationsInvestigationIdRoute,
+ } as any)
+
+const AuthDashboardInvestigationsInvestigationIdTypeIdRoute =
+ AuthDashboardInvestigationsInvestigationIdTypeIdImport.update({
+ id: '/$type/$id',
+ path: '/$type/$id',
+ getParentRoute: () => AuthDashboardInvestigationsInvestigationIdRoute,
} as any)
// Populate the FileRoutesByPath interface
@@ -132,13 +155,6 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof AuthDashboardImport
parentRoute: typeof AuthImport
}
- '/_auth/dashboard/investigations': {
- id: '/_auth/dashboard/investigations'
- path: '/investigations'
- fullPath: '/dashboard/investigations'
- preLoaderRoute: typeof AuthDashboardInvestigationsImport
- parentRoute: typeof AuthDashboardImport
- }
'/_auth/dashboard/transforms': {
id: '/_auth/dashboard/transforms'
path: '/transforms'
@@ -146,12 +162,19 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof AuthDashboardTransformsImport
parentRoute: typeof AuthDashboardImport
}
+ '/_auth/dashboard/': {
+ id: '/_auth/dashboard/'
+ path: '/'
+ fullPath: '/dashboard/'
+ preLoaderRoute: typeof AuthDashboardIndexImport
+ parentRoute: typeof AuthDashboardImport
+ }
'/_auth/dashboard/investigations/$investigationId': {
id: '/_auth/dashboard/investigations/$investigationId'
- path: '/$investigationId'
+ path: '/investigations/$investigationId'
fullPath: '/dashboard/investigations/$investigationId'
preLoaderRoute: typeof AuthDashboardInvestigationsInvestigationIdImport
- parentRoute: typeof AuthDashboardInvestigationsImport
+ parentRoute: typeof AuthDashboardImport
}
'/_auth/dashboard/transforms/$transformId': {
id: '/_auth/dashboard/transforms/$transformId'
@@ -160,26 +183,32 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof AuthDashboardTransformsTransformIdImport
parentRoute: typeof AuthDashboardTransformsImport
}
+ '/_auth/dashboard/investigations/': {
+ id: '/_auth/dashboard/investigations/'
+ path: '/investigations'
+ fullPath: '/dashboard/investigations'
+ preLoaderRoute: typeof AuthDashboardInvestigationsIndexImport
+ parentRoute: typeof AuthDashboardImport
+ }
+ '/_auth/dashboard/investigations/$investigationId/': {
+ id: '/_auth/dashboard/investigations/$investigationId/'
+ path: '/'
+ fullPath: '/dashboard/investigations/$investigationId/'
+ preLoaderRoute: typeof AuthDashboardInvestigationsInvestigationIdIndexImport
+ parentRoute: typeof AuthDashboardInvestigationsInvestigationIdImport
+ }
+ '/_auth/dashboard/investigations/$investigationId/$type/$id': {
+ id: '/_auth/dashboard/investigations/$investigationId/$type/$id'
+ path: '/$type/$id'
+ fullPath: '/dashboard/investigations/$investigationId/$type/$id'
+ preLoaderRoute: typeof AuthDashboardInvestigationsInvestigationIdTypeIdImport
+ parentRoute: typeof AuthDashboardInvestigationsInvestigationIdImport
+ }
}
}
// Create and export the route tree
-interface AuthDashboardInvestigationsRouteChildren {
- AuthDashboardInvestigationsInvestigationIdRoute: typeof AuthDashboardInvestigationsInvestigationIdRoute
-}
-
-const AuthDashboardInvestigationsRouteChildren: AuthDashboardInvestigationsRouteChildren =
- {
- AuthDashboardInvestigationsInvestigationIdRoute:
- AuthDashboardInvestigationsInvestigationIdRoute,
- }
-
-const AuthDashboardInvestigationsRouteWithChildren =
- AuthDashboardInvestigationsRoute._addFileChildren(
- AuthDashboardInvestigationsRouteChildren,
- )
-
interface AuthDashboardTransformsRouteChildren {
AuthDashboardTransformsTransformIdRoute: typeof AuthDashboardTransformsTransformIdRoute
}
@@ -195,15 +224,37 @@ const AuthDashboardTransformsRouteWithChildren =
AuthDashboardTransformsRouteChildren,
)
+interface AuthDashboardInvestigationsInvestigationIdRouteChildren {
+ AuthDashboardInvestigationsInvestigationIdIndexRoute: typeof AuthDashboardInvestigationsInvestigationIdIndexRoute
+ AuthDashboardInvestigationsInvestigationIdTypeIdRoute: typeof AuthDashboardInvestigationsInvestigationIdTypeIdRoute
+}
+
+const AuthDashboardInvestigationsInvestigationIdRouteChildren: AuthDashboardInvestigationsInvestigationIdRouteChildren =
+ {
+ AuthDashboardInvestigationsInvestigationIdIndexRoute:
+ AuthDashboardInvestigationsInvestigationIdIndexRoute,
+ AuthDashboardInvestigationsInvestigationIdTypeIdRoute:
+ AuthDashboardInvestigationsInvestigationIdTypeIdRoute,
+ }
+
+const AuthDashboardInvestigationsInvestigationIdRouteWithChildren =
+ AuthDashboardInvestigationsInvestigationIdRoute._addFileChildren(
+ AuthDashboardInvestigationsInvestigationIdRouteChildren,
+ )
+
interface AuthDashboardRouteChildren {
- AuthDashboardInvestigationsRoute: typeof AuthDashboardInvestigationsRouteWithChildren
AuthDashboardTransformsRoute: typeof AuthDashboardTransformsRouteWithChildren
+ AuthDashboardIndexRoute: typeof AuthDashboardIndexRoute
+ AuthDashboardInvestigationsInvestigationIdRoute: typeof AuthDashboardInvestigationsInvestigationIdRouteWithChildren
+ AuthDashboardInvestigationsIndexRoute: typeof AuthDashboardInvestigationsIndexRoute
}
const AuthDashboardRouteChildren: AuthDashboardRouteChildren = {
- AuthDashboardInvestigationsRoute:
- AuthDashboardInvestigationsRouteWithChildren,
AuthDashboardTransformsRoute: AuthDashboardTransformsRouteWithChildren,
+ AuthDashboardIndexRoute: AuthDashboardIndexRoute,
+ AuthDashboardInvestigationsInvestigationIdRoute:
+ AuthDashboardInvestigationsInvestigationIdRouteWithChildren,
+ AuthDashboardInvestigationsIndexRoute: AuthDashboardInvestigationsIndexRoute,
}
const AuthDashboardRouteWithChildren = AuthDashboardRoute._addFileChildren(
@@ -227,10 +278,13 @@ export interface FileRoutesByFullPath {
'/middleware': typeof MiddlewareRoute
'/register': typeof RegisterRoute
'/dashboard': typeof AuthDashboardRouteWithChildren
- '/dashboard/investigations': typeof AuthDashboardInvestigationsRouteWithChildren
'/dashboard/transforms': typeof AuthDashboardTransformsRouteWithChildren
- '/dashboard/investigations/$investigationId': typeof AuthDashboardInvestigationsInvestigationIdRoute
+ '/dashboard/': typeof AuthDashboardIndexRoute
+ '/dashboard/investigations/$investigationId': typeof AuthDashboardInvestigationsInvestigationIdRouteWithChildren
'/dashboard/transforms/$transformId': typeof AuthDashboardTransformsTransformIdRoute
+ '/dashboard/investigations': typeof AuthDashboardInvestigationsIndexRoute
+ '/dashboard/investigations/$investigationId/': typeof AuthDashboardInvestigationsInvestigationIdIndexRoute
+ '/dashboard/investigations/$investigationId/$type/$id': typeof AuthDashboardInvestigationsInvestigationIdTypeIdRoute
}
export interface FileRoutesByTo {
@@ -239,11 +293,12 @@ export interface FileRoutesByTo {
'/login': typeof LoginRoute
'/middleware': typeof MiddlewareRoute
'/register': typeof RegisterRoute
- '/dashboard': typeof AuthDashboardRouteWithChildren
- '/dashboard/investigations': typeof AuthDashboardInvestigationsRouteWithChildren
'/dashboard/transforms': typeof AuthDashboardTransformsRouteWithChildren
- '/dashboard/investigations/$investigationId': typeof AuthDashboardInvestigationsInvestigationIdRoute
+ '/dashboard': typeof AuthDashboardIndexRoute
'/dashboard/transforms/$transformId': typeof AuthDashboardTransformsTransformIdRoute
+ '/dashboard/investigations': typeof AuthDashboardInvestigationsIndexRoute
+ '/dashboard/investigations/$investigationId': typeof AuthDashboardInvestigationsInvestigationIdIndexRoute
+ '/dashboard/investigations/$investigationId/$type/$id': typeof AuthDashboardInvestigationsInvestigationIdTypeIdRoute
}
export interface FileRoutesById {
@@ -254,10 +309,13 @@ export interface FileRoutesById {
'/middleware': typeof MiddlewareRoute
'/register': typeof RegisterRoute
'/_auth/dashboard': typeof AuthDashboardRouteWithChildren
- '/_auth/dashboard/investigations': typeof AuthDashboardInvestigationsRouteWithChildren
'/_auth/dashboard/transforms': typeof AuthDashboardTransformsRouteWithChildren
- '/_auth/dashboard/investigations/$investigationId': typeof AuthDashboardInvestigationsInvestigationIdRoute
+ '/_auth/dashboard/': typeof AuthDashboardIndexRoute
+ '/_auth/dashboard/investigations/$investigationId': typeof AuthDashboardInvestigationsInvestigationIdRouteWithChildren
'/_auth/dashboard/transforms/$transformId': typeof AuthDashboardTransformsTransformIdRoute
+ '/_auth/dashboard/investigations/': typeof AuthDashboardInvestigationsIndexRoute
+ '/_auth/dashboard/investigations/$investigationId/': typeof AuthDashboardInvestigationsInvestigationIdIndexRoute
+ '/_auth/dashboard/investigations/$investigationId/$type/$id': typeof AuthDashboardInvestigationsInvestigationIdTypeIdRoute
}
export interface FileRouteTypes {
@@ -269,10 +327,13 @@ export interface FileRouteTypes {
| '/middleware'
| '/register'
| '/dashboard'
- | '/dashboard/investigations'
| '/dashboard/transforms'
+ | '/dashboard/'
| '/dashboard/investigations/$investigationId'
| '/dashboard/transforms/$transformId'
+ | '/dashboard/investigations'
+ | '/dashboard/investigations/$investigationId/'
+ | '/dashboard/investigations/$investigationId/$type/$id'
fileRoutesByTo: FileRoutesByTo
to:
| '/'
@@ -280,11 +341,12 @@ export interface FileRouteTypes {
| '/login'
| '/middleware'
| '/register'
+ | '/dashboard/transforms'
| '/dashboard'
+ | '/dashboard/transforms/$transformId'
| '/dashboard/investigations'
- | '/dashboard/transforms'
| '/dashboard/investigations/$investigationId'
- | '/dashboard/transforms/$transformId'
+ | '/dashboard/investigations/$investigationId/$type/$id'
id:
| '__root__'
| '/'
@@ -293,10 +355,13 @@ export interface FileRouteTypes {
| '/middleware'
| '/register'
| '/_auth/dashboard'
- | '/_auth/dashboard/investigations'
| '/_auth/dashboard/transforms'
+ | '/_auth/dashboard/'
| '/_auth/dashboard/investigations/$investigationId'
| '/_auth/dashboard/transforms/$transformId'
+ | '/_auth/dashboard/investigations/'
+ | '/_auth/dashboard/investigations/$investigationId/'
+ | '/_auth/dashboard/investigations/$investigationId/$type/$id'
fileRoutesById: FileRoutesById
}
@@ -355,15 +420,10 @@ export const routeTree = rootRoute
"filePath": "_auth.dashboard.tsx",
"parent": "/_auth",
"children": [
- "/_auth/dashboard/investigations",
- "/_auth/dashboard/transforms"
- ]
- },
- "/_auth/dashboard/investigations": {
- "filePath": "_auth.dashboard.investigations.tsx",
- "parent": "/_auth/dashboard",
- "children": [
- "/_auth/dashboard/investigations/$investigationId"
+ "/_auth/dashboard/transforms",
+ "/_auth/dashboard/",
+ "/_auth/dashboard/investigations/$investigationId",
+ "/_auth/dashboard/investigations/"
]
},
"/_auth/dashboard/transforms": {
@@ -373,13 +433,33 @@ export const routeTree = rootRoute
"/_auth/dashboard/transforms/$transformId"
]
},
+ "/_auth/dashboard/": {
+ "filePath": "_auth.dashboard.index.tsx",
+ "parent": "/_auth/dashboard"
+ },
"/_auth/dashboard/investigations/$investigationId": {
"filePath": "_auth.dashboard.investigations.$investigationId.tsx",
- "parent": "/_auth/dashboard/investigations"
+ "parent": "/_auth/dashboard",
+ "children": [
+ "/_auth/dashboard/investigations/$investigationId/",
+ "/_auth/dashboard/investigations/$investigationId/$type/$id"
+ ]
},
"/_auth/dashboard/transforms/$transformId": {
"filePath": "_auth.dashboard.transforms.$transformId.tsx",
"parent": "/_auth/dashboard/transforms"
+ },
+ "/_auth/dashboard/investigations/": {
+ "filePath": "_auth.dashboard.investigations.index.tsx",
+ "parent": "/_auth/dashboard"
+ },
+ "/_auth/dashboard/investigations/$investigationId/": {
+ "filePath": "_auth.dashboard.investigations.$investigationId.index.tsx",
+ "parent": "/_auth/dashboard/investigations/$investigationId"
+ },
+ "/_auth/dashboard/investigations/$investigationId/$type/$id": {
+ "filePath": "_auth.dashboard.investigations.$investigationId.$type.$id.tsx",
+ "parent": "/_auth/dashboard/investigations/$investigationId"
}
}
}
diff --git a/flowsint-app/src/routes/__root.tsx b/flowsint-app/src/routes/__root.tsx
index b6fa4568..c3a3e94e 100644
--- a/flowsint-app/src/routes/__root.tsx
+++ b/flowsint-app/src/routes/__root.tsx
@@ -1,5 +1,6 @@
import { Outlet, createRootRouteWithContext } from '@tanstack/react-router'
import type { QueryClient } from '@tanstack/react-query'
+import { Toaster } from '@/components/ui/sonner'
interface MyRouterContext {
queryClient: QueryClient
@@ -8,9 +9,8 @@ interface MyRouterContext {
export const Route = createRootRouteWithContext<MyRouterContext>()({
component: () => (
<>
+ <Toaster richColors />
<Outlet />
- {/* <TanStackRouterDevtools /> */}
- {/* <TanStackQueryLayout /> */}
</>
),
})
diff --git a/flowsint-app/src/routes/_auth.dashboard.index.tsx b/flowsint-app/src/routes/_auth.dashboard.index.tsx
new file mode 100644
index 00000000..e67e9268
--- /dev/null
+++ b/flowsint-app/src/routes/_auth.dashboard.index.tsx
@@ -0,0 +1,12 @@
+import { createFileRoute } from '@tanstack/react-router'
+
+export const Route = createFileRoute('/_auth/dashboard/')({
+ component: DashboardPage,
+})
+
+function DashboardPage() {
+
+ return (
+ <div>only seable a home</div>
+ )
+}
diff --git a/flowsint-app/src/routes/_auth.dashboard.investigations.$investigationId.$type.$id.tsx b/flowsint-app/src/routes/_auth.dashboard.investigations.$investigationId.$type.$id.tsx
new file mode 100644
index 00000000..b399a912
--- /dev/null
+++ b/flowsint-app/src/routes/_auth.dashboard.investigations.$investigationId.$type.$id.tsx
@@ -0,0 +1,53 @@
+import { createFileRoute } from '@tanstack/react-router'
+import GraphPanel from '@/components/graphs/graph-panel'
+import { sketchService } from '@/api/sketch-service'
+import { useTabEditorStore } from '@/store/tab-editor-store'
+import { useEffect } from 'react'
+
+export const Route = createFileRoute('/_auth/dashboard/investigations/$investigationId/$type/$id')({
+ loader: async ({ params: { investigationId, type, id } }) => {
+ return {
+ data: type === "graph" ? await sketchService.getById(id) : null,
+ type: type,
+ id: id,
+ investigationId: investigationId
+ }
+ },
+ component: GraphPage,
+})
+
+function GraphPage() {
+ const { id, type, investigationId, data } = Route.useLoaderData()
+ const addTab = useTabEditorStore((s) => s.addTab)
+ const tabs = useTabEditorStore((s) => s.tabs)
+
+ useEffect(() => {
+ if (!id || !type || !investigationId) return
+ const alreadyExists = tabs.some(
+ (t) =>
+ t.id === id &&
+ t.type === type &&
+ t.investigationId === investigationId,
+ )
+ if (!alreadyExists) {
+ addTab({
+ id,
+ type: type as "graph" | "wall",
+ investigationId,
+ title: data.title,
+ data: data,
+ })
+ }
+ }, [id, type, investigationId, tabs, addTab])
+ if (type === "graph") {
+ return (
+
+ <div className='grow h-full w-full overflow-hidden flex flex-col'>
+ <div className='grow'>
+ <GraphPanel />
+ </div>
+ </div>
+ )
+ }
+ return (<div>Type not supported yet.</div>)
+}
\ No newline at end of file
diff --git a/flowsint-app/src/routes/_auth.dashboard.investigations.$investigationId.index.tsx b/flowsint-app/src/routes/_auth.dashboard.investigations.$investigationId.index.tsx
new file mode 100644
index 00000000..8b0ac32d
--- /dev/null
+++ b/flowsint-app/src/routes/_auth.dashboard.investigations.$investigationId.index.tsx
@@ -0,0 +1,19 @@
+import { createFileRoute } from '@tanstack/react-router'
+import { investigationService } from '@/api/investigation-service'
+
+
+export const Route = createFileRoute('/_auth/dashboard/investigations/$investigationId/')({
+ loader: async ({ params: { investigationId } }) => {
+ return {
+ investigation: await investigationService.getById(investigationId),
+ }
+ },
+ component: InvestigationPage,
+})
+
+function InvestigationPage() {
+ const { investigation } = Route.useLoaderData()
+ return (
+ <div>overview of {investigation.title} </div>
+ )
+}
\ No newline at end of file
diff --git a/flowsint-app/src/routes/_auth.dashboard.investigations.$investigationId.tsx b/flowsint-app/src/routes/_auth.dashboard.investigations.$investigationId.tsx
index f244d09f..46a09dcd 100644
--- a/flowsint-app/src/routes/_auth.dashboard.investigations.$investigationId.tsx
+++ b/flowsint-app/src/routes/_auth.dashboard.investigations.$investigationId.tsx
@@ -1,35 +1,9 @@
-import { createFileRoute } from '@tanstack/react-router'
-import { investigationService } from '@/api/investigation-service'
-import { GraphTabs } from '@/components/investigations/graph-tabs'
-import GraphPanel from '@/components/investigations/graph-panel'
-import InvestigationsLayout from '@/components/layout/investigations.layout'
-import z from 'zod'
-import { useActiveTabId } from '@/hooks/active-tab-helper'
+import { createFileRoute, Outlet } from '@tanstack/react-router'
+
export const Route = createFileRoute('/_auth/dashboard/investigations/$investigationId')({
- loader: async ({ params: { investigationId } }) => {
- return {
- investigation: await investigationService.getById(investigationId),
- }
- },
component: InvestigationPage,
- validateSearch: z.object({
- graph: z.string().optional(),
- }),
})
function InvestigationPage() {
- const activeTabId = useActiveTabId()
- return (
- <InvestigationsLayout>
- <GraphTabs />
- <div className='grow h-full w-full overflow-hidden flex flex-col'>
- <div className='grow'>
- {activeTabId ?
- <GraphPanel />
- : <div className='h-full w-full flex items-center justify-center'>Rien</div>
- }
- </div>
- </div>
- </InvestigationsLayout>
- )
-}
\ No newline at end of file
+ return <Outlet />
+}
diff --git a/flowsint-app/src/routes/_auth.dashboard.investigations.index.tsx b/flowsint-app/src/routes/_auth.dashboard.investigations.index.tsx
new file mode 100644
index 00000000..1d312b3d
--- /dev/null
+++ b/flowsint-app/src/routes/_auth.dashboard.investigations.index.tsx
@@ -0,0 +1,22 @@
+import { createFileRoute } from '@tanstack/react-router'
+import { investigationService } from '@/api/investigation-service'
+import z from 'zod'
+
+export const Route = createFileRoute('/_auth/dashboard/investigations/')({
+ loader: async () => {
+ return {
+ investigations: await investigationService.get(),
+ }
+ },
+ component: InvestigationPage,
+ validateSearch: z.object({
+ graph: z.string().optional(),
+ }),
+})
+
+function InvestigationPage() {
+ const { investigations } = Route.useLoaderData()
+ return (
+ <div>{investigations.length}</div>
+ )
+}
\ No newline at end of file
diff --git a/flowsint-app/src/routes/_auth.dashboard.investigations.tsx b/flowsint-app/src/routes/_auth.dashboard.investigations.tsx
deleted file mode 100644
index 7130a8b1..00000000
--- a/flowsint-app/src/routes/_auth.dashboard.investigations.tsx
+++ /dev/null
@@ -1,32 +0,0 @@
-import { createFileRoute } from '@tanstack/react-router'
-import { investigationService } from '@/api/investigation-service'
-import { GraphTabs } from '@/components/investigations/graph-tabs'
-import GraphPanel from '@/components/investigations/graph-panel'
-import InvestigationsLayout from '@/components/layout/investigations.layout'
-import { useActiveTabId } from '@/hooks/active-tab-helper'
-export const Route = createFileRoute('/_auth/dashboard/investigations')({
- loader: async () => {
- return {
- investigations: await investigationService.get(),
- }
- },
- component: InvestigationPage,
-})
-
-function InvestigationPage() {
- const { investigations } = Route.useLoaderData()
- const activeTabId = useActiveTabId()
- return (
- <InvestigationsLayout>
- <GraphTabs />
- <div className='grow h-full w-full overflow-hidden flex flex-col'>
- <div className='grow'>
- {activeTabId ?
- <GraphPanel />
- : <div className='h-full w-full flex items-center justify-center'>{investigations.length} investigations</div>
- }
- </div>
- </div>
- </InvestigationsLayout>
- )
-}
\ No newline at end of file
diff --git a/flowsint-app/src/routes/_auth.dashboard.transforms.tsx b/flowsint-app/src/routes/_auth.dashboard.transforms.tsx
index 84ce6b2b..86993f9d 100644
--- a/flowsint-app/src/routes/_auth.dashboard.transforms.tsx
+++ b/flowsint-app/src/routes/_auth.dashboard.transforms.tsx
@@ -1,25 +1,13 @@
import { createFileRoute } from '@tanstack/react-router'
-import { transformService } from '@/api/transfrom-service'
-import TransformsLayout from '@/components/layout/transforms.layout'
import Editor from '@/components/transforms/editor'
export const Route = createFileRoute('/_auth/dashboard/transforms')({
- loader: async () => {
- return {
- transforms: await transformService.get(),
- nodesData: await transformService.getRawMaterial(),
-
- }
- },
component: TranformsPage,
})
function TranformsPage() {
- const { transforms, nodesData } = Route.useLoaderData()
return (
- <TransformsLayout nodesData={nodesData} transform={null} transforms={transforms}>
- <Editor />
- </TransformsLayout>
+ <Editor />
)
}
\ No newline at end of file
diff --git a/flowsint-app/src/store/tab-editor-store.ts b/flowsint-app/src/store/tab-editor-store.ts
index 6b64bf43..2a2c14fa 100644
--- a/flowsint-app/src/store/tab-editor-store.ts
+++ b/flowsint-app/src/store/tab-editor-store.ts
@@ -3,16 +3,25 @@ import { v4 as uuidv4 } from "uuid"
import { persist } from "zustand/middleware"
export interface GraphTab {
- id: string
+ id: string // == graphId ou wallId
title: string
data: any
+ type: "graph" | "wall"
+ investigationId: string
isDirty?: boolean
}
interface GraphStore {
tabs: GraphTab[]
- addTab: (id: string, title?: string, data?: any) => string
+ addTab: (params: {
+ id?: string
+ title?: string
+ data?: any
+ investigationId: string
+ type: "graph" | "wall"
+ }) => string
+
closeTab: (id: string) => void
updateTabData: (id: string, data: any) => void
markTabDirty: (id: string, isDirty?: boolean) => void
@@ -23,8 +32,21 @@ export const useTabEditorStore = create<GraphStore>()(
(set) => ({
tabs: [],
- addTab: (id = uuidv4(), title = "New Graph", data = {}) => {
- const newTab = { id, title, data, isDirty: false }
+ addTab: ({
+ id = uuidv4(),
+ title = "New Graph",
+ data = {},
+ investigationId,
+ type,
+ }) => {
+ const newTab: GraphTab = {
+ id,
+ title,
+ data,
+ investigationId,
+ type,
+ isDirty: false,
+ }
set((state) => ({
tabs: [...state.tabs, newTab],
@@ -33,21 +55,25 @@ export const useTabEditorStore = create<GraphStore>()(
return id
},
- closeTab: (id: string) => {
+ closeTab: (id) => {
set((state) => ({
tabs: state.tabs.filter((tab) => tab.id !== id),
}))
},
- updateTabData: (id: string, data: any) => {
+ updateTabData: (id, data) => {
set((state) => ({
- tabs: state.tabs.map((tab) => (tab.id === id ? { ...tab, data } : tab)),
+ tabs: state.tabs.map((tab) =>
+ tab.id === id ? { ...tab, data } : tab,
+ ),
}))
},
- markTabDirty: (id: string, isDirty = true) => {
+ markTabDirty: (id, isDirty = true) => {
set((state) => ({
- tabs: state.tabs.map((tab) => (tab.id === id ? { ...tab, isDirty } : tab)),
+ tabs: state.tabs.map((tab) =>
+ tab.id === id ? { ...tab, isDirty } : tab,
+ ),
}))
},
}),
diff --git a/flowsint-app/tsconfig.json b/flowsint-app/tsconfig.json
index 76542738..846d8dbe 100644
--- a/flowsint-app/tsconfig.json
+++ b/flowsint-app/tsconfig.json
@@ -1,5 +1,5 @@
{
- "include": ["**/*.ts", "**/*.tsx", "eslint.config.js", "prettier.config.js", "vite.config.js"],
+ "include": ["**/*.ts", "**/*.tsx", "eslint.config.js", "prettier.config.js", "vite.config.js", "main.js"],
"compilerOptions": {
"target": "ES2022",
diff --git a/flowsint-app/yarn.lock b/flowsint-app/yarn.lock
index 2df7f648..88c10a1a 100644
--- a/flowsint-app/yarn.lock
+++ b/flowsint-app/yarn.lock
@@ -306,6 +306,21 @@
resolved "https://registry.yarnpkg.com/@dagrejs/graphlib/-/graphlib-2.2.4.tgz#d77bfa9ff49e2307c0c6e6b8b26b5dd3c05816c4"
integrity sha512-mepCf/e9+SKYy1d02/UkvSy6+6MoyXhVxP8lLDfA7BPE1X1d4dR0sZznmbM8/XVJ1GPM+Svnx7Xj6ZweByWUkw==
+"@electron/get@^2.0.0":
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/@electron/get/-/get-2.0.3.tgz#fba552683d387aebd9f3fcadbcafc8e12ee4f960"
+ integrity sha512-Qkzpg2s9GnVV2I2BjRksUi43U5e6+zaQMcjoJy0C+C5oxaKl+fmckGDQFtRpZpZV0NQekuZZ+tGz7EA9TVnQtQ==
+ dependencies:
+ debug "^4.1.1"
+ env-paths "^2.2.0"
+ fs-extra "^8.1.0"
+ got "^11.8.5"
+ progress "^2.0.3"
+ semver "^6.2.0"
+ sumchecker "^3.0.1"
+ optionalDependencies:
+ global-agent "^3.0.0"
+
"@emnapi/core@^1.4.3":
version "1.4.3"
resolved "https://registry.yarnpkg.com/@emnapi/core/-/core-1.4.3.tgz#9ac52d2d5aea958f67e52c40a065f51de59b77d6"
@@ -1271,6 +1286,11 @@
resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.41.0.tgz#b0b595ad4720259bbb81600750d26a655cac06be"
integrity sha512-h1J+Yzjo/X+0EAvR2kIXJDuTuyT7drc+t2ALY0nIcGPbTatNOf0VWdhEA2Z4AAjv6X1NJV7SYo5oCTYRJhSlVA==
+"@sindresorhus/is@^4.0.0":
+ version "4.6.0"
+ resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-4.6.0.tgz#3c7c9c46e678feefe7a2e5bb609d3dbd665ffb3f"
+ integrity sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==
+
"@standard-schema/utils@^0.3.0":
version "0.3.0"
resolved "https://registry.yarnpkg.com/@standard-schema/utils/-/utils-0.3.0.tgz#3d5e608f16c2390c10528e98e59aef6bf73cae7b"
@@ -1341,6 +1361,13 @@
"@supabase/realtime-js" "2.11.2"
"@supabase/storage-js" "2.7.1"
+"@szmarczak/http-timer@^4.0.5":
+ version "4.0.6"
+ resolved "https://registry.yarnpkg.com/@szmarczak/http-timer/-/http-timer-4.0.6.tgz#b4a914bb62e7c272d4e5989fe4440f812ab1d807"
+ integrity sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==
+ dependencies:
+ defer-to-connect "^2.0.0"
+
"@tailwindcss/[email protected]":
version "4.1.7"
resolved "https://registry.yarnpkg.com/@tailwindcss/node/-/node-4.1.7.tgz#6d2df06c6b84a6fd8255a535b4f537c5235a37ee"
@@ -1521,6 +1548,13 @@
"@tanstack/store" "0.7.0"
use-sync-external-store "^1.4.0"
+"@tanstack/react-virtual@^3.13.9":
+ version "3.13.9"
+ resolved "https://registry.yarnpkg.com/@tanstack/react-virtual/-/react-virtual-3.13.9.tgz#6f87bce08a65c8f4ec6d2c303646ca6b3897e9fe"
+ integrity sha512-SPWC8kwG/dWBf7Py7cfheAPOxuvIv4fFQ54PdmYbg7CpXfsKxkucak43Q0qKsxVthhUJQ1A7CIMAIplq4BjVwA==
+ dependencies:
+ "@tanstack/virtual-core" "3.13.9"
+
"@tanstack/[email protected]", "@tanstack/router-core@^1.120.5":
version "1.120.5"
resolved "https://registry.yarnpkg.com/@tanstack/router-core/-/router-core-1.120.5.tgz#bfc90ec5fa675898ee2ec0aeb64f0b0862d8c9b4"
@@ -1586,6 +1620,11 @@
resolved "https://registry.yarnpkg.com/@tanstack/store/-/store-0.7.0.tgz#afef29b06c6b592e93181cee9baa62fe77454459"
integrity sha512-CNIhdoUsmD2NolYuaIs8VfWM467RK6oIBAW4nPEKZhg1smZ+/CwtCdpURgp7nxSqOaV9oKkzdWD80+bC66F/Jg==
+"@tanstack/[email protected]":
+ version "3.13.9"
+ resolved "https://registry.yarnpkg.com/@tanstack/virtual-core/-/virtual-core-3.13.9.tgz#62b4d2d4351d658101664beacf088fbd061190bf"
+ integrity sha512-3jztt0jpaoJO5TARe2WIHC1UQC3VMLAFUW5mmMo0yrkwtDB2AQP0+sh10BVUpWrnvHjSLvzFizydtEGLCJKFoQ==
+
"@tanstack/virtual-file-routes@^1.115.0":
version "1.115.0"
resolved "https://registry.yarnpkg.com/@tanstack/virtual-file-routes/-/virtual-file-routes-1.115.0.tgz#7d5bfa133808cf6718687a54822671ecf744a9bb"
@@ -1657,6 +1696,16 @@
dependencies:
"@babel/types" "^7.20.7"
+"@types/cacheable-request@^6.0.1":
+ version "6.0.3"
+ resolved "https://registry.yarnpkg.com/@types/cacheable-request/-/cacheable-request-6.0.3.tgz#a430b3260466ca7b5ca5bfd735693b36e7a9d183"
+ integrity sha512-IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw==
+ dependencies:
+ "@types/http-cache-semantics" "*"
+ "@types/keyv" "^3.1.4"
+ "@types/node" "*"
+ "@types/responselike" "^1.0.0"
+
"@types/d3-array@^3.0.3":
version "3.2.1"
resolved "https://registry.yarnpkg.com/@types/d3-array/-/d3-array-3.2.1.tgz#1f6658e3d2006c4fceac53fde464166859f8b8c5"
@@ -1740,7 +1789,19 @@
resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.7.tgz#4158d3105276773d5b7695cd4834b1722e4f37a8"
integrity sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==
-"@types/node@*", "@types/node@^22.15.21":
+"@types/http-cache-semantics@*":
+ version "4.0.4"
+ resolved "https://registry.yarnpkg.com/@types/http-cache-semantics/-/http-cache-semantics-4.0.4.tgz#b979ebad3919799c979b17c72621c0bc0a31c6c4"
+ integrity sha512-1m0bIFVc7eJWyve9S0RnuRgcQqF/Xd5QsUZAZeQFr1Q3/p9JWoQQEqmVy+DPTNpGXwhgIetAoYF8JSc33q29QA==
+
+"@types/keyv@^3.1.4":
+ version "3.1.4"
+ resolved "https://registry.yarnpkg.com/@types/keyv/-/keyv-3.1.4.tgz#3ccdb1c6751b0c7e52300bcdacd5bcbf8faa75b6"
+ integrity sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==
+ dependencies:
+ "@types/node" "*"
+
+"@types/node@*", "@types/node@^22.15.21", "@types/node@^22.7.7":
version "22.15.21"
resolved "https://registry.yarnpkg.com/@types/node/-/node-22.15.21.tgz#196ef14fe20d87f7caf1e7b39832767f9a995b77"
integrity sha512-EV/37Td6c+MgKAbkcLG6vqZ2zEYHD7bvSrzqqs2RIhbA6w3x+Dqz8MZM3sP6kGTeLrdoOgKZe+Xja7tUB2DNkQ==
@@ -1764,6 +1825,13 @@
dependencies:
csstype "^3.0.2"
+"@types/responselike@^1.0.0":
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/@types/responselike/-/responselike-1.0.3.tgz#cc29706f0a397cfe6df89debfe4bf5cea159db50"
+ integrity sha512-H/+L+UkTV33uf49PH5pCAUBVPNj2nDBXTN+qS1dOwyyg24l3CcicicCA7ca+HMvJBZcFgl5r8e+RR6elsb4Lyw==
+ dependencies:
+ "@types/node" "*"
+
"@types/ws@^8.5.10":
version "8.18.1"
resolved "https://registry.yarnpkg.com/@types/ws/-/ws-8.18.1.tgz#48464e4bf2ddfd17db13d845467f6070ffea4aa9"
@@ -1771,6 +1839,13 @@
dependencies:
"@types/node" "*"
+"@types/yauzl@^2.9.1":
+ version "2.10.3"
+ resolved "https://registry.yarnpkg.com/@types/yauzl/-/yauzl-2.10.3.tgz#e9b2808b4f109504a03cda958259876f61017999"
+ integrity sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==
+ dependencies:
+ "@types/node" "*"
+
"@typescript-eslint/[email protected]":
version "8.32.1"
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.32.1.tgz#9185b3eaa3b083d8318910e12d56c68b3c4f45b4"
@@ -2115,6 +2190,11 @@ binary-extensions@^2.0.0:
resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.3.0.tgz#f6e14a97858d327252200242d4ccfe522c445522"
integrity sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==
+boolean@^3.0.1:
+ version "3.2.0"
+ resolved "https://registry.yarnpkg.com/boolean/-/boolean-3.2.0.tgz#9e5294af4e98314494cbb17979fa54ca159f116b"
+ integrity sha512-d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw==
+
brace-expansion@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.0.1.tgz#1edc459e0f0c548486ecf9fc99f2221364b9a0ae"
@@ -2139,11 +2219,34 @@ browserslist@^4.24.0:
node-releases "^2.0.19"
update-browserslist-db "^1.1.3"
+buffer-crc32@~0.2.3:
+ version "0.2.13"
+ resolved "https://registry.yarnpkg.com/buffer-crc32/-/buffer-crc32-0.2.13.tgz#0d333e3f00eac50aa1454abd30ef8c2a5d9a7242"
+ integrity sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==
+
cac@^6.7.14:
version "6.7.14"
resolved "https://registry.yarnpkg.com/cac/-/cac-6.7.14.tgz#804e1e6f506ee363cb0e3ccbb09cad5dd9870959"
integrity sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==
+cacheable-lookup@^5.0.3:
+ version "5.0.4"
+ resolved "https://registry.yarnpkg.com/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz#5a6b865b2c44357be3d5ebc2a467b032719a7005"
+ integrity sha512-2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA==
+
+cacheable-request@^7.0.2:
+ version "7.0.4"
+ resolved "https://registry.yarnpkg.com/cacheable-request/-/cacheable-request-7.0.4.tgz#7a33ebf08613178b403635be7b899d3e69bbe817"
+ integrity sha512-v+p6ongsrp0yTGbJXjgxPow2+DL93DASP4kXCDKb8/bwRtt9OEF3whggkkDkGNzgcWy2XaF4a8nZglC7uElscg==
+ dependencies:
+ clone-response "^1.0.2"
+ get-stream "^5.1.0"
+ http-cache-semantics "^4.0.0"
+ keyv "^4.0.0"
+ lowercase-keys "^2.0.0"
+ normalize-url "^6.0.1"
+ responselike "^2.0.0"
+
caniuse-lite@^1.0.30001716:
version "1.0.30001718"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001718.tgz#dae13a9c80d517c30c6197515a96131c194d8f82"
@@ -2205,6 +2308,13 @@ classcat@^5.0.3:
resolved "https://registry.yarnpkg.com/classcat/-/classcat-5.0.5.tgz#8c209f359a93ac302404a10161b501eba9c09c77"
integrity sha512-JhZUT7JFcQy/EzW605k/ktHtncoo9vnyW/2GspNYwFlN1C/WmjuV/xtS04e9SOkL2sTdw0VAZ2UGCcQ9lR6p6w==
+clone-response@^1.0.2:
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/clone-response/-/clone-response-1.0.3.tgz#af2032aa47816399cf5f0a1d0db902f517abb8c3"
+ integrity sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==
+ dependencies:
+ mimic-response "^1.0.0"
+
clsx@^2.0.0, clsx@^2.1.1:
version "2.1.1"
resolved "https://registry.yarnpkg.com/clsx/-/clsx-2.1.1.tgz#eed397c9fd8bd882bfb18deab7102049a2f32999"
@@ -2416,7 +2526,7 @@ date-fns@^4.1.0:
resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-4.1.0.tgz#64b3d83fff5aa80438f5b1a633c2e83b8a1c2d14"
integrity sha512-Ukq0owbQXxa/U3EGtsdVBkR1w7KOQ5gIBqdH2hkvknzZPYvBxb/aa6E8L7tmjFtkwZBu3UXBbjIgPo/Ez4xaNg==
-debug@4, debug@^4.1.0, debug@^4.3.1, debug@^4.3.4, debug@^4.4.0:
+debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.4, debug@^4.4.0:
version "4.4.1"
resolved "https://registry.yarnpkg.com/debug/-/debug-4.4.1.tgz#e5a8bc6cbc4c6cd3e64308b0693a3d4fa550189b"
integrity sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==
@@ -2440,11 +2550,41 @@ decimal.js@^10.5.0:
resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.5.0.tgz#0f371c7cf6c4898ce0afb09836db73cd82010f22"
integrity sha512-8vDa8Qxvr/+d94hSh5P3IJwI5t8/c0KsMp+g8bNw9cY2icONa5aPfvKeieW1WlG0WQYwwhJ7mjui2xtiePQSXw==
+decompress-response@^6.0.0:
+ version "6.0.0"
+ resolved "https://registry.yarnpkg.com/decompress-response/-/decompress-response-6.0.0.tgz#ca387612ddb7e104bd16d85aab00d5ecf09c66fc"
+ integrity sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==
+ dependencies:
+ mimic-response "^3.1.0"
+
deep-eql@^5.0.1:
version "5.0.2"
resolved "https://registry.yarnpkg.com/deep-eql/-/deep-eql-5.0.2.tgz#4b756d8d770a9257300825d52a2c2cff99c3a341"
integrity sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==
+defer-to-connect@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/defer-to-connect/-/defer-to-connect-2.0.1.tgz#8016bdb4143e4632b77a3449c6236277de520587"
+ integrity sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==
+
+define-data-property@^1.0.1:
+ version "1.1.4"
+ resolved "https://registry.yarnpkg.com/define-data-property/-/define-data-property-1.1.4.tgz#894dc141bb7d3060ae4366f6a0107e68fbe48c5e"
+ integrity sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==
+ dependencies:
+ es-define-property "^1.0.0"
+ es-errors "^1.3.0"
+ gopd "^1.0.1"
+
+define-properties@^1.2.1:
+ version "1.2.1"
+ resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.2.1.tgz#10781cc616eb951a80a034bafcaa7377f6af2b6c"
+ integrity sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==
+ dependencies:
+ define-data-property "^1.0.1"
+ has-property-descriptors "^1.0.0"
+ object-keys "^1.1.1"
+
dequal@^2.0.3:
version "2.0.3"
resolved "https://registry.yarnpkg.com/dequal/-/dequal-2.0.3.tgz#2644214f1997d39ed0ee0ece72335490a7ac67be"
@@ -2460,6 +2600,11 @@ detect-node-es@^1.1.0:
resolved "https://registry.yarnpkg.com/detect-node-es/-/detect-node-es-1.1.0.tgz#163acdf643330caa0b4cd7c21e7ee7755d6fa493"
integrity sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==
+detect-node@^2.0.4:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/detect-node/-/detect-node-2.1.0.tgz#c9c70775a49c3d03bc2c06d9a73be550f978f8b1"
+ integrity sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==
+
diff@^7.0.0:
version "7.0.0"
resolved "https://registry.yarnpkg.com/diff/-/diff-7.0.0.tgz#3fb34d387cd76d803f6eebea67b921dab0182a9a"
@@ -2483,6 +2628,15 @@ electron-to-chromium@^1.5.149:
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.155.tgz#809dd0ae9ae1db87c358e0c0c17c09a2ffc432d1"
integrity sha512-ps5KcGGmwL8VaeJlvlDlu4fORQpv3+GIcF5I3f9tUKUlJ/wsysh6HU8P5L1XWRYeXfA0oJd4PyM8ds8zTFf6Ng==
+electron@^36.2.1:
+ version "36.2.1"
+ resolved "https://registry.yarnpkg.com/electron/-/electron-36.2.1.tgz#7c9d7c6c7076a3ddb7b1c326a851cb92c775b0b1"
+ integrity sha512-mm1Y+Ms46xcOTA69h8hpqfX392HfV4lga9aEkYkd/Syx1JBStvcACOIouCgGrnZpxNZPVS1jM8NTcMkNjuK6BQ==
+ dependencies:
+ "@electron/get" "^2.0.0"
+ "@types/node" "^22.7.7"
+ extract-zip "^2.0.1"
+
embla-carousel-react@^8.6.0:
version "8.6.0"
resolved "https://registry.yarnpkg.com/embla-carousel-react/-/embla-carousel-react-8.6.0.tgz#b737042a32761c38d6614593653b3ac619477bd1"
@@ -2501,6 +2655,13 @@ [email protected]:
resolved "https://registry.yarnpkg.com/embla-carousel/-/embla-carousel-8.6.0.tgz#abcedff2bff36992ea8ac27cd30080ca5b6a3f58"
integrity sha512-SjWyZBHJPbqxHOzckOfo8lHisEaJWmwd23XppYFYVh10bU66/Pn5tkVkbkCMZVdbUE5eTCI2nD8OyIP4Z+uwkA==
+end-of-stream@^1.1.0:
+ version "1.4.4"
+ resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0"
+ integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==
+ dependencies:
+ once "^1.4.0"
+
enhanced-resolve@^5.17.1, enhanced-resolve@^5.18.1:
version "5.18.1"
resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.18.1.tgz#728ab082f8b7b6836de51f1637aab5d3b9568faf"
@@ -2514,11 +2675,31 @@ entities@^6.0.0:
resolved "https://registry.yarnpkg.com/entities/-/entities-6.0.0.tgz#09c9e29cb79b0a6459a9b9db9efb418ac5bb8e51"
integrity sha512-aKstq2TDOndCn4diEyp9Uq/Flu2i1GlLkc6XIDQSDMuaFE3OPW5OphLCyQ5SpSJZTb4reN+kTcYru5yIfXoRPw==
+env-paths@^2.2.0:
+ version "2.2.1"
+ resolved "https://registry.yarnpkg.com/env-paths/-/env-paths-2.2.1.tgz#420399d416ce1fbe9bc0a07c62fa68d67fd0f8f2"
+ integrity sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==
+
+es-define-property@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/es-define-property/-/es-define-property-1.0.1.tgz#983eb2f9a6724e9303f61addf011c72e09e0b0fa"
+ integrity sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==
+
+es-errors@^1.3.0:
+ version "1.3.0"
+ resolved "https://registry.yarnpkg.com/es-errors/-/es-errors-1.3.0.tgz#05f75a25dab98e4fb1dcd5e1472c0546d5057c8f"
+ integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==
+
es-module-lexer@^1.7.0:
version "1.7.0"
resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-1.7.0.tgz#9159601561880a85f2734560a9099b2c31e5372a"
integrity sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==
+es6-error@^4.1.1:
+ version "4.1.1"
+ resolved "https://registry.yarnpkg.com/es6-error/-/es6-error-4.1.1.tgz#9e3af407459deed47e9a91f9b885a84eb05c561d"
+ integrity sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==
+
esbuild@^0.25.0, esbuild@~0.25.0:
version "0.25.4"
resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.25.4.tgz#bb9a16334d4ef2c33c7301a924b8b863351a0854"
@@ -2555,6 +2736,11 @@ escalade@^3.2.0:
resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.2.0.tgz#011a3f69856ba189dffa7dc8fcce99d2a87903e5"
integrity sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==
+escape-string-regexp@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34"
+ integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==
+
escape-string-regexp@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz#4683126b500b61762f2dbebace1806e8be31b1c8"
@@ -2693,6 +2879,17 @@ expect-type@^1.2.1:
resolved "https://registry.yarnpkg.com/expect-type/-/expect-type-1.2.1.tgz#af76d8b357cf5fa76c41c09dafb79c549e75f71f"
integrity sha512-/kP8CAwxzLVEeFrMm4kMmy4CCDlpipyA7MYLVrdJIkV0fYF0UaigQHRsxHiuY/GEea+bh4KSv3TIlgr+2UL6bw==
+extract-zip@^2.0.1:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/extract-zip/-/extract-zip-2.0.1.tgz#663dca56fe46df890d5f131ef4a06d22bb8ba13a"
+ integrity sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==
+ dependencies:
+ debug "^4.1.1"
+ get-stream "^5.1.0"
+ yauzl "^2.10.0"
+ optionalDependencies:
+ "@types/yauzl" "^2.9.1"
+
fast-equals@^5.0.1:
version "5.2.2"
resolved "https://registry.yarnpkg.com/fast-equals/-/fast-equals-5.2.2.tgz#885d7bfb079fac0ce0e8450374bce29e9b742484"
@@ -2716,6 +2913,13 @@ fastq@^1.6.0:
dependencies:
reusify "^1.0.4"
+fd-slicer@~1.1.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/fd-slicer/-/fd-slicer-1.1.0.tgz#25c7c89cb1f9077f8891bbe61d8f390eae256f1e"
+ integrity sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==
+ dependencies:
+ pend "~1.2.0"
+
fdir@^6.4.4:
version "6.4.4"
resolved "https://registry.yarnpkg.com/fdir/-/fdir-6.4.4.tgz#1cfcf86f875a883e19a8fab53622cfe992e8d2f9"
@@ -2737,6 +2941,15 @@ framer-motion@^12.12.1:
motion-utils "^12.12.1"
tslib "^2.4.0"
+fs-extra@^8.1.0:
+ version "8.1.0"
+ resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0"
+ integrity sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==
+ dependencies:
+ graceful-fs "^4.2.0"
+ jsonfile "^4.0.0"
+ universalify "^0.1.0"
+
fsevents@~2.3.2, fsevents@~2.3.3:
version "2.3.3"
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6"
@@ -2757,6 +2970,13 @@ get-nonce@^1.0.0:
resolved "https://registry.yarnpkg.com/get-nonce/-/get-nonce-1.0.1.tgz#fdf3f0278073820d2ce9426c18f07481b1e0cdf3"
integrity sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==
+get-stream@^5.1.0:
+ version "5.2.0"
+ resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-5.2.0.tgz#4966a1795ee5ace65e706c4b7beb71257d6e22d3"
+ integrity sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==
+ dependencies:
+ pump "^3.0.0"
+
get-tsconfig@^4.10.0, get-tsconfig@^4.7.5, get-tsconfig@^4.8.1:
version "4.10.1"
resolved "https://registry.yarnpkg.com/get-tsconfig/-/get-tsconfig-4.10.1.tgz#d34c1c01f47d65a606c37aa7a177bc3e56ab4b2e"
@@ -2781,6 +3001,18 @@ glob-parent@^5.1.2, glob-parent@~5.1.2:
dependencies:
is-glob "^4.0.1"
+global-agent@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/global-agent/-/global-agent-3.0.0.tgz#ae7cd31bd3583b93c5a16437a1afe27cc33a1ab6"
+ integrity sha512-PT6XReJ+D07JvGoxQMkT6qji/jVNfX/h364XHZOWeRzy64sSFr+xJ5OX7LI3b4MPQzdL4H8Y8M0xzPpsVMwA8Q==
+ dependencies:
+ boolean "^3.0.1"
+ es6-error "^4.1.1"
+ matcher "^3.0.0"
+ roarr "^2.15.3"
+ semver "^7.3.2"
+ serialize-error "^7.0.1"
+
globals@^11.1.0:
version "11.12.0"
resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e"
@@ -2796,12 +3028,42 @@ globals@^16.0.0:
resolved "https://registry.yarnpkg.com/globals/-/globals-16.1.0.tgz#ee6ab147d41c64e9f2beaaaf66572d18df8e1e60"
integrity sha512-aibexHNbb/jiUSObBgpHLj+sIuUmJnYcgXBlrfsiDZ9rt4aF2TFRbyLgZ2iFQuVZ1K5Mx3FVkbKRSgKrbK3K2g==
+globalthis@^1.0.1:
+ version "1.0.4"
+ resolved "https://registry.yarnpkg.com/globalthis/-/globalthis-1.0.4.tgz#7430ed3a975d97bfb59bcce41f5cabbafa651236"
+ integrity sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==
+ dependencies:
+ define-properties "^1.2.1"
+ gopd "^1.0.1"
+
goober@^2.1.16:
version "2.1.16"
resolved "https://registry.yarnpkg.com/goober/-/goober-2.1.16.tgz#7d548eb9b83ff0988d102be71f271ca8f9c82a95"
integrity sha512-erjk19y1U33+XAMe1VTvIONHYoSqE4iS7BYUZfHaqeohLmnC0FdxEh7rQU+6MZ4OajItzjZFSRtVANrQwNq6/g==
-graceful-fs@^4.2.4:
+gopd@^1.0.1:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.2.0.tgz#89f56b8217bdbc8802bd299df6d7f1081d7e51a1"
+ integrity sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==
+
+got@^11.8.5:
+ version "11.8.6"
+ resolved "https://registry.yarnpkg.com/got/-/got-11.8.6.tgz#276e827ead8772eddbcfc97170590b841823233a"
+ integrity sha512-6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g==
+ dependencies:
+ "@sindresorhus/is" "^4.0.0"
+ "@szmarczak/http-timer" "^4.0.5"
+ "@types/cacheable-request" "^6.0.1"
+ "@types/responselike" "^1.0.0"
+ cacheable-lookup "^5.0.3"
+ cacheable-request "^7.0.2"
+ decompress-response "^6.0.0"
+ http2-wrapper "^1.0.0-beta.5.2"
+ lowercase-keys "^2.0.0"
+ p-cancelable "^2.0.0"
+ responselike "^2.0.0"
+
+graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.4:
version "4.2.11"
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3"
integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==
@@ -2816,6 +3078,13 @@ has-flag@^4.0.0:
resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b"
integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==
+has-property-descriptors@^1.0.0:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz#963ed7d071dc7bf5f084c5bfbe0d1b6222586854"
+ integrity sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==
+ dependencies:
+ es-define-property "^1.0.0"
+
hasown@^2.0.2:
version "2.0.2"
resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.2.tgz#003eaf91be7adc372e84ec59dc37252cedb80003"
@@ -2830,6 +3099,11 @@ html-encoding-sniffer@^4.0.0:
dependencies:
whatwg-encoding "^3.1.1"
+http-cache-semantics@^4.0.0:
+ version "4.2.0"
+ resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-4.2.0.tgz#205f4db64f8562b76a4ff9235aa5279839a09dd5"
+ integrity sha512-dTxcvPXqPvXBQpq5dUr6mEMJX4oIEFv6bwom3FDwKRDsuIjjJGANqhBuoAn9c1RQJIdAKav33ED65E2ys+87QQ==
+
http-proxy-agent@^7.0.2:
version "7.0.2"
resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz#9a8b1f246866c028509486585f62b8f2c18c270e"
@@ -2838,6 +3112,14 @@ http-proxy-agent@^7.0.2:
agent-base "^7.1.0"
debug "^4.3.4"
+http2-wrapper@^1.0.0-beta.5.2:
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/http2-wrapper/-/http2-wrapper-1.0.3.tgz#b8f55e0c1f25d4ebd08b3b0c2c079f9590800b3d"
+ integrity sha512-V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg==
+ dependencies:
+ quick-lru "^5.1.1"
+ resolve-alpn "^1.0.0"
+
https-proxy-agent@^7.0.6:
version "7.0.6"
resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz#da8dfeac7da130b05c2ba4b59c9b6cd66611a6b9"
@@ -2950,11 +3232,35 @@ jsesc@^3.0.2, jsesc@^3.1.0:
resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-3.1.0.tgz#74d335a234f67ed19907fdadfac7ccf9d409825d"
integrity sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/json-buffer/-/json-buffer-3.0.1.tgz#9338802a30d3b6605fbe0613e094008ca8c05a13"
+ integrity sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==
+
+json-stringify-safe@^5.0.1:
+ version "5.0.1"
+ resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb"
+ integrity sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==
+
json5@^2.2.3:
version "2.2.3"
resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283"
integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==
+jsonfile@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb"
+ integrity sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==
+ optionalDependencies:
+ graceful-fs "^4.1.6"
+
+keyv@^4.0.0:
+ version "4.5.4"
+ resolved "https://registry.yarnpkg.com/keyv/-/keyv-4.5.4.tgz#a879a99e29452f942439f2a405e3af8b31d4de93"
+ integrity sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==
+ dependencies:
+ json-buffer "3.0.1"
+
version "1.30.1"
resolved "https://registry.yarnpkg.com/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.30.1.tgz#3d47ce5e221b9567c703950edf2529ca4a3700ae"
@@ -3045,6 +3351,11 @@ loupe@^3.1.0, loupe@^3.1.3:
resolved "https://registry.yarnpkg.com/loupe/-/loupe-3.1.3.tgz#042a8f7986d77f3d0f98ef7990a2b2fef18b0fd2"
integrity sha512-kkIp7XSkP78ZxJEsSxW3712C6teJVoeHHwgo9zJ380de7IYyJ2ISlxojcH2pC5OFLewESmnRi/+XCDIEEVyoug==
+lowercase-keys@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-2.0.0.tgz#2603e78b7b4b0006cbca2fbcc8a3202558ac9479"
+ integrity sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==
+
lru-cache@^10.4.3:
version "10.4.3"
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.4.3.tgz#410fc8a17b70e598013df257c2446b7f3383f119"
@@ -3081,6 +3392,13 @@ magic-string@^0.30.17:
dependencies:
"@jridgewell/sourcemap-codec" "^1.5.0"
+matcher@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/matcher/-/matcher-3.0.0.tgz#bd9060f4c5b70aa8041ccc6f80368760994f30ca"
+ integrity sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==
+ dependencies:
+ escape-string-regexp "^4.0.0"
+
merge2@^1.3.0:
version "1.4.1"
resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae"
@@ -3094,6 +3412,16 @@ micromatch@^4.0.8:
braces "^3.0.3"
picomatch "^2.3.1"
+mimic-response@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-1.0.1.tgz#4923538878eef42063cb8a3e3b0798781487ab1b"
+ integrity sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==
+
+mimic-response@^3.1.0:
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-3.1.0.tgz#2d1d59af9c1b129815accc2c46a022a5ce1fa3c9"
+ integrity sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==
+
"minimatch@^9.0.3 || ^10.0.1":
version "10.0.1"
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-10.0.1.tgz#ce0521856b453c86e25f2c4c0d03e6ff7ddc440b"
@@ -3172,6 +3500,11 @@ normalize-path@^3.0.0, normalize-path@~3.0.0:
resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65"
integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==
+normalize-url@^6.0.1:
+ version "6.1.0"
+ resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-6.1.0.tgz#40d0885b535deffe3f3147bec877d05fe4c5668a"
+ integrity sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==
+
nwsapi@^2.2.16:
version "2.2.20"
resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.20.tgz#22e53253c61e7b0e7e93cef42c891154bcca11ef"
@@ -3182,6 +3515,23 @@ object-assign@^4.1.1:
resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==
+object-keys@^1.1.1:
+ version "1.1.1"
+ resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e"
+ integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==
+
+once@^1.3.1, once@^1.4.0:
+ version "1.4.0"
+ resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"
+ integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==
+ dependencies:
+ wrappy "1"
+
+p-cancelable@^2.0.0:
+ version "2.1.1"
+ resolved "https://registry.yarnpkg.com/p-cancelable/-/p-cancelable-2.1.1.tgz#aab7fbd416582fa32a3db49859c122487c5ed2cf"
+ integrity sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==
+
parse5@^7.2.1:
version "7.3.0"
resolved "https://registry.yarnpkg.com/parse5/-/parse5-7.3.0.tgz#d7e224fa72399c7a175099f45fc2ad024b05ec05"
@@ -3204,6 +3554,11 @@ pathval@^2.0.0:
resolved "https://registry.yarnpkg.com/pathval/-/pathval-2.0.0.tgz#7e2550b422601d4f6b8e26f1301bc8f15a741a25"
integrity sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==
+pend@~1.2.0:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/pend/-/pend-1.2.0.tgz#7a57eb550a6783f9115331fcf4663d5c8e007a50"
+ integrity sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==
+
picocolors@^1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.1.tgz#3d321af3eab939b083c8f929a1d12cda81c26b6b"
@@ -3242,6 +3597,11 @@ pretty-format@^27.0.2:
ansi-styles "^5.0.0"
react-is "^17.0.1"
+progress@^2.0.3:
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8"
+ integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==
+
prop-types@^15.6.2, prop-types@^15.8.1:
version "15.8.1"
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5"
@@ -3251,6 +3611,14 @@ prop-types@^15.6.2, prop-types@^15.8.1:
object-assign "^4.1.1"
react-is "^16.13.1"
+pump@^3.0.0:
+ version "3.0.2"
+ resolved "https://registry.yarnpkg.com/pump/-/pump-3.0.2.tgz#836f3edd6bc2ee599256c924ffe0d88573ddcbf8"
+ integrity sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==
+ dependencies:
+ end-of-stream "^1.1.0"
+ once "^1.3.1"
+
punycode@^2.3.1:
version "2.3.1"
resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.3.1.tgz#027422e2faec0b25e1549c3e1bd8309b9133b6e5"
@@ -3261,6 +3629,11 @@ queue-microtask@^1.2.2:
resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243"
integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==
+quick-lru@^5.1.1:
+ version "5.1.1"
+ resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-5.1.1.tgz#366493e6b3e42a3a6885e2e99d18f80fb7a8c932"
+ integrity sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==
+
random@^4.1.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/random/-/random-4.1.0.tgz#3e0fff0eea0d311e6a80fd2c91e72bb064dec363"
@@ -3399,6 +3772,11 @@ regl@^2.1.0:
resolved "https://registry.yarnpkg.com/@plotly/regl/-/regl-2.1.2.tgz#fd31e3e820ed8824d59a67ab5e766bb101b810b6"
integrity sha512-Mdk+vUACbQvjd0m/1JJjOOafmkp/EpmHjISsopEz5Av44CBq7rPC05HHNbYGKVyNUF2zmEoBS/TT0pd0SPFFyw==
+resolve-alpn@^1.0.0:
+ version "1.2.1"
+ resolved "https://registry.yarnpkg.com/resolve-alpn/-/resolve-alpn-1.2.1.tgz#b7adbdac3546aaaec20b45e7d8265927072726f9"
+ integrity sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==
+
resolve-pkg-maps@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz#616b3dc2c57056b5588c31cdf4b3d64db133720f"
@@ -3413,11 +3791,30 @@ resolve@^1.22.4:
path-parse "^1.0.7"
supports-preserve-symlinks-flag "^1.0.0"
+responselike@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/responselike/-/responselike-2.0.1.tgz#9a0bc8fdc252f3fb1cca68b016591059ba1422bc"
+ integrity sha512-4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw==
+ dependencies:
+ lowercase-keys "^2.0.0"
+
reusify@^1.0.4:
version "1.1.0"
resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.1.0.tgz#0fe13b9522e1473f51b558ee796e08f11f9b489f"
integrity sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==
+roarr@^2.15.3:
+ version "2.15.4"
+ resolved "https://registry.yarnpkg.com/roarr/-/roarr-2.15.4.tgz#f5fe795b7b838ccfe35dc608e0282b9eba2e7afd"
+ integrity sha512-CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A==
+ dependencies:
+ boolean "^3.0.1"
+ detect-node "^2.0.4"
+ globalthis "^1.0.1"
+ json-stringify-safe "^5.0.1"
+ semver-compare "^1.0.0"
+ sprintf-js "^1.1.2"
+
rollup-plugin-rename-node-modules@^1.3.1:
version "1.3.1"
resolved "https://registry.yarnpkg.com/rollup-plugin-rename-node-modules/-/rollup-plugin-rename-node-modules-1.3.1.tgz#d80091fc817ce726e7cdfc388ec2f4da286e280f"
@@ -3489,16 +3886,28 @@ seedrandom@^3.0.5:
resolved "https://registry.yarnpkg.com/seedrandom/-/seedrandom-3.0.5.tgz#54edc85c95222525b0c7a6f6b3543d8e0b3aa0a7"
integrity sha512-8OwmbklUNzwezjGInmZ+2clQmExQPvomqjL7LFqOYqtmuxRgQYqOD3mHaU+MvZn5FLUeVxVfQjwLZW/n/JFuqg==
-semver@^6.3.1:
+semver-compare@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/semver-compare/-/semver-compare-1.0.0.tgz#0dee216a1c941ab37e9efb1788f6afc5ff5537fc"
+ integrity sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==
+
+semver@^6.2.0, semver@^6.3.1:
version "6.3.1"
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4"
integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==
-semver@^7.3.6, semver@^7.5.4, semver@^7.6.0, semver@^7.6.3, semver@^7.7.1:
+semver@^7.3.2, semver@^7.3.6, semver@^7.5.4, semver@^7.6.0, semver@^7.6.3, semver@^7.7.1:
version "7.7.2"
resolved "https://registry.yarnpkg.com/semver/-/semver-7.7.2.tgz#67d99fdcd35cec21e6f8b87a7fd515a33f982b58"
integrity sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==
+serialize-error@^7.0.1:
+ version "7.0.1"
+ resolved "https://registry.yarnpkg.com/serialize-error/-/serialize-error-7.0.1.tgz#f1360b0447f61ffb483ec4157c737fab7d778e18"
+ integrity sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==
+ dependencies:
+ type-fest "^0.13.1"
+
seroval-plugins@~1.3.0:
version "1.3.1"
resolved "https://registry.yarnpkg.com/seroval-plugins/-/seroval-plugins-1.3.1.tgz#af2f65dfa4a6beeebdb83e65b875ac5eb5c226eb"
@@ -3538,6 +3947,11 @@ sourcemap-codec@^1.4.8:
resolved "https://registry.yarnpkg.com/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz#ea804bd94857402e6992d05a38ef1ae35a9ab4c4"
integrity sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==
+sprintf-js@^1.1.2:
+ version "1.1.3"
+ resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.1.3.tgz#4914b903a2f8b685d17fdf78a70e917e872e444a"
+ integrity sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==
+
stable-hash@^0.0.5:
version "0.0.5"
resolved "https://registry.yarnpkg.com/stable-hash/-/stable-hash-0.0.5.tgz#94e8837aaeac5b4d0f631d2972adef2924b40269"
@@ -3553,6 +3967,13 @@ std-env@^3.9.0:
resolved "https://registry.yarnpkg.com/std-env/-/std-env-3.9.0.tgz#1a6f7243b339dca4c9fd55e1c7504c77ef23e8f1"
integrity sha512-UGvjygr6F6tpH7o2qyqR6QYpwraIjKSdtzyBdyytFOHmPZY917kwdwLG0RbOjWOnKmnm3PeHjaoLLMie7kPLQw==
+sumchecker@^3.0.1:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/sumchecker/-/sumchecker-3.0.1.tgz#6377e996795abb0b6d348e9b3e1dfb24345a8e42"
+ integrity sha512-MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg==
+ dependencies:
+ debug "^4.1.0"
+
supports-color@^7.1.0:
version "7.2.0"
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da"
@@ -3703,6 +4124,11 @@ tsx@^4.19.2:
optionalDependencies:
fsevents "~2.3.3"
+type-fest@^0.13.1:
+ version "0.13.1"
+ resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.13.1.tgz#0172cb5bce80b0bd542ea348db50c7e21834d934"
+ integrity sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==
+
typescript-eslint@^8.25.0:
version "8.32.1"
resolved "https://registry.yarnpkg.com/typescript-eslint/-/typescript-eslint-8.32.1.tgz#1784335c781491be528ff84ab666e2f0f7591fd1"
@@ -3722,6 +4148,11 @@ undici-types@~6.21.0:
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.21.0.tgz#691d00af3909be93a7faa13be61b3a5b50ef12cb"
integrity sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==
+universalify@^0.1.0:
+ version "0.1.2"
+ resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66"
+ integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==
+
unplugin@^2.1.2:
version "2.3.4"
resolved "https://registry.yarnpkg.com/unplugin/-/unplugin-2.3.4.tgz#f3cf35f36656404cb9078be59f993941d649d87c"
@@ -3951,6 +4382,11 @@ why-is-node-running@^2.3.0:
siginfo "^2.0.0"
stackback "0.0.2"
+wrappy@1:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
+ integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==
+
ws@^8.18.0:
version "8.18.2"
resolved "https://registry.yarnpkg.com/ws/-/ws-8.18.2.tgz#42738b2be57ced85f46154320aabb51ab003705a"
@@ -3976,6 +4412,14 @@ yallist@^5.0.0:
resolved "https://registry.yarnpkg.com/yallist/-/yallist-5.0.0.tgz#00e2de443639ed0d78fd87de0d27469fbcffb533"
integrity sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==
+yauzl@^2.10.0:
+ version "2.10.0"
+ resolved "https://registry.yarnpkg.com/yauzl/-/yauzl-2.10.0.tgz#c7eb17c93e112cb1086fa6d8e51fb0667b79a5f9"
+ integrity sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==
+ dependencies:
+ buffer-crc32 "~0.2.3"
+ fd-slicer "~1.1.0"
+
zod@^3.24.2, zod@^3.25.17:
version "3.25.17"
resolved "https://registry.yarnpkg.com/zod/-/zod-3.25.17.tgz#6089bd3f72de38e15a25e129fe1ef443d9440ad4"