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.
55 lines
1.4 KiB
JSON
55 lines
1.4 KiB
JSON
{
|
|
"$schema": "https://hyperframes.heygen.com/schema/registry-item.json",
|
|
"name": "input-feedback",
|
|
"type": "hyperframes:component",
|
|
"title": "Input Feedback",
|
|
"description": "A transitions.dev-inspired input feedback primitive with shake, clear affordance, and success state",
|
|
"tags": ["transition-primitive", "transitions-dev-port", "input", "feedback"],
|
|
"files": [
|
|
{
|
|
"path": "input-feedback.html",
|
|
"target": "compositions/components/input-feedback.html",
|
|
"type": "hyperframes:snippet"
|
|
}
|
|
],
|
|
"variables": [
|
|
{
|
|
"id": "status",
|
|
"type": "enum",
|
|
"role": "style",
|
|
"label": "Status",
|
|
"description": "Whether the field reads as accepted or rejected, colouring the border, chip and hint.",
|
|
"default": "valid",
|
|
"options": [
|
|
{
|
|
"value": "valid",
|
|
"label": "Valid"
|
|
},
|
|
{
|
|
"value": "error",
|
|
"label": "Error"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "value",
|
|
"type": "string",
|
|
"role": "content",
|
|
"label": "Value",
|
|
"description": "Text held by the field.",
|
|
"default": "mia@example.com"
|
|
},
|
|
{
|
|
"id": "hint",
|
|
"type": "string",
|
|
"role": "content",
|
|
"label": "Hint",
|
|
"description": "Helper line under the field.",
|
|
"default": "Looks good."
|
|
}
|
|
],
|
|
"preview": {
|
|
"poster": "https://static.heygen.ai/hyperframes-oss/docs/images/catalog/components/input-feedback.png"
|
|
}
|
|
}
|