@devtable/dashboard 1.26.0 → 1.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,5 +8,5 @@ interface IQueryBySQL {
8
8
  }
9
9
  export declare const queryBySQL: ({ context, definitions, title, query }: IQueryBySQL) => () => Promise<any>;
10
10
  export declare type TQuerySources = Record<string, string[]>;
11
- export declare function getQuerySources(): Promise<TQuerySources>;
11
+ export declare function listDataSources(): Promise<TQuerySources>;
12
12
  export {};
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ export interface IDashboardActionContext {
3
+ addPanel: () => void;
4
+ duplidatePanel: (id: string) => void;
5
+ removePanelByID: (id: string) => void;
6
+ }
7
+ export declare const DashboardActionContext: React.Context<IDashboardActionContext>;
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
2
  import { IVizConfig } from "../types/dashboard";
3
3
  export interface IPanelContext {
4
+ id: string;
4
5
  data: any[];
5
6
  loading: boolean;
6
7
  title: string;