Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

feat(ui): replace ChatInput textarea with Tiptap editor

Naiyuan Qingb74a5ea1a7f1
diff --git a/packages/ui/package.json b/packages/ui/package.json
index a1299e4de3..3bad8caacb 100644
--- a/packages/ui/package.json
+++ b/packages/ui/package.json
@@ -3,6 +3,7 @@
"version": "0.1.0",
"private": true,
"type": "module",
+ "sideEffects": ["**/*.css"],
"exports": {
"./globals.css": "./src/styles/globals.css",
"./postcss.config": "./postcss.config.mjs",
@@ -18,6 +19,10 @@
"@hugeicons/core-free-icons": "^3.1.1",
"@hugeicons/react": "^1.1.4",
"@multica/store": "workspace:*",
+ "@tiptap/extension-placeholder": "^3.19.0",
+ "@tiptap/pm": "^3.19.0",
+ "@tiptap/react": "^3.19.0",
+ "@tiptap/starter-kit": "^3.19.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"linkify-it": "^5.0.0",
diff --git a/packages/ui/src/components/chat-input.css b/packages/ui/src/components/chat-input.css
new file mode 100644
index 0000000000..f81b734e3e
--- /dev/null
+++ b/packages/ui/src/components/chat-input.css
@@ -0,0 +1,18 @@
+.chat-input-editor .ProseMirror {
+ outline: none;
+ min-height: 2.5rem;
+ max-height: 200px;
+ overflow-y: auto;
+}
+
+.chat-input-editor .ProseMirror p.is-editor-empty:first-child::before {
+ content: attr(data-placeholder);
+ float: left;
+ pointer-events: none;
+ height: 0;
+ color: var(--muted-foreground);
+}
+
+.chat-input-editor.is-disabled .ProseMirror {
+ cursor: not-allowed;
+}
diff --git a/packages/ui/src/components/chat-input.tsx b/packages/ui/src/components/chat-input.tsx
index ce5a3e94ea..2e4573b918 100644
--- a/packages/ui/src/components/chat-input.tsx
+++ b/packages/ui/src/components/chat-input.tsx
@@ -1,9 +1,20 @@
"use client";
-import { useRef } from "react";
+import { useRef, useEffect, useImperativeHandle, forwardRef } from "react";
+import { useEditor, EditorContent } from "@tiptap/react";
+import StarterKit from "@tiptap/starter-kit";
+import Placeholder from "@tiptap/extension-placeholder";
import { Button } from "@multica/ui/components/ui/button";
import { ArrowUpIcon } from "@hugeicons/core-free-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import { cn } from "@multica/ui/lib/utils";
+import "./chat-input.css";
+
+export interface ChatInputRef {
+ getText: () => string;
+ setText: (text: string) => void;
+ focus: () => void;
+ clear: () => void;
+}
interface ChatInputProps {
onSubmit?: (value: string) => void;
@@ -11,45 +22,105 @@ interface ChatInputProps {
placeholder?: string;
}
-export function ChatInput({ onSubmit, disabled, placeholder = "Type a message..." }: ChatInputProps) {
- const textareaRef = useRef<HTMLTextAreaElement>(null);
-
- const handleSubmit = () => {
- const value = textareaRef.current?.value ?? "";
- if (!value.trim()) return;
- onSubmit?.(value);
- textareaRef.current!.value = "";
- // reset height
- textareaRef.current!.style.height = "auto";
- };
-
- return (
- <div className={cn(
- "bg-card rounded-xl p-3 border border-border transition-colors",
- disabled && "cursor-not-allowed opacity-60"
- )}>
- <textarea
- ref={textareaRef}
- rows={2}
- disabled={disabled}
- placeholder={placeholder}
- onChange={(e) => {
- e.target.style.height = "auto";
- e.target.style.height = `${Math.min(e.target.scrollHeight, 200)}px`;
- }}
- onKeyDown={(e) => {
- if (e.key === "Enter" && !e.shiftKey && !e.nativeEvent.isComposing) {
- e.preventDefault();
- handleSubmit();
+export const ChatInput = forwardRef<ChatInputRef, ChatInputProps>(
+ function ChatInput({ onSubmit, disabled, placeholder = "Type a message..." }, ref) {
+ // Use ref to avoid stale closure in Tiptap keydown handler
+ const onSubmitRef = useRef(onSubmit);
+ onSubmitRef.current = onSubmit;
+
+ const editor = useEditor({
+ extensions: [
+ StarterKit.configure({
+ // Disable all rich-text features — plain text only
+ heading: false,
+ bold: false,
+ italic: false,
+ strike: false,
+ code: false,
+ codeBlock: false,
+ blockquote: false,
+ bulletList: false,
+ orderedList: false,
+ listItem: false,
+ horizontalRule: false,
+ }),
+ Placeholder.configure({ placeholder }),
+ ],
+ immediatelyRender: false,
+ editorProps: {
+ attributes: {
+ class:
+ "w-full resize-none bg-transparent px-1 py-1 text-sm text-foreground outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed",
+ },
+ handleKeyDown(_view, event) {
+ // Guard for IME composition (Chinese/Japanese input)
+ if (event.isComposing) return false;
+
+ if (event.key === "Enter" && !event.shiftKey) {
+ event.preventDefault();
+ const text = _view.state.doc.textContent;
+ if (!text.trim()) return true;
+ onSubmitRef.current?.(text);
+ // Clear editor after submit
+ _view.dispatch(
+ _view.state.tr
+ .delete(0, _view.state.doc.content.size)
+ .setMeta("addToHistory", false),
+ );
+ return true;
}
- }}
- className="w-full resize-none bg-transparent px-1 py-1 text-sm text-foreground outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed"
- />
- <div className="flex items-center justify-end pt-2">
- <Button size="icon" onClick={handleSubmit} disabled={disabled}>
- <HugeiconsIcon strokeWidth={2.5} icon={ArrowUpIcon} />
- </Button>
+
+ return false;
+ },
+ },
+ });
+
+ // Sync disabled state
+ useEffect(() => {
+ if (!editor) return;
+ editor.setEditable(!disabled);
+ }, [editor, disabled]);
+
+ // Sync placeholder
+ useEffect(() => {
+ if (!editor) return;
+ editor.extensionManager.extensions.find(
+ (ext) => ext.name === "placeholder",
+ )!.options.placeholder = placeholder;
+ // Force view update so placeholder re-renders
+ editor.view.dispatch(editor.state.tr);
+ }, [editor, placeholder]);
+
+ // Expose imperative API
+ useImperativeHandle(ref, () => ({
+ getText: () => editor?.state.doc.textContent ?? "",
+ setText: (text: string) => {
+ editor?.commands.setContent(text ? `<p>${text}</p>` : "");
+ },
+ focus: () => editor?.commands.focus(),
+ clear: () => editor?.commands.clearContent(),
+ }), [editor]);
+
+ const handleSubmit = () => {
+ if (!editor) return;
+ const text = editor.state.doc.textContent;
+ if (!text.trim()) return;
+ onSubmit?.(text);
+ editor.commands.clearContent();
+ };
+
+ return (
+ <div className={cn(
+ "chat-input-editor bg-card rounded-xl p-3 border border-border transition-colors",
+ disabled && "is-disabled cursor-not-allowed opacity-60",
+ )}>
+ <EditorContent editor={editor} />
+ <div className="flex items-center justify-end pt-2">
+ <Button size="icon" onClick={handleSubmit} disabled={disabled}>
+ <HugeiconsIcon strokeWidth={2.5} icon={ArrowUpIcon} />
+ </Button>
+ </div>
</div>
- </div>
- );
-}
+ );
+ },
+);
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 0eeabcd337..b498531690 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -476,6 +476,18 @@ importers:
'@multica/store':
specifier: workspace:*
version: link:../store
+ '@tiptap/extension-placeholder':
+ specifier: ^3.19.0
+ version: 3.19.0(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))
+ '@tiptap/pm':
+ specifier: ^3.19.0
+ version: 3.19.0
+ '@tiptap/react':
+ specifier: ^3.19.0
+ '@tiptap/starter-kit':
+ specifier: ^3.19.0
+ version: 3.19.0
class-variance-authority:
specifier: ^0.7.1
version: 0.7.1
@@ -2720,6 +2732,9 @@ packages:
'@react-navigation/[email protected]':
resolution: {integrity: sha512-1tJHg4KKRJuQ1/EvJxatrMef3NZXEPzwUIUZ3n1yJ2t7Q97siwRtbynRpQG9/69ebbtiZ8W3ScOZF/OmhvM4Rg==}
+ '@remirror/[email protected]':
+ resolution: {integrity: sha512-42aWfPrimMfDKDi4YegyS7x+/0tlzaqwPQCULLanv3DMIlu96KTJR0fM5isWX2UViOqlGnX6YFgqWepcX+XMNg==}
+
'@rn-primitives/[email protected]':
resolution: {integrity: sha512-a2DSce7TcSfcs0cCngLadAJOvx/+mdH9NRu+GxkX8NPRsGGhJvDEOqouMgDqLwx7z9mjXoUaZcwaVcemUSW9/A==}
peerDependencies:
@@ -3220,6 +3235,160 @@ packages:
peerDependencies:
vite: ^5.2.0 || ^6 || ^7
+ '@tiptap/[email protected]':
+ resolution: {integrity: sha512-bpqELwPW+DG8gWiD8iiFtSl4vIBooG5uVJod92Qxn3rA9nFatyXRr4kNbMJmOZ66ezUvmCjXVe/5/G4i5cyzKA==}
+ peerDependencies:
+ '@tiptap/pm': ^3.19.0
+
+ '@tiptap/[email protected]':
+ resolution: {integrity: sha512-y3UfqY9KD5XwWz3ndiiJ089Ij2QKeiXy/g1/tlAN/F1AaWsnkHEHMLxCP1BIqmMpwsX7rZjMLN7G5Lp7c9682A==}
+ peerDependencies:
+ '@tiptap/core': ^3.19.0
+
+ '@tiptap/[email protected]':
+ resolution: {integrity: sha512-UZgb1d0XK4J/JRIZ7jW+s4S6KjuEDT2z1PPM6ugcgofgJkWQvRZelCPbmtSFd3kwsD+zr9UPVgTh9YIuGQ8t+Q==}
+ peerDependencies:
+ '@tiptap/core': ^3.19.0
+
+ '@tiptap/[email protected]':
+ resolution: {integrity: sha512-klNVIYGCdznhFkrRokzGd6cwzoi8J7E5KbuOfZBwFwhMKZhlz/gJfKmYg9TJopeUhrr2Z9yHgWTk8dh/YIJCdQ==}
+ peerDependencies:
+ '@tiptap/core': ^3.19.0
+ '@tiptap/pm': ^3.19.0
+
+ '@tiptap/[email protected]':
+ resolution: {integrity: sha512-F9uNnqd0xkJbMmRxVI5RuVxwB9JaCH/xtRqOUNQZnRBt7IdAElCY+Dvb4hMCtiNv+enGM/RFGJuFHR9TxmI7rw==}
+ peerDependencies:
+ '@tiptap/extension-list': ^3.19.0
+
+ '@tiptap/[email protected]':
+ resolution: {integrity: sha512-b/2qR+tMn8MQb+eaFYgVk4qXnLNkkRYmwELQ8LEtEDQPxa5Vl7J3eu8+4OyoIFhZrNDZvvoEp80kHMCP8sI6rg==}
+ peerDependencies:
+ '@tiptap/core': ^3.19.0
+ '@tiptap/pm': ^3.19.0
+
+ '@tiptap/[email protected]':
+ resolution: {integrity: sha512-2kqqQIXBXj2Or+4qeY3WoE7msK+XaHKL6EKOcKlOP2BW8eYqNTPzNSL+PfBDQ3snA7ljZQkTs/j4GYDj90vR1A==}
+ peerDependencies:
+ '@tiptap/core': ^3.19.0
+
+ '@tiptap/[email protected]':
+ resolution: {integrity: sha512-AOf0kHKSFO0ymjVgYSYDncRXTITdTcrj1tqxVazrmO60KNl1Rc2dAggDvIVTEBy5NvceF0scc7q3sE/5ZtVV7A==}
+ peerDependencies:
+ '@tiptap/core': ^3.19.0
+
+ '@tiptap/[email protected]':
+ resolution: {integrity: sha512-sf3dEZXiLvsGqVK2maUIzXY6qtYYCvBumag7+VPTMGQ0D4hiZ1X/4ukt4+6VXDg5R2WP1CoIt/QvUetUjWNhbQ==}
+ peerDependencies:
+ '@tiptap/extensions': ^3.19.0
+
+ '@tiptap/[email protected]':
+ resolution: {integrity: sha512-JaoEkVRkt+Slq3tySlIsxnMnCjS0L5n1CA1hctjLy0iah8edetj3XD5mVv5iKqDzE+LIjF4nwLRRVKJPc8hFBg==}
+ peerDependencies:
+ '@floating-ui/dom': ^1.0.0
+ '@tiptap/core': ^3.19.0
+ '@tiptap/pm': ^3.19.0
+
+ '@tiptap/[email protected]':
+ resolution: {integrity: sha512-w7DACS4oSZaDWjz7gropZHPc9oXqC9yERZTcjWxyORuuIh1JFf0TRYspleK+OK28plK/IftojD/yUDn1MTRhvA==}
+ peerDependencies:
+ '@tiptap/extensions': ^3.19.0
+
+ '@tiptap/[email protected]':
+ resolution: {integrity: sha512-lAmQraYhPS5hafvCl74xDB5+bLuNwBKIEsVoim35I0sDJj5nTrfhaZgMJ91VamMvT+6FF5f1dvBlxBxAWa8jew==}
+ peerDependencies:
+ '@tiptap/core': ^3.19.0
+
+ '@tiptap/[email protected]':
+ resolution: {integrity: sha512-uLpLlfyp086WYNOc0ekm1gIZNlEDfmzOhKzB0Hbyi6jDagTS+p9mxUNYeYOn9jPUxpFov43+Wm/4E24oY6B+TQ==}
+ peerDependencies:
+ '@tiptap/core': ^3.19.0
+
+ '@tiptap/[email protected]':
+ resolution: {integrity: sha512-iqUHmgMGhMgYGwG6L/4JdelVQ5Mstb4qHcgTGd/4dkcUOepILvhdxajPle7OEdf9sRgjQO6uoAU5BVZVC26+ng==}
+ peerDependencies:
+ '@tiptap/core': ^3.19.0
+ '@tiptap/pm': ^3.19.0
+
+ '@tiptap/[email protected]':
+ resolution: {integrity: sha512-6GffxOnS/tWyCbDkirWNZITiXRta9wrCmrfa4rh+v32wfaOL1RRQNyqo9qN6Wjyl1R42Js+yXTzTTzZsOaLMYA==}
+ peerDependencies:
+ '@tiptap/core': ^3.19.0
+
+ '@tiptap/[email protected]':
+ resolution: {integrity: sha512-HEGDJnnCPfr7KWu7Dsq+eRRe/mBCsv6DuI+7fhOCLDJjjKzNgrX2abbo/zG3D/4lCVFaVb+qawgJubgqXR/Smw==}
+ peerDependencies:
+ '@tiptap/core': ^3.19.0
+ '@tiptap/pm': ^3.19.0
+
+ '@tiptap/[email protected]':
+ resolution: {integrity: sha512-VsSKuJz4/Tb6ZmFkXqWpDYkRzmaLTyE6dNSEpNmUpmZ32sMqo58mt11/huADNwfBFB0Ve7siH/VnFNIJYY3xvg==}
+ peerDependencies:
+ '@tiptap/extension-list': ^3.19.0
+
+ '@tiptap/[email protected]':
+ resolution: {integrity: sha512-bxgmAgA3RzBGA0GyTwS2CC1c+QjkJJq9hC+S6PSOWELGRiTbwDN3MANksFXLjntkTa0N5fOnL27vBHtMStURqw==}
+ peerDependencies:
+ '@tiptap/extension-list': ^3.19.0
+
+ '@tiptap/[email protected]':
+ resolution: {integrity: sha512-N6nKbFB2VwMsPlCw67RlAtYSK48TAsAUgjnD+vd3ieSlIufdQnLXDFUP6hFKx9mwoUVUgZGz02RA6bkxOdYyTw==}
+ peerDependencies:
+ '@tiptap/core': ^3.19.0
+ '@tiptap/pm': ^3.19.0
+
+ '@tiptap/[email protected]':
+ resolution: {integrity: sha512-cxGsINquwHYE1kmhAcLNLHAofmoDEG6jbesR5ybl7tU5JwtKVO7S/xZatll2DU1dsDAXWPWEeeMl4e/9svYjCg==}
+ peerDependencies:
+ '@tiptap/extension-list': ^3.19.0
+
+ '@tiptap/[email protected]':
+ resolution: {integrity: sha512-xWa6gj82l5+AzdYyrSk9P4ynySaDzg/SlR1FarXE5yPXibYzpS95IWaVR0m2Qaz7Rrk+IiYOTGxGRxcHLOelNg==}
+ peerDependencies:
+ '@tiptap/core': ^3.19.0
+
+ '@tiptap/[email protected]':
+ resolution: {integrity: sha512-i15OfgyI4IDCYAcYSKUMnuZkYuUInfanjf9zquH8J2BETiomf/jZldVCp/QycMJ8DOXZ38fXDc99wOygnSNySg==}
+ peerDependencies:
+ '@tiptap/extensions': ^3.19.0
+
+ '@tiptap/[email protected]':
+ resolution: {integrity: sha512-xYpabHsv7PccLUBQaP8AYiFCnYbx6P93RHPd0lgNwhdOjYFd931Zy38RyoxPHAgbYVmhf1iyx7lpuLtBnhS5dA==}
+ peerDependencies:
+ '@tiptap/core': ^3.19.0
+
+ '@tiptap/[email protected]':
+ resolution: {integrity: sha512-K95+SnbZy0h6hNFtfy23n8t/nOcTFEf69In9TSFVVmwn/Nwlke+IfiESAkqbt1/7sKJeegRXYO7WzFEmFl9Q/g==}
+ peerDependencies:
+ '@tiptap/core': ^3.19.0
+
+ '@tiptap/[email protected]':
+ resolution: {integrity: sha512-800MGEWfG49j10wQzAFiW/ele1HT04MamcL8iyuPNu7ZbjbGN2yknvdrJlRy7hZlzIrVkZMr/1tz62KN33VHIw==}
+ peerDependencies:
+ '@tiptap/core': ^3.19.0
+
+ '@tiptap/[email protected]':
+ resolution: {integrity: sha512-ZmGUhLbMWaGqnJh2Bry+6V4M6gMpUDYo4D1xNux5Gng/E/eYtc+PMxMZ/6F7tNTAuujLBOQKj6D+4SsSm457jw==}
+ peerDependencies:
+ '@tiptap/core': ^3.19.0
+ '@tiptap/pm': ^3.19.0
+
+ '@tiptap/[email protected]':
+ resolution: {integrity: sha512-789zcnM4a8OWzvbD2DL31d0wbSm9BVeO/R7PLQwLIGysDI3qzrcclyZ8yhqOEVuvPitRRwYLq+mY14jz7kY4cw==}
+
+ '@tiptap/[email protected]':
+ resolution: {integrity: sha512-GQQMUUXMpNd8tRjc1jDK3tDRXFugJO7C928EqmeBcBzTKDrFIJ3QUoZKEPxUNb6HWhZ2WL7q00fiMzsv4DNSmg==}
+ peerDependencies:
+ '@tiptap/core': ^3.19.0
+ '@tiptap/pm': ^3.19.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
+
+ '@tiptap/[email protected]':
+ resolution: {integrity: sha512-dTCkHEz+Y8ADxX7h+xvl6caAj+3nII/wMB1rTQchSuNKqJTOrzyUsCWm094+IoZmLT738wANE0fRIgziNHs/ug==}
+
'@tokenizer/[email protected]':
resolution: {integrity: sha512-2mAv+8pkG6GIZiF1kNg1jAjh27IDxEPKwdGul3snfztFerfPGI1LjDezZp3i7BElXompqEtPmoPx6c2wgtWsOA==}
engines: {node: '>=18'}
@@ -3309,9 +3478,15 @@ packages:
resolution: {integrity: sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==}
+ '@types/[email protected]':
+ resolution: {integrity: sha512-promo4eFwuiW+TfGxhi+0x3czqTYJkG8qB17ZUJiVF10Xm7NLVRSLUsfRTU/6h1e24VvRnXCx+hG7li58lkzog==}
+
resolution: {integrity: sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==}
+ '@types/[email protected]':
+ resolution: {integrity: sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==}
+
resolution: {integrity: sha512-lfU4b34HOri+kAY5UheuFMWPDOI+OPceBSHZKp69gEyTL/mmJ4cnU6Y/rlme3UL3GyOn6Y42hyIEw0/q8sWx5w==}
@@ -3356,6 +3531,9 @@ packages:
resolution: {integrity: sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==}
+ '@types/[email protected]':
+ resolution: {integrity: sha512-zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg==}
+
resolution: {integrity: sha512-HVyk8nj2m+jcFRNazzqyVKiZezyhDKrGUA3jlEcg/nZ6Ms+qHwocba1Y/AaVaznJTAM9xpdFSh+ptbNrhOGvZA==}
deprecated: This is a stub types definition. uuid provides its own type definitions, so you do not need this installed.
@@ -4388,6 +4566,9 @@ packages:
resolution: {integrity: sha512-iX3mfgcTMIq3ZKLIsVFAbv7+Mc10kxabAGQb8HvjA1o3T1PIYprbakQ65d3I+2HGHt6nSKkM9PYjgoJO2KcFBQ==}
+ resolution: {integrity: sha512-VQ2MBenTq1fWZUH9DJNGti7kKv6EeAuYr3cLwxUWhIu1baTaXh4Ib5W2CqHVqib4/MqbYGJqiL3Zb8GJZr3l4g==}
+
resolution: {integrity: sha512-Q+xVJLoGOeIMXZmbUK4HYk+69cQH6LudR0Vu/pRm2YlU/hDV9CiS0gKUMaWY5f2NeUH9C1nV3bsTlCo0FsTV1Q==}
@@ -5204,6 +5385,10 @@ packages:
resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==}
+ resolution: {integrity: sha512-jt2DW/aNFNwke7AUd+Z+e6pz39KO5rzdbbFCg2sGafS4mk13MI7Z8O5z9cADNn5lhGODIgLwug6TZO2ctf7kcw==}
+ engines: {node: '>=6.0.0'}
+
resolution: {integrity: sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==}
engines: {node: '>=8.6.0'}
@@ -6350,6 +6535,9 @@ packages:
resolution: {integrity: sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==}
+ resolution: {integrity: sha512-NT1CJtq3hHIreOianA8aSXn6Cw0JzYOuDQbOrSPe7gqFnCpKP++MQe3ODgO3oh2GJFORkAAdqredOa60z63GbA==}
+
resolution: {integrity: sha512-v5xlu8eHD1+6r8EHTg6hfmO97LN8ugKtiXcy5e6oN72iD2r6u0RPfLl6fxM+7Wnh2ZRq15o0russMst44WauPA==}
engines: {node: '>=13.2.0'}
@@ -6446,6 +6634,10 @@ packages:
resolution: {integrity: sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==}
+ resolution: {integrity: sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==}
+ hasBin: true
+
resolution: {integrity: sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw==}
@@ -6513,6 +6705,9 @@ packages:
resolution: {integrity: sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==}
+ resolution: {integrity: sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==}
+
resolution: {integrity: sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==}
engines: {node: '>= 0.6'}
@@ -7055,6 +7250,9 @@ packages:
resolution: {integrity: sha512-weP+BZ8MVNnlCm8c0Qdc1WSWq4Qn7I+9CJGm7Qali6g44e/PUzbjNqJX5NJ9ljlNMosfJvg1fKEGILklK9cwnw==}
engines: {node: '>=18'}
+ resolution: {integrity: sha512-TvAWxi0nDe1j/rtMcWcIj94+Ffe6n7zhow33h40SKxmsmozs6dz/e+EajymfoFcHd7sxNn8yHM8839uixMOV6g==}
+
resolution: {integrity: sha512-+Sl2UErvtsoajRDKCE5/dBz4DIvHXQQnAxtQTF04OJxY0+DyZXSo5P5Bb7XYWOh81syohlYL24hbDwxedPUJCA==}
@@ -7350,6 +7548,64 @@ packages:
resolution: {integrity: sha512-TwEZ+X+yCJmYfL7TPUOcvBZ4QfoT5YenQiJuX//0th53DE6w0xxLEtfK3iyryQFddXuvkIk51EEgrJQ0WJkOmQ==}
+ resolution: {integrity: sha512-j0kORIBm8ayJNl3zQvD1TTPHJX3g042et6y/KQhZhnPrruO8exkTgG8X+NRpj7kIyMMEx74Xb3DyMIBtO0IKkQ==}
+
+ resolution: {integrity: sha512-4SnynYR9TTYaQVXd/ieUvsVV4PDMBzrq2xPUWutHivDuOshZXqQ5rGbZM84HEaXKbLdItse7weMGOUdDVcLKEQ==}
+
+ resolution: {integrity: sha512-rT7qZnQtx5c0/y/KlYaGvtG411S97UaL6gdp6RIZ23DLHanMYLyfGBV5DtSnZdthQql7W+lEVbpSfwtO8T+L2w==}
+
+ resolution: {integrity: sha512-CCk6Gyx9+Tt2sbYk5NK0nB1ukHi2ryaRgadV/LvyNuO3ena1payM2z6Cg0vO1ebK8cxbzo41ku2DE5Axj1Zuiw==}
+
+ resolution: {integrity: sha512-z00qvurSdCEWUIulij/isHaqu4uLS8r/Fi61IbjdIPJEonQgggbJsLnstW7Lgdk4zQ68/yr6B6bf7sJXowIgdQ==}
+
+ resolution: {integrity: sha512-zlzTiH01eKA55UAf1MEjtssJeHnGxO0j4K4Dpx+gnmX9n+SHNlDqI2oO1Kv1iPN5B1dm5fsljCfqKF9nFL6HRg==}
+
+ resolution: {integrity: sha512-7wj4uMjKaXWAQ1CDgxNzNtR9AlsuwzHfdFH1ygEHA2KHF2DOEaXl1CJfNPAKCg9qNEh4rum975QLaCiQPyY6Fw==}
+
+ resolution: {integrity: sha512-4HucRlpiLd1IPQQXNqeo81BGtkY8Ai5smHhKW9jjPKRc2wQIxksg7Hl1tTI2IfT2B/LgX6bfYvXxEpJl7aKYKw==}
+
+ resolution: {integrity: sha512-D98dm4cQ3Hs6EmjK500TdAOew4Z03EV71ajEFiWra3Upr7diytJsjF4mPV2dW+eK5uNectiRj0xFxYI9NLXDbw==}
+
+ resolution: {integrity: sha512-qwXzynnpBIeg1D7BAtjOusR+81xCp53j7iWu/IargiRZqRjGIlQuu1f3jFi+ehrHhWMLoyOQTSRx/IWZJqOYtQ==}
+
+ resolution: {integrity: sha512-PIM7E43PBxKce8OQeezAs9j4TP+5yDpZVbuurd1h5phUxEKIu+G2a+EUZzIC5nS1mJktDJWzbqS23n1tsAf5QA==}
+
+ resolution: {integrity: sha512-ELxP4TlX3yr2v5rM7Sb70SqStq5NvI15c0j9j/gjsrO5vaw+fnnpovCLEGIcpeGfifkuqJwl4fon6b+KdrODYQ==}
+
+ resolution: {integrity: sha512-927lFx/uwyQaGwJxLWCZRkjXG0p48KpMj6ueoYiu4JX05GGuGcgzAy62dfiV8eFZftgyBUvLx76RsMe20fJl+Q==}
+
+ resolution: {integrity: sha512-6jiYHH2CIGbCfnxdHbXZ12gySFY/fz/ulZE333G6bPqIZ4F+TXo9ifiR86nAHpWnfoNjOb3o5ESi7J8Uz1jXHw==}
+
+ resolution: {integrity: sha512-V/0cDCsHKHe/tfWkeCmthNUcEp1IVO3p6vwN8XtwE9PZQLAZJigbw3QoraAdfJPir4NKJtNvOB8oYGKRl+t0Dw==}
+
+ resolution: {integrity: sha512-xiun5/3q0w5eRnGYfNlW1uU9W6x5MoFKWwq/0TIRgt09lv7Hcser2QYV8t4muXbEr+Fwo0geYn79Xs4GKywrRQ==}
+ peerDependencies:
+ prosemirror-model: ^1.22.1
+ prosemirror-state: ^1.4.2
+ prosemirror-view: ^1.33.8
+
+ resolution: {integrity: sha512-4I7Ce4KpygXb9bkiPS3hTEk4dSHorfRw8uI0pE8IhxlK2GXsqv5tIA7JUSxtSu7u8APVOTtbUBxTmnHIxVkIJw==}
+
+ resolution: {integrity: sha512-UDQbIPnDrjE8tqUBbPmCOZgtd75htE6W3r0JCmY9bL6W1iemDM37MZEKC49d+tdQ0v/CKx4gjxLoLsfkD2NiZA==}
+
resolution: {integrity: sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==}
engines: {node: '>= 0.10'}
@@ -7364,6 +7620,10 @@ packages:
resolution: {integrity: sha512-todwxLMY7/heScKmntwQG8CXVkWUOdYxIvY2s0VWAAMh/nd8SoYiRaKjlr7+iCs984f2P8zvrfWcDDYVb73NfA==}
+ resolution: {integrity: sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==}
+ engines: {node: '>=6'}
+
resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==}
engines: {node: '>=6'}
@@ -7768,6 +8028,9 @@ packages:
engines: {node: '>=18.0.0', npm: '>=8.0.0'}
hasBin: true
+ resolution: {integrity: sha512-UT5EDe2cu2E/6O4igUr5PSFs23nvvukicWHx6GnOPlHAiiYbzNuCRQCuiUdHJQcqKalLKlrYJnjY0ySGsXNQXQ==}
+
resolution: {integrity: sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==}
engines: {node: '>= 18'}
@@ -8832,6 +9095,9 @@ packages:
resolution: {integrity: sha512-gQpnTgkubC6hQgdIcRdYGDSDc+SaujOdyesZQMv6JlfQee/9Mp0Qhnys6WxDWvQnL5WZdT7o2Ul187aSt0Rq+w==}
+ resolution: {integrity: sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ==}
+
resolution: {integrity: sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==}
@@ -11932,6 +12198,8 @@ snapshots:
dependencies:
nanoid: 3.3.11
+ '@remirror/[email protected]': {}
+
dependencies:
react: 19.1.0
@@ -12475,6 +12743,187 @@ snapshots:
tailwindcss: 4.1.18
+ dependencies:
+ '@tiptap/pm': 3.19.0
+
+ dependencies:
+ '@tiptap/core': 3.19.0(@tiptap/[email protected])
+
+ dependencies:
+ '@tiptap/core': 3.19.0(@tiptap/[email protected])
+
+ dependencies:
+ '@floating-ui/dom': 1.7.5
+ '@tiptap/core': 3.19.0(@tiptap/[email protected])
+ '@tiptap/pm': 3.19.0
+ optional: true
+
+ dependencies:
+ '@tiptap/extension-list': 3.19.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])
+
+ dependencies:
+ '@tiptap/core': 3.19.0(@tiptap/[email protected])
+ '@tiptap/pm': 3.19.0
+
+ dependencies:
+ '@tiptap/core': 3.19.0(@tiptap/[email protected])
+
+ dependencies:
+ '@tiptap/core': 3.19.0(@tiptap/[email protected])
+
+ dependencies:
+ '@tiptap/extensions': 3.19.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])
+
+ dependencies:
+ '@floating-ui/dom': 1.7.5
+ '@tiptap/core': 3.19.0(@tiptap/[email protected])
+ '@tiptap/pm': 3.19.0
+ optional: true
+
+ dependencies:
+ '@tiptap/extensions': 3.19.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])
+
+ dependencies:
+ '@tiptap/core': 3.19.0(@tiptap/[email protected])
+
+ dependencies:
+ '@tiptap/core': 3.19.0(@tiptap/[email protected])
+
+ dependencies:
+ '@tiptap/core': 3.19.0(@tiptap/[email protected])
+ '@tiptap/pm': 3.19.0
+
+ dependencies:
+ '@tiptap/core': 3.19.0(@tiptap/[email protected])
+
+ dependencies:
+ '@tiptap/core': 3.19.0(@tiptap/[email protected])
+ '@tiptap/pm': 3.19.0
+ linkifyjs: 4.3.2
+
+ dependencies:
+ '@tiptap/extension-list': 3.19.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])
+
+ dependencies:
+ '@tiptap/extension-list': 3.19.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])
+
+ dependencies:
+ '@tiptap/core': 3.19.0(@tiptap/[email protected])
+ '@tiptap/pm': 3.19.0
+
+ dependencies:
+ '@tiptap/extension-list': 3.19.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])
+
+ dependencies:
+ '@tiptap/core': 3.19.0(@tiptap/[email protected])
+
+ dependencies:
+ '@tiptap/extensions': 3.19.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])
+
+ dependencies:
+ '@tiptap/core': 3.19.0(@tiptap/[email protected])
+
+ dependencies:
+ '@tiptap/core': 3.19.0(@tiptap/[email protected])
+
+ dependencies:
+ '@tiptap/core': 3.19.0(@tiptap/[email protected])
+
+ dependencies:
+ '@tiptap/core': 3.19.0(@tiptap/[email protected])
+ '@tiptap/pm': 3.19.0
+
+ '@tiptap/[email protected]':
+ dependencies:
+ prosemirror-changeset: 2.3.1
+ prosemirror-collab: 1.3.1
+ prosemirror-commands: 1.7.1
+ prosemirror-dropcursor: 1.8.2
+ prosemirror-gapcursor: 1.4.0
+ prosemirror-history: 1.5.0
+ prosemirror-inputrules: 1.5.1
+ prosemirror-keymap: 1.2.3
+ prosemirror-markdown: 1.13.4
+ prosemirror-menu: 1.2.5
+ prosemirror-model: 1.25.4
+ prosemirror-schema-basic: 1.2.4
+ prosemirror-schema-list: 1.5.1
+ prosemirror-state: 1.4.4
+ prosemirror-tables: 1.8.5
+ prosemirror-trailing-node: 3.0.0([email protected])([email protected])([email protected])
+ prosemirror-transform: 1.11.0
+ prosemirror-view: 1.41.5
+
+ dependencies:
+ '@tiptap/core': 3.19.0(@tiptap/[email protected])
+ '@tiptap/pm': 3.19.0
+ '@types/react': 19.1.17
+ '@types/react-dom': 19.2.3(@types/[email protected])
+ '@types/use-sync-external-store': 0.0.6
+ fast-equals: 5.4.0
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ use-sync-external-store: 1.6.0([email protected])
+ optionalDependencies:
+ '@tiptap/extension-bubble-menu': 3.19.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])
+ '@tiptap/extension-floating-menu': 3.19.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.19.0(@tiptap/[email protected])
+ '@tiptap/extension-blockquote': 3.19.0(@tiptap/[email protected](@tiptap/[email protected]))
+ '@tiptap/extension-bold': 3.19.0(@tiptap/[email protected](@tiptap/[email protected]))
+ '@tiptap/extension-bullet-list': 3.19.0(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))
+ '@tiptap/extension-code': 3.19.0(@tiptap/[email protected](@tiptap/[email protected]))
+ '@tiptap/extension-code-block': 3.19.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])
+ '@tiptap/extension-document': 3.19.0(@tiptap/[email protected](@tiptap/[email protected]))
+ '@tiptap/extension-dropcursor': 3.19.0(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))
+ '@tiptap/extension-gapcursor': 3.19.0(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))
+ '@tiptap/extension-hard-break': 3.19.0(@tiptap/[email protected](@tiptap/[email protected]))
+ '@tiptap/extension-heading': 3.19.0(@tiptap/[email protected](@tiptap/[email protected]))
+ '@tiptap/extension-horizontal-rule': 3.19.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])
+ '@tiptap/extension-italic': 3.19.0(@tiptap/[email protected](@tiptap/[email protected]))
+ '@tiptap/extension-link': 3.19.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])
+ '@tiptap/extension-list': 3.19.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])
+ '@tiptap/extension-list-item': 3.19.0(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))
+ '@tiptap/extension-list-keymap': 3.19.0(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))
+ '@tiptap/extension-ordered-list': 3.19.0(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))
+ '@tiptap/extension-paragraph': 3.19.0(@tiptap/[email protected](@tiptap/[email protected]))
+ '@tiptap/extension-strike': 3.19.0(@tiptap/[email protected](@tiptap/[email protected]))
+ '@tiptap/extension-text': 3.19.0(@tiptap/[email protected](@tiptap/[email protected]))
+ '@tiptap/extension-underline': 3.19.0(@tiptap/[email protected](@tiptap/[email protected]))
+ '@tiptap/extensions': 3.19.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])
+ '@tiptap/pm': 3.19.0
+
'@tokenizer/[email protected]':
dependencies:
debug: 4.4.3
@@ -12584,10 +13033,17 @@ snapshots:
'@types/[email protected]': {}
+ '@types/[email protected]':
+ dependencies:
+ '@types/linkify-it': 5.0.0
+ '@types/mdurl': 2.0.0
+
dependencies:
'@types/unist': 3.0.3
+ '@types/[email protected]': {}
+
'@types/[email protected]': {}
'@types/[email protected]': {}
@@ -12630,6 +13086,8 @@ snapshots:
'@types/[email protected]': {}
+ '@types/[email protected]': {}
+
dependencies:
uuid: 13.0.0
@@ -13845,6 +14303,8 @@ snapshots:
buffer: 5.7.1
optional: true
+
dependencies:
node-fetch: 2.7.0
@@ -14459,7 +14919,7 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
debug: 3.2.7
optionalDependencies:
@@ -14490,7 +14950,7 @@ snapshots:
doctrine: 2.1.0
eslint: 9.39.2([email protected])
eslint-import-resolver-node: 0.3.9
hasown: 2.0.2
is-core-module: 2.16.1
is-glob: 4.0.3
@@ -14988,6 +15448,8 @@ snapshots:
+
dependencies:
'@nodelib/fs.stat': 2.0.5
@@ -16230,6 +16692,8 @@ snapshots:
dependencies:
uc.micro: 2.1.0
+
@@ -16313,6 +16777,15 @@ snapshots:
dependencies:
tmpl: 1.0.5
+ dependencies:
+ argparse: 2.0.1
+ entities: 4.5.0
+ linkify-it: 5.0.0
+ mdurl: 2.0.0
+ punycode.js: 2.3.1
+ uc.micro: 2.1.0
+
@@ -16481,6 +16954,8 @@ snapshots:
+
@@ -17242,6 +17717,8 @@ snapshots:
string-width: 7.2.0
strip-ansi: 7.1.2
+
@@ -17544,6 +18021,109 @@ snapshots:
+ dependencies:
+ prosemirror-transform: 1.11.0
+
+ dependencies:
+ prosemirror-state: 1.4.4
+
+ dependencies:
+ prosemirror-model: 1.25.4
+ prosemirror-state: 1.4.4
+ prosemirror-transform: 1.11.0
+
+ dependencies:
+ prosemirror-state: 1.4.4
+ prosemirror-transform: 1.11.0
+ prosemirror-view: 1.41.5
+
+ dependencies:
+ prosemirror-keymap: 1.2.3
+ prosemirror-model: 1.25.4
+ prosemirror-state: 1.4.4
+ prosemirror-view: 1.41.5
+
+ dependencies:
+ prosemirror-state: 1.4.4
+ prosemirror-transform: 1.11.0
+ prosemirror-view: 1.41.5
+ rope-sequence: 1.3.4
+
+ dependencies:
+ prosemirror-state: 1.4.4
+ prosemirror-transform: 1.11.0
+
+ dependencies:
+ prosemirror-state: 1.4.4
+ w3c-keyname: 2.2.8
+
+ dependencies:
+ '@types/markdown-it': 14.1.2
+ markdown-it: 14.1.0
+ prosemirror-model: 1.25.4
+
+ dependencies:
+ crelt: 1.0.6
+ prosemirror-commands: 1.7.1
+ prosemirror-history: 1.5.0
+ prosemirror-state: 1.4.4
+
+ dependencies:
+ orderedmap: 2.1.1
+
+ dependencies:
+ prosemirror-model: 1.25.4
+
+ dependencies:
+ prosemirror-model: 1.25.4
+ prosemirror-state: 1.4.4
+ prosemirror-transform: 1.11.0
+
+ dependencies:
+ prosemirror-model: 1.25.4
+ prosemirror-transform: 1.11.0
+ prosemirror-view: 1.41.5
+
+ dependencies:
+ prosemirror-keymap: 1.2.3
+ prosemirror-model: 1.25.4
+ prosemirror-state: 1.4.4
+ prosemirror-transform: 1.11.0
+ prosemirror-view: 1.41.5
+
+ dependencies:
+ '@remirror/core-constants': 3.0.0
+ escape-string-regexp: 4.0.0
+ prosemirror-model: 1.25.4
+ prosemirror-state: 1.4.4
+ prosemirror-view: 1.41.5
+
+ dependencies:
+ prosemirror-model: 1.25.4
+
+ dependencies:
+ prosemirror-model: 1.25.4
+ prosemirror-state: 1.4.4
+ prosemirror-transform: 1.11.0
+
dependencies:
forwarded: 0.2.0
@@ -17569,6 +18149,8 @@ snapshots:
end-of-stream: 1.4.5
once: 1.4.0
+
@@ -18112,6 +18694,8 @@ snapshots:
'@rollup/rollup-win32-x64-msvc': 4.57.0
fsevents: 2.3.3
+
dependencies:
debug: 4.4.3
@@ -19302,6 +19886,8 @@ snapshots:
+
dependencies:
makeerror: 1.0.12