From 7dc795f60fb299ca6d613ffcdada11d56785ac4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel?= Date: Sun, 17 May 2026 17:16:37 -0400 Subject: [PATCH] fix(registry): self-contain lava texture asset and remove dead code - Fix caption-texture-lava mask URL to use local lava.png instead of /assets/texture-mask-text/masks/ absolute path that 404s on install - Add lava.png to registry-item.json files array so it ships with npx hyperframes add caption-texture-lava - Remove unused mulberry32 function from caption-clip-wipe --- .../caption-clip-wipe/caption-clip-wipe.html | 10 ---------- registry/components/caption-clip-wipe/demo.html | 10 ---------- .../caption-texture-lava/caption-texture-lava.html | 4 ++-- registry/components/caption-texture-lava/demo.html | 4 ++-- .../components/caption-texture-lava/registry-item.json | 5 +++++ 5 files changed, 9 insertions(+), 24 deletions(-) diff --git a/registry/components/caption-clip-wipe/caption-clip-wipe.html b/registry/components/caption-clip-wipe/caption-clip-wipe.html index d93cc69a6..4ffc09ef9 100644 --- a/registry/components/caption-clip-wipe/caption-clip-wipe.html +++ b/registry/components/caption-clip-wipe/caption-clip-wipe.html @@ -120,16 +120,6 @@ return minSize; } - function mulberry32(seed) { - return function () { - seed |= 0; - seed = (seed + 0x6d2b79f5) | 0; - var t = Math.imul(seed ^ (seed >>> 15), 1 | seed); - t = (t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ t; - return ((t ^ (t >>> 14)) >>> 0) / 4294967296; - }; - } - var WORDS = [ { text: "Every", start: 0.0, end: 0.3 }, { text: "great", start: 0.3, end: 0.55 }, diff --git a/registry/components/caption-clip-wipe/demo.html b/registry/components/caption-clip-wipe/demo.html index d93cc69a6..4ffc09ef9 100644 --- a/registry/components/caption-clip-wipe/demo.html +++ b/registry/components/caption-clip-wipe/demo.html @@ -120,16 +120,6 @@ return minSize; } - function mulberry32(seed) { - return function () { - seed |= 0; - seed = (seed + 0x6d2b79f5) | 0; - var t = Math.imul(seed ^ (seed >>> 15), 1 | seed); - t = (t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ t; - return ((t ^ (t >>> 14)) >>> 0) / 4294967296; - }; - } - var WORDS = [ { text: "Every", start: 0.0, end: 0.3 }, { text: "great", start: 0.3, end: 0.55 }, diff --git a/registry/components/caption-texture-lava/caption-texture-lava.html b/registry/components/caption-texture-lava/caption-texture-lava.html index 39b327133..9265e3504 100644 --- a/registry/components/caption-texture-lava/caption-texture-lava.html +++ b/registry/components/caption-texture-lava/caption-texture-lava.html @@ -21,8 +21,8 @@ filter: contrast(var(--mask-contrast, 1)); } .hf-texture-lava { - -webkit-mask-image: url("/assets/texture-mask-text/masks/lava.png"); - mask-image: url("/assets/texture-mask-text/masks/lava.png"); + -webkit-mask-image: url("lava.png"); + mask-image: url("lava.png"); } *, diff --git a/registry/components/caption-texture-lava/demo.html b/registry/components/caption-texture-lava/demo.html index 39b327133..9265e3504 100644 --- a/registry/components/caption-texture-lava/demo.html +++ b/registry/components/caption-texture-lava/demo.html @@ -21,8 +21,8 @@ filter: contrast(var(--mask-contrast, 1)); } .hf-texture-lava { - -webkit-mask-image: url("/assets/texture-mask-text/masks/lava.png"); - mask-image: url("/assets/texture-mask-text/masks/lava.png"); + -webkit-mask-image: url("lava.png"); + mask-image: url("lava.png"); } *, diff --git a/registry/components/caption-texture-lava/registry-item.json b/registry/components/caption-texture-lava/registry-item.json index 20ab9a891..19daa51c3 100644 --- a/registry/components/caption-texture-lava/registry-item.json +++ b/registry/components/caption-texture-lava/registry-item.json @@ -10,6 +10,11 @@ "path": "caption-texture-lava.html", "target": "compositions/components/caption-texture-lava.html", "type": "hyperframes:snippet" + }, + { + "path": "lava.png", + "target": "compositions/components/lava.png", + "type": "hyperframes:asset" } ], "preview": "https://static.heygen.ai/hyperframes-oss/registry/components/caption-texture-lava/preview.mp4?v=1779051416"