@powerhousedao/powerhouse-vetra-packages 6.2.3-dev.5 → 6.2.3-dev.50

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 (117) hide show
  1. package/dist/browser/assets/{entry-5_Eh4a2Z.js → entry-E7pSm84X.js} +111 -7
  2. package/dist/browser/assets/{projection-entry-5PVbP10h.js → projection-entry-UE4mfnXc.js} +99 -21
  3. package/dist/browser/document-models/index.js +2 -1
  4. package/dist/browser/{documents-J_l59mSV.js → documents-CRzouuNR.js} +631 -752
  5. package/dist/browser/documents-CRzouuNR.js.map +1 -0
  6. package/dist/browser/editor-C7KBR_ar.js +4676 -0
  7. package/dist/browser/editor-C7KBR_ar.js.map +1 -0
  8. package/dist/browser/{editor-Cbl_EDjI.js → editor-CiR6XQBO.js} +4 -5
  9. package/dist/browser/{editor-Cbl_EDjI.js.map → editor-CiR6XQBO.js.map} +1 -1
  10. package/dist/browser/editors/document-model-editor/module.js +1 -1
  11. package/dist/browser/editors/document-model-editor/module.js.map +1 -1
  12. package/dist/browser/editors/generic-drive-explorer/index.js +81 -65
  13. package/dist/browser/editors/generic-drive-explorer/index.js.map +1 -1
  14. package/dist/browser/editors/generic-drive-explorer/module.js +1 -1
  15. package/dist/browser/editors/generic-drive-explorer/module.js.map +1 -1
  16. package/dist/browser/folder-view-DSgXN79D.js +4409 -0
  17. package/dist/browser/folder-view-DSgXN79D.js.map +1 -0
  18. package/dist/browser/{graphql-editor-BcL3-Zha.js → graphql-editor-Cgi5UOrF.js} +98 -88
  19. package/dist/browser/graphql-editor-Cgi5UOrF.js.map +1 -0
  20. package/dist/{node/hooks-D0DcS3MV.mjs → browser/hooks-eQxBX7g4.js} +824 -444
  21. package/dist/browser/{hooks-KKcNp2X0.js.map → hooks-eQxBX7g4.js.map} +1 -1
  22. package/dist/browser/index.js +137 -34
  23. package/dist/browser/index.js.map +1 -1
  24. package/dist/browser/{json-editor-DHXQRIN5.js → json-editor-DfRD-pfk.js} +8 -9
  25. package/dist/browser/{json-editor-DHXQRIN5.js.map → json-editor-DfRD-pfk.js.map} +1 -1
  26. package/dist/browser/{parser-CkF6Qt8V.js → parser-DtbeHA3H.js} +7 -6
  27. package/dist/browser/{parser-CkF6Qt8V.js.map → parser-DtbeHA3H.js.map} +1 -1
  28. package/dist/browser/rolldown-runtime-DC62tzP2.js +33 -0
  29. package/dist/browser/src-CrUksCLW-B2dkRdgq.js +5254 -0
  30. package/dist/browser/src-CrUksCLW-B2dkRdgq.js.map +1 -0
  31. package/dist/browser/state-schemas-B5Bk_l1s.js +696 -0
  32. package/dist/browser/state-schemas-B5Bk_l1s.js.map +1 -0
  33. package/dist/browser/tslib.es6-Cno80yFJ.js +32 -0
  34. package/dist/browser/tslib.es6-Cno80yFJ.js.map +1 -0
  35. package/dist/node/document-models/index.mjs +2 -1
  36. package/dist/node/documents-D70S9PZL.mjs +17 -0
  37. package/dist/node/documents-D70S9PZL.mjs.map +1 -0
  38. package/dist/node/editor-96sMeumV.mjs +4597 -0
  39. package/dist/node/editor-96sMeumV.mjs.map +1 -0
  40. package/dist/node/{editor-DG1q4Y55.mjs → editor-wqvKwcO5.mjs} +4 -5
  41. package/dist/node/{editor-DG1q4Y55.mjs.map → editor-wqvKwcO5.mjs.map} +1 -1
  42. package/dist/node/editors/document-model-editor/module.mjs +1 -1
  43. package/dist/node/editors/document-model-editor/module.mjs.map +1 -1
  44. package/dist/node/editors/generic-drive-explorer/index.mjs +26 -21
  45. package/dist/node/editors/generic-drive-explorer/index.mjs.map +1 -1
  46. package/dist/node/editors/generic-drive-explorer/module.mjs +1 -1
  47. package/dist/node/editors/generic-drive-explorer/module.mjs.map +1 -1
  48. package/dist/node/folder-view-ktfv2Cvw.mjs +4409 -0
  49. package/dist/node/folder-view-ktfv2Cvw.mjs.map +1 -0
  50. package/dist/node/{graphql-BfAoPeWM.mjs → graphql-Dp4j7rmx.mjs} +50 -49
  51. package/dist/node/{graphql-BfAoPeWM.mjs.map → graphql-Dp4j7rmx.mjs.map} +1 -1
  52. package/dist/node/{graphql-editor-B-XIb6az.mjs → graphql-editor-CBJXEY_C.mjs} +77 -63
  53. package/dist/node/graphql-editor-CBJXEY_C.mjs.map +1 -0
  54. package/dist/{browser/hooks-KKcNp2X0.js → node/hooks-C2b46djt.mjs} +824 -444
  55. package/dist/node/{hooks-D0DcS3MV.mjs.map → hooks-C2b46djt.mjs.map} +1 -1
  56. package/dist/node/index.mjs +158 -35
  57. package/dist/node/index.mjs.map +1 -1
  58. package/dist/node/{json-editor-DB0vi6tV.mjs → json-editor-DaqHARBD.mjs} +8 -9
  59. package/dist/node/{json-editor-DB0vi6tV.mjs.map → json-editor-DaqHARBD.mjs.map} +1 -1
  60. package/dist/node/{schema-context-DL8jhi_d.mjs → schema-context-CojjnSE6.mjs} +6 -5
  61. package/dist/node/schema-context-CojjnSE6.mjs.map +1 -0
  62. package/dist/node/src-CrUksCLW-TvF37aMo.mjs +5935 -0
  63. package/dist/node/src-CrUksCLW-TvF37aMo.mjs.map +1 -0
  64. package/dist/node/state-schemas-BHuo0GPl.mjs +698 -0
  65. package/dist/node/state-schemas-BHuo0GPl.mjs.map +1 -0
  66. package/dist/node/{main-B1tRsYOp.mjs → tslib.es6-VORZjfk3.mjs} +40 -202
  67. package/dist/node/tslib.es6-VORZjfk3.mjs.map +1 -0
  68. package/package.json +12 -11
  69. package/dist/browser/button-CuO8Gh3v.js +0 -696
  70. package/dist/browser/button-CuO8Gh3v.js.map +0 -1
  71. package/dist/browser/connect-BtHSAuSc.js +0 -14328
  72. package/dist/browser/connect-BtHSAuSc.js.map +0 -1
  73. package/dist/browser/dist-B4FWbuEM.js +0 -4148
  74. package/dist/browser/dist-B4FWbuEM.js.map +0 -1
  75. package/dist/browser/dist-BAJ5nRDl.js +0 -2711
  76. package/dist/browser/dist-BAJ5nRDl.js.map +0 -1
  77. package/dist/browser/dist-D69hfRZN.js +0 -4641
  78. package/dist/browser/dist-D69hfRZN.js.map +0 -1
  79. package/dist/browser/document-drive-BEXJ-rHp.js +0 -8277
  80. package/dist/browser/document-drive-BEXJ-rHp.js.map +0 -1
  81. package/dist/browser/documents-J_l59mSV.js.map +0 -1
  82. package/dist/browser/editor-mNThkZOv.js +0 -1809
  83. package/dist/browser/editor-mNThkZOv.js.map +0 -1
  84. package/dist/browser/folder-view-D8AkN1Oj.js +0 -232
  85. package/dist/browser/folder-view-D8AkN1Oj.js.map +0 -1
  86. package/dist/browser/graphql-editor-BcL3-Zha.js.map +0 -1
  87. package/dist/browser/lib-ewnRj2dJ.js +0 -209
  88. package/dist/browser/lib-ewnRj2dJ.js.map +0 -1
  89. package/dist/browser/printer-CEYr4JOg.js +0 -604
  90. package/dist/browser/printer-CEYr4JOg.js.map +0 -1
  91. package/dist/browser/schema-context-ZyeclQwy.js +0 -69
  92. package/dist/browser/schema-context-ZyeclQwy.js.map +0 -1
  93. package/dist/browser/state-schemas-C4F8lReN.js +0 -298
  94. package/dist/browser/state-schemas-C4F8lReN.js.map +0 -1
  95. package/dist/node/button-Da7CxMn7.mjs +0 -678
  96. package/dist/node/button-Da7CxMn7.mjs.map +0 -1
  97. package/dist/node/connect-B6IQsY6u.mjs +0 -15022
  98. package/dist/node/connect-B6IQsY6u.mjs.map +0 -1
  99. package/dist/node/dist-CzYOpeXN.mjs +0 -2711
  100. package/dist/node/dist-CzYOpeXN.mjs.map +0 -1
  101. package/dist/node/dist-DT7jI9ol.mjs +0 -4148
  102. package/dist/node/dist-DT7jI9ol.mjs.map +0 -1
  103. package/dist/node/dist-hd-KLWy7.mjs +0 -4649
  104. package/dist/node/dist-hd-KLWy7.mjs.map +0 -1
  105. package/dist/node/document-drive-CkV9NvD7.mjs +0 -8294
  106. package/dist/node/document-drive-CkV9NvD7.mjs.map +0 -1
  107. package/dist/node/documents-DCf53bzO.mjs +0 -747
  108. package/dist/node/documents-DCf53bzO.mjs.map +0 -1
  109. package/dist/node/editor-C93fdI28.mjs +0 -1809
  110. package/dist/node/editor-C93fdI28.mjs.map +0 -1
  111. package/dist/node/folder-view-BGabHV7H.mjs +0 -232
  112. package/dist/node/folder-view-BGabHV7H.mjs.map +0 -1
  113. package/dist/node/graphql-editor-B-XIb6az.mjs.map +0 -1
  114. package/dist/node/main-B1tRsYOp.mjs.map +0 -1
  115. package/dist/node/schema-context-DL8jhi_d.mjs.map +0 -1
  116. package/dist/node/state-schemas-BGsgtEG1.mjs +0 -299
  117. package/dist/node/state-schemas-BGsgtEG1.mjs.map +0 -1
