import { l as EmailMark, o as EmailNode } from "../index-96kvkFPM.mjs"; import { a as createFocusScopesStorage, i as createFocusScopePlugin, n as FocusScopesOptions, o as focusScopePluginKey, r as FocusScopesStorage, t as FocusScopes } from "../focus-scopes-CKTuaMk3.mjs"; import { Editor, Extension, Node, ParentConfig } from "@tiptap/core"; import { UndoRedoOptions } from "@tiptap/extensions"; import { StarterKitOptions as StarterKitOptions$1 } from "@tiptap/starter-kit"; import { BlockquoteOptions } from "@tiptap/extension-blockquote"; import { BoldOptions as BoldOptions$1 } from "@tiptap/extension-bold"; import { BulletListOptions } from "@tiptap/extension-bullet-list"; import * as _$_tiptap_extension_code0 from "@tiptap/extension-code"; import { CodeOptions } from "@tiptap/extension-code"; import { CodeBlockOptions } from "@tiptap/extension-code-block"; import { HorizontalRuleOptions } from "@tiptap/extension-horizontal-rule"; import { HardBreakOptions } from "@tiptap/extension-hard-break"; import { HeadingOptions as HeadingOptions$1 } from "@tiptap/extension-heading"; import { ItalicOptions } from "@tiptap/extension-italic"; import { LinkOptions as LinkOptions$1 } from "@tiptap/extension-link"; import { ListItemOptions } from "@tiptap/extension-list-item"; import { OrderedListOptions } from "@tiptap/extension-ordered-list"; import { ParagraphOptions } from "@tiptap/extension-paragraph"; import { StrikeOptions } from "@tiptap/extension-strike"; import { SuperscriptExtensionOptions } from "@tiptap/extension-superscript"; import { UnderlineOptions as UnderlineOptions$1 } from "@tiptap/extension-underline"; import { Node as Node$1 } from "@tiptap/pm/model"; //#region src/extensions/alignment-attribute.d.ts interface AlignmentOptions { types: string[]; alignments: string[]; } declare module '@tiptap/core' { interface Commands { alignment: { /** * Set the text align attribute */ setAlignment: (alignment: string) => ReturnType; }; } } declare const AlignmentAttribute: Extension; //#endregion //#region src/extensions/body.d.ts interface BodyOptions { HTMLAttributes: Record; } declare const Body: EmailNode>; //#endregion //#region src/extensions/bold.d.ts type BoldOptions = BoldOptions$1; declare const Bold: EmailMark; //#endregion //#region src/extensions/button.d.ts interface EditorButtonOptions { HTMLAttributes: Record; [key: string]: unknown; } declare module '@tiptap/core' { interface Commands { button: { setButton: () => ReturnType; updateButton: (attributes: Record) => ReturnType; }; } } declare const Button: EmailNode>; //#endregion //#region src/extensions/class-attribute.d.ts interface ClassAttributeOptions { types: string[]; class: string[]; } declare module '@tiptap/core' { interface Commands { class: { /** * Set the class attribute */ setClass: (classList: string) => ReturnType; /** * Unset the class attribute */ unsetClass: () => ReturnType; }; } } declare const ClassAttribute: Extension; //#endregion //#region src/extensions/code-block.d.ts interface CodeBlockPrismOptions extends CodeBlockOptions { defaultLanguage: string; defaultTheme: string; } declare const CodeBlockPrism: EmailNode; //#endregion //#region src/extensions/container.d.ts interface ContainerOptions { HTMLAttributes: Record; } declare const Container: EmailNode>; //#endregion //#region src/extensions/div.d.ts interface DivOptions { HTMLAttributes: Record; } declare const Div: EmailNode>; //#endregion //#region src/extensions/divider.d.ts type DividerOptions = HorizontalRuleOptions; declare const Divider: EmailNode; //#endregion //#region src/extensions/global-content.d.ts interface GlobalContentOptions { key: string; data: Record; } declare module '@tiptap/core' { interface GlobalContent { setGlobalContent: (key: string, value: unknown) => ReturnType; } interface Commands { globalContent: GlobalContent; } } declare function getGlobalContent(key: string, editor: Editor): unknown | null; declare const GlobalContent: Node; //#endregion //#region src/extensions/heading.d.ts type HeadingOptions = HeadingOptions$1; declare const Heading: EmailNode; //#endregion //#region src/extensions/link.d.ts type LinkOptions = LinkOptions$1; declare const Link: EmailMark; //#endregion //#region src/extensions/max-nesting.d.ts interface MaxNestingOptions { maxDepth: number; nodeTypes?: string[]; } declare const MaxNesting: Extension; //#endregion //#region src/extensions/preview-text.d.ts interface PreviewTextOptions { HTMLAttributes: Record; } declare const PreviewText: Node; //#endregion //#region src/extensions/section.d.ts interface SectionOptions { HTMLAttributes: Record; [key: string]: unknown; } declare module '@tiptap/core' { interface Commands { section: { insertSection: () => ReturnType; }; } } declare const Section: EmailNode>; //#endregion //#region src/extensions/style-attribute.d.ts interface StyleAttributeOptions { types: string[]; style: string[]; } declare module '@tiptap/core' { interface Commands { textAlign: { /** * Set the style attribute */ setStyle: (style: string) => ReturnType; /** * Unset the style attribute */ unsetStyle: () => ReturnType; }; } } declare const StyleAttribute: Extension; //#endregion //#region src/extensions/sup.d.ts type SupOptions = SuperscriptExtensionOptions; declare module '@tiptap/core' { interface Commands { sup: { /** * Set a superscript mark */ setSup: () => ReturnType; /** * Toggle a superscript mark */ toggleSup: () => ReturnType; /** * Unset a superscript mark */ unsetSup: () => ReturnType; }; } } declare const Sup: EmailMark; //#endregion //#region src/extensions/table.d.ts declare module '@tiptap/core' { interface NodeConfig { /** * A string or function to determine the role of the table. * @default 'table' * @example () => 'table' */ tableRole?: string | ((this: { name: string; options: Options; storage: Storage; parent: ParentConfig>['tableRole']; }) => string); } } interface TableOptions { HTMLAttributes: Record; } declare const Table: EmailNode>; interface TableRowOptions extends Record { HTMLAttributes?: Record; } declare const TableRow: EmailNode>; interface TableCellOptions extends Record { HTMLAttributes?: Record; } declare const TableCell: EmailNode>; declare const TableHeader: Node; //#endregion //#region src/extensions/trailing-node.d.ts declare const skipTrailingNodeMeta = "skipTrailingNode"; /** * Extension based on: * - https://github.com/ueberdosis/tiptap/blob/v1/packages/tiptap-extensions/src/extensions/TrailingNode.js * - https://github.com/remirror/remirror/blob/e0f1bec4a1e8073ce8f5500d62193e52321155b9/packages/prosemirror-trailing-node/src/trailing-node-plugin.ts */ interface TrailingNodeOptions { /** * The node type that should be inserted at the end of the document. * @note the node will always be added to the `notAfter` lists to * prevent an infinite loop. * @default undefined */ node?: string; /** * The node type(s) that the trailing node should be appended to. * Accepts a single node name or an array of node names. * @default 'doc' */ appendTo?: string | string[]; /** * The node types after which the trailing node should not be inserted. * @default ['paragraph'] */ notAfter?: string | string[]; } /** * This extension allows you to add an extra node at the end of a node. * * Differently from TipTap's native one, it allows you to pick which node to append the trailing node to. * @see https://www.tiptap.dev/api/extensions/trailing-node * * We could contribute this to TipTap's core extensions and I think we should at some once we get some time. */ declare const TrailingNode: Extension; //#endregion //#region src/extensions/underline.d.ts type UnderlineOptions = UnderlineOptions$1; declare const Underline: EmailMark; //#endregion //#region src/extensions/uppercase.d.ts interface UppercaseOptions { HTMLAttributes: Record; } declare module '@tiptap/core' { interface Commands { uppercase: { setUppercase: () => ReturnType; toggleUppercase: () => ReturnType; unsetUppercase: () => ReturnType; }; } } declare const Uppercase: EmailMark>; //#endregion //#region src/extensions/blockquote.d.ts declare const Blockquote: EmailNode; //#endregion //#region src/extensions/bullet-list.d.ts declare const BulletList: EmailNode; //#endregion //#region src/extensions/code.d.ts declare const Code: EmailMark<_$_tiptap_extension_code0.CodeOptions, any>; //#endregion //#region src/extensions/columns.d.ts declare module '@tiptap/core' { interface Commands { columns: { insertColumns: (count: 2 | 3 | 4) => ReturnType; }; } } declare const COLUMN_PARENT_TYPES: readonly ["twoColumns", "threeColumns", "fourColumns"]; declare const MAX_COLUMNS_DEPTH = 3; declare function getColumnsDepth(doc: Node$1, from: number): number; declare const TwoColumns: EmailNode, Record>; declare const ThreeColumns: EmailNode, Record>; declare const FourColumns: EmailNode, Record>; declare const ColumnsColumn: EmailNode, Record>; //#endregion //#region src/extensions/hard-break.d.ts declare const HardBreak: EmailNode; //#endregion //#region src/extensions/italic.d.ts declare const Italic: EmailMark; //#endregion //#region src/extensions/list-item.d.ts declare const ListItem: EmailNode; //#endregion //#region src/extensions/ordered-list.d.ts declare const OrderedList: EmailNode; //#endregion //#region src/extensions/paragraph.d.ts declare const Paragraph: EmailNode; //#endregion //#region src/extensions/preserved-style.d.ts declare const PreservedStyle: EmailMark, Record>; /** * Processes styles when unlinking: * - Has background (button-like): preserve all styles * - No background: strip link-indicator styles (color, text-decoration), keep the rest */ declare function processStylesForUnlink(styleString: string | null | undefined): string | null; //#endregion //#region src/extensions/strike.d.ts declare const Strike: EmailMark; //#endregion //#region src/extensions/text.d.ts declare const Text: EmailNode; //#endregion //#region src/extensions/index.d.ts type StarterKitOptions = { CodeBlockPrism: Partial | false; Code: Partial | false; TwoColumns: Partial> | false; ThreeColumns: Partial> | false; FourColumns: Partial> | false; ColumnsColumn: Partial> | false; Paragraph: Partial | false; BulletList: Partial | false; OrderedList: Partial | false; TrailingNode: Partial | false; Blockquote: Partial | false; ListItem: Partial | false; HardBreak: Partial | false; Italic: Partial | false; PreviewText: Partial | false; Bold: Partial | false; Strike: Partial | false; Heading: Partial | false; Divider: Partial | false; Link: Partial | false; Sup: Partial | false; Underline: Partial | false; Uppercase: Partial | false; PreservedStyle: Partial> | false; Table: Partial | false; TableRow: Partial | false; TableCell: Partial | false; TableHeader: Partial> | false; Body: Partial | false; Container: Partial | false; Div: Partial | false; Text: Record | false; Button: Partial | false; Section: Partial | false; GlobalContent: Partial | false; AlignmentAttribute: Partial | false; StyleAttribute: Partial | false; ClassAttribute: Partial | false; MaxNesting: Partial | false; UndoRedo: Partial | false; FocusScopes: Partial | false; TiptapStarterKit: Partial | false; }; declare const StarterKit: Extension; //#endregion export { AlignmentAttribute, AlignmentOptions, Blockquote, Body, BodyOptions, Bold, BoldOptions, BulletList, Button, COLUMN_PARENT_TYPES, ClassAttribute, ClassAttributeOptions, Code, CodeBlockPrism, CodeBlockPrismOptions, ColumnsColumn, Container, ContainerOptions, Div, DivOptions, Divider, DividerOptions, EditorButtonOptions, FocusScopes, FocusScopesOptions, FocusScopesStorage, FourColumns, GlobalContent, GlobalContentOptions, HardBreak, Heading, HeadingOptions, Italic, Link, LinkOptions, ListItem, MAX_COLUMNS_DEPTH, MaxNesting, MaxNestingOptions, OrderedList, Paragraph, PreservedStyle, PreviewText, PreviewTextOptions, Section, SectionOptions, StarterKit, StarterKitOptions, Strike, StyleAttribute, StyleAttributeOptions, Sup, SupOptions, Table, TableCell, TableCellOptions, TableHeader, TableOptions, TableRow, TableRowOptions, Text, ThreeColumns, TrailingNode, TrailingNodeOptions, TwoColumns, Underline, UnderlineOptions, Uppercase, UppercaseOptions, createFocusScopePlugin, createFocusScopesStorage, focusScopePluginKey, getColumnsDepth, getGlobalContent, processStylesForUnlink, skipTrailingNodeMeta }; //# sourceMappingURL=index.d.mts.map