@malloy-publisher/app 0.17.3 → 0.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/dist/api-doc.yaml +160 -28
  2. package/dist/assets/{EnvironmentPage-Cpetyfj1.js → EnvironmentPage-CsFUI8IX.js} +1 -1
  3. package/dist/assets/{HomePage-RlrpQRV8.js → HomePage-B_FVtnN-.js} +1 -1
  4. package/dist/assets/{MainPage-C1559_mQ.js → MainPage-wFF9nPEr.js} +1 -1
  5. package/dist/assets/{ModelPage-D8T03Bd7.js → ModelPage-CxenqDcz.js} +2 -2
  6. package/dist/assets/PackagePage-dcF6vrvw.js +1 -0
  7. package/dist/assets/PackageSplatRoute-CASBZk0k.js +2 -0
  8. package/dist/assets/{RenderedResult-Cm0Wwtek.es-CfBPkvGU.js → RenderedResult--fYcsY1h.es-DzOt5Lwv.js} +3 -3
  9. package/dist/assets/{RouteError-DRuMstfb.js → RouteError-CUIolYwb.js} +1 -1
  10. package/dist/assets/{ThemeEditorPage-ss_tmVWo.js → ThemeEditorPage-DgU2YYq6.js} +1 -1
  11. package/dist/assets/{ToggleButtonGroup-DA9EfQQB.js → ToggleButtonGroup-Dmr-hVlD.js} +1 -1
  12. package/dist/assets/{documentRoutes-_ma0jaCp.js → documentRoutes-Drv-WDwO.js} +1 -1
  13. package/dist/assets/{editPageMounted-DxNTqmFg.js → editPageMounted-C5yJiIVi.js} +2 -2
  14. package/dist/assets/{index-w1w5RvZI.js → index-BIoSdsU9.js} +1 -1
  15. package/dist/assets/{index-BL_7q21Q.js → index-BSyL0zds.js} +97 -97
  16. package/dist/assets/{index-BZA1HAyp.js → index-Dtw4eTxH.js} +1 -1
  17. package/dist/assets/{index-DrkXqbpl.js → index-DxF3kMLJ.js} +1 -1
  18. package/dist/assets/{index.es-XV_AUlWO.js → index.es-CX9m4CBD.js} +10 -10
  19. package/dist/assets/usePackageLinkNavigate-qNjcXPcY.js +1 -0
  20. package/dist/assets/{usePackageRoute-ev5b1KRn.js → usePackageRoute-wJGaZEiY.js} +1 -1
  21. package/dist/index.html +1 -1
  22. package/package.json +2 -2
  23. package/dist/assets/PackagePage-BIl1r9eP.js +0 -1
  24. package/dist/assets/PackageSplatRoute-DJlJXk6p.js +0 -2
  25. package/dist/assets/usePackageLinkNavigate-BKkPNdJ4.js +0 -1
@@ -0,0 +1 @@
1
+ import{E as u,r as c}from"./index-BSyL0zds.js";import{w as e}from"./usePackageRoute-wJGaZEiY.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{C as f,a9 as p}from"./index-BL_7q21Q.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)}},I=e=>e===void 0||e===m?void 0:e,h=(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`${h(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:I(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,h as p,R as u,I as v,E as w};
1
+ import{C as f,a9 as p}from"./index-BSyL0zds.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-BL_7q21Q.js"></script>
19
+ <script type="module" crossorigin src="/assets/index-BSyL0zds.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.17.3",
4
+ "version": "0.18.1",
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.17.3",
45
+ "@malloy-publisher/sdk": "^0.18.1",
46
46
  "@modelcontextprotocol/ext-apps": "1.7.5",
47
47
  "@mui/icons-material": "^7.0.2",
48
48
  "@mui/material": "^7.0.2",
@@ -1 +0,0 @@
1
- import{A as k,x as N,D as f,r as h,a5 as j,j as n,a6 as E,a7 as P,a8 as L}from"./index-BL_7q21Q.js";import{d as M}from"./documentRoutes-_ma0jaCp.js";import{u as R,p as r,L as c}from"./usePackageRoute-ev5b1KRn.js";import{u as S}from"./usePackageLinkNavigate-BKkPNdJ4.js";function D(){const{environmentName:e,packageName:a,versionSegment:o,versionId:m,versioned:u}=R({always:!0}),{search:g}=k(),p=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)}${g}`,replace:!0});const d=P({environmentName:e,packageName:a,versionId:m});return n.jsx(L,{onClickPackageFile:i,onOpenDocument:({path:s,mode:t},x)=>i(M(e,a,s,t),x),onSelectVersion:(s,t)=>p(r(e,a,s),t),onReplaceVersion:s=>v(r(e,a,s??c),{replace:!0}),resourceUri:d,onEvent:l})}export{D as default};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ModelPage-D8T03Bd7.js","assets/index-BL_7q21Q.js","assets/index-DUqldpo0.css","assets/documentRoutes-_ma0jaCp.js","assets/usePackageRoute-ev5b1KRn.js","assets/usePackageLinkNavigate-BKkPNdJ4.js","assets/editPageMounted-DxNTqmFg.js","assets/PackagePage-BIl1r9eP.js"])))=>i.map(i=>d[i]);
2
- import{A as P,D as g,r as h,j as e,H as x,a1 as f,a2 as A,a3 as c,a4 as d}from"./index-BL_7q21Q.js";import{u as R,w as S,L as T}from"./usePackageRoute-ev5b1KRn.js";const j=1200,u={p:3,maxWidth:j,mx:"auto"},b={...u,pt:6},y=c.lazy(()=>d(()=>import("./ModelPage-D8T03Bd7.js"),__vite__mapDeps([0,1,2,3,4,5,6]))),k=c.lazy(()=>d(()=>import("./PackagePage-BIl1r9eP.js"),__vite__mapDeps([7,1,2,3,4,5])));function L(){const{environmentName:l,packageName:_,versionSegment:s,path:a,versioned:p,deciding:m,undecided:v,retry:E}=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:v?e.jsx(x,{sx:u,children:e.jsx(f,{severity:"error",action:e.jsx(A,{color:"inherit",size:"small",onClick:E,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};
@@ -1 +0,0 @@
1
- import{x as u,r as c}from"./index-BL_7q21Q.js";import{w as x}from"./usePackageRoute-ev5b1KRn.js";function n(t,a,r){const s=u();return c.useCallback((o,i)=>s(x(o,t,a,r),i),[s,t,a,r])}export{n as u};