stepzen-graphiql 1.0.7 → 1.1.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.
- package/dist/{SchemaReference-D_Mm8n0P.js → SchemaReference-DqlRFWST.js} +1 -1
- package/dist/{SchemaReference-C1CvCBII.mjs → SchemaReference-yjHvZOKU.mjs} +1 -1
- package/dist/{brace-fold-CzNb2jBd.js → brace-fold-Bn_gMGbA.js} +1 -1
- package/dist/{brace-fold-CfbCm-ya.mjs → brace-fold-C-UuaxiI.mjs} +1 -1
- package/dist/{closebrackets-D-_zPnV6.mjs → closebrackets-BuiU6B8k.mjs} +1 -1
- package/dist/{closebrackets-Y4QJk5tc.js → closebrackets-mV3w7FdZ.js} +1 -1
- package/dist/{codemirror-DYvERIYG.mjs → codemirror-CB-WmM5M.mjs} +1 -1
- package/dist/{codemirror-BqGFn5SG.js → codemirror-DYLmm60O.js} +1 -1
- package/dist/{comment-DPVOtsPg.js → comment-BLMB-PKK.js} +1 -1
- package/dist/{comment-Dj3eYK9p.mjs → comment-CSRSqmjA.mjs} +1 -1
- package/dist/{dialog-DsVw5fS1.js → dialog-BQDD8yAA.js} +1 -1
- package/dist/{dialog-Ce6CQDC_.mjs → dialog-CYxgtNt4.mjs} +1 -1
- package/dist/{foldgutter-CZ2N0unJ.mjs → foldgutter-CVKY71WC.mjs} +1 -1
- package/dist/{foldgutter-B42TmwLm.js → foldgutter-XQcCrjx_.js} +1 -1
- package/dist/{hint-leXMCU-E.js → hint-B45r69Gt.js} +1 -1
- package/dist/{hint-mpLK6Mle.mjs → hint-C-EJR_Ct.mjs} +3 -3
- package/dist/{hint-CBTuzMWu.mjs → hint-TI0_XyZ_.mjs} +2 -2
- package/dist/{hint-BPsRByqe.js → hint-WnbVzROj.js} +1 -1
- package/dist/{index-Bt7cR6NI.js → index-B1iN_5Nj.js} +1 -1
- package/dist/{index--VrRbstT.js → index-BIUWAl0N.js} +143 -143
- package/dist/{index-Cz9Crors.mjs → index-DaWwApWk.mjs} +1 -1
- package/dist/{index-Czvzlpb8.mjs → index-DuPTnPsg.mjs} +15071 -15131
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{info-Cjg1-fNV.mjs → info-DS2ZgmaG.mjs} +4 -4
- package/dist/{info-BZokXK3t.js → info-DlbQmsQ4.js} +1 -1
- package/dist/{info-addon-CzkwlDU9.js → info-addon-ATygfzMg.js} +1 -1
- package/dist/{info-addon-1EpWjB4y.mjs → info-addon-DAVzgS1Z.mjs} +1 -1
- package/dist/{javascript-B2qJi58q.js → javascript-C-POFPAD.js} +1 -1
- package/dist/{javascript-DRe8vORy.mjs → javascript-lQng9M5z.mjs} +1 -1
- package/dist/{jsx-C6WQihQ6.js → jsx-BuOFJ9n4.js} +1 -1
- package/dist/{jsx-BW_3ZVcY.mjs → jsx-D31LDDut.mjs} +1 -1
- package/dist/{jump-BXef099X.js → jump-CdKoNfM-.js} +1 -1
- package/dist/{jump-CH-6LsM2.mjs → jump-DifKTR9O.mjs} +2 -2
- package/dist/{jump-to-line-Bi4rmvMn.js → jump-to-line-BFuwEpQC.js} +1 -1
- package/dist/{jump-to-line-EOHCg4-Z.mjs → jump-to-line-D34dALJZ.mjs} +1 -1
- package/dist/{lint-DdJxK0GT.js → lint-BfKSPPwq.js} +1 -1
- package/dist/{lint-zfC3ybdS.js → lint-CjbtPIDu.js} +1 -1
- package/dist/{lint-gKLxlkrz.mjs → lint-Dcq4JWKC.mjs} +2 -2
- package/dist/{lint-DYvJBq15.mjs → lint-IMW_QkhE.mjs} +2 -2
- package/dist/{lint-DmxKCpsr.js → lint-WelK2mWD.js} +1 -1
- package/dist/{lint-WRLUVbEB.mjs → lint-YkocB2bn.mjs} +1 -1
- package/dist/{matchbrackets-CjC7GHXb.mjs → matchbrackets-BlX7LIlA.mjs} +1 -1
- package/dist/{matchbrackets-rUwzeHJc.js → matchbrackets-C-hRT4KB.js} +1 -1
- package/dist/{mode-B6-MCoGi.mjs → mode-CA0Q8NlQ.mjs} +2 -2
- package/dist/{mode-CEan0FDs.js → mode-CZ9AXUzX.js} +1 -1
- package/dist/{mode-CUjxRD1A.js → mode-DUwJDxiG.js} +1 -1
- package/dist/{mode-BAYdH3sq.mjs → mode-Dd2Zfdg5.mjs} +2 -2
- package/dist/{mode-Cd8t9r7W.mjs → mode-DseTgVs8.mjs} +2 -2
- package/dist/{mode-CnCnFHv5.js → mode-IND_fSO0.js} +1 -1
- package/dist/{search-BjqvUwT0.js → search-CUfUtE3F.js} +1 -1
- package/dist/{search-cGZk2IoY.mjs → search-DqBsVZij.mjs} +1 -1
- package/dist/{searchcursor-BAHJZHCY.js → searchcursor-Byv3kgZk.js} +1 -1
- package/dist/{searchcursor-DwGtcXwh.mjs → searchcursor-DpwIsyJ6.mjs} +1 -1
- package/dist/{show-hint-DAT7rKPE.js → show-hint-CWrAlvDj.js} +1 -1
- package/dist/{show-hint-CW5Ms495.mjs → show-hint-D7dYzsf5.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{sublime-DQV8kJA6.js → sublime-C6HRWFmG.js} +1 -1
- package/dist/{sublime-C2qThti2.mjs → sublime-CJzjtgkz.mjs} +1 -1
- package/package.json +4 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const D=require("./forEachState-DY_pA9Bd.js"),t=require("./index
|
|
1
|
+
"use strict";const D=require("./forEachState-DY_pA9Bd.js"),t=require("./index-BIUWAl0N.js");function m(n,r){const e={schema:n,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return D.forEachState(r,i=>{var a,c;switch(i.kind){case"Query":case"ShortQuery":e.type=n.getQueryType();break;case"Mutation":e.type=n.getMutationType();break;case"Subscription":e.type=n.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":i.type&&(e.type=n.getType(i.type));break;case"Field":case"AliasedField":e.fieldDef=e.type&&i.name?y(n,e.parentType,i.name):null,e.type=(a=e.fieldDef)===null||a===void 0?void 0:a.type;break;case"SelectionSet":e.parentType=e.type?t.getNamedType(e.type):null;break;case"Directive":e.directiveDef=i.name?n.getDirective(i.name):null;break;case"Arguments":const p=i.prevState?i.prevState.kind==="Field"?e.fieldDef:i.prevState.kind==="Directive"?e.directiveDef:i.prevState.kind==="AliasedField"?i.prevState.name&&y(n,e.parentType,i.prevState.name):null:null;e.argDefs=p?p.args:null;break;case"Argument":if(e.argDef=null,e.argDefs){for(let l=0;l<e.argDefs.length;l++)if(e.argDefs[l].name===i.name){e.argDef=e.argDefs[l];break}}e.inputType=(c=e.argDef)===null||c===void 0?void 0:c.type;break;case"EnumValue":const f=e.inputType?t.getNamedType(e.inputType):null;e.enumValue=f instanceof t.GraphQLEnumType?s(f.getValues(),l=>l.value===i.name):null;break;case"ListValue":const d=e.inputType?t.getNullableType(e.inputType):null;e.inputType=d instanceof t.GraphQLList?d.ofType:null;break;case"ObjectValue":const g=e.inputType?t.getNamedType(e.inputType):null;e.objectFieldDefs=g instanceof t.GraphQLInputObjectType?g.getFields():null;break;case"ObjectField":const u=i.name&&e.objectFieldDefs?e.objectFieldDefs[i.name]:null;e.inputType=u==null?void 0:u.type,e.fieldDef=u;break;case"NamedType":e.type=i.name?n.getType(i.name):null;break}}),e}function y(n,r,e){if(e===t.SchemaMetaFieldDef.name&&n.getQueryType()===r)return t.SchemaMetaFieldDef;if(e===t.TypeMetaFieldDef.name&&n.getQueryType()===r)return t.TypeMetaFieldDef;if(e===t.TypeNameMetaFieldDef.name&&t.isCompositeType(r))return t.TypeNameMetaFieldDef;if(r&&r.getFields)return r.getFields()[e]}function s(n,r){for(let e=0;e<n.length;e++)if(r(n[e]))return n[e]}function o(n){return{kind:"Field",schema:n.schema,field:n.fieldDef,type:T(n.fieldDef)?null:n.parentType}}function b(n){return{kind:"Directive",schema:n.schema,directive:n.directiveDef}}function v(n){return n.directiveDef?{kind:"Argument",schema:n.schema,argument:n.argDef,directive:n.directiveDef}:{kind:"Argument",schema:n.schema,argument:n.argDef,field:n.fieldDef,type:T(n.fieldDef)?null:n.parentType}}function F(n){return{kind:"EnumValue",value:n.enumValue||void 0,type:n.inputType?t.getNamedType(n.inputType):void 0}}function k(n,r){return{kind:"Type",schema:n.schema,type:r||n.type}}function T(n){return n.name.slice(0,2)==="__"}exports.getArgumentReference=v;exports.getDirectiveReference=b;exports.getEnumValueReference=F;exports.getFieldReference=o;exports.getTypeInfo=m;exports.getTypeReference=k;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { f as o } from "./forEachState-DA54msa8.mjs";
|
|
2
|
-
import { h as t, i as b, j as v, d as k, k as F, S as g, m as y, n as D, q as S } from "./index-
|
|
2
|
+
import { h as t, i as b, j as v, d as k, k as F, S as g, m as y, n as D, q as S } from "./index-DuPTnPsg.mjs";
|
|
3
3
|
function V(n, l) {
|
|
4
4
|
const e = {
|
|
5
5
|
schema: n,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const H=require("./index
|
|
1
|
+
"use strict";const H=require("./index-BIUWAl0N.js"),S=require("./codemirror-DMBo1i5w.js");function m(T,F){for(var e=0;e<F.length;e++){const g=F[e];if(typeof g!="string"&&!Array.isArray(g)){for(const t in g)if(t!=="default"&&!(t in T)){const i=Object.getOwnPropertyDescriptor(g,t);i&&Object.defineProperty(T,t,i.get?i:{enumerable:!0,get:()=>g[t]})}}}return Object.freeze(Object.defineProperty(T,Symbol.toStringTag,{value:"Module"}))}var j={exports:{}},q;function I(){return q||(q=1,function(T,F){(function(e){e(S.requireCodemirror())})(function(e){function g(t){return function(i,a){var n=a.line,o=i.getLine(n);function v(l){for(var u,c=a.ch,h=0;;){var p=c<=0?-1:o.lastIndexOf(l[0],c-1);if(p==-1){if(h==1)break;h=1,c=o.length;continue}if(h==1&&p<a.ch)break;if(u=i.getTokenTypeAt(e.Pos(n,p+1)),!/^(comment|string)/.test(u))return{ch:p+1,tokenType:u,pair:l};c=p-1}}function k(l){var u=1,c=i.lastLine(),h,p=l.ch,O;e:for(var P=n;P<=c;++P)for(var y=i.getLine(P),b=P==n?p:0;;){var L=y.indexOf(l.pair[0],b),A=y.indexOf(l.pair[1],b);if(L<0&&(L=y.length),A<0&&(A=y.length),b=Math.min(L,A),b==y.length)break;if(i.getTokenTypeAt(e.Pos(P,b+1))==l.tokenType){if(b==L)++u;else if(!--u){h=P,O=b;break e}}++b}return h==null||n==h?null:{from:e.Pos(n,p),to:e.Pos(h,O)}}for(var f=[],r=0;r<t.length;r++){var s=v(t[r]);s&&f.push(s)}f.sort(function(l,u){return l.ch-u.ch});for(var r=0;r<f.length;r++){var d=k(f[r]);if(d)return d}return null}}e.registerHelper("fold","brace",g([["{","}"],["[","]"]])),e.registerHelper("fold","brace-paren",g([["{","}"],["[","]"],["(",")"]])),e.registerHelper("fold","import",function(t,i){function a(r){if(r<t.firstLine()||r>t.lastLine())return null;var s=t.getTokenAt(e.Pos(r,1));if(/\S/.test(s.string)||(s=t.getTokenAt(e.Pos(r,s.end+1))),s.type!="keyword"||s.string!="import")return null;for(var d=r,l=Math.min(t.lastLine(),r+10);d<=l;++d){var u=t.getLine(d),c=u.indexOf(";");if(c!=-1)return{startCh:s.end,end:e.Pos(d,c)}}}var n=i.line,o=a(n),v;if(!o||a(n-1)||(v=a(n-2))&&v.end.line==n-1)return null;for(var k=o.end;;){var f=a(k.line+1);if(f==null)break;k=f.end}return{from:t.clipPos(e.Pos(n,o.startCh+1)),to:k}}),e.registerHelper("fold","include",function(t,i){function a(f){if(f<t.firstLine()||f>t.lastLine())return null;var r=t.getTokenAt(e.Pos(f,1));if(/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(f,r.end+1))),r.type=="meta"&&r.string.slice(0,8)=="#include")return r.start+8}var n=i.line,o=a(n);if(o==null||a(n-1)!=null)return null;for(var v=n;;){var k=a(v+1);if(k==null)break;++v}return{from:e.Pos(n,o+1),to:t.clipPos(e.Pos(v))}})})}()),j.exports}var _=I();const w=H.getDefaultExportFromCjs(_),x=m({__proto__:null,default:w},[_]);exports.braceFold=x;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const G=require("./index
|
|
1
|
+
"use strict";const G=require("./index-BIUWAl0N.js"),H=require("./codemirror-DMBo1i5w.js");function J(O,A){for(var r=0;r<A.length;r++){const d=A[r];if(typeof d!="string"&&!Array.isArray(d)){for(const i in d)if(i!=="default"&&!(i in O)){const u=Object.getOwnPropertyDescriptor(d,i);u&&Object.defineProperty(O,i,u.get?u:{enumerable:!0,get:()=>d[i]})}}}return Object.freeze(Object.defineProperty(O,Symbol.toStringTag,{value:"Module"}))}var I={exports:{}},F;function Q(){return F||(F=1,function(O,A){(function(r){r(H.requireCodemirror())})(function(r){var d={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},i=r.Pos;r.defineOption("autoCloseBrackets",!1,function(e,t,n){n&&n!=r.Init&&(e.removeKeyMap(x),e.state.closeBrackets=null),t&&(q(u(t,"pairs")),e.state.closeBrackets=t,e.addKeyMap(x))});function u(e,t){return t=="pairs"&&typeof e=="string"?e:typeof e=="object"&&e[t]!=null?e[t]:d[t]}var x={Backspace:L,Enter:W};function q(e){for(var t=0;t<e.length;t++){var n=e.charAt(t),s="'"+n+"'";x[s]||(x[s]=K(n))}}q(d.pairs+"`");function K(e){return function(t){return z(t,e)}}function y(e){var t=e.state.closeBrackets;if(!t||t.override)return t;var n=e.getModeAt(e.getCursor());return n.closeBrackets||t}function L(e){var t=y(e);if(!t||e.getOption("disableInput"))return r.Pass;for(var n=u(t,"pairs"),s=e.listSelections(),a=0;a<s.length;a++){if(!s[a].empty())return r.Pass;var f=E(e,s[a].head);if(!f||n.indexOf(f)%2!=0)return r.Pass}for(var a=s.length-1;a>=0;a--){var o=s[a].head;e.replaceRange("",i(o.line,o.ch-1),i(o.line,o.ch+1),"+delete")}}function W(e){var t=y(e),n=t&&u(t,"explode");if(!n||e.getOption("disableInput"))return r.Pass;for(var s=e.listSelections(),a=0;a<s.length;a++){if(!s[a].empty())return r.Pass;var f=E(e,s[a].head);if(!f||n.indexOf(f)%2!=0)return r.Pass}e.operation(function(){var o=e.lineSeparator()||`
|
|
2
2
|
`;e.replaceSelection(o+o,null),k(e,-1),s=e.listSelections();for(var h=0;h<s.length;h++){var S=s[h].head.line;e.indentLine(S,null,!0),e.indentLine(S+1,null,!0)}})}function k(e,t){for(var n=[],s=e.listSelections(),a=0,f=0;f<s.length;f++){var o=s[f];o.head==e.getCursor()&&(a=f);var h=o.head.ch||t>0?{line:o.head.line,ch:o.head.ch+t}:{line:o.head.line-1};n.push({anchor:h,head:h})}e.setSelections(n,a)}function $(e){var t=r.cmpPos(e.anchor,e.head)>0;return{anchor:new i(e.anchor.line,e.anchor.ch+(t?-1:1)),head:new i(e.head.line,e.head.ch+(t?1:-1))}}function z(e,t){var n=y(e);if(!n||e.getOption("disableInput"))return r.Pass;var s=u(n,"pairs"),a=s.indexOf(t);if(a==-1)return r.Pass;for(var f=u(n,"closeBefore"),o=u(n,"triples"),h=s.charAt(a+1)==t,S=e.listSelections(),B=a%2==0,c,R=0;R<S.length;R++){var _=S[R],l=_.head,g,P=e.getRange(l,i(l.line,l.ch+1));if(B&&!_.empty())g="surround";else if((h||!B)&&P==t)h&&N(e,l)?g="both":o.indexOf(t)>=0&&e.getRange(l,i(l.line,l.ch+3))==t+t+t?g="skipThree":g="skip";else if(h&&l.ch>1&&o.indexOf(t)>=0&&e.getRange(i(l.line,l.ch-2),l)==t+t){if(l.ch>2&&/\bstring/.test(e.getTokenTypeAt(i(l.line,l.ch-2))))return r.Pass;g="addFour"}else if(h){var w=l.ch==0?" ":e.getRange(i(l.line,l.ch-1),l);if(!r.isWordChar(P)&&w!=t&&!r.isWordChar(w))g="both";else return r.Pass}else if(B&&(P.length===0||/\s/.test(P)||f.indexOf(P)>-1))g="both";else return r.Pass;if(!c)c=g;else if(c!=g)return r.Pass}var b=a%2?s.charAt(a-1):t,j=a%2?t:s.charAt(a+1);e.operation(function(){if(c=="skip")k(e,1);else if(c=="skipThree")k(e,3);else if(c=="surround"){for(var v=e.getSelections(),p=0;p<v.length;p++)v[p]=b+v[p]+j;e.replaceSelections(v,"around"),v=e.listSelections().slice();for(var p=0;p<v.length;p++)v[p]=$(v[p]);e.setSelections(v)}else c=="both"?(e.replaceSelection(b+j,null),e.triggerElectric(b+j),k(e,-1)):c=="addFour"&&(e.replaceSelection(b+b+b+b,"before"),k(e,1))})}function E(e,t){var n=e.getRange(i(t.line,t.ch-1),i(t.line,t.ch+1));return n.length==2?n:null}function N(e,t){var n=e.getTokenAt(i(t.line,t.ch+1));return/\bstring/.test(n.type)&&n.start==t.ch&&(t.ch==0||!/\bstring/.test(e.getTokenTypeAt(t)))}})}()),I.exports}var D=Q();const T=G.getDefaultExportFromCjs(D),U=J({__proto__:null,default:T},[D]);exports.closebrackets=U;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const d=require("./index
|
|
1
|
+
"use strict";const d=require("./index-BIUWAl0N.js"),u=require("./codemirror-DMBo1i5w.js");function f(o,c){for(var t=0;t<c.length;t++){const r=c[t];if(typeof r!="string"&&!Array.isArray(r)){for(const e in r)if(e!=="default"&&!(e in o)){const i=Object.getOwnPropertyDescriptor(r,e);i&&Object.defineProperty(o,e,i.get?i:{enumerable:!0,get:()=>r[e]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var n=u.requireCodemirror();const s=d.getDefaultExportFromCjs(n),a=f({__proto__:null,default:s},[n]);exports.CodeMirror=s;exports.codemirror=a;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const G=require("./index
|
|
1
|
+
"use strict";const G=require("./index-BIUWAl0N.js"),H=require("./codemirror-DMBo1i5w.js");function J(A,I){for(var v=0;v<I.length;v++){const C=I[v];if(typeof C!="string"&&!Array.isArray(C)){for(const s in C)if(s!=="default"&&!(s in A)){const a=Object.getOwnPropertyDescriptor(C,s);a&&Object.defineProperty(A,s,a.get?a:{enumerable:!0,get:()=>C[s]})}}}return Object.freeze(Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}))}var $={exports:{}},z;function K(){return z||(z=1,function(A,I){(function(v){v(H.requireCodemirror())})(function(v){var C={},s=/[^\s\u00a0]/,a=v.Pos,F=v.cmpPos;function P(t){var r=t.search(s);return r==-1?0:r}v.commands.toggleComment=function(t){t.toggleComment()},v.defineExtension("toggleComment",function(t){t||(t=C);for(var r=this,n=1/0,e=this.listSelections(),g=null,m=e.length-1;m>=0;m--){var l=e[m].from(),i=e[m].to();l.line>=n||(i.line>=n&&(i=a(n,0)),n=l.line,g==null?r.uncomment(l,i,t)?g="un":(r.lineComment(l,i,t),g="line"):g=="un"?r.uncomment(l,i,t):r.lineComment(l,i,t))}});function w(t,r,n){return/\bstring\b/.test(t.getTokenTypeAt(a(r.line,0)))&&!/^[\'\"\`]/.test(n)}function _(t,r){var n=t.getMode();return n.useInnerComments===!1||!n.innerMode?n:t.getModeAt(r)}v.defineExtension("lineComment",function(t,r,n){n||(n=C);var e=this,g=_(e,t),m=e.getLine(t.line);if(!(m==null||w(e,t,m))){var l=n.lineComment||g.lineComment;if(!l){(n.blockCommentStart||g.blockCommentStart)&&(n.fullLines=!0,e.blockComment(t,r,n));return}var i=Math.min(r.ch!=0||r.line==t.line?r.line+1:r.line,e.lastLine()+1),k=n.padding==null?" ":n.padding,f=n.commentBlankLines||t.line==r.line;e.operation(function(){if(n.indent){for(var d=null,c=t.line;c<i;++c){var u=e.getLine(c),h=u.search(s)===-1?u:u.slice(0,P(u));(d==null||d.length>h.length)&&(d=h)}for(var c=t.line;c<i;++c){var u=e.getLine(c),o=d.length;!f&&!s.test(u)||(u.slice(0,o)!=d&&(o=P(u)),e.replaceRange(d+l+k,a(c,0),a(c,o)))}}else for(var c=t.line;c<i;++c)(f||s.test(e.getLine(c)))&&e.replaceRange(l+k,a(c,0))})}}),v.defineExtension("blockComment",function(t,r,n){n||(n=C);var e=this,g=_(e,t),m=n.blockCommentStart||g.blockCommentStart,l=n.blockCommentEnd||g.blockCommentEnd;if(!m||!l){(n.lineComment||g.lineComment)&&n.fullLines!=!1&&e.lineComment(t,r,n);return}if(!/\bcomment\b/.test(e.getTokenTypeAt(a(t.line,0)))){var i=Math.min(r.line,e.lastLine());i!=t.line&&r.ch==0&&s.test(e.getLine(i))&&--i;var k=n.padding==null?" ":n.padding;t.line>i||e.operation(function(){if(n.fullLines!=!1){var f=s.test(e.getLine(i));e.replaceRange(k+l,a(i)),e.replaceRange(m+k,a(t.line,0));var d=n.blockCommentLead||g.blockCommentLead;if(d!=null)for(var c=t.line+1;c<=i;++c)(c!=i||f)&&e.replaceRange(d+k,a(c,0))}else{var u=F(e.getCursor("to"),r)==0,h=!e.somethingSelected();e.replaceRange(l,r),u&&e.setSelection(h?r:e.getCursor("from"),r),e.replaceRange(m,t)}})}}),v.defineExtension("uncomment",function(t,r,n){n||(n=C);var e=this,g=_(e,t),m=Math.min(r.ch!=0||r.line==t.line?r.line:r.line-1,e.lastLine()),l=Math.min(t.line,m),i=n.lineComment||g.lineComment,k=[],f=n.padding==null?" ":n.padding,d;e:{if(!i)break e;for(var c=l;c<=m;++c){var u=e.getLine(c),h=u.indexOf(i);if(h>-1&&!/comment/.test(e.getTokenTypeAt(a(c,h+1)))&&(h=-1),h==-1&&s.test(u)||h>-1&&s.test(u.slice(0,h)))break e;k.push(u)}if(e.operation(function(){for(var b=l;b<=m;++b){var x=k[b-l],O=x.indexOf(i),L=O+i.length;O<0||(x.slice(L,L+f.length)==f&&(L+=f.length),d=!0,e.replaceRange("",a(b,O),a(b,L)))}}),d)return!0}var o=n.blockCommentStart||g.blockCommentStart,S=n.blockCommentEnd||g.blockCommentEnd;if(!o||!S)return!1;var M=n.blockCommentLead||g.blockCommentLead,T=e.getLine(l),E=T.indexOf(o);if(E==-1)return!1;var j=m==l?T:e.getLine(m),p=j.indexOf(S,m==l?E+o.length:0),D=a(l,E+1),N=a(m,p+1);if(p==-1||!/comment/.test(e.getTokenTypeAt(D))||!/comment/.test(e.getTokenTypeAt(N))||e.getRange(D,N,`
|
|
2
2
|
`).indexOf(S)>-1)return!1;var y=T.lastIndexOf(o,t.ch),R=y==-1?-1:T.slice(0,t.ch).indexOf(S,y+o.length);if(y!=-1&&R!=-1&&R+S.length!=t.ch)return!1;R=j.indexOf(S,r.ch);var W=j.slice(r.ch).lastIndexOf(o,R-r.ch);return y=R==-1||W==-1?-1:r.ch+W,R!=-1&&y!=-1&&y!=r.ch?!1:(e.operation(function(){e.replaceRange("",a(m,p-(f&&j.slice(p-f.length,p)==f?f.length:0)),a(m,p+S.length));var b=E+o.length;if(f&&T.slice(b,b+f.length)==f&&(b+=f.length),e.replaceRange("",a(l,E),a(l,b)),M)for(var x=l+1;x<=m;++x){var O=e.getLine(x),L=O.indexOf(M);if(!(L==-1||s.test(O.slice(0,L)))){var q=L+M.length;f&&O.slice(q,q+f.length)==f&&(q+=f.length),e.replaceRange("",a(x,L),a(x,q))}}}),!0)})})}()),$.exports}var B=K();const Q=G.getDefaultExportFromCjs(B),U=J({__proto__:null,default:Q},[B]);exports.comment=U;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const l=require("./index
|
|
1
|
+
"use strict";const l=require("./index-BIUWAl0N.js"),s=require("./dialog-Dh2DOTOu.js");function c(t,n){for(var o=0;o<n.length;o++){const e=n[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const i=Object.getOwnPropertyDescriptor(e,r);i&&Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var a=s.requireDialog();const g=l.getDefaultExportFromCjs(a),u=c({__proto__:null,default:g},[a]);exports.dialog=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const z=require("./index
|
|
1
|
+
"use strict";const z=require("./index-BIUWAl0N.js"),N=require("./codemirror-DMBo1i5w.js");function L(w,k){for(var i=0;i<k.length;i++){const d=k[i];if(typeof d!="string"&&!Array.isArray(d)){for(const c in d)if(c!=="default"&&!(c in w)){const F=Object.getOwnPropertyDescriptor(d,c);F&&Object.defineProperty(w,c,F.get?F:{enumerable:!0,get:()=>d[c]})}}}return Object.freeze(Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}))}var b={exports:{}},U={exports:{}},q;function j(){return q||(q=1,function(w,k){(function(i){i(N.requireCodemirror())})(function(i){function d(t,r,o,a){if(o&&o.call){var s=o;o=null}else var s=p(t,o,"rangeFinder");typeof r=="number"&&(r=i.Pos(r,0));var x=p(t,o,"minFoldSize");function v(n){var u=s(t,r);if(!u||u.to.line-u.from.line<x)return null;if(a==="fold")return u;for(var f=t.findMarksAt(u.from),l=0;l<f.length;++l)if(f[l].__isFold){if(!n)return null;u.cleared=!0,f[l].clear()}return u}var g=v(!0);if(p(t,o,"scanUp"))for(;!g&&r.line>t.firstLine();)r=i.Pos(r.line-1,0),g=v(!1);if(!(!g||g.cleared||a==="unfold")){var O=c(t,o,g);i.on(O,"mousedown",function(n){e.clear(),i.e_preventDefault(n)});var e=t.markText(g.from,g.to,{replacedWith:O,clearOnEnter:p(t,o,"clearOnEnter"),__isFold:!0});e.on("clear",function(n,u){i.signal(t,"unfold",t,n,u)}),i.signal(t,"fold",t,g.from,g.to)}}function c(t,r,o){var a=p(t,r,"widget");if(typeof a=="function"&&(a=a(o.from,o.to)),typeof a=="string"){var s=document.createTextNode(a);a=document.createElement("span"),a.appendChild(s),a.className="CodeMirror-foldmarker"}else a&&(a=a.cloneNode(!0));return a}i.newFoldFunction=function(t,r){return function(o,a){d(o,a,{rangeFinder:t,widget:r})}},i.defineExtension("foldCode",function(t,r,o){d(this,t,r,o)}),i.defineExtension("isFolded",function(t){for(var r=this.findMarksAt(t),o=0;o<r.length;++o)if(r[o].__isFold)return!0}),i.commands.toggleFold=function(t){t.foldCode(t.getCursor())},i.commands.fold=function(t){t.foldCode(t.getCursor(),null,"fold")},i.commands.unfold=function(t){t.foldCode(t.getCursor(),{scanUp:!1},"unfold")},i.commands.foldAll=function(t){t.operation(function(){for(var r=t.firstLine(),o=t.lastLine();r<=o;r++)t.foldCode(i.Pos(r,0),{scanUp:!1},"fold")})},i.commands.unfoldAll=function(t){t.operation(function(){for(var r=t.firstLine(),o=t.lastLine();r<=o;r++)t.foldCode(i.Pos(r,0),{scanUp:!1},"unfold")})},i.registerHelper("fold","combine",function(){var t=Array.prototype.slice.call(arguments,0);return function(r,o){for(var a=0;a<t.length;++a){var s=t[a](r,o);if(s)return s}}}),i.registerHelper("fold","auto",function(t,r){for(var o=t.getHelpers(r,"fold"),a=0;a<o.length;a++){var s=o[a](t,r);if(s)return s}});var F={rangeFinder:i.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};i.defineOption("foldOptions",null);function p(t,r,o){if(r&&r[o]!==void 0)return r[o];var a=t.options.foldOptions;return a&&a[o]!==void 0?a[o]:F[o]}i.defineExtension("foldOption",function(t,r){return p(this,t,r)})})}()),U.exports}var C;function D(){return C||(C=1,function(w,k){(function(i){i(N.requireCodemirror(),j())})(function(i){i.defineOption("foldGutter",!1,function(e,n,u){u&&u!=i.Init&&(e.clearGutter(e.state.foldGutter.options.gutter),e.state.foldGutter=null,e.off("gutterClick",s),e.off("changes",v),e.off("viewportChange",g),e.off("fold",O),e.off("unfold",O),e.off("swapDoc",v),e.off("optionChange",x)),n&&(e.state.foldGutter=new c(F(n)),a(e),e.on("gutterClick",s),e.on("changes",v),e.on("viewportChange",g),e.on("fold",O),e.on("unfold",O),e.on("swapDoc",v),e.on("optionChange",x))});var d=i.Pos;function c(e){this.options=e,this.from=this.to=0}function F(e){return e===!0&&(e={}),e.gutter==null&&(e.gutter="CodeMirror-foldgutter"),e.indicatorOpen==null&&(e.indicatorOpen="CodeMirror-foldgutter-open"),e.indicatorFolded==null&&(e.indicatorFolded="CodeMirror-foldgutter-folded"),e}function p(e,n){for(var u=e.findMarks(d(n,0),d(n+1,0)),f=0;f<u.length;++f)if(u[f].__isFold){var l=u[f].find(-1);if(l&&l.line===n)return u[f]}}function t(e){if(typeof e=="string"){var n=document.createElement("div");return n.className=e+" CodeMirror-guttermarker-subtle",n}else return e.cloneNode(!0)}function r(e,n,u){var f=e.state.foldGutter.options,l=n-1,y=e.foldOption(f,"minFoldSize"),m=e.foldOption(f,"rangeFinder"),E=typeof f.indicatorFolded=="string"&&o(f.indicatorFolded),S=typeof f.indicatorOpen=="string"&&o(f.indicatorOpen);e.eachLine(n,u,function(T){++l;var _=null,h=T.gutterMarkers;if(h&&(h=h[f.gutter]),p(e,l)){if(E&&h&&E.test(h.className))return;_=t(f.indicatorFolded)}else{var A=d(l,0),G=m&&m(e,A);if(G&&G.to.line-G.from.line>=y){if(S&&h&&S.test(h.className))return;_=t(f.indicatorOpen)}}!_&&!h||e.setGutterMarker(T,f.gutter,_)})}function o(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function a(e){var n=e.getViewport(),u=e.state.foldGutter;u&&(e.operation(function(){r(e,n.from,n.to)}),u.from=n.from,u.to=n.to)}function s(e,n,u){var f=e.state.foldGutter;if(f){var l=f.options;if(u==l.gutter){var y=p(e,n);y?y.clear():e.foldCode(d(n,0),l)}}}function x(e,n){n=="mode"&&v(e)}function v(e){var n=e.state.foldGutter;if(n){var u=n.options;n.from=n.to=0,clearTimeout(n.changeUpdate),n.changeUpdate=setTimeout(function(){a(e)},u.foldOnChangeTimeSpan||600)}}function g(e){var n=e.state.foldGutter;if(n){var u=n.options;clearTimeout(n.changeUpdate),n.changeUpdate=setTimeout(function(){var f=e.getViewport();n.from==n.to||f.from-n.to>20||n.from-f.to>20?a(e):e.operation(function(){f.from<n.from&&(r(e,f.from,n.from),n.from=f.from),f.to>n.to&&(r(e,n.to,f.to),n.to=f.to)})},u.updateViewportTimeSpan||400)}}function O(e,n){var u=e.state.foldGutter;if(u){var f=n.line;f>=u.from&&f<u.to&&r(e,f,f+1)}}})}()),b.exports}var P=D();const R=z.getDefaultExportFromCjs(P),V=L({__proto__:null,default:R},[P]);exports.foldgutter=V;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./codemirror-
|
|
1
|
+
"use strict";const s=require("./codemirror-DYLmm60O.js");require("./show-hint-CWrAlvDj.js");const g=require("./index-BIUWAl0N.js"),h=require("./Range-CUfOrqgY.js");s.CodeMirror.registerHelper("hint","graphql",(r,a)=>{const{schema:l,externalFragments:u,autocompleteOptions:p}=a;if(!l)return;const n=r.getCursor(),o=r.getTokenAt(n),c=o.type!==null&&/"|\w/.test(o.string[0])?o.start:o.end,d=new h.Position(n.line,c),e={list:g.getAutocompleteSuggestions(l,r.getValue(),d,o,u,p).map(t=>{var i;return{text:(i=t==null?void 0:t.rawInsert)!==null&&i!==void 0?i:t.label,type:t.type,description:t.documentation,isDeprecated:t.isDeprecated,deprecationReason:t.deprecationReason}}),from:{line:n.line,ch:c},to:{line:n.line,ch:o.end}};return e!=null&&e.list&&e.list.length>0&&(e.from=s.CodeMirror.Pos(e.from.line,e.from.ch),e.to=s.CodeMirror.Pos(e.to.line,e.to.ch),s.CodeMirror.signal(r,"hasCompletion",r,e,o)),e});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as r } from "./codemirror-
|
|
2
|
-
import "./show-hint-
|
|
3
|
-
import { a as m } from "./index-
|
|
1
|
+
import { C as r } from "./codemirror-CB-WmM5M.mjs";
|
|
2
|
+
import "./show-hint-D7dYzsf5.mjs";
|
|
3
|
+
import { a as m } from "./index-DuPTnPsg.mjs";
|
|
4
4
|
import { P as d } from "./Range-CPFFy5pj.mjs";
|
|
5
5
|
r.registerHelper("hint", "graphql", (n, c) => {
|
|
6
6
|
const { schema: i, externalFragments: p, autocompleteOptions: u } = c;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as f } from "./codemirror-
|
|
1
|
+
import { C as f } from "./codemirror-CB-WmM5M.mjs";
|
|
2
2
|
import { f as b } from "./forEachState-DA54msa8.mjs";
|
|
3
|
-
import { h as m, i as h, k as x, u, j as T, d as V } from "./index-
|
|
3
|
+
import { h as m, i as h, k as x, u, j as T, d as V } from "./index-DuPTnPsg.mjs";
|
|
4
4
|
function p(i, n, t) {
|
|
5
5
|
const r = j(t, g(n.string));
|
|
6
6
|
if (!r)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const f=require("./codemirror-
|
|
1
|
+
"use strict";const f=require("./codemirror-DYLmm60O.js"),m=require("./forEachState-DY_pA9Bd.js"),a=require("./index-BIUWAl0N.js");function u(i,n,t){const r=g(t,h(n.string));if(!r)return;const e=n.type!==null&&/"|\w/.test(n.string[0])?n.start:n.end;return{list:r,from:{line:i.line,ch:e},to:{line:i.line,ch:n.end}}}function g(i,n){if(!n)return d(i,o=>!o.isDeprecated);const t=i.map(o=>({proximity:b(h(o.text),n),entry:o}));return d(d(t,o=>o.proximity<=2),o=>!o.entry.isDeprecated).sort((o,s)=>(o.entry.isDeprecated?1:0)-(s.entry.isDeprecated?1:0)||o.proximity-s.proximity||o.entry.text.length-s.entry.text.length).map(o=>o.entry)}function d(i,n){const t=i.filter(n);return t.length===0?i:t}function h(i){return i.toLowerCase().replaceAll(/\W/g,"")}function b(i,n){let t=x(n,i);return i.length>n.length&&(t-=i.length-n.length-1,t+=i.indexOf(n)===0?0:.5),t}function x(i,n){let t,r;const e=[],o=i.length,s=n.length;for(t=0;t<=o;t++)e[t]=[t];for(r=1;r<=s;r++)e[0][r]=r;for(t=1;t<=o;t++)for(r=1;r<=s;r++){const p=i[t-1]===n[r-1]?0:1;e[t][r]=Math.min(e[t-1][r]+1,e[t][r-1]+1,e[t-1][r-1]+p),t>1&&r>1&&i[t-1]===n[r-2]&&i[t-2]===n[r-1]&&(e[t][r]=Math.min(e[t][r],e[t-2][r-2]+p))}return e[o][s]}f.CodeMirror.registerHelper("hint","graphql-variables",(i,n)=>{const t=i.getCursor(),r=i.getTokenAt(t),e=L(t,r,n);return e!=null&&e.list&&e.list.length>0&&(e.from=f.CodeMirror.Pos(e.from.line,e.from.ch),e.to=f.CodeMirror.Pos(e.to.line,e.to.ch),f.CodeMirror.signal(i,"hasCompletion",i,e,r)),e});function L(i,n,t){const r=n.state.kind==="Invalid"?n.state.prevState:n.state,{kind:e,step:o}=r;if(e==="Document"&&o===0)return u(i,n,[{text:"{"}]);const{variableToType:s}=t;if(!s)return;const p=T(s,n.state);if(e==="Document"||e==="Variable"&&o===0){const c=Object.keys(s);return u(i,n,c.map(l=>({text:`"${l}": `,type:s[l]})))}if((e==="ObjectValue"||e==="ObjectField"&&o===0)&&p.fields){const c=Object.keys(p.fields).map(l=>p.fields[l]);return u(i,n,c.map(l=>({text:`"${l.name}": `,type:l.type,description:l.description})))}if(e==="StringValue"||e==="NumberValue"||e==="BooleanValue"||e==="NullValue"||e==="ListValue"&&o===1||e==="ObjectField"&&o===2||e==="Variable"&&o===2){const c=p.type?a.getNamedType(p.type):void 0;if(c instanceof a.GraphQLInputObjectType)return u(i,n,[{text:"{"}]);if(c instanceof a.GraphQLEnumType){const l=c.getValues();return u(i,n,l.map(y=>({text:`"${y.name}"`,type:c,description:y.description})))}if(c===a.GraphQLBoolean)return u(i,n,[{text:"true",type:a.GraphQLBoolean,description:"Not false."},{text:"false",type:a.GraphQLBoolean,description:"Not true."}])}}function T(i,n){const t={type:null,fields:null};return m.forEachState(n,r=>{switch(r.kind){case"Variable":{t.type=i[r.name];break}case"ListValue":{const e=t.type?a.getNullableType(t.type):void 0;t.type=e instanceof a.GraphQLList?e.ofType:null;break}case"ObjectValue":{const e=t.type?a.getNamedType(t.type):void 0;t.fields=e instanceof a.GraphQLInputObjectType?e.getFields():null;break}case"ObjectField":{const e=r.name&&t.fields?t.fields[r.name]:null;t.type=e==null?void 0:e.type;break}}}),t}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BIUWAl0N.js");exports.CloseCode=e.CloseCode;exports.GRAPHQL_TRANSPORT_WS_PROTOCOL=e.GRAPHQL_TRANSPORT_WS_PROTOCOL;exports.MessageType=e.MessageType;exports.TerminatedCloseEvent=e.TerminatedCloseEvent;exports.createClient=e.createClient;exports.parseMessage=e.parseMessage;exports.stringifyMessage=e.stringifyMessage;exports.validateMessage=e.validateMessage;
|