Skip to content

v2.6.1

Choose a tag to compare

@58bits 58bits released this 30 May 08:37
· 134 commits to main since this release

Highlights

  • @byline/richtext-lexical — the inline-image editor modal now auto-fills the Alt text field when you pick a media item. It prefers the media record's own altText, and when that's blank or absent it falls back to a human-readable label (titlenamesubjectlabel), deliberately never a filename. Editorial intent always wins — anything you've already typed is never overwritten. The picker preview was also enlarged and the media title now stacks above the Change image button for a cleaner layout.

  • @byline/adminRelationPicker gained an optional extraSelectFields prop. Picker rows normally load only their display columns, so a consumer that needs a non-displayed field (the inline-image modal needing altText) had no way to get it. extraSelectFields requests additional fields into each row's record.fields without rendering them as columns. Pass a stable (module-level) array — it feeds the picker's fetch effect.

  • @byline/ui — the Shimmer skeleton gained a dedicated lineHeight prop to size each line in the multi-line text variant independently of the container height, plus a new theme-aware --surface-shimmer design token that tunes the skeleton's contrast correctly in both light and dark mode.

Bug Fixes

  • @byline/ui — fixed the Shimmer multi-line text variant, which was spreading the container height onto every line — rendering 18 oversized blocks instead of thin text lines. height now sizes the container and lineHeight sizes the lines, with overflow: hidden so a fixed-height skeleton crops cleanly.

  • @byline/richtext-lexical — corrected the inline-image modal's picker layout, which carried leftover Tailwind utilities (including the non-existent w-18/h-18 classes) that left the preview thumbnail unconstrained and rendering at full resolution. The row now uses a wired-up stylesheet with a constrained, theme-aware preview.

All other @byline/* packages bumped to 2.6.1 in lockstep with no behavioural changes this cycle.