Skip to content

Commit

Permalink
fix types incorrect types entry (#3740)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaMachina authored Aug 20, 2024
1 parent dfb302a commit 3c12ce0
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 13 deletions.
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

0 comments on commit 3c12ce0

Please sign in to comment.