Repository navigation
1.19.1
Breaking changes
-
neba/a2uineeds@a2ui/reactand@a2ui/web_core0.12. The optional peers were^0.11.0and are^0.12.0, because 0.12 changed theCatalogthe adapter builds, so upgrade both together with this release. Two changes in 0.12 reach the code around the adapter.MessageProcessorno longer takes its component type from the catalog, so its surfaces type-check asA2uiSurface's only when it is writtennew MessageProcessor<ReactComponentImplementation>([createNebaCatalog()]). And it refuses a surface whose messages name another version than the catalog, or none: every message has to carry the catalog's version,"version": "v0.9"unless theprotocolVersionbelow asks for"v1.0", where 0.11 read any. Everything else the catalog allows keeps working, although 0.12 declares two arguments narrower than it does: anumericcheck still reads a field's text,openUrl'surlmay still be bound to the data model, andformatDatestill writes a date that has no time in Safari, where 0.12 alone writes an empty string. -
The A2UI catalog's
formatNumber,formatCurrency,formatDateandpluralizewriteen-USwhencreateNebaCatalogis given nolocale, rather than the runtime's language, so a server and every browser write the same text.formatDatealso writes the names of months and weekdays in the catalog'slocale, where it used to write them in English whatever the language. Both come from@a2ui/web_core0.12, and the catalog now tells the model so. Pass thelocaleyourNebaProviderhas to keep all four in the components' language. -
A disabled
Accordionsection's header and a disabledCollapsible's header are out of the tab order.@base-ui/react1.9.0 gives the trigger the nativedisabledattribute, where 1.8.0 kept it focusable and marked itaria-disabled, so a keyboard reader no longer stops on a header that cannot open. A test that focused a disabled header should expect the focus to pass it by.
Added
-
createNebaCatalogtakesprotocolVersion,'v0.9'by default or'v1.0', so an agent that writes v1.0 messages can be drawn without rewriting theirversion. Both draw with the same eighteen components and fourteen functions. A v1.0 component'saccessibility.live,accessibility.hiddenandmetadataare accepted and not read, and a check runs as it does under v0.9. One catalog draws one version, so a host whose agents write both keeps aMessageProcessorfor each. -
An A2UI action's
userMessagereaches the host, resolved, beside itsnameandcontext. v1.0 gave an action's event the line a host shows as what the reader asked for, and the v0.9 renderer dropped it; under@a2ui/web_core0.12 it refused the whole button instead. The adapter accepts it, and auserMessagewritten as a path or aformatStringcall arrives as text.
Changed
@base-ui/reactis on 1.9.0, which is the floordependenciesdeclares. It is the only runtime dependency that moved. AChip, aLineChart, anImage, aGalleryand anInlineCitationare each 0.2 kB smaller and aDataTable0.2 kB larger, while a twelve-component app is 0.4 kB larger, a twenty-five-component one 1.5 kB and every export 3.0 kB. Neba's own code weighs what it did.
Fixed
- A
CarouselwithautoPlaybelow the fold no longer turns once before it learns it is out of view. Its timer started straight away and the observer that pauses it answers a frame later, so a shortintervalcould turn the strip once while nobody could see it. The timer now waits for that first answer.
Every release is in the changelog on the docs site and in CHANGELOG.md at this tag.