Skip to content

Releases

v1.40.0 — AppToolbar, PaymentCard and popups on top

Choose a tag to compare

@robritacca-dotcom robritacca-dotcom released this 27 Nov 16:35

Two new components, AppToolbar and PaymentCard, and a top bar for every app page. Anchored popups now paint in the browser's top layer, AppSidebar keeps the current page selected while its side panel is open, and Blueprint and Velvet set their action colour per mode. Nothing is removed and no prop has moved, but a few things draw differently, so read Before you upgrade if you style them.

Before you upgrade

  • Anchored popups paint in the top layer. Every panel placed by an anchor (menus, popovers, comboboxes, date pickers and the rest) now opens in the browser's top layer, as Tooltip already did, so a parent's mask, overflow or stacking context can no longer cut it off. A z-index you set on a panel to lift it is no longer needed.
  • AppSidebar keeps the current page selected. While the side panel is open, the current page keeps its selection fill and the row that opened the panel takes the quieter hover fill (ds-app-sidebar__btn--open). Before, the opening row took the selection and the current page lost it.
  • Stat's deltaPlacement="auto" wraps. The body is now a wrapping row: the delta sits beside the value while both fit and drops onto its own line under it when they do not, so a long figure never pushes it out of the tile. Below 180px it still stacks under the label. CSS written against its grid areas no longer applies.
  • Blueprint and Velvet change colour. Blueprint's action colour is a royal blue in light mode and keeps its electric blue in dark mode, with slightly tighter corners. Velvet is a richer purple in light mode and a brighter one in dark mode, where its button label is white. Both lighten their logo in dark mode.
  • NotificationCenter's mark-all default reads "Mark all as read", and its unread count is a Badge. Pass markAllLabel to keep your own wording.
  • CommandPaletteTrigger's field never shrinks under 280px, so its prompt and keycaps always show in full, and its icon-only form takes IconButton's glyph size.

New

  • AppToolbar, the bar along the top of an app's page, always in one order: the search, space, borderless icon controls, the AI button and the primary action. It comes in a default and a compact size and folds in steps by its own width; an icon control can open a panel or be a link. searchGlass frosts the search for a bar over a map or a shader.
  • PaymentCard, the face of a payment card at a card's aspect ratio: the brand and a tier along the top, the last four digits, the holder, the expiry and the network's mark, with default and neutral tones, a frozen state and a compact size. It renders from a Server Component.
  • AppLayout takes a toolbar slot that pins a bar over the page in every layout.
  • CommandPaletteTrigger takes glass, Button's frost, in both its forms.
  • NotificationCenter takes rows that open (onSelect, href) and dismiss (onDismiss), Tabs for its filters, an options menu (Mark all as read, your own items, Clear all) and a See all footer.
  • RadioGroup options may carry a description.
  • The app blocks (npx rift-ds init block) are rebuilt on AppLayout, AppToolbar and PageHeader, with an Appearance section in the sidebar, a new notifications block, and a settings block of standard pages per section. Blocks are your code once written, so existing ones do not change.

Fixed

  • AppSidebar's footer action keeps its own icon colour, so a primary Button there no longer draws its arrow in the rail's text colour.
  • NotificationItem titles and text wrap in full on a phone instead of being cut.
  • The blocks' shell links its notifications and settings pages relatively.
npm install rift-ds@1.40.0

v1.39.0: One rail everywhere

Choose a tag to compare

@robritacca-dotcom robritacca-dotcom released this 26 Nov 17:38

One rail everywhere: the chat's history is now an AppSidebar, with the same shell, sizes, side panel and phone drawer as an app's rail. ThreadHistory is new, PromptSuggestions gains a numbered list, and Composer can go glass. Nothing is removed and no prop has moved, but the built-in chat rail is drawn by different components, so read Before you upgrade if you style it.

