Skip to content

chore(api-report): regenerate the core and richtext API reports - #9344

Merged
cixzhang merged 1 commit into
mainfrom
chore/api-report-refresh-1101
Nov 1, 2026
Merged

cixzhang merged 1 commit into
mainfrom
chore/api-report-refresh-1101

Conversation

@cixzhang

@cixzhang cixzhang commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Maintainer impact

Why. The committed API reports for core and richtext were last generated in #9241. Two later pull requests changed the public surface without regenerating them. Every pull request since then is compared against those stale reports, so its PR report shows the same 29 inherited "API changes" rows plus "report stale". Reviewers see 29 rows that are not theirs, and a real API change is easy to miss among them.

Intended invariant

architecture:public-component-api INV24: each published package has one committed report, generated by pnpm api:report from its build. This pull request only re-runs that command on current main. No generator, workflow, or package source changes.

Change

What. pnpm build && pnpm api:report on main, committing the two reports that changed. The other nine published packages' reports were already current.

Rows that changed since #9241, and the pull request that introduced each:

@astryxdesign/core: 8 added, 20 changed, 0 removed

Rows Introduced by
~ statusVariant?: FieldStatusVariant → FieldStatusPlacement on ComplexSelector, DateInput, DateRangeInput, Field, FileInput, MultiSelector, NumberInput, PowerSearch, Selector, TextArea, TextInput, TimeInput, Tokenizer, Typeahead (14 rows) #9196
~ UseInputStatusIconOptions.statusVariant → FieldStatusPlacement #9196
~ FieldStatus marked @deprecated; FieldStatus.variant now listed as required in the component row #9196
~ FieldStatusVariantMap.tooltip marked @deprecated #9196
~ FieldStatusProps heading, + its six members (message, ref, type, variant, xstyle, inherits) now listed under Types #9196
+ interface SearchContext<T> (root entry, also re-exported from ./Typeahead) #7962
~ SearchSource.search(query, context?: SearchContext<T>) #7962

@astryxdesign/richtext: 0 added, 1 changed, 0 removed

Rows Introduced by
~ RichTextEditor.statusVariant?: FieldStatusVariant | 'tooltip' #9196

All other published packages: no change.

Risk

Low. Two generated Markdown files change; nothing ships, builds, or runs from them. If a row is wrong, the next pnpm api:report corrects it. This does not stop drift from coming back; a separate pull request changes the PR report to compare built surfaces.

Evidence

  • Failure before the change: node scripts/api-report/cli.mjs --check on main exits 1 with core and richtext stale; PR reports show 29 inherited rows.
  • Success after the change: --check exits 0 for all eleven published packages.
  • Product/runtime behavior verified unchanged: only packages/core/api-report.md and packages/richtext/api-report.md change.
  • CI impact: none. No workflow, action, or CI script changes.

Scope

  • No intended public API, product behavior, visual direction, or policy change.
  • Product changes discovered during the work were removed or split.
  • Public text and artifacts contain no internal Meta context.

Testing

@vercel

vercel Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 1, 2026 3:25pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 1, 2026
@astracat-bot

astracat-bot Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 1, 2026, 3:36 PM UTC

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is ready to merge: both reports match a fresh pnpm build && pnpm api:report on this branch, and every changed row traces to a current spec claim. One follow-up belongs outside this pull request. The generator reads only FieldStatus's first overload, the deprecated variant: 'tooltip' one, so the core report now shows the whole component as @deprecated with a required variant. Having componentProps in scripts/api-report/generate.mjs read the last call signature, then regenerating, would correct those rows.

[Automated review]

Comment on lines +1168 to +1172
component FieldStatus @deprecated
prop message: string
prop ref?: React.Ref<HTMLDivElement>
prop type: InputStatusType
prop variant?: FieldStatusVariant = 'attached'
prop variant: FieldStatusVariant = 'attached'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two rows come from FieldStatus's first overload, the deprecated variant: 'tooltip' one (FieldStatus.tsx:149-157). The signature ordinary calls resolve to is not deprecated, and its variant? stays optional. componentProps in scripts/api-report/generate.mjs reads getCallSignatures()[0], so the fix belongs in a generator follow-up, not in this file (a hand edit would fail --check).

This branch was successfully deployed

1 active deployment
Preview — 470672de Deployed Nov 1, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant