@graphiql/plugin-doc-explorer 0.0.3-canary-5d447953.0 → 0.0.3-canary-eb99c0af.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.
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { usePluginStore, DocsFilledIcon, DocsIcon } from "@graphiql/react";
|
|
3
3
|
import { DocExplorerContext, DocExplorerContextProvider, useDocExplorer, useDocExplorerActions } from "./context.js";
|
|
4
4
|
import { DocExplorer } from "./components/doc-explorer.js";
|
|
5
5
|
import { Argument } from "./components/argument.js";
|
|
@@ -16,8 +16,10 @@ import { TypeLink } from "./components/type-link.js";
|
|
|
16
16
|
const DOC_EXPLORER_PLUGIN = {
|
|
17
17
|
title: "Documentation Explorer",
|
|
18
18
|
icon: function Icon() {
|
|
19
|
-
const
|
|
20
|
-
|
|
19
|
+
const {
|
|
20
|
+
visiblePlugin
|
|
21
|
+
} = usePluginStore();
|
|
22
|
+
return visiblePlugin === DOC_EXPLORER_PLUGIN ? /* @__PURE__ */ jsx(DocsFilledIcon, {}) : /* @__PURE__ */ jsx(DocsIcon, {});
|
|
21
23
|
},
|
|
22
24
|
content: DocExplorer
|
|
23
25
|
};
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/index.tsx"],"sourcesContent":["import {\n DocsFilledIcon,\n DocsIcon,\n GraphiQLPlugin,\n
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/index.tsx"],"sourcesContent":["import {\n DocsFilledIcon,\n DocsIcon,\n GraphiQLPlugin,\n usePluginStore,\n} from '@graphiql/react';\nimport { DocExplorer } from './components';\n\nexport * from './components';\n\nexport {\n DocExplorerContext,\n DocExplorerContextProvider,\n useDocExplorer,\n useDocExplorerActions,\n} from './context';\n\nexport type {\n DocExplorerContextType,\n DocExplorerFieldDef,\n DocExplorerNavStack,\n DocExplorerNavStackItem,\n} from './context';\n\nexport const DOC_EXPLORER_PLUGIN: GraphiQLPlugin = {\n title: 'Documentation Explorer',\n icon: function Icon() {\n const { visiblePlugin } = usePluginStore();\n return visiblePlugin === DOC_EXPLORER_PLUGIN ? (\n <DocsFilledIcon />\n ) : (\n <DocsIcon />\n );\n },\n content: DocExplorer,\n};\n"],"names":["DOC_EXPLORER_PLUGIN","title","icon","Icon","visiblePlugin","usePluginStore","content","DocExplorer"],"mappings":";;;;;;;;;;;;;;;AAwBO,MAAMA,sBAAsC;AAAA,EACjDC,OAAO;AAAA,EACPC,MAAM,SAASC,OAAO;AACd,UAAA;AAAA,MAAEC;AAAAA,QAAkBC,eAAe;AACzC,WAAOD,kBAAkBJ,sBACvB,oBAAC,gBAAiB,CAAA,CAAA,wBAEjB,UACF,EAAA;AAAA,EACH;AAAA,EACAM,SAASC;AACX;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphiql/plugin-doc-explorer",
|
|
3
|
-
"version": "0.0.3-canary-
|
|
3
|
+
"version": "0.0.3-canary-eb99c0af.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"react-compiler-runtime": "19.1.0-rc.1",
|
|
45
|
-
"@graphiql/react": "^0.33.0-canary-
|
|
45
|
+
"@graphiql/react": "^0.33.0-canary-eb99c0af.0",
|
|
46
46
|
"@headlessui/react": "^2.2",
|
|
47
47
|
"zustand": "^5"
|
|
48
48
|
},
|