react-panels: minor progress on data flow

This commit is contained in:
Torkel Ödegaard
2018-07-05 13:10:39 -07:00
parent 447bc3a6e0
commit c86fc6fb47
5 changed files with 84 additions and 40 deletions

View File

@@ -138,11 +138,22 @@ const flotDeps = [
'jquery.flot.stackpercent',
'jquery.flot.events',
];
for (let flotDep of flotDeps) {
exposeToPlugin(flotDep, { fakeDep: 1 });
}
export function importPluginModule(path: string): Promise<any> {
export interface PluginExports {
PanelCtrl?;
any;
PanelComponent?: any;
Datasource?: any;
QueryCtrl?: any;
ConfigCtrl?: any;
AnnotationsQueryCtrl?: any;
}
export function importPluginModule(path: string): Promise<PluginExports> {
let builtIn = builtInPlugins[path];
if (builtIn) {
return Promise.resolve(builtIn);