Skip to content

Releases

v0.2.0-beta.1

v0.2.0-beta.1 Pre-release
Pre-release

Choose a tag to compare

@kissycn kissycn released this 05 Nov 14:36

DSH layer synchronized with dsh-v0.2.2-rc.1 (from dsh-v0.2.0-rc.2). Prerelease, published under the next dist-tag.

npm install @seekbuddy/dsh-ui@next

Preview: every component, including the new ones, in Storybook.

Breaking

  • projectUserText and UserTextReferences are removed upstream. Split the text yourself and render the pieces with the new UserTextRun and ReferenceChip.
  • TerminalBlockLabels requires commandLine: (line: number) => string, the accessible name of a command line that overflows horizontally.
  • MarkdownDelegate.fileImages requires fileDrag: FileDragActions.
  • Tooltip now injects onPointerEnter / onPointerLeave / onPointerDown into its trigger child instead of onMouseEnter / onMouseLeave.
  • The token --dsw-specific-sidebar-nav-item-hover is removed.

Migrating

// Before
projectUserText(text, sessionLabels)

// After: split the text in your app, then render each piece
<>
  <UserTextRun text="Please review " />
  <ReferenceChip appearance="file" label="design.md" title="docs/design.md" />
</>
const terminalLabels: TerminalBlockLabels = {
  commandLine: (line) => `Command line ${line}`,
  // …the existing labels
}

Added

New components from upstream:

Component Entry What it is
UserMessageBubble root Surface of a user message
UserTextRun, ReferenceChip root Plain-text run and reference chip inside a user message
QuotePreview root Inline preview of a quoted selection, optionally removable
InlineEditor root In-place multi-line editor: Enter saves, Esc cancels
AnimatedRows root Glide and fade for keyed rows that reorder, enter or leave
HoverCardGroup root Shares hover-card dwell across a list
ZoomControls root Zoom toolbar for document previews
DraggableImage root Image that can be dragged out of the page as a file
CommandText /blocks Full command on one line, scrollable when it overflows
DetailDocument /markdown A Markdown document with loading and retry states

Also new:

  • Root entry: useClipboardCopy, useRowDragPreview, isMobileDevice, DOCUMENT_ZOOM, MENU_TRANSITION_MS and the FileDragActions types.
  • /markdown: detailDocumentState, useDetailDocumentLabels, useMarkdownDelegate, MarkdownMenuTarget, formatQuoteText.
  • /icons: ICON_SYMBOLS, IconAppsAdd*, IconDragHandle*, IconSave*, PermissionIconAutoReview*.
  • Optional props: new ones on Menu, HoverCard, SegmentedTabs, TerminalBlock, Tooltip, MarkdownText, DisclosureRow, ImageLightbox and MarkdownDelegateProvider; see UPSTREAM.md.
  • Tokens: --dsw-alias-illustration-* (six) and --dsw-alias-state-done-primary.
  • Storybook: a page for every new export.

Changed

  • @deepseek-ai/dsh-util-code-language is pinned to 0.2.2-rc.1.

Full changelog: CHANGELOG.md · compare