{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "block-chat",
  "type": "registry:block",
  "title": "Chat",
  "description": "Team chat on a raised page: channels and people in a narrow column, then the open thread grouped by day and sender, with a shared file, a quoted reply, reactions and the composer.",
  "dependencies": [
    "@remixicon/react@^4.9.0"
  ],
  "registryDependencies": [
    "https://wideset.co/r/app-shell.json",
    "https://wideset.co/r/avatar.json",
    "https://wideset.co/r/block-styles.json",
    "https://wideset.co/r/breadcrumbs.json",
    "https://wideset.co/r/button.json",
    "https://wideset.co/r/chip.json",
    "https://wideset.co/r/divider.json",
    "https://wideset.co/r/dropdown-menu.json",
    "https://wideset.co/r/file-item.json",
    "https://wideset.co/r/icon-button.json",
    "https://wideset.co/r/list-item.json",
    "https://wideset.co/r/sidebar.json",
    "https://wideset.co/r/text-input.json",
    "https://wideset.co/r/tooltip.json",
    "https://wideset.co/r/utils.json"
  ],
  "files": [
    {
      "path": "src/blocks/chat/brand-mark.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/chat/brand-mark.tsx",
      "content": "'use client';\n\nimport { cn } from '@/lib/wideset/utils';\n\nconst TILE =\n  'M0 16C0 8.45753 0 4.68629 2.34315 2.34315C4.68629 0 8.45753 0 16 0C23.5425 0 27.3137 0 29.6569 2.34315C32 4.68629 32 8.45753 32 16C32 23.5425 32 27.3137 29.6569 29.6569C27.3137 32 23.5425 32 16 32C8.45753 32 4.68629 32 2.34315 29.6569C0 27.3137 0 23.5425 0 16Z';\n\n/**\n * Orbit's mark: a planet and its ring on the inverse tile, so it inverts in dark mode. It takes\n * the size of its place (32px in a sidebar, 36px in a larger switcher). Decorative beside the\n * product's name; give it a `label` when it stands alone.\n */\nexport function BrandMark({ className, label }: { className?: string; label?: string }) {\n  return (\n    <svg\n      viewBox=\"0 0 32 32\"\n      role={label ? 'img' : undefined}\n      aria-label={label}\n      aria-hidden={label ? undefined : true}\n      className={cn('size-ws-14 shrink-0', className)}\n    >\n      <path d={TILE} className=\"fill-(--ws-static-fill-inverse-background)\" />\n      <ellipse\n        cx=\"16\"\n        cy=\"16\"\n        rx=\"10.5\"\n        ry=\"4\"\n        transform=\"rotate(-28 16 16)\"\n        strokeWidth=\"1.75\"\n        className=\"fill-none stroke-(--ws-static-text-inverse-strong)\"\n      />\n      <circle cx=\"16\" cy=\"16\" r=\"4.75\" className=\"fill-(--ws-static-text-inverse-strong)\" />\n    </svg>\n  );\n}\n"
    },
    {
      "path": "src/blocks/chat/column.ts",
      "type": "registry:file",
      "target": "blocks/wideset/chat/column.ts",
      "content": "/**\n * The column of the open conversation: its head, the thread and the composer share these edges,\n * so the name sits over the messages. In a wide window it stops growing and centres in the pane.\n */\nexport const COLUMN = 'px-ws-12 mx-auto w-full max-w-[60rem]';\n"
    },
    {
      "path": "src/blocks/chat/composer.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/chat/composer.tsx",
      "content": "'use client';\n\n// TODO(custom): chat composer (text and actions in one field frame); Textarea has no ghost preset and no slot for actions inside its frame.\nimport { type RemixiconComponentType, RiAttachment2, RiEmotionLine } from '@remixicon/react';\nimport { Button } from '@/components/ui/wideset/button/Button';\nimport { IconButton } from '@/components/ui/wideset/button/IconButton';\nimport { Tooltip } from '@/components/ui/wideset/tooltip/Tooltip';\nimport { type FormEvent, type KeyboardEvent, useRef, useState } from 'react';\n\n/** A quiet tool in the composer, named by its label and a tooltip. */\nfunction Tool({ icon, label }: { icon: RemixiconComponentType; label: string }) {\n  return (\n    <Tooltip size=\"sm\">\n      <Tooltip.Trigger asChild>\n        <IconButton icon={icon} variant=\"secondary\" preset=\"ghost\" size=\"sm\" aria-label={label} />\n      </Tooltip.Trigger>\n      <Tooltip.Content className=\"ws-block-utility\" side=\"top\">\n        <Tooltip.Label>{label}</Tooltip.Label>\n      </Tooltip.Content>\n    </Tooltip>\n  );\n}\n\ntype ComposerProps = {\n  /** Where the message goes, for the placeholder: \"#halcyon-renewal\", \"Jonas Weber\". */\n  to: string;\n  onSend: (text: string) => void;\n};\n\n/**\n * Where a message is written: the text, what to add to it, and Send, the page's one filled\n * button, in one frame drawn as a Wideset field. It grows with the text up to a few lines, then\n * scrolls. Enter sends; Shift + Enter starts a new line.\n */\nexport function Composer({ to, onSend }: ComposerProps) {\n  const [draft, setDraft] = useState('');\n  const field = useRef<HTMLTextAreaElement>(null);\n\n  const send = (event: FormEvent | KeyboardEvent) => {\n    event.preventDefault();\n    const text = draft.trim();\n    // Nothing to send yet: put the cursor where the message goes.\n    if (!text) return field.current?.focus();\n    onSend(text);\n    setDraft('');\n  };\n\n  return (\n    <form\n      onSubmit={send}\n      aria-label={`Message ${to}`}\n      className=\"bg-ws-static-highlight-base border-ws-dynamic-secondary-default rounded-ws-container-sm hover:not-has-[textarea:focus]:border-ws-dynamic-secondary-hover has-[textarea:focus]:border-ws-dynamic-primary-strong-default has-[textarea:focus]:shadow-ws-forms-active flex flex-col border\"\n    >\n      <textarea\n        ref={field}\n        aria-label=\"Message\"\n        placeholder={`Message ${to}`}\n        value={draft}\n        onChange={(event) => setDraft(event.target.value)}\n        onKeyDown={(event) => {\n          // Shift + Enter keeps the browser's new line; Enter that confirms an IME word is not a send.\n          if (event.key === 'Enter' && !event.shiftKey && !event.nativeEvent.isComposing) {\n            send(event);\n          }\n        }}\n        className=\"typography-body-md text-ws-static-strong placeholder:text-ws-static-subtle px-ws-9 pt-ws-7 pb-ws-3 min-h-ws-18 max-h-ws-28 block field-sizing-content w-full resize-none bg-transparent outline-hidden\"\n      />\n      <div className=\"gap-ws-5 px-ws-5 pb-ws-5 flex items-center justify-between\">\n        <div className=\"gap-ws-2 flex\">\n          <Tool icon={RiAttachment2} label=\"Attach a file\" />\n          <Tool icon={RiEmotionLine} label=\"Add an emoji\" />\n        </div>\n        <Button type=\"submit\" size=\"sm\">\n          Send\n        </Button>\n      </div>\n    </form>\n  );\n}\n"
    },
    {
      "path": "src/blocks/chat/conversation-header.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/chat/conversation-header.tsx",
      "content": "'use client';\n\nimport {\n  type RemixiconComponentType,\n  RiHashtag,\n  RiLogoutBoxRLine,\n  RiMoreLine,\n  RiNotificationLine,\n  RiNotificationOffLine,\n  RiPhoneLine,\n  RiPushpinLine,\n  RiVidiconLine,\n} from '@remixicon/react';\nimport { Avatar } from '@/components/ui/wideset/avatar/Avatar';\nimport { cn } from '@/lib/wideset/utils';\nimport { DropdownMenu } from '@/components/ui/wideset/dropdown/DropdownMenu';\nimport { IconButton } from '@/components/ui/wideset/button/IconButton';\nimport { ListItem } from '@/components/ui/wideset/list-item/ListItem';\nimport { Tooltip } from '@/components/ui/wideset/tooltip/Tooltip';\nimport type { ReactNode } from 'react';\n\nimport { COLUMN } from './column';\nimport type { Conversation } from './data';\nimport { PersonAvatar } from './person-avatar';\n\nconst ghost = { variant: 'secondary', preset: 'ghost', size: 'sm' } as const;\n\n/** Names a header button on hover and focus; the button keeps its own `aria-label`. */\nfunction Hint({ label, children }: { label: string; children: ReactNode }) {\n  return (\n    <Tooltip size=\"sm\">\n      <Tooltip.Trigger asChild>{children}</Tooltip.Trigger>\n      <Tooltip.Content className=\"ws-block-utility\" side=\"bottom\">\n        <Tooltip.Label>{label}</Tooltip.Label>\n      </Tooltip.Content>\n    </Tooltip>\n  );\n}\n\nfunction MenuItem({ icon: Icon, label }: { icon: RemixiconComponentType; label: string }) {\n  return (\n    <>\n      <ListItem.Prefix>\n        <Icon className=\"size-ws-9\" />\n      </ListItem.Prefix>\n      <ListItem.Content>\n        <ListItem.Label>{label}</ListItem.Label>\n      </ListItem.Content>\n    </>\n  );\n}\n\ntype ConversationHeaderProps = {\n  conversation: Conversation;\n  /** The id of the conversation's name, which labels the whole pane. */\n  titleId: string;\n  onToggleMute: () => void;\n};\n\n/**\n * The head of the open conversation: what it is and who is in it on the left; calling and the\n * rest (mute, pin, leave) on the right, as quiet icon buttons. A channel shows its sign, its\n * topic and its members' faces; a direct message shows the person, their presence and their role.\n */\nexport function ConversationHeader({\n  conversation,\n  titleId,\n  onToggleMute,\n}: ConversationHeaderProps) {\n  const { kind, name, topic, members, muted } = conversation;\n  const person = members[0];\n  return (\n    <header className=\"h-ws-20 border-ws-static-subtle shrink-0 border-b\">\n      <div className={cn(COLUMN, 'gap-ws-9 flex h-full items-center')}>\n        <div className=\"gap-ws-7 flex min-w-0 flex-1 items-center\">\n          {kind === 'direct' && (\n            <PersonAvatar name={person.name} initials={person.initials} status={person.status} />\n          )}\n          <div className=\"flex min-w-0 flex-col\">\n            <h1\n              id={titleId}\n              className=\"gap-ws-2 typography-label-strong-md text-ws-static-strong flex items-center\"\n            >\n              {kind === 'channel' && (\n                <RiHashtag aria-hidden className=\"size-ws-9 text-ws-static-subtle shrink-0\" />\n              )}\n              <span className=\"truncate\">{name}</span>\n              {muted && (\n                <RiNotificationOffLine\n                  role=\"img\"\n                  aria-label=\"Muted\"\n                  className=\"size-ws-9 ml-ws-3 text-ws-static-subtle shrink-0\"\n                />\n              )}\n            </h1>\n            <p className=\"typography-caption-md text-ws-static-subtle truncate\">\n              {kind === 'channel' ? topic : person.role}\n            </p>\n          </div>\n        </div>\n\n        {kind === 'channel' && (\n          <Avatar.Group size=\"sm\" aria-label=\"Members\" role=\"group\" className=\"w-fit shrink-0\">\n            {members.map((member) => (\n              <PersonAvatar\n                key={member.name}\n                name={member.name}\n                initials={member.initials}\n                color={member.color}\n                alt={member.name}\n                aria-label={member.name}\n              />\n            ))}\n          </Avatar.Group>\n        )}\n\n        <div className=\"gap-ws-3 flex shrink-0 items-center\">\n          <Hint label=\"Start a call\">\n            <IconButton {...ghost} icon={RiPhoneLine} aria-label=\"Start a call\" />\n          </Hint>\n          <Hint label=\"Start a video call\">\n            <IconButton {...ghost} icon={RiVidiconLine} aria-label=\"Start a video call\" />\n          </Hint>\n          <DropdownMenu>\n            <Hint label=\"More actions\">\n              <DropdownMenu.Trigger asChild>\n                <IconButton {...ghost} icon={RiMoreLine} aria-label=\"More actions\" />\n              </DropdownMenu.Trigger>\n            </Hint>\n            <DropdownMenu.Content align=\"end\" className=\"ws-block-utility w-[14rem]\">\n              <DropdownMenu.Item onSelect={onToggleMute}>\n                <MenuItem\n                  icon={muted ? RiNotificationLine : RiNotificationOffLine}\n                  label={muted ? 'Unmute' : 'Mute'}\n                />\n              </DropdownMenu.Item>\n              <DropdownMenu.Item>\n                <MenuItem icon={RiPushpinLine} label=\"Pin\" />\n              </DropdownMenu.Item>\n              {kind === 'channel' && (\n                <>\n                  <DropdownMenu.Separator />\n                  <DropdownMenu.Item variant=\"danger\">\n                    <MenuItem icon={RiLogoutBoxRLine} label=\"Leave channel\" />\n                  </DropdownMenu.Item>\n                </>\n              )}\n            </DropdownMenu.Content>\n          </DropdownMenu>\n        </div>\n      </div>\n    </header>\n  );\n}\n"
    },
    {
      "path": "src/blocks/chat/conversation-list.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/chat/conversation-list.tsx",
      "content": "'use client';\n\nimport { useId } from 'react';\n\nimport { ConversationRow } from './conversation-row';\nimport type { Conversation } from './data';\n\nconst GROUPS = [\n  { kind: 'channel', label: 'Channels' },\n  { kind: 'direct', label: 'Direct messages' },\n] as const;\n\ntype ConversationListProps = {\n  conversations: Conversation[];\n  selectedId: string;\n  onSelect: (id: string) => void;\n};\n\n/** A titled group of conversations, labelled the way the sidebar labels a group of pages. */\nfunction Group({\n  label,\n  conversations,\n  selectedId,\n  onSelect,\n}: ConversationListProps & { label: string }) {\n  const id = useId();\n  return (\n    <section aria-labelledby={id} className=\"gap-ws-2 flex flex-col\">\n      <h2 id={id} className=\"px-ws-5 py-ws-3 typography-caption-strong-md text-ws-static-subtle\">\n        {label}\n      </h2>\n      <ul className=\"flex flex-col\">\n        {conversations.map((conversation) => (\n          <li key={conversation.id}>\n            <ConversationRow\n              conversation={conversation}\n              selected={conversation.id === selectedId}\n              onSelect={() => onSelect(conversation.id)}\n            />\n          </li>\n        ))}\n      </ul>\n    </section>\n  );\n}\n\n/**\n * The narrow column of conversations: channels, then direct messages with each person's\n * presence. It keeps its width and scrolls on its own beside the open conversation.\n */\nexport function ConversationList({ conversations, selectedId, onSelect }: ConversationListProps) {\n  return (\n    <nav\n      aria-label=\"Conversations\"\n      className=\"border-ws-static-subtle gap-ws-9 px-ws-5 py-ws-7 ws-scrollbar flex w-[15rem] shrink-0 flex-col overflow-y-auto border-r\"\n    >\n      {GROUPS.map(({ kind, label }) => (\n        <Group\n          key={kind}\n          label={label}\n          conversations={conversations.filter((conversation) => conversation.kind === kind)}\n          selectedId={selectedId}\n          onSelect={onSelect}\n        />\n      ))}\n    </nav>\n  );\n}\n"
    },
    {
      "path": "src/blocks/chat/conversation-row.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/chat/conversation-row.tsx",
      "content": "'use client';\n\n// TODO(custom): chat list row (channel sign or avatar with presence, name, muted sign, unread dot); Sidebar.Item is a navigation link and ListItem a menu row with a brand-tinted checked state.\nimport { RiHashtag, RiNotificationOffLine } from '@remixicon/react';\nimport { cn } from '@/lib/wideset/utils';\n\nimport type { Conversation } from './data';\nimport { PersonAvatar } from './person-avatar';\n\ntype ConversationRowProps = {\n  conversation: Conversation;\n  selected: boolean;\n  onSelect: () => void;\n};\n\n/**\n * One conversation in the list: one target across the whole row, the height of a sidebar item.\n * Unread is weight and a dot, never a number; a muted one shows the sign instead and stays\n * quiet. The open one takes the neutral selected fill.\n */\nexport function ConversationRow({ conversation, selected, onSelect }: ConversationRowProps) {\n  const { kind, name, members, muted } = conversation;\n  const unread = conversation.unread && !muted;\n  return (\n    <button\n      type=\"button\"\n      aria-current={selected || undefined}\n      onClick={onSelect}\n      className={cn(\n        'gap-ws-5 px-ws-5 h-ws-forms-sm rounded-ws-control-lg flex w-full items-center text-left',\n        'hover:bg-ws-static-alpha-subtle aria-[current=true]:bg-ws-dynamic-tertiary-alpha-strong-default',\n        'focus-visible:wds-focus-visible outline-ws-dynamic-primary-strong-default focus-visible:-outline-offset-2',\n      )}\n    >\n      {kind === 'channel' ? (\n        <span className=\"size-ws-11 flex shrink-0 items-center justify-center\">\n          <RiHashtag aria-hidden className=\"size-ws-9 text-ws-static-subtle\" />\n        </span>\n      ) : (\n        <PersonAvatar\n          size=\"xs\"\n          name={members[0].name}\n          initials={members[0].initials}\n          status={members[0].status}\n        />\n      )}\n      <span\n        className={cn(\n          'min-w-0 flex-1 truncate',\n          unread\n            ? 'typography-body-strong-md text-ws-static-strong'\n            : 'typography-body-md text-ws-static-base',\n        )}\n      >\n        {name}\n      </span>\n      {muted && (\n        <RiNotificationOffLine\n          role=\"img\"\n          aria-label=\"Muted\"\n          className=\"size-ws-8 text-ws-static-subtle shrink-0\"\n        />\n      )}\n      {unread && (\n        <span className=\"bg-ws-dynamic-primary-default rounded-ws-control-full size-ws-4 shrink-0\">\n          <span className=\"sr-only\">Unread</span>\n        </span>\n      )}\n    </button>\n  );\n}\n"
    },
    {
      "path": "src/blocks/chat/data.ts",
      "type": "registry:file",
      "target": "blocks/wideset/chat/data.ts",
      "content": "import {\n  type RemixiconComponentType,\n  RiBankCardLine,\n  RiChat3Fill,\n  RiChat3Line,\n  RiContactsBook3Line,\n  RiHandCoinLine,\n  RiHome5Line,\n  RiInbox2Line,\n  RiKey2Line,\n  RiLineChartLine,\n  RiPieChart2Line,\n  RiPlugLine,\n  RiQuestionLine,\n  RiSettings3Line,\n  RiTeamLine,\n} from '@remixicon/react';\n\n/*\n  The sales team's chat on Tuesday morning, 10 November 2026. The open channel is the Halcyon\n  Freight renewal: Ingrid Solberg asked for a two-year price, 12 more seats from January and the\n  onboarding fee waived, and the quote has to reach her before her finance committee meets on\n  Thursday. The team settles the fee here; Maya sends the quote from her inbox.\n*/\n\n/** The product is Orbit; the workspace is Lumen Studio. */\nexport const product = { name: 'Orbit' };\nexport const workspace = { name: 'Lumen Studio', initials: 'LS' };\nexport const account = { name: 'Maya Okafor', email: 'maya@lumenstudio.co', initials: 'MO' };\n\n/** The sample is frozen at this moment (local time). */\nexport const NOW = '2026-11-10T09:12';\n\nexport type NavLink = {\n  id: string;\n  label: string;\n  icon: RemixiconComponentType;\n  /** The icon while the page is open (a line icon swaps for its fill). */\n  activeIcon?: RemixiconComponentType;\n};\n\nexport const mainLinks: NavLink[] = [\n  { id: 'home', label: 'Home', icon: RiHome5Line },\n  { id: 'inbox', label: 'Inbox', icon: RiInbox2Line },\n  { id: 'chat', label: 'Chat', icon: RiChat3Line, activeIcon: RiChat3Fill },\n  { id: 'customers', label: 'Customers', icon: RiContactsBook3Line },\n  { id: 'deals', label: 'Deals', icon: RiHandCoinLine },\n  { id: 'revenue', label: 'Revenue', icon: RiLineChartLine },\n  { id: 'reports', label: 'Reports', icon: RiPieChart2Line },\n];\n\nexport const settingsLinks: NavLink[] = [\n  { id: 'general', label: 'General', icon: RiSettings3Line },\n  { id: 'members', label: 'Members', icon: RiTeamLine },\n  { id: 'billing', label: 'Billing', icon: RiBankCardLine },\n  { id: 'integrations', label: 'Integrations', icon: RiPlugLine },\n  { id: 'api-keys', label: 'API keys', icon: RiKey2Line },\n];\n\nexport const helpLink: NavLink = { id: 'help', label: 'Help and support', icon: RiQuestionLine };\n\nexport type Person = {\n  name: string;\n  initials: string;\n  /** What they do, under their name in a direct message. */\n  role: string;\n  /** Presence: at their desk, or away. */\n  status: 'online' | 'unavailable';\n  /** The avatar's colour, pinned for the signed-in user as in the sidebar. */\n  color?: 'orange';\n};\n\nexport const me: Person = {\n  name: account.name,\n  initials: account.initials,\n  role: 'Head of Sales',\n  status: 'online',\n  color: 'orange',\n};\nconst jonas: Person = {\n  name: 'Jonas Weber',\n  initials: 'JW',\n  role: 'Account executive',\n  status: 'online',\n};\nconst priya: Person = {\n  name: 'Priya Raman',\n  initials: 'PR',\n  role: 'Deal desk lead',\n  status: 'online',\n};\nconst tom: Person = {\n  name: 'Tom Becker',\n  initials: 'TB',\n  role: 'Finance partner',\n  status: 'unavailable',\n};\nconst elena: Person = {\n  name: 'Elena Silva',\n  initials: 'ES',\n  role: 'Sales operations',\n  status: 'online',\n};\nconst daniel: Person = {\n  name: 'Daniel Reyes',\n  initials: 'DR',\n  role: 'Account executive',\n  status: 'online',\n};\nconst leo: Person = {\n  name: 'Leo Marchetti',\n  initials: 'LM',\n  role: 'Solutions engineer',\n  status: 'online',\n};\nconst nina: Person = {\n  name: 'Nina Alvarez',\n  initials: 'NA',\n  role: 'Account executive',\n  status: 'unavailable',\n};\n\n/** The reactions a message can take: Remix line icons, not emoji. */\nexport type ReactionKind = 'like' | 'done' | 'seen';\n\nexport type Reaction = {\n  kind: ReactionKind;\n  /** How many people reacted, the signed-in user included. */\n  count: number;\n  /** Whether the signed-in user is one of them. */\n  mine: boolean;\n};\n\nexport type Message = {\n  id: string;\n  author: Person;\n  /** Local date and time. */\n  at: string;\n  text: string;\n  /** A file shared with the message. */\n  file?: { name: string; size: string };\n  /** The earlier message this one answers. */\n  quote?: { author: Person; text: string };\n  reactions?: Reaction[];\n};\n\nexport type Conversation = {\n  id: string;\n  /** A channel's name, or the other person in a direct message. */\n  name: string;\n  /** Who is in it, the signed-in user included; a direct message is with `members[0]`. */\n  members: Person[];\n  kind: 'channel' | 'direct';\n  /** What the channel is for, under its name. */\n  topic?: string;\n  /** Oldest first. */\n  messages: Message[];\n  /** The first message that arrived since the last visit: the \"New messages\" line sits above it. */\n  newFrom?: string;\n  unread: boolean;\n  muted: boolean;\n};\n\nconst marginNote =\n  'Margin check for both scenarios. Waiving the fee costs us $1,800 once and keeps the two-year margin above the floor.';\n\nconst direct = (\n  person: Person,\n  messages: Message[],\n  flags: { newFrom?: string } = {},\n): Conversation => ({\n  id: person.name.split(' ')[0].toLowerCase(),\n  name: person.name,\n  members: [person, me],\n  kind: 'direct',\n  messages,\n  newFrom: flags.newFrom,\n  unread: Boolean(flags.newFrom),\n  muted: false,\n});\n\n/** Channels first, then direct messages, in the order of the list. */\nexport const conversations: Conversation[] = [\n  {\n    id: 'halcyon-renewal',\n    name: 'halcyon-renewal',\n    kind: 'channel',\n    topic: 'Halcyon Freight renewal: the quote goes out before Wednesday noon',\n    members: [jonas, priya, tom, elena, me],\n    newFrom: 'halcyon-6',\n    unread: false,\n    muted: false,\n    messages: [\n      {\n        id: 'halcyon-1',\n        author: jonas,\n        at: '2026-11-09T16:52',\n        text: 'Ingrid just asked whether we can waive the onboarding fee for the 12 new seats. Their dispatchers are already trained.',\n      },\n      {\n        id: 'halcyon-2',\n        author: jonas,\n        at: '2026-11-09T16:53',\n        text: 'Their finance committee meets on Thursday at 10:00, so the quote has to be with her by Wednesday noon.',\n      },\n      {\n        id: 'halcyon-3',\n        author: priya,\n        at: '2026-11-09T17:10',\n        text: 'The two-year price is approved at 8 percent under list. For the fee I need a margin check before I sign off.',\n        reactions: [{ kind: 'like', count: 2, mine: true }],\n      },\n      {\n        id: 'halcyon-4',\n        author: me,\n        at: '2026-11-09T17:24',\n        text: 'Thanks, Priya. I will build the quote on that price and leave the fee line open until you confirm.',\n      },\n      {\n        id: 'halcyon-5',\n        author: tom,\n        at: '2026-11-10T08:31',\n        text: marginNote,\n        file: { name: 'halcyon-renewal-margin.xlsx', size: '48 KB' },\n        reactions: [\n          { kind: 'like', count: 3, mine: false },\n          { kind: 'seen', count: 1, mine: false },\n        ],\n      },\n      {\n        id: 'halcyon-6',\n        author: priya,\n        at: '2026-11-10T08:58',\n        text: 'Approved on that basis. Maya, you can waive the fee.',\n        quote: { author: tom, text: marginNote },\n      },\n      {\n        id: 'halcyon-7',\n        author: jonas,\n        at: '2026-11-10T09:04',\n        text: 'Ingrid wrote again this morning. She is at her desk until noon if you want to walk her through it.',\n      },\n      {\n        id: 'halcyon-8',\n        author: jonas,\n        at: '2026-11-10T09:05',\n        text: 'Does the quote go out today?',\n      },\n    ],\n  },\n  {\n    id: 'deal-desk',\n    name: 'deal-desk',\n    kind: 'channel',\n    topic: 'Discounts, terms and approvals',\n    members: [priya, tom, daniel, me],\n    newFrom: 'desk-4',\n    unread: true,\n    muted: false,\n    messages: [\n      {\n        id: 'desk-1',\n        author: daniel,\n        at: '2026-11-09T15:12',\n        text: 'Marlow & Finch want eight more seats for their Lisbon office on the renewal form. Same discount?',\n      },\n      {\n        id: 'desk-2',\n        author: priya,\n        at: '2026-11-09T15:40',\n        text: 'Same 10 percent, as long as they sign before the end of the month.',\n        reactions: [{ kind: 'done', count: 1, mine: false }],\n      },\n      {\n        id: 'desk-3',\n        author: priya,\n        at: '2026-11-10T08:20',\n        text: 'Two approvals are waiting on me this morning. Both go out before lunch.',\n      },\n      {\n        id: 'desk-4',\n        author: tom,\n        at: '2026-11-10T08:44',\n        text: 'A reminder for this week: any discount above 15 percent needs a margin check from me before it goes out.',\n      },\n    ],\n  },\n  {\n    id: 'sales-team',\n    name: 'sales-team',\n    kind: 'channel',\n    topic: 'Everyone in sales',\n    members: [jonas, priya, elena, daniel, leo, nina, me],\n    unread: false,\n    muted: false,\n    messages: [\n      {\n        id: 'team-1',\n        author: elena,\n        at: '2026-11-09T10:05',\n        text: 'The forecast call moves to 2:00 PM on Wednesday. The link stays the same.',\n        reactions: [{ kind: 'seen', count: 5, mine: true }],\n      },\n      {\n        id: 'team-2',\n        author: leo,\n        at: '2026-11-10T07:48',\n        text: 'Kestrel Analytics confirmed five people for the demo on Thursday. I will bring the sandbox with their sample data.',\n      },\n    ],\n  },\n  {\n    id: 'q4-forecast',\n    name: 'q4-forecast',\n    kind: 'channel',\n    topic: 'Where the quarter stands, updated on Mondays',\n    members: [elena, nina, me],\n    unread: false,\n    muted: true,\n    messages: [\n      {\n        id: 'forecast-1',\n        author: nina,\n        at: '2026-11-09T09:30',\n        text: 'Commit is at 82 percent of the target with seven weeks to go.',\n      },\n      {\n        id: 'forecast-2',\n        author: elena,\n        at: '2026-11-09T09:41',\n        text: 'Best case reaches 96 percent if Halcyon Freight and Northwind Health both close this month.',\n      },\n    ],\n  },\n  direct(jonas, [\n    {\n      id: 'jonas-1',\n      author: jonas,\n      at: '2026-11-10T08:50',\n      text: 'Can you take the Halcyon call if Ingrid wants one? I am with Atlas Robotics until 11:00.',\n    },\n    { id: 'jonas-2', author: me, at: '2026-11-10T08:52', text: 'Yes, my morning is free.' },\n  ]),\n  direct(\n    priya,\n    [\n      {\n        id: 'priya-1',\n        author: me,\n        at: '2026-11-10T08:36',\n        text: 'Thank you for turning the two-year price around so quickly.',\n      },\n      {\n        id: 'priya-2',\n        author: priya,\n        at: '2026-11-10T09:01',\n        text: 'The fee waiver is approved as well. The details are in the channel.',\n      },\n    ],\n    { newFrom: 'priya-2' },\n  ),\n  direct(tom, [\n    {\n      id: 'tom-1',\n      author: me,\n      at: '2026-11-09T17:26',\n      text: 'Could you run the Halcyon margin with and without the onboarding fee?',\n    },\n    {\n      id: 'tom-2',\n      author: tom,\n      at: '2026-11-09T17:41',\n      text: 'On it. You will have both first thing tomorrow.',\n    },\n  ]),\n  direct(elena, [\n    {\n      id: 'elena-1',\n      author: elena,\n      at: '2026-11-06T16:15',\n      text: 'Thank you for covering the Tidewater Energy walkthrough on Tuesday.',\n    },\n  ]),\n  direct(nina, [\n    {\n      id: 'nina-1',\n      author: nina,\n      at: '2026-11-06T17:02',\n      text: 'I am back on Thursday. Leo has my accounts until then.',\n    },\n  ]),\n];\n"
    },
    {
      "path": "src/blocks/chat/format.ts",
      "type": "registry:file",
      "target": "blocks/wideset/chat/format.ts",
      "content": "import { NOW } from './data';\n\n// One locale for the whole screen; swap it for the user's.\nconst LOCALE = 'en-US';\nconst DAY = 24 * 60 * 60_000;\n\nconst time = new Intl.DateTimeFormat(LOCALE, { hour: 'numeric', minute: '2-digit' });\nconst fullDay = new Intl.DateTimeFormat(LOCALE, { weekday: 'long', month: 'long', day: 'numeric' });\nconst dateTime = new Intl.DateTimeFormat(LOCALE, { dateStyle: 'medium', timeStyle: 'short' });\n\nconst startOfDay = (value: Date) =>\n  new Date(value.getFullYear(), value.getMonth(), value.getDate()).getTime();\n\n/** The calendar day of a local date and time: what the thread is grouped by. */\nexport const dayOf = (iso: string) => iso.slice(0, 10);\n\n/** The day over a group of messages: \"Today\", \"Yesterday\", \"Friday, November 6\". */\nexport function formatDay(iso: string) {\n  const days = Math.round((startOfDay(new Date(NOW)) - startOfDay(new Date(iso))) / DAY);\n  if (days === 0) return 'Today';\n  return days === 1 ? 'Yesterday' : fullDay.format(new Date(iso));\n}\n\n/** When a message was sent: the day is on the line above it, so the time is enough. */\nexport const formatTime = (iso: string) => time.format(new Date(iso));\n\n/** The exact moment, for the `title` beside a short time. */\nexport const formatDateTime = (iso: string) => dateTime.format(new Date(iso));\n"
    },
    {
      "path": "src/blocks/chat/index.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/chat/index.tsx",
      "content": "'use client';\n\nimport '@/styles/wideset-blocks.css';\n\nimport { RiSideBarLine } from '@remixicon/react';\nimport { AppShell } from '@/components/ui/wideset/app-shell/AppShell';\nimport { Breadcrumbs } from '@/components/ui/wideset/breadcrumbs/Breadcrumbs';\nimport { cn } from '@/lib/wideset/utils';\nimport { IconButton } from '@/components/ui/wideset/button/IconButton';\nimport { useId, useState } from 'react';\n\nimport { COLUMN } from './column';\nimport { Composer } from './composer';\nimport { ConversationHeader } from './conversation-header';\nimport { ConversationList } from './conversation-list';\nimport {\n  type Conversation,\n  conversations as initialConversations,\n  me,\n  NOW,\n  type Reaction,\n  type ReactionKind,\n} from './data';\nimport { ChatSidebar } from './sidebar';\nimport { Thread } from './thread';\n\n/** Adds the signed-in user's reaction, or takes it back; a reaction nobody gives goes away. */\nconst toggleReaction = (reactions: Reaction[] = [], kind: ReactionKind) =>\n  reactions.some((reaction) => reaction.kind === kind)\n    ? reactions\n        .map((reaction) =>\n          reaction.kind === kind\n            ? { kind, mine: !reaction.mine, count: reaction.count + (reaction.mine ? -1 : 1) }\n            : reaction,\n        )\n        .filter((reaction) => reaction.count > 0)\n    : [...reactions, { kind, count: 1, mine: true }];\n\n/**\n * Chat (Inset direction): the team's conversations on the raised page beside the workspace\n * sidebar. A narrow column of channels and people, then the open conversation: its head, the\n * thread and the composer. Only the thread scrolls; the card and the window never do.\n */\nexport default function Chat() {\n  const sidebarId = useId();\n  const titleId = useId();\n  const [collapsed, setCollapsed] = useState(false);\n  const [items, setItems] = useState(initialConversations);\n  const [selectedId, setSelectedId] = useState(initialConversations[0].id);\n  const selected = items.find((item) => item.id === selectedId)!;\n\n  const update = (id: string, change: (conversation: Conversation) => Partial<Conversation>) =>\n    setItems((current) =>\n      current.map((item) => (item.id === id ? { ...item, ...change(item) } : item)),\n    );\n\n  /** Opening a conversation reads it; its \"New messages\" line stays until something is sent. */\n  const select = (id: string) => {\n    setSelectedId(id);\n    update(id, () => ({ unread: false }));\n  };\n\n  const send = (text: string) =>\n    update(selectedId, ({ messages }) => ({\n      messages: [...messages, { id: `sent-${messages.length}`, author: me, at: NOW, text }],\n      newFrom: undefined,\n    }));\n\n  const react = (messageId: string, kind: ReactionKind) =>\n    update(selectedId, ({ messages }) => ({\n      messages: messages.map((message) =>\n        message.id === messageId\n          ? { ...message, reactions: toggleReaction(message.reactions, kind) }\n          : message,\n      ),\n    }));\n\n  return (\n    <AppShell className=\"ws-block-utility\" direction=\"inset\">\n      <ChatSidebar id={sidebarId} collapsed={collapsed} onCollapsedChange={setCollapsed} />\n      <AppShell.Main>\n        <div className=\"h-ws-18 border-ws-static-base flex shrink-0 items-center border-b\">\n          {/* The bar belongs to the surround: it runs edge to edge. The sidebar's toggle is pulled\n              left so its glyph, not its box, sits 20px from the edge; the crumbs follow it. */}\n          <div className=\"gap-ws-5 px-ws-11 flex w-full items-center\">\n            <IconButton\n              icon={RiSideBarLine}\n              variant=\"secondary\"\n              preset=\"ghost\"\n              size=\"sm\"\n              iconClassName=\"text-ws-static-subtle size-ws-9\"\n              aria-label={collapsed ? 'Expand sidebar' : 'Collapse sidebar'}\n              aria-expanded={!collapsed}\n              aria-controls={sidebarId}\n              onClick={() => setCollapsed(!collapsed)}\n              className=\"-ml-ws-5\"\n            />\n            <Breadcrumbs separator=\"arrow\">\n              <Breadcrumbs.Item>Chat</Breadcrumbs.Item>\n            </Breadcrumbs>\n          </div>\n        </div>\n\n        {/* The two columns fill the card under the bar. */}\n        <div className=\"flex min-h-0 flex-1\">\n          <ConversationList conversations={items} selectedId={selectedId} onSelect={select} />\n          <section aria-labelledby={titleId} className=\"flex min-w-0 flex-1 flex-col\">\n            <ConversationHeader\n              conversation={selected}\n              titleId={titleId}\n              onToggleMute={() => update(selectedId, ({ muted }) => ({ muted: !muted }))}\n            />\n            <Thread\n              key={selectedId}\n              messages={selected.messages}\n              newFrom={selected.newFrom}\n              onReact={react}\n            />\n            <div className={cn(COLUMN, 'pb-ws-11 shrink-0')}>\n              <Composer\n                key={selectedId}\n                to={selected.kind === 'channel' ? `#${selected.name}` : selected.name}\n                onSend={send}\n              />\n            </div>\n          </section>\n        </div>\n      </AppShell.Main>\n    </AppShell>\n  );\n}\n"
    },
    {
      "path": "src/blocks/chat/message-group.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/chat/message-group.tsx",
      "content": "'use client';\n\n// TODO(custom): chat messages from one person (avatar, name, time, then each message with its quote, file and reactions); Wideset has no message or comment component.\nimport { RiThumbUpFill, RiThumbUpLine } from '@remixicon/react';\nimport { IconButton } from '@/components/ui/wideset/button/IconButton';\n\nimport type { Message, ReactionKind } from './data';\nimport { formatDateTime, formatTime } from './format';\nimport { MessageQuote } from './message-quote';\nimport { PersonAvatar } from './person-avatar';\nimport { Reactions } from './reactions';\nimport { SharedFile } from './shared-file';\n\ntype MessageGroupProps = {\n  /** Consecutive messages from one person, oldest first. */\n  messages: Message[];\n  onReact: (messageId: string, kind: ReactionKind) => void;\n};\n\n/**\n * What one person wrote in a row: the avatar, the name and the time once, then the messages\n * under them. Everyone's messages are rows on the page, the signed-in user's too: in a work tool\n * the name and the avatar tell them apart, not a coloured bubble. Each message can be liked from\n * a quiet button that shows on hover and on focus.\n */\nexport function MessageGroup({ messages, onReact }: MessageGroupProps) {\n  const [{ author, at }] = messages;\n  return (\n    <div className=\"gap-ws-7 flex\">\n      <PersonAvatar\n        name={author.name}\n        initials={author.initials}\n        color={author.color}\n        aria-hidden\n      />\n      <div className=\"flex min-w-0 flex-1 flex-col\">\n        <p className=\"gap-ws-5 flex items-baseline\">\n          <span className=\"typography-label-strong-sm text-ws-static-strong\">{author.name}</span>\n          <time\n            dateTime={at}\n            title={formatDateTime(at)}\n            className=\"typography-caption-md text-ws-static-subtle tabular-nums\"\n          >\n            {formatTime(at)}\n          </time>\n        </p>\n        <div className=\"gap-ws-3 flex flex-col\">\n          {messages.map((message) => {\n            const liked = message.reactions?.some(({ kind, mine }) => kind === 'like' && mine);\n            return (\n              // As wide as what it holds, plus room on the right for the like button beside it.\n              <div\n                key={message.id}\n                className=\"group pr-ws-15 relative flex w-fit max-w-full flex-col\"\n              >\n                {message.quote && <MessageQuote quote={message.quote} />}\n                <p className=\"typography-body-md text-ws-static-base max-w-[44rem] whitespace-pre-line\">\n                  {message.text}\n                </p>\n                {message.file && <SharedFile file={message.file} />}\n                {message.reactions && message.reactions.length > 0 && (\n                  <Reactions\n                    reactions={message.reactions}\n                    onToggle={(kind) => onReact(message.id, kind)}\n                  />\n                )}\n                <IconButton\n                  icon={liked ? RiThumbUpFill : RiThumbUpLine}\n                  variant=\"secondary\"\n                  preset=\"ghost\"\n                  size=\"xs\"\n                  aria-label=\"Like\"\n                  aria-pressed={Boolean(liked)}\n                  onClick={() => onReact(message.id, 'like')}\n                  className=\"right-ws-0 -top-ws-2 absolute opacity-0 group-hover:opacity-100 focus-visible:opacity-100\"\n                />\n              </div>\n            );\n          })}\n        </div>\n      </div>\n    </div>\n  );\n}\n"
    },
    {
      "path": "src/blocks/chat/message-quote.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/chat/message-quote.tsx",
      "content": "'use client';\n\n// TODO(custom): quoted message (a line down the side, the author, the first lines); Wideset has no quote or reply-preview component.\nimport type { Message } from './data';\n\n/**\n * The earlier message a reply answers, over the reply: quieter than the reply itself and cut\n * after two lines, since the whole of it is further up the thread.\n */\nexport function MessageQuote({ quote }: { quote: NonNullable<Message['quote']> }) {\n  return (\n    <blockquote className=\"border-ws-static-base pl-ws-7 my-ws-2 flex max-w-[40rem] flex-col border-l-2\">\n      <cite className=\"typography-caption-strong-md text-ws-static-base not-italic\">\n        {quote.author.name}\n      </cite>\n      <p className=\"typography-body-md text-ws-static-subtle line-clamp-2\">{quote.text}</p>\n    </blockquote>\n  );\n}\n"
    },
    {
      "path": "src/blocks/chat/people.assets.ts",
      "type": "registry:file",
      "target": "blocks/wideset/chat/people.assets.ts",
      "content": "// Portraits of the sample people as small JPEG data URLs (a block ships only .ts and .tsx).\n// Exported from the Wideset Core Figma file by people.cjs: do not edit by hand.\n\n/** A person’s photo by name. People who are not here show their initials. */\nexport const PHOTOS: Record<string, string | undefined> = {\n  'Maya Okafor':\n    'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4gHYSUNDX1BST0ZJTEUAAQEAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADb/2wBDAAQDAwQDAwQEBAQFBQQFBwsHBwYGBw4KCggLEA4RERAOEA8SFBoWEhMYEw8QFh8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Ck7EEbGuW640MzborlygIUlKVfmND9IHmPL6V1fJQyk9zWJ0duXGWwtIU2tJCge+akY2S9DhlPx98hZ2DVmVFHHXsfYZ/9k=',\n};\n"
    },
    {
      "path": "src/blocks/chat/person-avatar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/chat/person-avatar.tsx",
      "content": "'use client';\n\nimport { Avatar } from '@/components/ui/wideset/avatar/Avatar';\nimport { type AvatarColor } from '@/components/ui/wideset/avatar/Avatar.colors';\nimport { type AvatarProps } from '@/components/ui/wideset/avatar/Avatar.types';\n\nimport { PHOTOS } from './people.assets';\n\ntype PersonAvatarProps = Pick<\n  AvatarProps,\n  'size' | 'shape' | 'status' | 'className' | 'style' | 'title' | 'aria-hidden' | 'aria-label'\n> & {\n  /** The person's full name: the key their photo is filed under. */\n  name: string;\n  initials: string;\n  /** The colour of the initials. A photo takes none. */\n  color?: AvatarColor;\n  /** Empty beside the person's name (the default); their name when the avatar stands alone. */\n  alt?: string;\n};\n\n/**\n * A person's avatar: their photo when they have one, their initials when not. The choice lives\n * here so every place the block draws a person mixes the two the same way. The rest of the props\n * go to the `Avatar`, so it also sits in an `Avatar.Group`.\n */\nexport function PersonAvatar({ name, initials, color, alt = '', ...avatar }: PersonAvatarProps) {\n  const photo = PHOTOS[name];\n  return photo ? (\n    <Avatar src={photo} alt={alt} initials={initials} {...avatar} />\n  ) : (\n    <Avatar initials={initials} color={color} {...avatar} />\n  );\n}\n"
    },
    {
      "path": "src/blocks/chat/reactions.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/chat/reactions.tsx",
      "content": "'use client';\n\nimport {\n  type RemixiconComponentType,\n  RiCheckLine,\n  RiEyeLine,\n  RiThumbUpLine,\n} from '@remixicon/react';\nimport { Chip } from '@/components/ui/wideset/chip/Chip';\n\nimport type { Reaction, ReactionKind } from './data';\n\n/** Each reaction's icon and what it says. */\nexport const REACTIONS: Record<ReactionKind, { icon: RemixiconComponentType; label: string }> = {\n  like: { icon: RiThumbUpLine, label: 'Like' },\n  done: { icon: RiCheckLine, label: 'Done' },\n  seen: { icon: RiEyeLine, label: 'Seen' },\n};\n\ntype ReactionsProps = { reactions: Reaction[]; onToggle: (kind: ReactionKind) => void };\n\n/**\n * The reactions under a message: neutral chips, an icon and how many. The ones the\n * signed-in user gave are filled, the rest outlined; a click adds or takes back their own.\n */\nexport function Reactions({ reactions, onToggle }: ReactionsProps) {\n  return (\n    <div className=\"gap-ws-4 pt-ws-4 flex flex-wrap\">\n      {reactions.map(({ kind, count, mine }) => (\n        <Chip key={kind} variant=\"secondary\" style={mine ? 'filled' : 'border'}>\n          <Chip.Action\n            aria-pressed={mine}\n            aria-label={`${REACTIONS[kind].label}, ${count}`}\n            onClick={() => onToggle(kind)}\n          >\n            <Chip.Icon icon={REACTIONS[kind].icon} />\n            <Chip.Label className=\"tabular-nums\">{count}</Chip.Label>\n          </Chip.Action>\n        </Chip>\n      ))}\n    </div>\n  );\n}\n"
    },
    {
      "path": "src/blocks/chat/shared-file.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/chat/shared-file.tsx",
      "content": "'use client';\n\n// TODO(custom): a file shared in a message, with its download; FileItem is an upload row (a grey fill or no frame, a remove button, no slot for another action).\nimport { RiDownloadLine } from '@remixicon/react';\nimport { FileItem } from '@/components/ui/wideset/file-upload/FileItem';\nimport { IconButton } from '@/components/ui/wideset/button/IconButton';\n\nimport type { Message } from './data';\n\n/**\n * A file in the thread: Wideset's file row for what it is and how big, in a bordered frame like\n * every box on the white page, with the one thing to do with it beside it.\n */\nexport function SharedFile({ file }: { file: NonNullable<Message['file']> }) {\n  return (\n    <div className=\"border-ws-static-base rounded-ws-container-sm gap-ws-5 py-ws-5 pr-ws-5 pl-ws-7 my-ws-2 flex w-[22rem] max-w-full items-center border\">\n      <FileItem variant=\"uncontained\" className=\"min-w-0 flex-1\">\n        <FileItem.Thumbnail name={file.name} />\n        <FileItem.Title>{file.name}</FileItem.Title>\n        <FileItem.Description>{file.size}</FileItem.Description>\n      </FileItem>\n      <IconButton\n        icon={RiDownloadLine}\n        variant=\"secondary\"\n        preset=\"ghost\"\n        size=\"sm\"\n        aria-label={`Download ${file.name}`}\n      />\n    </div>\n  );\n}\n"
    },
    {
      "path": "src/blocks/chat/sidebar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/chat/sidebar.tsx",
      "content": "'use client';\n\n// TODO(custom): workspace switcher and account menu are composed by hand.\nimport {\n  RiAddLine,\n  RiArrowDownSLine,\n  RiLogoutBoxRLine,\n  RiSearchLine,\n  RiSettingsLine,\n} from '@remixicon/react';\nimport { Divider } from '@/components/ui/wideset/divider/Divider';\nimport { DropdownMenu } from '@/components/ui/wideset/dropdown/DropdownMenu';\nimport { IconButton } from '@/components/ui/wideset/button/IconButton';\nimport { ListItem } from '@/components/ui/wideset/list-item/ListItem';\nimport { Sidebar } from '@/components/ui/wideset/sidebar/Sidebar';\nimport { type SidebarProps } from '@/components/ui/wideset/sidebar/Sidebar.types';\nimport { TextInput } from '@/components/ui/wideset/text-input/TextInput';\nimport { useState } from 'react';\n\nimport { BrandMark } from './brand-mark';\nimport {\n  account,\n  helpLink,\n  mainLinks,\n  type NavLink,\n  product,\n  settingsLinks,\n  workspace,\n} from './data';\nimport { PersonAvatar } from './person-avatar';\n\n/**\n * The workspace sidebar: switcher, search, the app's pages, settings and the signed-in account.\n * Its toggle sits in the page bar, so the screen holds `collapsed` and passes it down; collapsed,\n * it keeps the mark, the page icons and the avatar.\n */\nexport function ChatSidebar(props: Pick<SidebarProps, 'id' | 'collapsed' | 'onCollapsedChange'>) {\n  const [active, setActive] = useState('chat');\n\n  const link = ({ id, label, icon, activeIcon }: NavLink) => (\n    <Sidebar.Item\n      key={id}\n      href={`#${id}`}\n      icon={active === id ? (activeIcon ?? icon) : icon}\n      label={label}\n      active={active === id}\n      onClick={() => setActive(id)}\n    />\n  );\n\n  const nav = (\n    <nav aria-label=\"Workspace\" className=\"gap-ws-9 flex flex-col\">\n      <div className=\"flex flex-col\">{mainLinks.map(link)}</div>\n      <Divider weight=\"thin\" />\n      <div role=\"group\" aria-labelledby=\"sidebar-settings\" className=\"gap-ws-2 flex flex-col\">\n        <Sidebar.SectionHeader id=\"sidebar-settings\">Settings</Sidebar.SectionHeader>\n        {settingsLinks.map(link)}\n      </div>\n    </nav>\n  );\n\n  return (\n    <Sidebar {...props}>\n      <Sidebar.Header>\n        <Sidebar.Expanded>\n          <div className=\"gap-ws-9 flex flex-col\">\n            <div className=\"gap-ws-7 pt-ws-3 pb-ws-7 flex items-center\">\n              <BrandMark className=\"size-ws-15\" />\n              <div className=\"flex min-w-0 flex-1 flex-col\">\n                <span className=\"typography-label-strong-sm text-ws-static-strong truncate\">\n                  {workspace.name}\n                </span>\n                <span className=\"typography-caption-md text-ws-static-subtle truncate\">\n                  {product.name}\n                </span>\n              </div>\n              <DropdownMenu>\n                <DropdownMenu.Trigger asChild>\n                  <IconButton\n                    icon={RiArrowDownSLine}\n                    variant=\"secondary\"\n                    preset=\"ghost\"\n                    size=\"xs\"\n                    aria-label=\"Switch workspace\"\n                    className=\"mr-ws-3\"\n                  />\n                </DropdownMenu.Trigger>\n                <DropdownMenu.Content className=\"ws-block-utility\" align=\"end\">\n                  <DropdownMenu.Item data-state=\"checked\">\n                    <ListItem.Content>\n                      <ListItem.Label>{workspace.name}</ListItem.Label>\n                    </ListItem.Content>\n                  </DropdownMenu.Item>\n                  <DropdownMenu.Separator />\n                  <DropdownMenu.Item>\n                    <ListItem.Prefix>\n                      <RiAddLine className=\"size-ws-9\" />\n                    </ListItem.Prefix>\n                    <ListItem.Content>\n                      <ListItem.Label>New workspace</ListItem.Label>\n                    </ListItem.Content>\n                  </DropdownMenu.Item>\n                </DropdownMenu.Content>\n              </DropdownMenu>\n            </div>\n            <TextInput size=\"sm\">\n              <TextInput.Prefix inner>\n                <TextInput.Icon icon={RiSearchLine} />\n              </TextInput.Prefix>\n              <TextInput.Input type=\"search\" placeholder=\"Search\" aria-label=\"Search\" />\n            </TextInput>\n          </div>\n        </Sidebar.Expanded>\n        <Sidebar.Collapsed>\n          <div className=\"pt-ws-3 pb-ws-7 flex justify-center\">\n            <BrandMark className=\"size-ws-15\" />\n          </div>\n        </Sidebar.Collapsed>\n      </Sidebar.Header>\n\n      {/* A section draws only the slot for the state it is in, so the pages go in both. */}\n      <Sidebar.Section scrollable>{nav}</Sidebar.Section>\n\n      <Sidebar.Footer>\n        <div className=\"gap-ws-9 flex flex-col\">\n          <div className=\"flex flex-col\">{link(helpLink)}</div>\n          {/* On the grey ground the line keeps the nav's inset: run edge to edge, it would stop\n              short of the page and read as broken. */}\n          <div className=\"border-ws-static-base pt-ws-5 border-t\">\n            <Sidebar.Expanded>\n              <DropdownMenu>\n                <DropdownMenu.Trigger asChild>\n                  <button\n                    type=\"button\"\n                    className=\"gap-ws-5 px-ws-5 py-ws-3 rounded-ws-control-lg hover:bg-ws-dynamic-tertiary-alpha-strong-default focus-visible:wds-focus-visible outline-ws-dynamic-primary-strong-default flex w-full items-center text-left\"\n                  >\n                    <PersonAvatar name={account.name} initials={account.initials} color=\"orange\" />\n                    <span className=\"flex min-w-0 flex-1 flex-col\">\n                      <span className=\"typography-label-strong-sm text-ws-static-base truncate\">\n                        {account.name}\n                      </span>\n                      <span className=\"typography-caption-md text-ws-static-subtle truncate\">\n                        {account.email}\n                      </span>\n                    </span>\n                    <RiArrowDownSLine\n                      aria-hidden=\"true\"\n                      className=\"size-ws-9 text-ws-static-strong\"\n                    />\n                  </button>\n                </DropdownMenu.Trigger>\n                <DropdownMenu.Content side=\"top\" align=\"start\" className=\"ws-block-utility w-[14rem]\">\n                  <DropdownMenu.Item>\n                    <ListItem.Prefix>\n                      <RiSettingsLine className=\"size-ws-9\" />\n                    </ListItem.Prefix>\n                    <ListItem.Content>\n                      <ListItem.Label>Account settings</ListItem.Label>\n                    </ListItem.Content>\n                  </DropdownMenu.Item>\n                  <DropdownMenu.Separator />\n                  <DropdownMenu.Item variant=\"danger\">\n                    <ListItem.Prefix>\n                      <RiLogoutBoxRLine className=\"size-ws-9\" />\n                    </ListItem.Prefix>\n                    <ListItem.Content>\n                      <ListItem.Label>Log out</ListItem.Label>\n                    </ListItem.Content>\n                  </DropdownMenu.Item>\n                </DropdownMenu.Content>\n              </DropdownMenu>\n            </Sidebar.Expanded>\n            <Sidebar.Collapsed>\n              <div className=\"flex justify-center\">\n                <PersonAvatar\n                  name={account.name}\n                  initials={account.initials}\n                  color=\"orange\"\n                  title={account.name}\n                  alt={account.name}\n                />\n              </div>\n            </Sidebar.Collapsed>\n          </div>\n        </div>\n      </Sidebar.Footer>\n    </Sidebar>\n  );\n}\n"
    },
    {
      "path": "src/blocks/chat/thread.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/chat/thread.tsx",
      "content": "'use client';\n\nimport { cn } from '@/lib/wideset/utils';\nimport { Divider } from '@/components/ui/wideset/divider/Divider';\nimport { useEffect, useRef } from 'react';\n\nimport { COLUMN } from './column';\nimport type { Message, ReactionKind } from './data';\nimport { dayOf, formatDay } from './format';\nimport { MessageGroup } from './message-group';\n\ntype Item =\n  | { type: 'day'; key: string; at: string }\n  | { type: 'new'; key: string }\n  | { type: 'group'; key: string; messages: Message[] };\n\n/**\n * The thread as it is drawn: a line for each new day, a line where the unread messages start,\n * and between the lines the messages, grouped while the same person keeps writing.\n */\nfunction toItems(messages: Message[], newFrom?: string) {\n  const items: Item[] = [];\n  messages.forEach((message, index) => {\n    const previous = messages[index - 1];\n    const newDay = !previous || dayOf(previous.at) !== dayOf(message.at);\n    const firstNew = message.id === newFrom;\n    if (newDay) items.push({ type: 'day', key: dayOf(message.at), at: message.at });\n    if (firstNew) items.push({ type: 'new', key: 'new' });\n    const last = items[items.length - 1];\n    if (last.type === 'group' && previous.author === message.author) last.messages.push(message);\n    else items.push({ type: 'group', key: message.id, messages: [message] });\n  });\n  return items;\n}\n\ntype ThreadProps = {\n  messages: Message[];\n  /** The first message that arrived since the last visit. */\n  newFrom?: string;\n  onReact: (messageId: string, kind: ReactionKind) => void;\n};\n\n/**\n * The messages of the open conversation, oldest first, resting on the composer: a short thread\n * leaves the space above it. It scrolls on its own and follows the newest message, on opening\n * and after sending.\n */\nexport function Thread({ messages, newFrom, onReact }: ThreadProps) {\n  const scroller = useRef<HTMLDivElement>(null);\n  useEffect(() => {\n    if (scroller.current) scroller.current.scrollTop = scroller.current.scrollHeight;\n  }, [messages.length]);\n\n  return (\n    <div ref={scroller} className=\"ws-scrollbar min-h-0 flex-1 overflow-y-auto\">\n      <ol\n        aria-label=\"Messages\"\n        className={cn(COLUMN, 'gap-ws-9 py-ws-9 flex min-h-full flex-col justify-end')}\n      >\n        {toItems(messages, newFrom).map((item) => (\n          <li key={item.key}>\n            {item.type === 'day' && (\n              <Divider weight=\"thin\" emphasis=\"subtle\" text={formatDay(item.at)} />\n            )}\n            {item.type === 'new' && <Divider weight=\"thin\" text=\"New messages\" textAlign=\"left\" />}\n            {item.type === 'group' && <MessageGroup messages={item.messages} onReact={onReact} />}\n          </li>\n        ))}\n      </ol>\n    </div>\n  );\n}\n"
    }
  ],
  "meta": {
    "version": "1.1.0",
    "commit": "a734f9f0"
  }
}
