@graphiql/plugin-doc-explorer 1.0.0-beta.1 → 1.0.0-beta.3

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 (47) hide show
  1. package/LICENSE +21 -0
  2. package/dist/components/argument.js +88 -92
  3. package/dist/components/argument.js.map +1 -1
  4. package/dist/components/arguments-list.js +226 -237
  5. package/dist/components/arguments-list.js.map +1 -1
  6. package/dist/components/breadcrumb.js +59 -52
  7. package/dist/components/breadcrumb.js.map +1 -1
  8. package/dist/components/default-value.js +63 -74
  9. package/dist/components/default-value.js.map +1 -1
  10. package/dist/components/deprecation-reason.js +27 -21
  11. package/dist/components/deprecation-reason.js.map +1 -1
  12. package/dist/components/directive.js +20 -23
  13. package/dist/components/directive.js.map +1 -1
  14. package/dist/components/doc-explorer.js +219 -259
  15. package/dist/components/doc-explorer.js.map +1 -1
  16. package/dist/components/field-card.js +103 -97
  17. package/dist/components/field-card.js.map +1 -1
  18. package/dist/components/field-documentation.js +118 -135
  19. package/dist/components/field-documentation.js.map +1 -1
  20. package/dist/components/field-link.js +37 -39
  21. package/dist/components/field-link.js.map +1 -1
  22. package/dist/components/fields-list.js +216 -226
  23. package/dist/components/fields-list.js.map +1 -1
  24. package/dist/components/schema-documentation.js +263 -224
  25. package/dist/components/schema-documentation.js.map +1 -1
  26. package/dist/components/search-row.js +287 -268
  27. package/dist/components/search-row.js.map +1 -1
  28. package/dist/components/search.js +342 -345
  29. package/dist/components/search.js.map +1 -1
  30. package/dist/components/section.js +59 -69
  31. package/dist/components/section.js.map +1 -1
  32. package/dist/components/type-card.js +104 -107
  33. package/dist/components/type-card.js.map +1 -1
  34. package/dist/components/type-documentation.js +340 -363
  35. package/dist/components/type-documentation.js.map +1 -1
  36. package/dist/components/type-link.js +38 -39
  37. package/dist/components/type-link.js.map +1 -1
  38. package/dist/components/utils.js +15 -20
  39. package/dist/components/utils.js.map +1 -1
  40. package/dist/context.js +205 -285
  41. package/dist/context.js.map +1 -1
  42. package/dist/index.js +7 -31
  43. package/dist/schema-reference.js +48 -54
  44. package/dist/schema-reference.js.map +1 -1
  45. package/dist/style.css +24 -28
  46. package/package.json +25 -19
  47. package/dist/index.js.map +0 -1
@@ -1,229 +1,268 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import { c } from "react-compiler-runtime";
3
- import { isObjectType, isInterfaceType, isInputObjectType, isEnumType, isScalarType, isUnionType } from "graphql";
4
- import { MethodPill } from "@graphiql/react";
5
1
  import { useDocExplorerActions } from "../context.js";
6
2
  /* empty css */
3
+ import { c } from "react-compiler-runtime";
4
+ import { MethodPill } from "@graphiql/react";
5
+ import { isEnumType, isInputObjectType, isInterfaceType, isObjectType, isScalarType, isUnionType } from "graphql";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
+ //#region src/components/schema-documentation.tsx
7
8
  function getTypeKindLabel(type) {
8
- if (isObjectType(type)) {
9
- return "TYPE";
10
- }
11
- if (isInterfaceType(type)) {
12
- return "INTERFACE";
13
- }
14
- if (isInputObjectType(type)) {
15
- return "INPUT";
16
- }
17
- if (isEnumType(type)) {
18
- return "ENUM";
19
- }
20
- if (isScalarType(type)) {
21
- return "SCALAR";
22
- }
23
- if (isUnionType(type)) {
24
- return "UNION";
25
- }
26
- return "TYPE";
9
+ if (isObjectType(type)) return "TYPE";
10
+ if (isInterfaceType(type)) return "INTERFACE";
11
+ if (isInputObjectType(type)) return "INPUT";
12
+ if (isEnumType(type)) return "ENUM";
13
+ if (isScalarType(type)) return "SCALAR";
14
+ if (isUnionType(type)) return "UNION";
15
+ return "TYPE";
27
16
  }
