{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "block-report-dialog",
  "type": "registry:block",
  "title": "Report dialog",
  "description": "Reporting a comment from the feed in a dialog: the comment quoted, a reason, optional details, blocking its author, then thanks and what happens next in place, and the comment hidden with Show anyway.",
  "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/checkbox.json",
    "https://wideset.co/r/divider.json",
    "https://wideset.co/r/dropdown-menu.json",
    "https://wideset.co/r/form-field.json",
    "https://wideset.co/r/icon-button.json",
    "https://wideset.co/r/list-item.json",
    "https://wideset.co/r/modal.json",
    "https://wideset.co/r/radio-button.json",
    "https://wideset.co/r/sidebar.json",
    "https://wideset.co/r/text-input.json",
    "https://wideset.co/r/textarea.json",
    "https://wideset.co/r/toast.json",
    "https://wideset.co/r/utils.json"
  ],
  "files": [
    {
      "path": "src/blocks/report-dialog/brand-mark.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/report-dialog/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/report-dialog/comment-thread.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/report-dialog/comment-thread.tsx",
      "content": "'use client';\n\n// TODO(custom): comment thread (author, time, text, a menu each); no Comment component in Wideset.\nimport type { Comment } from './data';\nimport { formatDateTime, formatWhen } from './format';\nimport { HiddenNotice } from './hidden-notice';\nimport { ItemMenu } from './item-menu';\nimport { PersonAvatar } from './person-avatar';\n\ntype CommentThreadProps = {\n  comments: Comment[];\n  /** What the signed-in user has reported: folded away for them unless shown. */\n  reported: string[];\n  shown: string[];\n  onShow: (id: string) => void;\n  onReport: (comment: Comment) => void;\n  onCopyLink: (id: string) => void;\n};\n\n/**\n * A post's comments, oldest first: who wrote, when, and what they said, one size below the post\n * (a 24px avatar) so the thread reads as belonging to it. Each comment's menu shows on hover or\n * focus, so a quiet thread is not a column of ⋯. A comment the reader reported folds into one\n * line until they choose to see it.\n */\nexport function CommentThread({\n  comments,\n  reported,\n  shown,\n  onShow,\n  onReport,\n  onCopyLink,\n}: CommentThreadProps) {\n  return (\n    <ol aria-label=\"Comments\" className=\"gap-ws-7 flex flex-col\">\n      {comments.map((comment) => {\n        const isReported = reported.includes(comment.id);\n        const owner = `${comment.author.name}’s comment`;\n\n        if (isReported && !shown.includes(comment.id)) {\n          return (\n            <li key={comment.id}>\n              <HiddenNotice gutterClassName=\"w-ws-12\" onShow={() => onShow(comment.id)}>\n                {`You reported ${owner}.`}\n              </HiddenNotice>\n            </li>\n          );\n        }\n\n        return (\n          <li key={comment.id} id={comment.id} className=\"group/comment gap-ws-5 flex\">\n            <PersonAvatar\n              size=\"sm\"\n              name={comment.author.name}\n              initials={comment.author.initials}\n              color={comment.author.color}\n              aria-hidden\n            />\n            <div className=\"gap-ws-1 flex min-w-0 flex-1 flex-col\">\n              <div className=\"gap-ws-5 flex items-center\">\n                <p className=\"gap-ws-5 flex min-w-0 flex-1 items-baseline\">\n                  <span className=\"typography-label-strong-sm text-ws-static-strong\">\n                    {comment.author.name}\n                  </span>\n                  <span className=\"typography-label-sm text-ws-static-subtle\">\n                    <time dateTime={comment.at} title={formatDateTime(comment.at)}>\n                      {formatWhen(comment.at)}\n                    </time>\n                    {isReported && ' · Reported by you'}\n                  </span>\n                </p>\n                <ItemMenu\n                  label={owner}\n                  onCopyLink={() => onCopyLink(comment.id)}\n                  onReport={() => onReport(comment)}\n                  className=\"opacity-0 group-focus-within/comment:opacity-100 group-hover/comment:opacity-100 data-[state=open]:opacity-100\"\n                />\n              </div>\n              <p className=\"typography-body-md text-ws-static-base\">{comment.text}</p>\n            </div>\n          </li>\n        );\n      })}\n    </ol>\n  );\n}\n"
    },
    {
      "path": "src/blocks/report-dialog/data.ts",
      "type": "registry:file",
      "target": "blocks/wideset/report-dialog/data.ts",
      "content": "import {\n  type RemixiconComponentType,\n  RiBankCardLine,\n  RiContactsBook3Line,\n  RiHandCoinLine,\n  RiHome5Line,\n  RiInbox2Line,\n  RiKey2Line,\n  RiLineChartLine,\n  RiNewspaperFill,\n  RiNewspaperLine,\n  RiPieChart2Line,\n  RiPlugLine,\n  RiQuestionLine,\n  RiSettings3Line,\n  RiTeamLine,\n} from '@remixicon/react';\n\n/*\n  Lumen Studio's feed on a Tuesday afternoon. Under Jonas's update about Juniper Legal, Leo has\n  posted a customer's personal mobile number for the whole workspace to see. Maya reports the\n  comment; the dialog is open on load.\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_AT = '2026-11-10T14:30';\nexport const NOW = new Date(NOW_AT);\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: 'feed', label: 'Feed', icon: RiNewspaperLine, activeIcon: RiNewspaperFill },\n  { id: 'inbox', label: 'Inbox', icon: RiInbox2Line },\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  role: string;\n  /** Pinned only for the signed-in user, to match the sidebar's account. */\n  color?: 'orange';\n};\n\nconst jonas: Person = { name: 'Jonas Weber', initials: 'JW', role: 'Account executive' };\nconst priya: Person = { name: 'Priya Raman', initials: 'PR', role: 'Account executive' };\nconst tom: Person = { name: 'Tom Becker', initials: 'TB', role: 'Sales engineer' };\nconst leo: Person = { name: 'Leo Marchetti', initials: 'LM', role: 'Sales development' };\nconst nina: Person = { name: 'Nina Alvarez', initials: 'NA', role: 'Customer success' };\nconst daniel: Person = { name: 'Daniel Reyes', initials: 'DR', role: 'Account executive' };\n\nexport type Comment = { id: string; author: Person; at: string; text: string };\n\nexport type Post = {\n  id: string;\n  author: Person;\n  /** Local date and time. */\n  at: string;\n  text: string;\n  /** Oldest first. */\n  comments: Comment[];\n};\n\n/** What can be reported: a post or one of its comments, with what the dialog quotes of it. */\nexport type Reportable = {\n  kind: 'post' | 'comment';\n  id: string;\n  author: Person;\n  at: string;\n  text: string;\n};\n\n/** Newest first. */\nexport const posts: Post[] = [\n  {\n    id: 'juniper-security',\n    author: jonas,\n    at: '2026-11-10T13:55',\n    text: 'Juniper Legal signed off on the security review this morning. Their partners have the order form and I expect a signature by Friday. Thanks to Priya for turning the questionnaire around in a day.',\n    comments: [\n      {\n        id: 'c1',\n        author: priya,\n        at: '2026-11-10T13:58',\n        text: 'Glad it helped. Their security lead said it was the quickest review they have had.',\n      },\n      {\n        id: 'c2',\n        author: tom,\n        at: '2026-11-10T14:04',\n        text: 'Does Friday still hold if they ask for changes to the DPA?',\n      },\n      {\n        id: 'c3',\n        author: leo,\n        at: '2026-11-10T14:12',\n        text: 'If the DPA stalls, their general counsel gave me her personal mobile: +1 415 555 0136. She said to call any time, evenings too.',\n      },\n    ],\n  },\n  {\n    id: 'tidewater-onboarding',\n    author: nina,\n    at: '2026-11-09T16:40',\n    text: 'Tidewater Energy finished onboarding two weeks early and all 60 seats are active. If you are talking to other energy companies, their procurement lead is happy to take a reference call.',\n    comments: [],\n  },\n  {\n    id: 'forecast-walkthrough',\n    author: daniel,\n    at: '2026-11-06T11:15',\n    text: 'I recorded a ten-minute walkthrough of the new forecast view for anyone running a demo this week. It covers the commit and best-case columns and how to filter by owner.',\n    comments: [],\n  },\n];\n\n/** The comment being reported when the page loads. */\nexport const REPORTED_ON_LOAD = 'c3';\n\n/** Why something is reported, in the order the dialog lists them. The last asks for details. */\nexport const REASONS = [\n  { value: 'spam', label: 'Spam' },\n  { value: 'harassment', label: 'Harassment' },\n  { value: 'sensitive', label: 'Sensitive information' },\n  { value: 'other', label: 'Something else' },\n] as const;\n\nexport type Reason = (typeof REASONS)[number]['value'];\n"
    },
    {
      "path": "src/blocks/report-dialog/feed-post.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/report-dialog/feed-post.tsx",
      "content": "'use client';\n\n// TODO(custom): feed post (author, time, text, a menu, comments); Wideset has no Post or feed item component.\nimport { useId } from 'react';\n\nimport { CommentThread } from './comment-thread';\nimport type { Comment, Post } from './data';\nimport { formatDateTime, formatWhen } from './format';\nimport { HiddenNotice } from './hidden-notice';\nimport { ItemMenu } from './item-menu';\nimport { PersonAvatar } from './person-avatar';\n\ntype FeedPostProps = {\n  post: Post;\n  /** Posts and comments the signed-in user reported: folded away for them unless shown. */\n  reported: string[];\n  shown: string[];\n  onShow: (id: string) => void;\n  onReport: (item: Post | Comment, kind: 'post' | 'comment') => void;\n  onCopyLink: (id: string) => void;\n};\n\n/**\n * One post in the feed, on the page's white with a line above it, never in a card. The avatar\n * holds a gutter and everything else hangs beside it: who and when with the menu on the first\n * line, the text, then the comments. A post the reader reported folds into one line, as a\n * comment does.\n */\nexport function FeedPost({ post, reported, shown, onShow, onReport, onCopyLink }: FeedPostProps) {\n  const titleId = useId();\n  const { author } = post;\n  const owner = `${author.name}’s post`;\n\n  if (reported.includes(post.id) && !shown.includes(post.id)) {\n    return (\n      <article aria-label={owner} className=\"border-ws-static-subtle py-ws-12 border-t\">\n        <HiddenNotice gutterClassName=\"w-ws-14\" onShow={() => onShow(post.id)}>\n          {`You reported ${owner}.`}\n        </HiddenNotice>\n      </article>\n    );\n  }\n\n  return (\n    <article\n      id={post.id}\n      aria-labelledby={titleId}\n      className=\"border-ws-static-subtle gap-ws-7 py-ws-12 flex border-t\"\n    >\n      <PersonAvatar\n        name={author.name}\n        initials={author.initials}\n        color={author.color}\n        aria-hidden\n      />\n      <div className=\"gap-ws-5 flex min-w-0 flex-1 flex-col\">\n        <header className=\"h-ws-14 gap-ws-5 flex items-center\">\n          <p\n            id={titleId}\n            className=\"typography-label-sm text-ws-static-subtle min-w-0 flex-1 truncate\"\n          >\n            <span className=\"typography-label-strong-sm text-ws-static-strong\">{author.name}</span>{' '}\n            {author.role}\n            {' · '}\n            <time dateTime={post.at} title={formatDateTime(post.at)}>\n              {formatWhen(post.at)}\n            </time>\n            {reported.includes(post.id) && ' · Reported by you'}\n          </p>\n          <ItemMenu\n            label={owner}\n            onCopyLink={() => onCopyLink(post.id)}\n            onReport={() => onReport(post, 'post')}\n          />\n        </header>\n        <p className=\"typography-body-md text-ws-static-base\">{post.text}</p>\n        {post.comments.length > 0 && (\n          <div className=\"pt-ws-5\">\n            <CommentThread\n              comments={post.comments}\n              reported={reported}\n              shown={shown}\n              onShow={onShow}\n              onReport={(comment) => onReport(comment, 'comment')}\n              onCopyLink={onCopyLink}\n            />\n          </div>\n        )}\n      </div>\n    </article>\n  );\n}\n"
    },
    {
      "path": "src/blocks/report-dialog/format.ts",
      "type": "registry:file",
      "target": "blocks/wideset/report-dialog/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 MINUTE = 60_000;\nconst DAY = 24 * 60 * MINUTE;\n\nconst relative = new Intl.RelativeTimeFormat(LOCALE, { numeric: 'auto' });\nconst day = new Intl.DateTimeFormat(LOCALE, { month: 'short', 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();\nconst capitalize = (text: string) => text.charAt(0).toUpperCase() + text.slice(1);\n\n/** How long ago, as a feed says it: \"Just now\", \"35 minutes ago\", \"Yesterday\", then \"Nov 6\". */\nexport function formatWhen(iso: string) {\n  const then = new Date(iso);\n  const minutes = Math.round((NOW.getTime() - then.getTime()) / MINUTE);\n  const days = Math.round((startOfDay(NOW) - startOfDay(then)) / DAY);\n  if (minutes < 1) return 'Just now';\n  if (minutes < 60) return relative.format(-minutes, 'minute');\n  if (days === 0) return relative.format(-Math.floor(minutes / 60), 'hour');\n  if (days === 1) return capitalize(relative.format(-1, 'day'));\n  return day.format(then);\n}\n\n/** The exact moment, for the `title` beside a relative time. */\nexport const formatDateTime = (iso: string) => dateTime.format(new Date(iso));\n"
    },
    {
      "path": "src/blocks/report-dialog/hidden-notice.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/report-dialog/hidden-notice.tsx",
      "content": "'use client';\n\n// TODO(custom): a reported item folded away for the reporter, with the way to see it; Wideset has no hidden-content placeholder.\nimport { RiEyeOffLine } from '@remixicon/react';\nimport { Button } from '@/components/ui/wideset/button/Button';\nimport { cn } from '@/lib/wideset/utils';\n\ntype HiddenNoticeProps = {\n  /** What it says in place of the item: `You reported Leo Marchetti’s comment.` */\n  children: string;\n  onShow: () => void;\n  /** The gutter the icon sits in, so it lines up with the avatars around it. */\n  gutterClassName: string;\n};\n\n/**\n * What a reporter sees where the item they reported was: an eye crossed out in the avatar's\n * gutter, one quiet sentence, and Show anyway. Grey and small, so the thread reads on past it.\n */\nexport function HiddenNotice({ children, onShow, gutterClassName }: HiddenNoticeProps) {\n  return (\n    <div className=\"gap-ws-5 flex items-center\">\n      <span className={cn('flex shrink-0 justify-center', gutterClassName)}>\n        <RiEyeOffLine aria-hidden=\"true\" className=\"size-ws-9 text-ws-static-subtle\" />\n      </span>\n      <p className=\"typography-body-md text-ws-static-subtle min-w-0\">\n        {children} It’s hidden for you.\n      </p>\n      <Button size=\"sm\" variant=\"secondary\" preset=\"ghost\" onClick={onShow} className=\"shrink-0\">\n        Show anyway\n      </Button>\n    </div>\n  );\n}\n"
    },
    {
      "path": "src/blocks/report-dialog/index.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/report-dialog/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 { ToastProvider, useToast } from '@/components/ui/wideset/toast/Toast.context';\nimport { useId, useState } from 'react';\n\nimport { posts, type Reportable, REPORTED_ON_LOAD } from './data';\nimport { FeedPost } from './feed-post';\nimport { ReportModal } from './report-modal';\nimport { FeedSidebar } from './sidebar';\n\n/** One column of the page: the header and the body share its edges. */\nconst COLUMN = 'px-ws-14 mx-auto w-full max-w-[80rem]';\n\nconst comments = posts.flatMap((post) => post.comments);\nconst onLoad = comments.find((comment) => comment.id === REPORTED_ON_LOAD);\n\n/** The page: the feed's posts in a reading column, under the toasts. */\nfunction Feed() {\n  const sidebarId = useId();\n  const { showToast } = useToast();\n  const [collapsed, setCollapsed] = useState(false);\n  const [item, setItem] = useState<Reportable | undefined>(\n    onLoad && { kind: 'comment', ...onLoad },\n  );\n  const [open, setOpen] = useState(true);\n  const [reported, setReported] = useState<string[]>([]);\n  const [shown, setShown] = useState<string[]>([]);\n\n  const copyLink = (id: string) => {\n    const { origin, pathname, search } = window.location;\n    // The toast says what happened: copied only once the clipboard took it.\n    Promise.resolve()\n      .then(() => navigator.clipboard.writeText(`${origin}${pathname}${search}#${id}`))\n      .then(\n        () => showToast({ content: 'Link copied' }),\n        () => showToast({ content: 'Couldn’t copy the link', status: 'error' }),\n      );\n  };\n\n  return (\n    <AppShell className=\"ws-block-utility\" direction=\"inset\">\n      <FeedSidebar 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>Feed</Breadcrumbs.Item>\n            </Breadcrumbs>\n          </div>\n        </div>\n\n        {/* The page scrolls inside the card, so the card's corners stay put. */}\n        <div className=\"ws-scrollbar min-h-0 flex-1 overflow-y-auto\">\n          <div className={cn(COLUMN, 'gap-ws-12 pt-ws-14 pb-ws-16 flex flex-col')}>\n            <header className=\"gap-ws-2 flex flex-col\">\n              <h1 className=\"typography-title-md text-ws-static-strong\">Feed</h1>\n              <p className=\"typography-body-md text-ws-static-subtle\">\n                What the team shares and what happened to deals.\n              </p>\n            </header>\n\n            {/* A reading column, not the page's width: a post is read, line after line. */}\n            <section aria-label=\"Updates\" className=\"flex max-w-[40rem] flex-col\">\n              {posts.map((post) => (\n                <FeedPost\n                  key={post.id}\n                  post={post}\n                  reported={reported}\n                  shown={shown}\n                  onShow={(id) => setShown((all) => [...all, id])}\n                  onReport={(target, kind) => {\n                    setItem({ kind, ...target });\n                    setOpen(true);\n                  }}\n                  onCopyLink={copyLink}\n                />\n              ))}\n            </section>\n          </div>\n        </div>\n      </AppShell.Main>\n\n      <ReportModal\n        item={item}\n        open={open}\n        onOpenChange={setOpen}\n        onSend={(target) => {\n          setReported((all) => [...all, target.id]);\n          setShown((all) => all.filter((id) => id !== target.id));\n        }}\n      />\n    </AppShell>\n  );\n}\n\n/**\n * Report dialog (panel over the Feed, Inset direction): reporting a teammate's comment that\n * shares a customer's personal phone number, open on load. Every post and comment has Report in\n * its ⋯ menu. Once sent, the dialog says thanks and what happens next in place, and the reported\n * comment folds away for the reporter, with Show anyway.\n */\nexport default function ReportDialogBlock() {\n  return (\n    <ToastProvider position=\"bottom-center\">\n      <Feed />\n    </ToastProvider>\n  );\n}\n"
    },
    {
      "path": "src/blocks/report-dialog/item-menu.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/report-dialog/item-menu.tsx",
      "content": "'use client';\n\nimport { RiFlagLine, RiLinkM, RiMoreFill } from '@remixicon/react';\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';\n\ntype ItemMenuProps = {\n  /** Names the button: `Leo Marchetti’s comment`. */\n  label: string;\n  onCopyLink: () => void;\n  onReport: () => void;\n  className?: string;\n};\n\n/**\n * What else a post or a comment can do, behind the ⋯ at the end of its first line: copy its link,\n * or report it. Report sits apart, under a line: it is the one that tells someone.\n */\nexport function ItemMenu({ label, onCopyLink, onReport, className }: ItemMenuProps) {\n  return (\n    <DropdownMenu>\n      <DropdownMenu.Trigger asChild>\n        <IconButton\n          icon={RiMoreFill}\n          size=\"xs\"\n          variant=\"secondary\"\n          preset=\"ghost\"\n          aria-label={`More actions for ${label}`}\n          className={cn('shrink-0', className)}\n        />\n      </DropdownMenu.Trigger>\n      <DropdownMenu.Content align=\"end\" className=\"ws-block-utility w-[13rem]\">\n        <DropdownMenu.Item onSelect={onCopyLink}>\n          <ListItem.Prefix>\n            <RiLinkM className=\"size-ws-9\" />\n          </ListItem.Prefix>\n          <ListItem.Content>\n            <ListItem.Label>Copy link</ListItem.Label>\n          </ListItem.Content>\n        </DropdownMenu.Item>\n        <DropdownMenu.Separator />\n        <DropdownMenu.Item onSelect={onReport}>\n          <ListItem.Prefix>\n            <RiFlagLine className=\"size-ws-9\" />\n          </ListItem.Prefix>\n          <ListItem.Content>\n            <ListItem.Label>Report</ListItem.Label>\n          </ListItem.Content>\n        </DropdownMenu.Item>\n      </DropdownMenu.Content>\n    </DropdownMenu>\n  );\n}\n"
    },
    {
      "path": "src/blocks/report-dialog/people.assets.ts",
      "type": "registry:file",
      "target": "blocks/wideset/report-dialog/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/2wBDAAQDAwQDAwQEBAQFBQQFBwsHBwYGBw4KCggLEA4RERAOEA8SFBoWEhMYEw8QFh8XGBsbHR0dERYgIh8cIhocHRz/2wBDAQUFBQcGBw0HBw0cEhASHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBz/wAARCABgAGADASIAAhEBAxEB/8QAHQAAAA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etSCd/KpGpH3PBxhLzakKQCk7EEbGuW640MzborlygIUlKVfmND9IHmPL6V1fJQyk9zWJ0duXGWwtIU2tJCge+akY2S9DhlPx98hZ2DVmVFHHXsfYZ/9k=',\n};\n"
    },
    {
      "path": "src/blocks/report-dialog/person-avatar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/report-dialog/person-avatar.tsx",
      "content": "'use client';\n\nimport type { AvatarProps } from '@/components/ui/wideset/avatar/Avatar.types';\nimport { Avatar } from '@/components/ui/wideset/avatar/Avatar';\n\nimport { PHOTOS } from './people.assets';\n\ntype PersonAvatarProps = Pick<\n  AvatarProps,\n  'size' | 'shape' | 'status' | 'color' | 'className' | '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  /** Leave empty beside the person's name; pass the name where the avatar stands alone. */\n  alt?: string;\n};\n\n/**\n * A person's avatar: their photo when the sample people have one, otherwise their initials in\n * their colour. A real product mixes the two, so every place the block draws a person asks here\n * and the choice is made once. The initials stay as the fallback if the image fails to load.\n */\nexport function PersonAvatar({ name, initials, color, alt = '', ...props }: PersonAvatarProps) {\n  const photo = PHOTOS[name];\n  return photo ? (\n    <Avatar src={photo} alt={alt} initials={initials} {...props} />\n  ) : (\n    <Avatar initials={initials} color={color} {...props} />\n  );\n}\n"
    },
    {
      "path": "src/blocks/report-dialog/quoted-item.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/report-dialog/quoted-item.tsx",
      "content": "'use client';\n\n// TODO(custom): quoted comment (a line down the side, the author and when, the first lines); Wideset has no quote component.\nimport type { Reportable } from './data';\nimport { formatDateTime, formatWhen } from './format';\n\n/**\n * What is being reported, quoted small at the top of the dialog so there is no doubt which one:\n * a line down the side, who wrote it and when, and its first three lines, quieter than the\n * dialog's own words.\n */\nexport function QuotedItem({ item }: { item: Reportable }) {\n  return (\n    <blockquote className=\"border-ws-static-base pl-ws-7 gap-ws-1 flex flex-col border-l-2\">\n      <p className=\"typography-caption-md text-ws-static-subtle\">\n        <cite className=\"typography-caption-strong-md text-ws-static-base not-italic\">\n          {item.author.name}\n        </cite>\n        {' · '}\n        <time dateTime={item.at} title={formatDateTime(item.at)}>\n          {formatWhen(item.at)}\n        </time>\n      </p>\n      <p className=\"typography-body-sm text-ws-static-subtle line-clamp-3\">{item.text}</p>\n    </blockquote>\n  );\n}\n"
    },
    {
      "path": "src/blocks/report-dialog/report-modal.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/report-dialog/report-modal.tsx",
      "content": "'use client';\n\nimport {\n  type RemixiconComponentType,\n  RiEyeOffLine,\n  RiForbidLine,\n  RiTimeLine,\n  RiUserUnfollowLine,\n} from '@remixicon/react';\nimport { Button } from '@/components/ui/wideset/button/Button';\nimport { Checkbox } from '@/components/ui/wideset/checkbox/Checkbox';\nimport { FormField } from '@/components/ui/wideset/form-field/FormField';\nimport { Modal } from '@/components/ui/wideset/modal/Modal';\nimport { RadioButton } from '@/components/ui/wideset/radio-button/RadioButton';\nimport { RadioButtonGroup } from '@/components/ui/wideset/radio-button/RadioButtonGroup';\nimport { Textarea } from '@/components/ui/wideset/textarea/Textarea';\nimport { type FormEvent, useEffect, useId, useRef, useState } from 'react';\n\nimport { type Reason, REASONS, type Reportable, workspace } from './data';\nimport { QuotedItem } from './quoted-item';\n\nexport type Report = { reason: Reason; details: string; block: boolean };\n\ntype ReportModalProps = {\n  /** What is reported; nothing renders without it. */\n  item?: Reportable;\n  open: boolean;\n  onOpenChange: (open: boolean) => void;\n  /** Sent: the page hides the item for the reporter at once, while the dialog says thanks. */\n  onSend: (item: Reportable, report: Report) => void;\n};\n\n/**\n * Reporting a post or a comment to the workspace's admins, in one dialog that says thanks in\n * place. A plain `Modal`: it is a short form, not a status.\n *\n * The item is quoted small at the top, so it is clear what is reported. Then the reason, one of\n * four, one line each; Send report waits for one. Details are optional, except for Something\n * else, where they are the reason, so sending without them stops with the reason under the field.\n * Blocking is offered beside it, with what it does, and stays off unless chosen. The dialog\n * takes the focus, not the first reason, so no reason looks picked before one is; Tab reaches them.\n */\nexport function ReportModal({ item, open, onOpenChange, onSend }: ReportModalProps) {\n  if (!item) return null;\n\n  return (\n    <Modal open={open} onOpenChange={onOpenChange}>\n      <Modal.Content\n        // Not a control, so it shows no ring (Popup's content does the same).\n        className=\"ws-block-utility outline-hidden\"\n        onOpenAutoFocus={(event) => {\n          event.preventDefault();\n          if (event.currentTarget instanceof HTMLElement) event.currentTarget.focus();\n        }}\n      >\n        {/* Inside the content, so every opening starts from an empty form. */}\n        <ReportFlow item={item} onSend={(report) => onSend(item, report)} />\n      </Modal.Content>\n    </Modal>\n  );\n}\n\nfunction ReportFlow({ item, onSend }: { item: Reportable; onSend: (report: Report) => void }) {\n  const [sent, setSent] = useState<Report>();\n\n  return sent ? (\n    <ReportSent item={item} report={sent} />\n  ) : (\n    <ReportForm\n      item={item}\n      onSend={(report) => {\n        setSent(report);\n        onSend(report);\n      }}\n    />\n  );\n}\n\nfunction ReportForm({ item, onSend }: { item: Reportable; onSend: (report: Report) => void }) {\n  const id = useId();\n  const details = useRef<HTMLTextAreaElement>(null);\n  const [reason, setReason] = useState<Reason>();\n  const [text, setText] = useState('');\n  const [block, setBlock] = useState(false);\n  const [error, setError] = useState<string>();\n  const detailsRequired = reason === 'other';\n\n  const submit = (event: FormEvent) => {\n    event.preventDefault();\n    if (!reason) return;\n    if (detailsRequired && !text.trim()) {\n      setError('Say in a few words what is wrong with it.');\n      details.current?.focus();\n      return;\n    }\n    onSend({ reason, details: text.trim(), block });\n  };\n\n  return (\n    <form onSubmit={submit} noValidate>\n      <Modal.Header>\n        <Modal.Title>Report this {item.kind}</Modal.Title>\n        <Modal.Description>\n          Reports go to the admins of {workspace.name}, not to the person you report.\n        </Modal.Description>\n      </Modal.Header>\n      <Modal.Body className=\"gap-ws-11 flex flex-col\">\n        <QuotedItem item={item} />\n\n        <FormField\n          label=\"Why are you reporting it?\"\n          id={`${id}-reason`}\n          WrapperComponent=\"fieldset\"\n        >\n          <RadioButtonGroup\n            aria-labelledby={`${id}-reason`}\n            value={reason ?? ''}\n            onValueChange={(value) => {\n              setReason(value as Reason);\n              setError(undefined);\n            }}\n          >\n            {REASONS.map((option) => (\n              <RadioButton key={option.value} value={option.value} label={option.label} />\n            ))}\n          </RadioButtonGroup>\n        </FormField>\n\n        <FormField\n          label=\"Details\"\n          htmlFor={`${id}-details`}\n          suffix={detailsRequired ? undefined : '(optional)'}\n          required={detailsRequired}\n          errorText={error}\n        >\n          <Textarea\n            ref={details}\n            id={`${id}-details`}\n            rows={3}\n            maxLength={500}\n            required={detailsRequired}\n            variant={error ? 'danger' : 'primary'}\n            placeholder=\"Anything that helps an admin understand it\"\n            value={text}\n            onChange={(event) => {\n              setText(event.target.value);\n              setError(undefined);\n            }}\n          />\n        </FormField>\n\n        <Checkbox\n          label={`Also block ${item.author.name}`}\n          description=\"They can’t mention you or message you. They aren’t told.\"\n          checked={block}\n          onCheckedChange={(checked) => setBlock(checked === true)}\n        />\n      </Modal.Body>\n      <Modal.Footer>\n        <Modal.Close asChild>\n          <Button variant=\"secondary\" preset=\"border\">\n            Cancel\n          </Button>\n        </Modal.Close>\n        <Button type=\"submit\" disabled={!reason}>\n          Send report\n        </Button>\n      </Modal.Footer>\n    </form>\n  );\n}\n\n/** One thing that happens next: a quiet icon and a sentence. */\nfunction Next({ icon: Icon, children }: { icon: RemixiconComponentType; children: string }) {\n  return (\n    <li className=\"gap-ws-7 flex items-start\">\n      <span className=\"h-ws-11 flex shrink-0 items-center\">\n        <Icon aria-hidden=\"true\" className=\"size-ws-9 text-ws-static-subtle\" />\n      </span>\n      <span className=\"typography-body-md text-ws-static-base\">{children}</span>\n    </li>\n  );\n}\n\n/**\n * The thanks, in the same dialog: what happens next in three or four plain lines, and Done, which\n * takes the focus from the form that was there.\n */\nfunction ReportSent({ item, report }: { item: Reportable; report: Report }) {\n  const done = useRef<HTMLButtonElement>(null);\n  const firstName = item.author.name.split(' ')[0];\n\n  useEffect(() => done.current?.focus(), []);\n\n  return (\n    <>\n      <Modal.Header>\n        <Modal.Title>Thanks for reporting it</Modal.Title>\n        <Modal.Description>Here is what happens next.</Modal.Description>\n      </Modal.Header>\n      <Modal.Body>\n        <ul className=\"gap-ws-7 flex flex-col\">\n          <Next icon={RiTimeLine}>\n            {`An admin at ${workspace.name} reviews it within a working day.`}\n          </Next>\n          <Next icon={RiUserUnfollowLine}>{`${firstName} isn’t told who reported it.`}</Next>\n          <Next icon={RiEyeOffLine}>\n            {`The ${item.kind} is hidden for you. You can still choose to see it.`}\n          </Next>\n          {report.block && (\n            <Next icon={RiForbidLine}>\n              {`You blocked ${item.author.name}. You can unblock them in Settings.`}\n            </Next>\n          )}\n        </ul>\n      </Modal.Body>\n      <Modal.Footer>\n        <Modal.Close asChild>\n          <Button ref={done}>Done</Button>\n        </Modal.Close>\n      </Modal.Footer>\n    </>\n  );\n}\n"
    },
    {
      "path": "src/blocks/report-dialog/sidebar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/report-dialog/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 FeedSidebar(props: Pick<SidebarProps, 'id' | 'collapsed' | 'onCollapsedChange'>) {\n  const [active, setActive] = useState('feed');\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"
    }
  ],
  "meta": {
    "version": "1.1.0",
    "commit": "a734f9f0"
  }
}
