Pipeline
- Docsusage, props, keywords
- Demosrc/demo.tsx
- Buildshadcn add → vite
- Capturelight, dark, motion
- IndexBM25 + vectors
Public log. Prompts, raw model errors and costs stay on the admin side.
Log
Demo source
src/demo.tsx · from an earlier run
import type { MyValue } from "@/@components/editor/plate-types"import { Card, CardContent } from "@/components/ui/card"const value: MyValue = [ { type: "p", children: [{ text: "Draft the outline before writing the first section." }] }, { type: "blockquote", children: [{ text: "Keep each paragraph to one idea." }] }, { type: "p", children: [{ text: "Review the draft with the team on Friday." }] },]export default function PlateTypesDemo() { return ( <Card className="w-full max-w-md"> <CardContent className="space-y-3"> {value.map((element, i) => { const text = element.children .map((child) => ("text" in child ? child.text : "")) .join("") if (element.type === "blockquote") { return ( <blockquote key={i} className="border-l-2 pl-4 italic text-muted-foreground"> {text} </blockquote> ) } return ( <p key={i} className="text-sm leading-relaxed"> {text} </p> ) })} </CardContent> </Card> )}