@malloy-publisher/app 0.12.1 → 0.12.2
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.
- package/dist/api-doc.yaml +17 -3
- package/dist/assets/{EnvironmentPage-D0VBeb5V.js → EnvironmentPage-Bur-WhHL.js} +1 -1
- package/dist/assets/{HomePage-CLEMChAH.js → HomePage-C-mHsU3M.js} +1 -1
- package/dist/assets/{MainPage-0vOhDrkX.js → MainPage-Dmzmn9Mt.js} +1 -1
- package/dist/assets/ModelPage-ClSgGwYc.js +2 -0
- package/dist/assets/PackagePage-C4nKI00H.js +1 -0
- package/dist/assets/PackageSplatRoute-D6GSpadt.js +2 -0
- package/dist/assets/{RenderedResult-AyM-RQaA.es-loABPOhf.js → RenderedResult-DEjFM1DL.es-hdq4xdyP.js} +7 -7
- package/dist/assets/{RouteError-XJqJwHPb.js → RouteError-Ct5JhhH3.js} +1 -1
- package/dist/assets/{ThemeEditorPage-8w42fXGN.js → ThemeEditorPage-DoIC196m.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-SgUIGblf.js → ToggleButtonGroup-9ITznW0t.js} +1 -1
- package/dist/assets/{documentRoutes-CtOrNSfQ.js → documentRoutes-DHQw63FD.js} +1 -1
- package/dist/assets/{editPageMounted-DNUrCc4z.js → editPageMounted-DQ2kfKQx.js} +2 -2
- package/dist/assets/index-DT27peli.js +512 -0
- package/dist/assets/{index-DfYBaQ7M.js → index-Dbg1nxCx.js} +1 -1
- package/dist/assets/{index-DQEP4oWm.js → index-iwwnDmO4.js} +1 -1
- package/dist/assets/{index-MVNgiF-4.js → index-u-HKFk7y.js} +1 -1
- package/dist/assets/index.es-Cu-znYwd.js +144 -0
- package/dist/assets/usePackageLinkNavigate-YsMXY8yR.js +1 -0
- package/dist/assets/{usePackageRoute-DyDTsrm1.js → usePackageRoute-D8N0M9Rp.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/ModelPage-DUzNdrT3.js +0 -2
- package/dist/assets/PackagePage-40JPQIiH.js +0 -1
- package/dist/assets/PackageSplatRoute-DtdzKVDt.js +0 -2
- package/dist/assets/index-B49NC27i.js +0 -483
- package/dist/assets/index.es-B7-CYE4L.js +0 -144
- package/dist/assets/usePackageLinkNavigate-DykOPLjz.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as u,r as c}from"./index-DT27peli.js";import{w as e}from"./usePackageRoute-D8N0M9Rp.js";function p(t,a,r){const s=u();return c.useCallback((o,i)=>s(e(o,t,a,r),i),[s,t,a,r])}export{p as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{A as f,a9 as p}from"./index-DT27peli.js";const $=/^(latest|[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?(\+[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?)$/,m="latest",l=e=>$.test(e),g=e=>{const n=e.indexOf("/"),o=n===-1?e:e.slice(0,n);if(l(o))return{segment:o,rest:n===-1?"":e.slice(n+1)}},h=e=>e===void 0||e===m?void 0:e,I=(e,n,o)=>`/${encodeURIComponent(e)}/${encodeURIComponent(n)}${o===void 0?"":`/${encodeURIComponent(o)}`}`,E=(e,n,o,t)=>{if(t===void 0)return e;const i=[`/${encodeURIComponent(n)}/${encodeURIComponent(o)}`,`/${n}/${o}`];for(const s of i){if(e!==s&&!e.startsWith(`${s}/`))continue;const r=e.slice(s.length).replace(/^\//,"");return`${I(n,o,t)}${r===""?"":`/${r}`}`}return e};function R(e={}){const n=f(),o=n.environmentName,t=n.packageName,i=n["*"],s=i===void 0?void 0:g(i),{versions:r,isPending:d,isError:v,refetch:u}=p(o??"",t??"",{enabled:e.always===!0||s!==void 0}),a=r.length>0,c=s&&a?s:void 0;return{environmentName:o,packageName:t,versionSegment:c?.segment,versionId:h(c?.segment),path:c?c.rest:i,versioned:a,deciding:s!==void 0&&d,undecided:s!==void 0&&v,retry:u,writable:!a&&!d&&!v}}export{m as L,I as p,R as u,h as v,E as w};
|
package/dist/index.html
CHANGED
|
@@ -16,7 +16,7 @@ SPDX-License-Identifier: MIT
|
|
|
16
16
|
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap"
|
|
17
17
|
/>
|
|
18
18
|
<title>Malloy Publisher</title>
|
|
19
|
-
<script type="module" crossorigin src="/assets/index-
|
|
19
|
+
<script type="module" crossorigin src="/assets/index-DT27peli.js"></script>
|
|
20
20
|
<link rel="stylesheet" crossorigin href="/assets/index-DUqldpo0.css">
|
|
21
21
|
</head>
|
|
22
22
|
<body>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@malloy-publisher/app",
|
|
3
3
|
"description": "Malloy Publisher Console (the built-in web UI)",
|
|
4
|
-
"version": "0.12.
|
|
4
|
+
"version": "0.12.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"test:playwright:headed": "bunx playwright test --config=playwright.config.ts --headed"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@malloy-publisher/sdk": "^0.12.
|
|
45
|
+
"@malloy-publisher/sdk": "^0.12.2",
|
|
46
46
|
"@mui/icons-material": "^7.0.2",
|
|
47
47
|
"@mui/material": "^7.0.2",
|
|
48
48
|
"@tanstack/react-query": "^5.59.16",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.es-B7-CYE4L.js","assets/index-B49NC27i.js","assets/index-DUqldpo0.css","assets/ToggleButtonGroup-SgUIGblf.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{g as oe,a as ae,d8 as E,d9 as ie,r as f,u as le,h as ce,j as n,d as de,y as V,f as ue,s as pe,T as C,m as fe,d7 as he,da as P,p as xe,G as I,db as me,dc as ye,dd as q,de as z,a5 as O,F as N,I as x,df as ge,a7 as R,dg as G,a4 as ve,aw as be,dh as je,bp as ke,di as we,E as Ce,A as D,dj as Ee,as as Re,a2 as H,a3 as X,dk as Se,dl as De,a6 as K,dm as $e,dn as Y,H as Ae,dp as Le,a1 as Te,a0 as F,dq as B,C as Me,O as Pe,dr as Fe,ds as U,dt as Be}from"./index-B49NC27i.js";import{i as A,w as Ue,a as Z,l as _e}from"./documentRoutes-CtOrNSfQ.js";import{v as We,w as L,u as J}from"./usePackageRoute-DyDTsrm1.js";import{u as Ve}from"./usePackageLinkNavigate-DykOPLjz.js";import{T as Q,P as $}from"./PackageSplatRoute-DtdzKVDt.js";import{a as Ie,l as ee}from"./editPageMounted-DNUrCc4z.js";function qe(e){return oe("MuiLink",e)}const ze=ae("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Oe=({theme:e,ownerState:t})=>{const s=t.color;if("colorSpace"in e&&e.colorSpace){const p=E(e,`palette.${s}.main`)||E(e,`palette.${s}`)||t.color;return e.alpha(p,.4)}const r=E(e,`palette.${s}.main`,!1)||E(e,`palette.${s}`,!1)||t.color,o=E(e,`palette.${s}.mainChannel`)||E(e,`palette.${s}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:ie(r,.4)},_={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Ne=e=>{const{classes:t,component:s,focusVisible:r,underline:o}=e,p={root:["root",`underline${V(o)}`,s==="button"&&"button",r&&"focusVisible"]};return ue(p,qe,t)},Ge=pe(C,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,t[`underline${V(s.underline)}`],s.component==="button"&&t.button]}})(fe(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:s})=>t==="always"&&s.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},{props:({underline:t,ownerState:s})=>t==="always"&&s.color==="inherit",style:e.colorSpace?{textDecorationColor:e.alpha("currentColor",.4)}:null},...Object.entries(e.palette).filter(he()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${ze.focusVisible}`]:{outline:"auto"}}}]}))),He=f.forwardRef(function(t,s){const r=le({props:t,name:"MuiLink"}),o=ce(),{className:p,color:a="primary",component:i="a",onBlur:l,onFocus:c,TypographyClasses:u,underline:d="always",variant:h="inherit",sx:y,...b}=r,[m,g]=f.useState(!1),v=w=>{P(w.target)||g(!1),l&&l(w)},S=w=>{P(w.target)&&g(!0),c&&c(w)},j={...r,color:a,component:i,focusVisible:m,underline:d,variant:h},k=Ne(j);return n.jsx(Ge,{color:a,className:de(k.root,p),classes:u,component:i,onBlur:v,onFocus:S,ref:s,ownerState:j,variant:h,...b,sx:[..._[a]===void 0?[{color:a}]:[],...Array.isArray(y)?y:[y]],style:{...b.style,...d==="always"&&a!=="inherit"&&!_[a]&&{"--Link-underlineColor":Oe({theme:o,ownerState:j})}}})});function Xe(e,t,s){const r=xe(),{reports:o,settled:p,isError:a}=I(e,t,We(s)),i=p&&!a;return f.useCallback((l,c)=>{const u=l.path;if(!me(u))return"malformed";const d=ye(u,o),h=L(q(e,t,d.kind==="path"?d.report.path:u),e,t,s),y=new URLSearchParams(l.givens).toString();return r(h+(y?`?${y}`:""),c),d.kind==="path"?"resolved":i?"unresolved":"unverified"},[r,e,t,s,o,i])}const Ke='[data-tile-kind="query"]',Ye=".malloy-render, .malloy-table, [role='alert'], .MuiAlert-root",Ze=3e3;function te(e,t,s,r){const o=f.useRef(s);o.current=s;const p=f.useRef(!1);f.useEffect(()=>{if(!o.current||p.current)return;let a=0;const i={},l=()=>{clearTimeout(u),i.beat!==void 0&&clearInterval(i.beat),cancelAnimationFrame(a),i.observer?.disconnect()},c=()=>{p.current||(p.current=!0,l(),o.current?.())},u=setTimeout(c,Ze);if(!t)return()=>clearTimeout(u);const d=()=>{const h=e.current;if(!h||r&&h.querySelector(r)===null)return;const y=window.innerHeight;[...h.querySelectorAll(Ke)].filter(m=>{if(m.getBoundingClientRect().top>=y)return!1;const v=m.querySelector(Ye);return!v||v.getBoundingClientRect().height<8}).length===0&&a===0&&(a=requestAnimationFrame(()=>{a=requestAnimationFrame(c)}))};return i.observer=new MutationObserver(d),e.current&&i.observer.observe(e.current,{childList:!0,subtree:!0}),i.beat=setInterval(d,50),d(),l},[t,e,r])}function ne({environmentName:e,packageName:t,versionId:s,path:r,editable:o=r.endsWith(".malloy"),onReady:p}){const a=f.useRef(null);te(a,!0,p,`.${be.report}`);const{params:i,onGivensChange:l}=z(),{versionSegment:c}=J(),u=Xe(e,t,c),d=Ve(e,t,c),h=f.useMemo(()=>O({environmentName:e,packageName:t}),[e,t]),y=N();return f.useEffect(()=>{if(!o||y)return;const b=()=>void ve(()=>import("./index.es-B7-CYE4L.js"),__vite__mapDeps([0,1,2,3])),m=window.requestIdleCallback;if(m){const v=m(b);return()=>window.cancelIdleCallback?.(v)}const g=setTimeout(b,1500);return()=>clearTimeout(g)},[o,y]),n.jsx(x,{ref:a,sx:Q,children:r.endsWith(".malloynb")?n.jsx(ge,{resourceUri:R({environmentName:e,packageName:t,modelPath:r,versionId:s}),givens:i,onGivensChange:l,onNavigate:d,onDrillNavigate:u,maxResultSize:1024*1024}):n.jsx(G,{resourceUri:R({environmentName:e,packageName:t,versionId:s}),path:r,givens:i,onGivensChange:l,onNavigate:u,onLinkNavigate:d,onEvent:h,maxResultSize:1024*1024})})}function Je(){const[e,t]=f.useState(!1),s=f.useRef(!1),r=f.useRef(!1),o=f.useCallback(l=>{s.current=l,t(l)},[]),p=f.useCallback(()=>{r.current=!0},[]),a=je(f.useCallback(({currentLocation:l,nextLocation:c})=>s.current&&!r.current&&(l.pathname!==c.pathname||A(l.search)!==A(c.search)),[]));f.useEffect(()=>{if(!e)return;const l=c=>{c.preventDefault(),c.returnValue=""};return window.addEventListener("beforeunload",l),()=>window.removeEventListener("beforeunload",l)},[e]);const i=n.jsx(ke,{open:a.state==="blocked",canSave:!1,onKeepEditing:()=>a.reset?.(),onDiscard:()=>a.proceed?.()});return{onDirtyChange:o,leaving:p,dialog:i}}const Qe=X.lazy(()=>ee().then(e=>({default:e.ReportEditor}))),et=X.lazy(()=>ee().then(e=>({default:e.BuilderBar})));function tt(){const[e,t]=f.useState(null);return f.useEffect(()=>{t(document.getElementById("header-actions-portal"))},[]),e}function se({environmentName:e,packageName:t,path:s,layout:r="grid",onReady:o,quietLoading:p=!1,offstage:a=!1}){const i=Je();Ie();const[l]=f.useState(we),c=Ce(),{pathname:u,search:d}=D(),h=tt(),[y,b]=f.useState(),m=f.useRef(null),g=N();te(m,y!==void 0||g,o);const v=()=>c(`${u.replace(/\/$/,"")}${Ue(d)}`),S=f.useMemo(()=>O({environmentName:e,packageName:t}),[e,t]),j=n.jsx(G,{resourceUri:R({environmentName:e,packageName:t}),path:s,manifestStaleTime:1e4});return n.jsxs(x,{ref:m,sx:Q,children:[n.jsx(Ee,{children:n.jsx(f.Suspense,{fallback:p?null:j,children:n.jsx(Qe,{resourceUri:R({environmentName:e,packageName:t}),path:s,layout:r,keepDraft:l,onDirtyChange:i.onDirtyChange,onExit:v,onOpenModel:k=>c(`/${[e,t,...k.split("/")].map(encodeURIComponent).join("/")}`),onEvent:S,loading:p?null:j,onControlsChange:b},`${e}/${t}/${s}`)})}),i.dialog,h&&!a&&Re.createPortal(n.jsx(f.Suspense,{fallback:n.jsx(H,{variant:"contained",disableElevation:!0,onClick:v,children:"Done"}),children:n.jsx(et,{controls:y,onDone:v})}),h)]})}function nt({environmentName:e,packageName:t,versionSegment:s,routePath:r,edit:o,reports:p,children:a}){const{search:i}=D(),l=d=>L(q(e,t,d),e,t,s),c=Se(r);if(!c)return n.jsx(n.Fragment,{children:a});const u=De(c.name,p,c.prefer);return"found"in u?n.jsx(K,{replace:!0,to:`${l(u.found.path)}${o?Z(i):i}`}):"ambiguous"in u?n.jsxs(x,{sx:$,children:[n.jsxs(C,{variant:"h6",sx:{fontWeight:"fontWeightMedium"},children:["More than one report is named ",c.name]}),n.jsx(C,{variant:"body2",color:"text.secondary",sx:{mt:1},children:"This is an old link, which names a report by its file name alone. Open one by its path:"}),n.jsx(x,{component:"ul",sx:{mt:1},children:u.ambiguous.map(d=>n.jsx("li",{children:n.jsx($e,{to:l(d),style:{fontFamily:Y},children:d})},d))})]}):n.jsx(n.Fragment,{children:a})}function st({environmentName:e,packageName:t,routePath:s,edit:r,notFound:o,notFoundUntilListed:p=!1,versionId:a,versionSegment:i,readOnly:l=!1}){const{reports:c,settled:u,isFetching:d,isError:h,refetch:y}=I(e,t,a),{search:b}=D(),m=`${s}.malloy`,g=u?Ae(m,c):void 0,v=u&&!d&&!h,[S,j]=f.useState();f.useEffect(()=>{v&&j(m)},[v,m]);const k=g!==void 0||v||S===m,w=Le(e,t,m,r&&!l&&k&&!g),T=re=>n.jsx(nt,{environmentName:e,packageName:t,...i!==void 0?{versionSegment:i}:{},routePath:s,edit:r,reports:c,children:re});if(!k&&(p&&!r&&!g))return T(o);if(!k&&h&&!d)return n.jsx(x,{sx:$,children:n.jsxs(Te,{severity:"warning",action:n.jsx(H,{color:"inherit",size:"small",onClick:()=>void y(),children:"Retry"}),children:["Could not list this package's reports, so this page cannot tell what is at ",s,"."]})});if(!k)return n.jsx(F,{text:B.opening()});if(g)return n.jsx(rt,{environmentName:e,packageName:t,...a!==void 0?{versionId:a}:{},path:g.path,editable:l?!1:g.editable,layout:g.layout,edit:r&&!l});const M=r?void 0:_e(s);return M!==void 0?n.jsx(K,{replace:!0,to:`${L(`/${e}/${t}/${M.split("/").map(encodeURIComponent).join("/")}`,e,t,i)}${Z(b)}`}):T(r&&!l?w.settled?n.jsx(se,{environmentName:e,packageName:t,path:m,layout:w.layout??"grid"}):n.jsx(F,{text:B.opening()}):o)}function rt({environmentName:e,packageName:t,versionId:s,path:r,editable:o,layout:p,edit:a}){const[i,l]=f.useState(a?"editor":"reader"),c=a?"editor":"reader",u=c==="reader"||i==="reader",d=c==="editor"||i==="editor",h={position:"absolute",inset:0,visibility:"hidden",pointerEvents:"none",overflow:"hidden"};return n.jsxs(x,{sx:{position:"relative"},"data-switching":u&&d||void 0,children:[u&&n.jsx(x,{sx:i==="reader"?void 0:h,"aria-hidden":i!=="reader"||void 0,children:n.jsx(ne,{environmentName:e,packageName:t,...s!==void 0?{versionId:s}:{},path:r,...o!==void 0?{editable:o}:{},onReady:()=>{a||l("reader")}})},"reader"),d&&n.jsx(x,{sx:i==="editor"?void 0:h,"aria-hidden":i!=="editor"||void 0,children:n.jsx(se,{environmentName:e,packageName:t,path:r,...p?{layout:p}:{},quietLoading:u,offstage:c!=="editor"||i!=="editor",onReady:()=>{a&&l("editor")}})},"editor")]})}function pt(){const e=Me(),{search:t}=D(),{path:s,versionId:r,versionSegment:o,writable:p}=J({always:!0}),{server:a}=Pe(),{params:i,onGivensChange:l}=z();if(!e.environmentName)return n.jsx("div",{children:n.jsx("h2",{children:"Missing environment name"})});if(!e.packageName)return n.jsx("div",{children:n.jsx("h2",{children:"Missing package name"})});if(s!==void 0&&s!==""&&!s.endsWith(".malloy")&&!s.endsWith(".malloynb")){const u=s.replace(/\/$/,""),d=u.startsWith("data-apps/"),h=d?n.jsx(Fe,{resourceUri:R({environmentName:e.environmentName,packageName:e.packageName,modelPath:u.slice(10),versionId:r})}):n.jsx(W,{environmentName:e.environmentName,packageName:e.packageName,modelPath:s,staticUrl:U({server:a,environmentName:e.environmentName,packageName:e.packageName,path:s,...r!==void 0?{versionId:r}:{}})});return n.jsx(st,{environmentName:e.environmentName,packageName:e.packageName,...r!==void 0?{versionId:r}:{},...o!==void 0?{versionSegment:o}:{},readOnly:!p,routePath:u,edit:A(t),notFound:h,notFoundUntilListed:d})}const c=R({environmentName:e.environmentName,packageName:e.packageName,modelPath:s,versionId:r});return s?.endsWith(".malloy")?n.jsx(x,{sx:$,children:n.jsx(Be,{resourceUri:c,runOnDemand:!0,maxResultSize:512*1024,givens:i,onGivensChange:l})}):s?.endsWith(".malloynb")?n.jsx(ne,{environmentName:e.environmentName,packageName:e.packageName,...r!==void 0?{versionId:r}:{},path:s,editable:!1}):n.jsx(W,{environmentName:e.environmentName,packageName:e.packageName,modelPath:s??"",staticUrl:U({server:a,environmentName:e.environmentName,packageName:e.packageName,path:s??"",...r!==void 0?{versionId:r}:{}})})}function W({packageName:e,modelPath:t,staticUrl:s}){const r=/\.[^./]+$/.test(t),o={fontFamily:Y};return n.jsxs(x,{sx:$,children:[n.jsx(C,{variant:"h6",sx:{fontWeight:"fontWeightMedium"},children:"Nothing to open at this path"}),n.jsxs(C,{variant:"body2",color:"text.secondary",sx:{mt:1},children:[n.jsx(x,{component:"span",sx:o,children:t})," ","does not name a report, a"," ",n.jsx(x,{component:"span",sx:o,children:".malloy"})," ","or a"," ",n.jsx(x,{component:"span",sx:o,children:".malloynb"})," ","file in package"," ",n.jsx(x,{component:"span",sx:o,children:e}),". This address opens reports by their path without"," ",n.jsx(x,{component:"span",sx:o,children:".malloy"}),", and"," ",n.jsx(x,{component:"span",sx:o,children:".malloy"})," ","and"," ",n.jsx(x,{component:"span",sx:o,children:".malloynb"})," ","files."]}),r&&n.jsxs(C,{variant:"body2",color:"text.secondary",sx:{mt:1},children:["A file from the package's"," ",n.jsx(x,{component:"span",sx:o,children:"public/"})," ","directory is served at ",n.jsx(He,{href:s,children:s}),"."]}),n.jsx(C,{variant:"body2",color:"text.secondary",sx:{mt:1},children:"The package lists its reports, models, and data apps."})]})}export{pt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as x,p as N,E as f,r as h,a5 as j,j as n,a6 as E,a7 as P,a8 as R}from"./index-B49NC27i.js";import{d as L}from"./documentRoutes-CtOrNSfQ.js";import{u as M,p as r,L as c}from"./usePackageRoute-DyDTsrm1.js";import{u as S}from"./usePackageLinkNavigate-DykOPLjz.js";function $(){const{environmentName:e,packageName:a,versionSegment:o,versionId:m,versioned:u}=M({always:!0}),{search:p}=x(),g=N(),v=f(),i=S(e??"",a??"",o),l=h.useMemo(()=>j({environmentName:e??"",packageName:a??""}),[e,a]);if(e){if(!a)return n.jsx("div",{children:n.jsx("h2",{children:"Missing package name"})})}else return n.jsx("div",{children:n.jsx("h2",{children:"Missing environment name"})});if(u&&o===void 0)return n.jsx(E,{to:`${r(e,a,c)}${p}`,replace:!0});const d=P({environmentName:e,packageName:a,versionId:m});return n.jsx(R,{onClickPackageFile:i,onOpenDocument:({path:s,mode:t},k)=>i(L(e,a,s,t),k),onSelectVersion:(s,t)=>g(r(e,a,s),t),onReplaceVersion:s=>v(r(e,a,s??c),{replace:!0}),resourceUri:d,onEvent:l})}export{$ as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ModelPage-DUzNdrT3.js","assets/index-B49NC27i.js","assets/index-DUqldpo0.css","assets/documentRoutes-CtOrNSfQ.js","assets/usePackageRoute-DyDTsrm1.js","assets/usePackageLinkNavigate-DykOPLjz.js","assets/editPageMounted-DNUrCc4z.js","assets/PackagePage-40JPQIiH.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{A as P,E as g,r as h,j as e,I as x,a1 as f,a2 as A,a3 as c,a4 as d}from"./index-B49NC27i.js";import{u as R,w as S,L as T}from"./usePackageRoute-DyDTsrm1.js";const j=1200,u={p:3,maxWidth:j,mx:"auto"},b={...u,pt:6},y=c.lazy(()=>d(()=>import("./ModelPage-DUzNdrT3.js"),__vite__mapDeps([0,1,2,3,4,5,6]))),k=c.lazy(()=>d(()=>import("./PackagePage-40JPQIiH.js"),__vite__mapDeps([7,1,2,3,4,5])));function L(){const{environmentName:l,packageName:_,versionSegment:s,path:a,versioned:p,deciding:m,undecided:E,retry:v}=R({always:!0}),{pathname:o,search:r,hash:n}=P(),i=g(),t=p&&s===void 0?S(o,l??"",_??"",T):void 0;return h.useEffect(()=>{t!==void 0&&t!==o&&i(`${t}${r}${n}`,{replace:!0})},[t,o,r,n,i]),m?null:E?e.jsx(x,{sx:u,children:e.jsx(f,{severity:"error",action:e.jsx(A,{color:"inherit",size:"small",onClick:v,children:"Retry"}),children:"Could not read this package's versions, so this address can't be opened yet."})}):s!==void 0&&(a===void 0||a===""||a==="/")?e.jsx(k,{}):e.jsx(y,{})}const z=Object.freeze(Object.defineProperty({__proto__:null,default:L},Symbol.toStringTag,{value:"Module"}));export{u as P,b as T,z as a};
|