@graphiql/plugin-doc-explorer 0.1.0-canary-65327511.0 → 0.1.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 (42) hide show
  1. package/dist/components/argument.d.ts +2 -1
  2. package/dist/components/argument.js +3 -3
  3. package/dist/components/argument.js.map +1 -1
  4. package/dist/components/default-value.d.ts +4 -3
  5. package/dist/components/default-value.js +2 -2
  6. package/dist/components/default-value.js.map +1 -1
  7. package/dist/components/deprecation-reason.d.ts +3 -2
  8. package/dist/components/deprecation-reason.js +2 -2
  9. package/dist/components/deprecation-reason.js.map +1 -1
  10. package/dist/components/directive.d.ts +2 -1
  11. package/dist/components/directive.js +2 -2
  12. package/dist/components/directive.js.map +1 -1
  13. package/dist/components/doc-explorer.d.ts +2 -1
  14. package/dist/components/doc-explorer.js +116 -126
  15. package/dist/components/doc-explorer.js.map +1 -1
  16. package/dist/components/field-documentation.d.ts +4 -3
  17. package/dist/components/field-documentation.js +66 -71
  18. package/dist/components/field-documentation.js.map +1 -1
  19. package/dist/components/field-link.d.ts +4 -3
  20. package/dist/components/field-link.js +21 -27
  21. package/dist/components/field-link.js.map +1 -1
  22. package/dist/components/schema-documentation.d.ts +2 -1
  23. package/dist/components/schema-documentation.js +98 -95
  24. package/dist/components/schema-documentation.js.map +1 -1
  25. package/dist/components/search.js +130 -151
  26. package/dist/components/search.js.map +1 -1
  27. package/dist/components/section.d.ts +2 -2
  28. package/dist/components/section.js +37 -33
  29. package/dist/components/section.js.map +1 -1
  30. package/dist/components/type-documentation.d.ts +2 -1
  31. package/dist/components/type-documentation.js +47 -44
  32. package/dist/components/type-documentation.js.map +1 -1
  33. package/dist/components/type-link.d.ts +2 -1
  34. package/dist/components/type-link.js +19 -26
  35. package/dist/components/type-link.js.map +1 -1
  36. package/dist/context.d.ts +47 -28
  37. package/dist/context.js +214 -142
  38. package/dist/context.js.map +1 -1
  39. package/dist/index.d.ts +2 -2
  40. package/dist/index.js +5 -4
  41. package/dist/index.js.map +1 -1
  42. package/package.json +4 -3
@@ -1,3 +1,4 @@
1
+ import { FC } from 'react';
1
2
  import { GraphQLArgument } from 'graphql';
2
3
  declare type ArgumentProps = {
3
4
  /**
@@ -17,5 +18,5 @@ declare type ArgumentProps = {
17
18
  */
18
19
  inline?: boolean;
19
20
  };
20
- export declare function Argument({ arg, showDefaultValue, inline }: ArgumentProps): import("react/jsx-runtime").JSX.Element;
21
+ export declare const Argument: FC<ArgumentProps>;
21
22
  export {};
@@ -1,10 +1,10 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { c } from "react-compiler-runtime";
3
+ import { MarkdownContent } from "@graphiql/react";
3
4
  import { DefaultValue } from "./default-value.js";
4
5
  import { TypeLink } from "./type-link.js";
5
6
  /* empty css */
