|
@@ -12,6 +12,7 @@ import QueryField, { TypeaheadInput, QueryFieldState } from 'app/features/explor
|
|
|
import { getNextCharacter, getPreviousCousin } from 'app/features/explore/utils/dom';
|
|
import { getNextCharacter, getPreviousCousin } from 'app/features/explore/utils/dom';
|
|
|
import BracesPlugin from 'app/features/explore/slate-plugins/braces';
|
|
import BracesPlugin from 'app/features/explore/slate-plugins/braces';
|
|
|
import RunnerPlugin from 'app/features/explore/slate-plugins/runner';
|
|
import RunnerPlugin from 'app/features/explore/slate-plugins/runner';
|
|
|
|
|
+import LokiDatasource from '../datasource';
|
|
|
|
|
|
|
|
// Types
|
|
// Types
|
|
|
import { LokiQuery } from '../types';
|
|
import { LokiQuery } from '../types';
|
|
@@ -64,7 +65,7 @@ interface CascaderOption {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
interface LokiQueryFieldProps {
|
|
interface LokiQueryFieldProps {
|
|
|
- datasource: any;
|
|
|
|
|
|
|
+ datasource: LokiDatasource;
|
|
|
error?: string | JSX.Element;
|
|
error?: string | JSX.Element;
|
|
|
hint?: any;
|
|
hint?: any;
|
|
|
history?: any[];
|
|
history?: any[];
|
|
@@ -79,7 +80,7 @@ interface LokiQueryFieldState {
|
|
|
syntaxLoaded: boolean;
|
|
syntaxLoaded: boolean;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-class LokiQueryField extends React.PureComponent<LokiQueryFieldProps, LokiQueryFieldState> {
|
|
|
|
|
|
|
+export class LokiQueryField extends React.PureComponent<LokiQueryFieldProps, LokiQueryFieldState> {
|
|
|
plugins: any[];
|
|
plugins: any[];
|
|
|
pluginsSearch: any[];
|
|
pluginsSearch: any[];
|
|
|
languageProvider: any;
|
|
languageProvider: any;
|