Skip to content

Commit d1395f9

Browse files
dimaMachinaTallTedacaogithub-actions[bot]yaacovCR
authored
GraphiQL v4 (#3904)
* add some changes to create new branch * [v3] update vite to v6 (#3828) * upd * rm postcss since it's included in vite * prettier * upd * upd * upd * fix lint * [graphiql]: support react 19, drop support react 16 and react 17 (#3897) * upd * upd * upd * upd * upd * exclude react-dom/client from bundle * bump react everywhere to v19 * bump react everywhere to v19 * polish * fix failing text, to unblock canary * upd * try `minor` for graphiql/react, otherwise it pines to `1.0.0-next.2` in esm.sh * try workaround * try workaround * try workaround * try workaround * this should fix vitest * try * try * lint * try * fix test * try SOURCEMAP var * try ESM_SH_BUILD var * try * rm some unneeded code * try to fix esbuild: package 'uWebSockets.js' not found * update vite to see if it fix esbuild error? * bump module "@emotion/is-prop-valid" not found to fix `module "@emotion/is-prop-valid" not found` on esm.sh * upd * upd * upd * fix e2e * add changeset * add migration markdown file * fix * Update GraphiQL CDN example using ESM-based CDN esm.sh (#3902) * upd * upd * upd * upd * upd * exclude react-dom/client from bundle * bump react everywhere to v19 * bump react everywhere to v19 * polish * fix failing text, to unblock canary * upd * try `minor` for graphiql/react, otherwise it pines to `1.0.0-next.2` in esm.sh * try workaround * try workaround * try workaround * try workaround * this should fix vitest * try * try * lint * try * fix test * try SOURCEMAP var * try ESM_SH_BUILD var * try * rm some unneeded code * try to fix esbuild: package 'uWebSockets.js' not found * update vite to see if it fix esbuild error? * bump module "@emotion/is-prop-valid" not found to fix `module "@emotion/is-prop-valid" not found` on esm.sh * upd * upd * upd * fix e2e * add changeset * add migration markdown file * fix * upd * upd graphiql plugin explorer docs * upd * upd * upd * update code exporter * upd * upd * upd * upd * upd * upd * polish * add changeset * new tabs look for graphiql v4 (#3685) * changeset pre enter alpha * [graphiql-react/graphiql] new looks of tabs (#3644) * new looks of tabs * add graphiql react too * all fixes * more polishing * more * more * more * more * more * prettier * polish changeset * disable shrinking while changing the operation name * Update packages/graphiql-react/src/ui/tabs.css Co-authored-by: Ted Thibodeau Jr <[email protected]> * yarn i * apply new design changes * prettier * Update .changeset/thirty-spoons-call.md * fix cypress * this fix locally --------- Co-authored-by: Ted Thibodeau Jr <[email protected]> * [2] GraphiQL x Vite v5 (#3679) * new looks of tabs * add graphiql react too * all fixes * more polishing * more * more * more * more * more * prettier * polish changeset * disable shrinking while changing the operation name * Update packages/graphiql-react/src/ui/tabs.css Co-authored-by: Ted Thibodeau Jr <[email protected]> * yarn i * apply new design changes * prettier * vite more more more * fix demo * fix cspell * fix dev * update cypress to v13 * upd cache key * Update .changeset/thirty-spoons-call.md * Update packages/graphiql/vite.config.mts * merge * add changeset * yarn.lock --------- Co-authored-by: Ted Thibodeau Jr <[email protected]> * [3] remove unused webpack deps (#3681) * new looks of tabs * add graphiql react too * all fixes * more polishing * more * more * more * more * more * prettier * polish changeset * disable shrinking while changing the operation name * Update packages/graphiql-react/src/ui/tabs.css Co-authored-by: Ted Thibodeau Jr <[email protected]> * yarn i * apply new design changes * prettier * vite more more more * fix demo * fix cspell * fix dev * update cypress to v13 * upd cache key * remove webpack deps * fix `yarn jest --coverage` * Update .changeset/thirty-spoons-call.md * Update packages/graphiql/vite.config.mts * merge * add changeset * yarn.lock * yarn.lock --------- Co-authored-by: Ted Thibodeau Jr <[email protected]> * [4] update graphql to `16.9.0` and use vite `define` configuration to remove development code from cdn bundle (#3683) * vite more more more * fix demo * fix cspell * fix dev * update cypress to v13 * upd cache key * remove webpack deps * fix `yarn jest --coverage` * upd graphql * aa * yarn.lock * fix tests * remove `data-testid="graphiql-container"` (#3688) * commit `pre.json` until `graphiql-v4` will be added to list of authorized branches to deploy * remove `graphiql-v4` from release.yml * [v4] remove `disableTabs` option (#3687) * remove `disableTabs` option * format * commit `pre.json` * add `graphiql-v4` in release.yml * [v4] prefer `location` over `window.location` and prefer `navigator` over `window.navigator` (#3692) * [v4] remove `build.sh` and `checkgit.sh` (#3694) * [v4] test umd build only on ci, locally test cdn.ts (#3693) * test umd build only on ci, locally test cdn.ts * Update custom-words.txt * [v4] convert graphiql e2e server to ESM (#3697) * aa * fix netlify * fix * fix fails on ci * [v4] update changeset for changed exports (#3700) * [v4] generate types with `vite-plugin-dts` (#3702) * generate types with `vite-plugin-dts` * add types:check in prebuild * more * more * more * update vite * upd * use terser * [v4] use `vite build --watch` instead of `vite` for `dev` script because we don't need development server for them (#3705) * [v4] remove graphiql default export (#3706) * aa * aa * polish * [v4] fix netlify deploy (#3708) * fix netlify deploy * fix cypress * change `style.css` imports (#3709) * Update poor-ghosts-jump.md * Version Packages (alpha) (#3689) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * [v4] show tabs even there is only 1 tab (#3713) * aa * aa * fix unit tests * fix cypress * [v4] Remove `toolbar.additionalContent` and `toolbar.additionalComponent` props in favor of `GraphiQL.Toolbar` render props. (#3707) * Version Packages (alpha) (#3714) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * [v4] use `position: absolute` for `.graphiql-logo` class (#3716) * [v4] remove `createComponentGroup` utility in favour `Object.assign` (#3717) * Version Packages (alpha) (#3718) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * [v4] fix merge conflicts with `main` (#3719) * upgrade to graphql v17 including support for new incremental delivery format (#3682) * add support for new incremental delivery format * fix vitest * add patch for graphql-js bug submittes upstream with test at graphql/graphql-js#4160 * apply feedback * move patches! * some fixes * fix netlify/cypress * remove export * update changeset --------- Co-authored-by: Dimitri POSTOLOV <[email protected]> * Version Packages (#3715) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * prettier * fix e2e * update pr-graphql-compat-check.yml * prettier --------- Co-authored-by: Yaacov Rydzinski <[email protected]> Co-authored-by: Rikki Schulte <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * [v4] fix scrollbar appearing in sidebar (#3720) * replace `overflow-y: scroll` with `overflow-y: auto` * fix netlify graphql function * Version Packages (alpha) (#3723) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * style: Don't convert single \n to <br> (#3414) * Update development instructions * Don't convert single \n to <br> * Add changeset * Update .changeset/olive-mice-hide.md --------- Co-authored-by: Dimitri POSTOLOV <[email protected]> * [v4] some refactoring (#3726) * some refactoring * use `right: var(--px-16)` instead of `right: 0` for `.graphiql-logo` * more * try to fix * fix join is not defined * Update packages/graphiql/cypress/e2e/incremental-delivery.cy.ts Co-authored-by: Ted Thibodeau Jr <[email protected]> --------- Co-authored-by: Ted Thibodeau Jr <[email protected]> * [v4] polish `tabs.cy` tests, remove `.graphiql-session` class (#3728) * aa * aa * aa * aa * fix tests * [v4] rollback `position: absolute` style for `.graphiql-logo` because tabs will behind logo (#3730) * Version Packages (alpha) (#3725) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * Add support for onPrettifyQuery callback to enable customised query formatting (#3733) * aa * prettifyyy * Version Packages (alpha) (#3732) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * [v4] improve explorer styles (#3738) * improve explorer styles * aa * Version Packages (alpha) (#3739) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * fix types incorrect types entry (#3740) * Version Packages (alpha) (#3741) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * add vite replace html plugin for graphiql plugin explorer (#3742) * add vite replace html plugin for graphiql plugin explorer * fix build * temp * migrate `@graphiql/toolkit` to `tsup` (#3746) * aa * removes unneeded `undefined` * try * fix * fix vitest * rollback of `temp` commit * update lock * merge * Update .changeset/rich-jobs-kick.md * polish * lint * Update .changeset/good-vans-refuse.md * update migration guide * update migration guide * upd * upd * fix * make on prettify query async * use maybe promise from toolkit * upd * message processor test pass * fix e2e * try * FIX e2e * try * ok now it's good * I hope now it's ok! --------- Co-authored-by: Ted Thibodeau Jr <[email protected]> Co-authored-by: Rikki Schulte <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Yaacov Rydzinski <[email protected]> Co-authored-by: Leonard Ehrenfried <[email protected]> * GraphiQL v4: exit changeset alpha (#3907) * exit changeset * polish migration guide * bump version * bump version * upd * Update graphiql-4.0.0.md --------- Co-authored-by: Ted Thibodeau Jr <[email protected]> Co-authored-by: Rikki Schulte <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Yaacov Rydzinski <[email protected]> Co-authored-by: Leonard Ehrenfried <[email protected]>
1 parent 53d6bab commit d1395f9

File tree

127 files changed

+2812
-1962
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+2812
-1962
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@graphiql/react": minor
3+
"graphiql": minor
4+
---
5+
6+
Add support for `onPrettifyQuery` callback to enable customised query formatting

.changeset/breezy-chicken-crash.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@graphiql/plugin-code-exporter': major
3+
---
4+
5+
`style.css` import was changed
6+
7+
## Migration
8+
9+
```diff
10+
-import '@graphiql/plugin-code-exporter/dist/style.css';
11+
+import '@graphiql/plugin-code-exporter/style.css';
12+
```

.changeset/chatty-spoons-accept.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@graphiql/plugin-code-exporter': minor
3+
'@graphiql/plugin-explorer': minor
4+
'@graphiql/react': minor
5+
'graphiql': minor
6+
---
7+
8+
Update GraphiQL CDN example using ESM-based CDN esm.sh

.changeset/clean-lamps-bow.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@graphiql/plugin-code-exporter': major
3+
'@graphiql/plugin-explorer': major
4+
'@graphiql/react': minor
5+
'graphiql': major
6+
---
7+
8+
drop commonjs build files

.changeset/few-steaks-clap.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'graphiql': major
3+
---
4+
5+
show tabs even there is only 1 tab

.changeset/flat-lies-heal.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@graphiql/react': minor
3+
'@graphiql/plugin-explorer': minor
4+
'@graphiql/plugin-code-exporter': minor
5+
---
6+
7+
generate types with `vite-plugin-dts`

.changeset/gentle-bugs-mix.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
'graphiql': major
3+
---
4+
5+
remove default export
6+
7+
## Migration
8+
9+
### Before
10+
11+
```jsx
12+
import GraphiQL from 'graphiql'
13+
```
14+
15+
### After
16+
17+
```jsx
18+
import { GraphiQL } from 'graphiql'
19+
```

.changeset/gold-cooks-design.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@graphiql/plugin-code-exporter': major
3+
'@graphiql/plugin-explorer': major
4+
'@graphiql/react': minor
5+
'graphiql': major
6+
---
7+
8+
- support react 19, drop support react 16 and react 17
9+
- replace deprecated `ReactDOM.unmountComponentAtNode()` and `ReactDOM.render()` with `root.unmount()` and `createRoot(container).render()`
10+
- update `@radix-ui` and `@headlessui/react` dependencies

.changeset/good-vans-refuse.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@graphiql/react': minor
3+
---
4+
5+
`style.css` import was changed
6+
7+
## Migration
8+
9+
```diff
10+
-import '@graphiql/react/dist/style.css';
11+
+import '@graphiql/react/style.css';
12+
```

.changeset/green-pugs-worry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'graphiql': major
3+
---
4+
5+
remove `disableTabs` option

.changeset/healthy-onions-bake.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphiql/plugin-explorer': patch
3+
---
4+
5+
improve explorer styles

.changeset/hungry-spiders-cheat.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'graphiql': major
3+
---
4+
5+
remove `data-testid="graphiql-container"`

.changeset/late-trains-train.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@graphiql/plugin-code-exporter': minor
3+
'@graphiql/plugin-explorer': minor
4+
'@graphiql/react': minor
5+
'graphiql': minor
6+
---
7+
8+
update `vite` and related dependencies

.changeset/metal-glasses-bow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'graphiql': patch
3+
---
4+
5+
update graphql to `16.9.0` and use vite `define` configuration to remove development code from cdn bundle

.changeset/nine-meals-happen.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@graphiql/plugin-code-exporter': patch
3+
'@graphiql/plugin-explorer': patch
4+
---
5+
6+
fix types incorrect types entry

.changeset/old-zebras-knock.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'graphiql': minor
3+
---
4+
5+
remove `.graphiql-session` class

.changeset/olive-mice-hide.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'graphiql': patch
3+
'@graphiql/react': patch
4+
---
5+
6+
Respect Markdown format: ignore single newline

.changeset/orange-rivers-draw.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'@graphiql/plugin-code-exporter': patch
3+
'@graphiql/plugin-explorer': patch
4+
'@graphiql/react': patch
5+
---
6+
7+
use `vite build --watch` instead of `vite` for `dev` script because we don't need development server for them
8+
9+
do not use `vite-plugin-dts` when generating umd build

.changeset/pink-moose-shake.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'graphiql': patch
3+
---
4+
5+
use `position: absolute` for `.graphiql-logo` class

.changeset/poor-ghosts-jump.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
'@graphiql/plugin-explorer': major
3+
---
4+
5+
`style.css` import was changed
6+
7+
## Migration
8+
9+
```diff
10+
-import '@graphiql/plugin-explorer/dist/style.css';
11+
+import '@graphiql/plugin-explorer/style.css';
12+
```
13+

.changeset/pre.json

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"mode": "exit",
3+
"tag": "alpha",
4+
"initialVersions": {
5+
"cm6-graphql": "0.0.15",
6+
"codemirror-graphql": "2.0.13",
7+
"graphiql": "3.4.0",
8+
"@graphiql/plugin-code-exporter": "3.0.5",
9+
"@graphiql/plugin-explorer": "3.1.1",
10+
"@graphiql/react": "0.23.0",
11+
"@graphiql/toolkit": "0.9.2",
12+
"graphql-language-service": "5.2.2",
13+
"graphql-language-service-cli": "3.4.2",
14+
"graphql-language-service-server": "2.13.2",
15+
"monaco-graphql": "1.5.3",
16+
"vscode-graphql": "0.11.2",
17+
"vscode-graphql-execution": "0.2.6",
18+
"vscode-graphql-syntax": "1.3.6",
19+
"example-graphiql-webpack": "0.0.0",
20+
"example-monaco-graphql-nextjs": "0.0.0",
21+
"example-monaco-graphql-react-vite": "0.0.0",
22+
"example-monaco-graphql-webpack": "0.0.0"
23+
},
24+
"changesets": [
25+
"add-on-prettify-callback",
26+
"breezy-chicken-crash",
27+
"few-steaks-clap",
28+
"flat-lies-heal",
29+
"gentle-bugs-mix",
30+
"good-vans-refuse",
31+
"green-pugs-worry",
32+
"healthy-onions-bake",
33+
"hungry-spiders-cheat",
34+
"metal-glasses-bow",
35+
"nine-meals-happen",
36+
"old-zebras-knock",
37+
"olive-mice-hide",
38+
"orange-rivers-draw",
39+
"pink-moose-shake",
40+
"poor-ghosts-jump",
41+
"red-papayas-fly",
42+
"rich-jobs-kick",
43+
"serious-forks-sip",
44+
"spotty-bulldogs-confess",
45+
"strong-ears-bake",
46+
"thick-adults-leave",
47+
"thirty-spoons-call",
48+
"weak-dancers-jog",
49+
"wicked-seas-laugh"
50+
]
51+
}

.changeset/red-papayas-fly.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@graphiql/react': patch
3+
'graphiql': patch
4+
---
5+
6+
replace `overflow-y: scroll` with `overflow-y: auto`

.changeset/rich-jobs-kick.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
'graphiql': major
3+
---
4+
5+
changed exports
6+
7+
```diff
8+
-graphiql/graphiql.css
9+
+graphiql/style.css
10+
```
11+
12+
changed cdn paths, `dist/index.umd.js` and `dist/style.css` are minified
13+
14+
```diff
15+
-https://unpkg.com/graphiql/graphiql.js
16+
-https://unpkg.com/graphiql/graphiql.min.js
17+
+https://unpkg.com/graphiql/dist/index.umd.js
18+
-https://unpkg.com/graphiql/graphiql.css
19+
-https://unpkg.com/graphiql/graphiql.min.css
20+
+https://unpkg.com/graphiql/dist/style.css
21+
```

.changeset/serious-forks-sip.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@graphiql/react': patch
3+
'graphiql': patch
4+
---
5+
6+
rollback `position: absolute` style for `.graphiql-logo` because tabs will behind logo

.changeset/spotty-bulldogs-confess.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@graphiql/react': patch
3+
'graphiql': patch
4+
---
5+
6+
- prefer `location` over `window.location`
7+
- prefer `navigator` over `window.navigator`

.changeset/strong-ears-bake.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'graphiql': patch
3+
---
4+
5+
use `right: var(--px-16)` instead of `right: 0` for `.graphiql-logo`

.changeset/thick-adults-leave.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphiql/react': minor
3+
---
4+
5+
remove `createComponentGroup` utility in favour `Object.assign`

.changeset/thirty-spoons-call.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"graphiql": major
3+
"@graphiql/react": minor
4+
---
5+
6+
- new looks of tabs
7+
8+
- fix `disableTabs` when `Add tab` button is still shown

.changeset/weak-dancers-jog.md

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
---
2+
'graphiql': major
3+
---
4+
5+
Remove `toolbar.additionalContent` and `toolbar.additionalComponent` props in favor of `GraphiQL.Toolbar` render props.
6+
7+
## Migration from `toolbar.additionalContent`
8+
9+
### Before
10+
11+
```jsx
12+
<GraphiQL toolbar={{ additionalContent: <button>My button</button> }} />
13+
```
14+
15+
### After
16+
17+
```jsx
18+
<GraphiQL>
19+
<GraphiQL.Toolbar>
20+
{({ merge, prettify, copy }) => (
21+
<>
22+
{prettify}
23+
{merge}
24+
{copy}
25+
<button>My button</button>
26+
</>
27+
)}
28+
</GraphiQL.Toolbar>
29+
</GraphiQL>
30+
```
31+
32+
## Migration from `toolbar.additionalComponent`
33+
34+
### Before
35+
36+
```jsx
37+
<GraphiQL
38+
toolbar={{
39+
additionalComponent: function MyComponentWithAccessToContext() {
40+
return <button>My button</button>;
41+
},
42+
}}
43+
/>
44+
```
45+
46+
### After
47+
48+
```jsx
49+
<GraphiQL>
50+
<GraphiQL.Toolbar>
51+
{({ merge, prettify, copy }) => (
52+
<>
53+
{prettify}
54+
{merge}
55+
{copy}
56+
<MyComponentWithAccessToContext />
57+
</>
58+
)}
59+
</GraphiQL.Toolbar>
60+
</GraphiQL>
61+
```
62+
63+
---
64+
65+
Additionally, you can sort default toolbar buttons in different order or remove unneeded buttons for you:
66+
67+
```jsx
68+
<GraphiQL>
69+
<GraphiQL.Toolbar>
70+
{({ prettify, copy }) => (
71+
<>
72+
{copy /* Copy button will be first instead of default last */}
73+
{/* Merge button is removed from toolbar */}
74+
{prettify}
75+
</>
76+
)}
77+
</GraphiQL.Toolbar>
78+
</GraphiQL>
79+
```

.changeset/wicked-seas-laugh.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'graphiql': patch
3+
---
4+
5+
replace `Tooltip`s in tabs with html `title="..."` attribute

0 commit comments

Comments
 (0)