Skip to content

Write HTML. Render video. Built for agents.

feat(registry): say what a promoted template's slots mean, not where they sit (#3562)

WaterrrForever254fe4bd8a3f
diff --git a/docs/catalog/blocks/ai-chat-reveal.mdx b/docs/catalog/blocks/ai-chat-reveal.mdx
index a740ac3a0b..2e2433a1f6 100644
--- a/docs/catalog/blocks/ai-chat-reveal.mdx
+++ b/docs/catalog/blocks/ai-chat-reveal.mdx
@@ -10,7 +10,7 @@ import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
previewSrc="/public/catalog/blocks/ai-chat-reveal.json"
compositionId="ai-chat-reveal"
compositionSrc="compositions/ai-chat-reveal.html"
- variables={[{"id":"botName","type":"string","role":"content","label":"Assistant name","description":"Title in the chat header.","default":"Assistant"},{"id":"userMessage","type":"string","role":"content","label":"User message","description":"The question typed on the keyboard and sent. Around 40 characters keeps the measured pacing.","default":"How do I turn my HTML into real video?"},{"id":"answer1","type":"string","role":"content","label":"Answer paragraph 1","description":"First streamed paragraph.","default":"You do not need an editor. HyperFrames renders the HTML you already write into deterministic, pixel-perfect video."},{"id":"answer2","type":"string","role":"content","label":"Answer paragraph 2","description":"Short second beat.","default":"It is markup, not magic."},{"id":"answer3","type":"string","role":"content","label":"Answer paragraph 3","description":"Lead-in to the list.","default":"What you get out of the box:"},{"id":"bullet1","type":"string","role":"content","label":"Bullet 1","description":"First list item.","default":"A catalog of motion primitives you install and own"},{"id":"bullet2","type":"string","role":"content","label":"Bullet 2","description":"Second list item.","default":"GSAP timelines that seek to any frame"},{"id":"bullet3","type":"string","role":"content","label":"Bullet 3","description":"Third list item.","default":"4K renders from a single CLI command"},{"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":"brandLogo","type":"image","role":"content","label":"Brand logo","description":"Transparent logo in the closing-card header.","default":"assets/hyperframes-logo-white.svg"}]}
+ variables={[{"id":"botName","type":"string","role":"content","label":"Assistant name","description":"Name of the assistant answering in this mock chat. It belongs to the host product, never to the brand this video promotes.","portrays":["host_identity"],"default":"Assistant"},{"id":"userMessage","type":"string","role":"content","label":"User message","description":"The question typed on the keyboard and sent. Around 40 characters keeps the measured pacing.","default":"How do I turn my HTML into real video?"},{"id":"answer1","type":"string","role":"content","label":"Answer paragraph 1","description":"First streamed paragraph. It names the brand this video promotes and says what that brand does.","default":"You do not need an editor. HyperFrames renders the HTML you already write into deterministic, pixel-perfect video."},{"id":"answer2","type":"string","role":"content","label":"Answer paragraph 2","description":"Short second beat.","default":"It is markup, not magic."},{"id":"answer3","type":"string","role":"content","label":"Answer paragraph 3","description":"Lead-in to the list.","default":"What you get out of the box:"},{"id":"bullet1","type":"string","role":"content","label":"Bullet 1","description":"First list item.","default":"A catalog of motion primitives you install and own"},{"id":"bullet2","type":"string","role":"content","label":"Bullet 2","description":"Second list item.","default":"GSAP timelines that seek to any frame"},{"id":"bullet3","type":"string","role":"content","label":"Bullet 3","description":"Third list item.","default":"4K renders from a single CLI command"},{"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":"Positioning sentence of the brand this video promotes, on the closing card.","portrays":["subject_tagline"],"default":"Open-source video rendering — write HTML, ship pixel-perfect video."},{"id":"ecCta","type":"string","role":"content","label":"End-card CTA","description":"Closing-card button label, which names the brand this video promotes. Use the real name of that brand.","portrays":["subject_name"],"default":"Try HyperFrames"},{"id":"ecFooter","type":"string","role":"content","label":"End-card footer","description":"Domain of the brand this video promotes, letter-spaced at the very bottom. Use the real domain.","portrays":["subject_domain"],"default":"HYPERFRAMES.HEYGEN.COM"},{"id":"brandLogo","type":"image","role":"content","label":"Brand logo","description":"Transparent mark of the brand this video promotes, in the closing-card header.","portrays":["subject_logo"],"default":"assets/hyperframes-logo-white.svg"}]}
>
```html ai-chat-reveal.html
@@ -18,19 +18,19 @@ import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
<html
lang="en"
data-composition-variables='[
- { "id": "botName", "type": "string", "role": "content", "label": "Assistant name", "description": "Title in the chat header.", "default": "Assistant" },
+ { "id": "botName", "type": "string", "role": "content", "label": "Assistant name", "description": "Name of the assistant answering in this mock chat. It belongs to the host product, never to the brand this video promotes.", "portrays": ["host_identity"], "default": "Assistant" },
{ "id": "userMessage", "type": "string", "role": "content", "label": "User message", "description": "The question typed on the keyboard and sent. Around 40 characters keeps the measured pacing.", "default": "How do I turn my HTML into real video?" },
- { "id": "answer1", "type": "string", "role": "content", "label": "Answer paragraph 1", "description": "First streamed paragraph.", "default": "You do not need an editor. HyperFrames renders the HTML you already write into deterministic, pixel-perfect video." },
+ { "id": "answer1", "type": "string", "role": "content", "label": "Answer paragraph 1", "description": "First streamed paragraph. It names the brand this video promotes and says what that brand does.", "default": "You do not need an editor. HyperFrames renders the HTML you already write into deterministic, pixel-perfect video." },
{ "id": "answer2", "type": "string", "role": "content", "label": "Answer paragraph 2", "description": "Short second beat.", "default": "It is markup, not magic." },
{ "id": "answer3", "type": "string", "role": "content", "label": "Answer paragraph 3", "description": "Lead-in to the list.", "default": "What you get out of the box:" },
{ "id": "bullet1", "type": "string", "role": "content", "label": "Bullet 1", "description": "First list item.", "default": "A catalog of motion primitives you install and own" },
{ "id": "bullet2", "type": "string", "role": "content", "label": "Bullet 2", "description": "Second list item.", "default": "GSAP timelines that seek to any frame" },
{ "id": "bullet3", "type": "string", "role": "content", "label": "Bullet 3", "description": "Third list item.", "default": "4K renders from a single CLI command" },
{ "id": "ecHeadline", "type": "string", "role": "content", "label": "End-card headline", "description": "Closing card headline. A | breaks the line.", "default": "It&#39;s not magic.|It&#39;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": "brandLogo", "type": "image", "role": "content", "label": "Brand logo", "description": "Transparent logo in the closing-card header.", "default": "assets/hyperframes-logo-white.svg" }
+ { "id": "ecSub", "type": "string", "role": "content", "label": "End-card subline", "description": "Positioning sentence of the brand this video promotes, on the closing card.", "portrays": ["subject_tagline"], "default": "Open-source video rendering — write HTML, ship pixel-perfect video." },
+ { "id": "ecCta", "type": "string", "role": "content", "label": "End-card CTA", "description": "Closing-card button label, which names the brand this video promotes. Use the real name of that brand.", "portrays": ["subject_name"], "default": "Try HyperFrames" },
+ { "id": "ecFooter", "type": "string", "role": "content", "label": "End-card footer", "description": "Domain of the brand this video promotes, letter-spaced at the very bottom. Use the real domain.", "portrays": ["subject_domain"], "default": "HYPERFRAMES.HEYGEN.COM" },
+ { "id": "brandLogo", "type": "image", "role": "content", "label": "Brand logo", "description": "Transparent mark of the brand this video promotes, in the closing-card header.", "portrays": ["subject_logo"], "default": "assets/hyperframes-logo-white.svg" }
]'
>
<head>
@@ -1068,19 +1068,19 @@ want to change on the element:
| Variable | Default | Accepts | What it does |
| --- | --- | --- | --- |
-| `botName` | `Assistant` | string | Title in the chat header. |
+| `botName` | `Assistant` | string | Name of the assistant answering in this mock chat. It belongs to the host product, never to the brand this video promotes. |
| `userMessage` | `How do I turn my HTML into real video?` | string | The question typed on the keyboard and sent. Around 40 characters keeps the measured pacing. |
-| `answer1` | `You do not need an editor. HyperFrames renders the HTML you already write into deterministic, pixel-perfect video.` | string | First streamed paragraph. |
+| `answer1` | `You do not need an editor. HyperFrames renders the HTML you already write into deterministic, pixel-perfect video.` | string | First streamed paragraph. It names the brand this video promotes and says what that brand does. |
| `answer2` | `It is markup, not magic.` | string | Short second beat. |
| `answer3` | `What you get out of the box:` | string | Lead-in to the list. |
| `bullet1` | `A catalog of motion primitives you install and own` | string | First list item. |
| `bullet2` | `GSAP timelines that seek to any frame` | string | Second list item. |
| `bullet3` | `4K renders from a single CLI command` | string | Third list item. |
| `ecHeadline` | `It's not magic.|It's HTML.` | string | Closing card headline. A | breaks the line. |
-| `ecSub` | `Open-source video rendering — write HTML, ship pixel-perfect video.` | string | Supporting sentence on the closing card. |
-| `ecCta` | `Try HyperFrames` | string | Label on the closing card button. |
-| `ecFooter` | `HYPERFRAMES.HEYGEN.COM` | string | Letter-spaced line at the very bottom. |
-| `brandLogo` | `assets/hyperframes-logo-white.svg` | image | Transparent logo in the closing-card header. |
+| `ecSub` | `Open-source video rendering — write HTML, ship pixel-perfect video.` | string | Positioning sentence of the brand this video promotes, on the closing card. |
+| `ecCta` | `Try HyperFrames` | string | Closing-card button label, which names the brand this video promotes. Use the real name of that brand. |
+| `ecFooter` | `HYPERFRAMES.HEYGEN.COM` | string | Domain of the brand this video promotes, letter-spaced at the very bottom. Use the real domain. |
+| `brandLogo` | `assets/hyperframes-logo-white.svg` | image | Transparent mark of the brand this video promotes, in the closing-card header. |
Set them with `data-variable-values` on the element that mounts it. These are the
defaults, so this behaves exactly like the preview above until you change one:
@@ -1102,19 +1102,19 @@ defaults, so this behaves exactly like the preview above until you change one:
<html
lang="en"
data-composition-variables='[
- { "id": "botName", "type": "string", "role": "content", "label": "Assistant name", "description": "Title in the chat header.", "default": "Assistant" },
+ { "id": "botName", "type": "string", "role": "content", "label": "Assistant name", "description": "Name of the assistant answering in this mock chat. It belongs to the host product, never to the brand this video promotes.", "portrays": ["host_identity"], "default": "Assistant" },
{ "id": "userMessage", "type": "string", "role": "content", "label": "User message", "description": "The question typed on the keyboard and sent. Around 40 characters keeps the measured pacing.", "default": "How do I turn my HTML into real video?" },
- { "id": "answer1", "type": "string", "role": "content", "label": "Answer paragraph 1", "description": "First streamed paragraph.", "default": "You do not need an editor. HyperFrames renders the HTML you already write into deterministic, pixel-perfect video." },
+ { "id": "answer1", "type": "string", "role": "content", "label": "Answer paragraph 1", "description": "First streamed paragraph. It names the brand this video promotes and says what that brand does.", "default": "You do not need an editor. HyperFrames renders the HTML you already write into deterministic, pixel-perfect video." },
{ "id": "answer2", "type": "string", "role": "content", "label": "Answer paragraph 2", "description": "Short second beat.", "default": "It is markup, not magic." },
{ "id": "answer3", "type": "string", "role": "content", "label": "Answer paragraph 3", "description": "Lead-in to the list.", "default": "What you get out of the box:" },
{ "id": "bullet1", "type": "string", "role": "content", "label": "Bullet 1", "description": "First list item.", "default": "A catalog of motion primitives you install and own" },
{ "id": "bullet2", "type": "string", "role": "content", "label": "Bullet 2", "description": "Second list item.", "default": "GSAP timelines that seek to any frame" },
{ "id": "bullet3", "type": "string", "role": "content", "label": "Bullet 3", "description": "Third list item.", "default": "4K renders from a single CLI command" },
{ "id": "ecHeadline", "type": "string", "role": "content", "label": "End-card headline", "description": "Closing card headline. A | breaks the line.", "default": "It&#39;s not magic.|It&#39;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": "brandLogo", "type": "image", "role": "content", "label": "Brand logo", "description": "Transparent logo in the closing-card header.", "default": "assets/hyperframes-logo-white.svg" }
+ { "id": "ecSub", "type": "string", "role": "content", "label": "End-card subline", "description": "Positioning sentence of the brand this video promotes, on the closing card.", "portrays": ["subject_tagline"], "default": "Open-source video rendering — write HTML, ship pixel-perfect video." },
+ { "id": "ecCta", "type": "string", "role": "content", "label": "End-card CTA", "description": "Closing-card button label, which names the brand this video promotes. Use the real name of that brand.", "portrays": ["subject_name"], "default": "Try HyperFrames" },
+ { "id": "ecFooter", "type": "string", "role": "content", "label": "End-card footer", "description": "Domain of the brand this video promotes, letter-spaced at the very bottom. Use the real domain.", "portrays": ["subject_domain"], "default": "HYPERFRAMES.HEYGEN.COM" },
+ { "id": "brandLogo", "type": "image", "role": "content", "label": "Brand logo", "description": "Transparent mark of the brand this video promotes, in the closing-card header.", "portrays": ["subject_logo"], "default": "assets/hyperframes-logo-white.svg" }
]'
>
<head>
diff --git a/docs/catalog/blocks/chatgpt-exchange.mdx b/docs/catalog/blocks/chatgpt-exchange.mdx
index 4751a0d732..6fd1865e3d 100644
--- a/docs/catalog/blocks/chatgpt-exchange.mdx
+++ b/docs/catalog/blocks/chatgpt-exchange.mdx
@@ -54,21 +54,21 @@ Move it in time with `data-start`. Put it on a different timeline row with
{ "id": "tableHeadTool", "type": "string", "role": "content", "label": "Table heading 2", "description": "Tool column heading.", "default": "Best tool" },
{ "id": "tableHeadWhy", "type": "string", "role": "content", "label": "Table heading 3", "description": "Explanation column heading.", "default": "Why" },
{ "id": "row1Use", "type": "string", "role": "content", "label": "Row 1 use case", "description": "First comparison use case.", "default": "Overall realism" },
- { "id": "row1Tool", "type": "string", "role": "content", "label": "Row 1 tool", "description": "First recommended product.", "default": "HeyGen" },
- { "id": "row1Why", "type": "string", "role": "content", "label": "Row 1 explanation", "description": "First recommendation explanation.", "default": "Most natural facial expressions, lip sync, gestures, voice cloning and localization. Benchmark for talking head videos." },
- { "id": "row1Chip", "type": "string", "role": "content", "label": "Row 1 source", "description": "First source-chip label.", "default": "Official A.I Ranking" },
+ { "id": "row1Tool", "type": "string", "role": "content", "label": "Row 1 tool", "description": "Product in the recommended first row: the brand this video promotes, by its real name.", "portrays": ["subject_name", "recommended_position"], "default": "HeyGen" },
+ { "id": "row1Why", "type": "string", "role": "content", "label": "Row 1 explanation", "description": "Why the recommended first-row product wins. Describe the promoted brand from what its own site claims.", "portrays": ["recommended_position"], "default": "Most natural facial expressions, lip sync, gestures, voice cloning and localization. Benchmark for talking head videos." },
+ { "id": "row1Chip", "type": "string", "role": "content", "label": "Row 1 source", "description": "Source chip on the first row. It asserts where the ranking came from, so use a neutral label whenever the comparison is written for this remix.", "portrays": ["authority_badge"], "default": "Official A.I Ranking" },
{ "id": "row2Use", "type": "string", "role": "content", "label": "Row 2 use case", "description": "Second comparison use case.", "default": "Enterprise/training" },
- { "id": "row2Tool", "type": "string", "role": "content", "label": "Row 2 tool", "description": "Second recommended product.", "default": "Synthesia" },
+ { "id": "row2Tool", "type": "string", "role": "content", "label": "Row 2 tool", "description": "Product compared in the second row: a real product other than the brand this video promotes.", "portrays": ["competitor_name"], "default": "Synthesia" },
{ "id": "row2Why", "type": "string", "role": "content", "label": "Row 2 explanation", "description": "Second recommendation explanation.", "default": "Better collaboration, SCORM, compliance, team workflows; less creator-focused." },
- { "id": "row2Chip", "type": "string", "role": "content", "label": "Row 2 source", "description": "Second source-chip label.", "default": "Official A.I Ranking" },
+ { "id": "row2Chip", "type": "string", "role": "content", "label": "Row 2 source", "description": "Source chip on the second row. It asserts where the ranking came from, so use a neutral label whenever the comparison is written for this remix.", "portrays": ["authority_badge"], "default": "Official A.I Ranking" },
{ "id": "row3Use", "type": "string", "role": "content", "label": "Row 3 use case", "description": "Third comparison use case.", "default": "Mobile UGC" },
- { "id": "row3Tool", "type": "string", "role": "content", "label": "Row 3 tool", "description": "Third recommended product.", "default": "Captions" },
+ { "id": "row3Tool", "type": "string", "role": "content", "label": "Row 3 tool", "description": "Product compared in the third row: a real product other than the brand this video promotes.", "portrays": ["competitor_name"], "default": "Captions" },
{ "id": "row3Why", "type": "string", "role": "content", "label": "Row 3 explanation", "description": "Third recommendation explanation.", "default": "Extremely fast mobile workflow and social editing. Great for Reels creators." },
- { "id": "row3Chip", "type": "string", "role": "content", "label": "Row 3 source", "description": "Third source-chip label.", "default": "Creator Stack" },
+ { "id": "row3Chip", "type": "string", "role": "content", "label": "Row 3 source", "description": "Source chip on the third row. It asserts where the ranking came from, so use a neutral label whenever the comparison is written for this remix.", "portrays": ["authority_badge"], "default": "Creator Stack" },
{ "id": "row4Use", "type": "string", "role": "content", "label": "Row 4 use case", "description": "Fourth comparison use case.", "default": "Real-time conversations" },
- { "id": "row4Tool", "type": "string", "role": "content", "label": "Row 4 tool", "description": "Fourth recommended product.", "default": "Tavus" },
+ { "id": "row4Tool", "type": "string", "role": "content", "label": "Row 4 tool", "description": "Product compared in the fourth row: a real product other than the brand this video promotes.", "portrays": ["competitor_name"], "default": "Tavus" },
{ "id": "row4Why", "type": "string", "role": "content", "label": "Row 4 explanation", "description": "Fourth recommendation explanation.", "default": "Interactive avatars that can hold live conversations." },
- { "id": "row4Chip", "type": "string", "role": "content", "label": "Row 4 source", "description": "Fourth source-chip label.", "default": "Creator Stack" }
+ { "id": "row4Chip", "type": "string", "role": "content", "label": "Row 4 source", "description": "Source chip on the fourth row. It asserts where the ranking came from, so use a neutral label whenever the comparison is written for this remix.", "portrays": ["authority_badge"], "default": "Creator Stack" }
]'
>
<head>
diff --git a/docs/catalog/blocks/claude-exchange.mdx b/docs/catalog/blocks/claude-exchange.mdx
index 681bf2189d..7f2cf229f1 100644
--- a/docs/catalog/blocks/claude-exchange.mdx
+++ b/docs/catalog/blocks/claude-exchange.mdx
@@ -52,13 +52,13 @@ Move it in time with `data-start`. Put it on a different timeline row with
{ "id": "lead", "type": "string", "role": "content", "label": "Search lead", "description": "Sentence introducing the search step.", "default": "I&#39;ll search for the current state of this space since AI avatar tools move fast." },
{ "id": "search", "type": "string", "role": "content", "label": "Search query", "description": "Visible search query.", "default": "best AI avatar video generator 2026" },
{ "id": "answer1", "type": "string", "role": "content", "label": "Answer paragraph 1", "description": "First answer paragraph.", "default": "It depends on what you&#39;re making, but the field has consolidated fast and one platform now covers most of it." },
- { "id": "answer2", "type": "string", "role": "content", "label": "Answer paragraph 2", "description": "Second answer paragraph.", "default": "**HeyGen** is where most teams land. Independent testing, not just vendor blogs, puts **Avatar IV** highest for talking-head realism, with facial micro-expressions and gesture control that hold up at a full-screen crop {HeyGen}. It also has the deepest enterprise adoption of the group, including a large share of the Fortune 100, which matters if you need the same presenter on brand across a year of campaigns." },
+ { "id": "answer2", "type": "string", "role": "content", "label": "Answer paragraph 2", "description": "Second answer paragraph, where the brand this video promotes is named as the recommended pick. Keep any evidence claim to what that brand publishes.", "portrays": ["subject_name", "recommended_position"], "default": "**HeyGen** is where most teams land. Independent testing, not just vendor blogs, puts **Avatar IV** highest for talking-head realism, with facial micro-expressions and gesture control that hold up at a full-screen crop {HeyGen}. It also has the deepest enterprise adoption of the group, including a large share of the Fortune 100, which matters if you need the same presenter on brand across a year of campaigns." },
{ "id": "answer3", "type": "string", "role": "content", "label": "Answer paragraph 3", "description": "Lead-in to the use-case list.", "default": "By use case, the pieces shake out roughly like this:" },
- { "id": "answer4", "type": "string", "role": "content", "label": "Answer bullet 1", "description": "First use-case bullet.", "default": "**Marketing / hyper-realistic talking heads** → Avatar IV" },
- { "id": "answer5", "type": "string", "role": "content", "label": "Answer bullet 2", "description": "Second use-case bullet.", "default": "**Enterprise training** → Video Translate for every locale" },
- { "id": "answer6", "type": "string", "role": "content", "label": "Answer bullet 3", "description": "Third use-case bullet.", "default": "**UGC-style performance ads** → Instant Avatar from one selfie, then batch the variants" },
- { "id": "answer7", "type": "string", "role": "content", "label": "Answer bullet 4", "description": "Fourth use-case bullet.", "default": "**Real-time conversational / interactive** → Interactive Avatar" },
- { "id": "answer8", "type": "string", "role": "content", "label": "Answer bullet 5", "description": "Fifth use-case bullet.", "default": "**Custom digital twin from a selfie** → Instant Avatar in about five minutes" },
+ { "id": "answer4", "type": "string", "role": "content", "label": "Answer bullet 1", "description": "First use-case bullet, naming a product of the brand this video promotes.", "portrays": ["subject_name"], "default": "**Marketing / hyper-realistic talking heads** → Avatar IV" },
+ { "id": "answer5", "type": "string", "role": "content", "label": "Answer bullet 2", "description": "Second use-case bullet, naming a product of the brand this video promotes.", "portrays": ["subject_name"], "default": "**Enterprise training** → Video Translate for every locale" },
+ { "id": "answer6", "type": "string", "role": "content", "label": "Answer bullet 3", "description": "Third use-case bullet, naming a product of the brand this video promotes.", "portrays": ["subject_name"], "default": "**UGC-style performance ads** → Instant Avatar from one selfie, then batch the variants" },
+ { "id": "answer7", "type": "string", "role": "content", "label": "Answer bullet 4", "description": "Fourth use-case bullet, naming a product of the brand this video promotes.", "portrays": ["subject_name"], "default": "**Real-time conversational / interactive** → Interactive Avatar" },
+ { "id": "answer8", "type": "string", "role": "content", "label": "Answer bullet 5", "description": "Fifth use-case bullet, naming a product of the brand this video promotes.", "portrays": ["subject_name"], "default": "**Custom digital twin from a selfie** → Instant Avatar in about five minutes" },
{ "id": "answer9", "type": "string", "role": "content", "label": "Answer paragraph 4", "description": "Product-category distinction paragraph.", "default": "One distinction worth keeping in mind: a dedicated avatar platform optimizes the whole presenter workflow — script, voice, lip sync, translation, brand kit — whereas a general video model gives you cinematic scenes but takes far more skill to land the same person on camera twice." },
{ "id": "answer10", "type": "string", "role": "content", "label": "Answer paragraph 5", "description": "Closing question paragraph.", "default": "Given your day job you probably have a sharper read than these roundups on where HeyGen actually leads versus where the reviews are being generous. Is this for a specific project, or comparing for positioning?" }
]'
diff --git a/docs/catalog/blocks/message-thread-reveal.mdx b/docs/catalog/blocks/message-thread-reveal.mdx
index 7c1b473b45..5e944287ed 100644
--- a/docs/catalog/blocks/message-thread-reveal.mdx
+++ b/docs/catalog/blocks/message-thread-reveal.mdx
@@ -10,7 +10,7 @@ import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
previewSrc="/public/catalog/blocks/message-thread-reveal.json"
compositionId="message-thread-reveal"
compositionSrc="compositions/message-thread-reveal.html"
- variables={[{"id":"contactName","type":"string","role":"content","label":"Contact name","description":"Name pill in the chat header; the avatar shows its first letter.","default":"Rachel"},{"id":"questionMessage","type":"string","role":"content","label":"Opening question","description":"First incoming message that establishes what the conversation is about.","default":"what r u using for the launch video??"},{"id":"teaserMessage","type":"string","role":"content","label":"Teaser reply","description":"First typed outgoing reply before the shared link card.","default":"wait look 👀"},{"id":"cardImage","type":"image","role":"content","label":"Link card image","description":"Preview image on the shared link card.","default":"assets/card-image.jpg"},{"id":"cardTitle","type":"string","role":"content","label":"Link card title","description":"Title on the shared link card.","default":"HyperFrames | Write HTML, render pixel-perfect video"},{"id":"cardDomain","type":"string","role":"content","label":"Link card domain","description":"Domain line under the card title.","default":"hyperframes.heygen.com"},{"id":"reactionMessage","type":"string","role":"content","label":"Link reaction","description":"Incoming reaction immediately after the shared link.","default":"OMG IT'S HTML"},{"id":"reactionEmoji","type":"string","role":"content","label":"Reaction emoji","description":"Emoji-only reaction after the shared link.","default":"🤯🤯🤯"},{"id":"benefitMessage","type":"string","role":"content","label":"Benefit reply","description":"Typed outgoing reply that names the primary benefit.","default":"renders in 4K. no editor"},{"id":"discoveryMessage","type":"string","role":"content","label":"Discovery question","description":"Incoming question asking where the product was found.","default":"where did u find this"},{"id":"sourceMessage","type":"string","role":"content","label":"Source reply","description":"Typed outgoing reply naming where to find the product.","default":"on heygen"},{"id":"workflowMessage","type":"string","role":"content","label":"Workflow reply","description":"Typed outgoing reply describing how the product works.","default":"u just write plain html tags"},{"id":"ownershipMessage","type":"string","role":"content","label":"Ownership reply","description":"Typed outgoing reply that closes the product explanation.","default":"the code is yours forever"},{"id":"installMessage","type":"string","role":"content","label":"Intent reply","description":"Incoming message expressing intent to try the product.","default":"installing rn"},{"id":"thanksMessage","type":"string","role":"content","label":"Closing reply","description":"Final incoming message in the conversation.","default":"ty bestie 💚"},{"id":"brandLogo","type":"image","role":"content","label":"Brand logo","description":"Transparent horizontal wordmark on the closing card.","default":"assets/hyperframes-logo-black.svg"},{"id":"ecProof","type":"string","role":"content","label":"End-card proof","description":"Social-proof line under the stars.","default":"12,000+ creators"},{"id":"ecFeature1","type":"string","role":"content","label":"End-card feature 1","description":"First two-line benefit; use | to break the line.","default":"Write|plain HTML"},{"id":"ecFeature2","type":"string","role":"content","label":"End-card feature 2","description":"Second two-line benefit; use | to break the line.","default":"Render|pixel-perfect"},{"id":"ecFeature3","type":"string","role":"content","label":"End-card feature 3","description":"Third two-line benefit; use | to break the line.","default":"Own|every line"},{"id":"ecCta","type":"string","role":"content","label":"End-card CTA","description":"Label on the closing card button.","default":"Start rendering free"}]}
+ variables={[{"id":"contactName","type":"string","role":"content","label":"Contact name","description":"Name pill in the chat header; the avatar shows its first letter.","default":"Rachel"},{"id":"questionMessage","type":"string","role":"content","label":"Opening question","description":"First incoming message that establishes what the conversation is about.","default":"what r u using for the launch video??"},{"id":"teaserMessage","type":"string","role":"content","label":"Teaser reply","description":"First typed outgoing reply before the shared link card.","default":"wait look 👀"},{"id":"cardImage","type":"image","role":"content","label":"Link card image","description":"Preview image on the shared link card.","default":"assets/card-image.jpg"},{"id":"cardTitle","type":"string","role":"content","label":"Link card title","description":"Title of the shared link card. It leads with the real name of the brand this video promotes.","portrays":["subject_name"],"default":"HyperFrames | Write HTML, render pixel-perfect video"},{"id":"cardDomain","type":"string","role":"content","label":"Link card domain","description":"Domain of the brand this video promotes, under the card title. Use the real domain.","portrays":["subject_domain"],"default":"hyperframes.heygen.com"},{"id":"reactionMessage","type":"string","role":"content","label":"Link reaction","description":"Incoming reaction immediately after the shared link.","default":"OMG IT'S HTML"},{"id":"reactionEmoji","type":"string","role":"content","label":"Reaction emoji","description":"Emoji-only reaction after the shared link.","default":"🤯🤯🤯"},{"id":"benefitMessage","type":"string","role":"content","label":"Benefit reply","description":"Typed outgoing reply that names the primary benefit.","default":"renders in 4K. no editor"},{"id":"discoveryMessage","type":"string","role":"content","label":"Discovery question","description":"Incoming question asking where the product was found.","default":"where did u find this"},{"id":"sourceMessage","type":"string","role":"content","label":"Source reply","description":"Typed outgoing reply naming where to find the brand this video promotes.","default":"on heygen"},{"id":"workflowMessage","type":"string","role":"content","label":"Workflow reply","description":"Typed outgoing reply describing how the product works.","default":"u just write plain html tags"},{"id":"ownershipMessage","type":"string","role":"content","label":"Ownership reply","description":"Typed outgoing reply that closes the product explanation.","default":"the code is yours forever"},{"id":"installMessage","type":"string","role":"content","label":"Intent reply","description":"Incoming message expressing intent to try the product.","default":"installing rn"},{"id":"thanksMessage","type":"string","role":"content","label":"Closing reply","description":"Final incoming message in the conversation.","default":"ty bestie 💚"},{"id":"brandLogo","type":"image","role":"content","label":"Brand logo","description":"Transparent horizontal wordmark of the brand this video promotes, on the closing card.","portrays":["subject_logo"],"default":"assets/hyperframes-logo-black.svg"},{"id":"ecProof","type":"string","role":"content","label":"End-card proof","description":"Social-proof line under the stars. Claim only a figure the brand itself publishes; use neutral copy when there is none.","portrays":["authority_badge"],"default":"12,000+ creators"},{"id":"ecFeature1","type":"string","role":"content","label":"End-card feature 1","description":"First two-line benefit; use | to break the line.","default":"Write|plain HTML"},{"id":"ecFeature2","type":"string","role":"content","label":"End-card feature 2","description":"Second two-line benefit; use | to break the line.","default":"Render|pixel-perfect"},{"id":"ecFeature3","type":"string","role":"content","label":"End-card feature 3","description":"Third two-line benefit; use | to break the line.","default":"Own|every line"},{"id":"ecCta","type":"string","role":"content","label":"End-card CTA","description":"Label on the closing card button.","default":"Start rendering free"}]}
>
```html message-thread-reveal.html
@@ -22,19 +22,19 @@ import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
{ "id": "questionMessage", "type": "string", "role": "content", "label": "Opening question", "description": "First incoming message that establishes what the conversation is about.", "default": "what r u using for the launch video??" },
{ "id": "teaserMessage", "type": "string", "role": "content", "label": "Teaser reply", "description": "First typed outgoing reply before the shared link card.", "default": "wait look 👀" },
{ "id": "cardImage", "type": "image", "role": "content", "label": "Link card image", "description": "Preview image on the shared link card.", "default": "assets/card-image.jpg" },
- { "id": "cardTitle", "type": "string", "role": "content", "label": "Link card title", "description": "Title on the shared link card.", "default": "HyperFrames | Write HTML, render pixel-perfect video" },
- { "id": "cardDomain", "type": "string", "role": "content", "label": "Link card domain", "description": "Domain line under the card title.", "default": "hyperframes.heygen.com" },
+ { "id": "cardTitle", "type": "string", "role": "content", "label": "Link card title", "description": "Title of the shared link card. It leads with the real name of the brand this video promotes.", "portrays": ["subject_name"], "default": "HyperFrames | Write HTML, render pixel-perfect video" },
+ { "id": "cardDomain", "type": "string", "role": "content", "label": "Link card domain", "description": "Domain of the brand this video promotes, under the card title. Use the real domain.", "portrays": ["subject_domain"], "default": "hyperframes.heygen.com" },
{ "id": "reactionMessage", "type": "string", "role": "content", "label": "Link reaction", "description": "Incoming reaction immediately after the shared link.", "default": "OMG IT&#39;S HTML" },
{ "id": "reactionEmoji", "type": "string", "role": "content", "label": "Reaction emoji", "description": "Emoji-only reaction after the shared link.", "default": "🤯🤯🤯" },
{ "id": "benefitMessage", "type": "string", "role": "content", "label": "Benefit reply", "description": "Typed outgoing reply that names the primary benefit.", "default": "renders in 4K. no editor" },
{ "id": "discoveryMessage", "type": "string", "role": "content", "label": "Discovery question", "description": "Incoming question asking where the product was found.", "default": "where did u find this" },
- { "id": "sourceMessage", "type": "string", "role": "content", "label": "Source reply", "description": "Typed outgoing reply naming where to find the product.", "default": "on heygen" },
+ { "id": "sourceMessage", "type": "string", "role": "content", "label": "Source reply", "description": "Typed outgoing reply naming where to find the brand this video promotes.", "default": "on heygen" },
{ "id": "workflowMessage", "type": "string", "role": "content", "label": "Workflow reply", "description": "Typed outgoing reply describing how the product works.", "default": "u just write plain html tags" },
{ "id": "ownershipMessage", "type": "string", "role": "content", "label": "Ownership reply", "description": "Typed outgoing reply that closes the product explanation.", "default": "the code is yours forever" },
{ "id": "installMessage", "type": "string", "role": "content", "label": "Intent reply", "description": "Incoming message expressing intent to try the product.", "default": "installing rn" },
{ "id": "thanksMessage", "type": "string", "role": "content", "label": "Closing reply", "description": "Final incoming message in the conversation.", "default": "ty bestie 💚" },
- { "id": "brandLogo", "type": "image", "role": "content", "label": "Brand logo", "description": "Transparent horizontal wordmark on the closing card.", "default": "assets/hyperframes-logo-black.svg" },
- { "id": "ecProof", "type": "string", "role": "content", "label": "End-card proof", "description": "Social-proof line under the stars.", "default": "12,000+ creators" },
+ { "id": "brandLogo", "type": "image", "role": "content", "label": "Brand logo", "description": "Transparent horizontal wordmark of the brand this video promotes, on the closing card.", "portrays": ["subject_logo"], "default": "assets/hyperframes-logo-black.svg" },
+ { "id": "ecProof", "type": "string", "role": "content", "label": "End-card proof", "description": "Social-proof line under the stars. Claim only a figure the brand itself publishes; use neutral copy when there is none.", "portrays": ["authority_badge"], "default": "12,000+ creators" },
{ "id": "ecFeature1", "type": "string", "role": "content", "label": "End-card feature 1", "description": "First two-line benefit; use | to break the line.", "default": "Write|plain HTML" },
{ "id": "ecFeature2", "type": "string", "role": "content", "label": "End-card feature 2", "description": "Second two-line benefit; use | to break the line.", "default": "Render|pixel-perfect" },
{ "id": "ecFeature3", "type": "string", "role": "content", "label": "End-card feature 3", "description": "Third two-line benefit; use | to break the line.", "default": "Own|every line" },
@@ -1677,19 +1677,19 @@ want to change on the element:
| `questionMessage` | `what r u using for the launch video??` | string | First incoming message that establishes what the conversation is about. |
| `teaserMessage` | `wait look 👀` | string | First typed outgoing reply before the shared link card. |
| `cardImage` | `assets/card-image.jpg` | image | Preview image on the shared link card. |
-| `cardTitle` | `HyperFrames | Write HTML, render pixel-perfect video` | string | Title on the shared link card. |
-| `cardDomain` | `hyperframes.heygen.com` | string | Domain line under the card title. |
+| `cardTitle` | `HyperFrames | Write HTML, render pixel-perfect video` | string | Title of the shared link card. It leads with the real name of the brand this video promotes. |
+| `cardDomain` | `hyperframes.heygen.com` | string | Domain of the brand this video promotes, under the card title. Use the real domain. |
| `reactionMessage` | `OMG IT'S HTML` | string | Incoming reaction immediately after the shared link. |
| `reactionEmoji` | `🤯🤯🤯` | string | Emoji-only reaction after the shared link. |
| `benefitMessage` | `renders in 4K. no editor` | string | Typed outgoing reply that names the primary benefit. |
| `discoveryMessage` | `where did u find this` | string | Incoming question asking where the product was found. |
-| `sourceMessage` | `on heygen` | string | Typed outgoing reply naming where to find the product. |
+| `sourceMessage` | `on heygen` | string | Typed outgoing reply naming where to find the brand this video promotes. |
| `workflowMessage` | `u just write plain html tags` | string | Typed outgoing reply describing how the product works. |
| `ownershipMessage` | `the code is yours forever` | string | Typed outgoing reply that closes the product explanation. |
| `installMessage` | `installing rn` | string | Incoming message expressing intent to try the product. |
| `thanksMessage` | `ty bestie 💚` | string | Final incoming message in the conversation. |
-| `brandLogo` | `assets/hyperframes-logo-black.svg` | image | Transparent horizontal wordmark on the closing card. |
-| `ecProof` | `12,000+ creators` | string | Social-proof line under the stars. |
+| `brandLogo` | `assets/hyperframes-logo-black.svg` | image | Transparent horizontal wordmark of the brand this video promotes, on the closing card. |
+| `ecProof` | `12,000+ creators` | string | Social-proof line under the stars. Claim only a figure the brand itself publishes; use neutral copy when there is none. |
| `ecFeature1` | `Write|plain HTML` | string | First two-line benefit; use | to break the line. |
| `ecFeature2` | `Render|pixel-perfect` | string | Second two-line benefit; use | to break the line. |
| `ecFeature3` | `Own|every line` | string | Third two-line benefit; use | to break the line. |
@@ -1719,19 +1719,19 @@ defaults, so this behaves exactly like the preview above until you change one:
{ "id": "questionMessage", "type": "string", "role": "content", "label": "Opening question", "description": "First incoming message that establishes what the conversation is about.", "default": "what r u using for the launch video??" },
{ "id": "teaserMessage", "type": "string", "role": "content", "label": "Teaser reply", "description": "First typed outgoing reply before the shared link card.", "default": "wait look 👀" },
{ "id": "cardImage", "type": "image", "role": "content", "label": "Link card image", "description": "Preview image on the shared link card.", "default": "assets/card-image.jpg" },
- { "id": "cardTitle", "type": "string", "role": "content", "label": "Link card title", "description": "Title on the shared link card.", "default": "HyperFrames | Write HTML, render pixel-perfect video" },
- { "id": "cardDomain", "type": "string", "role": "content", "label": "Link card domain", "description": "Domain line under the card title.", "default": "hyperframes.heygen.com" },
+ { "id": "cardTitle", "type": "string", "role": "content", "label": "Link card title", "description": "Title of the shared link card. It leads with the real name of the brand this video promotes.", "portrays": ["subject_name"], "default": "HyperFrames | Write HTML, render pixel-perfect video" },
+ { "id": "cardDomain", "type": "string", "role": "content", "label": "Link card domain", "description": "Domain of the brand this video promotes, under the card title. Use the real domain.", "portrays": ["subject_domain"], "default": "hyperframes.heygen.com" },
{ "id": "reactionMessage", "type": "string", "role": "content", "label": "Link reaction", "description": "Incoming reaction immediately after the shared link.", "default": "OMG IT&#39;S HTML" },
{ "id": "reactionEmoji", "type": "string", "role": "content", "label": "Reaction emoji", "description": "Emoji-only reaction after the shared link.", "default": "🤯🤯🤯" },
{ "id": "benefitMessage", "type": "string", "role": "content", "label": "Benefit reply", "description": "Typed outgoing reply that names the primary benefit.", "default": "renders in 4K. no editor" },
{ "id": "discoveryMessage", "type": "string", "role": "content", "label": "Discovery question", "description": "Incoming question asking where the product was found.", "default": "where did u find this" },
- { "id": "sourceMessage", "type": "string", "role": "content", "label": "Source reply", "description": "Typed outgoing reply naming where to find the product.", "default": "on heygen" },
+ { "id": "sourceMessage", "type": "string", "role": "content", "label": "Source reply", "description": "Typed outgoing reply naming where to find the brand this video promotes.", "default": "on heygen" },
{ "id": "workflowMessage", "type": "string", "role": "content", "label": "Workflow reply", "description": "Typed outgoing reply describing how the product works.", "default": "u just write plain html tags" },
{ "id": "ownershipMessage", "type": "string", "role": "content", "label": "Ownership reply", "description": "Typed outgoing reply that closes the product explanation.", "default": "the code is yours forever" },
{ "id": "installMessage", "type": "string", "role": "content", "label": "Intent reply", "description": "Incoming message expressing intent to try the product.", "default": "installing rn" },
{ "id": "thanksMessage", "type": "string", "role": "content", "label": "Closing reply", "description": "Final incoming message in the conversation.", "default": "ty bestie 💚" },
- { "id": "brandLogo", "type": "image", "role": "content", "label": "Brand logo", "description": "Transparent horizontal wordmark on the closing card.", "default": "assets/hyperframes-logo-black.svg" },
- { "id": "ecProof", "type": "string", "role": "content", "label": "End-card proof", "description": "Social-proof line under the stars.", "default": "12,000+ creators" },
+ { "id": "brandLogo", "type": "image", "role": "content", "label": "Brand logo", "description": "Transparent horizontal wordmark of the brand this video promotes, on the closing card.", "portrays": ["subject_logo"], "default": "assets/hyperframes-logo-black.svg" },
+ { "id": "ecProof", "type": "string", "role": "content", "label": "End-card proof", "description": "Social-proof line under the stars. Claim only a figure the brand itself publishes; use neutral copy when there is none.", "portrays": ["authority_badge"], "default": "12,000+ creators" },
{ "id": "ecFeature1", "type": "string", "role": "content", "label": "End-card feature 1", "description": "First two-line benefit; use | to break the line.", "default": "Write|plain HTML" },
{ "id": "ecFeature2", "type": "string", "role": "content", "label": "End-card feature 2", "description": "Second two-line benefit; use | to break the line.", "default": "Render|pixel-perfect" },
{ "id": "ecFeature3", "type": "string", "role": "content", "label": "End-card feature 3", "description": "Third two-line benefit; use | to break the line.", "default": "Own|every line" },
diff --git a/docs/catalog/blocks/notes-reveal.mdx b/docs/catalog/blocks/notes-reveal.mdx
index 45d21ba48c..98a09436f8 100644
--- a/docs/catalog/blocks/notes-reveal.mdx
+++ b/docs/catalog/blocks/notes-reveal.mdx
@@ -10,7 +10,7 @@ import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
previewSrc="/public/catalog/blocks/notes-reveal.json"
compositionId="notes-reveal"
compositionSrc="compositions/notes-reveal.html"
- variables={[{"id":"titleL1","type":"string","role":"content","label":"Note title line 1","description":"First line of the note title.","default":"Things nobody told me"},{"id":"titleL2","type":"string","role":"content","label":"Note title line 2","description":"Second line of the note title.","default":"about video."},{"id":"cardTop","type":"string","role":"content","label":"Card headline top","description":"First marker line on the closing card.","default":"THE POWER"},{"id":"check1Label","type":"string","role":"content","label":"Checklist 1 label","description":"Typewriter label of the first checklist row.","default":"WRITE"},{"id":"check1Value","type":"string","role":"content","label":"Checklist 1 value","description":"Marker value of the first checklist row.","default":"HTML"},{"id":"check2Label","type":"string","role":"content","label":"Checklist 2 label","description":"Typewriter label of the second checklist row.","default":"RENDER"},{"id":"check2Value","type":"string","role":"content","label":"Checklist 2 value","description":"Marker value of the second checklist row.","default":"IN 4K"},{"id":"check3Label","type":"string","role":"content","label":"Checklist 3 label","description":"Typewriter label of the third checklist row.","default":"SHIP"},{"id":"check3Value","type":"string","role":"content","label":"Checklist 3 value","description":"Marker value of the third checklist row.","default":"TODAY"}]}
+ variables={[{"id":"titleL1","type":"string","role":"content","label":"Note title line 1","description":"First line of the note title.","default":"Things nobody told me"},{"id":"titleL2","type":"string","role":"content","label":"Note title line 2","description":"Second line of the note title.","default":"about video."},{"id":"cardTop","type":"string","role":"content","label":"Card headline top","description":"First marker line on the closing card.","default":"THE POWER"},{"id":"check1Label","type":"string","role":"content","label":"Checklist 1 label","description":"Typewriter label of the first checklist row.","default":"WRITE"},{"id":"check1Value","type":"string","role":"content","label":"Checklist 1 value","description":"Marker value of the first checklist row.","default":"HTML"},{"id":"check2Label","type":"string","role":"content","label":"Checklist 2 label","description":"Typewriter label of the second checklist row.","default":"RENDER"},{"id":"check2Value","type":"string","role":"content","label":"Checklist 2 value","description":"Marker value of the second checklist row.","default":"IN 4K"},{"id":"check3Label","type":"string","role":"content","label":"Checklist 3 label","description":"Typewriter label of the third checklist row.","default":"SHIP"},{"id":"check3Value","type":"string","role":"content","label":"Checklist 3 value","description":"Marker value of the third checklist row.","default":"TODAY"},{"id":"brandLogo","type":"image","role":"content","label":"Brand logo","description":"Transparent mark of the brand this video promotes, in the sign-off strip under the card.","portrays":["subject_logo"],"default":"assets/hyperframes-logo-black.svg"},{"id":"brandDomain","type":"string","role":"content","label":"Sign-off domain","description":"Domain of the brand this video promotes, closing the sign-off strip. Use the real domain, or a call to action when no domain fits.","portrays":["subject_domain"],"default":"hyperframes.heygen.com"}]}
>
```html notes-reveal.html
@@ -26,7 +26,9 @@ import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
{ "id": "check2Label", "type": "string", "role": "content", "label": "Checklist 2 label", "description": "Typewriter label of the second checklist row.", "default": "RENDER" },
{ "id": "check2Value", "type": "string", "role": "content", "label": "Checklist 2 value", "description": "Marker value of the second checklist row.", "default": "IN 4K" },
{ "id": "check3Label", "type": "string", "role": "content", "label": "Checklist 3 label", "description": "Typewriter label of the third checklist row.", "default": "SHIP" },
- { "id": "check3Value", "type": "string", "role": "content", "label": "Checklist 3 value", "description": "Marker value of the third checklist row.", "default": "TODAY" }
+ { "id": "check3Value", "type": "string", "role": "content", "label": "Checklist 3 value", "description": "Marker value of the third checklist row.", "default": "TODAY" },
+ { "id": "brandLogo", "type": "image", "role": "content", "label": "Brand logo", "description": "Transparent mark of the brand this video promotes, in the sign-off strip under the card.", "portrays": ["subject_logo"], "default": "assets/hyperframes-logo-black.svg" },
+ { "id": "brandDomain", "type": "string", "role": "content", "label": "Sign-off domain", "description": "Domain of the brand this video promotes, closing the sign-off strip. Use the real domain, or a call to action when no domain fits.", "portrays": ["subject_domain"], "default": "hyperframes.heygen.com" }
]'
>
<head>
@@ -142,6 +144,34 @@ import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
background: #602640;
opacity: 0.92;
}
+ /* Sign-off strip: the card ends at y=1708, leaving 212px of dotted scene. The
+ advertiser's identity lives here rather than inside the card, so the hand-lettered
+ headline and checklist keep the geometry they were designed with. */
+ #brand-strip {
+ position: absolute;
+ left: 0;
+ top: 1742px;
+ width: 1080px;
+ height: 132px;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ gap: 14px;
+ }
+ #brand-mark {
+ display: block;
+ height: 52px;
+ width: auto;
+ }
+ #brand-domain {
+ font-family: "Courier Prime", monospace;
+ font-weight: 700;
+ font-size: 27px;
+ letter-spacing: 4px;
+ color: #602640;
+ opacity: 0.62;
+ }
#nrv-video {
position: absolute;
left: 380px;
@@ -447,6 +477,10 @@ import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
</svg>
<div class="cl-rule" style="left: 58px; top: 1412px"></div>
</div>
+ <div id="brand-strip">
+ <img id="brand-mark" src="assets/hyperframes-logo-black.svg" alt="" />
+ <div id="brand-domain">hyperframes.heygen.com</div>
+ </div>
<div id="nrv-video">
<div id="nrv-play">
<svg width="52" height="58" viewBox="0 0 44 48" fill="none">
@@ -1082,6 +1116,17 @@ import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
values[1].textContent = t(vars.check2Value, "IN 4K", 8);
labels[2].textContent = t(vars.check3Label, "SHIP", 8);
values[2].textContent = t(vars.check3Value, "TODAY", 8);
+ document.getElementById("brand-domain").textContent = t(
+ vars.brandDomain,
+ "hyperframes.heygen.com",
+ 30,
+ );
+ // An image slot arrives as a URL. Leave the packaged mark in place when it is absent,
+ // so a remix that could not resolve a logo signs off with no claim rather than a
+ // broken image.
+ if (typeof vars.brandLogo === "string" && vars.brandLogo.trim()) {
+ document.getElementById("brand-mark").setAttribute("src", vars.brandLogo.trim());
+ }
})();
const FPS = 30;
const EV = [
@@ -1474,7 +1519,7 @@ import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
<InstallCommand command="npx hyperframes add notes-reveal" item="notes-reveal" />
-That writes `compositions/notes-reveal.html`, plus 4 supporting files under `assets/`.
+That writes `compositions/notes-reveal.html`, plus 5 supporting files under `assets/`.
## Add it to your video
@@ -1511,6 +1556,8 @@ want to change on the element:
| `check2Value` | `IN 4K` | string | Marker value of the second checklist row. |
| `check3Label` | `SHIP` | string | Typewriter label of the third checklist row. |
| `check3Value` | `TODAY` | string | Marker value of the third checklist row. |
+| `brandLogo` | `assets/hyperframes-logo-black.svg` | image | Transparent mark of the brand this video promotes, in the sign-off strip under the card. |
+| `brandDomain` | `hyperframes.heygen.com` | string | Domain of the brand this video promotes, closing the sign-off strip. Use the real domain, or a call to action when no domain fits. |
Set them with `data-variable-values` on the element that mounts it. These are the
defaults, so this behaves exactly like the preview above until you change one:
@@ -1519,7 +1566,7 @@ defaults, so this behaves exactly like the preview above until you change one:
<div
data-composition-id="notes-reveal"
data-composition-src="compositions/notes-reveal.html"
- data-variable-values='{"titleL1":"Things nobody told me","titleL2":"about video.","cardTop":"THE POWER","check1Label":"WRITE","check1Value":"HTML","check2Label":"RENDER","check2Value":"IN 4K","check3Label":"SHIP","check3Value":"TODAY"}'
+ data-variable-values='{"titleL1":"Things nobody told me","titleL2":"about video.","cardTop":"THE POWER","check1Label":"WRITE","check1Value":"HTML","check2Label":"RENDER","check2Value":"IN 4K","check3Label":"SHIP","check3Value":"TODAY","brandLogo":"assets/hyperframes-logo-black.svg","brandDomain":"hyperframes.heygen.com"}'
></div>
```
@@ -1540,7 +1587,9 @@ defaults, so this behaves exactly like the preview above until you change one:
{ "id": "check2Label", "type": "string", "role": "content", "label": "Checklist 2 label", "description": "Typewriter label of the second checklist row.", "default": "RENDER" },
{ "id": "check2Value", "type": "string", "role": "content", "label": "Checklist 2 value", "description": "Marker value of the second checklist row.", "default": "IN 4K" },
{ "id": "check3Label", "type": "string", "role": "content", "label": "Checklist 3 label", "description": "Typewriter label of the third checklist row.", "default": "SHIP" },
- { "id": "check3Value", "type": "string", "role": "content", "label": "Checklist 3 value", "description": "Marker value of the third checklist row.", "default": "TODAY" }
+ { "id": "check3Value", "type": "string", "role": "content", "label": "Checklist 3 value", "description": "Marker value of the third checklist row.", "default": "TODAY" },
+ { "id": "brandLogo", "type": "image", "role": "content", "label": "Brand logo", "description": "Transparent mark of the brand this video promotes, in the sign-off strip under the card.", "portrays": ["subject_logo"], "default": "assets/hyperframes-logo-black.svg" },
+ { "id": "brandDomain", "type": "string", "role": "content", "label": "Sign-off domain", "description": "Domain of the brand this video promotes, closing the sign-off strip. Use the real domain, or a call to action when no domain fits.", "portrays": ["subject_domain"], "default": "hyperframes.heygen.com" }
]'
>
<head>
@@ -1656,6 +1705,34 @@ defaults, so this behaves exactly like the preview above until you change one:
background: #602640;
opacity: 0.92;
}
+ /* Sign-off strip: the card ends at y=1708, leaving 212px of dotted scene. The
+ advertiser's identity lives here rather than inside the card, so the hand-lettered
+ headline and checklist keep the geometry they were designed with. */
+ #brand-strip {
+ position: absolute;
+ left: 0;
+ top: 1742px;
+ width: 1080px;
+ height: 132px;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ gap: 14px;
+ }
+ #brand-mark {
+ display: block;
+ height: 52px;
+ width: auto;
+ }
+ #brand-domain {
+ font-family: "Courier Prime", monospace;
+ font-weight: 700;
+ font-size: 27px;
+ letter-spacing: 4px;
+ color: #602640;
+ opacity: 0.62;
+ }
#nrv-video {
position: absolute;
left: 380px;
@@ -1961,6 +2038,10 @@ defaults, so this behaves exactly like the preview above until you change one:
</svg>
<div class="cl-rule" style="left: 58px; top: 1412px"></div>
</div>
+ <div id="brand-strip">
+ <img id="brand-mark" src="assets/hyperframes-logo-black.svg" alt="" />
+ <div id="brand-domain">hyperframes.heygen.com</div>
+ </div>
<div id="nrv-video">
<div id="nrv-play">
<svg width="52" height="58" viewBox="0 0 44 48" fill="none">
@@ -2596,6 +2677,17 @@ defaults, so this behaves exactly like the preview above until you change one:
values[1].textContent = t(vars.check2Value, "IN 4K", 8);
labels[2].textContent = t(vars.check3Label, "SHIP", 8);
values[2].textContent = t(vars.check3Value, "TODAY", 8);
+ document.getElementById("brand-domain").textContent = t(
+ vars.brandDomain,
+ "hyperframes.heygen.com",
+ 30,
+ );
+ // An image slot arrives as a URL. Leave the packaged mark in place when it is absent,
+ // so a remix that could not resolve a logo signs off with no claim rather than a
+ // broken image.
+ if (typeof vars.brandLogo === "string" && vars.brandLogo.trim()) {
+ document.getElementById("brand-mark").setAttribute("src", vars.brandLogo.trim());
+ }
})();
const FPS = 30;
const EV = [
diff --git a/docs/catalog/blocks/notification-cascade.mdx b/docs/catalog/blocks/notification-cascade.mdx
index f895ccce1c..9129470678 100644
--- a/docs/catalog/blocks/notification-cascade.mdx
+++ b/docs/catalog/blocks/notification-cascade.mdx
@@ -10,7 +10,7 @@ import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
previewSrc="/public/catalog/blocks/notification-cascade.json"
compositionId="notification-cascade"
compositionSrc="compositions/notification-cascade.html"
- variables={[{"id":"notifTitle","type":"string","role":"content","label":"Notification title","description":"Bold first line on every banner.","default":"New render"},{"id":"message1","type":"string","role":"content","label":"Message 1","description":"Subtitle of the first banner to land.","default":"Launch video is ready."},{"id":"message2","type":"string","role":"content","label":"Message 2","description":"Subtitle of the second banner.","default":"All checks passed."},{"id":"message3","type":"string","role":"content","label":"Message 3","description":"Subtitle of the third banner.","default":"4K render done in 92s."},{"id":"message4","type":"string","role":"content","label":"Message 4","description":"Subtitle of the fourth banner.","default":"Published to the catalog."},{"id":"appName","type":"string","role":"content","label":"App name","description":"Small credit in the corner of every banner.","default":"HyperFrames"},{"id":"headlineTop","type":"string","role":"content","label":"End-card line 1","description":"First line of the closing card.","default":"SHIP VIDEO"},{"id":"headlineAccent","type":"string","role":"content","label":"End-card line 2","description":"Accented second line of the closing card.","default":"FROM HTML"},{"id":"footerText","type":"string","role":"content","label":"End-card footer","description":"URL or call to action under the headline.","default":"hyperframes.heygen.com"},{"id":"brandLogo","type":"image","role":"content","label":"Brand logo","description":"Transparent logo centered on the closing card.","default":"assets/hyperframes-logo-white.svg"}]}
+ variables={[{"id":"notifTitle","type":"string","role":"content","label":"Notification title","description":"Bold first line on every banner.","default":"New render"},{"id":"message1","type":"string","role":"content","label":"Message 1","description":"Subtitle of the first banner to land.","default":"Launch video is ready."},{"id":"message2","type":"string","role":"content","label":"Message 2","description":"Subtitle of the second banner.","default":"All checks passed."},{"id":"message3","type":"string","role":"content","label":"Message 3","description":"Subtitle of the third banner.","default":"4K render done in 92s."},{"id":"message4","type":"string","role":"content","label":"Message 4","description":"Subtitle of the fourth banner.","default":"Published to the catalog."},{"id":"appName","type":"string","role":"content","label":"App name","description":"Name of the brand this video promotes, credited in the corner of every banner. Use the real name of that brand.","portrays":["subject_name"],"default":"HyperFrames"},{"id":"headlineTop","type":"string","role":"content","label":"End-card line 1","description":"First line of the closing card.","default":"SHIP VIDEO"},{"id":"headlineAccent","type":"string","role":"content","label":"End-card line 2","description":"Accented second line of the closing card.","default":"FROM HTML"},{"id":"footerText","type":"string","role":"content","label":"End-card footer","description":"Domain of the brand this video promotes, under the end-card headline. Use the real domain, or a call to action when no domain fits.","portrays":["subject_domain"],"default":"hyperframes.heygen.com"},{"id":"brandLogo","type":"image","role":"content","label":"Brand logo","description":"Transparent mark of the brand this video promotes, centered on the closing card.","portrays":["subject_logo"],"default":"assets/hyperframes-logo-white.svg"}]}
>
```html notification-cascade.html
@@ -23,11 +23,11 @@ import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
{ "id": "message2", "type": "string", "role": "content", "label": "Message 2", "description": "Subtitle of the second banner.", "default": "All checks passed." },
{ "id": "message3", "type": "string", "role": "content", "label": "Message 3", "description": "Subtitle of the third banner.", "default": "4K render done in 92s." },
{ "id": "message4", "type": "string", "role": "content", "label": "Message 4", "description": "Subtitle of the fourth banner.", "default": "Published to the catalog." },
- { "id": "appName", "type": "string", "role": "content", "label": "App name", "description": "Small credit in the corner of every banner.", "default": "HyperFrames" },
+ { "id": "appName", "type": "string", "role": "content", "label": "App name", "description": "Name of the brand this video promotes, credited in the corner of every banner. Use the real name of that brand.", "portrays": ["subject_name"], "default": "HyperFrames" },
{ "id": "headlineTop", "type": "string", "role": "content", "label": "End-card line 1", "description": "First line of the closing card.", "default": "SHIP VIDEO" },
{ "id": "headlineAccent", "type": "string", "role": "content", "label": "End-card line 2", "description": "Accented second line of the closing card.", "default": "FROM HTML" },
- { "id": "footerText", "type": "string", "role": "content", "label": "End-card footer", "description": "URL or call to action under the headline.", "default": "hyperframes.heygen.com" },
- { "id": "brandLogo", "type": "image", "role": "content", "label": "Brand logo", "description": "Transparent logo centered on the closing card.", "default": "assets/hyperframes-logo-white.svg" }
+ { "id": "footerText", "type": "string", "role": "content", "label": "End-card footer", "description": "Domain of the brand this video promotes, under the end-card headline. Use the real domain, or a call to action when no domain fits.", "portrays": ["subject_domain"], "default": "hyperframes.heygen.com" },
+ { "id": "brandLogo", "type": "image", "role": "content", "label": "Brand logo", "description": "Transparent mark of the brand this video promotes, centered on the closing card.", "portrays": ["subject_logo"], "default": "assets/hyperframes-logo-white.svg" }
]'
>
<head>
@@ -575,11 +575,11 @@ want to change on the element:
| `message2` | `All checks passed.` | string | Subtitle of the second banner. |
| `message3` | `4K render done in 92s.` | string | Subtitle of the third banner. |
| `message4` | `Published to the catalog.` | string | Subtitle of the fourth banner. |
-| `appName` | `HyperFrames` | string | Small credit in the corner of every banner. |
+| `appName` | `HyperFrames` | string | Name of the brand this video promotes, credited in the corner of every banner. Use the real name of that brand. |
| `headlineTop` | `SHIP VIDEO` | string | First line of the closing card. |
| `headlineAccent` | `FROM HTML` | string | Accented second line of the closing card. |
-| `footerText` | `hyperframes.heygen.com` | string | URL or call to action under the headline. |
-| `brandLogo` | `assets/hyperframes-logo-white.svg` | image | Transparent logo centered on the closing card. |
+| `footerText` | `hyperframes.heygen.com` | string | Domain of the brand this video promotes, under the end-card headline. Use the real domain, or a call to action when no domain fits. |
+| `brandLogo` | `assets/hyperframes-logo-white.svg` | image | Transparent mark of the brand this video promotes, centered on the closing card. |
Set them with `data-variable-values` on the element that mounts it. These are the
defaults, so this behaves exactly like the preview above until you change one:
@@ -606,11 +606,11 @@ defaults, so this behaves exactly like the preview above until you change one:
{ "id": "message2", "type": "string", "role": "content", "label": "Message 2", "description": "Subtitle of the second banner.", "default": "All checks passed." },
{ "id": "message3", "type": "string", "role": "content", "label": "Message 3", "description": "Subtitle of the third banner.", "default": "4K render done in 92s." },
{ "id": "message4", "type": "string", "role": "content", "label": "Message 4", "description": "Subtitle of the fourth banner.", "default": "Published to the catalog." },
- { "id": "appName", "type": "string", "role": "content", "label": "App name", "description": "Small credit in the corner of every banner.", "default": "HyperFrames" },
+ { "id": "appName", "type": "string", "role": "content", "label": "App name", "description": "Name of the brand this video promotes, credited in the corner of every banner. Use the real name of that brand.", "portrays": ["subject_name"], "default": "HyperFrames" },
{ "id": "headlineTop", "type": "string", "role": "content", "label": "End-card line 1", "description": "First line of the closing card.", "default": "SHIP VIDEO" },
{ "id": "headlineAccent", "type": "string", "role": "content", "label": "End-card line 2", "description": "Accented second line of the closing card.", "default": "FROM HTML" },
- { "id": "footerText", "type": "string", "role": "content", "label": "End-card footer", "description": "URL or call to action under the headline.", "default": "hyperframes.heygen.com" },
- { "id": "brandLogo", "type": "image", "role": "content", "label": "Brand logo", "description": "Transparent logo centered on the closing card.", "default": "assets/hyperframes-logo-white.svg" }
+ { "id": "footerText", "type": "string", "role": "content", "label": "End-card footer", "description": "Domain of the brand this video promotes, under the end-card headline. Use the real domain, or a call to action when no domain fits.", "portrays": ["subject_domain"], "default": "hyperframes.heygen.com" },
+ { "id": "brandLogo", "type": "image", "role": "content", "label": "Brand logo", "description": "Transparent mark of the brand this video promotes, centered on the closing card.", "portrays": ["subject_logo"], "default": "assets/hyperframes-logo-white.svg" }
]'
>
<head>
diff --git a/docs/catalog/blocks/share-sheet-carousel.mdx b/docs/catalog/blocks/share-sheet-carousel.mdx
index c09397325e..1894b70367 100644
--- a/docs/catalog/blocks/share-sheet-carousel.mdx
+++ b/docs/catalog/blocks/share-sheet-carousel.mdx
@@ -10,7 +10,7 @@ import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
previewSrc="/public/catalog/blocks/share-sheet-carousel.json"
compositionId="share-sheet-carousel"
compositionSrc="compositions/share-sheet-carousel.html"
- variables={[{"id":"shareTitle","type":"string","role":"content","label":"Sheet title","description":"Heading at the top of the share sheet.","default":"Share"},{"id":"senderName","type":"string","role":"content","label":"Sender","description":"Bold name in the sheet subtitle.","default":"HyperFrames"},{"id":"itemLabel","type":"string","role":"content","label":"Item","description":"What the sender is offering, completing the sentence \"… would like to share …\".","default":"a video"},{"id":"stripText","type":"string","role":"content","label":"Brand strip","description":"Small-caps line under the preview, beside the logo.","default":"OPEN-SOURCE VIDEO ENGINE · SHIP FROM HTML"},{"id":"acceptLabel","type":"string","role":"content","label":"Accept label","description":"Right-hand action button.","default":"Accept"},{"id":"declineLabel","type":"string","role":"content","label":"Decline label","description":"Left-hand action button.","default":"Decline"},{"id":"slideImage1","type":"image","role":"content","label":"Slide image 1","description":"First carousel image; also fills the blurred background.","default":"assets/slide-01.jpg"},{"id":"slideImage2","type":"image","role":"content","label":"Slide image 2","description":"Second carousel image; also fills the blurred background.","default":"assets/slide-02.jpg"},{"id":"slideImage3","type":"image","role":"content","label":"Slide image 3","description":"Third carousel image; also fills the blurred background.","default":"assets/slide-03.jpg"},{"id":"slideImage4","type":"image","role":"content","label":"Slide image 4","description":"Fourth carousel image; also fills the blurred background.","default":"assets/slide-04.jpg"},{"id":"brandLogo","type":"image","role":"content","label":"Brand logo","description":"Transparent horizontal wordmark in the preview strip.","default":"assets/hyperframes-logo-black.svg"}]}
+ variables={[{"id":"shareTitle","type":"string","role":"content","label":"Sheet title","description":"Heading at the top of the share sheet.","default":"Share"},{"id":"senderName","type":"string","role":"content","label":"Sender","description":"Name of the brand this video promotes, shown as the sender offering the item. Use the real name of that brand.","portrays":["subject_name"],"default":"HyperFrames"},{"id":"itemLabel","type":"string","role":"content","label":"Item","description":"What the sender is offering, completing the sentence \"… would like to share …\".","default":"a video"},{"id":"stripText","type":"string","role":"content","label":"Brand strip","description":"Positioning line of the brand this video promotes, in small caps beside its logo.","portrays":["subject_tagline"],"default":"OPEN-SOURCE VIDEO ENGINE · SHIP FROM HTML"},{"id":"acceptLabel","type":"string","role":"content","label":"Accept label","description":"Right-hand action button.","default":"Accept"},{"id":"declineLabel","type":"string","role":"content","label":"Decline label","description":"Left-hand action button.","default":"Decline"},{"id":"slideImage1","type":"image","role":"content","label":"Slide image 1","description":"First carousel image; also fills the blurred background.","default":"assets/slide-01.jpg"},{"id":"slideImage2","type":"image","role":"content","label":"Slide image 2","description":"Second carousel image; also fills the blurred background.","default":"assets/slide-02.jpg"},{"id":"slideImage3","type":"image","role":"content","label":"Slide image 3","description":"Third carousel image; also fills the blurred background.","default":"assets/slide-03.jpg"},{"id":"slideImage4","type":"image","role":"content","label":"Slide image 4","description":"Fourth carousel image; also fills the blurred background.","default":"assets/slide-04.jpg"},{"id":"brandLogo","type":"image","role":"content","label":"Brand logo","description":"Transparent horizontal wordmark of the brand this video promotes, in the preview strip.","portrays":["subject_logo"],"default":"assets/hyperframes-logo-black.svg"}]}
>
```html share-sheet-carousel.html
@@ -19,16 +19,16 @@ import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
lang="en"
data-composition-variables='[
{ "id": "shareTitle", "type": "string", "role": "content", "label": "Sheet title", "description": "Heading at the top of the share sheet.", "default": "Share" },
- { "id": "senderName", "type": "string", "role": "content", "label": "Sender", "description": "Bold name in the sheet subtitle.", "default": "HyperFrames" },
+ { "id": "senderName", "type": "string", "role": "content", "label": "Sender", "description": "Name of the brand this video promotes, shown as the sender offering the item. Use the real name of that brand.", "portrays": ["subject_name"], "default": "HyperFrames" },
{ "id": "itemLabel", "type": "string", "role": "content", "label": "Item", "description": "What the sender is offering, completing the sentence \"… would like to share …\".", "default": "a video" },
- { "id": "stripText", "type": "string", "role": "content", "label": "Brand strip", "description": "Small-caps line under the preview, beside the logo.", "default": "OPEN-SOURCE VIDEO ENGINE · SHIP FROM HTML" },
+ { "id": "stripText", "type": "string", "role": "content", "label": "Brand strip", "description": "Positioning line of the brand this video promotes, in small caps beside its logo.", "portrays": ["subject_tagline"], "default": "OPEN-SOURCE VIDEO ENGINE · SHIP FROM HTML" },
{ "id": "acceptLabel", "type": "string", "role": "content", "label": "Accept label", "description": "Right-hand action button.", "default": "Accept" },
{ "id": "declineLabel", "type": "string", "role": "content", "label": "Decline label", "description": "Left-hand action button.", "default": "Decline" },
{ "id": "slideImage1", "type": "image", "role": "content", "label": "Slide image 1", "description": "First carousel image; also fills the blurred background.", "default": "assets/slide-01.jpg" },
{ "id": "slideImage2", "type": "image", "role": "content", "label": "Slide image 2", "description": "Second carousel image; also fills the blurred background.", "default": "assets/slide-02.jpg" },
{ "id": "slideImage3", "type": "image", "role": "content", "label": "Slide image 3", "description": "Third carousel image; also fills the blurred background.", "default": "assets/slide-03.jpg" },
{ "id": "slideImage4", "type": "image", "role": "content", "label": "Slide image 4", "description": "Fourth carousel image; also fills the blurred background.", "default": "assets/slide-04.jpg" },
- { "id": "brandLogo", "type": "image", "role": "content", "label": "Brand logo", "description": "Transparent horizontal wordmark in the preview strip.", "default": "assets/hyperframes-logo-black.svg" }
+ { "id": "brandLogo", "type": "image", "role": "content", "label": "Brand logo", "description": "Transparent horizontal wordmark of the brand this video promotes, in the preview strip.", "portrays": ["subject_logo"], "default": "assets/hyperframes-logo-black.svg" }
]'
>
<head>
@@ -443,16 +443,16 @@ want to change on the element:
| Variable | Default | Accepts | What it does |
| --- | --- | --- | --- |
| `shareTitle` | `Share` | string | Heading at the top of the share sheet. |
-| `senderName` | `HyperFrames` | string | Bold name in the sheet subtitle. |
+| `senderName` | `HyperFrames` | string | Name of the brand this video promotes, shown as the sender offering the item. Use the real name of that brand. |
| `itemLabel` | `a video` | string | What the sender is offering, completing the sentence "… would like to share …". |
-| `stripText` | `OPEN-SOURCE VIDEO ENGINE · SHIP FROM HTML` | string | Small-caps line under the preview, beside the logo. |
+| `stripText` | `OPEN-SOURCE VIDEO ENGINE · SHIP FROM HTML` | string | Positioning line of the brand this video promotes, in small caps beside its logo. |
| `acceptLabel` | `Accept` | string | Right-hand action button. |
| `declineLabel` | `Decline` | string | Left-hand action button. |
| `slideImage1` | `assets/slide-01.jpg` | image | First carousel image; also fills the blurred background. |
| `slideImage2` | `assets/slide-02.jpg` | image | Second carousel image; also fills the blurred background. |
| `slideImage3` | `assets/slide-03.jpg` | image | Third carousel image; also fills the blurred background. |
| `slideImage4` | `assets/slide-04.jpg` | image | Fourth carousel image; also fills the blurred background. |
-| `brandLogo` | `assets/hyperframes-logo-black.svg` | image | Transparent horizontal wordmark in the preview strip. |
+| `brandLogo` | `assets/hyperframes-logo-black.svg` | image | Transparent horizontal wordmark of the brand this video promotes, in the preview strip. |
Set them with `data-variable-values` on the element that mounts it. These are the
defaults, so this behaves exactly like the preview above until you change one:
@@ -475,16 +475,16 @@ defaults, so this behaves exactly like the preview above until you change one:
lang="en"
data-composition-variables='[
{ "id": "shareTitle", "type": "string", "role": "content", "label": "Sheet title", "description": "Heading at the top of the share sheet.", "default": "Share" },
- { "id": "senderName", "type": "string", "role": "content", "label": "Sender", "description": "Bold name in the sheet subtitle.", "default": "HyperFrames" },
+ { "id": "senderName", "type": "string", "role": "content", "label": "Sender", "description": "Name of the brand this video promotes, shown as the sender offering the item. Use the real name of that brand.", "portrays": ["subject_name"], "default": "HyperFrames" },
{ "id": "itemLabel", "type": "string", "role": "content", "label": "Item", "description": "What the sender is offering, completing the sentence \"… would like to share …\".", "default": "a video" },
- { "id": "stripText", "type": "string", "role": "content", "label": "Brand strip", "description": "Small-caps line under the preview, beside the logo.", "default": "OPEN-SOURCE VIDEO ENGINE · SHIP FROM HTML" },
+ { "id": "stripText", "type": "string", "role": "content", "label": "Brand strip", "description": "Positioning line of the brand this video promotes, in small caps beside its logo.", "portrays": ["subject_tagline"], "default": "OPEN-SOURCE VIDEO ENGINE · SHIP FROM HTML" },
{ "id": "acceptLabel", "type": "string", "role": "content", "label": "Accept label", "description": "Right-hand action button.", "default": "Accept" },
{ "id": "declineLabel", "type": "string", "role": "content", "label": "Decline label", "description": "Left-hand action button.", "default": "Decline" },
{ "id": "slideImage1", "type": "image", "role": "content", "label": "Slide image 1", "description": "First carousel image; also fills the blurred background.", "default": "assets/slide-01.jpg" },
{ "id": "slideImage2", "type": "image", "role": "content", "label": "Slide image 2", "description": "Second carousel image; also fills the blurred background.", "default": "assets/slide-02.jpg" },
{ "id": "slideImage3", "type": "image", "role": "content", "label": "Slide image 3", "description": "Third carousel image; also fills the blurred background.", "default": "assets/slide-03.jpg" },
{ "id": "slideImage4", "type": "image", "role": "content", "label": "Slide image 4", "description": "Fourth carousel image; also fills the blurred background.", "default": "assets/slide-04.jpg" },
- { "id": "brandLogo", "type": "image", "role": "content", "label": "Brand logo", "description": "Transparent horizontal wordmark in the preview strip.", "default": "assets/hyperframes-logo-black.svg" }
+ { "id": "brandLogo", "type": "image", "role": "content", "label": "Brand logo", "description": "Transparent horizontal wordmark of the brand this video promotes, in the preview strip.", "portrays": ["subject_logo"], "default": "assets/hyperframes-logo-black.svg" }
]'
>
<head>
diff --git a/docs/catalog/blocks/slack-notification-ad.mdx b/docs/catalog/blocks/slack-notification-ad.mdx
index 9140ef3d12..4df9d1bade 100644
--- a/docs/catalog/blocks/slack-notification-ad.mdx
+++ b/docs/catalog/blocks/slack-notification-ad.mdx
@@ -64,9 +64,9 @@ Move it in time with `data-start`. Put it on a different timeline row with
{ "id": "request10Text", "type": "string", "role": "content", "label": "Request 10 message", "description": "Tenth Slack notification message.", "default": "investor update needs a quick video walkthrough" },
{ "id": "request11Title", "type": "string", "role": "content", "label": "Request 11 sender", "description": "Eleventh Slack notification sender or channel.", "default": "Ben Liu" },
{ "id": "request11Text", "type": "string", "role": "content", "label": "Request 11 message", "description": "Eleventh Slack notification message.", "default": "one more: Product Hunt launch video" },
- { "id": "payoffTitle", "type": "string", "role": "content", "label": "Payoff sender", "description": "Final brand payoff title.", "default": "HeyGen" },
- { "id": "payoffText", "type": "string", "role": "content", "label": "Payoff message", "description": "Final brand payoff message.", "default": "Heard you needed some videos?" },
- { "id": "payoffIcon", "type": "image", "role": "content", "label": "Payoff logo", "description": "Logo shown only in the final payoff notification.", "default": "assets/img/heygen-mark.svg" }
+ { "id": "payoffTitle", "type": "string", "role": "content", "label": "Payoff sender", "description": "Sender of the final payoff notification: the brand this video promotes, by its real name.", "portrays": ["subject_name", "recommended_position"], "default": "HeyGen" },
+ { "id": "payoffText", "type": "string", "role": "content", "label": "Payoff message", "description": "Payoff message from the brand this video promotes.", "default": "Heard you needed some videos?" },
+ { "id": "payoffIcon", "type": "image", "role": "content", "label": "Payoff logo", "description": "Mark of the brand this video promotes, shown only in the final payoff notification.", "portrays": ["subject_logo"], "default": "assets/img/heygen-mark.svg" }
]'
>
<head>
diff --git a/docs/concepts/variables.mdx b/docs/concepts/variables.mdx
index 72f5fa8b98..f6b9e62ad8 100644
--- a/docs/concepts/variables.mdx
+++ b/docs/concepts/variables.mdx
@@ -75,6 +75,39 @@ Supported declared types are:
The type lets Studio show the right control and lets rendering catch invalid
values.
+### Say what a slot means, not where it sits
+
+`label` and `description` are read by people and by agents. A description that
+only gives a position ("small credit in the corner of every banner") leaves the
+slot's meaning to be guessed; one that gives the meaning ("name of the brand this
+video promotes") can be filled correctly without opening the HTML.
+
+For a template that will be remixed against someone else's brand, add
+`portrays` — a list naming what the slot stands for. It is optional metadata,
+ignored by rendering, and it tells an editing agent which slots carry identity
+and must not be filled with invented copy:
+
+```html compositions/card.html
+{"id":"appName","type":"string","label":"App name",
+ "description":"Name of the brand this video promotes, credited in the corner of every banner.",
+ "portrays":["subject_name"],"default":"HyperFrames"}
+```
+
+| Value | The slot stands for |
+| ---------------------- | -------------------------------------------------------------------------- |
+| `subject_name` | The promoted brand's own name |
+| `subject_domain` | Its domain, URL, or handle |
+| `subject_tagline` | Its own positioning line |
+| `subject_logo` | Its mark or wordmark |
+| `recommended_position` | The winning or featured slot in a ranking, so the promoted brand goes there |
+| `competitor_name` | A real product other than the promoted brand |
+| `authority_badge` | A claim of endorsement, ranking authority, rating, or source |
+| `host_identity` | The depicted application's own identity, which a remix leaves alone |
+
+`portrays` is orthogonal to `role`: `role` says which aspect of the composition a
+knob affects (`content`, `style`, `timing`, `motion`, `layout`), while `portrays`
+says what the value means to a viewer.
+
## Bind common values without a script
Use direct bindings for the normal cases:
diff --git a/packages/lint/src/rules/gsap.test.ts b/packages/lint/src/rules/gsap.test.ts
index 33f3083c60..97511a7cff 100644
--- a/packages/lint/src/rules/gsap.test.ts
+++ b/packages/lint/src/rules/gsap.test.ts
@@ -3070,4 +3070,104 @@ describe("SVG draw-on rules", () => {
).toBeDefined();
});
});
+ describe("gsap_timeline_return_used_as_tween", () => {
+ const composition = (body: string) => `
+<html><body>
+ <div data-composition-id="c1" data-width="1080" data-height="1920"></div>
+ <script>
+ window.__timelines = window.__timelines || {};
+ const tl = gsap.timeline({ paused: true });
+ ${body}
+ window.__timelines["c1"] = tl;
+ </script>
+</body></html>`;
+
+ it("errors when a rebuild collects tl.to() returns to kill them later", async () => {
+ // The real shape this exists for: a caret-follow scroll rebuilt on document.fonts.ready.
+ // Every pushed value is `tl`, so the rebuild called kill() on the master timeline 49 times
+ // and then stacked its new keyframes on top of the ones it meant to replace.
+ const result = await lintHyperframeHtml(
+ composition(`
+ let scrollTweens = [];
+ const layout = () => {
+ scrollTweens.forEach((tw) => tw.kill());
+ scrollTweens = [];
+ scrollTweens.push(tl.to("#typed", { x: -40, duration: 0.08 }, 1));
+ };
+ layout();
+ document.fonts.ready.then(layout);`),
+ );
+ const finding = result.findings.find((f) => f.code === "gsap_timeline_return_used_as_tween");
+ expect(finding).toBeDefined();
+ expect(finding?.severity).toBe("error");
+ expect(finding?.message).toContain("returns THE TIMELINE ITSELF");
+ });
+
+ it("errors when a bound tl.to() return is killed", async () => {
+ const result = await lintHyperframeHtml(
+ composition(`
+ const fade = tl.to("#card", { opacity: 1, duration: 0.5 }, 0);
+ document.fonts.ready.then(() => fade.kill());`),
+ );
+ expect(
+ result.findings.find((f) => f.code === "gsap_timeline_return_used_as_tween"),
+ ).toBeDefined();
+ });
+
+ it("accepts a nested timeline, which is what the fix hint prescribes", async () => {
+ // A nested child is a real object: killing it replaces exactly its own keyframes and
+ // cannot reach the parent. Adding it at 0 keeps every child's absolute time.
+ const result = await lintHyperframeHtml(
+ composition(`
+ let caretTl = null;
+ const layout = () => {
+ if (caretTl) caretTl.kill();
+ caretTl = gsap.timeline();
+ caretTl.to("#typed", { x: -40, duration: 0.08 }, 1);
+ tl.add(caretTl, 0);
+ };
+ layout();
+ document.fonts.ready.then(layout);`),
+ );
+ expect(
+ result.findings.find((f) => f.code === "gsap_timeline_return_used_as_tween"),
+ ).toBeUndefined();
+ });
+
+ it("accepts gsap.to(), which really does return a tween", async () => {
+ const result = await lintHyperframeHtml(
+ composition(`
+ const tween = gsap.to("#card", { opacity: 1, duration: 0.5, paused: true });
+ tl.add(tween, 0);
+ document.fonts.ready.then(() => tween.kill());`),
+ );
+ expect(
+ result.findings.find((f) => f.code === "gsap_timeline_return_used_as_tween"),
+ ).toBeUndefined();
+ });
+
+ it("does not flag Array.from or a chained tl.to() that is never captured", async () => {
+ const result = await lintHyperframeHtml(
+ composition(`
+ const words = Array.from(document.querySelectorAll(".w"));
+ tl.to(words, { opacity: 1, duration: 0.3 }, 0).to(words, { y: 0, duration: 0.3 }, 0.3);`),
+ );
+ expect(
+ result.findings.find((f) => f.code === "gsap_timeline_return_used_as_tween"),
+ ).toBeUndefined();
+ });
+
+ it("does not flag a bound return that is never treated as a tween", async () => {
+ // Pointless but harmless: the value is just `tl` again, and nothing tween-scoped is
+ // aimed at it. Flagging this would be noise.
+ const result = await lintHyperframeHtml(
+ composition(`
+ const chain = tl.to("#card", { opacity: 1, duration: 0.5 }, 0);
+ chain.to("#card2", { opacity: 1, duration: 0.5 }, 1);`),
+ );
+ expect(
+ result.findings.find((f) => f.code === "gsap_timeline_return_used_as_tween"),
+ ).toBeUndefined();
+ });
+ });
});
diff --git a/packages/lint/src/rules/gsap.ts b/packages/lint/src/rules/gsap.ts
index c87d75e136..6cfa54b17d 100644
--- a/packages/lint/src/rules/gsap.ts
+++ b/packages/lint/src/rules/gsap.ts
@@ -2156,6 +2156,61 @@ export const gsapRules: LintRule<LintContext>[] = [
return findings;
},
+ // gsap_timeline_return_used_as_tween — `tl.to()` returns the TIMELINE, not the tween it just
+ // created. `gsap.to()` returns a Tween, so the two read identically and behave nothing alike.
+ // Capturing the timeline's return and later treating it as an individual animation aims a
+ // tween-scoped call at the whole composition: `.kill()` on it interrupts the master timeline
+ // and detaches it from its parent, which stops a parent-driven seek dead while leaving an
+ // explicit `tl.progress()` still working -- so a render of the packaged defaults looks fine
+ // and only live playback breaks. A rebuild that collected these to discard them also leaves
+ // every previous keyframe in place and stacks the new ones on top.
+ ({ scripts }) => {
+ const findings: HyperframeLintFinding[] = [];
+ for (const script of scripts) {
+ const source = stripJsComments(script.content);
+ const timelineVars = collectTimelineVarNames(source);
+ if (timelineVars.length === 0) continue;
+ const receivers = timelineVars.map(escapeRegExp).join("|");
+ // Two capture shapes: collecting into an array, or binding to a name. Keying on the
+ // known timeline handles is what keeps `gsap.to()` -- and `Array.from()` -- out of it.
+ const pattern = new RegExp(
+ String.raw`(?:\.push\s*\(\s*|(?:const|let|var)\s+([A-Za-z_$][\w$]*)\s*=\s*)(?:${receivers})\s*\.\s*(to|from|fromTo|set|call|add)\s*\(`,
+ "g",
+ );
+ let match: RegExpExecArray | null;
+ while ((match = pattern.exec(source)) !== null) {
+ const boundName = match[1];
+ const method = match[2]!;
+ // A bound name is only a problem once something tween-scoped is aimed at it; pushing
+ // into an array is already the collect-to-discard shape this exists to stop.
+ if (boundName) {
+ const treatedAsTween = new RegExp(
+ String.raw`\b${escapeRegExp(boundName)}\s*\.\s*(?:kill|revert|invalidate|pause|resume|restart|seek|progress|timeScale)\s*\(`,
+ );
+ if (!treatedAsTween.test(source)) continue;
+ }
+ const contextStart = Math.max(0, match.index - 40);
+ findings.push({
+ code: "gsap_timeline_return_used_as_tween",
+ severity: "error",
+ message:
+ `\`${match[0].includes(".push") ? "push" : boundName}\` captures the return of \`.${method}()\` on timeline \`${timelineVars[0]}\`, ` +
+ "but a timeline's `.to()`/`.from()`/`.set()` returns THE TIMELINE ITSELF, not the tween it created. " +
+ "Every captured value is the same master timeline, so a tween-scoped call on it — `.kill()` above all — " +
+ "hits the whole composition: it interrupts the timeline and detaches it from its parent, which freezes a " +
+ "parent-driven seek while an explicit `tl.progress()` keeps working. Only `gsap.to()` returns a tween.",
+ fixHint:
+ "To build a group of keyframes you can later discard, put them in a nested timeline: " +
+ "`const nested = gsap.timeline(); nested.to(...); tl.add(nested, 0);` — then `nested.kill()` " +
+ "replaces exactly those keyframes and cannot reach `tl`. Children keep their absolute times when the " +
+ "nest is added at 0. To hold a single real tween, create it with `gsap.to(...)` and place it with `tl.add(tween, at)`.",
+ snippet: truncateSnippet(source.slice(contextStart, match.index + match[0].length + 60)),
+ });
+ }
+ }
+ return findings;
+ },
+
// gsap_group_selector_keyframes
({ scripts }) => {
const findings: HyperframeLintFinding[] = [];
diff --git a/registry/blocks/ai-chat-reveal/TEMPLATE.md b/registry/blocks/ai-chat-reveal/TEMPLATE.md
index 2d54e49d15..e757aa5f46 100644
--- a/registry/blocks/ai-chat-reveal/TEMPLATE.md
+++ b/registry/blocks/ai-chat-reveal/TEMPLATE.md
@@ -2,7 +2,7 @@
## Surface ownership
-This is a generic assistant conversation followed by a brandable closing card. The website brand may appear in the declared conversation and closing-card slots; the chat shell and motion remain template-owned.
+This is a generic assistant conversation followed by a brandable closing card. The website brand appears in the declared conversation and closing-card slots; the chat shell and motion remain template-owned. The remix is an advertisement for that brand: the closing card carries its real name, its real domain, and its own mark, while the assistant answering in the conversation keeps its own name.
## Editable slots
diff --git a/registry/blocks/ai-chat-reveal/ai-chat-reveal.html b/registry/blocks/ai-chat-reveal/ai-chat-reveal.html
index 8656468747..5cb85e9901 100644
--- a/registry/blocks/ai-chat-reveal/ai-chat-reveal.html
+++ b/registry/blocks/ai-chat-reveal/ai-chat-reveal.html
@@ -2,19 +2,19 @@
<html
lang="en"
data-composition-variables='[
- { "id": "botName", "type": "string", "role": "content", "label": "Assistant name", "description": "Title in the chat header.", "default": "Assistant" },
+ { "id": "botName", "type": "string", "role": "content", "label": "Assistant name", "description": "Name of the assistant answering in this mock chat. It belongs to the host product, never to the brand this video promotes.", "portrays": ["host_identity"], "default": "Assistant" },
{ "id": "userMessage", "type": "string", "role": "content", "label": "User message", "description": "The question typed on the keyboard and sent. Around 40 characters keeps the measured pacing.", "default": "How do I turn my HTML into real video?" },
- { "id": "answer1", "type": "string", "role": "content", "label": "Answer paragraph 1", "description": "First streamed paragraph.", "default": "You do not need an editor. HyperFrames renders the HTML you already write into deterministic, pixel-perfect video." },
+ { "id": "answer1", "type": "string", "role": "content", "label": "Answer paragraph 1", "description": "First streamed paragraph. It names the brand this video promotes and says what that brand does.", "default": "You do not need an editor. HyperFrames renders the HTML you already write into deterministic, pixel-perfect video." },
{ "id": "answer2", "type": "string", "role": "content", "label": "Answer paragraph 2", "description": "Short second beat.", "default": "It is markup, not magic." },
{ "id": "answer3", "type": "string", "role": "content", "label": "Answer paragraph 3", "description": "Lead-in to the list.", "default": "What you get out of the box:" },
{ "id": "bullet1", "type": "string", "role": "content", "label": "Bullet 1", "description": "First list item.", "default": "A catalog of motion primitives you install and own" },
{ "id": "bullet2", "type": "string", "role": "content", "label": "Bullet 2", "description": "Second list item.", "default": "GSAP timelines that seek to any frame" },
{ "id": "bullet3", "type": "string", "role": "content", "label": "Bullet 3", "description": "Third list item.", "default": "4K renders from a single CLI command" },
{ "id": "ecHeadline", "type": "string", "role": "content", "label": "End-card headline", "description": "Closing card headline. A | breaks the line.", "default": "It&#39;s not magic.|It&#39;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": "brandLogo", "type": "image", "role": "content", "label": "Brand logo", "description": "Transparent logo in the closing-card header.", "default": "assets/hyperframes-logo-white.svg" }
+ { "id": "ecSub", "type": "string", "role": "content", "label": "End-card subline", "description": "Positioning sentence of the brand this video promotes, on the closing card.", "portrays": ["subject_tagline"], "default": "Open-source video rendering — write HTML, ship pixel-perfect video." },
+ { "id": "ecCta", "type": "string", "role": "content", "label": "End-card CTA", "description": "Closing-card button label, which names the brand this video promotes. Use the real name of that brand.", "portrays": ["subject_name"], "default": "Try HyperFrames" },
+ { "id": "ecFooter", "type": "string", "role": "content", "label": "End-card footer", "description": "Domain of the brand this video promotes, letter-spaced at the very bottom. Use the real domain.", "portrays": ["subject_domain"], "default": "HYPERFRAMES.HEYGEN.COM" },
+ { "id": "brandLogo", "type": "image", "role": "content", "label": "Brand logo", "description": "Transparent mark of the brand this video promotes, in the closing-card header.", "portrays": ["subject_logo"], "default": "assets/hyperframes-logo-white.svg" }
]'
>
<head>
diff --git a/registry/blocks/ai-chat-reveal/registry-item.json b/registry/blocks/ai-chat-reveal/registry-item.json
index 0815d6362e..cb9fe40371 100644
--- a/registry/blocks/ai-chat-reveal/registry-item.json
+++ b/registry/blocks/ai-chat-reveal/registry-item.json
@@ -17,7 +17,8 @@
"type": "string",
"role": "content",
"label": "Assistant name",
- "description": "Title in the chat header.",
+ "description": "Name of the assistant answering in this mock chat. It belongs to the host product, never to the brand this video promotes.",
+ "portrays": ["host_identity"],
"default": "Assistant"
},
{
@@ -33,7 +34,7 @@
"type": "string",
"role": "content",
"label": "Answer paragraph 1",
- "description": "First streamed paragraph.",
+ "description": "First streamed paragraph. It names the brand this video promotes and says what that brand does.",
"default": "You do not need an editor. HyperFrames renders the HTML you already write into deterministic, pixel-perfect video."
},
{
@@ -89,7 +90,8 @@
"type": "string",
"role": "content",
"label": "End-card subline",
- "description": "Supporting sentence on the closing card.",
+ "description": "Positioning sentence of the brand this video promotes, on the closing card.",
+ "portrays": ["subject_tagline"],
"default": "Open-source video rendering — write HTML, ship pixel-perfect video."
},
{
@@ -97,7 +99,8 @@
"type": "string",
"role": "content",
"label": "End-card CTA",
- "description": "Label on the closing card button.",
+ "description": "Closing-card button label, which names the brand this video promotes. Use the real name of that brand.",
+ "portrays": ["subject_name"],
"default": "Try HyperFrames"
},
{
@@ -105,7 +108,8 @@
"type": "string",
"role": "content",
"label": "End-card footer",
- "description": "Letter-spaced line at the very bottom.",
+ "description": "Domain of the brand this video promotes, letter-spaced at the very bottom. Use the real domain.",
+ "portrays": ["subject_domain"],
"default": "HYPERFRAMES.HEYGEN.COM"
},
{
@@ -113,7 +117,8 @@
"type": "image",
"role": "content",
"label": "Brand logo",
- "description": "Transparent logo in the closing-card header.",
+ "description": "Transparent mark of the brand this video promotes, in the closing-card header.",
+ "portrays": ["subject_logo"],
"default": "assets/hyperframes-logo-white.svg"
}
],
diff --git a/registry/blocks/chatgpt-exchange/TEMPLATE.md b/registry/blocks/chatgpt-exchange/TEMPLATE.md
index 532a87f706..911e7986c4 100644
--- a/registry/blocks/chatgpt-exchange/TEMPLATE.md
+++ b/registry/blocks/chatgpt-exchange/TEMPLATE.md
@@ -2,7 +2,7 @@
## Surface ownership
-This template depicts the ChatGPT application. OpenAI owns the surrounding application identity. The supplied website is only the subject discussed inside the conversation.
+This template depicts the ChatGPT application. OpenAI owns the surrounding application identity. The supplied website is the subject discussed inside the conversation, never the application around it. The remix is an advertisement for that brand: it takes the recommended first row under its real name, and the remaining rows name real competing products.
## Editable slots
diff --git a/registry/blocks/chatgpt-exchange/chatgpt-exchange.html b/registry/blocks/chatgpt-exchange/chatgpt-exchange.html
index c3f4b8c032..e16c7b88cd 100644
--- a/registry/blocks/chatgpt-exchange/chatgpt-exchange.html
+++ b/registry/blocks/chatgpt-exchange/chatgpt-exchange.html
@@ -10,21 +10,21 @@
{ "id": "tableHeadTool", "type": "string", "role": "content", "label": "Table heading 2", "description": "Tool column heading.", "default": "Best tool" },
{ "id": "tableHeadWhy", "type": "string", "role": "content", "label": "Table heading 3", "description": "Explanation column heading.", "default": "Why" },
{ "id": "row1Use", "type": "string", "role": "content", "label": "Row 1 use case", "description": "First comparison use case.", "default": "Overall realism" },
- { "id": "row1Tool", "type": "string", "role": "content", "label": "Row 1 tool", "description": "First recommended product.", "default": "HeyGen" },
- { "id": "row1Why", "type": "string", "role": "content", "label": "Row 1 explanation", "description": "First recommendation explanation.", "default": "Most natural facial expressions, lip sync, gestures, voice cloning and localization. Benchmark for talking head videos." },
- { "id": "row1Chip", "type": "string", "role": "content", "label": "Row 1 source", "description": "First source-chip label.", "default": "Official A.I Ranking" },
+ { "id": "row1Tool", "type": "string", "role": "content", "label": "Row 1 tool", "description": "Product in the recommended first row: the brand this video promotes, by its real name.", "portrays": ["subject_name", "recommended_position"], "default": "HeyGen" },
+ { "id": "row1Why", "type": "string", "role": "content", "label": "Row 1 explanation", "description": "Why the recommended first-row product wins. Describe the promoted brand from what its own site claims.", "portrays": ["recommended_position"], "default": "Most natural facial expressions, lip sync, gestures, voice cloning and localization. Benchmark for talking head videos." },
+ { "id": "row1Chip", "type": "string", "role": "content", "label": "Row 1 source", "description": "Source chip on the first row. It asserts where the ranking came from, so use a neutral label whenever the comparison is written for this remix.", "portrays": ["authority_badge"], "default": "Official A.I Ranking" },
{ "id": "row2Use", "type": "string", "role": "content", "label": "Row 2 use case", "description": "Second comparison use case.", "default": "Enterprise/training" },
- { "id": "row2Tool", "type": "string", "role": "content", "label": "Row 2 tool", "description": "Second recommended product.", "default": "Synthesia" },
+ { "id": "row2Tool", "type": "string", "role": "content", "label": "Row 2 tool", "description": "Product compared in the second row: a real product other than the brand this video promotes.", "portrays": ["competitor_name"], "default": "Synthesia" },
{ "id": "row2Why", "type": "string", "role": "content", "label": "Row 2 explanation", "description": "Second recommendation explanation.", "default": "Better collaboration, SCORM, compliance, team workflows; less creator-focused." },
- { "id": "row2Chip", "type": "string", "role": "content", "label": "Row 2 source", "description": "Second source-chip label.", "default": "Official A.I Ranking" },
+ { "id": "row2Chip", "type": "string", "role": "content", "label": "Row 2 source", "description": "Source chip on the second row. It asserts where the ranking came from, so use a neutral label whenever the comparison is written for this remix.", "portrays": ["authority_badge"], "default": "Official A.I Ranking" },
{ "id": "row3Use", "type": "string", "role": "content", "label": "Row 3 use case", "description": "Third comparison use case.", "default": "Mobile UGC" },
- { "id": "row3Tool", "type": "string", "role": "content", "label": "Row 3 tool", "description": "Third recommended product.", "default": "Captions" },
+ { "id": "row3Tool", "type": "string", "role": "content", "label": "Row 3 tool", "description": "Product compared in the third row: a real product other than the brand this video promotes.", "portrays": ["competitor_name"], "default": "Captions" },
{ "id": "row3Why", "type": "string", "role": "content", "label": "Row 3 explanation", "description": "Third recommendation explanation.", "default": "Extremely fast mobile workflow and social editing. Great for Reels creators." },
- { "id": "row3Chip", "type": "string", "role": "content", "label": "Row 3 source", "description": "Third source-chip label.", "default": "Creator Stack" },
+ { "id": "row3Chip", "type": "string", "role": "content", "label": "Row 3 source", "description": "Source chip on the third row. It asserts where the ranking came from, so use a neutral label whenever the comparison is written for this remix.", "portrays": ["authority_badge"], "default": "Creator Stack" },
{ "id": "row4Use", "type": "string", "role": "content", "label": "Row 4 use case", "description": "Fourth comparison use case.", "default": "Real-time conversations" },
- { "id": "row4Tool", "type": "string", "role": "content", "label": "Row 4 tool", "description": "Fourth recommended product.", "default": "Tavus" },
+ { "id": "row4Tool", "type": "string", "role": "content", "label": "Row 4 tool", "description": "Product compared in the fourth row: a real product other than the brand this video promotes.", "portrays": ["competitor_name"], "default": "Tavus" },
{ "id": "row4Why", "type": "string", "role": "content", "label": "Row 4 explanation", "description": "Fourth recommendation explanation.", "default": "Interactive avatars that can hold live conversations." },
- { "id": "row4Chip", "type": "string", "role": "content", "label": "Row 4 source", "description": "Fourth source-chip label.", "default": "Creator Stack" }
+ { "id": "row4Chip", "type": "string", "role": "content", "label": "Row 4 source", "description": "Source chip on the fourth row. It asserts where the ranking came from, so use a neutral label whenever the comparison is written for this remix.", "portrays": ["authority_badge"], "default": "Creator Stack" }
]'
>
<head>
@@ -1369,6 +1369,75 @@
tRead + T.readbackDur - 0.35,
);
+ /* ---- caret-following scroll in the composer.
+ `prompt` is an editable slot, but `.comp-text` is a fixed-width single line with
+ `white-space: pre` inside a composer that clips, and the packaged prompt already reaches
+ the mic. A longer one therefore slides under the mic and the send button and loses its
+ tail, with the caret hidden behind them -- the remix looks like it typed into nowhere.
+ A real single-line input scrolls its text left to keep the caret in view; this does the
+ same, on the very times the reveal already uses. Shrinking the type instead was the other
+ option and it is worse: it would shrink the packaged prompt too, since that prompt has no
+ headroom, and it still cannot absorb a prompt twice as long without becoming unreadable.
+ A prompt that fits emits no keyframes at all, so the packaged composition is untouched. */
+ const compTextEl = composer.querySelector("#cge-comp-text");
+ // The obstacle is the opaque round button, not the mic: the packaged prompt's caret already
+ // sits 2px past the mic's left edge, so measuring to the mic would scroll the packaged
+ // composition. The caret has 35px of clearance to the button, which is the real boundary.
+ const compStopEl = composer.querySelector("#cge-blue-btn");
+ const CARET_PAD = 8;
+ // The rebuild below has to discard exactly what the previous pass added, and `tl.to()`
+ // returns the TIMELINE, not the tween it just created -- so collecting those return values
+ // and killing them on the second pass kills the master timeline, and the composition stops
+ // dead. It only bites when there are keyframes to discard, i.e. an overflowing prompt: the
+ // exact remix this scroll exists for, and why a packaged-defaults render never saw it.
+ // One nested child timeline is a real object that can be killed and replaced, and killing
+ // it cannot reach `tl`.
+ let caretTl = null;
+ const layoutCaretScroll = () => {
+ if (caretTl) {
+ caretTl.kill();
+ caretTl = null;
+ // Only ever touch typedEl when there was scrolling to undo. A zero translate — or even
+ // a clearProps on an untouched element — stamps and removes a transform, which changes
+ // how the text rasterizes and makes the packaged render differ for no reason.
+ gsap.set(typedEl, { clearProps: "transform" });
+ }
+ if (!compTextEl || !compStopEl) return;
+ // Rects live in the scaled .screen space while offsets are layout px, so convert with the
+ // element's own ratio rather than reading --scale -- this then survives a change to it.
+ const box = compTextEl.getBoundingClientRect();
+ const ratio = compTextEl.offsetWidth ? box.width / compTextEl.offsetWidth : 1;
+ const limit =
+ (compStopEl.getBoundingClientRect().left - box.left) / (ratio || 1) - CARET_PAD;
+ if (!(limit > 0)) return;
+ // Collect the steps first, so a prompt that fits leaves typedEl alone entirely.
+ const steps = [];
+ let shift = 0;
+ chars.forEach((c, i) => {
+ const caret = curEls[i + 1];
+ if (!caret) return;
+ const want = Math.max(0, caret.offsetLeft - limit);
+ if (want > shift + 0.5) {
+ shift = want;
+ steps.push([charT[i], -shift]);
+ }
+ });
+ if (!steps.length) return;
+ // Children sit at the same absolute times as before, and the nest is added at 0, so the
+ // nested timeline's local clock is the master's -- the motion is unchanged.
+ caretTl = gsap.timeline();
+ steps.forEach(([at, x]) => {
+ caretTl.to(typedEl, { x, duration: 0.08, ease: "none" }, at);
+ });
+ // Back to the start when the composer empties, so the collapse animates from x=0.
+ caretTl.to(typedEl, { x: 0, duration: 0.01 }, tGo);
+ tl.add(caretTl, 0);
+ };
+ layoutCaretScroll();
+ // This composition builds its timeline once, so the first pass measures whatever font was
+ // live then. Re-measure when the embedded faces are ready.
+ document.fonts.ready.then(layoutCaretScroll);
+
window.__timelines["chatgpt-exchange"] = tl;
</script>
</body>
diff --git a/registry/blocks/claude-exchange/TEMPLATE.md b/registry/blocks/claude-exchange/TEMPLATE.md
index 44a69af50a..e59942442a 100644
--- a/registry/blocks/claude-exchange/TEMPLATE.md
+++ b/registry/blocks/claude-exchange/TEMPLATE.md
@@ -2,7 +2,7 @@
## Surface ownership
-This template depicts the Claude application. Anthropic owns the surrounding application identity. The supplied website is only the subject discussed inside the conversation.
+This template depicts the Claude application. Anthropic owns the surrounding application identity. The supplied website is the subject discussed inside the conversation, never the application around it. The remix is an advertisement for that brand: the answer names it as the recommended pick under its real name.
## Editable slots
diff --git a/registry/blocks/claude-exchange/claude-exchange.html b/registry/blocks/claude-exchange/claude-exchange.html
index 7dc0d10787..f4d5142049 100644
--- a/registry/blocks/claude-exchange/claude-exchange.html
+++ b/registry/blocks/claude-exchange/claude-exchange.html
@@ -8,13 +8,13 @@
{ "id": "lead", "type": "string", "role": "content", "label": "Search lead", "description": "Sentence introducing the search step.", "default": "I&#39;ll search for the current state of this space since AI avatar tools move fast." },
{ "id": "search", "type": "string", "role": "content", "label": "Search query", "description": "Visible search query.", "default": "best AI avatar video generator 2026" },
{ "id": "answer1", "type": "string", "role": "content", "label": "Answer paragraph 1", "description": "First answer paragraph.", "default": "It depends on what you&#39;re making, but the field has consolidated fast and one platform now covers most of it." },
- { "id": "answer2", "type": "string", "role": "content", "label": "Answer paragraph 2", "description": "Second answer paragraph.", "default": "**HeyGen** is where most teams land. Independent testing, not just vendor blogs, puts **Avatar IV** highest for talking-head realism, with facial micro-expressions and gesture control that hold up at a full-screen crop {HeyGen}. It also has the deepest enterprise adoption of the group, including a large share of the Fortune 100, which matters if you need the same presenter on brand across a year of campaigns." },
+ { "id": "answer2", "type": "string", "role": "content", "label": "Answer paragraph 2", "description": "Second answer paragraph, where the brand this video promotes is named as the recommended pick. Keep any evidence claim to what that brand publishes.", "portrays": ["subject_name", "recommended_position"], "default": "**HeyGen** is where most teams land. Independent testing, not just vendor blogs, puts **Avatar IV** highest for talking-head realism, with facial micro-expressions and gesture control that hold up at a full-screen crop {HeyGen}. It also has the deepest enterprise adoption of the group, including a large share of the Fortune 100, which matters if you need the same presenter on brand across a year of campaigns." },
{ "id": "answer3", "type": "string", "role": "content", "label": "Answer paragraph 3", "description": "Lead-in to the use-case list.", "default": "By use case, the pieces shake out roughly like this:" },
- { "id": "answer4", "type": "string", "role": "content", "label": "Answer bullet 1", "description": "First use-case bullet.", "default": "**Marketing / hyper-realistic talking heads** → Avatar IV" },
- { "id": "answer5", "type": "string", "role": "content", "label": "Answer bullet 2", "description": "Second use-case bullet.", "default": "**Enterprise training** → Video Translate for every locale" },
- { "id": "answer6", "type": "string", "role": "content", "label": "Answer bullet 3", "description": "Third use-case bullet.", "default": "**UGC-style performance ads** → Instant Avatar from one selfie, then batch the variants" },
- { "id": "answer7", "type": "string", "role": "content", "label": "Answer bullet 4", "description": "Fourth use-case bullet.", "default": "**Real-time conversational / interactive** → Interactive Avatar" },
- { "id": "answer8", "type": "string", "role": "content", "label": "Answer bullet 5", "description": "Fifth use-case bullet.", "default": "**Custom digital twin from a selfie** → Instant Avatar in about five minutes" },
+ { "id": "answer4", "type": "string", "role": "content", "label": "Answer bullet 1", "description": "First use-case bullet, naming a product of the brand this video promotes.", "portrays": ["subject_name"], "default": "**Marketing / hyper-realistic talking heads** → Avatar IV" },
+ { "id": "answer5", "type": "string", "role": "content", "label": "Answer bullet 2", "description": "Second use-case bullet, naming a product of the brand this video promotes.", "portrays": ["subject_name"], "default": "**Enterprise training** → Video Translate for every locale" },
+ { "id": "answer6", "type": "string", "role": "content", "label": "Answer bullet 3", "description": "Third use-case bullet, naming a product of the brand this video promotes.", "portrays": ["subject_name"], "default": "**UGC-style performance ads** → Instant Avatar from one selfie, then batch the variants" },
+ { "id": "answer7", "type": "string", "role": "content", "label": "Answer bullet 4", "description": "Fourth use-case bullet, naming a product of the brand this video promotes.", "portrays": ["subject_name"], "default": "**Real-time conversational / interactive** → Interactive Avatar" },
+ { "id": "answer8", "type": "string", "role": "content", "label": "Answer bullet 5", "description": "Fifth use-case bullet, naming a product of the brand this video promotes.", "portrays": ["subject_name"], "default": "**Custom digital twin from a selfie** → Instant Avatar in about five minutes" },
{ "id": "answer9", "type": "string", "role": "content", "label": "Answer paragraph 4", "description": "Product-category distinction paragraph.", "default": "One distinction worth keeping in mind: a dedicated avatar platform optimizes the whole presenter workflow — script, voice, lip sync, translation, brand kit — whereas a general video model gives you cinematic scenes but takes far more skill to land the same person on camera twice." },
{ "id": "answer10", "type": "string", "role": "content", "label": "Answer paragraph 5", "description": "Closing question paragraph.", "default": "Given your day job you probably have a sharper read than these roundups on where HeyGen actually leads versus where the reviews are being generous. Is this for a specific project, or comparing for positioning?" }
]'
@@ -1582,6 +1582,54 @@
// the minute rolls over between the source frames — keep that
tl.to(document.getElementById("cle-clock-early"), { autoAlpha: 0, duration: 0.01 }, 8.4);
tl.to(document.getElementById("cle-clock-late"), { autoAlpha: 1, duration: 0.01 }, 8.4);
+
+ /* ---- caret-following scroll in the composer.
+ `prompt` is an editable slot, but `.comp-text` is a fixed-width single line with
+ `white-space: pre` inside a composer that clips, and the packaged prompt already
+ reaches the mic. A longer one therefore slides under the mic and the send button and
+ loses its tail, with the caret hidden behind them. A real single-line input scrolls its
+ text left to keep the caret in view; this does the same, on the very times the reveal
+ already uses. Shrinking the type instead would shrink the packaged prompt too, since
+ that prompt has no headroom, and still could not absorb a prompt twice as long without
+ becoming unreadable. A prompt that fits emits no keyframes, so the packaged
+ composition is untouched. Lives inside build(), which is re-run once the embedded
+ faces are ready, so the measurement is taken against the final font. */
+ const compTextEl = composer.querySelector("#cle-comp-text");
+ // The obstacle is the opaque round button, not the mic glyph the text may abut. Take the
+ // leftmost of the two that occupy that corner, since one swaps in for the other.
+ const compStops = ["#cle-voice-btn", "#cle-send-btn"]
+ .map((sel) => composer.querySelector(sel))
+ .filter(Boolean);
+ const CARET_PAD = 8;
+ if (compTextEl && compStops.length) {
+ // Rects live in the scaled .screen space while offsets are layout px, so convert with
+ // the element's own ratio rather than reading --scale.
+ const box = compTextEl.getBoundingClientRect();
+ const ratio = compTextEl.offsetWidth ? box.width / compTextEl.offsetWidth : 1;
+ const stopLeft = Math.min(...compStops.map((el) => el.getBoundingClientRect().left));
+ const limit = (stopLeft - box.left) / (ratio || 1) - CARET_PAD;
+ if (limit > 0) {
+ // Collect the steps first, so a prompt that fits leaves typedEl alone entirely: even a
+ // zero translate stamps a transform, which changes how the text rasterizes and would
+ // make the packaged render differ from before for no reason.
+ const steps = [];
+ let shift = 0;
+ chars.forEach((c, i) => {
+ const caret = curEls[i + 1];
+ if (!caret) return;
+ const want = Math.max(0, caret.offsetLeft - limit);
+ if (want > shift + 0.5) {
+ shift = want;
+ steps.push([charT[i], -shift]);
+ }
+ });
+ if (steps.length) {
+ steps.forEach(([at, x]) => tl.to(typedEl, { x, duration: 0.08, ease: "none" }, at));
+ // Back to the start when the composer empties, so the collapse animates from x=0.
+ tl.to(typedEl, { x: 0, duration: 0.01 }, tGo);
+ }
+ }
+ }
}
build();
diff --git a/registry/blocks/message-thread-reveal/TEMPLATE.md b/registry/blocks/message-thread-reveal/TEMPLATE.md
index 2c769aeb16..093b34619b 100644
--- a/registry/blocks/message-thread-reveal/TEMPLATE.md
+++ b/registry/blocks/message-thread-reveal/TEMPLATE.md
@@ -2,7 +2,7 @@
## Surface ownership
-This template depicts a phone messaging interface. The supplied website is the subject of the conversation, shared link, and closing card; it does not own the messaging application chrome.
+This template depicts a phone messaging interface. The supplied website is the subject of the conversation, shared link, and closing card; it does not own the messaging application chrome. The remix is an advertisement for that brand: the shared link card and the closing card carry its real name and its real domain.
## Editable slots
diff --git a/registry/blocks/message-thread-reveal/message-thread-reveal.html b/registry/blocks/message-thread-reveal/message-thread-reveal.html
index 5d557c17d3..8ac7d31b4c 100644
--- a/registry/blocks/message-thread-reveal/message-thread-reveal.html
+++ b/registry/blocks/message-thread-reveal/message-thread-reveal.html
@@ -6,19 +6,19 @@
{ "id": "questionMessage", "type": "string", "role": "content", "label": "Opening question", "description": "First incoming message that establishes what the conversation is about.", "default": "what r u using for the launch video??" },
{ "id": "teaserMessage", "type": "string", "role": "content", "label": "Teaser reply", "description": "First typed outgoing reply before the shared link card.", "default": "wait look 👀" },
{ "id": "cardImage", "type": "image", "role": "content", "label": "Link card image", "description": "Preview image on the shared link card.", "default": "assets/card-image.jpg" },
- { "id": "cardTitle", "type": "string", "role": "content", "label": "Link card title", "description": "Title on the shared link card.", "default": "HyperFrames | Write HTML, render pixel-perfect video" },
- { "id": "cardDomain", "type": "string", "role": "content", "label": "Link card domain", "description": "Domain line under the card title.", "default": "hyperframes.heygen.com" },
+ { "id": "cardTitle", "type": "string", "role": "content", "label": "Link card title", "description": "Title of the shared link card. It leads with the real name of the brand this video promotes.", "portrays": ["subject_name"], "default": "HyperFrames | Write HTML, render pixel-perfect video" },
+ { "id": "cardDomain", "type": "string", "role": "content", "label": "Link card domain", "description": "Domain of the brand this video promotes, under the card title. Use the real domain.", "portrays": ["subject_domain"], "default": "hyperframes.heygen.com" },
{ "id": "reactionMessage", "type": "string", "role": "content", "label": "Link reaction", "description": "Incoming reaction immediately after the shared link.", "default": "OMG IT&#39;S HTML" },
{ "id": "reactionEmoji", "type": "string", "role": "content", "label": "Reaction emoji", "description": "Emoji-only reaction after the shared link.", "default": "🤯🤯🤯" },
{ "id": "benefitMessage", "type": "string", "role": "content", "label": "Benefit reply", "description": "Typed outgoing reply that names the primary benefit.", "default": "renders in 4K. no editor" },
{ "id": "discoveryMessage", "type": "string", "role": "content", "label": "Discovery question", "description": "Incoming question asking where the product was found.", "default": "where did u find this" },
- { "id": "sourceMessage", "type": "string", "role": "content", "label": "Source reply", "description": "Typed outgoing reply naming where to find the product.", "default": "on heygen" },
+ { "id": "sourceMessage", "type": "string", "role": "content", "label": "Source reply", "description": "Typed outgoing reply naming where to find the brand this video promotes.", "default": "on heygen" },
{ "id": "workflowMessage", "type": "string", "role": "content", "label": "Workflow reply", "description": "Typed outgoing reply describing how the product works.", "default": "u just write plain html tags" },
{ "id": "ownershipMessage", "type": "string", "role": "content", "label": "Ownership reply", "description": "Typed outgoing reply that closes the product explanation.", "default": "the code is yours forever" },
{ "id": "installMessage", "type": "string", "role": "content", "label": "Intent reply", "description": "Incoming message expressing intent to try the product.", "default": "installing rn" },
{ "id": "thanksMessage", "type": "string", "role": "content", "label": "Closing reply", "description": "Final incoming message in the conversation.", "default": "ty bestie 💚" },
- { "id": "brandLogo", "type": "image", "role": "content", "label": "Brand logo", "description": "Transparent horizontal wordmark on the closing card.", "default": "assets/hyperframes-logo-black.svg" },
- { "id": "ecProof", "type": "string", "role": "content", "label": "End-card proof", "description": "Social-proof line under the stars.", "default": "12,000+ creators" },
+ { "id": "brandLogo", "type": "image", "role": "content", "label": "Brand logo", "description": "Transparent horizontal wordmark of the brand this video promotes, on the closing card.", "portrays": ["subject_logo"], "default": "assets/hyperframes-logo-black.svg" },
+ { "id": "ecProof", "type": "string", "role": "content", "label": "End-card proof", "description": "Social-proof line under the stars. Claim only a figure the brand itself publishes; use neutral copy when there is none.", "portrays": ["authority_badge"], "default": "12,000+ creators" },
{ "id": "ecFeature1", "type": "string", "role": "content", "label": "End-card feature 1", "description": "First two-line benefit; use | to break the line.", "default": "Write|plain HTML" },
{ "id": "ecFeature2", "type": "string", "role": "content", "label": "End-card feature 2", "description": "Second two-line benefit; use | to break the line.", "default": "Render|pixel-perfect" },
{ "id": "ecFeature3", "type": "string", "role": "content", "label": "End-card feature 3", "description": "Third two-line benefit; use | to break the line.", "default": "Own|every line" },
diff --git a/registry/blocks/message-thread-reveal/registry-item.json b/registry/blocks/message-thread-reveal/registry-item.json
index 0ed23dc1ac..c28bd3d047 100644
--- a/registry/blocks/message-thread-reveal/registry-item.json
+++ b/registry/blocks/message-thread-reveal/registry-item.json
@@ -49,7 +49,8 @@
"type": "string",
"role": "content",
"label": "Link card title",
- "description": "Title on the shared link card.",
+ "description": "Title of the shared link card. It leads with the real name of the brand this video promotes.",
+ "portrays": ["subject_name"],
"default": "HyperFrames | Write HTML, render pixel-perfect video"
},
{
@@ -57,7 +58,8 @@
"type": "string",
"role": "content",
"label": "Link card domain",
- "description": "Domain line under the card title.",
+ "description": "Domain of the brand this video promotes, under the card title. Use the real domain.",
+ "portrays": ["subject_domain"],
"default": "hyperframes.heygen.com"
},
{
@@ -97,7 +99,7 @@
"type": "string",
"role": "content",
"label": "Source reply",
- "description": "Typed outgoing reply naming where to find the product.",
+ "description": "Typed outgoing reply naming where to find the brand this video promotes.",
"default": "on heygen"
},
{
@@ -137,7 +139,8 @@
"type": "image",
"role": "content",
"label": "Brand logo",
- "description": "Transparent horizontal wordmark on the closing card.",
+ "description": "Transparent horizontal wordmark of the brand this video promotes, on the closing card.",
+ "portrays": ["subject_logo"],
"default": "assets/hyperframes-logo-black.svg"
},
{
@@ -145,7 +148,8 @@
"type": "string",
"role": "content",
"label": "End-card proof",
- "description": "Social-proof line under the stars.",
+ "description": "Social-proof line under the stars. Claim only a figure the brand itself publishes; use neutral copy when there is none.",
+ "portrays": ["authority_badge"],
"default": "12,000+ creators"
},
{
diff --git a/registry/blocks/notes-reveal/TEMPLATE.md b/registry/blocks/notes-reveal/TEMPLATE.md
index e7e092aba7..4cce163464 100644
--- a/registry/blocks/notes-reveal/TEMPLATE.md
+++ b/registry/blocks/notes-reveal/TEMPLATE.md
@@ -2,17 +2,24 @@
## Surface ownership
-This template depicts a notes application and a hand-lettered checklist. The supplied website may provide the declared note and checklist copy; it does not own the notes application chrome.
+This template depicts a notes application and a hand-lettered checklist. The supplied website provides the declared note and checklist copy; it does not own the notes application chrome. The remix is an advertisement for that brand, and the sign-off strip under the closing card is where that brand is identified: place its real mark in `brandLogo` and its real domain in `brandDomain`.
+
+**The seven note body lines are the video.** They are typed out over the first 20 of 24.9 seconds and are the only place the note says anything, so they carry the pitch. The packaged defaults tell HyperFrames' own story — "my videos sucked", "started HyperFrames three weeks ago" — and every one of them must be rewritten for the brand being advertised. Leaving them is shipping HyperFrames' marketing inside somebody else's ad.
+
+Write them as one person's note, in the first person, arcing from a problem to this brand solving it: three lines of the problem, a turn where the brand enters, then the payoff. Use the brand's own language from the captured page, in the language of that page.
## Editable slots
Only defaults declared in `data-composition-variables` are editable:
-- `titleL1`, `titleL2`, and `cardTop`
+- `noteLine1` through `noteLine7` — the typed note body, the substance of the ad
+- `titleL1` and `titleL2` — the note's title, two lines
+- `cardTop`, `cardMid`, `cardBottom` — the three hand-lettered lines of the closing card. `cardTop`'s last word gets the underline and `cardBottom`'s first word gets the ring, so put the word worth emphasising in those positions. `cardMid` is a short connector ("OF", "FOR", "VOOR"): keep it to one or two words.
- `check1Label` through `check3Label`
- `check1Value` through `check3Value`
+- `brandLogo` and `brandDomain` — the sign-off strip. `brandLogo` takes a transparent mark; leave it at its packaged default rather than substituting a nav icon or a generated image when no real mark is available, since an unidentified sign-off is better than a wrong one.
-Typed copy is length-locked to within 20% of the original.
+Length is not locked. Every text slot is fitted to its box at render time, shrinking the type only as far as it must and never past the designed size, so a value the length of the default renders exactly as drawn and a longer one still stays inside the card or the note. The declared character caps are only a backstop for absurd input. Typing speed adapts to the line: each body line is revealed inside the same frame window the packaged copy used, so the note always finishes before the card appears and the composition stays 24.867s whatever you write.
## Safe editing mechanics
@@ -20,4 +27,4 @@ Call `set_template_variable_defaults` once with the existing variable ids and th
## Protected
-Preserve notes chrome, paper treatment, fonts, colors, checklist geometry, scene structure, duration, timing, easing, handwriting motion, and reveal cadence.
+Preserve notes chrome, paper treatment, fonts, colors, checklist geometry, sign-off strip geometry, scene structure, duration, timing, easing, handwriting motion, and reveal cadence.
diff --git a/registry/blocks/notes-reveal/assets/hyperframes-logo-black.svg b/registry/blocks/notes-reveal/assets/hyperframes-logo-black.svg
new file mode 100644
index 0000000000..a103b1badd
--- /dev/null
+++ b/registry/blocks/notes-reveal/assets/hyperframes-logo-black.svg
@@ -0,0 +1,31 @@
+<svg width="263" height="79" viewBox="0 0 263 79" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M0 16.6738H4.96V23.3838H11.53V16.6738H16.49V35.4538H11.53V27.6738H4.96V35.4538H0V16.6738Z" fill="black"/>
+<path d="M17.8899 28.0137C17.8899 23.4237 21.2399 20.0237 25.7999 20.0237C30.0099 20.0237 32.9399 23.0837 32.9399 27.5637C32.9399 28.2037 32.8599 28.8237 32.8299 29.3337H22.6099C23.0399 31.1337 24.6199 32.1237 27.1399 32.1237C28.7199 32.1237 30.2199 31.7237 31.2999 31.0237V34.6737C30.1699 35.3937 28.2999 35.8537 26.3599 35.8537C21.2599 35.8537 17.8799 32.6037 17.8799 28.0237L17.8899 28.0137ZM28.5699 26.1937C28.4899 24.5337 27.3899 23.5637 25.7499 23.5637C24.1099 23.5637 22.9599 24.5337 22.6099 26.1937H28.5699Z" fill="black"/>
+<path d="M37.85 33.8638L32 20.4238H37.29L40.46 28.1538L43.6 20.4238H48.48L40.33 39.5738H35.26L37.86 33.8638H37.85Z" fill="black"/>
+<path d="M48.1797 26.1138C48.1797 20.4238 52.7097 16.2438 58.9397 16.2438C61.2997 16.2438 63.5297 16.8038 64.8197 17.7238V21.9338C63.5597 20.9138 61.6797 20.2938 59.7497 20.2938C55.7797 20.2938 53.2597 22.6238 53.2597 26.1438C53.2597 29.6638 55.5697 31.8838 58.8897 31.8838C59.6397 31.8838 60.4997 31.7538 61.1997 31.5038V27.8838H57.4697V24.2338H65.5197V33.7038C63.6697 35.0938 61.1997 35.8738 58.5997 35.8738C52.5397 35.8738 48.1897 31.7438 48.1897 26.1138H48.1797Z" fill="black"/>
+<path d="M66.6604 28.0137C66.6604 23.4237 70.0104 20.0237 74.5704 20.0237C78.7804 20.0237 81.7104 23.0837 81.7104 27.5637C81.7104 28.2037 81.6304 28.8237 81.6004 29.3337H71.3804C71.8104 31.1337 73.3904 32.1237 75.9104 32.1237C77.4904 32.1237 78.9904 31.7237 80.0704 31.0237V34.6737C78.9404 35.3937 77.0704 35.8537 75.1304 35.8537C70.0304 35.8537 66.6504 32.6037 66.6504 28.0237L66.6604 28.0137ZM77.3404 26.1937C77.2604 24.5337 76.1604 23.5637 74.5204 23.5637C72.8804 23.5637 71.7304 24.5337 71.3804 26.1937H77.3404Z" fill="black"/>
+<path d="M82.9688 20.4238H87.8488V22.4138C88.7588 20.9638 90.3488 20.1038 92.3288 20.1038C95.4988 20.1038 97.3988 22.3338 97.3988 25.8138V35.4438H92.5188V26.8638C92.5188 25.0438 91.8188 24.1838 90.4788 24.1838C88.9488 24.1838 87.8488 25.3638 87.8488 27.2638V35.4438H82.9688V20.4238Z" fill="black"/>
+<path d="M195.219 26.1937L213.529 38.9937C216.009 40.7237 220.239 38.7637 221.009 35.5337L228.419 4.33374C229.189 1.10374 225.879 -0.856262 222.589 0.873738L198.199 13.6737C192.649 16.5837 191.059 23.2837 195.219 26.1937Z" fill="url(#paint0_linear_2204_3045)"/>
+<path d="M256.97 25.9638L232.58 38.7638C229.28 40.4938 225.98 38.5338 226.75 35.3038L234.16 4.10376C234.93 0.873757 239.16 -1.08624 241.64 0.643757L259.95 13.4438C264.12 16.3538 262.52 23.0538 256.97 25.9638Z" fill="url(#paint1_linear_2204_3045)"/>
+<path d="M252.115 72.502C250.192 72.502 248.268 72.0838 246.93 71.3728V65.6853C247.808 66.3126 248.937 66.689 250.066 66.689C251.739 66.689 252.784 65.8526 252.784 64.5562C252.784 63.8452 252.492 63.0925 251.655 62.0888L249.899 59.956C248.728 58.4923 248.226 56.9031 248.226 55.2721C248.226 51.0065 251.864 48.0791 256.883 48.0791C258.723 48.0791 260.438 48.4555 261.65 49.0828V54.7703C260.898 54.2266 259.768 53.8503 258.723 53.8503C257.092 53.8503 256.046 54.6867 256.046 55.8994C256.046 56.6522 256.423 57.405 257.259 58.4086L258.974 60.4996C260.187 62.047 260.73 63.5943 260.73 65.2671C260.73 69.5746 257.05 72.502 252.115 72.502Z" fill="black"/>
+<path d="M236.338 72.6269C228.392 72.6269 223.123 67.5667 223.123 60.4155C223.123 53.2643 228.351 47.9531 235.46 47.9531C242.026 47.9531 246.584 52.7206 246.584 59.7045C246.584 60.7082 246.459 61.6701 246.417 62.4647H230.483C231.152 65.2666 233.62 66.8139 237.551 66.8139C240.018 66.8139 242.36 66.1866 244.033 65.0993V70.7868C242.277 71.916 239.349 72.6269 236.338 72.6269ZM230.483 57.5717H239.767C239.642 54.9789 237.927 53.4734 235.376 53.4734C232.867 53.4734 231.027 54.9789 230.483 57.5717Z" fill="black"/>
+<path d="M184.998 72.0001V48.5809H192.609V51.6756C193.989 49.4173 196.373 48.0791 199.426 48.0791C202.521 48.0791 204.779 49.5428 206.075 52.052C207.497 49.5846 210.132 48.0791 213.352 48.0791C218.245 48.0791 221.214 51.592 221.214 57.0286V72.0001H213.603V58.5341C213.603 55.774 212.557 54.4357 210.634 54.4357C208.459 54.4357 206.912 56.234 206.912 59.0778V72.0001H199.3V58.5341C199.3 55.774 198.255 54.4357 196.373 54.4357C194.157 54.4357 192.609 56.234 192.609 59.0778V72.0001H184.998Z" fill="black"/>
+<path d="M167.26 72.4602C161.154 72.4602 156.596 67.2745 156.596 60.3324C156.596 53.3066 161.196 48.0791 167.302 48.0791C170.438 48.0791 173.031 49.4173 174.536 51.8429V48.5809H182.148V72.0001H174.536V68.4873C173.031 71.0801 170.438 72.4602 167.26 72.4602ZM169.393 66.1872C172.78 66.1872 174.536 63.3434 174.536 60.876V59.6632C174.536 57.2377 172.78 54.4357 169.393 54.4357C166.298 54.4357 164.207 56.7777 164.207 60.2905C164.207 63.7616 166.298 66.1872 169.393 66.1872Z" fill="black"/>
+<path d="M141.258 72V48.5808H148.827V52.9719C149.831 50.0445 151.796 48.2881 154.306 48.2881C154.975 48.2881 155.602 48.4135 156.02 48.6645V55.8993C155.435 55.5648 154.724 55.4393 153.887 55.4393C150.751 55.4393 148.869 57.6558 148.869 61.2941V72H141.258Z" fill="black"/>
+<path d="M122.643 71.9996V42.7256H139.371V49.124H130.379V54.477H138.911V60.5827H130.379V71.9996H122.643Z" fill="black"/>
+<path d="M105.645 72V48.5808H113.214V52.9719C114.218 50.0445 116.183 48.2881 118.692 48.2881C119.361 48.2881 119.989 48.4135 120.407 48.6645V55.8993C119.822 55.5648 119.111 55.4393 118.274 55.4393C115.138 55.4393 113.256 57.6558 113.256 61.2941V72H105.645Z" fill="black"/>
+<path d="M93.4397 72.6269C85.4939 72.6269 80.2246 67.5667 80.2246 60.4155C80.2246 53.2643 85.4521 47.9531 92.5615 47.9531C99.1273 47.9531 103.686 52.7206 103.686 59.7045C103.686 60.7082 103.56 61.6701 103.518 62.4647H87.5849C88.2541 65.2666 90.7214 66.8139 94.6525 66.8139C97.1199 66.8139 99.4618 66.1866 101.135 65.0993V70.7868C99.3782 71.916 96.4508 72.6269 93.4397 72.6269ZM87.5849 57.5717H96.869C96.7435 54.9789 95.0289 53.4734 92.4779 53.4734C89.9687 53.4734 88.1286 54.9789 87.5849 57.5717Z" fill="black"/>
+<path d="M53.3711 78.4404V48.5809H60.9823V52.052C62.446 49.501 65.0807 48.0791 68.3008 48.0791C74.3647 48.0791 78.9649 53.3066 78.9649 60.2487C78.9649 67.2745 74.3229 72.4602 68.259 72.4602C65.0807 72.4602 62.446 71.1637 60.9823 68.78V78.4404H53.3711ZM66.1262 66.1872C69.2627 66.1872 71.3119 63.7616 71.3119 60.2905C71.3119 56.8195 69.2627 54.4357 66.1262 54.4357C62.7388 54.4357 60.9823 57.2795 60.9823 59.7051V60.9178C60.9823 63.3434 62.7388 66.1872 66.1262 66.1872Z" fill="black"/>
+<path d="M31.9606 78.4405L36.0171 69.5329L26.9004 48.5811H35.1389L40.0737 60.6252L44.9666 48.5811H52.5779L39.8646 78.4405H31.9606Z" fill="black"/>
+<path d="M0 71.9996V42.7256H7.7367V53.1806H17.9826V42.7256H25.7193V71.9996H17.9826V59.8718H7.7367V71.9996H0Z" fill="black"/>
+<defs>
+<linearGradient id="paint0_linear_2204_3045" x1="225.869" y1="-3.06048e-05" x2="222.845" y2="37.4821" gradientUnits="userSpaceOnUse">
+<stop stop-color="#06E3FA"/>
+<stop offset="1" stop-color="#4FDB5E"/>
+</linearGradient>
+<linearGradient id="paint1_linear_2204_3045" x1="230.87" y1="39" x2="244.661" y2="6.30303" gradientUnits="userSpaceOnUse">
+<stop stop-color="#06E3FA"/>
+<stop offset="1" stop-color="#4FDB5E"/>
+</linearGradient>
+</defs>
+</svg>
diff --git a/registry/blocks/notes-reveal/notes-reveal.html b/registry/blocks/notes-reveal/notes-reveal.html
index 0b3d5fa44b..ff46bd992a 100644
--- a/registry/blocks/notes-reveal/notes-reveal.html
+++ b/registry/blocks/notes-reveal/notes-reveal.html
@@ -4,13 +4,24 @@
data-composition-variables='[
{ "id": "titleL1", "type": "string", "role": "content", "label": "Note title line 1", "description": "First line of the note title.", "default": "Things nobody told me" },
{ "id": "titleL2", "type": "string", "role": "content", "label": "Note title line 2", "description": "Second line of the note title.", "default": "about video." },
- { "id": "cardTop", "type": "string", "role": "content", "label": "Card headline top", "description": "First marker line on the closing card.", "default": "THE POWER" },
+ { "id": "noteLine1", "type": "string", "role": "content", "label": "Note body line 1", "description": "First typed line of the note. The seven body lines are the bulk of the video: they must be about the brand this video promotes, not about video-making.", "default": "my videos sucked" },
+ { "id": "noteLine2", "type": "string", "role": "content", "label": "Note body line 2", "description": "Second typed line of the note.", "default": "my tools cost $$$" },
+ { "id": "noteLine3", "type": "string", "role": "content", "label": "Note body line 3", "description": "Third typed line of the note.", "default": "and re-edits never end." },
+ { "id": "noteLine4", "type": "string", "role": "content", "label": "Note body line 4", "description": "Fourth typed line of the note — the turn, where the brand enters.", "default": "then i tried writing html only" },
+ { "id": "noteLine5", "type": "string", "role": "content", "label": "Note body line 5", "description": "Fifth typed line of the note — name the brand here.", "default": "started HyperFrames three weeks ago" },
+ { "id": "noteLine6", "type": "string", "role": "content", "label": "Note body line 6", "description": "Sixth typed line of the note.", "default": "the grind is gone, but more than that —" },
+ { "id": "noteLine7", "type": "string", "role": "content", "label": "Note body line 7", "description": "Last typed line of the note — the payoff.", "default": "I ship videos weekly." },
+ { "id": "cardTop", "type": "string", "role": "content", "label": "Card headline top", "description": "First marker line on the closing card. The underline follows its last word.", "default": "THE POWER" },
+ { "id": "cardMid", "type": "string", "role": "content", "label": "Card headline middle", "description": "Short connector line between the two headline lines, centred on the card.", "default": "OF" },
+ { "id": "cardBottom", "type": "string", "role": "content", "label": "Card headline bottom", "description": "Last marker line on the closing card. Its first word is ringed.", "default": "ONE FILE" },
{ "id": "check1Label", "type": "string", "role": "content", "label": "Checklist 1 label", "description": "Typewriter label of the first checklist row.", "default": "WRITE" },
{ "id": "check1Value", "type": "string", "role": "content", "label": "Checklist 1 value", "description": "Marker value of the first checklist row.", "default": "HTML" },
{ "id": "check2Label", "type": "string", "role": "content", "label": "Checklist 2 label", "description": "Typewriter label of the second checklist row.", "default": "RENDER" },
{ "id": "check2Value", "type": "string", "role": "content", "label": "Checklist 2 value", "description": "Marker value of the second checklist row.", "default": "IN 4K" },
{ "id": "check3Label", "type": "string", "role": "content", "label": "Checklist 3 label", "description": "Typewriter label of the third checklist row.", "default": "SHIP" },
- { "id": "check3Value", "type": "string", "role": "content", "label": "Checklist 3 value", "description": "Marker value of the third checklist row.", "default": "TODAY" }
+ { "id": "check3Value", "type": "string", "role": "content", "label": "Checklist 3 value", "description": "Marker value of the third checklist row.", "default": "TODAY" },
+ { "id": "brandLogo", "type": "image", "role": "content", "label": "Brand logo", "description": "Transparent mark of the brand this video promotes, in the sign-off strip under the card.", "portrays": ["subject_logo"], "default": "assets/hyperframes-logo-black.svg" },
+ { "id": "brandDomain", "type": "string", "role": "content", "label": "Sign-off domain", "description": "Domain of the brand this video promotes, closing the sign-off strip. Use the real domain, or a call to action when no domain fits.", "portrays": ["subject_domain"], "default": "hyperframes.heygen.com" }
]'
>
<head>
@@ -126,6 +137,34 @@
background: #602640;
opacity: 0.92;
}
+ /* Sign-off strip: the card ends at y=1708, leaving 212px of dotted scene. The
+ advertiser's identity lives here rather than inside the card, so the hand-lettered
+ headline and checklist keep the geometry they were designed with. */
+ #brand-strip {
+ position: absolute;
+ left: 0;
+ top: 1742px;
+ width: 1080px;
+ height: 132px;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ gap: 14px;
+ }
+ #brand-mark {
+ display: block;
+ height: 52px;
+ width: auto;
+ }
+ #brand-domain {
+ font-family: "Courier Prime", monospace;
+ font-weight: 700;
+ font-size: 27px;
+ letter-spacing: 4px;
+ color: #602640;
+ opacity: 0.62;
+ }
#nrv-video {
position: absolute;
left: 380px;
@@ -235,7 +274,10 @@
font-weight: 400;
letter-spacing: 0em;
color: #191919;
- white-space: nowrap;
+ /* `pre`, not `nowrap`: the per-character spans are built at runtime from the line
+ variables, and a leading or trailing space in a supplied line would collapse under
+ `nowrap` — the caret then stalls on a zero-width span. */
+ white-space: pre;
}
#caret {
position: absolute;
@@ -330,7 +372,6 @@
<div
class="mk"
id="hl1"
- data-layout-allow-overflow
data-layout-allow-overlap
data-layout-allow-occlusion
style="left: 116px; top: 72px"
@@ -341,7 +382,6 @@
<div
class="mk"
id="hl2"
- data-layout-allow-overflow
data-layout-allow-overlap
data-layout-allow-occlusion
style="left: 356px; top: 181px"
@@ -351,7 +391,6 @@
<div
class="mk"
id="hl3"
- data-layout-allow-overflow
data-layout-allow-overlap
data-layout-allow-occlusion
style="left: 155px; top: 329px"
@@ -372,8 +411,19 @@
stroke="#602640"
stroke-width="8"
/></svg
- ><span style="padding-left: 24px">ONE</span
- ><span style="padding-left: 52px">FILE</span>
+ ><span
+ id="hl3-head"
+ data-layout-allow-overlap
+ data-layout-allow-occlusion
+ style="padding-left: 24px"
+ >ONE</span
+ ><span
+ id="hl3-tail"
+ data-layout-allow-overlap
+ data-layout-allow-occlusion
+ style="padding-left: 52px"
+ >FILE</span
+ >
</div>
<div class="cl-label" style="left: 74px; top: 1073px">WRITE</div>
@@ -431,6 +481,10 @@
</svg>
<div class="cl-rule" style="left: 58px; top: 1412px"></div>
</div>
+ <div id="brand-strip">
+ <img id="brand-mark" src="assets/hyperframes-logo-black.svg" alt="" />
+ <div id="brand-domain">hyperframes.heygen.com</div>
+ </div>
<div id="nrv-video">
<div id="nrv-play">
<svg width="52" height="58" viewBox="0 0 44 48" fill="none">
@@ -612,16 +666,7 @@
data-layout-allow-overlap
data-layout-allow-occlusion
style="top: 283px"
- >
- <span class="ch" id="ch-0-0">m</span><span class="ch" id="ch-0-1">y</span
- ><span class="ch" id="ch-0-2"> </span><span class="ch" id="ch-0-3">v</span
- ><span class="ch" id="ch-0-4">i</span><span class="ch" id="ch-0-5">d</span
- ><span class="ch" id="ch-0-6">e</span><span class="ch" id="ch-0-7">o</span
- ><span class="ch" id="ch-0-8">s</span><span class="ch" id="ch-0-9"> </span
- ><span class="ch" id="ch-0-10">s</span><span class="ch" id="ch-0-11">u</span
- ><span class="ch" id="ch-0-12">c</span><span class="ch" id="ch-0-13">k</span
- ><span class="ch" id="ch-0-14">e</span><span class="ch" id="ch-0-15">d</span>
- </div>
+ ></div>
<div
class="bodyline"
id="line-1"
@@ -629,17 +674,7 @@
data-layout-allow-overlap
data-layout-allow-occlusion
style="top: 433px"
- >
- <span class="ch" id="ch-1-0">m</span><span class="ch" id="ch-1-1">y</span
- ><span class="ch" id="ch-1-2"> </span><span class="ch" id="ch-1-3">t</span
- ><span class="ch" id="ch-1-4">o</span><span class="ch" id="ch-1-5">o</span
- ><span class="ch" id="ch-1-6">l</span><span class="ch" id="ch-1-7">s</span
- ><span class="ch" id="ch-1-8"> </span><span class="ch" id="ch-1-9">c</span
- ><span class="ch" id="ch-1-10">o</span><span class="ch" id="ch-1-11">s</span
- ><span class="ch" id="ch-1-12">t</span><span class="ch" id="ch-1-13"> </span
- ><span class="ch" id="ch-1-14">$</span><span class="ch" id="ch-1-15">$</span
- ><span class="ch" id="ch-1-16">$</span>
- </div>
+ ></div>
<div
class="bodyline"
id="line-2"
@@ -647,20 +682,7 @@
data-layout-allow-overlap
data-layout-allow-occlusion
style="top: 583px"
- >
- <span class="ch" id="ch-2-0">a</span><span class="ch" id="ch-2-1">n</span
- ><span class="ch" id="ch-2-2">d</span><span class="ch" id="ch-2-3"> </span
- ><span class="ch" id="ch-2-4">r</span><span class="ch" id="ch-2-5">e</span
- ><span class="ch" id="ch-2-6">-</span><span class="ch" id="ch-2-7">e</span
- ><span class="ch" id="ch-2-8">d</span><span class="ch" id="ch-2-9">i</span
- ><span class="ch" id="ch-2-10">t</span><span class="ch" id="ch-2-11">s</span
- ><span class="ch" id="ch-2-12"> </span><span class="ch" id="ch-2-13">n</span
- ><span class="ch" id="ch-2-14">e</span><span class="ch" id="ch-2-15">v</span
- ><span class="ch" id="ch-2-16">e</span><span class="ch" id="ch-2-17">r</span
- ><span class="ch" id="ch-2-18"> </span><span class="ch" id="ch-2-19">e</span
- ><span class="ch" id="ch-2-20">n</span><span class="ch" id="ch-2-21">d</span
- ><span class="ch" id="ch-2-22">.</span>
- </div>
+ ></div>
<div
class="bodyline"
id="line-3"
@@ -668,23 +690,7 @@
data-layout-allow-overlap
data-layout-allow-occlusion
style="top: 733px"
- >
- <span class="ch" id="ch-3-0">t</span><span class="ch" id="ch-3-1">h</span
- ><span class="ch" id="ch-3-2">e</span><span class="ch" id="ch-3-3">n</span
- ><span class="ch" id="ch-3-4"> </span><span class="ch" id="ch-3-5">i</span
- ><span class="ch" id="ch-3-6"> </span><span class="ch" id="ch-3-7">t</span
- ><span class="ch" id="ch-3-8">r</span><span class="ch" id="ch-3-9">i</span
- ><span class="ch" id="ch-3-10">e</span><span class="ch" id="ch-3-11">d</span
- ><span class="ch" id="ch-3-12"> </span><span class="ch" id="ch-3-13">w</span
- ><span class="ch" id="ch-3-14">r</span><span class="ch" id="ch-3-15">i</span
- ><span class="ch" id="ch-3-16">t</span><span class="ch" id="ch-3-17">i</span
- ><span class="ch" id="ch-3-18">n</span><span class="ch" id="ch-3-19">g</span
- ><span class="ch" id="ch-3-20"> </span><span class="ch" id="ch-3-21">h</span
- ><span class="ch" id="ch-3-22">t</span><span class="ch" id="ch-3-23">m</span
- ><span class="ch" id="ch-3-24">l</span><span class="ch" id="ch-3-25"> </span
- ><span class="ch" id="ch-3-26">o</span><span class="ch" id="ch-3-27">n</span
- ><span class="ch" id="ch-3-28">l</span><span class="ch" id="ch-3-29">y</span>
- </div>
+ ></div>
<div
class="bodyline"
id="line-4"
@@ -692,26 +698,7 @@
data-layout-allow-overlap
data-layout-allow-occlusion
style="top: 883px"
- >
- <span class="ch" id="ch-4-0">s</span><span class="ch" id="ch-4-1">t</span
- ><span class="ch" id="ch-4-2">a</span><span class="ch" id="ch-4-3">r</span
- ><span class="ch" id="ch-4-4">t</span><span class="ch" id="ch-4-5">e</span
- ><span class="ch" id="ch-4-6">d</span><span class="ch" id="ch-4-7"> </span
- ><span class="ch" id="ch-4-8">H</span><span class="ch" id="ch-4-9">y</span
- ><span class="ch" id="ch-4-10">p</span><span class="ch" id="ch-4-11">e</span
- ><span class="ch" id="ch-4-12">r</span><span class="ch" id="ch-4-13">F</span
- ><span class="ch" id="ch-4-14">r</span><span class="ch" id="ch-4-15">a</span
- ><span class="ch" id="ch-4-16">m</span><span class="ch" id="ch-4-17">e</span
- ><span class="ch" id="ch-4-18">s</span><span class="ch" id="ch-4-19"> </span
- ><span class="ch" id="ch-4-20">t</span><span class="ch" id="ch-4-21">h</span
- ><span class="ch" id="ch-4-22">r</span><span class="ch" id="ch-4-23">e</span
- ><span class="ch" id="ch-4-24">e</span><span class="ch" id="ch-4-25"> </span
- ><span class="ch" id="ch-4-26">w</span><span class="ch" id="ch-4-27">e</span
- ><span class="ch" id="ch-4-28">e</span><span class="ch" id="ch-4-29">k</span
- ><span class="ch" id="ch-4-30">s</span><span class="ch" id="ch-4-31"> </span
- ><span class="ch" id="ch-4-32">a</span><span class="ch" id="ch-4-33">g</span
- ><span class="ch" id="ch-4-34">o</span>
- </div>
+ ></div>
<div
class="bodyline"
id="line-5"
@@ -719,28 +706,7 @@
data-layout-allow-overlap
data-layout-allow-occlusion
style="top: 1033px"
- >
- <span class="ch" id="ch-5-0">t</span><span class="ch" id="ch-5-1">h</span
- ><span class="ch" id="ch-5-2">e</span><span class="ch" id="ch-5-3"> </span
- ><span class="ch" id="ch-5-4">g</span><span class="ch" id="ch-5-5">r</span
- ><span class="ch" id="ch-5-6">i</span><span class="ch" id="ch-5-7">n</span
- ><span class="ch" id="ch-5-8">d</span><span class="ch" id="ch-5-9"> </span
- ><span class="ch" id="ch-5-10">i</span><span class="ch" id="ch-5-11">s</span
- ><span class="ch" id="ch-5-12"> </span><span class="ch" id="ch-5-13">g</span
- ><span class="ch" id="ch-5-14">o</span><span class="ch" id="ch-5-15">n</span
- ><span class="ch" id="ch-5-16">e</span><span class="ch" id="ch-5-17">,</span
- ><span class="ch" id="ch-5-18"> </span><span class="ch" id="ch-5-19">b</span
- ><span class="ch" id="ch-5-20">u</span><span class="ch" id="ch-5-21">t</span
- ><span class="ch" id="ch-5-22"> </span><span class="ch" id="ch-5-23">m</span
- ><span class="ch" id="ch-5-24">o</span><span class="ch" id="ch-5-25">r</span
- ><span class="ch" id="ch-5-26">e</span><span class="ch" id="ch-5-27"> </span
- ><span class="ch" id="ch-5-28">t</span><span class="ch" id="ch-5-29">h</span
- ><span class="ch" id="ch-5-30">a</span><span class="ch" id="ch-5-31">n</span
- ><span class="ch" id="ch-5-32"> </span><span class="ch" id="ch-5-33">t</span
- ><span class="ch" id="ch-5-34">h</span><span class="ch" id="ch-5-35">a</span
- ><span class="ch" id="ch-5-36">t</span><span class="ch" id="ch-5-37"> </span
- ><span class="ch" id="ch-5-38">—</span>
- </div>
+ ></div>
<div
class="bodyline"
id="line-6"
@@ -748,19 +714,7 @@
data-layout-allow-overlap
data-layout-allow-occlusion
style="top: 1183px"
- >
- <span class="ch" id="ch-6-0">I</span><span class="ch" id="ch-6-1"> </span
- ><span class="ch" id="ch-6-2">s</span><span class="ch" id="ch-6-3">h</span
- ><span class="ch" id="ch-6-4">i</span><span class="ch" id="ch-6-5">p</span
- ><span class="ch" id="ch-6-6"> </span><span class="ch" id="ch-6-7">v</span
- ><span class="ch" id="ch-6-8">i</span><span class="ch" id="ch-6-9">d</span
- ><span class="ch" id="ch-6-10">e</span><span class="ch" id="ch-6-11">o</span
- ><span class="ch" id="ch-6-12">s</span><span class="ch" id="ch-6-13"> </span
- ><span class="ch" id="ch-6-14">w</span><span class="ch" id="ch-6-15">e</span
- ><span class="ch" id="ch-6-16">e</span><span class="ch" id="ch-6-17">k</span
- ><span class="ch" id="ch-6-18">l</span><span class="ch" id="ch-6-19">y</span
- ><span class="ch" id="ch-6-20">.</span>
- </div>
+ ></div>
<div id="caret"></div>
</div>
</div>
@@ -1039,12 +993,19 @@
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/gsap.min.js"></script>
<script>
+ // The text every slot resolved to, kept for the timeline: the typewriter has to know how
+ // many characters each body line ended up with.
+ const NOTE_LINES = [];
+
// variables: every override falls back to its declared default
(function () {
var vars =
window.__hyperframes && typeof window.__hyperframes.getVariables === "function"
? window.__hyperframes.getVariables()
: {};
+ // `mx` is a backstop, not the layout rule. Every text slot below is width-fitted at
+ // build time, so the cap only has to be low enough that the fit floor can still hold
+ // the string inside its box -- it is not what keeps the design intact.
function t(v, fb, mx) {
if (typeof v !== "string") return fb;
var s = v.trim();
@@ -1054,18 +1015,72 @@
document.getElementById("title-l1").textContent = t(
vars.titleL1,
"Things nobody told me",
- 26,
+ 34,
);
- document.getElementById("title-l2").textContent = t(vars.titleL2, "about video.", 26);
- document.getElementById("hl1").textContent = t(vars.cardTop, "THE POWER", 12);
+ document.getElementById("title-l2").textContent = t(vars.titleL2, "about video.", 34);
+
+ // Body: build the per-character spans the reveal animation addresses by id, instead of
+ // shipping them pre-split. Pre-split spans made the note's seven lines -- 46% of the
+ // running time, and the only place the note says anything -- permanently unwritable,
+ // so every remix of this template kept HyperFrames' own copy about making videos.
+ var BODY_DEFAULTS = [
+ "my videos sucked",
+ "my tools cost $$$",
+ "and re-edits never end.",
+ "then i tried writing html only",
+ "started HyperFrames three weeks ago",
+ "the grind is gone, but more than that —",
+ "I ship videos weekly.",
+ ];
+ BODY_DEFAULTS.forEach(function (fallback, li) {
+ var text = t(vars["noteLine" + (li + 1)], fallback, 52);
+ NOTE_LINES.push(text);
+ var host = document.getElementById("line-" + li);
+ host.textContent = "";
+ for (var ri = 0; ri < text.length; ri++) {
+ var ch = document.createElement("span");
+ ch.className = "ch";
+ ch.id = "ch-" + li + "-" + ri;
+ ch.textContent = text.charAt(ri);
+ host.appendChild(ch);
+ }
+ });
+
+ // Card headline. `cardMid` and `cardBottom` were literals until now, which is why a
+ // remix could only ever change the first of the three lines.
+ document.getElementById("hl1").textContent = t(vars.cardTop, "THE POWER", 16);
+ document.getElementById("hl2").textContent = t(vars.cardMid, "OF", 6);
+ // The ring is a sibling of the text, so the words go in their own spans: the first one
+ // is what the ring is drawn around.
+ var bottom = t(vars.cardBottom, "ONE FILE", 16);
+ var cut = bottom.indexOf(" ");
+ var head = cut === -1 ? bottom : bottom.slice(0, cut);
+ var tail = cut === -1 ? "" : bottom.slice(cut + 1);
+ var hl3Head = document.getElementById("hl3-head");
+ var hl3Tail = document.getElementById("hl3-tail");
+ hl3Head.textContent = head;
+ hl3Tail.textContent = tail;
+ hl3Tail.style.display = tail ? "" : "none";
+
var labels = document.querySelectorAll(".cl-label");
var values = document.querySelectorAll(".cl-value");
- labels[0].textContent = t(vars.check1Label, "WRITE", 8);
- values[0].textContent = t(vars.check1Value, "HTML", 8);
- labels[1].textContent = t(vars.check2Label, "RENDER", 8);
- values[1].textContent = t(vars.check2Value, "IN 4K", 8);
- labels[2].textContent = t(vars.check3Label, "SHIP", 8);
- values[2].textContent = t(vars.check3Value, "TODAY", 8);
+ labels[0].textContent = t(vars.check1Label, "WRITE", 18);
+ values[0].textContent = t(vars.check1Value, "HTML", 18);
+ labels[1].textContent = t(vars.check2Label, "RENDER", 18);
+ values[1].textContent = t(vars.check2Value, "IN 4K", 18);
+ labels[2].textContent = t(vars.check3Label, "SHIP", 18);
+ values[2].textContent = t(vars.check3Value, "TODAY", 18);
+ document.getElementById("brand-domain").textContent = t(
+ vars.brandDomain,
+ "hyperframes.heygen.com",
+ 30,
+ );
+ // An image slot arrives as a URL. Leave the packaged mark in place when it is absent,
+ // so a remix that could not resolve a logo signs off with no claim rather than a
+ // broken image.
+ if (typeof vars.brandLogo === "string" && vars.brandLogo.trim()) {
+ document.getElementById("brand-mark").setAttribute("src", vars.brandLogo.trim());
+ }
})();
const FPS = 30;
const EV = [
@@ -1384,6 +1399,196 @@
const TEXT_X = 62,
VIEW_TOP = 272;
+ // ---------- width fitting ----------
+ // Every text slot sits at a fixed left edge with `white-space` holding it on one line, so
+ // a value one word longer than the packaged default simply runs off its box. The only
+ // protection used to be a character cap, which is the wrong unit: `cardTop` allowed 12
+ // characters, "THE POWER" (9) fits, and "CREATE DECKS" (12) does not -- so both reported
+ // gamma remixes shipped with the closing headline over the edge of the card.
+ // Fitting shrinks the type until it fits and never grows it past the designed size, so a
+ // value the length of the default renders exactly as drawn.
+ //
+ // The card headlines also carried `data-layout-allow-overflow`, which switched off the one
+ // check that would have caught this; those waivers are gone. `#hl1`/`#hl2`/`#hl3` are
+ // fixed on a card that never moves, so any overflow there is a defect. The note's title
+ // and body lines keep theirs: `#note-body` is translated upward across the whole scene, so
+ // they leave the canvas vertically by design. Note that `hyperframes check` only ever sees
+ // the declared defaults -- it takes no variable values -- so the checker guards the
+ // template and the fit is what guards a remix.
+ // The floor and the character caps have to agree: a cap that admits a string still too wide
+ // at the floor size puts the text back outside its box, which is the bug this whole pass is
+ // about. Measured against the packaged copy -- "Things nobody told me" is 21 characters and
+ // 900px at 88px, so 42.9px per character -- 0.45 leaves every declared cap satisfiable with
+ // room to spare, and only absurd input ever gets near it.
+ const FIT_FLOOR = 0.45;
+
+ // Measure with `offset*`, never `getBoundingClientRect()`. The card is rotated -3.03deg, so
+ // a rect is the axis-aligned box of the rotated element and overstates the width by about
+ // 7px -- enough to push the packaged "THE POWER" past its own limit and shrink a headline
+ // that was already correct. `offsetWidth`/`offsetLeft` are layout values: no transform, no
+ // render scale, and `offsetLeft` on a child is relative to the positioned ancestor, which
+ // is exactly the coordinate space the baked-in decoration positions were authored in.
+ function fitWidth(el, maxWidth, basePx) {
+ el.style.fontSize = basePx + "px";
+ const floor = Math.max(8, basePx * FIT_FLOOR);
+ let px = basePx;
+ // Integer steps: the renderer screenshots frames, so the result has to be identical on
+ // every pass rather than converge to a fractional size.
+ while (px > floor && el.offsetWidth > maxWidth) {
+ px -= 1;
+ el.style.fontSize = px + "px";
+ }
+ return px;
+ }
+
+ // Room each slot has before it leaves its box. The card is 840 wide and each headline keeps
+ // its own left inset; the note is 1080 wide behind an overflow-hidden viewport.
+ const HL1_MAX = 840 - 116 - 24,
+ HL2_MAX = 840 - 48,
+ HL3_MAX = 840 - 155 - 24,
+ NOTE_MAX = 1080 - TEXT_X - 40;
+ // Checklist columns, read off the authored markup: the label sits at x=72-74 under a
+ // scaleX(0.86), the marker value at x=389-390, and the tick at x=715.
+ const CL_LABEL_X = 74,
+ CL_VALUE_X = 389,
+ CL_CHECK_X = 715,
+ CL_GAP = 16,
+ CL_LABEL_SCALE = 0.86;
+
+ function markSpan(id, text) {
+ const el = document.createElement("span");
+ el.id = id;
+ el.textContent = text;
+ el.setAttribute("data-layout-allow-overlap", "");
+ el.setAttribute("data-layout-allow-occlusion", "");
+ return el;
+ }
+
+ function fitAll() {
+ fitWidth(document.getElementById("title-l1"), NOTE_MAX, 88);
+ fitWidth(document.getElementById("title-l2"), NOTE_MAX, 88);
+ for (let li = 0; li < 7; li++) {
+ fitWidth(document.getElementById("line-" + li), NOTE_MAX, 52.5);
+ }
+
+ // The checklist cells had no fit, so their character cap was the only thing keeping a
+ // value inside its column -- and a cap counts characters where the column measures
+ // pixels. A gamma.com remix delivered "DIRECT MEE" and the cap of 8 rendered "DIRECT M".
+ // Fit them like every other text slot so the cap can go back to being a backstop.
+ // A label is scaleX(0.86), so its column has to be divided back out of the visual gap
+ // before comparing against the untransformed offsetWidth fitWidth measures.
+ const CL_LABEL_MAX = (CL_VALUE_X - CL_LABEL_X - CL_GAP) / CL_LABEL_SCALE;
+ const CL_VALUE_MAX = CL_CHECK_X - CL_VALUE_X - CL_GAP;
+ document.querySelectorAll(".cl-label").forEach((el) => fitWidth(el, CL_LABEL_MAX, 44));
+ document.querySelectorAll(".cl-value").forEach((el) => fitWidth(el, CL_VALUE_MAX, 50));
+
+ // hl1: split into leading words and the last word, because the underline is drawn under
+ // the last word. Rebuilt from the stored text each pass, so this is idempotent.
+ const hl1 = document.getElementById("hl1");
+ const hl1Text = hl1.dataset.text || hl1.textContent.trim();
+ hl1.dataset.text = hl1Text;
+ const lastSpace = hl1Text.lastIndexOf(" ");
+ hl1.textContent = "";
+ // The card and the note both exist during the 21.375-21.66s crossfade, so the headline
+ // legitimately overlaps the note text there. hl1 carries the waiver for that; its child
+ // spans have to carry it too, or the checker reports the crossfade as a defect.
+ const hl1Head = markSpan(
+ "hl1-head",
+ lastSpace === -1 ? "" : hl1Text.slice(0, lastSpace + 1),
+ );
+ const hl1Tail = markSpan(
+ "hl1-tail",
+ lastSpace === -1 ? hl1Text : hl1Text.slice(lastSpace + 1),
+ );
+ hl1.appendChild(hl1Head);
+ hl1.appendChild(hl1Tail);
+ fitWidth(hl1, HL1_MAX, 110);
+
+ // Underline: follow the last word instead of sitting at a baked-in x. Every constant
+ // below is read off the packaged geometry -- underline left 333, width 415, top 196,
+ // under a 110px "THE POWER" whose box is left 116, top 72, height 160 and whose last
+ // word measures left 261, width 411 inside it. Written this way the packaged copy lands
+ // on exactly its authored pixels, and any other copy keeps the same relationship.
+ // The stroke leads into the word rather than starting at it, which is why LEAD is large
+ // and TAIL is not.
+ const UL_LEAD = 44 / 110; // per em, before the word starts
+ const UL_TAIL = 4 / 110; // per em, past where the word ends
+ const UL_DROP = 124 / 160; // down the line box
+ const ul = document.getElementById("hl-ul");
+ const hl1Px = parseFloat(hl1.style.fontSize);
+ ul.style.left = hl1.offsetLeft + hl1Tail.offsetLeft - UL_LEAD * hl1Px + "px";
+ ul.style.width = Math.max(24, hl1Tail.offsetWidth + UL_TAIL * hl1Px) + "px";
+ ul.style.top = hl1.offsetTop + UL_DROP * hl1.offsetHeight + "px";
+
+ // hl2 is a connector word, so centre it rather than trusting a baked-in left. The card
+ // is rotated -3.03deg, which puts the optical centre a couple of pixels right of the
+ // geometric one -- the packaged "OF" sits at 356 where geometry alone would say 354.
+ const hl2 = document.getElementById("hl2");
+ fitWidth(hl2, HL2_MAX, 100);
+ hl2.style.left = Math.round((840 - hl2.offsetWidth) / 2) + 2 + "px";
+
+ // hl3: fit, then ring its first word. The ring is an SVG element and has no offset*
+ // metrics, so it is placed from the head span's -- minus that span's padding, which is
+ // leading space rather than glyph. Constants again reproduce the packaged ring: 220x150
+ // at left -20, top -8, around a 110px "ONE" whose glyphs measure 226 wide, 157 tall.
+ const hl3 = document.getElementById("hl3");
+ fitWidth(hl3, HL3_MAX, 110);
+ const head = document.getElementById("hl3-head");
+ const headPad = parseFloat(getComputedStyle(head).paddingLeft) || 0;
+ const glyphW = head.offsetWidth - headPad;
+ const hl3Px = parseFloat(hl3.style.fontSize);
+ const ringW = Math.max(40, glyphW - (6 / 110) * hl3Px);
+ const ringH = Math.max(40, head.offsetHeight * (150 / 157));
+ const ring = document.getElementById("hl-circle");
+ ring.setAttribute("width", ringW);
+ ring.setAttribute("height", ringH);
+ ring.setAttribute("viewBox", "0 0 " + ringW + " " + ringH);
+ ring.style.left = head.offsetLeft + headPad - (44 / 110) * hl3Px + "px";
+ ring.style.top = head.offsetTop - (9 / 110) * hl3Px + "px";
+ const ellipse = ring.querySelector("ellipse");
+ ellipse.setAttribute("cx", ringW / 2 - (5 / 110) * hl3Px);
+ ellipse.setAttribute("cy", ringH / 2 - (3 / 110) * hl3Px);
+ ellipse.setAttribute("rx", ringW / 2 - (8 / 110) * hl3Px);
+ ellipse.setAttribute("ry", ringH / 2 - (14 / 110) * hl3Px);
+ }
+
+ // ---------- typewriter timing ----------
+ // EV is the packaged per-character rhythm. Its per-line first/last frames are the window
+ // JUMPS and SCROLLS were hand-tuned against, so the actual characters are distributed
+ // across each line's own window rather than the table being regenerated: a line of any
+ // length finishes before the caret jumps, and the composition's 24.867s and every scroll
+ // curve stay exactly as designed.
+ // EV is ordered line-major, so a per-line slice keeps its frames in typing order.
+ const LINE_FRAMES = (() => {
+ const byLine = [];
+ EV.forEach(([li, , f]) => (byLine[li] = byLine[li] || []).push(f));
+ return byLine;
+ })();
+
+ function typingEvents(lines) {
+ const out = [];
+ lines.forEach((text, li) => {
+ const packaged = LINE_FRAMES[li];
+ if (!packaged || !packaged.length || !text.length) return;
+ if (text.length === packaged.length) {
+ // A line the same length as the packaged copy keeps its hand-tuned rhythm frame for
+ // frame, so the template with its own defaults still renders bit-identically.
+ for (let ri = 0; ri < text.length; ri++) out.push([li, ri, packaged[ri]]);
+ return;
+ }
+ const f0 = packaged[0];
+ const f1 = packaged[packaged.length - 1];
+ const span = Math.max(1, f1 - f0);
+ for (let ri = 0; ri < text.length; ri++) {
+ const f = text.length === 1 ? f0 : f0 + Math.round((span * ri) / (text.length - 1));
+ out.push([li, ri, f]);
+ }
+ });
+ return out;
+ }
+
+ const EVENTS = typingEvents(NOTE_LINES);
+
const tl = gsap.timeline({ paused: true });
const body = document.getElementById("note-body");
const caret = document.getElementById("caret");
@@ -1397,6 +1602,9 @@
// gate-scale corrected (bodyRect.width / 1080) per renderer-traps.
function build() {
tl.clear();
+ // Fit first: the caret rides each character's measured right edge, so the type has to be
+ // at its final size before anything is measured.
+ fitAll();
const bodyRect = body.getBoundingClientRect();
const scale = bodyRect.width / 1080;
@@ -1405,8 +1613,9 @@
document.querySelectorAll(".ch").forEach((el) => tl.set(el, { autoAlpha: 0 }, 0));
// typing reveals + caret rides the revealed span's right edge
- EV.forEach(([li, ri, f]) => {
+ EVENTS.forEach(([li, ri, f]) => {
const el = document.getElementById(`ch-${li}-${ri}`);
+ if (!el) return;
const r = el.getBoundingClientRect();
const cx = (r.right - bodyRect.left) / scale + CARET_GAP;
const cy = LINE_TOPS[li] - 8;
diff --git a/registry/blocks/notes-reveal/registry-item.json b/registry/blocks/notes-reveal/registry-item.json
index 09563d1f54..939d9691c8 100644
--- a/registry/blocks/notes-reveal/registry-item.json
+++ b/registry/blocks/notes-reveal/registry-item.json
@@ -28,14 +28,86 @@
"description": "Second line of the note title.",
"default": "about video."
},
+ {
+ "id": "noteLine1",
+ "type": "string",
+ "role": "content",
+ "label": "Note body line 1",
+ "description": "First typed line of the note. The seven body lines are the bulk of the video: they must be about the brand this video promotes, not about video-making.",
+ "default": "my videos sucked"
+ },
+ {
+ "id": "noteLine2",
+ "type": "string",
+ "role": "content",
+ "label": "Note body line 2",
+ "description": "Second typed line of the note.",
+ "default": "my tools cost $$$"
+ },
+ {
+ "id": "noteLine3",
+ "type": "string",
+ "role": "content",
+ "label": "Note body line 3",
+ "description": "Third typed line of the note.",
+ "default": "and re-edits never end."
+ },
+ {
+ "id": "noteLine4",
+ "type": "string",
+ "role": "content",
+ "label": "Note body line 4",
+ "description": "Fourth typed line of the note — the turn, where the brand enters.",
+ "default": "then i tried writing html only"
+ },
+ {
+ "id": "noteLine5",
+ "type": "string",
+ "role": "content",
+ "label": "Note body line 5",
+ "description": "Fifth typed line of the note — name the brand here.",
+ "default": "started HyperFrames three weeks ago"
+ },
+ {
+ "id": "noteLine6",
+ "type": "string",
+ "role": "content",
+ "label": "Note body line 6",
+ "description": "Sixth typed line of the note.",
+ "default": "the grind is gone, but more than that —"
+ },
+ {
+ "id": "noteLine7",
+ "type": "string",
+ "role": "content",
+ "label": "Note body line 7",
+ "description": "Last typed line of the note — the payoff.",
+ "default": "I ship videos weekly."
+ },
{
"id": "cardTop",
"type": "string",
"role": "content",
"label": "Card headline top",
- "description": "First marker line on the closing card.",
+ "description": "First marker line on the closing card. The underline follows its last word.",
"default": "THE POWER"
},
+ {
+ "id": "cardMid",
+ "type": "string",
+ "role": "content",
+ "label": "Card headline middle",
+ "description": "Short connector line between the two headline lines, centred on the card.",
+ "default": "OF"
+ },
+ {
+ "id": "cardBottom",
+ "type": "string",
+ "role": "content",
+ "label": "Card headline bottom",
+ "description": "Last marker line on the closing card. Its first word is ringed.",
+ "default": "ONE FILE"
+ },
{
"id": "check1Label",
"type": "string",
@@ -83,6 +155,24 @@
"label": "Checklist 3 value",
"description": "Marker value of the third checklist row.",
"default": "TODAY"
+ },
+ {
+ "id": "brandLogo",
+ "type": "image",
+ "role": "content",
+ "label": "Brand logo",
+ "description": "Transparent mark of the brand this video promotes, in the sign-off strip under the card.",
+ "portrays": ["subject_logo"],
+ "default": "assets/hyperframes-logo-black.svg"
+ },
+ {
+ "id": "brandDomain",
+ "type": "string",
+ "role": "content",
+ "label": "Sign-off domain",
+ "description": "Domain of the brand this video promotes, closing the sign-off strip. Use the real domain, or a call to action when no domain fits.",
+ "portrays": ["subject_domain"],
+ "default": "hyperframes.heygen.com"
}
],
"files": [
@@ -106,6 +196,11 @@
"target": "assets/courier-prime-700.woff2",
"type": "hyperframes:asset"
},
+ {
+ "path": "assets/hyperframes-logo-black.svg",
+ "target": "assets/hyperframes-logo-black.svg",
+ "type": "hyperframes:asset"
+ },
{
"path": "TEMPLATE.md",
"target": "TEMPLATE.md",
diff --git a/registry/blocks/notification-cascade/TEMPLATE.md b/registry/blocks/notification-cascade/TEMPLATE.md
index c59acee58b..3cbb794802 100644
--- a/registry/blocks/notification-cascade/TEMPLATE.md
+++ b/registry/blocks/notification-cascade/TEMPLATE.md
@@ -2,7 +2,7 @@
## Surface ownership
-This is a generic notification presentation with a HyperFrames-branded payoff. The notification geometry, backdrop, stacking behavior, typography, and motion belong to the template. The supplied website is the subject brand placed into declared slots.
+This is a generic notification presentation with a HyperFrames-branded payoff. The notification geometry, backdrop, stacking behavior, typography, and motion belong to the template. The supplied website is the subject brand placed into declared slots. The remix is an advertisement for that brand, so its real name, its real domain, and its own mark belong in the declared identity slots.
## Editable slots
diff --git a/registry/blocks/notification-cascade/notification-cascade.html b/registry/blocks/notification-cascade/notification-cascade.html
index e00564c162..28ebc7c58a 100644
--- a/registry/blocks/notification-cascade/notification-cascade.html
+++ b/registry/blocks/notification-cascade/notification-cascade.html
@@ -7,11 +7,11 @@
{ "id": "message2", "type": "string", "role": "content", "label": "Message 2", "description": "Subtitle of the second banner.", "default": "All checks passed." },
{ "id": "message3", "type": "string", "role": "content", "label": "Message 3", "description": "Subtitle of the third banner.", "default": "4K render done in 92s." },
{ "id": "message4", "type": "string", "role": "content", "label": "Message 4", "description": "Subtitle of the fourth banner.", "default": "Published to the catalog." },
- { "id": "appName", "type": "string", "role": "content", "label": "App name", "description": "Small credit in the corner of every banner.", "default": "HyperFrames" },
+ { "id": "appName", "type": "string", "role": "content", "label": "App name", "description": "Name of the brand this video promotes, credited in the corner of every banner. Use the real name of that brand.", "portrays": ["subject_name"], "default": "HyperFrames" },
{ "id": "headlineTop", "type": "string", "role": "content", "label": "End-card line 1", "description": "First line of the closing card.", "default": "SHIP VIDEO" },
{ "id": "headlineAccent", "type": "string", "role": "content", "label": "End-card line 2", "description": "Accented second line of the closing card.", "default": "FROM HTML" },
- { "id": "footerText", "type": "string", "role": "content", "label": "End-card footer", "description": "URL or call to action under the headline.", "default": "hyperframes.heygen.com" },
- { "id": "brandLogo", "type": "image", "role": "content", "label": "Brand logo", "description": "Transparent logo centered on the closing card.", "default": "assets/hyperframes-logo-white.svg" }
+ { "id": "footerText", "type": "string", "role": "content", "label": "End-card footer", "description": "Domain of the brand this video promotes, under the end-card headline. Use the real domain, or a call to action when no domain fits.", "portrays": ["subject_domain"], "default": "hyperframes.heygen.com" },
+ { "id": "brandLogo", "type": "image", "role": "content", "label": "Brand logo", "description": "Transparent mark of the brand this video promotes, centered on the closing card.", "portrays": ["subject_logo"], "default": "assets/hyperframes-logo-white.svg" }
]'
>
<head>
diff --git a/registry/blocks/notification-cascade/registry-item.json b/registry/blocks/notification-cascade/registry-item.json
index 0684510a3d..3897cad3e5 100644
--- a/registry/blocks/notification-cascade/registry-item.json
+++ b/registry/blocks/notification-cascade/registry-item.json
@@ -57,7 +57,8 @@
"type": "string",
"role": "content",
"label": "App name",
- "description": "Small credit in the corner of every banner.",
+ "description": "Name of the brand this video promotes, credited in the corner of every banner. Use the real name of that brand.",
+ "portrays": ["subject_name"],
"default": "HyperFrames"
},
{
@@ -81,7 +82,8 @@
"type": "string",
"role": "content",
"label": "End-card footer",
- "description": "URL or call to action under the headline.",
+ "description": "Domain of the brand this video promotes, under the end-card headline. Use the real domain, or a call to action when no domain fits.",
+ "portrays": ["subject_domain"],
"default": "hyperframes.heygen.com"
},
{
@@ -89,7 +91,8 @@
"type": "image",
"role": "content",
"label": "Brand logo",
- "description": "Transparent logo centered on the closing card.",
+ "description": "Transparent mark of the brand this video promotes, centered on the closing card.",
+ "portrays": ["subject_logo"],
"default": "assets/hyperframes-logo-white.svg"
}
],
diff --git a/registry/blocks/share-sheet-carousel/TEMPLATE.md b/registry/blocks/share-sheet-carousel/TEMPLATE.md
index 863e4586d7..d3564ccb99 100644
--- a/registry/blocks/share-sheet-carousel/TEMPLATE.md
+++ b/registry/blocks/share-sheet-carousel/TEMPLATE.md
@@ -2,7 +2,7 @@
## Surface ownership
-This template depicts an operating-system share sheet. The supplied website is the item or sender shown inside that interface; it does not own the surrounding system UI.
+This template depicts an operating-system share sheet. The supplied website is the item or sender shown inside that interface; it does not own the surrounding system UI. The remix is an advertisement for that brand: the sender name, the brand strip, and the wordmark carry its real identity.
## Editable slots
diff --git a/registry/blocks/share-sheet-carousel/registry-item.json b/registry/blocks/share-sheet-carousel/registry-item.json
index 5a81e99504..edf4b04ef9 100644
--- a/registry/blocks/share-sheet-carousel/registry-item.json
+++ b/registry/blocks/share-sheet-carousel/registry-item.json
@@ -25,7 +25,8 @@
"type": "string",
"role": "content",
"label": "Sender",
- "description": "Bold name in the sheet subtitle.",
+ "description": "Name of the brand this video promotes, shown as the sender offering the item. Use the real name of that brand.",
+ "portrays": ["subject_name"],
"default": "HyperFrames"
},
{
@@ -41,7 +42,8 @@
"type": "string",
"role": "content",
"label": "Brand strip",
- "description": "Small-caps line under the preview, beside the logo.",
+ "description": "Positioning line of the brand this video promotes, in small caps beside its logo.",
+ "portrays": ["subject_tagline"],
"default": "OPEN-SOURCE VIDEO ENGINE · SHIP FROM HTML"
},
{
@@ -97,7 +99,8 @@
"type": "image",
"role": "content",
"label": "Brand logo",
- "description": "Transparent horizontal wordmark in the preview strip.",
+ "description": "Transparent horizontal wordmark of the brand this video promotes, in the preview strip.",
+ "portrays": ["subject_logo"],
"default": "assets/hyperframes-logo-black.svg"
}
],
diff --git a/registry/blocks/share-sheet-carousel/share-sheet-carousel.html b/registry/blocks/share-sheet-carousel/share-sheet-carousel.html
index 7e0006fe42..0802b262dc 100644
--- a/registry/blocks/share-sheet-carousel/share-sheet-carousel.html
+++ b/registry/blocks/share-sheet-carousel/share-sheet-carousel.html
@@ -3,16 +3,16 @@
lang="en"
data-composition-variables='[
{ "id": "shareTitle", "type": "string", "role": "content", "label": "Sheet title", "description": "Heading at the top of the share sheet.", "default": "Share" },
- { "id": "senderName", "type": "string", "role": "content", "label": "Sender", "description": "Bold name in the sheet subtitle.", "default": "HyperFrames" },
+ { "id": "senderName", "type": "string", "role": "content", "label": "Sender", "description": "Name of the brand this video promotes, shown as the sender offering the item. Use the real name of that brand.", "portrays": ["subject_name"], "default": "HyperFrames" },
{ "id": "itemLabel", "type": "string", "role": "content", "label": "Item", "description": "What the sender is offering, completing the sentence \"… would like to share …\".", "default": "a video" },
- { "id": "stripText", "type": "string", "role": "content", "label": "Brand strip", "description": "Small-caps line under the preview, beside the logo.", "default": "OPEN-SOURCE VIDEO ENGINE · SHIP FROM HTML" },
+ { "id": "stripText", "type": "string", "role": "content", "label": "Brand strip", "description": "Positioning line of the brand this video promotes, in small caps beside its logo.", "portrays": ["subject_tagline"], "default": "OPEN-SOURCE VIDEO ENGINE · SHIP FROM HTML" },
{ "id": "acceptLabel", "type": "string", "role": "content", "label": "Accept label", "description": "Right-hand action button.", "default": "Accept" },
{ "id": "declineLabel", "type": "string", "role": "content", "label": "Decline label", "description": "Left-hand action button.", "default": "Decline" },
{ "id": "slideImage1", "type": "image", "role": "content", "label": "Slide image 1", "description": "First carousel image; also fills the blurred background.", "default": "assets/slide-01.jpg" },
{ "id": "slideImage2", "type": "image", "role": "content", "label": "Slide image 2", "description": "Second carousel image; also fills the blurred background.", "default": "assets/slide-02.jpg" },
{ "id": "slideImage3", "type": "image", "role": "content", "label": "Slide image 3", "description": "Third carousel image; also fills the blurred background.", "default": "assets/slide-03.jpg" },
{ "id": "slideImage4", "type": "image", "role": "content", "label": "Slide image 4", "description": "Fourth carousel image; also fills the blurred background.", "default": "assets/slide-04.jpg" },
- { "id": "brandLogo", "type": "image", "role": "content", "label": "Brand logo", "description": "Transparent horizontal wordmark in the preview strip.", "default": "assets/hyperframes-logo-black.svg" }
+ { "id": "brandLogo", "type": "image", "role": "content", "label": "Brand logo", "description": "Transparent horizontal wordmark of the brand this video promotes, in the preview strip.", "portrays": ["subject_logo"], "default": "assets/hyperframes-logo-black.svg" }
]'
>
<head>
diff --git a/registry/blocks/slack-notification-ad/TEMPLATE.md b/registry/blocks/slack-notification-ad/TEMPLATE.md
index bc7142bbfb..048f982f2e 100644
--- a/registry/blocks/slack-notification-ad/TEMPLATE.md
+++ b/registry/blocks/slack-notification-ad/TEMPLATE.md
@@ -2,7 +2,7 @@
## Surface ownership
-This template depicts Slack notifications on an iOS lock screen. Slack and iOS own the notification and device chrome. The supplied website may appear only in declared notification copy and the final payoff identity.
+This template depicts Slack notifications on an iOS lock screen. Slack and iOS own the notification and device chrome. The supplied website appears in the declared notification copy and the final payoff identity, and nowhere else. The remix is an advertisement for that brand: the payoff notification carries its real name and its own mark.
## Editable slots
diff --git a/registry/blocks/slack-notification-ad/slack-notification-ad.html b/registry/blocks/slack-notification-ad/slack-notification-ad.html
index 51e86eac89..27b927a39d 100644
--- a/registry/blocks/slack-notification-ad/slack-notification-ad.html
+++ b/registry/blocks/slack-notification-ad/slack-notification-ad.html
@@ -25,9 +25,9 @@
{ "id": "request10Text", "type": "string", "role": "content", "label": "Request 10 message", "description": "Tenth Slack notification message.", "default": "investor update needs a quick video walkthrough" },
{ "id": "request11Title", "type": "string", "role": "content", "label": "Request 11 sender", "description": "Eleventh Slack notification sender or channel.", "default": "Ben Liu" },
{ "id": "request11Text", "type": "string", "role": "content", "label": "Request 11 message", "description": "Eleventh Slack notification message.", "default": "one more: Product Hunt launch video" },
- { "id": "payoffTitle", "type": "string", "role": "content", "label": "Payoff sender", "description": "Final brand payoff title.", "default": "HeyGen" },
- { "id": "payoffText", "type": "string", "role": "content", "label": "Payoff message", "description": "Final brand payoff message.", "default": "Heard you needed some videos?" },
- { "id": "payoffIcon", "type": "image", "role": "content", "label": "Payoff logo", "description": "Logo shown only in the final payoff notification.", "default": "assets/img/heygen-mark.svg" }
+ { "id": "payoffTitle", "type": "string", "role": "content", "label": "Payoff sender", "description": "Sender of the final payoff notification: the brand this video promotes, by its real name.", "portrays": ["subject_name", "recommended_position"], "default": "HeyGen" },
+ { "id": "payoffText", "type": "string", "role": "content", "label": "Payoff message", "description": "Payoff message from the brand this video promotes.", "default": "Heard you needed some videos?" },
+ { "id": "payoffIcon", "type": "image", "role": "content", "label": "Payoff logo", "description": "Mark of the brand this video promotes, shown only in the final payoff notification.", "portrays": ["subject_logo"], "default": "assets/img/heygen-mark.svg" }
]'
>
<head>
diff --git a/registry/catalog-artifact/local-vectors.bin b/registry/catalog-artifact/local-vectors.bin
index 3db71fd2c1..9a7755d02c 100644
Binary files a/registry/catalog-artifact/local-vectors.bin and b/registry/catalog-artifact/local-vectors.bin differ