@marimo-team/frontend 0.23.7-dev15 → 0.23.7-dev16

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 +1 @@
1
- import{s as T}from"./chunk-LvLJmgfZ.js";import{u as P}from"./useEvent-D91BmmQi.js";import{t as L}from"./react-Bj1aDYRI.js";import{E as U,g as $,gi as V,x as W}from"./cells-BBDzmUIS.js";import"./react-dom-CSu739Rf.js";import{t as E}from"./compiler-runtime-B3qBwwSJ.js";import{n as I}from"./constants-DMpttj8Q.js";import{T as F,l as B,m as H}from"./config-CPqw1wUv.js";import{t as M}from"./cn-DCUzRj2J.js";import{t as q}from"./jsx-runtime-BqBOg78p.js";import"./fullscreen-BDxedMYP.js";import"./popover-UExmgBsf.js";import{I as G,_t as J,b as K}from"./JsonOutput-B0sjIMBK.js";import{r as Q}from"./download-QGh9oR1D.js";import{n as X,t as R}from"./button-D9nb17Rw.js";import"./dist-BrR4M-k3.js";import"./cjs-BRGiG41H.js";import"./main-B0OX4z33.js";import"./useNonce-DfoVjkkH.js";import{r as Y}from"./requests-DIwGYs0l.js";import"./layout-C1dvirgi.js";import{c as Z}from"./state-B34hXjp9.js";import"./markdown-renderer-CVd_mMPt.js";import{t as ee}from"./copy-BwrPA9zQ.js";import{i as te,l as re,n as se,r as O,t as oe,u as ae}from"./panels-Z5fVmDRY.js";import{t as ie}from"./spinner-Bhir8k53.js";import"./dist-DQOq2Tf-.js";import"./dist-DBiqbYe-.js";import"./dist-VjDnmGCZ.js";import"./dist-E6ttb8td.js";import"./dist-B324sPca.js";import{t as le}from"./use-toast-T0_cQDma.js";import{t as ne}from"./session-VtovaFBS.js";import"./purify.es-DBmVz-Wl.js";import"./dates-CAlnO9QB.js";import{n as me}from"./copy-BCF-tANo.js";import{a as ce,c as de,l as pe,n as he,r as fe,t as xe}from"./dialog-Dj0qTFnG.js";import{t as be}from"./share-CqnSBwZy.js";import"./utils-CGtUbqcR.js";import"./vega-loader.browser-BegSZk0G.js";import"./defaultLocale-YteS-k_t.js";import"./defaultLocale-B6z1Qyqt.js";import{a as je}from"./cell-link-DqiCeeeS.js";import"./chunk-5FQGJX7Z-BReOK4Lg.js";import"./html-to-image-CAiN3VHj.js";import{n as ue,t as ge}from"./react-resizable-panels.browser.esm-BUNcfKXO.js";import"./esm-BmrwxxCo.js";import"./name-cell-input-DDQOQSsh.js";import{n as ye,t as ke}from"./marimo-icons-Dk6YhPWV.js";import"./ws-BV7dcs53.js";import"./dist-D_yqofzt.js";import"./dist-DdITFgCr.js";import"./dist-B847wb8t.js";import"./dist-Bu99ARwH.js";import"./dist-CQG39nVX.js";import"./dist-1sgFrolC.js";import"./dist-GYoBJCzF.js";import"./dist-BjkXqMhR.js";import"./dist-Bxj5sO2I.js";import"./esm-DN_A77ya.js";var _e=E(),Ne=T(L(),1),t=T(q(),1);const ve=o=>{let e=(0,_e.c)(27),{appConfig:s}=o,{setCells:r}=U(),{sendComponentValues:p}=Y(),n;e[0]===p?n=e[1]:(n=()=>(O.INSTANCE.start(p),we),e[0]=p,e[1]=n);let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=[],e[2]=l):l=e[2],(0,Ne.useEffect)(n,l);let m;e[3]===Symbol.for("react.memo_cache_sentinel")?(m=ne(),e[3]=m):m=e[3];let u;e[4]===r?u=e[5]:(u={autoInstantiate:!0,setCells:r,sessionId:m},e[4]=r,e[5]=u);let{connection:a,reconnect:_}=se(u),N=P(W),h;e[6]===a.state?h=e[7]:(h=H(a.state),e[6]=a.state,e[7]=h);let v=h,w=P($),f;e[8]!==s||e[9]!==w||e[10]!==v?(f=()=>v&&!w?(0,t.jsxs)(G,{milliseconds:2e3,fallback:null,children:[(0,t.jsx)(ie,{className:"mx-auto"}),(0,t.jsx)("p",{className:"text-center text-sm text-muted-foreground mt-2",children:"Connecting..."})]}):(0,t.jsx)(te,{appConfig:s,mode:"read"}),e[8]=s,e[9]=w,e[10]=v,e[11]=f):f=e[11];let S=f,c;e:{if(typeof window>"u"){c=null;break e}let y,i;if(e[12]===Symbol.for("react.memo_cache_sentinel")){if(i=new URL(window.location.href),!i.searchParams.has("file")){c=null;break e}i.searchParams.delete("file"),y=i.searchParams.toString(),e[12]=y,e[13]=i,e[14]=c}else y=e[12],i=e[13],c=e[14];let k=y;c=k?`${i.pathname}?${k}`:i.pathname}let g=c,C=s.width,x;e[15]===Symbol.for("react.memo_cache_sentinel")?(x=g&&(0,t.jsx)("div",{className:"flex items-center px-6 pt-4 sm:-mt-8",children:(0,t.jsxs)("a",{href:g,"aria-label":"Back to gallery",className:M(X({variant:"text",size:"sm"}),"gap-2 px-0 text-muted-foreground hover:text-foreground"),children:[(0,t.jsx)(Z,{className:"size-4","aria-hidden":!0}),(0,t.jsx)("span",{children:"Back"})]})}),e[15]=x):x=e[15];let b;e[16]===a?b=e[17]:(b=(0,t.jsx)(ae,{connection:a,className:"sm:pt-8",children:x}),e[16]=a,e[17]=b);let d;e[18]===S?d=e[19]:(d=S(),e[18]=S,e[19]=d);let j;return e[20]!==s.width||e[21]!==a||e[22]!==N||e[23]!==_||e[24]!==b||e[25]!==d?(j=(0,t.jsxs)(re,{connection:a,isRunning:N,width:C,onReconnect:_,children:[b,d]}),e[20]=s.width,e[21]=a,e[22]=N,e[23]=_,e[24]=b,e[25]=d,e[26]=j):j=e[26],j};function we(){O.INSTANCE.stop()}var A=E();const Se=()=>{let o=(0,A.c)(3),e=P(V);if(!B()||!e)return null;let s;o[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsxs)("span",{children:["Static"," ",(0,t.jsx)("a",{href:I.githubPage,target:"_blank",className:"text-(--sky-11) font-medium underline",children:"marimo"})," ","notebook - Run or edit for full interactivity"]}),o[0]=s):s=o[0];let r;return o[1]===e?r=o[2]:(r=(0,t.jsxs)("div",{className:"px-4 py-2 bg-(--sky-2) border-b border-(--sky-7) text-(--sky-11) flex justify-between items-center gap-4 print:hidden text-sm","data-testid":"static-notebook-banner",children:[s,(0,t.jsx)("span",{className:"shrink-0",children:(0,t.jsx)(Ce,{code:e})})]}),o[1]=e,o[2]=r),r};var Ce=o=>{let e=(0,A.c)(39),{code:s}=o,r=je()||"notebook.py",p=r.lastIndexOf("/");p!==-1&&(r=r.slice(p+1));let n=window.location.href,l;e[0]===s?l=e[1]:(l=be({code:s,baseUrl:`${I.molab}/new`}),e[0]=s,e[1]=l);let m=l,u;e[2]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(pe,{asChild:!0,children:(0,t.jsx)(R,{"data-testid":"static-notebook-dialog-trigger",variant:"outline",size:"xs",children:"Run or Edit"})}),e[2]=u):u=e[2];let a;e[3]===r?a=e[4]:(a=(0,t.jsx)(de,{children:r}),e[3]=r,e[4]=a);let _;e[5]===Symbol.for("react.memo_cache_sentinel")?(_=(0,t.jsxs)("p",{children:["This is a static"," ",(0,t.jsx)("a",{href:I.githubPage,target:"_blank",className:"text-(--sky-11) hover:underline font-medium",children:"marimo"})," ","notebook. To run interactively:"]}),e[5]=_):_=e[5];let N;e[6]===Symbol.for("react.memo_cache_sentinel")?(N=(0,t.jsx)("br",{}),e[6]=N):N=e[6];let h;e[7]===r?h=e[8]:(h=(0,t.jsx)("div",{className:"rounded-lg p-3 border bg-(--sky-2) border-(--sky-7)",children:(0,t.jsxs)("div",{className:"font-mono text-(--sky-11) leading-relaxed",children:["pip install marimo",N,"marimo edit ",r]})}),e[7]=r,e[8]=h);let v;e[9]===Symbol.for("react.memo_cache_sentinel")?(v=!n.endsWith(".html")&&(0,t.jsxs)("div",{className:"rounded-lg p-3 border bg-(--sky-2) border-(--sky-7)",children:[(0,t.jsx)("div",{className:"text-sm text-(--sky-12) mb-1",children:"Or run directly from URL:"}),(0,t.jsxs)("div",{className:"font-mono text-(--sky-11) break-all",children:["marimo edit ",window.location.href]})]}),e[9]=v):v=e[9];let w;e[10]===Symbol.for("react.memo_cache_sentinel")?(w=(0,t.jsx)(ye,{size:12,strokeWidth:1.5,className:"mr-1.5 mt-px text-(--grass-11)"}),e[10]=w):w=e[10];let f;e[11]===m?f=e[12]:(f=(0,t.jsx)(R,{asChild:!0,variant:"outline",size:"xs",className:"shrink-0",children:(0,t.jsxs)("a",{href:m,target:"_blank",rel:"noopener noreferrer",children:[w,"Open in molab"]})}),e[11]=m,e[12]=f);let S;e[13]===Symbol.for("react.memo_cache_sentinel")?(S=(0,t.jsxs)("p",{className:"text-sm text-(--sky-12)",children:["Run this notebook in"," ",(0,t.jsx)("span",{className:"font-semibold",children:"molab"}),", marimo's cloud-hosted notebook platform."]}),e[13]=S):S=e[13];let c;e[14]===f?c=e[15]:(c=(0,t.jsxs)("div",{className:"pt-3 border-t flex gap-2 items-center",children:[f,S]}),e[14]=f,e[15]=c);let g;e[16]!==c||e[17]!==h?(g=(0,t.jsxs)(fe,{className:"pt-3 text-left space-y-3",children:[_,h,v,c]}),e[16]=c,e[17]=h,e[18]=g):g=e[18];let C;e[19]!==g||e[20]!==a?(C=(0,t.jsxs)(ce,{children:[a,g]}),e[19]=g,e[20]=a,e[21]=C):C=e[21];let x;e[22]===s?x=e[23]:(x=async()=>{await me(s),le({title:"Copied to clipboard"})},e[22]=s,e[23]=x);let b;e[24]===Symbol.for("react.memo_cache_sentinel")?(b=(0,t.jsx)(ee,{className:"w-3 h-3 mr-2"}),e[24]=b):b=e[24];let d;e[25]===x?d=e[26]:(d=(0,t.jsxs)(R,{"data-testid":"copy-static-notebook-dialog-button",variant:"outline",size:"sm",onClick:x,children:[b,"Copy code"]}),e[25]=x,e[26]=d);let j;e[27]!==s||e[28]!==r?(j=()=>{Q(new Blob([s],{type:"text/plain"}),r)},e[27]=s,e[28]=r,e[29]=j):j=e[29];let y;e[30]===Symbol.for("react.memo_cache_sentinel")?(y=(0,t.jsx)(J,{className:"w-3 h-3 mr-2"}),e[30]=y):y=e[30];let i;e[31]===j?i=e[32]:(i=(0,t.jsxs)(R,{"data-testid":"download-static-notebook-dialog-button",variant:"outline",size:"sm",onClick:j,children:[y,"Download"]}),e[31]=j,e[32]=i);let k;e[33]!==d||e[34]!==i?(k=(0,t.jsxs)("div",{className:"flex gap-3 pt-2",children:[d,i]}),e[33]=d,e[34]=i,e[35]=k):k=e[35];let z;return e[36]!==C||e[37]!==k?(z=(0,t.jsxs)(xe,{children:[u,(0,t.jsxs)(he,{children:[C,k]})]}),e[36]=C,e[37]=k,e[38]=z):z=e[38],z},D=E(),ze=F()||B(),Ie=o=>{let e=(0,D.c)(9),s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(Se,{}),e[0]=s):s=e[0];let r;e[1]===o.appConfig?r=e[2]:(r=(0,t.jsx)(ve,{appConfig:o.appConfig}),e[1]=o.appConfig,e[2]=r);let p;e[3]===Symbol.for("react.memo_cache_sentinel")?(p=ze&&(0,t.jsx)(Re,{}),e[3]=p):p=e[3];let n;e[4]===r?n=e[5]:(n=(0,t.jsxs)(ge,{children:[s,r,p]}),e[4]=r,e[5]=n);let l;e[6]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)(K,{}),e[6]=l):l=e[6];let m;return e[7]===n?m=e[8]:(m=(0,t.jsx)(oe,{children:(0,t.jsxs)(ue,{direction:"horizontal",autoSaveId:"marimo:chrome:v1:run1",children:[n,l]})}),e[7]=n,e[8]=m),m},Re=()=>{let o=(0,D.c)(1),e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("div",{className:"fixed bottom-0 right-0 z-50","data-testid":"watermark",children:(0,t.jsxs)("a",{href:I.githubPage,target:"_blank",className:"text-sm text-(--grass-11) font-bold tracking-wide transition-colors bg-(--grass-4) hover:bg-(--grass-5) border-t border-l border-(--grass-8) px-3 py-1 rounded-tl-md flex items-center gap-2",children:[(0,t.jsx)("span",{children:"made with marimo"}),(0,t.jsx)(ke,{className:"h-4 w-auto"})]})}),o[0]=e):e=o[0],e},Pe=Ie;export{Pe as default};
1
+ import{s as T}from"./chunk-LvLJmgfZ.js";import{u as P}from"./useEvent-D91BmmQi.js";import{t as L}from"./react-Bj1aDYRI.js";import{E as U,g as $,gi as V,x as W}from"./cells-BBDzmUIS.js";import"./react-dom-CSu739Rf.js";import{t as E}from"./compiler-runtime-B3qBwwSJ.js";import{n as I}from"./constants-DMpttj8Q.js";import{T as F,l as B,m as H}from"./config-CPqw1wUv.js";import{t as M}from"./cn-DCUzRj2J.js";import{t as q}from"./jsx-runtime-BqBOg78p.js";import"./fullscreen-BDxedMYP.js";import"./popover-UExmgBsf.js";import{I as G,_t as J,b as K}from"./JsonOutput-B0sjIMBK.js";import{r as Q}from"./download-QGh9oR1D.js";import{n as X,t as R}from"./button-D9nb17Rw.js";import"./dist-BrR4M-k3.js";import"./cjs-BRGiG41H.js";import"./main-B0OX4z33.js";import"./useNonce-DfoVjkkH.js";import{r as Y}from"./requests-DIwGYs0l.js";import"./layout-C1dvirgi.js";import{c as Z}from"./state-B34hXjp9.js";import"./markdown-renderer-CVd_mMPt.js";import{t as ee}from"./copy-BwrPA9zQ.js";import{i as te,l as re,n as se,r as O,t as oe,u as ae}from"./panels-Z5fVmDRY.js";import{t as ie}from"./spinner-Bhir8k53.js";import"./dist-DQOq2Tf-.js";import"./dist-DBiqbYe-.js";import"./dist-VjDnmGCZ.js";import"./dist-E6ttb8td.js";import"./dist-B324sPca.js";import{t as le}from"./use-toast-T0_cQDma.js";import{t as ne}from"./session-VtovaFBS.js";import"./purify.es-DBmVz-Wl.js";import"./dates-CAlnO9QB.js";import{n as me}from"./copy-BCF-tANo.js";import{a as ce,c as de,l as pe,n as he,r as fe,t as xe}from"./dialog-Dj0qTFnG.js";import{t as be}from"./share-CqnSBwZy.js";import"./utils-CGtUbqcR.js";import"./vega-loader.browser-BegSZk0G.js";import"./defaultLocale-YteS-k_t.js";import"./defaultLocale-B6z1Qyqt.js";import{a as je}from"./cell-link-DqiCeeeS.js";import"./chunk-5FQGJX7Z-BReOK4Lg.js";import"./html-to-image-CAiN3VHj.js";import{n as ue,t as ge}from"./react-resizable-panels.browser.esm-BUNcfKXO.js";import"./esm-BmrwxxCo.js";import"./name-cell-input-DDQOQSsh.js";import{n as ye,t as ke}from"./marimo-icons-Dk6YhPWV.js";import"./ws-BV7dcs53.js";import"./dist-D_yqofzt.js";import"./dist-DdITFgCr.js";import"./dist-B847wb8t.js";import"./dist-Bu99ARwH.js";import"./dist-CQG39nVX.js";import"./dist-1sgFrolC.js";import"./dist-GYoBJCzF.js";import"./dist-BjkXqMhR.js";import"./dist-Bxj5sO2I.js";import"./esm-DN_A77ya.js";var _e=E(),Ne=T(L(),1),t=T(q(),1);const ve=o=>{let e=(0,_e.c)(27),{appConfig:s}=o,{setCells:r}=U(),{sendComponentValues:p}=Y(),n;e[0]===p?n=e[1]:(n=()=>(O.INSTANCE.start(p),we),e[0]=p,e[1]=n);let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=[],e[2]=l):l=e[2],(0,Ne.useEffect)(n,l);let m;e[3]===Symbol.for("react.memo_cache_sentinel")?(m=ne(),e[3]=m):m=e[3];let u;e[4]===r?u=e[5]:(u={autoInstantiate:!0,setCells:r,sessionId:m},e[4]=r,e[5]=u);let{connection:a,reconnect:_}=se(u),N=P(W),h;e[6]===a.state?h=e[7]:(h=H(a.state),e[6]=a.state,e[7]=h);let v=h,w=P($),f;e[8]!==s||e[9]!==w||e[10]!==v?(f=()=>v&&!w?(0,t.jsxs)(G,{milliseconds:2e3,fallback:null,children:[(0,t.jsx)(ie,{className:"mx-auto"}),(0,t.jsx)("p",{className:"text-center text-sm text-muted-foreground mt-2",children:"Connecting..."})]}):(0,t.jsx)(te,{appConfig:s,mode:"read"}),e[8]=s,e[9]=w,e[10]=v,e[11]=f):f=e[11];let S=f,c;e:{if(typeof window>"u"){c=null;break e}let y,i;if(e[12]===Symbol.for("react.memo_cache_sentinel")){if(i=new URL(window.location.href),!i.searchParams.has("file")){c=null;break e}i.searchParams.delete("file"),y=i.searchParams.toString(),e[12]=y,e[13]=i,e[14]=c}else y=e[12],i=e[13],c=e[14];let k=y;c=k?`${i.pathname}?${k}`:i.pathname}let g=c,C=s.width,x;e[15]===Symbol.for("react.memo_cache_sentinel")?(x=g&&(0,t.jsx)("div",{className:"flex items-center px-6 pt-4 sm:-mt-8",children:(0,t.jsxs)("a",{href:g,"aria-label":"Back to gallery",className:M(X({variant:"text",size:"sm"}),"gap-2 px-0 text-muted-foreground hover:text-foreground"),children:[(0,t.jsx)(Z,{className:"size-4","aria-hidden":!0}),(0,t.jsx)("span",{children:"Back"})]})}),e[15]=x):x=e[15];let b;e[16]===a?b=e[17]:(b=(0,t.jsx)(ae,{connection:a,className:"sm:pt-8",children:x}),e[16]=a,e[17]=b);let d;e[18]===S?d=e[19]:(d=S(),e[18]=S,e[19]=d);let j;return e[20]!==s.width||e[21]!==a||e[22]!==N||e[23]!==_||e[24]!==b||e[25]!==d?(j=(0,t.jsxs)(re,{connection:a,isRunning:N,width:C,onReconnect:_,children:[b,d]}),e[20]=s.width,e[21]=a,e[22]=N,e[23]=_,e[24]=b,e[25]=d,e[26]=j):j=e[26],j};function we(){O.INSTANCE.stop()}var A=E();const Se=()=>{let o=(0,A.c)(3),e=P(V);if(!B()||!e)return null;let s;o[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsxs)("span",{children:["Static"," ",(0,t.jsx)("a",{href:I.githubPage,target:"_blank",className:"text-(--sky-11) font-medium underline",children:"marimo"})," ","notebook - Run or edit for full interactivity"]}),o[0]=s):s=o[0];let r;return o[1]===e?r=o[2]:(r=(0,t.jsxs)("div",{className:"px-4 py-2 bg-(--sky-2) border-b border-(--sky-7) text-(--sky-11) flex justify-between items-center gap-4 print:hidden text-sm","data-testid":"static-notebook-banner",children:[s,(0,t.jsx)("span",{className:"shrink-0",children:(0,t.jsx)(Ce,{code:e})})]}),o[1]=e,o[2]=r),r};var Ce=o=>{let e=(0,A.c)(39),{code:s}=o,r=je()||"notebook.py",p=r.lastIndexOf("/");p!==-1&&(r=r.slice(p+1));let n=window.location.href,l;e[0]===s?l=e[1]:(l=be({code:s,baseUrl:`${I.molab}/new`}),e[0]=s,e[1]=l);let m=l,u;e[2]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(pe,{asChild:!0,children:(0,t.jsx)(R,{"data-testid":"static-notebook-dialog-trigger",variant:"outline",size:"xs",children:"Run or Edit"})}),e[2]=u):u=e[2];let a;e[3]===r?a=e[4]:(a=(0,t.jsx)(de,{children:r}),e[3]=r,e[4]=a);let _;e[5]===Symbol.for("react.memo_cache_sentinel")?(_=(0,t.jsxs)("p",{children:["This is a static"," ",(0,t.jsx)("a",{href:I.githubPage,target:"_blank",className:"text-(--sky-11) hover:underline font-medium",children:"marimo"})," ","notebook. To run interactively:"]}),e[5]=_):_=e[5];let N;e[6]===Symbol.for("react.memo_cache_sentinel")?(N=(0,t.jsx)("br",{}),e[6]=N):N=e[6];let h;e[7]===r?h=e[8]:(h=(0,t.jsx)("div",{className:"rounded-lg p-3 border bg-(--sky-2) border-(--sky-7)",children:(0,t.jsxs)("div",{className:"font-mono text-(--sky-11) leading-relaxed",children:["pip install marimo",N,"marimo edit ",r]})}),e[7]=r,e[8]=h);let v;e[9]===Symbol.for("react.memo_cache_sentinel")?(v=!n.endsWith(".html")&&(0,t.jsxs)("div",{className:"rounded-lg p-3 border bg-(--sky-2) border-(--sky-7)",children:[(0,t.jsx)("div",{className:"text-sm text-(--sky-12) mb-1",children:"Or run directly from URL:"}),(0,t.jsxs)("div",{className:"font-mono text-(--sky-11) break-all",children:["marimo edit ",window.location.href]})]}),e[9]=v):v=e[9];let w;e[10]===Symbol.for("react.memo_cache_sentinel")?(w=(0,t.jsx)(ye,{size:12,strokeWidth:1.5,className:"mr-1.5 mt-px text-(--grass-11)"}),e[10]=w):w=e[10];let f;e[11]===m?f=e[12]:(f=(0,t.jsx)(R,{asChild:!0,variant:"outline",size:"xs",className:"shrink-0",children:(0,t.jsxs)("a",{href:m,target:"_blank",rel:"noopener noreferrer",children:[w,"Open in molab"]})}),e[11]=m,e[12]=f);let S;e[13]===Symbol.for("react.memo_cache_sentinel")?(S=(0,t.jsxs)("p",{className:"text-sm text-(--sky-12)",children:["Run this notebook in"," ",(0,t.jsx)("span",{className:"font-semibold",children:"molab"}),", marimo's cloud-hosted notebook platform."]}),e[13]=S):S=e[13];let c;e[14]===f?c=e[15]:(c=(0,t.jsxs)("div",{className:"pt-3 border-t flex gap-2 items-center",children:[f,S]}),e[14]=f,e[15]=c);let g;e[16]!==c||e[17]!==h?(g=(0,t.jsxs)(fe,{className:"pt-3 text-left space-y-3",children:[_,h,v,c]}),e[16]=c,e[17]=h,e[18]=g):g=e[18];let C;e[19]!==g||e[20]!==a?(C=(0,t.jsxs)(ce,{children:[a,g]}),e[19]=g,e[20]=a,e[21]=C):C=e[21];let x;e[22]===s?x=e[23]:(x=async()=>{await me(s),le({title:"Copied to clipboard"})},e[22]=s,e[23]=x);let b;e[24]===Symbol.for("react.memo_cache_sentinel")?(b=(0,t.jsx)(ee,{className:"w-3 h-3 mr-2"}),e[24]=b):b=e[24];let d;e[25]===x?d=e[26]:(d=(0,t.jsxs)(R,{"data-testid":"copy-static-notebook-dialog-button",variant:"outline",size:"sm",onClick:x,children:[b,"Copy code"]}),e[25]=x,e[26]=d);let j;e[27]!==s||e[28]!==r?(j=()=>{Q(new Blob([s],{type:"text/plain"}),r)},e[27]=s,e[28]=r,e[29]=j):j=e[29];let y;e[30]===Symbol.for("react.memo_cache_sentinel")?(y=(0,t.jsx)(J,{className:"w-3 h-3 mr-2"}),e[30]=y):y=e[30];let i;e[31]===j?i=e[32]:(i=(0,t.jsxs)(R,{"data-testid":"download-static-notebook-dialog-button",variant:"outline",size:"sm",onClick:j,children:[y,"Download"]}),e[31]=j,e[32]=i);let k;e[33]!==d||e[34]!==i?(k=(0,t.jsxs)("div",{className:"flex gap-3 pt-2",children:[d,i]}),e[33]=d,e[34]=i,e[35]=k):k=e[35];let z;return e[36]!==C||e[37]!==k?(z=(0,t.jsxs)(xe,{children:[u,(0,t.jsxs)(he,{children:[C,k]})]}),e[36]=C,e[37]=k,e[38]=z):z=e[38],z},D=E(),ze=F()||B(),Ie=o=>{let e=(0,D.c)(9),s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(Se,{}),e[0]=s):s=e[0];let r;e[1]===o.appConfig?r=e[2]:(r=(0,t.jsx)(ve,{appConfig:o.appConfig}),e[1]=o.appConfig,e[2]=r);let p;e[3]===Symbol.for("react.memo_cache_sentinel")?(p=ze&&(0,t.jsx)(Re,{}),e[3]=p):p=e[3];let n;e[4]===r?n=e[5]:(n=(0,t.jsxs)(ge,{children:[s,r,p]}),e[4]=r,e[5]=n);let l;e[6]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)(K,{}),e[6]=l):l=e[6];let m;return e[7]===n?m=e[8]:(m=(0,t.jsx)(oe,{children:(0,t.jsxs)(ue,{direction:"horizontal",autoSaveId:"marimo:chrome:v1:run1",children:[n,l]})}),e[7]=n,e[8]=m),m},Re=()=>{let o=(0,D.c)(1),e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("div",{className:"fixed bottom-0 right-0 z-50 print:hidden","data-testid":"watermark",children:(0,t.jsxs)("a",{href:I.githubPage,target:"_blank",className:"text-sm text-(--grass-11) font-bold tracking-wide transition-colors bg-(--grass-4) hover:bg-(--grass-5) border-t border-l border-(--grass-8) px-3 py-1 rounded-tl-md flex items-center gap-2",children:[(0,t.jsx)("span",{children:"made with marimo"}),(0,t.jsx)(ke,{className:"h-4 w-auto"})]})}),o[0]=e):e=o[0],e},Pe=Ie;export{Pe as default};
package/dist/index.html CHANGED
@@ -66,7 +66,7 @@
66
66
  <marimo-server-token data-token="{{ server_token }}" hidden></marimo-server-token>
67
67
  <!-- /TODO -->
68
68
  <title>{{ title }}</title>
69
- <script type="module" crossorigin src="./assets/index-CH2ZE_q-.js"></script>
69
+ <script type="module" crossorigin src="./assets/index-DLZItUgg.js"></script>
70
70
  <link rel="modulepreload" crossorigin href="./assets/preload-helper-DItdS47A.js">
71
71
  <link rel="modulepreload" crossorigin href="./assets/chunk-LvLJmgfZ.js">
72
72
  <link rel="modulepreload" crossorigin href="./assets/react-Bj1aDYRI.js">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marimo-team/frontend",
3
- "version": "0.23.7-dev15",
3
+ "version": "0.23.7-dev16",
4
4
  "main": "dist/main.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -34,7 +34,10 @@ const RunPage = (props: Props) => {
34
34
 
35
35
  const Watermark = () => {
36
36
  return (
37
- <div className="fixed bottom-0 right-0 z-50" data-testid="watermark">
37
+ <div
38
+ className="fixed bottom-0 right-0 z-50 print:hidden"
39
+ data-testid="watermark"
40
+ >
38
41
  <a
39
42
  href={Constants.githubPage}
40
43
  target="_blank"