{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "rich-text-editor-fixtures",
  "title": "Rich Text Editor — fixtures",
  "author": "ilinxa",
  "description": "Rich Text Editor plus the dummy-data fixtures used by the docs-site demo.",
  "registryDependencies": [
    "@ilinxa/rich-text-editor"
  ],
  "files": [
    {
      "path": "src/registry/components/data/rich-text-editor/dummy-data.ts",
      "content": "import type { RichTextValue } from \"./types\";\n\nexport const RICH_TEXT_DUMMY_RICH: RichTextValue = [\n  {\n    type: \"h1\",\n    children: [{ text: \"How sustainable cities are rethinking density\" }],\n  },\n  {\n    type: \"p\",\n    children: [\n      { text: \"Across Europe and the Americas, urban planners are \" },\n      { text: \"rewriting the rules\", bold: true },\n      {\n        text: \" — turning suburbs into 15-minute neighborhoods and waterfronts into thriving public spaces.\",\n      },\n    ],\n  },\n  {\n    type: \"h2\",\n    children: [{ text: \"What changed in 2025\" }],\n  },\n  {\n    type: \"p\",\n    children: [\n      {\n        text: \"Three major policy shifts reshaped how cities approach growth: zoning reform, transit-oriented development, and \",\n      },\n      { text: \"carbon-constrained budgets\", italic: true },\n      { text: \".\" },\n    ],\n  },\n  {\n    type: \"blockquote\",\n    children: [\n      {\n        text: \"We're no longer optimizing for cars — we're optimizing for the time people spend with their neighbors.\",\n      },\n    ],\n  },\n  {\n    type: \"h3\",\n    children: [{ text: \"Three ideas worth tracking\" }],\n  },\n  {\n    type: \"ul\",\n    listStyleType: \"disc\",\n    indent: 1,\n    children: [\n      { text: \"Mixed-use density at every transit stop\" },\n    ],\n  },\n  {\n    type: \"ul\",\n    listStyleType: \"disc\",\n    indent: 1,\n    children: [\n      { text: \"Streets reclaimed as plazas (the Barcelona model)\" },\n    ],\n  },\n  {\n    type: \"ul\",\n    listStyleType: \"disc\",\n    indent: 1,\n    children: [\n      { text: \"Carbon-budgeted permitting (the Helsinki model)\" },\n    ],\n  },\n  {\n    type: \"p\",\n    children: [\n      { text: \"For more, see \" },\n      {\n        type: \"a\",\n        url: \"https://example.com/sustainable-cities\",\n        children: [{ text: \"the full report\" }],\n      },\n      { text: \".\" },\n    ],\n  },\n  {\n    type: \"hr\",\n    children: [{ text: \"\" }],\n  },\n  {\n    type: \"p\",\n    children: [\n      { text: \"Run an experiment: \" },\n      { text: \"code-friendly\", code: true },\n      { text: \" variations of urban planning APIs.\" },\n    ],\n  },\n];\n\nexport const RICH_TEXT_DUMMY_SIMPLE: RichTextValue = [\n  { type: \"h2\", children: [{ text: \"Quick note\" }] },\n  {\n    type: \"p\",\n    children: [\n      { text: \"Sometimes you just need \" },\n      { text: \"a paragraph\", bold: true },\n      { text: \". This editor handles that.\" },\n    ],\n  },\n];\n\nexport const RICH_TEXT_DUMMY_EMPTY: RichTextValue = [\n  { type: \"p\", children: [{ text: \"\" }] },\n];\n\nexport const RICH_TEXT_DUMMY_TABLE: RichTextValue = [\n  { type: \"h3\", children: [{ text: \"Comparison\" }] },\n  {\n    type: \"table\",\n    children: [\n      {\n        type: \"tr\",\n        children: [\n          { type: \"th\", children: [{ type: \"p\", children: [{ text: \"Approach\" }] }] },\n          { type: \"th\", children: [{ type: \"p\", children: [{ text: \"Strength\" }] }] },\n          { type: \"th\", children: [{ type: \"p\", children: [{ text: \"Weakness\" }] }] },\n        ],\n      },\n      {\n        type: \"tr\",\n        children: [\n          { type: \"td\", children: [{ type: \"p\", children: [{ text: \"Markdown\" }] }] },\n          { type: \"td\", children: [{ type: \"p\", children: [{ text: \"Portable\" }] }] },\n          { type: \"td\", children: [{ type: \"p\", children: [{ text: \"Plain\" }] }] },\n        ],\n      },\n      {\n        type: \"tr\",\n        children: [\n          { type: \"td\", children: [{ type: \"p\", children: [{ text: \"Plate JSON\" }] }] },\n          { type: \"td\", children: [{ type: \"p\", children: [{ text: \"Rich, queryable\" }] }] },\n          { type: \"td\", children: [{ type: \"p\", children: [{ text: \"Format-locked\" }] }] },\n        ],\n      },\n    ],\n  },\n];\n\nexport const RICH_TEXT_DUMMY_CODE: RichTextValue = [\n  { type: \"h3\", children: [{ text: \"Sample function\" }] },\n  {\n    type: \"code_block\",\n    lang: \"javascript\",\n    children: [\n      {\n        type: \"code_line\",\n        children: [{ text: \"function reverse(s) {\" }],\n      },\n      {\n        type: \"code_line\",\n        children: [{ text: \"  return s.split('').reverse().join('');\" }],\n      },\n      {\n        type: \"code_line\",\n        children: [{ text: \"}\" }],\n      },\n    ],\n  },\n  { type: \"p\", children: [{ text: \"\" }] },\n  { type: \"h3\", children: [{ text: \"TypeScript with syntax colors\" }] },\n  {\n    type: \"code_block\",\n    lang: \"typescript\",\n    children: [\n      {\n        type: \"code_line\",\n        children: [\n          { text: \"interface User { id: string; name: string; admin?: boolean }\" },\n        ],\n      },\n      {\n        type: \"code_line\",\n        children: [{ text: \"\" }],\n      },\n      {\n        type: \"code_line\",\n        children: [\n          { text: \"function greet(user: User): string {\" },\n        ],\n      },\n      {\n        type: \"code_line\",\n        children: [\n          { text: \"  return `Hello, ${user.name}` + (user.admin ? ' (admin)' : '');\" },\n        ],\n      },\n      {\n        type: \"code_line\",\n        children: [{ text: \"}\" }],\n      },\n    ],\n  },\n  { type: \"p\", children: [{ text: \"\" }] },\n  { type: \"h3\", children: [{ text: \"Bash\" }] },\n  {\n    type: \"code_block\",\n    lang: \"bash\",\n    children: [\n      {\n        type: \"code_line\",\n        children: [{ text: \"# Install + start\" }],\n      },\n      {\n        type: \"code_line\",\n        children: [{ text: \"pnpm install\" }],\n      },\n      {\n        type: \"code_line\",\n        children: [{ text: \"pnpm dev --port 3010\" }],\n      },\n    ],\n  },\n];\n\nexport const RICH_TEXT_DUMMY_IMAGE: RichTextValue = [\n  { type: \"h2\", children: [{ text: \"Resizable image with caption\" }] },\n  {\n    type: \"p\",\n    children: [\n      {\n        text: \"Hover over the image to reveal the right-edge resize handle. Drag to resize. Click the caption to edit it.\",\n      },\n    ],\n  },\n  {\n    type: \"img\",\n    url: \"https://images.unsplash.com/photo-1480714378408-67cf0d13bc1f?w=1200&h=800&fit=crop&auto=format\",\n    alt: \"City skyline at dusk\",\n    caption: \"Sustainable urbanism in practice — the Helsinki waterfront, 2024.\",\n    width: \"75%\",\n    children: [{ text: \"\" }],\n  },\n  {\n    type: \"p\",\n    children: [\n      {\n        text: \"Width is stored as a percentage on the node; the static viewer reads it for fidelity.\",\n      },\n    ],\n  },\n];\n\n// @ilinxa/rich-text-editor-fixtures 0.4.1\n",
      "type": "registry:component",
      "target": "components/rich-text-editor/dummy-data.ts"
    }
  ],
  "meta": {
    "version": "0.4.1",
    "status": "alpha"
  },
  "categories": [
    "data",
    "richtext",
    "fixtures"
  ],
  "type": "registry:block"
}