streamlit-nightly 1.46.2.dev20250710__py3-none-any.whl → 1.46.2.dev20250711__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 (80) hide show
  1. streamlit/elements/layouts.py +38 -17
  2. streamlit/elements/widgets/chat.py +1 -5
  3. streamlit/proto/Block_pb2.py +33 -31
  4. streamlit/proto/Block_pb2.pyi +3 -1
  5. streamlit/runtime/state/safe_session_state.py +8 -0
  6. streamlit/runtime/state/session_state.py +6 -0
  7. streamlit/static/index.html +1 -1
  8. streamlit/static/manifest.json +214 -214
  9. streamlit/static/static/js/{ErrorOutline.esm.DcxmqjUD.js → ErrorOutline.esm.nBKunzHW.js} +1 -1
  10. streamlit/static/static/js/{FileDownload.esm.jHGWeFoc.js → FileDownload.esm.D_aXSOoU.js} +1 -1
  11. streamlit/static/static/js/{FileHelper.Zrnryqu0.js → FileHelper.BJb-Mp_F.js} +1 -1
  12. streamlit/static/static/js/{FormClearHelper.BYxFNamA.js → FormClearHelper.2JlkoWHt.js} +1 -1
  13. streamlit/static/static/js/{Hooks.Bf489OB5.js → Hooks.B1F_uNU0.js} +1 -1
  14. streamlit/static/static/js/{InputInstructions.BOAAgTvb.js → InputInstructions.ChHwWL4t.js} +1 -1
  15. streamlit/static/static/js/{ProgressBar.CHyAN4g4.js → ProgressBar.DY5EziOM.js} +1 -1
  16. streamlit/static/static/js/{RenderInPortalIfExists.BnEeVRFq.js → RenderInPortalIfExists.BaaagBxu.js} +1 -1
  17. streamlit/static/static/js/{Toolbar.CXl8zpFb.js → Toolbar.B5w8znWm.js} +1 -1
  18. streamlit/static/static/js/{base-input.Df0b6Qry.js → base-input.Dj5Hdt9f.js} +1 -1
  19. streamlit/static/static/js/{checkbox._czeraZi.js → checkbox.CFsoAFuC.js} +1 -1
  20. streamlit/static/static/js/{createSuper.ZqMAxMzx.js → createSuper.D4Dz25Nw.js} +1 -1
  21. streamlit/static/static/js/{data-grid-overlay-editor.Bok03B1i.js → data-grid-overlay-editor.qkFp1znp.js} +1 -1
  22. streamlit/static/static/js/{downloader.C4jTgaKc.js → downloader.z9ZnG7_l.js} +1 -1
  23. streamlit/static/static/js/{es6.Do-e8HO9.js → es6.k96zpXRu.js} +2 -2
  24. streamlit/static/static/js/{iframeResizer.contentWindow.mWYZgJrl.js → iframeResizer.contentWindow.BICf7ZEG.js} +1 -1
  25. streamlit/static/static/js/{index.CjIM7ERG.js → index.9xm7RJwM.js} +1 -1
  26. streamlit/static/static/js/{index.BnBtCCi7.js → index.AEOnkk1b.js} +1 -1
  27. streamlit/static/static/js/{index.DcO57awd.js → index.ANyBXmx0.js} +1 -1
  28. streamlit/static/static/js/{index.BVdmv4f9.js → index.B9UNSCvC.js} +1 -1
  29. streamlit/static/static/js/{index.DTxuG-7x.js → index.BOh9qyV-.js} +1 -1
  30. streamlit/static/static/js/{index.rOGHN7Ug.js → index.BPFkLBAZ.js} +1 -1
  31. streamlit/static/static/js/{index.-qN84VXE.js → index.BX2G46un.js} +1 -1
  32. streamlit/static/static/js/{index.BIEGVO6Q.js → index.B_scCzPb.js} +5 -5
  33. streamlit/static/static/js/{index.DmjIEMLZ.js → index.BrBcucX6.js} +1 -1
  34. streamlit/static/static/js/{index.MiKM7bk8.js → index.BtEjeuF0.js} +1 -1
  35. streamlit/static/static/js/{index.dGEV5Rcv.js → index.C-TmYhWS.js} +1 -1
  36. streamlit/static/static/js/{index.kBQMwU6d.js → index.C5g-H5NK.js} +1 -1
  37. streamlit/static/static/js/{index.BzF3lrfB.js → index.C6dAEAvM.js} +1 -1
  38. streamlit/static/static/js/{index.GgXBejJs.js → index.CLetLomk.js} +1 -1
  39. streamlit/static/static/js/{index.DmGoE186.js → index.CNFjY9vd.js} +1 -1
  40. streamlit/static/static/js/{index.B1l9OvXj.js → index.CVlABXnR.js} +1 -1
  41. streamlit/static/static/js/{index.CF7mP-ZJ.js → index.CVwfPgJb.js} +1 -1
  42. streamlit/static/static/js/{index.DFXciakO.js → index.Ca0NjIq6.js} +1 -1
  43. streamlit/static/static/js/{index.rvtw60Rz.js → index.CiIyRUPP.js} +1 -1
  44. streamlit/static/static/js/{index.BPbIttLy.js → index.Co3yifkX.js} +1 -1
  45. streamlit/static/static/js/{index.CqLB334S.js → index.CoFIYjLT.js} +1 -1
  46. streamlit/static/static/js/{index.Ca2H30nP.js → index.Cu2aS7PE.js} +1 -1
  47. streamlit/static/static/js/{index.fAtLaEj3.js → index.Cw5wCOZJ.js} +1 -1
  48. streamlit/static/static/js/{index.Bys870gz.js → index.DAwvRh5i.js} +1 -1
  49. streamlit/static/static/js/{index.CoYJofEx.js → index.DIUWCb0U.js} +1 -1
  50. streamlit/static/static/js/{index.35y_AzR4.js → index.DM5MUilm.js} +1 -1
  51. streamlit/static/static/js/{index.DHdGt5Y8.js → index.DSLNMk6r.js} +1 -1
  52. streamlit/static/static/js/{index.eyf91ITY.js → index.DemRLecV.js} +1 -1
  53. streamlit/static/static/js/{index.DLiM-whD.js → index.DgDUf7u7.js} +1 -1
  54. streamlit/static/static/js/{index.mvbBbK3q.js → index.Dguvirr2.js} +1 -1
  55. streamlit/static/static/js/{index.Ci7nbB2g.js → index.Djt_wOzM.js} +1 -1
  56. streamlit/static/static/js/{index.D_0R5OBc.js → index.DomTjdOI.js} +110 -136
  57. streamlit/static/static/js/{index.DGHrEEt1.js → index.GafbWues.js} +1 -1
  58. streamlit/static/static/js/{index.BF_sb0WL.js → index.I8jbtihw.js} +1 -1
  59. streamlit/static/static/js/{index.C3rroFP9.js → index.QPRFBZaK.js} +1 -1
  60. streamlit/static/static/js/{index.DsGIFS7a.js → index.fKQteDc9.js} +1 -1
  61. streamlit/static/static/js/{index.QaE_KRXJ.js → index.xyuBiBdK.js} +1 -1
  62. streamlit/static/static/js/{input.CbSNLKWI.js → input.CdCd7Vsx.js} +1 -1
  63. streamlit/static/static/js/{memory.jXCvhbgc.js → memory.DBq7wzyd.js} +1 -1
  64. streamlit/static/static/js/{mergeWith.DrPpfkW2.js → mergeWith.DUn_nLa3.js} +1 -1
  65. streamlit/static/static/js/{number-overlay-editor.DcUxabQJ.js → number-overlay-editor.efE_o5de.js} +1 -1
  66. streamlit/static/static/js/{possibleConstructorReturn.CzPR4xGM.js → possibleConstructorReturn.DvoUmvy8.js} +1 -1
  67. streamlit/static/static/js/{sandbox.Bd0m3BOh.js → sandbox.DzwlbTah.js} +1 -1
  68. streamlit/static/static/js/{timepicker.CpLBXuBk.js → timepicker.DVmIwrqO.js} +1 -1
  69. streamlit/static/static/js/{toConsumableArray.D_piEkI9.js → toConsumableArray.CXsrrX5k.js} +1 -1
  70. streamlit/static/static/js/{uniqueId.wDqRFq8o.js → uniqueId.BLI04V-q.js} +1 -1
  71. streamlit/static/static/js/{useBasicWidgetState.rpbnEZqG.js → useBasicWidgetState.DN8AXUhc.js} +1 -1
  72. streamlit/static/static/js/{useOnInputChange.DLCh37tX.js → useOnInputChange.BkCJpFf6.js} +1 -1
  73. streamlit/static/static/js/{useTextInputAutoExpand.Ba7vlWvW.js → useTextInputAutoExpand.D2t63Ou1.js} +1 -1
  74. streamlit/static/static/js/{withFullScreenWrapper.Cqo3BmOl.js → withFullScreenWrapper.B-UO29lk.js} +1 -1
  75. {streamlit_nightly-1.46.2.dev20250710.dist-info → streamlit_nightly-1.46.2.dev20250711.dist-info}/METADATA +1 -1
  76. {streamlit_nightly-1.46.2.dev20250710.dist-info → streamlit_nightly-1.46.2.dev20250711.dist-info}/RECORD +80 -80
  77. {streamlit_nightly-1.46.2.dev20250710.data → streamlit_nightly-1.46.2.dev20250711.data}/scripts/streamlit.cmd +0 -0
  78. {streamlit_nightly-1.46.2.dev20250710.dist-info → streamlit_nightly-1.46.2.dev20250711.dist-info}/WHEEL +0 -0
  79. {streamlit_nightly-1.46.2.dev20250710.dist-info → streamlit_nightly-1.46.2.dev20250711.dist-info}/entry_points.txt +0 -0
  80. {streamlit_nightly-1.46.2.dev20250710.dist-info → streamlit_nightly-1.46.2.dev20250711.dist-info}/top_level.txt +0 -0
