@tiptap-pro/extension-pagebreak Changelog

Changelog for @tiptap-pro/extension-pagebreak

0.3.1

Patch Changes

  • 0608c46: Minor bugfixes & improvements

0.3.0

Minor Changes

  • 4f38179: Add Pages-aware PageBreak behavior and integrate PageBreak into PageKit

    @tiptap-pro/extension-pagebreak

    • Add Pages-aware node view that fills remaining page space to push content to the next page, mirroring MS Word's page break behavior
    • Register measurement callbacks with the Pages extension's layout refresh cycle for synchronized height updates
    • Implement multi-pass layout stabilization so consecutive page breaks converge correctly
    • Add insertPageBreak command with Mod-Enter keyboard shortcut
    • Support standard mode (visual dashed rule with label) and Pages mode (invisible space filler)
    • Include drag-and-drop support and DOCX import compatibility

    @tiptap-pro/extension-pages

    • Add onAfterPageLayoutCallbacks storage map for cooperating extensions to hook into the page layout refresh cycle
    • Extend refreshPage with multi-pass stabilization that re-runs callbacks until layout converges or the max pass limit is reached
    • Add getDistanceToNextPagebreak and getDistanceToPrevPagebreak storage APIs for querying pixel distances to page boundaries
    • Schedule post-render recalculations via requestAnimationFrame when document changes affect page count
    • Add BFC loop detector reset on legitimate page-count recalculations to prevent false-positive oscillation detection
    • Include @tiptap-pro/extension-pagebreak as a peer dependency
    • Bundle PageBreak into PageKit by default (disable with pagebreak: false)
    • BREAKING: Rename pageBreakBackground option to pageGapBackground, setPageBreakBackground command to setPageGapBackground, to avoid confusion with the new PageBreak extension
    • BREAKING: Pages extension no longer exports PageKit or TableKit; they have been moved to separate @tiptap-pro/extension-pages-pagekit and @tiptap-pro/extension-pages-tablekit extensions.

0.2.1

Patch Changes

  • d764c50: Remove the private property from package.json so it's publishable

0.2.0

Minor Changes

  • 3b574ff: Add PageBreak extension with visual page break node, keyboard shortcut, and drag-and-drop support