import { OxmlNode } from '../../core/OxmlNode.js'; /** * Whether a paragraph's only inline leaf content is break placeholders * (lineBreak / hardBreak), with no visible text or other embedded objects. * * Distinct from `isVisuallyEmptyParagraph`, which returns false when any * break node is present. This predicate catches the complementary case: * paragraphs that *look* empty to the user but technically contain a break. * * Context: after splitting a list item that ends with a trailing `w:br`, * the new paragraph inherits that break. In WebKit the resulting DOM shape * causes native text insertion to land in the list-marker element * (`contenteditable="false"`) instead of the content area — and * `ParagraphNodeView.ignoreMutation` silently drops it. Detecting * this shape lets the `beforeinput` handler insert via ProseMirror * transaction instead of relying on native DOM insertion. * * @param {import('prosemirror-model').Node} node * @returns {boolean} */ export function hasOnlyBreakContent(node: import('prosemirror-model').Node): boolean; /** * Configuration options for Paragraph * @typedef {Object} ParagraphOptions * @category Options * @property {number[]} [headingLevels=[1,2,3,4,5,6]] - Supported heading levels * @property {Object} [htmlAttributes={}] - HTML attributes for paragraph elements */ /** * Attributes for paragraph nodes * @typedef {Object} ParagraphAttributes * @category Attributes * @property {Object} [extraAttrs={}] - Additional HTML attributes * @property {string} [class] - CSS class name * @property {string} [sdBlockId] @internal - Internal block tracking ID * @property {string} [paraId] @internal - Paragraph identifier * @property {string} [textId] @internal - Text identifier * @property {string} [rsidR] @internal - Revision save ID * @property {string} [rsidRDefault] @internal - Default revision save ID * @property {string} [rsidP] @internal - Paragraph revision save ID * @property {string} [rsidRPr] @internal - Run properties revision save ID * @property {string} [rsidDel] @internal - Deletion revision save ID * @property {Object} [attributes] @internal - Internal attributes storage * @property {string} [filename] @internal - Associated filename * @property {Object} [paragraphProperties] @internal - Internal paragraph properties * @property {Object} [dropcap] @internal - Drop cap configuration * @property {string} [pageBreakSource] @internal - Page break source * @property {Object} [sectionMargins] @internal - Section-specific header/footer margins in inches */ /** * @module Paragraph * @sidebarTitle Paragraph * @snippetPath /snippets/extensions/paragraph.mdx */ export const Paragraph: OxmlNode, Record, Record>; /** * Configuration options for Paragraph */ export type ParagraphOptions = Object; /** * Attributes for paragraph nodes */ export type ParagraphAttributes = Object; //# sourceMappingURL=paragraph.d.ts.map