The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Rich text messages and bounties (#3067)
Tim Wilson51b591645ccc
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/add-edit-bounty-sheet.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/add-edit-bounty-sheet.tsxindex 2ddae65358..896d23e536 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/add-edit-bounty-sheet.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/add-edit-bounty-sheet.tsx@@ -24,6 +24,9 @@ import {CardSelector,CardSelectorOption,NumberStepper,+ RichTextArea,+ RichTextProvider,+ RichTextToolbar,Sheet,SmartDateTimePicker,Switch,@@ -803,31 +806,45 @@ function BountySheetContent({ setIsOpen, bounty }: BountySheetProps) {)}<div>- <label- htmlFor="description"- className="text-sm font-medium text-neutral-800"- >+ <label className="text-sm font-medium text-neutral-800">Details<span className="ml-1 font-normal text-neutral-500">(optional)</span></label><div className="mt-2">- <textarea- id="description"- rows={3}- maxLength={BOUNTY_DESCRIPTION_MAX_LENGTH}- className={cn(- "block w-full rounded-md border-neutral-300 text-neutral-900 placeholder-neutral-400 focus:border-neutral-500 focus:outline-none focus:ring-neutral-500 sm:text-sm",- errors.description &&- "border-red-600 focus:border-red-500 focus:ring-red-600",+ <Controller+ control={control}+ name="description"+ render={({ field }) => (+ <RichTextProvider+ features={["bold", "italic", "links"]}+ markdown+ placeholder="Provide any bounty requirements to the partner"+ editorClassName="block max-h-24 overflow-hidden w-full resize-none border-none p-3 text-base sm:text-sm"+ initialValue={field.value}+ onChange={(editor) =>+ field.onChange(+ (editor as any).getMarkdown() || null,+ )+ }+ >+ <div+ className={cn(+ "border-border-subtle overflow-hidden rounded-md border border-neutral-300 focus-within:border-neutral-500 focus-within:ring-1 focus-within:ring-neutral-500",+ errors.description &&+ "border-red-600 focus-within:border-red-500 focus-within:ring-red-600",+ )}+ >+ <div className="flex flex-col">+ <RichTextArea />+ <RichTextToolbar className="px-1 pb-1" />+ </div>+ </div>+ </RichTextProvider>)}- placeholder="Provide any bounty requirements to the partner"- {...register("description", {- setValueAs: (value) =>- value === "" ? null : value,- })}/>+<div className="mt-1 text-left"><span className="text-xs text-neutral-400">{description?.length || 0} /{" "}diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/campaigns/[campaignId]/campaign-editor.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/campaigns/[campaignId]/campaign-editor.tsxindex 75db9c2424..ab1493e601 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/campaigns/[campaignId]/campaign-editor.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/campaigns/[campaignId]/campaign-editor.tsx@@ -15,6 +15,8 @@ import {Lock,PaperPlane,RichTextArea,+ RichTextProvider,+ RichTextToolbar,SmartDateTimePicker,StatusBadge,Tooltip,@@ -506,7 +508,7 @@ export function CampaignEditor({ campaign }: { campaign: Campaign }) {control={control}name="bodyJson"render={({ field }) => (- <RichTextArea+ <RichTextProviderref={editorRef}editorClassName="-m-2 min-h-[200px] p-2"initialValue={field.value}@@ -548,7 +550,12 @@ export function CampaignEditor({ campaign }: { campaign: Campaign }) {return null;}}- />+ >+ <div className="flex flex-col gap-4">+ <RichTextToolbar />+ <RichTextArea />+ </div>+ </RichTextProvider>)}/></div>diff --git a/apps/web/ui/messages/messages-panel.tsx b/apps/web/ui/messages/messages-panel.tsxindex 8d13b3c5c4..299310860f 100644--- a/apps/web/ui/messages/messages-panel.tsx+++ b/apps/web/ui/messages/messages-panel.tsx@@ -8,9 +8,10 @@ import {useMediaQuery,} from "@dub/ui";import { OG_AVATAR_URL, cn, formatDate } from "@dub/utils";-import Linkify from "linkify-react";import { ChevronRight } from "lucide-react";import { Fragment, useMemo, useRef, useState } from "react";+import ReactMarkdown from "react-markdown";+import remarkGfm from "remark-gfm";import { MessageInput } from "../shared/message-input";import { MessageMarkdown } from "./message-markdown";@@ -176,22 +177,43 @@ export function MessagesPanel({{/* Message box */}<divclassName={cn(- "max-w-[min(100%,512px)] whitespace-pre-wrap break-words rounded-xl px-4 py-2.5 text-sm",+ "max-w-[min(100%,512px)] rounded-xl px-4 py-2.5 text-sm",isMySide- ? "text-content-inverted rounded-br bg-neutral-700"- : "text-content-default rounded-bl bg-neutral-100",+ ? "rounded-br bg-neutral-700"+ : "rounded-bl bg-neutral-100",)}>- <Linkify- as="p"- options={{- target: "_blank",- rel: "noopener noreferrer nofollow",- className: "underline underline-offset-4",+ <ReactMarkdown+ className={cn(+ isMySide+ ? "text-content-inverted prose-invert prose-a:text-content-inverted"+ : "text-content-default prose-a:text-content-emphasis",+ "prose prose-sm prose-p:m-0 break-words",+ "prose-a:font-medium prose-a:underline-offset-4",+ )}+ allowedElements={[+ "p",+ "a",+ "code",+ "strong",+ "em",+ "ul",+ "ol",+ "li",+ ]}+ components={{+ a: ({ node, ...props }) => (+ <a+ {...props}+ target="_blank"+ rel="noopener noreferrer"+ />+ ),}}+ remarkPlugins={[remarkGfm] as any}>{message.text}- </Linkify>+ </ReactMarkdown></div></div></div>diff --git a/apps/web/ui/partners/bounties/claim-bounty-modal.tsx b/apps/web/ui/partners/bounties/claim-bounty-modal.tsxindex 7522a49595..410e8bacf3 100644--- a/apps/web/ui/partners/bounties/claim-bounty-modal.tsx+++ b/apps/web/ui/partners/bounties/claim-bounty-modal.tsx@@ -12,6 +12,7 @@ import {} from "@/lib/zod/schemas/bounties";import { useConfirmModal } from "@/ui/modals/confirm-modal";import { X } from "@/ui/shared/icons";+import { Markdown } from "@/ui/shared/markdown";import {AnimatedSizeContainer,Button,@@ -413,8 +414,8 @@ function ClaimBountyModalContent({ bounty }: ClaimBountyModalProps) {<span className="text-content-emphasis font-semibold">Details</span>- <p className="text-content-subtle whitespace-pre-wrap font-medium">- {bounty.description}+ <p className="text-content-subtle font-medium">+ <Markdown className="p-0">{bounty.description}</Markdown></p></div>)}@@ -587,7 +588,10 @@ function ClaimBountyModalContent({ bounty }: ClaimBountyModalProps) {value={description}onChange={(e) => {const value = e.target.value;- if (value.length <= MAX_BOUNTY_SUBMISSION_DESCRIPTION_LENGTH) {+ if (+ value.length <=+ MAX_BOUNTY_SUBMISSION_DESCRIPTION_LENGTH+ ) {setDescription(value);}}}diff --git a/apps/web/ui/partners/partner-comments.tsx b/apps/web/ui/partners/partner-comments.tsxindex a13421328c..6c98677532 100644--- a/apps/web/ui/partners/partner-comments.tsx+++ b/apps/web/ui/partners/partner-comments.tsx@@ -347,16 +347,7 @@ function CommentCard({toast.error("Failed to update comment");});}}- onMount={({ textarea }) => {- if (!textarea) return;-- // Programmatically focus and move cursor to the end, since React's autoFocus is putting the cursor at the start- textarea.focus();- textarea.setSelectionRange(- textarea.value.length,- textarea.value.length,- );- }}+ autoFocusclassName="animate-fade-in"placeholder="Edit comment"sendButtonText="Save"diff --git a/apps/web/ui/shared/emoji-picker.tsx b/apps/web/ui/shared/emoji-picker.tsxindex 26c31dd880..464d853b3b 100644--- a/apps/web/ui/shared/emoji-picker.tsx+++ b/apps/web/ui/shared/emoji-picker.tsx@@ -1,15 +1,14 @@-"use client";-import { Button, Popover } from "@dub/ui";import { FaceSmile } from "@dub/ui/icons";import { EmojiPicker as EmojiPickerBase } from "frimousse";-import { useState } from "react";+import { PropsWithChildren, useState } from "react";export function EmojiPicker({onSelect,-}: {+ children,+}: PropsWithChildren<{onSelect: (emoji: string) => void;-}) {+}>) {const [isOpen, setIsOpen] = useState(false);return (@@ -65,12 +64,14 @@ export function EmojiPicker({</EmojiPickerBase.Root>}>- <Button- type="button"- variant="outline"- icon={<FaceSmile className="size-4" />}- className="size-8 p-0"- />+ {children || (+ <Button+ type="button"+ variant="outline"+ icon={<FaceSmile className="size-4" />}+ className="size-8 p-0"+ />+ )}</Popover>);}diff --git a/apps/web/ui/shared/message-input.tsx b/apps/web/ui/shared/message-input.tsxindex 90849cd95b..ba1053a1d6 100644--- a/apps/web/ui/shared/message-input.tsx+++ b/apps/web/ui/shared/message-input.tsx@@ -1,8 +1,16 @@import { MAX_MESSAGE_LENGTH } from "@/lib/zod/schemas/messages";-import { ArrowTurnLeft, Button } from "@dub/ui";+import {+ ArrowTurnLeft,+ Button,+ FaceSmile,+ RichTextArea,+ RichTextProvider,+ RichTextToolbar,+ RichTextToolbarButton,+ useRichTextContext,+} from "@dub/ui";import { cn } from "@dub/utils";-import { useEffect, useRef, useState } from "react";-import ReactTextareaAutosize from "react-textarea-autosize";+import { useRef, useState } from "react";import { EmojiPicker } from "../shared/emoji-picker";export function MessageInput({@@ -13,7 +21,6 @@ export function MessageInput({placeholder = "Type a message...",sendButtonText = "Send",className,- onMount,}: {onSendMessage: (message: string) => void | false;defaultValue?: string;@@ -22,88 +29,102 @@ export function MessageInput({placeholder?: string;sendButtonText?: string;className?: string;- onMount?: (props: { textarea: HTMLTextAreaElement | null }) => void;}) {- const textAreaRef = useRef<HTMLTextAreaElement>(null);- const selectionStartRef = useRef<number | null>(null);+ const richTextRef = useRef<{ setContent: (content: any) => void }>(null);const [typedMessage, setTypedMessage] = useState(defaultValue);const sendMessage = () => {const message = typedMessage.trim();- if (!message) return;+ if (!message || message.length >= MAX_MESSAGE_LENGTH) return;- if (onSendMessage(message) !== false) setTypedMessage("");+ if (onSendMessage(message) !== false) {+ setTypedMessage("");+ richTextRef.current?.setContent("");+ }};- useEffect(() => onMount?.({ textarea: textAreaRef.current }), [onMount]);-return (<divclassName={cn(- "border-border-subtle overflow-hidden rounded-xl border has-[textarea:focus]:border-neutral-500 has-[textarea:focus]:ring-1 has-[textarea:focus]:ring-neutral-500",+ "border-border-subtle overflow-hidden rounded-xl border focus-within:border-neutral-500 focus-within:ring-1 focus-within:ring-neutral-500",className,)}>- <ReactTextareaAutosize- ref={textAreaRef}+ <RichTextProvider+ ref={richTextRef}+ features={["bold", "italic", "links"]}+ markdownautoFocus={autoFocus}- className="placeholder:text-content-subtle block max-h-24 w-full resize-none border-none p-3 text-base focus:ring-0 sm:text-sm"placeholder={placeholder}- value={typedMessage}- maxLength={MAX_MESSAGE_LENGTH}- onChange={(e) => setTypedMessage(e.currentTarget.value)}- onKeyDown={(e) => {- if (e.key === "Enter" && (e.metaKey || e.ctrlKey)) {- e.preventDefault();- sendMessage();- }+ editorClassName="block max-h-24 w-full resize-none border-none p-3 text-base sm:text-sm"+ onChange={(editor) => setTypedMessage((editor as any).getMarkdown())}+ editorProps={{+ handleDOMEvents: {+ keydown: (_, e) => {+ if (e.key === "Enter" && (e.metaKey || e.ctrlKey)) {+ e.preventDefault();+ e.stopPropagation();+ sendMessage();+ return false;+ }+ },+ },}}- onBlur={(e) => (selectionStartRef.current = e.target.selectionStart)}- />+ >+ <RichTextArea />- <div className="flex items-center justify-between gap-4 px-3 pb-3">- <div className="flex items-center gap-2">- <EmojiPicker- onSelect={(emoji) => {- const pos = selectionStartRef.current;- setTypedMessage((prev) =>- pos !== null- ? prev.slice(0, pos) + emoji + prev.slice(pos)- : prev + emoji,- );- textAreaRef.current?.focus();- }}- />- </div>- <div className="flex items-center justify-between gap-2">- {onCancel && (+ <div className="flex items-center justify-between gap-4 px-3 pb-3">+ <MessageInputToolbar />+ <div className="flex items-center justify-between gap-2">+ {onCancel && (+ <Button+ variant="secondary"+ text="Cancel"+ onClick={onCancel}+ className="h-8 w-fit rounded-lg px-4"+ />+ )}<Button- variant="secondary"- text="Cancel"- onClick={onCancel}- className="h-8 w-fit rounded-lg px-4"- />- )}- <Button- variant="primary"- text={- <span className="flex items-center gap-2">- {sendButtonText}- <span className="hidden items-center gap-1 sm:flex">- <span className="flex size-4 items-center justify-center rounded border border-neutral-700 text-[0.625rem]">- {navigator.platform.startsWith("Mac") ? "⌘" : "^"}- </span>- <span className="flex size-4 items-center justify-center rounded border border-neutral-700">- <ArrowTurnLeft className="text-content-inverted size-2.5" />+ variant="primary"+ text={+ <span className="flex items-center gap-2">+ {sendButtonText}+ <span className="hidden items-center gap-1 sm:flex">+ <span className="flex size-4 items-center justify-center rounded border border-neutral-700 text-[0.625rem]">+ {navigator.platform.startsWith("Mac") ? "⌘" : "^"}+ </span>+ <span className="flex size-4 items-center justify-center rounded border border-neutral-700">+ <ArrowTurnLeft className="text-content-inverted size-2.5" />+ </span></span></span>- </span>- }- onClick={sendMessage}- className="h-8 w-fit rounded-lg px-4"- />+ }+ disabled={typedMessage.trim().length >= MAX_MESSAGE_LENGTH}+ onClick={sendMessage}+ className="h-8 w-fit rounded-lg px-4"+ />+ </div></div>- </div>+ </RichTextProvider></div>);}++function MessageInputToolbar() {+ const { editor } = useRichTextContext();++ return (+ <RichTextToolbar+ toolsStart={+ <EmojiPicker+ onSelect={(emoji) => {+ if (!editor) return;+ editor.chain().focus().insertContent(emoji).run();+ }}+ >+ <RichTextToolbarButton icon={FaceSmile} label="Emoji" />+ </EmojiPicker>+ }+ />+ );+}diff --git a/packages/email/src/templates/new-bounty-available.tsx b/packages/email/src/templates/new-bounty-available.tsxindex 014bbf94e1..42320e29ef 100644--- a/packages/email/src/templates/new-bounty-available.tsx+++ b/packages/email/src/templates/new-bounty-available.tsx@@ -7,6 +7,7 @@ import {Html,Img,Link,+ Markdown,Preview,Section,Tailwind,@@ -21,7 +22,7 @@ export default function NewBountyAvailable({type: "performance",endsAt: new Date(),description:- "How does it work? get a group together of at least 15 other people interested in trying out Acme. Then, during the event, take a photo of the group using Acme. When submitting, provide any links to the event or photos. Once confirmed, we'll create a one-time commission for you.",+ "How **does** it work?\n\nGet a group _together_ of at least 15 other people interested in trying out [Acme](https://dub.co). Then, during the event, take a photo of the group using Acme. When submitting, provide any links to the event or photos. Once confirmed, we'll create a one-time commission for you.",},program = {name: "Acme",@@ -77,11 +78,12 @@ export default function NewBountyAvailable({<Text className="m-0 p-0 text-sm font-semibold text-neutral-900">Details</Text>- <Text- className="m-0 mt-2 p-0 text-sm font-medium text-neutral-500"- style={{ whiteSpace: "pre-wrap" }}- >- {bounty.description}+ <Text className="m-0 mt-2 p-0 text-sm font-medium text-neutral-500">+ <Markdown+ markdownCustomStyles={{ link: { color: "black" } }}+ >+ {bounty.description}+ </Markdown></Text></Section>)}diff --git a/packages/email/src/templates/new-message-from-partner.tsx b/packages/email/src/templates/new-message-from-partner.tsxindex 4932916b93..991b3cb105 100644--- a/packages/email/src/templates/new-message-from-partner.tsx+++ b/packages/email/src/templates/new-message-from-partner.tsx@@ -8,6 +8,7 @@ import {Html,Img,Link,+ Markdown,Preview,Row,Section,@@ -27,7 +28,7 @@ export default function NewMessageFromPartner({},messages = [{- text: "Am I eligible for that one bounty?",+ text: "Am I eligible for that one _bounty_?",createdAt: new Date(Date.now() - 1000 * 60 * 5),},],@@ -84,12 +85,19 @@ export default function NewMessageFromPartner({/></Column><Column className="w-full pl-2">- <Text- className="my-0 rounded-lg rounded-bl-none bg-neutral-100 px-4 py-2.5 text-sm leading-5 text-neutral-800"- style={{ whiteSpace: "pre-wrap" }}+ <Markdown+ markdownCustomStyles={{ link: { color: "black" } }}+ markdownContainerStyles={{+ borderRadius: 8,+ background: "#f5f5f5",+ padding: "1px 16px",+ fontSize: 14,+ lineHeight: "20px",+ color: "#262626",+ }}>{message.text}- </Text>+ </Markdown></Column></Row>))}diff --git a/packages/email/src/templates/new-message-from-program.tsx b/packages/email/src/templates/new-message-from-program.tsxindex 5434b2a657..05600feb35 100644--- a/packages/email/src/templates/new-message-from-program.tsx+++ b/packages/email/src/templates/new-message-from-program.tsx@@ -8,6 +8,7 @@ import {Html,Img,Link,+ Markdown,Preview,Row,Section,@@ -26,7 +27,7 @@ export default function NewMessageFromProgram({},messages = [{- text: "You are for sure eligible. We'll most likely make those changes within the next day or two. Stay tuned.",+ text: "You are **for sure** eligible. We'll most likely make those changes within the next day or two. Stay tuned.",createdAt: new Date(Date.now() - 1000 * 60 * 5),user: {name: "Brendan Urie",@@ -122,12 +123,19 @@ export default function NewMessageFromProgram({minute: "numeric",})}</Text>- <Text- className="my-0 rounded-lg rounded-bl-none bg-neutral-100 px-4 py-2.5 text-sm leading-5 text-neutral-800"- style={{ whiteSpace: "pre-wrap" }}+ <Markdown+ markdownCustomStyles={{ link: { color: "black" } }}+ markdownContainerStyles={{+ borderRadius: 8,+ background: "#f5f5f5",+ padding: "1px 16px",+ fontSize: 14,+ lineHeight: "20px",+ color: "#262626",+ }}>{message.text}- </Text>+ </Markdown></Column></Row>))}diff --git a/packages/ui/package.json b/packages/ui/package.jsonindex 18cbb050fc..48652f9875 100644--- a/packages/ui/package.json+++ b/packages/ui/package.json@@ -72,13 +72,14 @@"@react-aria/datepicker": "^3.10.0","@react-stately/datepicker": "^3.9.3","@tanstack/react-table": "^8.17.3",- "@tiptap/extension-file-handler": "^3.0.9",- "@tiptap/extension-image": "^3.0.9",- "@tiptap/extension-mention": "^3.0.9",- "@tiptap/extensions": "^3.0.9",- "@tiptap/pm": "^3.0.9",- "@tiptap/react": "^3.0.9",- "@tiptap/starter-kit": "^3.0.9",+ "@tiptap/extension-file-handler": "^3.10.2",+ "@tiptap/extension-image": "^3.10.2",+ "@tiptap/extension-mention": "^3.10.2",+ "@tiptap/extensions": "^3.10.2",+ "@tiptap/markdown": "^3.10.2",+ "@tiptap/pm": "^3.10.2",+ "@tiptap/react": "^3.10.2",+ "@tiptap/starter-kit": "^3.10.2","@visx/axis": "^2.14.0","@visx/clip-path": "^3.3.0","@visx/curve": "^3.3.0",diff --git a/packages/ui/src/rich-text-area/index.tsx b/packages/ui/src/rich-text-area/index.tsxindex f66507de6b..25f7619623 100644--- a/packages/ui/src/rich-text-area/index.tsx+++ b/packages/ui/src/rich-text-area/index.tsx@@ -1,201 +1,32 @@import { cn } from "@dub/utils";-import FileHandler from "@tiptap/extension-file-handler";-import Image from "@tiptap/extension-image";-import Mention from "@tiptap/extension-mention";-import { Placeholder } from "@tiptap/extensions";-import { Editor, EditorContent, EditorContext, useEditor } from "@tiptap/react";-import StarterKit from "@tiptap/starter-kit";-import { forwardRef, useImperativeHandle, useMemo, useState } from "react";+import { EditorContent, EditorContentProps } from "@tiptap/react";import { LoadingSpinner } from "../icons";-import { RichTextToolbar } from "./rich-text-toolbar";-import { suggestions } from "./variables";--export const richTextAreaExtensions = [- StarterKit.configure({- heading: {- levels: [1, 2],- },- }),-];--interface RichTextAreaProps {- initialValue?: any;- onChange?: (editor: Editor) => void;- placeholder?: string;- className?: string;- editorClassName?: string;- uploadImage?: (file: File) => Promise<string | null>;- variables?: string[];- editable?: boolean;-}--export interface RichTextAreaRef {- setContent: (content: any) => void;-}--export const RichTextArea = forwardRef<RichTextAreaRef, RichTextAreaProps>(- function RichTextArea(- {- initialValue,- onChange,- placeholder = "Start typing...",- className,- editorClassName,- uploadImage,- variables,- editable = true,- },- ref,- ) {- const [isUploading, setIsUploading] = useState(false);-- const handleImageUpload = async (- file: File,- currentEditor: Editor,- pos: number,- ) => {- setIsUploading(true);-- const src = await uploadImage?.(file);- if (!src) {- setIsUploading(false);- return;- }-- currentEditor- .chain()- .insertContentAt(pos, {- type: "image",- attrs: {- src,- },- })- .focus()- .run();-- setIsUploading(false);- };-- const editor = useEditor({- editable,- extensions: [- ...richTextAreaExtensions,- Placeholder.configure({- placeholder,- emptyEditorClass:- "before:content-[attr(data-placeholder)] before:float-left before:text-content-muted before:h-0 before:pointer-events-none",- }),-- // Images- ...(uploadImage- ? [- Image.configure({- inline: false,- HTMLAttributes: {- class: "rounded-lg max-w-full h-auto",- },- }),- FileHandler.configure({- allowedMimeTypes: [- "image/png",- "image/jpeg",- "image/gif",- "image/webp",- ],- onDrop: (currentEditor, files, pos) => {- files.forEach((file) =>- handleImageUpload(file, currentEditor, pos),- );- },- onPaste: (currentEditor, files, htmlContent) => {- if (htmlContent) return false;- files.forEach((file) =>- handleImageUpload(- file,- currentEditor,- currentEditor.state.selection.anchor,- ),- );- },- }),- ]- : []),- ...(variables- ? [- Mention.extend({- renderHTML({ node }: { node: any }) {- return [- "span",- {- class:- "px-1 py-0.5 bg-blue-100 text-blue-700 rounded font-semibold",- "data-type": "mention",- "data-id": node.attrs.id,- },- `{{${node.attrs.id}}}`,- ];- },- renderText({ node }: { node: any }) {- return `{{${node.attrs.id}}}`;- },- }).configure({- suggestion: suggestions(variables),- }),- ]- : []),- ],- editorProps: {- attributes: {- class: cn(- "prose prose-sm prose-neutral max-w-none focus:outline-none",- "[&_.ProseMirror-selectednode]:outline [&_.ProseMirror-selectednode]:outline-2 [&_.ProseMirror-selectednode]:outline-blue-500 [&_.ProseMirror-selectednode]:outline-offset-2",- editorClassName,- ),- },- },- content: initialValue,- onUpdate: ({ editor }) => onChange?.(editor),- immediatelyRender: false,- });-- useImperativeHandle(ref, () => ({- setContent: (content: any) => {- editor?.commands.setContent(content);- },- }));-- const providerValue = useMemo(() => ({ editor }), [editor]);-- return (- <EditorContext.Provider value={providerValue}>- <div- className={cn(- "relative flex flex-col gap-4",- isUploading && "pointer-events-none opacity-50",- className,- )}- >- <RichTextToolbar- onImageUpload={- uploadImage && editor- ? (file) =>- handleImageUpload(- file,- editor,- editor.state.selection.anchor,- )- : undefined- }- />- <EditorContent editor={editor} />-- {isUploading && (- <div className="absolute inset-0 flex items-center justify-center">- <LoadingSpinner className="size-4" />- </div>- )}+import { useRichTextContext } from "./rich-text-provider";++export * from "./rich-text-provider";+export * from "./rich-text-toolbar";++export function RichTextArea({+ className,+ ...rest+}: Omit<EditorContentProps, "editor">) {+ const { editor, isUploading } = useRichTextContext();++ return (+ <div+ className={cn(+ "relative",+ isUploading && "pointer-events-none opacity-50",+ className,+ )}+ >+ <EditorContent editor={editor} {...rest} />++ {isUploading && (+ <div className="absolute inset-0 flex items-center justify-center">+ <LoadingSpinner className="size-4" /></div>- </EditorContext.Provider>- );- },-);+ )}+ </div>+ );+}diff --git a/packages/ui/src/rich-text-area/rich-text-provider.tsx b/packages/ui/src/rich-text-area/rich-text-provider.tsxnew file mode 100644index 0000000000..6e3b7b2d4c--- /dev/null+++ b/packages/ui/src/rich-text-area/rich-text-provider.tsx@@ -0,0 +1,243 @@+import { cn } from "@dub/utils";+import FileHandler from "@tiptap/extension-file-handler";+import Image from "@tiptap/extension-image";+import Mention from "@tiptap/extension-mention";+import { Placeholder } from "@tiptap/extensions";+import { Markdown } from "@tiptap/markdown";+import { Editor, useEditor } from "@tiptap/react";+import StarterKit from "@tiptap/starter-kit";+import {+ PropsWithChildren,+ createContext,+ forwardRef,+ useContext,+ useImperativeHandle,+ useMemo,+ useState,+} from "react";+import { suggestions } from "./variables";++const FEATURES = [+ "images",+ "variables",+ "links",+ "headings",+ "bold",+ "italic",+] as const;++type RichTextProviderProps = PropsWithChildren<{+ placeholder?: string;+ initialValue?: any;+ features?: (typeof FEATURES)[number][];+ markdown?: boolean;+ onChange?: (editor: Editor) => void;+ uploadImage?: (file: File) => Promise<string | null>;+ variables?: string[];+ editable?: boolean;+ autoFocus?: boolean;++ editorProps?: Parameters<typeof useEditor>[0]["editorProps"];+ editorClassName?: string;+}>;++export const RichTextContext = createContext<+ | (Pick<+ RichTextProviderProps,+ "features" | "markdown" | "variables" | "editable"+ > & {+ editor: Editor | null;+ isUploading: boolean;+ handleImageUpload:+ | ((file: File, currentEditor: Editor, pos: number) => Promise<void>)+ | null;+ })+ | null+>(null);++export type RichTextAreaProviderRef = {+ setContent: (content: any) => void;+};++export const RichTextProvider = forwardRef<+ RichTextAreaProviderRef,+ RichTextProviderProps+>(+ (+ {+ children,+ features = FEATURES as any,+ markdown = false,+ placeholder = "Start typing...",+ uploadImage,+ editable,+ autoFocus,+ variables,+ initialValue,+ onChange,+ editorProps,+ editorClassName,+ }: RichTextProviderProps,+ ref,+ ) => {+ const [isUploading, setIsUploading] = useState(false);++ const handleImageUpload = useMemo(+ () =>+ uploadImage+ ? async (file: File, currentEditor: Editor, pos: number) => {+ setIsUploading(true);++ const src = await uploadImage?.(file);+ if (!src) {+ setIsUploading(false);+ return;+ }++ currentEditor+ .chain()+ .insertContentAt(pos, {+ type: "image",+ attrs: {+ src,+ },+ })+ .focus()+ .run();++ setIsUploading(false);+ }+ : null,+ [uploadImage],+ );++ const editor = useEditor({+ editable: editable,+ autofocus: autoFocus ? "end" : false,+ extensions: [+ ...(markdown ? [Markdown] : []),+ StarterKit.configure({+ heading: features.includes("headings")+ ? {+ levels: [1, 2],+ }+ : false,+ bold: features.includes("bold") ? undefined : false,+ italic: features.includes("italic") ? undefined : false,+ link: features.includes("links") ? undefined : false,+ }),+ Placeholder.configure({+ placeholder,+ emptyEditorClass:+ "before:content-[attr(data-placeholder)] before:float-left before:text-content-muted before:h-0 before:pointer-events-none",+ }),++ // Images+ ...(features.includes("images") && handleImageUpload+ ? [+ Image.configure({+ inline: false,+ HTMLAttributes: {+ class: "rounded-lg max-w-full h-auto",+ },+ }),+ FileHandler.configure({+ allowedMimeTypes: [+ "image/png",+ "image/jpeg",+ "image/gif",+ "image/webp",+ ],+ onDrop: (currentEditor, files, pos) => {+ files.forEach((file) =>+ handleImageUpload(file, currentEditor, pos),+ );+ },+ onPaste: (currentEditor, files, htmlContent) => {+ if (htmlContent) return false;+ files.forEach((file) =>+ handleImageUpload(+ file,+ currentEditor,+ currentEditor.state.selection.anchor,+ ),+ );+ },+ }),+ ]+ : []),+ ...(features.includes("variables") && variables+ ? [+ Mention.extend({+ renderHTML({ node }: { node: any }) {+ return [+ "span",+ {+ class:+ "px-1 py-0.5 bg-blue-100 text-blue-700 rounded font-semibold",+ "data-type": "mention",+ "data-id": node.attrs.id,+ },+ `{{${node.attrs.id}}}`,+ ];+ },+ renderText({ node }: { node: any }) {+ return `{{${node.attrs.id}}}`;+ },+ }).configure({+ suggestion: suggestions(variables),+ }),+ ]+ : []),+ ],+ editorProps: {+ attributes: {+ ...editorProps?.attributes,+ class: cn(+ "prose prose-sm prose-neutral max-w-none focus:outline-none",+ "[&_.ProseMirror-selectednode]:outline [&_.ProseMirror-selectednode]:outline-2 [&_.ProseMirror-selectednode]:outline-blue-500 [&_.ProseMirror-selectednode]:outline-offset-2",+ editorClassName,+ ),+ },+ ...editorProps,+ },+ content: initialValue,+ contentType: markdown ? "markdown" : undefined,+ onUpdate: ({ editor }) => onChange?.(editor),+ immediatelyRender: false,+ });++ useImperativeHandle(ref, () => ({+ setContent: (content: any) => {+ editor?.commands.setContent(content);+ },+ }));++ return (+ <RichTextContext.Provider+ value={{+ features,+ markdown,+ editable,+ variables,+ editor,+ isUploading,+ handleImageUpload,+ }}+ >+ {children}+ </RichTextContext.Provider>+ );+ },+);++export function useRichTextContext() {+ const context = useContext(RichTextContext);++ if (!context)+ throw new Error(+ "useRichTextContext must be used within a RichTextProvider",+ );++ return context;+}diff --git a/packages/ui/src/rich-text-area/rich-text-toolbar.tsx b/packages/ui/src/rich-text-area/rich-text-toolbar.tsxindex fbb069d11a..91d0f7d7cf 100644--- a/packages/ui/src/rich-text-area/rich-text-toolbar.tsx+++ b/packages/ui/src/rich-text-area/rich-text-toolbar.tsx@@ -1,6 +1,6 @@import { cn } from "@dub/utils";-import { useCurrentEditor, useEditorState } from "@tiptap/react";-import { forwardRef, useRef } from "react";+import { useEditorState } from "@tiptap/react";+import { ReactNode, forwardRef, useRef } from "react";import {AtSign,Heading1,@@ -11,13 +11,19 @@ import {TextBold,TextItalic,} from "../icons";+import { useRichTextContext } from "./rich-text-provider";export function RichTextToolbar({- onImageUpload,+ toolsStart,+ toolsEnd,+ className,}: {- onImageUpload?: (file: File) => void;+ toolsStart?: ReactNode;+ toolsEnd?: ReactNode;+ className?: string;}) {- const { editor } = useCurrentEditor();+ const { editor, features, handleImageUpload, isUploading } =+ useRichTextContext();const editorState = useEditorState({editor,@@ -33,51 +39,68 @@ export function RichTextToolbar({const inputImageRef = useRef<HTMLInputElement>(null);return (- <div className="flex gap-1">- <ToolbarButton- icon={TextBold}- label="Bold"- isActive={editorState?.isBold}- onClick={() => editor?.chain().focus().toggleBold().run()}- />- <ToolbarButton- icon={TextItalic}- label="Italic"- isActive={editorState?.isItalic}- onClick={() => editor?.chain().focus().toggleItalic().run()}- />- <ToolbarButton- icon={Heading1}- label="Heading 1"- isActive={editorState?.isHeading1}- onClick={() =>- editor?.chain().focus().toggleHeading({ level: 1 }).run()- }- />- <ToolbarButton- icon={Heading2}- label="Heading 2"- isActive={editorState?.isHeading2}- onClick={() =>- editor?.chain().focus().toggleHeading({ level: 2 }).run()- }- />-- <LinkButton />- <ToolbarButton- icon={AtSign}- label="Variable"- isActive={false}- onClick={() => {- if (editor?.state.selection.$from.nodeBefore?.text?.endsWith("@")) {- editor?.commands.focus();- return;- }- editor?.chain().focus().insertContent("@").run();- }}- />-- {onImageUpload && (+ <div+ className={cn(+ "flex gap-1",+ isUploading && "pointer-events-none opacity-50",+ className,+ )}+ >+ {toolsStart}++ {features?.includes("bold") && (+ <RichTextToolbarButton+ icon={TextBold}+ label="Bold"+ isActive={editorState?.isBold}+ onClick={() => editor?.chain().focus().toggleBold().run()}+ />+ )}+ {features?.includes("italic") && (+ <RichTextToolbarButton+ icon={TextItalic}+ label="Italic"+ isActive={editorState?.isItalic}+ onClick={() => editor?.chain().focus().toggleItalic().run()}+ />+ )}+ {features?.includes("headings") && (+ <>+ <RichTextToolbarButton+ icon={Heading1}+ label="Heading 1"+ isActive={editorState?.isHeading1}+ onClick={() =>+ editor?.chain().focus().toggleHeading({ level: 1 }).run()+ }+ />+ <RichTextToolbarButton+ icon={Heading2}+ label="Heading 2"+ isActive={editorState?.isHeading2}+ onClick={() =>+ editor?.chain().focus().toggleHeading({ level: 2 }).run()+ }+ />+ </>+ )}+ {features?.includes("links") && <LinkButton />}+ {features?.includes("variables") && (+ <RichTextToolbarButton+ icon={AtSign}+ label="Variable"+ isActive={false}+ onClick={() => {+ if (editor?.state.selection.$from.nodeBefore?.text?.endsWith("@")) {+ editor?.commands.focus();+ return;+ }+ editor?.chain().focus().insertContent("@").run();+ }}+ />+ )}++ {features?.includes("images") && handleImageUpload && editor && (<><inputref={inputImageRef}@@ -87,11 +110,11 @@ export function RichTextToolbar({const file = e.target.files?.[0];if (!file) return;- onImageUpload(file);+ handleImageUpload(file, editor, editor.state.selection.anchor);e.target.value = "";}}/>- <ToolbarButton+ <RichTextToolbarButtonicon={ImageIcon}label="Image"isActive={false}@@ -99,12 +122,14 @@ export function RichTextToolbar({/></>)}++ {toolsEnd}</div>);}function LinkButton() {- const { editor } = useCurrentEditor();+ const { editor } = useRichTextContext();const editorState = useEditorState({editor,@@ -114,7 +139,7 @@ function LinkButton() {});return (- <ToolbarButton+ <RichTextToolbarButtonicon={Hyperlink}label="Link"onClick={() => {@@ -140,7 +165,7 @@ function LinkButton() {);}-type ToolbarButtonProps = {+type RichTextToolbarButtonProps = {icon: Icon;label?: string;isActive?: boolean;@@ -148,9 +173,18 @@ type ToolbarButtonProps = {disabled?: boolean;};-const ToolbarButton = forwardRef<HTMLButtonElement, ToolbarButtonProps>(+export const RichTextToolbarButton = forwardRef<+ HTMLButtonElement,+ RichTextToolbarButtonProps+>((- { icon: Icon, label, isActive, onClick, disabled }: ToolbarButtonProps,+ {+ icon: Icon,+ label,+ isActive,+ onClick,+ disabled,+ }: RichTextToolbarButtonProps,ref,) => {return (diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 5e4f289bff..adafb24152 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -758,26 +758,29 @@ importers:specifier: ^8.17.3'@tiptap/extension-file-handler':- specifier: ^3.0.9- version: 3.0.9(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected])))(@tiptap/[email protected])+ specifier: ^3.10.2+ version: 3.10.2(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected])))(@tiptap/[email protected])'@tiptap/extension-image':- specifier: ^3.0.9- version: 3.0.9(@tiptap/[email protected](@tiptap/[email protected]))+ specifier: ^3.10.2+ version: 3.10.2(@tiptap/[email protected](@tiptap/[email protected]))'@tiptap/extension-mention':- specifier: ^3.0.9- version: 3.0.9(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))+ specifier: ^3.10.2+ version: 3.10.2(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))'@tiptap/extensions':- specifier: ^3.0.9+ specifier: ^3.10.2+ '@tiptap/markdown':+ specifier: ^3.10.2'@tiptap/pm':- specifier: ^3.0.9- version: 3.0.9+ specifier: ^3.10.2+ version: 3.10.2'@tiptap/react':- specifier: ^3.0.9- version: 3.0.9(@floating-ui/[email protected])(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])([email protected]([email protected]))([email protected])+ specifier: ^3.10.2+ version: 3.10.2(@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.0.9- version: 3.0.9+ specifier: ^3.10.2+ version: 3.10.2'@visx/axis':specifier: ^2.14.0version: 2.14.0([email protected])@@ -5399,93 +5402,171 @@ packages:peerDependencies:'@tiptap/pm': ^3.0.9+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-rWgo/9g5lSWT3/00wPvG+3EEuPqDxegYMp0v7YkSuURi43Btf+SG4yGtQ5Si9ICF0NJjeZoHLusrjeVltcrsSw==}+ peerDependencies:+ '@tiptap/pm': ^3.10.2+'@tiptap/[email protected]':resolution: {integrity: sha512-dGhMWb6GIjgIUuLQDhSlHT6yB4YvnYqe01nHzEvcbSii75KOcLwboVnqxw4p+gsDZLvZRGv/6bZBJh7GKZa8OQ==}peerDependencies:'@tiptap/core': ^3.0.9+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-hmGnb5SYTXOeeP4+ZriOELewTMEITW6Xj2KJ8UpvCfSlOU33/SGeIlBsGvXsN3M4CU66HrK6K1LQVM8LiyEITA==}+ peerDependencies:+ '@tiptap/core': ^3.10.2+'@tiptap/[email protected]':resolution: {integrity: sha512-rVULIFt9ZO+fO5ty9zuC3HwY3knxUw7q9JBztpKPfQQCuIJ+iQnOfB8NtI3L8hxVSxhIR1pqr8B3S/8vlpXbVg==}peerDependencies:'@tiptap/core': ^3.0.9- '@tiptap/[email protected]':- resolution: {integrity: sha512-fZQfdSbKJl3J+Yi+s8NrcLBgXHOaGVD4g+vn+orTPUlZdG9FWvEoon8DexOdK9OvYnW6QMM7kS8whOgpogVyUQ==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-lgUpWuBhlZwf+/pVKfqVUpHfA5PDECDyobcXmMrRSpreM+58psZtWDZMZ21K94SmJukRidW7vdNWoTSRSEiY4Q==}peerDependencies:- '@tiptap/core': ^3.0.9- '@tiptap/pm': ^3.0.9+ '@tiptap/core': ^3.10.2++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-gT4PMDXWdUAdijPH35LDUsPv+YIIhEHUuvqPFBGRudrycQ2TlWMmRZ2jYNg1PGBh+/UHVR2l8TNuZ5QSr88ISQ==}+ peerDependencies:+ '@tiptap/core': ^3.10.2+ '@tiptap/pm': ^3.10.2'@tiptap/[email protected]':resolution: {integrity: sha512-Aob5TVfrtoEzfTm3wl7lognmWia6EEilOxLihSGISCvI4FTndJg+mwhumduQeYCLWkF9i/DR87m2/3EbjR3R4Q==}peerDependencies:'@tiptap/extension-list': ^3.0.9+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-WVUklxiqWHpJnkGGNL3mygDKRDUuhh5HhmKUrBrNlvb+yQgglau+S94F4bobvtiwYBSHWS4HdGTXTQhdX9QfwQ==}+ peerDependencies:+ '@tiptap/extension-list': ^3.10.2+'@tiptap/[email protected]':resolution: {integrity: sha512-H692k9sHIE3rR3S+BIknQXsLb8HSojk+7gQ5DV0hYajSzpJ02OUL4AnNlpMuSgZuaq+ljpN4sT8kCIzIE1kQxw==}peerDependencies:'@tiptap/core': ^3.0.9'@tiptap/pm': ^3.0.9+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-1EmR8NYBEvIHOQml98XqzGj7pnosm4w/pSwZMPskhDn/3S737lo22vxoTOMmTL+HVdhDuwY66RBF8rELLVioHA==}+ peerDependencies:+ '@tiptap/core': ^3.10.2+ '@tiptap/pm': ^3.10.2+'@tiptap/[email protected]':resolution: {integrity: sha512-jMo7crwLIefwy13WI2FzxlyJN9AbLNsESFbJuv/KPzjpN7uzPKYsE33Uy2IZD5hPoHtA5UmAUfbz0HzWtWy5Yw==}peerDependencies:'@tiptap/core': ^3.0.9+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-+oA2fuQPQDzZb3q0pQeObPrhWXPh9JxybnAAGFoGenZsMsoUdN8x/KdtrXGWDMoB9XIg7XwE1xO6EZAH+eLe8Q==}+ peerDependencies:+ '@tiptap/core': ^3.10.2+'@tiptap/[email protected]':resolution: {integrity: sha512-DB/R5e6QvuGhY8EhCkfNjR2xQfz/TOWoxfQGhDuy5U+oK3WBwCcHq9t5+nbSCMHtKfi/i49aHKDvv7TQCpuP0w==}peerDependencies:'@tiptap/core': ^3.0.9+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-+H+H/8OMgTK59QSQeWRqiBB2nufh4rglVCP/RW+iZ8GTH5P5w3dObXVp2OBLdtUG2BRKIVmGcuCxLBI2jer+Tg==}+ peerDependencies:+ '@tiptap/core': ^3.10.2+'@tiptap/[email protected]':resolution: {integrity: sha512-+P+1nfeCtPLj3OHNiATOL3UyM2omZ8+ac6MKm+FxunRAZZsHzbEFUYYdLF7prEmaf0z0c1k4LKSWpbrIX92pKA==}peerDependencies:'@tiptap/extensions': ^3.0.9- '@tiptap/[email protected]':- resolution: {integrity: sha512-hm7KeLT/HC4q/tSYmZABnSn4PN9RKL33wMevueEnSwXWIuDmrM1ACVg7Zp52ncNcLSn4f9fDxjzKz0IG2+Egag==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-fwb4beHPRdUhnLjdwNfcLa90NAYMzWfE4zwR6hdCHWbamAuAgb0g2O1bU89PcCVeYcFeKPC+TquOG8q8cxeE7A==}peerDependencies:- '@tiptap/core': ^3.0.9- '@tiptap/extension-text-style': ^3.0.9- '@tiptap/pm': ^3.0.9+ '@tiptap/extensions': ^3.10.2++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-SpbqdKyOcJKk5qZnSkPBSSNg/8VIewUFfnYh0Md6tg0TNWaXTZF8qxfoFAhoYFP2JVdoUHlRZi8CoEnuKQWYhw==}+ peerDependencies:+ '@tiptap/core': ^3.10.2+ '@tiptap/extension-text-style': ^3.10.2+ '@tiptap/pm': ^3.10.2- '@tiptap/[email protected]':- resolution: {integrity: sha512-WYQ3mW6G0zxoni6TegpQ46a1Qe1zj8Ev5sBH79H4Mbf0qsc7MOq07jLjipv9M0EJJPUi0cfkQlwfV41nH1ue/g==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-B14/MFffhyowF4/OIive8Z/pL0LWxZxehVBMm4eGG09O01s9/oTc2pDkhMUxbR/1ip81Se1/i+KlTbxogcuduA==}peerDependencies:'@floating-ui/dom': ^1.0.0- '@tiptap/core': ^3.0.9- '@tiptap/pm': ^3.0.9+ '@tiptap/core': ^3.10.2+ '@tiptap/pm': ^3.10.2'@tiptap/[email protected]':resolution: {integrity: sha512-+jy7Z/V6nOtvWin+zJYYoRwEYDOHDlF34Ey1T7A8aRcJlPeAQhoB1Ek7R3Rd3nsuByz70IfQapDvkbhY1nkNvQ==}peerDependencies:'@tiptap/extensions': ^3.0.9+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-sBCu8enXm3W3BjnvvGBrzAiSuQSVZyhbQAgaFKjHJKBQRbek55EEbRA0ETUmHcSQbYf0D8hmDt2++HAyEASEsQ==}+ peerDependencies:+ '@tiptap/extensions': ^3.10.2+'@tiptap/[email protected]':resolution: {integrity: sha512-PWNYsUwVsMWt/R5/OWjfGb+7DQT0DvH+1owBimRq0pWZepg8qkz1jdPGgsRmUFyERRsXeEpgj3VaQfrgbyUfrA==}peerDependencies:'@tiptap/core': ^3.0.9+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-gQdfzTcDb43JNxqpj83v/XAzIRlgsX2oSf5WPPtSoHj9xpgSbFv87W2PnVxUbzlTYH6Cb44iED+jwI1Sexn6LA==}+ peerDependencies:+ '@tiptap/core': ^3.10.2+'@tiptap/[email protected]':resolution: {integrity: sha512-LRLCIt87fvDZ5CdkinzhkCwRz5ax6FlsjJzG32MJ3wXyvVslqeLXBvH28JFUZEyzgcd/SnYmYxnef5+yvAX61g==}peerDependencies:'@tiptap/core': ^3.0.9+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-f4NaJHYejn88IN8Q7yeGT2sdS+jb5fLUhj5zKiqC4fWqVeXa4Sh4TpA8Be13Un8KBRY4KSrVLBjcuF121hEYCw==}+ peerDependencies:+ '@tiptap/core': ^3.10.2+'@tiptap/[email protected]':resolution: {integrity: sha512-jPNCOte0y9R3Y4PiEA/CRGgRk8WoL700Mnn8NPVHa4juUjvMl1qxL8hdnW/k8cxhrBA8tV0qcq82+/Vqq6jSfA==}peerDependencies:'@tiptap/core': ^3.0.9'@tiptap/pm': ^3.0.9+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-EkVomzUGfhTp6LF/6jKXKAHiR3bDnZRBVbegocGn5mAZB+5nItxafa7s37zzcPdPI+prnw/C9DRGsZf6pVb4dQ==}+ peerDependencies:+ '@tiptap/core': ^3.10.2+ '@tiptap/pm': ^3.10.2+'@tiptap/[email protected]':resolution: {integrity: sha512-/2igN/oIF58zqX5fcg00bf6qGLcQyXHysl5I8GiurkvO95d+SQTlYbJneSRUpt6CgrUKbhRnMBPVubmapgg+Zw==}peerDependencies:'@tiptap/core': ^3.0.9+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-+EeEOwUCQ4K7wFw0xkVPCwrzRMj5lEW7VdtRj+0zVtAMI+HxO4B6/+ZXyuDybBjtGBgZKdg5DP3pOz0XUCA+vw==}+ peerDependencies:+ '@tiptap/core': ^3.10.2+'@tiptap/[email protected]':resolution: {integrity: sha512-Gt4FbMtZerzKpit8+FvIjIQ3CBD559/FFC+kOT9y8JHlINeqWyh/bgHuaA/9/XtHphOQiA7NDwOiuPh4KIKpqA==}peerDependencies:'@tiptap/core': ^3.0.9+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-MnRbTSNtjLE56E7k0CFprIIfr2yaT0Yd0dwYH7pvWePmSYeVFQDwu9CcVOzF58iv5BasyXc3sO2yhWlXRTY7Ig==}+ peerDependencies:+ '@tiptap/core': ^3.10.2++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-c7ZvinwECBEn3IVI9XpUJKEwvrLtZDiEaYNAjBQgShF1EUCf7JVcNK9wcrFm/oDw9es1cq0yrKqsbBh/bvGO2Q==}+ peerDependencies:+ '@tiptap/core': ^3.10.2+ '@tiptap/pm': ^3.10.2+'@tiptap/[email protected]':resolution: {integrity: sha512-Uq41J6WpbZkyZinbikVxLNqu2WfwUJcErTmNkPdel1gvYoQajkXZkHz2NzQ2jS9DicHHPV1cJel5f/YvX7nm5w==}peerDependencies:@@ -5497,17 +5578,33 @@ packages:peerDependencies:'@tiptap/extension-list': ^3.0.9+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-lG3qyk49BEYWiwoqc/7Cy0A+T13rgld3e//X3YYb7AFygn9oDKK13QlzoGdurgk7JGF0e5bYUHwh/D7eK9xg3g==}+ peerDependencies:+ '@tiptap/extension-list': ^3.10.2+'@tiptap/[email protected]':resolution: {integrity: sha512-naz4+EFzLN695f53GATiglPOc5SOLBm1DNhhUHZNlrUVfDtKmrdbo8t9a/NhAE6Ne/pfg5tbuS+OKuvbJaJcAg==}peerDependencies:'@tiptap/extension-list': ^3.0.9+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-tD9OdW1YhvIjFEyarDfoFd1gm0gRMo2FEI3B50VLg45LTb9IzDQwBMDVeqU2hft+Ve4VVZFUEJN+ovHjG6UueA==}+ peerDependencies:+ '@tiptap/extension-list': ^3.10.2+'@tiptap/[email protected]':resolution: {integrity: sha512-y5JQoFmVR+6FhDdEz2oFIMkURSRSDhCtsrlNWdUpSTGnTAa2WZT7nEhHcIMSGvYU3t0fkfLQ9yTMSaQZFa5GLA==}peerDependencies:'@tiptap/core': ^3.0.9'@tiptap/pm': ^3.0.9+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-4IGOQRcy/REuaskha5z29Vb5Hn3l5jTgfT7+aUO5cwAGZFOlEzSgOGBCq2sH4gVSfBqzdG5mGSH4+LEdwfpW8g==}+ peerDependencies:+ '@tiptap/core': ^3.10.2+ '@tiptap/pm': ^3.10.2+'@tiptap/[email protected]':resolution: {integrity: sha512-DTQNAQkHZ+7Enlt3KvjqN6eECINlqPpET4Drzwj8Mmz9kMILc87cz3G2cwEKRrS9A1Xn3H3VpWvElWE2Wq9JHw==}peerDependencies:@@ -5515,21 +5612,43 @@ packages:'@tiptap/pm': ^3.0.9'@tiptap/suggestion': ^3.0.9+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-/gyUIMNKBoXOIy0SvjNYJ7G/yiYsnwwbnBo2hQgDza4p53KgnpTzg623/6GHDZSk7zy2S3O+5yWlzEmtrUva3A==}+ peerDependencies:+ '@tiptap/core': ^3.10.2+ '@tiptap/pm': ^3.10.2+ '@tiptap/suggestion': ^3.10.2+'@tiptap/[email protected]':resolution: {integrity: sha512-ACubdGc/y/rKPEgHTO7hDSg547wRRA+Es7c/rQgjrkpI///LBJQfixyUvNg2UNNPttNsavF/CUwhshCeo9MeBA==}peerDependencies:'@tiptap/extension-list': ^3.0.9+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-zs8wK1GNVedGENZPJOYUMtiLLPPASvJtabS2HTLPQGnpVeXfF0toftdVYDhGRGoQBBDLDjNyyW5ARzJwwXbTzQ==}+ peerDependencies:+ '@tiptap/extension-list': ^3.10.2+'@tiptap/[email protected]':resolution: {integrity: sha512-K5zGg4zLxxqAG0BgtRpLvKclYSGoSSuU1Fza0M5MwUgrFA0S2q4JnLB1czQ77S4pfb3hpScIe50fwJzZmIUEQw==}peerDependencies:'@tiptap/core': ^3.0.9+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-k84BMUxpeFTEIoUil4tnXF5viY4oUHXq4wz4JkO/LMEW6lAkO/PhJnJMMrcEJu0sox4aoNppcnS236RNXCiPpg==}+ peerDependencies:+ '@tiptap/core': ^3.10.2+'@tiptap/[email protected]':resolution: {integrity: sha512-2TBQ9P/FGe+/34ckfwP+eCdb4vbxDVZ5qD0piDIR9Ws5QI5IdtW90pNO4roxiPeRdVFrhTbFPEIuL0tg4NQRmg==}peerDependencies:'@tiptap/core': ^3.0.9+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-e6+WaEhWlsbV3mw8kSMwgq7Tty8BWoRGFGQj5B6Tg7bZUg3qgdE0Kp2s6MGNNikpuDchOebbIZxOk/qfVqgUbw==}+ peerDependencies:+ '@tiptap/core': ^3.10.2+'@tiptap/[email protected]':resolution: {integrity: sha512-x7SZLS537c7w789n8re0IktmkBZqz98dux/hwpFAcC4oL06YPjFG7Dy9mAiKcsKqKWI0eAyTQvMybz+TJusBbw==}peerDependencies:@@ -5540,17 +5659,33 @@ packages:peerDependencies:'@tiptap/core': ^3.0.9+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-5gHtEh7eIjFYtwIYvjJp1Sg7qlS1ObOLIkYGOm763t0JJbePXnkA5EnyfxAq3g+wfPajK7qgs3uqArCjlHA33w==}+ peerDependencies:+ '@tiptap/core': ^3.10.2+'@tiptap/[email protected]':resolution: {integrity: sha512-xLR5NbnxlEJmvfb4Aj8wCbTmh/ycnPsSDeP8+TAsdAYxypSA6BP6G0t4d4NWreqAq+tq6QV6Eh0+YDN0G1VZxw==}peerDependencies:'@tiptap/core': ^3.0.9+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-/n/+YXYYGmOOQl8zPZiyZFRtOmsnTe1TfEjNcsJcIUGW4X5teddp4lVTcvGO3aaufH48FcYnSVJya7A9dw3ABg==}+ peerDependencies:+ '@tiptap/core': ^3.10.2+'@tiptap/[email protected]':resolution: {integrity: sha512-IyTcPnZXUf0nxDkC+CCWh10vzn81Kq50euV/ivk8IyPr15hxPiT3Zk1LmCI10Pqf4Bwgz38XUIWtToDfIeEgpg==}peerDependencies:'@tiptap/core': ^3.0.9'@tiptap/pm': ^3.0.9+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-XyvMn6B6PCPsgV6VMLiS1QXI1OKarBAYwXmqsE+gCzzYyXxYX4sLUlQ8JKysREyIGMHxSg5vgOajsgXgFMrvyA==}+ peerDependencies:+ '@tiptap/core': ^3.10.2+ '@tiptap/pm': ^3.10.2+'@tiptap/[email protected]':resolution: {integrity: sha512-w37vPb5o/sKFbmnSGS2YE8yfWh2CAtmXnVFVg/tO1UYIVifVsfVVjOkfcbAQNZcHve+7NSwcIeI6oDh7FeYyIw==}peerDependencies:@@ -5558,20 +5693,34 @@ packages:'@tiptap/pm': ^3.6.5happy-dom: ^18.0.1+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-PsAdNAvd3z3VSMX8efkcr3qhCb2gAa0ohUn9/uzuZ+/CZ6YRkGfT74F5mRk5ttUMtA+5WSaqQYy59iORHuXaXw==}+ peerDependencies:+ '@tiptap/core': ^3.10.2+ '@tiptap/pm': ^3.10.2+'@tiptap/[email protected]':resolution: {integrity: sha512-cJdnpGyirRxwi6M4IkyapEK/jhcjFXdfX3uhJp/4uVH1dynNXalV0gE/YnH/yt55kzwvG9OUrwOQt+t1iXgNog==}- '@tiptap/[email protected]':- resolution: {integrity: sha512-BbvWPSgYGvd9m8fPXKI81gf9KP+1SMCPpscbtbbhPyxiW2ziY+jwo+i7MwVI73P89hWAJCy/43UnOde438HmOA==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-qXsp7guPLoir49Fh6IOzg6IAJA3tYYy/1316vv7DhJwmdF9GebkwgFcei2XGk6vKlwv18jWV+BlqDv9iwQ5Alg==}++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-3pvtpG0Wuy4iozYnCFrf3y0PPxOZ1oe/T2DNNTLelui4CiphS3sQoBtuVrzx+2QePGkFM5uU5Bj+ET3NmUbwWA==}peerDependencies:- '@tiptap/core': ^3.0.9- '@tiptap/pm': ^3.0.9+ '@tiptap/core': ^3.10.2+ '@tiptap/pm': ^3.10.2+ '@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-CYg6tV5fYOvkP1gyATkJJj+nFYmwjDKLipQc/r0D/tHKypxefENrm4G7mf4B78zsB/izfk5mW3iujvyeod6EcQ==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-8eCl+kBkOiXH+k3AVU1F1l3GK7+/Y3hdu/FSfpgTm+jJ14e5VNUQaDPvqKDmCo1dlTzF1OCJPi91hhUeqcJLvw==}+'@tiptap/[email protected]':resolution: {integrity: sha512-m0A18LFuGnWxUdg5miDclouwvA7KyUtiSaGds6EWKGFSSErJZEcaRq1ZdSvuFJtT/rVXc1MhG0Wu2g6mGX6eTw==}peerDependencies:@@ -9842,6 +9991,11 @@ packages:resolution: {integrity: sha512-Z1NL3Tb1M9wH4XESsCDEksWoKTdlUafKc4pt0GRwjUyXaCFZ+dc3g2erqB6zm3szA2IUSi7VnPI+o/9jnxh9hw==}+ resolution: {integrity: sha512-ntROs7RaN3EvWfy3EZi14H4YxmT6A5YvywfhO+0pm+cH/dnSQRmdAmoFIc3B9aiwTehyk7pESH4ofyBY+V5hZg==}+ engines: {node: '>= 20'}+ hasBin: true+resolution: {integrity: sha512-t8eP0dXRJMtMvBojtkcsA7n48BkauktUKzfkPSCq85ZMTJ0v76Rke4DYz01omYpPTUh4p/f7HePgRo3ebG8+QQ==}engines: {node: '>= 16'}@@ -19405,80 +19559,144 @@ snapshots:dependencies:'@tiptap/pm': 3.0.9+ '@tiptap/[email protected](@tiptap/[email protected])':+ dependencies:+ '@tiptap/pm': 3.10.2+dependencies:'@tiptap/core': 3.0.9(@tiptap/[email protected])+ dependencies:+ '@tiptap/core': 3.10.2(@tiptap/[email protected])+dependencies:'@tiptap/core': 3.0.9(@tiptap/[email protected])- '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':+ dependencies:+ '@tiptap/core': 3.10.2(@tiptap/[email protected])++ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':dependencies:'@floating-ui/dom': 1.6.12- '@tiptap/core': 3.0.9(@tiptap/[email protected])- '@tiptap/pm': 3.0.9+ '@tiptap/core': 3.10.2(@tiptap/[email protected])+ '@tiptap/pm': 3.10.2optional: true'@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':dependencies:'@tiptap/extension-list': 3.0.9(@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.10.2(@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.0.9(@tiptap/[email protected])'@tiptap/pm': 3.0.9+ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':+ dependencies:+ '@tiptap/core': 3.10.2(@tiptap/[email protected])+ '@tiptap/pm': 3.10.2+dependencies:'@tiptap/core': 3.0.9(@tiptap/[email protected])+ dependencies:+ '@tiptap/core': 3.10.2(@tiptap/[email protected])+dependencies:'@tiptap/core': 3.0.9(@tiptap/[email protected])+ dependencies:+ '@tiptap/core': 3.10.2(@tiptap/[email protected])+'@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':dependencies:'@tiptap/extensions': 3.0.9(@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](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':dependencies:- '@tiptap/core': 3.0.9(@tiptap/[email protected])- '@tiptap/extension-text-style': 3.0.9(@tiptap/[email protected](@tiptap/[email protected]))- '@tiptap/pm': 3.0.9+ '@tiptap/extensions': 3.10.2(@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])':+ '@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.10.2(@tiptap/[email protected])+ '@tiptap/extension-text-style': 3.0.9(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/pm': 3.10.2++ '@tiptap/[email protected](@floating-ui/[email protected])(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':dependencies:'@floating-ui/dom': 1.6.12- '@tiptap/core': 3.0.9(@tiptap/[email protected])- '@tiptap/pm': 3.0.9+ '@tiptap/core': 3.10.2(@tiptap/[email protected])+ '@tiptap/pm': 3.10.2optional: true'@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':dependencies:'@tiptap/extensions': 3.0.9(@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.10.2(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+dependencies:'@tiptap/core': 3.0.9(@tiptap/[email protected])+ dependencies:+ '@tiptap/core': 3.10.2(@tiptap/[email protected])+dependencies:'@tiptap/core': 3.0.9(@tiptap/[email protected])+ dependencies:+ '@tiptap/core': 3.10.2(@tiptap/[email protected])+'@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':dependencies:'@tiptap/core': 3.0.9(@tiptap/[email protected])'@tiptap/pm': 3.0.9+ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':+ dependencies:+ '@tiptap/core': 3.10.2(@tiptap/[email protected])+ '@tiptap/pm': 3.10.2+dependencies:'@tiptap/core': 3.0.9(@tiptap/[email protected])+ dependencies:+ '@tiptap/core': 3.10.2(@tiptap/[email protected])+dependencies:'@tiptap/core': 3.0.9(@tiptap/[email protected])+ dependencies:+ '@tiptap/core': 3.10.2(@tiptap/[email protected])++ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':+ dependencies:+ '@tiptap/core': 3.10.2(@tiptap/[email protected])+ '@tiptap/pm': 3.10.2+ linkifyjs: 4.3.2+'@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':dependencies:'@tiptap/core': 3.0.9(@tiptap/[email protected])@@ -19489,56 +19707,106 @@ snapshots:dependencies:'@tiptap/extension-list': 3.0.9(@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.10.2(@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.0.9(@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.10.2(@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.0.9(@tiptap/[email protected])'@tiptap/pm': 3.0.9+ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':+ dependencies:+ '@tiptap/core': 3.10.2(@tiptap/[email protected])+ '@tiptap/pm': 3.10.2+'@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.0.9(@tiptap/[email protected])'@tiptap/pm': 3.0.9'@tiptap/suggestion': 3.0.9(@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]))':+ dependencies:+ '@tiptap/core': 3.10.2(@tiptap/[email protected])+ '@tiptap/pm': 3.10.2+ '@tiptap/suggestion': 3.0.9(@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.0.9(@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.10.2(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+dependencies:'@tiptap/core': 3.0.9(@tiptap/[email protected])+ dependencies:+ '@tiptap/core': 3.10.2(@tiptap/[email protected])+dependencies:'@tiptap/core': 3.0.9(@tiptap/[email protected])dependencies:- '@tiptap/core': 3.0.9(@tiptap/[email protected])+ '@tiptap/core': 3.10.2(@tiptap/[email protected])++ dependencies:+ '@tiptap/core': 3.10.2(@tiptap/[email protected])dependencies:'@tiptap/core': 3.0.9(@tiptap/[email protected])+ dependencies:+ '@tiptap/core': 3.10.2(@tiptap/[email protected])+dependencies:'@tiptap/core': 3.0.9(@tiptap/[email protected])+ dependencies:+ '@tiptap/core': 3.10.2(@tiptap/[email protected])+'@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':dependencies:'@tiptap/core': 3.0.9(@tiptap/[email protected])'@tiptap/pm': 3.0.9+ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':+ dependencies:+ '@tiptap/core': 3.10.2(@tiptap/[email protected])+ '@tiptap/pm': 3.10.2+'@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])([email protected])':dependencies:'@tiptap/core': 3.0.9(@tiptap/[email protected])'@tiptap/pm': 3.0.9happy-dom: 18.0.1+ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':+ dependencies:+ '@tiptap/core': 3.10.2(@tiptap/[email protected])+ '@tiptap/pm': 3.10.2+ marked: 16.4.1+'@tiptap/[email protected]':dependencies:prosemirror-changeset: 2.3.1@@ -19560,18 +19828,41 @@ snapshots:prosemirror-transform: 1.10.4prosemirror-view: 1.40.1- '@tiptap/[email protected](@floating-ui/[email protected])(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])([email protected]([email protected]))([email protected])':+ '@tiptap/[email protected]':dependencies:- '@tiptap/core': 3.0.9(@tiptap/[email protected])- '@tiptap/pm': 3.0.9+ prosemirror-changeset: 2.3.1+ prosemirror-collab: 1.3.1+ prosemirror-commands: 1.7.1+ prosemirror-dropcursor: 1.8.2+ prosemirror-gapcursor: 1.3.2+ prosemirror-history: 1.4.1+ prosemirror-inputrules: 1.5.0+ prosemirror-keymap: 1.2.3+ prosemirror-markdown: 1.13.2+ prosemirror-menu: 1.2.5+ prosemirror-model: 1.25.2+ prosemirror-schema-basic: 1.2.4+ prosemirror-schema-list: 1.5.1+ prosemirror-state: 1.4.3+ prosemirror-tables: 1.7.1+ prosemirror-transform: 1.10.4+ prosemirror-view: 1.40.1++ '@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.10.2(@tiptap/[email protected])+ '@tiptap/pm': 3.10.2+ '@types/react': 19.1.14+ '@types/react-dom': 19.1.9(@types/[email protected])'@types/use-sync-external-store': 0.0.6fast-deep-equal: 3.1.3react: 19.1.1react-dom: 19.1.1([email protected])use-sync-external-store: 1.5.0([email protected])optionalDependencies:- '@tiptap/extension-bubble-menu': 3.0.9(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])- '@tiptap/extension-floating-menu': 3.0.9(@floating-ui/[email protected])(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+ '@tiptap/extension-bubble-menu': 3.10.2(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+ '@tiptap/extension-floating-menu': 3.10.2(@floating-ui/[email protected])(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])transitivePeerDependencies:- '@floating-ui/dom'@@ -19602,6 +19893,33 @@ snapshots:'@tiptap/extensions': 3.0.9(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])'@tiptap/pm': 3.0.9+ '@tiptap/[email protected]':+ dependencies:+ '@tiptap/core': 3.10.2(@tiptap/[email protected])+ '@tiptap/extension-blockquote': 3.10.2(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-bold': 3.10.2(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-bullet-list': 3.10.2(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))+ '@tiptap/extension-code': 3.10.2(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-code-block': 3.10.2(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+ '@tiptap/extension-document': 3.10.2(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-dropcursor': 3.10.2(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))+ '@tiptap/extension-gapcursor': 3.10.2(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))+ '@tiptap/extension-hard-break': 3.10.2(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-heading': 3.10.2(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-horizontal-rule': 3.10.2(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+ '@tiptap/extension-italic': 3.10.2(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-link': 3.10.2(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+ '@tiptap/extension-list': 3.10.2(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+ '@tiptap/extension-list-item': 3.10.2(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))+ '@tiptap/extension-list-keymap': 3.10.2(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))+ '@tiptap/extension-ordered-list': 3.10.2(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))+ '@tiptap/extension-paragraph': 3.10.2(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-strike': 3.10.2(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-text': 3.10.2(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-underline': 3.10.2(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extensions': 3.10.2(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+ '@tiptap/pm': 3.10.2+'@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@tiptap/core': 3.0.9(@tiptap/[email protected])@@ -19614,6 +19932,11 @@ snapshots:'@tiptap/core': 3.0.9(@tiptap/[email protected])'@tiptap/pm': 3.0.9+ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':+ dependencies:+ '@tiptap/core': 3.10.2(@tiptap/[email protected])+ '@tiptap/pm': 3.10.2+'@tokenizer/[email protected]':dependencies:debug: 4.4.0@@ -24933,6 +25256,8 @@ snapshots:+ [email protected]: {}+