mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-04 07:19:52 +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.
58 lines
1.7 KiB
JSON
58 lines
1.7 KiB
JSON
{
|
|
"$schema": "https://hyperframes.heygen.com/schema/registry-item.json",
|
|
"name": "fade-through",
|
|
"type": "hyperframes:component",
|
|
"title": "Fade Through",
|
|
"description": "A calm transition primitive that fades one layer out, passes through a wash, and reveals the next layer",
|
|
"tags": ["motion-primitive", "transition", "fade", "scene"],
|
|
"files": [
|
|
{
|
|
"path": "fade-through.html",
|
|
"target": "compositions/components/fade-through.html",
|
|
"type": "hyperframes:snippet"
|
|
}
|
|
],
|
|
"variables": [
|
|
{
|
|
"id": "wash",
|
|
"type": "enum",
|
|
"role": "style",
|
|
"label": "Wash",
|
|
"description": "Colour of the mid-transition frame. Paper resolves through --hf-fade-through-wash, accent rides --accent.",
|
|
"default": "paper",
|
|
"options": [
|
|
{ "value": "paper", "label": "Paper" },
|
|
{ "value": "white", "label": "White" },
|
|
{ "value": "ink", "label": "Ink" },
|
|
{ "value": "accent", "label": "Accent" }
|
|
]
|
|
},
|
|
{
|
|
"id": "strength",
|
|
"type": "number",
|
|
"role": "style",
|
|
"label": "Strength",
|
|
"description": "How far the wash covers at its peak. 1 is a full flash, 0.3 a light veil.",
|
|
"default": 1,
|
|
"min": 0.1,
|
|
"max": 1,
|
|
"step": 0.05
|
|
},
|
|
{
|
|
"id": "shape",
|
|
"type": "enum",
|
|
"role": "style",
|
|
"label": "Shape",
|
|
"description": "Flat fills the frame evenly, bloom concentrates the wash in the centre.",
|
|
"default": "flat",
|
|
"options": [
|
|
{ "value": "flat", "label": "Flat" },
|
|
{ "value": "bloom", "label": "Bloom" }
|
|
]
|
|
}
|
|
],
|
|
"preview": {
|
|
"poster": "https://static.heygen.ai/hyperframes-oss/docs/images/catalog/components/fade-through.png"
|
|
}
|
|
}
|