@powerhousedao/powerhouse-vetra-packages 6.2.3-dev.24 → 6.2.3-dev.26
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/browser/assets/{entry-CSJBrcX5.js → entry-DhaRsTID.js} +2 -3
- package/dist/browser/assets/{projection-entry-D67cdPsg.js → projection-entry-qrF_MLsE.js} +7 -13
- package/dist/browser/{documents-C-lAnv6o.js → documents-CRzouuNR.js} +45 -35
- package/dist/browser/{documents-C-lAnv6o.js.map → documents-CRzouuNR.js.map} +1 -1
- package/dist/browser/{editor-CQ4wUFK5.js → editor-C7KBR_ar.js} +1063 -66
- package/dist/browser/editor-C7KBR_ar.js.map +1 -0
- package/dist/browser/{editor-DNV-46lY.js → editor-CiR6XQBO.js} +2 -3
- package/dist/browser/{editor-DNV-46lY.js.map → editor-CiR6XQBO.js.map} +1 -1
- package/dist/browser/editors/document-model-editor/module.js +1 -1
- package/dist/browser/editors/document-model-editor/module.js.map +1 -1
- package/dist/browser/editors/generic-drive-explorer/index.js +74 -63
- package/dist/browser/editors/generic-drive-explorer/index.js.map +1 -1
- package/dist/browser/editors/generic-drive-explorer/module.js +1 -1
- package/dist/browser/editors/generic-drive-explorer/module.js.map +1 -1
- package/dist/browser/{src-CVV6HzQZ-D-OQvEkh.js → folder-view-DSgXN79D.js} +901 -1643
- package/dist/browser/folder-view-DSgXN79D.js.map +1 -0
- package/dist/browser/{graphql-editor-DoXZvdNr.js → graphql-editor-Cgi5UOrF.js} +97 -85
- package/dist/browser/graphql-editor-Cgi5UOrF.js.map +1 -0
- package/dist/{node/hooks-Di3FASx-.mjs → browser/hooks-eQxBX7g4.js} +824 -444
- package/dist/browser/{hooks-Bh1JCohS.js.map → hooks-eQxBX7g4.js.map} +1 -1
- package/dist/browser/index.js +20 -17
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/{json-editor-DBhkG5TF.js → json-editor-DfRD-pfk.js} +7 -7
- package/dist/browser/{json-editor-DBhkG5TF.js.map → json-editor-DfRD-pfk.js.map} +1 -1
- package/dist/browser/{parser-BBzK7bLd.js → parser-DtbeHA3H.js} +7 -6
- package/dist/browser/{parser-BBzK7bLd.js.map → parser-DtbeHA3H.js.map} +1 -1
- package/dist/browser/{chunk-BVTlhY3a.js → rolldown-runtime-DC62tzP2.js} +12 -3
- package/dist/browser/src-CrUksCLW-B2dkRdgq.js +5254 -0
- package/dist/browser/src-CrUksCLW-B2dkRdgq.js.map +1 -0
- package/dist/browser/{state-schemas-B47wHvDV.js → state-schemas-B5Bk_l1s.js} +12 -10
- package/dist/browser/{state-schemas-B47wHvDV.js.map → state-schemas-B5Bk_l1s.js.map} +1 -1
- package/dist/browser/{tslib.es6-CeIASJ2O.js → tslib.es6-Cno80yFJ.js} +1 -1
- package/dist/browser/{tslib.es6-CeIASJ2O.js.map → tslib.es6-Cno80yFJ.js.map} +1 -1
- package/dist/node/{documents-XAQfHX5Q.mjs → documents-D70S9PZL.mjs} +2 -2
- package/dist/node/documents-D70S9PZL.mjs.map +1 -0
- package/dist/node/{editor-BiiLqEe9.mjs → editor-96sMeumV.mjs} +986 -68
- package/dist/node/editor-96sMeumV.mjs.map +1 -0
- package/dist/node/{editor-Cp2TC5MJ.mjs → editor-wqvKwcO5.mjs} +2 -3
- package/dist/node/{editor-Cp2TC5MJ.mjs.map → editor-wqvKwcO5.mjs.map} +1 -1
- package/dist/node/editors/document-model-editor/module.mjs +1 -1
- package/dist/node/editors/document-model-editor/module.mjs.map +1 -1
- package/dist/node/editors/generic-drive-explorer/index.mjs +25 -19
- package/dist/node/editors/generic-drive-explorer/index.mjs.map +1 -1
- package/dist/node/editors/generic-drive-explorer/module.mjs +1 -1
- package/dist/node/editors/generic-drive-explorer/module.mjs.map +1 -1
- package/dist/node/{src-CVV6HzQZ-CvqjXbXk.mjs → folder-view-ktfv2Cvw.mjs} +891 -2311
- package/dist/node/{src-CVV6HzQZ-CvqjXbXk.mjs.map → folder-view-ktfv2Cvw.mjs.map} +1 -1
- package/dist/node/{graphql-BvV3tC1U.mjs → graphql-Dp4j7rmx.mjs} +50 -49
- package/dist/node/{graphql-BvV3tC1U.mjs.map → graphql-Dp4j7rmx.mjs.map} +1 -1
- package/dist/node/{graphql-editor-BhF6KN6y.mjs → graphql-editor-CBJXEY_C.mjs} +76 -61
- package/dist/node/graphql-editor-CBJXEY_C.mjs.map +1 -0
- package/dist/{browser/hooks-Bh1JCohS.js → node/hooks-C2b46djt.mjs} +824 -444
- package/dist/node/{hooks-Di3FASx-.mjs.map → hooks-C2b46djt.mjs.map} +1 -1
- package/dist/node/index.mjs +20 -18
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/{json-editor-Cqc0zuz0.mjs → json-editor-DaqHARBD.mjs} +7 -7
- package/dist/node/{json-editor-Cqc0zuz0.mjs.map → json-editor-DaqHARBD.mjs.map} +1 -1
- package/dist/node/{schema-context-mHmP3Cl6.mjs → schema-context-CojjnSE6.mjs} +6 -5
- package/dist/node/schema-context-CojjnSE6.mjs.map +1 -0
- package/dist/node/src-CrUksCLW-TvF37aMo.mjs +5935 -0
- package/dist/node/src-CrUksCLW-TvF37aMo.mjs.map +1 -0
- package/dist/node/{state-schemas-DXG02fMh.mjs → state-schemas-BHuo0GPl.mjs} +13 -10
- package/dist/node/{state-schemas-DXG02fMh.mjs.map → state-schemas-BHuo0GPl.mjs.map} +1 -1
- package/dist/node/{tslib.es6-DdiHgz9e.mjs → tslib.es6-VORZjfk3.mjs} +45 -7
- package/dist/node/{tslib.es6-DdiHgz9e.mjs.map → tslib.es6-VORZjfk3.mjs.map} +1 -1
- package/package.json +11 -10
- package/dist/browser/button-sZQCXeCo.js +0 -803
- package/dist/browser/button-sZQCXeCo.js.map +0 -1
- package/dist/browser/dist-D3_ER0Dn.js +0 -2314
- package/dist/browser/dist-D3_ER0Dn.js.map +0 -1
- package/dist/browser/editor-CQ4wUFK5.js.map +0 -1
- package/dist/browser/folder-view-CzItU0hn.js +0 -957
- package/dist/browser/folder-view-CzItU0hn.js.map +0 -1
- package/dist/browser/graphql-editor-DoXZvdNr.js.map +0 -1
- package/dist/browser/schema-context-p2bhyog_.js +0 -69
- package/dist/browser/schema-context-p2bhyog_.js.map +0 -1
- package/dist/browser/src-CVV6HzQZ-D-OQvEkh.js.map +0 -1
- package/dist/node/button-5bnYEAVq.mjs +0 -785
- package/dist/node/button-5bnYEAVq.mjs.map +0 -1
- package/dist/node/chunk-17FXJ3dL.mjs +0 -31
- package/dist/node/dist-Bf_PIbO7.mjs +0 -2314
- package/dist/node/dist-Bf_PIbO7.mjs.map +0 -1
- package/dist/node/documents-XAQfHX5Q.mjs.map +0 -1
- package/dist/node/editor-BiiLqEe9.mjs.map +0 -1
- package/dist/node/folder-view-m_rH84Nz.mjs +0 -962
- package/dist/node/folder-view-m_rH84Nz.mjs.map +0 -1
- package/dist/node/graphql-editor-BhF6KN6y.mjs.map +0 -1
- package/dist/node/schema-context-mHmP3Cl6.mjs.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as __commonJSMin } from "./
|
|
2
|
-
import { c as Kind, l as DirectiveLocation, m as invariant$1, p as GraphQLError, r as inspect, t as parse } from "./parser-
|
|
3
|
-
import { $ as getNullableType, A as GraphQLSchema, B as GraphQLString, C as LoneSchemaDefinitionRule, D as FragmentsOnCompositeTypesRule, E as KnownDirectivesRule, F as isSpecifiedDirective, G as GraphQLInterfaceType, H as doTypesOverlap, I as GraphQLBoolean, J as GraphQLObjectType, K as GraphQLList, L as GraphQLFloat, M as TypeMetaFieldDef, N as TypeNameMetaFieldDef, O as ExecutableDefinitionsRule, P as GraphQLDirective, Q as getNamedType, R as GraphQLID, S as NoUnusedFragmentsRule, T as KnownFragmentNamesRule, U as GraphQLEnumType, V as isSpecifiedScalarType, W as GraphQLInputObjectType, X as GraphQLUnionType, Y as GraphQLScalarType, Z as assertAbstractType, _ as UniqueDirectiveNamesRule, at as isInterfaceType, b as ProvidedRequiredArgumentsRule, c as validate, ct as isNamedType, d as UniqueTypeNamesRule, dt as isOutputType, et as isAbstractType, f as UniqueOperationTypesRule, ft as isScalarType, g as UniqueDirectivesPerLocationRule, gt as visit, h as UniqueEnumValueNamesRule, ht as BREAK, it as isInputType, j as SchemaMetaFieldDef, k as validateSchema, l as specifiedRules, lt as isNonNullType, m as UniqueFieldDefinitionNamesRule, mt as print, nt as isEnumType, ot as isLeafType, p as UniqueInputFieldNamesRule, pt as isUnionType, q as GraphQLNonNull, rt as isInputObjectType, s as buildSchema, st as isListType, tt as isCompositeType, u as UniqueVariableNamesRule, ut as isObjectType, v as UniqueArgumentNamesRule, w as KnownTypeNamesRule, x as PossibleTypeExtensionsRule, z as GraphQLInt } from "./documents-
|
|
4
|
-
import { C as linter, D as EditorState, E as Compartment, O as StateEffect, S as forceLinting, T as keymap, _ as foldNodeProp, a as makeFocusHandler, b as tags, c as baseEditorExtensions, d as ayuLight, f as LRLanguage, g as foldInside, h as delimitedIndent, i as useHandlerReconfiguration, k as StateField, l as baseKeymap, n as useEditorCleanup, o as makePasteHandler, p as LanguageSupport, r as useEditorRefs, s as makeUpdateHandler, t as useDocumentSync, u as dracula, v as indentNodeProp, w as EditorView, x as LRParser, y as styleTags } from "./hooks-
|
|
5
|
-
import {
|
|
1
|
+
import { t as __commonJSMin } from "./rolldown-runtime-DC62tzP2.js";
|
|
2
|
+
import { c as Kind, l as DirectiveLocation, m as invariant$1, p as GraphQLError, r as inspect, t as parse } from "./parser-DtbeHA3H.js";
|
|
3
|
+
import { $ as getNullableType, A as GraphQLSchema, B as GraphQLString, C as LoneSchemaDefinitionRule, D as FragmentsOnCompositeTypesRule, E as KnownDirectivesRule, F as isSpecifiedDirective, G as GraphQLInterfaceType, H as doTypesOverlap, I as GraphQLBoolean, J as GraphQLObjectType, K as GraphQLList, L as GraphQLFloat, M as TypeMetaFieldDef, N as TypeNameMetaFieldDef, O as ExecutableDefinitionsRule, P as GraphQLDirective, Q as getNamedType, R as GraphQLID, S as NoUnusedFragmentsRule, T as KnownFragmentNamesRule, U as GraphQLEnumType, V as isSpecifiedScalarType, W as GraphQLInputObjectType, X as GraphQLUnionType, Y as GraphQLScalarType, Z as assertAbstractType, _ as UniqueDirectiveNamesRule, at as isInterfaceType, b as ProvidedRequiredArgumentsRule, c as validate, ct as isNamedType, d as UniqueTypeNamesRule, dt as isOutputType, et as isAbstractType, f as UniqueOperationTypesRule, ft as isScalarType, g as UniqueDirectivesPerLocationRule, gt as visit, h as UniqueEnumValueNamesRule, ht as BREAK, it as isInputType, j as SchemaMetaFieldDef, k as validateSchema, l as specifiedRules, lt as isNonNullType, m as UniqueFieldDefinitionNamesRule, mt as print, nt as isEnumType, ot as isLeafType, p as UniqueInputFieldNamesRule, pt as isUnionType, q as GraphQLNonNull, rt as isInputObjectType, s as buildSchema, st as isListType, tt as isCompositeType, u as UniqueVariableNamesRule, ut as isObjectType, v as UniqueArgumentNamesRule, w as KnownTypeNamesRule, x as PossibleTypeExtensionsRule, z as GraphQLInt } from "./documents-CRzouuNR.js";
|
|
4
|
+
import { C as linter, D as EditorState, E as Compartment, O as StateEffect, S as forceLinting, T as keymap, _ as foldNodeProp, a as makeFocusHandler, b as tags, c as baseEditorExtensions, d as ayuLight, f as LRLanguage, g as foldInside, h as delimitedIndent, i as useHandlerReconfiguration, k as StateField, l as baseKeymap, n as useEditorCleanup, o as makePasteHandler, p as LanguageSupport, r as useEditorRefs, s as makeUpdateHandler, t as useDocumentSync, u as dracula, v as indentNodeProp, w as EditorView, x as LRParser, y as styleTags } from "./hooks-eQxBX7g4.js";
|
|
5
|
+
import { l as safeParseSdl, u as useSchemaContext } from "./editor-C7KBR_ar.js";
|
|
6
6
|
import { memo, useEffect, useRef } from "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
import { useTheme } from "@powerhousedao/reactor-browser";
|
|
@@ -155,7 +155,10 @@ const getInsertText = (prefix, type, fallback) => {
|
|
|
155
155
|
return fallback !== null && fallback !== void 0 ? fallback : prefix;
|
|
156
156
|
};
|
|
157
157
|
const getInputInsertText = (prefix, type, fallback) => {
|
|
158
|
-
if (isListType(type))
|
|
158
|
+
if (isListType(type)) {
|
|
159
|
+
const baseType = getNamedType(type.ofType);
|
|
160
|
+
return prefix + `[${getInsertText("", baseType, "$1")}]`;
|
|
161
|
+
}
|
|
159
162
|
return getInsertText(prefix, type, fallback);
|
|
160
163
|
};
|
|
161
164
|
const getFieldInsertText = (field) => {
|
|
@@ -2620,11 +2623,13 @@ function advanceRule(state, successful) {
|
|
|
2620
2623
|
state.step++;
|
|
2621
2624
|
while (state.rule && !(Array.isArray(state.rule) && state.step < state.rule.length)) {
|
|
2622
2625
|
popRule(state);
|
|
2623
|
-
if (state.rule)
|
|
2624
|
-
if ((
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2626
|
+
if (state.rule) {
|
|
2627
|
+
if (isList(state)) {
|
|
2628
|
+
if ((_a = state.rule) === null || _a === void 0 ? void 0 : _a[state.step].separator) state.needsSeparator = !state.needsSeparator;
|
|
2629
|
+
} else {
|
|
2630
|
+
state.needsSeparator = false;
|
|
2631
|
+
state.step++;
|
|
2632
|
+
}
|
|
2628
2633
|
}
|
|
2629
2634
|
}
|
|
2630
2635
|
}
|
|
@@ -2775,9 +2780,7 @@ function getDefinitionState(tokenState) {
|
|
|
2775
2780
|
case "ShortQuery":
|
|
2776
2781
|
case "Mutation":
|
|
2777
2782
|
case "Subscription":
|
|
2778
|
-
case "FragmentDefinition":
|
|
2779
|
-
definitionState = state;
|
|
2780
|
-
break;
|
|
2783
|
+
case "FragmentDefinition": definitionState = state;
|
|
2781
2784
|
}
|
|
2782
2785
|
});
|
|
2783
2786
|
return definitionState;
|
|
@@ -2867,9 +2870,7 @@ function getTypeInfo(schema, tokenState) {
|
|
|
2867
2870
|
argDefs = field.args;
|
|
2868
2871
|
break;
|
|
2869
2872
|
}
|
|
2870
|
-
default:
|
|
2871
|
-
argDefs = null;
|
|
2872
|
-
break;
|
|
2873
|
+
default: argDefs = null;
|
|
2873
2874
|
}
|
|
2874
2875
|
else argDefs = null;
|
|
2875
2876
|
break;
|
|
@@ -2904,9 +2905,7 @@ function getTypeInfo(schema, tokenState) {
|
|
|
2904
2905
|
fieldDef = objectField;
|
|
2905
2906
|
type = fieldDef ? fieldDef.type : null;
|
|
2906
2907
|
break;
|
|
2907
|
-
case RuleKinds.NAMED_TYPE:
|
|
2908
|
-
if (state.name) type = schema.getType(state.name);
|
|
2909
|
-
break;
|
|
2908
|
+
case RuleKinds.NAMED_TYPE: if (state.name) type = schema.getType(state.name);
|
|
2910
2909
|
}
|
|
2911
2910
|
});
|
|
2912
2911
|
return {
|
|
@@ -3283,14 +3282,15 @@ function getSuggestionsForImplements(token, tokenState, schema, documentText, ty
|
|
|
3283
3282
|
}
|
|
3284
3283
|
function getSuggestionsForFragmentTypeConditions(token, typeInfo, schema, _kind) {
|
|
3285
3284
|
let possibleTypes;
|
|
3286
|
-
if (typeInfo.parentType)
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3285
|
+
if (typeInfo.parentType) {
|
|
3286
|
+
if (isAbstractType(typeInfo.parentType)) {
|
|
3287
|
+
const abstractType = assertAbstractType(typeInfo.parentType);
|
|
3288
|
+
const possibleObjTypes = schema.getPossibleTypes(abstractType);
|
|
3289
|
+
const possibleIfaceMap = Object.create(null);
|
|
3290
|
+
for (const type of possibleObjTypes) for (const iface of type.getInterfaces()) possibleIfaceMap[iface.name] = iface;
|
|
3291
|
+
possibleTypes = possibleObjTypes.concat(objectValues(possibleIfaceMap));
|
|
3292
|
+
} else possibleTypes = [typeInfo.parentType];
|
|
3293
|
+
} else possibleTypes = objectValues(schema.getTypeMap()).filter((type) => isCompositeType(type) && !type.name.startsWith("__"));
|
|
3294
3294
|
return hintList(token, possibleTypes.map((type) => {
|
|
3295
3295
|
const namedType = getNamedType(type);
|
|
3296
3296
|
return {
|
|
@@ -3631,16 +3631,16 @@ var Position = class {
|
|
|
3631
3631
|
};
|
|
3632
3632
|
const isMac = () => navigator.userAgent.includes("Mac");
|
|
3633
3633
|
const isMetaKeyPressed = (e) => isMac() ? e.metaKey : e.ctrlKey;
|
|
3634
|
-
const schemaEffect =
|
|
3635
|
-
const schemaStateField =
|
|
3634
|
+
const schemaEffect = /*@__PURE__*/ StateEffect.define();
|
|
3635
|
+
const schemaStateField = /*@__PURE__*/ StateField.define({
|
|
3636
3636
|
create() {},
|
|
3637
3637
|
update(schema, tr) {
|
|
3638
3638
|
for (const e of tr.effects) if (e.is(schemaEffect)) return e.value;
|
|
3639
3639
|
return schema;
|
|
3640
3640
|
}
|
|
3641
3641
|
});
|
|
3642
|
-
const optionsEffect =
|
|
3643
|
-
const optionsStateField =
|
|
3642
|
+
const optionsEffect = /*@__PURE__*/ StateEffect.define();
|
|
3643
|
+
const optionsStateField = /*@__PURE__*/ StateField.define({
|
|
3644
3644
|
create() {},
|
|
3645
3645
|
update(opts, tr) {
|
|
3646
3646
|
for (const e of tr.effects) if (e.is(optionsEffect)) return e.value;
|
|
@@ -3674,7 +3674,7 @@ const spec_name = {
|
|
|
3674
3674
|
repeatable: 176,
|
|
3675
3675
|
extend: 192
|
|
3676
3676
|
};
|
|
3677
|
-
const parser =
|
|
3677
|
+
const parser = /*@__PURE__*/ LRParser.deserialize({
|
|
3678
3678
|
version: 14,
|
|
3679
3679
|
states: "LWOYQPOOO!WQPO'#C}O!`QPO'#C_OOQO'#C_'#C_O!iQPO'#DYOOQO'#Ev'#EvOOQO'#D_'#D_O!nQPO'#D^O#_QPO'#D^O!iQPO'#DhO!iQPO'#DrO!iQPO'#DuO!iQPO'#DyO!iQPO'#EOOOQO'#Dd'#DdO#fQPO'#ESOOQO'#D]'#D]O!vQPO'#E^OOQO'#Ea'#EaOOQO'#E]'#E]OOQO'#FT'#FTOOQO'#Eu'#EuOOQO'#Eh'#EhQYQPOOOOQO'#C`'#C`OOQO'#DZ'#DZOOQO'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#l#Wy#m#Wy#n#Wy~O#{%]Oc#Xyi#Xy!O#Xy!T#Xy!^#Xy!h#Xy!k#Xy!o#Xy!t#Xy!x#Xy#S#Xy#f#Xy#l#Xy#m#Xy#n#Xy~O['jO~P! ZOh'nO#kzO~O#t'oOUoi#koi~O['pO~O#t'rOUXqYXq~Om{O#t'rOUXqYXq~O#{&tOc!v!Ri!v!R!O!v!R!T!v!R!^!v!R!h!v!R!k!v!R!o!v!R!t!v!R!x!v!R#S!v!R#f!v!R#l!v!R#m!v!R#n!v!R~Om{Oc!cih!ci#k!ci~O#o'wO~Om{Oc!eq{!eq!z!eq#k!eqh!eq#o!eq~O#r'UO~P!/eO#t'zOY#^X[#^X]#^Xa#^Xb#^Xc#^Xd#^Xe#^Xf#^Xi#^X~O['|O~P! ZO#o'}O~Oh(PO#kzO~O#t(QOUXyYXy~O#{&tOc!v!Zi!v!Z!O!v!Z!T!v!Z!^!v!Z!h!v!Z!k!v!Z!o!v!Z!t!v!Z!x!v!Z#S!v!Z#f!v!Z#l!v!Z#m!v!Z#n!v!Z~Om{Oc!cqh!cq#k!cq~Om{Oc!ey{!ey!z!ey#k!eyh!ey#o!ey~Om{Oc!cyh!cy#k!cy~O#t(WOh#ui#k#ui~Odefe~",
|
|
@@ -3716,9 +3716,9 @@ const parser = /* @__PURE__ */ LRParser.deserialize({
|
|
|
3716
3716
|
const nodesWithBraces = "RootTypeDefinition InputFieldsDefinition EnumValuesDefinition FieldsDefinition SelectionSet { }";
|
|
3717
3717
|
const keywords = "scalar type interface union enum input implements fragment extend schema directive on repeatable";
|
|
3718
3718
|
const punctuations = "( ) { } : [ ]";
|
|
3719
|
-
const graphqlLanguage =
|
|
3720
|
-
parser:
|
|
3721
|
-
|
|
3719
|
+
const graphqlLanguage = /*@__PURE__*/ LRLanguage.define({
|
|
3720
|
+
parser: /*@__PURE__*/ parser.configure({ props: [
|
|
3721
|
+
/*@__PURE__*/ styleTags({
|
|
3722
3722
|
Variable: tags.variableName,
|
|
3723
3723
|
BooleanValue: tags.bool,
|
|
3724
3724
|
Description: tags.string,
|
|
@@ -3726,7 +3726,7 @@ const graphqlLanguage = /* @__PURE__ */ LRLanguage.define({
|
|
|
3726
3726
|
Comment: tags.lineComment,
|
|
3727
3727
|
IntValue: tags.integer,
|
|
3728
3728
|
FloatValue: tags.float,
|
|
3729
|
-
EnumValue:
|
|
3729
|
+
EnumValue: /*@__PURE__*/ tags.special(tags.name),
|
|
3730
3730
|
NullValue: tags.null,
|
|
3731
3731
|
DirectiveName: tags.modifier,
|
|
3732
3732
|
[keywords]: tags.keyword,
|
|
@@ -3740,11 +3740,11 @@ const graphqlLanguage = /* @__PURE__ */ LRLanguage.define({
|
|
|
3740
3740
|
",": tags.separator,
|
|
3741
3741
|
[punctuations]: tags.punctuation
|
|
3742
3742
|
}),
|
|
3743
|
-
|
|
3743
|
+
/*@__PURE__*/ indentNodeProp.add({ [nodesWithBraces]: /*@__PURE__*/ delimitedIndent({
|
|
3744
3744
|
closing: "}",
|
|
3745
3745
|
align: true
|
|
3746
3746
|
}) }),
|
|
3747
|
-
|
|
3747
|
+
/*@__PURE__*/ foldNodeProp.add({ [nodesWithBraces]: foldInside })
|
|
3748
3748
|
] }),
|
|
3749
3749
|
languageData: {
|
|
3750
3750
|
commentTokens: { line: "#" },
|
|
@@ -3755,7 +3755,7 @@ function graphqlLanguageSupport() {
|
|
|
3755
3755
|
return new LanguageSupport(graphqlLanguage);
|
|
3756
3756
|
}
|
|
3757
3757
|
const AUTOCOMPLETE_CHARS = /^[a-zA-Z0-9_@(]$/;
|
|
3758
|
-
const completion =
|
|
3758
|
+
const completion = /*@__PURE__*/ graphqlLanguage.data.of({ autocomplete(ctx) {
|
|
3759
3759
|
const schema = getSchema(ctx.state);
|
|
3760
3760
|
const opts = getOpts(ctx.state);
|
|
3761
3761
|
if (!schema) return null;
|
|
@@ -3783,7 +3783,7 @@ const completion = /* @__PURE__ */ graphqlLanguage.data.of({ autocomplete(ctx) {
|
|
|
3783
3783
|
})
|
|
3784
3784
|
};
|
|
3785
3785
|
} });
|
|
3786
|
-
const jump =
|
|
3786
|
+
const jump = /*@__PURE__*/ EditorView.domEventHandlers({ click(evt, view) {
|
|
3787
3787
|
var _a, _b, _c;
|
|
3788
3788
|
const schema = getSchema(view.state);
|
|
3789
3789
|
if (!schema) return;
|
|
@@ -3798,7 +3798,7 @@ const SEVERITY = [
|
|
|
3798
3798
|
"warning",
|
|
3799
3799
|
"info"
|
|
3800
3800
|
];
|
|
3801
|
-
const lint =
|
|
3801
|
+
const lint = /*@__PURE__*/ linter((view) => {
|
|
3802
3802
|
const schema = getSchema(view.state);
|
|
3803
3803
|
const options = getOpts(view.state);
|
|
3804
3804
|
if (!schema) return [];
|
|
@@ -3945,11 +3945,12 @@ function rewireTypes(originalTypeMap, directives) {
|
|
|
3945
3945
|
function rewireNamedType(type) {
|
|
3946
3946
|
if (isObjectType(type)) {
|
|
3947
3947
|
const config = type.toConfig();
|
|
3948
|
-
|
|
3948
|
+
const newConfig = {
|
|
3949
3949
|
...config,
|
|
3950
3950
|
fields: () => rewireFields(config.fields),
|
|
3951
3951
|
interfaces: () => rewireNamedTypes(config.interfaces)
|
|
3952
|
-
}
|
|
3952
|
+
};
|
|
3953
|
+
return new GraphQLObjectType(newConfig);
|
|
3953
3954
|
} else if (isInterfaceType(type)) {
|
|
3954
3955
|
const config = type.toConfig();
|
|
3955
3956
|
const newConfig = {
|
|
@@ -3960,20 +3961,25 @@ function rewireTypes(originalTypeMap, directives) {
|
|
|
3960
3961
|
return new GraphQLInterfaceType(newConfig);
|
|
3961
3962
|
} else if (isUnionType(type)) {
|
|
3962
3963
|
const config = type.toConfig();
|
|
3963
|
-
|
|
3964
|
+
const newConfig = {
|
|
3964
3965
|
...config,
|
|
3965
3966
|
types: () => rewireNamedTypes(config.types)
|
|
3966
|
-
}
|
|
3967
|
+
};
|
|
3968
|
+
return new GraphQLUnionType(newConfig);
|
|
3967
3969
|
} else if (isInputObjectType(type)) {
|
|
3968
3970
|
const config = type.toConfig();
|
|
3969
|
-
|
|
3971
|
+
const newConfig = {
|
|
3970
3972
|
...config,
|
|
3971
3973
|
fields: () => rewireInputFields(config.fields)
|
|
3972
|
-
}
|
|
3973
|
-
|
|
3974
|
-
else if (
|
|
3974
|
+
};
|
|
3975
|
+
return new GraphQLInputObjectType(newConfig);
|
|
3976
|
+
} else if (isEnumType(type)) {
|
|
3977
|
+
const enumConfig = type.toConfig();
|
|
3978
|
+
return new GraphQLEnumType(enumConfig);
|
|
3979
|
+
} else if (isScalarType(type)) {
|
|
3975
3980
|
if (isSpecifiedScalarType(type)) return type;
|
|
3976
|
-
|
|
3981
|
+
const scalarConfig = type.toConfig();
|
|
3982
|
+
return new GraphQLScalarType(scalarConfig);
|
|
3977
3983
|
}
|
|
3978
3984
|
throw new Error(`Unexpected schema type: ${type}`);
|
|
3979
3985
|
}
|
|
@@ -5231,19 +5237,21 @@ var require_visitor = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5231
5237
|
key = ancestors.length === 0 ? void 0 : path[path.length - 1];
|
|
5232
5238
|
node = parent;
|
|
5233
5239
|
parent = ancestors.pop();
|
|
5234
|
-
if (isEdited)
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
const
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5240
|
+
if (isEdited) {
|
|
5241
|
+
if (inArray) {
|
|
5242
|
+
node = node.slice();
|
|
5243
|
+
let editOffset = 0;
|
|
5244
|
+
for (const [editKey, editValue] of edits) {
|
|
5245
|
+
const arrayKey = editKey - editOffset;
|
|
5246
|
+
if (editValue === null) {
|
|
5247
|
+
node.splice(arrayKey, 1);
|
|
5248
|
+
editOffset++;
|
|
5249
|
+
} else node[arrayKey] = editValue;
|
|
5250
|
+
}
|
|
5251
|
+
} else {
|
|
5252
|
+
node = { ...node };
|
|
5253
|
+
for (const [editKey, editValue] of edits) node[editKey] = editValue;
|
|
5243
5254
|
}
|
|
5244
|
-
} else {
|
|
5245
|
-
node = { ...node };
|
|
5246
|
-
for (const [editKey, editValue] of edits) node[editKey] = editValue;
|
|
5247
5255
|
}
|
|
5248
5256
|
index = stack.index;
|
|
5249
5257
|
keys = stack.keys;
|
|
@@ -5270,10 +5278,12 @@ var require_visitor = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5270
5278
|
}
|
|
5271
5279
|
} else if (result !== void 0) {
|
|
5272
5280
|
edits.push([key, result]);
|
|
5273
|
-
if (!isLeaving)
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5281
|
+
if (!isLeaving) {
|
|
5282
|
+
if ((0, _ast.isNode)(result)) node = result;
|
|
5283
|
+
else {
|
|
5284
|
+
path.pop();
|
|
5285
|
+
continue;
|
|
5286
|
+
}
|
|
5277
5287
|
}
|
|
5278
5288
|
}
|
|
5279
5289
|
}
|
|
@@ -5412,9 +5422,7 @@ var require_instanceOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5412
5422
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5413
5423
|
exports.instanceOf = void 0;
|
|
5414
5424
|
var _inspect = require_inspect();
|
|
5415
|
-
exports.instanceOf = globalThis.process
|
|
5416
|
-
return value instanceof constructor;
|
|
5417
|
-
} : function instanceOf(value, constructor) {
|
|
5425
|
+
exports.instanceOf = (globalThis.process, function instanceOf(value, constructor) {
|
|
5418
5426
|
if (value instanceof constructor) return true;
|
|
5419
5427
|
if (typeof value === "object" && value !== null) {
|
|
5420
5428
|
var _value$constructor;
|
|
@@ -5436,7 +5444,7 @@ spurious results.`);
|
|
|
5436
5444
|
}
|
|
5437
5445
|
}
|
|
5438
5446
|
return false;
|
|
5439
|
-
};
|
|
5447
|
+
});
|
|
5440
5448
|
}));
|
|
5441
5449
|
//#endregion
|
|
5442
5450
|
//#region ../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/jsutils/keyMap.js
|
|
@@ -8883,7 +8891,6 @@ var require_TypeInfo = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8883
8891
|
this._enumValue = enumValue;
|
|
8884
8892
|
break;
|
|
8885
8893
|
}
|
|
8886
|
-
default:
|
|
8887
8894
|
}
|
|
8888
8895
|
}
|
|
8889
8896
|
leave(node) {
|
|
@@ -8916,10 +8923,7 @@ var require_TypeInfo = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8916
8923
|
this._defaultValueStack.pop();
|
|
8917
8924
|
this._inputTypeStack.pop();
|
|
8918
8925
|
break;
|
|
8919
|
-
case _kinds.Kind.ENUM:
|
|
8920
|
-
this._enumValue = null;
|
|
8921
|
-
break;
|
|
8922
|
-
default:
|
|
8926
|
+
case _kinds.Kind.ENUM: this._enumValue = null;
|
|
8923
8927
|
}
|
|
8924
8928
|
}
|
|
8925
8929
|
};
|
|
@@ -9288,6 +9292,7 @@ var require_KnownDirectivesRule = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9288
9292
|
"kind" in parentNode || (0, _invariant.invariant)(false);
|
|
9289
9293
|
return parentNode.kind === _kinds.Kind.INPUT_OBJECT_TYPE_DEFINITION ? _directiveLocation.DirectiveLocation.INPUT_FIELD_DEFINITION : _directiveLocation.DirectiveLocation.ARGUMENT_DEFINITION;
|
|
9290
9294
|
}
|
|
9295
|
+
/* c8 ignore next */
|
|
9291
9296
|
default: (0, _invariant.invariant)(false, "Unexpected kind: " + (0, _inspect.inspect)(appliedTo.kind));
|
|
9292
9297
|
}
|
|
9293
9298
|
}
|
|
@@ -9931,7 +9936,7 @@ var require_OverlappingFieldsCanBeMergedRule = /* @__PURE__ */ __commonJSMin(((e
|
|
|
9931
9936
|
}
|
|
9932
9937
|
add(a, b, weaklyPresent) {
|
|
9933
9938
|
const map = this._data.get(a);
|
|
9934
|
-
if (map === void 0) this._data.set(a, new Map([[b, weaklyPresent]]));
|
|
9939
|
+
if (map === void 0) this._data.set(a, /* @__PURE__ */ new Map([[b, weaklyPresent]]));
|
|
9935
9940
|
else map.set(b, weaklyPresent);
|
|
9936
9941
|
}
|
|
9937
9942
|
};
|
|
@@ -10078,6 +10083,7 @@ var require_PossibleTypeExtensionsRule = /* @__PURE__ */ __commonJSMin(((exports
|
|
|
10078
10083
|
case _kinds.Kind.UNION_TYPE_EXTENSION: return "union";
|
|
10079
10084
|
case _kinds.Kind.ENUM_TYPE_EXTENSION: return "enum";
|
|
10080
10085
|
case _kinds.Kind.INPUT_OBJECT_TYPE_EXTENSION: return "input object";
|
|
10086
|
+
/* c8 ignore next */
|
|
10081
10087
|
default: (0, _invariant.invariant)(false, "Unexpected kind: " + (0, _inspect.inspect)(kind));
|
|
10082
10088
|
}
|
|
10083
10089
|
}
|
|
@@ -10270,7 +10276,8 @@ var require_coerceInputValue = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
10270
10276
|
if ((0, _definition.isListType)(type)) {
|
|
10271
10277
|
const itemType = type.ofType;
|
|
10272
10278
|
if ((0, _isIterableObject.isIterableObject)(inputValue)) return Array.from(inputValue, (itemValue, index) => {
|
|
10273
|
-
|
|
10279
|
+
const itemPath = (0, _Path.addPath)(path, index, void 0);
|
|
10280
|
+
return coerceInputValueImpl(itemValue, itemType, onError, itemPath);
|
|
10274
10281
|
});
|
|
10275
10282
|
return [coerceInputValueImpl(inputValue, itemType, onError, path)];
|
|
10276
10283
|
}
|
|
@@ -10850,8 +10857,10 @@ var require_UniqueDirectivesPerLocationRule = /* @__PURE__ */ __commonJSMin(((ex
|
|
|
10850
10857
|
} else seenDirectives = Object.create(null);
|
|
10851
10858
|
for (const directive of node.directives) {
|
|
10852
10859
|
const directiveName = directive.name.value;
|
|
10853
|
-
if (uniqueDirectiveMap[directiveName])
|
|
10854
|
-
|
|
10860
|
+
if (uniqueDirectiveMap[directiveName]) {
|
|
10861
|
+
if (seenDirectives[directiveName]) context.reportError(new _GraphQLError.GraphQLError(`The directive "@${directiveName}" can only be used once at this location.`, { nodes: [seenDirectives[directiveName], directive] }));
|
|
10862
|
+
else seenDirectives[directiveName] = directive;
|
|
10863
|
+
}
|
|
10855
10864
|
}
|
|
10856
10865
|
} };
|
|
10857
10866
|
}
|
|
@@ -11021,8 +11030,10 @@ var require_UniqueOperationNamesRule = /* @__PURE__ */ __commonJSMin(((exports)
|
|
|
11021
11030
|
return {
|
|
11022
11031
|
OperationDefinition(node) {
|
|
11023
11032
|
const operationName = node.name;
|
|
11024
|
-
if (operationName)
|
|
11025
|
-
|
|
11033
|
+
if (operationName) {
|
|
11034
|
+
if (knownOperationNames[operationName.value]) context.reportError(new _GraphQLError.GraphQLError(`There can be only one operation named "${operationName.value}".`, { nodes: [knownOperationNames[operationName.value], operationName] }));
|
|
11035
|
+
else knownOperationNames[operationName.value] = operationName;
|
|
11036
|
+
}
|
|
11026
11037
|
return false;
|
|
11027
11038
|
},
|
|
11028
11039
|
FragmentDefinition: () => false
|
|
@@ -11622,10 +11633,11 @@ function makeLinter(schema, customLinter) {
|
|
|
11622
11633
|
const newDocNode = safeParseSdl(doc);
|
|
11623
11634
|
if (newDocNode) try {
|
|
11624
11635
|
const currentTypeNames = new Set(newDocNode.definitions.filter((def) => "name" in def && def.name).map((def) => def.name.value));
|
|
11625
|
-
const
|
|
11636
|
+
const filteredSchema = filterSchema({
|
|
11626
11637
|
schema,
|
|
11627
11638
|
typeFilter: (typeName) => !currentTypeNames.has(typeName)
|
|
11628
|
-
})
|
|
11639
|
+
});
|
|
11640
|
+
const errors = (0, import_validate.validateSDL)(newDocNode, filteredSchema).map((error) => locatedError(error, newDocNode)).filter((error, index, self) => index === self.findIndex((e) => e.message === error.message && e.locations?.[0]?.line === error.locations?.[0]?.line && e.locations?.[0]?.column === error.locations?.[0]?.column));
|
|
11629
11641
|
diagnostics = diagnostics.concat(errors.map(convertGraphQLErrorToDiagnostic));
|
|
11630
11642
|
} catch (error) {
|
|
11631
11643
|
if (error instanceof GraphQLError) diagnostics.push(convertGraphQLErrorToDiagnostic(error));
|
|
@@ -11693,4 +11705,4 @@ const GraphqlEditor = memo(function GraphqlEditor(props) {
|
|
|
11693
11705
|
//#endregion
|
|
11694
11706
|
export { GraphqlEditor as default };
|
|
11695
11707
|
|
|
11696
|
-
//# sourceMappingURL=graphql-editor-
|
|
11708
|
+
//# sourceMappingURL=graphql-editor-Cgi5UOrF.js.map
|