@@ -25,10 +25,10 @@ function getDependencyScripts(esmVersion: string, esmFallbackVersion: string, da
2525 if ( isDev ) {
2626 return html `
2727 < script type ="module ">
28- import React from 'https://esm.sh/react@18 ' ;
29- import * as ReactDOM from 'https://esm.sh/react-dom@18 ?deps=react@18 ' ;
30- import * as ReactDOMClient from 'https://esm.sh/react-dom@18 /client?deps=react@18 ' ;
31- import * as Recharts from 'https://esm.sh/recharts@2.15.4?deps=react@18 ,react-dom@18 ' ;
28+ import React from 'https://esm.sh/react@19.2.3 ' ;
29+ import * as ReactDOM from 'https://esm.sh/react-dom@19.2.3 ?deps=react@19.2.3 ' ;
30+ import * as ReactDOMClient from 'https://esm.sh/react-dom@19.2.3 /client?deps=react@19.2.3 ' ;
31+ import * as Recharts from 'https://esm.sh/recharts@2.15.4?deps=react@19.2.3 ,react-dom@19.2.3 ' ;
3232
3333 window . React = React ;
3434 window . ReactDOM = { ...ReactDOM , ...ReactDOMClient } ;
@@ -72,10 +72,10 @@ function getDependencyScripts(esmVersion: string, esmFallbackVersion: string, da
7272
7373 return html `
7474 < script type ="module ">
75- import React from 'https://esm.sh/react@18 ' ;
76- import * as ReactDOM from 'https://esm.sh/react-dom@18 ?deps=react@18 ' ;
77- import * as ReactDOMClient from 'https://esm.sh/react-dom@18 /client?deps=react@18 ' ;
78- import * as Recharts from 'https://esm.sh/recharts@2.15.4?deps=react@18 ,react-dom@18 ' ;
75+ import React from 'https://esm.sh/react@19.2.3 ' ;
76+ import * as ReactDOM from 'https://esm.sh/react-dom@19.2.3 ?deps=react@19.2.3 ' ;
77+ import * as ReactDOMClient from 'https://esm.sh/react-dom@19.2.3 /client?deps=react@19.2.3 ' ;
78+ import * as Recharts from 'https://esm.sh/recharts@2.15.4?deps=react@19.2.3 ,react-dom@19.2.3 ' ;
7979
8080 window . React = React ;
8181 window . ReactDOM = { ...ReactDOM , ...ReactDOMClient } ;
@@ -85,13 +85,13 @@ function getDependencyScripts(esmVersion: string, esmFallbackVersion: string, da
8585 let DashboardUIComponents , StackSDK ;
8686 try {
8787 [ DashboardUIComponents , StackSDK ] = await Promise . all ( [
88- import ( 'https://esm.sh/@stackframe/dashboard-ui-components@${ esmVersion } ?deps=react@18 ,react-dom@18 ' ) ,
88+ import ( 'https://esm.sh/@stackframe/dashboard-ui-components@${ esmVersion } ?deps=react@19.2.3 ,react-dom@19.2.3 ' ) ,
8989 import ( 'https://esm.sh/@stackframe/js@${ esmVersion } ' ) ,
9090 ] ) ;
9191 } catch ( e ) {
9292 window . parent . postMessage ( { type : 'dashboard-error-boundary' , message : '[sandbox] Failed to load at version ${ esmVersion } , trying fallback ${ esmFallbackVersion } : ' + e ?. message } , '*' ) ;
9393 [ DashboardUIComponents , StackSDK ] = await Promise . all ( [
94- import ( 'https://esm.sh/@stackframe/dashboard-ui-components@${ esmFallbackVersion } ?deps=react@18 ,react-dom@18 ' ) ,
94+ import ( 'https://esm.sh/@stackframe/dashboard-ui-components@${ esmFallbackVersion } ?deps=react@19.2.3 ,react-dom@19.2.3 ' ) ,
9595 import ( 'https://esm.sh/@stackframe/js@${ esmFallbackVersion } ' ) ,
9696 ] ) ;
9797 }
@@ -243,7 +243,7 @@ function getSandboxDocument(artifact: DashboardArtifact, baseUrl: string, dashbo
243243 } ;
244244 // Controls visibility flag — only true in the full dashboard viewer (not cmd+K preview)
245245 window . __showControls = ${ showControls } ;
246- window . __chatOpen = false ;
246+ window . __chatOpen = ${ initialChatOpen } ;
247247
248248 // Theme syncing and chat state from parent window
249249 window . addEventListener ( 'message' , ( event ) => {
0 commit comments