feat(registry): bring back the video-primitive moves (#3169)

Restores the 208 catalog items reverted after their previews 404'd in
production, this time on the payload mechanism rather than the .html files
that caused the outage.

The generator no longer writes a preview document to docs/public. That writer,
and the machinery under it, existed only to produce files the docs host
discards, so it is gone rather than bypassed. Items now embed the composition
itself via a payload, which is what the previous change already does for the
items that were already in the catalog.

The variables explorer is parked, not restored: it drove its preview through
the same unpublished .html path, so it would have shown an empty frame. Items
that declare variables get the live player plus the static variables table, and
reconnecting the explorer to payloads is a follow-up.
This commit is contained in:
Miguel Ángel
2026-08-10 18:46:03 -04:00
committed by GitHub
parent 0f76305191
commit 9734578e60
1383 changed files with 255573 additions and 5760 deletions
+10 -10
View File
@@ -1,4 +1,4 @@
<!-- demo.html used by scripts/generate-catalog-previews.ts to render the
<!-- demo.html - used by scripts/generate-catalog-previews.ts to render the
catalog preview video. Not installed by `hyperframes add morph-text`.
Keep in sync with morph-text.html. -->
<!doctype html>
@@ -27,7 +27,7 @@
width: 1920px;
height: 1080px;
overflow: hidden;
background: #fff;
background: var(--bg, #fff);
}
#morph-text {
@@ -36,7 +36,7 @@
height: 1080px;
}
/* Word list: hidden source of truth edit <li> items in Studio. */
/* Word list: hidden source of truth - edit <li> items in Studio. */
#morph-words {
display: none;
list-style: none;
@@ -95,7 +95,7 @@
data-morph-pause="1.5"
>
<!--
Edit words here one <li> per word or phrase.
Edit words here - one <li> per word or phrase.
data-font : CSS font-family (e.g. "'Figtree', sans-serif")
data-color : text color hex (e.g. "#000000")
Adjust data-morph-speed (seconds per morph) and data-morph-pause (hold time) above.
@@ -175,12 +175,12 @@
var wB = words[(stepIdx + 1) % words.length];
elA.textContent = wA.text;
elA.style.fontFamily = wA.font;
elA.style.color = wA.color;
elA.style.fontFamily = "var(--font-display, " + wA.font + ")";
elA.style.color = "var(--fg, " + wA.color + ")";
elB.textContent = wB.text;
elB.style.fontFamily = wB.font;
elB.style.color = wB.color;
elB.style.fontFamily = "var(--font-display, " + wB.font + ")";
elB.style.color = "var(--fg, " + wB.color + ")";
if (frac <= 0) {
display.style.filter = "none";
@@ -207,8 +207,8 @@
if (matchMedia("(prefers-reduced-motion: reduce)").matches) {
elA.textContent = words[0].text;
elA.style.fontFamily = words[0].font;
elA.style.color = words[0].color;
elA.style.fontFamily = "var(--font-display, " + words[0].font + ")";
elA.style.color = "var(--fg, " + words[0].color + ")";
elA.style.opacity = "1";
display.style.filter = "none";
return;