stepzen-graphiql 2.1.1 → 2.1.3-experimental.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.
Files changed (112) hide show
  1. package/README.md +5 -0
  2. package/dist/babel-D4jPkB8I.js +15 -0
  3. package/dist/babel-JpECBl9w.mjs +7255 -0
  4. package/dist/components/ExplorerPage/ExplorerPage.d.ts +1 -1
  5. package/dist/components/ExplorerPage/GraphiQLInterface.d.ts +15 -6
  6. package/dist/components/ExplorerPage/Snippets.d.ts +0 -2
  7. package/dist/components/ExplorerPage/clearResponse.d.ts +1 -1
  8. package/dist/components/ExplorerPage/clearTooltip.d.ts +1 -1
  9. package/dist/estree-C0Hb5Q7V.mjs +4528 -0
  10. package/dist/estree-U7n5DgHH.js +44 -0
  11. package/dist/graphql-BTSjQZiC.js +28 -0
  12. package/dist/graphql-CBsByfto.js +28 -0
  13. package/dist/graphql-DDJE6tIl.mjs +157 -0
  14. package/dist/graphql-DrfUc9jr.mjs +1256 -0
  15. package/dist/graphql-DrfV554J.js +6 -0
  16. package/dist/graphql-QzAQRYwl.mjs +1221 -0
  17. package/dist/graphqlMode-DN1ezrYh.js +1 -0
  18. package/dist/graphqlMode-vV8mnLBW.mjs +262 -0
  19. package/dist/index-CjC6wsAG.js +1 -0
  20. package/dist/index-RniHQi68.mjs +84805 -0
  21. package/dist/index-gvW0eRXD.js +687 -0
  22. package/dist/index-tHknWeFg.mjs +295 -0
  23. package/dist/index.cjs.js +1 -1
  24. package/dist/index.es.js +1 -1
  25. package/dist/jsonMode-BW-tqoSY.js +15 -0
  26. package/dist/jsonMode-Cj0cONq6.mjs +2002 -0
  27. package/dist/lib/graphiql-helpers.d.ts +2 -2
  28. package/dist/lite-Dpvo4tIS.js +1 -0
  29. package/dist/lite-hj39DC-n.mjs +135 -0
  30. package/dist/monaco-editor-C-pj7hSk.mjs +17 -0
  31. package/dist/monaco-editor-CBZFMjO6.js +1 -0
  32. package/dist/mouseTarget-C-J1vBNL.mjs +9353 -0
  33. package/dist/mouseTarget-S3azYj9_.js +9 -0
  34. package/dist/standalone-BhI0QomE.mjs +2458 -0
  35. package/dist/standalone-YWSF5RH2.js +29 -0
  36. package/dist/style.css +2 -2
  37. package/dist/style2.css +1 -0
  38. package/dist/toggleHighContrast-BK2acAo4.mjs +97805 -0
  39. package/dist/toggleHighContrast-MyO5wNxT.js +726 -0
  40. package/package.json +13 -15
  41. package/dist/Range-CPFFy5pj.mjs +0 -26
  42. package/dist/Range-CUfOrqgY.js +0 -1
  43. package/dist/SchemaReference-DNGK8Gti.mjs +0 -146
  44. package/dist/SchemaReference-PZPPI4-g.js +0 -1
  45. package/dist/brace-fold-DFRMFuzG.mjs +0 -122
  46. package/dist/brace-fold-QYFeMqi4.js +0 -1
  47. package/dist/closebrackets-5W81jIxx.js +0 -2
  48. package/dist/closebrackets-BJdKNrct.mjs +0 -165
  49. package/dist/codemirror-CK47QajN.mjs +0 -27
  50. package/dist/codemirror-DMBo1i5w.js +0 -24
  51. package/dist/codemirror-DgPcZxSc.mjs +0 -6121
  52. package/dist/codemirror-P5arRD-4.js +0 -1
  53. package/dist/comment-DZX4WUX2.js +0 -2
  54. package/dist/comment-DaZ9yeFw.mjs +0 -150
  55. package/dist/dialog-BWHlvTdM.js +0 -1
  56. package/dist/dialog-BvB91RPq.mjs +0 -26
  57. package/dist/dialog-Ci1bnuc2.mjs +0 -74
  58. package/dist/dialog-Dh2DOTOu.js +0 -1
  59. package/dist/foldgutter-CEPGXQXV.mjs +0 -238
  60. package/dist/foldgutter-lfb5vdue.js +0 -1
  61. package/dist/forEachState-DA54msa8.mjs +0 -11
  62. package/dist/forEachState-DY_pA9Bd.js +0 -1
  63. package/dist/hint-BImUj9vL.mjs +0 -24
  64. package/dist/hint-BYh7bCzG.js +0 -1
  65. package/dist/hint-CeNacopx.mjs +0 -123
  66. package/dist/hint-Cqs-Eq99.js +0 -1
  67. package/dist/index-BXTilrNr.mjs +0 -11
  68. package/dist/index-BqePscbb.js +0 -1
  69. package/dist/index-Of0v8HXf.js +0 -650
  70. package/dist/index-c_h-B3RW.mjs +0 -89430
  71. package/dist/info-DKGfeFeR.mjs +0 -99
  72. package/dist/info-addon-0QldEyjg.js +0 -1
  73. package/dist/info-addon-BQBJGmtN.mjs +0 -66
  74. package/dist/info-euxfaXDv.js +0 -1
  75. package/dist/javascript-BMRweX7z.js +0 -1
  76. package/dist/javascript-CEIhlHWT.mjs +0 -26
  77. package/dist/javascript-RO_jaPiE.mjs +0 -707
  78. package/dist/javascript-poxRzxcy.js +0 -1
  79. package/dist/jsx-BY-uBax7.js +0 -1
  80. package/dist/jsx-CZtHOvZL.mjs +0 -414
  81. package/dist/jump-Bn-VPPJQ.js +0 -1
  82. package/dist/jump-BrK8-pOa.mjs +0 -85
  83. package/dist/jump-to-line-V4vHDeSQ.mjs +0 -61
  84. package/dist/jump-to-line-Zpc7tkYy.js +0 -1
  85. package/dist/lint-BBDtrEaL.js +0 -1
  86. package/dist/lint-BEn4QK3F.mjs +0 -216
  87. package/dist/lint-BgrfL8k7.js +0 -1
  88. package/dist/lint-CiQwkfWf.mjs +0 -112
  89. package/dist/lint-DxY_4HRh.js +0 -6
  90. package/dist/lint-naD3ldhf.mjs +0 -272
  91. package/dist/matchbrackets-BB4g2Y6d.mjs +0 -87
  92. package/dist/matchbrackets-DPv_MB7c.js +0 -1
  93. package/dist/matchbrackets-DhN7zJoS.js +0 -1
  94. package/dist/matchbrackets-eKECiv9B.mjs +0 -26
  95. package/dist/mode-CgGO246j.js +0 -1
  96. package/dist/mode-CwlRWrPi.mjs +0 -73
  97. package/dist/mode-DyP1DXNa.js +0 -1
  98. package/dist/mode-indent-9VnFlqY-.mjs +0 -8
  99. package/dist/mode-indent-m3TP74Ia.js +0 -1
  100. package/dist/mode-kdpxZ9Hq.mjs +0 -25
  101. package/dist/mode-r_2HfIrS.js +0 -1
  102. package/dist/mode-xgi1fEzL.mjs +0 -64
  103. package/dist/search-BuLFIkN5.mjs +0 -268
  104. package/dist/search-CclAH4eV.js +0 -2
  105. package/dist/searchcursor-B9F32jvl.mjs +0 -26
  106. package/dist/searchcursor-CV26OekK.js +0 -1
  107. package/dist/searchcursor-DHtNMOPb.mjs +0 -239
  108. package/dist/searchcursor-eGwb3e2h.js +0 -7
  109. package/dist/show-hint-BfWoiGzQ.mjs +0 -357
  110. package/dist/show-hint-CQ_VjC6w.js +0 -1
  111. package/dist/sublime-C6Rg9CL1.mjs +0 -563
  112. package/dist/sublime-DFk-sDtd.js +0 -6
