fix(sdk-playground): implement PreviewAdapter.attachSync no-op stub

PlaygroundPreview implements PreviewAdapter but was missing attachSync,
which this branch added to the interface — a real TS break (no
typecheck script wires sdk-playground into CI, so nothing caught it).
Mirrors the same no-op stub already added to HeadlessPreviewAdapter.
This commit is contained in:
Vance Ingalls
2026-07-09 11:52:13 -07:00
parent 9c691d2438
commit 393eced906
+4
View File
@@ -85,6 +85,10 @@ class PlaygroundPreview implements PreviewAdapter {
this.handlers = this.handlers.filter((h) => h !== handler); this.handlers = this.handlers.filter((h) => h !== handler);
}; };
} }
attachSync(_comp: Composition): () => void {
return () => {};
}
} }
// ── Preview iframe ──────────────────────────────────────────────────────────── // ── Preview iframe ────────────────────────────────────────────────────────────