6
- import { MarkdownContent } from "@graphiql/react";
7
- function Argument(t0) {
7
+ const Argument = (t0) => {
8
8
  const $ = c(19);
9
9
  const {
10
10
  arg,
@@ -89,7 +89,7 @@ function Argument(t0) {
89
89
  t7 = $[18];
90
90
  }
91
91
  return t7;
92
- }
92
+ };
93
93
  export {
94
94
  Argument
95
95
  };
@@ -1 +1 @@
1
- {"version":3,"file":"argument.js","sources":["../../src/components/argument.tsx"],"sourcesContent":["import { GraphQLArgument } from 'graphql';\n\nimport { DefaultValue } from './default-value';\nimport { TypeLink } from './type-link';\n\nimport './argument.css';\nimport { MarkdownContent } from '@graphiql/react';\n\ntype ArgumentProps = {\n /**\n * The argument that should be rendered.\n */\n arg: GraphQLArgument;\n /**\n * Toggle if the default value for the argument is shown (if there is one)\n * @default false\n */\n showDefaultValue?: boolean;\n /**\n * Toggle whether to render the whole argument including description and\n * deprecation reason (`false`) or to just render the argument name, type,\n * and default value in a single line (`true`).\n * @default false\n */\n inline?: boolean;\n};\n\nexport function Argument({ arg, showDefaultValue, inline }: ArgumentProps) {\n const definition = (\n <span>\n <span className=\"graphiql-doc-explorer-argument-name\">{arg.name}</span>\n {': '}\n <TypeLink type={arg.type} />\n {showDefaultValue !== false && <DefaultValue field={arg} />}\n </span>\n );\n if (inline) {\n return definition;\n }\n return (\n <div className=\"graphiql-doc-explorer-argument\">\n {definition}\n {arg.description ? (\n <MarkdownContent type=\"description\">{arg.description}</MarkdownContent>\n ) : null}\n {arg.deprecationReason ? (\n <div className=\"graphiql-doc-explorer-argument-deprecation\">\n <div className=\"graphiql-doc-explorer-argument-deprecation-label\">\n Deprecated\n </div>\n <MarkdownContent type=\"deprecation\">\n {arg.deprecationReason}\n </MarkdownContent>\n </div>\n ) : null}\n </div>\n );\n}\n"],"names":["Argument","t0","$","_c","arg","showDefaultValue","inline","t1","name","t2","type","t3","t4","definition","t5","description","t6","deprecationReason","t7"],"mappings":";;;;;;AA2BO,SAAAA,SAAAC,IAAA;AAAAC,QAAAA,IAAAC,EAAA,EAAA;AAAkB,QAAA;AAAA,IAAAC;AAAAA,IAAAC;AAAAA,IAAAC;AAAAA,EAAAA,IAAAL;AAAgDM,MAAAA;AAAA,MAAAL,EAAA,CAAA,MAAAE,IAAAI,MAAA;AAGnED,SAAuE,oBAAA,QAAA,EAAvD,WAAA,uCAAuCH,cAAGI,MAAM;AAAO,MAAA,CAAA,IAAAJ,IAAAI;AAAAN,WAAAK;AAAAA,EAAAA,OAAA;AAAAA,SAAAL,EAAA,CAAA;AAAA,EAAA;AAAAO,MAAAA;AAAA,MAAAP,EAAA,CAAA,MAAAE,IAAAM,MAAA;AAEvED,SAAC,oBAAA,UAAA,EAAe,MAAAL,IAAGM,MAAS;AAAA,MAAA,CAAA,IAAAN,IAAAM;AAAAR,WAAAO;AAAAA,EAAAA,OAAA;AAAAA,SAAAP,EAAA,CAAA;AAAA,EAAA;AAAAS,MAAAA;AAAA,MAAAT,EAAAE,CAAAA,MAAAA,OAAAF,SAAAG,kBAAA;AAC3BM,SAAAN,qBAAgB,SAAe,oBAAA,cAAA,EAAoBD,OAAE,KAAK;AAAAF,WAAAE;AAAAF,WAAAG;AAAAH,WAAAS;AAAAA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A,MACAC;AAAAA,MAGAE;AAAAA,IAAAA,GAUH;AAAMd,YAAAW;AAAAX,YAAAY;AAAAZ,YAAAc;AAAAd,YAAAgB;AAAAA,EAAAA,OAAA;AAAAA,SAAAhB,EAAA,EAAA;AAAA,EAAA;AAfNgB,SAAAA;AAeM;"}
1
+ {"version":3,"file":"argument.js","sources":["../../src/components/argument.tsx"],"sourcesContent":["import { FC } from 'react';\nimport { GraphQLArgument } from 'graphql';\nimport { MarkdownContent } from '@graphiql/react';\nimport { DefaultValue } from './default-value';\nimport { TypeLink } from './type-link';\nimport './argument.css';\n\ntype ArgumentProps = {\n /**\n * The argument that should be rendered.\n */\n arg: GraphQLArgument;\n /**\n * Toggle if the default value for the argument is shown (if there is one)\n * @default false\n */\n showDefaultValue?: boolean;\n /**\n * Toggle whether to render the whole argument including description and\n * deprecation reason (`false`) or to just render the argument name, type,\n * and default value in a single line (`true`).\n * @default false\n */\n inline?: boolean;\n};\n\nexport const Argument: FC<ArgumentProps> = ({\n arg,\n showDefaultValue,\n inline,\n}) => {\n const definition = (\n <span>\n <span className=\"graphiql-doc-explorer-argument-name\">{arg.name}</span>\n {': '}\n <TypeLink type={arg.type} />\n {showDefaultValue !== false && <DefaultValue field={arg} />}\n </span>\n );\n if (inline) {\n return definition;\n }\n return (\n <div className=\"graphiql-doc-explorer-argument\">\n {definition}\n {arg.description ? (\n <MarkdownContent type=\"description\">{arg.description}</MarkdownContent>\n ) : null}\n {arg.deprecationReason ? (\n <div className=\"graphiql-doc-explorer-argument-deprecation\">\n <div className=\"graphiql-doc-explorer-argument-deprecation-label\">\n Deprecated\n </div>\n <MarkdownContent type=\"deprecation\">\n {arg.deprecationReason}\n </MarkdownContent>\n </div>\n ) : null}\n </div>\n );\n};\n"],"names":["Argument","t0","$","_c","arg","showDefaultValue","inline","t1","name","t2","type","t3","t4","definition","t5","description","t6","deprecationReason","t7"],"mappings":";;;;;;AA0BO,MAAMA,WAA8BC,CAAA,OAAA;AAAAC,QAAAA,IA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dX,SAAAA,IAAGW,cACD,oBAAA,iBAAA,EAAqB,MAAA,eAAeX,UAAAA,IAAGW,aAAa,IAC/C;AAAA,MAAA,EAAA,IAAAX,IAAAW;AAAAb,YAAAY;AAAAA,EAAAA,OAAA;AAAAA,SAAAZ,EAAA,EAAA;AAAA,EAAA;AAAAc,MAAAA;AAAA,MAAAd,EAAA,EAAA,MAAAE,IAAAa,mBAAA;AACPD,SAAAZ,IAAGa,kDACa,WAAA,8CACb,UAAA;AAAA,MAEM,oBAAA,OAAA,EAFS,WAAA,oDAAmD,UAElE,cAAA;AAAA,MACC,oBAAA,iBAAA,EAAqB,MAAA,eACnBb,cAAGa,kBACN,CAAA;AAAA,IAAA,EAAA,CACF,IACM;AAAA,MAAA,EAAA,IAAAb,IAAAa;AAAAf,YAAAc;AAAAA,EAAAA,OAAA;AAAAA,SAAAd,EAAA,EAAA;AAAA,EAAA;AAAAgB,MAAAA;AAAAhB,MAAAA,EAAAW,EAAAA,MAAAA,cAAAX,UAAAY,MAAAZ,EAAA,EAAA,MAAAc,IAAA;AACJ,SAAA,qBAAA,OAfS,EAAA,WAAA,kCACZH,UAAAA;AAAAA,MAAAA;AAAAA,MACAC;AAAAA,MAGAE;AAAAA,IAAAA,GAUH;AAAMd,YAAAW;AAAAX,YAAAY;AAAAZ,YAAAc;AAAAd,YAAAgB;AAAAA,EAAAA,OAAA;AAAAA,SAAAhB,EAAA,EAAA;AAAA,EAAA;AAfNgB,SAAAA;AAeM;"}
@@ -1,9 +1,10 @@
1
- import { ExplorerFieldDef } from '../context';
1
+ import { FC } from 'react';
2
+ import { DocExplorerFieldDef } from '../context';
2
3
  declare type DefaultValueProps = {
3
4
  /**
4
5
  * The field or argument for which to render the default value.
5
6
  */
6
- field: ExplorerFieldDef;
7
+ field: DocExplorerFieldDef;
7
8
  };
8
- export declare function DefaultValue({ field }: DefaultValueProps): import("react/jsx-runtime").JSX.Element | null;
9
+ export declare const DefaultValue: FC<DefaultValueProps>;
9
10
  export {};
@@ -8,7 +8,7 @@ const printDefault = (ast) => {
8
8
  }
9
9
  return print(ast);
10
10
  };