Before you upgrade

  • The built-in chat rail is AppSidebar. With threads on, ChatWidget's rail is an AppSidebar around a ThreadHistory, so CSS written against ds-thread-panel__* inside the widget no longer matches: target ds-app-sidebar__* and ds-thread-history__* instead. A custom threads render prop keeps the old rail and sheet unchanged.
  • A narrow chat opens its history as a drawer. Below the rail threshold the header's menu button opens AppSidebar's drawer over the widget, focus trapped, with the history as its first level, in place of the glass sheet. Escape closes the drawer and leaves a docked ChatLauncher open.
  • Five themes colour the sent bubble. Zest, Getaway, Blueprint, Velvet and Bubblegum fill the sent message bubble from their action colour; the rest keep their neutral bubble. Forest's corners are tighter, closer to Smoke's.

New

  • ThreadHistory, the rows of a chat history as a component of their own: labelled groups, a status dot, a description line, the pin, a time, a row menu revealed on hover or focus (always shown on touch) and inline rename. It renders from a Server Component and is fully controlled.
  • AppSidebar sections can hold anything. A section takes content (a node, or a function of the rail's state) drawn under its rows and folding with the rail, an action button in its heading, and an id. Items take keys for a shortcut hint, and the sidebar takes keyLabels.
  • AppSidebar folding sections. collapsibleSections, with collapsedSections, defaultCollapsedSections and onCollapsedSectionsChange, lets a reader fold each titled section under a chevron. Off by default.
  • AppSidebar sized by its host. responsive picks the form: viewport (the default), container (measured from its parent), or rail and drawer when the host decides. drawerOpen, defaultDrawerOpen and onDrawerOpenChange own the drawer, collapsible turns the collapse off, and foldForPanel folds the rail to icons when the side panel would leave too little room.
  • AppSidebar's profile takes an avatar node; the email line and the more button appear only when given.
  • AppLayout takes sidebarProps, passed through to its AppSidebar.
  • ChatThreads (the built-in rail's props, through threadsProps) takes sections after the history (such as an Appearance section that opens in the side panel), drawerTopEntries, drawerBottomEntries, footerAction, railLabel, railLabels, and the folded-sections trio.
  • ThreadPanel takes footerAction, and a group takes an id.
  • DrillMenu sections take content, drawn after their rows.
  • PromptSuggestions gains a numbered list layout (rows with a label and description, the digits 1 to 9 picking one outside a text field) and a title line over the set.
  • Composer takes glass, a glass fill over a blur for a busy ground; ChatWidget passes it as composerGlass.

Fixed

  • AppSidebar's top slot never shrinks, so an EntitySwitcher in a crowded collapsed rail is no longer clipped.
  • Sidebar and side-panel scrollbars stay hidden until the rail scrolls.
  • ShaderScene's sky scene has no land: its horizon sits under the frame.
npm install rift-ds@1.39.0

v1.38.0: a phone menu built for thumbs

Choose a tag to compare

@robritacca-dotcom robritacca-dotcom released this 26 Nov 00:44

A phone menu built for thumbs, clearer names for three navigation components, and defaults that match how the site runs its own. One component is removed and three defaults moved, so read Before you upgrade first.

Before you upgrade

  • Nav is removed. It was deprecated in favour of SiteHeader, which does everything it did and adds section menus, a sticky blur and a drawer for narrow screens. Replace <Nav> with <SiteHeader>; its old docs, markdown, schema and registry URLs redirect to Site header's.

  • AppSidebar and AppLayout have new defaults. subNav now defaults to panel (an 80px rail naming each destination under its icon, with sub-items in a side panel), and layout to inset (the content in a raised surface beside the rail). For the old look, pass subNav="accordion" and layout="flush".

  • SiteHeader's tint arrives sooner. tintAfter now defaults to 0, so the tint behind the stuck bar fades in with the first pixel of scroll, and faster. Pass tintAfter={48} for the old timing.

  • Two components have clearer names. The old names still import, as deprecated aliases with the same props, so nothing breaks today; move to the new names when you can:

    • NavList is now SideNav
    • SidebarPanel is now SubNavPanel

    Each alias keeps its old base class (ds-nav-list, ds-sidebar-panel) beside the new one, but the old modifier and element classes are gone: a rule written against ds-nav-list__row moves to ds-side-nav__row. SubNavPanel's width hook keeps working under its old name, --ds-sidebar-panel-width.

New

  • DrillMenu, a menu for phones. One level at a time, rows a thumb tall with an optional icon, a second line, a current value or a chosen mark, and a back row naming where it returns to. It opens on the level that holds the current page, so a reader deep in a section reopens it where they are. drillMenuPathTo tells a host where it will open.
  • SiteHeader's drawer drills in. On a phone it fills the screen as a solid sheet clear of the notch and the home indicator; on a tablet it is a 320px glass panel. Sections drill into their pages, drawerEntries add rows and groups after them, drawerHeader sits above the first level and drawerFooter is pinned at its foot on the first level only. The close always sits inside the panel. drawerBackLabel and drawerOverviewLabel localise the menu's own text.
  • AppSidebar's phone drawer drills in too, full screen, with drawerTopEntries, drawerBottomEntries and a full-width footerAction. An item can carry a value (a setting's current choice), and its sub-items can carry a description, an icon and selected, so a setting opens its choices in the side panel. drawerBackLabel and drawerOverviewLabel match SiteHeader's.
  • IconButton takes glass, as Button does, for a button on a busy ground such as a map or a chart.

Fixed

  • AppSidebar's collapsed rail handles a long nav. The rows scroll above the profile with a fade at the end that has more, the last row stops clear of the avatar, and a short divider marks each group break where the expanded rail names it.
  • A node given as an AppSidebar item's icon (a swatch, a mark) sits on the same axis as the glyphs, and a row's value sits level with its label and chevron.
  • SideNav draws each row as one shape: a row with children no longer has a separate toggle with a hover pill of its own.
npm install rift-ds@1.38.0

v1.37.1: shaders that compile without freezing the page

Choose a tag to compare

@robritacca-dotcom robritacca-dotcom released this 25 Nov 05:44

Two fixes, both in published components. Nothing in the API changed, so upgrading needs no code changes.

Fixed

  • ShaderField and ShaderScene no longer freeze the page while their shader compiles. Each read the link status straight after linking, which stops the main thread until the graphics driver has finished: about a tenth of a second for a small scene and two seconds or more for a large one such as horizon, longest on Windows, during which the page answered no press, scroll or key. Both now wait for the compile away from the main thread and start drawing when it is done.
  • SiteHeader's mega menu stays open while the pointer moves down to it. The strip between a section pill and its menu belonged to neither, so a pointer that crossed it slowly lost the menu, and the press landed on the page behind.

Changed

  • A scene reports pending until its shader has compiled. A heavy scene appears a moment later than it did, and a fallback you paint for pending shows for that moment, in exchange for a page that stays responsive meanwhile. onStatusChange and onError report as before, a failed scene's log included.
  • ShaderField and ShaderScene measure their box when it changes size, where they asked every frame.
npm install rift-ds@1.37.1

v1.37.0: a drawer beside a live page, rich option rows, charts that report the cursor

Choose a tag to compare

@robritacca-dotcom robritacca-dotcom released this 25 Nov 03:29

A drawer can now sit beside a live page, select options carry a second line and a trailing value, and charts report the point under the cursor. This release also publishes the markdown mappers as their own subpath and adds two blocks. Nothing published was removed; the visual changes are listed under Changed.

New

  • Drawer: modal and layout. modal={false} leaves the page live beside the panel, for a detail view that follows a list: no scrim, no focus trap, no scroll lock, and a press outside never closes it. Escape and the close button still do. layout="floating" holds the panel off every edge as a raised card. Both default to what Drawer did before.
  • Rich option rows in Dropdown and Combobox. A Dropdown option takes description (a second line) and trailing (a value at the row's end); a Combobox option takes icon (a Material Symbol name or any element, such as an Avatar) and trailing. The closed control still shows the label, and typing still matches the label alone.
  • onActiveChange on AreaChart, LineChart, BarChart, StackedBarChart and ComboChart. It reports the row of data under the pointer or the keyboard cursor and its index, and null, null once neither is on the plot, so a headline outside the chart can follow the cursor. ChartActiveHandler is the callback's type.
  • rift-ds/markdown. MarkdownCode, MarkdownScrollTable and markdownComponents map a markdown renderer's fenced blocks and tables onto the system's CodeBlock and a scrolling table inside Prose. It brings no renderer and no dependencies; the chat's replies use the same two.
  • Instructions: a step's description takes rich content (ReactNode, where it was a string).
  • NavList: an item takes an icon, a Material Symbol name or any element.
  • CommandPalette highlights the typed match in labels and descriptions.
  • ShaderScene on a light page. A night scene is now laid on as a deepened ink of its first colour, so it no longer washes out to white.

Changed

  • Light mode in Zest, Signal, Forest, Blueprint and Ember. Zest, Signal, Forest and Blueprint put the page and an app's surface on white, with cards and the app shell on the grey. Zest's action is a forest fill under a lime label; Ember and Signal deepen their action fills until a white label holds AA. Ember, Signal and Zest also gain a pressed state one step deeper than hover. Dark mode is unchanged.
  • CommandPalette labels step back while you filter, so the highlighted match carries the emphasis. It does not apply under manualFiltering.
  • A vertical Instructions step fills the step's width.

Blocks

  • npx rift-ds init block landing and npx rift-ds init block pricing scaffold a landing page and a pricing page on a shared marketing shell.
npm install rift-ds@1.37.0

v1.36.0: your CSS wins, buttons submit, switches start off

Choose a tag to compare

@robritacca-dotcom robritacca-dotcom released this 24 Nov 02:35

Your own CSS now always beats component styles, in development and production alike. This release also fixes deep imports that type-checked but failed to build, lets buttons submit forms, and starts a ToggleSwitch off. Nothing published was removed; three changes in behaviour are listed under Changed.

Changed

  • Component styles sit in a cascade layer. Every component stylesheet now opens with @layer rift.tokens, rift.preset, rift.components; and keeps its rules in rift.components, after the token layers. Any CSS of yours outside a layer beats them, whatever its selector and whatever order your bundler loads the sheets in, so an override that worked under next dev no longer disappears under next build. className is the supported hook. If you relied on a library rule beating your own CSS, yours now wins.
  • A reset of your own now outranks the components too. A bare * { margin: 0; padding: 0 } would strip their spacing. Put a reset inside @layer rift.tokens { … }, or import rift-ds/tokens/base.css, which already sits there (as do the icon sheet's class rules).
  • ToggleSwitch starts off. defaultChecked now defaults to false, as every other checkable control does, so a switch left uncontrolled no longer turns its setting on by itself. A switch that relied on starting on needs defaultChecked.

New

  • type on Button, IconButton and SplitButton: 'button' | 'submit' | 'reset', defaulting to 'button', so a button inside a form still never submits it by accident. type="submit" makes it the form's submit button. A loading button is disabled, so it cannot submit twice. On SplitButton it reaches the primary segment only; the menu chevron never submits.

Fixed

  • Deep imports ship every value their types declare. fieldErrorsFrom from rift-ds/components/ErrorSummary/ErrorSummary, periodColumns, periodsOf and totalOf from DataTable, BLOB_COUNT from ShaderField, and revokeAttachmentUrls and useAttachments from AttachmentGroup type-checked but failed a production build with a missing export. The settings block from init block settings hit it.
  • Floating panels are opaque in dark mode. FilterBar's option panel, Link's skip link and AppSidebar's phone trigger let the page show through. They now take the opaque menu fill, which in light mode moves FilterBar's panel from white to the page grey, as Dropdown's menu is.
  • A ToggleSwitch that is off looks off: a neutral track and thumb, and no tick.
  • AppSidebar marks one current page. With a sub-item current, its parent no longer carries aria-current as well, and it gives up its fill while the sub-item shows below it.
  • A bare Chart takes no padding on a phone, and a compact Input with an icon and a prefix, suffix, clear button or action no longer pads its text for the icon.
  • A clearable search Input shows one clear button, not the library's and the browser's side by side.
  • Table's total row shows its rule.
  • Stat's arrow sits on a wrapped delta's first line.
  • AppSidebar's collapse, profile and phone-trigger buttons show the focus ring.

Blocks

  • The settings and sign-in blocks submit through their buttons. If you copied them earlier, give the Save profile and Sign in buttons type="submit" and drop their onClick.
npm install rift-ds@1.36.0

v1.35.0: a schedule view, a docked action bar and a quiet field

Choose a tag to compare

@robritacca-dotcom robritacca-dotcom released this 23 Nov 05:22

Fixes and additions found by building a real app on the package: a calendar that reads like a timetable, a bar that docks under a long list, a quiet field for optional notes, and a status colour per segment. Nothing published was removed.

New

  • ActionBar, a new component: a summary and the primary actions docked to the bottom of a long list or form, with the list fading under a progressive blur instead of being cut off. summary is announced politely when it changes; sticky and blur are on by default.
  • Input variant="quiet": no border or fill at rest, revealed on hover, focus, a value or an error, or when a parent marked data-quiet-host is hovered. Made for lists where every row can take an optional entry.
  • SegmentedControl status on a segment (positive, warning, error, info): the selected pill takes that status's colours, so a choice like Present, Late or Absent reads as what it means.

EventCalendar

  • start and end on an event, as 24-hour HH:mm. The calendar writes them in the reader's locale ("8:50 – 9:50 AM", "08:50–09:50 Uhr") and sorts by them.
  • The day view is a schedule: start over end, an accent bar and the title, with a "Now" marker when the day is today. now pins the marker for demos and tests; nowLabel, allDayLabel and emptyDayLabel set its words.
  • bare drops the calendar's own fill, border and padding, for a calendar inside a Panel or Widget.
  • weekLabel and dayLabel set the week and day headings, as monthLabel sets the month's.

Other additions

  • ContributionGraph fill={false} keeps cells at their base size instead of stretching to the width, for a graph with only a few weeks of data.
  • Stat captionPlacement="label" puts the caption under the label instead of beside the icon.
  • AppSidebar fixed={false} lays the rail, its side panel and its phone drawer out in their parent, for a framed preview or a layout that is not the whole page.
  • Alert description takes a node, so it can hold a link or a short list.
  • FileInput defaultFiles and onFilesChange: it keeps its own list when files is not passed.

Fixed

  • EventCalendar's week heading no longer breaks hydration. Node and browsers write different spaces around a range's dash; every range is now written with plain spaces (ResourceTimeline's too).
  • Event times sort by the clock. "8:50" comes before "12:50", and "11:00 AM" before "1:40 PM".
  • EventCalendar's today is hydration-safe. Without a today prop, a server-rendered calendar marks today once it hydrates, and the mark moves on at midnight.
  • ContributionGraph places each day on its own weekday. A series with gaps, such as a class that meets twice a week, fills only its weekdays' rows.
  • EntitySwitcher's mark sits on a collapsed AppSidebar's axis, in line with the nav icons.
  • An expanded AppSidebar row gives its icon room inside the selected pill.
  • The app-shell block's top bar now covers the whole content gutter once the page scrolls, at every width.

Deprecated

  • EventCalendar event time: use start (and end). time still works as a display override.
  • ariaLabel on ProgressBar, ChatThread, ContextMenu, Popover, PromptSuggestions and ThreadTabs: pass the native aria-label, which wins when both are set. This finishes the move the rest of the library has made.

Changed

  • EventCalendar's day view has no day-number button, so onDateClick no longer fires from the day itself in view="day". renderSelectedDay still works.
  • Event times written with start follow the locale, so a pill reads "11:00 AM" in en-US where time showed the text as given.
  • A native aria-label on ContextMenu, Popover or ThreadTabs now names the menu, the panel or the list, rather than the wrapper around it.

Upgrading

Nothing to change in most apps. If you scaffolded the app-shell block before this release, your copy is yours and was not updated: in AppShell.module.css, set --shell-gutter on .shell (40px, 20px under 1280px, the shell inset on phones), use it for .content's side padding, and set the top bar's fill and blur to inset-inline: calc(-1 * var(--shell-gutter)). Running npx rift-ds init block app-shell in a fresh folder shows the new file.

npm install rift-ds@1.35.0

v1.34.0 — Status glyphs, approval waits and a quieter composer

Choose a tag to compare

@robritacca-dotcom robritacca-dotcom released this 22 Nov 14:30

A chat that shows its state more clearly: the status dots draw a tick, a cross or a prompt, every reply keeps its status line, and a card waiting on the reader says so on the line and on the button that opens the chat. Nothing published was removed.

Agent status

  • AgentStatus and AgentStatusMark draw a glyph for the three states that ask something of the reader. done is a tick, error is a cross, and waiting is a prompt whose cursor breathes. They replace the solid fill. A glyph is drawn in dot by dot only when the state is reached on screen; an indicator that mounts already there shows it standing.
  • AiButton shows the same glyphs in its icon slot for waiting, done and error.

Chat

  • Every reply that thought keeps its status line. One AgentStatus owns the line from the first step to the tick beside "Thought for Ns", with or without a trace to open. A failed reply ends on the cross.
  • useTurnAwaiting(waiting, key), new in rift-ds/chat: a card that waits on the reader, such as a proposed change with Confirm still to press, calls it. The reply's status line then reads "Waiting for approval", and useChatAgentState() returns waiting, both from one record, so the line and the button that opens the chat always agree.
  • ChatWidget awaitingApprovalLabel sets that line's words.
  • ChatWidget logo takes a node as well as an image src, so the header mark can be an inline SVG that reads the theme's tokens.
  • ChatWidget composerGlow passes Composer's aiGlow through.
  • createChatHandler's contextBlock receives the conversation as a second argument, for a context block that answers what the visitor named as well as where they are.

Composer

  • aiGlow takes "streaming", and it is the new default. The gradient ring lights only while a response streams, and a focused composer keeps the plain selected border, so the ring means the agent is at work and nothing else. aiGlow as true is the earlier look, with the ring on focus too. false never lights it.

Chat cards

  • The shared card recipe has more room. The edge, the gap under a title block, the gap above the buttons and the fact list's rows and columns each step up, across ActionCard, ActionReadout, InterruptCard, QuestionCard, MessageCard, SourceTrail, ToolCall and UsageCard.

Changed

  • Composer's ring no longer shows on focus by default. It used to be off unless you set aiGlow, and with aiGlow it lit on focus and while streaming. Now every composer lights it while streaming, and only aiGlow={true} lights it on focus.
  • Finished and waiting status dots look different. done and error no longer fill solid and twinkle, and waiting no longer breathes every dot: each draws its glyph. A pattern passed by name still runs while waiting.
  • A chat reply's status line stays. A reply with no trace used to drop the line when the answer began.
  • Chat cards are a little taller, from the roomier recipe.

Upgrading

Nothing to change in most apps. If you set aiGlow on a Composer and want the ring on focus, it still works as before. If you never set it and do not want a ring while a response streams, pass aiGlow={false}, or composerGlow={false} on ChatWidget.

npm install rift-ds@1.34.0

v1.33.0 — Site layout, code highlighting and the docs kit

Choose a tag to compare

@robritacca-dotcom robritacca-dotcom released this 22 Nov 00:34

Everything a documentation or marketing site needs is now in the package: a site frame, a footer, a menubar, a copy button, a back-to-top button, and code blocks with highlighting and install tabs. Nothing published was removed.

New components

  • SiteLayout: the frame of a documentation or marketing site, and the site's counterpart to AppLayout. It holds a SiteHeader, a scrollable NavList sidebar, the page and an on-this-page AnchorNav, with SiteFooter below. Its width is contained (in narrow, default or wide steps) or full, and the sidebar docks to the content or to the window's edge. It renders on the server.
  • SiteFooter: a sitemap footer with link columns, a brand block and a copyright row.
  • Menubar: a row of menus that open with the arrow keys, built on DropdownMenu's items (groups, checkbox and radio rows, sub-menus, shortcuts).
  • CopyButton: puts a value on the clipboard and says so, as a button or an icon-only circle.
  • BackToTop: a round button that appears once the reader has scrolled a long way and takes them back to the top. It respects reduced motion.

Code

  • CodeBlock takes pre-highlighted lines, coloured through the new --color-code-* tokens, plus showLineNumbers and highlightLines. Without lines it stays monochrome, as before.
  • CodeBlock tabs show grouped snippets, such as install commands, under one header. Blocks that share a syncKey follow one pick, remembered across visits.
  • rift-ds/code exports packageManagerTabs(pkg). rift-ds/code/highlight exports highlight(code, lang), behind the new optional shiki peer, so nothing else pulls it in.

New on existing components

  • AnchorNav fromHeadings builds the on-this-page list from the page's own headings and keeps it current. useHeadingItems is the same thing as a hook.
  • Heading and SectionTitle anchor give a heading an id and a link that copies its URL.
  • NavList takes titled sections as well as items, with badges, a scrollable form and a compact size.
  • SiteHeader width puts the bar on the contained or full width axis. foldBelow folds it into its menu at a breakpoint. On a full bar, the mega menu hangs from the section pills only past --ds-site-header-menu-hang-from.
  • Pagination variant="adjacent" shows previous and next links as two cards.
  • ArtifactPanel layout="inline" sits in the page flow as a preview and code example.
  • Rating variant="thumbs" asks a thumbs up or down question, for page feedback.
  • Figure carries a do or don't verdict through variant.
  • Link variant="skip" is a skip link, hidden until focused.
  • Table columns take mono for code-set cells.
  • npx rift-ds init block docs scaffolds a documentation page that uses all of the above.

Changed

  • AppLayout's width now defaults to contained in every mode. The inset mode used to force full width. Pass width="full" to keep an edge-to-edge inset layout.
  • NavList, single-open: opening a row now closes only its siblings, never the section or the rows around it. Left uncontrolled, the branch holding the current page opens on top of defaultExpandedIds.
  • Only one menu is open at a time. A tooltip or hover card showing over an open menu no longer stops a press outside from closing it, so opening a second menu closes the first.
  • ShaderScene rebuilds a lost graphics context on a fresh canvas once it comes back near the screen, instead of waiting for the browser.

Upgrading

Nothing to change unless you use AppLayout's inset mode and want it edge to edge: add width="full". If you passed defaultExpandedIds={[]} to NavList to keep every row closed, the current page's branch now opens.

Install

npm install rift-ds@1.33.0

v1.32.0 — Anthropic SDK 1.x support, and IconButton

Choose a tag to compare

@robritacca-dotcom robritacca-dotcom released this 21 Nov 05:24

The chat installs beside Anthropic's SDK 1.x, the round icon button takes the name that fits it, and an icon sits closer to the edge of its box. Nothing published was removed: CircularButton and Button's text keep working as deprecated aliases.

Fixed

  • @anthropic-ai/sdk 1.x is accepted. The chat server's optional peer was ^0.116.0, which npm reads as 0.116.x only, so an app on SDK 1.x hit ERESOLVE unless it passed --legacy-peer-deps. The range is now ^0.116.0 || ^1.0.0. Nothing in the chat API changed, and both SDK lines work.
  • RadioButton: the dot stays concentric with its ring at a fractional page position.
  • A node icon in an icon button (an avatar, an SVG) sits on the centre line, where it rode a little high.

Renamed, with the old name kept

  • CircularButton is now IconButton. Its shape is the theme's, so a square theme drew a "circular" button square. CircularButton, its deep import and its props still resolve, marked deprecated.
  • Button gains iconOnly, the spelling the button family shares. text still works, marked deprecated.

New on existing components

  • AiButton and CommandPaletteTrigger name their icon-only form with a tooltip, as IconButton does. tooltip rewords it or switches it off, and tooltipPosition places it.
  • rift-ds/chat exports preloadChatWidget, so your own button that opens the chat can load its panel ahead of the press.
  • rift-ds/behaviors/deferComponent: deferComponent and usePreloadWhenIdle, for a panel that loads on demand and preloads once the page is interactive.

Changed

  • The icon side of a box takes one padding step less. In every button, chip, field, menu row and disclosure header, a side holding an icon, chevron, remove glyph, keycap or spinner steps its padding down 4px, never below 8px, so the glyph's edge reads level with the text's. Icon-only forms keep their even box.
  • Tooltip keeps an aria-describedby its child already set.

Upgrading

Nothing to change. To move off the deprecated names when you choose, rename CircularButton to IconButton and Button's text to iconOnly.

If you move your app to @anthropic-ai/sdk 1.x, two things change in the SDK itself: your key is sent as Authorization: Bearer where 0.x sent X-Api-Key, and requests use API version 2026-10-21. A proxy or gateway that reads X-Api-Key needs updating first.

Install

npm install rift-ds@1.32.0