Write HTML. Render video. Built for agents.
JavaScript aiai-agentsanimationclaude-codeffmpegframeworkgsaphtmlhtml-to-videomcpmotion-graphicspuppeteerrenderingtypescriptvideo-editor
fix(registry): register 4 async-built timelines only after they are built (#4086)
Miguel Ángel227933399009
diff --git a/registry/blocks/code-3d-extrude/code-3d-extrude.html b/registry/blocks/code-3d-extrude/code-3d-extrude.htmlindex db6ba28ce4..7a91ef1330 100644--- a/registry/blocks/code-3d-extrude/code-3d-extrude.html+++ b/registry/blocks/code-3d-extrude/code-3d-extrude.html@@ -574,7 +574,6 @@var H = 1080;window.__timelines = window.__timelines || {};var tl = gsap.timeline({ paused: true });- window.__timelines[spec.id] = tl; // register synchronouslyvar THREE = window.THREE;var renderer = new THREE.WebGLRenderer({@@ -602,6 +601,10 @@window.addEventListener("beforeunload", function () {disposeGL(renderer, scene);});+ window.__timelines[spec.id] = tl; // register AFTER setup completes+ if (typeof window.__hfForceTimelineRebind === "function") {+ window.__hfForceTimelineRebind(); // re-nest now that we are populated+ }});}diff --git a/registry/blocks/code-particle-assemble/code-particle-assemble.html b/registry/blocks/code-particle-assemble/code-particle-assemble.htmlindex 5734fdab50..0b30e77dae 100644--- a/registry/blocks/code-particle-assemble/code-particle-assemble.html+++ b/registry/blocks/code-particle-assemble/code-particle-assemble.html@@ -440,7 +440,6 @@var H = 1080;window.__timelines = window.__timelines || {};var tl = gsap.timeline({ paused: true });- window.__timelines[spec.id] = tl; // register synchronouslyvar THREE = window.THREE;var renderer = new THREE.WebGLRenderer({@@ -468,6 +467,10 @@window.addEventListener("beforeunload", function () {disposeGL(renderer, scene);});+ window.__timelines[spec.id] = tl; // register AFTER setup completes+ if (typeof window.__hfForceTimelineRebind === "function") {+ window.__hfForceTimelineRebind(); // re-nest now that we are populated+ }});}diff --git a/registry/blocks/code-shader-dissolve/code-shader-dissolve.html b/registry/blocks/code-shader-dissolve/code-shader-dissolve.htmlindex 45a13c4343..5234e0fcaa 100644--- a/registry/blocks/code-shader-dissolve/code-shader-dissolve.html+++ b/registry/blocks/code-shader-dissolve/code-shader-dissolve.html@@ -496,7 +496,6 @@var H = 1080;window.__timelines = window.__timelines || {};var tl = gsap.timeline({ paused: true });- window.__timelines[spec.id] = tl; // register synchronouslyvar THREE = window.THREE;var renderer = new THREE.WebGLRenderer({@@ -524,6 +523,10 @@window.addEventListener("beforeunload", function () {disposeGL(renderer, scene);});+ window.__timelines[spec.id] = tl; // register AFTER setup completes+ if (typeof window.__hfForceTimelineRebind === "function") {+ window.__hfForceTimelineRebind(); // re-nest now that we are populated+ }});}diff --git a/registry/blocks/code-snippet-flight/code-snippet-flight.html b/registry/blocks/code-snippet-flight/code-snippet-flight.htmlindex 25a700c3c7..f850637c69 100644--- a/registry/blocks/code-snippet-flight/code-snippet-flight.html+++ b/registry/blocks/code-snippet-flight/code-snippet-flight.html@@ -648,12 +648,15 @@var root = document.getElementById("root");window.__timelines = window.__timelines || {};var tl = gsap.timeline({ paused: true });- window.__timelines["code-snippet-flight"] = tl; // register synchronouslydocument.fonts.ready.then(function () {tl.from("#editor", { opacity: 0, scale: 0.985, duration: 0.5, ease: "power2.out" }, 0);buildEffect(tl, surface, spec);var dur = parseFloat(root.dataset.duration) || tl.duration();tl.to({}, { duration: dur }, 0); // pad to full composition length+ window.__timelines["code-snippet-flight"] = tl; // register AFTER setup completes+ if (typeof window.__hfForceTimelineRebind === "function") {+ window.__hfForceTimelineRebind(); // re-nest now that we are populated+ }});}