@@ -1,13 +1,11 @@
1
- import { D as __commonJSMin } from "./dist-B4FWbuEM.js";
2
- import "./document-drive-BEXJ-rHp.js";
3
- import { c as Kind, l as DirectiveLocation, m as invariant$1, p as GraphQLError, r as inspect, t as parse } from "./parser-CkF6Qt8V.js";
4
- import { $ as getNamedType, A as validateSchema, B as GraphQLInt, C as NoUnusedFragmentsRule, D as KnownDirectivesRule, E as KnownFragmentNamesRule, F as GraphQLDirective, G as GraphQLInputObjectType, H as isSpecifiedScalarType, I as isSpecifiedDirective, J as GraphQLNonNull, K as GraphQLInterfaceType, L as GraphQLBoolean, M as SchemaMetaFieldDef, N as TypeMetaFieldDef, O as FragmentsOnCompositeTypesRule, P as TypeNameMetaFieldDef, Q as assertAbstractType, R as GraphQLFloat, S as PossibleTypeExtensionsRule, T as KnownTypeNamesRule, U as doTypesOverlap, V as GraphQLString, W as GraphQLEnumType, X as GraphQLScalarType, Y as GraphQLObjectType, Z as GraphQLUnionType, _ as UniqueDirectivesPerLocationRule, at as isInputType, c as buildSchema, ct as isListType, d as UniqueVariableNamesRule, dt as isObjectType, et as getNullableType, f as UniqueTypeNamesRule, ft as isOutputType, g as UniqueEnumValueNamesRule, h as UniqueFieldDefinitionNamesRule, it as isInputObjectType, j as GraphQLSchema, k as ExecutableDefinitionsRule, l as validate, lt as isNamedType, m as UniqueInputFieldNamesRule, mt as isUnionType, nt as isCompositeType, ot as isInterfaceType, p as UniqueOperationTypesRule, pt as isScalarType, q as GraphQLList, rt as isEnumType, st as isLeafType, tt as isAbstractType, u as specifiedRules, ut as isNonNullType, v as UniqueDirectiveNamesRule, w as LoneSchemaDefinitionRule, x as ProvidedRequiredArgumentsRule, y as UniqueArgumentNamesRule, z as GraphQLID } from "./documents-J_l59mSV.js";
5
- import { i as visit, n as BREAK, t as print } from "./printer-CEYr4JOg.js";
6
- import { y as useTheme } from "./dist-D69hfRZN.js";
7
- 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-KKcNp2X0.js";
8
- import { n as safeParseSdl, r as useSchemaContext } from "./schema-context-ZyeclQwy.js";
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";
9
6
  import { memo, useEffect, useRef } from "react";
