working dnd + file moving logic
This commit is contained in:
parent
3325b20aed
commit
aa97a6771e
@ -156,6 +156,29 @@ io.on("connection", async (socket) => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
socket.on("moveFile", async (fileId: string, folderId: string, callback) => {
|
||||||
|
const file = sandboxFiles.fileData.find((f) => f.id === fileId)
|
||||||
|
if (!file) return
|
||||||
|
|
||||||
|
const parts = fileId.split("/")
|
||||||
|
const newFileId = folderId + "/" + parts.pop()
|
||||||
|
|
||||||
|
fs.rename(
|
||||||
|
path.join(dirName, fileId),
|
||||||
|
path.join(dirName, newFileId),
|
||||||
|
function (err) {
|
||||||
|
if (err) throw err
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
file.id = newFileId
|
||||||
|
|
||||||
|
await renameFile(fileId, newFileId, file.data)
|
||||||
|
const newFiles = await getSandboxFiles(data.sandboxId)
|
||||||
|
|
||||||
|
callback(newFiles.files)
|
||||||
|
})
|
||||||
|
|
||||||
socket.on("createFile", async (name: string, callback) => {
|
socket.on("createFile", async (name: string, callback) => {
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
@ -562,12 +562,14 @@ export default function CodeEditor({
|
|||||||
|
|
||||||
{/* Main editor components */}
|
{/* Main editor components */}
|
||||||
<Sidebar
|
<Sidebar
|
||||||
|
sandboxData={sandboxData}
|
||||||
files={files}
|
files={files}
|
||||||
selectFile={selectFile}
|
selectFile={selectFile}
|
||||||
handleRename={handleRename}
|
handleRename={handleRename}
|
||||||
handleDeleteFile={handleDeleteFile}
|
handleDeleteFile={handleDeleteFile}
|
||||||
handleDeleteFolder={handleDeleteFolder}
|
handleDeleteFolder={handleDeleteFolder}
|
||||||
socket={socket}
|
socket={socket}
|
||||||
|
setFiles={setFiles}
|
||||||
addNew={(name, type) => {
|
addNew={(name, type) => {
|
||||||
if (type === "file") {
|
if (type === "file") {
|
||||||
setFiles((prev) => [
|
setFiles((prev) => [
|
||||||
|
@ -12,11 +12,14 @@ import {
|
|||||||
} from "@/components/ui/context-menu";
|
} from "@/components/ui/context-menu";
|
||||||
import { Loader2, Pencil, Trash2 } from "lucide-react";
|
import { Loader2, Pencil, Trash2 } from "lucide-react";
|
||||||
|
|
||||||
|
import { draggable } from "@atlaskit/pragmatic-drag-and-drop/element/adapter";
|
||||||
|
|
||||||
export default function SidebarFile({
|
export default function SidebarFile({
|
||||||
data,
|
data,
|
||||||
selectFile,
|
selectFile,
|
||||||
handleRename,
|
handleRename,
|
||||||
handleDeleteFile,
|
handleDeleteFile,
|
||||||
|
movingId,
|
||||||
}: {
|
}: {
|
||||||
data: TFile;
|
data: TFile;
|
||||||
selectFile: (file: TTab) => void;
|
selectFile: (file: TTab) => void;
|
||||||
@ -27,12 +30,30 @@ export default function SidebarFile({
|
|||||||
type: "file" | "folder"
|
type: "file" | "folder"
|
||||||
) => boolean;
|
) => boolean;
|
||||||
handleDeleteFile: (file: TFile) => void;
|
handleDeleteFile: (file: TFile) => void;
|
||||||
|
movingId: string;
|
||||||
}) {
|
}) {
|
||||||
|
const isMoving = movingId === data.id;
|
||||||
|
|
||||||
|
const ref = useRef(null); // for draggable
|
||||||
|
const [dragging, setDragging] = useState(false);
|
||||||
|
|
||||||
|
const inputRef = useRef<HTMLInputElement>(null);
|
||||||
const [imgSrc, setImgSrc] = useState(`/icons/${getIconForFile(data.name)}`);
|
const [imgSrc, setImgSrc] = useState(`/icons/${getIconForFile(data.name)}`);
|
||||||
const [editing, setEditing] = useState(false);
|
const [editing, setEditing] = useState(false);
|
||||||
const inputRef = useRef<HTMLInputElement>(null);
|
|
||||||
const [pendingDelete, setPendingDelete] = useState(false);
|
const [pendingDelete, setPendingDelete] = useState(false);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
const el = ref.current;
|
||||||
|
|
||||||
|
if (el)
|
||||||
|
return draggable({
|
||||||
|
element: el,
|
||||||
|
onDragStart: () => setDragging(true),
|
||||||
|
onDrop: () => setDragging(false),
|
||||||
|
getInitialData: () => ({ id: data.id }),
|
||||||
|
});
|
||||||
|
}, []);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (editing) {
|
if (editing) {
|
||||||
setTimeout(() => inputRef.current?.focus(), 0);
|
setTimeout(() => inputRef.current?.focus(), 0);
|
||||||
@ -55,14 +76,18 @@ export default function SidebarFile({
|
|||||||
return (
|
return (
|
||||||
<ContextMenu>
|
<ContextMenu>
|
||||||
<ContextMenuTrigger
|
<ContextMenuTrigger
|
||||||
disabled={pendingDelete}
|
ref={ref}
|
||||||
|
disabled={pendingDelete || dragging || isMoving}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (!editing && !pendingDelete) selectFile({ ...data, saved: true });
|
if (!editing && !pendingDelete && !isMoving)
|
||||||
|
selectFile({ ...data, saved: true });
|
||||||
}}
|
}}
|
||||||
// onDoubleClick={() => {
|
// onDoubleClick={() => {
|
||||||
// setEditing(true)
|
// setEditing(true)
|
||||||
// }}
|
// }}
|
||||||
className="data-[state=open]:bg-secondary/50 w-full flex items-center h-7 px-1 hover:bg-secondary rounded-sm cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
|
className={`${
|
||||||
|
dragging ? "opacity-50 hover:!bg-background" : ""
|
||||||
|
} data-[state=open]:bg-secondary/50 w-full flex items-center h-7 px-1 hover:bg-secondary rounded-sm cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring`}
|
||||||
>
|
>
|
||||||
<Image
|
<Image
|
||||||
src={imgSrc}
|
src={imgSrc}
|
||||||
@ -72,7 +97,12 @@ export default function SidebarFile({
|
|||||||
className="mr-2"
|
className="mr-2"
|
||||||
onError={() => setImgSrc("/icons/default_file.svg")}
|
onError={() => setImgSrc("/icons/default_file.svg")}
|
||||||
/>
|
/>
|
||||||
{pendingDelete ? (
|
{isMoving ? (
|
||||||
|
<>
|
||||||
|
<Loader2 className="text-muted-foreground w-4 h-4 animate-spin mr-2" />
|
||||||
|
<div className="text-muted-foreground">{data.name}</div>
|
||||||
|
</>
|
||||||
|
) : pendingDelete ? (
|
||||||
<>
|
<>
|
||||||
<Loader2 className="text-muted-foreground w-4 h-4 animate-spin mr-2" />
|
<Loader2 className="text-muted-foreground w-4 h-4 animate-spin mr-2" />
|
||||||
<div className="text-muted-foreground">Deleting...</div>
|
<div className="text-muted-foreground">Deleting...</div>
|
||||||
|
@ -12,6 +12,7 @@ import {
|
|||||||
ContextMenuTrigger,
|
ContextMenuTrigger,
|
||||||
} from "@/components/ui/context-menu";
|
} from "@/components/ui/context-menu";
|
||||||
import { Pencil, Trash2 } from "lucide-react";
|
import { Pencil, Trash2 } from "lucide-react";
|
||||||
|
import { dropTargetForElements } from "@atlaskit/pragmatic-drag-and-drop/element/adapter";
|
||||||
|
|
||||||
export default function SidebarFolder({
|
export default function SidebarFolder({
|
||||||
data,
|
data,
|
||||||
@ -19,6 +20,7 @@ export default function SidebarFolder({
|
|||||||
handleRename,
|
handleRename,
|
||||||
handleDeleteFile,
|
handleDeleteFile,
|
||||||
handleDeleteFolder,
|
handleDeleteFolder,
|
||||||
|
movingId,
|
||||||
}: {
|
}: {
|
||||||
data: TFolder;
|
data: TFolder;
|
||||||
selectFile: (file: TTab) => void;
|
selectFile: (file: TTab) => void;
|
||||||
@ -30,7 +32,38 @@ export default function SidebarFolder({
|
|||||||
) => boolean;
|
) => boolean;
|
||||||
handleDeleteFile: (file: TFile) => void;
|
handleDeleteFile: (file: TFile) => void;
|
||||||
handleDeleteFolder: (folder: TFolder) => void;
|
handleDeleteFolder: (folder: TFolder) => void;
|
||||||
|
movingId: string;
|
||||||
}) {
|
}) {
|
||||||
|
const ref = useRef(null); // drop target
|
||||||
|
const [isDraggedOver, setIsDraggedOver] = useState(false);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
const el = ref.current;
|
||||||
|
|
||||||
|
if (el)
|
||||||
|
return dropTargetForElements({
|
||||||
|
element: el,
|
||||||
|
onDragEnter: () => setIsDraggedOver(true),
|
||||||
|
onDragLeave: () => setIsDraggedOver(false),
|
||||||
|
onDrop: () => setIsDraggedOver(false),
|
||||||
|
getData: () => ({ id: data.id }),
|
||||||
|
|
||||||
|
// Commented out to avoid propagating drop event downwards
|
||||||
|
// Todo: Make this logic more elegant, the current implementation is just checking at the end in index.tsx
|
||||||
|
|
||||||
|
// canDrop: ({ source }) => {
|
||||||
|
// const file = data.children.find(
|
||||||
|
// (child) => child.id === source.data.id
|
||||||
|
// );
|
||||||
|
// return !file;
|
||||||
|
// },
|
||||||
|
|
||||||
|
canDrop: () => {
|
||||||
|
return !movingId;
|
||||||
|
}, // no dropping while awaiting move
|
||||||
|
});
|
||||||
|
}, []);
|
||||||
|
|
||||||
const [isOpen, setIsOpen] = useState(false);
|
const [isOpen, setIsOpen] = useState(false);
|
||||||
const folder = isOpen
|
const folder = isOpen
|
||||||
? getIconForOpenFolder(data.name)
|
? getIconForOpenFolder(data.name)
|
||||||
@ -45,11 +78,23 @@ export default function SidebarFolder({
|
|||||||
}
|
}
|
||||||
}, [editing]);
|
}, [editing]);
|
||||||
|
|
||||||
|
// return (
|
||||||
|
// <div
|
||||||
|
// ref={ref}
|
||||||
|
// className="w-full h-7 rounded-full"
|
||||||
|
// style={{backgroundColor: isDraggedOver ? "red" : "blue"}}
|
||||||
|
// >
|
||||||
|
// </div>
|
||||||
|
// )
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ContextMenu>
|
<ContextMenu>
|
||||||
<ContextMenuTrigger
|
<ContextMenuTrigger
|
||||||
|
ref={ref}
|
||||||
onClick={() => setIsOpen((prev) => !prev)}
|
onClick={() => setIsOpen((prev) => !prev)}
|
||||||
className="w-full flex items-center h-7 px-1 transition-colors hover:bg-secondary rounded-sm cursor-pointer"
|
className={`${
|
||||||
|
isDraggedOver ? "bg-secondary/50 rounded-t-sm" : "rounded-sm"
|
||||||
|
} w-full flex items-center h-7 px-1 transition-colors hover:bg-secondary cursor-pointer`}
|
||||||
>
|
>
|
||||||
<Image
|
<Image
|
||||||
src={`/icons/${folder}`}
|
src={`/icons/${folder}`}
|
||||||
@ -99,7 +144,11 @@ export default function SidebarFolder({
|
|||||||
</ContextMenuItem>
|
</ContextMenuItem>
|
||||||
</ContextMenuContent>
|
</ContextMenuContent>
|
||||||
{isOpen ? (
|
{isOpen ? (
|
||||||
<div className="flex w-full items-stretch">
|
<div
|
||||||
|
className={`flex w-full items-stretch ${
|
||||||
|
isDraggedOver ? "rounded-b-sm bg-secondary/50" : ""
|
||||||
|
}`}
|
||||||
|
>
|
||||||
<div className="w-[1px] bg-border mx-2 h-full"></div>
|
<div className="w-[1px] bg-border mx-2 h-full"></div>
|
||||||
<div className="flex flex-col grow">
|
<div className="flex flex-col grow">
|
||||||
{data.children.map((child) =>
|
{data.children.map((child) =>
|
||||||
@ -110,6 +159,7 @@ export default function SidebarFolder({
|
|||||||
selectFile={selectFile}
|
selectFile={selectFile}
|
||||||
handleRename={handleRename}
|
handleRename={handleRename}
|
||||||
handleDeleteFile={handleDeleteFile}
|
handleDeleteFile={handleDeleteFile}
|
||||||
|
movingId={movingId}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<SidebarFolder
|
<SidebarFolder
|
||||||
@ -119,6 +169,7 @@ export default function SidebarFolder({
|
|||||||
handleRename={handleRename}
|
handleRename={handleRename}
|
||||||
handleDeleteFile={handleDeleteFile}
|
handleDeleteFile={handleDeleteFile}
|
||||||
handleDeleteFolder={handleDeleteFolder}
|
handleDeleteFolder={handleDeleteFolder}
|
||||||
|
movingId={movingId}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
)}
|
)}
|
||||||
|
@ -3,24 +3,31 @@
|
|||||||
import { FilePlus, FolderPlus, Loader2, Search, Sparkles } from "lucide-react";
|
import { FilePlus, FolderPlus, Loader2, Search, Sparkles } from "lucide-react";
|
||||||
import SidebarFile from "./file";
|
import SidebarFile from "./file";
|
||||||
import SidebarFolder from "./folder";
|
import SidebarFolder from "./folder";
|
||||||
import { TFile, TFolder, TTab } from "@/lib/types";
|
import { Sandbox, TFile, TFolder, TTab } from "@/lib/types";
|
||||||
import { useState } from "react";
|
import { useEffect, useRef, useState } from "react";
|
||||||
import New from "./new";
|
import New from "./new";
|
||||||
import { Socket } from "socket.io-client";
|
import { Socket } from "socket.io-client";
|
||||||
import Button from "@/components/ui/customButton";
|
|
||||||
import { Switch } from "@/components/ui/switch";
|
import { Switch } from "@/components/ui/switch";
|
||||||
|
|
||||||
|
import {
|
||||||
|
dropTargetForElements,
|
||||||
|
monitorForElements,
|
||||||
|
} from "@atlaskit/pragmatic-drag-and-drop/element/adapter";
|
||||||
|
|
||||||
export default function Sidebar({
|
export default function Sidebar({
|
||||||
|
sandboxData,
|
||||||
files,
|
files,
|
||||||
selectFile,
|
selectFile,
|
||||||
handleRename,
|
handleRename,
|
||||||
handleDeleteFile,
|
handleDeleteFile,
|
||||||
handleDeleteFolder,
|
handleDeleteFolder,
|
||||||
socket,
|
socket,
|
||||||
|
setFiles,
|
||||||
addNew,
|
addNew,
|
||||||
ai,
|
ai,
|
||||||
setAi,
|
setAi,
|
||||||
}: {
|
}: {
|
||||||
|
sandboxData: Sandbox;
|
||||||
files: (TFile | TFolder)[];
|
files: (TFile | TFolder)[];
|
||||||
selectFile: (tab: TTab) => void;
|
selectFile: (tab: TTab) => void;
|
||||||
handleRename: (
|
handleRename: (
|
||||||
@ -32,13 +39,65 @@ export default function Sidebar({
|
|||||||
handleDeleteFile: (file: TFile) => void;
|
handleDeleteFile: (file: TFile) => void;
|
||||||
handleDeleteFolder: (folder: TFolder) => void;
|
handleDeleteFolder: (folder: TFolder) => void;
|
||||||
socket: Socket;
|
socket: Socket;
|
||||||
|
setFiles: (files: (TFile | TFolder)[]) => void;
|
||||||
addNew: (name: string, type: "file" | "folder") => void;
|
addNew: (name: string, type: "file" | "folder") => void;
|
||||||
ai: boolean;
|
ai: boolean;
|
||||||
setAi: React.Dispatch<React.SetStateAction<boolean>>;
|
setAi: React.Dispatch<React.SetStateAction<boolean>>;
|
||||||
}) {
|
}) {
|
||||||
|
const ref = useRef(null); // drop target
|
||||||
|
|
||||||
const [creatingNew, setCreatingNew] = useState<"file" | "folder" | null>(
|
const [creatingNew, setCreatingNew] = useState<"file" | "folder" | null>(
|
||||||
null
|
null
|
||||||
);
|
);
|
||||||
|
const [movingId, setMovingId] = useState("");
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
const el = ref.current;
|
||||||
|
|
||||||
|
if (el) {
|
||||||
|
return dropTargetForElements({
|
||||||
|
element: el,
|
||||||
|
getData: () => ({ id: `projects/${sandboxData.id}` }),
|
||||||
|
canDrop: ({ source }) => {
|
||||||
|
const file = files.find((child) => child.id === source.data.id);
|
||||||
|
return !file;
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}, [files]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
return monitorForElements({
|
||||||
|
onDrop({ source, location }) {
|
||||||
|
const destination = location.current.dropTargets[0];
|
||||||
|
if (!destination) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const fileId = source.data.id as string;
|
||||||
|
const folderId = destination.data.id as string;
|
||||||
|
|
||||||
|
const fileFolder = fileId.split("/").slice(0, -1).join("/");
|
||||||
|
if (fileFolder === folderId) {
|
||||||
|
console.log("NO");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log("move file", fileId, "to folder", folderId);
|
||||||
|
|
||||||
|
setMovingId(fileId);
|
||||||
|
socket.emit(
|
||||||
|
"moveFile",
|
||||||
|
fileId,
|
||||||
|
folderId,
|
||||||
|
(response: (TFolder | TFile)[]) => {
|
||||||
|
setFiles(response);
|
||||||
|
setMovingId("");
|
||||||
|
}
|
||||||
|
);
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="h-full w-56 select-none flex flex-col text-sm items-start justify-between p-2">
|
<div className="h-full w-56 select-none flex flex-col text-sm items-start justify-between p-2">
|
||||||
@ -47,14 +106,16 @@ export default function Sidebar({
|
|||||||
<div className="text-muted-foreground">Explorer</div>
|
<div className="text-muted-foreground">Explorer</div>
|
||||||
<div className="flex space-x-1">
|
<div className="flex space-x-1">
|
||||||
<button
|
<button
|
||||||
|
disabled={!!creatingNew}
|
||||||
onClick={() => setCreatingNew("file")}
|
onClick={() => setCreatingNew("file")}
|
||||||
className="h-6 w-6 text-muted-foreground ml-0.5 flex items-center justify-center translate-x-1 bg-transparent hover:bg-muted-foreground/25 cursor-pointer rounded-sm transition-all focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
|
className="h-6 w-6 text-muted-foreground ml-0.5 flex items-center justify-center translate-x-1 bg-transparent hover:bg-muted-foreground/25 cursor-pointer rounded-sm transition-all focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:opacity-50 disabled:hover:bg-background"
|
||||||
>
|
>
|
||||||
<FilePlus className="w-4 h-4" />
|
<FilePlus className="w-4 h-4" />
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
|
disabled={!!creatingNew}
|
||||||
onClick={() => setCreatingNew("folder")}
|
onClick={() => setCreatingNew("folder")}
|
||||||
className="h-6 w-6 text-muted-foreground ml-0.5 flex items-center justify-center translate-x-1 bg-transparent hover:bg-muted-foreground/25 cursor-pointer rounded-sm transition-all focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
|
className="h-6 w-6 text-muted-foreground ml-0.5 flex items-center justify-center translate-x-1 bg-transparent hover:bg-muted-foreground/25 cursor-pointer rounded-sm transition-all focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:opacity-50 disabled:hover:bg-background"
|
||||||
>
|
>
|
||||||
<FolderPlus className="w-4 h-4" />
|
<FolderPlus className="w-4 h-4" />
|
||||||
</button>
|
</button>
|
||||||
@ -64,7 +125,13 @@ export default function Sidebar({
|
|||||||
</button> */}
|
</button> */}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="w-full mt-1 flex flex-col">
|
<div ref={ref} className="rounded-sm w-full mt-1 flex flex-col">
|
||||||
|
{/* <div
|
||||||
|
ref={ref}
|
||||||
|
className={`${
|
||||||
|
isDraggedOver ? "bg-secondary/50" : ""
|
||||||
|
} rounded-sm w-full mt-1 flex flex-col`}
|
||||||
|
> */}
|
||||||
{files.length === 0 ? (
|
{files.length === 0 ? (
|
||||||
<div className="w-full flex justify-center">
|
<div className="w-full flex justify-center">
|
||||||
<Loader2 className="w-4 h-4 animate-spin" />
|
<Loader2 className="w-4 h-4 animate-spin" />
|
||||||
@ -79,6 +146,7 @@ export default function Sidebar({
|
|||||||
selectFile={selectFile}
|
selectFile={selectFile}
|
||||||
handleRename={handleRename}
|
handleRename={handleRename}
|
||||||
handleDeleteFile={handleDeleteFile}
|
handleDeleteFile={handleDeleteFile}
|
||||||
|
movingId={movingId}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<SidebarFolder
|
<SidebarFolder
|
||||||
@ -88,6 +156,7 @@ export default function Sidebar({
|
|||||||
handleRename={handleRename}
|
handleRename={handleRename}
|
||||||
handleDeleteFile={handleDeleteFile}
|
handleDeleteFile={handleDeleteFile}
|
||||||
handleDeleteFolder={handleDeleteFolder}
|
handleDeleteFolder={handleDeleteFolder}
|
||||||
|
movingId={movingId}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
)}
|
)}
|
||||||
|
21
frontend/package-lock.json
generated
21
frontend/package-lock.json
generated
@ -8,6 +8,7 @@
|
|||||||
"name": "sandbox",
|
"name": "sandbox",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@atlaskit/pragmatic-drag-and-drop": "^1.1.7",
|
||||||
"@clerk/nextjs": "^4.29.12",
|
"@clerk/nextjs": "^4.29.12",
|
||||||
"@clerk/themes": "^1.7.12",
|
"@clerk/themes": "^1.7.12",
|
||||||
"@hookform/resolvers": "^3.3.4",
|
"@hookform/resolvers": "^3.3.4",
|
||||||
@ -73,6 +74,16 @@
|
|||||||
"url": "https://github.com/sponsors/sindresorhus"
|
"url": "https://github.com/sponsors/sindresorhus"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@atlaskit/pragmatic-drag-and-drop": {
|
||||||
|
"version": "1.1.7",
|
||||||
|
"resolved": "https://registry.npmjs.org/@atlaskit/pragmatic-drag-and-drop/-/pragmatic-drag-and-drop-1.1.7.tgz",
|
||||||
|
"integrity": "sha512-pCopubqXglL9VJ7YU+CS0CJwa62CqdGAS3QYfTsEgC844OOMiQ+G6HlSnBsZU9EV6DTHZHLooiTXFBqleib2ew==",
|
||||||
|
"dependencies": {
|
||||||
|
"@babel/runtime": "^7.0.0",
|
||||||
|
"bind-event-listener": "^3.0.0",
|
||||||
|
"raf-schd": "^4.0.3"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@babel/runtime": {
|
"node_modules/@babel/runtime": {
|
||||||
"version": "7.24.1",
|
"version": "7.24.1",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.24.1.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.24.1.tgz",
|
||||||
@ -1804,6 +1815,11 @@
|
|||||||
"url": "https://github.com/sponsors/sindresorhus"
|
"url": "https://github.com/sponsors/sindresorhus"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/bind-event-listener": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/bind-event-listener/-/bind-event-listener-3.0.0.tgz",
|
||||||
|
"integrity": "sha512-PJvH288AWQhKs2v9zyfYdPzlPqf5bXbGMmhmUIY9x4dAUGIWgomO771oBQNwJnMQSnUIXhKu6sgzpBRXTlvb8Q=="
|
||||||
|
},
|
||||||
"node_modules/brace-expansion": {
|
"node_modules/brace-expansion": {
|
||||||
"version": "2.0.1",
|
"version": "2.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
|
||||||
@ -3081,6 +3097,11 @@
|
|||||||
"node": ">=8"
|
"node": ">=8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/raf-schd": {
|
||||||
|
"version": "4.0.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/raf-schd/-/raf-schd-4.0.3.tgz",
|
||||||
|
"integrity": "sha512-tQkJl2GRWh83ui2DiPTJz9wEiMN20syf+5oKfB03yYP7ioZcJwsIK8FjrtLwH1m7C7e+Tt2yYBlrOpdT+dyeIQ=="
|
||||||
|
},
|
||||||
"node_modules/react": {
|
"node_modules/react": {
|
||||||
"version": "18.2.0",
|
"version": "18.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz",
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
"lint": "next lint"
|
"lint": "next lint"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@atlaskit/pragmatic-drag-and-drop": "^1.1.7",
|
||||||
"@clerk/nextjs": "^4.29.12",
|
"@clerk/nextjs": "^4.29.12",
|
||||||
"@clerk/themes": "^1.7.12",
|
"@clerk/themes": "^1.7.12",
|
||||||
"@hookform/resolvers": "^3.3.4",
|
"@hookform/resolvers": "^3.3.4",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user