From 393eced906459d9d9fc81493a0a7b7569d078d84 Mon Sep 17 00:00:00 2001 From: Vance Ingalls Date: Thu, 9 Jul 2026 01:31:29 -0700 Subject: [PATCH] fix(sdk-playground): implement PreviewAdapter.attachSync no-op stub MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- packages/sdk-playground/src/main.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/sdk-playground/src/main.ts b/packages/sdk-playground/src/main.ts index d6269ce05..e00ee7a5b 100644 --- a/packages/sdk-playground/src/main.ts +++ b/packages/sdk-playground/src/main.ts @@ -85,6 +85,10 @@ class PlaygroundPreview implements PreviewAdapter { this.handlers = this.handlers.filter((h) => h !== handler); }; } + + attachSync(_comp: Composition): () => void { + return () => {}; + } } // ── Preview iframe ────────────────────────────────────────────────────────────