From acdb30f7837f3eba48c13c9f3e7a6f752794d866 Mon Sep 17 00:00:00 2001 From: Tanner Linsley Date: Mon, 25 May 2026 15:48:31 -0600 Subject: [PATCH] Fix StackBlitz embed isolation --- src/components/InteractiveSandbox.tsx | 6 +++++- src/components/StackBlitzEmbed.tsx | 2 ++ ...version.docs.framework.$framework.examples.$.tsx | 2 ++ src/routes/-library-landing.tsx | 9 +++++++++ src/routes/form.$version.index.tsx | 4 +++- src/routes/query.$version.index.tsx | 4 +++- src/routes/ranger.$version.index.tsx | 4 +++- src/routes/router.$version.index.tsx | 4 +++- src/routes/table.$version.index.tsx | 4 +++- src/routes/virtual.$version.index.tsx | 4 +++- src/utils/stackblitz-embed.ts | 13 +++++++++++++ 11 files changed, 49 insertions(+), 7 deletions(-) create mode 100644 src/utils/stackblitz-embed.ts diff --git a/src/components/InteractiveSandbox.tsx b/src/components/InteractiveSandbox.tsx index b5c2cdabe..aedc5189d 100644 --- a/src/components/InteractiveSandbox.tsx +++ b/src/components/InteractiveSandbox.tsx @@ -1,4 +1,5 @@ import React from 'react' +import { stackBlitzIframeProps } from '~/utils/stackblitz-embed' interface InteractiveSandboxProps { isActive: boolean @@ -17,6 +18,8 @@ export function InteractiveSandbox({ libraryName, embedEditor, }: InteractiveSandboxProps) { + const isStackBlitz = embedEditor === 'stackblitz' + return (