@zuplo/editor 1.0.41648570443 → 1.0.41649845274

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 (60) hide show
  1. package/dist/client/index.html +1 -1
  2. package/dist/client/static/css/editor-B8GMDV7_.css +1 -0
  3. package/dist/client/static/css/vs-BG-Ob1o2.css +1 -0
  4. package/dist/client/static/{css.worker-D55UB6Ki.js → css.worker-DwfUZ3fB.js} +39 -32
  5. package/dist/client/static/editor.worker-CRz__AKW.js +33 -0
  6. package/dist/client/static/{html.worker-CFLR1M2C.js → html.worker-D9ugpX4y.js} +31 -24
  7. package/dist/client/static/js/{GraphiQLConsole-DVxnPl9n.js → GraphiQLConsole-CInQ7oda.js} +4 -4
  8. package/dist/client/static/js/{McpCapabilityFilterDesigner-CXFMAq0f.js → McpCapabilityFilterDesigner-_TjBb2Hz.js} +1 -1
  9. package/dist/client/static/js/{SchemaReference-BHEZYsOV.js → SchemaReference-CxBAyRNf.js} +1 -1
  10. package/dist/client/static/js/cssMode-B9qUjDWp.js +1 -0
  11. package/dist/client/static/js/editor.api-CGdV5C19.js +908 -0
  12. package/dist/client/static/js/{freemarker2-Cr-6CaiN.js → freemarker2-BaPatczr.js} +1 -1
  13. package/dist/client/static/js/handlebars-CpkAGWYJ.js +1 -0
  14. package/dist/client/static/js/{hint-DjKrfgJg.js → hint-BOYONUEE.js} +1 -1
  15. package/dist/client/static/js/{hint-DYrIZdp5.js → hint-OOdT3SOJ.js} +1 -1
  16. package/dist/client/static/js/html-MpAvlGjl.js +1 -0
  17. package/dist/client/static/js/htmlMode-DurCd9iQ.js +1 -0
  18. package/dist/client/static/js/{info-D4rlfT3a.js → info-BJ-pHc23.js} +1 -1
  19. package/dist/client/static/js/{javascript-OATvJvwa.js → javascript-h9ezNNDs.js} +1 -1
  20. package/dist/client/static/js/{jsonMode-CJqawQU6.js → jsonMode-BrL02a_z.js} +1 -1
  21. package/dist/client/static/js/{jump-DLzANT0a.js → jump-CH2YkFff.js} +1 -1
  22. package/dist/client/static/js/{lint-BlW8fAW2.js → lint-9YnF6p8d.js} +1 -1
  23. package/dist/client/static/js/{lint-oA9fCzPQ.js → lint-DCfZNhwm.js} +1 -1
  24. package/dist/client/static/js/liquid-CLy-ixW4.js +1 -0
  25. package/dist/client/static/js/lspLanguageFeatures-DyH6oKKH.js +4 -0
  26. package/dist/client/static/js/{main-BsYpk8E9.js → main-kz_xA5Yy.js} +6 -6
  27. package/dist/client/static/js/mdx-Cq5OHKUW.js +1 -0
  28. package/dist/client/static/js/{mode-F82PJqoY.js → mode-BliQRZwK.js} +1 -1
  29. package/dist/client/static/js/{mode-B7qg6vRd.js → mode-CoRhIqhf.js} +1 -1
  30. package/dist/client/static/js/{mode-B-f0UZfF.js → mode-xGSH01RS.js} +1 -1
  31. package/dist/client/static/js/python-JNc1ChAF.js +1 -0
  32. package/dist/client/static/js/razor-C_rGX9VL.js +1 -0
  33. package/dist/client/static/js/{tsMode-Bbj8ZKv2.js → tsMode-CmhFTIA8.js} +1 -1
  34. package/dist/client/static/js/typescript-C20saKWT.js +1 -0
  35. package/dist/client/static/js/vs-BQ2r4Ffo.js +58 -0
  36. package/dist/client/static/js/workers-CacBLkD-.js +1 -0
  37. package/dist/client/static/js/xml-DgzQp6ct.js +1 -0
  38. package/dist/client/static/js/yaml-B9tlzDHf.js +1 -0
  39. package/dist/client/static/json.worker-CV9fqkUp.js +65 -0
  40. package/dist/client/static/{ts.worker-CpVDZSME.js → ts.worker-DvEKW8Yk.js} +172 -165
  41. package/dist/client/static/ttf/codicon-DF1abBS2.ttf +0 -0
  42. package/package.json +1 -1
  43. package/dist/client/static/css/editor-DU9oqspw.css +0 -1
  44. package/dist/client/static/editor.worker-C3R1XRkp.js +0 -26
  45. package/dist/client/static/js/cssMode-CtV55VsE.js +0 -1
  46. package/dist/client/static/js/editor.api2-B7R9rDBl.js +0 -872
  47. package/dist/client/static/js/editor.main-D8uAIoV-.js +0 -6
  48. package/dist/client/static/js/handlebars-CGLtiv4Y.js +0 -1
  49. package/dist/client/static/js/html-CYl76f98.js +0 -1
  50. package/dist/client/static/js/htmlMode-D1AIsq58.js +0 -1
  51. package/dist/client/static/js/liquid-17GZMjqs.js +0 -1
  52. package/dist/client/static/js/lspLanguageFeatures-C5p9SDYR.js +0 -4
  53. package/dist/client/static/js/mdx-COF2T7on.js +0 -1
  54. package/dist/client/static/js/python-DPne7SA3.js +0 -1
  55. package/dist/client/static/js/razor-DdEzywjn.js +0 -1
  56. package/dist/client/static/js/typescript-BLpp7tBH.js +0 -1
  57. package/dist/client/static/js/xml-2Ots2mP2.js +0 -1
  58. package/dist/client/static/js/yaml-DxK_Rysg.js +0 -1
  59. package/dist/client/static/json.worker-DJ19GkSR.js +0 -58
  60. package/dist/client/static/ttf/codicon-ngg6Pgfi.ttf +0 -0
