UNPKG

@graphiql/react

Version:

[Changelog](https://github.com/graphql/graphiql/blob/main/packages/graphiql-react/CHANGELOG.md) | [API Docs](https://graphiql-test.netlify.app/typedoc/modules/graphiql_react.html) | [NPM](https://www.npmjs.com/package/@graphiql/react)

87 lines (86 loc) 2.72 kB
import { DiagnosticSettings } from 'monaco-graphql'; import { EditorSlice } from './stores'; import type * as monaco from 'monaco-editor'; export declare const isMacOs: boolean; export declare function formatShortcutForOS(key: string, replaced?: string): string; export declare const KEY_MAP: Readonly<{ prettify: { key: string; keybindings: number[]; }; mergeFragments: { key: string; keybindings: number[]; }; runQuery: { key: string; keybindings: number[]; }; autoComplete: { key: string; }; copyQuery: { key: string; keybindings: number[]; }; refetchSchema: { key: string; }; searchInEditor: { key: string; }; searchInDocs: { key: string; }; }>; export declare const STORAGE_KEY: { readonly headers: "headers"; readonly visiblePlugin: "visiblePlugin"; readonly query: "query"; readonly variables: "variables"; readonly tabs: "tabState"; readonly persistHeaders: "shouldPersistHeaders"; readonly theme: "theme"; }; export declare const DEFAULT_QUERY: string; export declare const KEY_BINDINGS: { readonly prettify: { readonly id: "graphql-prettify"; readonly label: "Prettify Editors"; readonly contextMenuGroupId: "graphql"; readonly keybindings: number[]; }; readonly mergeFragments: { readonly id: "graphql-merge"; readonly label: "Merge Fragments into Query"; readonly contextMenuGroupId: "graphql"; readonly keybindings: number[]; }; readonly runQuery: { readonly id: "graphql-run"; readonly label: "Run Operation"; readonly contextMenuGroupId: "graphql"; readonly keybindings: number[]; }; readonly copyQuery: { readonly id: "graphql-copy"; readonly label: "Copy Query"; readonly contextMenuGroupId: "graphql"; readonly keybindings: number[]; }; }; export declare const URI_NAME: { readonly operation: "operation.graphql"; readonly schema: "schema.graphql"; readonly variables: "variables.json"; readonly requestHeaders: "request-headers.json"; readonly response: "response.json"; }; export declare const JSON_DIAGNOSTIC_OPTIONS: monaco.languages.json.DiagnosticsOptions; export declare const MONACO_GRAPHQL_DIAGNOSTIC_SETTINGS: DiagnosticSettings; export declare const DEFAULT_PRETTIFY_QUERY: EditorSlice['onPrettifyQuery']; export declare const MONACO_THEME_NAME: { readonly dark: "graphiql-DARK"; readonly light: "graphiql-LIGHT"; }; export declare const MONACO_THEME_DATA: Record<'dark' | 'light', monaco.editor.IStandaloneThemeData>;