@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
insertPageBreakcommand withMod-Enterkeyboard 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
onAfterPageLayoutCallbacksstorage map for cooperating extensions to hook into the page layout refresh cycle - Extend
refreshPagewith multi-pass stabilization that re-runs callbacks until layout converges or the max pass limit is reached - Add
getDistanceToNextPagebreakandgetDistanceToPrevPagebreakstorage APIs for querying pixel distances to page boundaries - Schedule post-render recalculations via
requestAnimationFramewhen 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-pagebreakas a peer dependency - Bundle PageBreak into PageKit by default (disable with
pagebreak: false) - BREAKING: Rename
pageBreakBackgroundoption topageGapBackground,setPageBreakBackgroundcommand tosetPageGapBackground, to avoid confusion with the new PageBreak extension - BREAKING: Pages extension no longer exports
PageKitorTableKit; they have been moved to separate@tiptap-pro/extension-pages-pagekitand@tiptap-pro/extension-pages-tablekitextensions.
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