mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-04 16:42:27 +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.
90 lines
2.8 KiB
JSON
90 lines
2.8 KiB
JSON
{
|
|
"$schema": "https://hyperframes.heygen.com/schema/registry-item.json",
|
|
"name": "marker-highlight",
|
|
"type": "hyperframes:component",
|
|
"title": "Marker Highlight",
|
|
"description": "Display text settles in, then one hand-drawn marker stroke (highlight, circle, underline, or scribble) draws over the emphasized word on cue.",
|
|
"tags": ["motion-primitive", "typography", "emphasis", "marker", "deterministic"],
|
|
"jobs": ["emphasize"],
|
|
"family": "typography",
|
|
"profile": "emphasis",
|
|
"evidence": "Wave J U-M rebuild: corpus emphasis unit, getTotalLength dash draw over a substring-matched word",
|
|
"syncPoints": [{ "id": "marker-draw", "phase": "in", "offset": 0.9 }],
|
|
"files": [
|
|
{
|
|
"path": "marker-highlight.html",
|
|
"target": "compositions/components/marker-highlight.html",
|
|
"type": "hyperframes:snippet"
|
|
}
|
|
],
|
|
"variables": [
|
|
{
|
|
"id": "text",
|
|
"type": "string",
|
|
"role": "content",
|
|
"label": "Text",
|
|
"description": "Full line of display text.",
|
|
"default": "Ship it with confidence"
|
|
},
|
|
{
|
|
"id": "emphasis_word",
|
|
"type": "string",
|
|
"role": "content",
|
|
"label": "Emphasis word",
|
|
"description": "First case-insensitive substring match in text receives the marker. Empty or unmatched draws no marker.",
|
|
"default": "confidence"
|
|
},
|
|
{
|
|
"id": "style",
|
|
"type": "enum",
|
|
"role": "style",
|
|
"label": "Marker style",
|
|
"description": "Shape of the hand-drawn marker stroke.",
|
|
"default": "highlight",
|
|
"options": [
|
|
{ "value": "highlight", "label": "Highlight" },
|
|
{ "value": "circle", "label": "Circle" },
|
|
{ "value": "underline", "label": "Underline" },
|
|
{ "value": "scribble", "label": "Scribble" }
|
|
]
|
|
},
|
|
{
|
|
"id": "draw_at",
|
|
"type": "number",
|
|
"role": "timing",
|
|
"label": "Draw at",
|
|
"description": "Second (from mount start) the marker starts drawing. Clamped so the stroke completes before any exit.",
|
|
"default": 0.9,
|
|
"min": 0,
|
|
"step": 0.1,
|
|
"unit": "s"
|
|
},
|
|
{
|
|
"id": "accent",
|
|
"type": "enum",
|
|
"role": "style",
|
|
"label": "Accent",
|
|
"description": "Marker ink color from the contract token map.",
|
|
"default": "green",
|
|
"options": [
|
|
{ "value": "green", "label": "Green" },
|
|
{ "value": "blue", "label": "Blue" },
|
|
{ "value": "violet", "label": "Violet" }
|
|
]
|
|
},
|
|
{
|
|
"id": "exit",
|
|
"type": "enum",
|
|
"role": "timing",
|
|
"label": "Exit",
|
|
"description": "Optional departure. Default none: the lockup holds until the frame cuts.",
|
|
"default": "none",
|
|
"options": [
|
|
{ "value": "none", "label": "None" },
|
|
{ "value": "fade", "label": "Fade" },
|
|
{ "value": "up", "label": "Up" }
|
|
]
|
|
}
|
|
]
|
|
}
|