fix: expose promoted template media slots

This commit is contained in:
James
2026-08-25 05:33:50 +00:00
parent a562946e11
commit 1e11608d44
27 changed files with 1336 additions and 188 deletions
+2 -1
View File
@@ -11,9 +11,10 @@ Only defaults declared in `data-composition-variables` are editable:
- `botName`, `userMessage`, `answer1` through `answer3`
- `bullet1` through `bullet3`
- `ecHeadline`, `ecSub`, `ecCta`, and `ecFooter`
- `brandLogo`, using a transparent mark that remains legible on the dark header
Typed and streamed copy is length-locked to within 20% of the original.
## Protected
Do not change chat chrome, keyboard, layout, logo asset, palette, fonts, scene order, duration, timing, easing, typing cadence, or reveal logic. This contract declares no image or color variables.
Do not change chat chrome, keyboard, layout, palette, fonts, scene order, duration, timing, easing, typing cadence, or reveal logic. Do not replace any image outside the declared closing-card logo slot, and do not restyle the assistant interface to match the supplied website. This contract declares no color variables.
+8 -2
View File
@@ -13,7 +13,8 @@
{ "id": "ecHeadline", "type": "string", "role": "content", "label": "End-card headline", "description": "Closing card headline. A | breaks the line.", "default": "It's not magic.|It's HTML." },
{ "id": "ecSub", "type": "string", "role": "content", "label": "End-card subline", "description": "Supporting sentence on the closing card.", "default": "Open-source video rendering — write HTML, ship pixel-perfect video." },
{ "id": "ecCta", "type": "string", "role": "content", "label": "End-card CTA", "description": "Label on the closing card button.", "default": "Try HyperFrames" },
{ "id": "ecFooter", "type": "string", "role": "content", "label": "End-card footer", "description": "Letter-spaced line at the very bottom.", "default": "HYPERFRAMES.HEYGEN.COM" }
{ "id": "ecFooter", "type": "string", "role": "content", "label": "End-card footer", "description": "Letter-spaced line at the very bottom.", "default": "HYPERFRAMES.HEYGEN.COM" },
{ "id": "brandLogo", "type": "image", "role": "content", "label": "Brand logo", "description": "Transparent logo in the closing-card header.", "default": "assets/hyperframes-logo-white.svg" }
]'
>
<head>
@@ -692,7 +693,12 @@
>
<div id="acr-endcard-inner">
<div class="acr-stage">
<img id="acr-eclogo" src="assets/hyperframes-logo-white.svg" alt="HyperFrames" />
<img
id="acr-eclogo"
data-var-src="brandLogo"
src="assets/hyperframes-logo-white.svg"
alt="Brand logo"
/>
<svg id="acr-ecstar" width="80" height="80" viewBox="0 0 80 80">
<g stroke="#2f6b57" stroke-width="8.5" stroke-linecap="round">
<line x1="47" y1="40" x2="77" y2="40" />
@@ -107,6 +107,14 @@
"label": "End-card footer",
"description": "Letter-spaced line at the very bottom.",
"default": "HYPERFRAMES.HEYGEN.COM"
},
{
"id": "brandLogo",
"type": "image",
"role": "content",
"label": "Brand logo",
"description": "Transparent logo in the closing-card header.",
"default": "assets/hyperframes-logo-white.svg"
}
],
"files": [