@michelangelo-ai/core 0.6.0 → 0.7.0

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.
@@ -2,7 +2,8 @@ import type { SuccessOperation } from '../../../components/actions/types';
2
2
  type HarnessProps = {
3
3
  operations?: SuccessOperation[];
4
4
  response?: unknown;
5
+ mutationName?: string;
5
6
  };
6
- export declare function UseSuccessOperationsTestHarness({ operations, response }: HarnessProps): import("react/jsx-runtime").JSX.Element;
7
+ export declare function UseSuccessOperationsTestHarness({ operations, response, mutationName, }: HarnessProps): import("react/jsx-runtime").JSX.Element;
7
8
  export {};
8
9
  //# sourceMappingURL=use-success-operations-test-harness.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-success-operations-test-harness.d.ts","sourceRoot":"","sources":["../../../../components/actions/__fixtures__/use-success-operations-test-harness.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAEvE,KAAK,YAAY,GAAG;IAClB,UAAU,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,wBAAgB,+BAA+B,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,YAAY,2CAIrF"}
1
+ {"version":3,"file":"use-success-operations-test-harness.d.ts","sourceRoot":"","sources":["../../../../components/actions/__fixtures__/use-success-operations-test-harness.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAEvE,KAAK,YAAY,GAAG;IAClB,UAAU,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,wBAAgB,+BAA+B,CAAC,EAC9C,UAAU,EACV,QAAQ,EACR,YAAY,GACb,EAAE,YAAY,2CAId"}
@@ -5,5 +5,5 @@ import type { SuccessOperation } from './types';
5
5
  * The runner resolves response interpolation (e.g. `${response.metadata.name}`)
6
6
  * against the mutation result, then applies each operation in order.
7
7
  */
8
- export declare function useSuccessOperations(operations?: SuccessOperation[]): (response: unknown) => void;
8
+ export declare function useSuccessOperations(operations?: SuccessOperation[], mutationName?: string): (response: unknown) => void;
9
9
  //# sourceMappingURL=use-success-operations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-success-operations.d.ts","sourceRoot":"","sources":["../../../components/actions/use-success-operations.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAkB,MAAM,SAAS,CAAC;AAIhE;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,CAAC,EAAE,gBAAgB,EAAE,cAOrD,OAAO,UA0BrB"}
1
+ {"version":3,"file":"use-success-operations.d.ts","sourceRoot":"","sources":["../../../components/actions/use-success-operations.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAkB,MAAM,SAAS,CAAC;AAIhE;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,CAAC,EAAE,gBAAgB,EAAE,EAAE,YAAY,CAAC,EAAE,MAAM,cAO5E,OAAO,UA0BrB"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-studio-mutation.d.ts","sourceRoot":"","sources":["../../../hooks/use-studio-mutation/use-studio-mutation.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAEvD,eAAO,MAAM,iBAAiB,GAAI,SAAS,EAAE,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,UAC3E,cAAc,GAAG,IAAI,KAC5B,uBAAuB,CAAC,SAAS,EAAE,QAAQ,CAsC7C,CAAC"}
1
+ {"version":3,"file":"use-studio-mutation.d.ts","sourceRoot":"","sources":["../../../hooks/use-studio-mutation/use-studio-mutation.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAEvD,eAAO,MAAM,iBAAiB,GAAI,SAAS,EAAE,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,UAC3E,cAAc,GAAG,IAAI,KAC5B,uBAAuB,CAAC,SAAS,EAAE,QAAQ,CA0C7C,CAAC"}
@@ -43,6 +43,10 @@ export interface UserDataSources {
43
43
  * Endpoint that was invoked to generate the {@link response} interpolation property
44
44
  */
45
45
  endpoint?: string;
46
+ /**
47
+ * Name of the mutation that was invoked to generate the {@link response} interpolation property
48
+ */
49
+ mutationName?: string;
46
50
  }
47
51
  /**
48
52
  * The complete context object that interpolation functions receive as their argument.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../interpolation/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AACvF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gDAAgD,CAAC;AAC1F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,IAAI,EAAE,GAAG,CAAC;IACV;;;OAGG;IACH,aAAa,EAAE,GAAG,CAAC;IACnB;;;OAGG;IACH,QAAQ,EAAE,GAAG,CAAC;IACd;;;OAGG;IACH,GAAG,EAAE,GAAG,CAAC;IACT;;OAE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BG;AACH,MAAM,MAAM,cAAc,CAAC,CAAC,EAAE,CAAC,SAAS,gBAAgB,GAAG,MAAM,IAC7D,CAAC,GACD,MAAM,GACN,qBAAqB,CAAC,CAAC,EAAE,CAAC,CAAC,GAC3B,mBAAmB,CAAC,CAAC,CAAC,CAAC;AAE3B;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,MAAM,kBAAkB,CAAC,CAAC,EAAE,CAAC,SAAS,gBAAgB,GAAG,MAAM,IAAI,CAAC,SAAS,CACjF,GAAG,IAAI,EAAE,GAAG,EAAE,KACX,GAAG,GACJ,CAAC,GACD,CAAC,SAAS,aAAa,CAAC,GAAG,CAAC,GAC1B,CAAC,GACD,CAAC,SAAS,KAAK,CAAC,MAAM,EAAE,CAAC,GACvB,KAAK,CAAC,kBAAkB,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAChC,CAAC,SAAS,MAAM,GACd;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;CAAE,GAC/C,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAE/B;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC"}
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./theme-provider-BYi0kcUt.cjs"),Yg=require("baseui/layer"),Xg=require("baseui/snackbar"),Qg=require("baseui/app-nav-bar"),_=require("baseui/button"),j=require("react"),Ae=require("react-router-dom-v5-compat"),an=require("baseui/layout-grid"),D=require("baseui"),Nt=require("baseui/popover"),sr=require("baseui/tag"),Oi=require("baseui/tooltip"),sa=require("baseui/data-table"),ht=require("baseui/input"),bt=require("baseui/typography"),zt=require("baseui/table-semantic"),Ti=require("baseui/checkbox"),Ws=require("baseui/dnd-list"),Jg=require("baseui/skeleton"),Zg=require("baseui/pagination"),Ji=require("baseui/select"),ru=require("baseui/block"),em=require("baseui/form-control"),tm=require("baseui/icon"),rr=require("baseui/dialog"),im=require("baseui/link"),nm=require("baseui/helpers/overrides"),Ch=require("baseui/textarea"),sm=require("baseui/accordion"),or=require("baseui/banner"),rm=require("baseui/menu"),ro=require("baseui/list"),lr=require("baseui/tabs-motion"),om=require("baseui/breadcrumbs"),ou=require("baseui/drawer"),wi=require("baseui/tile"),oo=require("baseui/radio"),lm=require("baseui/datepicker");function am(i){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const t in i)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(i,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>i[t]})}}return e.default=i,Object.freeze(e)}const Se=am(j),um=j.forwardRef(function(e,t){const{children:n,...s}=e;return d.jsxRuntimeExports.jsx(_.Button,{...s,ref:t,children:j.Children.map(n,(r,o)=>o===1&&j.isValidElement(r)?j.cloneElement(r,{overrides:{Svg:{style:{paddingLeft:0}}}}):r)})}),cm=[{label:"Sign out"}];function hm({links:i}){const e=d.useUserProvider(),t=(i==null?void 0:i.map(n=>({label:n.label,info:{href:n.href}})))??[];return d.jsxRuntimeExports.jsx(Qg.AppNavBar,{title:d.jsxRuntimeExports.jsx(d.Link,{href:"/",overrides:{Link:{style:{":hover":{textDecoration:"unset"}}}},children:"Michelangelo Studio"}),mainItems:t,mapItemToNode:n=>{const s=n.info;return s!=null&&s.href?d.jsxRuntimeExports.jsx(_.Button,{href:s.href,target:"_blank",rel:"noopener noreferrer",kind:_.KIND.tertiary,size:_.SIZE.compact,overrides:{BaseButton:{style:{display:"flex",alignItems:"flex-start",whiteSpace:"nowrap"}}},children:n.label}):d.jsxRuntimeExports.jsx(d.jsxRuntimeExports.Fragment,{children:n.label})},username:e.name,usernameSubtitle:e.email,userImgUrl:e.avatarUrl,userItems:cm,overrides:{Root:{style:{position:"relative"}},AppName:{style:{whiteSpace:"nowrap"}},PrimaryMenuContainer:{style:({$theme:n})=>({marginLeft:n.sizing.scale1000})},DesktopMenu:{style:{height:"64px",boxSizing:"border-box",paddingBlockStart:"20px"}},UserMenuButton:{component:um,props:{overrides:{BaseButton:{style:({$theme:n})=>({gap:n.sizing.scale200})}}}}}})}const Hi=({children:i})=>d.jsxRuntimeExports.jsx(an.Grid,{gridColumns:1,gridGutters:0,gridGaps:0,children:d.jsxRuntimeExports.jsx(an.Cell,{children:i})});function fm(i){const{id:e,icon:t,name:n,description:s,docUrl:r,state:o,entities:l,projectId:a}=i,u=Ae.useNavigate(),[c,h]=D.useStyletron(),f=o==="disabled"||o==="comingSoon",p=o==="comingSoon";return d.jsxRuntimeExports.jsxs(d.Box,{title:d.jsxRuntimeExports.jsxs("div",{className:c({display:"flex",alignItems:"center",gap:h.sizing.scale400}),children:[d.jsxRuntimeExports.jsx(d.Icon,{name:t,size:h.sizing.scale500}),n]}),description:s&&d.jsxRuntimeExports.jsxs("div",{className:c({display:"flex",alignItems:"center"}),children:[s,r&&d.jsxRuntimeExports.jsx(_.Button,{"aria-label":"Learn more",kind:_.KIND.tertiary,onClick:()=>window.open(r,"_blank"),shape:_.SHAPE.circle,size:_.SIZE.mini,children:d.jsxRuntimeExports.jsx(d.Icon,{name:"arrowLaunch",size:h.sizing.scale500})})]}),children:[p?d.jsxRuntimeExports.jsx("div",{className:c({display:"flex",justifyContent:"center",alignItems:"center",flex:"1",color:h.colors.contentTertiary}),children:"Coming soon"}):d.jsxRuntimeExports.jsx("div",{className:c({display:"flex",flexDirection:"column"}),children:l.map(g=>f||g.state==="disabled"?d.jsxRuntimeExports.jsx("span",{className:c({...h.typography.ParagraphSmall,cursor:"default",color:h.colors.contentTertiary}),children:d.capitalizeFirstLetter(g.name)},g.id):d.jsxRuntimeExports.jsx(d.Link,{href:`/${a}/${e}/${g.id}`,overrides:{Link:{style:h.typography.ParagraphSmall}},children:d.capitalizeFirstLetter(g.name)},g.id))}),l.some(g=>g.state==="active")&&!f&&d.jsxRuntimeExports.jsx(_.Button,{"aria-label":`Go to ${n}`,kind:_.KIND.secondary,onClick:()=>{const g=l.find(m=>m.state==="active");u(`/${a}/${e}/${g.id}`)},shape:_.SHAPE.circle,overrides:{BaseButton:{style:{marginTop:"auto"}}},children:d.jsxRuntimeExports.jsx(d.Icon,{name:"chevronRight",size:h.sizing.scale700})})]})}const wh=[{id:"metadata.name",label:"Name",url:"${row.metadata.name}"},{id:"metadata.creationTimestamp.seconds",label:"Created",type:d.CellType.DATE},{id:"spec.owner.owningTeam",label:"Owner"},{id:"spec.tier",label:"Tier",type:d.CellType.TAG}];function dm({phases:i}){var r,o,l,a;const[e,t]=D.useStyletron(),{projectId:n}=d.useStudioParams("base"),{data:s}=d.useStudioQuery({queryName:"GetProject",serviceOptions:{name:n,namespace:n}});return d.jsxRuntimeExports.jsxs("div",{className:e({display:"flex",flexDirection:"column",gridGap:t.sizing.scale600,padding:t.sizing.scale400}),children:[d.jsxRuntimeExports.jsx(d.Box,{description:(o=(r=s==null?void 0:s.project)==null?void 0:r.spec)==null?void 0:o.description,title:(a=(l=s==null?void 0:s.project)==null?void 0:l.metadata)==null?void 0:a.name,overrides:{BoxContainer:{style:({$theme:u})=>({backgroundColor:u.colors.backgroundSecondary})}},children:d.jsxRuntimeExports.jsx(d.Row,{items:wh,record:s==null?void 0:s.project})}),d.jsxRuntimeExports.jsx("div",{className:e({display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(300px, 1fr))",gap:t.sizing.scale600,padding:t.sizing.scale400}),children:i.map((u,c)=>d.jsxRuntimeExports.jsx(fm,{...u,projectId:n},`${u.name}-${c}`))})]})}/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./theme-provider-BEQVBa23.cjs"),Yg=require("baseui/layer"),Xg=require("baseui/snackbar"),Qg=require("baseui/app-nav-bar"),_=require("baseui/button"),j=require("react"),Ae=require("react-router-dom-v5-compat"),an=require("baseui/layout-grid"),D=require("baseui"),Nt=require("baseui/popover"),sr=require("baseui/tag"),Oi=require("baseui/tooltip"),sa=require("baseui/data-table"),ht=require("baseui/input"),bt=require("baseui/typography"),zt=require("baseui/table-semantic"),Ti=require("baseui/checkbox"),Ws=require("baseui/dnd-list"),Jg=require("baseui/skeleton"),Zg=require("baseui/pagination"),Ji=require("baseui/select"),ru=require("baseui/block"),em=require("baseui/form-control"),tm=require("baseui/icon"),rr=require("baseui/dialog"),im=require("baseui/link"),nm=require("baseui/helpers/overrides"),Ch=require("baseui/textarea"),sm=require("baseui/accordion"),or=require("baseui/banner"),rm=require("baseui/menu"),ro=require("baseui/list"),lr=require("baseui/tabs-motion"),om=require("baseui/breadcrumbs"),ou=require("baseui/drawer"),wi=require("baseui/tile"),oo=require("baseui/radio"),lm=require("baseui/datepicker");function am(i){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const t in i)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(i,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>i[t]})}}return e.default=i,Object.freeze(e)}const Se=am(j),um=j.forwardRef(function(e,t){const{children:n,...s}=e;return d.jsxRuntimeExports.jsx(_.Button,{...s,ref:t,children:j.Children.map(n,(r,o)=>o===1&&j.isValidElement(r)?j.cloneElement(r,{overrides:{Svg:{style:{paddingLeft:0}}}}):r)})}),cm=[{label:"Sign out"}];function hm({links:i}){const e=d.useUserProvider(),t=(i==null?void 0:i.map(n=>({label:n.label,info:{href:n.href}})))??[];return d.jsxRuntimeExports.jsx(Qg.AppNavBar,{title:d.jsxRuntimeExports.jsx(d.Link,{href:"/",overrides:{Link:{style:{":hover":{textDecoration:"unset"}}}},children:"Michelangelo Studio"}),mainItems:t,mapItemToNode:n=>{const s=n.info;return s!=null&&s.href?d.jsxRuntimeExports.jsx(_.Button,{href:s.href,target:"_blank",rel:"noopener noreferrer",kind:_.KIND.tertiary,size:_.SIZE.compact,overrides:{BaseButton:{style:{display:"flex",alignItems:"flex-start",whiteSpace:"nowrap"}}},children:n.label}):d.jsxRuntimeExports.jsx(d.jsxRuntimeExports.Fragment,{children:n.label})},username:e.name,usernameSubtitle:e.email,userImgUrl:e.avatarUrl,userItems:cm,overrides:{Root:{style:{position:"relative"}},AppName:{style:{whiteSpace:"nowrap"}},PrimaryMenuContainer:{style:({$theme:n})=>({marginLeft:n.sizing.scale1000})},DesktopMenu:{style:{height:"64px",boxSizing:"border-box",paddingBlockStart:"20px"}},UserMenuButton:{component:um,props:{overrides:{BaseButton:{style:({$theme:n})=>({gap:n.sizing.scale200})}}}}}})}const Hi=({children:i})=>d.jsxRuntimeExports.jsx(an.Grid,{gridColumns:1,gridGutters:0,gridGaps:0,children:d.jsxRuntimeExports.jsx(an.Cell,{children:i})});function fm(i){const{id:e,icon:t,name:n,description:s,docUrl:r,state:o,entities:l,projectId:a}=i,u=Ae.useNavigate(),[c,h]=D.useStyletron(),f=o==="disabled"||o==="comingSoon",p=o==="comingSoon";return d.jsxRuntimeExports.jsxs(d.Box,{title:d.jsxRuntimeExports.jsxs("div",{className:c({display:"flex",alignItems:"center",gap:h.sizing.scale400}),children:[d.jsxRuntimeExports.jsx(d.Icon,{name:t,size:h.sizing.scale500}),n]}),description:s&&d.jsxRuntimeExports.jsxs("div",{className:c({display:"flex",alignItems:"center"}),children:[s,r&&d.jsxRuntimeExports.jsx(_.Button,{"aria-label":"Learn more",kind:_.KIND.tertiary,onClick:()=>window.open(r,"_blank"),shape:_.SHAPE.circle,size:_.SIZE.mini,children:d.jsxRuntimeExports.jsx(d.Icon,{name:"arrowLaunch",size:h.sizing.scale500})})]}),children:[p?d.jsxRuntimeExports.jsx("div",{className:c({display:"flex",justifyContent:"center",alignItems:"center",flex:"1",color:h.colors.contentTertiary}),children:"Coming soon"}):d.jsxRuntimeExports.jsx("div",{className:c({display:"flex",flexDirection:"column"}),children:l.map(g=>f||g.state==="disabled"?d.jsxRuntimeExports.jsx("span",{className:c({...h.typography.ParagraphSmall,cursor:"default",color:h.colors.contentTertiary}),children:d.capitalizeFirstLetter(g.name)},g.id):d.jsxRuntimeExports.jsx(d.Link,{href:`/${a}/${e}/${g.id}`,overrides:{Link:{style:h.typography.ParagraphSmall}},children:d.capitalizeFirstLetter(g.name)},g.id))}),l.some(g=>g.state==="active")&&!f&&d.jsxRuntimeExports.jsx(_.Button,{"aria-label":`Go to ${n}`,kind:_.KIND.secondary,onClick:()=>{const g=l.find(m=>m.state==="active");u(`/${a}/${e}/${g.id}`)},shape:_.SHAPE.circle,overrides:{BaseButton:{style:{marginTop:"auto"}}},children:d.jsxRuntimeExports.jsx(d.Icon,{name:"chevronRight",size:h.sizing.scale700})})]})}const wh=[{id:"metadata.name",label:"Name",url:"${row.metadata.name}"},{id:"metadata.creationTimestamp.seconds",label:"Created",type:d.CellType.DATE},{id:"spec.owner.owningTeam",label:"Owner"},{id:"spec.tier",label:"Tier",type:d.CellType.TAG}];function dm({phases:i}){var r,o,l,a;const[e,t]=D.useStyletron(),{projectId:n}=d.useStudioParams("base"),{data:s}=d.useStudioQuery({queryName:"GetProject",serviceOptions:{name:n,namespace:n}});return d.jsxRuntimeExports.jsxs("div",{className:e({display:"flex",flexDirection:"column",gridGap:t.sizing.scale600,padding:t.sizing.scale400}),children:[d.jsxRuntimeExports.jsx(d.Box,{description:(o=(r=s==null?void 0:s.project)==null?void 0:r.spec)==null?void 0:o.description,title:(a=(l=s==null?void 0:s.project)==null?void 0:l.metadata)==null?void 0:a.name,overrides:{BoxContainer:{style:({$theme:u})=>({backgroundColor:u.colors.backgroundSecondary})}},children:d.jsxRuntimeExports.jsx(d.Row,{items:wh,record:s==null?void 0:s.project})}),d.jsxRuntimeExports.jsx("div",{className:e({display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(300px, 1fr))",gap:t.sizing.scale600,padding:t.sizing.scale400}),children:i.map((u,c)=>d.jsxRuntimeExports.jsx(fm,{...u,projectId:n},`${u.name}-${c}`))})]})}/**
2
2
  * table-core
3
3
  *
4
4
  * Copyright (c) TanStack
@@ -1,5 +1,5 @@
1
- import { j as g, u as Im, L as ma, B as mr, c as gn, I as pe, C as U, a as ft, b as yr, R as Ys, l as at, s as Xs, d as Hh, g as Gh, T as ya, G as Sc, M as oi, e as Lm, f as br, h as Fm, i as Nm, k as Bm, m as jm, n as Zt, o as ys, H as Wh, p as Qs, q as ul, r as Vm, t as ba, D as Uh, v as zm, w as qh, x as Kh, S as Yh, y as $m, z as va, A as _m, P as Xh, E as Hm, F as Gm, J as Wm, K as Um, N as qm, O as Km, Q as Ym, U as Xm, V as Qm, W as Jm } from "./theme-provider-B6-u7x9y.js";
2
- import { a8 as hO, Z as fO, _ as dO, Y as gO, $ as pO, a0 as mO, a1 as yO, a2 as bO, a3 as vO, a4 as xO, a5 as SO, a6 as wO, X as CO, ac as kO, ad as RO, ae as AO, af as EO, ab as TO, a9 as MO, aa as OO, a7 as PO } from "./theme-provider-B6-u7x9y.js";
1
+ import { j as g, u as Im, L as ma, B as mr, c as gn, I as pe, C as U, a as ft, b as yr, R as Ys, l as at, s as Xs, d as Hh, g as Gh, T as ya, G as Sc, M as oi, e as Lm, f as br, h as Fm, i as Nm, k as Bm, m as jm, n as Zt, o as ys, H as Wh, p as Qs, q as ul, r as Vm, t as ba, D as Uh, v as zm, w as qh, x as Kh, S as Yh, y as $m, z as va, A as _m, P as Xh, E as Hm, F as Gm, J as Wm, K as Um, N as qm, O as Km, Q as Ym, U as Xm, V as Qm, W as Jm } from "./theme-provider-BNyeUTHs.js";
2
+ import { a8 as hO, Z as fO, _ as dO, Y as gO, $ as pO, a0 as mO, a1 as yO, a2 as bO, a3 as vO, a4 as xO, a5 as SO, a6 as wO, X as CO, ac as kO, ad as RO, ae as AO, af as EO, ab as TO, a9 as MO, aa as OO, a7 as PO } from "./theme-provider-BNyeUTHs.js";
3
3
  import { LayersManager as Zm } from "baseui/layer";
4
4
  import { SnackbarProvider as e0 } from "baseui/snackbar";
5
5
  import { AppNavBar as t0 } from "baseui/app-nav-bar";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./theme-provider-BYi0kcUt.cjs"),i=require("react"),n=require("baseui/tag"),d=({children:o,renderers:r={}})=>{const t=i.useMemo(()=>({renderers:r}),[r]);return e.jsxRuntimeExports.jsx(e.CellContext.Provider,{value:t,children:o})};exports.Banner=e.Banner;exports.Box=e.Box;exports.DateTime=e.DateTime;exports.DescriptionText=e.DescriptionText;exports.ErrorProvider=e.ErrorProvider;exports.HelpTooltip=e.HelpTooltip;exports.Icon=e.Icon;exports.IconKind=e.IconKind;exports.IconProvider=e.IconProvider;exports.Link=e.Link;exports.Markdown=e.Markdown;exports.Row=e.Row;exports.ServiceProvider=e.ServiceProvider;exports.StyledBoxContainer=e.StyledBoxContainer;exports.StyledBoxHeader=e.StyledBoxHeader;exports.StyledBoxTitle=e.StyledBoxTitle;exports.StyledExternalLinkIcon=e.StyledExternalLinkIcon;exports.StyledLink=e.StyledLink;exports.TAG_BEHAVIOR=e.TAG_BEHAVIOR;exports.TAG_COLOR=e.TAG_COLOR;exports.TAG_SIZE=e.TAG_SIZE;exports.Tag=e.Tag;exports.ThemeProvider=e.ThemeProvider;exports.TruncatedText=e.TruncatedText;exports.UserProvider=e.UserProvider;exports.useCellProvider=e.useCellProvider;Object.defineProperty(exports,"TAG_HIERARCHY",{enumerable:!0,get:()=>n.HIERARCHY});exports.CellProvider=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./theme-provider-BEQVBa23.cjs"),i=require("react"),n=require("baseui/tag"),d=({children:o,renderers:r={}})=>{const t=i.useMemo(()=>({renderers:r}),[r]);return e.jsxRuntimeExports.jsx(e.CellContext.Provider,{value:t,children:o})};exports.Banner=e.Banner;exports.Box=e.Box;exports.DateTime=e.DateTime;exports.DescriptionText=e.DescriptionText;exports.ErrorProvider=e.ErrorProvider;exports.HelpTooltip=e.HelpTooltip;exports.Icon=e.Icon;exports.IconKind=e.IconKind;exports.IconProvider=e.IconProvider;exports.Link=e.Link;exports.Markdown=e.Markdown;exports.Row=e.Row;exports.ServiceProvider=e.ServiceProvider;exports.StyledBoxContainer=e.StyledBoxContainer;exports.StyledBoxHeader=e.StyledBoxHeader;exports.StyledBoxTitle=e.StyledBoxTitle;exports.StyledExternalLinkIcon=e.StyledExternalLinkIcon;exports.StyledLink=e.StyledLink;exports.TAG_BEHAVIOR=e.TAG_BEHAVIOR;exports.TAG_COLOR=e.TAG_COLOR;exports.TAG_SIZE=e.TAG_SIZE;exports.Tag=e.Tag;exports.ThemeProvider=e.ThemeProvider;exports.TruncatedText=e.TruncatedText;exports.UserProvider=e.UserProvider;exports.useCellProvider=e.useCellProvider;Object.defineProperty(exports,"TAG_HIERARCHY",{enumerable:!0,get:()=>n.HIERARCHY});exports.CellProvider=d;
@@ -1,5 +1,5 @@
1
- import { j as r, ag as s } from "./theme-provider-B6-u7x9y.js";
2
- import { t as T, B as m, ai as c, z as v, Q as p, H as I, I as R, o as A, U as C, L as H, M as P, R as u, O as B, A as E, aj as S, y, ak as k, al as L, r as f, an as j, am as G, q as O, N as _, T as M, V, ah as g } from "./theme-provider-B6-u7x9y.js";
1
+ import { j as r, ag as s } from "./theme-provider-BNyeUTHs.js";
2
+ import { t as T, B as m, ai as c, z as v, Q as p, H as I, I as R, o as A, U as C, L as H, M as P, R as u, O as B, A as E, aj as S, y, ak as k, al as L, r as f, an as j, am as G, q as O, N as _, T as M, V, ah as g } from "./theme-provider-BNyeUTHs.js";
3
3
  import { useMemo as t } from "react";
4
4
  import { HIERARCHY as w } from "baseui/tag";
5
5
  const l = ({