11
- function DefaultValue(t0) {
11
+ const DefaultValue = (t0) => {
12
12
  const $ = c(12);
13
13
  const {
14
14
  field
@@ -71,7 +71,7 @@ function DefaultValue(t0) {
71
71
  t8 = $[11];
72
72
  }
73
73
  return t8;
74
- }
74
+ };
75
75
  export {
76
76
  DefaultValue
77
77
  };
@@ -1 +1 @@
1
- {"version":3,"file":"default-value.js","sources":["../../src/components/default-value.tsx"],"sourcesContent":["import { astFromValue, print, ValueNode } from 'graphql';\n\nimport { ExplorerFieldDef } from '../context';\n\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: ExplorerFieldDef;\n};\n\nexport function DefaultValue({ field }: DefaultValueProps) {\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"],"names":["printDefault","ast","print","DefaultValue","t0","$","_c","field","defaultValue","undefined","t1","t2","type","t3","t4","t5","t6","Symbol","for","astFromValue","bb0","t7","t8"],"mappings":";;;;AAMA,MAAMA,eAAeA,CAACC,QAAmC;AACvD,MAAI,CAACA,KAAK;AACD,WAAA;AAAA,EAAA;AAET,SAAOC,MAAMD,GAAG;AAClB;AASO,SAAAE,aAAAC,IAAA;AAAAC,QAAAA,IAAAC,EAAA,EAAA;AAAsB,QAAA;AAAA,IAAAC;AAAAA,EAAAA,IAAAH;AAA4B,MACnD,EAAE,kBAAkBG,UAAUA,MAAKC,iBAAAC,QAA2B;AAAA,WAAA;AAAA,EAAA;AAGzC,QAAAC,KAAAH,MAAKC;AAAe,QAAAG,KAAAJ,MAAKK;AAAKC,MA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file":"default-value.js","sources":["../../src/components/default-value.tsx"],"sourcesContent":["import { FC } from 'react';\nimport { astFromValue, print, ValueNode } from 'graphql';\nimport { 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"],"names":["printDefault","ast","print","DefaultValue","t0","$","_c","field","defaultValue","undefined","t1","t2","type","t3","t4","t5","t6","Symbol","for","astFromValue","bb0","t7","t8"],"mappings":";;;;AAKA,MAAMA,eAAeA,CAACC,QAAmC;AACvD,MAAI,CAACA,KAAK;AACD,WAAA;AAAA,EAAA;AAET,SAAOC,MAAMD,GAAG;AAClB;AASO,MAAME,eAAsCC,CAAA,OAAA;AAAAC,QAAAA,IAAAC,EAAA,EAAA;AAAC,QAAA;AAAA,IAAAC;AAAAA,EAAAA,IAAAH;AAAS,MACvD,EAAE,kBAAkBG,UAAUA,MAAKC,iBAAAC,QAA2B;AAAA,WAAA;AAAA,EAAA;AAGzC,QAAAC,KAAAH,MAAKC;AAAe,QAAAG,KAAAJ,MAAKK;AAAKC,MAAAA;AAAAC,MAAAA;AAAAC,MAAAA;AAAAC,MAAAA;AAAAX,MAAAA,EAAAE,CAAAA,MAAAA,MAAAC,gBAAAH,EAAA,CAAA,MAAAE,MAAAK,MAAA;AAE9CK,SAAAA,OAAAC,iCAAG;AAAC,SAAA;AAFbjB,YAAAA,MAAYkB,aAAaT,IAAoBC,EAAU;AAAE,UAAA,CACpDV,KAAG;AACC,aAAA;AAAImB,cAAAA;AAAAA,MAAAA;AAIH,WAAA;AAC+C,WAAA;AAClDN,WAAAd,aAAaC,GAAG;AAAA,IAAA;AAAC,MAAA,CAAA,IAAAM,MAAAC;AAAA,MAAA,CAAA,IAAAD,MAAAK;AAAAP,WAAAQ;AAAAR,WAAAS;AAAAT,WAAAU;AAAAV,WAAAW;AAAAA,EAAAA,OAAA;AAAAH,SAAAR,EAAA,CAAA;AAAAS,SAAAT,EAAA,CAAA;AAAAU,SAAAV,EAAA,CAAA;AAAAW,SAAAX,EAAA,CAAA;AAAA,EAAA;AAAA,MAAAW,OAAAC,OAAAC,IAAA,6BAAA,GAAA;AAAAF,WAAAA;AAAAA,EAAAA;AAAAK,MAAAA;AAAA,MAAAhB,EAAAQ,CAAAA,MAAAA,MAAAR,SAAAS,IAAA;AADpBO,SAEO,oBAAA,QAAA,EAFS,WAAAR,IACbC,UACH,IAAA;AAAOT,WAAAQ;AAAAR,WAAAS;AAAAT,WAAAgB;AAAAA,EAAAA,OAAA;AAAAA,SAAAhB,EAAA,CAAA;AAAA,EAAA;AAAAiB,MAAAA;AAAA,MAAAjB,EAAAU,CAAAA,MAAAA,MAAAV,UAAAgB,IAAA;AAJTC,SACGP,qBAAAA,UAAAA,EAAAA,UAAAA;AAAAA,MAAAA;AAAAA,MACDM;AAAAA,IAAAA,GAEO;AACNhB,WAAAU;AAAAV,YAAAgB;AAAAhB,YAAAiB;AAAAA,EAAAA,OAAA;AAAAA,SAAAjB,EAAA,EAAA;AAAA,EAAA;AALHiB,SAAAA;AAKG;"}
@@ -1,9 +1,10 @@
1
+ import { FC } from 'react';
1
2
  declare type DeprecationReasonProps = {
2
3
  /**
3
- * The deprecation reason as markdown string.
4
+ * The deprecation reason as Markdown string.
4
5
  */
5
6
  children?: string | null;
6
7
  preview?: boolean;
7
8
  };
8
- export declare function DeprecationReason(props: DeprecationReasonProps): import("react/jsx-runtime").JSX.Element | null;
9
+ export declare const DeprecationReason: FC<DeprecationReasonProps>;
9
10
  export {};
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { c } from "react-compiler-runtime";
3
3
  import { MarkdownContent } from "@graphiql/react";
4
4
  /* empty css */
5
- function DeprecationReason(props) {
5
+ const DeprecationReason = (props) => {
6
6
  const $ = c(3);
7
7
  let t0;
8
8
  if ($[0] !== props.children || $[1] !== props.preview) {
@@ -17,7 +17,7 @@ function DeprecationReason(props) {
17
17
  t0 = $[2];
18
18
  }
19
19
  return t0;
20
- }
20
+ };
21
21
  export {
22
22
  DeprecationReason
23
23
  };
@@ -1 +1 @@
1
- {"version":3,"file":"deprecation-reason.js","sources":["../../src/components/deprecation-reason.tsx"],"sourcesContent":["import { MarkdownContent } from '@graphiql/react';\n\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 function DeprecationReason(props: DeprecationReasonProps) {\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"],"names":["DeprecationReason","props","$","_c","t0","children","preview"],"mappings":";;;;AAYO,SAAAA,kBAAAC,OAAA;AAAAC,QAAAA,IAAAC,EAAA,CAAA;AAAAC,MAAAA;AAAAF,MAAAA,EAAAD,CAAAA,MAAAA,MAAAI,YAAAH,EAAA,CAAA,MAAAD,MAAAK,SAAA;AACEF,SAAAH,MAAKI,WASJ,qBAAA,OAAA,EARS,WAAA,qCACb,UAAA;AAAA,MAAyE,oBAAA,OAAA,EAA1D,WAAA,2CAA0C,UAAU,cAAA;AAAA,MACnE,oBAAC,mBACM,MAAA,eACe,oBAAAJ,MAAKK,WAAe,MAEvCL,UAAAA,MAAKI,SACR,CAAA;AAAA,IAAA,EAAA,CACF,IACM;AAAA,MAAA,CAAA,IAAAJ,MAAAI;AAAA,MAAA,CAAA,IAAAJ,MAAAK;AAAAJ,WAAAE;AAAAA,EAAAA,OAAA;AAAAA,SAAAF,EAAA,CAAA;AAAA,EAAA;AAVDE,SAAAA;AAUC;"}
1
+ {"version":3,"file":"deprecation-reason.js","sources":["../../src/components/deprecation-reason.tsx"],"sourcesContent":["import { 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"],"names":["DeprecationReason","props","$","_c","t0","children","preview"],"mappings":";;;;AAYO,MAAMA,oBAAgDC,CAAA,UAAA;AAAAC,QAAAA,IAAAC,EAAA,CAAA;AAAAC,MAAAA;AAAAF,MAAAA,EAAAD,CAAAA,MAAAA,MAAAI,YAAAH,EAAA,CAAA,MAAAD,MAAAK,SAAA;AACpDF,SAAAH,MAAKI,WASJ,qBAAA,OAAA,EARS,WAAA,qCACb,UAAA;AAAA,MAAyE,oBAAA,OAAA,EAA1D,WAAA,2CAA0C,UAAU,cAAA;AAAA,MACnE,oBAAC,mBACM,MAAA,eACe,oBAAAJ,MAAKK,WAAe,MAEvCL,UAAAA,MAAKI,SACR,CAAA;AAAA,IAAA,EAAA,CACF,IACM;AAAA,MAAA,CAAA,IAAAJ,MAAAI;AAAA,MAAA,CAAA,IAAAJ,MAAAK;AAAAJ,WAAAE;AAAAA,EAAAA,OAAA;AAAAA,SAAAF,EAAA,CAAA;AAAA,EAAA;AAVDE,SAAAA;AAUC;"}
@@ -1,3 +1,4 @@
1
+ import { FC } from 'react';
1
2
  import { DirectiveNode } from 'graphql';
2
3
  declare type DirectiveProps = {
3
4
  /**
@@ -5,5 +6,5 @@ declare type DirectiveProps = {
5
6
  */
6
7
  directive: DirectiveNode;
7
8
  };
8
- export declare function Directive({ directive }: DirectiveProps): import("react/jsx-runtime").JSX.Element;
9
+ export declare const Directive: FC<DirectiveProps>;
9
10
  export {};
@@ -1,7 +1,7 @@
1
1
  import { jsxs } from "react/jsx-runtime";
2
2
  import { c } from "react-compiler-runtime";
3
3
  /* empty css */
4
- function Directive(t0) {
4
+ const Directive = (t0) => {
5
5
  const $ = c(2);
6
6
  const {
7
7
  directive
@@ -18,7 +18,7 @@ function Directive(t0) {
18
18
  t1 = $[1];
19
19
  }
20
20
  return t1;
21
- }
21
+ };
22
22
  export {
23
23
  Directive
24
24
  };
@@ -1 +1 @@
1
- {"version":3,"file":"directive.js","sources":["../../src/components/directive.tsx"],"sourcesContent":["import { DirectiveNode } from 'graphql';\n\nimport './directive.css';\n\ntype DirectiveProps = {\n /**\n * The directive that should be rendered.\n */\n directive: DirectiveNode;\n};\n\nexport function Directive({ directive }: DirectiveProps) {\n return (\n <span className=\"graphiql-doc-explorer-directive\">\n @{directive.name.value}\n </span>\n );\n}\n"],"names":["Directive","t0","$","_c","directive","t1","name","value"],"mappings":";;;AAWO,SAAAA,UAAAC,IAAA;AAAAC,QAAAA,IAAAC,EAAA,CAAA;AAAmB,QAAA;AAAA,IAAAC;AAAAA,EAAAA,IAAAH;AAA6BI,MAAAA;AAAA,MAAAH,EAAAE,CAAAA,MAAAA,UAAAE,KAAAC,OAAA;AAI5C,SAAA,qBAAA,QAFS,EAAA,WAAA,mCAAkC,UAAA;AAAA,MAAA;AAAA,MAC9CH,UAASE,KAAAC;AAAAA,IAAAA,GACb;AAAOH,MAAAA,CAAAA,IAAAA,UAAAE,KAAAC;AAAAL,WAAAG;AAAAA,EAAAA,OAAA;AAAAA,SAAAH,EAAA,CAAA;AAAA,EAAA;AAFPG,SAAAA;AAEO;"}
1
+ {"version":3,"file":"directive.js","sources":["../../src/components/directive.tsx"],"sourcesContent":["import { FC } from 'react';\nimport { 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"],"names":["Directive","t0","$","_c","directive","t1","name","value"],"mappings":";;;AAWO,MAAMA,YAAgCC,CAAA,OAAA;AAAAC,QAAAA,IAAAC,EAAA,CAAA;AAAC,QAAA;AAAA,IAAAC;AAAAA,EAAAA,IAAAH;AAAaI,MAAAA;AAAA,MAAAH,EAAAE,CAAAA,MAAAA,UAAAE,KAAAC,OAAA;AAIhD,SAAA,qBAAA,QAFS,EAAA,WAAA,mCAAkC,UAAA;AAAA,MAAA;AAAA,MAC9CH,UAASE,KAAAC;AAAAA,IAAAA,GACb;AAAOH,MAAAA,CAAAA,IAAAA,UAAAE,KAAAC;AAAAL,WAAAG;AAAAA,EAAAA,OAAA;AAAAA,SAAAH,EAAA,CAAA;AAAA,EAAA;AAFPG,SAAAA;AAEO;"}
@@ -1 +1,2 @@
1
- export declare function DocExplorer(): import("react/jsx-runtime").JSX.Element;
1
+ import { FC } from 'react';
2
+ export declare const DocExplorer: FC;
@@ -2,14 +2,14 @@ import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { c } from "react-compiler-runtime";
3
3
  import { isType } from "graphql";
4
4
  import { useSchemaContext, Spinner, ChevronLeftIcon } from "@graphiql/react";
5
- import { useExplorerContext } from "../context.js";
5
+ import { useDocExplorer, useDocExplorerActions } from "../context.js";
6
6
  import { FieldDocumentation } from "./field-documentation.js";
7
7
  import { SchemaDocumentation } from "./schema-documentation.js";
8
8
  import { Search } from "./search.js";
9
9
  import { TypeDocumentation } from "./type-documentation.js";
10
10
  /* empty css */
11
- function DocExplorer() {
12
- const $ = c(40);
11
+ const DocExplorer = () => {
12
+ const $ = c(39);
13
13
  let t0;
14
14
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
15
15
  t0 = {
@@ -26,101 +26,91 @@ function DocExplorer() {
26
26
  schema,
27
27
  validationErrors
28
28
  } = useSchemaContext(t0);
29
- let t1;
30
- if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
31
- t1 = {
32
- nonNull: true,
33
- caller: DocExplorer
34
- };
35
- $[1] = t1;
36
- } else {
37
- t1 = $[1];
38
- }
29
+ const explorerNavStack = useDocExplorer();
39
30
  const {
40
- explorerNavStack,
41
31
  pop
42
- } = useExplorerContext(t1);
32
+ } = useDocExplorerActions();
43
33
  let content;
44
34
  let navItem;
45
- if ($[2] !== explorerNavStack || $[3] !== fetchError || $[4] !== isFetching || $[5] !== schema || $[6] !== validationErrors) {
35
+ if ($[1] !== explorerNavStack || $[2] !== fetchError || $[3] !== isFetching || $[4] !== schema || $[5] !== validationErrors) {
46
36
  navItem = explorerNavStack.at(-1);
47
37
  content = null;
48
38
  if (fetchError) {
49
- let t22;
50
- if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
51
- t22 = /* @__PURE__ */ jsx("div", { className: "graphiql-doc-explorer-error", children: "Error fetching schema" });
52
- $[9] = t22;
39
+ let t12;
40
+ if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
41
+ t12 = /* @__PURE__ */ jsx("div", { className: "graphiql-doc-explorer-error", children: "Error fetching schema" });
42
+ $[8] = t12;
53
43
  } else {
54
- t22 = $[9];
44
+ t12 = $[8];
55
45
  }
56
- content = t22;
46
+ content = t12;
57
47
  } else {
58
48
  if (validationErrors.length > 0) {
59
- let t22;
60
- if ($[10] !== validationErrors[0].message) {
61
- t22 = /* @__PURE__ */ jsxs("div", { className: "graphiql-doc-explorer-error", children: [
49
+ let t12;
50
+ if ($[9] !== validationErrors[0].message) {
51
+ t12 = /* @__PURE__ */ jsxs("div", { className: "graphiql-doc-explorer-error", children: [
62
52
  "Schema is invalid: ",
63
53
  validationErrors[0].message
64
54
  ] });
65
- $[10] = validationErrors[0].message;
66
- $[11] = t22;
55
+ $[9] = validationErrors[0].message;
56
+ $[10] = t12;
67
57
  } else {
68
- t22 = $[11];
58
+ t12 = $[10];
69
59
  }
70
- content = t22;
60
+ content = t12;
71
61
  } else {
72
62
  if (isFetching) {
73
- let t22;
74
- if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
75
- t22 = /* @__PURE__ */ jsx(Spinner, {});
76
- $[12] = t22;
63
+ let t12;
64
+ if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
65
+ t12 = /* @__PURE__ */ jsx(Spinner, {});
66
+ $[11] = t12;
77
67
  } else {
78
- t22 = $[12];
68
+ t12 = $[11];
79
69
  }
80
- content = t22;
70
+ content = t12;
81
71
  } else {
82
72
  if (!schema) {
83
- let t22;
84
- if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
85
- t22 = /* @__PURE__ */ jsx("div", { className: "graphiql-doc-explorer-error", children: "No GraphQL schema available" });
86
- $[13] = t22;
73
+ let t12;
74
+ if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
75
+ t12 = /* @__PURE__ */ jsx("div", { className: "graphiql-doc-explorer-error", children: "No GraphQL schema available" });
76
+ $[12] = t12;
87
77
  } else {
88
- t22 = $[13];
78
+ t12 = $[12];
89
79
  }
90
- content = t22;
80
+ content = t12;
91
81
  } else {
92
82
  if (explorerNavStack.length === 1) {
93
- let t22;
94
- if ($[14] !== schema) {
95
- t22 = /* @__PURE__ */ jsx(SchemaDocumentation, { schema });
96
- $[14] = schema;
97
- $[15] = t22;
83
+ let t12;
84
+ if ($[13] !== schema) {
85
+ t12 = /* @__PURE__ */ jsx(SchemaDocumentation, { schema });
86
+ $[13] = schema;
87
+ $[14] = t12;
98
88
  } else {
99
- t22 = $[15];
89
+ t12 = $[14];
100
90
  }
101
- content = t22;
91
+ content = t12;
102
92
  } else {
103
93
  if (isType(navItem.def)) {
104
- let t22;
105
- if ($[16] !== navItem.def) {
106
- t22 = /* @__PURE__ */ jsx(TypeDocumentation, { type: navItem.def });
107
- $[16] = navItem.def;
108
- $[17] = t22;
94
+ let t12;
95
+ if ($[15] !== navItem.def) {
96
+ t12 = /* @__PURE__ */ jsx(TypeDocumentation, { type: navItem.def });
97
+ $[15] = navItem.def;
98
+ $[16] = t12;
109
99
  } else {
110
- t22 = $[17];
100
+ t12 = $[16];
111
101
  }
112
- content = t22;
102
+ content = t12;
113
103
  } else {
114
104
  if (navItem.def) {
115
- let t22;
116
- if ($[18] !== navItem.def) {
117
- t22 = /* @__PURE__ */ jsx(FieldDocumentation, { field: navItem.def });
118
- $[18] = navItem.def;
119
- $[19] = t22;
105
+ let t12;
106
+ if ($[17] !== navItem.def) {
107
+ t12 = /* @__PURE__ */ jsx(FieldDocumentation, { field: navItem.def });
108
+ $[17] = navItem.def;
109
+ $[18] = t12;
120
110
  } else {
121
- t22 = $[19];
111
+ t12 = $[18];
122
112
  }
123
- content = t22;
113
+ content = t12;
124
114
  }
125
115
  }
126
116
  }
@@ -128,106 +118,106 @@ function DocExplorer() {
128
118
  }
129
119
  }
130
120
  }
131
- $[2] = explorerNavStack;
132
- $[3] = fetchError;
133
- $[4] = isFetching;
134
- $[5] = schema;
135
- $[6] = validationErrors;
136
- $[7] = content;
137
- $[8] = navItem;
121
+ $[1] = explorerNavStack;
122
+ $[2] = fetchError;
123
+ $[3] = isFetching;
124
+ $[4] = schema;
125
+ $[5] = validationErrors;
126
+ $[6] = content;
127
+ $[7] = navItem;
138
128
  } else {
139
- content = $[7];
140
- navItem = $[8];
129
+ content = $[6];
130
+ navItem = $[7];
141
131
  }
142
132
  let prevName;
143
133
  if (explorerNavStack.length > 1) {
144
- let t22;
145
- if ($[20] !== explorerNavStack) {
146
- t22 = explorerNavStack.at(-2);
147
- $[20] = explorerNavStack;
148
- $[21] = t22;
134
+ let t12;
135
+ if ($[19] !== explorerNavStack) {
136
+ t12 = explorerNavStack.at(-2);
137
+ $[19] = explorerNavStack;
138
+ $[20] = t12;
149
139
  } else {
150
- t22 = $[21];
140
+ t12 = $[20];
151
141
  }
152
- prevName = t22.name;
142
+ prevName = t12.name;
153
143
  }
154
- let t2;
155
- if ($[22] !== pop || $[23] !== prevName) {
156
- t2 = prevName && /* @__PURE__ */ jsxs("a", { href: "#", className: "graphiql-doc-explorer-back", onClick: (event) => {
144
+ let t1;
145
+ if ($[21] !== pop || $[22] !== prevName) {
146
+ t1 = prevName && /* @__PURE__ */ jsxs("a", { href: "#", className: "graphiql-doc-explorer-back", onClick: (event) => {
157
147
  event.preventDefault();
158
148
  pop();
159
149
  }, "aria-label": `Go back to ${prevName}`, children: [
160
150
  /* @__PURE__ */ jsx(ChevronLeftIcon, {}),
161
151
  prevName
162
152
  ] });
163
- $[22] = pop;
164
- $[23] = prevName;
165
- $[24] = t2;
153
+ $[21] = pop;
154
+ $[22] = prevName;
155
+ $[23] = t1;
166
156
  } else {
167
- t2 = $[24];
157
+ t1 = $[23];
168
158
  }
169
- let t3;
170
- if ($[25] !== navItem.name) {
171
- t3 = /* @__PURE__ */ jsx("div", { className: "graphiql-doc-explorer-title", children: navItem.name });
172
- $[25] = navItem.name;
173
- $[26] = t3;
159
+ let t2;
160
+ if ($[24] !== navItem.name) {
161
+ t2 = /* @__PURE__ */ jsx("div", { className: "graphiql-doc-explorer-title", children: navItem.name });
162
+ $[24] = navItem.name;
163
+ $[25] = t2;
174
164
  } else {
175
- t3 = $[26];
165
+ t2 = $[25];
176
166
  }
177
- let t4;
178
- if ($[27] !== t2 || $[28] !== t3) {
179
- t4 = /* @__PURE__ */ jsxs("div", { className: "graphiql-doc-explorer-header-content", children: [
180
- t2,
181
- t3
167
+ let t3;
168
+ if ($[26] !== t1 || $[27] !== t2) {
169
+ t3 = /* @__PURE__ */ jsxs("div", { className: "graphiql-doc-explorer-header-content", children: [
170
+ t1,
171
+ t2
182
172
  ] });
173
+ $[26] = t1;
183
174
  $[27] = t2;
184
175
  $[28] = t3;
185
- $[29] = t4;
186
176
  } else {
187
- t4 = $[29];
177
+ t3 = $[28];
188
178
  }
189
- let t5;
190
- if ($[30] !== navItem.name) {
191
- t5 = /* @__PURE__ */ jsx(Search, {}, navItem.name);
192
- $[30] = navItem.name;
193
- $[31] = t5;
179
+ let t4;
180
+ if ($[29] !== navItem.name) {
181
+ t4 = /* @__PURE__ */ jsx(Search, {}, navItem.name);
182
+ $[29] = navItem.name;
183
+ $[30] = t4;
194
184
  } else {
195
- t5 = $[31];
185
+ t4 = $[30];
196
186
  }
197
- let t6;
198
- if ($[32] !== t4 || $[33] !== t5) {
199
- t6 = /* @__PURE__ */ jsxs("div", { className: "graphiql-doc-explorer-header", children: [
200
- t4,
201
- t5
187
+ let t5;
188
+ if ($[31] !== t3 || $[32] !== t4) {
189
+ t5 = /* @__PURE__ */ jsxs("div", { className: "graphiql-doc-explorer-header", children: [
190
+ t3,
191
+ t4
202
192
  ] });
193
+ $[31] = t3;
203
194
  $[32] = t4;
204
195
  $[33] = t5;
205
- $[34] = t6;
206
196
  } else {
207
- t6 = $[34];
197
+ t5 = $[33];
208
198
  }
209
- let t7;
210
- if ($[35] !== content) {
211
- t7 = /* @__PURE__ */ jsx("div", { className: "graphiql-doc-explorer-content", children: content });
212
- $[35] = content;
213
- $[36] = t7;
199
+ let t6;
200
+ if ($[34] !== content) {
201
+ t6 = /* @__PURE__ */ jsx("div", { className: "graphiql-doc-explorer-content", children: content });
202
+ $[34] = content;
203
+ $[35] = t6;
214
204
  } else {
215
- t7 = $[36];
205
+ t6 = $[35];
216
206
  }
217
- let t8;
218
- if ($[37] !== t6 || $[38] !== t7) {
219
- t8 = /* @__PURE__ */ jsxs("section", { className: "graphiql-doc-explorer", "aria-label": "Documentation Explorer", children: [
220
- t6,
221
- t7
207
+ let t7;
208
+ if ($[36] !== t5 || $[37] !== t6) {
209
+ t7 = /* @__PURE__ */ jsxs("section", { className: "graphiql-doc-explorer", "aria-label": "Documentation Explorer", children: [
210
+ t5,
211
+ t6
222
212
  ] });
213
+ $[36] = t5;
223
214
  $[37] = t6;
224
215
  $[38] = t7;
225
- $[39] = t8;
226
216
  } else {
227
- t8 = $[39];
217
+ t7 = $[38];
228
218
  }
229
- return t8;
230
- }
219
+ return t7;
220
+ };
231
221
  export {
232
222
  DocExplorer
233
223
  };
@@ -1 +1 @@
1
- {"version":3,"file":"doc-explorer.js","sources":["../../src/components/doc-explorer.tsx"],"sourcesContent":["import { isType } from 'graphql';\nimport { ReactNode } from 'react';\n\nimport { ChevronLeftIcon, Spinner, useSchemaContext } from '@graphiql/react';\nimport { useExplorerContext } from '../context';\nimport { FieldDocumentation } from './field-documentation';\nimport { SchemaDocumentation } from './schema-documentation';\nimport { Search } from './search';\nimport { TypeDocumentation } from './type-documentation';\n\nimport './doc-explorer.css';\n\nexport function DocExplorer() {\n const { fetchError, isFetching, schema, validationErrors } = useSchemaContext(\n { nonNull: true, caller: DocExplorer },\n );\n const { explorerNavStack, pop } = useExplorerContext({\n nonNull: true,\n caller: DocExplorer,\n });\n\n const navItem = explorerNavStack.at(-1)!;\n\n let content: ReactNode = null;\n if (fetchError) {\n content = (\n <div className=\"graphiql-doc-explorer-error\">Error fetching schema</div>\n );\n } else if (validationErrors.length > 0) {\n content = (\n <div className=\"graphiql-doc-explorer-error\">\n Schema is invalid: {validationErrors[0].message}\n </div>\n );\n } else if (isFetching) {\n // Schema is undefined when it is being loaded via introspection.\n content = <Spinner />;\n } else if (!schema) {\n // Schema is null when it explicitly does not exist, typically due to\n // an error during introspection.\n content = (\n <div className=\"graphiql-doc-explorer-error\">\n No GraphQL schema available\n </div>\n );\n } else if (explorerNavStack.length === 1) {\n content = <SchemaDocumentation schema={schema} />;\n } else if (isType(navItem.def)) {\n content = <TypeDocumentation type={navItem.def} />;\n } else if (navItem.def) {\n content = <FieldDocumentation field={navItem.def} />;\n }\n\n let prevName;\n if (explorerNavStack.length > 1) {\n prevName = explorerNavStack.at(-2)!.name;\n }\n\n return (\n <section\n className=\"graphiql-doc-explorer\"\n aria-label=\"Documentation Explorer\"\n >\n <div className=\"graphiql-doc-explorer-header\">\n <div className=\"graphiql-doc-explorer-header-content\">\n {prevName && (\n <a\n href=\"#\"\n className=\"graphiql-doc-explorer-back\"\n onClick={event => {\n event.preventDefault();\n pop();\n }}\n aria-label={`Go back to ${prevName}`}\n >\n <ChevronLeftIcon />\n {prevName}\n </a>\n )}\n <div className=\"graphiql-doc-explorer-title\">{navItem.name}</div>\n </div>\n <Search key={navItem.name} />\n </div>\n <div className=\"graphiql-doc-explorer-content\">{content}</div>\n </section>\n );\n}\n"],"names":["DocExplorer","$","_c","t0","Symbol","for","nonNull","caller","fetchError","isFetching","schema","validationErrors","useSchemaContext","t1","explorerNavStack","pop","useExplorerContext","content","navItem","at","t2","length","message","isType","def","prevName","event","preventDefault","t3","name","t4","t5","t6","t7","t8"],"mappings":";;;;;;;;;;AAYO,SAAAA,cAAA;AAAAC,QAAAA,IAAAC,EAAA,EAAA;AAAAC,MAAAA;AAAA,MAAAF,EAAA,CAAA,MAAAG,OAAAC,IAAA,2BAAA,GAAA;AAEH,SAAA;AAAA,MAAAC,SAAA;AAAA,MAAAC,QAAAP;AAAAA,IAAA;AAAsCC,WAAAE;AAAAA,EAAAA,OAAA;AAAAA,SAAAF,EAAA,CAAA;AAAA,EAAA;AADxC,QAAA;AAAA,IAAAO;AAAAA,IAAAC;AAAAA,IAAAC;AAAAA,IAAAC;AAAAA,EAAAA,IAA6DC,iBAC3DT,EACF;AAAEU,MAAAA;AAAA,MAAAZ,EAAA,CAAA,MAAAG,OAAAC,IAAA,2BAAA,GAAA;AACmD,SAAA;AAAA,MAAAC,SAAA;AAAA,MAAAC,QAAAP;AAAAA,IAAA;AAGpDC,WAAAY;AAAAA,EAAAA,OAAA;AAAAA,SAAAZ,EAAA,CAAA;AAAA,EAAA;AAHD,QAAA;AAAA,IAAAa;AAAAA,IAAAC;AAAAA,EAAAA,IAAkCC,mBAAmBH,EAGpD;AAAEI,MAAAA;AAAAC,MAAAA;AAAA,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A;AAAA8B,MAAAA;AAAA,MAAA9B,EAAA,EAAA,MAAAiB,QAAAW,MAAA;AACN,SAAA,oBAAC,QAAYX,CAAAA,GAAAA,QAAOW,IAAS;AAAA,MAAA,EAAA,IAAAX,QAAAW;AAAA5B,YAAA8B;AAAAA,EAAAA,OAAA;AAAAA,SAAA9B,EAAA,EAAA;AAAA,EAAA;AAAA+B,MAAAA;AAAA,MAAA/B,EAAA6B,EAAAA,MAAAA,MAAA7B,UAAA8B,IAAA;AACzB,SAAA,qBAAA,OAnBS,EAAA,WAAA,gCACbD,UAAAA;AAAAA,MAAAA;AAAAA,MAiBAC;AAAAA,IAAAA,GACF;AAAM9B,YAAA6B;AAAA7B,YAAA8B;AAAA9B,YAAA+B;AAAAA,EAAAA,OAAA;AAAAA,SAAA/B,EAAA,EAAA;AAAA,EAAA;AAAAgC,MAAAA;AAAAhC,MAAAA,UAAAgB,SAAA;AACNgB,SAAA,oBAAA,OAAA,EAAe,WAAA,iCAAiChB,UAAQ,SAAA;AAAMhB,YAAAgB;AAAAhB,YAAAgC;AAAAA,EAAAA,OAAA;AAAAA,SAAAhC,EAAA,EAAA;AAAA,EAAA;AAAAiC,MAAAA;AAAA,MAAAjC,EAAA+B,EAAAA,MAAAA,MAAA/B,UAAAgC,IAAA;AAxBhEC,2CACY,WAAA,yBACC,cAAA,0BAEXF,UAAAA;AAAAA,MAAAA;AAAAA,MAoBAC;AAAAA,IAAAA,GACF;AAAUhC,YAAA+B;AAAA/B,YAAAgC;AAAAhC,YAAAiC;AAAAA,EAAAA,OAAA;AAAAA,SAAAjC,EAAA,EAAA;AAAA,EAAA;AAzBViC,SAAAA;AAyBU;"}
1
+ {"version":3,"file":"doc-explorer.js","sources":["../../src/components/doc-explorer.tsx"],"sourcesContent":["import { isType } from 'graphql';\nimport { FC, ReactNode } from 'react';\nimport { ChevronLeftIcon, Spinner, useSchemaContext } from '@graphiql/react';\nimport { useDocExplorer, useDocExplorerActions } from '../context';\nimport { FieldDocumentation } from './field-documentation';\nimport { SchemaDocumentation } from './schema-documentation';\nimport { Search } from './search';\nimport { TypeDocumentation } from './type-documentation';\nimport './doc-explorer.css';\n\nexport const DocExplorer: FC = () => {\n const { fetchError, isFetching, schema, validationErrors } = useSchemaContext(\n { nonNull: true, caller: DocExplorer },\n );\n const explorerNavStack = useDocExplorer();\n const { pop } = useDocExplorerActions();\n const navItem = explorerNavStack.at(-1)!;\n\n let content: ReactNode = null;\n if (fetchError) {\n content = (\n <div className=\"graphiql-doc-explorer-error\">Error fetching schema</div>\n );\n } else if (validationErrors.length > 0) {\n content = (\n <div className=\"graphiql-doc-explorer-error\">\n Schema is invalid: {validationErrors[0].message}\n </div>\n );\n } else if (isFetching) {\n // Schema is undefined when it is being loaded via introspection.\n content = <Spinner />;\n } else if (!schema) {\n // Schema is null when it explicitly does not exist, typically due to\n // an error during introspection.\n content = (\n <div className=\"graphiql-doc-explorer-error\">\n No GraphQL schema available\n </div>\n );\n } else if (explorerNavStack.length === 1) {\n content = <SchemaDocumentation schema={schema} />;\n } else if (isType(navItem.def)) {\n content = <TypeDocumentation type={navItem.def} />;\n } else if (navItem.def) {\n content = <FieldDocumentation field={navItem.def} />;\n }\n\n let prevName;\n if (explorerNavStack.length > 1) {\n prevName = explorerNavStack.at(-2)!.name;\n }\n\n return (\n <section\n className=\"graphiql-doc-explorer\"\n aria-label=\"Documentation Explorer\"\n >\n <div className=\"graphiql-doc-explorer-header\">\n <div className=\"graphiql-doc-explorer-header-content\">\n {prevName && (\n <a\n href=\"#\"\n className=\"graphiql-doc-explorer-back\"\n onClick={event => {\n event.preventDefault();\n pop();\n }}\n aria-label={`Go back to ${prevName}`}\n >\n <ChevronLeftIcon />\n {prevName}\n </a>\n )}\n <div className=\"graphiql-doc-explorer-title\">{navItem.name}</div>\n </div>\n <Search key={navItem.name} />\n </div>\n <div className=\"graphiql-doc-explorer-content\">{content}</div>\n </section>\n );\n};\n"],"names":["DocExplorer","$","_c","t0","Symbol","for","nonNull","caller","fetchError","isFetching","schema","validationErrors","useSchemaContext","explorerNavStack","useDocExplorer","pop","useDocExplorerActions","content","navItem","at","t1","length","message","isType","def","prevName","event","preventDefault","t2","name","t3","t4","t5","t6","t7"],"mappings":";;;;;;;;;;AAUO,MAAMA,cAAkBA,MAAA;AAAAC,QAAAA,IAAAC,EAAA,EAAA;AAAAC,MAAAA;AAAA,MAAAF,EAAA,CAAA,MAAAG,OAAAC,IAAA,2BAAA,GAAA;AAE3B,SAAA;AAAA,MAAAC,SAAA;AAAA,MAAAC,QAAAP;AAAAA,IAAA;AAAsCC,WAAAE;AAAAA,EAAAA,OAAA;AAAAA,SAAAF,EAAA,CAAA;AAAA,EAAA;AADxC,QAAA;AAAA,IAAAO;AAAAA,IAAAC;AAAAA,IAAAC;AAAAA,IAAAC;AAAAA,EAAAA,IAA6DC,iBAC3DT,EACF;AACA,QAAAU,mBAAyBC,eAAe;AACxC,QAAA;AAAA,IAAAC;AAAAA,MAAgBC,sBAAsB;AAAEC,MAAAA;AAAAC,MAAAA;AAAA,MAAAjB,EAAAY,CAAAA,MAAAA,oBAAAZ,EAAA,CAAA,MAAAO,cAAAP,EAAAQ,CAAAA,MAAAA,cAAAR,EAAA,CAAA,MAAAS,UAAAT,SAAAU,kBAAA;AACxBE,cAAAA,iBAAgBM,KAAM;AAEtC,cAAA;AAA8B,QAC1BX,YAAU;AAAAY,UAAAA;AAAA,UAAAnB,EAAA,CAAA,MAAAG,OAAAC,IAAA,2BAAA,GAAA;AAEVe,cAAA,oBAAA,OAAe,EAAA,WAAA,+BAA8B,UAAqB,yBAAA;AAAMnB,eAAAmB;AAAAA,MAAAA,OAAA;AAAAA,cAAAnB,EAAA,CAAA;AAAA,MAAA;AAAxEgB,gBAAAA;AAAAA,IAAAA,OADK;AAGEN,UAAAA,iBAAgBU,SAAW,GAAA;AAAAD,YAAAA;AAAA,YAAAnB,EAAA,CAAA,MAAAU,iBAAA,CAAA,EAAAW,SAAA;AAElCF,gBAEM,qBAAA,OAFS,EAA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AA,EAAe,WAAA,iCAAiChB,UAAQ,SAAA;AAAMhB,YAAAgB;AAAAhB,YAAAgC;AAAAA,EAAAA,OAAA;AAAAA,SAAAhC,EAAA,EAAA;AAAA,EAAA;AAAAiC,MAAAA;AAAA,MAAAjC,EAAA+B,EAAAA,MAAAA,MAAA/B,UAAAgC,IAAA;AAxBhEC,2CACY,WAAA,yBACC,cAAA,0BAEXF,UAAAA;AAAAA,MAAAA;AAAAA,MAoBAC;AAAAA,IAAAA,GACF;AAAUhC,YAAA+B;AAAA/B,YAAAgC;AAAAhC,YAAAiC;AAAAA,EAAAA,OAAA;AAAAA,SAAAjC,EAAA,EAAA;AAAA,EAAA;AAzBViC,SAAAA;AAyBU;"}
@@ -1,9 +1,10 @@
1
- import { ExplorerFieldDef } from '../context';
1
+ import { FC } from 'react';
2
+ import { DocExplorerFieldDef } from '../context';
2
3
  declare type FieldDocumentationProps = {
3
4
  /**
4
5
  * The field or argument that should be rendered.
5
6
  */
6
- field: ExplorerFieldDef;
7
+ field: DocExplorerFieldDef;
7
8
  };
8
- export declare function FieldDocumentation(props: FieldDocumentationProps): import("react/jsx-runtime").JSX.Element;
9
+ export declare const FieldDocumentation: FC<FieldDocumentationProps>;
9
10
  export {};