Skip to content

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
· 219 commits to main since this release

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