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.
72 lines
1.6 KiB
JSON
72 lines
1.6 KiB
JSON
{
|
|
"$schema": "https://hyperframes.heygen.com/schema/registry-item.json",
|
|
"name": "touch-indicator",
|
|
"type": "hyperframes:component",
|
|
"title": "Touch Indicator",
|
|
"description": "A translucent contact-circle gesture actor for mobile UI scenes: it touches the glass, causes a same-frame response, and lifts. Tap or swipe, picked by variable.",
|
|
"tags": ["motion-primitive", "mobile", "gesture", "touch", "pointer"],
|
|
"variables": [
|
|
{
|
|
"id": "gesture",
|
|
"type": "enum",
|
|
"label": "Gesture",
|
|
"default": "tap",
|
|
"options": [
|
|
{
|
|
"value": "tap",
|
|
"label": "Tap"
|
|
},
|
|
{
|
|
"value": "swipe",
|
|
"label": "Swipe"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "polarity",
|
|
"type": "enum",
|
|
"label": "Polarity",
|
|
"default": "light",
|
|
"options": [
|
|
{
|
|
"value": "light",
|
|
"label": "Light (on dark UI)"
|
|
},
|
|
{
|
|
"value": "dark",
|
|
"label": "Dark (on light UI)"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "targetX",
|
|
"type": "number",
|
|
"label": "Target X",
|
|
"default": 50,
|
|
"min": 0,
|
|
"max": 100,
|
|
"unit": "%"
|
|
},
|
|
{
|
|
"id": "targetY",
|
|
"type": "number",
|
|
"label": "Target Y",
|
|
"default": 55,
|
|
"min": 0,
|
|
"max": 100,
|
|
"unit": "%"
|
|
}
|
|
],
|
|
"files": [
|
|
{
|
|
"path": "touch-indicator.html",
|
|
"target": "compositions/components/touch-indicator.html",
|
|
"type": "hyperframes:snippet"
|
|
}
|
|
],
|
|
"jobs": ["demonstrate"],
|
|
"family": "pointers",
|
|
"profile": "interaction",
|
|
"evidence": "spec ready (gesture-actor-spec.md)"
|
|
}
|