@malloy-publisher/app 0.8.2 → 0.8.4
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 +271 -47
- package/dist/assets/EnvironmentPage-CqhWacr8.js +1 -0
- package/dist/assets/{HomePage-C_iQUW74.js → HomePage-Bvka32On.js} +1 -1
- package/dist/assets/{LightMode-X55OaqWn.js → LightMode-Cbewcf9k.js} +1 -1
- package/dist/assets/{MainPage-HlxDGd7Z.js → MainPage-COYTYOjz.js} +2 -2
- package/dist/assets/ModelPage-Bgd6aix7.js +2 -0
- package/dist/assets/PackagePage-dTZ47Ovr.js +1 -0
- package/dist/assets/{RenderedResult-DKOl0FQ8.es-BATOL6jV.js → RenderedResult-6UKAHaAj.es-DwPcKrEj.js} +3 -3
- package/dist/assets/RouteError-eVUmHlyg.js +1 -0
- package/dist/assets/{ThemeEditorPage-Dc7994Z3.js → ThemeEditorPage-BMUZ6xO_.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-0p89QLtB.js → ToggleButtonGroup-CcURl_SZ.js} +1 -1
- package/dist/assets/{index-Csw7MKd3.js → index--kypg58s.js} +3 -3
- package/dist/assets/{index-C8Lbp1ov.js → index-BJ0aX8Z9.js} +1 -1
- package/dist/assets/{index-YH_yBCQI.js → index-Cn5hjjjT.js} +1 -1
- package/dist/assets/index-D7mqb3VK.js +447 -0
- package/dist/assets/{index-CqxaMaWg.js → index-DW7XZeXK.js} +1 -1
- package/dist/assets/index.es-Cmnwwmfe.js +111 -0
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/EnvironmentPage-J-7-dQTF.js +0 -1
- package/dist/assets/ModelPage-4DQomN_d.js +0 -2
- package/dist/assets/PackagePage-B_-oiLXm.js +0 -1
- package/dist/assets/RouteError-DWKxdq5d.js +0 -1
- package/dist/assets/index-CSUU2t5Q.js +0 -442
- package/dist/assets/index.es-PC1YK9io.js +0 -111
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-D7mqb3VK.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.8.
|
|
4
|
+
"version": "0.8.4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
@@ -41,11 +41,10 @@
|
|
|
41
41
|
"test:playwright:headed": "bunx playwright test --config=playwright.config.ts --headed"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@malloy-publisher/sdk": "^0.8.
|
|
44
|
+
"@malloy-publisher/sdk": "^0.8.4",
|
|
45
45
|
"@mui/icons-material": "^7.0.2",
|
|
46
46
|
"@mui/material": "^7.0.2",
|
|
47
47
|
"@tanstack/react-query": "^5.59.16",
|
|
48
|
-
"@vitejs/plugin-react": "^4.3.1",
|
|
49
48
|
"react-colorful": "^5.6.1",
|
|
50
49
|
"react-router-dom": "^7.6.2"
|
|
51
50
|
},
|
|
@@ -57,6 +56,7 @@
|
|
|
57
56
|
"@types/react": "^19.1.7",
|
|
58
57
|
"@types/react-dom": "^19.1.6",
|
|
59
58
|
"@typescript-eslint/eslint-plugin": "^8.31.0",
|
|
59
|
+
"@vitejs/plugin-react": "^4.3.1",
|
|
60
60
|
"baseline-browser-mapping": "^2.10.0",
|
|
61
61
|
"react": "^19.1.0",
|
|
62
62
|
"react-dom": "^19.1.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as r,L as i,j as n,a7 as t,ai as o}from"./index-CSUU2t5Q.js";function m(){const s=r(),{environmentName:e}=i();if(e){const a=t({environmentName:e});return n.jsx(o,{onSelectPackage:s,resourceUri:a})}else return n.jsx("div",{children:n.jsx("h2",{children:"Missing environment name"})})}export{m as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.es-PC1YK9io.js","assets/index-CSUU2t5Q.js","assets/index-DUqldpo0.css","assets/ToggleButtonGroup-0p89QLtB.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as W,j as a,n as b,r as u,a1 as $,J as k,K as y,a2 as N,N as i,a3 as m,a4 as C,a5 as _,a6 as U,a7 as g,a8 as E,a9 as L,aa as R,a0 as D,ab as F,L as I,U as S,ac as T,ad as M,ae as O,T as j,af as h,ag as w}from"./index-CSUU2t5Q.js";const z=W(a.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"}));function P(e,n){const s=b();return u.useCallback((t,l)=>{const c=new URLSearchParams(t.givens).toString(),o=encodeURIComponent(e),d=encodeURIComponent(n),x=encodeURIComponent(t.dashboard);s(`/${o}/${d}/dashboards/${x}`+(c?`?${c}`:""),l)},[s,e,n])}function A({environmentName:e,packageName:n,dashboardName:s}){const{params:t,onGivensChange:l}=$(),c=P(e,n),o=k(),{pathname:d}=y(),x=u.useMemo(()=>N({environmentName:e,packageName:n,dashboardName:s}),[e,n,s]);return u.useEffect(()=>{const p=()=>void E(()=>import("./index.es-PC1YK9io.js"),__vite__mapDeps([0,1,2,3])),r=window.requestIdleCallback;if(r){const v=r(p);return()=>window.cancelIdleCallback?.(v)}const f=setTimeout(p,1500);return()=>clearTimeout(f)},[]),a.jsxs(i,{sx:{p:3,maxWidth:1600,mx:"auto"},children:[a.jsx(m,{label:n,href:`/${e}/${n}`,onClick:()=>o(`/${e}/${n}`)}),a.jsx(C,{children:a.jsx(_,{label:"Edit",icon:a.jsx(z,{}),onClick:()=>o(`${d.replace(/\/$/,"")}/edit`)})}),a.jsx(U,{resourceUri:g({environmentName:e,packageName:n}),dashboard:s,givens:t,onGivensChange:l,onNavigate:c,onEvent:x,maxResultSize:1024*1024})]})}const V=L.lazy(()=>E(()=>import("./index.es-PC1YK9io.js"),__vite__mapDeps([0,1,2,3])).then(e=>({default:e.DashboardEditor})));function G({environmentName:e,packageName:n,dashboardName:s}){const t=k(),{pathname:l}=y(),c=l.replace(/\/edit\/?$/,""),o=u.useMemo(()=>N({environmentName:e,packageName:n,dashboardName:s}),[e,n,s]);return a.jsxs(i,{sx:{p:3,maxWidth:1600,mx:"auto"},children:[a.jsx(m,{label:n,href:`/${e}/${n}`,onClick:()=>t(`/${e}/${n}`)}),a.jsx(u.Suspense,{fallback:a.jsxs(R,{sx:{gap:2},children:[a.jsx(C,{}),a.jsx(D,{text:"Opening the builder…"})]}),children:a.jsx(V,{resourceUri:g({environmentName:e,packageName:n}),dashboard:s,onExit:()=>t(c),onEvent:o})})]})}function q({environmentName:e,packageName:n,notebookPath:s}){const{params:t,onGivensChange:l}=$(),c=P(e,n),o=b();return a.jsxs(i,{sx:{p:3,maxWidth:1200,mx:"auto"},children:[a.jsx(m,{label:n,href:`/${e}/${n}`,onClick:d=>o(`/${e}/${n}`,d)}),a.jsx(F,{resourceUri:g({environmentName:e,packageName:n,modelPath:s}),maxResultSize:1024*1024,givens:t,onGivensChange:l,onNavigate:o,onDrillNavigate:c})]})}function B(){const e=I(),n=e["*"],{server:s}=S(),t=b(),{params:l,onGivensChange:c}=$();if(!e.environmentName)return a.jsx("div",{children:a.jsx("h2",{children:"Missing environment name"})});if(!e.packageName)return a.jsx("div",{children:a.jsx("h2",{children:"Missing package name"})});const o={p:3,maxWidth:1200,mx:"auto"};if(n?.startsWith("dashboards/")&&!n.endsWith(".malloy")&&!n.endsWith(".malloynb")){const r=n.slice(11);return r.endsWith("/edit")?a.jsx(G,{environmentName:e.environmentName,packageName:e.packageName,dashboardName:r.slice(0,-5)}):a.jsx(A,{environmentName:e.environmentName,packageName:e.packageName,dashboardName:r})}if(n?.startsWith("data-apps/")&&!n.endsWith(".malloy")&&!n.endsWith(".malloynb")){const r=n.slice(10),f=g({environmentName:e.environmentName,packageName:e.packageName,modelPath:r});return a.jsxs(i,{sx:o,children:[a.jsx(m,{label:e.packageName,href:`/${e.environmentName}/${e.packageName}`,onClick:v=>t(`/${e.environmentName}/${e.packageName}`,v)}),a.jsx(T,{resourceUri:f})]})}const d=g({environmentName:e.environmentName,packageName:e.packageName,modelPath:n});if(n?.endsWith(".malloy"))return a.jsxs(i,{sx:o,children:[a.jsx(m,{label:e.packageName,href:`/${e.environmentName}/${e.packageName}`,onClick:r=>t(`/${e.environmentName}/${e.packageName}`,r)}),a.jsx(M,{resourceUri:d,runOnDemand:!0,maxResultSize:512*1024,givens:l,onGivensChange:c})]});if(n?.endsWith(".malloynb"))return a.jsx(q,{environmentName:e.environmentName,packageName:e.packageName,notebookPath:n});const x=/\.[^./]+$/.test(n??""),p=O({server:s,environmentName:e.environmentName,packageName:e.packageName,path:n??""});return a.jsxs(i,{sx:o,children:[a.jsx(m,{label:e.packageName,href:`/${e.environmentName}/${e.packageName}`,onClick:r=>t(`/${e.environmentName}/${e.packageName}`,r)}),a.jsx(j,{variant:"h6",sx:{fontWeight:600},children:"Nothing to open at this path"}),a.jsxs(j,{variant:"body2",color:"text.secondary",sx:{mt:1},children:[a.jsx(i,{component:"span",sx:{fontFamily:h},children:n})," ","does not name a"," ",a.jsx(i,{component:"span",sx:{fontFamily:h},children:".malloy"})," ","or"," ",a.jsx(i,{component:"span",sx:{fontFamily:h},children:".malloynb"})," ","file in package"," ",a.jsx(i,{component:"span",sx:{fontFamily:h},children:e.packageName}),". This address opens"," ",a.jsx(i,{component:"span",sx:{fontFamily:h},children:".malloy"})," ","and"," ",a.jsx(i,{component:"span",sx:{fontFamily:h},children:".malloynb"})," ","files."]}),x&&a.jsxs(j,{variant:"body2",color:"text.secondary",sx:{mt:1},children:["A file from the package's"," ",a.jsx(i,{component:"span",sx:{fontFamily:h},children:"public/"})," ","directory is served at ",a.jsx(w,{href:p,children:p}),"."]}),a.jsx(j,{variant:"body2",color:"text.secondary",sx:{mt:1},children:"The package lists its models, notebooks, and data apps."})]})}export{B as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{L as r,n as t,j as e,a7 as c,ah as o}from"./index-CSUU2t5Q.js";function l(){const{environmentName:n,packageName:a}=r(),s=t();if(n)if(a){const i=c({environmentName:n,packageName:a});return e.jsx(o,{onClickPackageFile:s,resourceUri:i})}else return e.jsx("div",{children:e.jsx("h2",{children:"Missing package name"})});else return e.jsx("div",{children:e.jsx("h2",{children:"Missing environment name"})})}export{l as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{aj as o,j as r,ak as s,aa as a,N as n,T as t}from"./index-CSUU2t5Q.js";function x(){const e=o();return console.error(e),r.jsx(s,{maxWidth:"lg",component:"main",sx:{display:"flex",flexDirection:"column",my:2,gap:0},children:r.jsxs(a,{sx:{m:"auto",flexDirection:"column"},children:[r.jsx(n,{sx:{height:"300px"}}),r.jsx("img",{src:"/error.png"}),r.jsx(t,{variant:"subtitle1",children:"An unexpected error occurred"})]})})}export{x as default};
|