10
7
  import { jsx } from "react/jsx-runtime";
8
+ import { useTheme } from "@powerhousedao/reactor-browser";
11
9
  //#region ../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/jsutils/toError.mjs
12
10
  /**
13
11
  * Sometimes a non-error is thrown, wrap it as an Error instance to ensure a consistent Error interface.
@@ -157,7 +155,10 @@ const getInsertText = (prefix, type, fallback) => {
157
155
  return fallback !== null && fallback !== void 0 ? fallback : prefix;
158
156
  };
159
157
  const getInputInsertText = (prefix, type, fallback) => {
160
- if (isListType(type)) return prefix + `[${getInsertText("", getNamedType(type.ofType), "$1")}]`;
158
+ if (isListType(type)) {
159
+ const baseType = getNamedType(type.ofType);
160
+ return prefix + `[${getInsertText("", baseType, "$1")}]`;
161
+ }
161
162
  return getInsertText(prefix, type, fallback);
162
163
  };
163
164
  const getFieldInsertText = (field) => {
@@ -2622,11 +2623,13 @@ function advanceRule(state, successful) {
2622
2623
  state.step++;
2623
2624
  while (state.rule && !(Array.isArray(state.rule) && state.step < state.rule.length)) {
2624
2625
  popRule(state);
2625
- if (state.rule) if (isList(state)) {
2626
- if ((_a = state.rule) === null || _a === void 0 ? void 0 : _a[state.step].separator) state.needsSeparator = !state.needsSeparator;
2627
- } else {
2628
- state.needsSeparator = false;
2629
- state.step++;
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
+ }
2630
2633
  }
2631
2634
  }
2632
2635
  }
@@ -2777,9 +2780,7 @@ function getDefinitionState(tokenState) {
2777
2780
  case "ShortQuery":
2778
2781
  case "Mutation":
2779
2782
  case "Subscription":
2780
- case "FragmentDefinition":
2781
- definitionState = state;
2782
- break;
2783
+ case "FragmentDefinition": definitionState = state;
2783
2784
  }
2784
2785
  });
2785
2786
  return definitionState;
@@ -2869,9 +2870,7 @@ function getTypeInfo(schema, tokenState) {
2869
2870
  argDefs = field.args;
2870
2871
  break;
2871
2872
  }
2872
- default:
2873
- argDefs = null;
2874
- break;
2873
+ default: argDefs = null;
2875
2874
  }
2876
2875
  else argDefs = null;
2877
2876
  break;
@@ -2906,9 +2905,7 @@ function getTypeInfo(schema, tokenState) {
2906
2905
  fieldDef = objectField;
2907
2906
  type = fieldDef ? fieldDef.type : null;
2908
2907
  break;
2909
- case RuleKinds.NAMED_TYPE:
2910
- if (state.name) type = schema.getType(state.name);
2911
- break;
2908
+ case RuleKinds.NAMED_TYPE: if (state.name) type = schema.getType(state.name);
2912
2909
  }
2913
2910
  });
2914
2911
  return {
@@ -3285,14 +3282,15 @@ function getSuggestionsForImplements(token, tokenState, schema, documentText, ty
3285
3282
  }
3286
3283
  function getSuggestionsForFragmentTypeConditions(token, typeInfo, schema, _kind) {
3287
3284
  let possibleTypes;
3288
- if (typeInfo.parentType) if (isAbstractType(typeInfo.parentType)) {
3289
- const abstractType = assertAbstractType(typeInfo.parentType);
3290
- const possibleObjTypes = schema.getPossibleTypes(abstractType);
3291
- const possibleIfaceMap = Object.create(null);
3292
- for (const type of possibleObjTypes) for (const iface of type.getInterfaces()) possibleIfaceMap[iface.name] = iface;
3293
- possibleTypes = possibleObjTypes.concat(objectValues(possibleIfaceMap));
3294
- } else possibleTypes = [typeInfo.parentType];
3295
- else possibleTypes = objectValues(schema.getTypeMap()).filter((type) => isCompositeType(type) && !type.name.startsWith("__"));
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("__"));
3296
3294
  return hintList(token, possibleTypes.map((type) => {
3297
3295
  const namedType = getNamedType(type);
3298
3296
  return {
@@ -3633,16 +3631,16 @@ var Position = class {
3633
3631
  };
3634
3632
  const isMac = () => navigator.userAgent.includes("Mac");
3635
3633
  const isMetaKeyPressed = (e) => isMac() ? e.metaKey : e.ctrlKey;
3636
- const schemaEffect = /* @__PURE__ */ StateEffect.define();
3637
- const schemaStateField = /* @__PURE__ */ StateField.define({
3634
+ const schemaEffect = /*@__PURE__*/ StateEffect.define();
3635
+ const schemaStateField = /*@__PURE__*/ StateField.define({
3638
3636
  create() {},
3639
3637
  update(schema, tr) {
3640
3638
  for (const e of tr.effects) if (e.is(schemaEffect)) return e.value;
3641
3639
  return schema;
3642
3640
  }
3643
3641
  });
3644
- const optionsEffect = /* @__PURE__ */ StateEffect.define();
3645
- const optionsStateField = /* @__PURE__ */ StateField.define({
3642
+ const optionsEffect = /*@__PURE__*/ StateEffect.define();
3643
+ const optionsStateField = /*@__PURE__*/ StateField.define({
3646
3644
  create() {},
3647
3645
  update(opts, tr) {
3648
3646
  for (const e of tr.effects) if (e.is(optionsEffect)) return e.value;
@@ -3676,7 +3674,7 @@ const spec_name = {
3676
3674
  repeatable: 176,
3677
3675
  extend: 192
3678
3676
  };
3679
- const parser = /* @__PURE__ */ LRParser.deserialize({
3677
+ const parser = /*@__PURE__*/ LRParser.deserialize({
3680
3678
  version: 14,
3681
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'#D`'#D`OOQO'#Di'#DiOOQO'#Ds'#DsOOQO'#Dv'#DvOOQO'#Dz'#DzOOQO'#EP'#EPOOQO'#ET'#ETOOQO'#E_'#E_O#kQPO'#CaO$VQPO'#DQO$[QPO'#DPO$sQPO'#DPO$xQPO'#DSO%WQPO'#DOOOQO'#En'#EnO%fQPO,59iOOQO'#Ca'#CaO%qQPO'#CxOOQO'#El'#ElO'hQPO'#CwO)[QPO'#CdOOQO,58y,58yO)aQPO,58yO)fQPO,58yO)nQPO,58yOOQO'#DT'#DTO)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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~",
@@ -3718,9 +3716,9 @@ const parser = /* @__PURE__ */ LRParser.deserialize({
3718
3716
  const nodesWithBraces = "RootTypeDefinition InputFieldsDefinition EnumValuesDefinition FieldsDefinition SelectionSet { }";
3719
3717
  const keywords = "scalar type interface union enum input implements fragment extend schema directive on repeatable";
3720
3718
  const punctuations = "( ) { } : [ ]";
3721
- const graphqlLanguage = /* @__PURE__ */ LRLanguage.define({
3722
- parser: /* @__PURE__ */ parser.configure({ props: [
3723
- /* @__PURE__ */ styleTags({
3719
+ const graphqlLanguage = /*@__PURE__*/ LRLanguage.define({
3720
+ parser: /*@__PURE__*/ parser.configure({ props: [
3721
+ /*@__PURE__*/ styleTags({
3724
3722
  Variable: tags.variableName,
3725
3723
  BooleanValue: tags.bool,
3726
3724
  Description: tags.string,
@@ -3728,7 +3726,7 @@ const graphqlLanguage = /* @__PURE__ */ LRLanguage.define({
3728
3726
  Comment: tags.lineComment,
3729
3727
  IntValue: tags.integer,
3730
3728
  FloatValue: tags.float,
3731
- EnumValue: /* @__PURE__ */ tags.special(tags.name),
3729
+ EnumValue: /*@__PURE__*/ tags.special(tags.name),
3732
3730
  NullValue: tags.null,
3733
3731
  DirectiveName: tags.modifier,
3734
3732
  [keywords]: tags.keyword,
@@ -3742,11 +3740,11 @@ const graphqlLanguage = /* @__PURE__ */ LRLanguage.define({
3742
3740
  ",": tags.separator,
3743
3741
  [punctuations]: tags.punctuation
3744
3742
  }),
3745
- /* @__PURE__ */ indentNodeProp.add({ [nodesWithBraces]: /* @__PURE__ */ delimitedIndent({
3743
+ /*@__PURE__*/ indentNodeProp.add({ [nodesWithBraces]: /*@__PURE__*/ delimitedIndent({
3746
3744
  closing: "}",
3747
3745
  align: true
3748
3746
  }) }),
3749
- /* @__PURE__ */ foldNodeProp.add({ [nodesWithBraces]: foldInside })
3747
+ /*@__PURE__*/ foldNodeProp.add({ [nodesWithBraces]: foldInside })
3750
3748
  ] }),
3751
3749
  languageData: {
3752
3750
  commentTokens: { line: "#" },
@@ -3757,7 +3755,7 @@ function graphqlLanguageSupport() {
3757
3755
  return new LanguageSupport(graphqlLanguage);
3758
3756
  }
3759
3757
  const AUTOCOMPLETE_CHARS = /^[a-zA-Z0-9_@(]$/;
3760
- const completion = /* @__PURE__ */ graphqlLanguage.data.of({ autocomplete(ctx) {
3758
+ const completion = /*@__PURE__*/ graphqlLanguage.data.of({ autocomplete(ctx) {
3761
3759
  const schema = getSchema(ctx.state);
3762
3760
  const opts = getOpts(ctx.state);
3763
3761
  if (!schema) return null;
@@ -3785,7 +3783,7 @@ const completion = /* @__PURE__ */ graphqlLanguage.data.of({ autocomplete(ctx) {
3785
3783
  })
3786
3784
  };
3787
3785
  } });
3788
- const jump = /* @__PURE__ */ EditorView.domEventHandlers({ click(evt, view) {
3786
+ const jump = /*@__PURE__*/ EditorView.domEventHandlers({ click(evt, view) {
3789
3787
  var _a, _b, _c;
3790
3788
  const schema = getSchema(view.state);
3791
3789
  if (!schema) return;
@@ -3800,7 +3798,7 @@ const SEVERITY = [
3800
3798
  "warning",
3801
3799
  "info"
3802
3800
  ];
3803
- const lint = /* @__PURE__ */ linter((view) => {
3801
+ const lint = /*@__PURE__*/ linter((view) => {
3804
3802
  const schema = getSchema(view.state);
3805
3803
  const options = getOpts(view.state);
3806
3804
  if (!schema) return [];
@@ -3947,11 +3945,12 @@ function rewireTypes(originalTypeMap, directives) {
3947
3945
  function rewireNamedType(type) {
3948
3946
  if (isObjectType(type)) {
3949
3947
  const config = type.toConfig();
3950
- return new GraphQLObjectType({
3948
+ const newConfig = {
3951
3949
  ...config,
3952
3950
  fields: () => rewireFields(config.fields),
3953
3951
  interfaces: () => rewireNamedTypes(config.interfaces)
3954
- });
3952
+ };
3953
+ return new GraphQLObjectType(newConfig);
3955
3954
  } else if (isInterfaceType(type)) {
3956
3955
  const config = type.toConfig();
3957
3956
  const newConfig = {
@@ -3962,20 +3961,25 @@ function rewireTypes(originalTypeMap, directives) {
3962
3961
  return new GraphQLInterfaceType(newConfig);
3963
3962
  } else if (isUnionType(type)) {
3964
3963
  const config = type.toConfig();
3965
- return new GraphQLUnionType({
3964
+ const newConfig = {
3966
3965
  ...config,
3967
3966
  types: () => rewireNamedTypes(config.types)
3968
- });
3967
+ };
3968
+ return new GraphQLUnionType(newConfig);
3969
3969
  } else if (isInputObjectType(type)) {
3970
3970
  const config = type.toConfig();
3971
- return new GraphQLInputObjectType({
3971
+ const newConfig = {
3972
3972
  ...config,
3973
3973
  fields: () => rewireInputFields(config.fields)
3974
- });
3975
- } else if (isEnumType(type)) return new GraphQLEnumType(type.toConfig());
3976
- else if (isScalarType(type)) {
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)) {
3977
3980
  if (isSpecifiedScalarType(type)) return type;
3978
- return new GraphQLScalarType(type.toConfig());
3981
+ const scalarConfig = type.toConfig();
3982
+ return new GraphQLScalarType(scalarConfig);
3979
3983
  }
3980
3984
  throw new Error(`Unexpected schema type: ${type}`);
3981
3985
  }
@@ -5233,19 +5237,21 @@ var require_visitor = /* @__PURE__ */ __commonJSMin(((exports) => {
5233
5237
  key = ancestors.length === 0 ? void 0 : path[path.length - 1];
5234
5238
  node = parent;
5235
5239
  parent = ancestors.pop();
5236
- if (isEdited) if (inArray) {
5237
- node = node.slice();
5238
- let editOffset = 0;
5239
- for (const [editKey, editValue] of edits) {
5240
- const arrayKey = editKey - editOffset;
5241
- if (editValue === null) {
5242
- node.splice(arrayKey, 1);
5243
- editOffset++;
5244
- } else node[arrayKey] = editValue;
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;
5245
5254
  }
5246
- } else {
5247
- node = { ...node };
5248
- for (const [editKey, editValue] of edits) node[editKey] = editValue;
5249
5255
  }
5250
5256
  index = stack.index;
5251
5257
  keys = stack.keys;
@@ -5272,10 +5278,12 @@ var require_visitor = /* @__PURE__ */ __commonJSMin(((exports) => {
5272
5278
  }
5273
5279
  } else if (result !== void 0) {
5274
5280
  edits.push([key, result]);
5275
- if (!isLeaving) if ((0, _ast.isNode)(result)) node = result;
5276
- else {
5277
- path.pop();
5278
- continue;
5281
+ if (!isLeaving) {
5282
+ if ((0, _ast.isNode)(result)) node = result;
5283
+ else {
5284
+ path.pop();
5285
+ continue;
5286
+ }
5279
5287
  }
5280
5288
  }
5281
5289
  }
@@ -5414,9 +5422,7 @@ var require_instanceOf = /* @__PURE__ */ __commonJSMin(((exports) => {
5414
5422
  Object.defineProperty(exports, "__esModule", { value: true });
5415
5423
  exports.instanceOf = void 0;
5416
5424
  var _inspect = require_inspect();
5417
- exports.instanceOf = globalThis.process && true ? function instanceOf(value, constructor) {
5418
- return value instanceof constructor;
5419
- } : function instanceOf(value, constructor) {
5425
+ exports.instanceOf = (globalThis.process, function instanceOf(value, constructor) {
5420
5426
  if (value instanceof constructor) return true;
5421
5427
  if (typeof value === "object" && value !== null) {
5422
5428
  var _value$constructor;
@@ -5438,7 +5444,7 @@ spurious results.`);
5438
5444
  }
5439
5445
  }
5440
5446
  return false;
5441
- };
5447
+ });
5442
5448
  }));
5443
5449
  //#endregion
5444
5450
  //#region ../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/jsutils/keyMap.js
@@ -8885,7 +8891,6 @@ var require_TypeInfo = /* @__PURE__ */ __commonJSMin(((exports) => {
8885
8891
  this._enumValue = enumValue;
8886
8892
  break;
8887
8893
  }
8888
- default:
8889
8894
  }
8890
8895
  }
8891
8896
  leave(node) {
@@ -8918,10 +8923,7 @@ var require_TypeInfo = /* @__PURE__ */ __commonJSMin(((exports) => {
8918
8923
  this._defaultValueStack.pop();
8919
8924
  this._inputTypeStack.pop();
8920
8925
  break;
8921
- case _kinds.Kind.ENUM:
8922
- this._enumValue = null;
8923
- break;
8924
- default:
8926
+ case _kinds.Kind.ENUM: this._enumValue = null;
8925
8927
  }
8926
8928
  }
8927
8929
  };
@@ -9290,6 +9292,7 @@ var require_KnownDirectivesRule = /* @__PURE__ */ __commonJSMin(((exports) => {
9290
9292
  "kind" in parentNode || (0, _invariant.invariant)(false);
9291
9293
  return parentNode.kind === _kinds.Kind.INPUT_OBJECT_TYPE_DEFINITION ? _directiveLocation.DirectiveLocation.INPUT_FIELD_DEFINITION : _directiveLocation.DirectiveLocation.ARGUMENT_DEFINITION;
9292
9294
  }
9295
+ /* c8 ignore next */
9293
9296
  default: (0, _invariant.invariant)(false, "Unexpected kind: " + (0, _inspect.inspect)(appliedTo.kind));
9294
9297
  }
9295
9298
  }
@@ -9933,7 +9936,7 @@ var require_OverlappingFieldsCanBeMergedRule = /* @__PURE__ */ __commonJSMin(((e
9933
9936
  }
9934
9937
  add(a, b, weaklyPresent) {
9935
9938
  const map = this._data.get(a);
9936
- 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]]));
9937
9940
  else map.set(b, weaklyPresent);
9938
9941
  }
9939
9942
  };
@@ -10080,6 +10083,7 @@ var require_PossibleTypeExtensionsRule = /* @__PURE__ */ __commonJSMin(((exports
10080
10083
  case _kinds.Kind.UNION_TYPE_EXTENSION: return "union";
10081
10084
  case _kinds.Kind.ENUM_TYPE_EXTENSION: return "enum";
10082
10085
  case _kinds.Kind.INPUT_OBJECT_TYPE_EXTENSION: return "input object";
10086
+ /* c8 ignore next */
10083
10087
  default: (0, _invariant.invariant)(false, "Unexpected kind: " + (0, _inspect.inspect)(kind));
10084
10088
  }
10085
10089
  }
@@ -10272,7 +10276,8 @@ var require_coerceInputValue = /* @__PURE__ */ __commonJSMin(((exports) => {
10272
10276
  if ((0, _definition.isListType)(type)) {
10273
10277
  const itemType = type.ofType;
10274
10278
  if ((0, _isIterableObject.isIterableObject)(inputValue)) return Array.from(inputValue, (itemValue, index) => {
10275
- return coerceInputValueImpl(itemValue, itemType, onError, (0, _Path.addPath)(path, index, void 0));
10279
+ const itemPath = (0, _Path.addPath)(path, index, void 0);
10280
+ return coerceInputValueImpl(itemValue, itemType, onError, itemPath);
10276
10281
  });
10277
10282
  return [coerceInputValueImpl(inputValue, itemType, onError, path)];
10278
10283
  }
@@ -10852,8 +10857,10 @@ var require_UniqueDirectivesPerLocationRule = /* @__PURE__ */ __commonJSMin(((ex
10852
10857
  } else seenDirectives = Object.create(null);
10853
10858
  for (const directive of node.directives) {
10854
10859
  const directiveName = directive.name.value;
10855
- if (uniqueDirectiveMap[directiveName]) if (seenDirectives[directiveName]) context.reportError(new _GraphQLError.GraphQLError(`The directive "@${directiveName}" can only be used once at this location.`, { nodes: [seenDirectives[directiveName], directive] }));
10856
- else seenDirectives[directiveName] = directive;
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
+ }
10857
10864
  }
10858
10865
  } };
10859
10866
  }
@@ -11023,8 +11030,10 @@ var require_UniqueOperationNamesRule = /* @__PURE__ */ __commonJSMin(((exports)
11023
11030
  return {
11024
11031
  OperationDefinition(node) {
11025
11032
  const operationName = node.name;
11026
- if (operationName) if (knownOperationNames[operationName.value]) context.reportError(new _GraphQLError.GraphQLError(`There can be only one operation named "${operationName.value}".`, { nodes: [knownOperationNames[operationName.value], operationName] }));
11027
- else knownOperationNames[operationName.value] = operationName;
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
+ }
11028
11037
  return false;
11029
11038
  },
11030
11039
  FragmentDefinition: () => false
@@ -11624,10 +11633,11 @@ function makeLinter(schema, customLinter) {
11624
11633
  const newDocNode = safeParseSdl(doc);
11625
11634
  if (newDocNode) try {
11626
11635
  const currentTypeNames = new Set(newDocNode.definitions.filter((def) => "name" in def && def.name).map((def) => def.name.value));
11627
- const errors = (0, import_validate.validateSDL)(newDocNode, filterSchema({
11636
+ const filteredSchema = filterSchema({
11628
11637
  schema,
11629
11638
  typeFilter: (typeName) => !currentTypeNames.has(typeName)
11630
- })).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));
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));
11631
11641
  diagnostics = diagnostics.concat(errors.map(convertGraphQLErrorToDiagnostic));
11632
11642
  } catch (error) {
11633
11643
  if (error instanceof GraphQLError) diagnostics.push(convertGraphQLErrorToDiagnostic(error));
@@ -11695,4 +11705,4 @@ const GraphqlEditor = memo(function GraphqlEditor(props) {
11695
11705
  //#endregion
11696
11706
  export { GraphqlEditor as default };
11697
11707
 
11698
- //# sourceMappingURL=graphql-editor-BcL3-Zha.js.map
11708
+ //# sourceMappingURL=graphql-editor-Cgi5UOrF.js.map