Skip to content

Commit 682ad06

Browse files
expose PluginContextProvider (#2839)
* expose PluginContextProvider * add exposed PluginContextProvider to __mocks__ too * fix typo * add changeset Co-authored-by: Thomas Heyenbrock <thomas.heyenbrock@gmail.com>
1 parent 0a950ea commit 682ad06

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

.changeset/happy-cherries-add.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphiql/react': patch
3+
---
4+
5+
Export the `PluginContextProvider` component

packages/graphiql-react/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export {
5050
DOC_EXPLORER_PLUGIN,
5151
HISTORY_PLUGIN,
5252
PluginContext,
53+
PluginContextProvider,
5354
usePluginContext,
5455
} from './plugin';
5556
export { GraphiQLProvider } from './provider';

packages/graphiql/__mocks__/@graphiql/react.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export {
6262
PenIcon,
6363
PlayIcon,
6464
PluginContext,
65+
PluginContextProvider,
6566
PlusIcon,
6667
PrettifyIcon,
6768
ReloadIcon,

0 commit comments

Comments
 (0)