mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-03 04:38:33 +00:00
Restores the 208 catalog items reverted after their previews 404'd in production, this time on the payload mechanism rather than the .html files that caused the outage. The generator no longer writes a preview document to docs/public. That writer, and the machinery under it, existed only to produce files the docs host discards, so it is gone rather than bypassed. Items now embed the composition itself via a payload, which is what the previous change already does for the items that were already in the catalog. The variables explorer is parked, not restored: it drove its preview through the same unpublished .html path, so it would have shown an empty frame. Items that declare variables get the live player plus the static variables table, and reconnecting the explorer to payloads is a follow-up.
57 lines
1.7 KiB
JSON
57 lines
1.7 KiB
JSON
{
|
|
"$schema": "https://hyperframes.heygen.com/schema/registry-item.json",
|
|
"name": "star-rating-fill",
|
|
"type": "hyperframes:component",
|
|
"title": "Star Rating Fill",
|
|
"description": "A token-driven star row whose colored layer sweeps to a rating, preserves the fractional final star, and can count the value in sync.",
|
|
"tags": ["data", "rating", "stars", "fractional", "fill", "prove"],
|
|
"jobs": ["prove"],
|
|
"family": "data",
|
|
"profile": "holdable",
|
|
"evidence": "GAP A2+B1 convergent miss; rules stat-bars-and-fills: a colored star layer clips left to right over a muted layer and stops at the fractional rating.",
|
|
"syncPoints": [{ "id": "fill-settled", "phase": "in", "offset": 1.3 }],
|
|
"files": [
|
|
{
|
|
"path": "star-rating-fill.html",
|
|
"target": "compositions/components/star-rating-fill.html",
|
|
"type": "hyperframes:snippet"
|
|
}
|
|
],
|
|
"variables": [
|
|
{
|
|
"id": "rating",
|
|
"type": "number",
|
|
"role": "content",
|
|
"label": "Rating",
|
|
"description": "Target rating in star units from 0 to 5.",
|
|
"default": 4.8,
|
|
"min": 0,
|
|
"max": 5,
|
|
"step": 0.1
|
|
},
|
|
{
|
|
"id": "starCount",
|
|
"type": "number",
|
|
"role": "layout",
|
|
"label": "Star count",
|
|
"description": "Number of stars shown in the row.",
|
|
"default": 5,
|
|
"min": 1,
|
|
"max": 10,
|
|
"step": 1
|
|
},
|
|
{
|
|
"id": "showValue",
|
|
"type": "enum",
|
|
"role": "content",
|
|
"label": "Show value",
|
|
"description": "Show or hide the synchronized numeric rating.",
|
|
"default": "yes",
|
|
"options": [
|
|
{ "value": "yes", "label": "Yes" },
|
|
{ "value": "no", "label": "No" }
|
|
]
|
|
}
|
|
]
|
|
}
|