@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.
- package/LICENSE +21 -0
- package/dist/components/argument.js +88 -92
- package/dist/components/argument.js.map +1 -1
- package/dist/components/arguments-list.js +226 -237
- package/dist/components/arguments-list.js.map +1 -1
- package/dist/components/breadcrumb.js +59 -52
- package/dist/components/breadcrumb.js.map +1 -1
- package/dist/components/default-value.js +63 -74
- package/dist/components/default-value.js.map +1 -1
- package/dist/components/deprecation-reason.js +27 -21
- package/dist/components/deprecation-reason.js.map +1 -1
- package/dist/components/directive.js +20 -23
- package/dist/components/directive.js.map +1 -1
- package/dist/components/doc-explorer.js +219 -259
- package/dist/components/doc-explorer.js.map +1 -1
- package/dist/components/field-card.js +103 -97
- package/dist/components/field-card.js.map +1 -1
- package/dist/components/field-documentation.js +118 -135
- package/dist/components/field-documentation.js.map +1 -1
- package/dist/components/field-link.js +37 -39
- package/dist/components/field-link.js.map +1 -1
- package/dist/components/fields-list.js +216 -226
- package/dist/components/fields-list.js.map +1 -1
- package/dist/components/schema-documentation.js +263 -224
- package/dist/components/schema-documentation.js.map +1 -1
- package/dist/components/search-row.js +287 -268
- package/dist/components/search-row.js.map +1 -1
- package/dist/components/search.js +342 -345
- package/dist/components/search.js.map +1 -1
- package/dist/components/section.js +59 -69
- package/dist/components/section.js.map +1 -1
- package/dist/components/type-card.js +104 -107
- package/dist/components/type-card.js.map +1 -1
- package/dist/components/type-documentation.js +340 -363
- package/dist/components/type-documentation.js.map +1 -1
- package/dist/components/type-link.js +38 -39
- package/dist/components/type-link.js.map +1 -1
- package/dist/components/utils.js +15 -20
- package/dist/components/utils.js.map +1 -1
- package/dist/context.js +205 -285
- package/dist/context.js.map +1 -1
- package/dist/index.js +7 -31
- package/dist/schema-reference.js +48 -54
- package/dist/schema-reference.js.map +1 -1
- package/dist/style.css +24 -28
- package/package.json +25 -19
- package/dist/index.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-link.js","sources":["../../src/components/field-link.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { DocExplorerFieldDef, useDocExplorerActions } from '../context';\nimport './field-link.css';\n\ntype FieldLinkProps = {\n /**\n * The field or argument that should be linked to.\n */\n field: DocExplorerFieldDef;\n};\n\nexport const FieldLink: FC<FieldLinkProps> = ({ field }) => {\n const { push } = useDocExplorerActions();\n\n return (\n <a\n className=\"graphiql-doc-explorer-field-name\"\n onClick={event => {\n event.preventDefault();\n push({ name: field.name, def: field });\n }}\n href=\"#\"\n >\n {field.name}\n </a>\n );\n};\n"],"
|
|
1
|
+
{"version":3,"file":"field-link.js","names":["FC","DocExplorerFieldDef","useDocExplorerActions","FieldLinkProps","field","FieldLink","t0","$","_c","push","t1","event","preventDefault","name","def","t2"],"sources":["../../src/components/field-link.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { DocExplorerFieldDef, useDocExplorerActions } from '../context';\nimport './field-link.css';\n\ntype FieldLinkProps = {\n /**\n * The field or argument that should be linked to.\n */\n field: DocExplorerFieldDef;\n};\n\nexport const FieldLink: FC<FieldLinkProps> = ({ field }) => {\n const { push } = useDocExplorerActions();\n\n return (\n <a\n className=\"graphiql-doc-explorer-field-name\"\n onClick={event => {\n event.preventDefault();\n push({ name: field.name, def: field });\n }}\n href=\"#\"\n >\n {field.name}\n </a>\n );\n};\n"],"mappings":";;;;;AAWA,IAAaK,aAAgCC,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAC,MAAA,EAAAJ,UAAAE;CAC5C,MAAA,EAAAG,SAAiBP,sBAAsB;CAAE,IAAAQ;CAAA,IAAAH,EAAA,OAAAH,SAAAG,EAAA,OAAAE,MAAA;EAK5BC,MAAAC,UAAA;GACPA,MAAKC,eAAgB;GACrBH,KAAI;IAAAI,MAAST,MAAKS;IAAAC,KAAYV;GAAK,CAAE;EAAC;EACvCG,EAAA,KAAAH;EAAAG,EAAA,KAAAE;EAAAF,EAAA,KAAAG;CAAA,OAAAA,KAAAH,EAAA;CAAA,IAAAQ;CAAA,IAAAR,EAAA,OAAAH,MAAAS,QAAAN,EAAA,OAAAG,IAAA;EALHK,KAAA,oBAAA,KAAA;GACY,WAAA;GACD,SAAAL;GAIJ,MAAA;GAEJN,UAAAA,MAAKS;EACJ,CAAA;EAAAN,EAAA,KAAAH,MAAAS;EAAAN,EAAA,KAAAG;EAAAH,EAAA,KAAAQ;CAAA,OAAAA,KAAAR,EAAA;CAAA,OATJQ;AASI"}
|
|
@@ -1,235 +1,225 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { c } from "react-compiler-runtime";
|
|
3
|
-
import { useState } from "react";
|
|
4
|
-
import { isObjectType, isInterfaceType, isInputObjectType } from "graphql";
|
|
5
|
-
import { Button, ChevronDownIcon, ChevronUpIcon } from "@graphiql/react";
|
|
6
1
|
import { useDocExplorerActions } from "../context.js";
|
|
7
|
-
import { TypeLink } from "./type-link.js";
|
|
8
2
|
import { renderType } from "./utils.js";
|
|
3
|
+
import { TypeLink } from "./type-link.js";
|
|
9
4
|
/* empty css */
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
t7 = $[22];
|
|
119
|
-
}
|
|
120
|
-
return t7;
|
|
5
|
+
import { c } from "react-compiler-runtime";
|
|
6
|
+
import { Button, ChevronDownIcon, ChevronUpIcon } from "@graphiql/react";
|
|
7
|
+
import { isInputObjectType, isInterfaceType, isObjectType } from "graphql";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { useState } from "react";
|
|
10
|
+
//#region src/components/fields-list.tsx
|
|
11
|
+
var FieldsList = (t0) => {
|
|
12
|
+
const $ = c(23);
|
|
13
|
+
const { type, activeFieldName } = t0;
|
|
14
|
+
const [expanded, setExpanded] = useState(true);
|
|
15
|
+
const [showDeprecated, setShowDeprecated] = useState(false);
|
|
16
|
+
if (!isObjectType(type) && !isInterfaceType(type) && !isInputObjectType(type)) return null;
|
|
17
|
+
let t1;
|
|
18
|
+
if ($[0] !== type) {
|
|
19
|
+
t1 = type.getFields();
|
|
20
|
+
$[0] = type;
|
|
21
|
+
$[1] = t1;
|
|
22
|
+
} else t1 = $[1];
|
|
23
|
+
const fieldMap = t1;
|
|
24
|
+
let deprecatedFields;
|
|
25
|
+
let fields;
|
|
26
|
+
if ($[2] !== fieldMap) {
|
|
27
|
+
fields = [];
|
|
28
|
+
deprecatedFields = [];
|
|
29
|
+
for (const field of Object.values(fieldMap)) if (field.deprecationReason) deprecatedFields.push(field);
|
|
30
|
+
else fields.push(field);
|
|
31
|
+
$[2] = fieldMap;
|
|
32
|
+
$[3] = deprecatedFields;
|
|
33
|
+
$[4] = fields;
|
|
34
|
+
} else {
|
|
35
|
+
deprecatedFields = $[3];
|
|
36
|
+
fields = $[4];
|
|
37
|
+
}
|
|
38
|
+
const totalCount = fields.length + (showDeprecated ? deprecatedFields.length : 0);
|
|
39
|
+
let t2;
|
|
40
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
41
|
+
t2 = () => setExpanded(_temp);
|
|
42
|
+
$[5] = t2;
|
|
43
|
+
} else t2 = $[5];
|
|
44
|
+
let t3;
|
|
45
|
+
if ($[6] !== expanded) {
|
|
46
|
+
t3 = expanded ? /* @__PURE__ */ jsx(ChevronDownIcon, { "aria-hidden": "true" }) : /* @__PURE__ */ jsx(ChevronUpIcon, { "aria-hidden": "true" });
|
|
47
|
+
$[6] = expanded;
|
|
48
|
+
$[7] = t3;
|
|
49
|
+
} else t3 = $[7];
|
|
50
|
+
let t4;
|
|
51
|
+
if ($[8] !== totalCount) {
|
|
52
|
+
t4 = /* @__PURE__ */ jsxs("span", { children: [
|
|
53
|
+
"FIELDS",
|
|
54
|
+
" ",
|
|
55
|
+
/* @__PURE__ */ jsxs("span", {
|
|
56
|
+
className: "graphiql-doc-explorer-fields-list-count",
|
|
57
|
+
children: ["· ", totalCount]
|
|
58
|
+
})
|
|
59
|
+
] });
|
|
60
|
+
$[8] = totalCount;
|
|
61
|
+
$[9] = t4;
|
|
62
|
+
} else t4 = $[9];
|
|
63
|
+
let t5;
|
|
64
|
+
if ($[10] !== expanded || $[11] !== t3 || $[12] !== t4) {
|
|
65
|
+
t5 = /* @__PURE__ */ jsxs("button", {
|
|
66
|
+
type: "button",
|
|
67
|
+
className: "graphiql-doc-explorer-fields-list-header",
|
|
68
|
+
onClick: t2,
|
|
69
|
+
"aria-expanded": expanded,
|
|
70
|
+
children: [t3, t4]
|
|
71
|
+
});
|
|
72
|
+
$[10] = expanded;
|
|
73
|
+
$[11] = t3;
|
|
74
|
+
$[12] = t4;
|
|
75
|
+
$[13] = t5;
|
|
76
|
+
} else t5 = $[13];
|
|
77
|
+
let t6;
|
|
78
|
+
if ($[14] !== activeFieldName || $[15] !== deprecatedFields || $[16] !== expanded || $[17] !== fields || $[18] !== showDeprecated) {
|
|
79
|
+
t6 = expanded && /* @__PURE__ */ jsxs("div", {
|
|
80
|
+
className: "graphiql-doc-explorer-fields-list-body",
|
|
81
|
+
children: [fields.map((field_0) => /* @__PURE__ */ jsx(FieldRow, {
|
|
82
|
+
field: field_0,
|
|
83
|
+
isActive: field_0.name === activeFieldName
|
|
84
|
+
}, field_0.name)), deprecatedFields.length > 0 && (showDeprecated || fields.length === 0 ? deprecatedFields.map((field_1) => /* @__PURE__ */ jsx(FieldRow, {
|
|
85
|
+
field: field_1,
|
|
86
|
+
isActive: field_1.name === activeFieldName,
|
|
87
|
+
deprecated: true
|
|
88
|
+
}, field_1.name)) : /* @__PURE__ */ jsx(Button, {
|
|
89
|
+
type: "button",
|
|
90
|
+
onClick: () => setShowDeprecated(true),
|
|
91
|
+
className: "graphiql-doc-explorer-fields-list-show-deprecated",
|
|
92
|
+
children: "Show Deprecated Fields"
|
|
93
|
+
}))]
|
|
94
|
+
});
|
|
95
|
+
$[14] = activeFieldName;
|
|
96
|
+
$[15] = deprecatedFields;
|
|
97
|
+
$[16] = expanded;
|
|
98
|
+
$[17] = fields;
|
|
99
|
+
$[18] = showDeprecated;
|
|
100
|
+
$[19] = t6;
|
|
101
|
+
} else t6 = $[19];
|
|
102
|
+
let t7;
|
|
103
|
+
if ($[20] !== t5 || $[21] !== t6) {
|
|
104
|
+
t7 = /* @__PURE__ */ jsxs("div", {
|
|
105
|
+
className: "graphiql-doc-explorer-fields-list",
|
|
106
|
+
children: [t5, t6]
|
|
107
|
+
});
|
|
108
|
+
$[20] = t5;
|
|
109
|
+
$[21] = t6;
|
|
110
|
+
$[22] = t7;
|
|
111
|
+
} else t7 = $[22];
|
|
112
|
+
return t7;
|
|
121
113
|
};
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
}
|
|
224
|
-
return t13;
|
|
114
|
+
var FieldRow = (t0) => {
|
|
115
|
+
const $ = c(24);
|
|
116
|
+
const { field, isActive, deprecated } = t0;
|
|
117
|
+
const { push } = useDocExplorerActions();
|
|
118
|
+
const t1 = isActive ? "graphiql-doc-explorer-field-row--active" : "";
|
|
119
|
+
const t2 = deprecated ? "graphiql-doc-explorer-field-row--deprecated" : "";
|
|
120
|
+
let t3;
|
|
121
|
+
if ($[0] !== t1 || $[1] !== t2) {
|
|
122
|
+
t3 = [
|
|
123
|
+
"graphiql-doc-explorer-field-row",
|
|
124
|
+
t1,
|
|
125
|
+
t2
|
|
126
|
+
].filter(Boolean);
|
|
127
|
+
$[0] = t1;
|
|
128
|
+
$[1] = t2;
|
|
129
|
+
$[2] = t3;
|
|
130
|
+
} else t3 = $[2];
|
|
131
|
+
const t4 = t3.join(" ");
|
|
132
|
+
let t5;
|
|
133
|
+
if ($[3] !== field || $[4] !== push) {
|
|
134
|
+
t5 = () => push({
|
|
135
|
+
name: field.name,
|
|
136
|
+
def: field
|
|
137
|
+
});
|
|
138
|
+
$[3] = field;
|
|
139
|
+
$[4] = push;
|
|
140
|
+
$[5] = t5;
|
|
141
|
+
} else t5 = $[5];
|
|
142
|
+
const t6 = isActive ? "true" : void 0;
|
|
143
|
+
let t7;
|
|
144
|
+
if ($[6] !== field.name) {
|
|
145
|
+
t7 = /* @__PURE__ */ jsx("span", {
|
|
146
|
+
className: "graphiql-doc-explorer-field-row-name",
|
|
147
|
+
children: field.name
|
|
148
|
+
});
|
|
149
|
+
$[6] = field.name;
|
|
150
|
+
$[7] = t7;
|
|
151
|
+
} else t7 = $[7];
|
|
152
|
+
let t8;
|
|
153
|
+
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
154
|
+
t8 = /* @__PURE__ */ jsx("span", {
|
|
155
|
+
className: "graphiql-doc-explorer-field-row-colon",
|
|
156
|
+
children: ":"
|
|
157
|
+
});
|
|
158
|
+
$[8] = t8;
|
|
159
|
+
} else t8 = $[8];
|
|
160
|
+
let t9;
|
|
161
|
+
if ($[9] !== field.type) {
|
|
162
|
+
t9 = renderType(field.type, _temp2);
|
|
163
|
+
$[9] = field.type;
|
|
164
|
+
$[10] = t9;
|
|
165
|
+
} else t9 = $[10];
|
|
166
|
+
let t10;
|
|
167
|
+
if ($[11] !== t9) {
|
|
168
|
+
t10 = /* @__PURE__ */ jsx("span", {
|
|
169
|
+
className: "graphiql-doc-explorer-field-row-type",
|
|
170
|
+
children: t9
|
|
171
|
+
});
|
|
172
|
+
$[11] = t9;
|
|
173
|
+
$[12] = t10;
|
|
174
|
+
} else t10 = $[12];
|
|
175
|
+
let t11;
|
|
176
|
+
if ($[13] !== t10 || $[14] !== t7) {
|
|
177
|
+
t11 = /* @__PURE__ */ jsxs("div", {
|
|
178
|
+
className: "graphiql-doc-explorer-field-row-sig",
|
|
179
|
+
children: [
|
|
180
|
+
t7,
|
|
181
|
+
t8,
|
|
182
|
+
t10
|
|
183
|
+
]
|
|
184
|
+
});
|
|
185
|
+
$[13] = t10;
|
|
186
|
+
$[14] = t7;
|
|
187
|
+
$[15] = t11;
|
|
188
|
+
} else t11 = $[15];
|
|
189
|
+
let t12;
|
|
190
|
+
if ($[16] !== field.description) {
|
|
191
|
+
t12 = field.description && /* @__PURE__ */ jsx("div", {
|
|
192
|
+
className: "graphiql-doc-explorer-field-row-desc",
|
|
193
|
+
children: field.description
|
|
194
|
+
});
|
|
195
|
+
$[16] = field.description;
|
|
196
|
+
$[17] = t12;
|
|
197
|
+
} else t12 = $[17];
|
|
198
|
+
let t13;
|
|
199
|
+
if ($[18] !== t11 || $[19] !== t12 || $[20] !== t4 || $[21] !== t5 || $[22] !== t6) {
|
|
200
|
+
t13 = /* @__PURE__ */ jsxs("button", {
|
|
201
|
+
type: "button",
|
|
202
|
+
className: t4,
|
|
203
|
+
onClick: t5,
|
|
204
|
+
"aria-current": t6,
|
|
205
|
+
children: [t11, t12]
|
|
206
|
+
});
|
|
207
|
+
$[18] = t11;
|
|
208
|
+
$[19] = t12;
|
|
209
|
+
$[20] = t4;
|
|
210
|
+
$[21] = t5;
|
|
211
|
+
$[22] = t6;
|
|
212
|
+
$[23] = t13;
|
|
213
|
+
} else t13 = $[23];
|
|
214
|
+
return t13;
|
|
225
215
|
};
|
|
226
216
|
function _temp(e) {
|
|
227
|
-
|
|
217
|
+
return !e;
|
|
228
218
|
}
|
|
229
219
|
function _temp2(namedType) {
|
|
230
|
-
|
|
220
|
+
return /* @__PURE__ */ jsx(TypeLink, { type: namedType });
|
|
231
221
|
}
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
//# sourceMappingURL=fields-list.js.map
|
|
222
|
+
//#endregion
|
|
223
|
+
export { FieldsList };
|
|
224
|
+
|
|
225
|
+
//# sourceMappingURL=fields-list.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fields-list.js","sources":["../../src/components/fields-list.tsx"],"sourcesContent":["import { FC, useState } from 'react';\nimport {\n GraphQLNamedType,\n isObjectType,\n isInterfaceType,\n isInputObjectType,\n} from 'graphql';\nimport { Button, ChevronDownIcon, ChevronUpIcon } from '@graphiql/react';\nimport type { DocExplorerFieldDef } from '../context';\nimport { useDocExplorerActions } from '../context';\nimport { TypeLink } from './type-link';\nimport { renderType } from './utils';\nimport './fields-list.css';\n\ntype FieldsListProps = {\n type: GraphQLNamedType;\n activeFieldName?: string;\n};\n\nexport const FieldsList: FC<FieldsListProps> = ({ type, activeFieldName }) => {\n const [expanded, setExpanded] = useState(true);\n const [showDeprecated, setShowDeprecated] = useState(false);\n\n if (\n !isObjectType(type) &&\n !isInterfaceType(type) &&\n !isInputObjectType(type)\n ) {\n return null;\n }\n\n const fieldMap = type.getFields();\n const fields: DocExplorerFieldDef[] = [];\n const deprecatedFields: DocExplorerFieldDef[] = [];\n\n for (const field of Object.values(fieldMap)) {\n if (field.deprecationReason) {\n deprecatedFields.push(field);\n } else {\n fields.push(field);\n }\n }\n\n const totalCount =\n fields.length + (showDeprecated ? deprecatedFields.length : 0);\n\n return (\n <div className=\"graphiql-doc-explorer-fields-list\">\n <button\n type=\"button\"\n className=\"graphiql-doc-explorer-fields-list-header\"\n onClick={() => setExpanded(e => !e)}\n aria-expanded={expanded}\n >\n {expanded ? (\n <ChevronDownIcon aria-hidden=\"true\" />\n ) : (\n <ChevronUpIcon aria-hidden=\"true\" />\n )}\n <span>\n FIELDS{' '}\n <span className=\"graphiql-doc-explorer-fields-list-count\">\n · {totalCount}\n </span>\n </span>\n </button>\n {expanded && (\n <div className=\"graphiql-doc-explorer-fields-list-body\">\n {fields.map(field => (\n <FieldRow\n key={field.name}\n field={field}\n isActive={field.name === activeFieldName}\n />\n ))}\n {deprecatedFields.length > 0 &&\n (showDeprecated || fields.length === 0 ? (\n deprecatedFields.map(field => (\n <FieldRow\n key={field.name}\n field={field}\n isActive={field.name === activeFieldName}\n deprecated\n />\n ))\n ) : (\n <Button\n type=\"button\"\n onClick={() => setShowDeprecated(true)}\n className=\"graphiql-doc-explorer-fields-list-show-deprecated\"\n >\n Show Deprecated Fields\n </Button>\n ))}\n </div>\n )}\n </div>\n );\n};\n\ntype FieldRowProps = {\n field: DocExplorerFieldDef;\n isActive: boolean;\n deprecated?: boolean;\n};\n\nconst FieldRow: FC<FieldRowProps> = ({ field, isActive, deprecated }) => {\n const { push } = useDocExplorerActions();\n\n return (\n <button\n type=\"button\"\n className={[\n 'graphiql-doc-explorer-field-row',\n isActive ? 'graphiql-doc-explorer-field-row--active' : '',\n deprecated ? 'graphiql-doc-explorer-field-row--deprecated' : '',\n ]\n .filter(Boolean)\n .join(' ')}\n onClick={() => push({ name: field.name, def: field })}\n aria-current={isActive ? 'true' : undefined}\n >\n <div className=\"graphiql-doc-explorer-field-row-sig\">\n <span className=\"graphiql-doc-explorer-field-row-name\">\n {field.name}\n </span>\n <span className=\"graphiql-doc-explorer-field-row-colon\">:</span>\n <span className=\"graphiql-doc-explorer-field-row-type\">\n {renderType(field.type, namedType => (\n <TypeLink type={namedType} />\n ))}\n </span>\n </div>\n {field.description && (\n <div className=\"graphiql-doc-explorer-field-row-desc\">\n {field.description}\n </div>\n )}\n </button>\n );\n};\n"],"names":["FieldsList","t0","$","_c","type","activeFieldName","expanded","setExpanded","useState","showDeprecated","setShowDeprecated","isObjectType","isInterfaceType","isInputObjectType","t1","getFields","fieldMap","deprecatedFields","fields","field","Object","values","deprecationReason","push","totalCount","length","t2","Symbol","for","_temp","t3","t4","t5","t6","map","field_0","name","field_1","t7","FieldRow","isActive","deprecated","useDocExplorerActions","filter","Boolean","join","def","undefined","t8","t9","renderType","_temp2","t10","t11","t12","description","t13","e","namedType"],"mappings":";;;;;;;;;AAmBO,MAAMA,aAAkCC,CAAA,OAAA;AAAAC,QAAAA,IAAAC,EAAA,EAAA;AAAC,QAAA;AAAA,IAAAC;AAAAA,IAAAC;AAAAA,EAAAA,IAAAJ;AAC9C,QAAA,CAAAK,UAAAC,WAAA,IAAgCC,aAAa;AAC7C,QAAA,CAAAC,gBAAAC,iBAAA,IAA4CF,cAAc;AAGxD,MAAA,CAACG,aAAaP,IAAI,KACjBQ,CAAAA,gBAAgBR,IAAI,KAAC,CACrBS,kBAAkBT,IAAI,GAAC;AAAA,WAA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AApD,EAAA,EAAA,MAAAiB,MAAAoC,aAAA;AACLD,UAAAnC,MAAKoC,eACJ,oBAAA,SAAe,WAAA,wCACZpC,gBAAKoC,YACR,CAAA;AACD,MAAA,EAAA,IAAApC,MAAAoC;AAAArD,YAAAoD;AAAAA,EAAAA,OAAA;AAAAA,UAAApD,EAAA,EAAA;AAAA,EAAA;AAAAsD,MAAAA;AAAA,MAAAtD,EAAAmD,EAAAA,MAAAA,OAAAnD,EAAA,EAAA,MAAAoD,OAAApD,EAAA6B,EAAAA,MAAAA,MAAA7B,EAAA,EAAA,MAAA8B,MAAA9B,UAAA+B,IAAA;AACM,UAAA,qBAAA,YA3BF,MAAA,UACM,WAAAF,IAOF,SAAAC,IACK,gBAAAC,IAEdoB,UAAAA;AAAAA,MAAAA;AAAAA,MAWCC;AAAAA,IAAAA,GAKH;AAASpD,YAAAmD;AAAAnD,YAAAoD;AAAApD,YAAA6B;AAAA7B,YAAA8B;AAAA9B,YAAA+B;AAAA/B,YAAAsD;AAAAA,EAAAA,OAAA;AAAAA,UAAAtD,EAAA,EAAA;AAAA,EAAA;AA5BTsD,SAAAA;AA4BS;AAvHkC,SAAA3B,MAAA4B,GAAA;AAAA,SAAA,CAgCNA;AAAC;AAuDN,SAAAN,OAAAO,WAAA;AAuBxB,SAAA,oBAAC,UAAeA,EAAAA,MAAAA,UAAa,CAAA;AAAA;"}
|
|
1
|
+
{"version":3,"file":"fields-list.js","names":["FC","useState","GraphQLNamedType","isObjectType","isInterfaceType","isInputObjectType","Button","ChevronDownIcon","ChevronUpIcon","DocExplorerFieldDef","useDocExplorerActions","TypeLink","renderType","FieldsListProps","type","activeFieldName","FieldsList","t0","$","_c","expanded","setExpanded","showDeprecated","setShowDeprecated","t1","getFields","fieldMap","deprecatedFields","fields","field","Object","values","deprecationReason","push","totalCount","length","t2","Symbol","for","_temp","t3","t4","t5","t6","map","field_0","name","field_1","t7","FieldRowProps","isActive","deprecated","FieldRow","filter","Boolean","join","def","undefined","t8","t9","_temp2","t10","t11","t12","description","t13","e","namedType"],"sources":["../../src/components/fields-list.tsx"],"sourcesContent":["import { FC, useState } from 'react';\nimport {\n GraphQLNamedType,\n isObjectType,\n isInterfaceType,\n isInputObjectType,\n} from 'graphql';\nimport { Button, ChevronDownIcon, ChevronUpIcon } from '@graphiql/react';\nimport type { DocExplorerFieldDef } from '../context';\nimport { useDocExplorerActions } from '../context';\nimport { TypeLink } from './type-link';\nimport { renderType } from './utils';\nimport './fields-list.css';\n\ntype FieldsListProps = {\n type: GraphQLNamedType;\n activeFieldName?: string;\n};\n\nexport const FieldsList: FC<FieldsListProps> = ({ type, activeFieldName }) => {\n const [expanded, setExpanded] = useState(true);\n const [showDeprecated, setShowDeprecated] = useState(false);\n\n if (\n !isObjectType(type) &&\n !isInterfaceType(type) &&\n !isInputObjectType(type)\n ) {\n return null;\n }\n\n const fieldMap = type.getFields();\n const fields: DocExplorerFieldDef[] = [];\n const deprecatedFields: DocExplorerFieldDef[] = [];\n\n for (const field of Object.values(fieldMap)) {\n if (field.deprecationReason) {\n deprecatedFields.push(field);\n } else {\n fields.push(field);\n }\n }\n\n const totalCount =\n fields.length + (showDeprecated ? deprecatedFields.length : 0);\n\n return (\n <div className=\"graphiql-doc-explorer-fields-list\">\n <button\n type=\"button\"\n className=\"graphiql-doc-explorer-fields-list-header\"\n onClick={() => setExpanded(e => !e)}\n aria-expanded={expanded}\n >\n {expanded ? (\n <ChevronDownIcon aria-hidden=\"true\" />\n ) : (\n <ChevronUpIcon aria-hidden=\"true\" />\n )}\n <span>\n FIELDS{' '}\n <span className=\"graphiql-doc-explorer-fields-list-count\">\n · {totalCount}\n </span>\n </span>\n </button>\n {expanded && (\n <div className=\"graphiql-doc-explorer-fields-list-body\">\n {fields.map(field => (\n <FieldRow\n key={field.name}\n field={field}\n isActive={field.name === activeFieldName}\n />\n ))}\n {deprecatedFields.length > 0 &&\n (showDeprecated || fields.length === 0 ? (\n deprecatedFields.map(field => (\n <FieldRow\n key={field.name}\n field={field}\n isActive={field.name === activeFieldName}\n deprecated\n />\n ))\n ) : (\n <Button\n type=\"button\"\n onClick={() => setShowDeprecated(true)}\n className=\"graphiql-doc-explorer-fields-list-show-deprecated\"\n >\n Show Deprecated Fields\n </Button>\n ))}\n </div>\n )}\n </div>\n );\n};\n\ntype FieldRowProps = {\n field: DocExplorerFieldDef;\n isActive: boolean;\n deprecated?: boolean;\n};\n\nconst FieldRow: FC<FieldRowProps> = ({ field, isActive, deprecated }) => {\n const { push } = useDocExplorerActions();\n\n return (\n <button\n type=\"button\"\n className={[\n 'graphiql-doc-explorer-field-row',\n isActive ? 'graphiql-doc-explorer-field-row--active' : '',\n deprecated ? 'graphiql-doc-explorer-field-row--deprecated' : '',\n ]\n .filter(Boolean)\n .join(' ')}\n onClick={() => push({ name: field.name, def: field })}\n aria-current={isActive ? 'true' : undefined}\n >\n <div className=\"graphiql-doc-explorer-field-row-sig\">\n <span className=\"graphiql-doc-explorer-field-row-name\">\n {field.name}\n </span>\n <span className=\"graphiql-doc-explorer-field-row-colon\">:</span>\n <span className=\"graphiql-doc-explorer-field-row-type\">\n {renderType(field.type, namedType => (\n <TypeLink type={namedType} />\n ))}\n </span>\n </div>\n {field.description && (\n <div className=\"graphiql-doc-explorer-field-row-desc\">\n {field.description}\n </div>\n )}\n </button>\n );\n};\n"],"mappings":";;;;;;;;;;AAmBA,IAAagB,cAAkCC,OAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAC,MAAA,EAAAL,MAAAC,oBAAAE;CAC9C,MAAA,CAAAG,UAAAC,eAAgCpB,SAAA,IAAa;CAC7C,MAAA,CAAAqB,gBAAAC,qBAA4CtB,SAAA,KAAc;CAAE,IAG1D,CAACE,aAAaW,IAAI,KAAC,CAClBV,gBAAgBU,IAAI,KAAC,CACrBT,kBAAkBS,IAAI,GAAC,OAAA;CAAA,IAAAU;CAAA,IAAAN,EAAA,OAAAJ,MAAA;EAKTU,KAAAV,KAAIW,UAAW;EAACP,EAAA,KAAAJ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