@decocms/mesh 1.0.0-alpha.2 → 1.0.0-alpha.3

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 (75) hide show
  1. package/dist/client/assets/{alert-dialog-DsYjmjQa.js → alert-dialog-Caf0mgW9.js} +1 -1
  2. package/dist/client/assets/{auth-dQSMuI_r.js → auth-CGqqbEan.js} +1 -1
  3. package/dist/client/assets/{auth-catchall-vTieIyKZ.js → auth-catchall-Bw-KJI1v.js} +1 -1
  4. package/dist/client/assets/{avatar-DFNVHH7B.js → avatar-CdPaDOIs.js} +1 -1
  5. package/dist/client/assets/{badge-D0svJbIE.js → badge-j-myHF25.js} +1 -1
  6. package/dist/client/assets/{button-CB7Gt-Ba.js → button-DnKGwZ1P.js} +1 -1
  7. package/dist/client/assets/{card-BZePxfHz.js → card-I0CWqn2J.js} +1 -1
  8. package/dist/client/assets/{checkbox-CJwRElzS.js → checkbox-v3iP8MNg.js} +1 -1
  9. package/dist/client/assets/{circle-alert-FONBIc_T.js → circle-alert-CpqBZI3V.js} +1 -1
  10. package/dist/client/assets/{collection-detail-CFf2hZjF.js → collection-detail-BSfYYwzG.js} +1 -1
  11. package/dist/client/assets/{collection-display-button-Ccjj22Xn.js → collection-display-button-Cws3c2TG.js} +1 -1
  12. package/dist/client/assets/{collection-header-C3vTyWNy.js → collection-header-CJC3zXGa.js} +1 -1
  13. package/dist/client/assets/{collection-page-BplXISpO.js → collection-page-CkAonVNX.js} +1 -1
  14. package/dist/client/assets/{collection-search-BpPEPb0j.js → collection-search-Bd4XQ4_K.js} +1 -1
  15. package/dist/client/assets/{collection-table-wrapper-CJdrG443.js → collection-table-wrapper-Dv4rgxdy.js} +1 -1
  16. package/dist/client/assets/{connection-card-B7VMSnFz.js → connection-card-CgJm9r5i.js} +1 -1
  17. package/dist/client/assets/{connection-detail-DGFMHZQW.js → connection-detail-HAGAOVY9.js} +1 -1
  18. package/dist/client/assets/{connections-BFxMYtuo.js → connections-C8Z338-P.js} +1 -1
  19. package/dist/client/assets/{create-organization-dialog-Mq1L8DSD.js → create-organization-dialog-CWgFMDXV.js} +1 -1
  20. package/dist/client/assets/{dialog-DhrfZsqb.js → dialog-Qusr5Dgc.js} +1 -1
  21. package/dist/client/assets/{dropdown-menu-zoKN8fKM.js → dropdown-menu-BIeRR6rM.js} +1 -1
  22. package/dist/client/assets/{empty-state-BCgOYCyG.js → empty-state-DV83eIhT.js} +1 -1
  23. package/dist/client/assets/{error-boundary-L4NxoU-J.js → error-boundary-qOVcoWbq.js} +1 -1
  24. package/dist/client/assets/{extract-connection-data-mJfi2GDs.js → extract-connection-data-DzgXoQyz.js} +1 -1
  25. package/dist/client/assets/{form-BmhZau8F.js → form-0C1lYHJ2.js} +1 -1
  26. package/dist/client/assets/{gateway-detail-BEN_sL0j.js → gateway-detail-mD14k5vr.js} +1 -1
  27. package/dist/client/assets/{gateways-DPfP8fjF.js → gateways-BSGLH5Mc.js} +1 -1
  28. package/dist/client/assets/{home-RT_Ssleq.js → home-B1IT0slW.js} +1 -1
  29. package/dist/client/assets/{icon-Zm7eEeKG.js → icon-C1glN-Ga.js} +1 -1
  30. package/dist/client/assets/index-B5e6fytH.js +118 -0
  31. package/dist/client/assets/{index-CfNAXm02.js → index-C1xA8jg5.js} +1 -1
  32. package/dist/client/assets/{index-CoeZDSQf.js → index-Chpp7zg0.js} +1 -1
  33. package/dist/client/assets/{index-BAut7b_p.js → index-D2ODleHN.js} +1 -1
  34. package/dist/client/assets/{index-CBL6DTCM.js → index-DqmRoUE9.js} +1 -1
  35. package/dist/client/assets/{input-DWY0hRYC.js → input-DpAKmHHm.js} +1 -1
  36. package/dist/client/assets/{integration-icon-Dgf9Pzxc.js → integration-icon-C_Dk6BbN.js} +1 -1
  37. package/dist/client/assets/{layout-C75gYFRR.js → layout-BMHVtK0w.js} +1 -1
  38. package/dist/client/assets/{lazy-highlighter-V_ETf5s5.js → lazy-highlighter-9rAB2zZq.js} +1 -1
  39. package/dist/client/assets/{localstorage-keys-CdMYd__a.js → localstorage-keys-DC7ymQmZ.js} +1 -1
  40. package/dist/client/assets/{login-CaI2gNh0.js → login-BMjQy3tL.js} +1 -1
  41. package/dist/client/assets/{members-BD990Z5F.js → members-k_V-Gxfi.js} +1 -1
  42. package/dist/client/assets/{monitoring-s9rrPP3V.js → monitoring-BG-rBDyv.js} +1 -1
  43. package/dist/client/assets/{monitoring-stats-row-DiSEgwHP.js → monitoring-stats-row-PYfuhQHX.js} +1 -1
  44. package/dist/client/assets/{oauth-callback-ChC_4XSg.js → oauth-callback-CQ4D18kW.js} +1 -1
  45. package/dist/client/assets/{page-BauA0SPJ.js → page-h-kmS-QS.js} +1 -1
  46. package/dist/client/assets/{popover-B7GJHYd2.js → popover-TCQphQTw.js} +1 -1
  47. package/dist/client/assets/{prism-BsII3tZL.js → prism-CcSucC56.js} +1 -1
  48. package/dist/client/assets/{resource-tabs-Djqhz6PB.js → resource-tabs-E4yf0eYT.js} +1 -1
  49. package/dist/client/assets/{schema-CJRWBwzd.js → schema-BLzWyGtx.js} +1 -1
  50. package/dist/client/assets/{select-CrueAR2N.js → select-fvQCifl4.js} +1 -1
  51. package/dist/client/assets/{settings-85tu13fN.js → settings-Bjk195Z6.js} +1 -1
  52. package/dist/client/assets/{shell-layout-CwcEMEv3.js → shell-layout-B8oNCzSa.js} +3 -3
  53. package/dist/client/assets/{spinner-R42f7AVH.js → spinner-Cck765yW.js} +1 -1
  54. package/dist/client/assets/{store-zixro3Vs.js → store-DD1aCoWU.js} +1 -1
  55. package/dist/client/assets/{store-app-detail-D89e4NIX.js → store-app-detail-DZvzqAVf.js} +1 -1
  56. package/dist/client/assets/{textarea-CAmjTm6l.js → textarea--4iImQiq.js} +1 -1
  57. package/dist/client/assets/{tool-set-selector-BfScgRcK.js → tool-set-selector-Fu1vBXWK.js} +1 -1
  58. package/dist/client/assets/{tooltip-BLbXpJcn.js → tooltip-DjXyjtiH.js} +1 -1
  59. package/dist/client/assets/{upload-CG7PZ6WF.js → upload-DkfUhTLj.js} +1 -1
  60. package/dist/client/assets/{use-binding-CeSgmpzj.js → use-binding-BLIUV5ER.js} +1 -1
  61. package/dist/client/assets/{use-connection-D5nZyekX.js → use-connection-IMyxygAc.js} +1 -1
  62. package/dist/client/assets/{use-gateway-pRk3-ua4.js → use-gateway-CuMrhcvh.js} +1 -1
  63. package/dist/client/assets/{use-list-state-BTIryg2o.js → use-list-state-Bas0EIwN.js} +1 -1
  64. package/dist/client/assets/{use-members-OyBpbFn0.js → use-members-DHcrnzKP.js} +1 -1
  65. package/dist/client/assets/{use-mobile-BPQzOCZP.js → use-mobile-CxX0wu31.js} +1 -1
  66. package/dist/client/assets/{use-organization-settings-CMP1q4u_.js → use-organization-settings-CpvpbwdB.js} +1 -1
  67. package/dist/client/assets/{use-tool-call-BsMTRGjQ.js → use-tool-call-p0lqBezD.js} +1 -1
  68. package/dist/client/assets/useQuery-BO2jzwkw.js +1 -0
  69. package/dist/client/assets/utils-BLBjpUfr.js +1 -0
  70. package/dist/client/index.html +1 -1
  71. package/dist/server/cli.js +1 -1
  72. package/package.json +1 -1
  73. package/dist/client/assets/index-VCe1FY3E.js +0 -118
  74. package/dist/client/assets/useQuery-DEUZMq4A.js +0 -1
  75. package/dist/client/assets/utils-B-QWwgyW.js +0 -1
