A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.
feat: organigram
dextmorgnc9e4dff529b7
diff --git a/flowsint-web/next.config.js b/flowsint-web/next.config.jsindex 9ee78ea8..759852e1 100644--- a/flowsint-web/next.config.js+++ b/flowsint-web/next.config.js@@ -1,6 +1,15 @@/** @type {import('next').NextConfig} */const nextConfig = {output: "standalone",+ webpack: (config) => {+ // This is necessary for graphology to work with Next.js+ config.resolve.fallback = {+ fs: false,+ path: false,+ };++ return config;+ },experimental: {authInterrupts: true,reactCompiler: true,diff --git a/flowsint-web/package.json b/flowsint-web/package.jsonindex 1ca6cc91..a718b856 100644--- a/flowsint-web/package.json+++ b/flowsint-web/package.json@@ -75,15 +75,15 @@"intl-messageformat": "^10.5.0","lodash.debounce": "^4.0.8","lucide-react": "^0.475.0",- "next": "15.2.0",+ "next": "^15.2.5","next-themes": "^0.4.4","nextjs-toploader": "^3.7.15","nuqs": "^2.4.0","popover": "^2.4.1","postcss": "^8.5.1",- "react": "^19.0.0",+ "react": "^19.1.0","react-day-picker": "8.10.1",- "react-dom": "^19.0.0",+ "react-dom": "^19.1.0","react-force-graph-2d": "^1.27.0","react-highlight-words": "^0.21.0","react-hook-form": "^7.54.2",@@ -91,21 +91,23 @@"react-resizable-panels": "^2.1.7","react-simple-maps": "^3.0.0","recharts": "^2.15.1",+ "sigma": "^3.0.1","sonner": "^1.7.4","swr": "^2.3.0","tailwind-merge": "^3.0.1","tailwindcss": "^4.0.3","tailwindcss-animate": "^1.0.7","usehooks-ts": "^3.1.1",+ "uuid": "^11.1.0","vaul": "^1.1.2","zod": "^3.24.2"},"devDependencies": {"@next/eslint-plugin-next": "15.0.4","@react-types/shared": "3.25.0",- "@types/node": "20.5.7",- "@types/react": "^19.0.0",- "@types/react-dom": "^19.0.0",+ "@types/node": "^22.14.0",+ "@types/react": "^19.1.0",+ "@types/react-dom": "^19.1.2","@typescript-eslint/eslint-plugin": "8.11.0","@typescript-eslint/parser": "8.11.0","autoprefixer": "10.4.19",@@ -121,7 +123,7 @@"eslint-plugin-unused-imports": "4.1.4","prettier": "3.3.3","tailwind-variants": "0.1.20",- "typescript": "5.6.3"+ "typescript": "^5.8.3"},"optionalDependencies": {"@tailwindcss/oxide-linux-x64-gnu": "^4.0.1",diff --git a/flowsint-web/src/app/api/projects/[project_id]/organigrams/[organization_id]/sketch/initial.js b/flowsint-web/src/app/api/projects/[project_id]/organigrams/[organization_id]/sketch/initial.jsdeleted file mode 100644index 411d11e9..00000000--- a/flowsint-web/src/app/api/projects/[project_id]/organigrams/[organization_id]/sketch/initial.js+++ /dev/null@@ -1,120 +0,0 @@-import { faker } from '@faker-js/faker';--export const generateOrganigram = ({- numDepartments = 4,- managersPerDepartment = 3,- employeesPerManager = 10,-} = {}) => {- const nodes = [];- const edges = [];- let nodeId = 1;-- // CEO- const ceoName = faker.person.fullName();- nodes.push({- id: `${nodeId}`,- type: 'custom',- data: {- label: `${ceoName}\n(Chief Executive Officer)`,- type: 'individual',- },- position: { x: 600, y: 0 },- });- const ceoId = `${nodeId}`;- nodeId++;-- const vpIds = [];-- const departments = [- 'Engineering',- 'Sales',- 'Marketing',- 'Human Resources',- 'Product',- 'Finance',- 'Customer Success',- ].slice(0, numDepartments);-- departments.forEach((dept, i) => {- const vpName = faker.person.fullName();- const vpId = `${nodeId}`;- vpIds.push(vpId);- nodes.push({- id: vpId,- type: 'custom',- data: {- label: `${vpName}\n(VP of ${dept})`,- type: 'individual',- },- position: { x: 300 * i, y: 150 },- });- edges.push({- id: `e${ceoId}-${vpId}`,- source: ceoId,- target: vpId,- type: 'smoothstep',- label: 'reports to',- });- nodeId++;- });-- vpIds.forEach((vpId, i) => {- const managerIds = [];-- for (let m = 0; m < managersPerDepartment; m++) {- const managerId = `${nodeId}`;- managerIds.push(managerId);- const managerName = faker.person.fullName();-- nodes.push({- id: managerId,- type: 'custom',- data: {- label: `${managerName}\n(Manager)`,- type: 'individual',- },- position: { x: 300 * i + m * 100 - 100, y: 300 },- });-- edges.push({- id: `e${vpId}-${managerId}`,- source: vpId,- target: managerId,- type: 'smoothstep',- label: 'manages',- });-- nodeId++;- }-- managerIds.forEach((managerId, j) => {- for (let e = 0; e < employeesPerManager; e++) {- const empId = `${nodeId}`;- const empName = faker.person.fullName();- const role = faker.person.jobTitle();- nodes.push({- id: empId,- type: 'custom',- data: {- label: `${empName}\n(${role})`,- type: 'individual',- },- position: {- x: 300 * i + j * 100 + (e - employeesPerManager / 2) * 20,- y: 450,- },- });- edges.push({- id: `e${managerId}-${empId}`,- source: managerId,- target: empId,- type: 'smoothstep',- label: 'supervises',- });- nodeId++;- }- });- });-- return { nodes, edges };-};diff --git a/flowsint-web/src/app/api/projects/[project_id]/organigrams/[organization_id]/sketch/route.ts b/flowsint-web/src/app/api/projects/[project_id]/organigrams/[organization_id]/sketch/route.tsindex 16c559bb..9c5525b6 100644--- a/flowsint-web/src/app/api/projects/[project_id]/organigrams/[organization_id]/sketch/route.ts+++ b/flowsint-web/src/app/api/projects/[project_id]/organigrams/[organization_id]/sketch/route.ts@@ -1,7 +1,5 @@import { createClient } from "@/lib/supabase/server"-import type { NodeData, EdgeData } from "@/types"import { NextResponse } from "next/server"-import { generateOrganigram } from './initial'export async function GET(_: Request, { params }: { params: Promise<{ organization_id: string }> }) {const { organization_id } = await paramsconst supabase = await createClient()@@ -13,18 +11,12 @@ export async function GET(_: Request, { params }: { params: Promise<{ organizatiif (!user || userError) {return NextResponse.json({ error: "Unauthorized" }, { status: 401 })}- // const { data: graphData, error: graphError } = await supabase- // .from("organization_graph")- // .select("*")- // .eq("organization_id", organization_id)- // .single();- const graphData = generateOrganigram(- {- numDepartments: 5,- managersPerDepartment: 5,- employeesPerManager: 10,- }- )+ const { data: graphData, error: graphError } = await supabase+ .from("organization_graph")+ .select("*")+ .eq("organization_id", organization_id)+ .single();+ if (graphError) return NextResponse.json({ error: "Internal Server Error", message: graphError }, { status: 500 })return NextResponse.json(graphData, { status: 200 })} catch (error) {return NextResponse.json({ error: "Internal Server Error" }, { status: 500 })diff --git a/flowsint-web/src/components/investigations/sketch/custom-edge.tsx b/flowsint-web/src/components/investigations/sketch/custom-edge.tsxdeleted file mode 100644index a90c407b..00000000--- a/flowsint-web/src/components/investigations/sketch/custom-edge.tsx+++ /dev/null@@ -1,82 +0,0 @@-"use client"--import { useMemo, memo } from "react"-import { BaseEdge, EdgeLabelRenderer, getBezierPath, getSmoothStepPath, type EdgeProps } from "@xyflow/react"-import { useInvestigationStore } from "@/store/investigation-store"-import { Badge } from "@/components/ui/badge"--// Define proper types for the component props-interface CustomEdgeProps extends EdgeProps {- label?: string- confidence_level?: number-}--// Predefined styles to avoid object creation on each render-const getBadgeStyle = (labelX: number, labelY: number, opacity = 1) => ({- position: "absolute" as const,- transform: `translate(-50%, -50%) translate(${labelX}px,${labelY}px)`,- pointerEvents: "all" as const,- opacity,-})--// Memoize the component to prevent unnecessary re-renders-const CustomEdge = memo(- ({ id, label, confidence_level, sourceX, sourceY, targetX, targetY, style }: CustomEdgeProps) => {- // Only access the specific part of the store that's needed- const showEdgeLabel = useInvestigationStore((state) => state.settings.showEdgeLabel)-- // Memoize the path calculation to avoid recalculating on every render- const [edgePath, labelX, labelY] = useMemo(- () =>- getSmoothStepPath({- sourceX,- sourceY,- targetX,- targetY,- }),- [sourceX, sourceY, targetX, targetY],- )-- // Memoize the badge style to avoid creating a new object on every render- const badgeStyle = useMemo(- () => getBadgeStyle(labelX, labelY, typeof style?.opacity === 'number' ? style.opacity : 1),- [labelX, labelY, style?.opacity],- )-- // Determine badge color once- const badgeColor = label === "relation" ? "orange" : "blue"-- return (- <>- <BaseEdge id={id} path={edgePath} style={style} />- {showEdgeLabel && (- <EdgeLabelRenderer>- <Badge variant={label === "relation" ? "default" : "outline"} color={badgeColor} style={badgeStyle} className="nodrag nopan text-xs px-1">- {label}- {confidence_level != null && ` ${confidence_level}%`}- </Badge>- </EdgeLabelRenderer>- )}- </>- )- },- // Custom comparison function to prevent unnecessary re-renders- (prevProps, nextProps) => {- // Only re-render if these props change- return (- prevProps.sourceX === nextProps.sourceX &&- prevProps.sourceY === nextProps.sourceY &&- prevProps.targetX === nextProps.targetX &&- prevProps.targetY === nextProps.targetY &&- prevProps.label === nextProps.label &&- prevProps.confidence_level === nextProps.confidence_level &&- prevProps.style?.opacity === nextProps.style?.opacity- )- },-)--// Add display name for debugging-CustomEdge.displayName = "CustomEdge"--export default CustomEdge-diff --git a/flowsint-web/src/components/investigations/sketch/floating-edge.tsx b/flowsint-web/src/components/investigations/sketch/floating-edge.tsxdeleted file mode 100644index 040e352b..00000000--- a/flowsint-web/src/components/investigations/sketch/floating-edge.tsx+++ /dev/null@@ -1,112 +0,0 @@-"use client"--import { memo, useMemo } from "react"-import { getEdgeParams } from "@/lib/utils"-import { EdgeLabelRenderer, getBezierPath, getSmoothStepPath, getStraightPath, useInternalNode } from "@xyflow/react"-import { useInvestigationStore } from "@/store/investigation-store"-import { Badge } from "@/components/ui/badge"--function FloatingEdge({- id,- source,- target,- markerEnd,- label,- confidence_level,- sourceX,- sourceY,- targetX,- targetY,- style,-}: any) {- const sourceNode = useInternalNode(source)- const targetNode = useInternalNode(target)- const { settings } = useInvestigationStore()-- // Si les nœuds source ou cible n'existent pas, on ne rend rien- if (!sourceNode || !targetNode) {- return null- }-- // Mémorisation des paramètres de l'arête- const edgeParameters = useMemo(() => {- return getEdgeParams(sourceNode, targetNode)- }, [sourceNode, targetNode])-- // Mémorisation du calcul du chemin et des coordonnées du label- const pathData = useMemo(() => {- const { sx, sy, tx, ty } = edgeParameters- return getStraightPath({- sourceX: sx,- sourceY: sy,- targetX: tx,- targetY: ty,- })- }, [edgeParameters])-- // Mémorisation du style du badge- const badgeStyle = useMemo(- () => ({- position: "absolute" as const,- transform: `translate(-50%, -50%) translate(${pathData[1]}px,${pathData[2]}px)`,- pointerEvents: "all" as const,- opacity: style?.opacity || 1,- stroke: style?.stroke || "#b1b1b750",- }),- [pathData, style?.opacity, style?.stroke],- )-- // Mémorisation du contenu du badge- const badgeContent = useMemo(- () => (- <>- {label} {confidence_level && <>{confidence_level}%</>}- </>- ),- [label, confidence_level],- )-- // Mémorisation du badge complet- const edgeLabel = useMemo(() => {- let labelElement = null- if (settings.showEdgeLabel) {- labelElement = (- <Badge- color={label === "relation" ? "orange" : "blue"}- style={badgeStyle}- className="nodrag nopan bg-primary/80 backdrop-blur leading-3.5 border border-primary !text-[.6rem] !px-1 !py-0"- >- {badgeContent}- </Badge>- )- }- return labelElement- }, [settings.showEdgeLabel, label, badgeStyle, badgeContent])-- return (- <>- <path id={id} className="react-flow__edge-path" d={pathData[0]} markerEnd={markerEnd} style={style} />- <EdgeLabelRenderer>{edgeLabel}</EdgeLabelRenderer>- </>- )-}--// Fonction de comparaison personnalisée pour memo-function arePropsEqual(prevProps: any, nextProps: any) {- return (- prevProps.id === nextProps.id &&- prevProps.source === nextProps.source &&- prevProps.target === nextProps.target &&- prevProps.label === nextProps.label &&- prevProps.confidence_level === nextProps.confidence_level &&- prevProps.style?.opacity === nextProps.style?.opacity &&- prevProps.sourceX === nextProps.sourceX &&- prevProps.sourceY === nextProps.sourceY &&- prevProps.targetX === nextProps.targetX &&- prevProps.targetY === nextProps.targetY- )-}--// Export du composant mémorisé-export default memo(FloatingEdge, arePropsEqual)-diff --git a/flowsint-web/src/components/investigations/sketch/graph.tsx b/flowsint-web/src/components/investigations/sketch/graph.tsxindex 9cdc5964..41de8d89 100644--- a/flowsint-web/src/components/investigations/sketch/graph.tsx+++ b/flowsint-web/src/components/investigations/sketch/graph.tsx@@ -41,7 +41,7 @@ import { memo } from "react"import { shallow } from "zustand/shallow"import { TooltipProvider } from "@/components/ui/tooltip"import NodeContextMenu from "./nodes/node-context-menu"-import CustomEdge from "./nodes/custom-edge"+import CustomEdge from "../../ui/custom-edge"import {ResizableHandle,ResizablePanel,@@ -52,9 +52,10 @@ import ProfilePanel from "./profile-panel"import CustomNode from "./nodes/custom-node"import { Dialog, DialogTrigger } from "@/components/ui/dialog"import FullscreenButton from "@/components/full-screen-button"+import FloatingEdge from "./simple-floating-edge"const edgeTypes = {- custom: CustomEdge,+ custom: FloatingEdge,}const nodeTypes = {custom: CustomNode,diff --git a/flowsint-web/src/components/investigations/sketch/nodes/button-edge.tsx b/flowsint-web/src/components/investigations/sketch/nodes/button-edge.tsxdeleted file mode 100644index df5d4a5c..00000000--- a/flowsint-web/src/components/investigations/sketch/nodes/button-edge.tsx+++ /dev/null@@ -1,52 +0,0 @@--// ButtonEdge.tsx-import { ReactNode, memo } from "react";-import {- BaseEdge,- EdgeLabelRenderer,- EdgeProps,- getStraightPath,- useStore,-} from "@xyflow/react";-import { zoomSelector } from "@/lib/utils";-import { useInvestigationStore } from "@/store/investigation-store";--// Mémorisation du composant ButtonEdge-export const ButtonEdge = memo(({- sourceX,- sourceY,- targetX,- targetY,- style = {},- markerEnd,- children,-}: EdgeProps & { children: ReactNode }) => {- const [edgePath, labelX, labelY] = getStraightPath({- sourceX,- sourceY,- targetX,- targetY,- });-- const showContent = useStore(zoomSelector);- const showNodeLabel = useInvestigationStore(state => state.settings.showNodeLabel);- return (- <>- <BaseEdge className="opacity-30" path={edgePath} markerEnd={markerEnd} style={style} />- <EdgeLabelRenderer>- {showNodeLabel && showContent &&- <div- className="nodrag nopan pointer-events-auto absolute"- style={{- ...style,- transform: `translate(-50%, -50%) translate(${labelX}px,${labelY}px)`,- }}- >- {children}- </div>}- </EdgeLabelRenderer>- </>- );-});--ButtonEdge.displayName = "ButtonEdge";\ No newline at end of filediff --git a/flowsint-web/src/components/investigations/sketch/profile-panel.tsx b/flowsint-web/src/components/investigations/sketch/profile-panel.tsxindex cebed63b..5f8236cf 100644--- a/flowsint-web/src/components/investigations/sketch/profile-panel.tsx+++ b/flowsint-web/src/components/investigations/sketch/profile-panel.tsx@@ -52,11 +52,11 @@ export default function ProfilePanel({ data, type }: { data: any, type: string }{data?.type === "organization" ?<Link href={`/dashboard/projects/${project_id}/organigrams/${data.id}`}><Button- className="relative min-w-[80px] h-8 overflow-hidden bg-gradient-to-r from-purple-600 to-indigo-400 hover:from-purple-700 hover:to-indigo-500 transition-all duration-300 px-6 py-2 text-white border-none font-medium rounded-full"+ className="relative min-w-[80px] h-8 overflow-hidden truncate bg-gradient-to-r from-purple-600 to-indigo-400 hover:from-purple-700 hover:to-indigo-500 transition-all duration-300 px-6 py-2 text-white border-none font-medium rounded-full">- <span className="flex items-center gap-2">+ <span className="flex items-center truncate gap-2"><Sparkles className={'h-4 w-4 transition-transform duration-300'} />- <span>View organigram</span>+ <span className="block truncate">Organigram</span></span><span className="absolute inset-0 bg-black opacity-0 hover:opacity-10 transition-opacity duration-300" /></Button>diff --git a/flowsint-web/src/components/investigations/sketch/simple-floating-edge.tsx b/flowsint-web/src/components/investigations/sketch/simple-floating-edge.tsxindex 1efe4b5e..ac2ff946 100644--- a/flowsint-web/src/components/investigations/sketch/simple-floating-edge.tsx+++ b/flowsint-web/src/components/investigations/sketch/simple-floating-edge.tsx@@ -13,23 +13,19 @@ interface FloatingEdgeProps {function FloatingEdge({ id, source, target, markerEnd, style }: FloatingEdgeProps) {const sourceNode = useInternalNode(source);const targetNode = useInternalNode(target);-if (!sourceNode || !targetNode) {return null;}-const { sx, sy, tx, ty } = getEdgeParams(sourceNode,targetNode,);-const [edgePath] = getStraightPath({sourceX: sx,sourceY: sy,targetX: tx,targetY: ty,});-return (<pathid={id}diff --git a/flowsint-web/src/components/organigrams/graph.tsx b/flowsint-web/src/components/organigrams/graph.tsxindex 7813107e..40088c73 100644--- a/flowsint-web/src/components/organigrams/graph.tsx+++ b/flowsint-web/src/components/organigrams/graph.tsx@@ -49,10 +49,14 @@ import FullscreenButton from "@/components/full-screen-button"import ProfilePanel from "../investigations/sketch/profile-panel"import NodesPanel from "../investigations/sketch/nodes-panel"import OrganigramNode from "./organigram-node"+import OrganigramEdge from './organigram-edge'const nodeTypes = {- custodm: OrganigramNode,+ custom: OrganigramNode,}+const edgeTypes = {+ custom: OrganigramEdge,+}// Better selectors with more specific equality comparisonsconst nodeEdgeSelector = (state: { nodes: any; edges: any }) => ({nodes: state.nodes,@@ -284,6 +288,7 @@ const LayoutFlow = memo(({ refetch, theme }: any) => {minZoom: 0.5,fitView: true,nodeTypes,+ edgeTypes,proOptions: { hideAttribution: true },className: "!bg-accent dark:!bg-background"}), [diff --git a/flowsint-web/src/components/organigrams/organigram-edge.tsx b/flowsint-web/src/components/organigrams/organigram-edge.tsxnew file mode 100644index 00000000..8cc97d7e--- /dev/null+++ b/flowsint-web/src/components/organigrams/organigram-edge.tsx@@ -0,0 +1,123 @@+// EditableEdge.tsx+"use client"++import type React from "react"+import type { EdgeProps } from "@xyflow/react"+import { memo, useCallback, useState, useRef, useMemo } from "react"+import { supabase } from "@/lib/supabase/client"+import { Check, Loader2 } from "lucide-react"+import { Button } from "@/components/ui/button"+import { Input } from "@/components/ui/input"+import { cn } from "@/lib/utils"+import { ButtonEdge } from "../ui/button-edge"+import { toast } from "sonner"++const EditableEdge = memo((props: EdgeProps) => {+ const { id, label, data } = props+ const [isEditing, setIsEditing] = useState(false)+ const [isLoading, setIsLoading] = useState(false)+ const [editValue, setEditValue] = useState((label as string) || "")+ const submitButtonRef = useRef<HTMLButtonElement>(null)++ const handleEditClick = useCallback(() => {+ setIsEditing(true)+ }, [])++ const handleInputBlur = useCallback((e: React.FocusEvent) => {+ if (submitButtonRef.current && submitButtonRef.current.contains(e.relatedTarget as Node)) {+ return+ }+ setIsEditing(false)+ }, [])++ const handleSave = useCallback(+ async (e: React.FormEvent) => {+ e.preventDefault()+ e.stopPropagation()+ if (!id) return+ setIsLoading(true)+ try {+ const { error } = await supabase+ .from("relationships")+ .update({ relation_type: editValue })+ .eq("id", id.toString())+ const { error: error2 } = await supabase+ .from("organizations_individuals")+ .update({ relation_type: editValue })+ .eq("id", id.toString())+ const { error: error3 } = await supabase+ .from("organizations_organizations")+ .update({ relation_type: editValue })+ .eq("id", id.toString())+ if (error || error2) {+ toast.error("An error occurred: " + JSON.stringify(error3))+ } else {+ toast.success("Relation updated.")+ }+ } catch (err) {+ toast.error("An error occurred.")+ } finally {+ setIsLoading(false)+ setIsEditing(false)+ }+ },+ [id, editValue],+ )++ const handleInputChange = useCallback((e: React.ChangeEvent<HTMLInputElement>) => {+ setEditValue(e.target.value)+ }, [])++ const buttonEdgeProps = useMemo(() => {+ const { label: _, ...restProps } = props;+ return restProps;+ }, [props.sourceX, props.sourceY, props.targetX, props.targetY, props.style, props.markerEnd]);++ const formContent = useMemo(() => {+ if (isEditing) {+ return (+ <div className="flex items-center gap-1 bg-background border rounded-md p-1 shadow-sm">+ <Input+ autoFocus+ value={editValue}+ onChange={handleInputChange}+ onBlur={handleInputBlur}+ className="h-5 text-xs max-w-28 rounded-sm"+ />+ <Button+ ref={submitButtonRef}+ size="icon"+ variant="ghost"+ className="h-5 w-5"+ type="submit"+ disabled={isLoading}+ >+ {isLoading ? <Loader2 className="h-3.5 w-3.5 animate-spin" /> : <Check className="h-3.5 w-3.5" />}+ </Button>+ </div>+ );+ }+ return (+ <Button+ onClick={handleEditClick}+ size="sm"+ variant="secondary"+ className={cn("text-xs px-1 py-.5 h-auto", !editValue && "opacity-70")}+ >+ {editValue || ""}+ </Button>+ );+ }, [isEditing, editValue, isLoading, handleInputChange, handleInputBlur, handleEditClick]);++ return (+ <ButtonEdge {...buttonEdgeProps}>+ <form onSubmit={handleSave} className="flex items-center justify-center h-full">+ {formContent}+ </form>+ </ButtonEdge>+ )+});++EditableEdge.displayName = "OrganigramEdge"++export default EditableEdge\ No newline at end of filediff --git a/flowsint-web/src/components/organigrams/organigram-node.tsx b/flowsint-web/src/components/organigrams/organigram-node.tsxindex be2ede08..00a676c4 100644--- a/flowsint-web/src/components/organigrams/organigram-node.tsx+++ b/flowsint-web/src/components/organigrams/organigram-node.tsx@@ -13,11 +13,9 @@ export default memo(({ data }: any) => {const Icon = item?.icon || QuestionMarkIcon;const currentNodeId = useFlowStore(state => state.currentNode?.id,(prev, next) => prev === next);-const active = currentNodeId === data.id;-return (- <BaseNode className={cn('p-.5 rounded-full', typeColorMap[data.type])} selected={active}>+ <BaseNode className={cn('p-.5 rounded-md', typeColorMap[data.type])} selected={active}><div className="inline-flex items-center gap-2 p-1 w-auto"><Badge variant="secondary" className={cn("p-0 rounded-full", item?.size || "h-5 w-5")}><Icon className="h-4 w-4" />diff --git a/flowsint-web/src/components/ui/button-edge.tsx b/flowsint-web/src/components/ui/button-edge.tsxnew file mode 100644index 00000000..b57e7ef4--- /dev/null+++ b/flowsint-web/src/components/ui/button-edge.tsx@@ -0,0 +1,44 @@++// ButtonEdge.tsx+import { ReactNode, memo } from "react";+import {+ BaseEdge,+ EdgeLabelRenderer,+ EdgeProps,+ getSimpleBezierPath,+ // useStore,+} from "@xyflow/react";+export const ButtonEdge = memo(({+ sourceX,+ sourceY,+ targetX,+ targetY,+ style = {},+ markerEnd,+ children,+}: EdgeProps & { children: ReactNode }) => {+ const [edgePath, labelX, labelY] = getSimpleBezierPath({+ sourceX,+ sourceY,+ targetX,+ targetY,+ });+ return (+ <>+ <BaseEdge className="opacity-30" path={edgePath} markerEnd={markerEnd} style={style} />+ <EdgeLabelRenderer>+ <div+ className="nodrag nopan pointer-events-auto absolute"+ style={{+ ...style,+ transform: `translate(-50%, -50%) translate(${labelX}px,${labelY}px)`,+ }}+ >+ {children}+ </div>+ </EdgeLabelRenderer>+ </>+ );+});++ButtonEdge.displayName = "ButtonEdge";\ No newline at end of filediff --git a/flowsint-web/src/components/investigations/sketch/nodes/custom-edge.tsx b/flowsint-web/src/components/ui/custom-edge.tsxsimilarity index 93%rename from flowsint-web/src/components/investigations/sketch/nodes/custom-edge.tsxrename to flowsint-web/src/components/ui/custom-edge.tsxindex 35db641d..9a1142e3 100644--- a/flowsint-web/src/components/investigations/sketch/nodes/custom-edge.tsx+++ b/flowsint-web/src/components/ui/custom-edge.tsx@@ -48,7 +48,11 @@ const EditableEdge = memo((props: EdgeProps) => {.from("organizations_individuals").update({ relation_type: editValue }).eq("id", id.toString())- if (error || error2) {+ const { error: error3 } = await supabase+ .from("organizations_organizations")+ .update({ relation_type: editValue })+ .eq("id", id.toString())+ if (error || error2 || error3) {toast.error("An error occurred: ")} else {toast.success("Relation updated.")diff --git a/flowsint-web/src/store/flow-store.ts b/flowsint-web/src/store/flow-store.tsindex 4ac27162..0c870952 100644--- a/flowsint-web/src/store/flow-store.ts+++ b/flowsint-web/src/store/flow-store.ts@@ -150,7 +150,7 @@ const createStore = (initialNodes: AppNode[] = [], initialEdges: Edge[] = []) =>set({ nodes, edges });}window.requestAnimationFrame(() => {- // fitView();+ fitView();});},highlightPath: (selectedNode: Node | null) => {diff --git a/flowsint-web/styles/globals.css b/flowsint-web/styles/globals.cssindex 2faf12bf..492b7abe 100644--- a/flowsint-web/styles/globals.css+++ b/flowsint-web/styles/globals.css@@ -126,6 +126,7 @@--color-sidebar-primary: var(--sidebar-primary);--color-sidebar-foreground: var(--sidebar-foreground);--color-sidebar: var(--sidebar);+ --sigma-background-color: var(--background);--animate-accordion-down: accordion-down 0.2s ease-out;--animate-accordion-up: accordion-up 0.2s ease-out;@@ -197,4 +198,8 @@.react-flow__node-group {padding: 0px !important;border-radius: 6px !important;+}++.react-sigma {+ background-color: var(--background) !important;}\ No newline at end of filediff --git a/flowsint-web/yarn.lock b/flowsint-web/yarn.lockindex 0526b494..a8d00c08 100644--- a/flowsint-web/yarn.lock+++ b/flowsint-web/yarn.lock@@ -406,10 +406,10 @@dependencies:zod-to-json-schema "^3.24.1"-"@next/[email protected]":- version "15.2.0"- resolved "https://registry.yarnpkg.com/@next/env/-/env-15.2.0.tgz#4c3508ca2c0bb2bc324066818bb8d0415f767641"- integrity sha512-eMgJu1RBXxxqqnuRJQh5RozhskoNUDHBFybvi+Z+yK9qzKeG7dadhv/Vp1YooSZmCnegf7JxWuapV77necLZNA==+"@next/[email protected]":+ version "15.2.5"+ resolved "https://registry.yarnpkg.com/@next/env/-/env-15.2.5.tgz#4a694986388aced6045dcde1e994ed55341282ca"+ integrity sha512-uWkCf9C8wKTyQjqrNk+BA7eL3LOQdhL+xlmJUf2O85RM4lbzwBwot3Sqv2QGe/RGnc3zysIf1oJdtq9S00pkmQ=="@next/[email protected]":version "15.0.4"@@ -418,45 +418,45 @@dependencies:fast-glob "3.3.1"-"@next/[email protected]":- version "15.2.0"- resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-15.2.0.tgz#51ebba2162330ee3e8b3412bf31defd94a7b85e7"- integrity sha512-rlp22GZwNJjFCyL7h5wz9vtpBVuCt3ZYjFWpEPBGzG712/uL1bbSkS675rVAUCRZ4hjoTJ26Q7IKhr5DfJrHDA==--"@next/[email protected]":- version "15.2.0"- resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-15.2.0.tgz#90fd6c6cee494d4348342434cfb9ca9506eae895"- integrity sha512-DiU85EqSHogCz80+sgsx90/ecygfCSGl5P3b4XDRVZpgujBm5lp4ts7YaHru7eVTyZMjHInzKr+w0/7+qDrvMA==--"@next/[email protected]":- version "15.2.0"- resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-15.2.0.tgz#f10a26cdbacf2e3de2a02a926c72857b3cb613e1"- integrity sha512-VnpoMaGukiNWVxeqKHwi8MN47yKGyki5q+7ql/7p/3ifuU2341i/gDwGK1rivk0pVYbdv5D8z63uu9yMw0QhpQ==--"@next/[email protected]":- version "15.2.0"- resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-15.2.0.tgz#1821c9a1dd17c441d8182f5cefd586f7902fcdb5"- integrity sha512-ka97/ssYE5nPH4Qs+8bd8RlYeNeUVBhcnsNUmFM6VWEob4jfN9FTr0NBhXVi1XEJpj3cMfgSRW+LdE3SUZbPrw==--"@next/[email protected]":- version "15.2.0"- resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-15.2.0.tgz#522f55c7672346bab43bce0bcb35c4cb668ad20f"- integrity sha512-zY1JduE4B3q0k2ZCE+DAF/1efjTXUsKP+VXRtrt/rJCTgDlUyyryx7aOgYXNc1d8gobys/Lof9P9ze8IyRDn7Q==--"@next/[email protected]":- version "15.2.0"- resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-15.2.0.tgz#e23be1d046c9a630a0315588f9d692d9705ac355"- integrity sha512-QqvLZpurBD46RhaVaVBepkVQzh8xtlUN00RlG4Iq1sBheNugamUNPuZEH1r9X1YGQo1KqAe1iiShF0acva3jHQ==--"@next/[email protected]":- version "15.2.0"- resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-15.2.0.tgz#9e2cb008b82c676dad7d632a43549f969cb2194f"- integrity sha512-ODZ0r9WMyylTHAN6pLtvUtQlGXBL9voljv6ujSlcsjOxhtXPI1Ag6AhZK0SE8hEpR1374WZZ5w33ChpJd5fsjw==--"@next/[email protected]":- version "15.2.0"- resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-15.2.0.tgz#d280f450a5b6dbb7437c3265f81ea62febf4bf3c"- integrity sha512-8+4Z3Z7xa13NdUuUAcpVNA6o76lNPniBd9Xbo02bwXQXnZgFvEopwY2at5+z7yHl47X9qbZpvwatZ2BRo3EdZw==+"@next/[email protected]":+ version "15.2.5"+ resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-15.2.5.tgz#96648699915da3ce75ffb5de13209ee35127c984"+ integrity sha512-4OimvVlFTbgzPdA0kh8A1ih6FN9pQkL4nPXGqemEYgk+e7eQhsst/p35siNNqA49eQA6bvKZ1ASsDtu9gtXuog==++"@next/[email protected]":+ version "15.2.5"+ resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-15.2.5.tgz#a15c8d26070988806b5d5fa93401f6b8215d6e3c"+ integrity sha512-ohzRaE9YbGt1ctE0um+UGYIDkkOxHV44kEcHzLqQigoRLaiMtZzGrA11AJh2Lu0lv51XeiY1ZkUvkThjkVNBMA==++"@next/[email protected]":+ version "15.2.5"+ resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-15.2.5.tgz#2ae91e13f4c0f13cae3b5f0a9a733ed7baeed2d2"+ integrity sha512-FMSdxSUt5bVXqqOoZCc/Seg4LQep9w/fXTazr/EkpXW2Eu4IFI9FD7zBDlID8TJIybmvKk7mhd9s+2XWxz4flA==++"@next/[email protected]":+ version "15.2.5"+ resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-15.2.5.tgz#06e5b2b813fadba450acfc01cd736f7a5a426240"+ integrity sha512-4ZNKmuEiW5hRKkGp2HWwZ+JrvK4DQLgf8YDaqtZyn7NYdl0cHfatvlnLFSWUayx9yFAUagIgRGRk8pFxS8Qniw==++"@next/[email protected]":+ version "15.2.5"+ resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-15.2.5.tgz#0fe20795c73d6c8d070e333290fb8e57c6ce8caf"+ integrity sha512-bE6lHQ9GXIf3gCDE53u2pTl99RPZW5V1GLHSRMJ5l/oB/MT+cohu9uwnCK7QUph2xIOu2a6+27kL0REa/kqwZw==++"@next/[email protected]":+ version "15.2.5"+ resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-15.2.5.tgz#22b48ca266404742cf5d902849f8462fbda87141"+ integrity sha512-y7EeQuSkQbTAkCEQnJXm1asRUuGSWAchGJ3c+Qtxh8LVjXleZast8Mn/rL7tZOm7o35QeIpIcid6ufG7EVTTcA==++"@next/[email protected]":+ version "15.2.5"+ resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-15.2.5.tgz#f473ac2361cee903bf33d45611ad2a2f921e9424"+ integrity sha512-gQMz0yA8/dskZM2Xyiq2FRShxSrsJNha40Ob/M2n2+JGRrZ0JwTVjLdvtN6vCxuq4ByhOd4a9qEf60hApNR2gQ==++"@next/[email protected]":+ version "15.2.5"+ resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-15.2.5.tgz#292c1f68ea15bec061a856ee95051e73bb30d2b4"+ integrity sha512-tBDNVUcI7U03+3oMvJ11zrtVin5p0NctiuKmTGyaTIEAVj9Q77xukLXGXRnWxKRIIdFG4OTA2rUVGZDYOwgmAA=="@nodelib/[email protected]":version "2.1.5"@@ -2006,25 +2006,27 @@dependencies:undici-types "~6.20.0"-"@types/[email protected]":- version "20.5.7"- resolved "https://registry.yarnpkg.com/@types/node/-/node-20.5.7.tgz#4b8ecac87fbefbc92f431d09c30e176fc0a7c377"- integrity sha512-dP7f3LdZIysZnmvP3ANJYTSwg+wLLl8p7RqniVlV7j+oXSXAbt9h0WIBFmJy5inWZoX9wZN6eXx+YXd9Rh3RBA==+"@types/node@^22.14.0":+ version "22.14.0"+ resolved "https://registry.yarnpkg.com/@types/node/-/node-22.14.0.tgz#d3bfa3936fef0dbacd79ea3eb17d521c628bb47e"+ integrity sha512-Kmpl+z84ILoG+3T/zQFyAJsU6EPTmOCj8/2+83fSN6djd6I4o7uOuGIH6vq3PrjY5BGitSbFuMN18j3iknubbA==+ dependencies:+ undici-types "~6.21.0""@types/phoenix@^1.5.4":version "1.6.6"resolved "https://registry.yarnpkg.com/@types/phoenix/-/phoenix-1.6.6.tgz#3c1ab53fd5a23634b8e37ea72ccacbf07fbc7816"integrity sha512-PIzZZlEppgrpoT2QgbnDU+MMzuR6BbCjllj0bM70lWoejMeNJAxCchxnv7J3XFkI8MpygtRpzXrIlmWUBclP5A==-"@types/react-dom@^19.0.0":- version "19.0.3"- resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-19.0.3.tgz#0804dfd279a165d5a0ad8b53a5b9e65f338050a4"- integrity sha512-0Knk+HJiMP/qOZgMyNFamlIjw9OFCsyC2ZbigmEEyXXixgre6IQpm/4V+r3qH4GC1JPvRJKInw+on2rV6YZLeA==+"@types/react-dom@^19.1.2":+ version "19.1.2"+ resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-19.1.2.tgz#bd1fe3b8c28a3a2e942f85314dcfb71f531a242f"+ integrity sha512-XGJkWF41Qq305SKWEILa1O8vzhb3aOo3ogBlSmiqNko/WmRb6QIaweuZCXjKygVDXpzXb5wyxKTSOsmkuqj+Qw==-"@types/react@^19.0.0":- version "19.0.8"- resolved "https://registry.yarnpkg.com/@types/react/-/react-19.0.8.tgz#7098e6159f2a61e4f4cef2c1223c044a9bec590e"- integrity sha512-9P/o1IGdfmQxrujGbIMDyYaaCykhLKc0NGCtYcECNUr9UAaDe4gwvV9bR6tvd5Br1SG0j+PBpbKr2UYY8CwqSw==+"@types/react@^19.1.0":+ version "19.1.0"+ resolved "https://registry.yarnpkg.com/@types/react/-/react-19.1.0.tgz#73c43ad9bc43496ca8184332b111e2aef63fc9da"+ integrity sha512-UaicktuQI+9UKyA4njtDOGBD/67t8YEBt2xdfqu8+gP9hqPUPsiXlNPcpS2gVdjmis5GKPG3fCxbQLVgxsQZ8w==dependencies:csstype "^3.0.2"@@ -3657,6 +3659,11 @@ eventemitter3@^4.0.1:resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f"integrity sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==+events@^3.3.0:+ version "3.3.0"+ resolved "https://registry.yarnpkg.com/events/-/events-3.3.0.tgz#31a95ad0a924e2d2c419a813aeb2c4e878ea7400"+ integrity sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==+eventsource-parser@^3.0.0:version "3.0.0"resolved "https://registry.yarnpkg.com/eventsource-parser/-/eventsource-parser-3.0.0.tgz#9303e303ef807d279ee210a17ce80f16300d9f57"@@ -3946,6 +3953,11 @@ graphemer@^1.4.0:resolved "https://registry.yarnpkg.com/graphemer/-/graphemer-1.4.0.tgz#fb2f1d55e0e3a1849aeffc90c4fa0dd53a0e66c6"integrity sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==+graphology-utils@^2.5.2:+ version "2.5.2"+ resolved "https://registry.yarnpkg.com/graphology-utils/-/graphology-utils-2.5.2.tgz#4d30d6e567d27c01f105e1494af816742e8d2440"+ integrity sha512-ckHg8MXrXJkOARk56ZaSCM1g1Wihe2d6iTmz1enGOz4W/l831MBCKSayeFQfowgF8wd+PQ4rlch/56Vs/VZLDQ==+has-bigints@^1.0.2:version "1.1.0"resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.1.0.tgz#28607e965ac967e03cd2a2c70a2636a1edad49fe"@@ -4986,12 +4998,12 @@ next-themes@^0.4.4:resolved "https://registry.yarnpkg.com/next-themes/-/next-themes-0.4.4.tgz#ce6f68a4af543821bbc4755b59c0d3ced55c2d13"integrity sha512-LDQ2qIOJF0VnuVrrMSMLrWGjRMkq+0mpgl6e0juCLqdJ+oo8Q84JRWT6Wh11VDQKkMMe+dVzDKLWs5n87T+PkQ==- version "15.2.0"- resolved "https://registry.yarnpkg.com/next/-/next-15.2.0.tgz#00f4619ae4322102b08c1a8bf315f7b757525508"- integrity sha512-VaiM7sZYX8KIAHBrRGSFytKknkrexNfGb8GlG6e93JqueCspuGte8i4ybn8z4ww1x3f2uzY4YpTaBEW4/hvsoQ==+next@^15.2.5:+ version "15.2.5"+ resolved "https://registry.yarnpkg.com/next/-/next-15.2.5.tgz#2235bac18f0349156a82d1555fb5cfc18136a06b"+ integrity sha512-LlqS8ljc7RWR3riUwxB5+14v7ULAa5EuLUyarD/sFgXPd6Hmmscg8DXcu9hDdh5atybrIDVBrFhjDpRIQo/4pQ==dependencies:- "@next/env" "15.2.0"+ "@next/env" "15.2.5""@swc/counter" "0.1.3""@swc/helpers" "0.5.15"busboy "1.6.0"@@ -4999,14 +5011,14 @@ [email protected]:postcss "8.4.31"styled-jsx "5.1.6"optionalDependencies:- "@next/swc-darwin-arm64" "15.2.0"- "@next/swc-darwin-x64" "15.2.0"- "@next/swc-linux-arm64-gnu" "15.2.0"- "@next/swc-linux-arm64-musl" "15.2.0"- "@next/swc-linux-x64-gnu" "15.2.0"- "@next/swc-linux-x64-musl" "15.2.0"- "@next/swc-win32-arm64-msvc" "15.2.0"- "@next/swc-win32-x64-msvc" "15.2.0"+ "@next/swc-darwin-arm64" "15.2.5"+ "@next/swc-darwin-x64" "15.2.5"+ "@next/swc-linux-arm64-gnu" "15.2.5"+ "@next/swc-linux-arm64-musl" "15.2.5"+ "@next/swc-linux-x64-gnu" "15.2.5"+ "@next/swc-linux-x64-musl" "15.2.5"+ "@next/swc-win32-arm64-msvc" "15.2.5"+ "@next/swc-win32-x64-msvc" "15.2.5"sharp "^0.33.5"nextjs-toploader@^3.7.15:@@ -5509,12 +5521,12 @@ [email protected]:resolved "https://registry.yarnpkg.com/react-day-picker/-/react-day-picker-8.10.1.tgz#4762ec298865919b93ec09ba69621580835b8e80"integrity sha512-TMx7fNbhLk15eqcMt+7Z7S2KF7mfTId/XJDjKE8f+IUcFn0l08/kI4FiYTL/0yuOLmEcbR4Fwe3GJf/NiiMnPA==-react-dom@^19.0.0:- version "19.0.0"- resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-19.0.0.tgz#43446f1f01c65a4cd7f7588083e686a6726cfb57"- integrity sha512-4GV5sHFG0e/0AD4X+ySy6UJd3jVl1iNsNHdpad0qhABJ11twS3TTBnseqsKurKcsNqCEFeGL3uLpVChpIO3QfQ==+react-dom@^19.1.0:+ version "19.1.0"+ resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-19.1.0.tgz#133558deca37fa1d682708df8904b25186793623"+ integrity sha512-Xs1hdnE+DyKgeHJeJznQmYMIBG3TKIHJJT95Q58nHLSrElKlGQqDTR2HQ9fx5CN/Gk6Vh/kupBTDLU11/nDk/g==dependencies:- scheduler "^0.25.0"+ scheduler "^0.26.0"react-force-graph-2d@^1.27.0:version "1.27.0"@@ -5643,10 +5655,10 @@ react-transition-group@^4.4.5:loose-envify "^1.4.0"prop-types "^15.6.2"-react@^19.0.0:- version "19.0.0"- resolved "https://registry.yarnpkg.com/react/-/react-19.0.0.tgz#6e1969251b9f108870aa4bff37a0ce9ddfaaabdd"- integrity sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ==+react@^19.1.0:+ version "19.1.0"+ resolved "https://registry.yarnpkg.com/react/-/react-19.1.0.tgz#926864b6c48da7627f004795d6cce50e90793b75"+ integrity sha512-FS+XFBNvn3GTAWq26joslQgWNoFu08F4kl0J4CgdNKADkdSGXQyTCnKteIAJy96Br6YbpEU1LSzV5dYtjMkMDg==recharts-scale@^0.4.4:version "0.4.5"@@ -5821,10 +5833,10 @@ safe-regex-test@^1.0.3, safe-regex-test@^1.1.0:resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a"integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==-scheduler@^0.25.0:- version "0.25.0"- resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.25.0.tgz#336cd9768e8cceebf52d3c80e3dcf5de23e7e015"- integrity sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA==+scheduler@^0.26.0:+ version "0.26.0"+ resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.26.0.tgz#4ce8a8c2a2095f13ea11bf9a445be50c555d6337"+ integrity sha512-NlHwttCI/l5gCPR3D1nNXtWABUmBwvZpEQiD4IXSbIDq8BzLIK/7Ir5gTFSGZDUu37K5cMNp0hFtzO38sC7gWA==secure-json-parse@^2.7.0:version "2.7.0"@@ -5958,6 +5970,14 @@ side-channel@^1.1.0:side-channel-map "^1.0.1"side-channel-weakmap "^1.0.2"+sigma@^3.0.1:+ version "3.0.1"+ resolved "https://registry.yarnpkg.com/sigma/-/sigma-3.0.1.tgz#9534be7d94ccbcdcae220a1ec3ee5a656ffa9e8a"+ integrity sha512-z67BX1FhIpD+wLs2WJ7QS2aR49TcSr3YaVZ2zU8cAc5jMiUYlSbeDp4EI6euBDUpm3/lzO4pfytP/gW4BhXWuA==+ dependencies:+ events "^3.3.0"+ graphology-utils "^2.5.2"+simple-swizzle@^0.2.2:version "0.2.2"resolved "https://registry.yarnpkg.com/simple-swizzle/-/simple-swizzle-0.2.2.tgz#a4da6b635ffcccca33f70d17cb92592de95e557a"@@ -6295,10 +6315,10 @@ typed-array-length@^1.0.7:possible-typed-array-names "^1.0.0"reflect.getprototypeof "^1.0.6"- version "5.6.3"- resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.6.3.tgz#5f3449e31c9d94febb17de03cc081dd56d81db5b"- integrity sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==+typescript@^5.8.3:+ version "5.8.3"+ resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.8.3.tgz#92f8a3e5e3cf497356f4178c34cd65a7f5e8440e"+ integrity sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==uc.micro@^2.0.0, uc.micro@^2.1.0:version "2.1.0"@@ -6320,6 +6340,11 @@ undici-types@~6.20.0:resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.20.0.tgz#8171bf22c1f588d1554d55bf204bc624af388433"integrity sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==+undici-types@~6.21.0:+ version "6.21.0"+ resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.21.0.tgz#691d00af3909be93a7faa13be61b3a5b50ef12cb"+ integrity sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==+unified@^11.0.0:version "11.0.5"resolved "https://registry.yarnpkg.com/unified/-/unified-11.0.5.tgz#f66677610a5c0a9ee90cab2b8d4d66037026d9e1"@@ -6413,6 +6438,11 @@ usehooks-ts@^3.1.1:dependencies:lodash.debounce "^4.0.8"+uuid@^11.1.0:+ version "11.1.0"+ resolved "https://registry.yarnpkg.com/uuid/-/uuid-11.1.0.tgz#9549028be1753bb934fc96e2bca09bb4105ae912"+ integrity sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A==+vaul@^1.1.2:version "1.1.2"resolved "https://registry.yarnpkg.com/vaul/-/vaul-1.1.2.tgz#c959f8b9dc2ed4f7d99366caee433fbef91f5ba9"