feat(public-facade): phase 4a flip subpath types to public facade (SD-3211)#3374
Merged
Merged
Conversation
…-3211) TypeScript contract switch for 9 scaffolded subpaths only. Each subpath's `types` and `typesVersions` field now resolves through the curated `dist/superdoc/src/public/**` declarations built by SD-3178 and its leaves. Subpaths flipped: ./types, ./ui, ./ui/react, ./headless-toolbar, ./headless-toolbar/react, ./headless-toolbar/vue, ./converter, ./docx-zipper, ./file-zipper. Explicitly NOT in this PR: Root `.` entry stays on historical types. Dry-run found a 196-name consumer-fixture surface vs the 24-name SD-3185 curated facade. The mismatch requires classification before flipping; tracked as Phase 4b (SD-3212). `./super-editor` entry stays on historical types (SD-3181 deferred). No `import` / `require` / `source` field changes. Runtime module identity unchanged for every consumer. Verified locally: - Facade verifier: clean across 10 entries. - Consumer-typecheck matrix: 57/57 scenarios pass. - check-export-coverage: 12 entries OK. - SD-3176 subpath snapshots: clean. This is the safe half of Phase 4. The root half (SD-3212) is the strategic work, scoped separately to keep regressions isolated.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Contributor
|
🎉 This PR is included in superdoc-sdk v1.10.0 |
Contributor
|
🎉 This PR is included in @superdoc-dev/mcp v0.6.0 The release is available on GitHub release |
Contributor
|
🎉 This PR is included in superdoc v1.34.0 The release is available on GitHub release |
Contributor
|
🎉 This PR is included in @superdoc-dev/react v1.5.0 The release is available on GitHub release |
Contributor
|
🎉 This PR is included in vscode-ext v2.6.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TypeScript contract switch for 9 scaffolded subpaths only. Each subpath's
typesandtypesVersionsfield now resolves through the curateddist/superdoc/src/public/**declarations built by SD-3178 and its leaves.Subpaths flipped:
./types,./ui,./ui/react,./headless-toolbar,./headless-toolbar/react,./headless-toolbar/vue,./converter,./docx-zipper,./file-zipper.Not in this PR:
.entry stays on historical types. A dry-run flip surfaced a 196-name consumer-fixture surface vs the 24-name SD-3185 curated facade (31 of 57 matrix scenarios failed). The mismatch requires classification before flipping; tracked as Phase 4b (SD-3212)../super-editorentry stays on historical types (SD-3181 deferred).import/require/sourcefield changes. Runtime module identity unchanged for every consumer.Verified locally:
This is the safe half of Phase 4. The root half (SD-3212) is the strategic work, scoped separately to keep regressions isolated and to give the root classification its own evidence-based decision pass.
Related: SD-3211 (this PR), SD-3175 (path-as-contract umbrella), SD-3178 (Phase 3 scaffold), SD-3185 (root facade curation), SD-3212 (Phase 4b root work), SD-3181 (deferred super-editor).