diff --git a/package-lock.json b/package-lock.json index 1e470e2..930dc0b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ } }, "../../unternet-co/web-applets/sdk": { - "version": "0.2.7", + "version": "0.2.6", "license": "MIT", "devDependencies": { "@types/node": "^22.13.10", diff --git a/src/applets/storage/output/memory/manifest.json b/src/applets/storage/output/memory/manifest.json index 5820d3b..f8c3816 100644 --- a/src/applets/storage/output/memory/manifest.json +++ b/src/applets/storage/output/memory/manifest.json @@ -1,6 +1,6 @@ { - "name": "diffuse/orchestrator/queue", - "title": "Diffuse Orchestrator | Storage", + "name": "diffuse/storage/output/memory", + "title": "Diffuse Storage | Output | Memory", "entrypoint": "index.html", "actions": {} } diff --git a/src/scripts/theme.ts b/src/scripts/theme.ts index 10e9ced..7b963f3 100644 --- a/src/scripts/theme.ts +++ b/src/scripts/theme.ts @@ -37,14 +37,14 @@ export async function applet( frame.src = src; if (opts.id) frame.id = opts.id; - document.body.appendChild(frame); + (opts.context || window).document.body.appendChild(frame); } if (frame.contentWindow === null) { throw new Error("iframe does not have a contentWindow"); } - const applet = await applets.connect(frame.contentWindow); + const applet = await applets.connect(frame.contentWindow, { context: opts.context }); if (opts.setHeight) { applet.onresize = () => { diff --git a/src/scripts/themes/pilot/index.ts b/src/scripts/themes/pilot/index.ts index b382836..cf1fa0f 100644 --- a/src/scripts/themes/pilot/index.ts +++ b/src/scripts/themes/pilot/index.ts @@ -90,7 +90,7 @@ reactive( // NOTE: How do we sync new remote data with our local/in-memory data? // -// orchestrator.storage.data = { +// storage.output.memory.data = { // sources: [], // tracks: [] // }