mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* prometheus: add monaco-based query-field for now it is behind a feature-flag * added new trigger character * better separate grafana-specifc and prom-specific code * better styling * more styling * more styling * simpler monaco-import * better imports * simplified code * simplified type imports * refactor: group completion-provider files together * renamed type * simplify type-import Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com> * handle no-metric-name autocompletes * updated comment Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
13 lines
346 B
TypeScript
13 lines
346 B
TypeScript
import React, { Suspense } from 'react';
|
|
import { Props } from './MonacoQueryFieldProps';
|
|
|
|
const Field = React.lazy(() => import(/* webpackChunkName: "prom-query-field" */ './MonacoQueryField'));
|
|
|
|
export const MonacoQueryFieldLazy = (props: Props) => {
|
|
return (
|
|
<Suspense fallback={null}>
|
|
<Field {...props} />
|
|
</Suspense>
|
|
);
|
|
};
|