Skip to content

Write HTML. Render video. Built for agents.

fix: deterministic stagger, lint importmap/module, cache-bust previews

Miguel Ángel4b9abaaf6f0b
diff --git a/docs/catalog/blocks/spain-map.mdx b/docs/catalog/blocks/spain-map.mdx
index 73b3886a3c..5184aaacf6 100644
--- a/docs/catalog/blocks/spain-map.mdx
+++ b/docs/catalog/blocks/spain-map.mdx
@@ -9,7 +9,7 @@ Animated Spain choropleth by autonomous community with staggered reveals and gra
`data` `map` `geography` `spain` `europe` `choropleth`
-<video className="w-full aspect-video rounded-xl object-cover bg-zinc-100 dark:bg-zinc-800" src="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/spain-map.mp4" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/spain-map.png" autoPlay muted loop playsInline />
+<video className="w-full aspect-video rounded-xl object-cover bg-zinc-100 dark:bg-zinc-800" src="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/spain-map.mp4?v=1779081476" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/spain-map.png" autoPlay muted loop playsInline />
## Install
diff --git a/docs/catalog/blocks/us-map-bubble.mdx b/docs/catalog/blocks/us-map-bubble.mdx
index 39d36c715b..d2815bbece 100644
--- a/docs/catalog/blocks/us-map-bubble.mdx
+++ b/docs/catalog/blocks/us-map-bubble.mdx
@@ -9,7 +9,7 @@ Animated US bubble map with proportional city markers, value callouts, and conne
`data` `map` `geography` `usa` `bubble` `cities`
-<video className="w-full aspect-video rounded-xl object-cover bg-zinc-100 dark:bg-zinc-800" src="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/us-map-bubble.mp4" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/us-map-bubble.png" autoPlay muted loop playsInline />
+<video className="w-full aspect-video rounded-xl object-cover bg-zinc-100 dark:bg-zinc-800" src="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/us-map-bubble.mp4?v=1779081476" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/us-map-bubble.png" autoPlay muted loop playsInline />
## Install
diff --git a/docs/catalog/blocks/us-map-flow.mdx b/docs/catalog/blocks/us-map-flow.mdx
index 56d3db42bd..55db2c216a 100644
--- a/docs/catalog/blocks/us-map-flow.mdx
+++ b/docs/catalog/blocks/us-map-flow.mdx
@@ -9,7 +9,7 @@ Animated connection arcs between US cities over a base map — composable origin
`data` `map` `geography` `usa` `flow` `connections` `arcs`
-<video className="w-full aspect-video rounded-xl object-cover bg-zinc-100 dark:bg-zinc-800" src="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/us-map-flow.mp4" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/us-map-flow.png" autoPlay muted loop playsInline />
+<video className="w-full aspect-video rounded-xl object-cover bg-zinc-100 dark:bg-zinc-800" src="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/us-map-flow.mp4?v=1779081476" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/us-map-flow.png" autoPlay muted loop playsInline />
## Install
diff --git a/docs/catalog/blocks/us-map-hex.mdx b/docs/catalog/blocks/us-map-hex.mdx
index 8a1b2aed16..bbff7409f6 100644
--- a/docs/catalog/blocks/us-map-hex.mdx
+++ b/docs/catalog/blocks/us-map-hex.mdx
@@ -9,7 +9,7 @@ Animated hexagonal tile grid map — each state as an equal-weight hex with data
`data` `map` `geography` `usa` `hexgrid` `tilegrid`
-<video className="w-full aspect-video rounded-xl object-cover bg-zinc-100 dark:bg-zinc-800" src="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/us-map-hex.mp4" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/us-map-hex.png" autoPlay muted loop playsInline />
+<video className="w-full aspect-video rounded-xl object-cover bg-zinc-100 dark:bg-zinc-800" src="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/us-map-hex.mp4?v=1779081476" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/us-map-hex.png" autoPlay muted loop playsInline />
## Install
diff --git a/docs/catalog/blocks/us-map.mdx b/docs/catalog/blocks/us-map.mdx
index f8934d0093..904f3f2a42 100644
--- a/docs/catalog/blocks/us-map.mdx
+++ b/docs/catalog/blocks/us-map.mdx
@@ -9,7 +9,7 @@ Animated US choropleth map with staggered state reveals, value labels, and gradi
`data` `map` `geography` `usa` `choropleth`
-<video className="w-full aspect-video rounded-xl object-cover bg-zinc-100 dark:bg-zinc-800" src="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/us-map.mp4?v=1779080985" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/us-map.png" autoPlay muted loop playsInline />
+<video className="w-full aspect-video rounded-xl object-cover bg-zinc-100 dark:bg-zinc-800" src="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/us-map.mp4?v=1779081476" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/us-map.png" autoPlay muted loop playsInline />
## Install
diff --git a/docs/catalog/blocks/world-map.mdx b/docs/catalog/blocks/world-map.mdx
index 957cf817a0..a3ba2d5e4a 100644
--- a/docs/catalog/blocks/world-map.mdx
+++ b/docs/catalog/blocks/world-map.mdx
@@ -9,7 +9,7 @@ Animated world choropleth with country-by-country reveal, gradient legend, and h
`data` `map` `geography` `world` `choropleth`
-<video className="w-full aspect-video rounded-xl object-cover bg-zinc-100 dark:bg-zinc-800" src="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/world-map.mp4" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/world-map.png" autoPlay muted loop playsInline />
+<video className="w-full aspect-video rounded-xl object-cover bg-zinc-100 dark:bg-zinc-800" src="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/world-map.mp4?v=1779081476" poster="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/world-map.png" autoPlay muted loop playsInline />
## Install
diff --git a/packages/core/src/lint/rules/core.ts b/packages/core/src/lint/rules/core.ts
index b4991d234f..273eb340ba 100644
--- a/packages/core/src/lint/rules/core.ts
+++ b/packages/core/src/lint/rules/core.ts
@@ -157,7 +157,11 @@ export const coreRules: Array<(ctx: LintContext) => HyperframeLintFinding[]> = [
const findings: HyperframeLintFinding[] = [];
for (const script of scripts) {
const attrs = script.attrs || "";
- if (/\bsrc\s*=/.test(attrs) || /\btype\s*=\s*["']application\/json["']/.test(attrs)) continue;
+ if (
+ /\bsrc\s*=/.test(attrs) ||
+ /\btype\s*=\s*["'](?:application\/json|importmap|module)["']/.test(attrs)
+ )
+ continue;
const syntaxError = getInlineScriptSyntaxError(script.content);
if (!syntaxError) continue;
findings.push({
diff --git a/packages/producer/node_modules/.bin/esbuild b/packages/producer/node_modules/.bin/esbuild
index 00d2d93cdf..bc39eee323 120000
--- a/packages/producer/node_modules/.bin/esbuild
+++ b/packages/producer/node_modules/.bin/esbuild
@@ -1 +1 @@
-../../../../node_modules/.bun/@[email protected]/node_modules/@esbuild/darwin-arm64/bin/esbuild
\ No newline at end of file
+../../../../node_modules/.bun/@[email protected]/node_modules/@esbuild/darwin-arm64/bin/esbuild
\ No newline at end of file
diff --git a/packages/producer/node_modules/@types/node b/packages/producer/node_modules/@types/node
index 454f1340fd..a8c1741d96 120000
--- a/packages/producer/node_modules/@types/node
+++ b/packages/producer/node_modules/@types/node
@@ -1 +1 @@
-../../../../node_modules/.bun/@[email protected]/node_modules/@types/node
\ No newline at end of file
+../../../../node_modules/.bun/@[email protected]/node_modules/@types/node
\ No newline at end of file
diff --git a/packages/producer/node_modules/esbuild b/packages/producer/node_modules/esbuild
index 2bb1f6fa57..6fa394cb1f 120000
--- a/packages/producer/node_modules/esbuild
+++ b/packages/producer/node_modules/esbuild
@@ -1 +1 @@
-../../../node_modules/.bun/[email protected]/node_modules/esbuild
\ No newline at end of file
+../../../node_modules/.bun/[email protected]/node_modules/esbuild
\ No newline at end of file
diff --git a/registry/blocks/spain-map/spain-map.html b/registry/blocks/spain-map/spain-map.html
index 81705c3af0..28e52d495f 100644
--- a/registry/blocks/spain-map/spain-map.html
+++ b/registry/blocks/spain-map/spain-map.html
@@ -311,7 +311,7 @@
duration: 0.4,
stagger: {
each: 0.08,
- from: "random",
+ from: "center",
},
ease: "back.out(1.4)",
},
@@ -325,7 +325,7 @@
duration: 0.3,
stagger: {
each: 0.05,
- from: "random",
+ from: "center",
},
ease: "power2.out",
},
diff --git a/registry/blocks/us-map/us-map.html b/registry/blocks/us-map/us-map.html
index 0083123594..c555f01f0e 100644
--- a/registry/blocks/us-map/us-map.html
+++ b/registry/blocks/us-map/us-map.html
@@ -331,7 +331,7 @@
duration: 0.4,
stagger: {
each: 0.06,
- from: "random",
+ from: "center",
},
ease: "back.out(1.4)",
},
@@ -345,7 +345,7 @@
duration: 0.3,
stagger: {
each: 0.04,
- from: "random",
+ from: "center",
},
ease: "power2.out",
},
diff --git a/registry/blocks/world-map/world-map.html b/registry/blocks/world-map/world-map.html
index 5732d21f70..1b8703fa60 100644
--- a/registry/blocks/world-map/world-map.html
+++ b/registry/blocks/world-map/world-map.html
@@ -370,7 +370,7 @@
duration: 0.3,
stagger: {
each: 0.02,
- from: "random"
+ from: "center"
},
ease: "power1.out"
},