1+ /// <reference types="vite/client" />
2+
13import {
24 MetabaseProvider ,
35 InteractiveQuestion ,
4- defineEmbeddingSdkTheme ,
5- defineEmbeddingSdkConfig ,
6+ defineMetabaseAuthConfig ,
7+ defineMetabaseTheme ,
68} from "@metabase/embedding-sdk-react" ;
79
810// Configuration
9- const config = defineEmbeddingSdkConfig ( {
11+ const config = defineMetabaseAuthConfig ( {
1012 metabaseInstanceUrl : import . meta. env . VITE_METABASE_INSTANCE_URL ,
1113 authProviderUri : import . meta. env . VITE_AUTH_PROVIDER_URI ,
1214} ) ;
1315
1416const questionId = 14 ;
1517
16- const theme = defineEmbeddingSdkTheme ( {
18+ const theme = defineMetabaseTheme ( {
1719 // Specify a font to use from the set of fonts supported by Metabase.
1820 // You can set the font to "Custom" to use the custom font
1921 // configured in your Metabase instance.
@@ -44,7 +46,6 @@ const theme = defineEmbeddingSdkTheme({
4446 components : {
4547 question : {
4648 backgroundColor : "#FFFFFF" ,
47- textColor : "#4C5773" ,
4849 } ,
4950
5051 table : {
@@ -63,8 +64,8 @@ const theme = defineEmbeddingSdkTheme({
6364
6465function App ( ) {
6566 return (
66- < div className = "App" width = "1200px" height = "800px" >
67- < MetabaseProvider config = { config } theme = { theme } >
67+ < div className = "App" style = { { width : "1200px" , height : "800px" } } >
68+ < MetabaseProvider authConfig = { config } theme = { theme } >
6869 < InteractiveQuestion questionId = { questionId } />
6970 </ MetabaseProvider >
7071 </ div >
0 commit comments