SD-2664 - feature support word style update field interactions for TOC#3120
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
- tabLeader: 'none' must round-trip via serialize/parse (currently lost
because no \\p is emitted when separator is missing, and the parser has
no way to disambiguate "default = dots" from "explicit none").
- toc.configure({ tabLeader: 'none' }) on a default-leader TOC must not
silently no-op (areTocConfigsEqual reports identical serialized output).
- toc.update mode: 'pageNumbers' must find tocPageNumber marks when the
marked text is nested inside a run wrapper (the rebuild output shape).
All three tests fail on the current branch and lock in the regressions
flagged in code review.
There was a problem hiding this comment.
hey @chittolinag! the \p fix is the right call, but the rebuild path is regressing in a few spots.
pushed bceff5248 - three failing tests for findings 1, 1b, and 2.
left a few inline.
needs work.
|
hey @chittolinag! this looks pretty cool! I had a look at this one and found an issue where the text "No table of contents entries found" is not removed after entries are added to the document. Here's how to reproduce it: I also found another one that I posted as an inline comment. ping me if you have any questions! |
…re-support-word-style-update-field-interactions-for # Conflicts: # packages/super-editor/src/editors/v1/components/context-menu/constants.js
issues mentioned by him were fixed and he's OOO - as agreed, I'll dismiss.
|
🎉 This PR is included in superdoc v1.30.0-next.71 The release is available on GitHub release |
|
🎉 This PR is included in @superdoc-dev/mcp v0.3.0-next.74 The release is available on GitHub release |
|
🎉 This PR is included in @superdoc-dev/react v1.2.0-next.116 The release is available on GitHub release |
|
🎉 This PR is included in vscode-ext v2.3.0-next.118 |
|
🎉 This PR is included in superdoc-cli v0.8.0-next.90 The release is available on GitHub release |
|
🎉 This PR is included in superdoc-sdk v1.8.0-next.72 |
Issue
Word-style "Update Field" interactions (context menu + F9) aren't wired up in SuperDoc. The document API already exposes
editor.doc.toc.update(), but no user-facing action calls it. Scope of this PR is Table of Contents only — other field types are deferred.Proposed solution