What's Changed
Breaking Changes 🛠
- [feat] Move the isolate_styles param in CCv2 by @sfc-gh-bnisco in #13518
- [feat] Rename some external CCv2 types by @sfc-gh-bnisco in #13515
New Features 🎉
- Support for markdown in the metrics value and delta parameters by @jensonjohnathon in #13094
- Make Default Sidebar Width Configurable by @jose-mindwayai in #12154
- [feat] Update chat input UI with improved layout and styling by @sfc-gh-nbellante in #13088
- Add support for setting metric delta colors from color palette by @lukasmasuch in #13153
- Support configuring the
formatinst.metricby @lukasmasuch in #13193 - Support for markdown in select_slider options by @jensonjohnathon in #12960
- Navigate to home page on logo click by @lukasmasuch in #13222
- Add max_upload_size parameter to file_uploader and chat_input by @rishabhjain1712 in #12816
- Allow only adding or deleting rows in
st.data_editorby @lukasmasuch in #13228 - Add
icon_positionsupport for button-like components by @SiddhantSadangi in #13150 - [feat] Add headingFontSize1-6 and headingFontWeight1-6 CSS Custom Properties by @sfc-gh-bnisco in #13268
- [feat] Enhance
st.chat_inputfile upload UI with improved file chips and retry functionality by @sfc-gh-nbellante in #13223 - Add icon support to dialogs by @KaranPradhan266 in #13244
- Allow dynamic changes to selectbox options when
keyis provided by @lukasmasuch in #13383 - Add path tooltip on
st.jsonvalue click by @lukasmasuch in #13113 - Support passing list of pydantic objects as dataframe-like structure by @lukasmasuch in #13348
- [feat] Update AGENTS rules for better a11y practices by @sfc-gh-bnisco in #13411
- [feat] Update eslint rules for better a11y support by @sfc-gh-bnisco in #13412
- Expose OIDC tokens by @velochy in #12044
- Support pre-defined formats in
formatofst.sliderby @lukasmasuch in #13392 - Add on_release to st.cache_resource. by @sfc-gh-jkinkead in #13439
- Add gaps and sizes for xxsmall, xsmall, xlarge, xxlarge in st.container/columns/space by @sfc-gh-tteixeira in #13345
- Add new session_duration_seconds_total stats by @vdonato in #13414
- Add session scoping to caches. by @sfc-gh-jkinkead in #13482
- [feat] Simplify chat input UI with single-row layout for basic configurations by @sfc-gh-nbellante in #13364
- Add session-scoped connection support. by @sfc-gh-jkinkead in #13506
- [feat] Allow for optional js, css, and html params in CCv2 by @sfc-gh-bnisco in #13511
- Allow dynamically changing in min, max and step in
st.number_inputby @lukasmasuch in #13512 - Add optional support for running Streamlit with Starlette by @lukasmasuch in #13375
- Add SnowflakeCallersRightsConnection. by @sfc-gh-jkinkead in #13538
- Allow dynamic changes to multiselect options when
keyis provided by @lukasmasuch in #13448 - fix(multiselect): preserve scroll position when removing items by @kagawa0710 in #13384
- Add experimental ASGI app entry point for advanced server configuration by @lukasmasuch in #13537
- Allow OAuth redirect_uri to reference current port by @velochy in #12251
- Make st.logout use end_session_endpoint if provided in OIDC config (V2) by @velochy in #12693
- [feat] Add dynamic layout switching for
st.chat_inputby @sfc-gh-nbellante in #13546
Bug Fixes 🐛
- [fix] improve width/height error message to say "positive integer" by @sfc-gh-lwilby in #13206
- Fix unexpected shrinking of logo with top nav by @lukasmasuch in #13226
- [fix] Do not render sidebar nav when top nav enabled by @sfc-gh-bnisco in #13227
- Implement transient spinners by @kmcgrady in #12826
- [fix] Include default in key for CCv2 instances by @sfc-gh-bnisco in #13266
- [fix] Ensure key down targeting works for elements in Shadow DOM by @sfc-gh-bnisco in #13264
- Fix data editor regression when starting from empty column by @lukasmasuch in #13309
- Prevent
st.dialogfrom showing elements from previous dialog by @lukasmasuch in #13297 - Fix auth-related issues caused by dependency updates by @lukasmasuch in #13333
- [Fix] Theme preference persistence across reloads by @mayagbarnes in #13306
- [fix] Handle undefined theme properties in CCv2 by @sfc-gh-bnisco in #13240
- [fix] Ensure crossOrigin attribute is properly set for CCv2 stylesheets by @sfc-gh-bnisco in #13376
- Fix the spinner time text alignment by @lukasmasuch in #13388
- [fix] tooltip text leaking with newlines in help by @sfc-gh-lwilby in #13365
- [fix] Ensure anchor links in Markdown headers are accessible from keyboard by @sfc-gh-bnisco in #13378
- [fix] Ensure help Tooltips are accessible by @sfc-gh-bnisco in #13379
- [Fix]
st.htmlhandles list indentation by @mayagbarnes in #13437 - [Fix]
st.selectboxset via session state does not restore initial value by @mayagbarnes in #13438 - [Fix] Altair charts with vconcat and hconcat by @mayagbarnes in #13423
- Fix custom theme when embedded with embed_options by @ranmocy in #13498
- Improve
st.number_inputprecision by @mayagbarnes in #13484 - Add ability to clear transient nodes when the script is run by @kmcgrady in #13166
- [fix] Correct justifyContents to justifyContent in Icon styled-components by @sfc-gh-nbellante in #13557
- [fix] Fix upload button functionality after drag-drop and delete in
st.chat_inputby @sfc-gh-nbellante in #13556
Other Changes
- [chore] Release v1.52.0 by @github-actions[bot] in #13186
- [chore] Release v1.52.1 by @github-actions[bot] in #13235
- [Fix] Theme hashing by @mayagbarnes in #13173
- Use the correct snowflake.com domains by @lukasmasuch in #13363
- [chore] Release v1.52.2 by @github-actions[bot] in #13390
- [polish] Update chat input file chip border radius to match Figma by @sfc-gh-nbellante in #13532
- [Fix] Consolidate border/hover colors by @mayagbarnes in #13536
- [feat] Replace inline error messages with tooltips in
st.chat_inputfile upload UI by @sfc-gh-nbellante in #13542 - [fix] Update ghost button colors for
st.chat_inputbuttons by @sfc-gh-nbellante in #13535 - [fix] Improve
st.chat_inputfile delete button colors by @sfc-gh-nbellante in #13554 - [polish] Replace Mic icon with MicNone icon in
st.chat_inputby @sfc-gh-nbellante in #13553 - [fix] Shorten
st.chat_inputfile chip display to adhere to designs by @sfc-gh-nbellante in #13555 - [feat] Add image thumbnails to
st.chat_inputfile uploads by @sfc-gh-nbellante in #13547
New Contributors
- @jensonjohnathon made their first contribution in #13094
- @jose-mindwayai made their first contribution in #12154
- @rishabhjain1712 made their first contribution in #12816
- @KaranPradhan266 made their first contribution in #13244
- @ranmocy made their first contribution in #13498
- @kagawa0710 made their first contribution in #13384
Full Changelog: 1.52.2...1.53.0