Commit 248a817
🔄 Sync stable → main (#2376)
* chore(release): 1.18.0 [skip ci]
# [1.18.0](v1.17.0...v1.18.0) (2026-03-05)
### Bug Fixes
* add type definitions for PresentationEditor ([#2271](#2271)) ([5402196](5402196))
* **document-api:** fix markdown to image ([bf0e664](bf0e664))
* **document-api:** make lists.setType preserve sequence continuity ([#2304](#2304)) ([da09826](da09826))
* **editor:** prevent focus loss when typing in header/footer editors (SD-1993) ([#2238](#2238)) ([e1b8007](e1b8007)), closes [PresentationEditor.#flushRerenderQueue](https://github.com/PresentationEditor./issues/flushRerenderQueue)
* **export:** sync document XML before numbering pruning to preserve list definitions ([36058c3](36058c3))
* **format:** route format.caps through textTransform so w:caps persists on export ([#2297](#2297)) ([8e771e2](8e771e2))
* handle Uint8Array media values from persistence layers ([#2298](#2298)) ([0d4505c](0d4505c))
* harden markdown image conversion ([4ba1c25](4ba1c25))
* **link-popover:** mount external popovers outside overflow:hidden container (SD-2148) ([#2308](#2308)) ([ea4be68](ea4be68))
* make expected revision optional, update docs ([#2265](#2265)) ([250bb5b](250bb5b))
* **painter-dom:** prevent scroll acceleration feedback loop in virtualization ([#2291](#2291)) ([fb3d25e](fb3d25e))
* portrait orientation in document-api ([dafab76](dafab76))
* **sdk:** keep sdk sessions alive in non collab ([#2289](#2289)) ([c634ee8](c634ee8))
* **super-editor:** align image resize handles with actual image position ([#2293](#2293)) ([217bdce](217bdce))
* **test:** stabilize flaky cleanUpParagraphWithAnnotations tests ([#2262](#2262)) ([7bafb7f](7bafb7f))
* **virtualization:** compute scrollY relative to scroll container, not viewport ([#2263](#2263)) ([370ca5e](370ca5e))
### Features
* **document-api:** add getHtml operation, fix HTML insert and SDK tool selection ([#2264](#2264)) ([c554678](c554678))
* **document-api:** clear content command ([#2300](#2300)) ([46b5261](46b5261))
* **document-api:** hyperlinks commands ([#2294](#2294)) ([4d3bebd](4d3bebd))
* **document-api:** initial image commands ([#2290](#2290)) ([d624231](d624231))
* **document-api:** insert table adds extra separator to match ms word ([#2301](#2301)) ([5e49613](5e49613))
* **document-api:** make styles.apply registry-driven with schema/validation ([#2267](#2267)) ([cab54ba](cab54ba))
* **document-api:** more image commands ([#2295](#2295)) ([4fbbbc9](4fbbbc9))
* **document-api:** more lists commands ([#2288](#2288)) ([eb48bf1](eb48bf1))
* **links:** convert pasted hyperlinks into real docx links ([#2270](#2270)) ([7d75522](7d75522))
* **markdown:** import images from markdown ([#2303](#2303)) ([b2f6a1a](b2f6a1a))
* support TIFF images in DOCX rendering ([#2284](#2284)) ([6436d86](6436d86)), closes [#2064](#2064)
* **tracked-changes:** allow partial tracked change resolution ([#2252](#2252)) ([988598d](988598d))
* **web-view:** new layout engine based web view ([#2100](#2100)) ([a353b82](a353b82))
* chore(release): 1.18.0 [skip ci]
# [1.18.0](v1.17.0...v1.18.0) (2026-03-05)
### Bug Fixes
* add type definitions for PresentationEditor ([#2271](#2271)) ([5402196](5402196))
* **document-api:** fix markdown to image ([bf0e664](bf0e664))
* **document-api:** make lists.setType preserve sequence continuity ([#2304](#2304)) ([da09826](da09826))
* **editor:** prevent focus loss when typing in header/footer editors (SD-1993) ([#2238](#2238)) ([e1b8007](e1b8007)), closes [PresentationEditor.#flushRerenderQueue](https://github.com/PresentationEditor./issues/flushRerenderQueue)
* **export:** sync document XML before numbering pruning to preserve list definitions ([36058c3](36058c3))
* **format:** route format.caps through textTransform so w:caps persists on export ([#2297](#2297)) ([8e771e2](8e771e2))
* handle Uint8Array media values from persistence layers ([#2298](#2298)) ([0d4505c](0d4505c))
* harden markdown image conversion ([4ba1c25](4ba1c25))
* **link-popover:** mount external popovers outside overflow:hidden container (SD-2148) ([#2308](#2308)) ([ea4be68](ea4be68))
* make expected revision optional, update docs ([#2265](#2265)) ([250bb5b](250bb5b))
* **painter-dom:** prevent scroll acceleration feedback loop in virtualization ([#2291](#2291)) ([fb3d25e](fb3d25e))
* portrait orientation in document-api ([dafab76](dafab76))
* **sdk:** keep sdk sessions alive in non collab ([#2289](#2289)) ([c634ee8](c634ee8))
* **super-editor:** align image resize handles with actual image position ([#2293](#2293)) ([217bdce](217bdce))
* **test:** stabilize flaky cleanUpParagraphWithAnnotations tests ([#2262](#2262)) ([7bafb7f](7bafb7f))
* **virtualization:** compute scrollY relative to scroll container, not viewport ([#2263](#2263)) ([370ca5e](370ca5e))
### Features
* **document-api:** add getHtml operation, fix HTML insert and SDK tool selection ([#2264](#2264)) ([c554678](c554678))
* **document-api:** clear content command ([#2300](#2300)) ([46b5261](46b5261))
* **document-api:** hyperlinks commands ([#2294](#2294)) ([4d3bebd](4d3bebd))
* **document-api:** initial image commands ([#2290](#2290)) ([d624231](d624231))
* **document-api:** insert table adds extra separator to match ms word ([#2301](#2301)) ([5e49613](5e49613))
* **document-api:** make styles.apply registry-driven with schema/validation ([#2267](#2267)) ([cab54ba](cab54ba))
* **document-api:** more image commands ([#2295](#2295)) ([4fbbbc9](4fbbbc9))
* **document-api:** more lists commands ([#2288](#2288)) ([eb48bf1](eb48bf1))
* **links:** convert pasted hyperlinks into real docx links ([#2270](#2270)) ([7d75522](7d75522))
* **markdown:** import images from markdown ([#2303](#2303)) ([b2f6a1a](b2f6a1a))
* support TIFF images in DOCX rendering ([#2284](#2284)) ([6436d86](6436d86)), closes [#2064](#2064)
* **tracked-changes:** allow partial tracked change resolution ([#2252](#2252)) ([988598d](988598d))
* **web-view:** new layout engine based web view ([#2100](#2100)) ([a353b82](a353b82))
* fix(export): prevent DOCX corruption from UTF-16 XML parts and schema violations (SD-2170) (#2349)
Cherry-pick from main (fed1d6b)
* chore(release): 1.18.1 [skip ci]
## [1.18.1](v1.18.0...v1.18.1) (2026-03-10)
### Bug Fixes
* **export:** prevent DOCX corruption from UTF-16 XML parts and schema violations (SD-2170) ([#2349](#2349)) ([f6dbb40](f6dbb40))
* fix(rendering): show comment highlight on text with Word highlight formatting
SD-2188: The `!textRun.highlight` guard in the renderer prevented comment
highlights from being applied when text also had Word highlight formatting
(`<w:highlight>`). This caused comments on highlighted text to be invisible.
Removed the guard so comment highlights always take precedence, matching
Word's behavior.
* test(rendering): strengthen SD-2188 assertion to verify comment color overrides Word highlight
The previous assertion (not.toBe('')) passed on both old and new code
since applyRunStyles already sets backgroundColor from the Word highlight.
Now asserts the color is NOT the Word yellow (#ffff00).
* test(rendering): add active and faded comment highlight tests with Word highlight (SD-2188)
Cover the full matrix: comment highlight overrides Word highlight
in idle, active, and faded states.
* fix(anchor-nav): use correct scroll container for sub-page bookmark navigation
goToAnchor was scrolling the visibleHost element which has overflow:visible
and cannot scroll. Now uses #scrollContainer (the first scrollable ancestor)
and computes precise Y offsets from layout fragment positions for sub-page
scroll precision.
SD-2186
* docs: add PresentationEditor CLAUDE.md with DOM/scroll hierarchy
* fix(toc): correct zoom scaling and rect.top bug in anchor scroll
- Remove rect?.top (Rect type has no top property, was always undefined)
- Scale fragmentY by zoom factor before mixing with screen-space coords
- Thread zoom from PresentationEditor into goToAnchor deps
- Add unit tests for precision scroll, zoom scaling, and gap fallback
* test(toc): add behavior tests for TOC anchor click navigation
Tests clicking TOC entry links and verifying:
- Caret moves to the bookmark position (SD-2186)
- Scroll position changes for cross-page navigation
* chore(release): 1.18.2 [skip ci]
## [1.18.2](v1.18.1...v1.18.2) (2026-03-11)
### Bug Fixes
* **anchor-nav:** use correct scroll container for sub-page bookmark navigation ([a300536](a300536)), closes [#scrollContainer](https://github.com/superdoc-dev/superdoc/issues/scrollContainer)
* **rendering:** show comment highlight on text with Word highlight formatting ([f6d956e](f6d956e))
* **toc:** correct zoom scaling and rect.top bug in anchor scroll ([16c768f](16c768f))
* ci: remove changelog generation from stable releases
---------
Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
Co-authored-by: Caio Pizzol <97641911+caio-pizzol@users.noreply.github.com>
Co-authored-by: Caio Pizzol <caio@harbourshare.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>1 parent 29dd4d3 commit 248a817
0 file changed
0 commit comments