@malloy-publisher/server 0.0.137 → 0.0.138
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/app/api-doc.yaml +79 -11
- package/dist/app/assets/{HomePage-Dy1B_c_L.js → HomePage-BlrCLLW3.js} +1 -1
- package/dist/app/assets/{MainPage-gzYdjQav.js → MainPage-DdMiKT2B.js} +1 -1
- package/dist/app/assets/{ModelPage-CUAaN3rL.js → ModelPage-JehFN4Kt.js} +1 -1
- package/dist/app/assets/{PackagePage-DcWkgxZq.js → PackagePage-CwvugLqQ.js} +1 -1
- package/dist/app/assets/{ProjectPage-Bpgs1NvH.js → ProjectPage-CIN0WvAX.js} +1 -1
- package/dist/app/assets/{RouteError-Cd7ol6pR.js → RouteError-C8KTs0Dq.js} +1 -1
- package/dist/app/assets/{WorkbookPage-B2aMRJtD.js → WorkbookPage-BPDyPPd-.js} +1 -1
- package/dist/app/assets/{index-D0zwjcl_.js → index-BnKpD5AP.js} +1 -1
- package/dist/app/assets/{index-CpcugJHa.js → index-Cv4oxotF.js} +83 -83
- package/dist/app/assets/{index-CKzqCaQl.js → index-DxYt9qtJ.js} +1 -1
- package/dist/app/assets/{index.umd-bQQqKuZo.js → index.umd-DMLKZdiT.js} +1 -1
- package/dist/app/index.html +1 -1
- package/dist/server.js +100 -24
- package/package.json +1 -1
- package/src/controller/model.controller.ts +27 -2
- package/src/mcp/resources/notebook_resource.ts +3 -3
- package/src/server.ts +47 -6
- package/src/service/model.ts +96 -39
package/dist/app/api-doc.yaml
CHANGED
|
@@ -1163,18 +1163,15 @@ paths:
|
|
|
1163
1163
|
"501":
|
|
1164
1164
|
$ref: "#/components/responses/NotImplemented"
|
|
1165
1165
|
|
|
1166
|
-
# TODO: Notebooks should return the notebook file content, not the compiled notebook. The front end shoould
|
|
1167
|
-
# run the individual notebook cells against the backend.
|
|
1168
1166
|
/projects/{projectName}/packages/{packageName}/notebooks/{path}:
|
|
1169
1167
|
get:
|
|
1170
1168
|
tags:
|
|
1171
1169
|
- notebooks
|
|
1172
1170
|
operationId: get-notebook
|
|
1173
|
-
summary: Get
|
|
1171
|
+
summary: Get Malloy notebook cells
|
|
1174
1172
|
description: |
|
|
1175
|
-
Retrieves a
|
|
1176
|
-
|
|
1177
|
-
access to the notebook's structure, cells, and execution results for use in applications.
|
|
1173
|
+
Retrieves a Malloy notebook with its raw cell contents (markdown and code).
|
|
1174
|
+
Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
1178
1175
|
parameters:
|
|
1179
1176
|
- name: projectName
|
|
1180
1177
|
in: path
|
|
@@ -1202,11 +1199,70 @@ paths:
|
|
|
1202
1199
|
$ref: "#/components/schemas/VersionIdPattern"
|
|
1203
1200
|
responses:
|
|
1204
1201
|
"200":
|
|
1205
|
-
description: A Malloy notebook.
|
|
1202
|
+
description: A Malloy notebook with raw cell contents.
|
|
1206
1203
|
content:
|
|
1207
1204
|
"application/json":
|
|
1208
1205
|
schema:
|
|
1209
|
-
$ref: "#/components/schemas/
|
|
1206
|
+
$ref: "#/components/schemas/RawNotebook"
|
|
1207
|
+
"401":
|
|
1208
|
+
$ref: "#/components/responses/Unauthorized"
|
|
1209
|
+
"404":
|
|
1210
|
+
$ref: "#/components/responses/NotFound"
|
|
1211
|
+
"500":
|
|
1212
|
+
$ref: "#/components/responses/InternalServerError"
|
|
1213
|
+
"501":
|
|
1214
|
+
$ref: "#/components/responses/NotImplemented"
|
|
1215
|
+
|
|
1216
|
+
/projects/{projectName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}:
|
|
1217
|
+
get:
|
|
1218
|
+
tags:
|
|
1219
|
+
- notebooks
|
|
1220
|
+
operationId: execute-notebook-cell
|
|
1221
|
+
summary: Execute a specific notebook cell
|
|
1222
|
+
description: |
|
|
1223
|
+
Executes a specific cell in a Malloy notebook by index. For code cells, this compiles
|
|
1224
|
+
and runs the Malloy code, returning query results and any new sources defined.
|
|
1225
|
+
For markdown cells, this simply returns the cell content.
|
|
1226
|
+
parameters:
|
|
1227
|
+
- name: projectName
|
|
1228
|
+
in: path
|
|
1229
|
+
description: Name of the project
|
|
1230
|
+
required: true
|
|
1231
|
+
schema:
|
|
1232
|
+
$ref: "#/components/schemas/IdentifierPattern"
|
|
1233
|
+
- name: packageName
|
|
1234
|
+
in: path
|
|
1235
|
+
description: Name of the package
|
|
1236
|
+
required: true
|
|
1237
|
+
schema:
|
|
1238
|
+
type: string
|
|
1239
|
+
- name: path
|
|
1240
|
+
in: path
|
|
1241
|
+
description: Path to notebook within the package
|
|
1242
|
+
required: true
|
|
1243
|
+
schema:
|
|
1244
|
+
type: string
|
|
1245
|
+
- name: cellIndex
|
|
1246
|
+
in: path
|
|
1247
|
+
description: Index of the cell to execute (0-based)
|
|
1248
|
+
required: true
|
|
1249
|
+
schema:
|
|
1250
|
+
type: integer
|
|
1251
|
+
- name: versionId
|
|
1252
|
+
in: query
|
|
1253
|
+
description: Version identifier for the package
|
|
1254
|
+
required: false
|
|
1255
|
+
schema:
|
|
1256
|
+
$ref: "#/components/schemas/VersionIdPattern"
|
|
1257
|
+
responses:
|
|
1258
|
+
"200":
|
|
1259
|
+
description: Cell execution result
|
|
1260
|
+
content:
|
|
1261
|
+
"application/json":
|
|
1262
|
+
schema:
|
|
1263
|
+
$ref: "#/components/schemas/NotebookCellResult"
|
|
1264
|
+
"400":
|
|
1265
|
+
$ref: "#/components/responses/BadRequest"
|
|
1210
1266
|
"401":
|
|
1211
1267
|
$ref: "#/components/responses/Unauthorized"
|
|
1212
1268
|
"404":
|
|
@@ -1515,9 +1571,9 @@ components:
|
|
|
1515
1571
|
type: string
|
|
1516
1572
|
description: Error message if the notebook failed to compile or load
|
|
1517
1573
|
|
|
1518
|
-
|
|
1574
|
+
RawNotebook:
|
|
1519
1575
|
type: object
|
|
1520
|
-
description:
|
|
1576
|
+
description: Raw Malloy notebook with unexecuted cell contents
|
|
1521
1577
|
properties:
|
|
1522
1578
|
resource:
|
|
1523
1579
|
type: string
|
|
@@ -1533,7 +1589,7 @@ components:
|
|
|
1533
1589
|
description: Version of the Malloy compiler used to generate the notebook data
|
|
1534
1590
|
notebookCells:
|
|
1535
1591
|
type: array
|
|
1536
|
-
description: Array of notebook cells containing
|
|
1592
|
+
description: Array of notebook cells containing raw markdown and code content
|
|
1537
1593
|
items:
|
|
1538
1594
|
$ref: "#/components/schemas/NotebookCell"
|
|
1539
1595
|
|
|
@@ -1616,6 +1672,18 @@ components:
|
|
|
1616
1672
|
NotebookCell:
|
|
1617
1673
|
type: object
|
|
1618
1674
|
description: Individual cell within a Malloy notebook
|
|
1675
|
+
properties:
|
|
1676
|
+
type:
|
|
1677
|
+
type: string
|
|
1678
|
+
enum: ["markdown", "code"]
|
|
1679
|
+
description: Type of notebook cell
|
|
1680
|
+
text:
|
|
1681
|
+
type: string
|
|
1682
|
+
description: Text contents of the notebook cell (either markdown or Malloy code)
|
|
1683
|
+
|
|
1684
|
+
NotebookCellResult:
|
|
1685
|
+
type: object
|
|
1686
|
+
description: Result of executing a notebook cell
|
|
1619
1687
|
properties:
|
|
1620
1688
|
type:
|
|
1621
1689
|
type: string
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G as o,j as a,N as e}from"./index-
|
|
1
|
+
import{G as o,j as a,N as e}from"./index-Cv4oxotF.js";function n(){const t=o();return a.jsx(e,{onClickProject:t})}export{n as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{u as V,g as F,r as g,R as _,a as X,b as S,c as M,d as A,j as t,s as m,e as w,f as v,h as I,P as Y,m as R,i as J,k as z,B as K,l as N,n as Z,T as U,o as q,p as oo,G as eo,q as b,C as j,t as ro,v as to,I as so,M as ao,w as $,S as no,x as lo,y as io,O as co}from"./index-
|
|
1
|
+
import{u as V,g as F,r as g,R as _,a as X,b as S,c as M,d as A,j as t,s as m,e as w,f as v,h as I,P as Y,m as R,i as J,k as z,B as K,l as N,n as Z,T as U,o as q,p as oo,G as eo,q as b,C as j,t as ro,v as to,I as so,M as ao,w as $,S as no,x as lo,y as io,O as co}from"./index-Cv4oxotF.js";function po(o,e,r,s,n){const[a,i]=g.useState(()=>n&&r?r(o).matches:s?s(o).matches:e);return X(()=>{if(!r)return;const p=r(o),u=()=>{i(p.matches)};return u(),p.addEventListener("change",u),()=>{p.removeEventListener("change",u)}},[o,r]),a}const uo={..._},L=uo.useSyncExternalStore;function go(o,e,r,s,n){const a=g.useCallback(()=>e,[e]),i=g.useMemo(()=>{if(n&&r)return()=>r(o).matches;if(s!==null){const{matches:c}=s(o);return()=>c}return a},[a,o,s,n,r]),[p,u]=g.useMemo(()=>{if(r===null)return[a,()=>()=>{}];const c=r(o);return[()=>c.matches,l=>(c.addEventListener("change",l),()=>{c.removeEventListener("change",l)})]},[a,r,o]);return L(u,p,i)}function O(o={}){const{themeId:e}=o;return function(s,n={}){let a=V();a&&e&&(a=a[e]||a);const i=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:p=!1,matchMedia:u=i?window.matchMedia:null,ssrMatchMedia:d=null,noSsr:c=!1}=F({name:"MuiUseMediaQuery",props:n,theme:a});let l=typeof s=="function"?s(a):s;return l=l.replace(/^@media( ?)/m,""),l.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
|
|
2
2
|
`)),(L!==void 0?go:po)(l,p,u,d,c)}}O();function xo(o){return S("MuiAppBar",o)}M("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const mo=o=>{const{color:e,position:r,classes:s}=o,n={root:["root",`color${v(e)}`,`position${v(r)}`]};return I(n,xo,s)},D=(o,e)=>o?`${o?.replace(")","")}, ${e})`:e,bo=m(Y,{name:"MuiAppBar",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:r}=o;return[e.root,e[`position${v(r.position)}`],e[`color${v(r.color)}`]]}})(R(({theme:o})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(o.vars||o).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(o.vars||o).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(o.vars||o).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":o.vars?o.vars.palette.AppBar.defaultBg:o.palette.grey[100],"--AppBar-color":o.vars?o.vars.palette.text.primary:o.palette.getContrastText(o.palette.grey[100]),...o.applyStyles("dark",{"--AppBar-background":o.vars?o.vars.palette.AppBar.defaultBg:o.palette.grey[900],"--AppBar-color":o.vars?o.vars.palette.text.primary:o.palette.getContrastText(o.palette.grey[900])})}},...Object.entries(o.palette).filter(J(["contrastText"])).map(([e])=>({props:{color:e},style:{"--AppBar-background":(o.vars??o).palette[e].main,"--AppBar-color":(o.vars??o).palette[e].contrastText}})),{props:e=>e.enableColorOnDark===!0&&!["inherit","transparent"].includes(e.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:e=>e.enableColorOnDark===!1&&!["inherit","transparent"].includes(e.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...o.applyStyles("dark",{backgroundColor:o.vars?D(o.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:o.vars?D(o.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...o.applyStyles("dark",{backgroundImage:"none"})}}]}))),fo=g.forwardRef(function(e,r){const s=A({props:e,name:"MuiAppBar"}),{className:n,color:a="primary",enableColorOnDark:i=!1,position:p="fixed",...u}=s,d={...s,color:a,position:p,enableColorOnDark:i},c=mo(d);return t.jsx(bo,{square:!0,component:"header",ownerState:d,elevation:4,className:w(c.root,n,p==="fixed"&&"mui-fixed"),ref:r,...u})}),ho=z(t.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),yo=m(K,{name:"MuiBreadcrumbCollapsed"})(R(({theme:o})=>({display:"flex",marginLeft:`calc(${o.spacing(1)} * 0.5)`,marginRight:`calc(${o.spacing(1)} * 0.5)`,...o.palette.mode==="light"?{backgroundColor:o.palette.grey[100],color:o.palette.grey[700]}:{backgroundColor:o.palette.grey[700],color:o.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...o.palette.mode==="light"?{backgroundColor:o.palette.grey[200]}:{backgroundColor:o.palette.grey[600]}},"&:active":{boxShadow:o.shadows[0],...o.palette.mode==="light"?{backgroundColor:N(o.palette.grey[200],.12)}:{backgroundColor:N(o.palette.grey[600],.12)}}}))),vo=m(ho)({width:24,height:16});function Bo(o){const{slots:e={},slotProps:r={},...s}=o,n=o;return t.jsx("li",{children:t.jsx(yo,{focusRipple:!0,...s,ownerState:n,children:t.jsx(vo,{as:e.CollapsedIcon,ownerState:n,...r.collapsedIcon})})})}function ko(o){return S("MuiBreadcrumbs",o)}const Co=M("MuiBreadcrumbs",["root","ol","li","separator"]),jo=o=>{const{classes:e}=o;return I({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},ko,e)},So=m(U,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(o,e)=>[{[`& .${Co.li}`]:e.li},e.root]})({}),Mo=m("ol",{name:"MuiBreadcrumbs",slot:"Ol"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),Ao=m("li",{name:"MuiBreadcrumbs",slot:"Separator"})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function wo(o,e,r,s){return o.reduce((n,a,i)=>(i<o.length-1?n=n.concat(a,t.jsx(Ao,{"aria-hidden":!0,className:e,ownerState:s,children:r},`separator-${i}`)):n.push(a),n),[])}const Io=g.forwardRef(function(e,r){const s=A({props:e,name:"MuiBreadcrumbs"}),{children:n,className:a,component:i="nav",slots:p={},slotProps:u={},expandText:d="Show path",itemsAfterCollapse:c=1,itemsBeforeCollapse:l=1,maxItems:h=8,separator:B="/",...Q}=s,[T,W]=g.useState(!1),f={...s,component:i,expanded:T,expandText:d,itemsAfterCollapse:c,itemsBeforeCollapse:l,maxItems:h,separator:B},y=jo(f),H=Z({elementType:p.CollapsedIcon,externalSlotProps:u.collapsedIcon,ownerState:f}),P=g.useRef(null),G=x=>{const C=()=>{W(!0);const E=P.current.querySelector("a[href],button,[tabindex]");E&&E.focus()};return l+c>=x.length?x:[...x.slice(0,l),t.jsx(Bo,{"aria-label":d,slots:{CollapsedIcon:p.CollapsedIcon},slotProps:{collapsedIcon:H},onClick:C},"ellipsis"),...x.slice(x.length-c,x.length)]},k=g.Children.toArray(n).filter(x=>g.isValidElement(x)).map((x,C)=>t.jsx("li",{className:y.li,children:x},`child-${C}`));return t.jsx(So,{ref:r,component:i,color:"textSecondary",className:w(y.root,a),ownerState:f,...Q,children:t.jsx(Mo,{className:y.ol,ref:P,ownerState:f,children:wo(T||h&&k.length<=h?k:G(k),y.separator,B,f)})})});function Ro(o){return S("MuiToolbar",o)}M("MuiToolbar",["root","gutters","regular","dense"]);const zo=o=>{const{classes:e,disableGutters:r,variant:s}=o;return I({root:["root",!r&&"gutters",s]},Ro,e)},To=m("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:r}=o;return[e.root,!r.disableGutters&&e.gutters,e[r.variant]]}})(R(({theme:o})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:o.spacing(2),paddingRight:o.spacing(2),[o.breakpoints.up("sm")]:{paddingLeft:o.spacing(3),paddingRight:o.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:o.mixins.toolbar}]}))),Po=g.forwardRef(function(e,r){const s=A({props:e,name:"MuiToolbar"}),{className:n,component:a="div",disableGutters:i=!1,variant:p="regular",...u}=s,d={...s,component:a,disableGutters:i,variant:p},c=zo(d);return t.jsx(To,{as:a,className:w(c.root,n),ref:r,ownerState:d,...u})}),Eo=O({themeId:q}),No=z(t.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),$o=z(t.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}));function Do(){const o=oo(),e=o["*"],r=eo();return t.jsx(b,{sx:{display:"flex",alignItems:"center"},children:t.jsxs(Io,{"aria-label":"breadcrumb",separator:t.jsx(No,{sx:{fontSize:14,color:"text.secondary"}}),sx:{"& .MuiBreadcrumbs-separator":{margin:"0 6px"}},children:[o.projectName&&t.jsx(j,{onClick:s=>r(`/${o.projectName}/`,s),label:o.projectName,size:"medium",sx:{backgroundColor:"white",color:"primary.main",fontWeight:500,height:"32px",fontSize:"1rem",cursor:"pointer","&:hover":{backgroundColor:"primary.100"}}}),o.packageName&&t.jsx(j,{onClick:s=>r(`/${o.projectName}/${o.packageName}/`,s),label:o.packageName,size:"medium",sx:{backgroundColor:"white",color:"primary.main",fontWeight:500,height:"32px",fontSize:"1rem",cursor:"pointer","&:hover":{backgroundColor:"secondary.100"}}}),e&&t.jsx(j,{onClick:s=>r(`/${o.projectName}/${o.packageName}/${e}`,s),label:e,size:"medium",sx:{backgroundColor:"white",color:"primary.main",fontWeight:500,height:"32px",fontSize:"1rem",cursor:"pointer","&:hover":{backgroundColor:"grey.200"}}})]})})}function Uo({logoHeader:o,endCap:e}){const r=ro(),s=to(),n=Eo(s.breakpoints.down("sm")),[a,i]=g.useState(null),p=!!a,u=l=>{i(l.currentTarget)},d=()=>i(null),c=[{label:"Malloy Docs",link:"https://docs.malloydata.dev/documentation/",sx:{color:"#14b3cb"}},{label:"Publisher Docs",link:"https://github.com/malloydata/publisher/blob/main/README.md",sx:{color:"#14b3cb"}},{label:"Publisher API",link:"/api-doc.html",sx:{color:"#14b3cb"}}];return t.jsxs(fo,{position:"sticky",elevation:0,sx:{backgroundColor:"background.paper",borderBottom:"1px solid",borderColor:"divider"},children:[t.jsxs(Po,{sx:{justifyContent:"space-between",flexWrap:"nowrap",minHeight:44},children:[o||t.jsxs(b,{sx:{display:"flex",alignItems:"center",gap:1,cursor:"pointer"},onClick:()=>r("/"),children:[t.jsx(b,{component:"img",src:"/logo.svg",alt:"Malloy",sx:{width:28,height:28}}),t.jsx(U,{variant:"h6",sx:{color:"text.primary",fontWeight:700,letterSpacing:"-0.025em",fontSize:{xs:"1.1rem",sm:"1.25rem"}},children:"Malloy Publisher"})]}),n?t.jsxs(t.Fragment,{children:[t.jsx(so,{color:"inherit",onClick:u,children:t.jsx($o,{})}),t.jsxs(ao,{anchorEl:a,open:p,onClose:d,anchorOrigin:{vertical:"bottom",horizontal:"right"},children:[c.map(l=>t.jsx($,{onClick:()=>{d(),window.location.href=l.link},sx:l.sx,children:l.label},l.label)),e&&t.jsx($,{children:e})]})]}):t.jsxs(no,{direction:"row",spacing:2,alignItems:"center",children:[c.map(l=>t.jsx(lo,{href:l.link,sx:l.sx,children:l.label},l.label)),e]})]}),t.jsx(b,{sx:{borderTop:"1px solid white",paddingLeft:"16px",paddingRight:"16px",marginBottom:"1px",overflowX:"auto"},children:t.jsx(Do,{})})]})}function Oo({headerProps:o}){return t.jsxs(b,{sx:{display:"flex",flexDirection:"column",minHeight:"100vh"},children:[t.jsx(Uo,{...o}),t.jsx(io,{maxWidth:"xl",component:"main",sx:{flex:1,display:"flex",flexDirection:"column",py:2,gap:2},children:t.jsx(b,{sx:{flex:1},children:t.jsx(co,{})})})]})}export{Oo as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as n,j as e,z as i,A as t,D as c}from"./index-
|
|
1
|
+
import{p as n,j as e,z as i,A as t,D as c}from"./index-Cv4oxotF.js";function o(){const a=n(),r=a["*"];if(!a.projectName)return e.jsx("div",{children:e.jsx("h2",{children:"Missing project name"})});if(!a.packageName)return e.jsx("div",{children:e.jsx("h2",{children:"Missing package name"})});const s=i({projectName:a.projectName,packageName:a.packageName,modelPath:r});return r?.endsWith(".malloy")?e.jsx(t,{resourceUri:s,runOnDemand:!0,maxResultSize:512*1024}):r?.endsWith(".malloynb")?e.jsx(c,{resourceUri:s,maxResultSize:1024*1024}):e.jsx("div",{children:e.jsxs("h2",{children:["Unrecognized file type: ",r]})})}export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as n,G as c,j as e,z as t,E as o}from"./index-
|
|
1
|
+
import{p as n,G as c,j as e,z as t,E as o}from"./index-Cv4oxotF.js";function l(){const{projectName:s,packageName:a}=n(),r=c();if(s)if(a){const i=t({projectName:s,packageName:a});return e.jsx(o,{onClickPackageFile:r,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 project name"})})}export{l as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G as t,p as n,j as e,z as o,F as c}from"./index-
|
|
1
|
+
import{G as t,p as n,j as e,z as o,F as c}from"./index-Cv4oxotF.js";function j(){const r=t(),{projectName:s}=n();if(s){const a=o({projectName:s});return e.jsx(c,{onSelectPackage:r,resourceUri:a})}else return e.jsx("div",{children:e.jsx("h2",{children:"Missing project name"})})}export{j as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{H as o,j as r,y as s,S as n,q as t,T as a}from"./index-
|
|
1
|
+
import{H as o,j as r,y as s,S as n,q as t,T as a}from"./index-Cv4oxotF.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(n,{sx:{m:"auto",flexDirection:"column"},children:[r.jsx(t,{sx:{height:"300px"}}),r.jsx("img",{src:"/error.png"}),r.jsx(a,{variant:"subtitle1",children:"An unexpected error occurred"})]})})}export{x as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as a,j as e,z as t,J as c}from"./index-
|
|
1
|
+
import{p as a,j as e,z as t,J as c}from"./index-Cv4oxotF.js";function d(){const{workspace:r,workbookPath:s,projectName:i,packageName:n}=a();if(r)if(s)if(i)if(n){const o=t({projectName:i,packageName:n});return e.jsx(c,{workbookPath:{path:s,workspace:r},resourceUri:o},`${s}`)}else return e.jsx("div",{children:e.jsx("h2",{children:"Missing package name"})});else return e.jsx("div",{children:e.jsx("h2",{children:"Missing project name"})});else return e.jsx("div",{children:e.jsx("h2",{children:"Missing workbook path"})});else return e.jsx("div",{children:e.jsx("h2",{children:"Missing workspace"})})}export{d as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{V as I0,W as Mp}from"./index-
|
|
1
|
+
import{V as I0,W as Mp}from"./index-Cv4oxotF.js";function qp(a,d){for(var y=0;y<d.length;y++){const m=d[y];if(typeof m!="string"&&!Array.isArray(m)){for(const h in m)if(h!=="default"&&!(h in a)){const u=Object.getOwnPropertyDescriptor(m,h);u&&Object.defineProperty(a,h,u.get?u:{enumerable:!0,get:()=>m[h]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var Cr={},ct={},Xe={},Ma;function pe(){if(Ma)return Xe;Ma=1;/*!
|
|
2
2
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
3
3
|
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
4
4
|
*/Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.SuppressWarnings=Xe.Override=Xe.Nullable=Xe.NotNull=void 0;function a(h,u,r){}Xe.NotNull=a;function d(h,u,r){}Xe.Nullable=d;function y(h,u,r){}Xe.Override=y;function m(h){return(u,r,o)=>{}}return Xe.SuppressWarnings=m,Xe}var qa;function jp(){if(qa)return ct;qa=1;/*!
|