From 39bf31d15b1e7fb5f235ec9adc1ce8081536de4a Mon Sep 17 00:00:00 2001 From: Rikki Schulte Date: Tue, 31 Oct 2023 16:01:06 +0100 Subject: [PATCH] export new hooks --- .changeset/tiny-papayas-approve.md | 5 +++++ packages/graphiql-react/src/editor/index.ts | 2 ++ packages/graphiql-react/src/index.ts | 2 ++ 3 files changed, 9 insertions(+) create mode 100644 .changeset/tiny-papayas-approve.md diff --git a/.changeset/tiny-papayas-approve.md b/.changeset/tiny-papayas-approve.md new file mode 100644 index 00000000000..2f743648a70 --- /dev/null +++ b/.changeset/tiny-papayas-approve.md @@ -0,0 +1,5 @@ +--- +'@graphiql/react': patch +--- + +Export new hooks diff --git a/packages/graphiql-react/src/editor/index.ts b/packages/graphiql-react/src/editor/index.ts index 8a4f8fe1687..8d593fcc579 100644 --- a/packages/graphiql-react/src/editor/index.ts +++ b/packages/graphiql-react/src/editor/index.ts @@ -16,8 +16,10 @@ export { useCopyQuery, useMergeQuery, usePrettifyEditors, + useEditorState, useOperationsEditorState, useVariablesEditorState, + useHeadersEditorState, } from './hooks'; export { useQueryEditor } from './query-editor'; export { useResponseEditor } from './response-editor'; diff --git a/packages/graphiql-react/src/index.ts b/packages/graphiql-react/src/index.ts index 26cf7756193..add9f53e364 100644 --- a/packages/graphiql-react/src/index.ts +++ b/packages/graphiql-react/src/index.ts @@ -16,8 +16,10 @@ export { useQueryEditor, useResponseEditor, useVariableEditor, + useEditorState, useOperationsEditorState, useVariablesEditorState, + useHeadersEditorState, VariableEditor, } from './editor'; export {