Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/nine-meals-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@graphiql/plugin-code-exporter': patch
'@graphiql/plugin-explorer': patch
---

fix types incorrect types entry
2 changes: 1 addition & 1 deletion packages/graphiql-plugin-code-exporter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.js",
"types": "./dist/types/index.d.ts"
"types": "./dist/index.d.ts"
}
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/graphiql-plugin-explorer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ function GraphiQLWithExplorer() {

You can also use this plugin with `unpkg`, `jsdelivr`, and other CDNs.

See the [example HTML file](examples/index.html) for this plugin
See the [example HTML file](./example.html) for this plugin
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,20 @@
const explorerPlugin = GraphiQLPluginExplorer.explorerPlugin();

const root = ReactDOM.createRoot(document.getElementById('graphiql'));
root.render(
React.createElement(GraphiQL, {
fetcher: fetcher,
defaultEditorToolsVisibility: true,
plugins: [explorerPlugin],
defaultQuery:
'query AllFilms {\n allFilms {\n films {\n title\n }\n }\n}',
}),
);
const app = React.createElement(GraphiQL, {
fetcher,
defaultEditorToolsVisibility: true,
plugins: [explorerPlugin],
defaultQuery: `query AllFilms {
allFilms {
films {
title
}
}
}`,
});

root.render(app);
</script>
</body>
</html>
2 changes: 1 addition & 1 deletion packages/graphiql-plugin-explorer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.js",
"types": "./dist/types/index.d.ts"
"types": "./dist/index.d.ts"
}
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/graphiql-plugin-explorer/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

.graphiql-explorer-graphql-arguments input {
line-height: 0;
min-width: 5rem;
min-width: 2rem;
}

.graphiql-explorer-actions {
Expand Down