@zuplo/editor 1.0.36023532084 → 1.0.36080536493
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/client/index.html +2 -2
- package/dist/client/static/js/{GraphiQLConsole-DdMChrWK.js → GraphiQLConsole-DMOxH2wu.js} +8 -8
- package/dist/client/static/js/{McpCapabilityFilterDesigner-CbmhrXCi.js → McpCapabilityFilterDesigner-6lZzsEzv.js} +1 -1
- package/dist/client/static/js/{SchemaReference-Cb4eK-Fy.js → SchemaReference-rD-SemP-.js} +1 -1
- package/dist/client/static/js/{dist-DeR3ZXes.js → dist-CGGP2WKw.js} +12 -12
- package/dist/client/static/js/{esm-PezRe2A0.js → esm-BrawuL7Q.js} +1 -1
- package/dist/client/static/js/{hint-C4uD0WXq.js → hint-BKuJbioM.js} +1 -1
- package/dist/client/static/js/{hint-tVa4Dp-x.js → hint-BpHwGwht.js} +1 -1
- package/dist/client/static/js/{info-CQ3-VBhQ.js → info-Csib2OyN.js} +1 -1
- package/dist/client/static/js/{jump-Cw4-XW2T.js → jump-BLwA3Wzl.js} +1 -1
- package/dist/client/static/js/{lint-00WMe0OP.js → lint-ClKGGhX7.js} +1 -1
- package/dist/client/static/js/{main-vAZ1EP_l.js → main-B1Hino9L.js} +198 -198
- package/dist/client/static/js/{mode-DpHorMmK.js → mode-BVuSQonV.js} +1 -1
- package/dist/client/static/js/{mode-GGMBdOqc.js → mode-DdvOJvv7.js} +1 -1
- package/dist/client/static/js/{mode-BqWA4wMV.js → mode-o3RwTOOp.js} +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./chunk-6hGRweTZ.js";import{
|
|
1
|
+
import{o as e}from"./chunk-6hGRweTZ.js";import{Rn as t,sr as n}from"./dist-CGGP2WKw.js";import{C as r,E as i,S as a,T as o,w as s}from"./main-B1Hino9L.js";var c=e(n()),l=t(),u=({options:e,onChange:t,isReadOnly:n,operation:u,policyManager:d})=>{let[f]=(0,c.useState)(()=>r(e)),[p,m]=(0,c.useState)(f.catalog),[h,g]=(0,c.useState)(f.accessControlMode),_=(0,c.useMemo)(()=>{if(!u||!d)return;let e=a({operationPath:u.additionalOperationContext.path,operation:u,policyList:d.getPolicyListEnforced()});if(e)return{mcpUrl:e.step1.mcpUrl,upstreamAuth:e.step1}},[u,d]),v=h===`rolesAndGroups`,y=(0,c.useRef)(e),b=e=>{m(e.catalog),g(e.accessControlMode);let n=s(e);y.current=n,t(n)};return(0,c.useEffect)(()=>{if(e===y.current)return;y.current=e;let t=r(e);m(t.catalog),g(t.accessControlMode)},[e]),(0,l.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,l.jsxs)(`div`,{className:`flex items-center justify-between gap-4 rounded-md border bg-card px-3 py-2`,children:[(0,l.jsxs)(`div`,{className:`min-w-0`,children:[(0,l.jsx)(`div`,{className:`text-sm font-medium text-foreground`,children:`Roles & groups access control`}),(0,l.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:`Mark each capability public, or restrict it to specific roles or groups. Anything left unclassified won't be exposed — nothing is public by default.`})]}),(0,l.jsx)(i,{checked:v,disabled:n,onCheckedChange:e=>b({catalog:p,accessControlMode:e?`rolesAndGroups`:`allPublic`}),"aria-label":`Enable roles and groups access control`})]}),(0,l.jsx)(o,{catalog:p,onChange:e=>b({catalog:e,accessControlMode:h}),accessControlEnabled:v,isReadOnly:n,upstream:_})]})};export{u as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as e,h as t,i as n,n as r,t as i,v as a}from"./definition-C7QrKMH2.js";import{c as o,o as s,s as c}from"./main-
|
|
1
|
+
import{g as e,h as t,i as n,n as r,t as i,v as a}from"./definition-C7QrKMH2.js";import{c as o,o as s,s as c}from"./main-B1Hino9L.js";import{t as l}from"./forEachState-RgNwT9Fn.js";function u(a,o){let s={schema:a,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return l(o,o=>{switch(o.kind){case`Query`:case`ShortQuery`:s.type=a.getQueryType();break;case`Mutation`:s.type=a.getMutationType();break;case`Subscription`:s.type=a.getSubscriptionType();break;case`InlineFragment`:case`FragmentDefinition`:o.type&&(s.type=a.getType(o.type));break;case`Field`:case`AliasedField`:s.fieldDef=s.type&&o.name?d(a,s.parentType,o.name):null,s.type=s.fieldDef?.type;break;case`SelectionSet`:s.parentType=s.type?t(s.type):null;break;case`Directive`:s.directiveDef=o.name?a.getDirective(o.name):null;break;case`Arguments`:let c=o.prevState?o.prevState.kind===`Field`?s.fieldDef:o.prevState.kind===`Directive`?s.directiveDef:o.prevState.kind===`AliasedField`?o.prevState.name&&d(a,s.parentType,o.prevState.name):null:null;s.argDefs=c?c.args:null;break;case`Argument`:if(s.argDef=null,s.argDefs){for(let e=0;e<s.argDefs.length;e++)if(s.argDefs[e].name===o.name){s.argDef=s.argDefs[e];break}}s.inputType=s.argDef?.type;break;case`EnumValue`:let l=s.inputType?t(s.inputType):null;s.enumValue=l instanceof i?f(l.getValues(),e=>e.value===o.name):null;break;case`ListValue`:let u=s.inputType?e(s.inputType):null;s.inputType=u instanceof n?u.ofType:null;break;case`ObjectValue`:let p=s.inputType?t(s.inputType):null;s.objectFieldDefs=p instanceof r?p.getFields():null;break;case`ObjectField`:let m=o.name&&s.objectFieldDefs?s.objectFieldDefs[o.name]:null;s.inputType=m?.type,s.fieldDef=m;break;case`NamedType`:s.type=o.name?a.getType(o.name):null;break}}),s}function d(e,t,n){if(n===s.name&&e.getQueryType()===t)return s;if(n===c.name&&e.getQueryType()===t)return c;if(n===o.name&&a(t))return o;if(t&&t.getFields)return t.getFields()[n]}function f(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return e[n]}function p(e){return{kind:`Field`,schema:e.schema,field:e.fieldDef,type:v(e.fieldDef)?null:e.parentType}}function m(e){return{kind:`Directive`,schema:e.schema,directive:e.directiveDef}}function h(e){return e.directiveDef?{kind:`Argument`,schema:e.schema,argument:e.argDef,directive:e.directiveDef}:{kind:`Argument`,schema:e.schema,argument:e.argDef,field:e.fieldDef,type:v(e.fieldDef)?null:e.parentType}}function g(e){return{kind:`EnumValue`,value:e.enumValue||void 0,type:e.inputType?t(e.inputType):void 0}}function _(e,t){return{kind:`Type`,schema:e.schema,type:t||e.type}}function v(e){return e.name.slice(0,2)===`__`}export{_ as a,p as i,m as n,u as o,g as r,h as t};
|