@@ -57,6 +57,7 @@ export interface PlaygroundConfig {
5757 mode : Ref < PlaygroundJsonEditorMode >
5858 mainMenuBar : Ref < boolean >
5959 navigationBar : Ref < boolean >
60+ statusBar : Ref < boolean >
6061 }
6162}
6263
@@ -235,6 +236,7 @@ const themeConfig: UseThemeConfig = {
235236 mode : ref < PlaygroundJsonEditorMode > ( 'tree' ) ,
236237 mainMenuBar : ref < boolean > ( false ) ,
237238 navigationBar : ref < boolean > ( false ) ,
239+ statusBar : ref < boolean > ( false ) ,
238240 } ,
239241 } ,
240242 security : {
@@ -369,6 +371,10 @@ export function useTheme(initialConfig: PartialUseThemeConfig = {}) {
369371 setPlaygroundJsonEditorNavigationBar ( config . playground . jsonEditor . navigationBar )
370372 }
371373
374+ if ( config ?. playground ?. jsonEditor ?. statusBar !== undefined ) {
375+ setPlaygroundJsonEditorStatusBar ( config . playground . jsonEditor . statusBar )
376+ }
377+
372378 if ( config ?. security ?. defaultScheme !== undefined ) {
373379 setSecurityDefaultScheme ( config . security . defaultScheme )
374380 }
@@ -584,6 +590,15 @@ export function useTheme(initialConfig: PartialUseThemeConfig = {}) {
584590 themeConfig . playground . jsonEditor . navigationBar . value = value
585591 }
586592
593+ function getPlaygroundJsonEditorStatusBar ( ) : boolean | undefined {
594+ return themeConfig ?. playground ?. jsonEditor ?. statusBar . value
595+ }
596+
597+ function setPlaygroundJsonEditorStatusBar ( value : boolean ) {
598+ // @ts -expect-error: This is a valid expression.
599+ themeConfig . playground . jsonEditor . statusBar . value = value
600+ }
601+
587602 function getSecurityDefaultScheme ( ) : string | null | undefined {
588603 return themeConfig ?. security ?. defaultScheme ?. value
589604 }
@@ -877,6 +892,8 @@ export function useTheme(initialConfig: PartialUseThemeConfig = {}) {
877892 setPlaygroundJsonEditorMainMenuBar,
878893 getPlaygroundJsonEditorNavigationBar,
879894 setPlaygroundJsonEditorNavigationBar,
895+ getPlaygroundJsonEditorStatusBar,
896+ setPlaygroundJsonEditorStatusBar,
880897 getSecurityDefaultScheme,
881898 setSecurityDefaultScheme,
882899 getOperationBadges,
0 commit comments