streamlit-nightly 1.53.2.dev20260125__py3-none-any.whl → 1.53.2.dev20260128__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. streamlit/commands/logo.py +81 -25
  2. streamlit/config.py +11 -0
  3. streamlit/deprecation_util.py +19 -1
  4. streamlit/elements/arrow.py +2 -1
  5. streamlit/elements/lib/built_in_chart_utils.py +2 -2
  6. streamlit/elements/lib/options_selector_utils.py +72 -22
  7. streamlit/elements/widgets/select_slider.py +123 -37
  8. streamlit/hello/plotting_demo.py +19 -12
  9. streamlit/proto/Logo_pb2.py +5 -3
  10. streamlit/proto/Logo_pb2.pyi +25 -1
  11. streamlit/proto/NewSession_pb2.py +24 -22
  12. streamlit/proto/NewSession_pb2.pyi +23 -1
  13. streamlit/proto/Slider_pb2.py +6 -6
  14. streamlit/proto/Slider_pb2.pyi +9 -1
  15. streamlit/runtime/app_session.py +19 -0
  16. streamlit/runtime/scriptrunner/script_runner.py +17 -0
  17. streamlit/runtime/scriptrunner_utils/script_run_context.py +13 -10
  18. streamlit/runtime/state/__init__.py +7 -1
  19. streamlit/runtime/state/common.py +13 -0
  20. streamlit/runtime/state/query_params.py +494 -6
  21. streamlit/runtime/state/session_state.py +178 -3
  22. streamlit/runtime/state/widgets.py +26 -1
  23. streamlit/static/index.html +1 -1
  24. streamlit/static/manifest.json +299 -299
  25. streamlit/static/static/js/{ErrorOutline.esm.CIFYUdwC.js → ErrorOutline.esm.D71F8ziR.js} +1 -1
  26. streamlit/static/static/js/{FileDownload.esm.DWVTnTHm.js → FileDownload.esm.yTkppsJy.js} +1 -1
  27. streamlit/static/static/js/{FileHelper.BPYQIPd1.js → FileHelper.hUOqtbwa.js} +1 -1
  28. streamlit/static/static/js/{FormClearHelper.CypmvhYZ.js → FormClearHelper.DN8D_YXO.js} +1 -1
  29. streamlit/static/static/js/{InputInstructions.Bi62hDTQ.js → InputInstructions.DbssY6d4.js} +1 -1
  30. streamlit/static/static/js/{Particles.yebG0VuV.js → Particles.BznyVdfo.js} +1 -1
  31. streamlit/static/static/js/{ProgressBar.Dy9CI6w4.js → ProgressBar.C5uBOtcx.js} +1 -1
  32. streamlit/static/static/js/{StreamlitSyntaxHighlighter.Btk92CPv.js → StreamlitSyntaxHighlighter.Nf1895x-.js} +1 -1
  33. streamlit/static/static/js/{TableChart.esm.DBeVaFNt.js → TableChart.esm.DHKzVs3a.js} +1 -1
  34. streamlit/static/static/js/{Toolbar.DC2Tp-qb.js → Toolbar.CQsWYXer.js} +1 -1
  35. streamlit/static/static/js/{WidgetLabelHelpIconInline.3DnEd9BK.js → WidgetLabelHelpIconInline.6xCU76OE.js} +1 -1
  36. streamlit/static/static/js/{base-input.7Sj6pVk0.js → base-input.Cs-E6S71.js} +1 -1
  37. streamlit/static/static/js/{checkbox.CcUx3XuQ.js → checkbox.OTGupu18.js} +1 -1
  38. streamlit/static/static/js/{createDownloadLinkElement.DZuwkCqy.js → createDownloadLinkElement.DnBEQQbK.js} +1 -1
  39. streamlit/static/static/js/{data-grid-overlay-editor.Dw-AewlN.js → data-grid-overlay-editor.COiiMi5r.js} +1 -1
  40. streamlit/static/static/js/{downloader.Bsx5M2Du.js → downloader.K0GUNeuj.js} +1 -1
  41. streamlit/static/static/js/embed.o8HvK3mH.js +193 -0
  42. streamlit/static/static/js/{es6.BpAqZaR_.js → es6.BHy5pqTP.js} +2 -2
  43. streamlit/static/static/js/{formatNumber.DjehVPVS.js → formatNumber.BK7h0k2z.js} +1 -1
  44. streamlit/static/static/js/{iconPosition.D02OPE-d.js → iconPosition.2YynQUxu.js} +1 -1
  45. streamlit/static/static/js/{iframeResizer.contentWindow.xtstqPd7.js → iframeResizer.contentWindow.D5h3hQuU.js} +1 -1
  46. streamlit/static/static/js/{index.5H98WqjT.js → index.5zqfJ-in.js} +1 -1
  47. streamlit/static/static/js/{index.B5tD5YeV.js → index.6c-qDsD7.js} +1 -1
  48. streamlit/static/static/js/{index.CA0RmxJF.js → index.8MlRyIxN.js} +1 -1
  49. streamlit/static/static/js/{index.DSSapl3Q.js → index.BIqcOZ_u.js} +1 -1
  50. streamlit/static/static/js/{index.DJjSqPAx.js → index.BPdmXoYW.js} +1 -1
  51. streamlit/static/static/js/{index.iXzAofuY.js → index.BZ-GJVxB.js} +2 -2
  52. streamlit/static/static/js/{index.CKUBdVQ9.js → index.BfMPq234.js} +1 -1
  53. streamlit/static/static/js/{index.B8-HOwf1.js → index.Bfo1cXfC.js} +1 -1
  54. streamlit/static/static/js/{index.-faJDV20.js → index.Bgf49D1Z.js} +1 -1
  55. streamlit/static/static/js/{index.CgARjn28.js → index.Bqmx23jK.js} +1 -1
  56. streamlit/static/static/js/{index.D6Z9hKJY.js → index.BtRWcqZV.js} +1 -1
  57. streamlit/static/static/js/{index.ZIA43eTF.js → index.BtuskCwg.js} +1 -1
  58. streamlit/static/static/js/{index.BV6XgCij.js → index.BzTVI_BY.js} +1 -1
  59. streamlit/static/static/js/{index.DDu_qTm0.js → index.C2EoeVjP.js} +1 -1
  60. streamlit/static/static/js/{index.8FPw0_gD.js → index.C65jHNhe.js} +1 -1
  61. streamlit/static/static/js/{index.D6J2UPzF.js → index.C6wyTXhz.js} +1 -1
  62. streamlit/static/static/js/{index.CGbvkEtg.js → index.C7wst9Tm.js} +1 -1
  63. streamlit/static/static/js/{index.BIcJe97b.js → index.COh5V_89.js} +1 -1
  64. streamlit/static/static/js/index.CSPY26T2.js +1 -0
  65. streamlit/static/static/js/{index.CEwnDCn9.js → index.CUkhn-vu.js} +1 -1
  66. streamlit/static/static/js/{index.DO2T-QzF.js → index.CX0KdFyR.js} +1 -1
  67. streamlit/static/static/js/{index.BDlI2pRp.js → index.CYhhEdja.js} +1 -1
  68. streamlit/static/static/js/{index.DgLRJfs3.js → index.CZf7Go1Z.js} +1 -1
  69. streamlit/static/static/js/{index.DZv5AoR1.js → index.Cb03y5I8.js} +1 -1
  70. streamlit/static/static/js/{index.BVhVdVeE.js → index.CdsyTabv.js} +1 -1
  71. streamlit/static/static/js/{index.JL0uGAeJ.js → index.CgVv04GM.js} +1 -1
  72. streamlit/static/static/js/index.CjRU8O1O.js +2 -0
  73. streamlit/static/static/js/{index.BqfJJr3c.js → index.CwtpGPHA.js} +1 -1
  74. streamlit/static/static/js/{index.iF5zYERg.js → index.CxWzt6oi.js} +1 -1
  75. streamlit/static/static/js/{index.m3dn5Bai.js → index.DBPWUJsj.js} +5 -5
  76. streamlit/static/static/js/{index.D9RL5sRp.js → index.DJfMW0Gy.js} +1 -1
  77. streamlit/static/static/js/{index.BOkpEbJS.js → index.DLUSo6de.js} +1 -1
  78. streamlit/static/static/js/{index.S-mjkUeF.js → index.DL_yE83J.js} +1 -1
  79. streamlit/static/static/js/{index.BK9S5qug.js → index.DVRCyxMp.js} +1 -1
  80. streamlit/static/static/js/{index.D_TIyPF4.js → index.Dc5-tFdw.js} +1 -1
  81. streamlit/static/static/js/index.DcngUOyD.js +2 -0
  82. streamlit/static/static/js/{index.B9gbSNsw.js → index.Dh3PJIlq.js} +1 -1
  83. streamlit/static/static/js/{index.BvZbnSMC.js → index.DlgcEr0f.js} +1 -1
  84. streamlit/static/static/js/{index.Bo1ztye0.js → index.DxGXuhh6.js} +1 -1
  85. streamlit/static/static/js/{index.x1B588Xu.js → index.DxfYCrPp.js} +1 -1
  86. streamlit/static/static/js/{index.CyDHwK5P.js → index.HmRK3HyC.js} +1 -1
  87. streamlit/static/static/js/{index.DdxofXV8.js → index.TjMWsKSH.js} +3 -3
  88. streamlit/static/static/js/{index.Bri1T2TS.js → index.VwDKazgt.js} +1 -1
  89. streamlit/static/static/js/{index.BB_iwaVr.js → index.aCorc3Yt.js} +34 -34
  90. streamlit/static/static/js/{index.CdRwiHPm.js → index.cfuZ69LI.js} +1 -1
  91. streamlit/static/static/js/{index.C9v49R-a.js → index.hlAfdSqC.js} +1 -1
  92. streamlit/static/static/js/{index.BGTMh3Uu.js → index.iUV9rb8C.js} +1 -1
  93. streamlit/static/static/js/{index.XFMDBL5n.js → index.q0ceUXt6.js} +1 -1
  94. streamlit/static/static/js/{input.VYKyGuhi.js → input.CXGIJ7D6.js} +1 -1
  95. streamlit/static/static/js/{main.u5Bb3MY7.js → main.CCVkbuxC.js} +1 -1
  96. streamlit/static/static/js/{memory.BOMt4yAV.js → memory.CNbnYs2A.js} +1 -1
  97. streamlit/static/static/js/{number-overlay-editor.CihlAHgl.js → number-overlay-editor.CvI6wkld.js} +1 -1
  98. streamlit/static/static/js/{pandasStylerUtils.BuqSgXpk.js → pandasStylerUtils.CFSReOTm.js} +1 -1
  99. streamlit/static/static/js/{sandbox.COGR4pqz.js → sandbox.Bld0L3us.js} +1 -1
  100. streamlit/static/static/js/{styled-components.BEf3c4IJ.js → styled-components.BoUHK6TA.js} +1 -1
  101. streamlit/static/static/js/{throttle.Bl-XsA9N.js → throttle.ByDFm7WV.js} +1 -1
  102. streamlit/static/static/js/{timepicker.B-HgBYlK.js → timepicker.CN6CUZEL.js} +1 -1
  103. streamlit/static/static/js/{toConsumableArray.BrQebwtE.js → toConsumableArray.DwMycSpg.js} +1 -1
  104. streamlit/static/static/js/uniqueId.DcCWa2cf.js +1 -0
  105. streamlit/static/static/js/{useBasicWidgetState.8WwISl9r.js → useBasicWidgetState.Bg0ZMUt5.js} +1 -1
  106. streamlit/static/static/js/{useIntlLocale.D37LWdCR.js → useIntlLocale.DgBUDcPA.js} +1 -1
  107. streamlit/static/static/js/{useTextInputAutoExpand.Bb_KqJvq.js → useTextInputAutoExpand.DDBezxks.js} +1 -1
  108. streamlit/static/static/js/{useUpdateUiValue.D1BLS5t7.js → useUpdateUiValue.Df1h6fXC.js} +1 -1
  109. streamlit/static/static/js/{useWaveformController.Ce0-qTws.js → useWaveformController.DbWw5MEk.js} +1 -1
  110. streamlit/static/static/js/{withCalculatedWidth.BX2K3UVv.js → withCalculatedWidth.YaK0HIIP.js} +1 -1
  111. streamlit/static/static/js/{withFullScreenWrapper.CqfGs8T2.js → withFullScreenWrapper.CcWCKoY8.js} +1 -1
  112. streamlit/testing/v1/element_tree.py +23 -8
  113. streamlit/web/bootstrap.py +5 -2
  114. streamlit/web/server/server_util.py +22 -0
  115. {streamlit_nightly-1.53.2.dev20260125.dist-info → streamlit_nightly-1.53.2.dev20260128.dist-info}/METADATA +1 -1
  116. {streamlit_nightly-1.53.2.dev20260125.dist-info → streamlit_nightly-1.53.2.dev20260128.dist-info}/RECORD +120 -120
  117. streamlit/static/static/js/embed.C7by6AoE.js +0 -195
  118. streamlit/static/static/js/index.Bhy8EBYI.js +0 -2
  119. streamlit/static/static/js/index.C5ehUqNt.js +0 -2
  120. streamlit/static/static/js/index.m4WkwGMu.js +0 -1
  121. streamlit/static/static/js/uniqueId.8R4hbkYl.js +0 -1
  122. {streamlit_nightly-1.53.2.dev20260125.data → streamlit_nightly-1.53.2.dev20260128.data}/scripts/streamlit.cmd +0 -0
  123. {streamlit_nightly-1.53.2.dev20260125.dist-info → streamlit_nightly-1.53.2.dev20260128.dist-info}/WHEEL +0 -0
  124. {streamlit_nightly-1.53.2.dev20260125.dist-info → streamlit_nightly-1.53.2.dev20260128.dist-info}/entry_points.txt +0 -0
  125. {streamlit_nightly-1.53.2.dev20260125.dist-info → streamlit_nightly-1.53.2.dev20260128.dist-info}/top_level.txt +0 -0
