mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-01 19:42:03 +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.
63 lines
1.8 KiB
JSON
63 lines
1.8 KiB
JSON
{
|
|
"$schema": "https://hyperframes.heygen.com/schema/registry-item.json",
|
|
"name": "comparison-split",
|
|
"type": "hyperframes:component",
|
|
"title": "Comparison Split",
|
|
"description": "Two full-bleed panels compare before and after states as a persistent divider wipes the vivid after layer over the muted before layer and rests at a configurable split.",
|
|
"tags": ["prop", "ui-props", "compare", "holdable", "before-after", "wipe"],
|
|
"jobs": ["compare"],
|
|
"family": "ui-props",
|
|
"profile": "holdable",
|
|
"evidence": "fixture + blueprint (re-filed from prove)",
|
|
"syncPoints": [{ "id": "wipe-land", "phase": "in", "offset": 1.3 }],
|
|
"files": [
|
|
{
|
|
"path": "comparison-split.html",
|
|
"target": "compositions/components/comparison-split.html",
|
|
"type": "hyperframes:snippet"
|
|
}
|
|
],
|
|
"variables": [
|
|
{
|
|
"id": "split",
|
|
"type": "number",
|
|
"role": "layout",
|
|
"label": "Split position",
|
|
"description": "Target resting position of the comparison divider.",
|
|
"default": 50,
|
|
"min": 0,
|
|
"max": 100,
|
|
"step": 1,
|
|
"unit": "%"
|
|
},
|
|
{
|
|
"id": "orientation",
|
|
"type": "enum",
|
|
"role": "layout",
|
|
"label": "Orientation",
|
|
"description": "Axis and direction used by the comparison wipe.",
|
|
"default": "horizontal",
|
|
"options": [
|
|
{ "value": "horizontal", "label": "Horizontal" },
|
|
{ "value": "vertical", "label": "Vertical" }
|
|
]
|
|
},
|
|
{
|
|
"id": "labelA",
|
|
"type": "string",
|
|
"role": "content",
|
|
"label": "Before label",
|
|
"description": "Caption shown on the base before panel.",
|
|
"default": "Before"
|
|
},
|
|
{
|
|
"id": "labelB",
|
|
"type": "string",
|
|
"role": "content",
|
|
"label": "After label",
|
|
"description": "Caption shown on the revealed after panel.",
|
|
"default": "After"
|
|
}
|
|
]
|
|
}
|