From a0562615bd3df658f449ae4e14a80b99a7739bed Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 11 May 2026 11:03:54 +0000 Subject: [PATCH 1/3] fix(embed): create emitter inside iframe load event Emitter was created immediately after setting srcdoc, before the iframe document had loaded. With srcdoc, contentWindow can reference a stale browsing context during navigation, causing CHILD_READY to be missed or source-check to fail. The fix follows the pattern from the reference example: add a 'load' listener on the iframe, create the emitter inside it so contentWindow is stable and CHILD_READY is already queued for delivery. https://claude.ai/code/session_014XkyCi4sXUHdDjMstV2Pbt --- docs/embed.html | 77 +++++++++++++++++++------------------------------ 1 file changed, 29 insertions(+), 48 deletions(-) diff --git a/docs/embed.html b/docs/embed.html index 033b303..5781e38 100644 --- a/docs/embed.html +++ b/docs/embed.html @@ -9,44 +9,36 @@

iframe-flight × Vega-Lite — single file, no install

-
- Connecting… + Loading…
- From fc776721fff8966a3112c05ae5a8ea9bde396b7e Mon Sep 17 00:00:00 2001 From: ihatexcel Date: Mon, 11 May 2026 15:16:30 +0200 Subject: [PATCH 2/3] Update embed.html --- docs/embed.html | 374 +++++++++++++++++++++++++++++++++++------------- 1 file changed, 271 insertions(+), 103 deletions(-) diff --git a/docs/embed.html b/docs/embed.html index 5781e38..afc9a86 100644 --- a/docs/embed.html +++ b/docs/embed.html @@ -1,117 +1,285 @@ - + - - iframe-flight × Vega-Lite + iframe-flight demo + + + -

iframe-flight × Vega-Lite — single file, no install

-
- - Loading… -
- - - + <\/script> + + + + + + +

Revenue par produit

+ +
+ + From ffc17b4e64584cffe6f287c5633d7e041d3082fa Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 11 May 2026 13:20:14 +0000 Subject: [PATCH 3/3] =?UTF-8?q?feat:=20add=20#embed=20route=20=E2=80=94=20?= =?UTF-8?q?live=20demo=20+=20raw=20source=20side=20by=20side?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit New nav tab shows embed.html running in an iframe on the left, and its complete raw source fetched via fetch() displayed in a
 on the right.
Both loaded lazily on first navigation. Source has a copy button.

https://claude.ai/code/session_014XkyCi4sXUHdDjMstV2Pbt
---
 docs/index.html | 52 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

diff --git a/docs/index.html b/docs/index.html
index b36aa28..d3fea85 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -27,6 +27,7 @@ 

✈ iframe-flight

Demo Quick start Visualization + Embed + + +