@marimo-team/frontend 0.23.16-dev18 → 0.23.16-dev19

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.
@@ -1,4 +1,4 @@
1
- import{s as Je}from"./chunk-LvLJmgfZ.js";import{i as Et,l as _e,n as ae,p as Ye,u as ge}from"./useEvent-D91BmmQi.js";import{t as At}from"./react-Bj1aDYRI.js";import{Bi as Xe,E as Ht,Ii as qt,Nn as Ze,wr as Ut}from"./cells-D9tCNe6o.js";import"./react-dom-CSu739Rf.js";import{t as oe}from"./compiler-runtime-B3qBwwSJ.js";import{g as De}from"./useEventListener-C0195JsF.js";import{t as Kt}from"./invariant-CkiqGLcK.js";import{g as Wt,p as Qe}from"./utils-BWBBpCkT.js";import{M as je,r as Gt}from"./config-B-Q7J_6d.js";import{t as le}from"./cn-DYvqRARy.js";import{t as Jt}from"./jsx-runtime-Blw4afVn.js";import"./fullscreen-CTDqNQr6.js";import{r as Yt}from"./config-BJVx3eBW.js";import{o as Xt}from"./alert-dialog-Bb8Lz8ko.js";import"./popover-Bcz1Zikb.js";import{a as X,c as ue,p as Zt,r as Qt,t as ea}from"./dropdown-menu-dHmZR8bI.js";import{Lt as Fe,a as ta,i as et,m as aa,o as tt}from"./JsonOutput-BoDVlAbV.js";import{c as ra,i as Te,r as at}from"./download-CnYLah74.js";import{r as rt}from"./radio-group-CdR34W0K.js";import{t as Z}from"./tooltip-4bZlU7jl.js";import{n as na,t as A}from"./button-DDGiD1NW.js";import{Tt as sa}from"./dist-12S8I4CH.js";import"./cjs-D5tzp-Y6.js";import"./main-BNL5rxQw.js";import"./useNonce-CbdaHKzX.js";import{n as oa,r as ze,t as la}from"./requests-9-v2bhoi.js";import{t as ne}from"./createLucideIcon-w-Qo9n0R.js";import{a as ia,i as nt,l as st,n as Me,o as ye,r as ca,s as Le,t as da}from"./state-DDag0B_B.js";import{n as ma}from"./LazyAnyLanguageCodeMirror-B2JvSXP-.js";import{t as pa}from"./x-C-Eq0ag8.js";import{a as ha,i as Oe,n as xa,r as ot,t as be}from"./tree-actions-DJTGQWz0.js";import{a as fa}from"./markdown-renderer-C9vdWclk.js";import{u as ua}from"./toDate-Ct2FT81-.js";import{t as lt}from"./copy-3iHFdt22.js";import{t as $e}from"./external-link-BOlXZUla.js";import{a as ya,i as it,n as ct,r as ga,t as ja}from"./file-icons-Czm7CWoc.js";import{t as dt}from"./file-CJH9JNGH.js";import{i as mt,r as ba,t as pt}from"./add-connection-dialog-GllfB9z2.js";import{n as ve,t as va}from"./spinner-D-V4psAa.js";import{a as wa,c as Na,d as ka,f as Sa,i as Ca,l as _a,n as Fa,r as Ma,t as Pa,u as Da}from"./file-name-input-CjWG0FWT.js";import{t as ht}from"./plus-AgXtozBz.js";import{t as xt}from"./refresh-cw-CYq4mK5a.js";import{t as Ta}from"./save-DBuEmnnF.js";import{t as za}from"./triangle-alert-BL4YVsPy.js";import{n as La,t as Oa}from"./es-gYgfF8y5.js";import"./dist-DcwTQG1A.js";import"./dist-DnjsPBRJ.js";import"./dist-BJZAIIze.js";import"./dist-aRc_dRed.js";import"./dist-CPjTeT8p.js";import{t as re}from"./use-toast-BwJoaaDM.js";import{t as $a}from"./paths-BKO-pHK6.js";import"./session-BmukRjSi.js";import"./purify.es-CWmnYhGI.js";import"./dates-C2LWzsCZ.js";import{n as we}from"./copy-Bxb1_Gtw.js";import{t as Ba}from"./copy-icon-neDQUo4Q.js";import{t as Be}from"./context-BFPaAUK_.js";import{n as ft}from"./ImperativeModal-fY-ZfT0b.js";import{t as Ra}from"./blob-C3EfaMOb.js";import"./tooltip-B7U4xkIN.js";import"./vega-loader.browser-Dun7Qe4B.js";import"./defaultLocale-DOVIEEPN.js";import"./defaultLocale-BUCH2FMc.js";import{n as Va,t as Ia}from"./alert-jlwhGxSb.js";import{n as ut}from"./error-banner-BSxEOIn2.js";import"./chunk-5FQGJX7Z-Cp0LZT-a.js";import"./html-to-image-1vflBYah.js";import{o as Ea}from"./focus-DTmSq3hN.js";import{n as Re}from"./useAsyncData-Bg5iAViP.js";import"./react-resizable-panels.browser.esm-Z-MD3n3J.js";import{a as Aa,f as Ha,o as yt,t as qa}from"./command-Dqxie4gq.js";import{a as Ua}from"./renderShortcut-Bl8_FVn8.js";import{t as Ka}from"./bundle.esm-D0TWQ6iT.js";import{n as Wa}from"./pathUtils-Bfcp5m-a.js";import{n as Ga}from"./semaphore-DtBYRzWS.js";import{t as Ja}from"./empty-state-CqJvEFRk.js";import{t as Pe}from"./formatting-CDf6w1Kt.js";import{a as Ya,i as Xa,n as gt,r as jt,t as bt}from"./components-D-aPO6md.js";import{n as vt,t as Za}from"./marimo-icons-C_nFooxr.js";import{t as Qa}from"./links-CZr5bjvo.js";var er=ne("book-plus",[["path",{d:"M12 7v6",key:"lw1j43"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"M9 10h6",key:"9gxzsh"}]]),tr=ne("copy-minus",[["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),wt=ne("file-plus-corner",[["path",{d:"M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35",key:"17jvcc"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M14 19h6",key:"bvotb8"}],["path",{d:"M17 16v6",key:"18yu1i"}]]),ar=ne("file-symlink",[["path",{d:"M4 11V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h7",key:"huwfnr"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m10 18 3-3-3-3",key:"18f6ys"}]]),Nt=ne("folder-plus",[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]),kt=ne("list-tree",[["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"M3 10a2 2 0 0 0 2 2h3",key:"1npucw"}],["path",{d:"M3 5v12a2 2 0 0 0 2 2h3",key:"x1gjn2"}]]),rr=ne("square-play",[["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}]]),St=ne("view",[["path",{d:"M21 17v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-2",key:"mrq65r"}],["path",{d:"M21 7V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2",key:"be3xqs"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["path",{d:"M18.944 12.33a1 1 0 0 0 0-.66 7.5 7.5 0 0 0-13.888 0 1 1 0 0 0 0 .66 7.5 7.5 0 0 0 13.888 0",key:"11ak4c"}]]),O=Je(At(),1),nr=oe(),a=Je(Jt(),1);const Ct=t=>{let e=(0,nr.c)(17),{filename:r,filenameIcon:o,onBack:i,onRefresh:n,onDownload:m,actions:l}=t,c;e[0]===i?c=e[1]:(c=i&&(0,a.jsx)(Z,{content:"Back to file list",children:(0,a.jsx)(A,{variant:"text",size:"xs",onClick:i,children:(0,a.jsx)(st,{className:"h-4 w-4"})})}),e[0]=i,e[1]=c);let s;e[2]!==r||e[3]!==o?(s=r?(0,a.jsxs)("span",{className:"flex items-center gap-1.5 flex-1 min-w-0 text-xs font-semibold truncate",children:[o,r]}):(0,a.jsx)("span",{className:"flex-1"}),e[2]=r,e[3]=o,e[4]=s):s=e[4];let f;e[5]===n?f=e[6]:(f=n&&(0,a.jsx)(Z,{content:"Refresh",children:(0,a.jsx)(A,{variant:"text",size:"xs",onClick:n,children:(0,a.jsx)(xt,{className:"h-3.5 w-3.5"})})}),e[5]=n,e[6]=f);let p;e[7]===m?p=e[8]:(p=m&&(0,a.jsx)(Z,{content:"Download",children:(0,a.jsx)(A,{variant:"text",size:"xs",onClick:m,children:(0,a.jsx)(Fe,{className:"h-3.5 w-3.5"})})}),e[7]=m,e[8]=p);let x;e[9]!==l||e[10]!==f||e[11]!==p?(x=(0,a.jsxs)("div",{className:"flex items-center gap-0.5 shrink-0",children:[f,l,p]}),e[9]=l,e[10]=f,e[11]=p,e[12]=x):x=e[12];let u;return e[13]!==c||e[14]!==s||e[15]!==x?(u=(0,a.jsxs)("div",{className:"flex items-center shrink-0 border-b px-1 gap-1",children:[c,s,x]}),e[13]=c,e[14]=s,e[15]=x,e[16]=u):u=e[16],u};var sr=new Set(["http","file","in-memory"]);function Ve(t){return JSON.stringify(t).slice(1,-1)}const _t=[{id:"read-file",label:"Insert read snippet",icon:er,getCode:t=>{if(t.entry.kind==="directory")return null;let e=Ve(t.entry.path);return t.backendType==="obstore"?`_data = ${t.variableName}.get("${e}").bytes()
1
+ import{s as Je}from"./chunk-LvLJmgfZ.js";import{i as Et,l as _e,n as ae,p as Ye,u as ge}from"./useEvent-D91BmmQi.js";import{t as At}from"./react-Bj1aDYRI.js";import{Bi as Xe,E as Ht,Ii as qt,Nn as Ze,wr as Ut}from"./cells-D9tCNe6o.js";import"./react-dom-CSu739Rf.js";import{t as oe}from"./compiler-runtime-B3qBwwSJ.js";import{g as De}from"./useEventListener-C0195JsF.js";import{t as Kt}from"./invariant-CkiqGLcK.js";import{g as Wt,p as Qe}from"./utils-BWBBpCkT.js";import{M as je,r as Gt}from"./config-B-Q7J_6d.js";import{t as le}from"./cn-DYvqRARy.js";import{t as Jt}from"./jsx-runtime-Blw4afVn.js";import"./fullscreen-CTDqNQr6.js";import{r as Yt}from"./config-BJVx3eBW.js";import{o as Xt}from"./alert-dialog-Bb8Lz8ko.js";import"./popover-Bcz1Zikb.js";import{a as X,c as ue,p as Zt,r as Qt,t as ea}from"./dropdown-menu-dHmZR8bI.js";import{Lt as Fe,a as ta,i as et,m as aa,o as tt}from"./JsonOutput-BoDVlAbV.js";import{c as ra,i as Te,r as at}from"./download-CnYLah74.js";import{r as rt}from"./radio-group-CdR34W0K.js";import{t as Z}from"./tooltip-4bZlU7jl.js";import{n as na,t as A}from"./button-DDGiD1NW.js";import{Tt as sa}from"./dist-12S8I4CH.js";import"./cjs-D5tzp-Y6.js";import"./main-BNL5rxQw.js";import"./useNonce-CbdaHKzX.js";import{n as oa,r as ze,t as la}from"./requests-9-v2bhoi.js";import{t as ne}from"./createLucideIcon-w-Qo9n0R.js";import{a as ia,i as nt,l as st,n as Me,o as ye,r as ca,s as Le,t as da}from"./state-DDag0B_B.js";import{n as ma}from"./LazyAnyLanguageCodeMirror-B2JvSXP-.js";import{t as pa}from"./x-C-Eq0ag8.js";import{a as ha,i as Oe,n as xa,r as ot,t as be}from"./tree-actions-DJTGQWz0.js";import{a as fa}from"./markdown-renderer-C9vdWclk.js";import{u as ua}from"./toDate-Ct2FT81-.js";import{t as lt}from"./copy-3iHFdt22.js";import{t as $e}from"./external-link-BOlXZUla.js";import{a as ya,i as it,n as ct,r as ga,t as ja}from"./file-icons-Czm7CWoc.js";import{t as dt}from"./file-CJH9JNGH.js";import{i as mt,r as ba,t as pt}from"./add-connection-dialog-wLF3on0N.js";import{n as ve,t as va}from"./spinner-D-V4psAa.js";import{a as wa,c as Na,d as ka,f as Sa,i as Ca,l as _a,n as Fa,r as Ma,t as Pa,u as Da}from"./file-name-input-CjWG0FWT.js";import{t as ht}from"./plus-AgXtozBz.js";import{t as xt}from"./refresh-cw-CYq4mK5a.js";import{t as Ta}from"./save-DBuEmnnF.js";import{t as za}from"./triangle-alert-BL4YVsPy.js";import{n as La,t as Oa}from"./es-gYgfF8y5.js";import"./dist-DcwTQG1A.js";import"./dist-DnjsPBRJ.js";import"./dist-BJZAIIze.js";import"./dist-aRc_dRed.js";import"./dist-CPjTeT8p.js";import{t as re}from"./use-toast-BwJoaaDM.js";import{t as $a}from"./paths-BKO-pHK6.js";import"./session-BmukRjSi.js";import"./purify.es-CWmnYhGI.js";import"./dates-C2LWzsCZ.js";import{n as we}from"./copy-Bxb1_Gtw.js";import{t as Ba}from"./copy-icon-neDQUo4Q.js";import{t as Be}from"./context-BFPaAUK_.js";import{n as ft}from"./ImperativeModal-fY-ZfT0b.js";import{t as Ra}from"./blob-C3EfaMOb.js";import"./tooltip-B7U4xkIN.js";import"./vega-loader.browser-Dun7Qe4B.js";import"./defaultLocale-DOVIEEPN.js";import"./defaultLocale-BUCH2FMc.js";import{n as Va,t as Ia}from"./alert-jlwhGxSb.js";import{n as ut}from"./error-banner-BSxEOIn2.js";import"./chunk-5FQGJX7Z-Cp0LZT-a.js";import"./html-to-image-1vflBYah.js";import{o as Ea}from"./focus-DTmSq3hN.js";import{n as Re}from"./useAsyncData-Bg5iAViP.js";import"./react-resizable-panels.browser.esm-Z-MD3n3J.js";import{a as Aa,f as Ha,o as yt,t as qa}from"./command-Dqxie4gq.js";import{a as Ua}from"./renderShortcut-Bl8_FVn8.js";import{t as Ka}from"./bundle.esm-D0TWQ6iT.js";import{n as Wa}from"./pathUtils-Bfcp5m-a.js";import{n as Ga}from"./semaphore-DtBYRzWS.js";import{t as Ja}from"./empty-state-CqJvEFRk.js";import{t as Pe}from"./formatting-CDf6w1Kt.js";import{a as Ya,i as Xa,n as gt,r as jt,t as bt}from"./components-D-aPO6md.js";import{n as vt,t as Za}from"./marimo-icons-C_nFooxr.js";import{t as Qa}from"./links-CZr5bjvo.js";var er=ne("book-plus",[["path",{d:"M12 7v6",key:"lw1j43"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"M9 10h6",key:"9gxzsh"}]]),tr=ne("copy-minus",[["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),wt=ne("file-plus-corner",[["path",{d:"M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35",key:"17jvcc"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M14 19h6",key:"bvotb8"}],["path",{d:"M17 16v6",key:"18yu1i"}]]),ar=ne("file-symlink",[["path",{d:"M4 11V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h7",key:"huwfnr"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m10 18 3-3-3-3",key:"18f6ys"}]]),Nt=ne("folder-plus",[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]),kt=ne("list-tree",[["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"M3 10a2 2 0 0 0 2 2h3",key:"1npucw"}],["path",{d:"M3 5v12a2 2 0 0 0 2 2h3",key:"x1gjn2"}]]),rr=ne("square-play",[["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}]]),St=ne("view",[["path",{d:"M21 17v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-2",key:"mrq65r"}],["path",{d:"M21 7V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2",key:"be3xqs"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["path",{d:"M18.944 12.33a1 1 0 0 0 0-.66 7.5 7.5 0 0 0-13.888 0 1 1 0 0 0 0 .66 7.5 7.5 0 0 0 13.888 0",key:"11ak4c"}]]),O=Je(At(),1),nr=oe(),a=Je(Jt(),1);const Ct=t=>{let e=(0,nr.c)(17),{filename:r,filenameIcon:o,onBack:i,onRefresh:n,onDownload:m,actions:l}=t,c;e[0]===i?c=e[1]:(c=i&&(0,a.jsx)(Z,{content:"Back to file list",children:(0,a.jsx)(A,{variant:"text",size:"xs",onClick:i,children:(0,a.jsx)(st,{className:"h-4 w-4"})})}),e[0]=i,e[1]=c);let s;e[2]!==r||e[3]!==o?(s=r?(0,a.jsxs)("span",{className:"flex items-center gap-1.5 flex-1 min-w-0 text-xs font-semibold truncate",children:[o,r]}):(0,a.jsx)("span",{className:"flex-1"}),e[2]=r,e[3]=o,e[4]=s):s=e[4];let f;e[5]===n?f=e[6]:(f=n&&(0,a.jsx)(Z,{content:"Refresh",children:(0,a.jsx)(A,{variant:"text",size:"xs",onClick:n,children:(0,a.jsx)(xt,{className:"h-3.5 w-3.5"})})}),e[5]=n,e[6]=f);let p;e[7]===m?p=e[8]:(p=m&&(0,a.jsx)(Z,{content:"Download",children:(0,a.jsx)(A,{variant:"text",size:"xs",onClick:m,children:(0,a.jsx)(Fe,{className:"h-3.5 w-3.5"})})}),e[7]=m,e[8]=p);let x;e[9]!==l||e[10]!==f||e[11]!==p?(x=(0,a.jsxs)("div",{className:"flex items-center gap-0.5 shrink-0",children:[f,l,p]}),e[9]=l,e[10]=f,e[11]=p,e[12]=x):x=e[12];let u;return e[13]!==c||e[14]!==s||e[15]!==x?(u=(0,a.jsxs)("div",{className:"flex items-center shrink-0 border-b px-1 gap-1",children:[c,s,x]}),e[13]=c,e[14]=s,e[15]=x,e[16]=u):u=e[16],u};var sr=new Set(["http","file","in-memory"]);function Ve(t){return JSON.stringify(t).slice(1,-1)}const _t=[{id:"read-file",label:"Insert read snippet",icon:er,getCode:t=>{if(t.entry.kind==="directory")return null;let e=Ve(t.entry.path);return t.backendType==="obstore"?`_data = ${t.variableName}.get("${e}").bytes()
2
2
  _data`:`_data = ${t.variableName}.cat_file("${e}")
3
3
  _data`}},{id:"download-file",label:"Insert download snippet",icon:ar,getCode:t=>{if(t.entry.kind==="directory")return null;let e=Ve(t.entry.path);if(t.backendType==="obstore")return sr.has(t.protocol)?null:`from datetime import timedelta
4
4
  from obstore import sign