{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "card-brief-editor-document-1",
  "type": "registry:block",
  "title": "Document",
  "description": "Workspace card from the overtrue/ui workspace examples. Editable source, scoped styles, and demo interactions.",
  "categories": [
    "cards",
    "workspace"
  ],
  "registryDependencies": [
    "https://ui.overtrue.xyz/r/overtrue-card-foundation.json"
  ],
  "files": [
    {
      "path": "src/blocks/registry/brief-editor-document-1.tsx",
      "type": "registry:component",
      "target": "components/overtrue/blocks/brief-editor-document-1.tsx",
      "content": "\"use client\";\nimport { BlockFrame } from \"./runtime/blocks/frame\";\nimport \"./runtime/cards.css\";\n// Extracted from src/components/overtrue/scenes/content-workbench.tsx:421.\nimport { useState } from \"react\";\nimport { WorkspaceEditor } from \"./runtime/components/overtrue/workspace/plugins\";\nimport { SceneCard, Pill } from \"./runtime/components/overtrue/scenes/shared\";\nconst initialBrief =\n  \"<h2>Visitor experience — review brief</h2><p>Help first-time visitors find the right exhibition without asking for directions.</p><h3>What we need to decide</h3><ul><li>Choose one of the three entrance concepts.</li><li>Confirm the language and hierarchy for directional signs.</li><li>Agree on the next visitor testing session.</li></ul>\";\nfunction CardExample() {\n  const [title, setTitle] = useState(\"Visitor experience — review brief\");\n  const [html, setHtml] = useState(initialBrief);\n  const [saved] = useState({ title, html: initialBrief });\n  const [status, setStatus] = useState(\"\");\n  const dirty = title !== saved.title || html !== saved.html;\n\n  return (\n    <>\n      <div className=\"overtrue-block-content\" data-workspace-page=\"wysiwyg\">\n        <SceneCard title=\"Document\">\n          <div className=\"scene-form\">\n            <label>\n              Document title\n              <input\n                value={title}\n                required\n                onChange={(e) => {\n                  setTitle(e.target.value);\n                  setStatus(\"\");\n                }}\n              />\n            </label>\n            <WorkspaceEditor\n              id=\"project-brief-editor\"\n              defaultValue={initialBrief}\n              onChange={(value) => {\n                setHtml(value);\n                setStatus(\"\");\n              }}\n            />\n            <div className=\"scene-toolbar\">\n              <span role=\"status\">\n                {status || (dirty ? \"Unsaved changes\" : \"All changes saved\")}\n              </span>\n              <Pill>Draft</Pill>\n            </div>\n          </div>\n        </SceneCard>\n      </div>\n    </>\n  );\n}\n\nexport default function Block() { return <BlockFrame><CardExample /></BlockFrame>; }\n"
    }
  ],
  "docs": "Documentation: https://ui.overtrue.xyz/blocks/brief-editor-document-1. Includes the shared card foundation and hosted demo imagery. Replace sample data and navigation with your application data."
}
