v0.1.6
All @astryxdesign/* packages ship together at 0.1.6.
@astryxdesign/core
New Features
- Add
useTableGroupedRows— groups a flat data array into collapsible section rows. Each distinctgroupByvalue becomes a full-width section-header row with a chevron toggle, group label, and member count; collapsing hides that group's rows while keeping the header. MirrorsuseTableRowExpansionState: the consumer owns thecollapsedGroupsset and the hook returns{data, plugin, idKey}(pass toTabledata / plugins / idKey). SupportsrenderGroupHeaderandgroupOrder. (#3763) - Add
useTableRowIndex— a plugin that prepends a right-aligned, monospaced row-number column. Numbering follows the rendereddataorder, so it reflects the current sort / filter / pagination view (pass the sorted/paged array). ProvidesgetRowKeyfor stable keyed lookup, pluslabelandstartFromto customize the header and starting ordinal. (#3756)
Fixes
- Rebrand the core package
displayNamefrom "XDS Core" to "Astryx Core"
The core package'sdisplayNamestill read "XDS Core". It surfaces in the docsite package sidebar and landing cards as the friendly package label, so this rebrands it to "Astryx Core" to match the Astryx migration. Metadata-only — the packagenameand public API are unchanged. - Compile dist with the production JSX transform — 0.1.5 shipped
jsxDEV, which crashes every consumer that renders in production
@babel/preset-react8 derives itsdevelopmentoption from the Babel env name (api.env(env => env === 'development')), and Babel falls back to"development"wheneverNODE_ENV/BABEL_ENVis unset. The bump from 7.29.7 to 8.0.1 therefore flipped the published build to the development JSX transform without any config change: 193 of 479 files in@astryxdesign/core@0.1.5'sdistimportreact/jsx-dev-runtimeand calljsxDEV, which React's production build does not export.
Contributors
Thanks to everyone who contributed to this release:
Full Changelog: v0.1.5...v0.1.6