From 894f1ea9e50b3d8f8841ead563b55bfcfafcf369 Mon Sep 17 00:00:00 2001 From: Prashant Patil Date: Wed, 13 May 2026 14:59:30 +0530 Subject: [PATCH 1/3] remove tb - frame --- modules/ROOT/pages/common/nav.adoc | 2 +- src/components/DevDocTemplate/index.tsx | 13 ++------- .../playGround/ThemeBuilder.tsx | 27 ------------------- src/configs/doc-configs.js | 1 - 4 files changed, 3 insertions(+), 40 deletions(-) delete mode 100644 src/components/DevDocTemplate/playGround/ThemeBuilder.tsx diff --git a/modules/ROOT/pages/common/nav.adoc b/modules/ROOT/pages/common/nav.adoc index 9b6a374fa..eaf56c0a3 100644 --- a/modules/ROOT/pages/common/nav.adoc +++ b/modules/ROOT/pages/common/nav.adoc @@ -25,7 +25,7 @@ Live Playgrounds ** link:{{navprefix}}/rest-playground[How to use] //** link:{{navprefix}}/graphql-play-ground[GraphQL Playground] //** +++REST API v1 Playground+++ -* link:{{navprefix}}/theme-builder[Theme Builder] +* +++Theme Builder+++ ** link:{{navprefix}}/theme-builder-doc[How to use] diff --git a/src/components/DevDocTemplate/index.tsx b/src/components/DevDocTemplate/index.tsx index 4edeaef04..5b39cb647 100644 --- a/src/components/DevDocTemplate/index.tsx +++ b/src/components/DevDocTemplate/index.tsx @@ -51,7 +51,6 @@ import { } from '../../constants/uiConstants'; import t from '../../utils/lang-utils'; import { getHTMLFromComponent } from '../../utils/react-utils'; -import { ThemeBuilder } from './playGround/ThemeBuilder'; import VersionIframe from '../VersionIframe'; const DevDocTemplate: FC = (props) => { @@ -148,10 +147,7 @@ const DevDocTemplate: FC = (props) => { const isApiPlayground = params[TS_PAGE_ID_PARAM] === CUSTOM_PAGE_ID.API_PLAYGROUND; - const isThemeBuilder = - params[TS_PAGE_ID_PARAM] === CUSTOM_PAGE_ID.THEME_BUILDER; - - const isVersionedIframe = VERSION_DROPDOWN.some( +const isVersionedIframe = VERSION_DROPDOWN.some( (version) => props?.pageContext?.iframeUrl && version.iframeUrl === props?.pageContext?.iframeUrl, @@ -168,7 +164,6 @@ const DevDocTemplate: FC = (props) => { const isPlayGround = isGQPlayGround || isApiPlayground || - isThemeBuilder || isVersionedIframe; const isAskDocsPage = params[TS_PAGE_ID_PARAM] === CUSTOM_PAGE_ID.ASK_DOCS; @@ -546,11 +541,7 @@ const DevDocTemplate: FC = (props) => { /> ); - if (isThemeBuilder) { - return ; - } - - if (isVersionedIframe) { +if (isVersionedIframe) { return ( = (props) => { - const playgroundUrl = 'https://theme-builder-embed-prod.vercel.app/'; - - return ( -
- -