An open source design system that's fully customizable and agent ready
TypeScript
fix(blocks): remove legacy Chat/ block examples (#1949)
Kenton Quatmanfb4da2e6967d
diff --git a/packages/cli/templates/blocks/components/Chat/ChatComposer.doc.mjs b/packages/cli/templates/blocks/components/Chat/ChatComposer.doc.mjsdeleted file mode 100644index e21571587c..0000000000--- a/packages/cli/templates/blocks/components/Chat/ChatComposer.doc.mjs+++ /dev/null@@ -1,9 +0,0 @@-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */-export const doc = {- type: 'block',- name: 'Chat — Composer',- description: 'Chat composer in default, footer actions, error, and disabled states. Use the default for simple chat, add footer actions for model selectors or settings, and show error status when a message fails to send.',- isReady: true,- aspectRatio: 16 / 9,- componentsUsed: ['Chat', 'Button', 'Layout', 'Text'],-};diff --git a/packages/cli/templates/blocks/components/Chat/ChatComposer.tsx b/packages/cli/templates/blocks/components/Chat/ChatComposer.tsxdeleted file mode 100644index bff8b9028a..0000000000--- a/packages/cli/templates/blocks/components/Chat/ChatComposer.tsx+++ /dev/null@@ -1,95 +0,0 @@-'use client';--import {useState} from 'react';-import {- XDSChatComposer,- XDSChatComposerDrawer,- XDSChatComposerInput,-} from '@xds/core/Chat';-import {XDSButton} from '@xds/core/Button';-import {XDSToken} from '@xds/core/Token';-import {XDSIcon} from '@xds/core/Icon';-import {XDSDropdownMenu} from '@xds/core/DropdownMenu';-import {XDSStack} from '@xds/core/Layout';-import {XDSProgressBar} from '@xds/core/ProgressBar';-import {- AtSymbolIcon,- CodeBracketIcon,- ListBulletIcon,- PaperClipIcon,- SparklesIcon,-} from '@heroicons/react/24/outline';--const MODES = [- {label: 'Auto', icon: SparklesIcon},- {label: 'Code', icon: CodeBracketIcon},- {label: 'Plan', icon: ListBulletIcon},-];--export default function ChatComposer() {- const [mode, setMode] = useState(MODES[0]);- return (- <XDSStack direction="vertical" gap={4} width={450}>- <XDSChatComposer- onSubmit={() => {}}- input={<XDSChatComposerInput style={{minHeight: 66}} />}- drawer={- <XDSChatComposerDrawer count={2}>- <XDSToken label="report.pdf" onRemove={() => {}} />- <XDSToken label="data.csv" onRemove={() => {}} />- </XDSChatComposerDrawer>- }- headerContext={- <XDSProgressBar label="Context window" value={42} isLabelHidden />- }- headerActions={- <>- <XDSButton- label="Mention"- variant="ghost"- size="sm"- icon={<XDSIcon icon={AtSymbolIcon} size="sm" />}- isIconOnly- onClick={() => {}}- />- <XDSButton- label="Attach"- variant="ghost"- size="sm"- icon={<XDSIcon icon={PaperClipIcon} size="sm" />}- isIconOnly- onClick={() => {}}- />- </>- }- footerActions={- <>- <XDSDropdownMenu- button={{- label: mode.label,- variant: 'ghost',- size: 'md',- icon: <XDSIcon icon={mode.icon} size="sm" />,- }}- menuWidth={120}- items={MODES.map((m) => ({- label: m.label,- icon: m.icon,- onClick: () => setMode(m),- }))}- />- <XDSDropdownMenu- button={{label: 'Settings', variant: 'ghost', size: 'md'}}- menuWidth={180}- items={[- {label: 'Personalization', onClick: () => {}},- {label: 'Memory & history', onClick: () => {}},- {label: 'Data controls', onClick: () => {}},- ]}- />- </>- }- />- </XDSStack>- );-}diff --git a/packages/cli/templates/blocks/components/Chat/ChatComposerDrawer.doc.mjs b/packages/cli/templates/blocks/components/Chat/ChatComposerDrawer.doc.mjsdeleted file mode 100644index 361531551d..0000000000--- a/packages/cli/templates/blocks/components/Chat/ChatComposerDrawer.doc.mjs+++ /dev/null@@ -1,9 +0,0 @@-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */-export const doc = {- type: 'block',- name: 'Chat — Composer Drawer',- description: 'Composer with removable file tokens, header actions, and a collapsible drawer. Use the collapse toggle when many files are attached, and header actions for attach and mention buttons.',- isReady: true,- aspectRatio: 16 / 9,- componentsUsed: ['Chat', 'Token', 'Button', 'Icon', 'Layout'],-};diff --git a/packages/cli/templates/blocks/components/Chat/ChatComposerDrawer.tsx b/packages/cli/templates/blocks/components/Chat/ChatComposerDrawer.tsxdeleted file mode 100644index 291f39280c..0000000000--- a/packages/cli/templates/blocks/components/Chat/ChatComposerDrawer.tsx+++ /dev/null@@ -1,44 +0,0 @@-'use client';--import {XDSChatComposer, XDSChatComposerDrawer} from '@xds/core/Chat';-import {XDSToken} from '@xds/core/Token';-import {XDSStack} from '@xds/core/Layout';-import {XDSButton} from '@xds/core/Button';-import {XDSIcon} from '@xds/core/Icon';-import {PaperClipIcon, AtSymbolIcon} from '@heroicons/react/24/outline';--export default function ChatComposerDrawer() {- return (- <XDSStack direction="vertical" gap={4} width={450}>- <XDSChatComposer- onSubmit={() => {}}- drawer={- <XDSChatComposerDrawer count={2}>- <XDSToken label="report.pdf" onRemove={() => {}} />- <XDSToken label="data.csv" onRemove={() => {}} />- </XDSChatComposerDrawer>- }- headerActions={- <>- <XDSButton- label="Mention"- variant="ghost"- size="sm"- icon={<XDSIcon icon={AtSymbolIcon} size="sm" />}- isIconOnly- onClick={() => {}}- />- <XDSButton- label="Attach"- variant="ghost"- size="sm"- icon={<XDSIcon icon={PaperClipIcon} size="sm" />}- isIconOnly- onClick={() => {}}- />- </>- }- />- </XDSStack>- );-}diff --git a/packages/cli/templates/blocks/components/Chat/ChatMessageList.doc.mjs b/packages/cli/templates/blocks/components/Chat/ChatMessageList.doc.mjsdeleted file mode 100644index 8cfa246101..0000000000--- a/packages/cli/templates/blocks/components/Chat/ChatMessageList.doc.mjs+++ /dev/null@@ -1,9 +0,0 @@-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */-export const doc = {- type: 'block',- name: 'Chat — Message List',- description: 'Full conversation with user bubbles, assistant markdown, avatars, timestamps, delivery status, multi-bubble grouping, and system messages. Shows the core MessageList > Message > Bubble composition pattern.',- isReady: true,- aspectRatio: .85,- componentsUsed: ['Chat', 'Avatar', 'Markdown', 'Timestamp'],-};diff --git a/packages/cli/templates/blocks/components/Chat/ChatMessageList.tsx b/packages/cli/templates/blocks/components/Chat/ChatMessageList.tsxdeleted file mode 100644index 90b99ab358..0000000000--- a/packages/cli/templates/blocks/components/Chat/ChatMessageList.tsx+++ /dev/null@@ -1,72 +0,0 @@-'use client';--import {- XDSChatMessageList,- XDSChatMessage,- XDSChatMessageBubble,- XDSChatMessageMetadata,- XDSChatSystemMessage,- XDSChatTokenizedText,-} from '@xds/core/Chat';-import {XDSAvatar} from '@xds/core/Avatar';-import {XDSMarkdown} from '@xds/core/Markdown';-import {XDSTimestamp} from '@xds/core/Timestamp';-import { XDSText } from '@xds/core/Text';--const TOKENS = [{value: '@agent', label: '@agent', variant: 'red' as const}];--export default function ChatMessageList() {- return (- <XDSChatMessageList density="spacious">- <XDSChatSystemMessage variant="divider">Today</XDSChatSystemMessage>-- <XDSChatMessage sender="user">- <XDSChatMessageBubble>- <XDSChatTokenizedText tokens={TOKENS}>- @agent How should I handle state management in a React app?- </XDSChatTokenizedText>- </XDSChatMessageBubble>- </XDSChatMessage>-- <XDSChatMessage- sender="assistant"- avatar={<XDSAvatar name="Agent" size="small" />}>- <XDSChatMessageBubble variant="ghost">- <XDSMarkdown density="compact">{- `For most cases, **React's built-in state** is sufficient:- - \`useState\` for local component state- - \`useReducer\` for complex state logic- - \`useContext\` for shared state across a subtree- Avoid global state managers unless you have a genuine need for cross-cutting state.`- }</XDSMarkdown>- </XDSChatMessageBubble>- <XDSChatMessageMetadata- timestamp={- <XDSTimestamp value="2026-03-15T14:30:30" format="time" />- }- footer={<span>AI Agent 2.0</span>}- />- </XDSChatMessage>-- <XDSChatMessage sender="user">- <XDSChatMessageBubble group="first">- That makes sense, thanks!- </XDSChatMessageBubble>- <XDSChatMessageBubble- group="last"- metadata={- <XDSChatMessageMetadata- timestamp={- <XDSTimestamp value="2026-03-15T14:31:00" format="time" />- }- status="delivered"- />- }>- What about server state?- </XDSChatMessageBubble>- </XDSChatMessage>-- <XDSChatSystemMessage>Agent is thinking…</XDSChatSystemMessage>- </XDSChatMessageList>- );-}diff --git a/packages/cli/templates/blocks/components/Chat/ChatMessengerConversation.doc.mjs b/packages/cli/templates/blocks/components/Chat/ChatMessengerConversation.doc.mjsdeleted file mode 100644index ee5da98cb0..0000000000--- a/packages/cli/templates/blocks/components/Chat/ChatMessengerConversation.doc.mjs+++ /dev/null@@ -1,10 +0,0 @@-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */-export const doc = {- type: 'block',- name: 'Chat — Messenger Conversation',- description:- 'Messenger-style chat with avatars, grouped bubbles, system messages, and timestamps.',- isReady: true,- aspectRatio: 4 / 3,- componentsUsed: ['Chat', 'Avatar', 'Timestamp'],-};diff --git a/packages/cli/templates/blocks/components/Chat/ChatMessengerConversation.tsx b/packages/cli/templates/blocks/components/Chat/ChatMessengerConversation.tsxdeleted file mode 100644index 2005b99f74..0000000000--- a/packages/cli/templates/blocks/components/Chat/ChatMessengerConversation.tsx+++ /dev/null@@ -1,86 +0,0 @@-'use client';--import {- XDSChatMessageList,- XDSChatMessage,- XDSChatMessageBubble,- XDSChatMessageMetadata,- XDSChatSystemMessage,-} from '@xds/core/Chat';-import {XDSAvatar} from '@xds/core/Avatar';-import {XDSTimestamp} from '@xds/core/Timestamp';--const nameStyle = {- fontSize: 12,- fontWeight: 600,- color: '#666',- lineHeight: '16px',-};--export default function ChatMessengerConversation() {- return (- <div style={{height: 500, display: 'flex', flexDirection: 'column'}}>- <XDSChatMessageList>- <XDSChatSystemMessage variant="divider">Today</XDSChatSystemMessage>-- <XDSChatMessage- sender="assistant"- avatar={<XDSAvatar name="Navi" size="small" />}>- <XDSChatMessageBubble- name={<span style={nameStyle}>Navi</span>}- metadata={- <XDSChatMessageMetadata- timestamp={- <XDSTimestamp value="2026-03-15T14:30:00" format="time" />- }- />- }>- Hey! I looked at the PR and left a few comments on the density- styles.- </XDSChatMessageBubble>- </XDSChatMessage>-- <XDSChatMessage- sender="user"- avatar={<XDSAvatar name="Cindy" size="small" />}>- <XDSChatMessageBubble- group="first"- name={<span style={nameStyle}>Cindy</span>}>- Thanks! I'll take a look.- </XDSChatMessageBubble>- <XDSChatMessageBubble- group="last"- metadata={- <XDSChatMessageMetadata- timestamp={- <XDSTimestamp value="2026-03-15T14:31:00" format="time" />- }- status="read"- />- }>- Should be quick to fix.- </XDSChatMessageBubble>- </XDSChatMessage>-- <XDSChatMessage- sender="assistant"- avatar={<XDSAvatar name="Navi" size="small" />}>- <XDSChatMessageBubble- name={<span style={nameStyle}>Navi</span>}- metadata={- <XDSChatMessageMetadata- timestamp={- <XDSTimestamp value="2026-03-15T14:32:00" format="time" />- }- />- }>- Sounds good. The main thing is the compact radius — it should use- the container token, not the page token.- </XDSChatMessageBubble>- </XDSChatMessage>-- <XDSChatSystemMessage>Cindy liked a message</XDSChatSystemMessage>- </XDSChatMessageList>- </div>- );-}diff --git a/packages/cli/templates/blocks/components/Chat/ChatMixedContent.doc.mjs b/packages/cli/templates/blocks/components/Chat/ChatMixedContent.doc.mjsdeleted file mode 100644index eb7f1cae04..0000000000--- a/packages/cli/templates/blocks/components/Chat/ChatMixedContent.doc.mjs+++ /dev/null@@ -1,10 +0,0 @@-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */-export const doc = {- type: 'block',- name: 'Chat — Mixed Content',- description:- 'AI chat with multiple bubble variants, code blocks, file tokens, system messages, and markdown.',- isReady: true,- aspectRatio: 3 / 4,- componentsUsed: ['Chat', 'Markdown', 'Token', 'Stack', 'CodeBlock'],-};diff --git a/packages/cli/templates/blocks/components/Chat/ChatMixedContent.tsx b/packages/cli/templates/blocks/components/Chat/ChatMixedContent.tsxdeleted file mode 100644index 8d61c09d2a..0000000000--- a/packages/cli/templates/blocks/components/Chat/ChatMixedContent.tsx+++ /dev/null@@ -1,62 +0,0 @@-'use client';--import {- XDSChatMessageList,- XDSChatMessage,- XDSChatMessageBubble,- XDSChatSystemMessage,-} from '@xds/core/Chat';-import {XDSMarkdown} from '@xds/core/Markdown';-import {XDSToken} from '@xds/core/Token';-import {XDSHStack} from '@xds/core/Stack';-import {XDSCodeBlock} from '@xds/core/CodeBlock';--export default function ChatMixedContent() {- return (- <div style={{height: 600, display: 'flex', flexDirection: 'column'}}>- <XDSChatMessageList>- <XDSChatMessage sender="user">- <XDSChatMessageBubble>- Show me the component files and explain the architecture- </XDSChatMessageBubble>- </XDSChatMessage>-- <XDSChatMessage sender="assistant">- <XDSChatMessageBubble>- Sure! Here's an overview of the component architecture.- </XDSChatMessageBubble>- <XDSChatMessageBubble>- <XDSMarkdown density="compact">{`The system uses a **compound component** pattern with three layers:--1. **MessageList** — scrollable container with auto-scroll-2. **Message** — layout wrapper with sender context-3. **Bubble** — styled content container`}</XDSMarkdown>- </XDSChatMessageBubble>- <XDSChatMessageBubble>- <XDSMarkdown density="compact">Here are the files:</XDSMarkdown>- <XDSHStack gap={2} wrap="wrap">- <XDSToken label="Button.tsx" />- <XDSToken label="Card.tsx" />- <XDSToken label="Dialog.tsx" />- </XDSHStack>- <XDSCodeBlock- code={- "export * from './Button';\nexport * from './Card';\nexport * from './Dialog';"- }- language="typescript"- />- </XDSChatMessageBubble>- <XDSChatMessageBubble>- Let me know which one to open — I can walk through the- implementation.- </XDSChatMessageBubble>- </XDSChatMessage>-- <XDSChatMessage sender="user">- <XDSChatMessageBubble>Open Button.tsx</XDSChatMessageBubble>- </XDSChatMessage>-- </XDSChatMessageList>- </div>- );-}diff --git a/packages/cli/templates/blocks/components/Chat/ChatMultiBubbleGrouping.doc.mjs b/packages/cli/templates/blocks/components/Chat/ChatMultiBubbleGrouping.doc.mjsdeleted file mode 100644index a31304a822..0000000000--- a/packages/cli/templates/blocks/components/Chat/ChatMultiBubbleGrouping.doc.mjs+++ /dev/null@@ -1,10 +0,0 @@-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */-export const doc = {- type: 'block',- name: 'Chat — Multi-Bubble Grouping',- description:- 'Consecutive messages grouped with first/middle/last bubble shapes, timestamps, and delivery status.',- isReady: true,- aspectRatio: 4 / 3,- componentsUsed: ['Chat', 'Avatar', 'Timestamp'],-};diff --git a/packages/cli/templates/blocks/components/Chat/ChatMultiBubbleGrouping.tsx b/packages/cli/templates/blocks/components/Chat/ChatMultiBubbleGrouping.tsxdeleted file mode 100644index c575878225..0000000000--- a/packages/cli/templates/blocks/components/Chat/ChatMultiBubbleGrouping.tsx+++ /dev/null@@ -1,76 +0,0 @@-'use client';--import {- XDSChatMessageList,- XDSChatMessage,- XDSChatMessageBubble,- XDSChatMessageMetadata,-} from '@xds/core/Chat';-import {XDSAvatar} from '@xds/core/Avatar';-import {XDSTimestamp} from '@xds/core/Timestamp';--export default function ChatMultiBubbleGrouping() {- return (- <div style={{height: 500, display: 'flex', flexDirection: 'column'}}>- <XDSChatMessageList>- <XDSChatMessage sender="user">- <XDSChatMessageBubble group="first">- Hey, can you review my PR?- </XDSChatMessageBubble>- <XDSChatMessageBubble group="middle">- It's the one for the chat components- </XDSChatMessageBubble>- <XDSChatMessageBubble- group="last"- metadata={- <XDSChatMessageMetadata- timestamp={- <XDSTimestamp value="2026-03-15T14:31:00" format="time" />- }- status="delivered"- />- }>- Link: github.com/xds/pull/1180- </XDSChatMessageBubble>- </XDSChatMessage>-- <XDSChatMessage- sender="assistant"- avatar={<XDSAvatar name="Navi" size="small" />}>- <XDSChatMessageBubble group="first">- Sure, looking at it now!- </XDSChatMessageBubble>- <XDSChatMessageBubble group="middle">- The compound pattern looks solid. A few minor comments on the- density styles.- </XDSChatMessageBubble>- <XDSChatMessageBubble- group="last"- metadata={- <XDSChatMessageMetadata- timestamp={- <XDSTimestamp value="2026-03-15T14:33:00" format="time" />- }- />- }>- I'll leave them as review comments.- </XDSChatMessageBubble>- </XDSChatMessage>-- <XDSChatMessage sender="user">- <XDSChatMessageBubble- metadata={- <XDSChatMessageMetadata- timestamp={- <XDSTimestamp value="2026-03-15T14:34:00" format="time" />- }- status="sending"- />- }>- Thanks, will address those- </XDSChatMessageBubble>- </XDSChatMessage>- </XDSChatMessageList>- </div>- );-}diff --git a/packages/cli/templates/blocks/components/Chat/ChatShowcase.doc.mjs b/packages/cli/templates/blocks/components/Chat/ChatShowcase.doc.mjsdeleted file mode 100644index 91c27f7e60..0000000000--- a/packages/cli/templates/blocks/components/Chat/ChatShowcase.doc.mjs+++ /dev/null@@ -1,8 +0,0 @@-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */-export const doc = {- type: 'block',- name: 'Chat',- isReady: true,- aspectRatio: 1,- isShowcase: true,-};diff --git a/packages/cli/templates/blocks/components/Chat/ChatShowcase.tsx b/packages/cli/templates/blocks/components/Chat/ChatShowcase.tsxdeleted file mode 100644index 4f71c31e93..0000000000--- a/packages/cli/templates/blocks/components/Chat/ChatShowcase.tsx+++ /dev/null@@ -1,43 +0,0 @@-'use client';--import {- XDSChatLayout,- XDSChatMessageList,- XDSChatMessage,- XDSChatMessageBubble,- XDSChatComposer,- XDSChatTokenizedText,-} from '@xds/core/Chat';-import {XDSAvatar} from '@xds/core/Avatar';-import {XDSVStack} from '@xds/core/Stack';--const TOKENS = [{value: '/review', label: '/review', variant: 'blue' as const}];--export default function ChatShowcase() {- return (- <XDSVStack width={450}>- <XDSChatLayout- composer={- <XDSChatComposer- onSubmit={() => {}}- placeholder="Ask something..."- />- }>- <XDSChatMessageList>- <XDSChatMessage sender="user">- <XDSChatMessageBubble>- <XDSChatTokenizedText tokens={TOKENS}>- /review the changes in this file- </XDSChatTokenizedText>- </XDSChatMessageBubble>- </XDSChatMessage>- <XDSChatMessage sender="assistant">- <XDSChatMessageBubble variant="ghost">- Reading the file now...- </XDSChatMessageBubble>- </XDSChatMessage>- </XDSChatMessageList>- </XDSChatLayout>- </XDSVStack>- );-}diff --git a/packages/cli/templates/blocks/components/Chat/ChatTokenizedText.doc.mjs b/packages/cli/templates/blocks/components/Chat/ChatTokenizedText.doc.mjsdeleted file mode 100644index 30db02d4f3..0000000000--- a/packages/cli/templates/blocks/components/Chat/ChatTokenizedText.doc.mjs+++ /dev/null@@ -1,9 +0,0 @@-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */-export const doc = {- type: 'block',- name: 'Chat — Tokenized Text',- description: 'Messages with inline token badges for @mentions and hashtags. Single mention, multiple mentions, and mixed color variants side by side. Use inside a bubble to render structured references as styled badges.',- isReady: true,- aspectRatio: 16 / 9,- componentsUsed: ['Chat', 'Layout', 'Text'],-};diff --git a/packages/cli/templates/blocks/components/Chat/ChatTokenizedText.tsx b/packages/cli/templates/blocks/components/Chat/ChatTokenizedText.tsxdeleted file mode 100644index 203d06704b..0000000000--- a/packages/cli/templates/blocks/components/Chat/ChatTokenizedText.tsx+++ /dev/null@@ -1,30 +0,0 @@-'use client';--import {- XDSChatTokenizedText,- XDSChatMessage,- XDSChatMessageBubble,- XDSChatMessageList,-} from '@xds/core/Chat';-import {XDSStack} from '@xds/core/Layout';-import {XDSText} from '@xds/core/Text';--const mixedTokens = [- {value: '@cindy', label: '@Cindy', variant: 'blue' as const},- {value: '#bug', label: '#bug', variant: 'red' as const},- {value: '#feat', label: '#feature', variant: 'green' as const},-];--export default function ChatTokenizedText() {- return (- <XDSChatMessageList>- <XDSChatMessage sender="system">- <XDSChatMessageBubble>- <XDSChatTokenizedText tokens={mixedTokens}>- @cindy filed #bug and #feat for the sprint- </XDSChatTokenizedText>- </XDSChatMessageBubble>- </XDSChatMessage>- </XDSChatMessageList>- );-}diff --git a/packages/cli/templates/blocks/components/Chat/ChatToolCalls.doc.mjs b/packages/cli/templates/blocks/components/Chat/ChatToolCalls.doc.mjsdeleted file mode 100644index 3cbcafcd52..0000000000--- a/packages/cli/templates/blocks/components/Chat/ChatToolCalls.doc.mjs+++ /dev/null@@ -1,9 +0,0 @@-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */-export const doc = {- type: 'block',- name: 'Chat — Tool Calls',- description: 'Tool call display in single, multiple, error, and running states. Single calls render inline; multiple calls collapse into a summary.',- isReady: true,- aspectRatio: 16 / 9,- componentsUsed: ['Chat', 'Layout', 'Text'],-};diff --git a/packages/cli/templates/blocks/components/Chat/ChatToolCalls.tsx b/packages/cli/templates/blocks/components/Chat/ChatToolCalls.tsxdeleted file mode 100644index bc2f84fa15..0000000000--- a/packages/cli/templates/blocks/components/Chat/ChatToolCalls.tsx+++ /dev/null@@ -1,82 +0,0 @@-'use client';--import {XDSChatToolCalls} from '@xds/core/Chat';-import {XDSStack} from '@xds/core/Layout';-import {XDSText} from '@xds/core/Text';--export default function ChatToolCalls() {- return (- <XDSStack direction="vertical" gap={6}>- <XDSStack direction="vertical" gap={1}>- <XDSText type="supporting" color="secondary">- Multiple calls with stats- </XDSText>- <XDSChatToolCalls- defaultIsExpanded- calls={[- {- name: 'bash',- target: 'git diff --stat',- status: 'complete',- duration: '340ms',- },- {- name: 'read',- target: 'src/Button.tsx',- status: 'complete',- duration: '45ms',- },- {- name: 'edit',- target: 'src/Button.tsx',- status: 'complete',- duration: '120ms',- additions: 12,- deletions: 3,- },- ]}- />- </XDSStack>- <XDSStack direction="vertical" gap={1}>- <XDSText type="supporting" color="secondary">- Multiple calls with an error- </XDSText>- <XDSChatToolCalls- defaultIsExpanded- calls={[- {- name: 'bash',- target: 'yarn build',- status: 'complete',- duration: '8s',- node: 'cli:devvm',- },- {- name: 'bash',- target: 'yarn test',- status: 'error',- duration: '2.1s',- node: 'cli:devvm',- errorMessage: 'Process exited with code 1',- },- ]}- />- </XDSStack>- <XDSStack direction="vertical" gap={1}>- <XDSText type="supporting" color="secondary">- Running- </XDSText>- <XDSChatToolCalls- calls={[- {- name: 'bash',- target: 'yarn test --watch',- status: 'running',- node: 'cli:devvm',- },- ]}- />- </XDSStack>- </XDSStack>- );-}diff --git a/packages/core/src/Chat/XDSChatComposer.tsx b/packages/core/src/Chat/XDSChatComposer.tsxindex 093798ac7d..dd2d274fb7 100644--- a/packages/core/src/Chat/XDSChatComposer.tsx+++ b/packages/core/src/Chat/XDSChatComposer.tsx@@ -18,7 +18,7 @@* SYNC: When modified, update:* - /packages/core/src/Chat/Chat.doc.mjs* - /apps/storybook/stories/ChatComposer.stories.tsx- * - /packages/cli/templates/blocks/components/Chat/ (showcase blocks)+ * - /packages/cli/templates/blocks/components/ChatComposer/ (block examples)*/import {diff --git a/packages/core/src/Chat/XDSChatComposerDrawer.tsx b/packages/core/src/Chat/XDSChatComposerDrawer.tsxindex d6e599cd41..d9ee9d57a7 100644--- a/packages/core/src/Chat/XDSChatComposerDrawer.tsx+++ b/packages/core/src/Chat/XDSChatComposerDrawer.tsx@@ -10,7 +10,7 @@** SYNC: When modified, update:* - /packages/core/src/Chat/index.ts (exports)- * - /packages/cli/templates/blocks/components/Chat/ (showcase blocks)+ * - /packages/cli/templates/blocks/components/ChatComposerDrawer/ (block examples)*/import {useState, type ReactNode} from 'react';diff --git a/packages/core/src/Chat/XDSChatComposerInput.tsx b/packages/core/src/Chat/XDSChatComposerInput.tsxindex 00d131c4bd..d6e166011e 100644--- a/packages/core/src/Chat/XDSChatComposerInput.tsx+++ b/packages/core/src/Chat/XDSChatComposerInput.tsx@@ -15,7 +15,7 @@* SYNC: When modified, update:* - /packages/core/src/Chat/index.ts* - /apps/storybook/stories/ChatComposer.stories.tsx- * - /packages/cli/templates/blocks/components/Chat/ (showcase blocks)+ * - /packages/cli/templates/blocks/components/ChatComposerInput/ (block examples)*/import {@@ -566,7 +566,9 @@ export function XDSChatComposerInput(props: XDSChatComposerInputProps) {onKeyDown={handleKeyDown}onPaste={handlePaste}{...triggerMenu.ariaProps}- {...mergeProps(stylex.props(styles.editable), {style: {maxHeight: `${maxHeight}px`}})}+ {...mergeProps(stylex.props(styles.editable), {+ style: {maxHeight: `${maxHeight}px`},+ })}/>{triggerMenu.renderMenu()}{tokens.tokenPortalsdiff --git a/packages/core/src/Chat/XDSChatDictationButton.tsx b/packages/core/src/Chat/XDSChatDictationButton.tsxindex 881985492f..efa44f8740 100644--- a/packages/core/src/Chat/XDSChatDictationButton.tsx+++ b/packages/core/src/Chat/XDSChatDictationButton.tsx@@ -13,7 +13,7 @@** SYNC: When modified, update:* - /packages/core/src/Chat/index.ts (exports)- * - /packages/cli/templates/blocks/components/Chat/ (showcase blocks)+ * - /packages/cli/templates/blocks/components/ChatDictationButton/ (block examples)*/import type {UseSpeechRecognitionReturn} from './useSpeechRecognition';diff --git a/packages/core/src/Chat/XDSChatLayout.tsx b/packages/core/src/Chat/XDSChatLayout.tsxindex 2dfe248b04..d56ea43710 100644--- a/packages/core/src/Chat/XDSChatLayout.tsx+++ b/packages/core/src/Chat/XDSChatLayout.tsx@@ -13,7 +13,7 @@* SYNC: When modified, update these files to stay in sync:* - /packages/core/src/Chat/index.ts (exports)* - /apps/storybook/stories/ChatLayout.stories.tsx- * - /packages/cli/templates/blocks/components/Chat/ (showcase blocks)+ * - /packages/cli/templates/blocks/components/ChatLayout/ (block examples)*/import {@@ -92,8 +92,6 @@ export interface XDSChatLayoutProps {*/scrollRef?: React.RefObject<HTMLElement | null>;--/** StyleX overrides. */xstyle?: StyleXStyles;/** CSS class name(s) appended to the root element. */@@ -223,7 +221,6 @@ const styles = stylex.create({dockInnerSpacious: {maxWidth: 800,},-});// =============================================================================@@ -246,7 +243,6 @@ function hasVisibleContent(children: ReactNode): boolean {// Sub-components// =============================================================================-// =============================================================================// Component// =============================================================================@@ -292,8 +288,6 @@ export function XDSChatLayout({/>);--// --- Content ref callback for message list ---const setContentRef = useCallback((el: HTMLElement | null) => {(contentRef as React.MutableRefObject<HTMLElement | null>).current = el;diff --git a/packages/core/src/Chat/XDSChatLayoutScrollButton.tsx b/packages/core/src/Chat/XDSChatLayoutScrollButton.tsxindex ca7fe05648..e5eef57030 100644--- a/packages/core/src/Chat/XDSChatLayoutScrollButton.tsx+++ b/packages/core/src/Chat/XDSChatLayoutScrollButton.tsx@@ -11,7 +11,7 @@** SYNC: When modified, update:* - /packages/core/src/Chat/index.ts (exports)- * - /packages/cli/templates/blocks/components/Chat/ (showcase blocks)+ * - /packages/cli/templates/blocks/components/ChatLayoutScrollButton/ (block examples)*/import * as stylex from '@stylexjs/stylex';diff --git a/packages/core/src/Chat/XDSChatMessage.tsx b/packages/core/src/Chat/XDSChatMessage.tsxindex d3df2855ad..f8498975ae 100644--- a/packages/core/src/Chat/XDSChatMessage.tsx+++ b/packages/core/src/Chat/XDSChatMessage.tsx@@ -14,7 +14,7 @@* SYNC: When modified, update these files to stay in sync:* - /packages/core/src/Chat/index.ts (exports)* - /apps/storybook/stories/Chat.stories.tsx- * - /packages/cli/templates/blocks/components/Chat/ (showcase blocks)+ * - /packages/cli/templates/blocks/components/ChatMessage/ (block examples)*/import {type ReactNode, useMemo, useId} from 'react';@@ -236,7 +236,9 @@ export function XDSChatMessage({<div {...stylex.props(styles.contentColumn, columnAlignment)}>{hasName && (- <div id={nameId} {...stylex.props(styles.name)}>{name}</div>+ <div id={nameId} {...stylex.props(styles.name)}>+ {name}+ </div>)}<div@@ -248,9 +250,7 @@ export function XDSChatMessage({{children}</div>- {metadata != null && !isSystem && (- <div>{metadata}</div>- )}+ {metadata != null && !isSystem && <div>{metadata}</div>}</div></article></XDSChatMessageContext.Provider>diff --git a/packages/core/src/Chat/XDSChatMessageBubble.tsx b/packages/core/src/Chat/XDSChatMessageBubble.tsxindex 33f705784a..5cdccdbc27 100644--- a/packages/core/src/Chat/XDSChatMessageBubble.tsx+++ b/packages/core/src/Chat/XDSChatMessageBubble.tsx@@ -20,7 +20,7 @@* SYNC: When modified, update these files to stay in sync:* - /packages/core/src/Chat/index.ts (exports)* - /apps/storybook/stories/Chat.stories.tsx- * - /packages/cli/templates/blocks/components/Chat/ (showcase blocks)+ * - /packages/cli/templates/blocks/components/ChatMessageBubble/ (block examples)*/import type {ReactNode} from 'react';diff --git a/packages/core/src/Chat/XDSChatMessageList.tsx b/packages/core/src/Chat/XDSChatMessageList.tsxindex 72c5c5025b..e716d83dd8 100644--- a/packages/core/src/Chat/XDSChatMessageList.tsx+++ b/packages/core/src/Chat/XDSChatMessageList.tsx@@ -17,7 +17,7 @@* SYNC: When modified, update these files to stay in sync:* - /packages/core/src/Chat/index.ts (exports)* - /apps/storybook/stories/Chat.stories.tsx- * - /packages/cli/templates/blocks/components/Chat/ (showcase blocks)+ * - /packages/cli/templates/blocks/components/ChatMessageList/ (block examples)*/import {diff --git a/packages/core/src/Chat/XDSChatPastedTextToken.tsx b/packages/core/src/Chat/XDSChatPastedTextToken.tsxindex b7b2274e20..55bc827783 100644--- a/packages/core/src/Chat/XDSChatPastedTextToken.tsx+++ b/packages/core/src/Chat/XDSChatPastedTextToken.tsx@@ -11,7 +11,6 @@** SYNC: When modified, update:* - /packages/core/src/Chat/index.ts (exports)- * - /packages/cli/templates/blocks/components/Chat/ (showcase blocks)*/import * as stylex from '@stylexjs/stylex';@@ -76,13 +75,9 @@ const styles = stylex.create({function formatLabel(text: string): string {const lines = text.split('\n').length;const chars = text.length;- return lines > 1- ? `${lines} lines, ${chars} chars`- : `${chars} chars`;+ return lines > 1 ? `${lines} lines, ${chars} chars` : `${chars} chars`;}--// =============================================================================// Component// =============================================================================@@ -93,7 +88,6 @@ export function XDSChatPastedTextToken({}: XDSChatPastedTextTokenProps) {const label = formatLabel(text);-const cardContent = (<div {...stylex.props(styles.preview)}><div {...stylex.props(styles.previewText)}>{text}</div>diff --git a/packages/core/src/Chat/XDSChatSystemMessage.tsx b/packages/core/src/Chat/XDSChatSystemMessage.tsxindex f5bc35ff82..93bb23e8e5 100644--- a/packages/core/src/Chat/XDSChatSystemMessage.tsx+++ b/packages/core/src/Chat/XDSChatSystemMessage.tsx@@ -14,7 +14,7 @@* SYNC: When modified, update these files to stay in sync:* - /packages/core/src/Chat/index.ts (exports)* - /apps/storybook/stories/Chat.stories.tsx- * - /packages/cli/templates/blocks/components/Chat/ (showcase blocks)+ * - /packages/cli/templates/blocks/components/ChatSystemMessage/ (block examples)*/import {type ReactNode} from 'react';diff --git a/packages/core/src/Chat/XDSChatTokenizedText.tsx b/packages/core/src/Chat/XDSChatTokenizedText.tsxindex 86a27ed50e..3d2827bb01 100644--- a/packages/core/src/Chat/XDSChatTokenizedText.tsx+++ b/packages/core/src/Chat/XDSChatTokenizedText.tsx@@ -12,7 +12,7 @@** SYNC: When modified, update:* - /packages/core/src/Chat/index.ts- * - /packages/cli/templates/blocks/components/Chat/ (showcase blocks)+ * - /packages/cli/templates/blocks/components/ChatTokenizedText/ (block examples)*/import type {ReactNode} from 'react';