themes-y2k/blocks/merch_card.schema.json
Alex Dunmow a86a54639a feat: convert to codeless .bnp — templates + manifest, Go/templ deleted (WO-WZ-021)
Convert the Y2K theme from a Go+templ wasm plugin to a fully codeless .bnp:
blocks/blocks.yaml + .ninjatpl, page/system templates, template overrides,
email wrapper, master pages and CSS declared in manifest.yaml. All *.go, *.templ,
*_templ.go, go.mod and go.sum deleted; schemas moved schemas/ -> blocks/.

Static parity proven 48/48 identical against the templ baseline (10 blocks x
full+empty+variant branches, 4 overrides incl. heading L1-6, email full+empty).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-04 15:10:52 +08:00

42 lines
952 B
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Merch Card",
"description": "Plastic-bevel product card with a price sticker.",
"type": "object",
"properties": {
"title": {
"type": "string",
"title": "Product Title",
"x-editor": "text",
"default": ""
},
"price": {
"type": "string",
"title": "Price",
"description": "Display string e.g. $24.",
"x-editor": "text",
"default": ""
},
"image": {
"type": "string",
"title": "Image",
"x-editor": "media",
"default": ""
},
"buyHref": {
"type": "string",
"title": "Buy Link",
"x-editor": "link",
"default": ""
},
"sticker": {
"type": "string",
"title": "Sticker",
"description": "Corner sticker badge variant.",
"x-editor": "select",
"enum": ["", "new", "hot", "sale", "sold-out"],
"default": ""
}
}
}