Files
hyperframes/docs/public/catalog/components/ai-generation-canvas.json
T
Miguel Ángel 9734578e60 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.
2026-08-10 18:46:03 -04:00

1 line
6.0 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{"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>AI Generation Canvas - 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: #f7f7f8;\n font-family: Inter, system-ui, sans-serif;\n }\n .demo-frame {\n display: grid;\n place-items: center;\n padding: 52px;\n /* ponytail: scale on wrapper (not GSAP target) to fill ~65% of 1920×1080 */\n transform: scale(1.52);\n }\n .hf-remocn-ai-generation-canvas {\n --hf-accent: var(--accent, #18181b);\n --hf-ink: #111827;\n --hf-muted: #6b7280;\n --hf-surface: #ffffff;\n color: var(--hf-ink);\n font-family: Inter, system-ui, sans-serif;\n }\n .hf-remocn-ai-generation-canvas {\n width: 820px;\n min-height: 460px;\n border-radius: 34px;\n padding: 28px;\n background: linear-gradient(135deg, #fafafa, #e4e4e7);\n box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);\n display: grid;\n grid-template-columns: 280px 1fr;\n gap: 22px;\n overflow: hidden;\n }\n .hf-remocn-ai-generation-canvas .panel {\n border: 1px solid rgba(15, 23, 42, 0.08);\n border-radius: 24px;\n background: rgba(255, 255, 255, 0.76);\n padding: 22px;\n backdrop-filter: blur(12px);\n }\n .hf-remocn-ai-generation-canvas .prompt {\n display: grid;\n gap: 12px;\n align-content: start;\n }\n .hf-remocn-ai-generation-canvas .pill {\n height: 42px;\n border-radius: 999px;\n background: #111827;\n color: #fff;\n display: flex;\n align-items: center;\n padding: 0 18px;\n font-weight: 800;\n transform: translateX(var(--hf-pill-x, 0px));\n }\n .hf-remocn-ai-generation-canvas .preview {\n display: grid;\n gap: 14px;\n }\n .hf-remocn-ai-generation-canvas .card {\n min-height: 78px;\n border-radius: 18px;\n background: #fff;\n box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);\n transform: translate(var(--hf-card-x, 0px), var(--hf-card-y, 0px))\n scale(var(--hf-card-scale, 1));\n opacity: var(--hf-card-opacity, 1);\n padding: 16px 18px;\n display: flex;\n flex-direction: column;\n gap: 10px;\n }\n /* skeleton bars that make the dashboard cards readable as a thumbnail */\n .hf-remocn-ai-generation-canvas .card-label {\n height: 10px;\n border-radius: 6px;\n background: #e4e4e7;\n width: 55%;\n }\n .hf-remocn-ai-generation-canvas .card-bar {\n height: 8px;\n border-radius: 6px;\n background: #f4f4f5;\n width: 85%;\n }\n .hf-remocn-ai-generation-canvas .card-bar.short {\n width: 60%;\n }\n .hf-remocn-ai-generation-canvas .card-accent {\n height: 28px;\n border-radius: 8px;\n background: #d4d4d8;\n width: 100%;\n margin-top: 2px;\n }\n .hf-remocn-ai-generation-canvas h3 {\n margin: 0 0 14px;\n font-size: 32px;\n letter-spacing: -0.04em;\n }\n .hf-remocn-ai-generation-canvas p {\n margin: 0;\n color: #71717a;\n }\n </style>\n </head>\n <body>\n <div\n id=\"demo\"\n data-composition-id=\"ai-generation-canvas-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-remocn-ai-generation-canvas\">\n <div class=\"panel prompt\">\n <h3>AI Generation Canvas</h3>\n <p>A prompt composer expands into a generated dashboard preview.</p>\n <div class=\"pill\">Generate scene</div>\n <div class=\"pill\">Refine motion</div>\n <div class=\"pill\">Export</div>\n </div>\n <div class=\"panel preview\">\n <div class=\"card\">\n <div class=\"card-label\"></div>\n <div class=\"card-accent\"></div>\n </div>\n <div class=\"card\">\n <div class=\"card-label\"></div>\n <div class=\"card-bar\"></div>\n <div class=\"card-bar short\"></div>\n </div>\n <div class=\"card\">\n <div class=\"card-label\"></div>\n <div class=\"card-bar\"></div>\n <div class=\"card-bar short\"></div>\n </div>\n </div>\n </div>\n </div>\n <script>\n const tl = gsap.timeline({ paused: true });\n const startTime = 0.5;\n tl.fromTo(\n \".hf-remocn-ai-generation-canvas .pill\",\n { \"--hf-pill-x\": \"-18px\", opacity: 0 },\n { \"--hf-pill-x\": \"0px\", opacity: 1, duration: 0.25, stagger: 0.08, ease: \"power2.out\" },\n startTime,\n );\n tl.fromTo(\n \".hf-remocn-ai-generation-canvas .card\",\n { \"--hf-card-y\": \"28px\", \"--hf-card-scale\": 0.96, \"--hf-card-opacity\": 0 },\n {\n \"--hf-card-y\": \"0px\",\n \"--hf-card-scale\": 1,\n \"--hf-card-opacity\": 1,\n duration: 0.42,\n stagger: 0.12,\n ease: \"power3.out\",\n },\n startTime + 0.2,\n );\n tl.set({}, {}, 5);\n window.__timelines = window.__timelines || {};\n window.__timelines[\"ai-generation-canvas-demo\"] = tl;\n </script>\n </div>\n </body>\n</html>\n"}