@@ -1,2 +1,2 @@
1
- import{c as v,a1 as j,a3 as P,a2 as g,a6 as L}from"./index-VCe1FY3E.js";import{u as x}from"./tooltip-BLbXpJcn.js";import{u as N}from"./button-CB7Gt-Ba.js";const Q="UNKNOWN_CONNECTION_ID",b=async n=>{const r=(await n.text()).split(`
1
+ import{c as v,a1 as j,a3 as P,a2 as g,a6 as L}from"./index-B5e6fytH.js";import{u as x}from"./tooltip-DjXyjtiH.js";import{u as N}from"./button-DnKGwZ1P.js";const Q="UNKNOWN_CONNECTION_ID",b=async n=>{const r=(await n.text()).split(`
2
2
  `).find(e=>e.startsWith("data: "));if(!r)throw new Error("No data received from the server");return JSON.parse(r.replace("data: ",""))};function I(n){if(n===Q)return(async()=>{});const s=n?`/mcp/${n}`:"/mcp";return async(r,t)=>{const e=await fetch(s,{method:"POST",body:JSON.stringify({jsonrpc:"2.0",id:1,method:"tools/call",params:{name:r,arguments:t}}),headers:{"Content-Type":"application/json",Accept:"application/json, text/event-stream"},credentials:"include"});if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const i=e.headers.get("Content-Type")==="application/json"?await e.json():await b(e);if(i.result?.isError)throw new Error(i.result.content?.[0]?.text||"Tool call failed");return i.result?.structuredContent||i.result}}function U(n,s,r){const t=[];if(n?.trim()){const e=n.trim(),i=r.map(a=>({field:[String(a)],operator:"contains",value:e}));i.length===1&&i[0]?t.push(i[0]):i.length>1&&t.push({operator:"or",conditions:i})}if(s&&s.length>0)for(const e of s)t.push({field:[e.column],operator:"eq",value:e.value});if(t.length!==0)return t.length===1?t[0]:{operator:"and",conditions:t}}function A(n,s,r){const t=n??r,e=s??"asc";return[{field:[String(t)],direction:e}]}function D(n,s,r,t){const e=v.c(13);let i;e[0]!==s?(i=s.toUpperCase(),e[0]=s,e[1]=i):i=e[1];const c=`COLLECTION_${i}_GET`;let u;e[2]!==s||e[3]!==r||e[4]!==n?(u=g.collectionItem(n,s,r??""),e[2]=s,e[3]=r,e[4]=n,e[5]=u):u=e[5];let l;e[6]!==c||e[7]!==r||e[8]!==t?(l=async()=>r?await t(c,{id:r}):{item:null},e[6]=c,e[7]=r,e[8]=t,e[9]=l):l=e[9];let o;e[10]!==u||e[11]!==l?(o={queryKey:u,queryFn:l,staleTime:6e4},e[10]=u,e[11]=l,e[12]=o):o=e[12];const{data:f}=P(o);return f.item}function J(n,s,r,t){const e=v.c(20);let i,a,c,u,l,o;if(e[0]!==s||e[1]!==n||e[2]!==t){const p=t===void 0?{}:t,{searchTerm:m,filters:_,sortKey:$,sortDirection:C,searchFields:y,defaultSortKey:S,pageSize:h}=p,O=y===void 0?["title","description"]:y,E=S===void 0?"updated_at":S;c=h===void 0?100:h;let T;e[9]!==s?(T=s.toUpperCase(),e[9]=s,e[10]=T):T=e[10],i=`COLLECTION_${T}_LIST`,o=U(m,_,O),a=A($,C,E);const F=JSON.stringify({where:o,orderBy:a,limit:c});l=P,u=g.collectionList(n,s,F),e[0]=s,e[1]=n,e[2]=t,e[3]=i,e[4]=a,e[5]=c,e[6]=u,e[7]=l,e[8]=o}else i=e[3],a=e[4],c=e[5],u=e[6],l=e[7],o=e[8];let f;e[11]!==i||e[12]!==a||e[13]!==c||e[14]!==r||e[15]!==o?(f=async()=>{const p={...o&&{where:o},...a&&{orderBy:a},limit:c,offset:0};return await r(i,p)??[]},e[11]=i,e[12]=a,e[13]=c,e[14]=r,e[15]=o,e[16]=f):f=e[16];let d;e[17]!==u||e[18]!==f?(d={queryKey:u,queryFn:f},e[17]=u,e[18]=f,e[19]=d):d=e[19];const{data:w}=l(d);return w.items}function W(n,s,r){const t=v.c(36),e=j();let i;t[0]!==s?(i=s.toUpperCase(),t[0]=s,t[1]=i):i=t[1];const a=i,c=`COLLECTION_${a}_CREATE`,u=`COLLECTION_${a}_UPDATE`,l=`COLLECTION_${a}_DELETE`;let o;t[2]!==c||t[3]!==r?(o=async E=>(await r(c,{data:E})).item,t[2]=c,t[3]=r,t[4]=o):o=t[4];let f;t[5]!==s||t[6]!==e||t[7]!==n?(f=()=>{e.invalidateQueries({queryKey:g.collectionListPrefix(n,s)}),e.invalidateQueries({queryKey:g.collectionListInfinitePrefix(n,s)}),L.success("Item created successfully")},t[5]=s,t[6]=e,t[7]=n,t[8]=f):f=t[8];let d;t[9]!==o||t[10]!==f?(d={mutationFn:o,onSuccess:f,onError:z},t[9]=o,t[10]=f,t[11]=d):d=t[11];const w=N(d);let p;t[12]!==r||t[13]!==u?(p=async E=>{const{id:T,data:q}=E;return(await r(u,{id:T,data:q})).item},t[12]=r,t[13]=u,t[14]=p):p=t[14];let m;t[15]!==s||t[16]!==e||t[17]!==n?(m=E=>{e.invalidateQueries({queryKey:g.collectionListPrefix(n,s)}),e.invalidateQueries({queryKey:g.collectionListInfinitePrefix(n,s)}),e.invalidateQueries({queryKey:g.collectionItem(n,s,E.id)}),L.success("Item updated successfully")},t[15]=s,t[16]=e,t[17]=n,t[18]=m):m=t[18];let _;t[19]!==p||t[20]!==m?(_={mutationFn:p,onSuccess:m,onError:k},t[19]=p,t[20]=m,t[21]=_):_=t[21];const $=N(_);let C;t[22]!==l||t[23]!==r?(C=async E=>(await r(l,{id:E})).item.id,t[22]=l,t[23]=r,t[24]=C):C=t[24];let y;t[25]!==s||t[26]!==e||t[27]!==n?(y=()=>{e.invalidateQueries({queryKey:g.collectionListPrefix(n,s)}),e.invalidateQueries({queryKey:g.collectionListInfinitePrefix(n,s)}),L.success("Item deleted successfully")},t[25]=s,t[26]=e,t[27]=n,t[28]=y):y=t[28];let S;t[29]!==C||t[30]!==y?(S={mutationFn:C,onSuccess:y,onError:R},t[29]=C,t[30]=y,t[31]=S):S=t[31];const h=N(S);let O;return t[32]!==w||t[33]!==h||t[34]!==$?(O={create:w,update:$,delete:h},t[32]=w,t[33]=h,t[34]=$,t[35]=O):O=t[35],O}function R(n){const s=n instanceof Error?n.message:String(n);L.error(`Failed to delete item: ${s}`)}function k(n){const s=n instanceof Error?n.message:String(n);L.error(`Failed to update item: ${s}`)}function z(n){const s=n instanceof Error?n.message:String(n);L.error(`Failed to create item: ${s}`)}function M(n){const s=v.c(3);let r;s[0]!==n?(r=n===void 0?{}:n,s[0]=n,s[1]=r):r=s[1];const t=r,{org:e}=x();let i;s[2]===Symbol.for("react.memo_cache_sentinel")?(i=I(),s[2]=i):i=s[2];const a=i;return J(e.slug,"CONNECTIONS",a,t)}function Y(n){const s=v.c(1),{org:r}=x();let t;s[0]===Symbol.for("react.memo_cache_sentinel")?(t=I(),s[0]=t):t=s[0];const e=t;return D(r.slug,"CONNECTIONS",n,e)}function K(){const n=v.c(1),{org:s}=x();let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=I(),n[0]=r):r=n[0];const t=r;return W(s.slug,"CONNECTIONS",t)}export{Q as U,Y as a,M as b,I as c,K as d,W as e,D as f,J as u};
@@ -1 +1 @@
1
- import{c as n}from"./index-VCe1FY3E.js";import{e as u,u as m,f,c as r}from"./use-connection-D5nZyekX.js";import{u as a}from"./tooltip-BLbXpJcn.js";function g(t){const e=n.c(3);let o;e[0]!==t?(o=t===void 0?{}:t,e[0]=t,e[1]=o):o=e[1];const s=o,{org:c}=a();let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=r(),e[2]=l):l=e[2];const i=l;return m(c.slug,"GATEWAY",i,s)}function y(t){const e=n.c(1),{org:o}=a();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=r(),e[0]=s):s=e[0];const c=s;return f(o.slug,"GATEWAY",t,c)}function G(){const t=n.c(1),{org:e}=a();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=r(),t[0]=o):o=t[0];const s=o;return u(e.slug,"GATEWAY",s)}export{G as a,y as b,g as u};
1
+ import{c as n}from"./index-B5e6fytH.js";import{e as u,u as m,f,c as r}from"./use-connection-IMyxygAc.js";import{u as a}from"./tooltip-DjXyjtiH.js";function g(t){const e=n.c(3);let o;e[0]!==t?(o=t===void 0?{}:t,e[0]=t,e[1]=o):o=e[1];const s=o,{org:c}=a();let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=r(),e[2]=l):l=e[2];const i=l;return m(c.slug,"GATEWAY",i,s)}function y(t){const e=n.c(1),{org:o}=a();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=r(),e[0]=s):s=e[0];const c=s;return f(o.slug,"GATEWAY",t,c)}function G(){const t=n.c(1),{org:e}=a();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=r(),t[0]=o):o=t[0];const s=o;return u(e.slug,"GATEWAY",s)}export{G as a,y as b,g as u};
@@ -1 +1 @@
1
- import{r as f,c as B}from"./index-VCe1FY3E.js";import{u as E}from"./use-mobile-BPQzOCZP.js";function W(u){const e=`deco-filters-${u}`,[t,l]=f.useState(()=>{try{const o=globalThis.localStorage?.getItem(e);if(o)return JSON.parse(o)}catch(o){console.error("Failed to parse stored filters:",o)}return[]});return[t,o=>{l(o);try{globalThis.localStorage?.setItem(e,JSON.stringify(o))}catch(i){console.error("Failed to save filters:",i)}}]}function J(u){const e=B.c(7),[t,l]=f.useState(u),[s,o]=f.useState(u?"desc":null);let i;e[0]!==s||e[1]!==t?(i=h=>{t!==h?(l(h),o("asc")):s==="asc"?o("desc"):s==="desc"&&(l(void 0),o(null))},e[0]=s,e[1]=t,e[2]=i):i=e[2];const n=i;let r;return e[3]!==n||e[4]!==s||e[5]!==t?(r={sortKey:t,sortDirection:s,handleSort:n},e[3]=n,e[4]=s,e[5]=t,e[6]=r):r=e[6],r}function N(u,e){const t=B.c(12),l=e===void 0?"cards":e,s=E(),o=f.useRef(s),i=u?`deco-view-mode-${u}`:"deco-view-mode";let n;t[0]!==l||t[1]!==i?(n=()=>{const a=globalThis.localStorage?.getItem(i);return a==="cards"||a==="table"?a:l},t[0]=l,t[1]=i,t[2]=n):n=t[2];const[r,h]=f.useState(n);let d;t[3]!==i?(d=a=>{h(a),globalThis.localStorage?.setItem(i,a)},t[3]=i,t[4]=d):d=t[4];const y=d;let S,g;t[5]!==s||t[6]!==r?(S=()=>{!o.current&&s&&r==="table"&&h("cards"),o.current=s},g=[s,r],t[5]=s,t[6]=r,t[7]=S,t[8]=g):(S=t[7],g=t[8]),f.useEffect(S,g);let c;return t[9]!==y||t[10]!==r?(c=[r,y],t[9]=y,t[10]=r,t[11]=c):c=t[11],c}function R(u){const e=B.c(20),{namespace:t,resource:l,defaultSortKey:s,defaultViewMode:o}=u,i=s===void 0?"title":s,n=o===void 0?"table":o,[r,h]=f.useState(""),d=f.useDeferredValue(r),y=`${t}-${l}`,[S,g]=W(y),c=`mesh-${l}-filter-visible-${t}`;let a;e[0]!==c?(a=()=>globalThis.localStorage?.getItem(c)==="true",e[0]=c,e[1]=a):a=e[1];const[b,D]=f.useState(a);let M;e[2]!==c?(M=T=>{D(T),globalThis.localStorage?.setItem(c,String(T))},e[2]=c,e[3]=M):M=e[3];const m=M;let V;e[4]!==b||e[5]!==m?(V=()=>{m(!b)},e[4]=b,e[5]=m,e[6]=V):V=e[6];const p=V,[v,w]=N(`mesh-${l}-${t}`,n),{sortKey:x,sortDirection:F,handleSort:K}=J(i),I=x;let $;return e[7]!==b||e[8]!==S||e[9]!==K||e[10]!==r||e[11]!==d||e[12]!==m||e[13]!==g||e[14]!==w||e[15]!==F||e[16]!==I||e[17]!==p||e[18]!==v?($={search:r,searchTerm:d,setSearch:h,filters:S,setFilters:g,filterBarVisible:b,setFilterBarVisible:m,toggleFilterBar:p,viewMode:v,setViewMode:w,sortKey:I,sortDirection:F,handleSort:K},e[7]=b,e[8]=S,e[9]=K,e[10]=r,e[11]=d,e[12]=m,e[13]=g,e[14]=w,e[15]=F,e[16]=I,e[17]=p,e[18]=v,e[19]=$):$=e[19],$}export{R as u};
1
+ import{r as f,c as B}from"./index-B5e6fytH.js";import{u as E}from"./use-mobile-CxX0wu31.js";function W(u){const e=`deco-filters-${u}`,[t,l]=f.useState(()=>{try{const o=globalThis.localStorage?.getItem(e);if(o)return JSON.parse(o)}catch(o){console.error("Failed to parse stored filters:",o)}return[]});return[t,o=>{l(o);try{globalThis.localStorage?.setItem(e,JSON.stringify(o))}catch(i){console.error("Failed to save filters:",i)}}]}function J(u){const e=B.c(7),[t,l]=f.useState(u),[s,o]=f.useState(u?"desc":null);let i;e[0]!==s||e[1]!==t?(i=h=>{t!==h?(l(h),o("asc")):s==="asc"?o("desc"):s==="desc"&&(l(void 0),o(null))},e[0]=s,e[1]=t,e[2]=i):i=e[2];const n=i;let r;return e[3]!==n||e[4]!==s||e[5]!==t?(r={sortKey:t,sortDirection:s,handleSort:n},e[3]=n,e[4]=s,e[5]=t,e[6]=r):r=e[6],r}function N(u,e){const t=B.c(12),l=e===void 0?"cards":e,s=E(),o=f.useRef(s),i=u?`deco-view-mode-${u}`:"deco-view-mode";let n;t[0]!==l||t[1]!==i?(n=()=>{const a=globalThis.localStorage?.getItem(i);return a==="cards"||a==="table"?a:l},t[0]=l,t[1]=i,t[2]=n):n=t[2];const[r,h]=f.useState(n);let d;t[3]!==i?(d=a=>{h(a),globalThis.localStorage?.setItem(i,a)},t[3]=i,t[4]=d):d=t[4];const y=d;let S,g;t[5]!==s||t[6]!==r?(S=()=>{!o.current&&s&&r==="table"&&h("cards"),o.current=s},g=[s,r],t[5]=s,t[6]=r,t[7]=S,t[8]=g):(S=t[7],g=t[8]),f.useEffect(S,g);let c;return t[9]!==y||t[10]!==r?(c=[r,y],t[9]=y,t[10]=r,t[11]=c):c=t[11],c}function R(u){const e=B.c(20),{namespace:t,resource:l,defaultSortKey:s,defaultViewMode:o}=u,i=s===void 0?"title":s,n=o===void 0?"table":o,[r,h]=f.useState(""),d=f.useDeferredValue(r),y=`${t}-${l}`,[S,g]=W(y),c=`mesh-${l}-filter-visible-${t}`;let a;e[0]!==c?(a=()=>globalThis.localStorage?.getItem(c)==="true",e[0]=c,e[1]=a):a=e[1];const[b,D]=f.useState(a);let M;e[2]!==c?(M=T=>{D(T),globalThis.localStorage?.setItem(c,String(T))},e[2]=c,e[3]=M):M=e[3];const m=M;let V;e[4]!==b||e[5]!==m?(V=()=>{m(!b)},e[4]=b,e[5]=m,e[6]=V):V=e[6];const p=V,[v,w]=N(`mesh-${l}-${t}`,n),{sortKey:x,sortDirection:F,handleSort:K}=J(i),I=x;let $;return e[7]!==b||e[8]!==S||e[9]!==K||e[10]!==r||e[11]!==d||e[12]!==m||e[13]!==g||e[14]!==w||e[15]!==F||e[16]!==I||e[17]!==p||e[18]!==v?($={search:r,searchTerm:d,setSearch:h,filters:S,setFilters:g,filterBarVisible:b,setFilterBarVisible:m,toggleFilterBar:p,viewMode:v,setViewMode:w,sortKey:I,sortDirection:F,handleSort:K},e[7]=b,e[8]=S,e[9]=K,e[10]=r,e[11]=d,e[12]=m,e[13]=g,e[14]=w,e[15]=F,e[16]=I,e[17]=p,e[18]=v,e[19]=$):$=e[19],$}export{R as u};
@@ -1 +1 @@
1
- import{c as m,j as n,r as ae,a3 as xe,a2 as he,a as ge}from"./index-VCe1FY3E.js";import{c as $}from"./utils-B-QWwgyW.js";import{B as me}from"./badge-D0svJbIE.js";import{B as ve}from"./button-CB7Gt-Ba.js";import{C as ue}from"./checkbox-CJwRElzS.js";import{I as ne}from"./icon-Zm7eEeKG.js";import{_ as E}from"./index-BAut7b_p.js";import{a as je,b as be,P as ye}from"./popover-B7GJHYd2.js";import{u as Ne}from"./tooltip-BLbXpJcn.js";function we(l){const e=m.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=$("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),e[3]=t,e[4]=a):a=e[4];let o;return e[5]!==s||e[6]!==a?(o=n.jsx(E,{"data-slot":"command",className:a,...s}),e[5]=s,e[6]=a,e[7]=o):o=e[7],o}function ke(l){const e=m.c(9);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(ne,{name:"search",className:"size-5 shrink-0 text-foreground",size:20}),e[3]=a):a=e[3];let o;e[4]!==t?(o=$("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",t),e[4]=t,e[5]=o):o=e[5];let u;return e[6]!==s||e[7]!==o?(u=n.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-10 items-center gap-2 border-b px-3",children:[a,n.jsx(E.Input,{"data-slot":"command-input",className:o,...s})]}),e[6]=s,e[7]=o,e[8]=u):u=e[8],u}function Ce(l){const e=m.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=$("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),e[3]=t,e[4]=a):a=e[4];let o;return e[5]!==s||e[6]!==a?(o=n.jsx(E.List,{"data-slot":"command-list",className:a,...s}),e[5]=s,e[6]=a,e[7]=o):o=e[7],o}function _e(l){const e=m.c(4);let t;e[0]!==l?({...t}=l,e[0]=l,e[1]=t):t=e[1];let s;return e[2]!==t?(s=n.jsx(E.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...t}),e[2]=t,e[3]=s):s=e[3],s}function Se(l){const e=m.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=$("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),e[3]=t,e[4]=a):a=e[4];let o;return e[5]!==s||e[6]!==a?(o=n.jsx(E.Group,{"data-slot":"command-group",className:a,...s}),e[5]=s,e[6]=a,e[7]=o):o=e[7],o}function fe(l){const e=m.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=$("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),e[3]=t,e[4]=a):a=e[4];let o;return e[5]!==s||e[6]!==a?(o=n.jsx(E.Item,{"data-slot":"command-item",className:a,...s}),e[5]=s,e[6]=a,e[7]=o):o=e[7],o}function Ge(l){const e=m.c(72),{options:t,onValueChange:s,defaultValue:a,placeholder:o,variant:u,animation:oe,maxCount:re,modalPopover:ie,asChild:ce,className:Y,disabled:de}=l;let z;e[0]!==a?(z=a===void 0?[]:a,e[0]=a,e[1]=z):z=e[1];const p=z,H=o===void 0?"Select items":o,O=u===void 0?"default":u,B=oe===void 0?0:oe,I=re===void 0?3:re,U=ie===void 0?!1:ie,W=ce===void 0?!1:ce,X=de===void 0?!1:de,[r,V]=ae.useState(p),[Z,D]=ae.useState(!1);let K,M;e[2]!==p||e[3]!==r?(K=()=>{JSON.stringify(r)!==JSON.stringify(p)&&V(p)},M=[p,r],e[2]=p,e[3]=r,e[4]=K,e[5]=M):(K=e[4],M=e[5]),ae.useEffect(K,M);let T;e[6]!==s||e[7]!==r?(T=i=>{if(i.key==="Enter")D(!0);else if(i.key==="Backspace"&&!i.currentTarget.value){const c=[...r];c.pop(),V(c),s(c)}},e[6]=s,e[7]=r,e[8]=T):T=e[8];const ee=T;let q;e[9]!==s||e[10]!==r?(q=i=>{const c=r.includes(i.value)?r.filter(P=>P!==i.value):[...r,i.value];V(c),s(c)},e[9]=s,e[10]=r,e[11]=q):q=e[11];const f=q;let A;e[12]!==s?(A=()=>{V([]),s([])},e[12]=s,e[13]=A):A=e[13];const te=A;let G;e[14]===Symbol.for("react.memo_cache_sentinel")?(G=()=>{D(Ie)},e[14]=G):G=e[14];const pe=G;let J;e[15]!==te||e[16]!==s||e[17]!==t||e[18]!==r.length?(J=()=>{if(r.length===t.length)te();else{const i=t.map(Ee);V(i),s(i)}},e[15]=te,e[16]=s,e[17]=t,e[18]=r.length,e[19]=J):J=e[19];const d=J;let x;e[20]!==W?(x=W?{}:{variant:"outline"},e[20]=W,e[21]=x):x=e[21];let h;e[22]!==Y?(h=$("border-input data-[placeholder]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-full max-w-xs items-center justify-between gap-2 rounded-xl border bg-transparent px-3 py-2 text-sm shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 h-10 min-h-10",Y),e[22]=Y,e[23]=h):h=e[23];let g;e[24]!==B||e[25]!==I||e[26]!==t||e[27]!==H||e[28]!==r||e[29]!==O?(g=r.length>0?n.jsxs("div",{className:"flex items-center justify-between w-full min-w-0",children:[n.jsxs("div",{className:"flex items-center gap-1 min-w-0 flex-1",children:[r.slice(0,I).map(i=>{const c=t.find(le=>le.value===i),P=c?.icon;return n.jsxs(me,{variant:O==="default"?"default":"secondary",className:"max-w-24",style:{animationDuration:`${B}s`},children:[P&&n.jsx(P,{className:"h-3 w-3 shrink-0"}),n.jsx("span",{className:"truncate",children:c?.label})]},i)}),r.length>I&&n.jsxs(me,{variant:O==="default"?"default":"secondary",className:"flex-shrink-0",style:{animationDuration:`${B}s`},children:["+",r.length-I]})]}),n.jsx("div",{className:"flex items-center shrink-0 ml-2",children:n.jsx(ne,{name:"keyboard_arrow_down",size:20,className:"shrink-0 opacity-50"})})]}):n.jsxs("div",{className:"flex items-center justify-between w-full",children:[n.jsx("span",{className:"text-sm text-muted-foreground",children:H}),n.jsx(ne,{name:"keyboard_arrow_down",size:20,className:"shrink-0 opacity-50"})]}),e[24]=B,e[25]=I,e[26]=t,e[27]=H,e[28]=r,e[29]=O,e[30]=g):g=e[30];let v;e[31]!==X||e[32]!==x||e[33]!==h||e[34]!==g?(v=n.jsx(je,{asChild:!0,children:n.jsx(ve,{ref:null,...x,onClick:pe,className:h,disabled:X,children:g})}),e[31]=X,e[32]=x,e[33]=h,e[34]=g,e[35]=v):v=e[35];let L;e[36]===Symbol.for("react.memo_cache_sentinel")?(L=()=>D(!1),e[36]=L):L=e[36];let j;e[37]!==ee?(j=n.jsx(ke,{placeholder:"Search...",onKeyDown:ee,className:"rounded-t-xl"}),e[37]=ee,e[38]=j):j=e[38];let R;e[39]===Symbol.for("react.memo_cache_sentinel")?(R=n.jsx(_e,{children:"No results found."}),e[39]=R):R=e[39];let b;e[40]!==d?(b=()=>{d()},e[40]=d,e[41]=b):b=e[41];let y;e[42]!==d?(y=i=>{i.stopPropagation(),d()},e[42]=d,e[43]=y):y=e[43];const se=r.length===t.length&&t.length>0;let N;e[44]!==se||e[45]!==d?(N=n.jsx(ue,{checked:se,onCheckedChange:d,className:"mr-2 [&_svg]:!text-primary-foreground",onClick:$e}),e[44]=se,e[45]=d,e[46]=N):N=e[46];let F;e[47]===Symbol.for("react.memo_cache_sentinel")?(F=n.jsx("span",{children:"(Select All)"}),e[47]=F):F=e[47];let w;e[48]!==y||e[49]!==N?(w=n.jsxs("div",{className:"flex items-center w-full",onClick:y,children:[N,F]}),e[48]=y,e[49]=N,e[50]=w):w=e[50];let k;e[51]!==b||e[52]!==w?(k=n.jsx(fe,{onSelect:b,className:"cursor-pointer",children:w},"all"),e[51]=b,e[52]=w,e[53]=k):k=e[53];let C;if(e[54]!==t||e[55]!==r||e[56]!==f){let i;e[58]!==r||e[59]!==f?(i=c=>{const P=r.includes(c.value);return n.jsx(fe,{onSelect:()=>{f(c)},className:"cursor-pointer",children:n.jsxs("div",{className:"flex items-center w-full",onClick:le=>{le.stopPropagation(),f(c)},children:[n.jsx(ue,{checked:P,onCheckedChange:()=>{f(c)},className:"mr-2 [&_svg]:!text-primary-foreground",onClick:Pe}),c.icon&&n.jsx(c.icon,{className:"mr-2 h-4 w-4 text-muted-foreground"}),n.jsx("span",{children:c.label})]})},c.value)},e[58]=r,e[59]=f,e[60]=i):i=e[60],C=t.map(i),e[54]=t,e[55]=r,e[56]=f,e[57]=C}else C=e[57];let _;e[61]!==k||e[62]!==C?(_=n.jsxs(Ce,{className:"rounded-b-xl",children:[R,n.jsxs(Se,{children:[k,C]})]}),e[61]=k,e[62]=C,e[63]=_):_=e[63];let S;e[64]!==j||e[65]!==_?(S=n.jsx(be,{className:"w-auto p-0 max-w-xs rounded-xl",align:"start",onEscapeKeyDown:L,children:n.jsxs(we,{className:"rounded-xl",children:[j,_]})}),e[64]=j,e[65]=_,e[66]=S):S=e[66];let Q;return e[67]!==Z||e[68]!==U||e[69]!==v||e[70]!==S?(Q=n.jsxs(ye,{open:Z,onOpenChange:D,modal:U,children:[v,S]}),e[67]=Z,e[68]=U,e[69]=v,e[70]=S,e[71]=Q):Q=e[71],Q}function Pe(l){return l.stopPropagation()}function $e(l){return l.stopPropagation()}function Ee(l){return l.value}function Ie(l){return!l}function Je(){const l=m.c(4),{locator:e}=Ne();let t;l[0]!==e?(t=he.members(e),l[0]=e,l[1]=t):t=l[1];let s;return l[2]!==t?(s={queryKey:t,queryFn:Ve},l[2]=t,l[3]=s):s=l[3],xe(s)}function Ve(){return ge.organization.listMembers()}export{Ge as M,Je as u};
1
+ import{c as m,j as n,r as ae,a3 as xe,a2 as he,a as ge}from"./index-B5e6fytH.js";import{c as $}from"./utils-BLBjpUfr.js";import{B as me}from"./badge-j-myHF25.js";import{B as ve}from"./button-DnKGwZ1P.js";import{C as ue}from"./checkbox-v3iP8MNg.js";import{I as ne}from"./icon-C1glN-Ga.js";import{_ as E}from"./index-D2ODleHN.js";import{a as je,b as be,P as ye}from"./popover-TCQphQTw.js";import{u as Ne}from"./tooltip-DjXyjtiH.js";function we(l){const e=m.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=$("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),e[3]=t,e[4]=a):a=e[4];let o;return e[5]!==s||e[6]!==a?(o=n.jsx(E,{"data-slot":"command",className:a,...s}),e[5]=s,e[6]=a,e[7]=o):o=e[7],o}function ke(l){const e=m.c(9);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(ne,{name:"search",className:"size-5 shrink-0 text-foreground",size:20}),e[3]=a):a=e[3];let o;e[4]!==t?(o=$("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",t),e[4]=t,e[5]=o):o=e[5];let u;return e[6]!==s||e[7]!==o?(u=n.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-10 items-center gap-2 border-b px-3",children:[a,n.jsx(E.Input,{"data-slot":"command-input",className:o,...s})]}),e[6]=s,e[7]=o,e[8]=u):u=e[8],u}function Ce(l){const e=m.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=$("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),e[3]=t,e[4]=a):a=e[4];let o;return e[5]!==s||e[6]!==a?(o=n.jsx(E.List,{"data-slot":"command-list",className:a,...s}),e[5]=s,e[6]=a,e[7]=o):o=e[7],o}function _e(l){const e=m.c(4);let t;e[0]!==l?({...t}=l,e[0]=l,e[1]=t):t=e[1];let s;return e[2]!==t?(s=n.jsx(E.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...t}),e[2]=t,e[3]=s):s=e[3],s}function Se(l){const e=m.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=$("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),e[3]=t,e[4]=a):a=e[4];let o;return e[5]!==s||e[6]!==a?(o=n.jsx(E.Group,{"data-slot":"command-group",className:a,...s}),e[5]=s,e[6]=a,e[7]=o):o=e[7],o}function fe(l){const e=m.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=$("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),e[3]=t,e[4]=a):a=e[4];let o;return e[5]!==s||e[6]!==a?(o=n.jsx(E.Item,{"data-slot":"command-item",className:a,...s}),e[5]=s,e[6]=a,e[7]=o):o=e[7],o}function Ge(l){const e=m.c(72),{options:t,onValueChange:s,defaultValue:a,placeholder:o,variant:u,animation:oe,maxCount:re,modalPopover:ie,asChild:ce,className:Y,disabled:de}=l;let z;e[0]!==a?(z=a===void 0?[]:a,e[0]=a,e[1]=z):z=e[1];const p=z,H=o===void 0?"Select items":o,O=u===void 0?"default":u,B=oe===void 0?0:oe,I=re===void 0?3:re,U=ie===void 0?!1:ie,W=ce===void 0?!1:ce,X=de===void 0?!1:de,[r,V]=ae.useState(p),[Z,D]=ae.useState(!1);let K,M;e[2]!==p||e[3]!==r?(K=()=>{JSON.stringify(r)!==JSON.stringify(p)&&V(p)},M=[p,r],e[2]=p,e[3]=r,e[4]=K,e[5]=M):(K=e[4],M=e[5]),ae.useEffect(K,M);let T;e[6]!==s||e[7]!==r?(T=i=>{if(i.key==="Enter")D(!0);else if(i.key==="Backspace"&&!i.currentTarget.value){const c=[...r];c.pop(),V(c),s(c)}},e[6]=s,e[7]=r,e[8]=T):T=e[8];const ee=T;let q;e[9]!==s||e[10]!==r?(q=i=>{const c=r.includes(i.value)?r.filter(P=>P!==i.value):[...r,i.value];V(c),s(c)},e[9]=s,e[10]=r,e[11]=q):q=e[11];const f=q;let A;e[12]!==s?(A=()=>{V([]),s([])},e[12]=s,e[13]=A):A=e[13];const te=A;let G;e[14]===Symbol.for("react.memo_cache_sentinel")?(G=()=>{D(Ie)},e[14]=G):G=e[14];const pe=G;let J;e[15]!==te||e[16]!==s||e[17]!==t||e[18]!==r.length?(J=()=>{if(r.length===t.length)te();else{const i=t.map(Ee);V(i),s(i)}},e[15]=te,e[16]=s,e[17]=t,e[18]=r.length,e[19]=J):J=e[19];const d=J;let x;e[20]!==W?(x=W?{}:{variant:"outline"},e[20]=W,e[21]=x):x=e[21];let h;e[22]!==Y?(h=$("border-input data-[placeholder]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-full max-w-xs items-center justify-between gap-2 rounded-xl border bg-transparent px-3 py-2 text-sm shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 h-10 min-h-10",Y),e[22]=Y,e[23]=h):h=e[23];let g;e[24]!==B||e[25]!==I||e[26]!==t||e[27]!==H||e[28]!==r||e[29]!==O?(g=r.length>0?n.jsxs("div",{className:"flex items-center justify-between w-full min-w-0",children:[n.jsxs("div",{className:"flex items-center gap-1 min-w-0 flex-1",children:[r.slice(0,I).map(i=>{const c=t.find(le=>le.value===i),P=c?.icon;return n.jsxs(me,{variant:O==="default"?"default":"secondary",className:"max-w-24",style:{animationDuration:`${B}s`},children:[P&&n.jsx(P,{className:"h-3 w-3 shrink-0"}),n.jsx("span",{className:"truncate",children:c?.label})]},i)}),r.length>I&&n.jsxs(me,{variant:O==="default"?"default":"secondary",className:"flex-shrink-0",style:{animationDuration:`${B}s`},children:["+",r.length-I]})]}),n.jsx("div",{className:"flex items-center shrink-0 ml-2",children:n.jsx(ne,{name:"keyboard_arrow_down",size:20,className:"shrink-0 opacity-50"})})]}):n.jsxs("div",{className:"flex items-center justify-between w-full",children:[n.jsx("span",{className:"text-sm text-muted-foreground",children:H}),n.jsx(ne,{name:"keyboard_arrow_down",size:20,className:"shrink-0 opacity-50"})]}),e[24]=B,e[25]=I,e[26]=t,e[27]=H,e[28]=r,e[29]=O,e[30]=g):g=e[30];let v;e[31]!==X||e[32]!==x||e[33]!==h||e[34]!==g?(v=n.jsx(je,{asChild:!0,children:n.jsx(ve,{ref:null,...x,onClick:pe,className:h,disabled:X,children:g})}),e[31]=X,e[32]=x,e[33]=h,e[34]=g,e[35]=v):v=e[35];let L;e[36]===Symbol.for("react.memo_cache_sentinel")?(L=()=>D(!1),e[36]=L):L=e[36];let j;e[37]!==ee?(j=n.jsx(ke,{placeholder:"Search...",onKeyDown:ee,className:"rounded-t-xl"}),e[37]=ee,e[38]=j):j=e[38];let R;e[39]===Symbol.for("react.memo_cache_sentinel")?(R=n.jsx(_e,{children:"No results found."}),e[39]=R):R=e[39];let b;e[40]!==d?(b=()=>{d()},e[40]=d,e[41]=b):b=e[41];let y;e[42]!==d?(y=i=>{i.stopPropagation(),d()},e[42]=d,e[43]=y):y=e[43];const se=r.length===t.length&&t.length>0;let N;e[44]!==se||e[45]!==d?(N=n.jsx(ue,{checked:se,onCheckedChange:d,className:"mr-2 [&_svg]:!text-primary-foreground",onClick:$e}),e[44]=se,e[45]=d,e[46]=N):N=e[46];let F;e[47]===Symbol.for("react.memo_cache_sentinel")?(F=n.jsx("span",{children:"(Select All)"}),e[47]=F):F=e[47];let w;e[48]!==y||e[49]!==N?(w=n.jsxs("div",{className:"flex items-center w-full",onClick:y,children:[N,F]}),e[48]=y,e[49]=N,e[50]=w):w=e[50];let k;e[51]!==b||e[52]!==w?(k=n.jsx(fe,{onSelect:b,className:"cursor-pointer",children:w},"all"),e[51]=b,e[52]=w,e[53]=k):k=e[53];let C;if(e[54]!==t||e[55]!==r||e[56]!==f){let i;e[58]!==r||e[59]!==f?(i=c=>{const P=r.includes(c.value);return n.jsx(fe,{onSelect:()=>{f(c)},className:"cursor-pointer",children:n.jsxs("div",{className:"flex items-center w-full",onClick:le=>{le.stopPropagation(),f(c)},children:[n.jsx(ue,{checked:P,onCheckedChange:()=>{f(c)},className:"mr-2 [&_svg]:!text-primary-foreground",onClick:Pe}),c.icon&&n.jsx(c.icon,{className:"mr-2 h-4 w-4 text-muted-foreground"}),n.jsx("span",{children:c.label})]})},c.value)},e[58]=r,e[59]=f,e[60]=i):i=e[60],C=t.map(i),e[54]=t,e[55]=r,e[56]=f,e[57]=C}else C=e[57];let _;e[61]!==k||e[62]!==C?(_=n.jsxs(Ce,{className:"rounded-b-xl",children:[R,n.jsxs(Se,{children:[k,C]})]}),e[61]=k,e[62]=C,e[63]=_):_=e[63];let S;e[64]!==j||e[65]!==_?(S=n.jsx(be,{className:"w-auto p-0 max-w-xs rounded-xl",align:"start",onEscapeKeyDown:L,children:n.jsxs(we,{className:"rounded-xl",children:[j,_]})}),e[64]=j,e[65]=_,e[66]=S):S=e[66];let Q;return e[67]!==Z||e[68]!==U||e[69]!==v||e[70]!==S?(Q=n.jsxs(ye,{open:Z,onOpenChange:D,modal:U,children:[v,S]}),e[67]=Z,e[68]=U,e[69]=v,e[70]=S,e[71]=Q):Q=e[71],Q}function Pe(l){return l.stopPropagation()}function $e(l){return l.stopPropagation()}function Ee(l){return l.value}function Ie(l){return!l}function Je(){const l=m.c(4),{locator:e}=Ne();let t;l[0]!==e?(t=he.members(e),l[0]=e,l[1]=t):t=l[1];let s;return l[2]!==t?(s={queryKey:t,queryFn:Ve},l[2]=t,l[3]=s):s=l[3],xe(s)}function Ve(){return ge.organization.listMembers()}export{Ge as M,Je as u};
@@ -1 +1 @@
1
- import{c as m,r}from"./index-VCe1FY3E.js";const a=768,o=()=>globalThis.innerWidth<a;function u(){const e=m.c(2),[l,n]=r.useState(o);let t,s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{const i=()=>n(o),c=globalThis.matchMedia(`(max-width: ${a-1}px)`);return c.addEventListener("change",i),n(o),()=>c.removeEventListener("change",i)},s=[],e[0]=t,e[1]=s):(t=e[0],s=e[1]),r.useEffect(t,s),l}export{u};
1
+ import{c as m,r}from"./index-B5e6fytH.js";const a=768,o=()=>globalThis.innerWidth<a;function u(){const e=m.c(2),[l,n]=r.useState(o);let t,s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{const i=()=>n(o),c=globalThis.matchMedia(`(max-width: ${a-1}px)`);return c.addEventListener("change",i),n(o),()=>c.removeEventListener("change",i)},s=[],e[0]=t,e[1]=s):(t=e[0],s=e[1]),r.useEffect(t,s),l}export{u};
@@ -1 +1 @@
1
- import{c as o,a3 as y,a1 as T,a2 as f}from"./index-VCe1FY3E.js";import{u as p}from"./button-CB7Gt-Ba.js";import{c as m}from"./use-connection-D5nZyekX.js";function N(t){const e=o.c(8);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=m(),e[0]=n):n=e[0];const c=n;let r;e[1]!==t?(r=f.organizationSettings(t),e[1]=t,e[2]=r):r=e[2];let s;e[3]!==t?(s=async()=>{const u=await c("ORGANIZATION_SETTINGS_GET",{});return u||{organizationId:t,sidebar_items:null,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()}},e[3]=t,e[4]=s):s=e[4];let l;e[5]!==r||e[6]!==s?(l={queryKey:r,queryFn:s,staleTime:6e4},e[5]=r,e[6]=s,e[7]=l):l=e[7];const{data:i}=y(l);return i}function C(t){const e=o.c(11),n=T();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=m(),e[0]=c):c=e[0];const r=c;let s;e[1]!==t?(s=async S=>await r("ORGANIZATION_SETTINGS_UPDATE",{organizationId:t,...S}),e[1]=t,e[2]=s):s=e[2];let l;e[3]!==t||e[4]!==n?(l=()=>{n.invalidateQueries({queryKey:f.organizationSettings(t)})},e[3]=t,e[4]=n,e[5]=l):l=e[5];let i;e[6]!==s||e[7]!==l?(i={mutationFn:s,onSuccess:l},e[6]=s,e[7]=l,e[8]=i):i=e[8];const u=p(i);let a;return e[9]!==u?(a={update:u},e[9]=u,e[10]=a):a=e[10],a}export{C as a,N as u};
1
+ import{c as o,a3 as y,a1 as T,a2 as f}from"./index-B5e6fytH.js";import{u as p}from"./button-DnKGwZ1P.js";import{c as m}from"./use-connection-IMyxygAc.js";function N(t){const e=o.c(8);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=m(),e[0]=n):n=e[0];const c=n;let r;e[1]!==t?(r=f.organizationSettings(t),e[1]=t,e[2]=r):r=e[2];let s;e[3]!==t?(s=async()=>{const u=await c("ORGANIZATION_SETTINGS_GET",{});return u||{organizationId:t,sidebar_items:null,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()}},e[3]=t,e[4]=s):s=e[4];let l;e[5]!==r||e[6]!==s?(l={queryKey:r,queryFn:s,staleTime:6e4},e[5]=r,e[6]=s,e[7]=l):l=e[7];const{data:i}=y(l);return i}function C(t){const e=o.c(11),n=T();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=m(),e[0]=c):c=e[0];const r=c;let s;e[1]!==t?(s=async S=>await r("ORGANIZATION_SETTINGS_UPDATE",{organizationId:t,...S}),e[1]=t,e[2]=s):s=e[2];let l;e[3]!==t||e[4]!==n?(l=()=>{n.invalidateQueries({queryKey:f.organizationSettings(t)})},e[3]=t,e[4]=n,e[5]=l):l=e[5];let i;e[6]!==s||e[7]!==l?(i={mutationFn:s,onSuccess:l},e[6]=s,e[7]=l,e[8]=i):i=e[8];const u=p(i);let a;return e[9]!==u?(a={update:u},e[9]=u,e[10]=a):a=e[10],a}export{C as a,N as u};
@@ -1 +1 @@
1
- import{c as f,a3 as q,a2 as C}from"./index-VCe1FY3E.js";function S(p){const e=f.c(23);let s,o,a,t,l;e[0]!==p?({toolCaller:a,toolName:l,toolInputParams:t,scope:o,...s}=p,e[0]=p,e[1]=s,e[2]=o,e[3]=a,e[4]=t,e[5]=l):(s=e[1],o=e[2],a=e[3],t=e[4],l=e[5]);let r,u,i,c;if(e[6]!==s||e[7]!==o||e[8]!==t||e[9]!==l){const y=JSON.stringify(t);c=q,r=s,u=s.staleTime??6e4,i=C.toolCall(o,l,y),e[6]=s,e[7]=o,e[8]=t,e[9]=l,e[10]=r,e[11]=u,e[12]=i,e[13]=c}else r=e[10],u=e[11],i=e[12],c=e[13];let n;e[14]!==a||e[15]!==t||e[16]!==l?(n=async()=>await a(l,t),e[14]=a,e[15]=t,e[16]=l,e[17]=n):n=e[17];let m;return e[18]!==r||e[19]!==u||e[20]!==i||e[21]!==n?(m={...r,staleTime:u,queryKey:i,queryFn:n},e[18]=r,e[19]=u,e[20]=i,e[21]=n,e[22]=m):m=e[22],c(m)}export{S as u};
1
+ import{c as f,a3 as q,a2 as C}from"./index-B5e6fytH.js";function S(p){const e=f.c(23);let s,o,a,t,l;e[0]!==p?({toolCaller:a,toolName:l,toolInputParams:t,scope:o,...s}=p,e[0]=p,e[1]=s,e[2]=o,e[3]=a,e[4]=t,e[5]=l):(s=e[1],o=e[2],a=e[3],t=e[4],l=e[5]);let r,u,i,c;if(e[6]!==s||e[7]!==o||e[8]!==t||e[9]!==l){const y=JSON.stringify(t);c=q,r=s,u=s.staleTime??6e4,i=C.toolCall(o,l,y),e[6]=s,e[7]=o,e[8]=t,e[9]=l,e[10]=r,e[11]=u,e[12]=i,e[13]=c}else r=e[10],u=e[11],i=e[12],c=e[13];let n;e[14]!==a||e[15]!==t||e[16]!==l?(n=async()=>await a(l,t),e[14]=a,e[15]=t,e[16]=l,e[17]=n):n=e[17];let m;return e[18]!==r||e[19]!==u||e[20]!==i||e[21]!==n?(m={...r,staleTime:u,queryKey:i,queryFn:n},e[18]=r,e[19]=u,e[20]=i,e[21]=n,e[22]=m):m=e[22],c(m)}export{S as u};
@@ -0,0 +1 @@
1
+ import{b2 as u,a_ as s}from"./index-B5e6fytH.js";function o(e,r){return u(e,s,r)}export{o as u};
@@ -0,0 +1 @@
1
+ import{b8 as t,at as a}from"./index-B5e6fytH.js";function e(...r){return t(a(r))}export{e as c};
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <title>MCP Mesh</title>
5
5
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
6
- <script type="module" crossorigin src="/assets/index-VCe1FY3E.js"></script>
6
+ <script type="module" crossorigin src="/assets/index-B5e6fytH.js"></script>
7
7
  <link rel="stylesheet" crossorigin href="/assets/index-feMggVqN.css">
8
8
  </head>
9
9
  <body>
@@ -1188,4 +1188,4 @@ Examples:
1188
1188
 
1189
1189
  Documentation:
1190
1190
  https://github.com/decocms/mesh
1191
- `),process.exit(0);if(uh.version){let Q=[new URL("../package.json",import.meta.url),new URL("../../package.json",import.meta.url)],J="unknown";for(let X of Q)try{let G=Bun.file(X);if(await G.exists()){J=(await G.json()).version;break}}catch{}console.log(`@decocms/mesh v${J}`),process.exit(0)}process.env.PORT=uh.port;var yG0="\x1B[2m",gh="\x1B[0m",Xm4="\x1B[1m",Ym4="\x1B[36m";console.log("");console.log(`${Xm4}${Ym4}MCP Mesh${gh}`);console.log(`${yG0}Self-hostable MCP Gateway${gh}`);console.log("");if(!uh["skip-migrations"]){console.log(`${yG0}Running database migrations...${gh}`);try{await Promise.resolve().then(() => (qy0(),Hy0)),console.log(`${yG0}Migrations complete.${gh}`),console.log("")}catch(Q){console.error("Failed to run migrations:",Q),process.exit(1)}}await Promise.resolve().then(() => (dF1(),Qm4));
1191
+ `),process.exit(0);if(uh.version){let Q=[new URL("../package.json",import.meta.url),new URL("../../package.json",import.meta.url)],J="unknown";for(let X of Q)try{let G=Bun.file(X);if(await G.exists()){J=(await G.json()).version;break}}catch{}console.log(`@decocms/mesh v${J}`),process.exit(0)}process.env.PORT=uh.port;var yG0="\x1B[2m",gh="\x1B[0m",Xm4="\x1B[1m",Ym4="\x1B[36m";console.log("");console.log(`${Xm4}${Ym4}MCP Mesh${gh}`);console.log(`${yG0}Self-hostable MCP Gateway${gh}`);console.log("");if(!uh["skip-migrations"]){console.log(`${yG0}Running database migrations...${gh}`);try{let{migrateToLatest:Q}=await Promise.resolve().then(() => (qy0(),Hy0));await Q(),console.log(`${yG0}Migrations complete.${gh}`),console.log("")}catch(Q){console.error("Failed to run migrations:",Q),process.exit(1)}}await Promise.resolve().then(() => (dF1(),Qm4));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decocms/mesh",
3
- "version": "1.0.0-alpha.2",
3
+ "version": "1.0.0-alpha.3",
4
4
  "description": "MCP Mesh - Self-hostable MCP Gateway for managing AI connections and tools",
5
5
  "license": "MIT",
6
6
  "author": "Deco team",