streamlit-nightly 1.46.2.dev20250707__py3-none-any.whl → 1.46.2.dev20250709__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.
- streamlit/config.py +37 -0
- streamlit/elements/vega_charts.py +8 -0
- streamlit/elements/widgets/chat.py +35 -5
- streamlit/proto/NewSession_pb2.py +16 -16
- streamlit/proto/NewSession_pb2.pyi +5 -1
- streamlit/runtime/app_session.py +34 -0
- streamlit/runtime/secrets.py +4 -8
- streamlit/runtime/websocket_session_manager.py +8 -0
- streamlit/static/index.html +1 -1
- streamlit/static/manifest.json +214 -214
- streamlit/static/static/js/{ErrorOutline.esm.Cwi9617t.js → ErrorOutline.esm.CQd6KUc-.js} +1 -1
- streamlit/static/static/js/{FileDownload.esm.51ynStRd.js → FileDownload.esm.DViLqD3l.js} +1 -1
- streamlit/static/static/js/{FileHelper.D56tzO8c.js → FileHelper.C4kAiX-d.js} +1 -1
- streamlit/static/static/js/{FormClearHelper.D3Hp66Ed.js → FormClearHelper.3-U9496x.js} +1 -1
- streamlit/static/static/js/{Hooks.BY6BNTRM.js → Hooks.rP-qI29F.js} +1 -1
- streamlit/static/static/js/{InputInstructions.BwiNLSMY.js → InputInstructions.BbLQarVh.js} +1 -1
- streamlit/static/static/js/{ProgressBar.BEUzLotK.js → ProgressBar.XjFCBQue.js} +2 -2
- streamlit/static/static/js/{RenderInPortalIfExists.DM17zpkP.js → RenderInPortalIfExists.BjvT0tcH.js} +1 -1
- streamlit/static/static/js/{Toolbar.CkeeikHg.js → Toolbar.CI7e539m.js} +1 -1
- streamlit/static/static/js/{base-input.yvVgWMq1.js → base-input.BwJuQKxC.js} +4 -4
- streamlit/static/static/js/{checkbox.B0zzRnN3.js → checkbox.YcCb7In-.js} +2 -2
- streamlit/static/static/js/{createSuper.DUNTCGyw.js → createSuper.fMnDQXwy.js} +1 -1
- streamlit/static/static/js/{data-grid-overlay-editor.CkmHJFS4.js → data-grid-overlay-editor.DispNmCy.js} +1 -1
- streamlit/static/static/js/{downloader.SYvlWNHe.js → downloader._vfB-j-e.js} +1 -1
- streamlit/static/static/js/{es6.Dn_Sg6yN.js → es6.DIYMfE-r.js} +2 -2
- streamlit/static/static/js/{iframeResizer.contentWindow.CfNH32kg.js → iframeResizer.contentWindow.CXpyzNXN.js} +1 -1
- streamlit/static/static/js/index.4cT3qV4n.js +1 -0
- streamlit/static/static/js/{index.vvD6DJW9.js → index.5oEU0Akm.js} +2 -2
- streamlit/static/static/js/{index.CQiUN-qB.js → index.B1xRrJhO.js} +2 -2
- streamlit/static/static/js/{index.D6T2dYXA.js → index.BIU1Hwtm.js} +62 -62
- streamlit/static/static/js/{index.nghT_Lxa.js → index.BIsGWvbq.js} +1 -1
- streamlit/static/static/js/index.BJLFstQK.js +1 -0
- streamlit/static/static/js/{index.BWpac6Co.js → index.BNjHNjlf.js} +1 -1
- streamlit/static/static/js/{index.BxbiLBoz.js → index.BQVB466_.js} +1 -1
- streamlit/static/static/js/{index.BUNdJdwv.js → index.BYrFjIUs.js} +1 -1
- streamlit/static/static/js/{index.Jh8NGUS3.js → index.BdEa6sZz.js} +1 -1
- streamlit/static/static/js/{index.BRiZ2gjM.js → index.BgUl4InR.js} +1 -1
- streamlit/static/static/js/{index.DaG51Kxa.js → index.Bo8tNSYW.js} +1 -1
- streamlit/static/static/js/{index.PovmrFJI.js → index.BqJEh5EN.js} +11 -11
- streamlit/static/static/js/{index.HuK1SvDk.js → index.Bqhfg7Oa.js} +1 -1
- streamlit/static/static/js/{index.BruyfZhe.js → index.CQayRGxD.js} +1 -1
- streamlit/static/static/js/{index.B1hWgsYC.js → index.CUirymUQ.js} +1 -1
- streamlit/static/static/js/{index.Ce22m0pL.js → index.Cfv4QyQX.js} +1 -1
- streamlit/static/static/js/index.Chkl1asR.js +1 -0
- streamlit/static/static/js/{index.vgdzRlb1.js → index.ColMLoRT.js} +1 -1
- streamlit/static/static/js/{index.BpDsy6P7.js → index.Cx24fujh.js} +2 -2
- streamlit/static/static/js/{index.D5BdLSQe.js → index.D1VFO1GM.js} +1 -1
- streamlit/static/static/js/{index.GGLK4gvh.js → index.D2-Y5_wx.js} +173 -173
- streamlit/static/static/js/{index.q3-Tm2pt.js → index.D4qwHqKM.js} +1 -1
- streamlit/static/static/js/index.D8bLiwaV.js +1 -0
- streamlit/static/static/js/{index.D_4zzgnM.js → index.D958aGV_.js} +5 -5
- streamlit/static/static/js/{index.D4Y-sPIG.js → index.D9GxqhKH.js} +1 -1
- streamlit/static/static/js/{index.B8GCXUc4.js → index.DG9Ir4m4.js} +1 -1
- streamlit/static/static/js/{index.kOzLZcEm.js → index.DQXpaPor.js} +1 -1
- streamlit/static/static/js/{index.C1ab5uBd.js → index.DfriPCJP.js} +1 -1
- streamlit/static/static/js/{index.D0OXHmxl.js → index.Dga_qPJ0.js} +1 -1
- streamlit/static/static/js/{index.BcKUsmmW.js → index.Dgd7wAuk.js} +3 -3
- streamlit/static/static/js/{index.iaPLfTT0.js → index.Dy7h795S.js} +1 -1
- streamlit/static/static/js/{index.FkXunjOd.js → index.E56AjTPB.js} +2 -2
- streamlit/static/static/js/{index.BfBckj-h.js → index.Jr-tvRTy.js} +1 -1
- streamlit/static/static/js/{index.BzFIXYgy.js → index.LbtilNNP.js} +17 -17
- streamlit/static/static/js/{index.BntKz97_.js → index.atasR7_f.js} +1 -1
- streamlit/static/static/js/{index.Dw7bwHQ9.js → index.c5gLd5mL.js} +1 -1
- streamlit/static/static/js/{input.BPpQxxzu.js → input.Dudaq2DP.js} +2 -2
- streamlit/static/static/js/{memory.CR9Ajd2U.js → memory.DIuUp1Sn.js} +1 -1
- streamlit/static/static/js/{mergeWith.DjeH399x.js → mergeWith.D9D0WgL_.js} +1 -1
- streamlit/static/static/js/{number-overlay-editor.D8gzaWdQ.js → number-overlay-editor.DUBtvgiU.js} +1 -1
- streamlit/static/static/js/{possibleConstructorReturn.ChodIDx3.js → possibleConstructorReturn.ql9j_wzC.js} +1 -1
- streamlit/static/static/js/{sandbox.Deilbzun.js → sandbox.D_vlGgEg.js} +1 -1
- streamlit/static/static/js/{timepicker.CQyXj151.js → timepicker.DtFPFwb0.js} +1 -1
- streamlit/static/static/js/{toConsumableArray.Ddyzgz2E.js → toConsumableArray.DMsseOni.js} +1 -1
- streamlit/static/static/js/{uniqueId.Cr5-pyqr.js → uniqueId.BkUMU8CT.js} +1 -1
- streamlit/static/static/js/{useBasicWidgetState.DX8Dvi5d.js → useBasicWidgetState.Cp78gjjh.js} +1 -1
- streamlit/static/static/js/useOnInputChange.CHkjh73V.js +1 -0
- streamlit/static/static/js/{useTextInputAutoExpand.BPsrdzpb.js → useTextInputAutoExpand.CE_GiZ0L.js} +2 -2
- streamlit/static/static/js/{withFullScreenWrapper.DpxbNIyf.js → withFullScreenWrapper.CplO1PK6.js} +1 -1
- streamlit/watcher/event_based_path_watcher.py +3 -2
- streamlit/watcher/polling_path_watcher.py +2 -1
- {streamlit_nightly-1.46.2.dev20250707.dist-info → streamlit_nightly-1.46.2.dev20250709.dist-info}/METADATA +1 -1
- {streamlit_nightly-1.46.2.dev20250707.dist-info → streamlit_nightly-1.46.2.dev20250709.dist-info}/RECORD +84 -84
- streamlit/static/static/js/index.B6IBhXXL.js +0 -1
- streamlit/static/static/js/index.CJJTafCM.js +0 -1
- streamlit/static/static/js/index.CP_ebS8J.js +0 -1
- streamlit/static/static/js/index.i0djEkgf.js +0 -1
- streamlit/static/static/js/useOnInputChange.CGiEpYpi.js +0 -1
- {streamlit_nightly-1.46.2.dev20250707.data → streamlit_nightly-1.46.2.dev20250709.data}/scripts/streamlit.cmd +0 -0
- {streamlit_nightly-1.46.2.dev20250707.dist-info → streamlit_nightly-1.46.2.dev20250709.dist-info}/WHEEL +0 -0
- {streamlit_nightly-1.46.2.dev20250707.dist-info → streamlit_nightly-1.46.2.dev20250709.dist-info}/entry_points.txt +0 -0
- {streamlit_nightly-1.46.2.dev20250707.dist-info → streamlit_nightly-1.46.2.dev20250709.dist-info}/top_level.txt +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
import{r as p,cu as a}from"./index.BIU1Hwtm.js";import{i as b}from"./inputUtils.CptNuJwn.js";function i(r,s,u,e){p.useEffect(()=>{e||r!==s&&u(r)},[r,s,e,u])}function F(r,s,u,e,f,n=!1){return p.useCallback(t=>{const o=n?t.metaKey||t.ctrlKey:!0;!b(t)||!o||(t.preventDefault(),u&&s(),e.allowFormEnterToSubmit(r)&&e.submitForm(r,f))},[r,f,u,s,e,n])}function K({formId:r,maxChars:s,setDirty:u,setUiValue:e,setValueWithSource:f,additionalAction:n}){return p.useCallback(t=>{const{value:o}=t.target;s!==0&&o.length>s||(u(!0),e(o),a({formId:r})&&f({value:o,fromUi:!0}),n&&n())},[r,s,u,e,f,n])}export{K as a,F as b,i as u};
|
streamlit/static/static/js/{useTextInputAutoExpand.BPsrdzpb.js → useTextInputAutoExpand.CE_GiZ0L.js}
RENAMED
@@ -1,2 +1,2 @@
|
|
1
|
-
import{
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function M(e,t){if(e){if(typeof e=="string")return P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return P(e,t)}}function P(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function U(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],o=!0,i=!1,a,u;try{for(r=r.call(e);!(o=(a=r.next()).done)&&(n.push(a.value),!(t&&n.length===t));o=!0);}catch(c){i=!0,u=c}finally{try{!o&&r.return!=null&&r.return()}finally{if(i)throw u}}return n}}function L(e){if(Array.isArray(e))return e}function q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function
|
1
|
+
import{bv as v,bw as j,bZ as H,r as s,cl as $,cm as A,z as F}from"./index.BIU1Hwtm.js";import{g as N,a as z,b as B,B as R}from"./base-input.BwJuQKxC.js";function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?w(Object(r),!0).forEach(function(n){C(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function C(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var O=v("div",function(e){return l(l({},N(l(l({$positive:!1},e),{},{$hasIconTrailing:!1}))),{},{width:e.$resize?"fit-content":"100%"})});O.displayName="StyledTextAreaRoot";O.displayName="StyledTextAreaRoot";var _=v("div",function(e){return z(l({$positive:!1},e))});_.displayName="StyledTextareaContainer";_.displayName="StyledTextareaContainer";var S=v("textarea",function(e){return l(l({},B(e)),{},{resize:e.$resize||"none"})});S.displayName="StyledTextarea";S.displayName="StyledTextarea";function g(e){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(e)}function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},y.apply(this,arguments)}function D(e,t){return L(e)||U(e,t)||M(e,t)||K()}function K(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function M(e,t){if(e){if(typeof e=="string")return P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return P(e,t)}}function P(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function U(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],o=!0,i=!1,a,u;try{for(r=r.call(e);!(o=(a=r.next()).done)&&(n.push(a.value),!(t&&n.length===t));o=!0);}catch(c){i=!0,u=c}finally{try{!o&&r.return!=null&&r.return()}finally{if(i)throw u}}return n}}function L(e){if(Array.isArray(e))return e}function q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Z(e,t,r){return t&&V(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function G(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},m(e,t)}function W(e){var t=Y();return function(){var n=d(e),o;if(t){var i=d(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return X(this,o)}}function X(e,t){if(t&&(g(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return f(e)}function f(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},d(e)}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var J=function(e){G(r,e);var t=W(r);function r(){var n;q(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),p(f(n),"state",{isFocused:n.props.autoFocus||!1}),p(f(n),"onFocus",function(u){n.setState({isFocused:!0}),n.props.onFocus(u)}),p(f(n),"onBlur",function(u){n.setState({isFocused:!1}),n.props.onBlur(u)}),n}return Z(r,[{key:"render",value:function(){var o=this.props.overrides,i=o===void 0?{}:o,a=j(i.Root,O),u=D(a,2),c=u[0],h=u[1],b=H({Input:{component:S},InputContainer:{component:_}},i);return s.createElement(c,y({"data-baseweb":"textarea",$isFocused:this.state.isFocused,$isReadOnly:this.props.readOnly,$disabled:this.props.disabled,$error:this.props.error,$positive:this.props.positive,$required:this.props.required,$resize:this.props.resize},h),s.createElement(R,y({},this.props,{type:A.textarea,overrides:b,onFocus:this.onFocus,onBlur:this.onBlur,resize:this.props.resize})))}}]),r}(s.Component);p(J,"defaultProps",{autoFocus:!1,disabled:!1,readOnly:!1,error:!1,name:"",onBlur:function(){},onChange:function(){},onKeyDown:function(){},onKeyPress:function(){},onKeyUp:function(){},onFocus:function(){},overrides:{},placeholder:"",required:!1,rows:3,size:$.default});const Q=6.5,T=1,k=e=>{let t=0;const{current:r}=e;return r&&(r.style.height="auto",t=r.scrollHeight,r.style.height=""),t},ee=(e,t,r)=>e>0&&r.current?Math.abs(e-t)>T:!1,te=(e,t)=>{if(e.current&&t.current){const{offsetHeight:r}=e.current;t.current.minHeight=r,t.current.maxHeight=r*Q}},re=(e,t,r)=>e?`${t+T}px`:r?String(r):"",ne=e=>e?`${e}px`:"",ae=({textareaRef:e,dependencies:t=[]})=>{const r=F(),n=s.useRef({minHeight:0,maxHeight:0}),[o,i]=s.useState(0),[a,u]=s.useState(!1),c=s.useCallback(()=>{i(k(e))},[e,i]);s.useLayoutEffect(()=>{e.current&&te(e,n)},[e]),s.useLayoutEffect(()=>{const{minHeight:I}=n.current;u(ee(o,I,e))},[o,e]),s.useLayoutEffect(()=>{c()},[e,c,...t]);const{maxHeight:h}=n.current,b=r.sizes.minElementHeight,x=re(a,o,b),E=ne(h);return{isExtended:a,height:x,maxHeight:E,updateScrollHeight:c}};export{J as T,ae as u};
|
streamlit/static/static/js/{withFullScreenWrapper.DpxbNIyf.js → withFullScreenWrapper.CplO1PK6.js}
RENAMED
@@ -1 +1 @@
|
|
1
|
-
import{s as p,r as n,aI as h,
|
1
|
+
import{s as p,r as n,aI as h,bg as x,z as y,aP as C,j as i,bh as b}from"./index.BIU1Hwtm.js";const g=p("div",{target:"e1q5ojhd0"})(({theme:e,isExpanded:t})=>({width:"100%",...t?{position:"fixed",top:0,left:0,bottom:0,right:0,background:e.colors.bgColor,zIndex:e.zIndices.fullscreenWrapper,padding:e.spacing.md,paddingTop:e.sizes.fullScreenHeaderHeight,overflow:"auto",display:"flex",alignItems:"center",justifyContent:"center"}:{}})),f=n.createContext(null);f.displayName="ElementFullscreenContext";const w=()=>{const{setFullScreen:e}=n.useContext(h),[t,c]=n.useState(!1),{fullHeight:s,fullWidth:u}=x(),l=n.useCallback(a=>{c(a),e(a)},[e]),d=n.useCallback(()=>{document.body.style.overflow="hidden",l(!0)},[l]),o=n.useCallback(()=>{document.body.style.overflow="unset",l(!1)},[l]),r=n.useCallback(a=>{a.keyCode===27&&t&&o()},[o,t]);return n.useEffect(()=>(document.addEventListener("keydown",r,!1),()=>{document.removeEventListener("keydown",r,!1)}),[r]),n.useMemo(()=>({expanded:t,zoomIn:d,zoomOut:o,fullHeight:s,fullWidth:u}),[t,d,o,s,u])},F=({children:e,height:t})=>{const c=y(),{expanded:s,fullHeight:u,fullWidth:l,zoomIn:d,zoomOut:o}=w(),[r,a]=C(),m=n.useMemo(()=>({width:s?l:r,height:s?u:t,expanded:s,expand:d,collapse:o}),[s,u,l,t,r,d,o]);return i(f.Provider,{value:m,children:i(g,{ref:a,isExpanded:s,"data-testid":"stFullScreenFrame",theme:c,children:e})})};function S(e){const t=c=>i(F,{children:i(e,{...c})});return t.displayName=`withFullScreenWrapper(${e.displayName||e.name})`,b(t,e)}export{f as E,S as w};
|
@@ -46,6 +46,7 @@ from typing_extensions import Self
|
|
46
46
|
from watchdog import events
|
47
47
|
from watchdog.observers import Observer
|
48
48
|
|
49
|
+
from streamlit.errors import StreamlitMaxRetriesError
|
49
50
|
from streamlit.logger import get_logger
|
50
51
|
from streamlit.util import repr_
|
51
52
|
from streamlit.watcher import util
|
@@ -315,7 +316,7 @@ class _FolderEventHandler(events.FileSystemEventHandler):
|
|
315
316
|
allow_nonexistent=allow_nonexistent,
|
316
317
|
)
|
317
318
|
self._watched_paths[path] = watched_path
|
318
|
-
except
|
319
|
+
except StreamlitMaxRetriesError as ex:
|
319
320
|
_LOGGER.debug(
|
320
321
|
"Failed to calculate MD5 for path %s",
|
321
322
|
path,
|
@@ -439,7 +440,7 @@ class _FolderEventHandler(events.FileSystemEventHandler):
|
|
439
440
|
_LOGGER.debug("File/dir MD5 changed: %s", abs_changed_path)
|
440
441
|
changed_path_info.md5 = new_md5
|
441
442
|
changed_path_info.on_changed.send(abs_changed_path)
|
442
|
-
except
|
443
|
+
except StreamlitMaxRetriesError as ex:
|
443
444
|
_LOGGER.debug(
|
444
445
|
"Ignoring file change. Failed to calculate MD5 for path %s",
|
445
446
|
abs_changed_path,
|
@@ -21,6 +21,7 @@ from concurrent.futures import ThreadPoolExecutor
|
|
21
21
|
from pathlib import Path
|
22
22
|
from typing import Callable, Final
|
23
23
|
|
24
|
+
from streamlit.errors import StreamlitMaxRetriesError
|
24
25
|
from streamlit.logger import get_logger
|
25
26
|
from streamlit.util import repr_
|
26
27
|
from streamlit.watcher import util
|
@@ -116,7 +117,7 @@ class PollingPathWatcher:
|
|
116
117
|
if md5 == self._md5:
|
117
118
|
self._schedule()
|
118
119
|
return
|
119
|
-
except
|
120
|
+
except StreamlitMaxRetriesError as ex:
|
120
121
|
_LOGGER.debug(
|
121
122
|
"Ignoring file change. Failed to calculate MD5 for path %s",
|
122
123
|
self._path,
|
@@ -3,7 +3,7 @@ streamlit/__main__.py,sha256=G3Ka6wgeICpC1gI872L7jGQhY4ukAFo3lgnYIqtoBIo,868
|
|
3
3
|
streamlit/auth_util.py,sha256=C3kylKgnVgAveIcnfKo_yQ842zuh8OaqZ2WDWAZkwPc,8594
|
4
4
|
streamlit/cli_util.py,sha256=SHOTfCD27ib4R09nkq9l31hOdPlhoEguX2c0SMuhczs,3430
|
5
5
|
streamlit/column_config.py,sha256=qRgJoO0k-iRWTCNDjnzNjd2krIiCJVSEEDTVRy83RRU,1449
|
6
|
-
streamlit/config.py,sha256=
|
6
|
+
streamlit/config.py,sha256=HMXZa3n6VUgeSHeu60J_1HXC9A7OVlOx57WtFBSEpHQ,59799
|
7
7
|
streamlit/config_option.py,sha256=J9gY4SWlyPkeeMHT0XXNEuhPcP23Fv78EFBwpBXMi9Q,11679
|
8
8
|
streamlit/config_util.py,sha256=yXkELy2CyzBguADHw5zpY3PYmKrvxRaW94y38deuSsg,6251
|
9
9
|
streamlit/cursor.py,sha256=ej36w8lrhmHcuSDe-BKJ40TathM7xz1TGiomv9Ov-7M,6062
|
@@ -86,7 +86,7 @@ streamlit/elements/snow.py,sha256=iP2HHz9Oljf-3s76flzK7C_bU1QdNkOCpYym-LSdQjw,14
|
|
86
86
|
streamlit/elements/spinner.py,sha256=sNsqoROhqXbvlvaRJC7eqm15Rcd3kn1wyKefQSFS7Dw,4892
|
87
87
|
streamlit/elements/text.py,sha256=LXYBQZ-IWw-X8h6Jmx3qHjTGe7aXuFTDcTUvBK16DrY,3405
|
88
88
|
streamlit/elements/toast.py,sha256=aHpWN-YwRmaYKSA8DKkYJebo2jWzSlYaIUOpKnnDgQE,3694
|
89
|
-
streamlit/elements/vega_charts.py,sha256=
|
89
|
+
streamlit/elements/vega_charts.py,sha256=dJ1R1PbvqOsgiS1xBAprCP0iPfS_76cYuOnoUJpP-FA,80430
|
90
90
|
streamlit/elements/write.py,sha256=yACATf8JN1SJ8sxWIII-H2B-IDQs2qrHPWoRA9bqIKk,22394
|
91
91
|
streamlit/elements/lib/__init__.py,sha256=M4sIyiinWL04bSC-QUcfYDB8Gr-h0uXGjTmL6o2v8jc,616
|
92
92
|
streamlit/elements/lib/built_in_chart_utils.py,sha256=pGE51J1FbYBpkffsL4_-llfJt3PKVzsbSiXf3MfL1ro,39398
|
@@ -112,7 +112,7 @@ streamlit/elements/widgets/audio_input.py,sha256=pO1pdseP-8UmErfzChYqBIuVgZo7614
|
|
112
112
|
streamlit/elements/widgets/button.py,sha256=GN3B1zJ6VGQ5gRc95sz7H5Ta-liMnjJ2ND6Wtn0gX4g,43201
|
113
113
|
streamlit/elements/widgets/button_group.py,sha256=yISunqZuRTsR7PCvaGB13FG4WFXhWj9hGJWpQNylKno,40148
|
114
114
|
streamlit/elements/widgets/camera_input.py,sha256=BbLmdgzsueKvajEyiNxuB1DhSZeYMhmHiYsrjFCcegY,10227
|
115
|
-
streamlit/elements/widgets/chat.py,sha256=
|
115
|
+
streamlit/elements/widgets/chat.py,sha256=BhYuTrrkbV5DbkDq-271ORL98dxwTe_wlRYu7gIUGcU,27119
|
116
116
|
streamlit/elements/widgets/checkbox.py,sha256=KBz2QI7lSBSqy8TLpV_NQVc88VmAO6-NuwaZmF8U_c8,13971
|
117
117
|
streamlit/elements/widgets/color_picker.py,sha256=BefKQbF8XzmJm8kUzFLOUhTSoisqZ3f8E45xKkt82d4,9731
|
118
118
|
streamlit/elements/widgets/data_editor.py,sha256=vjKoRZopg0AjX7vmZK2PUczTpHMXOV64-4Z_GVRZ36o,38162
|
@@ -244,8 +244,8 @@ streamlit/proto/NamedDataSet_pb2.py,sha256=cWRrGJRex35yZSApkPUWtfX31CHh2puULXQuR
|
|
244
244
|
streamlit/proto/NamedDataSet_pb2.pyi,sha256=X4Lisad_KlxObyuAZSIOsLfnkA5rQODGKtpPf7du_2s,2013
|
245
245
|
streamlit/proto/Navigation_pb2.py,sha256=GJXtZwkMQEzXRckm5-S_J6-66VlPEZxzulnBAtY_-GA,1752
|
246
246
|
streamlit/proto/Navigation_pb2.pyi,sha256=BEtYMRGniK0CenGZOs_7Rv1rHB0RdjvfW5ATWv3FDX8,3519
|
247
|
-
streamlit/proto/NewSession_pb2.py,sha256=
|
248
|
-
streamlit/proto/NewSession_pb2.pyi,sha256=
|
247
|
+
streamlit/proto/NewSession_pb2.py,sha256=2h2-0LQVsOD5rskma6HZ0ilnmU7VSV-F0HtFl_eX88I,7646
|
248
|
+
streamlit/proto/NewSession_pb2.pyi,sha256=8GlI4nHGO_DyS9z1JwunScVA9MeVsEUyOoldbnFrCIw,29393
|
249
249
|
streamlit/proto/NumberInput_pb2.py,sha256=C-A4tvfVkkpV140QyyOaDFc21aJ91HYJVJR5eFI3FQk,2519
|
250
250
|
streamlit/proto/NumberInput_pb2.pyi,sha256=DL29tmWEyD5eGmngfyd5Ecw8G7-qJiE7tpFpx1QPx8k,5227
|
251
251
|
streamlit/proto/PageConfig_pb2.py,sha256=WIyNMZAj034JUg0emlhOX_QtVDfM5jyrg0-BEnKfZPc,2407
|
@@ -306,7 +306,7 @@ streamlit/proto/__init__.py,sha256=WJu86eq4nAb-pIORVP6xRkKHJwAJQcekPW2dRflPl-c,6
|
|
306
306
|
streamlit/proto/openmetrics_data_model_pb2.py,sha256=dWlhXENjgvIGCMnAumDVQkLA4TQQzP77G5pncI6oP9I,6424
|
307
307
|
streamlit/proto/openmetrics_data_model_pb2.pyi,sha256=dmABrepaNR5S9kA1UPfQGXqY_ARAUuLmQBqG1Xn_HUY,20319
|
308
308
|
streamlit/runtime/__init__.py,sha256=DmWO_2apg01B7DZ2toddxjdVXnAjtn28819TpJlgkbQ,1523
|
309
|
-
streamlit/runtime/app_session.py,sha256=
|
309
|
+
streamlit/runtime/app_session.py,sha256=tot9PKzpu6adbtt0fk8Px_Qij5sXJo2uxLYh95_u5UA,47283
|
310
310
|
streamlit/runtime/connection_factory.py,sha256=VGLPo8dlfa5fJT74XXfl4G0GFz3qjZ9uxTVH_mB-gwo,15670
|
311
311
|
streamlit/runtime/context.py,sha256=avvWUDl7i20kgWJJBwyulZZFk1u4Hc1lVoe2Z7oUGwQ,14976
|
312
312
|
streamlit/runtime/context_util.py,sha256=14e8xt_0eevyd41CD6y3UVcX4kQk0BFIU5SvBsHrFD8,1702
|
@@ -324,11 +324,11 @@ streamlit/runtime/pages_manager.py,sha256=UTSPl7sybLOHKVPwnO6kEUTJvTG8L3kE0Lu6h6
|
|
324
324
|
streamlit/runtime/runtime.py,sha256=0XND3vSk2gzJ4zAdAK1H_NwXoYwLBKIi4vUKMLd2UEA,27371
|
325
325
|
streamlit/runtime/runtime_util.py,sha256=igvz2j_yFRY6vDx35CZoG0vIv6q7o5Ebc1Pu_zgV3Vc,3997
|
326
326
|
streamlit/runtime/script_data.py,sha256=Suw_A7tgbc-Yu0rffPSvkrY_CHutAx5s-sfldn04URA,1749
|
327
|
-
streamlit/runtime/secrets.py,sha256=
|
327
|
+
streamlit/runtime/secrets.py,sha256=_VV3CeT5RWx9L8ylm6vd5OzM70vBjuLMxORGODZPKQk,20076
|
328
328
|
streamlit/runtime/session_manager.py,sha256=YPQklhNmXnXYJyJqzVWIo5kwCW6mkCx7dqCo83daWi0,13240
|
329
329
|
streamlit/runtime/stats.py,sha256=Sbxb8cnYy3PIxTdMFwN4_4GiOmtkcEQLVLgJnXqKT1M,3839
|
330
330
|
streamlit/runtime/uploaded_file_manager.py,sha256=aB6fVKeMz_UYEAKRuQIBBcTAc60wnCUjCcOyM5AOiJs,4935
|
331
|
-
streamlit/runtime/websocket_session_manager.py,sha256=
|
331
|
+
streamlit/runtime/websocket_session_manager.py,sha256=1JwlznPL6GhekHafxvIl_37yR5VyoplHl3h6zfgMLFA,6886
|
332
332
|
streamlit/runtime/caching/__init__.py,sha256=sJopYlelFxAL0QOhuG2WZzuC3SdypVA36qaY7EErSA4,3247
|
333
333
|
streamlit/runtime/caching/cache_data_api.py,sha256=OvWboKX9mV6Yc-cYkbBaOS8a94_lRFcEkJnwNGQ6Rys,24585
|
334
334
|
streamlit/runtime/caching/cache_errors.py,sha256=cuAXU2p2csdCWletjixtEFi0cTbSCL1irrMbFutZcAY,4812
|
@@ -362,84 +362,84 @@ streamlit/runtime/state/session_state.py,sha256=87Ffe5As1B8dQG50qSZSTT5bTT0vu4LG
|
|
362
362
|
streamlit/runtime/state/session_state_proxy.py,sha256=Z_Hw4214J1l7SjrnrFnCwul7p32yaKK2wpFtrghKEAQ,5585
|
363
363
|
streamlit/runtime/state/widgets.py,sha256=ofGjJppIwiqFN9DpBtXQakQifNpxZOVYNPCSyvCWo8Y,5319
|
364
364
|
streamlit/static/favicon.png,sha256=if5cVgw7azxKOvV5FpGixga7JLn23rfnHcy1CdWI1-E,1019
|
365
|
-
streamlit/static/index.html,sha256=
|
366
|
-
streamlit/static/manifest.json,sha256=
|
365
|
+
streamlit/static/index.html,sha256=OpJ_k8R2xoliTvQcAwdakGN-7xatNAM_8dESQUyuuuA,1522
|
366
|
+
streamlit/static/manifest.json,sha256=XwRB3133RSNEs0ZNYjQz0vxroUaLXO4adee_swfUEmg,44250
|
367
367
|
streamlit/static/static/css/index.CJVRHjQZ.css,sha256=X_6xy8S-iXhyEIDSnjwLki_Fz6iYAMb-QfuobyoMyLg,29951
|
368
368
|
streamlit/static/static/css/index.CsLB_Bnz.css,sha256=-5ztn18y6fyrtTss59T7nmGLFIFajXPxypSdw72BaDg,12682
|
369
369
|
streamlit/static/static/css/index.DzuxGC_t.css,sha256=1D1iN9VtJEU7H_zye_YV2guXskYkxI7PXbq1YXw5JOw,35092
|
370
|
-
streamlit/static/static/js/ErrorOutline.esm.
|
371
|
-
streamlit/static/static/js/FileDownload.esm.
|
372
|
-
streamlit/static/static/js/FileHelper.
|
373
|
-
streamlit/static/static/js/FormClearHelper.
|
374
|
-
streamlit/static/static/js/Hooks.
|
375
|
-
streamlit/static/static/js/InputInstructions.
|
376
|
-
streamlit/static/static/js/ProgressBar.
|
377
|
-
streamlit/static/static/js/RenderInPortalIfExists.
|
378
|
-
streamlit/static/static/js/Toolbar.
|
370
|
+
streamlit/static/static/js/ErrorOutline.esm.CQd6KUc-.js,sha256=fuW5UhsxZ89ggP5kXOrbYvGgu3iPB4-EGKZW3VQFb8I,499
|
371
|
+
streamlit/static/static/js/FileDownload.esm.DViLqD3l.js,sha256=GM42PBqQ5mYMhb3Y5_Qx2DygBU_w3G3Wfkj68MZRAHI,918
|
372
|
+
streamlit/static/static/js/FileHelper.C4kAiX-d.js,sha256=4HQVSaaZP3vRSl1qvalklWB3zL2XXQdlNxFtXdgy9ew,61593
|
373
|
+
streamlit/static/static/js/FormClearHelper.3-U9496x.js,sha256=UClYFVP8aSjeYJhwRiH71RJzpPx_m0K70jrQ9uTUieQ,613
|
374
|
+
streamlit/static/static/js/Hooks.rP-qI29F.js,sha256=19xNKWmsip_iJcyjmBLWUKN_86gF4J98_LnsUnMlR0I,140
|
375
|
+
streamlit/static/static/js/InputInstructions.BbLQarVh.js,sha256=vw-80dw6wJX6jjAtCprS9cZyDuzGL_9yxqX5PPOe3Hw,899
|
376
|
+
streamlit/static/static/js/ProgressBar.XjFCBQue.js,sha256=buiCDHfC5cCnB9lEa7jlfQitcAdynVQPv-BfqiFcMbI,13316
|
377
|
+
streamlit/static/static/js/RenderInPortalIfExists.BjvT0tcH.js,sha256=8KiVLkv-4zXumtNS1ijCEUrDv2qjFZJZBTIXpjp5E3U,500
|
378
|
+
streamlit/static/static/js/Toolbar.CI7e539m.js,sha256=0bUFTE_N9zqeH3J0NZaA0t6gzkjcub3vlF8qea84IrQ,2887
|
379
379
|
streamlit/static/static/js/UploadFileInfo.C-jY39rj.js,sha256=Z_hcytEoaAX1saJgsfX1UoComwwlMcjCUZ8ldwuQJI8,151
|
380
|
-
streamlit/static/static/js/base-input.
|
381
|
-
streamlit/static/static/js/checkbox.
|
380
|
+
streamlit/static/static/js/base-input.BwJuQKxC.js,sha256=k_4zUJleAZBhR_apdh1BuTHtwEN2L4R2Vzp0czsmtOI,21774
|
381
|
+
streamlit/static/static/js/checkbox.YcCb7In-.js,sha256=1oYp5zmWLJVjPt3bpbtOjBspK5Gu43mt2KuHZpV_prc,11243
|
382
382
|
streamlit/static/static/js/createDownloadLinkElement.DZMwyjvU.js,sha256=uB4db2cbWB2KYpRbQKK6xi-mLBiUQXQtsL5I3N6rMcU,242
|
383
|
-
streamlit/static/static/js/createSuper.
|
384
|
-
streamlit/static/static/js/data-grid-overlay-editor.
|
385
|
-
streamlit/static/static/js/downloader.
|
386
|
-
streamlit/static/static/js/es6.
|
387
|
-
streamlit/static/static/js/iframeResizer.contentWindow.
|
388
|
-
streamlit/static/static/js/index.
|
389
|
-
streamlit/static/static/js/index.
|
390
|
-
streamlit/static/static/js/index.
|
391
|
-
streamlit/static/static/js/index.
|
392
|
-
streamlit/static/static/js/index.
|
393
|
-
streamlit/static/static/js/index.
|
394
|
-
streamlit/static/static/js/index.
|
395
|
-
streamlit/static/static/js/index.
|
396
|
-
streamlit/static/static/js/index.
|
397
|
-
streamlit/static/static/js/index.
|
398
|
-
streamlit/static/static/js/index.
|
399
|
-
streamlit/static/static/js/index.
|
400
|
-
streamlit/static/static/js/index.
|
401
|
-
streamlit/static/static/js/index.
|
402
|
-
streamlit/static/static/js/index.
|
403
|
-
streamlit/static/static/js/index.
|
404
|
-
streamlit/static/static/js/index.
|
405
|
-
streamlit/static/static/js/index.
|
406
|
-
streamlit/static/static/js/index.
|
407
|
-
streamlit/static/static/js/index.
|
408
|
-
streamlit/static/static/js/index.
|
409
|
-
streamlit/static/static/js/index.
|
410
|
-
streamlit/static/static/js/index.
|
411
|
-
streamlit/static/static/js/index.
|
412
|
-
streamlit/static/static/js/index.
|
413
|
-
streamlit/static/static/js/index.
|
414
|
-
streamlit/static/static/js/index.
|
415
|
-
streamlit/static/static/js/index.
|
416
|
-
streamlit/static/static/js/index.
|
417
|
-
streamlit/static/static/js/index.
|
418
|
-
streamlit/static/static/js/index.
|
419
|
-
streamlit/static/static/js/index.
|
420
|
-
streamlit/static/static/js/index.
|
421
|
-
streamlit/static/static/js/index.
|
422
|
-
streamlit/static/static/js/index.
|
423
|
-
streamlit/static/static/js/index.
|
424
|
-
streamlit/static/static/js/index.
|
425
|
-
streamlit/static/static/js/input.
|
383
|
+
streamlit/static/static/js/createSuper.fMnDQXwy.js,sha256=Ctm7DUgmb0jkrCbJw5-3IwmfF0x5DKvKTPs24EWuJB4,394
|
384
|
+
streamlit/static/static/js/data-grid-overlay-editor.DispNmCy.js,sha256=9vPkN1vO8MtMx0pMOCZIKa6A2JKY3SfZ5cIkRArC6-0,4054
|
385
|
+
streamlit/static/static/js/downloader._vfB-j-e.js,sha256=p2bHm1VnsiYe5HbiZdfsn-CGhc6Y80KqRKBVyZlE3Ow,2510
|
386
|
+
streamlit/static/static/js/es6.DIYMfE-r.js,sha256=lH-uFf3BL292pIbrv6abkqLvEUSk6Tz0W8Tlsa9UuFM,14633
|
387
|
+
streamlit/static/static/js/iframeResizer.contentWindow.CXpyzNXN.js,sha256=T6TLsGolWuJp_z0Hmcw5_53cuRQBvpNxzum3xehtwRI,14406
|
388
|
+
streamlit/static/static/js/index.4cT3qV4n.js,sha256=FIWqf02J96jjWMIn5mf2dk4TdYWTNLJiK9NYUA7bseQ,2881
|
389
|
+
streamlit/static/static/js/index.5oEU0Akm.js,sha256=sdA9STi999HHd300RqKc6HM2YfVz4R1VUtbV_YKaqiw,127633
|
390
|
+
streamlit/static/static/js/index.B1xRrJhO.js,sha256=6HjGRNTUKmfvWEqVzAF_O0YA3kmCF-p2g2IJRkcKbhg,19003
|
391
|
+
streamlit/static/static/js/index.BIU1Hwtm.js,sha256=Tfq9XRcZExY6EQG2xhintn7nnFM1ZllK_6uuqaodeSk,6149808
|
392
|
+
streamlit/static/static/js/index.BIsGWvbq.js,sha256=Eg_o2IG4bypHOOyJYMG-zRyybAg8qS2z0boh17nZ5ao,2522
|
393
|
+
streamlit/static/static/js/index.BJLFstQK.js,sha256=f0KoWYMbWylVzlAmSk3_mSnwCDeTxsP01XrSMgYdolI,2808
|
394
|
+
streamlit/static/static/js/index.BNjHNjlf.js,sha256=Z8Cya6s_WAWVDVe6Woy_xjh1pWEVY9r9QQ0v10n_nO0,880
|
395
|
+
streamlit/static/static/js/index.BQVB466_.js,sha256=CplDGDWxjrcc3shFTufFrfEoG_pObseetmxwrbWlEIk,2852
|
396
|
+
streamlit/static/static/js/index.BYrFjIUs.js,sha256=jFj4_EEjC1Tujad9cWzlb-IHOJgbbOmj8gq0AN9ngjI,22623
|
397
|
+
streamlit/static/static/js/index.BdEa6sZz.js,sha256=M8c3cshmUBTRha_uVFoz-eVIzEgOWHnThaZFi7l_D6Y,650
|
398
|
+
streamlit/static/static/js/index.BgUl4InR.js,sha256=maPf3epWn1ISMDAZt9sLJXyojI55h7dkrUVmFgSAAp4,19323
|
399
|
+
streamlit/static/static/js/index.Bo8tNSYW.js,sha256=AjWqWm6gY9mtYPbHNYlNJIMqyoxBPfWLoQ5QCncw5LM,1571
|
400
|
+
streamlit/static/static/js/index.BqJEh5EN.js,sha256=y9etvWFMeazwm5qJ8gsEEWDzy-XbQXvW59v3GVwZXnE,4692090
|
401
|
+
streamlit/static/static/js/index.Bqhfg7Oa.js,sha256=IYUboKg3-Tqsq10moUHYrq7r8OaqbOIzTDyOHZETaMY,1708
|
402
|
+
streamlit/static/static/js/index.CQayRGxD.js,sha256=ILO_17k2-R0IgZAUlkEI-FFpHR7cjcIp4qg7XZfqGok,12647
|
403
|
+
streamlit/static/static/js/index.CUirymUQ.js,sha256=qLrJbRzPW6fBGJR_k9fok4drq78oLHnicGtIXt6M5Ek,50052
|
404
|
+
streamlit/static/static/js/index.Cfv4QyQX.js,sha256=1kEVfsYASlv0PooCpPdC5yULYDvzk2HFsWdRQ2An4zY,694
|
405
|
+
streamlit/static/static/js/index.Chkl1asR.js,sha256=X_VQcoDYd1CJ-jBYLDbk55JZ-aogjNSyVf9ngREjI9A,3116
|
406
|
+
streamlit/static/static/js/index.ColMLoRT.js,sha256=XBtUlQd3sGNBnTXQYr_5RrXxfPHrgV7OVEVAoqkKfIE,443
|
407
|
+
streamlit/static/static/js/index.Cx24fujh.js,sha256=awnSyV0-HxZKG0yP8IkbCWJUIGhjvmgElBGn2KaP1AI,9203
|
408
|
+
streamlit/static/static/js/index.D1VFO1GM.js,sha256=6OyxeF_V_KYZK7P_xIGOwrycDUia9UoqsOUEGjfZsYQ,2388
|
409
|
+
streamlit/static/static/js/index.D2-Y5_wx.js,sha256=-cKmK1aSlW6MIT1X6-i5MHTeprEpXy5PElNAwZibCL4,2570186
|
410
|
+
streamlit/static/static/js/index.D4qwHqKM.js,sha256=vhJUnezVXbSIXBPRwLp3GghiJXF5AXqxiM2eVVhUCEA,851493
|
411
|
+
streamlit/static/static/js/index.D8bLiwaV.js,sha256=m6lhyCtKsrMqsdqe2vZ-WVSA2mZxUis-N4ulEje7oLg,12345
|
412
|
+
streamlit/static/static/js/index.D958aGV_.js,sha256=14XAfboEh-mLIae3b4gXv5s3NHOK05u_lsF0jpOWXnE,429482
|
413
|
+
streamlit/static/static/js/index.D9GxqhKH.js,sha256=XxRpukeITAhnYQt94GcfmY9L5-KRkXvmP4cOdvZ0ySk,4137
|
414
|
+
streamlit/static/static/js/index.DG9Ir4m4.js,sha256=uv0vkT7c6BSSt-6z67sSwruyLvIo32MEglOrkCj8NfU,3385201
|
415
|
+
streamlit/static/static/js/index.DQXpaPor.js,sha256=fIqeRcJScA7ygFOFO_HW3y9YjC3uaRvExB044GaH0mg,1332
|
416
|
+
streamlit/static/static/js/index.DfriPCJP.js,sha256=KlUiPoV97-884dvuJOT4cMK7Suy4vaWbEcMK1VSAM-4,1276
|
417
|
+
streamlit/static/static/js/index.Dga_qPJ0.js,sha256=6Z1PIDbxy6WIrjGfLqJv9fbg8WKILD1F85-g33yeRSc,3618
|
418
|
+
streamlit/static/static/js/index.Dgd7wAuk.js,sha256=e5AGk16436YvutWOM0axxwfoS4QvLoWmOiZl5LvDdgM,24496
|
419
|
+
streamlit/static/static/js/index.Dy7h795S.js,sha256=zDm-yWBQeL5z_wz1DtJhHPVW0xJtGGk6Gzo7QBjOF6o,1810
|
420
|
+
streamlit/static/static/js/index.E56AjTPB.js,sha256=ForvYCsy1-_HY2qFoRliNydhfub7a0Rrx3aOJScEC9I,34743
|
421
|
+
streamlit/static/static/js/index.Jr-tvRTy.js,sha256=YbODUt0euPv7ouY4tEQtQGGvb1rv__tludW4LKasXu0,947
|
422
|
+
streamlit/static/static/js/index.LbtilNNP.js,sha256=Z-UsAE2K2jgMv1NTz1e8NW28xM4KTUikhOZLVJW0rck,851898
|
423
|
+
streamlit/static/static/js/index.atasR7_f.js,sha256=-v52txP39guUHPnkjvoJLPOnAMVWNdjU1htRQo7ICU0,583
|
424
|
+
streamlit/static/static/js/index.c5gLd5mL.js,sha256=gPeMy9NHoihkzJrmR6Z1uXN3Pbx-eLfUC6vcc6RhoVY,7542
|
425
|
+
streamlit/static/static/js/input.Dudaq2DP.js,sha256=v4GuUdfxfOfo7GCS87uYhb-AjNP8LxGx6wZp44S4TjI,5244
|
426
426
|
streamlit/static/static/js/inputUtils.CptNuJwn.js,sha256=v9SUbdkM8OJ6aT_EfTucTRNZh059kZ9Mut2oyTmv_98,124
|
427
|
-
streamlit/static/static/js/memory.
|
428
|
-
streamlit/static/static/js/mergeWith.
|
429
|
-
streamlit/static/static/js/number-overlay-editor.
|
430
|
-
streamlit/static/static/js/possibleConstructorReturn.
|
431
|
-
streamlit/static/static/js/sandbox.
|
427
|
+
streamlit/static/static/js/memory.DIuUp1Sn.js,sha256=6jU0misElXJcfi5Au1tYUkapTvODzaojmU5DeneHjPg,3041
|
428
|
+
streamlit/static/static/js/mergeWith.D9D0WgL_.js,sha256=V3dTWch7RyqkHWSmDZksyL7J84VyZK8DpY8aa0e-s28,198
|
429
|
+
streamlit/static/static/js/number-overlay-editor.DUBtvgiU.js,sha256=-bMr4yGjIWP9vFY6ZvyT-ScALFsCvS2MpYkxhqKJM68,16439
|
430
|
+
streamlit/static/static/js/possibleConstructorReturn.ql9j_wzC.js,sha256=BN-ufCWcY6_qx12F0TxDuzzqB549tEN_p2kwy07cVNY,1451
|
431
|
+
streamlit/static/static/js/sandbox.D_vlGgEg.js,sha256=hJYPGFvXzBFMRGIGA0DfmqSukl6tuMfNW_KgFIozxnE,2960
|
432
432
|
streamlit/static/static/js/sprintf.D7DtBTRn.js,sha256=dLZEkTCGwWgkxMOITY-fqjbGVuUO9nFw7MwCANBdisk,3434
|
433
433
|
streamlit/static/static/js/threshold.DjX0wlsa.js,sha256=ToJ7upF_PGcC41-Cfe0gGTVgWb0yjhBbHTQrd4GD4gg,5693
|
434
|
-
streamlit/static/static/js/timepicker.
|
434
|
+
streamlit/static/static/js/timepicker.DtFPFwb0.js,sha256=EvRLr9UX-tPsrjJ0Z7-VpkO2nDgkt7tu-pjUVO2IHx8,89220
|
435
435
|
streamlit/static/static/js/timer.CAwTRJ_g.js,sha256=aNjItH3iW2RuvnLaZ54iUi50rhEiW93-1Rel2EyaRlQ,7408
|
436
|
-
streamlit/static/static/js/toConsumableArray.
|
437
|
-
streamlit/static/static/js/uniqueId.
|
438
|
-
streamlit/static/static/js/useBasicWidgetState.
|
439
|
-
streamlit/static/static/js/useOnInputChange.
|
440
|
-
streamlit/static/static/js/useTextInputAutoExpand.
|
436
|
+
streamlit/static/static/js/toConsumableArray.DMsseOni.js,sha256=wHzmzqnZKFuTO4qbTA8JISFdv0ftI7t2aMcdz903jDM,1587
|
437
|
+
streamlit/static/static/js/uniqueId.BkUMU8CT.js,sha256=sApk2vM9mtEiotjvaM3ztd3DFvZHhWDwX754j-Bh4Ik,190
|
438
|
+
streamlit/static/static/js/useBasicWidgetState.Cp78gjjh.js,sha256=ExPT1g0xT_A7Fm_6pN1pem4KLMnre7Xgz39eSBXNxPI,953
|
439
|
+
streamlit/static/static/js/useOnInputChange.CHkjh73V.js,sha256=K5Ext_9D5HwZZZEQEO7rM8q791Ft6gli7UWSwrXeyjc,615
|
440
|
+
streamlit/static/static/js/useTextInputAutoExpand.CE_GiZ0L.js,sha256=v9l2a7JkZdaegl42ixkSy64eDfDoNrQ1kuVI6uN1AVg,6589
|
441
441
|
streamlit/static/static/js/value.CgPGBV_l.js,sha256=7g4Owjf_hP16pkcLYPvARUlzIjBgl9APVNw2hnHYtWY,15042
|
442
|
-
streamlit/static/static/js/withFullScreenWrapper.
|
442
|
+
streamlit/static/static/js/withFullScreenWrapper.CplO1PK6.js,sha256=cTEFhUtpuaVEO0DRkAzqffRsIMAeutYcCAgKKTeUiio,1519
|
443
443
|
streamlit/static/static/media/KaTeX_AMS-Regular.BQhdFMY1.woff2,sha256=DN04fJWQoan5eUVgAi27WWVKfYbxh6oMgUla1C06cwg,28076
|
444
444
|
streamlit/static/static/media/KaTeX_AMS-Regular.DMm9YOAa.woff,sha256=MNqR6EyJP4deJSaJ-uvcWQsocRReitx_mp1NvYzgslE,33516
|
445
445
|
streamlit/static/static/media/KaTeX_AMS-Regular.DRggAlZN.ttf,sha256=aFNIQLz90r_7bw6N60hoTdAefwTqKBMmdXevuQbeHRM,63632
|
@@ -527,11 +527,11 @@ streamlit/vendor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
|
|
527
527
|
streamlit/vendor/pympler/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
528
528
|
streamlit/vendor/pympler/asizeof.py,sha256=w2CZbunNoG7Wj8mT0fpIfXMLpCYvAR7RQh8D4JLHwws,87966
|
529
529
|
streamlit/watcher/__init__.py,sha256=kFrqZ4dBc-qAcHJbp7DGs3mK_fFRDZNVyfF9Qys0bWs,915
|
530
|
-
streamlit/watcher/event_based_path_watcher.py,sha256=
|
530
|
+
streamlit/watcher/event_based_path_watcher.py,sha256=Yk8eCqv3NpS08NUwdxRSf0DLl4sEPj9EST3UYg-BCnk,17221
|
531
531
|
streamlit/watcher/folder_black_list.py,sha256=m8Z3CoSEf75mJTNWmJ0CiK4Gn1tlUOX_a_Yq8DgjPD0,2392
|
532
532
|
streamlit/watcher/local_sources_watcher.py,sha256=DlZ5ajDk1s_XkP2e1DkfE141doJGH8WWTLLnD9kcHRI,11060
|
533
533
|
streamlit/watcher/path_watcher.py,sha256=x9jbF-iUvqINch7ojPJaZ5x7GB8r_gI7YdMwuD2kPEA,5640
|
534
|
-
streamlit/watcher/polling_path_watcher.py,sha256=
|
534
|
+
streamlit/watcher/polling_path_watcher.py,sha256=0H7jNjyoN39KFXRG_SGBk_kvVoVHur9pzpirZyQfkFY,4337
|
535
535
|
streamlit/watcher/util.py,sha256=RYhZyLH54BjnBjEuSRDMNPvLe9AZZBvYTEH6yWolLl8,6944
|
536
536
|
streamlit/web/__init__.py,sha256=M4sIyiinWL04bSC-QUcfYDB8Gr-h0uXGjTmL6o2v8jc,616
|
537
537
|
streamlit/web/bootstrap.py,sha256=HXvmzYvu9himpUMschRqXh0NWPU0WnHF4gvBFW9iHvE,13175
|
@@ -551,9 +551,9 @@ streamlit/web/server/server_util.py,sha256=NCOxLbtvLVPqDqqwq14aFIdZclBTG3q-el-TP
|
|
551
551
|
streamlit/web/server/stats_request_handler.py,sha256=M1g40mgy78f316gP7_W8I__Q4e9x0NoNjiNLQdH58ds,3848
|
552
552
|
streamlit/web/server/upload_file_request_handler.py,sha256=A-wgVOk6TCxf_KU-lQhawygSBKk5fwrD3Zkrz375Yj4,5269
|
553
553
|
streamlit/web/server/websocket_headers.py,sha256=2OHv6G9hLJ0UX8oHDG3UJ86_KK4SJJD8FXOCsZjCKek,2229
|
554
|
-
streamlit_nightly-1.46.2.
|
555
|
-
streamlit_nightly-1.46.2.
|
556
|
-
streamlit_nightly-1.46.2.
|
557
|
-
streamlit_nightly-1.46.2.
|
558
|
-
streamlit_nightly-1.46.2.
|
559
|
-
streamlit_nightly-1.46.2.
|
554
|
+
streamlit_nightly-1.46.2.dev20250709.data/scripts/streamlit.cmd,sha256=k9768SaQCkiYAPaTp7JtkhAHEHflNQfu6fAM4pri6zo,676
|
555
|
+
streamlit_nightly-1.46.2.dev20250709.dist-info/METADATA,sha256=WgS4PY7rY7V_mbskZi0RNte3IdsAuZlpt98tfrJumlY,8973
|
556
|
+
streamlit_nightly-1.46.2.dev20250709.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
557
|
+
streamlit_nightly-1.46.2.dev20250709.dist-info/entry_points.txt,sha256=uNJ4DwGNXEhOK0USwSNanjkYyR-Bk7eYQbJFDrWyOgY,53
|
558
|
+
streamlit_nightly-1.46.2.dev20250709.dist-info/top_level.txt,sha256=V3FhKbm7G2LnR0s4SytavrjIPNIhvcsAGXfYHAwtQzw,10
|
559
|
+
streamlit_nightly-1.46.2.dev20250709.dist-info/RECORD,,
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as p,z as k,B as T,j as n,C,bs as y,aG as S,bA as L,bt as W,ba as B,bM as w,J as R,bN as E,bO as $}from"./index.D6T2dYXA.js";import{a as P}from"./useBasicWidgetState.DX8Dvi5d.js";import{a as v,L as M,S as m}from"./checkbox.B0zzRnN3.js";import"./FormClearHelper.D3Hp66Ed.js";function X({element:t,disabled:a,widgetMgr:s,fragmentId:d}){const[f,g]=P({getStateFromWidgetMgr:H,getDefaultStateFromProto:V,getCurrStateFromProto:G,updateWidgetMgrState:I,element:t,widgetMgr:s,fragmentId:d}),x=p.useCallback(i=>{g({value:i.target.checked,fromUi:!0})},[g]),e=k(),{colors:o,spacing:h,sizes:r}=e,b=T(e),u=a?o.fadedText40:o.bodyText;return n($,{className:"row-widget stCheckbox","data-testid":"stCheckbox",children:n(v,{checked:f,disabled:a,onChange:x,"aria-label":t.label,checkmarkType:t.type===E.StyleType.TOGGLE?m.toggle:m.default,labelPlacement:M.right,overrides:{Root:{style:({$isFocusVisible:i})=>({marginBottom:h.none,marginTop:h.none,backgroundColor:i?o.darkenedBgMix25:"",display:"flex",alignItems:"start"})},Toggle:{style:({$checked:i})=>{let c=b?o.bgColor:o.bodyText;return a&&(c=b?o.gray70:o.gray90),{width:`calc(${r.checkbox} - ${e.spacing.twoXS})`,height:`calc(${r.checkbox} - ${e.spacing.twoXS})`,transform:i?`translateX(${r.checkbox})`:"",backgroundColor:c,boxShadow:""}}},ToggleTrack:{style:({$checked:i,$isHovered:c})=>{let l=o.fadedText40;return c&&!a&&(l=o.fadedText20),i&&!a&&(l=o.primary),{marginRight:0,marginLeft:0,marginBottom:0,marginTop:e.spacing.twoXS,paddingLeft:e.spacing.threeXS,paddingRight:e.spacing.threeXS,width:`calc(2 * ${r.checkbox})`,minWidth:`calc(2 * ${r.checkbox})`,height:r.checkbox,minHeight:r.checkbox,borderBottomLeftRadius:e.radii.full,borderTopLeftRadius:e.radii.full,borderBottomRightRadius:e.radii.full,borderTopRightRadius:e.radii.full,backgroundColor:l}}},Checkmark:{style:({$isFocusVisible:i,$checked:c})=>{const l=c&&!a?o.primary:o.fadedText40;return{outline:0,width:r.checkbox,height:r.checkbox,marginTop:e.spacing.twoXS,marginLeft:0,marginBottom:0,boxShadow:i&&c?`0 0 0 0.2rem ${R(o.primary,.5)}`:"",borderLeftWidth:r.borderWidth,borderRightWidth:r.borderWidth,borderTopWidth:r.borderWidth,borderBottomWidth:r.borderWidth,borderLeftColor:l,borderRightColor:l,borderTopColor:l,borderBottomColor:l}}},Label:{style:{lineHeight:e.lineHeights.small,paddingLeft:e.spacing.sm,position:"relative",color:u}}},children:C(w,{visibility:y(t.labelVisibility?.value),"data-testid":"stWidgetLabel",children:[n(S,{source:t.label,allowHTML:!1,isLabel:!0,largerLabel:!0}),t.help&&n(L,{color:u,children:n(W,{content:t.help,placement:B.TOP_RIGHT})})]})})})}function H(t,a){return t.getBoolValue(a)}function V(t){return t.default??null}function G(t){return t.value??null}function I(t,a,s,d){a.setBoolValue(t,s.value,{fromUi:s.fromUi},d)}const N=p.memo(X);export{N as default};
|
@@ -1 +0,0 @@
|
|
1
|
-
import{s as U,r as o,aQ as k,z as H,cv as S,C as B,j as n,bs as j,bI as O,bt as _,ba as w,bu as K,D as $,cw as q}from"./index.D6T2dYXA.js";import{u as A}from"./uniqueId.Cr5-pyqr.js";import{u as G,a as N,b as Q}from"./useOnInputChange.CGiEpYpi.js";import{a as J}from"./useBasicWidgetState.DX8Dvi5d.js";import{I as M}from"./InputInstructions.BwiNLSMY.js";import{I as X}from"./input.BPpQxxzu.js";import"./inputUtils.CptNuJwn.js";import"./FormClearHelper.D3Hp66Ed.js";import"./base-input.yvVgWMq1.js";const Y=U("div",{target:"e1o1zy6o0"})("position:relative;");function Z({disabled:a,element:t,widgetMgr:s,fragmentId:u}){const[r,c]=o.useState(()=>W(s,t)??null),[T,y]=k(),[i,p]=o.useState(!1),x=o.useCallback(()=>{c(t.default??null),p(!0)},[t.default]),[V,m]=J({getStateFromWidgetMgr:W,getDefaultStateFromProto:tt,getCurrStateFromProto:et,updateWidgetMgrState:at,element:t,widgetMgr:s,fragmentId:u,onFormCleared:x});G(V,r,c,i);const[C,g]=o.useState(!1),e=H(),[b]=o.useState(()=>A("text_input_")),{placeholder:F,formId:l,icon:d,maxChars:f}=t,h=o.useCallback(()=>{p(!1),m({value:r,fromUi:!0})},[r,m]),v=S({formId:l})?s.allowFormEnterToSubmit(l):i,z=C&&T>e.breakpoints.hideWidgetDetails,E=o.useCallback(()=>{i&&h(),g(!1)},[i,h]),R=o.useCallback(()=>{g(!0)},[]),L=N({formId:l,maxChars:f,setDirty:p,setUiValue:c,setValueWithSource:m}),P=Q(l,h,i,s,u),I=d?.startsWith(":material"),D=I?"lg":"base";return B(Y,{className:"stTextInput","data-testid":"stTextInput",ref:y,children:[n(K,{label:t.label,disabled:a,labelVisibility:j(t.labelVisibility?.value),htmlFor:b,children:t.help&&n(O,{children:n(_,{content:t.help,placement:w.TOP_RIGHT})})}),n(X,{value:r??"",placeholder:F,onBlur:E,onFocus:R,onChange:L,onKeyPress:P,"aria-label":t.label,disabled:a,id:b,type:ot(t),autoComplete:t.autocomplete,startEnhancer:d&&n($,{"data-testid":"stTextInputIcon",iconValue:d,size:D}),overrides:{Input:{style:{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:{height:e.sizes.minElementHeight,borderLeftWidth:e.sizes.borderWidth,borderRightWidth:e.sizes.borderWidth,borderTopWidth:e.sizes.borderWidth,borderBottomWidth:e.sizes.borderWidth,paddingLeft:d?e.spacing.sm:0}},StartEnhancer:{style:{paddingLeft:0,paddingRight:0,minWidth:e.iconSizes.lg,color:I?e.colors.fadedText60:"inherit"}}}}),z&&n(M,{dirty:i,value:r??"",maxLength:f,inForm:S({formId:l}),allowEnterToSubmit:v})]})}function W(a,t){return a.getStringValue(t)??null}function tt(a){return a.default??null}function et(a){return a.value??null}function at(a,t,s,u){t.setStringValue(a,s.value,{fromUi:s.fromUi},u)}function ot(a){return a.type===q.Type.PASSWORD?"password":"text"}const mt=o.memo(Z);export{mt as default};
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as l,E as Y,_,s as p,B as dt,z as M,j as o,ba as q,bv as ct,C as S,bq as G,b5 as J,bp as E,a$ as pt,bJ as ut,bH as j,bk as gt,bK as v,bt as ht,F as Q,aQ as ft,bh as mt,bL as yt,M as H,bm as Ct,bl as bt}from"./index.D6T2dYXA.js";import{g as vt,C as It,I as xt,F as $,E as wt,a as St,s as Ft,u as Ut,b as zt}from"./FileHelper.D56tzO8c.js";import{I as Et}from"./InputInstructions.BwiNLSMY.js";import{i as Tt}from"./inputUtils.CptNuJwn.js";import{u as Bt,T as Dt}from"./useTextInputAutoExpand.BPsrdzpb.js";import{E as Rt}from"./ErrorOutline.esm.Cwi9617t.js";import{U as Z}from"./UploadFileInfo.C-jY39rj.js";import"./base-input.yvVgWMq1.js";var tt=l.forwardRef(function(t,e){var r={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return l.createElement(Y,_({iconAttrs:r,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),l.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),l.createElement("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5a2.5 2.5 0 015 0v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5a2.5 2.5 0 005 0V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"}))});tt.displayName="AttachFile";var et=l.forwardRef(function(t,e){var r={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return l.createElement(Y,_({iconAttrs:r,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),l.createElement("rect",{width:24,height:24,fill:"none"}),l.createElement("path",{d:"M3 5.51v3.71c0 .46.31.86.76.97L11 12l-7.24 1.81c-.45.11-.76.51-.76.97v3.71c0 .72.73 1.2 1.39.92l15.42-6.49c.82-.34.82-1.5 0-1.84L4.39 4.58C3.73 4.31 3 4.79 3 5.51z"}))});et.displayName="Send";const Ht=p("div",{target:"e1togvvn0"})("border:none;position:relative;display:flex;"),Lt=p("div",{target:"e1togvvn1"})(({theme:t,extended:e})=>({border:`${t.sizes.borderWidth} solid`,borderColor:t.colors.widgetBorderColor??t.colors.transparent,borderRadius:t.radii.chatInput,backgroundColor:t.colors.secondaryBg,position:"relative",flexGrow:1,display:"flex",alignItems:"center",paddingLeft:t.spacing.lg,maxHeight:e?"none":t.sizes.minElementHeight,gap:t.spacing.sm,overflow:"hidden",":focus-within":{borderColor:t.colors.primary}})),kt=p("button",{target:"e1togvvn2"})(({theme:t,disabled:e,extended:r})=>{const d=dt(t),[f,c]=d?[t.colors.gray60,t.colors.gray80]:[t.colors.gray80,t.colors.gray40];return{border:"none",backgroundColor:t.colors.transparent,borderTopRightRadius:r?"0":t.radii.chatInput,borderTopLeftRadius:r?t.radii.default:"0",borderBottomRightRadius:t.radii.chatInput,display:"inline-flex",alignItems:"center",justifyContent:"center",lineHeight:t.lineHeights.none,margin:t.spacing.none,padding:t.spacing.sm,color:e?f:c,pointerEvents:"auto","&:focus":{outline:"none"},":focus":{outline:"none"},"&:focus-visible":{backgroundColor:d?t.colors.gray10:t.colors.gray90},"&:hover":{color:t.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:t.colors.transparent,borderColor:t.colors.transparent,color:t.colors.gray,cursor:"not-allowed"}}}),$t=p("div",{target:"e1togvvn3"})(({theme:t})=>({display:"flex",alignItems:"flex-end",height:"100%",position:"absolute",right:0,marginBottom:`-${t.sizes.borderWidth}`,pointerEvents:"none"})),Mt=p("div",{target:"e1togvvn4"})(({theme:t})=>({position:"absolute",bottom:"0px",right:`calc(${t.iconSizes.xl} + 2 * ${t.spacing.sm} + ${t.spacing.sm})`})),Vt=p("div",{target:"e15560op0"})(({theme:t,height:e})=>({backgroundColor:t.colors.transparent,position:"absolute",left:0,bottom:0,minHeight:`max(${t.sizes.emptyDropdownHeight}, ${e})`,width:"100%",zIndex:t.zIndices.priority})),Wt=p("div",{target:"e15560op1"})(({theme:t,height:e})=>({border:`${t.sizes.borderWidth} solid`,borderColor:t.colors.primary,borderRadius:t.radii.chatInput,backgroundColor:t.colors.secondaryBg,color:t.colors.primary,display:"flex",alignItems:"center",justifyContent:"center",height:e,width:"100%",fontWeight:t.fontWeights.bold})),Nt=p("div",{target:"e15560op2"})(({theme:t,disabled:e})=>({display:"flex",alignItems:"top",height:"100%",marginTop:`-${t.sizes.borderWidth}`,cursor:e?"not-allowed":"auto"})),At=p("div",{target:"e15560op3"})(({disabled:t})=>({pointerEvents:t?"none":"auto"})),Pt=p("div",{target:"e15560op4"})(({theme:t})=>({marginTop:"0.625em",marginLeft:t.spacing.sm,height:t.spacing.xl,width:t.sizes.borderWidth,backgroundColor:t.colors.fadedText20})),Kt=p("div",{target:"e15560op5"})(({theme:t})=>({left:0,right:0,lineHeight:t.lineHeights.tight,paddingLeft:t.spacing.sm,paddingRight:t.spacing.sm,overflowX:"auto"})),Ot=p("div",{target:"e15560op6"})({display:"flex"}),Xt=p("div",{target:"e15560op7"})({flex:"0 0 auto"}),jt=p("div",{target:"e15560op8"})(({theme:t})=>({display:"flex",alignItems:"center",padding:t.spacing.sm,gap:t.spacing.twoXS})),Yt=p("div",{target:"e15560op9"})(({theme:t})=>({color:t.colors.fadedText60})),_t=p("div",{target:"e15560op10"})(({theme:t,fileStatus:e})=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:e.type==="uploaded"?t.colors.bodyText:t.colors.fadedText60})),qt=p("div",{target:"e15560op11"})(({theme:t})=>({marginRight:t.spacing.md,color:t.colors.fadedText60})),Gt=p("small",{target:"e15560op12"})(({theme:t})=>({display:"flex",alignItems:"center",maxHeight:t.sizes.smallElementHeight,color:t.colors.fadedText60,"& :hover":{color:t.colors.bodyText}}));function Jt({children:t,content:e}){const r=M();return o(ct,{content:e,placement:q.TOP,overrides:{Body:{style:{top:`-${r.sizes.minElementHeight}`}}},children:t})}const Qt=({fileInfo:t})=>{const e=M(),{type:r}=t.status;switch(r){case"uploading":return o(ut,{usingCustomTheme:!1,"data-testid":"stChatInputFileIconSpinner",size:"lg",margin:"0",padding:"0"});case"error":return o(Jt,{content:t.status.errorMessage,children:o(E,{color:e.colors.red,content:Rt,size:"lg"})});case"uploaded":return o(E,{content:xt,size:"lg"});default:return pt(r),null}},Zt=({fileInfo:t,onDelete:e})=>S(jt,{className:"stChatInputFile","data-testid":"stChatInputFile",children:[o(Yt,{children:o(Qt,{fileInfo:t})}),o(_t,{className:"stChatInputFileName","data-testid":"stChatInputFileName",title:t.name,fileStatus:t.status,children:t.name}),o(qt,{children:vt(t.size,$.Byte)}),o(Gt,{"data-testid":"stChatInputDeleteBtn",children:o(G,{onClick:()=>e(t.id),kind:J.MINIMAL,children:o(E,{content:It,size:"lg"})})})]}),te=l.memo(Zt),ee=({items:t,onDelete:e})=>o(Kt,{"data-testid":"stChatUploadedFiles",children:o(Ot,{children:t.map(r=>o(Xt,{children:o(te,{fileInfo:r,onDelete:e})},r.id))})}),oe=l.memo(ee),ne=({getNextLocalFileId:t,addFiles:e,updateFile:r,uploadClient:d,element:f,onUploadProgress:c,onUploadComplete:C})=>(y,m)=>{const g=j.CancelToken.source(),u=new Z(m.name,m.size,t(),{type:"uploading",cancelToken:g,progress:1});e([u]),d.uploadFile({formId:"",...f},y.uploadUrl,m,h=>c(h,u.id),g.token).then(()=>C(u.id,y)).catch(h=>{j.isCancel(h)||r(u.id,u.setStatus({type:"error",errorMessage:h?h.toString():"Unknown error"}))})},ae=({acceptMultipleFiles:t,maxFileSize:e,uploadClient:r,uploadFile:d,addFiles:f,getNextLocalFileId:c,deleteExistingFiles:C,onUploadComplete:y})=>(m,g)=>{if(!t&&m.length===0&&g.length>1){const u=g.findIndex(h=>h.errors?.[0].code===wt.TooManyFiles);u>=0&&(m.push(g[u].file),g.splice(u,1))}if(!t&&m.length>0&&C(),r.fetchFileURLs(m).then(u=>{gt(u,m).forEach(([h,T])=>{d(h,T)})}).catch(u=>{f(m.map(h=>new Z(h.name,h.size,c(),{type:"error",errorMessage:u})))}),g.length>0){const u=g.map(h=>St(h,c(),e));f(u)}y()},re=({getRootProps:t,getInputProps:e,acceptFile:r,disabled:d,theme:f})=>S(Nt,{disabled:d,children:[S(At,{"data-testid":"stChatInputFileUploadButton",disabled:d,...t(),children:[o("input",{...e()}),o(ht,{content:`Upload or drag and drop ${r===v.Multiple?"files":"a file"}`,placement:q.TOP,onMouseEnterDelay:500,children:o(G,{kind:J.MINIMAL,disabled:d,children:o(E,{content:tt,size:"lg",color:d?f.colors.fadedText40:f.colors.fadedText60})})})]}),o(Pt,{})]}),ie=l.memo(re),se=({getRootProps:t,getInputProps:e,acceptFile:r,inputHeight:d})=>S(Q,{children:[o(Vt,{height:d,...t(),children:o("input",{...e()})}),o(Wt,{height:d,children:`Drag and drop ${r===v.Multiple?"files":"a file"} here`})]}),le=l.memo(se),L=(t,e,r)=>r.map(d=>d.id===t?e:d),k=(t,e)=>e.find(r=>r.id===t);function de({disabled:t,element:e,widgetMgr:r,fragmentId:d,uploadClient:f}){const c=M(),{placeholder:C,maxChars:y}=e,m=l.useRef(0),g=l.useRef(null),[u,h]=ft(),{innerWidth:T,innerHeight:V}=mt(),[F,B]=l.useState(e.default),[I,x]=l.useState([]),[U,D]=l.useState(!1),w=Bt({textareaRef:g,dependencies:[C]}),R=l.useMemo(()=>I.some(n=>n.status.type==="uploading")?!1:F!==""||I.length>0,[I,F]),b=yt(e.acceptFile),W=Ft(e.maxUploadSizeMb,$.Megabyte,$.Byte),N=l.useCallback(n=>x(i=>[...i,...n]),[]),A=l.useCallback(n=>{x(i=>{const s=k(n,i);return H(s)?i:(s.status.type==="uploading"&&s.status.cancelToken.cancel(),s.status.type==="uploaded"&&s.status.fileUrls.deleteUrl&&f.deleteFile(s.status.fileUrls.deleteUrl),i.filter(a=>a.id!==n))})},[f]),ot=()=>{const n=I.filter(i=>i.status.type==="uploaded").map(i=>{const{name:s,size:a,status:z}=i,{fileId:st,fileUrls:lt}=z;return new Ct({fileId:st,fileUrls:lt,name:s,size:a})});return new bt({uploadedFileInfo:n})},P=()=>m.current++,nt=ae({acceptMultipleFiles:b===v.Multiple,maxFileSize:W,uploadClient:f,uploadFile:ne({getNextLocalFileId:P,addFiles:N,updateFile:(n,i)=>{x(s=>L(n,i,s))},uploadClient:f,element:e,onUploadProgress:(n,i)=>{x(s=>{const a=k(i,s);if(H(a)||a.status.type!=="uploading")return s;const z=Math.round(n.loaded*100/n.total);return a.status.progress===z?s:L(i,a.setStatus({type:"uploading",cancelToken:a.status.cancelToken,progress:z}),s)})},onUploadComplete:(n,i)=>{x(s=>{const a=k(n,s);return H(a)||a.status.type!=="uploading"?s:L(a.id,a.setStatus({type:"uploaded",fileId:i.fileId,fileUrls:i}),s)})}}),addFiles:N,getNextLocalFileId:P,deleteExistingFiles:()=>I.forEach(n=>A(n.id)),onUploadComplete:()=>{g.current&&g.current.focus()}}),{getRootProps:K,getInputProps:O}=Ut({onDrop:nt,multiple:b===v.Multiple,accept:zt(e.fileType),maxSize:W}),X=()=>{if(g.current&&g.current.focus(),!R||t)return;const n={data:F,fileUploaderState:ot()};r.setChatInputValue(e,n,{fromUi:!0},d),x([]),B("")},at=n=>{const{metaKey:i,ctrlKey:s,shiftKey:a}=n;Tt(n)&&!a&&!s&&!i&&(n.preventDefault(),X())},rt=n=>{const{value:i}=n.target;y!==0&&i.length>y||(B(i),w.updateScrollHeight())};l.useEffect(()=>{if(e.setValue){e.setValue=!1;const n=e.value||"";B(n)}},[e]),l.useEffect(()=>{const n=a=>{a.preventDefault(),a.stopPropagation(),!U&&a.dataTransfer?.types.includes("Files")&&D(!0)},i=a=>{a.preventDefault(),a.stopPropagation(),U&&(a.clientX<=0&&a.clientY<=0||a.clientX>=T&&a.clientY>=V)&&D(!1)},s=a=>{a.preventDefault(),a.stopPropagation(),U&&D(!1)};return window.addEventListener("dragover",n),window.addEventListener("drop",s),window.addEventListener("dragleave",i),()=>{window.removeEventListener("dragover",n),window.removeEventListener("drop",s),window.removeEventListener("dragleave",i)}},[U,T,V]);const it=b!==v.None&&U;return S(Q,{children:[b===v.None?null:o(oe,{items:[...I],onDelete:A}),o(Ht,{className:"stChatInput","data-testid":"stChatInput",ref:h,children:it?o(le,{getRootProps:K,getInputProps:O,acceptFile:b,inputHeight:w.height}):S(Lt,{extended:w.isExtended,children:[b===v.None?null:o(ie,{getRootProps:K,getInputProps:O,acceptFile:b,disabled:t,theme:c}),o(Dt,{inputRef:g,value:F,placeholder:C,onChange:rt,onKeyDown:at,"aria-label":C,disabled:t,rows:1,overrides:{Root:{style:{minHeight:c.sizes.minElementHeight,outline:"none",borderLeftWidth:"0",borderRightWidth:"0",borderTopWidth:"0",borderBottomWidth:"0",borderTopLeftRadius:"0",borderTopRightRadius:"0",borderBottomRightRadius:"0",borderBottomLeftRadius:"0"}},Input:{props:{"data-testid":"stChatInputTextArea"},style:{lineHeight:c.lineHeights.inputWidget,"::placeholder":{color:c.colors.fadedText60},height:w.height,maxHeight:w.maxHeight,paddingLeft:c.spacing.none,paddingBottom:c.spacing.sm,paddingTop:c.spacing.sm,paddingRight:`calc(${c.iconSizes.xl} + 2 * ${c.spacing.sm} + ${c.spacing.sm})`}}}}),u>c.breakpoints.hideWidgetDetails&&o(Mt,{children:o(Et,{dirty:R,value:F,maxLength:y,type:"chat",inForm:!1})}),o($t,{children:o(kt,{onClick:X,disabled:!R||t,extended:w.isExtended,"data-testid":"stChatInputSubmitButton",children:o(E,{content:et,size:"xl",color:"inherit"})})})]})})]})}const Ce=l.memo(de);export{Ce as default};
|
@@ -1 +0,0 @@
|
|
1
|
-
import{s as w,bs as T,cu as O,r as s,aQ as _,z as q,cv as H,C as G,j as u,bI as K,bt as $,ba as N,bu as Q}from"./index.D6T2dYXA.js";import{u as J}from"./uniqueId.Cr5-pyqr.js";import{u as M,a as X,b as Y}from"./useOnInputChange.CGiEpYpi.js";import{I as Z}from"./InputInstructions.BwiNLSMY.js";import{a as tt}from"./useBasicWidgetState.DX8Dvi5d.js";import{u as et,T as it}from"./useTextInputAutoExpand.BPsrdzpb.js";import"./inputUtils.CptNuJwn.js";import"./FormClearHelper.D3Hp66Ed.js";import"./base-input.yvVgWMq1.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(J("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});M(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]),k=s.useCallback(()=>{r&&p(),b(!1)},[r,p]),E=s.useCallback(()=>{b(!0)},[]),L=s.useCallback(()=>{l&&C()},[l,C]),P=X({formId:t.formId,maxChars:t.maxChars,setDirty:c,setUiValue:h,setValueWithSource:g,additionalAction:L}),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(Q,{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:k,onFocus:E,onChange:P,onKeyDown:U,"aria-label":t.label,disabled:e,id:m,overrides:{Input:{style:{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 +0,0 @@
|
|
1
|
-
import{r as p,cv as a}from"./index.D6T2dYXA.js";import{i as b}from"./inputUtils.CptNuJwn.js";function i(r,s,n,e){p.useEffect(()=>{e||r!==s&&n(r)},[r,s,e,n])}function v(r,s,n,e,f,t=!1){return p.useCallback(u=>{const o=t?u.metaKey||u.ctrlKey:!0;!b(u)||!o||(u.preventDefault(),n&&s(),e.allowFormEnterToSubmit(r)&&e.submitForm(r,f))},[r,f,n,s,e,t])}function F({formId:r,maxChars:s,setDirty:n,setUiValue:e,setValueWithSource:f,additionalAction:t}){return p.useCallback(u=>{const{value:o}=u.target;s!==0&&o.length>s||(n(!0),e(o),a({formId:r})&&f({value:o,fromUi:!0}),t&&t())},[r,s,n,e,f,t])}export{F as a,v as b,i as u};
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|