You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a1a6151
Browse filesBrowse the repository at this point in the historyBrowse files
docs(public-component-api): interaction utilities have matching non-React equivalents; shipped APIs are grandfathered (#9973)
* docs(public-component-api): public interaction hooks take one config object; the element ref is a named field
* docs(public-component-api): INV22 asks only that a hook and its twin match; one-config and grandfather rules stand alone
* docs(public-component-api): the slot-hook example and an owner-added twin
* docs(public-component-api): INV22 is only non-React equivalents that match their hooks
* docs(public-component-api): INV22 keeps main's exempt hooks in the no-equivalent case
* docs(public-component-api): a neutral slot-hook illustration; shipped ref names in INV2
`useTableRowExpansion`, `useTableColumnResize`) has none by default; the owner
248
+
may add one (owner decision, 2026-11-04).
243
249
-**INV23 — Each private data attribute has one owner module.** A
244
250
`data-astryx-*` attribute is private unless this invariant names it public.
245
251
Each private attribute has one internal owner module in the package that
@@ -405,8 +411,9 @@ Rejected: component-local names for shared concepts.
405
411
| INV18 | Public-API review against the component's anatomy table | A prop that selects or configures a subcomponent's prop or label, a composition that renders a slot the anatomy does not describe, or a rendered content slot that is not a part named in the anatomy |
406
412
| INV19 | Public-API review with a bundle and runtime cost note for a costly feature | A feature with a large resource cost that every caller pays with no plug-in path or named feature prop |
407
413
| INV20 | Public-API review of new boolean props | A boolean whose only effect is a visual swap where a variant fits |
408
-
| INV21 | Public-API review against existing props, components, hooks, and factories | A new API that shares a job with an existing one that is not being deprecated in its favor |
409
-
| INV22 | Public-API review of each public gesture, press, drag, or motion hook against its `create…` factory | A public interaction hook with no public factory taking the same options and returning `destroy()`, outside the listed exemptions |
414
+
| INV21 | Public-API review against existing props, components, hooks, and factories | A new API that shares a job with an existing one that is not being deprecated in its favor; a hook fed to one component slot prop counted as a second API |
415
+
| INV21a | Public-API review of each breaking or deprecating change to a shipped API | A breaking or deprecating change to a shipped public API justified only by conformance to a system rule |
416
+
| INV22 | Public-API review of each public interaction utility hook against its `create…` equivalent | An interaction utility hook with no `create…` equivalent, outside hooks whose result only an Astryx component or StyleX can use, or an equivalent whose option names and meanings, events, or return concepts differ from its hook |
410
417
| INV23 |`@astryx/no-raw-private-attribute` lint with its baseline (test files exempt), plus public-API review of the public list | A `data-astryx-*` name or selector written outside its owner module, a test, or the public list; a `dataAttr()` call that names a private attribute; an owner module that exports its raw name or a selector; a package that imports another package's owner module; a caller that sets a property an owner style it spreads also sets; a private attribute in a public export, `.doc.mjs`, or Changeset; a baseline entry added; a public data attribute changed without INV9 evidence |
411
418
| INV24 | API report generator tests over representative entry points, plus the pull-request report's API changes | A promised export, prop, hook, type, custom property, theme target, or public attribute is missing from a report; a reachable internal-tagged member is missing; an `./internal/*` or Lab member appears; a stale committed report is not flagged, or its rows are listed as the pull request's API changes; the check fails a pull request |
412
419
| INV25 | Public-API review routing against the pull request's API changes | A row that no current record decides does not reach human review; a row a current record decides is held for a human; an undeclared row alone draws a request for changes |
@@ -435,14 +442,13 @@ Known verification gaps:
435
442
another keeps its name until a minor renames it under INV9. Outline's
436
443
`offset` is the distance below the top of its scroll root
437
444
(`component:Outline` FR4), not a gap from an anchor.
438
-
- INV22: known gaps include `useLongPress`, `useMenuPress`,
0 commit comments