28
- const SchemaDocumentation = (t0) => {
29
- const $ = c(47);
30
- const {
31
- schema
32
- } = t0;
33
- const {
34
- push
35
- } = useDocExplorerActions();
36
- let t1;
37
- if ($[0] !== schema) {
38
- t1 = schema.getQueryType();
39
- $[0] = schema;
40
- $[1] = t1;
41
- } else {
42
- t1 = $[1];
43
- }
44
- const queryType = t1;
45
- let t2;
46
- if ($[2] !== schema) {
47
- t2 = schema.getMutationType();
48
- $[2] = schema;
49
- $[3] = t2;
50
- } else {
51
- t2 = $[3];
52
- }
53
- const mutationType = t2;
54
- let t3;
55
- if ($[4] !== schema) {
56
- t3 = schema.getSubscriptionType();
57
- $[4] = schema;
58
- $[5] = t3;
59
- } else {
60
- t3 = $[5];
61
- }
62
- const subscriptionType = t3;
63
- const t4 = queryType == null ? void 0 : queryType.name;
64
- const t5 = mutationType == null ? void 0 : mutationType.name;
65
- const t6 = subscriptionType == null ? void 0 : subscriptionType.name;
66
- let t7;
67
- if ($[6] !== t4 || $[7] !== t5 || $[8] !== t6) {
68
- t7 = new Set([t4, t5, t6].filter(Boolean));
69
- $[6] = t4;
70
- $[7] = t5;
71
- $[8] = t6;
72
- $[9] = t7;
73
- } else {
74
- t7 = $[9];
75
- }
76
- const rootTypeNames = t7;
77
- let t10;
78
- let t11;
79
- let t12;
80
- let t13;
81
- let t8;
82
- let t9;
83
- if ($[10] !== mutationType || $[11] !== push || $[12] !== queryType || $[13] !== rootTypeNames || $[14] !== schema || $[15] !== subscriptionType) {
84
- const allTypes = Object.values(schema.getTypeMap()).filter((type) => !type.name.startsWith("__") && !rootTypeNames.has(type.name));
85
- t10 = "graphiql-doc-explorer-schema-overview";
86
- if ($[22] === Symbol.for("react.memo_cache_sentinel")) {
87
- t11 = /* @__PURE__ */ jsx("div", { className: "graphiql-doc-explorer-schema-section-header", children: "ROOT TYPES" });
88
- $[22] = t11;
89
- } else {
90
- t11 = $[22];
91
- }
92
- let t142;
93
- if ($[23] !== push || $[24] !== queryType) {
94
- t142 = queryType && /* @__PURE__ */ jsxs("button", { type: "button", className: "graphiql-doc-explorer-schema-root-row", onClick: () => push({
95
- name: queryType.name,
96
- def: queryType
97
- }), children: [
98
- /* @__PURE__ */ jsx(MethodPill, { operation: "query", "aria-hidden": true }),
99
- /* @__PURE__ */ jsx("span", { className: "graphiql-doc-explorer-schema-root-label", children: "Query" }),
100
- /* @__PURE__ */ jsx("span", { className: "graphiql-doc-explorer-schema-root-colon", children: ":" }),
101
- /* @__PURE__ */ jsx("span", { className: "graphiql-doc-explorer-type-name", children: queryType.name })
102
- ] });
103
- $[23] = push;
104
- $[24] = queryType;
105
- $[25] = t142;
106
- } else {
107
- t142 = $[25];
108
- }
109
- let t152;
110
- if ($[26] !== mutationType || $[27] !== push) {
111
- t152 = mutationType && /* @__PURE__ */ jsxs("button", { type: "button", className: "graphiql-doc-explorer-schema-root-row", onClick: () => push({
112
- name: mutationType.name,
113
- def: mutationType
114
- }), children: [
115
- /* @__PURE__ */ jsx(MethodPill, { operation: "mutation", "aria-hidden": true }),
116
- /* @__PURE__ */ jsx("span", { className: "graphiql-doc-explorer-schema-root-label", children: "Mutation" }),
117
- /* @__PURE__ */ jsx("span", { className: "graphiql-doc-explorer-schema-root-colon", children: ":" }),
118
- /* @__PURE__ */ jsx("span", { className: "graphiql-doc-explorer-type-name", children: mutationType.name })
119
- ] });
120
- $[26] = mutationType;
121
- $[27] = push;
122
- $[28] = t152;
123
- } else {
124
- t152 = $[28];
125
- }
126
- let t16;
127
- if ($[29] !== push || $[30] !== subscriptionType) {
128
- t16 = subscriptionType && /* @__PURE__ */ jsxs("button", { type: "button", className: "graphiql-doc-explorer-schema-root-row", onClick: () => push({
129
- name: subscriptionType.name,
130
- def: subscriptionType
131
- }), children: [
132
- /* @__PURE__ */ jsx(MethodPill, { operation: "subscription", "aria-hidden": true }),
133
- /* @__PURE__ */ jsx("span", { className: "graphiql-doc-explorer-schema-root-label", children: "Subscription" }),
134
- /* @__PURE__ */ jsx("span", { className: "graphiql-doc-explorer-schema-root-colon", children: ":" }),
135
- /* @__PURE__ */ jsx("span", { className: "graphiql-doc-explorer-type-name", children: subscriptionType.name })
136
- ] });
137
- $[29] = push;
138
- $[30] = subscriptionType;
139
- $[31] = t16;
140
- } else {
141
- t16 = $[31];
142
- }
143
- if ($[32] !== t142 || $[33] !== t152 || $[34] !== t16) {
144
- t12 = /* @__PURE__ */ jsxs("div", { className: "graphiql-doc-explorer-schema-root-types", children: [
145
- t142,
146
- t152,
147
- t16
148
- ] });
149
- $[32] = t142;
150
- $[33] = t152;
151
- $[34] = t16;
152
- $[35] = t12;
153
- } else {
154
- t12 = $[35];
155
- }
156
- if ($[36] !== allTypes) {
157
- t13 = /* @__PURE__ */ jsxs("div", { className: "graphiql-doc-explorer-schema-section-header graphiql-doc-explorer-schema-section-header--types", children: [
158
- "ALL SCHEMA TYPES",
159
- /* @__PURE__ */ jsxs("span", { className: "graphiql-doc-explorer-schema-type-count", children: [
160
- " ",
161
- "· ",
162
- allTypes.length
163
- ] })
164
- ] });
165
- $[36] = allTypes;
166
- $[37] = t13;
167
- } else {
168
- t13 = $[37];
169
- }
170
- t8 = "graphiql-doc-explorer-schema-all-types";
171
- t9 = allTypes.map((type_0) => /* @__PURE__ */ jsxs("button", { type: "button", className: "graphiql-doc-explorer-schema-type-row", onClick: () => push({
172
- name: type_0.name,
173
- def: type_0
174
- }), children: [
175
- /* @__PURE__ */ jsx("span", { className: "graphiql-doc-explorer-type-badge", children: getTypeKindLabel(type_0) }),
176
- /* @__PURE__ */ jsx("span", { className: "graphiql-doc-explorer-schema-type-name", children: type_0.name })
177
- ] }, type_0.name));
178
- $[10] = mutationType;
179
- $[11] = push;
180
- $[12] = queryType;
181
- $[13] = rootTypeNames;
182
- $[14] = schema;
183
- $[15] = subscriptionType;
184
- $[16] = t10;
185
- $[17] = t11;
186
- $[18] = t12;
187
- $[19] = t13;
188
- $[20] = t8;
189
- $[21] = t9;
190
- } else {
191
- t10 = $[16];
192
- t11 = $[17];
193
- t12 = $[18];
194
- t13 = $[19];
195
- t8 = $[20];
196
- t9 = $[21];
197
- }
198
- let t14;
199
- if ($[38] !== t8 || $[39] !== t9) {
200
- t14 = /* @__PURE__ */ jsx("div", { className: t8, children: t9 });
201
- $[38] = t8;
202
- $[39] = t9;
203
- $[40] = t14;
204
- } else {
205
- t14 = $[40];
206
- }
207
- let t15;
208
- if ($[41] !== t10 || $[42] !== t11 || $[43] !== t12 || $[44] !== t13 || $[45] !== t14) {
209
- t15 = /* @__PURE__ */ jsxs("div", { className: t10, children: [
210
- t11,
211
- t12,
212
- t13,
213
- t14
214
- ] });
215
- $[41] = t10;
216
- $[42] = t11;
217
- $[43] = t12;
218
- $[44] = t13;
219
- $[45] = t14;
220
- $[46] = t15;
221
- } else {
222
- t15 = $[46];
223
- }
224
- return t15;
225
- };
226
- export {
227
- SchemaDocumentation
17
+ var SchemaDocumentation = (t0) => {
18
+ const $ = c(47);
19
+ const { schema } = t0;
20
+ const { push } = useDocExplorerActions();
21
+ let t1;
22
+ if ($[0] !== schema) {
23
+ t1 = schema.getQueryType();
24
+ $[0] = schema;
25
+ $[1] = t1;
26
+ } else t1 = $[1];
27
+ const queryType = t1;
28
+ let t2;
29
+ if ($[2] !== schema) {
30
+ t2 = schema.getMutationType();
31
+ $[2] = schema;
32
+ $[3] = t2;
33
+ } else t2 = $[3];
34
+ const mutationType = t2;
35
+ let t3;
36
+ if ($[4] !== schema) {
37
+ t3 = schema.getSubscriptionType();
38
+ $[4] = schema;
39
+ $[5] = t3;
40
+ } else t3 = $[5];
41
+ const subscriptionType = t3;
42
+ const t4 = queryType?.name;
43
+ const t5 = mutationType?.name;
44
+ const t6 = subscriptionType?.name;
45
+ let t7;
46
+ if ($[6] !== t4 || $[7] !== t5 || $[8] !== t6) {
47
+ t7 = new Set([
48
+ t4,
49
+ t5,
50
+ t6
51
+ ].filter(Boolean));
52
+ $[6] = t4;
53
+ $[7] = t5;
54
+ $[8] = t6;
55
+ $[9] = t7;
56
+ } else t7 = $[9];
57
+ const rootTypeNames = t7;
58
+ let t10;
59
+ let t11;
60
+ let t12;
61
+ let t13;
62
+ let t8;
63
+ let t9;
64
+ if ($[10] !== mutationType || $[11] !== push || $[12] !== queryType || $[13] !== rootTypeNames || $[14] !== schema || $[15] !== subscriptionType) {
65
+ const allTypes = Object.values(schema.getTypeMap()).filter((type) => !type.name.startsWith("__") && !rootTypeNames.has(type.name));
66
+ t10 = "graphiql-doc-explorer-schema-overview";
67
+ if ($[22] === Symbol.for("react.memo_cache_sentinel")) {
68
+ t11 = /* @__PURE__ */ jsx("div", {
69
+ className: "graphiql-doc-explorer-schema-section-header",
70
+ children: "ROOT TYPES"
71
+ });
72
+ $[22] = t11;
73
+ } else t11 = $[22];
74
+ let t14;
75
+ if ($[23] !== push || $[24] !== queryType) {
76
+ t14 = queryType && /* @__PURE__ */ jsxs("button", {
77
+ type: "button",
78
+ className: "graphiql-doc-explorer-schema-root-row",
79
+ onClick: () => push({
80
+ name: queryType.name,
81
+ def: queryType
82
+ }),
83
+ children: [
84
+ /* @__PURE__ */ jsx(MethodPill, {
85
+ operation: "query",
86
+ "aria-hidden": true
87
+ }),
88
+ /* @__PURE__ */ jsx("span", {
89
+ className: "graphiql-doc-explorer-schema-root-label",
90
+ children: "Query"
91
+ }),
92
+ /* @__PURE__ */ jsx("span", {
93
+ className: "graphiql-doc-explorer-schema-root-colon",
94
+ children: ":"
95
+ }),
96
+ /* @__PURE__ */ jsx("span", {
97
+ className: "graphiql-doc-explorer-type-name",
98
+ children: queryType.name
99
+ })
100
+ ]
101
+ });
102
+ $[23] = push;
103
+ $[24] = queryType;
104
+ $[25] = t14;
105
+ } else t14 = $[25];
106
+ let t15;
107
+ if ($[26] !== mutationType || $[27] !== push) {
108
+ t15 = mutationType && /* @__PURE__ */ jsxs("button", {
109
+ type: "button",
110
+ className: "graphiql-doc-explorer-schema-root-row",
111
+ onClick: () => push({
112
+ name: mutationType.name,
113
+ def: mutationType
114
+ }),
115
+ children: [
116
+ /* @__PURE__ */ jsx(MethodPill, {
117
+ operation: "mutation",
118
+ "aria-hidden": true
119
+ }),
120
+ /* @__PURE__ */ jsx("span", {
121
+ className: "graphiql-doc-explorer-schema-root-label",
122
+ children: "Mutation"
123
+ }),
124
+ /* @__PURE__ */ jsx("span", {
125
+ className: "graphiql-doc-explorer-schema-root-colon",
126
+ children: ":"
127
+ }),
128
+ /* @__PURE__ */ jsx("span", {
129
+ className: "graphiql-doc-explorer-type-name",
130
+ children: mutationType.name
131
+ })
132
+ ]
133
+ });
134
+ $[26] = mutationType;
135
+ $[27] = push;
136
+ $[28] = t15;
137
+ } else t15 = $[28];
138
+ let t16;
139
+ if ($[29] !== push || $[30] !== subscriptionType) {
140
+ t16 = subscriptionType && /* @__PURE__ */ jsxs("button", {
141
+ type: "button",
142
+ className: "graphiql-doc-explorer-schema-root-row",
143
+ onClick: () => push({
144
+ name: subscriptionType.name,
145
+ def: subscriptionType
146
+ }),
147
+ children: [
148
+ /* @__PURE__ */ jsx(MethodPill, {
149
+ operation: "subscription",
150
+ "aria-hidden": true
151
+ }),
152
+ /* @__PURE__ */ jsx("span", {
153
+ className: "graphiql-doc-explorer-schema-root-label",
154
+ children: "Subscription"
155
+ }),
156
+ /* @__PURE__ */ jsx("span", {
157
+ className: "graphiql-doc-explorer-schema-root-colon",
158
+ children: ":"
159
+ }),
160
+ /* @__PURE__ */ jsx("span", {
161
+ className: "graphiql-doc-explorer-type-name",
162
+ children: subscriptionType.name
163
+ })
164
+ ]
165
+ });
166
+ $[29] = push;
167
+ $[30] = subscriptionType;
168
+ $[31] = t16;
169
+ } else t16 = $[31];
170
+ if ($[32] !== t14 || $[33] !== t15 || $[34] !== t16) {
171
+ t12 = /* @__PURE__ */ jsxs("div", {
172
+ className: "graphiql-doc-explorer-schema-root-types",
173
+ children: [
174
+ t14,
175
+ t15,
176
+ t16
177
+ ]
178
+ });
179
+ $[32] = t14;
180
+ $[33] = t15;
181
+ $[34] = t16;
182
+ $[35] = t12;
183
+ } else t12 = $[35];
184
+ if ($[36] !== allTypes) {
185
+ t13 = /* @__PURE__ */ jsxs("div", {
186
+ className: "graphiql-doc-explorer-schema-section-header graphiql-doc-explorer-schema-section-header--types",
187
+ children: ["ALL SCHEMA TYPES", /* @__PURE__ */ jsxs("span", {
188
+ className: "graphiql-doc-explorer-schema-type-count",
189
+ children: [
190
+ " ",
191
+ "· ",
192
+ allTypes.length
193
+ ]
194
+ })]
195
+ });
196
+ $[36] = allTypes;
197
+ $[37] = t13;
198
+ } else t13 = $[37];
199
+ t8 = "graphiql-doc-explorer-schema-all-types";
200
+ t9 = allTypes.map((type_0) => /* @__PURE__ */ jsxs("button", {
201
+ type: "button",
202
+ className: "graphiql-doc-explorer-schema-type-row",
203
+ onClick: () => push({
204
+ name: type_0.name,
205
+ def: type_0
206
+ }),
207
+ children: [/* @__PURE__ */ jsx("span", {
208
+ className: "graphiql-doc-explorer-type-badge",
209
+ children: getTypeKindLabel(type_0)
210
+ }), /* @__PURE__ */ jsx("span", {
211
+ className: "graphiql-doc-explorer-schema-type-name",
212
+ children: type_0.name
213
+ })]
214
+ }, type_0.name));
215
+ $[10] = mutationType;
216
+ $[11] = push;
217
+ $[12] = queryType;
218
+ $[13] = rootTypeNames;
219
+ $[14] = schema;
220
+ $[15] = subscriptionType;
221
+ $[16] = t10;
222
+ $[17] = t11;
223
+ $[18] = t12;
224
+ $[19] = t13;
225
+ $[20] = t8;
226
+ $[21] = t9;
227
+ } else {
228
+ t10 = $[16];
229
+ t11 = $[17];
230
+ t12 = $[18];
231
+ t13 = $[19];
232
+ t8 = $[20];
233
+ t9 = $[21];
234
+ }
235
+ let t14;
236
+ if ($[38] !== t8 || $[39] !== t9) {
237
+ t14 = /* @__PURE__ */ jsx("div", {
238
+ className: t8,
239
+ children: t9
240
+ });
241
+ $[38] = t8;
242
+ $[39] = t9;
243
+ $[40] = t14;
244
+ } else t14 = $[40];
245
+ let t15;
246
+ if ($[41] !== t10 || $[42] !== t11 || $[43] !== t12 || $[44] !== t13 || $[45] !== t14) {
247
+ t15 = /* @__PURE__ */ jsxs("div", {
248
+ className: t10,
249
+ children: [
250
+ t11,
251
+ t12,
252
+ t13,
253
+ t14
254
+ ]
255
+ });
256
+ $[41] = t10;
257
+ $[42] = t11;
258
+ $[43] = t12;
259
+ $[44] = t13;
260
+ $[45] = t14;
261
+ $[46] = t15;
262
+ } else t15 = $[46];
263
+ return t15;
228
264
  };
229
- //# sourceMappingURL=schema-documentation.js.map
265
+ //#endregion
266
+ export { SchemaDocumentation };
267
+
268
+ //# sourceMappingURL=schema-documentation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema-documentation.js","sources":["../../src/components/schema-documentation.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport type { GraphQLNamedType, GraphQLSchema } from 'graphql';\nimport {\n isObjectType,\n isInterfaceType,\n isInputObjectType,\n isEnumType,\n isScalarType,\n isUnionType,\n} from 'graphql';\nimport { MethodPill } from '@graphiql/react';\nimport { useDocExplorerActions } from '../context';\nimport './schema-documentation.css';\n\ntype SchemaDocumentationProps = {\n /**\n * The schema that should be rendered.\n */\n schema: GraphQLSchema;\n};\n\nfunction getTypeKindLabel(type: GraphQLNamedType): string {\n if (isObjectType(type)) {\n return 'TYPE';\n }\n if (isInterfaceType(type)) {\n return 'INTERFACE';\n }\n if (isInputObjectType(type)) {\n return 'INPUT';\n }\n if (isEnumType(type)) {\n return 'ENUM';\n }\n if (isScalarType(type)) {\n return 'SCALAR';\n }\n if (isUnionType(type)) {\n return 'UNION';\n }\n return 'TYPE';\n}\n\nexport const SchemaDocumentation: FC<SchemaDocumentationProps> = ({\n schema,\n}) => {\n const { push } = useDocExplorerActions();\n const queryType = schema.getQueryType();\n const mutationType = schema.getMutationType();\n const subscriptionType = schema.getSubscriptionType();\n const rootTypeNames = new Set(\n [queryType?.name, mutationType?.name, subscriptionType?.name].filter(\n Boolean,\n ),\n );\n\n const allTypes = Object.values(schema.getTypeMap()).filter(\n type => !type.name.startsWith('__') && !rootTypeNames.has(type.name),\n );\n\n return (\n <div className=\"graphiql-doc-explorer-schema-overview\">\n {/* Root types section */}\n <div className=\"graphiql-doc-explorer-schema-section-header\">\n ROOT TYPES\n </div>\n <div className=\"graphiql-doc-explorer-schema-root-types\">\n {queryType && (\n <button\n type=\"button\"\n className=\"graphiql-doc-explorer-schema-root-row\"\n onClick={() => push({ name: queryType.name, def: queryType })}\n >\n <MethodPill operation=\"query\" aria-hidden />\n <span className=\"graphiql-doc-explorer-schema-root-label\">\n Query\n </span>\n <span className=\"graphiql-doc-explorer-schema-root-colon\">:</span>\n <span className=\"graphiql-doc-explorer-type-name\">\n {queryType.name}\n </span>\n </button>\n )}\n {mutationType && (\n <button\n type=\"button\"\n className=\"graphiql-doc-explorer-schema-root-row\"\n onClick={() => push({ name: mutationType.name, def: mutationType })}\n >\n <MethodPill operation=\"mutation\" aria-hidden />\n <span className=\"graphiql-doc-explorer-schema-root-label\">\n Mutation\n </span>\n <span className=\"graphiql-doc-explorer-schema-root-colon\">:</span>\n <span className=\"graphiql-doc-explorer-type-name\">\n {mutationType.name}\n </span>\n </button>\n )}\n {subscriptionType && (\n <button\n type=\"button\"\n className=\"graphiql-doc-explorer-schema-root-row\"\n onClick={() =>\n push({ name: subscriptionType.name, def: subscriptionType })\n }\n >\n <MethodPill operation=\"subscription\" aria-hidden />\n <span className=\"graphiql-doc-explorer-schema-root-label\">\n Subscription\n </span>\n <span className=\"graphiql-doc-explorer-schema-root-colon\">:</span>\n <span className=\"graphiql-doc-explorer-type-name\">\n {subscriptionType.name}\n </span>\n </button>\n )}\n </div>\n\n {/* All schema types section */}\n <div className=\"graphiql-doc-explorer-schema-section-header graphiql-doc-explorer-schema-section-header--types\">\n ALL SCHEMA TYPES\n <span className=\"graphiql-doc-explorer-schema-type-count\">\n {' '}\n · {allTypes.length}\n </span>\n </div>\n <div className=\"graphiql-doc-explorer-schema-all-types\">\n {allTypes.map(type => (\n <button\n key={type.name}\n type=\"button\"\n className=\"graphiql-doc-explorer-schema-type-row\"\n onClick={() => push({ name: type.name, def: type })}\n >\n <span className=\"graphiql-doc-explorer-type-badge\">\n {getTypeKindLabel(type)}\n </span>\n <span className=\"graphiql-doc-explorer-schema-type-name\">\n {type.name}\n </span>\n </button>\n ))}\n </div>\n </div>\n );\n};\n"],"names":["getTypeKindLabel","type","isObjectType","isInterfaceType","isInputObjectType","isEnumType","isScalarType","isUnionType","SchemaDocumentation","t0","$","_c","schema","push","useDocExplorerActions","t1","getQueryType","queryType","t2","getMutationType","mutationType","t3","getSubscriptionType","subscriptionType","t4","name","t5","t6","t7","Set","filter","Boolean","rootTypeNames","t10","t11","t12","t13","t8","t9","allTypes","Object","values","getTypeMap","startsWith","has","Symbol","for","t14","def","t15","t16","length","map","type_0"],"mappings":";;;;;;AAqBA,SAASA,iBAAiBC,MAAgC;AACpDC,MAAAA,aAAaD,IAAI,GAAG;AACf,WAAA;AAAA,EAAA;AAELE,MAAAA,gBAAgBF,IAAI,GAAG;AAClB,WAAA;AAAA,EAAA;AAELG,MAAAA,kBAAkBH,IAAI,GAAG;AACpB,WAAA;AAAA,EAAA;AAELI,MAAAA,WAAWJ,IAAI,GAAG;AACb,WAAA;AAAA,EAAA;AAELK,MAAAA,aAAaL,IAAI,GAAG;AACf,WAAA;AAAA,EAAA;AAELM,MAAAA,YAAYN,IAAI,GAAG;AACd,WAAA;AAAA,EAAA;AAEF,SAAA;AACT;AAEO,MAAMO,sBAAoDC,CAAA,OAAA;AAAAC,QAAAA,IAAAC,EAAA,EAAA;AAAC,QAAA;AAAA,IAAAC;AAAAA,EAAAA,IAAAH;AAGhE,QAAA;AAAA,IAAAI;AAAAA,MAAiBC,sBAAsB;AAAEC,MAAAA;AAAAL,MAAAA,SAAAE,QAAA;AACvBG,SAAAH,OAAMI,aAAc;AAACN,WAAAE;AAAAF,WAAAK;AAAAA,EAAAA,OAAA;AAAAA,SAAAL,EAAA,CAAA;AAAA,EAAA;AAAvC,QAAAO,YAAkBF;AAAsBG,MAAAA;AAAAR,MAAAA,SAAAE,QAAA;AACnBM,SAAAN,OAAMO,gBAAiB;AAACT,WAAAE;AAAAF,WAAAQ;AAAAA,EAAAA,OAAA;AAAAA,SAAAR,EAAA,CAAA;AAAA,EAAA;AAA7C,QAAAU,eAAqBF;AAAyBG,MAAAA;AAAAX,MAAAA,SAAAE,QAAA;AACrBS,SAAAT,OAA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AwB;AAAAxB,YAAAyB;AAAAzB,YAAA0B;AAAA1B,YAAAqC;AAAArC,YAAAuC;AAAAA,EAAAA,OAAA;AAAAA,UAAAvC,EAAA,EAAA;AAAA,EAAA;AAnFNuC,SAAAA;AAmFM;"}
1
+ {"version":3,"file":"schema-documentation.js","names":["FC","GraphQLNamedType","GraphQLSchema","isObjectType","isInterfaceType","isInputObjectType","isEnumType","isScalarType","isUnionType","MethodPill","useDocExplorerActions","SchemaDocumentationProps","schema","getTypeKindLabel","type","SchemaDocumentation","t0","$","_c","push","t1","getQueryType","queryType","t2","getMutationType","mutationType","t3","getSubscriptionType","subscriptionType","t4","name","t5","t6","t7","Set","filter","Boolean","rootTypeNames","t10","t11","t12","t13","t8","t9","allTypes","Object","values","getTypeMap","startsWith","has","Symbol","for","t14","def","t15","t16","length","map","type_0"],"sources":["../../src/components/schema-documentation.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport type { GraphQLNamedType, GraphQLSchema } from 'graphql';\nimport {\n isObjectType,\n isInterfaceType,\n isInputObjectType,\n isEnumType,\n isScalarType,\n isUnionType,\n} from 'graphql';\nimport { MethodPill } from '@graphiql/react';\nimport { useDocExplorerActions } from '../context';\nimport './schema-documentation.css';\n\ntype SchemaDocumentationProps = {\n /**\n * The schema that should be rendered.\n */\n schema: GraphQLSchema;\n};\n\nfunction getTypeKindLabel(type: GraphQLNamedType): string {\n if (isObjectType(type)) {\n return 'TYPE';\n }\n if (isInterfaceType(type)) {\n return 'INTERFACE';\n }\n if (isInputObjectType(type)) {\n return 'INPUT';\n }\n if (isEnumType(type)) {\n return 'ENUM';\n }\n if (isScalarType(type)) {\n return 'SCALAR';\n }\n if (isUnionType(type)) {\n return 'UNION';\n }\n return 'TYPE';\n}\n\nexport const SchemaDocumentation: FC<SchemaDocumentationProps> = ({\n schema,\n}) => {\n const { push } = useDocExplorerActions();\n const queryType = schema.getQueryType();\n const mutationType = schema.getMutationType();\n const subscriptionType = schema.getSubscriptionType();\n const rootTypeNames = new Set(\n [queryType?.name, mutationType?.name, subscriptionType?.name].filter(\n Boolean,\n ),\n );\n\n const allTypes = Object.values(schema.getTypeMap()).filter(\n type => !type.name.startsWith('__') && !rootTypeNames.has(type.name),\n );\n\n return (\n <div className=\"graphiql-doc-explorer-schema-overview\">\n {/* Root types section */}\n <div className=\"graphiql-doc-explorer-schema-section-header\">\n ROOT TYPES\n </div>\n <div className=\"graphiql-doc-explorer-schema-root-types\">\n {queryType && (\n <button\n type=\"button\"\n className=\"graphiql-doc-explorer-schema-root-row\"\n onClick={() => push({ name: queryType.name, def: queryType })}\n >\n <MethodPill operation=\"query\" aria-hidden />\n <span className=\"graphiql-doc-explorer-schema-root-label\">\n Query\n </span>\n <span className=\"graphiql-doc-explorer-schema-root-colon\">:</span>\n <span className=\"graphiql-doc-explorer-type-name\">\n {queryType.name}\n </span>\n </button>\n )}\n {mutationType && (\n <button\n type=\"button\"\n className=\"graphiql-doc-explorer-schema-root-row\"\n onClick={() => push({ name: mutationType.name, def: mutationType })}\n >\n <MethodPill operation=\"mutation\" aria-hidden />\n <span className=\"graphiql-doc-explorer-schema-root-label\">\n Mutation\n </span>\n <span className=\"graphiql-doc-explorer-schema-root-colon\">:</span>\n <span className=\"graphiql-doc-explorer-type-name\">\n {mutationType.name}\n </span>\n </button>\n )}\n {subscriptionType && (\n <button\n type=\"button\"\n className=\"graphiql-doc-explorer-schema-root-row\"\n onClick={() =>\n push({ name: subscriptionType.name, def: subscriptionType })\n }\n >\n <MethodPill operation=\"subscription\" aria-hidden />\n <span className=\"graphiql-doc-explorer-schema-root-label\">\n Subscription\n </span>\n <span className=\"graphiql-doc-explorer-schema-root-colon\">:</span>\n <span className=\"graphiql-doc-explorer-type-name\">\n {subscriptionType.name}\n </span>\n </button>\n )}\n </div>\n\n {/* All schema types section */}\n <div className=\"graphiql-doc-explorer-schema-section-header graphiql-doc-explorer-schema-section-header--types\">\n ALL SCHEMA TYPES\n <span className=\"graphiql-doc-explorer-schema-type-count\">\n {' '}\n · {allTypes.length}\n </span>\n </div>\n <div className=\"graphiql-doc-explorer-schema-all-types\">\n {allTypes.map(type => (\n <button\n key={type.name}\n type=\"button\"\n className=\"graphiql-doc-explorer-schema-type-row\"\n onClick={() => push({ name: type.name, def: type })}\n >\n <span className=\"graphiql-doc-explorer-type-badge\">\n {getTypeKindLabel(type)}\n </span>\n <span className=\"graphiql-doc-explorer-schema-type-name\">\n {type.name}\n </span>\n </button>\n ))}\n </div>\n </div>\n );\n};\n"],"mappings":";;;;;;;AAqBA,SAASa,iBAAiBC,MAAgC;CACxD,IAAIX,aAAaW,IAAI,GACnB,OAAO;CAET,IAAIV,gBAAgBU,IAAI,GACtB,OAAO;CAET,IAAIT,kBAAkBS,IAAI,GACxB,OAAO;CAET,IAAIR,WAAWQ,IAAI,GACjB,OAAO;CAET,IAAIP,aAAaO,IAAI,GACnB,OAAO;CAET,IAAIN,YAAYM,IAAI,GAClB,OAAO;CAET,OAAO;AACT;AAEA,IAAaC,uBAAoDC,OAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAC,MAAA,EAAAN,WAAAI;CAGhE,MAAA,EAAAG,SAAiBT,sBAAsB;CAAE,IAAAU;CAAA,IAAAH,EAAA,OAAAL,QAAA;EACvBQ,KAAAR,OAAMS,aAAc;EAACJ,EAAA,KAAAL;EAAAK,EAAA,KAAAG;CAAA,OAAAA,KAAAH,EAAA;CAAvC,MAAAK,YAAkBF;CAAsB,IAAAG;CAAA,IAAAN,EAAA,OAAAL,QAAA;EACnBW,KAAAX,OAAMY,gBAAiB;EAACP,EAAA,KAAAL;EAAAK,EAAA,KAAAM;CAAA,OAAAA,KAAAN,EAAA;CAA7C,MAAAQ,eAAqBF;CAAyB,IAAAG;CAAA,IAAAT,EAAA,OAAAL,QAAA;EACrBc,KAAAd,OAAMe,oBAAqB;EAACV,EAAA,KAAAL;EAAAK,EAAA,KAAAS;CAAA,OAAAA,KAAAT,EAAA;CAArD,MAAAW,mBAAyBF;CAEtB,MAAAG,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