sw-ui-transcript-view
sw-ui-transcript-view
Chat-bubble timeline that renders an array of TranscriptEntry
items, each tagged as user / agent / system with optional rich content.
Designed to live inside <sw-ui-call-layout>’s transcript slot or
<sw-ui-content-drawer> body. The view auto-scrolls to the latest
entry, distinguishes “partial” (in-progress) entries with a subtle
pulse, and renders rich meta payloads:
- Links — clickable anchors injected as a footer beneath the bubble.
- Code — Prism-highlighted snippet (language is loaded lazily).
- Display content — content the agent pushed via a
display_contentuser event; preserved verbatim so the download button can serialise the full payload back to markdown.
The header includes a download icon that exports the entire transcript
as a .md file via transcriptToMarkdown() so users can save the
conversation.
Class: SwUiTranscriptView · Module: packages/web-components/src/components/UI/sw-ui-transcript-view.ts
class: SwUiTranscriptView, sw-ui-transcript-view
Fields
entries
entries field.
header
header field.
emptyText
emptyText field.