fix(catalog): render the Matrix Decode docs preview; remove Checkout Flow (#3396)

* fix(catalog): reveal Matrix Decode captions with autoAlpha so the docs preview renders

The demo and snippet flipped word spans with zero-duration display sets,
which the seek-driven docs player never applies after its style restore:
the composition played 8s of black. autoAlpha reveals with the scrambles
as same-length absolute overlays follow the keyframes contract (never
tween display) and survive seeks and loop wraps. Scramble text now
matches each word's length so it decodes in place instead of jumping.

* chore(registry): remove the Checkout Flow component

Owner-directed removal of the checkout-flow catalog item: source,
demo, generated docs page and payload, and its entries in the registry
manifest, catalog index, docs nav, and search vectors. The deletions
are allowlisted in check-no-main-deletions.
This commit is contained in:
Miguel Ángel
2026-08-21 15:14:11 -04:00
committed by GitHub
parent a1c1f519cb
commit d4765512df
15 changed files with 77 additions and 458 deletions
@@ -96,13 +96,17 @@ That writes one file: `compositions/components/caption-matrix-decode.html`.
position: relative;
}
.sc-real {
display: none;
}
.sc-scr0 {
display: none;
opacity: 0;
visibility: hidden;
}
.sc-scr0,
.sc-scr1 {
display: none;
position: absolute;
left: 0;
top: 0;
white-space: nowrap;
opacity: 0;
visibility: hidden;
}
</style>
</head>
@@ -150,10 +154,10 @@ That writes one file: `compositions/components/caption-matrix-decode.html`.
var ALPHANUM = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
function scrambleChars(seed) {
function scrambleChars(seed, length) {
var rng = mulberry32(seed);
var result = "";
for (var i = 0; i < 4; i++) {
for (var i = 0; i < length; i++) {
result += ALPHANUM[Math.floor(rng() * ALPHANUM.length)];
}
return result;
@@ -234,13 +238,13 @@ That writes one file: `compositions/components/caption-matrix-decode.html`.
var scr0 = document.createElement("span");
scr0.className = "sc-scr0";
scr0.id = "sc-scr0-" + wi;
scr0.textContent = scrambleChars(wi * 1000 + 0);
scr0.textContent = scrambleChars(wi * 1000 + 0, w.text.length);
wordWrap.appendChild(scr0);
var scr1 = document.createElement("span");
scr1.className = "sc-scr1";
scr1.id = "sc-scr1-" + wi;
scr1.textContent = scrambleChars(wi * 1000 + 1);
scr1.textContent = scrambleChars(wi * 1000 + 1, w.text.length);
wordWrap.appendChild(scr1);
grp.appendChild(wordWrap);
@@ -257,11 +261,11 @@ That writes one file: `compositions/components/caption-matrix-decode.html`.
var scr0El = document.getElementById("sc-scr0-" + wi);
var scr1El = document.getElementById("sc-scr1-" + wi);
tl.set(scr0El, { display: "inline" }, w.start);
tl.set(scr1El, { display: "inline" }, w.start + 0.1);
tl.set(scr0El, { display: "none" }, w.start + 0.1);
tl.set(realEl, { display: "inline" }, w.start + 0.2);
tl.set(scr1El, { display: "none" }, w.start + 0.2);
tl.set(scr0El, { autoAlpha: 1 }, w.start);
tl.set(scr1El, { autoAlpha: 1 }, w.start + 0.1);
tl.set(scr0El, { autoAlpha: 0 }, w.start + 0.1);
tl.set(realEl, { autoAlpha: 1 }, w.start + 0.2);
tl.set(scr1El, { autoAlpha: 0 }, w.start + 0.2);
});
tl.to(grp, { opacity: 0, duration: 0.12 }, g.end - 0.12);
-131
View File
@@ -1,131 +0,0 @@
---
title: "Checkout Flow"
description: "A composed checkout flow with plan summary, payment field rows, total, and purchase action"
---
import { InstallCommand } from "/snippets/install-command.jsx";
<iframe
className="w-full aspect-video rounded-xl border-0 bg-zinc-100 dark:bg-zinc-800"
title="checkout-flow preview"
loading="lazy"
srcDoc={`<!doctype html><html><head><meta charset="utf-8"><style>html,body{margin:0;height:100%;overflow:hidden;background:transparent}hyperframes-player{display:block;width:100%;height:100%}</style><script src="https://cdn.jsdelivr.net/npm/@hyperframes/player@latest/dist/hyperframes-player.global.js"><\/script></head><body><script>fetch("/public/catalog/components/checkout-flow.json").then(function(r){return r.json()}).then(function(d){var p=document.createElement("hyperframes-player");p.setAttribute("srcdoc",d.html);p.setAttribute("controls","");p.setAttribute("autoplay","");p.setAttribute("loop","");p.setAttribute("muted","");p.setAttribute("poster","https://static.heygen.ai/hyperframes-oss/docs/images/catalog/components/checkout-flow.png");document.body.appendChild(p)});<\/script></body></html>`}
/>
## Install
<InstallCommand command="npx hyperframes add checkout-flow" item="checkout-flow" />
That writes one file: `compositions/components/checkout-flow.html`.
## Source
<Accordion title={`checkout-flow.html`}>
```html
<!--
Checkout Flow - Composed UI flow for HyperFrames.
Paste the markup and CSS into a composition. Use the timeline integration
note at the bottom as the starting point for deterministic GSAP animation.
-->
<div class="hf-ui-checkout-flow">
<div class="hf-ui-checkout-plan"><span>Pro plan</span><strong>$29/mo</strong></div>
<div class="hf-ui-checkout-fields">
<div>Card number <strong>4242 4242 4242 4242</strong></div>
<div>Expiry <strong>12/30</strong></div>
</div>
<div class="hf-ui-checkout-total"><span>Total today</span><strong>$29.00</strong></div>
<button type="button">Complete purchase</button>
</div>
<style>
.hf-ui-checkout-flow {
display: grid;
gap: 16px;
width: 440px;
padding: 26px;
border: 1px solid #e4e4e7;
border-radius: 28px;
background: #ffffff;
color: #18181b;
font-family: Inter, system-ui, sans-serif;
box-shadow: 0 28px 84px rgba(0, 0, 0, 0.12);
}
.hf-ui-checkout-plan,
.hf-ui-checkout-total {
display: flex;
justify-content: space-between;
align-items: center;
}
.hf-ui-checkout-plan {
padding: 18px;
border-radius: 18px;
background: #18181b;
color: #ffffff;
}
.hf-ui-checkout-plan span,
.hf-ui-checkout-total span {
color: inherit;
opacity: 0.72;
font-size: 14px;
font-weight: 850;
}
.hf-ui-checkout-plan strong,
.hf-ui-checkout-total strong {
font-size: 22px;
}
.hf-ui-checkout-fields {
display: grid;
gap: 10px;
}
.hf-ui-checkout-fields div {
display: grid;
gap: 5px;
padding: 14px 16px;
border: 1px solid #e4e4e7;
border-radius: 15px;
color: #71717a;
font-size: 13px;
font-weight: 800;
}
.hf-ui-checkout-fields strong {
color: #18181b;
font-size: 16px;
}
.hf-ui-checkout-flow button {
height: 50px;
border: 0;
border-radius: 15px;
/* The primary action is the one accent-carrying element here. */
background: var(--accent, #18181b);
color: #ffffff;
font-weight: 900;
}
</style>
<!--
Timeline integration:
tl.fromTo('.hf-ui-checkout-flow', { opacity: 0, y: 28 }, { opacity: 1, y: 0, duration: 0.36, ease: 'power2.out' }, 0.25);
tl.fromTo('.hf-ui-checkout-fields div', { x: -16, opacity: 0 }, { x: 0, opacity: 1, duration: 0.26, stagger: 0.08, ease: 'power2.out' }, 0.62);
tl.fromTo('.hf-ui-checkout-total', { opacity: 0 }, { opacity: 1, duration: 0.24, ease: 'power2.out' }, 0.92);
tl.to('.hf-ui-checkout-flow button', { scale: 0.96, duration: 0.12, yoyo: true, repeat: 1, ease: 'power1.inOut' }, 1.18);
-->
```
</Accordion>
## Usage
Open `compositions/components/checkout-flow.html` and paste its contents into your composition. See the comment header in the file for detailed instructions.
{/* hf:generated-footer */}
Tagged `ui-flow` `checkout` `commerce`.
## Related topics
- [Browse the complete Catalog](/catalog)
- [Add assets and Catalog items in Studio](/studio/assets-and-blocks)
- [Build a richer composition](/go-further)
-1
View File
@@ -625,7 +625,6 @@
"catalog/components/beat-timeline",
"catalog/components/before-after-wipe",
"catalog/components/camera-rig-depth-stack",
"catalog/components/checkout-flow",
"catalog/components/comparison-split",
"catalog/components/confetti",
"catalog/components/cut-the-curve",
-13
View File
@@ -746,19 +746,6 @@
"href": "/catalog/blocks/chatgpt-exchange",
"preview": "https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/chatgpt-exchange.png"
},
{
"name": "checkout-flow",
"type": "component",
"title": "Checkout Flow",
"description": "A composed checkout flow with plan summary, payment field rows, total, and purchase action",
"tags": [
"ui-flow",
"checkout",
"commerce"
],
"href": "/catalog/components/checkout-flow",
"preview": "https://static.heygen.ai/hyperframes-oss/docs/images/catalog/components/checkout-flow.png"
},
{
"name": "chromatic-aberration-wipe",
"type": "component",
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
{"html":"<!doctype html>\n<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\" />\n <meta name=\"viewport\" content=\"width=1920, height=1080\" />\n <title>Checkout Flow - Demo</title>\n <script src=\"https://cdn.jsdelivr.net/npm/gsap@3.14.2/dist/gsap.min.js\"></script>\n <style>\n * {\n box-sizing: border-box;\n }\n html,\n body {\n margin: 0;\n width: 1920px;\n height: 1080px;\n overflow: hidden;\n }\n #demo {\n width: 1920px;\n height: 1080px;\n display: grid;\n place-items: center;\n background: #f5f5f4;\n font-family: Inter, system-ui, sans-serif;\n }\n .demo-frame {\n display: grid;\n place-items: center;\n min-width: 760px;\n min-height: 520px;\n padding: 56px;\n /* ponytail: scale wrapper (not a GSAP target) to fill ~55% of frame */\n transform: scale(1.12);\n transform-origin: center center;\n }\n .hf-ui-checkout-flow {\n display: grid;\n gap: 16px;\n width: 440px;\n padding: 26px;\n border: 1px solid #e4e4e7;\n border-radius: 28px;\n background: #ffffff;\n color: #18181b;\n font-family: Inter, system-ui, sans-serif;\n box-shadow: 0 28px 84px rgba(0, 0, 0, 0.12);\n }\n .hf-ui-checkout-plan,\n .hf-ui-checkout-total {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n .hf-ui-checkout-plan {\n padding: 18px;\n border-radius: 18px;\n background: #18181b;\n color: #ffffff;\n }\n .hf-ui-checkout-plan span,\n .hf-ui-checkout-total span {\n color: inherit;\n opacity: 0.72;\n font-size: 14px;\n font-weight: 850;\n }\n .hf-ui-checkout-plan strong,\n .hf-ui-checkout-total strong {\n font-size: 22px;\n }\n .hf-ui-checkout-fields {\n display: grid;\n gap: 10px;\n }\n .hf-ui-checkout-fields div {\n display: grid;\n gap: 5px;\n padding: 14px 16px;\n border: 1px solid #e4e4e7;\n border-radius: 15px;\n color: #71717a;\n font-size: 13px;\n font-weight: 800;\n }\n .hf-ui-checkout-fields strong {\n color: #18181b;\n font-size: 16px;\n }\n .hf-ui-checkout-flow button {\n width: 100%;\n height: 50px;\n border: 0;\n border-radius: 15px;\n /* The primary action is the one accent-carrying element here. */\n background: var(--accent, #18181b);\n color: #ffffff;\n font-size: 15px;\n font-weight: 700;\n cursor: default;\n }\n </style>\n </head>\n <body>\n <div\n id=\"demo\"\n data-composition-id=\"checkout-flow-demo\"\n data-start=\"0\"\n data-width=\"1920\"\n data-height=\"1080\"\n data-duration=\"5\"\n >\n <div class=\"demo-frame\">\n <div class=\"hf-ui-checkout-flow\">\n <div class=\"hf-ui-checkout-plan\"><span>Pro plan</span><strong>$29/mo</strong></div>\n <div class=\"hf-ui-checkout-fields\">\n <div>Card number <strong>4242 4242 4242 4242</strong></div>\n <div>Expiry <strong>12/30</strong></div>\n </div>\n <div class=\"hf-ui-checkout-total\"><span>Total today</span><strong>$29.00</strong></div>\n <button type=\"button\">Complete purchase</button>\n </div>\n </div>\n <script>\n const tl = gsap.timeline({ paused: true });\n tl.fromTo(\n \".hf-ui-checkout-flow\",\n { opacity: 0, y: 28 },\n { opacity: 1, y: 0, duration: 0.36, ease: \"power2.out\" },\n 0.25,\n );\n tl.fromTo(\n \".hf-ui-checkout-fields div\",\n { x: -16, opacity: 0 },\n { x: 0, opacity: 1, duration: 0.26, stagger: 0.08, ease: \"power2.out\" },\n 0.62,\n );\n tl.fromTo(\n \".hf-ui-checkout-total\",\n { opacity: 0 },\n { opacity: 1, duration: 0.24, ease: \"power2.out\" },\n 0.92,\n );\n tl.to(\n \".hf-ui-checkout-flow button\",\n { scale: 0.96, duration: 0.12, yoyo: true, repeat: 1, ease: \"power1.inOut\" },\n 1.18,\n );\n tl.set({}, {}, 5);\n window.__timelines = window.__timelines || {};\n window.__timelines[\"checkout-flow-demo\"] = tl;\n </script>\n </div>\n </body>\n</html>\n"}
Binary file not shown.
+1 -2
View File
@@ -2,7 +2,7 @@
"model": "bge-small-en-v1.5",
"modelRevision": "ea104dacec62c0de699686887e3f920caeb4f3e3",
"dimensions": 384,
"revision": "032078c10ac211b74a29a4826f113876ee4ef14c3e4cf9f935b0ec763cdca97f",
"revision": "fbf1facc93a2cd1dc4507407f21fe4f6097da56670aaab4a0689b12dc0c43d09",
"names": [
"ai-chat-reveal",
"animated-bar-chart",
@@ -54,7 +54,6 @@
"chat-message",
"chat-thread",
"chatgpt-exchange",
"checkout-flow",
"chromatic-aberration-wipe",
"chromatic-radial-split",
"cinematic-zoom",
@@ -71,13 +71,17 @@
position: relative;
}
.sc-real {
display: none;
}
.sc-scr0 {
display: none;
opacity: 0;
visibility: hidden;
}
.sc-scr0,
.sc-scr1 {
display: none;
position: absolute;
left: 0;
top: 0;
white-space: nowrap;
opacity: 0;
visibility: hidden;
}
</style>
</head>
@@ -125,10 +129,10 @@
var ALPHANUM = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
function scrambleChars(seed) {
function scrambleChars(seed, length) {
var rng = mulberry32(seed);
var result = "";
for (var i = 0; i < 4; i++) {
for (var i = 0; i < length; i++) {
result += ALPHANUM[Math.floor(rng() * ALPHANUM.length)];
}
return result;
@@ -209,13 +213,13 @@
var scr0 = document.createElement("span");
scr0.className = "sc-scr0";
scr0.id = "sc-scr0-" + wi;
scr0.textContent = scrambleChars(wi * 1000 + 0);
scr0.textContent = scrambleChars(wi * 1000 + 0, w.text.length);
wordWrap.appendChild(scr0);
var scr1 = document.createElement("span");
scr1.className = "sc-scr1";
scr1.id = "sc-scr1-" + wi;
scr1.textContent = scrambleChars(wi * 1000 + 1);
scr1.textContent = scrambleChars(wi * 1000 + 1, w.text.length);
wordWrap.appendChild(scr1);
grp.appendChild(wordWrap);
@@ -232,11 +236,11 @@
var scr0El = document.getElementById("sc-scr0-" + wi);
var scr1El = document.getElementById("sc-scr1-" + wi);
tl.set(scr0El, { display: "inline" }, w.start);
tl.set(scr1El, { display: "inline" }, w.start + 0.1);
tl.set(scr0El, { display: "none" }, w.start + 0.1);
tl.set(realEl, { display: "inline" }, w.start + 0.2);
tl.set(scr1El, { display: "none" }, w.start + 0.2);
tl.set(scr0El, { autoAlpha: 1 }, w.start);
tl.set(scr1El, { autoAlpha: 1 }, w.start + 0.1);
tl.set(scr0El, { autoAlpha: 0 }, w.start + 0.1);
tl.set(realEl, { autoAlpha: 1 }, w.start + 0.2);
tl.set(scr1El, { autoAlpha: 0 }, w.start + 0.2);
});
tl.to(grp, { opacity: 0, duration: 0.12 }, g.end - 0.12);
+18 -14
View File
@@ -70,13 +70,17 @@
position: relative;
}
.sc-real {
display: none;
}
.sc-scr0 {
display: none;
opacity: 0;
visibility: hidden;
}
.sc-scr0,
.sc-scr1 {
display: none;
position: absolute;
left: 0;
top: 0;
white-space: nowrap;
opacity: 0;
visibility: hidden;
}
</style>
</head>
@@ -123,10 +127,10 @@
var ALPHANUM = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
function scrambleChars(seed) {
function scrambleChars(seed, length) {
var rng = mulberry32(seed);
var result = "";
for (var i = 0; i < 4; i++) {
for (var i = 0; i < length; i++) {
result += ALPHANUM[Math.floor(rng() * ALPHANUM.length)];
}
return result;
@@ -207,13 +211,13 @@
var scr0 = document.createElement("span");
scr0.className = "sc-scr0";
scr0.id = "sc-scr0-" + wi;
scr0.textContent = scrambleChars(wi * 1000 + 0);
scr0.textContent = scrambleChars(wi * 1000 + 0, w.text.length);
wordWrap.appendChild(scr0);
var scr1 = document.createElement("span");
scr1.className = "sc-scr1";
scr1.id = "sc-scr1-" + wi;
scr1.textContent = scrambleChars(wi * 1000 + 1);
scr1.textContent = scrambleChars(wi * 1000 + 1, w.text.length);
wordWrap.appendChild(scr1);
grp.appendChild(wordWrap);
@@ -230,11 +234,11 @@
var scr0El = document.getElementById("sc-scr0-" + wi);
var scr1El = document.getElementById("sc-scr1-" + wi);
tl.set(scr0El, { display: "inline" }, w.start);
tl.set(scr1El, { display: "inline" }, w.start + 0.1);
tl.set(scr0El, { display: "none" }, w.start + 0.1);
tl.set(realEl, { display: "inline" }, w.start + 0.2);
tl.set(scr1El, { display: "none" }, w.start + 0.2);
tl.set(scr0El, { autoAlpha: 1 }, w.start);
tl.set(scr1El, { autoAlpha: 1 }, w.start + 0.1);
tl.set(scr0El, { autoAlpha: 0 }, w.start + 0.1);
tl.set(realEl, { autoAlpha: 1 }, w.start + 0.2);
tl.set(scr1El, { autoAlpha: 0 }, w.start + 0.2);
});
tl.to(grp, { opacity: 0, duration: 0.12 }, g.end - 0.12);
-89
View File
@@ -1,89 +0,0 @@
<!--
Checkout Flow - Composed UI flow for HyperFrames.
Paste the markup and CSS into a composition. Use the timeline integration
note at the bottom as the starting point for deterministic GSAP animation.
-->
<div class="hf-ui-checkout-flow">
<div class="hf-ui-checkout-plan"><span>Pro plan</span><strong>$29/mo</strong></div>
<div class="hf-ui-checkout-fields">
<div>Card number <strong>4242 4242 4242 4242</strong></div>
<div>Expiry <strong>12/30</strong></div>
</div>
<div class="hf-ui-checkout-total"><span>Total today</span><strong>$29.00</strong></div>
<button type="button">Complete purchase</button>
</div>
<style>
.hf-ui-checkout-flow {
display: grid;
gap: 16px;
width: 440px;
padding: 26px;
border: 1px solid #e4e4e7;
border-radius: 28px;
background: #ffffff;
color: #18181b;
font-family: Inter, system-ui, sans-serif;
box-shadow: 0 28px 84px rgba(0, 0, 0, 0.12);
}
.hf-ui-checkout-plan,
.hf-ui-checkout-total {
display: flex;
justify-content: space-between;
align-items: center;
}
.hf-ui-checkout-plan {
padding: 18px;
border-radius: 18px;
background: #18181b;
color: #ffffff;
}
.hf-ui-checkout-plan span,
.hf-ui-checkout-total span {
color: inherit;
opacity: 0.72;
font-size: 14px;
font-weight: 850;
}
.hf-ui-checkout-plan strong,
.hf-ui-checkout-total strong {
font-size: 22px;
}
.hf-ui-checkout-fields {
display: grid;
gap: 10px;
}
.hf-ui-checkout-fields div {
display: grid;
gap: 5px;
padding: 14px 16px;
border: 1px solid #e4e4e7;
border-radius: 15px;
color: #71717a;
font-size: 13px;
font-weight: 800;
}
.hf-ui-checkout-fields strong {
color: #18181b;
font-size: 16px;
}
.hf-ui-checkout-flow button {
height: 50px;
border: 0;
border-radius: 15px;
/* The primary action is the one accent-carrying element here. */
background: var(--accent, #18181b);
color: #ffffff;
font-weight: 900;
}
</style>
<!--
Timeline integration:
tl.fromTo('.hf-ui-checkout-flow', { opacity: 0, y: 28 }, { opacity: 1, y: 0, duration: 0.36, ease: 'power2.out' }, 0.25);
tl.fromTo('.hf-ui-checkout-fields div', { x: -16, opacity: 0 }, { x: 0, opacity: 1, duration: 0.26, stagger: 0.08, ease: 'power2.out' }, 0.62);
tl.fromTo('.hf-ui-checkout-total', { opacity: 0 }, { opacity: 1, duration: 0.24, ease: 'power2.out' }, 0.92);
tl.to('.hf-ui-checkout-flow button', { scale: 0.96, duration: 0.12, yoyo: true, repeat: 1, ease: 'power1.inOut' }, 1.18);
-->
-155
View File
@@ -1,155 +0,0 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=1920, height=1080" />
<title>Checkout Flow - Demo</title>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.14.2/dist/gsap.min.js"></script>
<style>
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
width: 1920px;
height: 1080px;
overflow: hidden;
}
#demo {
width: 1920px;
height: 1080px;
display: grid;
place-items: center;
background: #f5f5f4;
font-family: Inter, system-ui, sans-serif;
}
.demo-frame {
display: grid;
place-items: center;
min-width: 760px;
min-height: 520px;
padding: 56px;
/* ponytail: scale wrapper (not a GSAP target) to fill ~55% of frame */
transform: scale(1.12);
transform-origin: center center;
}
.hf-ui-checkout-flow {
display: grid;
gap: 16px;
width: 440px;
padding: 26px;
border: 1px solid #e4e4e7;
border-radius: 28px;
background: #ffffff;
color: #18181b;
font-family: Inter, system-ui, sans-serif;
box-shadow: 0 28px 84px rgba(0, 0, 0, 0.12);
}
.hf-ui-checkout-plan,
.hf-ui-checkout-total {
display: flex;
justify-content: space-between;
align-items: center;
}
.hf-ui-checkout-plan {
padding: 18px;
border-radius: 18px;
background: #18181b;
color: #ffffff;
}
.hf-ui-checkout-plan span,
.hf-ui-checkout-total span {
color: inherit;
opacity: 0.72;
font-size: 14px;
font-weight: 850;
}
.hf-ui-checkout-plan strong,
.hf-ui-checkout-total strong {
font-size: 22px;
}
.hf-ui-checkout-fields {
display: grid;
gap: 10px;
}
.hf-ui-checkout-fields div {
display: grid;
gap: 5px;
padding: 14px 16px;
border: 1px solid #e4e4e7;
border-radius: 15px;
color: #71717a;
font-size: 13px;
font-weight: 800;
}
.hf-ui-checkout-fields strong {
color: #18181b;
font-size: 16px;
}
.hf-ui-checkout-flow button {
width: 100%;
height: 50px;
border: 0;
border-radius: 15px;
/* The primary action is the one accent-carrying element here. */
background: var(--accent, #18181b);
color: #ffffff;
font-size: 15px;
font-weight: 700;
cursor: default;
}
</style>
</head>
<body>
<div
id="demo"
data-composition-id="checkout-flow-demo"
data-start="0"
data-width="1920"
data-height="1080"
data-duration="5"
>
<div class="demo-frame">
<div class="hf-ui-checkout-flow">
<div class="hf-ui-checkout-plan"><span>Pro plan</span><strong>$29/mo</strong></div>
<div class="hf-ui-checkout-fields">
<div>Card number <strong>4242 4242 4242 4242</strong></div>
<div>Expiry <strong>12/30</strong></div>
</div>
<div class="hf-ui-checkout-total"><span>Total today</span><strong>$29.00</strong></div>
<button type="button">Complete purchase</button>
</div>
</div>
<script>
const tl = gsap.timeline({ paused: true });
tl.fromTo(
".hf-ui-checkout-flow",
{ opacity: 0, y: 28 },
{ opacity: 1, y: 0, duration: 0.36, ease: "power2.out" },
0.25,
);
tl.fromTo(
".hf-ui-checkout-fields div",
{ x: -16, opacity: 0 },
{ x: 0, opacity: 1, duration: 0.26, stagger: 0.08, ease: "power2.out" },
0.62,
);
tl.fromTo(
".hf-ui-checkout-total",
{ opacity: 0 },
{ opacity: 1, duration: 0.24, ease: "power2.out" },
0.92,
);
tl.to(
".hf-ui-checkout-flow button",
{ scale: 0.96, duration: 0.12, yoyo: true, repeat: 1, ease: "power1.inOut" },
1.18,
);
tl.set({}, {}, 5);
window.__timelines = window.__timelines || {};
window.__timelines["checkout-flow-demo"] = tl;
</script>
</div>
</body>
</html>
@@ -1,18 +0,0 @@
{
"$schema": "https://hyperframes.heygen.com/schema/registry-item.json",
"name": "checkout-flow",
"type": "hyperframes:component",
"title": "Checkout Flow",
"description": "A composed checkout flow with plan summary, payment field rows, total, and purchase action",
"tags": ["ui-flow", "checkout", "commerce"],
"files": [
{
"path": "checkout-flow.html",
"target": "compositions/components/checkout-flow.html",
"type": "hyperframes:snippet"
}
],
"preview": {
"poster": "https://static.heygen.ai/hyperframes-oss/docs/images/catalog/components/checkout-flow.png"
}
}
+1 -5
View File
@@ -819,10 +819,6 @@
"name": "chat-thread",
"type": "hyperframes:component"
},
{
"name": "checkout-flow",
"type": "hyperframes:component"
},
{
"name": "chromatic-aberration-wipe",
"type": "hyperframes:component"
@@ -1533,6 +1529,6 @@
}
],
"catalogArtifact": {
"revision": "032078c10ac211b74a29a4826f113876ee4ef14c3e4cf9f935b0ec763cdca97f"
"revision": "fbf1facc93a2cd1dc4507407f21fe4f6097da56670aaab4a0689b12dc0c43d09"
}
}
+20
View File
@@ -45,6 +45,10 @@ export const ALLOWED_DELETIONS = new Map([
"docs/catalog/components/ai-prompt-flow.mdx",
"owner-directed removal of the AI Prompt Flow catalog item and its generated documentation",
],
[
"docs/catalog/components/checkout-flow.mdx",
"owner-directed removal of the Checkout Flow catalog item and its generated documentation",
],
[
"docs/public/catalog/components/ai-generation-canvas.json",
"owner-directed removal of the AI Generation Canvas catalog item and its generated public payload",
@@ -53,6 +57,10 @@ export const ALLOWED_DELETIONS = new Map([
"docs/public/catalog/components/ai-prompt-flow.json",
"owner-directed removal of the AI Prompt Flow catalog item and its generated public payload",
],
[
"docs/public/catalog/components/checkout-flow.json",
"owner-directed removal of the Checkout Flow catalog item and its generated public payload",
],
[
"registry/components/ai-generation-canvas/ai-generation-canvas.html",
"owner-directed removal of the AI Generation Canvas catalog source component",
@@ -77,6 +85,18 @@ export const ALLOWED_DELETIONS = new Map([
"registry/components/ai-prompt-flow/registry-item.json",
"owner-directed removal of the AI Prompt Flow catalog registry entry",
],
[
"registry/components/checkout-flow/checkout-flow.html",
"owner-directed removal of the Checkout Flow catalog source component",
],
[
"registry/components/checkout-flow/demo.html",
"owner-directed removal of the Checkout Flow catalog preview source",
],
[
"registry/components/checkout-flow/registry-item.json",
"owner-directed removal of the Checkout Flow catalog registry entry",
],
[
"packages/studio/src/components/StudioFeedbackBar.tsx",
"replaced by components/feedback/StudioFeedbackCard.tsx; too little shared content for git to pair as a rename",