From ea2ecb572cab7d51f69e82e911cf37c7e90248e1 Mon Sep 17 00:00:00 2001 From: Khalid Abdi Date: Thu, 4 Jun 2026 19:48:51 +0300 Subject: [PATCH] Add Notes page: Tiptap rich-text editor backed by the notes API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - lib/notes.ts: list/get/create/update/delete via the API client. - New /notes route + nav item (and shared lib/nav.ts entry, i18n key) so it shows in the sidebar and command palette. - components/notes/notes-view.tsx: a note list + "New note", with save/delete and toasts. - components/notes/notes-editor.tsx: a Word-like COSS Toolbar driving Tiptap (StarterKit + Placeholder) — bold/italic/underline, H1–H2, bullet/numbered lists, undo/redo — plus a title field and Save. Installed @coss/toolbar and @coss/toggle-group and the Tiptap packages. Co-Authored-By: Claude Opus 4.8 --- frontend/app/(app)/notes/page.tsx | 10 + frontend/components/notes/notes-editor.tsx | 225 +++++++ frontend/components/notes/notes-view.tsx | 155 +++++ frontend/components/ui/toggle-group.tsx | 103 +++ frontend/components/ui/toggle.tsx | 46 ++ frontend/components/ui/toolbar.tsx | 91 +++ frontend/lib/i18n/locales/en/translation.json | 1 + frontend/lib/nav.ts | 2 + frontend/lib/notes.ts | 39 ++ frontend/package-lock.json | 628 +++++++++++++++++- frontend/package.json | 5 + 11 files changed, 1302 insertions(+), 3 deletions(-) create mode 100644 frontend/app/(app)/notes/page.tsx create mode 100644 frontend/components/notes/notes-editor.tsx create mode 100644 frontend/components/notes/notes-view.tsx create mode 100644 frontend/components/ui/toggle-group.tsx create mode 100644 frontend/components/ui/toggle.tsx create mode 100644 frontend/components/ui/toolbar.tsx create mode 100644 frontend/lib/notes.ts diff --git a/frontend/app/(app)/notes/page.tsx b/frontend/app/(app)/notes/page.tsx new file mode 100644 index 0000000..dd4450a --- /dev/null +++ b/frontend/app/(app)/notes/page.tsx @@ -0,0 +1,10 @@ +import { NotesView } from "@/components/notes/notes-view"; +import { SidebarInset } from "@/components/ui/sidebar"; + +export default function NotesPage() { + return ( + + + + ); +} diff --git a/frontend/components/notes/notes-editor.tsx b/frontend/components/notes/notes-editor.tsx new file mode 100644 index 0000000..84fb001 --- /dev/null +++ b/frontend/components/notes/notes-editor.tsx @@ -0,0 +1,225 @@ +"use client"; + +import Placeholder from "@tiptap/extension-placeholder"; +import { EditorContent, useEditor } from "@tiptap/react"; +import StarterKit from "@tiptap/starter-kit"; +import { + Bold, + Heading1, + Heading2, + Italic, + List, + ListOrdered, + Redo2, + Save, + Trash2, + Underline as UnderlineIcon, + Undo2, +} from "lucide-react"; +import { type ReactNode, useReducer, useState } from "react"; + +import { Button } from "@/components/ui/button"; +import { Input } from "@/components/ui/input"; +import { + Toolbar, + ToolbarButton, + ToolbarGroup, + ToolbarSeparator, +} from "@/components/ui/toolbar"; +import type { Note } from "@/lib/notes"; + +function FormatButton({ + active, + disabled, + label, + onClick, + children, +}: { + active?: boolean; + disabled?: boolean; + label: string; + onClick: () => void; + children: ReactNode; +}) { + return ( + e.preventDefault()} + render={ + + )} + + + + + + editor.chain().focus().toggleBold().run()} + > + + + editor.chain().focus().toggleItalic().run()} + > + + + editor.chain().focus().toggleUnderline().run()} + > + + + + + + + editor.chain().focus().toggleHeading({ level: 1 }).run() + } + > + + + + editor.chain().focus().toggleHeading({ level: 2 }).run() + } + > + + + + + + editor.chain().focus().toggleBulletList().run()} + > + + + editor.chain().focus().toggleOrderedList().run()} + > + + + + + + editor.chain().focus().undo().run()} + > + + + editor.chain().focus().redo().run()} + > + + + + + + + + ); +} diff --git a/frontend/components/notes/notes-view.tsx b/frontend/components/notes/notes-view.tsx new file mode 100644 index 0000000..c4ed30b --- /dev/null +++ b/frontend/components/notes/notes-view.tsx @@ -0,0 +1,155 @@ +"use client"; + +import { FileText, Plus } from "lucide-react"; +import { useEffect, useState } from "react"; + +import { NotesEditor } from "@/components/notes/notes-editor"; +import { Button } from "@/components/ui/button"; +import { + createNote, + deleteNote, + listNotes, + type Note, + updateNote, +} from "@/lib/notes"; +import { notify } from "@/lib/toast"; +import { cn } from "@/lib/utils"; + +const newDraft = (): Note => ({ + id: "", + title: "", + content: "", + createdAt: "", + updatedAt: "", +}); + +export function NotesView() { + const [notes, setNotes] = useState([]); + const [selected, setSelected] = useState(null); + const [draftKey, setDraftKey] = useState(0); + const [loading, setLoading] = useState(true); + const [saving, setSaving] = useState(false); + + useEffect(() => { + let active = true; + listNotes() + .then((data) => { + if (!active) return; + setNotes(data); + setSelected((current) => current ?? data[0] ?? null); + }) + .catch((err) => { + if (active) { + notify.error( + "Couldn't load notes", + err instanceof Error ? err.message : "Please try again.", + ); + } + }) + .finally(() => { + if (active) setLoading(false); + }); + return () => { + active = false; + }; + }, []); + + const startNew = () => { + setSelected(newDraft()); + setDraftKey((k) => k + 1); + }; + + const save = async (data: { title: string; content: string }) => { + setSaving(true); + try { + const saved = selected?.id + ? await updateNote(selected.id, data) + : await createNote(data); + const list = await listNotes(); + setNotes(list); + setSelected(list.find((n) => n.id === saved.id) ?? saved); + notify.success("Note saved"); + } catch (err) { + notify.error( + "Couldn't save note", + err instanceof Error ? err.message : "Please try again.", + ); + } finally { + setSaving(false); + } + }; + + const remove = async (id: string) => { + try { + await deleteNote(id); + const list = await listNotes(); + setNotes(list); + setSelected(list[0] ?? null); + notify.success("Note deleted"); + } catch (err) { + notify.error( + "Couldn't delete note", + err instanceof Error ? err.message : "Please try again.", + ); + } + }; + + return ( +
+ + +
+ {selected ? ( + remove(selected.id) : undefined} + onSave={save} + saving={saving} + /> + ) : ( +
+ +

Select a note or create a new one.

+
+ )} +
+
+ ); +} diff --git a/frontend/components/ui/toggle-group.tsx b/frontend/components/ui/toggle-group.tsx new file mode 100644 index 0000000..d14c2d3 --- /dev/null +++ b/frontend/components/ui/toggle-group.tsx @@ -0,0 +1,103 @@ +"use client"; + +import type { Toggle as TogglePrimitive } from "@base-ui/react/toggle"; +import { ToggleGroup as ToggleGroupPrimitive } from "@base-ui/react/toggle-group"; +import type { VariantProps } from "class-variance-authority"; +import * as React from "react"; +import { cn } from "@/lib/utils"; +import { Separator } from "@/components/ui/separator"; +import { + Toggle as ToggleComponent, + type toggleVariants, +} from "@/components/ui/toggle"; + +export const ToggleGroupContext: React.Context< + VariantProps +> = React.createContext>({ + size: "default", + variant: "default", +}); + +export function ToggleGroup({ + className, + variant = "default", + size = "default", + orientation = "horizontal", + children, + ...props +}: ToggleGroupPrimitive.Props & + VariantProps): React.ReactElement { + return ( + + + {children} + + + ); +} + +export function ToggleGroupItem({ + className, + children, + variant, + size, + ...props +}: TogglePrimitive.Props & + VariantProps): React.ReactElement { + const context = React.useContext(ToggleGroupContext); + + const resolvedVariant = context.variant || variant; + const resolvedSize = context.size || size; + + return ( + + {children} + + ); +} + +export function ToggleGroupSeparator({ + className, + orientation = "vertical", + ...props +}: { + className?: string; +} & React.ComponentProps): React.ReactElement { + return ( + + ); +} + +export { ToggleGroupPrimitive }; diff --git a/frontend/components/ui/toggle.tsx b/frontend/components/ui/toggle.tsx new file mode 100644 index 0000000..c4c8fbe --- /dev/null +++ b/frontend/components/ui/toggle.tsx @@ -0,0 +1,46 @@ +"use client"; + +import { Toggle as TogglePrimitive } from "@base-ui/react/toggle"; +import { cva, type VariantProps } from "class-variance-authority"; +import type React from "react"; +import { cn } from "@/lib/utils"; + +export const toggleVariants = cva( + "relative inline-flex shrink-0 cursor-pointer select-none items-center justify-center gap-2 whitespace-nowrap rounded-lg border font-medium text-base text-foreground outline-none transition-shadow before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-64 data-pressed:bg-input/64 data-pressed:text-accent-foreground sm:text-sm [&_svg:not([class*='opacity-'])]:opacity-80 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:-mx-0.5 [&_svg]:shrink-0", + { + defaultVariants: { + size: "default", + variant: "default", + }, + variants: { + size: { + default: "h-9 min-w-9 px-[calc(--spacing(2)-1px)] sm:h-8 sm:min-w-8", + lg: "h-10 min-w-10 px-[calc(--spacing(2.5)-1px)] sm:h-9 sm:min-w-9", + sm: "h-8 min-w-8 px-[calc(--spacing(1.5)-1px)] sm:h-7 sm:min-w-7", + }, + variant: { + default: "border-transparent", + outline: + "border-input bg-background not-dark:bg-clip-padding shadow-xs/5 not-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:bg-input/32 dark:data-pressed:bg-input dark:hover:bg-input/64 dark:not-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/6%)] dark:not-disabled:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/2%)] [:disabled,:active,[data-pressed]]:shadow-none", + }, + }, + }, +); + +export function Toggle({ + className, + variant, + size, + ...props +}: TogglePrimitive.Props & + VariantProps): React.ReactElement { + return ( + + ); +} + +export { TogglePrimitive }; diff --git a/frontend/components/ui/toolbar.tsx b/frontend/components/ui/toolbar.tsx new file mode 100644 index 0000000..4e1ef29 --- /dev/null +++ b/frontend/components/ui/toolbar.tsx @@ -0,0 +1,91 @@ +"use client"; + +import { Toolbar as ToolbarPrimitive } from "@base-ui/react/toolbar"; +import type React from "react"; +import { cn } from "@/lib/utils"; + +export function Toolbar({ + className, + ...props +}: ToolbarPrimitive.Root.Props): React.ReactElement { + return ( + + ); +} + +export function ToolbarButton({ + className, + ...props +}: ToolbarPrimitive.Button.Props): React.ReactElement { + return ( + + ); +} + +export function ToolbarLink({ + className, + ...props +}: ToolbarPrimitive.Link.Props): React.ReactElement { + return ( + + ); +} + +export function ToolbarInput({ + className, + ...props +}: ToolbarPrimitive.Input.Props): React.ReactElement { + return ( + + ); +} + +export function ToolbarGroup({ + className, + ...props +}: ToolbarPrimitive.Group.Props): React.ReactElement { + return ( + + ); +} + +export function ToolbarSeparator({ + className, + ...props +}: ToolbarPrimitive.Separator.Props): React.ReactElement { + return ( + + ); +} + +export { ToolbarPrimitive }; diff --git a/frontend/lib/i18n/locales/en/translation.json b/frontend/lib/i18n/locales/en/translation.json index bf507df..b53b5e0 100644 --- a/frontend/lib/i18n/locales/en/translation.json +++ b/frontend/lib/i18n/locales/en/translation.json @@ -48,6 +48,7 @@ "newChat": "New chat", "patients": "Patients", "analysis": "Analysis", + "notes": "Notes", "settings": "Settings", "notifications": "Notifications", "viewAllNotifications": "View all notifications", diff --git a/frontend/lib/nav.ts b/frontend/lib/nav.ts index e8bf238..96da392 100644 --- a/frontend/lib/nav.ts +++ b/frontend/lib/nav.ts @@ -1,6 +1,7 @@ import { BarChart3, type LucideIcon, + NotebookPen, Plus, Settings, Users, @@ -26,5 +27,6 @@ export const navItems: NavItem[] = [ icon: BarChart3, link: "/analysis", }, + { id: "notes", labelKey: "nav.notes", icon: NotebookPen, link: "/notes" }, { id: "settings", labelKey: "nav.settings", icon: Settings, link: "/settings" }, ]; diff --git a/frontend/lib/notes.ts b/frontend/lib/notes.ts new file mode 100644 index 0000000..bce1415 --- /dev/null +++ b/frontend/lib/notes.ts @@ -0,0 +1,39 @@ +import { apiFetch } from "@/lib/api-client"; + +// A doctor's note. `content` is rich-text editor HTML. Mirrors the backend +// `src/types/note.ts`. Notes are scoped to the active clinic + signed-in author. +export type Note = { + id: string; + title: string; + content: string; + createdAt: string; + updatedAt: string; +}; + +export type NoteInput = { title: string; content: string }; + +export function listNotes(): Promise { + return apiFetch("/api/notes"); +} + +export function getNote(id: string): Promise { + return apiFetch(`/api/notes/${id}`); +} + +export function createNote(input: NoteInput): Promise { + return apiFetch("/api/notes", { + method: "POST", + body: JSON.stringify(input), + }); +} + +export function updateNote(id: string, input: NoteInput): Promise { + return apiFetch(`/api/notes/${id}`, { + method: "PUT", + body: JSON.stringify(input), + }); +} + +export function deleteNote(id: string): Promise { + return apiFetch(`/api/notes/${id}`, { method: "DELETE" }); +} diff --git a/frontend/package-lock.json b/frontend/package-lock.json index ca21295..b17f45d 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -15,6 +15,11 @@ "@streamdown/code": "^1.1.1", "@streamdown/math": "^1.0.2", "@streamdown/mermaid": "^1.0.2", + "@tiptap/extension-placeholder": "^3.25.0", + "@tiptap/extension-underline": "^3.25.0", + "@tiptap/pm": "^3.25.0", + "@tiptap/react": "^3.25.0", + "@tiptap/starter-kit": "^3.25.0", "@xyflow/react": "^12.10.2", "ai": "^6.0.193", "ansi-to-react": "^6.2.6", @@ -3246,6 +3251,448 @@ "tailwindcss": "4.3.0" } }, + "node_modules/@tiptap/core": { + "version": "3.25.0", + "resolved": "https://registry.npmjs.org/@tiptap/core/-/core-3.25.0.tgz", + "integrity": "sha512-I9edH6vUXgbjUl5GPICYYYQeql8hC77VZnHLvWg8wc7FwaOw242Uy4Y89c/eX7LGmKwVxz28JFvAsZ8tIdDVvg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/pm": "3.25.0" + } + }, + "node_modules/@tiptap/extension-blockquote": { + "version": "3.25.0", + "resolved": "https://registry.npmjs.org/@tiptap/extension-blockquote/-/extension-blockquote-3.25.0.tgz", + "integrity": "sha512-nSWhYtAKVFAZluRTew+BZUMHo5+87uQqTBOnbyy9ZFBp3gjHjCgGqhboJg5ksMHLCEz1XVoHnS5iXcu9d6Bm6Q==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "3.25.0" + } + }, + "node_modules/@tiptap/extension-bold": { + "version": "3.25.0", + "resolved": "https://registry.npmjs.org/@tiptap/extension-bold/-/extension-bold-3.25.0.tgz", + "integrity": "sha512-owygVm6XMtk8VVclm2CCCz3Q1HfNpkjeoRTIbeM5r/R1cDrPQAVOuAd3w+mdXlC3iDsvCkfYzSTSphZcDpwThQ==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "3.25.0" + } + }, + "node_modules/@tiptap/extension-bubble-menu": { + "version": "3.25.0", + "resolved": "https://registry.npmjs.org/@tiptap/extension-bubble-menu/-/extension-bubble-menu-3.25.0.tgz", + "integrity": "sha512-IL6WRTMS0X6szJ1F9qrAbslbet8awUcQ4cJEJLL2lxDgcxpxDHcKxIQRsX5A7qmrWnHxo0tCIpsXKvJ6toaSCQ==", + "license": "MIT", + "optional": true, + "dependencies": { + "@floating-ui/dom": "^1.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "3.25.0", + "@tiptap/pm": "3.25.0" + } + }, + "node_modules/@tiptap/extension-bullet-list": { + "version": "3.25.0", + "resolved": "https://registry.npmjs.org/@tiptap/extension-bullet-list/-/extension-bullet-list-3.25.0.tgz", + "integrity": "sha512-v0+0kvg0CddW4bz05YVssnMhfe+4x32Tg9qNzYMYK4jGtSm5GDLYG7JaOqAUwiXj5jhKmoOTfXzV6cB5Tk4OEA==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/extension-list": "3.25.0" + } + }, + "node_modules/@tiptap/extension-code": { + "version": "3.25.0", + "resolved": "https://registry.npmjs.org/@tiptap/extension-code/-/extension-code-3.25.0.tgz", + "integrity": "sha512-1Lcwwny7JwQ6m2wEqytKWmSfQzV0ONhZqUmMaAAAFvDCCG7dRPOVKT+3s0UqFlGePP1xbYl0Yy0YOVv3M6sedg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "3.25.0" + } + }, + "node_modules/@tiptap/extension-code-block": { + "version": "3.25.0", + "resolved": "https://registry.npmjs.org/@tiptap/extension-code-block/-/extension-code-block-3.25.0.tgz", + "integrity": "sha512-bMKhg+Qcve1O3L5k6dzNCbCI/QsWPK1ez+1k9CQEd5rO0mwCpqLGb5tyFztI6umdFr5dulI3FZVt8IOtUptuxQ==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "3.25.0", + "@tiptap/pm": "3.25.0" + } + }, + "node_modules/@tiptap/extension-document": { + "version": "3.25.0", + "resolved": "https://registry.npmjs.org/@tiptap/extension-document/-/extension-document-3.25.0.tgz", + "integrity": "sha512-YEENTItTHdOiIAemTDej2HsbMvq4IlrgQ7obR89Kyaxs2oE4gYw0GPA3gjHfuJnv2VHMQqFn7K37nlyuiABhHw==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "3.25.0" + } + }, + "node_modules/@tiptap/extension-dropcursor": { + "version": "3.25.0", + "resolved": "https://registry.npmjs.org/@tiptap/extension-dropcursor/-/extension-dropcursor-3.25.0.tgz", + "integrity": "sha512-4SyWreaR82Gx1vMp5fYTM+acijNNWXQyrx7yKQPFSjh1I9cPNz3wvQEY6gEpBQ6WDwS/WdUIZq9nw99JQx7XRQ==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/extensions": "3.25.0" + } + }, + "node_modules/@tiptap/extension-floating-menu": { + "version": "3.25.0", + "resolved": "https://registry.npmjs.org/@tiptap/extension-floating-menu/-/extension-floating-menu-3.25.0.tgz", + "integrity": "sha512-ZUC+89Kggg4zxRcb8NxyMwErnGxwp5GDVqjxrqo7DReYiOuKeKF/tqvxxa/x+ADJ0Hsy36hVUJqd6gzoi02njA==", + "license": "MIT", + "optional": true, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@floating-ui/dom": "^1.0.0", + "@tiptap/core": "3.25.0", + "@tiptap/pm": "3.25.0" + } + }, + "node_modules/@tiptap/extension-gapcursor": { + "version": "3.25.0", + "resolved": "https://registry.npmjs.org/@tiptap/extension-gapcursor/-/extension-gapcursor-3.25.0.tgz", + "integrity": "sha512-XLXfYLtP744b88qLEWcUUAMB0yD3TFGUtfiFh5eYw3ybOW/BA0f6SIJQWk6l0Uk8TZ1x/YQURWNo07/csJcwew==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/extensions": "3.25.0" + } + }, + "node_modules/@tiptap/extension-hard-break": { + "version": "3.25.0", + "resolved": "https://registry.npmjs.org/@tiptap/extension-hard-break/-/extension-hard-break-3.25.0.tgz", + "integrity": "sha512-86JdgqwBUSPhLH5l5TaOA1JbdaE1nCEv/INdPykVCC0Tlf1sdoF356rmFNLo8cLxmDLp9bTVo85EZx7HWl+d+w==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "3.25.0" + } + }, + "node_modules/@tiptap/extension-heading": { + "version": "3.25.0", + "resolved": "https://registry.npmjs.org/@tiptap/extension-heading/-/extension-heading-3.25.0.tgz", + "integrity": "sha512-3SJGZgV3cNQiUi98dWQQ3SFQAKaZg+O8PTdQmA4XC4JJn3NgDpBHiRz+bSE4NYjaRXk8DOq3+zxgGGiaGsC1Ww==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "3.25.0" + } + }, + "node_modules/@tiptap/extension-horizontal-rule": { + "version": "3.25.0", + "resolved": "https://registry.npmjs.org/@tiptap/extension-horizontal-rule/-/extension-horizontal-rule-3.25.0.tgz", + "integrity": "sha512-Ku1PQxiBoprEwf7O2uzJSYvfpkQ26UhZ4tptXqCUdsG9IXYn/Gg9qAtJrm8UFnPwsxm0CrkMsAlAG3JmBrtXKQ==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "3.25.0", + "@tiptap/pm": "3.25.0" + } + }, + "node_modules/@tiptap/extension-italic": { + "version": "3.25.0", + "resolved": "https://registry.npmjs.org/@tiptap/extension-italic/-/extension-italic-3.25.0.tgz", + "integrity": "sha512-eZw+q8mtap8n0B5LtvPSgpyqkSIL7FzT7syD5ut++29FoXNl3fhJO6ct0hspWKFB4ihbvo3NG2gIwHi2ESXQow==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "3.25.0" + } + }, + "node_modules/@tiptap/extension-link": { + "version": "3.25.0", + "resolved": "https://registry.npmjs.org/@tiptap/extension-link/-/extension-link-3.25.0.tgz", + "integrity": "sha512-DauqQS55xZACzPb0+KxXDiDw1GVDszltMUikHSLZSCp1+EjPSVt86X8CxJNc83rC/ZrqJMM/iUK74DHRUg2XSA==", + "license": "MIT", + "dependencies": { + "linkifyjs": "^4.3.3" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "3.25.0", + "@tiptap/pm": "3.25.0" + } + }, + "node_modules/@tiptap/extension-list": { + "version": "3.25.0", + "resolved": "https://registry.npmjs.org/@tiptap/extension-list/-/extension-list-3.25.0.tgz", + "integrity": "sha512-bYw4o2YiTdj/tdgktgbMRUfqAJgsnRkwUQTTKElycPdIwlNNs6EQiXku+E2ACftLaFxd3Ek+P50H0AQ5fA/hPw==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "3.25.0", + "@tiptap/pm": "3.25.0" + } + }, + "node_modules/@tiptap/extension-list-item": { + "version": "3.25.0", + "resolved": "https://registry.npmjs.org/@tiptap/extension-list-item/-/extension-list-item-3.25.0.tgz", + "integrity": "sha512-RfxDdLXUggC4tKB9V8Vhfxqjn4ZFbL2suFpl3ct0RY7ynrv9tE66ukYQ2SPg6rAYZK+WxVND0VSeLFB5QclO2A==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/extension-list": "3.25.0" + } + }, + "node_modules/@tiptap/extension-list-keymap": { + "version": "3.25.0", + "resolved": "https://registry.npmjs.org/@tiptap/extension-list-keymap/-/extension-list-keymap-3.25.0.tgz", + "integrity": "sha512-8JOWSQc4mpXNmQWn52THIEpcGdVgBz51J/pz/KcbJBMDZIPvB7nDwFsLkkURrcWDX0DO7G9uepjvAEb8LfBFXg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/extension-list": "3.25.0" + } + }, + "node_modules/@tiptap/extension-ordered-list": { + "version": "3.25.0", + "resolved": "https://registry.npmjs.org/@tiptap/extension-ordered-list/-/extension-ordered-list-3.25.0.tgz", + "integrity": "sha512-3qs1Q7HgJWlgI0VDXGMiTKTOQdNKN6omAgaq5i+jITCbKn+OKC95E9tbkTq9fPWPgH0svJRUfvvACRem4rhJew==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/extension-list": "3.25.0" + } + }, + "node_modules/@tiptap/extension-paragraph": { + "version": "3.25.0", + "resolved": "https://registry.npmjs.org/@tiptap/extension-paragraph/-/extension-paragraph-3.25.0.tgz", + "integrity": "sha512-yETzkQFjcRA7JeaAw927qaT5xTweAMr1rznN5fRxJdHdURPjvm+8gz76W/8DuloN4EF/fzAjpVBXZwwcJ+61yg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "3.25.0" + } + }, + "node_modules/@tiptap/extension-placeholder": { + "version": "3.25.0", + "resolved": "https://registry.npmjs.org/@tiptap/extension-placeholder/-/extension-placeholder-3.25.0.tgz", + "integrity": "sha512-QrMwpQeHQ+DPbbaNe1i4ppofYkEZycZg0hFLeYHTVeGBf6cHkoBuF9LEEuaLIKoOVfVpNx0PT54eQAN9YAETEw==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/extensions": "3.25.0" + } + }, + "node_modules/@tiptap/extension-strike": { + "version": "3.25.0", + "resolved": "https://registry.npmjs.org/@tiptap/extension-strike/-/extension-strike-3.25.0.tgz", + "integrity": "sha512-rtM9tkqH8XWay7TplUcXPjlBiNg/dbEOuaCvZGvNxTw8xbH+cmEGPxojWVW6oVMsQodBlUoNveATE2yzhiUB1A==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "3.25.0" + } + }, + "node_modules/@tiptap/extension-text": { + "version": "3.25.0", + "resolved": "https://registry.npmjs.org/@tiptap/extension-text/-/extension-text-3.25.0.tgz", + "integrity": "sha512-qXAYiIIOX7F6wVftN7FeHTAg9lDLzgqrscrT4BJxTL3Vk38EP1R3w1sDDfSCTQ53ui8SzoaKe0iyzkTa6V/1LQ==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "3.25.0" + } + }, + "node_modules/@tiptap/extension-underline": { + "version": "3.25.0", + "resolved": "https://registry.npmjs.org/@tiptap/extension-underline/-/extension-underline-3.25.0.tgz", + "integrity": "sha512-GTCjXnOhjQ8ipiOrdskMdBqQ8nUnczFWWNJ5IoCkMcEDWviOS14Mr2n6zewjlKjtPoRTzwOpFDQUevSK1SHpJg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "3.25.0" + } + }, + "node_modules/@tiptap/extensions": { + "version": "3.25.0", + "resolved": "https://registry.npmjs.org/@tiptap/extensions/-/extensions-3.25.0.tgz", + "integrity": "sha512-aRXZwOPLdIRey28uctNT/Nbh3EaiNYnKt5qBhBbxs5aTtwoExzYAEtR7D8KjpUVBJAZNeLwFxvD2Ub+F94uAAw==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "peerDependencies": { + "@tiptap/core": "3.25.0", + "@tiptap/pm": "3.25.0" + } + }, + "node_modules/@tiptap/pm": { + "version": "3.25.0", + "resolved": "https://registry.npmjs.org/@tiptap/pm/-/pm-3.25.0.tgz", + "integrity": "sha512-JeaVgyLj0gQZ1gVxDI73QkP+/Ozcjyp37HyL1pXLCRVjY8nnsDrdMzuKsP1SWN2fOhC+JBGW8/88g0rPmwZQFg==", + "license": "MIT", + "dependencies": { + "prosemirror-changeset": "^2.3.0", + "prosemirror-commands": "^1.6.2", + "prosemirror-dropcursor": "^1.8.1", + "prosemirror-gapcursor": "^1.3.2", + "prosemirror-history": "^1.4.1", + "prosemirror-inputrules": "^1.4.0", + "prosemirror-keymap": "^1.2.3", + "prosemirror-model": "^1.25.7", + "prosemirror-schema-list": "^1.5.0", + "prosemirror-state": "^1.4.4", + "prosemirror-tables": "^1.8.0", + "prosemirror-transform": "^1.12.0", + "prosemirror-view": "^1.41.8" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + } + }, + "node_modules/@tiptap/react": { + "version": "3.25.0", + "resolved": "https://registry.npmjs.org/@tiptap/react/-/react-3.25.0.tgz", + "integrity": "sha512-S0KhuF+Vs/bJeKc2oxgCA33C3q5rMFOqleQCSx18W80jygeGnLaQ6c8yVUlbR1YQJwVk2gm1X15719580kBYIg==", + "license": "MIT", + "dependencies": { + "@types/use-sync-external-store": "^0.0.6", + "fast-equals": "^5.3.3", + "use-sync-external-store": "^1.4.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + }, + "optionalDependencies": { + "@tiptap/extension-bubble-menu": "^3.25.0", + "@tiptap/extension-floating-menu": "^3.25.0" + }, + "peerDependencies": { + "@tiptap/core": "3.25.0", + "@tiptap/pm": "3.25.0", + "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0", + "@types/react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0", + "react": "^17.0.0 || ^18.0.0 || ^19.0.0", + "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, + "node_modules/@tiptap/starter-kit": { + "version": "3.25.0", + "resolved": "https://registry.npmjs.org/@tiptap/starter-kit/-/starter-kit-3.25.0.tgz", + "integrity": "sha512-bKe1BhA8YXX7DHC6dsvkkedeQM7r2Iif36i9meTY4szNd9limlnP0ZlFBrBcktl7D/XFy1rkDfD+diWfYeG9BQ==", + "license": "MIT", + "dependencies": { + "@tiptap/core": "^3.25.0", + "@tiptap/extension-blockquote": "^3.25.0", + "@tiptap/extension-bold": "^3.25.0", + "@tiptap/extension-bullet-list": "^3.25.0", + "@tiptap/extension-code": "^3.25.0", + "@tiptap/extension-code-block": "^3.25.0", + "@tiptap/extension-document": "^3.25.0", + "@tiptap/extension-dropcursor": "^3.25.0", + "@tiptap/extension-gapcursor": "^3.25.0", + "@tiptap/extension-hard-break": "^3.25.0", + "@tiptap/extension-heading": "^3.25.0", + "@tiptap/extension-horizontal-rule": "^3.25.0", + "@tiptap/extension-italic": "^3.25.0", + "@tiptap/extension-link": "^3.25.0", + "@tiptap/extension-list": "^3.25.0", + "@tiptap/extension-list-item": "^3.25.0", + "@tiptap/extension-list-keymap": "^3.25.0", + "@tiptap/extension-ordered-list": "^3.25.0", + "@tiptap/extension-paragraph": "^3.25.0", + "@tiptap/extension-strike": "^3.25.0", + "@tiptap/extension-text": "^3.25.0", + "@tiptap/extension-underline": "^3.25.0", + "@tiptap/extensions": "^3.25.0", + "@tiptap/pm": "^3.25.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/ueberdosis" + } + }, "node_modules/@tokenlens/core": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/@tokenlens/core/-/core-1.3.0.tgz", @@ -3713,7 +4160,6 @@ "version": "19.2.15", "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.15.tgz", "integrity": "sha512-eRwcGNHve+E8qtEQSSRl6urh+rFop4v8gm6O8rGv25CodbvFdLjA1vVQ1KkiFE0w0UPOnb8tDiFKL5lp0rtY5Q==", - "devOptional": true, "license": "MIT", "dependencies": { "csstype": "^3.2.2" @@ -3723,7 +4169,6 @@ "version": "19.2.3", "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.3.tgz", "integrity": "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==", - "devOptional": true, "license": "MIT", "peerDependencies": { "@types/react": "^19.2.0" @@ -3757,6 +4202,12 @@ "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==", "license": "MIT" }, + "node_modules/@types/use-sync-external-store": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/@types/use-sync-external-store/-/use-sync-external-store-0.0.6.tgz", + "integrity": "sha512-zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg==", + "license": "MIT" + }, "node_modules/@types/validate-npm-package-name": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/@types/validate-npm-package-name/-/validate-npm-package-name-4.0.2.tgz", @@ -5584,7 +6035,6 @@ "version": "3.2.3", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", - "devOptional": true, "license": "MIT" }, "node_modules/cytoscape": { @@ -7354,6 +7804,15 @@ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", "license": "MIT" }, + "node_modules/fast-equals": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/fast-equals/-/fast-equals-5.4.0.tgz", + "integrity": "sha512-jt2DW/aNFNwke7AUd+Z+e6pz39KO5rzdbbFCg2sGafS4mk13MI7Z8O5z9cADNn5lhGODIgLwug6TZO2ctf7kcw==", + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, "node_modules/fast-glob": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz", @@ -9672,6 +10131,12 @@ "uc.micro": "^1.0.1" } }, + "node_modules/linkifyjs": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/linkifyjs/-/linkifyjs-4.3.3.tgz", + "integrity": "sha512-P8aEP5U/D1/IlTY2OeYsErdwh9bGuLE30NcXtKEjgdHcahveQoQwM2yZNsioQHsWFz0P7KKudisbrzCgR0sDHg==", + "license": "MIT" + }, "node_modules/locate-path": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", @@ -11596,6 +12061,12 @@ "url": "https://github.com/chalk/strip-ansi?sponsor=1" } }, + "node_modules/orderedmap": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/orderedmap/-/orderedmap-2.1.1.tgz", + "integrity": "sha512-TvAWxi0nDe1j/rtMcWcIj94+Ffe6n7zhow33h40SKxmsmozs6dz/e+EajymfoFcHd7sxNn8yHM8839uixMOV6g==", + "license": "MIT" + }, "node_modules/outvariant": { "version": "1.4.3", "resolved": "https://registry.npmjs.org/outvariant/-/outvariant-1.4.3.tgz", @@ -11983,6 +12454,145 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/prosemirror-changeset": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/prosemirror-changeset/-/prosemirror-changeset-2.4.1.tgz", + "integrity": "sha512-96WBLhOaYhJ+kPhLg3uW359Tz6I/MfcrQfL4EGv4SrcqKEMC1gmoGrXHecPE8eOwTVCJ4IwgfzM8fFad25wNfw==", + "license": "MIT", + "dependencies": { + "prosemirror-transform": "^1.0.0" + } + }, + "node_modules/prosemirror-commands": { + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/prosemirror-commands/-/prosemirror-commands-1.7.1.tgz", + "integrity": "sha512-rT7qZnQtx5c0/y/KlYaGvtG411S97UaL6gdp6RIZ23DLHanMYLyfGBV5DtSnZdthQql7W+lEVbpSfwtO8T+L2w==", + "license": "MIT", + "dependencies": { + "prosemirror-model": "^1.0.0", + "prosemirror-state": "^1.0.0", + "prosemirror-transform": "^1.10.2" + } + }, + "node_modules/prosemirror-dropcursor": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/prosemirror-dropcursor/-/prosemirror-dropcursor-1.8.2.tgz", + "integrity": "sha512-CCk6Gyx9+Tt2sbYk5NK0nB1ukHi2ryaRgadV/LvyNuO3ena1payM2z6Cg0vO1ebK8cxbzo41ku2DE5Axj1Zuiw==", + "license": "MIT", + "dependencies": { + "prosemirror-state": "^1.0.0", + "prosemirror-transform": "^1.1.0", + "prosemirror-view": "^1.1.0" + } + }, + "node_modules/prosemirror-gapcursor": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/prosemirror-gapcursor/-/prosemirror-gapcursor-1.4.1.tgz", + "integrity": "sha512-pMdYaEnjNMSwl11yjEGtgTmLkR08m/Vl+Jj443167p9eB3HVQKhYCc4gmHVDsLPODfZfjr/MmirsdyZziXbQKw==", + "license": "MIT", + "dependencies": { + "prosemirror-keymap": "^1.0.0", + "prosemirror-model": "^1.0.0", + "prosemirror-state": "^1.0.0", + "prosemirror-view": "^1.0.0" + } + }, + "node_modules/prosemirror-history": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/prosemirror-history/-/prosemirror-history-1.5.0.tgz", + "integrity": "sha512-zlzTiH01eKA55UAf1MEjtssJeHnGxO0j4K4Dpx+gnmX9n+SHNlDqI2oO1Kv1iPN5B1dm5fsljCfqKF9nFL6HRg==", + "license": "MIT", + "dependencies": { + "prosemirror-state": "^1.2.2", + "prosemirror-transform": "^1.0.0", + "prosemirror-view": "^1.31.0", + "rope-sequence": "^1.3.0" + } + }, + "node_modules/prosemirror-inputrules": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/prosemirror-inputrules/-/prosemirror-inputrules-1.5.1.tgz", + "integrity": "sha512-7wj4uMjKaXWAQ1CDgxNzNtR9AlsuwzHfdFH1ygEHA2KHF2DOEaXl1CJfNPAKCg9qNEh4rum975QLaCiQPyY6Fw==", + "license": "MIT", + "dependencies": { + "prosemirror-state": "^1.0.0", + "prosemirror-transform": "^1.0.0" + } + }, + "node_modules/prosemirror-keymap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/prosemirror-keymap/-/prosemirror-keymap-1.2.3.tgz", + "integrity": "sha512-4HucRlpiLd1IPQQXNqeo81BGtkY8Ai5smHhKW9jjPKRc2wQIxksg7Hl1tTI2IfT2B/LgX6bfYvXxEpJl7aKYKw==", + "license": "MIT", + "dependencies": { + "prosemirror-state": "^1.0.0", + "w3c-keyname": "^2.2.0" + } + }, + "node_modules/prosemirror-model": { + "version": "1.25.7", + "resolved": "https://registry.npmjs.org/prosemirror-model/-/prosemirror-model-1.25.7.tgz", + "integrity": "sha512-A79aN8QEFUwI6cax8Yq4Rpcx1TJZ3Kagn+ii7qLo4/V8H3mMiHrhFyhTyHHvpSnOgMPpWiDGSwM3etwrxE50ug==", + "license": "MIT", + "dependencies": { + "orderedmap": "^2.0.0" + } + }, + "node_modules/prosemirror-schema-list": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/prosemirror-schema-list/-/prosemirror-schema-list-1.5.1.tgz", + "integrity": "sha512-927lFx/uwyQaGwJxLWCZRkjXG0p48KpMj6ueoYiu4JX05GGuGcgzAy62dfiV8eFZftgyBUvLx76RsMe20fJl+Q==", + "license": "MIT", + "dependencies": { + "prosemirror-model": "^1.0.0", + "prosemirror-state": "^1.0.0", + "prosemirror-transform": "^1.7.3" + } + }, + "node_modules/prosemirror-state": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/prosemirror-state/-/prosemirror-state-1.4.4.tgz", + "integrity": "sha512-6jiYHH2CIGbCfnxdHbXZ12gySFY/fz/ulZE333G6bPqIZ4F+TXo9ifiR86nAHpWnfoNjOb3o5ESi7J8Uz1jXHw==", + "license": "MIT", + "dependencies": { + "prosemirror-model": "^1.0.0", + "prosemirror-transform": "^1.0.0", + "prosemirror-view": "^1.27.0" + } + }, + "node_modules/prosemirror-tables": { + "version": "1.8.5", + "resolved": "https://registry.npmjs.org/prosemirror-tables/-/prosemirror-tables-1.8.5.tgz", + "integrity": "sha512-V/0cDCsHKHe/tfWkeCmthNUcEp1IVO3p6vwN8XtwE9PZQLAZJigbw3QoraAdfJPir4NKJtNvOB8oYGKRl+t0Dw==", + "license": "MIT", + "dependencies": { + "prosemirror-keymap": "^1.2.3", + "prosemirror-model": "^1.25.4", + "prosemirror-state": "^1.4.4", + "prosemirror-transform": "^1.10.5", + "prosemirror-view": "^1.41.4" + } + }, + "node_modules/prosemirror-transform": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/prosemirror-transform/-/prosemirror-transform-1.12.0.tgz", + "integrity": "sha512-GxboyN4AMIsoHNtz5uf2r2Ru551i5hWeCMD6E2Ib4Eogqoub0NflniaBPVQ4MrGE5yZ8JV9tUHg9qcZTTrcN4w==", + "license": "MIT", + "dependencies": { + "prosemirror-model": "^1.21.0" + } + }, + "node_modules/prosemirror-view": { + "version": "1.41.8", + "resolved": "https://registry.npmjs.org/prosemirror-view/-/prosemirror-view-1.41.8.tgz", + "integrity": "sha512-TnKDdohEatgyZNGCDWIdccOHXhYloJwbwU+phw/a23KBvJIR9lWQWW7WHHK3vBdOLDNuF7TaX98GObUZOWkOnA==", + "license": "MIT", + "dependencies": { + "prosemirror-model": "^1.20.0", + "prosemirror-state": "^1.0.0", + "prosemirror-transform": "^1.1.0" + } + }, "node_modules/proxy-addr": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", @@ -12633,6 +13243,12 @@ "integrity": "sha512-NS3levdsRIUOmiJ8FZWCP7LG3QpJyrs/TE0Zpf1yvZu8cAJJ6QMW92H1c7kWpdIHo8RvmLxN/o2JXTKHp74lUA==", "license": "Unlicense" }, + "node_modules/rope-sequence": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/rope-sequence/-/rope-sequence-1.3.4.tgz", + "integrity": "sha512-UT5EDe2cu2E/6O4igUr5PSFs23nvvukicWHx6GnOPlHAiiYbzNuCRQCuiUdHJQcqKalLKlrYJnjY0ySGsXNQXQ==", + "license": "MIT" + }, "node_modules/rou3": { "version": "0.7.12", "resolved": "https://registry.npmjs.org/rou3/-/rou3-0.7.12.tgz", @@ -14462,6 +15078,12 @@ "node": ">=0.10.0" } }, + "node_modules/w3c-keyname": { + "version": "2.2.8", + "resolved": "https://registry.npmjs.org/w3c-keyname/-/w3c-keyname-2.2.8.tgz", + "integrity": "sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ==", + "license": "MIT" + }, "node_modules/web-namespaces": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/web-namespaces/-/web-namespaces-2.0.1.tgz", diff --git a/frontend/package.json b/frontend/package.json index 25ce945..af9d251 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -16,6 +16,11 @@ "@streamdown/code": "^1.1.1", "@streamdown/math": "^1.0.2", "@streamdown/mermaid": "^1.0.2", + "@tiptap/extension-placeholder": "^3.25.0", + "@tiptap/extension-underline": "^3.25.0", + "@tiptap/pm": "^3.25.0", + "@tiptap/react": "^3.25.0", + "@tiptap/starter-kit": "^3.25.0", "@xyflow/react": "^12.10.2", "ai": "^6.0.193", "ansi-to-react": "^6.2.6",