Repository navigation
docs(core): prop types name only types the package exports - #12337
Conversation
Selector's options are SelectorOptionType[] (SelectorOption is a component), SyntaxTheme's theme is a SyntaxThemeDefinition, Markdown's plugins are what createMarkdownPlugin() returns, and the imperative dialog hooks' show() options are written as the exported Dialog and AlertDialog props they are built from.
…show options Toast's props table now matches ToastProps: type, isAutoHide and autoHideDuration are required, as the card takes them resolved. The show-only options (uniqueID, collisionBehavior, onHide) and the defaults the show function fills in move to useToast's doc. The Toast record names both docs.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
|
/approve-spec 03c20f5 |
PR Analysis Report🔎 Preview ·
|
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| AlertDialog · Storybook | 133.1 kB (0) · 16.2 kB CSS (0) | 487 (0) | ✓ · ✓ · ✓ |
| Dialog | 27.7 kB (0) · 7.3 kB CSS (0) | — | ✓ · ✓ · — |
| DialogHeader | 70.8 kB (0) · 12.8 kB CSS (0) | — | ✓ · ✓ · ✓ |
2 more components
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| Selector | 120.1 kB (0) · 19.7 kB CSS (0) | — | ✓ · ✓ · ✓ |
| SelectorOption | 24.6 kB (0) · 6.8 kB CSS (0) | — | ✓ · ✓ · ✓ |
Package size: @astryxdesign/core 7.92 MB packed (+23 B); no new dependencies.
Touched components checked; for the full suites, add ci:run-visual for Visual, ci:run-a11y for Accessibility, ci:run-rtl for RTL.
Generated by PR Enrichment workflow | View full report
There was a problem hiding this comment.
Changes requested: the English doc fixes match the code, but five text problems remain in what this pull request changes or claims.
- The changeset says every component and hook doc now names exported types, but
useComboboxanduseMultiComboboxstill document their options asUseComboboxOptionsandUseMultiComboboxOptions, which no entry point exports, so narrow the changeset to the docs this changes or fix those two as well. - The description says
MarkdownPluginEntryis not exported, but@astryxdesign/core/Markdown/pluginsexports it besidecreateMarkdownPluginandReturnType<typeof createMarkdownPlugin>is the same type, so keepreadonly MarkdownPluginEntry[], or state the root-entry reason and giveuseOutlineFromMarkdown's doc the same spelling. - Toast's
typestill says error toasts persist until dismissed, but the card's timer reads onlyisAutoHide, so move that sentence toisAutoHideas whatuseToast()'s show function does, in the English, zh and dense text. - Toast's zh and dense
isAutoHidetext still gives card defaults for a prop that is now required, so carry the new English sentence into both translations. packages/core/src/Toast/useToast.doc.mjsfailsprettier --check, so the description's "Prettier passes on the changed files" is not yet true; runprettier --writeon it.
The other retyped docs, the required flags, the drift-list deletions and the record sentence check out against the code.
Claims and files checked
Review mode: full; reason: no-earlier-review
Claims:
- Selector's
optionsis the exported item type: verified (Selector/index.ts:19,Selector.tsx:1177). - SyntaxTheme's
themeis the exported definition type: verified (theme/syntax/SyntaxTheme.tsx:156). - Markdown's old plugin type is not exported: false (
Markdown/plugins/index.ts:59). - The alert dialog hook's
showoptions use the exported props: verified (useImperativeAlertDialog.tsx:20). - The dialog hook's
showoptions use the exported props: verified (useImperativeDialog.tsx:26-29). - Toast's doc describes the card, with three props required: verified for the English flags (
Toast.tsx:152-156); partly false fortypeand the zh and denseisAutoHidetext. - The show-only options and their defaults move to useToast's doc: verified (
useToast.doc.mjs:16,ToastViewport.tsx:296-298,Layer/toastHost.tsx:64). - The uniqueID best practice names
useToast(): verified (Toast.doc.mjs:133). - The Toast record names both consumer docs: verified (
Toast.spec.md:73-74). - The six Toast drift entries are gone and the drift test requires it: verified (
core-prop-docs.test.mjspasses). - No type is exported or changed: verified (API surface comparison lists no row).
- The prop-docs and doc-type tests pass: verified (run at this head).
- The knowledge and changeset checks pass: verified (run at this head).
- Prettier passes on the changed files: false (
useToast.doc.mjs). - The five named types are exported from Core's root: verified (
src/index.tsre-exports). - Changeset, component and hook docs name only exported types: false (
useCombobox.doc.mjs:27,useMultiCombobox.doc.mjs:27). - Changeset, the per-doc details: verified, apart from the Toast
typeand Markdown points above.
Files:
.changeset/docs-name-exported-types.md: finding (over-broad claim).docs/specs/components/Toast/Toast.spec.md: clear.packages/cli/test/core-prop-docs.known-drift.json: clear.packages/core/src/AlertDialog/useImperativeAlertDialog.doc.mjs: clear.packages/core/src/Dialog/useImperativeDialog.doc.mjs: clear.packages/core/src/Markdown/Markdown.doc.mjs: finding (false premise, spelling differs from Outline's doc).packages/core/src/Selector/Selector.doc.mjs: clear.packages/core/src/Toast/Toast.doc.mjs: findings (typepersistence, zh and denseisAutoHide).packages/core/src/Toast/useToast.doc.mjs: finding (not formatted).packages/core/src/theme/SyntaxTheme.doc.mjs: clear.
…w sets in every language MarkdownPluginEntry is exported from @astryxdesign/core/Markdown/plugins, so the Markdown doc keeps naming it. The Toast card does not decide that an error toast persists: useToast()\s show function sets isAutoHide to false for one, so that sentence moves to isAutoHide, and the zh and dense text say what show sets for each required prop. The changeset names the docs this changes.
|
/approve-spec 305b2de |
There was a problem hiding this comment.
Changes requested: the Toast, Selector and dialog hook docs match the code and the description's overlap note is now accurate, but the SyntaxTheme doc change still breaks the docsite's SyntaxTheme playground.
- Miss:
SyntaxTheme.doc.mjsnow typesthemeasSyntaxThemeDefinition, but the docsite still picks the theme preset control by the old name (apps/docsite/src/components/component-detail/parsePropType.ts:186), so the SyntaxTheme page's playground shows "Render error: Cannot read properties of undefined (reading 'keyword')" with no theme picker; matchSyntaxThemeDefinitionthere and add a docsite test for it.
Miss (non-blocking): the docsite's Toast playground now starts autoHideDuration at 0; adding the show function's values to the doc's playground.defaults keeps the old start (see the existing inline comment).
Claims and files checked
Review mode: same-head; reason: none
- Claim, changeset: four docs now name exported prop types (Selector, SyntaxTheme, both imperative dialog hooks): verified against the Selector, theme and dialog entry points and the hooks' option types.
- Claim, changeset and description: Toast's doc describes the card, with
type,isAutoHideandautoHideDurationrequired: verified againstToastPropsinToast.tsx. - Claim, changeset and description:
useToast's doc lists the show options and their defaults: verified againstToastOptions, the viewport's fallbacks and the toast host's collision default. - Claim, description: each required Toast prop says in English, Chinese and dense text what the show function sets, and error persistence moved to
isAutoHide: verified in all three. - Claim, description: the
uniqueIDbest practice namesuseToast(): verified in all three. - Claim, description: the Toast record names both consumer docs, consistent with its public contract: verified.
- Claim, description: the six Toast drift entries are gone and the drift test requires it: verified, the test passes.
- Claim, description: no type is exported or changed, and only docs and one record sentence change: verified (besides the changeset and the drift list).
- Claim, description: the writing-rubric results for the record sentence: verified.
- Claim, description: the prop-drift and descriptor-type tests,
check:knowledge,check:changesetsand Prettier pass: verified by rerunning them. - Claim, description: the combobox hooks' option types are not exported, and
MarkdownPluginEntryis exported from the Markdown plugins entry: verified. - Claim, description: the exported-type resolver from #12326 finds the five named types at Core's root: verified, all five are re-exported from Core's root through the export chains that resolver follows.
- Claim, description: the overlap note: verified for all nineteen pull requests it names.
- File
.changeset/docs-name-exported-types.md: clear. - File
docs/specs/components/Toast/Toast.spec.md: clear. - File
packages/cli/test/core-prop-docs.known-drift.json: clear. - File
packages/core/src/AlertDialog/useImperativeAlertDialog.doc.mjs: clear. - File
packages/core/src/Dialog/useImperativeDialog.doc.mjs: clear. - File
packages/core/src/Selector/Selector.doc.mjs: clear. - File
packages/core/src/Toast/Toast.doc.mjs: one non-blocking note (docsite playground seeding). - File
packages/core/src/Toast/useToast.doc.mjs: clear. - File
packages/core/src/theme/SyntaxTheme.doc.mjs: one blocking finding (docsite playground).
Without defaults on the now-required type, isAutoHide and autoHideDuration, the docsite playground started autoHideDuration at 0. Its defaults are now the values useToast()'s show function sets.
|
/approve-spec b0a864e |
There was a problem hiding this comment.
Changes requested: the Toast, Selector and dialog hook docs now match the code, but the SyntaxTheme doc change breaks the docsite's SyntaxTheme playground, and one description claim is out of date.
- Miss:
SyntaxTheme.doc.mjsnow typesthemeasSyntaxThemeDefinition, but the docsite still picks the theme preset control by the old name (apps/docsite/src/components/component-detail/parsePropType.ts:186), so the SyntaxTheme page's playground shows "Render error: Cannot read properties of undefined (reading 'keyword')" with no theme picker; matchSyntaxThemeDefinitionthere and add a case toapps/docsite/src/__tests__/component-prop-controls.test.ts. - Regression: the description's overlap note lists #11517 among the pull requests that already conflict with main, but #11517 now merges cleanly with main and with this change, so move it to the group that shares a file and merges cleanly.
Claims and files checked
Review mode: same-head; reason: none
- Rules changed since the last review: 0.
- Claim, changeset: the Selector, SyntaxTheme and both imperative dialog hook docs name exported types: verified (
SelectorOptionType,SyntaxThemeDefinition,DialogPropsandAlertDialogPropsare Core root exports, and theshowshapes matchuseImperativeDialog.tsx:26-33anduseImperativeAlertDialog.tsx:20-24). - Claim, changeset and description: Toast's doc describes the card, with
type,isAutoHideandautoHideDurationrequired: verified againstToastProps(Toast.tsx:151-158). - Claim, changeset and description:
useToast's doc lists the show options and their defaults: verified againstToastViewport.tsx:296-298,Layer/toastHost.tsx:64andToast/types.ts:53-63. - Claim, description: four docs named a type Core does not export, and a
<Toast>written from the old table did not type-check: verified on the base. - Claim, description: each required Toast prop says in English, Chinese and dense text what the show function sets, and the error-persistence sentence moved to
isAutoHide: verified in all three. - Claim, description: the
uniqueIDbest practice namesuseToast(): verified in all three. - Claim, description: the Toast record names both consumer docs, consistent with its public contract: verified.
- Claim, description: the six Toast drift entries are gone and the drift test requires it: verified, the drift test passes at this head.
- Claim, description: no type is exported or changed, and only docs and one record sentence change: verified (besides the changeset and the drift list); Core's built API surface compares with no change.
- Claim, description: the writing-rubric results for the record sentence: verified.
- Claim, description: the prop-drift and descriptor-type tests,
check:knowledge,check:changesetsand Prettier pass: verified at this head. - Claim, description: the combobox hooks' option types are not exported, and
MarkdownPluginEntryis exported from the Markdown plugins entry: verified (Selector/hooks.ts:358,MultiSelector/hooks.ts:24,Markdown/plugins/index.ts:59). - Claim, description: the five named types resolve at Core's root: verified.
- Claim, description: the overlap note: verified for eighteen of the nineteen pull requests; false for #11517 (finding above).
- File
.changeset/docs-name-exported-types.md: clear. - File
docs/specs/components/Toast/Toast.spec.md: clear. - File
packages/cli/test/core-prop-docs.known-drift.json: clear. - File
packages/core/src/AlertDialog/useImperativeAlertDialog.doc.mjs: clear. - File
packages/core/src/Dialog/useImperativeDialog.doc.mjs: clear. - File
packages/core/src/Selector/Selector.doc.mjs: clear. - File
packages/core/src/Toast/Toast.doc.mjs: clear. - File
packages/core/src/Toast/useToast.doc.mjs: clear. - File
packages/core/src/theme/SyntaxTheme.doc.mjs: one blocking finding (docsite playground).
…set control SyntaxTheme's doc now types theme as SyntaxThemeDefinition, and the playground still picked the preset control by the old name, so the SyntaxTheme page rendered with no picker and a render error. CodeBlock's syntaxTheme row, typed the same way, gets the picker too.
|
/approve-spec 503c1bc |
There was a problem hiding this comment.
Changes requested: the SyntaxTheme playground has its preset picker again, but the same docsite change gives CodeBlock's props table a picker that misstates an unset prop, and one description claim is out of date.
- The docsite now gives CodeBlock's and Lab DiffViewer's optional
syntaxThemerows the syntax theme picker (apps/docsite/src/components/component-detail/parsePropType.ts:186), which reads "One Dark Pro" while the prop is unset and the preview keeps the theme-level syntax colours, with no way back to unset; give an optional row an unset choice that sendsundefined, as the enum control's "None" does, and add a test for it. - Regression: the description's overlap note lists #11966 among the pull requests that already conflict with main, but since #11966 merged main it merges cleanly with main and with this change, so move it to the group that shares a file and merges cleanly.
Claims and files checked
Review mode: incremental; reason: none
- changed rules (0): none.
- Claim, changeset: the Selector, SyntaxTheme and both imperative dialog hook docs name exported types: verified (Core's root exports
SelectorOptionType,SyntaxThemeDefinition,DialogPropsandAlertDialogProps, and theshowshapes match the hooks' declarations). - Claim, changeset and description: Toast's doc describes the card, with
type,isAutoHideandautoHideDurationrequired: verified againstToastProps(Toast.tsx:151-158). - Claim, changeset and description:
useToast's doc lists the show options and their defaults: verified againstToastViewport.tsx:296-298andLayer/toastHost.tsx:64. - Claim, description: four docs named a type Core does not export, and a
<Toast>written from the old table did not type-check: verified on the base. - Claim, description: the docsite picks the SyntaxTheme preset control by type name and now matches
SyntaxThemeDefinition, and the new test fails without the change: verified (the test fails on the base and passes on this head). - Claim, description: CodeBlock's
syntaxThemerow gets the picker too: true, but the picker misstates an unset value (finding above). - Claim, description: each required Toast prop says in English, Chinese and dense text what the show function sets; the error-persistence sentence moved to
isAutoHide; the show-only options moved touseToast's doc; theuniqueIDbest practice namesuseToast(): verified. - Claim, description: the Toast record names both consumer docs, consistent with its public contract: verified.
- Claim, description: the six Toast drift entries are gone and the drift test requires it: verified, the drift test passes.
- Claim, description: no type is exported or changed: verified, Core's built API surface has no change.
- Claim, description: the writing-rubric results for the record sentence: verified.
- Claim, description: the prop-drift and descriptor-type tests,
check:knowledge,check:changesetsand Prettier pass: verified at this head. - Claim, description: the combobox hooks' option types are not exported, and
MarkdownPluginEntryis exported from the Markdown plugins entry: verified. - Claim, description: the five named types resolve at Core's root: verified.
- Claim, description: the overlap note: verified for eighteen of the nineteen pull requests; false for #11966 (finding above).
- File
.changeset/docs-name-exported-types.md: clear. - File
apps/docsite/src/__tests__/component-prop-controls.test.ts: clear. - File
apps/docsite/src/components/component-detail/parsePropType.ts: one blocking finding (optional-row picker). - File
docs/specs/components/Toast/Toast.spec.md: clear. - File
packages/cli/test/core-prop-docs.known-drift.json: clear. - File
packages/core/src/AlertDialog/useImperativeAlertDialog.doc.mjs: clear. - File
packages/core/src/Dialog/useImperativeDialog.doc.mjs: clear. - File
packages/core/src/Selector/Selector.doc.mjs: clear. - File
packages/core/src/Toast/Toast.doc.mjs: clear. - File
packages/core/src/Toast/useToast.doc.mjs: clear. - File
packages/core/src/theme/SyntaxTheme.doc.mjs: clear.
…turn to it The syntax-theme picker now also serves CodeBlock's and Lab DiffViewer's optional syntaxTheme rows. For an optional prop it offers None first, shows None while the prop is unset, and None sends nothing, so the preview keeps the theme-level syntax colors. A required prop keeps the presets only.
|
/approve-spec 5052b6d |
There was a problem hiding this comment.
Changes requested: the doc and docsite changes check out, but one bullet of the description went stale with the last commit.
- The description says Toast's
isAutoHideandautoHideDurationtext gives whatuseToast()'s show function sets and that the "error toasts persist until dismissed" sentence moves toisAutoHide, but at this headToast.doc.mjs:52and:59(and the Chinese and dense text at:207,:209,:322and:324) name no value and noisAutoHidetext mentions error toasts persisting, so reword that bullet to match.
Editing the description clears this; the Toast doc itself matches its record and the other claims hold. CI has not run on this head because the pull request is a draft.
Claims and files checked
Review mode: incremental; reason: none
- changed rules (0): none
- Changeset, four docs name exported types (Selector
options, SyntaxThemetheme, both imperative dialog hooks'show): verified,Selector.doc.mjs:185,SyntaxTheme.doc.mjs:62,useImperativeAlertDialog.doc.mjs:14,useImperativeDialog.doc.mjs:14. - Changeset, Toast's
isAutoHideandautoHideDurationare required: verified,Toast.doc.mjs:53,:60, matchingToast.tsx:164-165. - Changeset, the show-only options leave Toast's table because
useToast's doc lists them with defaults: verified, absent fromToast.doc.mjs, listed atuseToast.doc.mjs:27-33. - Changeset and description,
typekeeps its'info'default: verified,Toast.doc.mjs:46. - Description, four docs named types the package does not export and Toast's timing props read optional: verified on the base.
- Description, Selector
optionsisSelectorOptionType[]: verified,Selector.doc.mjs:185. - Description, the playground picker matches
SyntaxThemeDefinitionand CodeBlock's and DiffViewer's rows get it: verified,parsePropType.ts:186,CodeBlock.doc.mjs:146,DiffViewer.doc.mjs:208. - Description, an optional row starts at None and None sends nothing: verified,
syntaxThemeChoices.ts:30-37,:67-69. - Description, Show code prints a picked preset by its exported name: verified,
InteractivePreview.tsx:126-129. - Description, the two docsite tests cover the picker and fail without the change, and none reaches Show code's printed name: verified, 16 tests pass at this head.
- Description, the two dialog hooks'
showsignatures: verified,useImperativeAlertDialog.doc.mjs:14,useImperativeDialog.doc.mjs:14. - Description, Toast's timing rows say in every locale what the show function sets: false,
Toast.doc.mjs:52,:59,:207,:209,:322,:324name no value. - Description, the error-toast sentence moves from
typetoisAutoHide: false, it is gone from:45and absent from:52,:207and:322. - Description, the
uniqueIDbest practice namesuseToast(): verified,Toast.doc.mjs:149,:231,:295. - Description, the record names both consumer docs: verified,
Toast.spec.md:73-74. - Description, five Toast drift entries are gone and
typestays: verified,core-prop-docs.known-drift.json:44. - Description, native maps the renamed type and its output is unchanged: verified,
packages/native/src/components/Selector.ts:16. - Description, no type is exported or changed: verified, no public API change.
- Description, the playground sets only
body,isAutoHideandautoHideDurationand the theme editor's output stays the same: verified,Toast.doc.mjs:24-28, and the theme editor's toast suites pass at this head. - Description, Testing: the drift test, the authoring-type test, the docsite tests, the knowledge and changeset checks and the formatting note hold at this head; the native contract tests and the type resolver note are unchanged since the last check.
- Description, scope note on
useCombobox,useMultiComboboxandMarkdownPluginEntry: verified. - Description, overlap note: verified; the pull requests that share a file merge cleanly in it, and the others already conflict with
main. - Files:
.changeset/docs-name-exported-types.mdclear;apps/docsite/src/__tests__/component-prop-controls.test.tsclear;apps/docsite/src/__tests__/syntax-theme-control.test.tsclear;apps/docsite/src/components/component-detail/InteractivePreview.tsxclear;apps/docsite/src/components/component-detail/PlaygroundPropsTable.tsxclear;apps/docsite/src/components/component-detail/parsePropType.tsclear;apps/docsite/src/components/component-detail/syntaxThemeChoices.tsclear;docs/specs/components/Toast/Toast.spec.mdclear;packages/cli/test/core-prop-docs.known-drift.jsonclear;packages/core/src/AlertDialog/useImperativeAlertDialog.doc.mjsclear;packages/core/src/Dialog/useImperativeDialog.doc.mjsclear;packages/core/src/Selector/Selector.doc.mjsclear;packages/core/src/Toast/Toast.doc.mjsclear, the description bullet about it is the finding;packages/core/src/theme/SyntaxTheme.doc.mjsclear;packages/native/src/components/Selector.tsclear.
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet because the pull request is a draft, and it runs once the pull request is marked ready for review.
The description now matches the Toast doc's rows, which was the only open finding, and the doc, docsite and native changes check out against their records. One detail of the overlap note went stale after this review began: #11966 has since merged main and now merges cleanly, so it can leave the "already conflict" clause at the next description edit.
Claims and files checked
Review mode: same-head; reason: none
- changed rules (0): none
- Changeset, four docs name prop types the package exports (Selector
options, SyntaxThemetheme, both imperative dialog hooks'show): verified,Selector.doc.mjs:185,SyntaxTheme.doc.mjs:62,useImperativeAlertDialog.doc.mjs:14,useImperativeDialog.doc.mjs:14. - Changeset, Toast's
isAutoHideandautoHideDurationare required, asToastPropsdeclares: verified,Toast.doc.mjs:53,:60, matchingToast.tsx:164-165. - Changeset, the show-only options leave Toast's table because
useToast's doc lists them: verified, absent fromToast.doc.mjs, listed atuseToast.doc.mjs:31-33. - Changeset and description,
typekeeps its'info'default: verified,Toast.doc.mjs:46. - Description, on the base four docs named types the package does not export and Toast's timing rows read optional with defaults, so a
<Toast>built from them fails to type-check: verified, base docs andToast.tsx:164-165. - Description, Selector
optionsisSelectorOptionType[]andSelectorOptionis a component: verified,Selector.doc.mjs:185,Selector/index.ts:17,:19. - Description, the playground picks the preset control by type name, now
SyntaxThemeDefinition, and CodeBlock's and DiffViewer's rows get it: verified,parsePropType.ts:186,CodeBlock.doc.mjs:146,DiffViewer.doc.mjs:208. - Description, an optional row starts at None and None sends nothing: verified,
syntaxThemeChoices.ts:30-37,:55,:67-69. - Description, Show code prints a picked preset by its export name through the theme-name helper: verified,
InteractivePreview.tsx:101-113,:126-129. - Description, the two docsite tests cover the picker, its None choice and the preset a value is, and fail without the change; no test reaches Show code's printed name: verified, 16 tests pass on the head, the new case and suite fail on the base, and the preview tests mock the preset list as empty.
- Description, the two dialog hooks'
showshapes are the ones the hooks declare, written with exported types: verified,useImperativeAlertDialog.ts:20,useImperativeDialog.ts:26-29. - Description, each of
type,isAutoHideandautoHideDurationsays in every locale that the show function sets it and names no value, anduseToast's doc gives the defaults: verified,Toast.doc.mjs:45,:52,:59,:205,:207,:209,:321,:322,:324;useToast.doc.mjs:27-29,:81. - Description, the
uniqueIDbest practice namesuseToast(): verified,Toast.doc.mjs:149,:231,:295. - Description, the record names both consumer docs: verified,
Toast.spec.md:73-74. - Description, five of the six Toast drift entries are gone and
typestays: verified,core-prop-docs.known-drift.json:44. - Description, native maps the renamed type and its contract and output are unchanged: verified,
packages/native/src/components/Selector.ts:16; native contract tests pass. - Description, no type is exported or changed: verified, no public API row.
- Description,
typekeeps its default because the theme editor reads playground and documented defaults, and the playground sets onlybody,isAutoHideandautoHideDuration: verified,Toast.doc.mjs:24-28; the theme editor's toast tests pass on the head. - Description, Testing: the drift, authoring-type, docsite, native contract and theme-editor tests and the knowledge and changeset checks pass, and the one Prettier warning is a line this change does not touch: verified by re-running each; the full preflight run is the author's own.
- Description, scope note on
useCombobox,useMultiComboboxandMarkdownPluginEntry: verified,useCombobox.doc.mjs:27,useMultiCombobox.doc.mjs:27,Markdown/plugins/index.ts:59. - Description, the exported-type resolver from the CLI change finds the named types at Core's root: verified, it prints them in
import typelines from@astryxdesign/core;ToastPropsis a root export. - Description, overlap note: verified for every listed pull request except #11966, which merged
mainafter this review began and now merges cleanly withmainand with this change. - Files:
.changeset/docs-name-exported-types.mdclear;apps/docsite/src/__tests__/component-prop-controls.test.tsclear;apps/docsite/src/__tests__/syntax-theme-control.test.tsclear;apps/docsite/src/components/component-detail/InteractivePreview.tsxclear;apps/docsite/src/components/component-detail/PlaygroundPropsTable.tsxclear;apps/docsite/src/components/component-detail/parsePropType.tsclear;apps/docsite/src/components/component-detail/syntaxThemeChoices.tsclear;docs/specs/components/Toast/Toast.spec.mdclear;packages/cli/test/core-prop-docs.known-drift.jsonclear;packages/core/src/AlertDialog/useImperativeAlertDialog.doc.mjsclear;packages/core/src/Dialog/useImperativeDialog.doc.mjsclear;packages/core/src/Selector/Selector.doc.mjsclear;packages/core/src/Toast/Toast.doc.mjsclear;packages/core/src/theme/SyntaxTheme.doc.mjsclear;packages/native/src/components/Selector.tsclear.
There was a problem hiding this comment.
Changes requested for one description detail.
- The reworded overlap note says #6819 merges cleanly with
main, but #6819 conflicts withmainin nine files (only its sharedSelector.doc.mjsmerges cleanly), so scope #6819's entry to that file or note its conflicts withmain.
The #11966 entry is fixed, and the docs, docsite, record and native changes check out against their specs. The spec approval for this head stands, since editing the description does not change the head, and CI passed on this head.
Claims and files checked
Review mode: same-head; reason: none
- changed rules (0): none
- Changeset, four docs name prop types the package exports (Selector
options, SyntaxThemetheme, both imperative dialog hooks'show): verified,Selector.doc.mjs:185,SyntaxTheme.doc.mjs:62,useImperativeAlertDialog.doc.mjs:14,useImperativeDialog.doc.mjs:14. - Changeset, Toast's
isAutoHideandautoHideDurationare required, asToastPropsdeclares: verified,Toast.doc.mjs:53,:60, matchingToast.tsx:164-165. - Changeset, the show-only options leave Toast's table because
useToast's doc lists them with their defaults: verified, absent fromToast.doc.mjs, listed atuseToast.doc.mjs:31-33. - Changeset and description,
typekeeps its'info'default: verified,Toast.doc.mjs:46. - Description, on the base four docs named types the package does not export and Toast's timing rows read optional with defaults, so a
<Toast>built from them fails to type-check: verified, base docs andToast.tsx:164-165. - Description, Selector
optionsisSelectorOptionType[]andSelectorOptionis a component: verified,Selector.doc.mjs:185,Selector/index.ts. - Description, the playground picks the preset control by type name, now
SyntaxThemeDefinition, and CodeBlock's and DiffViewer's rows get it: verified,parsePropType.ts:186,CodeBlock.doc.mjs:146,DiffViewer.doc.mjs:208. - Description, an optional row starts at None and None sends nothing: verified,
syntaxThemeChoices.ts:30-37,:55,:67-69. - Description, Show code prints a picked preset by its export name through the theme-name helper: verified,
InteractivePreview.tsx:126-129. - Description, the two docsite tests cover the picker, its None choice and the preset a value is, and fail without the change; no test reaches Show code's printed name: verified, 16 tests pass on the head, the new case and suite fail on the base, and the preview tests mock the preset list as empty.
- Description, the two dialog hooks'
showshapes are the ones the hooks declare, written with exported types: verified,useImperativeAlertDialog.tsx:20,useImperativeDialog.tsx:26. - Description, each of
type,isAutoHideandautoHideDurationsays in every locale that the show function sets it and names no value, anduseToast's doc gives the defaults: verified,Toast.doc.mjs:45,:52,:59,:205,:207,:209,:321,:322,:324;useToast.doc.mjs:27-29. - Description, the
uniqueIDbest practice namesuseToast(): verified,Toast.doc.mjs:149,:231,:295. - Description, the record names both consumer docs: verified,
Toast.spec.md:73-74. - Description, five of the six Toast drift entries are gone and
typestays: verified,core-prop-docs.known-drift.json:44. - Description, native maps the renamed type and its contract and output are unchanged: verified,
packages/native/src/components/Selector.ts:16; native contract tests pass. - Description, no type is exported or changed and only docs, the docsite, one record sentence and native's mapping change: verified, no public API row.
- Description,
typekeeps its default because the theme editor reads playground and documented defaults, and the playground sets onlybody,isAutoHideandautoHideDuration: verified,Toast.doc.mjs:24-28; the theme editor's toast tests pass on the head. - Description, writing rubric: the record sentence matches the record's Public contract, which gives the defaults and show-only options to the show function and lists the card as its own export: verified,
Toast.spec.md:58,:73-74. - Description, Testing: the drift, authoring-type, docsite, native contract and theme-editor tests and the knowledge and changeset checks pass, and the one Prettier warning is a line this change does not touch: verified, each passes on this head and CI shows no failure there; the full preflight run is the author's own.
- Description, scope note on
useCombobox,useMultiComboboxandMarkdownPluginEntry: verified,useCombobox.doc.mjs:27,useMultiCombobox.doc.mjs:27,Markdown/plugins/index.ts:59. - Description, the exported-type resolver from the CLI change finds the named types at Core's root: verified,
ToastProps,SelectorOptionType,SyntaxThemeDefinition,AlertDialogPropsandDialogPropsare root exports. - Description, overlap note: false for #6819, which conflicts with
mainin nine files though its sharedSelector.doc.mjsmerges cleanly; verified for #11966, #12378, #12450, #12959, #11868, #11517, #8121, the touch-runtime stack from #11463, and the three merged pull requests. - Files:
.changeset/docs-name-exported-types.mdclear;apps/docsite/src/__tests__/component-prop-controls.test.tsclear;apps/docsite/src/__tests__/syntax-theme-control.test.tsclear;apps/docsite/src/components/component-detail/InteractivePreview.tsxclear;apps/docsite/src/components/component-detail/PlaygroundPropsTable.tsxclear;apps/docsite/src/components/component-detail/parsePropType.tsclear;apps/docsite/src/components/component-detail/syntaxThemeChoices.tsclear;docs/specs/components/Toast/Toast.spec.mdclear;packages/cli/test/core-prop-docs.known-drift.jsonclear;packages/core/src/AlertDialog/useImperativeAlertDialog.doc.mjsclear;packages/core/src/Dialog/useImperativeDialog.doc.mjsclear;packages/core/src/Selector/Selector.doc.mjsclear;packages/core/src/Toast/Toast.doc.mjsclear;packages/core/src/theme/SyntaxTheme.doc.mjsclear;packages/native/src/components/Selector.tsclear.
There was a problem hiding this comment.
Approved. CI passed on this head.
The overlap note's #6819 entry, the one open point from the last review, now matches the merge results, and the docs, docsite, record and native changes check out against their specs.
Claims and files checked
Review mode: same-head; reason: none
- changed rules (0): none
- Changeset, four docs name prop types the package exports (Selector
options, SyntaxThemetheme, both imperative dialog hooks'show): verified,Selector.doc.mjs:185,SyntaxTheme.doc.mjs:62,useImperativeAlertDialog.doc.mjs:14,useImperativeDialog.doc.mjs:14. - Changeset, Toast's
isAutoHideandautoHideDurationare required, asToastPropsdeclares: verified,Toast.doc.mjs:53,:60, matchingToast.tsx:164-165. - Changeset, the show-only options leave Toast's table because
useToast's doc lists them with their defaults: verified, absent fromToast.doc.mjs, listed atuseToast.doc.mjs:31-33. - Changeset and description,
typekeeps its'info'default: verified,Toast.doc.mjs:46. - Description, on the base four docs named types the package does not export and Toast's timing rows read optional with defaults, so a
<Toast>built from them fails to type-check: verified, base docs andToast.tsx:164-165. - Description, Selector
optionsisSelectorOptionType[]andSelectorOptionis a component: verified,Selector.doc.mjs:185,Selector/index.ts:19. - Description, the playground picks the preset control by type name, now
SyntaxThemeDefinition, and CodeBlock's and DiffViewer's rows get it: verified,parsePropType.ts:186,CodeBlock.doc.mjs:146,DiffViewer.doc.mjs:208. - Description, an optional row starts at None and None sends nothing, so an unset prop keeps the theme-level colours: verified,
syntaxThemeChoices.ts:30-37,:55,:67-69. - Description, Show code prints a picked preset by its exported name through the theme-name helper: verified,
InteractivePreview.tsx:126-129;draculaandoneDarkProare the preset exports. - Description, the two docsite tests cover the picker, its None choice and the preset a value is, and fail without the change; no test reaches Show code's printed name: verified, 16 tests pass on the head, the new case and suite fail on the base, and the preview tests mock the preset list as empty.
- Description, the two dialog hooks'
showshapes are the ones the hooks declare, written with exported types: verified,useImperativeAlertDialog.tsx:20,useImperativeDialog.tsx:26. - Description, each of
type,isAutoHideandautoHideDurationsays in every locale that the show function sets it and names no value, anduseToast's doc gives the defaults: verified,Toast.doc.mjs:45,:52,:59,:205,:207,:209,:321,:322,:324;useToast.doc.mjs:27-29. - Description, the
uniqueIDbest practice namesuseToast(): verified,Toast.doc.mjs:149,:231,:295. - Description, the record names both consumer docs: verified,
Toast.spec.md:73-74. - Description, five of the six Toast drift entries are gone and
typestays: verified,core-prop-docs.known-drift.json:44. - Description, native maps the renamed type and its contract and output are unchanged: verified,
packages/native/src/components/Selector.ts:16; native contract tests pass. - Description, no type is exported or changed, and the change is limited to docs (the docsite playground included), one record sentence and native's mapping: verified, no public API row.
- Description,
typekeeps its default because the theme editor reads playground and documented defaults, and the playground sets onlybody,isAutoHideandautoHideDuration: verified,Toast.doc.mjs:24-28; the theme editor's toast tests pass on the head. - Description, writing rubric: the record sentence matches the record's Public contract, which gives the defaults and show-only options to the show function and lists the card as its own export: verified,
Toast.spec.md:58,:73-74. - Description, Testing: the drift, authoring-type, docsite, native contract and theme-editor tests and the knowledge and changeset checks pass, and the one Prettier warning is a line this change does not touch: verified, each passes on this head and CI shows no failure there; the full preflight run is the author's own.
- Description, scope note on
useCombobox,useMultiComboboxandMarkdownPluginEntry: verified,useCombobox.doc.mjs:27,useMultiCombobox.doc.mjs:27,Markdown/plugins/index.ts:59. - Description, the exported-type resolver from the CLI change finds the named types at Core's root: verified,
ToastProps,SelectorOptionType,SyntaxThemeDefinition,AlertDialogPropsandDialogPropsare root exports. - Description, overlap note: #11966, #12378, #12450 and #12959 share a file and merge cleanly with
mainand with this change; #6819's sharedSelector.doc.mjsmerges cleanly with this change and #6819 conflicts withmainin other files; #11868, #11517, #8121 and the touch-runtime pull requests from #11463 to #11544 conflict withmainin the files they share; #12156, #11960 and #11621 have merged: verified, each by its merge result againstmainand this head and its GitHub state. - Files:
.changeset/docs-name-exported-types.mdclear;apps/docsite/src/__tests__/component-prop-controls.test.tsclear;apps/docsite/src/__tests__/syntax-theme-control.test.tsclear;apps/docsite/src/components/component-detail/InteractivePreview.tsxclear;apps/docsite/src/components/component-detail/PlaygroundPropsTable.tsxclear;apps/docsite/src/components/component-detail/parsePropType.tsclear;apps/docsite/src/components/component-detail/syntaxThemeChoices.tsclear;docs/specs/components/Toast/Toast.spec.mdclear;packages/cli/test/core-prop-docs.known-drift.jsonclear;packages/core/src/AlertDialog/useImperativeAlertDialog.doc.mjsclear;packages/core/src/Dialog/useImperativeDialog.doc.mjsclear;packages/core/src/Selector/Selector.doc.mjsclear;packages/core/src/Toast/Toast.doc.mjsclear;packages/core/src/theme/SyntaxTheme.doc.mjsclear;packages/native/src/components/Selector.tsclear.
Toast.doc.mjs and its known-drift entries return to main's, so this pull request changes no documented default. The card-doc correction (required isAutoHide and autoHideDuration; the show-only options leave the card's table) follows in a separate pull request.
|
/approve-spec 03c09e7 |
There was a problem hiding this comment.
Changes requested: the four doc type names and the docsite picker are right at this head; two text fixes remain.
- The title says Toast's doc marks the card's timing props required, but
packages/core/src/Toast/Toast.doc.mjsis unchanged here (isAutoHideandautoHideDurationstill read optional), so retitle todocs(core): prop types name only types the package exports. - The description's overlap note lists #11868 among pull requests that conflict with
mainin the files they share, but #11868 no longer shares any file with this change now that the drift-list edit has left it.
SelectorOptionType, SyntaxThemeDefinition, AlertDialogProps and DialogProps are all Core root exports, CodeBlock's optional syntaxTheme row now starts at None and Show code prints syntaxTheme={dracula} after a pick. CI has not run on this draft head yet.
Claims and files checked
Review mode: full; reason: merge-touches-pr-files
Claims
- Changeset: four docs now name exported types (Selector options, SyntaxTheme theme, both imperative dialog hooks' show options): verified,
Selector.doc.mjs:185,SyntaxTheme.doc.mjs:62, the two hook docs at:14, and Core's root exports. - Title: prop types name only types the package exports: verified for the four docs; the combobox hooks are named as out of scope.
- Title: Toast's doc marks the card's timing props required: false,
Toast.doc.mjs:43-54is unchanged from the base. - On the base, the four docs named types nobody can import: verified (
SelectorOptionandSyntaxThemeare components; the dialog option aliases are not exported). - The docsite picker keys on
SyntaxThemeDefinition, and CodeBlock's and DiffViewer's rows get it: verified,parsePropType.ts:186and a docsite capture. - An optional picker starts at None and None sends nothing: verified,
syntaxThemeChoices.ts:30-37and:67-69. - Show code prints a picked preset by its exported name: verified,
InteractivePreview.tsx:126-129and a capture showingsyntaxTheme={dracula}. - The two docsite tests cover the picker, None and the preset name, and fail without the change: verified, 16 pass here and both fail on the base.
- No test reaches Show code's printed name: verified, the preview test stubs the preset list as empty.
- Both imperative dialog
showtypes match what the hooks declare: verified againstuseImperativeAlertDialog.tsx:20anduseImperativeDialog.tsx:26-29. - Toast's card doc is unchanged here: verified. The reason given for moving it out was not checked; nothing in this head depends on it.
- The Toast record names both consumer docs: verified,
Toast.spec.md:73-74, anduseToast.doc.mjsexists. - Native maps the renamed type, with its contract and Swift output unchanged: verified,
Selector.ts:16and 32 native contract tests passing. - No type is exported or changed: verified, the built API surface shows no change.
- Writing rubric results for the record sentence: verified.
- Preflight passes: not rerun in full; the build, knowledge and changeset checks and the targeted suites pass.
- Native contract, docsite, drift and doc-type tests pass: verified (32, 16, 2 and 28 tests).
- Knowledge and changeset checks pass: verified.
- Prettier passes on the changed lines, with one older unformatted line in
Selector.doc.mjs: verified, line 376 is untouched. - The combobox hooks name unexported option types, and
MarkdownPluginEntryis exported fromMarkdown/plugins: verified. - The four named types are found at Core's root: verified through
packages/core/src/index.ts. - Overlap note: verified for every listed pull request except #11868, which shares no file with this change.
Files
.changeset/docs-name-exported-types.md: clear.apps/docsite/src/__tests__/component-prop-controls.test.ts: clear.apps/docsite/src/__tests__/syntax-theme-control.test.ts: clear.apps/docsite/src/components/component-detail/InteractivePreview.tsx: clear.apps/docsite/src/components/component-detail/PlaygroundPropsTable.tsx: clear.apps/docsite/src/components/component-detail/parsePropType.ts: clear.apps/docsite/src/components/component-detail/syntaxThemeChoices.ts: clear.docs/specs/components/Toast/Toast.spec.md: clear.packages/core/src/AlertDialog/useImperativeAlertDialog.doc.mjs: clear.packages/core/src/Dialog/useImperativeDialog.doc.mjs: clear.packages/core/src/Selector/Selector.doc.mjs: clear.packages/core/src/theme/SyntaxTheme.doc.mjs: clear.packages/native/src/components/Selector.ts: clear.
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet, and it runs once the pull request leaves draft.
SelectorOptionType, SyntaxThemeDefinition, AlertDialogProps and DialogProps are all Core root exports, the docsite's syntax-theme picker follows the rename with a None choice for optional rows, and the title and overlap note now match the change.
Claims and files checked
Review mode: same-head; reason: none
Claims
- Changeset: four docs name exported prop types (Selector options, SyntaxTheme theme, both imperative dialog hooks' show options): verified,
Selector.doc.mjs:185,SyntaxTheme.doc.mjs:62, both hook docs at:14, and Core's root exports. - Title: prop types name only types the package exports: verified for the four docs it changes; the description names the two combobox hook docs it leaves out, and the changeset says four docs.
- On the base, the four docs named a type that is not an exported type for the prop: verified (
SelectorOptionandSyntaxThemeare components; the dialog option aliases are module-private). - Selector's options are
SelectorOptionType[]andSelectorOptionis a component: verified,Selector/index.ts:17-19. - SyntaxTheme's theme is
SyntaxThemeDefinition, the playground picks its preset control by that name, and CodeBlock's and DiffViewer's rows get it too: verified,parsePropType.ts:186,CodeBlock.doc.mjs:146,DiffViewer.doc.mjs:208, and a docsite capture. - An optional picker starts at None and None sends nothing, so an unset prop keeps the theme-level colours: verified,
syntaxThemeChoices.ts:30-37and:67-69. - Show code names a picked preset by its exported identifier through the theme-name helper: verified,
InteractivePreview.tsx:126-129; all twelve preset names map to their export names, and a capture showssyntaxTheme={dracula}. - The two docsite tests cover the picker, None and the preset name, and fail without the change: verified, 16 pass at this head and both fail on the base.
- No test reaches Show code's printed name: verified, the preview test stubs the preset list as empty.
- Both imperative dialog
showtypes are the ones the hooks declare: verified againstuseImperativeAlertDialog.tsx:20anduseImperativeDialog.tsx:26-29. - Toast's card doc is unchanged here: verified, identical to the base. The stated reason for moving it out was not checked; nothing at this head depends on it.
- The Toast record names both consumer docs: verified,
Toast.spec.md:73-74, anduseToast.doc.mjsexists. - Native maps the renamed type to its own
SelectorOption, the one key the rename reaches, with its contract unchanged: verified,Selector.ts:16, no other native mapping names a renamed type, and 32 native contract tests pass. - No type is exported or changed, and only docs (the docsite included), the record sentence and native's mapping change: verified, the built API surface shows no change.
- Writing rubric results for the record sentence: verified.
- Preflight passes: not rerun in full; the build, knowledge and changeset checks and the targeted suites pass.
- Native contract, docsite, drift and doc-type tests pass: verified (32, 16, 2 and 28 tests).
- Knowledge and changeset checks pass: verified.
- Prettier passes on the changed lines, with one older unformatted line in
Selector.doc.mjs: verified, line 376 is untouched. - The combobox hooks name unexported option types, and
MarkdownPluginEntryis exported fromMarkdown/plugins: verified (Selector/hooks.ts:368,MultiSelector/hooks.ts:24,Markdown/plugins/index.ts:59). - The four named types are found at Core's root: verified through
packages/core/src/index.ts; the resolver itself was not run. - Overlap note: verified against current
main: the four Selector-doc pull requests and #11966 merge cleanly in the shared files, #11517, #8121 and #11463 to #11544 conflict withmainin the Toast record, and #11868, #12156, #11960 and #11621 share no file.
Files
.changeset/docs-name-exported-types.md: clear.apps/docsite/src/__tests__/component-prop-controls.test.ts: clear.apps/docsite/src/__tests__/syntax-theme-control.test.ts: clear.apps/docsite/src/components/component-detail/InteractivePreview.tsx: clear.apps/docsite/src/components/component-detail/PlaygroundPropsTable.tsx: clear.apps/docsite/src/components/component-detail/parsePropType.ts: clear.apps/docsite/src/components/component-detail/syntaxThemeChoices.ts: clear.docs/specs/components/Toast/Toast.spec.md: clear.packages/core/src/AlertDialog/useImperativeAlertDialog.doc.mjs: clear.packages/core/src/Dialog/useImperativeDialog.doc.mjs: clear.packages/core/src/Selector/Selector.doc.mjs: clear.packages/core/src/theme/SyntaxTheme.doc.mjs: clear.packages/native/src/components/Selector.ts: clear.
|
/approve-spec f7d8cbe |
There was a problem hiding this comment.
Approved pending CI: CI is running on this head now that the pull request is ready for review, and its required checks still need to pass before merge.
The code is unchanged since the last review: the four doc type names, the docsite syntax-theme picker and the native mapping still check out, the description still matches the code, and the overlap note still holds against current main.
Claims and files checked
Review mode: same-head; reason: none
- changed rules (0): none
Claims
- Changeset: four docs name exported prop types (Selector options, SyntaxTheme theme, both imperative dialog hooks' show options): verified,
Selector.doc.mjs:185,SyntaxTheme.doc.mjs:62, both hook docs at:14, and Core's root exports. - Title: prop types name only types the package exports: verified for the four docs it changes; the description names the two combobox hook docs it leaves out, and the changeset says four docs.
- On the base, the four docs named a type that is not an exported type for the prop: verified (
SelectorOptionandSyntaxThemeare components; the dialog option aliases are module-private). - Selector's options are
SelectorOptionType[]andSelectorOptionis a component: verified,Selector/index.ts:17-19. - SyntaxTheme's theme is
SyntaxThemeDefinition, the playground picks its preset control by that name, and CodeBlock's and DiffViewer's rows get it too: verified,parsePropType.ts:186,CodeBlock.doc.mjs:146,DiffViewer.doc.mjs:208. - An optional picker starts at None and None sends nothing, so an unset prop keeps the theme-level colours: verified,
syntaxThemeChoices.ts:30-37,:40-56and:67-69. - Show code names a picked preset by its exported identifier through the theme-name helper: verified,
InteractivePreview.tsx:126-129withtoIdentifierName(:101-113). - The two docsite tests cover the picker, None and the preset name, and fail without the change: verified, 16 pass at this head; on the base the new prop-controls case gets no preset control and the new suite cannot import its module.
- No test reaches Show code's printed name: verified, the preview test mocks the preset list as empty (
interactive-preview.test.ts:31). - Both imperative dialog
showtypes are the ones the hooks declare: verified againstuseImperativeAlertDialog.tsx:20anduseImperativeDialog.tsx:26-29. - Toast's card doc is unchanged here: verified, identical to the base.
- The Toast record names both consumer docs: verified,
Toast.spec.md:73-74, anduseToast.doc.mjsexists. - Native maps the renamed type to its own
SelectorOption, the one key the rename reaches, with its contract unchanged: verified,Selector.ts:16, no other native component sets a type-name mapping, and the native contract tests pass. - No type is exported or changed, and only docs (the docsite included), the record sentence and native's mapping change: verified, the built API surface shows no change.
- Writing rubric results for the record sentence: verified.
- Preflight passes, apart from theme-editor picture cases on a node without Chromium: not rerun in full; the API build, knowledge and changeset checks and the targeted suites pass at this head, and CI is now running.
- Native contract, docsite (16 of 16), drift (Toast entries as on
main) and doc-type tests pass: verified. - Knowledge and changeset checks pass: verified.
- Prettier passes on the changed lines, with one older unformatted line in
Selector.doc.mjs: verified, line 376 is untouched. - The combobox hooks name unexported option types, and
MarkdownPluginEntryis exported fromMarkdown/plugins: verified (Selector/hooks.ts:368,MultiSelector/hooks.ts:24,Markdown/plugins/index.ts:59). - The four named types are found at Core's root: verified through
packages/core/src/index.ts; the resolver itself was not run. - Overlap note: verified against current
mainand this head: the four Selector-doc pull requests and #11966 merge cleanly in the shared files (#12959 rechecked at its new head; #12378 and #12450 now conflict withmainonly in a release-note file), #11517, #8121 and #11463 to #11544 conflict withmainin the Toast record, and #11868, #12156, #11960 and #11621 share no file.
Files
.changeset/docs-name-exported-types.md: clear.apps/docsite/src/__tests__/component-prop-controls.test.ts: clear.apps/docsite/src/__tests__/syntax-theme-control.test.ts: clear.apps/docsite/src/components/component-detail/InteractivePreview.tsx: clear.apps/docsite/src/components/component-detail/PlaygroundPropsTable.tsx: clear.apps/docsite/src/components/component-detail/parsePropType.ts: clear.apps/docsite/src/components/component-detail/syntaxThemeChoices.ts: clear.docs/specs/components/Toast/Toast.spec.md: clear.packages/core/src/AlertDialog/useImperativeAlertDialog.doc.mjs: clear.packages/core/src/Dialog/useImperativeDialog.doc.mjs: clear.packages/core/src/Selector/Selector.doc.mjs: clear.packages/core/src/theme/SyntaxTheme.doc.mjs: clear.packages/native/src/components/Selector.ts: clear.
Summary
Four component and hook docs name a prop type the package does not export, so an agent that reads
astryx component <Name> --propsand tries to import that type, or looks it up, finds nothing. This PR makes those docs name types@astryxdesign/coreexports.What changes for you
optionsisSelectorOptionType[].SelectorOptionis a component, not the item type.themeis aSyntaxThemeDefinition. The docsite playground picks its theme preset control by the type name, so it now matchesSyntaxThemeDefinition, and CodeBlock's and Lab DiffViewer'ssyntaxThemerows, typed the same way, get the picker too. For an optional prop the picker starts at None and None sends nothing, so an unset prop keeps the theme-level syntax colors. Show code names a picked preset by its exported identifier, such assyntaxTheme={dracula}, not the whole preset object.component-prop-controls.test.tsandsyntax-theme-control.test.tscover the picker, its None choice and the preset a value is; they fail without the change. No test reaches Show code's printed name. Show code prints a picked preset by its exported name (dracula,oneDarkPro) through the same identifier helper it uses for theme names.useImperativeAlertDialog:showis(options: Omit<AlertDialogProps, 'isOpen' | 'onOpenChange'>) => void.useImperativeDialog:showis(content: ReactNode, options?: Omit<DialogProps, 'isOpen' | 'onOpenChange' | 'children'>) => void. Both dialog shapes are the ones the hooks declare, written with exported types.isAutoHideandautoHideDurationare required, asToastPropsdeclares, and the show-only options leave the card's table) removes documented defaults, which the merge guard holds for an owner decision, so it follows in its own pull request.docs/specs/components/Toast/Toast.spec.mdsays consumer usage lives inToast.doc.mjs(the card) anduseToast.doc.mjs(the show function).packages/native/src/components/Selector.tsmaps the renamed doc typeSelectorOptionTypeto the nativeSelectorOption, the one key the rename reaches. The native contract and Swift output are unchanged.No type is exported or changed; only docs, one record sentence and native's doc-name mapping change.
Writing rubric results
#+ digits,/pull/,/issues/).Toast(the card) and theuseToast()show function as separate exports.Testing
Preflight: full
node scripts/preflight.mjs --base origin/main(with the docsite) on a Linux node at this head: review:pre, build, typecheck, lint, vitest ui, knowledge and changesets pass. In vitest node, the only failures were 5 theme-editor picture cases (theme-cut-short,theme-pictures-broken-words) because that node had no Chromium system libraries or fonts; on a node where Chromium launches they pass onmain, and this change touches neither.packages/native/src/contracttests pass: the committed Swift binding stays in sync and Selector's portable props keepoptions.The docsite
component-prop-controlsandsyntax-theme-controltests pass (16/16).packages/cli/test/core-prop-docs.test.mjspasses, with the Toast entries of the known-drift list as onmain.packages/cli/foundation/discovery/doc-types.test.mjspasses. Each changed doc still satisfies its authoring type.pnpm check:knowledgeandpnpm check:changesetspass.prettier --checkpasses on the lines this PR changes (Selector.doc.mjshas one unformatted line frommain, outside this change).Not in this PR:
useComboboxanduseMultiComboboxdocumentUseComboboxOptionsandUseMultiComboboxOptions, which no entry point exports. They are tracked with the same defect.MarkdownPluginEntry, which Markdown's doc names, is exported from@astryxdesign/core/Markdown/plugins, so that doc stays.component --propschange (feat(cli): component --props shows the types its props name #12326) findsSelectorOptionType,SyntaxThemeDefinition,AlertDialogPropsandDialogPropsat Core's root.Overlap checked: #6819, #11517, #11966, #8121, #11463, #11466, #11476, #11478, #11508, #11518, #11525, #11530, #11536, #11540, #11544, #12378, #12450, #12959 (#6819, #12378, #12450 and #12959 share
Selector.doc.mjs, and #11966 sharesToast.spec.md; all five merge cleanly withmainand with this change in those files. #11517, #8121 and the touch-runtime pull requests #11463 to #11544 shareToast.spec.mdand already conflict withmainthere. #11868, #12156, #11960 and #11621 no longer share a file with this change.)Owner: fix-loop lane 4. Land path: Specs consistency stamp, CodeBunny, CI, then the drain merges.