@@ -62,8 +62,8 @@ export declare class GqlGenerator {
62
62
  }
63
63
  export declare const generateSampleOperation: ({ schema, depthLimit, includeDeprecatedFields, }: {
64
64
  schema: GraphQLSchema;
65
- depthLimit?: number | undefined;
66
- includeDeprecatedFields?: boolean | undefined;
65
+ depthLimit?: number;
66
+ includeDeprecatedFields?: boolean;
67
67
  }) => {
68
68
  query: string;
69
69
  variables: Record<string, any>;
@@ -0,0 +1 @@
1
+ "use strict";var _=Object.defineProperty;var p=(i,t,e)=>t in i?_(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var n=(i,t,e)=>p(i,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./toggleHighContrast-MyO5wNxT.js");class c{constructor({languageId:t,schemas:e,modeConfiguration:o,formattingOptions:a,diagnosticSettings:r,completionSettings:g}){n(this,"_onDidChange",new u.Emitter);n(this,"_formattingOptions");n(this,"_modeConfiguration");n(this,"_diagnosticSettings");n(this,"_completionSettings");n(this,"_schemas",null);n(this,"_schemasById",Object.create(null));n(this,"_languageId");n(this,"_externalFragmentDefinitions");this._languageId=t,e&&this.setSchemaConfig(e),this._modeConfiguration=o,this._completionSettings=g,this._diagnosticSettings=r,this._formattingOptions=a}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get schemas(){return this._schemas}schemasById(){return this._schemasById}get formattingOptions(){return this._formattingOptions}get diagnosticSettings(){return this._diagnosticSettings}get completionSettings(){return{...this._completionSettings,fillLeafsOnComplete:this._completionSettings.__experimental__fillLeafsOnComplete??this._completionSettings.fillLeafsOnComplete}}get externalFragmentDefinitions(){return this._externalFragmentDefinitions}setSchemaConfig(t){this._schemas=t,this._schemasById=t.reduce((e,o)=>(e[o.uri]=o,e),Object.create(null)),this._onDidChange.fire(this)}setExternalFragmentDefinitions(t){this._externalFragmentDefinitions=t}setModeConfiguration(t){this._modeConfiguration=t,this._onDidChange.fire(this)}setFormattingOptions(t){this._formattingOptions=t,this._onDidChange.fire(this)}setDiagnosticSettings(t){this._diagnosticSettings=t,this._onDidChange.fire(this)}setCompletionSettings(t){this._completionSettings=t,this._onDidChange.fire(this)}}function C(i,t){if(!t)return new c({languageId:i,schemas:[],formattingOptions:l,modeConfiguration:m,diagnosticSettings:f,completionSettings:h});const{schemas:e,formattingOptions:o,modeConfiguration:a,diagnosticSettings:r,completionSettings:g}=t;return new c({languageId:i,schemas:e,formattingOptions:{...l,...o,prettierConfig:{...l.prettierConfig,...o==null?void 0:o.prettierConfig}},modeConfiguration:{...m,...a},diagnosticSettings:{...f,...r},completionSettings:{...h,...g}})}const m={documentFormattingEdits:!0,documentRangeFormattingEdits:!1,completionItems:!0,hovers:!0,documentSymbols:!1,tokens:!1,colors:!1,foldingRanges:!1,diagnostics:!0,selectionRanges:!1},l={prettierConfig:{tabWidth:2}},f={jsonDiagnosticSettings:{schemaValidation:"error"}},h={__experimental__fillLeafsOnComplete:!1},d="graphql";let s;function S(i){return s||(s=C(d,i),u.languages.graphql={api:s},D().then(t=>t.setupMode(s))),s}function D(){return Promise.resolve().then(()=>require("./graphqlMode-DN1ezrYh.js"))}exports.LANGUAGE_ID=d;exports.initializeMode=S;
@@ -0,0 +1,135 @@
1
+ var d = Object.defineProperty;
2
+ var u = (i, t, e) => t in i ? d(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
+ var n = (i, t, e) => u(i, typeof t != "symbol" ? t + "" : t, e);
4
+ import { E as _, l as p } from "./toggleHighContrast-BK2acAo4.mjs";
5
+ class m {
6
+ constructor({ languageId: t, schemas: e, modeConfiguration: o, formattingOptions: a, diagnosticSettings: g, completionSettings: r }) {
7
+ n(this, "_onDidChange", new _());
8
+ n(this, "_formattingOptions");
9
+ n(this, "_modeConfiguration");
10
+ n(this, "_diagnosticSettings");
11
+ n(this, "_completionSettings");
12
+ n(this, "_schemas", null);
13
+ n(this, "_schemasById", /* @__PURE__ */ Object.create(null));
14
+ n(this, "_languageId");
15
+ n(this, "_externalFragmentDefinitions");
16
+ this._languageId = t, e && this.setSchemaConfig(e), this._modeConfiguration = o, this._completionSettings = r, this._diagnosticSettings = g, this._formattingOptions = a;
17
+ }
18
+ get onDidChange() {
19
+ return this._onDidChange.event;
20
+ }
21
+ get languageId() {
22
+ return this._languageId;
23
+ }
24
+ get modeConfiguration() {
25
+ return this._modeConfiguration;
26
+ }
27
+ get schemas() {
28
+ return this._schemas;
29
+ }
30
+ schemasById() {
31
+ return this._schemasById;
32
+ }
33
+ get formattingOptions() {
34
+ return this._formattingOptions;
35
+ }
36
+ get diagnosticSettings() {
37
+ return this._diagnosticSettings;
38
+ }
39
+ get completionSettings() {
40
+ return {
41
+ ...this._completionSettings,
42
+ fillLeafsOnComplete: this._completionSettings.__experimental__fillLeafsOnComplete ?? this._completionSettings.fillLeafsOnComplete
43
+ };
44
+ }
45
+ get externalFragmentDefinitions() {
46
+ return this._externalFragmentDefinitions;
47
+ }
48
+ setSchemaConfig(t) {
49
+ this._schemas = t, this._schemasById = t.reduce((e, o) => (e[o.uri] = o, e), /* @__PURE__ */ Object.create(null)), this._onDidChange.fire(this);
50
+ }
51
+ setExternalFragmentDefinitions(t) {
52
+ this._externalFragmentDefinitions = t;
53
+ }
54
+ setModeConfiguration(t) {
55
+ this._modeConfiguration = t, this._onDidChange.fire(this);
56
+ }
57
+ setFormattingOptions(t) {
58
+ this._formattingOptions = t, this._onDidChange.fire(this);
59
+ }
60
+ setDiagnosticSettings(t) {
61
+ this._diagnosticSettings = t, this._onDidChange.fire(this);
62
+ }
63
+ setCompletionSettings(t) {
64
+ this._completionSettings = t, this._onDidChange.fire(this);
65
+ }
66
+ }
67
+ function C(i, t) {
68
+ if (!t)
69
+ return new m({
70
+ languageId: i,
71
+ schemas: [],
72
+ formattingOptions: l,
73
+ modeConfiguration: f,
74
+ diagnosticSettings: h,
75
+ completionSettings: c
76
+ });
77
+ const { schemas: e, formattingOptions: o, modeConfiguration: a, diagnosticSettings: g, completionSettings: r } = t;
78
+ return new m({
79
+ languageId: i,
80
+ schemas: e,
81
+ formattingOptions: {
82
+ ...l,
83
+ ...o,
84
+ prettierConfig: {
85
+ ...l.prettierConfig,
86
+ ...o == null ? void 0 : o.prettierConfig
87
+ }
88
+ },
89
+ modeConfiguration: {
90
+ ...f,
91
+ ...a
92
+ },
93
+ diagnosticSettings: {
94
+ ...h,
95
+ ...g
96
+ },
97
+ completionSettings: {
98
+ ...c,
99
+ ...r
100
+ }
101
+ });
102
+ }
103
+ const f = {
104
+ documentFormattingEdits: !0,
105
+ documentRangeFormattingEdits: !1,
106
+ completionItems: !0,
107
+ hovers: !0,
108
+ documentSymbols: !1,
109
+ tokens: !1,
110
+ colors: !1,
111
+ foldingRanges: !1,
112
+ diagnostics: !0,
113
+ selectionRanges: !1
114
+ }, l = {
115
+ prettierConfig: {
116
+ tabWidth: 2
117
+ }
118
+ }, h = {
119
+ jsonDiagnosticSettings: {
120
+ schemaValidation: "error"
121
+ }
122
+ }, c = {
123
+ __experimental__fillLeafsOnComplete: !1
124
+ }, S = "graphql";
125
+ let s;
126
+ function x(i) {
127
+ return s || (s = C(S, i), p.graphql = { api: s }, D().then((t) => t.setupMode(s))), s;
128
+ }
129
+ function D() {
130
+ return import("./graphqlMode-vV8mnLBW.mjs");
131
+ }
132
+ export {
133
+ S as LANGUAGE_ID,
134
+ x as initializeMode
135
+ };
@@ -0,0 +1,17 @@
1
+ import { C as s, E as o, K as r, a as i, M as n, b as t, P as c, R as l, S, c as g, T as k, U as M, e as T, l as d } from "./toggleHighContrast-BK2acAo4.mjs";
2
+ export {
3
+ s as CancellationTokenSource,
4
+ o as Emitter,
5
+ r as KeyCode,
6
+ i as KeyMod,
7
+ n as MarkerSeverity,
8
+ t as MarkerTag,
9
+ c as Position,
10
+ l as Range,
11
+ S as Selection,
12
+ g as SelectionDirection,
13
+ k as Token,
14
+ M as Uri,
15
+ T as editor,
16
+ d as languages
17
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./toggleHighContrast-MyO5wNxT.js");exports.CancellationTokenSource=e.CancellationTokenSource;exports.Emitter=e.Emitter;exports.KeyCode=e.KeyCode;exports.KeyMod=e.KeyMod;exports.MarkerSeverity=e.MarkerSeverity;exports.MarkerTag=e.MarkerTag;exports.Position=e.Position;exports.Range=e.Range;exports.Selection=e.Selection;exports.SelectionDirection=e.SelectionDirection;exports.Token=e.Token;exports.Uri=e.Uri;exports.editor=e.editor;exports.languages=e.languages;