@databrainhq/plugin 0.10.0 → 0.10.2
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.
- package/dist/containers/Metric/index.d.ts +9 -5
- package/dist/hooks/useEmbeddedDashboard.d.ts +1 -0
- package/dist/hooks/useMetricCard.d.ts +1 -1
- package/dist/index.es.js +9125 -9099
- package/dist/index.umd.js +209 -208
- package/dist/utils/generated/graphql.d.ts +20 -2
- package/package.json +1 -1
|
@@ -3,8 +3,10 @@ import { EmbeddedMetricProps } from './EmbeddedMetric';
|
|
|
3
3
|
import { ThemeType } from '@/utils/theme';
|
|
4
4
|
export interface MetricProps extends EmbeddedMetricProps {
|
|
5
5
|
theme?: ThemeType;
|
|
6
|
-
width?:
|
|
7
|
-
height?:
|
|
6
|
+
width?: number;
|
|
7
|
+
height?: number;
|
|
8
|
+
className?: string;
|
|
9
|
+
style?: React.CSSProperties;
|
|
8
10
|
}
|
|
9
11
|
/**
|
|
10
12
|
* @name Metric - A react component to display a single metric card.
|
|
@@ -12,8 +14,10 @@ export interface MetricProps extends EmbeddedMetricProps {
|
|
|
12
14
|
* @prop {string} metricId - A metric id (one which you have provided at the time of it's creation) of the metric you want to display.
|
|
13
15
|
* @prop {array} chartColors (optional) - An array of colors to be used to visualize the chart.
|
|
14
16
|
* @prop {string} chartRendererType (optional) - Whether to display chart as svg or canvas. In case of low end devices or in general svg is better and in case of frequent data changes or high size data visualization canvas is better. Defaults to canvas.
|
|
15
|
-
* @prop {
|
|
16
|
-
* @prop {
|
|
17
|
+
* @prop {number} width (optional) - The width of the metric card e.g. 500, 200 etc. will be treated as pixel value.
|
|
18
|
+
* @prop {number} height (optional) - The height of the metric card e.g. 500, 200 etc. will be treated as pixel value.
|
|
19
|
+
* @prop {string} className (optional) - The usual className prop to provide styles.
|
|
20
|
+
* @prop {object} style (optional) - The usual css style prop to provide inline styles.
|
|
17
21
|
* @prop {object} theme (optional) - Theme config object to apply to the UI.
|
|
18
22
|
*/
|
|
19
|
-
export declare const Metric: React.MemoExoticComponent<({ theme, width, height, ...metricProps }: MetricProps) => JSX.Element>;
|
|
23
|
+
export declare const Metric: React.MemoExoticComponent<({ theme, width, height, style, className, ...metricProps }: MetricProps) => JSX.Element>;
|
|
@@ -39,6 +39,7 @@ export declare const useEmbeddedDashboard: ({ token, dashboardId, }: {
|
|
|
39
39
|
rlsConditions: any;
|
|
40
40
|
clickActions: any;
|
|
41
41
|
drillDownSettings?: any;
|
|
42
|
+
datasetMetricSettings?: any;
|
|
42
43
|
companyIntegration: {
|
|
43
44
|
__typename?: "companyIntegrations" | undefined;
|
|
44
45
|
name: string;
|
|
@@ -31,8 +31,8 @@ export declare const useMetricCard: ({ metric, globalFilters, rlsFilters, client
|
|
|
31
31
|
chartParams: any;
|
|
32
32
|
isQueryLoading: boolean;
|
|
33
33
|
setLoading: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
34
|
-
groupedData: Record<string, any>[];
|
|
35
34
|
drilledLevel: number;
|
|
35
|
+
dimensions: any;
|
|
36
36
|
rlsConditions: RlsCondition[];
|
|
37
37
|
};
|
|
38
38
|
export {};
|