@@ -1 +1 @@
1
- import{z as D,r as a,k as P,l as U,a9 as S,aa as j,o as H,j as l,p as q,ab as K,ac as O,ad as _,ae as $,Y as w,af as A}from"./index.BB_iwaVr.js";import{I as N}from"./InputInstructions.Bi62hDTQ.js";import{u as Y}from"./useBasicWidgetState.8WwISl9r.js";import{u as G,a as J,b as M}from"./useUpdateUiValue.D1BLS5t7.js";import{u as Q}from"./uniqueId.8R4hbkYl.js";import{I as X}from"./input.VYKyGuhi.js";import"./FormClearHelper.CypmvhYZ.js";import"./inputUtils.CptNuJwn.js";import"./base-input.7Sj6pVk0.js";const Z=D("div",{target:"eiqkja70"})("position:relative;");function tt({disabled:o,element:t,widgetMgr:s,fragmentId:u}){const[r,p]=a.useState(()=>W(s,t)??null),{width:T,elementRef:x}=P(),[i,m]=a.useState(!1),y=a.useCallback(()=>{p(t.default??null),m(!0)},[t.default]),[C,h]=Y({getStateFromWidgetMgr:W,getDefaultStateFromProto:et,getCurrStateFromProto:ot,updateWidgetMgrState:at,element:t,widgetMgr:s,fragmentId:u,onFormCleared:y});G(C,r,p,i);const[V,f]=a.useState(!1),e=U(),[b]=a.useState(()=>Q("text_input_")),{placeholder:F,formId:n,icon:d,maxChars:I}=t,g=a.useCallback(()=>{m(!1),h({value:r,fromUi:!0})},[r,h]),v=S({formId:n})?s.allowFormEnterToSubmit(n):i,E=V&&T>j(e.breakpoints.hideWidgetDetails),R=a.useCallback(()=>{i&&g(),f(!1)},[i,g]),z=a.useCallback(()=>{f(!0)},[]),L=J({formId:n,maxChars:I,setDirty:m,setUiValue:p,setValueWithSource:h}),k=M(n,g,i,s,u);return H(Z,{className:"stTextInput","data-testid":"stTextInput",ref:x,children:[l(O,{label:t.label,disabled:o,labelVisibility:q(t.labelVisibility?.value),htmlFor:b,children:t.help&&l(K,{content:t.help,label:t.label})}),l(X,{value:r??"",placeholder:F,onBlur:R,onFocus:z,onChange:L,onKeyPress:k,"aria-label":t.label,disabled:o,id:b,type:st(t),autoComplete:t.autocomplete,startEnhancer:d&&l(w,{"data-testid":"stTextInputIcon",iconValue:d,size:"lg"}),overrides:{Input:{style:{fontWeight:e.fontWeights.normal,minWidth:0,lineHeight:e.lineHeights.inputWidget,paddingRight:e.spacing.sm,paddingLeft:e.spacing.md,paddingBottom:e.spacing.sm,paddingTop:e.spacing.sm,"::placeholder":{color:e.colors.fadedText60}}},Root:{props:{"data-testid":"stTextInputRootElement"},style:({$isFocused:B})=>{const c=$(e.colors,B);return{height:e.sizes.minElementHeight,borderLeftWidth:e.sizes.borderWidth,borderRightWidth:e.sizes.borderWidth,borderTopWidth:e.sizes.borderWidth,borderBottomWidth:e.sizes.borderWidth,borderTopColor:c,borderRightColor:c,borderBottomColor:c,borderLeftColor:c,paddingLeft:d?e.spacing.sm:0}}},StartEnhancer:{style:{paddingLeft:0,paddingRight:0,minWidth:e.iconSizes.lg,color:_(d)?e.colors.fadedText60:"inherit"}}}}),E&&l(N,{dirty:i,value:r??"",maxLength:I,inForm:S({formId:n}),allowEnterToSubmit:v})]})}function W(o,t){return o.getStringValue(t)??null}function et(o){return o.default??null}function ot(o){return o.value??null}function at(o,t,s,u){t.setStringValue(o,s.value,{fromUi:s.fromUi},u)}function st(o){return o.type===A.Type.PASSWORD?"password":"text"}const ht=a.memo(tt);export{ht as default};
1
+ import{z as D,r as a,k as P,l as U,a9 as S,aa as j,o as H,j as l,p as q,ab as K,ac as O,ad as _,ae as $,Y as w,af as A}from"./index.aCorc3Yt.js";import{I as N}from"./InputInstructions.DbssY6d4.js";import{u as Y}from"./useBasicWidgetState.Bg0ZMUt5.js";import{u as G,a as J,b as M}from"./useUpdateUiValue.Df1h6fXC.js";import{u as Q}from"./uniqueId.DcCWa2cf.js";import{I as X}from"./input.CXGIJ7D6.js";import"./FormClearHelper.DN8D_YXO.js";import"./inputUtils.CptNuJwn.js";import"./base-input.Cs-E6S71.js";const Z=D("div",{target:"eiqkja70"})("position:relative;");function tt({disabled:o,element:t,widgetMgr:s,fragmentId:u}){const[r,p]=a.useState(()=>W(s,t)??null),{width:T,elementRef:x}=P(),[i,m]=a.useState(!1),y=a.useCallback(()=>{p(t.default??null),m(!0)},[t.default]),[C,h]=Y({getStateFromWidgetMgr:W,getDefaultStateFromProto:et,getCurrStateFromProto:ot,updateWidgetMgrState:at,element:t,widgetMgr:s,fragmentId:u,onFormCleared:y});G(C,r,p,i);const[V,f]=a.useState(!1),e=U(),[b]=a.useState(()=>Q("text_input_")),{placeholder:F,formId:n,icon:d,maxChars:I}=t,g=a.useCallback(()=>{m(!1),h({value:r,fromUi:!0})},[r,h]),v=S({formId:n})?s.allowFormEnterToSubmit(n):i,E=V&&T>j(e.breakpoints.hideWidgetDetails),R=a.useCallback(()=>{i&&g(),f(!1)},[i,g]),z=a.useCallback(()=>{f(!0)},[]),L=J({formId:n,maxChars:I,setDirty:m,setUiValue:p,setValueWithSource:h}),k=M(n,g,i,s,u);return H(Z,{className:"stTextInput","data-testid":"stTextInput",ref:x,children:[l(O,{label:t.label,disabled:o,labelVisibility:q(t.labelVisibility?.value),htmlFor:b,children:t.help&&l(K,{content:t.help,label:t.label})}),l(X,{value:r??"",placeholder:F,onBlur:R,onFocus:z,onChange:L,onKeyPress:k,"aria-label":t.label,disabled:o,id:b,type:st(t),autoComplete:t.autocomplete,startEnhancer:d&&l(w,{"data-testid":"stTextInputIcon",iconValue:d,size:"lg"}),overrides:{Input:{style:{fontWeight:e.fontWeights.normal,minWidth:0,lineHeight:e.lineHeights.inputWidget,paddingRight:e.spacing.sm,paddingLeft:e.spacing.md,paddingBottom:e.spacing.sm,paddingTop:e.spacing.sm,"::placeholder":{color:e.colors.fadedText60}}},Root:{props:{"data-testid":"stTextInputRootElement"},style:({$isFocused:B})=>{const c=$(e.colors,B);return{height:e.sizes.minElementHeight,borderLeftWidth:e.sizes.borderWidth,borderRightWidth:e.sizes.borderWidth,borderTopWidth:e.sizes.borderWidth,borderBottomWidth:e.sizes.borderWidth,borderTopColor:c,borderRightColor:c,borderBottomColor:c,borderLeftColor:c,paddingLeft:d?e.spacing.sm:0}}},StartEnhancer:{style:{paddingLeft:0,paddingRight:0,minWidth:e.iconSizes.lg,color:_(d)?e.colors.fadedText60:"inherit"}}}}),E&&l(N,{dirty:i,value:r??"",maxLength:I,inForm:S({formId:n}),allowEnterToSubmit:v})]})}function W(o,t){return o.getStringValue(t)??null}function et(o){return o.default??null}function ot(o){return o.value??null}function at(o,t,s,u){t.setStringValue(o,s.value,{fromUi:s.fromUi},u)}function st(o){return o.type===A.Type.PASSWORD?"password":"text"}const ht=a.memo(tt);export{ht as default};
@@ -1 +1 @@
1
- import{r as l,e as s,j as m,p as V,U as x}from"./index.BB_iwaVr.js";import{u as U}from"./useBasicWidgetState.8WwISl9r.js";import"./FormClearHelper.CypmvhYZ.js";const h=(t,e)=>t.getStringValue(e),v=t=>t.options.length===0||s(t.default)?null:t.options[t.default],w=t=>t.rawValue??null,y=(t,e,o,a)=>{e.setStringValue(t,o.value,{fromUi:o.fromUi},a)},C=({disabled:t,element:e,widgetMgr:o,fragmentId:a})=>{const{options:i,help:u,label:n,labelVisibility:c,placeholder:p,acceptNewOptions:f}=e,[g,r]=U({getStateFromWidgetMgr:h,getDefaultStateFromProto:v,getCurrStateFromProto:w,updateWidgetMgrState:y,element:e,widgetMgr:o,fragmentId:a}),b=l.useCallback(d=>{r({value:d,fromUi:!0})},[r]),S=s(e.default)&&!t;return m(x,{label:n,labelVisibility:V(c?.value),options:i,disabled:t,onChange:b,value:g,help:u,placeholder:p,clearable:S,acceptNewOptions:f??!1})},P=l.memo(C);export{P as default};
1
+ import{r as l,e as s,j as m,p as V,U as x}from"./index.aCorc3Yt.js";import{u as U}from"./useBasicWidgetState.Bg0ZMUt5.js";import"./FormClearHelper.DN8D_YXO.js";const h=(t,e)=>t.getStringValue(e),v=t=>t.options.length===0||s(t.default)?null:t.options[t.default],w=t=>t.rawValue??null,y=(t,e,o,a)=>{e.setStringValue(t,o.value,{fromUi:o.fromUi},a)},C=({disabled:t,element:e,widgetMgr:o,fragmentId:a})=>{const{options:i,help:u,label:n,labelVisibility:c,placeholder:p,acceptNewOptions:f}=e,[g,r]=U({getStateFromWidgetMgr:h,getDefaultStateFromProto:v,getCurrStateFromProto:w,updateWidgetMgrState:y,element:e,widgetMgr:o,fragmentId:a}),b=l.useCallback(d=>{r({value:d,fromUi:!0})},[r]),S=s(e.default)&&!t;return m(x,{label:n,labelVisibility:V(c?.value),options:i,disabled:t,onChange:b,value:g,help:u,placeholder:p,clearable:S,acceptNewOptions:f??!1})},P=l.memo(C);export{P as default};