Skip to content

@stlite/react@1.12.0

Latest

Choose a tag to compare

@whitphx-changesets-bot whitphx-changesets-bot released this 29 Nov 01:45
29defa6

Minor Changes

  • #2189 dee307c Thanks @whitphx! - Support Streamlit's static file serving. With server.enableStaticServing on, files in the static/ folder next to the main script now load from ./app/static/<path> URLs in Markdown images, videos and audio (e.g. st.markdown("![logo](./app/static/logo.png)")) and from /app/static/<path> passed to st.image, st.audio, st.video and st.logo.

Patch Changes

  • #2188 bcaec8e Thanks @whitphx! - Fix the app crashing before it renders when a theme font is given with a stylesheet URL, e.g. "theme.font": "Inter:https://fonts.googleapis.com/css2?family=Inter". The font stylesheet is now loaded as with streamlit run.

What's Changed

🏕 Updates

  • fix(react): mount a HelmetProvider so theme fonts with a URL render by @whitphx in #2188
  • feat(kernel): serve ./app/static/ URLs through the kernel by @whitphx in #2189
  • Version Packages by @whitphx-changesets-bot[bot] in #2190

Full Changelog: https://github.com/whitphx/stlite/compare/@stlite/browser@1.12.3...@stlite/react@1.12.0