* Configuration object that can be set on window.__streamlit by the host * before the Streamlit bundle loads. These values are captured and frozen * at module initialization time for security.
| 140 | * at module initialization time for security. |
| 141 | */ |
| 142 | interface StreamlitWindowConfig { |
| 143 | // URL pointing to where the Streamlit server is running. |
| 144 | BACKEND_BASE_URL?: string |
| 145 | // URL pointing to where the _stcore/host-config endpoint is being served. |
| 146 | HOST_CONFIG_BASE_URL?: string |
| 147 | // URL pointing to where the /media assets are being served from for download only. |
| 148 | DOWNLOAD_ASSETS_BASE_URL?: string |
| 149 | // URL pointing to the main page of this Streamlit app. |
| 150 | MAIN_PAGE_BASE_URL?: string |
| 151 | // Service Worker clientId for custom components in embedded contexts. |
| 152 | CUSTOM_COMPONENT_CLIENT_ID?: string |
| 153 | // Theme related settings. |
| 154 | LIGHT_THEME?: ICustomThemeConfig |
| 155 | DARK_THEME?: ICustomThemeConfig |
| 156 | // Other options. |
| 157 | ENABLE_RELOAD_BASED_ON_HARDCODED_STREAMLIT_VERSION?: boolean |
| 158 | // Host configuration (including enabling bypass mode for fast-path websocket connection). |
| 159 | HOST_CONFIG?: HostWindowConfig |
| 160 | } |
| 161 | |
| 162 | // Extend Window interface for TypeScript |
| 163 | declare global { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…