⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
feat: redesign task details page
Andrejd2bebe8a6827
diff --git a/apps/api/src/activity/index.ts b/apps/api/src/activity/index.tsindex da20faa9d..7d0688f97 100644--- a/apps/api/src/activity/index.ts+++ b/apps/api/src/activity/index.ts@@ -13,6 +13,27 @@ import deleteComment from "./controllers/delete-comment";import getActivities from "./controllers/get-activities";import updateComment from "./controllers/update-comment";+function toDisplayCase(value: string) {+ return value+ .replace(/[-_]/g, " ")+ .split(" ")+ .filter(Boolean)+ .map((part) => part.charAt(0).toUpperCase() + part.slice(1).toLowerCase())+ .join(" ");+}++function formatActivityDate(value: Date | string | null | undefined) {+ if (!value) return null;+ const date = value instanceof Date ? value : new Date(value);+ if (Number.isNaN(date.getTime())) return null;++ return new Intl.DateTimeFormat("en-US", {+ month: "short",+ day: "numeric",+ year: "numeric",+ }).format(date);+}+const activity = new Hono<{Variables: {userId: string;@@ -207,7 +228,7 @@ subscribeToEvent<{data.taskId,data.type,data.userId,- `changed status from "${data.oldStatus}" to "${data.newStatus}"`,+ `changed status from ${toDisplayCase(data.oldStatus)} to ${toDisplayCase(data.newStatus)}`,);});@@ -223,7 +244,7 @@ subscribeToEvent<{data.taskId,data.type,data.userId,- `changed priority from "${data.oldPriority}" to "${data.newPriority}"`,+ `changed priority from ${toDisplayCase(data.oldPriority)} to ${toDisplayCase(data.newPriority)}`,);});@@ -250,11 +271,21 @@ subscribeToEvent<{title: string;type: string;}>("task.assignee_changed", async (data) => {+ if (data.userId === data.newAssigneeId) {+ await createActivity(+ data.taskId,+ data.type,+ data.userId,+ "assigned the task to themselves",+ );+ return;+ }+await createActivity(data.taskId,data.type,data.userId,- `assigned the task to ${data.newAssignee}`,+ `assigned the task to [[user:${data.newAssigneeId}|${data.newAssignee}]]`,);});@@ -266,9 +297,7 @@ subscribeToEvent<{title: string;type: string;}>("task.due_date_changed", async (data) => {- const oldDate = data.oldDueDate- ? new Date(data.oldDueDate).toLocaleDateString()- : "none";+ const oldDate = formatActivityDate(data.oldDueDate) || "none";if (!data.newDueDate) {await createActivity(@@ -280,7 +309,9 @@ subscribeToEvent<{return;}- const newDate = new Date(data.newDueDate).toLocaleDateString();+ const newDate = formatActivityDate(data.newDueDate);+ if (!newDate) return;+await createActivity(data.taskId,data.type,diff --git a/apps/api/src/auth.ts b/apps/api/src/auth.tsindex 5ff9d59bd..44a4243eb 100644--- a/apps/api/src/auth.ts+++ b/apps/api/src/auth.ts@@ -242,6 +242,11 @@ export const auth = betterAuth({apiKey({enableSessionForAPIKeys: true,apiKeyHeaders: "x-api-key",+ rateLimit: {+ enabled: true,+ maxRequests: 100,+ timeWindow: 60 * 1000,+ },}),openAPI(),],diff --git a/apps/api/src/task/controllers/get-task.ts b/apps/api/src/task/controllers/get-task.tsindex 9c66631ac..f50f7a37a 100644--- a/apps/api/src/task/controllers/get-task.ts+++ b/apps/api/src/task/controllers/get-task.ts@@ -31,10 +31,6 @@ async function getTask(taskId: string) {});}- if (task[0].description) {- task[0].description = task[0].description.replace(/\n+/g, "\n");- }-return task[0];}diff --git a/apps/web/package.json b/apps/web/package.jsonindex 04ca528d1..1efbf7b0a 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -13,9 +13,6 @@"dependencies": {"@base-ui/react": "^1.2.0","@better-auth/api-key": "^1.5.3",- "@blocknote/core": "^0.47.0",- "@blocknote/react": "^0.47.0",- "@blocknote/shadcn": "^0.47.0","@dnd-kit/core": "^6.3.1","@dnd-kit/modifiers": "^9.0.0","@dnd-kit/sortable": "^10.0.0",@@ -45,6 +42,22 @@"@tanstack/react-router": "^1.163.3","@tanstack/router-devtools": "^1.163.3","@tanstack/router-plugin": "^1.164.0",+ "@tiptap/core": "^3.20.0",+ "@tiptap/extension-code-block-lowlight": "^3.20.0",+ "@tiptap/extension-link": "^3.20.0",+ "@tiptap/extension-list": "^3.20.1",+ "@tiptap/extension-placeholder": "^3.20.0",+ "@tiptap/extension-table": "^3.20.0",+ "@tiptap/extension-table-cell": "^3.20.0",+ "@tiptap/extension-table-header": "^3.20.0",+ "@tiptap/extension-table-row": "^3.20.0",+ "@tiptap/extension-task-item": "^3.20.1",+ "@tiptap/extension-task-list": "^3.20.1",+ "@tiptap/extension-underline": "^3.20.0",+ "@tiptap/markdown": "^3.20.0",+ "@tiptap/pm": "^3.20.0",+ "@tiptap/react": "^3.20.0",+ "@tiptap/starter-kit": "^3.20.0","@types/file-saver": "^2.0.7","@vitejs/plugin-react": "^5.1.4","babel-plugin-react-compiler": "^19.0.0-beta-714736e-20250131",@@ -55,10 +68,14 @@"date-fns": "^4.1.0","file-saver": "^2.0.5","framer-motion": "^12.34.3",+ "highlight.js": "^11.11.1","hono": "^4.12.4","immer": "^11.1.4","input-otp": "^1.4.2",+ "lowlight": "^3.3.0","lucide-react": "^0.575.0",+ "marked": "^17.0.4",+ "radix-ui": "^1.4.3","react": "^19.2.4","react-day-picker": "9.14.0","react-dom": "^19.2.4",@@ -69,6 +86,9 @@"tailwind-animate": "^0.2.10","tailwind-merge": "^3.5.0","tailwindcss-animate": "^1.0.7",+ "tippy.js": "^6.3.7",+ "turndown": "^7.2.2",+ "turndown-plugin-gfm": "^1.0.2","zod": "^4.3.6","zustand": "^5.0.11"},diff --git a/apps/web/src/components/activity/comment-card.tsx b/apps/web/src/components/activity/comment-card.tsxindex a631a5df5..93a254688 100644--- a/apps/web/src/components/activity/comment-card.tsx+++ b/apps/web/src/components/activity/comment-card.tsx@@ -1,40 +1,11 @@-import { useCreateBlockNote } from "@blocknote/react";-import { BlockNoteView } from "@blocknote/shadcn";-import { useCallback, useEffect, useRef, useState } from "react";-import "@blocknote/shadcn/style.css";-import {- BlockTypeSelect,- type BlockTypeSelectItem,- CreateLinkButton,- FormattingToolbarController,- getDefaultReactSlashMenuItems,- SuggestionMenuController,-} from "@blocknote/react";import { useQueryClient } from "@tanstack/react-query";import { formatDistanceToNow } from "date-fns";-import {- Bold,- Check,- Code,- ExternalLink,- Github,- Heading1,- Heading2,- Heading3,- Italic,- List,- ListOrdered,- Pencil,- Strikethrough,- Type,- Underline,- X,-} from "lucide-react";-import CustomSlashMenu from "@/components/blocknote/custom-slash-menu";+import { ExternalLink, Github, Pencil } from "lucide-react";+import { useCallback, useState } from "react";+import CommentEditor from "@/components/activity/comment-editor";import { useAuth } from "@/components/providers/auth-provider/hooks/use-auth";import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";import { Button } from "@/components/ui/button";-import { KbdSequence } from "@/components/ui/kbd";import {HoverCard,HoverCardContent,@@ -47,10 +18,7 @@ import {TooltipTrigger,} from "@/components/ui/tooltip";import useUpdateComment from "@/hooks/mutations/comment/use-update-comment";-import { getModifierKeyText } from "@/hooks/use-keyboard-shortcuts";-import { cn } from "@/lib/cn";import { toast } from "@/lib/toast";-import { useUserPreferencesStore } from "@/store/user-preferences";type CommentCardProps = {commentId: string;@@ -76,90 +44,27 @@ export default function CommentCard({externalSource,externalUrl,}: CommentCardProps) {- const { theme } = useUserPreferencesStore();const { user: currentUser } = useAuth();- const isInitializedRef = useRef(false);const [isEditing, setIsEditing] = useState(false);- const [editedContent, setEditedContent] = useState("");+ const [editedContent, setEditedContent] = useState(content);const { mutateAsync: updateComment, isPending } = useUpdateComment();const queryClient = useQueryClient();- const editor = useCreateBlockNote({- initialContent: [- {- type: "paragraph",- content: "",- },- ],- });-const canEdit = currentUser?.id === user?.id;+ const isFromGitHub = externalSource === "github";+ const githubProfileUrl =+ isFromGitHub && user?.name ? `https://github.com/${user.name}` : null;+ const commentUrl = externalUrl || null;- useEffect(() => {- if (content?.trim() && !isInitializedRef.current) {- const loadMarkdown = async () => {- try {- const blocks = await editor.tryParseMarkdownToBlocks(- content.trim() || "",- );- editor.replaceBlocks(editor.document, blocks);- setTimeout(() => {- editor.isEditable = isEditing;- isInitializedRef.current = true;- }, 50);- } catch (error) {- console.error("Failed to parse markdown:", error);- const blocks = await editor.tryParseMarkdownToBlocks("");- editor.replaceBlocks(editor.document, blocks);- setTimeout(() => {- editor.isEditable = isEditing;- isInitializedRef.current = true;- }, 50);- }- };- loadMarkdown();- } else if (!content?.trim() && !isInitializedRef.current) {- editor.isEditable = isEditing;- isInitializedRef.current = true;- }- }, [content, editor, isEditing]);-- useEffect(() => {- if (isEditing) {- editor.isEditable = true;- editor.focus();- } else {- editor.isEditable = false;- }- }, [isEditing, editor]);-- const handleEditorChange = useCallback(async () => {- try {- const markdown = await editor.blocksToMarkdownLossy(editor.document);- setEditedContent(markdown.trim());- } catch (error) {- console.error("Failed to convert blocks to markdown:", error);- }- }, [editor]);-- const handleEdit = () => {- setIsEditing(true);+ const handleEdit = useCallback(() => {setEditedContent(content);- };+ setIsEditing(true);+ }, [content]);- const handleCancel = useCallback(async () => {+ const handleCancel = useCallback(() => {+ setEditedContent(content);setIsEditing(false);- // Restore original content- try {- const blocks = await editor.tryParseMarkdownToBlocks(- content.trim() || "",- );- editor.replaceBlocks(editor.document, blocks);- setEditedContent("");- } catch (error) {- console.error("Failed to restore content:", error);- }- }, [editor, content]);+ }, [content]);const handleSave = useCallback(async () => {if (!editedContent.trim()) {@@ -179,63 +84,34 @@ export default function CommentCard({});setIsEditing(false);- setEditedContent("");-- // Invalidate activities query to refresh the listawait queryClient.invalidateQueries({ queryKey: ["activities", taskId] });-toast.success("Comment updated");} catch (error) {console.error("Failed to update comment:", error);toast.error("Failed to update comment");}}, [- editedContent,- updateComment,commentId,+ currentUser?.id,+ editedContent,queryClient,taskId,- currentUser?.id,+ updateComment,]);- useEffect(() => {- if (!isEditing) return;-- const handleKeyDown = (e: KeyboardEvent) => {- if ((e.metaKey || e.ctrlKey) && e.key === "Enter") {- e.preventDefault();- handleSave();- } else if (e.key === "Escape") {- e.preventDefault();- handleCancel();- }- };-- const editorElement = editor.domElement;- editorElement?.addEventListener("keydown", handleKeyDown);-- return () => {- editorElement?.removeEventListener("keydown", handleKeyDown);- };- }, [editor, isEditing, handleSave, handleCancel]);- const isFromGitHub = externalSource === "github";- const githubProfileUrl =- isFromGitHub && user?.name ? `https://github.com/${user.name}` : null;- const commentUrl = externalUrl || null;-return (- <div className="w-full group">- <div className="flex items-center gap-2 mb-2">+ <div className="group relative w-full rounded-xl border border-border/80 bg-card/60">+ <div className="flex items-center gap-2 px-3 pt-2.5"><HoverCard><HoverCardTrigger>- <div className="flex items-center gap-2 cursor-pointer">+ <div className="flex cursor-pointer items-center gap-2"><Avatar className="h-6 w-6"><AvatarImage src={user?.image ?? ""} alt={user?.name || ""} />- <AvatarFallback className="text-xs font-medium bg-muted">+ <AvatarFallback className="bg-muted text-xs font-medium">{user?.name?.charAt(0).toUpperCase()}</AvatarFallback></Avatar>- <span className="text-sm font-medium text-foreground hover:text-primary transition-colors">+ <span className="text-sm font-medium text-foreground/92 hover:text-foreground transition-colors">{user?.name}</span></div>@@ -244,21 +120,21 @@ export default function CommentCard({<div className="flex items-center gap-3"><Avatar className="h-10 w-10"><AvatarImage src={user?.image ?? ""} alt={user?.name || ""} />- <AvatarFallback className="text-xs font-medium bg-muted">+ <AvatarFallback className="bg-muted text-xs font-medium">{user?.name?.charAt(0).toUpperCase()}</AvatarFallback></Avatar>- <div className="flex-1 min-w-0">+ <div className="min-w-0 flex-1"><p className="text-sm font-medium text-foreground leading-none">{user?.name}</p>{user?.email && (- <p className="text-xs text-muted-foreground mt-1">+ <p className="mt-1 text-xs text-muted-foreground">{user.email}</p>)}{isFromGitHub && (- <div className="flex items-center gap-1 mt-1.5">+ <div className="mt-1.5 flex items-center gap-1"><Github className="size-3 text-muted-foreground" /><span className="text-xs text-muted-foreground">GitHub@@ -272,7 +148,7 @@ export default function CommentCard({href={githubProfileUrl}target="_blank"rel="noopener noreferrer"- className="flex items-center gap-1.5 mt-3 pt-3 border-t border-border text-xs text-muted-foreground hover:text-foreground transition-colors"+ className="mt-3 flex items-center gap-1.5 border-t border-border pt-3 text-xs text-muted-foreground transition-colors hover:text-foreground"><ExternalLink className="size-3" />View GitHub Profile@@ -280,9 +156,11 @@ export default function CommentCard({)}</HoverCardContent></HoverCard>- <span className="text-xs text-muted-foreground/60">++ <span className="text-xs text-muted-foreground/62">{formatDistanceToNow(createdAt, { addSuffix: true })}</span>+{commentUrl && (<><span className="text-xs text-muted-foreground/40">·</span>@@ -290,299 +168,74 @@ export default function CommentCard({href={commentUrl}target="_blank"rel="noopener noreferrer"- className="text-xs text-muted-foreground hover:text-foreground transition-colors flex items-center gap-1"+ className="flex items-center gap-1 text-xs text-muted-foreground transition-colors hover:text-foreground"><Github className="size-3" />commented on GitHub</a></>)}- {canEdit && !isEditing && (- <TooltipProvider>- <Tooltip>- <TooltipTrigger asChild>- <Button- variant="ghost"- size="sm"- onClick={handleEdit}- className="h-6 w-6 p-0 ml-auto opacity-0 group-hover:opacity-100 transition-opacity"- >- <Pencil className="size-3" />- </Button>- </TooltipTrigger>- <TooltipContent>- <p className="text-xs">Edit comment</p>- </TooltipContent>- </Tooltip>- </TooltipProvider>- )}</div>- <div className="group border border-border rounded-lg bg-card/50 backdrop-blur-sm relative">- <div- className={cn(- "blocknote-transparent p-4",- !isEditing &&- "[&_.bn-editor]:!cursor-default [&_.ProseMirror]:!outline-none [&_.ProseMirror]:!min-h-0",- )}- >- <BlockNoteView- editor={editor}- className={cn(- "[&>div:first-of-type]:!bg-transparent",- isEditing- ? "[&>div:first-of-type]:!pl-3 [&>div:first-of-type]:!pr-3 min-h-[42px] max-h-[300px] overflow-y-auto"- : "[&>div:first-of-type]:!pl-0 [&_.bn-block-content]:!cursor-default [&>div:first-of-type]:!min-h-0",- )}- formattingToolbar={!isEditing ? false : undefined}- linkToolbar={!isEditing ? false : undefined}- filePanel={false}- sideMenu={false}- slashMenu={false}- tableHandles={false}- theme={theme as "dark" | "light"}- onChange={isEditing ? handleEditorChange : undefined}- editable={isEditing}- >- {isEditing && (- <FormattingToolbarController- formattingToolbar={() => (- <TooltipProvider>- <div className="bg-popover flex items-center gap-0.5 px-1.5 py-1 rounded-md border border-border shadow-lg">- <div className="[&_button]:h-6 [&_button]:px-2 [&_button]:text-xs [&_svg]:size-3">- <BlockTypeSelect- items={[- {- name: "Paragraph",- type: "paragraph",- icon: Type,- props: {},- } satisfies BlockTypeSelectItem,- {- name: "Heading 1",- type: "heading",- icon: Heading1,- props: {- level: 1,- },- } satisfies BlockTypeSelectItem,- {- name: "Heading 2",- type: "heading",- icon: Heading2,- props: {- level: 2,- },- } satisfies BlockTypeSelectItem,- {- name: "Heading 3",- type: "heading",- icon: Heading3,- props: {- level: 3,- },- } satisfies BlockTypeSelectItem,- {- name: "Bullet List",- type: "bulletListItem",- icon: List,- props: {},- } satisfies BlockTypeSelectItem,- {- name: "Numbered List",- type: "numberedListItem",- icon: ListOrdered,- props: {},- } satisfies BlockTypeSelectItem,- ]}- key={"blockTypeSelect"}- />- </div>-- <div className="w-px h-4 bg-border mx-0.5" />- <Tooltip>- <TooltipTrigger asChild>- <Button- variant="ghost"- size="xs"- onClick={() => editor.toggleStyles({ bold: true })}- className={cn(- "h-6 w-6 p-0",- editor.getActiveStyles().bold &&- "bg-accent text-accent-foreground",- )}- >- <Bold className="size-3" />- </Button>- </TooltipTrigger>- <TooltipContent>- <KbdSequence- keys={[getModifierKeyText(), "B"]}- description="Bold"- />- </TooltipContent>- </Tooltip>- <Tooltip>- <TooltipTrigger asChild>- <Button- variant="ghost"- size="xs"- onClick={() =>- editor.toggleStyles({ italic: true })- }- className={cn(- "h-6 w-6 p-0",- editor.getActiveStyles().italic &&- "bg-accent text-accent-foreground",- )}- >- <Italic className="size-3" />- </Button>- </TooltipTrigger>- <TooltipContent>- <KbdSequence- keys={[getModifierKeyText(), "I"]}- description="Italic"- />- </TooltipContent>- </Tooltip>- <Tooltip>- <TooltipTrigger asChild>- <Button- variant="ghost"- size="xs"- onClick={() =>- editor.toggleStyles({ underline: true })- }- className={cn(- "h-6 w-6 p-0",- editor.getActiveStyles().underline &&- "bg-accent text-accent-foreground",- )}- >- <Underline className="size-3" />- </Button>- </TooltipTrigger>- <TooltipContent>- <KbdSequence- keys={[getModifierKeyText(), "U"]}- description="Underline"- />- </TooltipContent>- </Tooltip>- <Tooltip>- <TooltipTrigger asChild>- <Button- variant="ghost"- size="xs"- onClick={() => editor.toggleStyles({ code: true })}- className={cn(- "h-6 w-6 p-0",- editor.getActiveStyles().code &&- "bg-accent text-accent-foreground",- )}- >- <Code className="size-3" />- </Button>- </TooltipTrigger>- <TooltipContent>- <KbdSequence- keys={[getModifierKeyText(), "E"]}- description="Code"- />- </TooltipContent>- </Tooltip>- <Tooltip>- <TooltipTrigger asChild>- <Button- variant="ghost"- size="xs"- onClick={() =>- editor.toggleStyles({ strike: true })- }- className={cn(- "h-6 w-6 p-0",- editor.getActiveStyles().strike &&- "bg-accent text-accent-foreground",- )}- >- <Strikethrough className="size-3" />- </Button>- </TooltipTrigger>- <TooltipContent>- <KbdSequence- keys={[getModifierKeyText(), "Shift", "X"]}- description="Strikethrough"- />- </TooltipContent>- </Tooltip>-- <div className="w-px h-4 bg-border mx-0.5" />+ {canEdit && !isEditing && (+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ variant="ghost"+ size="sm"+ onClick={handleEdit}+ className="absolute top-2 right-2 h-6 w-6 rounded-md p-0 text-muted-foreground opacity-0 transition-opacity group-hover:opacity-100 hover:text-foreground"+ >+ <Pencil className="size-3.5" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>+ <p className="text-xs">Edit comment</p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ )}++ <div className="pt-0.5">+ <CommentEditor+ value={isEditing ? editedContent : content}+ onChange={isEditing ? setEditedContent : undefined}+ placeholder="Edit comment..."+ className={+ isEditing+ ? "[&_.kaneo-comment-editor-content_.ProseMirror]:min-h-[3rem] [&_.kaneo-comment-editor-content_.ProseMirror]:max-h-none [&_.kaneo-comment-editor-content_.ProseMirror]:overflow-visible [&_.kaneo-comment-editor-content_.ProseMirror]:px-3 [&_.kaneo-comment-editor-content_.ProseMirror]:pt-2.5 [&_.kaneo-comment-editor-content_.ProseMirror]:pb-2"+ : "kaneo-comment-viewer [&_.kaneo-comment-editor-content_.ProseMirror]:px-3 [&_.kaneo-comment-editor-content_.ProseMirror]:pt-2 [&_.kaneo-comment-editor-content_.ProseMirror]:pb-3"+ }+ autoFocus={isEditing}+ readOnly={!isEditing}+ onSubmitShortcut={isEditing ? handleSave : undefined}+ onCancelShortcut={isEditing ? handleCancel : undefined}+ />+ </div>- <CreateLinkButton key={"createLinkButton"} />- </div>- </TooltipProvider>- )}- />- )}- <SuggestionMenuController- triggerCharacter={"/"}- suggestionMenuComponent={CustomSlashMenu}- getItems={async (query) =>- getDefaultReactSlashMenuItems(editor).filter(- (item) => item.group !== "Media",- query,- )- }- />- </BlockNoteView>+ {isEditing && (+ <div className="flex items-center justify-end gap-2 border-border/70 border-t bg-card/60 px-3 py-2">+ <Button+ variant="secondary"+ size="sm"+ onClick={handleCancel}+ disabled={isPending}+ className="h-7 px-2.5 text-xs"+ >+ Cancel+ </Button>+ <Button+ variant="default"+ size="sm"+ onClick={handleSave}+ disabled={isPending || !editedContent.trim()}+ className="h-7 px-2.5 text-xs"+ >+ Save+ </Button></div>- {isEditing && (- <div className="flex items-center gap-1 px-4 pb-3">- <TooltipProvider>- <Tooltip>- <TooltipTrigger asChild>- <Button- variant="ghost"- size="sm"- onClick={handleSave}- disabled={isPending || !editedContent.trim()}- className="h-7 px-3 hover:bg-accent"- >- <Check className="size-3 mr-1" />- Save- </Button>- </TooltipTrigger>- <TooltipContent>- <KbdSequence- keys={[getModifierKeyText(), "Enter"]}- description="Save changes"- />- </TooltipContent>- </Tooltip>- </TooltipProvider>- <TooltipProvider>- <Tooltip>- <TooltipTrigger asChild>- <Button- variant="ghost"- size="sm"- onClick={handleCancel}- disabled={isPending}- className="h-7 px-3 hover:bg-accent"- >- <X className="size-3 mr-1" />- Cancel- </Button>- </TooltipTrigger>- <TooltipContent>- <KbdSequence keys={["Esc"]} description="Cancel editing" />- </TooltipContent>- </Tooltip>- </TooltipProvider>- </div>- )}- </div>+ )}</div>);}diff --git a/apps/web/src/components/activity/comment-editor.tsx b/apps/web/src/components/activity/comment-editor.tsxnew file mode 100644index 000000000..8c53abf55--- /dev/null+++ b/apps/web/src/components/activity/comment-editor.tsx@@ -0,0 +1,1354 @@+import type { Editor } from "@tiptap/core";+import Placeholder from "@tiptap/extension-placeholder";+import { Table } from "@tiptap/extension-table";+import TableCell from "@tiptap/extension-table-cell";+import TableHeader from "@tiptap/extension-table-header";+import TableRow from "@tiptap/extension-table-row";+import TaskList from "@tiptap/extension-task-list";+import { Markdown } from "@tiptap/markdown";+import { Fragment, Slice } from "@tiptap/pm/model";+import { TextSelection } from "@tiptap/pm/state";+import { EditorContent, useEditor } from "@tiptap/react";+import { BubbleMenu } from "@tiptap/react/menus";+import StarterKit from "@tiptap/starter-kit";+import {+ Bold,+ Check,+ ChevronDown,+ Copy,+ Italic,+ Link2,+ List,+ ListOrdered,+ ListTodo,+ UnderlineIcon,+} from "lucide-react";+import type { MouseEvent as ReactMouseEvent } from "react";+import { useCallback, useEffect, useMemo, useRef, useState } from "react";+import { bundledLanguages, type Highlighter } from "shiki";+import { EmbedBlock } from "@/components/task/extensions/embed-block";+import { KaneoIssueLink } from "@/components/task/extensions/kaneo-issue-link";+import {+ SHIKI_CODEBLOCK_REFRESH_META,+ ShikiCodeBlock,+} from "@/components/task/extensions/shiki-code-block";+import { TaskItemWithCheckbox } from "@/components/task/extensions/task-item-with-checkbox";+import { Button } from "@/components/ui/button";+import { Input } from "@/components/ui/input";+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuRadioGroup,+ DropdownMenuRadioItem,+ DropdownMenuSeparator,+ DropdownMenuTrigger,+} from "@/components/ui/menu";+import { cn } from "@/lib/cn";+import { parseTaskListMarkdownToNodes } from "@/lib/editor-task-list-paste";+import {+ extractIssueKeyFromUrl,+ extractTaskIdFromUrl,+ isYouTubeUrl,+ normalizeUrl,+} from "@/lib/editor-url-utils";+import { getSharedShikiHighlighter } from "@/lib/shiki-highlighter";++type CommentEditorProps = {+ value: string;+ onChange?: (value: string) => void;+ placeholder?: string;+ className?: string;+ autoFocus?: boolean;+ disabled?: boolean;+ readOnly?: boolean;+ showBubbleMenu?: boolean;+ slashMenuPosition?: "absolute" | "fixed";+ onSubmitShortcut?: () => void;+ onCancelShortcut?: () => void;+};++type SlashRange = { from: number; to: number };++type SlashCommand = {+ id: string;+ label: string;+ group: "text" | "lists" | "insert";+ shortcut?: string;+ search: string;+ run: (editor: Editor, range: SlashRange) => void;+};++type SlashMenuState = {+ from: number;+ to: number;+ query: string;+ top: number;+ left: number;+ selectedIndex: number;+};++type HoveredCodeBlock = {+ language: string;+ nodePos: number;+ top: number;+ left: number;+};++const COMMENT_CODE_LANGUAGE_OPTIONS = [+ { value: "bash", label: "Bash" },+ { value: "csharp", label: "C#" },+ { value: "cpp", label: "C++" },+ { value: "css", label: "CSS" },+ { value: "go", label: "Golang" },+ { value: "graphql", label: "GraphQL" },+ { value: "html", label: "HTML" },+ { value: "json", label: "JSON" },+ { value: "java", label: "Java" },+ { value: "javascript", label: "JavaScript" },+ { value: "markdown", label: "Markdown" },+ { value: "plaintext", label: "Plaintext" },+ { value: "python", label: "Python" },+ { value: "rust", label: "Rust" },+ { value: "sql", label: "SQL" },+ { value: "swift", label: "Swift" },+ { value: "typescript", label: "TypeScript" },+ { value: "yaml", label: "YAML" },+];++const COMMENT_SHIKI_LANGUAGE_ALIASES: Record<string, string> = {+ plaintext: "text",+};++function normalizeMarkdown(markdown: string) {+ return markdown+ .replace(/\r\n/g, "\n")+ .replace(/ /g, " ")+ .replace(/\u00A0/g, " ")+ .replace(/\n{3,}/g, "\n\n")+ .replace(/\n{2,}$/g, "\n");+}++type EmbedComposerState = {+ mode: "choice" | "input";+ url: string;+ top: number;+ left: number;+ range?: SlashRange;+};++export default function CommentEditor({+ value,+ onChange,+ placeholder = "Leave a comment...",+ className,+ autoFocus = false,+ disabled = false,+ readOnly = false,+ showBubbleMenu = true,+ slashMenuPosition = "absolute",+ onSubmitShortcut,+ onCancelShortcut,+}: CommentEditorProps) {+ const editorShellRef = useRef<HTMLDivElement | null>(null);+ const isSyncingRef = useRef(false);+ const hasHydratedRef = useRef(false);+ const latestValueRef = useRef(normalizeMarkdown(value || ""));+ const lastEditorRef = useRef<Editor | null>(null);+ const [slashMenu, setSlashMenu] = useState<SlashMenuState | null>(null);+ const [shikiHighlighter, setShikiHighlighter] = useState<Highlighter | null>(+ null,+ );+ const shikiHighlighterRef = useRef<Highlighter | null>(null);+ const [hoveredCodeBlock, setHoveredCodeBlock] =+ useState<HoveredCodeBlock | null>(null);+ const hoveredCodeBlockElementRef = useRef<HTMLElement | null>(null);+ const codeLanguageHideTimeoutRef = useRef<number | null>(null);+ const codeCopyResetTimeoutRef = useRef<number | null>(null);+ const [isCodeLanguageMenuOpen, setIsCodeLanguageMenuOpen] = useState(false);+ const [isCodeCopied, setIsCodeCopied] = useState(false);+ const [embedComposer, setEmbedComposer] = useState<EmbedComposerState | null>(+ null,+ );+ const [embedComposerError, setEmbedComposerError] = useState("");+ const codeLanguages = useMemo(() => COMMENT_CODE_LANGUAGE_OPTIONS, []);+ const availableShikiLanguages = useMemo(+ () => new Set(Object.keys(bundledLanguages)),+ [],+ );+ const toShikiLanguage = useCallback(+ (language: string) => {+ const normalized = language.toLowerCase();+ const alias = COMMENT_SHIKI_LANGUAGE_ALIASES[normalized];+ if (alias) return alias;+ if (availableShikiLanguages.has(normalized)) return normalized;+ return "text";+ },+ [availableShikiLanguages],+ );+ const getOverlayPosition = useCallback(+ (editorView: Editor["view"], pos: number) => {+ const coords = editorView.coordsAtPos(pos);+ const shellRect = editorShellRef.current?.getBoundingClientRect();++ if (slashMenuPosition === "fixed" || !shellRect) {+ return { top: coords.bottom + 8, left: coords.left };+ }++ return {+ top: coords.bottom - shellRect.top + 8,+ left: coords.left - shellRect.left,+ };+ },+ [slashMenuPosition],+ );++ const slashCommands = useMemo<SlashCommand[]>(+ () => [+ {+ id: "paragraph",+ label: "Text",+ group: "text",+ search: "text paragraph normal",+ run: (activeEditor, range) => {+ activeEditor.chain().focus().deleteRange(range).setParagraph().run();+ },+ },+ {+ id: "heading-2",+ label: "Heading",+ group: "text",+ shortcut: "Ctrl Alt 2",+ search: "heading title h2",+ run: (activeEditor, range) => {+ activeEditor+ .chain()+ .focus()+ .deleteRange(range)+ .toggleHeading({ level: 2 })+ .run();+ },+ },+ {+ id: "bullet-list",+ label: "Bulleted list",+ group: "lists",+ shortcut: "Ctrl Alt 8",+ search: "list bullet unordered",+ run: (activeEditor, range) => {+ activeEditor+ .chain()+ .focus()+ .deleteRange(range)+ .toggleBulletList()+ .run();+ },+ },+ {+ id: "task-list",+ label: "To-do list",+ group: "lists",+ search: "todo to-do checklist checkbox task list",+ run: (activeEditor, range) => {+ activeEditor+ .chain()+ .focus()+ .deleteRange(range)+ .toggleTaskList()+ .run();+ },+ },+ {+ id: "ordered-list",+ label: "Numbered list",+ group: "lists",+ shortcut: "Ctrl Alt 9",+ search: "list ordered numbered",+ run: (activeEditor, range) => {+ activeEditor+ .chain()+ .focus()+ .deleteRange(range)+ .toggleOrderedList()+ .run();+ },+ },+ {+ id: "blockquote",+ label: "Quote",+ group: "insert",+ search: "quote blockquote",+ run: (activeEditor, range) => {+ activeEditor+ .chain()+ .focus()+ .deleteRange(range)+ .toggleBlockquote()+ .run();+ },+ },+ {+ id: "code-block",+ label: "Code block",+ group: "insert",+ shortcut: "Ctrl Alt \\",+ search: "code snippet",+ run: (activeEditor, range) => {+ activeEditor+ .chain()+ .focus()+ .deleteRange(range)+ .toggleCodeBlock()+ .run();+ },+ },+ {+ id: "table",+ label: "Table",+ group: "insert",+ search: "table grid",+ run: (activeEditor, range) => {+ activeEditor+ .chain()+ .focus()+ .deleteRange(range)+ .insertTable({ cols: 3, rows: 3 })+ .run();+ },+ },+ ],+ [],+ );++ useEffect(() => {+ let mounted = true;++ void getSharedShikiHighlighter().then((instance) => {+ if (!mounted) return;+ shikiHighlighterRef.current = instance;+ setShikiHighlighter(instance);+ });++ return () => {+ mounted = false;+ };+ }, []);+ const filteredSlashCommands = useMemo(() => {+ const query = slashMenu?.query.trim().toLowerCase() || "";+ if (!query) return slashCommands;+ return slashCommands.filter(+ (command) =>+ command.label.toLowerCase().includes(query) ||+ command.search.includes(query),+ );+ }, [slashCommands, slashMenu?.query]);++ const editor = useEditor(+ {+ immediatelyRender: false,+ autofocus: autoFocus,+ editable: !readOnly && !disabled,+ extensions: [+ StarterKit.configure({+ heading: { levels: [1, 2, 3] },+ trailingNode: false,+ codeBlock: {+ HTMLAttributes: { class: "kaneo-tiptap-codeblock" },+ },+ link: {+ autolink: true,+ defaultProtocol: "https",+ openOnClick: readOnly,+ },+ }),+ Markdown.configure({+ markedOptions: {+ breaks: true,+ gfm: true,+ },+ }),+ ShikiCodeBlock.configure({+ highlighter: () => shikiHighlighterRef.current,+ resolveLanguage: toShikiLanguage,+ themeDark: "github-dark",+ themeLight: "github-light",+ }),+ EmbedBlock,+ KaneoIssueLink,+ TaskList,+ TaskItemWithCheckbox.configure({+ nested: true,+ }),+ Placeholder.configure({+ placeholder,+ }),+ Table.configure({+ resizable: true,+ }),+ TableRow,+ TableHeader,+ TableCell,+ ],+ editorProps: {+ attributes: {+ class: cn(+ "kaneo-comment-editor-prose",+ readOnly && "kaneo-comment-editor-prose-readonly",+ ),+ },+ handlePaste: (view, event) => {+ if (readOnly || disabled) return false;++ const plainText = event.clipboardData?.getData("text/plain") || "";+ const taskListNodes = parseTaskListMarkdownToNodes(plainText);+ if (taskListNodes) {+ event.preventDefault();+ const nodes = taskListNodes.map((node) =>+ view.state.schema.nodeFromJSON(node),+ );+ const fragment = Fragment.fromArray(nodes);+ view.dispatch(+ view.state.tr+ .replaceSelection(new Slice(fragment, 0, 0))+ .scrollIntoView(),+ );+ return true;+ }++ const pastedText = plainText.trim();+ if (!pastedText || /\s/.test(pastedText)) return false;++ const url = normalizeUrl(pastedText);+ if (!url) return false;++ const issueKey = extractIssueKeyFromUrl(url);+ const taskIdFromUrl = extractTaskIdFromUrl(url);+ if (issueKey || taskIdFromUrl) {+ event.preventDefault();+ view.dispatch(+ view.state.tr.replaceSelectionWith(+ view.state.schema.nodes.kaneoIssueLink.create({+ url,+ issueKey: issueKey || "",+ taskId: taskIdFromUrl || "",+ }),+ ),+ );+ return true;+ }++ if (!isYouTubeUrl(url)) return false;++ event.preventDefault();+ const coords = getOverlayPosition(view, view.state.selection.from);+ setEmbedComposer({+ mode: "choice",+ url,+ top: coords.top,+ left: coords.left,+ });+ setEmbedComposerError("");+ return true;+ },+ handleKeyDown: (_view, event) => {+ if (!readOnly && !disabled && slashMenu) {+ if (event.key === "ArrowDown") {+ event.preventDefault();+ setSlashMenu((current) => {+ if (!current) return current;+ return {+ ...current,+ selectedIndex:+ (current.selectedIndex + 1) %+ Math.max(filteredSlashCommands.length, 1),+ };+ });+ return true;+ }++ if (event.key === "ArrowUp") {+ event.preventDefault();+ setSlashMenu((current) => {+ if (!current) return current;+ return {+ ...current,+ selectedIndex:+ (current.selectedIndex -+ 1 ++ Math.max(filteredSlashCommands.length, 1)) %+ Math.max(filteredSlashCommands.length, 1),+ };+ });+ return true;+ }++ if (+ (event.key === "Enter" || event.key === "Tab") &&+ filteredSlashCommands.length+ ) {+ event.preventDefault();+ if (!editor) return true;+ const command =+ filteredSlashCommands[+ Math.min(+ slashMenu.selectedIndex,+ filteredSlashCommands.length - 1,+ )+ ];+ if (command) {+ command.run(editor, { from: slashMenu.from, to: slashMenu.to });+ setSlashMenu(null);+ }+ return true;+ }++ if (event.key === "Escape") {+ event.preventDefault();+ setSlashMenu(null);+ return true;+ }+ }++ if ((event.metaKey || event.ctrlKey) && event.key === "Enter") {+ if (!readOnly && !disabled && onSubmitShortcut) {+ event.preventDefault();+ onSubmitShortcut();+ return true;+ }+ }++ if (+ event.key === "Escape" &&+ !readOnly &&+ !disabled &&+ onCancelShortcut+ ) {+ event.preventDefault();+ onCancelShortcut();+ return true;+ }++ if (+ (event.metaKey || event.ctrlKey) &&+ event.key.toLowerCase() === "a" &&+ editor+ ) {+ const { state } = editor.view;+ const { $from } = state.selection;+ if ($from.parent.type.name === "codeBlock") {+ event.preventDefault();+ editor.view.dispatch(+ state.tr.setSelection(+ TextSelection.create(state.doc, $from.start(), $from.end()),+ ),+ );+ return true;+ }+ }++ return false;+ },+ },+ onUpdate: ({ editor: activeEditor }) => {+ if (readOnly || disabled || !onChange || isSyncingRef.current) return;+ const markdown = normalizeMarkdown(activeEditor.getMarkdown());+ latestValueRef.current = markdown;+ onChange(markdown);+ },+ },+ [toShikiLanguage],+ );++ useEffect(() => {+ if (!editor || !shikiHighlighter) return;+ editor.view.dispatch(+ editor.state.tr.setMeta(SHIKI_CODEBLOCK_REFRESH_META, true),+ );+ }, [editor, shikiHighlighter]);++ useEffect(() => {+ if (!editor || typeof document === "undefined") return;++ const root = document.documentElement;+ const refreshShikiTheme = () => {+ editor.view.dispatch(+ editor.state.tr.setMeta(SHIKI_CODEBLOCK_REFRESH_META, true),+ );+ };++ const observer = new MutationObserver((mutations) => {+ for (const mutation of mutations) {+ if (mutation.attributeName === "class") {+ refreshShikiTheme();+ break;+ }+ }+ });++ observer.observe(root, { attributes: true, attributeFilter: ["class"] });+ return () => {+ observer.disconnect();+ };+ }, [editor]);++ const updateSlashMenu = useCallback(+ (activeEditor: Editor) => {+ if (readOnly || disabled) {+ setSlashMenu(null);+ return;+ }++ const { state, view } = activeEditor;+ const { selection } = state;+ if (!selection.empty) {+ setSlashMenu(null);+ return;+ }++ const { $from } = selection;+ if (!$from.parent.isTextblock) {+ setSlashMenu(null);+ return;+ }++ const textBefore = $from.parent.textBetween(+ 0,+ $from.parentOffset,+ "\0",+ "\0",+ );+ const match = textBefore.match(/(?:^|\s)\/([^\s/]*)$/);+ if (!match) {+ setSlashMenu(null);+ return;+ }++ const query = match[1] || "";+ const matchText = match[0];+ const startsWithSpace = matchText.startsWith(" ");+ const slashOffset =+ $from.parentOffset - matchText.length + (startsWithSpace ? 1 : 0);+ const from = $from.start() + slashOffset;+ const to = from + matchText.trimStart().length;+ const { top, left } = getOverlayPosition(view, $from.pos);++ setSlashMenu((current) => ({+ from,+ to,+ query,+ top,+ left,+ selectedIndex: current?.query === query ? current.selectedIndex : 0,+ }));+ },+ [disabled, getOverlayPosition, readOnly],+ );++ useEffect(() => {+ if (!editor) return;+ const syncSlash = () => updateSlashMenu(editor);+ editor.on("selectionUpdate", syncSlash);+ editor.on("update", syncSlash);++ return () => {+ editor.off("selectionUpdate", syncSlash);+ editor.off("update", syncSlash);+ };+ }, [editor, updateSlashMenu]);++ useEffect(() => {+ if (!editor) return;+ editor.setEditable(!readOnly && !disabled);+ }, [disabled, editor, readOnly]);++ useEffect(() => {+ if (!editor) return;+ if (lastEditorRef.current !== editor) {+ hasHydratedRef.current = false;+ lastEditorRef.current = editor;+ }++ const incoming = normalizeMarkdown(value || "");+ if (!hasHydratedRef.current) {+ isSyncingRef.current = true;+ latestValueRef.current = incoming;+ editor.commands.setContent(incoming, {+ emitUpdate: false,+ contentType: "markdown",+ });+ hasHydratedRef.current = true;+ queueMicrotask(() => {+ isSyncingRef.current = false;+ });+ return;+ }++ if (incoming === latestValueRef.current) return;+ isSyncingRef.current = true;+ editor.commands.setContent(incoming, {+ emitUpdate: false,+ contentType: "markdown",+ });+ latestValueRef.current = incoming;+ queueMicrotask(() => {+ isSyncingRef.current = false;+ });+ }, [editor, value]);++ const setLink = useCallback(() => {+ if (readOnly || disabled || !editor) return;+ const previousUrl = editor.getAttributes("link").href as string | undefined;+ const url = window.prompt("Enter URL", previousUrl || "");+ if (url === null) return;+ if (!url.trim()) {+ editor.chain().focus().extendMarkRange("link").unsetLink().run();+ return;+ }+ editor.chain().focus().extendMarkRange("link").setLink({ href: url }).run();+ }, [disabled, editor, readOnly]);++ const resolveCodeBlockNodeData = useCallback(+ (pos: number) => {+ if (!editor) return null;+ const resolvedPos = editor.state.doc.resolve(+ Math.max(0, Math.min(pos, editor.state.doc.content.size)),+ );++ for (let depth = resolvedPos.depth; depth > 0; depth -= 1) {+ const node = resolvedPos.node(depth);+ if (node.type.name !== "codeBlock") continue;+ return {+ language: (node.attrs.language as string | undefined) || "auto",+ nodePos: resolvedPos.before(depth),+ };+ }++ return null;+ },+ [editor],+ );++ const updateHoveredCodeBlockFromElement = useCallback(+ (element: HTMLElement | null) => {+ if (!editor || !element) {+ if (!isCodeLanguageMenuOpen) {+ hoveredCodeBlockElementRef.current = null;+ setHoveredCodeBlock(null);+ }+ return;+ }++ const view = editor.view;+ const pos = view.posAtDOM(element, 0);+ const nodeData = resolveCodeBlockNodeData(pos);+ if (!nodeData) return;++ const rect = element.getBoundingClientRect();+ const shellRect = editorShellRef.current?.getBoundingClientRect();+ const top =+ slashMenuPosition === "fixed" || !shellRect+ ? rect.top + 6+ : rect.top - shellRect.top + 6;+ const left =+ slashMenuPosition === "fixed" || !shellRect+ ? rect.right - 12+ : rect.right - shellRect.left - 12;+ setHoveredCodeBlock((current) => {+ if (current?.nodePos !== nodeData.nodePos) {+ setIsCodeCopied(false);+ }++ return {+ language: nodeData.language.toLowerCase(),+ nodePos: nodeData.nodePos,+ top,+ left,+ };+ });+ hoveredCodeBlockElementRef.current = element;+ },+ [+ editor,+ isCodeLanguageMenuOpen,+ resolveCodeBlockNodeData,+ slashMenuPosition,+ ],+ );++ const setCodeLanguage = useCallback(+ (language: string) => {+ if (!editor || !hoveredCodeBlock) return;+ const resolvedLanguage = language === "auto" ? "" : language;+ const { nodePos } = hoveredCodeBlock;+ const node = editor.state.doc.nodeAt(nodePos);+ if (!node || node.type.name !== "codeBlock") return;++ editor+ .chain()+ .focus()+ .command(({ tr }) => {+ tr.setNodeMarkup(nodePos, undefined, {+ ...node.attrs,+ language: resolvedLanguage,+ });+ return true;+ })+ .run();++ setHoveredCodeBlock((current) =>+ current ? { ...current, language } : current,+ );+ },+ [editor, hoveredCodeBlock],+ );++ const activeCodeLanguageLabel = useMemo(() => {+ if (!hoveredCodeBlock) return "Plaintext";+ if (hoveredCodeBlock.language === "auto") return "Auto detect";++ const match = codeLanguages.find(+ (option) => option.value === hoveredCodeBlock.language,+ );+ return match?.label || hoveredCodeBlock.language;+ }, [codeLanguages, hoveredCodeBlock]);++ useEffect(() => {+ if (!hoveredCodeBlock || isCodeLanguageMenuOpen) return;++ const syncPosition = () => {+ const element = hoveredCodeBlockElementRef.current;+ if (!element) return;+ updateHoveredCodeBlockFromElement(element);+ };++ window.addEventListener("scroll", syncPosition, true);+ window.addEventListener("resize", syncPosition);+ return () => {+ window.removeEventListener("scroll", syncPosition, true);+ window.removeEventListener("resize", syncPosition);+ };+ }, [+ hoveredCodeBlock,+ isCodeLanguageMenuOpen,+ updateHoveredCodeBlockFromElement,+ ]);++ const groupedSlashCommands = useMemo(+ () => [+ {+ title: "Text",+ items: filteredSlashCommands.filter(+ (command) => command.group === "text",+ ),+ },+ {+ title: "Lists",+ items: filteredSlashCommands.filter(+ (command) => command.group === "lists",+ ),+ },+ {+ title: "Insert",+ items: filteredSlashCommands.filter(+ (command) => command.group === "insert",+ ),+ },+ ],+ [filteredSlashCommands],+ );++ const submitEmbedComposer = useCallback(+ (mode: "embed" | "link") => {+ if (!editor || !embedComposer) return;+ const url = normalizeUrl(embedComposer.url);+ if (!url) {+ setEmbedComposerError("Enter a valid URL");+ return;+ }++ const chain = editor.chain().focus();+ if (embedComposer.range) {+ chain.deleteRange(embedComposer.range);+ }++ if (mode === "link") {+ chain.insertContent(url).run();+ } else {+ if (!isYouTubeUrl(url)) {+ setEmbedComposerError("Only YouTube links can be embedded.");+ return;+ }+ chain+ .insertContent({+ type: "embedBlock",+ attrs: {+ url,+ mode: "embed",+ },+ })+ .run();+ }++ setEmbedComposer(null);+ setEmbedComposerError("");+ },+ [editor, embedComposer],+ );++ useEffect(() => {+ if (!embedComposer) return;++ const handleKeyDown = (event: KeyboardEvent) => {+ if (!embedComposer) return;++ if (embedComposer.mode === "choice") {+ if (event.key === "Tab") {+ event.preventDefault();+ submitEmbedComposer("embed");+ return;+ }++ if (event.key === "Escape") {+ event.preventDefault();+ submitEmbedComposer("link");+ return;+ }++ if (event.key === "Enter") {+ event.preventDefault();+ submitEmbedComposer("embed");+ }+ return;+ }++ if (event.key === "Escape") {+ event.preventDefault();+ setEmbedComposer(null);+ setEmbedComposerError("");+ }+ };++ window.addEventListener("keydown", handleKeyDown, true);+ return () => {+ window.removeEventListener("keydown", handleKeyDown, true);+ };+ }, [embedComposer, submitEmbedComposer]);++ const handleEditorMouseMove = useCallback(+ (event: ReactMouseEvent<HTMLElement>) => {+ if (disabled) return;+ const target = event.target as HTMLElement;+ if (target.closest(".kaneo-codeblock-language")) return;+ const hovered = target.closest(+ "pre.kaneo-tiptap-codeblock",+ ) as HTMLElement | null;++ if (!hovered) {+ if (!isCodeLanguageMenuOpen) {+ hoveredCodeBlockElementRef.current = null;+ setHoveredCodeBlock(null);+ }+ return;+ }++ if (codeLanguageHideTimeoutRef.current !== null) {+ window.clearTimeout(codeLanguageHideTimeoutRef.current);+ codeLanguageHideTimeoutRef.current = null;+ }+ updateHoveredCodeBlockFromElement(hovered);+ },+ [disabled, isCodeLanguageMenuOpen, updateHoveredCodeBlockFromElement],+ );++ const handleEditorMouseLeave = useCallback(+ (event: ReactMouseEvent<HTMLElement>) => {+ const relatedTarget = event.relatedTarget as HTMLElement | null;+ if (relatedTarget?.closest(".kaneo-codeblock-language")) return;+ if (isCodeLanguageMenuOpen) return;++ if (codeLanguageHideTimeoutRef.current !== null) {+ window.clearTimeout(codeLanguageHideTimeoutRef.current);+ }++ codeLanguageHideTimeoutRef.current = window.setTimeout(() => {+ codeLanguageHideTimeoutRef.current = null;+ const pickerIsHovered = Boolean(+ document.querySelector(".kaneo-codeblock-language:hover"),+ );+ if (pickerIsHovered || isCodeLanguageMenuOpen) return;++ hoveredCodeBlockElementRef.current = null;+ setHoveredCodeBlock(null);+ }, 40);+ },+ [isCodeLanguageMenuOpen],+ );++ useEffect(() => {+ return () => {+ if (codeLanguageHideTimeoutRef.current !== null) {+ window.clearTimeout(codeLanguageHideTimeoutRef.current);+ }+ if (codeCopyResetTimeoutRef.current !== null) {+ window.clearTimeout(codeCopyResetTimeoutRef.current);+ }+ };+ }, []);++ const copyHoveredCodeBlock = useCallback(async () => {+ if (!editor || !hoveredCodeBlock) return;+ const node = editor.state.doc.nodeAt(hoveredCodeBlock.nodePos);+ if (!node || node.type.name !== "codeBlock") return;++ const content = node.textContent || "";+ if (!content) return;++ try {+ await navigator.clipboard.writeText(content);+ setIsCodeCopied(true);+ if (codeCopyResetTimeoutRef.current !== null) {+ window.clearTimeout(codeCopyResetTimeoutRef.current);+ }+ codeCopyResetTimeoutRef.current = window.setTimeout(() => {+ setIsCodeCopied(false);+ codeCopyResetTimeoutRef.current = null;+ }, 1400);+ } catch (_error) {+ // ignore clipboard write failures+ }+ }, [editor, hoveredCodeBlock]);++ return (+ <div+ ref={editorShellRef}+ className={cn(+ "kaneo-comment-editor-shell",+ readOnly && "kaneo-comment-editor-shell-readonly",+ className,+ )}+ >+ {editor && hoveredCodeBlock && !disabled && (+ <div+ className="kaneo-codeblock-language"+ style={{+ top: hoveredCodeBlock.top,+ left: hoveredCodeBlock.left,+ position: slashMenuPosition,+ }}+ >+ <button+ type="button"+ className="kaneo-codeblock-language-trigger kaneo-codeblock-copy-trigger"+ aria-label={isCodeCopied ? "Copied" : "Copy code"}+ onMouseDown={(event) => {+ event.preventDefault();+ }}+ onClick={() => {+ void copyHoveredCodeBlock();+ }}+ >+ {isCodeCopied ? (+ <Check className="size-3.5" />+ ) : (+ <Copy className="size-3.5" />+ )}+ <span>{isCodeCopied ? "Copied" : "Copy"}</span>+ </button>+ {!readOnly && (+ <DropdownMenu+ open={isCodeLanguageMenuOpen}+ onOpenChange={setIsCodeLanguageMenuOpen}+ >+ <DropdownMenuTrigger asChild>+ <button+ type="button"+ className="kaneo-codeblock-language-trigger"+ >+ <span className="truncate">{activeCodeLanguageLabel}</span>+ <ChevronDown className="size-3.5 opacity-70" />+ </button>+ </DropdownMenuTrigger>+ <DropdownMenuContent+ align="end"+ side="bottom"+ sideOffset={6}+ className="max-h-72 w-48 overflow-y-auto"+ >+ <DropdownMenuRadioGroup+ value={hoveredCodeBlock.language}+ onValueChange={setCodeLanguage}+ >+ <DropdownMenuRadioItem value="auto">+ Auto detect+ </DropdownMenuRadioItem>+ <DropdownMenuSeparator />+ {codeLanguages.map(({ value, label }) => (+ <DropdownMenuRadioItem key={value} value={value}>+ {label}+ </DropdownMenuRadioItem>+ ))}+ </DropdownMenuRadioGroup>+ </DropdownMenuContent>+ </DropdownMenu>+ )}+ </div>+ )}+ {editor && !readOnly && !disabled && showBubbleMenu && (+ <BubbleMenu+ editor={editor}+ className="kaneo-comment-editor-bubble"+ shouldShow={({ editor: activeEditor, from, to }) => {+ if (activeEditor.isActive("embedBlock")) return false;+ if (activeEditor.isEmpty) return false;+ return from !== to;+ }}+ >+ <Button+ type="button"+ variant="ghost"+ size="xs"+ className={cn(+ "kaneo-comment-editor-bubble-btn",+ editor.isActive("bold") && "bg-accent text-accent-foreground",+ )}+ onClick={() => editor.chain().focus().toggleBold().run()}+ >+ <Bold className="size-3.5" />+ </Button>+ <Button+ type="button"+ variant="ghost"+ size="xs"+ className={cn(+ "kaneo-comment-editor-bubble-btn",+ editor.isActive("italic") && "bg-accent text-accent-foreground",+ )}+ onClick={() => editor.chain().focus().toggleItalic().run()}+ >+ <Italic className="size-3.5" />+ </Button>+ <Button+ type="button"+ variant="ghost"+ size="xs"+ className={cn(+ "kaneo-comment-editor-bubble-btn",+ editor.isActive("underline") &&+ "bg-accent text-accent-foreground",+ )}+ onClick={() => editor.chain().focus().toggleUnderline().run()}+ >+ <UnderlineIcon className="size-3.5" />+ </Button>+ <Button+ type="button"+ variant="ghost"+ size="xs"+ className={cn(+ "kaneo-comment-editor-bubble-btn",+ editor.isActive("bulletList") &&+ "bg-accent text-accent-foreground",+ )}+ onClick={() => editor.chain().focus().toggleBulletList().run()}+ >+ <List className="size-3.5" />+ </Button>+ <Button+ type="button"+ variant="ghost"+ size="xs"+ className={cn(+ "kaneo-comment-editor-bubble-btn",+ editor.isActive("taskList") && "bg-accent text-accent-foreground",+ )}+ onClick={() => editor.chain().focus().toggleTaskList().run()}+ >+ <ListTodo className="size-3.5" />+ </Button>+ <Button+ type="button"+ variant="ghost"+ size="xs"+ className={cn(+ "kaneo-comment-editor-bubble-btn",+ editor.isActive("orderedList") &&+ "bg-accent text-accent-foreground",+ )}+ onClick={() => editor.chain().focus().toggleOrderedList().run()}+ >+ <ListOrdered className="size-3.5" />+ </Button>+ <Button+ type="button"+ variant="ghost"+ size="xs"+ className={cn(+ "kaneo-comment-editor-bubble-btn",+ editor.isActive("link") && "bg-accent text-accent-foreground",+ )}+ onClick={setLink}+ >+ <Link2 className="size-3.5" />+ </Button>+ </BubbleMenu>+ )}+ {slashMenu && !readOnly && !disabled && (+ <div+ className="kaneo-tiptap-slash-menu"+ style={{+ top: slashMenu.top,+ left: slashMenu.left,+ position: slashMenuPosition,+ }}+ >+ {filteredSlashCommands.length > 0 ? (+ groupedSlashCommands.map((group) => {+ if (!group.items.length) return null;+ return (+ <div key={group.title} className="kaneo-tiptap-slash-group">+ <div className="kaneo-tiptap-slash-group-title">+ {group.title}+ </div>+ {group.items.map((command) => {+ const index = filteredSlashCommands.findIndex(+ (candidate) => candidate.id === command.id,+ );+ return (+ <button+ key={command.id}+ type="button"+ className={cn(+ "kaneo-tiptap-slash-item",+ slashMenu.selectedIndex === index && "is-selected",+ )}+ onMouseEnter={() =>+ setSlashMenu((current) =>+ current+ ? { ...current, selectedIndex: index }+ : current,+ )+ }+ onMouseDown={(event) => {+ event.preventDefault();+ if (!editor) return;+ command.run(editor, {+ from: slashMenu.from,+ to: slashMenu.to,+ });+ setSlashMenu(null);+ }}+ >+ <span className="kaneo-tiptap-slash-label">+ {command.label}+ </span>+ {command.shortcut && (+ <span className="kaneo-tiptap-slash-shortcut">+ {command.shortcut}+ </span>+ )}+ </button>+ );+ })}+ </div>+ );+ })+ ) : (+ <div className="kaneo-tiptap-slash-empty">No commands</div>+ )}+ </div>+ )}+ {editor && embedComposer && (+ <div+ className="kaneo-embed-composer"+ style={{+ top: embedComposer.top,+ left: embedComposer.left,+ position: slashMenuPosition,+ }}+ >+ {embedComposer.mode === "choice" ? (+ <div className="kaneo-embed-choice-menu">+ <button+ type="button"+ className="kaneo-embed-choice-item is-primary"+ onMouseDown={(event) => {+ event.preventDefault();+ submitEmbedComposer("embed");+ }}+ >+ <span>Embed video</span>+ <span className="kaneo-embed-choice-hint">Tab</span>+ </button>+ <button+ type="button"+ className="kaneo-embed-choice-item"+ onMouseDown={(event) => {+ event.preventDefault();+ submitEmbedComposer("link");+ }}+ >+ <span>Keep as link</span>+ <span className="kaneo-embed-choice-hint">Esc</span>+ </button>+ </div>+ ) : (+ <form+ className="kaneo-embed-composer-form"+ onSubmit={(event) => {+ event.preventDefault();+ submitEmbedComposer("embed");+ }}+ >+ <Input+ size="sm"+ value={embedComposer.url}+ onChange={(event) => {+ setEmbedComposer((current) =>+ current ? { ...current, url: event.target.value } : current,+ );+ if (embedComposerError) setEmbedComposerError("");+ }}+ placeholder="Paste URL"+ autoFocus+ />+ <div className="kaneo-embed-composer-actions">+ <Button+ type="button"+ size="xs"+ variant="ghost"+ onClick={() => submitEmbedComposer("link")}+ >+ As link+ </Button>+ <Button type="submit" size="xs">+ Embed+ </Button>+ <Button+ type="button"+ size="xs"+ variant="ghost"+ onClick={() => {+ setEmbedComposer(null);+ setEmbedComposerError("");+ }}+ >+ Cancel+ </Button>+ </div>+ {embedComposerError && (+ <p className="kaneo-embed-composer-error">+ {embedComposerError}+ </p>+ )}+ </form>+ )}+ </div>+ )}+ <EditorContent+ editor={editor}+ className="kaneo-comment-editor-content"+ onMouseMove={handleEditorMouseMove}+ onMouseLeave={handleEditorMouseLeave}+ />+ </div>+ );+}diff --git a/apps/web/src/components/activity/comment-input.tsx b/apps/web/src/components/activity/comment-input.tsxindex fafec223c..e49e4861f 100644--- a/apps/web/src/components/activity/comment-input.tsx+++ b/apps/web/src/components/activity/comment-input.tsx@@ -1,31 +1,7 @@-import { useCreateBlockNote } from "@blocknote/react";-import { BlockNoteView } from "@blocknote/shadcn";-import { useCallback, useEffect, useState } from "react";-import "@blocknote/shadcn/style.css";-import {- BlockTypeSelect,- type BlockTypeSelectItem,- CreateLinkButton,- FormattingToolbarController,- getDefaultReactSlashMenuItems,- SuggestionMenuController,-} from "@blocknote/react";import { useQueryClient } from "@tanstack/react-query";-import {- Bold,- Code,- Heading1,- Heading2,- Heading3,- Italic,- List,- ListOrdered,- SendHorizontal,- Strikethrough,- Type,- Underline,-} from "lucide-react";-import CustomSlashMenu from "@/components/blocknote/custom-slash-menu";+import { ArrowUp } from "lucide-react";+import { useCallback, useState } from "react";+import CommentEditor from "@/components/activity/comment-editor";import { Button } from "@/components/ui/button";import { KbdSequence } from "@/components/ui/kbd";import {@@ -38,36 +14,16 @@ import useCreateComment from "@/hooks/mutations/comment/use-create-comment";import { getModifierKeyText } from "@/hooks/use-keyboard-shortcuts";import { cn } from "@/lib/cn";import { toast } from "@/lib/toast";-import { useUserPreferencesStore } from "@/store/user-preferences";type CommentInputProps = {taskId: string;};export default function CommentInput({ taskId }: CommentInputProps) {- const { theme } = useUserPreferencesStore();const [content, setContent] = useState("");const { mutateAsync: createComment, isPending } = useCreateComment();const queryClient = useQueryClient();- const editor = useCreateBlockNote({- initialContent: [- {- type: "paragraph",- content: "",- },- ],- });-- const handleEditorChange = useCallback(async () => {- try {- const markdown = await editor.blocksToMarkdownLossy(editor.document);- setContent(markdown.trim());- } catch (error) {- console.error("Failed to convert blocks to markdown:", error);- }- }, [editor]);-const handleSubmit = useCallback(async () => {if (!content.trim()) {toast.error("Comment cannot be empty");@@ -80,12 +36,7 @@ export default function CommentInput({ taskId }: CommentInputProps) {comment: content,});- // Clear editor- const blocks = await editor.tryParseMarkdownToBlocks("");- editor.replaceBlocks(editor.document, blocks);setContent("");-- // Invalidate activities query to refresh the listawait queryClient.invalidateQueries({ queryKey: ["activities", taskId] });toast.success("Comment added");@@ -93,243 +44,35 @@ export default function CommentInput({ taskId }: CommentInputProps) {console.error("Failed to create comment:", error);toast.error("Failed to add comment");}- }, [content, createComment, taskId, editor, queryClient]);-- useEffect(() => {- const handleKeyDown = (e: KeyboardEvent) => {- if ((e.metaKey || e.ctrlKey) && e.key === "Enter") {- e.preventDefault();- handleSubmit();- }- };-- const editorElement = editor.domElement;- editorElement?.addEventListener("keydown", handleKeyDown);-- return () => {- editorElement?.removeEventListener("keydown", handleKeyDown);- };- }, [editor, handleSubmit]);+ }, [content, createComment, taskId, queryClient]);return (<div className="w-full">- <div className="blocknote-transparent border border-border/50 rounded-lg bg-background/30 hover:border-border transition-colors focus-within:border-border relative pb-8">- <BlockNoteView- editor={editor}- className="min-h-[42px] max-h-[300px] overflow-y-auto [&>div:first-of-type]:!pl-3 [&>div:first-of-type]:!pr-20 [&>div:first-of-type]:!py-2.5 [&>div:first-of-type]:!bg-transparent [&>div:first-of-type]:!min-h-[42px]"- data-placeholder="Leave a comment..."- formattingToolbar={false}- linkToolbar={false}- filePanel={false}- sideMenu={false}- slashMenu={false}- tableHandles={false}- theme={theme as "dark" | "light"}- onChange={handleEditorChange}- >- <FormattingToolbarController- formattingToolbar={() => (- <TooltipProvider>- <div className="bg-popover flex items-center gap-0.5 px-1.5 py-1 rounded-md border border-border shadow-lg">- <div className="[&_button]:h-6 [&_button]:px-2 [&_button]:text-xs [&_svg]:size-3">- <BlockTypeSelect- items={[- {- name: "Paragraph",- type: "paragraph",- icon: Type,- props: {},- } satisfies BlockTypeSelectItem,- {- name: "Heading 1",- type: "heading",- icon: Heading1,- props: {- level: 1,- },- } satisfies BlockTypeSelectItem,- {- name: "Heading 2",- type: "heading",- icon: Heading2,- props: {- level: 2,- },- } satisfies BlockTypeSelectItem,- {- name: "Heading 3",- type: "heading",- icon: Heading3,- props: {- level: 3,- },- } satisfies BlockTypeSelectItem,- {- name: "Bullet List",- type: "bulletListItem",- icon: List,- props: {},- } satisfies BlockTypeSelectItem,- {- name: "Numbered List",- type: "numberedListItem",- icon: ListOrdered,- props: {},- } satisfies BlockTypeSelectItem,- ]}- key={"blockTypeSelect"}- />- </div>-- <div className="w-px h-4 bg-border mx-0.5" />-- <Tooltip>- <TooltipTrigger asChild>- <Button- variant="ghost"- size="xs"- onClick={() => editor.toggleStyles({ bold: true })}- className={cn(- "h-6 w-6 p-0",- editor.getActiveStyles().bold &&- "bg-accent text-accent-foreground",- )}- >- <Bold className="size-3" />- </Button>- </TooltipTrigger>- <TooltipContent>- <KbdSequence- keys={[getModifierKeyText(), "B"]}- description="Bold"- />- </TooltipContent>- </Tooltip>- <Tooltip>- <TooltipTrigger asChild>- <Button- variant="ghost"- size="xs"- onClick={() => editor.toggleStyles({ italic: true })}- className={cn(- "h-6 w-6 p-0",- editor.getActiveStyles().italic &&- "bg-accent text-accent-foreground",- )}- >- <Italic className="size-3" />- </Button>- </TooltipTrigger>- <TooltipContent>- <KbdSequence- keys={[getModifierKeyText(), "I"]}- description="Italic"- />- </TooltipContent>- </Tooltip>- <Tooltip>- <TooltipTrigger asChild>- <Button- variant="ghost"- size="xs"- onClick={() => editor.toggleStyles({ underline: true })}- className={cn(- "h-6 w-6 p-0",- editor.getActiveStyles().underline &&- "bg-accent text-accent-foreground",- )}- >- <Underline className="size-3" />- </Button>- </TooltipTrigger>- <TooltipContent>- <KbdSequence- keys={[getModifierKeyText(), "U"]}- description="Underline"- />- </TooltipContent>- </Tooltip>- <Tooltip>- <TooltipTrigger asChild>- <Button- variant="ghost"- size="xs"- onClick={() => editor.toggleStyles({ code: true })}- className={cn(- "h-6 w-6 p-0",- editor.getActiveStyles().code &&- "bg-accent text-accent-foreground",- )}- >- <Code className="size-3" />- </Button>- </TooltipTrigger>- <TooltipContent>- <KbdSequence- keys={[getModifierKeyText(), "E"]}- description="Code"- />- </TooltipContent>- </Tooltip>- <Tooltip>- <TooltipTrigger asChild>- <Button- variant="ghost"- size="xs"- onClick={() => editor.toggleStyles({ strike: true })}- className={cn(- "h-6 w-6 p-0",- editor.getActiveStyles().strike &&- "bg-accent text-accent-foreground",- )}- >- <Strikethrough className="size-3" />- </Button>- </TooltipTrigger>- <TooltipContent>- <KbdSequence- keys={[getModifierKeyText(), "Shift", "X"]}- description="Strikethrough"- />- </TooltipContent>- </Tooltip>-- <div className="w-px h-4 bg-border mx-0.5" />-- <CreateLinkButton key={"createLinkButton"} />- </div>- </TooltipProvider>- )}- />- <SuggestionMenuController- triggerCharacter={"/"}- suggestionMenuComponent={CustomSlashMenu}- getItems={async (query) =>- getDefaultReactSlashMenuItems(editor).filter(- (item) => item.group !== "Media",- query,- )- }- />- </BlockNoteView>- <div className="absolute right-2 bottom-0 -translate-y-1/2 flex items-center gap-1">+ <div className="rounded-xl border border-border/80 bg-card/70 transition-colors focus-within:border-ring/60 focus-within:shadow-[0_0_0_2px_color-mix(in_srgb,var(--ring)_20%,transparent)]">+ <CommentEditor+ value={content}+ onChange={setContent}+ placeholder="Leave a comment..."+ className="[&_.kaneo-comment-editor-content_.ProseMirror]:min-h-[3rem] [&_.kaneo-comment-editor-content_.ProseMirror]:max-h-none [&_.kaneo-comment-editor-content_.ProseMirror]:overflow-visible [&_.kaneo-comment-editor-content_.ProseMirror]:px-3 [&_.kaneo-comment-editor-content_.ProseMirror]:pt-3 [&_.kaneo-comment-editor-content_.ProseMirror]:pb-2"+ onSubmitShortcut={handleSubmit}+ />+ <div className="flex items-center justify-end border-border/70 border-t px-2 py-2"><TooltipProvider><Tooltip><TooltipTrigger asChild><Buttonsize="xs"- variant="outline"+ variant="default"onClick={handleSubmit}disabled={isPending || !content.trim()}className={cn(- "h-6 w-6 border-2",isPending ||(!content.trim() && "opacity-50 cursor-not-allowed"),content.trim().length > 0 &&- "bg-background text-sidebar-foreground",+ "bg-primary text-primary-foreground",)}>- <SendHorizontal className="size-4" />+ <ArrowUp className="size-3.5" /></Button></TooltipTrigger><TooltipContent>diff --git a/apps/web/src/components/activity/index.tsx b/apps/web/src/components/activity/index.tsxindex 305c12664..ccb601d8f 100644--- a/apps/web/src/components/activity/index.tsx+++ b/apps/web/src/components/activity/index.tsx@@ -1,18 +1,41 @@import { formatDistanceToNow } from "date-fns";-import { Calendar, CircleAlert, History, MessageSquare } from "lucide-react";+import { Calendar, CircleAlert, History, UserRound } from "lucide-react";import useActiveWorkspace from "@/hooks/queries/workspace/use-active-workspace";import useGetWorkspaceUsers from "@/hooks/queries/workspace-users/use-get-workspace-users";-import { cn } from "@/lib/cn";import { Avatar, AvatarFallback, AvatarImage } from "../ui/avatar";import {HoverCard,HoverCardContent,HoverCardTrigger,} from "../ui/preview-card";+import { TimelineContent, TimelineItem } from "../ui/timeline";import CommentCard from "./comment-card";+import { isCommentActivity } from "./utils";-function getActivityTypeComponent(type: string) {- const iconClass = "w-3 h-3";+type ActivityItem = {+ type: string;+ content: string | null;+ id: string;+ createdAt: string;+ userId: string | null;+ taskId: string;+ externalUserName?: string | null;+ externalUserAvatar?: string | null;+ externalSource?: string | null;+ externalUrl?: string | null;+};++type WorkspaceUser = {+ user?: {+ id?: string;+ name?: string | null;+ email?: string | null;+ image?: string | null;+ } | null;+};++function getActivityTypeIcon(type: string) {+ const iconClass = "h-4 w-4";switch (type) {case "status_changed":return <History className={iconClass} />;@@ -20,34 +43,219 @@ function getActivityTypeComponent(type: string) {return <CircleAlert className={iconClass} />;case "due_date_changed":return <Calendar className={iconClass} />;- case "comment":- return <MessageSquare className={iconClass} />;+ case "assignee_changed":+ case "unassigned":+ return <UserRound className={iconClass} />;default:return <History className={iconClass} />;}}-function getActivityColor() {- return "bg-muted/30 border-border text-muted-foreground";+function toDisplayCase(value: string) {+ return value+ .replace(/[-_]/g, " ")+ .split(" ")+ .filter(Boolean)+ .map((part) => part.charAt(0).toUpperCase() + part.slice(1).toLowerCase())+ .join(" ");+}++function formatActivityDateText(value: string) {+ const parsed = new Date(value);+ if (!Number.isNaN(parsed.getTime())) {+ return parsed.toLocaleDateString("en-US", {+ month: "short",+ day: "numeric",+ year: "numeric",+ });+ }++ const slashMatch = value.match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/);+ if (!slashMatch) return value;+ const [, month, day, year] = slashMatch;+ const fromSlashDate = new Date(`${year}-${month}-${day}T00:00:00`);+ if (Number.isNaN(fromSlashDate.getTime())) return value;+ return fromSlashDate.toLocaleDateString("en-US", {+ month: "short",+ day: "numeric",+ year: "numeric",+ });+}++function findUserByName(users: WorkspaceUser[] | undefined, name: string) {+ if (!users) return null;+ const matches = users.filter(+ (member) =>+ member.user?.name?.toLowerCase().trim() === name.toLowerCase().trim(),+ );++ if (matches.length !== 1) return null;+ return matches[0];+}++function UserHoverName({+ user,+ fallbackName,+}: {+ user: WorkspaceUser | null;+ fallbackName: string;+}) {+ if (!user?.user) {+ return <span className="font-medium text-foreground">{fallbackName}</span>;+ }++ return (+ <HoverCard>+ <HoverCardTrigger asChild>+ <span className="cursor-pointer font-medium text-foreground transition-colors hover:text-primary">+ {user.user.name}+ </span>+ </HoverCardTrigger>+ <HoverCardContent className="w-52 p-3">+ <div className="flex items-center gap-3">+ <Avatar className="h-8 w-8">+ <AvatarImage+ src={user.user.image ?? ""}+ alt={user.user.name || ""}+ />+ <AvatarFallback className="bg-muted text-xs font-medium">+ {user.user.name?.charAt(0).toUpperCase()}+ </AvatarFallback>+ </Avatar>+ <div className="min-w-0 flex-1">+ <p className="text-sm font-medium text-foreground leading-none">+ {user.user.name}+ </p>+ <p className="mt-1 text-xs text-muted-foreground">+ {user.user.email}+ </p>+ </div>+ </div>+ </HoverCardContent>+ </HoverCard>+ );+}++function ActorAvatar({+ user,+ fallbackName,+}: {+ user: WorkspaceUser | null;+ fallbackName: string;+}) {+ return (+ <Avatar className="size-6">+ <AvatarImage src={user?.user?.image ?? ""} alt={fallbackName} />+ <AvatarFallback className="bg-muted text-[11px] font-medium">+ {fallbackName.charAt(0).toUpperCase()}+ </AvatarFallback>+ </Avatar>+ );+}++function renderActivityContent({+ activity,+ workspaceUsers,+}: {+ activity: ActivityItem;+ workspaceUsers: WorkspaceUser[] | undefined;+}) {+ const content = activity.content || "";++ if (activity.type === "priority_changed") {+ const match = content.match(+ /changed priority from "?(.+?)"? to "?(.+?)"?$/i,+ );+ if (!match)+ return <span className="text-sm text-muted-foreground">{content}</span>;+ return (+ <span className="text-sm text-muted-foreground">+ changed priority from{" "}+ <span className="text-foreground">{toDisplayCase(match[1])}</span> to{" "}+ <span className="text-foreground">{toDisplayCase(match[2])}</span>+ </span>+ );+ }++ if (activity.type === "status_changed") {+ const match = content.match(/changed status from "?(.+?)"? to "?(.+?)"?$/i);+ if (!match)+ return <span className="text-sm text-muted-foreground">{content}</span>;+ return (+ <span className="text-sm text-muted-foreground">+ changed status from{" "}+ <span className="text-foreground">{toDisplayCase(match[1])}</span> to{" "}+ <span className="text-foreground">{toDisplayCase(match[2])}</span>+ </span>+ );+ }++ if (activity.type === "due_date_changed") {+ const match = content.match(/changed due date from (.+) to (.+)$/i);+ if (!match)+ return <span className="text-sm text-muted-foreground">{content}</span>;+ return (+ <span className="text-sm text-muted-foreground">+ changed due date from{" "}+ <span className="text-foreground">+ {formatActivityDateText(match[1])}+ </span>{" "}+ to{" "}+ <span className="text-foreground">+ {formatActivityDateText(match[2])}+ </span>+ </span>+ );+ }++ if (activity.type === "assignee_changed") {+ if (content.includes("themselves")) {+ return (+ <span className="text-sm text-muted-foreground">+ assigned the task to themselves+ </span>+ );+ }++ const tokenMatch = content.match(+ /assigned the task to \[\[user:([^|\]]+)\|([^\]]+)\]\]/,+ );+ if (tokenMatch) {+ const [, targetId, targetName] = tokenMatch;+ const targetUser =+ workspaceUsers?.find((member) => member.user?.id === targetId) || null;+ return (+ <span className="text-sm text-muted-foreground">+ assigned the task to{" "}+ <UserHoverName user={targetUser} fallbackName={targetName} />+ </span>+ );+ }++ const legacyMatch = content.match(/assigned the task to (.+)$/i);+ if (legacyMatch) {+ const targetName = legacyMatch[1];+ const targetUser = findUserByName(workspaceUsers, targetName);+ return (+ <span className="text-sm text-muted-foreground">+ assigned the task to{" "}+ <UserHoverName user={targetUser} fallbackName={targetName} />+ </span>+ );+ }+ }++ return <span className="text-sm text-muted-foreground">{content}</span>;}function Activity({activity,- isLast = false,+ step,+ showConnector = false,}: {- activity: {- type: string;- content: string | null;- id: string;- createdAt: string;- userId: string | null;- taskId: string;- externalUserName?: string | null;- externalUserAvatar?: string | null;- externalSource?: string | null;- externalUrl?: string | null;- };- isLast?: boolean;+ activity: ActivityItem;+ step: number;+ showConnector?: boolean;}) {const { data: workspace } = useActiveWorkspace();@@ -60,8 +268,9 @@ function Activity({: null;const isExternalComment = Boolean(activity.externalSource);+ const actorName = user?.user?.name || "Someone";- if (activity.type === "comment" && activity.content) {+ if (isCommentActivity(activity)) {const commentUser = isExternalComment? {id: undefined,@@ -77,93 +286,47 @@ function Activity({};return (- <div className="relative flex gap-3 py-2 last:pb-0">- {!isLast && (- <div className="absolute left-3 top-6 w-px h-full bg-border/40" />- )}-- <div className="relative flex-shrink-0">- <div- className={cn(- "flex items-center justify-center w-6 h-6 rounded-full border",- getActivityColor(),- )}- >- {getActivityTypeComponent(activity.type)}- </div>- </div>-- <div className="flex-1 min-w-0 pt-0.5">+ <TimelineItem className="m-0! flex-row items-start py-2!" step={step}>+ <TimelineContent className="min-w-0 flex-1"><CommentCardcommentId={activity.id}taskId={activity.taskId}- content={activity.content}+ content={activity.content || ""}user={commentUser}createdAt={activity.createdAt}externalSource={activity.externalSource}externalUrl={activity.externalUrl}/>- </div>- </div>+ </TimelineContent>+ </TimelineItem>);}+ const activityIcon = getActivityTypeIcon(activity.type);+return (- <div className="relative flex gap-3 py-2 last:pb-0">- {!isLast && (- <div className="absolute left-3 top-6 w-px h-full bg-border/40" />+ <TimelineItem+ className="relative m-0! flex-row items-center gap-3 py-2.5!"+ step={step}+ >+ {showConnector && (+ <span className="-translate-x-1/2 absolute top-9 bottom-0 left-3 w-px bg-[color-mix(in_srgb,var(--foreground)_18%,transparent)] dark:bg-[color-mix(in_srgb,var(--foreground)_26%,transparent)]" />)}-- <div className="relative flex-shrink-0">- <div- className={cn(- "flex items-center justify-center w-6 h-6 rounded-full border",- getActivityColor(),- )}- >- {getActivityTypeComponent(activity.type)}- </div>- </div>-- <div className="flex-1 min-w-0 pt-0.5">- <div className="flex flex-wrap items-baseline gap-x-1.5 gap-y-0.5">- <HoverCard>- <HoverCardTrigger asChild>- <span className="text-sm font-medium text-foreground hover:text-primary cursor-pointer transition-colors">- {user?.user?.name}- </span>- </HoverCardTrigger>- <HoverCardContent className="w-52 p-3">- <div className="flex items-center gap-3">- <Avatar className="h-8 w-8">- <AvatarImage- src={user?.user?.image ?? ""}- alt={user?.user?.name || ""}- />- <AvatarFallback className="text-xs font-medium bg-muted">- {user?.user?.name?.charAt(0).toUpperCase()}- </AvatarFallback>- </Avatar>- <div className="flex-1 min-w-0">- <p className="text-sm font-medium text-foreground leading-none">- {user?.user?.name}- </p>- <p className="text-xs text-muted-foreground mt-1">- {user?.user?.email}- </p>- </div>- </div>- </HoverCardContent>- </HoverCard>- <span className="text-sm text-muted-foreground">- {activity.content}- </span>- <span className="text-xs text-muted-foreground/60 whitespace-nowrap">- {formatDistanceToNow(activity.createdAt, { addSuffix: true })}- </span>- </div>- </div>- </div>+ <span className="inline-flex size-6 shrink-0 items-center justify-center rounded-full text-muted-foreground/80">+ {activityIcon}+ </span>+ <ActorAvatar user={user || null} fallbackName={actorName} />+ <TimelineContent className="text-sm leading-6 text-foreground">+ <UserHoverName user={user || null} fallbackName={actorName} />{" "}+ {renderActivityContent({+ activity,+ workspaceUsers: workspaceUsers as WorkspaceUser[] | undefined,+ })}{" "}+ <span className="whitespace-nowrap text-muted-foreground/70 text-xs">+ {formatDistanceToNow(activity.createdAt, { addSuffix: true })}+ </span>+ </TimelineContent>+ </TimelineItem>);}diff --git a/apps/web/src/components/activity/utils.ts b/apps/web/src/components/activity/utils.tsnew file mode 100644index 000000000..608383aa8--- /dev/null+++ b/apps/web/src/components/activity/utils.ts@@ -0,0 +1,8 @@+type ActivityLike = {+ type: string;+ content: string | null;+};++export function isCommentActivity(activity: ActivityLike) {+ return activity.type === "comment" && Boolean(activity.content);+}diff --git a/apps/web/src/components/backlog-list-view/index.tsx b/apps/web/src/components/backlog-list-view/index.tsxindex fdd94e878..6ba6651e3 100644--- a/apps/web/src/components/backlog-list-view/index.tsx+++ b/apps/web/src/components/backlog-list-view/index.tsx@@ -26,7 +26,6 @@ import { priorityColorsTaskCard } from "@/constants/priority-colors";import { useUpdateTask } from "@/hooks/mutations/task/use-update-task";import { useRegisterShortcuts } from "@/hooks/use-keyboard-shortcuts";import { cn } from "@/lib/cn";-import toKebabCase from "@/lib/to-kebab-case";import useBacklogBulkSelectionStore from "@/store/backlog-bulk-selection";import useProjectStore from "@/store/project";import type { ProjectWithTasks } from "@/types/project";@@ -434,7 +433,7 @@ function BacklogListView({ project }: BacklogListViewProps) {<CreateTaskModalopen={isTaskModalOpen}onClose={() => setIsTaskModalOpen(false)}- status={toKebabCase(activeColumn ?? "planned")}+ status={activeColumn ?? "planned"}/><BacklogBulkToolbar />diff --git a/apps/web/src/components/blocknote/custom-slash-menu.tsx b/apps/web/src/components/blocknote/custom-slash-menu.tsxdeleted file mode 100644index 3f84465c1..000000000--- a/apps/web/src/components/blocknote/custom-slash-menu.tsx+++ /dev/null@@ -1,54 +0,0 @@-import type {- DefaultReactSuggestionItem,- SuggestionMenuProps,-} from "@blocknote/react";-import { cn } from "@/lib/cn";--export default function CustomSlashMenu(- props: SuggestionMenuProps<DefaultReactSuggestionItem>,-) {- const { items, selectedIndex, onItemClick } = props;-- let currentGroup: string | undefined;-- const getShortcut = (badge: DefaultReactSuggestionItem["badge"]) => {- if (typeof badge !== "string") return null;- const value = badge.trim();- if (!value || value.length > 14) return null;- return value;- };-- return (- <div className="kaneo-slash-menu">- {items.map((item, index) => {- const shouldShowGroup = item.group && item.group !== currentGroup;- currentGroup = item.group;- const shortcut = getShortcut(item.badge);-- return (- <div key={`${item.title}-${index}`}>- {shouldShowGroup && (- <div className="kaneo-slash-menu-label">{item.group}</div>- )}- <button- type="button"- className={cn("kaneo-slash-menu-item", {- "is-selected": selectedIndex === index,- })}- onMouseDown={(event) => event.preventDefault()}- onClick={() => onItemClick?.(item)}- >- {item.icon && (- <span className="kaneo-slash-menu-icon">{item.icon}</span>- )}- <span className="kaneo-slash-menu-title">{item.title}</span>- {shortcut && (- <span className="kaneo-slash-menu-shortcut">{shortcut}</span>- )}- </button>- </div>- );- })}- </div>- );-}diff --git a/apps/web/src/components/bulk-selection/backlog-bulk-toolbar.tsx b/apps/web/src/components/bulk-selection/backlog-bulk-toolbar.tsxindex 2f2ce7f9a..e38662c22 100644--- a/apps/web/src/components/bulk-selection/backlog-bulk-toolbar.tsx+++ b/apps/web/src/components/bulk-selection/backlog-bulk-toolbar.tsx@@ -74,7 +74,15 @@ function BacklogBulkToolbar() {useEffect(() => {const handleKeyDown = (e: KeyboardEvent) => {+ const target = e.target as HTMLElement | null;+ const isTypingContext = Boolean(+ target?.closest(+ "input, textarea, [contenteditable='true'], .ProseMirror",+ ),+ );+if ((e.metaKey || e.ctrlKey) && e.key === "a") {+ if (isTypingContext) return;e.preventDefault();selectAll();}diff --git a/apps/web/src/components/bulk-selection/bulk-toolbar.tsx b/apps/web/src/components/bulk-selection/bulk-toolbar.tsxindex 28df29872..7af6725ac 100644--- a/apps/web/src/components/bulk-selection/bulk-toolbar.tsx+++ b/apps/web/src/components/bulk-selection/bulk-toolbar.tsx@@ -66,7 +66,15 @@ function BulkToolbar() {useEffect(() => {const handleKeyDown = (e: KeyboardEvent) => {+ const target = e.target as HTMLElement | null;+ const isTypingContext = Boolean(+ target?.closest(+ "input, textarea, [contenteditable='true'], .ProseMirror",+ ),+ );+if ((e.metaKey || e.ctrlKey) && e.key === "a") {+ if (isTypingContext) return;e.preventDefault();selectAll();}diff --git a/apps/web/src/components/common/header/task-crumb-select.tsx b/apps/web/src/components/common/header/task-crumb-select.tsxnew file mode 100644index 000000000..8c7994186--- /dev/null+++ b/apps/web/src/components/common/header/task-crumb-select.tsx@@ -0,0 +1,82 @@+import { ChevronsUpDown } from "lucide-react";+import { Button } from "@/components/ui/button";+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuGroup,+ DropdownMenuItem,+ DropdownMenuLabel,+ DropdownMenuSeparator,+ DropdownMenuTrigger,+} from "@/components/ui/menu";+import { useGetTasks } from "@/hooks/queries/task/use-get-tasks";++type TaskCrumbSelectProps = {+ projectId: string;+ taskId: string;+ taskLabel?: string;+ onSelectTask: (taskId: string) => void;+};++export default function TaskCrumbSelect({+ projectId,+ taskId,+ taskLabel,+ onSelectTask,+}: TaskCrumbSelectProps) {+ const { data: project } = useGetTasks(projectId);+ const tasks = [+ ...(project?.columns?.flatMap((column) => column.tasks) ?? []),+ ...(project?.plannedTasks ?? []),+ ...(project?.archivedTasks ?? []),+ ];++ return (+ <DropdownMenu>+ <DropdownMenuTrigger+ render={+ <Button+ variant="ghost"+ size="xs"+ className="h-7 max-w-56 justify-between gap-1.5 px-2 text-xs text-foreground"+ />+ }+ >+ <span className="truncate text-left">{taskLabel || "Select task"}</span>+ <ChevronsUpDown className="size-3.5 text-muted-foreground" />+ </DropdownMenuTrigger>+ <DropdownMenuContent className="w-80" align="start">+ <DropdownMenuGroup>+ <DropdownMenuLabel className="text-[11px] uppercase tracking-wide">+ Tasks+ </DropdownMenuLabel>+ </DropdownMenuGroup>+ <DropdownMenuSeparator />+ <DropdownMenuGroup>+ {tasks.length > 0 ? (+ tasks.map((task) => (+ <DropdownMenuItem+ key={task.id}+ disabled={task.id === taskId}+ onClick={() => onSelectTask(task.id)}+ className="h-8 gap-2 text-sm"+ >+ <span className="min-w-0 truncate text-foreground">+ {task.number != null ? `#${task.number} ` : ""}+ {task.title}+ </span>+ </DropdownMenuItem>+ ))+ ) : (+ <DropdownMenuItem+ disabled+ className="h-8 text-sm text-muted-foreground"+ >+ No tasks+ </DropdownMenuItem>+ )}+ </DropdownMenuGroup>+ </DropdownMenuContent>+ </DropdownMenu>+ );+}diff --git a/apps/web/src/components/common/project-layout.tsx b/apps/web/src/components/common/project-layout.tsxindex 6be94a896..659b0f8d2 100644--- a/apps/web/src/components/common/project-layout.tsx+++ b/apps/web/src/components/common/project-layout.tsx@@ -81,7 +81,7 @@ export default function ProjectLayout({<div className="flex min-w-0 items-center gap-2"><TooltipProvider><Tooltip>- <TooltipTrigger>+ <TooltipTrigger asChild><SidebarTrigger className="-ml-1 h-7 w-7 cursor-pointer text-foreground/85 hover:text-foreground" /></TooltipTrigger><TooltipContent>diff --git a/apps/web/src/components/common/task-layout.tsx b/apps/web/src/components/common/task-layout.tsxindex b0411b66b..1416ef011 100644--- a/apps/web/src/components/common/task-layout.tsx+++ b/apps/web/src/components/common/task-layout.tsx@@ -1,14 +1,8 @@+import { useNavigate } from "@tanstack/react-router";import type { ReactNode } from "react";+import TaskCrumbSelect from "@/components/common/header/task-crumb-select";import Layout from "@/components/common/layout";-import {- Breadcrumb,- BreadcrumbItem,- BreadcrumbLink,- BreadcrumbList,- BreadcrumbSeparator,-} from "@/components/ui/breadcrumb";import { KbdSequence } from "@/components/ui/kbd";-import { Separator } from "@/components/ui/separator";import { SidebarTrigger } from "@/components/ui/sidebar";import {Tooltip,@@ -19,7 +13,6 @@ import {import { shortcuts } from "@/constants/shortcuts";import useGetProject from "@/hooks/queries/project/use-get-project";import useGetTask from "@/hooks/queries/task/use-get-task";-import useActiveWorkspace from "@/hooks/queries/workspace/use-active-workspace";type TaskLayoutProps = {taskId: string;@@ -38,20 +31,31 @@ export default function TaskLayout({children,rightSidebar,}: TaskLayoutProps) {- const { data: workspace } = useActiveWorkspace();+ const navigate = useNavigate();const { data: project } = useGetProject({ id: projectId, workspaceId });const { data: task } = useGetTask(taskId);+ const taskLabel =+ project?.slug && task?.number != null+ ? `${project.slug}-${task.number}`+ : "Select task";++ const handleTaskSwitch = (nextTaskId: string) => {+ navigate({+ to: "/dashboard/workspace/$workspaceId/project/$projectId/task/$taskId",+ params: { workspaceId, projectId, taskId: nextTaskId },+ });+ };return (<Layout className="flex flex-col lg:flex-row">- <div className="flex-1 flex flex-col min-w-0">- <Layout.Header className="sticky top-0 z-10">- <div className="flex items-center justify-between w-full">- <div className="flex items-center gap-1 w-full min-w-0">+ <div className="flex min-h-0 flex-1 flex-col">+ <Layout.Header className="h-11 border-border/80 px-2">+ <div className="flex w-full items-center justify-between gap-2">+ <div className="flex min-w-0 items-center gap-2"><TooltipProvider><Tooltip><TooltipTrigger asChild>- <SidebarTrigger className="-ml-1 h-6 w-6 cursor-pointer text-muted-foreground shrink-0" />+ <SidebarTrigger className="-ml-1 h-7 w-7 cursor-pointer text-foreground/85 hover:text-foreground" /></TooltipTrigger><TooltipContent><p className="flex items-center gap-2 text-[10px]">@@ -66,53 +70,52 @@ export default function TaskLayout({</TooltipContent></Tooltip></TooltipProvider>- <Separator- orientation="vertical"- className="mx-1.5 data-[orientation=vertical]:h-2.5 shrink-0"- />- <Breadcrumb className="flex items-center text-xs w-full min-w-0">- <BreadcrumbList className="!gap-1 flex-wrap">- <BreadcrumbItem className="hidden sm:inline-flex">- <BreadcrumbLink- href={`/dashboard/workspace/${workspaceId}`}- >- <span className="text-xs text-muted-foreground truncate max-w-[100px]">- {workspace?.name}- </span>- </BreadcrumbLink>- </BreadcrumbItem>- <BreadcrumbSeparator className="hidden sm:inline-flex" />- <BreadcrumbItem className="hidden md:inline-flex">- <BreadcrumbLink- href={`/dashboard/workspace/${workspaceId}/project/${projectId}/board`}- >- <span className="text-xs text-muted-foreground truncate max-w-[100px]">- {project?.name}- </span>- </BreadcrumbLink>- </BreadcrumbItem>- <BreadcrumbSeparator className="hidden md:inline-flex" />- <BreadcrumbItem>- <span className="text-xs text-muted-foreground">- {project?.slug}-{task?.number}- </span>- </BreadcrumbItem>- </BreadcrumbList>- </Breadcrumb>++ <div className="h-4 w-px shrink-0 bg-border/80" />++ <div className="min-w-0 items-center gap-1.5 flex">+ <button+ type="button"+ onClick={() =>+ navigate({+ to: "/dashboard/workspace/$workspaceId/project/$projectId/board",+ params: { workspaceId, projectId },+ })+ }+ className="max-w-40 truncate text-left text-xs text-foreground hover:underline"+ >+ {project?.name || "Project"}+ </button>+ <span className="text-foreground/70 text-xs">/</span>+ <TaskCrumbSelect+ projectId={projectId}+ taskId={taskId}+ taskLabel={taskLabel}+ onSelectTask={handleTaskSwitch}+ />+ </div></div>- <div className="flex items-center gap-1.5 shrink-0">++ <div className="flex shrink-0 items-center gap-1.5">{headerActions}</div></div></Layout.Header>+<Layout.Content>- <div className="flex flex-col lg:flex-row h-full">- <div className="order-2 lg:order-1 flex-1 min-w-0">{children}</div>- <div className="order-1 lg:order-2 lg:hidden">{rightSidebar}</div>+ <div className="flex h-full min-h-0 flex-col overflow-hidden lg:flex-row">+ <div className="order-2 min-h-0 flex-1 overflow-y-auto overscroll-contain lg:order-1">+ {children}+ </div>+ <div className="order-1 border-b border-border/80 lg:order-2 lg:hidden">+ {rightSidebar}+ </div></div></Layout.Content></div>- <div className="hidden lg:flex lg:h-full">{rightSidebar}</div>+ <div className="hidden border-l border-border/80 bg-card lg:flex lg:h-full lg:overflow-y-auto">+ {rightSidebar}+ </div></Layout>);}diff --git a/apps/web/src/components/kanban-board/column/column-footer.tsx b/apps/web/src/components/kanban-board/column/column-footer.tsxindex 2b7620ea8..9b150f251 100644--- a/apps/web/src/components/kanban-board/column/column-footer.tsx+++ b/apps/web/src/components/kanban-board/column/column-footer.tsx@@ -1,7 +1,6 @@import { Plus } from "lucide-react";import { useState } from "react";import CreateTaskModal from "@/components/shared/modals/create-task-modal";-import toKebabCase from "@/lib/to-kebab-case";import type { ProjectWithTasks } from "@/types/project";type ColumnFooterProps = {@@ -16,7 +15,7 @@ export function ColumnFooter({ column }: ColumnFooterProps) {<CreateTaskModalopen={isTaskModalOpen}onClose={() => setIsTaskModalOpen(false)}- status={toKebabCase(column.name)}+ status={column.id}/><div className="flex items-center justify-between"><buttondiff --git a/apps/web/src/components/kanban-board/column/index.tsx b/apps/web/src/components/kanban-board/column/index.tsxindex b51b65cf0..230d048eb 100644--- a/apps/web/src/components/kanban-board/column/index.tsx+++ b/apps/web/src/components/kanban-board/column/index.tsx@@ -1,7 +1,6 @@import { Plus } from "lucide-react";import { useState } from "react";import CreateTaskModal from "@/components/shared/modals/create-task-modal";-import toKebabCase from "@/lib/to-kebab-case";import type { ProjectWithTasks } from "@/types/project";import { ColumnDropzone } from "./column-dropzone";import { ColumnHeader } from "./column-header";@@ -25,7 +24,7 @@ function Column({ column }: ColumnProps) {<CreateTaskModalopen={isTaskModalOpen}onClose={() => setIsTaskModalOpen(false)}- status={toKebabCase(column.name)}+ status={column.id}/><div className="shrink-0 border-b border-border/60 px-3 py-2">diff --git a/apps/web/src/components/list-view/index.tsx b/apps/web/src/components/list-view/index.tsxindex 07bd1796b..56db5f8ba 100644--- a/apps/web/src/components/list-view/index.tsx+++ b/apps/web/src/components/list-view/index.tsx@@ -27,7 +27,6 @@ import { useUpdateTask } from "@/hooks/mutations/task/use-update-task";import { useRegisterShortcuts } from "@/hooks/use-keyboard-shortcuts";import { cn } from "@/lib/cn";import { getColumnIcon } from "@/lib/column";-import toKebabCase from "@/lib/to-kebab-case";import { toast } from "@/lib/toast";import useBulkSelectionStore from "@/store/bulk-selection";import useProjectStore from "@/store/project";@@ -406,7 +405,7 @@ function ListView({ project }: ListViewProps) {<CreateTaskModalopen={isTaskModalOpen}onClose={() => setIsTaskModalOpen(false)}- status={toKebabCase(activeColumn ?? "done")}+ status={activeColumn ?? "done"}/><BulkToolbar />diff --git a/apps/web/src/components/shared/modals/create-task-modal.tsx b/apps/web/src/components/shared/modals/create-task-modal.tsxindex 89219fc4d..7fedb546f 100644--- a/apps/web/src/components/shared/modals/create-task-modal.tsx+++ b/apps/web/src/components/shared/modals/create-task-modal.tsx@@ -411,7 +411,7 @@ function CreateTaskModal({ open, onClose, status }: CreateTaskModalProps) {required/>- <div className="h-[200px] rounded-lg overflow-hidden">+ <div className="min-h-[200px]"><TaskDescriptionEditorvalue={description}onChange={setDescription}diff --git a/apps/web/src/components/task/extensions/embed-block.ts b/apps/web/src/components/task/extensions/embed-block.tsnew file mode 100644index 000000000..8719d2b29--- /dev/null+++ b/apps/web/src/components/task/extensions/embed-block.ts@@ -0,0 +1,147 @@+import { mergeAttributes, Node } from "@tiptap/core";++type EmbedMode = "embed" | "link";++function isValidUrl(value: string) {+ try {+ // eslint-disable-next-line no-new+ new URL(value);+ return true;+ } catch {+ return false;+ }+}++function escapeHtml(value: string) {+ return value+ .replace(/&/g, "&")+ .replace(/"/g, """)+ .replace(/</g, "<")+ .replace(/>/g, ">");+}++function getEmbedSource(url: string) {+ try {+ const parsed = new URL(url);+ const host = parsed.hostname.replace(/^www\./, "");++ if (+ host === "youtube.com" ||+ host === "m.youtube.com" ||+ host === "youtu.be"+ ) {+ const pathParts = parsed.pathname.split("/").filter(Boolean);+ const videoId =+ host === "youtu.be"+ ? pathParts[0]+ : parsed.searchParams.get("v") ||+ (pathParts[0] === "shorts" ? pathParts[1] : null) ||+ (pathParts[0] === "live" ? pathParts[1] : null);+ if (videoId) {+ return `https://www.youtube.com/embed/${videoId}`;+ }+ }+ } catch {+ return null;+ }++ return null;+}++export const EmbedBlock = Node.create({+ name: "embedBlock",+ group: "block",+ atom: true,+ selectable: true,+ draggable: false,++ addAttributes() {+ return {+ url: {+ default: "",+ },+ mode: {+ default: "embed",+ },+ };+ },++ parseHTML() {+ return [+ {+ tag: "kaneo-embed[url]",+ },+ {+ tag: "div[data-type='kaneo-embed'][data-url]",+ },+ ];+ },++ renderHTML({ HTMLAttributes }) {+ const url = String(HTMLAttributes.url || "");+ const mode = String(HTMLAttributes.mode || "embed") as EmbedMode;+ const embedSource = mode === "embed" ? getEmbedSource(url) : null;+ const attrs = mergeAttributes(HTMLAttributes, {+ "data-type": "kaneo-embed",+ "data-url": url,+ "data-mode": mode,+ contenteditable: "false",+ });++ if (embedSource) {+ return [+ "div",+ attrs,+ [+ "iframe",+ {+ src: embedSource,+ loading: "lazy",+ allow:+ "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",+ allowfullscreen: "true",+ referrerpolicy: "strict-origin-when-cross-origin",+ title: "Embedded content",+ },+ ],+ ];+ }++ if (mode === "embed") {+ return [+ "div",+ attrs,+ [+ "div",+ { class: "kaneo-embed-unsupported" },+ "Only YouTube URLs can be embedded. Use link mode instead.",+ ],+ ];+ }++ return [+ "div",+ attrs,+ [+ "a",+ {+ href: url,+ target: "_blank",+ rel: "noopener noreferrer nofollow",+ },+ url,+ ],+ ];+ },++ renderMarkdown(+ node: { attrs?: { url?: string; mode?: string } },+ _helpers: unknown,+ _context: unknown,+ ) {+ const url = String(node.attrs?.url || "");+ const mode = node.attrs?.mode === "link" ? "link" : "embed";+ if (!isValidUrl(url)) return "";+ return `\n<kaneo-embed url="${escapeHtml(url)}" mode="${mode}" />\n`;+ },+});diff --git a/apps/web/src/components/task/extensions/kaneo-issue-link.tsx b/apps/web/src/components/task/extensions/kaneo-issue-link.tsxnew file mode 100644index 000000000..6378c6a6d--- /dev/null+++ b/apps/web/src/components/task/extensions/kaneo-issue-link.tsx@@ -0,0 +1,175 @@+import { useQuery } from "@tanstack/react-query";+import { mergeAttributes, Node } from "@tiptap/core";+import type { NodeViewProps } from "@tiptap/react";+import { NodeViewWrapper, ReactNodeViewRenderer } from "@tiptap/react";+import {+ HoverCard,+ HoverCardContent,+ HoverCardTrigger,+} from "@/components/ui/preview-card";+import getProject from "@/fetchers/project/get-project";+import getTask from "@/fetchers/task/get-task";++function toTitleCase(value?: string | null) {+ if (!value) return "";+ return value+ .split("-")+ .map((part) => part.charAt(0).toUpperCase() + part.slice(1))+ .join(" ");+}++function parseTaskRouteFromUrl(url: string) {+ try {+ const parsed = new URL(url);+ const match = parsed.pathname.match(+ /\/dashboard\/workspace\/([^/]+)\/project\/([^/]+)\/task\/([^/]+)(?:\/|$)/i,+ );+ if (!match) return null;+ return {+ workspaceId: match[1],+ projectId: match[2],+ taskId: match[3],+ };+ } catch {+ return null;+ }+}++function KaneoIssueLinkView({ node }: NodeViewProps) {+ const issueKey = String(node.attrs.issueKey || "");+ const taskIdAttr = String(node.attrs.taskId || "");+ const url = String(node.attrs.url || "");+ const taskRoute = parseTaskRouteFromUrl(url);+ const taskId = taskIdAttr || taskRoute?.taskId || "";++ const { data: task } = useQuery({+ queryKey: ["task", taskId, "kaneo-issue-link"],+ queryFn: () => getTask(taskId),+ enabled: Boolean(taskId),+ staleTime: 1000 * 60,+ });+ const { data: project } = useQuery({+ queryKey: [+ "projects",+ taskRoute?.workspaceId,+ taskRoute?.projectId,+ "kaneo-issue-link",+ ],+ queryFn: () =>+ getProject({+ id: taskRoute?.projectId ?? "",+ workspaceId: taskRoute?.workspaceId ?? "",+ }),+ enabled: Boolean(taskRoute?.workspaceId && taskRoute?.projectId),+ staleTime: 1000 * 60,+ });++ const projectSlug = project?.slug ? String(project.slug).toUpperCase() : "";+ const resolvedIssueKey =+ issueKey ||+ (projectSlug && task?.number ? `${projectSlug}-${task.number}` : "");+ const title = task?.title || issueKey || "Task";+ const status = toTitleCase(task?.status) || "Todo";+ const priority = toTitleCase(task?.priority) || "No priority";+ const assignee = task?.assigneeName || "Unassigned";+ const href =+ taskRoute?.workspaceId && taskRoute?.projectId && task?.id+ ? `/dashboard/workspace/${taskRoute.workspaceId}/project/${taskRoute.projectId}/task/${task.id}`+ : url;+ const isInternal = href.startsWith("/");++ return (+ <NodeViewWrapper as="span" className="kaneo-issue-link-node">+ <HoverCard openDelay={160} closeDelay={120}>+ <HoverCardTrigger asChild>+ <a+ href={href}+ target={isInternal ? undefined : "_blank"}+ rel={isInternal ? undefined : "noopener noreferrer"}+ className="kaneo-issue-link-chip"+ >+ {resolvedIssueKey ? (+ <span className="kaneo-issue-link-key">{resolvedIssueKey}</span>+ ) : null}+ <span className="kaneo-issue-link-title">{title}</span>+ </a>+ </HoverCardTrigger>+ <HoverCardContent+ side="top"+ align="start"+ sideOffset={8}+ className="kaneo-issue-link-preview"+ >+ <div className="kaneo-issue-link-preview-top">+ <span className="kaneo-issue-link-preview-key">+ {resolvedIssueKey || "Task"}+ </span>+ <span className="kaneo-issue-link-preview-assignee">+ {assignee}+ </span>+ </div>+ <p className="kaneo-issue-link-preview-title">{title}</p>+ <div className="kaneo-issue-link-preview-meta">+ <span>{status}</span>+ <span>·</span>+ <span>{priority}</span>+ </div>+ </HoverCardContent>+ </HoverCard>+ </NodeViewWrapper>+ );+}++export const KaneoIssueLink = Node.create({+ name: "kaneoIssueLink",+ group: "inline",+ inline: true,+ atom: true,+ selectable: false,++ addAttributes() {+ return {+ url: { default: "" },+ issueKey: { default: "" },+ taskId: { default: "" },+ };+ },++ parseHTML() {+ return [+ { tag: "kaneo-issue-link[url]" },+ { tag: "span[data-type='kaneo-issue-link'][data-url]" },+ ];+ },++ renderHTML({ HTMLAttributes }) {+ return [+ "kaneo-issue-link",+ mergeAttributes(HTMLAttributes, {+ "data-type": "kaneo-issue-link",+ "data-url": HTMLAttributes.url,+ "data-issue-key": HTMLAttributes.issueKey,+ "data-task-id": HTMLAttributes.taskId,+ url: HTMLAttributes.url,+ "issue-key": HTMLAttributes.issueKey,+ "task-id": HTMLAttributes.taskId,+ }),+ ];+ },++ addNodeView() {+ return ReactNodeViewRenderer(KaneoIssueLinkView);+ },++ renderMarkdown(+ node: { attrs?: { url?: string; issueKey?: string; taskId?: string } },+ _helpers: unknown,+ _context: unknown,+ ) {+ const url = String(node.attrs?.url || "");+ const issueKey = String(node.attrs?.issueKey || "");+ const taskId = String(node.attrs?.taskId || "");+ if (!url) return "";+ return `\n<kaneo-issue-link url="${url}" issue-key="${issueKey}" task-id="${taskId}" />\n`;+ },+});diff --git a/apps/web/src/components/task/extensions/shiki-code-block.ts b/apps/web/src/components/task/extensions/shiki-code-block.tsnew file mode 100644index 000000000..d9db9a619--- /dev/null+++ b/apps/web/src/components/task/extensions/shiki-code-block.ts@@ -0,0 +1,146 @@+import { Extension, findChildren } from "@tiptap/core";+import type { Node as ProseMirrorNode } from "@tiptap/pm/model";+import type { EditorState, Transaction } from "@tiptap/pm/state";+import { Plugin, PluginKey } from "@tiptap/pm/state";+import { Decoration, DecorationSet } from "@tiptap/pm/view";+import type { Highlighter } from "shiki";++type ShikiCodeBlockOptions = {+ defaultLanguage: string;+ highlighter: Highlighter | null | (() => Highlighter | null);+ resolveLanguage: (language: string) => string;+ themeDark: string;+ themeLight: string;+};++export const SHIKI_CODEBLOCK_REFRESH_META = "shiki-codeblock-refresh";+const shikiPluginKey = new PluginKey("shiki-codeblock");++function getCurrentTheme(options: ShikiCodeBlockOptions) {+ if (typeof document === "undefined") return options.themeDark;+ return document.documentElement.classList.contains("dark")+ ? options.themeDark+ : options.themeLight;+}++function resolveHighlighter(options: ShikiCodeBlockOptions) {+ if (typeof options.highlighter === "function") {+ return options.highlighter();+ }++ return options.highlighter;+}++function getDecorations(doc: ProseMirrorNode, options: ShikiCodeBlockOptions) {+ const highlighter = resolveHighlighter(options);+ if (!highlighter) return DecorationSet.empty;++ const decorations: Decoration[] = [];+ const theme = getCurrentTheme(options);++ findChildren(doc, (node) => node.type.name === "codeBlock").forEach(+ (block) => {+ const code = block.node.textContent;+ if (!code) return;++ const rawLanguage =+ (block.node.attrs.language as string | undefined) || "";+ const normalizedLanguage = options.resolveLanguage(+ rawLanguage || options.defaultLanguage,+ );+ let tokensResult: ReturnType<Highlighter["codeToTokens"]>;++ try {+ tokensResult = highlighter.codeToTokens(code, {+ lang: normalizedLanguage as never,+ theme: theme as never,+ });+ } catch {+ tokensResult = highlighter.codeToTokens(code, {+ lang: "text" as never,+ theme: theme as never,+ });+ }++ let from = block.pos + 1;+ for (+ let lineIndex = 0;+ lineIndex < tokensResult.tokens.length;+ lineIndex += 1+ ) {+ const line = tokensResult.tokens[lineIndex];+ for (const token of line) {+ const text = token.content || "";+ if (!text.length) continue;++ const to = from + text.length;+ const styles: string[] = [];+ if (token.color) styles.push(`color:${token.color}`);+ if (typeof token.fontStyle === "number") {+ if ((token.fontStyle & 1) !== 0) styles.push("font-style:italic");+ if ((token.fontStyle & 2) !== 0) styles.push("font-weight:600");+ if ((token.fontStyle & 4) !== 0) {+ styles.push("text-decoration:underline");+ }+ }++ if (styles.length > 0) {+ decorations.push(+ Decoration.inline(from, to, { style: styles.join(";") }),+ );+ }+ from = to;+ }++ if (lineIndex < tokensResult.tokens.length - 1) {+ from += 1;+ }+ }+ },+ );++ return DecorationSet.create(doc, decorations);+}++export const ShikiCodeBlock = Extension.create<ShikiCodeBlockOptions>({+ name: "shikiCodeBlock",++ addOptions() {+ return {+ defaultLanguage: "text",+ highlighter: null,+ resolveLanguage: (language: string) => language,+ themeDark: "github-dark",+ themeLight: "github-light",+ };+ },++ addProseMirrorPlugins() {+ const options = this.options;++ return [+ new Plugin({+ key: shikiPluginKey,+ state: {+ init: (_config: unknown, state: EditorState) =>+ getDecorations(state.doc, options),+ apply: (transaction: Transaction, decorationSet: DecorationSet) => {+ if (+ transaction.docChanged ||+ transaction.getMeta(SHIKI_CODEBLOCK_REFRESH_META)+ ) {+ return getDecorations(transaction.doc, options);+ }++ return decorationSet.map(transaction.mapping, transaction.doc);+ },+ },+ props: {+ decorations(state: EditorState) {+ return shikiPluginKey.getState(state);+ },+ },+ }),+ ];+ },+});diff --git a/apps/web/src/components/task/extensions/task-item-with-checkbox.tsx b/apps/web/src/components/task/extensions/task-item-with-checkbox.tsxnew file mode 100644index 000000000..97292448f--- /dev/null+++ b/apps/web/src/components/task/extensions/task-item-with-checkbox.tsx@@ -0,0 +1,42 @@+import TaskItem from "@tiptap/extension-task-item";+import type { NodeViewProps } from "@tiptap/react";+import {+ NodeViewContent,+ NodeViewWrapper,+ ReactNodeViewRenderer,+} from "@tiptap/react";+import { Checkbox } from "@/components/ui/checkbox";++function TaskItemNodeView({ editor, node, updateAttributes }: NodeViewProps) {+ const checked = Boolean(node.attrs.checked);+ const isEditable = editor.isEditable;++ return (+ <NodeViewWrapper+ as="li"+ data-type="taskItem"+ data-checked={checked ? "true" : "false"}+ >+ <div contentEditable={false} className="kaneo-task-item-checkbox">+ <Checkbox+ checked={checked}+ disabled={!isEditable}+ aria-label={+ checked ? "Mark task as incomplete" : "Mark task as complete"+ }+ onCheckedChange={(value) => {+ if (!isEditable) return;+ updateAttributes({ checked: value === true });+ }}+ />+ </div>+ <NodeViewContent as="div" />+ </NodeViewWrapper>+ );+}++export const TaskItemWithCheckbox = TaskItem.extend({+ addNodeView() {+ return ReactNodeViewRenderer(TaskItemNodeView);+ },+});diff --git a/apps/web/src/components/task/task-description-editor.tsx b/apps/web/src/components/task/task-description-editor.tsxindex 898fbc704..083842e24 100644--- a/apps/web/src/components/task/task-description-editor.tsx+++ b/apps/web/src/components/task/task-description-editor.tsx@@ -1,40 +1,4 @@-import { useCreateBlockNote } from "@blocknote/react";-import { BlockNoteView } from "@blocknote/shadcn";-import { useCallback } from "react";-import "@blocknote/shadcn/style.css";-import {- BlockTypeSelect,- type BlockTypeSelectItem,- CreateLinkButton,- FormattingToolbarController,- getDefaultReactSlashMenuItems,- SuggestionMenuController,-} from "@blocknote/react";-import {- Bold,- Code,- Heading1,- Heading2,- Heading3,- Italic,- List,- ListOrdered,- Strikethrough,- Type,- Underline,-} from "lucide-react";-import CustomSlashMenu from "@/components/blocknote/custom-slash-menu";-import { Button } from "@/components/ui/button";-import { KbdSequence } from "@/components/ui/kbd";-import {- Tooltip,- TooltipContent,- TooltipProvider,- TooltipTrigger,-} from "@/components/ui/tooltip";-import { getModifierKeyText } from "@/hooks/use-keyboard-shortcuts";-import { cn } from "@/lib/cn";-import { useUserPreferencesStore } from "@/store/user-preferences";+import CommentEditor from "@/components/activity/comment-editor";type TaskDescriptionEditorProps = {value: string;@@ -43,230 +7,16 @@ type TaskDescriptionEditorProps = {};export default function TaskDescriptionEditor({- value: _value,+ value,onChange,placeholder = "Add a description...",}: TaskDescriptionEditorProps) {- const { theme } = useUserPreferencesStore();-- const editor = useCreateBlockNote({- initialContent: [- {- type: "paragraph",- content: "",- },- ],- });-- const handleEditorChange = useCallback(async () => {- try {- const markdown = await editor.blocksToMarkdownLossy(editor.document);- onChange(markdown);- } catch (error) {- console.error("Failed to convert blocks to markdown:", error);- }- }, [editor, onChange]);-return (- <div className="blocknote-transparent h-full overflow-auto">- <BlockNoteView- editor={editor}- className="h-full [&>div:first-of-type]:!pl-0 [&>div:first-of-type]:!bg-transparent [&>div:first-of-type]:!h-full"- data-placeholder={placeholder}- formattingToolbar={false}- linkToolbar={false}- filePanel={false}- sideMenu={false}- slashMenu={false}- tableHandles={false}- theme={theme as "dark" | "light"}- onChange={handleEditorChange}- >- <FormattingToolbarController- formattingToolbar={() => (- <TooltipProvider>- <div className="bg-sidebar flex items-center gap-0.5 px-1.5 py-1 rounded-md border border-border shadow-sm">- <div className="[&_button]:h-6 [&_button]:px-2 [&_button]:text-xs [&_svg]:size-3">- <BlockTypeSelect- items={[- {- name: "Paragraph",- type: "paragraph",- icon: Type,- props: {},- } satisfies BlockTypeSelectItem,- {- name: "Heading 1",- type: "heading",- icon: Heading1,- props: {- level: 1,- },- } satisfies BlockTypeSelectItem,- {- name: "Heading 2",- type: "heading",- icon: Heading2,- props: {- level: 2,- },- } satisfies BlockTypeSelectItem,- {- name: "Heading 3",- type: "heading",- icon: Heading3,- props: {- level: 3,- },- } satisfies BlockTypeSelectItem,- {- name: "Bullet List",- type: "bulletListItem",- icon: List,- props: {},- } satisfies BlockTypeSelectItem,- {- name: "Numbered List",- type: "numberedListItem",- icon: ListOrdered,- props: {},- } satisfies BlockTypeSelectItem,- ]}- key={"blockTypeSelect"}- />- </div>-- <div className="w-px h-4 bg-border mx-0.5" />-- <Tooltip>- <TooltipTrigger asChild>- <Button- variant="ghost"- size="xs"- onClick={() => editor.toggleStyles({ bold: true })}- className={cn(- "h-6 w-6 p-0",- editor.getActiveStyles().bold &&- "bg-accent text-accent-foreground",- )}- >- <Bold className="size-3" />- </Button>- </TooltipTrigger>- <TooltipContent>- <KbdSequence- keys={[getModifierKeyText(), "B"]}- description="Bold"- />- </TooltipContent>- </Tooltip>- <Tooltip>- <TooltipTrigger asChild>- <Button- variant="ghost"- size="xs"- onClick={() => editor.toggleStyles({ italic: true })}- className={cn(- "h-6 w-6 p-0",- editor.getActiveStyles().italic &&- "bg-accent text-accent-foreground",- )}- >- <Italic className="size-3" />- </Button>- </TooltipTrigger>- <TooltipContent>- <KbdSequence- keys={[getModifierKeyText(), "I"]}- description="Italic"- />- </TooltipContent>- </Tooltip>- <Tooltip>- <TooltipTrigger asChild>- <Button- variant="ghost"- size="xs"- onClick={() => editor.toggleStyles({ underline: true })}- className={cn(- "h-6 w-6 p-0",- editor.getActiveStyles().underline &&- "bg-accent text-accent-foreground",- )}- >- <Underline className="size-3" />- </Button>- </TooltipTrigger>- <TooltipContent>- <KbdSequence- keys={[getModifierKeyText(), "U"]}- description="Underline"- />- </TooltipContent>- </Tooltip>- <Tooltip>- <TooltipTrigger asChild>- <Button- variant="ghost"- size="xs"- onClick={() => editor.toggleStyles({ code: true })}- className={cn(- "h-6 w-6 p-0",- editor.getActiveStyles().code &&- "bg-accent text-accent-foreground",- )}- >- <Code className="size-3" />- </Button>- </TooltipTrigger>- <TooltipContent>- <KbdSequence- keys={[getModifierKeyText(), "E"]}- description="Code"- />- </TooltipContent>- </Tooltip>- <Tooltip>- <TooltipTrigger asChild>- <Button- variant="ghost"- size="xs"- onClick={() => editor.toggleStyles({ strike: true })}- className={cn(- "h-6 w-6 p-0",- editor.getActiveStyles().strike &&- "bg-accent text-accent-foreground",- )}- >- <Strikethrough className="size-3" />- </Button>- </TooltipTrigger>- <TooltipContent>- <KbdSequence- keys={[getModifierKeyText(), "Shift", "X"]}- description="Strikethrough"- />- </TooltipContent>- </Tooltip>-- <div className="w-px h-4 bg-border mx-0.5" />-- <CreateLinkButton key={"createLinkButton"} />- </div>- </TooltipProvider>- )}- />- <SuggestionMenuController- triggerCharacter={"/"}- suggestionMenuComponent={CustomSlashMenu}- getItems={async (query) =>- getDefaultReactSlashMenuItems(editor).filter(- (item) => item.group !== "Media",- query,- )- }- />- </BlockNoteView>- </div>+ <CommentEditor+ value={value}+ onChange={onChange}+ placeholder={placeholder}+ className="[&_.kaneo-comment-editor-content_.ProseMirror]:min-h-[11rem] [&_.kaneo-comment-editor-content_.ProseMirror]:max-h-none [&_.kaneo-comment-editor-content_.ProseMirror]:overflow-visible [&_.kaneo-comment-editor-content_.ProseMirror]:px-0 [&_.kaneo-comment-editor-content_.ProseMirror]:pt-1 [&_.kaneo-comment-editor-content_.ProseMirror]:pb-2"+ />);}diff --git a/apps/web/src/components/task/task-description.tsx b/apps/web/src/components/task/task-description.tsxindex a22f6cabe..8e025a58b 100644--- a/apps/web/src/components/task/task-description.tsx+++ b/apps/web/src/components/task/task-description.tsx@@ -1,125 +1,337 @@-import { useCreateBlockNote } from "@blocknote/react";-import { BlockNoteView } from "@blocknote/shadcn";-import { useCallback, useEffect, useRef } from "react";-import { useForm } from "react-hook-form";-import "@blocknote/shadcn/style.css";-import {- BlockTypeSelect,- type BlockTypeSelectItem,- CreateLinkButton,- FormattingToolbarController,- getDefaultReactSlashMenuItems,- SuggestionMenuController,-} from "@blocknote/react";+import type { Editor } from "@tiptap/core";+import Placeholder from "@tiptap/extension-placeholder";+import { Table } from "@tiptap/extension-table";+import TableCell from "@tiptap/extension-table-cell";+import TableHeader from "@tiptap/extension-table-header";+import TableRow from "@tiptap/extension-table-row";+import TaskList from "@tiptap/extension-task-list";+import { Markdown } from "@tiptap/markdown";+import { Fragment, Slice } from "@tiptap/pm/model";+import { TextSelection } from "@tiptap/pm/state";+import { EditorContent, useEditor } from "@tiptap/react";+import { BubbleMenu } from "@tiptap/react/menus";+import StarterKit from "@tiptap/starter-kit";import {Bold,+ Braces,+ Check,+ ChevronDown,Code,- Heading1,+ Copy,Heading2,- Heading3,Italic,+ Link2,List,ListOrdered,+ ListTodo,+ Quote,Strikethrough,- Type,- Underline,+ Table2,+ Underline as UnderlineIcon,} from "lucide-react";-import CustomSlashMenu from "@/components/blocknote/custom-slash-menu";+import type { MouseEvent as ReactMouseEvent } from "react";+import { useCallback, useEffect, useMemo, useRef, useState } from "react";+import { bundledLanguages, type Highlighter } from "shiki";import { Button } from "@/components/ui/button";-import { Form, FormControl, FormField } from "@/components/ui/form";-import { KbdSequence } from "@/components/ui/kbd";+import { Input } from "@/components/ui/input";import {- Tooltip,- TooltipContent,- TooltipProvider,- TooltipTrigger,-} from "@/components/ui/tooltip";+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuRadioGroup,+ DropdownMenuRadioItem,+ DropdownMenuSeparator,+ DropdownMenuTrigger,+} from "@/components/ui/menu";import { useUpdateTaskDescription } from "@/hooks/mutations/task/use-update-task-description";import useGetTask from "@/hooks/queries/task/use-get-task";-import { getModifierKeyText } from "@/hooks/use-keyboard-shortcuts";import { cn } from "@/lib/cn";import debounce from "@/lib/debounce";-import { useUserPreferencesStore } from "@/store/user-preferences";+import { parseTaskListMarkdownToNodes } from "@/lib/editor-task-list-paste";+import {+ extractIssueKeyFromUrl,+ extractTaskIdFromUrl,+ isYouTubeUrl,+ normalizeUrl,+} from "@/lib/editor-url-utils";+import { getSharedShikiHighlighter } from "@/lib/shiki-highlighter";+import { EmbedBlock } from "./extensions/embed-block";+import { KaneoIssueLink } from "./extensions/kaneo-issue-link";+import {+ SHIKI_CODEBLOCK_REFRESH_META,+ ShikiCodeBlock,+} from "./extensions/shiki-code-block";+import { TaskItemWithCheckbox } from "./extensions/task-item-with-checkbox";+import "tippy.js/dist/tippy.css";type TaskDescriptionProps = {taskId: string;};+type HoveredCodeBlock = {+ language: string;+ nodePos: number;+ top: number;+ left: number;+};++type SlashRange = { from: number; to: number };++type SlashCommand = {+ id: string;+ label: string;+ group: "text" | "lists" | "insert";+ shortcut?: string;+ search: string;+ run: (editor: Editor, range: SlashRange) => void;+};++type SlashMenuState = {+ from: number;+ to: number;+ query: string;+ top: number;+ left: number;+ selectedIndex: number;+};++function formatMarkdown(markdown: string) {+ return markdown+ .replace(/\r\n/g, "\n")+ .replace(/\n{3,}/g, "\n\n")+ .replace(/\n{2,}$/g, "\n");+}++type EmbedComposerState = {+ mode: "choice" | "input";+ url: string;+ top: number;+ left: number;+ range?: SlashRange;+};++const CODE_LANGUAGE_OPTIONS = [+ { value: "bash", label: "Bash" },+ { value: "csharp", label: "C#" },+ { value: "cpp", label: "C++" },+ { value: "css", label: "CSS" },+ { value: "clojure", label: "Clojure" },+ { value: "cypher", label: "Cypher" },+ { value: "dart", label: "Dart" },+ { value: "diff", label: "Diff" },+ { value: "elixir", label: "Elixir" },+ { value: "excel", label: "Excel" },+ { value: "go", label: "Golang" },+ { value: "graphql", label: "GraphQL" },+ { value: "html", label: "HTML" },+ { value: "haskell", label: "Haskell" },+ { value: "json", label: "JSON" },+ { value: "java", label: "Java" },+ { value: "javascript", label: "JavaScript" },+ { value: "kotlin", label: "Kotlin" },+ { value: "makefile", label: "Makefile" },+ { value: "markdown", label: "Markdown" },+ { value: "ocaml", label: "OCaml" },+ { value: "php", label: "PHP" },+ { value: "perl", label: "Perl" },+ { value: "plaintext", label: "Plaintext" },+ { value: "python", label: "Python" },+ { value: "r", label: "R" },+ { value: "reasonml", label: "ReasonML" },+ { value: "ruby", label: "Ruby" },+ { value: "rust", label: "Rust" },+ { value: "sql", label: "SQL" },+ { value: "swift", label: "Swift" },+ { value: "toml", label: "TOML" },+ { value: "terraform", label: "Terraform" },+ { value: "typescript", label: "TypeScript" },+ { value: "xml", label: "XML" },+ { value: "yaml", label: "YAML" },+];++const SHIKI_LANGUAGE_ALIASES: Record<string, string> = {+ excel: "csv",+ plaintext: "text",+ reasonml: "ocaml",+};++const SLASH_COMMANDS: SlashCommand[] = [+ {+ id: "paragraph",+ label: "Text",+ group: "text",+ search: "text paragraph normal",+ run: (editor, range) => {+ editor.chain().focus().deleteRange(range).setParagraph().run();+ },+ },+ {+ id: "heading-2",+ label: "Heading",+ group: "text",+ shortcut: "Ctrl Alt 2",+ search: "heading title h2",+ run: (editor, range) => {+ editor+ .chain()+ .focus()+ .deleteRange(range)+ .toggleHeading({ level: 2 })+ .run();+ },+ },+ {+ id: "bullet-list",+ label: "Bulleted list",+ group: "lists",+ shortcut: "Ctrl Alt 8",+ search: "list bullet unordered",+ run: (editor, range) => {+ editor.chain().focus().deleteRange(range).toggleBulletList().run();+ },+ },+ {+ id: "task-list",+ label: "To-do list",+ group: "lists",+ search: "todo to-do checklist checkbox task list",+ run: (editor, range) => {+ editor.chain().focus().deleteRange(range).toggleTaskList().run();+ },+ },+ {+ id: "ordered-list",+ label: "Numbered list",+ group: "lists",+ shortcut: "Ctrl Alt 9",+ search: "list ordered numbered",+ run: (editor, range) => {+ editor.chain().focus().deleteRange(range).toggleOrderedList().run();+ },+ },+ {+ id: "blockquote",+ label: "Quote",+ group: "insert",+ search: "quote blockquote",+ run: (editor, range) => {+ editor.chain().focus().deleteRange(range).toggleBlockquote().run();+ },+ },+ {+ id: "code-block",+ label: "Code block",+ group: "insert",+ shortcut: "Ctrl Alt \\",+ search: "code snippet",+ run: (editor, range) => {+ editor.chain().focus().deleteRange(range).toggleCodeBlock().run();+ },+ },+ {+ id: "table",+ label: "Table",+ group: "insert",+ search: "table grid",+ run: (editor, range) => {+ editor+ .chain()+ .focus()+ .deleteRange(range)+ .insertTable({ cols: 3, rows: 3 })+ .run();+ },+ },+];+export default function TaskDescription({ taskId }: TaskDescriptionProps) {const { data: task } = useGetTask(taskId);const { mutateAsync: updateTaskDescription } = useUpdateTaskDescription();- const { theme } = useUserPreferencesStore();- const isInitializedRef = useRef(false);- const isLoadingInitialContent = useRef(false);++ const editorShellRef = useRef<HTMLDivElement | null>(null);const taskRef = useRef(task);const updateTaskRef = useRef(updateTaskDescription);+ const activeTaskIdRef = useRef<string | null>(null);+ const lastEditorRef = useRef<Editor | null>(null);+ const hasHydratedRef = useRef(false);+ const isSyncingExternalContentRef = useRef(false);+ const latestSyncedMarkdownRef = useRef("");+ const hoveredCodeBlockElementRef = useRef<HTMLElement | null>(null);+ const [hoveredCodeBlock, setHoveredCodeBlock] =+ useState<HoveredCodeBlock | null>(null);+ const [isCodeLanguageMenuOpen, setIsCodeLanguageMenuOpen] = useState(false);+ const codeCopyResetTimeoutRef = useRef<number | null>(null);+ const [isCodeCopied, setIsCodeCopied] = useState(false);+ const [shikiHighlighter, setShikiHighlighter] = useState<Highlighter | null>(+ null,+ );+ const shikiHighlighterRef = useRef<Highlighter | null>(null);+ const [slashMenu, setSlashMenu] = useState<SlashMenuState | null>(null);+ const [embedComposer, setEmbedComposer] = useState<EmbedComposerState | null>(+ null,+ );+ const [embedComposerError, setEmbedComposerError] = useState("");+ const slashMenuRef = useRef<SlashMenuState | null>(null);useEffect(() => {taskRef.current = task;updateTaskRef.current = updateTaskDescription;}, [task, updateTaskDescription]);- const form = useForm<{- description: string;- }>({- values: {- description: task?.description || "",- },- });+ const shikiSupportedLanguages = useMemo(+ () => new Set([...Object.keys(bundledLanguages), "text"]),+ [],+ );+ const toShikiLanguage = useCallback(+ (language: string) => SHIKI_LANGUAGE_ALIASES[language] || language,+ [],+ );+ const codeLanguages = useMemo(+ () =>+ CODE_LANGUAGE_OPTIONS.filter(({ value }) =>+ shikiSupportedLanguages.has(toShikiLanguage(value)),+ ),+ [shikiSupportedLanguages, toShikiLanguage],+ );+ const getOverlayPosition = useCallback(+ (editorView: Editor["view"], pos: number) => {+ const coords = editorView.coordsAtPos(pos);+ const shellRect = editorShellRef.current?.getBoundingClientRect();- const editor = useCreateBlockNote({- initialContent: [- {- type: "paragraph",- content: "",- },- ],- });+ if (!shellRect) {+ return { top: coords.bottom + 8, left: coords.left };+ }++ return {+ top: coords.bottom - shellRect.top + 8,+ left: coords.left - shellRect.left,+ };+ },+ [],+ );useEffect(() => {- if (task?.description?.trim() && !isInitializedRef.current) {- const loadMarkdown = async () => {- isLoadingInitialContent.current = true;- try {- const blocks = await editor.tryParseMarkdownToBlocks(- task.description || "",- );- editor.replaceBlocks(editor.document, blocks);- setTimeout(() => {- isInitializedRef.current = true;- isLoadingInitialContent.current = false;- }, 100);- } catch {- const blocks = await editor.tryParseMarkdownToBlocks("");- editor.replaceBlocks(editor.document, blocks);- setTimeout(() => {- isInitializedRef.current = true;- isLoadingInitialContent.current = false;- }, 100);+ let isDisposed = false;++ void getSharedShikiHighlighter()+ .then((nextHighlighter) => {+ shikiHighlighterRef.current = nextHighlighter;+ if (!isDisposed) {+ setShikiHighlighter(nextHighlighter);}- };- loadMarkdown();- } else if (!task?.description?.trim() && !isInitializedRef.current) {- const clearEditor = async () => {- isLoadingInitialContent.current = true;- const blocks = await editor.tryParseMarkdownToBlocks("");- editor.replaceBlocks(editor.document, blocks);- setTimeout(() => {- isInitializedRef.current = true;- isLoadingInitialContent.current = false;- }, 100);- };- clearEditor();- }- }, [task?.description, editor]);+ })+ .catch((error) => {+ console.error("Failed to initialize Shiki highlighter:", error);+ });++ return () => {+ isDisposed = true;+ };+ }, []);const debouncedUpdate = useCallback(debounce(async (markdown: string) => {- if (!isInitializedRef.current) return;-const currentTask = taskRef.current;const updateTaskFn = updateTaskRef.current;-if (!currentTask || !updateTaskFn) return;try {@@ -130,244 +342,1045 @@ export default function TaskDescription({ taskId }: TaskDescriptionProps) {} catch (error) {console.error("Failed to update description:", error);}- }, 800),+ }, 700),[],);- const handleEditorChange = useCallback(async () => {- if (!isInitializedRef.current || isLoadingInitialContent.current) {+ const editor = useEditor(+ {+ immediatelyRender: false,+ extensions: [+ StarterKit.configure({+ codeBlock: {+ HTMLAttributes: { class: "kaneo-tiptap-codeblock" },+ },+ trailingNode: false,+ heading: { levels: [1, 2, 3] },+ link: {+ autolink: true,+ defaultProtocol: "https",+ openOnClick: false,+ },+ }),+ Markdown.configure({+ markedOptions: {+ breaks: true,+ gfm: true,+ },+ }),+ ShikiCodeBlock.configure({+ highlighter: () => shikiHighlighterRef.current,+ resolveLanguage: toShikiLanguage,+ themeDark: "github-dark",+ themeLight: "github-light",+ }),+ EmbedBlock,+ KaneoIssueLink,+ TaskList,+ TaskItemWithCheckbox.configure({+ nested: true,+ }),+ Placeholder.configure({+ placeholder: "Write a description…",+ }),+ Table.configure({+ resizable: true,+ }),+ TableRow,+ TableHeader,+ TableCell,+ ],+ editorProps: {+ attributes: {+ class: "kaneo-tiptap-prose",+ },+ handlePaste: (view, event) => {+ const plainText = event.clipboardData?.getData("text/plain") || "";+ const taskListNodes = parseTaskListMarkdownToNodes(plainText);+ if (taskListNodes) {+ event.preventDefault();+ const nodes = taskListNodes.map((node) =>+ view.state.schema.nodeFromJSON(node),+ );+ const fragment = Fragment.fromArray(nodes);+ view.dispatch(+ view.state.tr+ .replaceSelection(new Slice(fragment, 0, 0))+ .scrollIntoView(),+ );+ return true;+ }++ const pastedText = plainText.trim();+ if (!pastedText || /\s/.test(pastedText)) return false;++ const url = normalizeUrl(pastedText);+ if (!url) return false;++ const issueKey = extractIssueKeyFromUrl(url);+ const taskIdFromUrl = extractTaskIdFromUrl(url);+ if (issueKey || taskIdFromUrl) {+ event.preventDefault();+ view.dispatch(+ view.state.tr.replaceSelectionWith(+ view.state.schema.nodes.kaneoIssueLink.create({+ url,+ issueKey: issueKey || "",+ taskId: taskIdFromUrl || "",+ }),+ ),+ );+ return true;+ }++ if (!isYouTubeUrl(url)) return false;++ event.preventDefault();+ const coords = getOverlayPosition(view, view.state.selection.from);++ setEmbedComposer({+ mode: "choice",+ url,+ top: coords.top,+ left: coords.left,+ });+ setEmbedComposerError("");+ return true;+ },+ handleKeyDown: (view, event) => {+ if (+ !(+ (event.metaKey || event.ctrlKey) &&+ event.key.toLowerCase() === "a"+ )+ ) {+ return false;+ }++ const { state } = view;+ const { $from } = state.selection;+ if ($from.parent.type.name !== "codeBlock") {+ return false;+ }++ event.preventDefault();+ view.dispatch(+ state.tr.setSelection(+ TextSelection.create(state.doc, $from.start(), $from.end()),+ ),+ );+ return true;+ },+ },+ onUpdate: ({ editor: activeEditor }) => {+ if (isSyncingExternalContentRef.current) return;+ const markdown = formatMarkdown(activeEditor.getMarkdown());+ if (markdown === latestSyncedMarkdownRef.current) return;+ latestSyncedMarkdownRef.current = markdown;+ debouncedUpdate(markdown);+ },+ },+ [getOverlayPosition, toShikiLanguage],+ );++ useEffect(() => {+ if (!editor || !shikiHighlighter) return;+ editor.view.dispatch(+ editor.state.tr.setMeta(SHIKI_CODEBLOCK_REFRESH_META, true),+ );+ }, [editor, shikiHighlighter]);++ useEffect(() => {+ if (!editor || typeof document === "undefined") return;++ const root = document.documentElement;+ const refreshShikiTheme = () => {+ editor.view.dispatch(+ editor.state.tr.setMeta(SHIKI_CODEBLOCK_REFRESH_META, true),+ );+ };++ const observer = new MutationObserver((mutations) => {+ for (const mutation of mutations) {+ if (mutation.attributeName === "class") {+ refreshShikiTheme();+ break;+ }+ }+ });++ observer.observe(root, { attributes: true, attributeFilter: ["class"] });+ return () => {+ observer.disconnect();+ };+ }, [editor]);++ useEffect(() => {+ slashMenuRef.current = slashMenu;+ }, [slashMenu]);++ const setLink = useCallback(+ (prefilledUrl?: string) => {+ if (!editor) return;+ const previousUrl = editor.getAttributes("link").href as+ | string+ | undefined;+ const url = window.prompt("Enter URL", prefilledUrl || previousUrl || "");+ if (url === null) return;+ if (url.trim() === "") {+ editor.chain().focus().extendMarkRange("link").unsetLink().run();+ return;+ }+ editor+ .chain()+ .focus()+ .extendMarkRange("link")+ .setLink({ href: url })+ .run();+ },+ [editor],+ );++ const filteredSlashCommands = useMemo(() => {+ const query = slashMenu?.query.trim().toLowerCase() || "";+ if (!query) return SLASH_COMMANDS;+ return SLASH_COMMANDS.filter(+ (command) =>+ command.label.toLowerCase().includes(query) ||+ command.search.includes(query),+ );+ }, [slashMenu?.query]);++ const filteredSlashCommandsRef = useRef<SlashCommand[]>(+ filteredSlashCommands,+ );+ useEffect(() => {+ filteredSlashCommandsRef.current = filteredSlashCommands;+ }, [filteredSlashCommands]);++ const groupedSlashCommands = useMemo(+ () => [+ {+ title: "Text",+ items: filteredSlashCommands.filter(+ (command) => command.group === "text",+ ),+ },+ {+ title: "Lists",+ items: filteredSlashCommands.filter(+ (command) => command.group === "lists",+ ),+ },+ {+ title: "Insert",+ items: filteredSlashCommands.filter(+ (command) => command.group === "insert",+ ),+ },+ ],+ [filteredSlashCommands],+ );++ const runSlashCommand = useCallback(+ (command: SlashCommand) => {+ if (!editor || !slashMenuRef.current) return;+ command.run(editor, {+ from: slashMenuRef.current.from,+ to: slashMenuRef.current.to,+ });+ setSlashMenu(null);+ },+ [editor],+ );++ const syncSlashMenu = useCallback(+ (activeEditor: Editor) => {+ const { state, view } = activeEditor;+ if (!state.selection.empty) {+ setSlashMenu(null);+ return;+ }++ const { $from } = state.selection;+ if ($from.parent.type.name === "codeBlock") {+ setSlashMenu(null);+ return;+ }++ const textBeforeCursor = state.doc.textBetween(+ $from.start(),+ $from.pos,+ "\n",+ "\0",+ );+ const match = /(?:^|\s)\/([^\s/]*)$/.exec(textBeforeCursor);+ if (!match) {+ setSlashMenu(null);+ return;+ }++ const query = match[1] || "";+ const from = $from.pos - query.length - 1;+ const to = $from.pos;+ const coords = getOverlayPosition(view, $from.pos);++ setSlashMenu((current) => {+ const isSameQuery =+ current?.from === from &&+ current?.to === to &&+ current?.query === query;+ return {+ from,+ to,+ query,+ top: coords.top - 2,+ left: coords.left,+ selectedIndex: isSameQuery ? current.selectedIndex : 0,+ };+ });+ },+ [getOverlayPosition],+ );++ useEffect(() => {+ if (!editor) return;+ if (lastEditorRef.current !== editor) {+ hasHydratedRef.current = false;+ lastEditorRef.current = editor;+ }++ const isTaskChanged = activeTaskIdRef.current !== taskId;+ if (isTaskChanged) {+ activeTaskIdRef.current = taskId;+ hasHydratedRef.current = false;+ latestSyncedMarkdownRef.current = "";+ }++ const incomingMarkdown = formatMarkdown(task?.description || "");+ if (!hasHydratedRef.current) {+ isSyncingExternalContentRef.current = true;+ latestSyncedMarkdownRef.current = incomingMarkdown;+ editor.commands.setContent(incomingMarkdown, {+ emitUpdate: false,+ contentType: "markdown",+ });+ hasHydratedRef.current = true;+ requestAnimationFrame(() => {+ isSyncingExternalContentRef.current = false;+ });return;}+ if (editor.isFocused) return;+ if (incomingMarkdown === latestSyncedMarkdownRef.current) return;++ isSyncingExternalContentRef.current = true;+ latestSyncedMarkdownRef.current = incomingMarkdown;+ editor.commands.setContent(incomingMarkdown, {+ emitUpdate: false,+ contentType: "markdown",+ });+ requestAnimationFrame(() => {+ isSyncingExternalContentRef.current = false;+ });+ }, [editor, taskId, task?.description]);++ useEffect(() => {+ if (!editor) return;++ syncSlashMenu(editor);+ const onSelection = () => syncSlashMenu(editor);+ const onUpdate = () => syncSlashMenu(editor);++ editor.on("selectionUpdate", onSelection);+ editor.on("update", onUpdate);++ return () => {+ editor.off("selectionUpdate", onSelection);+ editor.off("update", onUpdate);+ };+ }, [editor, syncSlashMenu]);++ const submitEmbedComposer = useCallback(+ (mode: "embed" | "link") => {+ if (!editor || !embedComposer) return;+ const url = normalizeUrl(embedComposer.url);+ if (!url) {+ setEmbedComposerError("Enter a valid URL");+ return;+ }++ const chain = editor.chain().focus();+ if (embedComposer.range) {+ chain.deleteRange(embedComposer.range);+ }++ if (mode === "link") {+ chain.insertContent(url).run();+ } else {+ if (!isYouTubeUrl(url)) {+ setEmbedComposerError("Only YouTube links can be embedded.");+ return;+ }+ chain+ .insertContent({+ type: "embedBlock",+ attrs: {+ url,+ mode: "embed",+ },+ })+ .run();+ }++ setEmbedComposer(null);+ setEmbedComposerError("");+ },+ [editor, embedComposer],+ );++ useEffect(() => {+ const handleKeyDown = (event: KeyboardEvent) => {+ if (embedComposer) {+ if (event.key === "Tab") {+ event.preventDefault();+ submitEmbedComposer("embed");+ return;+ }+ if (event.key === "Enter") {+ event.preventDefault();+ submitEmbedComposer("link");+ return;+ }+ if (event.key === "Escape") {+ event.preventDefault();+ if (embedComposer.mode === "choice") {+ submitEmbedComposer("link");+ } else {+ setEmbedComposer(null);+ setEmbedComposerError("");+ }+ }+ return;+ }++ const current = slashMenuRef.current;+ if (!editor || !current || !editor.isFocused) return;++ const commands = filteredSlashCommandsRef.current;+ if (event.key === "Escape") {+ event.preventDefault();+ setSlashMenu(null);+ return;+ }++ if (!commands.length) return;++ if (event.key === "ArrowDown") {+ event.preventDefault();+ setSlashMenu((value) =>+ value+ ? {+ ...value,+ selectedIndex: (value.selectedIndex + 1) % commands.length,+ }+ : value,+ );+ return;+ }++ if (event.key === "ArrowUp") {+ event.preventDefault();+ setSlashMenu((value) =>+ value+ ? {+ ...value,+ selectedIndex:+ (value.selectedIndex - 1 + commands.length) % commands.length,+ }+ : value,+ );+ return;+ }++ if (event.key === "Enter" || event.key === "Tab") {+ event.preventDefault();+ const command = commands[current.selectedIndex] || commands[0];+ if (!command) return;+ runSlashCommand(command);+ }+ };++ window.addEventListener("keydown", handleKeyDown, true);+ return () => {+ window.removeEventListener("keydown", handleKeyDown, true);+ };+ }, [editor, embedComposer, runSlashCommand, submitEmbedComposer]);++ useEffect(() => {+ if (!slashMenu) return;+ if (filteredSlashCommands.length === 0) return;+ if (slashMenu.selectedIndex < filteredSlashCommands.length) return;+ setSlashMenu((value) => (value ? { ...value, selectedIndex: 0 } : value));+ }, [filteredSlashCommands, slashMenu]);++ const setCodeLanguage = (language: string | null) => {+ if (!editor || !hoveredCodeBlock) return;+ const { nodePos } = hoveredCodeBlock;+ const resolvedLanguage = language || "auto";++ if (resolvedLanguage === "auto") {+ editor+ .chain()+ .focus()+ .setNodeSelection(nodePos)+ .updateAttributes("codeBlock", { language: "" })+ .run();+ setHoveredCodeBlock((current) =>+ current ? { ...current, language: "auto" } : current,+ );+ return;+ }++ editor+ .chain()+ .focus()+ .setNodeSelection(nodePos)+ .updateAttributes("codeBlock", { language: resolvedLanguage })+ .run();+ setHoveredCodeBlock((current) =>+ current ? { ...current, language: resolvedLanguage } : current,+ );+ };++ const resolveCodeBlockNodeData = useCallback(+ (pos: number) => {+ if (!editor) return null;+ const resolvedPos = editor.state.doc.resolve(+ Math.max(0, Math.min(pos, editor.state.doc.content.size)),+ );++ for (let depth = resolvedPos.depth; depth > 0; depth -= 1) {+ const node = resolvedPos.node(depth);+ if (node.type.name !== "codeBlock") continue;+ return {+ language: (node.attrs.language as string | undefined) || "auto",+ nodePos: resolvedPos.before(depth),+ };+ }++ return null;+ },+ [editor],+ );++ const updateHoveredCodeBlockFromElement = useCallback(+ (codeBlockElement: HTMLElement | null) => {+ if (!editor || !codeBlockElement) {+ if (!isCodeLanguageMenuOpen) {+ hoveredCodeBlockElementRef.current = null;+ setHoveredCodeBlock(null);+ }+ return;+ }++ const domPos = editor.view.posAtDOM(codeBlockElement, 0);+ const nodeData = resolveCodeBlockNodeData(domPos);+ if (!nodeData) return;++ const rect = codeBlockElement.getBoundingClientRect();+ const shellRect = editorShellRef.current?.getBoundingClientRect();+ hoveredCodeBlockElementRef.current = codeBlockElement;+ setHoveredCodeBlock((current) => {+ if (current?.nodePos !== nodeData.nodePos) {+ setIsCodeCopied(false);+ }++ return {+ language: nodeData.language,+ nodePos: nodeData.nodePos,+ top: shellRect ? rect.top - shellRect.top + 8 : rect.top + 8,+ left: shellRect ? rect.right - shellRect.left - 10 : rect.right - 10,+ };+ });+ },+ [editor, isCodeLanguageMenuOpen, resolveCodeBlockNodeData],+ );++ const activeCodeLanguageLabel =+ codeLanguages.find(+ (language) => language.value === hoveredCodeBlock?.language,+ )?.label || "Auto detect";++ useEffect(() => {+ return () => {+ if (codeCopyResetTimeoutRef.current !== null) {+ window.clearTimeout(codeCopyResetTimeoutRef.current);+ }+ };+ }, []);++ const copyHoveredCodeBlock = useCallback(async () => {+ if (!editor || !hoveredCodeBlock) return;+ const node = editor.state.doc.nodeAt(hoveredCodeBlock.nodePos);+ if (!node || node.type.name !== "codeBlock") return;++ const content = node.textContent || "";+ if (!content) return;+try {- const markdown = await editor.blocksToMarkdownLossy(editor.document);- form.setValue("description", markdown);- debouncedUpdate(markdown);- } catch (error) {- console.error("Failed to convert blocks to markdown:", error);+ await navigator.clipboard.writeText(content);+ setIsCodeCopied(true);+ if (codeCopyResetTimeoutRef.current !== null) {+ window.clearTimeout(codeCopyResetTimeoutRef.current);+ }+ codeCopyResetTimeoutRef.current = window.setTimeout(() => {+ setIsCodeCopied(false);+ codeCopyResetTimeoutRef.current = null;+ }, 1400);+ } catch (_error) {+ // ignore clipboard write failures}- }, [editor, form, debouncedUpdate]);+ }, [editor, hoveredCodeBlock]);++ useEffect(() => {+ if (!hoveredCodeBlockElementRef.current || !hoveredCodeBlock) return;+ const syncPosition = () => {+ updateHoveredCodeBlockFromElement(hoveredCodeBlockElementRef.current);+ };++ window.addEventListener("scroll", syncPosition, true);+ window.addEventListener("resize", syncPosition);+ return () => {+ window.removeEventListener("scroll", syncPosition, true);+ window.removeEventListener("resize", syncPosition);+ };+ }, [hoveredCodeBlock, updateHoveredCodeBlockFromElement]);++ const handleEditorMouseMove = useCallback(+ (event: ReactMouseEvent<HTMLElement>) => {+ const target = event.target as HTMLElement;+ if (target.closest(".kaneo-codeblock-language")) return;+ const hovered = target.closest(+ "pre.kaneo-tiptap-codeblock",+ ) as HTMLElement | null;++ if (!hovered) {+ if (!isCodeLanguageMenuOpen) {+ hoveredCodeBlockElementRef.current = null;+ setHoveredCodeBlock(null);+ }+ return;+ }++ updateHoveredCodeBlockFromElement(hovered);+ },+ [isCodeLanguageMenuOpen, updateHoveredCodeBlockFromElement],+ );++ const handleEditorMouseLeave = useCallback(+ (event: ReactMouseEvent<HTMLElement>) => {+ const relatedTarget = event.relatedTarget as HTMLElement | null;+ if (relatedTarget?.closest(".kaneo-codeblock-language")) return;+ if (isCodeLanguageMenuOpen) return;+ hoveredCodeBlockElementRef.current = null;+ setHoveredCodeBlock(null);+ },+ [isCodeLanguageMenuOpen],+ );return (- <Form {...form}>- <FormField- control={form.control}- name="description"- render={() => (- <FormControl>- <div className="blocknote-transparent">- <BlockNoteView- editor={editor}- className="min-h-[200px] [&>div:first-of-type]:!pl-0 [&>div:first-of-type]:!bg-transparent"- data-placeholder="Add a description..."- formattingToolbar={false}- linkToolbar={false}- filePanel={false}- sideMenu={false}- slashMenu={false}- tableHandles={false}- theme={theme as "dark" | "light"}- onChange={handleEditorChange}+ <div ref={editorShellRef} className="kaneo-tiptap-shell group">+ {editor && hoveredCodeBlock && (+ <div+ className="kaneo-codeblock-language"+ style={{+ top: hoveredCodeBlock.top,+ left: hoveredCodeBlock.left,+ position: "absolute",+ }}+ >+ <button+ type="button"+ className="kaneo-codeblock-language-trigger kaneo-codeblock-copy-trigger"+ aria-label={isCodeCopied ? "Copied" : "Copy code"}+ onMouseDown={(event) => {+ event.preventDefault();+ }}+ onClick={() => {+ void copyHoveredCodeBlock();+ }}+ >+ {isCodeCopied ? (+ <Check className="size-3.5" />+ ) : (+ <Copy className="size-3.5" />+ )}+ <span>{isCodeCopied ? "Copied" : "Copy"}</span>+ </button>+ <DropdownMenu+ open={isCodeLanguageMenuOpen}+ onOpenChange={setIsCodeLanguageMenuOpen}+ >+ <DropdownMenuTrigger asChild>+ <button+ type="button"+ className="kaneo-codeblock-language-trigger"+ >+ <span className="truncate">{activeCodeLanguageLabel}</span>+ <ChevronDown className="size-3.5 opacity-70" />+ </button>+ </DropdownMenuTrigger>+ <DropdownMenuContent+ align="end"+ side="bottom"+ sideOffset={6}+ className="max-h-72 w-48 overflow-y-auto"+ >+ <DropdownMenuRadioGroup+ value={hoveredCodeBlock.language}+ onValueChange={setCodeLanguage}>- <FormattingToolbarController- formattingToolbar={() => (- <TooltipProvider>- <div className="bg-sidebar flex items-center gap-0.5 px-1.5 py-1 rounded-md border border-border shadow-sm">- <div className="[&_button]:h-6 [&_button]:px-2 [&_button]:text-xs [&_svg]:size-3">- <BlockTypeSelect- items={[- {- name: "Paragraph",- type: "paragraph",- icon: Type,- props: {},- } satisfies BlockTypeSelectItem,- {- name: "Heading 1",- type: "heading",- icon: Heading1,- props: {- level: 1,- },- } satisfies BlockTypeSelectItem,- {- name: "Heading 2",- type: "heading",- icon: Heading2,- props: {- level: 2,- },- } satisfies BlockTypeSelectItem,- {- name: "Heading 3",- type: "heading",- icon: Heading3,- props: {- level: 3,- },- } satisfies BlockTypeSelectItem,- {- name: "Bullet List",- type: "bulletListItem",- icon: List,- props: {},- } satisfies BlockTypeSelectItem,- {- name: "Numbered List",- type: "numberedListItem",- icon: ListOrdered,- props: {},- } satisfies BlockTypeSelectItem,- ]}- key={"blockTypeSelect"}- />- </div>-- <div className="w-px h-4 bg-border mx-0.5" />-- <Tooltip>- <TooltipTrigger asChild>- <Button- variant="ghost"- size="xs"- onClick={() =>- editor.toggleStyles({ bold: true })- }- className={cn(- "h-6 w-6 p-0",- editor.getActiveStyles().bold &&- "bg-accent text-accent-foreground",- )}- >- <Bold className="size-3" />- </Button>- </TooltipTrigger>- <TooltipContent>- <KbdSequence- keys={[getModifierKeyText(), "B"]}- description="Bold"- />- </TooltipContent>- </Tooltip>- <Tooltip>- <TooltipTrigger asChild>- <Button- variant="ghost"- size="xs"- onClick={() =>- editor.toggleStyles({ italic: true })- }- className={cn(- "h-6 w-6 p-0",- editor.getActiveStyles().italic &&- "bg-accent text-accent-foreground",- )}- >- <Italic className="size-3" />- </Button>- </TooltipTrigger>- <TooltipContent>- <KbdSequence- keys={[getModifierKeyText(), "I"]}- description="Italic"- />- </TooltipContent>- </Tooltip>- <Tooltip>- <TooltipTrigger asChild>- <Button- variant="ghost"- size="xs"- onClick={() =>- editor.toggleStyles({ underline: true })- }- className={cn(- "h-6 w-6 p-0",- editor.getActiveStyles().underline &&- "bg-accent text-accent-foreground",- )}- >- <Underline className="size-3" />- </Button>- </TooltipTrigger>- <TooltipContent>- <KbdSequence- keys={[getModifierKeyText(), "U"]}- description="Underline"- />- </TooltipContent>- </Tooltip>- <Tooltip>- <TooltipTrigger asChild>- <Button- variant="ghost"- size="xs"- onClick={() =>- editor.toggleStyles({ code: true })- }- className={cn(- "h-6 w-6 p-0",- editor.getActiveStyles().code &&- "bg-accent text-accent-foreground",- )}- >- <Code className="size-3" />- </Button>- </TooltipTrigger>- <TooltipContent>- <KbdSequence- keys={[getModifierKeyText(), "E"]}- description="Code"- />- </TooltipContent>- </Tooltip>- <Tooltip>- <TooltipTrigger asChild>- <Button- variant="ghost"- size="xs"- onClick={() =>- editor.toggleStyles({ strike: true })- }- className={cn(- "h-6 w-6 p-0",- editor.getActiveStyles().strike &&- "bg-accent text-accent-foreground",- )}- >- <Strikethrough className="size-3" />- </Button>- </TooltipTrigger>- <TooltipContent>- <KbdSequence- keys={[getModifierKeyText(), "Shift", "X"]}- description="Strikethrough"- />- </TooltipContent>- </Tooltip>-- <div className="w-px h-4 bg-border mx-0.5" />-- <CreateLinkButton key={"createLinkButton"} />- </div>- </TooltipProvider>- )}- />- <SuggestionMenuController- triggerCharacter={"/"}- suggestionMenuComponent={CustomSlashMenu}- getItems={async (query) =>- getDefaultReactSlashMenuItems(editor).filter(- (item) => item.group !== "Media",- query,- )- }- />- </BlockNoteView>+ <DropdownMenuRadioItem value="auto">+ Auto detect+ </DropdownMenuRadioItem>+ <DropdownMenuSeparator />+ {codeLanguages.map(({ value, label }) => (+ <DropdownMenuRadioItem key={value} value={value}>+ {label}+ </DropdownMenuRadioItem>+ ))}+ </DropdownMenuRadioGroup>+ </DropdownMenuContent>+ </DropdownMenu>+ </div>+ )}++ {editor && (+ <BubbleMenu editor={editor} className="kaneo-tiptap-bubble">+ <Button+ type="button"+ variant="ghost"+ size="xs"+ className={cn(+ "kaneo-tiptap-bubble-btn",+ editor.isActive("heading", { level: 2 }) &&+ "bg-accent text-accent-foreground",+ )}+ onClick={() =>+ editor.chain().focus().toggleHeading({ level: 2 }).run()+ }+ >+ <Heading2 className="size-3.5" />+ </Button>+ <Button+ type="button"+ variant="ghost"+ size="xs"+ className={cn(+ "kaneo-tiptap-bubble-btn",+ editor.isActive("bulletList") &&+ "bg-accent text-accent-foreground",+ )}+ onClick={() => editor.chain().focus().toggleBulletList().run()}+ >+ <List className="size-3.5" />+ </Button>+ <Button+ type="button"+ variant="ghost"+ size="xs"+ className={cn(+ "kaneo-tiptap-bubble-btn",+ editor.isActive("taskList") && "bg-accent text-accent-foreground",+ )}+ onClick={() => editor.chain().focus().toggleTaskList().run()}+ >+ <ListTodo className="size-3.5" />+ </Button>+ <Button+ type="button"+ variant="ghost"+ size="xs"+ className={cn(+ "kaneo-tiptap-bubble-btn",+ editor.isActive("orderedList") &&+ "bg-accent text-accent-foreground",+ )}+ onClick={() => editor.chain().focus().toggleOrderedList().run()}+ >+ <ListOrdered className="size-3.5" />+ </Button>+ <Button+ type="button"+ variant="ghost"+ size="xs"+ className={cn(+ "kaneo-tiptap-bubble-btn",+ editor.isActive("blockquote") &&+ "bg-accent text-accent-foreground",+ )}+ onClick={() => editor.chain().focus().toggleBlockquote().run()}+ >+ <Quote className="size-3.5" />+ </Button>+ <Button+ type="button"+ variant="ghost"+ size="xs"+ className={cn(+ "kaneo-tiptap-bubble-btn",+ editor.isActive("codeBlock") &&+ "bg-accent text-accent-foreground",+ )}+ onClick={() => editor.chain().focus().toggleCodeBlock().run()}+ >+ <Braces className="size-3.5" />+ </Button>+ <Button+ type="button"+ variant="ghost"+ size="xs"+ className="kaneo-tiptap-bubble-btn"+ onClick={() =>+ editor.chain().focus().insertTable({ cols: 3, rows: 3 }).run()+ }+ >+ <Table2 className="size-3.5" />+ </Button>+ <span className="kaneo-tiptap-bubble-separator" />+ <Button+ type="button"+ variant="ghost"+ size="xs"+ className={cn(+ "kaneo-tiptap-bubble-btn",+ editor.isActive("bold") && "bg-accent text-accent-foreground",+ )}+ onClick={() => editor.chain().focus().toggleBold().run()}+ >+ <Bold className="size-3.5" />+ </Button>+ <Button+ type="button"+ variant="ghost"+ size="xs"+ className={cn(+ "kaneo-tiptap-bubble-btn",+ editor.isActive("italic") && "bg-accent text-accent-foreground",+ )}+ onClick={() => editor.chain().focus().toggleItalic().run()}+ >+ <Italic className="size-3.5" />+ </Button>+ <Button+ type="button"+ variant="ghost"+ size="xs"+ className={cn(+ "kaneo-tiptap-bubble-btn",+ editor.isActive("underline") &&+ "bg-accent text-accent-foreground",+ )}+ onClick={() => editor.chain().focus().toggleUnderline().run()}+ >+ <UnderlineIcon className="size-3.5" />+ </Button>+ <Button+ type="button"+ variant="ghost"+ size="xs"+ className={cn(+ "kaneo-tiptap-bubble-btn",+ editor.isActive("strike") && "bg-accent text-accent-foreground",+ )}+ onClick={() => editor.chain().focus().toggleStrike().run()}+ >+ <Strikethrough className="size-3.5" />+ </Button>+ <Button+ type="button"+ variant="ghost"+ size="xs"+ className={cn(+ "kaneo-tiptap-bubble-btn",+ editor.isActive("code") && "bg-accent text-accent-foreground",+ )}+ onClick={() => editor.chain().focus().toggleCode().run()}+ >+ <Code className="size-3.5" />+ </Button>+ <Button+ type="button"+ variant="ghost"+ size="xs"+ className={cn(+ "kaneo-tiptap-bubble-btn",+ editor.isActive("link") && "bg-accent text-accent-foreground",+ )}+ onClick={() => setLink()}+ >+ <Link2 className="size-3.5" />+ </Button>+ </BubbleMenu>+ )}++ {editor && slashMenu && (+ <div+ className="kaneo-tiptap-slash-menu"+ style={{+ top: slashMenu.top,+ left: slashMenu.left,+ position: "absolute",+ }}+ >+ {filteredSlashCommands.length > 0 ? (+ groupedSlashCommands.map((group) => {+ if (!group.items.length) return null;+ return (+ <div key={group.title} className="kaneo-tiptap-slash-group">+ <div className="kaneo-tiptap-slash-group-title">+ {group.title}+ </div>+ {group.items.map((command) => {+ const index = filteredSlashCommands.findIndex(+ (candidate) => candidate.id === command.id,+ );+ return (+ <button+ key={command.id}+ type="button"+ className={cn(+ "kaneo-tiptap-slash-item",+ slashMenu.selectedIndex === index && "is-selected",+ )}+ onMouseEnter={() =>+ setSlashMenu((current) =>+ current+ ? { ...current, selectedIndex: index }+ : current,+ )+ }+ onMouseDown={(event) => {+ event.preventDefault();+ runSlashCommand(command);+ }}+ >+ <span className="kaneo-tiptap-slash-label">+ {command.label}+ </span>+ {command.shortcut && (+ <span className="kaneo-tiptap-slash-shortcut">+ {command.shortcut}+ </span>+ )}+ </button>+ );+ })}+ </div>+ );+ })+ ) : (+ <div className="kaneo-tiptap-slash-empty">No commands</div>+ )}+ </div>+ )}++ {editor && embedComposer && (+ <div+ className="kaneo-embed-composer"+ style={{+ top: embedComposer.top,+ left: embedComposer.left,+ position: "absolute",+ }}+ >+ {embedComposer.mode === "choice" ? (+ <div className="kaneo-embed-choice-menu">+ <button+ type="button"+ className="kaneo-embed-choice-item is-primary"+ onMouseDown={(event) => {+ event.preventDefault();+ submitEmbedComposer("embed");+ }}+ >+ <span>Embed video</span>+ <span className="kaneo-embed-choice-hint">Tab</span>+ </button>+ <button+ type="button"+ className="kaneo-embed-choice-item"+ onMouseDown={(event) => {+ event.preventDefault();+ submitEmbedComposer("link");+ }}+ >+ <span>Keep as link</span>+ <span className="kaneo-embed-choice-hint">Esc</span>+ </button></div>- </FormControl>- )}+ ) : (+ <form+ className="kaneo-embed-composer-form"+ onSubmit={(event) => {+ event.preventDefault();+ submitEmbedComposer("embed");+ }}+ >+ <Input+ size="sm"+ value={embedComposer.url}+ onChange={(event) => {+ setEmbedComposer((current) =>+ current ? { ...current, url: event.target.value } : current,+ );+ if (embedComposerError) setEmbedComposerError("");+ }}+ placeholder="Paste URL"+ autoFocus+ />+ <div className="kaneo-embed-composer-actions">+ <Button+ type="button"+ size="xs"+ variant="ghost"+ onClick={() => submitEmbedComposer("link")}+ >+ As link+ </Button>+ <Button type="submit" size="xs">+ Embed+ </Button>+ <Button+ type="button"+ size="xs"+ variant="ghost"+ onClick={() => {+ setEmbedComposer(null);+ setEmbedComposerError("");+ }}+ >+ Cancel+ </Button>+ </div>+ {embedComposerError && (+ <p className="kaneo-embed-composer-error">+ {embedComposerError}+ </p>+ )}+ </form>+ )}+ </div>+ )}++ <EditorContent+ editor={editor}+ className="kaneo-tiptap-content"+ onMouseMove={handleEditorMouseMove}+ onMouseLeave={handleEditorMouseLeave}/>- </Form>+ </div>);}diff --git a/apps/web/src/components/task/task-details-content.tsx b/apps/web/src/components/task/task-details-content.tsxindex bb2ab2682..16905ec7d 100644--- a/apps/web/src/components/task/task-details-content.tsx+++ b/apps/web/src/components/task/task-details-content.tsx@@ -1,7 +1,9 @@import Activity from "@/components/activity";import CommentInput from "@/components/activity/comment-input";+import { isCommentActivity } from "@/components/activity/utils";import { ExternalLinksAccordion } from "@/components/external-links/external-links-accordion";import useAuth from "@/components/providers/auth-provider/hooks/use-auth";+import { Timeline } from "@/components/ui/timeline";import useGetActivitiesByTaskId from "@/hooks/queries/activity/use-get-activities-by-task-id";import useExternalLinks from "@/hooks/queries/external-link/use-external-links";import useGetProject from "@/hooks/queries/project/use-get-project";@@ -34,11 +36,13 @@ export default function TaskDetailsContent({return (<div className={`${className} gap-4`}>- <p className="text-xs font-semibold text-muted-foreground">- {project?.slug}-{task?.number}- </p>- <TaskTitle taskId={taskId} />- <TaskDescription taskId={taskId} />+ <div className="flex flex-col gap-2.5">+ <p className="text-xs font-semibold text-foreground/70">+ {project?.slug}-{task?.number}+ </p>+ <TaskTitle taskId={taskId} />+ <TaskDescription taskId={taskId} />+ </div>{!isLoadingExternalLinks && externalLinks.length > 0 && (<div className="mt-4"><ExternalLinksAccordion@@ -51,20 +55,30 @@ export default function TaskDetailsContent({<div className="flex flex-col gap-4"><h1 className="text-md font-semibold">Activity</h1>{user?.id && taskId && <CommentInput taskId={taskId} />}- <div className="flex flex-col">- {activities.length === 0 && (- <p className="text-sm font-medium text-muted-foreground">- No activity found- </p>- )}- {activities.map((activity, index) => (- <Activity- key={activity.id}- activity={activity}- isLast={index === activities.length - 1}- />- ))}- </div>+ {activities.length > 0 ? (+ <Timeline>+ {activities.map((activity, index) => {+ const nextActivity = activities[index + 1];+ const showConnector =+ !isCommentActivity(activity) &&+ Boolean(nextActivity) &&+ !isCommentActivity(nextActivity);++ return (+ <Activity+ key={activity.id}+ activity={activity}+ step={activities.length - index}+ showConnector={showConnector}+ />+ );+ })}+ </Timeline>+ ) : (+ <p className="text-sm font-medium text-muted-foreground">+ No activity found+ </p>+ )}</div></div>);diff --git a/apps/web/src/components/task/task-labels-popover.tsx b/apps/web/src/components/task/task-labels-popover.tsxindex f22877d6d..faad12dd6 100644--- a/apps/web/src/components/task/task-labels-popover.tsx+++ b/apps/web/src/components/task/task-labels-popover.tsx@@ -42,6 +42,7 @@ type TaskLabelsPopoverProps = {task: Task;workspaceId: string;children: React.ReactNode;+ triggerNativeButton?: boolean;};type PopoverStep = "select" | "color";@@ -50,6 +51,7 @@ export default function TaskLabelsPopover({task,workspaceId,children,+ triggerNativeButton = true,}: TaskLabelsPopoverProps) {const [open, setOpen] = useState(false);const [step, setStep] = useState<PopoverStep>("select");@@ -309,7 +311,9 @@ export default function TaskLabelsPopover({return (<Popover open={open} onOpenChange={setOpen}>- <PopoverTrigger asChild>{children}</PopoverTrigger>+ <PopoverTrigger asChild nativeButton={triggerNativeButton}>+ {children}+ </PopoverTrigger><PopoverContent className="p-0" align="start">{step === "select" && renderSelectStep()}{step === "color" && renderColorStep()}diff --git a/apps/web/src/components/task/task-page-skeleton.tsx b/apps/web/src/components/task/task-page-skeleton.tsxnew file mode 100644index 000000000..ac84dcd6c--- /dev/null+++ b/apps/web/src/components/task/task-page-skeleton.tsx@@ -0,0 +1,85 @@+import { Skeleton } from "@/components/ui/skeleton";+import { cn } from "@/lib/cn";++type TaskDetailsSkeletonProps = {+ className?: string;+};++export function TaskDetailsSkeleton({ className }: TaskDetailsSkeletonProps) {+ return (+ <div+ className={cn(+ "mx-auto flex h-full min-h-0 w-full max-w-3xl flex-col gap-2 px-3 pb-16 pt-3 sm:px-4 xl:pb-20 xl:pt-8",+ className,+ )}+ >+ <div className="flex flex-col gap-2.5">+ <Skeleton className="h-3.5 w-24" />+ <Skeleton className="h-10 w-full max-w-[34rem]" />+ <div className="space-y-2.5 pt-1">+ <Skeleton className="h-4 w-full max-w-[42rem]" />+ <Skeleton className="h-4 w-full max-w-[38rem]" />+ <Skeleton className="h-4 w-full max-w-[33rem]" />+ <Skeleton className="h-32 w-full max-w-[44rem] rounded-lg" />+ </div>+ </div>++ <span className="block h-px w-full shrink-0 bg-border" />++ <div className="flex flex-col gap-4">+ <Skeleton className="h-5 w-20" />++ <div className="rounded-xl border border-border/80 bg-card/70 p-3">+ <Skeleton className="h-16 w-full rounded-lg" />+ <div className="mt-3 flex justify-end">+ <Skeleton className="h-7 w-7 rounded-md" />+ </div>+ </div>++ <div className="space-y-3">+ {["row-1", "row-2", "row-3"].map((row) => (+ <div key={row} className="flex items-center gap-3">+ <Skeleton className="h-6 w-6 rounded-full" />+ <Skeleton className="h-6 w-6 rounded-full" />+ <Skeleton className="h-4 w-full max-w-[28rem]" />+ </div>+ ))}+ </div>+ </div>+ </div>+ );+}++type TaskPropertiesSidebarSkeletonProps = {+ className?: string;+};++export function TaskPropertiesSidebarSkeleton({+ className,+}: TaskPropertiesSidebarSkeletonProps) {+ return (+ <div+ className={cn(+ "h-full w-full lg:w-72 xl:w-80 flex flex-col gap-2 p-3",+ className,+ )}+ >+ <div className="rounded-xl border border-border/80 bg-card/70 p-3">+ <div className="space-y-3">+ <Skeleton className="h-4 w-24" />+ <Skeleton className="h-8 w-full rounded-md" />+ <Skeleton className="h-8 w-full rounded-md" />+ <Skeleton className="h-8 w-full rounded-md" />+ <Skeleton className="h-24 w-full rounded-md" />+ </div>+ </div>+ <div className="rounded-xl border border-border/80 bg-card/70 p-3">+ <div className="space-y-2">+ <Skeleton className="h-4 w-20" />+ <Skeleton className="h-6 w-full rounded-md" />+ <Skeleton className="h-6 w-3/4 rounded-md" />+ </div>+ </div>+ </div>+ );+}diff --git a/apps/web/src/components/task/task-properties-sidebar.tsx b/apps/web/src/components/task/task-properties-sidebar.tsxindex cab67f1ed..71dcb5792 100644--- a/apps/web/src/components/task/task-properties-sidebar.tsx+++ b/apps/web/src/components/task/task-properties-sidebar.tsx@@ -595,6 +595,7 @@ export default function TaskPropertiesSidebar({key={`edit-${label.id}`}task={task}workspaceId={workspaceId}+ triggerNativeButton={false}><Badgevariant="outline"diff --git a/apps/web/src/components/task/task-title.tsx b/apps/web/src/components/task/task-title.tsxindex 412294e09..90debc6ab 100644--- a/apps/web/src/components/task/task-title.tsx+++ b/apps/web/src/components/task/task-title.tsx@@ -1,8 +1,7 @@import { useCallback, useEffect, useRef } from "react";import { useForm } from "react-hook-form";-import { Form, FormControl, FormField } from "@/components/ui/form";-import { Input } from "@/components/ui/input";+import { Form, FormField } from "@/components/ui/form";import { useUpdateTaskTitle } from "@/hooks/mutations/task/use-update-task-title";import useGetTask from "@/hooks/queries/task/use-get-task";import debounce from "@/lib/debounce";@@ -23,6 +22,11 @@ export default function TaskTitle({ taskId }: TaskTitleProps) {updateTaskRef.current = updateTaskTitle;}, [task, updateTaskTitle]);+ // biome-ignore lint/correctness/useExhaustiveDependencies: taskId is not needed here+ useEffect(() => {+ isInitializedRef.current = false;+ }, [taskId]);+const form = useForm<{title: string;}>({@@ -32,11 +36,7 @@ export default function TaskTitle({ taskId }: TaskTitleProps) {});useEffect(() => {- if (task?.title !== undefined && !isInitializedRef.current) {- setTimeout(() => {- isInitializedRef.current = true;- }, 100);- }+ if (task?.title !== undefined) isInitializedRef.current = true;}, [task?.title]);const debouncedUpdate = useCallback(@@ -51,9 +51,8 @@ export default function TaskTitle({ taskId }: TaskTitleProps) {try {await updateTaskFn({...currentTask,- title: title,+ title,});- console.log("Title updated successfully");} catch (error) {console.error("Failed to update title:", error);}@@ -63,10 +62,7 @@ export default function TaskTitle({ taskId }: TaskTitleProps) {const handleTitleChange = useCallback((value: string) => {- if (!isInitializedRef.current) {- console.log("Title change ignored - not initialized yet");- return;- }+ if (!isInitializedRef.current) return;debouncedUpdate(value);},@@ -79,18 +75,16 @@ export default function TaskTitle({ taskId }: TaskTitleProps) {control={form.control}name="title"render={({ field }) => (- <FormControl>- <Input- {...field}- unstyled- placeholder="Click to add a title"- className="w-full [&_[data-slot=input]]:!h-auto [&_[data-slot=input]]:!px-0 [&_[data-slot=input]]:!py-0 [&_[data-slot=input]]:!leading-tight [&_[data-slot=input]]:text-2xl [&_[data-slot=input]]:font-semibold [&_[data-slot=input]]:tracking-tight [&_[data-slot=input]]:text-foreground [&_[data-slot=input]]:placeholder:text-muted-foreground [&_[data-slot=input]]:outline-none"- onChange={(e) => {- field.onChange(e);- handleTitleChange(e.target.value);- }}- />- </FormControl>+ <input+ {...field}+ type="text"+ placeholder="Click to add a title"+ className="block h-auto w-full appearance-none border-0 bg-transparent p-0 font-heading text-[2rem] leading-[1.15] font-semibold tracking-[-0.02em] text-foreground outline-none placeholder:text-foreground/45"+ onChange={(e) => {+ field.onChange(e);+ handleTitleChange(e.target.value);+ }}+ />)}/></Form>diff --git a/apps/web/src/components/ui/popover.tsx b/apps/web/src/components/ui/popover.tsxindex 1e573f47d..e85123126 100644--- a/apps/web/src/components/ui/popover.tsx+++ b/apps/web/src/components/ui/popover.tsx@@ -11,6 +11,7 @@ const Popover = PopoverPrimitive.Root;function PopoverTrigger({asChild = false,+ nativeButton = true,className,children,render,@@ -23,6 +24,7 @@ function PopoverTrigger({<PopoverPrimitive.TriggerclassName={className}data-slot="popover-trigger"+ nativeButton={nativeButton}render={resolvedRender}{...props}>diff --git a/apps/web/src/components/ui/sidebar.tsx b/apps/web/src/components/ui/sidebar.tsxindex 4a6cfb93c..507c8aec0 100644--- a/apps/web/src/components/ui/sidebar.tsx+++ b/apps/web/src/components/ui/sidebar.tsx@@ -96,6 +96,17 @@ function SidebarProvider({// Adds a keyboard shortcut to toggle the sidebar.React.useEffect(() => {const handleKeyDown = (event: KeyboardEvent) => {+ if (event.defaultPrevented) return;++ const target = event.target as HTMLElement | null;+ const isEditableTarget = Boolean(+ target &&+ (target.isContentEditable ||+ ["INPUT", "TEXTAREA", "SELECT"].includes(target.tagName) ||+ target.closest('[contenteditable="true"]')),+ );+ if (isEditableTarget) return;+if (event.key === SIDEBAR_KEYBOARD_SHORTCUT &&(event.metaKey || event.ctrlKey)diff --git a/apps/web/src/components/ui/timeline.tsx b/apps/web/src/components/ui/timeline.tsxnew file mode 100644index 000000000..908665422--- /dev/null+++ b/apps/web/src/components/ui/timeline.tsx@@ -0,0 +1,210 @@+"use client";++import { Slot } from "radix-ui";+import * as React from "react";++import { cn } from "@/lib/cn";++// Types+type TimelineContextValue = {+ activeStep: number;+ setActiveStep: (step: number) => void;+};++// Context+const TimelineContext = React.createContext<TimelineContextValue | undefined>(+ undefined,+);++const useTimeline = () => {+ const context = React.useContext(TimelineContext);+ if (!context) {+ throw new Error("useTimeline must be used within a Timeline");+ }+ return context;+};++// Components+interface TimelineProps extends React.HTMLAttributes<HTMLDivElement> {+ defaultValue?: number;+ value?: number;+ onValueChange?: (value: number) => void;+ orientation?: "horizontal" | "vertical";+}++function Timeline({+ defaultValue = 1,+ value,+ onValueChange,+ orientation = "vertical",+ className,+ ...props+}: TimelineProps) {+ const [activeStep, setInternalStep] = React.useState(defaultValue);++ const setActiveStep = React.useCallback(+ (step: number) => {+ if (value === undefined) {+ setInternalStep(step);+ }+ onValueChange?.(step);+ },+ [value, onValueChange],+ );++ const currentStep = value ?? activeStep;++ return (+ <TimelineContext.Provider+ value={{ activeStep: currentStep, setActiveStep }}+ >+ <div+ className={cn(+ "group/timeline flex data-[orientation=horizontal]:w-full data-[orientation=horizontal]:flex-row data-[orientation=vertical]:flex-col",+ className,+ )}+ data-orientation={orientation}+ data-slot="timeline"+ {...props}+ />+ </TimelineContext.Provider>+ );+}++// TimelineContent+function TimelineContent({+ className,+ ...props+}: React.HTMLAttributes<HTMLDivElement>) {+ return (+ <div+ className={cn("text-muted-foreground text-sm", className)}+ data-slot="timeline-content"+ {...props}+ />+ );+}++// TimelineDate+interface TimelineDateProps extends React.HTMLAttributes<HTMLTimeElement> {+ asChild?: boolean;+}++function TimelineDate({+ asChild = false,+ className,+ ...props+}: TimelineDateProps) {+ const Comp = asChild ? Slot.Root : "time";++ return (+ <Comp+ className={cn(+ "mb-1 block font-medium text-muted-foreground text-xs group-data-[orientation=vertical]/timeline:max-sm:h-4",+ className,+ )}+ data-slot="timeline-date"+ {...props}+ />+ );+}++// TimelineHeader+function TimelineHeader({+ className,+ ...props+}: React.HTMLAttributes<HTMLDivElement>) {+ return (+ <div className={cn(className)} data-slot="timeline-header" {...props} />+ );+}++// TimelineIndicator+interface TimelineIndicatorProps extends React.HTMLAttributes<HTMLDivElement> {+ asChild?: boolean;+}++function TimelineIndicator({+ asChild = false,+ className,+ children,+ ...props+}: TimelineIndicatorProps) {+ return (+ <div+ aria-hidden="true"+ className={cn(+ "group-data-[orientation=horizontal]/timeline:-top-6 group-data-[orientation=horizontal]/timeline:-translate-y-1/2 group-data-[orientation=vertical]/timeline:-left-6 group-data-[orientation=vertical]/timeline:-translate-x-1/2 absolute size-4 rounded-full border-2 border-primary/20 group-data-[orientation=vertical]/timeline:top-0 group-data-[orientation=horizontal]/timeline:left-0 group-data-completed/timeline-item:border-primary",+ className,+ )}+ data-slot="timeline-indicator"+ {...props}+ >+ {children}+ </div>+ );+}++// TimelineItem+interface TimelineItemProps extends React.HTMLAttributes<HTMLDivElement> {+ step: number;+}++function TimelineItem({ step, className, ...props }: TimelineItemProps) {+ const { activeStep } = useTimeline();++ return (+ <div+ className={cn(+ "group/timeline-item relative flex flex-1 flex-col gap-0.5 group-data-[orientation=vertical]/timeline:ms-8 group-data-[orientation=horizontal]/timeline:mt-8 group-data-[orientation=horizontal]/timeline:not-last:pe-8 group-data-[orientation=vertical]/timeline:not-last:pb-12 has-[+[data-completed]]:[&_[data-slot=timeline-separator]]:bg-primary",+ className,+ )}+ data-completed={step <= activeStep || undefined}+ data-slot="timeline-item"+ {...props}+ />+ );+}++// TimelineSeparator+function TimelineSeparator({+ className,+ ...props+}: React.HTMLAttributes<HTMLDivElement>) {+ return (+ <div+ aria-hidden="true"+ className={cn(+ "group-data-[orientation=horizontal]/timeline:-top-6 group-data-[orientation=horizontal]/timeline:-translate-y-1/2 group-data-[orientation=vertical]/timeline:-left-6 group-data-[orientation=vertical]/timeline:-translate-x-1/2 absolute self-start bg-primary/10 group-last/timeline-item:hidden group-data-[orientation=horizontal]/timeline:h-0.5 group-data-[orientation=vertical]/timeline:h-[calc(100%-1rem-0.25rem)] group-data-[orientation=horizontal]/timeline:w-[calc(100%-1rem-0.25rem)] group-data-[orientation=vertical]/timeline:w-0.5 group-data-[orientation=horizontal]/timeline:translate-x-4.5 group-data-[orientation=vertical]/timeline:translate-y-4.5",+ className,+ )}+ data-slot="timeline-separator"+ {...props}+ />+ );+}++// TimelineTitle+function TimelineTitle({+ className,+ ...props+}: React.HTMLAttributes<HTMLHeadingElement>) {+ return (+ <h3+ className={cn("font-medium text-sm", className)}+ data-slot="timeline-title"+ {...props}+ />+ );+}++export {+ Timeline,+ TimelineContent,+ TimelineDate,+ TimelineHeader,+ TimelineIndicator,+ TimelineItem,+ TimelineSeparator,+ TimelineTitle,+};diff --git a/apps/web/src/hooks/queries/label/use-get-labels-by-workspace.ts b/apps/web/src/hooks/queries/label/use-get-labels-by-workspace.tsindex 221f844bc..dc80e91e0 100644--- a/apps/web/src/hooks/queries/label/use-get-labels-by-workspace.ts+++ b/apps/web/src/hooks/queries/label/use-get-labels-by-workspace.ts@@ -3,6 +3,7 @@ import getLabelsByWorkspace from "@/fetchers/label/get-label-by-workspace";function useGetLabelsByWorkspace(workspaceId: string) {return useQuery({+ enabled: Boolean(workspaceId),queryKey: ["labels", workspaceId],queryFn: () => getLabelsByWorkspace({ workspaceId }),});diff --git a/apps/web/src/index.css b/apps/web/src/index.cssindex ac64675b1..9273dff23 100644--- a/apps/web/src/index.css+++ b/apps/web/src/index.css@@ -222,139 +222,867 @@}@layer components {- .blocknote-transparent .bn-container {- --bn-font-family: var(--font-sans);- --bn-border-radius: var(--radius);- --bn-colors-menu-background: var(--popover);- --bn-colors-menu-text: var(--popover-foreground);- --bn-colors-hovered-background: var(--accent);- --bn-colors-hovered-text: var(--accent-foreground);- --bn-colors-selected-background: var(--accent);- --bn-colors-selected-text: var(--accent-foreground);- --bn-colors-border: var(--border);- --bn-colors-shadow: --alpha(var(--color-black) / 12%);- }-- .blocknote-transparent .bn-editor,- .blocknote-transparent .ProseMirror {- font-family: var(--font-sans);+ .kaneo-tiptap-shell {+ position: relative;}- .blocknote-transparent .bn-suggestion-menu {- min-width: 18rem;- max-width: 28rem;- max-height: min(24rem, 60vh);- overflow-y: auto;+ .kaneo-tiptap-shell:focus-within {+ outline: none;+ }++ .kaneo-tiptap-bubble {+ display: inline-flex;+ align-items: center;+ gap: 0.1rem;border: 1px solid var(--border);- border-radius: var(--radius);+ border-radius: calc(var(--radius) - 2px);background: var(--popover);- color: var(--popover-foreground);+ padding: 0.2rem 0.24rem;box-shadow:- 0 8px 24px --alpha(var(--color-black) / 10%),- 0 1px 2px --alpha(var(--color-black) / 8%);- padding: 0.25rem;+ 0 8px 24px --alpha(var(--color-black) / 14%),+ 0 1px 2px --alpha(var(--color-black) / 9%);}- .blocknote-transparent .bn-suggestion-menu-loader {- color: var(--muted-foreground);- font-size: 0.8125rem;- padding: 0.5rem;+ .kaneo-tiptap-bubble-btn {+ height: 1.6rem;+ width: 1.6rem;+ padding: 0;}- .kaneo-slash-menu {- min-width: 17rem;- max-width: 22rem;- max-height: min(20rem, 56vh);- overflow-y: auto;- border: 1px solid var(--border);- border-radius: var(--radius);+ .kaneo-tiptap-bubble-separator {+ display: block;+ width: 1px;+ height: 1rem;+ background: color-mix(in srgb, var(--border) 84%, transparent);+ margin: 0 0.15rem;+ }++ .kaneo-codeblock-language {+ position: fixed;+ z-index: 40;+ display: inline-flex;+ align-items: center;+ gap: 0.3rem;+ transform: translateX(-100%);+ }++ .kaneo-codeblock-language-trigger {+ display: inline-flex;+ max-width: 10rem;+ align-items: center;+ gap: 0.35rem;+ border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);+ border-radius: 0.45rem;+ background: color-mix(in srgb, var(--background) 90%, transparent);+ padding: 0.2rem 0.5rem;+ font-size: 0.72rem;+ line-height: 1;+ color: color-mix(in srgb, var(--foreground) 80%, transparent);+ backdrop-filter: blur(8px);+ transition:+ border-color 0.12s ease,+ color 0.12s ease,+ background-color 0.12s ease;+ }++ .kaneo-codeblock-language-trigger:hover {+ border-color: color-mix(in srgb, var(--ring) 42%, var(--border));+ color: var(--foreground);+ background: color-mix(in srgb, var(--background) 96%, transparent);+ }++ .kaneo-codeblock-copy-trigger {+ min-width: 4.6rem;+ justify-content: center;+ }++ .kaneo-codeblock-copy-trigger > span {+ line-height: 1;+ }++ .kaneo-tiptap-content .ProseMirror {+ min-height: 1.85rem;+ padding: 0.2rem 0 0.24rem;+ font-family: var(--font-sans);+ font-size: 0.965rem;+ line-height: 1.72;+ white-space: pre-wrap;+ color: var(--foreground);+ caret-color: var(--foreground);+ outline: none;+ }++ .kaneo-tiptap-slash-menu {+ position: fixed;+ z-index: 50;+ min-width: 16rem;+ border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);+ border-radius: 0.5rem;background: var(--popover);- color: var(--popover-foreground);+ padding: 0.32rem;box-shadow:- 0 8px 24px --alpha(var(--color-black) / 10%),- 0 1px 2px --alpha(var(--color-black) / 8%);- padding: 0.25rem;+ 0 10px 28px --alpha(var(--color-black) / 18%),+ 0 1px 2px --alpha(var(--color-black) / 10%);}- .kaneo-slash-menu-label {- color: var(--muted-foreground);- font-size: 0.6875rem;- font-weight: 500;- letter-spacing: 0.04em;+ .kaneo-tiptap-slash-group + .kaneo-tiptap-slash-group {+ margin-top: 0.2rem;+ border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);+ padding-top: 0.2rem;+ }++ .kaneo-tiptap-slash-group-title {+ padding: 0.22rem 0.42rem 0.3rem;+ font-size: 0.68rem;+ font-weight: 600;+ letter-spacing: 0.01em;text-transform: uppercase;- padding: 0.375rem 0.5rem 0.25rem;+ color: color-mix(in srgb, var(--foreground) 48%, transparent);}- .kaneo-slash-menu-item {- appearance: none;- border: 0;- background: transparent;+ .kaneo-tiptap-slash-item {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 0.75rem;width: 100%;- height: 2rem;- display: flex !important;+ border-radius: 0.35rem;+ padding: 0.4rem 0.45rem;+ text-align: left;+ font-size: 0.79rem;+ color: color-mix(in srgb, var(--foreground) 88%, transparent);+ }++ .kaneo-tiptap-slash-label {+ min-width: 0;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+ }++ .kaneo-tiptap-slash-shortcut {+ flex-shrink: 0;+ font-size: 0.68rem;+ color: color-mix(in srgb, var(--foreground) 52%, transparent);+ }++ .kaneo-tiptap-slash-item:hover,+ .kaneo-tiptap-slash-item.is-selected {+ background: var(--accent);+ color: var(--accent-foreground);+ }++ .kaneo-tiptap-slash-empty {+ padding: 0.4rem 0.55rem;+ font-size: 0.76rem;+ color: color-mix(in srgb, var(--foreground) 56%, transparent);+ }++ .kaneo-tiptap-content .ProseMirror p {+ margin: 0.2rem 0;+ }++ .kaneo-tiptap-content .ProseMirror h1,+ .kaneo-tiptap-content .ProseMirror h2,+ .kaneo-tiptap-content .ProseMirror h3 {+ margin: 1.05rem 0 0.45rem;+ font-family: var(--font-heading);+ font-weight: 600;+ letter-spacing: -0.02em;+ line-height: 1.26;+ color: var(--foreground);+ }++ .kaneo-tiptap-content .ProseMirror h1 {+ font-size: 1.24rem;+ }++ .kaneo-tiptap-content .ProseMirror h2 {+ font-size: 1.12rem;+ }++ .kaneo-tiptap-content .ProseMirror h3 {+ font-size: 1.02rem;+ }++ .kaneo-tiptap-content .ProseMirror ul,+ .kaneo-tiptap-content .ProseMirror ol {+ margin: 0.3rem 0;+ padding-inline-start: 1.35rem;+ }++ .kaneo-tiptap-content .ProseMirror ul {+ list-style-type: disc;+ }++ .kaneo-tiptap-content .ProseMirror ol {+ list-style-type: decimal;+ }++ .kaneo-tiptap-content .ProseMirror ul ul {+ list-style-type: circle;+ }++ .kaneo-tiptap-content .ProseMirror ul ul ul {+ list-style-type: square;+ }++ .kaneo-tiptap-content .ProseMirror ol ol {+ list-style-type: lower-alpha;+ }++ .kaneo-tiptap-content .ProseMirror li::marker {+ color: color-mix(in srgb, var(--foreground) 70%, transparent);+ }++ .kaneo-tiptap-content .ProseMirror li {+ margin: 0.1rem 0;+ }++ .kaneo-tiptap-content .ProseMirror ul[data-type="taskList"] {+ list-style: none;+ margin: 0.3rem 0;+ padding-inline-start: 0;+ }++ .kaneo-tiptap-content .ProseMirror li[data-type="taskItem"] {+ display: flex;align-items: center;justify-content: flex-start;- flex-wrap: nowrap;- gap: 0.5rem;- padding: 0 0.5rem;- border-radius: calc(var(--radius) - 4px);- color: var(--popover-foreground);+ gap: 0.45rem;+ margin: 0.18rem 0;text-align: left;- transition: background-color 0.12s ease;+ }++ .kaneo-tiptap-content+ .ProseMirror+ li[data-type="taskItem"]+ > :is(label, .kaneo-task-item-checkbox) {+ margin-top: 0;+ display: inline-flex;+ flex-shrink: 0;cursor: pointer;- line-height: 1;}- .kaneo-slash-menu-item:hover,- .kaneo-slash-menu-item.is-selected {- background: var(--accent);- color: var(--accent-foreground);+ .kaneo-tiptap-content .ProseMirror li[data-type="taskItem"] > div {+ flex: 0 1 auto;+ min-width: 0;+ text-align: left;+ }++ .kaneo-tiptap-content .ProseMirror li[data-type="taskItem"] > div > * {+ margin-inline: 0;+ }++ .kaneo-tiptap-content .ProseMirror li[data-type="taskItem"] ul,+ .kaneo-tiptap-content .ProseMirror li[data-type="taskItem"] ol {+ margin-top: 0.2rem;+ }++ .kaneo-tiptap-content .ProseMirror li[data-type="taskItem"] [data-slot="checkbox"] {+ margin-top: 0;+ }++ .kaneo-tiptap-content .ProseMirror li[data-type="taskItem"] > div p {+ margin: 0;+ line-height: 1.45;+ }++ .kaneo-tiptap-content .ProseMirror li[data-type="taskItem"][data-checked="true"] > div p {+ color: color-mix(in srgb, var(--foreground) 62%, transparent);+ text-decoration: line-through;+ }++ .kaneo-tiptap-content .ProseMirror a {+ color: var(--primary);+ text-decoration-line: underline;+ text-decoration-thickness: 1px;+ text-underline-offset: 2px;+ text-decoration-color: color-mix(+ in srgb,+ var(--primary) 68%,+ transparent+ );+ transition:+ color 0.12s ease,+ text-decoration-color 0.12s ease;+ }++ .kaneo-tiptap-content .ProseMirror a:hover {+ color: color-mix(in srgb, var(--primary) 84%, var(--foreground));+ text-decoration-color: currentColor;+ }++ .kaneo-tiptap-content .ProseMirror :not(pre) > code {+ border: 1px solid var(--border);+ border-radius: 0.34rem;+ background: var(--code-highlight);+ font-family: var(--font-mono);+ font-size: 0.84em;+ padding: 0.11rem 0.32rem;+ }++ .kaneo-tiptap-content .ProseMirror pre {+ margin: 0.45rem 0;+ border: 1px solid var(--border);+ border-radius: calc(var(--radius) - 3px);+ background: var(--code);+ padding: 0.75rem 0.9rem;+ }++ .kaneo-tiptap-content .ProseMirror pre code {+ font-family: var(--font-mono);+ font-size: 0.85rem;+ color: var(--code-foreground);+ }++ .kaneo-tiptap-content .ProseMirror blockquote {+ margin: 0.5rem 0;+ border-left: 2px solid var(--border);+ padding-left: 0.75rem;+ color: color-mix(in srgb, var(--foreground) 78%, transparent);+ }++ .kaneo-tiptap-content .ProseMirror .is-editor-empty:first-child::before {+ pointer-events: none;+ content: attr(data-placeholder);+ height: 0;+ float: left;+ color: color-mix(in srgb, var(--foreground) 40%, transparent);}- .kaneo-slash-menu-icon {- width: 1.125rem;- min-width: 1.125rem;- height: 1.125rem;+ .kaneo-tiptap-content .ProseMirror table {+ border-collapse: collapse;+ margin: 0.7rem 0;+ overflow: hidden;+ table-layout: fixed;+ width: 100%;+ border: 1px solid var(--border);+ border-radius: calc(var(--radius) - 3px);+ }++ .kaneo-tiptap-content .ProseMirror table td,+ .kaneo-tiptap-content .ProseMirror table th {+ min-width: 1em;+ border: 1px solid color-mix(in srgb, var(--border) 84%, transparent);+ padding: 0.45rem 0.55rem;+ vertical-align: top;+ }++ .kaneo-tiptap-content .ProseMirror table th {+ background: color-mix(in srgb, var(--accent) 70%, transparent);+ font-weight: 600;+ text-align: left;+ }++ .kaneo-tiptap-content .ProseMirror .selectedCell:after {+ pointer-events: none;+ position: absolute;+ inset: 0;+ z-index: 2;+ content: "";+ background: color-mix(in srgb, var(--primary) 16%, transparent);+ }++ .kaneo-tiptap-content .ProseMirror .tableWrapper {+ overflow-x: auto;+ }++ .kaneo-tiptap-content .ProseMirror [data-type="kaneo-embed"] {+ margin: 0.65rem 0;+ border: 1px solid color-mix(in srgb, var(--border) 76%, transparent);+ border-radius: calc(var(--radius) - 2px);+ background: color-mix(in srgb, var(--accent) 28%, transparent);+ overflow: hidden;+ transition:+ border-color 0.12s ease,+ box-shadow 0.12s ease;+ }++ .kaneo-tiptap-content .ProseMirror [data-type="kaneo-embed"] iframe {+ width: 100%;+ aspect-ratio: 16 / 9;+ border: 0;+ display: block;+ background: black;+ }++ .kaneo-tiptap-content .ProseMirror [data-type="kaneo-embed"] > a {+ display: block;+ padding: 0.6rem 0.7rem;+ color: var(--foreground);+ text-decoration: none;+ font-size: 0.82rem;+ word-break: break-word;+ }++ .kaneo-tiptap-content .ProseMirror+ [data-type="kaneo-embed"].ProseMirror-selectednode {+ border-color: color-mix(in srgb, var(--ring) 82%, var(--border));+ box-shadow:+ 0 0 0 2px color-mix(in srgb, var(--ring) 38%, transparent),+ 0 0 0 1px color-mix(in srgb, var(--ring) 70%, transparent) inset;+ }++ .kaneo-tiptap-content .ProseMirror [data-type="kaneo-embed"] .kaneo-embed-unsupported {+ padding: 0.62rem 0.72rem;+ font-size: 0.78rem;+ color: color-mix(in srgb, var(--foreground) 62%, transparent);+ }++ .kaneo-issue-link-node {display: inline-flex;+ vertical-align: baseline;+ }++ .kaneo-issue-link-chip {+ display: inline-flex;+ max-width: min(26rem, 85vw);align-items: center;- justify-content: center;- opacity: 0.85;- color: var(--muted-foreground);+ gap: 0.4rem;+ border: 1px solid color-mix(in srgb, var(--border) 78%, transparent);+ border-radius: 0.45rem;+ background: color-mix(in srgb, var(--accent) 22%, transparent);+ padding: 0.12rem 0.42rem;+ color: var(--foreground);+ text-decoration: none;+ line-height: 1.3;+ transform: translateY(-0.02rem);}- .kaneo-slash-menu-title {- flex: 1;- min-width: 0;- font-size: 0.875rem;+ .kaneo-issue-link-chip:hover {+ border-color: color-mix(in srgb, var(--ring) 56%, var(--border));+ background: color-mix(in srgb, var(--accent) 34%, transparent);+ }++ .kaneo-issue-link-key {+ flex-shrink: 0;+ font-size: 0.76rem;font-weight: 500;- line-height: 1;- white-space: nowrap;+ color: color-mix(in srgb, var(--foreground) 64%, transparent);+ }++ .kaneo-issue-link-title {+ min-width: 0;overflow: hidden;text-overflow: ellipsis;+ white-space: nowrap;+ font-size: 0.86rem;+ font-weight: 500;+ color: var(--foreground);}- .kaneo-slash-menu-shortcut {- margin-left: auto;- display: inline-flex;+ .kaneo-issue-link-preview {+ display: flex;+ flex-direction: column;+ align-items: stretch;+ gap: 0;+ width: min(21rem, calc(100vw - 1.5rem));+ padding: 0.72rem;+ text-wrap: pretty;+ }++ .kaneo-issue-link-preview-top {+ display: flex;align-items: center;- justify-content: center;- height: 1.25rem;- padding: 0 0.375rem;- border-radius: 0.375rem;- border: 1px solid var(--input);- background: var(--muted);- color: var(--muted-foreground);- font-size: 0.6875rem;+ justify-content: space-between;+ gap: 0.6rem;+ font-size: 0.75rem;+ color: color-mix(in srgb, var(--foreground) 68%, transparent);+ }++ .kaneo-issue-link-preview-key {font-weight: 500;+ letter-spacing: 0.01em;+ }++ .kaneo-issue-link-preview-title {+ margin-top: 0.45rem;+ font-size: 0.9rem;+ line-height: 1.35;+ font-weight: 500;+ color: var(--foreground);+ }++ .kaneo-issue-link-preview-meta {+ margin-top: 0.55rem;+ display: flex;+ align-items: center;+ gap: 0.35rem;+ border-top: 1px solid color-mix(in srgb, var(--border) 72%, transparent);+ padding-top: 0.45rem;+ font-size: 0.76rem;+ color: color-mix(in srgb, var(--foreground) 72%, transparent);+ }++ .kaneo-tiptap-content .ProseMirror [data-type="kaneo-embed"]:focus-within {+ border-color: color-mix(in srgb, var(--ring) 80%, var(--border));+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--ring) 34%, transparent);+ }++ .kaneo-embed-composer {+ position: fixed;+ z-index: 60;+ width: min(24rem, calc(100vw - 2rem));+ border: 1px solid color-mix(in srgb, var(--border) 84%, transparent);+ border-radius: 0.6rem;+ background: var(--popover);+ padding: 0.5rem;+ box-shadow:+ 0 12px 32px --alpha(var(--color-black) / 20%),+ 0 1px 2px --alpha(var(--color-black) / 10%);+ }++ .kaneo-embed-composer-form {+ display: flex;+ flex-direction: column;+ gap: 0.45rem;+ }++ .kaneo-embed-choice-menu {+ display: flex;+ min-width: 10.5rem;+ flex-direction: column;+ gap: 0.2rem;+ }++ .kaneo-embed-choice-item {+ display: flex;+ width: 100%;+ align-items: center;+ justify-content: space-between;+ gap: 0.8rem;+ border-radius: 0.4rem;+ padding: 0.38rem 0.45rem;+ text-align: left;+ font-size: 0.82rem;+ color: color-mix(in srgb, var(--foreground) 90%, transparent);+ }++ .kaneo-embed-choice-item:hover,+ .kaneo-embed-choice-item.is-primary {+ background: var(--accent);+ color: var(--accent-foreground);+ }++ .kaneo-embed-choice-hint {+ flex-shrink: 0;+ font-size: 0.68rem;+ color: color-mix(in srgb, currentColor 62%, transparent);+ }++ .kaneo-embed-composer-actions {+ display: flex;+ align-items: center;+ gap: 0.35rem;+ justify-content: flex-end;+ }++ .kaneo-embed-composer-error {+ font-size: 0.72rem;+ color: var(--destructive);+ }++ .kaneo-comment-composer {+ border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);+ border-radius: 0.62rem;+ background: color-mix(in srgb, var(--background) 96%, transparent);+ transition:+ border-color 0.14s ease,+ box-shadow 0.14s ease;+ }++ .kaneo-comment-composer:focus-within {+ border-color: color-mix(in srgb, var(--ring) 64%, var(--border));+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--ring) 20%, transparent);+ }++ .kaneo-comment-card-body {+ border: 1px solid color-mix(in srgb, var(--border) 78%, transparent);+ border-radius: 0.6rem;+ background: color-mix(in srgb, var(--card) 82%, transparent);+ backdrop-filter: blur(3px);+ position: relative;+ }++ .kaneo-comment-editor-shell {+ position: relative;+ isolation: isolate;+ z-index: 1;+ }++ .kaneo-comment-editor-shell:focus-within {+ z-index: 80;+ }++ .kaneo-comment-editor-shell-readonly {+ pointer-events: auto;+ }++ .kaneo-comment-editor-content .ProseMirror {+ min-height: 2.2rem;+ max-height: 18rem;+ overflow-y: auto;+ padding: 0.62rem 0.75rem;+ font-family: var(--font-sans);+ font-size: 0.92rem;+ line-height: 1.62;+ white-space: pre-wrap;+ color: var(--foreground);+ caret-color: var(--foreground);+ outline: none;+ }++ .kaneo-comment-editor-shell-readonly .kaneo-comment-editor-content .ProseMirror {+ min-height: 0;+ max-height: none;+ overflow: visible;+ padding: 0.62rem 0.75rem;+ }++ .kaneo-comment-viewer .kaneo-comment-editor-content .ProseMirror {+ max-height: none;+ overflow: visible;+ padding-bottom: 0.8rem;+ }++ .kaneo-comment-editor-prose p {+ margin: 0;+ }++ .kaneo-comment-editor-prose h1,+ .kaneo-comment-editor-prose h2,+ .kaneo-comment-editor-prose h3 {+ margin: 0.12rem 0 0;+ line-height: 1.32;+ }++ .kaneo-comment-editor-prose ul,+ .kaneo-comment-editor-prose ol {+ margin: 0.12rem 0 0;+ padding-inline-start: 1.2rem;+ }++ .kaneo-comment-editor-prose ul {+ list-style-type: disc;+ }++ .kaneo-comment-editor-prose ol {+ list-style-type: decimal;+ }++ .kaneo-comment-editor-prose ul ul {+ list-style-type: circle;+ }++ .kaneo-comment-editor-prose ul ul ul {+ list-style-type: square;+ }++ .kaneo-comment-editor-prose ol ol {+ list-style-type: lower-alpha;+ }++ .kaneo-comment-editor-prose li::marker {+ color: color-mix(in srgb, var(--foreground) 70%, transparent);+ }++ .kaneo-comment-editor-prose li {+ margin: 0.08rem 0;+ }++ .kaneo-comment-editor-prose ul[data-type="taskList"] {+ list-style: none;+ margin: 0.12rem 0 0;+ padding-inline-start: 0;+ }++ .kaneo-comment-editor-prose li[data-type="taskItem"] {+ display: flex;+ align-items: center;+ justify-content: flex-start;+ gap: 0.45rem;+ margin: 0.14rem 0;+ text-align: left;+ }++ .kaneo-comment-editor-prose+ li[data-type="taskItem"]+ > :is(label, .kaneo-task-item-checkbox) {+ margin-top: 0;+ display: inline-flex;+ flex-shrink: 0;+ cursor: pointer;+ }++ .kaneo-comment-editor-prose li[data-type="taskItem"] > div {+ flex: 0 1 auto;+ min-width: 0;+ text-align: left;+ }++ .kaneo-comment-editor-prose li[data-type="taskItem"] > div > * {+ margin-inline: 0;+ }++ .kaneo-comment-editor-prose li[data-type="taskItem"] ul,+ .kaneo-comment-editor-prose li[data-type="taskItem"] ol {+ margin-top: 0.16rem;+ }++ .kaneo-comment-editor-prose li[data-type="taskItem"] [data-slot="checkbox"] {+ margin-top: 0;+ }++ .kaneo-comment-editor-prose li[data-type="taskItem"] > div p {+ margin: 0;+ line-height: 1.45;+ }++ .kaneo-comment-editor-prose li[data-type="taskItem"][data-checked="true"] > div p {+ color: color-mix(in srgb, var(--foreground) 62%, transparent);+ text-decoration: line-through;+ }++ .kaneo-comment-editor-prose a {+ color: color-mix(in srgb, var(--foreground) 88%, #4c9aff 12%);+ text-decoration: underline;+ text-decoration-color: color-mix(in srgb, var(--ring) 44%, transparent);+ text-underline-offset: 2px;+ }++ .kaneo-comment-editor-prose :not(pre) > code {+ border: 1px solid color-mix(in srgb, var(--border) 86%, transparent);+ border-radius: 0.34rem;+ background: color-mix(in srgb, var(--accent) 40%, transparent);+ padding: 0.08rem 0.36rem;+ font-size: 0.79em;+ font-family: var(--font-mono);+ }++ .kaneo-comment-editor-prose pre {+ margin: 0.12rem 0 0;+ border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);+ border-radius: 0.45rem;+ background: color-mix(in srgb, var(--card) 80%, transparent);+ padding: 0.55rem 0.7rem;+ overflow-x: auto;+ font-family: var(--font-mono);+ font-size: 0.82rem;+ line-height: 1.55;+ }++ .kaneo-comment-editor-prose [data-type="kaneo-embed"] {+ margin: 0.12rem 0 0;+ border: 1px solid color-mix(in srgb, var(--border) 76%, transparent);+ border-radius: calc(var(--radius) - 2px);+ background: color-mix(in srgb, var(--accent) 28%, transparent);+ overflow: hidden;+ transition:+ border-color 0.12s ease,+ box-shadow 0.12s ease;+ }++ .kaneo-comment-editor-prose [data-type="kaneo-embed"] iframe {+ width: 100%;+ aspect-ratio: 16 / 9;+ border: 0;+ display: block;+ background: black;+ }++ .kaneo-comment-editor-prose [data-type="kaneo-embed"] > a {+ display: block;+ padding: 0.6rem 0.7rem;+ color: var(--foreground);+ text-decoration: none;+ font-size: 0.82rem;+ word-break: break-word;+ }++ .kaneo-comment-editor-prose+ [data-type="kaneo-embed"].ProseMirror-selectednode {+ border-color: color-mix(in srgb, var(--ring) 82%, var(--border));+ box-shadow:+ 0 0 0 2px color-mix(in srgb, var(--ring) 38%, transparent),+ 0 0 0 1px color-mix(in srgb, var(--ring) 70%, transparent) inset;+ }++ .kaneo-comment-editor-prose [data-type="kaneo-embed"]:focus-within {+ border-color: color-mix(in srgb, var(--ring) 80%, var(--border));+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--ring) 34%, transparent);+ }++ .kaneo-comment-editor-prose table {+ width: 100%;+ table-layout: fixed;+ border-collapse: collapse;+ margin: 0.12rem 0 0;+ border: 1px solid color-mix(in srgb, var(--border) 86%, transparent);+ border-radius: 0.45rem;+ overflow: hidden;+ }++ .kaneo-comment-editor-prose table td,+ .kaneo-comment-editor-prose table th {+ min-width: 1em;+ border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);+ padding: 0.4rem 0.5rem;+ vertical-align: top;+ }++ .kaneo-comment-editor-prose table th {+ background: color-mix(in srgb, var(--accent) 65%, transparent);+ font-weight: 600;+ text-align: left;+ }++ .kaneo-comment-editor-prose .tableWrapper {+ overflow-x: auto;+ }++ .kaneo-comment-editor-prose .is-editor-empty:first-child::before {+ content: attr(data-placeholder);+ color: color-mix(in srgb, var(--foreground) 42%, transparent);+ pointer-events: none;+ float: left;+ height: 0;+ }++ .kaneo-comment-editor-prose p > .ProseMirror-trailingBreak {line-height: 1;- white-space: nowrap;}- .kaneo-slash-menu-item.is-selected .kaneo-slash-menu-shortcut {- color: color-mix(in srgb, var(--accent-foreground) 72%, transparent);+ .kaneo-comment-editor-bubble {+ display: inline-flex;+ align-items: center;+ gap: 0.12rem;+ border: 1px solid color-mix(in srgb, var(--border) 86%, transparent);+ border-radius: 0.45rem;+ background: var(--popover);+ padding: 0.2rem 0.24rem;+ box-shadow:+ 0 8px 24px --alpha(var(--color-black) / 14%),+ 0 1px 2px --alpha(var(--color-black) / 9%);}- .dark .blocknote-transparent .bn-container {- --bn-colors-shadow: --alpha(var(--color-black) / 44%);+ .kaneo-comment-editor-bubble-btn {+ height: 1.58rem;+ width: 1.58rem;+ padding: 0;}++ .kaneo-comment-editor-shell .kaneo-tiptap-slash-menu {+ position: absolute;+ z-index: 120;+ opacity: 1;+ background-color: var(--popover);+ background-image: none;+ backdrop-filter: none;+ }++ .kaneo-tiptap-content .ProseMirror ::selection {+ background: color-mix(in srgb, var(--primary) 18%, transparent);+ }+}diff --git a/apps/web/src/lib/editor-task-list-paste.ts b/apps/web/src/lib/editor-task-list-paste.tsnew file mode 100644index 000000000..7ffe25a43--- /dev/null+++ b/apps/web/src/lib/editor-task-list-paste.ts@@ -0,0 +1,84 @@+type ProseMirrorNodeJSON = {+ type: string;+ attrs?: Record<string, unknown>;+ content?: ProseMirrorNodeJSON[];+ text?: string;+};++const TASK_LINE_REGEX = /^\s*[-*]\s+\[( |x|X)\]\s*(.*)$/;+const HEADING_REGEX = /^(#{1,6})\s+(.+)$/;++function createParagraphNode(text: string): ProseMirrorNodeJSON {+ const normalizedText = text.trim();+ if (!normalizedText) {+ return { type: "paragraph" };+ }++ return {+ type: "paragraph",+ content: [{ type: "text", text: normalizedText }],+ };+}++export function parseTaskListMarkdownToNodes(+ rawText: string,+): ProseMirrorNodeJSON[] | null {+ if (!/(?:^|\n)\s*[-*]\s+\[(?: |x|X)\]\s+/.test(rawText)) {+ return null;+ }++ const lines = rawText.replace(/\r\n/g, "\n").split("\n");+ const nodes: ProseMirrorNodeJSON[] = [];+ let taskItems: ProseMirrorNodeJSON[] = [];+ let hasTaskItems = false;++ const flushTaskItems = () => {+ if (!taskItems.length) return;+ nodes.push({+ type: "taskList",+ content: taskItems,+ });+ taskItems = [];+ };++ for (const line of lines) {+ const trimmedLine = line.trim();+ if (!trimmedLine) {+ flushTaskItems();+ continue;+ }++ const taskMatch = TASK_LINE_REGEX.exec(line);+ if (taskMatch) {+ hasTaskItems = true;+ taskItems.push({+ type: "taskItem",+ attrs: { checked: taskMatch[1].toLowerCase() === "x" },+ content: [createParagraphNode(taskMatch[2] || "")],+ });+ continue;+ }++ flushTaskItems();++ const headingMatch = HEADING_REGEX.exec(trimmedLine);+ if (headingMatch) {+ nodes.push({+ type: "heading",+ attrs: { level: headingMatch[1].length },+ content: [{ type: "text", text: headingMatch[2].trim() }],+ });+ continue;+ }++ nodes.push(createParagraphNode(trimmedLine));+ }++ flushTaskItems();++ if (!hasTaskItems || !nodes.length) {+ return null;+ }++ return nodes;+}diff --git a/apps/web/src/lib/editor-url-utils.ts b/apps/web/src/lib/editor-url-utils.tsnew file mode 100644index 000000000..0fa5a98b0--- /dev/null+++ b/apps/web/src/lib/editor-url-utils.ts@@ -0,0 +1,49 @@+export function normalizeUrl(raw: string) {+ const trimmed = raw.trim();+ if (!trimmed) return null;+ const candidate = /^https?:\/\//i.test(trimmed)+ ? trimmed+ : `https://${trimmed}`;+ try {+ const parsed = new URL(candidate);+ return parsed.toString();+ } catch {+ return null;+ }+}++export function isYouTubeUrl(value: string) {+ try {+ const parsed = new URL(value);+ const host = parsed.hostname.replace(/^www\./, "");+ return (+ host === "youtube.com" || host === "m.youtube.com" || host === "youtu.be"+ );+ } catch {+ return false;+ }+}++export function extractIssueKeyFromUrl(value: string) {+ try {+ const parsed = new URL(value);+ const pathMatch = parsed.pathname.match(/\/issue\/([A-Za-z]+-\d+)(?:\/|$)/);+ if (pathMatch?.[1]) return pathMatch[1].toUpperCase();+ } catch {+ return null;+ }++ return null;+}++export function extractTaskIdFromUrl(value: string) {+ try {+ const parsed = new URL(value);+ const match = parsed.pathname.match(/\/task\/([a-z0-9]+)(?:\/|$)/i);+ if (match?.[1]) return match[1];+ } catch {+ return null;+ }++ return null;+}diff --git a/apps/web/src/lib/shiki-highlighter.ts b/apps/web/src/lib/shiki-highlighter.tsnew file mode 100644index 000000000..63273f673--- /dev/null+++ b/apps/web/src/lib/shiki-highlighter.ts@@ -0,0 +1,52 @@+import { createHighlighter, type Highlighter } from "shiki";++let shikiHighlighterPromise: Promise<Highlighter> | null = null;++const SHIKI_LANGUAGES = [+ "bash",+ "csharp",+ "cpp",+ "css",+ "clojure",+ "cypher",+ "dart",+ "diff",+ "elixir",+ "csv",+ "go",+ "graphql",+ "html",+ "haskell",+ "json",+ "java",+ "javascript",+ "kotlin",+ "makefile",+ "markdown",+ "ocaml",+ "php",+ "perl",+ "text",+ "python",+ "r",+ "ruby",+ "rust",+ "sql",+ "swift",+ "toml",+ "terraform",+ "typescript",+ "xml",+ "yaml",+] as const;++export function getSharedShikiHighlighter() {+ if (!shikiHighlighterPromise) {+ shikiHighlighterPromise = createHighlighter({+ themes: ["github-dark", "github-light"],+ langs: [...SHIKI_LANGUAGES],+ });+ }++ return shikiHighlighterPromise;+}diff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/task/$taskId_.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/task/$taskId_.tsxindex b95cd8ca4..68c74c7c5 100644--- a/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/task/$taskId_.tsx+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/task/$taskId_.tsx@@ -1,10 +1,17 @@import { createFileRoute } from "@tanstack/react-router";+import { useEffect, useState } from "react";import TaskLayout from "@/components/common/task-layout";import PageTitle from "@/components/page-title";import TaskDetailsContent from "@/components/task/task-details-content";+import {+ TaskDetailsSkeleton,+ TaskPropertiesSidebarSkeleton,+} from "@/components/task/task-page-skeleton";import TaskPropertiesSidebar from "@/components/task/task-properties-sidebar";+import useGetActivitiesByTaskId from "@/hooks/queries/activity/use-get-activities-by-task-id";import useGetProject from "@/hooks/queries/project/use-get-project";import useGetTask from "@/hooks/queries/task/use-get-task";+import { getSharedShikiHighlighter } from "@/lib/shiki-highlighter";export const Route = createFileRoute("/_layout/_authenticated/dashboard/workspace/$workspaceId/project/$projectId/task/$taskId_",@@ -14,8 +21,29 @@ export const Route = createFileRoute(function RouteComponent() {const { projectId, workspaceId, taskId } = Route.useParams();- const { data: task } = useGetTask(taskId);- const { data: project } = useGetProject({ id: projectId, workspaceId });+ const { data: task, isLoading: isTaskLoading } = useGetTask(taskId);+ const { data: project, isLoading: isProjectLoading } = useGetProject({+ id: projectId,+ workspaceId,+ });+ const { isLoading: isActivitiesLoading } = useGetActivitiesByTaskId(taskId);+ const [isShikiReady, setIsShikiReady] = useState(false);++ useEffect(() => {+ let mounted = true;++ void getSharedShikiHighlighter().then(() => {+ if (!mounted) return;+ setIsShikiReady(true);+ });++ return () => {+ mounted = false;+ };+ }, []);++ const isLoading =+ isTaskLoading || isProjectLoading || isActivitiesLoading || !isShikiReady;return (<TaskLayout@@ -23,24 +51,36 @@ function RouteComponent() {projectId={projectId}workspaceId={workspaceId}rightSidebar={- <TaskPropertiesSidebar- taskId={taskId}- projectId={projectId}- workspaceId={workspaceId}- className="w-full lg:w-56 xl:w-64 h-full bg-sidebar border-b lg:border-b-0 lg:border-l border-border flex flex-col gap-2"- />+ isLoading ? (+ <TaskPropertiesSidebarSkeleton className="h-full w-full lg:w-72 xl:w-80 flex flex-col gap-2" />+ ) : (+ <TaskPropertiesSidebar+ taskId={taskId}+ projectId={projectId}+ workspaceId={workspaceId}+ className="h-full w-full lg:w-72 xl:w-80 flex flex-col gap-2"+ />+ )}><PageTitle- title={`${project?.slug}-${task?.number} — ${task?.title}`}+ title={+ isLoading+ ? "Loading task..."+ : `${project?.slug}-${task?.number} — ${task?.title}`+ }hideAppName/>- <TaskDetailsContent- taskId={taskId}- projectId={projectId}- workspaceId={workspaceId}- className="flex flex-col h-full min-h-0 max-w-3xl mx-auto px-3 sm:px-4 xl:py-8 py-2 gap-2"- />+ {isLoading ? (+ <TaskDetailsSkeleton />+ ) : (+ <TaskDetailsContent+ taskId={taskId}+ projectId={projectId}+ workspaceId={workspaceId}+ className="mx-auto flex h-full min-h-0 w-full max-w-3xl flex-col gap-2 px-3 pb-16 pt-3 sm:px-4 xl:pb-20 xl:pt-8"+ />+ )}</TaskLayout>);}diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 64a565ed6..810fa776a 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -197,15 +197,6 @@ importers:'@better-auth/api-key':specifier: ^1.5.3version: 1.5.3(@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])([email protected](a660160d7f82d51a45c29b1b97b38fd9))- '@blocknote/core':- specifier: ^0.47.0- version: 0.47.0(@types/[email protected])- '@blocknote/react':- specifier: ^0.47.0- version: 0.47.0(@floating-ui/[email protected])(@types/[email protected])(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@blocknote/shadcn':- specifier: ^0.47.0- version: 0.47.0(@floating-ui/[email protected])(@types/[email protected])(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])'@dnd-kit/core':specifier: ^6.3.1@@ -293,6 +284,54 @@ importers:'@tanstack/router-plugin':specifier: ^1.164.0version: 1.164.0(@tanstack/[email protected]([email protected]([email protected]))([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ '@tiptap/core':+ specifier: ^3.20.0+ version: 3.20.0(@tiptap/[email protected])+ '@tiptap/extension-code-block-lowlight':+ specifier: ^3.20.0+ version: 3.20.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))(@tiptap/[email protected])([email protected])([email protected])+ '@tiptap/extension-link':+ specifier: ^3.20.0+ '@tiptap/extension-list':+ specifier: ^3.20.1+ '@tiptap/extension-placeholder':+ specifier: ^3.20.0+ version: 3.20.0(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))+ '@tiptap/extension-table':+ specifier: ^3.20.0+ '@tiptap/extension-table-cell':+ specifier: ^3.20.0+ version: 3.20.0(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))+ '@tiptap/extension-table-header':+ specifier: ^3.20.0+ version: 3.20.0(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))+ '@tiptap/extension-table-row':+ specifier: ^3.20.0+ version: 3.20.0(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))+ '@tiptap/extension-task-item':+ specifier: ^3.20.1+ version: 3.20.1(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))+ '@tiptap/extension-task-list':+ specifier: ^3.20.1+ version: 3.20.1(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))+ '@tiptap/extension-underline':+ specifier: ^3.20.0+ version: 3.20.0(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/markdown':+ specifier: ^3.20.0+ '@tiptap/pm':+ specifier: ^3.20.0+ version: 3.20.0+ '@tiptap/react':+ specifier: ^3.20.0+ version: 3.20.0(@floating-ui/[email protected])(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@tiptap/starter-kit':+ specifier: ^3.20.0+ version: 3.20.0'@types/file-saver':specifier: ^2.0.7version: 2.0.7@@ -323,6 +362,9 @@ importers:framer-motion:specifier: ^12.34.3+ highlight.js:+ specifier: ^11.11.1+ version: 11.11.1hono:specifier: ^4.12.4version: 4.12.5@@ -332,9 +374,18 @@ importers:input-otp:specifier: ^1.4.2+ lowlight:+ specifier: ^3.3.0+ version: 3.3.0lucide-react:specifier: ^0.575.0version: 0.575.0([email protected])+ marked:+ specifier: ^17.0.4+ version: 17.0.4+ radix-ui:+ specifier: ^1.4.3+ version: 1.4.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])react:specifier: ^19.2.4version: 19.2.4@@ -365,6 +416,15 @@ importers:tailwindcss-animate:specifier: ^1.0.7version: 1.0.7([email protected])+ tippy.js:+ specifier: ^6.3.7+ version: 6.3.7+ turndown:+ specifier: ^7.2.2+ version: 7.2.2+ turndown-plugin-gfm:+ specifier: ^1.0.2+ version: 1.0.2zod:specifier: ^4.3.6version: 4.3.6@@ -767,27 +827,6 @@ packages:cpu: [x64]os: [win32]- '@blocknote/[email protected]':- resolution: {integrity: sha512-i8QwAA8z/T97ZKPQy/8GTUicy3xBZy7xcR0fH/qA2xQq0xIaE7AZT92nS1sDvohxUsTJVNQBZ/zkpGKGj4Eq8g==}- peerDependencies:- '@hocuspocus/provider': ^2.15.2 || ^3.0.0- peerDependenciesMeta:- '@hocuspocus/provider':- optional: true-- '@blocknote/[email protected]':- resolution: {integrity: sha512-RgLCrccVCVySlnxSKoJfu1nHcJeahpgZQeQrLnVBqLMXicy4nB5vy5QYh5qQGFl7vaRGN3RVduDAZfOp96TF1g==}- peerDependencies:- react: ^18.0 || ^19.0 || >= 19.0.0-rc- react-dom: ^18.0 || ^19.0 || >= 19.0.0-rc-- '@blocknote/[email protected]':- resolution: {integrity: sha512-iz8FZ0prLrKHJ7z7oLH3GlZEi9N50D9pIdwEsgBXaWqjM8Eov6kZqrHTWlEjuFqoDsK3NwzbC1YgihrDrXuvng==}- peerDependencies:- react: ^18.0 || ^19.0 || >= 19.0.0-rc- react-dom: ^18.0 || ^19.0 || >= 19.0.0-rc- tailwindcss: ^4.1.12-'@chevrotain/[email protected]':resolution: {integrity: sha512-lhmC/FyqQ2o7pGK4Om+hzuDrm9rhFYIJ/AXoQBeongmn870Xeb0L6oGEiuR8nohFNL5sMaQEJWCxr1oIVIVXrw==}@@ -930,9 +969,6 @@ packages:'@emnapi/[email protected]':resolution: {integrity: sha512-mehfKSMWjjNol8659Z8KxEMrdSJDDot5SXMq00dM8BN4o+CLNXQ0xH2V7EchNHV4RmbZLmmPdEaXZc5H2FXmDg==}- '@emoji-mart/[email protected]':- resolution: {integrity: sha512-no2pQMWiBy6gpBEiqGeU77/bFejDqUTRY7KX+0+iur13op3bqUsXdnwoZs6Xb1zbv0gAj5VvS1PWoUUckSr5Dw==}-'@esbuild-kit/[email protected]':resolution: {integrity: sha512-sPRAnw9CdSsRmEtnsl2WXWdyquogVpB3yZ3dgwJfe8zrOzTsV7cJvmwrKVa+0ma5BoiGJ+BoqkMvawbayKUsqQ==}deprecated: 'Merged into tsx: https://tsx.is'@@ -1709,22 +1745,9 @@ packages:react: '>=16.8.0'react-dom: '>=16.8.0'- '@floating-ui/[email protected]':- resolution: {integrity: sha512-9O8N4SeG2z++TSM8QA/KTeKFBVCNEz/AGS7gWPJf6KFRzmRWixFRnCnkPHRDwSVZW6QPDO6uT0P2SpWNKCc9/g==}- peerDependencies:- react: '>=17.0.0'- react-dom: '>=17.0.0'-'@floating-ui/[email protected]':resolution: {integrity: sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ==}- '@handlewithcare/[email protected]':- resolution: {integrity: sha512-GMqlBeG2MKM+tXEFd2N+wIv5z4VvJTg8JtfJUrdjvFq2W6v+AW8oTgiWyFw8L3iEQwvtQcVJxU873iB0LXUNNw==}- peerDependencies:- prosemirror-model: ^1.0.0- prosemirror-state: ^1.0.0- prosemirror-view: ^1.0.0-'@hono/[email protected]':resolution: {integrity: sha512-hZ7nOssGqRgyV3FVVQdfi+U4q02uB23bpnYpdvNXkYTRRyWx84b7yf1ans+dnJ/7h41sGL3CeQTfO+ZGxuO+Iw==}engines: {node: '>=18.14.1'}@@ -1948,6 +1971,9 @@ packages:'@jridgewell/[email protected]':resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==}+ '@mixmark-io/[email protected]':+ resolution: {integrity: sha512-Y28PR25bHXUg88kCV7nivXrP2Nj2RueZ3/l/jdx6J9f8J4nsEGcgX0Qe6lt7Pa+J79+kPiJU3LguR6O/6zrLOw==}+'@modelcontextprotocol/[email protected]':resolution: {integrity: sha512-Y5RmPncpiDtTXDbLKswIJzTqu2hyBKxTNsgKqKclDbhIgg1wgtf1fRuvxgTnRfcnxtvvgbIEcqUOzZrJ6iSReg==}engines: {node: '>=18'}@@ -2235,6 +2261,9 @@ packages:resolution: {integrity: sha512-OqiFvSOF0dBSesELYY2CAMa4YINvlLpvKOz/rv6NeZEqiyttlHgv98Juwv4Ch+GrEV7IZ8jfI2VcEoYUjXXCjw==}hasBin: true+ '@popperjs/[email protected]':+ resolution: {integrity: sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==}+'@prisma/[email protected]':resolution: {integrity: sha512-cID+rzOEb38VyMsx5LwJMEY4NGIrWCNpKu/0ImbeooQ2Px7TI+kOt7cm0NelxUzF2V41UVVXAmYjANZQtCu1/Q==}@@ -3344,12 +3373,6 @@ packages:'@selderee/[email protected]':resolution: {integrity: sha512-P33hHGdldxGabLFjPPpaTxVolMrzrcegejx+0GxjrIb9Zv48D8yAIA/QTDR2dFl7Uz7urX8aX6+5bCZslr+gWQ==}- '@shikijs/[email protected]':- resolution: {integrity: sha512-zGrWOxZ0/+0ovPY7PvBU2gIS9tmhSUUt30jAcNV0Bq0gb2S98gwfjIs1vxlmH5zM7/4YxLamT6ChlqqAJmPPjA==}-- '@shikijs/[email protected]':- resolution: {integrity: sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==}-'@sindresorhus/[email protected]':resolution: {integrity: sha512-tlqY9xq5ukxTUZBmoOp+m61cqwQD5pHJtFY3Mn8CA8ps6yghLH/Hw8UPdqg4OLmFW3IFlcXnQNmo/dh8HzXYIQ==}engines: {node: '>=18'}@@ -3652,12 +3675,6 @@ packages:react: '>=18.0.0 || >=19.0.0'react-dom: '>=18.0.0 || >=19.0.0'- '@tanstack/[email protected]':- resolution: {integrity: sha512-qqT0ufegFRDGSof9D/VqaZgjNgp4tRPHZIJq2+QIHkMUtHjaJ0lYrrXjeIUJvjnTbgPfSD1XgOMEt0lmANn6Zg==}- peerDependencies:- react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0- react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-'@tanstack/[email protected]':resolution: {integrity: sha512-YzJLnRvy5lIEFTLWBAZmcOjK3+2AepnBv/sr6NZmiqJvq7zTQggyK99Gw8fqYdMdHPQWXjz0epFKJXC+9V2xDA==}peerDependencies:@@ -3719,9 +3736,6 @@ packages:resolution: {integrity: sha512-r8TpjyIZoqrXXaf2DDyjd44gjGBoyE+/oEaaH68yLI9ySPO1gUWmQENZ1MZnmBnpUGN24NOZxdjDLc8npK0SAw==}engines: {node: '>=20.19'}- '@tanstack/[email protected]':- resolution: {integrity: sha512-xa6pTan1bcaqYDS9BDpSiS63qa6EoDkPN9RsRaxHuDdVDNntzq3xNwR5YKTU/V3SkSyC9T4YVOPh2zRQN0nhIQ==}-'@tanstack/[email protected]':resolution: {integrity: sha512-+qcNkOy0N1qSGsP7omVCW0SDrXtaDcycPqBDE726yryiA5eTDFpjBReaYjghVJwNf1pcPMyzIwTGlYjCSQR0Fg==}@@ -3729,90 +3743,206 @@ packages:resolution: {integrity: sha512-42WoRePf8v690qG8yGRe/YOh+oHni9vUaUUfoqlS91U2scd3a5rkLtVsc6b7z60w3RogH0I00vdrC5AaeiZ18w==}engines: {node: '>=20.19'}- '@tiptap/[email protected]':- resolution: {integrity: sha512-iUelgiTMgPVMpY5ZqASUpk8mC8HuR9FWKaDzK27w9oWip9tuB54Z8mePTxNcQaSPb6ErzEaC8x8egrRt7OsdGQ==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-aC9aROgia/SpJqhsXFiX9TsligL8d+oeoI8W3u00WI45s0VfsqjgeKQLDLF7Tu7hC+7F02teC84SAHuup003VQ==}+ peerDependencies:+ '@tiptap/pm': ^3.20.0++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-LQzn6aGtL4WXz2+rYshl/7/VnP2qJTpD7fWL96GXAzhqviPEY1bJES7poqJb3MU/gzl8VJUVzVzU1VoVfUKlbA==}+ peerDependencies:+ '@tiptap/core': ^3.20.0++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-sQklEWiyf58yDjiHtm5vmkVjfIc/cBuSusmCsQ0q9vGYnEF1iOHKhGpvnCeEXNeqF3fiJQRlquzt/6ymle3Iwg==}peerDependencies:- '@tiptap/pm': ^3.13.0+ '@tiptap/core': ^3.20.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-VYiDN9EEwR6ShaDLclG8mphkb/wlIzqfk7hxaKboq1G+NSDj8PcaSI9hldKKtTCLeaSNu6UR5nkdu/YHdzYWTw==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-MDosUfs8Tj+nwg8RC+wTMWGkLJORXmbR6YZgbiX4hrc7G90Gopdd6kj6ht5/T8t7dLLaX7N0+DEHdUEPGED7dw==}peerDependencies:- '@tiptap/core': ^3.13.0+ '@tiptap/core': ^3.20.0+ '@tiptap/pm': ^3.20.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-qZ3j2DBsqP9DjG2UlExQ+tHMRhAnWlCKNreKddKocb/nAFrPdBCtvkqIEu+68zPlbLD4ukpoyjUklRJg+NipFg==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-OcKMeopBbqWzhSi6o8nNz0aayogg1sfOAhto3NxJu3Ya32dwBFqmHXSYM6uW4jOphNvVPyjiq9aNRh3qTdd1dw==}peerDependencies:- '@tiptap/core': ^3.13.0- '@tiptap/pm': ^3.13.0+ '@tiptap/extension-list': ^3.20.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-sF5raBni6iSVpXWvwJCAcOXw5/kZ+djDHx1YSGWhopm4+fsj0xW7GvVO+VTwiFjZGKSw+K5NeAxzcQTJZd3Vhw==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-9lN9rn07lOWkLnByT5C1axtq56MHpOI7MpLaCmX3p+x1bDl6Uvixm6AoBdTLfZUmUYeEFBsf7t5cR+QepMbkiA==}peerDependencies:- '@tiptap/core': ^3.13.0+ '@tiptap/core': ^3.20.0+ '@tiptap/extension-code-block': ^3.20.0+ '@tiptap/pm': ^3.20.0+ highlight.js: ^11+ lowlight: ^2 || ^3- '@tiptap/[email protected]':- resolution: {integrity: sha512-OsezV2cMofZM4c13gvgi93IEYBUzZgnu8BXTYZQiQYekz4bX4uulBmLa1KOA9EN71FzS+SoLkXHU0YzlbLjlxA==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-lBbmNek14aCjrHcBcq3PRqWfNLvC6bcRa2Osc6e/LtmXlcpype4f6n+Yx+WZ+f2uUh0UmDRCz7BEyUETEsDmlQ==}+ peerDependencies:+ '@tiptap/core': ^3.20.0+ '@tiptap/pm': ^3.20.0++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-TYDWFeSQ9umiyrqsT6VecbuhL8XIHkUhO+gEk0sVvH67ZLwjFDhAIIgWIr1/dbIGPcvMZM19E7xUUhAdIaXaOQ==}+ peerDependencies:+ '@tiptap/core': ^3.20.0++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-oJfLIG3vAtZo/wg29WiBcyWt22KUgddpP8wqtCE+kY5Dw8znLR9ehNmVWlSWJA5OJUMO0ntAHx4bBT+I2MBd5w==}+ peerDependencies:+ '@tiptap/core': ^3.20.0++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-d+cxplRlktVgZPwatnc34IArlppM0IFKS1J5wLk+ba1jidizsbMVh45tP/BTK2flhyfRqcNoB5R0TArhUpbkNQ==}+ peerDependencies:+ '@tiptap/extensions': ^3.20.0++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-rYs4Bv5pVjqZ/2vvR6oe7ammZapkAwN51As/WDbemvYDjfOGRqK58qGauUjYZiDzPOEIzI2mxGwsZ4eJhPW4Ig==}peerDependencies:'@floating-ui/dom': ^1.0.0- '@tiptap/core': ^3.13.0- '@tiptap/pm': ^3.13.0+ '@tiptap/core': ^3.20.0+ '@tiptap/pm': ^3.20.0++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-P/LasfvG9/qFq43ZAlNbAnPnXC+/RJf49buTrhtFvI9Zg0+Lbpjx1oh6oMHB19T88Y28KtrckfFZ8aTSUWDq6w==}+ peerDependencies:+ '@tiptap/extensions': ^3.20.0++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-rqvhMOw4f+XQmEthncbvDjgLH6fz8L9splnKZC7OeS0eX8b0qd7+xI1u5kyxF3KA2Z0BnigES++jjWuecqV6mA==}+ peerDependencies:+ '@tiptap/core': ^3.20.0++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-JgJhurnCe3eN6a0lEsNQM/46R1bcwzwWWZEFDSb1P9dR8+t1/5v7cMZWsSInpD7R4/74iJn0+M5hcXLwCmBmYA==}+ peerDependencies:+ '@tiptap/core': ^3.20.0++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-6uvcutFMv+9wPZgptDkbRDjAm3YVxlibmkhWD5GuaWwS9L/yUtobpI3GycujRSUZ8D3q6Q9J7LqpmQtQRTalWA==}+ peerDependencies:+ '@tiptap/core': ^3.20.0+ '@tiptap/pm': ^3.20.0++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-/DhnKQF8yN8RxtuL8abZ28wd5281EaGoE2Oha35zXSOF1vNYnbyt8Ymkv/7u1BcWEWTvRPgaju0YCGXisPRLYw==}+ peerDependencies:+ '@tiptap/core': ^3.20.0++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-qI/5A+R0ZWBxo/8HxSn1uOyr7odr3xHBZ/gzOR1GUJaZqjlJxkWFX0RtXMbLKEGEvT25o345cF7b0wFznEh8qA==}+ peerDependencies:+ '@tiptap/core': ^3.20.0+ '@tiptap/pm': ^3.20.0++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-qEtjaaGPuqaFB4VpLrGDoIe9RHnckxPfu6d3rc22ap6TAHCDyRv05CEyJogqccnFceG/v5WN4znUBER8RWnWHA==}+ peerDependencies:+ '@tiptap/extension-list': ^3.20.0++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-Z4GvKy04Ms4cLFN+CY6wXswd36xYsT2p/YL0V89LYFMZTerOeTjFYlndzn6svqL8NV1PRT5Diw4WTTxJSmcJPA==}+ peerDependencies:+ '@tiptap/extension-list': ^3.20.0++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-euBRAn0mkV7R2VEE+AuOt3R0j9RHEMFXamPFmtvTo8IInxDClusrm6mJoDjS8gCGAXsQCRiAe1SCQBPgGbOOwg==}+ peerDependencies:+ '@tiptap/core': ^3.20.1+ '@tiptap/pm': ^3.20.1++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-jVKnJvrizLk7etwBMfyoj6H2GE4M+PD4k7Bwp6Bh1ohBWtfIA1TlngdS842Mx5i1VB2e3UWIwr8ZH46gl6cwMA==}+ peerDependencies:+ '@tiptap/extension-list': ^3.20.0++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-mM99zK4+RnEXIMCv6akfNATAs0Iija6FgyFA9J9NZ6N4o8y9QiNLLa6HjLpAC+W+VoCgQIekyoF/Q9ftxmAYDQ==}+ peerDependencies:+ '@tiptap/core': ^3.20.0++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-ZhYD3L5m16ydSe2z8vqz+RdtAG/iOQaFHHedFct70tKRoLqi2ajF5kgpemu8DwpaRTcyiCN4G99J/+MqehKNjQ==}+ peerDependencies:+ '@tiptap/extensions': ^3.20.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-ZUFyORtjj22ib8ykbxRhWFQOTZjNKqOsMQjaAGof30cuD2DN5J5pMz7Haj2fFRtLpugWYH+f0Mi+WumQXC3hCw==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-0vcTZRRAiDfon3VM1mHBr9EFmTkkUXMhm0Xtdtn0bGe+sIqufyi+hUYTEw93EQOD9XNsPkrud6jzQNYpX2H3AQ==}peerDependencies:- '@tiptap/core': ^3.13.0- '@tiptap/pm': ^3.13.0+ '@tiptap/core': ^3.20.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-XbVTgmzk1kgUMTirA6AGdLTcKHUvEJoh3R4qMdPtwwygEOe7sBuvKuLtF6AwUtpnOM+Y3tfWUTNEDWv9AcEdww==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-9Dg4zda3UWwtpBwSG7b9BeQy5oT27a/yEIBeARuxe19bloMLZgqpPRtnSrOK0OAITtVnjA+NZdKPcVLRMS2E8A==}peerDependencies:- '@tiptap/core': ^3.13.0+ '@tiptap/extension-table': ^3.20.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-LuFPJ5GoL12GHW4A+USsj60O90pLcwUPdvEUSWewl9USyG6gnLnY/j5ZOXPYH7LiwYW8+lhq7ABwrDF2PKyBbA==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-2tVHHlihpeHO/gh2uU46gAX3NTGdKR+yDmfLlO2l0QAvx2TXNfNzX2pOM4MmyostW5Ko9TCWV4x0D9h3IQDhPw==}peerDependencies:- '@tiptap/core': ^3.13.0- '@tiptap/pm': ^3.13.0+ '@tiptap/extension-table': ^3.20.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-9csQde1i0yeZI5oQQ9e1GYNtGL2JcC2d8Fwtw9FsGC8yz2W0h+Fmk+3bc2kobbtO5LGqupSc1fKM8fAg5rSRDg==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-clkfQahkYW/U48QBh1rPZv3AWWSC9AqGKp2DLTH/SGIorM/NwI0jpPtBETMlvowyQu0ivlH9B896smEph+Do2A==}peerDependencies:- '@tiptap/core': ^3.13.0+ '@tiptap/extension-table': ^3.20.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-VHhWNqTAMOfrC48m2FcPIZB0nhl6XHQviAV16SBc+EFznKNv9tQUsqQrnuQ2y6ZVfqq5UxvZ3hKF/JlN/Ff7xw==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-vaaMtQ2KnSSr8WVwgWf7NYNzPwrHx/6T0ekA5CxV8qNUEpXIaLXa5+tE7tJHWEdNR2KY3gUJ46D3lfOkxyFrBQ==}peerDependencies:- '@tiptap/core': ^3.13.0+ '@tiptap/core': ^3.20.0+ '@tiptap/pm': ^3.20.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-VcZIna93rixw7hRkHGCxDbL3kvJWi80vIT25a2pXg0WP1e7Pi3nBYvZIL4SQtkbBCji9EHrbZx3p8nNPzfazYw==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-ZdQld5Jzw/b/zl9TSA3KNkucmQhW5lHS/0YEKb+eFvxMwdHTKSpsTQzrfzbJixcdSqsuKJB+uUCwDDB+l0CRlA==}peerDependencies:- '@tiptap/core': ^3.13.0+ '@tiptap/extension-list': ^3.20.1- '@tiptap/[email protected]':- resolution: {integrity: sha512-VDQi+UYw0tFnfghpthJTFmtJ3yx90kXeDwFvhmT8G+O+si5VmP05xYDBYBmYCix5jqKigJxEASiBL0gYOgMDEg==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-fbWsbp2ybWZUn9zcdgvFIcVya7v8kISuy91SULM1lhLwIsjNC15IPqp/ZEFJJJDKWBVr0o6bvLMsXwph/azO+w==}peerDependencies:- '@tiptap/core': ^3.13.0+ '@tiptap/extension-list': ^3.20.1- '@tiptap/[email protected]':- resolution: {integrity: sha512-i7O0ptSibEtTy+2PIPsNKEvhTvMaFJg1W4Oxfnbuxvaigs7cJV9Q0lwDUcc7CPsNw2T1+44wcxg431CzTvdYoA==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-tf8bE8tSaOEWabCzPm71xwiUhyMFKqY9jkP5af3Kr1/F45jzZFIQAYZooHI/+zCHRrgJ99MQHKHe1ZNvODrKHQ==}peerDependencies:- '@tiptap/core': ^3.13.0- '@tiptap/pm': ^3.13.0+ '@tiptap/core': ^3.20.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-WKR4ucALq+lwx0WJZW17CspeTpXorbIOpvKv5mulZica6QxqfMhn8n1IXCkDws/mCoLRx4Drk5d377tIjFNsvQ==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-LzNXuy2jwR/y+ymoUqC72TiGzbOCjioIjsDu0MNYpHuHqTWPK5aV9Mh0nbZcYFy/7fPlV1q0W139EbJeYBZEAQ==}+ peerDependencies:+ '@tiptap/core': ^3.20.0++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-HIsXX942w3nbxEQBlMAAR/aa6qiMBEP7CsSMxaxmTIVAmW35p6yUASw6GdV1u0o3lCZjXq2OSRMTskzIqi5uLg==}+ peerDependencies:+ '@tiptap/core': ^3.20.0+ '@tiptap/pm': ^3.20.0++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-3vUxs8tsVIf/KWKLWjFsTqrjuaTYJY9rawDL5sio9NwlqFWDuWpHEVJcqbQXJUrgQSh12AZoTKyfgiEqkAGI3Q==}+ peerDependencies:+ '@tiptap/core': ^3.20.0+ '@tiptap/pm': ^3.20.0++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-jn+2KnQZn+b+VXr8EFOJKsnjVNaA4diAEr6FOazupMt8W8ro1hfpYtZ25JL87Kao/WbMze55sd8M8BDXLUKu1A==}- '@tiptap/[email protected]':- resolution: {integrity: sha512-VqpqNZ9qtPr3pWK4NsZYxXgLSEiAnzl6oS7tEGmkkvJbcGSC+F7R13Xc9twv/zT5QCLxaHdEbmxHbuAIkrMgJQ==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-jFLNzkmn18zqefJwPje0PPd9VhZ7Oy28YHiSvSc7YpBnQIbuN/HIxZ2lrOsKyEHta0WjRZjfU5X1pGxlbcGwOA==}peerDependencies:- '@tiptap/core': ^3.13.0- '@tiptap/pm': ^3.13.0+ '@tiptap/core': ^3.20.0+ '@tiptap/pm': ^3.20.0'@types/react': ^17.0.0 || ^18.0.0 || ^19.0.0'@types/react-dom': ^17.0.0 || ^18.0.0 || ^19.0.0react: ^17.0.0 || ^18.0.0 || ^19.0.0react-dom: ^17.0.0 || ^18.0.0 || ^19.0.0+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-W4+1re35pDNY/7rpXVg+OKo/Fa4Gfrn08Bq3E3fzlJw6gjE3tYU8dY9x9vC2rK9pd9NOp7Af11qCFDaWpohXkw==}+'@ts-morph/[email protected]':resolution: {integrity: sha512-Wf29UqxWDpc+i61k3oIOzcUfQt79PIT9y/MWfAGlrkjg6lBC1hwDECLXPVJAhWjiGbfBCxZd65F/LIZF3+jeJQ==}@@ -3905,9 +4035,6 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg==}- '@types/[email protected]':- resolution: {integrity: sha512-5dyB8nLC/qogMrlCizZnYWQTA4lnb/v+It+sqNl5YnSRAPMlIqY/X0Xn+gZw8vOL+TgTTr28VEbn3uf8fUtAkw==}-'@types/[email protected]':resolution: {integrity: sha512-lrpDziQipxCEeK5kWxvljWYhUvOiB2A9izZd9B2AFarYAkqZshb4lPbRs7zKEic6eGtH8V/2qJW+dPp9OtF6bw==}@@ -4004,13 +4131,6 @@ packages:resolution: {integrity: sha512-+gDffFXRW6sl/HCwbta7zK4uNqbPjv4YJEAdz7Vu+FLQHe77eZ4bvbJGi4hE0QPeJlMYMA3piXEr1UL3dAwx7Q==}- resolution: {integrity: sha512-YYTXSFulfwytnjAPlw8QHncHJmlvFKtczb8InXaAx9Q0LbfDnfEYDE55omerIJKihhmU61Ft+cAOSzQVaBUmeA==}- engines: {node: ^10 || ^12 || >=14}- hasBin: true- peerDependencies:- postcss: ^8.1.0-resolution: {integrity: sha512-NZKeq9AfyQvEeNlN0zSYAaWrmBffJh3IELMZfRpJVWgrpEbtEpnjvzqBPf+mxoI287JohRDoa+/nsfqqiZmF6g==}engines: {node: '>= 6.0.0'}@@ -4670,9 +4790,6 @@ packages:resolution: {integrity: sha512-0Drusm6MVRXSOJpGbaSVgcQsuB4hEkMpHXaVstcPmhu5LIedxs1xNK/nIxmQIU/RPC0+1/o0AVZfBTkTNJOdUw==}- resolution: {integrity: sha512-eJp3QRe79pjwa+duv+n7+5YsNhRcMl812EcFVwrnRvYKoNPoQb5qxU8DG6Bgwji0akHdp6D4Ln6tYLG58MFSow==}-resolution: {integrity: sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==}@@ -4713,10 +4830,6 @@ packages:resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==}engines: {node: '>=0.12'}- resolution: {integrity: sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==}- engines: {node: '>=0.12'}-resolution: {integrity: sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==}engines: {node: '>=6'}@@ -4784,10 +4897,6 @@ packages:resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==}engines: {node: '>=10'}- resolution: {integrity: sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==}- engines: {node: '>=12'}-resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==}engines: {node: '>=4'}@@ -4906,9 +5015,6 @@ packages:resolution: {integrity: sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==}engines: {node: '>= 0.6'}- resolution: {integrity: sha512-1X1NTtiJphryn/uLQz3whtY6jK3fTqoE3ohKs0tT+Ujr1W59oopxmoEh7Lu5p6vBaPbgoM0bzveAW4Qi5RyWDQ==}-resolution: {integrity: sha512-v81ecyZKYO/DfpTwHivqkxSUBzvceOpoI+wLfgCgoUIKxlFKEXdg0oR9imxwXumT4SFy8vRk9xzJ5l3/Du/55Q==}peerDependencies:@@ -5048,60 +5154,19 @@ packages:resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==}engines: {node: '>= 0.4'}- resolution: {integrity: sha512-naH8sld4Pe2ep03qqULEtvYr7EjrLK2QHY8KJR6RJkTUjPGObe1vnx585uzem2hGra+s1q08DZZpfgDVYRbaXA==}-- resolution: {integrity: sha512-yY1UDz6bC9rDvCWHpx12aIBGRG7krurX0p0Fm6pT547LwDIZZiNr8a+IHDogorAdreULSEzP82Nlv5SZkHZcjA==}-- resolution: {integrity: sha512-N+LqofjR2zuzTjCPzyDUdSshy4Ma6li7p/c3pA78uTwzFgENbgbUrm2ugwsOdcjI1muO+o6Dgzp9p8WHtn/39Q==}-- resolution: {integrity: sha512-CUSRHXyKjzHov8yKsQjGOElXy/3EKpyX56ELnkHH34vDVw1N1XSQ1ZcAvTyAPtGqLTuKP/uxM+aLkSPqF/EtMw==}-- resolution: {integrity: sha512-3kxEVkEKt0zvcZ3hCRYI8rqrgwtlIOFMWkbclACvjlDw8Li9S2hk/d51OI0nr/gIpdMHNepwgOKqZ/sy0Clpyg==}-- resolution: {integrity: sha512-MNilsvEKLFpV604hwfhVStK0usFY/QmM5zX16bo7EjnAEGofr5YyI37kzopBlZJkHD4t887i+q/C8/tr5Q94cA==}-- resolution: {integrity: sha512-0qpnzOBLztXHbHQenVB8uNuxTnm/QBFUOmdOSsEn7GnBtyY07+ENTWVFBAnXd/zEgd9/SUG3lRY7hSIBWRgGpQ==}-- resolution: {integrity: sha512-Val9mnv2IWpLbNPqc/pUem+a7Ipj2aHacCwgNfTiK0vJKl0LF+4Ba4+v1oPHFpf3bLYmreq0/l3Gud9S5OH42g==}-- resolution: {integrity: sha512-L96fPOVpnclQE0xzdWb/D12VT5FabA7SnZOUMtL1DbXmYiHJMXZvFkIZfiMmTCNJHUeO2K9UYNXoVyfz+QHuOw==}-- resolution: {integrity: sha512-wkQCkSYoOGCRKERFWcxMVMOcYE2K1AaNLU8DXS9arxnLOUEWbOXKXiJUNzEpqZ3JOKpnha3jkFrumEjVliDe7A==}-- resolution: {integrity: sha512-6h60VfI3uBQUxHqTyMymMZnEbNl1XmEGtOxxKYL7stY2o601COo62AWAYBQR9lZbYXYSBoxag8UpPRXK+9fqSQ==}-- resolution: {integrity: sha512-OguPdidb+fbHQSU4Q4ZiLKnzWo8Wwsf5bZfbvu7//a9oTYoqD/fWpe96NuHkoS9h0ccGOTe0C4NGXdtS0iObOw==}-resolution: {integrity: sha512-zl6s8LwNyo1P9uw+XJGvZtdFF1GdAkOg8ujOw+4Pyb76874fLps4ueHXDhXWdk6YHQ6OgUtinliG7RsYvCbbBg==}- resolution: {integrity: sha512-FiCRI7NmOvM4y+f5w32jPRzcxDIz+PUqDwEqn1A+1q2cdp3B8Gx7aVrXORdOKjMNDQsD1ogOr896+0jJHW1EFQ==}-- resolution: {integrity: sha512-KK6y/BN8lbaq654j7JgBydev7wuNMcID54lkRav1P0CaE1e47P72AWWPiGKXTJU271ooYzcvTAn/Zt0REnvc7A==}-resolution: {integrity: sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==}- resolution: {integrity: sha512-g7df9rMFX/SPi34tyGCyUBREQoKkapwdY/T04Qn9TDWfHhAYt4/I0gMVirzK5wEzeUqIjEB+LXC/ypb7Aqno5w==}-resolution: {integrity: sha512-IScLbePpkvO846sIwOtOTDjutRMWdXdJmXdMvk6gCBHxFO8d+QKOQedyZSxFTTFYRSmlgSTDtXqqq4pcenBXLQ==}+ resolution: {integrity: sha512-Xwwo44whKBVCYoliBQwaPvtd/2tYFkRQtXDWj1nackaV2JPXx3L0+Jvd8/qCJ2p+ML0/XVkJ2q+Mr+UVdpJK5w==}+ engines: {node: '>=12.0.0'}+resolution: {integrity: sha512-t3u4v8YCltExDl4d9cLqg/mcrYFSs9Gjb5puF1CePPrvv1JQOo1Kc50HAmGt47CWHIoc/W8Q9LY3t3yqU0dxFw==}peerDependencies:@@ -5132,12 +5197,6 @@ packages:resolution: {integrity: sha512-ol6UPyBWqsrO6EJySPz2O7ZSr856WDrEzM5zMqp+FJJLGMW35cLYmmZnl0vztAZxRUoNZJFTCohfjuIJ8I4QBQ==}- resolution: {integrity: sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==}-- resolution: {integrity: sha512-q+310vW8zmymYHALr1da4HyXUQ0zgiIwIicEfotYPWGN0OJVEN/58IJ3A4GBYcEq3LGAZqKb+ugvP0GNB9CEAA==}-resolution: {integrity: sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==}@@ -5320,9 +5379,6 @@ packages:resolution: {integrity: sha512-6B3tLtFqtQS4ekarvLVMZ+X+VlvQekbe4taUkf/rhVO3d/h0M2rfARm/pXLcPEsjjMsFgrFgSrhQIxcSVrBz8w==}engines: {node: '>=18'}- resolution: {integrity: sha512-PIeMbHqMt4DnUP3MA/Flc0HElYjMXArsw1qwJZcm9sqR8mq3l8NYizFMty0pWwE/tzIGH3EKK5+jes5mAr85yw==}-resolution: {integrity: sha512-zptv57P3GpL+O0I7VdMJNBZCu+BPHVQUk55Ft8/QCJjTVxrnJHuVuX/0Bl2A6/+2oyR/ZMEuFKwmzqqZ/U5nPQ==}engines: {node: 20 || >=22}@@ -5386,11 +5442,6 @@ packages:resolution: {integrity: sha512-y+SqErxb8h7nE/fiEX07jsbuhrpO9lL8eca7/Y1nuWV2moNlXhyd59iDGcRf6moVyDMbmTNzL40SUyrFU/yDpg==}- resolution: {integrity: sha512-noaW4yNp6hCjOgDnWWxW0vGXE3kZQI5Kqiwz+jIWXavI9J9WyfJ9zjsbQlQlgjIbHBrvlA/x3TSIXBUJj+0L6g==}- engines: {node: '>=16'}- hasBin: true-resolution: {integrity: sha512-BH9sEdOCahSgmkVhBLeU7Hc9DWeZ1Eb6wNS6Da8igvUwAe0sqROHddIlvU06q3WyXVEOYDZ6ykBZQnjTbmo4+A==}engines: {node: '>= 12.0.0'}@@ -5592,6 +5643,9 @@ packages:resolution: {integrity: sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==}+ resolution: {integrity: sha512-0JNhgFoPvP6U6lE/UdVsSq99tn6DhjjpAj5MxG49ewd2mOBVtwWYIT8ClyABhq198aXXODMU6Ox8DrGy/CpTZQ==}+resolution: {integrity: sha512-B5Y16Jr9LB9dHVkh6ZevG+vAbOsNOYCX+sXvFWFu7B3Iz5mijW3zdbMyhsh8ANd2mSWBYdJgnqi+mL7/LrOPYg==}engines: {node: 20 || >=22}@@ -5603,11 +5657,6 @@ packages:resolution: {integrity: sha512-DqC6n3QQ77zdFpCMASA1a3Jlb64Hv2N2DciFGkO/4L9+q/IpIAuRlKOvCXabtRW6cQf8usbmM6BE/TOPysCdIA==}engines: {bun: '>=1.0.0', deno: '>=1.30.0', node: '>=8.0.0'}- resolution: {integrity: sha512-Tm1txJ2OkymCGkvwoHt33Y2JpN5xucVq1slHcgE6Lk0WjDfjgKWor5CdVER8U6DvcfMwh4M8XxmpTiyzfmfDYQ==}- peerDependencies:- react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0-resolution: {integrity: sha512-8dXPB2GI4dI8jV4MgUDGBeLdGk8ekfqVZ0BdLcrRzocGgG75ltNEmWS+gE7uokKF/0oSUuczNDT+g9hFJ23FkA==}peerDependencies:@@ -5625,42 +5674,23 @@ packages:resolution: {integrity: sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==}hasBin: true- resolution: {integrity: sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw==}-resolution: {integrity: sha512-8dD6FusOQSrpv9Z1rdNMdlSgQOIP880DHqnohobOmYLElGEqAL/JvxvuxZO16r4HtjTlfPRDC1hbvxC9dPN2nA==}engines: {node: '>= 18'}hasBin: true+ resolution: {integrity: sha512-NOmVMM+KAokHMvjWmC5N/ZOvgmSWuqJB8FoYI019j4ogb/PeRMKoKIjReZ2w3376kkA8dSJIP8uD993Kxc0iRQ==}+ engines: {node: '>= 20'}+ hasBin: true+resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==}engines: {node: '>= 0.4'}- resolution: {integrity: sha512-Tmd1Vg/m3Xz43afeNxDIhWRtFZgM2VLyaf4vSTYwudTyeuTneoL3qtWMA5jeLyz/O1vDJmmV4QuScFCA2tBPwg==}-resolution: {integrity: sha512-uZhTV/8NBuw0WHkPTrCqDOl0zVe1BIng5ZtHoDk49ME1qqcjYmmLmOf0gELgcRMxN4w2iuIeVso5/6QymSrgmA==}- resolution: {integrity: sha512-5HVP2MKaP6L+G6YaxPNjuL0BPrq9orG3TsrZ9YXbA3vDw/ACI4MEsnoDpn6ZNm7GnZgtAcONJyPhOP8tNJQavQ==}-- resolution: {integrity: sha512-sqpDWlsHn7Ac9GNZQMeUzPQSMzR6Wv0WKRNvQRg0KqHh02fpTz69Qc1QSseNX29bhz1ROIyNyxExfawVKTm1GQ==}-- resolution: {integrity: sha512-mKKb915TF+OC5ptj5bJ7WFRPdYtuHv0yTRxK2tJvi+BDqbkiG7h7u/9SI89nRAYcmap2xHQL9D+QG/6wSrTtXg==}-- resolution: {integrity: sha512-78UEvebzz/rJIxLvE7ZtDd/vIQ0RHv+3Mh5DR96p7cS7HsBhYIICDBCu8csTNWNO6tBWfqXPWekRuj2FNOGOZg==}-- resolution: {integrity: sha512-IrtvNvjxC1o06taBAVJznEnkiHxLFTzgonUdy8hzFVeDun0uTjxxrRGVaNFqkU1wJR3RBPEfsxmU6jDWPofrTQ==}-- resolution: {integrity: sha512-0ulfdQOM3ysHhCJ1p06l0b0VKlhU0wuQs3thxZQagjcjPrlFRqY215uZGHHJan9GEAXd9MbfPjFJz+qMkVR6zQ==}-resolution: {integrity: sha512-J6f+9hUp+ldTZqKRSg7Vw5V6MqjATc+3E4gf3CFNcuZNWD8XdyI6zQ8GqH7f8169MM6P7hMBRDVGnn7oHB9kXQ==}@@ -5710,27 +5740,6 @@ packages:resolution: {integrity: sha512-RDBrHEMSxVFLg6xvnXmb1Ayr2WzLAWjeSATAoxwKYJV94TeNavgoIdA0a9ytzDSVzBy2YKFK+emCPOEibLeCrg==}- resolution: {integrity: sha512-oOg7knzhicgQ3t4QCjCWgTmfNhvQbDDnJeVu9v81r7NltNCVmhPy1fJRX27pISafdjL+SVc4d3l48Gb6pbRypw==}-- resolution: {integrity: sha512-/yPhxI1ntnDNsiHtzLKYnE3vf9JZ6cAisqVDauhp4CEHxlb4uoOTxOCJ+9s51bIB8U1N1FJ1RXOKTIlD5B/gqw==}-- resolution: {integrity: sha512-ADVjpOOkjz1hhkZLlBiYA9cR2Anf8F4HqZUO6e5eDcPQd0Txw5fxLzzxnEkSkfnD0wziSGiv7sYhk/ktvbf1uw==}-- resolution: {integrity: sha512-t2OU/dXXioARrC6yWfJ4hqB7rct14e8f7m0cbI5hUmDyyIlwv5vEtooptH8INkbLzOatzKuVbQmAYcbWoyz6Dg==}-- resolution: {integrity: sha512-xHlTOmuCSotIA8TW1mDIM6X2O1SiX5P9IuDtqGonFhEK0qgRI4yeC6vMxEV2dgyr2TiD+2PQ10o+cOhdVAcwfg==}-- resolution: {integrity: sha512-qIBZhqxqI6fjLDYFTBIa4eivDMnP+OZqsNwmQ3xNLE4Cxwc+zfQEfbs6tzAo2Hjq+bh6q5F+Z8/cksrLFYWQQw==}-- resolution: {integrity: sha512-vsKArQsicm7t0z2GugkCKtZehqUm31oeGBV/KVSorWSy8ZlNAv7ytjFhvaryUiCUJYqs+NoE6AFhpQvBTM6Q4w==}-resolution: {integrity: sha512-Xe6rDdJlkmbFRExpTOmRj9N3MaWmbAgdpSrBQvCFqhezUn4AHqJHbaEnfbVYYiexVSs//tqOdY/DxhjdCiJnIA==}@@ -6080,9 +6089,6 @@ packages:resolution: {integrity: sha512-TXfryirbmq34y8QBwgqCVLi+8oA3oWx2eAnSn62ITyEhEYaWRlVZ2DvMM9eZbMs/RfxPu/PK/aBLyGj4IrqMHw==}engines: {node: '>=18'}- resolution: {integrity: sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==}-resolution: {integrity: sha512-e6qHKe3a9HWr0oMRVDTRhKce+bRO8VGQR3NyVwcjwrbhMmFCX9KszEV35+rn4AdilFAq9VPxP/Fe1wC9Qjd2lw==}@@ -6180,9 +6186,6 @@ packages:resolution: {integrity: sha512-orRsuYpJVw8LdAwqqLykBj9ecS5/cRHlI5+nvTo8LcCKmzDmqVORXtOIYEEQuL9D4BxtA1lm5isAqzQZCoQ6Eg==}engines: {node: '>=4'}- resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==}-resolution: {integrity: sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==}engines: {node: ^10 || ^12 || >=14}@@ -6266,41 +6269,6 @@ packages:resolution: {integrity: sha512-z00qvurSdCEWUIulij/isHaqu4uLS8r/Fi61IbjdIPJEonQgggbJsLnstW7Lgdk4zQ68/yr6B6bf7sJXowIgdQ==}- resolution: {integrity: sha512-GIC2VCTUnukNdsEGLQWWOVpYPl/7/KrVp4xs7XMB48/4rhUrHK8hp8TEog4Irmv+2kmjx24RLnaisGOCP6U8jw==}- peerDependencies:- '@shikijs/types': ^1.29.2 || ^2.0.0 || ^3.0.0- '@types/hast': ^3.0.0- highlight.js: ^11.9.0- lowlight: ^3.1.0- prosemirror-model: ^1.19.3- prosemirror-state: ^1.4.3- prosemirror-transform: ^1.8.0- prosemirror-view: ^1.32.4- refractor: ^5.0.0- sugar-high: ^0.6.1 || ^0.7.0 || ^0.8.0 || ^0.9.0- peerDependenciesMeta:- '@shikijs/types':- optional: true- '@types/hast':- optional: true- highlight.js:- optional: true- lowlight:- optional: true- prosemirror-model:- optional: true- prosemirror-state:- optional: true- prosemirror-transform:- optional: true- prosemirror-view:- optional: true- refractor:- optional: true- sugar-high:- optional: true-resolution: {integrity: sha512-zlzTiH01eKA55UAf1MEjtssJeHnGxO0j4K4Dpx+gnmX9n+SHNlDqI2oO1Kv1iPN5B1dm5fsljCfqKF9nFL6HRg==}@@ -6429,11 +6397,6 @@ packages:peerDependencies:react: ^16.8.0 || ^17 || ^18 || ^19- resolution: {integrity: sha512-MEFcXdkP3dLo8uumGI5xN3lDFNsRtrjbOEKDLD7yv76v4wpnEq2Lt2qeHaQOr34I/wPN3s3+N08WkQ+CW37Xiw==}- peerDependencies:- react: '*'-resolution: {integrity: sha512-qKxVopLT/TyA6BX3Ue5NwabOsAzm0Q7kAPwq6L+wWDwisYs7R8vZ0nRXqq6rkueboxpkjvLGU9fWifiX/ZZFxQ==}peerDependencies:@@ -6500,33 +6463,12 @@ packages:resolution: {integrity: sha512-tlbJqcMHnPKI9zSrystikWKwHkBqu2a/Sgw01h3zFjvYrMxEDYHzzoMZnUrbIfpTFEsoRnnviOXNCzFiSc54Qw==}- resolution: {integrity: sha512-zvmVru9uB0josBVpr946OR8ui7nJEdzZobwLOOqHb/OOD88W0Vk2SqLwoVOj0fM6IPCCO6TaV9CvQvJMWwukFQ==}-- resolution: {integrity: sha512-Zk0pyQ06A3Lyxhe9vGtOtzz3Z0+qZ5+7icZ/PL/2x1SHPbKao5oB/g/rlc6BCTajqBb33JcOe71Ye1oFsuYbnw==}-- resolution: {integrity: sha512-ksCzCD0Fgfh7trPDxr2rSylbwq9iYDkSn8TCDmEJ49ljEUBxDVCzCHv7QNzZOfODanX4+bWQ4WZqLCRWYLfhag==}-- resolution: {integrity: sha512-EmDndlb5NVwXGfUa4c9GPK+lXeItTilLhE6ADSaQuHr4JUlKw9MidzGzx4HpqZrNCt6vnHmEifXQiiA+CEnjYQ==}-- resolution: {integrity: sha512-k9ecfXHmIPuFVI61B9DeLPN0qFHfawM6RsuX48hoqlaKSF61RskNjSm1lI8PhBEM0MRdLxVVm4WmTqJQccH9mA==}-- resolution: {integrity: sha512-1quofZ2RQ9EWdeN34S79+KExV1764+wCUGop5CPL1WGdD0ocPpu91lzPGbwWMECpEpd42kJGQwzRfyov9j4yNg==}-resolution: {integrity: sha512-FCxlKLNGknS5ba/1lmpYijMUzX2esxW5xQqjWxw2eHFfS2MSdaHVINFmhjo+qN1WhZhNimq0dZATN9pH0IDrpA==}resolution: {integrity: sha512-Dh7l57ianaEoIpzbp0PC9UKAdCSVklD8E5Rpw7ETfbTl3FqcOOgq5q2LVDhgGCkaBv7p24JXikPdvhhmHvKMsw==}- resolution: {integrity: sha512-1OSmLd3awB/t8qdoEOMazZkNsfVTeY4fTsgzcQFdXNq8ToTN4ZGwrMnlda4K6smTFKD+GRV6O48i6Z4iKgPPpw==}-resolution: {integrity: sha512-ygHswjlc/opg2VrtiYvUOPLjxjtdKvjGz1/plDhkG66hjNjFr1xmfrs2ClNFo/E6TyUFiwYNh53bKV26oBoMGQ==}@@ -6829,9 +6771,6 @@ packages:resolution: {integrity: sha512-9vczT78R9O7HIrydvGJNz4/19ogjSQSFlYpwleAxcxIT1m9pvAIGQr/+f6qG9sB5gq3JLB6IRKmw9RGJUrLeXQ==}- resolution: {integrity: sha512-P+Vu1qXfzediirmHOC3xKGAYeZtPcV9g76X+xg2FD4tYgR71ewMA35Y3sCz3zhiN/dwefRpJX0yBcgwi1fXNQA==}-resolution: {integrity: sha512-uSaO4gnW+b3Y2aWoWfFpX62vn2sR3skfhbjsEnaBI81WD1wBLlHZe5sWf0AqjksNdYTbGBEd0UasQMT3SNV15g==}@@ -6883,6 +6822,9 @@ packages:resolution: {integrity: sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==}engines: {node: '>=12.0.0'}+ resolution: {integrity: sha512-E1d3oP2emgJ9dRQZdf3Kkn0qJgI6ZLpyS5z6ZkY1DF3kaQaBsGZsndEpHwx+eC+tYM41HaSNvNtLx8tU57FzTQ==}+resolution: {integrity: sha512-0g9vrtDQLrNIiCj22HSe9d4mLVG3g5ph5DZ8zCKBr4OtrspmNB6ss7hVyzArAeE88ceZocIEGkyW1Ime7fxPtQ==}@@ -6913,9 +6855,6 @@ packages:resolution: {integrity: sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==}- resolution: {integrity: sha512-5UR5Biq4VlVOtzqkm2AZlgvSlDJtME46uV0br0gENbwN4l5+mMKT4b9gJKqWtuL2zAIqajGJGuvbCbcAJUZqBg==}-resolution: {integrity: sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==}@@ -6968,6 +6907,12 @@ packages:resolution: {integrity: sha512-5JIA5aYBAJSAhrhbyag1ZuMSgUZnHtI+Sq3H8D3an4fL8PeF+L1yYvbEJg47akP1PFfATMf5ehkqFnxfkmuwZQ==}hasBin: true+ resolution: {integrity: sha512-vwz9tfvF7XN/jE0dGoBei3FXWuvll78ohzCZQuOb+ZjWrs3a0XhQVomJEb2Qh4VHTPNRO4GPZh0V7VRbiWwkRg==}++ resolution: {integrity: sha512-1F7db8BiExOKxjSMU2b7if62D/XOyQyZbPKq/nUwopfgnHlqXHqQ0lvfUTeUIr1lZJzOPFn43dODyMSIfvWRKQ==}+resolution: {integrity: sha512-7bziOlRqH0hJx80h/3mbicLW7o8qLsH5+RaLR2t+OHM3D0JlWGODQKQ4cxbK7WlvmUxpcj6Kgu6EKqjrGFe3QQ==}@@ -7013,9 +6958,6 @@ packages:resolution: {integrity: sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==}- resolution: {integrity: sha512-amQa0Ep2m6hE2g72AugUItjbuM8X8cGQnFoHk0pGfrFeT9GZhzN5SW8nRsiGKK7Aif4CrACPENkA6P/Lw6fHGQ==}-resolution: {integrity: sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==}@@ -7086,10 +7028,6 @@ packages:resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}- resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==}- hasBin: true-resolution: {integrity: sha512-mm1rxUsmOxzrwnX5arGS+U4T25RdvpPjPN4yR0u9pUBov9+zGVtO84tif1eY4r6zWxVxu3KzIyknJy3rxfRZZg==}peerDependencies:@@ -7106,9 +7044,6 @@ packages:resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==}engines: {node: '>= 0.8'}- resolution: {integrity: sha512-5yXvWDEgqeiYiBe1lbxYF7UMAIm/IcopxMHrMQDq3nvKcjPKIhZklUKL+AE7J7uApI4kwe2snsK+eI6UTj9EHg==}-resolution: {integrity: sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==}@@ -7158,9 +7093,6 @@ packages:resolution: {integrity: sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ==}- resolution: {integrity: sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ==}-resolution: {integrity: sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==}engines: {node: '>= 8'}@@ -7224,22 +7156,6 @@ packages:resolution: {integrity: sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==}engines: {node: '>=0.4'}- resolution: {integrity: sha512-NpM99WSdD4Fx4if5xOMDpPtU3oAmTSjlzh5U4353ABbRHl1HtAFUx6HlebLZfyFxXN9jzKMDkVbcRjqOZVkYQg==}- engines: {node: '>=16.0.0', npm: '>=8.0.0'}- peerDependencies:- prosemirror-model: ^1.7.1- prosemirror-state: ^1.2.3- prosemirror-view: ^1.9.10- y-protocols: ^1.0.1- yjs: ^13.5.38-- resolution: {integrity: sha512-vHRF2L6iT3rwj1jub/K5tYcTT/mEYDUppgNPXwp8fmLpui9f7Yeq3OEtTLVF012j39QnV+KEQpNqoN7CWU7Y9Q==}- engines: {node: '>=16.0.0', npm: '>=8.0.0'}- peerDependencies:- yjs: ^13.0.0-resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==}engines: {node: '>=10'}@@ -7260,10 +7176,6 @@ packages:resolution: {integrity: sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==}engines: {node: '>=12'}- resolution: {integrity: sha512-OIDwaflOaq4wC6YlPBy2L6ceKeKuF7DeTxx+jPzv1FHn9tCZ0ZwSRnUBxD05E3yed46fv/FWJbvR+Ud7x0L7zw==}- engines: {node: '>=16.0.0', npm: '>=8.0.0'}-resolution: {integrity: sha512-4LCcse/U2MHZ63HAJVE+v71o7yOdIe4cZ70Wpf8D/IyjDKYQLV5GD46B+hSTjJsvV5PztjvHoU580EftxjDZFQ==}engines: {node: '>=12.20'}@@ -7679,121 +7591,6 @@ snapshots:'@biomejs/[email protected]':optional: true- '@blocknote/[email protected](@types/[email protected])':- dependencies:- '@emoji-mart/data': 1.2.1- '@handlewithcare/prosemirror-inputrules': 0.1.4([email protected])([email protected])([email protected])- '@shikijs/types': 3.21.0- '@tanstack/store': 0.7.7- '@tiptap/core': 3.13.0(@tiptap/[email protected])- '@tiptap/extension-bold': 3.13.0(@tiptap/[email protected](@tiptap/[email protected]))- '@tiptap/extension-code': 3.13.0(@tiptap/[email protected](@tiptap/[email protected]))- '@tiptap/extension-horizontal-rule': 3.13.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])- '@tiptap/extension-italic': 3.13.0(@tiptap/[email protected](@tiptap/[email protected]))- '@tiptap/extension-link': 3.13.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])- '@tiptap/extension-paragraph': 3.13.0(@tiptap/[email protected](@tiptap/[email protected]))- '@tiptap/extension-strike': 3.13.0(@tiptap/[email protected](@tiptap/[email protected]))- '@tiptap/extension-text': 3.13.0(@tiptap/[email protected](@tiptap/[email protected]))- '@tiptap/extension-underline': 3.13.0(@tiptap/[email protected](@tiptap/[email protected]))- '@tiptap/extensions': 3.13.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])- '@tiptap/pm': 3.13.0- emoji-mart: 5.6.0- fast-deep-equal: 3.1.3- hast-util-from-dom: 5.0.1- prosemirror-dropcursor: 1.8.2- prosemirror-highlight: 0.13.0(@shikijs/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])- prosemirror-model: 1.25.4- prosemirror-state: 1.4.4- prosemirror-tables: 1.8.3- prosemirror-transform: 1.10.5- prosemirror-view: 1.41.4- rehype-format: 5.0.1- rehype-parse: 9.0.1- rehype-remark: 10.0.1- rehype-stringify: 10.0.1- remark-gfm: 4.0.1- remark-parse: 11.0.0- remark-rehype: 11.1.2- remark-stringify: 11.0.0- unified: 11.0.5- unist-util-visit: 5.0.0- uuid: 8.3.2- y-prosemirror: 1.3.7([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])- y-protocols: 1.0.6([email protected])- yjs: 13.6.27- transitivePeerDependencies:- - '@types/hast'- - highlight.js- - lowlight- - refractor- - sugar-high- - supports-color-- '@blocknote/[email protected](@floating-ui/[email protected])(@types/[email protected])(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':- dependencies:- '@blocknote/core': 0.47.0(@types/[email protected])- '@emoji-mart/data': 1.2.1- '@floating-ui/utils': 0.2.10- '@tiptap/core': 3.13.0(@tiptap/[email protected])- '@tiptap/pm': 3.13.0- '@tiptap/react': 3.13.0(@floating-ui/[email protected])(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@types/use-sync-external-store': 1.5.0- emoji-mart: 5.6.0- fast-deep-equal: 3.1.3- lodash.merge: 4.6.2- react: 19.2.4- react-dom: 19.2.4([email protected])- react-icons: 5.5.0([email protected])- use-sync-external-store: 1.6.0([email protected])- transitivePeerDependencies:- - '@floating-ui/dom'- - '@hocuspocus/provider'- - '@types/hast'- - '@types/react'- - '@types/react-dom'- - highlight.js- - lowlight- - refractor- - sugar-high- - supports-color-- '@blocknote/[email protected](@floating-ui/[email protected])(@types/[email protected])(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])':- dependencies:- '@blocknote/core': 0.47.0(@types/[email protected])- '@blocknote/react': 0.47.0(@floating-ui/[email protected])(@types/[email protected])(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-avatar': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-dropdown-menu': 2.1.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-label': 2.1.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-popover': 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-select': 2.2.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-slot': 1.2.4(@types/[email protected])([email protected])- '@radix-ui/react-tabs': 1.1.13(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-toggle': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-tooltip': 1.2.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- autoprefixer: 10.4.23([email protected])- class-variance-authority: 0.7.1- clsx: 2.1.1- lucide-react: 0.525.0([email protected])- react: 19.2.4- react-dom: 19.2.4([email protected])- react-hook-form: 7.71.2([email protected])- tailwind-merge: 2.6.0- tailwindcss: 4.2.1- transitivePeerDependencies:- - '@floating-ui/dom'- - '@hocuspocus/provider'- - '@types/hast'- - '@types/react'- - '@types/react-dom'- - highlight.js- - lowlight- - postcss- - refractor- - sugar-high- - supports-color-'@chevrotain/[email protected]':dependencies:'@chevrotain/gast': 10.5.0@@ -7993,8 +7790,6 @@ snapshots:tslib: 2.8.1optional: true- '@emoji-mart/[email protected]': {}-'@esbuild-kit/[email protected]':dependencies:esbuild: 0.18.20@@ -8404,24 +8199,8 @@ snapshots:react: 19.2.4react-dom: 19.2.4([email protected])- dependencies:- '@floating-ui/utils': 0.2.10- react: 19.2.4- react-dom: 19.2.4([email protected])- tabbable: 6.4.0-'@floating-ui/[email protected]': {}- dependencies:- prosemirror-history: 1.5.0- prosemirror-model: 1.25.4- prosemirror-state: 1.4.4- prosemirror-transform: 1.10.5- prosemirror-view: 1.41.4-'@hono/[email protected]([email protected])':dependencies:hono: 4.12.5@@ -8600,6 +8379,8 @@ snapshots:'@jridgewell/resolve-uri': 3.1.2'@jridgewell/sourcemap-codec': 1.5.5+ '@mixmark-io/[email protected]': {}+'@modelcontextprotocol/[email protected]([email protected])':dependencies:'@hono/node-server': 1.19.10([email protected])@@ -8893,6 +8674,8 @@ snapshots:bignumber.js: 9.3.1error-causes: 3.0.2+ '@popperjs/[email protected]': {}+'@prisma/[email protected]':optional: true@@ -9025,6 +8808,15 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-visually-hidden': 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.4+ react-dom: 19.2.4([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.3@@ -9114,6 +8906,15 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.4+ react-dom: 19.2.4([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])@@ -9127,10 +8928,10 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/react-context': 1.1.3(@types/[email protected])([email protected])- '@radix-ui/react-primitive': 2.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])'@radix-ui/react-use-is-hydrated': 0.1.0(@types/[email protected])([email protected])'@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])@@ -9140,11 +8941,24 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/primitive': 1.1.3- '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])- '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-is-hydrated': 0.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.4+ react-dom: 19.2.4([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])'@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])@@ -9156,6 +8970,22 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.4+ react-dom: 19.2.4([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.3@@ -9430,6 +9260,20 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-label': 2.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.4+ react-dom: 19.2.4([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.3@@ -9487,6 +9331,15 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.4+ react-dom: 19.2.4([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/react-primitive': 2.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])@@ -9606,6 +9459,28 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-visually-hidden': 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.4+ react-dom: 19.2.4([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/number': 1.1.1@@ -9626,6 +9501,26 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/number': 1.1.1+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-effect-event': 0.0.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-is-hydrated': 0.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.4+ react-dom: 19.2.4([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.3@@ -9642,6 +9537,22 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-effect-event': 0.0.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-is-hydrated': 0.1.0(@types/[email protected])([email protected])+ react: 19.2.4+ react-dom: 19.2.4([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.3@@ -9801,6 +9712,16 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.4+ react-dom: 19.2.4([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/react-context': 1.1.3(@types/[email protected])([email protected])@@ -9829,6 +9750,24 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.4+ react-dom: 19.2.4([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.3@@ -9880,6 +9819,23 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/number': 1.1.1+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.4+ react-dom: 19.2.4([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/number': 1.1.1@@ -9947,6 +9903,15 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.4+ react-dom: 19.2.4([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/react-primitive': 2.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])@@ -9975,6 +9940,25 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/number': 1.1.1+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.4+ react-dom: 19.2.4([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+dependencies:'@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])@@ -10078,6 +10062,26 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-visually-hidden': 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.4+ react-dom: 19.2.4([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.3@@ -10093,6 +10097,21 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-toggle': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.2.4+ react-dom: 19.2.4([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.3@@ -10130,6 +10149,21 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-separator': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-toggle-group': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.4+ react-dom: 19.2.4([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.3@@ -10527,13 +10561,6 @@ snapshots:domhandler: 5.0.3selderee: 0.11.0- '@shikijs/[email protected]':- dependencies:- '@shikijs/vscode-textmate': 10.0.2- '@types/hast': 3.0.4-- '@shikijs/[email protected]': {}-'@sindresorhus/[email protected]': {}'@socket.io/[email protected]': {}@@ -10754,13 +10781,6 @@ snapshots:tiny-invariant: 1.3.3tiny-warning: 1.0.3- dependencies:- '@tanstack/store': 0.7.7- react: 19.2.4- react-dom: 19.2.4([email protected])- use-sync-external-store: 1.6.0([email protected])-dependencies:'@tanstack/store': 0.9.1@@ -10848,75 +10868,166 @@ snapshots:transitivePeerDependencies:- supports-color- '@tanstack/[email protected]': {}-'@tanstack/[email protected]': {}'@tanstack/[email protected]': {}- '@tiptap/[email protected](@tiptap/[email protected])':+ '@tiptap/[email protected](@tiptap/[email protected])':dependencies:- '@tiptap/pm': 3.13.0+ '@tiptap/pm': 3.20.0dependencies:- '@tiptap/core': 3.13.0(@tiptap/[email protected])+ '@tiptap/core': 3.20.0(@tiptap/[email protected])- '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':+ dependencies:+ '@tiptap/core': 3.20.0(@tiptap/[email protected])++ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':dependencies:'@floating-ui/dom': 1.7.4- '@tiptap/core': 3.13.0(@tiptap/[email protected])- '@tiptap/pm': 3.13.0+ '@tiptap/core': 3.20.0(@tiptap/[email protected])+ '@tiptap/pm': 3.20.0optional: true+ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':+ dependencies:+ '@tiptap/extension-list': 3.20.1(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])++ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))(@tiptap/[email protected])([email protected])([email protected])':+ dependencies:+ '@tiptap/core': 3.20.0(@tiptap/[email protected])+ '@tiptap/extension-code-block': 3.20.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+ '@tiptap/pm': 3.20.0+ highlight.js: 11.11.1+ lowlight: 3.3.0++ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':+ dependencies:+ '@tiptap/core': 3.20.0(@tiptap/[email protected])+ '@tiptap/pm': 3.20.0++ dependencies:+ '@tiptap/core': 3.20.0(@tiptap/[email protected])+dependencies:- '@tiptap/core': 3.13.0(@tiptap/[email protected])+ '@tiptap/core': 3.20.0(@tiptap/[email protected])- '@tiptap/[email protected](@floating-ui/[email protected])(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':+ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':+ dependencies:+ '@tiptap/extensions': 3.20.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])++ '@tiptap/[email protected](@floating-ui/[email protected])(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':dependencies:'@floating-ui/dom': 1.7.4- '@tiptap/core': 3.13.0(@tiptap/[email protected])- '@tiptap/pm': 3.13.0+ '@tiptap/core': 3.20.0(@tiptap/[email protected])+ '@tiptap/pm': 3.20.0optional: true- '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':+ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':+ dependencies:+ '@tiptap/extensions': 3.20.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])++ dependencies:+ '@tiptap/core': 3.20.0(@tiptap/[email protected])++ dependencies:+ '@tiptap/core': 3.20.0(@tiptap/[email protected])++ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':dependencies:- '@tiptap/core': 3.13.0(@tiptap/[email protected])- '@tiptap/pm': 3.13.0+ '@tiptap/core': 3.20.0(@tiptap/[email protected])+ '@tiptap/pm': 3.20.0dependencies:- '@tiptap/core': 3.13.0(@tiptap/[email protected])+ '@tiptap/core': 3.20.0(@tiptap/[email protected])- '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':+ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':dependencies:- '@tiptap/core': 3.13.0(@tiptap/[email protected])- '@tiptap/pm': 3.13.0+ '@tiptap/core': 3.20.0(@tiptap/[email protected])+ '@tiptap/pm': 3.20.0linkifyjs: 4.3.2+ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':+ dependencies:+ '@tiptap/extension-list': 3.20.1(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])++ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':dependencies:- '@tiptap/core': 3.13.0(@tiptap/[email protected])+ '@tiptap/extension-list': 3.20.1(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':dependencies:- '@tiptap/core': 3.13.0(@tiptap/[email protected])+ '@tiptap/core': 3.20.0(@tiptap/[email protected])+ '@tiptap/pm': 3.20.0+ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':dependencies:- '@tiptap/core': 3.13.0(@tiptap/[email protected])+ '@tiptap/extension-list': 3.20.1(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])dependencies:- '@tiptap/core': 3.13.0(@tiptap/[email protected])+ '@tiptap/core': 3.20.0(@tiptap/[email protected])- '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':+ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':dependencies:- '@tiptap/core': 3.13.0(@tiptap/[email protected])- '@tiptap/pm': 3.13.0+ '@tiptap/extensions': 3.20.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])- '@tiptap/[email protected]':+ dependencies:+ '@tiptap/core': 3.20.0(@tiptap/[email protected])++ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':+ dependencies:+ '@tiptap/extension-table': 3.20.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])++ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':+ dependencies:+ '@tiptap/extension-table': 3.20.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])++ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':+ dependencies:+ '@tiptap/extension-table': 3.20.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])++ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':+ dependencies:+ '@tiptap/core': 3.20.0(@tiptap/[email protected])+ '@tiptap/pm': 3.20.0++ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':+ dependencies:+ '@tiptap/extension-list': 3.20.1(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])++ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':+ dependencies:+ '@tiptap/extension-list': 3.20.1(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])++ dependencies:+ '@tiptap/core': 3.20.0(@tiptap/[email protected])++ dependencies:+ '@tiptap/core': 3.20.0(@tiptap/[email protected])++ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':+ dependencies:+ '@tiptap/core': 3.20.0(@tiptap/[email protected])+ '@tiptap/pm': 3.20.0++ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':+ dependencies:+ '@tiptap/core': 3.20.0(@tiptap/[email protected])+ '@tiptap/pm': 3.20.0+ marked: 17.0.4++ '@tiptap/[email protected]':dependencies:prosemirror-changeset: 2.3.1prosemirror-collab: 1.3.1@@ -10937,10 +11048,10 @@ snapshots:prosemirror-transform: 1.10.5prosemirror-view: 1.41.4- '@tiptap/[email protected](@floating-ui/[email protected])(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@tiptap/[email protected](@floating-ui/[email protected])(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@tiptap/core': 3.13.0(@tiptap/[email protected])- '@tiptap/pm': 3.13.0+ '@tiptap/core': 3.20.0(@tiptap/[email protected])+ '@tiptap/pm': 3.20.0'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])'@types/use-sync-external-store': 0.0.6@@ -10949,11 +11060,38 @@ snapshots:react-dom: 19.2.4([email protected])use-sync-external-store: 1.6.0([email protected])optionalDependencies:- '@tiptap/extension-bubble-menu': 3.13.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])- '@tiptap/extension-floating-menu': 3.13.0(@floating-ui/[email protected])(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+ '@tiptap/extension-bubble-menu': 3.20.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+ '@tiptap/extension-floating-menu': 3.20.0(@floating-ui/[email protected])(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])transitivePeerDependencies:- '@floating-ui/dom'+ '@tiptap/[email protected]':+ dependencies:+ '@tiptap/core': 3.20.0(@tiptap/[email protected])+ '@tiptap/extension-blockquote': 3.20.0(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-bold': 3.20.0(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-bullet-list': 3.20.0(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))+ '@tiptap/extension-code': 3.20.0(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-code-block': 3.20.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+ '@tiptap/extension-document': 3.20.0(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-dropcursor': 3.20.0(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))+ '@tiptap/extension-gapcursor': 3.20.0(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))+ '@tiptap/extension-hard-break': 3.20.0(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-heading': 3.20.0(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-horizontal-rule': 3.20.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+ '@tiptap/extension-italic': 3.20.0(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-link': 3.20.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+ '@tiptap/extension-list': 3.20.1(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+ '@tiptap/extension-list-item': 3.20.0(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))+ '@tiptap/extension-list-keymap': 3.20.0(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))+ '@tiptap/extension-ordered-list': 3.20.0(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))+ '@tiptap/extension-paragraph': 3.20.0(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-strike': 3.20.0(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-text': 3.20.0(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-underline': 3.20.0(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extensions': 3.20.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+ '@tiptap/pm': 3.20.0+'@ts-morph/[email protected]':dependencies:fast-glob: 3.3.3@@ -11062,8 +11200,6 @@ snapshots:'@types/[email protected]': {}- '@types/[email protected]': {}-'@types/[email protected]': {}'@types/[email protected]':@@ -11156,15 +11292,6 @@ snapshots:stubborn-fs: 2.0.0when-exit: 2.1.5- dependencies:- browserslist: 4.28.1- caniuse-lite: 1.0.30001774- fraction.js: 5.3.4- picocolors: 1.1.1- postcss: 8.5.6- postcss-value-parser: 4.2.0-optional: true@@ -11724,8 +11851,6 @@ snapshots:- [email protected]: {}-@@ -11771,8 +11896,6 @@ snapshots:- [email protected]: {}-@@ -11945,8 +12068,6 @@ snapshots:- [email protected]: {}-@@ -12108,8 +12229,6 @@ snapshots:- [email protected]: {}-dependencies:motion-dom: 12.34.3@@ -12232,100 +12351,13 @@ snapshots:optional: true- [email protected]: {}-- [email protected]: {}-- dependencies:- function-bind: 1.1.2-- dependencies:- '@types/hast': 3.0.4- hast-util-is-element: 3.0.0-- dependencies:- '@types/hast': 3.0.4- hast-util-embedded: 3.0.0- hast-util-minify-whitespace: 1.0.1- hast-util-phrasing: 3.0.1- hast-util-whitespace: 3.0.0- html-whitespace-sensitive-tag-names: 3.0.1- unist-util-visit-parents: 6.0.2-- dependencies:- '@types/hast': 3.0.4- hastscript: 9.0.1- web-namespaces: 2.0.1-- dependencies:- '@types/hast': 3.0.4- devlop: 1.1.0- hast-util-from-parse5: 8.0.3- parse5: 7.3.0- vfile: 6.0.3- vfile-message: 4.0.3-- dependencies:- '@types/hast': 3.0.4- '@types/unist': 3.0.3- devlop: 1.1.0- hastscript: 9.0.1- property-information: 7.1.0- vfile: 6.0.3- vfile-location: 5.0.3- web-namespaces: 2.0.1-- dependencies:- '@types/hast': 3.0.4-- dependencies:- '@types/hast': 3.0.4-- dependencies:- '@types/hast': 3.0.4-- dependencies:- '@types/hast': 3.0.4- hast-util-embedded: 3.0.0- hast-util-is-element: 3.0.0- hast-util-whitespace: 3.0.0- unist-util-is: 6.0.1-- dependencies:- '@types/hast': 3.0.4+ [email protected]: {}- dependencies:- '@types/hast': 3.0.4- hast-util-embedded: 3.0.0- hast-util-has-property: 3.0.0- hast-util-is-body-ok-link: 3.0.1- hast-util-is-element: 3.0.0+ [email protected]: {}dependencies:- '@types/hast': 3.0.4- '@types/unist': 3.0.3- ccount: 2.0.1- comma-separated-tokens: 2.0.3- hast-util-whitespace: 3.0.0- html-void-elements: 3.0.0- mdast-util-to-hast: 13.2.1- property-information: 7.1.0- space-separated-tokens: 2.0.2- stringify-entities: 4.0.4- zwitch: 2.0.4+ function-bind: 1.1.2dependencies:@@ -12347,44 +12379,14 @@ snapshots:transitivePeerDependencies:- supports-color- dependencies:- '@types/hast': 3.0.4- '@types/mdast': 4.0.4- '@ungap/structured-clone': 1.3.0- hast-util-phrasing: 3.0.1- hast-util-to-html: 9.0.5- hast-util-to-text: 4.0.2- hast-util-whitespace: 3.0.0- mdast-util-phrasing: 4.1.0- mdast-util-to-hast: 13.2.1- mdast-util-to-string: 4.0.0- rehype-minify-whitespace: 6.0.2- trim-trailing-lines: 2.1.0- unist-util-position: 5.0.0- unist-util-visit: 5.0.0-- dependencies:- '@types/hast': 3.0.4- '@types/unist': 3.0.3- hast-util-is-element: 3.0.0- unist-util-find-after: 5.0.0-dependencies:'@types/hast': 3.0.4- dependencies:- '@types/hast': 3.0.4- comma-separated-tokens: 2.0.3- hast-util-parse-selector: 4.0.0- property-information: 7.1.0- space-separated-tokens: 2.0.2-+ [email protected]: {}+[email protected](@hono/[email protected](@standard-schema/[email protected])([email protected]))(@standard-community/[email protected](@standard-schema/[email protected])(@types/[email protected])(@valibot/[email protected]([email protected]([email protected])))([email protected])([email protected])([email protected]([email protected]))([email protected]([email protected]))([email protected]))(@standard-community/[email protected](@standard-community/[email protected](@standard-schema/[email protected])(@types/[email protected])(@valibot/[email protected]([email protected]([email protected])))([email protected])([email protected])([email protected]([email protected]))([email protected]([email protected]))([email protected]))(@standard-schema/[email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected]):dependencies:'@standard-community/standard-json': 0.3.5(@standard-schema/[email protected])(@types/[email protected])(@valibot/[email protected]([email protected]([email protected])))([email protected])([email protected])([email protected]([email protected]))([email protected]([email protected]))([email protected])@@ -12410,10 +12412,6 @@ snapshots:- [email protected]: {}-- [email protected]: {}-dependencies:domelementtype: 2.3.0@@ -12549,8 +12547,6 @@ snapshots:- [email protected]: {}-dependencies:'@isaacs/cliui': 8.0.2@@ -12593,10 +12589,6 @@ snapshots:- dependencies:- isomorphic.js: 0.2.5-optional: true@@ -12746,6 +12738,12 @@ snapshots:+ dependencies:+ '@types/hast': 3.0.4+ devlop: 1.1.0+ highlight.js: 11.11.1+@@ -12755,10 +12753,6 @@ snapshots:optional: true- dependencies:- react: 19.2.4-dependencies:react: 19.1.0@@ -12780,18 +12774,11 @@ snapshots:punycode.js: 2.3.1uc.micro: 2.1.0- [email protected]: {}-- [email protected]: {}+ [email protected]: {}- dependencies:- '@types/mdast': 4.0.4- escape-string-regexp: 5.0.0- unist-util-is: 6.0.1- unist-util-visit-parents: 6.0.2+ [email protected]: {}dependencies:@@ -12810,63 +12797,6 @@ snapshots:transitivePeerDependencies:- supports-color- dependencies:- '@types/mdast': 4.0.4- ccount: 2.0.1- devlop: 1.1.0- mdast-util-find-and-replace: 3.0.2- micromark-util-character: 2.1.1-- dependencies:- '@types/mdast': 4.0.4- devlop: 1.1.0- mdast-util-from-markdown: 2.0.2- mdast-util-to-markdown: 2.1.2- micromark-util-normalize-identifier: 2.0.1- transitivePeerDependencies:- - supports-color-- dependencies:- '@types/mdast': 4.0.4- mdast-util-from-markdown: 2.0.2- mdast-util-to-markdown: 2.1.2- transitivePeerDependencies:- - supports-color-- dependencies:- '@types/mdast': 4.0.4- devlop: 1.1.0- markdown-table: 3.0.4- mdast-util-from-markdown: 2.0.2- mdast-util-to-markdown: 2.1.2- transitivePeerDependencies:- - supports-color-- dependencies:- '@types/mdast': 4.0.4- devlop: 1.1.0- mdast-util-from-markdown: 2.0.2- mdast-util-to-markdown: 2.1.2- transitivePeerDependencies:- - supports-color-- dependencies:- mdast-util-from-markdown: 2.0.2- mdast-util-gfm-autolink-literal: 2.0.1- mdast-util-gfm-footnote: 2.1.0- mdast-util-gfm-strikethrough: 2.0.0- mdast-util-gfm-table: 2.0.0- mdast-util-gfm-task-list-item: 2.0.0- mdast-util-to-markdown: 2.1.2- transitivePeerDependencies:- - supports-color-dependencies:'@types/estree-jsx': 1.0.5@@ -12973,64 +12903,6 @@ snapshots:micromark-util-symbol: 2.0.1micromark-util-types: 2.0.2- dependencies:- micromark-util-character: 2.1.1- micromark-util-sanitize-uri: 2.0.1- micromark-util-symbol: 2.0.1- micromark-util-types: 2.0.2-- dependencies:- devlop: 1.1.0- micromark-core-commonmark: 2.0.3- micromark-factory-space: 2.0.1- micromark-util-character: 2.1.1- micromark-util-normalize-identifier: 2.0.1- micromark-util-sanitize-uri: 2.0.1- micromark-util-symbol: 2.0.1- micromark-util-types: 2.0.2-- dependencies:- devlop: 1.1.0- micromark-util-chunked: 2.0.1- micromark-util-classify-character: 2.0.1- micromark-util-resolve-all: 2.0.1- micromark-util-symbol: 2.0.1- micromark-util-types: 2.0.2-- dependencies:- devlop: 1.1.0- micromark-factory-space: 2.0.1- micromark-util-character: 2.1.1- micromark-util-symbol: 2.0.1- micromark-util-types: 2.0.2-- dependencies:- micromark-util-types: 2.0.2-- dependencies:- devlop: 1.1.0- micromark-factory-space: 2.0.1- micromark-util-character: 2.1.1- micromark-util-symbol: 2.0.1- micromark-util-types: 2.0.2-- dependencies:- micromark-extension-gfm-autolink-literal: 2.1.0- micromark-extension-gfm-footnote: 2.1.0- micromark-extension-gfm-strikethrough: 2.1.0- micromark-extension-gfm-table: 2.1.1- micromark-extension-gfm-tagfilter: 2.0.0- micromark-extension-gfm-task-list-item: 2.1.0- micromark-util-combine-extensions: 2.0.1- micromark-util-types: 2.0.2-dependencies:micromark-util-character: 2.1.1@@ -13467,10 +13339,6 @@ snapshots:- dependencies:- entities: 6.0.1-dependencies:leac: 0.6.0@@ -13556,8 +13424,6 @@ snapshots:cssesc: 3.0.0util-deprecate: 1.0.2- [email protected]: {}-dependencies:nanoid: 3.3.11@@ -13668,15 +13534,6 @@ snapshots:prosemirror-state: 1.4.4prosemirror-view: 1.41.4- [email protected](@shikijs/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected]):- optionalDependencies:- '@shikijs/types': 3.21.0- '@types/hast': 3.0.4- prosemirror-model: 1.25.4- prosemirror-state: 1.4.4- prosemirror-transform: 1.10.5- prosemirror-view: 1.41.4-dependencies:prosemirror-state: 1.4.4@@ -13842,6 +13699,69 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ [email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected]):+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-accessible-icon': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-accordion': 1.2.12(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-alert-dialog': 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-arrow': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-aspect-ratio': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-avatar': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-checkbox': 1.3.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-collapsible': 1.1.12(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context-menu': 2.2.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-dialog': 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-dropdown-menu': 2.1.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-form': 0.1.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-hover-card': 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-label': 2.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-menu': 2.1.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-menubar': 1.1.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-navigation-menu': 1.2.14(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-one-time-password-field': 0.1.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-password-toggle-field': 0.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-popover': 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-popper': 1.2.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-progress': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-radio-group': 1.3.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-scroll-area': 1.2.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-select': 2.2.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-separator': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slider': 1.3.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ '@radix-ui/react-switch': 1.2.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-tabs': 1.1.13(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-toast': 1.2.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-toggle': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-toggle-group': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-toolbar': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-tooltip': 1.2.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-effect-event': 0.0.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-escape-keydown': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-is-hydrated': 0.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-visually-hidden': 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.4+ react-dom: 19.2.4([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+@@ -13910,10 +13830,6 @@ snapshots:dependencies:react: 19.2.4- dependencies:- react: 19.2.4-dependencies:'@types/hast': 3.0.4@@ -14011,47 +13927,6 @@ snapshots:optional: true- dependencies:- '@types/hast': 3.0.4- hast-util-format: 1.1.0-- dependencies:- '@types/hast': 3.0.4- hast-util-minify-whitespace: 1.0.1-- dependencies:- '@types/hast': 3.0.4- hast-util-from-html: 2.0.3- unified: 11.0.5-- dependencies:- '@types/hast': 3.0.4- '@types/mdast': 4.0.4- hast-util-to-mdast: 10.1.2- unified: 11.0.5- vfile: 6.0.3-- dependencies:- '@types/hast': 3.0.4- hast-util-to-html: 9.0.5- unified: 11.0.5-- dependencies:- '@types/mdast': 4.0.4- mdast-util-gfm: 3.1.0- micromark-extension-gfm: 3.0.0- remark-parse: 11.0.0- remark-stringify: 11.0.0- unified: 11.0.5- transitivePeerDependencies:- - supports-color-dependencies:'@types/mdast': 4.0.4@@ -14069,12 +13944,6 @@ snapshots:unified: 11.0.5vfile: 6.0.3- dependencies:- '@types/mdast': 4.0.4- mdast-util-to-markdown: 2.1.2- unified: 11.0.5-optional: true@@ -14492,8 +14361,6 @@ snapshots:- [email protected]: {}-@@ -14550,6 +14417,10 @@ snapshots:fdir: 6.5.0([email protected])picomatch: 4.0.3+ dependencies:+ '@popperjs/core': 2.11.8+@@ -14575,8 +14446,6 @@ snapshots:- [email protected]: {}-@@ -14626,6 +14495,12 @@ snapshots:turbo-windows-64: 2.7.2turbo-windows-arm64: 2.7.2+ [email protected]: {}++ dependencies:+ '@mixmark-io/domino': 2.2.0+@@ -14664,11 +14539,6 @@ snapshots:trough: 2.2.0vfile: 6.0.3- dependencies:- '@types/unist': 3.0.3- unist-util-is: 6.0.1-dependencies:'@types/unist': 3.0.3@@ -14755,8 +14625,6 @@ snapshots:- [email protected]: {}-optionalDependencies:typescript: 5.8.3@@ -14770,11 +14638,6 @@ snapshots:- dependencies:- '@types/unist': 3.0.3- vfile: 6.0.3-dependencies:'@types/unist': 3.0.3@@ -14803,8 +14666,6 @@ snapshots:- [email protected]: {}-@@ -14857,20 +14718,6 @@ snapshots:- [email protected]([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]):- dependencies:- lib0: 0.2.115- prosemirror-model: 1.25.4- prosemirror-state: 1.4.4- prosemirror-view: 1.41.4- y-protocols: 1.0.6([email protected])- yjs: 13.6.27-- dependencies:- lib0: 0.2.115- yjs: 13.6.27-@@ -14890,10 +14737,6 @@ snapshots:y18n: 5.0.8yargs-parser: 21.1.1- dependencies:- lib0: 0.2.115-