@graphiql/plugin-doc-explorer 1.0.0-beta.1 → 1.0.0-beta.2
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,54 +1,61 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { c } from "react-compiler-runtime";
|
|
3
1
|
/* empty css */
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
2
|
+
import { c } from "react-compiler-runtime";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/breadcrumb.tsx
|
|
5
|
+
var Breadcrumb = (t0) => {
|
|
6
|
+
const $ = c(8);
|
|
7
|
+
const { navStack, onNavigateTo } = t0;
|
|
8
|
+
if (navStack.length <= 1) return null;
|
|
9
|
+
let t1;
|
|
10
|
+
if ($[0] !== navStack || $[1] !== onNavigateTo) {
|
|
11
|
+
let t2;
|
|
12
|
+
if ($[3] !== navStack.length || $[4] !== onNavigateTo) {
|
|
13
|
+
t2 = (item, index) => {
|
|
14
|
+
const isLast = index === navStack.length - 1;
|
|
15
|
+
const depthClass = index === 0 ? "graphiql-doc-explorer-breadcrumb-root" : isLast ? "graphiql-doc-explorer-breadcrumb-current" : "graphiql-doc-explorer-breadcrumb-intermediate";
|
|
16
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
17
|
+
className: "graphiql-doc-explorer-breadcrumb-segment",
|
|
18
|
+
children: [index > 0 && /* @__PURE__ */ jsx("span", {
|
|
19
|
+
className: "graphiql-doc-explorer-breadcrumb-sep",
|
|
20
|
+
"aria-hidden": "true",
|
|
21
|
+
children: "›"
|
|
22
|
+
}), isLast ? /* @__PURE__ */ jsx("span", {
|
|
23
|
+
className: depthClass,
|
|
24
|
+
children: item.name
|
|
25
|
+
}) : /* @__PURE__ */ jsx("a", {
|
|
26
|
+
href: "#",
|
|
27
|
+
className: depthClass,
|
|
28
|
+
onClick: (event) => {
|
|
29
|
+
event.preventDefault();
|
|
30
|
+
onNavigateTo(index);
|
|
31
|
+
},
|
|
32
|
+
"aria-label": `Go back to ${item.name}`,
|
|
33
|
+
children: item.name
|
|
34
|
+
})]
|
|
35
|
+
}, index);
|
|
36
|
+
};
|
|
37
|
+
$[3] = navStack.length;
|
|
38
|
+
$[4] = onNavigateTo;
|
|
39
|
+
$[5] = t2;
|
|
40
|
+
} else t2 = $[5];
|
|
41
|
+
t1 = navStack.map(t2);
|
|
42
|
+
$[0] = navStack;
|
|
43
|
+
$[1] = onNavigateTo;
|
|
44
|
+
$[2] = t1;
|
|
45
|
+
} else t1 = $[2];
|
|
46
|
+
let t2;
|
|
47
|
+
if ($[6] !== t1) {
|
|
48
|
+
t2 = /* @__PURE__ */ jsx("nav", {
|
|
49
|
+
className: "graphiql-doc-explorer-breadcrumb",
|
|
50
|
+
"aria-label": "Schema navigation path",
|
|
51
|
+
children: t1
|
|
52
|
+
});
|
|
53
|
+
$[6] = t1;
|
|
54
|
+
$[7] = t2;
|
|
55
|
+
} else t2 = $[7];
|
|
56
|
+
return t2;
|
|
53
57
|
};
|
|
54
|
-
//#
|
|
58
|
+
//#endregion
|
|
59
|
+
export { Breadcrumb };
|
|
60
|
+
|
|
61
|
+
//# sourceMappingURL=breadcrumb.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumb.js","sources":["../../src/components/breadcrumb.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport type { DocExplorerNavStack } from '../context';\nimport './breadcrumb.css';\n\ntype BreadcrumbProps = {\n navStack: DocExplorerNavStack;\n onNavigateTo: (index: number) => void;\n};\n\nexport const Breadcrumb: FC<BreadcrumbProps> = ({ navStack, onNavigateTo }) => {\n if (navStack.length <= 1) {\n return null;\n }\n\n return (\n <nav\n className=\"graphiql-doc-explorer-breadcrumb\"\n aria-label=\"Schema navigation path\"\n >\n {navStack.map((item, index) => {\n const isLast = index === navStack.length - 1;\n const depthClass =\n index === 0\n ? 'graphiql-doc-explorer-breadcrumb-root'\n : isLast\n ? 'graphiql-doc-explorer-breadcrumb-current'\n : 'graphiql-doc-explorer-breadcrumb-intermediate';\n\n return (\n <span\n key={index}\n className=\"graphiql-doc-explorer-breadcrumb-segment\"\n >\n {index > 0 && (\n <span\n className=\"graphiql-doc-explorer-breadcrumb-sep\"\n aria-hidden=\"true\"\n >\n ›\n </span>\n )}\n {isLast ? (\n <span className={depthClass}>{item.name}</span>\n ) : (\n <a\n href=\"#\"\n className={depthClass}\n onClick={event => {\n event.preventDefault();\n onNavigateTo(index);\n }}\n aria-label={`Go back to ${item.name}`}\n >\n {item.name}\n </a>\n )}\n </span>\n );\n })}\n </nav>\n );\n};\n"],"
|
|
1
|
+
{"version":3,"file":"breadcrumb.js","names":["FC","DocExplorerNavStack","BreadcrumbProps","navStack","onNavigateTo","index","Breadcrumb","t0","$","_c","length","t1","t2","item","isLast","depthClass","name","event","preventDefault","map"],"sources":["../../src/components/breadcrumb.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport type { DocExplorerNavStack } from '../context';\nimport './breadcrumb.css';\n\ntype BreadcrumbProps = {\n navStack: DocExplorerNavStack;\n onNavigateTo: (index: number) => void;\n};\n\nexport const Breadcrumb: FC<BreadcrumbProps> = ({ navStack, onNavigateTo }) => {\n if (navStack.length <= 1) {\n return null;\n }\n\n return (\n <nav\n className=\"graphiql-doc-explorer-breadcrumb\"\n aria-label=\"Schema navigation path\"\n >\n {navStack.map((item, index) => {\n const isLast = index === navStack.length - 1;\n const depthClass =\n index === 0\n ? 'graphiql-doc-explorer-breadcrumb-root'\n : isLast\n ? 'graphiql-doc-explorer-breadcrumb-current'\n : 'graphiql-doc-explorer-breadcrumb-intermediate';\n\n return (\n <span\n key={index}\n className=\"graphiql-doc-explorer-breadcrumb-segment\"\n >\n {index > 0 && (\n <span\n className=\"graphiql-doc-explorer-breadcrumb-sep\"\n aria-hidden=\"true\"\n >\n ›\n </span>\n )}\n {isLast ? (\n <span className={depthClass}>{item.name}</span>\n ) : (\n <a\n href=\"#\"\n className={depthClass}\n onClick={event => {\n event.preventDefault();\n onNavigateTo(index);\n }}\n aria-label={`Go back to ${item.name}`}\n >\n {item.name}\n </a>\n )}\n </span>\n );\n })}\n </nav>\n );\n};\n"],"mappings":";;;;AASA,IAAaM,cAAkCC,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAC,MAAA,EAAAN,UAAAC,iBAAAG;CAA0B,IACpEJ,SAAQO,UAAA,GAAY,OAAA;CAAA,IAAAC;CAAA,IAAAH,EAAA,OAAAL,YAAAK,EAAA,OAAAJ,cAAA;EAAA,IAAAQ;EAAA,IAAAJ,EAAA,OAAAL,SAAAO,UAAAF,EAAA,OAAAJ,cAAA;GASNQ,MAAAC,MAAAR,UAAA;IACZ,MAAAS,SAAeT,UAAUF,SAAQO,SAAA;IACjC,MAAAK,aACEV,UAAK,IACD,0CACAS,SACE,6CACA;IAAgD,OAGtD,qBAAA,QAAA;KAEY,WAAA;KAFZ,UAAA,CAIGT,QAAK,KACJ,oBAAA,QAAA;MACY,WAAA;MACE,eAAA;MACb,UAAA;KAEM,CAAA,GAERS,SACC,oBAAA,QAAA;MAAiBC,WAAAA;MAAaF,UAAAA,KAAIG;KAAa,CAAA,IAE/C,oBAAA,KAAA;MACO,MAAA;MACMD,WAAAA;MACF,UAAAE,UAAA;OACPA,MAAKC,eAAgB;OACrBd,aAAaC,KAAK;MAAC;MAET,cAAA,cAAcQ,KAAIG;MAE7BH,UAAAA,KAAIG;KACH,CAAA,CAED;IA1BAX,GAAAA,KA0BA;GAAA;GAEVG,EAAA,KAAAL,SAAAO;GAAAF,EAAA,KAAAJ;GAAAI,EAAA,KAAAI;EAAA,OAAAA,KAAAJ,EAAA;EAvCAG,KAAAR,SAAQgB,IAAKP,EAuCb;EAACJ,EAAA,KAAAL;EAAAK,EAAA,KAAAJ;EAAAI,EAAA,KAAAG;CAAA,OAAAA,KAAAH,EAAA;CAAA,IAAAI;CAAA,IAAAJ,EAAA,OAAAG,IAAA;EA3CJC,KAAA,oBAAA,OAAA;GACY,WAAA;GACC,cAAA;GAEVD,UAAAA;EAwCG,CAAA;EAAAH,EAAA,KAAAG;EAAAH,EAAA,KAAAI;CAAA,OAAAA,KAAAJ,EAAA;CAAA,OA5CNI;AA4CM"}
|
|
@@ -1,78 +1,67 @@
|
|
|
1
|
-
|
|
1
|
+
/* empty css */
|
|
2
2
|
import { c } from "react-compiler-runtime";
|
|
3
3
|
import { astFromValue, print } from "graphql";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
return print(ast);
|
|
10
|
-
};
|
|
11
|
-
const DefaultValue = (t0) => {
|
|
12
|
-
const $ = c(12);
|
|
13
|
-
const {
|
|
14
|
-
field
|
|
15
|
-
} = t0;
|
|
16
|
-
if (!("defaultValue" in field) || field.defaultValue === void 0) {
|
|
17
|
-
return null;
|
|
18
|
-
}
|
|
19
|
-
const t1 = field.defaultValue;
|
|
20
|
-
const t2 = field.type;
|
|
21
|
-
let t3;
|
|
22
|
-
let t4;
|
|
23
|
-
let t5;
|
|
24
|
-
let t6;
|
|
25
|
-
if ($[0] !== field.defaultValue || $[1] !== field.type) {
|
|
26
|
-
t6 = Symbol.for("react.early_return_sentinel");
|
|
27
|
-
bb0: {
|
|
28
|
-
const ast = astFromValue(t1, t2);
|
|
29
|
-
if (!ast) {
|
|
30
|
-
t6 = null;
|
|
31
|
-
break bb0;
|
|
32
|
-
}
|
|
33
|
-
t5 = " = ";
|
|
34
|
-
t3 = "graphiql-doc-explorer-default-value";
|
|
35
|
-
t4 = printDefault(ast);
|
|
36
|
-
}
|
|
37
|
-
$[0] = field.defaultValue;
|
|
38
|
-
$[1] = field.type;
|
|
39
|
-
$[2] = t3;
|
|
40
|
-
$[3] = t4;
|
|
41
|
-
$[4] = t5;
|
|
42
|
-
$[5] = t6;
|
|
43
|
-
} else {
|
|
44
|
-
t3 = $[2];
|
|
45
|
-
t4 = $[3];
|
|
46
|
-
t5 = $[4];
|
|
47
|
-
t6 = $[5];
|
|
48
|
-
}
|
|
49
|
-
if (t6 !== Symbol.for("react.early_return_sentinel")) {
|
|
50
|
-
return t6;
|
|
51
|
-
}
|
|
52
|
-
let t7;
|
|
53
|
-
if ($[6] !== t3 || $[7] !== t4) {
|
|
54
|
-
t7 = /* @__PURE__ */ jsx("span", { className: t3, children: t4 });
|
|
55
|
-
$[6] = t3;
|
|
56
|
-
$[7] = t4;
|
|
57
|
-
$[8] = t7;
|
|
58
|
-
} else {
|
|
59
|
-
t7 = $[8];
|
|
60
|
-
}
|
|
61
|
-
let t8;
|
|
62
|
-
if ($[9] !== t5 || $[10] !== t7) {
|
|
63
|
-
t8 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
64
|
-
t5,
|
|
65
|
-
t7
|
|
66
|
-
] });
|
|
67
|
-
$[9] = t5;
|
|
68
|
-
$[10] = t7;
|
|
69
|
-
$[11] = t8;
|
|
70
|
-
} else {
|
|
71
|
-
t8 = $[11];
|
|
72
|
-
}
|
|
73
|
-
return t8;
|
|
4
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/default-value.tsx
|
|
6
|
+
var printDefault = (ast) => {
|
|
7
|
+
if (!ast) return "";
|
|
8
|
+
return print(ast);
|
|
74
9
|
};
|
|
75
|
-
|
|
76
|
-
|
|
10
|
+
var DefaultValue = (t0) => {
|
|
11
|
+
const $ = c(12);
|
|
12
|
+
const { field } = t0;
|
|
13
|
+
if (!("defaultValue" in field) || field.defaultValue === void 0) return null;
|
|
14
|
+
const t1 = field.defaultValue;
|
|
15
|
+
const t2 = field.type;
|
|
16
|
+
let t3;
|
|
17
|
+
let t4;
|
|
18
|
+
let t5;
|
|
19
|
+
let t6;
|
|
20
|
+
if ($[0] !== field.defaultValue || $[1] !== field.type) {
|
|
21
|
+
t6 = Symbol.for("react.early_return_sentinel");
|
|
22
|
+
bb0: {
|
|
23
|
+
const ast = astFromValue(t1, t2);
|
|
24
|
+
if (!ast) {
|
|
25
|
+
t6 = null;
|
|
26
|
+
break bb0;
|
|
27
|
+
}
|
|
28
|
+
t5 = " = ";
|
|
29
|
+
t3 = "graphiql-doc-explorer-default-value";
|
|
30
|
+
t4 = printDefault(ast);
|
|
31
|
+
}
|
|
32
|
+
$[0] = field.defaultValue;
|
|
33
|
+
$[1] = field.type;
|
|
34
|
+
$[2] = t3;
|
|
35
|
+
$[3] = t4;
|
|
36
|
+
$[4] = t5;
|
|
37
|
+
$[5] = t6;
|
|
38
|
+
} else {
|
|
39
|
+
t3 = $[2];
|
|
40
|
+
t4 = $[3];
|
|
41
|
+
t5 = $[4];
|
|
42
|
+
t6 = $[5];
|
|
43
|
+
}
|
|
44
|
+
if (t6 !== Symbol.for("react.early_return_sentinel")) return t6;
|
|
45
|
+
let t7;
|
|
46
|
+
if ($[6] !== t3 || $[7] !== t4) {
|
|
47
|
+
t7 = /* @__PURE__ */ jsx("span", {
|
|
48
|
+
className: t3,
|
|
49
|
+
children: t4
|
|
50
|
+
});
|
|
51
|
+
$[6] = t3;
|
|
52
|
+
$[7] = t4;
|
|
53
|
+
$[8] = t7;
|
|
54
|
+
} else t7 = $[8];
|
|
55
|
+
let t8;
|
|
56
|
+
if ($[9] !== t5 || $[10] !== t7) {
|
|
57
|
+
t8 = /* @__PURE__ */ jsxs(Fragment, { children: [t5, t7] });
|
|
58
|
+
$[9] = t5;
|
|
59
|
+
$[10] = t7;
|
|
60
|
+
$[11] = t8;
|
|
61
|
+
} else t8 = $[11];
|
|
62
|
+
return t8;
|
|
77
63
|
};
|
|
78
|
-
//#
|
|
64
|
+
//#endregion
|
|
65
|
+
export { DefaultValue };
|
|
66
|
+
|
|
67
|
+
//# sourceMappingURL=default-value.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-value.js","sources":["../../src/components/default-value.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { astFromValue, print, ValueNode } from 'graphql';\nimport type { DocExplorerFieldDef } from '../context';\nimport './default-value.css';\n\nconst printDefault = (ast?: ValueNode | null): string => {\n if (!ast) {\n return '';\n }\n return print(ast);\n};\n\ntype DefaultValueProps = {\n /**\n * The field or argument for which to render the default value.\n */\n field: DocExplorerFieldDef;\n};\n\nexport const DefaultValue: FC<DefaultValueProps> = ({ field }) => {\n if (!('defaultValue' in field) || field.defaultValue === undefined) {\n return null;\n }\n const ast = astFromValue(field.defaultValue, field.type);\n if (!ast) {\n return null;\n }\n return (\n <>\n {' = '}\n <span className=\"graphiql-doc-explorer-default-value\">\n {printDefault(ast)}\n </span>\n </>\n );\n};\n"],"
|
|
1
|
+
{"version":3,"file":"default-value.js","names":["FC","astFromValue","print","ValueNode","DocExplorerFieldDef","printDefault","ast","DefaultValueProps","field","DefaultValue","t0","$","_c","defaultValue","undefined","t1","t2","type","t3","t4","t5","t6","Symbol","for","bb0","t7","t8"],"sources":["../../src/components/default-value.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { astFromValue, print, ValueNode } from 'graphql';\nimport type { DocExplorerFieldDef } from '../context';\nimport './default-value.css';\n\nconst printDefault = (ast?: ValueNode | null): string => {\n if (!ast) {\n return '';\n }\n return print(ast);\n};\n\ntype DefaultValueProps = {\n /**\n * The field or argument for which to render the default value.\n */\n field: DocExplorerFieldDef;\n};\n\nexport const DefaultValue: FC<DefaultValueProps> = ({ field }) => {\n if (!('defaultValue' in field) || field.defaultValue === undefined) {\n return null;\n }\n const ast = astFromValue(field.defaultValue, field.type);\n if (!ast) {\n return null;\n }\n return (\n <>\n {' = '}\n <span className=\"graphiql-doc-explorer-default-value\">\n {printDefault(ast)}\n </span>\n </>\n );\n};\n"],"mappings":";;;;;AAKA,IAAMK,gBAAgBC,QAAmC;CACvD,IAAI,CAACA,KACH,OAAO;CAET,OAAOJ,MAAMI,GAAG;AAClB;AASA,IAAaG,gBAAsCC,OAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAC,MAAA,EAAAJ,UAAAE;CAAS,IACvD,EAAE,kBAAkBF,UAAUA,MAAKK,iBAAAC,KAAAA,GAA2B,OAAA;CAGzC,MAAAC,KAAAP,MAAKK;CAAe,MAAAG,KAAAR,MAAKS;CAAK,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAV,EAAA,OAAAH,MAAAK,gBAAAF,EAAA,OAAAH,MAAAS,MAAA;EAE9CI,KAAAC,OAAAC,IAAA,6BAAG;EAACC,KAAA;GAFb,MAAAlB,MAAYL,aAAac,IAAoBC,EAAU;GAAE,IAAA,CACpDV,KAAG;IACCe,KAAA;IAAI,MAAAG;GAAA;GAIRJ,KAAA;GACeF,KAAA;GACbC,KAAAd,aAAaC,GAAG;EAAC;EAAAK,EAAA,KAAAH,MAAAK;EAAAF,EAAA,KAAAH,MAAAS;EAAAN,EAAA,KAAAO;EAAAP,EAAA,KAAAQ;EAAAR,EAAA,KAAAS;EAAAT,EAAA,KAAAU;CAAA,OAAA;EAAAH,KAAAP,EAAA;EAAAQ,KAAAR,EAAA;EAAAS,KAAAT,EAAA;EAAAU,KAAAV,EAAA;CAAA;CAAA,IAAAU,OAAAC,OAAAC,IAAA,6BAAA,GAAA,OAAAF;CAAA,IAAAI;CAAA,IAAAd,EAAA,OAAAO,MAAAP,EAAA,OAAAQ,IAAA;EADpBM,KAAA,oBAAA,QAAA;GAAgB,WAAAP;GACbC,UAAAA;EACI,CAAA;EAAAR,EAAA,KAAAO;EAAAP,EAAA,KAAAQ;EAAAR,EAAA,KAAAc;CAAA,OAAAA,KAAAd,EAAA;CAAA,IAAAe;CAAA,IAAAf,EAAA,OAAAS,MAAAT,EAAA,QAAAc,IAAA;EAJTC,KAAA,qBAAA,UAAA,EAAA,UAAA,CACGN,IACDK,EAEO,EAAA,CAAA;EACNd,EAAA,KAAAS;EAAAT,EAAA,MAAAc;EAAAd,EAAA,MAAAe;CAAA,OAAAA,KAAAf,EAAA;CAAA,OALHe;AAKG"}
|
|
@@ -1,24 +1,30 @@
|
|
|
1
|
-
|
|
1
|
+
/* empty css */
|
|
2
2
|
import { c } from "react-compiler-runtime";
|
|
3
3
|
import { MarkdownContent } from "@graphiql/react";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/deprecation-reason.tsx
|
|
6
|
+
var DeprecationReason = (props) => {
|
|
7
|
+
const $ = c(3);
|
|
8
|
+
let t0;
|
|
9
|
+
if ($[0] !== props.children || $[1] !== props.preview) {
|
|
10
|
+
t0 = props.children ? /* @__PURE__ */ jsxs("div", {
|
|
11
|
+
className: "graphiql-doc-explorer-deprecation",
|
|
12
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
13
|
+
className: "graphiql-doc-explorer-deprecation-label",
|
|
14
|
+
children: "Deprecated"
|
|
15
|
+
}), /* @__PURE__ */ jsx(MarkdownContent, {
|
|
16
|
+
type: "deprecation",
|
|
17
|
+
onlyShowFirstChild: props.preview ?? true,
|
|
18
|
+
children: props.children
|
|
19
|
+
})]
|
|
20
|
+
}) : null;
|
|
21
|
+
$[0] = props.children;
|
|
22
|
+
$[1] = props.preview;
|
|
23
|
+
$[2] = t0;
|
|
24
|
+
} else t0 = $[2];
|
|
25
|
+
return t0;
|
|
23
26
|
};
|
|
24
|
-
//#
|
|
27
|
+
//#endregion
|
|
28
|
+
export { DeprecationReason };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=deprecation-reason.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deprecation-reason.js","sources":["../../src/components/deprecation-reason.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { MarkdownContent } from '@graphiql/react';\nimport './deprecation-reason.css';\n\ntype DeprecationReasonProps = {\n /**\n * The deprecation reason as Markdown string.\n */\n children?: string | null;\n preview?: boolean;\n};\n\nexport const DeprecationReason: FC<DeprecationReasonProps> = props => {\n return props.children ? (\n <div className=\"graphiql-doc-explorer-deprecation\">\n <div className=\"graphiql-doc-explorer-deprecation-label\">Deprecated</div>\n <MarkdownContent\n type=\"deprecation\"\n onlyShowFirstChild={props.preview ?? true}\n >\n {props.children}\n </MarkdownContent>\n </div>\n ) : null;\n};\n"],"
|
|
1
|
+
{"version":3,"file":"deprecation-reason.js","names":["FC","MarkdownContent","DeprecationReasonProps","children","preview","DeprecationReason","props","$","_c","t0"],"sources":["../../src/components/deprecation-reason.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { MarkdownContent } from '@graphiql/react';\nimport './deprecation-reason.css';\n\ntype DeprecationReasonProps = {\n /**\n * The deprecation reason as Markdown string.\n */\n children?: string | null;\n preview?: boolean;\n};\n\nexport const DeprecationReason: FC<DeprecationReasonProps> = props => {\n return props.children ? (\n <div className=\"graphiql-doc-explorer-deprecation\">\n <div className=\"graphiql-doc-explorer-deprecation-label\">Deprecated</div>\n <MarkdownContent\n type=\"deprecation\"\n onlyShowFirstChild={props.preview ?? true}\n >\n {props.children}\n </MarkdownContent>\n </div>\n ) : null;\n};\n"],"mappings":";;;;;AAYA,IAAaK,qBAAgDC,UAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAA,IAAAC;CAAA,IAAAF,EAAA,OAAAD,MAAAH,YAAAI,EAAA,OAAAD,MAAAF,SAAA;EACpDK,KAAAH,MAAKH,WACV,qBAAA,OAAA;GAAe,WAAA;GAAf,UAAA,CACE,oBAAA,OAAA;IAAe,WAAA;IAA0C,UAAA;GAAgB,CAAA,GACzE,oBAAC,iBAAD;IACO,MAAA;IACe,oBAAAG,MAAKF,WAAA;IAExBE,UAAAA,MAAKH;GAJQ,CAAA,CAMZ;EAAA,CAAA,IAAA;EACAI,EAAA,KAAAD,MAAAH;EAAAI,EAAA,KAAAD,MAAAF;EAAAG,EAAA,KAAAE;CAAA,OAAAA,KAAAF,EAAA;CAAA,OAVDE;AAUC"}
|
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
import { jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { c } from "react-compiler-runtime";
|
|
3
1
|
/* empty css */
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
return t1;
|
|
21
|
-
};
|
|
22
|
-
export {
|
|
23
|
-
Directive
|
|
2
|
+
import { c } from "react-compiler-runtime";
|
|
3
|
+
import { jsxs } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/directive.tsx
|
|
5
|
+
var Directive = (t0) => {
|
|
6
|
+
const $ = c(2);
|
|
7
|
+
const { directive } = t0;
|
|
8
|
+
let t1;
|
|
9
|
+
if ($[0] !== directive.name.value) {
|
|
10
|
+
t1 = /* @__PURE__ */ jsxs("span", {
|
|
11
|
+
className: "graphiql-doc-explorer-directive",
|
|
12
|
+
children: ["@", directive.name.value]
|
|
13
|
+
});
|
|
14
|
+
$[0] = directive.name.value;
|
|
15
|
+
$[1] = t1;
|
|
16
|
+
} else t1 = $[1];
|
|
17
|
+
return t1;
|
|
24
18
|
};
|
|
25
|
-
//#
|
|
19
|
+
//#endregion
|
|
20
|
+
export { Directive };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=directive.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directive.js","sources":["../../src/components/directive.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport type { DirectiveNode } from 'graphql';\nimport './directive.css';\n\ntype DirectiveProps = {\n /**\n * The directive that should be rendered.\n */\n directive: DirectiveNode;\n};\n\nexport const Directive: FC<DirectiveProps> = ({ directive }) => {\n return (\n <span className=\"graphiql-doc-explorer-directive\">\n @{directive.name.value}\n </span>\n );\n};\n"],"
|
|
1
|
+
{"version":3,"file":"directive.js","names":["FC","DirectiveNode","DirectiveProps","directive","Directive","t0","$","_c","t1","name","value"],"sources":["../../src/components/directive.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport type { DirectiveNode } from 'graphql';\nimport './directive.css';\n\ntype DirectiveProps = {\n /**\n * The directive that should be rendered.\n */\n directive: DirectiveNode;\n};\n\nexport const Directive: FC<DirectiveProps> = ({ directive }) => {\n return (\n <span className=\"graphiql-doc-explorer-directive\">\n @{directive.name.value}\n </span>\n );\n};\n"],"mappings":";;;;AAWA,IAAaI,aAAgCC,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAC,MAAA,EAAAJ,cAAAE;CAAa,IAAAG;CAAA,IAAAF,EAAA,OAAAH,UAAAM,KAAAC,OAAA;EAEvDF,KAAA,qBAAA,QAAA;GAAgB,WAAA;GAAhB,UAAA,CAAkD,KAC9CL,UAASM,KAAAC,KACN;;EAAAJ,EAAA,KAAAH,UAAAM,KAAAC;EAAAJ,EAAA,KAAAE;CAAA,OAAAA,KAAAF,EAAA;CAAA,OAFPE;AAEO"}
|