mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-27 03:41:11 +01:00
19 lines
592 B
TypeScript
19 lines
592 B
TypeScript
import * as editor from './Editor';
|
|
|
|
export type { EditorProps } from './Editor';
|
|
// TODO: Figure out why code-splitting breaks production build from
|
|
// showing any content
|
|
// const editor = await import('./Editor');
|
|
|
|
document.addEventListener('keydown', (e) => {
|
|
console.log('E', e.key);
|
|
e.preventDefault();
|
|
e.stopPropagation();
|
|
});
|
|
|
|
export const Editor = editor.Editor;
|
|
export const graphql = editor.graphql;
|
|
export const getIntrospectionQuery = editor.getIntrospectionQuery;
|
|
export const buildClientSchema = editor.buildClientSchema;
|
|
export const formatGraphQL = editor.formatSdl;
|