Merge pull request #947 from heygen-com/feat/studio-blocks-panel

feat(studio): full Blocks panel — browse, search, add, drag-and-drop registry items
This commit is contained in:
Miguel Ángel
2026-05-19 03:58:25 +02:00
committed by GitHub
111 changed files with 1800 additions and 106 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hyperframes/cli",
"version": "0.6.22",
"version": "0.6.23",
"description": "HyperFrames CLI — create, preview, and render HTML video compositions",
"repository": {
"type": "git",
+21
View File
@@ -376,6 +376,27 @@ export function createStudioServer(options: StudioServerOptions): StudioServer {
await page?.close().catch(() => {});
}
},
async listRegistryCatalog() {
const { listRegistryItems, loadAllItems } = await import("../registry/resolver.js");
const entries = await listRegistryItems();
const blockAndComponentEntries = entries.filter(
(e) => e.type === "hyperframes:block" || e.type === "hyperframes:component",
);
return loadAllItems(blockAndComponentEntries);
},
async installRegistryBlock(opts) {
const { resolveItem } = await import("../registry/resolver.js");
const { installItem } = await import("../registry/installer.js");
const item = await resolveItem(opts.blockName);
const { written } = await installItem(item, { destDir: opts.project.dir });
const relativePaths = written.map((abs) => {
const rel = abs.startsWith(opts.project.dir) ? abs.slice(opts.project.dir.length + 1) : abs;
return rel;
});
return { written: relativePaths, block: item };
},
};
// ── Build the Hono app ─────────────────────────────────────────────────