@@ -1 +1 @@
1
- import{o as e}from"./rolldown-runtime-BCiCTKAo.js";import{_t as t,en as n,gt as r,ht as i,mt as a,on as o,vt as s}from"./main-BsYpk8E9.js";var c=e(o()),l=n(),u=({options:e,onChange:n,isReadOnly:o,operation:u,policyManager:d})=>{let[f]=(0,c.useState)(()=>i(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 t=r(e);y.current=t,n(t)};return(0,c.useEffect)(()=>{if(e===y.current)return;y.current=e;let t=i(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)(s,{checked:v,disabled:o,onCheckedChange:e=>b({catalog:p,accessControlMode:e?`rolesAndGroups`:`allPublic`}),"aria-label":`Enable roles and groups access control`})]}),(0,l.jsx)(t,{catalog:p,onChange:e=>b({catalog:e,accessControlMode:h}),accessControlEnabled:v,isReadOnly:o,upstream:_})]})};export{u as default};
1
+ import{o as e}from"./rolldown-runtime-BCiCTKAo.js";import{_t as t,en as n,gt as r,ht as i,mt as a,on as o,vt as s}from"./main-kz_xA5Yy.js";var c=e(o()),l=n(),u=({options:e,onChange:n,isReadOnly:o,operation:u,policyManager:d})=>{let[f]=(0,c.useState)(()=>i(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 t=r(e);y.current=t,n(t)};return(0,c.useEffect)(()=>{if(e===y.current)return;y.current=e;let t=i(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)(s,{checked:v,disabled:o,onCheckedChange:e=>b({catalog:p,accessControlMode:e?`rolesAndGroups`:`allPublic`}),"aria-label":`Enable roles and groups access control`})]}),(0,l.jsx)(t,{catalog:p,onChange:e=>b({catalog:e,accessControlMode:h}),accessControlEnabled:v,isReadOnly:o,upstream:_})]})};export{u as default};
@@ -1 +1 @@
1
- import{C as e,O as t,b as n,c as r,j as i,k as a,o,s,x as c}from"./main-BsYpk8E9.js";import{t as l}from"./forEachState-C2rvUFya.js";function u(r,i){let o={schema:r,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return l(i,i=>{switch(i.kind){case`Query`:case`ShortQuery`:o.type=r.getQueryType();break;case`Mutation`:o.type=r.getMutationType();break;case`Subscription`:o.type=r.getSubscriptionType();break;case`InlineFragment`:case`FragmentDefinition`:i.type&&(o.type=r.getType(i.type));break;case`Field`:case`AliasedField`:o.fieldDef=o.type&&i.name?d(r,o.parentType,i.name):null,o.type=o.fieldDef?.type;break;case`SelectionSet`:o.parentType=o.type?t(o.type):null;break;case`Directive`:o.directiveDef=i.name?r.getDirective(i.name):null;break;case`Arguments`:let s=i.prevState?i.prevState.kind===`Field`?o.fieldDef:i.prevState.kind===`Directive`?o.directiveDef:i.prevState.kind===`AliasedField`?i.prevState.name&&d(r,o.parentType,i.prevState.name):null:null;o.argDefs=s?s.args:null;break;case`Argument`:if(o.argDef=null,o.argDefs){for(let e=0;e<o.argDefs.length;e++)if(o.argDefs[e].name===i.name){o.argDef=o.argDefs[e];break}}o.inputType=o.argDef?.type;break;case`EnumValue`:let l=o.inputType?t(o.inputType):null;o.enumValue=l instanceof n?f(l.getValues(),e=>e.value===i.name):null;break;case`ListValue`:let u=o.inputType?a(o.inputType):null;o.inputType=u instanceof e?u.ofType:null;break;case`ObjectValue`:let p=o.inputType?t(o.inputType):null;o.objectFieldDefs=p instanceof c?p.getFields():null;break;case`ObjectField`:let m=i.name&&o.objectFieldDefs?o.objectFieldDefs[i.name]:null;o.inputType=m?.type,o.fieldDef=m;break;case`NamedType`:o.type=i.name?r.getType(i.name):null}}),o}function d(e,t,n){if(n===o.name&&e.getQueryType()===t)return o;if(n===s.name&&e.getQueryType()===t)return s;if(n===r.name&&i(t))return r;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};
1
+ import{C as e,O as t,b as n,c as r,j as i,k as a,o,s,x as c}from"./main-kz_xA5Yy.js";import{t as l}from"./forEachState-C2rvUFya.js";function u(r,i){let o={schema:r,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return l(i,i=>{switch(i.kind){case`Query`:case`ShortQuery`:o.type=r.getQueryType();break;case`Mutation`:o.type=r.getMutationType();break;case`Subscription`:o.type=r.getSubscriptionType();break;case`InlineFragment`:case`FragmentDefinition`:i.type&&(o.type=r.getType(i.type));break;case`Field`:case`AliasedField`:o.fieldDef=o.type&&i.name?d(r,o.parentType,i.name):null,o.type=o.fieldDef?.type;break;case`SelectionSet`:o.parentType=o.type?t(o.type):null;break;case`Directive`:o.directiveDef=i.name?r.getDirective(i.name):null;break;case`Arguments`:let s=i.prevState?i.prevState.kind===`Field`?o.fieldDef:i.prevState.kind===`Directive`?o.directiveDef:i.prevState.kind===`AliasedField`?i.prevState.name&&d(r,o.parentType,i.prevState.name):null:null;o.argDefs=s?s.args:null;break;case`Argument`:if(o.argDef=null,o.argDefs){for(let e=0;e<o.argDefs.length;e++)if(o.argDefs[e].name===i.name){o.argDef=o.argDefs[e];break}}o.inputType=o.argDef?.type;break;case`EnumValue`:let l=o.inputType?t(o.inputType):null;o.enumValue=l instanceof n?f(l.getValues(),e=>e.value===i.name):null;break;case`ListValue`:let u=o.inputType?a(o.inputType):null;o.inputType=u instanceof e?u.ofType:null;break;case`ObjectValue`:let p=o.inputType?t(o.inputType):null;o.objectFieldDefs=p instanceof c?p.getFields():null;break;case`ObjectField`:let m=i.name&&o.objectFieldDefs?o.objectFieldDefs[i.name]:null;o.inputType=m?.type,o.fieldDef=m;break;case`NamedType`:o.type=i.name?r.getType(i.name):null}}),o}function d(e,t,n){if(n===o.name&&e.getQueryType()===t)return o;if(n===s.name&&e.getQueryType()===t)return s;if(n===r.name&&i(t))return r;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};
@@ -0,0 +1 @@
1
+ import{t as e}from"./workers-CacBLkD-.js";import{_ as t,a as n,c as r,d as i,f as a,g as o,h as s,i as c,l,m as u,n as d,o as f,p,r as m,s as h,t as g,u as _,v}from"./lspLanguageFeatures-DyH6oKKH.js";import{m as y}from"./editor.api-CGdV5C19.js";var b=12e4,x=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&=(this._worker.dispose(),null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){this._worker&&Date.now()-this._lastUsedTime>b&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||=(this._worker=e({moduleId:`vs/language/css/cssWorker`,createWorker:()=>new Worker(new URL(`/static/css.worker-DwfUZ3fB.js`,``+import.meta.url),{type:`module`}),label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then(e=>{t=e}).then(t=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(e=>t)}};function S(e){let t=[],o=[],s=new x(e);t.push(s);let h=(...e)=>s.getLanguageServiceWorker(...e);function v(){let{languageId:t,modeConfiguration:s}=e;w(o),s.completionItems&&o.push(y.registerCompletionItemProvider(t,new g(h,[`/`,`-`,`:`]))),s.hovers&&o.push(y.registerHoverProvider(t,new i(h))),s.documentHighlights&&o.push(y.registerDocumentHighlightProvider(t,new f(h))),s.definitions&&o.push(y.registerDefinitionProvider(t,new d(h))),s.references&&o.push(y.registerReferenceProvider(t,new a(h))),s.documentSymbols&&o.push(y.registerDocumentSymbolProvider(t,new l(h))),s.rename&&o.push(y.registerRenameProvider(t,new p(h))),s.colors&&o.push(y.registerColorProvider(t,new c(h))),s.foldingRanges&&o.push(y.registerFoldingRangeProvider(t,new _(h))),s.diagnostics&&o.push(new m(t,h,e.onDidChange)),s.selectionRanges&&o.push(y.registerSelectionRangeProvider(t,new u(h))),s.documentFormattingEdits&&o.push(y.registerDocumentFormattingEditProvider(t,new n(h))),s.documentRangeFormattingEdits&&o.push(y.registerDocumentRangeFormattingEditProvider(t,new r(h)))}return v(),t.push(C(o)),C(t)}function C(e){return{dispose:()=>w(e)}}function w(e){for(;e.length;)e.pop().dispose()}export{g as CompletionAdapter,d as DefinitionAdapter,m as DiagnosticsAdapter,c as DocumentColorAdapter,n as DocumentFormattingEditProvider,f as DocumentHighlightAdapter,h as DocumentLinkAdapter,r as DocumentRangeFormattingEditProvider,l as DocumentSymbolAdapter,_ as FoldingRangeAdapter,i as HoverAdapter,a as ReferenceAdapter,p as RenameAdapter,u as SelectionRangeAdapter,x as WorkerManager,s as fromPosition,o as fromRange,S as setupMode,t as toRange,v as toTextEdit};