mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-05 00:56:23 +00:00
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:
@@ -0,0 +1 @@
|
||||
{"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>Skeleton Reveal - 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 min-width: 760px;\n min-height: 480px;\n padding: 56px;\n /* ponytail: scale wrapper (not a GSAP target) to fill ~60% of frame */\n transform: scale(1.51);\n }\n .hf-transition-skeleton-reveal {\n position: relative;\n width: 400px;\n height: 96px;\n font-family: Inter, system-ui, sans-serif;\n }\n .hf-transition-skeleton-reveal .skeleton,\n .hf-transition-skeleton-reveal .content {\n position: absolute;\n inset: 0;\n border: 1px solid #e4e4e7;\n border-radius: 14px;\n background: #fff;\n box-shadow: 0 24px 70px rgba(0, 0, 0, 0.08);\n }\n .hf-transition-skeleton-reveal .skeleton {\n background: linear-gradient(90deg, #f4f4f5, #e4e4e7, #f4f4f5);\n background-size: 240% 100%;\n opacity: 1;\n box-shadow: none;\n }\n .hf-transition-skeleton-reveal .content {\n display: grid;\n align-content: center;\n gap: 6px;\n padding: 20px 22px;\n opacity: 0;\n color: #18181b;\n }\n .hf-transition-skeleton-reveal strong {\n font-size: 18px;\n font-weight: 600;\n letter-spacing: -0.01em;\n }\n .hf-transition-skeleton-reveal span {\n color: #71717a;\n font-size: 15px;\n }\n </style>\n </head>\n <body>\n <div\n id=\"demo\"\n data-composition-id=\"skeleton-reveal-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-transition-skeleton-reveal\">\n <div class=\"skeleton\"></div>\n <div class=\"content\"><strong>Jane Cooper</strong><span>jane@example.com</span></div>\n </div>\n </div>\n <script>\n const tl = gsap.timeline({ paused: true });\n const startTime = 0.5;\n tl.to(\n \".hf-transition-skeleton-reveal .skeleton\",\n { backgroundPosition: \"100% 0\", duration: 0.7, ease: \"none\" },\n startTime,\n );\n tl.to(\n \".hf-transition-skeleton-reveal .skeleton\",\n { opacity: 0, duration: 0.22 },\n startTime + 0.72,\n );\n tl.to(\n \".hf-transition-skeleton-reveal .content\",\n { opacity: 1, duration: 0.24 },\n startTime + 0.78,\n );\n tl.set({}, {}, 5);\n window.__timelines = window.__timelines || {};\n window.__timelines[\"skeleton-reveal-demo\"] = tl;\n </script>\n </div>\n </body>\n</html>\n"}
|
||||
Reference in New Issue
Block a user