Files
cloudbeaver/webapp/packages/plugin-codemirror6/src/index.ts
T

33 lines
1.8 KiB
TypeScript

import { createComplexLoader } from '@cloudbeaver/core-blocks';
export * from './ReactCodemirrorPanel';
export * from './EditorLoader';
export * from './IEditorProps';
export * from './IEditorRef';
export * from './useEditorDefaultExtensions';
export * from './useEditorAutocompletion';
export * from './useCodemirrorExtensions';
export * from './Hyperlink/HyperlinkLoader';
export * from './Hyperlink/IHyperlinkInfo';
export * from './Hyperlink/useHyperlink';
export * from '@codemirror/view';
export * from '@codemirror/state';
export * from '@codemirror/autocomplete';
export { html as HTML_EDITOR } from '@codemirror/lang-html';
export { javascript as JAVASCRIPT_EDITOR } from '@codemirror/lang-javascript';
export { json as JSON_EDITOR } from '@codemirror/lang-json';
export { sql as SQL_EDITOR, SQLDialect } from '@codemirror/lang-sql';
export { xml as XML_EDITOR } from '@codemirror/lang-xml';
export const StandardSQLLoader = createComplexLoader(async () => (await import('@codemirror/lang-sql')).StandardSQL);
export const PostgreSQLLoader = createComplexLoader(async () => (await import('@codemirror/lang-sql')).PostgreSQL);
export const MySQLLoader = createComplexLoader(async () => (await import('@codemirror/lang-sql')).MySQL);
export const MariaSQLLoader = createComplexLoader(async () => (await import('@codemirror/lang-sql')).MariaSQL);
export const MSSQLLoader = createComplexLoader(async () => (await import('@codemirror/lang-sql')).MSSQL);
export const SQLiteLoader = createComplexLoader(async () => (await import('@codemirror/lang-sql')).SQLite);
export const CassandraLoader = createComplexLoader(async () => (await import('@codemirror/lang-sql')).Cassandra);
export const PLSQLLoader = createComplexLoader(async () => (await import('@codemirror/lang-sql')).PLSQL);