@@ -1 +1 @@
1
- import{s as a,r as t,O as i,j as d,b0 as c,b1 as e,M as l}from"./index.D_0R5OBc.js";const g=a("iframe",{target:"e3tg43n0"})(({theme:o,disableScrolling:r})=>({width:"100%",colorScheme:"normal",border:"none",padding:o.spacing.none,margin:o.spacing.none,overflow:r?"hidden":void 0}));function s(o){return l(o)||o===""?void 0:o}function I({element:o}){const r=s(o.src),n=i(r)?void 0:s(o.srcdoc);return d(g,{className:"stIFrame","data-testid":"stIFrame",allow:e,disableScrolling:!o.scrolling,src:r,srcDoc:n,height:o.height,scrolling:o.scrolling?"auto":"no",sandbox:c,title:"st.iframe",tabIndex:o.tabIndex??void 0})}const m=t.memo(I);export{m as default};
1
+ import{s as a,r as t,O as i,j as d,b0 as c,b1 as e,M as l}from"./index.DomTjdOI.js";const g=a("iframe",{target:"e3tg43n0"})(({theme:o,disableScrolling:r})=>({width:"100%",colorScheme:"normal",border:"none",padding:o.spacing.none,margin:o.spacing.none,overflow:r?"hidden":void 0}));function s(o){return l(o)||o===""?void 0:o}function I({element:o}){const r=s(o.src),n=i(r)?void 0:s(o.srcdoc);return d(g,{className:"stIFrame","data-testid":"stIFrame",allow:e,disableScrolling:!o.scrolling,src:r,srcDoc:n,height:o.height,scrolling:o.scrolling?"auto":"no",sandbox:c,title:"st.iframe",tabIndex:o.tabIndex??void 0})}const m=t.memo(I);export{m as default};
@@ -1 +1 @@
1
- import{s as w,br as T,ct as O,r as s,aP as _,z as q,cu as H,C as G,j as u,bH as K,bs as $,b9 as N,bt as J}from"./index.D_0R5OBc.js";import{u as M}from"./uniqueId.wDqRFq8o.js";import{u as Q,a as X,b as Y}from"./useOnInputChange.DLCh37tX.js";import{I as Z}from"./InputInstructions.BOAAgTvb.js";import{a as tt}from"./useBasicWidgetState.rpbnEZqG.js";import{u as et,T as it}from"./useTextInputAutoExpand.Ba7vlWvW.js";import"./inputUtils.CptNuJwn.js";import"./FormClearHelper.BYxFNamA.js";import"./base-input.Df0b6Qry.js";const at=w("div",{target:"e1r0q00f0"})({height:"100%",display:"flex",flexDirection:"column"}),st=(e,t)=>{let a="auto";if(e.heightConfig?.useStretch)a="100%";else if(e.heightConfig?.pixelHeight&&e.heightConfig.pixelHeight>0){const o=T(t.labelVisibility?.value)===O.Collapsed?2:30;a=`${e.heightConfig.pixelHeight-o}px`}return a},S=(e,t)=>e.getStringValue(t)??t.default??null,ot=e=>e.default??null,rt=e=>e.value??null,lt=(e,t,a,o)=>{t.setStringValue(e,a.value,{fromUi:a.fromUi},o)},nt=({disabled:e,element:t,widgetMgr:a,fragmentId:o,outerElement:d})=>{const m=s.useRef(M("text_area_")).current,[W,y]=_(),[r,c]=s.useState(!1),[I,b]=s.useState(!1),l=d.heightConfig?.useContent??!1,V=d.heightConfig?.useStretch??!1,v=st(d,t),x=s.useRef(null),[n,h]=s.useState(()=>S(a,t)??null),A=s.useCallback(()=>{h(t.default??null),c(!0)},[t]),[F,g]=tt({getStateFromWidgetMgr:S,getDefaultStateFromProto:ot,getCurrStateFromProto:rt,updateWidgetMgrState:lt,element:t,widgetMgr:a,fragmentId:o,onFormCleared:A});Q(F,n,h,r);const i=q(),{height:R,maxHeight:z,updateScrollHeight:C}=et({textareaRef:x,dependencies:[t.placeholder]}),p=s.useCallback(()=>{c(!1),g({value:n,fromUi:!0})},[n,g]),P=s.useCallback(()=>{r&&p(),b(!1)},[r,p]),k=s.useCallback(()=>{b(!0)},[]),E=s.useCallback(()=>{l&&C()},[l,C]),L=X({formId:t.formId,maxChars:t.maxChars,setDirty:c,setUiValue:h,setValueWithSource:g,additionalAction:E}),U=Y(t.formId,p,r,a,o,!0),{placeholder:D,formId:f}=t,B=H({formId:f})?a.allowFormEnterToSubmit(f):r,j=I&&W>i.breakpoints.hideWidgetDetails;return G(at,{className:"stTextArea","data-testid":"stTextArea",ref:y,children:[u(J,{label:t.label,disabled:e,labelVisibility:T(t.labelVisibility?.value),htmlFor:m,children:t.help&&u(K,{children:u($,{content:t.help,placement:N.TOP_RIGHT})})}),u(it,{inputRef:l?x:void 0,value:n??"",placeholder:D,onBlur:P,onFocus:k,onChange:L,onKeyDown:U,"aria-label":t.label,disabled:e,id:m,overrides:{Input:{style:{fontWeight:i.fontWeights.normal,lineHeight:i.lineHeights.inputWidget,height:l?R:v,maxHeight:l?z:"",minHeight:i.sizes.largestElementHeight,resize:V?"none":"vertical",paddingRight:i.spacing.md,paddingLeft:i.spacing.md,paddingBottom:i.spacing.md,paddingTop:i.spacing.md,"::placeholder":{color:i.colors.fadedText60}}},Root:{props:{"data-testid":"stTextAreaRootElement"},style:{borderLeftWidth:i.sizes.borderWidth,borderRightWidth:i.sizes.borderWidth,borderTopWidth:i.sizes.borderWidth,borderBottomWidth:i.sizes.borderWidth,flexGrow:1}}}}),j&&u(Z,{dirty:r,value:n??"",maxLength:t.maxChars,type:"multiline",inForm:H({formId:f}),allowEnterToSubmit:B})]})},xt=s.memo(nt);export{xt as default};
1
+ import{s as w,br as T,ct as O,r as s,aP as _,z as q,cu as H,C as G,j as u,bH as K,bs as $,b9 as N,bt as J}from"./index.DomTjdOI.js";import{u as M}from"./uniqueId.BLI04V-q.js";import{u as Q,a as X,b as Y}from"./useOnInputChange.BkCJpFf6.js";import{I as Z}from"./InputInstructions.ChHwWL4t.js";import{a as tt}from"./useBasicWidgetState.DN8AXUhc.js";import{u as et,T as it}from"./useTextInputAutoExpand.D2t63Ou1.js";import"./inputUtils.CptNuJwn.js";import"./FormClearHelper.2JlkoWHt.js";import"./base-input.Dj5Hdt9f.js";const at=w("div",{target:"e1r0q00f0"})({height:"100%",display:"flex",flexDirection:"column"}),st=(e,t)=>{let a="auto";if(e.heightConfig?.useStretch)a="100%";else if(e.heightConfig?.pixelHeight&&e.heightConfig.pixelHeight>0){const o=T(t.labelVisibility?.value)===O.Collapsed?2:30;a=`${e.heightConfig.pixelHeight-o}px`}return a},S=(e,t)=>e.getStringValue(t)??t.default??null,ot=e=>e.default??null,rt=e=>e.value??null,lt=(e,t,a,o)=>{t.setStringValue(e,a.value,{fromUi:a.fromUi},o)},nt=({disabled:e,element:t,widgetMgr:a,fragmentId:o,outerElement:d})=>{const m=s.useRef(M("text_area_")).current,[W,y]=_(),[r,c]=s.useState(!1),[I,b]=s.useState(!1),l=d.heightConfig?.useContent??!1,V=d.heightConfig?.useStretch??!1,v=st(d,t),x=s.useRef(null),[n,h]=s.useState(()=>S(a,t)??null),A=s.useCallback(()=>{h(t.default??null),c(!0)},[t]),[F,g]=tt({getStateFromWidgetMgr:S,getDefaultStateFromProto:ot,getCurrStateFromProto:rt,updateWidgetMgrState:lt,element:t,widgetMgr:a,fragmentId:o,onFormCleared:A});Q(F,n,h,r);const i=q(),{height:R,maxHeight:z,updateScrollHeight:C}=et({textareaRef:x,dependencies:[t.placeholder]}),p=s.useCallback(()=>{c(!1),g({value:n,fromUi:!0})},[n,g]),P=s.useCallback(()=>{r&&p(),b(!1)},[r,p]),k=s.useCallback(()=>{b(!0)},[]),E=s.useCallback(()=>{l&&C()},[l,C]),L=X({formId:t.formId,maxChars:t.maxChars,setDirty:c,setUiValue:h,setValueWithSource:g,additionalAction:E}),U=Y(t.formId,p,r,a,o,!0),{placeholder:D,formId:f}=t,B=H({formId:f})?a.allowFormEnterToSubmit(f):r,j=I&&W>i.breakpoints.hideWidgetDetails;return G(at,{className:"stTextArea","data-testid":"stTextArea",ref:y,children:[u(J,{label:t.label,disabled:e,labelVisibility:T(t.labelVisibility?.value),htmlFor:m,children:t.help&&u(K,{children:u($,{content:t.help,placement:N.TOP_RIGHT})})}),u(it,{inputRef:l?x:void 0,value:n??"",placeholder:D,onBlur:P,onFocus:k,onChange:L,onKeyDown:U,"aria-label":t.label,disabled:e,id:m,overrides:{Input:{style:{fontWeight:i.fontWeights.normal,lineHeight:i.lineHeights.inputWidget,height:l?R:v,maxHeight:l?z:"",minHeight:i.sizes.largestElementHeight,resize:V?"none":"vertical",paddingRight:i.spacing.md,paddingLeft:i.spacing.md,paddingBottom:i.spacing.md,paddingTop:i.spacing.md,"::placeholder":{color:i.colors.fadedText60}}},Root:{props:{"data-testid":"stTextAreaRootElement"},style:{borderLeftWidth:i.sizes.borderWidth,borderRightWidth:i.sizes.borderWidth,borderTopWidth:i.sizes.borderWidth,borderBottomWidth:i.sizes.borderWidth,flexGrow:1}}}}),j&&u(Z,{dirty:r,value:n??"",maxLength:t.maxChars,type:"multiline",inForm:H({formId:f}),allowEnterToSubmit:B})]})},xt=s.memo(nt);export{xt as default};