refactor(react): audit @pretable/react public surface; rename usePretableModel → usePretable - #111
Merged
Conversation
Renames usePretableModel → usePretable (deleting the old PretableGrid- returning usePretable); demotes useResolvedHeights, measureRenderedRowHeight, ROW_SELECT_COLUMN_ID to ɵ-prefix at re-export; tags InspectionGrid, LabeledGridSurface and their props @beta; deletes PretableCoreColumn alias and PretableSurfaceSortDirection leak; clipboard symbols stay @public per user feedback (docs alignment captured as separate follow-up). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…plan 7 tasks: hook rename + ripple, fix PretableSurfaceSortDirection leak, TSDoc + release tags, public_api.ts + index.ts collapse, regenerate react.api.md + audit diff, per-package README, gates+PR. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…vel usePretable The simple-sounding name now points to the hook docs already use. Old usePretable (returning just PretableGrid) was a one-line useMemo wrapper around createGrid; deleted. UsePretableModelOptions is now UsePretableOptions; the strict-subset old UsePretableOptions deleted. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…ableSortDirection from core Eliminates the ae-forgotten-export warning on react.api.md. The local alias was just a more verbose way of saying 'asc | desc | null'. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Adds TSDoc summaries with release tags on every public, beta, and internal symbol so api-extractor's report shows annotated API instead of @public (undocumented). Tags InspectionGrid, LabeledGridSurface, and their props @beta. Tags useResolvedHeights, measureRenderedRowHeight, ROW_SELECT_COLUMN_ID @internal — public_api.ts will re-export them with ɵ-prefix in the next task. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
public_api.ts is the single source of truth for the package's public surface. index.ts collapses to a one-line re-export. Three internal-use exports demoted to ɵ-prefix at the public boundary: ɵuseResolvedHeights, ɵmeasureRenderedRowHeight, ɵROW_SELECT_COLUMN_ID. PretableCoreColumn alias deleted — use PretableColumn from @pretable/core if the headless base type is what you need. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…missing-underscore react.api.md: hook rename, 3 ɵ-prefix demotions, 5 @beta tags, deletion of PretableCoreColumn alias and PretableSurfaceSortDirection leak, @public TSDoc on every public symbol — 0 (undocumented) annotations. ae-internal-missing-underscore silenced because pretable uses the ɵ-prefix convention (Angular ecosystem) for "exported but @internal" rather than api-extractor's _underscore convention. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…t; format pass The ɵ-prefix demotion removed measureRenderedRowHeight from the public re-export. Internal tests can still import from ../row-height directly. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Vercel preview readyPreview: https://pretable-gu4m0uyv6-cacheplane.vercel.app Updated automatically by the |
6 tasks
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.
Summary
PR 3 of 5 for Tier 1 Sub-project A — Public API Stabilization. Audits `@pretable/react` per PR 3's design spec.
Spec correction surfaced during execution
Test plan
🤖 Generated with Claude Code